@umami/react-zen 0.132.0 → 0.134.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 +8 -8
- package/dist/index.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/dist/index.js +128 -118
- package/dist/index.mjs +117 -107
- package/package.json +1 -1
- package/styles.css +8 -8
package/dist/index.css
CHANGED
|
@@ -3045,6 +3045,14 @@
|
|
|
3045
3045
|
font-weight: 600;
|
|
3046
3046
|
}
|
|
3047
3047
|
|
|
3048
|
+
/* virtual-css:css:eaf2e0c53cba41d4256ca460ee0d2b3e */
|
|
3049
|
+
.Label_label__YWE3M {
|
|
3050
|
+
font-size: var(--font-size);
|
|
3051
|
+
color: var(--font-color);
|
|
3052
|
+
font-weight: var(--font-weight-bold);
|
|
3053
|
+
line-height: 2.5;
|
|
3054
|
+
}
|
|
3055
|
+
|
|
3048
3056
|
/* virtual-css:css:616ae3b49446388ff62e911490fa55d8 */
|
|
3049
3057
|
.Button_button__YTAxZ {
|
|
3050
3058
|
display: flex;
|
|
@@ -3627,14 +3635,6 @@ body a.Button_button__YTAxZ {
|
|
|
3627
3635
|
}
|
|
3628
3636
|
}
|
|
3629
3637
|
|
|
3630
|
-
/* virtual-css:css:eaf2e0c53cba41d4256ca460ee0d2b3e */
|
|
3631
|
-
.Label_label__YWE3M {
|
|
3632
|
-
font-size: var(--font-size);
|
|
3633
|
-
color: var(--font-color);
|
|
3634
|
-
font-weight: var(--font-weight-bold);
|
|
3635
|
-
line-height: 2.5;
|
|
3636
|
-
}
|
|
3637
|
-
|
|
3638
3638
|
/* virtual-css:css:814f767aeadf5e17bfb63509d2206999 */
|
|
3639
3639
|
.CopyButton_icon__YTM2Y {
|
|
3640
3640
|
animation: CopyButton_copy-button__MjY1M 200ms;
|
package/dist/index.d.mts
CHANGED
|
@@ -113,11 +113,12 @@ interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
113
113
|
gridRow?: Responsive<string>;
|
|
114
114
|
gridColumn?: Responsive<string>;
|
|
115
115
|
order?: Responsive<number>;
|
|
116
|
+
zIndex?: Responsive<number>;
|
|
116
117
|
theme?: string;
|
|
117
118
|
as?: string;
|
|
118
119
|
asChild?: boolean;
|
|
119
120
|
}
|
|
120
|
-
declare function Box({ display, color, backgroundColor, hoverColor, hoverBackgroundColor, hoverBorderColor, fontSize, fontWeight, border, borderColor, borderRadius, shadow, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, width, minWidth, maxWidth, height, minHeight, maxHeight, position, textAlign, top, right, bottom, left, overflow, overflowX, overflowY, alignSelf, justifySelf, flexBasis, flexGrow, flexShrink, gridArea, gridRow, gridColumn, order, theme, as, asChild, className, style, children, ...props }: BoxProps): react.JSX.Element;
|
|
121
|
+
declare function Box({ display, color, backgroundColor, hoverColor, hoverBackgroundColor, hoverBorderColor, fontSize, fontWeight, border, borderColor, borderRadius, shadow, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, width, minWidth, maxWidth, height, minHeight, maxHeight, position, textAlign, top, right, bottom, left, overflow, overflowX, overflowY, alignSelf, justifySelf, flexBasis, flexGrow, flexShrink, gridArea, gridRow, gridColumn, order, zIndex, theme, as, asChild, className, style, children, ...props }: BoxProps): react.JSX.Element;
|
|
121
122
|
|
|
122
123
|
interface FlexboxProps extends Omit<BoxProps, 'display'> {
|
|
123
124
|
display?: Responsive<FlexDisplay>;
|
|
@@ -165,9 +166,10 @@ interface FormFieldArrayProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chil
|
|
|
165
166
|
name: string;
|
|
166
167
|
description?: string;
|
|
167
168
|
label?: string;
|
|
169
|
+
rules?: RegisterOptions<FieldValues, string>;
|
|
168
170
|
children: (props: any) => ReactNode;
|
|
169
171
|
}
|
|
170
|
-
declare function FormFieldArray({ name, description, label, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
|
|
172
|
+
declare function FormFieldArray({ name, description, label, rules, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
|
|
171
173
|
|
|
172
174
|
interface ButtonProps extends ButtonProps$1 {
|
|
173
175
|
variant?: 'primary' | 'secondary' | 'outline' | 'quiet' | 'danger' | 'zero';
|
|
@@ -542,9 +544,10 @@ interface SearchFieldProps extends SearchFieldProps$1 {
|
|
|
542
544
|
value?: string;
|
|
543
545
|
defaultValue?: string;
|
|
544
546
|
delay?: number;
|
|
547
|
+
onChange?: (value: string) => void;
|
|
545
548
|
onSearch?: (value: string) => void;
|
|
546
549
|
}
|
|
547
|
-
declare function SearchField({ label, placeholder, value, defaultValue, delay, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
|
|
550
|
+
declare function SearchField({ label, placeholder, value, defaultValue, delay, onChange, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
|
|
548
551
|
|
|
549
552
|
interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
550
553
|
items?: any[];
|
package/dist/index.d.ts
CHANGED
|
@@ -113,11 +113,12 @@ interface BoxProps extends Omit<HTMLAttributes<HTMLElement>, 'color'> {
|
|
|
113
113
|
gridRow?: Responsive<string>;
|
|
114
114
|
gridColumn?: Responsive<string>;
|
|
115
115
|
order?: Responsive<number>;
|
|
116
|
+
zIndex?: Responsive<number>;
|
|
116
117
|
theme?: string;
|
|
117
118
|
as?: string;
|
|
118
119
|
asChild?: boolean;
|
|
119
120
|
}
|
|
120
|
-
declare function Box({ display, color, backgroundColor, hoverColor, hoverBackgroundColor, hoverBorderColor, fontSize, fontWeight, border, borderColor, borderRadius, shadow, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, width, minWidth, maxWidth, height, minHeight, maxHeight, position, textAlign, top, right, bottom, left, overflow, overflowX, overflowY, alignSelf, justifySelf, flexBasis, flexGrow, flexShrink, gridArea, gridRow, gridColumn, order, theme, as, asChild, className, style, children, ...props }: BoxProps): react.JSX.Element;
|
|
121
|
+
declare function Box({ display, color, backgroundColor, hoverColor, hoverBackgroundColor, hoverBorderColor, fontSize, fontWeight, border, borderColor, borderRadius, shadow, padding, paddingX, paddingY, paddingTop, paddingRight, paddingBottom, paddingLeft, margin, marginX, marginY, marginTop, marginRight, marginBottom, marginLeft, width, minWidth, maxWidth, height, minHeight, maxHeight, position, textAlign, top, right, bottom, left, overflow, overflowX, overflowY, alignSelf, justifySelf, flexBasis, flexGrow, flexShrink, gridArea, gridRow, gridColumn, order, zIndex, theme, as, asChild, className, style, children, ...props }: BoxProps): react.JSX.Element;
|
|
121
122
|
|
|
122
123
|
interface FlexboxProps extends Omit<BoxProps, 'display'> {
|
|
123
124
|
display?: Responsive<FlexDisplay>;
|
|
@@ -165,9 +166,10 @@ interface FormFieldArrayProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chil
|
|
|
165
166
|
name: string;
|
|
166
167
|
description?: string;
|
|
167
168
|
label?: string;
|
|
169
|
+
rules?: RegisterOptions<FieldValues, string>;
|
|
168
170
|
children: (props: any) => ReactNode;
|
|
169
171
|
}
|
|
170
|
-
declare function FormFieldArray({ name, description, label, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
|
|
172
|
+
declare function FormFieldArray({ name, description, label, rules, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
|
|
171
173
|
|
|
172
174
|
interface ButtonProps extends ButtonProps$1 {
|
|
173
175
|
variant?: 'primary' | 'secondary' | 'outline' | 'quiet' | 'danger' | 'zero';
|
|
@@ -542,9 +544,10 @@ interface SearchFieldProps extends SearchFieldProps$1 {
|
|
|
542
544
|
value?: string;
|
|
543
545
|
defaultValue?: string;
|
|
544
546
|
delay?: number;
|
|
547
|
+
onChange?: (value: string) => void;
|
|
545
548
|
onSearch?: (value: string) => void;
|
|
546
549
|
}
|
|
547
|
-
declare function SearchField({ label, placeholder, value, defaultValue, delay, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
|
|
550
|
+
declare function SearchField({ label, placeholder, value, defaultValue, delay, onChange, onSearch, className, ...props }: SearchFieldProps): react.JSX.Element;
|
|
548
551
|
|
|
549
552
|
interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
550
553
|
items?: any[];
|