@aivenio/aquarium 2.16.0 → 2.18.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.
Files changed (55) hide show
  1. package/dist/atoms.cjs +1965 -2435
  2. package/dist/atoms.mjs +1179 -1649
  3. package/dist/charts.cjs +266 -400
  4. package/dist/charts.mjs +238 -379
  5. package/dist/src/atoms/Skeleton/Skeleton.js +48 -0
  6. package/dist/src/icons/collapsePanel.d.ts +9 -0
  7. package/dist/src/icons/collapsePanel.js +11 -0
  8. package/dist/src/icons/expandPanel.d.ts +9 -0
  9. package/dist/src/icons/expandPanel.js +11 -0
  10. package/dist/src/icons/index.d.ts +2 -0
  11. package/dist/src/icons/index.js +3 -1
  12. package/dist/src/molecules/Avatar/Avatar.js +2 -2
  13. package/dist/src/molecules/Badge/Badge.js +2 -2
  14. package/dist/src/molecules/Banner/Banner.js +2 -2
  15. package/dist/src/molecules/Card/Card.js +2 -2
  16. package/dist/src/molecules/Card/Compact.js +2 -2
  17. package/dist/src/molecules/Checkbox/Checkbox.js +2 -2
  18. package/dist/src/molecules/Chip/Chip.js +2 -2
  19. package/dist/src/molecules/Combobox/Combobox.js +2 -2
  20. package/dist/src/molecules/DataList/DataList.js +3 -2
  21. package/dist/src/molecules/DataList/DataListComponents.js +3 -2
  22. package/dist/src/molecules/DataList/DataListGroup.js +7 -4
  23. package/dist/src/molecules/DataList/DataListSkeleton.js +2 -2
  24. package/dist/src/molecules/DataTable/DataTable.js +6 -4
  25. package/dist/src/molecules/DatePicker/Button.d.ts +6 -0
  26. package/dist/src/molecules/DatePicker/Button.js +44 -1
  27. package/dist/src/molecules/DatePicker/DatePicker.d.ts +7 -2
  28. package/dist/src/molecules/DatePicker/DatePicker.js +21 -8
  29. package/dist/src/molecules/DatePicker/DateRangePicker.d.ts +3 -2
  30. package/dist/src/molecules/DatePicker/DateRangePicker.js +18 -8
  31. package/dist/src/molecules/Input/Input.js +2 -2
  32. package/dist/src/molecules/ItemList/ItemList.js +11 -7
  33. package/dist/src/molecules/MultiInput/MultiInput.js +2 -2
  34. package/dist/src/molecules/MultiSelect/MultiSelect.js +2 -2
  35. package/dist/src/molecules/NativeSelect/NativeSelect.js +2 -2
  36. package/dist/src/molecules/ProgressBar/ProgressBar.js +2 -2
  37. package/dist/src/molecules/RadioButton/RadioButton.js +2 -2
  38. package/dist/src/molecules/Select/Select.js +2 -2
  39. package/dist/src/molecules/Switch/Switch.js +2 -2
  40. package/dist/src/molecules/Textarea/Textarea.js +2 -2
  41. package/dist/src/molecules/Timeline/Timeline.js +2 -2
  42. package/dist/src/molecules/index.d.ts +1 -1
  43. package/dist/src/molecules/index.js +2 -2
  44. package/dist/src/utils/createComponent.d.ts +3 -1
  45. package/dist/src/utils/form/Label/Label.js +2 -2
  46. package/dist/src/utils/table/types.d.ts +0 -1
  47. package/dist/src/utils/table/types.js +1 -3
  48. package/dist/styles.css +6 -0
  49. package/dist/system.cjs +3412 -4195
  50. package/dist/system.mjs +2629 -3412
  51. package/dist/tsconfig.module.tsbuildinfo +1 -1
  52. package/dist/types/tailwindGenerated.d.ts +1 -1
  53. package/package.json +48 -45
  54. package/dist/src/molecules/Skeleton/Skeleton.js +0 -29
  55. /package/dist/src/{molecules → atoms}/Skeleton/Skeleton.d.ts +0 -0
package/dist/atoms.mjs CHANGED
@@ -1,38 +1,9 @@
1
1
  var __create = Object.create;
2
2
  var __defProp = Object.defineProperty;
3
- var __defProps = Object.defineProperties;
4
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
5
- var __getOwnPropDescs = Object.getOwnPropertyDescriptors;
6
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
7
- var __getOwnPropSymbols = Object.getOwnPropertySymbols;
8
5
  var __getProtoOf = Object.getPrototypeOf;
9
6
  var __hasOwnProp = Object.prototype.hasOwnProperty;
10
- var __propIsEnum = Object.prototype.propertyIsEnumerable;
11
- var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
12
- var __spreadValues = (a, b) => {
13
- for (var prop in b ||= {})
14
- if (__hasOwnProp.call(b, prop))
15
- __defNormalProp(a, prop, b[prop]);
16
- if (__getOwnPropSymbols)
17
- for (var prop of __getOwnPropSymbols(b)) {
18
- if (__propIsEnum.call(b, prop))
19
- __defNormalProp(a, prop, b[prop]);
20
- }
21
- return a;
22
- };
23
- var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
24
- var __objRest = (source, exclude) => {
25
- var target = {};
26
- for (var prop in source)
27
- if (__hasOwnProp.call(source, prop) && exclude.indexOf(prop) < 0)
28
- target[prop] = source[prop];
29
- if (source != null && __getOwnPropSymbols)
30
- for (var prop of __getOwnPropSymbols(source)) {
31
- if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source, prop))
32
- target[prop] = source[prop];
33
- }
34
- return target;
35
- };
36
7
  var __commonJS = (cb, mod) => function __require() {
37
8
  return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
38
9
  };
@@ -45,6 +16,10 @@ var __copyProps = (to, from, except, desc) => {
45
16
  return to;
46
17
  };
47
18
  var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
19
+ // If the importer is in node compatibility mode or this is not an ESM
20
+ // file that has been converted to a CommonJS file using a Babel-
21
+ // compatible transform (i.e. "__esModule" has not been set), then set
22
+ // "default" to the CommonJS "module.exports" for node compatibility.
48
23
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
49
24
  mod
50
25
  ));
@@ -1169,6 +1144,22 @@ var require_coinsHand = __commonJS({
1169
1144
  }
1170
1145
  });
1171
1146
 
1147
+ // src/icons/collapsePanel.js
1148
+ var require_collapsePanel = __commonJS({
1149
+ "src/icons/collapsePanel.js"(exports) {
1150
+ "use strict";
1151
+ var data = {
1152
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M8.182 10h9.09m-9.09 0 3.636 3.636M8.182 10l3.636-3.636M2.727 2.727v14.546"/>',
1153
+ "left": 0,
1154
+ "top": 0,
1155
+ "width": 20,
1156
+ "height": 20
1157
+ };
1158
+ exports.__esModule = true;
1159
+ exports.default = data;
1160
+ }
1161
+ });
1162
+
1172
1163
  // src/icons/comment.js
