@vaneui/ui 0.3.1-alpha.20251201135827.a31cb1e → 0.3.1-alpha.20251201144940.b3e097b
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/ui/badge.d.ts +36 -2
- package/dist/components/ui/badge.d.ts.map +1 -1
- package/dist/components/ui/button.d.ts +39 -3
- package/dist/components/ui/button.d.ts.map +1 -1
- package/dist/components/ui/card.d.ts +43 -2
- package/dist/components/ui/card.d.ts.map +1 -1
- package/dist/components/ui/checkbox.d.ts +39 -2
- package/dist/components/ui/checkbox.d.ts.map +1 -1
- package/dist/components/ui/chip.d.ts +36 -2
- package/dist/components/ui/chip.d.ts.map +1 -1
- package/dist/components/ui/code.d.ts +36 -2
- package/dist/components/ui/code.d.ts.map +1 -1
- package/dist/components/ui/col.d.ts +41 -2
- package/dist/components/ui/col.d.ts.map +1 -1
- package/dist/components/ui/container.d.ts +38 -2
- package/dist/components/ui/container.d.ts.map +1 -1
- package/dist/components/ui/divider.d.ts +32 -2
- package/dist/components/ui/divider.d.ts.map +1 -1
- package/dist/components/ui/grid.d.ts +117 -10
- package/dist/components/ui/grid.d.ts.map +1 -1
- package/dist/components/ui/img.d.ts +36 -2
- package/dist/components/ui/img.d.ts.map +1 -1
- package/dist/components/ui/input.d.ts +36 -2
- package/dist/components/ui/input.d.ts.map +1 -1
- package/dist/components/ui/label.d.ts +42 -2
- package/dist/components/ui/label.d.ts.map +1 -1
- package/dist/components/ui/row.d.ts +40 -2
- package/dist/components/ui/row.d.ts.map +1 -1
- package/dist/components/ui/section.d.ts +39 -2
- package/dist/components/ui/section.d.ts.map +1 -1
- package/dist/components/ui/stack.d.ts +40 -2
- package/dist/components/ui/stack.d.ts.map +1 -1
- package/dist/components/ui/typography.d.ts +223 -14
- package/dist/components/ui/typography.d.ts.map +1 -1
- package/dist/index.esm.js +839 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +839 -0
- package/dist/index.js.map +1 -1
- package/dist/ui.css +15 -0
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { BaseProps, SizeProps, HideProps, ItemsProps, JustifyProps, PositionProps, DisplayProps, OverflowProps, WrapProps, GapProps, FlexDirectionProps, ReverseProps, AppearanceProps, TransparentProps, BorderProps, ShadowProps, RingProps, FocusVisibleProps, ShapeProps, FontWeightProps, FontStyleProps, TextDecorationProps, TextTransformProps, FontFamilyProps, TextAlignProps, PaddingProps, VariantProps } from './props';
|
|
2
3
|
/** Badge component props */
|
|
3
4
|
export type BadgeProps = BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & FocusVisibleProps & ShapeProps & FontWeightProps & FontStyleProps & TextDecorationProps & TextTransformProps & FontFamilyProps & TextAlignProps & PaddingProps & VariantProps & Omit<React.HTMLAttributes<HTMLSpanElement>, 'className' | 'children'> & Partial<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'className' | 'children'>> & {
|
|
@@ -6,10 +7,43 @@ export type BadgeProps = BaseProps & SizeProps & HideProps & ItemsProps & Justif
|
|
|
6
7
|
/** Custom HTML tag or React component to render as */
|
|
7
8
|
tag?: React.ElementType;
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
/**
|
|
11
|
+
* A compact badge component for displaying status, labels, or counts.
|
|
12
|
+
*
|
|
13
|
+
* Badges are typically used to highlight important information or indicate
|
|
14
|
+
* status (e.g., "New", "Beta", notification counts). Supports the same
|
|
15
|
+
* customization options as buttons including appearances, sizes, and variants.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* // Basic badge
|
|
20
|
+
* <Badge>New</Badge>
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* // Success badge with filled variant
|
|
26
|
+
* <Badge success filled>Active</Badge>
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* // Notification count badge
|
|
32
|
+
* <Badge danger pill xs>3</Badge>
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* // Badge as a link
|
|
38
|
+
* <Badge href="/beta" info outlined>Beta</Badge>
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @see {@link BadgeProps} for all available props
|
|
42
|
+
*/
|
|
43
|
+
export declare const Badge: React.ForwardRefExoticComponent<BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & FocusVisibleProps & ShapeProps & FontWeightProps & FontStyleProps & TextDecorationProps & TextTransformProps & FontFamilyProps & TextAlignProps & PaddingProps & VariantProps & Omit<React.HTMLAttributes<HTMLSpanElement>, "className" | "children"> & Partial<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "children">> & {
|
|
10
44
|
/** URL to navigate to (renders component as anchor tag) */
|
|
11
45
|
href?: string;
|
|
12
46
|
/** Custom HTML tag or React component to render as */
|
|
13
47
|
tag?: React.ElementType;
|
|
14
|
-
} &
|
|
48
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
15
49
|
//# sourceMappingURL=badge.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/ui/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAa,EACb,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,YAAY,EACb,MAAM,SAAS,CAAC;AAIjB,4BAA4B;AAC5B,MAAM,MAAM,UAAU,GAAG,SAAS,GAChC,SAAS,GACT,SAAS,GACT,UAAU,GACV,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,SAAS,GACT,QAAQ,GACR,kBAAkB,GAClB,YAAY,GACZ,eAAe,GACf,gBAAgB,GAChB,WAAW,GACX,WAAW,GACX,SAAS,GACT,iBAAiB,GACjB,UAAU,GACV,eAAe,GACf,cAAc,GACd,mBAAmB,GACnB,kBAAkB,GAClB,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GACrE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC,GAAG;IACzF,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,KAAK;IAvChB,2DAA2D;WACpD,MAAM;IACb,sDAAsD;UAChD,KAAK,CAAC,WAAW;yCAyCxB,CAAA"}
|
|
@@ -1,15 +1,51 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { BaseProps, SizeProps, HideProps, ItemsProps, JustifyProps, PositionProps, DisplayProps, OverflowProps, WrapProps, GapProps, FlexDirectionProps, ReverseProps, AppearanceProps, TransparentProps, BorderProps, ShadowProps, RingProps, FocusVisibleProps, ShapeProps, FontWeightProps, FontStyleProps, TextDecorationProps, TextTransformProps, FontFamilyProps, TextAlignProps, PaddingProps, VariantProps } from './props';
|
|
2
|
-
/**
|
|
3
|
+
/**
|
|
4
|
+
* Button component props
|
|
5
|
+
*/
|
|
3
6
|
export type ButtonProps = BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & FocusVisibleProps & ShapeProps & FontWeightProps & FontStyleProps & TextDecorationProps & TextTransformProps & FontFamilyProps & TextAlignProps & PaddingProps & VariantProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, 'className' | 'children'> & Partial<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'className' | 'children'>> & {
|
|
4
7
|
/** URL to navigate to (renders component as anchor tag) */
|
|
5
8
|
href?: string;
|
|
6
9
|
/** Custom HTML tag or React component to render as */
|
|
7
10
|
tag?: React.ElementType;
|
|
8
11
|
};
|
|
9
|
-
|
|
12
|
+
/**
|
|
13
|
+
* A clickable button component with customizable appearance, size, and behavior.
|
|
14
|
+
*
|
|
15
|
+
* Supports rendering as a button element or anchor tag when href is provided.
|
|
16
|
+
* Can be styled with different appearances (primary, secondary, success, etc.),
|
|
17
|
+
* sizes (xs to xl), and variants (filled, outlined, ghost).
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```tsx
|
|
21
|
+
* // Basic button
|
|
22
|
+
* <Button>Click me</Button>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* // Primary filled button with large size
|
|
28
|
+
* <Button primary lg filled>Submit</Button>
|
|
29
|
+
* ```
|
|
30
|
+
*
|
|
31
|
+
* @example
|
|
32
|
+
* ```tsx
|
|
33
|
+
* // Button as a link
|
|
34
|
+
* <Button href="/about" secondary>About</Button>
|
|
35
|
+
* ```
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```tsx
|
|
39
|
+
* // Danger button with custom styling
|
|
40
|
+
* <Button danger outlined className="w-full">Delete</Button>
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @see {@link ButtonProps} for all available props
|
|
44
|
+
*/
|
|
45
|
+
export declare const Button: React.ForwardRefExoticComponent<BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & FocusVisibleProps & ShapeProps & FontWeightProps & FontStyleProps & TextDecorationProps & TextTransformProps & FontFamilyProps & TextAlignProps & PaddingProps & VariantProps & Omit<React.ButtonHTMLAttributes<HTMLButtonElement>, "className" | "children"> & Partial<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "children">> & {
|
|
10
46
|
/** URL to navigate to (renders component as anchor tag) */
|
|
11
47
|
href?: string;
|
|
12
48
|
/** Custom HTML tag or React component to render as */
|
|
13
49
|
tag?: React.ElementType;
|
|
14
|
-
} &
|
|
50
|
+
} & React.RefAttributes<HTMLButtonElement>>;
|
|
15
51
|
//# sourceMappingURL=button.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button.d.ts","sourceRoot":"","sources":["../../../src/components/ui/button.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAa,EACb,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,YAAY,EACb,MAAM,SAAS,CAAC;AAIjB;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,SAAS,GACjC,SAAS,GACT,SAAS,GACT,UAAU,GACV,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,SAAS,GACT,QAAQ,GACR,kBAAkB,GAClB,YAAY,GACZ,eAAe,GACf,gBAAgB,GAChB,WAAW,GACX,WAAW,GACX,SAAS,GACT,iBAAiB,GACjB,UAAU,GACV,eAAe,GACf,cAAc,GACd,mBAAmB,GACnB,kBAAkB,GAClB,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GAC7E,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC,GAAG;IACzF,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,MAAM;IAvCjB,2DAA2D;WACpD,MAAM;IACb,sDAAsD;UAChD,KAAK,CAAC,WAAW;2CAyCxB,CAAC"}
|
|
@@ -1,11 +1,52 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { BaseProps, FontWeightProps, FontStyleProps, TextDecorationProps, TextTransformProps, FontFamilyProps, TextAlignProps, SizeProps, HideProps, ItemsProps, JustifyProps, PositionProps, DisplayProps, OverflowProps, WrapProps, GapProps, FlexDirectionProps, ReverseProps, BreakpointProps, AppearanceProps, TransparentProps, BorderProps, ShadowProps, RingProps, ShapeProps, PaddingProps, VariantProps } from "./props";
|
|
2
3
|
/** Card component props */
|
|
3
4
|
export type CardProps = BaseProps & FontWeightProps & FontStyleProps & TextDecorationProps & TextTransformProps & FontFamilyProps & TextAlignProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & BreakpointProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & ShapeProps & PaddingProps & VariantProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'children'> & {
|
|
4
5
|
/** Custom HTML tag or React component to render as */
|
|
5
6
|
tag?: React.ElementType;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* A container component for grouping related content with padding and borders.
|
|
10
|
+
*
|
|
11
|
+
* Cards provide visual separation and organization for content blocks. Support
|
|
12
|
+
* responsive flex direction with breakpoint props. Use for content cards,
|
|
13
|
+
* feature boxes, or any grouped content that needs visual distinction.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* // Basic card
|
|
18
|
+
* <Card>
|
|
19
|
+
* <Title>Card Title</Title>
|
|
20
|
+
* <Text>Card content goes here.</Text>
|
|
21
|
+
* </Card>
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* // Card with styling
|
|
27
|
+
* <Card primary outlined shadow padding gap>
|
|
28
|
+
* <Title>Feature</Title>
|
|
29
|
+
* <Text>Description of the feature</Text>
|
|
30
|
+
* <Button>Learn More</Button>
|
|
31
|
+
* </Card>
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```tsx
|
|
36
|
+
* // Responsive card layout
|
|
37
|
+
* <Card tabletCol gap padding>
|
|
38
|
+
* <Img src="/image.jpg" alt="Image" />
|
|
39
|
+
* <div>
|
|
40
|
+
* <Title>Content</Title>
|
|
41
|
+
* <Text>Details here</Text>
|
|
42
|
+
* </div>
|
|
43
|
+
* </Card>
|
|
44
|
+
* ```
|
|
45
|
+
*
|
|
46
|
+
* @see {@link CardProps} for all available props
|
|
47
|
+
*/
|
|
48
|
+
export declare const Card: React.ForwardRefExoticComponent<BaseProps & FontWeightProps & FontStyleProps & TextDecorationProps & TextTransformProps & FontFamilyProps & TextAlignProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & BreakpointProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & ShapeProps & PaddingProps & VariantProps & Omit<React.HTMLAttributes<HTMLDivElement>, "className" | "children"> & {
|
|
8
49
|
/** Custom HTML tag or React component to render as */
|
|
9
50
|
tag?: React.ElementType;
|
|
10
|
-
} &
|
|
51
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
52
|
//# sourceMappingURL=card.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/ui/card.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,SAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAa,EACb,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,SAAS,EACT,UAAU,EACV,YAAY,EACZ,YAAY,EACb,MAAM,SAAS,CAAC;AAIjB,2BAA2B;AAC3B,MAAM,MAAM,SAAS,GAAG,SAAS,GAC/B,eAAe,GACf,cAAc,GACd,mBAAmB,GACnB,kBAAkB,GAClB,eAAe,GACf,cAAc,GACd,SAAS,GACT,SAAS,GACT,UAAU,GACV,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,SAAS,GACT,QAAQ,GACR,kBAAkB,GAClB,YAAY,GACZ,eAAe,GACf,eAAe,GACf,gBAAgB,GAChB,WAAW,GACX,WAAW,GACX,SAAS,GACT,UAAU,GACV,YAAY,GACZ,YAAY,GACZ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG;IACvE,sDAAsD;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AACH,eAAO,MAAM,IAAI;IA5Cf,sDAAsD;UAChD,KAAK,CAAC,WAAW;wCAgDxB,CAAC"}
|
|
@@ -1,11 +1,48 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { BaseProps, SizeProps, HideProps, ItemsProps, JustifyProps, PositionProps, DisplayProps, OverflowProps, AppearanceProps, TransparentProps, BorderProps, ShadowProps, RingProps, FocusVisibleProps, ShapeProps, VariantProps } from './props';
|
|
2
3
|
/** Checkbox component props */
|
|
3
4
|
export type CheckboxProps = BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & FocusVisibleProps & ShapeProps & VariantProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, 'className' | 'children'> & {
|
|
4
5
|
/** Custom HTML tag or React component to render as */
|
|
5
6
|
tag?: React.ElementType;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* A styled checkbox component for forms and selections.
|
|
10
|
+
*
|
|
11
|
+
* Provides a custom-styled checkbox with checkmark visualization. Supports
|
|
12
|
+
* all standard HTML checkbox attributes (checked, onChange, disabled, etc.)
|
|
13
|
+
* and can be customized with appearances, sizes, and variants.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* // Basic checkbox
|
|
18
|
+
* <Checkbox />
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* // Controlled checkbox with label
|
|
24
|
+
* <Label>
|
|
25
|
+
* <Checkbox checked={accepted} onChange={(e) => setAccepted(e.target.checked)} />
|
|
26
|
+
* I accept the terms
|
|
27
|
+
* </Label>
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```tsx
|
|
32
|
+
* // Primary checkbox with custom size
|
|
33
|
+
* <Checkbox primary lg defaultChecked />
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* ```tsx
|
|
38
|
+
* // Disabled checkbox
|
|
39
|
+
* <Checkbox disabled checked />
|
|
40
|
+
* ```
|
|
41
|
+
*
|
|
42
|
+
* @see {@link CheckboxProps} for all available props
|
|
43
|
+
*/
|
|
44
|
+
export declare const Checkbox: React.ForwardRefExoticComponent<BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & FocusVisibleProps & ShapeProps & VariantProps & Omit<React.InputHTMLAttributes<HTMLInputElement>, "className" | "children"> & {
|
|
8
45
|
/** Custom HTML tag or React component to render as */
|
|
9
46
|
tag?: React.ElementType;
|
|
10
|
-
} &
|
|
47
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
48
|
//# sourceMappingURL=checkbox.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"checkbox.d.ts","sourceRoot":"","sources":["../../../src/components/ui/checkbox.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,YAAY,EACb,MAAM,SAAS,CAAC;AAIjB,+BAA+B;AAC/B,MAAM,MAAM,aAAa,GAAG,SAAS,GACnC,SAAS,GACT,SAAS,GACT,UAAU,GACV,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,WAAW,GACX,WAAW,GACX,SAAS,GACT,iBAAiB,GACjB,UAAU,GACV,YAAY,GACZ,IAAI,CAAC,KAAK,CAAC,mBAAmB,CAAC,gBAAgB,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG;IAC9E,sDAAsD;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,eAAO,MAAM,QAAQ;IAxCnB,sDAAsD;UAChD,KAAK,CAAC,WAAW;wCAqFxB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { BaseProps, SizeProps, HideProps, ItemsProps, JustifyProps, PositionProps, DisplayProps, OverflowProps, WrapProps, GapProps, FlexDirectionProps, ReverseProps, AppearanceProps, TransparentProps, BorderProps, ShadowProps, RingProps, FocusVisibleProps, ShapeProps, FontWeightProps, FontStyleProps, TextDecorationProps, TextTransformProps, FontFamilyProps, TextAlignProps, PaddingProps, VariantProps } from './props';
|
|
2
3
|
/** Chip component props */
|
|
3
4
|
export type ChipProps = BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & FocusVisibleProps & ShapeProps & FontWeightProps & FontStyleProps & TextDecorationProps & TextTransformProps & FontFamilyProps & TextAlignProps & PaddingProps & VariantProps & Omit<React.HTMLAttributes<HTMLSpanElement>, 'className' | 'children'> & Partial<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, 'className' | 'children'>> & {
|
|
@@ -6,10 +7,43 @@ export type ChipProps = BaseProps & SizeProps & HideProps & ItemsProps & Justify
|
|
|
6
7
|
/** Custom HTML tag or React component to render as */
|
|
7
8
|
tag?: React.ElementType;
|
|
8
9
|
};
|
|
9
|
-
|
|
10
|
+
/**
|
|
11
|
+
* A chip component for displaying tags, filters, or selections.
|
|
12
|
+
*
|
|
13
|
+
* Chips are interactive elements commonly used to represent tags, filters,
|
|
14
|
+
* or user selections. They typically appear in pill shape and can be
|
|
15
|
+
* removed or clicked. Similar to badges but more interactive in nature.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```tsx
|
|
19
|
+
* // Basic chip
|
|
20
|
+
* <Chip>React</Chip>
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* // Filter chip with primary color
|
|
26
|
+
* <Chip primary pill>JavaScript</Chip>
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* // Removable tag chip
|
|
32
|
+
* <Chip secondary outlined xs>TypeScript ×</Chip>
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* ```tsx
|
|
37
|
+
* // Clickable chip as link
|
|
38
|
+
* <Chip href="/tag/react" accent>React</Chip>
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @see {@link ChipProps} for all available props
|
|
42
|
+
*/
|
|
43
|
+
export declare const Chip: React.ForwardRefExoticComponent<BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & FocusVisibleProps & ShapeProps & FontWeightProps & FontStyleProps & TextDecorationProps & TextTransformProps & FontFamilyProps & TextAlignProps & PaddingProps & VariantProps & Omit<React.HTMLAttributes<HTMLSpanElement>, "className" | "children"> & Partial<Omit<React.AnchorHTMLAttributes<HTMLAnchorElement>, "className" | "children">> & {
|
|
10
44
|
/** URL to navigate to (renders component as anchor tag) */
|
|
11
45
|
href?: string;
|
|
12
46
|
/** Custom HTML tag or React component to render as */
|
|
13
47
|
tag?: React.ElementType;
|
|
14
|
-
} &
|
|
48
|
+
} & React.RefAttributes<HTMLSpanElement>>;
|
|
15
49
|
//# sourceMappingURL=chip.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/chip.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"chip.d.ts","sourceRoot":"","sources":["../../../src/components/ui/chip.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAa,EACb,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,YAAY,EACb,MAAM,SAAS,CAAC;AAIjB,2BAA2B;AAC3B,MAAM,MAAM,SAAS,GAAG,SAAS,GAC/B,SAAS,GACT,SAAS,GACT,UAAU,GACV,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,SAAS,GACT,QAAQ,GACR,kBAAkB,GAClB,YAAY,GACZ,eAAe,GACf,gBAAgB,GAChB,WAAW,GACX,WAAW,GACX,SAAS,GACT,iBAAiB,GACjB,UAAU,GACV,eAAe,GACf,cAAc,GACd,mBAAmB,GACnB,kBAAkB,GAClB,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,eAAe,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GACrE,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,CAAC,GAAG;IACzF,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,sDAAsD;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,IAAI;IAvCf,2DAA2D;WACpD,MAAM;IACb,sDAAsD;UAChD,KAAK,CAAC,WAAW;yCAyCxB,CAAC"}
|
|
@@ -1,11 +1,45 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { BaseProps, SizeProps, HideProps, ItemsProps, JustifyProps, PositionProps, DisplayProps, OverflowProps, WrapProps, GapProps, FlexDirectionProps, ReverseProps, AppearanceProps, TransparentProps, BorderProps, ShadowProps, RingProps, FocusVisibleProps, ShapeProps, FontWeightProps, FontStyleProps, TextDecorationProps, TextTransformProps, FontFamilyProps, TextAlignProps, PaddingProps, VariantProps } from './props';
|
|
2
3
|
/** Code component props */
|
|
3
4
|
export type CodeProps = BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & FocusVisibleProps & ShapeProps & FontWeightProps & FontStyleProps & TextDecorationProps & TextTransformProps & FontFamilyProps & TextAlignProps & PaddingProps & VariantProps & Omit<React.HTMLAttributes<HTMLElement>, 'className' | 'children'> & {
|
|
4
5
|
/** Custom HTML tag or React component to render as */
|
|
5
6
|
tag?: React.ElementType;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* An inline code component for displaying code snippets or technical terms.
|
|
10
|
+
*
|
|
11
|
+
* Renders text in a monospace font with subtle background styling to
|
|
12
|
+
* distinguish code from regular text. Ideal for inline code references,
|
|
13
|
+
* variable names, or short code snippets within paragraphs.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* // Basic inline code
|
|
18
|
+
* <Code>const x = 10</Code>
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```tsx
|
|
23
|
+
* // Code with custom appearance
|
|
24
|
+
* <Code primary filled>npm install</Code>
|
|
25
|
+
* ```
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```tsx
|
|
29
|
+
* // Code block style
|
|
30
|
+
* <Code secondary outlined lg mono>function hello() {}</Code>
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* // Code with custom styling
|
|
36
|
+
* <Code className="px-4 py-2">git commit -m "message"</Code>
|
|
37
|
+
* ```
|
|
38
|
+
*
|
|
39
|
+
* @see {@link CodeProps} for all available props
|
|
40
|
+
*/
|
|
41
|
+
export declare const Code: React.ForwardRefExoticComponent<BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & FocusVisibleProps & ShapeProps & FontWeightProps & FontStyleProps & TextDecorationProps & TextTransformProps & FontFamilyProps & TextAlignProps & PaddingProps & VariantProps & Omit<React.HTMLAttributes<HTMLElement>, "className" | "children"> & {
|
|
8
42
|
/** Custom HTML tag or React component to render as */
|
|
9
43
|
tag?: React.ElementType;
|
|
10
|
-
} &
|
|
44
|
+
} & React.RefAttributes<HTMLElement>>;
|
|
11
45
|
//# sourceMappingURL=code.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../../src/components/ui/code.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"code.d.ts","sourceRoot":"","sources":["../../../src/components/ui/code.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAa,EACb,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,SAAS,EACT,iBAAiB,EACjB,UAAU,EACV,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,YAAY,EACZ,YAAY,EACb,MAAM,SAAS,CAAC;AAIjB,2BAA2B;AAC3B,MAAM,MAAM,SAAS,GAAG,SAAS,GAC/B,SAAS,GACT,SAAS,GACT,UAAU,GACV,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,SAAS,GACT,QAAQ,GACR,kBAAkB,GAClB,YAAY,GACZ,eAAe,GACf,gBAAgB,GAChB,WAAW,GACX,WAAW,GACX,SAAS,GACT,iBAAiB,GACjB,UAAU,GACV,eAAe,GACf,cAAc,GACd,mBAAmB,GACnB,kBAAkB,GAClB,eAAe,GACf,cAAc,GACd,YAAY,GACZ,YAAY,GACZ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,WAAW,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG;IACpE,sDAAsD;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,IAAI;IArCf,sDAAsD;UAChD,KAAK,CAAC,WAAW;qCAyCxB,CAAC"}
|
|
@@ -1,11 +1,50 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { BaseProps, SizeProps, HideProps, ItemsProps, JustifyProps, PositionProps, DisplayProps, OverflowProps, WrapProps, GapProps, FlexDirectionProps, ReverseProps, AppearanceProps, TransparentProps, BorderProps, ShadowProps, RingProps, ShapeProps, VariantProps } from './props';
|
|
2
3
|
/** Col component props */
|
|
3
4
|
export type ColProps = BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & ShapeProps & VariantProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'children'> & {
|
|
4
5
|
/** Custom HTML tag or React component to render as */
|
|
5
6
|
tag?: React.ElementType;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* A column flex container for vertical content organization.
|
|
10
|
+
*
|
|
11
|
+
* Arranges children in a column (vertical) layout with consistent spacing.
|
|
12
|
+
* Similar to Stack but without responsive breakpoints. Use for predictable
|
|
13
|
+
* vertical layouts that don't need to change based on screen size.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* // Basic column
|
|
18
|
+
* <Col gap>
|
|
19
|
+
* <Title>Column Content</Title>
|
|
20
|
+
* <Text>First paragraph</Text>
|
|
21
|
+
* <Text>Second paragraph</Text>
|
|
22
|
+
* </Col>
|
|
23
|
+
* ```
|
|
24
|
+
*
|
|
25
|
+
* @example
|
|
26
|
+
* ```tsx
|
|
27
|
+
* // Column with centered items
|
|
28
|
+
* <Col itemsCenter justifyCenter gap>
|
|
29
|
+
* <Badge>Status</Badge>
|
|
30
|
+
* <Button>Action</Button>
|
|
31
|
+
* </Col>
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* ```tsx
|
|
36
|
+
* // Full-height column
|
|
37
|
+
* <Col className="h-screen" justifyBetween>
|
|
38
|
+
* <header>Header</header>
|
|
39
|
+
* <main>Main Content</main>
|
|
40
|
+
* <footer>Footer</footer>
|
|
41
|
+
* </Col>
|
|
42
|
+
* ```
|
|
43
|
+
*
|
|
44
|
+
* @see {@link ColProps} for all available props
|
|
45
|
+
*/
|
|
46
|
+
export declare const Col: React.ForwardRefExoticComponent<BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & ShapeProps & VariantProps & Omit<React.HTMLAttributes<HTMLDivElement>, "className" | "children"> & {
|
|
8
47
|
/** Custom HTML tag or React component to render as */
|
|
9
48
|
tag?: React.ElementType;
|
|
10
|
-
} &
|
|
49
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
50
|
//# sourceMappingURL=col.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"col.d.ts","sourceRoot":"","sources":["../../../src/components/ui/col.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"col.d.ts","sourceRoot":"","sources":["../../../src/components/ui/col.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAa,EACb,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,SAAS,EACT,UAAU,EACV,YAAY,EACb,MAAM,SAAS,CAAC;AAIjB,0BAA0B;AAC1B,MAAM,MAAM,QAAQ,GAAG,SAAS,GAC9B,SAAS,GACT,SAAS,GACT,UAAU,GACV,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,SAAS,GACT,QAAQ,GACR,kBAAkB,GAClB,YAAY,GACZ,eAAe,GACf,gBAAgB,GAChB,WAAW,GACX,WAAW,GACX,SAAS,GACT,UAAU,GACV,YAAY,GACZ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG;IACvE,sDAAsD;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AACH,eAAO,MAAM,GAAG;IA1Cd,sDAAsD;UAChD,KAAK,CAAC,WAAW;wCA8CxB,CAAC"}
|
|
@@ -1,11 +1,47 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { BaseProps, SizeProps, HideProps, ItemsProps, JustifyProps, PositionProps, DisplayProps, OverflowProps, WrapProps, GapProps, FlexDirectionProps, ReverseProps, AppearanceProps, TransparentProps, BorderProps, ShadowProps, RingProps, ShapeProps, VariantProps } from './props';
|
|
2
3
|
/** Container component props */
|
|
3
4
|
export type ContainerProps = BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & ShapeProps & VariantProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'children'> & {
|
|
4
5
|
/** Custom HTML tag or React component to render as */
|
|
5
6
|
tag?: React.ElementType;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* A page-level content wrapper with maximum width constraints.
|
|
10
|
+
*
|
|
11
|
+
* Provides consistent horizontal padding and centers content on the page.
|
|
12
|
+
* Typically the outermost wrapper for page content. Uses layout spacing
|
|
13
|
+
* (larger gaps) for structural organization.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* // Basic container
|
|
18
|
+
* <Container>
|
|
19
|
+
* <PageTitle>My Page</PageTitle>
|
|
20
|
+
* <Text>Page content goes here.</Text>
|
|
21
|
+
* </Container>
|
|
22
|
+
* ```
|
|
23
|
+
*
|
|
24
|
+
* @example
|
|
25
|
+
* ```tsx
|
|
26
|
+
* // Container with custom spacing
|
|
27
|
+
* <Container lg gap>
|
|
28
|
+
* <Section>Section 1</Section>
|
|
29
|
+
* <Section>Section 2</Section>
|
|
30
|
+
* </Container>
|
|
31
|
+
* ```
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* ```tsx
|
|
35
|
+
* // Full-width container
|
|
36
|
+
* <Container className="max-w-none">
|
|
37
|
+
* Wide content
|
|
38
|
+
* </Container>
|
|
39
|
+
* ```
|
|
40
|
+
*
|
|
41
|
+
* @see {@link ContainerProps} for all available props
|
|
42
|
+
*/
|
|
43
|
+
export declare const Container: React.ForwardRefExoticComponent<BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & WrapProps & GapProps & FlexDirectionProps & ReverseProps & AppearanceProps & TransparentProps & BorderProps & ShadowProps & RingProps & ShapeProps & VariantProps & Omit<React.HTMLAttributes<HTMLDivElement>, "className" | "children"> & {
|
|
8
44
|
/** Custom HTML tag or React component to render as */
|
|
9
45
|
tag?: React.ElementType;
|
|
10
|
-
} &
|
|
46
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
47
|
//# sourceMappingURL=container.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/components/ui/container.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"container.d.ts","sourceRoot":"","sources":["../../../src/components/ui/container.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAa,EACb,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,YAAY,EACZ,eAAe,EACf,gBAAgB,EAChB,WAAW,EACX,WAAW,EACX,SAAS,EACT,UAAU,EACV,YAAY,EACb,MAAM,SAAS,CAAC;AAIjB,gCAAgC;AAChC,MAAM,MAAM,cAAc,GAAG,SAAS,GACpC,SAAS,GACT,SAAS,GACT,UAAU,GACV,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,SAAS,GACT,QAAQ,GACR,kBAAkB,GAClB,YAAY,GACZ,eAAe,GACf,gBAAgB,GAChB,WAAW,GACX,WAAW,GACX,SAAS,GACT,UAAU,GACV,YAAY,GACZ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG;IACvE,sDAAsD;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,eAAO,MAAM,SAAS;IAvCpB,sDAAsD;UAChD,KAAK,CAAC,WAAW;wCA2CxB,CAAC"}
|
|
@@ -1,11 +1,41 @@
|
|
|
1
|
+
import React from 'react';
|
|
1
2
|
import type { BaseProps, SizeProps, HideProps, ItemsProps, JustifyProps, PositionProps, DisplayProps, OverflowProps, AppearanceProps, TransparentProps, PaddingProps } from './props';
|
|
2
3
|
/** Divider component props */
|
|
3
4
|
export type DividerProps = BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & AppearanceProps & TransparentProps & PaddingProps & Omit<React.HTMLAttributes<HTMLDivElement>, 'className' | 'children'> & {
|
|
4
5
|
/** Custom HTML tag or React component to render as */
|
|
5
6
|
tag?: React.ElementType;
|
|
6
7
|
};
|
|
7
|
-
|
|
8
|
+
/**
|
|
9
|
+
* A visual separator component for dividing content sections.
|
|
10
|
+
*
|
|
11
|
+
* Renders a horizontal line to separate content blocks. Can be styled
|
|
12
|
+
* with different appearances and sizes. Useful for creating visual
|
|
13
|
+
* hierarchy and content organization.
|
|
14
|
+
*
|
|
15
|
+
* @example
|
|
16
|
+
* ```tsx
|
|
17
|
+
* // Basic divider
|
|
18
|
+
* <Text>Section 1</Text>
|
|
19
|
+
* <Divider />
|
|
20
|
+
* <Text>Section 2</Text>
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* @example
|
|
24
|
+
* ```tsx
|
|
25
|
+
* // Styled divider
|
|
26
|
+
* <Divider primary lg />
|
|
27
|
+
* ```
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```tsx
|
|
31
|
+
* // Divider with padding
|
|
32
|
+
* <Divider padding />
|
|
33
|
+
* ```
|
|
34
|
+
*
|
|
35
|
+
* @see {@link DividerProps} for all available props
|
|
36
|
+
*/
|
|
37
|
+
export declare const Divider: React.ForwardRefExoticComponent<BaseProps & SizeProps & HideProps & ItemsProps & JustifyProps & PositionProps & DisplayProps & OverflowProps & AppearanceProps & TransparentProps & PaddingProps & Omit<React.HTMLAttributes<HTMLDivElement>, "className" | "children"> & {
|
|
8
38
|
/** Custom HTML tag or React component to render as */
|
|
9
39
|
tag?: React.ElementType;
|
|
10
|
-
} &
|
|
40
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
41
|
//# sourceMappingURL=divider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../../src/components/ui/divider.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"divider.d.ts","sourceRoot":"","sources":["../../../src/components/ui/divider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAC;AAC1C,OAAO,KAAK,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAa,EACb,eAAe,EACf,gBAAgB,EAChB,YAAY,EACb,MAAM,SAAS,CAAC;AAIjB,8BAA8B;AAC9B,MAAM,MAAM,YAAY,GAAG,SAAS,GAClC,SAAS,GACT,SAAS,GACT,UAAU,GACV,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,aAAa,GACb,eAAe,GACf,gBAAgB,GAChB,YAAY,GACZ,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,EAAE,WAAW,GAAG,UAAU,CAAC,GAAG;IACvE,sDAAsD;IACtD,GAAG,CAAC,EAAE,KAAK,CAAC,WAAW,CAAC;CACzB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AACH,eAAO,MAAM,OAAO;IAjClB,sDAAsD;UAChD,KAAK,CAAC,WAAW;wCAqCxB,CAAC"}
|