@povio/ui 2.3.0-rc.15 → 2.3.0-rc.17

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.
@@ -18,7 +18,7 @@ import { Controller, useWatch } from "react-hook-form";
18
18
  import { useNumberFieldState } from "react-stately";
19
19
  //#region src/components/inputs/Input/NumberInput/NumberInput.tsx
20
20
  var NumberInputBase = (props) => {
21
- const $ = c(85);
21
+ const $ = c(87);
22
22
  const ui = UIConfig.useConfig();
23
23
  const inputBaseCva = UIStyle.useCva("input.baseCva", inputBase);
24
24
  const inputRef = useRef(null);
@@ -167,6 +167,7 @@ var NumberInputBase = (props) => {
167
167
  $[42] = t9;
168
168
  } else t9 = $[42];
169
169
  const headerProps = t9;
170
+ const dataIsDisabled = isDisabled || void 0;
170
171
  const T0 = TooltipWrapper;
171
172
  const t10 = as === "inline" ? -1 : void 0;
172
173
  const T1 = FormField;
@@ -211,7 +212,7 @@ var NumberInputBase = (props) => {
211
212
  $[50] = t23;
212
213
  } else t23 = $[50];
213
214
  let t24;
214
- if ($[51] !== inputProps || $[52] !== t17 || $[53] !== t18 || $[54] !== t19 || $[55] !== t20 || $[56] !== t21 || $[57] !== t22 || $[58] !== t23) {
215
+ if ($[51] !== dataIsDisabled || $[52] !== inputProps || $[53] !== t17 || $[54] !== t18 || $[55] !== t19 || $[56] !== t20 || $[57] !== t21 || $[58] !== t22 || $[59] !== t23) {
215
216
  t24 = /* @__PURE__ */ jsx(Input, {
216
217
  ...inputProps,
217
218
  ref: t17,
@@ -219,22 +220,24 @@ var NumberInputBase = (props) => {
219
220
  "data-is-required": t19,
220
221
  "data-is-empty": t20,
221
222
  "data-is-filled": t21,
223
+ "data-is-disabled": dataIsDisabled,
222
224
  placeholder: t22,
223
- className: "w-full outline-none",
225
+ className: "w-full bg-transparent outline-none",
224
226
  onFocus: t23
225
227
  });
226
- $[51] = inputProps;
227
- $[52] = t17;
228
- $[53] = t18;
229
- $[54] = t19;
230
- $[55] = t20;
231
- $[56] = t21;
232
- $[57] = t22;
233
- $[58] = t23;
234
- $[59] = t24;
235
- } else t24 = $[59];
228
+ $[51] = dataIsDisabled;
229
+ $[52] = inputProps;
230
+ $[53] = t17;
231
+ $[54] = t18;
232
+ $[55] = t19;
233
+ $[56] = t20;
234
+ $[57] = t21;
235
+ $[58] = t22;
236
+ $[59] = t23;
237
+ $[60] = t24;
238
+ } else t24 = $[60];
236
239
  let t25;
237
- if ($[60] !== as || $[61] !== headerProps || $[62] !== inputContentProps || $[63] !== size || $[64] !== t24) {
240
+ if ($[61] !== as || $[62] !== headerProps || $[63] !== inputContentProps || $[64] !== size || $[65] !== t24) {
238
241
  t25 = /* @__PURE__ */ jsx(InputContent, {
239
242
  ...inputContentProps,
240
243
  headerProps,
@@ -242,30 +245,32 @@ var NumberInputBase = (props) => {
242
245
  size,
243
246
  children: t24
244
247
  });
245
- $[60] = as;
246
- $[61] = headerProps;
247
- $[62] = inputContentProps;
248
- $[63] = size;
249
- $[64] = t24;
250
- $[65] = t25;
251
- } else t25 = $[65];
248
+ $[61] = as;
249
+ $[62] = headerProps;
250
+ $[63] = inputContentProps;
251
+ $[64] = size;
252
+ $[65] = t24;
253
+ $[66] = t25;
254
+ } else t25 = $[66];
252
255
  let t26;
253
- if ($[66] !== t13 || $[67] !== t15 || $[68] !== t16 || $[69] !== t25) {
256
+ if ($[67] !== dataIsDisabled || $[68] !== t13 || $[69] !== t15 || $[70] !== t16 || $[71] !== t25) {
254
257
  t26 = /* @__PURE__ */ jsx("div", {
255
258
  className: t13,
256
259
  onClick: t14,
257
260
  "data-is-empty": t15,
258
261
  "data-is-required": t16,
262
+ "data-is-disabled": dataIsDisabled,
259
263
  children: t25
260
264
  });
261
- $[66] = t13;
262
- $[67] = t15;
263
- $[68] = t16;
264
- $[69] = t25;
265
- $[70] = t26;
266
- } else t26 = $[70];
265
+ $[67] = dataIsDisabled;
266
+ $[68] = t13;
267
+ $[69] = t15;
268
+ $[70] = t16;
269
+ $[71] = t25;
270
+ $[72] = t26;
271
+ } else t26 = $[72];
267
272
  let t27;
268
- if ($[71] !== T1 || $[72] !== as || $[73] !== formFieldProps || $[74] !== labelProps || $[75] !== t11 || $[76] !== t12 || $[77] !== t26) {
273
+ if ($[73] !== T1 || $[74] !== as || $[75] !== formFieldProps || $[76] !== labelProps || $[77] !== t11 || $[78] !== t12 || $[79] !== t26) {
269
274
  t27 = /* @__PURE__ */ jsx(T1, {
270
275
  ...formFieldProps,
271
276
  as,
@@ -274,30 +279,30 @@ var NumberInputBase = (props) => {
274
279
  tabIndex: t12,
275
280
  children: t26
276
281
  });
277
- $[71] = T1;
278
- $[72] = as;
279
- $[73] = formFieldProps;
280
- $[74] = labelProps;
281
- $[75] = t11;
282
- $[76] = t12;
283
- $[77] = t26;
284
- $[78] = t27;
285
- } else t27 = $[78];
282
+ $[73] = T1;
283
+ $[74] = as;
284
+ $[75] = formFieldProps;
285
+ $[76] = labelProps;
286
+ $[77] = t11;
287
+ $[78] = t12;
288
+ $[79] = t26;
289
+ $[80] = t27;
290
+ } else t27 = $[80];
286
291
  let t28;
287
- if ($[79] !== T0 || $[80] !== as || $[81] !== error || $[82] !== t10 || $[83] !== t27) {
292
+ if ($[81] !== T0 || $[82] !== as || $[83] !== error || $[84] !== t10 || $[85] !== t27) {
288
293
  t28 = /* @__PURE__ */ jsx(T0, {
289
294
  as,
290
295
  error,
291
296
  triggerTabIndex: t10,
292
297
  children: t27
293
298
  });
294
- $[79] = T0;
295
- $[80] = as;
296
- $[81] = error;
297
- $[82] = t10;
298
- $[83] = t27;
299
- $[84] = t28;
300
- } else t28 = $[84];
299
+ $[81] = T0;
300
+ $[82] = as;
301
+ $[83] = error;
302
+ $[84] = t10;
303
+ $[85] = t27;
304
+ $[86] = t28;
305
+ } else t28 = $[86];
301
306
  return t28;
302
307
  };
303
308
  var NumberInput = ({ renderStaticInput, ...props }) => {
@@ -16,7 +16,7 @@ import { mergeRefs } from "@react-aria/utils";
16
16
  import { Controller, useWatch } from "react-hook-form";
17
17
  //#region src/components/inputs/Input/TextInput/TextInput.tsx
18
18
  var TextInputBase = (props) => {
19
- const $ = c(83);
19
+ const $ = c(84);
20
20
  const ui = UIConfig.useConfig();
21
21
  const inputBaseCva = UIStyle.useCva("input.baseCva", inputBase);
22
22
  const inputRef = useRef(null);
@@ -139,6 +139,7 @@ var TextInputBase = (props) => {
139
139
  $[36] = t6;
140
140
  } else t6 = $[36];
141
141
  const headerProps = t6;
142
+ const dataIsDisabled = isDisabled || void 0;
142
143
  const T0 = TooltipWrapper;
143
144
  const t7 = as === "inline" ? -1 : void 0;
144
145
  const T1 = FormField;
@@ -175,77 +176,78 @@ var TextInputBase = (props) => {
175
176
  const t19 = !(value === "" || value === null || value === void 0) || void 0;
176
177
  const t20 = isDirty || void 0;
177
178
  const t21 = isRequired || void 0;
178
- const t22 = isDisabled || void 0;
179
- const t23 = as === "floating" ? "\xA0" : inputProps.placeholder;
180
- let t24;
179
+ const t22 = as === "floating" ? "\xA0" : inputProps.placeholder;
180
+ let t23;
181
181
  if ($[43] !== inputProps || $[44] !== isFocusVisible) {
182
- t24 = (e) => {
182
+ t23 = (e) => {
183
183
  inputProps.onFocus?.(e);
184
184
  if (isFocusVisible) e.target.select();
185
185
  };
186
186
  $[43] = inputProps;
187
187
  $[44] = isFocusVisible;
188
- $[45] = t24;
189
- } else t24 = $[45];
190
- let t25;
191
- if ($[46] !== inputProps || $[47] !== t17 || $[48] !== t18 || $[49] !== t19 || $[50] !== t20 || $[51] !== t21 || $[52] !== t22 || $[53] !== t23 || $[54] !== t24) {
192
- t25 = /* @__PURE__ */ jsx(Input, {
188
+ $[45] = t23;
189
+ } else t23 = $[45];
190
+ let t24;
191
+ if ($[46] !== dataIsDisabled || $[47] !== inputProps || $[48] !== t17 || $[49] !== t18 || $[50] !== t19 || $[51] !== t20 || $[52] !== t21 || $[53] !== t22 || $[54] !== t23) {
192
+ t24 = /* @__PURE__ */ jsx(Input, {
193
193
  ...inputProps,
194
194
  ref: t17,
195
195
  "data-is-empty": t18,
196
196
  "data-is-filled": t19,
197
197
  "data-is-dirty": t20,
198
198
  "data-is-required": t21,
199
- "data-is-disabled": t22,
200
- placeholder: t23,
201
- className: "w-full outline-none",
202
- onFocus: t24
199
+ "data-is-disabled": dataIsDisabled,
200
+ placeholder: t22,
201
+ className: "w-full bg-transparent outline-none",
202
+ onFocus: t23
203
203
  });
204
- $[46] = inputProps;
205
- $[47] = t17;
206
- $[48] = t18;
207
- $[49] = t19;
208
- $[50] = t20;
209
- $[51] = t21;
210
- $[52] = t22;
211
- $[53] = t23;
212
- $[54] = t24;
213
- $[55] = t25;
214
- } else t25 = $[55];
215
- let t26;
216
- if ($[56] !== as || $[57] !== headerProps || $[58] !== inputContentProps || $[59] !== size || $[60] !== t25) {
217
- t26 = /* @__PURE__ */ jsx(InputContent, {
204
+ $[46] = dataIsDisabled;
205
+ $[47] = inputProps;
206
+ $[48] = t17;
207
+ $[49] = t18;
208
+ $[50] = t19;
209
+ $[51] = t20;
210
+ $[52] = t21;
211
+ $[53] = t22;
212
+ $[54] = t23;
213
+ $[55] = t24;
214
+ } else t24 = $[55];
215
+ let t25;
216
+ if ($[56] !== as || $[57] !== headerProps || $[58] !== inputContentProps || $[59] !== size || $[60] !== t24) {
217
+ t25 = /* @__PURE__ */ jsx(InputContent, {
218
218
  ...inputContentProps,
219
219
  headerProps,
220
220
  as,
221
221
  size,
222
- children: t25
222
+ children: t24
223
223
  });
224
224
  $[56] = as;
225
225
  $[57] = headerProps;
226
226
  $[58] = inputContentProps;
227
227
  $[59] = size;
228
- $[60] = t25;
229
- $[61] = t26;
230
- } else t26 = $[61];
231
- let t27;
232
- if ($[62] !== t13 || $[63] !== t15 || $[64] !== t16 || $[65] !== t26) {
233
- t27 = /* @__PURE__ */ jsx("div", {
228
+ $[60] = t24;
229
+ $[61] = t25;
230
+ } else t25 = $[61];
231
+ let t26;
232
+ if ($[62] !== dataIsDisabled || $[63] !== t13 || $[64] !== t15 || $[65] !== t16 || $[66] !== t25) {
233
+ t26 = /* @__PURE__ */ jsx("div", {
234
234
  className: t13,
235
235
  onClick: t14,
236
236
  "data-is-empty": t15,
237
237
  "data-is-required": t16,
238
- children: t26
238
+ "data-is-disabled": dataIsDisabled,
239
+ children: t25
239
240
  });
240
- $[62] = t13;
241
- $[63] = t15;
242
- $[64] = t16;
243
- $[65] = t26;
244
- $[66] = t27;
245
- } else t27 = $[66];
246
- let t28;
247
- if ($[67] !== T1 || $[68] !== as || $[69] !== formFieldProps || $[70] !== labelProps || $[71] !== t10 || $[72] !== t11 || $[73] !== t12 || $[74] !== t27 || $[75] !== t9) {
248
- t28 = /* @__PURE__ */ jsx(T1, {
241
+ $[62] = dataIsDisabled;
242
+ $[63] = t13;
243
+ $[64] = t15;
244
+ $[65] = t16;
245
+ $[66] = t25;
246
+ $[67] = t26;
247
+ } else t26 = $[67];
248
+ let t27;
249
+ if ($[68] !== T1 || $[69] !== as || $[70] !== formFieldProps || $[71] !== labelProps || $[72] !== t10 || $[73] !== t11 || $[74] !== t12 || $[75] !== t26 || $[76] !== t9) {
250
+ t27 = /* @__PURE__ */ jsx(T1, {
249
251
  ...formFieldProps,
250
252
  as,
251
253
  labelProps,
@@ -253,35 +255,35 @@ var TextInputBase = (props) => {
253
255
  tabIndex: t10,
254
256
  "data-is-empty": t11,
255
257
  "data-is-required": t12,
256
- children: t27
258
+ children: t26
257
259
  });
258
- $[67] = T1;
259
- $[68] = as;
260
- $[69] = formFieldProps;
261
- $[70] = labelProps;
262
- $[71] = t10;
263
- $[72] = t11;
264
- $[73] = t12;
265
- $[74] = t27;
266
- $[75] = t9;
267
- $[76] = t28;
268
- } else t28 = $[76];
269
- let t29;
270
- if ($[77] !== T0 || $[78] !== as || $[79] !== error || $[80] !== t28 || $[81] !== t7) {
271
- t29 = /* @__PURE__ */ jsx(T0, {
260
+ $[68] = T1;
261
+ $[69] = as;
262
+ $[70] = formFieldProps;
263
+ $[71] = labelProps;
264
+ $[72] = t10;
265
+ $[73] = t11;
266
+ $[74] = t12;
267
+ $[75] = t26;
268
+ $[76] = t9;
269
+ $[77] = t27;
270
+ } else t27 = $[77];
271
+ let t28;
272
+ if ($[78] !== T0 || $[79] !== as || $[80] !== error || $[81] !== t27 || $[82] !== t7) {
273
+ t28 = /* @__PURE__ */ jsx(T0, {
272
274
  as,
273
275
  error,
274
276
  triggerTabIndex: t7,
275
- children: t28
277
+ children: t27
276
278
  });
277
- $[77] = T0;
278
- $[78] = as;
279
- $[79] = error;
280
- $[80] = t28;
281
- $[81] = t7;
282
- $[82] = t29;
283
- } else t29 = $[82];
284
- return t29;
279
+ $[78] = T0;
280
+ $[79] = as;
281
+ $[80] = error;
282
+ $[81] = t27;
283
+ $[82] = t7;
284
+ $[83] = t28;
285
+ } else t28 = $[83];
286
+ return t28;
285
287
  };
286
288
  var TextInput = ({ renderStaticInput, ...props }) => {
287
289
  const ui = UIConfig.useConfig();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@povio/ui",
3
- "version": "2.3.0-rc.15",
3
+ "version": "2.3.0-rc.17",
4
4
  "type": "module",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",