1173
1164
  var require_comment = __commonJS({
1174
1165
  "src/icons/comment.js"(exports) {
@@ -1761,6 +1752,22 @@ var require_expandAll = __commonJS({
1761
1752
  }
1762
1753
  });
1763
1754
 
1755
+ // src/icons/expandPanel.js
1756
+ var require_expandPanel = __commonJS({
1757
+ "src/icons/expandPanel.js"(exports) {
1758
+ "use strict";
1759
+ var data = {
1760
+ "body": '<path fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5" d="M11.818 10h-9.09m9.09 0-3.636 3.636M11.818 10 8.182 6.364m9.091-3.637v14.546"/>',
1761
+ "left": 0,
1762
+ "top": 0,
1763
+ "width": 20,
1764
+ "height": 20
1765
+ };
1766
+ exports.__esModule = true;
1767
+ exports.default = data;
1768
+ }
1769
+ });
1770
+
1764
1771
  // src/icons/export.js
1765
1772
  var require_export = __commonJS({
1766
1773
  "src/icons/export.js"(exports) {
@@ -5948,18 +5955,20 @@ function getPxMapping(breakpoints2) {
5948
5955
  if (!minWidthInPx.endsWith("px")) {
5949
5956
  throw new Error(`Unexpected breakpoint value found: '${minWidthInPx}'. Expecting it to be in px unit.`);
5950
5957
  }
5951
- return __spreadProps(__spreadValues({}, acc), {
5958
+ return {
5959
+ ...acc,
5952
5960
  [key]: parseInt(minWidthInPx, 10)
5953
- });
5961
+ };
5954
5962
  }, {});
5955
5963
  }
5956
5964
  function getMatches(windowSize) {
5957
5965
  const mapping = getPxMapping(allBreakpoints);
5958
5966
  return Object.keys(allBreakpoints).reduce((acc, key) => {
5959
5967
  const isMatch = !isUndefined(windowSize) && windowSize.width > 0 ? windowSize.width > mapping[key] : key === "default" ? true : false;
5960
- return __spreadProps(__spreadValues({}, acc), {
5968
+ return {
5969
+ ...acc,
5961
5970
  [key]: isMatch
5962
- });
5971
+ };
5963
5972
  }, {});
5964
5973
  }
5965
5974
  function selectBreakpointValue(value, matches) {
@@ -5992,9 +6001,8 @@ import { isUndefined as isUndefined3 } from "lodash-es";
5992
6001
 
5993
6002
  // src/molecules/Element/Element.tsx
5994
6003
  import React from "react";
5995
- var Element = (_a) => {
5996
- var _b = _a, { component } = _b, rest = __objRest(_b, ["component"]);
5997
- const Component = component != null ? component : "div";
6004
+ var Element = ({ component, ...rest }) => {
6005
+ const Component = component ?? "div";
5998
6006
  return React.createElement(Component, rest);
5999
6007
  };
6000
6008
 
@@ -6036,99 +6044,57 @@ var createSimpleComponent = (Component, defaultProps, displayName) => {
6036
6044
  const Curried = (props) => {
6037
6045
  const propsClassName = hasClassName(props) ? props.className : "";
6038
6046
  const className = defaultClassName || propsClassName ? classNames(defaultClassName, propsClassName) : void 0;
6039
- return /* @__PURE__ */ React2.createElement(Component, __spreadProps(__spreadValues(__spreadValues({}, defaultProps), props), { className }));
6047
+ return /* @__PURE__ */ React2.createElement(Component, { ...defaultProps, ...props, className });
6040
6048
  };
6041
6049
  Curried.displayName = displayName;
6042
6050
  return Curried;
6043
6051
  };
6044
6052
 
6045
6053
  // src/molecules/Box/Box.tsx
6046
- var Box = (_a) => {
6047
- var _b = _a, {
6048
- style,
6049
- color,
6050
- borderColor,
6051
- borderRadius,
6052
- borderWidth,
6053
- justifyContent,
6054
- justifySelf,
6055
- alignContent,
6056
- alignItems,
6057
- alignSelf,
6058
- flexDirection,
6059
- flexWrap,
6060
- flex,
6061
- grow,
6062
- shrink,
6063
- display,
6064
- padding,
6065
- paddingX,
6066
- paddingY,
6067
- paddingTop,
6068
- paddingRight,
6069
- paddingBottom,
6070
- paddingLeft,
6071
- margin,
6072
- marginX,
6073
- marginY,
6074
- marginTop,
6075
- marginRight,
6076
- marginBottom,
6077
- marginLeft,
6078
- backgroundColor,
6079
- width,
6080
- height,
6081
- maxWidth,
6082
- maxHeight,
6083
- minWidth,
6084
- minHeight,
6085
- gap,
6086
- colGap,
6087
- rowGap,
6088
- className
6089
- } = _b, rest = __objRest(_b, [
6090
- "style",
6091
- "color",
6092
- "borderColor",
6093
- "borderRadius",
6094
- "borderWidth",
6095
- "justifyContent",
6096
- "justifySelf",
6097
- "alignContent",
6098
- "alignItems",
6099
- "alignSelf",
6100
- "flexDirection",
6101
- "flexWrap",
6102
- "flex",
6103
- "grow",
6104
- "shrink",
6105
- "display",
6106
- "padding",
6107
- "paddingX",
6108
- "paddingY",
6109
- "paddingTop",
6110
- "paddingRight",
6111
- "paddingBottom",
6112
- "paddingLeft",
6113
- "margin",
6114
- "marginX",
6115
- "marginY",
6116
- "marginTop",
6117
- "marginRight",
6118
- "marginBottom",
6119
- "marginLeft",
6120
- "backgroundColor",
6121
- "width",
6122
- "height",
6123
- "maxWidth",
6124
- "maxHeight",
6125
- "minWidth",
6126
- "minHeight",
6127
- "gap",
6128
- "colGap",
6129
- "rowGap",
6130
- "className"
6131
- ]);
6054
+ var Box = ({
6055
+ style,
6056
+ color,
6057
+ borderColor,
6058
+ borderRadius,
6059
+ borderWidth,
6060
+ justifyContent,
6061
+ justifySelf,
6062
+ alignContent,
6063
+ alignItems,
6064
+ alignSelf,
6065
+ flexDirection,
6066
+ flexWrap,
6067
+ flex,
6068
+ grow,
6069
+ shrink,
6070
+ display,
6071
+ padding,
6072
+ paddingX,
6073
+ paddingY,
6074
+ paddingTop,
6075
+ paddingRight,
6076
+ paddingBottom,
6077
+ paddingLeft,
6078
+ margin,
6079
+ marginX,
6080
+ marginY,
6081
+ marginTop,
6082
+ marginRight,
6083
+ marginBottom,
6084
+ marginLeft,
6085
+ backgroundColor,
6086
+ width,
6087
+ height,
6088
+ maxWidth,
6089
+ maxHeight,
6090
+ minWidth,
6091
+ minHeight,
6092
+ gap,
6093
+ colGap,
6094
+ rowGap,
6095
+ className,
6096
+ ...rest
6097
+ }) => {
6132
6098
  const styles = useStyle({
6133
6099
  padding,
6134
6100
  display,
@@ -6164,19 +6130,20 @@ var Box = (_a) => {
6164
6130
  rowGap
6165
6131
  });
6166
6132
  const finalClassname = classNames2(className, {
6167
- [`border-${borderColor != null ? borderColor : ""}`]: Boolean(borderColor),
6168
- [`text-${color != null ? color : ""}`]: Boolean(color),
6169
- [`bg-${backgroundColor != null ? backgroundColor : ""}`]: Boolean(backgroundColor)
6133
+ [`border-${borderColor ?? ""}`]: Boolean(borderColor),
6134
+ [`text-${color ?? ""}`]: Boolean(color),
6135
+ [`bg-${backgroundColor ?? ""}`]: Boolean(backgroundColor)
6170
6136
  });
6171
6137
  return /* @__PURE__ */ React3.createElement(
6172
6138
  Element,
6173
- __spreadValues({
6174
- style: __spreadValues(__spreadValues({}, styles), style),
6175
- className: finalClassname !== "" ? finalClassname : void 0
6176
- }, rest)
6139
+ {
6140
+ style: { ...styles, ...style },
6141
+ className: finalClassname !== "" ? finalClassname : void 0,
6142
+ ...rest
6143
+ }
6177
6144
  );
6178
6145
  };
6179
- var FlexBox = (props) => /* @__PURE__ */ React3.createElement(Box, __spreadValues({ display: "flex" }, props));
6146
+ var FlexBox = (props) => /* @__PURE__ */ React3.createElement(Box, { display: "flex", ...props });
6180
6147
  FlexBox.displayName = "Box.Flex";
6181
6148
  Box.Flex = FlexBox;
6182
6149
  var BorderBox = createSimpleComponent(Box, { className: "rounded border", borderColor: "muted" }, "BorderBox");
@@ -6188,47 +6155,40 @@ import { animated, useTransition } from "@react-spring/web";
6188
6155
  // src/atoms/Toast/Toast.tsx
6189
6156
  import React6 from "react";
6190
6157
  import classNames3 from "classnames";
6191
- var Toast = (_a) => {
6192
- var _b = _a, {
6193
- children,
6194
- className,
6195
- variant
6196
- } = _b, rest = __objRest(_b, [
6197
- "children",
6198
- "className",
6199
- "variant"
6200
- ]);
6201
- return /* @__PURE__ */ React6.createElement(
6202
- "div",
6203
- __spreadProps(__spreadValues({}, rest), {
6204
- className: classNames3(
6205
- "Aquarium-Toast",
6206
- tw("typography-small rounded grid grid-cols-[1fr_auto] items-center gap-x-6 gap-y-2 p-4", {
6207
- "bg-body-intense text-opposite-default": variant === "default",
6208
- "bg-danger-intense text-white": variant === "danger"
6209
- }),
6210
- className
6211
- )
6212
- }),
6213
- children
6214
- );
6215
- };
6216
- var Dismiss = (_a) => {
6217
- var _b = _a, { children, className, variant } = _b, rest = __objRest(_b, ["children", "className", "variant"]);
6218
- return /* @__PURE__ */ React6.createElement(
6219
- "div",
6220
- __spreadProps(__spreadValues({}, rest), {
6221
- className: classNames3(
6222
- tw("self-start [&>button]:p-0 flex", {
6223
- "[&>button]:text-muted": variant === "default",
6224
- "[&>button]:text-danger-muted": variant === "danger"
6225
- }),
6226
- className
6227
- )
6228
- }),
6229
- children
6230
- );
6231
- };
6158
+ var Toast = ({
6159
+ children,
6160
+ className,
6161
+ variant,
6162
+ ...rest
6163
+ }) => /* @__PURE__ */ React6.createElement(
6164
+ "div",
6165
+ {
6166
+ ...rest,
6167
+ className: classNames3(
6168
+ "Aquarium-Toast",
6169
+ tw("typography-small rounded grid grid-cols-[1fr_auto] items-center gap-x-6 gap-y-2 p-4", {
6170
+ "bg-body-intense text-opposite-default": variant === "default",
6171
+ "bg-danger-intense text-white": variant === "danger"
6172
+ }),
6173
+ className
6174
+ )
6175
+ },
6176
+ children
6177
+ );
6178
+ var Dismiss = ({ children, className, variant, ...rest }) => /* @__PURE__ */ React6.createElement(
6179
+ "div",
6180
+ {
6181
+ ...rest,
6182
+ className: classNames3(
6183
+ tw("self-start [&>button]:p-0 flex", {
6184
+ "[&>button]:text-muted": variant === "default",
6185
+ "[&>button]:text-danger-muted": variant === "danger"
6186
+ }),
6187
+ className
6188
+ )
6189
+ },
6190
+ children
6191
+ );
6232
6192
  Toast.Dismiss = Dismiss;
6233
6193
 
6234
6194
  // src/icons/index.js
@@ -6302,6 +6262,7 @@ var import_codeFile = __toESM(require_codeFile());
6302
6262
  var import_code = __toESM(require_code());
6303
6263
  var import_cog = __toESM(require_cog());
6304
6264
  var import_coinsHand = __toESM(require_coinsHand());
6265
+ var import_collapsePanel = __toESM(require_collapsePanel());
6305
6266
  var import_comment = __toESM(require_comment());
6306
6267
  var import_confirm = __toESM(require_confirm());
6307
6268
  var import_console = __toESM(require_console());
@@ -6339,6 +6300,7 @@ var import_endorsed = __toESM(require_endorsed());
6339
6300
  var import_envelope = __toESM(require_envelope());
6340
6301
  var import_error = __toESM(require_error());
6341
6302
  var import_expandAll = __toESM(require_expandAll());
6303
+ var import_expandPanel = __toESM(require_expandPanel());
6342
6304
  var import_export = __toESM(require_export());
6343
6305
  var import_eyeOff = __toESM(require_eyeOff());
6344
6306
  var import_eyeOpen = __toESM(require_eyeOpen());
@@ -6521,9 +6483,8 @@ var THEME_MAPPING = {
6521
6483
  columnGap: "gap"
6522
6484
  };
6523
6485
  function resolveTailwindThemeValue(key, val) {
6524
- var _a;
6525
6486
  const resolvedKey = key in THEME_MAPPING ? THEME_MAPPING[key] : key;
6526
- const found = (_a = get(tailwind_theme_default, [resolvedKey, val], void 0)) != null ? _a : get(tailwind_theme_default, [resolvedKey, ...(val != null ? val : "").toString().split("-")], void 0);
6487
+ const found = get(tailwind_theme_default, [resolvedKey, val], void 0) ?? get(tailwind_theme_default, [resolvedKey, ...(val ?? "").toString().split("-")], void 0);
6527
6488
  if (!isUndefined4(found)) {
6528
6489
  return found;
6529
6490
  }
@@ -6536,77 +6497,54 @@ function useStyle(styles) {
6536
6497
  const isStylesObject = isPlainObject2(property) && "value" in property;
6537
6498
  const value = isStylesObject ? property.value : property;
6538
6499
  const resolvedValue = selectBreakpointValue(value, context2.breakpointMatches);
6539
- const transformer = isUndefined4(property == null ? void 0 : property.transformer) ? (val) => resolveTailwindThemeValue(key, val) : (val) => resolveTailwindThemeValue(key, property.transformer(val));
6500
+ const transformer = isUndefined4(property?.transformer) ? (val) => resolveTailwindThemeValue(key, val) : (
6501
+ // Even if transformer is set, we pass it through the default transformer
6502
+ // which will resolve possible tailwind theme mapping values
6503
+ (val) => resolveTailwindThemeValue(key, property.transformer(val))
6504
+ );
6540
6505
  const cssPropertyValue = transformer(resolvedValue);
6541
6506
  if (isUndefined4(cssPropertyValue)) {
6542
6507
  return acc;
6543
6508
  }
6544
- return __spreadProps(__spreadValues({}, acc), {
6509
+ return {
6510
+ ...acc,
6545
6511
  [key]: cssPropertyValue
6546
- });
6512
+ };
6547
6513
  }, {});
6548
6514
  }
6549
6515
 
6550
6516
  // src/molecules/Tailwindify/Tailwindify.tsx
6551
6517
  function Tailwindify(Component) {
6552
- return (_a) => {
6553
- var _b = _a, {
6554
- className,
6555
- style,
6556
- children,
6557
- padding,
6558
- paddingX,
6559
- paddingY,
6560
- paddingTop,
6561
- paddingRight,
6562
- paddingBottom,
6563
- paddingLeft,
6564
- margin,
6565
- marginX,
6566
- marginY,
6567
- marginTop,
6568
- marginRight,
6569
- marginBottom,
6570
- marginLeft,
6571
- space,
6572
- spaceX,
6573
- spaceY,
6574
- backgroundColor,
6575
- width,
6576
- height,
6577
- maxWidth,
6578
- maxHeight,
6579
- minWidth,
6580
- minHeight
6581
- } = _b, otherProps = __objRest(_b, [
6582
- "className",
6583
- "style",
6584
- "children",
6585
- "padding",
6586
- "paddingX",
6587
- "paddingY",
6588
- "paddingTop",
6589
- "paddingRight",
6590
- "paddingBottom",
6591
- "paddingLeft",
6592
- "margin",
6593
- "marginX",
6594
- "marginY",
6595
- "marginTop",
6596
- "marginRight",
6597
- "marginBottom",
6598
- "marginLeft",
6599
- "space",
6600
- "spaceX",
6601
- "spaceY",
6602
- "backgroundColor",
6603
- "width",
6604
- "height",
6605
- "maxWidth",
6606
- "maxHeight",
6607
- "minWidth",
6608
- "minHeight"
6609
- ]);
6518
+ return ({
6519
+ className,
6520
+ style,
6521
+ children,
6522
+ padding,
6523
+ paddingX,
6524
+ paddingY,
6525
+ paddingTop,
6526
+ paddingRight,
6527
+ paddingBottom,
6528
+ paddingLeft,
6529
+ margin,
6530
+ marginX,
6531
+ marginY,
6532
+ marginTop,
6533
+ marginRight,
6534
+ marginBottom,
6535
+ marginLeft,
6536
+ space,
6537
+ spaceX,
6538
+ spaceY,
6539
+ backgroundColor,
6540
+ width,
6541
+ height,
6542
+ maxWidth,
6543
+ maxHeight,
6544
+ minWidth,
6545
+ minHeight,
6546
+ ...otherProps
6547
+ }) => {
6610
6548
  const tailwindifyStyle = useStyle({
6611
6549
  padding,
6612
6550
  paddingTop: isUndefined5(paddingY) ? paddingTop : paddingY,
@@ -6626,10 +6564,15 @@ function Tailwindify(Component) {
6626
6564
  minWidth,
6627
6565
  minHeight
6628
6566
  });
6629
- const finalStyle = __spreadValues(__spreadValues({}, tailwindifyStyle), style);
6630
- const componentProps = __spreadProps(__spreadValues({}, otherProps), {
6567
+ const finalStyle = {
6568
+ ...tailwindifyStyle,
6569
+ ...style
6570
+ };
6571
+ const componentProps = {
6572
+ // Casting to skip TS error https://github.com/microsoft/TypeScript/issues/35858
6573
+ ...otherProps,
6631
6574
  style: finalStyle
6632
- });
6575
+ };
6633
6576
  const childrenWithProps = React10.Children.map(children, (child, index) => {
6634
6577
  if (!React10.isValidElement(child)) {
6635
6578
  return child;
@@ -6651,10 +6594,10 @@ function Tailwindify(Component) {
6651
6594
  return child;
6652
6595
  }
6653
6596
  const childStyle = get2(child, ["props", "style"], {});
6654
- const newProps = __spreadProps(__spreadValues({}, childProps), { style: __spreadValues(__spreadValues({}, childStyle), additionalStyle) });
6597
+ const newProps = { ...childProps, style: { ...childStyle, ...additionalStyle } };
6655
6598
  return React10.cloneElement(child, newProps);
6656
6599
  });
6657
- return /* @__PURE__ */ React10.createElement(Component, __spreadValues({ className }, componentProps), childrenWithProps);
6600
+ return /* @__PURE__ */ React10.createElement(Component, { className, ...componentProps }, childrenWithProps);
6658
6601
  };
6659
6602
  }
6660
6603
 
@@ -6687,7 +6630,7 @@ var Flexbox = Tailwindify(
6687
6630
  rowGap
6688
6631
  });
6689
6632
  const HtmlElement = htmlTag;
6690
- return /* @__PURE__ */ React11.createElement(HtmlElement, { style: __spreadValues(__spreadValues({}, hookStyle), style), className }, children);
6633
+ return /* @__PURE__ */ React11.createElement(HtmlElement, { style: { ...hookStyle, ...style }, className }, children);
6691
6634
  }
6692
6635
  );
6693
6636
 
@@ -6697,15 +6640,13 @@ import {
6697
6640
  Icon as IconifyIconComponent,
6698
6641
  InlineIcon as IconifyInlineIconComponent
6699
6642
  } from "@iconify/react";
6700
- var Icon = React12.forwardRef((_a, ref) => {
6701
- var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
6643
+ var Icon = React12.forwardRef(({ color, className, ...rest }, ref) => {
6702
6644
  const classes2 = classNames("Aquarium-Icon", className, color && `text-${String(color)}`);
6703
- return /* @__PURE__ */ React12.createElement(IconifyIconComponent, __spreadValues({ ref: ref != null ? ref : void 0, className: classes2 !== "" ? classes2 : void 0 }, rest));
6645
+ return /* @__PURE__ */ React12.createElement(IconifyIconComponent, { ref: ref ?? void 0, className: classes2 !== "" ? classes2 : void 0, ...rest });
6704
6646
  });
6705
- var InlineIcon = React12.forwardRef((_a, ref) => {
6706
- var _b = _a, { color, className } = _b, rest = __objRest(_b, ["color", "className"]);
6647
+ var InlineIcon = React12.forwardRef(({ color, className, ...rest }, ref) => {
6707
6648
  const classes2 = classNames("Aquarium-InlineIcon", color && `text-${String(color)}`);
6708
- return /* @__PURE__ */ React12.createElement("span", { className: classNames(tw("children:inline-block inline-flex justify-center items-center"), className) }, /* @__PURE__ */ React12.createElement(IconifyInlineIconComponent, __spreadValues({ ref: ref != null ? ref : void 0, className: classes2 !== "" ? classes2 : void 0 }, rest)));
6649
+ return /* @__PURE__ */ React12.createElement("span", { className: classNames(tw("children:inline-block inline-flex justify-center items-center"), className) }, /* @__PURE__ */ React12.createElement(IconifyInlineIconComponent, { ref: ref ?? void 0, className: classes2 !== "" ? classes2 : void 0, ...rest }));
6709
6650
  });
6710
6651
 
6711
6652
  // src/molecules/Tooltip/Tooltip.tsx
@@ -6834,14 +6775,12 @@ function useTooltipTriggerState(props = {}) {
6834
6775
  }
6835
6776
 
6836
6777
  // src/molecules/Tooltip/Tooltip.tsx
6837
- var Tooltip = (_a) => {
6838
- var _b = _a, { inline = true, delay = 200 } = _b, props = __objRest(_b, ["inline", "delay"]);
6839
- var _a2;
6778
+ var Tooltip = ({ inline = true, delay = 200, ...props }) => {
6840
6779
  const { placement: _placement = "top", content, disabled: isDisabled, shouldFlip = true } = props;
6841
- const display = (_a2 = props.display) != null ? _a2 : inline ? "inline-block" : "block";
6780
+ const display = props.display ?? (inline ? "inline-block" : "block");
6842
6781
  const triggerRef = React13.useRef(null);
6843
6782
  const overlayRef = React13.useRef(null);
6844
- const state = useTooltipTriggerState(__spreadValues({ isDisabled, delay }, props));
6783
+ const state = useTooltipTriggerState({ isDisabled, delay, ...props });
6845
6784
  const { triggerProps, tooltipProps } = useTooltipTrigger(props, state, triggerRef);
6846
6785
  const { overlayProps, arrowProps, placement } = useOverlayPosition({
6847
6786
  placement: _placement.replace("-", " "),
@@ -6855,44 +6794,37 @@ var Tooltip = (_a) => {
6855
6794
  onFocusWithinChange: (isFocusWithin) => isFocusWithin ? state.open() : state.close()
6856
6795
  });
6857
6796
  const handleClick = (e) => {
6858
- var _a3, _b2;
6859
- (_a3 = props.onClick) == null ? void 0 : _a3.call(props, e);
6860
- (_b2 = triggerProps.onClick) == null ? void 0 : _b2.call(triggerProps, e);
6797
+ props.onClick?.(e);
6798
+ triggerProps.onClick?.(e);
6861
6799
  };
6862
6800
  const handleMouseDown = (e) => {
6863
- var _a3, _b2;
6864
- (_a3 = props.onMouseDown) == null ? void 0 : _a3.call(props, e);
6865
- (_b2 = triggerProps.onMouseDown) == null ? void 0 : _b2.call(triggerProps, e);
6801
+ props.onMouseDown?.(e);
6802
+ triggerProps.onMouseDown?.(e);
6866
6803
  };
6867
6804
  const handleMouseUp = (e) => {
6868
- var _a3, _b2;
6869
- (_a3 = props.onMouseUp) == null ? void 0 : _a3.call(props, e);
6870
- (_b2 = triggerProps.onMouseUp) == null ? void 0 : _b2.call(triggerProps, e);
6805
+ props.onMouseUp?.(e);
6806
+ triggerProps.onMouseUp?.(e);
6871
6807
  };
6872
6808
  const handlePointerDown = (e) => {
6873
- var _a3, _b2;
6874
- (_a3 = props.onPointerDown) == null ? void 0 : _a3.call(props, e);
6875
- (_b2 = triggerProps.onPointerDown) == null ? void 0 : _b2.call(triggerProps, e);
6809
+ props.onPointerDown?.(e);
6810
+ triggerProps.onPointerDown?.(e);
6876
6811
  };
6877
6812
  const handlePointerUp = (e) => {
6878
- var _a3, _b2;
6879
- (_a3 = props.onPointerUp) == null ? void 0 : _a3.call(props, e);
6880
- (_b2 = triggerProps.onPointerUp) == null ? void 0 : _b2.call(triggerProps, e);
6813
+ props.onPointerUp?.(e);
6814
+ triggerProps.onPointerUp?.(e);
6881
6815
  };
6882
6816
  return /* @__PURE__ */ React13.createElement(
6883
6817
  "div",
6884
- __spreadProps(__spreadValues({
6885
- className: display
6886
- }, triggerProps), {
6818
+ {
6819
+ className: display,
6820
+ ...triggerProps,
6887
6821
  onFocus: (e) => {
6888
- var _a3, _b2;
6889
- (_a3 = triggerProps.onFocus) == null ? void 0 : _a3.call(triggerProps, e);
6890
- (_b2 = focusWithinProps.onFocus) == null ? void 0 : _b2.call(focusWithinProps, e);
6822
+ triggerProps.onFocus?.(e);
6823
+ focusWithinProps.onFocus?.(e);
6891
6824
  },
6892
6825
  onBlur: (e) => {
6893
- var _a3, _b2;
6894
- (_a3 = triggerProps.onBlur) == null ? void 0 : _a3.call(triggerProps, e);
6895
- (_b2 = focusWithinProps.onBlur) == null ? void 0 : _b2.call(focusWithinProps, e);
6826
+ triggerProps.onBlur?.(e);
6827
+ focusWithinProps.onBlur?.(e);
6896
6828
  },
6897
6829
  onClick: handleClick,
6898
6830
  onMouseDown: handleMouseDown,
@@ -6900,39 +6832,39 @@ var Tooltip = (_a) => {
6900
6832
  onPointerDown: handlePointerDown,
6901
6833
  onPointerUp: handlePointerUp,
6902
6834
  ref: triggerRef
6903
- }),
6835
+ },
6904
6836
  props.children,
6905
6837
  state.isOpen && /* @__PURE__ */ React13.createElement(
6906
6838
  TooltipWrapper,
6907
- __spreadValues({
6839
+ {
6908
6840
  ref: overlayRef,
6909
6841
  state,
6910
6842
  placement,
6911
- arrowProps
6912
- }, mergeProps(tooltipProps, overlayProps)),
6843
+ arrowProps,
6844
+ ...mergeProps(tooltipProps, overlayProps)
6845
+ },
6913
6846
  content
6914
6847
  )
6915
6848
  );
6916
6849
  };
6917
6850
  var TooltipWrapper = React13.forwardRef(
6918
- (_a, forwardedRef) => {
6919
- var _b = _a, { state, placement, arrowProps } = _b, props = __objRest(_b, ["state", "placement", "arrowProps"]);
6920
- var _a2;
6851
+ ({ state, placement, arrowProps, ...props }, forwardedRef) => {
6921
6852
  const ref = React13.useRef(null);
6922
6853
  React13.useImperativeHandle(forwardedRef, () => ref.current);
6923
6854
  const { tooltipProps } = useTooltip(props, state);
6924
- const arrowStyle = getArrowStyle(ref.current, placement, (_a2 = arrowProps.style) != null ? _a2 : {});
6855
+ const arrowStyle = getArrowStyle(ref.current, placement, arrowProps.style ?? {});
6925
6856
  return /* @__PURE__ */ React13.createElement(OverlayContainer, null, /* @__PURE__ */ React13.createElement(
6926
6857
  "div",
6927
- __spreadValues({
6858
+ {
6928
6859
  ref,
6929
6860
  className: classNames(
6930
6861
  "Aquarium-Tooltip",
6931
6862
  tw("p-3 rounded-sm typography-caption max-w-[320px] bg-body-intense text-opposite-default")
6932
- )
6933
- }, mergeProps(props, tooltipProps)),
6863
+ ),
6864
+ ...mergeProps(props, tooltipProps)
6865
+ },
6934
6866
  props.children,
6935
- /* @__PURE__ */ React13.createElement(Arrow, __spreadProps(__spreadValues({}, arrowProps), { style: arrowStyle }))
6867
+ /* @__PURE__ */ React13.createElement(Arrow, { ...arrowProps, style: arrowStyle })
6936
6868
  ));
6937
6869
  }
6938
6870
  );
@@ -6953,22 +6885,22 @@ var getArrowStyle = (element, position, { left, top }) => {
6953
6885
  };
6954
6886
  switch (position) {
6955
6887
  case "top": {
6956
- return { left: Math.min(limits.right, Math.max((left != null ? left : 0) - ARROW_SIZE, limits.left)), bottom: -ARROW_SIZE };
6888
+ return { left: Math.min(limits.right, Math.max((left ?? 0) - ARROW_SIZE, limits.left)), bottom: -ARROW_SIZE };
6957
6889
  }
6958
6890
  case "bottom": {
6959
- return { left: Math.min(limits.right, Math.max((left != null ? left : 0) - ARROW_SIZE, limits.left)), top: -ARROW_SIZE };
6891
+ return { left: Math.min(limits.right, Math.max((left ?? 0) - ARROW_SIZE, limits.left)), top: -ARROW_SIZE };
6960
6892
  }
6961
6893
  case "left": {
6962
- return { right: -ARROW_SIZE, top: Math.min(limits.bottom, Math.max((top != null ? top : 0) - ARROW_SIZE, limits.top)) };
6894
+ return { right: -ARROW_SIZE, top: Math.min(limits.bottom, Math.max((top ?? 0) - ARROW_SIZE, limits.top)) };
6963
6895
  }
6964
6896
  case "right": {
6965
- return { left: -ARROW_SIZE, top: Math.min(limits.bottom, Math.max((top != null ? top : 0) - ARROW_SIZE, limits.top)) };
6897
+ return { left: -ARROW_SIZE, top: Math.min(limits.bottom, Math.max((top ?? 0) - ARROW_SIZE, limits.top)) };
6966
6898
  }
6967
6899
  }
6968
6900
  return { left, top };
6969
6901
  };
6970
6902
  var Arrow = (props) => {
6971
- return /* @__PURE__ */ React13.createElement("div", __spreadValues({ className: tw("absolute w-3 h-3 bg-body-intense rotate-45") }, props));
6903
+ return /* @__PURE__ */ React13.createElement("div", { className: tw("absolute w-3 h-3 bg-body-intense rotate-45"), ...props });
6972
6904
  };
6973
6905
 
6974
6906
  // src/utils/constants.ts
@@ -7008,34 +6940,21 @@ var LoadingSpinner = ({ size = "20px" }) => {
7008
6940
  };
7009
6941
  var asButton = (Component, isDropdownButton) => {
7010
6942
  return React14.forwardRef(
7011
- (_a, ref) => {
7012
- var _b = _a, {
7013
- kind = "primary",
7014
- icon,
7015
- iconPlacement = "left",
7016
- tooltip,
7017
- tooltipPlacement,
7018
- disabled,
7019
- loading: loading2 = false,
7020
- fullWidth = false,
7021
- dense = false,
7022
- UNSAFE_className,
7023
- "aria-label": ariaLabel,
7024
- children
7025
- } = _b, props = __objRest(_b, [
7026
- "kind",
7027
- "icon",
7028
- "iconPlacement",
7029
- "tooltip",
7030
- "tooltipPlacement",
7031
- "disabled",
7032
- "loading",
7033
- "fullWidth",
7034
- "dense",
7035
- "UNSAFE_className",
7036
- "aria-label",
7037
- "children"
7038
- ]);
6943
+ ({
6944
+ kind = "primary",
6945
+ icon,
6946
+ iconPlacement = "left",
6947
+ tooltip,
6948
+ tooltipPlacement,
6949
+ disabled,
6950
+ loading: loading2 = false,
6951
+ fullWidth = false,
6952
+ dense = false,
6953
+ UNSAFE_className,
6954
+ "aria-label": ariaLabel,
6955
+ children,
6956
+ ...props
6957
+ }, ref) => {
7039
6958
  const hasChildren = React14.Children.count(children) > 0;
7040
6959
  const isIconOnlyButton = !hasChildren && !!icon;
7041
6960
  const isGhost = !isIconOnlyButton && (kind === "ghost" || kind === "secondary-ghost");
@@ -7076,9 +6995,9 @@ var asButton = (Component, isDropdownButton) => {
7076
6995
  };
7077
6996
  const buttonComponent = /* @__PURE__ */ React14.createElement(
7078
6997
  Component,
7079
- __spreadProps(__spreadValues({
7080
- ref
7081
- }, props), {
6998
+ {
6999
+ ref,
7000
+ ...props,
7082
7001
  className: classNames(
7083
7002
  "Aquarium-Button",
7084
7003
  {
@@ -7089,6 +7008,7 @@ var asButton = (Component, isDropdownButton) => {
7089
7008
  },
7090
7009
  UNSAFE_className,
7091
7010
  !isIconOnlyButton && COLOR_CLASSNAMES[kind],
7011
+ // adding inline-block here for the case of using it with anchor tag
7092
7012
  tw(
7093
7013
  "inline-block border-0 rounded-sm transition whitespace-nowrap focus:outline-none relative text-center",
7094
7014
  {
@@ -7102,12 +7022,13 @@ var asButton = (Component, isDropdownButton) => {
7102
7022
  "block w-full": fullWidth && !isIconOnlyButton,
7103
7023
  "cursor-not-allowed": !!disabled || !!loading2,
7104
7024
  "icon-stroke-2": !isIconOnlyButton
7025
+ // the main reason we changed icon stroke-width to 2px on buttons which have both text + icon together inside because the font sizes we use currently are big and bold (for both default and dense sizes), so the discrepancy was too big. And that's why we use default stroke-width for icon only button.
7105
7026
  }
7106
7027
  )
7107
7028
  ),
7108
- "aria-label": isIconOnlyButton ? ariaLabel != null ? ariaLabel : tooltip : ariaLabel,
7029
+ "aria-label": isIconOnlyButton ? ariaLabel ?? tooltip : ariaLabel,
7109
7030
  disabled: disabled || loading2
7110
- }),
7031
+ },
7111
7032
  loading2 && !isGhost ? /* @__PURE__ */ React14.createElement(React14.Fragment, null, /* @__PURE__ */ React14.createElement("div", { className: tw("absolute left-1/2 top-0 bottom-0 flex"), style: { transform: "translate(-50%)" } }, /* @__PURE__ */ React14.createElement(LoadingSpinner, { size: iconSize })), /* @__PURE__ */ React14.createElement("div", { className: tw({ invisible: loading2 }) }, buttonContent())) : buttonContent()
7112
7033
  );
7113
7034
  return tooltip ? /* @__PURE__ */ React14.createElement(Tooltip, { content: tooltip, placement: tooltipPlacement }, buttonComponent) : buttonComponent;
@@ -7116,40 +7037,40 @@ var asButton = (Component, isDropdownButton) => {
7116
7037
  };
7117
7038
  var Button = asButton("button");
7118
7039
  Button.displayName = "Button";
7119
- var PrimaryButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, __spreadProps(__spreadValues({ ref }, props), { kind: "primary" })));
7040
+ var PrimaryButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "primary" }));
7120
7041
  PrimaryButton.displayName = "Button.Primary";
7121
7042
  Button.Primary = PrimaryButton;
7122
- var SecondaryButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, __spreadProps(__spreadValues({ ref }, props), { kind: "secondary" })));
7043
+ var SecondaryButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "secondary" }));
7123
7044
  SecondaryButton.displayName = "Button.Secondary";
7124
7045
  Button.Secondary = SecondaryButton;
7125
- var GhostButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, __spreadProps(__spreadValues({ ref }, props), { kind: "ghost" })));
7046
+ var GhostButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "ghost" }));
7126
7047
  GhostButton.displayName = "Button.Ghost";
7127
7048
  Button.Ghost = GhostButton;
7128
- var SecondaryGhostButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, __spreadProps(__spreadValues({ ref }, props), { kind: "secondary-ghost" })));
7049
+ var SecondaryGhostButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "secondary-ghost" }));
7129
7050
  SecondaryGhostButton.displayName = "Button.SecondaryGhost";
7130
7051
  Button.SecondaryGhost = SecondaryGhostButton;
7131
- var TextButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, __spreadProps(__spreadValues({ ref }, props), { kind: "text" })));
7052
+ var TextButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "text" }));
7132
7053
  TextButton.displayName = "Button.Text";
7133
7054
  Button.Text = TextButton;
7134
- var IconButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, __spreadProps(__spreadValues({ ref }, props), { kind: "ghost", loading: false, fullWidth: false })));
7055
+ var IconButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(Button, { ref, ...props, kind: "ghost", loading: false, fullWidth: false }));
7135
7056
  IconButton.displayName = "Button.Icon";
7136
7057
  Button.Icon = IconButton;
7137
7058
  var ExternalLinkButton = asButton("a");
7138
7059
  ExternalLinkButton.displayName = "Button.ExternalLink";
7139
7060
  Button.ExternalLink = ExternalLinkButton;
7140
- var IconExternalLinkButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(ExternalLinkButton, __spreadProps(__spreadValues({ ref }, props), { kind: "ghost", loading: false, fullWidth: false })));
7061
+ var IconExternalLinkButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(ExternalLinkButton, { ref, ...props, kind: "ghost", loading: false, fullWidth: false }));
7141
7062
  IconExternalLinkButton.displayName = "Button.IconExternalLink";
7142
7063
  Button.IconExternalLink = IconExternalLinkButton;
7143
7064
  var DropdownButton = asButton("button", true);
7144
7065
  DropdownButton.displayName = "Button.Dropdown";
7145
7066
  Button.Dropdown = DropdownButton;
7146
- var PrimaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton, __spreadProps(__spreadValues({ ref }, props), { kind: "primary" })));
7067
+ var PrimaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton, { ref, ...props, kind: "primary" }));
7147
7068
  PrimaryDropdownButton.displayName = "Button.PrimaryDropdown";
