opus-toolkit-components 1.8.4 → 1.8.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/main.js CHANGED
@@ -1469,6 +1469,14 @@ __webpack_require__.r(__webpack_exports__);
1469
1469
  /* harmony import */ var _BarLayout_BarLayout__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7779);
1470
1470
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94178);
1471
1471
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
1472
+ const _excluded = ["left", "center", "right", "className"];
1473
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
1474
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
1475
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
1476
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
1477
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
1478
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
1479
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
1472
1480
 
1473
1481
 
1474
1482
  /**
@@ -1485,18 +1493,21 @@ __webpack_require__.r(__webpack_exports__);
1485
1493
 
1486
1494
  const Footer = _ref => {
1487
1495
  let {
1488
- left,
1489
- center,
1490
- right
1491
- } = _ref;
1492
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", {
1493
- className: "w-full px-4 py-2",
1496
+ left,
1497
+ center,
1498
+ right,
1499
+ className = ""
1500
+ } = _ref,
1501
+ rest = _objectWithoutProperties(_ref, _excluded);
1502
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)("div", _objectSpread(_objectSpread({
1503
+ className: "w-full px-4 py-2 ".concat(className)
1504
+ }, rest), {}, {
1494
1505
  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(_BarLayout_BarLayout__WEBPACK_IMPORTED_MODULE_0__["default"], {
1495
1506
  left: left,
1496
1507
  center: center,
1497
1508
  right: right
1498
1509
  })
1499
- });
1510
+ }));
1500
1511
  };
1501
1512
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Footer);
1502
1513
 
@@ -1544,33 +1555,54 @@ __webpack_require__.r(__webpack_exports__);
1544
1555
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
1545
1556
  /* harmony import */ var _Header_Header__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(38195);
1546
1557
  /* harmony import */ var _Footer_Footer__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(3047);
1547
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94178);
1548
- /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
1558
+ /* harmony import */ var _Sidebar_Sidebar__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11775);
1559
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94178);
1560
+ /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
1549
1561
 
1550
1562
 
1551
1563
 
1552
1564
 
1553
- /**
1554
- * @typedef {Object} PageTemplateProps
1555
- *
1556
- * @property {string} [headerTitle] Title passed to left Header
1557
- * @property {React.ReactNode} [headerCenter] Center slot of Header
1558
- * @property {React.ReactNode} [headerRight] Right slot of Header
1559
- *
1560
- * @property {React.ReactNode} [footerLeft] Left slot of Footer
1561
- * @property {React.ReactNode} [footerCenter] Center slot of Footer
1562
- * @property {React.ReactNode} [footerRight] Right slot of Footer
1563
- *
1564
- * @property {React.ReactNode} children Main page content
1565
- * @property {string} [className] Optional wrapper class
1565
+
1566
+ /**
1567
+ * @typedef {Object} PageTemplateProps
1568
+ *
1569
+ * @property {import('../Sidebar').SidebarMenu[]} [sidebarMenus] Sidebar menu configuration
1570
+ * @property {import('../Sidebar').SidebarUser} [sidebarUser] Sidebar user profile data
1571
+ * @property {string|number|null} [sidebarActiveItem] Active sidebar item key
1572
+ * @property {(key: string|number) => void} [onSidebarItemClick]
1573
+ * @property {string} [sidebarLogo] Optional sidebar logo override
1574
+ * @property {string} [sidebarSearchValue] Controlled search input value
1575
+ * @property {(value: string) => void} [onSidebarSearchChange]
1576
+ * @property {string|number|null} [sidebarOpenGroupKey] Expanded sidebar group key
1577
+ * @property {(openGroupKey: string|number|null) => void} [onSidebarGroupToggle]
1578
+ *
1579
+ * @property {string} [headerTitle] Title passed to left Header
1580
+ * @property {React.ReactNode} [headerCenter] Center slot of Header
1581
+ * @property {React.ReactNode} [headerRight] Right slot of Header
1582
+ *
1583
+ * @property {React.ReactNode} [footerLeft] Left slot of Footer
1584
+ * @property {React.ReactNode} [footerCenter] Center slot of Footer
1585
+ * @property {React.ReactNode} [footerRight] Right slot of Footer
1586
+ *
1587
+ * @property {React.ReactNode} children Main page content
1588
+ * @property {string} [className] Optional wrapper class
1566
1589
  */
1567
1590
 
1568
- /**
1569
- * @param {PageTemplateProps} props
1591
+ /**
1592
+ * @param {PageTemplateProps} props
1570
1593
  */
1571
1594
 
1572
1595
  const PageTemplate = _ref => {
1573
1596
  let {
1597
+ sidebarMenus,
1598
+ sidebarUser,
1599
+ sidebarActiveItem,
1600
+ onSidebarItemClick,
1601
+ sidebarLogo,
1602
+ sidebarSearchValue = "",
1603
+ onSidebarSearchChange,
1604
+ sidebarOpenGroupKey,
1605
+ onSidebarGroupToggle,
1574
1606
  headerTitle,
1575
1607
  headerCenter,
1576
1608
  headerRight,
@@ -1580,19 +1612,37 @@ const PageTemplate = _ref => {
1580
1612
  children,
1581
1613
  className = ""
1582
1614
  } = _ref;
1583
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", {
1584
- className: "flex min-h-screen w-full flex-col ".concat(className),
1585
- children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_Header_Header__WEBPACK_IMPORTED_MODULE_1__["default"], {
1586
- title: headerTitle,
1587
- center: headerCenter,
1588
- right: headerRight
1589
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("main", {
1590
- className: "flex-1 p-4",
1591
- children: children
1592
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_Footer_Footer__WEBPACK_IMPORTED_MODULE_2__["default"], {
1593
- left: footerLeft,
1594
- center: footerCenter,
1595
- right: footerRight
1615
+ const hasSidebar = Boolean((sidebarMenus === null || sidebarMenus === void 0 ? void 0 : sidebarMenus.length) && sidebarUser);
1616
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", {
1617
+ className: "flex min-h-screen w-full ".concat(className),
1618
+ children: [hasSidebar ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("aside", {
1619
+ className: "shrink-0",
1620
+ children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Sidebar_Sidebar__WEBPACK_IMPORTED_MODULE_3__["default"], {
1621
+ menus: sidebarMenus,
1622
+ user: sidebarUser,
1623
+ activeItem: sidebarActiveItem,
1624
+ onItemClick: onSidebarItemClick,
1625
+ logo: sidebarLogo,
1626
+ searchValue: sidebarSearchValue,
1627
+ onSearchChange: onSidebarSearchChange,
1628
+ openGroupKey: sidebarOpenGroupKey,
1629
+ onGroupToggle: onSidebarGroupToggle
1630
+ })
1631
+ }) : null, /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("div", {
1632
+ className: "flex min-h-screen min-w-0 flex-1 flex-col",
1633
+ children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Header_Header__WEBPACK_IMPORTED_MODULE_1__["default"], {
1634
+ title: headerTitle,
1635
+ center: headerCenter,
1636
+ right: headerRight
1637
+ // className="bg-[--color-primary]"
1638
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)("main", {
1639
+ className: "flex-1 p-4",
1640
+ children: children
1641
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(_Footer_Footer__WEBPACK_IMPORTED_MODULE_2__["default"], {
1642
+ left: footerLeft,
1643
+ center: footerCenter,
1644
+ right: footerRight
1645
+ })]
1596
1646
  })]
1597
1647
  });
1598
1648
  };
@@ -5548,6 +5598,14 @@ __webpack_require__.r(__webpack_exports__);
5548
5598
  /* harmony import */ var opus_toolkit_styles_assets_logos_c247_icon_only_2x_png__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(opus_toolkit_styles_assets_logos_c247_icon_only_2x_png__WEBPACK_IMPORTED_MODULE_8__);
5549
5599
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(94178);
5550
5600
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__);
5601
+ const _excluded = ["menus", "user", "activeItem", "onItemClick", "logo", "searchValue", "onSearchChange", "openGroupKey", "onGroupToggle"];
5602
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
5603
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5604
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5605
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
5606
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
5607
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
5608
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
5551
5609
 
5552
5610
 
5553
5611
 
@@ -5558,96 +5616,106 @@ __webpack_require__.r(__webpack_exports__);
5558
5616
 
5559
5617
 
5560
5618
 
5561
- /**
5562
- * A single menu item (no children).
5563
- * @typedef {Object} SidebarMenuItem
5564
- * @property {string|number} key
5565
- * @property {string} name
5566
- * @property {string} [icon]
5567
- * @property {string} [href]
5619
+ /**
5620
+ * A single menu item (no children).
5621
+ * @typedef {Object} SidebarMenuItem
5622
+ * @property {string|number} key
5623
+ * @property {string} name
5624
+ * @property {string} [path]
5625
+ * @property {string} [href]
5626
+ * @property {import('../Icon').IconProps} [iconProps]
5627
+ * @property {(key: string|number) => void} [onClick]
5568
5628
  */
5569
5629
 
5570
- /**
5571
- * A grouped menu entry with children.
5572
- * @typedef {Object} SidebarMenuGroup
5573
- * @property {string|number} key
5574
- * @property {string} name
5575
- * @property {SidebarMenuItem[]} children
5630
+ /**
5631
+ * A grouped menu entry with children.
5632
+ * @typedef {Object} SidebarMenuGroup
5633
+ * @property {string|number} key
5634
+ * @property {string} name
5635
+ * @property {SidebarMenuItem[]} children
5576
5636
  */
5577
5637
 
5578
- /**
5579
- * A full menu entry (either group or leaf item).
5580
- * @typedef {SidebarMenuItem | SidebarMenuGroup} SidebarMenu
5638
+ /**
5639
+ * A full menu entry (either group or leaf item).
5640
+ * @typedef {SidebarMenuItem | SidebarMenuGroup} SidebarMenu
5581
5641
  */
5582
5642
 
5583
- /**
5584
- * Minimal shape expected for SidebarProfile.
5585
- * @typedef {Object} SidebarUser
5586
- * @property {string|number} id
5587
- * @property {string} name
5588
- * @property {string} role
5589
- * @property {string} [avatar]
5643
+ /**
5644
+ * Minimal shape expected for SidebarProfile.
5645
+ * @typedef {Object} SidebarUser
5646
+ * @property {string|number} id
5647
+ * @property {string} name
5648
+ * @property {string} role
5649
+ * @property {string} [avatar]
5590
5650
  */
5591
5651
 
5592
- /**
5593
- * Props for Sidebar.
5594
- *
5595
- * @typedef {Object} SidebarProps
5596
- *
5597
- * @property {SidebarMenu[]} menus
5598
- * All sidebar menu items (groups + items).
5599
- *
5600
- * @property {SidebarUser} user
5601
- * The current logged-in user.
5602
- *
5603
- * @property {string|number|null} [activeItem]
5604
- * Key of the currently selected item.
5605
- *
5606
- * @property {(key: string|number) => void} [onItemClick]
5607
- * Fired when a menu item is clicked.
5608
- *
5609
- * @property {string} [logo]
5610
- * Optional logo override.
5611
- *
5612
- * @property {string} [searchValue]
5613
- * Controlled search input value.
5614
- *
5615
- * @property {(value: string) => void} [onSearchChange]
5616
- *
5617
- * @property {string|number|null} openGroupKey
5618
- * REQUIRED. Key of the currently expanded group.
5619
- *
5620
- * @property {(openGroupKey: string|number|null) => void} onGroupToggle
5621
- * REQUIRED. Receives the NEXT open group key.
5652
+ /**
5653
+ * Props for Sidebar.
5654
+ *
5655
+ * @typedef {Object} SidebarProps
5656
+ *
5657
+ * @property {SidebarMenu[]} menus
5658
+ * All sidebar menu items (groups + items).
5659
+ *
5660
+ * @property {SidebarUser} user
5661
+ * The current logged-in user.
5662
+ *
5663
+ * @property {string|number|null} [activeItem]
5664
+ * Key of the currently selected item.
5665
+ *
5666
+ * @property {(key: string|number) => void} [onItemClick]
5667
+ * Fired when a menu item is clicked.
5668
+ *
5669
+ * @property {string} [logo]
5670
+ * Optional logo override.
5671
+ *
5672
+ * @property {string} [searchValue]
5673
+ * Controlled search input value.
5674
+ *
5675
+ * @property {(value: string) => void} [onSearchChange]
5676
+ *
5677
+ * @property {string|number|null} [openGroupKey]
5678
+ * Optional controlled key of the currently expanded group.
5679
+ *
5680
+ * @property {(openGroupKey: string|number|null) => void} [onGroupToggle]
5681
+ * Optional controlled change handler. If omitted, Sidebar manages group state internally.
5622
5682
  */
5623
5683
 
5624
- /**
5625
- * Fully typed Sidebar component.
5626
- *
5627
- * @param {SidebarProps & React.HTMLAttributes<HTMLDivElement>} props
5684
+ /**
5685
+ * Fully typed Sidebar component.
5686
+ *
5687
+ * @param {SidebarProps & React.HTMLAttributes<HTMLDivElement>} props
5628
5688
  */
5629
5689
 
5630
5690
  function Sidebar(_ref) {
5631
5691
  let {
5632
- menus,
5633
- user,
5634
- activeItem,
5635
- onItemClick,
5636
- logo,
5637
- searchValue = "",
5638
- onSearchChange,
5639
- openGroupKey,
5640
- onGroupToggle
5641
- } = _ref;
5692
+ menus,
5693
+ user,
5694
+ activeItem,
5695
+ onItemClick,
5696
+ logo,
5697
+ searchValue = "",
5698
+ onSearchChange,
5699
+ openGroupKey,
5700
+ onGroupToggle
5701
+ } = _ref,
5702
+ rest = _objectWithoutProperties(_ref, _excluded);
5642
5703
  const [open, setOpen] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(false);
5704
+ const [internalOpenGroupKey, setInternalOpenGroupKey] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);
5705
+ const currentOpenGroupKey = openGroupKey !== undefined ? openGroupKey : internalOpenGroupKey;
5643
5706
  const handleGroupToggle = key => {
5644
- const nextOpenGroupKey = openGroupKey === key ? null : key;
5645
- onGroupToggle(nextOpenGroupKey);
5707
+ const nextOpenGroupKey = currentOpenGroupKey === key ? null : key;
5708
+ if (onGroupToggle) {
5709
+ onGroupToggle(nextOpenGroupKey);
5710
+ return;
5711
+ }
5712
+ setInternalOpenGroupKey(nextOpenGroupKey);
5646
5713
  };
5647
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", {
5648
- className: "flex",
5714
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("div", _objectSpread(_objectSpread({
5715
+ className: "flex"
5716
+ }, rest), {}, {
5649
5717
  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
5650
- className: "".concat(open ? "w-[20rem]" : "w-[3rem]", " transition-width flex min-h-screen flex-col rounded bg-[--color-primary-bg] text-[--color-text-strong] duration-300 ease-in-out"),
5718
+ className: "".concat(open ? "w-[20rem]" : "w-[3rem]", " transition-width flex min-h-screen flex-col bg-[--color-primary-bg] text-[--color-text-strong] duration-300 ease-in-out"),
5651
5719
  children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsxs)("div", {
5652
5720
  className: "flex items-center justify-between p-3 pr-0",
5653
5721
  children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)("img", {
@@ -5698,13 +5766,17 @@ function Sidebar(_ref) {
5698
5766
  activeItem: activeItem,
5699
5767
  onItemClick: onItemClick,
5700
5768
  toggleSidebar: setOpen,
5701
- isOpen: openGroupKey === menu.key,
5769
+ isOpen: currentOpenGroupKey === menu.key,
5702
5770
  onToggle: () => handleGroupToggle(menu.key)
5703
5771
  }, "group-".concat(menu.key, "-").concat(menu.name)) : /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_SidebarItem__WEBPACK_IMPORTED_MODULE_2__["default"], {
5704
5772
  menu: menu,
5705
5773
  open: open,
5706
5774
  active: activeItem === menu.key,
5707
- onClick: () => onItemClick === null || onItemClick === void 0 ? void 0 : onItemClick(menu.key)
5775
+ onClick: () => {
5776
+ var _menu$onClick;
5777
+ (_menu$onClick = menu.onClick) === null || _menu$onClick === void 0 || _menu$onClick.call(menu, menu.key);
5778
+ onItemClick === null || onItemClick === void 0 || onItemClick(menu.key);
5779
+ }
5708
5780
  }, "item-".concat(menu.key, "-").concat(menu.name)))
5709
5781
  })]
