Skip to content

Commit ddcbf7d

Browse files
committed
tests: add unit test for style api
1 parent 497526a commit ddcbf7d

File tree

2 files changed

+515
-0
lines changed

2 files changed

+515
-0
lines changed

src/__tests__/snapshot-tests/__snapshots__/documenter.test.ts.snap

Lines changed: 215 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26850,6 +26850,221 @@ We do not support using this attribute to apply custom styling.",
2685026850
"optional": true,
2685126851
"type": "string",
2685226852
},
26853+
{
26854+
"inlineType": {
26855+
"name": "ToggleButtonProps.Style",
26856+
"properties": [
26857+
{
26858+
"inlineType": {
26859+
"name": "object",
26860+
"properties": [
26861+
{
26862+
"inlineType": {
26863+
"name": "object",
26864+
"properties": [
26865+
{
26866+
"name": "active",
26867+
"optional": true,
26868+
"type": "string",
26869+
},
26870+
{
26871+
"name": "default",
26872+
"optional": true,
26873+
"type": "string",
26874+
},
26875+
{
26876+
"name": "disabled",
26877+
"optional": true,
26878+
"type": "string",
26879+
},
26880+
{
26881+
"name": "hover",
26882+
"optional": true,
26883+
"type": "string",
26884+
},
26885+
{
26886+
"name": "pressed",
26887+
"optional": true,
26888+
"type": "string",
26889+
},
26890+
],
26891+
"type": "object",
26892+
},
26893+
"name": "background",
26894+
"optional": true,
26895+
"type": "{ active?: string | undefined; default?: string | undefined; disabled?: string | undefined; hover?: string | undefined; pressed?: string | undefined; }",
26896+
},
26897+
{
26898+
"inlineType": {
26899+
"name": "object",
26900+
"properties": [
26901+
{
26902+
"name": "active",
26903+
"optional": true,
26904+
"type": "string",
26905+
},
26906+
{
26907+
"name": "default",
26908+
"optional": true,
26909+
"type": "string",
26910+
},
26911+
{
26912+
"name": "disabled",
26913+
"optional": true,
26914+
"type": "string",
26915+
},
26916+
{
26917+
"name": "hover",
26918+
"optional": true,
26919+
"type": "string",
26920+
},
26921+
{
26922+
"name": "pressed",
26923+
"optional": true,
26924+
"type": "string",
26925+
},
26926+
],
26927+
"type": "object",
26928+
},
26929+
"name": "borderColor",
26930+
"optional": true,
26931+
"type": "{ active?: string | undefined; default?: string | undefined; disabled?: string | undefined; hover?: string | undefined; pressed?: string | undefined; }",
26932+
},
26933+
{
26934+
"name": "borderRadius",
26935+
"optional": true,
26936+
"type": "string",
26937+
},
26938+
{
26939+
"name": "borderWidth",
26940+
"optional": true,
26941+
"type": "string",
26942+
},
26943+
{
26944+
"inlineType": {
26945+
"name": "object",
26946+
"properties": [
26947+
{
26948+
"name": "active",
26949+
"optional": true,
26950+
"type": "string",
26951+
},
26952+
{
26953+
"name": "default",
26954+
"optional": true,
26955+
"type": "string",
26956+
},
26957+
{
26958+
"name": "disabled",
26959+
"optional": true,
26960+
"type": "string",
26961+
},
26962+
{
26963+
"name": "hover",
26964+
"optional": true,
26965+
"type": "string",
26966+
},
26967+
{
26968+
"name": "pressed",
26969+
"optional": true,
26970+
"type": "string",
26971+
},
26972+
],
26973+
"type": "object",
26974+
},
26975+
"name": "boxShadow",
26976+
"optional": true,
26977+
"type": "{ active?: string | undefined; default?: string | undefined; disabled?: string | undefined; hover?: string | undefined; pressed?: string | undefined; }",
26978+
},
26979+
{
26980+
"inlineType": {
26981+
"name": "object",
26982+
"properties": [
26983+
{
26984+
"name": "active",
26985+
"optional": true,
26986+
"type": "string",
26987+
},
26988+
{
26989+
"name": "default",
26990+
"optional": true,
26991+
"type": "string",
26992+
},
26993+
{
26994+
"name": "disabled",
26995+
"optional": true,
26996+
"type": "string",
26997+
},
26998+
{
26999+
"name": "hover",
27000+
"optional": true,
27001+
"type": "string",
27002+
},
27003+
{
27004+
"name": "pressed",
27005+
"optional": true,
27006+
"type": "string",
27007+
},
27008+
],
27009+
"type": "object",
27010+
},
27011+
"name": "color",
27012+
"optional": true,
27013+
"type": "{ active?: string | undefined; default?: string | undefined; disabled?: string | undefined; hover?: string | undefined; pressed?: string | undefined; }",
27014+
},
27015+
{
27016+
"inlineType": {
27017+
"name": "object",
27018+
"properties": [
27019+
{
27020+
"name": "borderColor",
27021+
"optional": true,
27022+
"type": "string",
27023+
},
27024+
{
27025+
"name": "borderRadius",
27026+
"optional": true,
27027+
"type": "string",
27028+
},
27029+
{
27030+
"name": "borderWidth",
27031+
"optional": true,
27032+
"type": "string",
27033+
},
27034+
],
27035+
"type": "object",
27036+
},
27037+
"name": "focusRing",
27038+
"optional": true,
27039+
"type": "{ borderColor?: string | undefined; borderRadius?: string | undefined; borderWidth?: string | undefined; }",
27040+
},
27041+
{
27042+
"name": "paddingBlock",
27043+
"optional": true,
27044+
"type": "string",
27045+
},
27046+
{
27047+
"name": "paddingInline",
27048+
"optional": true,
27049+
"type": "string",
27050+
},
27051+
],
27052+
"type": "object",
27053+
},
27054+
"name": "root",
27055+
"optional": true,
27056+
"type": "{ background?: { active?: string | undefined; default?: string | undefined; disabled?: string | undefined; hover?: string | undefined; pressed?: string | undefined; } | undefined; ... 7 more ...; paddingInline?: string | undefined; }",
27057+
},
27058+
],
27059+
"type": "object",
27060+
},
27061+
"name": "style",
27062+
"optional": true,
27063+
"systemTags": [
27064+
"core",
27065+
],
27066+
"type": "ToggleButtonProps.Style",
27067+
},
2685327068
{
2685427069
"defaultValue": "'normal'",
2685527070
"description": "Determines the general styling of the toggle button as follows:

0 commit comments

Comments
 (0)