@stihl-design-system/components 1.0.0-RC.31 → 1.0.0-RC.34
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/accordion.Dmqocj97.js +12 -0
- package/actionbutton.DLQJU6AV.js +12 -0
- package/actionlink.DEBrWfN3.js +12 -0
- package/{arialiveregions.Fgcshs5k.js → arialiveregions.BUVY9NpY.js} +2 -2
- package/assets/Accordion.CzBGud45.css +1 -0
- package/assets/Button.C8sNwIeW.css +1 -0
- package/assets/Checkbox.CyOw3rXI.css +1 -0
- package/assets/CustomReactSelect.E_jJFVew.css +1 -0
- package/assets/Dialog.DJkn65Es.css +1 -0
- package/assets/Drawer.x3BCQvWE.css +1 -0
- package/assets/InputFile.BnIvK65P.css +1 -0
- package/assets/InputNumber.BoiCIR1f.css +1 -0
- package/assets/InputPassword.Dk3_vNLV.css +1 -0
- package/assets/InputSearch.C1_4cVCi.css +1 -0
- package/assets/LinkButton.B86yacK5.css +1 -0
- package/assets/{MegaMenu.DX9gChtY.css → MegaMenu.D5EtjFeL.css} +1 -1
- package/assets/Notification.CvohYEvT.css +1 -0
- package/assets/Popover.CXyUaXiO.css +1 -0
- package/assets/Select.COxLltX7.css +1 -0
- package/assets/Slider.DPEmJ3HD.css +1 -0
- package/assets/Stepper.tXJl15yL.css +1 -0
- package/assets/{SystemFeedback.RcrPepSZ.css → SystemFeedback.PKzqnXUe.css} +1 -1
- package/assets/Textarea.y3MW7VW0.css +1 -0
- package/assets/Toast.CGyKXb4V.css +1 -0
- package/assets/buttonround.BN3vUDc_.css +1 -0
- package/assets/input.DTu4g_iA.css +1 -0
- package/assets/logo100years.CQrEg-Vo.css +1 -0
- package/assets/step.BeLporJO.css +1 -0
- package/assets/switch.B9B-n_3y.css +1 -0
- package/assets/tooltip.Co1gWF_0.css +1 -0
- package/{asterisk.CR60hx8S.js → asterisk.B2ih8VwF.js} +1 -1
- package/{banner.j9YpudOS.js → banner.CI5HnDqD.js} +3 -3
- package/breadcrumb.CtwAux3P.js +11 -0
- package/button.DHuKanZP.js +13 -0
- package/buttonround.CMlmEDaN.js +96 -0
- package/checkbox.DwccD0Mp.js +12 -0
- package/checkboxgroup.ZiUFfCJ1.js +9 -0
- package/chip.B0s_fS8L.js +12 -0
- package/chipgroup.Dpu66bo5.js +143 -0
- package/chunks/Accordion.CYIfNOWr.js +168 -0
- package/chunks/ActionButton.DOYsEHPr.js +180 -0
- package/chunks/ActionLink.DbyciN3Y.js +153 -0
- package/chunks/{AriaLiveRegions.utils.Cb327d_2.js → AriaLiveRegions.utils.CybNIBSa.js} +2 -2
- package/chunks/{Breadcrumb.BGzwzvh8.js → Breadcrumb.BgnpTo01.js} +35 -37
- package/chunks/Button.DCZgBNmA.js +142 -0
- package/chunks/Checkbox.BcGXAuuP.js +88 -0
- package/chunks/{CheckboxGroup.Dy_6tiGk.js → CheckboxGroup.BuFd1luB.js} +5 -5
- package/chunks/Chip.D6pubCZV.js +133 -0
- package/chunks/{CustomReactSelect.iE5iTdez.js → CustomReactSelect.Dg3wC_VH.js} +484 -473
- package/chunks/Dialog.DpqSVrYR.js +102 -0
- package/chunks/Drawer.DISWybOa.js +107 -0
- package/chunks/{Fieldset.CjIfmN_5.js → Fieldset.DiMtr6Vw.js} +6 -6
- package/chunks/Header.7TQL_J9t.js +370 -0
- package/chunks/Icon.CDLyB7Pv.js +229 -0
- package/chunks/{Input.utils.Cnnzvuk4.js → Input.utils.Dkw7gRrr.js} +17 -17
- package/chunks/InputFile.C8nt9Fu8.js +218 -0
- package/chunks/InputNumber.CbH1XJfl.js +267 -0
- package/chunks/{InputPassword.DC2POUc1.js → InputPassword.DbdjuSiJ.js} +34 -34
- package/chunks/InputSearch.joxmugiv.js +173 -0
- package/chunks/LinkButton.BZgIGgc8.js +132 -0
- package/chunks/MegaMenu.CQbOeaib.js +189 -0
- package/chunks/NavigationTabList.G_l0GiUa.js +67 -0
- package/chunks/{NavigationTabs.ClpVGcl0.js → NavigationTabs.BwM-6CRm.js} +13 -14
- package/chunks/Notification.CrojkJ0E.js +91 -0
- package/chunks/Popover.Bb0Pjmvg.js +215 -0
- package/chunks/{RadioGroup.peTeMK45.js → RadioGroup.CexC4v2Z.js} +5 -5
- package/chunks/Select.BEIdNMML.js +164 -0
- package/chunks/{Slider.kyVr7BLk.js → Slider.CR0zYHeZ.js} +70 -71
- package/chunks/Stepper.PTQdQBYf.js +152 -0
- package/chunks/{SystemFeedback.B9f67mjJ.js → SystemFeedback.CjlARKki.js} +9 -9
- package/chunks/Tabs.DyP4whX0.js +83 -0
- package/chunks/{Text.DGWeWF1y.js → Text.DpRtTpB4.js} +3 -3
- package/chunks/Textarea.Du2RII5u.js +168 -0
- package/chunks/Toast.ug_RjGgF.js +76 -0
- package/chunks/{arrow-clockwise.BefOjGPg.js → arrow-clockwise.C4iOgjOc.js} +1 -1
- package/chunks/{arrow-counterclockwise.C7Ov32BZ.js → arrow-counterclockwise.CgQAuBUe.js} +1 -1
- package/chunks/battery-charge-0.DxlgEAto.js +10 -0
- package/chunks/battery-charge-100.D0Cax7dU.js +10 -0
- package/chunks/{battery.YCg9lYqC.js → battery.6Idoickg.js} +3 -3
- package/chunks/bluetooth-off.BzZCh4Q8.js +10 -0
- package/chunks/{circle-check-colored.Bye_GwLy.js → circle-check-colored.qP2s3vjI.js} +1 -1
- package/chunks/{diamond-exclamationmark-colored.WNKYwZ8q.js → diamond-exclamationmark-colored.CzYiaTZ0.js} +1 -1
- package/chunks/document-s.CoOp0kBK.js +10 -0
- package/chunks/feather.l1E4nFBx.js +10 -0
- package/chunks/file-type-doc.B_RSSYbu.js +10 -0
- package/chunks/floating-ui.dom.BT8pKtCQ.js +1005 -0
- package/chunks/floating-ui.react.3FjeMiuN.js +1999 -0
- package/chunks/helpers.CexwVao7.js +38 -0
- package/chunks/{index.CgTHIF3K.js → index.D-sRdssb.js} +1 -1
- package/chunks/{index.CEyLAtio.js → index.DL9mof6u.js} +2 -2
- package/chunks/{is-animation-disabled.CUl4N3LI.js → is-animation-disabled.B-V_68K-.js} +5 -5
- package/chunks/{map.CXgG1iGz.js → map.DNl7PF61.js} +1 -1
- package/chunks/moon.5yILPYXs.js +10 -0
- package/chunks/muscle.DbNjWasV.js +10 -0
- package/chunks/petrol.BGWwCsTw.js +10 -0
- package/chunks/sun.CY6ttzTL.js +10 -0
- package/chunks/{triangle-exclamationmark-colored.CbVC3Gzi.js → triangle-exclamationmark-colored.e93zvQ6Q.js} +1 -1
- package/chunks/upload.BogDfonx.js +10 -0
- package/chunks/useBreakpoint.BzR_yaIv.js +42 -0
- package/chunks/variants.-R3_RCW8.js +10 -0
- package/chunks/weight.DUPu2UT0.js +10 -0
- package/combobox.jG5GRA7C.js +65 -0
- package/components/ActionButton/ActionButton.d.ts +2 -0
- package/components/Button/Button.d.ts +4 -0
- package/components/ChipGroup/Chip.d.ts +1 -0
- package/components/ChipGroup/ChipGroup.d.ts +4 -0
- package/components/ChipGroup/ChipGroup.utils.d.ts +10 -12
- package/components/Combobox/Combobox.utils.d.ts +3 -4
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +4 -2
- package/components/Header/Header.d.ts +4 -5
- package/components/{InputStepper/InputStepper.d.ts → InputNumber/InputNumber.d.ts} +10 -4
- package/components/InputNumber/InputNumber.utils.d.ts +13 -0
- package/components/LinkButton/LinkButton.d.ts +2 -0
- package/components/Logo100Years/Logo100Years.d.ts +1 -0
- package/components/Popover/Popover.d.ts +29 -7
- package/components/Popover/Popover.utils.d.ts +34 -3
- package/components/Scroller/Scroller.d.ts +6 -2
- package/components/Stepper/Step.d.ts +33 -0
- package/components/Stepper/Step.utils.d.ts +5 -0
- package/components/Stepper/Stepper.d.ts +56 -0
- package/components/Stepper/Stepper.test.d.ts +1 -0
- package/components/Stepper/Stepper.utils.d.ts +30 -0
- package/components/Stepper/Stepper.utils.test.d.ts +1 -0
- package/components/Tooltip/Tooltip.d.ts +40 -0
- package/components/Tooltip/Tooltip.test.d.ts +1 -0
- package/components/Tooltip/Tooltip.utils.d.ts +70 -0
- package/components/Tooltip/Tooltip.utils.test.d.ts +1 -0
- package/components/TopBar/TopBar.d.ts +4 -4
- package/components/TopBar/TopBar.utils.d.ts +1 -1
- package/customreactselect.BFN8cYJi.js +14 -0
- package/dialog.CzM_Cxp0.js +9 -0
- package/drawer._A9MQ8Cj.js +9 -0
- package/fieldset.CId-NtI5.js +11 -0
- package/{filelist.nunJKxkv.js → filelist.DgVuWpR3.js} +23 -24
- package/{flag.D_iN8iD6.js → flag.CE32qHPa.js} +3 -3
- package/floatingactionbutton.Bsnncudt.js +87 -0
- package/header.CelAkqtp.js +12 -0
- package/{heading.BXFBZhKv.js → heading.DHLpT4dc.js} +2 -2
- package/icon.vzkPwgjZ.js +9 -0
- package/index.d.ts +4 -2
- package/index.es.js +217 -204
- package/input.DuEbg7d6.js +206 -0
- package/inputfile.BjgJGefV.js +17 -0
- package/inputnumber.BcrxBVv0.js +16 -0
- package/inputnumber.d.ts +2 -0
- package/inputpassword.CddmBW-T.js +13 -0
- package/inputsearch.CFOASqrd.js +14 -0
- package/link.f8MMZo-w.js +81 -0
- package/linkbutton.BYAvi-_V.js +12 -0
- package/{logo.C96KaG1P.js → logo.DprmD8HU.js} +3 -3
- package/logo100years.B4d_DIiB.js +24 -0
- package/logo100years.d.ts +2 -0
- package/megamenu.Cy9Cc-mC.js +12 -0
- package/navigationtablist.CkkLyHrM.js +10 -0
- package/navigationtabs.Dp7D2fnc.js +9 -0
- package/notification.B-norGiB.js +10 -0
- package/{numberindicator.Ddf3ESi7.js → numberindicator.BdnPMogE.js} +2 -2
- package/{optioncheckbox.D97W3zeW.js → optioncheckbox.nBVwGv6c.js} +3 -3
- package/package.json +41 -51
- package/partials/index.js +58 -52
- package/partials/lib/partials.d.ts +1 -1
- package/popover.DFVDZY-m.js +12 -0
- package/{radio.7_N_alaS.js → radio.DHUfSPai.js} +2 -2
- package/radiogroup.DaThoMfq.js +11 -0
- package/scroller.Cu7H_VCT.js +98 -0
- package/select.CMdKf7tC.js +13 -0
- package/{skiptocontent._F-d8y5b.js → skiptocontent.CHVh0hbr.js} +4 -4
- package/slider.C5dK6KcG.js +11 -0
- package/{spinner.Dht6FspZ.js → spinner.C9qCeq0R.js} +18 -18
- package/step.DKf4CHGr.js +82 -0
- package/step.d.ts +6 -0
- package/stepper.CCP_igpJ.js +16 -0
- package/stepper.d.ts +2 -0
- package/{switch.B37S4vfP.js → switch.Bqdyzi2E.js} +5 -5
- package/systemfeedback.O7tj1juR.js +10 -0
- package/tablist.DZgo49nZ.js +209 -0
- package/{tabpane.CB-eudyw.js → tabpane.C4nsUlwc.js} +2 -2
- package/tabs.BkoT7feH.js +11 -0
- package/text.cLv2PhjQ.js +10 -0
- package/textarea.DMn20z4p.js +13 -0
- package/{title.Bz_k5Vda.js → title.DuLPB-VK.js} +2 -2
- package/toast.Dvs8woTH.js +11 -0
- package/toastmanager.pi_Fhd5t.js +89 -0
- package/tooltip.QJe_bfO-.js +178 -0
- package/tooltip.d.ts +2 -0
- package/topbar.Bxwvp9Lf.js +12 -0
- package/types/icon-types.d.ts +1 -1
- package/types/prettier-plugin-organize-imports.d.ts +1 -0
- package/utils/index.d.ts +1 -0
- package/utils/mergeRefs.d.ts +5 -0
- package/utils/mergeRefs.test.d.ts +1 -0
- package/accordion.DkwtJy--.js +0 -12
- package/actionbutton.u1qp8oGC.js +0 -11
- package/actionlink.C7HzeIVa.js +0 -11
- package/assets/Accordion.BJb4TOG0.css +0 -1
- package/assets/Button.Dw8H5nFS.css +0 -1
- package/assets/Checkbox.BKHQN_tu.css +0 -1
- package/assets/CustomReactSelect.D0b1Hg1T.css +0 -1
- package/assets/Dialog.CGAg7bnN.css +0 -1
- package/assets/Drawer.VOvWQoEr.css +0 -1
- package/assets/InputFile.CCQxsulT.css +0 -1
- package/assets/InputPassword.124xVOiO.css +0 -1
- package/assets/InputSearch.Bkg-1urJ.css +0 -1
- package/assets/InputStepper.Dth4qZN_.css +0 -1
- package/assets/LinkButton.xMvg_ojf.css +0 -1
- package/assets/Notification.BOuaA5GT.css +0 -1
- package/assets/Popover.BDTDsPAt.css +0 -1
- package/assets/Select.CYACicZ3.css +0 -1
- package/assets/Slider.DzwSjDPV.css +0 -1
- package/assets/Textarea.BXWhXpXx.css +0 -1
- package/assets/Toast.CJ1zhDIT.css +0 -1
- package/assets/buttonround.Cw9hnUan.css +0 -1
- package/assets/input.ONbL-_C1.css +0 -1
- package/assets/switch.Bc9KIyw9.css +0 -1
- package/breadcrumb.BS-S3zUI.js +0 -11
- package/button.CPilCCUI.js +0 -12
- package/buttonround.C426mO4d.js +0 -81
- package/checkbox.BtlUvs0z.js +0 -12
- package/checkboxgroup.C5NgyyQF.js +0 -9
- package/chip.tVIG1ysH.js +0 -11
- package/chipgroup.CjIK0Z0x.js +0 -209
- package/chunks/Accordion.C5V5IcM-.js +0 -170
- package/chunks/ActionButton.B8zFwOrJ.js +0 -165
- package/chunks/ActionLink.IX6oRXU3.js +0 -138
- package/chunks/Button.B7xF1E19.js +0 -127
- package/chunks/Checkbox.DxV7-F5W.js +0 -88
- package/chunks/Chip.31UfPwQF.js +0 -119
- package/chunks/Dialog.B_2pKRnd.js +0 -135
- package/chunks/Drawer.HFlBTcqN.js +0 -140
- package/chunks/Header.DqZRryB5.js +0 -366
- package/chunks/Icon.DGTYCv63.js +0 -231
- package/chunks/InputFile.DvOatDzg.js +0 -220
- package/chunks/InputSearch.B0aCuPRZ.js +0 -174
- package/chunks/InputStepper.D_1YqlWl.js +0 -263
- package/chunks/LinkButton.DdTspmJz.js +0 -117
- package/chunks/MegaMenu.BY7eOnhj.js +0 -189
- package/chunks/NavigationTabList.dYFYTmWv.js +0 -57
- package/chunks/Notification.DIdIhGTQ.js +0 -92
- package/chunks/Popover.NGetxKGg.js +0 -159
- package/chunks/Select.BDHLJ2ma.js +0 -162
- package/chunks/Tabs.CkVL8Jw8.js +0 -83
- package/chunks/Textarea.ORkJUx-S.js +0 -163
- package/chunks/Toast.DHo4pLH3.js +0 -76
- package/chunks/file-type-doc.DlovDOBh.js +0 -10
- package/chunks/floating-ui.dom.C9TD1WpB.js +0 -950
- package/chunks/floating-ui.react.x0F9CYgn.js +0 -1637
- package/chunks/helpers.BbWkXTr3.js +0 -37
- package/chunks/petrol.Du6qAgp0.js +0 -10
- package/chunks/upload.ZImTAIgx.js +0 -10
- package/chunks/useBreakpoint.CMOR9ZOB.js +0 -44
- package/combobox.Bk2ycofh.js +0 -60
- package/components/InputStepper/InputStepper.utils.d.ts +0 -12
- package/customreactselect.Hnch9LGg.js +0 -14
- package/dialog.7sWoqGwL.js +0 -10
- package/drawer.DsF4KIPn.js +0 -10
- package/fieldset.DUFUMcT-.js +0 -11
- package/floatingactionbutton.DOH2k0gv.js +0 -72
- package/header.QpNjE3N-.js +0 -12
- package/icon.vMQcEBnH.js +0 -9
- package/input.BKHOY118.js +0 -203
- package/inputfile.DK8759wV.js +0 -17
- package/inputpassword.rV_ZZw5F.js +0 -13
- package/inputsearch.CmhakTpa.js +0 -14
- package/inputstepper.Y-YzUHhF.js +0 -16
- package/inputstepper.d.ts +0 -2
- package/link.D_FjTyoZ.js +0 -66
- package/linkbutton.D2C4vykc.js +0 -11
- package/megamenu.CdHrEeoh.js +0 -12
- package/navigationtablist.CVjh1k-b.js +0 -9
- package/navigationtabs.BGfi9AG2.js +0 -9
- package/notification.Dn-FZWEL.js +0 -10
- package/popover.DXxm1oWI.js +0 -11
- package/radiogroup.J8WpEEo8.js +0 -11
- package/scroller.BiRLQg__.js +0 -123
- package/select.DIzGPVx3.js +0 -13
- package/slider.DuJK0RdB.js +0 -11
- package/systemfeedback.C_2PhwKe.js +0 -10
- package/tablist.g_Nwu6GA.js +0 -256
- package/tabs.oh9-wHPp.js +0 -11
- package/text.ZOUuesnU.js +0 -10
- package/textarea.dQ12-oYB.js +0 -13
- package/toast.sMNbfKxi.js +0 -11
- package/toastmanager.CVamaS5T.js +0 -116
- package/topbar.Dhy_TL0U.js +0 -11
- /package/components/{InputStepper/InputStepper.test.d.ts → InputNumber/InputNumber.test.d.ts} +0 -0
- /package/components/{InputStepper/InputStepper.utils.test.d.ts → InputNumber/InputNumberutils.test.d.ts} +0 -0
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { PopoverProps } from './Popover';
|
|
2
|
-
|
|
2
|
+
/**
|
|
3
|
+
* Popover hook for managing popover state and behavior.
|
|
4
|
+
* @param PopoverProps Popover props
|
|
5
|
+
* @returns Popover state and actions
|
|
6
|
+
*/
|
|
7
|
+
export declare const usePopover: ({ initialOpen, placement, isOpen: controlledOpen, popoverOffset, showArrow, variant, defaultAnchorButtonProps, onOpenChange: setControlledOpen, }?: PopoverProps) => {
|
|
3
8
|
placement: import('@floating-ui/utils').Placement;
|
|
4
9
|
strategy: import('@floating-ui/utils').Strategy;
|
|
5
10
|
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
@@ -45,9 +50,35 @@ export declare const usePopover: ({ initialOpen, placement, isOpen: controlledOp
|
|
|
45
50
|
open: boolean;
|
|
46
51
|
popoverOffset: number;
|
|
47
52
|
setOpen: (isOpen: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
53
|
+
arrowRef: import('react').RefObject<SVGSVGElement | null>;
|
|
54
|
+
showArrow: boolean;
|
|
55
|
+
defaultAnchorButtonProps: {
|
|
56
|
+
[key: `data-${string}`]: string | undefined;
|
|
57
|
+
label?: string;
|
|
58
|
+
} | undefined;
|
|
59
|
+
variant: "default" | "grey";
|
|
48
60
|
};
|
|
49
|
-
|
|
50
|
-
|
|
61
|
+
/**
|
|
62
|
+
* Validates the children of the Popover component in development environment.
|
|
63
|
+
* - Check for children presence
|
|
64
|
+
* - Validate that <DSPopover.Anchor> and <DSPopover.Content> are used together.
|
|
65
|
+
*
|
|
66
|
+
* @param {Object} childrenObject
|
|
67
|
+
* @param {React.ReactNode} childrenObject.children - The Popover children.
|
|
68
|
+
* @param {boolean} childrenObject.hasContent - Whether <DSPopover.Content> is present.
|
|
69
|
+
* @param {boolean} childrenObject.hasAnchor - Whether <DSPopover.Anchor> is present.
|
|
70
|
+
* @returns {void}
|
|
71
|
+
*/
|
|
72
|
+
export declare const validatePopoverChildren: ({ children, hasContent, hasAnchor, }: {
|
|
73
|
+
children: React.ReactNode;
|
|
51
74
|
hasContent: boolean;
|
|
52
75
|
hasAnchor: boolean;
|
|
53
76
|
}) => void;
|
|
77
|
+
type ValidationProps = Pick<PopoverProps, 'showArrow' | 'variant'>;
|
|
78
|
+
/**
|
|
79
|
+
* Validates Popover props in development environment.
|
|
80
|
+
*
|
|
81
|
+
* @param props Popover props to validate
|
|
82
|
+
*/
|
|
83
|
+
export declare const validatePopoverProps: ({ showArrow, variant, }: ValidationProps) => void;
|
|
84
|
+
export {};
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
import { HTMLAttributes
|
|
1
|
+
import { HTMLAttributes } from 'react';
|
|
2
2
|
export interface ScrollerProps extends HTMLAttributes<HTMLDivElement> {
|
|
3
3
|
/** Content to be displayed within the scroller. */
|
|
4
4
|
children?: React.ReactNode;
|
|
5
|
+
/** Additional class name to apply to the scrolling element. */
|
|
6
|
+
scrollerClassName?: string;
|
|
7
|
+
/** Additional class name to apply to the scroll buttons. */
|
|
8
|
+
scrollerButtonClassName?: string;
|
|
5
9
|
/** Scrolls the scroll area to the left either smooth or immediately.
|
|
6
10
|
* `{scrollPosition: number;`
|
|
7
11
|
* `isSmooth?: boolean;}`
|
|
@@ -17,4 +21,4 @@ export interface ScrollerProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
17
21
|
*
|
|
18
22
|
* Design in Figma: [Scroller](https://www.figma.com/design/Ie2r0R9QwjEc7O3nrFbXhV/Web-Pattern-Library?node-id=6263-49213&t=wRBNgx5siTv3aUkL-11)
|
|
19
23
|
*/
|
|
20
|
-
export declare const DSScroller: (
|
|
24
|
+
export declare const DSScroller: import('react').ForwardRefExoticComponent<ScrollerProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { default as React, JSX } from 'react';
|
|
2
|
+
import { StepState } from './Step.utils';
|
|
3
|
+
import { StepperTranslations } from './Stepper.utils';
|
|
4
|
+
/** Local copy of the Step data contract to avoid circular dependency with `Stepper.tsx`. */
|
|
5
|
+
export interface Step {
|
|
6
|
+
label: string;
|
|
7
|
+
hint?: string;
|
|
8
|
+
disabled?: boolean;
|
|
9
|
+
state?: StepState;
|
|
10
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
11
|
+
}
|
|
12
|
+
export interface StepperStepProps {
|
|
13
|
+
/** Step object */
|
|
14
|
+
step: Step;
|
|
15
|
+
/** Index of this step in the list */
|
|
16
|
+
index: number;
|
|
17
|
+
/** Orientation of the Stepper */
|
|
18
|
+
orientation: 'horizontal' | 'vertical';
|
|
19
|
+
/** Total number of steps */
|
|
20
|
+
stepsCount: number;
|
|
21
|
+
/** Translation function */
|
|
22
|
+
t: (key: keyof StepperTranslations, replacements?: string[]) => string;
|
|
23
|
+
/** Called when the button is clicked (index is already bound in parent) */
|
|
24
|
+
onStepClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
25
|
+
/** Collect the ref for scroll / focus management */
|
|
26
|
+
buttonRef?: (el: HTMLButtonElement | null) => void;
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Presentational single Step inside the DSStepper.
|
|
30
|
+
* Keeps the markup & ARIA logic isolated from the Stepper container.
|
|
31
|
+
*/
|
|
32
|
+
export declare const StepperStep: ({ step, index, stepsCount, t, onStepClick, buttonRef, orientation, }: StepperStepProps) => JSX.Element;
|
|
33
|
+
export default StepperStep;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Step } from './Step';
|
|
2
|
+
import { StepperTranslations } from './Stepper.utils';
|
|
3
|
+
export declare const STEP_STATE: readonly ["current", "completed", undefined];
|
|
4
|
+
export type StepState = (typeof STEP_STATE)[number];
|
|
5
|
+
export declare const getStepAriaLabel: (t: (key: keyof StepperTranslations, replacements?: string[]) => string, index: number, total: number, step: Step, isCurrent: boolean) => string;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { default as React, JSX } from 'react';
|
|
2
|
+
import { SelectedAriaAttributes } from '../../types';
|
|
3
|
+
import { StepState } from './Step.utils';
|
|
4
|
+
import { StepperAlignment, StepperAriaAttributes, StepperLanguage, StepperOrientation, StepperTranslations } from './Stepper.utils';
|
|
5
|
+
export interface Step {
|
|
6
|
+
/** Label text displayed for the Step. */
|
|
7
|
+
label: string;
|
|
8
|
+
/** Short descriptive text displayed beneath the label. */
|
|
9
|
+
hint?: string;
|
|
10
|
+
/** Disables the Step, preventing user interaction.
|
|
11
|
+
* @default false
|
|
12
|
+
*/
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* State of the Step. If set to 'current', the step is highlighted as the current step.
|
|
16
|
+
* @default undefined
|
|
17
|
+
*/
|
|
18
|
+
state?: StepState;
|
|
19
|
+
/** Callback function called when the Step is clicked. */
|
|
20
|
+
onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
21
|
+
}
|
|
22
|
+
export interface StepperProps extends React.HTMLAttributes<HTMLElement> {
|
|
23
|
+
/** ARIA attributes to enhance accessibility
|
|
24
|
+
* `{'aria-label'? string;`
|
|
25
|
+
* `'aria-labelledby'?: string;}`
|
|
26
|
+
* */
|
|
27
|
+
aria: SelectedAriaAttributes<StepperAriaAttributes>;
|
|
28
|
+
/** An array of Step Objects containing the label and other optional parameters.
|
|
29
|
+
* `{label: string; hint: string; disabled?: boolean; state?: 'current' | 'completed' | undefined; onClick?: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;}[]`*/
|
|
30
|
+
steps: Step[];
|
|
31
|
+
/** Callback function called when the selection of the Stepper changes. */
|
|
32
|
+
onStepChange: (selectedStepIndex: number) => void;
|
|
33
|
+
/** Alignment of the DSStepper.
|
|
34
|
+
* @default 'left'
|
|
35
|
+
*/
|
|
36
|
+
alignment?: StepperAlignment;
|
|
37
|
+
/** Sets language to use for the screen reader messages, if no translations object is provided.
|
|
38
|
+
* @default 'en'
|
|
39
|
+
*/
|
|
40
|
+
lang?: StepperLanguage;
|
|
41
|
+
/** Orientation of the DSStepper.
|
|
42
|
+
* @default 'horizontal'
|
|
43
|
+
*/
|
|
44
|
+
orientation?: StepperOrientation;
|
|
45
|
+
/** Translations for the DSStepper. Use our [customization page](/?path=/story/components-stepper-translations--documentation) for creating custom translations. */
|
|
46
|
+
translations?: StepperTranslations;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The `<DSStepper />` component provides an accessible step-based navigation pattern following the `aria-current="step"` specification.
|
|
50
|
+
* It is a **controlled component** and does not manage its own state.
|
|
51
|
+
* It renders steps as buttons inside an ordered list (`<ol>`) wrapped in a semantic `<nav>` landmark.
|
|
52
|
+
* Horizontal overflow is handled via `<DSScroller>` preventing line wrapping while enabling keyboard and pointer based scrolling.
|
|
53
|
+
*
|
|
54
|
+
* Design in Figma: [Stepper](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=26075-10497)
|
|
55
|
+
*/
|
|
56
|
+
export declare const DSStepper: ({ aria, className, steps, orientation, alignment, lang, translations, onStepChange, ...rest }: StepperProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { Step } from './Step';
|
|
2
|
+
import { StepperProps } from './Stepper';
|
|
3
|
+
export type StepperAriaAttributes = 'aria-label' | 'aria-labelledby';
|
|
4
|
+
export declare const STEPPER_ALIGNMENT: readonly ["left", "center"];
|
|
5
|
+
export type StepperAlignment = (typeof STEPPER_ALIGNMENT)[number];
|
|
6
|
+
export declare const STEPPER_ORIENTATION: readonly ["horizontal", "vertical"];
|
|
7
|
+
export type StepperOrientation = (typeof STEPPER_ORIENTATION)[number];
|
|
8
|
+
export type ValidateStepperPropsParams = Pick<StepperProps, 'aria' | 'steps'>;
|
|
9
|
+
export declare const validateStepperProps: ({ aria, steps, }: ValidateStepperPropsParams) => void;
|
|
10
|
+
export declare const validateIsLiveRegionPresentForStepper: () => void;
|
|
11
|
+
export type StepperLanguage = 'en' | 'de';
|
|
12
|
+
export type StepperTranslations = typeof DS_STEPPER_TRANSLATIONS_EN;
|
|
13
|
+
export declare const DS_STEPPER_TRANSLATIONS_EN: {
|
|
14
|
+
current: string;
|
|
15
|
+
completed: string;
|
|
16
|
+
step: string;
|
|
17
|
+
of: string;
|
|
18
|
+
};
|
|
19
|
+
export declare const DS_STEPPER_TRANSLATIONS_DE: StepperTranslations;
|
|
20
|
+
export declare const DS_STEPPER_TRANSLATIONS: Record<StepperLanguage, StepperTranslations>;
|
|
21
|
+
/**
|
|
22
|
+
* Get the current step in the stepper.
|
|
23
|
+
* If no step is marked as 'current', the last step with a defined state is returned.
|
|
24
|
+
* If no steps have a defined state, the first step is returned.
|
|
25
|
+
* @param steps The array of steps.
|
|
26
|
+
* @returns The current step.
|
|
27
|
+
*/
|
|
28
|
+
export declare const getCurrentStep: (steps: Step[]) => Step;
|
|
29
|
+
export declare const getCurrentStepIndex: (steps: Step[]) => number;
|
|
30
|
+
export declare const isStepClickable: (state: Step["state"], disabled: boolean | undefined) => boolean;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { HTMLProps, JSX } from 'react';
|
|
2
|
+
import { OpenChangeReason, Placement } from '@floating-ui/react';
|
|
3
|
+
export interface TooltipProps {
|
|
4
|
+
/** Content within the Tooltip. */
|
|
5
|
+
children?: React.ReactNode;
|
|
6
|
+
/** Opens the Tooltip on initial render.
|
|
7
|
+
* @default false
|
|
8
|
+
*/
|
|
9
|
+
initialOpen?: boolean;
|
|
10
|
+
/** The placement of the Tooltip relative to the anchor element.
|
|
11
|
+
* @default 'top'
|
|
12
|
+
*/
|
|
13
|
+
placement?: Placement;
|
|
14
|
+
/** The offset distance in "px" between the Tooltip and its anchor element.
|
|
15
|
+
* @default 6
|
|
16
|
+
*/
|
|
17
|
+
tooltipOffset?: number;
|
|
18
|
+
/** Controls the open state of the Tooltip. If provided, it will be a controlled component.
|
|
19
|
+
* @default false
|
|
20
|
+
*/
|
|
21
|
+
isOpen?: boolean;
|
|
22
|
+
/** A function that is called when the open state should change. */
|
|
23
|
+
onOpenChange?: (isOpen: boolean, event?: Event, reason?: OpenChangeReason) => void;
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* The Tooltip component is used to display additional information or actions related to an anchor element. It is opened on hover or focus. It can be positioned relative to the anchor and supports various placements and offsets.
|
|
27
|
+
*
|
|
28
|
+
* Design in Figma: [Tooltip](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/branch/HovZmjHiwxguawTWTO6ibS/Core-Components-%F0%9F%92%A0?node-id=26075-11658&p=f&t=TYKSgw0ZlRDBBUfn-11)
|
|
29
|
+
* */
|
|
30
|
+
export declare const Tooltip: {
|
|
31
|
+
({ children, ...rest }: TooltipProps): JSX.Element;
|
|
32
|
+
/** attach static members */
|
|
33
|
+
Anchor: import('react').ForwardRefExoticComponent<Omit<HTMLProps<HTMLElement> & TooltipAnchorProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
34
|
+
Content: import('react').ForwardRefExoticComponent<Omit<HTMLProps<HTMLDivElement>, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
35
|
+
displayName: string;
|
|
36
|
+
};
|
|
37
|
+
interface TooltipAnchorProps {
|
|
38
|
+
children: React.ReactNode;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { TooltipProps } from './Tooltip';
|
|
2
|
+
/**
|
|
3
|
+
* Tooltip hook for managing tooltip state and behavior.
|
|
4
|
+
* @param TooltipProps Tooltip props
|
|
5
|
+
* @returns Tooltip state and actions
|
|
6
|
+
*/
|
|
7
|
+
export declare function useTooltip({ initialOpen, placement, isOpen: controlledOpen, tooltipOffset, onOpenChange: setControlledOpen, }?: TooltipProps): {
|
|
8
|
+
placement: import('@floating-ui/utils').Placement;
|
|
9
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
10
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
11
|
+
x: number;
|
|
12
|
+
y: number;
|
|
13
|
+
isPositioned: boolean;
|
|
14
|
+
update: () => void;
|
|
15
|
+
floatingStyles: React.CSSProperties;
|
|
16
|
+
refs: {
|
|
17
|
+
reference: import('react').MutableRefObject<import('@floating-ui/react-dom').ReferenceType | null>;
|
|
18
|
+
floating: React.MutableRefObject<HTMLElement | null>;
|
|
19
|
+
setReference: (node: import('@floating-ui/react-dom').ReferenceType | null) => void;
|
|
20
|
+
setFloating: (node: HTMLElement | null) => void;
|
|
21
|
+
} & import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
22
|
+
elements: {
|
|
23
|
+
reference: import('@floating-ui/react-dom').ReferenceType | null;
|
|
24
|
+
floating: HTMLElement | null;
|
|
25
|
+
} & import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
26
|
+
context: {
|
|
27
|
+
x: number;
|
|
28
|
+
y: number;
|
|
29
|
+
placement: import('@floating-ui/utils').Placement;
|
|
30
|
+
strategy: import('@floating-ui/utils').Strategy;
|
|
31
|
+
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
32
|
+
isPositioned: boolean;
|
|
33
|
+
update: () => void;
|
|
34
|
+
floatingStyles: React.CSSProperties;
|
|
35
|
+
open: boolean;
|
|
36
|
+
onOpenChange: (open: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
37
|
+
events: import('@floating-ui/react').FloatingEvents;
|
|
38
|
+
dataRef: React.MutableRefObject<import('@floating-ui/react').ContextData>;
|
|
39
|
+
nodeId: string | undefined;
|
|
40
|
+
floatingId: string | undefined;
|
|
41
|
+
refs: import('@floating-ui/react').ExtendedRefs<import('@floating-ui/react').ReferenceType>;
|
|
42
|
+
elements: import('@floating-ui/react').ExtendedElements<import('@floating-ui/react').ReferenceType>;
|
|
43
|
+
};
|
|
44
|
+
getReferenceProps: (userProps?: React.HTMLProps<Element>) => Record<string, unknown>;
|
|
45
|
+
getFloatingProps: (userProps?: React.HTMLProps<HTMLElement>) => Record<string, unknown>;
|
|
46
|
+
getItemProps: (userProps?: Omit<React.HTMLProps<HTMLElement>, "selected" | "active"> & {
|
|
47
|
+
active?: boolean;
|
|
48
|
+
selected?: boolean;
|
|
49
|
+
}) => Record<string, unknown>;
|
|
50
|
+
open: boolean;
|
|
51
|
+
tooltipOffset: number;
|
|
52
|
+
setOpen: (isOpen: boolean, event?: Event, reason?: import('@floating-ui/react').OpenChangeReason) => void;
|
|
53
|
+
};
|
|
54
|
+
export declare const validateTooltipAnchor: (children: React.ReactNode) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Validates the children of the tooltip component in development environment.
|
|
57
|
+
* - Check for children presence
|
|
58
|
+
* - Validate that <Tooltip.Anchor> and <Tooltip.Content> are used together.
|
|
59
|
+
*
|
|
60
|
+
* @param {Object} childrenObject
|
|
61
|
+
* @param {React.ReactNode} childrenObject.children - The Tooltip children.
|
|
62
|
+
* @param {boolean} childrenObject.hasContent - Whether <Tooltip.Content> is present.
|
|
63
|
+
* @param {boolean} childrenObject.hasAnchor - Whether <Tooltip.Anchor> is present.
|
|
64
|
+
* @returns {void}
|
|
65
|
+
*/
|
|
66
|
+
export declare const validateTooltipChildren: ({ children, hasContent, hasAnchor, }: {
|
|
67
|
+
children: React.ReactNode;
|
|
68
|
+
hasContent: boolean;
|
|
69
|
+
hasAnchor: boolean;
|
|
70
|
+
}) => void;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -30,11 +30,11 @@ export interface BrandAreaLogoProps {
|
|
|
30
30
|
target?: LogoTarget;
|
|
31
31
|
}
|
|
32
32
|
export interface BrandAddOnProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
33
|
-
/** Content of the brand
|
|
34
|
-
children
|
|
35
|
-
/** Sub title below the
|
|
33
|
+
/** Content of the brand add-on. */
|
|
34
|
+
children?: React.ReactNode;
|
|
35
|
+
/** Sub title displayed below the `children` to create a two line brand add-on. */
|
|
36
36
|
subTitle?: string;
|
|
37
|
-
/**
|
|
37
|
+
/** Predefined variant of the brand add-on.
|
|
38
38
|
* @default 'single'
|
|
39
39
|
*/
|
|
40
40
|
variant?: BrandAddOnVariant;
|
|
@@ -10,5 +10,5 @@ export declare const validateTopBarChildren: ({ hasBrandArea, hasPrimaryArea, ha
|
|
|
10
10
|
* @returns `true` if the value is undefined, null, or a non-array object with no own enumerable properties; otherwise, `false`.
|
|
11
11
|
*/
|
|
12
12
|
export declare const isEmptyObjectOrUndefined: (obj: unknown) => boolean;
|
|
13
|
-
export declare const BRAND_ADDON_VARIANT: readonly ["
|
|
13
|
+
export declare const BRAND_ADDON_VARIANT: readonly ["100years"];
|
|
14
14
|
export type BrandAddOnVariant = (typeof BRAND_ADDON_VARIANT)[number];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import "./chunks/index.DL9mof6u.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { c as u } from "./chunks/CustomReactSelect.Dg3wC_VH.js";
|
|
7
|
+
import "./chunks/useBreakpoint.BzR_yaIv.js";
|
|
8
|
+
import "./asterisk.B2ih8VwF.js";
|
|
9
|
+
import "./chunks/Icon.CDLyB7Pv.js";
|
|
10
|
+
import "./chunks/SystemFeedback.CjlARKki.js";
|
|
11
|
+
import "./optioncheckbox.nBVwGv6c.js";
|
|
12
|
+
export {
|
|
13
|
+
u as CustomReactSelect
|
|
14
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.DL9mof6u.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import "./asterisk.B2ih8VwF.js";
|
|
6
|
+
import "./heading.DHLpT4dc.js";
|
|
7
|
+
import "./chunks/SystemFeedback.CjlARKki.js";
|
|
8
|
+
import { D as l } from "./chunks/Fieldset.DiMtr6Vw.js";
|
|
9
|
+
export {
|
|
10
|
+
l as DSFieldset
|
|
11
|
+
};
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { jsx as o, jsxs as
|
|
3
|
-
import { d as P } from "./chunks/index.
|
|
4
|
-
import { D as k } from "./chunks/Button.
|
|
5
|
-
import { D as u } from "./chunks/Icon.
|
|
6
|
-
import { D as S } from "./chunks/SystemFeedback.
|
|
7
|
-
import { c as j } from "./chunks/index.
|
|
8
|
-
import './assets/filelist.H_wKcSPX.css';const F = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), z = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), y = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), C = /[^\p{L}\d]+/giu,
|
|
9
|
-
function
|
|
2
|
+
import { jsx as o, jsxs as w } from "react/jsx-runtime";
|
|
3
|
+
import { d as P } from "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import { D as k } from "./chunks/Button.DCZgBNmA.js";
|
|
5
|
+
import { D as u } from "./chunks/Icon.CDLyB7Pv.js";
|
|
6
|
+
import { D as S } from "./chunks/SystemFeedback.CjlARKki.js";
|
|
7
|
+
import { c as j } from "./chunks/index.DL9mof6u.js";
|
|
8
|
+
import './assets/filelist.H_wKcSPX.css';const F = new RegExp("([\\p{Ll}\\d])(\\p{Lu})", "gu"), z = new RegExp("(\\p{Lu})([\\p{Lu}][\\p{Ll}])", "gu"), y = new RegExp("(\\d)\\p{Ll}|(\\p{L})\\d", "u"), C = /[^\p{L}\d]+/giu, I = "$1\0$2", E = "";
|
|
9
|
+
function N(t) {
|
|
10
10
|
let e = t.trim();
|
|
11
|
-
e = e.replace(F,
|
|
11
|
+
e = e.replace(F, I).replace(z, I), e = e.replace(C, "\0");
|
|
12
12
|
let a = 0, s = e.length;
|
|
13
13
|
for (; e.charAt(a) === "\0"; )
|
|
14
14
|
a++;
|
|
@@ -19,7 +19,7 @@ function R(t) {
|
|
|
19
19
|
return e.slice(a, s).split(/\0/g);
|
|
20
20
|
}
|
|
21
21
|
function A(t) {
|
|
22
|
-
const e =
|
|
22
|
+
const e = N(t);
|
|
23
23
|
for (let a = 0; a < e.length; a++) {
|
|
24
24
|
const s = e[a], c = y.exec(s);
|
|
25
25
|
if (c) {
|
|
@@ -31,7 +31,7 @@ function A(t) {
|
|
|
31
31
|
}
|
|
32
32
|
function D(t, e) {
|
|
33
33
|
const [a, s, c] = q(t, e);
|
|
34
|
-
return a + s.map(U(e
|
|
34
|
+
return a + s.map(U(e?.locale)).join(e?.delimiter ?? " ") + c;
|
|
35
35
|
}
|
|
36
36
|
function T(t, e) {
|
|
37
37
|
return D(t, { delimiter: "-", ...e });
|
|
@@ -40,7 +40,7 @@ function U(t) {
|
|
|
40
40
|
return t === !1 ? (e) => e.toLowerCase() : (e) => e.toLocaleLowerCase(t);
|
|
41
41
|
}
|
|
42
42
|
function q(t, e = {}) {
|
|
43
|
-
const a = e.split ?? (e.separateNumbers ? A :
|
|
43
|
+
const a = e.split ?? (e.separateNumbers ? A : N), s = e.prefixCharacters ?? E, c = e.suffixCharacters ?? E;
|
|
44
44
|
let i = 0, f = t.length;
|
|
45
45
|
for (; i < t.length; ) {
|
|
46
46
|
const d = t.charAt(i);
|
|
@@ -115,33 +115,32 @@ const W = "ds-file-list_root_qx1ja_1", $ = "ds-file-list_file-wrapper_qx1ja_7",
|
|
|
115
115
|
const d = f, x = Q;
|
|
116
116
|
let b;
|
|
117
117
|
e[2] !== i ? (b = (n) => {
|
|
118
|
-
|
|
119
|
-
const r = ((h = n.name.split(".").pop()) == null ? void 0 : h.toLowerCase()) || "", {
|
|
118
|
+
const r = n.name.split(".").pop()?.toLowerCase() || "", {
|
|
120
119
|
nonDisplayableImages: p,
|
|
121
|
-
documents:
|
|
122
|
-
videos:
|
|
123
|
-
archives:
|
|
120
|
+
documents: h,
|
|
121
|
+
videos: g,
|
|
122
|
+
archives: L
|
|
124
123
|
} = J;
|
|
125
|
-
return n.type.startsWith("image/") ? p.includes(r) ? /* @__PURE__ */ o(u, { name: "file-type-image", className: l.fileIcon }) : /* @__PURE__ */ o("img", { src: URL.createObjectURL(n), alt: `${i("fileListPreviewAltText")} ${n.name}`, className: l.preview }) :
|
|
124
|
+
return n.type.startsWith("image/") ? p.includes(r) ? /* @__PURE__ */ o(u, { name: "file-type-image", className: l.fileIcon }) : /* @__PURE__ */ o("img", { src: URL.createObjectURL(n), alt: `${i("fileListPreviewAltText")} ${n.name}`, className: l.preview }) : h.includes(r) ? /* @__PURE__ */ o(u, { name: "file-type-doc", className: l.fileIcon }) : n.type === "application/pdf" ? /* @__PURE__ */ o(u, { name: "file-type-pdf", className: l.fileIcon }) : n.type.startsWith("video/") && g.includes(r) ? /* @__PURE__ */ o(u, { name: "file-type-video", className: l.fileIcon }) : L.includes(r) ? /* @__PURE__ */ o(u, { name: "file-type-zip", className: l.fileIcon }) : /* @__PURE__ */ o(u, { name: "file", className: l.fileIcon });
|
|
126
125
|
}, e[2] = i, e[3] = b) : b = e[3];
|
|
127
126
|
const v = b;
|
|
128
127
|
let m;
|
|
129
128
|
if (e[4] !== d || e[5] !== a || e[6] !== v || e[7] !== s || e[8] !== i) {
|
|
130
129
|
let n;
|
|
131
130
|
e[10] !== d || e[11] !== v || e[12] !== s || e[13] !== i ? (n = (r, p) => {
|
|
132
|
-
const
|
|
133
|
-
const [
|
|
134
|
-
return [
|
|
131
|
+
const h = Object.fromEntries(Object.entries(d).map((g) => {
|
|
132
|
+
const [L, R] = g;
|
|
133
|
+
return [L, `${R}-${p}`];
|
|
135
134
|
}));
|
|
136
|
-
return /* @__PURE__ */
|
|
135
|
+
return /* @__PURE__ */ w("div", { className: j(l.fileWrapper, {
|
|
137
136
|
[l.fileWrapperInvalid]: r.feedback
|
|
138
137
|
}), children: [
|
|
139
138
|
v(r),
|
|
140
|
-
/* @__PURE__ */
|
|
139
|
+
/* @__PURE__ */ w("div", { className: l.fileDetails, children: [
|
|
141
140
|
/* @__PURE__ */ o("span", { className: l.fileName, children: r.name }),
|
|
142
141
|
/* @__PURE__ */ o("span", { className: l.fileSize, children: V(r.size) })
|
|
143
142
|
] }),
|
|
144
|
-
/* @__PURE__ */
|
|
143
|
+
/* @__PURE__ */ w(k, { ...h, className: l.removeButton, onClick: () => s(p), hideLabel: !0, iconName: "cross", size: "small", variant: "ghost", type: "button", "aria-describedby": r.feedback ? x(r.name) : void 0, "aria-invalid": r.feedback ? !0 : void 0, children: [
|
|
145
144
|
i("fileListRemoveSelectionButtonLabel", [r.name]),
|
|
146
145
|
"."
|
|
147
146
|
] }),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsxs as y, jsx as p } from "react/jsx-runtime";
|
|
3
|
-
import { d as L } from "./chunks/index.
|
|
4
|
-
import { c as u } from "./chunks/index.
|
|
5
|
-
import { D as w } from "./chunks/Icon.
|
|
3
|
+
import { d as L } from "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import { c as u } from "./chunks/index.DL9mof6u.js";
|
|
5
|
+
import { D as w } from "./chunks/Icon.CDLyB7Pv.js";
|
|
6
6
|
import './assets/flag.C7i3MAAP.css';const b = "ds-flag_root_14d3h_1", x = "ds-flag_root--color-grey-light_14d3h_28", G = "ds-flag_root--color-yellow-light_14d3h_31", N = "ds-flag_root--color-red-light_14d3h_34", S = "ds-flag_root--color-green-light_14d3h_37", D = "ds-flag_root--color-orange-base_14d3h_40", C = {
|
|
7
7
|
root: b,
|
|
8
8
|
"root--color-grey-light": "ds-flag_root--color-grey-light_14d3h_28",
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as q, jsx as S } from "react/jsx-runtime";
|
|
3
|
+
import { d as J } from "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import { c as T } from "./chunks/index.DL9mof6u.js";
|
|
5
|
+
import { D as K } from "./chunks/Icon.CDLyB7Pv.js";
|
|
6
|
+
import { DSSpinner as M } from "./spinner.C9qCeq0R.js";
|
|
7
|
+
import { Tooltip as $ } from "./tooltip.QJe_bfO-.js";
|
|
8
|
+
import { forwardRef as P } from "react";
|
|
9
|
+
import './assets/floatingactionbutton.l0nvFiJU.css';const Q = "ds-floating-action-button_root_1any0_1", U = "ds-floating-action-button_root--dark_1any0_70", V = "ds-floating-action-button_root--small_1any0_108", W = "ds-floating-action-button_loader_1any0_129", X = "ds-floating-action-button_icon--hidden_1any0_141", Y = "ds-floating-action-button_label--hidden_1any0_145", l = {
|
|
10
|
+
root: Q,
|
|
11
|
+
rootDark: U,
|
|
12
|
+
rootSmall: V,
|
|
13
|
+
loader: W,
|
|
14
|
+
iconHidden: X,
|
|
15
|
+
labelHidden: Y
|
|
16
|
+
}, Z = P((z, B) => {
|
|
17
|
+
const t = J.c(51);
|
|
18
|
+
let s, r, c, n, i, d, p, _, h, g, y, a;
|
|
19
|
+
t[0] !== z ? ({
|
|
20
|
+
aria: s,
|
|
21
|
+
children: r,
|
|
22
|
+
className: c,
|
|
23
|
+
disabled: p,
|
|
24
|
+
iconName: _,
|
|
25
|
+
iconSource: n,
|
|
26
|
+
loading: h,
|
|
27
|
+
size: g,
|
|
28
|
+
theme: y,
|
|
29
|
+
tooltip: a,
|
|
30
|
+
onClick: i,
|
|
31
|
+
...d
|
|
32
|
+
} = z, t[0] = z, t[1] = s, t[2] = r, t[3] = c, t[4] = n, t[5] = i, t[6] = d, t[7] = p, t[8] = _, t[9] = h, t[10] = g, t[11] = y, t[12] = a) : (s = t[1], r = t[2], c = t[3], n = t[4], i = t[5], d = t[6], p = t[7], _ = t[8], h = t[9], g = t[10], y = t[11], a = t[12]);
|
|
33
|
+
const D = p === void 0 ? !1 : p, N = _ === void 0 ? "placeholder" : _, o = h === void 0 ? !1 : h, G = g === void 0 ? "medium" : g, k = y === void 0 ? "light" : y, E = k === "dark", F = G === "small";
|
|
34
|
+
let C;
|
|
35
|
+
t[13] !== c || t[14] !== E || t[15] !== F ? (C = T(l.root, l.rootIconOnlySmall, c, {
|
|
36
|
+
[l.rootDark]: E,
|
|
37
|
+
[l.rootSmall]: F
|
|
38
|
+
}), t[13] = c, t[14] = E, t[15] = F, t[16] = C) : C = t[16];
|
|
39
|
+
const I = C;
|
|
40
|
+
let H;
|
|
41
|
+
t[17] !== o ? (H = T(l.icon, {
|
|
42
|
+
[l.iconHidden]: o
|
|
43
|
+
}), t[17] = o, t[18] = H) : H = t[18];
|
|
44
|
+
const w = H;
|
|
45
|
+
let v;
|
|
46
|
+
t[19] !== D || t[20] !== o || t[21] !== i ? (v = (e) => {
|
|
47
|
+
if (D || o) {
|
|
48
|
+
e.preventDefault();
|
|
49
|
+
return;
|
|
50
|
+
}
|
|
51
|
+
i && i(e);
|
|
52
|
+
}, t[19] = D, t[20] = o, t[21] = i, t[22] = v) : v = t[22];
|
|
53
|
+
const L = v, R = D || o;
|
|
54
|
+
let m;
|
|
55
|
+
t[23] !== o ? (m = o && /* @__PURE__ */ S(M, { className: l.loader, aria: {
|
|
56
|
+
"aria-label": "Loading state"
|
|
57
|
+
} }), t[23] = o, t[24] = m) : m = t[24];
|
|
58
|
+
let x;
|
|
59
|
+
t[25] === Symbol.for("react.memo_cache_sentinel") ? (x = T(l.label, l.labelHidden), t[25] = x) : x = t[25];
|
|
60
|
+
let f;
|
|
61
|
+
t[26] !== r ? (f = /* @__PURE__ */ S("span", { className: x, children: r }), t[26] = r, t[27] = f) : f = t[27];
|
|
62
|
+
let u;
|
|
63
|
+
t[28] !== w || t[29] !== N || t[30] !== n || t[31] !== k ? (u = (N || n) && /* @__PURE__ */ S(K, { name: N, theme: k, source: n, className: w, "aria-hidden": "true" }), t[28] = w, t[29] = N, t[30] = n, t[31] = k, t[32] = u) : u = t[32];
|
|
64
|
+
let A;
|
|
65
|
+
t[33] !== s || t[34] !== L || t[35] !== o || t[36] !== B || t[37] !== d || t[38] !== I || t[39] !== R || t[40] !== m || t[41] !== f || t[42] !== u ? (A = /* @__PURE__ */ q("button", { className: I, type: "button", onClick: L, ...s, ...d, "aria-disabled": R, "aria-busy": o, ref: B, children: [
|
|
66
|
+
m,
|
|
67
|
+
f,
|
|
68
|
+
u
|
|
69
|
+
] }), t[33] = s, t[34] = L, t[35] = o, t[36] = B, t[37] = d, t[38] = I, t[39] = R, t[40] = m, t[41] = f, t[42] = u, t[43] = A) : A = t[43];
|
|
70
|
+
const O = A;
|
|
71
|
+
if (a) {
|
|
72
|
+
let e;
|
|
73
|
+
t[44] !== O ? (e = /* @__PURE__ */ S($.Anchor, { children: O }), t[44] = O, t[45] = e) : e = t[45];
|
|
74
|
+
let b;
|
|
75
|
+
t[46] !== a ? (b = /* @__PURE__ */ S($.Content, { children: a }), t[46] = a, t[47] = b) : b = t[47];
|
|
76
|
+
let j;
|
|
77
|
+
return t[48] !== e || t[49] !== b ? (j = /* @__PURE__ */ q($, { placement: "top", tooltipOffset: 6, children: [
|
|
78
|
+
e,
|
|
79
|
+
b
|
|
80
|
+
] }), t[48] = e, t[49] = b, t[50] = j) : j = t[50], j;
|
|
81
|
+
}
|
|
82
|
+
return O;
|
|
83
|
+
});
|
|
84
|
+
Z.displayName = "DSFloatingActionButton";
|
|
85
|
+
export {
|
|
86
|
+
Z as DSFloatingActionButton
|
|
87
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import "./chunks/index.DL9mof6u.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "./chunks/helpers.CexwVao7.js";
|
|
7
|
+
import "./chunks/useIsomorphicLayoutEffect.CnJ9AMFS.js";
|
|
8
|
+
import { a as s, D } from "./chunks/Header.7TQL_J9t.js";
|
|
9
|
+
export {
|
|
10
|
+
s as DSHeader,
|
|
11
|
+
D as DSHeaderContext
|
|
12
|
+
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { jsx as X } from "react/jsx-runtime";
|
|
3
|
-
import { d as D } from "./chunks/index.
|
|
4
|
-
import { c as T } from "./chunks/index.
|
|
3
|
+
import { d as D } from "./chunks/index.D-sRdssb.js";
|
|
4
|
+
import { c as T } from "./chunks/index.DL9mof6u.js";
|
|
5
5
|
import './assets/heading.B-rdLVZD.css';const v = "ds-heading_root_6kuzl_1", N = "ds-heading_root--x-large_6kuzl_4", j = "ds-heading_root--x-large-uppercase_6kuzl_19", y = "ds-heading_root--large_6kuzl_35", C = "ds-heading_root--large-uppercase_6kuzl_50", E = "ds-heading_root--medium_6kuzl_66", H = "ds-heading_root--medium-uppercase_6kuzl_75", $ = "ds-heading_root--small_6kuzl_85", b = "ds-heading_root--small-uppercase_6kuzl_94", q = "ds-heading_root--theme-dark_6kuzl_104", o = {
|
|
6
6
|
root: v,
|
|
7
7
|
rootXLarge: N,
|