@vector-im/compound-web 8.1.2 → 8.2.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/components/ActivityMarker/Pill.cjs.map +1 -1
- package/dist/components/ActivityMarker/Pill.d.ts.map +1 -1
- package/dist/components/ActivityMarker/Pill.js.map +1 -1
- package/dist/components/ActivityMarker/Unread.cjs.map +1 -1
- package/dist/components/ActivityMarker/Unread.d.ts.map +1 -1
- package/dist/components/ActivityMarker/Unread.js.map +1 -1
- package/dist/components/ActivityMarker/UnreadCounter.cjs.map +1 -1
- package/dist/components/ActivityMarker/UnreadCounter.d.ts.map +1 -1
- package/dist/components/ActivityMarker/UnreadCounter.js.map +1 -1
- package/dist/components/Alert/Alert.cjs.map +1 -1
- package/dist/components/Alert/Alert.d.ts.map +1 -1
- package/dist/components/Alert/Alert.js.map +1 -1
- package/dist/components/Avatar/Avatar.cjs.map +1 -1
- package/dist/components/Avatar/Avatar.d.ts.map +1 -1
- package/dist/components/Avatar/Avatar.js.map +1 -1
- package/dist/components/Avatar/AvatarStack.cjs.map +1 -1
- package/dist/components/Avatar/AvatarStack.js.map +1 -1
- package/dist/components/Avatar/avatar-clip.mask.svg.cjs.map +1 -1
- package/dist/components/Avatar/avatar-clip.mask.svg.js.map +1 -1
- package/dist/components/Avatar/useIdColorHash.cjs.map +1 -1
- package/dist/components/Avatar/useIdColorHash.js.map +1 -1
- package/dist/components/Badge/Badge.cjs.map +1 -1
- package/dist/components/Badge/Badge.d.ts.map +1 -1
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.cjs.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.d.ts.map +1 -1
- package/dist/components/Breadcrumb/Breadcrumb.js.map +1 -1
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/IconButton/IconButton.cjs.map +1 -1
- package/dist/components/Button/IconButton/IconButton.d.ts.map +1 -1
- package/dist/components/Button/IconButton/IconButton.js.map +1 -1
- package/dist/components/Button/UnstyledButton.cjs.map +1 -1
- package/dist/components/Button/UnstyledButton.d.ts.map +1 -1
- package/dist/components/Button/UnstyledButton.js.map +1 -1
- package/dist/components/ChatFilter/ChatFilter.cjs.map +1 -1
- package/dist/components/ChatFilter/ChatFilter.d.ts.map +1 -1
- package/dist/components/ChatFilter/ChatFilter.js.map +1 -1
- package/dist/components/Dropdown/Dropdown.cjs.map +1 -1
- package/dist/components/Dropdown/Dropdown.js.map +1 -1
- package/dist/components/Form/Controls/Action/Action.cjs.map +1 -1
- package/dist/components/Form/Controls/Action/Action.d.ts.map +1 -1
- package/dist/components/Form/Controls/Action/Action.js.map +1 -1
- package/dist/components/Form/Controls/Checkbox/Checkbox.cjs.map +1 -1
- package/dist/components/Form/Controls/Checkbox/Checkbox.d.ts.map +1 -1
- package/dist/components/Form/Controls/Checkbox/Checkbox.js.map +1 -1
- package/dist/components/Form/Controls/EditInPlace/EditInPlace.cjs.map +1 -1
- package/dist/components/Form/Controls/EditInPlace/EditInPlace.js.map +1 -1
- package/dist/components/Form/Controls/MFA/MFA.cjs.map +1 -1
- package/dist/components/Form/Controls/MFA/MFA.js.map +1 -1
- package/dist/components/Form/Controls/Password/Password.cjs.map +1 -1
- package/dist/components/Form/Controls/Password/Password.d.ts.map +1 -1
- package/dist/components/Form/Controls/Password/Password.js.map +1 -1
- package/dist/components/Form/Controls/Radio/Radio.cjs.map +1 -1
- package/dist/components/Form/Controls/Radio/Radio.js.map +1 -1
- package/dist/components/Form/Controls/SettingsToggle/SettingsToggle.cjs +4 -2
- package/dist/components/Form/Controls/SettingsToggle/SettingsToggle.cjs.map +1 -1
- package/dist/components/Form/Controls/SettingsToggle/SettingsToggle.d.ts.map +1 -1
- package/dist/components/Form/Controls/SettingsToggle/SettingsToggle.js +5 -3
- package/dist/components/Form/Controls/SettingsToggle/SettingsToggle.js.map +1 -1
- package/dist/components/Form/Controls/Text/Text.cjs.map +1 -1
- package/dist/components/Form/Controls/Text/Text.d.ts.map +1 -1
- package/dist/components/Form/Controls/Text/Text.js.map +1 -1
- package/dist/components/Form/Controls/Toggle/Toggle.cjs +10 -1
- package/dist/components/Form/Controls/Toggle/Toggle.cjs.map +1 -1
- package/dist/components/Form/Controls/Toggle/Toggle.d.ts.map +1 -1
- package/dist/components/Form/Controls/Toggle/Toggle.js +10 -1
- package/dist/components/Form/Controls/Toggle/Toggle.js.map +1 -1
- package/dist/components/Form/Field.cjs.map +1 -1
- package/dist/components/Form/Field.d.ts.map +1 -1
- package/dist/components/Form/Field.js.map +1 -1
- package/dist/components/Form/InlineField.cjs.map +1 -1
- package/dist/components/Form/InlineField.d.ts.map +1 -1
- package/dist/components/Form/InlineField.js.map +1 -1
- package/dist/components/Form/Label.cjs.map +1 -1
- package/dist/components/Form/Label.d.ts.map +1 -1
- package/dist/components/Form/Label.js.map +1 -1
- package/dist/components/Form/Message.cjs.map +1 -1
- package/dist/components/Form/Message.d.ts.map +1 -1
- package/dist/components/Form/Message.js.map +1 -1
- package/dist/components/Form/Root.cjs.map +1 -1
- package/dist/components/Form/Root.d.ts.map +1 -1
- package/dist/components/Form/Root.js.map +1 -1
- package/dist/components/Form/Submit.cjs.map +1 -1
- package/dist/components/Form/Submit.d.ts.map +1 -1
- package/dist/components/Form/Submit.js.map +1 -1
- package/dist/components/Glass/Glass.cjs.map +1 -1
- package/dist/components/Glass/Glass.d.ts.map +1 -1
- package/dist/components/Glass/Glass.js.map +1 -1
- package/dist/components/Icon/BigIcon/BigIcon.cjs.map +1 -1
- package/dist/components/Icon/BigIcon/BigIcon.d.ts.map +1 -1
- package/dist/components/Icon/BigIcon/BigIcon.js.map +1 -1
- package/dist/components/Icon/IndicatorIcon/IndicatorIcon.cjs.map +1 -1
- package/dist/components/Icon/IndicatorIcon/IndicatorIcon.d.ts.map +1 -1
- package/dist/components/Icon/IndicatorIcon/IndicatorIcon.js.map +1 -1
- package/dist/components/InlineSpinner/InlineSpinner.cjs.map +1 -1
- package/dist/components/InlineSpinner/InlineSpinner.d.ts.map +1 -1
- package/dist/components/InlineSpinner/InlineSpinner.js.map +1 -1
- package/dist/components/Link/Link.cjs.map +1 -1
- package/dist/components/Link/Link.d.ts.map +1 -1
- package/dist/components/Link/Link.js.map +1 -1
- package/dist/components/Menu/CheckboxMenuItem.cjs.map +1 -1
- package/dist/components/Menu/CheckboxMenuItem.d.ts.map +1 -1
- package/dist/components/Menu/CheckboxMenuItem.js.map +1 -1
- package/dist/components/Menu/ContextMenu.cjs.map +1 -1
- package/dist/components/Menu/ContextMenu.d.ts.map +1 -1
- package/dist/components/Menu/ContextMenu.js.map +1 -1
- package/dist/components/Menu/DrawerMenu.cjs.map +1 -1
- package/dist/components/Menu/DrawerMenu.d.ts.map +1 -1
- package/dist/components/Menu/DrawerMenu.js.map +1 -1
- package/dist/components/Menu/DrawerMenu.module.css.cjs +3 -3
- package/dist/components/Menu/DrawerMenu.module.css.js +3 -3
- package/dist/components/Menu/FloatingMenu.cjs.map +1 -1
- package/dist/components/Menu/FloatingMenu.d.ts.map +1 -1
- package/dist/components/Menu/FloatingMenu.js.map +1 -1
- package/dist/components/Menu/FloatingMenu.module.css.cjs +2 -2
- package/dist/components/Menu/FloatingMenu.module.css.js +2 -2
- package/dist/components/Menu/Menu.cjs.map +1 -1
- package/dist/components/Menu/Menu.d.ts.map +1 -1
- package/dist/components/Menu/Menu.js.map +1 -1
- package/dist/components/Menu/MenuContext.cjs.map +1 -1
- package/dist/components/Menu/MenuContext.d.ts.map +1 -1
- package/dist/components/Menu/MenuContext.js.map +1 -1
- package/dist/components/Menu/MenuItem.cjs.map +1 -1
- package/dist/components/Menu/MenuItem.d.ts.map +1 -1
- package/dist/components/Menu/MenuItem.js.map +1 -1
- package/dist/components/Menu/MenuTitle.cjs.map +1 -1
- package/dist/components/Menu/MenuTitle.js.map +1 -1
- package/dist/components/Menu/RadioMenuItem.cjs.map +1 -1
- package/dist/components/Menu/RadioMenuItem.d.ts.map +1 -1
- package/dist/components/Menu/RadioMenuItem.js.map +1 -1
- package/dist/components/Menu/ToggleMenuItem.cjs.map +1 -1
- package/dist/components/Menu/ToggleMenuItem.d.ts.map +1 -1
- package/dist/components/Menu/ToggleMenuItem.js.map +1 -1
- package/dist/components/Nav/NavBar.cjs.map +1 -1
- package/dist/components/Nav/NavBar.d.ts.map +1 -1
- package/dist/components/Nav/NavBar.js.map +1 -1
- package/dist/components/Nav/NavItem.cjs.map +1 -1
- package/dist/components/Nav/NavItem.d.ts.map +1 -1
- package/dist/components/Nav/NavItem.js.map +1 -1
- package/dist/components/Progress/Progress.cjs.map +1 -1
- package/dist/components/Progress/Progress.js.map +1 -1
- package/dist/components/ReleaseAnnouncement/ReleaseAnnouncement.cjs.map +1 -1
- package/dist/components/ReleaseAnnouncement/ReleaseAnnouncement.d.ts.map +1 -1
- package/dist/components/ReleaseAnnouncement/ReleaseAnnouncement.js.map +1 -1
- package/dist/components/ReleaseAnnouncement/ReleaseAnnouncementContext.cjs.map +1 -1
- package/dist/components/ReleaseAnnouncement/ReleaseAnnouncementContext.d.ts.map +1 -1
- package/dist/components/ReleaseAnnouncement/ReleaseAnnouncementContext.js.map +1 -1
- package/dist/components/ReleaseAnnouncement/useReleaseAnnouncement.cjs.map +1 -1
- package/dist/components/ReleaseAnnouncement/useReleaseAnnouncement.d.ts.map +1 -1
- package/dist/components/ReleaseAnnouncement/useReleaseAnnouncement.js.map +1 -1
- package/dist/components/Search/Search.cjs.map +1 -1
- package/dist/components/Search/Search.d.ts.map +1 -1
- package/dist/components/Search/Search.js.map +1 -1
- package/dist/components/Separator/Separator.cjs.map +1 -1
- package/dist/components/Separator/Separator.d.ts.map +1 -1
- package/dist/components/Separator/Separator.js.map +1 -1
- package/dist/components/Toast/Toast.cjs.map +1 -1
- package/dist/components/Toast/Toast.d.ts.map +1 -1
- package/dist/components/Toast/Toast.js.map +1 -1
- package/dist/components/Tooltip/Tooltip.cjs.map +1 -1
- package/dist/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/components/Tooltip/TooltipContext.cjs.map +1 -1
- package/dist/components/Tooltip/TooltipContext.d.ts.map +1 -1
- package/dist/components/Tooltip/TooltipContext.js.map +1 -1
- package/dist/components/Tooltip/TooltipProvider.cjs.map +1 -1
- package/dist/components/Tooltip/TooltipProvider.d.ts.map +1 -1
- package/dist/components/Tooltip/TooltipProvider.js.map +1 -1
- package/dist/components/Tooltip/useTooltip.cjs.map +1 -1
- package/dist/components/Tooltip/useTooltip.d.ts.map +1 -1
- package/dist/components/Tooltip/useTooltip.js.map +1 -1
- package/dist/components/Typography/Body.cjs.map +1 -1
- package/dist/components/Typography/Body.js.map +1 -1
- package/dist/components/Typography/Heading.cjs.map +1 -1
- package/dist/components/Typography/Heading.js.map +1 -1
- package/dist/components/Typography/Text.cjs.map +1 -1
- package/dist/components/Typography/Text.js.map +1 -1
- package/dist/components/Typography/Typography.cjs.map +1 -1
- package/dist/components/Typography/Typography.d.ts.map +1 -1
- package/dist/components/Typography/Typography.js.map +1 -1
- package/dist/components/VisualList/VisualList.cjs.map +1 -1
- package/dist/components/VisualList/VisualList.d.ts.map +1 -1
- package/dist/components/VisualList/VisualList.js.map +1 -1
- package/dist/components/VisualList/VisualListItem.cjs.map +1 -1
- package/dist/components/VisualList/VisualListItem.d.ts.map +1 -1
- package/dist/components/VisualList/VisualListItem.js.map +1 -1
- package/dist/{style.css.css → style.css} +21 -21
- package/dist/utils/__ComponentTemplate__/__ComponentTemplate__.d.ts.map +1 -1
- package/dist/utils/platform.cjs.map +1 -1
- package/dist/utils/platform.js.map +1 -1
- package/dist/utils/string.cjs.map +1 -1
- package/dist/utils/string.js.map +1 -1
- package/package.json +30 -32
- package/src/components/ActivityMarker/Pill.tsx +1 -1
- package/src/components/ActivityMarker/Unread.tsx +1 -1
- package/src/components/ActivityMarker/UnreadCounter.tsx +1 -1
- package/src/components/Alert/Alert.tsx +1 -1
- package/src/components/Avatar/Avatar.tsx +1 -1
- package/src/components/Badge/Badge.tsx +1 -1
- package/src/components/Breadcrumb/Breadcrumb.tsx +6 -1
- package/src/components/Button/Button.tsx +5 -5
- package/src/components/Button/IconButton/IconButton.tsx +2 -2
- package/src/components/Button/UnstyledButton.tsx +6 -1
- package/src/components/ChatFilter/ChatFilter.tsx +2 -2
- package/src/components/Dropdown/Dropdown.tsx +5 -5
- package/src/components/Form/Controls/Action/Action.tsx +6 -1
- package/src/components/Form/Controls/Checkbox/Checkbox.tsx +5 -1
- package/src/components/Form/Controls/MFA/MFA.tsx +3 -3
- package/src/components/Form/Controls/Password/Password.tsx +2 -2
- package/src/components/Form/Controls/Radio/Radio.tsx +3 -3
- package/src/components/Form/Controls/SettingsToggle/SettingsToggle.tsx +8 -5
- package/src/components/Form/Controls/Text/Text.tsx +5 -1
- package/src/components/Form/Controls/Toggle/Toggle.tsx +10 -4
- package/src/components/Form/Field.tsx +1 -1
- package/src/components/Form/InlineField.tsx +1 -1
- package/src/components/Form/Label.tsx +1 -1
- package/src/components/Form/Message.tsx +1 -1
- package/src/components/Form/Root.tsx +1 -1
- package/src/components/Form/Submit.tsx +1 -1
- package/src/components/Glass/Glass.tsx +2 -2
- package/src/components/Icon/BigIcon/BigIcon.tsx +1 -1
- package/src/components/Icon/IndicatorIcon/IndicatorIcon.tsx +1 -1
- package/src/components/InlineSpinner/InlineSpinner.tsx +1 -1
- package/src/components/Link/Link.tsx +1 -1
- package/src/components/Menu/CheckboxMenuItem.tsx +6 -1
- package/src/components/Menu/ContextMenu.tsx +12 -2
- package/src/components/Menu/DrawerMenu.module.css +1 -1
- package/src/components/Menu/DrawerMenu.tsx +5 -1
- package/src/components/Menu/FloatingMenu.module.css +1 -1
- package/src/components/Menu/FloatingMenu.tsx +2 -2
- package/src/components/Menu/Menu.tsx +6 -2
- package/src/components/Menu/MenuContext.tsx +1 -1
- package/src/components/Menu/MenuItem.tsx +6 -6
- package/src/components/Menu/RadioMenuItem.tsx +6 -1
- package/src/components/Menu/ToggleMenuItem.tsx +6 -1
- package/src/components/Nav/NavItem.tsx +4 -4
- package/src/components/ReleaseAnnouncement/ReleaseAnnouncement.tsx +4 -4
- package/src/components/ReleaseAnnouncement/useReleaseAnnouncement.tsx +2 -2
- package/src/components/Search/Search.tsx +1 -1
- package/src/components/Separator/Separator.tsx +3 -3
- package/src/components/Toast/Toast.tsx +1 -1
- package/src/components/Tooltip/Tooltip.tsx +9 -9
- package/src/components/Tooltip/TooltipProvider.tsx +1 -1
- package/src/components/Tooltip/useTooltip.ts +4 -4
- package/src/components/Typography/Typography.tsx +1 -1
- package/src/components/VisualList/VisualList.tsx +1 -1
- package/src/components/VisualList/VisualListItem.tsx +5 -1
- package/src/utils/__ComponentTemplate__/__ComponentTemplate__.tsx +1 -1
- package/tsconfig.json +3 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vector-im/compound-web",
|
|
3
|
-
"version": "8.1
|
|
3
|
+
"version": "8.2.1",
|
|
4
4
|
"description": "Compound components for the Web",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
"sideEffects": false,
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
-
"
|
|
12
|
-
"import": "./dist/index.js",
|
|
11
|
+
"style": "./dist/style.css",
|
|
13
12
|
"types": "./dist/index.d.ts",
|
|
14
|
-
"
|
|
13
|
+
"require": "./dist/index.cjs",
|
|
14
|
+
"import": "./dist/index.js"
|
|
15
15
|
},
|
|
16
16
|
"./dist/style.css": "./dist/style.css"
|
|
17
17
|
},
|
|
@@ -27,8 +27,9 @@
|
|
|
27
27
|
"lint:ts": "tsc --noEmit -p .",
|
|
28
28
|
"lint:styles": "npx stylelint 'src/**/*.css'",
|
|
29
29
|
"test": "vitest",
|
|
30
|
-
"e2e": "playwright test",
|
|
31
|
-
"e2e:docker": "docker run --rm --network host --ipc=host --security-opt seccomp=playwright/seccomp_profile.json -v $(pwd)/../:/work/ -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/:/tmp/ --init -it $(docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -q playwright)",
|
|
30
|
+
"e2e": "yarn build-storybook && playwright test",
|
|
31
|
+
"e2e:docker": "yarn build-storybook && docker run --rm --network host --ipc=host --security-opt seccomp=playwright/seccomp_profile.json -v $(pwd)/../:/work/ -v /var/run/docker.sock:/var/run/docker.sock -v /tmp/:/tmp/ --init -it $(docker build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -q playwright)",
|
|
32
|
+
"e2e:podman": "yarn build-storybook && podman run --rm --network host --ipc=host --security-opt seccomp=playwright/seccomp_profile.json -v $(pwd)/../:/work/ -v /tmp/:/tmp/ --userns=keep-id --init -it $(podman build --build-arg UID=$(id -u) --build-arg GID=$(id -g) -q playwright)",
|
|
32
33
|
"build-storybook": "storybook build",
|
|
33
34
|
"storybook": "storybook dev -p 6006",
|
|
34
35
|
"gen:component": "node scripts/genComponent.js"
|
|
@@ -50,57 +51,54 @@
|
|
|
50
51
|
},
|
|
51
52
|
"homepage": "https://github.com/vector-im/compound-web#readme",
|
|
52
53
|
"devDependencies": {
|
|
54
|
+
"@element-hq/element-web-playwright-common": "^1.4.2",
|
|
53
55
|
"@fontsource/inconsolata": "^5.0.8",
|
|
54
56
|
"@fontsource/inter": "^5.0.8",
|
|
55
57
|
"@playwright/test": "^1.41.1",
|
|
56
|
-
"@storybook/addon-a11y": "^
|
|
57
|
-
"@storybook/addon-designs": "
|
|
58
|
-
"@storybook/addon-
|
|
59
|
-
"@storybook/addon-
|
|
60
|
-
"@storybook/addon-
|
|
61
|
-
"@storybook/
|
|
62
|
-
"@storybook/manager-api": "^8.1.1",
|
|
63
|
-
"@storybook/react": "^8.1.1",
|
|
64
|
-
"@storybook/react-vite": "^8.1.1",
|
|
65
|
-
"@storybook/test": "^8.1.1",
|
|
58
|
+
"@storybook/addon-a11y": "^9.0.16",
|
|
59
|
+
"@storybook/addon-designs": "10.0.2",
|
|
60
|
+
"@storybook/addon-docs": "^9.0.16",
|
|
61
|
+
"@storybook/addon-links": "^9.0.16",
|
|
62
|
+
"@storybook/addon-themes": "^9.0.16",
|
|
63
|
+
"@storybook/react-vite": "^9.0.16",
|
|
66
64
|
"@testing-library/dom": "^10.3.2",
|
|
67
65
|
"@testing-library/jest-dom": "^6.1.3",
|
|
68
66
|
"@testing-library/react": "^16.0.0",
|
|
69
67
|
"@testing-library/user-event": "^14.5.1",
|
|
70
68
|
"@tsconfig/node20": "^20.1.4",
|
|
71
|
-
"@tsconfig/vite-react": "^
|
|
69
|
+
"@tsconfig/vite-react": "^7.0.0",
|
|
72
70
|
"@types/eslint": "^9.0.0",
|
|
73
71
|
"@types/node": "^22.0.0",
|
|
74
72
|
"@types/react": "^19.0.0",
|
|
75
73
|
"@typescript-eslint/eslint-plugin": "^8.0.0",
|
|
76
74
|
"@typescript-eslint/parser": "^8.0.0",
|
|
77
|
-
"@vector-im/compound-design-tokens": "^
|
|
78
|
-
"@vitejs/plugin-react": "^
|
|
79
|
-
"@vitest/coverage-v8": "^3.
|
|
75
|
+
"@vector-im/compound-design-tokens": "^6.0.0",
|
|
76
|
+
"@vitejs/plugin-react": "^5.0.0",
|
|
77
|
+
"@vitest/coverage-v8": "^3.2.4",
|
|
80
78
|
"browserslist-to-esbuild": "^2.0.0",
|
|
81
79
|
"eslint": "^8.49.0",
|
|
82
80
|
"eslint-config-prettier": "^10.0.0",
|
|
83
|
-
"eslint-plugin-matrix-org": "^
|
|
81
|
+
"eslint-plugin-matrix-org": "^2.0.0",
|
|
84
82
|
"eslint-plugin-prettier": "^5.0.0",
|
|
85
83
|
"eslint-plugin-react": "^7.33.2",
|
|
86
|
-
"eslint-plugin-storybook": "^0.
|
|
87
|
-
"jsdom": "^26.
|
|
88
|
-
"prettier": "3.
|
|
89
|
-
"react": "^19.
|
|
90
|
-
"react-dom": "^19.
|
|
84
|
+
"eslint-plugin-storybook": "^9.0.16",
|
|
85
|
+
"jsdom": "^26.1.0",
|
|
86
|
+
"prettier": "3.6.2",
|
|
87
|
+
"react": "^19.1.0",
|
|
88
|
+
"react-dom": "^19.1.0",
|
|
91
89
|
"resize-observer-polyfill": "^1.5.1",
|
|
92
90
|
"rimraf": "^6.0.0",
|
|
93
91
|
"serve": "^14.2.1",
|
|
94
|
-
"storybook": "^
|
|
92
|
+
"storybook": "^9.0.16",
|
|
95
93
|
"stylelint": "^16.13.2",
|
|
96
|
-
"stylelint-config-standard": "^
|
|
94
|
+
"stylelint-config-standard": "^39.0.0",
|
|
97
95
|
"stylelint-plugin-defensive-css": "^1.0.0",
|
|
98
96
|
"stylelint-use-logical": "^2.1.0",
|
|
99
97
|
"stylelint-value-no-unknown-custom-properties": "^6.0.0",
|
|
100
98
|
"typescript": "^5.2.2",
|
|
101
|
-
"vite": "^
|
|
102
|
-
"vite-plugin-dts": "^4.
|
|
103
|
-
"vitest": "^3.
|
|
99
|
+
"vite": "^7.0.3",
|
|
100
|
+
"vite-plugin-dts": "^4.5.4",
|
|
101
|
+
"vitest": "^3.2.4"
|
|
104
102
|
},
|
|
105
103
|
"dependencies": {
|
|
106
104
|
"@floating-ui/react": "^0.27.0",
|
|
@@ -117,7 +115,7 @@
|
|
|
117
115
|
"@fontsource/inconsolata": "^5",
|
|
118
116
|
"@fontsource/inter": "^5",
|
|
119
117
|
"@types/react": "*",
|
|
120
|
-
"@vector-im/compound-design-tokens": ">=1.6.1 <
|
|
118
|
+
"@vector-im/compound-design-tokens": ">=1.6.1 <7.0.0",
|
|
121
119
|
"react": "^18 || ^19.0.0"
|
|
122
120
|
},
|
|
123
121
|
"peerDependenciesMeta": {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { HTMLProps } from "react";
|
|
8
|
+
import React, { type HTMLProps } from "react";
|
|
9
9
|
import styles from "./Unread.module.css";
|
|
10
10
|
|
|
11
11
|
export function Unread(props: HTMLProps<HTMLDivElement>) {
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { HTMLProps } from "react";
|
|
8
|
+
import React, { type HTMLProps } from "react";
|
|
9
9
|
import styles from "./UnreadCounter.module.css";
|
|
10
10
|
|
|
11
11
|
interface UnreadCounterProps extends HTMLProps<HTMLDivElement> {
|
|
@@ -6,7 +6,7 @@ Please see LICENSE files in the repository root for full details.
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import classNames from "classnames";
|
|
9
|
-
import React, { PropsWithChildren, useCallback } from "react";
|
|
9
|
+
import React, { type PropsWithChildren, useCallback } from "react";
|
|
10
10
|
|
|
11
11
|
import CheckCircleIcon from "@vector-im/compound-design-tokens/assets/web/icons/check-circle";
|
|
12
12
|
import ErrorIcon from "@vector-im/compound-design-tokens/assets/web/icons/error-solid";
|
|
@@ -6,7 +6,7 @@ Please see LICENSE files in the repository root for full details.
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import classnames from "classnames";
|
|
9
|
-
import React, { ComponentProps, forwardRef } from "react";
|
|
9
|
+
import React, { type ComponentProps, forwardRef } from "react";
|
|
10
10
|
import { getInitialLetter } from "../../utils/string";
|
|
11
11
|
import styles from "./Avatar.module.css";
|
|
12
12
|
import { useIdColorHash } from "./useIdColorHash";
|
|
@@ -6,7 +6,7 @@ Please see LICENSE files in the repository root for full details.
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import classnames from "classnames";
|
|
9
|
-
import React, { PropsWithChildren } from "react";
|
|
9
|
+
import React, { type PropsWithChildren } from "react";
|
|
10
10
|
import styles from "./Badge.module.css";
|
|
11
11
|
import { Typography } from "../Typography/Typography";
|
|
12
12
|
|
|
@@ -5,7 +5,12 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {
|
|
8
|
+
import React, {
|
|
9
|
+
type HTMLProps,
|
|
10
|
+
type JSX,
|
|
11
|
+
type MouseEventHandler,
|
|
12
|
+
type KeyboardEvent,
|
|
13
|
+
} from "react";
|
|
9
14
|
import { IconButton } from "../Button";
|
|
10
15
|
import Chevron from "@vector-im/compound-design-tokens/assets/web/icons/chevron-left";
|
|
11
16
|
import styles from "./Breadcrumb.module.css";
|
|
@@ -7,14 +7,14 @@ Please see LICENSE files in the repository root for full details.
|
|
|
7
7
|
|
|
8
8
|
import classNames from "classnames";
|
|
9
9
|
import React, {
|
|
10
|
-
ComponentType,
|
|
11
|
-
PropsWithChildren,
|
|
10
|
+
type ComponentType,
|
|
11
|
+
type PropsWithChildren,
|
|
12
12
|
forwardRef,
|
|
13
|
-
ForwardedRef,
|
|
14
|
-
Ref,
|
|
13
|
+
type ForwardedRef,
|
|
14
|
+
type Ref,
|
|
15
15
|
} from "react";
|
|
16
16
|
import styles from "./Button.module.css";
|
|
17
|
-
import { UnstyledButton, UnstyledButtonPropsFor } from "./UnstyledButton";
|
|
17
|
+
import { UnstyledButton, type UnstyledButtonPropsFor } from "./UnstyledButton";
|
|
18
18
|
|
|
19
19
|
interface ButtonComponent {
|
|
20
20
|
// With the explicit `as` prop
|
|
@@ -5,11 +5,11 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { PropsWithChildren, forwardRef } from "react";
|
|
8
|
+
import React, { type PropsWithChildren, forwardRef } from "react";
|
|
9
9
|
import classnames from "classnames";
|
|
10
10
|
|
|
11
11
|
import styles from "./IconButton.module.css";
|
|
12
|
-
import { UnstyledButton, UnstyledButtonPropsFor } from "../UnstyledButton";
|
|
12
|
+
import { UnstyledButton, type UnstyledButtonPropsFor } from "../UnstyledButton";
|
|
13
13
|
import { IndicatorIcon } from "../../Icon/IndicatorIcon/IndicatorIcon";
|
|
14
14
|
import { Tooltip } from "../../Tooltip/Tooltip";
|
|
15
15
|
|
|
@@ -5,7 +5,12 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {
|
|
8
|
+
import React, {
|
|
9
|
+
type PropsWithChildren,
|
|
10
|
+
forwardRef,
|
|
11
|
+
type ForwardedRef,
|
|
12
|
+
type Ref,
|
|
13
|
+
} from "react";
|
|
9
14
|
|
|
10
15
|
interface ButtonComponent {
|
|
11
16
|
// With the explicit `as` prop
|
|
@@ -5,10 +5,10 @@
|
|
|
5
5
|
* Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { ForwardedRef, forwardRef } from "react";
|
|
8
|
+
import React, { type ForwardedRef, forwardRef } from "react";
|
|
9
9
|
import {
|
|
10
10
|
UnstyledButton,
|
|
11
|
-
UnstyledButtonPropsFor,
|
|
11
|
+
type UnstyledButtonPropsFor,
|
|
12
12
|
} from "../Button/UnstyledButton";
|
|
13
13
|
import styles from "./ChatFilter.module.css";
|
|
14
14
|
|
|
@@ -10,17 +10,17 @@ import Check from "@vector-im/compound-design-tokens/assets/web/icons/check";
|
|
|
10
10
|
import Error from "@vector-im/compound-design-tokens/assets/web/icons/error-solid";
|
|
11
11
|
|
|
12
12
|
import React, {
|
|
13
|
-
Dispatch,
|
|
13
|
+
type Dispatch,
|
|
14
14
|
forwardRef,
|
|
15
|
-
HTMLProps,
|
|
15
|
+
type HTMLProps,
|
|
16
16
|
memo,
|
|
17
|
-
RefObject,
|
|
18
|
-
SetStateAction,
|
|
17
|
+
type RefObject,
|
|
18
|
+
type SetStateAction,
|
|
19
19
|
useCallback,
|
|
20
20
|
useEffect,
|
|
21
21
|
useRef,
|
|
22
22
|
useState,
|
|
23
|
-
KeyboardEvent,
|
|
23
|
+
type KeyboardEvent,
|
|
24
24
|
useMemo,
|
|
25
25
|
} from "react";
|
|
26
26
|
|
|
@@ -6,7 +6,12 @@ Please see LICENSE files in the repository root for full details.
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import classnames from "classnames";
|
|
9
|
-
import React, {
|
|
9
|
+
import React, {
|
|
10
|
+
forwardRef,
|
|
11
|
+
type ComponentRef,
|
|
12
|
+
type ComponentProps,
|
|
13
|
+
useId,
|
|
14
|
+
} from "react";
|
|
10
15
|
import styles from "./Action.module.css";
|
|
11
16
|
import { TextInput } from "../Text";
|
|
12
17
|
|
|
@@ -8,7 +8,11 @@ Please see LICENSE files in the repository root for full details.
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import classnames from "classnames";
|
|
11
|
-
import React, {
|
|
11
|
+
import React, {
|
|
12
|
+
type ComponentProps,
|
|
13
|
+
type ComponentRef,
|
|
14
|
+
forwardRef,
|
|
15
|
+
} from "react";
|
|
12
16
|
import CheckIcon from "@vector-im/compound-design-tokens/assets/web/icons/check";
|
|
13
17
|
import { Control } from "@radix-ui/react-form";
|
|
14
18
|
|
|
@@ -8,10 +8,10 @@ Please see LICENSE files in the repository root for full details.
|
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import React, {
|
|
11
|
-
ComponentProps,
|
|
12
|
-
ComponentRef,
|
|
11
|
+
type ComponentProps,
|
|
12
|
+
type ComponentRef,
|
|
13
13
|
forwardRef,
|
|
14
|
-
PropsWithoutRef,
|
|
14
|
+
type PropsWithoutRef,
|
|
15
15
|
} from "react";
|
|
16
16
|
|
|
17
17
|
import styles from "./MFA.module.css";
|
|
@@ -5,9 +5,9 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
import React, {
|
|
8
|
-
ComponentRef,
|
|
8
|
+
type ComponentRef,
|
|
9
9
|
forwardRef,
|
|
10
|
-
ComponentProps,
|
|
10
|
+
type ComponentProps,
|
|
11
11
|
useReducer,
|
|
12
12
|
} from "react";
|
|
13
13
|
import { Control } from "@radix-ui/react-form";
|
|
@@ -9,10 +9,10 @@ Please see LICENSE files in the repository root for full details.
|
|
|
9
9
|
|
|
10
10
|
import classnames from "classnames";
|
|
11
11
|
import React, {
|
|
12
|
-
ComponentProps,
|
|
13
|
-
ComponentRef,
|
|
12
|
+
type ComponentProps,
|
|
13
|
+
type ComponentRef,
|
|
14
14
|
forwardRef,
|
|
15
|
-
PropsWithChildren,
|
|
15
|
+
type PropsWithChildren,
|
|
16
16
|
} from "react";
|
|
17
17
|
import { Control } from "@radix-ui/react-form";
|
|
18
18
|
|
|
@@ -6,10 +6,11 @@ Please see LICENSE files in the repository root for full details.
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
import {
|
|
9
|
-
ComponentProps,
|
|
10
|
-
ComponentRef,
|
|
9
|
+
type ComponentProps,
|
|
10
|
+
type ComponentRef,
|
|
11
11
|
forwardRef,
|
|
12
|
-
PropsWithChildren,
|
|
12
|
+
type PropsWithChildren,
|
|
13
|
+
useId,
|
|
13
14
|
} from "react";
|
|
14
15
|
import { ToggleInput } from "../Toggle";
|
|
15
16
|
import { Label } from "../../Label";
|
|
@@ -48,13 +49,15 @@ export const SettingsToggleInput = forwardRef<
|
|
|
48
49
|
{ className, label, helpMessage, disabledMessage, name, ...props },
|
|
49
50
|
ref,
|
|
50
51
|
) {
|
|
52
|
+
const generatedId = useId();
|
|
53
|
+
const id = props.id ?? generatedId;
|
|
51
54
|
const content = (
|
|
52
55
|
<InlineField
|
|
53
56
|
className={className}
|
|
54
57
|
name={name}
|
|
55
|
-
control={<ToggleInput ref={ref} {...props} />}
|
|
58
|
+
control={<ToggleInput id={id} ref={ref} {...props} />}
|
|
56
59
|
>
|
|
57
|
-
<Label>{label}</Label>
|
|
60
|
+
<Label htmlFor={id}>{label}</Label>
|
|
58
61
|
{helpMessage && <HelpMessage>{helpMessage}</HelpMessage>}
|
|
59
62
|
{disabledMessage && props.disabled && (
|
|
60
63
|
<HelpMessage>{disabledMessage}</HelpMessage>
|
|
@@ -7,7 +7,11 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
7
7
|
Please see LICENSE files in the repository root for full details.
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
|
-
import React, {
|
|
10
|
+
import React, {
|
|
11
|
+
forwardRef,
|
|
12
|
+
type ComponentProps,
|
|
13
|
+
type ComponentRef,
|
|
14
|
+
} from "react";
|
|
11
15
|
import { Control } from "@radix-ui/react-form";
|
|
12
16
|
|
|
13
17
|
import styles from "./Text.module.css";
|
|
@@ -9,10 +9,10 @@ Please see LICENSE files in the repository root for full details.
|
|
|
9
9
|
|
|
10
10
|
import classnames from "classnames";
|
|
11
11
|
import React, {
|
|
12
|
-
ComponentProps,
|
|
13
|
-
ComponentRef,
|
|
12
|
+
type ComponentProps,
|
|
13
|
+
type ComponentRef,
|
|
14
14
|
forwardRef,
|
|
15
|
-
PropsWithChildren,
|
|
15
|
+
type PropsWithChildren,
|
|
16
16
|
} from "react";
|
|
17
17
|
import styles from "./Toggle.module.css";
|
|
18
18
|
import { Control } from "@radix-ui/react-form";
|
|
@@ -34,7 +34,13 @@ export const ToggleInput = forwardRef<
|
|
|
34
34
|
const classes = classnames(styles.container, className);
|
|
35
35
|
return (
|
|
36
36
|
<div className={classes}>
|
|
37
|
-
<input
|
|
37
|
+
<input
|
|
38
|
+
role="switch"
|
|
39
|
+
ref={ref}
|
|
40
|
+
className={styles.input}
|
|
41
|
+
{...props}
|
|
42
|
+
type="checkbox"
|
|
43
|
+
/>
|
|
38
44
|
<div className={styles.ui} />
|
|
39
45
|
</div>
|
|
40
46
|
);
|
|
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { forwardRef, PropsWithChildren } from "react";
|
|
8
|
+
import React, { forwardRef, type PropsWithChildren } from "react";
|
|
9
9
|
import { Field as RadixField } from "@radix-ui/react-form";
|
|
10
10
|
|
|
11
11
|
import styles from "./form.module.css";
|
|
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { forwardRef, ReactElement } from "react";
|
|
8
|
+
import React, { forwardRef, type ReactElement } from "react";
|
|
9
9
|
import { Field } from "@radix-ui/react-form";
|
|
10
10
|
|
|
11
11
|
import styles from "./form.module.css";
|
|
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { PropsWithChildren, forwardRef } from "react";
|
|
8
|
+
import React, { type PropsWithChildren, forwardRef } from "react";
|
|
9
9
|
import { Label as RadixLabel } from "@radix-ui/react-form";
|
|
10
10
|
|
|
11
11
|
import styles from "./form.module.css";
|
|
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { forwardRef, PropsWithChildren } from "react";
|
|
8
|
+
import React, { forwardRef, type PropsWithChildren } from "react";
|
|
9
9
|
import { Message } from "@radix-ui/react-form";
|
|
10
10
|
import CheckCircleSolidIcon from "@vector-im/compound-design-tokens/assets/web/icons/check-circle-solid";
|
|
11
11
|
import ErrorIcon from "@vector-im/compound-design-tokens/assets/web/icons/error-solid";
|
|
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { forwardRef, PropsWithChildren } from "react";
|
|
8
|
+
import React, { forwardRef, type PropsWithChildren } from "react";
|
|
9
9
|
import { Root as RadixRoot } from "@radix-ui/react-form";
|
|
10
10
|
|
|
11
11
|
import styles from "./form.module.css";
|
|
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { forwardRef, ComponentPropsWithoutRef } from "react";
|
|
8
|
+
import React, { forwardRef, type ComponentPropsWithoutRef } from "react";
|
|
9
9
|
import { Submit as RadixSubmit } from "@radix-ui/react-form";
|
|
10
10
|
|
|
11
11
|
import { Button } from "../Button/Button";
|
|
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { JSX, PropsWithChildren } from "react";
|
|
8
|
+
import React, { type JSX, type PropsWithChildren } from "react";
|
|
9
9
|
import styles from "./BigIcon.module.css";
|
|
10
10
|
import classNames from "classnames";
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { PropsWithChildren, forwardRef } from "react";
|
|
8
|
+
import React, { type PropsWithChildren, forwardRef } from "react";
|
|
9
9
|
import classnames from "classnames";
|
|
10
10
|
|
|
11
11
|
import styles from "./IndicatorIcon.module.css";
|
|
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { SVGAttributes, forwardRef } from "react";
|
|
8
|
+
import React, { type SVGAttributes, forwardRef } from "react";
|
|
9
9
|
import styles from "./InlineSpinner.module.css";
|
|
10
10
|
import SpinnerIcon from "@vector-im/compound-design-tokens/assets/web/icons/spinner";
|
|
11
11
|
|
|
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, { forwardRef, PropsWithChildren } from "react";
|
|
8
|
+
import React, { forwardRef, type PropsWithChildren } from "react";
|
|
9
9
|
import styles from "./Link.module.css";
|
|
10
10
|
import classNames from "classnames";
|
|
11
11
|
|
|
@@ -5,7 +5,12 @@
|
|
|
5
5
|
* Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {
|
|
8
|
+
import React, {
|
|
9
|
+
type ComponentProps,
|
|
10
|
+
forwardRef,
|
|
11
|
+
useCallback,
|
|
12
|
+
useId,
|
|
13
|
+
} from "react";
|
|
9
14
|
import { MenuItem } from "./MenuItem";
|
|
10
15
|
import { CheckboxInput } from "../Form";
|
|
11
16
|
|
|
@@ -5,7 +5,13 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {
|
|
8
|
+
import React, {
|
|
9
|
+
type FC,
|
|
10
|
+
type ReactNode,
|
|
11
|
+
useCallback,
|
|
12
|
+
useMemo,
|
|
13
|
+
useState,
|
|
14
|
+
} from "react";
|
|
9
15
|
import {
|
|
10
16
|
Root,
|
|
11
17
|
Trigger,
|
|
@@ -18,7 +24,11 @@ import { Drawer } from "vaul";
|
|
|
18
24
|
import classnames from "classnames";
|
|
19
25
|
import drawerStyles from "./DrawerMenu.module.css";
|
|
20
26
|
import contextStyles from "./ContextMenu.module.css";
|
|
21
|
-
import {
|
|
27
|
+
import {
|
|
28
|
+
MenuContext,
|
|
29
|
+
type MenuData,
|
|
30
|
+
type MenuItemWrapperProps,
|
|
31
|
+
} from "./MenuContext";
|
|
22
32
|
import { DrawerMenu } from "./DrawerMenu";
|
|
23
33
|
import { getPlatform } from "../../utils/platform";
|
|
24
34
|
|
|
@@ -11,7 +11,7 @@ Please see LICENSE files in the repository root for full details.
|
|
|
11
11
|
|
|
12
12
|
/* TODO: This value is used across modals and menu drawers, so would be worth
|
|
13
13
|
tokenizing */
|
|
14
|
-
background:
|
|
14
|
+
background: rgb(3 12 27 / 52.8%);
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
.drawer {
|
|
@@ -5,7 +5,11 @@ SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
|
5
5
|
Please see LICENSE files in the repository root for full details.
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
|
-
import React, {
|
|
8
|
+
import React, {
|
|
9
|
+
type ComponentPropsWithoutRef,
|
|
10
|
+
type ReactNode,
|
|
11
|
+
forwardRef,
|
|
12
|
+
} from "react";
|
|
9
13
|
import styles from "./DrawerMenu.module.css";
|
|
10
14
|
import { getPlatform } from "../../utils/platform";
|
|
11
15
|
import classNames from "classnames";
|
|
@@ -15,7 +15,7 @@ Please see LICENSE files in the repository root for full details.
|
|
|
15
15
|
outline: var(--cpd-border-width-1) solid
|
|
16
16
|
var(--cpd-color-border-interactive-secondary) !important;
|
|
17
17
|
outline-offset: calc(-1 * var(--cpd-border-width-1));
|
|
18
|
-
box-shadow: 0 4px 24px 0
|
|
18
|
+
box-shadow: 0 4px 24px 0 rgb(0 0 0 / 10%);
|
|
19
19
|
inline-size: fit-content;
|
|
20
20
|
max-inline-size: 320px;
|
|
21
21
|
display: flex;
|
|
@@ -7,8 +7,8 @@ Please see LICENSE files in the repository root for full details.
|
|
|
7
7
|
|
|
8
8
|
import classnames from "classnames";
|
|
9
9
|
import React, {
|
|
10
|
-
ComponentPropsWithoutRef,
|
|
11
|
-
ReactNode,
|
|
10
|
+
type ComponentPropsWithoutRef,
|
|
11
|
+
type ReactNode,
|
|
12
12
|
forwardRef,
|
|
13
13
|
useId,
|
|
14
14
|
} from "react";
|