@umami/react-zen 0.90.0 → 0.92.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
@@ -4159,49 +4159,6 @@ body a.Button_button__NDYwM {
4159
4159
  background: none;
4160
4160
  }
4161
4161
 
4162
- /* virtual-css:css:851dd5366a20c382ffec60997ee93e35 */
4163
- .Select_button__ZGY1Y {
4164
- display: flex;
4165
- align-items: center;
4166
- font-size: var(--font-size);
4167
- color: var(--font-color);
4168
- gap: var(--gap);
4169
- border: var(--border);
4170
- padding: var(--padding);
4171
- border-radius: var(--border-radius);
4172
- background: var(--background-color);
4173
- cursor: pointer;
4174
- }
4175
- .Select_popover__MTQ1Y {
4176
- min-width: 200px;
4177
- border: var(--border);
4178
- border-radius: var(--border-radius);
4179
- box-shadow: var(--box-shadow-3);
4180
- background: var(--background-color);
4181
- overflow: hidden;
4182
- }
4183
- .Select_list__MDYyZ > * {
4184
- border-radius: 0;
4185
- }
4186
- .Select_icon__N2M0O {
4187
- color: var(--font-color-disabled);
4188
- }
4189
- .Select_icon__N2M0O:hover {
4190
- color: var(--font-color);
4191
- cursor: pointer;
4192
- }
4193
- .Select_search__MWQwM {
4194
- border-bottom: var(--border);
4195
- outline: none;
4196
- }
4197
- .Select_search__MWQwM input {
4198
- border: 0;
4199
- box-shadow: none;
4200
- }
4201
- .Select_search__MWQwM input[data-focused] {
4202
- outline: none;
4203
- }
4204
-
4205
4162
  /* virtual-css:css:12d12fae43d9120371ddbb4f1c814f07 */
4206
4163
  .SideNav_sidenav__M2NlY {
4207
4164
  height: 100%;
package/dist/index.d.ts CHANGED
@@ -473,9 +473,9 @@ declare module '@umami/react-zen/Flexbox' {
473
473
  justifyItems?: Responsive<JustifyItems>;
474
474
  alignContent?: AlignContent;
475
475
  alignItems?: AlignItems;
476
- gap?: Responsive<Spacing>;
477
- gapX?: Responsive<Spacing>;
478
- gapY?: Responsive<Spacing>;
476
+ gap?: Responsive<Spacing | true>;
477
+ gapX?: Responsive<Spacing | true>;
478
+ gapY?: Responsive<Spacing | true>;
479
479
  }
480
480
  export function Flexbox({ display, direction, wrap, justifyContent, justifyItems, alignContent, alignItems, gap, gapX, gapY, className, style, children, ...props }: FlexboxProps): import("react").JSX.Element;
481
481
  }
