@obosbbl/grunnmuren-react 1.14.8 → 2.0.0

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.
Files changed (110) hide show
  1. package/LICENSE +1 -1
  2. package/dist/Button/Button.d.mts +71 -0
  3. package/dist/Button/Button.d.ts +70 -15
  4. package/dist/Button/Button.mjs +86 -0
  5. package/package.json +20 -44
  6. package/README.md +0 -45
  7. package/dist/Accordion/Accordion.d.ts +0 -27
  8. package/dist/Accordion/index.d.ts +0 -1
  9. package/dist/Accordion/stories/Accordion.stories.d.ts +0 -9
  10. package/dist/Alert/Alert.d.ts +0 -9
  11. package/dist/Alert/index.d.ts +0 -1
  12. package/dist/Alert/stories/Alert.stories.d.ts +0 -5
  13. package/dist/Banner/Banner.d.ts +0 -11
  14. package/dist/Banner/BannerImage.d.ts +0 -6
  15. package/dist/Banner/index.d.ts +0 -2
  16. package/dist/Banner/stories/Banner.stories.d.ts +0 -5
  17. package/dist/Button/ButtonColorContext.d.ts +0 -3
  18. package/dist/Button/index.d.ts +0 -2
  19. package/dist/Button/stories/Button.stories.d.ts +0 -31
  20. package/dist/Campaign/Campaign.d.ts +0 -26
  21. package/dist/Campaign/index.d.ts +0 -1
  22. package/dist/Campaign/stories/Campaign.stories.d.ts +0 -9
  23. package/dist/Card/Card.d.ts +0 -8
  24. package/dist/Card/CardContent.d.ts +0 -5
  25. package/dist/Card/CardImage.d.ts +0 -7
  26. package/dist/Card/CardLinkOverlay.d.ts +0 -4
  27. package/dist/Card/CardList.d.ts +0 -7
  28. package/dist/Card/index.d.ts +0 -5
  29. package/dist/Card/stories/Card.stories.d.ts +0 -34
  30. package/dist/Checkbox/Checkbox.d.ts +0 -13
  31. package/dist/Checkbox/index.d.ts +0 -1
  32. package/dist/Checkbox/stories/Checkbox.stories.d.ts +0 -8
  33. package/dist/Chip/Chip.d.ts +0 -10
  34. package/dist/Chip/index.d.ts +0 -1
  35. package/dist/Chip/stories/Chip.stories.d.ts +0 -5
  36. package/dist/Footer/Footer.d.ts +0 -7
  37. package/dist/Footer/index.d.ts +0 -1
  38. package/dist/Footer/stories/Footer.stories.d.ts +0 -5
  39. package/dist/Form/Form.d.ts +0 -9
  40. package/dist/Form/FormError.d.ts +0 -4
  41. package/dist/Form/FormErrorMessage.d.ts +0 -5
  42. package/dist/Form/FormHelperText.d.ts +0 -5
  43. package/dist/Form/FormLabel.d.ts +0 -7
  44. package/dist/Form/FormSuccess.d.ts +0 -6
  45. package/dist/Form/MultiStep/FormStep.d.ts +0 -17
  46. package/dist/Form/MultiStep/FormStepContext.d.ts +0 -20
  47. package/dist/Form/MultiStep/FormStepHeader.d.ts +0 -18
  48. package/dist/Form/MultiStep/index.d.ts +0 -3
  49. package/dist/Form/index.d.ts +0 -7
  50. package/dist/Form/stories/Form.stories.d.ts +0 -14
  51. package/dist/Hero/Hero.d.ts +0 -21
  52. package/dist/Hero/HeroActions.d.ts +0 -7
  53. package/dist/Hero/HeroContent.d.ts +0 -9
  54. package/dist/Hero/HeroImage.d.ts +0 -9
  55. package/dist/Hero/index.d.ts +0 -4
  56. package/dist/Hero/stories/Hero.stories.d.ts +0 -33
  57. package/dist/Hero/utils.d.ts +0 -2
  58. package/dist/Input/Input.d.ts +0 -11
  59. package/dist/Input/index.d.ts +0 -1
  60. package/dist/Input/stories/Input.stories.d.ts +0 -8
  61. package/dist/Link/Link.d.ts +0 -8
  62. package/dist/Link/index.d.ts +0 -1
  63. package/dist/Navbar/Navbar.d.ts +0 -6
  64. package/dist/Navbar/NavbarCollapsible.d.ts +0 -6
  65. package/dist/Navbar/NavbarContent.d.ts +0 -7
  66. package/dist/Navbar/NavbarContext.d.ts +0 -6
  67. package/dist/Navbar/NavbarExpandedMobileContent.d.ts +0 -9
  68. package/dist/Navbar/NavbarItem.d.ts +0 -7
  69. package/dist/Navbar/NavbarItems.d.ts +0 -6
  70. package/dist/Navbar/NavbarMenuButton.d.ts +0 -4
  71. package/dist/Navbar/index.d.ts +0 -6
  72. package/dist/Navbar/stories/Navbar.stories.d.ts +0 -5
  73. package/dist/Pagination/Pagination.d.ts +0 -23
  74. package/dist/Pagination/index.d.ts +0 -1
  75. package/dist/Pagination/stories/Pagination.stories.d.ts +0 -24
  76. package/dist/Radio/Radio.d.ts +0 -5
  77. package/dist/Radio/RadioContext.d.ts +0 -10
  78. package/dist/Radio/RadioGroup.d.ts +0 -20
  79. package/dist/Radio/index.d.ts +0 -2
  80. package/dist/Radio/stories/Radio.stories.d.ts +0 -12
  81. package/dist/Select/Select.d.ts +0 -21
  82. package/dist/Select/SelectPlain.d.ts +0 -15
  83. package/dist/Select/index.d.ts +0 -1
  84. package/dist/Select/stories/Select.stories.d.ts +0 -26
  85. package/dist/Snackbar/Snackbar.d.ts +0 -8
  86. package/dist/Snackbar/SnackbarButton.d.ts +0 -6
  87. package/dist/Snackbar/SnackbarContent.d.ts +0 -5
  88. package/dist/Snackbar/index.d.ts +0 -3
  89. package/dist/Snackbar/stories/Snackbar.stories.d.ts +0 -9
  90. package/dist/StepList/StepList.d.ts +0 -25
  91. package/dist/StepList/index.d.ts +0 -1
  92. package/dist/StepList/stories/StepList.stories.d.ts +0 -19
  93. package/dist/TextArea/TextArea.d.ts +0 -15
  94. package/dist/TextArea/index.d.ts +0 -1
  95. package/dist/TextArea/stories/TextArea.stories.d.ts +0 -8
  96. package/dist/TextField/TextField.d.ts +0 -19
  97. package/dist/TextField/index.d.ts +0 -1
  98. package/dist/TextField/stories/TextField.stories.d.ts +0 -9
  99. package/dist/__stories__/Icon.stories.d.ts +0 -8
  100. package/dist/__stories__/PageLayout.stories.d.ts +0 -5
  101. package/dist/__stories__/Typography.stories.d.ts +0 -9
  102. package/dist/grunnmuren.js +0 -1552
  103. package/dist/hooks/index.d.ts +0 -5
  104. package/dist/hooks/useBlockBackgroundColor.d.ts +0 -2
  105. package/dist/hooks/useFallbackId.d.ts +0 -4
  106. package/dist/hooks/useFormControlValidity.d.ts +0 -15
  107. package/dist/hooks/usePrefersReducedMotion.d.ts +0 -1
  108. package/dist/hooks/useScreenMaxWidthMd.d.ts +0 -1
  109. package/dist/index.d.ts +0 -22
  110. package/dist/utils/index.d.ts +0 -2
