@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.
Files changed (156) hide show
  1. package/dist/avatar/avatar.d.ts +3 -3
  2. package/dist/avatar/avatar.d.ts.map +1 -1
  3. package/dist/badge/badge.d.ts +1 -1
  4. package/dist/body/body.d.ts +1 -1
  5. package/dist/body/body.d.ts.map +1 -1
  6. package/dist/box/box.d.ts +1 -1
  7. package/dist/box/box.d.ts.map +1 -1
  8. package/dist/button/button.d.ts +1 -1
  9. package/dist/checkbox/checkbox.d.ts +2 -2
  10. package/dist/checkbox/checkbox.d.ts.map +1 -1
  11. package/dist/container/container.d.ts +1 -1
  12. package/dist/container/container.d.ts.map +1 -1
  13. package/dist/dialog/dialog.d.ts +2 -2
  14. package/dist/dialog/dialog.d.ts.map +1 -1
  15. package/dist/display/display.d.ts +1 -1
  16. package/dist/display/display.d.ts.map +1 -1
  17. package/dist/dropdown-menu/dropdown-menu.d.ts +5 -5
  18. package/dist/emptystate/emptystate.d.ts +1 -1
  19. package/dist/emptystate/emptystate.d.ts.map +1 -1
  20. package/dist/errorstate/errorstate.d.ts +1 -1
  21. package/dist/errorstate/errorstate.d.ts.map +1 -1
  22. package/dist/flex/flex.d.ts +1 -1
  23. package/dist/grid/grid.d.ts +1 -1
  24. package/dist/grid/grid.d.ts.map +1 -1
  25. package/dist/headline/headline.d.ts +1 -1
  26. package/dist/headline/headline.d.ts.map +1 -1
  27. package/dist/image/image.d.ts +1 -1
  28. package/dist/image/image.d.ts.map +1 -1
  29. package/dist/inputfield/inputfield.d.ts +1 -1
  30. package/dist/inputfield/inputfield.d.ts.map +1 -1
  31. package/dist/label/label.d.ts +1 -1
  32. package/dist/label/label.d.ts.map +1 -1
  33. package/dist/link/link.d.ts +1 -1
  34. package/dist/link/link.d.ts.map +1 -1
  35. 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
  36. 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
  37. 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
  38. 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
  39. package/dist/radio/radio.d.ts +2 -2
  40. package/dist/radio/radio.d.ts.map +1 -1
  41. package/dist/scroll-area/scrollarea.d.ts +2 -2
  42. package/dist/select/select.d.ts +2 -2
  43. package/dist/separator/separator.d.ts +1 -1
  44. package/dist/separator/separator.d.ts.map +1 -1
  45. package/dist/sheet/sheet.d.ts +2 -2
  46. package/dist/sheet/sheet.d.ts.map +1 -1
  47. package/dist/sidebar/sidebar.d.ts +3 -3
  48. package/dist/sidebar/sidebar.d.ts.map +1 -1
  49. package/dist/style.css +1 -1
  50. package/dist/switch/switch.d.ts +2 -2
  51. package/dist/switch/switch.d.ts.map +1 -1
  52. package/dist/table/table.d.ts +7 -7
  53. package/dist/tabs/tabs.d.ts +4 -4
  54. package/dist/tabs/tabs.d.ts.map +1 -1
  55. package/dist/text/text.d.ts +1 -1
  56. package/dist/text/text.d.ts.map +1 -1
  57. package/dist/textarea/textarea.d.ts +2 -2
  58. package/dist/textarea/textarea.d.ts.map +1 -1
  59. package/dist/textfield/textfield.d.ts +2 -2
  60. package/dist/textfield/textfield.d.ts.map +1 -1
  61. package/dist/title/title.d.ts +1 -1
  62. package/dist/title/title.d.ts.map +1 -1
  63. package/dist/toggle-group/togglegroup.d.ts +2 -2
  64. package/dist/toggle-group/togglegroup.d.ts.map +1 -1
  65. package/dist/v1/components/announcement-bar/announcement-bar.d.ts +1 -1
  66. package/dist/v1/components/announcement-bar/announcement-bar.d.ts.map +1 -1
  67. package/dist/v1/components/avatar/avatar.d.ts +1 -1
  68. package/dist/v1/components/avatar/avatar.d.ts.map +1 -1
  69. package/dist/v1/components/badge/badge.d.ts +1 -1
  70. package/dist/v1/components/badge/badge.d.ts.map +1 -1
  71. package/dist/v1/components/box/box.d.ts +1 -1
  72. package/dist/v1/components/box/box.d.ts.map +1 -1
  73. package/dist/v1/components/breadcrumb/breadcrumb.d.ts +1 -1
  74. package/dist/v1/components/button/button.d.ts +1 -1
  75. package/dist/v1/components/callout/callout.d.ts +1 -1
  76. package/dist/v1/components/callout/callout.d.ts.map +1 -1
  77. package/dist/v1/components/checkbox/checkbox.d.ts +1 -1
  78. package/dist/v1/components/checkbox/checkbox.d.ts.map +1 -1
  79. package/dist/v1/components/chip/chip.d.ts +1 -1
  80. package/dist/v1/components/chip/chip.d.ts.map +1 -1
  81. package/dist/v1/components/container/container.d.ts +1 -1
  82. package/dist/v1/components/container/container.d.ts.map +1 -1
  83. package/dist/v1/components/data-table/data-table.cjs +29 -6
  84. package/dist/v1/components/data-table/data-table.cjs.map +1 -1
  85. package/dist/v1/components/data-table/data-table.d.ts.map +1 -1
  86. package/dist/v1/components/data-table/data-table.js +30 -7
  87. package/dist/v1/components/data-table/data-table.js.map +1 -1
  88. package/dist/v1/components/dialog/dialog.d.ts +1 -1
  89. package/dist/v1/components/dialog/dialog.d.ts.map +1 -1
  90. package/dist/v1/components/dropdown-menu/dropdown-menu.d.ts +5 -5
  91. package/dist/v1/components/flex/flex.d.ts +1 -1
  92. package/dist/v1/components/headline/headline.cjs +8 -4
  93. package/dist/v1/components/headline/headline.cjs.map +1 -1
  94. package/dist/v1/components/headline/headline.d.ts +20 -4
  95. package/dist/v1/components/headline/headline.d.ts.map +1 -1
  96. package/dist/v1/components/headline/headline.js +8 -4
  97. package/dist/v1/components/headline/headline.js.map +1 -1
  98. package/dist/v1/components/headline/headline.module.css.cjs +1 -1
  99. package/dist/v1/components/headline/headline.module.css.js +1 -1
  100. package/dist/v1/components/headline/index.d.ts +1 -1
  101. package/dist/v1/components/headline/index.d.ts.map +1 -1
  102. package/dist/v1/components/icon-button/icon-button.d.ts +1 -1
  103. package/dist/v1/components/icon-button/icon-button.d.ts.map +1 -1
  104. package/dist/v1/components/image/image.d.ts +1 -1
  105. package/dist/v1/components/image/image.d.ts.map +1 -1
  106. package/dist/v1/components/indicator/indicator.d.ts +1 -1
  107. package/dist/v1/components/indicator/indicator.d.ts.map +1 -1
  108. package/dist/v1/components/input-field/input-field.d.ts +1 -1
  109. package/dist/v1/components/input-field/input-field.d.ts.map +1 -1
  110. package/dist/v1/components/label/label.d.ts +1 -1
  111. package/dist/v1/components/label/label.d.ts.map +1 -1
  112. package/dist/v1/components/link/link.cjs +17 -63
  113. package/dist/v1/components/link/link.cjs.map +1 -1
  114. package/dist/v1/components/link/link.d.ts +2 -11
  115. package/dist/v1/components/link/link.d.ts.map +1 -1
  116. package/dist/v1/components/link/link.js +17 -63
  117. package/dist/v1/components/link/link.js.map +1 -1
  118. package/dist/v1/components/link/link.module.css.cjs +1 -1
  119. package/dist/v1/components/link/link.module.css.js +1 -1
  120. package/dist/v1/components/list/list.d.ts +1 -1
  121. package/dist/v1/components/list/list.d.ts.map +1 -1
  122. package/dist/v1/components/radio/radio.d.ts +1 -1
  123. package/dist/v1/components/radio/radio.d.ts.map +1 -1
  124. package/dist/v1/components/select/select.d.ts +4 -5
  125. package/dist/v1/components/select/select.d.ts.map +1 -1
  126. package/dist/v1/components/sheet/sheet.d.ts +2 -2
  127. package/dist/v1/components/sheet/sheet.d.ts.map +1 -1
  128. package/dist/v1/components/side-panel/side-panel.d.ts +1 -1
  129. package/dist/v1/components/side-panel/side-panel.d.ts.map +1 -1
  130. package/dist/v1/components/slider/slider.d.ts +1 -1
  131. package/dist/v1/components/slider/slider.d.ts.map +1 -1
  132. package/dist/v1/components/spinner/spinner.d.ts +1 -1
  133. package/dist/v1/components/spinner/spinner.d.ts.map +1 -1
  134. package/dist/v1/components/table/table.d.ts +4 -4
  135. package/dist/v1/components/tabs/tabs.d.ts +1 -1
  136. package/dist/v1/components/tabs/tabs.d.ts.map +1 -1
  137. package/dist/v1/components/text/index.d.ts +1 -1
  138. package/dist/v1/components/text/index.d.ts.map +1 -1
  139. package/dist/v1/components/text/text.cjs +61 -7
  140. package/dist/v1/components/text/text.cjs.map +1 -1
  141. package/dist/v1/components/text/text.d.ts +40 -8
  142. package/dist/v1/components/text/text.d.ts.map +1 -1
  143. package/dist/v1/components/text/text.js +92 -39
  144. package/dist/v1/components/text/text.js.map +1 -1
  145. package/dist/v1/components/text/text.module.css.cjs +2 -2
  146. package/dist/v1/components/text/text.module.css.js +2 -2
  147. package/dist/v1/components/textfield/textfield.d.ts +2 -2
  148. package/dist/v1/components/textfield/textfield.d.ts.map +1 -1
  149. package/dist/v1/components/tooltip/tooltip.d.ts +1 -1
  150. package/dist/v1/components/tooltip/tooltip.d.ts.map +1 -1
  151. 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
  152. 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
  153. 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
  154. 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
  155. package/dist/v1/style.css +1 -1
  156. 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/dist/types").ClassProp | undefined) => string;
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,yFAA4B,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,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K,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/dist/types").ClassProp | undefined) => string> & {
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/dist/types").ClassProp | undefined) => string> & {
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/dist/types").ClassProp | undefined) => string> & {
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/dist/types").ClassProp | undefined) => string> & {
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/dist/types").ClassProp | undefined) => string> & {
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/dist/types").ClassProp) | undefined) => string> & {
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: "small",
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", children, ...props }, ref) => {
31
- return (jsxRuntime.jsxRuntimeExports.jsx(Component, { ref: ref, className: headline({ size, align, truncate, className }), ...props, children: children }));
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 }\n },\n defaultVariants: {\n size: \"small\",\n align: \"left\",\n truncate: false,\n },\n});\n\ntype HeadlineProps = HTMLAttributes<HTMLHeadingElement> &\n VariantProps<typeof headline> & {\n as?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n \"aria-label\"?: string;\n };\n\nexport const Headline = forwardRef<HTMLHeadingElement, HeadlineProps>(\n ({ className, size, align, truncate, as: Component = \"h2\", children, ...props }, ref) => {\n return (\n <Component\n ref={ref}\n className={headline({ size, align, truncate, className })}\n {...props}\n >\n {children}\n </Component>\n );\n }\n);\n\nHeadline.displayName = \"Headline\"; "],"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,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,OAAO;AACb,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,QAAQ,EAAE,KAAK;AAChB,KAAA;AACF,CAAA,CAAC,CAAC;AAQI,MAAM,QAAQ,GAAGC,gBAAU,CAChC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,GAAG,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;AACtF,IAAA,QACEC,gCAAA,CAAC,SAAS,EAAA,EACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EACrD,GAAA,KAAK,EAER,QAAA,EAAA,QAAQ,EACC,CAAA,EACZ;AACJ,CAAC,EACD;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
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
- export declare const Headline: import("react").ForwardRefExoticComponent<HTMLAttributes<HTMLHeadingElement> & VariantProps<(props?: ({
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/dist/types").ClassProp) | undefined) => string> & {
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;AAiCnD,eAAO,MAAM,QAAQ;;;;;;;sDAYpB,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: "small",
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", children, ...props }, ref) => {
29
- return (jsxRuntimeExports.jsx(Component, { ref: ref, className: headline({ size, align, truncate, className }), ...props, children: children }));
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 }\n },\n defaultVariants: {\n size: \"small\",\n align: \"left\",\n truncate: false,\n },\n});\n\ntype HeadlineProps = HTMLAttributes<HTMLHeadingElement> &\n VariantProps<typeof headline> & {\n as?: \"h1\" | \"h2\" | \"h3\" | \"h4\" | \"h5\" | \"h6\";\n \"aria-label\"?: string;\n };\n\nexport const Headline = forwardRef<HTMLHeadingElement, HeadlineProps>(\n ({ className, size, align, truncate, as: Component = \"h2\", children, ...props }, ref) => {\n return (\n <Component\n ref={ref}\n className={headline({ size, align, truncate, className })}\n {...props}\n >\n {children}\n </Component>\n );\n }\n);\n\nHeadline.displayName = \"Headline\"; "],"names":["_jsx"],"mappings":";;;;;AAKA,MAAM,QAAQ,GAAG,GAAG,CAAC,MAAM,CAAC,QAAQ,EAAE;AACpC,IAAA,QAAQ,EAAE;AACR,QAAA,IAAI,EAAE;AACJ,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,OAAO;AACb,QAAA,KAAK,EAAE,MAAM;AACb,QAAA,QAAQ,EAAE,KAAK;AAChB,KAAA;AACF,CAAA,CAAC,CAAC;AAQI,MAAM,QAAQ,GAAG,UAAU,CAChC,CAAC,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,EAAE,EAAE,SAAS,GAAG,IAAI,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,GAAG,KAAI;AACtF,IAAA,QACEA,qBAAA,CAAC,SAAS,EAAA,EACR,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,QAAQ,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EACrD,GAAA,KAAK,EAER,QAAA,EAAA,QAAQ,EACC,CAAA,EACZ;AACJ,CAAC,EACD;AAEF,QAAQ,CAAC,WAAW,GAAG,UAAU;;;;"}
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,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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 { Headline } from "./headline";
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,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC"}
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/dist/types").ClassProp) | undefined) => string;
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;;mFAYd,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"}
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/dist/types").ClassProp) | undefined) => string;
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;;;mFAkBT,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"}
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/dist/types").ClassProp) | undefined) => string;
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;;mFAab,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"}
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/dist/types").ClassProp) | undefined) => string;
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;;;mFAehB,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"}
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/dist/types").ClassProp) | undefined) => string;
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;;;mFAeT,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
+ {"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 text_module = require('../text/text.module.css.cjs');
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 link = index.cva([link_module.default.link], {
10
- variants: {
11
- variant: {
12
- primary: text_module.default["text-primary"],
13
- secondary: text_module.default["text-secondary"],
14
- tertiary: text_module.default["text-tertiary"],
15
- emphasis: text_module.default["text-emphasis"],
16
- accent: text_module.default["text-accent"],
17
- attention: text_module.default["text-attention"],
18
- danger: text_module.default["text-danger"],
19
- success: text_module.default["text-success"],
20
- },
21
- size: {
22
- 1: text_module.default["text-1"],
23
- 2: text_module.default["text-2"],
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 { cva, type VariantProps } from \"class-variance-authority\";\nimport { AnchorHTMLAttributes, forwardRef } from \"react\";\n\nimport textStyles from \"../text/text.module.css\";\nimport styles from \"./link.module.css\";\n\nconst link = cva([styles.link], {\n variants: {\n variant: {\n primary: textStyles[\"text-primary\"],\n secondary: textStyles[\"text-secondary\"],\n tertiary: textStyles[\"text-tertiary\"],\n emphasis: textStyles[\"text-emphasis\"],\n accent: textStyles[\"text-accent\"],\n attention: textStyles[\"text-attention\"],\n danger: textStyles[\"text-danger\"],\n success: textStyles[\"text-success\"],\n },\n size: {\n 1: textStyles[\"text-1\"],\n 2: textStyles[\"text-2\"],\n 3: textStyles[\"text-3\"],\n 4: textStyles[\"text-4\"],\n 5: textStyles[\"text-5\"],\n 6: textStyles[\"text-6\"],\n 7: textStyles[\"text-7\"],\n 8: textStyles[\"text-8\"],\n 9: textStyles[\"text-9\"],\n 10: textStyles[\"text-10\"],\n },\n weight: {\n bold: textStyles[\"text-weight-bold\"],\n bolder: textStyles[\"text-weight-bolder\"],\n normal: textStyles[\"text-weight-normal\"],\n lighter: textStyles[\"text-weight-lighter\"],\n 100: textStyles[\"text-weight-100\"],\n 200: textStyles[\"text-weight-200\"],\n 300: textStyles[\"text-weight-300\"],\n 400: textStyles[\"text-weight-400\"],\n 500: textStyles[\"text-weight-500\"],\n 600: textStyles[\"text-weight-600\"],\n 700: textStyles[\"text-weight-700\"],\n 800: textStyles[\"text-weight-800\"],\n 900: textStyles[\"text-weight-900\"],\n },\n underline: {\n true: styles[\"link-underline\"],\n },\n },\n defaultVariants: {\n variant: \"accent\",\n size: 2,\n weight: 400,\n underline: false,\n },\n});\n\nexport interface LinkProps\n extends AnchorHTMLAttributes<HTMLAnchorElement>,\n VariantProps<typeof link> {\n href: string;\n external?: boolean;\n download?: boolean | string;\n rel?: string;\n hrefLang?: string;\n}\n\nexport const Link = forwardRef<HTMLAnchorElement, LinkProps>(\n (\n {\n className,\n children,\n href,\n size,\n weight,\n variant,\n underline,\n external,\n download,\n rel,\n hrefLang,\n \"aria-label\": ariaLabel,\n ...props\n },\n ref\n ) => {\n const externalProps = external ? {\n target: \"_blank\",\n rel: \"noopener noreferrer\",\n \"aria-label\": ariaLabel || `${children} (opens in new tab)`\n } : {};\n\n const downloadProps = download ? {\n download: typeof download === \"string\" ? download : true,\n \"aria-label\": ariaLabel || `${children} (download)`\n } : {};\n\n return (\n <a\n ref={ref}\n className={link({ size, weight, variant, underline, className })}\n href={href}\n hrefLang={hrefLang}\n rel={rel}\n role=\"link\"\n {...externalProps}\n {...downloadProps}\n {...props}\n >\n {children}\n </a>\n );\n }\n);\n\nLink.displayName = \"Link\"; "],"names":["cva","styles","textStyles","forwardRef","_jsx"],"mappings":";;;;;;;;AAMA,MAAM,IAAI,GAAGA,SAAG,CAAC,CAACC,mBAAM,CAAC,IAAI,CAAC,EAAE;AAC9B,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAEC,mBAAU,CAAC,cAAc,CAAC;AACnC,YAAA,SAAS,EAAEA,mBAAU,CAAC,gBAAgB,CAAC;AACvC,YAAA,QAAQ,EAAEA,mBAAU,CAAC,eAAe,CAAC;AACrC,YAAA,QAAQ,EAAEA,mBAAU,CAAC,eAAe,CAAC;AACrC,YAAA,MAAM,EAAEA,mBAAU,CAAC,aAAa,CAAC;AACjC,YAAA,SAAS,EAAEA,mBAAU,CAAC,gBAAgB,CAAC;AACvC,YAAA,MAAM,EAAEA,mBAAU,CAAC,aAAa,CAAC;AACjC,YAAA,OAAO,EAAEA,mBAAU,CAAC,cAAc,CAAC;AACpC,SAAA;AACD,QAAA,IAAI,EAAE;AACJ,YAAA,CAAC,EAAEA,mBAAU,CAAC,QAAQ,CAAC;AACvB,YAAA,CAAC,EAAEA,mBAAU,CAAC,QAAQ,CAAC;AACvB,YAAA,CAAC,EAAEA,mBAAU,CAAC,QAAQ,CAAC;AACvB,YAAA,CAAC,EAAEA,mBAAU,CAAC,QAAQ,CAAC;AACvB,YAAA,CAAC,EAAEA,mBAAU,CAAC,QAAQ,CAAC;AACvB,YAAA,CAAC,EAAEA,mBAAU,CAAC,QAAQ,CAAC;AACvB,YAAA,CAAC,EAAEA,m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,EACE,SAAS,EACT,QAAQ,EACR,IAAI,EACJ,IAAI,EACJ,MAAM,EACN,OAAO,EACP,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,GAAG,EACH,QAAQ,EACR,YAAY,EAAE,SAAS,EACvB,GAAG,KAAK,EACT,EACD,GAAG,KACD;AACF,IAAA,MAAM,aAAa,GAAG,QAAQ,GAAG;AAC/B,QAAA,MAAM,EAAE,QAAQ;AAChB,QAAA,GAAG,EAAE,qBAAqB;AAC1B,QAAA,YAAY,EAAE,SAAS,IAAI,CAAA,EAAG,QAAQ,CAAqB,mBAAA,CAAA;KAC5D,GAAG,EAAE,CAAC;AAEP,IAAA,MAAM,aAAa,GAAG,QAAQ,GAAG;AAC/B,QAAA,QAAQ,EAAE,OAAO,QAAQ,KAAK,QAAQ,GAAG,QAAQ,GAAG,IAAI;AACxD,QAAA,YAAY,EAAE,SAAS,IAAI,CAAA,EAAG,QAAQ,CAAa,WAAA,CAAA;KACpD,GAAG,EAAE,CAAC;IAEP,QACEC,wCACE,GAAG,EAAE,GAAG,EACR,SAAS,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,EAChE,IAAI,EAAE,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,GAAG,EAAE,GAAG,EACR,IAAI,EAAC,MAAM,EACP,GAAA,aAAa,KACb,aAAa,EAAA,GACb,KAAK,EAER,QAAA,EAAA,QAAQ,EACP,CAAA,EACJ;AACJ,CAAC,EACD;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM;;;;"}
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
- declare const link: (props?: ({
4
- variant?: "primary" | "secondary" | "tertiary" | "emphasis" | "accent" | "attention" | "danger" | "success" | null | undefined;
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,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,EAAE,oBAAoB,EAAc,MAAM,OAAO,CAAC;AAKzD,QAAA,MAAM,IAAI;;;;;mFAiDR,CAAC;AAEH,MAAM,WAAW,SACf,SAAQ,oBAAoB,CAAC,iBAAiB,CAAC,EAC7C,YAAY,CAAC,OAAO,IAAI,CAAC;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,QAAQ,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;IAC5B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,eAAO,MAAM,IAAI,yGA8ChB,CAAC"}
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 textStyles from '../text/text.module.css.js';
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 link = cva([styles.link], {
8
- variants: {
9
- variant: {
10
- primary: textStyles["text-primary"],
11
- secondary: textStyles["text-secondary"],
12
- tertiary: textStyles["text-tertiary"],
13
- emphasis: textStyles["text-emphasis"],
14
- accent: textStyles["text-accent"],
15
- attention: textStyles["text-attention"],
16
- danger: textStyles["text-danger"],
17
- success: textStyles["text-success"],
18
- },
19
- size: {
20
- 1: textStyles["text-1"],
21
- 2: textStyles["text-2"],
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 { cva, type VariantProps } from \"class-variance-authority\";\nimport { AnchorHTMLAttributes, forwardRef } from \"react\";\n\nimport textStyles from \"../text/text.module.css\";\nimport styles from \"./link.module.css\";\n\nconst link = cva([styles.link], {\n variants: {\n variant: {\n primary: textStyles[\"text-primary\"],\n secondary: textStyles[\"text-secondary\"],\n tertiary: textStyles[\"text-tertiary\"],\n emphasis: textStyles[\"text-emphasis\"],\n accent: textStyles[\"text-accent\"],\n attention: textStyles[\"text-attention\"],\n danger: textStyles[\"text-danger\"],\n success: textStyles[\"text-success\"],\n },\n size: {\n 1: textStyles[\"text-1\"],\n 2: textStyles[\"text-2\"],\n 3: textStyles[\"text-3\"],\n 4: textStyles[\"text-4\"],\n 5: textStyles[\"text-5\"],\n 6: textStyles[\"text-6\"],\n 7: textStyles[\"text-7\"],\n 8: textStyles[\"text-8\"],\n 9: textStyles[\"text-9\"],\n 10: textStyles[\"text-10\"],\n },\n weight: {\n bold: textStyles[\"text-weight-bold\"],\n bolder: textStyles[\"text-weight-bolder\"],\n normal: textStyles[\"text-weight-normal\"],\n lighter: textStyles[\"text-weight-lighter\"],\n 100: textStyles[\"text-weight-100\"],\n 200: textStyles[\"text-weight-200\"],\n 300: textStyles[\"text-weight-300\"],\n 400: textStyles[\"text-weight-400\"],\n 500: textStyles[\"text-weight-500\"],\n 600: textStyles[\"text-weight-600\"],\n 700: textStyles[\"text-weight-700\"],\n 800: textStyles[\"text-weight-800\"],\n 900: textStyles[\"text-weight-900\"],\n },\n underline: {\n true: styles[\"link-underline\"],\n },\n },\n defaultVariants: {\n variant: \"accent\",\n size: 2,\n weight: 400,\n underline: false,\n },\n});\n\nexport interface LinkProps\n extends AnchorHTMLAttributes<HTMLAnchorElement>,\n VariantProps<typeof link> {\n href: string;\n external?: boolean;\n download?: boolean | string;\n rel?: string;\n hrefLang?: string;\n}\n\nexport const Link = forwardRef<HTMLAnchorElement, LinkProps>(\n (\n {\n className,\n children,\n href,\n size,\n weight,\n variant,\n underline,\n external,\n download,\n rel,\n hrefLang,\n \"aria-label\": ariaLabel,\n ...props\n },\n ref\n ) => {\n const externalProps = external ? {\n target: \"_blank\",\n rel: \"noopener noreferrer\",\n \"aria-label\": ariaLabel || `${children} (opens in new tab)`\n } : {};\n\n const downloadProps = download ? {\n download: typeof download === \"string\" ? download : true,\n \"aria-label\": ariaLabel || `${children} (download)`\n } : {};\n\n return (\n <a\n ref={ref}\n className={link({ size, weight, variant, underline, className })}\n href={href}\n hrefLang={hrefLang}\n rel={rel}\n role=\"link\"\n {...externalProps}\n {...downloadProps}\n {...props}\n >\n {children}\n </a>\n );\n }\n);\n\nLink.displayName = \"Link\"; "],"names":["_jsx"],"mappings":";;;;;;AAMA,MAAM,IAAI,GAAG,GAAG,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;AAC9B,IAAA,QAAQ,EAAE;AACR,QAAA,OAAO,EAAE;AACP,YAAA,OAAO,EAAE,UAAU,CAAC,cAAc,CAAC;AACnC,YAAA,SAAS,EAAE,UAAU,CAAC,gBAAgB,CAAC;AACvC,YAAA,QAAQ,EAAE,UAAU,CAAC,eAAe,CAAC;AACrC,YAAA,QAAQ,EAAE,UAAU,CAAC,eAAe,CAAC;AACrC,YAAA,MAAM,EAAE,UAAU,CAAC,aAAa,CAAC;AACjC,YAAA,SAAS,EAAE,UAAU,CAAC,gBAAgB,CAAC;AACvC,YAAA,MAAM,EAAE,UAAU,CAAC,aAAa,CAAC;AACjC,YAAA,OAAO,EAAE,UAAU,CAAC,cA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A,QAAQ,EACP,CAAA,EACJ;AACJ,CAAC,EACD;AAEF,IAAI,CAAC,WAAW,GAAG,MAAM;;;;"}
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;;;;"}