@cfxjs/sirius-next-common 0.1.21 → 0.1.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,10 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __export = (target, all) => {
3
+ for (var name in all)
4
+ __defProp(target, name, { get: all[name], enumerable: true });
5
+ };
6
+
7
+ export {
8
+ __export
9
+ };
10
+ //# sourceMappingURL=chunk-JC4IRQUL.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":[],"sourcesContent":[],"mappings":"","names":[]}
@@ -0,0 +1,40 @@
1
+ import {
2
+ cn
3
+ } from "./chunk-Q3D6I5CY.js";
4
+
5
+ // src/components/Radio/radio.tsx
6
+ import * as React from "react";
7
+ import { RadioGroup as _RadioGroup } from "radix-ui";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var RadioGroup = _RadioGroup.Root;
10
+ var RadioItem = React.forwardRef(({ className, children, ...props }, ref) => {
11
+ return /* @__PURE__ */ jsx(
12
+ _RadioGroup.Item,
13
+ {
14
+ ref,
15
+ className: cn(
16
+ "h-[2.14rem] p-[1.14rem] relative flex items-center bg-[#FFF] text-[#444] text-[12px] data-[highlighted]:bg-[#f1f3f5] data-[highlighted]:bg-[#7789D3] data-[highlighted]:text-[#fff]",
17
+ className
18
+ ),
19
+ ...props,
20
+ children
21
+ }
22
+ );
23
+ });
24
+ RadioItem.displayName = _RadioGroup.Item.displayName;
25
+ var RadioIndicator = React.forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx(
26
+ _RadioGroup.Indicator,
27
+ {
28
+ ref,
29
+ className: cn("-mx-1 my-1 h-px bg-muted", className),
30
+ ...props
31
+ }
32
+ ));
33
+ RadioIndicator.displayName = _RadioGroup.Indicator.displayName;
34
+
35
+ export {
36
+ RadioGroup,
37
+ RadioItem,
38
+ RadioIndicator
39
+ };
40
+ //# sourceMappingURL=chunk-LODRRFZ2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../src/components/Radio/radio.tsx"],"sourcesContent":["import * as React from 'react';\nimport { RadioGroup as _RadioGroup } from 'radix-ui';\n\nimport { cn } from '../../utils';\n\nconst RadioGroup = _RadioGroup.Root;\n\nconst RadioItem = React.forwardRef<\n React.ElementRef<typeof _RadioGroup.Item>,\n React.ComponentPropsWithoutRef<typeof _RadioGroup.Item>\n>(({ className, children, ...props }, ref) => {\n return (\n <_RadioGroup.Item\n ref={ref}\n className={cn(\n 'h-[2.14rem] p-[1.14rem] relative flex items-center bg-[#FFF] text-[#444] text-[12px] data-[highlighted]:bg-[#f1f3f5] data-[highlighted]:bg-[#7789D3] data-[highlighted]:text-[#fff]',\n className,\n )}\n {...props}\n >\n {children}\n </_RadioGroup.Item>\n );\n});\nRadioItem.displayName = _RadioGroup.Item.displayName;\n\nconst RadioIndicator = React.forwardRef<\n React.ElementRef<typeof _RadioGroup.Indicator>,\n React.ComponentPropsWithoutRef<typeof _RadioGroup.Indicator>\n>(({ className, ...props }, ref) => (\n <_RadioGroup.Indicator\n ref={ref}\n className={cn('-mx-1 my-1 h-px bg-muted', className)}\n {...props}\n />\n));\nRadioIndicator.displayName = _RadioGroup.Indicator.displayName;\n\nexport { RadioGroup, RadioItem, RadioIndicator };\n"],"mappings":";;;;;AAAA,YAAY,WAAW;AACvB,SAAS,cAAc,mBAAmB;AAWtC;AAPJ,IAAM,aAAa,YAAY;AAE/B,IAAM,YAAkB,iBAGtB,CAAC,EAAE,WAAW,UAAU,GAAG,MAAM,GAAG,QAAQ;AAC5C,SACE;AAAA,IAAC,YAAY;AAAA,IAAZ;AAAA,MACC;AAAA,MACA,WAAW;AAAA,QACT;AAAA,QACA;AAAA,MACF;AAAA,MACC,GAAG;AAAA,MAEH;AAAA;AAAA,EACH;AAEJ,CAAC;AACD,UAAU,cAAc,YAAY,KAAK;AAEzC,IAAM,iBAAuB,iBAG3B,CAAC,EAAE,WAAW,GAAG,MAAM,GAAG,QAC1B;AAAA,EAAC,YAAY;AAAA,EAAZ;AAAA,IACC;AAAA,IACA,WAAW,GAAG,4BAA4B,SAAS;AAAA,IAClD,GAAG;AAAA;AACN,CACD;AACD,eAAe,cAAc,YAAY,UAAU;","names":[]}