@lotte-innovate/ui-component-test 0.1.94 → 0.1.96

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. package/dist/lib/components/Accordion/index.d.ts +1 -1
  2. package/dist/lib/components/BarChart/index.d.ts +1 -5
  3. package/dist/lib/components/BubbleChart/index.js +11 -2
  4. package/dist/lib/components/BubbleChart/index.mjs +1 -1
  5. package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
  6. package/dist/lib/components/Dialog/DialogAction.d.ts +0 -2
  7. package/dist/lib/components/Dialog/DialogCancel.d.ts +0 -1
  8. package/dist/lib/components/Dialog/DialogRoot.d.ts +1 -4
  9. package/dist/lib/components/Dialog/DialogSlot.d.ts +0 -1
  10. package/dist/lib/components/Dialog/DialogTitle.d.ts +0 -2
  11. package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +1 -2
  12. package/dist/lib/components/HoverCard/HoverCardContent.d.ts +1 -2
  13. package/dist/lib/components/HoverCard/index.d.ts +1 -1
  14. package/dist/lib/components/IconButton/index.d.ts +2 -2
  15. package/dist/lib/components/Popover/PopoverContent.d.ts +2 -0
  16. package/dist/lib/components/Popover/PopoverRoot.d.ts +1 -2
  17. package/dist/lib/components/Progress/index.d.ts +2 -2
  18. package/dist/lib/components/RadarChart/index.js +11 -2
  19. package/dist/lib/components/RadarChart/index.mjs +1 -1
  20. package/dist/lib/components/RadarChart/index.mjs.map +1 -1
  21. package/dist/lib/components/Radio/index.d.ts +2 -2
  22. package/dist/lib/components/Radio/index.js +2 -2
  23. package/dist/lib/components/Radio/index.mjs +1 -1
  24. package/dist/lib/components/Radio/index.mjs.map +1 -1
  25. package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +1 -1
  26. package/dist/lib/components/RadioCards/index.d.ts +1 -1
  27. package/dist/lib/components/RadioGroup/RadioGroupItem.d.ts +0 -1
  28. package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +1 -1
  29. package/dist/lib/components/RadioGroup/index.d.ts +1 -1
  30. package/dist/lib/components/ScrollArea/index.d.ts +1 -1
  31. package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +1 -1
  32. package/dist/lib/components/SegmentedControl/index.d.ts +1 -1
  33. package/dist/lib/tsconfig.tsbuildinfo +1 -1
  34. package/dist/tsconfig.tsbuildinfo +1 -1
  35. package/package.json +7 -9
@@ -3,7 +3,7 @@ import * as AccordionPrimitive from '@radix-ui/react-accordion';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
  import { IColor } from '../../../lib/types';
5
5
  export interface AccordionProps extends React.InputHTMLAttributes<HTMLInputElement>, VariantProps<typeof accoridanVariants> {
6
- defaultValue?: string;
6
+ defaultValue?: string[];
7
7
  color?: IColor;
8
8
  }
