@aivenio/aquarium 1.18.0-rc2 → 1.18.0-rc3

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 (57) hide show
  1. package/dist/_variables.scss +1 -1
  2. package/dist/_variables_timescale.scss +1 -1
  3. package/dist/charts.cjs +2180 -0
  4. package/dist/charts.mjs +2073 -0
  5. package/dist/src/atoms/LineClamp/LineClamp.d.ts +1 -1
  6. package/dist/src/atoms/Popover/Popover.d.ts +2 -2
  7. package/dist/src/charts/Axis/Axis.d.ts +24 -0
  8. package/dist/src/charts/Axis/Axis.js +40 -0
  9. package/dist/src/charts/BarChart/BarChart.d.ts +12 -0
  10. package/dist/src/charts/BarChart/BarChart.js +39 -0
  11. package/dist/src/charts/Container/Container.d.ts +3 -0
  12. package/dist/src/charts/Container/Container.js +4 -0
  13. package/dist/src/charts/Grid/Grid.d.ts +3 -0
  14. package/dist/src/charts/Grid/Grid.js +4 -0
  15. package/dist/src/charts/Tooltip/Tooltip.d.ts +4 -0
  16. package/dist/src/charts/Tooltip/Tooltip.js +9 -0
  17. package/dist/src/charts/index.d.ts +7 -0
  18. package/dist/src/charts/index.js +8 -0
  19. package/dist/src/charts/lib/timeIntervals.d.ts +1 -0
  20. package/dist/src/charts/lib/timeIntervals.js +3 -0
  21. package/dist/src/charts/lib/utils.d.ts +6 -0
  22. package/dist/src/charts/lib/utils.js +33 -0
  23. package/dist/src/icons/capslock.js +11 -0
  24. package/dist/src/icons/index.d.ts +5 -3
  25. package/dist/src/icons/index.js +6 -4
  26. package/dist/src/icons/pause.js +11 -0
  27. package/dist/src/icons/play.js +11 -0
  28. package/dist/src/icons/repeat.d.ts +9 -0
  29. package/dist/src/icons/repeat.js +11 -0
  30. package/dist/src/icons/stop.d.ts +9 -0
  31. package/dist/src/icons/stop.js +11 -0
  32. package/dist/src/molecules/Button/Button.d.ts +6 -6
  33. package/dist/src/molecules/Icon/Icon.d.ts +2 -2
  34. package/dist/src/molecules/Navigation/Navigation.d.ts +3 -3
  35. package/dist/src/molecules/Notification/Notification.d.ts +6 -0
  36. package/dist/src/molecules/Notification/Notification.js +88 -0
  37. package/dist/src/molecules/Notification/Notification.spec.d.ts +1 -0
  38. package/dist/src/molecules/Notification/Notification.spec.js +44 -0
  39. package/dist/src/molecules/Notification/types.d.ts +37 -0
  40. package/dist/src/molecules/Notification/types.js +6 -0
  41. package/dist/src/molecules/Spacing/Spacing.d.ts +1 -1
  42. package/dist/src/molecules/Spacing/Spacing.js +1 -1
  43. package/dist/src/molecules/index.d.ts +1 -0
  44. package/dist/src/molecules/index.js +2 -1
  45. package/dist/styles.css +36 -0
  46. package/dist/styles_timescaledb.css +36 -0
  47. package/dist/system.cjs +323 -204
  48. package/dist/system.mjs +310 -195
  49. package/dist/tsconfig.module.tsbuildinfo +1 -1
  50. package/dist/types/tailwindGenerated.d.ts +1 -1
  51. package/package.json +5 -3
  52. package/dist/src/icons/arrowCircleRight1.js +0 -11
  53. package/dist/src/icons/key1.js +0 -11
  54. package/dist/src/icons/loading1.js +0 -11
  55. /package/dist/src/icons/{arrowCircleRight1.d.ts → capslock.d.ts} +0 -0
  56. /package/dist/src/icons/{key1.d.ts → pause.d.ts} +0 -0
  57. /package/dist/src/icons/{loading1.d.ts → play.d.ts} +0 -0