7148
7069
  Button.PrimaryDropdown = PrimaryDropdownButton;
7149
- var SecondaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton, __spreadProps(__spreadValues({ ref }, props), { kind: "secondary" })));
7070
+ var SecondaryDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton, { ref, ...props, kind: "secondary" }));
7150
7071
  SecondaryDropdownButton.displayName = "Button.SecondaryDropdown";
7151
7072
  Button.SecondaryDropdown = SecondaryDropdownButton;
7152
- var GhostDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton, __spreadProps(__spreadValues({ ref }, props), { kind: "ghost" })));
7073
+ var GhostDropdownButton = React14.forwardRef((props, ref) => /* @__PURE__ */ React14.createElement(DropdownButton, { ref, ...props, kind: "ghost" }));
7153
7074
  GhostDropdownButton.displayName = "Button.GhostDropdownButton";
7154
7075
  Button.GhostDropdown = GhostDropdownButton;
7155
7076
 
@@ -7157,31 +7078,25 @@ Button.GhostDropdown = GhostDropdownButton;
7157
7078
  import React15 from "react";
7158
7079
  import { isUndefined as isUndefined6 } from "lodash-es";
7159
7080
  var typographies = Object.fromEntries(Object.keys(tokens_default.typography).map((key) => [key, `typography-${key}`]));
7160
- var Typography = (_a) => {
7161
- var _b = _a, {
7162
- children,
7163
- variant = "default",
7164
- color,
7165
- htmlTag = "div",
7166
- className,
7167
- fontWeight
7168
- } = _b, rest = __objRest(_b, [
7169
- "children",
7170
- "variant",
7171
- "color",
7172
- "htmlTag",
7173
- "className",
7174
- "fontWeight"
7175
- ]);
7081
+ var Typography = ({
7082
+ children,
7083
+ variant = "default",
7084
+ color,
7085
+ htmlTag = "div",
7086
+ className,
7087
+ fontWeight,
7088
+ ...rest
7089
+ }) => {
7176
7090
  const HtmlElement = htmlTag;
7177
7091
  const resolvedColorName = isUndefined6(color) || color === "current" ? "default" : color;
7178
7092
  const style = useStyle({ fontWeight });
7179
7093
  return /* @__PURE__ */ React15.createElement(
7180
7094
  HtmlElement,
7181
- __spreadValues({
7095
+ {
7182
7096
  className: classNames(typographies[variant], `text-${resolvedColorName.toString()}`, className),
7183
- style
7184
- }, rest),
7097
+ style,
7098
+ ...rest
7099
+ },
7185
7100
  children
7186
7101
  );
7187
7102
  };
@@ -7215,104 +7130,73 @@ var alertTypes = {
7215
7130
  color: "success-default"
7216
7131
  }
7217
7132
  };
7218
- var Alert = (_a) => {
7219
- var _b = _a, {
7220
- children,
7221
- className,
7222
- type,
7223
- dense
7224
- } = _b, rest = __objRest(_b, [
7225
- "children",
7226
- "className",
7227
- "type",
7228
- "dense"
7229
- ]);
7230
- return /* @__PURE__ */ React16.createElement(
7231
- "div",
7232
- __spreadProps(__spreadValues({}, rest), {
7233
- role: type === "error" || type === "warning" ? "alert" : "status",
7234
- className: classNames(
7235
- tw("rounded grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-2", {
7236
- "bg-status-danger": type === "error",
7237
- "bg-status-info": type === "information",
7238
- "bg-status-success": type === "success",
7239
- "bg-status-warning": type === "warning",
7240
- "bg-status-announcement": type === "announcement",
7241
- "p-4": Boolean(dense),
7242
- "p-5": !dense
7243
- }),
7244
- className
7245
- )
7246
- }),
7247
- children
7248
- );
7249
- };
7250
- Alert.Title = (_a) => {
7251
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7252
- return /* @__PURE__ */ React16.createElement(Typography, __spreadProps(__spreadValues({}, rest), { variant: "default-strong", color: "intense", className: classNames(tw("col-start-2"), className) }), children);
7253
- };
7254
- Alert.Description = (_a) => {
7255
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7256
- return /* @__PURE__ */ React16.createElement(Typography, __spreadProps(__spreadValues({}, rest), { variant: "small", color: "default", className: classNames(tw("col-start-2"), className) }), children);
7257
- };
7258
- Alert.Actions = (_a) => {
7259
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7260
- return /* @__PURE__ */ React16.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("flex gap-4 col-start-2"), className) }), children);
7261
- };
7262
- Alert.Icon = (_a) => {
7263
- var _b = _a, { type, dense } = _b, rest = __objRest(_b, ["type", "dense"]);
7264
- return /* @__PURE__ */ React16.createElement("div", { className: tw("h-[20px] col-start-1 row-start-1", { "self-start": !dense }) }, /* @__PURE__ */ React16.createElement(Icon, __spreadProps(__spreadValues({}, rest), { icon: alertTypes[type].icon, color: alertTypes[type].color, fontSize: 20 })));
7265
- };
7266
- Alert.Dismiss = (_a) => {
7267
- var _b = _a, { type } = _b, rest = __objRest(_b, ["type"]);
7268
- return /* @__PURE__ */ React16.createElement("div", { className: tw("h-[20px] col-start-3 row-start-1") }, /* @__PURE__ */ React16.createElement(Button.Icon, __spreadProps(__spreadValues({}, rest), { UNSAFE_className: tw("-m-2"), tooltip: "Dismiss", icon: import_cross2.default })));
7269
- };
7270
- var Banner = (_a) => {
7271
- var _b = _a, {
7272
- children,
7273
- className,
7274
- type
7275
- } = _b, rest = __objRest(_b, [
7276
- "children",
7277
- "className",
7278
- "type"
7279
- ]);
7280
- return /* @__PURE__ */ React16.createElement(
7281
- "div",
7282
- __spreadProps(__spreadValues({}, rest), {
7283
- role: type === "error" || type === "warning" ? "alert" : "status",
7284
- className: classNames(
7285
- tw("relative flex px-[60px] justify-center", {
7286
- "bg-status-danger": type === "error",
7287
- "bg-status-announcement": type === "information",
7288
- "bg-status-success": type === "success",
7289
- "bg-status-warning": type === "warning"
7290
- }),
7291
- className
7292
- )
7293
- }),
7294
- children
7295
- );
7296
- };
7133
+ var Alert = ({
7134
+ children,
7135
+ className,
7136
+ type,
7137
+ dense,
7138
+ ...rest
7139
+ }) => /* @__PURE__ */ React16.createElement(
7140
+ "div",
7141
+ {
7142
+ ...rest,
7143
+ role: type === "error" || type === "warning" ? "alert" : "status",
7144
+ className: classNames(
7145
+ tw("rounded grid grid-cols-[auto_1fr_auto] items-center gap-x-3 gap-y-2", {
7146
+ "bg-status-danger": type === "error",
7147
+ "bg-status-info": type === "information",
7148
+ "bg-status-success": type === "success",
7149
+ "bg-status-warning": type === "warning",
7150
+ "bg-status-announcement": type === "announcement",
7151
+ "p-4": Boolean(dense),
7152
+ "p-5": !dense
7153
+ }),
7154
+ className
7155
+ )
7156
+ },
7157
+ children
7158
+ );
7159
+ Alert.Title = ({ children, className, ...rest }) => /* @__PURE__ */ React16.createElement(Typography, { ...rest, variant: "default-strong", color: "intense", className: classNames(tw("col-start-2"), className) }, children);
7160
+ Alert.Description = ({ children, className, ...rest }) => /* @__PURE__ */ React16.createElement(Typography, { ...rest, variant: "small", color: "default", className: classNames(tw("col-start-2"), className) }, children);
7161
+ Alert.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React16.createElement("div", { ...rest, className: classNames(tw("flex gap-4 col-start-2"), className) }, children);
7162
+ Alert.Icon = ({ type, dense, ...rest }) => /* @__PURE__ */ React16.createElement("div", { className: tw("h-[20px] col-start-1 row-start-1", { "self-start": !dense }) }, /* @__PURE__ */ React16.createElement(Icon, { ...rest, icon: alertTypes[type].icon, color: alertTypes[type].color, fontSize: 20 }));
7163
+ Alert.Dismiss = ({ type, ...rest }) => /* @__PURE__ */ React16.createElement("div", { className: tw("h-[20px] col-start-3 row-start-1") }, /* @__PURE__ */ React16.createElement(Button.Icon, { ...rest, UNSAFE_className: tw("-m-2"), tooltip: "Dismiss", icon: import_cross2.default }));
7164
+ var Banner = ({
7165
+ children,
7166
+ className,
7167
+ type,
7168
+ ...rest
7169
+ }) => /* @__PURE__ */ React16.createElement(
7170
+ "div",
7171
+ {
7172
+ ...rest,
7173
+ role: type === "error" || type === "warning" ? "alert" : "status",
7174
+ className: classNames(
7175
+ tw("relative flex px-[60px] justify-center", {
7176
+ "bg-status-danger": type === "error",
7177
+ "bg-status-announcement": type === "information",
7178
+ "bg-status-success": type === "success",
7179
+ "bg-status-warning": type === "warning"
7180
+ }),
7181
+ className
7182
+ )
7183
+ },
7184
+ children
7185
+ );
7297
7186
  Alert.Banner = Banner;
7298
7187
  Alert.Banner.displayName = "Alert.Banner";
7299
- Banner.Content = (_a) => {
7300
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7301
- return /* @__PURE__ */ React16.createElement(
7302
- "div",
7303
- __spreadValues({
7304
- className: classNames(
7305
- tw("flex flex-row flex-wrap gap-x-3 items-center justify-center py-4 text-center z-10"),
7306
- className
7307
- )
7308
- }, props)
7309
- );
7310
- };
7188
+ Banner.Content = ({ className, ...props }) => /* @__PURE__ */ React16.createElement(
7189
+ "div",
7190
+ {
7191
+ className: classNames(
7192
+ tw("flex flex-row flex-wrap gap-x-3 items-center justify-center py-4 text-center z-10"),
7193
+ className
7194
+ ),
7195
+ ...props
7196
+ }
7197
+ );
7311
7198
  Banner.Content.displayName = "Alert.Banner.Content";
7312
- Banner.Dismiss = (_a) => {
7313
- var _b = _a, { type } = _b, rest = __objRest(_b, ["type"]);
7314
- return /* @__PURE__ */ React16.createElement("div", { className: tw("h-[20px] absolute right-4 top-[18px]") }, /* @__PURE__ */ React16.createElement(Button.Icon, __spreadProps(__spreadValues({}, rest), { UNSAFE_className: tw("-m-2"), tooltip: "Dismiss", icon: import_cross2.default })));
7315
- };
7199
+ Banner.Dismiss = ({ type, ...rest }) => /* @__PURE__ */ React16.createElement("div", { className: tw("h-[20px] absolute right-4 top-[18px]") }, /* @__PURE__ */ React16.createElement(Button.Icon, { ...rest, UNSAFE_className: tw("-m-2"), tooltip: "Dismiss", icon: import_cross2.default }));
7316
7200
  Banner.Dismiss.displayName = "Alert.Banner.Dismiss";
7317
7201
  var ILLUSTRATION_COLORS = {
7318
7202
  information: { stroke: tw("stroke-primary-muted"), fill: tw("fill-primary-10") },
@@ -7320,10 +7204,9 @@ var ILLUSTRATION_COLORS = {
7320
7204
  warning: { stroke: tw("stroke-warning-100"), fill: tw("fill-warning-20") },
7321
7205
  error: { stroke: tw("stroke-error-100"), fill: tw("fill-error-10") }
7322
7206
  };
7323
- var IllustrationLeft = (_a) => {
7324
- var _b = _a, { type } = _b, props = __objRest(_b, ["type"]);
7207
+ var IllustrationLeft = ({ type, ...props }) => {
7325
7208
  const clipPathId = useId();
7326
- return /* @__PURE__ */ React16.createElement("svg", __spreadValues({ xmlns: "http://www.w3.org/2000/svg", width: 120, height: 48, fill: "none" }, props), /* @__PURE__ */ React16.createElement("g", { clipPath: `url(#${clipPathId})` }, /* @__PURE__ */ React16.createElement(
7209
+ return /* @__PURE__ */ React16.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 120, height: 48, fill: "none", ...props }, /* @__PURE__ */ React16.createElement("g", { clipPath: `url(#${clipPathId})` }, /* @__PURE__ */ React16.createElement(
7327
7210
  "path",
7328
7211
  {
7329
7212
  className: ILLUSTRATION_COLORS[type].fill,
@@ -7340,10 +7223,9 @@ var IllustrationLeft = (_a) => {
7340
7223
  };
7341
7224
  Banner.IllustrationLeft = IllustrationLeft;
7342
7225
  Banner.IllustrationLeft.displayName = "Alert.Banner.IllustrationLeft";
7343
- var IllustrationRight = (_a) => {
7344
- var _b = _a, { type } = _b, props = __objRest(_b, ["type"]);
7226
+ var IllustrationRight = ({ type, ...props }) => {
7345
7227
  const clipPathId = useId();
7346
- return /* @__PURE__ */ React16.createElement("svg", __spreadValues({ xmlns: "http://www.w3.org/2000/svg", width: 120, height: 48, fill: "none" }, props), /* @__PURE__ */ React16.createElement("g", { clipPath: `url(#${clipPathId})` }, /* @__PURE__ */ React16.createElement(
7228
+ return /* @__PURE__ */ React16.createElement("svg", { xmlns: "http://www.w3.org/2000/svg", width: 120, height: 48, fill: "none", ...props }, /* @__PURE__ */ React16.createElement("g", { clipPath: `url(#${clipPathId})` }, /* @__PURE__ */ React16.createElement(
7347
7229
  "path",
7348
7230
  {
7349
7231
  className: ILLUSTRATION_COLORS[type].fill,
@@ -7363,221 +7245,137 @@ Banner.IllustrationRight.displayName = "Alert.Banner.IllustrationRight";
7363
7245
 
7364
7246
  // src/atoms/Banner/Banner.tsx
7365
7247
  import React17 from "react";
7366
- var Banner2 = (_a) => {
7367
- var _b = _a, {
7368
- children,
7369
- className,
7370
- layout,
7371
- variant
7372
- } = _b, rest = __objRest(_b, [
7373
- "children",
7374
- "className",
7375
- "layout",
7376
- "variant"
7377
- ]);
7378
- return /* @__PURE__ */ React17.createElement(
7379
- "div",
7380
- __spreadProps(__spreadValues({}, rest), {
7381
- className: classNames(
7382
- className,
7383
- tw(`rounded flex justify-between gap-7 flex-nowrap p-6`, {
7384
- "items-center": layout === "horizontal",
7385
- "bg-muted": variant === "default",
7386
- "bg-body border border-muted": variant === "outlined"
7387
- })
7388
- )
7389
- }),
7390
- children
7391
- );
7392
- };
7393
- Banner2.Title = (_a) => {
7394
- var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
7395
- return /* @__PURE__ */ React17.createElement(
7396
- Typography,
7397
- __spreadProps(__spreadValues({}, rest), {
7398
- variant: "subheading",
7399
- color: "intense",
7400
- className: classNames(
7401
- className,
7402
- tw({
7403
- "mb-3": layout === "vertical"
7404
- })
7405
- )
7406
- }),
7407
- children
7408
- );
7409
- };
7410
- Banner2.Description = (_a) => {
7411
- var _b = _a, { flexGrow, children, className } = _b, rest = __objRest(_b, ["flexGrow", "children", "className"]);
7412
- return /* @__PURE__ */ React17.createElement(Typography, __spreadProps(__spreadValues({}, rest), { variant: "default", className: classNames(className, tw({ "flex-grow": flexGrow })) }), children);
7413
- };
7414
- Banner2.ContentContainer = (_a) => {
7415
- var _b = _a, { layout, children, className } = _b, rest = __objRest(_b, ["layout", "children", "className"]);
7416
- return /* @__PURE__ */ React17.createElement(
7417
- "div",
7418
- __spreadProps(__spreadValues({}, rest), {
7419
- className: classNames(
7420
- className,
7421
- tw("flex w-full", {
7422
- "flex-col": layout === "vertical",
7423
- "flex-row flex-nowrap gap-7 items-center": layout === "horizontal"
7424
- })
7425
- )
7426
- }),
7427
- children
7428
- );
7429
- };
7430
- Banner2.ImageContainer = (_a) => {
7431
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
7432
- return /* @__PURE__ */ React17.createElement(Box, __spreadProps(__spreadValues({}, rest), { display: "inline-flex", alignItems: "center", margin: "-6", marginLeft: "0" }), children);
7433
- };
7434
- Banner2.Actions = (_a) => {
7435
- var _b = _a, { children, className, layout } = _b, rest = __objRest(_b, ["children", "className", "layout"]);
7436
- return /* @__PURE__ */ React17.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(className, tw("flex gap-4", { "mt-5": layout === "vertical" })) }), children);
7437
- };
7438
- Banner2.DismissContainer = (_a) => {
7439
- var _b = _a, { layout, children, className } = _b, rest = __objRest(_b, ["layout", "children", "className"]);
7440
- return /* @__PURE__ */ React17.createElement(
7441
- "div",
7442
- __spreadProps(__spreadValues({}, rest), {
7443
- className: classNames(
7444
- className,
7445
- tw({ "self-start": layout === "vertical", "self-center": layout === "horizontal" })
7446
- )
7447
- }),
7448
- children
7449
- );
7450
- };
7451
-
7452
- // src/atoms/Card/Card.tsx
7453
- import React20 from "react";
7454
- import { isNumber } from "lodash-es";
7455
-
7456
- // src/molecules/Typography/Typography.tsx
7457
- import React18 from "react";
7248
+ var Banner2 = ({
7249
+ children,
7250
+ className,
7251
+ layout,
7252
+ variant,
7253
+ ...rest
7254
+ }) => /* @__PURE__ */ React17.createElement(
7255
+ "div",
7256
+ {
7257
+ ...rest,
7258
+ className: classNames(
7259
+ className,
7260
+ tw(`rounded flex justify-between gap-7 flex-nowrap p-6`, {
7261
+ "items-center": layout === "horizontal",
7262
+ "bg-muted": variant === "default",
7263
+ "bg-body border border-muted": variant === "outlined"
7264
+ })
7265
+ )
7266
+ },
7267
+ children
7268
+ );
7269
+ Banner2.Title = ({ children, className, layout, ...rest }) => /* @__PURE__ */ React17.createElement(
7270
+ Typography,
7271
+ {
7272
+ ...rest,
7273
+ variant: "subheading",
7274
+ color: "intense",
7275
+ className: classNames(
7276
+ className,
7277
+ tw({
7278
+ "mb-3": layout === "vertical"
7279
+ })
7280
+ )
7281
+ },
7282
+ children
7283
+ );
7284
+ Banner2.Description = ({ flexGrow, children, className, ...rest }) => /* @__PURE__ */ React17.createElement(Typography, { ...rest, variant: "default", className: classNames(className, tw({ "flex-grow": flexGrow })) }, children);
7285
+ Banner2.ContentContainer = ({ layout, children, className, ...rest }) => /* @__PURE__ */ React17.createElement(
7286
+ "div",
7287
+ {
7288
+ ...rest,
7289
+ className: classNames(
7290
+ className,
7291
+ tw("flex w-full", {
7292
+ "flex-col": layout === "vertical",
7293
+ "flex-row flex-nowrap gap-7 items-center": layout === "horizontal"
7294
+ })
7295
+ )
7296
+ },
7297
+ children
7298
+ );
7299
+ Banner2.ImageContainer = ({ children, ...rest }) => /* @__PURE__ */ React17.createElement(Box, { ...rest, display: "inline-flex", alignItems: "center", margin: "-6", marginLeft: "0" }, children);
7300
+ Banner2.Actions = ({ children, className, layout, ...rest }) => /* @__PURE__ */ React17.createElement("div", { ...rest, className: classNames(className, tw("flex gap-4", { "mt-5": layout === "vertical" })) }, children);
7301
+ Banner2.DismissContainer = ({ layout, children, className, ...rest }) => /* @__PURE__ */ React17.createElement(
7302
+ "div",
7303
+ {
7304
+ ...rest,
7305
+ className: classNames(
7306
+ className,
7307
+ tw({ "self-start": layout === "vertical", "self-center": layout === "horizontal" })
7308
+ )
7309
+ },
7310
+ children
7311
+ );
7312
+
7313
+ // src/atoms/Card/Card.tsx
7314
+ import React20 from "react";
7315
+ import { isNumber } from "lodash-es";
7316
+
7317
+ // src/molecules/Typography/Typography.tsx
7318
+ import React18 from "react";
7458
7319
  import classNames4 from "classnames";
7459
- var Typography2 = (props) => /* @__PURE__ */ React18.createElement(Typography, __spreadValues({}, props));
7320
+ var Typography2 = (props) => /* @__PURE__ */ React18.createElement(Typography, { ...props });
7460
7321
  Typography2.displayName = "Typography";
7461
- Typography2.LargeHeading = (_a) => {
7462
- var _b = _a, { htmlTag = "h1" } = _b, props = __objRest(_b, ["htmlTag"]);
7463
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "large-heading" }));
7464
- };
7322
+ Typography2.LargeHeading = ({ htmlTag = "h1", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "large-heading" });
7465
7323
  Typography2.LargeHeading.displayName = "Typography.LargeHeading";
7466
- Typography2.Heading = (_a) => {
7467
- var _b = _a, { htmlTag = "h1", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
7468
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "heading" }));
7469
- };
7324
+ Typography2.Heading = ({ htmlTag = "h1", fontWeight, ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "heading" });
7470
7325
  Typography2.Heading.displayName = "Typography.Heading";
7471
- Typography2.Subheading = (_a) => {
7472
- var _b = _a, { htmlTag = "h2", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
7473
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "subheading" }));
7474
- };
7326
+ Typography2.Subheading = ({ htmlTag = "h2", fontWeight, ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "subheading" });
7475
7327
  Typography2.Subheading.displayName = "Typography.Subheading";
7476
- Typography2.LargeStrong = (_a) => {
7477
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7478
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "large-strong" }));
7479
- };
7328
+ Typography2.LargeStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "large-strong" });
7480
7329
  Typography2.LargeStrong.displayName = "Typography.LargeStrong";
7481
- Typography2.Large = (_a) => {
7482
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7483
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "large" }));
7484
- };
7330
+ Typography2.Large = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "large" });
7485
7331
  Typography2.Large.displayName = "Typography.Large";
7486
- Typography2.DefaultStrong = (_a) => {
7487
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7488
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "default-strong" }));
7489
- };
7332
+ Typography2.DefaultStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "default-strong" });
7490
7333
  Typography2.DefaultStrong.displayName = "Typography.DefaultStrong";
