@stratakit/structures 0.3.2 → 0.4.0
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/CHANGELOG.md +61 -0
- package/dist/AccordionItem.js +10 -10
- package/dist/Banner.js +8 -8
- package/dist/Chip.js +4 -4
- package/dist/DEV/AccordionItem.js +10 -10
- package/dist/DEV/Banner.js +8 -8
- package/dist/DEV/Chip.js +4 -4
- package/dist/DEV/DropdownMenu.js +10 -10
- package/dist/DEV/ErrorRegion.js +12 -12
- package/dist/DEV/Table.js +7 -7
- package/dist/DEV/Tabs.js +7 -7
- package/dist/DEV/Toolbar.js +41 -18
- package/dist/DEV/Tree.js +1 -1
- package/dist/DEV/TreeItem.js +14 -14
- package/dist/DEV/styles.css.js +1 -1
- package/dist/DEV/~utils.ListItem.js +3 -3
- package/dist/DEV/~utils.icons.js +1 -1
- package/dist/DropdownMenu.d.ts +8 -8
- package/dist/DropdownMenu.js +9 -9
- package/dist/ErrorRegion.js +12 -12
- package/dist/Table.js +7 -7
- package/dist/Tabs.d.ts +9 -9
- package/dist/Tabs.js +6 -6
- package/dist/Toolbar.d.ts +21 -3
- package/dist/Toolbar.js +41 -18
- package/dist/Tree.js +1 -1
- package/dist/TreeItem.js +14 -14
- package/dist/styles.css.js +1 -1
- package/dist/~utils.ListItem.js +3 -3
- package/dist/~utils.icons.js +1 -1
- package/package.json +11 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,66 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.4.0
|
|
4
|
+
|
|
5
|
+
### Breaking changes
|
|
6
|
+
|
|
7
|
+
- [#888](https://github.com/iTwin/design-system/pull/888): `Toolbar.Item` component no longer automatically uses the large version of the icon.
|
|
8
|
+
|
|
9
|
+
`#icon-large` must now be explicitly added to the URL to select the large icons from `@stratakit/icons`. For example:
|
|
10
|
+
|
|
11
|
+
```diff
|
|
12
|
+
<Toolbar.Item
|
|
13
|
+
- render={<IconButton icon={placeholderIcon} />}
|
|
14
|
+
+ render={<IconButton icon={`${placeholderIcon}#icon-large`} />}
|
|
15
|
+
/>
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
- [#900](https://github.com/iTwin/design-system/pull/900): Renamed `Tabs.Root` component to `Tabs.Provider`.
|
|
19
|
+
|
|
20
|
+
```diff
|
|
21
|
+
- <Tabs.Root>
|
|
22
|
+
+ <Tabs.Provider>
|
|
23
|
+
<Tabs.TabList>…</Tabs.TabList>
|
|
24
|
+
<Tabs.TabPanel>…</Tabs.TabPanel>
|
|
25
|
+
- </Tabs.Root>
|
|
26
|
+
+ </Tabs.Provider>
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
This change makes StrataKit's naming convention more consistent. `Root` components always render a DOM element whereas `Provider` components have no underlying DOM element.
|
|
30
|
+
|
|
31
|
+
- [#900](https://github.com/iTwin/design-system/pull/900): Renamed `DropdownMenu.Root` component to `DropdownMenu.Provider`.
|
|
32
|
+
|
|
33
|
+
```diff
|
|
34
|
+
- <DropdownMenu.Root>
|
|
35
|
+
+ <DropdownMenu.Provider>
|
|
36
|
+
<DropdownMenu.Button>…</DropdownMenu.Button>
|
|
37
|
+
<DropdownMenu.Content>…</DropdownMenu.Content>
|
|
38
|
+
- </DropdownMenu.Root>
|
|
39
|
+
+ </DropdownMenu.Provider>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
This change makes StrataKit's naming convention more consistent. `Root` components always render a DOM element whereas `Provider` components have no underlying DOM element.
|
|
43
|
+
|
|
44
|
+
### Non-breaking changes
|
|
45
|
+
|
|
46
|
+
- [#903](https://github.com/iTwin/design-system/pull/903): Added proper styling for `Divider` rendered inside a `Toolbar.Group`.
|
|
47
|
+
|
|
48
|
+
```tsx
|
|
49
|
+
<Toolbar.Group variant="solid">
|
|
50
|
+
<Toolbar.Item render={…} />
|
|
51
|
+
<Divider orientation="vertical" />
|
|
52
|
+
<Toolbar.Item render={…} />
|
|
53
|
+
<Toolbar.Item render={…} />
|
|
54
|
+
</Toolbar.Group>
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
- [#913](https://github.com/iTwin/design-system/pull/913): Updated internal CSS selectors in every component.
|
|
58
|
+
- [#901](https://github.com/iTwin/design-system/pull/901): Added `orientation` prop to `Toolbar.Group` component. Set the `orientation` prop to `"vertical"` to display the toolbar vertically.
|
|
59
|
+
- [#902](https://github.com/iTwin/design-system/pull/902): Updated active style of a ghost `IconButton` when used in a `Toolbar` component.
|
|
60
|
+
- Updated dependencies:
|
|
61
|
+
- @stratakit/foundations@0.3.0
|
|
62
|
+
- @stratakit/bricks@0.4.0
|
|
63
|
+
|
|
3
64
|
## 0.3.2
|
|
4
65
|
|
|
5
66
|
- [#881](https://github.com/iTwin/design-system/pull/881): Updated CSS to use `--stratakit-space-` variables instead of hardcoded values in all components.
|
package/dist/AccordionItem.js
CHANGED
|
@@ -39,8 +39,8 @@ const AccordionItemRoot = forwardRef(
|
|
|
39
39
|
Role,
|
|
40
40
|
{
|
|
41
41
|
...rest,
|
|
42
|
-
className: cx("\u{1F95D}
|
|
43
|
-
"data-
|
|
42
|
+
className: cx("\u{1F95D}AccordionItem", props.className),
|
|
43
|
+
"data-_sk-open": open,
|
|
44
44
|
ref: forwardedRef
|
|
45
45
|
}
|
|
46
46
|
)
|
|
@@ -53,7 +53,7 @@ const AccordionItemHeader = forwardRef(
|
|
|
53
53
|
Role,
|
|
54
54
|
{
|
|
55
55
|
...props,
|
|
56
|
-
className: cx("\u{1F95D}
|
|
56
|
+
className: cx("\u{1F95D}AccordionItemHeader", props.className),
|
|
57
57
|
ref: forwardedRef
|
|
58
58
|
}
|
|
59
59
|
) })
|
|
@@ -63,7 +63,7 @@ const AccordionItemButton = forwardRef(
|
|
|
63
63
|
Disclosure,
|
|
64
64
|
{
|
|
65
65
|
...props,
|
|
66
|
-
className: cx("\u{1F95D}
|
|
66
|
+
className: cx("\u{1F95D}AccordionItemButton", props.className),
|
|
67
67
|
ref: forwardedRef
|
|
68
68
|
}
|
|
69
69
|
)
|
|
@@ -74,7 +74,7 @@ const AccordionItemLabel = forwardRef(
|
|
|
74
74
|
{
|
|
75
75
|
...props,
|
|
76
76
|
variant: "body-sm",
|
|
77
|
-
className: cx("\u{1F95D}
|
|
77
|
+
className: cx("\u{1F95D}AccordionItemLabel", props.className),
|
|
78
78
|
ref: forwardedRef
|
|
79
79
|
}
|
|
80
80
|
)
|
|
@@ -84,7 +84,7 @@ const AccordionItemDecoration = forwardRef(
|
|
|
84
84
|
Role,
|
|
85
85
|
{
|
|
86
86
|
...props,
|
|
87
|
-
className: cx("\u{1F95D}
|
|
87
|
+
className: cx("\u{1F95D}AccordionItemDecoration", props.className),
|
|
88
88
|
ref: forwardedRef
|
|
89
89
|
}
|
|
90
90
|
)
|
|
@@ -95,13 +95,13 @@ const AccordionItemMarker = forwardRef(
|
|
|
95
95
|
{
|
|
96
96
|
...props,
|
|
97
97
|
variant: "ghost",
|
|
98
|
-
className: cx("\u{1F95D}
|
|
98
|
+
className: cx("\u{1F95D}AccordionItemMarker", props.className),
|
|
99
99
|
ref: forwardedRef,
|
|
100
100
|
children: props.children ?? /* @__PURE__ */ jsx(
|
|
101
101
|
ChevronDown,
|
|
102
102
|
{
|
|
103
103
|
"aria-hidden": "true",
|
|
104
|
-
className: "\u{1F95D}
|
|
104
|
+
className: "\u{1F95D}AccordionItemMarkerChevron"
|
|
105
105
|
}
|
|
106
106
|
)
|
|
107
107
|
}
|
|
@@ -112,7 +112,7 @@ const AccordionItemContent = forwardRef(
|
|
|
112
112
|
DisclosureContent,
|
|
113
113
|
{
|
|
114
114
|
...props,
|
|
115
|
-
className: cx("\u{1F95D}
|
|
115
|
+
className: cx("\u{1F95D}AccordionItemContent", props.className),
|
|
116
116
|
ref: forwardedRef
|
|
117
117
|
}
|
|
118
118
|
)
|
|
@@ -123,7 +123,7 @@ const AccordionItemHeading = forwardRef(
|
|
|
123
123
|
{
|
|
124
124
|
...props,
|
|
125
125
|
variant: "body-sm",
|
|
126
|
-
className: cx("\u{1F95D}
|
|
126
|
+
className: cx("\u{1F95D}AccordionItemHeading", props.className),
|
|
127
127
|
ref: forwardedRef
|
|
128
128
|
}
|
|
129
129
|
)
|
package/dist/Banner.js
CHANGED
|
@@ -40,9 +40,9 @@ const BannerRoot = forwardRef((props, forwardedRef) => {
|
|
|
40
40
|
Role,
|
|
41
41
|
{
|
|
42
42
|
...rest,
|
|
43
|
-
"data-
|
|
44
|
-
"data-
|
|
45
|
-
className: cx("\u{1F95D}
|
|
43
|
+
"data-_sk-tone": tone,
|
|
44
|
+
"data-_sk-variant": variant,
|
|
45
|
+
className: cx("\u{1F95D}Banner", props.className),
|
|
46
46
|
ref: forwardedRef
|
|
47
47
|
}
|
|
48
48
|
) });
|
|
@@ -59,7 +59,7 @@ const BannerIcon = forwardRef((props, forwardedRef) => {
|
|
|
59
59
|
{
|
|
60
60
|
...rest,
|
|
61
61
|
render,
|
|
62
|
-
className: cx("\u{1F95D}
|
|
62
|
+
className: cx("\u{1F95D}BannerIcon", props.className),
|
|
63
63
|
ref: forwardedRef
|
|
64
64
|
}
|
|
65
65
|
);
|
|
@@ -80,7 +80,7 @@ const BannerLabel = forwardRef(
|
|
|
80
80
|
id: labelId,
|
|
81
81
|
render: /* @__PURE__ */ jsx("span", {}),
|
|
82
82
|
...props,
|
|
83
|
-
className: cx("\u{1F95D}
|
|
83
|
+
className: cx("\u{1F95D}BannerLabel", props.className),
|
|
84
84
|
variant: "body-sm",
|
|
85
85
|
ref: forwardedRef
|
|
86
86
|
}
|
|
@@ -94,7 +94,7 @@ const BannerMessage = forwardRef(
|
|
|
94
94
|
{
|
|
95
95
|
...props,
|
|
96
96
|
variant: "body-sm",
|
|
97
|
-
className: cx("\u{1F95D}
|
|
97
|
+
className: cx("\u{1F95D}BannerMessage", props.className),
|
|
98
98
|
ref: forwardedRef
|
|
99
99
|
}
|
|
100
100
|
);
|
|
@@ -106,7 +106,7 @@ const BannerActions = forwardRef(
|
|
|
106
106
|
Role.div,
|
|
107
107
|
{
|
|
108
108
|
...props,
|
|
109
|
-
className: cx("\u{1F95D}
|
|
109
|
+
className: cx("\u{1F95D}BannerActions", props.className),
|
|
110
110
|
ref: forwardedRef
|
|
111
111
|
}
|
|
112
112
|
);
|
|
@@ -123,7 +123,7 @@ const BannerDismissButton = forwardRef(
|
|
|
123
123
|
{
|
|
124
124
|
...rest,
|
|
125
125
|
id,
|
|
126
|
-
className: cx("\u{1F95D}
|
|
126
|
+
className: cx("\u{1F95D}BannerDismissButton", props.className),
|
|
127
127
|
variant: "ghost",
|
|
128
128
|
label,
|
|
129
129
|
"aria-labelledby": `${id} ${labelId || ""}`,
|
package/dist/Chip.js
CHANGED
|
@@ -36,9 +36,9 @@ const ChipRoot = forwardRef((props, forwardedRef) => {
|
|
|
36
36
|
return /* @__PURE__ */ jsx(ChipProvider, { children: /* @__PURE__ */ jsx(
|
|
37
37
|
Role.div,
|
|
38
38
|
{
|
|
39
|
-
"data-
|
|
39
|
+
"data-_sk-variant": variant,
|
|
40
40
|
...rest,
|
|
41
|
-
className: cx("\u{1F95D}
|
|
41
|
+
className: cx("\u{1F95D}Chip", props.className),
|
|
42
42
|
ref: forwardedRef
|
|
43
43
|
}
|
|
44
44
|
) });
|
|
@@ -54,7 +54,7 @@ const ChipLabel = forwardRef((props, forwardedRef) => {
|
|
|
54
54
|
{
|
|
55
55
|
id: labelId,
|
|
56
56
|
...props,
|
|
57
|
-
className: cx("\u{1F95D}
|
|
57
|
+
className: cx("\u{1F95D}ChipLabel", props.className),
|
|
58
58
|
ref: forwardedRef
|
|
59
59
|
}
|
|
60
60
|
);
|
|
@@ -72,7 +72,7 @@ const ChipDismissButton = forwardRef(
|
|
|
72
72
|
"aria-labelledby": `${id} ${labelId}`,
|
|
73
73
|
...rest,
|
|
74
74
|
label,
|
|
75
|
-
className: cx("\u{1F95D}
|
|
75
|
+
className: cx("\u{1F95D}ChipDismissButton", props.className),
|
|
76
76
|
variant: "ghost",
|
|
77
77
|
labelVariant: "visually-hidden",
|
|
78
78
|
icon: /* @__PURE__ */ jsx(Dismiss, {}),
|
|
@@ -39,8 +39,8 @@ const AccordionItemRoot = forwardRef(
|
|
|
39
39
|
Role,
|
|
40
40
|
{
|
|
41
41
|
...rest,
|
|
42
|
-
className: cx("\u{1F95D}
|
|
43
|
-
"data-
|
|
42
|
+
className: cx("\u{1F95D}AccordionItem", props.className),
|
|
43
|
+
"data-_sk-open": open,
|
|
44
44
|
ref: forwardedRef
|
|
45
45
|
}
|
|
46
46
|
)
|
|
@@ -54,7 +54,7 @@ const AccordionItemHeader = forwardRef(
|
|
|
54
54
|
Role,
|
|
55
55
|
{
|
|
56
56
|
...props,
|
|
57
|
-
className: cx("\u{1F95D}
|
|
57
|
+
className: cx("\u{1F95D}AccordionItemHeader", props.className),
|
|
58
58
|
ref: forwardedRef
|
|
59
59
|
}
|
|
60
60
|
) })
|
|
@@ -65,7 +65,7 @@ const AccordionItemButton = forwardRef(
|
|
|
65
65
|
Disclosure,
|
|
66
66
|
{
|
|
67
67
|
...props,
|
|
68
|
-
className: cx("\u{1F95D}
|
|
68
|
+
className: cx("\u{1F95D}AccordionItemButton", props.className),
|
|
69
69
|
ref: forwardedRef
|
|
70
70
|
}
|
|
71
71
|
)
|
|
@@ -77,7 +77,7 @@ const AccordionItemLabel = forwardRef(
|
|
|
77
77
|
{
|
|
78
78
|
...props,
|
|
79
79
|
variant: "body-sm",
|
|
80
|
-
className: cx("\u{1F95D}
|
|
80
|
+
className: cx("\u{1F95D}AccordionItemLabel", props.className),
|
|
81
81
|
ref: forwardedRef
|
|
82
82
|
}
|
|
83
83
|
)
|
|
@@ -88,7 +88,7 @@ const AccordionItemDecoration = forwardRef(
|
|
|
88
88
|
Role,
|
|
89
89
|
{
|
|
90
90
|
...props,
|
|
91
|
-
className: cx("\u{1F95D}
|
|
91
|
+
className: cx("\u{1F95D}AccordionItemDecoration", props.className),
|
|
92
92
|
ref: forwardedRef
|
|
93
93
|
}
|
|
94
94
|
)
|
|
@@ -100,13 +100,13 @@ const AccordionItemMarker = forwardRef(
|
|
|
100
100
|
{
|
|
101
101
|
...props,
|
|
102
102
|
variant: "ghost",
|
|
103
|
-
className: cx("\u{1F95D}
|
|
103
|
+
className: cx("\u{1F95D}AccordionItemMarker", props.className),
|
|
104
104
|
ref: forwardedRef,
|
|
105
105
|
children: props.children ?? /* @__PURE__ */ jsx(
|
|
106
106
|
ChevronDown,
|
|
107
107
|
{
|
|
108
108
|
"aria-hidden": "true",
|
|
109
|
-
className: "\u{1F95D}
|
|
109
|
+
className: "\u{1F95D}AccordionItemMarkerChevron"
|
|
110
110
|
}
|
|
111
111
|
)
|
|
112
112
|
}
|
|
@@ -118,7 +118,7 @@ const AccordionItemContent = forwardRef(
|
|
|
118
118
|
DisclosureContent,
|
|
119
119
|
{
|
|
120
120
|
...props,
|
|
121
|
-
className: cx("\u{1F95D}
|
|
121
|
+
className: cx("\u{1F95D}AccordionItemContent", props.className),
|
|
122
122
|
ref: forwardedRef
|
|
123
123
|
}
|
|
124
124
|
)
|
|
@@ -130,7 +130,7 @@ const AccordionItemHeading = forwardRef(
|
|
|
130
130
|
{
|
|
131
131
|
...props,
|
|
132
132
|
variant: "body-sm",
|
|
133
|
-
className: cx("\u{1F95D}
|
|
133
|
+
className: cx("\u{1F95D}AccordionItemHeading", props.className),
|
|
134
134
|
ref: forwardedRef
|
|
135
135
|
}
|
|
136
136
|
)
|
package/dist/DEV/Banner.js
CHANGED
|
@@ -40,9 +40,9 @@ const BannerRoot = forwardRef((props, forwardedRef) => {
|
|
|
40
40
|
Role,
|
|
41
41
|
{
|
|
42
42
|
...rest,
|
|
43
|
-
"data-
|
|
44
|
-
"data-
|
|
45
|
-
className: cx("\u{1F95D}
|
|
43
|
+
"data-_sk-tone": tone,
|
|
44
|
+
"data-_sk-variant": variant,
|
|
45
|
+
className: cx("\u{1F95D}Banner", props.className),
|
|
46
46
|
ref: forwardedRef
|
|
47
47
|
}
|
|
48
48
|
) });
|
|
@@ -60,7 +60,7 @@ const BannerIcon = forwardRef((props, forwardedRef) => {
|
|
|
60
60
|
{
|
|
61
61
|
...rest,
|
|
62
62
|
render,
|
|
63
|
-
className: cx("\u{1F95D}
|
|
63
|
+
className: cx("\u{1F95D}BannerIcon", props.className),
|
|
64
64
|
ref: forwardedRef
|
|
65
65
|
}
|
|
66
66
|
);
|
|
@@ -82,7 +82,7 @@ const BannerLabel = forwardRef(
|
|
|
82
82
|
id: labelId,
|
|
83
83
|
render: /* @__PURE__ */ jsx("span", {}),
|
|
84
84
|
...props,
|
|
85
|
-
className: cx("\u{1F95D}
|
|
85
|
+
className: cx("\u{1F95D}BannerLabel", props.className),
|
|
86
86
|
variant: "body-sm",
|
|
87
87
|
ref: forwardedRef
|
|
88
88
|
}
|
|
@@ -97,7 +97,7 @@ const BannerMessage = forwardRef(
|
|
|
97
97
|
{
|
|
98
98
|
...props,
|
|
99
99
|
variant: "body-sm",
|
|
100
|
-
className: cx("\u{1F95D}
|
|
100
|
+
className: cx("\u{1F95D}BannerMessage", props.className),
|
|
101
101
|
ref: forwardedRef
|
|
102
102
|
}
|
|
103
103
|
);
|
|
@@ -110,7 +110,7 @@ const BannerActions = forwardRef(
|
|
|
110
110
|
Role.div,
|
|
111
111
|
{
|
|
112
112
|
...props,
|
|
113
|
-
className: cx("\u{1F95D}
|
|
113
|
+
className: cx("\u{1F95D}BannerActions", props.className),
|
|
114
114
|
ref: forwardedRef
|
|
115
115
|
}
|
|
116
116
|
);
|
|
@@ -128,7 +128,7 @@ const BannerDismissButton = forwardRef(
|
|
|
128
128
|
{
|
|
129
129
|
...rest,
|
|
130
130
|
id,
|
|
131
|
-
className: cx("\u{1F95D}
|
|
131
|
+
className: cx("\u{1F95D}BannerDismissButton", props.className),
|
|
132
132
|
variant: "ghost",
|
|
133
133
|
label,
|
|
134
134
|
"aria-labelledby": `${id} ${labelId || ""}`,
|
package/dist/DEV/Chip.js
CHANGED
|
@@ -36,9 +36,9 @@ const ChipRoot = forwardRef((props, forwardedRef) => {
|
|
|
36
36
|
return /* @__PURE__ */ jsx(ChipProvider, { children: /* @__PURE__ */ jsx(
|
|
37
37
|
Role.div,
|
|
38
38
|
{
|
|
39
|
-
"data-
|
|
39
|
+
"data-_sk-variant": variant,
|
|
40
40
|
...rest,
|
|
41
|
-
className: cx("\u{1F95D}
|
|
41
|
+
className: cx("\u{1F95D}Chip", props.className),
|
|
42
42
|
ref: forwardedRef
|
|
43
43
|
}
|
|
44
44
|
) });
|
|
@@ -55,7 +55,7 @@ const ChipLabel = forwardRef((props, forwardedRef) => {
|
|
|
55
55
|
{
|
|
56
56
|
id: labelId,
|
|
57
57
|
...props,
|
|
58
|
-
className: cx("\u{1F95D}
|
|
58
|
+
className: cx("\u{1F95D}ChipLabel", props.className),
|
|
59
59
|
ref: forwardedRef
|
|
60
60
|
}
|
|
61
61
|
);
|
|
@@ -74,7 +74,7 @@ const ChipDismissButton = forwardRef(
|
|
|
74
74
|
"aria-labelledby": `${id} ${labelId}`,
|
|
75
75
|
...rest,
|
|
76
76
|
label,
|
|
77
|
-
className: cx("\u{1F95D}
|
|
77
|
+
className: cx("\u{1F95D}ChipDismissButton", props.className),
|
|
78
78
|
variant: "ghost",
|
|
79
79
|
labelVariant: "visually-hidden",
|
|
80
80
|
icon: /* @__PURE__ */ jsx(Dismiss, {}),
|
package/dist/DEV/DropdownMenu.js
CHANGED
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import cx from "classnames";
|
|
26
26
|
import { Checkmark } from "./~utils.icons.js";
|
|
27
27
|
import * as ListItem from "./~utils.ListItem.js";
|
|
28
|
-
function
|
|
28
|
+
function DropdownMenuProvider(props) {
|
|
29
29
|
const {
|
|
30
30
|
children,
|
|
31
31
|
placement,
|
|
@@ -45,7 +45,7 @@ function DropdownMenuRoot(props) {
|
|
|
45
45
|
}
|
|
46
46
|
);
|
|
47
47
|
}
|
|
48
|
-
DEV:
|
|
48
|
+
DEV: DropdownMenuProvider.displayName = "DropdownMenu.Provider";
|
|
49
49
|
const DropdownMenuContent = forwardRef(
|
|
50
50
|
(props, forwardedRef) => {
|
|
51
51
|
const context = useMenuContext();
|
|
@@ -61,7 +61,7 @@ const DropdownMenuContent = forwardRef(
|
|
|
61
61
|
gutter: 4,
|
|
62
62
|
style: { ...popoverProps.style, ...props.style },
|
|
63
63
|
wrapperProps: { popover: popoverProps.popover },
|
|
64
|
-
className: cx("\u{1F95D}
|
|
64
|
+
className: cx("\u{1F95D}DropdownMenu", props.className),
|
|
65
65
|
ref: forwardedRef
|
|
66
66
|
}
|
|
67
67
|
);
|
|
@@ -81,7 +81,7 @@ const DropdownMenuButton = forwardRef(
|
|
|
81
81
|
children,
|
|
82
82
|
/* @__PURE__ */ jsx(DisclosureArrow, {})
|
|
83
83
|
] }),
|
|
84
|
-
className: cx("\u{1F95D}
|
|
84
|
+
className: cx("\u{1F95D}DropdownMenuButton", props.className),
|
|
85
85
|
"data-has-popover-open": open || void 0,
|
|
86
86
|
ref: forwardedRef
|
|
87
87
|
}
|
|
@@ -106,7 +106,7 @@ const DropdownMenuItem = forwardRef(
|
|
|
106
106
|
accessibleWhenDisabled: true,
|
|
107
107
|
"aria-describedby": dotId,
|
|
108
108
|
...rest,
|
|
109
|
-
className: cx("\u{1F95D}
|
|
109
|
+
className: cx("\u{1F95D}DropdownMenuItem", props.className),
|
|
110
110
|
ref: forwardedRef
|
|
111
111
|
}
|
|
112
112
|
)
|
|
@@ -119,7 +119,7 @@ const DropdownMenuItem = forwardRef(
|
|
|
119
119
|
unstable_dot ? /* @__PURE__ */ jsx(
|
|
120
120
|
ListItem.Decoration,
|
|
121
121
|
{
|
|
122
|
-
render: /* @__PURE__ */ jsx(Dot, { id: dotId, className: "\u{1F95D}
|
|
122
|
+
render: /* @__PURE__ */ jsx(Dot, { id: dotId, className: "\u{1F95D}DropdownMenuItemDot", children: unstable_dot })
|
|
123
123
|
}
|
|
124
124
|
) : null
|
|
125
125
|
]
|
|
@@ -141,7 +141,7 @@ const DropdownMenuItemShortcuts = forwardRef((props, forwardedRef) => {
|
|
|
141
141
|
{
|
|
142
142
|
render: /* @__PURE__ */ jsx("span", {}),
|
|
143
143
|
...rest,
|
|
144
|
-
className: cx("\u{1F95D}
|
|
144
|
+
className: cx("\u{1F95D}DropdownMenuItemShortcuts", props.className),
|
|
145
145
|
ref: forwardedRef,
|
|
146
146
|
children: shortcutKeys.map(({ key, isSymbol }, index) => {
|
|
147
147
|
if (isSymbol) {
|
|
@@ -209,7 +209,7 @@ const DropdownMenuCheckboxItem = forwardRef((props, forwardedRef) => {
|
|
|
209
209
|
{
|
|
210
210
|
accessibleWhenDisabled: true,
|
|
211
211
|
...rest,
|
|
212
|
-
className: cx("\u{1F95D}
|
|
212
|
+
className: cx("\u{1F95D}DropdownMenuItem", props.className),
|
|
213
213
|
ref: forwardedRef
|
|
214
214
|
}
|
|
215
215
|
)
|
|
@@ -221,7 +221,7 @@ const DropdownMenuCheckboxItem = forwardRef((props, forwardedRef) => {
|
|
|
221
221
|
/* @__PURE__ */ jsx(
|
|
222
222
|
ListItem.Decoration,
|
|
223
223
|
{
|
|
224
|
-
render: /* @__PURE__ */ jsx(Checkmark, { className: "\u{1F95D}
|
|
224
|
+
render: /* @__PURE__ */ jsx(Checkmark, { className: "\u{1F95D}DropdownMenuCheckmark" })
|
|
225
225
|
}
|
|
226
226
|
)
|
|
227
227
|
]
|
|
@@ -234,5 +234,5 @@ export {
|
|
|
234
234
|
DropdownMenuCheckboxItem as CheckboxItem,
|
|
235
235
|
DropdownMenuContent as Content,
|
|
236
236
|
DropdownMenuItem as Item,
|
|
237
|
-
|
|
237
|
+
DropdownMenuProvider as Provider
|
|
238
238
|
};
|
package/dist/DEV/ErrorRegion.js
CHANGED
|
@@ -40,7 +40,7 @@ const ErrorRegionRoot = forwardRef(
|
|
|
40
40
|
const pulse = () => {
|
|
41
41
|
const el = containerRef.current;
|
|
42
42
|
if (!el) return;
|
|
43
|
-
const id = "--\u{1F95D}
|
|
43
|
+
const id = "--\u{1F95D}ErrorRegion-pulse";
|
|
44
44
|
const animations = el.getAnimations({ subtree: true });
|
|
45
45
|
if (animations.find((animation) => animation.id === id)) return;
|
|
46
46
|
el.animate(
|
|
@@ -87,24 +87,24 @@ const ErrorRegionRoot = forwardRef(
|
|
|
87
87
|
{
|
|
88
88
|
...rest,
|
|
89
89
|
"aria-labelledby": sectionLabelledBy,
|
|
90
|
-
className: cx("\u{1F95D}
|
|
91
|
-
"data-
|
|
92
|
-
"data-
|
|
90
|
+
className: cx("\u{1F95D}ErrorRegion", props.className),
|
|
91
|
+
"data-_sk-visible": !!label,
|
|
92
|
+
"data-_sk-expanded": open,
|
|
93
93
|
ref: forwardedRef,
|
|
94
|
-
children: /* @__PURE__ */ jsxs("div", { className: "\u{1F95D}
|
|
94
|
+
children: /* @__PURE__ */ jsxs("div", { className: "\u{1F95D}ErrorRegionContainer", ref: containerRef, children: [
|
|
95
95
|
/* @__PURE__ */ jsxs(
|
|
96
96
|
DialogDisclosure,
|
|
97
97
|
{
|
|
98
|
-
className: "\u{1F95D}
|
|
98
|
+
className: "\u{1F95D}ErrorRegionHeader",
|
|
99
99
|
render: /* @__PURE__ */ jsx(Button, { variant: "ghost" }),
|
|
100
100
|
children: [
|
|
101
|
-
/* @__PURE__ */ jsx(StatusIcon, { tone: "attention", className: "\u{1F95D}
|
|
101
|
+
/* @__PURE__ */ jsx(StatusIcon, { tone: "attention", className: "\u{1F95D}ErrorRegionIcon" }),
|
|
102
102
|
/* @__PURE__ */ jsx(
|
|
103
103
|
Text,
|
|
104
104
|
{
|
|
105
105
|
render: /* @__PURE__ */ jsx("span", {}),
|
|
106
106
|
id: labelId,
|
|
107
|
-
className: "\u{1F95D}
|
|
107
|
+
className: "\u{1F95D}ErrorRegionLabel",
|
|
108
108
|
variant: "body-sm",
|
|
109
109
|
children: label
|
|
110
110
|
}
|
|
@@ -116,7 +116,7 @@ const ErrorRegionRoot = forwardRef(
|
|
|
116
116
|
/* @__PURE__ */ jsx(
|
|
117
117
|
Dialog,
|
|
118
118
|
{
|
|
119
|
-
className: "\u{1F95D}
|
|
119
|
+
className: "\u{1F95D}ErrorRegionDialog",
|
|
120
120
|
portal: false,
|
|
121
121
|
modal: false,
|
|
122
122
|
autoFocusOnShow: false,
|
|
@@ -125,7 +125,7 @@ const ErrorRegionRoot = forwardRef(
|
|
|
125
125
|
Collection,
|
|
126
126
|
{
|
|
127
127
|
store,
|
|
128
|
-
className: "\u{1F95D}
|
|
128
|
+
className: "\u{1F95D}ErrorRegionItems",
|
|
129
129
|
role: "list",
|
|
130
130
|
children: items
|
|
131
131
|
}
|
|
@@ -153,11 +153,11 @@ const ErrorRegionItem = forwardRef(
|
|
|
153
153
|
{
|
|
154
154
|
...rest,
|
|
155
155
|
role: "listitem",
|
|
156
|
-
className: cx("\u{1F95D}
|
|
156
|
+
className: cx("\u{1F95D}ErrorRegionItem", props.className),
|
|
157
157
|
ref: forwardedRef,
|
|
158
158
|
children: [
|
|
159
159
|
/* @__PURE__ */ jsx(Text, { id: messageId, variant: "body-sm", children: message }),
|
|
160
|
-
/* @__PURE__ */ jsx("div", { className: "\u{1F95D}
|
|
160
|
+
/* @__PURE__ */ jsx("div", { className: "\u{1F95D}ErrorRegionItemActions", children: actions })
|
|
161
161
|
]
|
|
162
162
|
}
|
|
163
163
|
);
|
package/dist/DEV/Table.js
CHANGED
|
@@ -20,7 +20,7 @@ const HtmlTable = forwardRef((props, forwardedRef) => {
|
|
|
20
20
|
render: /* @__PURE__ */ jsx("table", {}),
|
|
21
21
|
...props,
|
|
22
22
|
ref: forwardedRef,
|
|
23
|
-
className: cx("\u{1F95D}
|
|
23
|
+
className: cx("\u{1F95D}Table", props.className)
|
|
24
24
|
}
|
|
25
25
|
) });
|
|
26
26
|
});
|
|
@@ -39,7 +39,7 @@ const CustomTable = forwardRef(
|
|
|
39
39
|
"aria-labelledby": captionId,
|
|
40
40
|
...props,
|
|
41
41
|
ref: forwardedRef,
|
|
42
|
-
className: cx("\u{1F95D}
|
|
42
|
+
className: cx("\u{1F95D}Table", props.className)
|
|
43
43
|
}
|
|
44
44
|
) });
|
|
45
45
|
}
|
|
@@ -57,7 +57,7 @@ const TableHeader = forwardRef(
|
|
|
57
57
|
role,
|
|
58
58
|
...props,
|
|
59
59
|
ref: forwardedRef,
|
|
60
|
-
className: cx("\u{1F95D}
|
|
60
|
+
className: cx("\u{1F95D}TableHeader", props.className)
|
|
61
61
|
}
|
|
62
62
|
) });
|
|
63
63
|
}
|
|
@@ -73,7 +73,7 @@ const TableBody = forwardRef((props, forwardedRef) => {
|
|
|
73
73
|
role: void 0,
|
|
74
74
|
...props,
|
|
75
75
|
ref: forwardedRef,
|
|
76
|
-
className: cx("\u{1F95D}
|
|
76
|
+
className: cx("\u{1F95D}TableBody", props.className)
|
|
77
77
|
}
|
|
78
78
|
);
|
|
79
79
|
});
|
|
@@ -89,7 +89,7 @@ const TableRow = forwardRef((props, forwardedRef) => {
|
|
|
89
89
|
role,
|
|
90
90
|
...props,
|
|
91
91
|
ref: forwardedRef,
|
|
92
|
-
className: cx("\u{1F95D}
|
|
92
|
+
className: cx("\u{1F95D}TableRow", props.className)
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
95
|
});
|
|
@@ -113,7 +113,7 @@ const TableCaption = forwardRef(
|
|
|
113
113
|
...rest,
|
|
114
114
|
id,
|
|
115
115
|
ref: useMergedRefs(forwardedRef, captionIdRef),
|
|
116
|
-
className: cx("\u{1F95D}
|
|
116
|
+
className: cx("\u{1F95D}TableCaption", props.className)
|
|
117
117
|
}
|
|
118
118
|
);
|
|
119
119
|
}
|
|
@@ -135,7 +135,7 @@ const TableCell = forwardRef((props, forwardedRef) => {
|
|
|
135
135
|
role,
|
|
136
136
|
...props,
|
|
137
137
|
ref: forwardedRef,
|
|
138
|
-
className: cx("\u{1F95D}
|
|
138
|
+
className: cx("\u{1F95D}TableCell", props.className)
|
|
139
139
|
}
|
|
140
140
|
);
|
|
141
141
|
});
|
package/dist/DEV/Tabs.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
import cx from "classnames";
|
|
10
10
|
const supportsAnchorPositioning = isBrowser && CSS?.supports("anchor-name: --foo");
|
|
11
11
|
const prefersReducedMotion = () => isBrowser && window.matchMedia("(prefers-reduced-motion)").matches;
|
|
12
|
-
function
|
|
12
|
+
function TabsProvider(props) {
|
|
13
13
|
const {
|
|
14
14
|
defaultSelectedId,
|
|
15
15
|
selectedId,
|
|
@@ -57,15 +57,15 @@ function Tabs(props) {
|
|
|
57
57
|
}
|
|
58
58
|
);
|
|
59
59
|
}
|
|
60
|
-
DEV:
|
|
60
|
+
DEV: TabsProvider.displayName = "Tabs.Provider";
|
|
61
61
|
const TabList = forwardRef((props, forwardedRef) => {
|
|
62
62
|
const { tone = "neutral", ...rest } = props;
|
|
63
63
|
return /* @__PURE__ */ jsx(
|
|
64
64
|
AkTab.TabList,
|
|
65
65
|
{
|
|
66
66
|
...rest,
|
|
67
|
-
"data-
|
|
68
|
-
className: cx("\u{1F95D}
|
|
67
|
+
"data-_sk-tone": tone,
|
|
68
|
+
className: cx("\u{1F95D}TabList", props.className),
|
|
69
69
|
ref: forwardedRef
|
|
70
70
|
}
|
|
71
71
|
);
|
|
@@ -77,7 +77,7 @@ const Tab = forwardRef((props, forwardedRef) => {
|
|
|
77
77
|
{
|
|
78
78
|
accessibleWhenDisabled: true,
|
|
79
79
|
...props,
|
|
80
|
-
className: cx("\u{1F95D}
|
|
80
|
+
className: cx("\u{1F95D}Tab", props.className),
|
|
81
81
|
ref: forwardedRef
|
|
82
82
|
}
|
|
83
83
|
);
|
|
@@ -88,14 +88,14 @@ const TabPanel = forwardRef((props, forwardedRef) => {
|
|
|
88
88
|
AkTab.TabPanel,
|
|
89
89
|
{
|
|
90
90
|
...props,
|
|
91
|
-
className: cx("\u{1F95D}
|
|
91
|
+
className: cx("\u{1F95D}TabPanel", props.className),
|
|
92
92
|
ref: forwardedRef
|
|
93
93
|
}
|
|
94
94
|
);
|
|
95
95
|
});
|
|
96
96
|
DEV: TabPanel.displayName = "Tabs.TabPanel";
|
|
97
97
|
export {
|
|
98
|
-
|
|
98
|
+
TabsProvider as Provider,
|
|
99
99
|
Tab,
|
|
100
100
|
TabList,
|
|
101
101
|
TabPanel
|