@tipp/ui 0.1.5 → 0.1.6

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 (145) hide show
  1. package/dist/atoms/alert-dialog.js +1 -1
  2. package/dist/atoms/aspect-ratio.js +1 -1
  3. package/dist/atoms/avatar.cjs +53 -1
  4. package/dist/atoms/avatar.cjs.map +1 -1
  5. package/dist/atoms/avatar.d.cts +11 -1
  6. package/dist/atoms/avatar.d.ts +11 -1
  7. package/dist/atoms/avatar.js +2 -2
  8. package/dist/atoms/badge.cjs +62 -1
  9. package/dist/atoms/badge.cjs.map +1 -1
  10. package/dist/atoms/badge.d.cts +13 -1
  11. package/dist/atoms/badge.d.ts +13 -1
  12. package/dist/atoms/badge.js +2 -2
  13. package/dist/atoms/blockquote.js +1 -1
  14. package/dist/atoms/box.js +1 -1
  15. package/dist/atoms/button.cjs +51 -1
  16. package/dist/atoms/button.cjs.map +1 -1
  17. package/dist/atoms/button.d.cts +11 -1
  18. package/dist/atoms/button.d.ts +11 -1
  19. package/dist/atoms/button.js +2 -2
  20. package/dist/atoms/call-out.js +1 -1
  21. package/dist/atoms/card.js +1 -1
  22. package/dist/atoms/check-box-card.js +1 -1
  23. package/dist/atoms/check-box-group.cjs +52 -1
  24. package/dist/atoms/check-box-group.cjs.map +1 -1
  25. package/dist/atoms/check-box-group.d.cts +11 -1
  26. package/dist/atoms/check-box-group.d.ts +11 -1
  27. package/dist/atoms/check-box-group.js +2 -2
  28. package/dist/atoms/check-box.cjs +49 -1
  29. package/dist/atoms/check-box.cjs.map +1 -1
  30. package/dist/atoms/check-box.d.cts +11 -1
  31. package/dist/atoms/check-box.d.ts +11 -1
  32. package/dist/atoms/check-box.js +2 -2
  33. package/dist/atoms/code.js +1 -1
  34. package/dist/atoms/container.js +1 -1
  35. package/dist/atoms/data-list.js +1 -1
  36. package/dist/atoms/date-picker/index.d.cts +2 -2
  37. package/dist/atoms/date-picker/index.d.ts +2 -2
  38. package/dist/atoms/date-picker/index.js +2 -2
  39. package/dist/atoms/dialog.js +1 -1
  40. package/dist/atoms/dropdown-menu.js +1 -1
  41. package/dist/atoms/em.js +1 -1
  42. package/dist/atoms/flex.js +1 -1
  43. package/dist/atoms/grid.js +1 -1
  44. package/dist/atoms/heading.cjs +54 -2
  45. package/dist/atoms/heading.cjs.map +1 -1
  46. package/dist/atoms/heading.d.cts +9 -1
  47. package/dist/atoms/heading.d.ts +9 -1
  48. package/dist/atoms/heading.js +6 -4
  49. package/dist/atoms/hover-card.js +1 -1
  50. package/dist/atoms/icon-button.js +1 -1
  51. package/dist/atoms/inset.js +1 -1
  52. package/dist/atoms/kbd.js +1 -1
  53. package/dist/atoms/link.cjs +52 -2
  54. package/dist/atoms/link.cjs.map +1 -1
  55. package/dist/atoms/link.d.cts +9 -1
  56. package/dist/atoms/link.d.ts +9 -1
  57. package/dist/atoms/link.js +5 -3
  58. package/dist/atoms/popover.js +1 -1
  59. package/dist/atoms/progress.js +1 -1
  60. package/dist/atoms/quote.js +1 -1
  61. package/dist/atoms/radio-cards.js +1 -1
  62. package/dist/atoms/radio-group.js +1 -1
  63. package/dist/atoms/radio.js +1 -1
  64. package/dist/atoms/scroll-area.js +1 -1
  65. package/dist/atoms/section.js +1 -1
  66. package/dist/atoms/segmented-control.js +1 -1
  67. package/dist/atoms/select.js +1 -1
  68. package/dist/atoms/separator.js +1 -1
  69. package/dist/atoms/skeleton.js +1 -1
  70. package/dist/atoms/strong.js +1 -1
  71. package/dist/atoms/switch.js +1 -1
  72. package/dist/atoms/tab-nav.js +1 -1
  73. package/dist/atoms/tabs.js +1 -1
  74. package/dist/atoms/text-area.js +1 -1
  75. package/dist/atoms/text-field.js +1 -1
  76. package/dist/atoms/text.cjs +48 -1
  77. package/dist/atoms/text.cjs.map +1 -1
  78. package/dist/atoms/text.d.cts +9 -1
  79. package/dist/atoms/text.d.ts +9 -1
  80. package/dist/atoms/text.js +2 -2
  81. package/dist/atoms/tooltip.js +1 -1
  82. package/dist/chart/chart.d.cts +2 -2
  83. package/dist/chart/chart.d.ts +2 -2
  84. package/dist/chart/chart.js +1 -1
  85. package/dist/chunk-ALOPZ54P.js +47 -0
  86. package/dist/chunk-ALOPZ54P.js.map +1 -0
  87. package/dist/chunk-CZEGRZBK.js +38 -0
  88. package/dist/chunk-CZEGRZBK.js.map +1 -0
  89. package/dist/chunk-HLOY6BIP.js +37 -0
  90. package/dist/chunk-HLOY6BIP.js.map +1 -0
  91. package/dist/{chunk-D5QWAVBB.js → chunk-IIBITN2G.js} +2 -2
  92. package/dist/chunk-IQEEPHOY.js +35 -0
  93. package/dist/chunk-IQEEPHOY.js.map +1 -0
  94. package/dist/chunk-JEHDCZQU.js +34 -0
  95. package/dist/chunk-JEHDCZQU.js.map +1 -0
  96. package/dist/{chunk-LGTAQGUA.js → chunk-N552FDTV.js} +15 -2
  97. package/dist/{chunk-LREYUDKD.js → chunk-PL3Q4UVY.js} +3 -3
  98. package/dist/{chunk-LREYUDKD.js.map → chunk-PL3Q4UVY.js.map} +1 -1
  99. package/dist/chunk-RET725VL.js +36 -0
  100. package/dist/chunk-RET725VL.js.map +1 -0
  101. package/dist/chunk-XJJDE4YP.js +31 -0
  102. package/dist/chunk-XJJDE4YP.js.map +1 -0
  103. package/dist/chunk-XQOZWYUA.js +35 -0
  104. package/dist/chunk-XQOZWYUA.js.map +1 -0
  105. package/dist/icon.js +1 -1
  106. package/dist/index.cjs +252 -65
  107. package/dist/index.cjs.map +1 -1
  108. package/dist/index.d.cts +9 -1
  109. package/dist/index.d.ts +9 -1
  110. package/dist/index.js +40 -40
  111. package/dist/theme/theme-provider.cjs +1 -1
  112. package/dist/theme/theme-provider.cjs.map +1 -1
  113. package/dist/theme/theme-provider.d.cts +4 -4
  114. package/dist/theme/theme-provider.d.ts +4 -4
  115. package/dist/theme/theme-provider.js +2 -2
  116. package/dist/theme/use-theme.js +1 -1
  117. package/dist/ui-props/index.js +1 -1
  118. package/package.json +1 -1
  119. package/src/atoms/avatar.tsx +37 -1
  120. package/src/atoms/badge.tsx +47 -1
  121. package/src/atoms/button.tsx +32 -1
  122. package/src/atoms/check-box-group.tsx +38 -1
  123. package/src/atoms/check-box.tsx +30 -1
  124. package/src/atoms/heading.tsx +35 -1
  125. package/src/atoms/link.tsx +33 -1
  126. package/src/atoms/text.tsx +30 -1
  127. package/src/theme/theme-provider.tsx +1 -1
  128. package/dist/chunk-3566LFAS.js +0 -7
  129. package/dist/chunk-3566LFAS.js.map +0 -1
  130. package/dist/chunk-4PP245MS.js +0 -7
  131. package/dist/chunk-4PP245MS.js.map +0 -1
  132. package/dist/chunk-DYUKDKUS.js +0 -7
  133. package/dist/chunk-DYUKDKUS.js.map +0 -1
  134. package/dist/chunk-LFJCZVNE.js +0 -7
  135. package/dist/chunk-LFJCZVNE.js.map +0 -1
  136. package/dist/chunk-M4P36WOR.js +0 -7
  137. package/dist/chunk-M4P36WOR.js.map +0 -1
  138. package/dist/chunk-MLMWFOEE.js +0 -7
  139. package/dist/chunk-MLMWFOEE.js.map +0 -1
  140. package/dist/chunk-MYTJIEMB.js +0 -7
  141. package/dist/chunk-MYTJIEMB.js.map +0 -1
  142. package/dist/chunk-W4KST6UY.js +0 -7
  143. package/dist/chunk-W4KST6UY.js.map +0 -1
  144. /package/dist/{chunk-D5QWAVBB.js.map → chunk-IIBITN2G.js.map} +0 -0
  145. /package/dist/{chunk-LGTAQGUA.js.map → chunk-N552FDTV.js.map} +0 -0
