tharaday 0.5.0 → 0.5.2

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.
@@ -1,2 +1,2 @@
1
1
  import { BoxProps } from './Box.types.ts';
2
- export declare const Box: ({ children, as: Component, display, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, m, mx, my, mt, mb, ml, mr, gap, flexDirection, alignItems, justifyContent, flexWrap, flexGrow, flexShrink, flex, fullWidth, textAlign, width, height, gridTemplateColumns, backgroundColor, border, borderBottom, borderColor, borderRadius, className, style, ...props }: BoxProps) => import("react/jsx-runtime").JSX.Element;
2
+ export declare const Box: ({ children, as: Component, display, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, m, mx, my, mt, mb, ml, mr, margin, marginX, marginY, marginTop, marginBottom, marginLeft, marginRight, gap, flexDirection, alignItems, justifyContent, flexWrap, flexGrow, flexShrink, flex, fullWidth, textAlign, width, maxWidth, height, gridTemplateColumns, backgroundColor, border, borderBottom, borderColor, borderRadius, className, style, ...props }: BoxProps) => import("react/jsx-runtime").JSX.Element;
@@ -1,7 +1,7 @@
1
1
  import { StoryObj } from '@storybook/react-vite';
2
2
  declare const meta: {
3
3
  title: string;
4
- component: ({ children, as: Component, display, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, m, mx, my, mt, mb, ml, mr, gap, flexDirection, alignItems, justifyContent, flexWrap, flexGrow, flexShrink, flex, fullWidth, textAlign, width, height, gridTemplateColumns, backgroundColor, border, borderBottom, borderColor, borderRadius, className, style, ...props }: import('./Box.types.ts').BoxProps) => import("react/jsx-runtime").JSX.Element;
4
+ component: ({ children, as: Component, display, padding, paddingX, paddingY, paddingTop, paddingBottom, paddingLeft, paddingRight, m, mx, my, mt, mb, ml, mr, margin, marginX, marginY, marginTop, marginBottom, marginLeft, marginRight, gap, flexDirection, alignItems, justifyContent, flexWrap, flexGrow, flexShrink, flex, fullWidth, textAlign, width, maxWidth, height, gridTemplateColumns, backgroundColor, border, borderBottom, borderColor, borderRadius, className, style, ...props }: import('./Box.types.ts').BoxProps) => import("react/jsx-runtime").JSX.Element;
5
5
  tags: string[];
6
6
  argTypes: {
7
7
  display: {
@@ -16,6 +16,15 @@ declare const meta: {
16
16
  control: "select";
17
17
  options: number[];
18
18
  };
19
+ width: {
20
+ control: "text";
21
+ };
22
+ maxWidth: {
23
+ control: "text";
24
+ };
25
+ height: {
26
+ control: "text";
27
+ };
19
28
  flexDirection: {
20
29
  control: "select";
21
30
  options: string[];
@@ -35,4 +44,5 @@ type Story = StoryObj<typeof meta>;
35
44
  export declare const Default: Story;
36
45
  export declare const FlexRow: Story;
37
46
  export declare const FlexColumn: Story;
47
+ export declare const MaxWidth: Story;
38
48
  export declare const CustomElement: Story;
@@ -27,6 +27,13 @@ export interface BoxProps extends HTMLAttributes<HTMLElement> {
27
27
  mb?: BoxMargin;
28
28
  ml?: BoxMargin;
29
29
  mr?: BoxMargin;
30
+ margin?: BoxMargin;
31
+ marginX?: BoxMargin;
32
+ marginY?: BoxMargin;
33
+ marginTop?: BoxMargin;
34
+ marginBottom?: BoxMargin;
35
+ marginLeft?: BoxMargin;
36
+ marginRight?: BoxMargin;
30
37
  gap?: BoxGap;
31
38
  flexDirection?: BoxFlexDirection;
32
39
  alignItems?: BoxAlignItems;
@@ -39,6 +46,7 @@ export interface BoxProps extends HTMLAttributes<HTMLElement> {
39
46
  fullWidth?: boolean;
40
47
  textAlign?: 'left' | 'center' | 'right' | 'justify';
41
48
  width?: string | number;
49
+ maxWidth?: string | number;
42
50
  height?: string | number;
43
51
  gridTemplateColumns?: string;
44
52
  backgroundColor?: BoxBackgroundColor;