@tipp/ui 0.1.4 → 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 (149) 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.cjs +12 -2
  83. package/dist/chart/chart.cjs.map +1 -1
  84. package/dist/chart/chart.d.cts +3 -2
  85. package/dist/chart/chart.d.ts +3 -2
  86. package/dist/chart/chart.js +3 -3
  87. package/dist/chart/chart.js.map +1 -1
  88. package/dist/chunk-ALOPZ54P.js +47 -0
  89. package/dist/chunk-ALOPZ54P.js.map +1 -0
  90. package/dist/chunk-CZEGRZBK.js +38 -0
  91. package/dist/chunk-CZEGRZBK.js.map +1 -0
  92. package/dist/chunk-HLOY6BIP.js +37 -0
  93. package/dist/chunk-HLOY6BIP.js.map +1 -0
  94. package/dist/{chunk-D5QWAVBB.js → chunk-IIBITN2G.js} +2 -2
  95. package/dist/chunk-IQEEPHOY.js +35 -0
  96. package/dist/chunk-IQEEPHOY.js.map +1 -0
  97. package/dist/chunk-JEHDCZQU.js +34 -0
  98. package/dist/chunk-JEHDCZQU.js.map +1 -0
  99. package/dist/{chunk-LGTAQGUA.js → chunk-N552FDTV.js} +15 -2
  100. package/dist/{chunk-LREYUDKD.js → chunk-PL3Q4UVY.js} +3 -3
  101. package/dist/{chunk-LREYUDKD.js.map → chunk-PL3Q4UVY.js.map} +1 -1
  102. package/dist/chunk-RET725VL.js +36 -0
  103. package/dist/chunk-RET725VL.js.map +1 -0
  104. package/dist/chunk-XJJDE4YP.js +31 -0
  105. package/dist/chunk-XJJDE4YP.js.map +1 -0
  106. package/dist/chunk-XQOZWYUA.js +35 -0
  107. package/dist/chunk-XQOZWYUA.js.map +1 -0
  108. package/dist/icon.js +1 -1
  109. package/dist/index.cjs +252 -65
  110. package/dist/index.cjs.map +1 -1
  111. package/dist/index.d.cts +9 -1
  112. package/dist/index.d.ts +9 -1
  113. package/dist/index.js +40 -40
  114. package/dist/theme/theme-provider.cjs +1 -1
  115. package/dist/theme/theme-provider.cjs.map +1 -1
  116. package/dist/theme/theme-provider.d.cts +4 -4
  117. package/dist/theme/theme-provider.d.ts +4 -4
  118. package/dist/theme/theme-provider.js +2 -2
  119. package/dist/theme/use-theme.js +1 -1
  120. package/dist/ui-props/index.js +1 -1
  121. package/package.json +4 -2
  122. package/src/atoms/avatar.tsx +37 -1
  123. package/src/atoms/badge.tsx +47 -1
  124. package/src/atoms/button.tsx +32 -1
  125. package/src/atoms/check-box-group.tsx +38 -1
  126. package/src/atoms/check-box.tsx +30 -1
  127. package/src/atoms/heading.tsx +35 -1
  128. package/src/atoms/link.tsx +33 -1
  129. package/src/atoms/text.tsx +30 -1
  130. package/src/chart/chart.tsx +3 -4
  131. package/src/theme/theme-provider.tsx +1 -1
  132. package/dist/chunk-3566LFAS.js +0 -7
  133. package/dist/chunk-3566LFAS.js.map +0 -1
  134. package/dist/chunk-4PP245MS.js +0 -7
  135. package/dist/chunk-4PP245MS.js.map +0 -1
  136. package/dist/chunk-DYUKDKUS.js +0 -7
  137. package/dist/chunk-DYUKDKUS.js.map +0 -1
  138. package/dist/chunk-LFJCZVNE.js +0 -7
  139. package/dist/chunk-LFJCZVNE.js.map +0 -1
  140. package/dist/chunk-M4P36WOR.js +0 -7
  141. package/dist/chunk-M4P36WOR.js.map +0 -1
  142. package/dist/chunk-MLMWFOEE.js +0 -7
  143. package/dist/chunk-MLMWFOEE.js.map +0 -1
  144. package/dist/chunk-MYTJIEMB.js +0 -7
  145. package/dist/chunk-MYTJIEMB.js.map +0 -1
  146. package/dist/chunk-W4KST6UY.js +0 -7
  147. package/dist/chunk-W4KST6UY.js.map +0 -1
  148. /package/dist/{chunk-D5QWAVBB.js.map → chunk-IIBITN2G.js.map} +0 -0
  149. /package/dist/{chunk-LGTAQGUA.js.map → chunk-N552FDTV.js.map} +0 -0
@@ -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,10 +49,28 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
20
49
  // src/atoms/text.tsx
21
50
  var text_exports = {};
22
51
  __export(text_exports, {
23
- Text: () => import_themes.Text
52
+ Text: () => Text
24
53
  });
25
54
  module.exports = __toCommonJS(text_exports);
26
55
  var import_themes = require("@radix-ui/themes");
56
+ var import_react = require("react");
57
+ var import_jsx_runtime = require("react/jsx-runtime");
58
+ function Text(props) {
59
+ const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
60
+ const radixSize = (0, import_react.useMemo)(() => {
61
+ switch (variant) {
62
+ case "caption":
63
+ return "1";
64
+ case "subtitle":
65
+ return "3";
66
+ case "body":
67
+ return "2";
68
+ default:
69
+ return size;
70
+ }
71
+ }, [size, variant]);
72
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_themes.Text, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
73
+ }
27
74
  // Annotate the CommonJS export names for ESM import in node:
