@umami/react-zen 0.175.0 → 0.176.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
@@ -4194,7 +4194,7 @@ body a.Button_button__NGQyO {
4194
4194
  }
4195
4195
 
4196
4196
  /* virtual-css:css:3130df15a3cfaee8cb812b182afb7ee1 */
4197
- .Menu_menu__MDc3M {
4197
+ .Menu_menu__NjQ5M {
4198
4198
  min-width: 200px;
4199
4199
  border: var(--border);
4200
4200
  border-radius: var(--border-radius);
@@ -4203,21 +4203,22 @@ body a.Button_button__NGQyO {
4203
4203
  background: var(--background-color);
4204
4204
  overflow: hidden;
4205
4205
  }
4206
- .Menu_separator__MWI1M {
4206
+ .Menu_separator__Mjg5Y {
4207
4207
  border-bottom: var(--border);
4208
4208
  margin: var(--spacing-2) calc(-1 * var(--spacing-3));
4209
4209
  }
4210
- .Menu_section__OTMzY:not(:last-child) {
4210
+ .Menu_section__NThhN:not(:last-child) {
4211
4211
  margin-bottom: var(--spacing-4);
4212
4212
  }
4213
- .Menu_header__YjkwY {
4213
+ .Menu_header__ZjQ0Z {
4214
4214
  font-size: var(--font-size-3);
4215
4215
  font-weight: var(--font-weight-bold);
4216
4216
  padding: var(--padding);
4217
4217
  }
4218
- .Menu_item__ODRkY {
4218
+ .Menu_item__MWVhY {
4219
4219
  display: flex;
4220
4220
  align-items: center;
4221
+ justify-content: space-between;
4221
4222
  gap: var(--gap);
4222
4223
  font-size: var(--font-size);
4223
4224
  color: var(--font-color);
@@ -4228,30 +4229,35 @@ body a.Button_button__NGQyO {
4228
4229
  outline: none;
4229
4230
  width: 100%;
4230
4231
  }
4231
- .Menu_item__ODRkY[data-disabled] {
4232
+ .Menu_item__MWVhY[data-disabled] {
4232
4233
  color: var(--font-color-disabled);
4233
4234
  }
4234
- .Menu_item__ODRkY[data-focus],
4235
- .Menu_item__ODRkY[data-focus-visible] {
4235
+ .Menu_item__MWVhY[data-focus],
4236
+ .Menu_item__MWVhY[data-focus-visible] {
4236
4237
  outline: var(--outline);
4237
4238
  background: var(--highlight-color);
4238
4239
  }
4239
- .Menu_item__ODRkY:hover {
4240
+ .Menu_item__MWVhY:hover {
4240
4241
  background: var(--highlight-color);
4241
4242
  }
4242
- .Menu_item__ODRkY[data-selected] {
4243
+ .Menu_item__MWVhY[data-selected] {
4243
4244
  font-weight: bold;
4244
- & .Menu_checkmark__ZmU2Y {
4245
+ & .Menu_checkmark__ZWVlY {
4245
4246
  display: flex;
4246
4247
  justify-content: flex-end;
4247
4248
  }
4248
4249
  }
4249
- .Menu_checkmark__ZmU2Y {
4250
+ .Menu_checkmark__ZWVlY {
4250
4251
  display: none;
4251
4252
  }
4252
- .Menu_hideCheckmark__NGQ4Y .Menu_checkmark__ZmU2Y {
4253
+ .Menu_hideCheckmark__MDQxM .Menu_checkmark__ZWVlY {
4253
4254
  display: none;
4254
4255
  }
4256
+ .Menu_label__NGU5Z {
4257
+ display: flex;
4258
+ flex-direction: row;
4259
+ gap: var(--gap);
4260
+ }
4255
4261
 
4256
4262
  /* virtual-css:css:593a0302ed618f22d0e6c3631ec684d2 */
4257
4263
  .Modal_overlay__MzBhO {
package/dist/index.js CHANGED
@@ -33578,7 +33578,7 @@ function Loading(props) {
33578
33578
  var import_classnames36 = __toESM(require_classnames());
33579
33579
 
33580
33580
  // css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
33581
- var Menu_default = { "menu": "Menu_menu__MDc3M", "separator": "Menu_separator__MWI1M", "section": "Menu_section__OTMzY", "header": "Menu_header__YjkwY", "item": "Menu_item__ODRkY", "checkmark": "Menu_checkmark__ZmU2Y", "hideCheckmark": "Menu_hideCheckmark__NGQ4Y" };
33581
+ var Menu_default = { "menu": "Menu_menu__NjQ5M", "separator": "Menu_separator__Mjg5Y", "section": "Menu_section__NThhN", "header": "Menu_header__ZjQ0Z", "item": "Menu_item__MWVhY", "checkmark": "Menu_checkmark__ZWVlY", "hideCheckmark": "Menu_hideCheckmark__MDQxM", "label": "Menu_label__NGU5Z" };
33582
33582
 
33583
33583
  // src/components/Menu.tsx
33584
33584
  var import_jsx_runtime51 = require("react/jsx-runtime");
@@ -33587,7 +33587,7 @@ function Menu2({ className, children, ...props }) {
33587
33587
  }
33588
33588
  function MenuItem2({ showChecked = true, children, className, ...props }) {
33589
33589
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames36.default)(Menu_default.item, className), children: [
33590
- children,
33590
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: Menu_default.label, children }),
33591
33591
  showChecked && /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Icon2, { children: /* @__PURE__ */ (0, import_jsx_runtime51.jsx)(Check, {}) }) })
33592
33592
  ] });
33593
33593
  }
package/dist/index.mjs CHANGED
@@ -33461,7 +33461,7 @@ function Loading(props) {
33461
33461
  var import_classnames36 = __toESM(require_classnames());
33462
33462
 
33463
33463
  // css-modules:E:\dev\umami-react-zen\src\components\Menu.module.css
33464
- var Menu_default = { "menu": "Menu_menu__MDc3M", "separator": "Menu_separator__MWI1M", "section": "Menu_section__OTMzY", "header": "Menu_header__YjkwY", "item": "Menu_item__ODRkY", "checkmark": "Menu_checkmark__ZmU2Y", "hideCheckmark": "Menu_hideCheckmark__NGQ4Y" };
33464
+ var Menu_default = { "menu": "Menu_menu__NjQ5M", "separator": "Menu_separator__Mjg5Y", "section": "Menu_section__NThhN", "header": "Menu_header__ZjQ0Z", "item": "Menu_item__MWVhY", "checkmark": "Menu_checkmark__ZWVlY", "hideCheckmark": "Menu_hideCheckmark__MDQxM", "label": "Menu_label__NGU5Z" };
33465
33465
 
33466
33466
  // src/components/Menu.tsx
33467
33467
  import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
@@ -33470,7 +33470,7 @@ function Menu2({ className, children, ...props }) {
33470
33470
  }
33471
33471
  function MenuItem2({ showChecked = true, children, className, ...props }) {
33472
33472
  return /* @__PURE__ */ jsxs28($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames36.default)(Menu_default.item, className), children: [
33473
- children,
33473
+ /* @__PURE__ */ jsx51("div", { className: Menu_default.label, children }),
33474
33474
  showChecked && /* @__PURE__ */ jsx51("div", { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ jsx51(Icon2, { children: /* @__PURE__ */ jsx51(Check, {}) }) })
33475
33475
  ] });
33476
33476
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.175.0",
3
+ "version": "0.176.0",
4
4
  "description": "Modern, minimalist React component library",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",
package/styles.css CHANGED
@@ -4512,7 +4512,7 @@ body a.Button_button__NGQyO {
4512
4512
  }
4513
4513
 
4514
4514
  /* virtual-css:css:3130df15a3cfaee8cb812b182afb7ee1 */
4515
- .Menu_menu__MDc3M {
4515
+ .Menu_menu__NjQ5M {
4516
4516
  min-width: 200px;
4517
4517
  border: var(--border);
4518
4518
  border-radius: var(--border-radius);
@@ -4521,21 +4521,22 @@ body a.Button_button__NGQyO {
4521
4521
  background: var(--background-color);
4522
4522
  overflow: hidden;
4523
4523
  }
4524
- .Menu_separator__MWI1M {
4524
+ .Menu_separator__Mjg5Y {
4525
4525
  border-bottom: var(--border);
4526
4526
  margin: var(--spacing-2) calc(-1 * var(--spacing-3));
4527
4527
  }
4528
- .Menu_section__OTMzY:not(:last-child) {
4528
+ .Menu_section__NThhN:not(:last-child) {
4529
4529
  margin-bottom: var(--spacing-4);
4530
4530
  }
4531
- .Menu_header__YjkwY {
4531
+ .Menu_header__ZjQ0Z {
4532
4532
  font-size: var(--font-size-3);
4533
4533
  font-weight: var(--font-weight-bold);
4534
4534
  padding: var(--padding);
4535
4535
  }
4536
- .Menu_item__ODRkY {
4536
+ .Menu_item__MWVhY {
4537
4537
  display: flex;
4538
4538
  align-items: center;
4539
+ justify-content: space-between;
4539
4540
  gap: var(--gap);
4540
4541
  font-size: var(--font-size);
4541
4542
  color: var(--font-color);
@@ -4546,30 +4547,35 @@ body a.Button_button__NGQyO {
4546
4547
  outline: none;
4547
4548
  width: 100%;
4548
4549
  }
4549
- .Menu_item__ODRkY[data-disabled] {
4550
+ .Menu_item__MWVhY[data-disabled] {
4550
4551
  color: var(--font-color-disabled);
4551
4552
  }
4552
- .Menu_item__ODRkY[data-focus],
4553
- .Menu_item__ODRkY[data-focus-visible] {
4553
+ .Menu_item__MWVhY[data-focus],
4554
+ .Menu_item__MWVhY[data-focus-visible] {
4554
4555
  outline: var(--outline);
4555
4556
  background: var(--highlight-color);
4556
4557
  }
4557
- .Menu_item__ODRkY:hover {
4558
+ .Menu_item__MWVhY:hover {
4558
4559
  background: var(--highlight-color);
4559
4560
  }
4560
- .Menu_item__ODRkY[data-selected] {
4561
+ .Menu_item__MWVhY[data-selected] {
4561
4562
  font-weight: bold;
4562
- & .Menu_checkmark__ZmU2Y {
4563
+ & .Menu_checkmark__ZWVlY {
4563
4564
  display: flex;
4564
4565
  justify-content: flex-end;
4565
4566
  }
4566
4567
  }
4567
- .Menu_checkmark__ZmU2Y {
4568
+ .Menu_checkmark__ZWVlY {
4568
4569
  display: none;
4569
4570
  }
4570
- .Menu_hideCheckmark__NGQ4Y .Menu_checkmark__ZmU2Y {
4571
+ .Menu_hideCheckmark__MDQxM .Menu_checkmark__ZWVlY {
4571
4572
  display: none;
4572
4573
  }
4574
+ .Menu_label__NGU5Z {
4575
+ display: flex;
4576
+ flex-direction: row;
4577
+ gap: var(--gap);
4578
+ }
4573
4579
 
4574
4580
  /* virtual-css:css:593a0302ed618f22d0e6c3631ec684d2 */
4575
4581
  .Modal_overlay__MzBhO {