@kroo-web/design-system 1.35.0 → 1.36.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.
- package/dist/components/Columns/Columns.stories.d.ts +6 -3
- package/dist/components/Columns/index.d.ts +13 -3
- package/dist/index.js +3745 -3688
- package/dist/index.umd.cjs +19 -19
- package/dist/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
2
|
import { Columns } from '.';
|
|
3
3
|
|
|
4
|
-
declare const
|
|
5
|
-
export default
|
|
4
|
+
declare const meta: Meta<typeof Columns>;
|
|
5
|
+
export default meta;
|
|
6
6
|
type Story = StoryObj<typeof Columns>;
|
|
7
|
-
export declare const
|
|
7
|
+
export declare const FormLayout: Story;
|
|
8
|
+
export declare const Responsive: Story;
|
|
9
|
+
export declare const ImplicitGridWrapping: Story;
|
|
10
|
+
export declare const SemanticElements: Story;
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
+
type Responsive<T> = {
|
|
2
|
+
base: T;
|
|
3
|
+
desktop?: T;
|
|
4
|
+
tablet?: T;
|
|
5
|
+
};
|
|
6
|
+
type ColumnSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
|
|
1
7
|
export type TColumnsProps = {
|
|
8
|
+
as?: React.ElementType;
|
|
2
9
|
children: React.ReactNode;
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
10
|
+
className?: string;
|
|
11
|
+
cols: ColumnSize | Responsive<ColumnSize>;
|
|
12
|
+
ref?: React.Ref<HTMLElement>;
|
|
13
|
+
} & React.HTMLAttributes<HTMLElement>;
|
|
14
|
+
export declare const Columns: ({ as, children, className, cols, ref, ...props }: TColumnsProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
|
+
export {};
|