@stihl-design-system/components 1.0.0-RC.46 → 1.0.0-RC.48
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.Dvt4S5qg.js → accordion.D4XR2R7e.js} +3 -3
- package/actionbutton.C8hePX-D.js +12 -0
- package/{actioncard.BwquHtM_.js → actioncard.kDxu01xm.js} +1 -1
- package/actionlink.dccc5JQV.js +12 -0
- package/{arialiveregions.BF6mUlPU.js → arialiveregions.BniSDuPM.js} +9 -10
- package/assets/Accordion.RlqWqpGo.css +1 -0
- package/assets/ActionButton.Dw2FeIaW.css +1 -0
- package/assets/ActionCard.viEoC26n.css +1 -0
- package/assets/ActionLink.B1Jjaf7k.css +1 -0
- package/assets/Breadcrumb.BJ6sa2am.css +1 -0
- package/assets/Button.Bi1KUKMv.css +1 -0
- package/assets/Checkbox.C6RWhy0V.css +1 -0
- package/assets/Chip.DfamkUPw.css +1 -0
- package/assets/CustomReactSelect.CvWMmrAU.css +1 -0
- package/assets/Dialog.6AkQo8ew.css +1 -0
- package/assets/Drawer.CDOlX809.css +1 -0
- package/assets/Fieldset.BbLGXCWa.css +1 -0
- package/assets/Flag.qP1xbolI.css +1 -0
- package/assets/Header.CSPbSqR5.css +1 -0
- package/assets/InputFile.CDtghZtl.css +1 -0
- package/assets/InputNumber.BNpO9p7n.css +1 -0
- package/assets/InputPassword.BgZo-RUc.css +1 -0
- package/assets/InputSearch.BROFFTK9.css +1 -0
- package/assets/LinkButton.IKIlFnpH.css +1 -0
- package/assets/LinkCard.pJtgJRIh.css +1 -0
- package/assets/NavigationTabList.D5VV0C7Y.css +1 -0
- package/assets/Notification.2B81JHOp.css +1 -0
- package/assets/Pagination.DH71DZ0j.css +1 -0
- package/assets/Popover.58Tb0dOt.css +1 -0
- package/assets/Select.CfTN3CJo.css +1 -0
- package/assets/Slider.B4kzL60S.css +1 -0
- package/assets/Stepper.BCpjMiOX.css +1 -0
- package/assets/SystemFeedback.DVMml_h9.css +1 -0
- package/assets/TextUtility.BThulfyl.css +1 -0
- package/assets/Textarea.BO4AcRJD.css +1 -0
- package/assets/Toast.ChXfv24m.css +1 -0
- package/assets/buttonround.syTU1QSI.css +1 -0
- package/assets/chipgroup.DtCnsmS7.css +1 -0
- package/assets/filelist.B-Ru0GP_.css +1 -0
- package/assets/input.Dy8VS73e.css +1 -0
- package/assets/link.EZrauC8s.css +1 -0
- package/assets/numberindicator.CtbitPQ8.css +1 -0
- package/assets/optioncheckbox.BwkbIDOt.css +1 -0
- package/assets/progressindicator.tyY_RVQ9.css +1 -0
- package/assets/radio.9hUUyg8R.css +1 -0
- package/assets/step.DOAmuuEQ.css +1 -0
- package/assets/switch.8v7Wp1Fj.css +1 -0
- package/assets/tabpane.DDaeSDQb.css +1 -0
- package/assets/text.BwGsYzGM.css +1 -0
- package/assets/tooltip.C_BL2kou.css +1 -0
- package/{banner.CwZXWMc_.js → banner.DO7GsDL_.js} +1 -1
- package/{breadcrumb.DMqAgUyk.js → breadcrumb.DYov6vtt.js} +3 -3
- package/{button.BDCfI_fj.js → button.qxcuzbnv.js} +4 -4
- package/buttonround.BO7_ewzA.js +101 -0
- package/checkbox.C9kyIY9P.js +11 -0
- package/{checkboxgroup.DDWYxYzk.js → checkboxgroup.kEUxnKLf.js} +2 -2
- package/chip.5ktNLRYf.js +12 -0
- package/chipgroup.kRU3Z98U.js +226 -0
- package/chunks/Accordion.gih2ni1d.js +179 -0
- package/chunks/ActionButton.B-wm5sUy.js +194 -0
- package/chunks/{ActionCard.DJSGkwVG.js → ActionCard.Bm-2ewfS.js} +38 -38
- package/chunks/ActionLink.D0KzqbH4.js +166 -0
- package/chunks/{AriaLiveRegions.utils.8ofDlHnN.js → AriaLiveRegions.utils.xoETe2Ps.js} +16 -18
- package/chunks/{Breadcrumb.BkP2B-Vm.js → Breadcrumb.I2G-T0zc.js} +14 -14
- package/chunks/Button.CCol--xy.js +165 -0
- package/chunks/Checkbox.BxOGR1bR.js +96 -0
- package/chunks/CheckboxGroup.TneO0tuE.js +85 -0
- package/chunks/Chip.DffaXMkV.js +148 -0
- package/chunks/{CustomReactSelect.yVERtd4R.js → CustomReactSelect.DTAavYaz.js} +250 -245
- package/chunks/Dialog.guuxflWL.js +101 -0
- package/chunks/Drawer.CjUZu6GW.js +106 -0
- package/chunks/Fieldset.BBMuLKps.js +94 -0
- package/chunks/Flag.CbQYBzVC.js +74 -0
- package/chunks/{Header.DyqOlV8L.js → Header.CvcGSuhX.js} +140 -140
- package/chunks/{Icon.B0WqYErA.js → Icon.DYtaQgbw.js} +1 -1
- package/chunks/{Input.utils.D78E4MGO.js → Input.utils.Wycy2SzG.js} +23 -25
- package/chunks/InputFile.y71Cd5J9.js +260 -0
- package/chunks/InputNumber.Fn2YbF_s.js +250 -0
- package/chunks/InputPassword.DtT9yrlx.js +129 -0
- package/chunks/InputSearch.BoAfGqoH.js +157 -0
- package/chunks/LinkButton.BxG7fx1O.js +150 -0
- package/chunks/LinkCard.DM-5WrSt.js +200 -0
- package/chunks/{MegaMenu.CiSiMlE3.js → MegaMenu.udXR1H3W.js} +2 -2
- package/chunks/NavigationTabList.thzA1pU8.js +68 -0
- package/chunks/{NavigationTabs.BqaUbfFC.js → NavigationTabs.BWewgBch.js} +1 -1
- package/chunks/Notification.C_o7Ge6Q.js +91 -0
- package/chunks/Pagination.BrOMUJMi.js +272 -0
- package/chunks/Popover.CxZZ_y1Z.js +230 -0
- package/chunks/RadioGroup.CO91_5hA.js +136 -0
- package/chunks/Select.EzoMdk1u.js +157 -0
- package/chunks/Slider.CX38t4Sk.js +330 -0
- package/chunks/{Stepper.Bqnak38-.js → Stepper.Ds_aIEF8.js} +72 -73
- package/chunks/SystemFeedback.DhWcYjnu.js +43 -0
- package/chunks/{Tabs.cMCZMPCy.js → Tabs.BHVlgp7L.js} +2 -2
- package/chunks/Text.utils.DzlY9pJS.js +9 -0
- package/chunks/TextUtility.BZLwqyic.js +82 -0
- package/chunks/Textarea.vuJgvW6_.js +192 -0
- package/chunks/Toast.V_ZUAsf2.js +76 -0
- package/chunks/floating-ui.react.Chmq0RmI.js +3014 -0
- package/chunks/translate.DSb-TdWR.js +2460 -0
- package/{combobox.CpX-Vlyd.js → combobox.C6cPz4AJ.js} +1 -1
- package/components/Accordion/Accordion.d.ts +5 -0
- package/components/ActionButton/ActionButton.d.ts +5 -1
- package/components/ActionLink/ActionLink.d.ts +1 -1
- package/components/Button/Button.utils.d.ts +1 -1
- package/components/Checkbox/Checkbox.d.ts +8 -1
- package/components/CheckboxGroup/CheckboxGroup.d.ts +9 -1
- package/components/ChipGroup/Chip.d.ts +2 -0
- package/components/ChipGroup/ChipGroup.d.ts +12 -2
- package/components/ChipGroup/ChipGroup.utils.d.ts +39 -15
- package/components/Combobox/Combobox.utils.d.ts +66 -9
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +5 -1
- package/components/Combobox/CustomReactSelect/CustomReactSelect.utils.d.ts +1 -1
- package/components/Fieldset/Fieldset.d.ts +9 -2
- package/components/Flag/Flag.d.ts +3 -3
- package/components/Flag/Flag.utils.d.ts +7 -2
- package/components/Input/Input.d.ts +8 -1
- package/components/InputFile/FileList/FileList.d.ts +4 -2
- package/components/InputFile/FileList/FilePreview/FilePreview.d.ts +8 -2
- package/components/InputFile/FileList/ProgressIndicator/ProgressIndicator.d.ts +8 -2
- package/components/InputFile/InputFile.d.ts +12 -2
- package/components/InputFile/InputFile.utils.d.ts +41 -23
- package/components/InputNumber/InputNumber.d.ts +8 -1
- package/components/InputPassword/InputPassword.d.ts +8 -1
- package/components/InputSearch/InputSearch.d.ts +8 -1
- package/components/LinkCard/LinkCard.d.ts +10 -4
- package/components/LinkCard/LinkCard.utils.d.ts +2 -2
- package/components/NumberIndicator/NumberIndicator.d.ts +6 -1
- package/components/Pagination/Pagination.d.ts +10 -3
- package/components/Pagination/Pagination.utils.d.ts +22 -9
- package/components/Popover/Popover.d.ts +9 -1
- package/components/Popover/Popover.utils.d.ts +3 -2
- package/components/Radio/Radio.d.ts +5 -0
- package/components/RadioGroup/RadioGroup.d.ts +8 -0
- package/components/Select/Select.d.ts +8 -1
- package/components/Slider/Slider.d.ts +8 -1
- package/components/Stepper/Step.d.ts +1 -1
- package/components/Stepper/Step.utils.d.ts +1 -1
- package/components/Stepper/Stepper.d.ts +4 -1
- package/components/Stepper/Stepper.utils.d.ts +9 -4
- package/components/SystemFeedback/SystemFeedback.d.ts +9 -1
- package/components/Textarea/Textarea.d.ts +8 -1
- package/{customreactselect.B1FFXsJ8.js → customreactselect.L0zSh3Tg.js} +6 -6
- package/{dialog.ZQ-HnvZs.js → dialog.Ddq8o8Od.js} +2 -2
- package/{drawer.D0-RM0WZ.js → drawer.rbbjQvqL.js} +2 -2
- package/{fieldset.BzOeuWjO.js → fieldset.BHf3XK2q.js} +3 -3
- package/filelist.GrEwoM1u.js +143 -0
- package/filepreview.B2Ot9SZ7.js +97 -0
- package/flag.fX6LAgty.js +10 -0
- package/{floatingactionbutton.AVc4qY0u.js → floatingactionbutton.BwCiybnc.js} +3 -3
- package/{header.BtGgmM59.js → header.BCeCjYfG.js} +1 -1
- package/{icon.DrTLVrpN.js → icon.CRr1FGOu.js} +1 -1
- package/index.es.js +231 -230
- package/input.Dh0ws-9j.js +187 -0
- package/inputfile.DiZh3GcT.js +17 -0
- package/{inputnumber.r0iVYkjd.js → inputnumber.D2cmptaH.js} +8 -9
- package/{inputpassword.PXBZo3f0.js → inputpassword.C53Kg4EA.js} +4 -4
- package/inputsearch.BrsIDUSW.js +14 -0
- package/link.DEZDbUgq.js +81 -0
- package/{linkbutton.DVFXzn-A.js → linkbutton._X50W2Md.js} +3 -3
- package/{linkcard.BwSMt03V.js → linkcard.BtM3KnjT.js} +4 -4
- package/{logo.D7LnRA1E.js → logo.D6BTxbxv.js} +0 -1
- package/{megamenu.CUjk3_h2.js → megamenu.odVCUm4c.js} +3 -3
- package/navigationtablist.n9DrtYe5.js +10 -0
- package/{navigationtabs.DmcYShPs.js → navigationtabs.D0mSyAtK.js} +2 -2
- package/{notification.BVoapVVg.js → notification._X8-8vOa.js} +3 -3
- package/numberindicator.DsK65Bj3.js +39 -0
- package/optioncheckbox.tlMEoyT0.js +48 -0
- package/package.json +38 -33
- package/pagination.B7Hrx_sk.js +14 -0
- package/partials/index.js +91 -91
- package/{popover.OcE_5SfG.js → popover.BBaqL7y9.js} +4 -4
- package/progressindicator.D9CfVD95.js +74 -0
- package/radio.DjToa2aV.js +148 -0
- package/{radiogroup.N06_e0b8.js → radiogroup.mc-8lw65.js} +3 -3
- package/{scroller.CwTXbzb8.js → scroller.CgWp2WXG.js} +10 -11
- package/select.DTZ6a6Ag.js +13 -0
- package/{skeleton.DUkBgXxO.js → skeleton.CNJdNVav.js} +10 -10
- package/{skiptocontent.Bujq9t3i.js → skiptocontent.BsRpWvyu.js} +4 -4
- package/{slider.JAKEAwOB.js → slider.BMGAihY0.js} +3 -3
- package/{spinner.D1W-X96t.js → spinner.DtLnsqVV.js} +1 -1
- package/step.DCQ6CawJ.js +82 -0
- package/stepper.D7-7BdSv.js +15 -0
- package/styles/js/index.d.ts +1 -0
- package/styles/js/index.es.js +24 -4
- package/styles/js/lib/spacing-rem.d.ts +21 -0
- package/styles/js/lib/spacing.d.ts +0 -1
- package/styles/scss/ds/index.scss +4 -1
- package/styles/scss/ds/lib/border-width.scss +3 -0
- package/styles/scss/ds/lib/ds-internal/_input.scss +71 -26
- package/styles/scss/ds/lib/ds-internal/_link-button.scss +7 -4
- package/styles/scss/ds/lib/ds-internal/_link.scss +23 -3
- package/styles/scss/ds/lib/ds-internal/_text.scss +3 -1
- package/styles/scss/ds/lib/grid-narrow.scss +1 -0
- package/styles/scss/ds/lib/input.scss +12 -7
- package/styles/scss/ds/lib/link.scss +2 -2
- package/styles/scss/ds/lib/radius.scss +5 -0
- package/styles/scss/ds/lib/spacing-rem.scss +19 -0
- package/styles/scss/ds/lib/spacing.scss +0 -1
- package/switch.tM2XBag8.js +66 -0
- package/{systemfeedback.B8FBckG4.js → systemfeedback.BPPOht_9.js} +2 -2
- package/{tablist.D3n9E4KM.js → tablist.BAm0_UIG.js} +22 -23
- package/{tabpane.7vMXUKFX.js → tabpane.B9rZghU6.js} +1 -1
- package/{tabs.IVNsM5Gn.js → tabs.BgTdWbTe.js} +3 -3
- package/text.BEO_ZfJq.js +72 -0
- package/{textarea.gjb8VGgh.js → textarea.Cki-uMkZ.js} +5 -6
- package/{textutility.CNWCGYOy.js → textutility.BypzssPt.js} +2 -2
- package/{toast.DU8Sd_4c.js → toast.s0Hfuh5i.js} +3 -3
- package/{toastmanager.UlkvsO5p.js → toastmanager.CPIPn4Io.js} +22 -23
- package/{tooltip.C6HKano9.js → tooltip.BFQG-7VR.js} +22 -22
- package/{topbar.Z9NNkxKU.js → topbar.Bbct-XkB.js} +3 -3
- package/utils/translate.d.ts +22 -6
- package/actionbutton.D6qmbuAA.js +0 -12
- package/actionlink.fWwe7J0H.js +0 -12
- package/assets/Accordion.Cr1dbVTH.css +0 -1
- package/assets/ActionButton.BLOWs6IZ.css +0 -1
- package/assets/ActionCard.BG8w8xUC.css +0 -1
- package/assets/ActionLink.BJDUVdT7.css +0 -1
- package/assets/Breadcrumb.BavNNzAA.css +0 -1
- package/assets/Button.C-UYIggc.css +0 -1
- package/assets/Checkbox.ZAPIO2N8.css +0 -1
- package/assets/Chip.D3vV0wyV.css +0 -1
- package/assets/CustomReactSelect.Ctze4SRN.css +0 -1
- package/assets/Dialog.BKwWy1g2.css +0 -1
- package/assets/Drawer.BU-fi5Hk.css +0 -1
- package/assets/Fieldset.DCmr1Yir.css +0 -1
- package/assets/Header.BNYL2Y78.css +0 -1
- package/assets/InputFile.BUMCNCrj.css +0 -1
- package/assets/InputNumber.Bmz8cNKg.css +0 -1
- package/assets/InputPassword.CutbykTm.css +0 -1
- package/assets/InputSearch.Sr9jVpKt.css +0 -1
- package/assets/LinkButton.CxJvjEY5.css +0 -1
- package/assets/LinkCard.DkQoQJxx.css +0 -1
- package/assets/NavigationTabList.DYjNT2Di.css +0 -1
- package/assets/Notification.DBGpHzov.css +0 -1
- package/assets/Pagination.DZ1yCAMR.css +0 -1
- package/assets/Popover.mL5g23EK.css +0 -1
- package/assets/Select.BZYb_HAG.css +0 -1
- package/assets/Slider.vnSU0ya0.css +0 -1
- package/assets/Stepper.tXJl15yL.css +0 -1
- package/assets/SystemFeedback.PKzqnXUe.css +0 -1
- package/assets/TextUtility.CEBJaKBG.css +0 -1
- package/assets/Textarea.BIgA9_fl.css +0 -1
- package/assets/Toast.CGl8z6mX.css +0 -1
- package/assets/buttonround.CMrJRIeW.css +0 -1
- package/assets/chipgroup.BGxjdSDX.css +0 -1
- package/assets/filelist.CHVupL8T.css +0 -1
- package/assets/flag.CyCIPu_J.css +0 -1
- package/assets/input.BEOus9jX.css +0 -1
- package/assets/link.Dcsio57m.css +0 -1
- package/assets/numberindicator.BYIPwkAK.css +0 -1
- package/assets/optioncheckbox.6zYgifUk.css +0 -1
- package/assets/progressindicator.Cbbzo5-b.css +0 -1
- package/assets/radio.l9OTraQU.css +0 -1
- package/assets/step.Ch508u7I.css +0 -1
- package/assets/switch.DYamtd9O.css +0 -1
- package/assets/tabpane.o34hshTz.css +0 -1
- package/assets/text.BA1eUihR.css +0 -1
- package/assets/tooltip.BPcysHGE.css +0 -1
- package/buttonround.DZCu35Zw.js +0 -101
- package/checkbox.RYvu23i4.js +0 -12
- package/chip.CtZK5gH7.js +0 -12
- package/chipgroup.C-UJt9Nb.js +0 -213
- package/chunks/Accordion.Tz7cWkk5.js +0 -173
- package/chunks/ActionButton.Dqay6Dxt.js +0 -188
- package/chunks/ActionLink.BgWqWSKi.js +0 -161
- package/chunks/Button.Dauhc5op.js +0 -160
- package/chunks/Checkbox.C5Jgtwho.js +0 -88
- package/chunks/CheckboxGroup.Df_nLGBa.js +0 -79
- package/chunks/Chip.DXS_ZMGD.js +0 -157
- package/chunks/Dialog.mP1tZEbW.js +0 -102
- package/chunks/Drawer.D6IG0DRe.js +0 -107
- package/chunks/Fieldset.DxhNhprT.js +0 -91
- package/chunks/InputFile.BSGunqyW.js +0 -260
- package/chunks/InputNumber.BsBAdxWr.js +0 -240
- package/chunks/InputPassword.hZYiAKYC.js +0 -121
- package/chunks/InputSearch.Dp3x5RE4.js +0 -149
- package/chunks/LinkButton.DHcfHamd.js +0 -150
- package/chunks/LinkCard.DV-V9qHd.js +0 -197
- package/chunks/NavigationTabList.BIApwNzg.js +0 -68
- package/chunks/Notification.DeedcinQ.js +0 -91
- package/chunks/Pagination.DhD8i5AV.js +0 -247
- package/chunks/Popover.Cyf3CbLl.js +0 -221
- package/chunks/RadioGroup.D3omhLuC.js +0 -130
- package/chunks/Select.DOeJaqzM.js +0 -147
- package/chunks/Slider.d3gCkWL_.js +0 -309
- package/chunks/SystemFeedback.Dq3ZphgG.js +0 -38
- package/chunks/Text.utils.D_iOyOSH.js +0 -11
- package/chunks/TextUtility.Wbd4oQXI.js +0 -82
- package/chunks/Textarea.DhRMfiWu.js +0 -181
- package/chunks/Toast.KMEq0p-E.js +0 -76
- package/chunks/floating-ui.react.CP5A99-c.js +0 -2980
- package/chunks/translate.nuU7uChI.js +0 -8
- package/filelist.BaYCDtxD.js +0 -128
- package/filepreview.BCslhbM5.js +0 -94
- package/flag.DyZLEgAw.js +0 -50
- package/input.DNdSFW5k.js +0 -175
- package/inputfile.CTXJ_ZSi.js +0 -18
- package/inputsearch.JLM0fNPt.js +0 -15
- package/link.CArLlIsR.js +0 -81
- package/navigationtablist.BerRIzu-.js +0 -10
- package/numberindicator.ZGVRSmqf.js +0 -36
- package/optioncheckbox.BQo8riVL.js +0 -48
- package/pagination.Dm1WnFhY.js +0 -14
- package/progressindicator.1JRFwf-H.js +0 -53
- package/radio.DxdVKoxe.js +0 -137
- package/select.DVuQMz7l.js +0 -14
- package/step.CDNmsF4m.js +0 -82
- package/stepper.D0kSuiYh.js +0 -16
- package/switch.pN105F5-.js +0 -66
- package/text.D_e3JBvf.js +0 -72
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { BreakpointCustomizable } from '../../types';
|
|
2
|
+
import { BreakpointCustomizable, Theme } from '../../types';
|
|
3
3
|
import { InputSize } from '../Input/Input.utils';
|
|
4
4
|
export interface InputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'size' | 'value'> {
|
|
5
5
|
/** Unique id for the input. */
|
|
@@ -99,6 +99,13 @@ export interface InputNumberProps extends Omit<InputHTMLAttributes<HTMLInputElem
|
|
|
99
99
|
/** Value of the input. */
|
|
100
100
|
value?: InputHTMLAttributes<HTMLInputElement>['value'];
|
|
101
101
|
}
|
|
102
|
+
/** @internal Props including theme — not exported to consumers. */
|
|
103
|
+
export interface InputNumberPropsWithTheme extends InputNumberProps {
|
|
104
|
+
/** Defines the theme.
|
|
105
|
+
* @default 'light'
|
|
106
|
+
*/
|
|
107
|
+
theme?: Theme;
|
|
108
|
+
}
|
|
102
109
|
/**
|
|
103
110
|
* The `<DSInputNumber />` component is a versatile input field that allows users to easily enter a value and decrease or increase it as needed.
|
|
104
111
|
* It comes in two sizes (medium & small) and supports various customizations including a prefix and suffix.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { BreakpointCustomizable } from '../../types';
|
|
2
|
+
import { BreakpointCustomizable, Theme } from '../../types';
|
|
3
3
|
import { InputSize } from '../Input/Input.utils';
|
|
4
4
|
export interface InputPasswordProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'size'> {
|
|
5
5
|
/** Unique id for the input. */
|
|
@@ -68,6 +68,13 @@ export interface InputPasswordProps extends Omit<InputHTMLAttributes<HTMLInputEl
|
|
|
68
68
|
showPasswordText?: string;
|
|
69
69
|
};
|
|
70
70
|
}
|
|
71
|
+
/** @internal Props including theme — not exported to consumers. */
|
|
72
|
+
export interface InputPasswordPropsWithTheme extends InputPasswordProps {
|
|
73
|
+
/** Defines the theme.
|
|
74
|
+
* @default 'light'
|
|
75
|
+
*/
|
|
76
|
+
theme?: Theme;
|
|
77
|
+
}
|
|
71
78
|
/**
|
|
72
79
|
* The `<DSInputPassword />` component is an input field that allows users to enter and edit passwords.
|
|
73
80
|
* It comes in two sizes (medium & small) and supports various customizations including a label,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { BreakpointCustomizable } from '../../types';
|
|
2
|
+
import { BreakpointCustomizable, Theme } from '../../types';
|
|
3
3
|
import { InputSize } from '../Input/Input.utils';
|
|
4
4
|
export interface InputSearchProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'size'> {
|
|
5
5
|
/** Unique id for the input. */
|
|
@@ -69,6 +69,13 @@ export interface InputSearchProps extends Omit<InputHTMLAttributes<HTMLInputElem
|
|
|
69
69
|
/** Value of the input. */
|
|
70
70
|
value?: string;
|
|
71
71
|
}
|
|
72
|
+
/** @internal Props including theme — not exported to consumers. */
|
|
73
|
+
export interface InputSearchPropsWithTheme extends InputSearchProps {
|
|
74
|
+
/** Defines the theme.
|
|
75
|
+
* @default 'light'
|
|
76
|
+
*/
|
|
77
|
+
theme?: Theme;
|
|
78
|
+
}
|
|
72
79
|
/**
|
|
73
80
|
* The `<DSInputSearch />` component can be used as a dedicated search field input.
|
|
74
81
|
* It comes in two sizes (medium & small) and supports various customizations including a label,
|
|
@@ -45,7 +45,7 @@ export interface LinkCardProps extends AnchorHTMLAttributes<HTMLAnchorElement |
|
|
|
45
45
|
/**
|
|
46
46
|
* Brand flag displayed on the image.
|
|
47
47
|
*
|
|
48
|
-
* Can be either a simple `string` (uses default `
|
|
48
|
+
* Can be either a simple `string` (uses default `promo-highlight` color) or `FlagProps` for full customization.
|
|
49
49
|
*/
|
|
50
50
|
brandFlag?: string | FlagProps;
|
|
51
51
|
/**
|
|
@@ -83,7 +83,7 @@ export interface LinkCardProps extends AnchorHTMLAttributes<HTMLAnchorElement |
|
|
|
83
83
|
/**
|
|
84
84
|
* Array of DSFlag components to be displayed on the card.
|
|
85
85
|
*
|
|
86
|
-
* Each flag can be either a simple `string` (uses default `
|
|
86
|
+
* Each flag can be either a simple `string` (uses default `status-info` color) or `FlagProps` for full customization.
|
|
87
87
|
*/
|
|
88
88
|
flags?: (string | FlagProps)[];
|
|
89
89
|
/**
|
|
@@ -92,7 +92,13 @@ export interface LinkCardProps extends AnchorHTMLAttributes<HTMLAnchorElement |
|
|
|
92
92
|
graphicArea?: React.ReactNode;
|
|
93
93
|
/** Defines the URL to link to. */
|
|
94
94
|
href?: string;
|
|
95
|
-
/**
|
|
95
|
+
/**
|
|
96
|
+
* Media element (image, video, etc.) to be displayed within the card.
|
|
97
|
+
*/
|
|
98
|
+
mediaArea?: React.ReactNode;
|
|
99
|
+
/**
|
|
100
|
+
* @deprecated Use `mediaArea` instead. Will be removed with stable release.
|
|
101
|
+
*/
|
|
96
102
|
img?: React.ReactNode;
|
|
97
103
|
/** Link component to be used for the navigation. */
|
|
98
104
|
linkComponent?: React.ReactElement<React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLAnchorElement> & {
|
|
@@ -126,7 +132,7 @@ export interface LinkCardProps extends AnchorHTMLAttributes<HTMLAnchorElement |
|
|
|
126
132
|
* Design in Figma: [Link Card](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=43951-17695)
|
|
127
133
|
*/
|
|
128
134
|
export declare const DSLinkCard: {
|
|
129
|
-
({ heading, brandFlag, className, cardClassNames, decorativeLinkButtonProps, description, flagListAriaLabel, flags, href, img, linkComponent, metaData, orientation, padding, graphicArea, variant, ...rest }: LinkCardProps): JSX.Element;
|
|
135
|
+
({ heading, brandFlag, className, cardClassNames, decorativeLinkButtonProps, description, flagListAriaLabel, flags, href, mediaArea, img, linkComponent, metaData, orientation, padding, graphicArea, variant, ...rest }: LinkCardProps): JSX.Element;
|
|
130
136
|
displayName: string;
|
|
131
137
|
};
|
|
132
138
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { LinkCardProps } from './LinkCard';
|
|
2
|
-
type ValidationProps = Pick<LinkCardProps, 'href' | 'linkComponent' | 'flags' | 'flagListAriaLabel' | 'heading' | 'img' | 'brandFlag' | 'decorativeLinkButtonProps'>;
|
|
3
|
-
export declare const validateLinkCardProps: ({ href, linkComponent, flags, flagListAriaLabel, heading, img, brandFlag, decorativeLinkButtonProps, }: ValidationProps) => void;
|
|
2
|
+
type ValidationProps = Pick<LinkCardProps, 'href' | 'linkComponent' | 'flags' | 'flagListAriaLabel' | 'heading' | 'mediaArea' | 'img' | 'brandFlag' | 'decorativeLinkButtonProps'>;
|
|
3
|
+
export declare const validateLinkCardProps: ({ href, linkComponent, flags, flagListAriaLabel, heading, mediaArea, img, brandFlag, decorativeLinkButtonProps, }: ValidationProps) => void;
|
|
4
4
|
export {};
|
|
@@ -1,8 +1,13 @@
|
|
|
1
|
+
import { Theme } from '../../types/common-types';
|
|
1
2
|
import { NumberIndicatorVariant } from './NumberIndicator.utils';
|
|
2
3
|
import { JSX } from 'react';
|
|
3
4
|
export interface NumberIndicatorProps extends React.HTMLAttributes<HTMLSpanElement> {
|
|
4
5
|
/** Content within the NumberIndicator. */
|
|
5
6
|
label?: string;
|
|
7
|
+
/** Defines the theme.
|
|
8
|
+
* @default 'light'
|
|
9
|
+
*/
|
|
10
|
+
theme?: Theme;
|
|
6
11
|
/**
|
|
7
12
|
* Variant of the NumberIndicator.
|
|
8
13
|
*
|
|
@@ -10,4 +15,4 @@ export interface NumberIndicatorProps extends React.HTMLAttributes<HTMLSpanEleme
|
|
|
10
15
|
*/
|
|
11
16
|
variant?: NumberIndicatorVariant;
|
|
12
17
|
}
|
|
13
|
-
export declare const NumberIndicator: ({ label, className, variant, ...rest }: NumberIndicatorProps) => JSX.Element;
|
|
18
|
+
export declare const NumberIndicator: ({ label, className, theme, variant, ...rest }: NumberIndicatorProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { JSX, ReactElement } from 'react';
|
|
2
|
-
import { SelectedAriaAttributes } from '../../types';
|
|
2
|
+
import { SelectedAriaAttributes, Theme } from '../../types';
|
|
3
3
|
import { PaginationAlignment, PaginationAriaAttributes, PaginationLanguage, PaginationTranslations } from './Pagination.utils';
|
|
4
4
|
export interface PaginationLink {
|
|
5
5
|
/** The href for the link if no framework-specific link component wrapper is provided. */
|
|
@@ -26,7 +26,10 @@ export interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
26
26
|
* @default 'right'
|
|
27
27
|
*/
|
|
28
28
|
alignment?: PaginationAlignment;
|
|
29
|
-
/** Sets language
|
|
29
|
+
/** Sets language for screen reader messages and ICU plural rule resolution.
|
|
30
|
+
* Use `'de'` or `'en'` for preconfigured translations, or any
|
|
31
|
+
* [BCP 47 language tag](https://www.rfc-editor.org/info/bcp47) (e.g. `'fr'`, `'pl'`, `'en-GB'`)
|
|
32
|
+
* when providing a custom `translations` object.
|
|
30
33
|
* @default 'en'
|
|
31
34
|
*/
|
|
32
35
|
lang?: PaginationLanguage;
|
|
@@ -40,6 +43,10 @@ export interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
40
43
|
links?: PaginationLink[];
|
|
41
44
|
/** Translations for the DSPagination. Use our [customization page](/?path=/story/components-pagination-translations--documentation) for creating custom translations. */
|
|
42
45
|
translations?: PaginationTranslations;
|
|
46
|
+
/** Defines the theme.
|
|
47
|
+
* @default 'light'
|
|
48
|
+
*/
|
|
49
|
+
theme?: Theme;
|
|
43
50
|
/** Callback when a new page is selected. */
|
|
44
51
|
onPageChange?: (nextPageIndex: number) => void;
|
|
45
52
|
}
|
|
@@ -48,4 +55,4 @@ export interface PaginationProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
48
55
|
*
|
|
49
56
|
* Design in Figma: [Pagination](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=26075-11456)
|
|
50
57
|
*/
|
|
51
|
-
export declare const DSPagination: ({ aria, activePageIndex, itemsPerPage, totalItemsCount, className, alignment, lang, links, translations, onPageChange, ...rest }: PaginationProps) => JSX.Element;
|
|
58
|
+
export declare const DSPagination: ({ aria, activePageIndex, itemsPerPage, totalItemsCount, className, alignment, lang, links, theme, translations, onPageChange, ...rest }: PaginationProps) => JSX.Element;
|
|
@@ -1,7 +1,25 @@
|
|
|
1
|
+
import { DSLanguage } from '../../utils';
|
|
1
2
|
import { PaginationProps } from './Pagination';
|
|
2
3
|
export type PaginationAriaAttributes = 'aria-label' | 'aria-labelledby';
|
|
3
|
-
export type PaginationLanguage =
|
|
4
|
-
export type PaginationTranslations =
|
|
4
|
+
export type PaginationLanguage = DSLanguage;
|
|
5
|
+
export type PaginationTranslations = {
|
|
6
|
+
/** Label for the "previous page" navigation button. */
|
|
7
|
+
previousPage: string;
|
|
8
|
+
/** Label for the "next page" navigation button. */
|
|
9
|
+
nextPage: string;
|
|
10
|
+
/**
|
|
11
|
+
* Label for a specific page link.
|
|
12
|
+
*
|
|
13
|
+
* Placeholder: `{pageNumber}` = the page number.
|
|
14
|
+
*/
|
|
15
|
+
page: string;
|
|
16
|
+
/**
|
|
17
|
+
* Announced to indicate the current page position.
|
|
18
|
+
*
|
|
19
|
+
* Placeholders: `{currentPage}` = current page number, `{totalPages}` = total number of pages.
|
|
20
|
+
*/
|
|
21
|
+
pageOf: string;
|
|
22
|
+
};
|
|
5
23
|
export type PaginationAlignment = 'left' | 'center' | 'right';
|
|
6
24
|
export type PaginationVisiblePageCount = 5 | 7 | 9;
|
|
7
25
|
export type PaginationPageItem = {
|
|
@@ -46,14 +64,9 @@ export declare const addDividers: (items: PaginationPageItem[]) => PaginationRen
|
|
|
46
64
|
* @returns An array of pagination render items including dividers.
|
|
47
65
|
*/
|
|
48
66
|
export declare const getPageItemsWithDividers: (totalPages: number, activePageIndex: number, pageItemCount: number) => PaginationRenderItem[];
|
|
49
|
-
export declare const DS_PAGINATION_TRANSLATIONS_EN:
|
|
50
|
-
previousPage: string;
|
|
51
|
-
nextPage: string;
|
|
52
|
-
page: string;
|
|
53
|
-
pageOf: string;
|
|
54
|
-
};
|
|
67
|
+
export declare const DS_PAGINATION_TRANSLATIONS_EN: PaginationTranslations;
|
|
55
68
|
export declare const DS_PAGINATION_TRANSLATIONS_DE: PaginationTranslations;
|
|
56
|
-
export declare const DS_PAGINATION_TRANSLATIONS: Record<
|
|
69
|
+
export declare const DS_PAGINATION_TRANSLATIONS: Record<string, PaginationTranslations>;
|
|
57
70
|
type ValidatePaginationPropsParams = Pick<PaginationProps, 'activePageIndex' | 'aria' | 'itemsPerPage' | 'links' | 'totalItemsCount'>;
|
|
58
71
|
export declare const validatePaginationProps: ({ activePageIndex, aria, itemsPerPage, links, totalItemsCount, }: ValidatePaginationPropsParams) => void;
|
|
59
72
|
export {};
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { HTMLProps, JSX } from 'react';
|
|
2
2
|
import { OpenChangeReason, Placement } from '@floating-ui/react';
|
|
3
|
+
import { Theme } from '../../types/common-types';
|
|
3
4
|
export interface PopoverProps {
|
|
4
5
|
/** Content within the Popover. */
|
|
5
6
|
children?: React.ReactNode;
|
|
@@ -41,13 +42,20 @@ export interface PopoverProps {
|
|
|
41
42
|
/** A function that is called when the open state should change. */
|
|
42
43
|
onOpenChange?: (isOpen: boolean, event?: Event, reason?: OpenChangeReason) => void;
|
|
43
44
|
}
|
|
45
|
+
/** @internal Props including theme — not exported to consumers. */
|
|
46
|
+
export interface PopoverPropsWithTheme extends PopoverProps {
|
|
47
|
+
/** Defines the theme.
|
|
48
|
+
* @default 'light'
|
|
49
|
+
*/
|
|
50
|
+
theme?: Theme;
|
|
51
|
+
}
|
|
44
52
|
/**
|
|
45
53
|
* The Popover component is used to display additional information or actions related to an anchor element. It can be positioned relative to the anchor and supports various placements and offsets.
|
|
46
54
|
*
|
|
47
55
|
* Design in Figma: [Popover](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=35223-10505)
|
|
48
56
|
* */
|
|
49
57
|
export declare const DSPopover: {
|
|
50
|
-
(
|
|
58
|
+
(props: PopoverProps): JSX.Element;
|
|
51
59
|
/** attach static members */
|
|
52
60
|
Anchor: import('react').ForwardRefExoticComponent<Omit<HTMLProps<HTMLElement> & PopoverAnchorProps, "ref"> & import('react').RefAttributes<HTMLElement>>;
|
|
53
61
|
Content: import('react').ForwardRefExoticComponent<Omit<HTMLProps<HTMLDivElement> & PopoverContentProps, "ref"> & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { PopoverProps } from './Popover';
|
|
1
|
+
import { PopoverProps, PopoverPropsWithTheme } from './Popover';
|
|
2
2
|
/**
|
|
3
3
|
* Popover hook for managing popover state and behavior.
|
|
4
4
|
* @param PopoverProps Popover props
|
|
5
5
|
* @returns Popover state and actions
|
|
6
6
|
*/
|
|
7
|
-
export declare const usePopover: ({ initialOpen, placement, isOpen: controlledOpen, popoverOffset, showArrow, variant, defaultAnchorButtonProps, onOpenChange: setControlledOpen, }?:
|
|
7
|
+
export declare const usePopover: ({ initialOpen, placement, isOpen: controlledOpen, popoverOffset, showArrow, theme, variant, defaultAnchorButtonProps, onOpenChange: setControlledOpen, }?: PopoverPropsWithTheme) => {
|
|
8
8
|
placement: import('@floating-ui/utils').Placement;
|
|
9
9
|
strategy: import('@floating-ui/utils').Strategy;
|
|
10
10
|
middlewareData: import('@floating-ui/core').MiddlewareData;
|
|
@@ -56,6 +56,7 @@ export declare const usePopover: ({ initialOpen, placement, isOpen: controlledOp
|
|
|
56
56
|
[key: `data-${string}`]: string | undefined;
|
|
57
57
|
label?: string;
|
|
58
58
|
} | undefined;
|
|
59
|
+
theme: "light" | "dark";
|
|
59
60
|
variant: "default" | "grey";
|
|
60
61
|
};
|
|
61
62
|
/**
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
+
import { Theme } from '../../types';
|
|
2
3
|
export interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
3
4
|
/** Label text displayed next to the radio. */
|
|
4
5
|
label: string;
|
|
@@ -32,6 +33,10 @@ export interface RadioProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
32
33
|
* @default false
|
|
33
34
|
*/
|
|
34
35
|
invalid?: boolean;
|
|
36
|
+
/** Defines the theme.
|
|
37
|
+
* @default 'light'
|
|
38
|
+
*/
|
|
39
|
+
theme?: Theme;
|
|
35
40
|
/** Controls whether the hint is displayed when the radio button is not checked.
|
|
36
41
|
* @default false
|
|
37
42
|
*/
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { FieldsetHTMLAttributes } from 'react';
|
|
2
|
+
import { Theme } from '../../types/common-types';
|
|
2
3
|
import { FieldsetProps } from '../Fieldset/Fieldset';
|
|
3
4
|
import { RadioGroupOption } from './RadioGroup.utils';
|
|
4
5
|
export interface RadioGroupProps extends Omit<FieldsetHTMLAttributes<HTMLFieldSetElement>, 'onChange'> {
|
|
@@ -75,6 +76,13 @@ export interface RadioGroupProps extends Omit<FieldsetHTMLAttributes<HTMLFieldSe
|
|
|
75
76
|
/** Callback function called when the value of the radio group changes. */
|
|
76
77
|
onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;
|
|
77
78
|
}
|
|
79
|
+
/** @internal Props including theme — not exported to consumers. */
|
|
80
|
+
export interface RadioGroupPropsWithTheme extends RadioGroupProps {
|
|
81
|
+
/** Defines the theme.
|
|
82
|
+
* @default 'light'
|
|
83
|
+
*/
|
|
84
|
+
theme?: Theme;
|
|
85
|
+
}
|
|
78
86
|
/**
|
|
79
87
|
* The `DSRadioGroup` component offers a cohesive and accessible solution for grouping radio buttons,
|
|
80
88
|
* complete with customizable legends, direction options, and integrated validation feedback,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SelectHTMLAttributes } from 'react';
|
|
2
|
-
import { BreakpointCustomizable } from '../../types';
|
|
2
|
+
import { BreakpointCustomizable, Theme } from '../../types';
|
|
3
3
|
import { SelectOptionsOrOptGroups, SelectSize } from './Select.utils';
|
|
4
4
|
export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
5
5
|
/** Unique id for the select. */
|
|
@@ -56,6 +56,13 @@ export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement
|
|
|
56
56
|
/** Defines a system feedback message, shown when `invalid={true}`. */
|
|
57
57
|
systemFeedback?: string;
|
|
58
58
|
}
|
|
59
|
+
/** @internal Props including theme — not exported to consumers. */
|
|
60
|
+
export interface SelectPropsWithTheme extends SelectProps {
|
|
61
|
+
/** Defines the theme.
|
|
62
|
+
* @default 'light'
|
|
63
|
+
*/
|
|
64
|
+
theme?: Theme;
|
|
65
|
+
}
|
|
59
66
|
/**
|
|
60
67
|
* Use the DSSelect component to efficiently navigate through and select from a range of options,
|
|
61
68
|
* enhancing user interaction and decision-making in your application.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { InputHTMLAttributes } from 'react';
|
|
2
|
-
import { BreakpointCustomizable } from '../../types';
|
|
2
|
+
import { BreakpointCustomizable, Theme } from '../../types';
|
|
3
3
|
import { InputSize } from '../Input/Input.utils';
|
|
4
4
|
export interface SliderProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
5
5
|
/** Unique id for the Slider. */
|
|
@@ -65,6 +65,13 @@ export interface SliderProps extends InputHTMLAttributes<HTMLInputElement> {
|
|
|
65
65
|
label?: string;
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
+
/** @internal Props including theme — not exported to consumers. */
|
|
69
|
+
export interface SliderPropsWithTheme extends SliderProps {
|
|
70
|
+
/** Defines the theme.
|
|
71
|
+
* @default 'light'
|
|
72
|
+
*/
|
|
73
|
+
theme?: Theme;
|
|
74
|
+
}
|
|
68
75
|
/**
|
|
69
76
|
* The `<DSSlider />` component is a flexible range input that allows users to select a value within a defined range.
|
|
70
77
|
* It supports various customizations, including a label, hint, tooltip and an optional number input for precise value selection.
|
|
@@ -19,7 +19,7 @@ export interface StepperStepProps {
|
|
|
19
19
|
/** Total number of steps */
|
|
20
20
|
stepsCount: number;
|
|
21
21
|
/** Translation function */
|
|
22
|
-
t: (key: keyof StepperTranslations,
|
|
22
|
+
t: (key: keyof StepperTranslations, values?: Record<string, string | number>) => string;
|
|
23
23
|
/** Called when the button is clicked (index is already bound in parent) */
|
|
24
24
|
onStepClick: (event: React.MouseEvent<HTMLButtonElement, MouseEvent>) => void;
|
|
25
25
|
/** Collect the ref for scroll / focus management */
|
|
@@ -2,4 +2,4 @@ import { Step } from './Step';
|
|
|
2
2
|
import { StepperTranslations } from './Stepper.utils';
|
|
3
3
|
export declare const STEP_STATE: readonly ["current", "completed", undefined];
|
|
4
4
|
export type StepState = (typeof STEP_STATE)[number];
|
|
5
|
-
export declare const getStepAriaLabel: (t: (key: keyof StepperTranslations,
|
|
5
|
+
export declare const getStepAriaLabel: (t: (key: keyof StepperTranslations, values?: Record<string, string | number>) => string, index: number, total: number, step: Step, isCurrent: boolean) => string;
|
|
@@ -34,7 +34,10 @@ export interface StepperProps extends React.HTMLAttributes<HTMLElement> {
|
|
|
34
34
|
* @default 'left'
|
|
35
35
|
*/
|
|
36
36
|
alignment?: StepperAlignment;
|
|
37
|
-
/** Sets language
|
|
37
|
+
/** Sets language for screen reader messages and ICU plural rule resolution.
|
|
38
|
+
* Use `'de'` or `'en'` for preconfigured translations, or any
|
|
39
|
+
* [BCP 47 language tag](https://www.rfc-editor.org/info/bcp47) (e.g. `'fr'`, `'pl'`, `'en-GB'`)
|
|
40
|
+
* when providing a custom `translations` object.
|
|
38
41
|
* @default 'en'
|
|
39
42
|
*/
|
|
40
43
|
lang?: StepperLanguage;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { DSLanguage } from '../../utils';
|
|
1
2
|
import { Step } from './Step';
|
|
2
3
|
import { StepperProps } from './Stepper';
|
|
3
4
|
export type StepperAriaAttributes = 'aria-label' | 'aria-labelledby';
|
|
@@ -7,16 +8,20 @@ export declare const STEPPER_ORIENTATION: readonly ["horizontal", "vertical"];
|
|
|
7
8
|
export type StepperOrientation = (typeof STEPPER_ORIENTATION)[number];
|
|
8
9
|
export type ValidateStepperPropsParams = Pick<StepperProps, 'aria' | 'steps'>;
|
|
9
10
|
export declare const validateStepperProps: ({ aria, steps, }: ValidateStepperPropsParams) => void;
|
|
10
|
-
export type StepperLanguage =
|
|
11
|
-
export type StepperTranslations =
|
|
12
|
-
|
|
11
|
+
export type StepperLanguage = DSLanguage;
|
|
12
|
+
export type StepperTranslations = {
|
|
13
|
+
/** Label for the current step. */
|
|
13
14
|
current: string;
|
|
15
|
+
/** Word "completed" used in step state announcements. */
|
|
14
16
|
completed: string;
|
|
17
|
+
/** Word "Step" used in step announcements. */
|
|
15
18
|
step: string;
|
|
19
|
+
/** Word "of" used in step position announcements (e.g. "Step 1 of 3"). */
|
|
16
20
|
of: string;
|
|
17
21
|
};
|
|
22
|
+
export declare const DS_STEPPER_TRANSLATIONS_EN: StepperTranslations;
|
|
18
23
|
export declare const DS_STEPPER_TRANSLATIONS_DE: StepperTranslations;
|
|
19
|
-
export declare const DS_STEPPER_TRANSLATIONS: Record<
|
|
24
|
+
export declare const DS_STEPPER_TRANSLATIONS: Record<string, StepperTranslations>;
|
|
20
25
|
/**
|
|
21
26
|
* Get the current step in the stepper.
|
|
22
27
|
* If no step is marked as 'current', the last step with a defined state is returned.
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { HTMLAttributes, JSX } from 'react';
|
|
2
|
+
import { Theme } from '../../types/common-types';
|
|
2
3
|
import { SystemFeedbackVariant } from './SystemFeedback.utils';
|
|
3
4
|
export interface SystemFeedbackProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
5
|
/** Unique id for connecting the system feedback with aria attributes like aria-describedby. */
|
|
@@ -8,6 +9,13 @@ export interface SystemFeedbackProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
8
9
|
/** Defines the variant (e.g. "error", "success" or "warning"). */
|
|
9
10
|
variant: SystemFeedbackVariant;
|
|
10
11
|
}
|
|
12
|
+
/** @internal Props including theme — not exported to consumers. */
|
|
13
|
+
export interface SystemFeedbackPropsWithTheme extends SystemFeedbackProps {
|
|
14
|
+
/** Defines the theme.
|
|
15
|
+
* @default 'light'
|
|
16
|
+
*/
|
|
17
|
+
theme?: Theme;
|
|
18
|
+
}
|
|
11
19
|
/**
|
|
12
20
|
* Use the SystemFeedback component to provide clear and immediate feedback to the user
|
|
13
21
|
* about the status of a system process or validation state.
|
|
@@ -16,4 +24,4 @@ export interface SystemFeedbackProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
16
24
|
*
|
|
17
25
|
* <div className="ds-info">For more information on the different types of notifications and to determine which is best suited for your needs, please refer to our [Notification Guidelines](/docs/templates-notification-guidelines--documentation) and explore the decision trees provided.</div>
|
|
18
26
|
*/
|
|
19
|
-
export declare const DSSystemFeedback: (
|
|
27
|
+
export declare const DSSystemFeedback: (props: SystemFeedbackProps) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TextareaHTMLAttributes } from 'react';
|
|
2
|
-
import { BreakpointCustomizable } from '../../types';
|
|
2
|
+
import { BreakpointCustomizable, Theme } from '../../types';
|
|
3
3
|
import { TextareaSize } from './Textarea.utils';
|
|
4
4
|
export interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' | 'rows' | 'cols'> {
|
|
5
5
|
/** Unique id for the textarea. */
|
|
@@ -65,6 +65,13 @@ export interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
65
65
|
/** CSS className that can be set on the wrapping container of `<DSTextarea />`. */
|
|
66
66
|
wrapperClassName?: string;
|
|
67
67
|
}
|
|
68
|
+
/** @internal Props including theme — not exported to consumers. */
|
|
69
|
+
export interface TextareaPropsWithTheme extends TextareaProps {
|
|
70
|
+
/** Defines the theme.
|
|
71
|
+
* @default 'light'
|
|
72
|
+
*/
|
|
73
|
+
theme?: Theme;
|
|
74
|
+
}
|
|
68
75
|
/**
|
|
69
76
|
* The `<DSTextarea />` component allows users to enter and edit multi line text.
|
|
70
77
|
* It comes in two sizes (medium & small) and supports various customizations
|
|
@@ -3,13 +3,13 @@ import "react/jsx-runtime";
|
|
|
3
3
|
import "./chunks/index.cKLI89Eg.js";
|
|
4
4
|
import "./chunks/index.DQOqod3i.js";
|
|
5
5
|
import "react";
|
|
6
|
-
import { c as f } from "./chunks/CustomReactSelect.
|
|
7
|
-
import "./chunks/useBreakpoint.1txsny17.js";
|
|
6
|
+
import { c as f } from "./chunks/CustomReactSelect.DTAavYaz.js";
|
|
8
7
|
import "./asterisk.Dwtdwpkq.js";
|
|
9
|
-
import "./chunks/Icon.
|
|
10
|
-
import "./chunks/Popover.
|
|
11
|
-
import "./chunks/SystemFeedback.
|
|
12
|
-
import "./optioncheckbox.
|
|
8
|
+
import "./chunks/Icon.DYtaQgbw.js";
|
|
9
|
+
import "./chunks/Popover.CxZZ_y1Z.js";
|
|
10
|
+
import "./chunks/SystemFeedback.DhWcYjnu.js";
|
|
11
|
+
import "./optioncheckbox.tlMEoyT0.js";
|
|
12
|
+
import "./chunks/useBreakpoint.1txsny17.js";
|
|
13
13
|
export {
|
|
14
14
|
f as CustomReactSelect
|
|
15
15
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "./chunks/index.DQOqod3i.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./chunks/Button.
|
|
6
|
-
import { D as e } from "./chunks/Dialog.
|
|
5
|
+
import "./chunks/Button.CCol--xy.js";
|
|
6
|
+
import { D as e } from "./chunks/Dialog.guuxflWL.js";
|
|
7
7
|
export {
|
|
8
8
|
e as DSDialog
|
|
9
9
|
};
|
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
import "react/jsx-runtime";
|
|
3
3
|
import "./chunks/index.DQOqod3i.js";
|
|
4
4
|
import "react";
|
|
5
|
-
import "./chunks/Button.
|
|
6
|
-
import {
|
|
5
|
+
import "./chunks/Button.CCol--xy.js";
|
|
6
|
+
import { a as e } from "./chunks/Drawer.CjUZu6GW.js";
|
|
7
7
|
export {
|
|
8
8
|
e as DSDrawer
|
|
9
9
|
};
|
|
@@ -5,9 +5,9 @@ import "react";
|
|
|
5
5
|
import "./chunks/useBreakpoint.1txsny17.js";
|
|
6
6
|
import "./asterisk.Dwtdwpkq.js";
|
|
7
7
|
import "./heading.BHSklXho.js";
|
|
8
|
-
import "./chunks/Popover.
|
|
9
|
-
import "./chunks/SystemFeedback.
|
|
10
|
-
import { D as a } from "./chunks/Fieldset.
|
|
8
|
+
import "./chunks/Popover.CxZZ_y1Z.js";
|
|
9
|
+
import "./chunks/SystemFeedback.DhWcYjnu.js";
|
|
10
|
+
import { D as a } from "./chunks/Fieldset.BBMuLKps.js";
|
|
11
11
|
export {
|
|
12
12
|
a as DSFieldset
|
|
13
13
|
};
|