@postenbring/hedwig-react 0.0.64 → 0.0.66
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 +301 -68
- package/dist/_tsup-dts-rollup.d.ts +301 -68
- package/dist/accordion/accordion-content.js +5 -9
- package/dist/accordion/accordion-content.js.map +1 -1
- package/dist/accordion/accordion-content.mjs +1 -1
- package/dist/accordion/accordion-header.js +6 -9
- package/dist/accordion/accordion-header.js.map +1 -1
- package/dist/accordion/accordion-header.mjs +1 -1
- package/dist/accordion/accordion-item.js +2 -7
- package/dist/accordion/accordion-item.js.map +1 -1
- package/dist/accordion/accordion-item.mjs +1 -1
- package/dist/accordion/index.js +13 -25
- package/dist/accordion/index.js.map +1 -1
- package/dist/accordion/index.mjs +4 -4
- package/dist/chunk-27XJO7E4.mjs +51 -0
- package/dist/chunk-27XJO7E4.mjs.map +1 -0
- package/dist/{chunk-POJTVNEO.mjs → chunk-2ICZ3Q7N.mjs} +1 -1
- package/dist/chunk-2ICZ3Q7N.mjs.map +1 -0
- package/dist/{chunk-H3VGHTDC.mjs → chunk-2JH4FG63.mjs} +2 -2
- package/dist/chunk-2JH4FG63.mjs.map +1 -0
- package/dist/{chunk-SAGJ5W7M.mjs → chunk-62F4I3MQ.mjs} +3 -8
- package/dist/{chunk-SAGJ5W7M.mjs.map → chunk-62F4I3MQ.mjs.map} +1 -1
- package/dist/{chunk-V4NGUB4I.mjs → chunk-6NGF7FFY.mjs} +2 -2
- package/dist/chunk-6NGF7FFY.mjs.map +1 -0
- package/dist/{chunk-BYDSISQZ.mjs → chunk-A47QULAK.mjs} +2 -2
- package/dist/{chunk-BYDSISQZ.mjs.map → chunk-A47QULAK.mjs.map} +1 -1
- package/dist/chunk-BZRCDLEW.mjs +118 -0
- package/dist/chunk-BZRCDLEW.mjs.map +1 -0
- package/dist/chunk-CLXHNRAI.mjs +104 -0
- package/dist/chunk-CLXHNRAI.mjs.map +1 -0
- package/dist/{chunk-37WVYY6X.mjs → chunk-DM4PJFLG.mjs} +6 -3
- package/dist/chunk-DM4PJFLG.mjs.map +1 -0
- package/dist/{chunk-KRGKVH5J.mjs → chunk-GUB3UCXO.mjs} +6 -10
- package/dist/chunk-GUB3UCXO.mjs.map +1 -0
- package/dist/{chunk-WGVZWX5L.mjs → chunk-HMB4TY2F.mjs} +14 -4
- package/dist/chunk-HMB4TY2F.mjs.map +1 -0
- package/dist/{chunk-5MDJP43L.mjs → chunk-IFGQR4J6.mjs} +10 -10
- package/dist/chunk-IFGQR4J6.mjs.map +1 -0
- package/dist/chunk-KQITCS3U.mjs +18 -0
- package/dist/chunk-KQITCS3U.mjs.map +1 -0
- package/dist/chunk-L4GQJETB.mjs +1 -0
- package/dist/{chunk-QSYU64U4.mjs → chunk-MRCE2Q7A.mjs} +2 -2
- package/dist/chunk-NE6W2PCD.mjs +9 -0
- package/dist/chunk-NE6W2PCD.mjs.map +1 -0
- package/dist/chunk-RHCMBJOT.mjs +76 -0
- package/dist/chunk-RHCMBJOT.mjs.map +1 -0
- package/dist/chunk-RXIP2JTE.mjs +19 -0
- package/dist/chunk-RXIP2JTE.mjs.map +1 -0
- package/dist/{chunk-EJADADIY.mjs → chunk-UWTGHSWT.mjs} +6 -9
- package/dist/chunk-UWTGHSWT.mjs.map +1 -0
- package/dist/{chunk-2E6XPNPX.mjs → chunk-X46LM2QH.mjs} +9 -6
- package/dist/chunk-X46LM2QH.mjs.map +1 -0
- package/dist/{chunk-DJRMXOCP.mjs → chunk-XIHKASNB.mjs} +4 -4
- package/dist/{chunk-MBBFU4IR.mjs → chunk-XVFQWVHO.mjs} +3 -9
- package/dist/{chunk-MBBFU4IR.mjs.map → chunk-XVFQWVHO.mjs.map} +1 -1
- package/dist/chunk-YWNVB7TY.mjs +1 -0
- package/dist/{chunk-FT5CX2W5.mjs → chunk-YXHXRUFX.mjs} +7 -10
- package/dist/chunk-YXHXRUFX.mjs.map +1 -0
- package/dist/chunk-ZTYEOZLK.mjs +18 -0
- package/dist/chunk-ZTYEOZLK.mjs.map +1 -0
- package/dist/footer/footer.d.mts +7 -0
- package/dist/footer/footer.d.ts +7 -0
- package/dist/footer/footer.js +401 -0
- package/dist/footer/footer.js.map +1 -0
- package/dist/footer/footer.mjs +26 -0
- package/dist/footer/footer.mjs.map +1 -0
- package/dist/footer/index.d.mts +7 -0
- package/dist/footer/index.d.ts +7 -0
- package/dist/footer/index.js +402 -0
- package/dist/footer/index.js.map +1 -0
- package/dist/footer/index.mjs +19 -0
- package/dist/footer/index.mjs.map +1 -0
- package/dist/form/checkbox/checkbox.js +122 -24
- package/dist/form/checkbox/checkbox.js.map +1 -1
- package/dist/form/checkbox/checkbox.mjs +5 -1
- package/dist/form/checkbox/index.js +122 -24
- package/dist/form/checkbox/index.js.map +1 -1
- package/dist/form/checkbox/index.mjs +5 -1
- package/dist/form/fieldset/fieldset.d.mts +1 -0
- package/dist/form/fieldset/fieldset.d.ts +1 -0
- package/dist/form/fieldset/fieldset.js +7 -3
- package/dist/form/fieldset/fieldset.js.map +1 -1
- package/dist/form/fieldset/fieldset.mjs +5 -3
- package/dist/form/fieldset/index.d.mts +1 -0
- package/dist/form/fieldset/index.d.ts +1 -0
- package/dist/form/fieldset/index.js +7 -3
- package/dist/form/fieldset/index.js.map +1 -1
- package/dist/form/fieldset/index.mjs +5 -3
- package/dist/form/index.d.mts +2 -1
- package/dist/form/index.d.ts +2 -1
- package/dist/form/index.js +68 -27
- package/dist/form/index.js.map +1 -1
- package/dist/form/index.mjs +20 -16
- package/dist/form/radiobutton/index.d.mts +1 -1
- package/dist/form/radiobutton/index.d.ts +1 -1
- package/dist/form/radiobutton/index.js +17 -8
- package/dist/form/radiobutton/index.js.map +1 -1
- package/dist/form/radiobutton/index.mjs +7 -5
- package/dist/form/radiobutton/radiobutton.js +13 -6
- package/dist/form/radiobutton/radiobutton.js.map +1 -1
- package/dist/form/radiobutton/radiobutton.mjs +3 -3
- package/dist/form/radiobutton/radiogroup.js +2 -1
- package/dist/form/radiobutton/radiogroup.js.map +1 -1
- package/dist/form/radiobutton/radiogroup.mjs +2 -2
- package/dist/index-no-css.d.mts +20 -7
- package/dist/index-no-css.d.ts +20 -7
- package/dist/index-no-css.js +537 -310
- package/dist/index-no-css.js.map +1 -1
- package/dist/index-no-css.mjs +100 -68
- package/dist/index.d.mts +20 -7
- package/dist/index.d.ts +20 -7
- package/dist/index.js +537 -310
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +100 -68
- package/dist/index.mjs.map +1 -1
- package/dist/layout/index.d.mts +5 -1
- package/dist/layout/index.d.ts +5 -1
- package/dist/layout/index.js +62 -2
- package/dist/layout/index.js.map +1 -1
- package/dist/layout/index.mjs +12 -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 +117 -0
- package/dist/layout/stack/index.js.map +1 -0
- package/dist/layout/stack/index.mjs +14 -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 +115 -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/modal/index.js.map +1 -1
- package/dist/modal/index.mjs +2 -2
- package/dist/modal/modal.js.map +1 -1
- package/dist/modal/modal.mjs +1 -1
- package/dist/navbar/index.d.mts +1 -0
- package/dist/navbar/index.d.ts +1 -0
- package/dist/navbar/index.js +11 -7
- package/dist/navbar/index.js.map +1 -1
- package/dist/navbar/index.mjs +7 -4
- package/dist/navbar/navbar-expandable-menu.d.mts +1 -0
- package/dist/navbar/navbar-expandable-menu.d.ts +1 -0
- package/dist/navbar/navbar-expandable-menu.js +11 -7
- package/dist/navbar/navbar-expandable-menu.js.map +1 -1
- package/dist/navbar/navbar-expandable-menu.mjs +5 -3
- package/dist/skeleton/index.js +1 -1
- package/dist/skeleton/index.js.map +1 -1
- package/dist/skeleton/index.mjs +1 -1
- package/dist/skeleton/skeleton.js +1 -1
- package/dist/skeleton/skeleton.js.map +1 -1
- package/dist/skeleton/skeleton.mjs +1 -1
- package/dist/tabs/context.d.mts +1 -0
- package/dist/tabs/context.d.ts +1 -0
- package/dist/tabs/context.js +13 -8
- package/dist/tabs/context.js.map +1 -1
- package/dist/tabs/context.mjs +5 -3
- package/dist/tabs/index.d.mts +5 -5
- package/dist/tabs/index.d.ts +5 -5
- package/dist/tabs/index.js +59 -33
- package/dist/tabs/index.js.map +1 -1
- package/dist/tabs/index.mjs +16 -6
- package/dist/tabs/tabs-content.js +11 -11
- package/dist/tabs/tabs-content.js.map +1 -1
- package/dist/tabs/tabs-content.mjs +2 -2
- package/dist/tabs/tabs-list.d.mts +2 -2
- package/dist/tabs/tabs-list.d.ts +2 -2
- package/dist/tabs/tabs-list.js +49 -22
- package/dist/tabs/tabs-list.js.map +1 -1
- package/dist/tabs/tabs-list.mjs +6 -6
- package/dist/tabs/tabs.js +2 -14
- package/dist/tabs/tabs.js.map +1 -1
- package/dist/tabs/tabs.mjs +2 -2
- package/package.json +5 -5
- package/dist/chunk-2E6XPNPX.mjs.map +0 -1
- package/dist/chunk-33JD5XDW.mjs +0 -14
- package/dist/chunk-33JD5XDW.mjs.map +0 -1
- package/dist/chunk-37WVYY6X.mjs.map +0 -1
- package/dist/chunk-5MDJP43L.mjs.map +0 -1
- package/dist/chunk-EJADADIY.mjs.map +0 -1
- package/dist/chunk-FT5CX2W5.mjs.map +0 -1
- package/dist/chunk-H3VGHTDC.mjs.map +0 -1
- package/dist/chunk-H4GIHEB2.mjs +0 -1
- package/dist/chunk-KRGKVH5J.mjs.map +0 -1
- package/dist/chunk-OIQUYB26.mjs +0 -1
- package/dist/chunk-POJTVNEO.mjs.map +0 -1
- package/dist/chunk-PXHYOQPB.mjs +0 -42
- package/dist/chunk-PXHYOQPB.mjs.map +0 -1
- package/dist/chunk-V4NGUB4I.mjs.map +0 -1
- package/dist/chunk-WGVZWX5L.mjs.map +0 -1
- package/dist/chunk-XVZ44NGD.mjs +0 -80
- package/dist/chunk-XVZ44NGD.mjs.map +0 -1
- /package/dist/{chunk-H4GIHEB2.mjs.map → chunk-L4GQJETB.mjs.map} +0 -0
- /package/dist/{chunk-QSYU64U4.mjs.map → chunk-MRCE2Q7A.mjs.map} +0 -0
- /package/dist/{chunk-DJRMXOCP.mjs.map → chunk-XIHKASNB.mjs.map} +0 -0
- /package/dist/{chunk-OIQUYB26.mjs.map → chunk-YWNVB7TY.mjs.map} +0 -0
|
@@ -12,14 +12,14 @@ import type { FieldsetHTMLAttributes } from 'react';
|
|
|
12
12
|
import { ForwardRefExoticComponent } from 'react';
|
|
13
13
|
import { FunctionComponent } from 'react';
|
|
14
14
|
import { HTMLAttributes } from 'react';
|
|
15
|
-
import
|
|
15
|
+
import { InputHTMLAttributes } from 'react';
|
|
16
16
|
import { JSX as JSX_2 } from 'react/jsx-runtime';
|
|
17
17
|
import type { LabelHTMLAttributes } from 'react';
|
|
18
18
|
import type { Meta } from '@storybook/react';
|
|
19
19
|
import { Options } from 'tsup';
|
|
20
20
|
import * as React_2 from 'react';
|
|
21
21
|
import { default as React_3 } from 'react';
|
|
22
|
-
import
|
|
22
|
+
import { ReactElement } from 'react';
|
|
23
23
|
import { ReactNode } from 'react';
|
|
24
24
|
import { RefAttributes } from 'react';
|
|
25
25
|
import type { SelectHTMLAttributes } from 'react';
|
|
@@ -315,6 +315,8 @@ export { BreadcrumbsProps as BreadcrumbsProps_alias_1 }
|
|
|
315
315
|
export { BreadcrumbsProps as BreadcrumbsProps_alias_2 }
|
|
316
316
|
export { BreadcrumbsProps as BreadcrumbsProps_alias_3 }
|
|
317
317
|
|
|
318
|
+
declare type Breakpoints = "xsmall" | "small" | "medium" | "large" | "xlarge";
|
|
319
|
+
|
|
318
320
|
export declare const ButtonAsLink: Story_17;
|
|
319
321
|
|
|
320
322
|
declare type ButtonProps = ButtonPropsInternal & ({
|
|
@@ -504,26 +506,44 @@ export { CardMediaImg as CardMediaImg_alias_1 }
|
|
|
504
506
|
export { CardMediaImg as CardMediaImg_alias_2 }
|
|
505
507
|
export { CardMediaImg as CardMediaImg_alias_3 }
|
|
506
508
|
|
|
507
|
-
declare const Checkbox:
|
|
509
|
+
declare const Checkbox: ForwardRefExoticComponent<CheckboxProps & RefAttributes<HTMLInputElement>>;
|
|
508
510
|
export { Checkbox }
|
|
509
511
|
export { Checkbox as Checkbox_alias_1 }
|
|
510
512
|
export { Checkbox as Checkbox_alias_2 }
|
|
511
513
|
export { Checkbox as Checkbox_alias_3 }
|
|
512
514
|
export { Checkbox as Checkbox_alias_4 }
|
|
513
515
|
|
|
514
|
-
declare
|
|
516
|
+
declare type CheckboxProps = Omit<InputHTMLAttributes<HTMLInputElement>, "defaultValue"> & {
|
|
517
|
+
children: ReactNode;
|
|
515
518
|
variant?: "plain" | "bounding-box";
|
|
516
|
-
hasError?: boolean;
|
|
517
519
|
title?: string;
|
|
518
|
-
}
|
|
520
|
+
} & ({
|
|
521
|
+
/**
|
|
522
|
+
* Set to `true` to add error styling. The component will take care of aria to indicate invalid state.
|
|
523
|
+
*
|
|
524
|
+
* Normally you don't need this, as you should wrap your Checkboxes in the Fieldset component.
|
|
525
|
+
* When providing an errorMessage to Fieldset, all contained Checkboxes will get correct hasError state.
|
|
526
|
+
*
|
|
527
|
+
* You can use this when your checkbox is part of a non-HDS fieldset which shows an error message.
|
|
528
|
+
*/
|
|
529
|
+
hasError?: boolean;
|
|
530
|
+
errorMessage?: never;
|
|
531
|
+
} | {
|
|
532
|
+
hasError?: never;
|
|
533
|
+
/**
|
|
534
|
+
* Set an error message to add error styling, and display the error message.
|
|
535
|
+
* The component will take care of aria to connect the error message to the checkbox.
|
|
536
|
+
*
|
|
537
|
+
* Use this when your checkbox is standalone (not part of a fieldset).
|
|
538
|
+
*/
|
|
539
|
+
errorMessage?: ReactNode;
|
|
540
|
+
});
|
|
519
541
|
export { CheckboxProps }
|
|
520
542
|
export { CheckboxProps as CheckboxProps_alias_1 }
|
|
521
543
|
export { CheckboxProps as CheckboxProps_alias_2 }
|
|
522
544
|
export { CheckboxProps as CheckboxProps_alias_3 }
|
|
523
545
|
export { CheckboxProps as CheckboxProps_alias_4 }
|
|
524
546
|
|
|
525
|
-
export declare const CheckboxWithErrorMessage: Story_9;
|
|
526
|
-
|
|
527
547
|
export declare function CloseIcon(): JSX_2.Element;
|
|
528
548
|
|
|
529
549
|
export declare const CompleteShowMoreShowLess: Story_23;
|
|
@@ -565,8 +585,6 @@ export declare const Darkmode: Story_26;
|
|
|
565
585
|
|
|
566
586
|
export declare const DarkmodeSmall: Story_26;
|
|
567
587
|
|
|
568
|
-
export declare const DefaulDisabled: Story_14;
|
|
569
|
-
|
|
570
588
|
export declare const Default: Story_4;
|
|
571
589
|
|
|
572
590
|
export declare const default_alias: Options | Options[] | ((overrideOptions: Options) => Options | Options[] | Promise<Options | Options[]>);
|
|
@@ -718,18 +736,6 @@ declare interface DimensionsFromWidthAndHeight {
|
|
|
718
736
|
width?: number | string;
|
|
719
737
|
}
|
|
720
738
|
|
|
721
|
-
export declare const Disabled: Story_5;
|
|
722
|
-
|
|
723
|
-
export declare const DisabledInput: Story_11;
|
|
724
|
-
|
|
725
|
-
export declare const DisabledInputWithError: Story_11;
|
|
726
|
-
|
|
727
|
-
export declare const DisabledOutline: Story_5;
|
|
728
|
-
|
|
729
|
-
export declare const DisabledTextarea: Story_15;
|
|
730
|
-
|
|
731
|
-
export declare const DisabledTextareaWithError: Story_15;
|
|
732
|
-
|
|
733
739
|
declare function ErrorMessage({ children, id, className }: ErrorMessageProps): JSX_2.Element;
|
|
734
740
|
export { ErrorMessage }
|
|
735
741
|
export { ErrorMessage as ErrorMessage_alias_1 }
|
|
@@ -757,11 +763,19 @@ export { Fieldset as Fieldset_alias_2 }
|
|
|
757
763
|
export { Fieldset as Fieldset_alias_3 }
|
|
758
764
|
export { Fieldset as Fieldset_alias_4 }
|
|
759
765
|
|
|
760
|
-
export declare const
|
|
766
|
+
export declare const FieldsetErrorCheckboxes: Story_10;
|
|
767
|
+
|
|
768
|
+
export declare const FieldsetErrorRadiobuttons: Story_10;
|
|
761
769
|
|
|
762
770
|
declare interface FieldsetProps extends FieldsetHTMLAttributes<HTMLFieldSetElement> {
|
|
763
771
|
className?: string;
|
|
764
772
|
style?: CSSProperties;
|
|
773
|
+
/**
|
|
774
|
+
* Providing an errorMessage will also give contained Checkboxes or Radiobuttons
|
|
775
|
+
* error styling and aria to indicate invalid state.
|
|
776
|
+
*
|
|
777
|
+
* For Radiobuttons you are even better off using RadioGroup.
|
|
778
|
+
*/
|
|
765
779
|
errorMessage?: ReactNode;
|
|
766
780
|
legendProps?: HTMLAttributes<HTMLElement> & {
|
|
767
781
|
size: "default" | "large";
|
|
@@ -775,8 +789,103 @@ export { FieldsetProps as FieldsetProps_alias_2 }
|
|
|
775
789
|
export { FieldsetProps as FieldsetProps_alias_3 }
|
|
776
790
|
export { FieldsetProps as FieldsetProps_alias_4 }
|
|
777
791
|
|
|
792
|
+
/**
|
|
793
|
+
* 🚨 WORK IN PROGRESS 🚨
|
|
794
|
+
*/
|
|
795
|
+
export declare const Footer_alias_2: ForwardRefExoticComponent<FooterProps & RefAttributes<HTMLDivElement>>;
|
|
796
|
+
|
|
797
|
+
/**
|
|
798
|
+
* 🚨 WORK IN PROGRESS 🚨
|
|
799
|
+
*/
|
|
800
|
+
declare const FooterButtonLink: ForwardRefExoticComponent<FooterButtonLinkProps & RefAttributes<HTMLAnchorElement>>;
|
|
801
|
+
export { FooterButtonLink }
|
|
802
|
+
export { FooterButtonLink as FooterButtonLink_alias_1 }
|
|
803
|
+
export { FooterButtonLink as FooterButtonLink_alias_2 }
|
|
804
|
+
export { FooterButtonLink as FooterButtonLink_alias_3 }
|
|
805
|
+
|
|
806
|
+
declare interface FooterButtonLinkProps extends React.AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
807
|
+
/**
|
|
808
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
809
|
+
*/
|
|
810
|
+
asChild?: boolean;
|
|
811
|
+
}
|
|
812
|
+
export { FooterButtonLinkProps }
|
|
813
|
+
export { FooterButtonLinkProps as FooterButtonLinkProps_alias_1 }
|
|
814
|
+
export { FooterButtonLinkProps as FooterButtonLinkProps_alias_2 }
|
|
815
|
+
export { FooterButtonLinkProps as FooterButtonLinkProps_alias_3 }
|
|
816
|
+
|
|
817
|
+
declare const FooterComponent: ForwardRefExoticComponent<FooterProps & RefAttributes<HTMLDivElement>> & {
|
|
818
|
+
Logo: typeof FooterLogo;
|
|
819
|
+
ButtonLink: typeof FooterButtonLink;
|
|
820
|
+
LinkSections: typeof FooterLinkSections;
|
|
821
|
+
LinkSection: typeof FooterLinkSection;
|
|
822
|
+
};
|
|
823
|
+
export { FooterComponent as Footer }
|
|
824
|
+
export { FooterComponent as Footer_alias_1 }
|
|
825
|
+
export { FooterComponent as Footer_alias_3 }
|
|
826
|
+
|
|
827
|
+
declare const FooterLinkSection: ForwardRefExoticComponent<FooterLinkSectionProps & RefAttributes<HTMLDivElement>>;
|
|
828
|
+
export { FooterLinkSection }
|
|
829
|
+
export { FooterLinkSection as FooterLinkSection_alias_1 }
|
|
830
|
+
export { FooterLinkSection as FooterLinkSection_alias_2 }
|
|
831
|
+
export { FooterLinkSection as FooterLinkSection_alias_3 }
|
|
832
|
+
|
|
833
|
+
declare interface FooterLinkSectionProps extends HTMLAttributes<HTMLDivElement> {
|
|
834
|
+
heading: React.ReactNode;
|
|
835
|
+
children: React.ReactNode;
|
|
836
|
+
}
|
|
837
|
+
|
|
838
|
+
/**
|
|
839
|
+
* Responsive sections of links. Will become an accordion on mobile.
|
|
840
|
+
*
|
|
841
|
+
* Use with `Footer.LinkSection` for each section.
|
|
842
|
+
*/
|
|
843
|
+
declare const FooterLinkSections: ForwardRefExoticComponent<FooterLinkSectionsProps & RefAttributes<HTMLDivElement>>;
|
|
844
|
+
export { FooterLinkSections }
|
|
845
|
+
export { FooterLinkSections as FooterLinkSections_alias_1 }
|
|
846
|
+
export { FooterLinkSections as FooterLinkSections_alias_2 }
|
|
847
|
+
export { FooterLinkSections as FooterLinkSections_alias_3 }
|
|
848
|
+
|
|
849
|
+
declare interface FooterLinkSectionsProps extends HTMLAttributes<HTMLDivElement> {
|
|
850
|
+
children: ReactElement<FooterLinkSectionProps> | ReactElement<FooterLinkSectionProps>[];
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
/**
|
|
854
|
+
* A fixed Posten or Bring logo.
|
|
855
|
+
*
|
|
856
|
+
* The logo follows the brand theme, so if the class `hds-theme-bring` is set the Bring logo will be shown instead of the Posten logo
|
|
857
|
+
*/
|
|
858
|
+
declare const FooterLogo: ForwardRefExoticComponent<FooterLogoProps & RefAttributes<HTMLDivElement>>;
|
|
859
|
+
export { FooterLogo }
|
|
860
|
+
export { FooterLogo as FooterLogo_alias_1 }
|
|
861
|
+
export { FooterLogo as FooterLogo_alias_2 }
|
|
862
|
+
export { FooterLogo as FooterLogo_alias_3 }
|
|
863
|
+
|
|
864
|
+
declare interface FooterLogoProps extends HTMLAttributes<HTMLDivElement> {
|
|
865
|
+
/**
|
|
866
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
867
|
+
*/
|
|
868
|
+
asChild?: boolean;
|
|
869
|
+
}
|
|
870
|
+
|
|
871
|
+
declare interface FooterProps extends HTMLAttributes<HTMLDivElement> {
|
|
872
|
+
variant?: "default" | "slim";
|
|
873
|
+
/**
|
|
874
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
875
|
+
*/
|
|
876
|
+
asChild?: boolean;
|
|
877
|
+
}
|
|
878
|
+
export { FooterProps }
|
|
879
|
+
export { FooterProps as FooterProps_alias_1 }
|
|
880
|
+
export { FooterProps as FooterProps_alias_2 }
|
|
881
|
+
export { FooterProps as FooterProps_alias_3 }
|
|
882
|
+
|
|
778
883
|
export declare const FormWithErrorsOnSubmit: Story_11;
|
|
779
884
|
|
|
885
|
+
export declare function getResponsiveProps<T>(variable: `--hds-${string}`, inputValues?: ResponsiveProp<T>, valueTransformer?: (value: T) => string): Record<string, string>;
|
|
886
|
+
|
|
887
|
+
export declare function getSpacingVariable(size: SpacingSizes | ResponsiveSpacingSizes): string;
|
|
888
|
+
|
|
780
889
|
declare interface HeadingProps {
|
|
781
890
|
variant: "h1-display" | "h1" | "h2" | "h3" | "h3-title";
|
|
782
891
|
as: React_3.ElementType;
|
|
@@ -790,9 +899,20 @@ export declare const HorizontalLongContent: Story_7;
|
|
|
790
899
|
|
|
791
900
|
export declare const HorizontalWithMiddleSelected: Story_27;
|
|
792
901
|
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
902
|
+
/**
|
|
903
|
+
* 🚨 WORK IN PROGRESS 🚨
|
|
904
|
+
*
|
|
905
|
+
* TODO
|
|
906
|
+
* - [ ] Add more examples
|
|
907
|
+
* - [ ] Document usage
|
|
908
|
+
* - [ ] Document props
|
|
909
|
+
*/
|
|
910
|
+
declare const HStack: React_2.ForwardRefExoticComponent<Omit<StackProps, "direction"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
911
|
+
export { HStack }
|
|
912
|
+
export { HStack as HStack_alias_1 }
|
|
913
|
+
export { HStack as HStack_alias_2 }
|
|
914
|
+
export { HStack as HStack_alias_3 }
|
|
915
|
+
export { HStack as HStack_alias_4 }
|
|
796
916
|
|
|
797
917
|
export declare const IconPrimary: Story_5;
|
|
798
918
|
|
|
@@ -928,7 +1048,7 @@ declare const MessageComponent: {
|
|
|
928
1048
|
(props: MessageProps & RefAttributes<HTMLDivElement>): ReactNode;
|
|
929
1049
|
<As extends ElementType>(props: {
|
|
930
1050
|
as?: As | undefined;
|
|
931
|
-
} & MessageProps & Omit<ComponentPropsWithRef<As>, "slot" | "style" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onClose" | "
|
|
1051
|
+
} & MessageProps & Omit<ComponentPropsWithRef<As>, "slot" | "style" | "title" | "children" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "autoFocus" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "hidden" | "id" | "lang" | "nonce" | "spellCheck" | "tabIndex" | "translate" | "radioGroup" | "role" | "about" | "content" | "datatype" | "inlist" | "prefix" | "property" | "rel" | "resource" | "rev" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "color" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-braillelabel" | "aria-brailleroledescription" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colindextext" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-description" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowindextext" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerLeave" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "onClose" | "closed" | "variant" | "closeable" | "closeButtonProps" | "icon" | "iconClassName">): ReactNode;
|
|
932
1052
|
} & Pick<FC, "displayName"> & {
|
|
933
1053
|
Title: typeof MessageTitle;
|
|
934
1054
|
Description: typeof MessageDescription;
|
|
@@ -974,10 +1094,13 @@ export declare const MinAndMax: Story_28;
|
|
|
974
1094
|
something about the consequences.
|
|
975
1095
|
</p>
|
|
976
1096
|
</Modal.Content>
|
|
977
|
-
<Modal.Footer
|
|
1097
|
+
<Modal.Footer>
|
|
1098
|
+
<HStack gap="16" wrap>
|
|
1099
|
+
<PrimaryButton onClick={onMainAction}>Main action</PrimaryButton>
|
|
978
1100
|
<PrimaryButton fill="outline" onClick={onClose}>
|
|
979
|
-
|
|
1101
|
+
Cancel
|
|
980
1102
|
</PrimaryButton>
|
|
1103
|
+
</HStack>
|
|
981
1104
|
</Modal.Footer>
|
|
982
1105
|
</Modal>
|
|
983
1106
|
</>
|
|
@@ -1094,7 +1217,7 @@ export declare const NavbarExpandableMenuTrigger: React_3.ForwardRefExoticCompon
|
|
|
1094
1217
|
* Trigger
|
|
1095
1218
|
*
|
|
1096
1219
|
* ## TODO
|
|
1097
|
-
* - [
|
|
1220
|
+
* - [x] Hide text when on mobile
|
|
1098
1221
|
* - [X] Open / Close icon
|
|
1099
1222
|
* - [X] Make button have consistant width
|
|
1100
1223
|
*/
|
|
@@ -1227,13 +1350,19 @@ declare interface ParagraphProps {
|
|
|
1227
1350
|
variant?: "body" | "body-title" | "body-small" | "body-small-title" | "technical" | "technical-title" | "caption" | "caption-title";
|
|
1228
1351
|
}
|
|
1229
1352
|
|
|
1230
|
-
export declare const
|
|
1353
|
+
export declare const PlainCheckboxes: Story_8;
|
|
1354
|
+
|
|
1355
|
+
export declare const PlainCheckboxesWithError: Story_8;
|
|
1356
|
+
|
|
1357
|
+
export declare const PlainCheckboxeWithError: Story_8;
|
|
1231
1358
|
|
|
1232
1359
|
export declare const PlainInput: Story_11;
|
|
1233
1360
|
|
|
1234
1361
|
export declare const PlainInputWithError: Story_11;
|
|
1235
1362
|
|
|
1236
|
-
export declare const
|
|
1363
|
+
export declare const PlainRadiobuttons: Story_12;
|
|
1364
|
+
|
|
1365
|
+
export declare const PlainRadiobuttonsWithError: Story_12;
|
|
1237
1366
|
|
|
1238
1367
|
export declare const PlainRadioGroup: Story_13;
|
|
1239
1368
|
|
|
@@ -1260,7 +1389,7 @@ export { PrimaryButton as PrimaryButton_alias_3 }
|
|
|
1260
1389
|
|
|
1261
1390
|
export declare const PrimaryOutline: Story_5;
|
|
1262
1391
|
|
|
1263
|
-
declare const Radiobutton:
|
|
1392
|
+
declare const Radiobutton: ForwardRefExoticComponent<RadiobuttonProps & RefAttributes<HTMLInputElement>>;
|
|
1264
1393
|
export { Radiobutton }
|
|
1265
1394
|
export { Radiobutton as Radiobutton_alias_1 }
|
|
1266
1395
|
export { Radiobutton as Radiobutton_alias_2 }
|
|
@@ -1268,7 +1397,16 @@ export { Radiobutton as Radiobutton_alias_3 }
|
|
|
1268
1397
|
export { Radiobutton as Radiobutton_alias_4 }
|
|
1269
1398
|
|
|
1270
1399
|
declare interface RadiobuttonProps extends Omit<InputHTMLAttributes<HTMLInputElement>, "defaultValue"> {
|
|
1400
|
+
children: ReactNode;
|
|
1271
1401
|
variant?: "plain" | "bounding-box";
|
|
1402
|
+
/**
|
|
1403
|
+
* Set to `true` to add error styling. The component will take care of aria to indicate invalid state.
|
|
1404
|
+
*
|
|
1405
|
+
* Normally you don't need this, as you should wrap your Radiobuttons in the RadioGroup component.
|
|
1406
|
+
* When providing an errorMessage to RadioGroup, all contained Radiobuttons will get correct hasError state.
|
|
1407
|
+
*
|
|
1408
|
+
* You can use this when your Radiobutton is part of a non-HDS fieldset which shows an error message.
|
|
1409
|
+
*/
|
|
1272
1410
|
hasError?: boolean;
|
|
1273
1411
|
title?: string;
|
|
1274
1412
|
}
|
|
@@ -1290,13 +1428,14 @@ declare type RadioGroupContextProps = {
|
|
|
1290
1428
|
} & Pick<RadioGroupProps, "name" | "value" | "onChange">;
|
|
1291
1429
|
|
|
1292
1430
|
declare interface RadioGroupProps extends Omit<FieldsetProps, "onChange"> {
|
|
1431
|
+
children: ReactNode;
|
|
1293
1432
|
/** Will be passed to all Radiobuttons within the radio group */
|
|
1294
1433
|
name?: RadiobuttonProps["name"];
|
|
1295
1434
|
/** If you want the group to be controlled, you can pass the selected value here */
|
|
1296
1435
|
value?: RadiobuttonProps["value"];
|
|
1297
1436
|
/**
|
|
1298
|
-
* Error message is passed to the internal Fieldset,
|
|
1299
|
-
*
|
|
1437
|
+
* Error message is passed to the internal Fieldset, and will also give contained Radiobuttons
|
|
1438
|
+
* error styling and aria to indicate invalid state.
|
|
1300
1439
|
*/
|
|
1301
1440
|
errorMessage?: ReactNode;
|
|
1302
1441
|
/** Will be passed to all Radiobuttons within the radio group */
|
|
@@ -1316,6 +1455,29 @@ export declare const ReadonlyTextarea: Story_15;
|
|
|
1316
1455
|
|
|
1317
1456
|
export declare const ReadonlyTextareaWithError: Story_15;
|
|
1318
1457
|
|
|
1458
|
+
export declare type ResponsiveProp<T> = T | ResponsiveValues<T>;
|
|
1459
|
+
|
|
1460
|
+
export declare type ResponsiveSpacingSizes = keyof typeof responsiveSpacingSizes;
|
|
1461
|
+
|
|
1462
|
+
declare const responsiveSpacingSizes: {
|
|
1463
|
+
readonly "4-8": "4-8";
|
|
1464
|
+
readonly "8-12": "8-12";
|
|
1465
|
+
readonly "12-16": "12-16";
|
|
1466
|
+
readonly "16-20": "16-20";
|
|
1467
|
+
readonly "20-24": "20-24";
|
|
1468
|
+
readonly "24-32": "24-32";
|
|
1469
|
+
readonly "32-40": "32-40";
|
|
1470
|
+
readonly "40-48": "40-48";
|
|
1471
|
+
readonly "48-64": "48-64";
|
|
1472
|
+
readonly "64-80": "64-80";
|
|
1473
|
+
readonly "80-120": "80-120";
|
|
1474
|
+
readonly "120-160": "120-160";
|
|
1475
|
+
};
|
|
1476
|
+
|
|
1477
|
+
declare type ResponsiveValues<T> = {
|
|
1478
|
+
[Breakpoint in Breakpoints]?: T;
|
|
1479
|
+
};
|
|
1480
|
+
|
|
1319
1481
|
export declare const Secondary: Story_5;
|
|
1320
1482
|
|
|
1321
1483
|
declare const SecondaryButton: OverridableComponent<ButtonProps, HTMLButtonElement>;
|
|
@@ -1462,6 +1624,56 @@ export declare const Small: Story_26;
|
|
|
1462
1624
|
|
|
1463
1625
|
export declare const Solid: Story_17;
|
|
1464
1626
|
|
|
1627
|
+
export declare type SpacingSizes = keyof typeof spacingSizes;
|
|
1628
|
+
|
|
1629
|
+
declare const spacingSizes: {
|
|
1630
|
+
readonly "4": "4";
|
|
1631
|
+
readonly "8": "8";
|
|
1632
|
+
readonly "12": "12";
|
|
1633
|
+
readonly "16": "16";
|
|
1634
|
+
readonly "20": "20";
|
|
1635
|
+
readonly "24": "24";
|
|
1636
|
+
readonly "32": "32";
|
|
1637
|
+
readonly "40": "40";
|
|
1638
|
+
readonly "48": "48";
|
|
1639
|
+
readonly "64": "64";
|
|
1640
|
+
readonly "80": "80";
|
|
1641
|
+
readonly "120": "120";
|
|
1642
|
+
};
|
|
1643
|
+
|
|
1644
|
+
/**
|
|
1645
|
+
* 🚨 WORK IN PROGRESS 🚨
|
|
1646
|
+
*
|
|
1647
|
+
* TODO
|
|
1648
|
+
* - [ ] Add more examples
|
|
1649
|
+
* - [ ] Document usage
|
|
1650
|
+
* - [ ] Document props
|
|
1651
|
+
*/
|
|
1652
|
+
declare const Stack: React_2.ForwardRefExoticComponent<StackProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
1653
|
+
export { Stack }
|
|
1654
|
+
export { Stack as Stack_alias_1 }
|
|
1655
|
+
export { Stack as Stack_alias_2 }
|
|
1656
|
+
export { Stack as Stack_alias_3 }
|
|
1657
|
+
export { Stack as Stack_alias_4 }
|
|
1658
|
+
|
|
1659
|
+
declare interface StackProps extends React_2.HTMLAttributes<HTMLDivElement> {
|
|
1660
|
+
children: React_2.ReactNode;
|
|
1661
|
+
gap?: ResponsiveProp<SpacingSizes> | ResponsiveSpacingSizes;
|
|
1662
|
+
direction?: ResponsiveProp<React_2.CSSProperties["flexDirection"]>;
|
|
1663
|
+
wrap?: ResponsiveProp<boolean>;
|
|
1664
|
+
align?: ResponsiveProp<React_2.CSSProperties["alignItems"]>;
|
|
1665
|
+
justify?: ResponsiveProp<React_2.CSSProperties["justifyContent"]>;
|
|
1666
|
+
/**
|
|
1667
|
+
* Change the default rendered element for the one passed as a child, merging their props and behavior.
|
|
1668
|
+
*/
|
|
1669
|
+
asChild?: boolean;
|
|
1670
|
+
}
|
|
1671
|
+
export { StackProps }
|
|
1672
|
+
export { StackProps as StackProps_alias_1 }
|
|
1673
|
+
export { StackProps as StackProps_alias_2 }
|
|
1674
|
+
export { StackProps as StackProps_alias_3 }
|
|
1675
|
+
export { StackProps as StackProps_alias_4 }
|
|
1676
|
+
|
|
1465
1677
|
/**
|
|
1466
1678
|
* Indicate a step in a process.
|
|
1467
1679
|
*
|
|
@@ -1586,12 +1798,6 @@ export { StyledHtmlProps as StyledHtmlProps_alias_3 }
|
|
|
1586
1798
|
|
|
1587
1799
|
export declare const Success: Story_20;
|
|
1588
1800
|
|
|
1589
|
-
declare const Tab: OverridableComponent<TabProps, HTMLButtonElement>;
|
|
1590
|
-
export { Tab }
|
|
1591
|
-
export { Tab as Tab_alias_1 }
|
|
1592
|
-
export { Tab as Tab_alias_2 }
|
|
1593
|
-
export { Tab as Tab_alias_3 }
|
|
1594
|
-
|
|
1595
1801
|
declare interface TabContentsProps extends HTMLAttributes<HTMLDivElement> {
|
|
1596
1802
|
children: ReactElement<TabsContentProps> | ReactElement<TabsContentProps>[];
|
|
1597
1803
|
}
|
|
@@ -1601,7 +1807,7 @@ export { TabContentsProps as TabContentsProps_alias_2 }
|
|
|
1601
1807
|
export { TabContentsProps as TabContentsProps_alias_3 }
|
|
1602
1808
|
|
|
1603
1809
|
declare interface TabListProps extends HTMLAttributes<HTMLDivElement> {
|
|
1604
|
-
children: ReactElement<
|
|
1810
|
+
children: ReactElement<TabsTabProps> | ReactElement<TabsTabProps>[];
|
|
1605
1811
|
/**
|
|
1606
1812
|
* Direction of the tabs. Can either be vertical or horizontal.
|
|
1607
1813
|
* Horizontal breaks on window width with fallback back to vertical
|
|
@@ -1613,18 +1819,6 @@ export { TabListProps as TabListProps_alias_1 }
|
|
|
1613
1819
|
export { TabListProps as TabListProps_alias_2 }
|
|
1614
1820
|
export { TabListProps as TabListProps_alias_3 }
|
|
1615
1821
|
|
|
1616
|
-
declare interface TabProps extends HTMLAttributes<HTMLButtonElement> {
|
|
1617
|
-
children: ReactElement<HTMLElement> | string;
|
|
1618
|
-
/**
|
|
1619
|
-
* Identifier for the tab
|
|
1620
|
-
*/
|
|
1621
|
-
tabId: string;
|
|
1622
|
-
}
|
|
1623
|
-
export { TabProps }
|
|
1624
|
-
export { TabProps as TabProps_alias_1 }
|
|
1625
|
-
export { TabProps as TabProps_alias_2 }
|
|
1626
|
-
export { TabProps as TabProps_alias_3 }
|
|
1627
|
-
|
|
1628
1822
|
export declare const Tabs_alias_3: OverridableComponent<TabsProps, HTMLDivElement>;
|
|
1629
1823
|
|
|
1630
1824
|
declare const TabsComponent: {
|
|
@@ -1634,7 +1828,7 @@ declare const TabsComponent: {
|
|
|
1634
1828
|
} & TabsProps & Omit<ComponentPropsWithRef<As>, keyof TabsProps>): ReactNode;
|
|
1635
1829
|
} & Pick<FC, "displayName"> & {
|
|
1636
1830
|
List: typeof TabsList;
|
|
1637
|
-
Tab: typeof
|
|
1831
|
+
Tab: typeof TabsTab;
|
|
1638
1832
|
Contents: typeof TabsContents;
|
|
1639
1833
|
Content: typeof TabsContent;
|
|
1640
1834
|
};
|
|
@@ -1670,11 +1864,10 @@ export { TabsContents as TabsContents_alias_1 }
|
|
|
1670
1864
|
export { TabsContents as TabsContents_alias_2 }
|
|
1671
1865
|
export { TabsContents as TabsContents_alias_3 }
|
|
1672
1866
|
|
|
1673
|
-
export declare const TabsContext: Context<TabsContextProps>;
|
|
1867
|
+
export declare const TabsContext: Context<TabsContextProps | null>;
|
|
1674
1868
|
|
|
1675
1869
|
export declare interface TabsContextProps {
|
|
1676
|
-
|
|
1677
|
-
activeTabId?: string;
|
|
1870
|
+
activeTabId: string;
|
|
1678
1871
|
toggleActiveTabId: (tabId: string) => void;
|
|
1679
1872
|
}
|
|
1680
1873
|
|
|
@@ -1700,6 +1893,24 @@ export { TabsProps as TabsProps_alias_1 }
|
|
|
1700
1893
|
export { TabsProps as TabsProps_alias_2 }
|
|
1701
1894
|
export { TabsProps as TabsProps_alias_3 }
|
|
1702
1895
|
|
|
1896
|
+
declare const TabsTab: OverridableComponent<TabsTabProps, HTMLButtonElement>;
|
|
1897
|
+
export { TabsTab }
|
|
1898
|
+
export { TabsTab as TabsTab_alias_1 }
|
|
1899
|
+
export { TabsTab as TabsTab_alias_2 }
|
|
1900
|
+
export { TabsTab as TabsTab_alias_3 }
|
|
1901
|
+
|
|
1902
|
+
declare interface TabsTabProps extends HTMLAttributes<HTMLButtonElement> {
|
|
1903
|
+
children: ReactElement<HTMLElement> | string;
|
|
1904
|
+
/**
|
|
1905
|
+
* Identifier for the tab
|
|
1906
|
+
*/
|
|
1907
|
+
tabId: string;
|
|
1908
|
+
}
|
|
1909
|
+
export { TabsTabProps }
|
|
1910
|
+
export { TabsTabProps as TabsTabProps_alias_1 }
|
|
1911
|
+
export { TabsTabProps as TabsTabProps_alias_2 }
|
|
1912
|
+
export { TabsTabProps as TabsTabProps_alias_3 }
|
|
1913
|
+
|
|
1703
1914
|
/**
|
|
1704
1915
|
* Text component
|
|
1705
1916
|
*
|
|
@@ -1946,12 +2157,27 @@ export { UnorderedList as UnorderedList_alias_3 }
|
|
|
1946
2157
|
|
|
1947
2158
|
export declare const UnorderedListStory: Story_19;
|
|
1948
2159
|
|
|
2160
|
+
declare const useFieldsetContext: () => {
|
|
2161
|
+
hasError: boolean;
|
|
2162
|
+
};
|
|
2163
|
+
export { useFieldsetContext }
|
|
2164
|
+
export { useFieldsetContext as useFieldsetContext_alias_1 }
|
|
2165
|
+
export { useFieldsetContext as useFieldsetContext_alias_2 }
|
|
2166
|
+
export { useFieldsetContext as useFieldsetContext_alias_3 }
|
|
2167
|
+
export { useFieldsetContext as useFieldsetContext_alias_4 }
|
|
2168
|
+
|
|
1949
2169
|
/**
|
|
1950
2170
|
* Merges an array of refs into a single memoized callback ref or `null`.
|
|
1951
2171
|
* @see https://floating-ui.com/docs/useMergeRefs
|
|
1952
2172
|
*/
|
|
1953
2173
|
export declare function useMergeRefs<Instance>(refs: (React_2.Ref<Instance> | undefined)[]): React_2.RefCallback<Instance> | null;
|
|
1954
2174
|
|
|
2175
|
+
declare const useNavbarExpendableMenuContext: () => readonly [boolean, () => void];
|
|
2176
|
+
export { useNavbarExpendableMenuContext }
|
|
2177
|
+
export { useNavbarExpendableMenuContext as useNavbarExpendableMenuContext_alias_1 }
|
|
2178
|
+
export { useNavbarExpendableMenuContext as useNavbarExpendableMenuContext_alias_2 }
|
|
2179
|
+
export { useNavbarExpendableMenuContext as useNavbarExpendableMenuContext_alias_3 }
|
|
2180
|
+
|
|
1955
2181
|
declare const useRadioGroupContext: () => RadioGroupContextProps;
|
|
1956
2182
|
export { useRadioGroupContext }
|
|
1957
2183
|
export { useRadioGroupContext as useRadioGroupContext_alias_1 }
|
|
@@ -1970,6 +2196,8 @@ export { useScrollLock as useScrollLock_alias_1 }
|
|
|
1970
2196
|
export { useScrollLock as useScrollLock_alias_2 }
|
|
1971
2197
|
export { useScrollLock as useScrollLock_alias_3 }
|
|
1972
2198
|
|
|
2199
|
+
export declare function useTabsContext(): TabsContextProps;
|
|
2200
|
+
|
|
1973
2201
|
declare type Variant = {
|
|
1974
2202
|
variant?: "show-more";
|
|
1975
2203
|
expanded?: never;
|
|
@@ -1982,6 +2210,21 @@ export declare const Vertical: Story_7;
|
|
|
1982
2210
|
|
|
1983
2211
|
export declare const Vertical_alias_1: Story_27;
|
|
1984
2212
|
|
|
2213
|
+
/**
|
|
2214
|
+
* 🚨 WORK IN PROGRESS 🚨
|
|
2215
|
+
*
|
|
2216
|
+
* TODO
|
|
2217
|
+
* - [ ] Add more examples
|
|
2218
|
+
* - [ ] Document usage
|
|
2219
|
+
* - [ ] Document props
|
|
2220
|
+
*/
|
|
2221
|
+
declare const VStack: React_2.ForwardRefExoticComponent<Omit<StackProps, "direction"> & React_2.RefAttributes<HTMLDivElement>>;
|
|
2222
|
+
export { VStack }
|
|
2223
|
+
export { VStack as VStack_alias_1 }
|
|
2224
|
+
export { VStack as VStack_alias_2 }
|
|
2225
|
+
export { VStack as VStack_alias_3 }
|
|
2226
|
+
export { VStack as VStack_alias_4 }
|
|
2227
|
+
|
|
1985
2228
|
export declare const Warning: Story_2;
|
|
1986
2229
|
|
|
1987
2230
|
export declare const Warning_alias_1: Story_20;
|
|
@@ -2029,16 +2272,6 @@ export { WhiteBadge as WhiteBadge_alias_3 }
|
|
|
2029
2272
|
|
|
2030
2273
|
export declare const WhiteBox: Story_3;
|
|
2031
2274
|
|
|
2032
|
-
export declare const WhiteDisabled: Story_14;
|
|
2033
|
-
|
|
2034
|
-
export declare const WhiteDisabledInput: Story_11;
|
|
2035
|
-
|
|
2036
|
-
export declare const WhiteDisabledInputWithError: Story_11;
|
|
2037
|
-
|
|
2038
|
-
export declare const WhiteDisabledTextarea: Story_15;
|
|
2039
|
-
|
|
2040
|
-
export declare const WhiteDisabledTextareaWithError: Story_15;
|
|
2041
|
-
|
|
2042
2275
|
export declare const WhiteInput: Story_11;
|
|
2043
2276
|
|
|
2044
2277
|
export declare const WhiteInputWithError: Story_11;
|