@stihl-design-system/components 1.0.0-RC.10 → 1.0.0-RC.12
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/README.md +0 -9
- package/{accordion.B3UkxlAZ.js → accordion.Rvtiu8Y4.js} +3 -3
- package/accordion.d.ts +1 -0
- package/arialiveregions.Cyycgs8g.js +27 -0
- package/arialiveregions.d.ts +1 -0
- package/assets/Accordion.i4k5SMQM.css +1 -0
- package/assets/CheckboxGroup.BH1Br1dg.css +1 -0
- package/assets/Chip.DSdLuzoi.css +1 -0
- package/assets/CustomReactSelect.vHt8qNKC.css +1 -0
- package/assets/Dialog.BgzebVk4.css +1 -0
- package/assets/Drawer.Bauwxrk7.css +1 -0
- package/assets/Fieldset.DOdTbb7C.css +1 -0
- package/assets/Icon.DxRSBRSL.css +1 -0
- package/assets/InputPassword.CG7Ugu73.css +1 -0
- package/assets/InputSearch.CseChMc-.css +1 -0
- package/assets/InputStepper.C0eAYr7P.css +1 -0
- package/assets/Notification.DbRapUJo.css +1 -0
- package/assets/RadioGroup.BfMo157q.css +1 -0
- package/assets/Select.D4EXgIbz.css +1 -0
- package/assets/Textarea.KJGPTYMz.css +1 -0
- package/assets/Toast.CuafTAf7.css +1 -0
- package/assets/arialiveregions.DhsijBaL.css +1 -0
- package/assets/asterisk.BfVAUBO7.css +1 -0
- package/assets/button.DF4RBeC2.css +1 -0
- package/assets/buttonround.19uK_-oO.css +1 -0
- package/assets/checkbox.ByOoFouu.css +1 -0
- package/assets/chipgroup.BzfZLbkv.css +1 -0
- package/assets/flag.B-RLcMcf.css +1 -0
- package/assets/floatingactionbutton.E9HekT6S.css +1 -0
- package/assets/heading.u4f8Mz94.css +1 -0
- package/assets/input.BAkFKPW3.css +1 -0
- package/assets/link.DDJj0D1U.css +1 -0
- package/assets/linkstandalone.DIazcjIv.css +1 -0
- package/assets/logo.CnW8alZU.css +1 -0
- package/assets/optioncheckbox.BZaWtRD7.css +1 -0
- package/assets/radio.X-RTl_jo.css +1 -0
- package/assets/skiptocontent.PTL3256m.css +1 -0
- package/assets/spinner.2iWJWKyA.css +1 -0
- package/assets/switch.gw6aa3kx.css +1 -0
- package/assets/systemfeedback.BPz5YlPC.css +1 -0
- package/assets/text.DjTG_qNb.css +1 -0
- package/assets/title.rosWPEG3.css +1 -0
- package/asterisk.DpzETKdT.js +8 -0
- package/asterisk.d.ts +1 -0
- package/button.M4nXjcUn.js +135 -0
- package/button.d.ts +1 -0
- package/buttonround.E56F_805.js +118 -0
- package/buttonround.d.ts +1 -0
- package/checkbox.Cb2_ey6U.js +111 -0
- package/checkbox.d.ts +1 -0
- package/checkboxgroup.DBDmB-zR.js +8 -0
- package/checkboxgroup.d.ts +1 -0
- package/chip.C_1tGqvZ.js +10 -0
- package/chip.d.ts +2 -0
- package/chipgroup.BvTj1ziW.js +174 -0
- package/chipgroup.d.ts +2 -0
- package/chunks/Accordion.CB6jB3s_.js +125 -0
- package/chunks/{AriaLiveRegions.utils.D2ni4Yrf.js → AriaLiveRegions.utils.BGSZafnS.js} +2 -2
- package/chunks/CheckboxGroup.S6i5EOc4.js +92 -0
- package/chunks/Chip.CMlPUyOJ.js +142 -0
- package/chunks/{CustomReactSelect.ChAtL6fu.js → CustomReactSelect.Cg_XW3YK.js} +1056 -1049
- package/chunks/Dialog.CudsqNag.js +148 -0
- package/chunks/Drawer.ueG2Bzr9.js +154 -0
- package/chunks/Fieldset.Cjmkgxxk.js +99 -0
- package/chunks/{Icon.C2o2seDb.js → Icon.BCmt_XBG.js} +45 -45
- package/chunks/InputPassword.CNLbBFjx.js +143 -0
- package/chunks/InputSearch.CHA6mkX_.js +192 -0
- package/chunks/InputStepper.xmWGU9pU.js +294 -0
- package/chunks/Notification.o6pagKQy.js +93 -0
- package/chunks/RadioGroup.Crj7NoOs.js +137 -0
- package/chunks/Select.E6gLFYLk.js +194 -0
- package/chunks/Textarea.DUBSOpNL.js +198 -0
- package/chunks/Toast.DyEi2GEP.js +89 -0
- package/chunks/translate.isa3FHb8.js +11 -0
- package/{combobox.JL1Dsn3E.js → combobox.DUzv8jzM.js} +1 -1
- package/combobox.d.ts +1 -0
- package/components/Accordion/Accordion.d.ts +0 -1
- package/components/Accordion/Accordion.utils.d.ts +0 -1
- package/components/Button/Button.d.ts +0 -1
- package/components/ButtonRound/ButtonRound.d.ts +0 -1
- package/components/Checkbox/Checkbox.d.ts +0 -1
- package/components/CheckboxGroup/CheckboxGroup.d.ts +6 -7
- package/components/CheckboxGroup/CheckboxGroup.utils.d.ts +0 -1
- package/components/ChipGroup/Chip.d.ts +12 -0
- package/components/ChipGroup/ChipGroup.d.ts +42 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +60 -0
- package/components/ChipGroup/ChipGroup.utils.test.d.ts +1 -0
- package/components/Combobox/Combobox.d.ts +1 -2
- package/components/Combobox/Combobox.utils.d.ts +6 -1
- package/components/{CustomReactSelect → Combobox/CustomReactSelect}/CustomReactSelect.d.ts +2 -3
- package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +3 -0
- package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.test.d.ts +1 -0
- package/components/{CustomReactSelect → Combobox/CustomReactSelect}/OptionCheckbox.d.ts +0 -1
- package/components/Dialog/Dialog.d.ts +0 -1
- package/components/Dialog/Dialog.utils.d.ts +0 -1
- package/components/Drawer/Drawer.d.ts +0 -1
- package/components/Drawer/Drawer.utils.d.ts +0 -1
- package/components/Fieldset/Fieldset.d.ts +0 -1
- package/components/Fieldset/Fieldset.utils.d.ts +7 -1
- package/components/Flag/Flag.d.ts +23 -0
- package/components/Flag/Flag.test.d.ts +1 -0
- package/components/Flag/Flag.utils.d.ts +2 -0
- package/components/FloatingActionButton/FloatingActionButton.d.ts +0 -1
- package/components/Heading/Heading.d.ts +0 -1
- package/components/Icon/Icon.d.ts +0 -1
- package/components/Icon/Icon.utils.d.ts +0 -1
- package/components/Input/Input.d.ts +0 -1
- package/components/Input/Input.utils.d.ts +0 -1
- package/components/InputPassword/InputPassword.d.ts +0 -1
- package/components/InputPassword/InputPassword.utils.d.ts +0 -1
- package/components/InputSearch/InputSearch.d.ts +0 -1
- package/components/InputSearch/InputSearch.utils.d.ts +0 -1
- package/components/InputStepper/InputStepper.d.ts +0 -1
- package/components/InputStepper/InputStepper.utils.d.ts +0 -1
- package/components/Link/Link.d.ts +0 -1
- package/components/LinkStandalone/LinkStandalone.d.ts +0 -1
- package/components/Logo/Logo.d.ts +1 -2
- package/components/Logo/Logo.utils.d.ts +0 -1
- package/components/Notification/Notification.d.ts +0 -1
- package/components/Notification/Notification.utils.d.ts +0 -1
- package/components/Radio/Radio.d.ts +1 -2
- package/components/RadioGroup/RadioGroup.d.ts +7 -8
- package/components/RadioGroup/RadioGroup.utils.d.ts +2 -3
- package/components/Select/Select.d.ts +0 -1
- package/components/Select/Select.utils.d.ts +0 -1
- package/components/SkipToContent/SkipToContent.d.ts +0 -1
- package/components/Spinner/Spinner.d.ts +0 -1
- package/components/Switch/Switch.d.ts +0 -1
- package/components/SystemFeedback/SystemFeedback.d.ts +0 -1
- package/components/Text/Text.d.ts +0 -1
- package/components/Textarea/Textarea.d.ts +0 -1
- package/components/Textarea/Textarea.utils.d.ts +0 -1
- package/components/Title/Title.d.ts +0 -1
- package/components/Toast/Toast.d.ts +0 -1
- package/components/Toast/Toast.utils.d.ts +0 -1
- package/components/Toast/ToastManager.d.ts +0 -1
- package/customreactselect.CXmBRqQ9.js +13 -0
- package/customreactselect.d.ts +2 -1
- package/{dialog.D3bJ0rsW.js → dialog.DYlBUsOD.js} +2 -2
- package/dialog.d.ts +1 -0
- package/{drawer.CNPF1-Kc.js → drawer.CvhbP1ra.js} +2 -2
- package/drawer.d.ts +1 -0
- package/fieldset.CtUGEdLv.js +11 -0
- package/fieldset.d.ts +1 -0
- package/flag.BKpsdB_-.js +43 -0
- package/flag.d.ts +2 -0
- package/floatingactionbutton.D5L0B7zI.js +87 -0
- package/floatingactionbutton.d.ts +1 -0
- package/heading.IPIYc5vW.js +50 -0
- package/heading.d.ts +1 -0
- package/{icon.BoMgOmC1.js → icon.Ck0BpI34.js} +1 -1
- package/icon.d.ts +1 -0
- package/index.d.ts +4 -0
- package/index.es.js +134 -114
- package/input.BEnCFNM-.js +239 -0
- package/input.d.ts +1 -0
- package/{inputpassword.nsYu6YeB.js → inputpassword.B-D_jB9w.js} +4 -4
- package/inputpassword.d.ts +1 -0
- package/{inputsearch.ZGIrDrcv.js → inputsearch.CaSpklR1.js} +4 -4
- package/inputsearch.d.ts +1 -0
- package/{inputstepper.BvY36hA1.js → inputstepper.C7KD1-0S.js} +4 -4
- package/inputstepper.d.ts +1 -0
- package/link.DREJAoPG.js +116 -0
- package/link.d.ts +1 -0
- package/linkstandalone.BBoEniZ_.js +79 -0
- package/linkstandalone.d.ts +1 -0
- package/logo.Hul8qCFo.js +65 -0
- package/logo.d.ts +1 -0
- package/{notification.BAS13UQ6.js → notification.JWhrkEcE.js} +3 -3
- package/notification.d.ts +1 -0
- package/optioncheckbox.BRUTnQnJ.js +43 -0
- package/optioncheckbox.d.ts +2 -1
- package/package.json +47 -40
- package/partials/index.js +407 -407
- package/partials/lib/partials.d.ts +0 -1
- package/radio.DEILy_lV.js +114 -0
- package/radio.d.ts +1 -0
- package/radiogroup.DeU-HdlP.js +10 -0
- package/radiogroup.d.ts +1 -0
- package/{select.C4OZMB-V.js → select.BYraFJzz.js} +4 -4
- package/select.d.ts +1 -0
- package/skiptocontent.BxvpIB7H.js +45 -0
- package/skiptocontent.d.ts +1 -0
- package/spinner.Bq97Og-6.js +58 -0
- package/spinner.d.ts +1 -0
- package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff +0 -0
- package/styles/fonts/STIHLContrafaceDigitalTextDemi.woff2 +0 -0
- package/styles/fonts/font-face.min.css +1 -1
- package/styles/scss/ds/index.scss +19 -0
- package/styles/scss/ds/lib/animation.scss +21 -0
- package/styles/scss/ds/lib/breakpoints.scss +15 -0
- package/styles/scss/ds/lib/container-query.scss +54 -0
- package/styles/scss/ds/lib/ds-internal/_a11y.scss +15 -0
- package/styles/scss/{lib → ds/lib/ds-internal}/_focus.scss +13 -15
- package/styles/scss/ds/lib/ds-internal/_heading.scss +37 -0
- package/styles/scss/ds/lib/ds-internal/_helpers.scss +32 -0
- package/styles/scss/ds/lib/ds-internal/_high-contrast.scss +6 -0
- package/styles/scss/ds/lib/ds-internal/_hover.scss +6 -0
- package/styles/scss/ds/lib/ds-internal/_index.scss +9 -0
- package/styles/scss/ds/lib/ds-internal/_link.scss +62 -0
- package/styles/scss/ds/lib/ds-internal/_spacing-dynamic.scss +53 -0
- package/styles/scss/ds/lib/ds-internal/_text.scss +30 -0
- package/styles/scss/ds/lib/grid-extended.scss +11 -0
- package/styles/scss/ds/lib/grid-full.scss +6 -0
- package/styles/scss/ds/lib/grid-main.scss +119 -0
- package/styles/scss/ds/lib/grid-narrow.scss +14 -0
- package/styles/scss/ds/lib/grid-sidebar-sidebar.scss +52 -0
- package/styles/scss/{lib/_grid-sidebar.scss → ds/lib/grid-sidebar.scss} +23 -32
- package/styles/scss/{lib/_grid.scss → ds/lib/grid.scss} +15 -17
- package/styles/scss/ds/lib/heading.scss +75 -0
- package/styles/scss/ds/lib/link.scss +74 -0
- package/styles/scss/ds/lib/media-query.scss +32 -0
- package/styles/scss/{lib/_shadow.scss → ds/lib/shadow.scss} +2 -2
- package/styles/scss/ds/lib/spacing-dynamic.scss +7 -0
- package/styles/scss/ds/lib/spacing.scss +20 -0
- package/styles/scss/ds/lib/text.scss +83 -0
- package/styles/scss/ds/lib/theme.scss +162 -0
- package/styles/scss/ds/lib/transition.scss +36 -0
- package/switch.DI8YYa5G.js +65 -0
- package/switch.d.ts +1 -0
- package/{systemfeedback.ZzRUAVYX.js → systemfeedback.C3Pfxxpp.js} +6 -6
- package/systemfeedback.d.ts +1 -0
- package/text.DThvTwm8.js +57 -0
- package/text.d.ts +1 -0
- package/{textarea.CtQtGqn5.js → textarea.CBvH0ljM.js} +3 -3
- package/textarea.d.ts +1 -0
- package/title.DqzdB2Gq.js +36 -0
- package/title.d.ts +1 -0
- package/toast.d.ts +1 -0
- package/{toast.DVd9dLs2.js → toast.n1QUINSA.js} +3 -3
- package/{toastmanager.Dh0gzFkM.js → toastmanager.B7EZ4JSI.js} +2 -2
- package/toastmanager.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/translate.d.ts +11 -0
- package/utils/translate.test.d.ts +1 -0
- package/utils/useBreakpoint.d.ts +0 -1
- package/utils/useIsomorphicLayoutEffect.d.ts +0 -1
- package/utils/vitest.setup.d.ts +0 -1
- package/arialiveregions.BK4T7Vhk.js +0 -27
- package/assets/Accordion.lFv7Q_RG.css +0 -1
- package/assets/CustomReactSelect.CMkn-EGK.css +0 -1
- package/assets/Dialog.fiQvxJg_.css +0 -1
- package/assets/Drawer.BqBgbSuP.css +0 -1
- package/assets/Fieldset.qHYeUFZt.css +0 -1
- package/assets/Icon.Duy_0R8w.css +0 -1
- package/assets/InputPassword.Cf394z47.css +0 -1
- package/assets/InputSearch.eCRQoxjN.css +0 -1
- package/assets/InputStepper.B80KulYE.css +0 -1
- package/assets/Notification.DK6agBGS.css +0 -1
- package/assets/RadioGroup.Bz3_xkZU.css +0 -1
- package/assets/Select.BptsMxz4.css +0 -1
- package/assets/Textarea.CIIVh03G.css +0 -1
- package/assets/Toast.Dsvs1zdM.css +0 -1
- package/assets/arialiveregions.GsGx2USO.css +0 -1
- package/assets/asterisk.DlJ4YtSZ.css +0 -1
- package/assets/button.B1O7Yw3Q.css +0 -1
- package/assets/buttonround.DlH_ipDo.css +0 -1
- package/assets/checkbox.K4CVYK9g.css +0 -1
- package/assets/floatingactionbutton.DRYentYC.css +0 -1
- package/assets/heading.6bER-Eac.css +0 -1
- package/assets/input.C0MrSbQu.css +0 -1
- package/assets/link.vtTST2ki.css +0 -1
- package/assets/linkstandalone.BtAcziZ7.css +0 -1
- package/assets/logo.pETQEsvZ.css +0 -1
- package/assets/optioncheckbox.BJJAph5_.css +0 -1
- package/assets/radio.9kpIO3HC.css +0 -1
- package/assets/skiptocontent.CHcqLS7S.css +0 -1
- package/assets/spinner.D_Nnf1ZG.css +0 -1
- package/assets/switch.2DQF2zH-.css +0 -1
- package/assets/systemfeedback.Sq0bAIyf.css +0 -1
- package/assets/text.Dhb_l50R.css +0 -1
- package/assets/title.f74Bosn-.css +0 -1
- package/asterisk.DDn-yX4P.js +0 -8
- package/button.DH0h6uPs.js +0 -135
- package/buttonround.0mw4zzlU.js +0 -118
- package/checkbox.DETR3e3X.js +0 -112
- package/checkboxgroup.CZqrlF-x.js +0 -9
- package/chunks/Accordion.pI3JyHJL.js +0 -125
- package/chunks/CheckboxGroup.4J_gZ_XJ.js +0 -87
- package/chunks/Dialog.Z5ESJQMi.js +0 -148
- package/chunks/Drawer.BdowMqE0.js +0 -154
- package/chunks/Fieldset.COGbZwry.js +0 -99
- package/chunks/InputPassword.Dgo95-PU.js +0 -140
- package/chunks/InputSearch.BFof0pBn.js +0 -189
- package/chunks/InputStepper.4IqLa5tX.js +0 -291
- package/chunks/Notification.BhwbaXqk.js +0 -93
- package/chunks/RadioGroup.C5jbCJM4.js +0 -132
- package/chunks/RadioGroup.module.BBZwHDjW.js +0 -11
- package/chunks/Select.fXeQJXtz.js +0 -191
- package/chunks/Textarea.Bewrp0Za.js +0 -195
- package/chunks/Toast.DA_CQ9J-.js +0 -89
- package/components/CustomReactSelect/CustomReactSelect.utils.d.ts +0 -16
- package/customreactselect.Dg8Kgq3e.js +0 -13
- package/fieldset.CTshPWYX.js +0 -11
- package/floatingactionbutton.CCIj9Fjr.js +0 -87
- package/heading.CAkraI2D.js +0 -50
- package/input.CTgeAYdu.js +0 -236
- package/link.DAZNwQ0a.js +0 -116
- package/linkstandalone.C9X3er7g.js +0 -80
- package/logo.CEO6OV7u.js +0 -65
- package/optioncheckbox.DZWwtx6f.js +0 -43
- package/radio.CWGJtmKl.js +0 -115
- package/radiogroup.BhffFqN3.js +0 -11
- package/skiptocontent.C4yQfWr2.js +0 -46
- package/spinner.D-xrotcu.js +0 -58
- package/styles/scss/_index.scss +0 -23
- package/styles/scss/lib/_a11y.scss +0 -15
- package/styles/scss/lib/_animation.scss +0 -21
- package/styles/scss/lib/_breakpoints.scss +0 -16
- package/styles/scss/lib/_container-query.scss +0 -58
- package/styles/scss/lib/_grid-extended.scss +0 -11
- package/styles/scss/lib/_grid-full.scss +0 -6
- package/styles/scss/lib/_grid-main.scss +0 -117
- package/styles/scss/lib/_grid-narrow.scss +0 -16
- package/styles/scss/lib/_grid-sidebar-sidebar.scss +0 -50
- package/styles/scss/lib/_heading.scss +0 -107
- package/styles/scss/lib/_helpers.scss +0 -15
- package/styles/scss/lib/_high-contrast.scss +0 -24
- package/styles/scss/lib/_hover.scss +0 -10
- package/styles/scss/lib/_link.scss +0 -126
- package/styles/scss/lib/_media-query.scss +0 -32
- package/styles/scss/lib/_spacing.scss +0 -32
- package/styles/scss/lib/_text.scss +0 -110
- package/styles/scss/lib/_theme.scss +0 -162
- package/styles/scss/lib/_transition.scss +0 -45
- package/switch.CmpNUC7s.js +0 -65
- package/text.rgDKQBrU.js +0 -57
- package/title.LY1ylQsb.js +0 -36
- package/utils/render-in-iframe.d.ts +0 -15
- /package/components/{CustomReactSelect/CustomReactSelect.utils.test.d.ts → ChipGroup/ChipGroup.test.d.ts} +0 -0
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { IconName } from '../../types';
|
|
2
|
+
import { ChipGroupProps } from './ChipGroup';
|
|
3
|
+
type ValidationProps = Pick<ChipGroupProps, 'id' | 'chips' | 'label'>;
|
|
4
|
+
export declare const validateChipGroupProps: ({ chips, id, label, }: ValidationProps) => void;
|
|
5
|
+
export declare const validateIsLiveRegionPresent: () => void;
|
|
6
|
+
export interface Chip {
|
|
7
|
+
/** Unique id for the Chip. */
|
|
8
|
+
id: string | number;
|
|
9
|
+
/** Label text displayed inside the Chip. */
|
|
10
|
+
label: string;
|
|
11
|
+
/** Disables the Chip, preventing user interaction.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
/** Name of the icon to display */
|
|
16
|
+
iconName?: IconName;
|
|
17
|
+
/** Displays the Chip as selected */
|
|
18
|
+
isSelected?: boolean;
|
|
19
|
+
/** Callback function called when the Chip is clicked. */
|
|
20
|
+
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
|
|
21
|
+
}
|
|
22
|
+
export declare const CHIP_GROUP_SIZE: readonly ["medium", "small"];
|
|
23
|
+
export type ChipGroupSize = (typeof CHIP_GROUP_SIZE)[number];
|
|
24
|
+
export type ChipGroupSelectionMode = 'single' | 'multiple';
|
|
25
|
+
export type ChipGroupLanguage = 'de' | 'en';
|
|
26
|
+
export type ChipGroupAriaTranslations = typeof DS_CHIP_GROUP_TRANSLATIONS_EN;
|
|
27
|
+
export declare const DS_CHIP_GROUP_TRANSLATIONS_EN: {
|
|
28
|
+
disabled: string;
|
|
29
|
+
selected: string;
|
|
30
|
+
selectChip: string;
|
|
31
|
+
unselectAction: string;
|
|
32
|
+
selectAction: string;
|
|
33
|
+
addToSelection: string;
|
|
34
|
+
removeFromSelection: string;
|
|
35
|
+
removeChip: string;
|
|
36
|
+
titleDisabled: string;
|
|
37
|
+
titleRemovable: string;
|
|
38
|
+
titleDeactivate: string;
|
|
39
|
+
titleActivate: string;
|
|
40
|
+
};
|
|
41
|
+
export declare const DS_CHIP_GROUP_TRANSLATIONS_DE: {
|
|
42
|
+
disabled: string;
|
|
43
|
+
selected: string;
|
|
44
|
+
selectChip: string;
|
|
45
|
+
unselectAction: string;
|
|
46
|
+
selectAction: string;
|
|
47
|
+
addToSelection: string;
|
|
48
|
+
removeFromSelection: string;
|
|
49
|
+
removeChip: string;
|
|
50
|
+
titleDisabled: string;
|
|
51
|
+
titleRemovable: string;
|
|
52
|
+
titleDeactivate: string;
|
|
53
|
+
titleActivate: string;
|
|
54
|
+
};
|
|
55
|
+
export declare const DS_CHIP_GROUP_TRANSLATIONS: {
|
|
56
|
+
[key in ChipGroupLanguage]: ChipGroupAriaTranslations;
|
|
57
|
+
};
|
|
58
|
+
export declare const getChipAriaLabel: (t: (key: keyof ChipGroupAriaTranslations, replacements?: string[]) => string, label: string, disabled: boolean | undefined, isSelected: boolean | undefined, selectionMode: ChipGroupSelectionMode, isRemovable: boolean | undefined) => string;
|
|
59
|
+
export declare const getChipTitle: (t: (key: keyof ChipGroupAriaTranslations, replacements?: string[]) => string, disabled: boolean | undefined, isSelected: boolean | undefined, isRemovable: boolean | undefined) => string;
|
|
60
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { IconName } from '../../types';
|
|
2
2
|
import { ComboboxProps } from './Combobox';
|
|
3
3
|
import { GroupBase, OptionsOrGroups } from 'react-select';
|
|
4
|
-
|
|
5
4
|
export type ComboboxVariant = 'single' | 'multi';
|
|
6
5
|
type ValidationProps = Pick<ComboboxProps, 'id' | 'label' | 'options'>;
|
|
7
6
|
/**
|
|
@@ -16,9 +15,15 @@ export declare const validateComboboxProps: ({ id, label, options, }: Validation
|
|
|
16
15
|
export declare const COMBOBOX_SIZE: readonly ["medium", "small"];
|
|
17
16
|
export type ComboboxSize = (typeof COMBOBOX_SIZE)[number];
|
|
18
17
|
export interface ComboboxOption {
|
|
18
|
+
/** Label text displayed as the option. */
|
|
19
19
|
label: string;
|
|
20
|
+
/** Value of the option. */
|
|
20
21
|
value: string | number;
|
|
22
|
+
/** Name of the icon to display. */
|
|
21
23
|
leadingIconName?: IconName;
|
|
24
|
+
/** Disables the Option, preventing user interaction.
|
|
25
|
+
* @default false
|
|
26
|
+
*/
|
|
22
27
|
isDisabled?: boolean;
|
|
23
28
|
}
|
|
24
29
|
export type ComboboxOptionsGroup = GroupBase<ComboboxOption>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { GroupBase } from 'react-select';
|
|
2
|
-
import { BreakpointCustomizable, Optional } from '
|
|
3
|
-
import { ComboboxAriaTranslations, ComboboxLanguage, ComboboxOption, ComboboxOptionsGroup, ComboboxOptionsOrOptGroups, ComboboxSize } from '../Combobox
|
|
2
|
+
import { BreakpointCustomizable, Optional } from '../../../types';
|
|
3
|
+
import { ComboboxAriaTranslations, ComboboxLanguage, ComboboxOption, ComboboxOptionsGroup, ComboboxOptionsOrOptGroups, ComboboxSize } from '../Combobox.utils';
|
|
4
4
|
import { PublicBaseSelectProps } from 'react-select/dist/declarations/src/Select';
|
|
5
5
|
import { StateManagerProps } from 'react-select/dist/declarations/src/useStateManager';
|
|
6
|
-
|
|
7
6
|
type IncludedReactSelectKeys = 'className' | 'form' | 'inputValue' | 'menuIsOpen' | 'name' | 'onBlur' | 'onFocus' | 'openMenuOnClick' | 'openMenuOnFocus' | 'tabIndex';
|
|
8
7
|
type PickedReactSelectProps<OptionType, IsMulti extends boolean, GroupType extends GroupBase<OptionType>> = Pick<Optional<PublicBaseSelectProps<OptionType, IsMulti, GroupType>, 'inputValue'>, IncludedReactSelectKeys>;
|
|
9
8
|
type PickedReactSelectStateManagerProps<OptionType, IsMulti extends boolean, GroupType extends GroupBase<OptionType>> = Pick<StateManagerProps<OptionType, IsMulti, GroupType>, 'defaultInputValue'>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
import { HeadingSize, HeadingTag } from '../Heading/Heading.utils';
|
|
2
2
|
import { FieldsetProps } from './Fieldset';
|
|
3
|
-
|
|
4
3
|
export type Legend = string | {
|
|
4
|
+
/** The text content for the legend. */
|
|
5
5
|
headingText: string;
|
|
6
|
+
/** Defines the size of the heading, using predefined size types.
|
|
7
|
+
* @default 'medium'
|
|
8
|
+
*/
|
|
6
9
|
headingSize?: HeadingSize;
|
|
10
|
+
/** Specifies the HTML tag to be used for the heading, such as 'h1', 'h2', etc.
|
|
11
|
+
* @default 'h2'
|
|
12
|
+
*/
|
|
7
13
|
headingTag?: HeadingTag;
|
|
8
14
|
};
|
|
9
15
|
type ValidationProps = Pick<FieldsetProps, 'description' | 'id' | 'legend' | 'systemFeedback'>;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { IconName } from '../../types';
|
|
2
|
+
import { IconProps } from '../Icon/Icon';
|
|
3
|
+
import { FlagColor } from './Flag.utils';
|
|
4
|
+
export interface FlagProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
5
|
+
/** Content within the Flag. */
|
|
6
|
+
children: React.ReactNode;
|
|
7
|
+
/**
|
|
8
|
+
* Background color of the Flag. It can either be a predefined color token (recommended) or a custom color value (e.g. #F37A1F).
|
|
9
|
+
*
|
|
10
|
+
* Possible predefined values: `grey-light` `yellow-light` `red-light` `green-light` `orange-base`
|
|
11
|
+
*
|
|
12
|
+
* @default 'grey-light'
|
|
13
|
+
*/
|
|
14
|
+
color: FlagColor;
|
|
15
|
+
/** Name of the icon to display. */
|
|
16
|
+
iconName?: IconName;
|
|
17
|
+
/** URL or path for a custom icon. */
|
|
18
|
+
iconSource?: IconProps['source'];
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A read-only component, often representing a status or category.
|
|
22
|
+
* */
|
|
23
|
+
export declare const DSFlag: ({ children, className, color, iconName, iconSource, ...rest }: FlagProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { IconName } from '../../types';
|
|
2
2
|
import { ButtonProps } from '../Button/Button';
|
|
3
|
-
|
|
4
3
|
export interface FloatingActionButtonProps extends Omit<ButtonProps, 'hideLabel' | 'iconPosition' | 'variant' | 'isFlush'> {
|
|
5
4
|
children: React.ReactNode;
|
|
6
5
|
/** Name of the icon to display.
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { Theme } from '../../types';
|
|
3
3
|
import { HeadingSize, HeadingTag } from './Heading.utils';
|
|
4
|
-
|
|
5
4
|
export interface HeadingProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
6
5
|
/** Content within the heading. */
|
|
7
6
|
children: React.ReactNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HTMLProps, SVGProps } from 'react';
|
|
2
2
|
import { IconName, SelectedAriaAttributes, Theme } from '../../types';
|
|
3
3
|
import { IconAriaAttribute, IconSize } from './Icon.utils';
|
|
4
|
-
|
|
5
4
|
export interface IconProps {
|
|
6
5
|
/** ARIA attributes to enhance accessibility.
|
|
7
6
|
* `{'aria-label'? string;}`
|
|
@@ -2,7 +2,6 @@ import { InputHTMLAttributes } from 'react';
|
|
|
2
2
|
import { BreakpointCustomizable, IconName } from '../../types';
|
|
3
3
|
import { IconProps } from '../Icon/Icon';
|
|
4
4
|
import { InputSize, SupportedInputTypes } from './Input.utils';
|
|
5
|
-
|
|
6
5
|
export interface InputProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'size'> {
|
|
7
6
|
/** Unique id for the input. */
|
|
8
7
|
id: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
2
|
import { BreakpointCustomizable } from '../../types';
|
|
3
3
|
import { InputSize } from '../Input/Input.utils';
|
|
4
|
-
|
|
5
4
|
export interface InputPasswordProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'size'> {
|
|
6
5
|
/** Unique id for the input. */
|
|
7
6
|
id: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
2
|
import { BreakpointCustomizable } from '../../types';
|
|
3
3
|
import { InputSize } from '../Input/Input.utils';
|
|
4
|
-
|
|
5
4
|
export interface InputSearchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'size'> {
|
|
6
5
|
/** Unique id for the input. */
|
|
7
6
|
id: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
2
|
import { BreakpointCustomizable } from '../../types';
|
|
3
3
|
import { InputSize } from '../Input/Input.utils';
|
|
4
|
-
|
|
5
4
|
export interface InputStepperProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'size'> {
|
|
6
5
|
/** Unique id for the input. */
|
|
7
6
|
id: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BreakpointCustomizable, IconName, LinkTarget, SelectedAriaAttributes, Theme } from '../../types';
|
|
2
2
|
import { IconProps } from '../Icon/Icon';
|
|
3
3
|
import { LinkAriaAttribute, LinkIconPosition, LinkReferrerPolicy, LinkRel, LinkSize, LinkVariant } from './Link.utils';
|
|
4
|
-
|
|
5
4
|
export interface CommonLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
6
5
|
/** ARIA attributes to enhance accessibility.
|
|
7
6
|
* `{'aria-label'? string;`
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { SelectedAriaAttributes, Theme } from '../../types';
|
|
3
3
|
import { LogoAriaAttribute, LogoTarget, LogoVariant } from './Logo.utils';
|
|
4
|
-
|
|
5
|
-
export interface LogoProps extends HTMLAttributes<HTMLOrSVGElement | HTMLAnchorElement> {
|
|
4
|
+
export interface LogoProps extends HTMLAttributes<SVGElement | HTMLAnchorElement> {
|
|
6
5
|
/** If the DSLogo is used with an href prop, make sure to add a descriptive label to inform screen reader users what the link stands for.
|
|
7
6
|
* `{'aria-label'? string;}`
|
|
8
7
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { IconName } from '../../types';
|
|
2
|
-
|
|
3
2
|
export declare const NOTIFICATION_VARIANT: readonly ["success", "error", "warning", "info"];
|
|
4
3
|
export type NotificationVariant = (typeof NOTIFICATION_VARIANT)[number];
|
|
5
4
|
export declare const NOTIFICATION_ICONS: Record<NotificationVariant, IconName>;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
2
|
import { BreakpointCustomizable } from '../../types';
|
|
3
|
-
|
|
4
3
|
export interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
5
4
|
/** Label text displayed next to the radio. */
|
|
6
5
|
label: string;
|
|
@@ -21,7 +20,7 @@ export interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
21
20
|
* @default false
|
|
22
21
|
*/
|
|
23
22
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
24
|
-
/** Makes the label use `ds
|
|
23
|
+
/** Makes the label use `ds.utility-medium-bold` if any option has a `hint` and `hideUncheckedHint` is set to false.
|
|
25
24
|
* @default false
|
|
26
25
|
*/
|
|
27
26
|
isBold?: boolean;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { FieldsetHTMLAttributes } from 'react';
|
|
2
2
|
import { FieldsetProps } from '../Fieldset/Fieldset';
|
|
3
3
|
import { RadioGroupOption } from './RadioGroup.utils';
|
|
4
|
-
|
|
5
4
|
export interface RadioGroupProps extends Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>, 'onChange'> {
|
|
6
5
|
/**
|
|
7
6
|
* The `legend` prop can either be a simple `string` or an object with specific properties.
|
|
@@ -22,16 +21,16 @@ export interface RadioGroupProps extends Omit<FieldsetHTMLAttributes<HTMLFieldSe
|
|
|
22
21
|
* @prop {{label: string; value: string; customArea?: React.ReactNode; hint?: string}[]} options
|
|
23
22
|
*/
|
|
24
23
|
options: RadioGroupOption[];
|
|
25
|
-
/**
|
|
26
|
-
* Set the alignment of the radio buttons.
|
|
27
|
-
* `alignment="horizontal"` is not possible if a `hint` or `customArea` is passed to the `options`.
|
|
28
|
-
* @default 'vertical'
|
|
29
|
-
*/
|
|
30
|
-
alignment?: 'vertical' | 'horizontal';
|
|
31
24
|
/** Value of the selected Option in **uncontrolled RadioGroup** component. */
|
|
32
25
|
defaultValue?: string;
|
|
33
26
|
/** Short descriptive text displayed beneath the legend. */
|
|
34
27
|
description?: FieldsetProps['description'];
|
|
28
|
+
/**
|
|
29
|
+
* Set the direction of the radio buttons.
|
|
30
|
+
* `direction="horizontal"` is not possible if a `hint` or `customArea` is passed to the `options`.
|
|
31
|
+
* @default 'vertical'
|
|
32
|
+
*/
|
|
33
|
+
direction?: 'vertical' | 'horizontal';
|
|
35
34
|
/** Disables the radio group, preventing user interaction.
|
|
36
35
|
* @default false
|
|
37
36
|
*/
|
|
@@ -60,7 +59,7 @@ export interface RadioGroupProps extends Omit<FieldsetHTMLAttributes<HTMLFieldSe
|
|
|
60
59
|
}
|
|
61
60
|
/**
|
|
62
61
|
* The `DSRadioGroup` component offers a cohesive and accessible solution for grouping radio buttons,
|
|
63
|
-
* complete with customizable legends,
|
|
62
|
+
* complete with customizable legends, direction options, and integrated validation feedback,
|
|
64
63
|
* enhancing the user experience in form designs.
|
|
65
64
|
* */
|
|
66
65
|
export declare const DSRadioGroup: import('react').ForwardRefExoticComponent<RadioGroupProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import { RadioProps } from '../Radio/Radio';
|
|
2
2
|
import { RadioGroupProps } from './RadioGroup';
|
|
3
|
-
|
|
4
3
|
export type RadioGroupOption = Pick<RadioProps, 'label' | 'value' | 'customArea' | 'hint'>;
|
|
5
|
-
type ValidationProps = Pick<RadioGroupProps, 'legend' | 'name' | 'options' | '
|
|
4
|
+
type ValidationProps = Pick<RadioGroupProps, 'legend' | 'name' | 'options' | 'description' | 'direction' | 'id' | 'systemFeedback'>;
|
|
6
5
|
export declare const optionsHaveHint: (options: RadioGroupOption[]) => boolean;
|
|
7
6
|
export declare const optionsHaveCustomArea: (options: RadioGroupOption[]) => boolean;
|
|
8
|
-
export declare const validateRadioGroupProps: ({ legend, name, options,
|
|
7
|
+
export declare const validateRadioGroupProps: ({ legend, name, options, description, direction, id, systemFeedback, }: ValidationProps) => void;
|
|
9
8
|
export {};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { SelectHTMLAttributes } from 'react';
|
|
2
2
|
import { BreakpointCustomizable } from '../../types';
|
|
3
3
|
import { SelectOptionsOrOptGroups, SelectSize } from './Select.utils';
|
|
4
|
-
|
|
5
4
|
export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
6
5
|
/** Unique id for the select. */
|
|
7
6
|
id: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { GroupBase, OptionsOrGroups } from 'react-select';
|
|
3
3
|
import { SelectProps } from './Select';
|
|
4
|
-
|
|
5
4
|
type ValidationProps = Pick<SelectProps, 'id' | 'label' | 'options'>;
|
|
6
5
|
export interface SelectOption extends HTMLAttributes<HTMLOptionElement> {
|
|
7
6
|
label: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { SelectedAriaAttributes, Theme } from '../../types';
|
|
3
3
|
import { SpinnerAriaAttribute, SpinnerSize } from './Spinner.utils';
|
|
4
|
-
|
|
5
4
|
export interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
6
5
|
/** ARIA attributes to enhance accessibility.
|
|
7
6
|
* `{'aria-label'? string;}`
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { ButtonHTMLAttributes } from 'react';
|
|
2
2
|
import { SelectedAriaAttributes } from '../../types';
|
|
3
3
|
import { SwitchAriaAttribute, SwitchLabelPosition } from './Switch.utils';
|
|
4
|
-
|
|
5
4
|
export interface SwitchProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
6
5
|
/** Content within the label. */
|
|
7
6
|
children: React.ReactNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { Theme } from '../../types';
|
|
3
3
|
import { TextSize, TextTag, TextWeight } from './Text.utils';
|
|
4
|
-
|
|
5
4
|
export interface TextProps extends HTMLAttributes<HTMLQuoteElement | HTMLDivElement | HTMLLegendElement | HTMLParagraphElement | HTMLSpanElement | HTMLTimeElement> {
|
|
6
5
|
/** Content of the text. */
|
|
7
6
|
children: React.ReactNode;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { TextareaHTMLAttributes } from 'react';
|
|
2
2
|
import { BreakpointCustomizable } from '../../types';
|
|
3
3
|
import { TextareaSize } from './Textarea.utils';
|
|
4
|
-
|
|
5
4
|
export interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' | 'rows' | 'cols'> {
|
|
6
5
|
/** Unique id for the textarea. */
|
|
7
6
|
id: string;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { HTMLAttributes } from 'react';
|
|
2
2
|
import { Theme } from '../../types';
|
|
3
3
|
import { TitleSize, TitleTag } from './Title.utils';
|
|
4
|
-
|
|
5
4
|
export interface TitleProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
6
5
|
/** Content of the title. */
|
|
7
6
|
children: React.ReactNode;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { c as l } from "./chunks/CustomReactSelect.Cg_XW3YK.js";
|
|
6
|
+
import "./chunks/useBreakpoint.5xBNDiCf.js";
|
|
7
|
+
import "./asterisk.DpzETKdT.js";
|
|
8
|
+
import "./chunks/Icon.BCmt_XBG.js";
|
|
9
|
+
import "./systemfeedback.C3Pfxxpp.js";
|
|
10
|
+
import "./optioncheckbox.BRUTnQnJ.js";
|
|
11
|
+
export {
|
|
12
|
+
l as CustomReactSelect
|
|
13
|
+
};
|
package/customreactselect.d.ts
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
export * from './components/CustomReactSelect/CustomReactSelect'
|
|
1
|
+
export * from './components/Combobox/CustomReactSelect/CustomReactSelect'
|
|
2
|
+
export {}
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import "./chunks/index.CvOaL64Y.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./button.
|
|
6
|
-
import { D as e } from "./chunks/Dialog.
|
|
5
|
+
import "./button.M4nXjcUn.js";
|
|
6
|
+
import { D as e } from "./chunks/Dialog.CudsqNag.js";
|
|
7
7
|
export {
|
|
8
8
|
e as DSDialog
|
|
9
9
|
};
|
package/dialog.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
3
|
import "./chunks/index.CvOaL64Y.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./button.
|
|
6
|
-
import { D as e } from "./chunks/Drawer.
|
|
5
|
+
import "./button.M4nXjcUn.js";
|
|
6
|
+
import { D as e } from "./chunks/Drawer.ueG2Bzr9.js";
|
|
7
7
|
export {
|
|
8
8
|
e as DSDrawer
|
|
9
9
|
};
|
package/drawer.d.ts
CHANGED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "./chunks/jsx-runtime.C115EyI4.js";
|
|
3
|
+
import "./chunks/index.CvOaL64Y.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./asterisk.DpzETKdT.js";
|
|
6
|
+
import "./heading.IPIYc5vW.js";
|
|
7
|
+
import "./systemfeedback.C3Pfxxpp.js";
|
|
8
|
+
import { D as l } from "./chunks/Fieldset.Cjmkgxxk.js";
|
|
9
|
+
export {
|
|
10
|
+
l as DSFieldset
|
|
11
|
+
};
|
package/fieldset.d.ts
CHANGED