@kroo-web/design-system 1.41.1 → 1.42.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.
@@ -12,7 +12,6 @@ export declare const Helper: {
12
12
  render: () => import("react/jsx-runtime").JSX.Element;
13
13
  };
14
14
  export declare const Native: Story;
15
- export declare const BothInputs: Story;
16
- export declare const NativeWithHookForm: {
15
+ export declare const WithHookForm: {
17
16
  render: () => import("react/jsx-runtime").JSX.Element;
18
17
  };
@@ -0,0 +1,25 @@
1
+ import { Meta, StoryObj } from '@storybook/react-vite';
2
+ import { Stack } from '.';
3
+
4
+ declare const meta: Meta<typeof Stack>;
5
+ export default meta;
6
+ type Story = StoryObj<typeof Stack>;
7
+ export declare const GeneralUsage: Story;
8
+ export declare const Vertical: Story;
9
+ export declare const Horizontal: Story;
10
+ /**
11
+ * Demonstrates the direction flip.
12
+ * Mobile: Vertical | Tablet/Desktop: Horizontal
13
+ */
14
+ export declare const ResponsiveDirection: Story;
15
+ /**
16
+ * NEW: Demonstrates responsive fullWidth.
17
+ * Buttons stretch to 100% on mobile, but shrink to their content width on tablet.
18
+ */
19
+ export declare const ResponsiveFullWidth: Story;
20
+ /**
21
+ * NEW: Demonstrates responsive wrapping.
22
+ * Tags wrap to a new line on mobile, but stay on one scrolling line on tablet.
23
+ */
24
+ export declare const ResponsiveWrap: Story;
25
+ export declare const MarketingPage: Story;
@@ -0,0 +1,31 @@
1
+ type Direction = 'horizontal' | 'horizontal-reverse' | 'vertical' | 'vertical-reverse';
2
+ type JustifyContent = 'around' | 'between' | 'center' | 'end' | 'evenly' | 'start';
3
+ type AlignItems = 'center' | 'end' | 'start' | 'stretch';
4
+ type Responsive<T> = {
5
+ base: T;
6
+ desktop?: T;
7
+ tablet?: T;
8
+ };
9
+ type JustifyValue = JustifyContent | Responsive<JustifyContent>;
10
+ type AlignValue = AlignItems | Responsive<AlignItems>;
11
+ type DirectionValue = Direction | Responsive<Direction>;
12
+ type GapValue = 'lg' | 'md' | 'sm' | 'xl' | 'xs' | 'xxs' | Responsive<'lg' | 'md' | 'sm' | 'xl' | 'xs' | 'xxs'>;
13
+ type WrapValue = boolean | Responsive<boolean>;
14
+ type FullWidthValue = boolean | Responsive<boolean>;
15
+ export type TStackProps = {
16
+ alignItems?: AlignValue;
17
+ as?: React.ElementType;
18
+ children: React.ReactNode;
19
+ className?: string;
20
+ fullWidth?: FullWidthValue;
21
+ gap?: GapValue;
22
+ justifyContent?: JustifyValue;
23
+ ref?: React.Ref<HTMLElement>;
24
+ variant?: DirectionValue;
25
+ wrap?: WrapValue;
26
+ } & React.HTMLAttributes<HTMLElement>;
27
+ export declare const Stack: {
28
+ ({ alignItems, as, children, className, fullWidth, gap, justifyContent, ref, variant, wrap, ...props }: TStackProps): import("react/jsx-runtime").JSX.Element;
29
+ displayName: string;
30
+ };
31
+ export {};
@@ -23,6 +23,7 @@ export * from './ProgressIndicator';
23
23
  export * from './RadioGroup';
24
24
  export * from './Select';
25
25
  export * from './Skeleton';
26
+ export * from './Stack';
26
27
  export * from './Table';
27
28
  export * from './Tabs';
28
29
  export * from './Tag';