@@ -769,6 +769,7 @@ declare module '@umami/react-zen/SearchField' {
769
769
  declare module '@umami/react-zen/Select' {
770
770
  import { ReactNode } from 'react';
771
771
  import { PopoverProps, SelectProps as AriaSelectProps, SelectValueRenderProps } from 'react-aria-components';
772
+ import { ButtonProps } from '@umami/react-zen/Button';
772
773
  import { ListProps } from '@umami/react-zen/List';
773
774
  interface SelectProps extends AriaSelectProps<HTMLSelectElement> {
774
775
  items?: any[];
@@ -776,9 +777,11 @@ declare module '@umami/react-zen/Select' {
776
777
  label?: string;
777
778
  isLoading?: boolean;
778
779
  allowSearch?: boolean;
780
+ searchValue?: string;
779
781
  searchDelay?: number;
780
782
  onSearch?: (value: string) => void;
781
783
  onChange?: (e: any) => void;
784
+ buttonProps?: ButtonProps;
782
785
  listProps?: ListProps;
783
786
  popoverProps?: PopoverProps;
784
787
  renderValue?: ReactNode | ((values: SelectValueRenderProps<object> & {
package/dist/index.js CHANGED
@@ -40,12 +40,12 @@ var require_use_sync_external_store_shim_production = __commonJS({
40
40
  return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
41
41
  }
42
42
  var objectIs = "function" === typeof Object.is ? Object.is : is2;
43
- var useState17 = React7.useState;
43
+ var useState18 = React7.useState;
44
44
  var useEffect13 = React7.useEffect;
45
45
  var useLayoutEffect2 = React7.useLayoutEffect;
46
46
  var useDebugValue = React7.useDebugValue;
47
47
  function useSyncExternalStore$2(subscribe, getSnapshot) {
48
- var value = getSnapshot(), _useState = useState17({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
48
+ var value = getSnapshot(), _useState = useState18({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
49
49
  useLayoutEffect2(
50
50
  function() {
51
51
  inst.value = value;
@@ -103,7 +103,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
103
103
  "The result of getSnapshot should be cached to avoid an infinite loop"
104
104
  ), didWarnUncachedGetSnapshot = true);
105
105
  }
106
- cachedValue = useState17({
106
+ cachedValue = useState18({
107
107
  inst: { value, getSnapshot }
108
108
  });
109
109
  var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
@@ -141,7 +141,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
141
141
  return getSnapshot();
142
142
  }
143
143
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
144
- var React7 = import_react195.default, objectIs = "function" === typeof Object.is ? Object.is : is2, useState17 = React7.useState, useEffect13 = React7.useEffect, useLayoutEffect2 = React7.useLayoutEffect, useDebugValue = React7.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
144
+ var React7 = import_react195.default, objectIs = "function" === typeof Object.is ? Object.is : is2, useState18 = React7.useState, useEffect13 = React7.useEffect, useLayoutEffect2 = React7.useLayoutEffect, useDebugValue = React7.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
145
145
  exports.useSyncExternalStore = void 0 !== React7.useSyncExternalStore ? React7.useSyncExternalStore : shim;
146
146
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
147
147
  })();
@@ -167,7 +167,7 @@ var require_classnames = __commonJS({
167
167
  (function() {
168
168
  "use strict";
169
169
  var hasOwn = {}.hasOwnProperty;
170
- function classNames52() {
170
+ function classNames51() {
171
171
  var classes = "";
172
172
  for (var i = 0; i < arguments.length; i++) {
173
173
  var arg = arguments[i];
@@ -185,7 +185,7 @@ var require_classnames = __commonJS({
185
185
  return "";
186
186
  }
187
187
  if (Array.isArray(arg)) {
188
- return classNames52.apply(null, arg);
188
+ return classNames51.apply(null, arg);
189
189
  }
190
190
  if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
191
191
  return arg.toString();
@@ -208,14 +208,14 @@ var require_classnames = __commonJS({
208
208
  return value + newClass;
209
209
  }
210
210
  if (typeof module2 !== "undefined" && module2.exports) {
211
- classNames52.default = classNames52;
212
- module2.exports = classNames52;
211
+ classNames51.default = classNames51;
212
+ module2.exports = classNames51;
213
213
  } else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
214
214
  define("classnames", [], function() {
215
- return classNames52;
215
+ return classNames51;
216
216
  });
217
217
  } else {
218
- window.classNames = classNames52;
218
+ window.classNames = classNames51;
219
219
  }
220
220
  })();
221
221
  }
@@ -31015,12 +31015,6 @@ var SearchField2 = (0, import_react188.forwardRef)(
31015
31015
 
31016
31016
  // src/components/Select.tsx
31017
31017
  var import_react189 = require("react");
31018
- var import_classnames43 = __toESM(require_classnames());
31019
-
31020
- // css-modules:E:\dev\umami-react-zen\src\components\Select.module.css
31021
- var Select_default = { "button": "Select_button__ZGY1Y", "popover": "Select_popover__MTQ1Y", "list": "Select_list__MDYyZ", "icon": "Select_icon__N2M0O", "search": "Select_search__MWQwM" };
31022
-
31023
- // src/components/Select.tsx
31024
31018
  var import_jsx_runtime53 = require("react/jsx-runtime");
31025
31019
  var Select2 = (0, import_react189.forwardRef)(
31026
31020
  ({
@@ -31029,10 +31023,12 @@ var Select2 = (0, import_react189.forwardRef)(
31029
31023
  label,
31030
31024
  isLoading,
31031
31025
  allowSearch,
31026
+ searchValue,
31032
31027
  searchDelay,
31033
31028
  onSearch,
31034
31029
  onSelectionChange,
31035
31030
  onChange,
31031
+ buttonProps,
31036
31032
  listProps,
31037
31033
  popoverProps,
31038
31034
  renderValue,
@@ -31040,55 +31036,50 @@ var Select2 = (0, import_react189.forwardRef)(
31040
31036
  children,
31041
31037
  ...props
31042
31038
  }, ref) => {
31039
+ const [search, setSearch] = (0, import_react189.useState)("");
31043
31040
  const handleChange = (e) => {
31044
31041
  onSelectionChange?.(e);
31045
31042
  onChange?.(e);
31046
31043
  };
31047
- return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(
31048
- $82d7e5349645de74$export$ef9b1a59e592288f,
31049
- {
31050
- "aria-label": "Select",
31051
- ...props,
31052
- ref,
31053
- className: (0, import_classnames43.default)(input_default.field, className),
31054
- onSelectionChange: handleChange,
31055
- children: [
31056
- label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label2, { children: label }),
31057
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames43.default)(input_default.input, className), children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Row, { justifyContent: "space-between", gap: "3", children: [
31058
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
31059
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.Chevron, {}) }) })
31060
- ] }) }),
31061
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Popover2, { ...popoverProps, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Column, { className: Select_default.popover, children: [
31062
- allowSearch && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
31063
- SearchField2,
31064
- {
31065
- className: Select_default.search,
31066
- onSearch,
31067
- delay: searchDelay,
31068
- autoFocus: true
31069
- }
31070
- ),
31071
- isLoading && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Loading, { icon: "dots", position: "center", size: "sm" }),
31072
- /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
31073
- List,
31074
- {
31075
- ...listProps,
31076
- items,
31077
- className: (0, import_classnames43.default)(Select_default.list, listProps?.className),
31078
- style: { ...listProps?.style, display: isLoading ? "none" : void 0 },
31079
- children
31080
- }
31081
- )
31082
- ] }) })
31083
- ]
31084
- }
31085
- );
31044
+ const handleSearch = (value2) => {
31045
+ setSearch(value2);
31046
+ onSearch?.(value2);
31047
+ };
31048
+ return /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)($82d7e5349645de74$export$ef9b1a59e592288f, { "aria-label": "Select", ...props, ref, onSelectionChange: handleChange, children: [
31049
+ label && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Label2, { children: label }),
31050
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Button2, { variant: "outline", ...buttonProps, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Row, { justifyContent: "space-between", gap: "3", children: [
31051
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
31052
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)("span", { "aria-hidden": "true", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icon, { rotate: 90, size: "xs", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Icons.Chevron, {}) }) })
31053
+ ] }) }),
31054
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Popover2, { ...popoverProps, children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Column, { children: /* @__PURE__ */ (0, import_jsx_runtime53.jsxs)(Box, { padding: "2", border: true, borderRadius: true, backgroundColor: true, shadow: "3", children: [
31055
+ allowSearch && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Box, { marginBottom: "2", children: /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
31056
+ SearchField2,
31057
+ {
31058
+ value: search,
31059
+ onSearch: handleSearch,
31060
+ delay: searchDelay,
31061
+ defaultValue: searchValue,
31062
+ autoFocus: true
31063
+ }
31064
+ ) }),
31065
+ isLoading && /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(Loading, { icon: "dots", position: "center", size: "sm" }),
31066
+ /* @__PURE__ */ (0, import_jsx_runtime53.jsx)(
31067
+ List,
31068
+ {
31069
+ ...listProps,
31070
+ items,
31071
+ style: { ...listProps?.style, display: isLoading ? "none" : void 0 },
31072
+ children
31073
+ }
31074
+ )
31075
+ ] }) }) })
31076
+ ] });
31086
31077
  }
31087
31078
  );
31088
31079
 
31089
31080
  // src/components/SideNav.tsx
31090
31081
  var import_react190 = require("react");
31091
- var import_classnames44 = __toESM(require_classnames());
31082
+ var import_classnames43 = __toESM(require_classnames());
31092
31083
 