9
9
  declare const accoridanVariants: (props?: ({
@@ -7,11 +7,7 @@ export interface BorderRadius {
7
7
  bottomRight: number;
8
8
  }
9
9
  type IBarchartDataset = IChartDatasets & {
10
- data: {
11
- x: number;
12
- y: number;
13
- r: number;
14
- }[];
10
+ data: [];
15
11
  barThickness?: number;
16
12
  barPercentage?: number;
17
13
  };
@@ -20,16 +20,25 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
24
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
25
+ if (ar || !(i in from)) {
26
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
27
+ ar[i] = from[i];
28
+ }
29
+ }
30
+ return to.concat(ar || Array.prototype.slice.call(from));
31
+ };
23
32
  import { jsx as _jsx } from "react/jsx-runtime";
24
33
  import { Bubble } from 'react-chartjs-2';
25
- import { Chart as ChartJS, LinearScale, PointElement, Tooltip, Legend, plugins, } from 'chart.js/auto';
34
+ import { Chart as ChartJS, registerables } from 'chart.js';
26
35
  import { scalingVariants } from '../../../lib/constants';
27
36
  import { cva } from 'class-variance-authority';
28
37
  import { chartColorList, chartAlphaColorList } from '../../../lib/color/constants';
29
38
  import ChartDataLabels from 'chartjs-plugin-datalabels';
30
39
  import { useDarkMode } from '../../../lib/utils/useDarkMode';
31
40
  import { cn } from '../../../lib/utils/utils';
32
- ChartJS.register(LinearScale, PointElement, Tooltip, Legend, plugins, ChartDataLabels);
41
+ ChartJS.register.apply(ChartJS, __spreadArray(__spreadArray([], registerables, false), [ChartDataLabels], false));
33
42
  ChartJS.defaults.set('plugins.datalabels', {
34
43
  display: false,
35
44
  });
@@ -1,2 +1,2 @@
1
- import{jsx as t}from"react/jsx-runtime";import{Bubble as a}from"react-chartjs-2";import{Chart as r,LinearScale as e,PointElement as o,Tooltip as s,Legend as i,plugins as l}from"chart.js/auto";import{scalingVariants as n}from"../../constants.mjs";import{cva as c}from"class-variance-authority";import{chartColorList as d,chartAlphaColorList as p}from"../../color/constants.mjs";import m from"chartjs-plugin-datalabels";import{useDarkMode as f}from"../../utils/useDarkMode.mjs";import{cn as u}from"../../utils/utils.mjs";var g=function(){return g=Object.assign||function(t){for(var a,r=1,e=arguments.length;r<e;r++)for(var o in a=arguments[r])Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o]);return t},g.apply(this,arguments)},h=function(t,a){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&a.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)a.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(r[e[o]]=t[e[o]])}return r};r.register(e,o,s,i,l,m),r.defaults.set("plugins.datalabels",{display:!1});var b=c("",{variants:{scaling:g({},n)},defaultVariants:{scaling:"100%"}}),y=function(r){var e=r.className,o=r.title,s=r.legend,i=r.datalabels,l=r.datasets,n=r.scaling,c=r.width,m=r.height,y=r.appearance,j=void 0===y?"solid":y,v=r.isColorMixed,O=void 0===v||v,x=h(r,["className","title","legend","datalabels","datasets","scaling","width","height","appearance","isColorMixed"]),w=f()[1],C=function(t,a){return"solid"===a?t?d.mixed:d.sorting:"soft"===a?t?p.mixed:p.sorting:void 0};return l.forEach((function(t,a){var r=C(O,j),e=C(O,"solid");r&&e&&(t.backgroundColor=r[a],t.borderColor=e[a])})),t(a,g({data:{datasets:l},options:{plugins:{title:o,legend:s,datalabels:i},scales:g({},w.linescale)},className:u(b({scaling:n}),e),width:c,height:m},x))};y.displayName="BubbleChart";export{y as BubbleChart,y as default};
1
+ import{jsx as t}from"react/jsx-runtime";import{Bubble as r}from"react-chartjs-2";import{Chart as a,registerables as e}from"chart.js";import{scalingVariants as o}from"../../constants.mjs";import{cva as i}from"class-variance-authority";import{chartColorList as s,chartAlphaColorList as l}from"../../color/constants.mjs";import n from"chartjs-plugin-datalabels";import{useDarkMode as c}from"../../utils/useDarkMode.mjs";import{cn as p}from"../../utils/utils.mjs";var d=function(){return d=Object.assign||function(t){for(var r,a=1,e=arguments.length;a<e;a++)for(var o in r=arguments[a])Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);return t},d.apply(this,arguments)},f=function(t,r){var a={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&r.indexOf(e)<0&&(a[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)r.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(a[e[o]]=t[e[o]])}return a},m=function(t,r,a){if(a||2===arguments.length)for(var e,o=0,i=r.length;o<i;o++)!e&&o in r||(e||(e=Array.prototype.slice.call(r,0,o)),e[o]=r[o]);return t.concat(e||Array.prototype.slice.call(r))};a.register.apply(a,m(m([],e,!1),[n],!1)),a.defaults.set("plugins.datalabels",{display:!1});var u=i("",{variants:{scaling:d({},o)},defaultVariants:{scaling:"100%"}}),g=function(a){var e=a.className,o=a.title,i=a.legend,n=a.datalabels,m=a.datasets,g=a.scaling,h=a.width,y=a.height,b=a.appearance,v=void 0===b?"solid":b,j=a.isColorMixed,O=void 0===j||j,x=f(a,["className","title","legend","datalabels","datasets","scaling","width","height","appearance","isColorMixed"]),w=c()[1],C=function(t,r){return"solid"===r?t?s.mixed:s.sorting:"soft"===r?t?l.mixed:l.sorting:void 0};return m.forEach((function(t,r){var a=C(O,v),e=C(O,"solid");a&&e&&(t.backgroundColor=a[r],t.borderColor=e[r])})),t(r,d({data:{datasets:m},options:{plugins:{title:o,legend:i,datalabels:n},scales:d({},w.linescale)},className:p(u({scaling:g}),e),width:h,height:y},x))};g.displayName="BubbleChart";export{g as BubbleChart,g as default};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/BubbleChart/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Bubble } from 'react-chartjs-2';\nimport { Chart as ChartJS, LinearScale, PointElement, Tooltip, Legend, plugins, } from 'chart.js/auto';\nimport { scalingVariants } from '../../../lib/constants';\nimport { cva } from 'class-variance-authority';\nimport { chartColorList, chartAlphaColorList } from '../../../lib/color/constants';\nimport ChartDataLabels from 'chartjs-plugin-datalabels';\nimport { useDarkMode } from '../../../lib/utils/useDarkMode';\nimport { cn } from '../../../lib/utils/utils';\nChartJS.register(LinearScale, PointElement, Tooltip, Legend, plugins, ChartDataLabels);\nChartJS.defaults.set('plugins.datalabels', {\n display: false,\n});\nvar bubbleChartVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nexport var BubbleChart = function (_a) {\n var className = _a.className, title = _a.title, legend = _a.legend, datalabels = _a.datalabels, datasets = _a.datasets, scaling = _a.scaling, width = _a.width, height = _a.height, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.isColorMixed, isColorMixed = _c === void 0 ? true : _c, props = __rest(_a, [\"className\", \"title\", \"legend\", \"datalabels\", \"datasets\", \"scaling\", \"width\", \"height\", \"appearance\", \"isColorMixed\"]);\n var _d = useDarkMode(), isDark = _d[0], defaultScales = _d[1];\n var getChartColor = function (isColorMixed, appearance) {\n if (appearance === 'solid') {\n return isColorMixed ? chartColorList.mixed : chartColorList.sorting;\n }\n if (appearance === 'soft') {\n return isColorMixed ? chartAlphaColorList.mixed : chartAlphaColorList.sorting;\n }\n };\n datasets.forEach(function (dataset, index) {\n var ChartColor = getChartColor(isColorMixed, appearance);\n var BorderColor = getChartColor(isColorMixed, 'solid');\n if (!ChartColor || !BorderColor)\n return;\n dataset.backgroundColor = ChartColor[index];\n dataset.borderColor = BorderColor[index];\n });\n return (_jsx(Bubble, __assign({ data: { datasets: datasets }, options: {\n plugins: {\n title: title,\n legend: legend,\n datalabels: datalabels,\n },\n scales: __assign({}, defaultScales.linescale),\n }, className: cn(bubbleChartVariants({ scaling: scaling }), className), width: width, height: height }, props)));\n};\nBubbleChart.displayName = 'BubbleChart';\nexport default BubbleChart;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","ChartJS","register","LinearScale","PointElement","Tooltip","Legend","plugins","ChartDataLabels","defaults","set","display","bubbleChartVariants","cva","variants","scaling","scalingVariants","defaultVariants","BubbleChart","_a","className","title","legend","datalabels","datasets","width","height","_b","appearance","_c","isColorMixed","props","defaultScales","useDarkMode","getChartColor","chartColorList","mixed","sorting","chartAlphaColorList","forEach","dataset","index","ChartColor","BorderColor","backgroundColor","borderColor","_jsx","Bubble","data","options","scales","linescale","cn","displayName"],"mappings":"ugBAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAUAiB,EAAQC,SAASC,EAAaC,EAAcC,EAASC,EAAQC,EAASC,GACtEP,EAAQQ,SAASC,IAAI,qBAAsB,CACvCC,SAAS,IAEb,IAAIC,EAAsBC,EAAI,GAAI,CAC9BC,SAAU,CACNC,QAASlC,EAAS,CAAE,EAAEmC,IAE1BC,gBAAiB,CACbF,QAAS,UAGNG,EAAc,SAAUC,GAC/B,IAAIC,EAAYD,EAAGC,UAAWC,EAAQF,EAAGE,MAAOC,EAASH,EAAGG,OAAQC,EAAaJ,EAAGI,WAAYC,EAAWL,EAAGK,SAAUT,EAAUI,EAAGJ,QAASU,EAAQN,EAAGM,MAAOC,EAASP,EAAGO,OAAQC,EAAKR,EAAGS,WAAYA,OAAoB,IAAPD,EAAgB,QAAUA,EAAIE,EAAKV,EAAGW,aAAcA,OAAsB,IAAPD,GAAuBA,EAAIE,EAAQnC,EAAOuB,EAAI,CAAC,YAAa,QAAS,SAAU,aAAc,WAAY,UAAW,QAAS,SAAU,aAAc,iBACrYa,EAA/BC,IAAkD,GACvDC,EAAgB,SAAUJ,EAAcF,GACxC,MAAmB,UAAfA,EACOE,EAAeK,EAAeC,MAAQD,EAAeE,QAE7C,SAAfT,EACOE,EAAeQ,EAAoBF,MAAQE,EAAoBD,aAD1E,CAGR,EASI,OARAb,EAASe,SAAQ,SAAUC,EAASC,GAChC,IAAIC,EAAaR,EAAcJ,EAAcF,GACzCe,EAAcT,EAAcJ,EAAc,SACzCY,GAAeC,IAEpBH,EAAQI,gBAAkBF,EAAWD,GACrCD,EAAQK,YAAcF,EAAYF,GAC1C,IACYK,EAAKC,EAAQlE,EAAS,CAAEmE,KAAM,CAAExB,SAAUA,GAAYyB,QAAS,CAC/D1C,QAAS,CACLc,MAAOA,EACPC,OAAQA,EACRC,WAAYA,GAEhB2B,OAAQrE,EAAS,GAAImD,EAAcmB,YACpC/B,UAAWgC,EAAGxC,EAAoB,CAAEG,QAASA,IAAYK,GAAYK,MAAOA,EAAOC,OAAQA,GAAUK,GAChH,EACAb,EAAYmC,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../lib/components/BubbleChart/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { Bubble } from 'react-chartjs-2';\nimport { Chart as ChartJS, registerables } from 'chart.js';\nimport { scalingVariants } from '../../../lib/constants';\nimport { cva } from 'class-variance-authority';\nimport { chartColorList, chartAlphaColorList } from '../../../lib/color/constants';\nimport ChartDataLabels from 'chartjs-plugin-datalabels';\nimport { useDarkMode } from '../../../lib/utils/useDarkMode';\nimport { cn } from '../../../lib/utils/utils';\nChartJS.register.apply(ChartJS, __spreadArray(__spreadArray([], registerables, false), [ChartDataLabels], false));\nChartJS.defaults.set('plugins.datalabels', {\n display: false,\n});\nvar bubbleChartVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nexport var BubbleChart = function (_a) {\n var className = _a.className, title = _a.title, legend = _a.legend, datalabels = _a.datalabels, datasets = _a.datasets, scaling = _a.scaling, width = _a.width, height = _a.height, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.isColorMixed, isColorMixed = _c === void 0 ? true : _c, props = __rest(_a, [\"className\", \"title\", \"legend\", \"datalabels\", \"datasets\", \"scaling\", \"width\", \"height\", \"appearance\", \"isColorMixed\"]);\n var _d = useDarkMode(), isDark = _d[0], defaultScales = _d[1];\n var getChartColor = function (isColorMixed, appearance) {\n if (appearance === 'solid') {\n return isColorMixed ? chartColorList.mixed : chartColorList.sorting;\n }\n if (appearance === 'soft') {\n return isColorMixed ? chartAlphaColorList.mixed : chartAlphaColorList.sorting;\n }\n };\n datasets.forEach(function (dataset, index) {\n var ChartColor = getChartColor(isColorMixed, appearance);\n var BorderColor = getChartColor(isColorMixed, 'solid');\n if (!ChartColor || !BorderColor)\n return;\n dataset.backgroundColor = ChartColor[index];\n dataset.borderColor = BorderColor[index];\n });\n return (_jsx(Bubble, __assign({ data: { datasets: datasets }, options: {\n plugins: {\n title: title,\n legend: legend,\n datalabels: datalabels,\n },\n scales: __assign({}, defaultScales.linescale),\n }, className: cn(bubbleChartVariants({ scaling: scaling }), className), width: width, height: height }, props)));\n};\nBubbleChart.displayName = 'BubbleChart';\nexport default BubbleChart;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__spreadArray","to","from","pack","ar","l","Array","slice","concat","ChartJS","register","registerables","ChartDataLabels","defaults","set","display","bubbleChartVariants","cva","variants","scaling","scalingVariants","defaultVariants","BubbleChart","_a","className","title","legend","datalabels","datasets","width","height","_b","appearance","_c","isColorMixed","props","defaultScales","useDarkMode","getChartColor","chartColorList","mixed","sorting","chartAlphaColorList","forEach","dataset","index","ChartColor","BorderColor","backgroundColor","borderColor","_jsx","Bubble","data","options","plugins","scales","linescale","cn","displayName"],"mappings":"4cAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAK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EAAaJ,EAAGI,WAAYC,EAAWL,EAAGK,SAAUT,EAAUI,EAAGJ,QAASU,EAAQN,EAAGM,MAAOC,EAASP,EAAGO,OAAQC,EAAKR,EAAGS,WAAYA,OAAoB,IAAPD,EAAgB,QAAUA,EAAIE,EAAKV,EAAGW,aAAcA,OAAsB,IAAPD,GAAuBA,EAAIE,EAAQxC,EAAO4B,EAAI,CAAC,YAAa,QAAS,SAAU,aAAc,WAAY,UAAW,QAAS,SAAU,aAAc,iBACrYa,EAA/BC,IAAkD,GACvDC,EAAgB,SAAUJ,EAAcF,GACxC,MAAmB,UAAfA,EACOE,EAAeK,EAAeC,MAAQD,EAAeE,QAE7C,SAAfT,EACOE,EAAeQ,EAAoBF,MAAQE,EAAoBD,aAD1E,CAGR,EASI,OARAb,EAASe,SAAQ,SAAUC,EAASC,GAChC,IAAIC,EAAaR,EAAcJ,EAAcF,GACzCe,EAAcT,EAAcJ,EAAc,SACzCY,GAAeC,IAEpBH,EAAQI,gBAAkBF,EAAWD,GACrCD,EAAQK,YAAcF,EAAYF,GAC1C,IACYK,EAAKC,EAAQvE,EAAS,CAAEwE,KAAM,CAAExB,SAAUA,GAAYyB,QAAS,CAC/DC,QAAS,CACL7B,MAAOA,EACPC,OAAQA,EACRC,WAAYA,GAEhB4B,OAAQ3E,EAAS,GAAIwD,EAAcoB,YACpChC,UAAWiC,EAAGzC,EAAoB,CAAEG,QAASA,IAAYK,GAAYK,MAAOA,EAAOC,OAAQA,GAAUK,GAChH,EACAb,EAAYoC,YAAc"}
@@ -2,8 +2,6 @@ import React from 'react';
2
2
  import { Dialog as DialogTheme } from '@radix-ui/themes';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
  export interface DialogActionProps extends VariantProps<typeof dialogActionVariants> {
5
- color?: any;
6
- size?: any;
7
5
  }
