@nexus-cross/design-system 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cursor-rules/nexus-project-setup.mdc +150 -150
- package/cursor-rules/nexus-ui-api.mdc +659 -316
- package/cursor-rules/nexus-ui-components.mdc +162 -96
- package/dist/chunks/chunk-55IEEVNR.js +7 -0
- package/dist/chunks/{chunk-D6FII7HW.js → chunk-BBLBTOP4.js} +8 -5
- package/dist/chunks/{chunk-5JHN4FCY.mjs → chunk-K2TBLM3F.mjs} +1 -4
- package/dist/chunks/{chunk-MTX7GD3H.js → chunk-PEIEVKD5.js} +1 -4
- package/dist/chunks/{chunk-54RBL7J4.mjs → chunk-UKRU46PH.mjs} +8 -5
- package/dist/chunks/chunk-XMG7ZEYY.mjs +5 -0
- package/dist/data-list.js +2 -2
- package/dist/data-list.mjs +1 -1
- package/dist/error-boundary.d.mts +1 -1
- package/dist/error-boundary.d.ts +1 -1
- package/dist/index.js +5 -5
- package/dist/index.mjs +2 -2
- package/dist/schemas/_all.json +870 -373
- package/dist/schemas/accordion.json +12 -12
- package/dist/schemas/avatar.json +9 -9
- package/dist/schemas/button.json +27 -9
- package/dist/schemas/carousel.json +6 -6
- package/dist/schemas/carouselButton.json +3 -3
- package/dist/schemas/carouselDots.json +2 -2
- package/dist/schemas/carouselSlide.json +3 -3
- package/dist/schemas/checkBox.json +28 -10
- package/dist/schemas/chip.json +13 -7
- package/dist/schemas/clientOnly.json +3 -3
- package/dist/schemas/countdown.json +8 -8
- package/dist/schemas/counter.json +13 -10
- package/dist/schemas/dataList.json +10 -10
- package/dist/schemas/divider.json +8 -5
- package/dist/schemas/drawer.json +22 -3
- package/dist/schemas/drawerClose.json +24 -0
- package/dist/schemas/drawerContent.json +7 -7
- package/dist/schemas/drawerDescription.json +20 -0
- package/dist/schemas/drawerTitle.json +20 -0
- package/dist/schemas/drawerTrigger.json +24 -0
- package/dist/schemas/ellipsis.json +9 -9
- package/dist/schemas/errorBoundary.json +4 -4
- package/dist/schemas/infiniteScroll.json +12 -12
- package/dist/schemas/marquee.json +10 -7
- package/dist/schemas/modalCall.json +81 -3
- package/dist/schemas/modalTemplate.json +28 -25
- package/dist/schemas/numberInput.json +32 -14
- package/dist/schemas/pagination.json +8 -8
- package/dist/schemas/popover.json +12 -12
- package/dist/schemas/radioGroup.json +17 -10
- package/dist/schemas/radioItem.json +12 -5
- package/dist/schemas/select.json +11 -11
- package/dist/schemas/selectItem.json +5 -5
- package/dist/schemas/skeleton.json +10 -7
- package/dist/schemas/spinner.json +11 -4
- package/dist/schemas/switch.json +18 -7
- package/dist/schemas/tab.json +15 -15
- package/dist/schemas/table.json +14 -14
- package/dist/schemas/tableRow.json +5 -5
- package/dist/schemas/tdColumn.json +17 -17
- package/dist/schemas/textArea.json +42 -9
- package/dist/schemas/textInput.json +55 -15
- package/dist/schemas/themeProvider.json +10 -10
- package/dist/schemas/toastOptions.json +81 -0
- package/dist/schemas/toaster.json +48 -3
- package/dist/schemas/tooltip.json +10 -10
- package/dist/schemas/virtualGrid.json +19 -16
- package/dist/schemas/virtualList.json +12 -9
- package/dist/schemas.d.mts +420 -56
- package/dist/schemas.d.ts +420 -56
- package/dist/schemas.js +502 -367
- package/dist/schemas.mjs +498 -368
- package/dist/styles/layer.js +2 -2
- package/dist/styles/layer.mjs +1 -1
- package/dist/styles.css +56 -45
- package/dist/styles.js +2 -2
- package/dist/styles.layered.css +56 -45
- package/dist/styles.mjs +1 -1
- package/dist/text-input.d.mts +1 -1
- package/dist/text-input.d.ts +1 -1
- package/dist/text-input.js +3 -3
- package/dist/text-input.mjs +1 -1
- package/package.json +8 -6
- package/scripts/setup-cursor-rules.cjs +6 -6
- package/dist/chunks/chunk-7AISZYWL.js +0 -7
- package/dist/chunks/chunk-V5OTJP6H.mjs +0 -5
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"number",
|
|
10
10
|
"string"
|
|
11
11
|
],
|
|
12
|
-
"description": "
|
|
12
|
+
"description": "Current value"
|
|
13
13
|
},
|
|
14
14
|
"size": {
|
|
15
15
|
"type": "string",
|
|
@@ -20,57 +20,75 @@
|
|
|
20
20
|
"xl"
|
|
21
21
|
],
|
|
22
22
|
"default": "md",
|
|
23
|
-
"description": "
|
|
23
|
+
"description": "Size"
|
|
24
24
|
},
|
|
25
25
|
"error": {
|
|
26
26
|
"type": "boolean",
|
|
27
|
-
"description": "
|
|
27
|
+
"description": "Error state"
|
|
28
28
|
},
|
|
29
29
|
"min": {
|
|
30
30
|
"type": "number",
|
|
31
|
-
"description": "
|
|
31
|
+
"description": "Minimum value"
|
|
32
32
|
},
|
|
33
33
|
"max": {
|
|
34
34
|
"type": "number",
|
|
35
|
-
"description": "
|
|
35
|
+
"description": "Maximum value"
|
|
36
36
|
},
|
|
37
37
|
"step": {
|
|
38
38
|
"type": "number",
|
|
39
39
|
"default": 1,
|
|
40
|
-
"description": "
|
|
40
|
+
"description": "Step increment"
|
|
41
41
|
},
|
|
42
42
|
"digit": {
|
|
43
43
|
"type": "number",
|
|
44
44
|
"default": 0,
|
|
45
|
-
"description": "
|
|
45
|
+
"description": "Decimal places"
|
|
46
46
|
},
|
|
47
47
|
"hideButtons": {
|
|
48
48
|
"type": "boolean",
|
|
49
49
|
"default": false,
|
|
50
|
-
"description": "
|
|
50
|
+
"description": "Hide default spin buttons. Use with numberInputBind for external button event binding"
|
|
51
51
|
},
|
|
52
52
|
"disabled": {
|
|
53
53
|
"type": "boolean",
|
|
54
|
-
"description": "
|
|
54
|
+
"description": "Disabled"
|
|
55
55
|
},
|
|
56
56
|
"readOnly": {
|
|
57
57
|
"type": "boolean",
|
|
58
|
-
"description": "
|
|
58
|
+
"description": "Read-only (includes hiding spin buttons)"
|
|
59
59
|
},
|
|
60
60
|
"placeholder": {
|
|
61
61
|
"type": "string",
|
|
62
|
-
"description": "
|
|
62
|
+
"description": "Placeholder"
|
|
63
|
+
},
|
|
64
|
+
"name": {
|
|
65
|
+
"type": "string",
|
|
66
|
+
"description": "Form field name"
|
|
67
|
+
},
|
|
68
|
+
"id": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"description": "Element ID"
|
|
71
|
+
},
|
|
72
|
+
"autoFocus": {
|
|
73
|
+
"type": "boolean",
|
|
74
|
+
"description": "Auto focus"
|
|
63
75
|
},
|
|
64
76
|
"onValueChange": {
|
|
65
|
-
"description": "
|
|
77
|
+
"description": "Value change callback (value: number | undefined) => void"
|
|
78
|
+
},
|
|
79
|
+
"onBlur": {
|
|
80
|
+
"description": "Blur callback"
|
|
81
|
+
},
|
|
82
|
+
"onFocus": {
|
|
83
|
+
"description": "Focus callback"
|
|
66
84
|
},
|
|
67
85
|
"className": {
|
|
68
86
|
"type": "string",
|
|
69
|
-
"description": "
|
|
87
|
+
"description": "Style override"
|
|
70
88
|
}
|
|
71
89
|
},
|
|
72
90
|
"additionalProperties": false,
|
|
73
|
-
"description": "
|
|
91
|
+
"description": "Number input. Accelerated increment on long press. Exposes increment/decrement methods via ref. numberInputBind(ref, direction) binds same acceleration to external buttons."
|
|
74
92
|
}
|
|
75
93
|
},
|
|
76
94
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -6,20 +6,20 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"currentPage": {
|
|
8
8
|
"type": "number",
|
|
9
|
-
"description": "
|
|
9
|
+
"description": "Current page (1-based, required)"
|
|
10
10
|
},
|
|
11
11
|
"totalPages": {
|
|
12
12
|
"type": "number",
|
|
13
|
-
"description": "
|
|
13
|
+
"description": "Total page count (required)"
|
|
14
14
|
},
|
|
15
15
|
"siblingCount": {
|
|
16
16
|
"type": "number",
|
|
17
17
|
"default": 1,
|
|
18
|
-
"description": "
|
|
18
|
+
"description": "Number of pages shown on each side of current"
|
|
19
19
|
},
|
|
20
20
|
"showEdges": {
|
|
21
21
|
"type": "boolean",
|
|
22
|
-
"description": "
|
|
22
|
+
"description": "Always show first/last page"
|
|
23
23
|
},
|
|
24
24
|
"size": {
|
|
25
25
|
"type": "string",
|
|
@@ -28,14 +28,14 @@
|
|
|
28
28
|
"md"
|
|
29
29
|
],
|
|
30
30
|
"default": "md",
|
|
31
|
-
"description": "
|
|
31
|
+
"description": "Size"
|
|
32
32
|
},
|
|
33
33
|
"onPageChange": {
|
|
34
|
-
"description": "
|
|
34
|
+
"description": "Page change callback (page: number) => void, required"
|
|
35
35
|
},
|
|
36
36
|
"className": {
|
|
37
37
|
"type": "string",
|
|
38
|
-
"description": "<nav>
|
|
38
|
+
"description": "<nav> style"
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
"required": [
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"totalPages"
|
|
44
44
|
],
|
|
45
45
|
"additionalProperties": false,
|
|
46
|
-
"description": "
|
|
46
|
+
"description": "Pagination. Previous/next + page number buttons."
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"trigger": {
|
|
8
|
-
"description": "
|
|
8
|
+
"description": "Trigger element (ReactNode, required)"
|
|
9
9
|
},
|
|
10
10
|
"side": {
|
|
11
11
|
"type": "string",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
"left"
|
|
17
17
|
],
|
|
18
18
|
"default": "bottom",
|
|
19
|
-
"description": "
|
|
19
|
+
"description": "Position"
|
|
20
20
|
},
|
|
21
21
|
"align": {
|
|
22
22
|
"type": "string",
|
|
@@ -26,41 +26,41 @@
|
|
|
26
26
|
"end"
|
|
27
27
|
],
|
|
28
28
|
"default": "center",
|
|
29
|
-
"description": "
|
|
29
|
+
"description": "Alignment"
|
|
30
30
|
},
|
|
31
31
|
"sideOffset": {
|
|
32
32
|
"type": "number",
|
|
33
33
|
"default": 4,
|
|
34
|
-
"description": "
|
|
34
|
+
"description": "Position offset (px)"
|
|
35
35
|
},
|
|
36
36
|
"alignOffset": {
|
|
37
37
|
"type": "number",
|
|
38
|
-
"description": "
|
|
38
|
+
"description": "Alignment offset (px)"
|
|
39
39
|
},
|
|
40
40
|
"open": {
|
|
41
41
|
"type": "boolean",
|
|
42
|
-
"description": "
|
|
42
|
+
"description": "Controlled mode"
|
|
43
43
|
},
|
|
44
44
|
"onOpenChange": {
|
|
45
|
-
"description": "
|
|
45
|
+
"description": "Open/close state change callback (open: boolean) => void"
|
|
46
46
|
},
|
|
47
47
|
"onClickTrigger": {
|
|
48
|
-
"description": "
|
|
48
|
+
"description": "Callback on trigger element click. Passed to PopoverPrimitive.Trigger onClick."
|
|
49
49
|
},
|
|
50
50
|
"children": {
|
|
51
|
-
"description": "
|
|
51
|
+
"description": "Popover body (ReactNode)"
|
|
52
52
|
},
|
|
53
53
|
"className": {
|
|
54
54
|
"type": "string",
|
|
55
|
-
"description": "Content
|
|
55
|
+
"description": "Content style"
|
|
56
56
|
},
|
|
57
57
|
"arrowClassName": {
|
|
58
58
|
"type": "string",
|
|
59
|
-
"description": "Arrow
|
|
59
|
+
"description": "Arrow style"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"additionalProperties": false,
|
|
63
|
-
"description": "
|
|
63
|
+
"description": "Popover. Based on Radix Popover."
|
|
64
64
|
}
|
|
65
65
|
},
|
|
66
66
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -6,15 +6,15 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"name": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"description": "
|
|
9
|
+
"description": "Form name (required)"
|
|
10
10
|
},
|
|
11
11
|
"value": {
|
|
12
12
|
"type": "string",
|
|
13
|
-
"description": "
|
|
13
|
+
"description": "Selected value (controlled)"
|
|
14
14
|
},
|
|
15
15
|
"defaultValue": {
|
|
16
16
|
"type": "string",
|
|
17
|
-
"description": "
|
|
17
|
+
"description": "Initial value (uncontrolled)"
|
|
18
18
|
},
|
|
19
19
|
"size": {
|
|
20
20
|
"type": "string",
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
"md"
|
|
24
24
|
],
|
|
25
25
|
"default": "md",
|
|
26
|
-
"description": "
|
|
26
|
+
"description": "Size"
|
|
27
27
|
},
|
|
28
28
|
"orientation": {
|
|
29
29
|
"type": "string",
|
|
@@ -32,29 +32,36 @@
|
|
|
32
32
|
"vertical"
|
|
33
33
|
],
|
|
34
34
|
"default": "vertical",
|
|
35
|
-
"description": "
|
|
35
|
+
"description": "Layout direction"
|
|
36
36
|
},
|
|
37
37
|
"disabled": {
|
|
38
38
|
"type": "boolean",
|
|
39
|
-
"description": "
|
|
39
|
+
"description": "Disabled"
|
|
40
|
+
},
|
|
41
|
+
"children": {
|
|
42
|
+
"description": "RadioItem list (ReactNode, required)"
|
|
40
43
|
},
|
|
41
44
|
"aria-label": {
|
|
42
45
|
"type": "string",
|
|
43
|
-
"description": "
|
|
46
|
+
"description": "Accessibility label"
|
|
47
|
+
},
|
|
48
|
+
"aria-labelledby": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"description": "Accessibility label reference ID"
|
|
44
51
|
},
|
|
45
52
|
"onValueChange": {
|
|
46
|
-
"description": "
|
|
53
|
+
"description": "Value change callback (value: string) => void"
|
|
47
54
|
},
|
|
48
55
|
"className": {
|
|
49
56
|
"type": "string",
|
|
50
|
-
"description": "
|
|
57
|
+
"description": "Style override"
|
|
51
58
|
}
|
|
52
59
|
},
|
|
53
60
|
"required": [
|
|
54
61
|
"name"
|
|
55
62
|
],
|
|
56
63
|
"additionalProperties": false,
|
|
57
|
-
"description": "
|
|
64
|
+
"description": "Radio group. Used with RadioItem."
|
|
58
65
|
}
|
|
59
66
|
},
|
|
60
67
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"value": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"description": "
|
|
9
|
+
"description": "Item value (required)"
|
|
10
10
|
},
|
|
11
11
|
"size": {
|
|
12
12
|
"type": "string",
|
|
@@ -14,21 +14,28 @@
|
|
|
14
14
|
"sm",
|
|
15
15
|
"md"
|
|
16
16
|
],
|
|
17
|
-
"description": "
|
|
17
|
+
"description": "Size (overrides group)"
|
|
18
18
|
},
|
|
19
19
|
"label": {
|
|
20
|
-
"description": "
|
|
20
|
+
"description": "Label text (ReactNode)"
|
|
21
|
+
},
|
|
22
|
+
"children": {
|
|
23
|
+
"description": "Label alternative content (ReactNode)"
|
|
21
24
|
},
|
|
22
25
|
"disabled": {
|
|
23
26
|
"type": "boolean",
|
|
24
|
-
"description": "
|
|
27
|
+
"description": "Disabled"
|
|
28
|
+
},
|
|
29
|
+
"className": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Style override"
|
|
25
32
|
}
|
|
26
33
|
},
|
|
27
34
|
"required": [
|
|
28
35
|
"value"
|
|
29
36
|
],
|
|
30
37
|
"additionalProperties": false,
|
|
31
|
-
"description": "
|
|
38
|
+
"description": "Individual option within RadioGroup."
|
|
32
39
|
}
|
|
33
40
|
},
|
|
34
41
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
package/dist/schemas/select.json
CHANGED
|
@@ -6,11 +6,11 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"value": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"description": "
|
|
9
|
+
"description": "Selected value"
|
|
10
10
|
},
|
|
11
11
|
"placeholder": {
|
|
12
12
|
"type": "string",
|
|
13
|
-
"description": "
|
|
13
|
+
"description": "Placeholder"
|
|
14
14
|
},
|
|
15
15
|
"variant": {
|
|
16
16
|
"type": "string",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"outline"
|
|
20
20
|
],
|
|
21
21
|
"default": "default",
|
|
22
|
-
"description": "
|
|
22
|
+
"description": "Trigger style"
|
|
23
23
|
},
|
|
24
24
|
"size": {
|
|
25
25
|
"type": "string",
|
|
@@ -30,32 +30,32 @@
|
|
|
30
30
|
"full"
|
|
31
31
|
],
|
|
32
32
|
"default": "full",
|
|
33
|
-
"description": "
|
|
33
|
+
"description": "Width"
|
|
34
34
|
},
|
|
35
35
|
"disabled": {
|
|
36
36
|
"type": "boolean",
|
|
37
|
-
"description": "
|
|
37
|
+
"description": "Disabled"
|
|
38
38
|
},
|
|
39
39
|
"onValueChange": {
|
|
40
|
-
"description": "
|
|
40
|
+
"description": "Value change callback (value: string) => void"
|
|
41
41
|
},
|
|
42
42
|
"displayComponent": {
|
|
43
|
-
"description": "
|
|
43
|
+
"description": "Custom display in trigger (ReactNode)"
|
|
44
44
|
},
|
|
45
45
|
"children": {
|
|
46
|
-
"description": "SelectItem
|
|
46
|
+
"description": "SelectItem list (ReactNode, required)"
|
|
47
47
|
},
|
|
48
48
|
"className": {
|
|
49
49
|
"type": "string",
|
|
50
|
-
"description": "
|
|
50
|
+
"description": "Wrapper style"
|
|
51
51
|
},
|
|
52
52
|
"triggerClassName": {
|
|
53
53
|
"type": "string",
|
|
54
|
-
"description": "
|
|
54
|
+
"description": "Trigger style override"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"additionalProperties": false,
|
|
58
|
-
"description": "
|
|
58
|
+
"description": "Dropdown select. Based on Radix Select. Used with SelectItem."
|
|
59
59
|
}
|
|
60
60
|
},
|
|
61
61
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -6,25 +6,25 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"value": {
|
|
8
8
|
"type": "string",
|
|
9
|
-
"description": "
|
|
9
|
+
"description": "Item value"
|
|
10
10
|
},
|
|
11
11
|
"children": {
|
|
12
|
-
"description": "
|
|
12
|
+
"description": "Item content (ReactNode, required)"
|
|
13
13
|
},
|
|
14
14
|
"disabled": {
|
|
15
15
|
"type": "boolean",
|
|
16
|
-
"description": "
|
|
16
|
+
"description": "Disabled"
|
|
17
17
|
},
|
|
18
18
|
"className": {
|
|
19
19
|
"type": "string",
|
|
20
|
-
"description": "
|
|
20
|
+
"description": "Style override"
|
|
21
21
|
}
|
|
22
22
|
},
|
|
23
23
|
"required": [
|
|
24
24
|
"value"
|
|
25
25
|
],
|
|
26
26
|
"additionalProperties": false,
|
|
27
|
-
"description": "
|
|
27
|
+
"description": "Individual option within Select."
|
|
28
28
|
}
|
|
29
29
|
},
|
|
30
30
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -11,37 +11,40 @@
|
|
|
11
11
|
"span"
|
|
12
12
|
],
|
|
13
13
|
"default": "div",
|
|
14
|
-
"description": "
|
|
14
|
+
"description": "Rendered tag"
|
|
15
15
|
},
|
|
16
16
|
"circle": {
|
|
17
17
|
"type": "boolean",
|
|
18
18
|
"default": false,
|
|
19
|
-
"description": "
|
|
19
|
+
"description": "Circle skeleton (rounded-full)"
|
|
20
20
|
},
|
|
21
21
|
"width": {
|
|
22
22
|
"type": [
|
|
23
23
|
"string",
|
|
24
24
|
"number"
|
|
25
25
|
],
|
|
26
|
-
"description": "
|
|
26
|
+
"description": "Width (e.g. '100px', '50%', 200)"
|
|
27
27
|
},
|
|
28
28
|
"height": {
|
|
29
29
|
"type": [
|
|
30
30
|
"string",
|
|
31
31
|
"number"
|
|
32
32
|
],
|
|
33
|
-
"description": "
|
|
33
|
+
"description": "Height (e.g. '16px', 40)"
|
|
34
34
|
},
|
|
35
35
|
"children": {
|
|
36
|
-
"description": "
|
|
36
|
+
"description": "Inner content (shown when loaded, maintains actual size)"
|
|
37
|
+
},
|
|
38
|
+
"style": {
|
|
39
|
+
"description": "Inline style (CSSProperties)"
|
|
37
40
|
},
|
|
38
41
|
"className": {
|
|
39
42
|
"type": "string",
|
|
40
|
-
"description": "
|
|
43
|
+
"description": "Style override"
|
|
41
44
|
}
|
|
42
45
|
},
|
|
43
46
|
"additionalProperties": false,
|
|
44
|
-
"description": "
|
|
47
|
+
"description": "Skeleton loading placeholder. Size/shape via className. With children, wraps transparently to maintain actual size."
|
|
45
48
|
}
|
|
46
49
|
},
|
|
47
50
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -7,20 +7,27 @@
|
|
|
7
7
|
"size": {
|
|
8
8
|
"type": "number",
|
|
9
9
|
"default": 20,
|
|
10
|
-
"description": "px
|
|
10
|
+
"description": "Size in px"
|
|
11
|
+
},
|
|
12
|
+
"color": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "Color (CSS color value, default currentColor)"
|
|
11
15
|
},
|
|
12
16
|
"aria-label": {
|
|
13
17
|
"type": "string",
|
|
14
18
|
"default": "Loading",
|
|
15
|
-
"description": "
|
|
19
|
+
"description": "Accessibility label"
|
|
20
|
+
},
|
|
21
|
+
"style": {
|
|
22
|
+
"description": "Inline style (CSSProperties)"
|
|
16
23
|
},
|
|
17
24
|
"className": {
|
|
18
25
|
"type": "string",
|
|
19
|
-
"description": "
|
|
26
|
+
"description": "Color override etc."
|
|
20
27
|
}
|
|
21
28
|
},
|
|
22
29
|
"additionalProperties": false,
|
|
23
|
-
"description": "
|
|
30
|
+
"description": "Loading indicator. SVG-based. Built-in role=\"status\"."
|
|
24
31
|
}
|
|
25
32
|
},
|
|
26
33
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
package/dist/schemas/switch.json
CHANGED
|
@@ -11,30 +11,41 @@
|
|
|
11
11
|
"md"
|
|
12
12
|
],
|
|
13
13
|
"default": "md",
|
|
14
|
-
"description": "
|
|
14
|
+
"description": "Size"
|
|
15
15
|
},
|
|
16
16
|
"checked": {
|
|
17
17
|
"type": "boolean",
|
|
18
|
-
"description": "
|
|
18
|
+
"description": "On/off state"
|
|
19
19
|
},
|
|
20
20
|
"disabled": {
|
|
21
21
|
"type": "boolean",
|
|
22
|
-
"description": "
|
|
22
|
+
"description": "Disabled"
|
|
23
23
|
},
|
|
24
24
|
"readOnly": {
|
|
25
25
|
"type": "boolean",
|
|
26
|
-
"description": "
|
|
26
|
+
"description": "Read-only"
|
|
27
|
+
},
|
|
28
|
+
"name": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Form field name"
|
|
31
|
+
},
|
|
32
|
+
"id": {
|
|
33
|
+
"type": "string",
|
|
34
|
+
"description": "Element ID"
|
|
27
35
|
},
|
|
28
36
|
"onCheckedChange": {
|
|
29
|
-
"description": "
|
|
37
|
+
"description": "Toggle state change callback (checked: boolean) => void"
|
|
38
|
+
},
|
|
39
|
+
"onChange": {
|
|
40
|
+
"description": "Native change event handler (ChangeEvent)"
|
|
30
41
|
},
|
|
31
42
|
"className": {
|
|
32
43
|
"type": "string",
|
|
33
|
-
"description": "
|
|
44
|
+
"description": "Style override"
|
|
34
45
|
}
|
|
35
46
|
},
|
|
36
47
|
"additionalProperties": false,
|
|
37
|
-
"description": "
|
|
48
|
+
"description": "Toggle switch. Native checkbox-based, role=\"switch\"."
|
|
38
49
|
}
|
|
39
50
|
},
|
|
40
51
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
package/dist/schemas/tab.json
CHANGED
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
"properties": {
|
|
12
12
|
"key": {
|
|
13
13
|
"type": "string",
|
|
14
|
-
"description": "
|
|
14
|
+
"description": "Tab unique key"
|
|
15
15
|
},
|
|
16
16
|
"label": {
|
|
17
|
-
"description": "
|
|
17
|
+
"description": "Tab label (ReactNode)"
|
|
18
18
|
},
|
|
19
19
|
"children": {
|
|
20
|
-
"description": "
|
|
20
|
+
"description": "Tab panel content (ReactNode)"
|
|
21
21
|
},
|
|
22
22
|
"disabled": {
|
|
23
23
|
"type": "boolean",
|
|
24
|
-
"description": "
|
|
24
|
+
"description": "Disabled"
|
|
25
25
|
}
|
|
26
26
|
},
|
|
27
27
|
"required": [
|
|
@@ -29,15 +29,15 @@
|
|
|
29
29
|
],
|
|
30
30
|
"additionalProperties": false
|
|
31
31
|
},
|
|
32
|
-
"description": "
|
|
32
|
+
"description": "Tab item array (required)"
|
|
33
33
|
},
|
|
34
34
|
"activeKey": {
|
|
35
35
|
"type": "string",
|
|
36
|
-
"description": "
|
|
36
|
+
"description": "Controlled mode active key"
|
|
37
37
|
},
|
|
38
38
|
"defaultActiveKey": {
|
|
39
39
|
"type": "string",
|
|
40
|
-
"description": "
|
|
40
|
+
"description": "Uncontrolled initial key"
|
|
41
41
|
},
|
|
42
42
|
"variant": {
|
|
43
43
|
"type": "string",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"pill"
|
|
47
47
|
],
|
|
48
48
|
"default": "line",
|
|
49
|
-
"description": "
|
|
49
|
+
"description": "Style"
|
|
50
50
|
},
|
|
51
51
|
"size": {
|
|
52
52
|
"type": "string",
|
|
@@ -55,34 +55,34 @@
|
|
|
55
55
|
"md"
|
|
56
56
|
],
|
|
57
57
|
"default": "md",
|
|
58
|
-
"description": "
|
|
58
|
+
"description": "Size"
|
|
59
59
|
},
|
|
60
60
|
"destroyInactive": {
|
|
61
61
|
"type": "boolean",
|
|
62
62
|
"default": false,
|
|
63
|
-
"description": "
|
|
63
|
+
"description": "Unmount inactive panels"
|
|
64
64
|
},
|
|
65
65
|
"onTabChange": {
|
|
66
|
-
"description": "
|
|
66
|
+
"description": "Tab change callback (key: string) => void"
|
|
67
67
|
},
|
|
68
68
|
"className": {
|
|
69
69
|
"type": "string",
|
|
70
|
-
"description": "
|
|
70
|
+
"description": "Root style"
|
|
71
71
|
},
|
|
72
72
|
"tabListClassName": {
|
|
73
73
|
"type": "string",
|
|
74
|
-
"description": "
|
|
74
|
+
"description": "Tab list style"
|
|
75
75
|
},
|
|
76
76
|
"tabPanelClassName": {
|
|
77
77
|
"type": "string",
|
|
78
|
-
"description": "
|
|
78
|
+
"description": "Tab panel style"
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
"required": [
|
|
82
82
|
"items"
|
|
83
83
|
],
|
|
84
84
|
"additionalProperties": false,
|
|
85
|
-
"description": "
|
|
85
|
+
"description": "Tab navigation. line/pill variants."
|
|
86
86
|
}
|
|
87
87
|
},
|
|
88
88
|
"$schema": "http://json-schema.org/draft-07/schema#"
|