@postenbring/hedwig-react 0.0.0-remove-disabled-examples-20240404083512 → 0.0.0-remove-example-app-20240502152746
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/dist/_tsup-dts-rollup.d.mts +593 -187
- package/dist/_tsup-dts-rollup.d.ts +593 -187
- package/dist/accordion/index.d.mts +3 -3
- package/dist/accordion/index.d.ts +3 -3
- package/dist/accordion/index.js +8 -2
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +14 -5
- package/dist/box/index.d.mts +1 -1
- package/dist/box/index.d.ts +1 -1
- package/dist/box/index.js +4 -2
- package/dist/box/index.js.map +1 -1
- package/dist/box/index.mjs +6 -3
- package/dist/{breadcrumb/index.js → breadcrumbs/breadcrumbs.js} +12 -11
- package/dist/breadcrumbs/breadcrumbs.js.map +1 -0
- package/dist/{breadcrumb/breadcrumb.mjs → breadcrumbs/breadcrumbs.mjs} +2 -2
- package/dist/{breadcrumb/breadcrumb.js → breadcrumbs/index.js} +14 -9
- package/dist/breadcrumbs/index.js.map +1 -0
- package/dist/breadcrumbs/index.mjs +9 -0
- package/dist/button/button.js +1 -4
- package/dist/button/button.js.map +1 -1
- package/dist/button/button.mjs +1 -1
- package/dist/button/index.js +1 -4
- package/dist/button/index.js.map +1 -1
- package/dist/button/index.mjs +1 -1
- package/dist/card/index.d.mts +2 -2
- package/dist/card/index.d.ts +2 -2
- package/dist/card/index.js +12 -2
- package/dist/card/index.js.map +1 -1
- package/dist/card/index.mjs +14 -3
- package/dist/chunk-25R7DBK6.mjs +59 -0
- package/dist/chunk-25R7DBK6.mjs.map +1 -0
- package/dist/chunk-3LYJRAOC.mjs +1 -0
- package/dist/{chunk-QSYU64U4.mjs → chunk-4GSNPCNT.mjs} +2 -2
- package/dist/{chunk-QSYU64U4.mjs.map → chunk-4GSNPCNT.mjs.map} +1 -1
- package/dist/chunk-5YMUST7H.mjs +86 -0
- package/dist/chunk-5YMUST7H.mjs.map +1 -0
- package/dist/chunk-BVG5VSZK.mjs +1 -0
- package/dist/{chunk-OUHO4LGN.mjs → chunk-BWFFP6BB.mjs} +2 -5
- package/dist/chunk-BWFFP6BB.mjs.map +1 -0
- package/dist/chunk-CFAH2LID.mjs +1 -0
- package/dist/{chunk-VI5L6XEY.mjs → chunk-CSAEHQ4R.mjs} +2 -2
- package/dist/{chunk-VI5L6XEY.mjs.map → chunk-CSAEHQ4R.mjs.map} +1 -1
- package/dist/{chunk-RVJD2UZF.mjs → chunk-DFH4YKQA.mjs} +2 -2
- package/dist/chunk-DFH4YKQA.mjs.map +1 -0
- package/dist/{chunk-VFFIUNR6.mjs → chunk-E2AG5TUR.mjs} +9 -9
- package/dist/chunk-E2AG5TUR.mjs.map +1 -0
- package/dist/chunk-E2RTLHMZ.mjs +54 -0
- package/dist/chunk-E2RTLHMZ.mjs.map +1 -0
- package/dist/{chunk-AR2NOI4U.mjs → chunk-EJ7ANN7M.mjs} +1 -1
- package/dist/{chunk-AR2NOI4U.mjs.map → chunk-EJ7ANN7M.mjs.map} +1 -1
- package/dist/chunk-EMI7NAO2.mjs +45 -0
- package/dist/chunk-EMI7NAO2.mjs.map +1 -0
- package/dist/chunk-F4STR6SD.mjs +18 -0
- package/dist/chunk-F4STR6SD.mjs.map +1 -0
- package/dist/chunk-GGEQEVZ4.mjs +22 -0
- package/dist/chunk-GGEQEVZ4.mjs.map +1 -0
- package/dist/chunk-ISAHCU7C.mjs +1 -0
- package/dist/chunk-JBWAZQKM.mjs +1 -0
- package/dist/chunk-JBWAZQKM.mjs.map +1 -0
- package/dist/chunk-JDXYRFLJ.mjs +13 -0
- package/dist/chunk-JDXYRFLJ.mjs.map +1 -0
- package/dist/{chunk-WCA2WPFS.mjs → chunk-JXA3B33M.mjs} +46 -2
- package/dist/chunk-JXA3B33M.mjs.map +1 -0
- package/dist/{chunk-RK6BB3HH.mjs → chunk-KTRIVJM3.mjs} +2 -2
- package/dist/{chunk-2JH4FG63.mjs → chunk-MF2AREPQ.mjs} +6 -6
- package/dist/{chunk-2JH4FG63.mjs.map → chunk-MF2AREPQ.mjs.map} +1 -1
- package/dist/{chunk-POJTVNEO.mjs → chunk-MKC7HZCM.mjs} +2 -2
- package/dist/chunk-MKC7HZCM.mjs.map +1 -0
- package/dist/chunk-NE6W2PCD.mjs +9 -0
- package/dist/chunk-NE6W2PCD.mjs.map +1 -0
- package/dist/{chunk-BZNDK3KJ.mjs → chunk-NMMFIRLZ.mjs} +1 -1
- package/dist/{chunk-BZNDK3KJ.mjs.map → chunk-NMMFIRLZ.mjs.map} +1 -1
- package/dist/{chunk-IAS3E2S3.mjs → chunk-PUESATBQ.mjs} +2 -2
- package/dist/{chunk-X46LM2QH.mjs → chunk-PYR6QEIS.mjs} +18 -14
- package/dist/chunk-PYR6QEIS.mjs.map +1 -0
- package/dist/{chunk-CRIWSB4T.mjs → chunk-S3BGPCLK.mjs} +12 -15
- package/dist/chunk-S3BGPCLK.mjs.map +1 -0
- package/dist/{chunk-MUVJAMFN.mjs → chunk-SRLRTLHS.mjs} +10 -8
- package/dist/chunk-SRLRTLHS.mjs.map +1 -0
- package/dist/chunk-TDLSHJ4Z.mjs +1 -0
- package/dist/chunk-TDLSHJ4Z.mjs.map +1 -0
- package/dist/{chunk-SKI2APSK.mjs → chunk-TNU64NUN.mjs} +13 -7
- package/dist/chunk-TNU64NUN.mjs.map +1 -0
- package/dist/chunk-UXJIK76H.mjs +118 -0
- package/dist/chunk-UXJIK76H.mjs.map +1 -0
- package/dist/chunk-VVPJOVFP.mjs +75 -0
- package/dist/chunk-VVPJOVFP.mjs.map +1 -0
- package/dist/{chunk-JC6DBIFE.mjs → chunk-XE4UZBL2.mjs} +1 -1
- package/dist/{chunk-JC6DBIFE.mjs.map → chunk-XE4UZBL2.mjs.map} +1 -1
- package/dist/chunk-XFKD6EEJ.mjs +1 -0
- package/dist/chunk-XFKD6EEJ.mjs.map +1 -0
- package/dist/{chunk-XIHKASNB.mjs → chunk-XYIY6FHW.mjs} +1 -1
- package/dist/{chunk-XIHKASNB.mjs.map → chunk-XYIY6FHW.mjs.map} +1 -1
- package/dist/{chunk-6TI7ACBR.mjs → chunk-YC7MT6SO.mjs} +2 -2
- package/dist/chunk-Z753E3XF.mjs +33 -0
- package/dist/chunk-Z753E3XF.mjs.map +1 -0
- package/dist/chunk-ZQHLYAJU.mjs +1 -0
- package/dist/chunk-ZQHLYAJU.mjs.map +1 -0
- package/dist/description-list/description-list.d.mts +1 -1
- package/dist/description-list/description-list.d.ts +1 -1
- package/dist/description-list/description-list.js +19 -21
- package/dist/description-list/description-list.js.map +1 -1
- package/dist/description-list/description-list.mjs +1 -1
- package/dist/description-list/index.js +19 -21
- package/dist/description-list/index.js.map +1 -1
- package/dist/description-list/index.mjs +1 -1
- package/dist/footer/footer.js +10 -16
- package/dist/footer/footer.js.map +1 -1
- package/dist/footer/footer.mjs +3 -3
- package/dist/footer/index.d.mts +3 -3
- package/dist/footer/index.d.ts +3 -3
- package/dist/footer/index.js +20 -18
- package/dist/footer/index.js.map +1 -1
- package/dist/footer/index.mjs +14 -5
- package/dist/form/date-picker/date-picker.d.mts +2 -0
- package/dist/form/date-picker/date-picker.d.ts +2 -0
- package/dist/form/date-picker/date-picker.js +265 -0
- package/dist/form/date-picker/date-picker.js.map +1 -0
- package/dist/form/date-picker/date-picker.mjs +13 -0
- package/dist/form/date-picker/date-picker.mjs.map +1 -0
- package/dist/form/date-picker/index.d.mts +2 -0
- package/dist/form/date-picker/index.d.ts +2 -0
- package/dist/form/date-picker/index.js +267 -0
- package/dist/form/date-picker/index.js.map +1 -0
- package/dist/form/date-picker/index.mjs +14 -0
- package/dist/form/date-picker/index.mjs.map +1 -0
- package/dist/form/index.d.mts +10 -8
- package/dist/form/index.d.ts +10 -8
- package/dist/form/index.js +239 -131
- package/dist/form/index.js.map +1 -1
- package/dist/form/index.mjs +15 -9
- package/dist/form/input/index.js +12 -6
- package/dist/form/input/index.js.map +1 -1
- package/dist/form/input/index.mjs +2 -2
- package/dist/form/input/input.js +12 -6
- package/dist/form/input/input.js.map +1 -1
- package/dist/form/input/input.mjs +2 -2
- package/dist/form/input-group/index.js +12 -6
- package/dist/form/input-group/index.js.map +1 -1
- package/dist/form/input-group/index.mjs +1 -1
- package/dist/form/input-group/input-group.js +12 -6
- package/dist/form/input-group/input-group.js.map +1 -1
- package/dist/form/input-group/input-group.mjs +1 -1
- package/dist/form/select/index.js +12 -6
- package/dist/form/select/index.js.map +1 -1
- package/dist/form/select/index.mjs +2 -2
- package/dist/form/select/select.js +12 -6
- package/dist/form/select/select.js.map +1 -1
- package/dist/form/select/select.mjs +2 -2
- package/dist/form/textarea/index.js +12 -6
- package/dist/form/textarea/index.js.map +1 -1
- package/dist/form/textarea/index.mjs +2 -2
- package/dist/form/textarea/textarea.js +12 -6
- package/dist/form/textarea/textarea.js.map +1 -1
- package/dist/form/textarea/textarea.mjs +2 -2
- package/dist/help-text/help-text.d.mts +1 -0
- package/dist/help-text/help-text.d.ts +1 -0
- package/dist/help-text/help-text.js +186 -0
- package/dist/help-text/help-text.js.map +1 -0
- package/dist/help-text/help-text.mjs +10 -0
- package/dist/help-text/help-text.mjs.map +1 -0
- package/dist/help-text/index.d.mts +1 -0
- package/dist/help-text/index.d.ts +1 -0
- package/dist/help-text/index.js +188 -0
- package/dist/help-text/index.js.map +1 -0
- package/dist/help-text/index.mjs +11 -0
- package/dist/help-text/index.mjs.map +1 -0
- package/dist/index-no-css.d.mts +42 -28
- package/dist/index-no-css.d.ts +42 -28
- package/dist/index-no-css.js +900 -500
- package/dist/index-no-css.js.map +1 -1
- package/dist/index-no-css.mjs +162 -65
- package/dist/index.d.mts +42 -28
- package/dist/index.d.ts +42 -28
- package/dist/index.js +900 -500
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +162 -65
- package/dist/index.mjs.map +1 -1
- package/dist/layout/grid/grid.d.mts +4 -0
- package/dist/layout/grid/grid.d.ts +4 -0
- package/dist/layout/grid/grid.js +122 -0
- package/dist/layout/grid/grid.js.map +1 -0
- package/dist/layout/grid/grid.mjs +12 -0
- package/dist/layout/grid/grid.mjs.map +1 -0
- package/dist/layout/grid/index.d.mts +4 -0
- package/dist/layout/grid/index.d.ts +4 -0
- package/dist/layout/grid/index.js +128 -0
- package/dist/layout/grid/index.js.map +1 -0
- package/dist/layout/grid/index.mjs +14 -0
- package/dist/layout/grid/index.mjs.map +1 -0
- package/dist/layout/index.d.mts +9 -1
- package/dist/layout/index.d.ts +9 -1
- package/dist/layout/index.js +136 -2
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/index.mjs +21 -2
- package/dist/layout/responsive.d.mts +2 -0
- package/dist/layout/responsive.d.ts +2 -0
- package/dist/layout/responsive.js +42 -0
- package/dist/layout/responsive.js.map +1 -0
- package/dist/layout/responsive.mjs +8 -0
- package/dist/layout/responsive.mjs.map +1 -0
- package/dist/layout/spacing.d.mts +3 -0
- package/dist/layout/spacing.d.ts +3 -0
- package/dist/layout/spacing.js +33 -0
- package/dist/layout/spacing.js.map +1 -0
- package/dist/layout/spacing.mjs +8 -0
- package/dist/layout/spacing.mjs.map +1 -0
- package/dist/layout/stack/index.d.mts +4 -0
- package/dist/layout/stack/index.d.ts +4 -0
- package/dist/layout/stack/index.js +141 -0
- package/dist/layout/stack/index.js.map +1 -0
- package/dist/layout/stack/index.mjs +15 -0
- package/dist/layout/stack/index.mjs.map +1 -0
- package/dist/layout/stack/stack.d.mts +4 -0
- package/dist/layout/stack/stack.d.ts +4 -0
- package/dist/layout/stack/stack.js +139 -0
- package/dist/layout/stack/stack.js.map +1 -0
- package/dist/layout/stack/stack.mjs +14 -0
- package/dist/layout/stack/stack.mjs.map +1 -0
- package/dist/message/index.d.mts +2 -0
- package/dist/message/index.d.ts +2 -0
- package/dist/message/index.js +6 -2
- package/dist/message/index.js.map +1 -1
- package/dist/message/index.mjs +8 -3
- package/dist/message/message.d.mts +2 -2
- package/dist/message/message.d.ts +2 -2
- package/dist/modal/index.d.mts +2 -2
- package/dist/modal/index.d.ts +2 -2
- package/dist/modal/index.js +8 -2
- package/dist/modal/index.js.map +1 -1
- package/dist/modal/index.mjs +11 -4
- package/dist/modal/modal.js.map +1 -1
- package/dist/modal/modal.mjs +2 -2
- package/dist/navbar/index.d.mts +3 -3
- package/dist/navbar/index.d.ts +3 -3
- package/dist/navbar/index.js +65 -22
- package/dist/navbar/index.js.map +1 -1
- package/dist/navbar/index.mjs +13 -3
- package/dist/navbar/navbar-expandable-menu.js +57 -22
- package/dist/navbar/navbar-expandable-menu.js.map +1 -1
- package/dist/navbar/navbar-expandable-menu.mjs +2 -1
- package/dist/show-more/index.js +91 -39
- package/dist/show-more/index.js.map +1 -1
- package/dist/show-more/index.mjs +2 -1
- package/dist/table/index.d.mts +1 -0
- package/dist/table/index.d.ts +1 -0
- package/dist/table/index.js +94 -0
- package/dist/table/index.js.map +1 -0
- package/dist/table/index.mjs +9 -0
- package/dist/table/index.mjs.map +1 -0
- package/dist/table/table.d.mts +1 -0
- package/dist/table/table.d.ts +1 -0
- package/dist/table/table.js +92 -0
- package/dist/table/table.js.map +1 -0
- package/dist/table/table.mjs +8 -0
- package/dist/table/table.mjs.map +1 -0
- package/dist/tabs/index.d.mts +5 -5
- package/dist/tabs/index.d.ts +5 -5
- package/dist/tabs/index.js +26 -6
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +15 -5
- package/dist/tabs/tabs-list.d.mts +2 -2
- package/dist/tabs/tabs-list.d.ts +2 -2
- package/dist/tabs/tabs-list.js +19 -7
- package/dist/tabs/tabs-list.js.map +1 -1
- package/dist/tabs/tabs-list.mjs +6 -6
- package/dist/utilities/auto-animate-height.js +89 -37
- package/dist/utilities/auto-animate-height.js.map +1 -1
- package/dist/utilities/auto-animate-height.mjs +2 -1
- package/dist/utilities/index.js +89 -37
- package/dist/utilities/index.js.map +1 -1
- package/dist/utilities/index.mjs +2 -1
- package/dist/utils.d.mts +3 -0
- package/dist/utils.d.ts +3 -0
- package/dist/utils.js +47 -0
- package/dist/utils.js.map +1 -1
- package/dist/utils.mjs +7 -1
- package/dist/warning-banner/index.js.map +1 -1
- package/dist/warning-banner/index.mjs +2 -2
- package/dist/warning-banner/warning-banner.js.map +1 -1
- package/dist/warning-banner/warning-banner.mjs +2 -2
- package/package.json +11 -11
- package/dist/breadcrumb/breadcrumb.js.map +0 -1
- package/dist/breadcrumb/index.js.map +0 -1
- package/dist/breadcrumb/index.mjs +0 -9
- package/dist/chunk-AKYK3XFN.mjs +0 -95
- package/dist/chunk-AKYK3XFN.mjs.map +0 -1
- package/dist/chunk-CRIWSB4T.mjs.map +0 -1
- package/dist/chunk-MUVJAMFN.mjs.map +0 -1
- package/dist/chunk-OIQUYB26.mjs +0 -1
- package/dist/chunk-OUHO4LGN.mjs.map +0 -1
- package/dist/chunk-POJTVNEO.mjs.map +0 -1
- package/dist/chunk-RVJD2UZF.mjs.map +0 -1
- package/dist/chunk-SKI2APSK.mjs.map +0 -1
- package/dist/chunk-T24JZIQO.mjs +0 -1
- package/dist/chunk-VFFIUNR6.mjs.map +0 -1
- package/dist/chunk-WCA2WPFS.mjs.map +0 -1
- package/dist/chunk-X46LM2QH.mjs.map +0 -1
- package/dist/chunk-XMB45ILT.mjs +0 -35
- package/dist/chunk-XMB45ILT.mjs.map +0 -1
- package/dist/chunk-YKDKFWP2.mjs +0 -19
- package/dist/chunk-YKDKFWP2.mjs.map +0 -1
- package/dist/chunk-YWNVB7TY.mjs +0 -1
- package/dist/chunk-ZOCMUEOX.mjs +0 -1
- package/dist/{breadcrumb/breadcrumb.d.mts → breadcrumbs/breadcrumbs.d.mts} +1 -1
- package/dist/{breadcrumb/breadcrumb.d.ts → breadcrumbs/breadcrumbs.d.ts} +1 -1
- /package/dist/{breadcrumb/breadcrumb.mjs.map → breadcrumbs/breadcrumbs.mjs.map} +0 -0
- /package/dist/{breadcrumb → breadcrumbs}/index.d.mts +0 -0
- /package/dist/{breadcrumb → breadcrumbs}/index.d.ts +0 -0
- /package/dist/{breadcrumb → breadcrumbs}/index.mjs.map +0 -0
- /package/dist/{chunk-OIQUYB26.mjs.map → chunk-3LYJRAOC.mjs.map} +0 -0
- /package/dist/{chunk-T24JZIQO.mjs.map → chunk-BVG5VSZK.mjs.map} +0 -0
- /package/dist/{chunk-YWNVB7TY.mjs.map → chunk-CFAH2LID.mjs.map} +0 -0
- /package/dist/{chunk-ZOCMUEOX.mjs.map → chunk-ISAHCU7C.mjs.map} +0 -0
- /package/dist/{chunk-RK6BB3HH.mjs.map → chunk-KTRIVJM3.mjs.map} +0 -0
- /package/dist/{chunk-IAS3E2S3.mjs.map → chunk-PUESATBQ.mjs.map} +0 -0
- /package/dist/{chunk-6TI7ACBR.mjs.map → chunk-YC7MT6SO.mjs.map} +0 -0
|
@@ -22,7 +22,7 @@ import { default as React_3 } from 'react';
|
|
|
22
22
|
import { ReactElement } from 'react';
|
|
23
23
|
import { ReactNode } from 'react';
|
|
24
24
|
import { RefAttributes } from 'react';
|
|
25
|
-
import
|
|
25
|
+
import { SelectHTMLAttributes } from 'react';
|
|
26
26
|
import type { StoryObj } from '@storybook/react';
|
|
27
27
|
import type { TextareaHTMLAttributes } from 'react';
|
|
28
28
|
|
|
@@ -130,15 +130,15 @@ export { AccordionProps as AccordionProps_alias_3 }
|
|
|
130
130
|
|
|
131
131
|
export declare const AreYouSureDialog: Story_3;
|
|
132
132
|
|
|
133
|
-
export declare const Article:
|
|
133
|
+
export declare const Article: Story_25;
|
|
134
134
|
|
|
135
|
-
export declare const ArticleContent:
|
|
135
|
+
export declare const ArticleContent: Story_27;
|
|
136
136
|
|
|
137
137
|
export declare const AsALink: Story_5;
|
|
138
138
|
|
|
139
|
-
export declare const AsAReadMore:
|
|
139
|
+
export declare const AsAReadMore: Story_22;
|
|
140
140
|
|
|
141
|
-
export declare const Attention:
|
|
141
|
+
export declare const Attention: Story_21;
|
|
142
142
|
|
|
143
143
|
/**
|
|
144
144
|
* Helper component to animate the height of the children when they change
|
|
@@ -164,6 +164,12 @@ declare interface AutoAnimateHeightProps {
|
|
|
164
164
|
* default is "quick"
|
|
165
165
|
*/
|
|
166
166
|
animationDuration?: "quick" | "normal" | "slow";
|
|
167
|
+
/**
|
|
168
|
+
* Callback fired when animiation transition ends
|
|
169
|
+
* Use this to do effects after resizing is done, e.g. scrolling to the element
|
|
170
|
+
* using `element.scrollIntoView()`
|
|
171
|
+
*/
|
|
172
|
+
onTransitionEnd?: () => void;
|
|
167
173
|
/**
|
|
168
174
|
* Which hedwig easing function to use, default is "normal"
|
|
169
175
|
*/
|
|
@@ -209,7 +215,7 @@ export { BaseButton as BaseButton_alias_3 }
|
|
|
209
215
|
|
|
210
216
|
export declare const BoundedCheckbox: Story_8;
|
|
211
217
|
|
|
212
|
-
export declare const BoundedRadiobutton:
|
|
218
|
+
export declare const BoundedRadiobutton: Story_13;
|
|
213
219
|
|
|
214
220
|
export declare const Box_alias_2: OverridableComponent<BoxProps, HTMLDivElement>;
|
|
215
221
|
|
|
@@ -293,18 +299,14 @@ export { BoxProps as BoxProps_alias_3 }
|
|
|
293
299
|
* </nav>
|
|
294
300
|
* ```
|
|
295
301
|
*/
|
|
296
|
-
declare
|
|
297
|
-
|
|
298
|
-
declare namespace Breadcrumbs {
|
|
299
|
-
var displayName: string;
|
|
300
|
-
}
|
|
302
|
+
declare const Breadcrumbs: ForwardRefExoticComponent<BreadcrumbsProps & RefAttributes<HTMLDivElement>>;
|
|
301
303
|
export { Breadcrumbs }
|
|
302
304
|
export { Breadcrumbs as Breadcrumbs_alias_1 }
|
|
303
305
|
export { Breadcrumbs as Breadcrumbs_alias_2 }
|
|
304
306
|
export { Breadcrumbs as Breadcrumbs_alias_3 }
|
|
305
307
|
|
|
306
308
|
declare interface BreadcrumbsProps extends HTMLAttributes<HTMLOListElement> {
|
|
307
|
-
children: ReactElement<HTMLLIElement> | ReactElement<HTMLLIElement>[];
|
|
309
|
+
children: ReactNode | ReactElement<HTMLLIElement> | ReactElement<HTMLLIElement>[];
|
|
308
310
|
/**
|
|
309
311
|
* Props passed to the `ol` html element
|
|
310
312
|
*/
|
|
@@ -315,29 +317,19 @@ export { BreadcrumbsProps as BreadcrumbsProps_alias_1 }
|
|
|
315
317
|
export { BreadcrumbsProps as BreadcrumbsProps_alias_2 }
|
|
316
318
|
export { BreadcrumbsProps as BreadcrumbsProps_alias_3 }
|
|
317
319
|
|
|
318
|
-
|
|
320
|
+
declare type Breakpoints = "initial" | "small" | "medium" | "large" | "xlarge";
|
|
319
321
|
|
|
320
|
-
declare
|
|
321
|
-
/**
|
|
322
|
-
* The background fill of the button
|
|
323
|
-
*/
|
|
324
|
-
fill?: "contained" | "outline";
|
|
325
|
-
} | {
|
|
326
|
-
/**
|
|
327
|
-
* @deprecated use `fill='outline'` instead
|
|
328
|
-
*/
|
|
329
|
-
fill?: "outlined";
|
|
330
|
-
});
|
|
331
|
-
export { ButtonProps }
|
|
332
|
-
export { ButtonProps as ButtonProps_alias_1 }
|
|
333
|
-
export { ButtonProps as ButtonProps_alias_2 }
|
|
334
|
-
export { ButtonProps as ButtonProps_alias_3 }
|
|
322
|
+
export declare const ButtonAsLink: Story_18;
|
|
335
323
|
|
|
336
|
-
declare interface
|
|
324
|
+
declare interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
|
|
337
325
|
/**
|
|
338
326
|
* The height, font size and padding of the button
|
|
339
327
|
*/
|
|
340
328
|
size?: "small" | "medium" | "large";
|
|
329
|
+
/**
|
|
330
|
+
* The background fill of the button
|
|
331
|
+
*/
|
|
332
|
+
fill?: "contained" | "outline";
|
|
341
333
|
/**
|
|
342
334
|
* Make the button use 100% width available.
|
|
343
335
|
* Using the "mobile" it only stretch to full width on smaller screens
|
|
@@ -349,6 +341,10 @@ declare interface ButtonPropsInternal extends React.ButtonHTMLAttributes<HTMLBut
|
|
|
349
341
|
icon?: React.ReactNode;
|
|
350
342
|
children?: React.ReactNode;
|
|
351
343
|
}
|
|
344
|
+
export { ButtonProps }
|
|
345
|
+
export { ButtonProps as ButtonProps_alias_1 }
|
|
346
|
+
export { ButtonProps as ButtonProps_alias_2 }
|
|
347
|
+
export { ButtonProps as ButtonProps_alias_3 }
|
|
352
348
|
|
|
353
349
|
export declare const Card_alias_2: Story_6;
|
|
354
350
|
|
|
@@ -544,7 +540,7 @@ export { CheckboxProps as CheckboxProps_alias_4 }
|
|
|
544
540
|
|
|
545
541
|
export declare function CloseIcon(): JSX_2.Element;
|
|
546
542
|
|
|
547
|
-
export declare const CompleteShowMoreShowLess:
|
|
543
|
+
export declare const CompleteShowMoreShowLess: Story_24;
|
|
548
544
|
|
|
549
545
|
/**
|
|
550
546
|
* Container is a layout component that is used to wrap content.
|
|
@@ -579,93 +575,137 @@ export { DarkBadge as DarkBadge_alias_1 }
|
|
|
579
575
|
export { DarkBadge as DarkBadge_alias_2 }
|
|
580
576
|
export { DarkBadge as DarkBadge_alias_3 }
|
|
581
577
|
|
|
582
|
-
export declare const Darkmode:
|
|
578
|
+
export declare const Darkmode: Story_27;
|
|
583
579
|
|
|
584
|
-
export declare const DarkmodeSmall:
|
|
580
|
+
export declare const DarkmodeSmall: Story_27;
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* A basic implementation of a date picker
|
|
584
|
+
*
|
|
585
|
+
* This date picker is an implementation of native date picker, as you get
|
|
586
|
+
* with `<input type="date" />`, where the input field is dressed in Hedwig styling.
|
|
587
|
+
*
|
|
588
|
+
* Due to accessibility concerns you will only see the appropriate Hedwig calendar
|
|
589
|
+
* icon in Chrome. Firefox will show built in icon and Safari will show no icon.
|
|
590
|
+
* Not tested in Edge.
|
|
591
|
+
*/
|
|
592
|
+
declare const DatePicker: ForwardRefExoticComponent<Omit<InputGroupProps & InputHTMLAttributes<HTMLInputElement>, "children" | "type"> & {
|
|
593
|
+
/**
|
|
594
|
+
* Accessible title for the calendar button
|
|
595
|
+
*
|
|
596
|
+
* This button currently only shows in Chrome.
|
|
597
|
+
*
|
|
598
|
+
* @defaultValue "Åpne kalender"
|
|
599
|
+
*/
|
|
600
|
+
calendarButtonTitle?: string | undefined;
|
|
601
|
+
} & RefAttributes<HTMLInputElement>>;
|
|
602
|
+
export { DatePicker }
|
|
603
|
+
export { DatePicker as DatePicker_alias_1 }
|
|
604
|
+
export { DatePicker as DatePicker_alias_2 }
|
|
605
|
+
export { DatePicker as DatePicker_alias_3 }
|
|
606
|
+
export { DatePicker as DatePicker_alias_4 }
|
|
607
|
+
|
|
608
|
+
declare type DatePickerProps = Omit<InputGroupProps & InputHTMLAttributes<HTMLInputElement>, "children" | "type"> & {
|
|
609
|
+
/**
|
|
610
|
+
* Accessible title for the calendar button
|
|
611
|
+
*
|
|
612
|
+
* This button currently only shows in Chrome.
|
|
613
|
+
*
|
|
614
|
+
* @defaultValue "Åpne kalender"
|
|
615
|
+
*/
|
|
616
|
+
calendarButtonTitle?: string;
|
|
617
|
+
};
|
|
618
|
+
export { DatePickerProps }
|
|
619
|
+
export { DatePickerProps as DatePickerProps_alias_1 }
|
|
620
|
+
export { DatePickerProps as DatePickerProps_alias_2 }
|
|
621
|
+
export { DatePickerProps as DatePickerProps_alias_3 }
|
|
622
|
+
export { DatePickerProps as DatePickerProps_alias_4 }
|
|
585
623
|
|
|
586
624
|
export declare const Default: Story_4;
|
|
587
625
|
|
|
588
626
|
export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
589
627
|
|
|
590
|
-
export declare const Default_alias_1:
|
|
628
|
+
export declare const Default_alias_1: Story_10;
|
|
591
629
|
|
|
592
630
|
export declare const default_alias_1: Meta<typeof AccordionComponent>;
|
|
593
631
|
|
|
594
|
-
export declare const default_alias_10: Meta<typeof
|
|
632
|
+
export declare const default_alias_10: Meta<typeof ErrorMessage>;
|
|
595
633
|
|
|
596
|
-
export declare const default_alias_11: Meta<typeof
|
|
634
|
+
export declare const default_alias_11: Meta<typeof Fieldset>;
|
|
597
635
|
|
|
598
|
-
export declare const default_alias_12: Meta<typeof
|
|
636
|
+
export declare const default_alias_12: Meta<typeof Input>;
|
|
599
637
|
|
|
600
|
-
export declare const default_alias_13: Meta<typeof
|
|
638
|
+
export declare const default_alias_13: Meta<typeof Radiobutton>;
|
|
601
639
|
|
|
602
|
-
export declare const default_alias_14: Meta<typeof
|
|
640
|
+
export declare const default_alias_14: Meta<typeof RadioGroup>;
|
|
603
641
|
|
|
604
|
-
export declare const default_alias_15: Meta<typeof
|
|
642
|
+
export declare const default_alias_15: Meta<typeof Select>;
|
|
605
643
|
|
|
606
|
-
export declare const default_alias_16: Meta<typeof
|
|
644
|
+
export declare const default_alias_16: Meta<typeof Textarea>;
|
|
607
645
|
|
|
608
|
-
export declare const default_alias_17: Meta<typeof
|
|
646
|
+
export declare const default_alias_17: Meta<typeof Container>;
|
|
609
647
|
|
|
610
|
-
export declare const default_alias_18: Meta<typeof
|
|
648
|
+
export declare const default_alias_18: Meta<typeof Link>;
|
|
611
649
|
|
|
612
|
-
export declare const default_alias_19: Meta<typeof
|
|
650
|
+
export declare const default_alias_19: Meta<typeof LinkList>;
|
|
613
651
|
|
|
614
|
-
export declare const Default_alias_2:
|
|
652
|
+
export declare const Default_alias_2: Story_11;
|
|
615
653
|
|
|
616
654
|
export declare const default_alias_2: Meta<typeof Badge>;
|
|
617
655
|
|
|
618
|
-
export declare const default_alias_20: Meta<typeof
|
|
656
|
+
export declare const default_alias_20: Meta<typeof UnorderedList>;
|
|
619
657
|
|
|
620
|
-
export declare const default_alias_21: Meta<typeof
|
|
658
|
+
export declare const default_alias_21: Meta<typeof MessageComponent>;
|
|
621
659
|
|
|
622
|
-
export declare const default_alias_22: Meta<typeof
|
|
660
|
+
export declare const default_alias_22: Meta<typeof ModalComponent>;
|
|
623
661
|
|
|
624
|
-
export declare const default_alias_23: Meta<typeof
|
|
662
|
+
export declare const default_alias_23: Meta<typeof NavbarComponent>;
|
|
625
663
|
|
|
626
|
-
export declare const default_alias_24: Meta<typeof
|
|
664
|
+
export declare const default_alias_24: Meta<typeof ShowMoreButton>;
|
|
627
665
|
|
|
628
|
-
export declare const default_alias_25: Meta<typeof
|
|
666
|
+
export declare const default_alias_25: Meta<typeof Skeleton>;
|
|
629
667
|
|
|
630
|
-
export declare const default_alias_26: Meta<typeof
|
|
668
|
+
export declare const default_alias_26: Meta<typeof StepIndicator>;
|
|
631
669
|
|
|
632
|
-
export declare const default_alias_27: Meta<typeof
|
|
670
|
+
export declare const default_alias_27: Meta<typeof StyledHtml>;
|
|
633
671
|
|
|
634
|
-
export declare const default_alias_28: Meta<typeof
|
|
672
|
+
export declare const default_alias_28: Meta<typeof TabsComponent>;
|
|
635
673
|
|
|
636
|
-
export declare const default_alias_29: Meta<typeof
|
|
674
|
+
export declare const default_alias_29: Meta<typeof Text_2>;
|
|
637
675
|
|
|
638
|
-
export declare const Default_alias_3:
|
|
676
|
+
export declare const Default_alias_3: Story_15;
|
|
639
677
|
|
|
640
678
|
export declare const default_alias_3: Meta<typeof BoxComponent>;
|
|
641
679
|
|
|
642
|
-
export declare const
|
|
680
|
+
export declare const default_alias_30: Meta<typeof WarningBanner>;
|
|
681
|
+
|
|
682
|
+
export declare const Default_alias_4: Story_17;
|
|
643
683
|
|
|
644
684
|
export declare const default_alias_4: Meta<typeof Breadcrumbs>;
|
|
645
685
|
|
|
646
|
-
export declare const Default_alias_5:
|
|
686
|
+
export declare const Default_alias_5: Story_23;
|
|
647
687
|
|
|
648
688
|
export declare const default_alias_5: Meta<typeof PrimaryButton>;
|
|
649
689
|
|
|
650
|
-
export declare const Default_alias_6:
|
|
690
|
+
export declare const Default_alias_6: Story_25;
|
|
651
691
|
|
|
652
692
|
export declare const default_alias_6: Meta<typeof CardComponent>;
|
|
653
693
|
|
|
654
|
-
export declare const Default_alias_7:
|
|
694
|
+
export declare const Default_alias_7: Story_26;
|
|
655
695
|
|
|
656
696
|
export declare const default_alias_7: Meta<typeof DescriptionList>;
|
|
657
697
|
|
|
658
|
-
export declare const Default_alias_8:
|
|
698
|
+
export declare const Default_alias_8: Story_27;
|
|
659
699
|
|
|
660
700
|
export declare const default_alias_8: Meta<typeof Checkbox>;
|
|
661
701
|
|
|
662
|
-
export declare const Default_alias_9:
|
|
702
|
+
export declare const Default_alias_9: Story_29;
|
|
663
703
|
|
|
664
|
-
export declare const default_alias_9: Meta<typeof
|
|
704
|
+
export declare const default_alias_9: Meta<typeof DatePicker>;
|
|
665
705
|
|
|
666
706
|
export declare const DefaultOpen: Story;
|
|
667
707
|
|
|
668
|
-
export declare const DefaultWithError:
|
|
708
|
+
export declare const DefaultWithError: Story_15;
|
|
669
709
|
|
|
670
710
|
/**
|
|
671
711
|
* Uses the HTML5 `<dl>` element
|
|
@@ -696,11 +736,7 @@ export declare const DefaultWithError: Story_14;
|
|
|
696
736
|
* </DescriptionList>
|
|
697
737
|
* ```
|
|
698
738
|
*/
|
|
699
|
-
declare
|
|
700
|
-
|
|
701
|
-
declare namespace DescriptionList {
|
|
702
|
-
var displayName: string;
|
|
703
|
-
}
|
|
739
|
+
declare const DescriptionList: ForwardRefExoticComponent<DescriptionListProps & RefAttributes<HTMLDListElement>>;
|
|
704
740
|
export { DescriptionList }
|
|
705
741
|
export { DescriptionList as DescriptionList_alias_1 }
|
|
706
742
|
export { DescriptionList as DescriptionList_alias_2 }
|
|
@@ -725,9 +761,9 @@ export declare const DetailedContentCheckbox: Story_8;
|
|
|
725
761
|
|
|
726
762
|
export declare const DetailedContentCheckboxWithBoundingBox: Story_8;
|
|
727
763
|
|
|
728
|
-
export declare const DetailedContentRadiobutton:
|
|
764
|
+
export declare const DetailedContentRadiobutton: Story_13;
|
|
729
765
|
|
|
730
|
-
export declare const DetailedContentRadiobuttonWithBoundingBox:
|
|
766
|
+
export declare const DetailedContentRadiobuttonWithBoundingBox: Story_13;
|
|
731
767
|
|
|
732
768
|
declare interface DimensionsFromWidthAndHeight {
|
|
733
769
|
height?: number | string;
|
|
@@ -752,7 +788,7 @@ export { ErrorMessageProps as ErrorMessageProps_alias_2 }
|
|
|
752
788
|
export { ErrorMessageProps as ErrorMessageProps_alias_3 }
|
|
753
789
|
export { ErrorMessageProps as ErrorMessageProps_alias_4 }
|
|
754
790
|
|
|
755
|
-
export declare const Expandable:
|
|
791
|
+
export declare const Expandable: Story_30;
|
|
756
792
|
|
|
757
793
|
declare const Fieldset: ForwardRefExoticComponent<FieldsetProps & RefAttributes<HTMLFieldSetElement>>;
|
|
758
794
|
export { Fieldset }
|
|
@@ -761,9 +797,9 @@ export { Fieldset as Fieldset_alias_2 }
|
|
|
761
797
|
export { Fieldset as Fieldset_alias_3 }
|
|
762
798
|
export { Fieldset as Fieldset_alias_4 }
|
|
763
799
|
|
|
764
|
-
export declare const FieldsetErrorCheckboxes:
|
|
800
|
+
export declare const FieldsetErrorCheckboxes: Story_11;
|
|
765
801
|
|
|
766
|
-
export declare const FieldsetErrorRadiobuttons:
|
|
802
|
+
export declare const FieldsetErrorRadiobuttons: Story_11;
|
|
767
803
|
|
|
768
804
|
declare interface FieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {
|
|
769
805
|
className?: string;
|
|
@@ -787,6 +823,19 @@ export { FieldsetProps as FieldsetProps_alias_2 }
|
|
|
787
823
|
export { FieldsetProps as FieldsetProps_alias_3 }
|
|
788
824
|
export { FieldsetProps as FieldsetProps_alias_4 }
|
|
789
825
|
|
|
826
|
+
/**
|
|
827
|
+
* Trap focus inside an element using the `inert` attribute.
|
|
828
|
+
*
|
|
829
|
+
* Adds `inert` to all siblings of the given element, and all their ancestors up to the body.
|
|
830
|
+
* Returns a cleanup function which removes the `inert` property from the elements, effectively giving focus back to rest of the document.
|
|
831
|
+
*
|
|
832
|
+
* NOTE: Does not support portals, i.e. elements outside the DOM hierarchy of the given element.
|
|
833
|
+
*
|
|
834
|
+
* @see https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert
|
|
835
|
+
* @see https://web.dev/articles/inert
|
|
836
|
+
*/
|
|
837
|
+
export declare function focusTrap(element: HTMLElement): () => void;
|
|
838
|
+
|
|
790
839
|
/**
|
|
791
840
|
* 🚨 WORK IN PROGRESS 🚨
|
|
792
841
|
*/
|
|
@@ -837,9 +886,6 @@ declare interface FooterLinkSectionProps extends HTMLAttributes<HTMLDivElement>
|
|
|
837
886
|
* Responsive sections of links. Will become an accordion on mobile.
|
|
838
887
|
*
|
|
839
888
|
* Use with `Footer.LinkSection` for each section.
|
|
840
|
-
*
|
|
841
|
-
* TODO:
|
|
842
|
-
* - [ ] Decrease number of DOM elements rendered. We should not rely on conditional rendering as that will make server-side rendering harder.
|
|
843
889
|
*/
|
|
844
890
|
declare const FooterLinkSections: ForwardRefExoticComponent<FooterLinkSectionsProps & RefAttributes<HTMLDivElement>>;
|
|
845
891
|
export { FooterLinkSections }
|
|
@@ -881,20 +927,210 @@ export { FooterProps as FooterProps_alias_1 }
|
|
|
881
927
|
export { FooterProps as FooterProps_alias_2 }
|
|
882
928
|
export { FooterProps as FooterProps_alias_3 }
|
|
883
929
|
|
|
884
|
-
export declare const FormWithErrorsOnSubmit:
|
|
930
|
+
export declare const FormWithErrorsOnSubmit: Story_12;
|
|
931
|
+
|
|
932
|
+
export declare function getResponsiveProps<T>(variable: `--hds-${string}`, inputValues?: ResponsiveProp<T>, valueTransformer?: (value: T) => string): Record<string, string>;
|
|
933
|
+
|
|
934
|
+
export declare function getSpacingVariable(size: SpacingSizes | ResponsiveSpacingSizes): string;
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* 🚧 A simple opionated abstraction over CSS Grid.
|
|
938
|
+
*
|
|
939
|
+
* The grid is always a 12 column grid.
|
|
940
|
+
*
|
|
941
|
+
* example
|
|
942
|
+
* ```tsx
|
|
943
|
+
* <Grid gap="12-16" span={{ small: 6 }}>
|
|
944
|
+
* <div>6/12</div>
|
|
945
|
+
* <div>6/12</div>
|
|
946
|
+
* <Grid.Item span={{ small: 12 }}>12/12</Grid.Item>
|
|
947
|
+
* <div>6/12</div>
|
|
948
|
+
* <div>6/12</div>
|
|
949
|
+
* </Grid>
|
|
950
|
+
* ```
|
|
951
|
+
*/
|
|
952
|
+
export declare const Grid_alias_3: ForwardRefExoticComponent<GridProps & RefAttributes<HTMLDivElement>>;
|
|
953
|
+
|
|
954
|
+
declare const GridComponent: ForwardRefExoticComponent<GridProps & RefAttributes<HTMLDivElement>> & {
|
|
955
|
+
Item: typeof GridItem;
|
|
956
|
+
};
|
|
957
|
+
export { GridComponent as Grid }
|
|
958
|
+
export { GridComponent as Grid_alias_1 }
|
|
959
|
+
export { GridComponent as Grid_alias_2 }
|
|
960
|
+
export { GridComponent as Grid_alias_4 }
|
|
961
|
+
|
|
962
|
+
/**
|
|
963
|
+
* 🚧 Grid.Item
|
|
964
|
+
*
|
|
965
|
+
* Use as the direct child of a `Grid` to override `span` and `center` for individual items.
|
|
966
|
+
*/
|
|
967
|
+
declare const GridItem: ForwardRefExoticComponent<GridItemProps & RefAttributes<HTMLDivElement>>;
|
|
968
|
+
export { GridItem }
|
|
969
|
+
export { GridItem as GridItem_alias_1 }
|
|
970
|
+
export { GridItem as GridItem_alias_2 }
|
|
971
|
+
export { GridItem as GridItem_alias_3 }
|
|
972
|
+
export { GridItem as GridItem_alias_4 }
|
|
973
|
+
|
|
974
|
+
declare interface GridItemProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
975
|
+
children: React.ReactNode;
|
|
976
|
+
/**
|
|
977
|
+
* Column span for the grid item
|
|
978
|
+
*
|
|
979
|
+
* `default` is `12`
|
|
980
|
+
*/
|
|
981
|
+
span?: ResponsiveProp<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;
|
|
982
|
+
/**
|
|
983
|
+
* Center the grid item horizontally
|
|
984
|
+
*
|
|
985
|
+
* Offsets the start position of the grid item relative to it's span so that it appears centered.
|
|
986
|
+
*
|
|
987
|
+
* assumes a span of 2, 4, 6, 8, or 10
|
|
988
|
+
*
|
|
989
|
+
* a span of `12` is 100% width and centering has no effect
|
|
990
|
+
*
|
|
991
|
+
* `default` is `false`
|
|
992
|
+
*/
|
|
993
|
+
center?: ResponsiveProp<boolean>;
|
|
994
|
+
/**
|
|
995
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
996
|
+
*/
|
|
997
|
+
asChild?: boolean;
|
|
998
|
+
}
|
|
999
|
+
export { GridItemProps }
|
|
1000
|
+
export { GridItemProps as GridItemProps_alias_1 }
|
|
1001
|
+
export { GridItemProps as GridItemProps_alias_2 }
|
|
1002
|
+
export { GridItemProps as GridItemProps_alias_3 }
|
|
1003
|
+
export { GridItemProps as GridItemProps_alias_4 }
|
|
1004
|
+
|
|
1005
|
+
declare interface GridProps extends React.HTMLAttributes<HTMLDivElement> {
|
|
1006
|
+
children: React.ReactNode;
|
|
1007
|
+
/**
|
|
1008
|
+
* Space between grid items. Both horizontal and vertical.
|
|
1009
|
+
*
|
|
1010
|
+
* Use the responsive shorthand `12-16` to jump a level at the `large` breakpoint.
|
|
1011
|
+
*
|
|
1012
|
+
* Or use the responsive object `{ initial: 40, large: 64 }` to set different values at different breakpoints.
|
|
1013
|
+
*
|
|
1014
|
+
* Use `gapX` and `gapY` to set different values for horizontal and vertical spacing.
|
|
1015
|
+
*/
|
|
1016
|
+
gap?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1017
|
+
/**
|
|
1018
|
+
* Space between grid items horizontally
|
|
1019
|
+
*/
|
|
1020
|
+
gapX?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1021
|
+
/**
|
|
1022
|
+
* Space between grid items vertically
|
|
1023
|
+
*/
|
|
1024
|
+
gapY?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1025
|
+
/**
|
|
1026
|
+
* Column span for the grid items
|
|
1027
|
+
*
|
|
1028
|
+
* `default` is `12`
|
|
1029
|
+
*/
|
|
1030
|
+
span?: ResponsiveProp<1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12>;
|
|
1031
|
+
/**
|
|
1032
|
+
* Center grid items horizontally
|
|
1033
|
+
*
|
|
1034
|
+
* Offsets the start position of the grid items relative to their span so that it appears centered.
|
|
1035
|
+
*
|
|
1036
|
+
* assumes a span of 2, 4, 6, 8, or 10
|
|
1037
|
+
*
|
|
1038
|
+
* a span of `12` is 100% width and centering has no effect
|
|
1039
|
+
*
|
|
1040
|
+
* `default` is `false`
|
|
1041
|
+
*/
|
|
1042
|
+
center?: ResponsiveProp<boolean>;
|
|
1043
|
+
/**
|
|
1044
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1045
|
+
*/
|
|
1046
|
+
asChild?: boolean;
|
|
1047
|
+
}
|
|
1048
|
+
export { GridProps }
|
|
1049
|
+
export { GridProps as GridProps_alias_1 }
|
|
1050
|
+
export { GridProps as GridProps_alias_2 }
|
|
1051
|
+
export { GridProps as GridProps_alias_3 }
|
|
1052
|
+
export { GridProps as GridProps_alias_4 }
|
|
885
1053
|
|
|
886
1054
|
declare interface HeadingProps {
|
|
887
1055
|
variant: "h1-display" | "h1" | "h2" | "h3" | "h3-title";
|
|
888
1056
|
as: React_3.ElementType;
|
|
889
1057
|
}
|
|
890
1058
|
|
|
1059
|
+
/**
|
|
1060
|
+
* Show a help text for a word or phrase when clicked
|
|
1061
|
+
*
|
|
1062
|
+
* Useful for providing explanations for domain-specific terms, acronyms or phrases that could do with further elaboration
|
|
1063
|
+
*
|
|
1064
|
+
* **Usage**
|
|
1065
|
+
* ```tsx
|
|
1066
|
+
* <p>
|
|
1067
|
+
* En annen avgjørende faktor for avgifter er om nettbutikken er registrert i{" "}
|
|
1068
|
+
* <HelpText helpText={`VOEC er en forkortelse for "VAT on E-commerce" (mva. på e-handel).`}>
|
|
1069
|
+
* VOEC
|
|
1070
|
+
* </HelpText>
|
|
1071
|
+
* </p>
|
|
1072
|
+
* ```
|
|
1073
|
+
*/
|
|
1074
|
+
declare const HelpText: ForwardRefExoticComponent<HelpTextProps & RefAttributes<HTMLButtonElement>>;
|
|
1075
|
+
export { HelpText }
|
|
1076
|
+
export { HelpText as HelpText_alias_1 }
|
|
1077
|
+
export { HelpText as HelpText_alias_2 }
|
|
1078
|
+
export { HelpText as HelpText_alias_3 }
|
|
1079
|
+
|
|
1080
|
+
declare interface HelpTextProps extends React.HTMLAttributes<HTMLButtonElement> {
|
|
1081
|
+
className?: string;
|
|
1082
|
+
/**
|
|
1083
|
+
* The content of the help text, often a word or phrase that could use some explanation
|
|
1084
|
+
*/
|
|
1085
|
+
children: React.ReactNode;
|
|
1086
|
+
/**
|
|
1087
|
+
* The help text that will be shown when the user clicks the trigger
|
|
1088
|
+
*/
|
|
1089
|
+
helpText: React.ReactNode;
|
|
1090
|
+
/**
|
|
1091
|
+
* The title of the help text. Used by screen readers and if the user hover over the help text
|
|
1092
|
+
*/
|
|
1093
|
+
title?: string;
|
|
1094
|
+
/**
|
|
1095
|
+
* Props for the `Box` that contains the help text
|
|
1096
|
+
*/
|
|
1097
|
+
boxProps?: React.ComponentProps<typeof BoxComponent>;
|
|
1098
|
+
/**
|
|
1099
|
+
* The side of the trigger the popover should be attached to
|
|
1100
|
+
*
|
|
1101
|
+
* default is `top`
|
|
1102
|
+
*/
|
|
1103
|
+
side?: "top" | "right" | "bottom" | "left";
|
|
1104
|
+
/**
|
|
1105
|
+
* The alignment of the popover content
|
|
1106
|
+
*
|
|
1107
|
+
* default is `start`
|
|
1108
|
+
*/
|
|
1109
|
+
align?: "center" | "end" | "start";
|
|
1110
|
+
}
|
|
1111
|
+
|
|
891
1112
|
export declare const Horizontal: Story_7;
|
|
892
1113
|
|
|
893
|
-
export declare const Horizontal_alias_1:
|
|
1114
|
+
export declare const Horizontal_alias_1: Story_28;
|
|
894
1115
|
|
|
895
1116
|
export declare const HorizontalLongContent: Story_7;
|
|
896
1117
|
|
|
897
|
-
export declare const HorizontalWithMiddleSelected:
|
|
1118
|
+
export declare const HorizontalWithMiddleSelected: Story_28;
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* 🚨 WORK IN PROGRESS 🚨
|
|
1122
|
+
*
|
|
1123
|
+
* TODO
|
|
1124
|
+
* - [ ] Add more examples
|
|
1125
|
+
* - [ ] Document usage
|
|
1126
|
+
* - [ ] Document props
|
|
1127
|
+
*/
|
|
1128
|
+
declare const HStack: React_2.ForwardRefExoticComponent<Omit<StackProps, "direction"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
1129
|
+
export { HStack }
|
|
1130
|
+
export { HStack as HStack_alias_1 }
|
|
1131
|
+
export { HStack as HStack_alias_2 }
|
|
1132
|
+
export { HStack as HStack_alias_3 }
|
|
1133
|
+
export { HStack as HStack_alias_4 }
|
|
898
1134
|
|
|
899
1135
|
export declare const IconPrimary: Story_5;
|
|
900
1136
|
|
|
@@ -925,7 +1161,12 @@ declare interface InputGroupProps {
|
|
|
925
1161
|
label: ReactNode;
|
|
926
1162
|
disabled?: boolean;
|
|
927
1163
|
readOnly?: boolean;
|
|
928
|
-
|
|
1164
|
+
/**
|
|
1165
|
+
* `children` must be either a single input element or a render function.
|
|
1166
|
+
*
|
|
1167
|
+
* If you use a render function, make sure you spread the input props to the appropriate element.
|
|
1168
|
+
*/
|
|
1169
|
+
children: Exclude<ReactNode, Iterable<ReactNode>> | ((inputProps: InputProps_2) => ReactNode);
|
|
929
1170
|
}
|
|
930
1171
|
export { InputGroupProps }
|
|
931
1172
|
export { InputGroupProps as InputGroupProps_alias_1 }
|
|
@@ -937,15 +1178,22 @@ export { InputProps as InputProps_alias_2 }
|
|
|
937
1178
|
export { InputProps as InputProps_alias_3 }
|
|
938
1179
|
export { InputProps as InputProps_alias_4 }
|
|
939
1180
|
|
|
940
|
-
|
|
1181
|
+
declare interface InputProps_2 {
|
|
1182
|
+
"aria-describedby"?: string;
|
|
1183
|
+
"aria-invalid"?: boolean;
|
|
1184
|
+
id?: string;
|
|
1185
|
+
className?: string;
|
|
1186
|
+
}
|
|
1187
|
+
|
|
1188
|
+
export declare const Inverted: Story_18;
|
|
941
1189
|
|
|
942
1190
|
export declare const JustACheckbox: Story_8;
|
|
943
1191
|
|
|
944
|
-
export declare const JustARadiobutton:
|
|
1192
|
+
export declare const JustARadiobutton: Story_13;
|
|
945
1193
|
|
|
946
1194
|
export declare const JustOneItem: Story;
|
|
947
1195
|
|
|
948
|
-
export declare const LargeLegend:
|
|
1196
|
+
export declare const LargeLegend: Story_11;
|
|
949
1197
|
|
|
950
1198
|
export declare const Lighter: Story_2;
|
|
951
1199
|
|
|
@@ -959,7 +1207,7 @@ export { Link as Link_alias_1 }
|
|
|
959
1207
|
export { Link as Link_alias_2 }
|
|
960
1208
|
export { Link as Link_alias_3 }
|
|
961
1209
|
|
|
962
|
-
export declare const LinkInDescription:
|
|
1210
|
+
export declare const LinkInDescription: Story_30;
|
|
963
1211
|
|
|
964
1212
|
/**
|
|
965
1213
|
* Show a list of links
|
|
@@ -984,7 +1232,7 @@ export { LinkListProps as LinkListProps_alias_1 }
|
|
|
984
1232
|
export { LinkListProps as LinkListProps_alias_2 }
|
|
985
1233
|
export { LinkListProps as LinkListProps_alias_3 }
|
|
986
1234
|
|
|
987
|
-
export declare const LinkListStory:
|
|
1235
|
+
export declare const LinkListStory: Story_19;
|
|
988
1236
|
|
|
989
1237
|
declare interface LinkProps extends React_2.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
990
1238
|
/**
|
|
@@ -1014,9 +1262,9 @@ export { ListProps as ListProps_alias_1 }
|
|
|
1014
1262
|
export { ListProps as ListProps_alias_2 }
|
|
1015
1263
|
export { ListProps as ListProps_alias_3 }
|
|
1016
1264
|
|
|
1017
|
-
export declare const LoadingCards:
|
|
1265
|
+
export declare const LoadingCards: Story_25;
|
|
1018
1266
|
|
|
1019
|
-
export declare const LongDescriptionOnly:
|
|
1267
|
+
export declare const LongDescriptionOnly: Story_21;
|
|
1020
1268
|
|
|
1021
1269
|
export declare const Main: {
|
|
1022
1270
|
render: (args: ModalProps & RefAttributes<HTMLDialogElement>) => JSX_2.Element;
|
|
@@ -1039,7 +1287,11 @@ export { MessageComponent as Message }
|
|
|
1039
1287
|
export { MessageComponent as Message_alias_1 }
|
|
1040
1288
|
export { MessageComponent as Message_alias_2 }
|
|
1041
1289
|
|
|
1042
|
-
|
|
1290
|
+
declare const MessageDescription: OverridableComponent<object, HTMLParagraphElement>;
|
|
1291
|
+
export { MessageDescription }
|
|
1292
|
+
export { MessageDescription as MessageDescription_alias_1 }
|
|
1293
|
+
export { MessageDescription as MessageDescription_alias_2 }
|
|
1294
|
+
export { MessageDescription as MessageDescription_alias_3 }
|
|
1043
1295
|
|
|
1044
1296
|
export declare type MessageProps = ({
|
|
1045
1297
|
variant?: "success" | "attention" | "warning";
|
|
@@ -1051,9 +1303,13 @@ export declare type MessageProps = ({
|
|
|
1051
1303
|
iconClassName?: string;
|
|
1052
1304
|
}) & Omit<BoxProps, "variant">;
|
|
1053
1305
|
|
|
1054
|
-
|
|
1306
|
+
declare const MessageTitle: OverridableComponent<object, HTMLParagraphElement>;
|
|
1307
|
+
export { MessageTitle }
|
|
1308
|
+
export { MessageTitle as MessageTitle_alias_1 }
|
|
1309
|
+
export { MessageTitle as MessageTitle_alias_2 }
|
|
1310
|
+
export { MessageTitle as MessageTitle_alias_3 }
|
|
1055
1311
|
|
|
1056
|
-
export declare const MinAndMax:
|
|
1312
|
+
export declare const MinAndMax: Story_29;
|
|
1057
1313
|
|
|
1058
1314
|
/**
|
|
1059
1315
|
* A modal dialog is a window that forces the user to interact with it before they can return to other parts of the application.
|
|
@@ -1076,10 +1332,13 @@ export declare const MinAndMax: Story_28;
|
|
|
1076
1332
|
something about the consequences.
|
|
1077
1333
|
</p>
|
|
1078
1334
|
</Modal.Content>
|
|
1079
|
-
<Modal.Footer
|
|
1335
|
+
<Modal.Footer>
|
|
1336
|
+
<HStack gap="16" wrap>
|
|
1337
|
+
<PrimaryButton onClick={onMainAction}>Main action</PrimaryButton>
|
|
1080
1338
|
<PrimaryButton fill="outline" onClick={onClose}>
|
|
1081
|
-
|
|
1339
|
+
Cancel
|
|
1082
1340
|
</PrimaryButton>
|
|
1341
|
+
</HStack>
|
|
1083
1342
|
</Modal.Footer>
|
|
1084
1343
|
</Modal>
|
|
1085
1344
|
</>
|
|
@@ -1131,7 +1390,7 @@ export { ModalProps as ModalProps_alias_1 }
|
|
|
1131
1390
|
export { ModalProps as ModalProps_alias_2 }
|
|
1132
1391
|
export { ModalProps as ModalProps_alias_3 }
|
|
1133
1392
|
|
|
1134
|
-
export declare const MuchContentBelow:
|
|
1393
|
+
export declare const MuchContentBelow: Story_22;
|
|
1135
1394
|
|
|
1136
1395
|
export declare const MultipleItems: Story;
|
|
1137
1396
|
|
|
@@ -1162,6 +1421,13 @@ export { NavbarComponent as Navbar }
|
|
|
1162
1421
|
export { NavbarComponent as Navbar_alias_1 }
|
|
1163
1422
|
export { NavbarComponent as Navbar_alias_2 }
|
|
1164
1423
|
|
|
1424
|
+
/**
|
|
1425
|
+
* Expandable Menu Provider
|
|
1426
|
+
* Handles scroll and focus locking,
|
|
1427
|
+
* as well as scrolling the user to the top of the page.
|
|
1428
|
+
*
|
|
1429
|
+
* If we want a sticky header in the future the scrolling should be configurable
|
|
1430
|
+
*/
|
|
1165
1431
|
export declare function NavbarExpandableMenu({ children }: NavbarExpandableMenuProps): JSX_2.Element;
|
|
1166
1432
|
|
|
1167
1433
|
export declare namespace NavbarExpandableMenu {
|
|
@@ -1183,9 +1449,6 @@ export declare interface NavbarExpandableMenuContentProps {
|
|
|
1183
1449
|
className?: string;
|
|
1184
1450
|
}
|
|
1185
1451
|
|
|
1186
|
-
/**
|
|
1187
|
-
* Root
|
|
1188
|
-
*/
|
|
1189
1452
|
export declare interface NavbarExpandableMenuProps {
|
|
1190
1453
|
children: React_3.ReactNode;
|
|
1191
1454
|
}
|
|
@@ -1194,11 +1457,6 @@ export declare const NavbarExpandableMenuTrigger: React_3.ForwardRefExoticCompon
|
|
|
1194
1457
|
|
|
1195
1458
|
/**
|
|
1196
1459
|
* Trigger
|
|
1197
|
-
*
|
|
1198
|
-
* ## TODO
|
|
1199
|
-
* - [x] Hide text when on mobile
|
|
1200
|
-
* - [X] Open / Close icon
|
|
1201
|
-
* - [X] Make button have consistant width
|
|
1202
1460
|
*/
|
|
1203
1461
|
export declare interface NavbarExpandableMenuTriggerProps extends Omit<React_3.HTMLAttributes<HTMLButtonElement>, "children"> {
|
|
1204
1462
|
whenClosedText: React_3.ReactNode;
|
|
@@ -1284,13 +1542,13 @@ export { NavbarProps as NavbarProps_alias_1 }
|
|
|
1284
1542
|
export { NavbarProps as NavbarProps_alias_2 }
|
|
1285
1543
|
export { NavbarProps as NavbarProps_alias_3 }
|
|
1286
1544
|
|
|
1287
|
-
export declare const NestedLists:
|
|
1545
|
+
export declare const NestedLists: Story_20;
|
|
1288
1546
|
|
|
1289
|
-
export declare const Neutral:
|
|
1547
|
+
export declare const Neutral: Story_21;
|
|
1290
1548
|
|
|
1291
1549
|
export declare const NoIndent: Story;
|
|
1292
1550
|
|
|
1293
|
-
export declare const NoUnderline:
|
|
1551
|
+
export declare const NoUnderline: Story_18;
|
|
1294
1552
|
|
|
1295
1553
|
/**
|
|
1296
1554
|
* An ordered list of simple items
|
|
@@ -1307,7 +1565,7 @@ export { OrderedList as OrderedList_alias_1 }
|
|
|
1307
1565
|
export { OrderedList as OrderedList_alias_2 }
|
|
1308
1566
|
export { OrderedList as OrderedList_alias_3 }
|
|
1309
1567
|
|
|
1310
|
-
export declare const OrderedListStory:
|
|
1568
|
+
export declare const OrderedListStory: Story_20;
|
|
1311
1569
|
|
|
1312
1570
|
/**
|
|
1313
1571
|
* OverridableComponent makes the `as` prop available,
|
|
@@ -1335,21 +1593,23 @@ export declare const PlainCheckboxesWithError: Story_8;
|
|
|
1335
1593
|
|
|
1336
1594
|
export declare const PlainCheckboxeWithError: Story_8;
|
|
1337
1595
|
|
|
1338
|
-
export declare const
|
|
1596
|
+
export declare const PlainDatePicker: Story_9;
|
|
1597
|
+
|
|
1598
|
+
export declare const PlainInput: Story_12;
|
|
1339
1599
|
|
|
1340
|
-
export declare const PlainInputWithError:
|
|
1600
|
+
export declare const PlainInputWithError: Story_12;
|
|
1341
1601
|
|
|
1342
|
-
export declare const PlainRadiobuttons:
|
|
1602
|
+
export declare const PlainRadiobuttons: Story_13;
|
|
1343
1603
|
|
|
1344
|
-
export declare const PlainRadiobuttonsWithError:
|
|
1604
|
+
export declare const PlainRadiobuttonsWithError: Story_13;
|
|
1345
1605
|
|
|
1346
|
-
export declare const PlainRadioGroup:
|
|
1606
|
+
export declare const PlainRadioGroup: Story_14;
|
|
1347
1607
|
|
|
1348
|
-
export declare const PlainTextarea:
|
|
1608
|
+
export declare const PlainTextarea: Story_16;
|
|
1349
1609
|
|
|
1350
|
-
export declare const PlainTextareaWithError:
|
|
1610
|
+
export declare const PlainTextareaWithError: Story_16;
|
|
1351
1611
|
|
|
1352
|
-
export declare const PostenBringSideBySide:
|
|
1612
|
+
export declare const PostenBringSideBySide: Story_29;
|
|
1353
1613
|
|
|
1354
1614
|
export declare const Primary: Story_5;
|
|
1355
1615
|
|
|
@@ -1426,13 +1686,41 @@ export { RadioGroupProps as RadioGroupProps_alias_2 }
|
|
|
1426
1686
|
export { RadioGroupProps as RadioGroupProps_alias_3 }
|
|
1427
1687
|
export { RadioGroupProps as RadioGroupProps_alias_4 }
|
|
1428
1688
|
|
|
1429
|
-
export declare const ReadonlyInput:
|
|
1689
|
+
export declare const ReadonlyInput: Story_12;
|
|
1430
1690
|
|
|
1431
|
-
export declare const ReadonlyInputWithError:
|
|
1691
|
+
export declare const ReadonlyInputWithError: Story_12;
|
|
1432
1692
|
|
|
1433
|
-
export declare const ReadonlyTextarea:
|
|
1693
|
+
export declare const ReadonlyTextarea: Story_16;
|
|
1434
1694
|
|
|
1435
|
-
export declare const ReadonlyTextareaWithError:
|
|
1695
|
+
export declare const ReadonlyTextareaWithError: Story_16;
|
|
1696
|
+
|
|
1697
|
+
/**
|
|
1698
|
+
* Unset the `inert` attribute on all elements given
|
|
1699
|
+
*/
|
|
1700
|
+
export declare function releaseFocusTrap(inertElements: Iterable<HTMLElement>): void;
|
|
1701
|
+
|
|
1702
|
+
export declare type ResponsiveProp<T> = T | ResponsiveValues<T>;
|
|
1703
|
+
|
|
1704
|
+
export declare type ResponsiveSpacingSizes = keyof typeof responsiveSpacingSizes;
|
|
1705
|
+
|
|
1706
|
+
declare const responsiveSpacingSizes: {
|
|
1707
|
+
readonly "4-8": "4-8";
|
|
1708
|
+
readonly "8-12": "8-12";
|
|
1709
|
+
readonly "12-16": "12-16";
|
|
1710
|
+
readonly "16-20": "16-20";
|
|
1711
|
+
readonly "20-24": "20-24";
|
|
1712
|
+
readonly "24-32": "24-32";
|
|
1713
|
+
readonly "32-40": "32-40";
|
|
1714
|
+
readonly "40-48": "40-48";
|
|
1715
|
+
readonly "48-64": "48-64";
|
|
1716
|
+
readonly "64-80": "64-80";
|
|
1717
|
+
readonly "80-120": "80-120";
|
|
1718
|
+
readonly "120-160": "120-160";
|
|
1719
|
+
};
|
|
1720
|
+
|
|
1721
|
+
declare type ResponsiveValues<T> = {
|
|
1722
|
+
[Breakpoint in Breakpoints]?: T;
|
|
1723
|
+
};
|
|
1436
1724
|
|
|
1437
1725
|
export declare const Secondary: Story_5;
|
|
1438
1726
|
|
|
@@ -1444,14 +1732,18 @@ export { SecondaryButton as SecondaryButton_alias_3 }
|
|
|
1444
1732
|
|
|
1445
1733
|
export declare const SecondaryOutline: Story_5;
|
|
1446
1734
|
|
|
1447
|
-
declare const Select: ForwardRefExoticComponent<
|
|
1735
|
+
declare const Select: ForwardRefExoticComponent<Omit<InputGroupProps & SelectHTMLAttributes<HTMLSelectElement>, "children" | "readOnly"> & {
|
|
1736
|
+
children: ReactNode;
|
|
1737
|
+
} & RefAttributes<HTMLSelectElement>>;
|
|
1448
1738
|
export { Select }
|
|
1449
1739
|
export { Select as Select_alias_1 }
|
|
1450
1740
|
export { Select as Select_alias_2 }
|
|
1451
1741
|
export { Select as Select_alias_3 }
|
|
1452
1742
|
export { Select as Select_alias_4 }
|
|
1453
1743
|
|
|
1454
|
-
declare type SelectProps = Omit<InputGroupProps & SelectHTMLAttributes<HTMLSelectElement>, "readOnly"
|
|
1744
|
+
declare type SelectProps = Omit<InputGroupProps & SelectHTMLAttributes<HTMLSelectElement>, "readOnly" | "children"> & {
|
|
1745
|
+
children: ReactNode;
|
|
1746
|
+
};
|
|
1455
1747
|
export { SelectProps }
|
|
1456
1748
|
export { SelectProps as SelectProps_alias_1 }
|
|
1457
1749
|
export { SelectProps as SelectProps_alias_2 }
|
|
@@ -1462,7 +1754,7 @@ export declare const ShareParcelModal: {
|
|
|
1462
1754
|
render: (args: ModalProps & RefAttributes<HTMLDialogElement>) => JSX_2.Element;
|
|
1463
1755
|
};
|
|
1464
1756
|
|
|
1465
|
-
export declare const ShowMore:
|
|
1757
|
+
export declare const ShowMore: Story_24;
|
|
1466
1758
|
|
|
1467
1759
|
/**
|
|
1468
1760
|
* Simple button for triggering more content.
|
|
@@ -1507,11 +1799,11 @@ export { ShowMoreProps as ShowMoreProps_alias_1 }
|
|
|
1507
1799
|
export { ShowMoreProps as ShowMoreProps_alias_2 }
|
|
1508
1800
|
export { ShowMoreProps as ShowMoreProps_alias_3 }
|
|
1509
1801
|
|
|
1510
|
-
export declare const ShowMoreShowLess:
|
|
1802
|
+
export declare const ShowMoreShowLess: Story_24;
|
|
1511
1803
|
|
|
1512
|
-
export declare const ShowMoreShowLessExpanded:
|
|
1804
|
+
export declare const ShowMoreShowLessExpanded: Story_24;
|
|
1513
1805
|
|
|
1514
|
-
export declare const SimpleShowMoreShowLess:
|
|
1806
|
+
export declare const SimpleShowMoreShowLess: Story_24;
|
|
1515
1807
|
|
|
1516
1808
|
export declare const SingleAccordion: Story;
|
|
1517
1809
|
|
|
@@ -1574,11 +1866,78 @@ declare interface SkeletonPropsInner extends React_2.AnchorHTMLAttributes<HTMLDi
|
|
|
1574
1866
|
children?: React_2.ReactNode;
|
|
1575
1867
|
}
|
|
1576
1868
|
|
|
1577
|
-
export declare const Slim:
|
|
1869
|
+
export declare const Slim: Story_17;
|
|
1870
|
+
|
|
1871
|
+
export declare const Small: Story_27;
|
|
1872
|
+
|
|
1873
|
+
export declare const Solid: Story_18;
|
|
1578
1874
|
|
|
1579
|
-
export declare
|
|
1875
|
+
export declare type SpacingSizes = keyof typeof spacingSizes;
|
|
1580
1876
|
|
|
1581
|
-
|
|
1877
|
+
declare const spacingSizes: {
|
|
1878
|
+
readonly "4": "4";
|
|
1879
|
+
readonly "8": "8";
|
|
1880
|
+
readonly "12": "12";
|
|
1881
|
+
readonly "16": "16";
|
|
1882
|
+
readonly "20": "20";
|
|
1883
|
+
readonly "24": "24";
|
|
1884
|
+
readonly "32": "32";
|
|
1885
|
+
readonly "40": "40";
|
|
1886
|
+
readonly "48": "48";
|
|
1887
|
+
readonly "64": "64";
|
|
1888
|
+
readonly "80": "80";
|
|
1889
|
+
readonly "120": "120";
|
|
1890
|
+
};
|
|
1891
|
+
|
|
1892
|
+
/**
|
|
1893
|
+
* 🚨 WORK IN PROGRESS 🚨
|
|
1894
|
+
*
|
|
1895
|
+
* TODO
|
|
1896
|
+
* - [ ] Add more examples
|
|
1897
|
+
* - [ ] Document usage
|
|
1898
|
+
* - [ ] Document props
|
|
1899
|
+
*/
|
|
1900
|
+
declare const Stack: React_2.ForwardRefExoticComponent<StackProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1901
|
+
export { Stack }
|
|
1902
|
+
export { Stack as Stack_alias_1 }
|
|
1903
|
+
export { Stack as Stack_alias_2 }
|
|
1904
|
+
export { Stack as Stack_alias_3 }
|
|
1905
|
+
export { Stack as Stack_alias_4 }
|
|
1906
|
+
|
|
1907
|
+
declare interface StackProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1908
|
+
children: React_2.ReactNode;
|
|
1909
|
+
/**
|
|
1910
|
+
* Space between items. Both horizontal and vertical.
|
|
1911
|
+
*
|
|
1912
|
+
* Use the responsive shorthand `12-16` to jump a level at the `large` breakpoint.
|
|
1913
|
+
*
|
|
1914
|
+
* Or use the responsive object `{ initial: 40, large: 64 }` to set different values at different breakpoints.
|
|
1915
|
+
*
|
|
1916
|
+
* Use `gapX` and `gapY` to set different values for horizontal and vertical spacing.
|
|
1917
|
+
*/
|
|
1918
|
+
gap?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1919
|
+
/**
|
|
1920
|
+
* Space between items horizontally
|
|
1921
|
+
*/
|
|
1922
|
+
gapX?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1923
|
+
/**
|
|
1924
|
+
* Space between items vertically
|
|
1925
|
+
*/
|
|
1926
|
+
gapY?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1927
|
+
direction?: ResponsiveProp<React_2.CSSProperties["flexDirection"]>;
|
|
1928
|
+
wrap?: ResponsiveProp<boolean>;
|
|
1929
|
+
align?: ResponsiveProp<React_2.CSSProperties["alignItems"]>;
|
|
1930
|
+
justify?: ResponsiveProp<React_2.CSSProperties["justifyContent"]>;
|
|
1931
|
+
/**
|
|
1932
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1933
|
+
*/
|
|
1934
|
+
asChild?: boolean;
|
|
1935
|
+
}
|
|
1936
|
+
export { StackProps }
|
|
1937
|
+
export { StackProps as StackProps_alias_1 }
|
|
1938
|
+
export { StackProps as StackProps_alias_2 }
|
|
1939
|
+
export { StackProps as StackProps_alias_3 }
|
|
1940
|
+
export { StackProps as StackProps_alias_4 }
|
|
1582
1941
|
|
|
1583
1942
|
/**
|
|
1584
1943
|
* Indicate a step in a process.
|
|
@@ -1609,50 +1968,52 @@ declare interface StepIndicatorProps extends React.HTMLAttributes<HTMLDivElement
|
|
|
1609
1968
|
|
|
1610
1969
|
declare type Story = StoryObj<typeof AccordionComponent>;
|
|
1611
1970
|
|
|
1612
|
-
declare type Story_10 = StoryObj<typeof
|
|
1971
|
+
declare type Story_10 = StoryObj<typeof ErrorMessage>;
|
|
1613
1972
|
|
|
1614
|
-
declare type Story_11 = StoryObj<typeof
|
|
1973
|
+
declare type Story_11 = StoryObj<typeof Fieldset>;
|
|
1615
1974
|
|
|
1616
|
-
declare type Story_12 = StoryObj<typeof
|
|
1975
|
+
declare type Story_12 = StoryObj<typeof Input>;
|
|
1617
1976
|
|
|
1618
|
-
declare type Story_13 = StoryObj<typeof
|
|
1977
|
+
declare type Story_13 = StoryObj<typeof Radiobutton>;
|
|
1619
1978
|
|
|
1620
|
-
declare type Story_14 = StoryObj<typeof
|
|
1979
|
+
declare type Story_14 = StoryObj<typeof RadioGroup>;
|
|
1621
1980
|
|
|
1622
|
-
declare type Story_15 = StoryObj<typeof
|
|
1981
|
+
declare type Story_15 = StoryObj<typeof Select>;
|
|
1623
1982
|
|
|
1624
|
-
declare type Story_16 = StoryObj<typeof
|
|
1983
|
+
declare type Story_16 = StoryObj<typeof Textarea>;
|
|
1625
1984
|
|
|
1626
|
-
declare type Story_17 = StoryObj<typeof
|
|
1985
|
+
declare type Story_17 = StoryObj<typeof Container>;
|
|
1627
1986
|
|
|
1628
|
-
declare type Story_18 = StoryObj<typeof
|
|
1987
|
+
declare type Story_18 = StoryObj<typeof Link>;
|
|
1629
1988
|
|
|
1630
|
-
declare type Story_19 = StoryObj<typeof
|
|
1989
|
+
declare type Story_19 = StoryObj<typeof LinkList>;
|
|
1631
1990
|
|
|
1632
1991
|
declare type Story_2 = StoryObj<typeof Badge>;
|
|
1633
1992
|
|
|
1634
|
-
declare type Story_20 = StoryObj<typeof
|
|
1993
|
+
declare type Story_20 = StoryObj<typeof UnorderedList>;
|
|
1635
1994
|
|
|
1636
|
-
declare type Story_21 = StoryObj<typeof
|
|
1995
|
+
declare type Story_21 = StoryObj<typeof MessageComponent>;
|
|
1637
1996
|
|
|
1638
|
-
declare type Story_22 = StoryObj<typeof
|
|
1997
|
+
declare type Story_22 = StoryObj<typeof ModalComponent>;
|
|
1639
1998
|
|
|
1640
|
-
declare type Story_23 = StoryObj<typeof
|
|
1999
|
+
declare type Story_23 = StoryObj<typeof NavbarComponent>;
|
|
1641
2000
|
|
|
1642
|
-
declare type Story_24 = StoryObj<typeof
|
|
2001
|
+
declare type Story_24 = StoryObj<typeof ShowMoreButton>;
|
|
1643
2002
|
|
|
1644
|
-
declare type Story_25 = StoryObj<typeof
|
|
2003
|
+
declare type Story_25 = StoryObj<typeof Skeleton>;
|
|
1645
2004
|
|
|
1646
|
-
declare type Story_26 = StoryObj<typeof
|
|
2005
|
+
declare type Story_26 = StoryObj<typeof StepIndicator>;
|
|
1647
2006
|
|
|
1648
|
-
declare type Story_27 = StoryObj<typeof
|
|
2007
|
+
declare type Story_27 = StoryObj<typeof StyledHtml>;
|
|
1649
2008
|
|
|
1650
|
-
declare type Story_28 = StoryObj<typeof
|
|
2009
|
+
declare type Story_28 = StoryObj<typeof TabsComponent>;
|
|
1651
2010
|
|
|
1652
|
-
declare type Story_29 = StoryObj<typeof
|
|
2011
|
+
declare type Story_29 = StoryObj<typeof Text_2>;
|
|
1653
2012
|
|
|
1654
2013
|
declare type Story_3 = StoryObj<typeof BoxComponent>;
|
|
1655
2014
|
|
|
2015
|
+
declare type Story_30 = StoryObj<typeof WarningBanner>;
|
|
2016
|
+
|
|
1656
2017
|
declare type Story_4 = StoryObj<typeof Breadcrumbs>;
|
|
1657
2018
|
|
|
1658
2019
|
declare type Story_5 = StoryObj<typeof PrimaryButton>;
|
|
@@ -1663,7 +2024,7 @@ declare type Story_7 = StoryObj<typeof DescriptionList>;
|
|
|
1663
2024
|
|
|
1664
2025
|
declare type Story_8 = StoryObj<typeof Checkbox>;
|
|
1665
2026
|
|
|
1666
|
-
declare type Story_9 = StoryObj<typeof
|
|
2027
|
+
declare type Story_9 = StoryObj<typeof DatePicker>;
|
|
1667
2028
|
|
|
1668
2029
|
/**
|
|
1669
2030
|
* A component for displaying dynamic content that you want to apply hedwig styling to.
|
|
@@ -1702,13 +2063,7 @@ export { StyledHtmlProps as StyledHtmlProps_alias_1 }
|
|
|
1702
2063
|
export { StyledHtmlProps as StyledHtmlProps_alias_2 }
|
|
1703
2064
|
export { StyledHtmlProps as StyledHtmlProps_alias_3 }
|
|
1704
2065
|
|
|
1705
|
-
export declare const Success:
|
|
1706
|
-
|
|
1707
|
-
declare const Tab: OverridableComponent<TabProps, HTMLButtonElement>;
|
|
1708
|
-
export { Tab }
|
|
1709
|
-
export { Tab as Tab_alias_1 }
|
|
1710
|
-
export { Tab as Tab_alias_2 }
|
|
1711
|
-
export { Tab as Tab_alias_3 }
|
|
2066
|
+
export declare const Success: Story_21;
|
|
1712
2067
|
|
|
1713
2068
|
declare interface TabContentsProps extends HTMLAttributes<HTMLDivElement> {
|
|
1714
2069
|
children: ReactElement<TabsContentProps> | ReactElement<TabsContentProps>[];
|
|
@@ -1718,8 +2073,36 @@ export { TabContentsProps as TabContentsProps_alias_1 }
|
|
|
1718
2073
|
export { TabContentsProps as TabContentsProps_alias_2 }
|
|
1719
2074
|
export { TabContentsProps as TabContentsProps_alias_3 }
|
|
1720
2075
|
|
|
2076
|
+
declare const Table: ForwardRefExoticComponent<TableProps & RefAttributes<HTMLTableElement>>;
|
|
2077
|
+
export { Table }
|
|
2078
|
+
export { Table as Table_alias_1 }
|
|
2079
|
+
export { Table as Table_alias_2 }
|
|
2080
|
+
export { Table as Table_alias_3 }
|
|
2081
|
+
|
|
2082
|
+
declare interface TableProps extends React.HTMLAttributes<HTMLTableElement> {
|
|
2083
|
+
className?: string;
|
|
2084
|
+
/**
|
|
2085
|
+
* Size of the table
|
|
2086
|
+
*
|
|
2087
|
+
* Use `compressed` for a more compact table, or `mobile-compressed` for a compact table on mobile screens only.
|
|
2088
|
+
*/
|
|
2089
|
+
size?: "default" | "compressed" | "mobile-compressed";
|
|
2090
|
+
/**
|
|
2091
|
+
* The table caption
|
|
2092
|
+
*
|
|
2093
|
+
* You can also set this by passing `<caption>` as a first child of the table
|
|
2094
|
+
*/
|
|
2095
|
+
caption?: React.ReactNode;
|
|
2096
|
+
/**
|
|
2097
|
+
* Optional description of the table displayed underneath the table
|
|
2098
|
+
*
|
|
2099
|
+
* Ensures the `aria-describedby` attribute is set on the table, making it accessible for screen readers.
|
|
2100
|
+
*/
|
|
2101
|
+
description?: React.ReactNode;
|
|
2102
|
+
}
|
|
2103
|
+
|
|
1721
2104
|
declare interface TabListProps extends HTMLAttributes<HTMLDivElement> {
|
|
1722
|
-
children: ReactElement<
|
|
2105
|
+
children: ReactElement<TabsTabProps> | ReactElement<TabsTabProps>[];
|
|
1723
2106
|
/**
|
|
1724
2107
|
* Direction of the tabs. Can either be vertical or horizontal.
|
|
1725
2108
|
* Horizontal breaks on window width with fallback back to vertical
|
|
@@ -1731,18 +2114,6 @@ export { TabListProps as TabListProps_alias_1 }
|
|
|
1731
2114
|
export { TabListProps as TabListProps_alias_2 }
|
|
1732
2115
|
export { TabListProps as TabListProps_alias_3 }
|
|
1733
2116
|
|
|
1734
|
-
declare interface TabProps extends HTMLAttributes<HTMLButtonElement> {
|
|
1735
|
-
children: ReactElement<HTMLElement> | string;
|
|
1736
|
-
/**
|
|
1737
|
-
* Identifier for the tab
|
|
1738
|
-
*/
|
|
1739
|
-
tabId: string;
|
|
1740
|
-
}
|
|
1741
|
-
export { TabProps }
|
|
1742
|
-
export { TabProps as TabProps_alias_1 }
|
|
1743
|
-
export { TabProps as TabProps_alias_2 }
|
|
1744
|
-
export { TabProps as TabProps_alias_3 }
|
|
1745
|
-
|
|
1746
2117
|
export declare const Tabs_alias_3: OverridableComponent<TabsProps, HTMLDivElement>;
|
|
1747
2118
|
|
|
1748
2119
|
declare const TabsComponent: {
|
|
@@ -1752,7 +2123,7 @@ declare const TabsComponent: {
|
|
|
1752
2123
|
} & TabsProps & Omit<ComponentPropsWithRef<As>, keyof TabsProps>): ReactNode;
|
|
1753
2124
|
} & Pick<FC, "displayName"> & {
|
|
1754
2125
|
List: typeof TabsList;
|
|
1755
|
-
Tab: typeof
|
|
2126
|
+
Tab: typeof TabsTab;
|
|
1756
2127
|
Contents: typeof TabsContents;
|
|
1757
2128
|
Content: typeof TabsContent;
|
|
1758
2129
|
};
|
|
@@ -1817,6 +2188,24 @@ export { TabsProps as TabsProps_alias_1 }
|
|
|
1817
2188
|
export { TabsProps as TabsProps_alias_2 }
|
|
1818
2189
|
export { TabsProps as TabsProps_alias_3 }
|
|
1819
2190
|
|
|
2191
|
+
declare const TabsTab: OverridableComponent<TabsTabProps, HTMLButtonElement>;
|
|
2192
|
+
export { TabsTab }
|
|
2193
|
+
export { TabsTab as TabsTab_alias_1 }
|
|
2194
|
+
export { TabsTab as TabsTab_alias_2 }
|
|
2195
|
+
export { TabsTab as TabsTab_alias_3 }
|
|
2196
|
+
|
|
2197
|
+
declare interface TabsTabProps extends HTMLAttributes<HTMLButtonElement> {
|
|
2198
|
+
children: ReactElement<HTMLElement> | string;
|
|
2199
|
+
/**
|
|
2200
|
+
* Identifier for the tab
|
|
2201
|
+
*/
|
|
2202
|
+
tabId: string;
|
|
2203
|
+
}
|
|
2204
|
+
export { TabsTabProps }
|
|
2205
|
+
export { TabsTabProps as TabsTabProps_alias_1 }
|
|
2206
|
+
export { TabsTabProps as TabsTabProps_alias_2 }
|
|
2207
|
+
export { TabsTabProps as TabsTabProps_alias_3 }
|
|
2208
|
+
|
|
1820
2209
|
/**
|
|
1821
2210
|
* Text component
|
|
1822
2211
|
*
|
|
@@ -2018,11 +2407,11 @@ export { TextTechnicalTitle }
|
|
|
2018
2407
|
export { TextTechnicalTitle as TextTechnicalTitle_alias_1 }
|
|
2019
2408
|
export { TextTechnicalTitle as TextTechnicalTitle_alias_2 }
|
|
2020
2409
|
|
|
2021
|
-
export declare const Title:
|
|
2410
|
+
export declare const Title: Story_26;
|
|
2022
2411
|
|
|
2023
|
-
export declare const TitleOnly:
|
|
2412
|
+
export declare const TitleOnly: Story_21;
|
|
2024
2413
|
|
|
2025
|
-
export declare const TitleOnly_alias_1:
|
|
2414
|
+
export declare const TitleOnly_alias_1: Story_30;
|
|
2026
2415
|
|
|
2027
2416
|
declare type TitleProps = {
|
|
2028
2417
|
/**
|
|
@@ -2037,14 +2426,14 @@ declare type TitleProps = {
|
|
|
2037
2426
|
titleAs?: undefined;
|
|
2038
2427
|
};
|
|
2039
2428
|
|
|
2040
|
-
export declare const TrackingNumberSearch:
|
|
2429
|
+
export declare const TrackingNumberSearch: Story_12;
|
|
2041
2430
|
|
|
2042
2431
|
/**
|
|
2043
2432
|
* You should have at minimum two levels in your hierarchy to use breadcrumbs.
|
|
2044
2433
|
*/
|
|
2045
2434
|
export declare const TwoElements: Story_4;
|
|
2046
2435
|
|
|
2047
|
-
export declare const Underline:
|
|
2436
|
+
export declare const Underline: Story_18;
|
|
2048
2437
|
|
|
2049
2438
|
/**
|
|
2050
2439
|
* An unordered list of simple items, often text. You can nest other lists inside this component.
|
|
@@ -2061,7 +2450,7 @@ export { UnorderedList as UnorderedList_alias_1 }
|
|
|
2061
2450
|
export { UnorderedList as UnorderedList_alias_2 }
|
|
2062
2451
|
export { UnorderedList as UnorderedList_alias_3 }
|
|
2063
2452
|
|
|
2064
|
-
export declare const UnorderedListStory:
|
|
2453
|
+
export declare const UnorderedListStory: Story_20;
|
|
2065
2454
|
|
|
2066
2455
|
declare const useFieldsetContext: () => {
|
|
2067
2456
|
hasError: boolean;
|
|
@@ -2072,6 +2461,8 @@ export { useFieldsetContext as useFieldsetContext_alias_2 }
|
|
|
2072
2461
|
export { useFieldsetContext as useFieldsetContext_alias_3 }
|
|
2073
2462
|
export { useFieldsetContext as useFieldsetContext_alias_4 }
|
|
2074
2463
|
|
|
2464
|
+
export declare function useHydrated(): boolean;
|
|
2465
|
+
|
|
2075
2466
|
/**
|
|
2076
2467
|
* Merges an array of refs into a single memoized callback ref or `null`.
|
|
2077
2468
|
* @see https://floating-ui.com/docs/useMergeRefs
|
|
@@ -2114,11 +2505,26 @@ declare type Variant = {
|
|
|
2114
2505
|
|
|
2115
2506
|
export declare const Vertical: Story_7;
|
|
2116
2507
|
|
|
2117
|
-
export declare const Vertical_alias_1:
|
|
2508
|
+
export declare const Vertical_alias_1: Story_28;
|
|
2509
|
+
|
|
2510
|
+
/**
|
|
2511
|
+
* 🚨 WORK IN PROGRESS 🚨
|
|
2512
|
+
*
|
|
2513
|
+
* TODO
|
|
2514
|
+
* - [ ] Add more examples
|
|
2515
|
+
* - [ ] Document usage
|
|
2516
|
+
* - [ ] Document props
|
|
2517
|
+
*/
|
|
2518
|
+
declare const VStack: React_2.ForwardRefExoticComponent<Omit<StackProps, "direction"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
2519
|
+
export { VStack }
|
|
2520
|
+
export { VStack as VStack_alias_1 }
|
|
2521
|
+
export { VStack as VStack_alias_2 }
|
|
2522
|
+
export { VStack as VStack_alias_3 }
|
|
2523
|
+
export { VStack as VStack_alias_4 }
|
|
2118
2524
|
|
|
2119
2525
|
export declare const Warning: Story_2;
|
|
2120
2526
|
|
|
2121
|
-
export declare const Warning_alias_1:
|
|
2527
|
+
export declare const Warning_alias_1: Story_21;
|
|
2122
2528
|
|
|
2123
2529
|
declare function WarningBadge(props: BadgeProps): JSX_2.Element;
|
|
2124
2530
|
|
|
@@ -2149,7 +2555,7 @@ export declare const WarningBox: Story_3;
|
|
|
2149
2555
|
|
|
2150
2556
|
export declare const White: Story_2;
|
|
2151
2557
|
|
|
2152
|
-
export declare const White_alias_1:
|
|
2558
|
+
export declare const White_alias_1: Story_15;
|
|
2153
2559
|
|
|
2154
2560
|
declare function WhiteBadge(props: BadgeProps): JSX_2.Element;
|
|
2155
2561
|
|
|
@@ -2163,25 +2569,25 @@ export { WhiteBadge as WhiteBadge_alias_3 }
|
|
|
2163
2569
|
|
|
2164
2570
|
export declare const WhiteBox: Story_3;
|
|
2165
2571
|
|
|
2166
|
-
export declare const WhiteInput:
|
|
2572
|
+
export declare const WhiteInput: Story_12;
|
|
2167
2573
|
|
|
2168
|
-
export declare const WhiteInputWithError:
|
|
2574
|
+
export declare const WhiteInputWithError: Story_12;
|
|
2169
2575
|
|
|
2170
|
-
export declare const WhiteReadonlyInput:
|
|
2576
|
+
export declare const WhiteReadonlyInput: Story_12;
|
|
2171
2577
|
|
|
2172
|
-
export declare const WhiteReadonlyInputWithError:
|
|
2578
|
+
export declare const WhiteReadonlyInputWithError: Story_12;
|
|
2173
2579
|
|
|
2174
|
-
export declare const WhiteReadonlyTextarea:
|
|
2580
|
+
export declare const WhiteReadonlyTextarea: Story_16;
|
|
2175
2581
|
|
|
2176
|
-
export declare const WhiteReadonlyTextareaWithError:
|
|
2582
|
+
export declare const WhiteReadonlyTextareaWithError: Story_16;
|
|
2177
2583
|
|
|
2178
|
-
export declare const WhiteTextarea:
|
|
2584
|
+
export declare const WhiteTextarea: Story_16;
|
|
2179
2585
|
|
|
2180
|
-
export declare const WhiteTextareaWithError:
|
|
2586
|
+
export declare const WhiteTextareaWithError: Story_16;
|
|
2181
2587
|
|
|
2182
|
-
export declare const WhiteWithError:
|
|
2588
|
+
export declare const WhiteWithError: Story_15;
|
|
2183
2589
|
|
|
2184
|
-
export declare const WithBadgeInLabel:
|
|
2590
|
+
export declare const WithBadgeInLabel: Story_26;
|
|
2185
2591
|
|
|
2186
2592
|
export declare const WrappedInDivs: Story_7;
|
|
2187
2593
|
|