@aveonline/ui-react 1.14.1 → 1.14.2
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.
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { IColorText } from '../../../types';
|
|
1
2
|
declare type Change = {
|
|
2
3
|
value: string | number;
|
|
3
4
|
checked: boolean;
|
|
4
5
|
};
|
|
5
|
-
|
|
6
|
+
interface IPropsCheckbox extends IColorText {
|
|
6
7
|
/**
|
|
7
8
|
* ID unique
|
|
8
9
|
*/
|
|
@@ -43,5 +44,5 @@ declare type IPropsCheckbox = {
|
|
|
43
44
|
* Option for checked
|
|
44
45
|
*/
|
|
45
46
|
checked?: boolean;
|
|
46
|
-
}
|
|
47
|
+
}
|
|
47
48
|
export type { IPropsCheckbox };
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
+
import { IColorText } from '../../../types';
|
|
1
2
|
declare type Change = {
|
|
2
3
|
value: string | number;
|
|
3
4
|
checked: boolean;
|
|
4
5
|
};
|
|
5
|
-
|
|
6
|
+
interface IPropsRadio extends IColorText {
|
|
6
7
|
/**
|
|
7
8
|
* ID unique
|
|
8
9
|
*/
|
|
@@ -35,5 +36,5 @@ declare type IPropsRadio = {
|
|
|
35
36
|
* Event for control to checked and value
|
|
36
37
|
*/
|
|
37
38
|
onChange?: (value: Change) => void;
|
|
38
|
-
}
|
|
39
|
+
}
|
|
39
40
|
export type { IPropsRadio };
|
package/dist/ui-react.mjs
CHANGED
|
@@ -5741,31 +5741,32 @@ const b0 = mt((e, t) => {
|
|
|
5741
5741
|
label: a,
|
|
5742
5742
|
helpText: l,
|
|
5743
5743
|
onChange: s,
|
|
5744
|
-
checked: u
|
|
5745
|
-
|
|
5744
|
+
checked: u,
|
|
5745
|
+
color: c = "default"
|
|
5746
|
+
} = e, A = ({
|
|
5746
5747
|
target: {
|
|
5747
|
-
value:
|
|
5748
|
-
checked:
|
|
5748
|
+
value: C,
|
|
5749
|
+
checked: p
|
|
5749
5750
|
}
|
|
5750
5751
|
}) => {
|
|
5751
5752
|
s == null || s({
|
|
5752
|
-
checked:
|
|
5753
|
-
value:
|
|
5753
|
+
checked: p,
|
|
5754
|
+
value: C
|
|
5754
5755
|
});
|
|
5755
|
-
},
|
|
5756
|
+
}, g = () => r ? "border-border-disabled checked:text-action-primary-disabled" : "border-border-default cursor-pointer checked:border-action-primary-default checked:bg-white hover:border-border-hovered checked:hover:border-action-primary-default checked:hover:bg-white checked:focus:border-action-primary-default checked:focus:bg-white checked:focus:ring-focused-default", f = W(() => Zn([t]), [t]);
|
|
5756
5757
|
return /* @__PURE__ */ d(ye, {
|
|
5757
5758
|
children: /* @__PURE__ */ M("div", {
|
|
5758
5759
|
className: D("flex gap-x-2", !l && "items-center"),
|
|
5759
5760
|
children: [/* @__PURE__ */ d("input", {
|
|
5760
5761
|
type: "radio",
|
|
5761
|
-
ref:
|
|
5762
|
+
ref: f,
|
|
5762
5763
|
id: n,
|
|
5763
5764
|
name: i,
|
|
5764
5765
|
disabled: r,
|
|
5765
|
-
onChange:
|
|
5766
|
+
onChange: A,
|
|
5766
5767
|
checked: u,
|
|
5767
5768
|
value: o,
|
|
5768
|
-
className: D("border-2",
|
|
5769
|
+
className: D("border-2", g())
|
|
5769
5770
|
}), a && /* @__PURE__ */ M("div", {
|
|
5770
5771
|
className: "flex flex-col items-start justify-center",
|
|
5771
5772
|
children: [/* @__PURE__ */ d(ne, {
|
|
@@ -5773,7 +5774,7 @@ const b0 = mt((e, t) => {
|
|
|
5773
5774
|
variant: "body",
|
|
5774
5775
|
className: "break-words",
|
|
5775
5776
|
htmlFor: n,
|
|
5776
|
-
color: r ? "disabled" :
|
|
5777
|
+
color: r ? "disabled" : c,
|
|
5777
5778
|
children: a
|
|
5778
5779
|
}), l && /* @__PURE__ */ d(ne, {
|
|
5779
5780
|
variant: "body",
|
|
@@ -6372,7 +6373,8 @@ const Uo = mt((e, t) => {
|
|
|
6372
6373
|
onChange: s,
|
|
6373
6374
|
isError: u,
|
|
6374
6375
|
checked: c,
|
|
6375
|
-
|
|
6376
|
+
color: A = "default",
|
|
6377
|
+
size: g = "sm"
|
|
6376
6378
|
} = e;
|
|
6377
6379
|
return /* @__PURE__ */ d(ye, {
|
|
6378
6380
|
children: /* @__PURE__ */ M("div", {
|
|
@@ -6385,18 +6387,18 @@ const Uo = mt((e, t) => {
|
|
|
6385
6387
|
disabled: r,
|
|
6386
6388
|
onChange: ({
|
|
6387
6389
|
target: {
|
|
6388
|
-
value:
|
|
6389
|
-
checked:
|
|
6390
|
+
value: p,
|
|
6391
|
+
checked: I
|
|
6390
6392
|
}
|
|
6391
6393
|
}) => {
|
|
6392
6394
|
s == null || s({
|
|
6393
|
-
checked:
|
|
6394
|
-
value:
|
|
6395
|
+
checked: I,
|
|
6396
|
+
value: p
|
|
6395
6397
|
});
|
|
6396
6398
|
},
|
|
6397
6399
|
value: o,
|
|
6398
6400
|
checked: c,
|
|
6399
|
-
className: D((() => r ? "border-border-disabled checked:text-action-primary-disabled bg-action-secondary-default disabled:bg-action-secondary-disabled checked:hover:bg-action-secondary-disabled" : u ? "checked:bg-action-critical-default checked:text-letter-critical active:bg-action-critical-default border-border-critical-default checked:hover:bg-action-critical-default focus:ring-none ring-offset-0 active:ring-transparent focus:ring-transparent focus:ring-offset-0 focus:ring-critical-default" : "border-border-default hover:border-border-hovered focus:ring-focused-default ring-offset-1 active:ring-1 focus:ring-1 focus:ring-offset-1 cursor-pointer")(), "rounded-[5px] bg-white border-[1.5px]",
|
|
6401
|
+
className: D((() => r ? "border-border-disabled checked:text-action-primary-disabled bg-action-secondary-default disabled:bg-action-secondary-disabled checked:hover:bg-action-secondary-disabled" : u ? "checked:bg-action-critical-default checked:text-letter-critical active:bg-action-critical-default border-border-critical-default checked:hover:bg-action-critical-default focus:ring-none ring-offset-0 active:ring-transparent focus:ring-transparent focus:ring-offset-0 focus:ring-critical-default" : "border-border-default hover:border-border-hovered focus:ring-focused-default ring-offset-1 active:ring-1 focus:ring-1 focus:ring-offset-1 cursor-pointer")(), "rounded-[5px] bg-white border-[1.5px]", g === "sm" && "h-[18px] w-[18px]", g === "md" && "h-[20px] w-[20px]")
|
|
6400
6402
|
}), a && /* @__PURE__ */ M("div", {
|
|
6401
6403
|
className: "flex flex-col items-start justify-center",
|
|
6402
6404
|
children: [/* @__PURE__ */ d(ne, {
|
|
@@ -6404,7 +6406,7 @@ const Uo = mt((e, t) => {
|
|
|
6404
6406
|
variant: "body",
|
|
6405
6407
|
className: "break-words select-none",
|
|
6406
6408
|
htmlFor: n,
|
|
6407
|
-
color: r ? "disabled" :
|
|
6409
|
+
color: r ? "disabled" : A,
|
|
6408
6410
|
children: a
|
|
6409
6411
|
}), l && /* @__PURE__ */ d(ne, {
|
|
6410
6412
|
variant: "body",
|