@umami/react-zen 0.175.0 → 0.177.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
@@ -4170,7 +4170,7 @@ body a.Button_button__NGQyO {
4170
4170
  }
4171
4171
 
4172
4172
  /* virtual-css:css:685b6ac8ab5c6b43c34d2fc83c3b107d */
4173
- .Loading_loading__MzE0Y {
4173
+ .Loading_loading__M2YyY {
4174
4174
  position: relative;
4175
4175
  display: flex;
4176
4176
  justify-content: center;
@@ -4178,7 +4178,7 @@ body a.Button_button__NGQyO {
4178
4178
  flex: 1;
4179
4179
  pointer-events: none;
4180
4180
  }
4181
- .Loading_page__OWMxN {
4181
+ .Loading_absolute__N2IxN {
4182
4182
  position: absolute;
4183
4183
  top: 0;
4184
4184
  left: 0;
@@ -4186,15 +4186,15 @@ body a.Button_button__NGQyO {
4186
4186
  bottom: 0;
4187
4187
  margin: auto;
4188
4188
  }
4189
- .Loading_center__ZWRmO {
4189
+ .Loading_center__ZmUzM {
4190
4190
  margin: auto;
4191
4191
  }
4192
- .Loading_inline__NmJkY {
4192
+ .Loading_inline__MTFhM {
4193
4193
  display: inline-flex;
4194
4194
  }
4195
4195
 
4196
4196
  /* virtual-css:css:3130df15a3cfaee8cb812b182afb7ee1 */
4197
- .Menu_menu__MDc3M {
4197
+ .Menu_menu__MDZlN {
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__ZmMzZ {
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__OGU4Y:not(:last-child) {
4211
4211
  margin-bottom: var(--spacing-4);
4212
4212
  }
4213
- .Menu_header__YjkwY {
4213
+ .Menu_header__YmNkN {
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__YjkxY {
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,36 @@ body a.Button_button__NGQyO {
4228
4229
  outline: none;
4229
4230
  width: 100%;
4230
4231
  }
4231
- .Menu_item__ODRkY[data-disabled] {
4232
+ .Menu_item__YjkxY[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__YjkxY[data-focus],
4236
+ .Menu_item__YjkxY[data-focus-visible] {
4236
4237
  outline: var(--outline);
4237
4238
  background: var(--highlight-color);
4238
4239
  }
4239
- .Menu_item__ODRkY:hover {
4240
+ .Menu_item__YjkxY:hover {
4240
4241
  background: var(--highlight-color);
4241
4242
  }
4242
- .Menu_item__ODRkY[data-selected] {
4243
+ .Menu_item__YjkxY[data-selected] {
4243
4244
  font-weight: bold;
4244
- & .Menu_checkmark__ZmU2Y {
4245
+ & .Menu_checkmark__OTM5Y {
4245
4246
  display: flex;
4246
4247
  justify-content: flex-end;
4247
4248
  }
4248
4249
  }
4249
- .Menu_checkmark__ZmU2Y {
4250
+ .Menu_checkmark__OTM5Y {
4250
4251
  display: none;
4251
4252
  }
4252
- .Menu_hideCheckmark__NGQ4Y .Menu_checkmark__ZmU2Y {
4253
+ .Menu_hideCheckmark__NWJjY .Menu_checkmark__OTM5Y {
4253
4254
  display: none;
4254
4255
  }
4256
+ .Menu_label__YjgwY {
4257
+ display: flex;
4258
+ flex-direction: row;
4259
+ align-items: center;
4260
+ gap: var(--gap);
4261
+ }
4255
4262
 
4256
4263
  /* virtual-css:css:593a0302ed618f22d0e6c3631ec684d2 */
4257
4264
  .Modal_overlay__MzBhO {
@@ -4962,18 +4969,19 @@ body a.Button_button__NGQyO {
4962
4969
  }
4963
4970
 
4964
4971
  /* virtual-css:css:c0d584d0daeaec1be71f8a50d43bf66c */
4965
- .ThemeButton_button__Zjc5N {
4966
- width: 50px;
4972
+ .ThemeButton_button__YjE1Y {
4973
+ width: 42px;
4967
4974
  display: flex;
4968
4975
  justify-content: center;
4969
4976
  align-items: center;
4970
4977
  cursor: pointer;
4971
4978
  }
4972
- .ThemeButton_button__Zjc5N > div {
4979
+ .ThemeButton_button__YjE1Y > div {
4973
4980
  display: flex;
4974
4981
  justify-content: center;
4975
4982
  align-items: center;
4976
4983
  position: absolute;
4984
+ width: 50px;
4977
4985
  }
4978
4986
 
4979
4987
  /* virtual-css:css:9e5c8c52b82d4f77f80ba529f88ddc39 */
package/dist/index.d.mts CHANGED
@@ -471,10 +471,10 @@ declare function Label({ className, ...props }: LabelProps): react.JSX.Element;
471
471
  interface LoadingProps {
472
472
  size?: 'sm' | 'md' | 'lg';
473
473
  icon?: 'dots' | 'spinner';
474
- position?: 'page' | 'center' | 'inline';
474
+ placement?: 'absolute' | 'center' | 'inline';
475
475
  className?: string;
476
476
  }
477
- declare function Loading(props: LoadingProps): react.JSX.Element;
477
+ declare function Loading({ size, placement, icon, className, ...props }: LoadingProps): react.JSX.Element;
478
478
 
479
479
  interface MenuProps extends MenuProps$1<any> {
480
480
  className?: string;
package/dist/index.d.ts CHANGED
@@ -471,10 +471,10 @@ declare function Label({ className, ...props }: LabelProps): react.JSX.Element;
471
471
  interface LoadingProps {
472
472
  size?: 'sm' | 'md' | 'lg';
473
473
  icon?: 'dots' | 'spinner';
474
- position?: 'page' | 'center' | 'inline';
474
+ placement?: 'absolute' | 'center' | 'inline';
475
475
  className?: string;
476
476
  }
477
- declare function Loading(props: LoadingProps): react.JSX.Element;
477
+ declare function Loading({ size, placement, icon, className, ...props }: LoadingProps): react.JSX.Element;
478
478
 
479
479
  interface MenuProps extends MenuProps$1<any> {
480
480
  className?: string;
package/dist/index.js CHANGED
@@ -33562,14 +33562,19 @@ function InlineEditField({
33562
33562
  var import_classnames35 = __toESM(require_classnames());
33563
33563
 
33564
33564
  // css-modules:E:\dev\umami-react-zen\src\components\Loading.module.css
33565
- var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
33565
+ var Loading_default = { "loading": "Loading_loading__M2YyY", "absolute": "Loading_absolute__N2IxN", "center": "Loading_center__ZmUzM", "inline": "Loading_inline__MTFhM" };
33566
33566
 
33567
33567
  // src/components/Loading.tsx
33568
33568
  var import_jsx_runtime50 = require("react/jsx-runtime");
33569
- function Loading(props) {
33570
- const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
33571
- return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { ...domProps, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[position]), children: [
33572
- icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Dots, {}),
33569
+ function Loading({
33570
+ size,
33571
+ placement = "inline",
33572
+ icon = "spinner",
33573
+ className,
33574
+ ...props
33575
+ }) {
33576
+ return /* @__PURE__ */ (0, import_jsx_runtime50.jsxs)("div", { ...props, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[placement]), children: [
33577
+ icon === "dots" && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Dots, { size }),
33573
33578
  icon === "spinner" && /* @__PURE__ */ (0, import_jsx_runtime50.jsx)(Spinner, { size })
33574
33579
  ] });
33575
33580
  }
@@ -33578,7 +33583,7 @@ function Loading(props) {
33578
33583
  var import_classnames36 = __toESM(require_classnames());
33579
33584
 
33580
33585
  // 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" };
33586
+ var Menu_default = { "menu": "Menu_menu__MDZlN", "separator": "Menu_separator__ZmMzZ", "section": "Menu_section__OGU4Y", "header": "Menu_header__YmNkN", "item": "Menu_item__YjkxY", "checkmark": "Menu_checkmark__OTM5Y", "hideCheckmark": "Menu_hideCheckmark__NWJjY", "label": "Menu_label__YjgwY" };
33582
33587
 
33583
33588
  // src/components/Menu.tsx
33584
33589
  var import_jsx_runtime51 = require("react/jsx-runtime");
@@ -33587,7 +33592,7 @@ function Menu2({ className, children, ...props }) {
33587
33592
  }
33588
33593
  function MenuItem2({ showChecked = true, children, className, ...props }) {
33589
33594
  return /* @__PURE__ */ (0, import_jsx_runtime51.jsxs)($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames36.default)(Menu_default.item, className), children: [
33590
- children,
33595
+ /* @__PURE__ */ (0, import_jsx_runtime51.jsx)("div", { className: Menu_default.label, children }),
33591
33596
  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
33597
  ] });
33593
33598
  }
@@ -33983,7 +33988,7 @@ function Select2({
33983
33988
  autoFocus: true
33984
33989
  }
33985
33990
  ),
33986
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Loading, { icon: "dots", position: "center", size: "sm" }),
33991
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(Loading, { icon: "dots", placement: "center", size: "sm" }),
33987
33992
  /* @__PURE__ */ (0, import_jsx_runtime61.jsx)(
33988
33993
  List,
33989
33994
  {
@@ -34179,7 +34184,7 @@ function TabPanel2({ children, ...props }) {
34179
34184
  var import_classnames51 = __toESM(require_classnames());
34180
34185
 
34181
34186
  // css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
34182
- var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
34187
+ var ThemeButton_default = { "button": "ThemeButton_button__YjE1Y" };
34183
34188
 
34184
34189
  // src/components/ThemeButton.tsx
34185
34190
  var import_jsx_runtime67 = require("react/jsx-runtime");
package/dist/index.mjs CHANGED
@@ -33445,14 +33445,19 @@ function InlineEditField({
33445
33445
  var import_classnames35 = __toESM(require_classnames());
33446
33446
 
33447
33447
  // css-modules:E:\dev\umami-react-zen\src\components\Loading.module.css
33448
- var Loading_default = { "loading": "Loading_loading__MzE0Y", "page": "Loading_page__OWMxN", "center": "Loading_center__ZWRmO", "inline": "Loading_inline__NmJkY" };
33448
+ var Loading_default = { "loading": "Loading_loading__M2YyY", "absolute": "Loading_absolute__N2IxN", "center": "Loading_center__ZmUzM", "inline": "Loading_inline__MTFhM" };
33449
33449
 
33450
33450
  // src/components/Loading.tsx
33451
33451
  import { jsx as jsx50, jsxs as jsxs27 } from "react/jsx-runtime";
33452
- function Loading(props) {
33453
- const { size, position = "inline", icon = "spinner", className, ...domProps } = props;
33454
- return /* @__PURE__ */ jsxs27("div", { ...domProps, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[position]), children: [
33455
- icon === "dots" && /* @__PURE__ */ jsx50(Dots, {}),
33452
+ function Loading({
33453
+ size,
33454
+ placement = "inline",
33455
+ icon = "spinner",
33456
+ className,
33457
+ ...props
33458
+ }) {
33459
+ return /* @__PURE__ */ jsxs27("div", { ...props, className: (0, import_classnames35.default)(Loading_default.loading, className, Loading_default[placement]), children: [
33460
+ icon === "dots" && /* @__PURE__ */ jsx50(Dots, { size }),
33456
33461
  icon === "spinner" && /* @__PURE__ */ jsx50(Spinner, { size })
33457
33462
  ] });
33458
33463
  }
@@ -33461,7 +33466,7 @@ function Loading(props) {
33461
33466
  var import_classnames36 = __toESM(require_classnames());
33462
33467
 
33463
33468
  // 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" };
33469
+ var Menu_default = { "menu": "Menu_menu__MDZlN", "separator": "Menu_separator__ZmMzZ", "section": "Menu_section__OGU4Y", "header": "Menu_header__YmNkN", "item": "Menu_item__YjkxY", "checkmark": "Menu_checkmark__OTM5Y", "hideCheckmark": "Menu_hideCheckmark__NWJjY", "label": "Menu_label__YjgwY" };
33465
33470
 
33466
33471
  // src/components/Menu.tsx
33467
33472
  import { jsx as jsx51, jsxs as jsxs28 } from "react/jsx-runtime";
@@ -33470,7 +33475,7 @@ function Menu2({ className, children, ...props }) {
33470
33475
  }
33471
33476
  function MenuItem2({ showChecked = true, children, className, ...props }) {
33472
33477
  return /* @__PURE__ */ jsxs28($3674c52c6b3c5bce$export$2ce376c2cc3355c8, { ...props, className: (0, import_classnames36.default)(Menu_default.item, className), children: [
33473
- children,
33478
+ /* @__PURE__ */ jsx51("div", { className: Menu_default.label, children }),
33474
33479
  showChecked && /* @__PURE__ */ jsx51("div", { "aria-hidden": "true", className: Menu_default.checkmark, children: /* @__PURE__ */ jsx51(Icon2, { children: /* @__PURE__ */ jsx51(Check, {}) }) })
33475
33480
  ] });
33476
33481
  }
@@ -33870,7 +33875,7 @@ function Select2({
33870
33875
  autoFocus: true
33871
33876
  }
33872
33877
  ),
33873
- isLoading && /* @__PURE__ */ jsx61(Loading, { icon: "dots", position: "center", size: "sm" }),
33878
+ isLoading && /* @__PURE__ */ jsx61(Loading, { icon: "dots", placement: "center", size: "sm" }),
33874
33879
  /* @__PURE__ */ jsx61(
33875
33880
  List,
33876
33881
  {
@@ -34066,7 +34071,7 @@ function TabPanel2({ children, ...props }) {
34066
34071
  var import_classnames51 = __toESM(require_classnames());
34067
34072
 
34068
34073
  // css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
34069
- var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
34074
+ var ThemeButton_default = { "button": "ThemeButton_button__YjE1Y" };
34070
34075
 
34071
34076
  // src/components/ThemeButton.tsx
34072
34077
  import { jsx as jsx67, jsxs as jsxs41 } from "react/jsx-runtime";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.175.0",
3
+ "version": "0.177.0",
4
4
  "description": "Modern, minimalist React component library",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",
package/styles.css CHANGED
@@ -4488,7 +4488,7 @@ body a.Button_button__NGQyO {
4488
4488
  }
4489
4489
 
4490
4490
  /* virtual-css:css:685b6ac8ab5c6b43c34d2fc83c3b107d */
4491
- .Loading_loading__MzE0Y {
4491
+ .Loading_loading__M2YyY {
4492
4492
  position: relative;
4493
4493
  display: flex;
4494
4494
  justify-content: center;
@@ -4496,7 +4496,7 @@ body a.Button_button__NGQyO {
4496
4496
  flex: 1;
4497
4497
  pointer-events: none;
4498
4498
  }
4499
- .Loading_page__OWMxN {
4499
+ .Loading_absolute__N2IxN {
4500
4500
  position: absolute;
4501
4501
  top: 0;
4502
4502
  left: 0;
@@ -4504,15 +4504,15 @@ body a.Button_button__NGQyO {
4504
4504
  bottom: 0;
4505
4505
  margin: auto;
4506
4506
  }
4507
- .Loading_center__ZWRmO {
4507
+ .Loading_center__ZmUzM {
4508
4508
  margin: auto;
4509
4509
  }
4510
- .Loading_inline__NmJkY {
4510
+ .Loading_inline__MTFhM {
4511
4511
  display: inline-flex;
4512
4512
  }
4513
4513
 
4514
4514
  /* virtual-css:css:3130df15a3cfaee8cb812b182afb7ee1 */
4515
- .Menu_menu__MDc3M {
4515
+ .Menu_menu__MDZlN {
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__ZmMzZ {
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__OGU4Y:not(:last-child) {
4529
4529
  margin-bottom: var(--spacing-4);
4530
4530
  }
4531
- .Menu_header__YjkwY {
4531
+ .Menu_header__YmNkN {
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__YjkxY {
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,36 @@ body a.Button_button__NGQyO {
4546
4547
  outline: none;
4547
4548
  width: 100%;
4548
4549
  }
4549
- .Menu_item__ODRkY[data-disabled] {
4550
+ .Menu_item__YjkxY[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__YjkxY[data-focus],
4554
+ .Menu_item__YjkxY[data-focus-visible] {
4554
4555
  outline: var(--outline);
4555
4556
  background: var(--highlight-color);
4556
4557
  }
4557
- .Menu_item__ODRkY:hover {
4558
+ .Menu_item__YjkxY:hover {
4558
4559
  background: var(--highlight-color);
4559
4560
  }
4560
- .Menu_item__ODRkY[data-selected] {
4561
+ .Menu_item__YjkxY[data-selected] {
4561
4562
  font-weight: bold;
4562
- & .Menu_checkmark__ZmU2Y {
4563
+ & .Menu_checkmark__OTM5Y {
4563
4564
  display: flex;
4564
4565
  justify-content: flex-end;
4565
4566
  }
4566
4567
  }
4567
- .Menu_checkmark__ZmU2Y {
4568
+ .Menu_checkmark__OTM5Y {
4568
4569
  display: none;
4569
4570
  }
4570
- .Menu_hideCheckmark__NGQ4Y .Menu_checkmark__ZmU2Y {
4571
+ .Menu_hideCheckmark__NWJjY .Menu_checkmark__OTM5Y {
4571
4572
  display: none;
4572
4573
  }
4574
+ .Menu_label__YjgwY {
4575
+ display: flex;
4576
+ flex-direction: row;
4577
+ align-items: center;
4578
+ gap: var(--gap);
4579
+ }
4573
4580
 
4574
4581
  /* virtual-css:css:593a0302ed618f22d0e6c3631ec684d2 */
4575
4582
  .Modal_overlay__MzBhO {
@@ -5280,18 +5287,19 @@ body a.Button_button__NGQyO {
5280
5287
  }
5281
5288
 
5282
5289
  /* virtual-css:css:c0d584d0daeaec1be71f8a50d43bf66c */
5283
- .ThemeButton_button__Zjc5N {
5284
- width: 50px;
5290
+ .ThemeButton_button__YjE1Y {
5291
+ width: 42px;
5285
5292
  display: flex;
5286
5293
  justify-content: center;
5287
5294
  align-items: center;
5288
5295
  cursor: pointer;
5289
5296
  }
5290
- .ThemeButton_button__Zjc5N > div {
5297
+ .ThemeButton_button__YjE1Y > div {
5291
5298
  display: flex;
5292
5299
  justify-content: center;
5293
5300
  align-items: center;
5294
5301
  position: absolute;
5302
+ width: 50px;
5295
5303
  }
5296
5304
 
5297
5305
  /* virtual-css:css:9e5c8c52b82d4f77f80ba529f88ddc39 */