@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,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "carousel",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Carousel",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "carousel",
|
|
8
|
+
"controls": "carousel-controls",
|
|
9
|
+
"indicator": "carousel-indicator",
|
|
10
|
+
"indicator_hits": "carousel-indicator-hits",
|
|
11
|
+
"indicator_thumb": "carousel-indicator-thumb",
|
|
12
|
+
"indicators": "carousel-indicators",
|
|
13
|
+
"item": "carousel-item",
|
|
14
|
+
"nav": "carousel-nav",
|
|
15
|
+
"track": "carousel-track",
|
|
16
|
+
"viewport": "carousel-viewport"
|
|
17
|
+
},
|
|
18
|
+
"attributes": {
|
|
19
|
+
"data-refineui": "carousel"
|
|
20
|
+
},
|
|
21
|
+
"states": {
|
|
22
|
+
"pseudo": [
|
|
23
|
+
"focus-visible"
|
|
24
|
+
],
|
|
25
|
+
"environment": [
|
|
26
|
+
"forced-colors",
|
|
27
|
+
"dir"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"accessibility": {
|
|
31
|
+
"carousel": {
|
|
32
|
+
"element": "div"
|
|
33
|
+
},
|
|
34
|
+
"carousel-item": {
|
|
35
|
+
"element": "div",
|
|
36
|
+
"role": "group"
|
|
37
|
+
},
|
|
38
|
+
"carousel-indicator": {
|
|
39
|
+
"element": "button",
|
|
40
|
+
"role": "tab",
|
|
41
|
+
"requiredAttributes": {
|
|
42
|
+
"aria-selected": {
|
|
43
|
+
"required": true,
|
|
44
|
+
"type": "boolean"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
},
|
|
49
|
+
"keyboard": {
|
|
50
|
+
"ArrowRight": "next-trigger",
|
|
51
|
+
"ArrowLeft": "previous-trigger",
|
|
52
|
+
"Home": "first-trigger",
|
|
53
|
+
"End": "last-trigger"
|
|
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,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "chart",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Chart",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "chart",
|
|
8
|
+
"axis_labels": "chart-axis-labels",
|
|
9
|
+
"bar": "chart-bar",
|
|
10
|
+
"bar_track": "chart-bar-track",
|
|
11
|
+
"bars": "chart-bars",
|
|
12
|
+
"body": "chart-body",
|
|
13
|
+
"content": "chart-content",
|
|
14
|
+
"grid": "chart-grid",
|
|
15
|
+
"hit_area": "chart-hit-area",
|
|
16
|
+
"legend": "chart-legend",
|
|
17
|
+
"legend_item": "chart-legend-item",
|
|
18
|
+
"line": "chart-line",
|
|
19
|
+
"line_area": "chart-line-area",
|
|
20
|
+
"line_stroke": "chart-line-stroke",
|
|
21
|
+
"plot": "chart-plot",
|
|
22
|
+
"plot_frame": "chart-plot-frame",
|
|
23
|
+
"point": "chart-point",
|
|
24
|
+
"tooltip": "chart-tooltip",
|
|
25
|
+
"y_axis": "chart-y-axis"
|
|
26
|
+
},
|
|
27
|
+
"attributes": {
|
|
28
|
+
"data-refineui": "chart"
|
|
29
|
+
},
|
|
30
|
+
"layout": {
|
|
31
|
+
"direction": "logical",
|
|
32
|
+
"rtl": true
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "checkbox",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Checkbox",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "checkbox"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "checkbox"
|
|
11
|
+
},
|
|
12
|
+
"variants": {
|
|
13
|
+
"variant": [
|
|
14
|
+
"default",
|
|
15
|
+
"circular"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"states": {
|
|
19
|
+
"environment": [
|
|
20
|
+
"forced-colors",
|
|
21
|
+
"dir",
|
|
22
|
+
"prefers-contrast"
|
|
23
|
+
]
|
|
24
|
+
},
|
|
25
|
+
"keyboard": {
|
|
26
|
+
"Space": {
|
|
27
|
+
"action": "activate",
|
|
28
|
+
"native": true
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"layout": {
|
|
32
|
+
"direction": "logical",
|
|
33
|
+
"rtl": true
|
|
34
|
+
},
|
|
35
|
+
"tokens": {
|
|
36
|
+
"visual": "checkbox"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "chip",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Chip",
|
|
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,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "command",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Command",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "command",
|
|
8
|
+
"empty": "command-empty",
|
|
9
|
+
"group": "command-group",
|
|
10
|
+
"group_heading": "command-group-heading",
|
|
11
|
+
"input": "command-input",
|
|
12
|
+
"item": "command-item",
|
|
13
|
+
"list": "command-list",
|
|
14
|
+
"separator": "command-separator",
|
|
15
|
+
"shortcut": "command-shortcut"
|
|
16
|
+
},
|
|
17
|
+
"attributes": {
|
|
18
|
+
"data-refineui": "command"
|
|
19
|
+
},
|
|
20
|
+
"states": {
|
|
21
|
+
"pseudo": [
|
|
22
|
+
"focus-visible"
|
|
23
|
+
],
|
|
24
|
+
"component": {
|
|
25
|
+
"data-state": [
|
|
26
|
+
"disabled",
|
|
27
|
+
"active",
|
|
28
|
+
"default"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"environment": [
|
|
32
|
+
"forced-colors",
|
|
33
|
+
"dir"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"accessibility": {
|
|
37
|
+
"command-item": {
|
|
38
|
+
"element": "div",
|
|
39
|
+
"role": "option",
|
|
40
|
+
"requiredAttributes": {
|
|
41
|
+
"aria-selected": {
|
|
42
|
+
"required": true,
|
|
43
|
+
"type": "boolean"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"keyboard": {
|
|
49
|
+
"ArrowDown": "next-trigger",
|
|
50
|
+
"ArrowUp": "previous-trigger",
|
|
51
|
+
"Home": "first-trigger",
|
|
52
|
+
"End": "last-trigger",
|
|
53
|
+
"Enter": "activate"
|
|
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": "container",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Container",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "container"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "container"
|
|
11
|
+
},
|
|
12
|
+
"layout": {
|
|
13
|
+
"direction": "logical",
|
|
14
|
+
"rtl": true
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "dialog",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Dialog",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "dialog",
|
|
8
|
+
"scrim": "presentation",
|
|
9
|
+
"panel": "panel",
|
|
10
|
+
"header": "header",
|
|
11
|
+
"title": "title",
|
|
12
|
+
"description": "description",
|
|
13
|
+
"body": "content",
|
|
14
|
+
"close": "close"
|
|
15
|
+
},
|
|
16
|
+
"variants": {
|
|
17
|
+
"size": [
|
|
18
|
+
"sm",
|
|
19
|
+
"lg"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"states": {
|
|
23
|
+
"pseudo": [
|
|
24
|
+
"focus-visible"
|
|
25
|
+
],
|
|
26
|
+
"component": {
|
|
27
|
+
"data-state": [
|
|
28
|
+
"open",
|
|
29
|
+
"closed"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"environment": [
|
|
33
|
+
"forced-colors",
|
|
34
|
+
"dir",
|
|
35
|
+
"prefers-contrast"
|
|
36
|
+
]
|
|
37
|
+
},
|
|
38
|
+
"attributes": {
|
|
39
|
+
"data-refineui": "dialog"
|
|
40
|
+
},
|
|
41
|
+
"dom": {
|
|
42
|
+
"dialog": {
|
|
43
|
+
"states": {
|
|
44
|
+
"component": {
|
|
45
|
+
"data-state": [
|
|
46
|
+
"open",
|
|
47
|
+
"closed"
|
|
48
|
+
]
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"accessibility": {
|
|
54
|
+
"dialog": {
|
|
55
|
+
"element": "div",
|
|
56
|
+
"role": "dialog",
|
|
57
|
+
"requiredAttributes": {
|
|
58
|
+
"aria-modal": {
|
|
59
|
+
"required": true,
|
|
60
|
+
"type": "boolean"
|
|
61
|
+
},
|
|
62
|
+
"aria-labelledby": {
|
|
63
|
+
"required": true,
|
|
64
|
+
"type": "string"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"labeling": {
|
|
68
|
+
"labelledBy": "title",
|
|
69
|
+
"describedBy": "optional"
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
"keyboard": {
|
|
74
|
+
"Escape": "close"
|
|
75
|
+
},
|
|
76
|
+
"focus": {
|
|
77
|
+
"visual": {
|
|
78
|
+
"required": true,
|
|
79
|
+
"selector": ":focus-visible"
|
|
80
|
+
},
|
|
81
|
+
"behavior": {
|
|
82
|
+
"trap": true,
|
|
83
|
+
"initial": "first-focusable",
|
|
84
|
+
"return": "trigger"
|
|
85
|
+
}
|
|
86
|
+
},
|
|
87
|
+
"layout": {
|
|
88
|
+
"direction": "logical",
|
|
89
|
+
"rtl": true
|
|
90
|
+
},
|
|
91
|
+
"tokens": {
|
|
92
|
+
"visual": "dialog"
|
|
93
|
+
},
|
|
94
|
+
"recipe": "dialog"
|
|
95
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "divider",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Divider",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "divider"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "divider"
|
|
11
|
+
},
|
|
12
|
+
"variants": {
|
|
13
|
+
"layout": [
|
|
14
|
+
"default",
|
|
15
|
+
"content",
|
|
16
|
+
"icon"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"accessibility": {
|
|
20
|
+
"divider": {
|
|
21
|
+
"element": "div",
|
|
22
|
+
"role": "separator"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"layout": {
|
|
26
|
+
"direction": "logical",
|
|
27
|
+
"rtl": true
|
|
28
|
+
}
|
|
29
|
+
}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "drawer",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Drawer",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "drawer"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "drawer"
|
|
11
|
+
},
|
|
12
|
+
"variants": {
|
|
13
|
+
"type": [
|
|
14
|
+
"overlay",
|
|
15
|
+
"inline"
|
|
16
|
+
],
|
|
17
|
+
"size": [
|
|
18
|
+
"sm",
|
|
19
|
+
"md",
|
|
20
|
+
"lg"
|
|
21
|
+
]
|
|
22
|
+
},
|
|
23
|
+
"states": {
|
|
24
|
+
"component": {
|
|
25
|
+
"data-state": [
|
|
26
|
+
"open",
|
|
27
|
+
"closed"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"environment": [
|
|
31
|
+
"forced-colors",
|
|
32
|
+
"dir"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
"dom": {
|
|
36
|
+
"drawer": {
|
|
37
|
+
"states": {
|
|
38
|
+
"component": {
|
|
39
|
+
"data-state": [
|
|
40
|
+
"open",
|
|
41
|
+
"closed"
|
|
42
|
+
]
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
},
|
|
47
|
+
"accessibility": {
|
|
48
|
+
"drawer": {
|
|
49
|
+
"element": "div",
|
|
50
|
+
"role": "dialog"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"keyboard": {
|
|
54
|
+
"Escape": "close"
|
|
55
|
+
},
|
|
56
|
+
"focus": {
|
|
57
|
+
"visual": {
|
|
58
|
+
"required": true,
|
|
59
|
+
"selector": ":focus-visible"
|
|
60
|
+
},
|
|
61
|
+
"behavior": {
|
|
62
|
+
"trap": true,
|
|
63
|
+
"initial": "first-focusable",
|
|
64
|
+
"return": "trigger"
|
|
65
|
+
}
|
|
66
|
+
},
|
|
67
|
+
"layout": {
|
|
68
|
+
"direction": "logical",
|
|
69
|
+
"rtl": true
|
|
70
|
+
}
|
|
71
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "dropdown",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Dropdown",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "dropdown-menu-root",
|
|
8
|
+
"dropdown_item": "dropdown-item",
|
|
9
|
+
"group": "dropdown-menu-group",
|
|
10
|
+
"label": "dropdown-menu-label",
|
|
11
|
+
"separator": "dropdown-menu-separator",
|
|
12
|
+
"shortcut": "dropdown-menu-shortcut"
|
|
13
|
+
},
|
|
14
|
+
"attributes": {
|
|
15
|
+
"data-refineui": "dropdown-menu"
|
|
16
|
+
},
|
|
17
|
+
"states": {
|
|
18
|
+
"pseudo": [
|
|
19
|
+
"focus-visible"
|
|
20
|
+
],
|
|
21
|
+
"component": {
|
|
22
|
+
"data-state": [
|
|
23
|
+
"pressed",
|
|
24
|
+
"selected",
|
|
25
|
+
"open"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"environment": [
|
|
29
|
+
"forced-colors",
|
|
30
|
+
"dir"
|
|
31
|
+
]
|
|
32
|
+
},
|
|
33
|
+
"accessibility": {
|
|
34
|
+
"dropdown-menu": {
|
|
35
|
+
"element": "div",
|
|
36
|
+
"role": "menu"
|
|
37
|
+
},
|
|
38
|
+
"dropdown-item": {
|
|
39
|
+
"element": "div",
|
|
40
|
+
"role": "menuitem"
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
"keyboard": {
|
|
44
|
+
"Escape": "close",
|
|
45
|
+
"Enter": {
|
|
46
|
+
"action": "activate",
|
|
47
|
+
"native": true
|
|
48
|
+
},
|
|
49
|
+
"Space": {
|
|
50
|
+
"action": "activate",
|
|
51
|
+
"native": true
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
"focus": {
|
|
55
|
+
"visual": {
|
|
56
|
+
"required": true,
|
|
57
|
+
"selector": ":focus-visible"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"layout": {
|
|
61
|
+
"direction": "logical",
|
|
62
|
+
"rtl": true
|
|
63
|
+
}
|
|
64
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "field",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Field",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "field",
|
|
8
|
+
"error": "field-error",
|
|
9
|
+
"hint": "field-hint"
|
|
10
|
+
},
|
|
11
|
+
"attributes": {
|
|
12
|
+
"data-refineui": "field"
|
|
13
|
+
},
|
|
14
|
+
"variants": {
|
|
15
|
+
"size": [
|
|
16
|
+
"sm",
|
|
17
|
+
"md",
|
|
18
|
+
"lg"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"accessibility": {
|
|
22
|
+
"field-error": {
|
|
23
|
+
"element": "div",
|
|
24
|
+
"role": "alert"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"layout": {
|
|
28
|
+
"direction": "logical",
|
|
29
|
+
"rtl": true
|
|
30
|
+
}
|
|
31
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "footer",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Footer",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "footer",
|
|
8
|
+
"brand": "footer-brand",
|
|
9
|
+
"brand_description": "footer-brand-description",
|
|
10
|
+
"brand_name": "footer-brand-name",
|
|
11
|
+
"copyright": "footer-copyright",
|
|
12
|
+
"explore": "footer-explore",
|
|
13
|
+
"group": "footer-group",
|
|
14
|
+
"group_label": "footer-group-label",
|
|
15
|
+
"link": "footer-link",
|
|
16
|
+
"locale": "footer-locale",
|
|
17
|
+
"logo": "footer-logo",
|
|
18
|
+
"meta": "footer-meta",
|
|
19
|
+
"meta_end": "footer-meta-end",
|
|
20
|
+
"nav": "footer-nav",
|
|
21
|
+
"social": "footer-social"
|
|
22
|
+
},
|
|
23
|
+
"attributes": {
|
|
24
|
+
"data-refineui": "footer"
|
|
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,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "grid",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Grid",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "grid",
|
|
8
|
+
"item": "grid-item"
|
|
9
|
+
},
|
|
10
|
+
"attributes": {
|
|
11
|
+
"data-refineui": "grid"
|
|
12
|
+
},
|
|
13
|
+
"layout": {
|
|
14
|
+
"direction": "logical",
|
|
15
|
+
"rtl": true
|
|
16
|
+
}
|
|
17
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "input-otp",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "InputOTP",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "input-otp",
|
|
8
|
+
"slot": "input-otp-slot"
|
|
9
|
+
},
|
|
10
|
+
"attributes": {
|
|
11
|
+
"data-refineui": "input-otp"
|
|
12
|
+
},
|
|
13
|
+
"variants": {
|
|
14
|
+
"size": [
|
|
15
|
+
"sm",
|
|
16
|
+
"md",
|
|
17
|
+
"lg"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"accessibility": {
|
|
21
|
+
"input-otp": {
|
|
22
|
+
"element": "div",
|
|
23
|
+
"role": "group"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"keyboard": {
|
|
27
|
+
"ArrowLeft": "previous-trigger",
|
|
28
|
+
"ArrowRight": "next-trigger"
|
|
29
|
+
},
|
|
30
|
+
"layout": {
|
|
31
|
+
"direction": "logical",
|
|
32
|
+
"rtl": true
|
|
33
|
+
}
|
|
34
|
+
}
|