@umami/react-zen 0.101.0 → 0.102.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
@@ -3955,25 +3955,24 @@ body a.Button_button__NDYwM {
3955
3955
  }
3956
3956
 
3957
3957
  /* virtual-css:css:0fb02723d81c5960ed149d3d9f58f1ba */
3958
- .List_list__NzVmN {
3958
+ .List_list__ZDQ2Z {
3959
3959
  display: grid;
3960
- min-width: 100px;
3961
3960
  outline: none;
3962
3961
  overflow: auto;
3963
3962
  gap: var(--spacing-1);
3964
3963
  }
3965
- .List_separator__M2U0O {
3964
+ .List_separator__ZTZiM {
3966
3965
  border-bottom: var(--border);
3967
3966
  }
3968
- .List_section__Y2Q0Z:not(:last-child) {
3967
+ .List_section__ZTliN:not(:last-child) {
3969
3968
  margin-bottom: var(--spacing-4);
3970
3969
  }
3971
- .List_header__M2ZhY {
3970
+ .List_header__YWIzN {
3972
3971
  font-size: var(--font-size-2);
3973
3972
  font-weight: var(--font-weight-bold);
3974
3973
  padding: var(--padding);
3975
3974
  }
3976
- .List_item__YmFjO {
3975
+ .List_item__YmJhM {
3977
3976
  display: flex;
3978
3977
  align-items: center;
3979
3978
  justify-content: space-between;
@@ -3986,43 +3985,43 @@ body a.Button_button__NDYwM {
3986
3985
  outline: none;
3987
3986
  border-radius: var(--border-radius);
3988
3987
  }
3989
- .List_item__YmFjO[data-disabled] {
3988
+ .List_item__YmJhM[data-disabled] {
3990
3989
  color: var(--font-color-disabled);
3991
3990
  }
3992
- .List_item__YmFjO[data-focus],
3993
- .List_item__YmFjO[data-focus-visible] {
3991
+ .List_item__YmJhM[data-focus],
3992
+ .List_item__YmJhM[data-focus-visible] {
3994
3993
  background: var(--highlight-color);
3995
3994
  }
3996
- .List_item__YmFjO:hover {
3995
+ .List_item__YmJhM:hover {
3997
3996
  background: var(--highlight-color);
3998
3997
  }
3999
- .List_item__YmFjO[data-selected] {
3998
+ .List_item__YmJhM[data-selected] {
4000
3999
  font-weight: bold;
4001
- & .List_check__NjUwZ {
4000
+ & .List_check__ZTc4Z {
4002
4001
  display: flex;
4003
4002
  justify-content: flex-end;
4004
4003
  flex: 1;
4005
4004
  }
4006
4005
  }
4007
- .List_variant-1__MGY0O {
4008
- & .List_item__YmFjO:hover,
4009
- .List_item__YmFjO[data-selected] {
4006
+ .List_variant-1__NWM2N {
4007
+ & .List_item__YmJhM:hover,
4008
+ .List_item__YmJhM[data-selected] {
4010
4009
  background: var(--base-color-2);
4011
4010
  }
4012
4011
  }
4013
- .List_variant-2__NTJlM {
4014
- & .List_item__YmFjO:hover,
4015
- .List_item__YmFjO[data-selected] {
4012
+ .List_variant-2__MGZhY {
4013
+ & .List_item__YmJhM:hover,
4014
+ .List_item__YmJhM[data-selected] {
4016
4015
  background: var(--base-color-3);
4017
4016
  }
4018
4017
  }
4019
- .List_variant-3__NTEyY {
4020
- & .List_item__YmFjO:hover,
4021
- .List_item__YmFjO[data-selected] {
4018
+ .List_variant-3__MmJkZ {
4019
+ & .List_item__YmJhM:hover,
4020
+ .List_item__YmJhM[data-selected] {
4022
4021
  background: var(--base-color-4);
4023
4022
  }
4024
4023
  }
4025
- .List_check__NjUwZ {
4024
+ .List_check__ZTc4Z {
4026
4025
  display: none;
4027
4026
  }
4028
4027
 
package/dist/index.d.ts CHANGED
@@ -617,11 +617,15 @@ declare module '@umami/react-zen/List' {
617
617
  variant?: '1' | '2' | '3';
618
618
  }
619
619
  export function List({ items, idProperty, labelProperty, separatorProperty, variant, className, children, ...props }: ListProps): import("react").JSX.Element;
620
- export function ListItem({ id, children, className, ...props }: ListBoxItemProps<any>): import("react").JSX.Element;
620
+ export interface ListItemProps extends ListBoxItemProps<any> {
621
+ showCheckmark?: boolean;
622
+ }
623
+ export function ListItem({ id, children, className, showCheckmark, ...props }: ListItemProps): import("react").JSX.Element;
621
624
  export function ListSeparator({ className, ...props }: SeparatorProps): import("react").JSX.Element;
622
- export function ListSection({ title, className, children, ...props }: ListBoxSectionProps<any> & {
625
+ export interface ListSectionProps extends ListBoxSectionProps<any> {
623
626
  title?: string;
624
- }): import("react").JSX.Element;
627
+ }
628
+ export function ListSection({ title, className, children, ...props }: ListSectionProps): import("react").JSX.Element;
625
629
  }
626
630
 
627
631
  declare module '@umami/react-zen/Loading' {
package/dist/index.js CHANGED
@@ -30719,7 +30719,7 @@ var import_react184 = require("react");
30719
30719
  var import_classnames32 = __toESM(require_classnames());
30720
30720
 
30721
30721
  // css-modules:E:\dev\umami-react-zen\src\components\List.module.css
30722
- var List_default = { "list": "List_list__NzVmN", "separator": "List_separator__M2U0O", "section": "List_section__Y2Q0Z", "header": "List_header__M2ZhY", "item": "List_item__YmFjO", "check": "List_check__NjUwZ", "variant-1": "List_variant-1__MGY0O", "variant-2": "List_variant-2__NTJlM", "variant-3": "List_variant-3__NTEyY" };
30722
+ var List_default = { "list": "List_list__ZDQ2Z", "separator": "List_separator__ZTZiM", "section": "List_section__ZTliN", "header": "List_header__YWIzN", "item": "List_item__YmJhM", "check": "List_check__ZTc4Z", "variant-1": "List_variant-1__NWM2N", "variant-2": "List_variant-2__MGZhY", "variant-3": "List_variant-3__MmJkZ" };
30723
30723
 
30724
30724
  // src/components/List.tsx
30725
30725
  var import_jsx_runtime42 = require("react/jsx-runtime");
@@ -30751,7 +30751,13 @@ function List({
30751
30751
  }
30752
30752
  );
30753
30753
  }
30754
- function ListItem({ id, children, className, ...props }) {
30754
+ function ListItem({
30755
+ id,
30756
+ children,
30757
+ className,
30758
+ showCheckmark = true,
30759
+ ...props
30760
+ }) {
30755
30761
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)(
30756
30762
  $eed445e0843c11d0$export$a11e76429ed99b4,
30757
30763
  {
@@ -30761,7 +30767,7 @@ function ListItem({ id, children, className, ...props }) {
30761
30767
  textValue: typeof children === "string" ? children : id?.toString(),
30762
30768
  children: [
30763
30769
  children,
30764
- /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { "aria-hidden": "true", className: List_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icons.Check, {}) }) })
30770
+ showCheckmark && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)("div", { "aria-hidden": "true", className: List_default.check, children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icon, { children: /* @__PURE__ */ (0, import_jsx_runtime42.jsx)(Icons.Check, {}) }) })
30765
30771
  ]
30766
30772
  }
30767
30773
  );
@@ -30769,12 +30775,7 @@ function ListItem({ id, children, className, ...props }) {
30769
30775
  function ListSeparator({ className, ...props }) {
30770
30776
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsx)($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames32.default)(List_default.separator, className) });
30771
30777
  }
30772
- function ListSection({
30773
- title,
30774
- className,
30775
- children,
30776
- ...props
30777
- }) {
30778
+ function ListSection({ title, className, children, ...props }) {
30778
30779
  return /* @__PURE__ */ (0, import_jsx_runtime42.jsxs)($eed445e0843c11d0$export$dca12b0bb56e4fc, { ...props, className: (0, import_classnames32.default)(List_default.section, className), children: [
30779
30780
  title && /* @__PURE__ */ (0, import_jsx_runtime42.jsx)($72a5793c14baf454$export$8b251419efc915eb, { className: List_default.header, children: title }),
30780
30781
  children
package/dist/index.mjs CHANGED
@@ -30608,7 +30608,7 @@ import { Fragment as Fragment6 } from "react";
30608
30608
  var import_classnames32 = __toESM(require_classnames());
30609
30609
 
30610
30610
  // css-modules:E:\dev\umami-react-zen\src\components\List.module.css
30611
- var List_default = { "list": "List_list__NzVmN", "separator": "List_separator__M2U0O", "section": "List_section__Y2Q0Z", "header": "List_header__M2ZhY", "item": "List_item__YmFjO", "check": "List_check__NjUwZ", "variant-1": "List_variant-1__MGY0O", "variant-2": "List_variant-2__NTJlM", "variant-3": "List_variant-3__NTEyY" };
30611
+ var List_default = { "list": "List_list__ZDQ2Z", "separator": "List_separator__ZTZiM", "section": "List_section__ZTliN", "header": "List_header__YWIzN", "item": "List_item__YmJhM", "check": "List_check__ZTc4Z", "variant-1": "List_variant-1__NWM2N", "variant-2": "List_variant-2__MGZhY", "variant-3": "List_variant-3__MmJkZ" };
30612
30612
 
30613
30613
  // src/components/List.tsx
30614
30614
  import { jsx as jsx42, jsxs as jsxs21 } from "react/jsx-runtime";
@@ -30640,7 +30640,13 @@ function List({
30640
30640
  }
30641
30641
  );
30642
30642
  }
30643
- function ListItem({ id, children, className, ...props }) {
30643
+ function ListItem({
30644
+ id,
30645
+ children,
30646
+ className,
30647
+ showCheckmark = true,
30648
+ ...props
30649
+ }) {
30644
30650
  return /* @__PURE__ */ jsxs21(
30645
30651
  $eed445e0843c11d0$export$a11e76429ed99b4,
30646
30652
  {
@@ -30650,7 +30656,7 @@ function ListItem({ id, children, className, ...props }) {
30650
30656
  textValue: typeof children === "string" ? children : id?.toString(),
30651
30657
  children: [
30652
30658
  children,
30653
- /* @__PURE__ */ jsx42("div", { "aria-hidden": "true", className: List_default.check, children: /* @__PURE__ */ jsx42(Icon, { children: /* @__PURE__ */ jsx42(Icons.Check, {}) }) })
30659
+ showCheckmark && /* @__PURE__ */ jsx42("div", { "aria-hidden": "true", className: List_default.check, children: /* @__PURE__ */ jsx42(Icon, { children: /* @__PURE__ */ jsx42(Icons.Check, {}) }) })
30654
30660
  ]
30655
30661
  }
30656
30662
  );
@@ -30658,12 +30664,7 @@ function ListItem({ id, children, className, ...props }) {
30658
30664
  function ListSeparator({ className, ...props }) {
30659
30665
  return /* @__PURE__ */ jsx42($431f98aba6844401$export$1ff3c3f08ae963c0, { ...props, className: (0, import_classnames32.default)(List_default.separator, className) });
30660
30666
  }
30661
- function ListSection({
30662
- title,
30663
- className,
30664
- children,
30665
- ...props
30666
- }) {
30667
+ function ListSection({ title, className, children, ...props }) {
30667
30668
  return /* @__PURE__ */ jsxs21($eed445e0843c11d0$export$dca12b0bb56e4fc, { ...props, className: (0, import_classnames32.default)(List_default.section, className), children: [
30668
30669
  title && /* @__PURE__ */ jsx42($72a5793c14baf454$export$8b251419efc915eb, { className: List_default.header, children: title }),
30669
30670
  children
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.101.0",
3
+ "version": "0.102.0",
4
4
  "description": "Modern, minimalist React component library",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",
package/styles.css CHANGED
@@ -4271,25 +4271,24 @@ body a.Button_button__NDYwM {
4271
4271
  }
4272
4272
 
4273
4273
  /* virtual-css:css:0fb02723d81c5960ed149d3d9f58f1ba */
4274
- .List_list__NzVmN {
4274
+ .List_list__ZDQ2Z {
4275
4275
  display: grid;
4276
- min-width: 100px;
4277
4276
  outline: none;
4278
4277
  overflow: auto;
4279
4278
  gap: var(--spacing-1);
4280
4279
  }
4281
- .List_separator__M2U0O {
4280
+ .List_separator__ZTZiM {
4282
4281
  border-bottom: var(--border);
4283
4282
  }
4284
- .List_section__Y2Q0Z:not(:last-child) {
4283
+ .List_section__ZTliN:not(:last-child) {
4285
4284
  margin-bottom: var(--spacing-4);
4286
4285
  }
4287
- .List_header__M2ZhY {
4286
+ .List_header__YWIzN {
4288
4287
  font-size: var(--font-size-2);
4289
4288
  font-weight: var(--font-weight-bold);
4290
4289
  padding: var(--padding);
4291
4290
  }
4292
- .List_item__YmFjO {
4291
+ .List_item__YmJhM {
4293
4292
  display: flex;
4294
4293
  align-items: center;
4295
4294
  justify-content: space-between;
@@ -4302,43 +4301,43 @@ body a.Button_button__NDYwM {
4302
4301
  outline: none;
4303
4302
  border-radius: var(--border-radius);
4304
4303
  }
4305
- .List_item__YmFjO[data-disabled] {
4304
+ .List_item__YmJhM[data-disabled] {
4306
4305
  color: var(--font-color-disabled);
4307
4306
  }
4308
- .List_item__YmFjO[data-focus],
4309
- .List_item__YmFjO[data-focus-visible] {
4307
+ .List_item__YmJhM[data-focus],
4308
+ .List_item__YmJhM[data-focus-visible] {
4310
4309
  background: var(--highlight-color);
4311
4310
  }
4312
- .List_item__YmFjO:hover {
4311
+ .List_item__YmJhM:hover {
4313
4312
  background: var(--highlight-color);
4314
4313
  }
4315
- .List_item__YmFjO[data-selected] {
4314
+ .List_item__YmJhM[data-selected] {
4316
4315
  font-weight: bold;
4317
- & .List_check__NjUwZ {
4316
+ & .List_check__ZTc4Z {
4318
4317
  display: flex;
4319
4318
  justify-content: flex-end;
4320
4319
  flex: 1;
4321
4320
  }
4322
4321
  }
4323
- .List_variant-1__MGY0O {
4324
- & .List_item__YmFjO:hover,
4325
- .List_item__YmFjO[data-selected] {
4322
+ .List_variant-1__NWM2N {
4323
+ & .List_item__YmJhM:hover,
4324
+ .List_item__YmJhM[data-selected] {
4326
4325
  background: var(--base-color-2);
4327
4326
  }
4328
4327
  }
4329
- .List_variant-2__NTJlM {
4330
- & .List_item__YmFjO:hover,
4331
- .List_item__YmFjO[data-selected] {
4328
+ .List_variant-2__MGZhY {
4329
+ & .List_item__YmJhM:hover,
4330
+ .List_item__YmJhM[data-selected] {
4332
4331
  background: var(--base-color-3);
4333
4332
  }
4334
4333
  }
4335
- .List_variant-3__NTEyY {
4336
- & .List_item__YmFjO:hover,
4337
- .List_item__YmFjO[data-selected] {
4334
+ .List_variant-3__MmJkZ {
4335
+ & .List_item__YmJhM:hover,
4336
+ .List_item__YmJhM[data-selected] {
4338
4337
  background: var(--base-color-4);
4339
4338
  }
4340
4339
  }
4341
- .List_check__NjUwZ {
4340
+ .List_check__ZTc4Z {
4342
4341
  display: none;
4343
4342
  }
4344
4343