@stratakit/structures 0.2.1 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/dist/DEV/DropdownMenu.js +2 -2
- package/dist/DEV/TreeItem.js +6 -6
- package/dist/DEV/~utils.icons.js +8 -8
- package/dist/DropdownMenu.js +2 -2
- package/dist/TreeItem.js +6 -6
- package/dist/~utils.icons.js +8 -8
- package/package.json +7 -7
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.2.2
|
|
4
|
+
|
|
5
|
+
- [#756](https://github.com/iTwin/design-system/pull/756): `DropdownMenu.Button` will now ignore `render={undefined}`.
|
|
6
|
+
- [#755](https://github.com/iTwin/design-system/pull/755): Updated the code for icons used internally by components.
|
|
7
|
+
- Updated dependencies:
|
|
8
|
+
- @stratakit/bricks@0.3.0
|
|
9
|
+
- @stratakit/foundations@0.1.6
|
|
10
|
+
|
|
3
11
|
## 0.2.1
|
|
4
12
|
|
|
5
13
|
- [#736](https://github.com/iTwin/design-system/pull/736): Updated the `label` prop type in the `<Chip />` component from `string` to `ReactNode`.
|
package/dist/DEV/DropdownMenu.js
CHANGED
|
@@ -73,11 +73,11 @@ const DropdownMenuButton = forwardRef(
|
|
|
73
73
|
MenuButton,
|
|
74
74
|
{
|
|
75
75
|
accessibleWhenDisabled: true,
|
|
76
|
-
|
|
76
|
+
...rest,
|
|
77
|
+
render: props.render ?? /* @__PURE__ */ jsxs(Button, { accessibleWhenDisabled, children: [
|
|
77
78
|
children,
|
|
78
79
|
/* @__PURE__ */ jsx(DisclosureArrow, {})
|
|
79
80
|
] }),
|
|
80
|
-
...rest,
|
|
81
81
|
className: cx("\u{1F95D}-dropdown-menu-button", props.className),
|
|
82
82
|
"data-has-popover-open": open || void 0,
|
|
83
83
|
ref: forwardedRef
|
package/dist/DEV/TreeItem.js
CHANGED
|
@@ -43,12 +43,12 @@ const TreeItem = React.memo(
|
|
|
43
43
|
onSelectedChange,
|
|
44
44
|
expanded,
|
|
45
45
|
onExpandedChange,
|
|
46
|
-
icon,
|
|
47
|
-
unstable_decorations,
|
|
48
|
-
label,
|
|
49
|
-
description,
|
|
50
|
-
actions,
|
|
51
|
-
error:
|
|
46
|
+
icon: _icon,
|
|
47
|
+
unstable_decorations: _unstable_decorations,
|
|
48
|
+
label: _label,
|
|
49
|
+
description: _description,
|
|
50
|
+
actions: _actions,
|
|
51
|
+
error: _error,
|
|
52
52
|
onClick: onClickProp,
|
|
53
53
|
onKeyDown: onKeyDownProp,
|
|
54
54
|
...rest
|
package/dist/DEV/~utils.icons.js
CHANGED
|
@@ -5,25 +5,25 @@ import {
|
|
|
5
5
|
} from "@stratakit/foundations/secret-internals";
|
|
6
6
|
import cx from "classnames";
|
|
7
7
|
const Checkmark = createIconFromPath(
|
|
8
|
-
"
|
|
8
|
+
"M11.607 4.191a.5.5 0 0 1 .787.617l-5.5 7a.503.503 0 0 1-.777.012l-2.5-3-.057-.084a.5.5 0 0 1 .752-.627l.072.07 2.105 2.526 5.118-6.514Z"
|
|
9
9
|
);
|
|
10
10
|
DEV: Checkmark.displayName = "Checkmark";
|
|
11
11
|
const Dismiss = createIconFromPath(
|
|
12
|
-
"M4.
|
|
12
|
+
"M4.854 4.146a.5.5 0 1 0-.708.708L7.293 8l-3.147 3.146a.5.5 0 1 0 .708.707L8 8.707l3.146 3.146a.5.5 0 1 0 .707-.707L8.707 8l3.146-3.146a.5.5 0 1 0-.707-.708L8 7.293 4.854 4.146Z"
|
|
13
13
|
);
|
|
14
14
|
DEV: Dismiss.displayName = "Dismiss";
|
|
15
15
|
const statusIcons = {
|
|
16
16
|
positive: createIconFromPath(
|
|
17
|
-
"M7.
|
|
17
|
+
"M7.25 1.855a1.5 1.5 0 0 1 1.5 0l4.196 2.423a1.5 1.5 0 0 1 .75 1.299v4.846a1.5 1.5 0 0 1-.75 1.298L8.75 14.144a1.5 1.5 0 0 1-1.5 0l-4.196-2.423a1.5 1.5 0 0 1-.75-1.298V5.577a1.5 1.5 0 0 1 .75-1.299L7.25 1.855Zm1 .866a.5.5 0 0 0-.5 0L3.554 5.144a.5.5 0 0 0-.25.433v4.846a.5.5 0 0 0 .25.432l4.196 2.423a.5.5 0 0 0 .5 0l4.196-2.423a.5.5 0 0 0 .25-.432V5.577a.5.5 0 0 0-.25-.433L8.25 2.721ZM9.85 5.7a.501.501 0 0 1 .8.6l-3 4a.502.502 0 0 1-.754.053l-1.5-1.5-.064-.078a.5.5 0 0 1 .693-.693l.079.064 1.091 1.092L9.85 5.7Z"
|
|
18
18
|
),
|
|
19
19
|
attention: createIconFromPath(
|
|
20
|
-
"
|
|
20
|
+
"M6.94 2.354a1.5 1.5 0 0 1 2.121 0l4.586 4.586a1.5 1.5 0 0 1 0 2.12l-4.586 4.587a1.5 1.5 0 0 1-2.121 0L2.354 9.06a1.5 1.5 0 0 1 0-2.121L6.94 2.354Zm1.414.707a.5.5 0 0 0-.707 0L3.061 7.647a.5.5 0 0 0 0 .707l4.586 4.586a.5.5 0 0 0 .707 0l4.586-4.586a.5.5 0 0 0 0-.707L8.354 3.06ZM8 9.5A.75.75 0 1 1 8 11a.75.75 0 0 1 0-1.5ZM8 5a.5.5 0 0 1 .5.5V8a.5.5 0 0 1-1 0V5.5A.5.5 0 0 1 8 5Z"
|
|
21
21
|
),
|
|
22
22
|
critical: createIconFromPath(
|
|
23
|
-
"
|
|
23
|
+
"M7.25 1.855a1.5 1.5 0 0 1 1.5 0l4.196 2.423a1.5 1.5 0 0 1 .75 1.299v4.846a1.5 1.5 0 0 1-.75 1.298L8.75 14.144a1.5 1.5 0 0 1-1.5 0l-4.196-2.423a1.5 1.5 0 0 1-.75-1.298V5.577a1.5 1.5 0 0 1 .75-1.299L7.25 1.855Zm1 .866a.5.5 0 0 0-.5 0L3.554 5.144a.5.5 0 0 0-.25.433v4.846a.5.5 0 0 0 .25.432l4.196 2.423a.5.5 0 0 0 .5 0l4.196-2.423a.5.5 0 0 0 .25-.432V5.577a.5.5 0 0 0-.25-.433L8.25 2.721ZM8 9.5A.75.75 0 1 1 8 11a.75.75 0 0 1 0-1.5ZM8 5a.5.5 0 0 1 .5.5V8a.5.5 0 0 1-1 0V5.5A.5.5 0 0 1 8 5Z"
|
|
24
24
|
),
|
|
25
25
|
info: createIconFromPath(
|
|
26
|
-
"M8
|
|
26
|
+
"M8 1.5a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13Zm0 1a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Zm0 4a.5.5 0 0 1 .5.5v3.5h1a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1h1v-3h-1a.5.5 0 0 1 0-1H8Zm-.125-2.25a.625.625 0 1 1 0 1.25.625.625 0 0 1 0-1.25Z"
|
|
27
27
|
)
|
|
28
28
|
};
|
|
29
29
|
const StatusIcon = forwardRef(
|
|
@@ -35,11 +35,11 @@ const StatusIcon = forwardRef(
|
|
|
35
35
|
);
|
|
36
36
|
DEV: StatusIcon.displayName = "StatusIcon";
|
|
37
37
|
const MoreHorizontal = createIconFromPath(
|
|
38
|
-
"
|
|
38
|
+
"M4 7a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm4 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm4 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"
|
|
39
39
|
);
|
|
40
40
|
DEV: MoreHorizontal.displayName = "MoreHorizontal";
|
|
41
41
|
const ChevronDownBase = createIconFromPath(
|
|
42
|
-
"
|
|
42
|
+
"M11.146 6.146a.5.5 0 1 1 .707.708l-3.5 3.5a.5.5 0 0 1-.707 0l-3.5-3.5a.5.5 0 1 1 .708-.708L8 9.293l3.146-3.147Z"
|
|
43
43
|
);
|
|
44
44
|
const ChevronDown = forwardRef((props, forwardedRef) => {
|
|
45
45
|
return /* @__PURE__ */ jsx(
|
package/dist/DropdownMenu.js
CHANGED
|
@@ -71,11 +71,11 @@ const DropdownMenuButton = forwardRef(
|
|
|
71
71
|
MenuButton,
|
|
72
72
|
{
|
|
73
73
|
accessibleWhenDisabled: true,
|
|
74
|
-
|
|
74
|
+
...rest,
|
|
75
|
+
render: props.render ?? /* @__PURE__ */ jsxs(Button, { accessibleWhenDisabled, children: [
|
|
75
76
|
children,
|
|
76
77
|
/* @__PURE__ */ jsx(DisclosureArrow, {})
|
|
77
78
|
] }),
|
|
78
|
-
...rest,
|
|
79
79
|
className: cx("\u{1F95D}-dropdown-menu-button", props.className),
|
|
80
80
|
"data-has-popover-open": open || void 0,
|
|
81
81
|
ref: forwardedRef
|
package/dist/TreeItem.js
CHANGED
|
@@ -43,12 +43,12 @@ const TreeItem = React.memo(
|
|
|
43
43
|
onSelectedChange,
|
|
44
44
|
expanded,
|
|
45
45
|
onExpandedChange,
|
|
46
|
-
icon,
|
|
47
|
-
unstable_decorations,
|
|
48
|
-
label,
|
|
49
|
-
description,
|
|
50
|
-
actions,
|
|
51
|
-
error:
|
|
46
|
+
icon: _icon,
|
|
47
|
+
unstable_decorations: _unstable_decorations,
|
|
48
|
+
label: _label,
|
|
49
|
+
description: _description,
|
|
50
|
+
actions: _actions,
|
|
51
|
+
error: _error,
|
|
52
52
|
onClick: onClickProp,
|
|
53
53
|
onKeyDown: onKeyDownProp,
|
|
54
54
|
...rest
|
package/dist/~utils.icons.js
CHANGED
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
} from "@stratakit/foundations/secret-internals";
|
|
6
6
|
import cx from "classnames";
|
|
7
7
|
const Checkmark = createIconFromPath(
|
|
8
|
-
"
|
|
8
|
+
"M11.607 4.191a.5.5 0 0 1 .787.617l-5.5 7a.503.503 0 0 1-.777.012l-2.5-3-.057-.084a.5.5 0 0 1 .752-.627l.072.07 2.105 2.526 5.118-6.514Z"
|
|
9
9
|
);
|
|
10
10
|
const Dismiss = createIconFromPath(
|
|
11
|
-
"M4.
|
|
11
|
+
"M4.854 4.146a.5.5 0 1 0-.708.708L7.293 8l-3.147 3.146a.5.5 0 1 0 .708.707L8 8.707l3.146 3.146a.5.5 0 1 0 .707-.707L8.707 8l3.146-3.146a.5.5 0 1 0-.707-.708L8 7.293 4.854 4.146Z"
|
|
12
12
|
);
|
|
13
13
|
const statusIcons = {
|
|
14
14
|
positive: createIconFromPath(
|
|
15
|
-
"M7.
|
|
15
|
+
"M7.25 1.855a1.5 1.5 0 0 1 1.5 0l4.196 2.423a1.5 1.5 0 0 1 .75 1.299v4.846a1.5 1.5 0 0 1-.75 1.298L8.75 14.144a1.5 1.5 0 0 1-1.5 0l-4.196-2.423a1.5 1.5 0 0 1-.75-1.298V5.577a1.5 1.5 0 0 1 .75-1.299L7.25 1.855Zm1 .866a.5.5 0 0 0-.5 0L3.554 5.144a.5.5 0 0 0-.25.433v4.846a.5.5 0 0 0 .25.432l4.196 2.423a.5.5 0 0 0 .5 0l4.196-2.423a.5.5 0 0 0 .25-.432V5.577a.5.5 0 0 0-.25-.433L8.25 2.721ZM9.85 5.7a.501.501 0 0 1 .8.6l-3 4a.502.502 0 0 1-.754.053l-1.5-1.5-.064-.078a.5.5 0 0 1 .693-.693l.079.064 1.091 1.092L9.85 5.7Z"
|
|
16
16
|
),
|
|
17
17
|
attention: createIconFromPath(
|
|
18
|
-
"
|
|
18
|
+
"M6.94 2.354a1.5 1.5 0 0 1 2.121 0l4.586 4.586a1.5 1.5 0 0 1 0 2.12l-4.586 4.587a1.5 1.5 0 0 1-2.121 0L2.354 9.06a1.5 1.5 0 0 1 0-2.121L6.94 2.354Zm1.414.707a.5.5 0 0 0-.707 0L3.061 7.647a.5.5 0 0 0 0 .707l4.586 4.586a.5.5 0 0 0 .707 0l4.586-4.586a.5.5 0 0 0 0-.707L8.354 3.06ZM8 9.5A.75.75 0 1 1 8 11a.75.75 0 0 1 0-1.5ZM8 5a.5.5 0 0 1 .5.5V8a.5.5 0 0 1-1 0V5.5A.5.5 0 0 1 8 5Z"
|
|
19
19
|
),
|
|
20
20
|
critical: createIconFromPath(
|
|
21
|
-
"
|
|
21
|
+
"M7.25 1.855a1.5 1.5 0 0 1 1.5 0l4.196 2.423a1.5 1.5 0 0 1 .75 1.299v4.846a1.5 1.5 0 0 1-.75 1.298L8.75 14.144a1.5 1.5 0 0 1-1.5 0l-4.196-2.423a1.5 1.5 0 0 1-.75-1.298V5.577a1.5 1.5 0 0 1 .75-1.299L7.25 1.855Zm1 .866a.5.5 0 0 0-.5 0L3.554 5.144a.5.5 0 0 0-.25.433v4.846a.5.5 0 0 0 .25.432l4.196 2.423a.5.5 0 0 0 .5 0l4.196-2.423a.5.5 0 0 0 .25-.432V5.577a.5.5 0 0 0-.25-.433L8.25 2.721ZM8 9.5A.75.75 0 1 1 8 11a.75.75 0 0 1 0-1.5ZM8 5a.5.5 0 0 1 .5.5V8a.5.5 0 0 1-1 0V5.5A.5.5 0 0 1 8 5Z"
|
|
22
22
|
),
|
|
23
23
|
info: createIconFromPath(
|
|
24
|
-
"M8
|
|
24
|
+
"M8 1.5a6.5 6.5 0 1 1 0 13 6.5 6.5 0 0 1 0-13Zm0 1a5.5 5.5 0 1 0 0 11 5.5 5.5 0 0 0 0-11Zm0 4a.5.5 0 0 1 .5.5v3.5h1a.5.5 0 0 1 0 1h-3a.5.5 0 0 1 0-1h1v-3h-1a.5.5 0 0 1 0-1H8Zm-.125-2.25a.625.625 0 1 1 0 1.25.625.625 0 0 1 0-1.25Z"
|
|
25
25
|
)
|
|
26
26
|
};
|
|
27
27
|
const StatusIcon = forwardRef(
|
|
@@ -32,10 +32,10 @@ const StatusIcon = forwardRef(
|
|
|
32
32
|
}
|
|
33
33
|
);
|
|
34
34
|
const MoreHorizontal = createIconFromPath(
|
|
35
|
-
"
|
|
35
|
+
"M4 7a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm4 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Zm4 0a1 1 0 1 1 0 2 1 1 0 0 1 0-2Z"
|
|
36
36
|
);
|
|
37
37
|
const ChevronDownBase = createIconFromPath(
|
|
38
|
-
"
|
|
38
|
+
"M11.146 6.146a.5.5 0 1 1 .707.708l-3.5 3.5a.5.5 0 0 1-.707 0l-3.5-3.5a.5.5 0 1 1 .708-.708L8 9.293l3.146-3.147Z"
|
|
39
39
|
);
|
|
40
40
|
const ChevronDown = forwardRef((props, forwardedRef) => {
|
|
41
41
|
return /* @__PURE__ */ jsx(
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stratakit/structures",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.2.
|
|
4
|
+
"version": "0.2.2",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"sideEffects": false,
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
@@ -42,21 +42,21 @@
|
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
44
|
"@ariakit/react": "^0.4.17",
|
|
45
|
-
"@stratakit/bricks": "^0.
|
|
45
|
+
"@stratakit/bricks": "^0.3.0",
|
|
46
46
|
"classnames": "^2.5.1"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
|
-
"@types/node": "^22.15.
|
|
49
|
+
"@types/node": "^22.15.30",
|
|
50
50
|
"@types/react": "^19.1.5",
|
|
51
|
-
"@types/react-dom": "^19.1.
|
|
52
|
-
"esbuild": "^0.25.
|
|
51
|
+
"@types/react-dom": "^19.1.6",
|
|
52
|
+
"esbuild": "^0.25.5",
|
|
53
53
|
"react": "^19.1.0",
|
|
54
54
|
"react-dom": "^19.1.0",
|
|
55
55
|
"typescript": "~5.8.3",
|
|
56
|
-
"@stratakit/foundations": "0.1.
|
|
56
|
+
"@stratakit/foundations": "0.1.6"
|
|
57
57
|
},
|
|
58
58
|
"peerDependencies": {
|
|
59
|
-
"@stratakit/foundations": "^0.1.
|
|
59
|
+
"@stratakit/foundations": "^0.1.6",
|
|
60
60
|
"react": ">=18.0.0",
|
|
61
61
|
"react-dom": ">=18.0.0"
|
|
62
62
|
},
|