@gears-frontx/ui-kit 0.4.2 → 0.4.3
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/README.md +6 -5
- package/dist/alert.js +35 -24
- package/dist/alert.js.map +1 -1
- package/dist/attachment.js +117 -76
- package/dist/attachment.js.map +1 -1
- package/dist/avatar.js +43 -43
- package/dist/badge.js +14 -14
- package/dist/card.js +81 -44
- package/dist/card.js.map +1 -1
- package/dist/chart.js +50 -50
- package/dist/chunks/alert.Csv2-ccF.css +1 -0
- package/dist/chunks/attachment.BRyIQq3F.css +1 -0
- package/dist/chunks/avatar.7EUG65-M.css +1 -0
- package/dist/chunks/badge.BwUxa9PB.css +1 -0
- package/dist/chunks/card.DSiUMxGK.css +1 -0
- package/dist/chunks/chart.B9cGEno8.css +1 -0
- package/dist/chunks/code-block.r7Cm0ncj.css +1 -0
- package/dist/chunks/description-list.Cx-vFGJL.css +1 -0
- package/dist/chunks/empty.DWqLrSfF.css +1 -0
- package/dist/chunks/heading.DQxQs5po.css +1 -0
- package/dist/chunks/item.BQ70Khqj.css +1 -0
- package/dist/chunks/link.BOE4f-aB.css +1 -0
- package/dist/chunks/message-scroller.CBjPcz8Y.css +1 -0
- package/dist/chunks/sheet.BkZyzAbA.css +1 -0
- package/dist/chunks/sidebar.CIuN--7U.css +1 -0
- package/dist/chunks/slider.DY1XDCPw.css +1 -0
- package/dist/chunks/status-dot.39NKkKQF.css +1 -0
- package/dist/chunks/text.7frjnkUr.css +1 -0
- package/dist/chunks/visually-hidden.Bd2oAR5D.css +1 -0
- package/dist/code-block.d.ts +1 -0
- package/dist/code-block.js +152 -0
- package/dist/code-block.js.map +1 -0
- package/dist/command.js +63 -48
- package/dist/command.js.map +1 -1
- package/dist/components/alert/alert.d.ts +3 -2
- package/dist/components/alert/alert.d.ts.map +1 -1
- package/dist/components/attachment/attachment.d.ts +10 -3
- package/dist/components/attachment/attachment.d.ts.map +1 -1
- package/dist/components/card/card.d.ts +6 -4
- package/dist/components/card/card.d.ts.map +1 -1
- package/dist/components/code-block/code-block.d.ts +57 -0
- package/dist/components/code-block/code-block.d.ts.map +1 -0
- package/dist/components/code-block/public.d.ts +2 -0
- package/dist/components/code-block/public.d.ts.map +1 -0
- package/dist/components/command/command.d.ts +1 -1
- package/dist/components/command/command.d.ts.map +1 -1
- package/dist/components/description-list/description-list.d.ts +21 -0
- package/dist/components/description-list/description-list.d.ts.map +1 -0
- package/dist/components/description-list/public.d.ts +2 -0
- package/dist/components/description-list/public.d.ts.map +1 -0
- package/dist/components/empty/empty.d.ts +3 -2
- package/dist/components/empty/empty.d.ts.map +1 -1
- package/dist/components/heading/heading.d.ts +10 -0
- package/dist/components/heading/heading.d.ts.map +1 -0
- package/dist/components/heading/public.d.ts +2 -0
- package/dist/components/heading/public.d.ts.map +1 -0
- package/dist/components/input-otp/input-otp.d.ts +1 -1
- package/dist/components/input-otp/input-otp.d.ts.map +1 -1
- package/dist/components/item/item.d.ts +15 -6
- package/dist/components/item/item.d.ts.map +1 -1
- package/dist/components/link/link.d.ts +18 -0
- package/dist/components/link/link.d.ts.map +1 -0
- package/dist/components/link/public.d.ts +2 -0
- package/dist/components/link/public.d.ts.map +1 -0
- package/dist/components/sidebar/sidebar.d.ts +13 -3
- package/dist/components/sidebar/sidebar.d.ts.map +1 -1
- package/dist/components/slider/slider.d.ts +1 -1
- package/dist/components/slider/slider.d.ts.map +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/text/public.d.ts +2 -0
- package/dist/components/text/public.d.ts.map +1 -0
- package/dist/components/text/text.d.ts +11 -0
- package/dist/components/text/text.d.ts.map +1 -0
- package/dist/components/visually-hidden/public.d.ts +2 -0
- package/dist/components/visually-hidden/public.d.ts.map +1 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts +4 -0
- package/dist/components/visually-hidden/visually-hidden.d.ts.map +1 -0
- package/dist/description-list.d.ts +1 -0
- package/dist/description-list.js +78 -0
- package/dist/description-list.js.map +1 -0
- package/dist/docs/alert.md +8 -2
- package/dist/docs/attachment.md +20 -8
- package/dist/docs/avatar.md +8 -2
- package/dist/docs/badge.md +12 -11
- package/dist/docs/button.md +16 -4
- package/dist/docs/calendar.md +6 -0
- package/dist/docs/card.md +38 -6
- package/dist/docs/carousel.md +4 -2
- package/dist/docs/chart.md +23 -0
- package/dist/docs/code-block.md +114 -0
- package/dist/docs/description-list.md +53 -0
- package/dist/docs/empty.md +9 -3
- package/dist/docs/heading.md +60 -0
- package/dist/docs/item.md +70 -3
- package/dist/docs/link.md +48 -0
- package/dist/docs/message-scroller.md +5 -0
- package/dist/docs/sheet.md +20 -3
- package/dist/docs/sidebar.md +27 -0
- package/dist/docs/status-dot.md +2 -2
- package/dist/docs/switch.md +10 -4
- package/dist/docs/text.md +51 -0
- package/dist/docs/visually-hidden.md +44 -0
- package/dist/empty.js +47 -36
- package/dist/empty.js.map +1 -1
- package/dist/heading.d.ts +1 -0
- package/dist/heading.js +36 -0
- package/dist/heading.js.map +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +427 -401
- package/dist/index.js.map +1 -1
- package/dist/input-otp.js +34 -20
- package/dist/input-otp.js.map +1 -1
- package/dist/item.js +119 -71
- package/dist/item.js.map +1 -1
- package/dist/link.d.ts +1 -0
- package/dist/link.js +55 -0
- package/dist/link.js.map +1 -0
- package/dist/message-scroller.js +24 -24
- package/dist/sheet.js +41 -41
- package/dist/sidebar.js +220 -206
- package/dist/sidebar.js.map +1 -1
- package/dist/slider.js +34 -21
- package/dist/slider.js.map +1 -1
- package/dist/status-dot.js +25 -25
- package/dist/table.js +172 -157
- package/dist/table.js.map +1 -1
- package/dist/text.d.ts +1 -0
- package/dist/text.js +53 -0
- package/dist/text.js.map +1 -0
- package/dist/theme.css +29 -6
- package/dist/utilities.css +25 -2
- package/dist/visually-hidden.d.ts +1 -0
- package/dist/visually-hidden.js +18 -0
- package/dist/visually-hidden.js.map +1 -0
- package/llms.txt +72 -15
- package/package.json +1 -1
- package/dist/chunks/alert.DsgRIXLn.css +0 -1
- package/dist/chunks/attachment.CZuZdlXC.css +0 -1
- package/dist/chunks/avatar.BMm-Z9l5.css +0 -1
- package/dist/chunks/badge.BCreEn3O.css +0 -1
- package/dist/chunks/card.DdBl-usf.css +0 -1
- package/dist/chunks/chart.CeyctrXQ.css +0 -1
- package/dist/chunks/empty.DnAKlw2g.css +0 -1
- package/dist/chunks/item.BkcgydVc.css +0 -1
- package/dist/chunks/message-scroller.CbLooS7Q.css +0 -1
- package/dist/chunks/sheet.BWvXXyXk.css +0 -1
- package/dist/chunks/sidebar.DdEvMURX.css +0 -1
- package/dist/chunks/slider.inyNxx4y.css +0 -1
- package/dist/chunks/status-dot.DWa2qGKe.css +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../src/components/empty/empty.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"empty.d.ts","sourceRoot":"","sources":["../../../src/components/empty/empty.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAW5C,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE/C,wBAAgB,KAAK,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,UAAU,+BAExD;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAErD,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAEpE;AAED,QAAA,MAAM,kBAAkB;;8EAUtB,CAAC;AAEH,MAAM,WAAW,eACf,SAAQ,cAAc,CAAC,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,kBAAkB,CAAC;CAAG;AAE3E;;uEAEuE;AACvE,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,OAAO,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAE3E;AAED,MAAM,MAAM,eAAe,GAAG,SAAS,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;AAS9D,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,8FAS1E;AAQD,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAE1D,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,+BAE9E;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEtD,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAEtE;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAErD;;;6BAG6B;AAC7B,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAEpE;AAED,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEtD;;0DAE0D;AAC1D,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAEtE"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const headingVariants: (props?: ({
|
|
4
|
+
typography?: "display" | "heading-1" | "heading-2" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface HeadingProps extends useRender.ComponentProps<'h2'>, VariantProps<typeof headingVariants> {
|
|
7
|
+
}
|
|
8
|
+
export declare function Heading({ className, typography, render, ...props }: HeadingProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
9
|
+
export { headingVariants };
|
|
10
|
+
//# sourceMappingURL=heading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"heading.d.ts","sourceRoot":"","sources":["../../../src/components/heading/heading.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAalE,QAAA,MAAM,eAAe;;8EAWnB,CAAC;AAEH,MAAM,WAAW,YACf,SAAQ,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,EAAE,YAAY,CAAC,OAAO,eAAe,CAAC;CAAG;AAEjF,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,8FAYhF;AAED,OAAO,EAAE,eAAe,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/heading/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,eAAe,EAAE,KAAK,YAAY,EAAE,MAAM,cAAc,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { ComponentProps } from 'react';
|
|
|
3
3
|
export interface InputOtpProps extends Omit<OTPFieldPrimitive.Root.Props, 'className'> {
|
|
4
4
|
className?: string;
|
|
5
5
|
}
|
|
6
|
-
export declare function InputOtp({ className, ...props }: InputOtpProps): import("react").JSX.Element;
|
|
6
|
+
export declare function InputOtp({ className, children, ...props }: InputOtpProps): import("react").JSX.Element;
|
|
7
7
|
export type InputOtpGroupProps = ComponentProps<'div'>;
|
|
8
8
|
export declare function InputOtpGroup({ className, ...props }: InputOtpGroupProps): import("react").JSX.Element;
|
|
9
9
|
export interface InputOtpSlotProps extends Omit<OTPFieldPrimitive.Input.Props, 'className'> {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../../src/components/input-otp/input-otp.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"input-otp.d.ts","sourceRoot":"","sources":["../../../src/components/input-otp/input-otp.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAEzE,OAAO,EAAE,KAAK,cAAc,EAAoC,MAAM,OAAO,CAAC;AAoB9E,MAAM,WAAW,aAAc,SAAQ,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,KAAK,EAAE,WAAW,CAAC;IACpF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAkBD,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAiBxE;AAMD,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEvD,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BAExE;AAED,MAAM,WAAW,iBAAkB,SAAQ,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,KAAK,EAAE,WAAW,CAAC;IACzF,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAStE;AAED,MAAM,WAAW,sBACf,SAAQ,IAAI,CAAC,iBAAiB,CAAC,SAAS,CAAC,KAAK,EAAE,WAAW,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AASD,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,+BAM1F"}
|
|
@@ -12,9 +12,9 @@ export type ItemProps = useRender.ComponentProps<'div', {
|
|
|
12
12
|
variant: ItemVariant;
|
|
13
13
|
size: ItemSize;
|
|
14
14
|
}> & VariantProps<typeof itemVariants>;
|
|
15
|
-
export declare function Item({ className, variant, size, render, ...props }: ItemProps): import(
|
|
15
|
+
export declare function Item({ className, variant, size, render, ...props }: ItemProps): import("react").JSX.Element;
|
|
16
16
|
declare const itemMediaVariants: (props?: ({
|
|
17
|
-
variant?: "image" | "default" | "icon" | null | undefined;
|
|
17
|
+
variant?: "image" | "default" | "icon" | "chip" | "chip-round" | null | undefined;
|
|
18
18
|
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
19
19
|
export interface ItemMediaProps extends ComponentProps<'div'>, VariantProps<typeof itemMediaVariants> {
|
|
20
20
|
}
|
|
@@ -25,9 +25,18 @@ export declare function ItemMedia({ className, variant, ...props }: ItemMediaPro
|
|
|
25
25
|
export type ItemContentProps = ComponentProps<'div'>;
|
|
26
26
|
export declare function ItemContent({ className, ...props }: ItemContentProps): import("react").JSX.Element;
|
|
27
27
|
export type ItemTitleProps = ComponentProps<'div'>;
|
|
28
|
-
export declare function ItemTitle({ className, ...props }: ItemTitleProps): import("react").JSX.Element;
|
|
29
|
-
export
|
|
30
|
-
|
|
28
|
+
export declare function ItemTitle({ className, children, ...props }: ItemTitleProps): import("react").JSX.Element;
|
|
29
|
+
export interface ItemDescriptionProps extends ComponentProps<'p'> {
|
|
30
|
+
/**
|
|
31
|
+
* Lines shown before the text is cut with an ellipsis, rounded down to a
|
|
32
|
+
* whole line. `'none'` shows the full text; a number below 1 or a
|
|
33
|
+
* non-finite one does the same, so a description never clamps to zero
|
|
34
|
+
* lines.
|
|
35
|
+
* @default 2
|
|
36
|
+
*/
|
|
37
|
+
lineClamp?: number | 'none';
|
|
38
|
+
}
|
|
39
|
+
export declare function ItemDescription({ className, style, lineClamp, ...props }: ItemDescriptionProps): import("react").JSX.Element;
|
|
31
40
|
export type ItemActionsProps = ComponentProps<'div'>;
|
|
32
41
|
export declare function ItemActions({ className, ...props }: ItemActionsProps): import("react").JSX.Element;
|
|
33
42
|
export type ItemHeaderProps = ComponentProps<'div'>;
|
|
@@ -38,7 +47,7 @@ export type ItemGroupProps = ComponentProps<'div'>;
|
|
|
38
47
|
/** A `role="list"` container for a run of `Item`s, spacing them apart
|
|
39
48
|
* (the gap shrinks to match the smallest `size` of Item it contains — see
|
|
40
49
|
* item.module.css). */
|
|
41
|
-
export declare function ItemGroup({ className, ...props }: ItemGroupProps): import("react").JSX.Element;
|
|
50
|
+
export declare function ItemGroup({ className, role, ...props }: ItemGroupProps): import("react").JSX.Element;
|
|
42
51
|
/** A divider between `Item`s, built on the kit's own `Separator` — same
|
|
43
52
|
* composition idiom as `field.tsx`'s `FieldSeparator`. */
|
|
44
53
|
export type ItemSeparatorProps = SeparatorProps;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../src/components/item/item.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"item.d.ts","sourceRoot":"","sources":["../../../src/components/item/item.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AACtE,OAAO,EAGL,KAAK,cAAc,EAOpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAa,KAAK,cAAc,EAAE,MAAM,wBAAwB,CAAC;AAqBxE,QAAA,MAAM,YAAY;;;8EAiBhB,CAAC;AAEH,KAAK,WAAW,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC;AAC7E,KAAK,QAAQ,GAAG,WAAW,CAAC,YAAY,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC;AAEvE,MAAM,MAAM,SAAS,GAAG,SAAS,CAAC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AG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpD,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAElE;AAED,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpD,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,+BAElE;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEnD;;uBAEuB;AAGvB,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,IAAa,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,+BAM/E;AAED;0DAC0D;AAC1D,MAAM,MAAM,kBAAkB,GAAG,cAAc,CAAC;AAOhD,wBAAgB,aAAa,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,kBAAkB,+BASxE"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const linkVariants: (props?: ({
|
|
4
|
+
variant?: "inherit" | "default" | "muted" | null | undefined;
|
|
5
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
6
|
+
export interface LinkProps extends useRender.ComponentProps<'a'>, VariantProps<typeof linkVariants> {
|
|
7
|
+
/**
|
|
8
|
+
* A link that leaves the application: opens in a new tab
|
|
9
|
+
* (`target="_blank"`, `rel="noopener noreferrer"` unless the caller passes
|
|
10
|
+
* its own) and appends an arrow icon hidden from assistive technology. The
|
|
11
|
+
* accessible wording ("opens in a new tab") stays with the caller.
|
|
12
|
+
* @default false
|
|
13
|
+
*/
|
|
14
|
+
external?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export declare function Link({ className, variant, external, render, children, target, rel, ...props }: LinkProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
17
|
+
export { linkVariants };
|
|
18
|
+
//# sourceMappingURL=link.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../src/components/link/link.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAalE,QAAA,MAAM,YAAY;;8EAWhB,CAAC;AAEH,MAAM,WAAW,SACf,SAAQ,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC;IACxE;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,IAAI,CAAC,EACnB,SAAS,EACT,OAAO,EACP,QAAgB,EAChB,MAAM,EACN,QAAQ,EACR,MAAM,EACN,GAAG,EACH,GAAG,KAAK,EACT,EAAE,SAAS,8FAyBX;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/link/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -51,8 +51,18 @@ export interface SidebarProviderProps extends Omit<ComponentProps<'div'>, 'class
|
|
|
51
51
|
* for free by simply passing this through.
|
|
52
52
|
*/
|
|
53
53
|
onOpenChange?: (open: boolean) => void;
|
|
54
|
+
/**
|
|
55
|
+
* Lay the sidebar out inside a bounded container (a panel, a card, a
|
|
56
|
+
* page section) instead of against the viewport: the wrapper fills its
|
|
57
|
+
* parent rather than the screen height, and a `collapsible="none"`
|
|
58
|
+
* Sidebar sticks to the top of it with a border toward the content. On a
|
|
59
|
+
* narrow screen the sidebar stacks above the content and its list caps
|
|
60
|
+
* its height and scrolls.
|
|
61
|
+
* @default false
|
|
62
|
+
*/
|
|
63
|
+
contained?: boolean;
|
|
54
64
|
}
|
|
55
|
-
export declare function SidebarProvider({ defaultOpen, open: openProp, onOpenChange, className, style, children, ...props }: SidebarProviderProps): import("react").JSX.Element;
|
|
65
|
+
export declare function SidebarProvider({ defaultOpen, contained, open: openProp, onOpenChange, className, style, children, ...props }: SidebarProviderProps): import("react").JSX.Element;
|
|
56
66
|
export interface SidebarProps extends Omit<ComponentProps<'div'>, 'className'> {
|
|
57
67
|
className?: string;
|
|
58
68
|
/** Which edge the sidebar is anchored to. @default 'left' */
|
|
@@ -87,8 +97,8 @@ export type SidebarRailProps = Omit<ComponentProps<'button'>, 'children'>;
|
|
|
87
97
|
* stop with no visible focus target.
|
|
88
98
|
*/
|
|
89
99
|
export declare function SidebarRail({ className, onClick, ...props }: SidebarRailProps): import("react").JSX.Element;
|
|
90
|
-
export type SidebarInsetProps = ComponentProps<'main'>;
|
|
91
|
-
export declare function SidebarInset({ className, ...props }: SidebarInsetProps): import(
|
|
100
|
+
export type SidebarInsetProps = useRender.ComponentProps<'main'>;
|
|
101
|
+
export declare function SidebarInset({ className, render, ...props }: SidebarInsetProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
92
102
|
export type SidebarInputProps = InputProps;
|
|
93
103
|
export declare function SidebarInput({ className, ...props }: SidebarInputProps): import("react").JSX.Element;
|
|
94
104
|
export type SidebarHeaderProps = ComponentProps<'div'>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sidebar.d.ts","sourceRoot":"","sources":["../../../src/components/sidebar/sidebar.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAEtE,OAAO,EAQL,KAAK,cAAc,EAEnB,KAAK,QAAQ,EACb,KAAK,cAAc,EACpB,MAAM,OAAO,CAAC;AAEf,OAAO,EAAU,KAAK,WA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,CAAC,EAAE,OAAO,CAAC;CACpB;AAeD,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,QAAgB,EAAE,KAAK,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,+BAmB7G;AAED,MAAM,MAAM,mBAAmB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAEvD,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,+BAE1E;AAED,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAE3D,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,+BAElF;AAED,QAAA,MAAM,4BAA4B;;8EAUhC,CAAC;AAEH,MAAM,WAAW,yBACf,SAAQ,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,EACnC,YAAY,CAAC,OAAO,4BAA4B,CAAC;IACnD,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,wBAAgB,oBAAoB,CAAC,EACnC,MAAM,EACN,IAAI,EACJ,QAAgB,EAChB,SAAS,EACT,GAAG,KAAK,EACT,EAAE,yBAAyB,8FAW3B"}
|
|
@@ -2,5 +2,5 @@ import { Slider as SliderPrimitive } from '@base-ui/react/slider';
|
|
|
2
2
|
export interface SliderProps<Value extends number | readonly number[] = number | readonly number[]> extends Omit<SliderPrimitive.Root.Props<Value>, 'className'> {
|
|
3
3
|
className?: string;
|
|
4
4
|
}
|
|
5
|
-
export declare function Slider<Value extends number | readonly number[] = number | readonly number[]>({ className, defaultValue, value, min, max, ...props }: SliderProps<Value>): import("react").JSX.Element;
|
|
5
|
+
export declare function Slider<Value extends number | readonly number[] = number | readonly number[]>({ className, defaultValue, value, min, max, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, ...props }: SliderProps<Value>): import("react").JSX.Element;
|
|
6
6
|
//# sourceMappingURL=slider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/slider/slider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAKlE,MAAM,WAAW,WAAW,CAAC,KAAK,SAAS,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,CAChG,SAAQ,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;
|
|
1
|
+
{"version":3,"file":"slider.d.ts","sourceRoot":"","sources":["../../../src/components/slider/slider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAKlE,MAAM,WAAW,WAAW,CAAC,KAAK,SAAS,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,CAChG,SAAQ,IAAI,CAAC,eAAe,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,WAAW,CAAC;IAC5D,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAwCD,wBAAgB,MAAM,CAAC,KAAK,SAAS,MAAM,GAAG,SAAS,MAAM,EAAE,GAAG,MAAM,GAAG,SAAS,MAAM,EAAE,EAAE,EAC5F,SAAS,EACT,YAAY,EACZ,KAAK,EACL,GAAO,EACP,GAAS,EACT,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,GAAG,KAAK,EACT,EAAE,WAAW,CAAC,KAAK,CAAC,+BA+BpB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"table.d.ts","sourceRoot":"","sources":["../../../src/components/table/table.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAW,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC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,EAAE,cAAc,+BAEhE;AAED,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,OAAO,CAAC,CAAC;AAEvD,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,+BAEpE;AAED,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAEjD,wBAAgB,QAAQ,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,aAAa,+BAE9D;AAED,MAAM,WAAW,cAAe,SAAQ,cAAc,CAAC,IAAI,CAAC;IAC1D;;;;;OAKG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB;;;OAGG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;CACzB;AAED,wBAAgB,SAAS,CAAC,EACxB,SAAS,EACT,SAAS,EACT,cAAc,EACd,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,cAAc,+BAOhB;AAED,MAAM,MAAM,cAAc,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAElD,wBAAgB,SAAS,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,cAAc,+BAEhE;AAED;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC;AAE1D,wBAAgB,YAAY,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,iBAAiB,+BAEtE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/text/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
import { VariantProps } from 'class-variance-authority';
|
|
3
|
+
declare const textVariants: (props?: ({
|
|
4
|
+
typography?: "body" | "label" | "meta" | "mono" | "micro" | "kpi" | "kpi-lg" | null | undefined;
|
|
5
|
+
tone?: "default" | "muted" | null | undefined;
|
|
6
|
+
} & import('class-variance-authority/types').ClassProp) | undefined) => string;
|
|
7
|
+
export interface TextProps extends useRender.ComponentProps<'p'>, VariantProps<typeof textVariants> {
|
|
8
|
+
}
|
|
9
|
+
export declare function Text({ className, typography, tone, render, ...props }: TextProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
10
|
+
export { textVariants };
|
|
11
|
+
//# sourceMappingURL=text.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../../src/components/text/text.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAalE,QAAA,MAAM,YAAY;;;8EAoBhB,CAAC;AAEH,MAAM,WAAW,SAAU,SAAQ,SAAS,CAAC,cAAc,CAAC,GAAG,CAAC,EAAE,YAAY,CAAC,OAAO,YAAY,CAAC;CAAG;AAEtG,wBAAgB,IAAI,CAAC,EAAE,SAAS,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,SAAS,8FAchF;AAED,OAAO,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"public.d.ts","sourceRoot":"","sources":["../../../src/components/visually-hidden/public.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { useRender } from '@base-ui/react/use-render';
|
|
2
|
+
export type VisuallyHiddenProps = useRender.ComponentProps<'span'>;
|
|
3
|
+
export declare function VisuallyHidden({ className, render, ...props }: VisuallyHiddenProps): import('react').ReactElement<unknown, string | import('react').JSXElementConstructor<any>>;
|
|
4
|
+
//# sourceMappingURL=visually-hidden.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"visually-hidden.d.ts","sourceRoot":"","sources":["../../../src/components/visually-hidden/visually-hidden.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AAYtD,MAAM,MAAM,mBAAmB,GAAG,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC;AAEnE,wBAAgB,cAAc,CAAC,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,KAAK,EAAE,EAAE,mBAAmB,8FAMlF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './components/description-list/public.js'
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import { jsx as e } from "react/jsx-runtime";
|
|
2
|
+
import { cx as r, cva as s } from "class-variance-authority";
|
|
3
|
+
import './chunks/description-list.Cx-vFGJL.css';const c = "_descriptionList_vyk3u_9", p = "_orientationVertical_vyk3u_13", y = "_descriptionItem_vyk3u_18", d = "_orientationHorizontal_vyk3u_24", l = "_sizeDefault_vyk3u_40", _ = "_sizeSm_vyk3u_44", u = "_descriptionTerm_vyk3u_52", m = "_descriptionDetails_vyk3u_60", v = "_typographyBody_vyk3u_78", z = "_typographyMono_vyk3u_82", t = {
|
|
4
|
+
descriptionList: c,
|
|
5
|
+
orientationVertical: p,
|
|
6
|
+
descriptionItem: y,
|
|
7
|
+
orientationHorizontal: d,
|
|
8
|
+
sizeDefault: l,
|
|
9
|
+
sizeSm: _,
|
|
10
|
+
descriptionTerm: u,
|
|
11
|
+
descriptionDetails: m,
|
|
12
|
+
typographyBody: v,
|
|
13
|
+
typographyMono: z
|
|
14
|
+
}, f = s(t.descriptionList, {
|
|
15
|
+
variants: {
|
|
16
|
+
orientation: {
|
|
17
|
+
vertical: t.orientationVertical,
|
|
18
|
+
horizontal: t.orientationHorizontal
|
|
19
|
+
},
|
|
20
|
+
size: {
|
|
21
|
+
default: t.sizeDefault,
|
|
22
|
+
sm: t.sizeSm
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
defaultVariants: {
|
|
26
|
+
orientation: "vertical",
|
|
27
|
+
size: "default"
|
|
28
|
+
}
|
|
29
|
+
}), D = s(t.descriptionDetails, {
|
|
30
|
+
variants: {
|
|
31
|
+
typography: {
|
|
32
|
+
body: t.typographyBody,
|
|
33
|
+
mono: t.typographyMono
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
defaultVariants: {
|
|
37
|
+
typography: "body"
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
function k({ className: i, orientation: o, size: n, ...a }) {
|
|
41
|
+
return /* @__PURE__ */ e(
|
|
42
|
+
"dl",
|
|
43
|
+
{
|
|
44
|
+
className: f({
|
|
45
|
+
orientation: o ?? "vertical",
|
|
46
|
+
size: n ?? "default",
|
|
47
|
+
className: i
|
|
48
|
+
}),
|
|
49
|
+
...a
|
|
50
|
+
}
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
function L({ className: i, ...o }) {
|
|
54
|
+
return /* @__PURE__ */ e("div", { className: r(t.descriptionItem, i), ...o });
|
|
55
|
+
}
|
|
56
|
+
function V({ className: i, ...o }) {
|
|
57
|
+
return /* @__PURE__ */ e("dt", { className: r(t.descriptionTerm, i), ...o });
|
|
58
|
+
}
|
|
59
|
+
function I({
|
|
60
|
+
className: i,
|
|
61
|
+
typography: o,
|
|
62
|
+
...n
|
|
63
|
+
}) {
|
|
64
|
+
return /* @__PURE__ */ e(
|
|
65
|
+
"dd",
|
|
66
|
+
{
|
|
67
|
+
className: D({ typography: o ?? "body", className: i }),
|
|
68
|
+
...n
|
|
69
|
+
}
|
|
70
|
+
);
|
|
71
|
+
}
|
|
72
|
+
export {
|
|
73
|
+
k as DescriptionList,
|
|
74
|
+
I as DescriptionListDetails,
|
|
75
|
+
L as DescriptionListItem,
|
|
76
|
+
V as DescriptionListTerm
|
|
77
|
+
};
|
|
78
|
+
//# sourceMappingURL=description-list.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"description-list.js","sources":["../src/components/description-list/description-list.tsx"],"sourcesContent":["import { cva, cx, type VariantProps } from 'class-variance-authority';\nimport type { ComponentProps } from 'react';\n\nimport styles from './description-list.module.css';\n\n/*\n * A list of name and value pairs on real `dl`/`dt`/`dd`, so assistive\n * technology keeps the term-to-value relation. `DescriptionListItem` is the\n * `div` grouping HTML allows inside `dl`, so a row can carry a separator\n * or a key. No `render` on the parts: the elements are the point of the\n * component. `orientation` takes two of Field's values with their meaning.\n */\nconst descriptionListVariants = cva(styles.descriptionList, {\n variants: {\n orientation: {\n vertical: styles.orientationVertical,\n horizontal: styles.orientationHorizontal,\n },\n size: {\n default: styles.sizeDefault,\n sm: styles.sizeSm,\n },\n },\n defaultVariants: {\n orientation: 'vertical',\n size: 'default',\n },\n});\n\n// The value's ramp role, named `typography` as on Text.\nconst descriptionDetailsVariants = cva(styles.descriptionDetails, {\n variants: {\n typography: {\n body: styles.typographyBody,\n mono: styles.typographyMono,\n },\n },\n defaultVariants: {\n typography: 'body',\n },\n});\n\nexport interface DescriptionListProps\n extends ComponentProps<'dl'>, VariantProps<typeof descriptionListVariants> {}\n\nexport function DescriptionList({ className, orientation, size, ...props }: DescriptionListProps) {\n return (\n <dl\n className={descriptionListVariants({\n orientation: orientation ?? 'vertical',\n size: size ?? 'default',\n className,\n })}\n {...props}\n />\n );\n}\n\nexport type DescriptionListItemProps = ComponentProps<'div'>;\n\nexport function DescriptionListItem({ className, ...props }: DescriptionListItemProps) {\n return <div className={cx(styles.descriptionItem, className)} {...props} />;\n}\n\nexport type DescriptionListTermProps = ComponentProps<'dt'>;\n\nexport function DescriptionListTerm({ className, ...props }: DescriptionListTermProps) {\n return <dt className={cx(styles.descriptionTerm, className)} {...props} />;\n}\n\nexport interface DescriptionListDetailsProps\n extends ComponentProps<'dd'>, VariantProps<typeof descriptionDetailsVariants> {}\n\nexport function DescriptionListDetails({\n className,\n typography,\n ...props\n}: DescriptionListDetailsProps) {\n return (\n <dd\n className={descriptionDetailsVariants({ typography: typography ?? 'body', className })}\n {...props}\n />\n );\n}\n"],"names":["descriptionListVariants","cva","styles","descriptionDetailsVariants","DescriptionList","className","orientation","size","props","jsx","DescriptionListItem","cx","DescriptionListTerm","DescriptionListDetails","typography"],"mappings":";;;;;;;;;;;;;GAYMA,IAA0BC,EAAIC,EAAO,iBAAiB;AAAA,EAC1D,UAAU;AAAA,IACR,aAAa;AAAA,MACX,UAAUA,EAAO;AAAA,MACjB,YAAYA,EAAO;AAAA,IAAA;AAAA,IAErB,MAAM;AAAA,MACJ,SAASA,EAAO;AAAA,MAChB,IAAIA,EAAO;AAAA,IAAA;AAAA,EACb;AAAA,EAEF,iBAAiB;AAAA,IACf,aAAa;AAAA,IACb,MAAM;AAAA,EAAA;AAEV,CAAC,GAGKC,IAA6BF,EAAIC,EAAO,oBAAoB;AAAA,EAChE,UAAU;AAAA,IACR,YAAY;AAAA,MACV,MAAMA,EAAO;AAAA,MACb,MAAMA,EAAO;AAAA,IAAA;AAAA,EACf;AAAA,EAEF,iBAAiB;AAAA,IACf,YAAY;AAAA,EAAA;AAEhB,CAAC;AAKM,SAASE,EAAgB,EAAE,WAAAC,GAAW,aAAAC,GAAa,MAAAC,GAAM,GAAGC,KAA+B;AAChG,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWT,EAAwB;AAAA,QACjC,aAAaM,KAAe;AAAA,QAC5B,MAAMC,KAAQ;AAAA,QACd,WAAAF;AAAA,MAAA,CACD;AAAA,MACA,GAAGG;AAAA,IAAA;AAAA,EAAA;AAGV;AAIO,SAASE,EAAoB,EAAE,WAAAL,GAAW,GAAGG,KAAmC;AACrF,SAAO,gBAAAC,EAAC,SAAI,WAAWE,EAAGT,EAAO,iBAAiBG,CAAS,GAAI,GAAGG,GAAO;AAC3E;AAIO,SAASI,EAAoB,EAAE,WAAAP,GAAW,GAAGG,KAAmC;AACrF,SAAO,gBAAAC,EAAC,QAAG,WAAWE,EAAGT,EAAO,iBAAiBG,CAAS,GAAI,GAAGG,GAAO;AAC1E;AAKO,SAASK,EAAuB;AAAA,EACrC,WAAAR;AAAA,EACA,YAAAS;AAAA,EACA,GAAGN;AACL,GAAgC;AAC9B,SACE,gBAAAC;AAAA,IAAC;AAAA,IAAA;AAAA,MACC,WAAWN,EAA2B,EAAE,YAAYW,KAAc,QAAQ,WAAAT,GAAW;AAAA,MACpF,GAAGG;AAAA,IAAA;AAAA,EAAA;AAGV;"}
|
package/dist/docs/alert.md
CHANGED
|
@@ -36,8 +36,14 @@ structurally, no prop to set.
|
|
|
36
36
|
| `variant` | `'default' \| 'destructive'` | `'default'` |
|
|
37
37
|
| `className` | `string` — merged after the variant class | — |
|
|
38
38
|
|
|
39
|
-
`AlertTitle
|
|
40
|
-
|
|
39
|
+
`AlertTitle`:
|
|
40
|
+
|
|
41
|
+
| Prop | Type | Default |
|
|
42
|
+
|------|------|---------|
|
|
43
|
+
| `render` | `ReactElement` or callback - the element, such as `<h3 />` for a real heading; the title keeps its look | `div` |
|
|
44
|
+
|
|
45
|
+
`AlertDescription` and `AlertAction` take no kit-specific props - every
|
|
46
|
+
prop is the underlying `<div>`'s props, forwarded as they are.
|
|
41
47
|
|
|
42
48
|
## Examples
|
|
43
49
|
|
package/dist/docs/attachment.md
CHANGED
|
@@ -139,8 +139,14 @@ visual result is a slightly larger action button (32px) than upstream's
|
|
|
139
139
|
|
|
140
140
|
### AttachmentGroup
|
|
141
141
|
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
| Prop | Type | Default | Description |
|
|
143
|
+
| ------- | -------- | ------- | ----------- |
|
|
144
|
+
| `label` | `string` | - | Accessible name for the row: `role="group"` plus `aria-label`. Without it the group has no role. |
|
|
145
|
+
|
|
146
|
+
Plus `className` (merged after the layout class, alongside the
|
|
147
|
+
`scroll-fade-x`/`no-scrollbar` utility classes) and native `<div>` props.
|
|
148
|
+
While its content overflows, the group is a tab stop (`tabIndex={0}`); a
|
|
149
|
+
row that fits has none. A `tabIndex` you pass always wins.
|
|
144
150
|
|
|
145
151
|
`attachmentVariants`/`attachmentMediaVariants` (the underlying `cva`
|
|
146
152
|
recipes) are also exported.
|
|
@@ -205,7 +211,7 @@ import {
|
|
|
205
211
|
### Group
|
|
206
212
|
|
|
207
213
|
```tsx
|
|
208
|
-
<AttachmentGroup>
|
|
214
|
+
<AttachmentGroup label="Attached files">
|
|
209
215
|
<Attachment size="sm">{/* … */}</Attachment>
|
|
210
216
|
<Attachment size="sm">{/* … */}</Attachment>
|
|
211
217
|
</AttachmentGroup>
|
|
@@ -235,11 +241,17 @@ real `<button>` (or your element via `render`).
|
|
|
235
241
|
sits behind the actions in the stacking order, so an `AttachmentAction`
|
|
236
242
|
and the `AttachmentTrigger` never trap each other — both remain
|
|
237
243
|
separately focusable and clickable.
|
|
238
|
-
- **Keyboard scrolling.** `AttachmentGroup` scrolls horizontally
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
244
|
+
- **Keyboard scrolling.** `AttachmentGroup` scrolls horizontally with a
|
|
245
|
+
hidden scrollbar. While its attachments overflow the row, the group puts
|
|
246
|
+
itself in the tab order, so a keyboard user can focus it and scroll with
|
|
247
|
+
the arrow keys, also for a row of presentational attachments with no
|
|
248
|
+
trigger or actions; the focus ring shows on keyboard focus, in forced
|
|
249
|
+
colors too. A row that fits gets no tab stop, so the usual one or two
|
|
250
|
+
composer attachments add none. Overflow is re-measured as the row or its
|
|
251
|
+
attachments resize and as attachments come or go; a focused row keeps its
|
|
252
|
+
stop until it loses focus. Pass `label` so the
|
|
253
|
+
focused row announces what it holds (`role="group"`, not a landmark, so
|
|
254
|
+
a thread with many rows does not flood landmark navigation).
|
|
243
255
|
- **Meaning beyond color.** The `error` state uses a destructive color —
|
|
244
256
|
keep the failure reason in `AttachmentDescription` so the state is not
|
|
245
257
|
conveyed by color alone.
|
package/dist/docs/avatar.md
CHANGED
|
@@ -50,8 +50,14 @@ then.
|
|
|
50
50
|
| `className` | `string` — merged after the kit class | — |
|
|
51
51
|
|
|
52
52
|
`tone` × `variant` is the fill matrix: `solid` paints the tone at full
|
|
53
|
-
strength
|
|
54
|
-
on its soft surface
|
|
53
|
+
strength for `neutral`, `accent` and `info`, `soft` puts the tone's own label color
|
|
54
|
+
on its soft surface (for `success`, `warning` and `danger` the tone's text
|
|
55
|
+
token, `--success-foreground` and so on, which clears 4.5:1 where the fill
|
|
56
|
+
tone does not). Solid `success`, `warning` and `danger` look exactly like their soft
|
|
57
|
+
treatment: the drawn fill tones take no ink at 4.5:1 in light, so they use
|
|
58
|
+
the theme's status text pair (`--success-foreground` on `--success-soft`
|
|
59
|
+
and so on, 5.00:1, 6.59:1 and 5.72:1 in light; `tokens.test.ts` checks
|
|
60
|
+
both themes). The `neutral`/`soft` default is the plain
|
|
55
61
|
muted-on-muted fill, so a fallback given neither prop looks exactly as it
|
|
56
62
|
did before these axes existed.
|
|
57
63
|
|
package/dist/docs/badge.md
CHANGED
|
@@ -16,18 +16,19 @@ The `variant` axis carries two groups on one axis:
|
|
|
16
16
|
- **Upstream paint** — `default`, `secondary`, `destructive`, `outline`,
|
|
17
17
|
`ghost`, `link`: the same six names and the same meaning as
|
|
18
18
|
[Button](button.md)'s. `destructive` is a tint of `--destructive` under
|
|
19
|
-
a `--
|
|
19
|
+
a label in the danger text token (`--danger-foreground`), so it reads at
|
|
20
|
+
4.5:1 where Button's `--destructive` label would not.
|
|
20
21
|
- **Category** - `category`: a 1px ring and label in `--primary` over a
|
|
21
22
|
tint of the same blue, the drawn chip for a category tag.
|
|
22
23
|
- **Tone** — `success`, `warning`, `danger`, `info`, `accent`: a soft
|
|
23
|
-
tinted fill with the tone's
|
|
24
|
+
tinted fill with the tone's color as the label, matching the Studio
|
|
24
25
|
design's Badge row. Its sixth specimen, Neutral, is `secondary` — that
|
|
25
26
|
variant already paints the drawn pair exactly, so there is no separate
|
|
26
27
|
`neutral` name.
|
|
27
28
|
|
|
28
29
|
Note that `destructive` and `danger` are both present on purpose: a tint
|
|
29
|
-
of `--destructive`
|
|
30
|
-
|
|
30
|
+
of `--destructive` and a `--danger-soft` fill, both labelled in the danger
|
|
31
|
+
text token. Two names for one red, one per role.
|
|
31
32
|
|
|
32
33
|
A tone is still paint, not state: it colors a label, it does not track
|
|
33
34
|
one. Badge's five tones (`success`, `warning`, `danger`, `info`, `accent`)
|
|
@@ -36,13 +37,13 @@ status, but keep the label text itself explicit; color alone is not a
|
|
|
36
37
|
substitute for a state machine.
|
|
37
38
|
|
|
38
39
|
> **Accessibility of tones.** At Badge's label size WCAG 1.4.3 asks
|
|
39
|
-
> 4.5:1
|
|
40
|
-
>
|
|
41
|
-
>
|
|
42
|
-
>
|
|
43
|
-
>
|
|
44
|
-
>
|
|
45
|
-
>
|
|
40
|
+
> 4.5:1. The `success`, `warning` and `danger` labels are written in the
|
|
41
|
+
> tone's text token (`--success-foreground` and so on), not the fill
|
|
42
|
+
> tone, and clear it in both themes (`tokens.test.ts` checks them); the
|
|
43
|
+
> `destructive` label uses the danger text token too. The `category` chip
|
|
44
|
+
> in the dark theme is still under the floor, with no drawn alternative.
|
|
45
|
+
> Color is not a substitute for text either way: keep the label itself
|
|
46
|
+
> explicit.
|
|
46
47
|
|
|
47
48
|
## When to use
|
|
48
49
|
|
package/dist/docs/button.md
CHANGED
|
@@ -15,9 +15,15 @@ polymorphism, correct disabled/focus behavior, `type="button"` by default
|
|
|
15
15
|
|
|
16
16
|
## When not to use
|
|
17
17
|
|
|
18
|
-
- Plain in-text navigation
|
|
19
|
-
`variant="link"`; that variant exists for actions
|
|
20
|
-
links
|
|
18
|
+
- Plain in-text navigation: use `Link` (it takes the app's router link
|
|
19
|
+
through `render`), not `variant="link"`; that variant exists for actions
|
|
20
|
+
that visually read as links, and it carries a control's height and
|
|
21
|
+
padding into the line.
|
|
22
|
+
- Navigation that looks like a button (a "Get started" link, a call to
|
|
23
|
+
action): use the consumer app's link component with
|
|
24
|
+
`buttonVariants({ variant, size })` as its class, so the element keeps
|
|
25
|
+
the link role. `render={<a />}` on `Button` keeps the button role, so a
|
|
26
|
+
screen reader announces the link as a button.
|
|
21
27
|
- Toggling on/off state — use `switch` or `checkbox` instead.
|
|
22
28
|
|
|
23
29
|
## Props (kit level)
|
|
@@ -99,7 +105,7 @@ through `onClick`, not a manual listener, if you need it to respect
|
|
|
99
105
|
## Examples
|
|
100
106
|
|
|
101
107
|
```tsx
|
|
102
|
-
import { Button } from '@gears-frontx/ui-kit';
|
|
108
|
+
import { Button, buttonVariants } from '@gears-frontx/ui-kit';
|
|
103
109
|
|
|
104
110
|
// Primary action
|
|
105
111
|
<Button onClick={save}>Save</Button>
|
|
@@ -128,6 +134,12 @@ import { Button } from '@gears-frontx/ui-kit';
|
|
|
128
134
|
Open reports
|
|
129
135
|
</Button>
|
|
130
136
|
|
|
137
|
+
// Navigation drawn as a button: the app's link component (here a plain
|
|
138
|
+
// anchor) wears the button classes and keeps the link role
|
|
139
|
+
<a href="/docs" className={buttonVariants({ size: 'lg' })}>
|
|
140
|
+
Get started
|
|
141
|
+
</a>
|
|
142
|
+
|
|
131
143
|
// Form submit (explicit type)
|
|
132
144
|
<Button type="submit">Create account</Button>
|
|
133
145
|
```
|
package/dist/docs/calendar.md
CHANGED
|
@@ -28,6 +28,12 @@ The kit only fixes defaults and re-authors the styling surface:
|
|
|
28
28
|
| `className` | `string` — merged onto the root | — |
|
|
29
29
|
| `classNames` | `Partial<ClassNames>` — merged over the kit's own per-slot classes, keyed by react-day-picker's own slot names (`root`, `months`, `day`, `range_start`, ...) | — |
|
|
30
30
|
|
|
31
|
+
Name each calendar's month navigation when a page shows more than one:
|
|
32
|
+
react-day-picker names it "Navigation bar" for every instance, so two
|
|
33
|
+
calendars give two identical navigation landmarks (axe `landmark-unique`).
|
|
34
|
+
Pass its `labels` prop, for example
|
|
35
|
+
`labels={{ labelNav: () => 'Start date, month navigation' }}`.
|
|
36
|
+
|
|
31
37
|
`captionLayout`'s four values split into two visually distinct renders,
|
|
32
38
|
both covered by calendar.module.css:
|
|
33
39
|
|