5710
5782
  }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_9__.jsx)(_SidebarProfile__WEBPACK_IMPORTED_MODULE_4__["default"], {
@@ -5713,7 +5785,7 @@ function Sidebar(_ref) {
5713
5785
  href: "/users/".concat(user.id)
5714
5786
  })]
5715
5787
  })
5716
- });
5788
+ }));
5717
5789
  }
5718
5790
 
5719
5791
  /***/ }),
@@ -7717,92 +7789,101 @@ __webpack_require__.r(__webpack_exports__);
7717
7789
  /* harmony import */ var _utils_getDataCy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67339);
7718
7790
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94178);
7719
7791
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
7792
+ const _excluded = ["label", "options", "name", "value", "onChange", "className", "tabIndex", "title", "isValid", "errorMessage", "required", "dataCy", "disabled"];
7793
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
7794
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
7795
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
7796
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
7797
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7798
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
7799
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
7720
7800
 
7721
7801
 
7722
7802
 
7723
7803
 
7724
- /**
7725
- * A single radio option.
7726
- * @typedef {Object} RadioOption
7727
- * @property {string|number} value
7728
- * @property {string} label
7804
+ /**
7805
+ * A single radio option.
7806
+ * @typedef {Object} RadioOption
7807
+ * @property {string|number} value
7808
+ * @property {string} label
7729
7809
  */
7730
7810
 
7731
- /**
7732
- * Custom event format used by your form components.
7733
- * @typedef {{ target: { name: string, value: string|number } }} RadioChangeEvent
7811
+ /**
7812
+ * Custom event format used by your form components.
7813
+ * @typedef {{ target: { name: string, value: string|number } }} RadioChangeEvent
7734
7814
  */
7735
7815
 
7736
- /**
7737
- * Props for the RadioButton component.
7738
- *
7739
- * @typedef {Object} RadioButtonProps
7740
- *
7741
- * @property {string} label
7742
- * Form label above the radio group.
7743
- *
7744
- * @property {RadioOption[]} [options]
7745
- * Array of selectable radio items.
7746
- *
7747
- * @property {string} name
7748
- * Name of the radio group (required for grouping).
7749
- *
7750
- * @property {string|number} [value]
7751
- * Currently selected value.
7752
- *
7753
- * @property {(event: RadioChangeEvent) => void} [onChange]
7754
- * Custom event handler following your design system.
7755
- *
7756
- * @property {string} [className]
7757
- *
7758
- * @property {string|number} [tabIndex]
7759
- *
7760
- * @property {string} [title]
7761
- *
7762
- * @property {boolean} [isValid]
7763
- * Controls error message + styles.
7764
- *
7765
- * @property {string} [errorMessage]
7766
- *
7767
- * @property {boolean} [required]
7768
- *
7769
- * @property {string} [dataCy]
7770
- *
7771
- * @property {boolean} [disabled]
7816
+ /**
7817
+ * Props for the RadioButton component.
7818
+ *
7819
+ * @typedef {Object} RadioButtonProps
7820
+ *
7821
+ * @property {string} label
7822
+ * Form label above the radio group.
7823
+ *
7824
+ * @property {RadioOption[]} [options]
7825
+ * Array of selectable radio items.
7826
+ *
7827
+ * @property {string} name
7828
+ * Name of the radio group (required for grouping).
7829
+ *
7830
+ * @property {string|number} [value]
7831
+ * Currently selected value.
7832
+ *
7833
+ * @property {(event: RadioChangeEvent) => void} [onChange]
7834
+ * Custom event handler following your design system.
7835
+ *
7836
+ * @property {string} [className]
7837
+ *
7838
+ * @property {string|number} [tabIndex]
7839
+ *
7840
+ * @property {string} [title]
7841
+ *
7842
+ * @property {boolean} [isValid]
7843
+ * Controls error message + styles.
7844
+ *
7845
+ * @property {string} [errorMessage]
7846
+ *
7847
+ * @property {boolean} [required]
7848
+ *
7849
+ * @property {string} [dataCy]
7850
+ *
7851
+ * @property {boolean} [disabled]
7772
7852
  */
7773
7853
 
7774
- /**
7775
- * @param {RadioButtonProps & React.HTMLAttributes<HTMLDivElement>} props
7854
+ /**
7855
+ * @param {RadioButtonProps & React.HTMLAttributes<HTMLDivElement>} props
7776
7856
  */
7777
7857
 
