@namuna-nur/ui-kit 1.7.0 → 1.7.1

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,2 +1,2 @@
1
1
  import { SelectProps } from '..';
2
- export declare const Select: ({ classNames, disabled, message, onChange, options, placeholder, value, isDotable, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Select: ({ classNames, disabled, status, onChange, options, placeholder, value, isDotable, }: SelectProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,8 +1,7 @@
1
- import { Meta, StoryFn, StoryObj } from '@storybook/react';
2
- import { SelectProps, Select } from '..';
1
+ import { Meta, StoryObj } from '@storybook/react';
2
+ import { Select } from '..';
3
3
  type Story = StoryObj<typeof Select>;
4
4
  declare const meta: Meta<typeof Select>;
5
- export declare const Template: StoryFn<SelectProps>;
6
5
  export declare const Default: Story;
7
6
  export declare const Selected: Story;
8
7
  export declare const Disabled: Story;
@@ -23,19 +23,15 @@ export declare const selectTokens: {
23
23
  dot: string;
24
24
  active: string;
25
25
  };
26
- message: {
27
- base: string;
26
+ status: {
28
27
  styles: {
29
28
  danger: {
30
- message: string;
31
29
  trigger: string;
32
30
  };
33
31
  info: {
34
- message: string;
35
32
  trigger: string;
36
33
  };
37
34
  success: {
38
- message: string;
39
35
  trigger: string;
40
36
  };
41
37
  };
@@ -9,11 +9,7 @@ export type SelectOption = {
9
9
  label: string;
10
10
  value: string;
11
11
  };
12
- export type SelectMessageType = 'success' | 'danger' | 'info';
13
- export type SelectMessage = {
14
- type: SelectMessageType;
15
- text: string;
16
- };
12
+ export type SelectStatusType = 'success' | 'danger' | 'info';
17
13
  export type SelectProps = {
18
14
  options: SelectOption[];
19
15
  onChange: (value: string) => void;
@@ -21,7 +17,7 @@ export type SelectProps = {
21
17
  classNames?: SelectClassNames;
22
18
  placeholder?: string;
23
19
  disabled?: boolean;
24
- message?: SelectMessage;
20
+ status?: SelectStatusType;
25
21
  isDotable?: boolean;
26
22
  };
27
23
  export declare const selectStoryItems: {