28
75
  0 && (module.exports = {
29
76
  Text
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/atoms/text.tsx"],"sourcesContent":["export { Text, type TextProps } from '@radix-ui/themes';\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAqC;","names":[]}
1
+ {"version":3,"sources":["../../src/atoms/text.tsx"],"sourcesContent":["import type { TextProps as RadixTextProps } from '@radix-ui/themes';\nimport { Text as RadixText } from '@radix-ui/themes';\nimport React, { useMemo } from 'react';\n\nexport type TextProps = RadixTextProps & {\n variant?: 'body' | 'caption' | 'subtitle';\n};\n\nexport function Text(props: TextProps): React.ReactNode {\n const { size, variant, children, ...rest } = props;\n\n const radixSize = useMemo<RadixTextProps['size']>(() => {\n switch (variant) {\n case 'caption':\n return '1';\n case 'subtitle':\n return '3';\n case 'body':\n return '2';\n default:\n return size;\n }\n }, [size, variant]);\n\n return (\n <RadixText {...rest} size={radixSize}>\n {children}\n </RadixText>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,oBAAkC;AAClC,mBAA+B;AAuB3B;AAjBG,SAAS,KAAK,OAAmC;AACtD,QAA6C,YAArC,QAAM,SAAS,SATzB,IAS+C,IAAT,iBAAS,IAAT,CAA5B,QAAM,WAAS;AAEvB,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,cAAAA,MAAA,iCAAc,OAAd,EAAoB,MAAM,WACxB,WACH;AAEJ;","names":["RadixText"]}
@@ -1 +1,9 @@
1
- export { Text, TextProps } from '@radix-ui/themes';
1
+ import { TextProps as TextProps$1 } from '@radix-ui/themes';
2
+ import React__default from 'react';
3
+
4
+ type TextProps = TextProps$1 & {
5
+ variant?: 'body' | 'caption' | 'subtitle';
6
+ };
7
+ declare function Text(props: TextProps): React__default.ReactNode;
8
+
9
+ export { Text, type TextProps };
@@ -1 +1,9 @@
1
- export { Text, TextProps } from '@radix-ui/themes';
1
+ import { TextProps as TextProps$1 } from '@radix-ui/themes';
2
+ import React__default from 'react';
3
+
4
+ type TextProps = TextProps$1 & {
5
+ variant?: 'body' | 'caption' | 'subtitle';
6
+ };
7
+ declare function Text(props: TextProps): React__default.ReactNode;
8
+
9
+ export { Text, type TextProps };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Text
3
- } from "../chunk-DYUKDKUS.js";
4
- import "../chunk-LGTAQGUA.js";
3
+ } from "../chunk-XJJDE4YP.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Text
7
7
  };
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Tooltip
3
3
  } from "../chunk-ACVANQJ4.js";
4
- import "../chunk-LGTAQGUA.js";
4
+ import "../chunk-N552FDTV.js";
5
5
  export {
6
6
  Tooltip
7
7
  };
@@ -1,8 +1,10 @@
1
1
  "use strict";
2
+ var __create = Object.create;
2
3
  var __defProp = Object.defineProperty;
3
4
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
5
  var __getOwnPropNames = Object.getOwnPropertyNames;
5
6
  var __getOwnPropSymbols = Object.getOwnPropertySymbols;
7
+ var __getProtoOf = Object.getPrototypeOf;
6
8
  var __hasOwnProp = Object.prototype.hasOwnProperty;
7
9
  var __propIsEnum = Object.prototype.propertyIsEnumerable;
8
10
  var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
@@ -29,6 +31,14 @@ var __copyProps = (to, from, except, desc) => {
29
31
  }
30
32
  return to;
31
33
  };
34
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
35
+ // If the importer is in node compatibility mode or this is not an ESM
36
+ // file that has been converted to a CommonJS file using a Babel-
37
+ // compatible transform (i.e. "__esModule" has not been set), then set
38
+ // "default" to the CommonJS "module.exports" for node compatibility.
39
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
40
+ mod
41
+ ));
32
42
  var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
33
43
 
34
44
  // src/chart/chart.tsx
@@ -37,8 +47,8 @@ __export(chart_exports, {
37
47
  Chart: () => Chart
38
48
  });
39
49
  module.exports = __toCommonJS(chart_exports);
40
- var import_react_echarts = require("@kbox-labs/react-echarts");
41
50
  var import_react_resize_detector = require("react-resize-detector");
51
+ var import_echarts_for_react = __toESM(require("echarts-for-react"), 1);
42
52
  var import_jsx_runtime = require("react/jsx-runtime");
43
53
  function Chart(props) {
44
54
  const { width, height, ref } = (0, import_react_resize_detector.useResizeDetector)({
@@ -46,7 +56,7 @@ function Chart(props) {
46
56
  refreshMode: "debounce",
47
57
  refreshRate: 100
48
58
  });
49
- return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_echarts.EChart, __spreadValues({ style: { width, height } }, props)) });
59
+ return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { ref, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_echarts_for_react.default, __spreadValues({ style: { width, height } }, props)) });
50
60
  }
51
61
  // Annotate the CommonJS export names for ESM import in node:
