@refineui/react 0.0.1
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/dist/index.cjs +15530 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3905 -0
- package/dist/index.d.ts +3905 -0
- package/dist/index.js +15445 -0
- package/dist/index.js.map +1 -0
- package/dist/spec/README.md +95 -0
- package/dist/spec/components/accordion.json +126 -0
- package/dist/spec/components/alert.json +71 -0
- package/dist/spec/components/avatar.json +30 -0
- package/dist/spec/components/avatars.json +29 -0
- package/dist/spec/components/badge.json +41 -0
- package/dist/spec/components/box.json +16 -0
- package/dist/spec/components/breadcrumb.json +40 -0
- package/dist/spec/components/bubble.json +31 -0
- package/dist/spec/components/button.json +104 -0
- package/dist/spec/components/calendar.json +52 -0
- package/dist/spec/components/card.json +57 -0
- package/dist/spec/components/carousel.json +65 -0
- package/dist/spec/components/chart.json +34 -0
- package/dist/spec/components/checkbox.json +38 -0
- package/dist/spec/components/chip.json +65 -0
- package/dist/spec/components/command.json +65 -0
- package/dist/spec/components/container.json +16 -0
- package/dist/spec/components/dialog.json +95 -0
- package/dist/spec/components/divider.json +29 -0
- package/dist/spec/components/drawer.json +71 -0
- package/dist/spec/components/dropdown.json +64 -0
- package/dist/spec/components/field.json +31 -0
- package/dist/spec/components/footer.json +45 -0
- package/dist/spec/components/grid.json +17 -0
- package/dist/spec/components/input-otp.json +34 -0
- package/dist/spec/components/input.json +36 -0
- package/dist/spec/components/label.json +24 -0
- package/dist/spec/components/link.json +38 -0
- package/dist/spec/components/menu.json +67 -0
- package/dist/spec/components/navigation-menu.json +74 -0
- package/dist/spec/components/pagination.json +41 -0
- package/dist/spec/components/popover.json +42 -0
- package/dist/spec/components/progress-stepper.json +61 -0
- package/dist/spec/components/progress.json +28 -0
- package/dist/spec/components/radio.json +43 -0
- package/dist/spec/components/resizable.json +34 -0
- package/dist/spec/components/scroll-area.json +50 -0
- package/dist/spec/components/search-field.json +53 -0
- package/dist/spec/components/segmented-control.json +67 -0
- package/dist/spec/components/select.json +113 -0
- package/dist/spec/components/sidebar.json +45 -0
- package/dist/spec/components/skeleton.json +21 -0
- package/dist/spec/components/slider.json +43 -0
- package/dist/spec/components/spacer.json +16 -0
- package/dist/spec/components/spin-button.json +45 -0
- package/dist/spec/components/spinner.json +35 -0
- package/dist/spec/components/stack.json +16 -0
- package/dist/spec/components/stepper.json +62 -0
- package/dist/spec/components/switch.json +52 -0
- package/dist/spec/components/table.json +17 -0
- package/dist/spec/components/tabs.json +77 -0
- package/dist/spec/components/tag.json +65 -0
- package/dist/spec/components/text.json +16 -0
- package/dist/spec/components/textarea.json +22 -0
- package/dist/spec/components/toast.json +45 -0
- package/dist/spec/components/tooltip.json +31 -0
- package/dist/spec/components/tree.json +80 -0
- package/dist/spec/contract-index.json +721 -0
- package/dist/spec/manifest.json +686 -0
- package/dist/spec/schema/component-spec.schema.json +203 -0
- package/dist/spec/token-graph.json +6605 -0
- package/dist/spec/token-trace-v2.json +5170 -0
- package/package.json +54 -0
- package/refineui.css +2275 -0
- package/spec/README.md +95 -0
- package/spec/components/accordion.json +126 -0
- package/spec/components/alert.json +71 -0
- package/spec/components/avatar.json +30 -0
- package/spec/components/avatars.json +29 -0
- package/spec/components/badge.json +41 -0
- package/spec/components/box.json +16 -0
- package/spec/components/breadcrumb.json +40 -0
- package/spec/components/bubble.json +31 -0
- package/spec/components/button.json +104 -0
- package/spec/components/calendar.json +52 -0
- package/spec/components/card.json +57 -0
- package/spec/components/carousel.json +65 -0
- package/spec/components/chart.json +34 -0
- package/spec/components/checkbox.json +38 -0
- package/spec/components/chip.json +65 -0
- package/spec/components/command.json +65 -0
- package/spec/components/container.json +16 -0
- package/spec/components/dialog.json +95 -0
- package/spec/components/divider.json +29 -0
- package/spec/components/drawer.json +71 -0
- package/spec/components/dropdown.json +64 -0
- package/spec/components/field.json +31 -0
- package/spec/components/footer.json +45 -0
- package/spec/components/grid.json +17 -0
- package/spec/components/input-otp.json +34 -0
- package/spec/components/input.json +36 -0
- package/spec/components/label.json +24 -0
- package/spec/components/link.json +38 -0
- package/spec/components/menu.json +67 -0
- package/spec/components/navigation-menu.json +74 -0
- package/spec/components/pagination.json +41 -0
- package/spec/components/popover.json +42 -0
- package/spec/components/progress-stepper.json +61 -0
- package/spec/components/progress.json +28 -0
- package/spec/components/radio.json +43 -0
- package/spec/components/resizable.json +34 -0
- package/spec/components/scroll-area.json +50 -0
- package/spec/components/search-field.json +53 -0
- package/spec/components/segmented-control.json +67 -0
- package/spec/components/select.json +113 -0
- package/spec/components/sidebar.json +45 -0
- package/spec/components/skeleton.json +21 -0
- package/spec/components/slider.json +43 -0
- package/spec/components/spacer.json +16 -0
- package/spec/components/spin-button.json +45 -0
- package/spec/components/spinner.json +35 -0
- package/spec/components/stack.json +16 -0
- package/spec/components/stepper.json +62 -0
- package/spec/components/switch.json +52 -0
- package/spec/components/table.json +17 -0
- package/spec/components/tabs.json +77 -0
- package/spec/components/tag.json +65 -0
- package/spec/components/text.json +16 -0
- package/spec/components/textarea.json +22 -0
- package/spec/components/toast.json +45 -0
- package/spec/components/tooltip.json +31 -0
- package/spec/components/tree.json +80 -0
- package/spec/manifest.json +686 -0
- package/spec/schema/component-spec.schema.json +203 -0
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "select",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Select",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "select-trigger",
|
|
8
|
+
"select_item": "select-item",
|
|
9
|
+
"select_menu": "select-menu"
|
|
10
|
+
},
|
|
11
|
+
"attributes": {
|
|
12
|
+
"data-refineui": "select-trigger"
|
|
13
|
+
},
|
|
14
|
+
"variants": {
|
|
15
|
+
"appearance": [
|
|
16
|
+
"filled",
|
|
17
|
+
"plain"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"states": {
|
|
21
|
+
"pseudo": [
|
|
22
|
+
"focus-visible"
|
|
23
|
+
],
|
|
24
|
+
"component": {
|
|
25
|
+
"data-state": [
|
|
26
|
+
"open",
|
|
27
|
+
"closed",
|
|
28
|
+
"pressed",
|
|
29
|
+
"selected"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"environment": [
|
|
33
|
+
"forced-colors",
|
|
34
|
+
"dir"
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"dom": {
|
|
38
|
+
"select-trigger": {
|
|
39
|
+
"states": {
|
|
40
|
+
"component": {
|
|
41
|
+
"data-state": [
|
|
42
|
+
"open",
|
|
43
|
+
"closed"
|
|
44
|
+
]
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"select-item": {
|
|
49
|
+
"states": {
|
|
50
|
+
"component": {
|
|
51
|
+
"data-state": [
|
|
52
|
+
"pressed",
|
|
53
|
+
"selected"
|
|
54
|
+
]
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"accessibility": {
|
|
60
|
+
"select-trigger": {
|
|
61
|
+
"element": "button",
|
|
62
|
+
"role": "combobox",
|
|
63
|
+
"requiredAttributes": {
|
|
64
|
+
"aria-expanded": {
|
|
65
|
+
"required": true,
|
|
66
|
+
"type": "boolean"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"select-menu": {
|
|
71
|
+
"element": "div",
|
|
72
|
+
"role": "listbox"
|
|
73
|
+
},
|
|
74
|
+
"select-item": {
|
|
75
|
+
"element": "div",
|
|
76
|
+
"role": "option",
|
|
77
|
+
"requiredAttributes": {
|
|
78
|
+
"aria-selected": {
|
|
79
|
+
"required": true,
|
|
80
|
+
"type": "boolean"
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
"keyboard": {
|
|
86
|
+
"Escape": "close",
|
|
87
|
+
"ArrowDown": "next-trigger",
|
|
88
|
+
"ArrowUp": "previous-trigger",
|
|
89
|
+
"Home": "first-trigger",
|
|
90
|
+
"End": "last-trigger",
|
|
91
|
+
"Enter": {
|
|
92
|
+
"action": "activate",
|
|
93
|
+
"native": true
|
|
94
|
+
},
|
|
95
|
+
"Space": {
|
|
96
|
+
"action": "activate",
|
|
97
|
+
"native": true
|
|
98
|
+
}
|
|
99
|
+
},
|
|
100
|
+
"focus": {
|
|
101
|
+
"visual": {
|
|
102
|
+
"required": true,
|
|
103
|
+
"selector": ":focus-visible"
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"layout": {
|
|
107
|
+
"direction": "logical",
|
|
108
|
+
"rtl": true
|
|
109
|
+
},
|
|
110
|
+
"tokens": {
|
|
111
|
+
"visual": "select"
|
|
112
|
+
}
|
|
113
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "sidebar",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Sidebar",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "sidebar",
|
|
8
|
+
"brand": "sidebar-brand",
|
|
9
|
+
"content": "sidebar-content",
|
|
10
|
+
"footer": "sidebar-footer",
|
|
11
|
+
"group": "sidebar-group",
|
|
12
|
+
"group_label": "sidebar-group-label",
|
|
13
|
+
"header": "sidebar-header",
|
|
14
|
+
"link": "sidebar-link",
|
|
15
|
+
"nav": "sidebar-nav",
|
|
16
|
+
"peek": "sidebar-peek",
|
|
17
|
+
"peek_edge": "sidebar-peek-edge",
|
|
18
|
+
"peek_inset": "sidebar-peek-inset",
|
|
19
|
+
"peek_panel": "sidebar-peek-panel",
|
|
20
|
+
"peek_pin": "sidebar-peek-pin",
|
|
21
|
+
"peek_surface": "sidebar-peek-surface"
|
|
22
|
+
},
|
|
23
|
+
"attributes": {
|
|
24
|
+
"data-refineui": "sidebar"
|
|
25
|
+
},
|
|
26
|
+
"states": {
|
|
27
|
+
"pseudo": [
|
|
28
|
+
"focus-visible"
|
|
29
|
+
],
|
|
30
|
+
"environment": [
|
|
31
|
+
"forced-colors",
|
|
32
|
+
"dir"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"focus": {
|
|
36
|
+
"visual": {
|
|
37
|
+
"required": true,
|
|
38
|
+
"selector": ":focus-visible"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"layout": {
|
|
42
|
+
"direction": "logical",
|
|
43
|
+
"rtl": true
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "skeleton",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Skeleton",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "skeleton"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "skeleton"
|
|
11
|
+
},
|
|
12
|
+
"accessibility": {
|
|
13
|
+
"skeleton": {
|
|
14
|
+
"element": "div"
|
|
15
|
+
}
|
|
16
|
+
},
|
|
17
|
+
"layout": {
|
|
18
|
+
"direction": "logical",
|
|
19
|
+
"rtl": true
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "slider",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Slider",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "slider"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "slider"
|
|
11
|
+
},
|
|
12
|
+
"variants": {
|
|
13
|
+
"size": [
|
|
14
|
+
"sm",
|
|
15
|
+
"md"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"states": {
|
|
19
|
+
"pseudo": [
|
|
20
|
+
"focus-visible"
|
|
21
|
+
],
|
|
22
|
+
"environment": [
|
|
23
|
+
"forced-colors",
|
|
24
|
+
"dir"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"accessibility": {
|
|
28
|
+
"slider": {
|
|
29
|
+
"element": "input",
|
|
30
|
+
"native": true
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
"focus": {
|
|
34
|
+
"visual": {
|
|
35
|
+
"required": true,
|
|
36
|
+
"selector": ":focus-visible"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"layout": {
|
|
40
|
+
"direction": "logical",
|
|
41
|
+
"rtl": true
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "spacer",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Spacer",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "spacer"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "spacer"
|
|
11
|
+
},
|
|
12
|
+
"layout": {
|
|
13
|
+
"direction": "logical",
|
|
14
|
+
"rtl": true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "spin-button",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "SpinButton",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "spinbutton",
|
|
8
|
+
"step": "spinbutton-step"
|
|
9
|
+
},
|
|
10
|
+
"attributes": {
|
|
11
|
+
"data-refineui": "spinbutton"
|
|
12
|
+
},
|
|
13
|
+
"variants": {
|
|
14
|
+
"size": [
|
|
15
|
+
"sm",
|
|
16
|
+
"md",
|
|
17
|
+
"lg"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"states": {
|
|
21
|
+
"pseudo": [
|
|
22
|
+
"focus-visible"
|
|
23
|
+
],
|
|
24
|
+
"environment": [
|
|
25
|
+
"forced-colors",
|
|
26
|
+
"dir"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"accessibility": {
|
|
30
|
+
"spinbutton": {
|
|
31
|
+
"element": "div",
|
|
32
|
+
"role": "spinbutton"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"focus": {
|
|
36
|
+
"visual": {
|
|
37
|
+
"required": true,
|
|
38
|
+
"selector": ":focus-visible"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"layout": {
|
|
42
|
+
"direction": "logical",
|
|
43
|
+
"rtl": true
|
|
44
|
+
}
|
|
45
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "spinner",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Spinner",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "spinner"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "spinner"
|
|
11
|
+
},
|
|
12
|
+
"variants": {
|
|
13
|
+
"size": [
|
|
14
|
+
"xs",
|
|
15
|
+
"sm",
|
|
16
|
+
"md",
|
|
17
|
+
"lg",
|
|
18
|
+
"xl",
|
|
19
|
+
"xxl"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"accessibility": {
|
|
23
|
+
"spinner": {
|
|
24
|
+
"element": "div",
|
|
25
|
+
"role": "status"
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"layout": {
|
|
29
|
+
"direction": "logical",
|
|
30
|
+
"rtl": true
|
|
31
|
+
},
|
|
32
|
+
"tokens": {
|
|
33
|
+
"visual": "spinner"
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "stack",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Stack",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "stack"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "stack"
|
|
11
|
+
},
|
|
12
|
+
"layout": {
|
|
13
|
+
"direction": "logical",
|
|
14
|
+
"rtl": true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "stepper",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Stepper",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "stepper",
|
|
8
|
+
"content": "stepper-content",
|
|
9
|
+
"description": "stepper-description",
|
|
10
|
+
"indicator": "stepper-indicator",
|
|
11
|
+
"item": "stepper-item",
|
|
12
|
+
"list": "stepper-list",
|
|
13
|
+
"separator": "stepper-separator",
|
|
14
|
+
"separator_fill": "stepper-separator-fill",
|
|
15
|
+
"separator_rail": "stepper-separator-rail",
|
|
16
|
+
"separator_track": "stepper-separator-track",
|
|
17
|
+
"title": "stepper-title"
|
|
18
|
+
},
|
|
19
|
+
"attributes": {
|
|
20
|
+
"data-refineui": "stepper"
|
|
21
|
+
},
|
|
22
|
+
"states": {
|
|
23
|
+
"component": {
|
|
24
|
+
"data-state": [
|
|
25
|
+
"complete",
|
|
26
|
+
"current",
|
|
27
|
+
"upcoming"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"environment": [
|
|
31
|
+
"forced-colors",
|
|
32
|
+
"dir"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"dom": {
|
|
36
|
+
"stepper-item": {
|
|
37
|
+
"states": {
|
|
38
|
+
"component": {
|
|
39
|
+
"data-state": [
|
|
40
|
+
"complete",
|
|
41
|
+
"current",
|
|
42
|
+
"upcoming"
|
|
43
|
+
]
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"keyboard": {
|
|
49
|
+
"Enter": {
|
|
50
|
+
"action": "activate",
|
|
51
|
+
"native": true
|
|
52
|
+
},
|
|
53
|
+
"Space": {
|
|
54
|
+
"action": "activate",
|
|
55
|
+
"native": true
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"layout": {
|
|
59
|
+
"direction": "logical",
|
|
60
|
+
"rtl": true
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "switch",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Switch",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "switch"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "switch"
|
|
11
|
+
},
|
|
12
|
+
"states": {
|
|
13
|
+
"pseudo": [
|
|
14
|
+
"focus-visible"
|
|
15
|
+
],
|
|
16
|
+
"environment": [
|
|
17
|
+
"forced-colors",
|
|
18
|
+
"dir",
|
|
19
|
+
"prefers-contrast"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"accessibility": {
|
|
23
|
+
"switch": {
|
|
24
|
+
"element": "button",
|
|
25
|
+
"role": "switch",
|
|
26
|
+
"native": true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"keyboard": {
|
|
30
|
+
"Enter": {
|
|
31
|
+
"action": "activate",
|
|
32
|
+
"native": true
|
|
33
|
+
},
|
|
34
|
+
"Space": {
|
|
35
|
+
"action": "activate",
|
|
36
|
+
"native": true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"focus": {
|
|
40
|
+
"visual": {
|
|
41
|
+
"required": true,
|
|
42
|
+
"selector": ":focus-visible"
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"layout": {
|
|
46
|
+
"direction": "logical",
|
|
47
|
+
"rtl": true
|
|
48
|
+
},
|
|
49
|
+
"tokens": {
|
|
50
|
+
"visual": "switch"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "table",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Table",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "table",
|
|
8
|
+
"row": "table-row"
|
|
9
|
+
},
|
|
10
|
+
"attributes": {
|
|
11
|
+
"data-refineui": "table"
|
|
12
|
+
},
|
|
13
|
+
"layout": {
|
|
14
|
+
"direction": "logical",
|
|
15
|
+
"rtl": true
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "tabs",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Tabs",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "tabs",
|
|
8
|
+
"tab": "tab",
|
|
9
|
+
"indicator": "tabs-indicator",
|
|
10
|
+
"list": "tabs-list"
|
|
11
|
+
},
|
|
12
|
+
"attributes": {
|
|
13
|
+
"data-refineui": "tabs"
|
|
14
|
+
},
|
|
15
|
+
"states": {
|
|
16
|
+
"pseudo": [
|
|
17
|
+
"focus-visible"
|
|
18
|
+
],
|
|
19
|
+
"environment": [
|
|
20
|
+
"forced-colors",
|
|
21
|
+
"dir",
|
|
22
|
+
"prefers-contrast"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"accessibility": {
|
|
26
|
+
"tabs-list": {
|
|
27
|
+
"element": "div",
|
|
28
|
+
"role": "tablist"
|
|
29
|
+
},
|
|
30
|
+
"tab": {
|
|
31
|
+
"element": "button",
|
|
32
|
+
"role": "tab",
|
|
33
|
+
"requiredAttributes": {
|
|
34
|
+
"aria-selected": {
|
|
35
|
+
"required": true,
|
|
36
|
+
"type": "boolean"
|
|
37
|
+
},
|
|
38
|
+
"aria-controls": {
|
|
39
|
+
"required": true,
|
|
40
|
+
"type": "string"
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"keyboard": {
|
|
46
|
+
"ArrowRight": "next-trigger",
|
|
47
|
+
"ArrowDown": "next-trigger",
|
|
48
|
+
"ArrowLeft": "previous-trigger",
|
|
49
|
+
"ArrowUp": "previous-trigger",
|
|
50
|
+
"Home": "first-trigger",
|
|
51
|
+
"End": "last-trigger",
|
|
52
|
+
"Enter": {
|
|
53
|
+
"action": "activate",
|
|
54
|
+
"native": true
|
|
55
|
+
},
|
|
56
|
+
"Space": {
|
|
57
|
+
"action": "activate",
|
|
58
|
+
"native": true
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"focus": {
|
|
62
|
+
"visual": {
|
|
63
|
+
"required": true,
|
|
64
|
+
"selector": ":focus-visible"
|
|
65
|
+
},
|
|
66
|
+
"behavior": {
|
|
67
|
+
"roving": true
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"layout": {
|
|
71
|
+
"direction": "logical",
|
|
72
|
+
"rtl": true
|
|
73
|
+
},
|
|
74
|
+
"tokens": {
|
|
75
|
+
"visual": "tabs"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "tag",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Tag",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "chip",
|
|
8
|
+
"remove": "chip-remove"
|
|
9
|
+
},
|
|
10
|
+
"attributes": {
|
|
11
|
+
"data-refineui": "chip"
|
|
12
|
+
},
|
|
13
|
+
"variants": {
|
|
14
|
+
"variant": [
|
|
15
|
+
"default",
|
|
16
|
+
"outline",
|
|
17
|
+
"filled"
|
|
18
|
+
],
|
|
19
|
+
"size": [
|
|
20
|
+
"sm",
|
|
21
|
+
"md",
|
|
22
|
+
"lg"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"recipe": "chip",
|
|
26
|
+
"tokens": {
|
|
27
|
+
"visual": "chip"
|
|
28
|
+
},
|
|
29
|
+
"states": {
|
|
30
|
+
"pseudo": [
|
|
31
|
+
"focus-visible"
|
|
32
|
+
],
|
|
33
|
+
"environment": [
|
|
34
|
+
"forced-colors",
|
|
35
|
+
"dir",
|
|
36
|
+
"prefers-contrast"
|
|
37
|
+
]
|
|
38
|
+
},
|
|
39
|
+
"accessibility": {
|
|
40
|
+
"chip-remove": {
|
|
41
|
+
"element": "button",
|
|
42
|
+
"native": true
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"keyboard": {
|
|
46
|
+
"Enter": {
|
|
47
|
+
"action": "activate",
|
|
48
|
+
"native": true
|
|
49
|
+
},
|
|
50
|
+
"Space": {
|
|
51
|
+
"action": "activate",
|
|
52
|
+
"native": true
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"focus": {
|
|
56
|
+
"visual": {
|
|
57
|
+
"required": true,
|
|
58
|
+
"selector": ":focus-visible"
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
"layout": {
|
|
62
|
+
"direction": "logical",
|
|
63
|
+
"rtl": true
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "text",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Text",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "text"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "text"
|
|
11
|
+
},
|
|
12
|
+
"layout": {
|
|
13
|
+
"direction": "logical",
|
|
14
|
+
"rtl": true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "textarea",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Textarea",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "textarea"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "textarea"
|
|
11
|
+
},
|
|
12
|
+
"accessibility": {
|
|
13
|
+
"textarea": {
|
|
14
|
+
"element": "input",
|
|
15
|
+
"native": true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"layout": {
|
|
19
|
+
"direction": "logical",
|
|
20
|
+
"rtl": true
|
|
21
|
+
}
|
|
22
|
+
}
|