@umami/react-zen 0.47.0 → 0.49.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 CHANGED
@@ -2771,22 +2771,22 @@ body a.Button_button__NjVkM {
2771
2771
  }
2772
2772
 
2773
2773
  /* virtual-css:css:0fb02723d81c5960ed149d3d9f58f1ba */
2774
- .List_list__Y2EzO {
2774
+ .List_list__MzQ4M {
2775
2775
  min-width: 100px;
2776
2776
  outline: none;
2777
2777
  }
2778
- .List_separator__ZmQ2M {
2778
+ .List_separator__ODc0Y {
2779
2779
  border-bottom: var(--border);
2780
2780
  }
2781
- .List_section__OTk2Y:not(:last-child) {
2781
+ .List_section__NTZiN:not(:last-child) {
2782
2782
  margin-bottom: var(--spacing-4);
2783
2783
  }
2784
- .List_header__YTlmN {
2784
+ .List_header__NTUxM {
2785
2785
  font-size: var(--font-size-2);
2786
2786
  font-weight: var(--font-weight-bold);
2787
2787
  padding: var(--padding);
2788
2788
  }
2789
- .List_item__ZGUyN {
2789
+ .List_item__ZjQ4M {
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
- .List_item__ZGUyN[data-focus],
2804
- .List_item__ZGUyN[data-focus-visible] {
2803
+ .List_item__ZjQ4M[data-focus],
2804
+ .List_item__ZjQ4M[data-focus-visible] {
2805
2805
  outline: var(--outline);
2806
2806
  background: var(--highlight-color);
2807
2807
  }
2808
- .List_item__ZGUyN:hover {
2808
+ .List_item__ZjQ4M:hover {
2809
2809
  background: var(--highlight-color);
2810
2810
  }
2811
- .List_item__ZGUyN[data-selected] {
2811
+ .List_item__ZjQ4M[data-selected] {
2812
2812
  font-weight: bold;
2813
2813
  }
2814
- .List_item__ZGUyN[data-selected] .List_check__NjI4Y {
2815
- display: block;
2814
+ .List_item__ZjQ4M[data-selected] .List_check__YTJhM {
2815
+ display: flex;
2816
+ justify-content: flex-end;
2817
+ flex: 1;
2816
2818
  }
2817
- .List_check__NjI4Y {
2819
+ .List_check__YTJhM {
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
- .Menu_menu__NzMzO {
3203
+ .Menu_menu__YzMzM {
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
- .Menu_separator__MzFhN {
3211
+ .Menu_separator__NDY4M {
3210
3212
  border-bottom: var(--border);
3211
3213
  }
3212
- .Menu_section__NTBjZ:not(:last-child) {
3214
+ .Menu_section__MWI1M:not(:last-child) {
3213
3215
  margin-bottom: var(--spacing-4);
3214
3216
  }
3215
- .Menu_header__ZDQ4Y {
3217
+ .Menu_header__ZGRjO {
3216
3218
  font-size: var(--font-size-2);
3217
3219
  font-weight: var(--font-weight-bold);
3218
3220
  padding: var(--padding);
3219
3221
  }
3220
- .Menu_item__MmJhY {
3222
+ .Menu_item__M2I5Y {
3221
3223
  display: flex;
3222
3224
  align-items: center;
3223
- justify-content: space-between;
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
- .Menu_item__MmJhY[data-focus],
3234
- .Menu_item__MmJhY[data-focus-visible] {
3235
+ .Menu_item__M2I5Y[data-focus],
3236
+ .Menu_item__M2I5Y[data-focus-visible] {
3235
3237
  outline: var(--outline);
3236
3238
  background: var(--highlight-color);
3237
3239
  }
3238
- .Menu_item__MmJhY:hover {
3240
+ .Menu_item__M2I5Y:hover {
3239
3241
  background: var(--highlight-color);
3240
3242
  }
3241
- .Menu_item__MmJhY[data-selected] {
3243
+ .Menu_item__M2I5Y[data-selected] {
3242
3244
  font-weight: bold;
3243
3245
  }
3244
- .Menu_item__MmJhY[data-selected] .Menu_check__NzZjZ {
3245
- display: block;
3246
+ .Menu_item__M2I5Y[data-selected] .Menu_check__NjA5O {
3247
+ display: flex;
3248
+ justify-content: flex-end;
3249
+ flex: 1;
3246
3250
  }
3247
- .Menu_check__NzZjZ {
3251
+ .Menu_check__NjA5O {
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 { ListBoxSectionProps, MenuItemProps, MenuProps as AriaMenuProps, SeparatorProps } from 'react-aria-components';
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 }: ListBoxSectionProps<any> & {
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": "List_list__Y2EzO", "separator": "List_separator__ZmQ2M", "section": "List_section__OTk2Y", "header": "List_header__YTlmN", "item": "List_item__ZGUyN", "check": "List_check__NjI4Y" };
43522
+ var List_default = { "list": "List_list__MzQ4M", "separator": "List_separator__ODc0Y", "section": "List_section__NTZiN", "header": "List_header__NTUxM", "item": "List_item__ZjQ4M", "check": "List_check__YTJhM" };
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)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icon, { size: "sm", className: List_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime28.jsx)(Icons.Check, {}) }) })
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": "Menu_menu__NzMzO", "separator": "Menu_separator__MzFhN", "section": "Menu_section__NTBjZ", "header": "Menu_header__ZDQ4Y", "item": "Menu_item__MmJhY", "check": "Menu_check__NzZjZ" };
44108
+ var Menu_default = { "menu": "Menu_menu__YzMzM", "separator": "Menu_separator__NDY4M", "section": "Menu_section__MWI1M", "header": "Menu_header__ZGRjO", "item": "Menu_item__M2I5Y", "check": "Menu_check__NjA5O" };
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)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icon, { className: Menu_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime45.jsx)(Icons.Check, {}) }) })
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": "List_list__Y2EzO", "separator": "List_separator__ZmQ2M", "section": "List_section__OTk2Y", "header": "List_header__YTlmN", "item": "List_item__ZGUyN", "check": "List_check__NjI4Y" };
43420
+ var List_default = { "list": "List_list__MzQ4M", "separator": "List_separator__ODc0Y", "section": "List_section__NTZiN", "header": "List_header__NTUxM", "item": "List_item__ZjQ4M", "check": "List_check__YTJhM" };
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("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx28(Icon, { size: "sm", className: List_default.check, children: /* @__PURE__ */ jsx28(Icons.Check, {}) }) })
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": "Menu_menu__NzMzO", "separator": "Menu_separator__MzFhN", "section": "Menu_section__NTBjZ", "header": "Menu_header__ZDQ4Y", "item": "Menu_item__MmJhY", "check": "Menu_check__NzZjZ" };
44006
+ var Menu_default = { "menu": "Menu_menu__YzMzM", "separator": "Menu_separator__NDY4M", "section": "Menu_section__MWI1M", "header": "Menu_header__ZGRjO", "item": "Menu_item__M2I5Y", "check": "Menu_check__NjA5O" };
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("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx45(Icon, { className: Menu_default.check, children: /* @__PURE__ */ jsx45(Icons.Check, {}) }) })
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.47.0",
3
+ "version": "0.49.0",
4
4
  "description": "React components built by Umami",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",
package/styles.css CHANGED
@@ -3039,22 +3039,22 @@ body a.Button_button__NjVkM {
3039
3039
  }
3040
3040
 
3041
3041
  /* virtual-css:css:0fb02723d81c5960ed149d3d9f58f1ba */
3042
- .List_list__Y2EzO {
3042
+ .List_list__MzQ4M {
3043
3043
  min-width: 100px;
3044
3044
  outline: none;
3045
3045
  }
3046
- .List_separator__ZmQ2M {
3046
+ .List_separator__ODc0Y {
3047
3047
  border-bottom: var(--border);
3048
3048
  }
3049
- .List_section__OTk2Y:not(:last-child) {
3049
+ .List_section__NTZiN:not(:last-child) {
3050
3050
  margin-bottom: var(--spacing-4);
3051
3051
  }
3052
- .List_header__YTlmN {
3052
+ .List_header__NTUxM {
3053
3053
  font-size: var(--font-size-2);
3054
3054
  font-weight: var(--font-weight-bold);
3055
3055
  padding: var(--padding);
3056
3056
  }
3057
- .List_item__ZGUyN {
3057
+ .List_item__ZjQ4M {
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
- .List_item__ZGUyN[data-focus],
3072
- .List_item__ZGUyN[data-focus-visible] {
3071
+ .List_item__ZjQ4M[data-focus],
3072
+ .List_item__ZjQ4M[data-focus-visible] {
3073
3073
  outline: var(--outline);
3074
3074
  background: var(--highlight-color);
3075
3075
  }
3076
- .List_item__ZGUyN:hover {
3076
+ .List_item__ZjQ4M:hover {
3077
3077
  background: var(--highlight-color);
3078
3078
  }
3079
- .List_item__ZGUyN[data-selected] {
3079
+ .List_item__ZjQ4M[data-selected] {
3080
3080
  font-weight: bold;
3081
3081
  }
3082
- .List_item__ZGUyN[data-selected] .List_check__NjI4Y {
3083
- display: block;
3082
+ .List_item__ZjQ4M[data-selected] .List_check__YTJhM {
3083
+ display: flex;
3084
+ justify-content: flex-end;
3085
+ flex: 1;
3084
3086
  }
3085
- .List_check__NjI4Y {
3087
+ .List_check__YTJhM {
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
- .Menu_menu__NzMzO {
3471
+ .Menu_menu__YzMzM {
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
- .Menu_separator__MzFhN {
3479
+ .Menu_separator__NDY4M {
3478
3480
  border-bottom: var(--border);
3479
3481
  }
3480
- .Menu_section__NTBjZ:not(:last-child) {
3482
+ .Menu_section__MWI1M:not(:last-child) {
3481
3483
  margin-bottom: var(--spacing-4);
3482
3484
  }
3483
- .Menu_header__ZDQ4Y {
3485
+ .Menu_header__ZGRjO {
3484
3486
  font-size: var(--font-size-2);
3485
3487
  font-weight: var(--font-weight-bold);
3486
3488
  padding: var(--padding);
3487
3489
  }
3488
- .Menu_item__MmJhY {
3490
+ .Menu_item__M2I5Y {
3489
3491
  display: flex;
3490
3492
  align-items: center;
3491
- justify-content: space-between;
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
- .Menu_item__MmJhY[data-focus],
3502
- .Menu_item__MmJhY[data-focus-visible] {
3503
+ .Menu_item__M2I5Y[data-focus],
3504
+ .Menu_item__M2I5Y[data-focus-visible] {
3503
3505
  outline: var(--outline);
3504
3506
  background: var(--highlight-color);
3505
3507
  }
3506
- .Menu_item__MmJhY:hover {
3508
+ .Menu_item__M2I5Y:hover {
3507
3509
  background: var(--highlight-color);
3508
3510
  }
3509
- .Menu_item__MmJhY[data-selected] {
3511
+ .Menu_item__M2I5Y[data-selected] {
3510
3512
  font-weight: bold;
3511
3513
  }
3512
- .Menu_item__MmJhY[data-selected] .Menu_check__NzZjZ {
3513
- display: block;
3514
+ .Menu_item__M2I5Y[data-selected] .Menu_check__NjA5O {
3515
+ display: flex;
3516
+ justify-content: flex-end;
3517
+ flex: 1;
3514
3518
  }
3515
- .Menu_check__NzZjZ {
3519
+ .Menu_check__NjA5O {
3516
3520
  display: none;
3517
3521
  }
3518
3522