package/dist/system.mjs CHANGED
@@ -1617,6 +1617,8 @@ __export(molecules_exports, {
1617
1617
  NativeSelect: () => NativeSelect,
1618
1618
  NativeSelectBase: () => NativeSelectBase,
1619
1619
  Navigation: () => Navigation2,
1620
+ NotificationConsumer: () => NotificationConsumer,
1621
+ NotificationProvider: () => NotificationProvider,
1620
1622
  OneLineBanner: () => OneLineBanner,
1621
1623
  Option: () => Option,
1622
1624
  PageHeader: () => PageHeader2,
@@ -1666,6 +1668,8 @@ __export(molecules_exports, {
1666
1668
  columnIsFieldColumn: () => columnIsFieldColumn,
1667
1669
  createTabsComponent: () => createTabsComponent,
1668
1670
  toSortDirection: () => toSortDirection,
1671
+ useNotification: () => useNotification,
1672
+ useNotificationContext: () => useNotificationContext,
1669
1673
  usePagination: () => usePagination,
1670
1674
  usePopoverContext: () => usePopoverContext,
1671
1675
  useScrollTarget: () => useScrollTarget,
@@ -7932,52 +7936,170 @@ Navigation2.Footer = Navigation.Footer;
7932
7936
  Navigation2.Header = Navigation.Header;
7933
7937
  Navigation2.Section = Navigation.Section;
7934
7938
 
7939
+ // src/molecules/Notification/Notification.tsx
7940
+ import React79, { createContext as createContext2, useContext as useContext3, useEffect as useEffect9, useReducer } from "react";
7941
+ import groupBy from "lodash/groupBy";
7942
+
7943
+ // src/molecules/Spacing/Spacing.tsx
7944
+ import React78 from "react";
7945
+ var Spacing = (_a) => {
7946
+ var _b = _a, { gap, row } = _b, rest = __objRest(_b, ["gap", "row"]);
7947
+ return /* @__PURE__ */ React78.createElement(Box, __spreadProps(__spreadValues({}, rest), {
7948
+ display: "flex",
7949
+ flexDirection: row ? "row" : "column",
7950
+ gap
7951
+ }));
7952
+ };
7953
+
7954
+ // src/molecules/Notification/Notification.tsx
7955
+ var NotificationContext = createContext2(null);
7956
+ var useNotificationContext = () => {
7957
+ const context2 = useContext3(NotificationContext);
7958
+ if (context2 === null) {
7959
+ throw new Error("NotificationContext was used outside of provider.");
7960
+ }
7961
+ return context2;
7962
+ };
7963
+ var useNotification = () => {
7964
+ const [_, dispatch] = useNotificationContext();
7965
+ return (notification) => {
7966
+ dispatch({ type: 0 /* Notify */, notification });
7967
+ };
7968
+ };
7969
+ var toNotification = (_a) => {
7970
+ var _b = _a, {
7971
+ id,
7972
+ variant,
7973
+ position,
7974
+ duration
7975
+ } = _b, notification = __objRest(_b, [
7976
+ "id",
7977
+ "variant",
7978
+ "position",
7979
+ "duration"
7980
+ ]);
7981
+ return __spreadProps(__spreadValues({}, notification), {
7982
+ id: id || crypto.randomUUID(),
7983
+ variant: variant || "default",
7984
+ position: position || "top",
7985
+ duration: duration || variant === "danger" ? Infinity : 6e3
7986
+ });
7987
+ };
7988
+ var reducer = (state, action) => {
7989
+ switch (action.type) {
7990
+ case 0 /* Notify */:
7991
+ return __spreadProps(__spreadValues({}, state), { notifications: [...state.notifications, toNotification(action.notification)] });
7992
+ case 1 /* Dismiss */:
7993
+ return __spreadProps(__spreadValues({}, state), {
7994
+ notifications: state.notifications.filter((notification) => notification.id !== action.notificationId)
7995
+ });
7996
+ default:
7997
+ throw new Error("Unsupported action type.");
7998
+ }
7999
+ };
8000
+ var NotificationProvider = ({ children }) => {
8001
+ const [state, dispatch] = useReducer(reducer, { notifications: [] });
8002
+ return /* @__PURE__ */ React79.createElement(NotificationContext.Provider, {
8003
+ value: [state, dispatch]
8004
+ }, children);
8005
+ };
8006
+ var isCentered = (position) => position === "top" || position === "bottom";
8007
+ var PADDING = 20;
8008
+ var Notification = ({ notification, onDismiss }) => {
8009
+ const { id, message, title, variant, duration } = notification;
8010
+ useEffect9(() => {
8011
+ let timer;
8012
+ if (duration !== Infinity) {
8013
+ timer = setTimeout(() => {
8014
+ onDismiss(id);
8015
+ }, duration);
8016
+ }
8017
+ return () => {
8018
+ if (timer) {
8019
+ clearTimeout(timer);
8020
+ }
8021
+ };
8022
+ }, [duration]);
8023
+ return /* @__PURE__ */ React79.createElement(Alert2, {
8024
+ title,
8025
+ type: variant === "danger" ? "error" : "information"
8026
+ }, message);
8027
+ };
8028
+ var NotificationConsumer = () => {
8029
+ const [state, dispatch] = useNotificationContext();
8030
+ const notificationsByPosition = groupBy(state.notifications, "position");
8031
+ const positions = Object.keys(notificationsByPosition);
8032
+ const onDismiss = (notificationId) => {
8033
+ dispatch({ type: 1 /* Dismiss */, notificationId });
8034
+ };
8035
+ return /* @__PURE__ */ React79.createElement("div", null, positions.map((position) => {
8036
+ var _a;
8037
+ return /* @__PURE__ */ React79.createElement(Spacing, {
8038
+ gap: "3",
8039
+ key: position,
8040
+ style: {
8041
+ position: "fixed",
8042
+ bottom: position.includes("bottom") ? PADDING : void 0,
8043
+ top: position.includes("top") ? PADDING : void 0,
8044
+ right: position.includes("right") ? PADDING : void 0,
8045
+ left: isCentered(position) ? "50%" : position.includes("left") ? PADDING : void 0,
8046
+ transform: isCentered(position) ? "translateX(-50%)" : void 0,
8047
+ zIndex: 9e3
8048
+ }
8049
+ }, (_a = notificationsByPosition[position]) == null ? void 0 : _a.map((notification) => /* @__PURE__ */ React79.createElement(Notification, {
8050
+ key: notification.id,
8051
+ notification,
8052
+ onDismiss
8053
+ })));
8054
+ }));
8055
+ };
8056
+
7935
8057
  // src/molecules/PageHeader/PageHeader.tsx
7936
- import React79 from "react";
8058
+ import React81 from "react";
7937
8059
  import castArray3 from "lodash/castArray";
7938
8060
  import omit14 from "lodash/omit";
7939
8061
 
7940
8062
  // src/atoms/PageHeader/PageHeader.tsx
7941
- import React78 from "react";
8063
+ import React80 from "react";
7942
8064
  var PageHeader = (_a) => {
7943
8065
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7944
- return /* @__PURE__ */ React78.createElement("div", __spreadValues({
8066
+ return /* @__PURE__ */ React80.createElement("div", __spreadValues({
7945
8067
  className: classNames(tw("flex flex-row gap-4 pb-6"), className)
7946
8068
  }, rest), children);
7947
8069
  };
7948
8070
  PageHeader.Container = (_a) => {
7949
8071
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7950
- return /* @__PURE__ */ React78.createElement("div", __spreadValues({
8072
+ return /* @__PURE__ */ React80.createElement("div", __spreadValues({
7951
8073
  className: classNames(tw("flex flex-col grow gap-0"), className)
7952
8074
  }, rest), children);
7953
8075
  };
7954
8076
  PageHeader.TitleContainer = (_a) => {
7955
8077
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7956
- return /* @__PURE__ */ React78.createElement("div", __spreadValues({
8078
+ return /* @__PURE__ */ React80.createElement("div", __spreadValues({
7957
8079
  className: classNames(tw("flex flex-col justify-center gap-2"), className)
7958
8080
  }, rest), children);
7959
8081
  };
7960
8082
  PageHeader.Title = (_a) => {
7961
8083
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
7962
- return /* @__PURE__ */ React78.createElement(Typography2.Heading, __spreadProps(__spreadValues({}, rest), {
8084
+ return /* @__PURE__ */ React80.createElement(Typography2.Heading, __spreadProps(__spreadValues({}, rest), {
7963
8085
  color: "grey-100"
7964
8086
  }), children);
7965
8087
  };
7966
8088
  PageHeader.Subtitle = (_a) => {
7967
8089
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
7968
- return /* @__PURE__ */ React78.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
8090
+ return /* @__PURE__ */ React80.createElement(Typography2.Small, __spreadProps(__spreadValues({}, rest), {
7969
8091
  color: "grey-70"
7970
8092
  }), children);
7971
8093
  };
7972
8094
  PageHeader.Chips = (_a) => {
7973
8095
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7974
- return /* @__PURE__ */ React78.createElement("div", __spreadValues({
8096
+ return /* @__PURE__ */ React80.createElement("div", __spreadValues({
7975
8097
  className: classNames(tw("flex gap-3"), className)
7976
8098
  }, rest), children);
7977
8099
  };
7978
8100
  PageHeader.Actions = (_a) => {
7979
8101
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
7980
- return /* @__PURE__ */ React78.createElement("div", __spreadValues({
8102
+ return /* @__PURE__ */ React80.createElement("div", __spreadValues({
7981
8103
  className: classNames(tw("flex flex-row gap-4 self-start"), className)
7982
8104
  }, rest), children);
7983
8105
  };
@@ -7993,34 +8115,34 @@ var PageHeader2 = ({
7993
8115
  chips = [],
7994
8116
  breadcrumbs
7995
8117
  }) => {
7996
- return /* @__PURE__ */ React79.createElement(PageHeader, null, /* @__PURE__ */ React79.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React79.createElement(Box, {
8118
+ return /* @__PURE__ */ React81.createElement(PageHeader, null, /* @__PURE__ */ React81.createElement(PageHeader.Container, null, breadcrumbs && /* @__PURE__ */ React81.createElement(Box, {
7997
8119
  marginBottom: image ? "3" : void 0
7998
- }, /* @__PURE__ */ React79.createElement(Breadcrumbs, null, breadcrumbs)), /* @__PURE__ */ React79.createElement(Flexbox, {
8120
+ }, /* @__PURE__ */ React81.createElement(Breadcrumbs, null, breadcrumbs)), /* @__PURE__ */ React81.createElement(Flexbox, {
7999
8121
  gap: "5"
8000
- }, image && /* @__PURE__ */ React79.createElement("img", {
8122
+ }, image && /* @__PURE__ */ React81.createElement("img", {
8001
8123
  src: image,
8002
8124
  alt: imageAlt,
8003
8125
  className: tw("w-[56px] h-[56px]")
8004
- }), /* @__PURE__ */ React79.createElement(PageHeader.TitleContainer, null, /* @__PURE__ */ React79.createElement(PageHeader.Title, null, title), chips.length > 0 && /* @__PURE__ */ React79.createElement(PageHeader.Chips, null, chips.map((chip) => /* @__PURE__ */ React79.createElement(Chip2, {
8126
+ }), /* @__PURE__ */ React81.createElement(PageHeader.TitleContainer, null, /* @__PURE__ */ React81.createElement(PageHeader.Title, null, title), chips.length > 0 && /* @__PURE__ */ React81.createElement(PageHeader.Chips, null, chips.map((chip) => /* @__PURE__ */ React81.createElement(Chip2, {
8005
8127
  key: chip,
8006
8128
  dense: true,
8007
8129
  text: chip
8008
- }))), subtitle && /* @__PURE__ */ React79.createElement(PageHeader.Subtitle, null, subtitle)))), (secondaryActions || primaryAction) && /* @__PURE__ */ React79.createElement(PageHeader.Actions, null, secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_a) => {
8130
+ }))), subtitle && /* @__PURE__ */ React81.createElement(PageHeader.Subtitle, null, subtitle)))), (secondaryActions || primaryAction) && /* @__PURE__ */ React81.createElement(PageHeader.Actions, null, secondaryActions && castArray3(secondaryActions).filter(Boolean).map((_a) => {
8009
8131
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
8010
- return /* @__PURE__ */ React79.createElement(Button.Secondary, __spreadValues({
8132
+ return /* @__PURE__ */ React81.createElement(Button.Secondary, __spreadValues({
8011
8133
  key: text
8012
8134
  }, action), text);
8013
- }), primaryAction && /* @__PURE__ */ React79.createElement(Button.Primary, __spreadValues({
8135
+ }), primaryAction && /* @__PURE__ */ React81.createElement(Button.Primary, __spreadValues({
8014
8136
  key: primaryAction.text
8015
8137
  }, omit14(primaryAction, "text")), primaryAction.text)));
8016
8138
  };
8017
8139
 
8018
8140
  // src/molecules/Pagination/Pagination.tsx
8019
- import React81 from "react";
8141
+ import React83 from "react";
8020
8142
  import clamp from "lodash/clamp";
8021
8143
 
8022
8144
  // src/molecules/Select/Select.tsx
8023
- import React80, { useRef as useRef12, useState as useState10 } from "react";
8145
+ import React82, { useRef as useRef12, useState as useState10 } from "react";
8024
8146
  import { useSelect } from "downshift";
8025
8147
  import defaults from "lodash/defaults";
8026
8148
  import isArray from "lodash/isArray";
@@ -8036,10 +8158,10 @@ var hasOptionGroups = (val) => {
8036
8158
  };
8037
8159
  var defaultRenderOption = (item, props, { selectedItem }, { getOptionKey, getValue, optionToString = getOptionLabelBuiltin }) => {
8038
8160
  var _a, _b;
8039
- return /* @__PURE__ */ React80.createElement(Select.Item, __spreadValues({
8161
+ return /* @__PURE__ */ React82.createElement(Select.Item, __spreadValues({
8040
8162
  key: (_b = (_a = getOptionKey == null ? void 0 : getOptionKey(item)) != null ? _a : getValue == null ? void 0 : getValue(item)) != null ? _b : optionToString(item),
8041
8163
  selected: item === selectedItem
8042
- }, props), hasIconProperty(item) && /* @__PURE__ */ React80.createElement(InlineIcon, {
8164
+ }, props), hasIconProperty(item) && /* @__PURE__ */ React82.createElement(InlineIcon, {
8043
8165
  icon: item.icon
8044
8166
  }), optionToString(item));
8045
8167
  };
@@ -8158,13 +8280,13 @@ var _SelectBase = (props) => {
8158
8280
  },
8159
8281
  withDefaults
8160
8282
  );
8161
- const renderGroup = (group) => /* @__PURE__ */ React80.createElement(React80.Fragment, {
8283
+ const renderGroup = (group) => /* @__PURE__ */ React82.createElement(React82.Fragment, {
8162
8284
  key: group.label
8163
- }, /* @__PURE__ */ React80.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
8164
- const input = /* @__PURE__ */ React80.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
8285
+ }, /* @__PURE__ */ React82.createElement(Select.Group, null, group.label), group.options.map((opt) => renderItem(opt, items.indexOf(opt))));
8286
+ const input = /* @__PURE__ */ React82.createElement(Select.InputContainer, __spreadProps(__spreadValues({}, getToggleButtonProps({ disabled: disabled || readOnly, ref: targetRef })), {
8165
8287
  variant: disabled ? "disabled" : !valid ? "error" : readOnly ? "readOnly" : hasFocus ? "focused" : "default",
8166
8288
  tabIndex: 0
8167
- }), /* @__PURE__ */ React80.createElement(Select.Input, __spreadProps(__spreadValues({
8289
+ }), /* @__PURE__ */ React82.createElement(Select.Input, __spreadProps(__spreadValues({
8168
8290
  id,
8169
8291
  name
8170
8292
  }, rest), {
@@ -8176,26 +8298,26 @@ var _SelectBase = (props) => {
8176
8298
  tabIndex: -1,
8177
8299
  onFocus: () => setFocus(true),
8178
8300
  onBlur: () => setFocus(false)
8179
- })), !readOnly && /* @__PURE__ */ React80.createElement(Select.Toggle, {
8301
+ })), !readOnly && /* @__PURE__ */ React82.createElement(Select.Toggle, {
8180
8302
  disabled,
8181
8303
  isOpen,
8182
8304
  tabIndex: -1
8183
8305
  }));
8184
8306
  const menuProps = getMenuProps({ ref: menuRef }, { suppressRefError: !isOpen });
8185
- return /* @__PURE__ */ React80.createElement("div", {
8307
+ return /* @__PURE__ */ React82.createElement("div", {
8186
8308
  className: tw("relative")
8187
- }, labelWrapper ? React80.cloneElement(labelWrapper, { children: input }) : input, isOpen && /* @__PURE__ */ React80.createElement(PopoverOverlay, {
8309
+ }, labelWrapper ? React82.cloneElement(labelWrapper, { children: input }) : input, isOpen && /* @__PURE__ */ React82.createElement(PopoverOverlay, {
8188
8310
  state,
8189
8311
  triggerRef: targetRef,
8190
8312
  placement: "bottom-left",
8191
8313
  shouldFlip: true,
8192
8314
  style: { width: (_b = targetRef.current) == null ? void 0 : _b.offsetWidth }
8193
- }, /* @__PURE__ */ React80.createElement(Select.Menu, __spreadValues({
8315
+ }, /* @__PURE__ */ React82.createElement(Select.Menu, __spreadValues({
8194
8316
  ref: menuRef,
8195
8317
  maxHeight
8196
- }, menuProps), options.length === 0 && /* @__PURE__ */ React80.createElement(Select.EmptyStateContainer, null, emptyState), options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), actions.length > 0 && /* @__PURE__ */ React80.createElement(React80.Fragment, null, /* @__PURE__ */ React80.createElement(Select.Divider, {
8318
+ }, menuProps), options.length === 0 && /* @__PURE__ */ React82.createElement(Select.EmptyStateContainer, null, emptyState), options.length > 0 && !hasOptionGroups(options) && options.map(renderItem), options.length > 0 && hasOptionGroups(options) && options.map(renderGroup), actions.length > 0 && /* @__PURE__ */ React82.createElement(React82.Fragment, null, /* @__PURE__ */ React82.createElement(Select.Divider, {
8197
8319
  onMouseOver: () => setHighlightedIndex(-1)
8198
- }), actions.map((act, index) => /* @__PURE__ */ React80.createElement(Select.ActionItem, __spreadProps(__spreadValues({
8320
+ }), actions.map((act, index) => /* @__PURE__ */ React82.createElement(Select.ActionItem, __spreadProps(__spreadValues({
8199
8321
  key: `${index}`
8200
8322
  }, act), {
8201
8323
  onMouseOver: () => setHighlightedIndex(-1),
@@ -8205,10 +8327,10 @@ var _SelectBase = (props) => {
8205
8327
  }
8206
8328
  }), act.label))))));
8207
8329
  };
8208
- var SelectBase = (props) => /* @__PURE__ */ React80.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
8330
+ var SelectBase = (props) => /* @__PURE__ */ React82.createElement(_SelectBase, __spreadProps(__spreadValues({}, props), {
8209
8331
  labelWrapper: void 0
8210
8332
  }));
8211
- var SelectBaseSkeleton = () => /* @__PURE__ */ React80.createElement(Skeleton, {
8333
+ var SelectBaseSkeleton = () => /* @__PURE__ */ React82.createElement(Skeleton, {
8212
8334
  height: 38
8213
8335
  });
8214
8336
  SelectBase.Skeleton = SelectBaseSkeleton;
@@ -8226,19 +8348,19 @@ var Select2 = (_a) => {
8226
8348
  const baseProps = omit15(props, Object.keys(labelProps));
8227
8349
  const legacyError = labelProps.error !== void 0 && labelProps.valid === false;
8228
8350
  const variant = !labelProps.valid || legacyError ? "error" : labelProps.disabled ? "disabled" : "default";
8229
- const label = /* @__PURE__ */ React80.createElement(Label, __spreadValues({
8351
+ const label = /* @__PURE__ */ React82.createElement(Label, __spreadValues({
8230
8352
  id: `${id.current}-label`,
8231
8353
  htmlFor: `${id.current}-input`,
8232
8354
  variant,
8233
8355
  messageId: errorMessageId
8234
8356
  }, labelProps));
8235
- return /* @__PURE__ */ React80.createElement(FormControl, null, /* @__PURE__ */ React80.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
8357
+ return /* @__PURE__ */ React82.createElement(FormControl, null, /* @__PURE__ */ React82.createElement(_SelectBase, __spreadProps(__spreadValues(__spreadValues({}, baseProps), errorProps), {
8236
8358
  id: `${id.current}-input`,
8237
8359
  options,
8238
8360
  disabled: props.disabled,
8239
8361
  valid: props.valid,
8240
8362
  labelWrapper: label
8241
- })), /* @__PURE__ */ React80.createElement(HelperText, {
8363
+ })), /* @__PURE__ */ React82.createElement(HelperText, {
8242
8364
  messageId: errorMessageId,
8243
8365
  error: !labelProps.valid,
8244
8366
  helperText: labelProps.helperText,
@@ -8247,7 +8369,7 @@ var Select2 = (_a) => {
8247
8369
  reserveSpaceForError: labelProps.reserveSpaceForError
8248
8370
  }));
8249
8371
  };
8250
- var SelectSkeleton = () => /* @__PURE__ */ React80.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React80.createElement(SelectBase.Skeleton, null));
8372
+ var SelectSkeleton = () => /* @__PURE__ */ React82.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React82.createElement(SelectBase.Skeleton, null));
8251
8373
  Select2.Skeleton = SelectSkeleton;
8252
8374
  Select2.Skeleton.displayName = "Select.Skeleton";
8253
8375
 
@@ -8266,23 +8388,23 @@ var Pagination = ({
8266
8388
  pageSizes,
8267
8389
  onPageSizeChange
8268
8390
  }) => {
8269
- const [value, setValue] = React81.useState(currentPage);
8270
- React81.useEffect(() => {
8391
+ const [value, setValue] = React83.useState(currentPage);
8392
+ React83.useEffect(() => {
8271
8393
  setValue(currentPage);
8272
8394
  }, [currentPage]);
8273
- return /* @__PURE__ */ React81.createElement(Box, {
8395
+ return /* @__PURE__ */ React83.createElement(Box, {
8274
8396
  className: tw("grid grid-cols-[200px_1fr_200px]"),
8275
8397
  backgroundColor: "grey-0",
8276
8398
  padding: "4"
8277
- }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React81.createElement(Box, {
8399
+ }, pageSizes && onPageSizeChange && typeof pageSize === "number" ? /* @__PURE__ */ React83.createElement(Box, {
8278
8400
  display: "flex",
8279
8401
  alignItems: "center",
8280
8402
  gap: "4"
8281
- }, /* @__PURE__ */ React81.createElement(Typography2.Small, {
8403
+ }, /* @__PURE__ */ React83.createElement(Typography2.Small, {
8282
8404
  color: "grey-50"
8283
- }, "Items per page "), /* @__PURE__ */ React81.createElement("div", {
8405
+ }, "Items per page "), /* @__PURE__ */ React83.createElement("div", {
8284
8406
  className: tw("max-w-[70px]")
8285
- }, /* @__PURE__ */ React81.createElement(SelectBase, {
8407
+ }, /* @__PURE__ */ React83.createElement(SelectBase, {
8286
8408
  options: pageSizes.map((size) => size.toString()),
8287
8409
  value: pageSize.toString(),
8288
8410
  onChange: (size) => {
@@ -8293,26 +8415,26 @@ var Pagination = ({
8293
8415
  }
8294
8416
  }
8295
8417
  }
8296
- }))) : /* @__PURE__ */ React81.createElement("div", null), /* @__PURE__ */ React81.createElement(Box, {
8418
+ }))) : /* @__PURE__ */ React83.createElement("div", null), /* @__PURE__ */ React83.createElement(Box, {
8297
8419
  display: "flex",
8298
8420
  justifyContent: "center",
8299
8421
  alignItems: "center",
8300
8422
  className: tw("grow")
8301
- }, /* @__PURE__ */ React81.createElement(IconButton, {
8423
+ }, /* @__PURE__ */ React83.createElement(IconButton, {
8302
8424
  "aria-label": "First",
8303
8425
  onClick: () => onPageChange(1),
8304
8426
  icon: import_chevronBackward.default,
8305
8427
  disabled: !hasPreviousPage
8306
- }), /* @__PURE__ */ React81.createElement(IconButton, {
8428
+ }), /* @__PURE__ */ React83.createElement(IconButton, {
8307
8429
  "aria-label": "Previous",
8308
8430
  onClick: () => onPageChange(currentPage - 1),
8309
8431
  icon: import_chevronLeft3.default,
8310
8432
  disabled: !hasPreviousPage
8311
- }), /* @__PURE__ */ React81.createElement(Box, {
8433
+ }), /* @__PURE__ */ React83.createElement(Box, {
8312
8434
  paddingX: "4"
8313
- }, /* @__PURE__ */ React81.createElement(Typography2.Small, {
8435
+ }, /* @__PURE__ */ React83.createElement(Typography2.Small, {
8314
8436
  color: "grey-60"
8315
- }, "Page")), /* @__PURE__ */ React81.createElement(InputBase, {
8437
+ }, "Page")), /* @__PURE__ */ React83.createElement(InputBase, {
8316
8438
  className: classNames(tw("text-center max-w-[40px]"), "no-arrows"),
8317
8439
  type: "number",
8318
8440
  min: 1,
@@ -8329,45 +8451,45 @@ var Pagination = ({
8329
8451
  const newPage = !isNaN(numberValue) ? clamp(numberValue, 1, totalPages) : 1;
8330
8452
  onPageChange(newPage);
8331
8453
  }
8332
- }), /* @__PURE__ */ React81.createElement(Box, {
8454
+ }), /* @__PURE__ */ React83.createElement(Box, {
8333
8455
  paddingX: "4"
8334
- }, /* @__PURE__ */ React81.createElement(Typography2.Small, {
8456
+ }, /* @__PURE__ */ React83.createElement(Typography2.Small, {
8335
8457
  color: "grey-60"
8336
- }, "of ", totalPages)), /* @__PURE__ */ React81.createElement(IconButton, {
8458
+ }, "of ", totalPages)), /* @__PURE__ */ React83.createElement(IconButton, {
8337
8459
  "aria-label": "Next",
8338
8460
  onClick: () => onPageChange(currentPage + 1),
8339
8461
  icon: import_chevronRight3.default,
8340
8462
  disabled: !hasNextPage
8341
- }), /* @__PURE__ */ React81.createElement(IconButton, {
8463
+ }), /* @__PURE__ */ React83.createElement(IconButton, {
8342
8464
  "aria-label": "Last",
8343
8465
  onClick: () => onPageChange(totalPages),
8344
8466
  icon: import_chevronForward.default,
8345
8467
  disabled: !hasNextPage
8346
- })), /* @__PURE__ */ React81.createElement("div", null));
8468
+ })), /* @__PURE__ */ React83.createElement("div", null));
8347
8469
  };
8348
8470
 
8349
8471
  // src/molecules/PopoverDialog/PopoverDialog.tsx
8350
- import React83 from "react";
8472
+ import React85 from "react";
8351
8473
  import omit16 from "lodash/omit";
8352
8474
 
8353
8475
  // src/atoms/PopoverDialog/PopoverDialog.tsx
8354
- import React82 from "react";
8476
+ import React84 from "react";
8355
8477
  var Header2 = (_a) => {
8356
8478
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8357
- return /* @__PURE__ */ React82.createElement("div", __spreadProps(__spreadValues({}, rest), {
8479
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8358
8480
  className: classNames(tw("p-5 gap-3 flex items-center"), className)
8359
8481
  }), children);
8360
8482
  };
8361
8483
  var Title = (_a) => {
8362
8484
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8363
- return /* @__PURE__ */ React82.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8485
+ return /* @__PURE__ */ React84.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8364
8486
  htmlTag: "h1",
8365
8487
  variant: "small-strong"
8366
8488
  }), children);
8367
8489
  };
8368
8490
  var Body = (_a) => {
8369
8491
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8370
- return /* @__PURE__ */ React82.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8492
+ return /* @__PURE__ */ React84.createElement(Typography, __spreadProps(__spreadValues({}, rest), {
8371
8493
  htmlTag: "div",
8372
8494
  variant: "caption",
8373
8495
  className: classNames(tw("px-5 overflow-y-auto"), className)
@@ -8375,13 +8497,13 @@ var Body = (_a) => {
8375
8497
  };
8376
8498
  var Footer2 = (_a) => {
8377
8499
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8378
- return /* @__PURE__ */ React82.createElement("div", __spreadProps(__spreadValues({}, rest), {
8500
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8379
8501
  className: classNames(tw("p-5"), className)
8380
8502
  }), children);
8381
8503
  };
8382
8504
  var Actions2 = (_a) => {
8383
8505
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8384
- return /* @__PURE__ */ React82.createElement("div", __spreadProps(__spreadValues({}, rest), {
8506
+ return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8385
8507
  className: classNames(tw("flex gap-4"), className)
8386
8508
  }), children);
8387
8509
  };
@@ -8397,13 +8519,13 @@ var PopoverDialog = {
8397
8519
  var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction, children }) => {
8398
8520
  const wrapPromptWithBody = (child) => {
8399
8521
  if (isComponentType(child, PopoverDialog2.Prompt)) {
8400
- return /* @__PURE__ */ React83.createElement(Popover2.Panel, {
8522
+ return /* @__PURE__ */ React85.createElement(Popover2.Panel, {
8401
8523
  className: tw("max-w-[300px]")
8402
- }, /* @__PURE__ */ React83.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React83.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React83.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React83.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React83.createElement(Popover2.Button, __spreadValues({
8524
+ }, /* @__PURE__ */ React85.createElement(PopoverDialog.Header, null, /* @__PURE__ */ React85.createElement(PopoverDialog.Title, null, title)), child, /* @__PURE__ */ React85.createElement(PopoverDialog.Footer, null, /* @__PURE__ */ React85.createElement(PopoverDialog.Actions, null, secondaryAction && /* @__PURE__ */ React85.createElement(Popover2.Button, __spreadValues({
8403
8525
  kind: "secondary-ghost",
8404
8526
  key: secondaryAction.text,
8405
8527
  dense: true
8406
- }, omit16(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React83.createElement(Popover2.Button, __spreadValues({
8528
+ }, omit16(secondaryAction, "text")), secondaryAction.text), /* @__PURE__ */ React85.createElement(Popover2.Button, __spreadValues({
8407
8529
  kind: "ghost",
8408
8530
  key: primaryAction.text,
8409
8531
  dense: true
@@ -8411,15 +8533,15 @@ var PopoverDialog2 = ({ placement, open, title, secondaryAction, primaryAction,
8411
8533
  }
8412
8534
  return child;
8413
8535
  };
8414
- return /* @__PURE__ */ React83.createElement(Popover2, {
8536
+ return /* @__PURE__ */ React85.createElement(Popover2, {
8415
8537
  type: "dialog",
8416
8538
  isOpen: open,
8417
8539
  placement,
8418
8540
  containFocus: true
8419
- }, React83.Children.map(children, wrapPromptWithBody));
8541
+ }, React85.Children.map(children, wrapPromptWithBody));
8420
8542
  };
8421
8543
  PopoverDialog2.Trigger = Popover2.Trigger;
8422
- var Prompt = ({ children }) => /* @__PURE__ */ React83.createElement(PopoverDialog.Body, null, children);
8544
+ var Prompt = ({ children }) => /* @__PURE__ */ React85.createElement(PopoverDialog.Body, null, children);
8423
8545
  Prompt.displayName = "PopoverDialog.Prompt";
8424
8546
  PopoverDialog2.Prompt = Prompt;
8425
8547
 
@@ -8428,14 +8550,14 @@ import { createPortal } from "react-dom";
8428
8550
  var Portal = ({ children, to }) => createPortal(children, to);
8429
8551
 
8430
8552
  // src/molecules/ProgressBar/ProgressBar.tsx
8431
- import React85 from "react";
8553
+ import React87 from "react";
8432
8554
 
8433
8555
  // src/atoms/ProgressBar/ProgressBar.tsx
8434
- import React84 from "react";
8556
+ import React86 from "react";
8435
8557
  import clamp2 from "lodash/clamp";
8436
8558
  var ProgressBar = (_a) => {
8437
8559
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8438
- return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8560
+ return /* @__PURE__ */ React86.createElement("div", __spreadProps(__spreadValues({}, rest), {
8439
8561
  className: classNames(
8440
8562
  tw("relative flex items-center w-full bg-grey-0 h-2 rounded-full overflow-hidden"),
8441
8563
  className
@@ -8451,7 +8573,7 @@ var STATUS_COLORS = {
8451
8573
  ProgressBar.Indicator = (_a) => {
8452
8574
  var _b = _a, { min, max, value, "aria-label": ariaLabel, status, className } = _b, rest = __objRest(_b, ["min", "max", "value", "aria-label", "status", "className"]);
8453
8575
  const completedPercentage = clamp2((value - min) / (max - min) * 100, 0, 100);
8454
- return /* @__PURE__ */ React84.createElement("div", __spreadProps(__spreadValues({}, rest), {
8576
+ return /* @__PURE__ */ React86.createElement("div", __spreadProps(__spreadValues({}, rest), {
8455
8577
  className: classNames(
8456
8578
  tw("h-2 rounded-full transition-all ease-in-out delay-150"),
8457
8579
  STATUS_COLORS[status],
@@ -8467,11 +8589,11 @@ ProgressBar.Indicator = (_a) => {
8467
8589
  };
8468
8590
  ProgressBar.Labels = (_a) => {
8469
8591
  var _b = _a, { children, startLabel, endLabel, className } = _b, rest = __objRest(_b, ["children", "startLabel", "endLabel", "className"]);
8470
- return /* @__PURE__ */ React84.createElement("div", {
8592
+ return /* @__PURE__ */ React86.createElement("div", {
8471
8593
  className: classNames(tw("flex flex-row"), className)
8472
- }, /* @__PURE__ */ React84.createElement("span", __spreadProps(__spreadValues({}, rest), {
8594
+ }, /* @__PURE__ */ React86.createElement("span", __spreadProps(__spreadValues({}, rest), {
8473
8595
  className: tw("grow text-grey-70 typography-caption")
8474
- }), startLabel), /* @__PURE__ */ React84.createElement("span", __spreadProps(__spreadValues({}, rest), {
8596
+ }), startLabel), /* @__PURE__ */ React86.createElement("span", __spreadProps(__spreadValues({}, rest), {
8475
8597
  className: tw("grow text-grey-70 typography-caption text-right")
8476
8598
  }), endLabel));
8477
8599
  };
@@ -8489,7 +8611,7 @@ var ProgressBar2 = (props) => {
8489
8611
  if (min > max) {
8490
8612
  throw new Error("`min` value provided to `ProgressBar` is greater than `max` value.");
8491
8613
  }
8492
- const progress = /* @__PURE__ */ React85.createElement(ProgressBar, null, /* @__PURE__ */ React85.createElement(ProgressBar.Indicator, {
8614
+ const progress = /* @__PURE__ */ React87.createElement(ProgressBar, null, /* @__PURE__ */ React87.createElement(ProgressBar.Indicator, {
8493
8615
  status: value === max ? completedStatus : progresStatus,
8494
8616
  min,
8495
8617
  max,
@@ -8499,13 +8621,13 @@ var ProgressBar2 = (props) => {
8499
8621
  if (props.dense) {
8500
8622
  return progress;
8501
8623
  }
8502
- return /* @__PURE__ */ React85.createElement("div", null, progress, /* @__PURE__ */ React85.createElement(ProgressBar.Labels, {
8624
+ return /* @__PURE__ */ React87.createElement("div", null, progress, /* @__PURE__ */ React87.createElement(ProgressBar.Labels, {
8503
8625
  className: tw("py-2"),
8504
8626
  startLabel: props.startLabel,
8505
8627
  endLabel: props.endLabel
8506
8628
  }));
8507
8629
  };
8508
- var ProgressBarSkeleton = () => /* @__PURE__ */ React85.createElement(Skeleton, {
8630
+ var ProgressBarSkeleton = () => /* @__PURE__ */ React87.createElement(Skeleton, {
8509
8631
  height: 4,
8510
8632
  display: "block"
8511
8633
  });
@@ -8513,13 +8635,13 @@ ProgressBar2.Skeleton = ProgressBarSkeleton;
8513
8635
  ProgressBar2.Skeleton.displayName = "ProgressBar.Skeleton";
8514
8636
 
8515
8637
  // src/molecules/RadioButton/RadioButton.tsx
8516
- import React86 from "react";
8517
- var RadioButton2 = React86.forwardRef(
8638
+ import React88 from "react";
8639
+ var RadioButton2 = React88.forwardRef(
8518
8640
  (_a, ref) => {
8519
8641
  var _b = _a, { name, id, readOnly = false, disabled = false, caption, children, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["name", "id", "readOnly", "disabled", "caption", "children", "aria-label"]);
8520
8642
  var _a2;
8521
8643
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
8522
- return !readOnly || isChecked ? /* @__PURE__ */ React86.createElement(ControlLabel, {
8644
+ return !readOnly || isChecked ? /* @__PURE__ */ React88.createElement(ControlLabel, {
8523
8645
  htmlFor: id,
8524
8646
  label: children,
8525
8647
  "aria-label": ariaLabel,
@@ -8527,7 +8649,7 @@ var RadioButton2 = React86.forwardRef(
8527
8649
  readOnly,
8528
8650
  disabled,
8529
8651
  style: { gap: "0 8px" }
8530
- }, !readOnly && /* @__PURE__ */ React86.createElement(RadioButton, __spreadProps(__spreadValues({
8652
+ }, !readOnly && /* @__PURE__ */ React88.createElement(RadioButton, __spreadProps(__spreadValues({
8531
8653
  id,
8532
8654
  ref,
8533
8655
  name
@@ -8538,12 +8660,12 @@ var RadioButton2 = React86.forwardRef(
8538
8660
  }
8539
8661
  );
8540
8662
  RadioButton2.displayName = "RadioButton";
8541
- var RadioButtonSkeleton = () => /* @__PURE__ */ React86.createElement("div", {
8663
+ var RadioButtonSkeleton = () => /* @__PURE__ */ React88.createElement("div", {
8542
8664
  className: tw("flex gap-3")
8543
- }, /* @__PURE__ */ React86.createElement(Skeleton, {
8665
+ }, /* @__PURE__ */ React88.createElement(Skeleton, {
8544
8666
  height: 20,
8545
8667
  width: 20
8546
- }), /* @__PURE__ */ React86.createElement(Skeleton, {
8668
+ }), /* @__PURE__ */ React88.createElement(Skeleton, {
8547
8669
  height: 20,
8548
8670
  width: 150
8549
8671
  }));
@@ -8551,10 +8673,10 @@ RadioButton2.Skeleton = RadioButtonSkeleton;
8551
8673
  RadioButton2.Skeleton.displayName = "RadioButton.Skeleton";
8552
8674
 
8553
8675
  // src/molecules/RadioButtonGroup/RadioButtonGroup.tsx
8554
- import React87 from "react";
8676
+ import React89 from "react";
8555
8677
  import uniqueId8 from "lodash/uniqueId";
8556
8678
  var isRadioButton = (c) => {
8557
- return React87.isValidElement(c) && c.type === RadioButton2;
8679
+ return React89.isValidElement(c) && c.type === RadioButton2;
8558
8680
  };
8559
8681
  var RadioButtonGroup = (_a) => {
8560
8682
  var _b = _a, {
@@ -8577,7 +8699,7 @@ var RadioButtonGroup = (_a) => {
8577
8699
  "children"
8578
8700
  ]);
8579
8701
  var _a2;
8580
- const [value, setValue] = React87.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
8702
+ const [value, setValue] = React89.useState((_a2 = _value != null ? _value : defaultValue) != null ? _a2 : "");
8581
8703
  const errorMessageId = uniqueId8();
8582
8704
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
8583
8705
  const labelControlProps = getLabelControlProps(props);
@@ -8588,14 +8710,14 @@ var RadioButtonGroup = (_a) => {
8588
8710
  setValue(e.target.value);
8589
8711
  onChange == null ? void 0 : onChange(e.target.value);
8590
8712
  };
8591
- const content = React87.Children.map(children, (c) => {
8713
+ const content = React89.Children.map(children, (c) => {
8592
8714
  var _a3, _b2, _c;
8593
8715
  if (!isRadioButton(c)) {
8594
8716
  return null;
8595
8717
  }
8596
8718
  const defaultChecked = defaultValue === void 0 ? void 0 : c.props.value === defaultValue;
8597
8719
  const checked = value === void 0 ? void 0 : c.props.value === value;
8598
- return React87.cloneElement(c, {
8720
+ return React89.cloneElement(c, {
8599
8721
  name,
8600
8722
  defaultChecked: (_a3 = c.props.defaultChecked) != null ? _a3 : defaultChecked,
8601
8723
  checked: (_b2 = c.props.checked) != null ? _b2 : checked,
@@ -8604,11 +8726,11 @@ var RadioButtonGroup = (_a) => {
8604
8726
  readOnly
8605
8727
  });
8606
8728
  });
8607
- return /* @__PURE__ */ React87.createElement(LabelControl, __spreadValues(__spreadValues({
8729
+ return /* @__PURE__ */ React89.createElement(LabelControl, __spreadValues(__spreadValues({
8608
8730
  fieldset: true
8609
- }, labelControlProps), errorProps), cols && /* @__PURE__ */ React87.createElement(InputGroup, {
8731
+ }, labelControlProps), errorProps), cols && /* @__PURE__ */ React89.createElement(InputGroup, {
8610
8732
  cols
8611
- }, content), !cols && /* @__PURE__ */ React87.createElement(Flexbox, {
8733
+ }, content), !cols && /* @__PURE__ */ React89.createElement(Flexbox, {
8612
8734
  direction,
8613
8735
  alignItems: "flex-start",
8614
8736
  colGap: "8",
@@ -8617,12 +8739,12 @@ var RadioButtonGroup = (_a) => {
8617
8739
  }, content));
8618
8740
  };
8619
8741
  var RadioButtonGroupSkeleton = ({ direction = "row", options = 2 }) => {
8620
- return /* @__PURE__ */ React87.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React87.createElement("div", {
8742
+ return /* @__PURE__ */ React89.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React89.createElement("div", {
8621
8743
  className: tw("flex flex-wrap", {
8622
8744
  "flex-row gap-8": direction === "row",
8623
8745
  "flex-col gap-2": direction === "column"
8624
8746
  })
8625
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React87.createElement(RadioButton2.Skeleton, {
8747
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React89.createElement(RadioButton2.Skeleton, {
8626
8748
  key
8627
8749
  }))));
8628
8750
  };
@@ -8630,68 +8752,68 @@ RadioButtonGroup.Skeleton = RadioButtonGroupSkeleton;
8630
8752
  RadioButtonGroup.Skeleton.displayName = "RadioButtonGroup.Skeleton";
8631
8753
 
8632
8754
  // src/molecules/Section/Section.tsx
8633
- import React89 from "react";
8755
+ import React91 from "react";
8634
8756
  import castArray4 from "lodash/castArray";
8635
8757
 
8636
8758
  // src/atoms/Section/Section.tsx
8637
- import React88 from "react";
8759
+ import React90 from "react";
8638
8760
  var Section3 = (_a) => {
8639
8761
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8640
- return /* @__PURE__ */ React88.createElement(Box, __spreadValues({
8762
+ return /* @__PURE__ */ React90.createElement(Box, __spreadValues({
8641
8763
  borderColor: "grey-5",
8642
8764
  borderWidth: "1px"
8643
8765
  }, rest), children);
8644
8766
  };
8645
8767
  Section3.Header = (_a) => {
8646
8768
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8647
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8769
+ return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8648
8770
  className: classNames(tw("px-6 py-5 flex gap-5 justify-between items-center"), className)
8649
8771
  }), children);
8650
8772
  };
8651
8773
  Section3.TitleContainer = (_a) => {
8652
8774
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8653
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8775
+ return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8654
8776
  className: classNames(tw("flex flex-col grow gap-2"), className)
8655
8777
  }), children);
8656
8778
  };
8657
8779
  Section3.Title = (_a) => {
8658
8780
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8659
- return /* @__PURE__ */ React88.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
8781
+ return /* @__PURE__ */ React90.createElement(Typography2.Subheading, __spreadProps(__spreadValues({}, rest), {
8660
8782
  color: "black"
8661
8783
  }), children);
8662
8784
  };
8663
8785
  Section3.Subtitle = (_a) => {
8664
8786
  var _b = _a, { children } = _b, rest = __objRest(_b, ["children"]);
8665
- return /* @__PURE__ */ React88.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
8787
+ return /* @__PURE__ */ React90.createElement(Typography2.SmallText, __spreadProps(__spreadValues({}, rest), {
8666
8788
  color: "grey-70"
8667
8789
  }), children);
8668
8790
  };
8669
8791
  Section3.Actions = (_a) => {
8670
8792
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8671
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8793
+ return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8672
8794
  className: classNames(tw("flex gap-4 justify-end"), className)
8673
8795
  }), children);
8674
8796
  };
8675
8797
  Section3.Body = (_a) => {
8676
8798
  var _b = _a, { children, className } = _b, rest = __objRest(_b, ["children", "className"]);
8677
- return /* @__PURE__ */ React88.createElement("div", __spreadProps(__spreadValues({}, rest), {
8799
+ return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8678
8800
  className: classNames(tw("p-6"), className)
8679
- }), /* @__PURE__ */ React88.createElement(Typography, {
8801
+ }), /* @__PURE__ */ React90.createElement(Typography, {
8680
8802
  htmlTag: "div",
8681
8803
  color: "grey-70"
8682
8804
  }, children));
8683
8805
  };
8684
8806
 
8685
8807
  // src/molecules/Section/Section.tsx
8686
- var Section4 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React89.createElement(Section3, null, title && /* @__PURE__ */ React89.createElement(React89.Fragment, null, /* @__PURE__ */ React89.createElement(Section3.Header, null, /* @__PURE__ */ React89.createElement(Section3.TitleContainer, null, /* @__PURE__ */ React89.createElement(Section3.Title, null, title), subtitle && /* @__PURE__ */ React89.createElement(Section3.Subtitle, null, subtitle)), /* @__PURE__ */ React89.createElement(Section3.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
8808
+ var Section4 = ({ title, subtitle, actions, children }) => /* @__PURE__ */ React91.createElement(Section3, null, title && /* @__PURE__ */ React91.createElement(React91.Fragment, null, /* @__PURE__ */ React91.createElement(Section3.Header, null, /* @__PURE__ */ React91.createElement(Section3.TitleContainer, null, /* @__PURE__ */ React91.createElement(Section3.Title, null, title), subtitle && /* @__PURE__ */ React91.createElement(Section3.Subtitle, null, subtitle)), /* @__PURE__ */ React91.createElement(Section3.Actions, null, actions && castArray4(actions).filter(Boolean).map((_a) => {
8687
8809
  var _b = _a, { text } = _b, action = __objRest(_b, ["text"]);
8688
- return /* @__PURE__ */ React89.createElement(Button.Secondary, __spreadValues({
8810
+ return /* @__PURE__ */ React91.createElement(Button.Secondary, __spreadValues({
8689
8811
  key: text
8690
8812
  }, action), text);
8691
- }))), /* @__PURE__ */ React89.createElement(Divider2, null)), /* @__PURE__ */ React89.createElement(Section3.Body, null, children));
8813
+ }))), /* @__PURE__ */ React91.createElement(Divider2, null)), /* @__PURE__ */ React91.createElement(Section3.Body, null, children));
8692
8814
 
8693
8815
  // src/molecules/SegmentedControl/SegmentedControl.tsx
8694
- import React90 from "react";
8816
+ import React92 from "react";
8695
8817
  var SegmentedControl = (_a) => {
8696
8818
  var _b = _a, {
8697
8819
  children,
@@ -8708,7 +8830,7 @@ var SegmentedControl = (_a) => {
8708
8830
  "selected",
8709
8831
  "className"
8710
8832
  ]);
8711
- return /* @__PURE__ */ React90.createElement("button", __spreadProps(__spreadValues({
8833
+ return /* @__PURE__ */ React92.createElement("button", __spreadProps(__spreadValues({
8712
8834
  type: "button"
8713
8835
  }, rest), {
8714
8836
  className: classNames(
@@ -8739,11 +8861,11 @@ var SegmentedControlGroup = (_a) => {
8739
8861
  "border border-grey-20 text-grey-50": variant === "outlined",
8740
8862
  "bg-grey-0": variant === "raised"
8741
8863
  });
8742
- return /* @__PURE__ */ React90.createElement("div", __spreadProps(__spreadValues({}, rest), {
8864
+ return /* @__PURE__ */ React92.createElement("div", __spreadProps(__spreadValues({}, rest), {
8743
8865
  className: classNames(classes2, className)
8744
- }), React90.Children.map(
8866
+ }), React92.Children.map(
8745
8867
  children,
8746
- (child) => React90.cloneElement(child, {
8868
+ (child) => React92.cloneElement(child, {
8747
8869
  dense,
8748
8870
  variant,
8749
8871
  onClick: () => onChange(child.props.value),
@@ -8780,26 +8902,15 @@ var getCommonClassNames = (dense, selected) => tw(
8780
8902
  }
8781
8903
  );
8782
8904
 
8783
- // src/molecules/Spacing/Spacing.tsx
8784
- import React91 from "react";
8785
- var Spacing = (_a) => {
8786
- var _b = _a, { gap, row } = _b, rest = __objRest(_b, ["gap", "row"]);
8787
- return /* @__PURE__ */ React91.createElement(Box, __spreadProps(__spreadValues({}, rest), {
8788
- display: "flex",
8789
- flexDirection: row ? "row" : "column",
8790
- gap
8791
- }));
8792
- };
8793
-
8794
8905
  // src/molecules/Stepper/Stepper.tsx
8795
- import React93 from "react";
8906
+ import React94 from "react";
8796
8907
 
8797
8908
  // src/atoms/Stepper/Stepper.tsx
8798
- import React92 from "react";
8909
+ import React93 from "react";
8799
8910
  var import_tick5 = __toESM(require_tick());
8800
8911
  var Stepper = (_a) => {
8801
8912
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
8802
- return /* @__PURE__ */ React92.createElement("div", __spreadProps(__spreadValues({}, rest), {
8913
+ return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
8803
8914
  className: classNames(className)
8804
8915
  }));
8805
8916
  };
@@ -8813,7 +8924,7 @@ var ConnectorContainer = (_a) => {
8813
8924
  "completed",
8814
8925
  "dense"
8815
8926
  ]);
8816
- return /* @__PURE__ */ React92.createElement("div", __spreadProps(__spreadValues({}, rest), {
8927
+ return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
8817
8928
  className: classNames(
8818
8929
  tw("absolute w-full -left-1/2", {
8819
8930
  "top-[3px] px-[14px]": Boolean(dense),
@@ -8825,7 +8936,7 @@ var ConnectorContainer = (_a) => {
8825
8936
  };
8826
8937
  var Connector = (_a) => {
8827
8938
  var _b = _a, { children, className, completed, dense } = _b, rest = __objRest(_b, ["children", "className", "completed", "dense"]);
8828
- return /* @__PURE__ */ React92.createElement("div", __spreadProps(__spreadValues({}, rest), {
8939
+ return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
8829
8940
  className: classNames(
8830
8941
  tw("w-full", {
8831
8942
  "bg-grey-20": !completed,
@@ -8839,7 +8950,7 @@ var Connector = (_a) => {
8839
8950
  };
8840
8951
  var Step = (_a) => {
8841
8952
  var _b = _a, { className, state } = _b, rest = __objRest(_b, ["className", "state"]);
8842
- return /* @__PURE__ */ React92.createElement("div", __spreadProps(__spreadValues({}, rest), {
8953
+ return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
8843
8954
  className: classNames(
8844
8955
  tw("flex flex-col items-center text-grey-90 relative text-center", {
8845
8956
  "text-grey-20": state === "inactive"
@@ -8860,13 +8971,13 @@ var getDenseClassNames = (state) => tw("h-[8px] w-[8px]", {
8860
8971
  });
8861
8972
  var Indicator = (_a) => {
8862
8973
  var _b = _a, { children, className, state, dense } = _b, rest = __objRest(_b, ["children", "className", "state", "dense"]);
8863
- return /* @__PURE__ */ React92.createElement("div", __spreadProps(__spreadValues({}, rest), {
8974
+ return /* @__PURE__ */ React93.createElement("div", __spreadProps(__spreadValues({}, rest), {
8864
8975
  className: classNames(
8865
8976
  tw("rounded-full flex justify-center items-center mx-2 mb-3"),
8866
8977
  dense ? getDenseClassNames(state) : getClassNames(state),
8867
8978
  className
8868
8979
  )
8869
- }), state === "completed" ? /* @__PURE__ */ React92.createElement(InlineIcon, {
8980
+ }), state === "completed" ? /* @__PURE__ */ React93.createElement(InlineIcon, {
8870
8981
  icon: import_tick5.default
8871
8982
  }) : dense ? null : children);
8872
8983
  };
@@ -8877,25 +8988,25 @@ Stepper.ConnectorContainer = ConnectorContainer;
8877
8988
 
8878
8989
  // src/molecules/Stepper/Stepper.tsx
8879
8990
  var Stepper2 = ({ children, activeIndex, dense }) => {
8880
- const steps = React93.Children.count(children);
8881
- return /* @__PURE__ */ React93.createElement(Stepper, {
8991
+ const steps = React94.Children.count(children);
8992
+ return /* @__PURE__ */ React94.createElement(Stepper, {
8882
8993
  role: "list"
8883
- }, /* @__PURE__ */ React93.createElement(Template, {
8994
+ }, /* @__PURE__ */ React94.createElement(Template, {
8884
8995
  columns: steps
8885
- }, React93.Children.map(children, (child, index) => {
8996
+ }, React94.Children.map(children, (child, index) => {
8886
8997
  if (!isComponentType(child, Step2)) {
8887
8998
  return new Error("<Stepper> can only have <Stepper.Step> components as children");
8888
8999
  } else {
8889
9000
  const state = index > activeIndex ? "inactive" : index === activeIndex ? "active" : "completed";
8890
- return /* @__PURE__ */ React93.createElement(Stepper.Step, {
9001
+ return /* @__PURE__ */ React94.createElement(Stepper.Step, {
8891
9002
  state,
8892
9003
  "aria-current": state === "active" ? "step" : false,
8893
9004
  role: "listitem"
8894
- }, index > 0 && index <= steps && /* @__PURE__ */ React93.createElement(Stepper.ConnectorContainer, {
9005
+ }, index > 0 && index <= steps && /* @__PURE__ */ React94.createElement(Stepper.ConnectorContainer, {
8895
9006
  dense
8896
- }, /* @__PURE__ */ React93.createElement(Stepper.ConnectorContainer.Connector, {
9007
+ }, /* @__PURE__ */ React94.createElement(Stepper.ConnectorContainer.Connector, {
8897
9008
  completed: state === "completed" || state === "active"
8898
- })), /* @__PURE__ */ React93.createElement(Stepper.Step.Indicator, {
9009
+ })), /* @__PURE__ */ React94.createElement(Stepper.Step.Indicator, {
8899
9010
  state,
8900
9011
  dense
8901
9012
  }, index + 1), child.props.children);
@@ -8908,16 +9019,16 @@ Step2.displayName = "Stepper.Step";
8908
9019
  Stepper2.Step = Step2;
8909
9020
 
8910
9021
  // src/molecules/Switch/Switch.tsx
8911
- import React95 from "react";
9022
+ import React96 from "react";
8912
9023
 
8913
9024
  // src/atoms/Switch/Switch.tsx
8914
- import React94 from "react";
8915
- var Switch = React94.forwardRef(
9025
+ import React95 from "react";
9026
+ var Switch = React95.forwardRef(
8916
9027
  (_a, ref) => {
8917
9028
  var _b = _a, { id, children, name, disabled = false, readOnly = false } = _b, props = __objRest(_b, ["id", "children", "name", "disabled", "readOnly"]);
8918
- return /* @__PURE__ */ React94.createElement("span", {
9029
+ return /* @__PURE__ */ React95.createElement("span", {
8919
9030
  className: tw("relative inline-flex justify-center items-center self-center group")
8920
- }, /* @__PURE__ */ React94.createElement("input", __spreadProps(__spreadValues({
9031
+ }, /* @__PURE__ */ React95.createElement("input", __spreadProps(__spreadValues({
8921
9032
  id,
8922
9033
  ref,
8923
9034
  type: "checkbox",
@@ -8936,7 +9047,7 @@ var Switch = React94.forwardRef(
8936
9047
  ),
8937
9048
  readOnly,
8938
9049
  disabled
8939
- })), /* @__PURE__ */ React94.createElement("span", {
9050
+ })), /* @__PURE__ */ React95.createElement("span", {
8940
9051
  className: tw(
8941
9052
  "pointer-events-none rounded-full absolute inline-block transition duration-300 h-4 w-4 transform peer-checked/switch:translate-x-5",
8942
9053
  "bg-white peer-disabled/switch:bg-grey-0 left-2 peer-checked/switch:left-1",
@@ -8949,12 +9060,12 @@ var Switch = React94.forwardRef(
8949
9060
  );
8950
9061
 
8951
9062
  // src/molecules/Switch/Switch.tsx
8952
- var Switch2 = React95.forwardRef(
9063
+ var Switch2 = React96.forwardRef(
8953
9064
  (_a, ref) => {
8954
9065
  var _b = _a, { id, name, caption, readOnly = false, disabled = false, children, "aria-label": ariaLabel } = _b, props = __objRest(_b, ["id", "name", "caption", "readOnly", "disabled", "children", "aria-label"]);
8955
9066
  var _a2;
8956
9067
  const isChecked = (_a2 = props.checked) != null ? _a2 : props.defaultChecked;
8957
- return !readOnly || isChecked ? /* @__PURE__ */ React95.createElement(ControlLabel, {
9068
+ return !readOnly || isChecked ? /* @__PURE__ */ React96.createElement(ControlLabel, {
8958
9069
  htmlFor: id,
8959
9070
  label: children,
8960
9071
  "aria-label": ariaLabel,
@@ -8962,7 +9073,7 @@ var Switch2 = React95.forwardRef(
8962
9073
  readOnly,
8963
9074
  disabled,
8964
9075
  style: { gap: "0 8px" }
8965
- }, !readOnly && /* @__PURE__ */ React95.createElement(Switch, __spreadProps(__spreadValues({
9076
+ }, !readOnly && /* @__PURE__ */ React96.createElement(Switch, __spreadProps(__spreadValues({
8966
9077
  id,
8967
9078
  ref,
8968
9079
  name
@@ -8973,12 +9084,12 @@ var Switch2 = React95.forwardRef(
8973
9084
  }
8974
9085
  );
8975
9086
  Switch2.displayName = "Switch";
8976
- var SwitchSkeleton = () => /* @__PURE__ */ React95.createElement("div", {
9087
+ var SwitchSkeleton = () => /* @__PURE__ */ React96.createElement("div", {
8977
9088
  className: tw("flex gap-3")
8978
- }, /* @__PURE__ */ React95.createElement(Skeleton, {
9089
+ }, /* @__PURE__ */ React96.createElement(Skeleton, {
8979
9090
  height: 20,
8980
9091
  width: 35
8981
- }), /* @__PURE__ */ React95.createElement(Skeleton, {
9092
+ }), /* @__PURE__ */ React96.createElement(Skeleton, {
8982
9093
  height: 20,
8983
9094
  width: 150
8984
9095
  }));
@@ -8986,7 +9097,7 @@ Switch2.Skeleton = SwitchSkeleton;
8986
9097
  Switch2.Skeleton.displayName = "Switch.Skeleton ";
8987
9098
 
8988
9099
  // src/molecules/SwitchGroup/SwitchGroup.tsx
8989
- import React96, { useState as useState11 } from "react";
9100
+ import React97, { useState as useState11 } from "react";
8990
9101
  import uniqueId9 from "lodash/uniqueId";
8991
9102
  var SwitchGroup = (_a) => {
8992
9103
  var _b = _a, {
@@ -9018,11 +9129,11 @@ var SwitchGroup = (_a) => {
9018
9129
  setSelectedItems(updated);
9019
9130
  onChange == null ? void 0 : onChange(updated);
9020
9131
  };
9021
- return /* @__PURE__ */ React96.createElement(LabelControl, __spreadValues(__spreadValues({
9132
+ return /* @__PURE__ */ React97.createElement(LabelControl, __spreadValues(__spreadValues({
9022
9133
  fieldset: true
9023
- }, labelControlProps), errorProps), /* @__PURE__ */ React96.createElement(InputGroup, {
9134
+ }, labelControlProps), errorProps), /* @__PURE__ */ React97.createElement(InputGroup, {
9024
9135
  cols
9025
- }, React96.Children.map(children, (c) => {
9136
+ }, React97.Children.map(children, (c) => {
9026
9137
  var _a3, _b2, _c, _d;
9027
9138
  if (!isComponentType(c, Switch2)) {
9028
9139
  return null;
@@ -9030,7 +9141,7 @@ var SwitchGroup = (_a) => {
9030
9141
  const str = (_a3 = c.props.value) == null ? void 0 : _a3.toString();
9031
9142
  const defaultChecked = defaultValue === void 0 ? void 0 : str !== void 0 && defaultValue.includes(str);
9032
9143
  const checked = value === void 0 ? void 0 : str !== void 0 && value.includes(str);
9033
- return React96.cloneElement(c, {
9144
+ return React97.cloneElement(c, {
9034
9145
  defaultChecked: (_b2 = c.props.defaultChecked) != null ? _b2 : defaultChecked,
9035
9146
  checked: (_c = c.props.checked) != null ? _c : checked,
9036
9147
  onChange: (_d = c.props.onChange) != null ? _d : handleChange,
@@ -9040,9 +9151,9 @@ var SwitchGroup = (_a) => {
9040
9151
  })));
9041
9152
  };
9042
9153
  var SwitchGroupSkeleton = ({ options = 2 }) => {
9043
- return /* @__PURE__ */ React96.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React96.createElement("div", {
9154
+ return /* @__PURE__ */ React97.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React97.createElement("div", {
9044
9155
  className: tw("flex flex-wrap flex-col gap-2")
9045
- }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React96.createElement(Switch2.Skeleton, {
9156
+ }, Array.from({ length: options }).map((_, key) => /* @__PURE__ */ React97.createElement(Switch2.Skeleton, {
9046
9157
  key
9047
9158
  }))));
9048
9159
  };
@@ -9050,10 +9161,10 @@ SwitchGroup.Skeleton = SwitchGroupSkeleton;
9050
9161
  SwitchGroup.Skeleton.displayName = "SwitchGroup.Skeleton";
9051
9162
 
9052
9163
  // src/molecules/TagLabel/TagLabel.tsx
9053
- import React97 from "react";
9164
+ import React98 from "react";
9054
9165
  var TagLabel = (_a) => {
9055
9166
  var _b = _a, { title, dense = false } = _b, rest = __objRest(_b, ["title", "dense"]);
9056
- return /* @__PURE__ */ React97.createElement("span", __spreadProps(__spreadValues({}, rest), {
9167
+ return /* @__PURE__ */ React98.createElement("span", __spreadProps(__spreadValues({}, rest), {
9057
9168
  className: tw("rounded-full text-white bg-primary-70", {
9058
9169
  "py-2 px-4 typography-caption": !dense,
9059
9170
  "py-2 px-3 typography-caption-small": dense
@@ -9062,14 +9173,14 @@ var TagLabel = (_a) => {
9062
9173
  };
9063
9174
 
9064
9175
  // src/molecules/Textarea/Textarea.tsx
9065
- import React98, { useRef as useRef13, useState as useState12 } from "react";
9176
+ import React99, { useRef as useRef13, useState as useState12 } from "react";
9066
9177
  import omit17 from "lodash/omit";
9067
9178
  import toString2 from "lodash/toString";
9068
9179
  import uniqueId10 from "lodash/uniqueId";
9069
- var TextareaBase = React98.forwardRef(
9180
+ var TextareaBase = React99.forwardRef(
9070
9181
  (_a, ref) => {
9071
9182
  var _b = _a, { readOnly = false, valid = true } = _b, props = __objRest(_b, ["readOnly", "valid"]);
9072
- return /* @__PURE__ */ React98.createElement("textarea", __spreadProps(__spreadValues({
9183
+ return /* @__PURE__ */ React99.createElement("textarea", __spreadProps(__spreadValues({
9073
9184
  ref
9074
9185
  }, props), {
9075
9186
  readOnly,
@@ -9077,10 +9188,10 @@ var TextareaBase = React98.forwardRef(
9077
9188
  }));
9078
9189
  }
9079
9190
  );
9080
- TextareaBase.Skeleton = () => /* @__PURE__ */ React98.createElement(Skeleton, {
9191
+ TextareaBase.Skeleton = () => /* @__PURE__ */ React99.createElement(Skeleton, {
9081
9192
  height: 58
9082
9193
  });
9083
- var Textarea = React98.forwardRef((props, ref) => {
9194
+ var Textarea = React99.forwardRef((props, ref) => {
9084
9195
  var _a, _b, _c;
9085
9196
  const [value, setValue] = useState12((_b = (_a = props.value) != null ? _a : props.defaultValue) != null ? _b : "");
9086
9197
  const id = useRef13((_c = props.id) != null ? _c : `textarea-${uniqueId10()}`);
@@ -9088,12 +9199,12 @@ var Textarea = React98.forwardRef((props, ref) => {
9088
9199
  const errorProps = props.valid === false ? { "aria-invalid": true, "aria-describedby": errorMessageId } : {};
9089
9200
  const _d = getLabelControlProps(props), { "data-testid": dataTestId } = _d, labelControlProps = __objRest(_d, ["data-testid"]);
9090
9201
  const baseProps = omit17(props, Object.keys(labelControlProps));
9091
- return /* @__PURE__ */ React98.createElement(LabelControl, __spreadValues({
9202
+ return /* @__PURE__ */ React99.createElement(LabelControl, __spreadValues({
9092
9203
  id: `${id.current}-label`,
9093
9204
  htmlFor: id.current,
9094
9205
  messageId: errorMessageId,
9095
9206
  length: value !== void 0 ? toString2(value).length : void 0
9096
- }, labelControlProps), /* @__PURE__ */ React98.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
9207
+ }, labelControlProps), /* @__PURE__ */ React99.createElement(TextareaBase, __spreadProps(__spreadValues(__spreadValues({
9097
9208
  ref
9098
9209
  }, baseProps), errorProps), {
9099
9210
  id: id.current,
@@ -9110,48 +9221,48 @@ var Textarea = React98.forwardRef((props, ref) => {
9110
9221
  })));
9111
9222
  });
9112
9223
  Textarea.displayName = "Textarea";
9113
- var TextAreaSkeleton = () => /* @__PURE__ */ React98.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React98.createElement(TextareaBase.Skeleton, null));
9224
+ var TextAreaSkeleton = () => /* @__PURE__ */ React99.createElement(LabelControl.Skeleton, null, /* @__PURE__ */ React99.createElement(TextareaBase.Skeleton, null));
9114
9225
  Textarea.Skeleton = TextAreaSkeleton;
9115
9226
  Textarea.Skeleton.displayName = "Textarea.Skeleton";
9116
9227
 
9117
9228
  // src/molecules/Timeline/Timeline.tsx
9118
- import React100 from "react";
9229
+ import React101 from "react";
9119
9230
 
9120
9231
  // src/atoms/Timeline/Timeline.tsx
9121
- import React99 from "react";
9232
+ import React100 from "react";
9122
9233
  var Timeline = (_a) => {
9123
9234
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
9124
- return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
9235
+ return /* @__PURE__ */ React100.createElement("div", __spreadProps(__spreadValues({}, rest), {
9125
9236
  className: classNames(tw("grid grid-cols-[16px_1fr] gap-x-4"), className)
9126
9237
  }));
9127
9238
  };
9128
9239
  var Content2 = (_a) => {
9129
9240
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
9130
- return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
9241
+ return /* @__PURE__ */ React100.createElement("div", __spreadProps(__spreadValues({}, rest), {
9131
9242
  className: classNames(tw("pb-6"), className)
9132
9243
  }));
9133
9244
  };
9134
9245
  var Separator2 = (_a) => {
9135
9246
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
9136
- return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
9247
+ return /* @__PURE__ */ React100.createElement("div", __spreadProps(__spreadValues({}, rest), {
9137
9248
  className: classNames(tw("flex items-center justify-center h-5 w-5"), className)
9138
9249
  }));
9139
9250
  };
9140
9251
  var LineContainer = (_a) => {
9141
9252
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
9142
- return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
9253
+ return /* @__PURE__ */ React100.createElement("div", __spreadProps(__spreadValues({}, rest), {
9143
9254
  className: classNames(tw("flex justify-center py-1"), className)
9144
9255
  }));
9145
9256
  };
9146
9257
  var Line = (_a) => {
9147
9258
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
9148
- return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
9259
+ return /* @__PURE__ */ React100.createElement("div", __spreadProps(__spreadValues({}, rest), {
9149
9260
  className: classNames(tw("w-1 bg-grey-5 h-full justify-self-center"), className)
9150
9261
  }));
9151
9262
  };
9152
9263
  var Dot = (_a) => {
9153
9264
  var _b = _a, { className } = _b, rest = __objRest(_b, ["className"]);
9154
- return /* @__PURE__ */ React99.createElement("div", __spreadProps(__spreadValues({}, rest), {
9265
+ return /* @__PURE__ */ React100.createElement("div", __spreadProps(__spreadValues({}, rest), {
9155
9266
  className: classNames(tw("bg-grey-30 h-[6px] w-[6px] rounded"), className)
9156
9267
  }));
9157
9268
  };
@@ -9166,52 +9277,52 @@ var import_error4 = __toESM(require_error());
9166
9277
  var import_time = __toESM(require_time());
9167
9278
  var import_warningSign4 = __toESM(require_warningSign());
9168
9279
  var TimelineItem = () => null;
9169
- var Timeline2 = ({ children }) => /* @__PURE__ */ React100.createElement("div", null, React100.Children.map(children, (item) => {
9280
+ var Timeline2 = ({ children }) => /* @__PURE__ */ React101.createElement("div", null, React101.Children.map(children, (item) => {
9170
9281
  if (!isComponentType(item, TimelineItem)) {
9171
9282
  throw new Error("<Timeline> can only have <Timeline.Item> components as children");
9172
9283
  } else {
9173
9284
  const { props, key } = item;
9174
- return /* @__PURE__ */ React100.createElement(Timeline, {
9285
+ return /* @__PURE__ */ React101.createElement(Timeline, {
9175
9286
  key: key != null ? key : props.title
9176
- }, /* @__PURE__ */ React100.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React100.createElement(Icon, {
9287
+ }, /* @__PURE__ */ React101.createElement(Timeline.Separator, null, props.variant === "error" ? /* @__PURE__ */ React101.createElement(Icon, {
9177
9288
  icon: import_error4.default,
9178
9289
  color: "error-30"
9179
- }) : props.variant === "warning" ? /* @__PURE__ */ React100.createElement(Icon, {
9290
+ }) : props.variant === "warning" ? /* @__PURE__ */ React101.createElement(Icon, {
9180
9291
  icon: import_warningSign4.default,
9181
9292
  color: "warning-30"
9182
- }) : props.variant === "info" ? /* @__PURE__ */ React100.createElement(Icon, {
9293
+ }) : props.variant === "info" ? /* @__PURE__ */ React101.createElement(Icon, {
9183
9294
  icon: import_time.default,
9184
9295
  color: "info-30"
9185
- }) : /* @__PURE__ */ React100.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React100.createElement(Typography2.Caption, {
9296
+ }) : /* @__PURE__ */ React101.createElement(Timeline.Separator.Dot, null)), /* @__PURE__ */ React101.createElement(Typography2.Caption, {
9186
9297
  color: "grey-50"
9187
- }, props.title), /* @__PURE__ */ React100.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React100.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React100.createElement(Timeline.Content, null, /* @__PURE__ */ React100.createElement(Typography2.Small, null, props.children)));
9298
+ }, props.title), /* @__PURE__ */ React101.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React101.createElement(Timeline.LineContainer.Line, null)), /* @__PURE__ */ React101.createElement(Timeline.Content, null, /* @__PURE__ */ React101.createElement(Typography2.Small, null, props.children)));
9188
9299
  }
9189
9300
  }));
9190
- var TimelineItemSkeleton = () => /* @__PURE__ */ React100.createElement(Timeline, null, /* @__PURE__ */ React100.createElement(Timeline.Separator, null, /* @__PURE__ */ React100.createElement(Skeleton, {
9301
+ var TimelineItemSkeleton = () => /* @__PURE__ */ React101.createElement(Timeline, null, /* @__PURE__ */ React101.createElement(Timeline.Separator, null, /* @__PURE__ */ React101.createElement(Skeleton, {
9191
9302
  width: 6,
9192
9303
  height: 6,
9193
9304
  rounded: true
9194
- })), /* @__PURE__ */ React100.createElement(Skeleton, {
9305
+ })), /* @__PURE__ */ React101.createElement(Skeleton, {
9195
9306
  height: 12,
9196
9307
  width: 120
9197
- }), /* @__PURE__ */ React100.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React100.createElement(Skeleton, {
9308
+ }), /* @__PURE__ */ React101.createElement(Timeline.LineContainer, null, /* @__PURE__ */ React101.createElement(Skeleton, {
9198
9309
  width: 2,
9199
9310
  height: "100%"
9200
- })), /* @__PURE__ */ React100.createElement(Timeline.Content, null, /* @__PURE__ */ React100.createElement(Box, {
9311
+ })), /* @__PURE__ */ React101.createElement(Timeline.Content, null, /* @__PURE__ */ React101.createElement(Box, {
9201
9312
  display: "flex",
9202
9313
  flexDirection: "column",
9203
9314
  gap: "3"
9204
- }, /* @__PURE__ */ React100.createElement(Skeleton, {
9315
+ }, /* @__PURE__ */ React101.createElement(Skeleton, {
9205
9316
  height: 32,
9206
9317
  width: "100%"
9207
- }), /* @__PURE__ */ React100.createElement(Skeleton, {
9318
+ }), /* @__PURE__ */ React101.createElement(Skeleton, {
9208
9319
  height: 32,
9209
9320
  width: "73%"
9210
- }), /* @__PURE__ */ React100.createElement(Skeleton, {
9321
+ }), /* @__PURE__ */ React101.createElement(Skeleton, {
9211
9322
  height: 32,
9212
9323
  width: "80%"
9213
9324
  }))));
9214
- var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React100.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React100.createElement(TimelineItemSkeleton, {
9325
+ var TimelineSkeleton = ({ items = 3 }) => /* @__PURE__ */ React101.createElement("div", null, Array.from({ length: items }).map((_, key) => /* @__PURE__ */ React101.createElement(TimelineItemSkeleton, {
9215
9326
  key
9216
9327
  })));
9217
9328
  Timeline2.Item = TimelineItem;
@@ -9219,9 +9330,9 @@ Timeline2.Skeleton = TimelineSkeleton;
9219
9330
  Timeline2.Skeleton.displayName = "Timeline.Skeleton";
9220
9331
 
9221
9332
  // src/utils/table/useTableSelect.ts
9222
- import React101 from "react";
9333
+ import React102 from "react";
9223
9334
  var useTableSelect = (data, { key }) => {
9224
- const [selected, setSelected] = React101.useState([]);
9335
+ const [selected, setSelected] = React102.useState([]);
9225
9336
  const allSelected = selected.length === data.length;
9226
9337
  const isSelected = (dot) => selected.includes(dot[key]);
9227
9338
  const selectAll = () => setSelected(data.map((dot) => dot[key]));
@@ -9246,7 +9357,7 @@ var useTableSelect = (data, { key }) => {
9246
9357
  };
9247
9358
 
9248
9359
  // src/molecules/Pagination/usePagination.tsx
9249
- import { useEffect as useEffect9, useState as useState13 } from "react";
9360
+ import { useEffect as useEffect10, useState as useState13 } from "react";
9250
9361
  import clamp3 from "lodash/clamp";
9251
9362
  var initialState = {
9252
9363
  currentPage: 1,
@@ -9265,7 +9376,7 @@ var usePagination = (items, options) => {
9265
9376
  setPageSize(pageSize2);
9266
9377
  setCurrentPage(clamp3((options == null ? void 0 : options.initialPage) || initialState.currentPage, 1, newTotalPages));
9267
9378
  };
9268
- useEffect9(() => {
9379
+ useEffect10(() => {
9269
9380
  setCurrentPage(clamp3((options == null ? void 0 : options.initialPage) || initialState.currentPage, 1, totalPages));
9270
9381
  }, [items.length]);
9271
9382
  return [
@@ -9466,6 +9577,8 @@ export {
9466
9577
  NativeSelect,
9467
9578
  NativeSelectBase,
9468
9579
  Navigation2 as Navigation,
9580
+ NotificationConsumer,
9581
+ NotificationProvider,
9469
9582
  OneLineBanner,
9470
9583
  Option,
9471
9584
  PageHeader2 as PageHeader,
@@ -9534,6 +9647,8 @@ export {
9534
9647
  placementOrder,
9535
9648
  export_theme as theme,
9536
9649
  toSortDirection,
9650
+ useNotification,
9651
+ useNotificationContext,
9537
9652
  usePagination,
9538
9653
  usePopoverContext,
9539
9654
  useScrollTarget,