@umami/react-zen 0.183.0 → 0.185.0
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.
- package/dist/index.css +12 -13
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +8 -5
- package/dist/index.mjs +8 -5
- package/package.json +1 -1
- package/styles.css +12 -13
package/dist/index.css
CHANGED
|
@@ -3987,49 +3987,48 @@ body a.Button_button__NGQyO {
|
|
|
3987
3987
|
}
|
|
3988
3988
|
|
|
3989
3989
|
/* virtual-css:css:e66162403f9946d7217dc462fee28120 */
|
|
3990
|
-
.
|
|
3990
|
+
.Dots_dots__ZTc4M {
|
|
3991
3991
|
position: relative;
|
|
3992
3992
|
display: inline-flex;
|
|
3993
3993
|
justify-content: center;
|
|
3994
3994
|
align-items: center;
|
|
3995
|
-
|
|
3996
|
-
&.Dots_size-sm__ZTRjY {
|
|
3995
|
+
&.Dots_size-sm__YmFiM {
|
|
3997
3996
|
gap: 4px;
|
|
3998
3997
|
}
|
|
3999
|
-
&.Dots_size-
|
|
3998
|
+
&.Dots_size-md__MThiY {
|
|
4000
3999
|
gap: 6px;
|
|
4001
4000
|
}
|
|
4002
|
-
&.Dots_size-
|
|
4001
|
+
&.Dots_size-lg__MTNlO {
|
|
4003
4002
|
gap: 8px;
|
|
4004
4003
|
}
|
|
4005
4004
|
}
|
|
4006
|
-
.
|
|
4005
|
+
.Dots_dot__YTQ4Y {
|
|
4007
4006
|
width: 8px;
|
|
4008
4007
|
height: 8px;
|
|
4009
4008
|
border-radius: 100%;
|
|
4010
4009
|
background: color-mix(in srgb, var(--font-color), 50% transparent);
|
|
4011
|
-
animation: Dots_dots-
|
|
4010
|
+
animation: Dots_dots-blink__MjFjZ 1.2s infinite;
|
|
4012
4011
|
animation-fill-mode: both;
|
|
4013
4012
|
}
|
|
4014
|
-
.Dots_size-
|
|
4013
|
+
.Dots_size-sm__YmFiM .Dots_dot__YTQ4Y {
|
|
4015
4014
|
height: 6px;
|
|
4016
4015
|
width: 6px;
|
|
4017
4016
|
}
|
|
4018
|
-
.Dots_size-
|
|
4017
|
+
.Dots_size-md__MThiY .Dots_dot__YTQ4Y {
|
|
4019
4018
|
height: 8px;
|
|
4020
4019
|
width: 8px;
|
|
4021
4020
|
}
|
|
4022
|
-
.Dots_size-
|
|
4021
|
+
.Dots_size-lg__MTNlO .Dots_dot__YTQ4Y {
|
|
4023
4022
|
height: 12px;
|
|
4024
4023
|
width: 12px;
|
|
4025
4024
|
}
|
|
4026
|
-
.
|
|
4025
|
+
.Dots_dot__YTQ4Y:nth-child(2) {
|
|
4027
4026
|
animation-delay: 0.2s;
|
|
4028
4027
|
}
|
|
4029
|
-
.
|
|
4028
|
+
.Dots_dot__YTQ4Y:nth-child(3) {
|
|
4030
4029
|
animation-delay: 0.4s;
|
|
4031
4030
|
}
|
|
4032
|
-
@keyframes Dots_dots-
|
|
4031
|
+
@keyframes Dots_dots-blink__MjFjZ {
|
|
4033
4032
|
0% {
|
|
4034
4033
|
opacity: 0.2;
|
|
4035
4034
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -172,7 +172,7 @@ interface FormFieldArrayProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chil
|
|
|
172
172
|
rules?: RegisterOptions<FieldValues, string>;
|
|
173
173
|
children: (props: any) => ReactNode;
|
|
174
174
|
}
|
|
175
|
-
declare function FormFieldArray({ name, description, label, rules, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
|
|
175
|
+
declare function FormFieldArray({ id, name, description, label, rules, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
|
|
176
176
|
|
|
177
177
|
interface ButtonProps extends ButtonProps$1 {
|
|
178
178
|
variant?: 'primary' | 'outline' | 'quiet' | 'danger' | 'zero';
|
package/dist/index.d.ts
CHANGED
|
@@ -172,7 +172,7 @@ interface FormFieldArrayProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chil
|
|
|
172
172
|
rules?: RegisterOptions<FieldValues, string>;
|
|
173
173
|
children: (props: any) => ReactNode;
|
|
174
174
|
}
|
|
175
|
-
declare function FormFieldArray({ name, description, label, rules, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
|
|
175
|
+
declare function FormFieldArray({ id, name, description, label, rules, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
|
|
176
176
|
|
|
177
177
|
interface ButtonProps extends ButtonProps$1 {
|
|
178
178
|
variant?: 'primary' | 'outline' | 'quiet' | 'danger' | 'zero';
|
package/dist/index.js
CHANGED
|
@@ -28589,6 +28589,7 @@ function FormField({
|
|
|
28589
28589
|
var import_classnames8 = __toESM(require_classnames());
|
|
28590
28590
|
var import_jsx_runtime15 = require("react/jsx-runtime");
|
|
28591
28591
|
function FormFieldArray({
|
|
28592
|
+
id,
|
|
28592
28593
|
name,
|
|
28593
28594
|
description,
|
|
28594
28595
|
label,
|
|
@@ -28597,16 +28598,18 @@ function FormFieldArray({
|
|
|
28597
28598
|
children,
|
|
28598
28599
|
...props
|
|
28599
28600
|
}) {
|
|
28601
|
+
const fieldId = useFieldId(id);
|
|
28600
28602
|
const context = useFormContext();
|
|
28601
|
-
const { formState, control } = context;
|
|
28603
|
+
const { formState, control, register } = context;
|
|
28602
28604
|
const fieldProps = useFieldArray({
|
|
28603
28605
|
control,
|
|
28604
28606
|
name
|
|
28605
28607
|
});
|
|
28608
|
+
register(name, rules);
|
|
28606
28609
|
const errors = formState?.errors || {};
|
|
28607
28610
|
const errorMessage = errors[name]?.message;
|
|
28608
28611
|
return /* @__PURE__ */ (0, import_jsx_runtime15.jsxs)("div", { ...props, className: (0, import_classnames8.default)(FormField_default.input, className), children: [
|
|
28609
|
-
label && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Label2, { children: label }),
|
|
28612
|
+
label && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)(Label2, { htmlFor: fieldId, children: label }),
|
|
28610
28613
|
description && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: FormField_default.description, children: description }),
|
|
28611
28614
|
errorMessage && /* @__PURE__ */ (0, import_jsx_runtime15.jsx)("div", { className: FormField_default.error, children: errorMessage }),
|
|
28612
28615
|
children({ ...context, ...fieldProps })
|
|
@@ -28710,7 +28713,7 @@ function FormSubmitButton({
|
|
|
28710
28713
|
...props
|
|
28711
28714
|
}) {
|
|
28712
28715
|
const {
|
|
28713
|
-
formState: { isDirty, isValid, isSubmitting
|
|
28716
|
+
formState: { isDirty, isValid, isSubmitting }
|
|
28714
28717
|
} = useFormContext();
|
|
28715
28718
|
return /* @__PURE__ */ (0, import_jsx_runtime20.jsx)(
|
|
28716
28719
|
LoadingButton,
|
|
@@ -28719,7 +28722,7 @@ function FormSubmitButton({
|
|
|
28719
28722
|
type: "submit",
|
|
28720
28723
|
variant,
|
|
28721
28724
|
isDisabled: isDisabled ?? (!isDirty || !isValid || isSubmitting),
|
|
28722
|
-
isLoading: isLoading ??
|
|
28725
|
+
isLoading: isLoading ?? isSubmitting,
|
|
28723
28726
|
children
|
|
28724
28727
|
}
|
|
28725
28728
|
);
|
|
@@ -33307,7 +33310,7 @@ function DataColumn(props) {
|
|
|
33307
33310
|
var import_classnames29 = __toESM(require_classnames());
|
|
33308
33311
|
|
|
33309
33312
|
// css-modules:E:\dev\umami-react-zen\src\components\Dots.module.css
|
|
33310
|
-
var Dots_default = { "dots": "
|
|
33313
|
+
var Dots_default = { "dots": "Dots_dots__ZTc4M", "size-sm": "Dots_size-sm__YmFiM", "size-md": "Dots_size-md__MThiY", "size-lg": "Dots_size-lg__MTNlO", "dot": "Dots_dot__YTQ4Y", "dots-blink": "Dots_dots-blink__MjFjZ" };
|
|
33311
33314
|
|
|
33312
33315
|
// src/components/Dots.tsx
|
|
33313
33316
|
var import_jsx_runtime43 = require("react/jsx-runtime");
|
package/dist/index.mjs
CHANGED
|
@@ -28470,6 +28470,7 @@ function FormField({
|
|
|
28470
28470
|
var import_classnames8 = __toESM(require_classnames());
|
|
28471
28471
|
import { jsx as jsx15, jsxs as jsxs7 } from "react/jsx-runtime";
|
|
28472
28472
|
function FormFieldArray({
|
|
28473
|
+
id,
|
|
28473
28474
|
name,
|
|
28474
28475
|
description,
|
|
28475
28476
|
label,
|
|
@@ -28478,16 +28479,18 @@ function FormFieldArray({
|
|
|
28478
28479
|
children,
|
|
28479
28480
|
...props
|
|
28480
28481
|
}) {
|
|
28482
|
+
const fieldId = useFieldId(id);
|
|
28481
28483
|
const context = useFormContext();
|
|
28482
|
-
const { formState, control } = context;
|
|
28484
|
+
const { formState, control, register } = context;
|
|
28483
28485
|
const fieldProps = useFieldArray({
|
|
28484
28486
|
control,
|
|
28485
28487
|
name
|
|
28486
28488
|
});
|
|
28489
|
+
register(name, rules);
|
|
28487
28490
|
const errors = formState?.errors || {};
|
|
28488
28491
|
const errorMessage = errors[name]?.message;
|
|
28489
28492
|
return /* @__PURE__ */ jsxs7("div", { ...props, className: (0, import_classnames8.default)(FormField_default.input, className), children: [
|
|
28490
|
-
label && /* @__PURE__ */ jsx15(Label2, { children: label }),
|
|
28493
|
+
label && /* @__PURE__ */ jsx15(Label2, { htmlFor: fieldId, children: label }),
|
|
28491
28494
|
description && /* @__PURE__ */ jsx15("div", { className: FormField_default.description, children: description }),
|
|
28492
28495
|
errorMessage && /* @__PURE__ */ jsx15("div", { className: FormField_default.error, children: errorMessage }),
|
|
28493
28496
|
children({ ...context, ...fieldProps })
|
|
@@ -28591,7 +28594,7 @@ function FormSubmitButton({
|
|
|
28591
28594
|
...props
|
|
28592
28595
|
}) {
|
|
28593
28596
|
const {
|
|
28594
|
-
formState: { isDirty, isValid, isSubmitting
|
|
28597
|
+
formState: { isDirty, isValid, isSubmitting }
|
|
28595
28598
|
} = useFormContext();
|
|
28596
28599
|
return /* @__PURE__ */ jsx20(
|
|
28597
28600
|
LoadingButton,
|
|
@@ -28600,7 +28603,7 @@ function FormSubmitButton({
|
|
|
28600
28603
|
type: "submit",
|
|
28601
28604
|
variant,
|
|
28602
28605
|
isDisabled: isDisabled ?? (!isDirty || !isValid || isSubmitting),
|
|
28603
|
-
isLoading: isLoading ??
|
|
28606
|
+
isLoading: isLoading ?? isSubmitting,
|
|
28604
28607
|
children
|
|
28605
28608
|
}
|
|
28606
28609
|
);
|
|
@@ -33188,7 +33191,7 @@ function DataColumn(props) {
|
|
|
33188
33191
|
var import_classnames29 = __toESM(require_classnames());
|
|
33189
33192
|
|
|
33190
33193
|
// css-modules:E:\dev\umami-react-zen\src\components\Dots.module.css
|
|
33191
|
-
var Dots_default = { "dots": "
|
|
33194
|
+
var Dots_default = { "dots": "Dots_dots__ZTc4M", "size-sm": "Dots_size-sm__YmFiM", "size-md": "Dots_size-md__MThiY", "size-lg": "Dots_size-lg__MTNlO", "dot": "Dots_dot__YTQ4Y", "dots-blink": "Dots_dots-blink__MjFjZ" };
|
|
33192
33195
|
|
|
33193
33196
|
// src/components/Dots.tsx
|
|
33194
33197
|
import { jsx as jsx43, jsxs as jsxs23 } from "react/jsx-runtime";
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -4305,49 +4305,48 @@ body a.Button_button__NGQyO {
|
|
|
4305
4305
|
}
|
|
4306
4306
|
|
|
4307
4307
|
/* virtual-css:css:e66162403f9946d7217dc462fee28120 */
|
|
4308
|
-
.
|
|
4308
|
+
.Dots_dots__ZTc4M {
|
|
4309
4309
|
position: relative;
|
|
4310
4310
|
display: inline-flex;
|
|
4311
4311
|
justify-content: center;
|
|
4312
4312
|
align-items: center;
|
|
4313
|
-
|
|
4314
|
-
&.Dots_size-sm__ZTRjY {
|
|
4313
|
+
&.Dots_size-sm__YmFiM {
|
|
4315
4314
|
gap: 4px;
|
|
4316
4315
|
}
|
|
4317
|
-
&.Dots_size-
|
|
4316
|
+
&.Dots_size-md__MThiY {
|
|
4318
4317
|
gap: 6px;
|
|
4319
4318
|
}
|
|
4320
|
-
&.Dots_size-
|
|
4319
|
+
&.Dots_size-lg__MTNlO {
|
|
4321
4320
|
gap: 8px;
|
|
4322
4321
|
}
|
|
4323
4322
|
}
|
|
4324
|
-
.
|
|
4323
|
+
.Dots_dot__YTQ4Y {
|
|
4325
4324
|
width: 8px;
|
|
4326
4325
|
height: 8px;
|
|
4327
4326
|
border-radius: 100%;
|
|
4328
4327
|
background: color-mix(in srgb, var(--font-color), 50% transparent);
|
|
4329
|
-
animation: Dots_dots-
|
|
4328
|
+
animation: Dots_dots-blink__MjFjZ 1.2s infinite;
|
|
4330
4329
|
animation-fill-mode: both;
|
|
4331
4330
|
}
|
|
4332
|
-
.Dots_size-
|
|
4331
|
+
.Dots_size-sm__YmFiM .Dots_dot__YTQ4Y {
|
|
4333
4332
|
height: 6px;
|
|
4334
4333
|
width: 6px;
|
|
4335
4334
|
}
|
|
4336
|
-
.Dots_size-
|
|
4335
|
+
.Dots_size-md__MThiY .Dots_dot__YTQ4Y {
|
|
4337
4336
|
height: 8px;
|
|
4338
4337
|
width: 8px;
|
|
4339
4338
|
}
|
|
4340
|
-
.Dots_size-
|
|
4339
|
+
.Dots_size-lg__MTNlO .Dots_dot__YTQ4Y {
|
|
4341
4340
|
height: 12px;
|
|
4342
4341
|
width: 12px;
|
|
4343
4342
|
}
|
|
4344
|
-
.
|
|
4343
|
+
.Dots_dot__YTQ4Y:nth-child(2) {
|
|
4345
4344
|
animation-delay: 0.2s;
|
|
4346
4345
|
}
|
|
4347
|
-
.
|
|
4346
|
+
.Dots_dot__YTQ4Y:nth-child(3) {
|
|
4348
4347
|
animation-delay: 0.4s;
|
|
4349
4348
|
}
|
|
4350
|
-
@keyframes Dots_dots-
|
|
4349
|
+
@keyframes Dots_dots-blink__MjFjZ {
|
|
4351
4350
|
0% {
|
|
4352
4351
|
opacity: 0.2;
|
|
4353
4352
|
}
|