7491
- Typography2.Default = (_a) => {
7492
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7493
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "default" }));
7494
- };
7334
+ Typography2.Default = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "default" });
7495
7335
  Typography2.Default.displayName = "Typography.Default";
7496
- Typography2.Paragraph = (_a) => {
7497
- var _b = _a, { htmlTag = "p", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
7498
- return /* @__PURE__ */ React18.createElement(Typography2.Default, __spreadProps(__spreadValues({}, props), { htmlTag }));
7499
- };
7336
+ Typography2.Paragraph = ({ htmlTag = "p", fontWeight, ...props }) => /* @__PURE__ */ React18.createElement(Typography2.Default, { ...props, htmlTag });
7500
7337
  Typography2.P = Typography2.Paragraph;
7501
7338
  Typography2.Paragraph.displayName = "Typography.Paragraph";
7502
- Typography2.Small = (_a) => {
7503
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7504
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "small" }));
7505
- };
7339
+ Typography2.Small = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "small" });
7506
7340
  Typography2.Small.displayName = "Typography.Small";
7507
- Typography2.SmallStrong = (_a) => {
7508
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7509
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "small-strong" }));
7510
- };
7341
+ Typography2.SmallStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "small-strong" });
7511
7342
  Typography2.SmallStrong.displayName = "Typography.SmallStrong";
7512
- Typography2.Strong = (_a) => {
7513
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
7514
- return /* @__PURE__ */ React18.createElement("strong", __spreadValues({ className: classNames4(tw("font-semibold"), className) }, props));
7515
- };
7343
+ Typography2.Strong = ({ className, ...props }) => /* @__PURE__ */ React18.createElement("strong", { className: classNames4(tw("font-semibold"), className), ...props });
7516
7344
  Typography2.Strong.displayName = "Typography.Strong";
7517
- Typography2.Caption = (_a) => {
7518
- var _b = _a, { htmlTag = "div", fontWeight } = _b, props = __objRest(_b, ["htmlTag", "fontWeight"]);
7519
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "caption" }));
7520
- };
7345
+ Typography2.Caption = ({ htmlTag = "div", fontWeight, ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "caption" });
7521
7346
  Typography2.Caption.displayName = "Typography.Caption";
7522
- Typography2.Code = (_a) => {
7523
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7524
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "code" }));
7525
- };
7347
+ Typography2.Code = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "code" });
7526
7348
  Typography2.Code.displayName = "Typography.Code";
7527
- Typography2.CodeStrong = (_a) => {
7528
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7529
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "code-strong" }));
7530
- };
7349
+ Typography2.CodeStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "code-strong" });
7531
7350
  Typography2.CodeStrong.displayName = "Typography.CodeStrong";
7532
- Typography2.CodeSmall = (_a) => {
7533
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7534
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "code-small" }));
7535
- };
7351
+ Typography2.CodeSmall = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "code-small" });
7536
7352
  Typography2.CodeSmall.displayName = "Typography.Code";
7537
- Typography2.CodeSmallStrong = (_a) => {
7538
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7539
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "code-small-strong" }));
7540
- };
7353
+ Typography2.CodeSmallStrong = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "code-small-strong" });
7541
7354
  Typography2.CodeSmallStrong.displayName = "Typography.CodeSmallStrong";
7542
- Typography2.LargeText = (_a) => {
7543
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7544
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "large-strong" }));
7545
- };
7355
+ Typography2.LargeText = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "large-strong" });
7546
7356
  Typography2.LargeText.displayName = "Typography.LargeText";
7547
- Typography2.MediumText = (_a) => {
7548
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7549
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "default-strong" }));
7550
- };
7357
+ Typography2.MediumText = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "default-strong" });
7551
7358
  Typography2.MediumText.displayName = "Typography.MediumText";
7552
- Typography2.Text = (_a) => {
7553
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7554
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "default" }));
7555
- };
7359
+ Typography2.Text = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "default" });
7556
7360
  Typography2.Text.displayName = "Typography.Text";
7557
- Typography2.SmallText = (_a) => {
7558
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7559
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "small" }));
7560
- };
7361
+ Typography2.SmallText = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "small" });
7561
7362
  Typography2.SmallText.displayName = "Typography.SmallText";
7562
- Typography2.SmallTextBold = (_a) => {
7563
- var _b = _a, { htmlTag = "div" } = _b, props = __objRest(_b, ["htmlTag"]);
7564
- return /* @__PURE__ */ React18.createElement(Typography, __spreadProps(__spreadValues({}, props), { htmlTag, variant: "small-strong" }));
7565
- };
7363
+ Typography2.SmallTextBold = ({ htmlTag = "div", ...props }) => /* @__PURE__ */ React18.createElement(Typography, { ...props, htmlTag, variant: "small-strong" });
7566
7364
  Typography2.SmallTextBold.displayName = "Typography.SmallTextBold";
7567
7365
 
7568
7366
  // src/atoms/LineClamp/LineClamp.tsx
7569
7367
  import React19 from "react";
7570
7368
  var LineClamp = React19.forwardRef(
7571
- (_a, ref) => {
7572
- var _b = _a, { lines = 1, clamped = true, children, className, wordBreak = "break-words" } = _b, props = __objRest(_b, ["lines", "clamped", "children", "className", "wordBreak"]);
7369
+ ({ lines = 1, clamped = true, children, className, wordBreak = "break-words", ...props }, ref) => {
7573
7370
  return /* @__PURE__ */ React19.createElement(
7574
7371
  "div",
7575
- __spreadValues({
7372
+ {
7576
7373
  ref,
7577
7374
  className: classNames(className, wordBreak === "break-words" ? "break-words" : "break-all", {
7578
7375
  [`line-clamp-${lines}`]: clamped
7579
- })
7580
- }, props),
7376
+ }),
7377
+ ...props
7378
+ },
7581
7379
  children
7582
7380
  );
7583
7381
  }
@@ -7595,7 +7393,7 @@ var getCommonCardStyles = ({
7595
7393
  "bg-muted cursor-not-allowed focus:border-transparent opacity-50": disabled
7596
7394
  });
7597
7395
  var Card = React20.forwardRef((props, ref) => {
7598
- const _a = props, {
7396
+ const {
7599
7397
  disabled = false,
7600
7398
  clickable: _clickable,
7601
7399
  className,
@@ -7603,24 +7401,16 @@ var Card = React20.forwardRef((props, ref) => {
7603
7401
  role = _clickable ? "button" : void 0,
7604
7402
  modality,
7605
7403
  enableMinWidth,
7606
- fullWidth
7607
- } = _a, rest = __objRest(_a, [
7608
- "disabled",
7609
- "clickable",
7610
- "className",
7611
- "children",
7612
- "role",
7613
- "modality",
7614
- "enableMinWidth",
7615
- "fullWidth"
7616
- ]);
7404
+ fullWidth,
7405
+ ...rest
7406
+ } = props;
7617
7407
  const clickable = Boolean(role !== void 0 && !disabled);
7618
7408
  return /* @__PURE__ */ React20.createElement(
7619
7409
  "div",
7620
- __spreadProps(__spreadValues({
7410
+ {
7621
7411
  ref,
7622
- role
7623
- }, rest), {
7412
+ role,
7413
+ ...rest,
7624
7414
  className: classNames(
7625
7415
  getCommonCardStyles(props),
7626
7416
  tw({
@@ -7629,15 +7419,16 @@ var Card = React20.forwardRef((props, ref) => {
7629
7419
  }),
7630
7420
  className
7631
7421
  )
7632
- }),
7422
+ },
7633
7423
  children
7634
7424
  );
7635
7425
  });
7636
7426
  var Label = (props) => {
7637
- const _a = props, { className, checked = false, children, modality, enableMinWidth, fullWidth, disabled } = _a, rest = __objRest(_a, ["className", "checked", "children", "modality", "enableMinWidth", "fullWidth", "disabled"]);
7427
+ const { className, checked = false, children, modality, enableMinWidth, fullWidth, disabled, ...rest } = props;
7638
7428
  return /* @__PURE__ */ React20.createElement(
7639
7429
  "label",
7640
- __spreadProps(__spreadValues({}, rest), {
7430
+ {
7431
+ ...rest,
7641
7432
  className: classNames(
7642
7433
  getCommonCardStyles(props),
7643
7434
  tw({
@@ -7647,40 +7438,34 @@ var Label = (props) => {
7647
7438
  }),
7648
7439
  className
7649
7440
  )
7650
- }),
7441
+ },
7651
7442
  children
7652
7443
  );
7653
7444
  };
7654
- var ColorHighlight = (_a) => {
7655
- var _b = _a, {
7656
- color,
7657
- className
7658
- } = _b, rest = __objRest(_b, [
7659
- "color",
7660
- "className"
7661
- ]);
7662
- return /* @__PURE__ */ React20.createElement(
7663
- Box,
7664
- __spreadProps(__spreadValues({}, rest), {
7665
- backgroundColor: color,
7666
- className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
7667
- })
7668
- );
7669
- };
7670
- var ImageContainer = (_a) => {
7671
- var _b = _a, { className, fullSize } = _b, rest = __objRest(_b, ["className", "fullSize"]);
7672
- return /* @__PURE__ */ React20.createElement(
7673
- "div",
7674
- __spreadProps(__spreadValues({}, rest), {
7675
- className: classNames(
7676
- tw("-mx-4", {
7677
- "-mt-4": Boolean(fullSize)
7678
- }),
7679
- className
7680
- )
7681
- })
7682
- );
7683
- };
7445
+ var ColorHighlight = ({
7446
+ color,
7447
+ className,
7448
+ ...rest
7449
+ }) => /* @__PURE__ */ React20.createElement(
7450
+ Box,
7451
+ {
7452
+ ...rest,
7453
+ backgroundColor: color,
7454
+ className: classNames(tw("h-1 w-full absolute top-0 left-0 right-0"), className)
7455
+ }
7456
+ );
7457
+ var ImageContainer = ({ className, fullSize, ...rest }) => /* @__PURE__ */ React20.createElement(
7458
+ "div",
7459
+ {
7460
+ ...rest,
7461
+ className: classNames(
7462
+ tw("-mx-4", {
7463
+ "-mt-4": Boolean(fullSize)
7464
+ }),
7465
+ className
7466
+ )
7467
+ }
7468
+ );
7684
7469
  var classes = "w-full bg-cover object-cover";
7685
7470
  var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__ */ React20.createElement(
7686
7471
  "img",
@@ -7694,15 +7479,9 @@ var Image = ({ image, imageAlt, fullSize = false, imageHeight }) => /* @__PURE__
7694
7479
  style: { height: isNumber(imageHeight) ? `${imageHeight}px` : imageHeight }
7695
7480
  }
7696
7481
  );
7697
- var Title = (props) => /* @__PURE__ */ React20.createElement(Box.Flex, __spreadValues({ component: "div", alignItems: "center", gap: "2" }, props));
7698
- var Content = (_a) => {
7699
- var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
7700
- return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("flex flex-col", { "gap-4": !dense }), className) }));
7701
- };
7702
- var Actions = (_a) => {
7703
- var _b = _a, { className, dense } = _b, rest = __objRest(_b, ["className", "dense"]);
7704
- return /* @__PURE__ */ React20.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("flex gap-3 items-center", { "pt-3 ": !dense }), className) }));
7705
- };
7482
+ var Title = (props) => /* @__PURE__ */ React20.createElement(Box.Flex, { component: "div", alignItems: "center", gap: "2", ...props });
7483
+ var Content = ({ className, dense, ...rest }) => /* @__PURE__ */ React20.createElement("div", { ...rest, className: classNames(tw("flex flex-col", { "gap-4": !dense }), className) });
7484
+ var Actions = ({ className, dense, ...rest }) => /* @__PURE__ */ React20.createElement("div", { ...rest, className: classNames(tw("flex gap-3 items-center", { "pt-3 ": !dense }), className) });
7706
7485
  Card.Label = Label;
7707
7486
  Card.Title = Title;
7708
7487
  Card.Content = Content;
@@ -7735,77 +7514,73 @@ import React21 from "react";
7735
7514
  var import_minus2 = __toESM(require_minus());
7736
7515
  var import_tick2 = __toESM(require_tick());
7737
7516
  var Checkbox = React21.forwardRef(
7738
- (_a, ref) => {
7739
- var _b = _a, { id, children, name, disabled = false, readOnly = false, indeterminate = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly", "indeterminate"]);
7740
- return /* @__PURE__ */ React21.createElement(
7741
- "span",
7517
+ ({ id, children, name, disabled = false, readOnly = false, indeterminate = false, ...props }, ref) => /* @__PURE__ */ React21.createElement(
7518
+ "span",
7519
+ {
7520
+ className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
7521
+ "hover:border-intense peer-checked:border-primary-default": !disabled,
7522
+ "border-muted": disabled
7523
+ })
7524
+ },
7525
+ /* @__PURE__ */ React21.createElement(
7526
+ "input",
7742
7527
  {
7743
- className: classNames(tw("inline-flex justify-center items-center self-center relative"), {
7744
- "hover:border-intense peer-checked:border-primary-default": !disabled,
7745
- "border-muted": disabled
7746
- })
7747
- },
7748
- /* @__PURE__ */ React21.createElement(
7749
- "input",
7750
- __spreadProps(__spreadValues({
7751
- id,
7752
- ref,
7753
- type: "checkbox",
7754
- name
7755
- }, props), {
7756
- className: classNames(
7757
- tw("peer appearance-none outline-none w-5 h-5 rounded-sm border border-transparent", {
7758
- "cursor-pointer checked:bg-primary-default": !disabled,
7759
- "cursor-not-allowed bg-muted checked:bg-primary-muted": disabled
7760
- })
7528
+ id,
7529
+ ref,
7530
+ type: "checkbox",
7531
+ name,
7532
+ ...props,
7533
+ className: classNames(
7534
+ tw("peer appearance-none outline-none w-5 h-5 rounded-sm border border-transparent", {
7535
+ "cursor-pointer checked:bg-primary-default": !disabled,
7536
+ "cursor-not-allowed bg-muted checked:bg-primary-muted": disabled
7537
+ })
7538
+ ),
7539
+ readOnly,
7540
+ disabled
7541
+ }
7542
+ ),
7543
+ /* @__PURE__ */ React21.createElement(
7544
+ Icon,
7545
+ {
7546
+ icon: indeterminate ? import_minus2.default : import_tick2.default,
7547
+ strokeWidth: "3px",
7548
+ className: classNames(
7549
+ tw(
7550
+ "absolute top-0 right-0",
7551
+ "pointer-events-none p-[2px] w-5 h-5",
7552
+ "text-transparent [&>path]:stroke-transparent [&>path]:stroke-[3px]",
7553
+ "rounded-sm border border-default peer-focus:border-info-default"
7761
7554
  ),
7762
- readOnly,
7763
- disabled
7764
- })
7765
- ),
7766
- /* @__PURE__ */ React21.createElement(
7767
- Icon,
7768
- {
7769
- icon: indeterminate ? import_minus2.default : import_tick2.default,
7770
- strokeWidth: "3px",
7771
- className: classNames(
7772
- tw(
7773
- "absolute top-0 right-0",
7774
- "pointer-events-none p-[2px] w-5 h-5",
7775
- "text-transparent [&>path]:stroke-transparent [&>path]:stroke-[3px]",
7776
- "rounded-sm border border-default peer-focus:border-info-default"
7777
- ),
7778
- {
7779
- "border-default peer-hover:border-intense peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-default": !disabled,
7780
- "border-muted peer-checked:text-primary-default peer-checked:[&>path]:stroke-primary-70 peer-checked:border-transparent": disabled
7781
- }
7782
- )
7783
- }
7784
- )
7785
- );
7786
- }
7555
+ // It seems that we can't combine peer selectors and use 'peer-checked:peer-disabled:bg-muted' style instead.
7556
+ {
7557
+ "border-default peer-hover:border-intense peer-checked:text-white peer-checked:[&>path]:stroke-white peer-checked:border-primary-default": !disabled,
7558
+ "border-muted peer-checked:text-primary-default peer-checked:[&>path]:stroke-primary-70 peer-checked:border-transparent": disabled
7559
+ }
7560
+ )
7561
+ }
7562
+ )
7563
+ )
7787
7564
  );
7788
7565
 
7789
7566
  // src/atoms/Chip/Chip.tsx
7790
7567
  import React22 from "react";
7791
7568
  var Container = React22.forwardRef(
7792
- (_a, ref) => {
7793
- var _b = _a, { dense = false, className, children } = _b, rest = __objRest(_b, ["dense", "className", "children"]);
7794
- return /* @__PURE__ */ React22.createElement(
7795
- "span",
7796
- __spreadValues({
7797
- ref,
7798
- className: classNames(
7799
- tw("inline-flex items-center rounded-sm transition whitespace-nowrap", {
7800
- "typography-small py-2 px-3 gap-x-3 leading-tight": !dense,
7801
- "typography-caption py-1 px-2 gap-x-2": dense
7802
- }),
7803
- className
7804
- )
7805
- }, rest),
7806
- children
7807
- );
7808
- }
7569
+ ({ dense = false, className, children, ...rest }, ref) => /* @__PURE__ */ React22.createElement(
7570
+ "span",
7571
+ {
7572
+ ref,
7573
+ className: classNames(
7574
+ tw("inline-flex items-center rounded-sm transition whitespace-nowrap", {
7575
+ "typography-small py-2 px-3 gap-x-3 leading-tight": !dense,
7576
+ "typography-caption py-1 px-2 gap-x-2": dense
7577
+ }),
7578
+ className
7579
+ ),
7580
+ ...rest
7581
+ },
7582
+ children
7583
+ )
7809
7584
  );