7778
7858
  const RadioButton = _ref => {
7779
7859
  let {
7780
- label,
7781
- options = [{
7782
- value: "single",
7783
- label: "Single"
7784
- }, {
7785
- value: "married",
7786
- label: "Married / Living with Partner"
7787
- }, {
7788
- value: "divorced",
7789
- label: "Divorced"
7790
- }, {
7791
- value: "other",
7792
- label: "Other"
7793
- }],
7794
- name,
7795
- value,
7796
- onChange,
7797
- className = "",
7798
- tabIndex = "",
7799
- title = "",
7800
- isValid = true,
7801
- errorMessage = "".concat(label, " is required"),
7802
- required = false,
7803
- dataCy,
7804
- disabled = false
7805
- } = _ref;
7860
+ label,
7861
+ options = [{
7862
+ value: "single",
7863
+ label: "Single"
7864
+ }, {
7865
+ value: "married",
7866
+ label: "Married / Living with Partner"
7867
+ }, {
7868
+ value: "divorced",
7869
+ label: "Divorced"
7870
+ }, {
7871
+ value: "other",
7872
+ label: "Other"
7873
+ }],
7874
+ name,
7875
+ value,
7876
+ onChange,
7877
+ className = "",
7878
+ tabIndex = "",
7879
+ title = "",
7880
+ isValid = true,
7881
+ errorMessage = "".concat(label, " is required"),
7882
+ required = false,
7883
+ dataCy,
7884
+ disabled = false
7885
+ } = _ref,
7886
+ rest = _objectWithoutProperties(_ref, _excluded);
7806
7887
  const selectedValue = value;
7807
7888
  const handleChange = item => {
7808
7889
  if (disabled) return;
@@ -7814,8 +7895,9 @@ const RadioButton = _ref => {
7814
7895
  };
7815
7896
  onChange === null || onChange === void 0 || onChange(event);
7816
7897
  };
7817
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", {
7818
- className: "mb-4 flex flex-col ".concat(className),
7898
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", _objectSpread(_objectSpread({
7899
+ className: "mb-4 flex flex-col ".concat(className)
7900
+ }, rest), {}, {
7819
7901
  children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(_Text_Text__WEBPACK_IMPORTED_MODULE_1__["default"], {
7820
7902
  as: "label",
7821
7903
  variant: "label",
@@ -7860,7 +7942,7 @@ const RadioButton = _ref => {
7860
7942
  className: "text-[--color-util-red]",
7861
7943
  children: errorMessage
7862
7944
  })]
7863
- });
7945
+ }));
7864
7946
  };
7865
7947
  RadioButton.displayName = "RadioButton";
7866
7948
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (RadioButton);
@@ -14414,72 +14496,82 @@ __webpack_require__.r(__webpack_exports__);
14414
14496
  /* harmony import */ var _table_scss__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(76766);
14415
14497
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94178);
14416
14498
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
14499
+ const _excluded = ["data", "rows", "className", "rowClassName", "cellClassName", "headRowClassName", "headCellClassName", "rowKeyExtractor"];
14500
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
14501
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14502
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
14503
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
14504
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
14505
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
14506
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
14417
14507
 
14418
14508
 
14419
14509
 
14420
- /**
14421
- * A column definition for the table.
14422
- *
14423
- * @typedef {Object} TableColumn
14424
- * @property {string} key
14425
- * The key used to read the row value.
14426
- *
14427
- * @property {string} header
14428
- * The column header text.
14429
- *
14430
- * @property {(row: any) => React.ReactNode} [render]
14431
- * Optional custom renderer for this column.
14510
+ /**
14511
+ * A column definition for the table.
14512
+ *
14513
+ * @typedef {Object} TableColumn
14514
+ * @property {string} key
14515
+ * The key used to read the row value.
14516
+ *
14517
+ * @property {string} header
14518
+ * The column header text.
14519
+ *
14520
+ * @property {(row: any) => React.ReactNode} [render]
14521
+ * Optional custom renderer for this column.
14432
14522
  */
14433
14523
 
14434
- /**
14435
- * Props for the Table component.
14436
- *
14437
- * @typedef {Object} TableProps
14438
- *
14439
- * @property {TableColumn[]} [data=[]]
14440
- * Array of column definitions.
14441
- *
14442
- * @property {any[]} [rows=[]]
14443
- * Array of row objects. Row shape is flexible.
14444
- *
14445
- * @property {string} [className='']
14446
- * Extra classes for the outer wrapper.
14447
- *
14448
- * @property {string} [rowClassName='']
14449
- * Classes applied to each table row.
14450
- *
14451
- * @property {string} [cellClassName='']
14452
- * Classes applied to each table cell.
14453
- *
14454
- * @property {string} [headRowClassName='']
14455
- * Classes for the `<thead>` row.
14456
- *
14457
- * @property {string} [headCellClassName='']
14458
- * Classes for header `<th>` cells.
14459
- *
14460
- * @property {(row: any, index: number) => string|number} [rowKeyExtractor]
14461
- * Extractor for row key (defaults to index).
14524
+ /**
14525
+ * Props for the Table component.
14526
+ *
14527
+ * @typedef {Object} TableProps
14528
+ *
14529
+ * @property {TableColumn[]} [data=[]]
14530
+ * Array of column definitions.
14531
+ *
14532
+ * @property {any[]} [rows=[]]
14533
+ * Array of row objects. Row shape is flexible.
14534
+ *
14535
+ * @property {string} [className='']
14536
+ * Extra classes for the outer wrapper.
14537
+ *
14538
+ * @property {string} [rowClassName='']
14539
+ * Classes applied to each table row.
14540
+ *
14541
+ * @property {string} [cellClassName='']
14542
+ * Classes applied to each table cell.
14543
+ *
14544
+ * @property {string} [headRowClassName='']
14545
+ * Classes for the `<thead>` row.
14546
+ *
14547
+ * @property {string} [headCellClassName='']
14548
+ * Classes for header `<th>` cells.
14549
+ *
14550
+ * @property {(row: any, index: number) => string|number} [rowKeyExtractor]
14551
+ * Extractor for row key (defaults to index).
14462
14552
  */
14463
14553
 
14464
- /**
14465
- * Responsive Table with JSDoc types.
14466
- *
14467
- * @param {TableProps & React.HTMLAttributes<HTMLDivElement>} props
14554
+ /**
14555
+ * Responsive Table with JSDoc types.
14556
+ *
14557
+ * @param {TableProps & React.HTMLAttributes<HTMLDivElement>} props
14468
14558
  */
14469
14559
 
14470
14560
  function Table(_ref) {
14471
14561
  let {
14472
- data = [],
14473
- rows = [],
14474
- className = "",
14475
- rowClassName = "",
14476
- cellClassName = "",
14477
- headRowClassName = "",
14478
- headCellClassName = "",
14479
- rowKeyExtractor = (row, index) => index
14480
- } = _ref;
14481
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
14482
- className: "wrapper w-full ".concat(className),
14562
+ data = [],
14563
+ rows = [],
14564
+ className = "",
14565
+ rowClassName = "",
14566
+ cellClassName = "",
14567
+ headRowClassName = "",
14568
+ headCellClassName = "",
14569
+ rowKeyExtractor = (row, index) => index
14570
+ } = _ref,
14571
+ rest = _objectWithoutProperties(_ref, _excluded);
14572
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", _objectSpread(_objectSpread({
14573
+ className: "wrapper w-full ".concat(className)
14574
+ }, rest), {}, {
14483
14575
  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsxs)("table", {
14484
14576
  className: "table min-w-full table-auto border-collapse text-left",
14485
14577
  children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("thead", {
@@ -14505,7 +14597,7 @@ function Table(_ref) {
14505
14597
  })
14506
14598
  })]
14507
14599
  })
14508
- });
14600
+ }));
14509
14601
  }
14510
14602
 
14511
14603
  /***/ }),
@@ -20654,117 +20746,121 @@ __webpack_require__.r(__webpack_exports__);
20654
20746
  /* harmony import */ var _utils_getDataCy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67339);
20655
20747
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94178);
20656
20748
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
20749
+ const _excluded = ["label", "placeholder", "type", "tabIndex", "title", "name", "isValid", "errorMessage", "onChange", "className", "value", "Icon", "iconPosition", "isAnimated", "required", "shouldRenderCustomComponent", "customComponent", "customComponentProps", "disabled", "dataCy"];
20657
20750
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20658
20751
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20659
20752
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
20660
20753
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
20661
20754
  function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20755
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
20756
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
20662
20757
 
20663
20758
 
20664
20759
 
20665
20760
 
20666
- /**
20667
- * Icon component type — any React component that renders an SVG.
20668
- * @typedef {(props: React.SVGProps<SVGSVGElement>) => JSX.Element} IconComponent
20761
+ /**
20762
+ * Icon component type — any React component that renders an SVG.
20763
+ * @typedef {(props: React.SVGProps<SVGSVGElement>) => JSX.Element} IconComponent
20669
20764
  */
20670
20765
 
20671
- /**
20672
- * Custom component type for supplementary UI below input.
20673
- * Must be a React component.
20674
- * @typedef {(props: any) => JSX.Element} CustomComponent
20766
+ /**
20767
+ * Custom component type for supplementary UI below input.
20768
+ * Must be a React component.
20769
+ * @typedef {(props: any) => JSX.Element} CustomComponent
20675
20770
  */
20676
20771
 