@@ -1 +1,11 @@
1
- export { Checkbox, CheckboxProps } from '@radix-ui/themes';
1
+ import * as React from 'react';
2
+ import { CheckboxProps as CheckboxProps$1 } from '@radix-ui/themes';
3
+
4
+ type CheckboxProps = Omit<CheckboxProps$1, 'size'> & {
5
+ size?: 'small' | 'medium' | 'large';
6
+ };
7
+ declare const Checkbox: React.ForwardRefExoticComponent<Omit<CheckboxProps$1, "size"> & {
8
+ size?: "small" | "large" | "medium" | undefined;
9
+ } & React.RefAttributes<HTMLButtonElement>>;
10
+
11
+ export { Checkbox, type CheckboxProps };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Checkbox
3
- } from "../chunk-3566LFAS.js";
4
- import "../chunk-LGTAQGUA.js";
3
+ } from "../chunk-JEHDCZQU.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Checkbox
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Code
3
3
  } from "../chunk-OHMOP5PV.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Code
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Container
3
3
  } from "../chunk-Q37G2GS6.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Container
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DataList
3
3
  } from "../chunk-VTJZMOSP.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  DataList
7
7
  };
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
  import ReactDatePicker, { DatePickerProps as DatePickerProps$1 } from 'react-datepicker';
