@lotte-innovate/ui-component-test 0.0.61 → 0.0.63
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/lib/components/Accordion/index.d.ts +0 -1
- package/dist/lib/components/BarChart/index.d.ts +1 -5
- package/dist/lib/components/BubbleChart/index.js +11 -2
- package/dist/lib/components/BubbleChart/index.mjs +1 -1
- package/dist/lib/components/BubbleChart/index.mjs.map +1 -1
- package/dist/lib/components/Dialog/DialogAction.d.ts +0 -2
- package/dist/lib/components/Dialog/DialogCancel.d.ts +0 -1
- package/dist/lib/components/Dialog/DialogRoot.d.ts +1 -4
- package/dist/lib/components/Dialog/DialogSlot.d.ts +0 -1
- package/dist/lib/components/Dialog/DialogTitle.d.ts +0 -2
- package/dist/lib/components/DropdownMenu/DropdownMenuRoot.d.ts +1 -2
- package/dist/lib/components/HoverCard/HoverCardContent.d.ts +1 -2
- package/dist/lib/components/HoverCard/index.d.ts +1 -1
- package/dist/lib/components/IconButton/index.d.ts +2 -2
- package/dist/lib/components/Popover/PopoverContent.d.ts +2 -0
- package/dist/lib/components/Popover/PopoverRoot.d.ts +1 -2
- package/dist/lib/components/Progress/index.d.ts +2 -2
- package/dist/lib/components/RadarChart/index.js +11 -2
- package/dist/lib/components/RadarChart/index.mjs +1 -1
- package/dist/lib/components/RadarChart/index.mjs.map +1 -1
- package/dist/lib/components/Radio/index.d.ts +2 -2
- package/dist/lib/components/Radio/index.js +2 -2
- package/dist/lib/components/Radio/index.mjs +1 -1
- package/dist/lib/components/Radio/index.mjs.map +1 -1
- package/dist/lib/components/RadioCards/RadioCardsRoot.d.ts +1 -1
- package/dist/lib/components/RadioCards/index.d.ts +1 -1
- package/dist/lib/components/RadioGroup/RadioGroupItem.d.ts +0 -1
- package/dist/lib/components/RadioGroup/RadioGroupRoot.d.ts +1 -1
- package/dist/lib/components/RadioGroup/index.d.ts +1 -1
- package/dist/lib/components/ScrollArea/index.d.ts +1 -1
- package/dist/lib/components/SegmentedControl/SegmentedControlRoot.d.ts +1 -1
- package/dist/lib/components/SegmentedControl/index.d.ts +1 -1
- package/dist/lib/components/TextArea/index.d.ts +1 -1
- package/dist/node_modules/chart.js/dist/chart.mjs +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
@@ -3,7 +3,6 @@ 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;
|
7
6
|
color?: IColor;
|
8
7
|
}
|
9
8
|
declare const accoridanVariants: (props?: ({
|
@@ -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,
|
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(
|
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{j as t}from"../../../_virtual/jsx-runtime.mjs";import{Bubble as a}from"react-chartjs-2";import"
|
1
|
+
import{j as t}from"../../../_virtual/jsx-runtime.mjs";import{Bubble as a}from"react-chartjs-2";import{Chart as r,registerables as e}from"chart.js";import{scalingVariants as o}from"../../constants.mjs";import{cva as s}from"class-variance-authority";import{chartColorList as i,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 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)},m=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},f=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))};r.register.apply(r,f(f([],e,!1),[n],!1)),r.defaults.set("plugins.datalabels",{display:!1});var u=s("",{variants:{scaling:d({},o)},defaultVariants:{scaling:"100%"}}),g=function(r){var e=r.className,o=r.title,s=r.legend,n=r.datalabels,f=r.datasets,g=r.scaling,h=r.width,y=r.height,b=r.appearance,j=void 0===b?"solid":b,v=r.isColorMixed,O=void 0===v||v,x=m(r,["className","title","legend","datalabels","datasets","scaling","width","height","appearance","isColorMixed"]),w=c()[1],C=function(t,a){return"solid"===a?t?i.mixed:i.sorting:"soft"===a?t?l.mixed:l.sorting:void 0};return f.forEach((function(t,a){var r=C(O,j),e=C(O,"solid");r&&e&&(t.backgroundColor=r[a],t.borderColor=e[a])})),t.jsx(a,d({data:{datasets:f},options:{plugins:{title:o,legend:s,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,
|
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","jsx","Bubble","data","options","plugins","scales","linescale","cn","displayName"],"mappings":"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"}
|
@@ -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
|
-
|
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
|
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>>;
|
@@ -5,6 +5,6 @@ declare const HoverCard: {
|
|
5
5
|
displayName: string;
|
6
6
|
};
|
7
7
|
Trigger: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/hover-card").TriggerProps & import("react").RefAttributes<HTMLAnchorElement>, "ref"> & import("react").RefAttributes<HTMLAnchorElement>>;
|
8
|
-
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>>;
|
8
|
+
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>>;
|
9
9
|
};
|
10
10
|
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?:
|
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
|
-
|
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?:
|
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,
|
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(
|
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{j as t}from"../../../_virtual/jsx-runtime.mjs";import{cva as a}from"class-variance-authority";import{scalingVariants as
|
1
|
+
import{j as t}from"../../../_virtual/jsx-runtime.mjs";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,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 s in a=arguments[r])Object.prototype.hasOwnProperty.call(a,s)&&(t[s]=a[s]);return t},d.apply(this,arguments)},m=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},f=function(t,a,r){if(r||2===arguments.length)for(var e,s=0,o=a.length;s<o;s++)!e&&s in a||(e||(e=Array.prototype.slice.call(a,0,s)),e[s]=a[s]);return t.concat(e||Array.prototype.slice.call(a))};o.register.apply(o,f(f([],l,!1),[p],!1)),o.defaults.set("plugins.datalabels",{display:!1});var u=a("",{variants:{scaling:d({},r)},defaultVariants:{scaling:"100%"}}),g=function(a){var r=a.className,o=a.title,l=a.legend,p=a.datalabels,f=a.datasets,g=a.labels,h=a.width,y=a.height,b=a.scaling,j=a.appearance,v=void 0===j?"solid":j,O=a.isColorMixed,x=void 0===O||O,w=m(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 f.forEach((function(t,a){var r=M(x,v),e=M(x,"solid");r&&e&&(t.backgroundColor=r[a],t.borderColor=e[a])})),t.jsx(e,d({data:{labels:g,datasets:f},options:{plugins:{title:o,legend:l,datalabels:p},scales:d({r:{suggestedMin:50,suggestedMax:100}},C.linescale)},className:s(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,
|
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":"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"}
|
@@ -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?:
|
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
|
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 =
|
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{j as e}from"../../../_virtual/jsx-runtime.mjs";import r
|
1
|
+
import{j as e}from"../../../_virtual/jsx-runtime.mjs";import{forwardRef as r}from"react";import{cva as a}from"class-variance-authority";import{Text as t}from"../../Typography/Text/index.mjs";import{cn as s}from"../../utils/utils.mjs";import{Radio as o}from"../../../node_modules/@radix-ui/themes/dist/esm/components/radio.mjs";import{Theme as i}from"../../../node_modules/@radix-ui/themes/dist/esm/components/theme.mjs";import{Flex as n}from"../../../node_modules/@radix-ui/themes/dist/esm/components/flex.mjs";var l=function(){return l=Object.assign||function(e){for(var r,a=1,t=arguments.length;a<t;a++)for(var s in r=arguments[a])Object.prototype.hasOwnProperty.call(r,s)&&(e[s]=r[s]);return e},l.apply(this,arguments)},m=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 s=0;for(t=Object.getOwnPropertySymbols(e);s<t.length;s++)r.indexOf(t[s])<0&&Object.prototype.propertyIsEnumerable.call(e,t[s])&&(a[t[s]]=e[t[s]])}return a},p=a("font-normal",{variants:{size:{small:"text-[12px] gap-2",medium:"text-[14px] gap-2",large:"text-[16px] gap-3"}},defaultVariants:{size:"medium"}}),c=r((function(r,a){var c=r.value,d=r.scaling,u=r.color,f=r.size,x=void 0===f?"medium":f,h=r.appearance,j=void 0===h?"surface":h,v=r.children,y=r.className,g=m(r,["value","scaling","color","size","appearance","children","className"]);u||(u="red");var O="2";return"small"===x&&(O="1"),"large"===x&&(O="3"),e.jsx(i,{accentColor:u,scaling:d,children:e.jsx(n,{asChild:!0,className:s(p({size:x}),y),children:e.jsxs(t,{as:"label",size:O,children:[e.jsx(o,l({ref:a,value:c,variant:j,size:O},g)),v]})})})}));c.displayName="Radio";export{c as Radio,c 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
|
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","jsxs","Text","as","RadioTheme","variant","displayName"],"mappings":"2gBAAA,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,EAOIiB,EAAgBC,EAAI,cAAe,CACnCC,SAAU,CACNC,KAAM,CACFC,MAAO,oBACPC,OAAQ,oBACRC,MAAO,sBAGfC,gBAAiB,CACbJ,KAAM,YAGHK,EAAQC,GAAW,SAAUC,EAAIC,GACxC,IAAIC,EAAQF,EAAGE,MAAOC,EAAUH,EAAGG,QAASC,EAAQJ,EAAGI,MAAOC,EAAKL,EAAGP,KAAMA,OAAc,IAAPY,EAAgB,SAAWA,EAAIC,EAAKN,EAAGO,WAAYA,OAAoB,IAAPD,EAAgB,UAAYA,EAAIE,EAAWR,EAAGQ,SAAUC,EAAYT,EAAGS,UAAWC,EAAQzB,EAAOe,EAAI,CAAC,QAAS,UAAW,QAAS,OAAQ,aAAc,WAAY,cACnTI,IACDA,EAAQ,OACZ,IAAIO,EAAY,IAKhB,MAJa,UAATlB,IACAkB,EAAY,KACH,UAATlB,IACAkB,EAAY,KACRC,MAAKC,EAAO,CAAEC,YAAaV,EAAOD,QAASA,EAASK,SAAUI,MAAKG,EAAM,CAAEC,SAAS,EAAMP,UAAWQ,EAAG3B,EAAc,CAAEG,KAAMA,IAASgB,GAAYD,SAAUU,EAAKC,KAACC,EAAM,CAAEC,GAAI,QAAS5B,KAAMkB,EAAWH,SAAU,CAACI,MAAKU,EAAYpD,EAAS,CAAE+B,IAAKA,EAAKC,MAAOA,EAAOqB,QAAShB,EAAYd,KAAMkB,GAAaD,IAASF,QACrU,IACAV,EAAM0B,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,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
declare const RadioCards: {
|
3
|
-
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>>;
|
3
|
+
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>>;
|
4
4
|
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>>;
|
5
5
|
};
|
6
6
|
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,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
declare const RadioGroup: {
|
3
|
-
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>>;
|
3
|
+
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>>;
|
4
4
|
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>>;
|
5
5
|
};
|
6
6
|
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?:
|
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,6 +1,6 @@
|
|
1
1
|
/// <reference types="react" />
|
2
2
|
declare const SegmentedControl: {
|
3
|
-
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>>;
|
3
|
+
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>>;
|
4
4
|
Item: import("react").ForwardRefExoticComponent<Omit<import("@radix-ui/themes/dist/cjs/components/segmented-control").ItemProps & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("../../../lib/components/SegmentedControl/SegmentedControlItem").SegmentedControlItemProps & import("react").RefAttributes<HTMLButtonElement>>;
|
5
5
|
};
|
6
6
|
export default SegmentedControl;
|
@@ -12,5 +12,5 @@ declare const textAreaNavVariants: (props?: ({
|
|
12
12
|
scaling?: "90%" | "95%" | "100%" | "105%" | "110%" | null | undefined;
|
13
13
|
radius?: "small" | "none" | "medium" | "large" | "full" | null | undefined;
|
14
14
|
} & import("class-variance-authority/dist/types").ClassProp) | undefined) => string;
|
15
|
-
export declare const TextArea: React.ForwardRefExoticComponent<Omit<
|
15
|
+
export declare const TextArea: React.ForwardRefExoticComponent<Omit<import("@radix-ui/themes").TextAreaProps & React.RefAttributes<HTMLTextAreaElement>, "ref"> & TextAreaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
16
16
|
export default TextArea;
|