@danske/sapphire-react-lab 0.93.1 → 0.94.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/build/cjs/index.js +226 -152
- package/build/cjs/index.js.map +1 -1
- package/build/esm/Flag/src/Flag.js +59 -0
- package/build/esm/Flag/src/Flag.js.map +1 -0
- package/build/esm/LabeledValue/src/LabeledValue.js +26 -6
- package/build/esm/LabeledValue/src/LabeledValue.js.map +1 -1
- package/build/esm/TagGroup/src/TagGroup.js +2 -1
- package/build/esm/TagGroup/src/TagGroup.js.map +1 -1
- package/build/esm/index.js +1 -0
- package/build/esm/index.js.map +1 -1
- package/build/index.d.ts +33 -2
- package/package.json +28 -28
package/build/index.d.ts
CHANGED
|
@@ -162,6 +162,37 @@ interface FileDropzoneProps extends SapphireStyleProps, Pick<DropOptions, 'getDr
|
|
|
162
162
|
}
|
|
163
163
|
declare const FileDropzone: React__default.ForwardRefExoticComponent<FileDropzoneProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
164
164
|
|
|
165
|
+
declare type FlagProps = SapphireStyleProps & {
|
|
166
|
+
'aria-label'?: string;
|
|
167
|
+
/**
|
|
168
|
+
* The size of the flag.
|
|
169
|
+
* @default 'lg'
|
|
170
|
+
*/
|
|
171
|
+
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
172
|
+
/**
|
|
173
|
+
* Flags come in square or rounded shapes. Square flags are used for display purposes, ensuring a clean and consistent look.
|
|
174
|
+
* Rounded flags are reserved for actionable elements like buttons or selectors, providing a more interactive and approachable feel.
|
|
175
|
+
* @default false
|
|
176
|
+
*/
|
|
177
|
+
rounded?: boolean;
|
|
178
|
+
children: React__default.ReactNode;
|
|
179
|
+
};
|
|
180
|
+
declare const Flag: React__default.ForwardRefExoticComponent<SapphireStyleProps & {
|
|
181
|
+
'aria-label'?: string | undefined;
|
|
182
|
+
/**
|
|
183
|
+
* The size of the flag.
|
|
184
|
+
* @default 'lg'
|
|
185
|
+
*/
|
|
186
|
+
size?: "xs" | "xl" | "sm" | "md" | "lg" | undefined;
|
|
187
|
+
/**
|
|
188
|
+
* Flags come in square or rounded shapes. Square flags are used for display purposes, ensuring a clean and consistent look.
|
|
189
|
+
* Rounded flags are reserved for actionable elements like buttons or selectors, providing a more interactive and approachable feel.
|
|
190
|
+
* @default false
|
|
191
|
+
*/
|
|
192
|
+
rounded?: boolean | undefined;
|
|
193
|
+
children: React__default.ReactNode;
|
|
194
|
+
} & React__default.RefAttributes<HTMLSpanElement>>;
|
|
195
|
+
|
|
165
196
|
interface SapphireNumberFieldProps
|
|
166
197
|
/**
|
|
167
198
|
* Reasons to omit the below properties:
|
|
@@ -286,6 +317,6 @@ interface LabeledValueProps extends DOMProps, SapphireStyleProps {
|
|
|
286
317
|
*/
|
|
287
318
|
size?: 'lg' | 'md';
|
|
288
319
|
}
|
|
289
|
-
declare function LabeledValue(
|
|
320
|
+
declare function LabeledValue({ children, contextualHelp, label, labelPlacement, size, ...otherProps }: LabeledValueProps): React__default.JSX.Element;
|
|
290
321
|
|
|
291
|
-
export { _Accordion as Accordion, AccordionContext, AccordionHeadingProps, AccordionItemProps, AccordionProps, FileDropzone, FileDropzoneProps, FileTrigger, FileTriggerProps, FilterDropdown, FilterDropdownProps, LabeledValue, NumberField, NumberFieldProps, NumberFieldRef, TagGroup, TagGroupProps, TagItem };
|
|
322
|
+
export { _Accordion as Accordion, AccordionContext, AccordionHeadingProps, AccordionItemProps, AccordionProps, FileDropzone, FileDropzoneProps, FileTrigger, FileTriggerProps, FilterDropdown, FilterDropdownProps, Flag, FlagProps, LabeledValue, NumberField, NumberFieldProps, NumberFieldRef, TagGroup, TagGroupProps, TagItem };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danske/sapphire-react-lab",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.94.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE",
|
|
5
5
|
"description": "Experimental React components of the Sapphire Design System from Danske Bank A/S",
|
|
6
6
|
"exports": {
|
|
@@ -25,46 +25,46 @@
|
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
27
|
"@danske/sapphire-icons": "^2.1.0",
|
|
28
|
-
"@danske/sapphire-react": "^4.0
|
|
28
|
+
"@danske/sapphire-react": "^4.11.0",
|
|
29
29
|
"react": ">=16.8.0",
|
|
30
30
|
"react-dom": ">=16.8.0"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@danske/sapphire-icons": "^2.
|
|
34
|
-
"@danske/sapphire-react": "^4.
|
|
33
|
+
"@danske/sapphire-icons": "^2.2.0",
|
|
34
|
+
"@danske/sapphire-react": "^4.11.0",
|
|
35
35
|
"@types/react-transition-group": "^4.4.5",
|
|
36
36
|
"cross-env": "^7.0.3"
|
|
37
37
|
},
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"@danske/sapphire-css": "^
|
|
39
|
+
"@danske/sapphire-css": "^37.0.0",
|
|
40
40
|
"@internationalized/date": "^3.6.0",
|
|
41
41
|
"@internationalized/string": "^3.2.5",
|
|
42
|
-
"@react-aria/accordion": "^3.0.0-alpha.
|
|
43
|
-
"@react-aria/button": "^3.
|
|
44
|
-
"@react-aria/combobox": "^3.
|
|
45
|
-
"@react-aria/dialog": "^3.5.
|
|
46
|
-
"@react-aria/dnd": "^3.
|
|
47
|
-
"@react-aria/focus": "^3.
|
|
48
|
-
"@react-aria/i18n": "^3.12.
|
|
49
|
-
"@react-aria/interactions": "^3.
|
|
50
|
-
"@react-aria/label": "^3.7.
|
|
51
|
-
"@react-aria/numberfield": "^3.11.
|
|
52
|
-
"@react-aria/overlays": "^3.
|
|
53
|
-
"@react-aria/tag": "^3.
|
|
54
|
-
"@react-aria/utils": "^3.
|
|
55
|
-
"@react-aria/visually-hidden": "^3.8.
|
|
42
|
+
"@react-aria/accordion": "^3.0.0-alpha.37",
|
|
43
|
+
"@react-aria/button": "^3.12.1",
|
|
44
|
+
"@react-aria/combobox": "^3.12.1",
|
|
45
|
+
"@react-aria/dialog": "^3.5.23",
|
|
46
|
+
"@react-aria/dnd": "^3.9.1",
|
|
47
|
+
"@react-aria/focus": "^3.20.1",
|
|
48
|
+
"@react-aria/i18n": "^3.12.7",
|
|
49
|
+
"@react-aria/interactions": "^3.24.1",
|
|
50
|
+
"@react-aria/label": "^3.7.16",
|
|
51
|
+
"@react-aria/numberfield": "^3.11.12",
|
|
52
|
+
"@react-aria/overlays": "^3.26.1",
|
|
53
|
+
"@react-aria/tag": "^3.5.1",
|
|
54
|
+
"@react-aria/utils": "^3.28.1",
|
|
55
|
+
"@react-aria/visually-hidden": "^3.8.21",
|
|
56
56
|
"@react-spectrum/utils": "^3.12.0",
|
|
57
|
-
"@react-stately/collections": "^3.12.
|
|
58
|
-
"@react-stately/combobox": "^3.10.
|
|
59
|
-
"@react-stately/list": "^3.
|
|
60
|
-
"@react-stately/numberfield": "^3.9.
|
|
61
|
-
"@react-stately/toggle": "^3.8.
|
|
62
|
-
"@react-stately/tree": "^3.8.
|
|
57
|
+
"@react-stately/collections": "^3.12.2",
|
|
58
|
+
"@react-stately/combobox": "^3.10.3",
|
|
59
|
+
"@react-stately/list": "^3.12.0",
|
|
60
|
+
"@react-stately/numberfield": "^3.9.10",
|
|
61
|
+
"@react-stately/toggle": "^3.8.2",
|
|
62
|
+
"@react-stately/tree": "^3.8.8",
|
|
63
63
|
"@react-stately/utils": "^3.10.5",
|
|
64
|
-
"@react-types/dialog": "^3.5.
|
|
65
|
-
"@react-types/shared": "^3.
|
|
64
|
+
"@react-types/dialog": "^3.5.16",
|
|
65
|
+
"@react-types/shared": "^3.28.0",
|
|
66
66
|
"clsx": "^1.1.1",
|
|
67
67
|
"react-transition-group": "^4.4.5"
|
|
68
68
|
},
|
|
69
|
-
"gitHead": "
|
|
69
|
+
"gitHead": "d2568c6a3ae281f2664333a4e6a30cd173aeff3e"
|
|
70
70
|
}
|