7810
7585
  var Chip = {
7811
7586
  Container
@@ -7820,32 +7595,29 @@ import React24 from "react";
7820
7595
  // src/atoms/RadioButton/RadioButton.tsx
7821
7596
  import React23 from "react";
7822
7597
  var RadioButton = React23.forwardRef(
7823
- (_a, ref) => {
7824
- var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
7825
- return /* @__PURE__ */ React23.createElement(
7826
- "input",
7827
- __spreadProps(__spreadValues({
7828
- id,
7829
- ref,
7830
- type: "radio",
7831
- name
7832
- }, props), {
7833
- className: classNames(
7834
- tw(
7835
- "inline-flex justify-center items-center self-center appearance-none",
7836
- "w-5 h-5 p-[3px] rounded-full border border-default",
7837
- "outline-none focus:border-info-default checked:bg-primary-default checked:shadow-bodyInset",
7838
- {
7839
- "cursor-pointer hover:border-intense checked:border-primary-default": !disabled,
7840
- "cursor-not-allowed border-muted bg-muted checked:bg-primary-muted checked:border-transparent": disabled
7841
- }
7842
- )
7843
- ),
7844
- readOnly,
7845
- disabled
7846
- })
7847
- );
7848
- }
7598
+ ({ id, children, name, disabled = false, readOnly = false, ...props }, ref) => /* @__PURE__ */ React23.createElement(
7599
+ "input",
7600
+ {
7601
+ id,
7602
+ ref,
7603
+ type: "radio",
7604
+ name,
7605
+ ...props,
7606
+ className: classNames(
7607
+ tw(
7608
+ "inline-flex justify-center items-center self-center appearance-none",
7609
+ "w-5 h-5 p-[3px] rounded-full border border-default",
7610
+ "outline-none focus:border-info-default checked:bg-primary-default checked:shadow-bodyInset",
7611
+ {
7612
+ "cursor-pointer hover:border-intense checked:border-primary-default": !disabled,
7613
+ "cursor-not-allowed border-muted bg-muted checked:bg-primary-muted checked:border-transparent": disabled
7614
+ }
7615
+ )
7616
+ ),
7617
+ readOnly,
7618
+ disabled
7619
+ }
7620
+ )
7849
7621
  );
7850
7622
 
7851
7623
  // src/atoms/Table/Table.tsx
@@ -7853,31 +7625,23 @@ var import_chevronDown3 = __toESM(require_chevronDown());
7853
7625
  var import_chevronUp2 = __toESM(require_chevronUp());
7854
7626
  var HeadContext = React24.createContext(null);
7855
7627
  var tableClassNames = tw("w-full relative typography-default border-spacing-0 border-separate");
7856
- var Table = (_a) => {
7857
- var _b = _a, { children, ariaLabel, className } = _b, rest = __objRest(_b, ["children", "ariaLabel", "className"]);
7858
- return /* @__PURE__ */ React24.createElement("table", __spreadProps(__spreadValues({}, rest), { className: classNames(tableClassNames, className), "aria-label": ariaLabel }), children);
7859
- };
7860
- var TableHead = (_a) => {
7861
- var _b = _a, { children, sticky } = _b, rest = __objRest(_b, ["children", "sticky"]);
7862
- return /* @__PURE__ */ React24.createElement("thead", __spreadValues({}, rest), /* @__PURE__ */ React24.createElement("tr", null, /* @__PURE__ */ React24.createElement(HeadContext.Provider, { value: { children, sticky } }, children)));
7863
- };
7864
- var TableBody = (_a) => {
7865
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
7866
- return /* @__PURE__ */ React24.createElement("tbody", __spreadValues({}, rest), children);
7628
+ var Table = ({ children, ariaLabel, className, ...rest }) => {
7629
+ return /* @__PURE__ */ React24.createElement("table", { ...rest, className: classNames(tableClassNames, className), "aria-label": ariaLabel }, children);
7867
7630
  };
7631
+ var TableHead = ({ children, sticky, ...rest }) => /* @__PURE__ */ React24.createElement("thead", { ...rest }, /* @__PURE__ */ React24.createElement("tr", null, /* @__PURE__ */ React24.createElement(HeadContext.Provider, { value: { children, sticky } }, children)));
7632
+ var TableBody = ({ children, ...rest }) => /* @__PURE__ */ React24.createElement("tbody", { ...rest }, children);
7868
7633
  var rowClassNames = tw("children:border-default group children:last:border-b-0 hover:bg-muted");
7869
- var TableRow = (_a) => {
7870
- var _b = _a, { children, className, disabled } = _b, rest = __objRest(_b, ["children", "className", "disabled"]);
7871
- return /* @__PURE__ */ React24.createElement(
7872
- "tr",
7873
- __spreadProps(__spreadValues(__spreadValues({}, rest), { inert: disabled ? "" : void 0 }), {
7874
- className: classNames(rowClassNames, className, {
7875
- "opacity-70": disabled
7876
- })
7877
- }),
7878
- children
7879
- );
7880
- };
7634
+ var TableRow = ({ children, className, disabled, ...rest }) => /* @__PURE__ */ React24.createElement(
7635
+ "tr",
7636
+ {
7637
+ ...rest,
7638
+ ...{ inert: disabled ? "" : void 0 },
7639
+ className: classNames(rowClassNames, className, {
7640
+ "opacity-70": disabled
7641
+ })
7642
+ },
7643
+ children
7644
+ );
7881
7645
  var cellClassNames = tw("px-4 border-b typography-small leading-[18px]");
7882
7646
  var getBodyCellClassNames = (table = true, stickyColumn) => tw("text-default py-3", {
7883
7647
  "h-[50px]": table,
@@ -7900,12 +7664,12 @@ var getHeadCellClassNames = (sticky = true, stickyColumn) => {
7900
7664
  ) : common;
7901
7665
  };
7902
7666
  var TableCell = React24.forwardRef(
7903
- (_a, ref) => {
7904
- var _b = _a, { children, className, stickyColumn, align = "left" } = _b, rest = __objRest(_b, ["children", "className", "stickyColumn", "align"]);
7667
+ ({ children, className, stickyColumn, align = "left", ...rest }, ref) => {
7905
7668
  const headContext = React24.useContext(HeadContext);
7906
7669
  return headContext ? /* @__PURE__ */ React24.createElement(
7907
7670
  "th",
7908
- __spreadProps(__spreadValues({}, rest), {
7671
+ {
7672
+ ...rest,
7909
7673
  ref,
7910
7674
  className: classNames(
7911
7675
  cellClassNames,
@@ -7913,11 +7677,12 @@ var TableCell = React24.forwardRef(
7913
7677
  getAlignClassNames(align),
7914
7678
  className
7915
7679
  )
7916
- }),
7680
+ },
7917
7681
  children
7918
7682
  ) : /* @__PURE__ */ React24.createElement(
7919
7683
  "td",
7920
- __spreadProps(__spreadValues({}, rest), {
7684
+ {
7685
+ ...rest,
7921
7686
  ref,
7922
7687
  className: classNames(
7923
7688
  cellClassNames,
@@ -7925,37 +7690,33 @@ var TableCell = React24.forwardRef(
7925
7690
  getAlignClassNames(align),
7926
7691
  className
7927
7692
  )
7928
- }),
7693
+ },
7929
7694
  children
7930
7695
  );
7931
7696
  }
7932
7697
  );
7933
- var TableSelectCell = (_a) => {
7934
- var _b = _a, { ariaLabel } = _b, props = __objRest(_b, ["ariaLabel"]);
7935
- return /* @__PURE__ */ React24.createElement(Table.Cell, { className: tw("leading-[0px]") }, props.type === "radio" ? /* @__PURE__ */ React24.createElement(RadioButton, __spreadValues({ "aria-label": ariaLabel }, props)) : /* @__PURE__ */ React24.createElement(Checkbox, __spreadValues({ "aria-label": ariaLabel }, props)));
7698
+ var TableSelectCell = ({ ariaLabel, ...props }) => {
7699
+ return /* @__PURE__ */ React24.createElement(Table.Cell, { className: tw("leading-[0px]") }, props.type === "radio" ? /* @__PURE__ */ React24.createElement(RadioButton, { "aria-label": ariaLabel, ...props }) : /* @__PURE__ */ React24.createElement(Checkbox, { "aria-label": ariaLabel, ...props }));
7936
7700
  };
7937
7701
  var getSortCellButtonClassNames = (align) => tw("group flex items-center gap-x-4 text-muted", { "flex-row-reverse": align === "right" });
7938
7702
  var getSortCellIconClassNames = (active) => {
7939
7703
  return tw("text-[9px]", active ? "text-default" : "text-inactive");
7940
7704
  };
7941
7705
  var TableSortCell = React24.forwardRef(
7942
- (_a, ref) => {
7943
- var _b = _a, { children, direction = "none", onClick } = _b, rest = __objRest(_b, ["children", "direction", "onClick"]);
7944
- return /* @__PURE__ */ React24.createElement(Table.Cell, __spreadProps(__spreadValues({}, rest), { "aria-sort": direction, ref }), /* @__PURE__ */ React24.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ React24.createElement(
7945
- "div",
7946
- {
7947
- "data-sort-icons": true,
7948
- className: tw("flex flex-col", {
7949
- "invisible group-hover:visible": direction === "none"
7950
- })
7951
- },
7952
- /* @__PURE__ */ React24.createElement(InlineIcon, { icon: import_chevronUp2.default, className: getSortCellIconClassNames(direction === "ascending") }),
7953
- /* @__PURE__ */ React24.createElement(InlineIcon, { icon: import_chevronDown3.default, className: getSortCellIconClassNames(direction === "descending") })
7954
- )));
7955
- }
7706
+ ({ children, direction = "none", onClick, ...rest }, ref) => /* @__PURE__ */ React24.createElement(Table.Cell, { ...rest, "aria-sort": direction, ref }, /* @__PURE__ */ React24.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ React24.createElement(
7707
+ "div",
7708
+ {
7709
+ "data-sort-icons": true,
7710
+ className: tw("flex flex-col", {
7711
+ "invisible group-hover:visible": direction === "none"
7712
+ })
7713
+ },
7714
+ /* @__PURE__ */ React24.createElement(InlineIcon, { icon: import_chevronUp2.default, className: getSortCellIconClassNames(direction === "ascending") }),
7715
+ /* @__PURE__ */ React24.createElement(InlineIcon, { icon: import_chevronDown3.default, className: getSortCellIconClassNames(direction === "descending") })
7716
+ )))
7956
7717
  );
7957
7718
  var Caption = ({ children }) => /* @__PURE__ */ React24.createElement(Typography2.Caption, { htmlTag: "caption" }, children);
7958
- var Item = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React24.createElement("div", { className: tw("flex gap-4 items-center") }, image && /* @__PURE__ */ React24.createElement("img", { src: image, alt: imageAlt != null ? imageAlt : "", style: { width: imageSize, height: imageSize } }), /* @__PURE__ */ React24.createElement("div", null, title, caption && /* @__PURE__ */ React24.createElement(Typography2.Caption, null, caption)));
7719
+ var Item = ({ image, imageAlt, imageSize = 35, title, caption }) => /* @__PURE__ */ React24.createElement("div", { className: tw("flex gap-4 items-center") }, image && /* @__PURE__ */ React24.createElement("img", { src: image, alt: imageAlt ?? "", style: { width: imageSize, height: imageSize } }), /* @__PURE__ */ React24.createElement("div", null, title, caption && /* @__PURE__ */ React24.createElement(Typography2.Caption, null, caption)));
7959
7720
  Table.Head = React24.memo(TableHead);
7960
7721
  Table.Body = React24.memo(TableBody);
7961
7722
  Table.Row = React24.memo(TableRow);
@@ -7972,126 +7733,97 @@ var getAlignClassNames2 = (align) => tw("flex items-center", {
7972
7733
  "justify-center": align === "center",
7973
7734
  "justify-start": align === "left" || align === void 0
7974
7735
  });
7975
- var DataList = (_a) => {
7976
- var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
7977
- return /* @__PURE__ */ React25.createElement("div", __spreadValues({}, rest));
7978
- };
7979
- var TreeLine = (_a) => {
7980
- var _b = _a, { className, style, isLast } = _b, rest = __objRest(_b, ["className", "style", "isLast"]);
7981
- return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("flex justify-start h-full mx-4"), className) }), /* @__PURE__ */ React25.createElement(
7982
- "div",
7983
- {
7984
- className: tw("border-l border-default border-dashed flex-1", {
7985
- "h-full": !isLast,
7986
- "h-1/2": Boolean(isLast)
7987
- })
7988
- }
7989
- ), /* @__PURE__ */ React25.createElement("div", { className: tw("border-t border-default border-dashed self-center w-[18px]") }));
7990
- };
7991
- var HeadCell = (_a) => {
7992
- var _b = _a, {
7993
- className,
7994
- sticky,
7995
- align,
7996
- stickyColumn
7997
- } = _b, rest = __objRest(_b, [
7998
- "className",
7999
- "sticky",
8000
- "align",
8001
- "stickyColumn"
8002
- ]);
8003
- return /* @__PURE__ */ React25.createElement(
8004
- "div",
8005
- __spreadProps(__spreadValues({
8006
- role: "columnheader"
8007
- }, rest), {
8008
- className: classNames(
8009
- cellClassNames,
8010
- getHeadCellClassNames(sticky, stickyColumn),
8011
- getAlignClassNames2(align),
8012
- className
8013
- )
8014
- })
8015
- );
8016
- };
8017
- var Cell = (_a) => {
8018
- var _b = _a, {
8019
- className,
8020
- align,
8021
- stickyColumn
8022
- } = _b, rest = __objRest(_b, [
8023
- "className",
8024
- "align",
8025
- "stickyColumn"
8026
- ]);
8027
- return /* @__PURE__ */ React25.createElement(
8028
- "div",
8029
- __spreadProps(__spreadValues({}, rest), {
8030
- role: "cell",
8031
- className: classNames(
8032
- cellClassNames,
8033
- getBodyCellClassNames(false, stickyColumn),
8034
- getAlignClassNames2(align),
8035
- tw("border-default"),
8036
- className
8037
- )
7736
+ var DataList = ({ className, ...rest }) => /* @__PURE__ */ React25.createElement("div", { ...rest });
7737
+ var TreeLine = ({ className, style, isLast, ...rest }) => /* @__PURE__ */ React25.createElement("div", { ...rest, className: classNames(tw("flex justify-start h-full mx-4"), className) }, /* @__PURE__ */ React25.createElement(
7738
+ "div",
7739
+ {
7740
+ className: tw("border-l border-default border-dashed flex-1", {
7741
+ "h-full": !isLast,
7742
+ "h-1/2": Boolean(isLast)
8038
7743
  })
8039
- );
8040
- };
8041
- var Row = (_a) => {
8042
- var _b = _a, {
8043
- className,
8044
- disabled,
8045
- header,
8046
- isGroup,
8047
- active,
8048
- noDivider
8049
- } = _b, rest = __objRest(_b, [
8050
- "className",
8051
- "disabled",
8052
- "header",
8053
- "isGroup",
8054
- "active",
8055
- "noDivider"
8056
- ]);
7744
+ }
7745
+ ), /* @__PURE__ */ React25.createElement("div", { className: tw("border-t border-default border-dashed self-center w-[18px]") }));
7746
+ var HeadCell = ({
7747
+ className,
7748
+ sticky,
7749
+ align,
7750
+ stickyColumn,
7751
+ ...rest
7752
+ }) => /* @__PURE__ */ React25.createElement(
7753
+ "div",
7754
+ {
7755
+ role: "columnheader",
7756
+ ...rest,
7757
+ className: classNames(
7758
+ cellClassNames,
7759
+ getHeadCellClassNames(sticky, stickyColumn),
7760
+ getAlignClassNames2(align),
7761
+ className
7762
+ )
7763
+ }
7764
+ );
7765
+ var Cell = ({
7766
+ className,
7767
+ align,
7768
+ stickyColumn,
7769
+ ...rest
7770
+ }) => /* @__PURE__ */ React25.createElement(
7771
+ "div",
7772
+ {
7773
+ ...rest,
7774
+ role: "cell",
7775
+ className: classNames(
7776
+ cellClassNames,
7777
+ getBodyCellClassNames(false, stickyColumn),
7778
+ getAlignClassNames2(align),
7779
+ tw("border-default"),
7780
+ className
7781
+ )
7782
+ }
7783
+ );
7784
+ var Row = ({
7785
+ className,
7786
+ disabled,
7787
+ header,
7788
+ isGroup,
7789
+ active,
7790
+ noDivider,
7791
+ ...rest
7792
+ }) => {
8057
7793
  return /* @__PURE__ */ React25.createElement(
8058
7794
  "div",
8059
- __spreadProps(__spreadValues(__spreadProps(__spreadValues({}, rest), {
8060
- role: isGroup ? "rowgroup" : "row"
8061
- }), { inert: disabled ? "" : void 0 }), {
7795
+ {
7796
+ ...rest,
7797
+ role: isGroup ? "rowgroup" : "row",
7798
+ ...{ inert: disabled ? "" : void 0 },
8062
7799
  className: classNames(tw("contents"), className, {
8063
7800
  "[&>*]:border-b-transparent": noDivider,
8064
7801
  "children:opacity-70": disabled,
8065
7802
  "[&>*]:bg-primary-active": active,
8066
7803
  "[&>*]:hover:bg-muted": !disabled && !header
8067
7804
  })
8068
- })
7805
+ }
8069
7806
  );
8070
7807
  };
8071
- var SubGroupSpacing = (_a) => {
8072
- var _b = _a, { className, divider } = _b, rest = __objRest(_b, ["className", "divider"]);
8073
- return /* @__PURE__ */ React25.createElement(
8074
- "span",
8075
- __spreadProps(__spreadValues({}, rest), {
8076
- "aria-hidden": true,
8077
- className: classNames(tw("col-span-full h-6 bg-muted border-default", { "border-b": Boolean(divider) }), className)
7808
+ var SubGroupSpacing = ({ className, divider, ...rest }) => /* @__PURE__ */ React25.createElement(
7809
+ "span",
7810
+ {
7811
+ ...rest,
7812
+ "aria-hidden": true,
7813
+ className: classNames(tw("col-span-full h-6 bg-muted border-default", { "border-b": Boolean(divider) }), className)
7814
+ }
7815
+ );
7816
+ var SortCell = ({ children, direction = "none", onClick, sticky, ...rest }) => /* @__PURE__ */ React25.createElement(HeadCell, { ...rest, "aria-sort": direction, role: "columnheader", sticky }, /* @__PURE__ */ React25.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ React25.createElement(
7817
+ "div",
7818
+ {
7819
+ "data-sort-icons": true,
7820
+ className: tw("flex flex-col", {
7821
+ "invisible group-hover:visible": direction === "none"
8078
7822
  })
8079
- );
8080
- };
8081
- var SortCell = (_a) => {
8082
- var _b = _a, { children, direction = "none", onClick, sticky } = _b, rest = __objRest(_b, ["children", "direction", "onClick", "sticky"]);
8083
- return /* @__PURE__ */ React25.createElement(HeadCell, __spreadProps(__spreadValues({}, rest), { "aria-sort": direction, role: "columnheader", sticky }), /* @__PURE__ */ React25.createElement("span", { className: getSortCellButtonClassNames(rest.align), role: "button", tabIndex: -1, onClick }, children, /* @__PURE__ */ React25.createElement(
8084
- "div",
8085
- {
8086
- "data-sort-icons": true,
8087
- className: tw("flex flex-col", {
8088
- "invisible group-hover:visible": direction === "none"
8089
- })
8090
- },
8091
- /* @__PURE__ */ React25.createElement(InlineIcon, { icon: import_chevronUp3.default, className: getSortCellIconClassNames(direction === "ascending") }),
8092
- /* @__PURE__ */ React25.createElement(InlineIcon, { icon: import_chevronDown4.default, className: getSortCellIconClassNames(direction === "descending") })
8093
- )));
8094
- };
7823
+ },
7824
+ /* @__PURE__ */ React25.createElement(InlineIcon, { icon: import_chevronUp3.default, className: getSortCellIconClassNames(direction === "ascending") }),
7825
+ /* @__PURE__ */ React25.createElement(InlineIcon, { icon: import_chevronDown4.default, className: getSortCellIconClassNames(direction === "descending") })
7826
+ )));
8095
7827
  var EmptyGroup = ({ icon, children }) => /* @__PURE__ */ React25.createElement("div", { className: tw("flex gap-3 items-center") }, icon && /* @__PURE__ */ React25.createElement(Icon, { icon, width: 22 }), children);
8096
7828
  DataList.EmptyGroup = EmptyGroup;
8097
7829
  DataList.EmptyGroup.displayName = "DataList.EmptyGroup";
@@ -8107,42 +7839,31 @@ DataList.Row = Row;
8107
7839
  DataList.Row.displayName = "DataList.Row";
8108
7840
  DataList.TreeLine = TreeLine;
8109
7841
  DataList.TreeLine.displayName = "DataList.TreeLine";
8110
- var ToolbarContainer = (_a) => {
8111
- var _b = _a, { className, sticky = true } = _b, rest = __objRest(_b, ["className", "sticky"]);
8112
- return /* @__PURE__ */ React25.createElement(
8113
- "div",
8114
- __spreadProps(__spreadValues({}, rest), {
8115
- role: "row",
8116
- className: classNames(
8117
- tw("col-span-full flex items-stretch py-4 px-l2 border-b border-default", {
8118
- "sticky top-[47px] bg-body z-10": sticky
8119
- }),
8120
- className
8121
- )
8122
- })
8123
- );
8124
- };
7842
+ var ToolbarContainer = ({ className, sticky = true, ...rest }) => /* @__PURE__ */ React25.createElement(
7843
+ "div",
7844
+ {
7845
+ ...rest,
7846
+ role: "row",
7847
+ className: classNames(
7848
+ tw("col-span-full flex items-stretch py-4 px-l2 border-b border-default", {
7849
+ "sticky top-[47px] bg-body z-10": sticky
7850
+ }),
7851
+ className
7852
+ )
7853
+ }
7854
+ );
8125
7855
  ToolbarContainer.displayName = "DataList.Toolbar.Container";
8126
- var ToolbarGroup = (_a) => {
8127
- var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8128
- return /* @__PURE__ */ React25.createElement(
8129
- "div",
8130
- __spreadProps(__spreadValues({
8131
- role: "cell"
8132
- }, rest), {
8133
- className: classNames(tw("flex items-center px-l2 border-r-1 border-muted last:border-r-0"), className)
8134
- })
8135
- );
8136
- };
7856
+ var ToolbarGroup = ({ className, ...rest }) => /* @__PURE__ */ React25.createElement(
7857
+ "div",
7858
+ {
7859
+ role: "cell",
7860
+ ...rest,
7861
+ className: classNames(tw("flex items-center px-l2 border-r-1 border-muted last:border-r-0"), className)
7862
+ }
7863
+ );
8137
7864
  ToolbarGroup.displayName = "DataList.Toolbar.Group";
8138
- var ToolbarSelectionCount = (_a) => {
8139
- var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8140
- return /* @__PURE__ */ React25.createElement(Typography, __spreadValues({ variant: "small", color: "muted", className: classNames(tw("whitespace-nowrap"), className) }, rest));
8141
- };
8142
- var ToolbarActions = (_a) => {
8143
- var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8144
- return /* @__PURE__ */ React25.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("flex items-center gap-x-5"), className) }));
8145
- };
7865
+ var ToolbarSelectionCount = ({ className, ...rest }) => /* @__PURE__ */ React25.createElement(Typography, { variant: "small", color: "muted", className: classNames(tw("whitespace-nowrap"), className), ...rest });
7866
+ var ToolbarActions = ({ className, ...rest }) => /* @__PURE__ */ React25.createElement("div", { ...rest, className: classNames(tw("flex items-center gap-x-5"), className) });
8146
7867
  ToolbarActions.displayName = "DataList.Toolbar.Actions";
8147
7868
  DataList.Toolbar = {
8148
7869
  Container: ToolbarContainer,
@@ -8176,61 +7897,61 @@ import React28 from "react";
8176
7897
  // src/molecules/Badge/Badge.tsx
8177
7898
  import React27 from "react";
8178
7899
 
8179
- // src/molecules/Skeleton/Skeleton.tsx
7900
+ // src/atoms/Skeleton/Skeleton.tsx
8180
7901
  import React26 from "react";
8181
7902
  import { isNumber as isNumber2, isUndefined as isUndefined7 } from "lodash-es";
8182
- var Skeleton = (_a) => {
8183
- var _b = _a, {
8184
- width,
8185
- height,
8186
- display = "block",
8187
- className,
8188
- animate = true,
8189
- rounded = false,
8190
- style
8191
- } = _b, rest = __objRest(_b, [
8192
- "width",
8193
- "height",
8194
- "display",
8195
- "className",
8196
- "animate",
8197
- "rounded",
8198
- "style"
8199
- ]);
7903
+ import { tv } from "tailwind-variants";
7904
+ var skeletonStyles = tv({
7905
+ base: "bg-default",
7906
+ variants: {
7907
+ hasHeight: {
7908
+ false: "h-auto before:content-['_'] whitespace-pre origin-[0%_45%] scale-[0.55]"
7909
+ },
7910
+ display: {
7911
+ "block": "block",
7912
+ "inline-block": "inline-block"
7913
+ },
7914
+ rounded: {
7915
+ true: "rounded-full"
7916
+ },
7917
+ animate: {
7918
+ true: "animate-pulse"
7919
+ }
7920
+ }
7921
+ });
7922
+ var Skeleton = ({
7923
+ width,
7924
+ height,
7925
+ display = "block",
7926
+ className,
7927
+ animate = true,
7928
+ rounded = false,
7929
+ style,
7930
+ ...rest
7931
+ }) => {
8200
7932
  const styles = {
8201
7933
  width: isNumber2(width) ? `${width}px` : width,
8202
7934
  height: isNumber2(height) ? `${height}px` : height
8203
7935
  };
8204
- return /* @__PURE__ */ React26.createElement(
8205
- "div",
8206
- __spreadProps(__spreadValues({
8207
- "aria-label": "Loading..."
8208
- }, rest), {
8209
- style: __spreadValues(__spreadValues({}, styles), style),
8210
- role: "progressbar",
8211
- className: classNames(
8212
- "Aquarium-Skeleton",
8213
- tw("bg-default", {
8214
- "h-auto before:content-['_'] whitespace-pre origin-[0%_45%] scale-[0.55]": isUndefined7(height),
8215
- "rounded-full": rounded,
8216
- "block": display === "block",
8217
- "inline-block": display === "inline-block",
8218
- "animate-pulse": animate
8219
- }),
8220
- className
8221
- )
8222
- })
8223
- );
7936
+ const classes2 = skeletonStyles({
7937
+ hasHeight: !isUndefined7(height),
7938
+ display,
7939
+ rounded,
7940
+ animate,
7941
+ className: ["Aquarium-Skeleton", className]
7942
+ });
7943
+ return /* @__PURE__ */ React26.createElement("div", { "aria-label": "Loading...", ...rest, style: { ...styles, ...style }, role: "progressbar", className: classes2 });
8224
7944
  };
8225
7945
 
8226
7946
  // src/molecules/Badge/Badge.tsx
8227
7947
  var createBadge = (type, displayName) => {
8228
7948
  const Component = (props) => {
8229
- const _a = props, { kind = "filled", value, textClassname, dense = false, disabled = false } = _a, rest = __objRest(_a, ["kind", "value", "textClassname", "dense", "disabled"]);
7949
+ const { kind = "filled", value, textClassname, dense = false, disabled = false, ...rest } = props;
8230
7950
  const valueStr = value.toString();
8231
7951
  return /* @__PURE__ */ React27.createElement(
8232
7952
  "span",
8233
- __spreadProps(__spreadValues({}, rest), {
7953
+ {
7954
+ ...rest,
8234
7955
  className: classNames(
8235
7956
  tw("inline-block text-center", {
8236
7957
  "rounded-full": type === "default" || type === "chip",
@@ -8246,7 +7967,7 @@ var createBadge = (type, displayName) => {
8246
7967
  }),
8247
7968
  "Aquarium-Badge"
8248
7969
  )
8249
- }),
7970
+ },
8250
7971
  /* @__PURE__ */ React27.createElement(
8251
7972
  "span",
8252
7973
  {
@@ -8275,15 +7996,14 @@ var createBadge = (type, displayName) => {
8275
7996
  Component.Skeleton.displayName = `${displayName}.Skeleton`;
8276
7997
  return Component;
8277
7998
  };
8278
- var NotificationBadge = (_a) => {
8279
- var _b = _a, { children, top = "-2px", right = "-2px" } = _b, props = __objRest(_b, ["children", "top", "right"]);
8280
- return /* @__PURE__ */ React27.createElement("div", __spreadProps(__spreadValues({}, props), { className: classNames("Aquarium-Badge.Notification", tw("relative inline-flex text-default")) }), children, /* @__PURE__ */ React27.createElement("span", { style: { top, right }, className: tw("absolute rounded-full w-[6px] h-[6px] bg-danger-intense") }));
7999
+ var NotificationBadge = ({ children, top = "-2px", right = "-2px", ...props }) => {
8000
+ return /* @__PURE__ */ React27.createElement("div", { ...props, className: classNames("Aquarium-Badge.Notification", tw("relative inline-flex text-default")) }, children, /* @__PURE__ */ React27.createElement("span", { style: { top, right }, className: tw("absolute rounded-full w-[6px] h-[6px] bg-danger-intense") }));
8281
8001
  };
8282
- var DotBadge = (_a) => {
8283
- var _b = _a, { dense = false } = _b, props = __objRest(_b, ["dense"]);
8002
+ var DotBadge = ({ dense = false, ...props }) => {
8284
8003
  return /* @__PURE__ */ React27.createElement(
8285
8004
  "span",
8286
- __spreadProps(__spreadValues({}, props), {
8005
+ {
8006
+ ...props,
8287
8007
  className: classNames(
8288
8008
  "Aquarium-Badge.Dot",
8289
8009
  tw("rounded-full bg-current", {
@@ -8291,7 +8011,7 @@ var DotBadge = (_a) => {
8291
8011
  "w-[9px] h-[9px]": !dense
8292
8012
  })
8293
8013
  )
8294
- })
8014
+ }
8295
8015
  );
8296
8016
  };
8297
8017
  var Badge = createBadge("default", "Badge");
@@ -8306,81 +8026,68 @@ var ChipBadge = createBadge("chip", "ChipBadge");
8306
8026
  // src/atoms/DropdownMenu/DropdownMenu.tsx
8307
8027
  var import_tick3 = __toESM(require_tick());
8308
8028
  var DropdownMenu = React28.forwardRef(
8309
- (_a, ref) => {
8310
- var _b = _a, { minHeight, maxHeight = "100%", minWidth = "125px", maxWidth, className, children } = _b, props = __objRest(_b, ["minHeight", "maxHeight", "minWidth", "maxWidth", "className", "children"]);
8311
- return /* @__PURE__ */ React28.createElement(
8312
- "div",
8313
- __spreadValues({
8314
- ref,
8315
- style: { minHeight, maxHeight, minWidth, maxWidth },
8316
- className: classNames(
8317
- className,
8318
- "Aquarium-DropdownMenu.Menu bg-popover-content w-full flex flex-col overflow-x-hidden typography-small text-default"
8319
- )
8320
- }, props),
8321
- children
8322
- );
8323
- }
8029
+ ({ minHeight, maxHeight = "100%", minWidth = "125px", maxWidth, className, children, ...props }, ref) => /* @__PURE__ */ React28.createElement(
8030
+ "div",
8031
+ {
8032
+ ref,
8033
+ style: { minHeight, maxHeight, minWidth, maxWidth },
8034
+ className: classNames(
8035
+ className,
8036
+ "Aquarium-DropdownMenu.Menu bg-popover-content w-full flex flex-col overflow-x-hidden typography-small text-default"
8037
+ ),
8038
+ ...props
8039
+ },
8040
+ children
8041
+ )
8324
8042
  );
8325
8043
  var ContentContainer = ({ children }) => /* @__PURE__ */ React28.createElement("div", { className: tw("p-3 overflow-y-auto overflow-x-hidden") }, children);
8326
8044
  DropdownMenu.ContentContainer = ContentContainer;
8327
8045
  var List = React28.forwardRef(
8328
- (_a, ref) => {
8329
- var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
8330
- return /* @__PURE__ */ React28.createElement("ul", __spreadValues({ ref, className: classNames(className, "outline-none ring-0") }, props), children);
8331
- }
8046
+ ({ children, className, ...props }, ref) => /* @__PURE__ */ React28.createElement("ul", { ref, className: classNames(className, "outline-none ring-0"), ...props }, children)
8332
8047
  );
8333
8048
  DropdownMenu.List = List;
8334
8049
  var Group = React28.forwardRef(
8335
- (_a, ref) => {
8336
- var _b = _a, { className, title, titleProps, children } = _b, props = __objRest(_b, ["className", "title", "titleProps", "children"]);
8337
- return /* @__PURE__ */ React28.createElement("li", __spreadValues({ ref }, props), title && /* @__PURE__ */ React28.createElement(
8338
- "div",
8339
- __spreadValues({
8340
- className: classNames(
8341
- className,
8342
- "Aquarium-DropdownMenu.Group p-3 text-inactive uppercase cursor-default typography-caption"
8343
- )
8344
- }, titleProps),
8345
- title
8346
- ), children);
8347
- }
8050
+ ({ className, title, titleProps, children, ...props }, ref) => /* @__PURE__ */ React28.createElement("li", { ref, ...props }, title && /* @__PURE__ */ React28.createElement(
8051
+ "div",
8052
+ {
8053
+ className: classNames(
8054
+ className,
8055
+ "Aquarium-DropdownMenu.Group p-3 text-inactive uppercase cursor-default typography-caption"
8056
+ ),
8057
+ ...titleProps
8058
+ },
8059
+ title
8060
+ ), children)
8348
8061
  );
8349
8062
  DropdownMenu.Group = Group;
8350
8063
  var Item2 = React28.forwardRef(
8351
- (_a, ref) => {
8352
- var _b = _a, { kind, highlighted, selected, className, icon, showNotification = false, children } = _b, props = __objRest(_b, ["kind", "highlighted", "selected", "className", "icon", "showNotification", "children"]);
8353
- return /* @__PURE__ */ React28.createElement(
8354
- "li",
8355
- __spreadValues({
8356
- ref,
8357
- className: classNames(className, "Aquarium-DropdownMenu.Item flex items-center gap-x-3 p-3 outline-none", {
8358
- "cursor-pointer hover:bg-muted": !props.disabled,
8359
- "bg-muted": highlighted,
8360
- "text-primary-intense": kind === "action" && !props.disabled,
8361
- "text-danger-default": kind === "danger" && !props.disabled,
8362
- "text-inactive cursor-not-allowed": props.disabled
8363
- })
8364
- }, props),
8365
- icon && showNotification && /* @__PURE__ */ React28.createElement(Badge.Notification, null, /* @__PURE__ */ React28.createElement(InlineIcon, { icon })),
8366
- icon && !showNotification && /* @__PURE__ */ React28.createElement(InlineIcon, { icon }),
8367
- /* @__PURE__ */ React28.createElement("span", { className: tw("grow") }, children),
8368
- selected && /* @__PURE__ */ React28.createElement(InlineIcon, { icon: import_tick3.default })
8369
- );
8370
- }
8064
+ ({ kind, highlighted, selected, className, icon, showNotification = false, children, ...props }, ref) => /* @__PURE__ */ React28.createElement(
8065
+ "li",
8066
+ {
8067
+ ref,
8068
+ className: classNames(className, "Aquarium-DropdownMenu.Item flex items-center gap-x-3 p-3 outline-none", {
8069
+ "cursor-pointer hover:bg-muted": !props.disabled,
8070
+ "bg-muted": highlighted,
8071
+ "text-primary-intense": kind === "action" && !props.disabled,
8072
+ "text-danger-default": kind === "danger" && !props.disabled,
8073
+ "text-inactive cursor-not-allowed": props.disabled
8074
+ }),
8075
+ ...props
8076
+ },
8077
+ icon && showNotification && /* @__PURE__ */ React28.createElement(Badge.Notification, null, /* @__PURE__ */ React28.createElement(InlineIcon, { icon })),
8078
+ icon && !showNotification && /* @__PURE__ */ React28.createElement(InlineIcon, { icon }),
8079
+ /* @__PURE__ */ React28.createElement("span", { className: tw("grow") }, children),
8080
+ selected && /* @__PURE__ */ React28.createElement(InlineIcon, { icon: import_tick3.default })
8081
+ )
8371
8082
  );
8372
8083
  DropdownMenu.Item = Item2;
8373
8084
  var Description = ({ disabled, children }) => /* @__PURE__ */ React28.createElement(Typography2.Caption, { color: disabled ? "inactive" : "muted" }, children);
8374
8085
  DropdownMenu.Description = Description;
8375
- var Separator = (_a) => {
8376
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8377
- return /* @__PURE__ */ React28.createElement("li", __spreadProps(__spreadValues({}, props), { className: classNames(className, tw("m-3 block bg-default h-[1px]")) }));
8086
+ var Separator = ({ className, ...props }) => {
8087
+ return /* @__PURE__ */ React28.createElement("li", { ...props, className: classNames(className, tw("m-3 block bg-default h-[1px]")) });
8378
8088
  };
8379
8089
  DropdownMenu.Separator = Separator;
8380
- var EmptyStateContainer = (_a) => {
8381
- var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
8382
- return /* @__PURE__ */ React28.createElement("div", __spreadValues({ className: classNames(tw("border border-dashed border-default p-3"), className) }, props), children);
8383
- };
8090
+ var EmptyStateContainer = ({ className, children, ...props }) => /* @__PURE__ */ React28.createElement("div", { className: classNames(tw("border border-dashed border-default p-3"), className), ...props }, children);
8384
8091
  DropdownMenu.EmptyStateContainer = EmptyStateContainer;
8385
8092
 
8386
8093
  // src/atoms/InputGroup/InputGroup.tsx
@@ -8391,38 +8098,23 @@ import React29 from "react";
8391
8098
  import { isEmpty, mapValues, pick } from "lodash-es";
8392
8099
  var breakpoints = Object.keys(tokens_default.screens);
8393
8100
  var GridItem = Tailwindify(
8394
- (_a) => {
8395
- var _b = _a, {
8396
- htmlTag = "div",
8397
- ariaLabel,
8398
- className,
8399
- style,
8400
- children,
8401
- display,
8402
- justifySelf,
8403
- alignSelf,
8404
- placeSelf,
8405
- colStart,
8406
- colEnd,
8407
- rowSpan,
8408
- rowStart,
8409
- rowEnd
8410
- } = _b, props = __objRest(_b, [
8411
- "htmlTag",
8412
- "ariaLabel",
8413
- "className",
8414
- "style",
8415
- "children",
8416
- "display",
8417
- "justifySelf",
8418
- "alignSelf",
8419
- "placeSelf",
8420
- "colStart",
8421
- "colEnd",
8422
- "rowSpan",
8423
- "rowStart",
8424
- "rowEnd"
8425
- ]);
8101
+ ({
8102
+ htmlTag = "div",
8103
+ ariaLabel,
8104
+ className,
8105
+ style,
8106
+ children,
8107
+ display,
8108
+ justifySelf,
8109
+ alignSelf,
8110
+ placeSelf,
8111
+ colStart,
8112
+ colEnd,
8113
+ rowSpan,
8114
+ rowStart,
8115
+ rowEnd,
8116
+ ...props
8117
+ }) => {
8426
8118
  const breakPointableProperties = pick(props, breakpoints);
8427
8119
  const gridColumn = !isEmpty(breakPointableProperties) ? mapValues(breakPointableProperties, (value) => value === "full" ? "1 / -1" : value ? `span-${value}` : "auto") : void 0;
8428
8120
  const hookStyle = useStyle({
@@ -8441,7 +8133,7 @@ var GridItem = Tailwindify(
8441
8133
  return /* @__PURE__ */ React29.createElement(
8442
8134
  HtmlElement,
8443
8135
  {
8444
- style: __spreadValues(__spreadValues({}, hookStyle), style),
8136
+ style: { ...hookStyle, ...style },
8445
8137
  className,
8446
8138
  "aria-label": ariaLabel ? ariaLabel : void 0
8447
8139
  },
@@ -8450,7 +8142,7 @@ var GridItem = Tailwindify(
8450
8142
  }
8451
8143
  );
8452
8144
  var Grid = (props) => {
8453
- return /* @__PURE__ */ React29.createElement(GridComponent, __spreadValues({}, props));
8145
+ return /* @__PURE__ */ React29.createElement(GridComponent, { ...props });
8454
8146
  };
8455
8147
  var GridComponent = Tailwindify(
8456
8148
  ({
@@ -8508,7 +8200,7 @@ var GridComponent = Tailwindify(
8508
8200
  return /* @__PURE__ */ React29.createElement(
8509
8201
  HtmlElement,
8510
8202
  {
8511
- style: __spreadValues(__spreadValues({}, hookStyle), style),
8203
+ style: { ...hookStyle, ...style },
8512
8204
  className,
8513
8205
  "aria-label": ariaLabel ? ariaLabel : void 0
8514
8206
  },
@@ -8527,32 +8219,29 @@ var gridColumnStyles = {
8527
8219
  "3": "grid-cols-3",
8528
8220
  "auto": "auto-cols-fr"
8529
8221
  };
8530
- var InputGroup = (_a) => {
8531
- var _b = _a, { cols = "1", children } = _b, rest = __objRest(_b, ["cols", "children"]);
8222
+ var InputGroup = ({ cols = "1", children, ...rest }) => {
8532
8223
  return /* @__PURE__ */ React30.createElement(
8533
8224
  Grid,
8534
- __spreadProps(__spreadValues({}, rest), {
8225
+ {
8226
+ ...rest,
8535
8227
  display: "inline-grid",
8536
8228
  colGap: "l4",
8537
8229
  rowGap: "3",
8538
8230
  cols: cols !== "auto" ? cols : void 0,
8539
8231
  className: gridColumnStyles[cols]
8540
- }),
8232
+ },
8541
8233
  children
8542
8234
  );
8543
8235
  };
8544
8236
 
8545
8237
  // src/atoms/Link/Link.tsx
8546
8238
  import React31 from "react";
8547
- var Link = (_a) => {
8548
- var _b = _a, { children, className } = _b, props = __objRest(_b, ["children", "className"]);
8549
- return /* @__PURE__ */ React31.createElement("a", __spreadValues({ className: classNames(className, linkStyle) }, props), children);
8550
- };
8239
+ var Link = ({ children, className, ...props }) => /* @__PURE__ */ React31.createElement("a", { className: classNames(className, linkStyle), ...props }, children);
8551
8240
 
8552
8241
  // src/atoms/Modal/Modal.tsx
8553
8242
  import React32 from "react";
8554
- import { tv } from "tailwind-variants";
8555
- var modalStyles = tv({
8243
+ import { tv as tv2 } from "tailwind-variants";
8244
+ var modalStyles = tv2({
8556
8245
  slots: {
8557
8246
  overlay: "inset-0 overflow-y-auto z-modal fixed",
8558
8247
  backdrop: "-z-10 fixed min-w-full min-h-full bg-body-intense opacity-70",
@@ -8647,163 +8336,110 @@ var modalStyles = tv({
8647
8336
  }
8648
8337
  ]
8649
8338
  });
8650
- var Modal = (_a) => {
8651
- var _b = _a, {
8652
- children,
8653
- kind = "dialog",
8654
- className,
8655
- open
8656
- } = _b, rest = __objRest(_b, [
8657
- "children",
8658
- "kind",
8659
- "className",
8660
- "open"
8661
- ]);
8339
+ var Modal = ({
8340
+ children,
8341
+ kind = "dialog",
8342
+ className,
8343
+ open,
8344
+ ...rest
8345
+ }) => {
8662
8346
  const { overlay } = modalStyles({ kind });
8663
- return open ? /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), { className: overlay({ className }) }), children) : null;
8347
+ return open ? /* @__PURE__ */ React32.createElement("div", { ...rest, className: overlay({ className }) }, children) : null;
8664
8348
  };
8665
- Modal.BackDrop = (_a) => {
8666
- var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8349
+ Modal.BackDrop = ({ className, ...rest }) => {
8667
8350
  const { backdrop } = modalStyles();
8668
- return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), { className: backdrop({ className }) }));
8351
+ return /* @__PURE__ */ React32.createElement("div", { ...rest, className: backdrop({ className }) });
8669
8352
  };
8670
8353
  Modal.Dialog = React32.forwardRef(
8671
- (_a, ref) => {
8672
- var _b = _a, { kind = "dialog", children, className, size = "md" } = _b, rest = __objRest(_b, ["kind", "children", "className", "size"]);
8354
+ ({ kind = "dialog", children, className, size = "md", ...rest }, ref) => {
8673
8355
  const { dialog } = modalStyles({ kind, size });
8674
- return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({ ref, "aria-modal": "true" }, rest), { className: dialog({ className }) }), children);
8356
+ return /* @__PURE__ */ React32.createElement("div", { ref, "aria-modal": "true", ...rest, className: dialog({ className }) }, children);
8675
8357
  }
8676
8358
  );
8677
- Modal.Header = (_a) => {
8678
- var _b = _a, { kind = "dialog", size = "md", children, className } = _b, rest = __objRest(_b, ["kind", "size", "children", "className"]);
8359
+ Modal.Header = ({ kind = "dialog", size = "md", children, className, ...rest }) => {
8679
8360
  const { header } = modalStyles({ kind, size });
8680
- return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), { className: header({ className }) }), children);
8361
+ return /* @__PURE__ */ React32.createElement("div", { ...rest, className: header({ className }) }, children);
8681
8362
  };
8682
- Modal.HeaderImage = (_a) => {
8683
- var _b = _a, { backgroundImage, className } = _b, rest = __objRest(_b, ["backgroundImage", "className"]);
8363
+ Modal.HeaderImage = ({ backgroundImage, className, ...rest }) => {
8684
8364
  const { headerImage } = modalStyles({ backgroundImage: Boolean(backgroundImage) });
8685
- return backgroundImage ? /* @__PURE__ */ React32.createElement("img", __spreadProps(__spreadValues({ "aria-hidden": true, src: backgroundImage }, rest), { className: headerImage({ className }) })) : /* @__PURE__ */ React32.createElement("div", { className: headerImage({ className }) });
8365
+ return backgroundImage ? /* @__PURE__ */ React32.createElement("img", { "aria-hidden": true, src: backgroundImage, ...rest, className: headerImage({ className }) }) : /* @__PURE__ */ React32.createElement("div", { className: headerImage({ className }) });
8686
8366
  };
8687
- Modal.CloseButtonContainer = (_a) => {
8688
- var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8367
+ Modal.CloseButtonContainer = ({ className, ...rest }) => {
8689
8368
  const { closeButtonContainer } = modalStyles();
8690
- return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), { className: closeButtonContainer({ className }) }));
8369
+ return /* @__PURE__ */ React32.createElement("div", { ...rest, className: closeButtonContainer({ className }) });
8691
8370
  };
8692
- Modal.Title = (_a) => {
8693
- var _b = _a, { kind = "dialog", children, className } = _b, rest = __objRest(_b, ["kind", "children", "className"]);
8371
+ Modal.Title = ({ kind = "dialog", children, className, ...rest }) => {
8694
8372
  const { title } = modalStyles({ kind });
8695
- return /* @__PURE__ */ React32.createElement(Typography, __spreadValues({ htmlTag: "h2", variant: "subheading", color: "intense", className: title({ className }) }, rest), children);
8696
- };
8697
- Modal.Subtitle = (_a) => {
8698
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8699
- return /* @__PURE__ */ React32.createElement(Typography, __spreadValues({ variant: "small", color: "default" }, rest), children);
8373
+ return /* @__PURE__ */ React32.createElement(Typography, { htmlTag: "h2", variant: "subheading", color: "intense", className: title({ className }), ...rest }, children);
8700
8374
  };
8701
- Modal.TitleContainer = (_a) => {
8702
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8375
+ Modal.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React32.createElement(Typography, { variant: "small", color: "default", ...rest }, children);
8376
+ Modal.TitleContainer = ({ children, className, ...rest }) => {
8703
8377
  const { titleContainer } = modalStyles();
8704
- return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), { className: titleContainer({ className }) }), children);
8378
+ return /* @__PURE__ */ React32.createElement("div", { ...rest, className: titleContainer({ className }) }, children);
8705
8379
  };
8706
- Modal.Body = (_a) => {
8707
- var _b = _a, { children, className, noFooter = false, maxHeight, style } = _b, rest = __objRest(_b, ["children", "className", "noFooter", "maxHeight", "style"]);
8380
+ Modal.Body = ({ children, className, noFooter = false, maxHeight, style, ...rest }) => {
8708
8381
  const { body } = modalStyles();
8709
- return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), { className: body({ noFooter, className }), style: __spreadValues({ maxHeight }, style) }), children);
8382
+ return /* @__PURE__ */ React32.createElement("div", { ...rest, className: body({ noFooter, className }), style: { maxHeight, ...style } }, children);
8710
8383
  };
8711
- Modal.Footer = (_a) => {
8712
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8384
+ Modal.Footer = ({ children, className, ...rest }) => {
8713
8385
  const { footer } = modalStyles();
8714
- return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), { className: footer({ className }) }), children);
8386
+ return /* @__PURE__ */ React32.createElement("div", { ...rest, className: footer({ className }) }, children);
8715
8387
  };
8716
- Modal.Actions = (_a) => {
8717
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8388
+ Modal.Actions = ({ children, className, ...rest }) => {
8718
8389
  const { actions } = modalStyles();
8719
- return /* @__PURE__ */ React32.createElement("div", __spreadProps(__spreadValues({}, rest), { className: actions({ className }) }), children);
8390
+ return /* @__PURE__ */ React32.createElement("div", { ...rest, className: actions({ className }) }, children);
8720
8391
  };
8721
8392
 
8722
8393
  // src/atoms/Navigation/Navigation.tsx
8723
8394
  import React33 from "react";
8724
- var Navigation = (_a) => {
8725
- var _b = _a, {
8726
- className,
8727
- children,
8728
- "aria-label": ariaLabel
8729
- } = _b, rest = __objRest(_b, [
8730
- "className",
8731
- "children",
8732
- "aria-label"
8733
- ]);
8734
- return /* @__PURE__ */ React33.createElement("nav", { className: classNames(tw("bg-muted h-full")), "aria-label": ariaLabel }, /* @__PURE__ */ React33.createElement("ul", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("flex flex-col h-full"), className), role: "menubar" }), children));
8735
- };
8736
- var Header = (_a) => {
8737
- var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8738
- return /* @__PURE__ */ React33.createElement("li", __spreadProps(__spreadValues({}, rest), { role: "presentation", className: classNames(tw("px-6 py-5"), className) }));
8739
- };
8740
- var Title2 = (_a) => {
8741
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8742
- return /* @__PURE__ */ React33.createElement(Typography, __spreadValues({ variant: "caption", className: classNames("uppercase text-muted", className) }, props));
8743
- };
8744
- var Subtitle = (_a) => {
8745
- var _b = _a, { className } = _b, props = __objRest(_b, ["className"]);
8746
- return /* @__PURE__ */ React33.createElement(Typography, __spreadValues({ variant: "small-strong", className: classNames("text-intense", className) }, props));
8747
- };
8748
- var Footer = (_a) => {
8749
- var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8750
- return /* @__PURE__ */ React33.createElement("li", __spreadProps(__spreadValues({}, rest), { role: "presentation", className: classNames(tw("px-6 py-5 mt-auto"), className) }));
8751
- };
8752
- var Section = (_a) => {
8753
- var _b = _a, { title, className } = _b, rest = __objRest(_b, ["title", "className"]);
8754
- return /* @__PURE__ */ React33.createElement("li", { role: "presentation", className: tw("py-5") }, title && /* @__PURE__ */ React33.createElement("div", { className: classNames(className, "py-2 px-6 text-inactive uppercase cursor-default typography-caption") }, title), /* @__PURE__ */ React33.createElement("ul", __spreadProps(__spreadValues({}, rest), { role: "group", className: classNames(tw("flex flex-col"), className) })));
8755
- };
8756
- var Divider = (_a) => {
8757
- var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8758
- return /* @__PURE__ */ React33.createElement("li", __spreadProps(__spreadValues({ "aria-hidden": true }, rest), { className: classNames(tw("border-t-2 border-muted"), className) }));
8759
- };
8760
- var Item3 = (_a) => {
8761
- var _b = _a, { className, active } = _b, rest = __objRest(_b, ["className", "active"]);
8762
- return /* @__PURE__ */ React33.createElement("li", { role: "presentation" }, /* @__PURE__ */ React33.createElement(
8763
- "a",
8764
- __spreadProps(__spreadValues({}, rest), {
8765
- role: "menuitem",
8766
- className: classNames(
8767
- tw("py-3 px-6 hover:bg-default cursor-pointer flex gap-4 items-center typography-small focusable", {
8768
- "text-default": !active,
8769
- "text-primary-intense": !!active
8770
- }),
8771
- className
8772
- )
8773
- })
8774
- ));
8775
- };
8776
- var Submenu = (_a) => {
8777
- var _b = _a, {
8778
- children,
8779
- className,
8780
- title,
8781
- id
8782
- } = _b, rest = __objRest(_b, [
8783
- "children",
8784
- "className",
8785
- "title",
8786
- "id"
8787
- ]);
8788
- return /* @__PURE__ */ React33.createElement("li", { role: "presentation" }, /* @__PURE__ */ React33.createElement(
8789
- "a",
8790
- __spreadValues({
8791
- role: "menuitem",
8792
- "aria-haspopup": "true",
8793
- href: "#",
8794
- id,
8795
- className: classNames(
8796
- tw("py-3 pr-6 pl-3 hover:bg-default cursor-pointer typography-small focusable flex items-center w-full"),
8797
- className
8798
- )
8799
- }, rest),
8800
- title
8801
- ), /* @__PURE__ */ React33.createElement("ul", { role: "menu", className: classNames(tw("flex flex-col")), "aria-labelledby": id }, children));
8802
- };
8803
- var SubmenuItem = (_a) => {
8804
- var _b = _a, { className, active } = _b, rest = __objRest(_b, ["className", "active"]);
8805
- return /* @__PURE__ */ React33.createElement(Navigation.Item, __spreadProps(__spreadValues({}, rest), { active, className: classNames(className, tw("pl-[56px]")) }));
8806
- };
8395
+ var Navigation = ({
8396
+ className,
8397
+ children,
8398
+ "aria-label": ariaLabel,
8399
+ ...rest
8400
+ }) => /* @__PURE__ */ React33.createElement("nav", { className: classNames(tw("bg-muted h-full")), "aria-label": ariaLabel }, /* @__PURE__ */ React33.createElement("ul", { ...rest, className: classNames(tw("flex flex-col h-full"), className), role: "menubar" }, children));
8401
+ var Header = ({ className, ...rest }) => /* @__PURE__ */ React33.createElement("li", { ...rest, role: "presentation", className: classNames(tw("px-6 py-5"), className) });
8402
+ var Title2 = ({ className, ...props }) => /* @__PURE__ */ React33.createElement(Typography, { variant: "caption", className: classNames("uppercase text-muted", className), ...props });
8403
+ var Subtitle = ({ className, ...props }) => /* @__PURE__ */ React33.createElement(Typography, { variant: "small-strong", className: classNames("text-intense", className), ...props });
8404
+ var Footer = ({ className, ...rest }) => /* @__PURE__ */ React33.createElement("li", { ...rest, role: "presentation", className: classNames(tw("px-6 py-5 mt-auto"), className) });
8405
+ var Section = ({ title, className, ...rest }) => /* @__PURE__ */ React33.createElement("li", { role: "presentation", className: tw("py-5") }, title && /* @__PURE__ */ React33.createElement("div", { className: classNames(className, "py-2 px-6 text-inactive uppercase cursor-default typography-caption") }, title), /* @__PURE__ */ React33.createElement("ul", { ...rest, role: "group", className: classNames(tw("flex flex-col"), className) }));
8406
+ var Divider = ({ className, ...rest }) => /* @__PURE__ */ React33.createElement("li", { "aria-hidden": true, ...rest, className: classNames(tw("border-t-2 border-muted"), className) });
8407
+ var Item3 = ({ className, active, ...rest }) => /* @__PURE__ */ React33.createElement("li", { role: "presentation" }, /* @__PURE__ */ React33.createElement(
8408
+ "a",
8409
+ {
8410
+ ...rest,
8411
+ role: "menuitem",
8412
+ className: classNames(
8413
+ tw("py-3 px-6 hover:bg-default cursor-pointer flex gap-4 items-center typography-small focusable", {
8414
+ "text-default": !active,
8415
+ "text-primary-intense": !!active
8416
+ }),
8417
+ className
8418
+ )
8419
+ }
8420
+ ));
8421
+ var Submenu = ({
8422
+ children,
8423
+ className,
8424
+ title,
8425
+ id,
8426
+ ...rest
8427
+ }) => /* @__PURE__ */ React33.createElement("li", { role: "presentation" }, /* @__PURE__ */ React33.createElement(
8428
+ "a",
8429
+ {
8430
+ role: "menuitem",
8431
+ "aria-haspopup": "true",
8432
+ href: "#",
8433
+ id,
8434
+ className: classNames(
8435
+ tw("py-3 pr-6 pl-3 hover:bg-default cursor-pointer typography-small focusable flex items-center w-full"),
8436
+ className
8437
+ ),
8438
+ ...rest
8439
+ },
8440
+ title
8441
+ ), /* @__PURE__ */ React33.createElement("ul", { role: "menu", className: classNames(tw("flex flex-col")), "aria-labelledby": id }, children));
8442
+ var SubmenuItem = ({ className, active, ...rest }) => /* @__PURE__ */ React33.createElement(Navigation.Item, { ...rest, active, className: classNames(className, tw("pl-[56px]")) });
8807
8443
  Header.Title = Title2;
8808
8444
  Header.Subtitle = Subtitle;
8809
8445
  Submenu.Item = SubmenuItem;
@@ -8816,63 +8452,41 @@ Navigation.Divider = Divider;
8816
8452
 
8817
8453
  // src/atoms/PageHeader/PageHeader.tsx
8818
8454
  import React34 from "react";
8819
- var PageHeader = (_a) => {
8820
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8821
- return /* @__PURE__ */ React34.createElement("div", __spreadValues({ className: classNames(tw("flex flex-row gap-4 pb-6"), className) }, rest), children);
8822
- };
8823
- PageHeader.Container = (_a) => {
8824
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8825
- return /* @__PURE__ */ React34.createElement("div", __spreadValues({ className: classNames(tw("flex flex-col grow gap-0"), className) }, rest), children);
8826
- };
8827
- PageHeader.TitleContainer = (_a) => {
8828
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8829
- return /* @__PURE__ */ React34.createElement("div", __spreadValues({ className: classNames(tw("flex flex-col justify-center gap-2"), className) }, rest), children);
8830
- };
8831
- PageHeader.Title = (_a) => {
8832
- var _b = _a, { isSubHeader = false, children } = _b, rest = __objRest(_b, ["isSubHeader", "children"]);
8833
- return /* @__PURE__ */ React34.createElement(
8834
- Typography2,
8835
- __spreadProps(__spreadValues({}, rest), {
8836
- color: "intense",
8837
- variant: isSubHeader ? "subheading" : "heading",
8838
- htmlTag: isSubHeader ? "h2" : "h1"
8839
- }),
8840
- children
8841
- );
8842
- };
8843
- PageHeader.Subtitle = (_a) => {
8844
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8845
- return /* @__PURE__ */ React34.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), { color: "default" }), children);
8846
- };
8847
- PageHeader.Chips = (_a) => {
8848
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8849
- return /* @__PURE__ */ React34.createElement("div", __spreadValues({ className: classNames(tw("flex gap-3"), className) }, rest), children);
8850
- };
8851
- PageHeader.Actions = (_a) => {
8852
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8853
- return /* @__PURE__ */ React34.createElement("div", __spreadValues({ className: classNames(tw("flex flex-row gap-4 self-start"), className) }, rest), children);
8854
- };
8455
+ var PageHeader = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex flex-row gap-4 pb-6"), className), ...rest }, children);
8456
+ PageHeader.Container = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex flex-col grow gap-0"), className), ...rest }, children);
8457
+ PageHeader.TitleContainer = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex flex-col justify-center gap-2"), className), ...rest }, children);
8458
+ PageHeader.Title = ({ isSubHeader = false, children, ...rest }) => /* @__PURE__ */ React34.createElement(
8459
+ Typography2,
8460
+ {
8461
+ ...rest,
8462
+ color: "intense",
8463
+ variant: isSubHeader ? "subheading" : "heading",
8464
+ htmlTag: isSubHeader ? "h2" : "h1"
8465
+ },
8466
+ children
8467
+ );
8468
+ PageHeader.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React34.createElement(Typography2.Small, { ...rest, color: "default" }, children);
8469
+ PageHeader.Chips = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex gap-3"), className), ...rest }, children);
8470
+ PageHeader.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React34.createElement("div", { className: classNames(tw("flex flex-row gap-4 self-start"), className), ...rest }, children);
8855
8471
 
8856
8472
  // src/atoms/Popover/Popover.tsx
8857
8473
  import React35 from "react";
8858
- var PopoverPanel = React35.forwardRef((_a, ref) => {
8859
- var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
8860
- return /* @__PURE__ */ React35.createElement(
8861
- "div",
8862
- __spreadValues({
8863
- ref,
8864
- className: classNames(
8865
- className,
8866
- tw(
8867
- "rounded-sm shadow-16dp bg-popover-content mt-1 overflow-y-auto flex flex-col border border-default outline-none"
8868
- )
8474
+ var PopoverPanel = React35.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React35.createElement(
8475
+ "div",
8476
+ {
8477
+ ref,
8478
+ className: classNames(
8479
+ className,
8480
+ tw(
8481
+ "rounded-sm shadow-16dp bg-popover-content mt-1 overflow-y-auto flex flex-col border border-default outline-none"
8869
8482
  )
8870
- }, props),
8871
- children
8872
- );
8873
- });
8483
+ ),
8484
+ ...props
8485
+ },
8486
+ children
8487
+ ));
8874
8488
  PopoverPanel.displayName = "Popover.Panel";
8875
- var PopoverUnderlay = React35.forwardRef((props, ref) => /* @__PURE__ */ React35.createElement("div", __spreadProps(__spreadValues({ ref }, props), { className: tw("fixed inset-0") })));
8489
+ var PopoverUnderlay = React35.forwardRef((props, ref) => /* @__PURE__ */ React35.createElement("div", { ref, ...props, className: tw("fixed inset-0") }));
8876
8490
  PopoverUnderlay.displayName = "Popover.Underlay";
8877
8491
  var Popover = {
8878
8492
  Panel: PopoverPanel,
@@ -8881,26 +8495,11 @@ var Popover = {
8881
8495
 
8882
8496
  // src/atoms/PopoverDialog/PopoverDialog.tsx
8883
8497
  import React36 from "react";
8884
- var Header2 = (_a) => {
8885
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8886
- return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("p-5 gap-3 flex items-center"), className) }), children);
8887
- };
8888
- var Title3 = (_a) => {
8889
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8890
- return /* @__PURE__ */ React36.createElement(Typography, __spreadProps(__spreadValues({}, rest), { htmlTag: "h1", variant: "small-strong" }), children);
8891
- };
8892
- var Body = (_a) => {
8893
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8894
- return /* @__PURE__ */ React36.createElement(Typography, __spreadProps(__spreadValues({}, rest), { htmlTag: "div", variant: "caption", className: classNames(tw("px-5 overflow-y-auto"), className) }), children);
8895
- };
8896
- var Footer2 = (_a) => {
8897
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8898
- return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("p-5"), className) }), children);
8899
- };
8900
- var Actions2 = (_a) => {
8901
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8902
- return /* @__PURE__ */ React36.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("flex gap-4"), className) }), children);
8903
- };
8498
+ var Header2 = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { ...rest, className: classNames(tw("p-5 gap-3 flex items-center"), className) }, children);
8499
+ var Title3 = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement(Typography, { ...rest, htmlTag: "h1", variant: "small-strong" }, children);
8500
+ var Body = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement(Typography, { ...rest, htmlTag: "div", variant: "caption", className: classNames(tw("px-5 overflow-y-auto"), className) }, children);
8501
+ var Footer2 = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { ...rest, className: classNames(tw("p-5"), className) }, children);
8502
+ var Actions2 = ({ children, className, ...rest }) => /* @__PURE__ */ React36.createElement("div", { ...rest, className: classNames(tw("flex gap-4"), className) }, children);
8904
8503
  var PopoverDialog = {
8905
8504
  Header: Header2,
8906
8505
  Title: Title3,
@@ -8912,28 +8511,26 @@ var PopoverDialog = {
8912
8511
  // src/atoms/ProgressBar/ProgressBar.tsx
8913
8512
  import React37 from "react";
8914
8513
  import { clamp } from "lodash-es";
8915
- var ProgressBar = (_a) => {
8916
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8917
- return /* @__PURE__ */ React37.createElement(
8918
- "div",
8919
- __spreadProps(__spreadValues({}, rest), {
8920
- className: classNames(tw("relative flex items-center w-full bg-muted h-2 rounded-full overflow-hidden"), className)
8921
- }),
8922
- children
8923
- );
8924
- };
8514
+ var ProgressBar = ({ children, className, ...rest }) => /* @__PURE__ */ React37.createElement(
8515
+ "div",
8516
+ {
8517
+ ...rest,
8518
+ className: classNames(tw("relative flex items-center w-full bg-muted h-2 rounded-full overflow-hidden"), className)
8519
+ },
8520
+ children
8521
+ );
8925
8522
  var STATUS_COLORS = {
8926
8523
  info: tw("bg-info-default"),
8927
8524
  warning: tw("bg-warning-default"),
8928
8525
  success: tw("bg-success-default"),
8929
8526
  error: tw("bg-danger-intense")
8930
8527
  };
8931
- ProgressBar.Indicator = (_a) => {
8932
- var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
8528
+ ProgressBar.Indicator = ({ min, max, value, "aria-label": ariaLabel, status, className, ...rest }) => {
8933
8529
  const completedPercentage = clamp((value - min) / (max - min) * 100, 0, 100);
8934
8530
  return /* @__PURE__ */ React37.createElement(
8935
8531
  "div",
8936
- __spreadProps(__spreadValues({}, rest), {
8532
+ {
8533
+ ...rest,
8937
8534
  className: classNames(
8938
8535
  tw("h-2 rounded-full transition-all ease-in-out delay-150"),
8939
8536
  STATUS_COLORS[status],
@@ -8945,77 +8542,53 @@ ProgressBar.Indicator = (_a) => {
8945
8542
  "aria-valuenow": value,
8946
8543
  "aria-valuemin": min,
8947
8544
  "aria-valuemax": max
8948
- })
8545
+ }
8949
8546
  );
8950
8547
  };
8951
- ProgressBar.Labels = (_a) => {
8952
- var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
8953
- return /* @__PURE__ */ React37.createElement("div", { className: classNames(tw("flex flex-row"), className) }, /* @__PURE__ */ React37.createElement("span", __spreadProps(__spreadValues({}, rest), { className: tw("grow text-default typography-caption") }), startLabel), /* @__PURE__ */ React37.createElement("span", __spreadProps(__spreadValues({}, rest), { className: tw("grow text-default typography-caption text-right") }), endLabel));
8954
- };
8548
+ ProgressBar.Labels = ({ children, startLabel, endLabel, className, ...rest }) => /* @__PURE__ */ React37.createElement("div", { className: classNames(tw("flex flex-row"), className) }, /* @__PURE__ */ React37.createElement("span", { ...rest, className: tw("grow text-default typography-caption") }, startLabel), /* @__PURE__ */ React37.createElement("span", { ...rest, className: tw("grow text-default typography-caption text-right") }, endLabel));
8955
8549
 
8956
8550
  // src/atoms/Section/Section.tsx
8957
8551
  import React38 from "react";
8958
8552
  var import_caretUp2 = __toESM(require_caretUp());
8959
- var Section2 = (_a) => {
8960
- var _b = _a, {
8961
- children,
8962
- className
8963
- } = _b, rest = __objRest(_b, [
8964
- "children",
8965
- "className"
8966
- ]);
8967
- return /* @__PURE__ */ React38.createElement(Box, __spreadProps(__spreadValues({ component: "section" }, rest), { className: classNames(tw("border border-muted"), className) }), children);
8968
- };
8969
- Section2.Header = (_a) => {
8970
- var _b = _a, { children, className, expanded } = _b, rest = __objRest(_b, ["children", "className", "expanded"]);
8971
- return /* @__PURE__ */ React38.createElement(
8553
+ var Section2 = ({
8554
+ children,
8555
+ className,
8556
+ ...rest
8557
+ }) => /* @__PURE__ */ React38.createElement(Box, { component: "section", ...rest, className: classNames(tw("border border-muted"), className) }, children);
8558
+ Section2.Header = ({ children, className, expanded, ...rest }) => /* @__PURE__ */ React38.createElement(
8559
+ "div",
8560
+ {
8561
+ ...rest,
8562
+ className: classNames(
8563
+ tw("px-6 flex gap-5 justify-between items-center h-[72px]", {
8564
+ "bg-muted": expanded
8565
+ }),
8566
+ className
8567
+ )
8568
+ },
8569
+ children
8570
+ );
8571
+ Section2.TitleContainer = React38.forwardRef(
8572
+ ({ children, className, collapsible, ...rest }, ref) => /* @__PURE__ */ React38.createElement(
8972
8573
  "div",
8973
- __spreadProps(__spreadValues({}, rest), {
8574
+ {
8575
+ ...rest,
8576
+ ref,
8974
8577
  className: classNames(
8975
- tw("px-6 flex gap-5 justify-between items-center h-[72px]", {
8976
- "bg-muted": expanded
8578
+ tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", {
8579
+ "cursor-pointer focus:outline-none focusable": collapsible
8977
8580
  }),
8978
8581
  className
8979
8582
  )
8980
- }),
8583
+ },
8981
8584
  children
8982
- );
8983
- };
8984
- Section2.TitleContainer = React38.forwardRef(
8985
- (_a, ref) => {
8986
- var _b = _a, { children, className, collapsible } = _b, rest = __objRest(_b, ["children", "className", "collapsible"]);
8987
- return /* @__PURE__ */ React38.createElement(
8988
- "div",
8989
- __spreadProps(__spreadValues({}, rest), {
8990
- ref,
8991
- className: classNames(
8992
- tw("grow grid grid-cols-[auto_1fr] gap-x-3 items-center", {
8993
- "cursor-pointer focus:outline-none focusable": collapsible
8994
- }),
8995
- className
8996
- )
8997
- }),
8998
- children
8999
- );
9000
- }
8585
+ )
9001
8586
  );
9002
- Section2.Toggle = (props) => /* @__PURE__ */ React38.createElement(Icon, __spreadProps(__spreadValues({}, props), { icon: import_caretUp2.default, height: 22, width: 22 }));
9003
- Section2.Title = (_a) => {
9004
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
9005
- return /* @__PURE__ */ React38.createElement(Typography2.Large, __spreadProps(__spreadValues({}, rest), { htmlTag: "h2", color: "intense", className: "flex gap-3 items-center" }), children);
9006
- };
9007
- Section2.Subtitle = (_a) => {
9008
- var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
9009
- return /* @__PURE__ */ React38.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), { color: "default" }), children);
9010
- };
9011
- Section2.Actions = (_a) => {
9012
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
9013
- return /* @__PURE__ */ React38.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("flex gap-4 justify-end"), className) }), children);
9014
- };
9015
- Section2.Body = (_a) => {
9016
- var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
9017
- return /* @__PURE__ */ React38.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(tw("p-6"), className) }), /* @__PURE__ */ React38.createElement(Typography, { htmlTag: "div", color: "default" }, children));
9018
- };
8587
+ Section2.Toggle = (props) => /* @__PURE__ */ React38.createElement(Icon, { ...props, icon: import_caretUp2.default, height: 22, width: 22 });
8588
+ Section2.Title = ({ children, ...rest }) => /* @__PURE__ */ React38.createElement(Typography2.Large, { ...rest, htmlTag: "h2", color: "intense", className: "flex gap-3 items-center" }, children);
8589
+ Section2.Subtitle = ({ children, ...rest }) => /* @__PURE__ */ React38.createElement(Typography2.Small, { ...rest, color: "default" }, children);
8590
+ Section2.Actions = ({ children, className, ...rest }) => /* @__PURE__ */ React38.createElement("div", { ...rest, className: classNames(tw("flex gap-4 justify-end"), className) }, children);
8591
+ Section2.Body = ({ children, className, ...rest }) => /* @__PURE__ */ React38.createElement("div", { ...rest, className: classNames(tw("p-6"), className) }, /* @__PURE__ */ React38.createElement(Typography, { htmlTag: "div", color: "default" }, children));
9019
8592
 