8
6
  export declare const dialogActionVariants: (props?: ({
9
7
  radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { Dialog as DialogTheme } from '@radix-ui/themes';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
  export interface DialogCancelProps extends VariantProps<typeof dialogCancelVariants> {
5
- size?: any;
6
5
  }
7
6
  export declare const dialogCancelVariants: (props?: ({
8
7
  radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
@@ -2,10 +2,7 @@ import React, { ComponentPropsWithoutRef } from 'react';
2
2
  import { Dialog as DialogTheme } from '@radix-ui/themes';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
  import { dialogContentVariants } from './DialogContent';
5
- import { dialogTitleVariants } from './DialogTitle';
6
- import { dialogDescriptionVariants } from './DialogDescription';
7
- import { dialogActionVariants } from './DialogAction';
8
- export interface DialogProps extends VariantProps<typeof dialogContentVariants>, VariantProps<typeof dialogTitleVariants>, VariantProps<typeof dialogDescriptionVariants>, VariantProps<typeof dialogActionVariants> {
5
+ export interface DialogProps extends VariantProps<typeof dialogContentVariants> {
9
6
  color?: any;
10
7
  }
11
8
  export declare const DialogContext: React.Context<DialogProps>;
@@ -1,7 +1,6 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  export interface DialogSlotProps extends VariantProps<typeof dialogSlotVariants> {
4
- color?: any;
5
4
  }
6
5
  export declare const dialogSlotVariants: (props?: ({
7
6
  size?: "small" | "medium" | "large" | "x-large" | null | undefined;
@@ -2,8 +2,6 @@ import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import { Dialog as DialogTheme } from '@radix-ui/themes';
4
4
  export interface DialogTitleProps extends VariantProps<typeof dialogTitleVariants> {
5
- size?: any;
6
- color?: any;
7
5
  }
8
6
  export declare const dialogTitleVariants: (props?: ({
9
7
  size?: "small" | "medium" | "large" | "x-large" | null | undefined;
@@ -2,9 +2,8 @@ import React, { ComponentPropsWithoutRef } from 'react';
2
2
  import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
  import { dropdownMenuContentVariants } from './DropdownMenuContent';
5
- import { dropdownMenuItemVariants } from './DropdownMenuItem';
6
5
  import { IColor } from '../../../lib/types';
7
- export interface DropdownMenuProps extends VariantProps<typeof dropdownMenuContentVariants>, VariantProps<typeof dropdownMenuItemVariants> {
6
+ export interface DropdownMenuProps extends VariantProps<typeof dropdownMenuContentVariants> {
8
7
  color?: IColor;
9
8
  appearance?: 'solid' | 'soft';
10
9
  }
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import { HoverCard as HoverCardTheme } from '@radix-ui/themes';
4
4
  export interface HoverCardContentProps extends VariantProps<typeof hoverCardContentVariants> {
5
- size?: any;
6
5
  }
7
6
  export declare const hoverCardContentVariants: (props?: ({
8
7
  radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
@@ -11,4 +10,4 @@ export declare const hoverCardContentVariants: (props?: ({
11
10
  weight?: "bold" | "medium" | "regular" | "semibold" | null | undefined;
12
11
  color?: string | null | undefined;
13
12
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
- export declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<HoverCardTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref"> & HoverCardContentProps & React.RefAttributes<HTMLDivElement>>;
13
+ export declare const HoverCardContent: React.ForwardRefExoticComponent<Omit<Omit<HoverCardTheme.ContentProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & HoverCardContentProps & React.RefAttributes<HTMLDivElement>>;
@@ -4,6 +4,6 @@ declare const HoverCard: {
4
4
  displayName: string;
5
5
  };
6
6
  Trigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/hover-card").TriggerProps & import("react").RefAttributes<HTMLAnchorElement>, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
7
- Content: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/hover-card").ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("./HoverCardContent").HoverCardContentProps & import("react").RefAttributes<HTMLDivElement>>;
7
+ Content: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes/dist/cjs/components/hover-card").ContentProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "size"> & import("./HoverCardContent").HoverCardContentProps & import("react").RefAttributes<HTMLDivElement>>;
8
8
  };
9
9
  export default HoverCard;
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
- import { IAppearance } from '../../../lib/types';
3
+ import { IAppearance, ISize } from '../../../lib/types';
4
4
  export interface IconButtonProps extends VariantProps<typeof iconButtonVariants> {
5
5
  appearance?: IAppearance;
6
- size?: 'x-small' | 'small' | 'medium' | 'large' | 'x-large';
6
+ size?: ISize;
7
7
  }
8
8
  declare const iconButtonVariants: (props?: ({
9
9
  radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
@@ -1,7 +1,9 @@
1
1
  import React from 'react';
2
2
  import { Popover as PopoverTheme } from '@radix-ui/themes';
3
3
  import { VariantProps } from 'class-variance-authority';
4
+ import { ISize } from '../../../lib/types';
4
5
  export interface PopoverContentProps extends VariantProps<typeof popoverContentVariants> {
6
+ size?: Exclude<ISize, 'x-small'>;
5
7
  }
6
8
  export declare const popoverContentVariants: (props?: ({
7
9
  radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
@@ -2,8 +2,7 @@ import React, { ComponentPropsWithoutRef } from 'react';
2
2
  import { Popover as PopoverTheme } from '@radix-ui/themes';
3
3
  import { VariantProps } from 'class-variance-authority';
4
4
  import { popoverContentVariants } from './PopoverContent';
5
- import { popoverCloseVariants } from './PopoverClose';
6
- export interface PopoverProps extends VariantProps<typeof popoverContentVariants>, VariantProps<typeof popoverCloseVariants> {
5
+ export interface PopoverProps extends VariantProps<typeof popoverContentVariants> {
7
6
  }
8
7
  export declare const PopoverContext: React.Context<PopoverProps>;
9
8
  export declare const PopoverRoot: {
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  export interface ProgressProps extends VariantProps<typeof progressVariants> {
4
- size?: any;
4
+ size?: 'small' | 'medium' | 'large';
5
5
  appearance?: 'classic' | 'surface' | 'soft';
6
6
  }
7
7
  declare const progressVariants: (props?: ({
@@ -9,5 +9,5 @@ declare const progressVariants: (props?: ({
9
9
  size?: "small" | "medium" | "large" | null | undefined;
10
10
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
11
11
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
- export declare const Progress: React.ForwardRefExoticComponent<Omit<import("@radix-ui/themes").ProgressProps & React.RefAttributes<HTMLDivElement>, "ref"> & ProgressProps & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const Progress: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes").ProgressProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & ProgressProps & React.RefAttributes<HTMLDivElement>>;
13
13
  export default Progress;
@@ -20,16 +20,25 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  }
21
21
  return t;
22
22
  };
23
+ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
24
+ if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
25
+ if (ar || !(i in from)) {
26
+ if (!ar) ar = Array.prototype.slice.call(from, 0, i);
27
+ ar[i] = from[i];
28
+ }
29
+ }
30
+ return to.concat(ar || Array.prototype.slice.call(from));
31
+ };
23
32
  import { jsx as _jsx } from "react/jsx-runtime";
24
33
  import { cva } from 'class-variance-authority';
25
34
  import { scalingVariants } from '../../../lib/constants';
26
35
  import { Radar } from 'react-chartjs-2';
27
36
  import { cn } from '../../../lib/utils/utils';
28
- import { Chart as ChartJS, RadialLinearScale, PointElement, LineElement, Filler, Tooltip, Legend, plugins, } from 'chart.js/auto';
37
+ import { Chart as ChartJS, registerables } from 'chart.js';
29
38
  import { chartColorList, chartAlphaColorList } from '../../../lib/color/constants';
30
39
  import { useDarkMode } from '../../../lib/utils/useDarkMode';
31
40
  import ChartDataLabels from 'chartjs-plugin-datalabels';
32
- ChartJS.register(RadialLinearScale, PointElement, LineElement, Filler, Tooltip, Legend, plugins, ChartDataLabels);
41
+ ChartJS.register.apply(ChartJS, __spreadArray(__spreadArray([], registerables, false), [ChartDataLabels], false));
33
42
  ChartJS.defaults.set('plugins.datalabels', {
34
43
  display: false,
35
44
  });
@@ -1,2 +1,2 @@
1
- import{jsx as t}from"react/jsx-runtime";import{cva as a}from"class-variance-authority";import{scalingVariants as r}from"../../constants.mjs";import{Radar as e}from"react-chartjs-2";import{cn as s}from"../../utils/utils.mjs";import{Chart as o,RadialLinearScale as i,PointElement as l,LineElement as n,Filler as c,Tooltip as d,Legend as p,plugins as m}from"chart.js/auto";import{chartColorList as u,chartAlphaColorList as f}from"../../color/constants.mjs";import{useDarkMode as g}from"../../utils/useDarkMode.mjs";import h from"chartjs-plugin-datalabels";var b=function(){return b=Object.assign||function(t){for(var a,r=1,e=arguments.length;r<e;r++)for(var s in a=arguments[r])Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s]);return t},b.apply(this,arguments)},y=function(t,a){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&a.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var s=0;for(e=Object.getOwnPropertySymbols(t);s<e.length;s++)a.indexOf(e[s])<0&&Object.prototype.propertyIsEnumerable.call(t,e[s])&&(r[e[s]]=t[e[s]])}return r};o.register(i,l,n,c,d,p,m,h),o.defaults.set("plugins.datalabels",{display:!1});var j=a("",{variants:{scaling:b({},r)},defaultVariants:{scaling:"100%"}}),v=function(a){var r=a.className,o=a.title,i=a.legend,l=a.datalabels,n=a.datasets,c=a.labels,d=a.width,p=a.height,m=a.scaling,h=a.appearance,v=void 0===h?"solid":h,O=a.isColorMixed,x=void 0===O||O,w=y(a,["className","title","legend","datalabels","datasets","labels","width","height","scaling","appearance","isColorMixed"]),C=g(!0)[1],M=function(t,a){return"solid"===a?t?u.mixed:u.sorting:"soft"===a?t?f.mixed:f.sorting:void 0};return n.forEach((function(t,a){var r=M(x,v),e=M(x,"solid");r&&e&&(t.backgroundColor=r[a],t.borderColor=e[a])})),t(e,b({data:{labels:c,datasets:n},options:{plugins:{title:o,legend:i,datalabels:l},scales:b({r:{suggestedMin:50,suggestedMax:100}},C.linescale)},className:s(j({scaling:m}),r),width:d,height:p},w))};v.displayName="RadarChart";export{v as RadarChart,v as default};
1
+ import{jsx as t}from"react/jsx-runtime";import{cva as a}from"class-variance-authority";import{scalingVariants as r}from"../../constants.mjs";import{Radar as e}from"react-chartjs-2";import{cn as o}from"../../utils/utils.mjs";import{Chart as s,registerables as l}from"chart.js";import{chartColorList as i,chartAlphaColorList as n}from"../../color/constants.mjs";import{useDarkMode as c}from"../../utils/useDarkMode.mjs";import p from"chartjs-plugin-datalabels";var d=function(){return d=Object.assign||function(t){for(var a,r=1,e=arguments.length;r<e;r++)for(var o in a=arguments[r])Object.prototype.hasOwnProperty.call(a,o)&&(t[o]=a[o]);return t},d.apply(this,arguments)},f=function(t,a){var r={};for(var e in t)Object.prototype.hasOwnProperty.call(t,e)&&a.indexOf(e)<0&&(r[e]=t[e]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(e=Object.getOwnPropertySymbols(t);o<e.length;o++)a.indexOf(e[o])<0&&Object.prototype.propertyIsEnumerable.call(t,e[o])&&(r[e[o]]=t[e[o]])}return r},m=function(t,a,r){if(r||2===arguments.length)for(var e,o=0,s=a.length;o<s;o++)!e&&o in a||(e||(e=Array.prototype.slice.call(a,0,o)),e[o]=a[o]);return t.concat(e||Array.prototype.slice.call(a))};s.register.apply(s,m(m([],l,!1),[p],!1)),s.defaults.set("plugins.datalabels",{display:!1});var u=a("",{variants:{scaling:d({},r)},defaultVariants:{scaling:"100%"}}),g=function(a){var r=a.className,s=a.title,l=a.legend,p=a.datalabels,m=a.datasets,g=a.labels,h=a.width,y=a.height,b=a.scaling,v=a.appearance,j=void 0===v?"solid":v,O=a.isColorMixed,x=void 0===O||O,w=f(a,["className","title","legend","datalabels","datasets","labels","width","height","scaling","appearance","isColorMixed"]),C=c(!0)[1],M=function(t,a){return"solid"===a?t?i.mixed:i.sorting:"soft"===a?t?n.mixed:n.sorting:void 0};return m.forEach((function(t,a){var r=M(x,j),e=M(x,"solid");r&&e&&(t.backgroundColor=r[a],t.borderColor=e[a])})),t(e,d({data:{labels:g,datasets:m},options:{plugins:{title:s,legend:l,datalabels:p},scales:d({r:{suggestedMin:50,suggestedMax:100}},C.linescale)},className:o(u({scaling:b}),r),width:h,height:y},w))};g.displayName="RadarChart";export{g as RadarChart,g as default};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/RadarChart/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { cva } from 'class-variance-authority';\nimport { scalingVariants } from '../../../lib/constants';\nimport { Radar } from 'react-chartjs-2';\nimport { cn } from '../../../lib/utils/utils';\nimport { Chart as ChartJS, RadialLinearScale, PointElement, LineElement, Filler, Tooltip, Legend, plugins, } from 'chart.js/auto';\nimport { chartColorList, chartAlphaColorList } from '../../../lib/color/constants';\nimport { useDarkMode } from '../../../lib/utils/useDarkMode';\nimport ChartDataLabels from 'chartjs-plugin-datalabels';\nChartJS.register(RadialLinearScale, PointElement, LineElement, Filler, Tooltip, Legend, plugins, ChartDataLabels);\nChartJS.defaults.set('plugins.datalabels', {\n display: false,\n});\nvar radarChartVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nexport var RadarChart = function (_a) {\n var className = _a.className, title = _a.title, legend = _a.legend, datalabels = _a.datalabels, datasets = _a.datasets, labels = _a.labels, width = _a.width, height = _a.height, scaling = _a.scaling, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.isColorMixed, isColorMixed = _c === void 0 ? true : _c, props = __rest(_a, [\"className\", \"title\", \"legend\", \"datalabels\", \"datasets\", \"labels\", \"width\", \"height\", \"scaling\", \"appearance\", \"isColorMixed\"]);\n var _d = useDarkMode(true), isDark = _d[0], defaultScales = _d[1];\n var getChartColor = function (isColorMixed, appearance) {\n if (appearance === 'solid') {\n return isColorMixed ? chartColorList.mixed : chartColorList.sorting;\n }\n if (appearance === 'soft') {\n return isColorMixed ? chartAlphaColorList.mixed : chartAlphaColorList.sorting;\n }\n };\n datasets.forEach(function (dataset, index) {\n var ChartColor = getChartColor(isColorMixed, appearance);\n var BorderColor = getChartColor(isColorMixed, 'solid');\n if (!ChartColor || !BorderColor)\n return;\n dataset.backgroundColor = ChartColor[index];\n dataset.borderColor = BorderColor[index];\n });\n return (_jsx(Radar, __assign({ data: { labels: labels, datasets: datasets }, options: {\n plugins: {\n title: title,\n legend: legend,\n datalabels: datalabels,\n },\n scales: __assign({ r: {\n suggestedMin: 50,\n suggestedMax: 100,\n } }, defaultScales.linescale),\n }, className: cn(radarChartVariants({ scaling: scaling }), className), width: width, height: height }, props)));\n};\nRadarChart.displayName = 'RadarChart';\nexport default RadarChart;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","ChartJS","register","RadialLinearScale","PointElement","LineElement","Filler","Tooltip","Legend","plugins","ChartDataLabels","defaults","set","display","radarChartVariants","cva","variants","scaling","scalingVariants","defaultVariants","RadarChart","_a","className","title","legend","datalabels","datasets","labels","width","height","_b","appearance","_c","isColorMixed","props","defaultScales","useDarkMode","getChartColor","chartColorList","mixed","sorting","chartAlphaColorList","forEach","dataset","index","ChartColor","BorderColor","backgroundColor","borderColor","_jsx","Radar","data","options","scales","r","suggestedMin","suggestedMax","linescale","cn","displayName"],"mappings":"yiBAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EAUAiB,EAAQC,SAASC,EAAmBC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WoC,EAAG5C,EAAmB,CAAEG,QAASA,IAAYK,GAAYM,MAAOA,EAAOC,OAAQA,GAAUK,GAC/G,EACAd,EAAWuC,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../lib/components/RadarChart/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nvar __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\n if (ar || !(i in from)) {\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\n ar[i] = from[i];\n }\n }\n return to.concat(ar || Array.prototype.slice.call(from));\n};\nimport { jsx as _jsx } from \"react/jsx-runtime\";\nimport { cva } from 'class-variance-authority';\nimport { scalingVariants } from '../../../lib/constants';\nimport { Radar } from 'react-chartjs-2';\nimport { cn } from '../../../lib/utils/utils';\nimport { Chart as ChartJS, registerables } from 'chart.js';\nimport { chartColorList, chartAlphaColorList } from '../../../lib/color/constants';\nimport { useDarkMode } from '../../../lib/utils/useDarkMode';\nimport ChartDataLabels from 'chartjs-plugin-datalabels';\nChartJS.register.apply(ChartJS, __spreadArray(__spreadArray([], registerables, false), [ChartDataLabels], false));\nChartJS.defaults.set('plugins.datalabels', {\n display: false,\n});\nvar radarChartVariants = cva('', {\n variants: {\n scaling: __assign({}, scalingVariants),\n },\n defaultVariants: {\n scaling: '100%',\n },\n});\nexport var RadarChart = function (_a) {\n var className = _a.className, title = _a.title, legend = _a.legend, datalabels = _a.datalabels, datasets = _a.datasets, labels = _a.labels, width = _a.width, height = _a.height, scaling = _a.scaling, _b = _a.appearance, appearance = _b === void 0 ? 'solid' : _b, _c = _a.isColorMixed, isColorMixed = _c === void 0 ? true : _c, props = __rest(_a, [\"className\", \"title\", \"legend\", \"datalabels\", \"datasets\", \"labels\", \"width\", \"height\", \"scaling\", \"appearance\", \"isColorMixed\"]);\n var _d = useDarkMode(true), isDark = _d[0], defaultScales = _d[1];\n var getChartColor = function (isColorMixed, appearance) {\n if (appearance === 'solid') {\n return isColorMixed ? chartColorList.mixed : chartColorList.sorting;\n }\n if (appearance === 'soft') {\n return isColorMixed ? chartAlphaColorList.mixed : chartAlphaColorList.sorting;\n }\n };\n datasets.forEach(function (dataset, index) {\n var ChartColor = getChartColor(isColorMixed, appearance);\n var BorderColor = getChartColor(isColorMixed, 'solid');\n if (!ChartColor || !BorderColor)\n return;\n dataset.backgroundColor = ChartColor[index];\n dataset.borderColor = BorderColor[index];\n });\n return (_jsx(Radar, __assign({ data: { labels: labels, datasets: datasets }, options: {\n plugins: {\n title: title,\n legend: legend,\n datalabels: datalabels,\n },\n scales: __assign({ r: {\n suggestedMin: 50,\n suggestedMax: 100,\n } }, defaultScales.linescale),\n }, className: cn(radarChartVariants({ scaling: scaling }), className), width: width, height: height }, props)));\n};\nRadarChart.displayName = 'RadarChart';\nexport default RadarChart;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","__spreadArray","to","from","pack","ar","l","Array","slice","concat","ChartJS","register","registerables","ChartDataLabels","defaults","set","display","radarChartVariants","cva","variants","scaling","scalingVariants","defaultVariants","RadarChart","_a","className","title","legend","datalabels","datasets","labels","width","height","_b","appearance","_c","isColorMixed","props","defaultScales","useDarkMode","getChartColor","chartColorList","mixed","sorting","chartAlphaColorList","forEach","dataset","index","ChartColor","BorderColor","backgroundColor","borderColor","_jsx","Radar","data","options","plugins","scales","r","suggestedMin","suggestedMax","linescale","cn","displayName"],"mappings":"2cAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C,IAAIb,EAAI,CAAA,EACR,IAAK,IAAIM,KAAKL,EAAOH,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,IAAMO,EAAEC,QAAQR,GAAK,IAC9EN,EAAEM,GAAKL,EAAEK,IACb,GAAS,MAALL,GAAqD,mBAAjCH,OAAOiB,sBACtB,KAAIb,EAAI,EAAb,IAAgBI,EAAIR,OAAOiB,sBAAsBd,GAAIC,EAAII,EAAED,OAAQH,IAC3DW,EAAEC,QAAQR,EAAEJ,IAAM,GAAKJ,OAAOS,UAAUS,qBAAqBP,KAAKR,EAAGK,EAAEJ,MACvEF,EAAEM,EAAEJ,IAAMD,EAAEK,EAAEJ,IAF4B,CAItD,OAAOF,CACX,EACIiB,EAAgD,SAAUC,EAAIC,EAAMC,GACpE,GAAIA,GAA6B,IAArBhB,UAAUC,OAAc,IAAK,IAA4BgB,EAAxBnB,EAAI,EAAGoB,EAAIH,EAAKd,OAAYH,EAAIoB,EAAGpB,KACxEmB,GAAQnB,KAAKiB,IACRE,IAAIA,EAAKE,MAAMhB,UAAUiB,MAAMf,KAAKU,EAAM,EAAGjB,IAClDmB,EAAGnB,GAAKiB,EAAKjB,IAGrB,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AAQA,EACRC,WAAYA,GAEhB6B,OAAQ5E,EAAS,CAAE6E,EAAG,CACdC,aAAc,GACdC,aAAc,MACbtB,EAAcuB,YACxBpC,UAAWqC,EAAG7C,EAAmB,CAAEG,QAASA,IAAYK,GAAYM,MAAOA,EAAOC,OAAQA,GAAUK,GAC/G,EACAd,EAAWwC,YAAc"}
@@ -2,12 +2,12 @@ import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import { IScaling } from '../../../lib/types';
4
4
  export interface RadioProps extends VariantProps<typeof radioVariants> {
5
- size?: any;
5
+ size?: 'small' | 'medium' | 'large';
6
6
  scaling?: IScaling;
7
7
  appearance?: 'classic' | 'surface' | 'soft';
8
8
  }
9
9
  declare const radioVariants: (props?: ({
10
10
  size?: "small" | "medium" | "large" | null | undefined;
11
11
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
12
- export declare const Radio: React.ForwardRefExoticComponent<Omit<import("@radix-ui/themes").RadioProps & React.RefAttributes<HTMLInputElement>, "ref"> & RadioProps & React.RefAttributes<HTMLInputElement>>;
12
+ export declare const Radio: React.ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes").RadioProps & React.RefAttributes<HTMLInputElement>, "ref">, "size"> & RadioProps & React.RefAttributes<HTMLInputElement>>;
13
13
  export default Radio;
@@ -21,7 +21,7 @@ var __rest = (this && this.__rest) || function (s, e) {
21
21
  return t;
22
22
  };
23
23
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
24
- import React from 'react';
24
+ import { forwardRef } from 'react';
25
25
  import { cva } from 'class-variance-authority';
26
26
  import { Theme, Radio as RadioTheme, Flex } from '@radix-ui/themes';
27
27
  import { Text } from '../../../lib/Typography/Text';
@@ -38,7 +38,7 @@ var radioVariants = cva('font-normal', {
38
38
  size: 'medium',
39
39
  },
40
40
  });
41
- export var Radio = React.forwardRef(function (_a, ref) {
41
+ export var Radio = forwardRef(function (_a, ref) {
42
42
  var value = _a.value, scaling = _a.scaling, color = _a.color, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, children = _a.children, className = _a.className, props = __rest(_a, ["value", "scaling", "color", "size", "appearance", "children", "className"]);
43
43
  if (!color)
44
44
  color = 'red';
@@ -1,2 +1,2 @@
1
- import{jsx as e,jsxs as r}from"react/jsx-runtime";import a from"react";import{cva as t}from"class-variance-authority";import{Theme as i,Flex as o,Radio as l}from"@radix-ui/themes";import{Text as n}from"../../Typography/Text/index.mjs";import{cn as s}from"../../utils/utils.mjs";var c=function(){return c=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var i in r=arguments[a])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},c.apply(this,arguments)},p=function(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)r.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(a[t[i]]=e[t[i]])}return a},m=t("font-normal",{variants:{size:{small:"text-[12px] gap-2",medium:"text-[14px] gap-2",large:"text-[16px] gap-3"}},defaultVariants:{size:"medium"}}),f=a.forwardRef((function(a,t){var f=a.value,u=a.scaling,d=a.color,v=a.size,y=void 0===v?"medium":v,g=a.appearance,h=void 0===g?"surface":g,x=a.children,O=a.className,b=p(a,["value","scaling","color","size","appearance","children","className"]);d||(d="red");var j="2";return"small"===y&&(j="1"),"large"===y&&(j="3"),e(i,{accentColor:d,scaling:u,children:e(o,{asChild:!0,className:s(m({size:y}),O),children:r(n,{as:"label",size:j,children:[e(l,c({ref:t,value:f,variant:h,size:j},b)),x]})})})}));f.displayName="Radio";export{f as Radio,f as default};
1
+ import{jsx as e,jsxs as r}from"react/jsx-runtime";import{forwardRef as a}from"react";import{cva as t}from"class-variance-authority";import{Theme as i,Flex as o,Radio as l}from"@radix-ui/themes";import{Text as n}from"../../Typography/Text/index.mjs";import{cn as s}from"../../utils/utils.mjs";var c=function(){return c=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var i in r=arguments[a])Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);return e},c.apply(this,arguments)},p=function(e,r){var a={};for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&r.indexOf(t)<0&&(a[t]=e[t]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var i=0;for(t=Object.getOwnPropertySymbols(e);i<t.length;i++)r.indexOf(t[i])<0&&Object.prototype.propertyIsEnumerable.call(e,t[i])&&(a[t[i]]=e[t[i]])}return a},m=t("font-normal",{variants:{size:{small:"text-[12px] gap-2",medium:"text-[14px] gap-2",large:"text-[16px] gap-3"}},defaultVariants:{size:"medium"}}),u=a((function(a,t){var u=a.value,f=a.scaling,d=a.color,v=a.size,y=void 0===v?"medium":v,g=a.appearance,h=void 0===g?"surface":g,x=a.children,O=a.className,b=p(a,["value","scaling","color","size","appearance","children","className"]);d||(d="red");var j="2";return"small"===y&&(j="1"),"large"===y&&(j="3"),e(i,{accentColor:d,scaling:f,children:e(o,{asChild:!0,className:s(m({size:y}),O),children:r(n,{as:"label",size:j,children:[e(l,c({ref:t,value:u,variant:h,size:j},b)),x]})})})}));u.displayName="Radio";export{u as Radio,u as default};
2
2
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":["../../../lib/components/Radio/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport React from 'react';\nimport { cva } from 'class-variance-authority';\nimport { Theme, Radio as RadioTheme, Flex } from '@radix-ui/themes';\nimport { Text } from '../../../lib/Typography/Text';\nimport { cn } from '../../../lib/utils/utils';\nvar radioVariants = cva('font-normal', {\n variants: {\n size: {\n small: 'text-[12px] gap-2',\n medium: 'text-[14px] gap-2',\n large: 'text-[16px] gap-3',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var Radio = React.forwardRef(function (_a, ref) {\n var value = _a.value, scaling = _a.scaling, color = _a.color, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, children = _a.children, className = _a.className, props = __rest(_a, [\"value\", \"scaling\", \"color\", \"size\", \"appearance\", \"children\", \"className\"]);\n if (!color)\n color = 'red';\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { accentColor: color, scaling: scaling, children: _jsx(Flex, { asChild: true, className: cn(radioVariants({ size: size }), className), children: _jsxs(Text, { as: \"label\", size: sizeTheme, children: [_jsx(RadioTheme, __assign({ ref: ref, value: value, variant: appearance, size: sizeTheme }, props)), children] }) }) }));\n});\nRadio.displayName = 'Radio';\nexport default Radio;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","radioVariants","cva","variants","size","small","medium","large","defaultVariants","Radio","React","forwardRef","_a","ref","value","scaling","color","_b","_c","appearance","children","className","props","sizeTheme","_jsx","Theme","acc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,EAAQ1B,EAAOgB,EAAI,CAAC,QAAS,UAAW,QAAS,OAAQ,aAAc,WAAY,cACnTI,IACDA,EAAQ,OACZ,IAAIO,EAAY,IAKhB,MAJa,UAATnB,IACAmB,EAAY,KACH,UAATnB,IACAmB,EAAY,KACRC,EAAKC,EAAO,CAAEC,YAAaV,EAAOD,QAASA,EAASK,SAAUI,EAAKG,EAAM,CAAEC,SAAS,EAAMP,UAAWQ,EAAG5B,EAAc,CAAEG,KAAMA,IAASiB,GAAYD,SAAUU,EAAMC,EAAM,CAAEC,GAAI,QAAS5B,KAAMmB,EAAWH,SAAU,CAACI,EAAKS,EAAYpD,EAAS,CAAEgC,IAAKA,EAAKC,MAAOA,EAAOoB,QAASf,EAAYf,KAAMmB,GAAaD,IAASF,QACrU,IACAX,EAAM0B,YAAc"}
1
+ {"version":3,"file":"index.mjs","sources":["../../../lib/components/Radio/index.js"],"sourcesContent":["var __assign = (this && this.__assign) || function () {\n __assign = Object.assign || function(t) {\n for (var s, i = 1, n = arguments.length; i < n; i++) {\n s = arguments[i];\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))\n t[p] = s[p];\n }\n return t;\n };\n return __assign.apply(this, arguments);\n};\nvar __rest = (this && this.__rest) || function (s, e) {\n var t = {};\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\n t[p] = s[p];\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\n t[p[i]] = s[p[i]];\n }\n return t;\n};\nimport { jsx as _jsx, jsxs as _jsxs } from \"react/jsx-runtime\";\nimport { forwardRef } from 'react';\nimport { cva } from 'class-variance-authority';\nimport { Theme, Radio as RadioTheme, Flex } from '@radix-ui/themes';\nimport { Text } from '../../../lib/Typography/Text';\nimport { cn } from '../../../lib/utils/utils';\nvar radioVariants = cva('font-normal', {\n variants: {\n size: {\n small: 'text-[12px] gap-2',\n medium: 'text-[14px] gap-2',\n large: 'text-[16px] gap-3',\n },\n },\n defaultVariants: {\n size: 'medium',\n },\n});\nexport var Radio = forwardRef(function (_a, ref) {\n var value = _a.value, scaling = _a.scaling, color = _a.color, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.appearance, appearance = _c === void 0 ? 'surface' : _c, children = _a.children, className = _a.className, props = __rest(_a, [\"value\", \"scaling\", \"color\", \"size\", \"appearance\", \"children\", \"className\"]);\n if (!color)\n color = 'red';\n var sizeTheme = '2';\n if (size === 'small')\n sizeTheme = '1';\n if (size === 'large')\n sizeTheme = '3';\n return (_jsx(Theme, { accentColor: color, scaling: scaling, children: _jsx(Flex, { asChild: true, className: cn(radioVariants({ size: size }), className), children: _jsxs(Text, { as: \"label\", size: sizeTheme, children: [_jsx(RadioTheme, __assign({ ref: ref, value: value, variant: appearance, size: sizeTheme }, props)), children] }) }) }));\n});\nRadio.displayName = 'Radio';\nexport default Radio;\n"],"names":["__assign","Object","assign","t","s","i","n","arguments","length","p","prototype","hasOwnProperty","call","apply","this","__rest","e","indexOf","getOwnPropertySymbols","propertyIsEnumerable","radioVariants","cva","variants","size","small","medium","large","defaultVariants","Radio","forwardRef","_a","ref","value","scaling","color","_b","_c","appearance","children","className","props","sizeTheme","_jsx","Theme","accentColor","Flex","asChild","cn","_jsxs","Text","as","RadioTheme","variant","displayName"],"mappings":"oSAAA,IAAIA,EAAsC,WAStC,OARAA,EAAWC,OAAOC,QAAU,SAASC,GACjC,IAAK,IAAIC,EAAGC,EAAI,EAAGC,EAAIC,UAAUC,OAAQH,EAAIC,EAAGD,IAE5C,IAAK,IAAII,KADTL,EAAIG,UAAUF,GACOJ,OAAOS,UAAUC,eAAeC,KAAKR,EAAGK,KACzDN,EAAEM,GAAKL,EAAEK,IAEjB,OAAON,CACf,EACWH,EAASa,MAAMC,KAAMP,UAChC,EACIQ,EAAkC,SAAUX,EAAGY,GAC/C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AS,CAAE+B,IAAKA,EAAKC,MAAOA,EAAOoB,QAASf,EAAYd,KAAMkB,GAAaD,IAASF,QACrU,IACAV,EAAMyB,YAAc"}
@@ -9,5 +9,5 @@ declare const radioCardsVariants: (props?: ({
9
9
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
10
10
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
11
11
  export declare const RadioCardsContext: React.Context<RadioCardsProps>;
12
- export declare const RadioCardsRoot: React.ForwardRefExoticComponent<Omit<RadioCardsTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & RadioCardsProps & React.RefAttributes<HTMLDivElement>>;
12
+ export declare const RadioCardsRoot: React.ForwardRefExoticComponent<Omit<Omit<RadioCardsTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & RadioCardsProps & React.RefAttributes<HTMLDivElement>>;
13
13
  export {};
@@ -1,5 +1,5 @@
1
1
  declare const RadioCards: {
2
- Root: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/radio-cards").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("./RadioCardsRoot").RadioCardsProps & import("react").RefAttributes<HTMLDivElement>>;
2
+ Root: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes/dist/cjs/components/radio-cards").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "size"> & import("./RadioCardsRoot").RadioCardsProps & import("react").RefAttributes<HTMLDivElement>>;
3
3
  Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/radio-cards").ItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("./RadioCardsItem").RadioCardsItemProps & import("react").RefAttributes<HTMLButtonElement>>;
4
4
  };
5
5
  export default RadioCards;
@@ -2,7 +2,6 @@ import React from 'react';
2
2
  import { VariantProps } from 'class-variance-authority';
3
3
  import { RadioGroup as RadioGroupTheme } from '@radix-ui/themes';
4
4
  export interface RadioGroupItemProps extends VariantProps<typeof radioGroupItemVariants> {
5
- size?: any;
6
5
  value: string;
7
6
  appearance?: 'classic' | 'surface' | 'soft';
8
7
  }
@@ -11,5 +11,5 @@ declare const radioGroupVariants: (props?: ({
11
11
  size?: "small" | "medium" | "large" | null | undefined;
12
12
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
13
13
  export declare const RadioGroupContext: React.Context<RadioGroupProps>;
14
- export declare const RadioGroupRoot: React.ForwardRefExoticComponent<Omit<RadioGroupTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
14
+ export declare const RadioGroupRoot: React.ForwardRefExoticComponent<Omit<Omit<RadioGroupTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & RadioGroupProps & React.RefAttributes<HTMLDivElement>>;
15
15
  export {};
@@ -1,5 +1,5 @@
1
1
  declare const RadioGroup: {
2
- Root: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/radio-group").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("./RadioGroupRoot").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
2
+ Root: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes/dist/cjs/components/radio-group").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "size"> & import("./RadioGroupRoot").RadioGroupProps & import("react").RefAttributes<HTMLDivElement>>;
3
3
  Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/radio-group").ItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("./RadioGroupItem").RadioGroupItemProps & import("react").RefAttributes<HTMLButtonElement>>;
4
4
  };
5
5
  export default RadioGroup;
@@ -1,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import * as ScrollAreaPrimitive from '@radix-ui/react-scroll-area';
3
3
  export interface ScrollAreaProps {
4
- size?: any;
4
+ size?: 'small' | 'medium' | 'large';
5
5
  radius?: 'none' | 'small' | 'medium' | 'large' | 'full';
6
6
  scrollbars?: 'vertical' | 'horizontal' | 'both';
7
7
  }
@@ -11,4 +11,4 @@ export interface SegmentedControlProps extends VariantProps<typeof segmentedCont
11
11
  declare const segmentedControlVariants: (props?: ({
12
12
  scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
13
13
  } & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
14
- export declare const SegmentedControlRoot: React.ForwardRefExoticComponent<Omit<SegmentedControlTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref"> & SegmentedControlProps & React.RefAttributes<HTMLDivElement>>;
14
+ export declare const SegmentedControlRoot: React.ForwardRefExoticComponent<Omit<Omit<SegmentedControlTheme.RootProps & React.RefAttributes<HTMLDivElement>, "ref">, "size"> & SegmentedControlProps & React.RefAttributes<HTMLDivElement>>;
@@ -1,5 +1,5 @@
1
1
  declare const SegmentedControl: {
2
- Root: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/segmented-control").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref"> & import("./SegmentedControlRoot").SegmentedControlProps & import("react").RefAttributes<HTMLDivElement>>;
2
+ Root: import("react").ForwardRefExoticComponent<Omit<Omit<import("@radix-ui/themes/dist/cjs/components/segmented-control").RootProps & import("react").RefAttributes<HTMLDivElement>, "ref">, "size"> & import("./SegmentedControlRoot").SegmentedControlProps & import("react").RefAttributes<HTMLDivElement>>;
3
3
  Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/segmented-control").ItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("./SegmentedControlItem").SegmentedControlItemProps & import("react").RefAttributes<HTMLButtonElement>>;
4
4
  };
5
5
  export default SegmentedControl;