@kroo-web/design-system 1.37.0 → 1.41.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/Accordion/index.d.ts +2 -2
- package/dist/components/DatePicker/DatePicker.stories.d.ts +1 -0
- package/dist/components/{Columns/Columns.stories.d.ts → Grid/Grid.stories.d.ts} +4 -3
- package/dist/components/{Columns → Grid}/index.d.ts +3 -2
- package/dist/components/Notice/Notice.stories.d.ts +9 -0
- package/dist/components/Notice/Notice.test.d.ts +1 -0
- package/dist/components/Notice/index.d.ts +18 -0
- package/dist/components/RadioGroup/index.d.ts +10 -4
- package/dist/components/RadioGroup/radioGroup.stories.d.ts +1 -0
- package/dist/components/index.d.ts +2 -1
- package/dist/index.js +4338 -4279
- package/dist/index.umd.cjs +19 -19
- package/dist/style.css +1 -1
- package/dist/styles/styles/tokens/product.css +45 -2
- package/package.json +1 -1
- /package/dist/components/{Columns/columns.test.d.ts → Grid/Grid.test.d.ts} +0 -0
|
@@ -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>>;
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import {
|
|
2
|
+
import { Grid } from '.';
|
|
3
3
|
|
|
4
|
-
declare const meta: Meta<typeof
|
|
4
|
+
declare const meta: Meta<typeof Grid>;
|
|
5
5
|
export default meta;
|
|
6
|
-
type Story = StoryObj<typeof
|
|
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;
|
|
10
10
|
export declare const SemanticElements: Story;
|
|
11
|
+
export declare const CustomGap: Story;
|
|
@@ -4,12 +4,13 @@ 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
|
|
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
|
+
gap?: Responsive<'lg' | 'md' | 'sm' | 'xl' | 'xs' | 'xxs'>;
|
|
12
13
|
ref?: React.Ref<HTMLElement>;
|
|
13
14
|
} & React.HTMLAttributes<HTMLElement>;
|
|
14
|
-
export declare const
|
|
15
|
+
export declare const Grid: ({ as, children, className, cols, gap, ref, ...props }: TGridProps) => import("react/jsx-runtime").JSX.Element;
|
|
15
16
|
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react-vite';
|
|
2
|
+
import { Notice } from '.';
|
|
3
|
+
|
|
4
|
+
declare const meta: Meta<typeof Notice>;
|
|
5
|
+
export default meta;
|
|
6
|
+
type Story = StoryObj<typeof Notice>;
|
|
7
|
+
export declare const DirectDebitGuarantee: Story;
|
|
8
|
+
export declare const WithLongContent: Story;
|
|
9
|
+
export declare const Variants: Story;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type TNoticeProps = {
|
|
2
|
+
children: React.ReactNode;
|
|
3
|
+
className?: string;
|
|
4
|
+
ref?: React.Ref<HTMLElement>;
|
|
5
|
+
variant?: 'primary' | 'secondary';
|
|
6
|
+
} & React.HTMLAttributes<HTMLElement>;
|
|
7
|
+
export type TNoticeVisualProps = {
|
|
8
|
+
children: React.ReactNode;
|
|
9
|
+
className?: string;
|
|
10
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
11
|
+
export type TNoticeContentProps = {
|
|
12
|
+
children: React.ReactNode;
|
|
13
|
+
className?: string;
|
|
14
|
+
} & React.HTMLAttributes<HTMLDivElement>;
|
|
15
|
+
export declare const Notice: (({ children, className, ref, variant, ...props }: TNoticeProps) => import("react/jsx-runtime").JSX.Element) & {
|
|
16
|
+
Content: ({ children, className, ...props }: TNoticeContentProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
+
Visual: ({ children, className, ...props }: TNoticeVisualProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
};
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
import * as RadixRadioGroup from '@radix-ui/react-radio-group';
|
|
2
|
+
type Responsive<T> = {
|
|
3
|
+
base: T;
|
|
4
|
+
desktop?: T;
|
|
5
|
+
tablet?: T;
|
|
6
|
+
};
|
|
7
|
+
type VariantType = 'cards' | 'circle';
|
|
2
8
|
export type TRadioGroupRootProps = {
|
|
3
9
|
children: React.ReactNode;
|
|
4
10
|
className?: string;
|
|
@@ -9,14 +15,14 @@ export type TRadioGroupRootProps = {
|
|
|
9
15
|
label: string;
|
|
10
16
|
name: string;
|
|
11
17
|
onChange: (value: string) => void;
|
|
12
|
-
variant?:
|
|
18
|
+
variant?: Responsive<VariantType> | VariantType;
|
|
13
19
|
visual?: 'horizontal' | 'vertical';
|
|
14
|
-
} & RadixRadioGroup.RadioGroupProps
|
|
20
|
+
} & Omit<RadixRadioGroup.RadioGroupProps, 'onValueChange'>;
|
|
15
21
|
export declare const RadioGroup: {
|
|
16
22
|
Indicator: ({ className, ...props }: RadixRadioGroup.RadioGroupIndicatorProps) => import("react/jsx-runtime").JSX.Element;
|
|
17
|
-
Item: ({ children, className, supportingText,
|
|
23
|
+
Item: ({ children, className, supportingText, ...props }: {
|
|
18
24
|
supportingText?: string;
|
|
19
|
-
variant?: "cards" | "circle";
|
|
20
25
|
} & RadixRadioGroup.RadioGroupItemProps) => import("react/jsx-runtime").JSX.Element;
|
|
21
26
|
Root: ({ children, className, disabled, error, label, onChange, variant, visual, ...props }: TRadioGroupRootProps) => import("react/jsx-runtime").JSX.Element;
|
|
22
27
|
};
|
|
28
|
+
export {};
|
|
@@ -4,16 +4,17 @@ 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';
|
|
15
15
|
export * from './Loading';
|
|
16
16
|
export * from './Modal';
|
|
17
|
+
export * from './Notice';
|
|
17
18
|
export * from './NumberField';
|
|
18
19
|
export * from './PhoneField';
|
|
19
20
|
export * from './PinInput';
|