3
3
 
4
4
  type DatePickerProps = DatePickerProps$1;
5
- declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps$1 & React.RefAttributes<ReactDatePicker>>;
5
+ declare const DatePicker: React__default.ForwardRefExoticComponent<DatePickerProps$1 & React__default.RefAttributes<ReactDatePicker>>;
6
6
 
7
7
  export { DatePicker, type DatePickerProps };
@@ -1,7 +1,7 @@
1
- import React from 'react';
1
+ import React__default from 'react';
2
2
  import ReactDatePicker, { DatePickerProps as DatePickerProps$1 } from 'react-datepicker';
3
3
 
4
4
  type DatePickerProps = DatePickerProps$1;
5
- declare const DatePicker: React.ForwardRefExoticComponent<DatePickerProps$1 & React.RefAttributes<ReactDatePicker>>;
5
+ declare const DatePicker: React__default.ForwardRefExoticComponent<DatePickerProps$1 & React__default.RefAttributes<ReactDatePicker>>;
6
6
 
7
7
  export { DatePicker, type DatePickerProps };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DatePicker
3
- } from "../../chunk-D5QWAVBB.js";
4
- import "../../chunk-LGTAQGUA.js";
3
+ } from "../../chunk-IIBITN2G.js";
4
+ import "../../chunk-N552FDTV.js";
5
5
  export {
6
6
  DatePicker
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Dialog
3
3
  } from "../chunk-P6B2PNYI.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Dialog
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  DropdownMenu
3
3
  } from "../chunk-YTZSKMX3.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  DropdownMenu
7
7
  };
package/dist/atoms/em.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Em
3
3
  } from "../chunk-2DZ2Y3JI.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Em
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Flex
3
3
  } from "../chunk-25HMMI7R.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Flex
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Grid
3
3
  } from "../chunk-EGEQY3KT.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Grid
7
7
  };
@@ -1,8 +1,37 @@
1
1
  "use strict";
2
2
  var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
