@raystack/apsara 0.41.0 → 0.41.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.
- package/dist/avatar/avatar.d.ts +3 -3
- package/dist/avatar/avatar.d.ts.map +1 -1
- package/dist/badge/badge.d.ts +1 -1
- package/dist/body/body.d.ts +1 -1
- package/dist/body/body.d.ts.map +1 -1
- package/dist/box/box.d.ts +1 -1
- package/dist/box/box.d.ts.map +1 -1
- package/dist/button/button.d.ts +1 -1
- package/dist/checkbox/checkbox.d.ts +2 -2
- package/dist/checkbox/checkbox.d.ts.map +1 -1
- package/dist/container/container.d.ts +1 -1
- package/dist/container/container.d.ts.map +1 -1
- package/dist/dialog/dialog.d.ts +2 -2
- package/dist/dialog/dialog.d.ts.map +1 -1
- package/dist/display/display.d.ts +1 -1
- package/dist/display/display.d.ts.map +1 -1
- package/dist/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/dist/emptystate/emptystate.d.ts +1 -1
- package/dist/emptystate/emptystate.d.ts.map +1 -1
- package/dist/errorstate/errorstate.d.ts +1 -1
- package/dist/errorstate/errorstate.d.ts.map +1 -1
- package/dist/flex/flex.d.ts +1 -1
- package/dist/grid/grid.d.ts +1 -1
- package/dist/grid/grid.d.ts.map +1 -1
- package/dist/headline/headline.d.ts +1 -1
- package/dist/headline/headline.d.ts.map +1 -1
- package/dist/image/image.d.ts +1 -1
- package/dist/image/image.d.ts.map +1 -1
- package/dist/inputfield/inputfield.d.ts +1 -1
- package/dist/inputfield/inputfield.d.ts.map +1 -1
- package/dist/label/label.d.ts +1 -1
- package/dist/label/label.d.ts.map +1 -1
- package/dist/link/link.d.ts +1 -1
- package/dist/link/link.d.ts.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js +2 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
- package/dist/radio/radio.d.ts +2 -2
- package/dist/radio/radio.d.ts.map +1 -1
- package/dist/scroll-area/scrollarea.d.ts +2 -2
- package/dist/select/select.d.ts +2 -2
- package/dist/separator/separator.d.ts +1 -1
- package/dist/separator/separator.d.ts.map +1 -1
- package/dist/sheet/sheet.d.ts +2 -2
- package/dist/sheet/sheet.d.ts.map +1 -1
- package/dist/sidebar/sidebar.d.ts +3 -3
- package/dist/sidebar/sidebar.d.ts.map +1 -1
- package/dist/style.css +1 -1
- package/dist/switch/switch.d.ts +2 -2
- package/dist/switch/switch.d.ts.map +1 -1
- package/dist/table/table.d.ts +7 -7
- package/dist/tabs/tabs.d.ts +4 -4
- package/dist/tabs/tabs.d.ts.map +1 -1
- package/dist/text/text.d.ts +1 -1
- package/dist/text/text.d.ts.map +1 -1
- package/dist/textarea/textarea.d.ts +2 -2
- package/dist/textarea/textarea.d.ts.map +1 -1
- package/dist/textfield/textfield.d.ts +2 -2
- package/dist/textfield/textfield.d.ts.map +1 -1
- package/dist/title/title.d.ts +1 -1
- package/dist/title/title.d.ts.map +1 -1
- package/dist/toggle-group/togglegroup.d.ts +2 -2
- package/dist/toggle-group/togglegroup.d.ts.map +1 -1
- package/dist/v1/components/announcement-bar/announcement-bar.d.ts +1 -1
- package/dist/v1/components/announcement-bar/announcement-bar.d.ts.map +1 -1
- package/dist/v1/components/avatar/avatar.d.ts +1 -1
- package/dist/v1/components/avatar/avatar.d.ts.map +1 -1
- package/dist/v1/components/badge/badge.d.ts +1 -1
- package/dist/v1/components/badge/badge.d.ts.map +1 -1
- package/dist/v1/components/box/box.d.ts +1 -1
- package/dist/v1/components/box/box.d.ts.map +1 -1
- package/dist/v1/components/breadcrumb/breadcrumb.d.ts +1 -1
- package/dist/v1/components/button/button.d.ts +1 -1
- package/dist/v1/components/callout/callout.d.ts +1 -1
- package/dist/v1/components/callout/callout.d.ts.map +1 -1
- package/dist/v1/components/checkbox/checkbox.d.ts +1 -1
- package/dist/v1/components/checkbox/checkbox.d.ts.map +1 -1
- package/dist/v1/components/chip/chip.d.ts +1 -1
- package/dist/v1/components/chip/chip.d.ts.map +1 -1
- package/dist/v1/components/container/container.d.ts +1 -1
- package/dist/v1/components/container/container.d.ts.map +1 -1
- package/dist/v1/components/data-table/data-table.cjs +29 -6
- package/dist/v1/components/data-table/data-table.cjs.map +1 -1
- package/dist/v1/components/data-table/data-table.d.ts.map +1 -1
- package/dist/v1/components/data-table/data-table.js +30 -7
- package/dist/v1/components/data-table/data-table.js.map +1 -1
- package/dist/v1/components/dialog/dialog.d.ts +1 -1
- package/dist/v1/components/dialog/dialog.d.ts.map +1 -1
- package/dist/v1/components/dropdown-menu/dropdown-menu.d.ts +5 -5
- package/dist/v1/components/flex/flex.d.ts +1 -1
- package/dist/v1/components/headline/headline.cjs +8 -4
- package/dist/v1/components/headline/headline.cjs.map +1 -1
- package/dist/v1/components/headline/headline.d.ts +20 -4
- package/dist/v1/components/headline/headline.d.ts.map +1 -1
- package/dist/v1/components/headline/headline.js +8 -4
- package/dist/v1/components/headline/headline.js.map +1 -1
- package/dist/v1/components/headline/headline.module.css.cjs +1 -1
- package/dist/v1/components/headline/headline.module.css.js +1 -1
- package/dist/v1/components/headline/index.d.ts +1 -1
- package/dist/v1/components/headline/index.d.ts.map +1 -1
- package/dist/v1/components/icon-button/icon-button.d.ts +1 -1
- package/dist/v1/components/icon-button/icon-button.d.ts.map +1 -1
- package/dist/v1/components/image/image.d.ts +1 -1
- package/dist/v1/components/image/image.d.ts.map +1 -1
- package/dist/v1/components/indicator/indicator.d.ts +1 -1
- package/dist/v1/components/indicator/indicator.d.ts.map +1 -1
- package/dist/v1/components/input-field/input-field.d.ts +1 -1
- package/dist/v1/components/input-field/input-field.d.ts.map +1 -1
- package/dist/v1/components/label/label.d.ts +1 -1
- package/dist/v1/components/label/label.d.ts.map +1 -1
- package/dist/v1/components/link/link.cjs +17 -63
- package/dist/v1/components/link/link.cjs.map +1 -1
- package/dist/v1/components/link/link.d.ts +2 -11
- package/dist/v1/components/link/link.d.ts.map +1 -1
- package/dist/v1/components/link/link.js +17 -63
- package/dist/v1/components/link/link.js.map +1 -1
- package/dist/v1/components/link/link.module.css.cjs +1 -1
- package/dist/v1/components/link/link.module.css.js +1 -1
- package/dist/v1/components/list/list.d.ts +1 -1
- package/dist/v1/components/list/list.d.ts.map +1 -1
- package/dist/v1/components/radio/radio.d.ts +1 -1
- package/dist/v1/components/radio/radio.d.ts.map +1 -1
- package/dist/v1/components/select/select.d.ts +4 -5
- package/dist/v1/components/select/select.d.ts.map +1 -1
- package/dist/v1/components/sheet/sheet.d.ts +2 -2
- package/dist/v1/components/sheet/sheet.d.ts.map +1 -1
- package/dist/v1/components/side-panel/side-panel.d.ts +1 -1
- package/dist/v1/components/side-panel/side-panel.d.ts.map +1 -1
- package/dist/v1/components/slider/slider.d.ts +1 -1
- package/dist/v1/components/slider/slider.d.ts.map +1 -1
- package/dist/v1/components/spinner/spinner.d.ts +1 -1
- package/dist/v1/components/spinner/spinner.d.ts.map +1 -1
- package/dist/v1/components/table/table.d.ts +4 -4
- package/dist/v1/components/tabs/tabs.d.ts +1 -1
- package/dist/v1/components/tabs/tabs.d.ts.map +1 -1
- package/dist/v1/components/text/index.d.ts +1 -1
- package/dist/v1/components/text/index.d.ts.map +1 -1
- package/dist/v1/components/text/text.cjs +61 -7
- package/dist/v1/components/text/text.cjs.map +1 -1
- package/dist/v1/components/text/text.d.ts +40 -8
- package/dist/v1/components/text/text.d.ts.map +1 -1
- package/dist/v1/components/text/text.js +92 -39
- package/dist/v1/components/text/text.js.map +1 -1
- package/dist/v1/components/text/text.module.css.cjs +2 -2
- package/dist/v1/components/text/text.module.css.js +2 -2
- package/dist/v1/components/textfield/textfield.d.ts +2 -2
- package/dist/v1/components/textfield/textfield.d.ts.map +1 -1
- package/dist/v1/components/tooltip/tooltip.d.ts +1 -1
- package/dist/v1/components/tooltip/tooltip.d.ts.map +1 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs +2 -0
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.cjs.map +1 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js +2 -1
- package/dist/v1/node_modules/.pnpm/@radix-ui_react-slot@1.0.2_@types_react@18.2.12_react@18.2.0/node_modules/@radix-ui/react-slot/dist/index.js.map +1 -1
- package/dist/v1/style.css +1 -1
- package/package.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as DialogPrimitive from "@radix-ui/react-dialog";
|
|
2
2
|
import { VariantProps } from "class-variance-authority";
|
|
3
3
|
import { ComponentProps, ComponentPropsWithoutRef } from "react";
|
|
4
|
-
declare const dialogContent: (props?: import("class-variance-authority/
|
|
4
|
+
declare const dialogContent: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
5
5
|
export interface DialogContentProps extends ComponentPropsWithoutRef<typeof DialogPrimitive.Content>, VariantProps<typeof dialogContent> {
|
|
6
6
|
ariaLabel?: string;
|
|
7
7
|
ariaDescription?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../../v1/components/dialog/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EACL,cAAc,EACd,wBAAwB,EAGzB,MAAM,OAAO,CAAC;AAKf,QAAA,MAAM,aAAa,
|
|
1
|
+
{"version":3,"file":"dialog.d.ts","sourceRoot":"","sources":["../../../../v1/components/dialog/dialog.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,eAAe,MAAM,wBAAwB,CAAC;AAE1D,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAE7D,OAAO,EACL,cAAc,EACd,wBAAwB,EAGzB,MAAM,OAAO,CAAC;AAKf,QAAA,MAAM,aAAa,oFAA4B,CAAC;AAEhD,MAAM,WAAW,kBACf,SAAQ,wBAAwB,CAAC,OAAO,eAAe,CAAC,OAAO,CAAC,EAC9D,YAAY,CAAC,OAAO,aAAa,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,YAAY,CAAC,EAAE,KAAK,CAAC,aAAa,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AAuFD,KAAK,gBAAgB,GAAG,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC,CAAC;AACrE,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAUpE;AAED,UAAU,gBACR,SAAQ,cAAc,CAAC,OAAO,eAAe,CAAC,KAAK,CAAC;IACpD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,iBAAS,WAAW,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,2CAWvE;AAED,UAAU,sBACR,SAAQ,cAAc,CAAC,OAAO,eAAe,CAAC,WAAW,CAAC;IAC1D,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,iBAAS,iBAAiB,CAAC,EACzB,QAAQ,EACR,SAAS,EACT,GAAG,KAAK,EACT,EAAE,sBAAsB,2CAWxB;AAED,eAAO,MAAM,MAAM;;;;kBA1FP,MAAM,SAAS;;;;kBAgBf,MAAM,SAAS;;;;kBAYf,MAAM,SAAS;;;;;;;CAwEzB,CAAC"}
|
|
@@ -5,22 +5,22 @@ type DropdownMenuProps = React.ComponentProps<typeof DropdownMenuPrimitive.Root>
|
|
|
5
5
|
export declare function RootDropdownMenu({ children, ...props }: DropdownMenuProps): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare const DropdownMenu: React.FC<DropdownMenuPrimitive.DropdownMenuProps> & {
|
|
7
7
|
Trigger: React.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuTriggerProps & React.RefAttributes<HTMLButtonElement>>;
|
|
8
|
-
Content: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/
|
|
8
|
+
Content: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
11
11
|
Item: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuItemProps & React.RefAttributes<HTMLDivElement>, "ref"> & {
|
|
12
12
|
leadingIcon?: React.ReactNode;
|
|
13
13
|
trailingIcon?: React.ReactNode;
|
|
14
|
-
} & VariantProps<(props?: import("class-variance-authority/
|
|
14
|
+
} & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
15
15
|
children?: React.ReactNode;
|
|
16
16
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
17
|
-
Group: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/
|
|
17
|
+
Group: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuGroupProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
18
18
|
children?: React.ReactNode;
|
|
19
19
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
20
|
-
Label: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/
|
|
20
|
+
Label: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuLabelProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
21
21
|
children?: React.ReactNode;
|
|
22
22
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
23
|
-
Separator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/
|
|
23
|
+
Separator: React.ForwardRefExoticComponent<Omit<DropdownMenuPrimitive.DropdownMenuSeparatorProps & React.RefAttributes<HTMLDivElement>, "ref"> & VariantProps<(props?: import("class-variance-authority/types").ClassProp | undefined) => string> & {
|
|
24
24
|
children?: React.ReactNode;
|
|
25
25
|
} & React.RefAttributes<HTMLDivElement>>;
|
|
26
26
|
EmptyState: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
@@ -6,7 +6,7 @@ export declare const Flex: import("react").ForwardRefExoticComponent<VariantProp
|
|
|
6
6
|
justify?: "start" | "center" | "end" | "between" | null | undefined;
|
|
7
7
|
wrap?: "wrap" | "noWrap" | "wrapReverse" | null | undefined;
|
|
8
8
|
gap?: "extra-small" | "small" | "medium" | "large" | "extra-large" | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | null | undefined;
|
|
9
|
-
} & import("class-variance-authority/
|
|
9
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
10
10
|
children?: import("react").ReactNode;
|
|
11
11
|
} & HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>;
|
|
12
12
|
//# sourceMappingURL=flex.d.ts.map
|
|
@@ -8,6 +8,10 @@ var headline_module = require('./headline.module.css.cjs');
|
|
|
8
8
|
const headline = index.cva(headline_module.default.headline, {
|
|
9
9
|
variants: {
|
|
10
10
|
size: {
|
|
11
|
+
t1: headline_module.default["headline-t1"],
|
|
12
|
+
t2: headline_module.default["headline-t2"],
|
|
13
|
+
t3: headline_module.default["headline-t3"],
|
|
14
|
+
t4: headline_module.default["headline-t4"],
|
|
11
15
|
small: headline_module.default["headline-small"],
|
|
12
16
|
medium: headline_module.default["headline-medium"],
|
|
13
17
|
large: headline_module.default["headline-large"],
|
|
@@ -19,16 +23,16 @@ const headline = index.cva(headline_module.default.headline, {
|
|
|
19
23
|
},
|
|
20
24
|
truncate: {
|
|
21
25
|
true: headline_module.default["headline-truncate"],
|
|
22
|
-
}
|
|
26
|
+
},
|
|
23
27
|
},
|
|
24
28
|
defaultVariants: {
|
|
25
|
-
size: "
|
|
29
|
+
size: "t2",
|
|
26
30
|
align: "left",
|
|
27
31
|
truncate: false,
|
|
28
32
|
},
|
|
29
33
|
});
|
|
30
|
-
const Headline = React.forwardRef(({ className, size, align, truncate, as: Component = "h2",
|
|
31
|
-
return (jsxRuntime.jsxRuntimeExports.jsx(Component, { ref: ref, className: headline({ size, align, truncate, className }), ...props
|
|
34
|
+
const Headline = React.forwardRef(({ className, size, align, truncate, as: Component = "h2", ...props }, ref) => {
|
|
35
|
+
return (jsxRuntime.jsxRuntimeExports.jsx(Component, { ref: ref, className: headline({ size, align, truncate, className }), ...props }));
|
|
32
36
|
});
|
|
33
37
|
Headline.displayName = "Headline";
|
|
34
38
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headline.cjs","sources":["../../../../v1/components/headline/headline.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { forwardRef, HTMLAttributes } from \"react\";\n\nimport styles from \"./headline.module.css\";\n\nconst headline = cva(styles.headline, {\n variants: {\n size: {\n small: styles[\"headline-small\"],\n medium: styles[\"headline-medium\"],\n large: styles[\"headline-large\"],\n },\n align: {\n left: styles[\"headline-align-left\"],\n center: styles[\"headline-align-center\"],\n right: styles[\"headline-align-right\"],\n },\n truncate: {\n true: styles[\"headline-truncate\"],\n }
|
|
1
|
+
{"version":3,"file":"headline.cjs","sources":["../../../../v1/components/headline/headline.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { forwardRef, HTMLAttributes } from \"react\";\n\nimport styles from \"./headline.module.css\";\n\nconst headline = cva(styles.headline, {\n variants: {\n size: {\n t1: styles[\"headline-t1\"],\n t2: styles[\"headline-t2\"],\n t3: styles[\"headline-t3\"],\n t4: styles[\"headline-t4\"],\n small: styles[\"headline-small\"],\n medium: styles[\"headline-medium\"],\n large: styles[\"headline-large\"],\n },\n align: {\n left: styles[\"headline-align-left\"],\n center: styles[\"headline-align-center\"],\n right: styles[\"headline-align-right\"],\n },\n truncate: {\n true: styles[\"headline-truncate\"],\n },\n },\n defaultVariants: {\n size: \"t2\",\n align: \"left\",\n truncate: false,\n },\n});\n\nexport type HeadlineBaseProps = VariantProps<typeof headline> & {\n /**\n * @remarks Use \"t1\" | \"t2\" | \"t3\" | \"t4\"\n */\n size?: \"t1\" | \"t2\" | \"t3\" | \"t4\" | \"small\" | \"medium\" | \"large\";\n};\n\ntype HeadlineProps = HeadlineBaseProps &\n HTMLAttributes<HTMLHeadingElement> & {\n as?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n };\n\nexport const Headline = forwardRef<HTMLHeadingElement, HeadlineProps>(\n (\n { className, size, align, truncate, as: Component = \"h2\", ...props },\n ref,\n ) => {\n return (\n <Component\n ref={ref}\n className={headline({ size, align, truncate, className })}\n {...props}\n />\n );\n },\n);\n\nHeadline.displayName = \"Headline\";\n"],"names":["cva","styles","forwardRef","_jsx"],"mappings":";;;;;;;AAKA,MAAM,QAAQ,GAAGA,SAAG,CAACC,uBAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,EAAE,EAAEA,uBAAM,CAAC,aAAa,CAAC;AACzB,YAAA,EAAE,EAAEA,uBAAM,CAAC,aAAa,CAAC;AACzB,YAAA,EAAE,EAAEA,uBAAM,CAAC,aAAa,CAAC;AACzB,YAAA,EAAE,EAAEA,uBAAM,CAAC,aAAa,CAAC;AACzB,YAAA,KAAK,EAAEA,uBAAM,CAAC,gBAAgB,CAAC;AAC/B,YAAA,MAAM,EAAEA,uBAAM,CAAC,iBAAiB,CAAC;AACjC,YAAA,KAAK,EAAEA,uBAAM,CAAC,gBAAgB,CAAC;AAChC,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAEA,uBAAM,CAAC,qBAAqB,CAAC;AACnC,YAAA,MAAM,EAAEA,uBAAM,CAAC,uBAAuB,CAAC;AACvC,YAAA,KAAK,EAAEA,uBAAM,CAAC,sBAAsB,CAAC;AACtC,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAEA,uBAAM,CAAC,mBAAmB,CAAC;AAClC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,IAAI;AACV,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,QAAQ,EAAE,KAAK;AAChB,KAAA;AACF,CAAA,CAAC,CAAC;AAcI,MAAM,QAAQ,GAAGC,gBAAU,CAChC,CACE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,EACpE,GAAG,KACD;IACF,QACEC,gCAAC,CAAA,SAAS,EACR,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EACrD,GAAA,KAAK,EACT,CAAA,EACF;AACJ,CAAC,EACD;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
|
|
@@ -1,11 +1,27 @@
|
|
|
1
1
|
import { type VariantProps } from "class-variance-authority";
|
|
2
2
|
import { HTMLAttributes } from "react";
|
|
3
|
-
|
|
4
|
-
size?: "small" | "medium" | "large" | null | undefined;
|
|
3
|
+
declare const headline: (props?: ({
|
|
4
|
+
size?: "small" | "medium" | "large" | "t1" | "t2" | "t3" | "t4" | null | undefined;
|
|
5
5
|
align?: "center" | "right" | "left" | null | undefined;
|
|
6
6
|
truncate?: boolean | null | undefined;
|
|
7
|
-
} & import("class-variance-authority/
|
|
7
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
|
+
export type HeadlineBaseProps = VariantProps<typeof headline> & {
|
|
9
|
+
/**
|
|
10
|
+
* @remarks Use "t1" | "t2" | "t3" | "t4"
|
|
11
|
+
*/
|
|
12
|
+
size?: "t1" | "t2" | "t3" | "t4" | "small" | "medium" | "large";
|
|
13
|
+
};
|
|
14
|
+
export declare const Headline: import("react").ForwardRefExoticComponent<VariantProps<(props?: ({
|
|
15
|
+
size?: "small" | "medium" | "large" | "t1" | "t2" | "t3" | "t4" | null | undefined;
|
|
16
|
+
align?: "center" | "right" | "left" | null | undefined;
|
|
17
|
+
truncate?: boolean | null | undefined;
|
|
18
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string> & {
|
|
19
|
+
/**
|
|
20
|
+
* @remarks Use "t1" | "t2" | "t3" | "t4"
|
|
21
|
+
*/
|
|
22
|
+
size?: "small" | "medium" | "large" | "t1" | "t2" | "t3" | "t4" | undefined;
|
|
23
|
+
} & HTMLAttributes<HTMLHeadingElement> & {
|
|
8
24
|
as?: "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | undefined;
|
|
9
|
-
"aria-label"?: string | undefined;
|
|
10
25
|
} & import("react").RefAttributes<HTMLHeadingElement>>;
|
|
26
|
+
export {};
|
|
11
27
|
//# sourceMappingURL=headline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headline.d.ts","sourceRoot":"","sources":["../../../../v1/components/headline/headline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAc,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"headline.d.ts","sourceRoot":"","sources":["../../../../v1/components/headline/headline.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAc,cAAc,EAAE,MAAM,OAAO,CAAC;AAInD,QAAA,MAAM,QAAQ;;;;8EAyBZ,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,YAAY,CAAC,OAAO,QAAQ,CAAC,GAAG;IAC9D;;OAEG;IACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;CACjE,CAAC;AAOF,eAAO,MAAM,QAAQ;;;;;IAXnB;;OAEG;;;;sDAsBJ,CAAC"}
|
|
@@ -6,6 +6,10 @@ import styles from './headline.module.css.js';
|
|
|
6
6
|
const headline = cva(styles.headline, {
|
|
7
7
|
variants: {
|
|
8
8
|
size: {
|
|
9
|
+
t1: styles["headline-t1"],
|
|
10
|
+
t2: styles["headline-t2"],
|
|
11
|
+
t3: styles["headline-t3"],
|
|
12
|
+
t4: styles["headline-t4"],
|
|
9
13
|
small: styles["headline-small"],
|
|
10
14
|
medium: styles["headline-medium"],
|
|
11
15
|
large: styles["headline-large"],
|
|
@@ -17,16 +21,16 @@ const headline = cva(styles.headline, {
|
|
|
17
21
|
},
|
|
18
22
|
truncate: {
|
|
19
23
|
true: styles["headline-truncate"],
|
|
20
|
-
}
|
|
24
|
+
},
|
|
21
25
|
},
|
|
22
26
|
defaultVariants: {
|
|
23
|
-
size: "
|
|
27
|
+
size: "t2",
|
|
24
28
|
align: "left",
|
|
25
29
|
truncate: false,
|
|
26
30
|
},
|
|
27
31
|
});
|
|
28
|
-
const Headline = forwardRef(({ className, size, align, truncate, as: Component = "h2",
|
|
29
|
-
return (jsxRuntimeExports.jsx(Component, { ref: ref, className: headline({ size, align, truncate, className }), ...props
|
|
32
|
+
const Headline = forwardRef(({ className, size, align, truncate, as: Component = "h2", ...props }, ref) => {
|
|
33
|
+
return (jsxRuntimeExports.jsx(Component, { ref: ref, className: headline({ size, align, truncate, className }), ...props }));
|
|
30
34
|
});
|
|
31
35
|
Headline.displayName = "Headline";
|
|
32
36
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"headline.js","sources":["../../../../v1/components/headline/headline.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { forwardRef, HTMLAttributes } from \"react\";\n\nimport styles from \"./headline.module.css\";\n\nconst headline = cva(styles.headline, {\n variants: {\n size: {\n small: styles[\"headline-small\"],\n medium: styles[\"headline-medium\"],\n large: styles[\"headline-large\"],\n },\n align: {\n left: styles[\"headline-align-left\"],\n center: styles[\"headline-align-center\"],\n right: styles[\"headline-align-right\"],\n },\n truncate: {\n true: styles[\"headline-truncate\"],\n }
|
|
1
|
+
{"version":3,"file":"headline.js","sources":["../../../../v1/components/headline/headline.tsx"],"sourcesContent":["import { cva, type VariantProps } from \"class-variance-authority\";\nimport { forwardRef, HTMLAttributes } from \"react\";\n\nimport styles from \"./headline.module.css\";\n\nconst headline = cva(styles.headline, {\n variants: {\n size: {\n t1: styles[\"headline-t1\"],\n t2: styles[\"headline-t2\"],\n t3: styles[\"headline-t3\"],\n t4: styles[\"headline-t4\"],\n small: styles[\"headline-small\"],\n medium: styles[\"headline-medium\"],\n large: styles[\"headline-large\"],\n },\n align: {\n left: styles[\"headline-align-left\"],\n center: styles[\"headline-align-center\"],\n right: styles[\"headline-align-right\"],\n },\n truncate: {\n true: styles[\"headline-truncate\"],\n },\n },\n defaultVariants: {\n size: \"t2\",\n align: \"left\",\n truncate: false,\n },\n});\n\nexport type HeadlineBaseProps = VariantProps<typeof headline> & {\n /**\n * @remarks Use \"t1\" | \"t2\" | \"t3\" | \"t4\"\n */\n size?: \"t1\" | \"t2\" | \"t3\" | \"t4\" | \"small\" | \"medium\" | \"large\";\n};\n\ntype HeadlineProps = HeadlineBaseProps &\n HTMLAttributes<HTMLHeadingElement> & {\n as?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n };\n\nexport const Headline = forwardRef<HTMLHeadingElement, HeadlineProps>(\n (\n { className, size, align, truncate, as: Component = \"h2\", ...props },\n ref,\n ) => {\n return (\n <Component\n ref={ref}\n className={headline({ size, align, truncate, className })}\n {...props}\n />\n );\n },\n);\n\nHeadline.displayName = \"Headline\";\n"],"names":["_jsx"],"mappings":";;;;;AAKA,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,YAAA,EAAE,EAAE,MAAM,CAAC,aAAa,CAAC;AACzB,YAAA,EAAE,EAAE,MAAM,CAAC,aAAa,CAAC;AACzB,YAAA,EAAE,EAAE,MAAM,CAAC,aAAa,CAAC;AACzB,YAAA,EAAE,EAAE,MAAM,CAAC,aAAa,CAAC;AACzB,YAAA,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC;AAC/B,YAAA,MAAM,EAAE,MAAM,CAAC,iBAAiB,CAAC;AACjC,YAAA,KAAK,EAAE,MAAM,CAAC,gBAAgB,CAAC;AAChC,SAAA;AACD,QAAA,KAAK,EAAE;AACL,YAAA,IAAI,EAAE,MAAM,CAAC,qBAAqB,CAAC;AACnC,YAAA,MAAM,EAAE,MAAM,CAAC,uBAAuB,CAAC;AACvC,YAAA,KAAK,EAAE,MAAM,CAAC,sBAAsB,CAAC;AACtC,SAAA;AACD,QAAA,QAAQ,EAAE;AACR,YAAA,IAAI,EAAE,MAAM,CAAC,mBAAmB,CAAC;AAClC,SAAA;AACF,KAAA;AACD,IAAA,eAAe,EAAE;AACf,QAAA,IAAI,EAAE,IAAI;AACV,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,QAAQ,EAAE,KAAK;AAChB,KAAA;AACF,CAAA,CAAC,CAAC;AAcI,MAAM,QAAQ,GAAG,UAAU,CAChC,CACE,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,GAAG,IAAI,EAAE,GAAG,KAAK,EAAE,EACpE,GAAG,KACD;IACF,QACEA,qBAAC,CAAA,SAAS,EACR,EAAA,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EACrD,GAAA,KAAK,EACT,CAAA,EACF;AACJ,CAAC,EACD;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var styles = {"headline":"headline-module_headline__U3ISV","headline-small":"headline-module_headline-small__bTsTs","headline-medium":"headline-module_headline-medium__Aw4vt","headline-large":"headline-module_headline-large__-r-UH","headline-align-left":"headline-module_headline-align-left__e7eb8","headline-align-center":"headline-module_headline-align-center__KjXaX","headline-align-right":"headline-module_headline-align-right__2KQ7V","headline-truncate":"headline-module_headline-truncate__BCqcb","headline___small":"headline-module_headline-small__bTsTs","headline___medium":"headline-module_headline-medium__Aw4vt","headline___large":"headline-module_headline-large__-r-UH","headline___align___left":"headline-module_headline-align-left__e7eb8","headline___align___center":"headline-module_headline-align-center__KjXaX","headline___align___right":"headline-module_headline-align-right__2KQ7V","headline___truncate":"headline-module_headline-truncate__BCqcb"};
|
|
5
|
+
var styles = {"headline":"headline-module_headline__U3ISV","headline-t1":"headline-module_headline-t1__dAEqI","headline-t2":"headline-module_headline-t2__RQY-4","headline-t3":"headline-module_headline-t3__u7718","headline-t4":"headline-module_headline-t4__JX6yi","headline-small":"headline-module_headline-small__bTsTs","headline-medium":"headline-module_headline-medium__Aw4vt","headline-large":"headline-module_headline-large__-r-UH","headline-align-left":"headline-module_headline-align-left__e7eb8","headline-align-center":"headline-module_headline-align-center__KjXaX","headline-align-right":"headline-module_headline-align-right__2KQ7V","headline-truncate":"headline-module_headline-truncate__BCqcb","headline___t1":"headline-module_headline-t1__dAEqI","headline___t2":"headline-module_headline-t2__RQY-4","headline___t3":"headline-module_headline-t3__u7718","headline___t4":"headline-module_headline-t4__JX6yi","headline___small":"headline-module_headline-small__bTsTs","headline___medium":"headline-module_headline-medium__Aw4vt","headline___large":"headline-module_headline-large__-r-UH","headline___align___left":"headline-module_headline-align-left__e7eb8","headline___align___center":"headline-module_headline-align-center__KjXaX","headline___align___right":"headline-module_headline-align-right__2KQ7V","headline___truncate":"headline-module_headline-truncate__BCqcb"};
|
|
6
6
|
|
|
7
7
|
exports.default = styles;
|
|
8
8
|
//# sourceMappingURL=headline.module.css.cjs.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var styles = {"headline":"headline-module_headline__U3ISV","headline-small":"headline-module_headline-small__bTsTs","headline-medium":"headline-module_headline-medium__Aw4vt","headline-large":"headline-module_headline-large__-r-UH","headline-align-left":"headline-module_headline-align-left__e7eb8","headline-align-center":"headline-module_headline-align-center__KjXaX","headline-align-right":"headline-module_headline-align-right__2KQ7V","headline-truncate":"headline-module_headline-truncate__BCqcb","headline___small":"headline-module_headline-small__bTsTs","headline___medium":"headline-module_headline-medium__Aw4vt","headline___large":"headline-module_headline-large__-r-UH","headline___align___left":"headline-module_headline-align-left__e7eb8","headline___align___center":"headline-module_headline-align-center__KjXaX","headline___align___right":"headline-module_headline-align-right__2KQ7V","headline___truncate":"headline-module_headline-truncate__BCqcb"};
|
|
1
|
+
var styles = {"headline":"headline-module_headline__U3ISV","headline-t1":"headline-module_headline-t1__dAEqI","headline-t2":"headline-module_headline-t2__RQY-4","headline-t3":"headline-module_headline-t3__u7718","headline-t4":"headline-module_headline-t4__JX6yi","headline-small":"headline-module_headline-small__bTsTs","headline-medium":"headline-module_headline-medium__Aw4vt","headline-large":"headline-module_headline-large__-r-UH","headline-align-left":"headline-module_headline-align-left__e7eb8","headline-align-center":"headline-module_headline-align-center__KjXaX","headline-align-right":"headline-module_headline-align-right__2KQ7V","headline-truncate":"headline-module_headline-truncate__BCqcb","headline___t1":"headline-module_headline-t1__dAEqI","headline___t2":"headline-module_headline-t2__RQY-4","headline___t3":"headline-module_headline-t3__u7718","headline___t4":"headline-module_headline-t4__JX6yi","headline___small":"headline-module_headline-small__bTsTs","headline___medium":"headline-module_headline-medium__Aw4vt","headline___large":"headline-module_headline-large__-r-UH","headline___align___left":"headline-module_headline-align-left__e7eb8","headline___align___center":"headline-module_headline-align-center__KjXaX","headline___align___right":"headline-module_headline-align-right__2KQ7V","headline___truncate":"headline-module_headline-truncate__BCqcb"};
|
|
2
2
|
|
|
3
3
|
export { styles as default };
|
|
4
4
|
//# sourceMappingURL=headline.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export * from "./headline";
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../v1/components/headline/index.tsx"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../v1/components/headline/index.tsx"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { VariantProps } from "class-variance-authority";
|
|
2
2
|
declare const iconButton: (props?: ({
|
|
3
3
|
size?: 1 | 2 | 3 | 4 | null | undefined;
|
|
4
|
-
} & import("class-variance-authority/
|
|
4
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5
5
|
export interface IconButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement>, VariantProps<typeof iconButton> {
|
|
6
6
|
size?: 1 | 2 | 3 | 4;
|
|
7
7
|
'aria-label'?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../v1/components/icon-button/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D,QAAA,MAAM,UAAU;;
|
|
1
|
+
{"version":3,"file":"icon-button.d.ts","sourceRoot":"","sources":["../../../../v1/components/icon-button/icon-button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAK7D,QAAA,MAAM,UAAU;;8EAYd,CAAC;AAEH,MAAM,WAAW,eACf,SAAQ,KAAK,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EACnD,YAAY,CAAC,OAAO,UAAU,CAAC;IACjC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,UAAU,+GAyBtB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { ImgHTMLAttributes } from "react";
|
|
|
3
3
|
declare const image: (props?: ({
|
|
4
4
|
fit?: "fill" | "contain" | "cover" | null | undefined;
|
|
5
5
|
radius?: "small" | "medium" | "none" | "full" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
interface ImageProps extends ImgHTMLAttributes<HTMLImageElement>, VariantProps<typeof image> {
|
|
8
8
|
fallback?: string;
|
|
9
9
|
width?: string | number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../v1/components/image/image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1C,QAAA,MAAM,KAAK;;;
|
|
1
|
+
{"version":3,"file":"image.d.ts","sourceRoot":"","sources":["../../../../v1/components/image/image.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1C,QAAA,MAAM,KAAK;;;8EAkBT,CAAC;AAEH,UAAU,UACR,SAAQ,iBAAiB,CAAC,gBAAgB,CAAC,EACzC,YAAY,CAAC,OAAO,KAAK,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC1B;AAED,wBAAgB,KAAK,CAAC,EACpB,GAAQ,EACR,SAAS,EACT,GAAG,EACH,MAAM,EACN,QAAQ,EACR,OAAO,EACP,KAAK,EACL,MAAM,EACN,KAAK,EACL,OAAgB,EAChB,QAAkB,EAClB,GAAG,KAAK,EACT,EAAE,UAAU,2CA2BZ;yBAxCe,KAAK"}
|
|
@@ -2,7 +2,7 @@ import { VariantProps } from "class-variance-authority";
|
|
|
2
2
|
import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
3
3
|
declare const indicator: (props?: ({
|
|
4
4
|
variant?: "accent" | "danger" | "success" | "neutral" | "warning" | null | undefined;
|
|
5
|
-
} & import("class-variance-authority/
|
|
5
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export interface IndicatorProps extends ComponentPropsWithoutRef<"div">, VariantProps<typeof indicator> {
|
|
7
7
|
label?: string;
|
|
8
8
|
children?: ReactNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"indicator.d.ts","sourceRoot":"","sources":["../../../../v1/components/indicator/indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI5D,QAAA,MAAM,SAAS;;
|
|
1
|
+
{"version":3,"file":"indicator.d.ts","sourceRoot":"","sources":["../../../../v1/components/indicator/indicator.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAI5D,QAAA,MAAM,SAAS;;8EAab,CAAC;AAEH,MAAM,WAAW,cACf,SAAQ,wBAAwB,CAAC,KAAK,CAAC,EACrC,YAAY,CAAC,OAAO,SAAS,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,eAAO,MAAM,SAAS;iFAOnB,cAAc;;CA2BhB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { ComponentPropsWithoutRef, ReactNode } from "react";
|
|
|
3
3
|
declare const inputWrapper: (props?: ({
|
|
4
4
|
size?: "small" | "large" | null | undefined;
|
|
5
5
|
variant?: "default" | "borderless" | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export interface InputFieldProps extends Omit<ComponentPropsWithoutRef<"input">, "error" | "size">, VariantProps<typeof inputWrapper> {
|
|
8
8
|
label?: string;
|
|
9
9
|
helperText?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"input-field.d.ts","sourceRoot":"","sources":["../../../../v1/components/input-field/input-field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AASxE,QAAA,MAAM,YAAY;;;
|
|
1
|
+
{"version":3,"file":"input-field.d.ts","sourceRoot":"","sources":["../../../../v1/components/input-field/input-field.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAElE,OAAO,EAAE,wBAAwB,EAAE,SAAS,EAAc,MAAM,OAAO,CAAC;AASxE,QAAA,MAAM,YAAY;;;8EAehB,CAAC;AAEH,MAAM,WAAW,eACf,SAAQ,IAAI,CAAC,wBAAwB,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC,EAC/D,YAAY,CAAC,OAAO,YAAY,CAAC;IACnC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,YAAY,CAAC,EAAE,SAAS,CAAC;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,CAAC,CAAC;IACxD,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,GAAG,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IACxC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,GAAG,YAAY,CAAC;CACpC;AAED,eAAO,MAAM,UAAU,2HAkHtB,CAAC"}
|
|
@@ -3,7 +3,7 @@ import { HTMLAttributes, PropsWithChildren } from "react";
|
|
|
3
3
|
declare const label: (props?: ({
|
|
4
4
|
size?: "small" | "medium" | "large" | null | undefined;
|
|
5
5
|
required?: boolean | null | undefined;
|
|
6
|
-
} & import("class-variance-authority/
|
|
6
|
+
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
interface LabelProps extends PropsWithChildren<VariantProps<typeof label>>, Omit<HTMLAttributes<HTMLLabelElement>, 'required'> {
|
|
8
8
|
required?: boolean;
|
|
9
9
|
requiredIndicator?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../v1/components/label/label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1D,QAAA,MAAM,KAAK;;;
|
|
1
|
+
{"version":3,"file":"label.d.ts","sourceRoot":"","sources":["../../../../v1/components/label/label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAI1D,QAAA,MAAM,KAAK;;;8EAeT,CAAC;AAEH,UAAU,UAAW,SAAQ,iBAAiB,CAAC,YAAY,CAAC,OAAO,KAAK,CAAC,CAAC,EACxE,IAAI,CAAC,cAAc,CAAC,gBAAgB,CAAC,EAAE,UAAU,CAAC;IAClD,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,SAAS,EACT,IAAI,EACJ,QAAQ,EACR,iBAAuB,EACvB,OAAO,EACP,GAAG,KAAK,EACT,EAAE,UAAU,2CAmBZ;AAED,YAAY,EAAE,UAAU,EAAE,CAAC"}
|
|
@@ -1,72 +1,26 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var jsxRuntime = require('../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.cjs');
|
|
4
|
-
var index = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
|
|
5
4
|
var React = require('react');
|
|
6
|
-
var
|
|
5
|
+
var index = require('../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.cjs');
|
|
6
|
+
var text = require('../text/text.cjs');
|
|
7
7
|
var link_module = require('./link.module.css.cjs');
|
|
8
8
|
|
|
9
|
-
const
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
3: text_module.default["text-3"],
|
|
25
|
-
4: text_module.default["text-4"],
|
|
26
|
-
5: text_module.default["text-5"],
|
|
27
|
-
6: text_module.default["text-6"],
|
|
28
|
-
7: text_module.default["text-7"],
|
|
29
|
-
8: text_module.default["text-8"],
|
|
30
|
-
9: text_module.default["text-9"],
|
|
31
|
-
10: text_module.default["text-10"],
|
|
32
|
-
},
|
|
33
|
-
weight: {
|
|
34
|
-
bold: text_module.default["text-weight-bold"],
|
|
35
|
-
bolder: text_module.default["text-weight-bolder"],
|
|
36
|
-
normal: text_module.default["text-weight-normal"],
|
|
37
|
-
lighter: text_module.default["text-weight-lighter"],
|
|
38
|
-
100: text_module.default["text-weight-100"],
|
|
39
|
-
200: text_module.default["text-weight-200"],
|
|
40
|
-
300: text_module.default["text-weight-300"],
|
|
41
|
-
400: text_module.default["text-weight-400"],
|
|
42
|
-
500: text_module.default["text-weight-500"],
|
|
43
|
-
600: text_module.default["text-weight-600"],
|
|
44
|
-
700: text_module.default["text-weight-700"],
|
|
45
|
-
800: text_module.default["text-weight-800"],
|
|
46
|
-
900: text_module.default["text-weight-900"],
|
|
47
|
-
},
|
|
48
|
-
underline: {
|
|
49
|
-
true: link_module.default["link-underline"],
|
|
50
|
-
},
|
|
51
|
-
},
|
|
52
|
-
defaultVariants: {
|
|
53
|
-
variant: "accent",
|
|
54
|
-
size: 2,
|
|
55
|
-
weight: 400,
|
|
56
|
-
underline: false,
|
|
57
|
-
},
|
|
58
|
-
});
|
|
59
|
-
const Link = React.forwardRef(({ className, children, href, size, weight, variant, underline, external, download, rel, hrefLang, "aria-label": ariaLabel, ...props }, ref) => {
|
|
60
|
-
const externalProps = external ? {
|
|
61
|
-
target: "_blank",
|
|
62
|
-
rel: "noopener noreferrer",
|
|
63
|
-
"aria-label": ariaLabel || `${children} (opens in new tab)`
|
|
64
|
-
} : {};
|
|
65
|
-
const downloadProps = download ? {
|
|
66
|
-
download: typeof download === "string" ? download : true,
|
|
67
|
-
"aria-label": ariaLabel || `${children} (download)`
|
|
68
|
-
} : {};
|
|
69
|
-
return (jsxRuntime.jsxRuntimeExports.jsx("a", { ref: ref, className: link({ size, weight, variant, underline, className }), href: href, hrefLang: hrefLang, rel: rel, role: "link", ...externalProps, ...downloadProps, ...props, children: children }));
|
|
9
|
+
const Link = React.forwardRef(({ children, className, variant = "accent", size = "small", external, download, ...props }, ref) => {
|
|
10
|
+
const externalProps = external
|
|
11
|
+
? {
|
|
12
|
+
target: "_blank",
|
|
13
|
+
rel: "noopener noreferrer",
|
|
14
|
+
"aria-label": `${children} (opens in new tab)`,
|
|
15
|
+
}
|
|
16
|
+
: {};
|
|
17
|
+
const downloadProps = download
|
|
18
|
+
? {
|
|
19
|
+
download: typeof download === "string" ? download : true,
|
|
20
|
+
"aria-label": `${children} (download)`,
|
|
21
|
+
}
|
|
22
|
+
: {};
|
|
23
|
+
return (jsxRuntime.jsxRuntimeExports.jsx(text.Text, { ref: ref, className: index.cx(link_module.default.link, className), variant: variant, size: size, role: "link", ...externalProps, ...downloadProps, ...props, as: "a", children: children }));
|
|
70
24
|
});
|
|
71
25
|
Link.displayName = "Link";
|
|
72
26
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.cjs","sources":["../../../../v1/components/link/link.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"link.cjs","sources":["../../../../v1/components/link/link.tsx"],"sourcesContent":["import { AnchorHTMLAttributes, forwardRef } from \"react\";\nimport { cx } from \"class-variance-authority\";\nimport { Text, type TextBaseProps } from \"../text\";\nimport styles from \"./link.module.css\";\n\nexport interface LinkProps\n extends TextBaseProps,\n AnchorHTMLAttributes<HTMLAnchorElement> {\n href: string;\n external?: boolean;\n download?: boolean | string;\n}\n\nexport const Link = forwardRef<HTMLAnchorElement, LinkProps>(\n (\n {\n children,\n className,\n variant = \"accent\",\n size = \"small\",\n external,\n download,\n ...props\n },\n ref,\n ) => {\n const externalProps = external\n ? {\n target: \"_blank\",\n rel: \"noopener noreferrer\",\n \"aria-label\": `${children} (opens in new tab)`,\n }\n : {};\n\n const downloadProps = download\n ? {\n download: typeof download === \"string\" ? download : true,\n \"aria-label\": `${children} (download)`,\n }\n : {};\n\n return (\n <Text\n ref={ref}\n className={cx(styles.link, className)}\n variant={variant}\n size={size}\n role=\"link\"\n {...externalProps}\n {...downloadProps}\n {...props}\n as=\"a\">\n {children}\n </Text>\n );\n },\n);\n\nLink.displayName = \"Link\";\n"],"names":["forwardRef","_jsx","Text","cx","styles"],"mappings":";;;;;;;;AAaO,MAAM,IAAI,GAAGA,gBAAU,CAC5B,CACE,EACE,QAAQ,EACR,SAAS,EACT,OAAO,GAAG,QAAQ,EAClB,IAAI,GAAG,OAAO,EACd,QAAQ,EACR,QAAQ,EACR,GAAG,KAAK,EACT,EACD,GAAG,KACD;IACF,MAAM,aAAa,GAAG,QAAQ;AAC5B,UAAE;AACE,YAAA,MAAM,EAAE,QAAQ;AAChB,YAAA,GAAG,EAAE,qBAAqB;YAC1B,YAAY,EAAE,CAAG,EAAA,QAAQ,CAAqB,mBAAA,CAAA;AAC/C,SAAA;UACD,EAAE,CAAC;IAEP,MAAM,aAAa,GAAG,QAAQ;AAC5B,UAAE;AACE,YAAA,QAAQ,EAAE,OAAO,QAAQ,KAAK,QAAQ,GAAG,QAAQ,GAAG,IAAI;YACxD,YAAY,EAAE,CAAG,EAAA,QAAQ,CAAa,WAAA,CAAA;AACvC,SAAA;UACD,EAAE,CAAC;IAEP,QACEC,iCAACC,SAAI,EAAA,EACH,GAAG,EAAE,GAAG,EACR,SAAS,EAAEC,QAAE,CAACC,mBAAM,CAAC,IAAI,EAAE,SAAS,CAAC,EACrC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,IAAI,EAAC,MAAM,EAAA,GACP,aAAa,EACb,GAAA,aAAa,KACb,KAAK,EACT,EAAE,EAAC,GAAG,YACL,QAAQ,EAAA,CACJ,EACP;AACJ,CAAC,EACD;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM;;;;"}
|
|
@@ -1,18 +1,9 @@
|
|
|
1
|
-
import { type VariantProps } from "class-variance-authority";
|
|
2
1
|
import { AnchorHTMLAttributes } from "react";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
size?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | null | undefined;
|
|
6
|
-
weight?: "bold" | "bolder" | "normal" | "lighter" | 400 | 100 | 200 | 300 | 500 | 600 | 700 | 800 | 900 | null | undefined;
|
|
7
|
-
underline?: boolean | null | undefined;
|
|
8
|
-
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
|
9
|
-
export interface LinkProps extends AnchorHTMLAttributes<HTMLAnchorElement>, VariantProps<typeof link> {
|
|
2
|
+
import { type TextBaseProps } from "../text";
|
|
3
|
+
export interface LinkProps extends TextBaseProps, AnchorHTMLAttributes<HTMLAnchorElement> {
|
|
10
4
|
href: string;
|
|
11
5
|
external?: boolean;
|
|
12
6
|
download?: boolean | string;
|
|
13
|
-
rel?: string;
|
|
14
|
-
hrefLang?: string;
|
|
15
7
|
}
|
|
16
8
|
export declare const Link: import("react").ForwardRefExoticComponent<LinkProps & import("react").RefAttributes<HTMLAnchorElement>>;
|
|
17
|
-
export {};
|
|
18
9
|
//# sourceMappingURL=link.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../v1/components/link/link.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["../../../../v1/components/link/link.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAc,MAAM,OAAO,CAAC;AAEzD,OAAO,EAAQ,KAAK,aAAa,EAAE,MAAM,SAAS,CAAC;AAGnD,MAAM,WAAW,SACf,SAAQ,aAAa,EACnB,oBAAoB,CAAC,iBAAiB,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,IAAI,yGA2ChB,CAAC"}
|
|
@@ -1,70 +1,24 @@
|
|
|
1
1
|
import { j as jsxRuntimeExports } from '../../node_modules/.pnpm/react@18.2.0/node_modules/react/jsx-runtime.js';
|
|
2
|
-
import { cva } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
|
|
3
2
|
import { forwardRef } from 'react';
|
|
4
|
-
import
|
|
3
|
+
import { cx } from '../../node_modules/.pnpm/class-variance-authority@0.7.1/node_modules/class-variance-authority/dist/index.js';
|
|
4
|
+
import { Text } from '../text/text.js';
|
|
5
5
|
import styles from './link.module.css.js';
|
|
6
6
|
|
|
7
|
-
const
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
3: textStyles["text-3"],
|
|
23
|
-
4: textStyles["text-4"],
|
|
24
|
-
5: textStyles["text-5"],
|
|
25
|
-
6: textStyles["text-6"],
|
|
26
|
-
7: textStyles["text-7"],
|
|
27
|
-
8: textStyles["text-8"],
|
|
28
|
-
9: textStyles["text-9"],
|
|
29
|
-
10: textStyles["text-10"],
|
|
30
|
-
},
|
|
31
|
-
weight: {
|
|
32
|
-
bold: textStyles["text-weight-bold"],
|
|
33
|
-
bolder: textStyles["text-weight-bolder"],
|
|
34
|
-
normal: textStyles["text-weight-normal"],
|
|
35
|
-
lighter: textStyles["text-weight-lighter"],
|
|
36
|
-
100: textStyles["text-weight-100"],
|
|
37
|
-
200: textStyles["text-weight-200"],
|
|
38
|
-
300: textStyles["text-weight-300"],
|
|
39
|
-
400: textStyles["text-weight-400"],
|
|
40
|
-
500: textStyles["text-weight-500"],
|
|
41
|
-
600: textStyles["text-weight-600"],
|
|
42
|
-
700: textStyles["text-weight-700"],
|
|
43
|
-
800: textStyles["text-weight-800"],
|
|
44
|
-
900: textStyles["text-weight-900"],
|
|
45
|
-
},
|
|
46
|
-
underline: {
|
|
47
|
-
true: styles["link-underline"],
|
|
48
|
-
},
|
|
49
|
-
},
|
|
50
|
-
defaultVariants: {
|
|
51
|
-
variant: "accent",
|
|
52
|
-
size: 2,
|
|
53
|
-
weight: 400,
|
|
54
|
-
underline: false,
|
|
55
|
-
},
|
|
56
|
-
});
|
|
57
|
-
const Link = forwardRef(({ className, children, href, size, weight, variant, underline, external, download, rel, hrefLang, "aria-label": ariaLabel, ...props }, ref) => {
|
|
58
|
-
const externalProps = external ? {
|
|
59
|
-
target: "_blank",
|
|
60
|
-
rel: "noopener noreferrer",
|
|
61
|
-
"aria-label": ariaLabel || `${children} (opens in new tab)`
|
|
62
|
-
} : {};
|
|
63
|
-
const downloadProps = download ? {
|
|
64
|
-
download: typeof download === "string" ? download : true,
|
|
65
|
-
"aria-label": ariaLabel || `${children} (download)`
|
|
66
|
-
} : {};
|
|
67
|
-
return (jsxRuntimeExports.jsx("a", { ref: ref, className: link({ size, weight, variant, underline, className }), href: href, hrefLang: hrefLang, rel: rel, role: "link", ...externalProps, ...downloadProps, ...props, children: children }));
|
|
7
|
+
const Link = forwardRef(({ children, className, variant = "accent", size = "small", external, download, ...props }, ref) => {
|
|
8
|
+
const externalProps = external
|
|
9
|
+
? {
|
|
10
|
+
target: "_blank",
|
|
11
|
+
rel: "noopener noreferrer",
|
|
12
|
+
"aria-label": `${children} (opens in new tab)`,
|
|
13
|
+
}
|
|
14
|
+
: {};
|
|
15
|
+
const downloadProps = download
|
|
16
|
+
? {
|
|
17
|
+
download: typeof download === "string" ? download : true,
|
|
18
|
+
"aria-label": `${children} (download)`,
|
|
19
|
+
}
|
|
20
|
+
: {};
|
|
21
|
+
return (jsxRuntimeExports.jsx(Text, { ref: ref, className: cx(styles.link, className), variant: variant, size: size, role: "link", ...externalProps, ...downloadProps, ...props, as: "a", children: children }));
|
|
68
22
|
});
|
|
69
23
|
Link.displayName = "Link";
|
|
70
24
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"link.js","sources":["../../../../v1/components/link/link.tsx"],"sourcesContent":["import {
|
|
1
|
+
{"version":3,"file":"link.js","sources":["../../../../v1/components/link/link.tsx"],"sourcesContent":["import { AnchorHTMLAttributes, forwardRef } from \"react\";\nimport { cx } from \"class-variance-authority\";\nimport { Text, type TextBaseProps } from \"../text\";\nimport styles from \"./link.module.css\";\n\nexport interface LinkProps\n extends TextBaseProps,\n AnchorHTMLAttributes<HTMLAnchorElement> {\n href: string;\n external?: boolean;\n download?: boolean | string;\n}\n\nexport const Link = forwardRef<HTMLAnchorElement, LinkProps>(\n (\n {\n children,\n className,\n variant = \"accent\",\n size = \"small\",\n external,\n download,\n ...props\n },\n ref,\n ) => {\n const externalProps = external\n ? {\n target: \"_blank\",\n rel: \"noopener noreferrer\",\n \"aria-label\": `${children} (opens in new tab)`,\n }\n : {};\n\n const downloadProps = download\n ? {\n download: typeof download === \"string\" ? download : true,\n \"aria-label\": `${children} (download)`,\n }\n : {};\n\n return (\n <Text\n ref={ref}\n className={cx(styles.link, className)}\n variant={variant}\n size={size}\n role=\"link\"\n {...externalProps}\n {...downloadProps}\n {...props}\n as=\"a\">\n {children}\n </Text>\n );\n },\n);\n\nLink.displayName = \"Link\";\n"],"names":["_jsx"],"mappings":";;;;;;AAaO,MAAM,IAAI,GAAG,UAAU,CAC5B,CACE,EACE,QAAQ,EACR,SAAS,EACT,OAAO,GAAG,QAAQ,EAClB,IAAI,GAAG,OAAO,EACd,QAAQ,EACR,QAAQ,EACR,GAAG,KAAK,EACT,EACD,GAAG,KACD;IACF,MAAM,aAAa,GAAG,QAAQ;AAC5B,UAAE;AACE,YAAA,MAAM,EAAE,QAAQ;AAChB,YAAA,GAAG,EAAE,qBAAqB;YAC1B,YAAY,EAAE,CAAG,EAAA,QAAQ,CAAqB,mBAAA,CAAA;AAC/C,SAAA;UACD,EAAE,CAAC;IAEP,MAAM,aAAa,GAAG,QAAQ;AAC5B,UAAE;AACE,YAAA,QAAQ,EAAE,OAAO,QAAQ,KAAK,QAAQ,GAAG,QAAQ,GAAG,IAAI;YACxD,YAAY,EAAE,CAAG,EAAA,QAAQ,CAAa,WAAA,CAAA;AACvC,SAAA;UACD,EAAE,CAAC;IAEP,QACEA,sBAAC,IAAI,EAAA,EACH,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC,EACrC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,IAAI,EACV,IAAI,EAAC,MAAM,EAAA,GACP,aAAa,EACb,GAAA,aAAa,KACb,KAAK,EACT,EAAE,EAAC,GAAG,YACL,QAAQ,EAAA,CACJ,EACP;AACJ,CAAC,EACD;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM;;;;"}
|