9020
8593
  // src/atoms/Select/Select.tsx
9021
8594
  import React39 from "react";
@@ -9024,172 +8597,146 @@ var import_chevronUp4 = __toESM(require_chevronUp());
9024
8597
  var import_search2 = __toESM(require_search());
9025
8598
  var import_tick4 = __toESM(require_tick());
9026
8599
  function getOptionLabelBuiltin(option) {
9027
- var _a;
9028
8600
  if (option === null) {
9029
8601
  return "";
9030
8602
  }
9031
8603
  if (typeof option === "string") {
9032
8604
  return option;
9033
8605
  }
9034
- return (_a = option.label) != null ? _a : "";
8606
+ return option.label ?? "";
9035
8607
  }
9036
8608
  function isOptionDisabledBuiltin(option) {
9037
8609
  return !!option.disabled;
9038
8610
  }
9039
8611
  var getValues = (children) => {
9040
- var _a;
9041
- const values = React39.Children.map(children, (c) => {
9042
- var _a2;
9043
- return (_a2 = c == null ? void 0 : c.props) == null ? void 0 : _a2.value;
9044
- });
9045
- return (_a = values == null ? void 0 : values.filter((v) => v !== void 0 && v !== null)) != null ? _a : [];
8612
+ const values = React39.Children.map(children, (c) => c?.props?.value);
8613
+ return values?.filter((v) => v !== void 0 && v !== null) ?? [];
9046
8614
  };