20677
- /**
20678
- * Input component props.
20679
- *
20680
- * @typedef {Object} InputProps
20681
- *
20682
- * @property {string} label
20683
- * Label displayed above the input.
20684
- *
20685
- * @property {string} [placeholder]
20686
- *
20687
- * @property {'text'|'email'|'password'|'number'|'search'|'tel'|'url'|'date'|'datetime-local'|'month'|'time'|'week'|string} [type]
20688
- * HTML input type.
20689
- *
20690
- * @property {string|number} [tabIndex]
20691
- *
20692
- * @property {string} [title]
20693
- *
20694
- * @property {string} [name]
20695
- *
20696
- * @property {boolean} [isValid]
20697
- * Whether the field is valid — shows error text if false.
20698
- *
20699
- * @property {string} [errorMessage]
20700
- *
20701
- * @property {(event: React.ChangeEvent<HTMLInputElement>) => void} [onChange]
20702
- * Change handler using your preferred full event signature.
20703
- *
20704
- * @property {string} [className]
20705
- *
20706
- * @property {string|number} [value]
20707
- *
20708
- * @property {IconComponent} [Icon]
20709
- *
20710
- * @property {'left'|'right'} [iconPosition]
20711
- * Icon placement inside the input.
20712
- *
20713
- * @property {boolean} [isAnimated]
20714
- * Enables focus animation on the icon.
20715
- *
20716
- * @property {boolean} [required]
20717
- *
20718
- * @property {boolean} [disabled]
20719
- *
20720
- * @property {boolean} [shouldRenderCustomComponent]
20721
- *
20722
- * @property {CustomComponent} [customComponent]
20723
- *
20724
- * @property {Object<string, any>} [customComponentProps]
20725
- *
20726
- * @property {string} [dataCy]
20727
- * Override for auto-generated test selector.
20772
+ /**
20773
+ * Input component props.
20774
+ *
20775
+ * @typedef {Object} InputProps
20776
+ *
20777
+ * @property {string} label
20778
+ * Label displayed above the input.
20779
+ *
20780
+ * @property {string} [placeholder]
20781
+ *
20782
+ * @property {'text'|'email'|'password'|'number'|'search'|'tel'|'url'|'date'|'datetime-local'|'month'|'time'|'week'|string} [type]
20783
+ * HTML input type.
20784
+ *
20785
+ * @property {string|number} [tabIndex]
20786
+ *
20787
+ * @property {string} [title]
20788
+ *
20789
+ * @property {string} [name]
20790
+ *
20791
+ * @property {boolean} [isValid]
20792
+ * Whether the field is valid — shows error text if false.
20793
+ *
20794
+ * @property {string} [errorMessage]
20795
+ *
20796
+ * @property {(event: React.ChangeEvent<HTMLInputElement>) => void} [onChange]
20797
+ * Change handler using your preferred full event signature.
20798
+ *
20799
+ * @property {string} [className]
20800
+ *
20801
+ * @property {string|number} [value]
20802
+ *
20803
+ * @property {IconComponent} [Icon]
20804
+ *
20805
+ * @property {'left'|'right'} [iconPosition]
20806
+ * Icon placement inside the input.
20807
+ *
20808
+ * @property {boolean} [isAnimated]
20809
+ * Enables focus animation on the icon.
20810
+ *
20811
+ * @property {boolean} [required]
20812
+ *
20813
+ * @property {boolean} [disabled]
20814
+ *
20815
+ * @property {boolean} [shouldRenderCustomComponent]
20816
+ *
20817
+ * @property {CustomComponent} [customComponent]
20818
+ *
20819
+ * @property {Object<string, any>} [customComponentProps]
20820
+ *
20821
+ * @property {string} [dataCy]
20822
+ * Override for auto-generated test selector.
20728
20823
  */
20729
20824
 
20730
- /**
20731
- * ForwardRef Input component with complete JSDoc typings.
20732
- *
20733
- * @param {InputProps & React.InputHTMLAttributes<HTMLInputElement>} props
20734
- * @param {React.Ref<HTMLInputElement>} ref
20825
+ /**
20826
+ * ForwardRef Input component with complete JSDoc typings.
20827
+ *
20828
+ * @param {InputProps & React.InputHTMLAttributes<HTMLInputElement>} props
20829
+ * @param {React.Ref<HTMLInputElement>} ref
20735
20830
  */
20736
20831
 
20737
20832
  const Input = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_ref, ref) => {
20738
20833
  let {
20739
- label,
20740
- placeholder,
20741
- type = "text",
20742
- tabIndex = "",
20743
- title = "",
20744
- name,
20745
- isValid = true,
20746
- errorMessage = "".concat(label, " is required"),
20747
- onChange,
20748
- className = "",
20749
- value,
20750
- Icon,
20751
- // Icon component
20752
- iconPosition = "left",
20753
- // Icon position: left or right
20754
- isAnimated = false,
20755
- // Add animation class when focused
20756
- required = false,
20757
- // Required field indicator
20758
- shouldRenderCustomComponent,
20759
- // Condition to render custom component
20760
- customComponent,
20761
- // Custom component to render
20762
- customComponentProps = {},
20763
- // Props for the custom component
20764
- disabled = false,
20765
- // New disabled prop
20766
- dataCy
20767
- } = _ref;
20834
+ label,
20835
+ placeholder,
20836
+ type = "text",
20837
+ tabIndex = "",
20838
+ title = "",
20839
+ name,
20840
+ isValid = true,
20841
+ errorMessage = "".concat(label, " is required"),
20842
+ onChange,
20843
+ className = "",
20844
+ value,
20845
+ Icon,
20846
+ // Icon component
20847
+ iconPosition = "left",
20848
+ // Icon position: left or right
20849
+ isAnimated = false,
20850
+ // Add animation class when focused
20851
+ required = false,
20852
+ // Required field indicator
20853
+ shouldRenderCustomComponent,
20854
+ // Condition to render custom component
20855
+ customComponent,
20856
+ // Custom component to render
20857
+ customComponentProps = {},
20858
+ // Props for the custom component
20859
+ disabled = false,
20860
+ // New disabled prop
20861
+ dataCy
20862
+ } = _ref,
20863
+ rest = _objectWithoutProperties(_ref, _excluded);
20768
20864
  const inputClasses = "".concat(className, " flex items-center rounded-md bg-[--color-input-bg] border ").concat(isValid ? "border-[--color-stroke]" : "border-utilRed1000", " text-md font-normal text-[--color-text-strong] ").concat(disabled ? "opacity-50 cursor-not-allowed" : "");
20769
20865
  const iconClasses = "h-5 w-5 ".concat(isAnimated ? "transition-transform duration-200 group-focus-within:scale-125" : "", " text-[--color-text-weak]");
20770
20866
  return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", {
@@ -20787,7 +20883,7 @@ const Input = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_r
20787
20883
  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(Icon, {
20788
20884
  className: iconClasses
20789
20885
  })
20790
- }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("input", {
20886
+ }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("input", _objectSpread({
20791
20887
  id: name,
20792
20888
  ref: ref,
20793
20889
  className: "w-full ".concat(Icon ? iconPosition === "left" ? "pl-10" : "pr-10" : "", " rounded-md border-none bg-[--color-input-bg] px-3 py-2 focus:outline-none focus:ring-0"),
@@ -20806,7 +20902,7 @@ const Input = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)((_r
20806
20902
  }),
20807
20903
  "aria-invalid": !isValid,
20808
20904
  "aria-describedby": !isValid ? "".concat(name, "-error") : undefined
20809
- }), Icon && iconPosition === "right" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("span", {
20905
+ }, rest)), Icon && iconPosition === "right" && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("span", {
20810
20906
  className: "pointer-events-none absolute right-3 flex items-center",
20811
20907
  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(Icon, {
20812
20908
  className: iconClasses
@@ -20869,6 +20965,14 @@ __webpack_require__.r(__webpack_exports__);
20869
20965
  /* harmony import */ var _Text_Text__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21111);
20870
20966
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94178);
20871
20967
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
20968
+ const _excluded = ["title", "center", "right", "className"];
20969
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
20970
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
20971
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
20972
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
20973
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
20974
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
20975
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
20872
20976
 
20873
20977
 
20874
20978
 
@@ -20886,12 +20990,15 @@ __webpack_require__.r(__webpack_exports__);
20886
20990
 
20887
20991
  const Header = _ref => {
20888
20992
  let {
20889
- title,
20890
- center,
20891
- right
20892
- } = _ref;
20893
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
20894
- className: "w-full px-4 py-2",
20993
+ title,
20994
+ center,
20995
+ right,
20996
+ className = ""
20997
+ } = _ref,
20998
+ rest = _objectWithoutProperties(_ref, _excluded);
20999
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", _objectSpread(_objectSpread({
21000
+ className: "w-full px-4 py-2 ".concat(className)
21001
+ }, rest), {}, {
20895
21002
  children: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_BarLayout_BarLayout__WEBPACK_IMPORTED_MODULE_0__["default"], {
20896
21003
  left: /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)(_Text_Text__WEBPACK_IMPORTED_MODULE_1__["default"], {
20897
21004
  variant: "h3",
@@ -20900,7 +21007,7 @@ const Header = _ref => {
20900
21007
  center: center,
20901
21008
  right: right
20902
21009
  })
20903
- });
21010
+ }));
20904
21011
  };
20905
21012
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Header);
20906
21013
 
@@ -30220,70 +30327,89 @@ __webpack_require__.r(__webpack_exports__);
30220
30327
  /* harmony import */ var _utils_getDataCy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(67339);
30221
30328
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94178);
30222
30329
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
30330
+ const _excluded = ["label", "name", "onChange", "value", "isValid", "errorMessage", "disabled", "title", "dataCy", "className"];
30331
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
30332
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
30333
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
30334
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
30335
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
30336
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
30337
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
30223
30338
 
30224
30339
 
30225
30340
 
30226
30341
 
30227
- /**
30228
- * Custom change event format used across your form components.
30229
- * Matches your Input / Dropdown / DatePicker pattern.
30230
- *
30231
- * @typedef {{ target: { name: string, value: boolean } }} CheckboxChangeEvent
30342
+ /**
30343
+ * Custom change event format used across your form components.
30344
+ * Matches your Input / Dropdown / DatePicker pattern.
30345
+ *
30346
+ * @typedef {{ target: { name: string, value: boolean } }} CheckboxChangeEvent
30232
30347
  */
30233
30348
 
30234
- /**
30235
- * Props for Checkbox.
30236
- *
30237
- * @typedef {Object} CheckboxProps
30238
- *
30239
- * @property {string} label
30240
- * Label displayed next to the checkbox.
30241
- *
30242
- * @property {string} name
30243
- * Name used in the emitted onChange event.
30244
- *
30245
- * @property {(event: CheckboxChangeEvent) => void} [onChange]
30246
- * Receives `{ target: { name, value } }`.
30247
- *
30248
- * @property {boolean} [value]
30249
- * Whether the checkbox is checked.
30250
- *
30251
- * @property {boolean} [isValid]
30252
- * Controls error styling.
30253
- *
30254
- * @property {string} [errorMessage]
30255
- * Error text shown below the checkbox.
30256
- *
30257
- * @property {boolean} [disabled]
30258
- * Prevents user interaction.
30259
- *
30260
- * @property {string} [title]
30261
- *
30262
- * @property {string} [dataCy]
30263
- * Override test selector.
30349
+ /**
30350
+ * Props for Checkbox.
30351
+ *
30352
+ * @typedef {Object} CheckboxProps
30353
+ *
30354
+ * @property {string} label
30355
+ * Label displayed next to the checkbox.
30356
+ *
30357
+ * @property {string} name
30358
+ * Name used in the emitted onChange event.
30359
+ *
30360
+ * @property {(event: CheckboxChangeEvent) => void} [onChange]
30361
+ * Receives `{ target: { name, value } }`.
30362
+ *
30363
+ * @property {boolean} [value]
30364
+ * Whether the checkbox is checked.
30365
+ *
30366
+ * @property {boolean} [isValid]
30367
+ * Controls error styling.
30368
+ *
30369
+ * @property {string} [errorMessage]
30370
+ * Error text shown below the checkbox.
30371
+ *
30372
+ * @property {boolean} [disabled]
30373
+ * Prevents user interaction.
30374
+ *
30375
+ * @property {string} [title]
30376
+ *
30377
+ * @property {string} [dataCy]
30378
+ * Override test selector.
30264
30379
  */
