@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
package/dist/schemas/drawer.json
CHANGED
|
@@ -13,14 +13,33 @@
|
|
|
13
13
|
"right"
|
|
14
14
|
],
|
|
15
15
|
"default": "bottom",
|
|
16
|
-
"description": "
|
|
16
|
+
"description": "Direction"
|
|
17
|
+
},
|
|
18
|
+
"open": {
|
|
19
|
+
"type": "boolean",
|
|
20
|
+
"description": "Open state (controlled mode)"
|
|
21
|
+
},
|
|
22
|
+
"onOpenChange": {
|
|
23
|
+
"description": "Open state change callback (open: boolean) => void"
|
|
24
|
+
},
|
|
25
|
+
"dismissible": {
|
|
26
|
+
"type": "boolean",
|
|
27
|
+
"description": "Allow close via swipe/outside click (default true)"
|
|
28
|
+
},
|
|
29
|
+
"modal": {
|
|
30
|
+
"type": "boolean",
|
|
31
|
+
"description": "Modal mode (default true). If false, background is interactive"
|
|
32
|
+
},
|
|
33
|
+
"shouldScaleBackground": {
|
|
34
|
+
"type": "boolean",
|
|
35
|
+
"description": "Background scale effect (default false)"
|
|
17
36
|
},
|
|
18
37
|
"children": {
|
|
19
|
-
"description": "Drawer
|
|
38
|
+
"description": "Drawer sub-components (ReactNode, required)"
|
|
20
39
|
}
|
|
21
40
|
},
|
|
22
41
|
"additionalProperties": false,
|
|
23
|
-
"description": "
|
|
42
|
+
"description": "Drawer/bottom sheet. Based on Vaul. Compound component pattern."
|
|
24
43
|
}
|
|
25
44
|
},
|
|
26
45
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/drawerClosePropsSchema",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"drawerClosePropsSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"asChild": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "Render as child element"
|
|
10
|
+
},
|
|
11
|
+
"children": {
|
|
12
|
+
"description": "Close element (ReactNode, required)"
|
|
13
|
+
},
|
|
14
|
+
"className": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Style override"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"description": "Drawer close button."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
24
|
+
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"right"
|
|
14
14
|
],
|
|
15
15
|
"default": "bottom",
|
|
16
|
-
"description": "
|
|
16
|
+
"description": "Direction (Context takes priority)"
|
|
17
17
|
},
|
|
18
18
|
"blur": {
|
|
19
19
|
"type": "string",
|
|
@@ -23,27 +23,27 @@
|
|
|
23
23
|
"md"
|
|
24
24
|
],
|
|
25
25
|
"default": "none",
|
|
26
|
-
"description": "
|
|
26
|
+
"description": "Overlay blur"
|
|
27
27
|
},
|
|
28
28
|
"showHandle": {
|
|
29
29
|
"type": "boolean",
|
|
30
30
|
"default": true,
|
|
31
|
-
"description": "
|
|
31
|
+
"description": "Show handle bar"
|
|
32
32
|
},
|
|
33
33
|
"children": {
|
|
34
|
-
"description": "
|
|
34
|
+
"description": "Content area (ReactNode)"
|
|
35
35
|
},
|
|
36
36
|
"overlayClassName": {
|
|
37
37
|
"type": "string",
|
|
38
|
-
"description": "
|
|
38
|
+
"description": "Overlay style"
|
|
39
39
|
},
|
|
40
40
|
"className": {
|
|
41
41
|
"type": "string",
|
|
42
|
-
"description": "
|
|
42
|
+
"description": "Panel style"
|
|
43
43
|
}
|
|
44
44
|
},
|
|
45
45
|
"additionalProperties": false,
|
|
46
|
-
"description": "Drawer.Content
|
|
46
|
+
"description": "Drawer.Content area."
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
49
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/drawerDescriptionPropsSchema",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"drawerDescriptionPropsSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"children": {
|
|
8
|
+
"description": "Description text (ReactNode, required)"
|
|
9
|
+
},
|
|
10
|
+
"className": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Style override"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"description": "Drawer description."
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
20
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/drawerTitlePropsSchema",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"drawerTitlePropsSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"children": {
|
|
8
|
+
"description": "Title text (ReactNode, required)"
|
|
9
|
+
},
|
|
10
|
+
"className": {
|
|
11
|
+
"type": "string",
|
|
12
|
+
"description": "Style override"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"additionalProperties": false,
|
|
16
|
+
"description": "Drawer title (required for accessibility)."
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
20
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/drawerTriggerPropsSchema",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"drawerTriggerPropsSchema": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"asChild": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"description": "Render as child element"
|
|
10
|
+
},
|
|
11
|
+
"children": {
|
|
12
|
+
"description": "Trigger element (ReactNode, required)"
|
|
13
|
+
},
|
|
14
|
+
"className": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "Style override"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"additionalProperties": false,
|
|
20
|
+
"description": "Drawer open trigger."
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
24
|
+
}
|
|
@@ -6,43 +6,43 @@
|
|
|
6
6
|
"properties": {
|
|
7
7
|
"content": {
|
|
8
8
|
"default": "",
|
|
9
|
-
"description": "
|
|
9
|
+
"description": "Body text (ReactNode)"
|
|
10
10
|
},
|
|
11
11
|
"lineClamp": {
|
|
12
12
|
"type": "number",
|
|
13
13
|
"default": 2,
|
|
14
|
-
"description": "
|
|
14
|
+
"description": "Line clamp limit"
|
|
15
15
|
},
|
|
16
16
|
"triggerMore": {
|
|
17
17
|
"default": "more",
|
|
18
|
-
"description": "
|
|
18
|
+
"description": "Show more text (ReactNode)"
|
|
19
19
|
},
|
|
20
20
|
"triggerLess": {
|
|
21
21
|
"default": "less",
|
|
22
|
-
"description": "
|
|
22
|
+
"description": "Show less text (ReactNode)"
|
|
23
23
|
},
|
|
24
24
|
"defaultShortened": {
|
|
25
25
|
"type": "boolean",
|
|
26
26
|
"default": true,
|
|
27
|
-
"description": "
|
|
27
|
+
"description": "Initial collapsed state"
|
|
28
28
|
},
|
|
29
29
|
"observingEnvs": {
|
|
30
30
|
"type": "array",
|
|
31
31
|
"items": {
|
|
32
32
|
"type": "boolean"
|
|
33
33
|
},
|
|
34
|
-
"description": "
|
|
34
|
+
"description": "Re-measure on external condition change"
|
|
35
35
|
},
|
|
36
36
|
"onShowMoreLessClick": {
|
|
37
|
-
"description": "
|
|
37
|
+
"description": "Show more/less click callback () => void"
|
|
38
38
|
},
|
|
39
39
|
"className": {
|
|
40
40
|
"type": "string",
|
|
41
|
-
"description": "
|
|
41
|
+
"description": "Style override"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
"additionalProperties": false,
|
|
45
|
-
"description": "
|
|
45
|
+
"description": "Text ellipsis. Built-in show more/less toggle."
|
|
46
46
|
}
|
|
47
47
|
},
|
|
48
48
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -5,17 +5,17 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"children": {
|
|
8
|
-
"description": "
|
|
8
|
+
"description": "Child elements to wrap (ReactNode, required)"
|
|
9
9
|
},
|
|
10
10
|
"fallback": {
|
|
11
|
-
"description": "
|
|
11
|
+
"description": "Fallback UI on error (ReactNode)"
|
|
12
12
|
},
|
|
13
13
|
"onError": {
|
|
14
|
-
"description": "
|
|
14
|
+
"description": "Error callback (error: Error, errorInfo: ErrorInfo) => void"
|
|
15
15
|
}
|
|
16
16
|
},
|
|
17
17
|
"additionalProperties": false,
|
|
18
|
-
"description": "
|
|
18
|
+
"description": "Error boundary. Catches child component render errors and displays fallback UI."
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -13,52 +13,52 @@
|
|
|
13
13
|
"type": "null"
|
|
14
14
|
}
|
|
15
15
|
],
|
|
16
|
-
"description": "
|
|
16
|
+
"description": "Current data array (required)"
|
|
17
17
|
},
|
|
18
18
|
"totalCount": {
|
|
19
19
|
"type": "number",
|
|
20
|
-
"description": "
|
|
20
|
+
"description": "Total count (mutually exclusive with hasMore)"
|
|
21
21
|
},
|
|
22
22
|
"hasMore": {
|
|
23
23
|
"type": "boolean",
|
|
24
|
-
"description": "
|
|
24
|
+
"description": "Has more items (mutually exclusive with totalCount)"
|
|
25
25
|
},
|
|
26
26
|
"tag": {
|
|
27
27
|
"type": "string",
|
|
28
28
|
"default": "div",
|
|
29
|
-
"description": "
|
|
29
|
+
"description": "Children wrapper tag"
|
|
30
30
|
},
|
|
31
31
|
"rootMargin": {
|
|
32
32
|
"type": "number",
|
|
33
33
|
"default": 100,
|
|
34
|
-
"description": "
|
|
34
|
+
"description": "Detection margin (px)"
|
|
35
35
|
},
|
|
36
36
|
"loading": {
|
|
37
37
|
"type": "boolean",
|
|
38
|
-
"description": "
|
|
38
|
+
"description": "Loading state"
|
|
39
39
|
},
|
|
40
40
|
"loadingElement": {
|
|
41
|
-
"description": "
|
|
41
|
+
"description": "Custom loading element"
|
|
42
42
|
},
|
|
43
43
|
"handleLoadMore": {
|
|
44
|
-
"description": "
|
|
44
|
+
"description": "Load more callback () => void, required"
|
|
45
45
|
},
|
|
46
46
|
"scrollTarget": {
|
|
47
|
-
"description": "
|
|
47
|
+
"description": "Scroll target element (HTMLElement | Document | MutableRefObject)"
|
|
48
48
|
},
|
|
49
49
|
"children": {
|
|
50
|
-
"description": "
|
|
50
|
+
"description": "List item rendering (ReactNode, required)"
|
|
51
51
|
},
|
|
52
52
|
"className": {
|
|
53
53
|
"type": "string",
|
|
54
|
-
"description": "
|
|
54
|
+
"description": "Style override"
|
|
55
55
|
}
|
|
56
56
|
},
|
|
57
57
|
"required": [
|
|
58
58
|
"list"
|
|
59
59
|
],
|
|
60
60
|
"additionalProperties": false,
|
|
61
|
-
"description": "
|
|
61
|
+
"description": "Infinite scroll. Based on IntersectionObserver."
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -13,33 +13,36 @@
|
|
|
13
13
|
"down"
|
|
14
14
|
],
|
|
15
15
|
"default": "left",
|
|
16
|
-
"description": "
|
|
16
|
+
"description": "Direction"
|
|
17
17
|
},
|
|
18
18
|
"speed": {
|
|
19
19
|
"type": "number",
|
|
20
20
|
"default": 40,
|
|
21
|
-
"description": "
|
|
21
|
+
"description": "Animation speed (seconds)"
|
|
22
22
|
},
|
|
23
23
|
"pauseOnHover": {
|
|
24
24
|
"type": "boolean",
|
|
25
25
|
"default": false,
|
|
26
|
-
"description": "
|
|
26
|
+
"description": "Pause on hover"
|
|
27
27
|
},
|
|
28
28
|
"gap": {
|
|
29
29
|
"type": "number",
|
|
30
30
|
"default": 16,
|
|
31
|
-
"description": "
|
|
31
|
+
"description": "Item gap (px)"
|
|
32
32
|
},
|
|
33
33
|
"children": {
|
|
34
|
-
"description": "
|
|
34
|
+
"description": "Content to repeat (ReactNode, required)"
|
|
35
|
+
},
|
|
36
|
+
"style": {
|
|
37
|
+
"description": "Inline style (CSSProperties)"
|
|
35
38
|
},
|
|
36
39
|
"className": {
|
|
37
40
|
"type": "string",
|
|
38
|
-
"description": "
|
|
41
|
+
"description": "Style override"
|
|
39
42
|
}
|
|
40
43
|
},
|
|
41
44
|
"additionalProperties": false,
|
|
42
|
-
"description": "
|
|
45
|
+
"description": "Marquee (scrolling text/elements)."
|
|
43
46
|
}
|
|
44
47
|
},
|
|
45
48
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -5,16 +5,94 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"component": {
|
|
8
|
-
"description": "
|
|
8
|
+
"description": "Modal component (required). Automatically receives close/resolve as props"
|
|
9
9
|
},
|
|
10
10
|
"props": {
|
|
11
11
|
"type": "object",
|
|
12
12
|
"additionalProperties": {},
|
|
13
|
-
"description": "
|
|
13
|
+
"description": "Props to pass to component"
|
|
14
|
+
},
|
|
15
|
+
"id": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Modal ID (used for duplicate check)"
|
|
18
|
+
},
|
|
19
|
+
"layout": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"enum": [
|
|
22
|
+
"default",
|
|
23
|
+
"bottom-sheet",
|
|
24
|
+
"slide-left",
|
|
25
|
+
"slide-right",
|
|
26
|
+
"full-page",
|
|
27
|
+
"full-page-reverse",
|
|
28
|
+
"draggable"
|
|
29
|
+
],
|
|
30
|
+
"description": "Layout"
|
|
31
|
+
},
|
|
32
|
+
"animation": {
|
|
33
|
+
"type": "object",
|
|
34
|
+
"properties": {
|
|
35
|
+
"name": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Animation name"
|
|
38
|
+
},
|
|
39
|
+
"mobile": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Mobile animation name"
|
|
42
|
+
},
|
|
43
|
+
"delay": {
|
|
44
|
+
"type": "number",
|
|
45
|
+
"description": "Delay (ms)"
|
|
46
|
+
},
|
|
47
|
+
"duration": {
|
|
48
|
+
"type": "number",
|
|
49
|
+
"description": "Duration (ms)"
|
|
50
|
+
},
|
|
51
|
+
"timingFunc": {
|
|
52
|
+
"type": "string",
|
|
53
|
+
"description": "Timing function"
|
|
54
|
+
},
|
|
55
|
+
"leaveTimingFunc": {
|
|
56
|
+
"type": "string",
|
|
57
|
+
"description": "Exit timing function"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"additionalProperties": false,
|
|
61
|
+
"description": "Modal animation"
|
|
62
|
+
},
|
|
63
|
+
"scrollEnable": {
|
|
64
|
+
"type": "boolean",
|
|
65
|
+
"description": "Allow background scroll"
|
|
66
|
+
},
|
|
67
|
+
"isToggle": {
|
|
68
|
+
"type": "boolean",
|
|
69
|
+
"description": "Toggle mode (close on re-call of same modal)"
|
|
70
|
+
},
|
|
71
|
+
"isAlone": {
|
|
72
|
+
"type": "boolean",
|
|
73
|
+
"description": "Alone mode (close all existing modals before opening)"
|
|
74
|
+
},
|
|
75
|
+
"duplicateCheck": {
|
|
76
|
+
"type": "boolean",
|
|
77
|
+
"description": "Prevent duplicate opening of same component"
|
|
78
|
+
},
|
|
79
|
+
"disableEscapeKeyPress": {
|
|
80
|
+
"type": "boolean",
|
|
81
|
+
"description": "Disable close via ESC key"
|
|
82
|
+
},
|
|
83
|
+
"componentName": {
|
|
84
|
+
"type": "string",
|
|
85
|
+
"description": "Modal identifier name (used for duplicate check, modal search)"
|
|
86
|
+
},
|
|
87
|
+
"onOpen": {
|
|
88
|
+
"description": "Callback when modal opens"
|
|
89
|
+
},
|
|
90
|
+
"onClose": {
|
|
91
|
+
"description": "Callback when modal closes"
|
|
14
92
|
}
|
|
15
93
|
},
|
|
16
94
|
"additionalProperties": false,
|
|
17
|
-
"description": "modal()
|
|
95
|
+
"description": "modal() function call options. component automatically receives close/resolve as props."
|
|
18
96
|
}
|
|
19
97
|
},
|
|
20
98
|
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
"type": "object",
|
|
6
6
|
"properties": {
|
|
7
7
|
"title": {
|
|
8
|
-
"description": "
|
|
8
|
+
"description": "Header title (ReactNode)"
|
|
9
9
|
},
|
|
10
10
|
"desc": {
|
|
11
|
-
"description": "
|
|
11
|
+
"description": "Header description (ReactNode)"
|
|
12
12
|
},
|
|
13
13
|
"layout": {
|
|
14
14
|
"type": "string",
|
|
@@ -22,101 +22,104 @@
|
|
|
22
22
|
"draggable"
|
|
23
23
|
],
|
|
24
24
|
"default": "default",
|
|
25
|
-
"description": "
|
|
25
|
+
"description": "Layout"
|
|
26
26
|
},
|
|
27
27
|
"showDim": {
|
|
28
28
|
"type": "boolean",
|
|
29
29
|
"default": true,
|
|
30
|
-
"description": "
|
|
30
|
+
"description": "Show dim overlay"
|
|
31
31
|
},
|
|
32
32
|
"dimClose": {
|
|
33
33
|
"type": "boolean",
|
|
34
34
|
"default": true,
|
|
35
|
-
"description": "
|
|
35
|
+
"description": "Close on dim click"
|
|
36
36
|
},
|
|
37
37
|
"hideHeader": {
|
|
38
38
|
"type": "boolean",
|
|
39
39
|
"default": false,
|
|
40
|
-
"description": "
|
|
40
|
+
"description": "Hide header"
|
|
41
41
|
},
|
|
42
42
|
"hideFooter": {
|
|
43
43
|
"type": "boolean",
|
|
44
44
|
"default": true,
|
|
45
|
-
"description": "
|
|
45
|
+
"description": "Hide footer"
|
|
46
46
|
},
|
|
47
47
|
"footer": {
|
|
48
|
-
"description": "
|
|
48
|
+
"description": "Custom footer (ReactElement)"
|
|
49
49
|
},
|
|
50
50
|
"animation": {
|
|
51
51
|
"type": "object",
|
|
52
52
|
"properties": {
|
|
53
53
|
"name": {
|
|
54
54
|
"type": "string",
|
|
55
|
-
"description": "
|
|
55
|
+
"description": "Animation name"
|
|
56
56
|
},
|
|
57
57
|
"mobile": {
|
|
58
58
|
"type": "string",
|
|
59
|
-
"description": "
|
|
59
|
+
"description": "Mobile animation name"
|
|
60
60
|
},
|
|
61
61
|
"delay": {
|
|
62
62
|
"type": "number",
|
|
63
|
-
"description": "
|
|
63
|
+
"description": "Delay (ms)"
|
|
64
64
|
},
|
|
65
65
|
"duration": {
|
|
66
66
|
"type": "number",
|
|
67
|
-
"description": "
|
|
67
|
+
"description": "Duration (ms)"
|
|
68
68
|
},
|
|
69
69
|
"timingFunc": {
|
|
70
70
|
"type": "string",
|
|
71
|
-
"description": "
|
|
71
|
+
"description": "Timing function"
|
|
72
72
|
},
|
|
73
73
|
"leaveTimingFunc": {
|
|
74
74
|
"type": "string",
|
|
75
|
-
"description": "
|
|
75
|
+
"description": "Exit timing function"
|
|
76
76
|
}
|
|
77
77
|
},
|
|
78
78
|
"additionalProperties": false,
|
|
79
|
-
"description": "
|
|
79
|
+
"description": "Modal animation"
|
|
80
80
|
},
|
|
81
81
|
"enableDrag": {
|
|
82
82
|
"type": "boolean",
|
|
83
83
|
"default": true,
|
|
84
|
-
"description": "
|
|
84
|
+
"description": "Enable drag (bottom-sheet/draggable layouts)"
|
|
85
85
|
},
|
|
86
86
|
"dragPersistKey": {
|
|
87
87
|
"type": "string",
|
|
88
|
-
"description": "
|
|
88
|
+
"description": "Drag position persistence key"
|
|
89
|
+
},
|
|
90
|
+
"close": {
|
|
91
|
+
"description": "Modal close function (isAnimation?: boolean) => void (auto-injected)"
|
|
89
92
|
},
|
|
90
93
|
"children": {
|
|
91
|
-
"description": "
|
|
94
|
+
"description": "Modal body (ReactNode, required)"
|
|
92
95
|
},
|
|
93
96
|
"className": {
|
|
94
97
|
"type": "string",
|
|
95
|
-
"description": "
|
|
98
|
+
"description": "Root wrapper style"
|
|
96
99
|
},
|
|
97
100
|
"innerClassName": {
|
|
98
101
|
"type": "string",
|
|
99
|
-
"description": "
|
|
102
|
+
"description": "Modal body style"
|
|
100
103
|
},
|
|
101
104
|
"bodyClassName": {
|
|
102
105
|
"type": "string",
|
|
103
|
-
"description": "
|
|
106
|
+
"description": "Body area style"
|
|
104
107
|
},
|
|
105
108
|
"footerClassName": {
|
|
106
109
|
"type": "string",
|
|
107
|
-
"description": "
|
|
110
|
+
"description": "Footer area style"
|
|
108
111
|
},
|
|
109
112
|
"dimClassName": {
|
|
110
113
|
"type": "string",
|
|
111
|
-
"description": "
|
|
114
|
+
"description": "Dim overlay style"
|
|
112
115
|
},
|
|
113
116
|
"headerClassName": {
|
|
114
117
|
"type": "string",
|
|
115
|
-
"description": "
|
|
118
|
+
"description": "Header area style"
|
|
116
119
|
}
|
|
117
120
|
},
|
|
118
121
|
"additionalProperties": false,
|
|
119
|
-
"description": "
|
|
122
|
+
"description": "Modal template. All modal components must be wrapped with ModalTemplate."
|
|
120
123
|
}
|
|
121
124
|
},
|
|
122
125
|
"$schema": "http://json-schema.org/draft-07/schema#"
|