@alma-oss/spirit-web-react 4.7.0 → 4.8.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 +10 -0
- package/dist/bundles/web-react.umd.js +18 -2
- package/dist/bundles/web-react.umd.js.map +1 -1
- package/dist/bundles/web-react.umd.min.js +1 -1
- package/dist/bundles/web-react.umd.min.js.map +1 -1
- package/dist/components/UNSTABLE_Picker/UNSTABLE_Picker.cjs +1 -1
- package/dist/components/UNSTABLE_Picker/UNSTABLE_Picker.cjs.map +1 -1
- package/dist/components/UNSTABLE_Picker/UNSTABLE_Picker.js +128 -115
- package/dist/components/UNSTABLE_Picker/UNSTABLE_Picker.js.map +1 -1
- package/dist/components/UNSTABLE_Picker/constants.cjs +1 -1
- package/dist/components/UNSTABLE_Picker/constants.cjs.map +1 -1
- package/dist/components/UNSTABLE_Picker/constants.d.ts +2 -1
- package/dist/components/UNSTABLE_Picker/constants.js +10 -7
- package/dist/components/UNSTABLE_Picker/constants.js.map +1 -1
- package/dist/components/UNSTABLE_Picker/types.d.ts +4 -1
- package/dist/types/dropdown.cjs.map +1 -1
- package/dist/types/dropdown.d.ts +10 -8
- package/dist/types/dropdown.js.map +1 -1
- package/package.json +11 -11
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.cjs","sources":["../../src/types/dropdown.ts"],"sourcesContent":["import { type ElementType, type LegacyRef, type ReactNode } from 'react';\nimport {\n type AlignmentXExtendedDictionaryType,\n type AlignmentYExtendedDictionaryType,\n type Booleanish,\n type ChildrenProps,\n type ClickEvent,\n type PlacementDictionaryType,\n type PolymorphicComponentProps,\n type StyleProps,\n} from './shared';\n\nexport const DropdownFullWidthModes = {\n OFF: 'off',\n MOBILE_ONLY: 'mobile-only',\n ALL: 'all',\n} as const;\n\nexport type DropdownFullWidthModeKeys = keyof typeof DropdownFullWidthModes;\nexport type DropdownFullWidthMode = (typeof DropdownFullWidthModes)[DropdownFullWidthModeKeys];\n\nexport type DropdownTriggerRenderProps = {\n onClick: (event: ClickEvent) => void;\n className?: string | undefined;\n 'aria-expanded': Booleanish;\n 'aria-controls': string;\n ref: LegacyRef<HTMLButtonElement & HTMLAnchorElement>;\n};\n\nexport type DropdownAlignmentXType =\n | AlignmentXExtendedDictionaryType\n | { [key: string]: AlignmentXExtendedDictionaryType };\nexport type DropdownAlignmentYType =\n | AlignmentYExtendedDictionaryType\n | { [key: string]: AlignmentYExtendedDictionaryType };\n\nexport interface DropdownAlignmentProps {\n alignmentX?: DropdownAlignmentXType;\n alignmentY?: DropdownAlignmentYType;\n}\n\nexport interface
|
|
1
|
+
{"version":3,"file":"dropdown.cjs","sources":["../../src/types/dropdown.ts"],"sourcesContent":["import { type ElementType, type LegacyRef, type ReactNode } from 'react';\nimport {\n type AlignmentXExtendedDictionaryType,\n type AlignmentYExtendedDictionaryType,\n type Booleanish,\n type ChildrenProps,\n type ClickEvent,\n type PlacementDictionaryType,\n type PolymorphicComponentProps,\n type StyleProps,\n} from './shared';\n\nexport const DropdownFullWidthModes = {\n OFF: 'off',\n MOBILE_ONLY: 'mobile-only',\n ALL: 'all',\n} as const;\n\nexport type DropdownFullWidthModeKeys = keyof typeof DropdownFullWidthModes;\nexport type DropdownFullWidthMode = (typeof DropdownFullWidthModes)[DropdownFullWidthModeKeys];\n\nexport type DropdownTriggerRenderProps = {\n onClick: (event: ClickEvent) => void;\n className?: string | undefined;\n 'aria-expanded': Booleanish;\n 'aria-controls': string;\n ref: LegacyRef<HTMLButtonElement & HTMLAnchorElement>;\n};\n\nexport type DropdownAlignmentXType =\n | AlignmentXExtendedDictionaryType\n | { [key: string]: AlignmentXExtendedDictionaryType };\nexport type DropdownAlignmentYType =\n | AlignmentYExtendedDictionaryType\n | { [key: string]: AlignmentYExtendedDictionaryType };\n\nexport interface DropdownAlignmentProps {\n alignmentX?: DropdownAlignmentXType;\n alignmentY?: DropdownAlignmentYType;\n}\n\nexport interface DropdownBaseProps extends DropdownAlignmentProps, StyleProps {\n enableAutoClose?: boolean;\n fullWidthMode?: DropdownFullWidthMode;\n onAutoClose?: (event: Event) => void;\n placement?: PlacementDictionaryType;\n}\n\n/** Full `Dropdown` shell props (`DropdownBaseProps` plus `children` and `id`). */\nexport interface DropdownProps extends DropdownBaseProps, ChildrenProps {\n id: string;\n}\n\nexport interface DropdownStyleProps extends DropdownAlignmentProps, StyleProps {\n isOpen?: boolean;\n}\n\nexport interface UncontrolledDropdownProps extends DropdownProps {}\n\nexport interface SpiritDropdownProps extends DropdownProps {\n isOpen: boolean;\n onToggle: () => void;\n}\n\n/** ===== INTERNAL API ===== */\nexport interface DropdownTriggerBaseProps extends StyleProps {\n children: string | ReactNode | ((props: { isOpen: boolean }) => ReactNode);\n}\n\n/** ===== PUBLIC API ===== */\nexport type DropdownTriggerProps<E extends ElementType = 'button'> = PolymorphicComponentProps<\n E,\n DropdownTriggerBaseProps\n>;\n"],"names":["DropdownFullWidthModes"],"mappings":"gFAYO,MAAMA,EAAyB,CACpC,IAAK,MACL,YAAa,cACb,IAAK,KACP"}
|
package/dist/types/dropdown.d.ts
CHANGED
|
@@ -24,22 +24,24 @@ export interface DropdownAlignmentProps {
|
|
|
24
24
|
alignmentX?: DropdownAlignmentXType;
|
|
25
25
|
alignmentY?: DropdownAlignmentYType;
|
|
26
26
|
}
|
|
27
|
-
export interface
|
|
27
|
+
export interface DropdownBaseProps extends DropdownAlignmentProps, StyleProps {
|
|
28
|
+
enableAutoClose?: boolean;
|
|
29
|
+
fullWidthMode?: DropdownFullWidthMode;
|
|
30
|
+
onAutoClose?: (event: Event) => void;
|
|
31
|
+
placement?: PlacementDictionaryType;
|
|
32
|
+
}
|
|
33
|
+
export interface DropdownProps extends DropdownBaseProps, ChildrenProps {
|
|
28
34
|
id: string;
|
|
29
35
|
}
|
|
30
36
|
export interface DropdownStyleProps extends DropdownAlignmentProps, StyleProps {
|
|
31
37
|
isOpen?: boolean;
|
|
32
38
|
}
|
|
33
|
-
export interface
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
fullWidthMode?: DropdownFullWidthMode;
|
|
37
|
-
onAutoClose?: (event: Event) => void;
|
|
39
|
+
export interface UncontrolledDropdownProps extends DropdownProps {
|
|
40
|
+
}
|
|
41
|
+
export interface SpiritDropdownProps extends DropdownProps {
|
|
38
42
|
isOpen: boolean;
|
|
39
43
|
onToggle: () => void;
|
|
40
44
|
}
|
|
41
|
-
export interface UncontrolledDropdownProps extends ChildrenProps, Omit<SpiritDropdownProps, 'isOpen' | 'onToggle'> {
|
|
42
|
-
}
|
|
43
45
|
export interface DropdownTriggerBaseProps extends StyleProps {
|
|
44
46
|
children: string | ReactNode | ((props: {
|
|
45
47
|
isOpen: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dropdown.js","sources":["../../src/types/dropdown.ts"],"sourcesContent":["import { type ElementType, type LegacyRef, type ReactNode } from 'react';\nimport {\n type AlignmentXExtendedDictionaryType,\n type AlignmentYExtendedDictionaryType,\n type Booleanish,\n type ChildrenProps,\n type ClickEvent,\n type PlacementDictionaryType,\n type PolymorphicComponentProps,\n type StyleProps,\n} from './shared';\n\nexport const DropdownFullWidthModes = {\n OFF: 'off',\n MOBILE_ONLY: 'mobile-only',\n ALL: 'all',\n} as const;\n\nexport type DropdownFullWidthModeKeys = keyof typeof DropdownFullWidthModes;\nexport type DropdownFullWidthMode = (typeof DropdownFullWidthModes)[DropdownFullWidthModeKeys];\n\nexport type DropdownTriggerRenderProps = {\n onClick: (event: ClickEvent) => void;\n className?: string | undefined;\n 'aria-expanded': Booleanish;\n 'aria-controls': string;\n ref: LegacyRef<HTMLButtonElement & HTMLAnchorElement>;\n};\n\nexport type DropdownAlignmentXType =\n | AlignmentXExtendedDictionaryType\n | { [key: string]: AlignmentXExtendedDictionaryType };\nexport type DropdownAlignmentYType =\n | AlignmentYExtendedDictionaryType\n | { [key: string]: AlignmentYExtendedDictionaryType };\n\nexport interface DropdownAlignmentProps {\n alignmentX?: DropdownAlignmentXType;\n alignmentY?: DropdownAlignmentYType;\n}\n\nexport interface
|
|
1
|
+
{"version":3,"file":"dropdown.js","sources":["../../src/types/dropdown.ts"],"sourcesContent":["import { type ElementType, type LegacyRef, type ReactNode } from 'react';\nimport {\n type AlignmentXExtendedDictionaryType,\n type AlignmentYExtendedDictionaryType,\n type Booleanish,\n type ChildrenProps,\n type ClickEvent,\n type PlacementDictionaryType,\n type PolymorphicComponentProps,\n type StyleProps,\n} from './shared';\n\nexport const DropdownFullWidthModes = {\n OFF: 'off',\n MOBILE_ONLY: 'mobile-only',\n ALL: 'all',\n} as const;\n\nexport type DropdownFullWidthModeKeys = keyof typeof DropdownFullWidthModes;\nexport type DropdownFullWidthMode = (typeof DropdownFullWidthModes)[DropdownFullWidthModeKeys];\n\nexport type DropdownTriggerRenderProps = {\n onClick: (event: ClickEvent) => void;\n className?: string | undefined;\n 'aria-expanded': Booleanish;\n 'aria-controls': string;\n ref: LegacyRef<HTMLButtonElement & HTMLAnchorElement>;\n};\n\nexport type DropdownAlignmentXType =\n | AlignmentXExtendedDictionaryType\n | { [key: string]: AlignmentXExtendedDictionaryType };\nexport type DropdownAlignmentYType =\n | AlignmentYExtendedDictionaryType\n | { [key: string]: AlignmentYExtendedDictionaryType };\n\nexport interface DropdownAlignmentProps {\n alignmentX?: DropdownAlignmentXType;\n alignmentY?: DropdownAlignmentYType;\n}\n\nexport interface DropdownBaseProps extends DropdownAlignmentProps, StyleProps {\n enableAutoClose?: boolean;\n fullWidthMode?: DropdownFullWidthMode;\n onAutoClose?: (event: Event) => void;\n placement?: PlacementDictionaryType;\n}\n\n/** Full `Dropdown` shell props (`DropdownBaseProps` plus `children` and `id`). */\nexport interface DropdownProps extends DropdownBaseProps, ChildrenProps {\n id: string;\n}\n\nexport interface DropdownStyleProps extends DropdownAlignmentProps, StyleProps {\n isOpen?: boolean;\n}\n\nexport interface UncontrolledDropdownProps extends DropdownProps {}\n\nexport interface SpiritDropdownProps extends DropdownProps {\n isOpen: boolean;\n onToggle: () => void;\n}\n\n/** ===== INTERNAL API ===== */\nexport interface DropdownTriggerBaseProps extends StyleProps {\n children: string | ReactNode | ((props: { isOpen: boolean }) => ReactNode);\n}\n\n/** ===== PUBLIC API ===== */\nexport type DropdownTriggerProps<E extends ElementType = 'button'> = PolymorphicComponentProps<\n E,\n DropdownTriggerBaseProps\n>;\n"],"names":["DropdownFullWidthModes"],"mappings":"AAYO,MAAMA,IAAyB;AAAA,EACpC,KAAK;AAAA,EACL,aAAa;AAAA,EACb,KAAK;AACP;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alma-oss/spirit-web-react",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.0",
|
|
4
4
|
"description": "React implementation of Spirit Design System components",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"engines": {
|
|
@@ -34,15 +34,15 @@
|
|
|
34
34
|
"react-transition-group": "^4.4.5"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@alma-oss/spirit-common": "^0.6.
|
|
38
|
-
"@alma-oss/spirit-web": "^4.
|
|
37
|
+
"@alma-oss/spirit-common": "^0.6.1",
|
|
38
|
+
"@alma-oss/spirit-web": "^4.7.0",
|
|
39
39
|
"@babel/core": "7.29.0",
|
|
40
|
-
"@babel/preset-env": "7.29.
|
|
40
|
+
"@babel/preset-env": "7.29.5",
|
|
41
41
|
"@babel/preset-react": "7.28.5",
|
|
42
42
|
"@babel/preset-typescript": "7.28.5",
|
|
43
43
|
"@eslint/compat": "1.4.1",
|
|
44
44
|
"@eslint/eslintrc": "3.3.5",
|
|
45
|
-
"@figma/code-connect": "1.4.
|
|
45
|
+
"@figma/code-connect": "1.4.5",
|
|
46
46
|
"@juggle/resize-observer": "3.4.0",
|
|
47
47
|
"@lmc-eu/eslint-config-base": "3.1.3",
|
|
48
48
|
"@lmc-eu/eslint-config-jest": "3.0.6",
|
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
"@types/babel__core": "7.20.5",
|
|
59
59
|
"@types/jest": "30.0.0",
|
|
60
60
|
"@types/jest-axe": "3.5.9",
|
|
61
|
-
"@types/node": "20.19.
|
|
61
|
+
"@types/node": "20.19.41",
|
|
62
62
|
"@types/react": "18.3.28",
|
|
63
63
|
"@types/react-dom": "18.3.7",
|
|
64
64
|
"@types/react-transition-group": "4.4.12",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
"cross-env": "10.1.0",
|
|
69
69
|
"eslint": "9.39.4",
|
|
70
70
|
"eslint-config-airbnb": "19.0.4",
|
|
71
|
-
"eslint-config-spirit": "^0.
|
|
71
|
+
"eslint-config-spirit": "^0.3.0",
|
|
72
72
|
"eslint-import-resolver-typescript": "3.10.1",
|
|
73
73
|
"eslint-plugin-import": "2.32.0",
|
|
74
74
|
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"eslint-plugin-react-refresh": "0.5.2",
|
|
79
79
|
"eslint-plugin-standard": "5.0.0",
|
|
80
80
|
"html-element-attributes": "3.5.0",
|
|
81
|
-
"jest": "30.
|
|
81
|
+
"jest": "30.4.2",
|
|
82
82
|
"jest-axe": "10.0.0",
|
|
83
83
|
"npm-run-all2": "8.0.4",
|
|
84
84
|
"nx": "22.7.1",
|
|
@@ -89,9 +89,9 @@
|
|
|
89
89
|
"shx": "0.4.0",
|
|
90
90
|
"storybook": "10.3.6",
|
|
91
91
|
"ts-node": "10.9.2",
|
|
92
|
-
"tsx": "4.
|
|
92
|
+
"tsx": "4.22.2",
|
|
93
93
|
"typescript": "5.9.3",
|
|
94
|
-
"vite": "7.3.
|
|
94
|
+
"vite": "7.3.3",
|
|
95
95
|
"vite-plugin-dts": "4.5.4",
|
|
96
96
|
"vite-plugin-externalize-deps": "0.10.0"
|
|
97
97
|
},
|
|
@@ -696,5 +696,5 @@
|
|
|
696
696
|
"default": "./dist/utils/index.js"
|
|
697
697
|
}
|
|
698
698
|
},
|
|
699
|
-
"gitHead": "
|
|
699
|
+
"gitHead": "76795875c4b0205363d121c19e03e26e2c66294b"
|
|
700
700
|
}
|