30265
30380
 
30266
- /**
30267
- * @param {CheckboxProps & React.HTMLAttributes<HTMLDivElement>} props
30381
+ /**
30382
+ * @param {CheckboxProps & React.HTMLAttributes<HTMLDivElement>} props
30268
30383
  */
30269
30384
 
30270
30385
  function Checkbox(_ref) {
30271
30386
  let {
30272
- label,
30273
- name,
30274
- onChange,
30275
- value = false,
30276
- isValid = true,
30277
- errorMessage = "",
30278
- disabled = false,
30279
- title,
30280
- dataCy
30281
- } = _ref;
30387
+ label,
30388
+ name,
30389
+ onChange,
30390
+ value = false,
30391
+ isValid = true,
30392
+ errorMessage = "",
30393
+ disabled = false,
30394
+ title,
30395
+ dataCy,
30396
+ className = ""
30397
+ } = _ref,
30398
+ rest = _objectWithoutProperties(_ref, _excluded);
30282
30399
  const id = "checkbox-".concat(name);
30283
30400
  const errorId = "".concat(id, "-error");
30284
30401
  const showError = !isValid && errorMessage;
30285
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", {
30286
- className: "mb-4 flex flex-col",
30402
+ const handleChange = event => {
30403
+ onChange === null || onChange === void 0 || onChange({
30404
+ target: {
30405
+ name,
30406
+ value: event.target.checked
30407
+ }
30408
+ });
30409
+ };
30410
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", _objectSpread(_objectSpread({
30411
+ className: "mb-4 flex flex-col ".concat(className)
30412
+ }, rest), {}, {
30287
30413
  children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", {
30288
30414
  className: "flex items-center",
30289
30415
  children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("input", {
@@ -30291,7 +30417,7 @@ function Checkbox(_ref) {
30291
30417
  type: "checkbox",
30292
30418
  name: name,
30293
30419
  checked: value,
30294
- onChange: onChange,
30420
+ onChange: handleChange,
30295
30421
  disabled: disabled,
30296
30422
  title: title,
30297
30423
  "data-cy": (0,_utils_getDataCy__WEBPACK_IMPORTED_MODULE_2__.getDataCy)({
@@ -30318,7 +30444,7 @@ function Checkbox(_ref) {
30318
30444
  className: "mt-1 text-[--color-util-red]",
30319
30445
  children: errorMessage
30320
30446
  })]
30321
- });
30447
+ }));
30322
30448
  }
30323
30449
 
30324
30450
  /***/ }),
@@ -31015,87 +31141,96 @@ __webpack_require__.r(__webpack_exports__);
31015
31141
  /* harmony import */ var _index__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(958);
31016
31142
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94178);
31017
31143
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
31144
+ const _excluded = ["name", "library", "size", "className", "color"];
31145
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
31146
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
31147
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
31148
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
31149
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
31150
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
31151
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
31018
31152
  // Icon.jsx
31019
31153
 
31020
31154
 
31021
31155
 
31022
31156
 
31023
- /**
31024
- * All valid keys for heroicons.
31025
- * @typedef {keyof typeof HeroIcons} HeroIconName
31157
+ /**
31158
+ * All valid keys for heroicons.
31159
+ * @typedef {keyof typeof HeroIcons} HeroIconName
31026
31160
  */
31027
31161
 
31028
- /**
31029
- * All valid keys for your custom C247 icons.
31030
- * @typedef {keyof typeof C247Icons} C247IconName
31162
+ /**
31163
+ * All valid keys for your custom C247 icons.
31164
+ * @typedef {keyof typeof C247Icons} C247IconName
31031
31165
  */
31032
31166
 
31033
- /**
31034
- * Allowed icon name type (union of dynamic keys).
31035
- * @typedef {HeroIconName | C247IconName} IconName
31167
+ /**
31168
+ * Allowed icon name type (union of dynamic keys).
31169
+ * @typedef {HeroIconName | C247IconName} IconName
31036
31170
  */
31037
31171
 
31038
- /**
31039
- * Which icon library to use.
31040
- * @typedef {'hero'|'c247'} IconLibrary
31172
+ /**
31173
+ * Which icon library to use.
31174
+ * @typedef {'hero'|'c247'} IconLibrary
31041
31175
  */
31042
31176
 
31043
- /**
31044
- * Props for the generic Icon component.
31045
- *
31046
- * @typedef {Object} IconProps
31047
- *
31048
- * @property {IconName} name
31049
- * The dynamic icon name to render.
31050
- *
31051
- * @property {IconLibrary} [library='hero']
31052
- * Which icon set to render from.
31053
- *
31054
- * @property {number} [size=18]
31055
- * Icon size in pixels.
31056
- *
31057
- * @property {string} [className]
31058
- * Extra classes for styling.
31059
- *
31060
- * @property {string} [color]
31061
- * Optional CSS color override.
31177
+ /**
31178
+ * Props for the generic Icon component.
31179
+ *
31180
+ * @typedef {Object} IconProps
31181
+ *
31182
+ * @property {IconName} name
31183
+ * The dynamic icon name to render.
31184
+ *
31185
+ * @property {IconLibrary} [library='hero']
31186
+ * Which icon set to render from.
31187
+ *
31188
+ * @property {number} [size=18]
31189
+ * Icon size in pixels.
31190
+ *
31191
+ * @property {string} [className]
31192
+ * Extra classes for styling.
31193
+ *
31194
+ * @property {string} [color]
31195
+ * Optional CSS color override.
31062
31196
  */
31063
31197
 
31064
- /**
31065
- * Generic Icon component supporting HeroIcons and C247 icons.
31066
- *
31067
- * @param {IconProps & React.SVGProps<SVGSVGElement>} props
31198
+ /**
31199
+ * Generic Icon component supporting HeroIcons and C247 icons.
31200
+ *
31201
+ * @param {IconProps & React.SVGProps<SVGSVGElement>} props
31068
31202
  */
31069
31203
 
31070
- /**
31071
- * Generic Icon component supporting HeroIcons and C247 icons.
31072
- *
31073
- * Props:
31074
- * - name: string - icon name
31075
- * - library: 'hero' | 'c247' (default: 'hero')
31076
- * - size: number (default: 24)
31077
- * - className: string
31078
- * - color: string
31204
+ /**
31205
+ * Generic Icon component supporting HeroIcons and C247 icons.
31206
+ *
31207
+ * Props:
31208
+ * - name: string - icon name
31209
+ * - library: 'hero' | 'c247' (default: 'hero')
31210
+ * - size: number (default: 24)
31211
+ * - className: string
31212
+ * - color: string
31079
31213
  */
31080
31214
 
31081
31215
  const Icon = _ref => {
31082
31216
  let {
31083
- name,
31084
- library = "hero",
31085
- size = 18,
31086
- className = "",
31087
- color
31088
- } = _ref;
31217
+ name,
31218
+ library = "hero",
31219
+ size = 18,
31220
+ className = "",
31221
+ color
31222
+ } = _ref,
31223
+ rest = _objectWithoutProperties(_ref, _excluded);
31089
31224
  const IconComponent = library === "hero" ? _heroicons_react_24_solid__WEBPACK_IMPORTED_MODULE_1__[name] : _index__WEBPACK_IMPORTED_MODULE_2__[name];
31090
31225
  if (!IconComponent) return null;
31091
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(IconComponent, {
31226
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(IconComponent, _objectSpread({
31092
31227
  className: className,
31093
31228
  width: size,
31094
31229
  height: size,
31095
31230
  style: color ? {
31096
31231
  color
31097
31232
  } : undefined
31098
- });
31233
+ }, rest));
31099
31234
  };
31100
31235
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Icon);
31101
31236
 
@@ -40779,45 +40914,56 @@ __webpack_require__.r(__webpack_exports__);
40779
40914
  /* harmony import */ var _heroicons_react_24_solid__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(60493);
40780
40915
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94178);
40781
40916
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
40917
+ const _excluded = ["user", "href", "className"];
40918
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
40919
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
40920
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
40921
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
40922
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
40923
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
40924
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
40782
40925
 
40783
40926
 
40784
40927
 
40785
40928
 
40786
- /**
40787
- * Shape of the user object
40788
- * @typedef {Object} ProfileCardUser
40789
- * @property {string} name
40790
- * @property {string} role
40929
+ /**
40930
+ * Shape of the user object
40931
+ * @typedef {Object} ProfileCardUser
40932
+ * @property {string} name
40933
+ * @property {string} role
40791
40934
  */
40792
40935
 
40793
- /**
40794
- * Props for ProfileCard.
40795
- *
40796
- * @typedef {Object} ProfileCardProps
40797
- *
40798
- * @property {ProfileCardUser} user
40799
- * The user object containing name + role.
40800
- *
40801
- * @property {string} [href]
40802
- * If provided, the card becomes a link instead of a div.
40936
+ /**
40937
+ * Props for ProfileCard.
40938
+ *
40939
+ * @typedef {Object} ProfileCardProps
40940
+ *
40941
+ * @property {ProfileCardUser} user
40942
+ * The user object containing name + role.
40943
+ *
40944
+ * @property {string} [href]
40945
+ * If provided, the card becomes a link instead of a div.
40803
40946
  */
40804
40947
 
40805
- /**
40806
- * ProfileCard with polymorphic wrapper (Link or div).
40807
- *
40808
- * @param {ProfileCardProps & React.HTMLAttributes<HTMLDivElement>} props
40948
+ /**
40949
+ * ProfileCard with polymorphic wrapper (Link or div).
40950
+ *
40951
+ * @param {ProfileCardProps & React.HTMLAttributes<HTMLDivElement>} props
40809
40952
  */
40810
40953
 
40811
40954
  function ProfileCard(_ref) {
40812
40955
  let {
40813
- user,
40814
- href
40815
- } = _ref;
40956
+ user,
40957
+ href,
40958
+ className = ""
40959
+ } = _ref,
40960
+ rest = _objectWithoutProperties(_ref, _excluded);
40816
40961
  const Wrapper = href ? _Link_Link__WEBPACK_IMPORTED_MODULE_0__["default"] : "div";
