@rockshin/tao-ui 0.0.12 → 0.0.13
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.
|
@@ -16,16 +16,19 @@
|
|
|
16
16
|
opacity: var(--tao-opacity-loading);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
[data-tao-checkbox-control] {
|
|
20
|
+
flex: none;
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
position: relative;
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
[data-tao-checkbox-input] {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
height: 1px;
|
|
25
|
-
margin: -1px;
|
|
26
|
-
padding: 0;
|
|
26
|
+
z-index: 1;
|
|
27
|
+
opacity: 0;
|
|
28
|
+
cursor: inherit;
|
|
29
|
+
margin: 0;
|
|
27
30
|
position: absolute;
|
|
28
|
-
|
|
31
|
+
inset: 0;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
[data-tao-checkbox] {
|
|
@@ -6,7 +6,7 @@ import { cx } from "../../utils/semantic.js";
|
|
|
6
6
|
import "./checkbox.css";
|
|
7
7
|
const CheckboxGroupContext = /*#__PURE__*/ createContext(null);
|
|
8
8
|
function Checkbox(t0) {
|
|
9
|
-
const $ = c(
|
|
9
|
+
const $ = c(45);
|
|
10
10
|
const { checked, indeterminate, disabled, onChange, value, children, classNames, styles } = t0;
|
|
11
11
|
const ctx = useTaoConfig();
|
|
12
12
|
const groupCtx = useContext(CheckboxGroupContext);
|
|
@@ -122,40 +122,51 @@ function Checkbox(t0) {
|
|
|
122
122
|
$[31] = t18;
|
|
123
123
|
} else t18 = $[31];
|
|
124
124
|
let t19;
|
|
125
|
-
if ($[32] !==
|
|
126
|
-
t19 =
|
|
125
|
+
if ($[32] !== t10 || $[33] !== t18) {
|
|
126
|
+
t19 = /*#__PURE__*/ jsxs("span", {
|
|
127
|
+
"data-tao-checkbox-control": "",
|
|
128
|
+
children: [
|
|
129
|
+
t10,
|
|
130
|
+
t18
|
|
131
|
+
]
|
|
132
|
+
});
|
|
133
|
+
$[32] = t10;
|
|
134
|
+
$[33] = t18;
|
|
135
|
+
$[34] = t19;
|
|
136
|
+
} else t19 = $[34];
|
|
137
|
+
let t20;
|
|
138
|
+
if ($[35] !== children || $[36] !== classNames?.label || $[37] !== styles?.label) {
|
|
139
|
+
t20 = null != children && /*#__PURE__*/ jsx("span", {
|
|
127
140
|
"data-tao-checkbox-label": "",
|
|
128
141
|
className: cx(classNames?.label),
|
|
129
142
|
style: styles?.label,
|
|
130
143
|
children: children
|
|
131
144
|
});
|
|
132
|
-
$[
|
|
133
|
-
$[
|
|
134
|
-
$[
|
|
135
|
-
$[
|
|
136
|
-
} else
|
|
137
|
-
let
|
|
138
|
-
if ($[
|
|
139
|
-
|
|
145
|
+
$[35] = children;
|
|
146
|
+
$[36] = classNames?.label;
|
|
147
|
+
$[37] = styles?.label;
|
|
148
|
+
$[38] = t20;
|
|
149
|
+
} else t20 = $[38];
|
|
150
|
+
let t21;
|
|
151
|
+
if ($[39] !== t19 || $[40] !== t20 || $[41] !== t5 || $[42] !== t7 || $[43] !== t8) {
|
|
152
|
+
t21 = /*#__PURE__*/ jsxs("label", {
|
|
140
153
|
"data-tao-checkbox-wrapper": "",
|
|
141
154
|
"data-tao-disabled": t5,
|
|
142
155
|
className: t7,
|
|
143
156
|
style: t8,
|
|
144
157
|
children: [
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
t19
|
|
158
|
+
t19,
|
|
159
|
+
t20
|
|
148
160
|
]
|
|
149
161
|
});
|
|
150
|
-
$[
|
|
151
|
-
$[
|
|
152
|
-
$[
|
|
153
|
-
$[
|
|
154
|
-
$[
|
|
155
|
-
$[
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
return t20;
|
|
162
|
+
$[39] = t19;
|
|
163
|
+
$[40] = t20;
|
|
164
|
+
$[41] = t5;
|
|
165
|
+
$[42] = t7;
|
|
166
|
+
$[43] = t8;
|
|
167
|
+
$[44] = t21;
|
|
168
|
+
} else t21 = $[44];
|
|
169
|
+
return t21;
|
|
159
170
|
}
|
|
160
171
|
function CheckboxGroup(t0) {
|
|
161
172
|
const $ = c(26);
|
|
@@ -16,16 +16,19 @@
|
|
|
16
16
|
opacity: var(--tao-opacity-loading);
|
|
17
17
|
}
|
|
18
18
|
|
|
19
|
+
[data-tao-radio-control] {
|
|
20
|
+
flex: none;
|
|
21
|
+
display: inline-flex;
|
|
22
|
+
position: relative;
|
|
23
|
+
}
|
|
24
|
+
|
|
19
25
|
[data-tao-radio-input] {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
height: 1px;
|
|
25
|
-
margin: -1px;
|
|
26
|
-
padding: 0;
|
|
26
|
+
z-index: 1;
|
|
27
|
+
opacity: 0;
|
|
28
|
+
cursor: inherit;
|
|
29
|
+
margin: 0;
|
|
27
30
|
position: absolute;
|
|
28
|
-
|
|
31
|
+
inset: 0;
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
[data-tao-radio] {
|
|
@@ -6,7 +6,7 @@ import { cx } from "../../utils/semantic.js";
|
|
|
6
6
|
import "./radio.css";
|
|
7
7
|
const RadioGroupContext = /*#__PURE__*/ createContext(null);
|
|
8
8
|
function Radio(t0) {
|
|
9
|
-
const $ = c(
|
|
9
|
+
const $ = c(31);
|
|
10
10
|
const { value, checked, disabled, onChange, children, name, classNames, styles } = t0;
|
|
11
11
|
const ctx = useTaoConfig();
|
|
12
12
|
const groupCtx = useContext(RadioGroupContext);
|
|
@@ -75,40 +75,51 @@ function Radio(t0) {
|
|
|
75
75
|
$[17] = t11;
|
|
76
76
|
} else t11 = $[17];
|
|
77
77
|
let t12;
|
|
78
|
-
if ($[18] !==
|
|
79
|
-
t12 =
|
|
78
|
+
if ($[18] !== t11 || $[19] !== t6) {
|
|
79
|
+
t12 = /*#__PURE__*/ jsxs("span", {
|
|
80
|
+
"data-tao-radio-control": "",
|
|
81
|
+
children: [
|
|
82
|
+
t6,
|
|
83
|
+
t11
|
|
84
|
+
]
|
|
85
|
+
});
|
|
86
|
+
$[18] = t11;
|
|
87
|
+
$[19] = t6;
|
|
88
|
+
$[20] = t12;
|
|
89
|
+
} else t12 = $[20];
|
|
90
|
+
let t13;
|
|
91
|
+
if ($[21] !== children || $[22] !== classNames?.label || $[23] !== styles?.label) {
|
|
92
|
+
t13 = null != children && /*#__PURE__*/ jsx("span", {
|
|
80
93
|
"data-tao-radio-label": "",
|
|
81
94
|
className: cx(classNames?.label),
|
|
82
95
|
style: styles?.label,
|
|
83
96
|
children: children
|
|
84
97
|
});
|
|
85
|
-
$[
|
|
86
|
-
$[
|
|
87
|
-
$[
|
|
88
|
-
$[
|
|
89
|
-
} else
|
|
90
|
-
let
|
|
91
|
-
if ($[
|
|
92
|
-
|
|
98
|
+
$[21] = children;
|
|
99
|
+
$[22] = classNames?.label;
|
|
100
|
+
$[23] = styles?.label;
|
|
101
|
+
$[24] = t13;
|
|
102
|
+
} else t13 = $[24];
|
|
103
|
+
let t14;
|
|
104
|
+
if ($[25] !== t12 || $[26] !== t13 || $[27] !== t2 || $[28] !== t4 || $[29] !== t5) {
|
|
105
|
+
t14 = /*#__PURE__*/ jsxs("label", {
|
|
93
106
|
"data-tao-radio-wrapper": "",
|
|
94
107
|
"data-tao-disabled": t2,
|
|
95
108
|
className: t4,
|
|
96
109
|
style: t5,
|
|
97
110
|
children: [
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
t12
|
|
111
|
+
t12,
|
|
112
|
+
t13
|
|
101
113
|
]
|
|
102
114
|
});
|
|
103
|
-
$[
|
|
104
|
-
$[
|
|
105
|
-
$[
|
|
106
|
-
$[
|
|
107
|
-
$[
|
|
108
|
-
$[
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
return t13;
|
|
115
|
+
$[25] = t12;
|
|
116
|
+
$[26] = t13;
|
|
117
|
+
$[27] = t2;
|
|
118
|
+
$[28] = t4;
|
|
119
|
+
$[29] = t5;
|
|
120
|
+
$[30] = t14;
|
|
121
|
+
} else t14 = $[30];
|
|
122
|
+
return t14;
|
|
112
123
|
}
|
|
113
124
|
function RadioGroup(t0) {
|
|
114
125
|
const $ = c(26);
|