9047
8615
  var InputContainer = React39.forwardRef(
9048
- (_a, ref) => {
9049
- var _b = _a, { variant = "default", className } = _b, props = __objRest(_b, ["variant", "className"]);
9050
- return /* @__PURE__ */ React39.createElement(
9051
- "div",
9052
- __spreadValues({
9053
- ref,
9054
- className: classNames(
9055
- className,
9056
- "relative rounded-sm typography-default-strong w-full flex flex-row items-center focus-visible:outline-0 focus-visible:border-info-default group",
9057
- {
9058
- "border px-3 py-[6px]": variant !== "readOnly",
9059
- "cursor-default": variant === "readOnly",
9060
- "border-default": variant !== "error" && variant !== "readOnly",
9061
- "border-danger-default": variant === "error",
9062
- "hover:border-intense": variant !== "error" && variant !== "disabled" && variant !== "focused",
9063
- "border-info-default": variant === "focused",
9064
- "bg-body": variant !== "disabled",
9065
- "cursor-not-allowed border-default bg-default": variant === "disabled"
9066
- }
9067
- )
9068
- }, props)
9069
- );
9070
- }
9071
- );
9072
- var Input = React39.forwardRef((_a, ref) => {
9073
- var _b = _a, { className, required } = _b, props = __objRest(_b, ["className", "required"]);
9074
- return /* @__PURE__ */ React39.createElement(
9075
- "input",
9076
- __spreadValues({
8616
+ ({ variant = "default", className, ...props }, ref) => /* @__PURE__ */ React39.createElement(
8617
+ "div",
8618
+ {
9077
8619
  ref,
9078
- type: "text",
9079
- "aria-required": required,
9080
8620
  className: classNames(
9081
8621
  className,
9082
- "grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small disabled:cursor-not-allowed disabled:bg-default placeholder:text-inactive",
8622
+ "relative rounded-sm typography-default-strong w-full flex flex-row items-center focus-visible:outline-0 focus-visible:border-info-default group",
8623
+ // group is used for <Combobox />'s clear selection button
9083
8624
  {
9084
- "text-default": !props.disabled,
9085
- "text-inactive": props.disabled,
9086
- "bg-body": !props.readOnly,
9087
- "cursor-default bg-transparent": props.readOnly
8625
+ "border px-3 py-[6px]": variant !== "readOnly",
8626
+ "cursor-default": variant === "readOnly",
8627
+ "border-default": variant !== "error" && variant !== "readOnly",
8628
+ "border-danger-default": variant === "error",
8629
+ "hover:border-intense": variant !== "error" && variant !== "disabled" && variant !== "focused",
8630
+ "border-info-default": variant === "focused",
8631
+ "bg-body": variant !== "disabled",
8632
+ "cursor-not-allowed border-default bg-default": variant === "disabled"
9088
8633
  }
9089
- )
9090
- }, props)
9091
- );
9092
- });
9093
- var Menu = React39.forwardRef(
9094
- (_a, ref) => {
9095
- var _b = _a, { maxHeight = "450px", className, children } = _b, props = __objRest(_b, ["maxHeight", "className", "children"]);
9096
- return /* @__PURE__ */ React39.createElement(
9097
- "ul",
9098
- __spreadValues({
9099
- ref,
9100
- style: { maxHeight },
9101
- className: classNames(className, tw("text-default bg-body overflow-y-auto"))
9102
- }, props),
9103
- children
9104
- );
9105
- }
8634
+ ),
8635
+ ...props
8636
+ }
8637
+ )
9106
8638
  );
