@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
- clip: rect(0, 0, 0, 0);
21
- white-space: nowrap;
22
- border: 0;
23
- width: 1px;
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
- overflow: hidden;
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(43);
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] !== children || $[33] !== classNames?.label || $[34] !== styles?.label) {
126
- t19 = null != children && /*#__PURE__*/ jsx("span", {
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
- $[32] = children;
133
- $[33] = classNames?.label;
134
- $[34] = styles?.label;
135
- $[35] = t19;
136
- } else t19 = $[35];
137
- let t20;
138
- if ($[36] !== t10 || $[37] !== t18 || $[38] !== t19 || $[39] !== t5 || $[40] !== t7 || $[41] !== t8) {
139
- t20 = /*#__PURE__*/ jsxs("label", {
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
- t10,
146
- t18,
147
- t19
158
+ t19,
159
+ t20
148
160
  ]
149
161
  });
150
- $[36] = t10;
151
- $[37] = t18;
152
- $[38] = t19;
153
- $[39] = t5;
154
- $[40] = t7;
155
- $[41] = t8;
156
- $[42] = t20;
157
- } else t20 = $[42];
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
- clip: rect(0, 0, 0, 0);
21
- white-space: nowrap;
22
- border: 0;
23
- width: 1px;
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
- overflow: hidden;
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(29);
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] !== children || $[19] !== classNames?.label || $[20] !== styles?.label) {
79
- t12 = null != children && /*#__PURE__*/ jsx("span", {
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
- $[18] = children;
86
- $[19] = classNames?.label;
87
- $[20] = styles?.label;
88
- $[21] = t12;
89
- } else t12 = $[21];
90
- let t13;
91
- if ($[22] !== t11 || $[23] !== t12 || $[24] !== t2 || $[25] !== t4 || $[26] !== t5 || $[27] !== t6) {
92
- t13 = /*#__PURE__*/ jsxs("label", {
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
- t6,
99
- t11,
100
- t12
111
+ t12,
112
+ t13
101
113
  ]
102
114
  });
103
- $[22] = t11;
104
- $[23] = t12;
105
- $[24] = t2;
106
- $[25] = t4;
107
- $[26] = t5;
108
- $[27] = t6;
109
- $[28] = t13;
110
- } else t13 = $[28];
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rockshin/tao-ui",
3
- "version": "0.0.12",
3
+ "version": "0.0.13",
4
4
  "type": "module",
5
5
  "description": "A modern React 19 component library with semantic DOM customization and OKLCH-based theming.",
6
6
  "keywords": [