@stihl-design-system/components 1.0.0-RC.14 → 1.0.0-RC.16
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.Dm5MWHQ6.js +12 -0
- package/arialiveregions.BwwB-OfU.js +19 -0
- package/assets/Accordion.B5bGf8mR.css +1 -0
- package/assets/Breadcrumb.BaYrwrYl.css +1 -0
- package/assets/NavigationTabList.B6x56sAV.css +1 -0
- package/assets/linkstandalone.LMdnj-G0.css +1 -0
- package/asterisk.DUzshaw5.js +8 -0
- package/breadcrumb.BDpXhffn.js +11 -0
- package/breadcrumb.d.ts +2 -0
- package/button.Ywd82k7O.js +121 -0
- package/buttonround.CI5RGkR9.js +105 -0
- package/checkbox.C1JJOQeV.js +103 -0
- package/checkboxgroup.o5t3fWsf.js +9 -0
- package/chip.DcJLVxEm.js +11 -0
- package/chipgroup.CCq2AMSa.js +187 -0
- package/chunks/Accordion.BmI7nlus.js +166 -0
- package/chunks/AriaLiveRegions.utils.zSFFD3SF.js +27 -0
- package/chunks/Breadcrumb.BycdSn-b.js +106 -0
- package/chunks/CheckboxGroup.C-Adg1hA.js +74 -0
- package/chunks/Chip.BY8kLPnz.js +120 -0
- package/chunks/CustomReactSelect.C2yN7CYh.js +3622 -0
- package/chunks/Dialog.CjzCKRr2.js +140 -0
- package/chunks/Drawer.m2JeVNBp.js +148 -0
- package/chunks/Fieldset.DfWsQgjD.js +105 -0
- package/chunks/Icon.DhKyUWtM.js +231 -0
- package/chunks/Input.utils.Um8Pqp4U.js +52 -0
- package/chunks/InputPassword.CmvZcn6n.js +141 -0
- package/chunks/InputSearch.CwXaGLJp.js +179 -0
- package/chunks/InputStepper.NCl90c4h.js +275 -0
- package/chunks/NavigationTabList.BOrhiSiM.js +63 -0
- package/chunks/NavigationTabs.DW_6fZxc.js +63 -0
- package/chunks/Notification.Bp28ubaX.js +99 -0
- package/chunks/RadioGroup.Dh-7jSOg.js +105 -0
- package/chunks/Select.CMwsbHvQ.js +190 -0
- package/chunks/TabPane.utils.DG16Y2uD.js +10 -0
- package/chunks/Tabs.D3yDE5nU.js +77 -0
- package/chunks/Textarea.CMRn2Aof.js +184 -0
- package/chunks/Toast.Boi6TEHu.js +76 -0
- package/chunks/index.CEyLAtio.js +48 -0
- package/chunks/index.CgTHIF3K.js +293 -0
- package/chunks/{translate.isa3FHb8.js → translate.nuU7uChI.js} +1 -4
- package/chunks/useBreakpoint.CMOR9ZOB.js +44 -0
- package/combobox.BhzaJrs7.js +55 -0
- package/components/Accordion/Accordion.d.ts +5 -1
- package/components/Accordion/Accordion.utils.d.ts +2 -2
- package/components/AriaLiveRegions/AriaLiveRegions.d.ts +1 -0
- package/components/Asterisk/Asterisk.d.ts +1 -0
- package/components/Breadcrumb/Breadcrumb.d.ts +45 -0
- package/components/Breadcrumb/Breadcrumb.utils.d.ts +4 -0
- package/components/Button/Button.d.ts +6 -4
- package/components/ButtonRound/ButtonRound.d.ts +4 -1
- package/components/Checkbox/Checkbox.d.ts +2 -0
- package/components/CheckboxGroup/CheckboxGroup.d.ts +3 -1
- package/components/ChipGroup/ChipGroup.d.ts +2 -0
- package/components/Combobox/Combobox.d.ts +3 -0
- package/components/Combobox/CustomReactSelect/CustomReactSelect.d.ts +3 -2
- package/components/Combobox/CustomReactSelect/OptionCheckbox.d.ts +1 -1
- package/components/Dialog/Dialog.d.ts +15 -4
- package/components/Drawer/Drawer.d.ts +15 -5
- package/components/Fieldset/Fieldset.d.ts +3 -1
- package/components/Flag/Flag.d.ts +3 -0
- package/components/FloatingActionButton/FloatingActionButton.d.ts +4 -1
- package/components/Heading/Heading.d.ts +3 -1
- package/components/Icon/Icon.d.ts +3 -1
- package/components/Input/Input.d.ts +23 -10
- package/components/Input/Input.utils.d.ts +2 -2
- package/components/InputPassword/InputPassword.d.ts +18 -9
- package/components/InputSearch/InputSearch.d.ts +17 -7
- package/components/InputStepper/InputStepper.d.ts +24 -8
- package/components/Link/Link.d.ts +6 -3
- package/components/LinkStandalone/LinkStandalone.d.ts +4 -1
- package/components/Logo/Logo.d.ts +3 -1
- package/components/NavigationTabs/NavigationTabs.d.ts +43 -0
- package/components/NavigationTabs/NavigationTabs.test.d.ts +1 -0
- package/components/NavigationTabs/NavigationTabs.utils.d.ts +6 -0
- package/components/Notification/Notification.d.ts +14 -5
- package/components/NumberIndicator/NumberIndicator.d.ts +1 -0
- package/components/RadioGroup/RadioGroup.d.ts +2 -0
- package/components/Select/Select.d.ts +2 -1
- package/components/SkipToContent/SkipToContent.d.ts +3 -0
- package/components/Spinner/Spinner.d.ts +7 -1
- package/components/Switch/Switch.d.ts +6 -4
- package/components/SystemFeedback/SystemFeedback.d.ts +1 -1
- package/components/Tabs/TabList/NavigationTabList/NavigationTabList.d.ts +22 -0
- package/components/Tabs/TabList/TabList.d.ts +38 -0
- package/components/Tabs/TabList/TabList.utils.d.ts +6 -0
- package/components/Tabs/TabList/TabList.utils.test.d.ts +1 -0
- package/components/Tabs/TabPane/TabPane.d.ts +1 -1
- package/components/Tabs/Tabs.d.ts +9 -2
- package/components/Tabs/Tabs.utils.d.ts +1 -6
- package/components/Text/Text.d.ts +6 -4
- package/components/Textarea/Textarea.d.ts +3 -1
- package/components/Title/Title.d.ts +3 -1
- package/components/Toast/Toast.d.ts +2 -0
- package/customreactselect.CW5-QQSM.js +14 -0
- package/dialog.DuAgAwfs.js +10 -0
- package/drawer.D3E46fH1.js +10 -0
- package/fieldset.4UygHVV3.js +12 -0
- package/flag.BJk5fHMs.js +50 -0
- package/floatingactionbutton.DFZ2YwaJ.js +74 -0
- package/heading.6LOBHJG6.js +55 -0
- package/icon.dww0DXWN.js +9 -0
- package/index.d.ts +4 -0
- package/index.es.js +139 -179
- package/input.DXzeHdRE.js +211 -0
- package/inputpassword.DXEvvgZt.js +13 -0
- package/inputsearch.DzwXj82k.js +14 -0
- package/inputstepper.CYwcFoQ1.js +16 -0
- package/link.CgNqBaNn.js +106 -0
- package/linkstandalone.Dn-uDj5T.js +69 -0
- package/logo.BgnYvK7t.js +51 -0
- package/navigationtablist.XNy54fXK.js +9 -0
- package/navigationtablist.d.ts +2 -0
- package/navigationtabs.DheMj9hs.js +9 -0
- package/navigationtabs.d.ts +2 -0
- package/notification.BnyOWmCm.js +10 -0
- package/numberindicator.Do92cr0z.js +35 -0
- package/optioncheckbox.DcckSTrV.js +52 -0
- package/package.json +53 -50
- package/partials/index.js +248 -2131
- package/partials/lib/partials.d.ts +77 -4
- package/radio.TDaeblOB.js +130 -0
- package/radiogroup.DyL_cJzK.js +11 -0
- package/select.BoeUz4Fb.js +13 -0
- package/skiptocontent.D7xhN0KM.js +35 -0
- package/spinner.gilnr6vN.js +52 -0
- package/switch.Ca9tRATr.js +68 -0
- package/systemfeedback.7I6fnqjX.js +34 -0
- package/tablist.TWjlHs5Y.js +251 -0
- package/tablist.d.ts +2 -0
- package/tabpane.CB-eudyw.js +37 -0
- package/tabs.Cr2CMXbY.js +11 -0
- package/text.C6gOJ2nV.js +59 -0
- package/textarea.CqDSxfcU.js +12 -0
- package/title.CSCXJnBN.js +43 -0
- package/toast.BN0v57nF.js +11 -0
- package/toastmanager.B9CR9plV.js +115 -0
- package/utils/render-documentation.d.ts +1 -0
- package/accordion.C6_sqiW2.js +0 -10
- package/arialiveregions.2dxodwBP.js +0 -27
- package/assets/Accordion.i4k5SMQM.css +0 -1
- package/assets/Tabs.DUqlqP6R.css +0 -1
- package/assets/linkstandalone.DIazcjIv.css +0 -1
- package/asterisk.DpzETKdT.js +0 -8
- package/button.BfcWQZhx.js +0 -135
- package/buttonround.E56F_805.js +0 -118
- package/checkbox.Dt0OWryN.js +0 -111
- package/checkboxgroup.je32bRPr.js +0 -8
- package/chip.CpnDX4Ro.js +0 -10
- package/chipgroup.Cy76KMWu.js +0 -175
- package/chunks/Accordion.Bza3TO4Y.js +0 -125
- package/chunks/AriaLiveRegions.utils.Bq6Mp2bE.js +0 -40
- package/chunks/CheckboxGroup.C_2ZwEQJ.js +0 -95
- package/chunks/Chip.BvlKC503.js +0 -148
- package/chunks/CustomReactSelect.CB41lklE.js +0 -3598
- package/chunks/Dialog.ClBjJWOh.js +0 -148
- package/chunks/Drawer.ReDW3ohH.js +0 -154
- package/chunks/Fieldset.Ct_JFRs9.js +0 -99
- package/chunks/Icon.BCmt_XBG.js +0 -223
- package/chunks/Input.utils.DYbmWlx6.js +0 -111
- package/chunks/InputPassword.Cvk5J8w1.js +0 -143
- package/chunks/InputSearch.BIIW-ERk.js +0 -192
- package/chunks/InputStepper.DGzR3KY6.js +0 -296
- package/chunks/Notification.uAEjPywP.js +0 -92
- package/chunks/RadioGroup.D10-pe9H.js +0 -146
- package/chunks/Select.DsLnW29U.js +0 -194
- package/chunks/TabPane.CYuUi0oL.js +0 -51
- package/chunks/Tabs.D_JAsvoh.js +0 -270
- package/chunks/Textarea.Dh9R9YdZ.js +0 -199
- package/chunks/Toast.j7LPnQ36.js +0 -89
- package/chunks/index.CvOaL64Y.js +0 -45
- package/chunks/jsx-runtime.C115EyI4.js +0 -635
- package/chunks/useBreakpoint.B8XxjSVJ.js +0 -48
- package/combobox.D6zXg976.js +0 -47
- package/customreactselect.BcjDvZG6.js +0 -13
- package/dialog.BkVOgeWY.js +0 -9
- package/drawer.DM_NKGTQ.js +0 -9
- package/fieldset.CSNoVbL1.js +0 -11
- package/flag.BKpsdB_-.js +0 -43
- package/floatingactionbutton.D5L0B7zI.js +0 -87
- package/heading.IPIYc5vW.js +0 -50
- package/icon.Ck0BpI34.js +0 -8
- package/input.BbnmbMCI.js +0 -241
- package/inputpassword.KnZRwWCQ.js +0 -12
- package/inputsearch.DgYJPZ2v.js +0 -13
- package/inputstepper.T_of1Gz0.js +0 -15
- package/link.L8O_InKe.js +0 -116
- package/linkstandalone.BBoEniZ_.js +0 -79
- package/logo.Hul8qCFo.js +0 -65
- package/notification.Bt9TbAAt.js +0 -9
- package/numberindicator.UU7FSouT.js +0 -26
- package/optioncheckbox.BRUTnQnJ.js +0 -43
- package/radio.B-2uuWHq.js +0 -114
- package/radiogroup.DM_lF4hI.js +0 -10
- package/select.COLuwr89.js +0 -12
- package/skiptocontent.DxogCFvU.js +0 -45
- package/spinner.Bq97Og-6.js +0 -58
- package/switch.DI8YYa5G.js +0 -65
- package/systemfeedback.C3Pfxxpp.js +0 -25
- package/tabpane.BnQBzVXw.js +0 -8
- package/tabs.BaELlVri.js +0 -15
- package/text.DThvTwm8.js +0 -57
- package/textarea.Wcl_pVBb.js +0 -13
- package/title.DqzdB2Gq.js +0 -36
- package/toast.DQlMWU6I.js +0 -10
- package/toastmanager.DxHFtr5C.js +0 -119
- /package/assets/{CheckboxGroup.BH1Br1dg.css → CheckboxGroup.Dd-Huo7x.css} +0 -0
- /package/assets/{Chip.DSdLuzoi.css → Chip.dxIYIjj7.css} +0 -0
- /package/assets/{CustomReactSelect.vHt8qNKC.css → CustomReactSelect.DYDaP5r5.css} +0 -0
- /package/assets/{Dialog.BgzebVk4.css → Dialog.DXmPdExC.css} +0 -0
- /package/assets/{Drawer.Bauwxrk7.css → Drawer.BcM0epJS.css} +0 -0
- /package/assets/{Fieldset.DOdTbb7C.css → Fieldset.Og4EsnPI.css} +0 -0
- /package/assets/{Icon.DxRSBRSL.css → Icon.ZNrKuqgu.css} +0 -0
- /package/assets/{InputPassword.CG7Ugu73.css → InputPassword.DtKteerr.css} +0 -0
- /package/assets/{InputSearch.CseChMc-.css → InputSearch.Mql3oFlQ.css} +0 -0
- /package/assets/{InputStepper.C0eAYr7P.css → InputStepper.BXz1MMBg.css} +0 -0
- /package/assets/{Notification.DbRapUJo.css → Notification.DZIF-Wo6.css} +0 -0
- /package/assets/{RadioGroup.BfMo157q.css → RadioGroup.CM2mYOzc.css} +0 -0
- /package/assets/{Select.D4EXgIbz.css → Select.KvAgxJZk.css} +0 -0
- /package/assets/{Textarea.KJGPTYMz.css → Textarea.BIRQlv6m.css} +0 -0
- /package/assets/{Toast.CuafTAf7.css → Toast.CuM-yS7S.css} +0 -0
- /package/assets/{arialiveregions.DhsijBaL.css → arialiveregions.e0Q16ZWi.css} +0 -0
- /package/assets/{asterisk.BfVAUBO7.css → asterisk.B41DaZDe.css} +0 -0
- /package/assets/{button.DF4RBeC2.css → button.CpPeQPsM.css} +0 -0
- /package/assets/{buttonround.19uK_-oO.css → buttonround.BFauSRAb.css} +0 -0
- /package/assets/{checkbox.ByOoFouu.css → checkbox.BKHQN_tu.css} +0 -0
- /package/assets/{chipgroup.BzfZLbkv.css → chipgroup.CUIkyYBW.css} +0 -0
- /package/assets/{flag.B-RLcMcf.css → flag.C7i3MAAP.css} +0 -0
- /package/assets/{floatingactionbutton.E9HekT6S.css → floatingactionbutton.l0nvFiJU.css} +0 -0
- /package/assets/{heading.u4f8Mz94.css → heading.B-rdLVZD.css} +0 -0
- /package/assets/{input.BAkFKPW3.css → input.B5spSeMe.css} +0 -0
- /package/assets/{link.DDJj0D1U.css → link.Be5OF_8E.css} +0 -0
- /package/assets/{logo.CnW8alZU.css → logo.bVXt9m9R.css} +0 -0
- /package/assets/{numberindicator.BJ9vFpnd.css → numberindicator.BJnvB-K3.css} +0 -0
- /package/assets/{optioncheckbox.BZaWtRD7.css → optioncheckbox.DAffEKvY.css} +0 -0
- /package/assets/{radio.X-RTl_jo.css → radio.CGf7v0D_.css} +0 -0
- /package/assets/{skiptocontent.PTL3256m.css → skiptocontent.CTSDC_kG.css} +0 -0
- /package/assets/{spinner.2iWJWKyA.css → spinner.BJ5xwnYH.css} +0 -0
- /package/assets/{switch.gw6aa3kx.css → switch.Bc9KIyw9.css} +0 -0
- /package/assets/{systemfeedback.BPz5YlPC.css → systemfeedback.DoqgHZPH.css} +0 -0
- /package/assets/{TabPane.zywjfwo8.css → tabpane.D1LTb432.css} +0 -0
- /package/assets/{text.DjTG_qNb.css → text.BlRcxO8n.css} +0 -0
- /package/assets/{title.rosWPEG3.css → title.B0tsgJ-n.css} +0 -0
- /package/components/{Tabs/Tabs.utils.test.d.ts → Breadcrumb/Breadcrumb.test.d.ts} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { InputHTMLAttributes } from 'react';
|
|
1
|
+
import { InputHTMLAttributes, JSX } from 'react';
|
|
2
2
|
import { BreakpointCustomizable } from '../../types';
|
|
3
3
|
import { InputSize } from '../Input/Input.utils';
|
|
4
4
|
export interface InputStepperProps extends Omit<InputHTMLAttributes<HTMLInputElement>, 'defaultValue' | 'size'> {
|
|
@@ -14,10 +14,17 @@ export interface InputStepperProps extends Omit<InputHTMLAttributes<HTMLInputEle
|
|
|
14
14
|
* @default false
|
|
15
15
|
*/
|
|
16
16
|
disabled?: boolean;
|
|
17
|
-
/**
|
|
18
|
-
*
|
|
17
|
+
/** Decrease amount button props:
|
|
18
|
+
*
|
|
19
|
+
* `data-*`: Custom data attributes.
|
|
20
|
+
*
|
|
21
|
+
* `label`: Accessibility label for the decrease button.
|
|
22
|
+
* (default) 'Decrease'
|
|
19
23
|
*/
|
|
20
|
-
|
|
24
|
+
decreaseAmountButtonProps?: {
|
|
25
|
+
[key: `data-${string}`]: string | undefined;
|
|
26
|
+
label?: string;
|
|
27
|
+
};
|
|
21
28
|
/** Hides the input label, can be responsive.
|
|
22
29
|
* `boolean | { base: boolean; s?: boolean; m?: boolean; l?: boolean; xl?: boolean; }`
|
|
23
30
|
* @default false
|
|
@@ -25,10 +32,17 @@ export interface InputStepperProps extends Omit<InputHTMLAttributes<HTMLInputEle
|
|
|
25
32
|
hideLabel?: BreakpointCustomizable<boolean>;
|
|
26
33
|
/** Short descriptive text displayed beneath the label. */
|
|
27
34
|
hint?: string;
|
|
28
|
-
/**
|
|
29
|
-
*
|
|
35
|
+
/** Increase amount button props:
|
|
36
|
+
*
|
|
37
|
+
* `data-*`: Custom data attributes.
|
|
38
|
+
*
|
|
39
|
+
* `label`: Accessibility label for the increase button.
|
|
40
|
+
* (default) 'Increase'
|
|
30
41
|
*/
|
|
31
|
-
|
|
42
|
+
increaseAmountButtonProps?: {
|
|
43
|
+
[key: `data-${string}`]: string | undefined;
|
|
44
|
+
label?: string;
|
|
45
|
+
};
|
|
32
46
|
/** Marks the input as invalid, typically used for form validation.
|
|
33
47
|
* @default false
|
|
34
48
|
*/
|
|
@@ -71,5 +85,7 @@ export interface InputStepperProps extends Omit<InputHTMLAttributes<HTMLInputEle
|
|
|
71
85
|
* It comes in two sizes (medium & small) and supports various customizations including a prefix and suffix.
|
|
72
86
|
*
|
|
73
87
|
* Next to the input field, there are two buttons to increase or decrease the input value.
|
|
88
|
+
*
|
|
89
|
+
* Design in Figma: [Input Stepper](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=2141-6769&t=UBsmFURFENnuYSW1-11)
|
|
74
90
|
*/
|
|
75
|
-
export declare const DSInputStepper: ({ id, label, announcementText, className, disabled,
|
|
91
|
+
export declare const DSInputStepper: ({ id, label, announcementText, className, disabled, decreaseAmountButtonProps, hint, hideLabel, invalid, increaseAmountButtonProps, prefix, max, min, readonly, required, size, step, suffix, systemFeedback, value, onChange, ...rest }: InputStepperProps) => JSX.Element;
|
|
@@ -1,6 +1,7 @@
|
|
|
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
|
+
import { JSX } from 'react';
|
|
4
5
|
export interface CommonLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
5
6
|
/** ARIA attributes to enhance accessibility.
|
|
6
7
|
* `{'aria-label'? string;`
|
|
@@ -8,8 +9,8 @@ export interface CommonLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorEl
|
|
|
8
9
|
* `'aria-labelledby'?: string;}`
|
|
9
10
|
*/
|
|
10
11
|
aria?: SelectedAriaAttributes<LinkAriaAttribute>;
|
|
11
|
-
/**
|
|
12
|
-
|
|
12
|
+
/** Custom data attributes. */
|
|
13
|
+
[key: `data-${string}`]: string | undefined;
|
|
13
14
|
/** Specifies that the target will be downloaded and opens native browser download dialog. */
|
|
14
15
|
download?: string;
|
|
15
16
|
/** Defines the URL to link to. */
|
|
@@ -58,5 +59,7 @@ export interface LinkProps extends CommonLinkProps {
|
|
|
58
59
|
}
|
|
59
60
|
/**
|
|
60
61
|
* Use the Link component when you want the users to navigate to another internal or external page.
|
|
62
|
+
*
|
|
63
|
+
* Design in Figma: [Link](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=162-126)
|
|
61
64
|
* */
|
|
62
|
-
export declare const DSLink: ({ children, aria, className,
|
|
65
|
+
export declare const DSLink: ({ children, aria, className, download, hideLabel, href, iconName, iconPosition, iconSource, isFlush, referrerPolicy, rel, size, target, theme, variant, ...rest }: LinkProps) => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { CommonLinkProps } from '../Link/Link';
|
|
2
2
|
import { LinkStandaloneVariant } from './LinkStandalone.utils';
|
|
3
|
+
import { JSX } from 'react';
|
|
3
4
|
export interface LinkStandaloneProps extends CommonLinkProps {
|
|
4
5
|
/** Content within the link. */
|
|
5
6
|
children: React.ReactNode;
|
|
@@ -12,5 +13,7 @@ export interface LinkStandaloneProps extends CommonLinkProps {
|
|
|
12
13
|
}
|
|
13
14
|
/**
|
|
14
15
|
* Use LinkStandalone when you want the users to navigate to another internal or external page.
|
|
16
|
+
*
|
|
17
|
+
* Design in Figma: [Link Standalone](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=168-7210&t=UBsmFURFENnuYSW1-11)
|
|
15
18
|
* */
|
|
16
|
-
export declare const DSLinkStandalone: ({ children, aria, active, className,
|
|
19
|
+
export declare const DSLinkStandalone: ({ children, aria, active, className, download, href, iconName, iconPosition, iconSource, referrerPolicy, rel, target, theme, variant, ...rest }: LinkStandaloneProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, JSX } from 'react';
|
|
2
2
|
import { SelectedAriaAttributes, Theme } from '../../types';
|
|
3
3
|
import { LogoAriaAttribute, LogoTarget, LogoVariant } from './Logo.utils';
|
|
4
4
|
export interface LogoProps extends HTMLAttributes<SVGElement | HTMLAnchorElement> {
|
|
@@ -25,5 +25,7 @@ export interface LogoProps extends HTMLAttributes<SVGElement | HTMLAnchorElement
|
|
|
25
25
|
* This component is used to display the logo.
|
|
26
26
|
*
|
|
27
27
|
* It can be also used as a link by providing a `href` and an `aria-label`.
|
|
28
|
+
*
|
|
29
|
+
* Design in Figma: [Logo](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=9050-2)
|
|
28
30
|
*/
|
|
29
31
|
export declare const DSLogo: ({ aria, className, href, target, theme, variant, ...rest }: LogoProps) => JSX.Element;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { HTMLAttributes, JSX } from 'react';
|
|
2
|
+
import { IconName, SelectedAriaAttributes } from '../../types';
|
|
3
|
+
import { TabListAriaAttributes } from '../Tabs/TabList/TabList.utils';
|
|
4
|
+
import { NavigationTabsAlignment } from './NavigationTabs.utils';
|
|
5
|
+
export interface NavigationTab {
|
|
6
|
+
/** Unique id for the NavigationTab. */
|
|
7
|
+
id: string;
|
|
8
|
+
/** Link component to be used for the navigation. */
|
|
9
|
+
linkComponent: React.ReactElement<React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLAnchorElement> & {
|
|
10
|
+
onClick?: () => void;
|
|
11
|
+
to?: string;
|
|
12
|
+
}>;
|
|
13
|
+
/** Name of the icon to display */
|
|
14
|
+
iconName?: IconName;
|
|
15
|
+
/** Number Indicator value displayed next to the label. */
|
|
16
|
+
numberIndicatorValue?: string;
|
|
17
|
+
}
|
|
18
|
+
export interface NavigationTabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
19
|
+
/** ARIA attributes to ensure accessibility
|
|
20
|
+
* `{'aria-label'? string;`
|
|
21
|
+
* `'aria-labelledby'?: string;}`
|
|
22
|
+
* */
|
|
23
|
+
aria: SelectedAriaAttributes<TabListAriaAttributes>;
|
|
24
|
+
/** NavigationTab array structure with optional and required parameters
|
|
25
|
+
* `{ id: string;`
|
|
26
|
+
* `linkComponent: React.ReactElement<React.AnchorHTMLAttributes<HTMLAnchorElement> & React.RefAttributes<HTMLAnchorElement> & { onClick?: () => void; to?: string; }>;`
|
|
27
|
+
* `iconName?: IconName;`
|
|
28
|
+
* `numberIndicatorValue?: string; }[]`
|
|
29
|
+
*/
|
|
30
|
+
tabs: NavigationTab[];
|
|
31
|
+
/** Alignment of the NavigationTabs.
|
|
32
|
+
* @default 'left'
|
|
33
|
+
*/
|
|
34
|
+
alignment?: NavigationTabsAlignment;
|
|
35
|
+
/** Index of the tab that should be active. */
|
|
36
|
+
activeTabIndex?: number;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
* The Navigation Tabs component is a link list and often used as secondary navigation. The components main function is to navigate to another page url.
|
|
40
|
+
*
|
|
41
|
+
* Design in Figma: [Navigation Tabs](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=24564-335&t=UBsmFURFENnuYSW1-11)
|
|
42
|
+
*/
|
|
43
|
+
export declare const DSNavigationTabs: ({ aria, tabs, alignment, className, activeTabIndex, ...rest }: NavigationTabsProps) => JSX.Element;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { NavigationTabsProps } from './NavigationTabs';
|
|
2
|
+
export declare const NAVIGATION_TABS_ALIGNMENT: readonly ["left", "center"];
|
|
3
|
+
export type NavigationTabsAlignment = (typeof NAVIGATION_TABS_ALIGNMENT)[number];
|
|
4
|
+
export declare const NAVIGATION_TABS_DIRECTION: readonly ["prev", "next"];
|
|
5
|
+
export type NavigationTabsDirection = (typeof NAVIGATION_TABS_DIRECTION)[number];
|
|
6
|
+
export declare const validateNavigationTabsProps: ({ aria, tabs, activeTabIndex, }: NavigationTabsProps) => void;
|
|
@@ -1,12 +1,19 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, JSX } from 'react';
|
|
2
2
|
import { NotificationVariant } from './Notification.utils';
|
|
3
3
|
export interface NotificationProps extends HTMLAttributes<HTMLDivElement> {
|
|
4
4
|
/** Content within the Notification. */
|
|
5
5
|
children: React.ReactNode;
|
|
6
|
-
/**
|
|
7
|
-
*
|
|
6
|
+
/** Close button props:
|
|
7
|
+
*
|
|
8
|
+
* `data-*`: Custom data attributes.
|
|
9
|
+
*
|
|
10
|
+
* `label`: Accessibility label for the close button.
|
|
11
|
+
* (default) 'Close notification'
|
|
8
12
|
*/
|
|
9
|
-
|
|
13
|
+
closeButtonProps?: {
|
|
14
|
+
[key: `data-${string}`]: string | undefined;
|
|
15
|
+
label?: string;
|
|
16
|
+
};
|
|
10
17
|
/** Content within the Notification's action bar. For example a CTA button. */
|
|
11
18
|
customActionArea?: React.ReactNode;
|
|
12
19
|
/** Hides the icon.
|
|
@@ -24,8 +31,10 @@ export interface NotificationProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
24
31
|
* An inline notification component that can be used to provide system feedback messages
|
|
25
32
|
* or highlight important content.
|
|
26
33
|
*
|
|
34
|
+
* Design in Figma: [Notification](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=7251-8)
|
|
35
|
+
*
|
|
27
36
|
* The background color and icon vary based on the value of the `variant` prop.
|
|
28
37
|
*
|
|
29
38
|
* <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>
|
|
30
39
|
*/
|
|
31
|
-
export declare const DSNotification: ({ children, variant, className,
|
|
40
|
+
export declare const DSNotification: ({ children, variant, className, closeButtonProps, customActionArea, hideIcon, onClose, ...rest }: NotificationProps) => JSX.Element;
|
|
@@ -61,5 +61,7 @@ export interface RadioGroupProps extends Omit<FieldsetHTMLAttributes<HTMLFieldSe
|
|
|
61
61
|
* The `DSRadioGroup` component offers a cohesive and accessible solution for grouping radio buttons,
|
|
62
62
|
* complete with customizable legends, direction options, and integrated validation feedback,
|
|
63
63
|
* enhancing the user experience in form designs.
|
|
64
|
+
*
|
|
65
|
+
* Design in Figma: [Radio Group](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=860-2728)
|
|
64
66
|
* */
|
|
65
67
|
export declare const DSRadioGroup: import('react').ForwardRefExoticComponent<RadioGroupProps & import('react').RefAttributes<HTMLInputElement>>;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SelectHTMLAttributes } from 'react';
|
|
1
|
+
import { SelectHTMLAttributes, JSX } from 'react';
|
|
2
2
|
import { BreakpointCustomizable } from '../../types';
|
|
3
3
|
import { SelectOptionsOrOptGroups, SelectSize } from './Select.utils';
|
|
4
4
|
export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
|
|
@@ -47,6 +47,7 @@ export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement
|
|
|
47
47
|
* Use the DSSelect component to efficiently navigate through and select from a range of options,
|
|
48
48
|
* enhancing user interaction and decision-making in your application.
|
|
49
49
|
*
|
|
50
|
+
* Design in Figma: [Select](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=8139-4888)
|
|
50
51
|
*
|
|
51
52
|
* <div className="ds-alert">If you are looking for a component with a **custom dropdown** or the ability to **filter** and **select multiple options**, please take a look at
|
|
52
53
|
* [DSCombobox](/docs/components-combobox--documentation)</div>
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LinkProps } from '../Link/Link';
|
|
2
|
+
import { JSX } from 'react';
|
|
2
3
|
export interface SkipToContentProps extends Pick<LinkProps, 'className' | 'theme'> {
|
|
3
4
|
/** Content within the SkipToContent Link.
|
|
4
5
|
* @default 'Skip to main content'
|
|
@@ -13,5 +14,7 @@ export interface SkipToContentProps extends Pick<LinkProps, 'className' | 'theme
|
|
|
13
14
|
* The `<DSSkipToContent />` component is an accessibility feature that allows users, especially those using screen readers or keyboard navigation, to quickly jump to the targeted content of a webpage without having to focus all the navigation items first. This improves the user experience by making it easier and faster to access important information.
|
|
14
15
|
*
|
|
15
16
|
* Focus the section below by using the tab key to see the "Skip To Content" component in action.
|
|
17
|
+
*
|
|
18
|
+
* Design in Figma: [Skip To Content](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=16333-2371)
|
|
16
19
|
*/
|
|
17
20
|
export declare const DSSkipToContent: ({ children, className, targetElementId, theme, ...rest }: SkipToContentProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, JSX } from 'react';
|
|
2
2
|
import { SelectedAriaAttributes, Theme } from '../../types';
|
|
3
3
|
import { SpinnerAriaAttribute, SpinnerSize } from './Spinner.utils';
|
|
4
4
|
export interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
@@ -15,4 +15,10 @@ export interface SpinnerProps extends HTMLAttributes<HTMLSpanElement> {
|
|
|
15
15
|
*/
|
|
16
16
|
theme?: Theme;
|
|
17
17
|
}
|
|
18
|
+
/**
|
|
19
|
+
*
|
|
20
|
+
* Shows the loading state and that the user request is being processed.
|
|
21
|
+
*
|
|
22
|
+
* Design in Figma: [Spinner](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=26-3)
|
|
23
|
+
*/
|
|
18
24
|
export declare const DSSpinner: ({ aria, className, size, theme, ...rest }: SpinnerProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ButtonHTMLAttributes } from 'react';
|
|
1
|
+
import { ButtonHTMLAttributes, JSX } from 'react';
|
|
2
2
|
import { SelectedAriaAttributes } from '../../types';
|
|
3
3
|
import { SwitchAriaAttribute, SwitchLabelPosition } from './Switch.utils';
|
|
4
4
|
export interface SwitchProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
@@ -16,8 +16,8 @@ export interface SwitchProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
16
16
|
* @default false
|
|
17
17
|
*/
|
|
18
18
|
checked?: boolean;
|
|
19
|
-
/**
|
|
20
|
-
|
|
19
|
+
/** Custom data attributes. */
|
|
20
|
+
[key: `data-${string}`]: string | undefined;
|
|
21
21
|
/** Disables the switch, preventing user interaction.
|
|
22
22
|
* @default false
|
|
23
23
|
*/
|
|
@@ -35,5 +35,7 @@ export interface SwitchProps extends ButtonHTMLAttributes<HTMLButtonElement> {
|
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Often used in settings, in which users can communicate their choice through binary selection.
|
|
38
|
+
*
|
|
39
|
+
* Design in Figma: [Switch](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=513-2)
|
|
38
40
|
* */
|
|
39
|
-
export declare const DSSwitch: ({ children, aria, alignLabel, checked, className,
|
|
41
|
+
export declare const DSSwitch: ({ children, aria, alignLabel, checked, className, disabled, loading, stretched, onClick, ...rest }: SwitchProps) => JSX.Element;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { JSX } from 'react';
|
|
2
|
+
import { NavigationTab } from '../../../NavigationTabs/NavigationTabs';
|
|
3
|
+
interface NavigationTabListProps {
|
|
4
|
+
tabs: NavigationTab[];
|
|
5
|
+
tabRefs: React.MutableRefObject<HTMLAnchorElement[]>;
|
|
6
|
+
scrollerClass: string;
|
|
7
|
+
scrollerRef: React.MutableRefObject<HTMLUListElement>;
|
|
8
|
+
selectedTabIndex: number;
|
|
9
|
+
handleNavigationKeydown: (event: React.KeyboardEvent<HTMLAnchorElement>, index: number) => void;
|
|
10
|
+
setSelectedTab: (index: number) => void;
|
|
11
|
+
}
|
|
12
|
+
/**
|
|
13
|
+
* The NavigationTabList component is an internal component used inside the TabList component.
|
|
14
|
+
* It renders an unordered list with list items that contain anchor elements.
|
|
15
|
+
*
|
|
16
|
+
* Consumers can pass in a link component which is cloned and modified. This allows us to add
|
|
17
|
+
* DSIcon and NumberIndicator and other props.
|
|
18
|
+
* Additionally the link component can be a regular anchor element or a Link component from
|
|
19
|
+
* React Router/Next or any other routing framework.
|
|
20
|
+
*/
|
|
21
|
+
export declare const NavigationTabList: ({ tabs, tabRefs, scrollerClass, scrollerRef, selectedTabIndex, handleNavigationKeydown, setSelectedTab, }: NavigationTabListProps) => JSX.Element;
|
|
22
|
+
export {};
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { Dispatch, HTMLAttributes, SetStateAction, JSX } from 'react';
|
|
2
|
+
import { SelectedAriaAttributes } from '../../../types';
|
|
3
|
+
import { NavigationTab } from '../../NavigationTabs/NavigationTabs';
|
|
4
|
+
import { Tab } from '../Tabs';
|
|
5
|
+
import { TabsAlignment } from '../Tabs.utils';
|
|
6
|
+
import { TabListAriaAttributes } from './TabList.utils';
|
|
7
|
+
export type TabListProps<IsNavigation extends boolean> = {
|
|
8
|
+
/** ARIA attributes to enhance accessibility
|
|
9
|
+
* `{'aria-label'? string;`
|
|
10
|
+
* `'aria-labelledby'?: string;}`
|
|
11
|
+
* */
|
|
12
|
+
aria: SelectedAriaAttributes<TabListAriaAttributes>;
|
|
13
|
+
selectedTabIndex: number;
|
|
14
|
+
setSelectedTabIndex: Dispatch<SetStateAction<number>>;
|
|
15
|
+
/** An array of Tab Objects containing the id, content, label, and other optional parameters.
|
|
16
|
+
* `{id: string; content: React.ReactNode; label: string; iconName?: IconName; numberIndicatorValue?: string;}[]`*/
|
|
17
|
+
tabs: IsNavigation extends true ? NavigationTab[] : Tab[];
|
|
18
|
+
/** Alignment of the Tabs.
|
|
19
|
+
* @default 'left'
|
|
20
|
+
*/
|
|
21
|
+
alignment?: TabsAlignment;
|
|
22
|
+
/** Index of the tab to be selected when Tabs are rendered the first time.
|
|
23
|
+
* @default 0
|
|
24
|
+
* */
|
|
25
|
+
defaultSelectedTabIndex?: number;
|
|
26
|
+
/** Sets the TabList to navigation mode, using links instead of buttons */
|
|
27
|
+
isNavigation?: boolean;
|
|
28
|
+
/** Callback function called when the selected tab changes. */
|
|
29
|
+
onTabChange?: (selectedTabIndex: number) => void;
|
|
30
|
+
} & HTMLAttributes<HTMLDivElement> & (IsNavigation extends false ? {
|
|
31
|
+
id: string;
|
|
32
|
+
} : unknown);
|
|
33
|
+
/**
|
|
34
|
+
*
|
|
35
|
+
* The TabList component is an internal component used in DSTabs and DSNavigationTabs.
|
|
36
|
+
* It dynamically renders either a div with role="tablist" or a nav element based on the isNavigation prop.
|
|
37
|
+
*/
|
|
38
|
+
export declare const TabList: <IsNavigation extends boolean>({ aria, id: tabListId, selectedTabIndex, setSelectedTabIndex, tabs, alignment, className, defaultSelectedTabIndex, isNavigation, onTabChange, ...rest }: TabListProps<IsNavigation>) => JSX.Element;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the bounding rectangle of a DOM element or a default DOMRect object with 0 values if unavailable.
|
|
3
|
+
*/
|
|
4
|
+
export declare const getRect: (element: HTMLElement | null) => DOMRect;
|
|
5
|
+
export declare const SCROLL_MARGIN_INLINE = 48;
|
|
6
|
+
export type TabListAriaAttributes = 'aria-label' | 'aria-labelledby';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, JSX } from 'react';
|
|
2
2
|
import { IconName } from '../../types';
|
|
3
3
|
import { TabsAlignment } from './Tabs.utils';
|
|
4
4
|
export interface Tab {
|
|
@@ -17,7 +17,12 @@ export interface TabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
17
17
|
/** Unique id for the tab list. */
|
|
18
18
|
id: string;
|
|
19
19
|
/** An array of Tab Objects containing the id, content, label, and other optional parameters.
|
|
20
|
-
*
|
|
20
|
+
* `{ content: React.ReactNode;`
|
|
21
|
+
* `id: string;`
|
|
22
|
+
* `label: string;`
|
|
23
|
+
* `iconName?: IconName;`
|
|
24
|
+
* `numberIndicatorValue?: string; }[]`
|
|
25
|
+
*/
|
|
21
26
|
tabs: Tab[];
|
|
22
27
|
/** Alignment of the Tabs.
|
|
23
28
|
* @default 'left'
|
|
@@ -38,5 +43,7 @@ export interface TabsProps extends HTMLAttributes<HTMLDivElement> {
|
|
|
38
43
|
* A component for organizing content into tabbed sections, allowing users to navigate between them.
|
|
39
44
|
* Supports single selection to maintain focus on one content area at a time.
|
|
40
45
|
* Avoid excessive tabs to prevent overwhelming the user.
|
|
46
|
+
*
|
|
47
|
+
* Design in Figma: [Tabs](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=24564-313&t=UBsmFURFENnuYSW1-11)
|
|
41
48
|
*/
|
|
42
49
|
export declare const DSTabs: ({ id: tabListId, tabs, alignment, className, classNameTabPane, defaultSelectedTabIndex, onTabChange, ...rest }: TabsProps) => JSX.Element;
|
|
@@ -3,9 +3,4 @@ export declare const TABS_ALIGNMENT: readonly ["left", "center"];
|
|
|
3
3
|
export type TabsAlignment = (typeof TABS_ALIGNMENT)[number];
|
|
4
4
|
export declare const TABS_DIRECTION: readonly ["prev", "next"];
|
|
5
5
|
export type TabsDirection = (typeof TABS_DIRECTION)[number];
|
|
6
|
-
|
|
7
|
-
* Returns the bounding rectangle of a DOM element or a default DOMRect object with 0 values if unavailable.
|
|
8
|
-
*/
|
|
9
|
-
export declare const getRect: (element: HTMLElement | null) => DOMRect;
|
|
10
|
-
export declare const SCROLL_MARGIN_INLINE = 48;
|
|
11
|
-
export declare const validateTabsProps: ({ id, tabs }: TabsProps) => void;
|
|
6
|
+
export declare const validateTabsProps: ({ id, tabs, defaultSelectedTabIndex, }: TabsProps) => void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, JSX } from 'react';
|
|
2
2
|
import { Theme } from '../../types';
|
|
3
3
|
import { TextSize, TextTag, TextWeight } from './Text.utils';
|
|
4
4
|
export interface TextProps extends HTMLAttributes<HTMLQuoteElement | HTMLDivElement | HTMLLegendElement | HTMLParagraphElement | HTMLSpanElement | HTMLTimeElement> {
|
|
@@ -22,8 +22,10 @@ export interface TextProps extends HTMLAttributes<HTMLQuoteElement | HTMLDivElem
|
|
|
22
22
|
weight?: TextWeight;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
25
|
+
* The `DSText` component is designed for displaying body text and paragraphs,
|
|
26
|
+
* ensuring consistent sizing across different viewports.
|
|
27
|
+
* It is a versatile component that can be used in various parts of your application where text content is needed.
|
|
28
|
+
*
|
|
29
|
+
* Design in Figma: [Text](https://www.figma.com/design/d9wrOp4aCplDsV9AVC87Xn/Typography-%F0%9F%85%B0%EF%B8%8F?node-id=3-2301&t=TeSgud7dB5pnld5s-11)
|
|
28
30
|
*/
|
|
29
31
|
export declare const DSText: ({ children, className, size, tag, theme, weight, ...rest }: TextProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TextareaHTMLAttributes } from 'react';
|
|
1
|
+
import { TextareaHTMLAttributes, JSX } from 'react';
|
|
2
2
|
import { BreakpointCustomizable } from '../../types';
|
|
3
3
|
import { TextareaSize } from './Textarea.utils';
|
|
4
4
|
export interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaElement>, 'size' | 'rows' | 'cols'> {
|
|
@@ -55,5 +55,7 @@ export interface TextareaProps extends Omit<TextareaHTMLAttributes<HTMLTextAreaE
|
|
|
55
55
|
/**
|
|
56
56
|
* The `<DSTextarea />` component allows users to enter and edit multi line text.
|
|
57
57
|
* It comes in two sizes (medium & small) and supports various customizations
|
|
58
|
+
*
|
|
59
|
+
* Design in Figma: [Textarea](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=4937-4402)
|
|
58
60
|
*/
|
|
59
61
|
export declare const DSTextarea: ({ id, label, charsLimitText, charsRemainingText, className, defaultValue, disabled, hint, hideLabel, invalid, maxLength, readonly, required, resize, size, systemFeedback, value, wrapperClassName, onChange, onInput, ...rest }: TextareaProps) => JSX.Element;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { HTMLAttributes } from 'react';
|
|
1
|
+
import { HTMLAttributes, JSX } from 'react';
|
|
2
2
|
import { Theme } from '../../types';
|
|
3
3
|
import { TitleSize, TitleTag } from './Title.utils';
|
|
4
4
|
export interface TitleProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
@@ -22,5 +22,7 @@ export interface TitleProps extends HTMLAttributes<HTMLHeadingElement> {
|
|
|
22
22
|
* It's intended for primary emotional headlines that should be prominent,
|
|
23
23
|
* accompanied by a stand line for reinforcement.
|
|
24
24
|
* The component ensures impactful headline presentation in your application.
|
|
25
|
+
*
|
|
26
|
+
* Design in Figma: [Title](https://www.figma.com/design/Ie2r0R9QwjEc7O3nrFbXhV/Web-Pattern-Library?node-id=7-77&t=ZOQH7XUcmLFb8aah-11)
|
|
25
27
|
*/
|
|
26
28
|
export declare const DSTitle: ({ children, className, size, tag, theme, ...rest }: TitleProps) => JSX.Element;
|
|
@@ -21,6 +21,8 @@ export interface ToastProps extends Omit<HTMLAttributes<HTMLElement>, 'onClick'
|
|
|
21
21
|
/**
|
|
22
22
|
* Toasts are small, non-intrusive messages that appear temporarily to provide feedback or information.
|
|
23
23
|
*
|
|
24
|
+
* Design in Figma: [Toast](https://www.figma.com/design/qXldpLO6gxHJNLdcXIPxYt/Core-Components-%F0%9F%92%A0?node-id=8844-4923)
|
|
25
|
+
*
|
|
24
26
|
* <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>
|
|
25
27
|
*
|
|
26
28
|
* */
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.CgTHIF3K.js";
|
|
4
|
+
import "./chunks/index.CEyLAtio.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { c as u } from "./chunks/CustomReactSelect.C2yN7CYh.js";
|
|
7
|
+
import "./chunks/useBreakpoint.CMOR9ZOB.js";
|
|
8
|
+
import "./asterisk.DUzshaw5.js";
|
|
9
|
+
import "./chunks/Icon.DhKyUWtM.js";
|
|
10
|
+
import "./systemfeedback.7I6fnqjX.js";
|
|
11
|
+
import "./optioncheckbox.DcckSTrV.js";
|
|
12
|
+
export {
|
|
13
|
+
u as CustomReactSelect
|
|
14
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import "react/jsx-runtime";
|
|
3
|
+
import "./chunks/index.CgTHIF3K.js";
|
|
4
|
+
import "./chunks/index.CEyLAtio.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import "./asterisk.DUzshaw5.js";
|
|
7
|
+
import "./heading.6LOBHJG6.js";
|
|
8
|
+
import "./systemfeedback.7I6fnqjX.js";
|
|
9
|
+
import { D } from "./chunks/Fieldset.DfWsQgjD.js";
|
|
10
|
+
export {
|
|
11
|
+
D as DSFieldset
|
|
12
|
+
};
|
package/flag.BJk5fHMs.js
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { jsxs as y, jsx as p } from "react/jsx-runtime";
|
|
3
|
+
import { d as L } from "./chunks/index.CgTHIF3K.js";
|
|
4
|
+
import { c as u } from "./chunks/index.CEyLAtio.js";
|
|
5
|
+
import { D as w } from "./chunks/Icon.DhKyUWtM.js";
|
|
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
|
+
root: b,
|
|
8
|
+
"root--color-grey-light": "ds-flag_root--color-grey-light_14d3h_28",
|
|
9
|
+
rootColorGreyLight: x,
|
|
10
|
+
"root--color-yellow-light": "ds-flag_root--color-yellow-light_14d3h_31",
|
|
11
|
+
rootColorYellowLight: G,
|
|
12
|
+
"root--color-red-light": "ds-flag_root--color-red-light_14d3h_34",
|
|
13
|
+
rootColorRedLight: N,
|
|
14
|
+
"root--color-green-light": "ds-flag_root--color-green-light_14d3h_37",
|
|
15
|
+
rootColorGreenLight: S,
|
|
16
|
+
"root--color-orange-base": "ds-flag_root--color-orange-base_14d3h_40",
|
|
17
|
+
rootColorOrangeBase: D
|
|
18
|
+
}, R = (n) => {
|
|
19
|
+
const o = L.c(23);
|
|
20
|
+
let e, s, r, t, l, c;
|
|
21
|
+
o[0] !== n ? ({
|
|
22
|
+
children: e,
|
|
23
|
+
className: s,
|
|
24
|
+
color: r,
|
|
25
|
+
iconName: t,
|
|
26
|
+
iconSource: l,
|
|
27
|
+
...c
|
|
28
|
+
} = n, o[0] = n, o[1] = e, o[2] = s, o[3] = r, o[4] = t, o[5] = l, o[6] = c) : (e = o[1], s = o[2], r = o[3], t = o[4], l = o[5], c = o[6]);
|
|
29
|
+
const g = typeof r == "string" && C[`root--color-${r}`];
|
|
30
|
+
let a;
|
|
31
|
+
o[7] !== r || o[8] !== g ? (a = g ? {} : {
|
|
32
|
+
backgroundColor: r
|
|
33
|
+
}, o[7] = r, o[8] = g, o[9] = a) : a = o[9];
|
|
34
|
+
const _ = a, f = C[`root--color-${r}`];
|
|
35
|
+
let d;
|
|
36
|
+
o[10] !== s || o[11] !== g || o[12] !== f ? (d = u(C.root, s, {
|
|
37
|
+
[f]: g
|
|
38
|
+
}), o[10] = s, o[11] = g, o[12] = f, o[13] = d) : d = o[13];
|
|
39
|
+
const m = d;
|
|
40
|
+
let i;
|
|
41
|
+
o[14] !== t || o[15] !== l ? (i = (t || l) && /* @__PURE__ */ p(w, { name: t, theme: "light", source: l, "aria-hidden": "true" }), o[14] = t, o[15] = l, o[16] = i) : i = o[16];
|
|
42
|
+
let h;
|
|
43
|
+
return o[17] !== e || o[18] !== _ || o[19] !== c || o[20] !== m || o[21] !== i ? (h = /* @__PURE__ */ y("span", { className: m, style: _, ...c, children: [
|
|
44
|
+
i,
|
|
45
|
+
e
|
|
46
|
+
] }), o[17] = e, o[18] = _, o[19] = c, o[20] = m, o[21] = i, o[22] = h) : h = o[22], h;
|
|
47
|
+
};
|
|
48
|
+
export {
|
|
49
|
+
R as DSFlag
|
|
50
|
+
};
|