31093
31084
  // css-modules:E:\dev\umami-react-zen\src\components\SideNav.module.css
31094
31085
  var SideNav_default = { "sidenav": "SideNav_sidenav__M2NlY", "header": "SideNav_header__NGU1Y", "name": "SideNav_name__OTM0N", "section": "SideNav_section__MTUxM", "title": "SideNav_title__YTg5O", "content": "SideNav_content__MjczM", "item": "SideNav_item__ZTlkN", "label": "SideNav_label__NDU1N", "collapsed": "SideNav_collapsed__YzExM", "muted": "SideNav_muted__MmRlM", "selected": "SideNav_selected__ZjY4N", "variant-quiet": "SideNav_variant-quiet__OTZlN", "variant-1": "SideNav_variant-1__NjVmN", "variant-2": "SideNav_variant-2__NWZjM", "variant-3": "SideNav_variant-3__ZDE4O", "noborder": "SideNav_noborder__YTJjO" };
@@ -31109,7 +31100,7 @@ function SideNav({
31109
31100
  Column,
31110
31101
  {
31111
31102
  ...props,
31112
- className: (0, import_classnames44.default)(
31103
+ className: (0, import_classnames43.default)(
31113
31104
  SideNav_default.sidenav,
31114
31105
  isCollapsed && SideNav_default.collapsed,
31115
31106
  muteItems && SideNav_default.muted,
@@ -31137,9 +31128,9 @@ function SideNavHeader({
31137
31128
  children,
31138
31129
  ...props
31139
31130
  }) {
31140
- return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Row, { ...props, className: (0, import_classnames44.default)(SideNav_default.header, className), children: [
31131
+ return /* @__PURE__ */ (0, import_jsx_runtime54.jsxs)(Row, { ...props, className: (0, import_classnames43.default)(SideNav_default.header, className), children: [
31141
31132
  icon && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { size: "sm", children: icon }),
31142
- /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: (0, import_classnames44.default)(SideNav_default.name, SideNav_default.label), children: label }),
31133
+ /* @__PURE__ */ (0, import_jsx_runtime54.jsx)("div", { className: (0, import_classnames43.default)(SideNav_default.name, SideNav_default.label), children: label }),
31143
31134
  children
31144
31135
  ] });
31145
31136
  }
@@ -31157,10 +31148,10 @@ function SideNavItem({
31157
31148
  Row,
31158
31149
  {
31159
31150
  ...props,
31160
- className: (0, import_classnames44.default)(SideNav_default.item, className, isSelected && SideNav_default.selected),
31151
+ className: (0, import_classnames43.default)(SideNav_default.item, className, isSelected && SideNav_default.selected),
31161
31152
  children: [
31162
31153
  icon && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Icon, { size: "sm", children: icon }),
31163
- label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Text, { className: (0, import_classnames44.default)(SideNav_default.label), children: label }),
31154
+ label && /* @__PURE__ */ (0, import_jsx_runtime54.jsx)(Text, { className: (0, import_classnames43.default)(SideNav_default.label), children: label }),
31164
31155
  children
31165
31156
  ]
31166
31157
  }
@@ -31171,7 +31162,7 @@ function SideNavItem({
31171
31162
 
31172
31163
  // src/components/Slider.tsx
31173
31164
  var import_react191 = require("react");
31174
- var import_classnames45 = __toESM(require_classnames());
31165
+ var import_classnames44 = __toESM(require_classnames());
31175
31166
 
31176
31167
  // css-modules:E:\dev\umami-react-zen\src\components\Slider.module.css
31177
31168
  var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
@@ -31180,7 +31171,7 @@ var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_heade
31180
31171
  var import_jsx_runtime55 = require("react/jsx-runtime");
31181
31172
  var Slider2 = (0, import_react191.forwardRef)(
31182
31173
  ({ className, showValue = true, label, ...props }, ref) => {
31183
- return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames45.default)(Slider_default.slider, className), children: [
31174
+ return /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames44.default)(Slider_default.slider, className), children: [
31184
31175
  /* @__PURE__ */ (0, import_jsx_runtime55.jsxs)("div", { className: Slider_default.header, children: [
31185
31176
  label && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)(Label2, { className: Slider_default.label, children: label }),
31186
31177
  showValue && /* @__PURE__ */ (0, import_jsx_runtime55.jsx)($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
@@ -31205,7 +31196,7 @@ var Slider2 = (0, import_react191.forwardRef)(
31205
31196
  );
31206
31197
 
31207
31198
  // src/components/StatusLight.tsx
31208
- var import_classnames46 = __toESM(require_classnames());
31199
+ var import_classnames45 = __toESM(require_classnames());
31209
31200
 
31210
31201
  // css-modules:E:\dev\umami-react-zen\src\components\StatusLight.module.css
31211
31202
  var StatusLight_default = { "statuslight": "StatusLight_statuslight__MTliM", "status": "StatusLight_status__MDNmO", "bg": "StatusLight_bg__MjVjN", "success": "StatusLight_success__ZWI1N", "warning": "StatusLight_warning__YWRmM", "error": "StatusLight_error__NjdjM", "active": "StatusLight_active__NGZiY", "inactive": "StatusLight_inactive__NDI0Z" };
@@ -31214,11 +31205,11 @@ var StatusLight_default = { "statuslight": "StatusLight_statuslight__MTliM", "st
31214
31205
  var import_jsx_runtime56 = require("react/jsx-runtime");
31215
31206
  function StatusLight(props) {
31216
31207
  const { color, variant = "inactive", children, className, ...domProps } = props;
31217
- return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { ...domProps, className: (0, import_classnames46.default)(StatusLight_default.statuslight, className), children: [
31208
+ return /* @__PURE__ */ (0, import_jsx_runtime56.jsxs)("div", { ...domProps, className: (0, import_classnames45.default)(StatusLight_default.statuslight, className), children: [
31218
31209
  /* @__PURE__ */ (0, import_jsx_runtime56.jsx)("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ (0, import_jsx_runtime56.jsx)(
31219
31210
  "div",
31220
31211
  {
31221
- className: (0, import_classnames46.default)(StatusLight_default.status, StatusLight_default[variant]),
31212
+ className: (0, import_classnames45.default)(StatusLight_default.status, StatusLight_default[variant]),
31222
31213
  style: { backgroundColor: color }
31223
31214
  }
31224
31215
  ) }),
@@ -31228,7 +31219,7 @@ function StatusLight(props) {
31228
31219
 
31229
31220
  // src/components/Switch.tsx
31230
31221
  var import_react192 = require("react");
31231
- var import_classnames47 = __toESM(require_classnames());
31222
+ var import_classnames46 = __toESM(require_classnames());
31232
31223
 
31233
31224
  // css-modules:E:\dev\umami-react-zen\src\components\Switch.module.css
31234
31225
  var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
@@ -31246,7 +31237,7 @@ var Switch2 = (0, import_react192.forwardRef)(
31246
31237
  ...props,
31247
31238
  isSelected,
31248
31239
  ref,
31249
- className: (0, import_classnames47.default)(Switch_default.switch, className),
31240
+ className: (0, import_classnames46.default)(Switch_default.switch, className),
31250
31241
  children: [
31251
31242
  /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: Switch_default.track, children: /* @__PURE__ */ (0, import_jsx_runtime57.jsx)("div", { className: Switch_default.knob }) }),
31252
31243
  children
@@ -31277,7 +31268,7 @@ function TabPanel2({ children, ...props }) {
31277
31268
 
31278
31269
  // src/components/TextArea.tsx
31279
31270
  var import_react193 = require("react");
31280
- var import_classnames48 = __toESM(require_classnames());
31271
+ var import_classnames47 = __toESM(require_classnames());
31281
31272
 
31282
31273
  // css-modules:E:\dev\umami-react-zen\src\components\TextArea.module.css
31283
31274
  var TextArea_default = { "textarea": "TextArea_textarea__MTk5Y", "resize-none": "TextArea_resize-none__OTJhY", "resize-horizontal": "TextArea_resize-horizontal__YWIyZ", "resize-vertical": "TextArea_resize-vertical__NTM3O" };
@@ -31291,7 +31282,7 @@ var TextArea2 = (0, import_react193.forwardRef)(
31291
31282
  {
31292
31283
  ...props,
31293
31284
  ref,
31294
- className: (0, import_classnames48.default)(resize && TextArea_default[`resize-${resize}`]),
31285
+ className: (0, import_classnames47.default)(resize && TextArea_default[`resize-${resize}`]),
31295
31286
  asChild: true,
31296
31287
  children: /* @__PURE__ */ (0, import_jsx_runtime59.jsx)($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
31297
31288
  }
@@ -31300,7 +31291,7 @@ var TextArea2 = (0, import_react193.forwardRef)(
31300
31291
  );
31301
31292
 
31302
31293
  // src/components/ThemeButton.tsx
31303
- var import_classnames49 = __toESM(require_classnames());
31294
+ var import_classnames48 = __toESM(require_classnames());
31304
31295
 
31305
31296
  // css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
31306
31297
  var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
@@ -31335,7 +31326,7 @@ function ThemeButton({
31335
31326
  Button2,
31336
31327
  {
31337
31328
  ...props,
31338
- className: (0, import_classnames49.default)(ThemeButton_default.button, className),
31329
+ className: (0, import_classnames48.default)(ThemeButton_default.button, className),
31339
31330
  variant,
31340
31331
  onPress: handleClick,
31341
31332
  children: [
@@ -31351,7 +31342,7 @@ function ThemeButton({
31351
31342
 
31352
31343
  // src/components/Toggle.tsx
31353
31344
  var import_react194 = require("react");
31354
- var import_classnames50 = __toESM(require_classnames());
31345
+ var import_classnames49 = __toESM(require_classnames());
31355
31346
 
31356
31347
  // css-modules:E:\dev\umami-react-zen\src\components\Toggle.module.css
31357
31348
  var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
@@ -31369,7 +31360,7 @@ var Toggle = (0, import_react194.forwardRef)(
31369
31360
  ...props,
31370
31361
  ref,
31371
31362
  isSelected,
31372
- className: (0, import_classnames50.default)(Toggle_default.toggle, className),
31363
+ className: (0, import_classnames49.default)(Toggle_default.toggle, className),
31373
31364
  children
31374
31365
  }
31375
31366
  )
@@ -31378,7 +31369,7 @@ var Toggle = (0, import_react194.forwardRef)(
31378
31369
  );
31379
31370
 
31380
31371
  // src/components/ToggleGroup.tsx
31381
- var import_classnames51 = __toESM(require_classnames());
31372
+ var import_classnames50 = __toESM(require_classnames());
31382
31373
 
31383
31374
  // css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
31384
31375
  var ToggleGroup_default = { "group": "ToggleGroup_group__NTgyM", "list": "ToggleGroup_list__OWIyM", "item": "ToggleGroup_item__NDJmZ" };
@@ -31410,7 +31401,7 @@ function ToggleGroup({
31410
31401
  defaultSelectedKeys: defaultValue || defaultSelectedKeys,
31411
31402
  selectionMode,
31412
31403
  onSelectionChange: handleChange,
31413
- className: (0, import_classnames51.default)(ToggleGroup_default.group, className),
31404
+ className: (0, import_classnames50.default)(ToggleGroup_default.group, className),
31414
31405
  children: [
31415
31406
  label && /* @__PURE__ */ (0, import_jsx_runtime62.jsx)(Label2, { children: label }),
31416
31407
  /* @__PURE__ */ (0, import_jsx_runtime62.jsx)($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
@@ -31419,7 +31410,7 @@ function ToggleGroup({
31419
31410
  );
31420
31411
  }
31421
31412
  function ToggleGroupItem({ className, children, ...props }) {
31422
- return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames51.default)(ToggleGroup_default.item, className), children });
31413
+ return /* @__PURE__ */ (0, import_jsx_runtime62.jsx)($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames50.default)(ToggleGroup_default.item, className), children });
31423
31414
  }
31424
31415
 
31425
31416
  // src/components/ZenProvider.tsx
package/dist/index.mjs CHANGED
@@ -34,12 +34,12 @@ var require_use_sync_external_store_shim_production = __commonJS({
34
34
  return x === y && (0 !== x || 1 / x === 1 / y) || x !== x && y !== y;
35
35
  }
36
36
  var objectIs = "function" === typeof Object.is ? Object.is : is2;
37
- var useState17 = React7.useState;
37
+ var useState18 = React7.useState;
38
38
  var useEffect13 = React7.useEffect;
39
39
  var useLayoutEffect2 = React7.useLayoutEffect;
40
40
  var useDebugValue = React7.useDebugValue;
41
41
  function useSyncExternalStore$2(subscribe, getSnapshot) {
42
- var value = getSnapshot(), _useState = useState17({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
42
+ var value = getSnapshot(), _useState = useState18({ inst: { value, getSnapshot } }), inst = _useState[0].inst, forceUpdate = _useState[1];
43
43
  useLayoutEffect2(
44
44
  function() {
45
45
  inst.value = value;
@@ -97,7 +97,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
97
97
  "The result of getSnapshot should be cached to avoid an infinite loop"
98
98
  ), didWarnUncachedGetSnapshot = true);
99
99
  }
100
- cachedValue = useState17({
100
+ cachedValue = useState18({
101
101
  inst: { value, getSnapshot }
102
102
  });
103
103
  var inst = cachedValue[0].inst, forceUpdate = cachedValue[1];
@@ -135,7 +135,7 @@ var require_use_sync_external_store_shim_development = __commonJS({
135
135
  return getSnapshot();
136
136
  }
137
137
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(Error());
138
- var React7 = __import_react2, objectIs = "function" === typeof Object.is ? Object.is : is2, useState17 = React7.useState, useEffect13 = React7.useEffect, useLayoutEffect2 = React7.useLayoutEffect, useDebugValue = React7.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
138
+ var React7 = __import_react2, objectIs = "function" === typeof Object.is ? Object.is : is2, useState18 = React7.useState, useEffect13 = React7.useEffect, useLayoutEffect2 = React7.useLayoutEffect, useDebugValue = React7.useDebugValue, didWarnOld18Alpha = false, didWarnUncachedGetSnapshot = false, shim = "undefined" === typeof window || "undefined" === typeof window.document || "undefined" === typeof window.document.createElement ? useSyncExternalStore$1 : useSyncExternalStore$2;
139
139
  exports.useSyncExternalStore = void 0 !== React7.useSyncExternalStore ? React7.useSyncExternalStore : shim;
140
140
  "undefined" !== typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ && "function" === typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop && __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(Error());
141
141
  })();
@@ -161,7 +161,7 @@ var require_classnames = __commonJS({
161
161
  (function() {
162
162
  "use strict";
163
163
  var hasOwn = {}.hasOwnProperty;
164
- function classNames52() {
164
+ function classNames51() {
165
165
  var classes = "";
166
166
  for (var i = 0; i < arguments.length; i++) {
167
167
  var arg = arguments[i];
@@ -179,7 +179,7 @@ var require_classnames = __commonJS({
179
179
  return "";
180
180
  }
181
181
  if (Array.isArray(arg)) {
182
- return classNames52.apply(null, arg);
182
+ return classNames51.apply(null, arg);
183
183
  }
184
184
  if (arg.toString !== Object.prototype.toString && !arg.toString.toString().includes("[native code]")) {
185
185
  return arg.toString();
@@ -202,14 +202,14 @@ var require_classnames = __commonJS({
202
202
  return value + newClass;
203
203
  }
204
204
  if (typeof module !== "undefined" && module.exports) {
205
- classNames52.default = classNames52;
206
- module.exports = classNames52;
205
+ classNames51.default = classNames51;
206
+ module.exports = classNames51;
207
207
  } else if (typeof define === "function" && typeof define.amd === "object" && define.amd) {
208
208
  define("classnames", [], function() {
209
- return classNames52;
209
+ return classNames51;
210
210
  });
211
211
  } else {
212
- window.classNames = classNames52;
212
+ window.classNames = classNames51;
213
213
  }
214
214
  })();
215
215
  }
@@ -30907,13 +30907,7 @@ var SearchField2 = forwardRef8(
30907
30907
  );
30908
30908
 
30909
30909
  // src/components/Select.tsx
30910
- var import_classnames43 = __toESM(require_classnames());
30911
- import { forwardRef as forwardRef9 } from "react";
30912
-
30913
- // css-modules:E:\dev\umami-react-zen\src\components\Select.module.css
30914
- var Select_default = { "button": "Select_button__ZGY1Y", "popover": "Select_popover__MTQ1Y", "list": "Select_list__MDYyZ", "icon": "Select_icon__N2M0O", "search": "Select_search__MWQwM" };
30915
-
30916
- // src/components/Select.tsx
30910
+ import { forwardRef as forwardRef9, useState as useState17 } from "react";
30917
30911
  import { jsx as jsx53, jsxs as jsxs30 } from "react/jsx-runtime";
30918
30912
  var Select2 = forwardRef9(
30919
30913
  ({
@@ -30922,10 +30916,12 @@ var Select2 = forwardRef9(
30922
30916
  label,
30923
30917
  isLoading,
30924
30918
  allowSearch,
30919
+ searchValue,
30925
30920
  searchDelay,
30926
30921
  onSearch,
30927
30922
  onSelectionChange,
30928
30923
  onChange,
30924
+ buttonProps,
30929
30925
  listProps,
30930
30926
  popoverProps,
30931
30927
  renderValue,
@@ -30933,54 +30929,49 @@ var Select2 = forwardRef9(
30933
30929
  children,
30934
30930
  ...props
30935
30931
  }, ref) => {
30932
+ const [search, setSearch] = useState17("");
30936
30933
  const handleChange = (e) => {
30937
30934
  onSelectionChange?.(e);
30938
30935
  onChange?.(e);
30939
30936
  };
30940
- return /* @__PURE__ */ jsxs30(
30941
- $82d7e5349645de74$export$ef9b1a59e592288f,
30942
- {
30943
- "aria-label": "Select",
30944
- ...props,
30945
- ref,
30946
- className: (0, import_classnames43.default)(input_default.field, className),
30947
- onSelectionChange: handleChange,
30948
- children: [
30949
- label && /* @__PURE__ */ jsx53(Label2, { children: label }),
30950
- /* @__PURE__ */ jsx53($d2b4bc8c273e7be6$export$353f5b6fc5456de1, { className: (0, import_classnames43.default)(input_default.input, className), children: /* @__PURE__ */ jsxs30(Row, { justifyContent: "space-between", gap: "3", children: [
30951
- /* @__PURE__ */ jsx53($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
30952
- /* @__PURE__ */ jsx53("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx53(Icon, { rotate: 90, size: "xs", className: input_default.icon, children: /* @__PURE__ */ jsx53(Icons.Chevron, {}) }) })
30953
- ] }) }),
30954
- /* @__PURE__ */ jsx53(Popover2, { ...popoverProps, children: /* @__PURE__ */ jsxs30(Column, { className: Select_default.popover, children: [
30955
- allowSearch && /* @__PURE__ */ jsx53(
30956
- SearchField2,
30957
- {
30958
- className: Select_default.search,
30959
- onSearch,
30960
- delay: searchDelay,
30961
- autoFocus: true
30962
- }
30963
- ),
30964
- isLoading && /* @__PURE__ */ jsx53(Loading, { icon: "dots", position: "center", size: "sm" }),
30965
- /* @__PURE__ */ jsx53(
30966
- List,
30967
- {
30968
- ...listProps,
30969
- items,
30970
- className: (0, import_classnames43.default)(Select_default.list, listProps?.className),
30971
- style: { ...listProps?.style, display: isLoading ? "none" : void 0 },
30972
- children
30973
- }
30974
- )
30975
- ] }) })
30976
- ]
30977
- }
30978
- );
30937
+ const handleSearch = (value2) => {
30938
+ setSearch(value2);
30939
+ onSearch?.(value2);
30940
+ };
30941
+ return /* @__PURE__ */ jsxs30($82d7e5349645de74$export$ef9b1a59e592288f, { "aria-label": "Select", ...props, ref, onSelectionChange: handleChange, children: [
30942
+ label && /* @__PURE__ */ jsx53(Label2, { children: label }),
30943
+ /* @__PURE__ */ jsx53(Button2, { variant: "outline", ...buttonProps, children: /* @__PURE__ */ jsxs30(Row, { justifyContent: "space-between", gap: "3", children: [
30944
+ /* @__PURE__ */ jsx53($82d7e5349645de74$export$e288731fd71264f0, { children: renderValue }),
30945
+ /* @__PURE__ */ jsx53("span", { "aria-hidden": "true", children: /* @__PURE__ */ jsx53(Icon, { rotate: 90, size: "xs", children: /* @__PURE__ */ jsx53(Icons.Chevron, {}) }) })
30946
+ ] }) }),
30947
+ /* @__PURE__ */ jsx53(Popover2, { ...popoverProps, children: /* @__PURE__ */ jsx53(Column, { children: /* @__PURE__ */ jsxs30(Box, { padding: "2", border: true, borderRadius: true, backgroundColor: true, shadow: "3", children: [
30948
+ allowSearch && /* @__PURE__ */ jsx53(Box, { marginBottom: "2", children: /* @__PURE__ */ jsx53(
30949
+ SearchField2,
30950
+ {
30951
+ value: search,
30952
+ onSearch: handleSearch,
30953
+ delay: searchDelay,
30954
+ defaultValue: searchValue,
30955
+ autoFocus: true
30956
+ }
30957
+ ) }),
30958
+ isLoading && /* @__PURE__ */ jsx53(Loading, { icon: "dots", position: "center", size: "sm" }),
30959
+ /* @__PURE__ */ jsx53(
30960
+ List,
30961
+ {
30962
+ ...listProps,
30963
+ items,
30964
+ style: { ...listProps?.style, display: isLoading ? "none" : void 0 },
30965
+ children
30966
+ }
30967
+ )
30968
+ ] }) }) })
30969
+ ] });
30979
30970
  }
30980
30971
  );
30981
30972
 
30982
30973
  // src/components/SideNav.tsx
30983
- var import_classnames44 = __toESM(require_classnames());
30974
+ var import_classnames43 = __toESM(require_classnames());
30984
30975
  import { createContext as createContext4, useContext as useContext6 } from "react";
30985
30976
 
30986
30977
  // css-modules:E:\dev\umami-react-zen\src\components\SideNav.module.css
@@ -31002,7 +30993,7 @@ function SideNav({
31002
30993
  Column,
31003
30994
  {
31004
30995
  ...props,
31005
- className: (0, import_classnames44.default)(
30996
+ className: (0, import_classnames43.default)(
31006
30997
  SideNav_default.sidenav,
31007
30998
  isCollapsed && SideNav_default.collapsed,
31008
30999
  muteItems && SideNav_default.muted,
@@ -31030,9 +31021,9 @@ function SideNavHeader({
31030
31021
  children,
31031
31022
  ...props
31032
31023
  }) {
31033
- return /* @__PURE__ */ jsxs31(Row, { ...props, className: (0, import_classnames44.default)(SideNav_default.header, className), children: [
31024
+ return /* @__PURE__ */ jsxs31(Row, { ...props, className: (0, import_classnames43.default)(SideNav_default.header, className), children: [
31034
31025
  icon && /* @__PURE__ */ jsx54(Icon, { size: "sm", children: icon }),
31035
- /* @__PURE__ */ jsx54("div", { className: (0, import_classnames44.default)(SideNav_default.name, SideNav_default.label), children: label }),
31026
+ /* @__PURE__ */ jsx54("div", { className: (0, import_classnames43.default)(SideNav_default.name, SideNav_default.label), children: label }),
31036
31027
  children
31037
31028
  ] });
31038
31029
  }
@@ -31050,10 +31041,10 @@ function SideNavItem({
31050
31041
  Row,
31051
31042
  {
31052
31043
  ...props,
31053
- className: (0, import_classnames44.default)(SideNav_default.item, className, isSelected && SideNav_default.selected),
31044
+ className: (0, import_classnames43.default)(SideNav_default.item, className, isSelected && SideNav_default.selected),
31054
31045
  children: [
31055
31046
  icon && /* @__PURE__ */ jsx54(Icon, { size: "sm", children: icon }),
31056
- label && /* @__PURE__ */ jsx54(Text, { className: (0, import_classnames44.default)(SideNav_default.label), children: label }),
31047
+ label && /* @__PURE__ */ jsx54(Text, { className: (0, import_classnames43.default)(SideNav_default.label), children: label }),
31057
31048
  children
31058
31049
  ]
31059
31050
  }
@@ -31064,7 +31055,7 @@ function SideNavItem({
31064
31055
 
31065
31056
  // src/components/Slider.tsx
31066
31057
  import { forwardRef as forwardRef10 } from "react";
31067
- var import_classnames45 = __toESM(require_classnames());
31058
+ var import_classnames44 = __toESM(require_classnames());
31068
31059
 
31069
31060
  // css-modules:E:\dev\umami-react-zen\src\components\Slider.module.css
31070
31061
  var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_header__ZTE2M", "track": "Slider_track__ODk5M", "fill": "Slider_fill__YzdhM", "thumb": "Slider_thumb__NGEzM" };
@@ -31073,7 +31064,7 @@ var Slider_default = { "slider": "Slider_slider__MjBhO", "header": "Slider_heade
31073
31064
  import { Fragment as Fragment10, jsx as jsx55, jsxs as jsxs32 } from "react/jsx-runtime";
31074
31065
  var Slider2 = forwardRef10(
31075
31066
  ({ className, showValue = true, label, ...props }, ref) => {
31076
- return /* @__PURE__ */ jsxs32($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames45.default)(Slider_default.slider, className), children: [
31067
+ return /* @__PURE__ */ jsxs32($6f909507e6374d18$export$472062a354075cee, { ...props, ref, className: (0, import_classnames44.default)(Slider_default.slider, className), children: [
31077
31068
  /* @__PURE__ */ jsxs32("div", { className: Slider_default.header, children: [
31078
31069
  label && /* @__PURE__ */ jsx55(Label2, { className: Slider_default.label, children: label }),
31079
31070
  showValue && /* @__PURE__ */ jsx55($6f909507e6374d18$export$a590f758a961cb5b, { className: Slider_default.output })
@@ -31098,7 +31089,7 @@ var Slider2 = forwardRef10(
31098
31089
  );
31099
31090
 
31100
31091
  // src/components/StatusLight.tsx
31101
- var import_classnames46 = __toESM(require_classnames());
31092
+ var import_classnames45 = __toESM(require_classnames());
31102
31093
 
31103
31094
  // css-modules:E:\dev\umami-react-zen\src\components\StatusLight.module.css
31104
31095
  var StatusLight_default = { "statuslight": "StatusLight_statuslight__MTliM", "status": "StatusLight_status__MDNmO", "bg": "StatusLight_bg__MjVjN", "success": "StatusLight_success__ZWI1N", "warning": "StatusLight_warning__YWRmM", "error": "StatusLight_error__NjdjM", "active": "StatusLight_active__NGZiY", "inactive": "StatusLight_inactive__NDI0Z" };
@@ -31107,11 +31098,11 @@ var StatusLight_default = { "statuslight": "StatusLight_statuslight__MTliM", "st
31107
31098
  import { jsx as jsx56, jsxs as jsxs33 } from "react/jsx-runtime";
31108
31099
  function StatusLight(props) {
31109
31100
  const { color, variant = "inactive", children, className, ...domProps } = props;
31110
- return /* @__PURE__ */ jsxs33("div", { ...domProps, className: (0, import_classnames46.default)(StatusLight_default.statuslight, className), children: [
31101
+ return /* @__PURE__ */ jsxs33("div", { ...domProps, className: (0, import_classnames45.default)(StatusLight_default.statuslight, className), children: [
31111
31102
  /* @__PURE__ */ jsx56("div", { className: StatusLight_default.bg, children: /* @__PURE__ */ jsx56(
31112
31103
  "div",
31113
31104
  {
31114
- className: (0, import_classnames46.default)(StatusLight_default.status, StatusLight_default[variant]),
31105
+ className: (0, import_classnames45.default)(StatusLight_default.status, StatusLight_default[variant]),
31115
31106
  style: { backgroundColor: color }
31116
31107
  }
31117
31108
  ) }),
@@ -31121,7 +31112,7 @@ function StatusLight(props) {
31121
31112
 
31122
31113
  // src/components/Switch.tsx
31123
31114
  import { forwardRef as forwardRef11 } from "react";
31124
- var import_classnames47 = __toESM(require_classnames());
31115
+ var import_classnames46 = __toESM(require_classnames());
31125
31116
 
31126
31117
  // css-modules:E:\dev\umami-react-zen\src\components\Switch.module.css
31127
31118
  var Switch_default = { "switch": "Switch_switch__NzI0O", "track": "Switch_track__ZWU0O", "knob": "Switch_knob__YjFmZ" };
@@ -31139,7 +31130,7 @@ var Switch2 = forwardRef11(
31139
31130
  ...props,
31140
31131
  isSelected,
31141
31132
  ref,
31142
- className: (0, import_classnames47.default)(Switch_default.switch, className),
31133
+ className: (0, import_classnames46.default)(Switch_default.switch, className),
31143
31134
  children: [
31144
31135
  /* @__PURE__ */ jsx57("div", { className: Switch_default.track, children: /* @__PURE__ */ jsx57("div", { className: Switch_default.knob }) }),
31145
31136
  children
@@ -31169,7 +31160,7 @@ function TabPanel2({ children, ...props }) {
31169
31160
  }
31170
31161
 
31171
31162
  // src/components/TextArea.tsx
31172
- var import_classnames48 = __toESM(require_classnames());
31163
+ var import_classnames47 = __toESM(require_classnames());
31173
31164
  import { forwardRef as forwardRef12 } from "react";
31174
31165
 
31175
31166
  // css-modules:E:\dev\umami-react-zen\src\components\TextArea.module.css
@@ -31184,7 +31175,7 @@ var TextArea2 = forwardRef12(
31184
31175
  {
31185
31176
  ...props,
31186
31177
  ref,
31187
- className: (0, import_classnames48.default)(resize && TextArea_default[`resize-${resize}`]),
31178
+ className: (0, import_classnames47.default)(resize && TextArea_default[`resize-${resize}`]),
31188
31179
  asChild: true,
31189
31180
  children: /* @__PURE__ */ jsx59($216918bed6669f72$export$f5c9f3c2c4054eec, { rows, cols, style: { ...style }, children })
31190
31181
  }
@@ -31193,7 +31184,7 @@ var TextArea2 = forwardRef12(
31193
31184
  );
31194
31185
 
31195
31186
  // src/components/ThemeButton.tsx
31196
- var import_classnames49 = __toESM(require_classnames());
31187
+ var import_classnames48 = __toESM(require_classnames());
31197
31188
 
31198
31189
  // css-modules:E:\dev\umami-react-zen\src\components\ThemeButton.module.css
31199
31190
  var ThemeButton_default = { "button": "ThemeButton_button__Zjc5N" };
@@ -31228,7 +31219,7 @@ function ThemeButton({
31228
31219
  Button2,
31229
31220
  {
31230
31221
  ...props,
31231
- className: (0, import_classnames49.default)(ThemeButton_default.button, className),
31222
+ className: (0, import_classnames48.default)(ThemeButton_default.button, className),
31232
31223
  variant,
31233
31224
  onPress: handleClick,
31234
31225
  children: [
@@ -31244,7 +31235,7 @@ function ThemeButton({
31244
31235
 
31245
31236
  // src/components/Toggle.tsx
31246
31237
  import { forwardRef as forwardRef13 } from "react";
31247
- var import_classnames50 = __toESM(require_classnames());
31238
+ var import_classnames49 = __toESM(require_classnames());
31248
31239
 
31249
31240
  // css-modules:E:\dev\umami-react-zen\src\components\Toggle.module.css
31250
31241
  var Toggle_default = { "toggle": "Toggle_toggle__OWVjZ" };
@@ -31262,7 +31253,7 @@ var Toggle = forwardRef13(
31262
31253
  ...props,
31263
31254
  ref,
31264
31255
  isSelected,
31265
- className: (0, import_classnames50.default)(Toggle_default.toggle, className),
31256
+ className: (0, import_classnames49.default)(Toggle_default.toggle, className),
31266
31257
  children
31267
31258
  }
31268
31259
  )
@@ -31271,7 +31262,7 @@ var Toggle = forwardRef13(
31271
31262
  );
31272
31263
 
31273
31264
  // src/components/ToggleGroup.tsx
31274
- var import_classnames51 = __toESM(require_classnames());
31265
+ var import_classnames50 = __toESM(require_classnames());
31275
31266
 
31276
31267
  // css-modules:E:\dev\umami-react-zen\src\components\ToggleGroup.module.css
31277
31268
  var ToggleGroup_default = { "group": "ToggleGroup_group__NTgyM", "list": "ToggleGroup_list__OWIyM", "item": "ToggleGroup_item__NDJmZ" };
@@ -31303,7 +31294,7 @@ function ToggleGroup({
31303
31294
  defaultSelectedKeys: defaultValue || defaultSelectedKeys,
31304
31295
  selectionMode,
31305
31296
  onSelectionChange: handleChange,
31306
- className: (0, import_classnames51.default)(ToggleGroup_default.group, className),
31297
+ className: (0, import_classnames50.default)(ToggleGroup_default.group, className),
31307
31298
  children: [
31308
31299
  label && /* @__PURE__ */ jsx62(Label2, { children: label }),
31309
31300
  /* @__PURE__ */ jsx62($eaf9e70818b436db$export$f9fef0f55402315b, { className: ToggleGroup_default.list, children })
@@ -31312,7 +31303,7 @@ function ToggleGroup({
31312
31303
  );
31313
31304
  }
31314
31305
  function ToggleGroupItem({ className, children, ...props }) {
31315
- return /* @__PURE__ */ jsx62($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames51.default)(ToggleGroup_default.item, className), children });
31306
+ return /* @__PURE__ */ jsx62($eaf9e70818b436db$export$3288d34c523a1192, { ...props, className: (0, import_classnames50.default)(ToggleGroup_default.item, className), children });
31316
31307
  }
31317
31308
 
31318
31309
  // src/components/ZenProvider.tsx
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@umami/react-zen",
3
- "version": "0.90.0",
3
+ "version": "0.92.0",
4
4
  "description": "Modern, minimalist React component library",
5
5
  "author": "Umami <hello@umami.is>",
6
6
  "license": "MIT",
package/styles.css CHANGED
@@ -4475,49 +4475,6 @@ body a.Button_button__NDYwM {
4475
4475
  background: none;
4476
4476
  }
4477
4477
 
4478
- /* virtual-css:css:851dd5366a20c382ffec60997ee93e35 */
4479
- .Select_button__ZGY1Y {
4480
- display: flex;
4481
- align-items: center;
4482
- font-size: var(--font-size);
4483
- color: var(--font-color);
4484
- gap: var(--gap);
4485
- border: var(--border);
4486
- padding: var(--padding);
4487
- border-radius: var(--border-radius);
4488
- background: var(--background-color);
4489
- cursor: pointer;
4490
- }
4491
- .Select_popover__MTQ1Y {
4492
- min-width: 200px;
4493
- border: var(--border);
4494
- border-radius: var(--border-radius);
4495
- box-shadow: var(--box-shadow-3);
4496
- background: var(--background-color);
4497
- overflow: hidden;
4498
- }
4499
- .Select_list__MDYyZ > * {
4500
- border-radius: 0;
4501
- }
4502
- .Select_icon__N2M0O {
4503
- color: var(--font-color-disabled);
4504
- }
4505
- .Select_icon__N2M0O:hover {
4506
- color: var(--font-color);
4507
- cursor: pointer;
4508
- }
4509
- .Select_search__MWQwM {
4510
- border-bottom: var(--border);
4511
- outline: none;
4512
- }
4513
- .Select_search__MWQwM input {
4514
- border: 0;
4515
- box-shadow: none;
4516
- }
4517
- .Select_search__MWQwM input[data-focused] {
4518
- outline: none;
4519
- }
4520
-
4521
4478
  /* virtual-css:css:12d12fae43d9120371ddbb4f1c814f07 */
4522
4479
  .SideNav_sidenav__M2NlY {
4523
4480
  height: 100%;