40817
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(Wrapper, {
40962
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)(Wrapper, _objectSpread(_objectSpread({
40818
40963
  href: href,
40819
- className: "flex items-center rounded-lg border-2 border-[--color-stroke] px-4 py-2 transition-all ".concat(href ? "cursor-pointer hover:border-[--color-primary] hover:bg-[--color-primary-bg-hover]" : "", " "),
40820
- "data-cy": "profileCard",
40964
+ className: "flex items-center rounded-lg border-2 border-[--color-stroke] px-4 py-2 transition-all ".concat(href ? "cursor-pointer hover:border-[--color-primary] hover:bg-[--color-primary-bg-hover]" : "", " ").concat(className),
40965
+ "data-cy": "profileCard"
40966
+ }, rest), {}, {
40821
40967
  children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", {
40822
40968
  children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_Text_Text__WEBPACK_IMPORTED_MODULE_1__["default"], {
40823
40969
  variant: "body",
@@ -40831,7 +40977,7 @@ function ProfileCard(_ref) {
40831
40977
  }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)(_heroicons_react_24_solid__WEBPACK_IMPORTED_MODULE_2__.IdentificationIcon, {
40832
40978
  className: "ml-4 h-6 w-6 text-gray-500"
40833
40979
  })]
40834
- });
40980
+ }));
40835
40981
  }
40836
40982
 
40837
40983
  /***/ }),
@@ -46829,6 +46975,14 @@ __webpack_require__.r(__webpack_exports__);
46829
46975
  /* harmony import */ var _datepicker_scss__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(64990);
46830
46976
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94178);
46831
46977
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__);
46978
+ const _excluded = ["initialDate", "label", "isValid", "errorMessage", "name", "onChange", "value", "className", "title", "required", "dataCy", "disabled", "minDate", "maxDate"];
46979
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
46980
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
46981
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
46982
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
46983
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
46984
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
46985
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
46832
46986
 
46833
46987
 
46834
46988
 
@@ -46889,21 +47043,22 @@ __webpack_require__.r(__webpack_exports__);
46889
47043
 
46890
47044
  function DatePicker(_ref) {
46891
47045
  let {
46892
- initialDate = "",
46893
- label = "Select a Date:",
46894
- isValid = true,
46895
- errorMessage = "Error message",
46896
- name = "date",
46897
- onChange,
46898
- value,
46899
- className = "",
46900
- title = "",
46901
- required = false,
46902
- dataCy,
46903
- disabled = false,
46904
- minDate,
46905
- maxDate
46906
- } = _ref;
47046
+ initialDate = "",
47047
+ label = "Select a Date:",
47048
+ isValid = true,
47049
+ errorMessage = "Error message",
47050
+ name = "date",
47051
+ onChange,
47052
+ value,
47053
+ className = "",
47054
+ title = "",
47055
+ required = false,
47056
+ dataCy,
47057
+ disabled = false,
47058
+ minDate,
47059
+ maxDate
47060
+ } = _ref,
47061
+ rest = _objectWithoutProperties(_ref, _excluded);
46907
47062
  const [selectedDate, setSelectedDate] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)("");
46908
47063
  const inputRef = (0,react__WEBPACK_IMPORTED_MODULE_0__.useRef)(null);
46909
47064
  const normalizeToInputFormat = dateString => {
@@ -46951,8 +47106,9 @@ function DatePicker(_ref) {
46951
47106
  inputRef.current.showPicker();
46952
47107
  }
46953
47108
  };
46954
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
46955
- className: "relative mb-4 flex flex-col",
47109
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", _objectSpread(_objectSpread({
47110
+ className: "relative mb-4 flex flex-col"
47111
+ }, rest), {}, {
46956
47112
  children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_Text_Text__WEBPACK_IMPORTED_MODULE_1__["default"], {
46957
47113
  as: "label",
46958
47114
  variant: "label",
@@ -46997,7 +47153,7 @@ function DatePicker(_ref) {
46997
47153
  className: "text-[--color-util-red]",
46998
47154
  children: errorMessage
46999
47155
  })]
47000
- });
47156
+ }));
47001
47157
  }
47002
47158
 
47003
47159
  /***/ }),
@@ -48843,6 +48999,14 @@ __webpack_require__.r(__webpack_exports__);
48843
48999
  /* harmony import */ var _utils_getDataCy__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(67339);
48844
49000
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94178);
48845
49001
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__);
49002
+ const _excluded = ["type", "rank", "state", "text", "size", "name", "dataCy", "tabIndex", "isFullWidth", "icon", "iconPosition", "isIconAnimated", "isSaving", "savingText", "className", "title", "onClick"];
49003
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
49004
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
49005
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
49006
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
49007
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
49008
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
49009
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
48846
49010
 
48847
49011
 
48848
49012
  // Import a spinner icon
@@ -48926,30 +49090,31 @@ __webpack_require__.r(__webpack_exports__);
48926
49090
 
48927
49091
  function Button(_ref) {
48928
49092
  let {
48929
- type = "button",
48930
- rank = "primary",
48931
- state = "default",
48932
- text = "Example Button",
48933
- size = "md",
48934
- name,
48935
- dataCy,
48936
- tabIndex,
48937
- isFullWidth = false,
48938
- icon: Icon,
48939
- // Icon as a React component
48940
- iconPosition = "right",
48941
- // Icon position: 'left' or 'right'
48942
- isIconAnimated = false,
48943
- // Optional animation for icon hover
48944
- isSaving = false,
48945
- // New state for saving mode
48946
- savingText = "Saving...",
48947
- // Editable saving text
48948
- className = "",
48949
- // Accepts additional custom class
48950
- title = "",
48951
- onClick
48952
- } = _ref;
49093
+ type = "button",
49094
+ rank = "primary",
49095
+ state = "default",
49096
+ text = "Example Button",
49097
+ size = "md",
49098
+ name,
49099
+ dataCy,
49100
+ tabIndex,
49101
+ isFullWidth = false,
49102
+ icon: Icon,
49103
+ // Icon as a React component
49104
+ iconPosition = "right",
49105
+ // Icon position: 'left' or 'right'
49106
+ isIconAnimated = false,
49107
+ // Optional animation for icon hover
49108
+ isSaving = false,
49109
+ // New state for saving mode
49110
+ savingText = "Saving...",
49111
+ // Editable saving text
49112
+ className = "",
49113
+ // Accepts additional custom class
49114
+ title = "",
49115
+ onClick
49116
+ } = _ref,
49117
+ rest = _objectWithoutProperties(_ref, _excluded);
48953
49118
  // Define styles for button ranks
48954
49119
  const rankStyles = {
48955
49120
  primary: "bg-[--color-primary-btn] hover:bg-[--color-primary-btn-hover] text-[--color-primary-btn-txt] border-solid border-2 border-[--color-primary-btn] hover:border-[--color-primary-btn-hover]",
@@ -48967,7 +49132,7 @@ function Button(_ref) {
48967
49132
 
48968
49133
  // Main button class names
48969
49134
  const classNames = " \n ".concat(state === "disabled" || isSaving ? disabledStyles : rankStyles[rank] || rankStyles.primary, "\n group \n transition \n ease-in-out \n duration-700 \n rounded-md\n hover:shadow-lg\n px-5 \n py-1.5 \n text-").concat(size, " \n flex \n items-center \n justify-center \n whitespace-nowrap // Prevents text wrapping\n ").concat(isFullWidth ? "w-full" : "", "\n ").concat(className, "\n ");
48970
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("button", {
49135
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsxs)("button", _objectSpread(_objectSpread({
48971
49136
  type: type,
48972
49137
  title: title,
48973
49138
  name: name,
@@ -48979,7 +49144,8 @@ function Button(_ref) {
48979
49144
  dataCy
48980
49145
  }),
48981
49146
  onClick: !isSaving && state !== "disabled" ? onClick : null,
48982
- disabled: isSaving || state === "disabled",
49147
+ disabled: isSaving || state === "disabled"
49148
+ }, rest), {}, {
48983
49149
  children: [isSaving ? /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(react_icons_ai__WEBPACK_IMPORTED_MODULE_2__.AiOutlineLoading3Quarters, {
48984
49150
  className: iconClassNames
48985
49151
  }) : iconPosition === "left" && Icon && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(Icon, {
@@ -48990,7 +49156,7 @@ function Button(_ref) {
48990
49156
  }), !isSaving && iconPosition === "right" && Icon && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_4__.jsx)(Icon, {
48991
49157
  className: iconClassNames
48992
49158
  })]
48993
- });
49159
+ }));
48994
49160
  }
48995
49161
 
48996
49162
  /***/ }),
@@ -49917,40 +50083,49 @@ __webpack_require__.r(__webpack_exports__);
49917
50083
  /* harmony import */ var clsx__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(34164);
49918
50084
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(94178);
49919
50085
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__);
50086
+ const _excluded = ["intent", "className", "children"];
50087
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
50088
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
50089
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
50090
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
50091
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
50092
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
50093
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
49920
50094
 
49921
50095
 
49922
50096
 
49923
- /**
49924
- * The visual intent / theme of the Card.
49925
- * @typedef {'default'|'info'|'warning'|'success'|'error'|'brand'|'brandSecondary'} CardIntent
50097
+ /**
50098
+ * The visual intent / theme of the Card.
50099
+ * @typedef {'default'|'info'|'warning'|'success'|'error'|'brand'|'brandSecondary'} CardIntent
49926
50100
  */
49927
50101
 
49928
- /**
49929
- * Props for the Card component.
49930
- *
49931
- * @typedef {Object} CardProps
49932
- * @property {CardIntent} [intent]
49933
- * Controls the background + text color theme of the card.
49934
- *
49935
- * @property {string} [className]
49936
- * Additional custom class names.
49937
- *
49938
- * @property {React.ReactNode} [children]
49939
- * Card content.
50102
+ /**
50103
+ * Props for the Card component.
50104
+ *
50105
+ * @typedef {Object} CardProps
50106
+ * @property {CardIntent} [intent]
50107
+ * Controls the background + text color theme of the card.
50108
+ *
50109
+ * @property {string} [className]
50110
+ * Additional custom class names.
50111
+ *
50112
+ * @property {React.ReactNode} [children]
50113
+ * Card content.
49940
50114
  */
49941
50115
 
49942
- /**
49943
- * Card component with typed JSDoc for TS autocomplete.
49944
- *
49945
- * @param {CardProps & React.HTMLAttributes<HTMLDivElement>} props
50116
+ /**
50117
+ * Card component with typed JSDoc for TS autocomplete.
50118
+ *
50119
+ * @param {CardProps & React.HTMLAttributes<HTMLDivElement>} props
49946
50120
  */
