@umami/react-zen 0.47.0 → 0.48.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 +30 -26
- package/dist/index.d.ts +2 -2
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
- package/styles.css +30 -26
package/dist/index.css
CHANGED
|
@@ -2771,22 +2771,22 @@ body a.Button_button__NjVkM {
|
|
|
2771
2771
|
}
|
|
2772
2772
|
|
|
2773
2773
|
/* virtual-css:css:0fb02723d81c5960ed149d3d9f58f1ba */
|
|
2774
|
-
.
|
|
2774
|
+
.List_list__MWFhZ {
|
|
2775
2775
|
min-width: 100px;
|
|
2776
2776
|
outline: none;
|
|
2777
2777
|
}
|
|
2778
|
-
.
|
|
2778
|
+
.List_separator__ZTgxZ {
|
|
2779
2779
|
border-bottom: var(--border);
|
|
2780
2780
|
}
|
|
2781
|
-
.
|
|
2781
|
+
.List_section__ZjU0Y:not(:last-child) {
|
|
2782
2782
|
margin-bottom: var(--spacing-4);
|
|
2783
2783
|
}
|
|
2784
|
-
.
|
|
2784
|
+
.List_header__MTYzY {
|
|
2785
2785
|
font-size: var(--font-size-2);
|
|
2786
2786
|
font-weight: var(--font-weight-bold);
|
|
2787
2787
|
padding: var(--padding);
|
|
2788
2788
|
}
|
|
2789
|
-
.
|
|
2789
|
+
.List_item__ZjgyZ {
|
|
2790
2790
|
display: flex;
|
|
2791
2791
|
align-items: center;
|
|
2792
2792
|
justify-content: space-between;
|
|
@@ -2800,21 +2800,23 @@ body a.Button_button__NjVkM {
|
|
|
2800
2800
|
outline: none;
|
|
2801
2801
|
border-radius: var(--border-radius);
|
|
2802
2802
|
}
|
|
2803
|
-
.
|
|
2804
|
-
.
|
|
2803
|
+
.List_item__ZjgyZ[data-focus],
|
|
2804
|
+
.List_item__ZjgyZ[data-focus-visible] {
|
|
2805
2805
|
outline: var(--outline);
|
|
2806
2806
|
background: var(--highlight-color);
|
|
2807
2807
|
}
|
|
2808
|
-
.
|
|
2808
|
+
.List_item__ZjgyZ:hover {
|
|
2809
2809
|
background: var(--highlight-color);
|
|
2810
2810
|
}
|
|
2811
|
-
.
|
|
2811
|
+
.List_item__ZjgyZ[data-selected] {
|
|
2812
2812
|
font-weight: bold;
|
|
2813
2813
|
}
|
|
2814
|
-
.
|
|
2815
|
-
display:
|
|
2814
|
+
.List_item__ZjgyZ[data-selected] .List_check__ZGE5Y {
|
|
2815
|
+
display: flex;
|
|
2816
|
+
justify-content: flex-end;
|
|
2817
|
+
width: 100%;
|
|
2816
2818
|
}
|
|
2817
|
-
.
|
|
2819
|
+
.List_check__ZGE5Y {
|
|
2818
2820
|
display: none;
|
|
2819
2821
|
}
|
|
2820
2822
|
|
|
@@ -3198,7 +3200,7 @@ body a.Button_button__NjVkM {
|
|
|
3198
3200
|
}
|
|
3199
3201
|
|
|
3200
3202
|
/* virtual-css:css:3130df15a3cfaee8cb812b182afb7ee1 */
|
|
3201
|
-
.
|
|
3203
|
+
.Menu_menu__NzFkN {
|
|
3202
3204
|
min-width: 200px;
|
|
3203
3205
|
border: var(--border);
|
|
3204
3206
|
border-radius: var(--border-radius);
|
|
@@ -3206,45 +3208,47 @@ body a.Button_button__NjVkM {
|
|
|
3206
3208
|
box-shadow: var(--box-shadow-3);
|
|
3207
3209
|
background: var(--background-color);
|
|
3208
3210
|
}
|
|
3209
|
-
.
|
|
3211
|
+
.Menu_separator__M2JkY {
|
|
3210
3212
|
border-bottom: var(--border);
|
|
3211
3213
|
}
|
|
3212
|
-
.
|
|
3214
|
+
.Menu_section__OTA1M:not(:last-child) {
|
|
3213
3215
|
margin-bottom: var(--spacing-4);
|
|
3214
3216
|
}
|
|
3215
|
-
.
|
|
3217
|
+
.Menu_header__MGRlY {
|
|
3216
3218
|
font-size: var(--font-size-2);
|
|
3217
3219
|
font-weight: var(--font-weight-bold);
|
|
3218
3220
|
padding: var(--padding);
|
|
3219
3221
|
}
|
|
3220
|
-
.
|
|
3222
|
+
.Menu_item__MzhmZ {
|
|
3221
3223
|
display: flex;
|
|
3222
3224
|
align-items: center;
|
|
3223
|
-
|
|
3225
|
+
gap: var(--gap);
|
|
3224
3226
|
font-size: var(--font-size);
|
|
3225
3227
|
color: var(--font-color);
|
|
3226
3228
|
background: var(--background-color);
|
|
3227
3229
|
padding: var(--padding);
|
|
3228
3230
|
border-radius: var(--border-radius);
|
|
3229
|
-
gap: var(--gap);
|
|
3230
3231
|
cursor: pointer;
|
|
3231
3232
|
outline: none;
|
|
3233
|
+
width: 100%;
|
|
3232
3234
|
}
|
|
3233
|
-
.
|
|
3234
|
-
.
|
|
3235
|
+
.Menu_item__MzhmZ[data-focus],
|
|
3236
|
+
.Menu_item__MzhmZ[data-focus-visible] {
|
|
3235
3237
|
outline: var(--outline);
|
|
3236
3238
|
background: var(--highlight-color);
|
|
3237
3239
|
}
|
|
3238
|
-
.
|
|
3240
|
+
.Menu_item__MzhmZ:hover {
|
|
3239
3241
|
background: var(--highlight-color);
|
|
3240
3242
|
}
|
|
3241
|
-
.
|
|
3243
|
+
.Menu_item__MzhmZ[data-selected] {
|
|
3242
3244
|
font-weight: bold;
|
|
3243
3245
|
}
|
|
3244
|
-
.
|
|
3245
|
-
display:
|
|
3246
|
+
.Menu_item__MzhmZ[data-selected] .Menu_check__MzQ2N {
|
|
3247
|
+
display: flex;
|
|
3248
|
+
justify-content: flex-end;
|
|
3249
|
+
width: 100%;
|
|
3246
3250
|
}
|
|
3247
|
-
.
|
|
3251
|
+
.Menu_check__MzQ2N {
|
|
3248
3252
|
display: none;
|
|
3249
3253
|
}
|
|
3250
3254
|
|
package/dist/index.d.ts
CHANGED
|
@@ -620,7 +620,7 @@ declare module '@umami/react-zen/LoadingButton' {
|
|
|
620
620
|
|
|
621
621
|
declare module '@umami/react-zen/Menu' {
|
|
622
622
|
import { ReactNode } from 'react';
|
|
623
|
-
import {
|
|
623
|
+
import { MenuSectionProps, MenuItemProps, MenuProps as AriaMenuProps, SeparatorProps } from 'react-aria-components';
|
|
624
624
|
interface MenuProps extends AriaMenuProps<any> {
|
|
625
625
|
items?: any[];
|
|
626
626
|
className?: string;
|
|
@@ -629,7 +629,7 @@ declare module '@umami/react-zen/Menu' {
|
|
|
629
629
|
function Menu({ items, className, children, ...props }: MenuProps): import("react").JSX.Element;
|
|
630
630
|
function MenuItem({ children, className, ...props }: MenuItemProps<any>): import("react").JSX.Element;
|
|
631
631
|
function MenuSeparator({ className, ...props }: SeparatorProps): import("react").JSX.Element;
|
|
632
|
-
function MenuSection({ title, className, children, ...props }:
|
|
632
|
+
function MenuSection({ title, className, children, ...props }: MenuSectionProps<any> & {
|
|
633
633
|
title?: string;
|
|
634
634
|
}): import("react").JSX.Element;
|
|
635
635
|
export { Menu, MenuItem, MenuSeparator, MenuSection };
|
package/dist/index.js
CHANGED
|
@@ -43519,7 +43519,7 @@ var import_classnames20 = __toESM(require_classnames());
|
|
|
43519
43519
|
var import_classnames18 = __toESM(require_classnames());
|
|
43520
43520
|
|
|
43521
43521
|
// css-modules:E:\dev\umami-react-zen\src\components\List.module.css
|
|
43522
|
-
var List_default = { "list": "
|
|
43522
|
+
var List_default = { "list": "List_list__MWFhZ", "separator": "List_separator__ZTgxZ", "section": "List_section__ZjU0Y", "header": "List_header__MTYzY", "item": "List_item__ZjgyZ", "check": "List_check__ZGE5Y" };
|
|
43523
43523
|
|
|
43524
43524
|
// src/components/List.tsx
|
|
43525
43525
|
var import_jsx_runtime28 = require("react/jsx-runtime");
|
|
@@ -43534,7 +43534,7 @@ function List({ items, className, children, ...props }) {
|
|
|
43534
43534
|
function ListItem({ children, className, ...props }) {
|
|
43535
43535
|
return /* @__PURE__ */ (0, import_jsx_runtime28.jsxs)($eed445e0843c11d0$export$a11e76429ed99b4, { ...props, className: (0, import_classnames18.default)(List_default.item, className), children: [
|
|
43536
43536
|
children,
|
|
43537
|
-
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("
|
|
43537
|
+
/* @__PURE__ */ (0, import_jsx_runtime28.jsx)("div", { "aria-hidden": "true", className: List_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icons.Check, {}) }) })
|
|
43538
43538
|
] });
|
|
43539
43539
|
}
|
|
43540
43540
|
function ListSeparator({ className, ...props }) {
|
|
@@ -44105,7 +44105,7 @@ function Loading(props) {
|
|
|
44105
44105
|
var import_classnames34 = __toESM(require_classnames());
|
|
44106
44106
|
|
|
44107
44107
|
// css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
|
|
44108
|
-
var Menu_default = { "menu": "
|
|
44108
|
+
var Menu_default = { "menu": "Menu_menu__NzFkN", "separator": "Menu_separator__M2JkY", "section": "Menu_section__OTA1M", "header": "Menu_header__MGRlY", "item": "Menu_item__MzhmZ", "check": "Menu_check__MzQ2N" };
|
|
44109
44109
|
|
|
44110
44110
|
// src/components/Menu.tsx
|
|
44111
44111
|
var import_jsx_runtime45 = require("react/jsx-runtime");
|
|
@@ -44120,7 +44120,7 @@ function Menu2({ items, className, children, ...props }) {
|
|
|
44120
44120
|
function MenuItem2({ children, className, ...props }) {
|
|
44121
44121
|
return /* @__PURE__ */ (0, import_jsx_runtime45.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames34.default)(Menu_default.item, className), children: [
|
|
44122
44122
|
children,
|
|
44123
|
-
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("
|
|
44123
|
+
/* @__PURE__ */ (0, import_jsx_runtime45.jsx)("div", { "aria-hidden": "true", className: Menu_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icons.Check, {}) }) })
|
|
44124
44124
|
] });
|
|
44125
44125
|
}
|
|
44126
44126
|
function MenuSeparator({ className, ...props }) {
|
package/dist/index.mjs
CHANGED
|
@@ -43417,7 +43417,7 @@ var import_classnames20 = __toESM(require_classnames());
|
|
|
43417
43417
|
var import_classnames18 = __toESM(require_classnames());
|
|
43418
43418
|
|
|
43419
43419
|
// css-modules:E:\dev\umami-react-zen\src\components\List.module.css
|
|
43420
|
-
var List_default = { "list": "
|
|
43420
|
+
var List_default = { "list": "List_list__MWFhZ", "separator": "List_separator__ZTgxZ", "section": "List_section__ZjU0Y", "header": "List_header__MTYzY", "item": "List_item__ZjgyZ", "check": "List_check__ZGE5Y" };
|
|
43421
43421
|
|
|
43422
43422
|
// src/components/List.tsx
|
|
43423
43423
|
import { jsx as jsx28, jsxs as jsxs15 } from "react/jsx-runtime";
|
|
@@ -43432,7 +43432,7 @@ function List({ items, className, children, ...props }) {
|
|
|
43432
43432
|
function ListItem({ children, className, ...props }) {
|
|
43433
43433
|
return /* @__PURE__ */ jsxs15($eed445e0843c11d0$export$a11e76429ed99b4, { ...props, className: (0, import_classnames18.default)(List_default.item, className), children: [
|
|
43434
43434
|
children,
|
|
43435
|
-
/* @__PURE__ */ jsx28("
|
|
43435
|
+
/* @__PURE__ */ jsx28("div", { "aria-hidden": "true", className: List_default.check, children: /* @__PURE__ */ jsx28(Icon, { children: /* @__PURE__ */ jsx28(Icons.Check, {}) }) })
|
|
43436
43436
|
] });
|
|
43437
43437
|
}
|
|
43438
43438
|
function ListSeparator({ className, ...props }) {
|
|
@@ -44003,7 +44003,7 @@ function Loading(props) {
|
|
|
44003
44003
|
var import_classnames34 = __toESM(require_classnames());
|
|
44004
44004
|
|
|
44005
44005
|
// css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
|
|
44006
|
-
var Menu_default = { "menu": "
|
|
44006
|
+
var Menu_default = { "menu": "Menu_menu__NzFkN", "separator": "Menu_separator__M2JkY", "section": "Menu_section__OTA1M", "header": "Menu_header__MGRlY", "item": "Menu_item__MzhmZ", "check": "Menu_check__MzQ2N" };
|
|
44007
44007
|
|
|
44008
44008
|
// src/components/Menu.tsx
|
|
44009
44009
|
import { jsx as jsx45, jsxs as jsxs24 } from "react/jsx-runtime";
|
|
@@ -44018,7 +44018,7 @@ function Menu2({ items, className, children, ...props }) {
|
|
|
44018
44018
|
function MenuItem2({ children, className, ...props }) {
|
|
44019
44019
|
return /* @__PURE__ */ jsxs24($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames34.default)(Menu_default.item, className), children: [
|
|
44020
44020
|
children,
|
|
44021
|
-
/* @__PURE__ */ jsx45("
|
|
44021
|
+
/* @__PURE__ */ jsx45("div", { "aria-hidden": "true", className: Menu_default.check, children: /* @__PURE__ */ jsx45(Icon, { children: /* @__PURE__ */ jsx45(Icons.Check, {}) }) })
|
|
44022
44022
|
] });
|
|
44023
44023
|
}
|
|
44024
44024
|
function MenuSeparator({ className, ...props }) {
|
package/package.json
CHANGED
package/styles.css
CHANGED
|
@@ -3039,22 +3039,22 @@ body a.Button_button__NjVkM {
|
|
|
3039
3039
|
}
|
|
3040
3040
|
|
|
3041
3041
|
/* virtual-css:css:0fb02723d81c5960ed149d3d9f58f1ba */
|
|
3042
|
-
.
|
|
3042
|
+
.List_list__MWFhZ {
|
|
3043
3043
|
min-width: 100px;
|
|
3044
3044
|
outline: none;
|
|
3045
3045
|
}
|
|
3046
|
-
.
|
|
3046
|
+
.List_separator__ZTgxZ {
|
|
3047
3047
|
border-bottom: var(--border);
|
|
3048
3048
|
}
|
|
3049
|
-
.
|
|
3049
|
+
.List_section__ZjU0Y:not(:last-child) {
|
|
3050
3050
|
margin-bottom: var(--spacing-4);
|
|
3051
3051
|
}
|
|
3052
|
-
.
|
|
3052
|
+
.List_header__MTYzY {
|
|
3053
3053
|
font-size: var(--font-size-2);
|
|
3054
3054
|
font-weight: var(--font-weight-bold);
|
|
3055
3055
|
padding: var(--padding);
|
|
3056
3056
|
}
|
|
3057
|
-
.
|
|
3057
|
+
.List_item__ZjgyZ {
|
|
3058
3058
|
display: flex;
|
|
3059
3059
|
align-items: center;
|
|
3060
3060
|
justify-content: space-between;
|
|
@@ -3068,21 +3068,23 @@ body a.Button_button__NjVkM {
|
|
|
3068
3068
|
outline: none;
|
|
3069
3069
|
border-radius: var(--border-radius);
|
|
3070
3070
|
}
|
|
3071
|
-
.
|
|
3072
|
-
.
|
|
3071
|
+
.List_item__ZjgyZ[data-focus],
|
|
3072
|
+
.List_item__ZjgyZ[data-focus-visible] {
|
|
3073
3073
|
outline: var(--outline);
|
|
3074
3074
|
background: var(--highlight-color);
|
|
3075
3075
|
}
|
|
3076
|
-
.
|
|
3076
|
+
.List_item__ZjgyZ:hover {
|
|
3077
3077
|
background: var(--highlight-color);
|
|
3078
3078
|
}
|
|
3079
|
-
.
|
|
3079
|
+
.List_item__ZjgyZ[data-selected] {
|
|
3080
3080
|
font-weight: bold;
|
|
3081
3081
|
}
|
|
3082
|
-
.
|
|
3083
|
-
display:
|
|
3082
|
+
.List_item__ZjgyZ[data-selected] .List_check__ZGE5Y {
|
|
3083
|
+
display: flex;
|
|
3084
|
+
justify-content: flex-end;
|
|
3085
|
+
width: 100%;
|
|
3084
3086
|
}
|
|
3085
|
-
.
|
|
3087
|
+
.List_check__ZGE5Y {
|
|
3086
3088
|
display: none;
|
|
3087
3089
|
}
|
|
3088
3090
|
|
|
@@ -3466,7 +3468,7 @@ body a.Button_button__NjVkM {
|
|
|
3466
3468
|
}
|
|
3467
3469
|
|
|
3468
3470
|
/* virtual-css:css:3130df15a3cfaee8cb812b182afb7ee1 */
|
|
3469
|
-
.
|
|
3471
|
+
.Menu_menu__NzFkN {
|
|
3470
3472
|
min-width: 200px;
|
|
3471
3473
|
border: var(--border);
|
|
3472
3474
|
border-radius: var(--border-radius);
|
|
@@ -3474,45 +3476,47 @@ body a.Button_button__NjVkM {
|
|
|
3474
3476
|
box-shadow: var(--box-shadow-3);
|
|
3475
3477
|
background: var(--background-color);
|
|
3476
3478
|
}
|
|
3477
|
-
.
|
|
3479
|
+
.Menu_separator__M2JkY {
|
|
3478
3480
|
border-bottom: var(--border);
|
|
3479
3481
|
}
|
|
3480
|
-
.
|
|
3482
|
+
.Menu_section__OTA1M:not(:last-child) {
|
|
3481
3483
|
margin-bottom: var(--spacing-4);
|
|
3482
3484
|
}
|
|
3483
|
-
.
|
|
3485
|
+
.Menu_header__MGRlY {
|
|
3484
3486
|
font-size: var(--font-size-2);
|
|
3485
3487
|
font-weight: var(--font-weight-bold);
|
|
3486
3488
|
padding: var(--padding);
|
|
3487
3489
|
}
|
|
3488
|
-
.
|
|
3490
|
+
.Menu_item__MzhmZ {
|
|
3489
3491
|
display: flex;
|
|
3490
3492
|
align-items: center;
|
|
3491
|
-
|
|
3493
|
+
gap: var(--gap);
|
|
3492
3494
|
font-size: var(--font-size);
|
|
3493
3495
|
color: var(--font-color);
|
|
3494
3496
|
background: var(--background-color);
|
|
3495
3497
|
padding: var(--padding);
|
|
3496
3498
|
border-radius: var(--border-radius);
|
|
3497
|
-
gap: var(--gap);
|
|
3498
3499
|
cursor: pointer;
|
|
3499
3500
|
outline: none;
|
|
3501
|
+
width: 100%;
|
|
3500
3502
|
}
|
|
3501
|
-
.
|
|
3502
|
-
.
|
|
3503
|
+
.Menu_item__MzhmZ[data-focus],
|
|
3504
|
+
.Menu_item__MzhmZ[data-focus-visible] {
|
|
3503
3505
|
outline: var(--outline);
|
|
3504
3506
|
background: var(--highlight-color);
|
|
3505
3507
|
}
|
|
3506
|
-
.
|
|
3508
|
+
.Menu_item__MzhmZ:hover {
|
|
3507
3509
|
background: var(--highlight-color);
|
|
3508
3510
|
}
|
|
3509
|
-
.
|
|
3511
|
+
.Menu_item__MzhmZ[data-selected] {
|
|
3510
3512
|
font-weight: bold;
|
|
3511
3513
|
}
|
|
3512
|
-
.
|
|
3513
|
-
display:
|
|
3514
|
+
.Menu_item__MzhmZ[data-selected] .Menu_check__MzQ2N {
|
|
3515
|
+
display: flex;
|
|
3516
|
+
justify-content: flex-end;
|
|
3517
|
+
width: 100%;
|
|
3514
3518
|
}
|
|
3515
|
-
.
|
|
3519
|
+
.Menu_check__MzQ2N {
|
|
3516
3520
|
display: none;
|
|
3517
3521
|
}
|
|
3518
3522
|
|