+ var __spreadValues = (a, b) => {
12
+ for (var prop in b || (b = {}))
13
+ if (__hasOwnProp.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ if (__getOwnPropSymbols)
16
+ for (var prop of __getOwnPropSymbols(b)) {
17
+ if (__propIsEnum.call(b, prop))
18
+ __defNormalProp(a, prop, b[prop]);
19
+ }
20
+ return a;
21
+ };
22
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
+ var __objRest = (source, exclude) => {
24
+ var target = {};
25
+ for (var prop in source)
26
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
27
+ target[prop] = source[prop];
28
+ if (source != null && __getOwnPropSymbols)
29
+ for (var prop of __getOwnPropSymbols(source)) {
30
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
31
+ target[prop] = source[prop];
32
+ }
33
+ return target;
34
+ };
6
35
  var __export = (target, all) => {
7
36
  for (var name in all)
8
37
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -20,12 +49,35 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
49
  // src/atoms/heading.tsx
21
50
  var heading_exports = {};
22
51
  __export(heading_exports, {
23
- Heading: () => import_themes.Heading
52
+ Heading: () => Heading2,
53
+ RadixHeading: () => import_themes2.Heading
24
54
  });
25
55
  module.exports = __toCommonJS(heading_exports);
26
56
  var import_themes = require("@radix-ui/themes");
57
+ var import_react = require("react");
58
+ var import_themes2 = require("@radix-ui/themes");
59
+ var import_jsx_runtime = require("react/jsx-runtime");
60
+ function Heading2(props) {
61
+ const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
62
+ const radixSize = (0, import_react.useMemo)(() => {
63
+ switch (variant) {
64
+ case "subtitle1":
65
+ return "4";
66
+ case "heading1":
67
+ return "7";
68
+ case "heading2":
69
+ return "6";
70
+ case "heading3":
71
+ return "5";
72
+ default:
73
+ return size;
74
+ }
75
+ }, [size, variant]);
76
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_themes.Heading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
77
+ }
27
78
  // Annotate the CommonJS export names for ESM import in node:
28
79
  0 && (module.exports = {
29
- Heading
80
+ Heading,
81
+ RadixHeading
30
82
  });
31
83
  //# sourceMappingURL=heading.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/atoms/heading.tsx"],"sourcesContent":["export { Heading, type HeadingProps } from '@radix-ui/themes';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA2C;","names":[]}
1
+ {"version":3,"sources":["../../src/atoms/heading.tsx"],"sourcesContent":["import {\n Heading as RadixHeading,\n type HeadingProps as RadixHeadingProps,\n} from '@radix-ui/themes';\nimport { useMemo } from 'react';\n\nexport { Heading as RadixHeading } from '@radix-ui/themes';\n\nexport type HeadingProps = RadixHeadingProps & {\n variant?: 'subtitle1' | 'heading1' | 'heading2' | 'heading3';\n};\n\nexport function Heading(props: HeadingProps): React.ReactNode {\n const { size, children, variant, ...rest } = props;\n const radixSize = useMemo<RadixHeadingProps['size']>(() => {\n switch (variant) {\n case 'subtitle1':\n return '4';\n case 'heading1':\n return '7';\n case 'heading2':\n return '6';\n case 'heading3':\n return '5';\n default:\n return size;\n }\n }, [size, variant]);\n\n return (\n <RadixHeading {...rest} size={radixSize}>\n {children}\n </RadixHeading>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA,iBAAAA;AAAA,EAAA;AAAA;AAAA;AAAA,oBAGO;AACP,mBAAwB;AAExB,IAAAC,iBAAwC;AAwBpC;AAlBG,SAASC,SAAQ,OAAsC;AAC5D,QAA6C,YAArC,QAAM,UAAU,QAb1B,IAa+C,IAAT,iBAAS,IAAT,CAA5B,QAAM,YAAU;AACxB,QAAM,gBAAY,sBAAmC,MAAM;AACzD,YAAQ,SAAS;AAAA,MACf,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT;AACE,eAAO;AAAA,IACX;AAAA,EACF,GAAG,CAAC,MAAM,OAAO,CAAC;AAElB,SACE,4CAAC,cAAAC,SAAA,iCAAiB,OAAjB,EAAuB,MAAM,WAC3B,WACH;AAEJ;","names":["Heading","import_themes","Heading","RadixHeading"]}
@@ -1 +1,9 @@
1
- export { Heading, HeadingProps } from '@radix-ui/themes';
1
+ import { HeadingProps as HeadingProps$1 } from '@radix-ui/themes';
2
+ export { Heading as RadixHeading } from '@radix-ui/themes';
3
+
4
+ type HeadingProps = HeadingProps$1 & {
5
+ variant?: 'subtitle1' | 'heading1' | 'heading2' | 'heading3';
6
+ };
7
+ declare function Heading(props: HeadingProps): React.ReactNode;
8
+
9
+ export { Heading, type HeadingProps };
@@ -1 +1,9 @@
1
- export { Heading, HeadingProps } from '@radix-ui/themes';
1
+ import { HeadingProps as HeadingProps$1 } from '@radix-ui/themes';
2
+ export { Heading as RadixHeading } from '@radix-ui/themes';
3
+
4
+ type HeadingProps = HeadingProps$1 & {
5
+ variant?: 'subtitle1' | 'heading1' | 'heading2' | 'heading3';
6
+ };
7
+ declare function Heading(props: HeadingProps): React.ReactNode;
8
+
9
+ export { Heading, type HeadingProps };
@@ -1,8 +1,10 @@
1
1
  import {
2
- Heading
3
- } from "../chunk-MYTJIEMB.js";
4
- import "../chunk-LGTAQGUA.js";
2
+ Heading,
3
+ Heading2
4
+ } from "../chunk-HLOY6BIP.js";
5
+ import "../chunk-N552FDTV.js";
5
6
  export {
6
- Heading
7
+ Heading,
8
+ Heading2 as RadixHeading
7
9
  };
8
10
  //# sourceMappingURL=heading.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  HoverCard
3
3
  } from "../chunk-O3T3TM3V.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  HoverCard
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  IconButton
3
3
  } from "../chunk-O3DNDMV3.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  IconButton
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Inset
3
3
  } from "../chunk-XQOL7UBI.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Inset