49947
50121
 
49948
50122
  function Card(_ref) {
49949
50123
  let {
49950
- intent,
49951
- className = "",
49952
- children
49953
- } = _ref;
50124
+ intent,
50125
+ className = "",
50126
+ children
50127
+ } = _ref,
50128
+ rest = _objectWithoutProperties(_ref, _excluded);
49954
50129
  // Theme override
49955
50130
  const intentClasses = {
49956
50131
  default: "bg-[--color-primary-bg] text-[--color-text-weak]",
@@ -49963,10 +50138,11 @@ function Card(_ref) {
49963
50138
  };
49964
50139
  const resolvedIntent = intent || "default";
49965
50140
  const cardClasses = (0,clsx__WEBPACK_IMPORTED_MODULE_1__["default"])("p-5", "rounded-lg", "shadow-lg", "border-2 border-solid border-[--color-stroke]", intentClasses[resolvedIntent], className);
49966
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", {
49967
- className: cardClasses,
50141
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_2__.jsx)("div", _objectSpread(_objectSpread({
50142
+ className: cardClasses
50143
+ }, rest), {}, {
49968
50144
  children: children
49969
- });
50145
+ }));
49970
50146
  }
49971
50147
 
49972
50148
  /***/ }),
@@ -50734,6 +50910,14 @@ __webpack_require__.r(__webpack_exports__);
50734
50910
  /* harmony import */ var opus_toolkit_styles_assets_logos_c247_loader_gif__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(opus_toolkit_styles_assets_logos_c247_loader_gif__WEBPACK_IMPORTED_MODULE_2__);
50735
50911
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(94178);
50736
50912
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__);
50913
+ const _excluded = ["isLoading", "loaderText", "customLoader", "className"];
50914
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
50915
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
50916
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
50917
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
50918
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
50919
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
50920
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
50737
50921
 
50738
50922
 
50739
50923
 
@@ -50742,39 +50926,41 @@ __webpack_require__.r(__webpack_exports__);
50742
50926
  // In production, it's better to let the parent control rendering to keep Loader focused on UI.
50743
50927
  // This change would improve testability, flexibility, and follow React best practices.
50744
50928
 
50745
- /**
50746
- * Props for the Loader component.
50747
- *
50748
- * @typedef {Object} LoaderProps
50749
- *
50750
- * @property {boolean} isLoading
50751
- * Determines whether the loader is visible.
50752
- *
50753
- * @property {string} [loaderText='loading...']
50754
- * Optional text displayed beneath the spinner.
50755
- *
50756
- * @property {React.ReactNode} [customLoader]
50757
- * Custom loader element (replaces default GIF).
50758
- *
50759
- * @property {string} [className]
50760
- * Extra class names applied to the outer container.
50929
+ /**
50930
+ * Props for the Loader component.
50931
+ *
50932
+ * @typedef {Object} LoaderProps
50933
+ *
50934
+ * @property {boolean} isLoading
50935
+ * Determines whether the loader is visible.
50936
+ *
50937
+ * @property {string} [loaderText='loading...']
50938
+ * Optional text displayed beneath the spinner.
50939
+ *
50940
+ * @property {React.ReactNode} [customLoader]
50941
+ * Custom loader element (replaces default GIF).
50942
+ *
50943
+ * @property {string} [className]
50944
+ * Extra class names applied to the outer container.
50761
50945
  */
50762
50946
 
50763
- /**
50764
- * Loader overlay that covers the entire screen.
50765
- *
50766
- * @param {LoaderProps & React.HTMLAttributes<HTMLDivElement>} props
50947
+ /**
50948
+ * Loader overlay that covers the entire screen.
50949
+ *
50950
+ * @param {LoaderProps & React.HTMLAttributes<HTMLDivElement>} props
50767
50951
  */
50768
50952
 
50769
50953
  function Loader(_ref) {
50770
50954
  let {
50771
- isLoading,
50772
- loaderText = "loading...",
50773
- customLoader,
50774
- className = ""
50775
- } = _ref;
50776
- return isLoading && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", {
50777
- className: "fixed inset-0 z-50 flex items-center justify-center",
50955
+ isLoading,
50956
+ loaderText = "loading...",
50957
+ customLoader,
50958
+ className = ""
50959
+ } = _ref,
50960
+ rest = _objectWithoutProperties(_ref, _excluded);
50961
+ return isLoading && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", _objectSpread(_objectSpread({
50962
+ className: "fixed inset-0 z-50 flex items-center justify-center ".concat(className)
50963
+ }, rest), {}, {
50778
50964
  children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsx)("div", {
50779
50965
  className: "absolute inset-0 bg-[--color-primary-bg] opacity-70"
50780
50966
  }), /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_3__.jsxs)("div", {
@@ -50789,7 +50975,7 @@ function Loader(_ref) {
50789
50975
  children: loaderText
50790
50976
  })]
50791
50977
  })]
50792
- });
50978
+ }));
50793
50979
  }
50794
50980
 
50795
50981
  /***/ }),
@@ -50817,61 +51003,62 @@ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e =
50817
51003
 
50818
51004
 
50819
51005
 
50820
- /**
50821
- * Icon props used by your dynamic Icon component (optional).
50822
- * @typedef {import('../Icon/Icon').IconProps} IconProps
51006
+ /**
51007
+ * Icon props used by your dynamic Icon component (optional).
51008
+ * @typedef {import('../Icon/Icon').IconProps} IconProps
50823
51009
  */
50824
51010
 
50825
- /**
50826
- * A single child menu item.
50827
- * @typedef {Object} SidebarChild
50828
- * @property {string|number} key
50829
- * @property {string} name
50830
- * @property {string} [path]
50831
- * @property {string} [href]
50832
- * @property {IconProps} [iconProps]
51011
+ /**
51012
+ * A single child menu item.
51013
+ * @typedef {Object} SidebarChild
51014
+ * @property {string|number} key
51015
+ * @property {string} name
51016
+ * @property {string} [path]
51017
+ * @property {string} [href]
51018
+ * @property {IconProps} [iconProps]
51019
+ * @property {(key: string|number) => void} [onClick]
50833
51020
  */
50834
51021
 
50835
- /**
50836
- * Sidebar group object containing children.
50837
- * @typedef {Object} SidebarGroupMenu
50838
- * @property {string|number} key
50839
- * @property {string} name
50840
- * @property {SidebarChild[]} children
50841
- * @property {IconProps} [iconProps]
51022
+ /**
51023
+ * Sidebar group object containing children.
51024
+ * @typedef {Object} SidebarGroupMenu
51025
+ * @property {string|number} key
51026
+ * @property {string} name
51027
+ * @property {SidebarChild[]} children
51028
+ * @property {IconProps} [iconProps]
50842
51029
  */
50843
51030
 
50844
- /**
50845
- * Props for SidebarGroup component.
50846
- *
50847
- * @typedef {Object} SidebarGroupProps
50848
- *
50849
- * @property {SidebarGroupMenu} menu
50850
- * The group menu containing children.
50851
- *
50852
- * @property {boolean} open
50853
- * Whether the sidebar itself is expanded (wide mode vs collapsed).
50854
- *
50855
- * @property {string|number|null} activeItem
50856
- * The currently selected menu item key.
50857
- *
50858
- * @property {(key: string|number) => void} onItemClick
50859
- * Handler fired when a child item is selected.
50860
- *
50861
- * @property {(open: boolean) => void} toggleSidebar
50862
- * Opens the sidebar when a user clicks a collapsed group.
50863
- *
50864
- * @property {boolean} isOpen
50865
- * REQUIRED. Whether this group’s children are expanded.
50866
- *
50867
- * @property {() => void} onToggle
50868
- * REQUIRED. Called when the group header is clicked.
51031
+ /**
51032
+ * Props for SidebarGroup component.
51033
+ *
51034
+ * @typedef {Object} SidebarGroupProps
51035
+ *
51036
+ * @property {SidebarGroupMenu} menu
51037
+ * The group menu containing children.
51038
+ *
51039
+ * @property {boolean} open
51040
+ * Whether the sidebar itself is expanded (wide mode vs collapsed).
51041
+ *
51042
+ * @property {string|number|null} activeItem
51043
+ * The currently selected menu item key.
51044
+ *
51045
+ * @property {(key: string|number) => void} onItemClick
51046
+ * Handler fired when a child item is selected.
51047
+ *
51048
+ * @property {(open: boolean) => void} toggleSidebar
51049
+ * Opens the sidebar when a user clicks a collapsed group.
51050
+ *
51051
+ * @property {boolean} isOpen
51052
+ * REQUIRED. Whether this group’s children are expanded.
51053
+ *
51054
+ * @property {() => void} onToggle
51055
+ * REQUIRED. Called when the group header is clicked.
50869
51056
  */
50870
51057
 
50871
- /**
50872
- * Fully typed SidebarGroup component.
50873
- *
50874
- * @param {SidebarGroupProps & React.HTMLAttributes<HTMLDivElement>} props
51058
+ /**
51059
+ * Fully typed SidebarGroup component.
51060
+ *
51061
+ * @param {SidebarGroupProps & React.HTMLAttributes<HTMLDivElement>} props
50875
51062
  */
50876
51063
 
50877
51064
  function SidebarGroup(_ref) {
@@ -50915,7 +51102,11 @@ function SidebarGroup(_ref) {
50915
51102
  menu: child,
50916
51103
  open: open,
50917
51104
  active: activeItem === child.key,
50918
- onClick: () => onItemClick(child.key)
51105
+ onClick: () => {
51106
+ var _child$onClick;
51107
+ (_child$onClick = child.onClick) === null || _child$onClick === void 0 || _child$onClick.call(child, child.key);
51108
+ onItemClick === null || onItemClick === void 0 || onItemClick(child.key);
51109
+ }
50919
51110
  }, "child-".concat(child.key, "-").concat(child.path)))
50920
51111
  })]
50921
51112
  });
@@ -55546,92 +55737,101 @@ __webpack_require__.r(__webpack_exports__);
55546
55737
  /* harmony import */ var _utils_getDataCy__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(67339);
55547
55738
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94178);
55548
55739
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__);
55740
+ const _excluded = ["items", "label", "isValid", "required", "placeholder", "name", "className", "title", "tabIndex", "onChange", "value", "Icon", "errorMessage", "disabled", "dataCy"];
55741
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
55742
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
55743
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
55744
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
55745
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
55746
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
55747
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
55549
55748
 
