@kroo-web/design-system 1.30.1 → 1.32.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/dist/components/ComboBox/ComboBox.stories.d.ts +2 -7
- package/dist/components/ComboBox/index.d.ts +4 -11
- package/dist/components/Heading/Heading.stories.d.ts +1 -0
- package/dist/components/Heading/index.d.ts +5 -1
- package/dist/index.js +16478 -18401
- package/dist/index.umd.cjs +40 -56
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { ComboBox } from '.';
|
|
3
3
|
|
|
4
|
-
declare const _default: Meta<typeof ComboBox>;
|
|
4
|
+
declare const _default: Meta<typeof ComboBox.Root>;
|
|
5
5
|
export default _default;
|
|
6
|
-
type Story = StoryObj<typeof ComboBox>;
|
|
6
|
+
type Story = StoryObj<typeof ComboBox.Root>;
|
|
7
7
|
export declare const GeneralUsage: Story;
|
|
8
|
-
export declare const AlwaysOpen: Story;
|
|
9
|
-
export declare const Render: Story;
|
|
10
|
-
export declare const Native: {
|
|
11
|
-
render: () => import("react/jsx-runtime").JSX.Element;
|
|
12
|
-
};
|
|
@@ -15,14 +15,7 @@ export type TComboBoxProps = {
|
|
|
15
15
|
onSelect?: (item: TComboBoxItem) => void;
|
|
16
16
|
options: TComboBoxItem[];
|
|
17
17
|
};
|
|
18
|
-
|
|
19
|
-
*
|
|
20
|
-
* @deprecated This component is deprecated.
|
|
21
|
-
* Please use the NativeComboBox component instead.
|
|
22
|
-
*/
|
|
23
|
-
export declare const ComboBox: (props: Omit<TComboBoxProps, "field">) => import("react/jsx-runtime").JSX.Element;
|
|
24
|
-
export declare const Field: ({ alwaysOpen, field: { onBlur, ...restField }, label, onSelect, options }: TComboBoxProps) => import("react/jsx-runtime").JSX.Element;
|
|
25
|
-
export type TNativeComboBoxRootProps = {
|
|
18
|
+
export type TComboBoxRootProps = {
|
|
26
19
|
children: ReactNode;
|
|
27
20
|
disabled?: boolean;
|
|
28
21
|
error?: {
|
|
@@ -37,7 +30,7 @@ export type TNativeComboBoxRootProps = {
|
|
|
37
30
|
missing?: boolean;
|
|
38
31
|
placeholder?: string;
|
|
39
32
|
} & Omit<ComboBoxProps<TComboBoxItem>, 'children' | 'isDisabled' | 'label' | 'onOpenChange' | 'placeholder'>;
|
|
40
|
-
export declare const Root: ({ children, disabled, error, helper, hideLabel, id, label, missing, placeholder, ...rest }:
|
|
33
|
+
export declare const Root: ({ children, disabled, error, helper, hideLabel, id, label, missing, placeholder, ...rest }: TComboBoxRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
41
34
|
export declare const Options: ({ children }: {
|
|
42
35
|
children: ReactNode;
|
|
43
36
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -45,7 +38,7 @@ export declare const Item: ({ children, img }: {
|
|
|
45
38
|
children: ReactNode;
|
|
46
39
|
img?: string;
|
|
47
40
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
48
|
-
export declare const
|
|
41
|
+
export declare const ComboBox: {
|
|
49
42
|
Item: ({ children, img }: {
|
|
50
43
|
children: ReactNode;
|
|
51
44
|
img?: string;
|
|
@@ -53,5 +46,5 @@ export declare const NativeComboBox: {
|
|
|
53
46
|
Options: ({ children }: {
|
|
54
47
|
children: ReactNode;
|
|
55
48
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
56
|
-
Root: ({ children, disabled, error, helper, hideLabel, id, label, missing, placeholder, ...rest }:
|
|
49
|
+
Root: ({ children, disabled, error, helper, hideLabel, id, label, missing, placeholder, ...rest }: TComboBoxRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
57
50
|
};
|
|
@@ -9,5 +9,6 @@ export declare const AllLevels: Story;
|
|
|
9
9
|
export declare const AllSizes: Story;
|
|
10
10
|
export declare const AllWeights: Story;
|
|
11
11
|
export declare const AllFonts: Story;
|
|
12
|
+
export declare const Accent: Story;
|
|
12
13
|
export declare const CustomSize: Story;
|
|
13
14
|
export declare const SemanticVsVisual: Story;
|
|
@@ -15,5 +15,9 @@ interface HeadingStandardProps extends BaseHeadingProps {
|
|
|
15
15
|
level: 3 | 4 | 5 | 6;
|
|
16
16
|
}
|
|
17
17
|
type HeadingProps = HeadingDisplayProps | HeadingStandardProps;
|
|
18
|
-
export declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement
|
|
18
|
+
export declare const Heading: React.ForwardRefExoticComponent<HeadingProps & React.RefAttributes<HTMLHeadingElement>> & {
|
|
19
|
+
Accent: ({ children }: {
|
|
20
|
+
children: React.ReactNode;
|
|
21
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
22
|
+
};
|
|
19
23
|
export {};
|