@@ -1,25 +0,0 @@
1
- /// <reference types="react" />
2
- type Alignment = 'center' | 'top';
3
- export interface StepListProps extends React.ComponentPropsWithoutRef<'ol'> {
4
- /**
5
- * Determines the vertical alignment of the bullets
6
- * @default 'center'
7
- */
8
- align?: Alignment;
9
- /**
10
- * <StepList> items
11
- */
12
- children: React.ReactNode;
13
- }
14
- declare const StepList: {
15
- (props: StepListProps): import("react/jsx-runtime").JSX.Element;
16
- Item: (props: StepListItemProps) => import("react/jsx-runtime").JSX.Element;
17
- };
18
- export interface StepListItemProps extends React.ComponentPropsWithoutRef<'li'> {
19
- /** Content for the StepListItem's bullet */
20
- bullet: React.ReactNode;
21
- /** @private this is set by the parent StepList component */
22
- align?: Alignment;
23
- }
24
- export declare const StepListItem: (props: StepListItemProps) => import("react/jsx-runtime").JSX.Element;
25
- export { StepList };
@@ -1 +0,0 @@
1
- export * from './StepList';
@@ -1,19 +0,0 @@
1
- import { StepListProps } from '../..';
2
- declare const metadata: {
3
- title: string;
4
- parameters: {
5
- layout: string;
6
- };
7
- argTypes: {
8
- align: {
9
- defaultValue: string;
10
- options: string[];
11
- control: {
12
- type: string;
13
- };
14
- };
15
- };
16
- };
17
- export default metadata;
18
- export declare const Numbered: (props: StepListProps) => import("react/jsx-runtime").JSX.Element;
19
- export declare const Icons: (props: StepListProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,15 +0,0 @@
1
- /// <reference types="react" />
2
- export interface TextAreaProps extends React.ComponentPropsWithoutRef<'textarea'> {
3
- children?: never;
4
- /** Help text for the form control */
5
- description?: React.ReactNode;
6
- /** Error message for the form control */
7
- error?: string;
8
- /** Label for the form control */
9
- label: string;
10
- /** @deprecated. use `disableValidation` instead */
11
- validate?: never;
12
- /** Disables the built in HTML5 validation. If using custom validation for an entire form, consider setting `noValidate` on the form element instead. @default false */
13
- disableValidation?: boolean;
14
- }
15
- export declare const TextArea: import("react").ForwardRefExoticComponent<TextAreaProps & import("react").RefAttributes<HTMLTextAreaElement>>;
@@ -1 +0,0 @@
1
- export * from './TextArea';
@@ -1,8 +0,0 @@
1
- declare const metadata: {
2
- title: string;
3
- parameters: {
4
- layout: string;
5
- };
6
- };
7
- export default metadata;
8
- export declare const Default: () => import("react/jsx-runtime").JSX.Element;
@@ -1,19 +0,0 @@
1
- /// <reference types="react" />
2
- export interface TextFieldProps extends React.ComponentPropsWithoutRef<'input'> {
3
- children?: never;
4
- /** Help text for the form control */
5
- description?: React.ReactNode;
6
- /** Error message for the form control */
7
- error?: string;
8
- /** Label for the form control */
9
- label: React.ReactNode;
10
- /** React node on the left (ex. icon, text, component) */
11
- leftAddon?: React.ReactNode;
12
- /** React node on the left (ex. icon, text, component) */
13
- rightAddon?: React.ReactNode;
14
- /** @deprecated. use `disableValidation` instead */
15
- validate?: never;
16
- /** Disables the built in HTML5 validation. If using custom validation for an entire form, consider setting `noValidate` on the form element instead. @default false */
17
- disableValidation?: boolean;
18
- }
19
- export declare const TextField: import("react").ForwardRefExoticComponent<TextFieldProps & import("react").RefAttributes<HTMLInputElement>>;
@@ -1 +0,0 @@
1
- export * from './TextField';
@@ -1,9 +0,0 @@
1
- declare const metadata: {
2
- title: string;
3
- parameters: {
4
- layout: string;
5
- };
6
- };
7
- export default metadata;
8
- export declare const Default: () => import("react/jsx-runtime").JSX.Element;
9
- export declare const Validation: () => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +0,0 @@
1
- declare const _default: {
2
- title: string;
3
- parameters: {
4
- layout: string;
5
- };
6
- };
7
- export default _default;
8
- export declare function Icons(): import("react/jsx-runtime").JSX.Element;
@@ -1,5 +0,0 @@
1
- declare const metadata: {
2
- title: string;
3
- };
4
- export default metadata;
5
- export declare const Pagelayout: () => import("react/jsx-runtime").JSX.Element;
@@ -1,9 +0,0 @@
1
- declare const metadata: {
2
- title: string;
3
- parameters: {
4
- layout: string;
5
- };
6
- };
7
- export default metadata;
8
- export declare const Default: () => import("react/jsx-runtime").JSX.Element;
9
- export declare const Prose: () => import("react/jsx-runtime").JSX.Element;