@nurihaus/web-design-system 1.4.47 → 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.
@@ -1,14 +1,16 @@
1
+ export declare const variant: readonly ["primary", "secondary", "ghost", "neutral", "confirm", "outlined"];
2
+ export declare const size: readonly ["xl", "l", "r", "m", "s", "xs"];
1
3
  export declare const ctaButtonProps: {
2
4
  variant: {
3
5
  type: "className";
4
6
  className: string;
5
- values: string[];
6
- default: string;
7
+ values: readonly ["primary", "secondary", "ghost", "neutral", "confirm", "outlined"];
8
+ default: "primary";
7
9
  };
8
10
  size: {
9
11
  type: "className";
10
12
  className: string;
11
- values: string[];
12
- default: string;
13
+ values: readonly ["xl", "l", "r", "m", "s", "xs"];
14
+ default: "m";
13
15
  };
14
16
  };
@@ -3,6 +3,20 @@ import { CTAButtonProps } from './cta-button';
3
3
  declare const meta: {
4
4
  title: string;
5
5
  component: (props: CTAButtonProps) => import("react/jsx-runtime").JSX.Element;
6
+ argTypes: {
7
+ variant: {
8
+ control: {
9
+ type: "select";
10
+ };
11
+ options: readonly ["primary", "secondary", "ghost", "neutral", "confirm", "outlined"];
12
+ };
13
+ size: {
14
+ control: {
15
+ type: "select";
16
+ };
17
+ options: readonly ["xl", "l", "r", "m", "s", "xs"];
18
+ };
19
+ };
6
20
  };
7
21
  export default meta;
8
22
  type Story = StoryObj<typeof meta>;
@@ -10,4 +24,6 @@ export declare const Default: Story;
10
24
  export declare const Primary: StoryObj<CTAButtonProps>;
11
25
  export declare const Secondary: StoryObj<CTAButtonProps>;
12
26
  export declare const Ghost: StoryObj<CTAButtonProps>;
13
- export declare const White: StoryObj<CTAButtonProps>;
27
+ export declare const Neutral: StoryObj<CTAButtonProps>;
28
+ export declare const Confirm: StoryObj<CTAButtonProps>;
29
+ export declare const Outlined: StoryObj<CTAButtonProps>;
@@ -1,9 +1,9 @@
1
1
  import { ComponentPropsWithRef } from 'react';
2
2
  import { ReactNode } from 'react';
3
- import { size } from '../badge/badge-props';
3
+ import { size, variant } from './button-props';
4
4
  import { CommonButtonProps } from './button-type';
5
5
  export interface CTAButtonProps extends ComponentPropsWithRef<'button'>, CommonButtonProps {
6
- variant?: 'primary' | 'secondary' | 'ghost' | 'white' | 'warning';
6
+ variant?: (typeof variant)[number];
7
7
  size?: (typeof size)[number];
8
8
  text: string | ReactNode;
9
9
  leftIcon?: ReactNode;
@@ -16,7 +16,7 @@ declare const meta: {
16
16
  args: {
17
17
  size: number;
18
18
  justifyContent: "flex-start";
19
- indicatorColor: "grayE4";
19
+ indicatorColor: "grey-scale-200";
20
20
  };
21
21
  };
22
22
  export default meta;
@@ -23,7 +23,7 @@ declare const meta: {
23
23
  args: {
24
24
  open: true;
25
25
  message: string;
26
- spinnerColor: "grayE4";
26
+ spinnerColor: "grey-scale-200";
27
27
  backdropOpacity: number;
28
28
  zIndex: number;
29
29
  };
@@ -10,7 +10,7 @@ declare const meta: {
10
10
  };
11
11
  };
12
12
  args: {
13
- color: "grayE4";
13
+ color: "grey-scale-200";
14
14
  };
15
15
  };
16
16
  export default meta;
@@ -2,8 +2,8 @@ import React, { PropsWithChildren } from 'react';
2
2
  import { TextFieldHelperTextProps, TextFieldInputProps, TextFieldLabelProps, TextFieldRootProps } from './text-field-type';
3
3
  declare const TextFieldRoot: {
4
4
  (props: PropsWithChildren<TextFieldRootProps>): import("react/jsx-runtime").JSX.Element;
5
- TextLabel: (props: TextFieldLabelProps) => number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
5
+ TextLabel: (props: TextFieldLabelProps) => number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | null | undefined;
6
6
  InputField: React.ForwardRefExoticComponent<Omit<TextFieldInputProps, "ref"> & React.RefAttributes<HTMLInputElement>>;
7
- HelperText: (props: TextFieldHelperTextProps) => number | boolean | Iterable<React.ReactNode> | import("react/jsx-runtime").JSX.Element | null | undefined;
7
+ HelperText: (props: TextFieldHelperTextProps) => number | boolean | import("react/jsx-runtime").JSX.Element | Iterable<React.ReactNode> | null | undefined;
8
8
  };
9
9
  export default TextFieldRoot;
package/dist/index.d.ts CHANGED
@@ -14,4 +14,4 @@ export { default as Text } from './components/elements/text/text';
14
14
  export { default as Tooltip } from './components/tooltip/tooltip';
15
15
  export { default as ModalWithDoubleButton } from './components/modal/modal-with-double-button';
16
16
  export { Spinner, InlineLoading, OverlayLoading } from './components/loading';
17
- export { colors } from './styles/token/colors';
17
+ export { legacyColors as colors } from './styles/token/colors';