9107
- var NoResults = React39.forwardRef(
9108
- (_a, ref) => {
9109
- var _b = _a, { className, children } = _b, rest = __objRest(_b, ["className", "children"]);
9110
- return /* @__PURE__ */ React39.createElement("li", __spreadProps(__spreadValues({ ref }, rest), { className: classNames(tw("p-3 text-inactive typography-small"), className) }), children);
8639
+ var Input = React39.forwardRef(({ className, required, ...props }, ref) => /* @__PURE__ */ React39.createElement(
8640
+ "input",
8641
+ {
8642
+ ref,
8643
+ type: "text",
8644
+ "aria-required": required,
8645
+ className: classNames(
8646
+ className,
8647
+ "grow rounded border-0 focus:outline-none px-[1px] my-1 min-w-0 typography-small disabled:cursor-not-allowed disabled:bg-default placeholder:text-inactive",
8648
+ {
8649
+ "text-default": !props.disabled,
8650
+ "text-inactive": props.disabled,
8651
+ "bg-body": !props.readOnly,
8652
+ "cursor-default bg-transparent": props.readOnly
8653
+ }
8654
+ ),
8655
+ ...props
9111
8656
  }
9112
- );
9113
- var EmptyStateContainer2 = React39.forwardRef((_a, ref) => {
9114
- var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
9115
- return /* @__PURE__ */ React39.createElement("li", __spreadValues({ ref, className: tw("border border-dashed border-default m-4 p-6") }, props), children);
9116
- });
9117
- var Divider2 = (props) => /* @__PURE__ */ React39.createElement("div", __spreadValues({ className: tw("border-b-1 border-muted mx-3 my-4") }, props));
9118
- var Group2 = React39.forwardRef((_a, ref) => {
9119
- var _b = _a, { className, children } = _b, props = __objRest(_b, ["className", "children"]);
9120
- return /* @__PURE__ */ React39.createElement(
9121
- "li",
9122
- __spreadValues({
8657
+ ));
8658
+ var Menu = React39.forwardRef(
8659
+ ({ maxHeight = "450px", className, children, ...props }, ref) => /* @__PURE__ */ React39.createElement(
8660
+ "ul",
8661
+ {
9123
8662
  ref,
9124
- className: classNames(
9125
- className,
9126
- "flex items-center gap-x-3 p-3 text-inactive uppercase cursor-default typography-caption mt-4 first:mt-0"
9127
- )
9128
- }, props),
8663
+ style: { maxHeight },
8664
+ className: classNames(className, tw("text-default bg-body overflow-y-auto")),
8665
+ ...props
8666
+ },
9129
8667
  children
9130
- );
9131
- });
8668
+ )
8669
+ );
8670
+ var NoResults = React39.forwardRef(
8671
+ ({ className, children, ...rest }, ref) => /* @__PURE__ */ React39.createElement("li", { ref, ...rest, className: classNames(tw("p-3 text-inactive typography-small"), className) }, children)
8672
+ );
8673
+ var EmptyStateContainer2 = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React39.createElement("li", { ref, className: tw("border border-dashed border-default m-4 p-6"), ...props }, children));
8674
+ var Divider2 = (props) => /* @__PURE__ */ React39.createElement("div", { className: tw("border-b-1 border-muted mx-3 my-4"), ...props });
8675
+ var Group2 = React39.forwardRef(({ className, children, ...props }, ref) => /* @__PURE__ */ React39.createElement(
8676
+ "li",
8677
+ {
8678
+ ref,
8679
+ className: classNames(
8680
+ className,
8681
+ "flex items-center gap-x-3 p-3 text-inactive uppercase cursor-default typography-caption mt-4 first:mt-0"
8682
+ ),
8683
+ ...props
8684
+ },
8685
+ children
8686
+ ));
9132
8687
  var endAdornmentSize = { width: 14, height: 14 };
9133
8688
  var Item4 = React39.forwardRef(
9134
- (_a, ref) => {
9135
- var _b = _a, { highlighted, selected, className, children } = _b, props = __objRest(_b, ["highlighted", "selected", "className", "children"]);
9136
- return /* @__PURE__ */ React39.createElement(
9137
- "li",
9138
- __spreadValues({
9139
- ref,
9140
- className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
9141
- "cursor-pointer hover:bg-muted": !props["aria-disabled"],
9142
- "cursor-not-allowed opacity-40 grayscale": props["aria-disabled"],
9143
- "bg-muted": highlighted
9144
- })
9145
- }, props),
9146
- /* @__PURE__ */ React39.createElement("span", { className: tw("grow flex gap-x-3") }, children),
9147
- selected ? /* @__PURE__ */ React39.createElement(InlineIcon, __spreadValues({ icon: import_tick4.default }, endAdornmentSize)) : /* @__PURE__ */ React39.createElement("div", { style: endAdornmentSize })
9148
- );
9149
- }
8689
+ ({ highlighted, selected, className, children, ...props }, ref) => /* @__PURE__ */ React39.createElement(
8690
+ "li",
8691
+ {
8692
+ ref,
8693
+ className: classNames(className, "flex items-center gap-x-3 p-3 typography-small", {
8694
+ "cursor-pointer hover:bg-muted": !props["aria-disabled"],
8695
+ "cursor-not-allowed opacity-40 grayscale": props["aria-disabled"],
8696
+ "bg-muted": highlighted
8697
+ }),
8698
+ ...props
8699
+ },
8700
+ /* @__PURE__ */ React39.createElement("span", { className: tw("grow flex gap-x-3") }, children),
8701
+ selected ? /* @__PURE__ */ React39.createElement(InlineIcon, { icon: import_tick4.default, ...endAdornmentSize }) : /* @__PURE__ */ React39.createElement("div", { style: endAdornmentSize })
8702
+ )
9150
8703
  );
9151
8704
  var ActionItem = React39.forwardRef(
9152
- (_a, ref) => {
9153
- var _b = _a, { className, dense, icon, onClick, children } = _b, props = __objRest(_b, ["className", "dense", "icon", "onClick", "children"]);
9154
- return /* @__PURE__ */ React39.createElement(
9155
- "li",
9156
- __spreadValues({
9157
- ref,
9158
- role: "button",
9159
- onClick: () => !props.disabled && onClick(),
9160
- className: classNames(className, "flex items-center gap-x-3 typography-small", {
9161
- "p-3": !dense,
9162
- "px-3 py-2": dense,
9163
- "text-primary-intense cursor-pointer hover:text-primary-default": !props.disabled,
9164
- "text-inactive cursor-not-allowed": props.disabled
9165
- })
9166
- }, props),
9167
- icon && /* @__PURE__ */ React39.createElement(InlineIcon, { icon }),
9168
- children
9169
- );
9170
- }
9171
- );
9172
- var Toggle = React39.forwardRef((_a, ref) => {
9173
- var _b = _a, { hasFocus, isOpen } = _b, props = __objRest(_b, ["hasFocus", "isOpen"]);
9174
- var _a2;
9175
- return /* @__PURE__ */ React39.createElement(
9176
- "button",
9177
- __spreadProps(__spreadValues({
8705
+ ({ className, dense, icon, onClick, children, ...props }, ref) => /* @__PURE__ */ React39.createElement(
8706
+ "li",
8707
+ {
9178
8708
  ref,
9179
- type: "button",
9180
- "aria-label": "Toggle"
9181
- }, props), {
9182
- className: tw("grow-0 leading-none", { "cursor-not-allowed": (_a2 = props.disabled) != null ? _a2 : false })
9183
- }),
9184
- /* @__PURE__ */ React39.createElement(
9185
- InlineIcon,
9186
- {
9187
- color: props.disabled ? "inactive" : "default",
9188
- icon: hasFocus ? import_search2.default : isOpen ? import_chevronUp4.default : import_chevronDown5.default
9189
- }
9190
- )
9191
- );
9192
- });
8709
+ role: "button",
8710
+ onClick: () => !props.disabled && onClick(),
8711
+ className: classNames(className, "flex items-center gap-x-3 typography-small", {
8712
+ "p-3": !dense,
8713
+ "px-3 py-2": dense,
8714
+ "text-primary-intense cursor-pointer hover:text-primary-default": !props.disabled,
8715
+ "text-inactive cursor-not-allowed": props.disabled
8716
+ }),
8717
+ ...props
8718
+ },
8719
+ icon && /* @__PURE__ */ React39.createElement(InlineIcon, { icon }),
8720
+ children
8721
+ )
8722
+ );
8723
+ var Toggle = React39.forwardRef(({ hasFocus, isOpen, ...props }, ref) => /* @__PURE__ */ React39.createElement(
8724
+ "button",
8725
+ {
8726
+ ref,
8727
+ type: "button",
8728
+ "aria-label": "Toggle",
8729
+ ...props,
8730
+ className: tw("grow-0 leading-none", { "cursor-not-allowed": props.disabled ?? false })
8731
+ },
8732
+ /* @__PURE__ */ React39.createElement(
8733
+ InlineIcon,
8734
+ {
8735
+ color: props.disabled ? "inactive" : "default",
8736
+ icon: hasFocus ? import_search2.default : isOpen ? import_chevronUp4.default : import_chevronDown5.default
8737
+ }
8738
+ )
8739
+ ));
9193
8740
  var Select = {
9194
8741
  InputContainer,
9195
8742
  Input,
@@ -9206,65 +8753,53 @@ var Select = {
9206
8753
  // src/atoms/Stepper/Stepper.tsx
9207
8754
  import React40 from "react";
9208
8755
  var import_tick5 = __toESM(require_tick());
9209
- var Stepper = (_a) => {
9210
- var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
9211
- return /* @__PURE__ */ React40.createElement("div", __spreadProps(__spreadValues({}, rest), { className: classNames(className) }));
9212
- };
9213
- var ConnectorContainer = (_a) => {
9214
- var _b = _a, {
9215
- className,
9216
- completed,
9217
- dense
9218
- } = _b, rest = __objRest(_b, [
9219
- "className",
9220
- "completed",
9221
- "dense"
9222
- ]);
9223
- return /* @__PURE__ */ React40.createElement(
9224
- "div",
9225
- __spreadProps(__spreadValues({}, rest), {
9226
- className: classNames(
9227
- tw("absolute w-full -left-1/2", {
9228
- "top-[3px] px-[14px]": Boolean(dense),
9229
- "top-[14px] px-[20px]": !dense
9230
- }),
9231
- className
9232
- )
9233
- })
9234
- );
9235
- };
9236
- var Connector = (_a) => {
9237
- var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
9238
- return /* @__PURE__ */ React40.createElement(
9239
- "div",
9240
- __spreadProps(__spreadValues({}, rest), {
9241
- className: classNames(
9242
- tw("w-full", {
9243
- "bg-intense": !completed,
9244
- "bg-success-default": Boolean(completed),
9245
- "h-[2px]": !dense,
9246
- "h-[3px]": Boolean(dense)
9247
- }),
9248
- className
9249
- )
9250
- })
9251
- );
9252
- };
9253
- var Step = (_a) => {
9254
- var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
9255
- return /* @__PURE__ */ React40.createElement(
9256
- "div",
9257
- __spreadProps(__spreadValues({}, rest), {
9258
- className: classNames(
9259
- tw("flex flex-col items-center relative text-center", {
9260
- "text-intense": state !== "inactive",
9261
- "text-inactive": state === "inactive"
9262
- }),
9263
- className
9264
- )
9265
- })
9266
- );
9267
- };
8756
+ var Stepper = ({ className, ...rest }) => /* @__PURE__ */ React40.createElement("div", { ...rest, className: classNames(className) });
8757
+ var ConnectorContainer = ({
8758
+ className,
8759
+ completed,
8760
+ dense,
8761
+ ...rest
8762
+ }) => /* @__PURE__ */ React40.createElement(
8763
+ "div",
8764
+ {
8765
+ ...rest,
8766
+ className: classNames(
8767
+ tw("absolute w-full -left-1/2", {
8768
+ "top-[3px] px-[14px]": Boolean(dense),
8769
+ "top-[14px] px-[20px]": !dense
8770
+ }),
8771
+ className
8772
+ )
8773
+ }
8774
+ );
8775
+ var Connector = ({ children, className, completed, dense, ...rest }) => /* @__PURE__ */ React40.createElement(
8776
+ "div",
8777
+ {
8778
+ ...rest,
8779
+ className: classNames(
8780
+ tw("w-full", {
8781
+ "bg-intense": !completed,
8782
+ "bg-success-default": Boolean(completed),
8783
+ "h-[2px]": !dense,
8784
+ "h-[3px]": Boolean(dense)
8785
+ }),
8786
+ className
8787
+ )
8788
+ }
8789
+ );
8790
+ var Step = ({ className, state, ...rest }) => /* @__PURE__ */ React40.createElement(
8791
+ "div",
8792
+ {
8793
+ ...rest,
8794
+ className: classNames(
8795
+ tw("flex flex-col items-center relative text-center", {
8796
+ "text-intense": state !== "inactive",
8797
+ "text-inactive": state === "inactive"
8798
+ }),
8799
+ className
8800
+ )
8801
+ }
8802
+ );
9268
8803
  var getClassNames = (state) => tw("h-[32px] w-[32px] border-2", {
9269
8804
  "border-intense": state === "active",
9270
8805
  "border-default": state === "inactive",
@@ -9275,21 +8810,19 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
9275
8810
  "bg-intense": state === "inactive",
9276
8811
  "text-success-default": state === "completed"
9277
8812
  });
9278
- var Indicator = (_a) => {
9279
- var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
9280
- return /* @__PURE__ */ React40.createElement(
9281
- "div",
9282
- __spreadProps(__spreadValues({}, rest), {
9283
- className: classNames(
9284
- "Aquarium-Stepper-Indicator",
9285
- tw("rounded-full flex justify-center items-center mx-2 mb-3"),
9286
- dense ? getDenseClassNames(state) : getClassNames(state),
9287
- className
9288
- )
9289
- }),
9290
- state === "completed" ? /* @__PURE__ */ React40.createElement(InlineIcon, { icon: import_tick5.default }) : dense ? null : children
9291
- );
9292
- };
8813
+ var Indicator = ({ children, className, state, dense, ...rest }) => /* @__PURE__ */ React40.createElement(
8814
+ "div",
8815
+ {
8816
+ ...rest,
8817
+ className: classNames(
8818
+ "Aquarium-Stepper-Indicator",
8819
+ tw("rounded-full flex justify-center items-center mx-2 mb-3"),
8820
+ dense ? getDenseClassNames(state) : getClassNames(state),
8821
+ className
8822
+ )
8823
+ },
8824
+ state === "completed" ? /* @__PURE__ */ React40.createElement(InlineIcon, { icon: import_tick5.default }) : dense ? null : children
8825
+ );
9293
8826
  Step.Indicator = Indicator;
9294
8827
  Stepper.Step = Step;
9295
8828
  ConnectorContainer.Connector = Connector;
@@ -9299,44 +8832,41 @@ Stepper.ConnectorContainer = ConnectorContainer;
9299
8832
  import React41 from "react";
9300
8833
  var import_ban2 = __toESM(require_ban());
9301
8834
  var Switch = React41.forwardRef(
9302
- (_a, ref) => {
9303
- var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
9304
- return /* @__PURE__ */ React41.createElement("span", { className: tw("relative inline-flex justify-center items-center self-center group") }, /* @__PURE__ */ React41.createElement(
9305
- "input",
9306
- __spreadProps(__spreadValues({
9307
- id,
9308
- ref,
9309
- type: "checkbox",
9310
- name
9311
- }, props), {
9312
- className: classNames(
9313
- tw(
9314
- "appearance-none peer/switch rounded-full inline-block w-[34px] h-[20px] transition duration-300",
9315
- "outline-none focusable bg-intense",
9316
- "cursor-pointer disabled:cursor-not-allowed",
9317
- {
9318
- "hover:bg-intense checked:bg-primary-default hover:checked:bg-primary-intense": !disabled,
9319
- "bg-default checked:opacity-50 checked:bg-primary-muted": disabled
9320
- }
9321
- )
9322
- ),
9323
- readOnly,
9324
- disabled
9325
- })
9326
- ), /* @__PURE__ */ React41.createElement(
9327
- "span",
9328
- {
9329
- className: tw(
9330
- "pointer-events-none rounded-full absolute inline-flex justify-center items-center transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
9331
- "bg-white left-2 peer-checked/switch:left-1 text-inactive peer-checked/switch:text-primary-muted",
8835
+ ({ id, children, name, disabled = false, readOnly = false, ...props }, ref) => /* @__PURE__ */ React41.createElement("span", { className: tw("relative inline-flex justify-center items-center self-center group") }, /* @__PURE__ */ React41.createElement(
8836
+ "input",
8837
+ {
8838
+ id,
8839
+ ref,
8840
+ type: "checkbox",
8841
+ name,
8842
+ ...props,
8843
+ className: classNames(
8844
+ tw(
8845
+ "appearance-none peer/switch rounded-full inline-block w-[34px] h-[20px] transition duration-300",
8846
+ "outline-none focusable bg-intense",
8847
+ "cursor-pointer disabled:cursor-not-allowed",
9332
8848
  {
9333
- "shadow-4dp": !disabled
8849
+ "hover:bg-intense checked:bg-primary-default hover:checked:bg-primary-intense": !disabled,
8850
+ "bg-default checked:opacity-50 checked:bg-primary-muted": disabled
9334
8851
  }
9335
8852
  )
9336
- },
9337
- disabled && /* @__PURE__ */ React41.createElement(Icon, { icon: import_ban2.default, width: "10px", height: "10px" })
9338
- ));
9339
- }
8853
+ ),
8854
+ readOnly,
8855
+ disabled
8856
+ }
8857
+ ), /* @__PURE__ */ React41.createElement(
8858
+ "span",
8859
+ {
8860
+ className: tw(
8861
+ "pointer-events-none rounded-full absolute inline-flex justify-center items-center transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
8862
+ "bg-white left-2 peer-checked/switch:left-1 text-inactive peer-checked/switch:text-primary-muted",
8863
+ {
8864
+ "shadow-4dp": !disabled
8865
+ }
8866
+ )
8867
+ },
8868
+ disabled && /* @__PURE__ */ React41.createElement(Icon, { icon: import_ban2.default, width: "10px", height: "10px" })
8869
+ ))
9340
8870
  );
9341
8871
  export {
9342
8872
  Alert,