@moving-walls/design-system 1.0.12 → 1.0.13

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.js CHANGED
@@ -30839,8 +30839,8 @@ var Switch = /*#__PURE__*/React.forwardRef(function (_a, ref) {
30839
30839
  className: "flex items-center justify-between",
30840
30840
  children: [require$$1.jsxs("div", {
30841
30841
  className: "flex items-center space-x-3",
30842
- children: [require$$1.jsxs("div", {
30843
- className: "relative inline-flex items-center",
30842
+ children: [require$$1.jsxs("label", {
30843
+ className: "relative inline-flex items-center cursor-pointer",
30844
30844
  children: [require$$1.jsx("input", Object.assign({
30845
30845
  type: "checkbox",
30846
30846
  ref: ref,
@@ -30849,12 +30849,16 @@ var Switch = /*#__PURE__*/React.forwardRef(function (_a, ref) {
30849
30849
  onChange: handleChange,
30850
30850
  disabled: loading || props.disabled
30851
30851
  }, props)), require$$1.jsxs("div", {
30852
- className: clsx('relative rounded-full cursor-pointer', animate ? 'transition-colors duration-200' : '', 'peer-focus:ring-2 peer-focus:ring-offset-2', variantConfig.focus, 'peer-disabled:opacity-50 peer-disabled:cursor-not-allowed', error ? 'bg-mw-error-200 peer-checked:bg-mw-error-600' : checked ? variantConfig.on : variantConfig.off, sizeConfig.track, className),
30852
+ className: clsx('relative rounded-full', animate ? 'transition-colors duration-200' : '', 'peer-focus:ring-2 peer-focus:ring-offset-2', variantConfig.focus, loading || props.disabled ? 'opacity-50 cursor-not-allowed' : 'cursor-pointer', error ? 'bg-mw-error-200 peer-checked:bg-mw-error-600' : checked ? variantConfig.on : variantConfig.off, sizeConfig.track, className),
30853
30853
  children: [trackIcon && require$$1.jsx("div", {
30854
30854
  className: "absolute inset-0 flex items-center justify-center",
30855
30855
  children: trackIcon
30856
30856
  }), require$$1.jsx("div", {
30857
- className: clsx('absolute left-0.5 top-0.5 rounded-full flex items-center justify-center', animate ? 'transition-transform duration-200' : '', checked ? 'peer-checked:' + sizeConfig.translate : '', variantConfig.thumb, sizeConfig.thumb, loading && 'shadow-sm'),
30857
+ className: clsx('absolute top-0.5 rounded-full flex items-center justify-center', animate ? 'transition-transform duration-200' : '', variantConfig.thumb, sizeConfig.thumb, loading && 'shadow-sm'),
30858
+ style: {
30859
+ left: checked ? undefined : '2px',
30860
+ right: checked ? '2px' : undefined
30861
+ },
30858
30862
  children: renderThumbContent()
30859
30863
  })]
30860
30864
  })]
@@ -35747,7 +35751,7 @@ var SelectContent = /*#__PURE__*/React__namespace.forwardRef(function (_a, ref)
35747
35751
  return require$$1.jsx(Portal, {
35748
35752
  children: require$$1.jsxs(Content2, Object.assign({
35749
35753
  ref: ref,
35750
- className: clsx('relative z-50 max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-mw-neutral-200 dark:border-mw-neutral-700', 'bg-white dark:bg-mw-neutral-800 text-mw-neutral-900 dark:text-mw-neutral-100', 'shadow-lg', 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', position === 'popper' && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
35754
+ className: clsx('relative z-[100001] max-h-96 min-w-[8rem] overflow-hidden rounded-md border border-mw-neutral-200 dark:border-mw-neutral-700', 'bg-white dark:bg-mw-neutral-800 text-mw-neutral-900 dark:text-mw-neutral-100', 'shadow-lg', 'data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2', position === 'popper' && 'data-[side=bottom]:translate-y-1 data-[side=left]:-translate-x-1 data-[side=right]:translate-x-1 data-[side=top]:-translate-y-1', className),
35751
35755
  position: position
35752
35756
  }, props, {
35753
35757
  children: [require$$1.jsx(SelectScrollUpButton, {}), require$$1.jsx(Viewport, {
@@ -49213,7 +49217,7 @@ function PageHeader(_a) {
49213
49217
  props = __rest$1(_a, ["title", "description", "subtitle", "titleKey", "descriptionKey", "leftAction", "actions", "className"]);
49214
49218
  var desc = description !== null && description !== void 0 ? description : subtitle;
49215
49219
  var headerId = "page-header-".concat(title.toLowerCase().trim().split(/\s+/).join('-'));
49216
- var baseClass = 'bg-white flex flex-col justify-start items-start gap-4 border-b border-container-border pt-4 pb-3 dark:bg-mw-neutral-900 dark:border-mw-neutral-800';
49220
+ var baseClass = 'bg-white flex flex-col justify-start items-start gap-4 border-b border-t border-container-border pt-4 pb-3 dark:bg-mw-neutral-900 dark:border-mw-neutral-800';
49217
49221
  var combinedClass = className ? "".concat(baseClass, " ").concat(className) : baseClass;
49218
49222
  return require$$1.jsx("div", Object.assign({
49219
49223
  id: headerId,