7
7
  };
package/dist/atoms/kbd.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Kbd
3
3
  } from "../chunk-TULWX7D6.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Kbd
7
7
  };
@@ -1,8 +1,37 @@
1
1
  "use strict";
2
2
  var __defProp = Object.defineProperty;
3
+ var __defProps = Object.defineProperties;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
+ var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
4
6
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
+ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
5
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
9
+ var __propIsEnum = Object.prototype.propertyIsEnumerable;
10
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
11
+ var __spreadValues = (a, b) => {
12
+ for (var prop in b || (b = {}))
13
+ if (__hasOwnProp.call(b, prop))
14
+ __defNormalProp(a, prop, b[prop]);
15
+ if (__getOwnPropSymbols)
16
+ for (var prop of __getOwnPropSymbols(b)) {
17
+ if (__propIsEnum.call(b, prop))
18
+ __defNormalProp(a, prop, b[prop]);
19
+ }
20
+ return a;
21
+ };
22
+ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
23
+ var __objRest = (source, exclude) => {
24
+ var target = {};
25
+ for (var prop in source)
26
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
27
+ target[prop] = source[prop];
28
+ if (source != null && __getOwnPropSymbols)
29
+ for (var prop of __getOwnPropSymbols(source)) {
30
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
31
+ target[prop] = source[prop];
32
+ }
33
+ return target;
34
+ };
6
35
  var __export = (target, all) => {
7
36
  for (var name in all)
8
37
  __defProp(target, name, { get: all[name], enumerable: true });
@@ -20,12 +49,33 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
49
  // src/atoms/link.tsx
21
50
  var link_exports = {};
22
51
  __export(link_exports, {
23
- Link: () => import_themes.Link
52
+ Link: () => Link,
53
+ RadixHeading: () => import_themes2.Heading
24
54
  });
25
55
  module.exports = __toCommonJS(link_exports);
26
56
  var import_themes = require("@radix-ui/themes");
57
+ var import_react = require("react");
58
+ var import_themes2 = require("@radix-ui/themes");
59
+ var import_jsx_runtime = require("react/jsx-runtime");
60
+ function Link(props) {
61
+ const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
62
+ const radixSize = (0, import_react.useMemo)(() => {
63
+ switch (variant) {
64
+ case "caption":
65
+ return "1";
66
+ case "body":
67
+ return "2";
68
+ case "subtitle":
69
+ return "3";
70
+ default:
71
+ return size;
72
+ }
73
+ }, [size, variant]);
74
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_themes.Link, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
75
+ }
27
76
  // Annotate the CommonJS export names for ESM import in node:
28
77
  0 && (module.exports = {
29
- Link
78
+ Link,
79
+ RadixHeading
30
80
  });
31
81
  //# sourceMappingURL=link.cjs.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/atoms/link.tsx"],"sourcesContent":["export { Link, type LinkProps } from '@radix-ui/themes';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAqC;","names":[]}
1
+ {"version":3,"sources":["../../src/atoms/link.tsx"],"sourcesContent":["import {\n Link as RadixLink,\n type LinkProps as RadixLinkProps,\n} from '@radix-ui/themes';\nimport { useMemo } from 'react';\n\nexport { Heading as RadixHeading } from '@radix-ui/themes';\n\nexport type LinkProps = RadixLinkProps & {\n variant?: 'caption' | 'body' | 'subtitle';\n};\n\nexport function Link(props: LinkProps): React.ReactNode {\n const { size, children, variant, ...rest } = props;\n const radixSize = useMemo<RadixLinkProps['size']>(() => {\n switch (variant) {\n case 'caption':\n return '1';\n case 'body':\n return '2';\n case 'subtitle':\n return '3';\n default:\n return size;\n }\n }, [size, variant]);\n\n return (\n <RadixLink {...rest} size={radixSize}>\n {children}\n </RadixLink>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAGO;AACP,mBAAwB;AAExB,IAAAA,iBAAwC;AAsBpC;AAhBG,SAAS,KAAK,OAAmC;AACtD,QAA6C,YAArC,QAAM,UAAU,QAb1B,IAa+C,IAAT,iBAAS,IAAT,CAA5B,QAAM,YAAU;AACxB,QAAM,gBAAY,sBAAgC,MAAM;AACtD,YAAQ,SAAS;AAAA,MACf,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT;AACE,eAAO;AAAA,IACX;AAAA,EACF,GAAG,CAAC,MAAM,OAAO,CAAC;AAElB,SACE,4CAAC,cAAAC,MAAA,iCAAc,OAAd,EAAoB,MAAM,WACxB,WACH;AAEJ;","names":["import_themes","RadixLink"]}
@@ -1 +1,9 @@
1
- export { Link, LinkProps } from '@radix-ui/themes';
1
+ import { LinkProps as LinkProps$1 } from '@radix-ui/themes';
2
+ export { Heading as RadixHeading } from '@radix-ui/themes';
3
+
4
+ type LinkProps = LinkProps$1 & {
5
+ variant?: 'caption' | 'body' | 'subtitle';
6
+ };
7
+ declare function Link(props: LinkProps): React.ReactNode;
8
+
9
+ export { Link, type LinkProps };
@@ -1 +1,9 @@
1
- export { Link, LinkProps } from '@radix-ui/themes';
1
+ import { LinkProps as LinkProps$1 } from '@radix-ui/themes';
2
+ export { Heading as RadixHeading } from '@radix-ui/themes';
3
+
4
+ type LinkProps = LinkProps$1 & {
5
+ variant?: 'caption' | 'body' | 'subtitle';
6
+ };
7
+ declare function Link(props: LinkProps): React.ReactNode;
8
+
9
+ export { Link, type LinkProps };
@@ -1,8 +1,10 @@
1
1
  import {
2
+ Heading,
2
3
  Link
3
- } from "../chunk-MLMWFOEE.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ } from "../chunk-XQOZWYUA.js";
5
+ import "../chunk-N552FDTV.js";
5
6
  export {
6
- Link
7
+ Link,
8
+ Heading as RadixHeading
7
9
  };
8
10
  //# sourceMappingURL=link.js.map
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Popover
3
3
  } from "../chunk-5AVBYDPB.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Popover
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Progress
3
3
  } from "../chunk-365QMK4D.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Progress
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Quote
3
3
  } from "../chunk-YO3BQW6S.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Quote
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RadioCards
3
3
  } from "../chunk-6IVCARWS.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  RadioCards
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  RadioGroup
3
3
  } from "../chunk-6DJOIRMF.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  RadioGroup
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Radio
3
3
  } from "../chunk-FPD73OHW.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Radio
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ScrollArea
3
3
  } from "../chunk-ZKZDVS7G.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  ScrollArea
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Section
3
3
  } from "../chunk-MUNMDHRF.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Section
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  SegmentedControl
3
3
  } from "../chunk-TVDKGMBI.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  SegmentedControl
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Select
3
3
  } from "../chunk-355MU6BH.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Select
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Separator
3
3
  } from "../chunk-HYITAA4J.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Separator
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Skeleton
3
3
  } from "../chunk-5H3YPCZK.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Skeleton
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Strong
3
3
  } from "../chunk-74DX4CU7.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Strong
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Switch
3
3
  } from "../chunk-OYM4XCHQ.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Switch
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TabNav
3
3
  } from "../chunk-YJ7ZFOYL.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  TabNav
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Tabs
3
3
  } from "../chunk-5ZITU5L7.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Tabs
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TextArea
3
3
  } from "../chunk-ILRUXI2E.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  TextArea
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  TextField
3
3
  } from "../chunk-JPIZP2PZ.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  TextField
7
7
  };