@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,36 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "input",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Input",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "input"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "input"
|
|
11
|
+
},
|
|
12
|
+
"variants": {
|
|
13
|
+
"size": [
|
|
14
|
+
"sm",
|
|
15
|
+
"md",
|
|
16
|
+
"lg"
|
|
17
|
+
]
|
|
18
|
+
},
|
|
19
|
+
"accessibility": {
|
|
20
|
+
"input": {
|
|
21
|
+
"element": "input",
|
|
22
|
+
"native": true
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"layout": {
|
|
26
|
+
"direction": "logical",
|
|
27
|
+
"rtl": true
|
|
28
|
+
},
|
|
29
|
+
"states": {
|
|
30
|
+
"environment": [
|
|
31
|
+
"forced-colors",
|
|
32
|
+
"dir",
|
|
33
|
+
"prefers-contrast"
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "label",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Label",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "label",
|
|
8
|
+
"required": "label-required"
|
|
9
|
+
},
|
|
10
|
+
"attributes": {
|
|
11
|
+
"data-refineui": "label"
|
|
12
|
+
},
|
|
13
|
+
"variants": {
|
|
14
|
+
"size": [
|
|
15
|
+
"sm",
|
|
16
|
+
"md",
|
|
17
|
+
"lg"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"layout": {
|
|
21
|
+
"direction": "logical",
|
|
22
|
+
"rtl": true
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "link",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Link",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "link"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "link"
|
|
11
|
+
},
|
|
12
|
+
"states": {
|
|
13
|
+
"pseudo": [
|
|
14
|
+
"focus-visible"
|
|
15
|
+
],
|
|
16
|
+
"environment": [
|
|
17
|
+
"forced-colors",
|
|
18
|
+
"dir",
|
|
19
|
+
"prefers-contrast"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"keyboard": {
|
|
23
|
+
"Enter": {
|
|
24
|
+
"action": "activate",
|
|
25
|
+
"native": true
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
"focus": {
|
|
29
|
+
"visual": {
|
|
30
|
+
"required": true,
|
|
31
|
+
"selector": ":focus-visible"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"layout": {
|
|
35
|
+
"direction": "logical",
|
|
36
|
+
"rtl": true
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "menu",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Menu",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "menu-root",
|
|
8
|
+
"divider": "menu-divider",
|
|
9
|
+
"item": "menu-item",
|
|
10
|
+
"popover": "menu-popover",
|
|
11
|
+
"section": "menu-section"
|
|
12
|
+
},
|
|
13
|
+
"attributes": {
|
|
14
|
+
"data-refineui": "menu"
|
|
15
|
+
},
|
|
16
|
+
"states": {
|
|
17
|
+
"pseudo": [
|
|
18
|
+
"focus-visible"
|
|
19
|
+
],
|
|
20
|
+
"component": {
|
|
21
|
+
"data-state": [
|
|
22
|
+
"open",
|
|
23
|
+
"closed",
|
|
24
|
+
"default",
|
|
25
|
+
"hover",
|
|
26
|
+
"pressed",
|
|
27
|
+
"active",
|
|
28
|
+
"disabled"
|
|
29
|
+
]
|
|
30
|
+
},
|
|
31
|
+
"environment": [
|
|
32
|
+
"forced-colors",
|
|
33
|
+
"dir"
|
|
34
|
+
]
|
|
35
|
+
},
|
|
36
|
+
"accessibility": {
|
|
37
|
+
"menu": {
|
|
38
|
+
"element": "div",
|
|
39
|
+
"role": "menu"
|
|
40
|
+
},
|
|
41
|
+
"menu-item": {
|
|
42
|
+
"element": "div",
|
|
43
|
+
"role": "menuitem"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"keyboard": {
|
|
47
|
+
"Escape": "close",
|
|
48
|
+
"Enter": {
|
|
49
|
+
"action": "activate",
|
|
50
|
+
"native": true
|
|
51
|
+
},
|
|
52
|
+
"Space": {
|
|
53
|
+
"action": "activate",
|
|
54
|
+
"native": true
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"focus": {
|
|
58
|
+
"visual": {
|
|
59
|
+
"required": true,
|
|
60
|
+
"selector": ":focus-visible"
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"layout": {
|
|
64
|
+
"direction": "logical",
|
|
65
|
+
"rtl": true
|
|
66
|
+
}
|
|
67
|
+
}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "navigation-menu",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "NavigationMenu",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "navigation-menu",
|
|
8
|
+
"content": "navigation-menu-content",
|
|
9
|
+
"content_panel": "navigation-menu-content-panel",
|
|
10
|
+
"indicator": "navigation-menu-indicator",
|
|
11
|
+
"item": "navigation-menu-item",
|
|
12
|
+
"link": "navigation-menu-link",
|
|
13
|
+
"list": "navigation-menu-list",
|
|
14
|
+
"trigger": "navigation-menu-trigger"
|
|
15
|
+
},
|
|
16
|
+
"attributes": {
|
|
17
|
+
"data-refineui": "navigation-menu"
|
|
18
|
+
},
|
|
19
|
+
"states": {
|
|
20
|
+
"pseudo": [
|
|
21
|
+
"focus-visible"
|
|
22
|
+
],
|
|
23
|
+
"component": {
|
|
24
|
+
"data-state": [
|
|
25
|
+
"open",
|
|
26
|
+
"closed"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"environment": [
|
|
30
|
+
"forced-colors",
|
|
31
|
+
"dir"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"accessibility": {
|
|
35
|
+
"navigation-menu-trigger": {
|
|
36
|
+
"element": "button",
|
|
37
|
+
"requiredAttributes": {
|
|
38
|
+
"aria-expanded": {
|
|
39
|
+
"required": true,
|
|
40
|
+
"type": "boolean"
|
|
41
|
+
},
|
|
42
|
+
"aria-controls": {
|
|
43
|
+
"required": true,
|
|
44
|
+
"type": "string"
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"navigation-menu-content": {
|
|
49
|
+
"element": "div",
|
|
50
|
+
"role": "region"
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
"keyboard": {
|
|
54
|
+
"Escape": "close",
|
|
55
|
+
"Enter": {
|
|
56
|
+
"action": "activate",
|
|
57
|
+
"native": true
|
|
58
|
+
},
|
|
59
|
+
"Space": {
|
|
60
|
+
"action": "activate",
|
|
61
|
+
"native": true
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
"focus": {
|
|
65
|
+
"visual": {
|
|
66
|
+
"required": true,
|
|
67
|
+
"selector": ":focus-visible"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"layout": {
|
|
71
|
+
"direction": "logical",
|
|
72
|
+
"rtl": true
|
|
73
|
+
}
|
|
74
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "pagination",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Pagination",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "pagination"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "pagination"
|
|
11
|
+
},
|
|
12
|
+
"states": {
|
|
13
|
+
"pseudo": [
|
|
14
|
+
"focus-visible"
|
|
15
|
+
],
|
|
16
|
+
"environment": [
|
|
17
|
+
"forced-colors",
|
|
18
|
+
"dir"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"keyboard": {
|
|
22
|
+
"Enter": {
|
|
23
|
+
"action": "activate",
|
|
24
|
+
"native": true
|
|
25
|
+
},
|
|
26
|
+
"Space": {
|
|
27
|
+
"action": "activate",
|
|
28
|
+
"native": true
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"focus": {
|
|
32
|
+
"visual": {
|
|
33
|
+
"required": true,
|
|
34
|
+
"selector": ":focus-visible"
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"layout": {
|
|
38
|
+
"direction": "logical",
|
|
39
|
+
"rtl": true
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "popover",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "PopOver",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "popover-root"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "popover"
|
|
11
|
+
},
|
|
12
|
+
"states": {
|
|
13
|
+
"environment": [
|
|
14
|
+
"forced-colors",
|
|
15
|
+
"dir"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"accessibility": {
|
|
19
|
+
"popover": {
|
|
20
|
+
"element": "div",
|
|
21
|
+
"role": "dialog"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"keyboard": {
|
|
25
|
+
"Escape": "close"
|
|
26
|
+
},
|
|
27
|
+
"focus": {
|
|
28
|
+
"visual": {
|
|
29
|
+
"required": true,
|
|
30
|
+
"selector": ":focus-visible"
|
|
31
|
+
},
|
|
32
|
+
"behavior": {
|
|
33
|
+
"trap": true,
|
|
34
|
+
"initial": "first-focusable",
|
|
35
|
+
"return": "trigger"
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"layout": {
|
|
39
|
+
"direction": "logical",
|
|
40
|
+
"rtl": true
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "progress-stepper",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "ProgressStepper",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "progress-stepper",
|
|
8
|
+
"fill": "progress-stepper-fill",
|
|
9
|
+
"item": "progress-stepper-item",
|
|
10
|
+
"label": "progress-stepper-label",
|
|
11
|
+
"list": "progress-stepper-list",
|
|
12
|
+
"list_wrap": "progress-stepper-list-wrap",
|
|
13
|
+
"marker": "progress-stepper-marker",
|
|
14
|
+
"track": "progress-stepper-track"
|
|
15
|
+
},
|
|
16
|
+
"attributes": {
|
|
17
|
+
"data-refineui": "progress-stepper"
|
|
18
|
+
},
|
|
19
|
+
"states": {
|
|
20
|
+
"component": {
|
|
21
|
+
"data-state": [
|
|
22
|
+
"complete",
|
|
23
|
+
"current",
|
|
24
|
+
"upcoming"
|
|
25
|
+
]
|
|
26
|
+
},
|
|
27
|
+
"environment": [
|
|
28
|
+
"forced-colors",
|
|
29
|
+
"dir"
|
|
30
|
+
]
|
|
31
|
+
},
|
|
32
|
+
"dom": {
|
|
33
|
+
"progress-stepper-item": {
|
|
34
|
+
"states": {
|
|
35
|
+
"component": {
|
|
36
|
+
"data-state": [
|
|
37
|
+
"complete",
|
|
38
|
+
"current",
|
|
39
|
+
"upcoming"
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"accessibility": {
|
|
46
|
+
"progress-stepper-track": {
|
|
47
|
+
"element": "div",
|
|
48
|
+
"role": "progressbar"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"focus": {
|
|
52
|
+
"visual": {
|
|
53
|
+
"required": true,
|
|
54
|
+
"selector": ":focus-visible"
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
"layout": {
|
|
58
|
+
"direction": "logical",
|
|
59
|
+
"rtl": true
|
|
60
|
+
}
|
|
61
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "progress",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Progress",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "progress"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "progress"
|
|
11
|
+
},
|
|
12
|
+
"variants": {
|
|
13
|
+
"size": [
|
|
14
|
+
"sm",
|
|
15
|
+
"lg"
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"accessibility": {
|
|
19
|
+
"progress": {
|
|
20
|
+
"element": "div",
|
|
21
|
+
"role": "progressbar"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"layout": {
|
|
25
|
+
"direction": "logical",
|
|
26
|
+
"rtl": true
|
|
27
|
+
}
|
|
28
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "radio",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Radio",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "radio"
|
|
8
|
+
},
|
|
9
|
+
"attributes": {
|
|
10
|
+
"data-refineui": "radio"
|
|
11
|
+
},
|
|
12
|
+
"states": {
|
|
13
|
+
"pseudo": [
|
|
14
|
+
"focus-visible"
|
|
15
|
+
],
|
|
16
|
+
"environment": [
|
|
17
|
+
"forced-colors",
|
|
18
|
+
"dir"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"accessibility": {
|
|
22
|
+
"radio": {
|
|
23
|
+
"element": "input",
|
|
24
|
+
"native": true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"keyboard": {
|
|
28
|
+
"Space": {
|
|
29
|
+
"action": "activate",
|
|
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,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "resizable",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "Resizable",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "resizable-panel-group",
|
|
8
|
+
"resizable_handle": "resizable-handle",
|
|
9
|
+
"resizable_panel": "resizable-panel"
|
|
10
|
+
},
|
|
11
|
+
"attributes": {
|
|
12
|
+
"data-refineui": "resizable-panel-group"
|
|
13
|
+
},
|
|
14
|
+
"variants": {
|
|
15
|
+
"orientation": [
|
|
16
|
+
"horizontal",
|
|
17
|
+
"vertical"
|
|
18
|
+
]
|
|
19
|
+
},
|
|
20
|
+
"accessibility": {
|
|
21
|
+
"resizable-handle": {
|
|
22
|
+
"element": "div",
|
|
23
|
+
"role": "separator"
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
"keyboard": {
|
|
27
|
+
"Home": "first-trigger",
|
|
28
|
+
"End": "last-trigger"
|
|
29
|
+
},
|
|
30
|
+
"layout": {
|
|
31
|
+
"direction": "logical",
|
|
32
|
+
"rtl": true
|
|
33
|
+
}
|
|
34
|
+
}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "scroll-area",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "ScrollArea",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "scroll-area",
|
|
8
|
+
"scrollbar": "scroll-area-scrollbar",
|
|
9
|
+
"thumb": "scroll-area-thumb",
|
|
10
|
+
"track": "scroll-area-track",
|
|
11
|
+
"viewport": "scroll-area-viewport"
|
|
12
|
+
},
|
|
13
|
+
"attributes": {
|
|
14
|
+
"data-refineui": "scroll-area"
|
|
15
|
+
},
|
|
16
|
+
"variants": {
|
|
17
|
+
"type": [
|
|
18
|
+
"hover",
|
|
19
|
+
"always"
|
|
20
|
+
]
|
|
21
|
+
},
|
|
22
|
+
"states": {
|
|
23
|
+
"component": {
|
|
24
|
+
"data-state": [
|
|
25
|
+
"visible",
|
|
26
|
+
"hidden"
|
|
27
|
+
]
|
|
28
|
+
},
|
|
29
|
+
"environment": [
|
|
30
|
+
"forced-colors",
|
|
31
|
+
"dir"
|
|
32
|
+
]
|
|
33
|
+
},
|
|
34
|
+
"dom": {
|
|
35
|
+
"scroll-area-scrollbar": {
|
|
36
|
+
"states": {
|
|
37
|
+
"component": {
|
|
38
|
+
"data-state": [
|
|
39
|
+
"visible",
|
|
40
|
+
"hidden"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"layout": {
|
|
47
|
+
"direction": "logical",
|
|
48
|
+
"rtl": true
|
|
49
|
+
}
|
|
50
|
+
}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "search-field",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "SearchField",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "search-field",
|
|
8
|
+
"clear": "search-field-clear",
|
|
9
|
+
"icon": "search-field-icon",
|
|
10
|
+
"input": "search-field-input"
|
|
11
|
+
},
|
|
12
|
+
"attributes": {
|
|
13
|
+
"data-refineui": "search-field"
|
|
14
|
+
},
|
|
15
|
+
"variants": {
|
|
16
|
+
"appearance": [
|
|
17
|
+
"filled",
|
|
18
|
+
"plain"
|
|
19
|
+
]
|
|
20
|
+
},
|
|
21
|
+
"states": {
|
|
22
|
+
"pseudo": [
|
|
23
|
+
"focus-visible"
|
|
24
|
+
],
|
|
25
|
+
"environment": [
|
|
26
|
+
"forced-colors",
|
|
27
|
+
"dir"
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"accessibility": {
|
|
31
|
+
"search-field-input": {
|
|
32
|
+
"element": "input",
|
|
33
|
+
"native": true
|
|
34
|
+
},
|
|
35
|
+
"search-field-clear": {
|
|
36
|
+
"element": "button",
|
|
37
|
+
"native": true
|
|
38
|
+
}
|
|
39
|
+
},
|
|
40
|
+
"focus": {
|
|
41
|
+
"visual": {
|
|
42
|
+
"required": true,
|
|
43
|
+
"selector": ":focus-visible"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"layout": {
|
|
47
|
+
"direction": "logical",
|
|
48
|
+
"rtl": true
|
|
49
|
+
},
|
|
50
|
+
"keyboard": {
|
|
51
|
+
"Escape": "close"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "../schema/component-spec.schema.json",
|
|
3
|
+
"component": "segmented-control",
|
|
4
|
+
"version": 1,
|
|
5
|
+
"export": "SegmentedControl",
|
|
6
|
+
"anatomy": {
|
|
7
|
+
"root": "segmented-control",
|
|
8
|
+
"indicator": "segmented-control-indicator",
|
|
9
|
+
"item": "segmented-control-item"
|
|
10
|
+
},
|
|
11
|
+
"attributes": {
|
|
12
|
+
"data-refineui": "segmented-control"
|
|
13
|
+
},
|
|
14
|
+
"recipe": "segmented-control",
|
|
15
|
+
"tokens": {
|
|
16
|
+
"visual": "segmentedControl"
|
|
17
|
+
},
|
|
18
|
+
"states": {
|
|
19
|
+
"pseudo": [
|
|
20
|
+
"focus-visible"
|
|
21
|
+
],
|
|
22
|
+
"environment": [
|
|
23
|
+
"forced-colors",
|
|
24
|
+
"dir",
|
|
25
|
+
"prefers-contrast"
|
|
26
|
+
]
|
|
27
|
+
},
|
|
28
|
+
"accessibility": {
|
|
29
|
+
"segmented-control": {
|
|
30
|
+
"element": "div",
|
|
31
|
+
"role": "radiogroup"
|
|
32
|
+
},
|
|
33
|
+
"segmented-control-item": {
|
|
34
|
+
"element": "button",
|
|
35
|
+
"role": "radio",
|
|
36
|
+
"requiredAttributes": {
|
|
37
|
+
"aria-checked": {
|
|
38
|
+
"required": true,
|
|
39
|
+
"type": "boolean"
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"keyboard": {
|
|
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
|
+
"behavior": {
|
|
60
|
+
"roving": true
|
|
61
|
+
}
|
|
62
|
+
},
|
|
63
|
+
"layout": {
|
|
64
|
+
"direction": "logical",
|
|
65
|
+
"rtl": true
|
|
66
|
+
}
|
|
67
|
+
}
|