52
62
  0 && (module.exports = {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/chart/chart.tsx"],"sourcesContent":["import React from 'react';\nimport { EChart } from '@kbox-labs/react-echarts';\nimport type { EChartProps } from '@kbox-labs/react-echarts';\nimport { useResizeDetector } from 'react-resize-detector';\n\nexport type ChartProps = EChartProps;\n\nexport function Chart(props: ChartProps): JSX.Element {\n const { width, height, ref } = useResizeDetector({\n handleHeight: false,\n refreshMode: 'debounce',\n refreshRate: 100,\n });\n\n return (\n <div ref={ref} style={{ width: '100%', height: '100%' }}>\n <EChart style={{ width, height }} {...props} />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,2BAAuB;AAEvB,mCAAkC;AAa5B;AATC,SAAS,MAAM,OAAgC;AACpD,QAAM,EAAE,OAAO,QAAQ,IAAI,QAAI,gDAAkB;AAAA,IAC/C,cAAc;AAAA,IACd,aAAa;AAAA,IACb,aAAa;AAAA,EACf,CAAC;AAED,SACE,4CAAC,SAAI,KAAU,OAAO,EAAE,OAAO,QAAQ,QAAQ,OAAO,GACpD,sDAAC,8CAAO,OAAO,EAAE,OAAO,OAAO,KAAO,MAAO,GAC/C;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/chart/chart.tsx"],"sourcesContent":["import React from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\nimport ReactECharts from 'echarts-for-react';\n\nexport type ChartProps = React.ComponentProps<typeof ReactECharts>;\n\nexport function Chart(props: ChartProps): JSX.Element {\n const { width, height, ref } = useResizeDetector({\n handleHeight: false,\n refreshMode: 'debounce',\n refreshRate: 100,\n });\n\n return (\n <div ref={ref} style={{ width: '100%', height: '100%' }}>\n <ReactECharts style={{ width, height }} {...props} />\n </div>\n );\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mCAAkC;AAClC,+BAAyB;AAanB;AATC,SAAS,MAAM,OAAgC;AACpD,QAAM,EAAE,OAAO,QAAQ,IAAI,QAAI,gDAAkB;AAAA,IAC/C,cAAc;AAAA,IACd,aAAa;AAAA,IACb,aAAa;AAAA,EACf,CAAC;AAED,SACE,4CAAC,SAAI,KAAU,OAAO,EAAE,OAAO,QAAQ,QAAQ,OAAO,GACpD,sDAAC,yBAAAA,SAAA,iBAAa,OAAO,EAAE,OAAO,OAAO,KAAO,MAAO,GACrD;AAEJ;","names":["ReactECharts"]}
@@ -1,6 +1,7 @@
1
- import { EChartProps } from '@kbox-labs/react-echarts';
1
+ import React__default from 'react';
2
+ import ReactECharts from 'echarts-for-react';
2
3
 
3
- type ChartProps = EChartProps;
4
+ type ChartProps = React__default.ComponentProps<typeof ReactECharts>;
4
5
  declare function Chart(props: ChartProps): JSX.Element;
5
6
 
6
7
  export { Chart, type ChartProps };
@@ -1,6 +1,7 @@
1
- import { EChartProps } from '@kbox-labs/react-echarts';
1
+ import React__default from 'react';
2
+ import ReactECharts from 'echarts-for-react';
2
3
 
3
- type ChartProps = EChartProps;
4
+ type ChartProps = React__default.ComponentProps<typeof ReactECharts>;
4
5
  declare function Chart(props: ChartProps): JSX.Element;
5
6
 
6
7
  export { Chart, type ChartProps };
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  __spreadValues
3
- } from "../chunk-LGTAQGUA.js";
3
+ } from "../chunk-N552FDTV.js";
4
4
 
5
5
  // src/chart/chart.tsx
6
- import { EChart } from "@kbox-labs/react-echarts";
7
6
  import { useResizeDetector } from "react-resize-detector";
7
+ import ReactECharts from "echarts-for-react";
8
8
  import { jsx } from "react/jsx-runtime";
9
9
  function Chart(props) {
10
10
  const { width, height, ref } = useResizeDetector({
@@ -12,7 +12,7 @@ function Chart(props) {
12
12
  refreshMode: "debounce",
13
13
  refreshRate: 100
14
14
  });
15
- return /* @__PURE__ */ jsx("div", { ref, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsx(EChart, __spreadValues({ style: { width, height } }, props)) });
15
+ return /* @__PURE__ */ jsx("div", { ref, style: { width: "100%", height: "100%" }, children: /* @__PURE__ */ jsx(ReactECharts, __spreadValues({ style: { width, height } }, props)) });
16
16
  }
17
17
  export {
18
18
  Chart
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/chart/chart.tsx"],"sourcesContent":["import React from 'react';\nimport { EChart } from '@kbox-labs/react-echarts';\nimport type { EChartProps } from '@kbox-labs/react-echarts';\nimport { useResizeDetector } from 'react-resize-detector';\n\nexport type ChartProps = EChartProps;\n\nexport function Chart(props: ChartProps): JSX.Element {\n const { width, height, ref } = useResizeDetector({\n handleHeight: false,\n refreshMode: 'debounce',\n refreshRate: 100,\n });\n\n return (\n <div ref={ref} style={{ width: '100%', height: '100%' }}>\n <EChart style={{ width, height }} {...props} />\n </div>\n );\n}\n"],"mappings":";;;;;AACA,SAAS,cAAc;AAEvB,SAAS,yBAAyB;AAa5B;AATC,SAAS,MAAM,OAAgC;AACpD,QAAM,EAAE,OAAO,QAAQ,IAAI,IAAI,kBAAkB;AAAA,IAC/C,cAAc;AAAA,IACd,aAAa;AAAA,IACb,aAAa;AAAA,EACf,CAAC;AAED,SACE,oBAAC,SAAI,KAAU,OAAO,EAAE,OAAO,QAAQ,QAAQ,OAAO,GACpD,8BAAC,yBAAO,OAAO,EAAE,OAAO,OAAO,KAAO,MAAO,GAC/C;AAEJ;","names":[]}
1
+ {"version":3,"sources":["../../src/chart/chart.tsx"],"sourcesContent":["import React from 'react';\nimport { useResizeDetector } from 'react-resize-detector';\nimport ReactECharts from 'echarts-for-react';\n\nexport type ChartProps = React.ComponentProps<typeof ReactECharts>;\n\nexport function Chart(props: ChartProps): JSX.Element {\n const { width, height, ref } = useResizeDetector({\n handleHeight: false,\n refreshMode: 'debounce',\n refreshRate: 100,\n });\n\n return (\n <div ref={ref} style={{ width: '100%', height: '100%' }}>\n <ReactECharts style={{ width, height }} {...props} />\n </div>\n );\n}\n"],"mappings":";;;;;AACA,SAAS,yBAAyB;AAClC,OAAO,kBAAkB;AAanB;AATC,SAAS,MAAM,OAAgC;AACpD,QAAM,EAAE,OAAO,QAAQ,IAAI,IAAI,kBAAkB;AAAA,IAC/C,cAAc;AAAA,IACd,aAAa;AAAA,IACb,aAAa;AAAA,EACf,CAAC;AAED,SACE,oBAAC,SAAI,KAAU,OAAO,EAAE,OAAO,QAAQ,QAAQ,OAAO,GACpD,8BAAC,+BAAa,OAAO,EAAE,OAAO,OAAO,KAAO,MAAO,GACrD;AAEJ;","names":[]}
@@ -0,0 +1,47 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-N552FDTV.js";
6
+
7
+ // src/atoms/badge.tsx
8
+ import {
9
+ Badge as RadixBadge
10
+ } from "@radix-ui/themes";
11
+ import { useMemo, forwardRef } from "react";
12
+ import { jsx } from "react/jsx-runtime";
13
+ var Badge = forwardRef(
14
+ (props, ref) => {
15
+ const _a = props, { size, color } = _a, rest = __objRest(_a, ["size", "color"]);
16
+ const radixSize = useMemo(() => {
17
+ switch (size) {
18
+ case "small":
19
+ return "1";
20
+ case "large":
21
+ return "3";
22
+ default:
23
+ return "1";
24
+ }
25
+ }, [size]);
26
+ const radixColor = useMemo(() => {
27
+ switch (color) {
28
+ case "error":
29
+ return "red";
30
+ case "neutral":
31
+ return "gray";
32
+ case "success":
33
+ return "green";
34
+ case "accent":
35
+ default:
36
+ return void 0;
37
+ }
38
+ }, [color]);
39
+ return /* @__PURE__ */ jsx(RadixBadge, __spreadProps(__spreadValues({}, rest), { color: radixColor, ref, size: radixSize }));
40
+ }
41
+ );
42
+ Badge.displayName = "Badge";
43
+
44
+ export {
45
+ Badge
46
+ };
47
+ //# sourceMappingURL=chunk-ALOPZ54P.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atoms/badge.tsx"],"sourcesContent":["import {\n Badge as RadixBadge,\n type BadgeProps as RadixBadgeProps,\n} from '@radix-ui/themes';\nimport { useMemo, forwardRef } from 'react';\n\nexport type BadgeProps = Omit<RadixBadgeProps, 'color'> & {\n size: 'small' | 'large';\n color: 'error' | 'accent' | 'neutral' | 'success';\n};\n\nexport const Badge = forwardRef<HTMLSpanElement, BadgeProps>(\n (props: BadgeProps, ref): React.ReactNode => {\n const { size, color, ...rest } = props;\n\n const radixSize = useMemo(() => {\n switch (size) {\n case 'small':\n return '1';\n case 'large':\n return '3';\n default:\n return '1';\n }\n }, [size]);\n\n const radixColor = useMemo(() => {\n switch (color) {\n case 'error':\n return 'red';\n case 'neutral':\n return 'gray';\n case 'success':\n return 'green';\n case 'accent':\n default:\n return undefined;\n }\n }, [color]);\n\n return (\n <RadixBadge {...rest} color={radixColor} ref={ref} size={radixSize} />\n );\n }\n);\n\nBadge.displayName = 'Badge';\n"],"mappings":";;;;;;;AAAA;AAAA,EACE,SAAS;AAAA,OAEJ;AACP,SAAS,SAAS,kBAAkB;AAqC9B;AA9BC,IAAM,QAAQ;AAAA,EACnB,CAAC,OAAmB,QAAyB;AAC3C,UAAiC,YAAzB,QAAM,MAblB,IAaqC,IAAT,iBAAS,IAAT,CAAhB,QAAM;AAEd,UAAM,YAAY,QAAQ,MAAM;AAC9B,cAAQ,MAAM;AAAA,QACZ,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT;AACE,iBAAO;AAAA,MACX;AAAA,IACF,GAAG,CAAC,IAAI,CAAC;AAET,UAAM,aAAa,QAAQ,MAAM;AAC/B,cAAQ,OAAO;AAAA,QACb,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AAAA,QACL;AACE,iBAAO;AAAA,MACX;AAAA,IACF,GAAG,CAAC,KAAK,CAAC;AAEV,WACE,oBAAC,6CAAe,OAAf,EAAqB,OAAO,YAAY,KAAU,MAAM,YAAW;AAAA,EAExE;AACF;AAEA,MAAM,cAAc;","names":[]}
@@ -0,0 +1,38 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-N552FDTV.js";
6
+
7
+ // src/atoms/avatar.tsx
8
+ import {
9
+ Avatar as RadixAvatar
10
+ } from "@radix-ui/themes";
11
+ import { useMemo, forwardRef } from "react";
12
+ import { jsx } from "react/jsx-runtime";
13
+ var Avatar = forwardRef(
14
+ (props, ref) => {
15
+ const _a = props, { children, size, variant = "soft" } = _a, rest = __objRest(_a, ["children", "size", "variant"]);
16
+ const radixSize = useMemo(() => {
17
+ switch (size) {
18
+ case "small":
19
+ return "1";
20
+ case "medium":
21
+ return "2";
22
+ case "large":
23
+ return "3";
24
+ case "full":
25
+ return "4";
26
+ default:
27
+ return size;
28
+ }
29
+ }, [size]);
30
+ return /* @__PURE__ */ jsx(RadixAvatar, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize, variant, children }));
31
+ }
32
+ );
33
+ Avatar.displayName = "Avatar";
34
+
35
+ export {
36
+ Avatar
37
+ };
38
+ //# sourceMappingURL=chunk-CZEGRZBK.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atoms/avatar.tsx"],"sourcesContent":["import {\n Avatar as RadixAvatar,\n type AvatarProps as RadixAvatarProps,\n} from '@radix-ui/themes';\nimport { useMemo, forwardRef } from 'react';\n\nexport type AvatarProps = Omit<RadixAvatarProps, 'size'> & {\n size?: 'small' | 'medium' | 'large' | 'full';\n};\n\nexport const Avatar = forwardRef<HTMLImageElement, AvatarProps>(\n (props: AvatarProps, ref): React.ReactNode => {\n const { children, size, variant = 'soft', ...rest } = props;\n const radixSize = useMemo<RadixAvatarProps['size']>(() => {\n switch (size) {\n case 'small':\n return '1';\n case 'medium':\n return '2';\n case 'large':\n return '3';\n case 'full':\n return '4';\n default:\n return size;\n }\n }, [size]);\n\n return (\n <RadixAvatar {...rest} ref={ref} size={radixSize} variant={variant}>\n {children}\n </RadixAvatar>\n );\n }\n);\n\nAvatar.displayName = 'Avatar';\n"],"mappings":";;;;;;;AAAA;AAAA,EACE,UAAU;AAAA,OAEL;AACP,SAAS,SAAS,kBAAkB;AAyB9B;AAnBC,IAAM,SAAS;AAAA,EACpB,CAAC,OAAoB,QAAyB;AAC5C,UAAsD,YAA9C,YAAU,MAAM,UAAU,OAZtC,IAY0D,IAAT,iBAAS,IAAT,CAArC,YAAU,QAAM;AACxB,UAAM,YAAY,QAAkC,MAAM;AACxD,cAAQ,MAAM;AAAA,QACZ,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT;AACE,iBAAO;AAAA,MACX;AAAA,IACF,GAAG,CAAC,IAAI,CAAC;AAET,WACE,oBAAC,8CAAgB,OAAhB,EAAsB,KAAU,MAAM,WAAW,SAC/C,WACH;AAAA,EAEJ;AACF;AAEA,OAAO,cAAc;","names":[]}
@@ -0,0 +1,37 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-N552FDTV.js";
6
+
7
+ // src/atoms/heading.tsx
8
+ import {
9
+ Heading as RadixHeading
10
+ } from "@radix-ui/themes";
11
+ import { useMemo } from "react";
12
+ import { Heading } from "@radix-ui/themes";
13
+ import { jsx } from "react/jsx-runtime";
14
+ function Heading2(props) {
15
+ const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
16
+ const radixSize = useMemo(() => {
17
+ switch (variant) {
18
+ case "subtitle1":
19
+ return "4";
20
+ case "heading1":
21
+ return "7";
22
+ case "heading2":
23
+ return "6";
24
+ case "heading3":
25
+ return "5";
26
+ default:
27
+ return size;
28
+ }
29
+ }, [size, variant]);
30
+ return /* @__PURE__ */ jsx(RadixHeading, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
31
+ }
32
+
33
+ export {
34
+ Heading2 as Heading,
35
+ Heading as Heading2
36
+ };
37
+ //# sourceMappingURL=chunk-HLOY6BIP.js.map
@@ -0,0 +1 @@
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,EACE,WAAW;AAAA,OAEN;AACP,SAAS,eAAe;AAExB,SAAoB,eAAoB;AAwBpC;AAlBG,SAASA,SAAQ,OAAsC;AAC5D,QAA6C,YAArC,QAAM,UAAU,QAb1B,IAa+C,IAAT,iBAAS,IAAT,CAA5B,QAAM,YAAU;AACxB,QAAM,YAAY,QAAmC,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,oBAAC,+CAAiB,OAAjB,EAAuB,MAAM,WAC3B,WACH;AAEJ;","names":["Heading"]}
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  __spreadProps,
3
3
  __spreadValues
4
- } from "./chunk-LGTAQGUA.js";
4
+ } from "./chunk-N552FDTV.js";
5
5
 
6
6
  // src/atoms/date-picker/index.tsx
7
7
  import { forwardRef } from "react";
@@ -24,4 +24,4 @@ DatePicker.displayName = "DatePicker";
24
24
  export {
25
25
  DatePicker
26
26
  };
27
- //# sourceMappingURL=chunk-D5QWAVBB.js.map
27
+ //# sourceMappingURL=chunk-IIBITN2G.js.map
@@ -0,0 +1,35 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-N552FDTV.js";
6
+
7
+ // src/atoms/check-box-group.tsx
8
+ import { CheckboxGroup as RadixCheckboxGroup } from "@radix-ui/themes";
9
+ import { forwardRef, useMemo } from "react";
10
+ import { jsx } from "react/jsx-runtime";
11
+ var Root = forwardRef((props, ref) => {
12
+ const _a = props, { children, size } = _a, rest = __objRest(_a, ["children", "size"]);
13
+ const groupSize = useMemo(() => {
14
+ switch (size) {
15
+ case "small":
16
+ return "1";
17
+ case "large":
18
+ return "3";
19
+ case "medium":
20
+ default:
21
+ return "2";
22
+ }
23
+ }, [size]);
24
+ return /* @__PURE__ */ jsx(RadixCheckboxGroup.Root, __spreadProps(__spreadValues({}, rest), { ref, size: groupSize, children }));
25
+ });
26
+ Root.displayName = "CheckboxGroup.Root";
27
+ var CheckboxGroup = {
28
+ Root,
29
+ Item: RadixCheckboxGroup.Item
30
+ };
31
+
32
+ export {
33
+ CheckboxGroup
34
+ };
35
+ //# sourceMappingURL=chunk-IQEEPHOY.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atoms/check-box-group.tsx"],"sourcesContent":["import { CheckboxGroup as RadixCheckboxGroup } from '@radix-ui/themes';\nimport React, { forwardRef, useMemo } from 'react';\n\ntype RadixCheckboxGroupProps = React.ComponentPropsWithoutRef<\n typeof RadixCheckboxGroup.Root\n>;\ntype CheckboxGroupProps = Omit<RadixCheckboxGroupProps, 'size'> & {\n size: 'small' | 'medium' | 'large';\n};\n\nconst Root = forwardRef<HTMLDivElement, CheckboxGroupProps>((props, ref) => {\n const { children, size, ...rest } = props;\n\n const groupSize = useMemo<RadixCheckboxGroupProps['size']>(() => {\n switch (size) {\n case 'small':\n return '1';\n case 'large':\n return '3';\n case 'medium':\n default:\n return '2';\n }\n }, [size]);\n\n return (\n <RadixCheckboxGroup.Root {...rest} ref={ref} size={groupSize}>\n {children}\n </RadixCheckboxGroup.Root>\n );\n});\n\nRoot.displayName = 'CheckboxGroup.Root';\n\nexport const CheckboxGroup = {\n Root,\n Item: RadixCheckboxGroup.Item,\n};\n"],"mappings":";;;;;;;AAAA,SAAS,iBAAiB,0BAA0B;AACpD,SAAgB,YAAY,eAAe;AAyBvC;AAhBJ,IAAM,OAAO,WAA+C,CAAC,OAAO,QAAQ;AAC1E,QAAoC,YAA5B,YAAU,KAXpB,IAWsC,IAAT,iBAAS,IAAT,CAAnB,YAAU;AAElB,QAAM,YAAY,QAAyC,MAAM;AAC/D,YAAQ,MAAM;AAAA,MACZ,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AACH,eAAO;AAAA,MACT,KAAK;AAAA,MACL;AACE,eAAO;AAAA,IACX;AAAA,EACF,GAAG,CAAC,IAAI,CAAC;AAET,SACE,oBAAC,mBAAmB,MAAnB,iCAA4B,OAA5B,EAAkC,KAAU,MAAM,WAChD,WACH;AAEJ,CAAC;AAED,KAAK,cAAc;AAEZ,IAAM,gBAAgB;AAAA,EAC3B;AAAA,EACA,MAAM,mBAAmB;AAC3B;","names":[]}
@@ -0,0 +1,34 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-N552FDTV.js";
6
+
7
+ // src/atoms/check-box.tsx
8
+ import {
9
+ Checkbox as RadixCheckbox
10
+ } from "@radix-ui/themes";
11
+ import { useMemo, forwardRef } from "react";
12
+ import { jsx } from "react/jsx-runtime";
13
+ var Checkbox = forwardRef(
14
+ (props, ref) => {
15
+ const _a = props, { size = "medium" } = _a, rest = __objRest(_a, ["size"]);
16
+ const radixSize = useMemo(() => {
17
+ switch (size) {
18
+ case "small":
19
+ return "1";
20
+ case "medium":
21
+ return "2";
22
+ case "large":
23
+ return "3";
24
+ }
25
+ }, [size]);
26
+ return /* @__PURE__ */ jsx(RadixCheckbox, __spreadProps(__spreadValues({}, rest), { ref, size: radixSize }));
27
+ }
28
+ );
29
+ Checkbox.displayName = "Checkbox";
30
+
31
+ export {
32
+ Checkbox
33
+ };
34
+ //# sourceMappingURL=chunk-JEHDCZQU.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atoms/check-box.tsx"],"sourcesContent":["import {\n Checkbox as RadixCheckbox,\n type CheckboxProps as RadixCheckboxProps,\n} from '@radix-ui/themes';\nimport { useMemo, forwardRef } from 'react';\n\nexport type CheckboxProps = Omit<RadixCheckboxProps, 'size'> & {\n size?: 'small' | 'medium' | 'large';\n};\n\nexport const Checkbox = forwardRef<HTMLButtonElement, CheckboxProps>(\n (props, ref): React.ReactNode => {\n const { size = 'medium', ...rest } = props;\n\n const radixSize = useMemo<RadixCheckboxProps['size']>(() => {\n switch (size) {\n case 'small':\n return '1';\n case 'medium':\n return '2';\n case 'large':\n return '3';\n }\n }, [size]);\n\n return <RadixCheckbox {...rest} ref={ref} size={radixSize} />;\n }\n);\n\nCheckbox.displayName = 'Checkbox';\n"],"mappings":";;;;;;;AAAA;AAAA,EACE,YAAY;AAAA,OAEP;AACP,SAAS,SAAS,kBAAkB;AAqBzB;AAfJ,IAAM,WAAW;AAAA,EACtB,CAAC,OAAO,QAAyB;AAC/B,UAAqC,YAA7B,SAAO,SAZnB,IAYyC,IAAT,iBAAS,IAAT,CAApB;AAER,UAAM,YAAY,QAAoC,MAAM;AAC1D,cAAQ,MAAM;AAAA,QACZ,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,MACX;AAAA,IACF,GAAG,CAAC,IAAI,CAAC;AAET,WAAO,oBAAC,gDAAkB,OAAlB,EAAwB,KAAU,MAAM,YAAW;AAAA,EAC7D;AACF;AAEA,SAAS,cAAc;","names":[]}
@@ -17,9 +17,22 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source, exclude) => {
21
+ var target = {};
22
+ for (var prop in source)
23
+ if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source[prop];
25
+ if (source != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
28
+ target[prop] = source[prop];
29
+ }
30
+ return target;
31
+ };
20
32
 
21
33
  export {
22
34
  __spreadValues,
23
- __spreadProps
35
+ __spreadProps,
36
+ __objRest
24
37
  };
25
- //# sourceMappingURL=chunk-LGTAQGUA.js.map
38
+ //# sourceMappingURL=chunk-N552FDTV.js.map
@@ -1,15 +1,15 @@
1
1
  import {
2
2
  __spreadValues
3
- } from "./chunk-LGTAQGUA.js";
3
+ } from "./chunk-N552FDTV.js";
4
4
 
