@umami/react-zen 0.134.0 → 0.136.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 +37 -24
- package/dist/index.d.mts +3 -4
- package/dist/index.d.ts +3 -4
- package/dist/index.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
- package/styles.css +37 -24
package/dist/index.css
CHANGED
|
@@ -3054,7 +3054,7 @@
|
|
|
3054
3054
|
}
|
|
3055
3055
|
|
|
3056
3056
|
/* virtual-css:css:616ae3b49446388ff62e911490fa55d8 */
|
|
3057
|
-
.
|
|
3057
|
+
.Button_button__ZGNlZ {
|
|
3058
3058
|
display: flex;
|
|
3059
3059
|
align-items: center;
|
|
3060
3060
|
justify-content: center;
|
|
@@ -3073,89 +3073,102 @@
|
|
|
3073
3073
|
line-height: 1.5;
|
|
3074
3074
|
--button-height: calc(1.5 * var(--font-size) + 2 * var(--padding-y)) ;
|
|
3075
3075
|
}
|
|
3076
|
-
.
|
|
3076
|
+
.Button_button__ZGNlZ:disabled {
|
|
3077
3077
|
color: var(--font-color-muted);
|
|
3078
3078
|
pointer-events: none;
|
|
3079
3079
|
}
|
|
3080
|
-
.
|
|
3080
|
+
.Button_button__ZGNlZ:hover {
|
|
3081
3081
|
color: var(--font-color);
|
|
3082
3082
|
background: color-mix(in srgb, var(--base-color-3), 5% var(--dark-color));
|
|
3083
3083
|
}
|
|
3084
|
-
.
|
|
3084
|
+
.Button_button__ZGNlZ[data-pressed] {
|
|
3085
3085
|
background: color-mix(in srgb, var(--base-color-3), 10% var(--dark-color));
|
|
3086
3086
|
}
|
|
3087
|
-
.
|
|
3087
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O {
|
|
3088
3088
|
color: var(--primary-font-color) !important;
|
|
3089
3089
|
background: var(--primary-color);
|
|
3090
3090
|
}
|
|
3091
|
-
.
|
|
3091
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O:hover {
|
|
3092
3092
|
background: color-mix(in srgb, var(--primary-color), 10% var(--primary-font-color));
|
|
3093
3093
|
}
|
|
3094
|
-
.
|
|
3094
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O[data-pressed] {
|
|
3095
3095
|
background: color-mix(in srgb, var(--primary-color), 20% var(--primary-font-color));
|
|
3096
3096
|
}
|
|
3097
|
-
.
|
|
3097
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O:disabled {
|
|
3098
3098
|
color: var(--primary-font-color);
|
|
3099
3099
|
background: var(--base-color-9);
|
|
3100
3100
|
}
|
|
3101
|
-
.
|
|
3101
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM {
|
|
3102
3102
|
background: var(--background-color);
|
|
3103
3103
|
border: var(--border);
|
|
3104
3104
|
box-shadow: var(--box-shadow-1);
|
|
3105
3105
|
}
|
|
3106
|
-
.
|
|
3106
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM:hover {
|
|
3107
3107
|
border-color: var(--border-color-3);
|
|
3108
3108
|
}
|
|
3109
|
-
.
|
|
3109
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM[data-pressed] {
|
|
3110
3110
|
background: var(--highlight-color);
|
|
3111
3111
|
}
|
|
3112
|
-
.
|
|
3112
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM:disabled {
|
|
3113
3113
|
background: var(--base-color-2);
|
|
3114
3114
|
}
|
|
3115
|
-
.
|
|
3115
|
+
.Button_button__ZGNlZ.Button_variant-quiet__YzZjO {
|
|
3116
3116
|
background: transparent;
|
|
3117
3117
|
}
|
|
3118
|
-
.
|
|
3118
|
+
.Button_button__ZGNlZ.Button_variant-quiet__YzZjO:hover {
|
|
3119
3119
|
background: var(--highlight-color);
|
|
3120
3120
|
}
|
|
3121
|
-
.
|
|
3121
|
+
.Button_button__ZGNlZ.Button_variant-quiet__YzZjO[data-pressed] {
|
|
3122
3122
|
background: color-mix(in srgb, var(--highlight-color), 5% var(--dark-color));
|
|
3123
3123
|
}
|
|
3124
|
-
.
|
|
3124
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M {
|
|
3125
3125
|
color: var(--light-color);
|
|
3126
3126
|
background: var(--danger-color);
|
|
3127
3127
|
}
|
|
3128
|
-
.
|
|
3128
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M:hover {
|
|
3129
3129
|
background: color-mix(in srgb, var(--danger-color), 6% black);
|
|
3130
3130
|
}
|
|
3131
|
-
.
|
|
3131
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M[data-pressed] {
|
|
3132
3132
|
background: color-mix(in srgb, var(--danger-color), 12% black);
|
|
3133
3133
|
}
|
|
3134
|
-
.
|
|
3134
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M:disabled {
|
|
3135
3135
|
color: var(--primary-font-color);
|
|
3136
3136
|
background: var(--base-color-8);
|
|
3137
3137
|
}
|
|
3138
|
-
.
|
|
3138
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ {
|
|
3139
|
+
border: 0;
|
|
3140
|
+
background: transparent;
|
|
3141
|
+
}
|
|
3142
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ:hover {
|
|
3143
|
+
background: transparent;
|
|
3144
|
+
}
|
|
3145
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ[data-pressed] {
|
|
3146
|
+
background: transparent;
|
|
3147
|
+
}
|
|
3148
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ:disabled {
|
|
3149
|
+
background: transparent;
|
|
3150
|
+
}
|
|
3151
|
+
.Button_button__ZGNlZ.Button_sm__ODlkM {
|
|
3139
3152
|
font-size: calc(0.9 * var(--font-size));
|
|
3140
3153
|
padding: calc(0.5 * var(--padding-y)) calc(0.75 * var(--padding-x));
|
|
3141
3154
|
min-height: calc(0.9 * var(--button-height));
|
|
3142
3155
|
}
|
|
3143
|
-
.
|
|
3156
|
+
.Button_button__ZGNlZ.Button_md__ZTU2M {
|
|
3144
3157
|
font-size: var(--font-size);
|
|
3145
3158
|
padding: var(--padding);
|
|
3146
3159
|
min-height: var(--button-height);
|
|
3147
3160
|
}
|
|
3148
|
-
.
|
|
3161
|
+
.Button_button__ZGNlZ.Button_lg__NWJjO {
|
|
3149
3162
|
font-size: calc(1.25 * var(--font-size));
|
|
3150
3163
|
padding: var(--padding-y) calc(1.25 * var(--padding-x));
|
|
3151
3164
|
min-height: calc(1.25 * var(--button-height));
|
|
3152
3165
|
}
|
|
3153
|
-
.
|
|
3166
|
+
.Button_button__ZGNlZ.Button_xl__MmYwY {
|
|
3154
3167
|
font-size: calc(1.5 * var(--font-size));
|
|
3155
3168
|
padding: calc(1.25 * var(--padding-y)) calc(1.25 * var(--padding-x));
|
|
3156
3169
|
min-height: calc(1.5 * var(--button-height));
|
|
3157
3170
|
}
|
|
3158
|
-
body a.
|
|
3171
|
+
body a.Button_button__ZGNlZ {
|
|
3159
3172
|
color: inherit;
|
|
3160
3173
|
text-decoration: none;
|
|
3161
3174
|
}
|
package/dist/index.d.mts
CHANGED
|
@@ -172,10 +172,9 @@ interface FormFieldArrayProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chil
|
|
|
172
172
|
declare function FormFieldArray({ name, description, label, rules, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
|
|
173
173
|
|
|
174
174
|
interface ButtonProps extends ButtonProps$1 {
|
|
175
|
-
variant?: 'primary' | '
|
|
175
|
+
variant?: 'primary' | 'outline' | 'quiet' | 'danger' | 'wrapper';
|
|
176
176
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
177
177
|
asChild?: boolean;
|
|
178
|
-
slot?: string;
|
|
179
178
|
children?: ReactNode;
|
|
180
179
|
}
|
|
181
180
|
declare function Button({ variant, size, asChild, preventFocusOnPress, className, children, ...props }: ButtonProps): react.JSX.Element;
|
|
@@ -551,8 +550,8 @@ declare function SearchField({ label, placeholder, value, defaultValue, delay, o
|
|
|
551
550
|
|
|
552
551
|
interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
553
552
|
items?: any[];
|
|
554
|
-
value?: string;
|
|
555
|
-
defaultValue?: string;
|
|
553
|
+
value?: string | number;
|
|
554
|
+
defaultValue?: string | number;
|
|
556
555
|
label?: string;
|
|
557
556
|
isLoading?: boolean;
|
|
558
557
|
allowSearch?: boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -172,10 +172,9 @@ interface FormFieldArrayProps extends Omit<HTMLAttributes<HTMLDivElement>, 'chil
|
|
|
172
172
|
declare function FormFieldArray({ name, description, label, rules, className, children, ...props }: FormFieldArrayProps): react.JSX.Element;
|
|
173
173
|
|
|
174
174
|
interface ButtonProps extends ButtonProps$1 {
|
|
175
|
-
variant?: 'primary' | '
|
|
175
|
+
variant?: 'primary' | 'outline' | 'quiet' | 'danger' | 'wrapper';
|
|
176
176
|
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
177
177
|
asChild?: boolean;
|
|
178
|
-
slot?: string;
|
|
179
178
|
children?: ReactNode;
|
|
180
179
|
}
|
|
181
180
|
declare function Button({ variant, size, asChild, preventFocusOnPress, className, children, ...props }: ButtonProps): react.JSX.Element;
|
|
@@ -551,8 +550,8 @@ declare function SearchField({ label, placeholder, value, defaultValue, delay, o
|
|
|
551
550
|
|
|
552
551
|
interface SelectProps extends SelectProps$1<HTMLSelectElement> {
|
|
553
552
|
items?: any[];
|
|
554
|
-
value?: string;
|
|
555
|
-
defaultValue?: string;
|
|
553
|
+
value?: string | number;
|
|
554
|
+
defaultValue?: string | number;
|
|
556
555
|
label?: string;
|
|
557
556
|
isLoading?: boolean;
|
|
558
557
|
allowSearch?: boolean;
|
package/dist/index.js
CHANGED
|
@@ -26421,12 +26421,12 @@ function FormFieldArray({
|
|
|
26421
26421
|
var import_classnames9 = __toESM(require_classnames());
|
|
26422
26422
|
|
|
26423
26423
|
// css-modules:E:\dev\umami-react-zen\src\components\Button.module.css
|
|
26424
|
-
var Button_default = { "button": "
|
|
26424
|
+
var Button_default = { "button": "Button_button__ZGNlZ", "variant-primary": "Button_variant-primary__YjM5O", "variant-outline": "Button_variant-outline__YTkyM", "variant-quiet": "Button_variant-quiet__YzZjO", "variant-danger": "Button_variant-danger__ZGY0M", "variant-zero": "Button_variant-zero__ZjhhZ", "sm": "Button_sm__ODlkM", "md": "Button_md__ZTU2M", "lg": "Button_lg__NWJjO", "xl": "Button_xl__MmYwY" };
|
|
26425
26425
|
|
|
26426
26426
|
// src/components/Button.tsx
|
|
26427
26427
|
var import_jsx_runtime16 = require("react/jsx-runtime");
|
|
26428
26428
|
function Button2({
|
|
26429
|
-
variant
|
|
26429
|
+
variant,
|
|
26430
26430
|
size = "md",
|
|
26431
26431
|
asChild,
|
|
26432
26432
|
preventFocusOnPress = true,
|
|
@@ -26444,7 +26444,7 @@ function Button2({
|
|
|
26444
26444
|
className: (0, import_classnames9.default)(
|
|
26445
26445
|
Button_default.button,
|
|
26446
26446
|
className,
|
|
26447
|
-
variant && Button_default[variant],
|
|
26447
|
+
variant && Button_default[`variant-${variant}`],
|
|
26448
26448
|
size && Button_default[size]
|
|
26449
26449
|
),
|
|
26450
26450
|
children
|
package/dist/index.mjs
CHANGED
|
@@ -26306,12 +26306,12 @@ function FormFieldArray({
|
|
|
26306
26306
|
var import_classnames9 = __toESM(require_classnames());
|
|
26307
26307
|
|
|
26308
26308
|
// css-modules:E:\dev\umami-react-zen\src\components\Button.module.css
|
|
26309
|
-
var Button_default = { "button": "
|
|
26309
|
+
var Button_default = { "button": "Button_button__ZGNlZ", "variant-primary": "Button_variant-primary__YjM5O", "variant-outline": "Button_variant-outline__YTkyM", "variant-quiet": "Button_variant-quiet__YzZjO", "variant-danger": "Button_variant-danger__ZGY0M", "variant-zero": "Button_variant-zero__ZjhhZ", "sm": "Button_sm__ODlkM", "md": "Button_md__ZTU2M", "lg": "Button_lg__NWJjO", "xl": "Button_xl__MmYwY" };
|
|
26310
26310
|
|
|
26311
26311
|
// src/components/Button.tsx
|
|
26312
26312
|
import { jsx as jsx16 } from "react/jsx-runtime";
|
|
26313
26313
|
function Button2({
|
|
26314
|
-
variant
|
|
26314
|
+
variant,
|
|
26315
26315
|
size = "md",
|
|
26316
26316
|
asChild,
|
|
26317
26317
|
preventFocusOnPress = true,
|
|
@@ -26329,7 +26329,7 @@ function Button2({
|
|
|
26329
26329
|
className: (0, import_classnames9.default)(
|
|
26330
26330
|
Button_default.button,
|
|
26331
26331
|
className,
|
|
26332
|
-
variant && Button_default[variant],
|
|
26332
|
+
variant && Button_default[`variant-${variant}`],
|
|
26333
26333
|
size && Button_default[size]
|
|
26334
26334
|
),
|
|
26335
26335
|
children
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -3372,7 +3372,7 @@ li {
|
|
|
3372
3372
|
}
|
|
3373
3373
|
|
|
3374
3374
|
/* virtual-css:css:616ae3b49446388ff62e911490fa55d8 */
|
|
3375
|
-
.
|
|
3375
|
+
.Button_button__ZGNlZ {
|
|
3376
3376
|
display: flex;
|
|
3377
3377
|
align-items: center;
|
|
3378
3378
|
justify-content: center;
|
|
@@ -3391,89 +3391,102 @@ li {
|
|
|
3391
3391
|
line-height: 1.5;
|
|
3392
3392
|
--button-height: calc(1.5 * var(--font-size) + 2 * var(--padding-y)) ;
|
|
3393
3393
|
}
|
|
3394
|
-
.
|
|
3394
|
+
.Button_button__ZGNlZ:disabled {
|
|
3395
3395
|
color: var(--font-color-muted);
|
|
3396
3396
|
pointer-events: none;
|
|
3397
3397
|
}
|
|
3398
|
-
.
|
|
3398
|
+
.Button_button__ZGNlZ:hover {
|
|
3399
3399
|
color: var(--font-color);
|
|
3400
3400
|
background: color-mix(in srgb, var(--base-color-3), 5% var(--dark-color));
|
|
3401
3401
|
}
|
|
3402
|
-
.
|
|
3402
|
+
.Button_button__ZGNlZ[data-pressed] {
|
|
3403
3403
|
background: color-mix(in srgb, var(--base-color-3), 10% var(--dark-color));
|
|
3404
3404
|
}
|
|
3405
|
-
.
|
|
3405
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O {
|
|
3406
3406
|
color: var(--primary-font-color) !important;
|
|
3407
3407
|
background: var(--primary-color);
|
|
3408
3408
|
}
|
|
3409
|
-
.
|
|
3409
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O:hover {
|
|
3410
3410
|
background: color-mix(in srgb, var(--primary-color), 10% var(--primary-font-color));
|
|
3411
3411
|
}
|
|
3412
|
-
.
|
|
3412
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O[data-pressed] {
|
|
3413
3413
|
background: color-mix(in srgb, var(--primary-color), 20% var(--primary-font-color));
|
|
3414
3414
|
}
|
|
3415
|
-
.
|
|
3415
|
+
.Button_button__ZGNlZ.Button_variant-primary__YjM5O:disabled {
|
|
3416
3416
|
color: var(--primary-font-color);
|
|
3417
3417
|
background: var(--base-color-9);
|
|
3418
3418
|
}
|
|
3419
|
-
.
|
|
3419
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM {
|
|
3420
3420
|
background: var(--background-color);
|
|
3421
3421
|
border: var(--border);
|
|
3422
3422
|
box-shadow: var(--box-shadow-1);
|
|
3423
3423
|
}
|
|
3424
|
-
.
|
|
3424
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM:hover {
|
|
3425
3425
|
border-color: var(--border-color-3);
|
|
3426
3426
|
}
|
|
3427
|
-
.
|
|
3427
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM[data-pressed] {
|
|
3428
3428
|
background: var(--highlight-color);
|
|
3429
3429
|
}
|
|
3430
|
-
.
|
|
3430
|
+
.Button_button__ZGNlZ.Button_variant-outline__YTkyM:disabled {
|
|
3431
3431
|
background: var(--base-color-2);
|
|
3432
3432
|
}
|
|
3433
|
-
.
|
|
3433
|
+
.Button_button__ZGNlZ.Button_variant-quiet__YzZjO {
|
|
3434
3434
|
background: transparent;
|
|
3435
3435
|
}
|
|
3436
|
-
.
|
|
3436
|
+
.Button_button__ZGNlZ.Button_variant-quiet__YzZjO:hover {
|
|
3437
3437
|
background: var(--highlight-color);
|
|
3438
3438
|
}
|
|
3439
|
-
.
|
|
3439
|
+
.Button_button__ZGNlZ.Button_variant-quiet__YzZjO[data-pressed] {
|
|
3440
3440
|
background: color-mix(in srgb, var(--highlight-color), 5% var(--dark-color));
|
|
3441
3441
|
}
|
|
3442
|
-
.
|
|
3442
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M {
|
|
3443
3443
|
color: var(--light-color);
|
|
3444
3444
|
background: var(--danger-color);
|
|
3445
3445
|
}
|
|
3446
|
-
.
|
|
3446
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M:hover {
|
|
3447
3447
|
background: color-mix(in srgb, var(--danger-color), 6% black);
|
|
3448
3448
|
}
|
|
3449
|
-
.
|
|
3449
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M[data-pressed] {
|
|
3450
3450
|
background: color-mix(in srgb, var(--danger-color), 12% black);
|
|
3451
3451
|
}
|
|
3452
|
-
.
|
|
3452
|
+
.Button_button__ZGNlZ.Button_variant-danger__ZGY0M:disabled {
|
|
3453
3453
|
color: var(--primary-font-color);
|
|
3454
3454
|
background: var(--base-color-8);
|
|
3455
3455
|
}
|
|
3456
|
-
.
|
|
3456
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ {
|
|
3457
|
+
border: 0;
|
|
3458
|
+
background: transparent;
|
|
3459
|
+
}
|
|
3460
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ:hover {
|
|
3461
|
+
background: transparent;
|
|
3462
|
+
}
|
|
3463
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ[data-pressed] {
|
|
3464
|
+
background: transparent;
|
|
3465
|
+
}
|
|
3466
|
+
.Button_button__ZGNlZ.Button_variant-zero__ZjhhZ:disabled {
|
|
3467
|
+
background: transparent;
|
|
3468
|
+
}
|
|
3469
|
+
.Button_button__ZGNlZ.Button_sm__ODlkM {
|
|
3457
3470
|
font-size: calc(0.9 * var(--font-size));
|
|
3458
3471
|
padding: calc(0.5 * var(--padding-y)) calc(0.75 * var(--padding-x));
|
|
3459
3472
|
min-height: calc(0.9 * var(--button-height));
|
|
3460
3473
|
}
|
|
3461
|
-
.
|
|
3474
|
+
.Button_button__ZGNlZ.Button_md__ZTU2M {
|
|
3462
3475
|
font-size: var(--font-size);
|
|
3463
3476
|
padding: var(--padding);
|
|
3464
3477
|
min-height: var(--button-height);
|
|
3465
3478
|
}
|
|
3466
|
-
.
|
|
3479
|
+
.Button_button__ZGNlZ.Button_lg__NWJjO {
|
|
3467
3480
|
font-size: calc(1.25 * var(--font-size));
|
|
3468
3481
|
padding: var(--padding-y) calc(1.25 * var(--padding-x));
|
|
3469
3482
|
min-height: calc(1.25 * var(--button-height));
|
|
3470
3483
|
}
|
|
3471
|
-
.
|
|
3484
|
+
.Button_button__ZGNlZ.Button_xl__MmYwY {
|
|
3472
3485
|
font-size: calc(1.5 * var(--font-size));
|
|
3473
3486
|
padding: calc(1.25 * var(--padding-y)) calc(1.25 * var(--padding-x));
|
|
3474
3487
|
min-height: calc(1.5 * var(--button-height));
|
|
3475
3488
|
}
|
|
3476
|
-
body a.
|
|
3489
|
+
body a.Button_button__ZGNlZ {
|
|
3477
3490
|
color: inherit;
|
|
3478
3491
|
text-decoration: none;
|
|
3479
3492
|
}
|