@kroo-web/design-system 1.37.0 → 1.40.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.
@@ -3,7 +3,7 @@ export type TAccordionRootProps = {
3
3
  children: React.ReactNode;
4
4
  grouping?: 'attached' | 'detached';
5
5
  } & React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Root>;
6
- export type TAccordionTriggerProps<C extends React.ElementType = 'p'> = {
6
+ export type TAccordionTriggerProps<C extends React.ElementType = 'header' | 'p'> = {
7
7
  as?: C;
8
8
  controls?: React.ReactNode;
9
9
  size?: 'large' | 'regular';
@@ -13,7 +13,7 @@ export declare const Accordion: {
13
13
  Item: (props: React.ComponentPropsWithoutRef<typeof AccordionPrimitive.Item>) => import("react/jsx-runtime").JSX.Element;
14
14
  Root: (props: TAccordionRootProps) => import("react/jsx-runtime").JSX.Element;
15
15
  Trigger: import('react').ForwardRefExoticComponent<{
16
- as?: "p" | undefined;
16
+ as?: "header" | "p" | undefined;
17
17
  controls?: React.ReactNode;
18
18
  size?: "large" | "regular";
19
19
  } & Omit<AccordionPrimitive.AccordionTriggerProps & import('react').RefAttributes<HTMLButtonElement>, "ref"> & import('react').RefAttributes<HTMLButtonElement>>;
@@ -9,4 +9,5 @@ export declare const Helper: Story;
9
9
  export declare const Error: Story;
10
10
  export declare const WithMinAndMax: Story;
11
11
  export declare const Disabled: Story;
12
+ export declare const Missing: Story;
12
13
  export declare const WithDatePicker: Story;
@@ -1,9 +1,9 @@
1
1
  import { Meta, StoryObj } from '@storybook/react-vite';
2
- import { Columns } from '.';
2
+ import { Grid } from '.';
3
3
 
4
- declare const meta: Meta<typeof Columns>;
4
+ declare const meta: Meta<typeof Grid>;
5
5
  export default meta;
6
- type Story = StoryObj<typeof Columns>;
6
+ type Story = StoryObj<typeof Grid>;
7
7
  export declare const FormLayout: Story;
8
8
  export declare const Responsive: Story;
9
9
  export declare const ImplicitGridWrapping: Story;
@@ -4,12 +4,12 @@ type Responsive<T> = {
4
4
  tablet?: T;
5
5
  };
6
6
  type ColumnSize = 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12;
7
- export type TColumnsProps = {
7
+ export type TGridProps = {
8
8
  as?: React.ElementType;
9
9
  children: React.ReactNode;
10
10
  className?: string;
11
11
  cols: ColumnSize | Responsive<ColumnSize>;
12
12
  ref?: React.Ref<HTMLElement>;
13
13
  } & React.HTMLAttributes<HTMLElement>;
14
- export declare const Columns: ({ as, children, className, cols, ref, ...props }: TColumnsProps) => import("react/jsx-runtime").JSX.Element;
14
+ export declare const Grid: ({ as, children, className, cols, ref, ...props }: TGridProps) => import("react/jsx-runtime").JSX.Element;
15
15
  export {};
@@ -4,11 +4,11 @@ export * from './Callout';
4
4
  export * from './Card';
5
5
  export * from './Cards';
6
6
  export * from './Checkbox';
7
- export * from './Columns';
8
7
  export * from './ComboBox';
9
8
  export * from './DatePicker';
10
9
  export * from './Disclosure';
11
10
  export * from './Divider';
11
+ export * from './Grid';
12
12
  export * from './Heading';
13
13
  export * from './Icon';
14
14
  export * from './Link';