55550
55749
 
55551
55750
 
55552
55751
 
55553
55752
 
55554
55753
 
55555
- /**
55556
- * @typedef {Object} DropdownItem
55557
- * @property {string} label
55558
- * @property {string|number} value
55754
+ /**
55755
+ * @typedef {Object} DropdownItem
55756
+ * @property {string} label
55757
+ * @property {string|number} value
55559
55758
  */
55560
55759
 
55561
- /**
55562
- * Icon component type — any React SVG component.
55563
- * @typedef {(props: React.SVGProps<SVGSVGElement>) => JSX.Element} IconComponent
55760
+ /**
55761
+ * Icon component type — any React SVG component.
55762
+ * @typedef {(props: React.SVGProps<SVGSVGElement>) => JSX.Element} IconComponent
55564
55763
  */
55565
55764
 
55566
- /**
55567
- * Custom event type emitted by your onChange (matching your pattern).
55568
- * @typedef {{ target: { name: string, value: string|number } }} DropdownChangeEvent
55765
+ /**
55766
+ * Custom event type emitted by your onChange (matching your pattern).
55767
+ * @typedef {{ target: { name: string, value: string|number } }} DropdownChangeEvent
55569
55768
  */
55570
55769
 
55571
- /**
55572
- * @typedef {Object} DropdownProps
55573
- *
55574
- * @property {DropdownItem[]} [items]
55575
- * Array of dropdown options.
55576
- *
55577
- * @property {string} [label]
55578
- * Label above the dropdown.
55579
- *
55580
- * @property {boolean} [isValid]
55581
- * Whether the field is valid.
55582
- *
55583
- * @property {boolean} [required]
55584
- * Whether a * is appended.
55585
- *
55586
- * @property {string} [placeholder]
55587
- *
55588
- * @property {string} [name]
55589
- *
55590
- * @property {string} [className]
55591
- *
55592
- * @property {string} [title]
55593
- *
55594
- * @property {string|number} [tabIndex]
55595
- *
55596
- * @property {(event: DropdownChangeEvent) => void} [onChange]
55597
- * Uses your preferred event signature: `event.target.name` / `event.target.value`.
55598
- *
55599
- * @property {string|number} [value]
55600
- * Selected item value.
55601
- *
55602
- * @property {IconComponent} [Icon]
55603
- * Optional decorative icon.
55604
- *
55605
- * @property {string} [errorMessage]
55606
- *
55607
- * @property {boolean} [disabled]
55608
- *
55609
- * @property {string} [dataCy]
55610
- * Override for auto-generated data-cy attribute.
55770
+ /**
55771
+ * @typedef {Object} DropdownProps
55772
+ *
55773
+ * @property {DropdownItem[]} [items]
55774
+ * Array of dropdown options.
55775
+ *
55776
+ * @property {string} [label]
55777
+ * Label above the dropdown.
55778
+ *
55779
+ * @property {boolean} [isValid]
55780
+ * Whether the field is valid.
55781
+ *
55782
+ * @property {boolean} [required]
55783
+ * Whether a * is appended.
55784
+ *
55785
+ * @property {string} [placeholder]
55786
+ *
55787
+ * @property {string} [name]
55788
+ *
55789
+ * @property {string} [className]
55790
+ *
55791
+ * @property {string} [title]
55792
+ *
55793
+ * @property {string|number} [tabIndex]
55794
+ *
55795
+ * @property {(event: DropdownChangeEvent) => void} [onChange]
55796
+ * Uses your preferred event signature: `event.target.name` / `event.target.value`.
55797
+ *
55798
+ * @property {string|number} [value]
55799
+ * Selected item value.
55800
+ *
55801
+ * @property {IconComponent} [Icon]
55802
+ * Optional decorative icon.
55803
+ *
55804
+ * @property {string} [errorMessage]
55805
+ *
55806
+ * @property {boolean} [disabled]
55807
+ *
55808
+ * @property {string} [dataCy]
55809
+ * Override for auto-generated data-cy attribute.
55611
55810
  */
55612
55811
 
55613
- /**
55614
- * @param {DropdownProps & React.HTMLAttributes<HTMLDivElement>} props
55812
+ /**
55813
+ * @param {DropdownProps & React.HTMLAttributes<HTMLDivElement>} props
55615
55814
  */
55616
55815
 
55617
55816
  function Dropdown(_ref) {
55618
55817
  let {
55619
- items = [],
55620
- label = "Test Label",
55621
- isValid = true,
55622
- required = false,
55623
- placeholder = "Example Placeholder",
55624
- name,
55625
- className = "",
55626
- title = "",
55627
- tabIndex = "",
55628
- onChange,
55629
- value,
55630
- Icon,
55631
- errorMessage = "This field is required",
55632
- disabled = false,
55633
- dataCy
55634
- } = _ref;
55818
+ items = [],
55819
+ label = "Test Label",
55820
+ isValid = true,
55821
+ required = false,
55822
+ placeholder = "Example Placeholder",
55823
+ name,
55824
+ className = "",
55825
+ title = "",
55826
+ tabIndex = "",
55827
+ onChange,
55828
+ value,
55829
+ Icon,
55830
+ errorMessage = "This field is required",
55831
+ disabled = false,
55832
+ dataCy
55833
+ } = _ref,
55834
+ rest = _objectWithoutProperties(_ref, _excluded);
55635
55835
  const [selectedItem, setSelectedItem] = (0,react__WEBPACK_IMPORTED_MODULE_0__.useState)(null);
55636
55836
  (0,react__WEBPACK_IMPORTED_MODULE_0__.useEffect)(() => {
55637
55837
  const newSelectedItem = items.find(item => item.value === value) || null;
@@ -55649,8 +55849,9 @@ function Dropdown(_ref) {
55649
55849
  };
55650
55850
  onChange === null || onChange === void 0 || onChange(event);
55651
55851
  };
55652
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", {
55653
- className: "mb-4 flex flex-col ".concat(className),
55852
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)("div", _objectSpread(_objectSpread({
55853
+ className: "mb-4 flex flex-col ".concat(className)
55854
+ }, rest), {}, {
55654
55855
  children: [/*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_5__.jsxs)(_Text_Text__WEBPACK_IMPORTED_MODULE_1__["default"], {
55655
55856
  as: "label",
55656
55857
  variant: "label",
@@ -55719,7 +55920,7 @@ function Dropdown(_ref) {
55719
55920
  className: "mt-1 text-[--color-util-red]",
55720
55921
  children: errorMessage
55721
55922
  })]
55722
- });
55923
+ }));
55723
55924
  }
55724
55925
 
55725
55926
  /***/ }),
@@ -57457,6 +57658,14 @@ __webpack_require__.r(__webpack_exports__);
57457
57658
  /* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
57458
57659
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94178);
57459
57660
  /* harmony import */ var react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__);
57661
+ const _excluded = ["text", "status", "className", "icon"];
57662
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
57663
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
57664
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
57665
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
57666
+ function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
57667
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
57668
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
57460
57669
 
57461
57670
 
57462
57671
  const statusClasses = {
@@ -57468,52 +57677,54 @@ const statusClasses = {
57468
57677
  notice: "bg-[--color-util-yellow] text-[--color-black]"
57469
57678
  };
57470
57679
 
57471
- /**
57472
- * Allowed pill status values.
57473
- * @typedef {'primary'|'danger'|'warning'|'success'|'info'|'notice'} PillStatus
57680
+ /**
57681
+ * Allowed pill status values.
57682
+ * @typedef {'primary'|'danger'|'warning'|'success'|'info'|'notice'} PillStatus
57474
57683
  */
57475
57684
 
57476
- /**
57477
- * Icon component type — any valid SVG React component.
57478
- * @typedef {(props: React.SVGProps<SVGSVGElement>) => JSX.Element} IconComponent
57685
+ /**
57686
+ * Icon component type — any valid SVG React component.
57687
+ * @typedef {(props: React.SVGProps<SVGSVGElement>) => JSX.Element} IconComponent
57479
57688
  */
57480
57689
 
57481
- /**
57482
- * Props for the Pill component.
57483
- *
57484
- * @typedef {Object} PillProps
57485
- * @property {string} [text='']
57486
- * Text displayed inside the pill.
57487
- *
57488
- * @property {PillStatus} [status='info']
57489
- * Determines visual colors of the pill.
57490
- *
57491
- * @property {string} [className]
57492
- * Additional class names.
57493
- *
57494
- * @property {IconComponent} [icon]
57495
- * Optional icon displayed before the text.
57690
+ /**
57691
+ * Props for the Pill component.
57692
+ *
57693
+ * @typedef {Object} PillProps
57694
+ * @property {string} [text='']
57695
+ * Text displayed inside the pill.
57696
+ *
57697
+ * @property {PillStatus} [status='info']
57698
+ * Determines visual colors of the pill.
57699
+ *
57700
+ * @property {string} [className]
57701
+ * Additional class names.
57702
+ *
57703
+ * @property {IconComponent} [icon]
57704
+ * Optional icon displayed before the text.
57496
57705
  */
57497
57706
 
57498
- /**
57499
- * @param {PillProps & React.HTMLAttributes<HTMLSpanElement>} props
57707
+ /**
57708
+ * @param {PillProps & React.HTMLAttributes<HTMLSpanElement>} props
57500
57709
  */
57501
57710
 
57502
57711
  const Pill = _ref => {
57503
57712
  let {
57504
- text = "",
57505
- status = "info",
57506
- className = "",
57507
- icon: Icon
57508
- } = _ref;
57713
+ text = "",
57714
+ status = "info",
57715
+ className = "",
57716
+ icon: Icon
57717
+ } = _ref,
57718
+ rest = _objectWithoutProperties(_ref, _excluded);
57509
57719
  const baseClasses = "inline-flex items-center gap-1 text-xs font-medium px-3 py-1 rounded-full";
57510
57720
  const statusClass = statusClasses[status] || statusClasses.info;
57511
- return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span", {
57512
- className: "".concat(baseClasses, " ").concat(statusClass, " ").concat(className),
57721
+ return /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsxs)("span", _objectSpread(_objectSpread({
57722
+ className: "".concat(baseClasses, " ").concat(statusClass, " ").concat(className)
57723
+ }, rest), {}, {
57513
57724
  children: [Icon && /*#__PURE__*/(0,react_jsx_runtime__WEBPACK_IMPORTED_MODULE_1__.jsx)(Icon, {
57514
57725
  className: "h-4 w-4"
57515
57726
  }), text]
57516
- });
57727
+ }));
57517
57728
  };
57518
57729
  /* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (Pill);
57519
57730