5
5
  // src/theme/theme-provider.tsx
6
6
  import { Theme } from "@radix-ui/themes";
7
7
  import { jsx } from "react/jsx-runtime";
8
8
  function ThemeProvider(props) {
9
- return /* @__PURE__ */ jsx(Theme, __spreadValues({ accentColor: "iris" }, props));
9
+ return /* @__PURE__ */ jsx(Theme, __spreadValues({ accentColor: "iris", radius: "large" }, props));
10
10
  }
11
11
 
12
12
  export {
13
13
  ThemeProvider
14
14
  };
15
- //# sourceMappingURL=chunk-LREYUDKD.js.map
15
+ //# sourceMappingURL=chunk-PL3Q4UVY.js.map
@@ -1 +1 @@
1
- {"version":3,"sources":["../src/theme/theme-provider.tsx"],"sourcesContent":["import React from 'react';\nimport { Theme } from '@radix-ui/themes';\n\ntype ThemeProps = React.ComponentProps<typeof Theme>;\n\ninterface ThemeProviderProps extends ThemeProps {\n children: React.ReactNode;\n}\n\nexport function ThemeProvider(props: ThemeProviderProps): React.ReactNode {\n return <Theme accentColor=\"iris\" {...props} />;\n}\n"],"mappings":";;;;;AACA,SAAS,aAAa;AASb;AADF,SAAS,cAAc,OAA4C;AACxE,SAAO,oBAAC,wBAAM,aAAY,UAAW,MAAO;AAC9C;","names":[]}
1
+ {"version":3,"sources":["../src/theme/theme-provider.tsx"],"sourcesContent":["import React from 'react';\nimport { Theme } from '@radix-ui/themes';\n\ntype ThemeProps = React.ComponentProps<typeof Theme>;\n\ninterface ThemeProviderProps extends ThemeProps {\n children: React.ReactNode;\n}\n\nexport function ThemeProvider(props: ThemeProviderProps): React.ReactNode {\n return <Theme accentColor=\"iris\" radius=\"large\" {...props} />;\n}\n"],"mappings":";;;;;AACA,SAAS,aAAa;AASb;AADF,SAAS,cAAc,OAA4C;AACxE,SAAO,oBAAC,wBAAM,aAAY,QAAO,QAAO,WAAY,MAAO;AAC7D;","names":[]}
@@ -0,0 +1,36 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-N552FDTV.js";
6
+
7
+ // src/atoms/button.tsx
8
+ import {
9
+ Button as RadixButton
10
+ } from "@radix-ui/themes";
11
+ import { forwardRef, useMemo } from "react";
12
+ import { jsx } from "react/jsx-runtime";
13
+ var Button = forwardRef(
14
+ (props, ref) => {
15
+ const _a = props, { size } = _a, restProps = __objRest(_a, ["size"]);
16
+ const radixSize = useMemo(() => {
17
+ switch (size) {
18
+ case "small":
19
+ return "2";
20
+ case "medium":
21
+ return "3";
22
+ case "large":
23
+ return "4";
24
+ default:
25
+ return "3";
26
+ }
27
+ }, [size]);
28
+ return /* @__PURE__ */ jsx(RadixButton, __spreadProps(__spreadValues({}, restProps), { ref, size: radixSize }));
29
+ }
30
+ );
31
+ Button.displayName = "Button";
32
+
33
+ export {
34
+ Button
35
+ };
36
+ //# sourceMappingURL=chunk-RET725VL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atoms/button.tsx"],"sourcesContent":["import {\n Button as RadixButton,\n type ButtonProps as RadixButtonProps,\n} from '@radix-ui/themes';\nimport React, { forwardRef, useMemo } from 'react';\n\nexport type ButtonProps = Omit<RadixButtonProps, 'size'> & {\n size: 'small' | 'medium' | 'large';\n};\n\nexport const Button = forwardRef<HTMLButtonElement, ButtonProps>(\n (props, ref): React.ReactNode => {\n const { size, ...restProps } = props;\n\n const radixSize = useMemo(() => {\n switch (size) {\n case 'small':\n return '2';\n case 'medium':\n return '3';\n case 'large':\n return '4';\n default:\n return '3';\n }\n }, [size]);\n\n return <RadixButton {...restProps} ref={ref} size={radixSize} />;\n }\n);\n\nButton.displayName = 'Button';\n"],"mappings":";;;;;;;AAAA;AAAA,EACE,UAAU;AAAA,OAEL;AACP,SAAgB,YAAY,eAAe;AAuBhC;AAjBJ,IAAM,SAAS;AAAA,EACpB,CAAC,OAAO,QAAyB;AAC/B,UAA+B,YAAvB,OAZZ,IAYmC,IAAd,sBAAc,IAAd,CAAT;AAER,UAAM,YAAY,QAAQ,MAAM;AAC9B,cAAQ,MAAM;AAAA,QACZ,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT,KAAK;AACH,iBAAO;AAAA,QACT;AACE,iBAAO;AAAA,MACX;AAAA,IACF,GAAG,CAAC,IAAI,CAAC;AAET,WAAO,oBAAC,8CAAgB,YAAhB,EAA2B,KAAU,MAAM,YAAW;AAAA,EAChE;AACF;AAEA,OAAO,cAAc;","names":[]}
@@ -0,0 +1,31 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-N552FDTV.js";
6
+
7
+ // src/atoms/text.tsx
8
+ import { Text as RadixText } from "@radix-ui/themes";
9
+ import { useMemo } from "react";
10
+ import { jsx } from "react/jsx-runtime";
11
+ function Text(props) {
12
+ const _a = props, { size, variant, children } = _a, rest = __objRest(_a, ["size", "variant", "children"]);
13
+ const radixSize = useMemo(() => {
14
+ switch (variant) {
15
+ case "caption":
16
+ return "1";
17
+ case "subtitle":
18
+ return "3";
19
+ case "body":
20
+ return "2";
21
+ default:
22
+ return size;
23
+ }
24
+ }, [size, variant]);
25
+ return /* @__PURE__ */ jsx(RadixText, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
26
+ }
27
+
28
+ export {
29
+ Text
30
+ };
31
+ //# sourceMappingURL=chunk-XJJDE4YP.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/atoms/text.tsx"],"sourcesContent":["import type { TextProps as RadixTextProps } from '@radix-ui/themes';\nimport { Text as RadixText } from '@radix-ui/themes';\nimport React, { useMemo } from 'react';\n\nexport type TextProps = RadixTextProps & {\n variant?: 'body' | 'caption' | 'subtitle';\n};\n\nexport function Text(props: TextProps): React.ReactNode {\n const { size, variant, children, ...rest } = props;\n\n const radixSize = useMemo<RadixTextProps['size']>(() => {\n switch (variant) {\n case 'caption':\n return '1';\n case 'subtitle':\n return '3';\n case 'body':\n return '2';\n default:\n return size;\n }\n }, [size, variant]);\n\n return (\n <RadixText {...rest} size={radixSize}>\n {children}\n </RadixText>\n );\n}\n"],"mappings":";;;;;;;AACA,SAAS,QAAQ,iBAAiB;AAClC,SAAgB,eAAe;AAuB3B;AAjBG,SAAS,KAAK,OAAmC;AACtD,QAA6C,YAArC,QAAM,SAAS,SATzB,IAS+C,IAAT,iBAAS,IAAT,CAA5B,QAAM,WAAS;AAEvB,QAAM,YAAY,QAAgC,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,oBAAC,4CAAc,OAAd,EAAoB,MAAM,WACxB,WACH;AAEJ;","names":[]}
@@ -0,0 +1,35 @@
1
+ import {
2
+ __objRest,
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "./chunk-N552FDTV.js";
6
+
7
+ // src/atoms/link.tsx
8
+ import {
9
+ Link as RadixLink
10
+ } from "@radix-ui/themes";
11
+ import { useMemo } from "react";
12
+ import { Heading } from "@radix-ui/themes";
13
+ import { jsx } from "react/jsx-runtime";
14
+ function Link(props) {
15
+ const _a = props, { size, children, variant } = _a, rest = __objRest(_a, ["size", "children", "variant"]);
16
+ const radixSize = useMemo(() => {
17
+ switch (variant) {
18
+ case "caption":
19
+ return "1";
20
+ case "body":
21
+ return "2";
22
+ case "subtitle":
23
+ return "3";
24
+ default:
25
+ return size;
26
+ }
27
+ }, [size, variant]);
28
+ return /* @__PURE__ */ jsx(RadixLink, __spreadProps(__spreadValues({}, rest), { size: radixSize, children }));
29
+ }
30
+
31
+ export {
32
+ Link,
33
+ Heading
34
+ };
35
+ //# sourceMappingURL=chunk-XQOZWYUA.js.map
@@ -0,0 +1 @@
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,EACE,QAAQ;AAAA,OAEH;AACP,SAAS,eAAe;AAExB,SAAoB,eAAoB;AAsBpC;AAhBG,SAAS,KAAK,OAAmC;AACtD,QAA6C,YAArC,QAAM,UAAU,QAb1B,IAa+C,IAAT,iBAAS,IAAT,CAA5B,QAAM,YAAU;AACxB,QAAM,YAAY,QAAgC,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,oBAAC,4CAAc,OAAd,EAAoB,MAAM,WACxB,WACH;AAEJ;","names":[]}