@obosbbl/grunnmuren-react 1.14.9 → 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.
- package/LICENSE +1 -1
- package/dist/Button/Button.d.mts +71 -0
- package/dist/Button/Button.d.ts +70 -15
- package/dist/Button/Button.mjs +86 -0
- package/package.json +21 -44
- package/README.md +0 -45
- package/dist/Accordion/Accordion.d.ts +0 -27
- package/dist/Accordion/index.d.ts +0 -1
- package/dist/Accordion/stories/Accordion.stories.d.ts +0 -9
- package/dist/Alert/Alert.d.ts +0 -9
- package/dist/Alert/index.d.ts +0 -1
- package/dist/Alert/stories/Alert.stories.d.ts +0 -5
- package/dist/Banner/Banner.d.ts +0 -11
- package/dist/Banner/BannerImage.d.ts +0 -6
- package/dist/Banner/index.d.ts +0 -2
- package/dist/Banner/stories/Banner.stories.d.ts +0 -5
- package/dist/Button/ButtonColorContext.d.ts +0 -3
- package/dist/Button/index.d.ts +0 -2
- package/dist/Button/stories/Button.stories.d.ts +0 -31
- package/dist/Campaign/Campaign.d.ts +0 -26
- package/dist/Campaign/index.d.ts +0 -1
- package/dist/Campaign/stories/Campaign.stories.d.ts +0 -9
- package/dist/Card/Card.d.ts +0 -8
- package/dist/Card/CardContent.d.ts +0 -5
- package/dist/Card/CardImage.d.ts +0 -7
- package/dist/Card/CardLinkOverlay.d.ts +0 -4
- package/dist/Card/CardList.d.ts +0 -7
- package/dist/Card/index.d.ts +0 -5
- package/dist/Card/stories/Card.stories.d.ts +0 -34
- package/dist/Checkbox/Checkbox.d.ts +0 -13
- package/dist/Checkbox/index.d.ts +0 -1
- package/dist/Checkbox/stories/Checkbox.stories.d.ts +0 -8
- package/dist/Chip/Chip.d.ts +0 -10
- package/dist/Chip/index.d.ts +0 -1
- package/dist/Chip/stories/Chip.stories.d.ts +0 -5
- package/dist/Footer/Footer.d.ts +0 -7
- package/dist/Footer/index.d.ts +0 -1
- package/dist/Footer/stories/Footer.stories.d.ts +0 -5
- package/dist/Form/Form.d.ts +0 -9
- package/dist/Form/FormError.d.ts +0 -4
- package/dist/Form/FormErrorMessage.d.ts +0 -5
- package/dist/Form/FormHelperText.d.ts +0 -5
- package/dist/Form/FormLabel.d.ts +0 -7
- package/dist/Form/FormSuccess.d.ts +0 -6
- package/dist/Form/MultiStep/FormStep.d.ts +0 -17
- package/dist/Form/MultiStep/FormStepContext.d.ts +0 -20
- package/dist/Form/MultiStep/FormStepHeader.d.ts +0 -18
- package/dist/Form/MultiStep/index.d.ts +0 -3
- package/dist/Form/index.d.ts +0 -7
- package/dist/Form/stories/Form.stories.d.ts +0 -14
- package/dist/Hero/Hero.d.ts +0 -21
- package/dist/Hero/HeroActions.d.ts +0 -7
- package/dist/Hero/HeroContent.d.ts +0 -9
- package/dist/Hero/HeroImage.d.ts +0 -9
- package/dist/Hero/index.d.ts +0 -4
- package/dist/Hero/stories/Hero.stories.d.ts +0 -33
- package/dist/Hero/utils.d.ts +0 -2
- package/dist/Input/Input.d.ts +0 -11
- package/dist/Input/index.d.ts +0 -1
- package/dist/Input/stories/Input.stories.d.ts +0 -8
- package/dist/Link/Link.d.ts +0 -8
- package/dist/Link/index.d.ts +0 -1
- package/dist/Navbar/Navbar.d.ts +0 -6
- package/dist/Navbar/NavbarCollapsible.d.ts +0 -6
- package/dist/Navbar/NavbarContent.d.ts +0 -7
- package/dist/Navbar/NavbarContext.d.ts +0 -6
- package/dist/Navbar/NavbarExpandedMobileContent.d.ts +0 -9
- package/dist/Navbar/NavbarItem.d.ts +0 -7
- package/dist/Navbar/NavbarItems.d.ts +0 -6
- package/dist/Navbar/NavbarMenuButton.d.ts +0 -4
- package/dist/Navbar/index.d.ts +0 -6
- package/dist/Navbar/stories/Navbar.stories.d.ts +0 -5
- package/dist/Pagination/Pagination.d.ts +0 -23
- package/dist/Pagination/index.d.ts +0 -1
- package/dist/Pagination/stories/Pagination.stories.d.ts +0 -24
- package/dist/Radio/Radio.d.ts +0 -5
- package/dist/Radio/RadioContext.d.ts +0 -10
- package/dist/Radio/RadioGroup.d.ts +0 -20
- package/dist/Radio/index.d.ts +0 -2
- package/dist/Radio/stories/Radio.stories.d.ts +0 -12
- package/dist/Select/Select.d.ts +0 -21
- package/dist/Select/SelectPlain.d.ts +0 -15
- package/dist/Select/index.d.ts +0 -1
- package/dist/Select/stories/Select.stories.d.ts +0 -26
- package/dist/Snackbar/Snackbar.d.ts +0 -8
- package/dist/Snackbar/SnackbarButton.d.ts +0 -6
- package/dist/Snackbar/SnackbarContent.d.ts +0 -5
- package/dist/Snackbar/index.d.ts +0 -3
- package/dist/Snackbar/stories/Snackbar.stories.d.ts +0 -9
- package/dist/StepList/StepList.d.ts +0 -25
- package/dist/StepList/index.d.ts +0 -1
- package/dist/StepList/stories/StepList.stories.d.ts +0 -19
- package/dist/TextArea/TextArea.d.ts +0 -15
- package/dist/TextArea/index.d.ts +0 -1
- package/dist/TextArea/stories/TextArea.stories.d.ts +0 -8
- package/dist/TextField/TextField.d.ts +0 -19
- package/dist/TextField/index.d.ts +0 -1
- package/dist/TextField/stories/TextField.stories.d.ts +0 -9
- package/dist/__stories__/Icon.stories.d.ts +0 -8
- package/dist/__stories__/PageLayout.stories.d.ts +0 -5
- package/dist/__stories__/Typography.stories.d.ts +0 -9
- package/dist/grunnmuren.mjs +0 -1552
- package/dist/hooks/index.d.ts +0 -5
- package/dist/hooks/useBlockBackgroundColor.d.ts +0 -2
- package/dist/hooks/useFallbackId.d.ts +0 -4
- package/dist/hooks/useFormControlValidity.d.ts +0 -15
- package/dist/hooks/usePrefersReducedMotion.d.ts +0 -1
- package/dist/hooks/useScreenMaxWidthMd.d.ts +0 -1
- package/dist/index.d.ts +0 -22
- 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 };
|
package/dist/StepList/index.d.ts
DELETED
|
@@ -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>>;
|
package/dist/TextArea/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './TextArea';
|
|
@@ -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,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;
|