@raystack/apsara 0.11.7 → 0.11.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1493,29 +1493,6 @@ function _extends() {
1493
1493
  return createScope1;
1494
1494
  }
1495
1495
 
1496
- /**
1497
- * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
1498
- * prop or avoid re-executing effects when passed as a dependency
1499
- */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(callback) {
1500
- const callbackRef = React.useRef(callback);
1501
- React.useEffect(()=>{
1502
- callbackRef.current = callback;
1503
- }); // https://github.com/facebook/react/issues/19240
1504
- return React.useMemo(()=>(...args)=>{
1505
- var _callbackRef$current;
1506
- return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
1507
- }
1508
- , []);
1509
- }
1510
-
1511
- /**
1512
- * On the server, React emits a warning when calling `useLayoutEffect`.
1513
- * This is because neither `useLayoutEffect` nor `useEffect` run on the server.
1514
- * We use this safe version which suppresses the warning by replacing it with a noop on the server.
1515
- *
1516
- * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
1517
- */ const $9f79659886946c16$export$e5c5a5f917a5871c$1 = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? React.useLayoutEffect : ()=>{};
1518
-
1519
1496
  /**
1520
1497
  * Set a given ref to a given value
1521
1498
  * This utility takes care of different types of refs: callback refs and RefObject(s)
@@ -1615,6 +1592,158 @@ function $5e63c961fc1ce211$var$mergeProps$1(slotProps, childProps) {
1615
1592
  };
1616
1593
  }
1617
1594
 
1595
+ // We have resorted to returning slots directly rather than exposing primitives that can then
1596
+ // be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.
1597
+ // This is because we encountered issues with generic types that cannot be statically analysed
1598
+ // due to creating them dynamically via createCollection.
1599
+ function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
1600
+ /* -----------------------------------------------------------------------------------------------
1601
+ * CollectionProvider
1602
+ * ---------------------------------------------------------------------------------------------*/ const PROVIDER_NAME = name + 'CollectionProvider';
1603
+ const [createCollectionContext, createCollectionScope] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1(PROVIDER_NAME);
1604
+ const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, {
1605
+ collectionRef: {
1606
+ current: null
1607
+ },
1608
+ itemMap: new Map()
1609
+ });
1610
+ const CollectionProvider = (props)=>{
1611
+ const { scope: scope , children: children } = props;
1612
+ const ref = React.useRef(null);
1613
+ const itemMap = React.useRef(new Map()).current;
1614
+ return /*#__PURE__*/ React.createElement(CollectionProviderImpl, {
1615
+ scope: scope,
1616
+ itemMap: itemMap,
1617
+ collectionRef: ref
1618
+ }, children);
1619
+ };
1620
+ /* -----------------------------------------------------------------------------------------------
1621
+ * CollectionSlot
1622
+ * ---------------------------------------------------------------------------------------------*/ const COLLECTION_SLOT_NAME = name + 'CollectionSlot';
1623
+ const CollectionSlot = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
1624
+ const { scope: scope , children: children } = props;
1625
+ const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
1626
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.collectionRef);
1627
+ return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1, {
1628
+ ref: composedRefs
1629
+ }, children);
1630
+ });
1631
+ /* -----------------------------------------------------------------------------------------------
1632
+ * CollectionItem
1633
+ * ---------------------------------------------------------------------------------------------*/ const ITEM_SLOT_NAME = name + 'CollectionItemSlot';
1634
+ const ITEM_DATA_ATTR = 'data-radix-collection-item';
1635
+ const CollectionItemSlot = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
1636
+ const { scope: scope , children: children , ...itemData } = props;
1637
+ const ref = React.useRef(null);
1638
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
1639
+ const context = useCollectionContext(ITEM_SLOT_NAME, scope);
1640
+ React.useEffect(()=>{
1641
+ context.itemMap.set(ref, {
1642
+ ref: ref,
1643
+ ...itemData
1644
+ });
1645
+ return ()=>void context.itemMap.delete(ref)
1646
+ ;
1647
+ });
1648
+ return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1, {
1649
+ [ITEM_DATA_ATTR]: '',
1650
+ ref: composedRefs
1651
+ }, children);
1652
+ });
1653
+ /* -----------------------------------------------------------------------------------------------
1654
+ * useCollection
1655
+ * ---------------------------------------------------------------------------------------------*/ function useCollection(scope) {
1656
+ const context = useCollectionContext(name + 'CollectionConsumer', scope);
1657
+ const getItems = React.useCallback(()=>{
1658
+ const collectionNode = context.collectionRef.current;
1659
+ if (!collectionNode) return [];
1660
+ const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
1661
+ const items = Array.from(context.itemMap.values());
1662
+ const orderedItems = items.sort((a, b)=>orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
1663
+ );
1664
+ return orderedItems;
1665
+ }, [
1666
+ context.collectionRef,
1667
+ context.itemMap
1668
+ ]);
1669
+ return getItems;
1670
+ }
1671
+ return [
1672
+ {
1673
+ Provider: CollectionProvider,
1674
+ Slot: CollectionSlot,
1675
+ ItemSlot: CollectionItemSlot
1676
+ },
1677
+ useCollection,
1678
+ createCollectionScope
1679
+ ];
1680
+ }
1681
+
1682
+ function $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
1683
+ return function handleEvent(event) {
1684
+ originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
1685
+ if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
1686
+ };
1687
+ }
1688
+
1689
+ /**
1690
+ * A custom hook that converts a callback to a ref to avoid triggering re-renders when passed as a
1691
+ * prop or avoid re-executing effects when passed as a dependency
1692
+ */ function $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(callback) {
1693
+ const callbackRef = React.useRef(callback);
1694
+ React.useEffect(()=>{
1695
+ callbackRef.current = callback;
1696
+ }); // https://github.com/facebook/react/issues/19240
1697
+ return React.useMemo(()=>(...args)=>{
1698
+ var _callbackRef$current;
1699
+ return (_callbackRef$current = callbackRef.current) === null || _callbackRef$current === void 0 ? void 0 : _callbackRef$current.call(callbackRef, ...args);
1700
+ }
1701
+ , []);
1702
+ }
1703
+
1704
+ function $71cd76cc60e0454e$export$6f32135080cb4c3$1({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
1705
+ const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState$1({
1706
+ defaultProp: defaultProp,
1707
+ onChange: onChange
1708
+ });
1709
+ const isControlled = prop !== undefined;
1710
+ const value1 = isControlled ? prop : uncontrolledProp;
1711
+ const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
1712
+ const setValue = React.useCallback((nextValue)=>{
1713
+ if (isControlled) {
1714
+ const setter = nextValue;
1715
+ const value = typeof nextValue === 'function' ? setter(prop) : nextValue;
1716
+ if (value !== prop) handleChange(value);
1717
+ } else setUncontrolledProp(nextValue);
1718
+ }, [
1719
+ isControlled,
1720
+ prop,
1721
+ setUncontrolledProp,
1722
+ handleChange
1723
+ ]);
1724
+ return [
1725
+ value1,
1726
+ setValue
1727
+ ];
1728
+ }
1729
+ function $71cd76cc60e0454e$var$useUncontrolledState$1({ defaultProp: defaultProp , onChange: onChange }) {
1730
+ const uncontrolledState = React.useState(defaultProp);
1731
+ const [value] = uncontrolledState;
1732
+ const prevValueRef = React.useRef(value);
1733
+ const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
1734
+ React.useEffect(()=>{
1735
+ if (prevValueRef.current !== value) {
1736
+ handleChange(value);
1737
+ prevValueRef.current = value;
1738
+ }
1739
+ }, [
1740
+ value,
1741
+ prevValueRef,
1742
+ handleChange
1743
+ ]);
1744
+ return uncontrolledState;
1745
+ }
1746
+
1618
1747
  const $8927f6f2acc4f386$var$NODES$1 = [
1619
1748
  'a',
1620
1749
  'button',
@@ -1696,393 +1825,61 @@ const $8927f6f2acc4f386$var$NODES$1 = [
1696
1825
  );
1697
1826
  }
1698
1827
 
1828
+ /**
1829
+ * On the server, React emits a warning when calling `useLayoutEffect`.
1830
+ * This is because neither `useLayoutEffect` nor `useEffect` run on the server.
1831
+ * We use this safe version which suppresses the warning by replacing it with a noop on the server.
1832
+ *
1833
+ * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
1834
+ */ const $9f79659886946c16$export$e5c5a5f917a5871c$1 = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? React.useLayoutEffect : ()=>{};
1835
+
1836
+ function $fe963b355347cc68$export$3e6543de14f8614f$1(initialState, machine) {
1837
+ return React.useReducer((state, event)=>{
1838
+ const nextState = machine[state][event];
1839
+ return nextState !== null && nextState !== void 0 ? nextState : state;
1840
+ }, initialState);
1841
+ }
1842
+
1843
+
1844
+ const $921a889cee6df7e8$export$99c2b779aa4e8b8b$1 = (props)=>{
1845
+ const { present: present , children: children } = props;
1846
+ const presence = $921a889cee6df7e8$var$usePresence$1(present);
1847
+ const child = typeof children === 'function' ? children({
1848
+ present: presence.isPresent
1849
+ }) : React.Children.only(children);
1850
+ const ref = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(presence.ref, child.ref);
1851
+ const forceMount = typeof children === 'function';
1852
+ return forceMount || presence.isPresent ? /*#__PURE__*/ React.cloneElement(child, {
1853
+ ref: ref
1854
+ }) : null;
1855
+ };
1856
+ $921a889cee6df7e8$export$99c2b779aa4e8b8b$1.displayName = 'Presence';
1699
1857
  /* -------------------------------------------------------------------------------------------------
1700
- * Avatar
1701
- * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$AVATAR_NAME = 'Avatar';
1702
- const [$cddcb0b647441e34$var$createAvatarContext, $cddcb0b647441e34$export$90370d16b488820f] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($cddcb0b647441e34$var$AVATAR_NAME);
1703
- const [$cddcb0b647441e34$var$AvatarProvider, $cddcb0b647441e34$var$useAvatarContext] = $cddcb0b647441e34$var$createAvatarContext($cddcb0b647441e34$var$AVATAR_NAME);
1704
- const $cddcb0b647441e34$export$e2255cf6045e8d47 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
1705
- const { __scopeAvatar: __scopeAvatar , ...avatarProps } = props;
1706
- const [imageLoadingStatus, setImageLoadingStatus] = React.useState('idle');
1707
- return /*#__PURE__*/ React.createElement($cddcb0b647441e34$var$AvatarProvider, {
1708
- scope: __scopeAvatar,
1709
- imageLoadingStatus: imageLoadingStatus,
1710
- onImageLoadingStatusChange: setImageLoadingStatus
1711
- }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends({}, avatarProps, {
1712
- ref: forwardedRef
1713
- })));
1714
- });
1715
- /* -------------------------------------------------------------------------------------------------
1716
- * AvatarImage
1717
- * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$IMAGE_NAME = 'AvatarImage';
1718
- const $cddcb0b647441e34$export$2cd8ae1985206fe8 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
1719
- const { __scopeAvatar: __scopeAvatar , src: src , onLoadingStatusChange: onLoadingStatusChange = ()=>{} , ...imageProps } = props;
1720
- const context = $cddcb0b647441e34$var$useAvatarContext($cddcb0b647441e34$var$IMAGE_NAME, __scopeAvatar);
1721
- const imageLoadingStatus = $cddcb0b647441e34$var$useImageLoadingStatus(src);
1722
- const handleLoadingStatusChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1((status)=>{
1723
- onLoadingStatusChange(status);
1724
- context.onImageLoadingStatusChange(status);
1858
+ * usePresence
1859
+ * -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence$1(present) {
1860
+ const [node1, setNode] = React.useState();
1861
+ const stylesRef = React.useRef({});
1862
+ const prevPresentRef = React.useRef(present);
1863
+ const prevAnimationNameRef = React.useRef('none');
1864
+ const initialState = present ? 'mounted' : 'unmounted';
1865
+ const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f$1(initialState, {
1866
+ mounted: {
1867
+ UNMOUNT: 'unmounted',
1868
+ ANIMATION_OUT: 'unmountSuspended'
1869
+ },
1870
+ unmountSuspended: {
1871
+ MOUNT: 'mounted',
1872
+ ANIMATION_END: 'unmounted'
1873
+ },
1874
+ unmounted: {
1875
+ MOUNT: 'mounted'
1876
+ }
1725
1877
  });
1726
- $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
1727
- if (imageLoadingStatus !== 'idle') handleLoadingStatusChange(imageLoadingStatus);
1878
+ React.useEffect(()=>{
1879
+ const currentAnimationName = $921a889cee6df7e8$var$getAnimationName$1(stylesRef.current);
1880
+ prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';
1728
1881
  }, [
1729
- imageLoadingStatus,
1730
- handleLoadingStatusChange
1731
- ]);
1732
- return imageLoadingStatus === 'loaded' ? /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.img, _extends({}, imageProps, {
1733
- ref: forwardedRef,
1734
- src: src
1735
- })) : null;
1736
- });
1737
- /* -------------------------------------------------------------------------------------------------
1738
- * AvatarFallback
1739
- * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$FALLBACK_NAME = 'AvatarFallback';
1740
- const $cddcb0b647441e34$export$69fffb6a9571fbfe = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
1741
- const { __scopeAvatar: __scopeAvatar , delayMs: delayMs , ...fallbackProps } = props;
1742
- const context = $cddcb0b647441e34$var$useAvatarContext($cddcb0b647441e34$var$FALLBACK_NAME, __scopeAvatar);
1743
- const [canRender, setCanRender] = React.useState(delayMs === undefined);
1744
- React.useEffect(()=>{
1745
- if (delayMs !== undefined) {
1746
- const timerId = window.setTimeout(()=>setCanRender(true)
1747
- , delayMs);
1748
- return ()=>window.clearTimeout(timerId)
1749
- ;
1750
- }
1751
- }, [
1752
- delayMs
1753
- ]);
1754
- return canRender && context.imageLoadingStatus !== 'loaded' ? /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends({}, fallbackProps, {
1755
- ref: forwardedRef
1756
- })) : null;
1757
- });
1758
- /* -----------------------------------------------------------------------------------------------*/ function $cddcb0b647441e34$var$useImageLoadingStatus(src) {
1759
- const [loadingStatus, setLoadingStatus] = React.useState('idle');
1760
- React.useEffect(()=>{
1761
- if (!src) {
1762
- setLoadingStatus('error');
1763
- return;
1764
- }
1765
- let isMounted = true;
1766
- const image = new window.Image();
1767
- const updateStatus = (status)=>()=>{
1768
- if (!isMounted) return;
1769
- setLoadingStatus(status);
1770
- }
1771
- ;
1772
- setLoadingStatus('loading');
1773
- image.onload = updateStatus('loaded');
1774
- image.onerror = updateStatus('error');
1775
- image.src = src;
1776
- return ()=>{
1777
- isMounted = false;
1778
- };
1779
- }, [
1780
- src
1781
- ]);
1782
- return loadingStatus;
1783
- }
1784
- const $cddcb0b647441e34$export$be92b6f5f03c0fe9 = $cddcb0b647441e34$export$e2255cf6045e8d47;
1785
- const $cddcb0b647441e34$export$3e431a229df88919 = $cddcb0b647441e34$export$2cd8ae1985206fe8;
1786
- const $cddcb0b647441e34$export$fb8d7f40caaeea67 = $cddcb0b647441e34$export$69fffb6a9571fbfe;
1787
-
1788
- function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
1789
-
1790
- const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
1791
- const cx = clsx;
1792
- const cva = (base, config)=>{
1793
- return (props)=>{
1794
- var ref;
1795
- if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
1796
- const { variants , defaultVariants } = config;
1797
- const getVariantClassNames = Object.keys(variants).map((variant)=>{
1798
- const variantProp = props === null || props === void 0 ? void 0 : props[variant];
1799
- const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
1800
- if (variantProp === null) return null;
1801
- const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
1802
- return variants[variant][variantKey];
1803
- });
1804
- const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
1805
- let [key, value] = param;
1806
- if (value === undefined) {
1807
- return acc;
1808
- }
1809
- acc[key] = value;
1810
- return acc;
1811
- }, {});
1812
- const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1)=>{
1813
- let { class: cvClass , className: cvClassName , ...compoundVariantOptions } = param1;
1814
- return Object.entries(compoundVariantOptions).every((param)=>{
1815
- let [key, value] = param;
1816
- return Array.isArray(value) ? value.includes({
1817
- ...defaultVariants,
1818
- ...propsWithoutUndefined
1819
- }[key]) : ({
1820
- ...defaultVariants,
1821
- ...propsWithoutUndefined
1822
- })[key] === value;
1823
- }) ? [
1824
- ...acc,
1825
- cvClass,
1826
- cvClassName
1827
- ] : acc;
1828
- }, []);
1829
- return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
1830
- };
1831
- };
1832
-
1833
- var styles$A = {"box":"box-module_box__ETj3v"};
1834
-
1835
- const box = cva(styles$A.box);
1836
- function Box({ children, className, ...props }) {
1837
- return (jsxRuntimeExports.jsx("div", { className: box({ className }), ...props, children: children }));
1838
- }
1839
-
1840
- var styles$z = {"avatar":"avatar-module_avatar__jlJnk","avatar-square":"avatar-module_avatar-square__vypF7","avatar-circle":"avatar-module_avatar-circle__XP6E3","avatar-disabled":"avatar-module_avatar-disabled__rsBE6","imageWrapper":"avatar-module_imageWrapper__dhsku","image":"avatar-module_image__P6Pav","fallback":"avatar-module_fallback__NzNwU"};
1841
-
1842
- const avatar = cva(styles$z.avatar, {
1843
- variants: {
1844
- shape: {
1845
- square: styles$z["avatar-square"],
1846
- circle: styles$z["avatar-circle"],
1847
- },
1848
- disabled: {
1849
- true: styles$z["avatar-disabled"],
1850
- },
1851
- },
1852
- defaultVariants: {
1853
- shape: "circle",
1854
- },
1855
- });
1856
- const image$1 = cva(styles$z.image);
1857
- const AvatarRoot = React.forwardRef(({ className, alt, src, fallback, shape, style, imageProps, ...props }, ref) => (jsxRuntimeExports.jsx(Box, { className: styles$z.imageWrapper, style: style, children: jsxRuntimeExports.jsxs($cddcb0b647441e34$export$be92b6f5f03c0fe9, { ref: ref, className: avatar({ shape, className }), style: imageProps, ...props, children: [jsxRuntimeExports.jsx(AvatarImage, { alt: alt, src: src }), jsxRuntimeExports.jsx(AvatarFallback, { children: fallback })] }) })));
1858
- AvatarRoot.displayName = $cddcb0b647441e34$export$be92b6f5f03c0fe9.displayName;
1859
- const AvatarImage = React.forwardRef(({ className, sizes, ...props }, ref) => (jsxRuntimeExports.jsx($cddcb0b647441e34$export$3e431a229df88919, { ref: ref, className: image$1({ className }), ...props })));
1860
- AvatarImage.displayName = $cddcb0b647441e34$export$3e431a229df88919.displayName;
1861
- const fallback = cva(styles$z.fallback);
1862
- const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($cddcb0b647441e34$export$fb8d7f40caaeea67, { ref: ref, className: fallback({ className }), ...props })));
1863
- AvatarFallback.displayName = $cddcb0b647441e34$export$fb8d7f40caaeea67.displayName;
1864
- const Avatar = Object.assign(AvatarRoot, {
1865
- Image: AvatarImage,
1866
- Fallback: AvatarFallback,
1867
- });
1868
-
1869
- var styles$y = {"badge":"badge-module_badge__NAloH"};
1870
-
1871
- const badge = cva(styles$y.badge, {
1872
- variants: {
1873
- color: {},
1874
- },
1875
- });
1876
- const Badge = (props, ref) => {
1877
- const { color, className, children } = props;
1878
- return jsxRuntimeExports.jsx("span", { className: badge({ color, className }), children: children });
1879
- };
1880
- var badge$1 = React.forwardRef(Badge);
1881
-
1882
- var styles$x = {"body":"body-module_body__0sfEI","body-small":"body-module_body-small__CjW1C","body-medium":"body-module_body-medium__XVmQw","body-large":"body-module_body-large__KqAga"};
1883
-
1884
- const body$1 = cva(styles$x.body, {
1885
- variants: {
1886
- size: {
1887
- small: styles$x["body-small"],
1888
- medium: styles$x["body-medium"],
1889
- large: styles$x["body-large"],
1890
- },
1891
- },
1892
- defaultVariants: {
1893
- size: "small",
1894
- },
1895
- });
1896
- function Body({ children, className, size, ...props }) {
1897
- return (jsxRuntimeExports.jsx("span", { className: body$1({ size, className }), ...props, children: children }));
1898
- }
1899
-
1900
- var styles$w = {"button":"button-module_button__9VQ21","button-small":"button-module_button-small__RR1mh","button-medium":"button-module_button-medium__79Bf1","button-large":"button-module_button-large__BQy6w","button-round":"button-module_button-round__Gd30S","button-primary":"button-module_button-primary__R0k9n","button-outline":"button-module_button-outline__MN25q","button-secondary":"button-module_button-secondary__zDkNV","button-ghost":"button-module_button-ghost__KcZUm","button-danger":"button-module_button-danger__dnB-7"};
1901
-
1902
- const button = cva(styles$w.button, {
1903
- variants: {
1904
- variant: {
1905
- primary: styles$w["button-primary"],
1906
- outline: styles$w["button-outline"],
1907
- secondary: styles$w["button-secondary"],
1908
- ghost: styles$w["button-ghost"],
1909
- danger: styles$w["button-danger"],
1910
- },
1911
- size: {
1912
- small: styles$w["button-small"],
1913
- medium: styles$w["button-medium"],
1914
- large: styles$w["button-large"],
1915
- },
1916
- },
1917
- });
1918
- const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
1919
- const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360$1 : "button";
1920
- return (jsxRuntimeExports.jsx(Comp, { className: button({ variant, size, className }), ref: ref, ...props }));
1921
- });
1922
- Button.displayName = "Button";
1923
-
1924
- function $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(originalEventHandler, ourEventHandler, { checkForDefaultPrevented: checkForDefaultPrevented = true } = {}) {
1925
- return function handleEvent(event) {
1926
- originalEventHandler === null || originalEventHandler === void 0 || originalEventHandler(event);
1927
- if (checkForDefaultPrevented === false || !event.defaultPrevented) return ourEventHandler === null || ourEventHandler === void 0 ? void 0 : ourEventHandler(event);
1928
- };
1929
- }
1930
-
1931
- function $71cd76cc60e0454e$export$6f32135080cb4c3$1({ prop: prop , defaultProp: defaultProp , onChange: onChange = ()=>{} }) {
1932
- const [uncontrolledProp, setUncontrolledProp] = $71cd76cc60e0454e$var$useUncontrolledState$1({
1933
- defaultProp: defaultProp,
1934
- onChange: onChange
1935
- });
1936
- const isControlled = prop !== undefined;
1937
- const value1 = isControlled ? prop : uncontrolledProp;
1938
- const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
1939
- const setValue = React.useCallback((nextValue)=>{
1940
- if (isControlled) {
1941
- const setter = nextValue;
1942
- const value = typeof nextValue === 'function' ? setter(prop) : nextValue;
1943
- if (value !== prop) handleChange(value);
1944
- } else setUncontrolledProp(nextValue);
1945
- }, [
1946
- isControlled,
1947
- prop,
1948
- setUncontrolledProp,
1949
- handleChange
1950
- ]);
1951
- return [
1952
- value1,
1953
- setValue
1954
- ];
1955
- }
1956
- function $71cd76cc60e0454e$var$useUncontrolledState$1({ defaultProp: defaultProp , onChange: onChange }) {
1957
- const uncontrolledState = React.useState(defaultProp);
1958
- const [value] = uncontrolledState;
1959
- const prevValueRef = React.useRef(value);
1960
- const handleChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1(onChange);
1961
- React.useEffect(()=>{
1962
- if (prevValueRef.current !== value) {
1963
- handleChange(value);
1964
- prevValueRef.current = value;
1965
- }
1966
- }, [
1967
- value,
1968
- prevValueRef,
1969
- handleChange
1970
- ]);
1971
- return uncontrolledState;
1972
- }
1973
-
1974
- function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
1975
- const ref = React.useRef({
1976
- value: value,
1977
- previous: value
1978
- }); // We compare values before making an update to ensure that
1979
- // a change has been made. This ensures the previous value is
1980
- // persisted correctly between renders.
1981
- return React.useMemo(()=>{
1982
- if (ref.current.value !== value) {
1983
- ref.current.previous = ref.current.value;
1984
- ref.current.value = value;
1985
- }
1986
- return ref.current.previous;
1987
- }, [
1988
- value
1989
- ]);
1990
- }
1991
-
1992
- function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
1993
- const [size, setSize] = React.useState(undefined);
1994
- $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
1995
- if (element) {
1996
- // provide size as early as possible
1997
- setSize({
1998
- width: element.offsetWidth,
1999
- height: element.offsetHeight
2000
- });
2001
- const resizeObserver = new ResizeObserver((entries)=>{
2002
- if (!Array.isArray(entries)) return;
2003
- // Since we only observe the one element, we don't need to loop over the
2004
- // array
2005
- if (!entries.length) return;
2006
- const entry = entries[0];
2007
- let width;
2008
- let height;
2009
- if ('borderBoxSize' in entry) {
2010
- const borderSizeEntry = entry['borderBoxSize']; // iron out differences between browsers
2011
- const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
2012
- width = borderSize['inlineSize'];
2013
- height = borderSize['blockSize'];
2014
- } else {
2015
- // for browsers that don't support `borderBoxSize`
2016
- // we calculate it ourselves to get the correct border box.
2017
- width = element.offsetWidth;
2018
- height = element.offsetHeight;
2019
- }
2020
- setSize({
2021
- width: width,
2022
- height: height
2023
- });
2024
- });
2025
- resizeObserver.observe(element, {
2026
- box: 'border-box'
2027
- });
2028
- return ()=>resizeObserver.unobserve(element)
2029
- ;
2030
- } else // We only want to reset to `undefined` when the element becomes `null`,
2031
- // not if it changes to another element.
2032
- setSize(undefined);
2033
- }, [
2034
- element
2035
- ]);
2036
- return size;
2037
- }
2038
-
2039
- function $fe963b355347cc68$export$3e6543de14f8614f$1(initialState, machine) {
2040
- return React.useReducer((state, event)=>{
2041
- const nextState = machine[state][event];
2042
- return nextState !== null && nextState !== void 0 ? nextState : state;
2043
- }, initialState);
2044
- }
2045
-
2046
-
2047
- const $921a889cee6df7e8$export$99c2b779aa4e8b8b$1 = (props)=>{
2048
- const { present: present , children: children } = props;
2049
- const presence = $921a889cee6df7e8$var$usePresence$1(present);
2050
- const child = typeof children === 'function' ? children({
2051
- present: presence.isPresent
2052
- }) : React.Children.only(children);
2053
- const ref = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(presence.ref, child.ref);
2054
- const forceMount = typeof children === 'function';
2055
- return forceMount || presence.isPresent ? /*#__PURE__*/ React.cloneElement(child, {
2056
- ref: ref
2057
- }) : null;
2058
- };
2059
- $921a889cee6df7e8$export$99c2b779aa4e8b8b$1.displayName = 'Presence';
2060
- /* -------------------------------------------------------------------------------------------------
2061
- * usePresence
2062
- * -----------------------------------------------------------------------------------------------*/ function $921a889cee6df7e8$var$usePresence$1(present) {
2063
- const [node1, setNode] = React.useState();
2064
- const stylesRef = React.useRef({});
2065
- const prevPresentRef = React.useRef(present);
2066
- const prevAnimationNameRef = React.useRef('none');
2067
- const initialState = present ? 'mounted' : 'unmounted';
2068
- const [state, send] = $fe963b355347cc68$export$3e6543de14f8614f$1(initialState, {
2069
- mounted: {
2070
- UNMOUNT: 'unmounted',
2071
- ANIMATION_OUT: 'unmountSuspended'
2072
- },
2073
- unmountSuspended: {
2074
- MOUNT: 'mounted',
2075
- ANIMATION_END: 'unmounted'
2076
- },
2077
- unmounted: {
2078
- MOUNT: 'mounted'
2079
- }
2080
- });
2081
- React.useEffect(()=>{
2082
- const currentAnimationName = $921a889cee6df7e8$var$getAnimationName$1(stylesRef.current);
2083
- prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';
2084
- }, [
2085
- state
1882
+ state
2086
1883
  ]);
2087
1884
  $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
2088
1885
  const styles = stylesRef.current;
@@ -2160,147 +1957,435 @@ $921a889cee6df7e8$export$99c2b779aa4e8b8b$1.displayName = 'Presence';
2160
1957
  return (styles === null || styles === void 0 ? void 0 : styles.animationName) || 'none';
2161
1958
  }
2162
1959
 
1960
+ const $1746a345f3d73bb7$var$useReactId$1 = React__namespace['useId'.toString()] || (()=>undefined
1961
+ );
1962
+ let $1746a345f3d73bb7$var$count$1 = 0;
1963
+ function $1746a345f3d73bb7$export$f680877a34711e37$1(deterministicId) {
1964
+ const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId$1()); // React versions older than 18 will have client-side ids only.
1965
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
1966
+ if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count$1++)
1967
+ );
1968
+ }, [
1969
+ deterministicId
1970
+ ]);
1971
+ return deterministicId || (id ? `radix-${id}` : '');
1972
+ }
1973
+
1974
+ /* -------------------------------------------------------------------------------------------------
1975
+ * Collapsible
1976
+ * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$COLLAPSIBLE_NAME = 'Collapsible';
1977
+ const [$409067139f391064$var$createCollapsibleContext, $409067139f391064$export$952b32dcbe73087a] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($409067139f391064$var$COLLAPSIBLE_NAME);
1978
+ const [$409067139f391064$var$CollapsibleProvider, $409067139f391064$var$useCollapsibleContext] = $409067139f391064$var$createCollapsibleContext($409067139f391064$var$COLLAPSIBLE_NAME);
1979
+ const $409067139f391064$export$6eb0f7ddcda6131f = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
1980
+ const { __scopeCollapsible: __scopeCollapsible , open: openProp , defaultOpen: defaultOpen , disabled: disabled , onOpenChange: onOpenChange , ...collapsibleProps } = props;
1981
+ const [open = false, setOpen] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
1982
+ prop: openProp,
1983
+ defaultProp: defaultOpen,
1984
+ onChange: onOpenChange
1985
+ });
1986
+ return /*#__PURE__*/ React.createElement($409067139f391064$var$CollapsibleProvider, {
1987
+ scope: __scopeCollapsible,
1988
+ disabled: disabled,
1989
+ contentId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
1990
+ open: open,
1991
+ onOpenToggle: React.useCallback(()=>setOpen((prevOpen)=>!prevOpen
1992
+ )
1993
+ , [
1994
+ setOpen
1995
+ ])
1996
+ }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
1997
+ "data-state": $409067139f391064$var$getState(open),
1998
+ "data-disabled": disabled ? '' : undefined
1999
+ }, collapsibleProps, {
2000
+ ref: forwardedRef
2001
+ })));
2002
+ });
2003
+ /* -------------------------------------------------------------------------------------------------
2004
+ * CollapsibleTrigger
2005
+ * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$TRIGGER_NAME = 'CollapsibleTrigger';
2006
+ const $409067139f391064$export$c135dce7b15bbbdc = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2007
+ const { __scopeCollapsible: __scopeCollapsible , ...triggerProps } = props;
2008
+ const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$TRIGGER_NAME, __scopeCollapsible);
2009
+ return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends({
2010
+ type: "button",
2011
+ "aria-controls": context.contentId,
2012
+ "aria-expanded": context.open || false,
2013
+ "data-state": $409067139f391064$var$getState(context.open),
2014
+ "data-disabled": context.disabled ? '' : undefined,
2015
+ disabled: context.disabled
2016
+ }, triggerProps, {
2017
+ ref: forwardedRef,
2018
+ onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, context.onOpenToggle)
2019
+ }));
2020
+ });
2021
+ /* -------------------------------------------------------------------------------------------------
2022
+ * CollapsibleContent
2023
+ * -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$CONTENT_NAME = 'CollapsibleContent';
2024
+ const $409067139f391064$export$aadde00976f34151 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2025
+ const { forceMount: forceMount , ...contentProps } = props;
2026
+ const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, props.__scopeCollapsible);
2027
+ return /*#__PURE__*/ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
2028
+ present: forceMount || context.open
2029
+ }, ({ present: present })=>/*#__PURE__*/ React.createElement($409067139f391064$var$CollapsibleContentImpl, _extends({}, contentProps, {
2030
+ ref: forwardedRef,
2031
+ present: present
2032
+ }))
2033
+ );
2034
+ });
2035
+ /* -----------------------------------------------------------------------------------------------*/ const $409067139f391064$var$CollapsibleContentImpl = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2036
+ const { __scopeCollapsible: __scopeCollapsible , present: present , children: children , ...contentProps } = props;
2037
+ const context = $409067139f391064$var$useCollapsibleContext($409067139f391064$var$CONTENT_NAME, __scopeCollapsible);
2038
+ const [isPresent, setIsPresent] = React.useState(present);
2039
+ const ref = React.useRef(null);
2040
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
2041
+ const heightRef = React.useRef(0);
2042
+ const height = heightRef.current;
2043
+ const widthRef = React.useRef(0);
2044
+ const width = widthRef.current; // when opening we want it to immediately open to retrieve dimensions
2045
+ // when closing we delay `present` to retrieve dimensions before closing
2046
+ const isOpen = context.open || isPresent;
2047
+ const isMountAnimationPreventedRef = React.useRef(isOpen);
2048
+ const originalStylesRef = React.useRef();
2049
+ React.useEffect(()=>{
2050
+ const rAF = requestAnimationFrame(()=>isMountAnimationPreventedRef.current = false
2051
+ );
2052
+ return ()=>cancelAnimationFrame(rAF)
2053
+ ;
2054
+ }, []);
2055
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
2056
+ const node = ref.current;
2057
+ if (node) {
2058
+ originalStylesRef.current = originalStylesRef.current || {
2059
+ transitionDuration: node.style.transitionDuration,
2060
+ animationName: node.style.animationName
2061
+ }; // block any animations/transitions so the element renders at its full dimensions
2062
+ node.style.transitionDuration = '0s';
2063
+ node.style.animationName = 'none'; // get width and height from full dimensions
2064
+ const rect = node.getBoundingClientRect();
2065
+ heightRef.current = rect.height;
2066
+ widthRef.current = rect.width; // kick off any animations/transitions that were originally set up if it isn't the initial mount
2067
+ if (!isMountAnimationPreventedRef.current) {
2068
+ node.style.transitionDuration = originalStylesRef.current.transitionDuration;
2069
+ node.style.animationName = originalStylesRef.current.animationName;
2070
+ }
2071
+ setIsPresent(present);
2072
+ }
2073
+ /**
2074
+ * depends on `context.open` because it will change to `false`
2075
+ * when a close is triggered but `present` will be `false` on
2076
+ * animation end (so when close finishes). This allows us to
2077
+ * retrieve the dimensions *before* closing.
2078
+ */ }, [
2079
+ context.open,
2080
+ present
2081
+ ]);
2082
+ return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({
2083
+ "data-state": $409067139f391064$var$getState(context.open),
2084
+ "data-disabled": context.disabled ? '' : undefined,
2085
+ id: context.contentId,
2086
+ hidden: !isOpen
2087
+ }, contentProps, {
2088
+ ref: composedRefs,
2089
+ style: {
2090
+ [`--radix-collapsible-content-height`]: height ? `${height}px` : undefined,
2091
+ [`--radix-collapsible-content-width`]: width ? `${width}px` : undefined,
2092
+ ...props.style
2093
+ }
2094
+ }), isOpen && children);
2095
+ });
2096
+ /* -----------------------------------------------------------------------------------------------*/ function $409067139f391064$var$getState(open) {
2097
+ return open ? 'open' : 'closed';
2098
+ }
2099
+ const $409067139f391064$export$be92b6f5f03c0fe9 = $409067139f391064$export$6eb0f7ddcda6131f;
2100
+ const $409067139f391064$export$41fb9f06171c75f4 = $409067139f391064$export$c135dce7b15bbbdc;
2101
+ const $409067139f391064$export$7c6e2c02157bb7d2 = $409067139f391064$export$aadde00976f34151;
2102
+
2103
+ const $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ React.createContext(undefined);
2104
+ /* -----------------------------------------------------------------------------------------------*/ function $f631663db3294ace$export$b39126d51d94e6f3(localDir) {
2105
+ const globalDir = React.useContext($f631663db3294ace$var$DirectionContext);
2106
+ return localDir || globalDir || 'ltr';
2107
+ }
2108
+
2163
2109
  /* -------------------------------------------------------------------------------------------------
2164
- * Checkbox
2165
- * -----------------------------------------------------------------------------------------------*/ const $e698a72e93240346$var$CHECKBOX_NAME = 'Checkbox';
2166
- const [$e698a72e93240346$var$createCheckboxContext, $e698a72e93240346$export$b566c4ff5488ea01] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($e698a72e93240346$var$CHECKBOX_NAME);
2167
- const [$e698a72e93240346$var$CheckboxProvider, $e698a72e93240346$var$useCheckboxContext] = $e698a72e93240346$var$createCheckboxContext($e698a72e93240346$var$CHECKBOX_NAME);
2168
- const $e698a72e93240346$export$48513f6b9f8ce62d = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2169
- const { __scopeCheckbox: __scopeCheckbox , name: name , checked: checkedProp , defaultChecked: defaultChecked , required: required , disabled: disabled , value: value = 'on' , onCheckedChange: onCheckedChange , ...checkboxProps } = props;
2170
- const [button, setButton] = React.useState(null);
2171
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, (node)=>setButton(node)
2172
- );
2173
- const hasConsumerStoppedPropagationRef = React.useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)
2174
- const isFormControl = button ? Boolean(button.closest('form')) : true;
2175
- const [checked = false, setChecked] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
2176
- prop: checkedProp,
2177
- defaultProp: defaultChecked,
2178
- onChange: onCheckedChange
2110
+ * Accordion
2111
+ * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$ACCORDION_NAME = 'Accordion';
2112
+ const $1bf158f521e1b1b4$var$ACCORDION_KEYS = [
2113
+ 'Home',
2114
+ 'End',
2115
+ 'ArrowDown',
2116
+ 'ArrowUp',
2117
+ 'ArrowLeft',
2118
+ 'ArrowRight'
2119
+ ];
2120
+ const [$1bf158f521e1b1b4$var$Collection, $1bf158f521e1b1b4$var$useCollection, $1bf158f521e1b1b4$var$createCollectionScope] = $e02a7d9cb1dc128c$export$c74125a8e3af6bb2($1bf158f521e1b1b4$var$ACCORDION_NAME);
2121
+ const [$1bf158f521e1b1b4$var$createAccordionContext, $1bf158f521e1b1b4$export$9748edc328a73be1] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($1bf158f521e1b1b4$var$ACCORDION_NAME, [
2122
+ $1bf158f521e1b1b4$var$createCollectionScope,
2123
+ $409067139f391064$export$952b32dcbe73087a
2124
+ ]);
2125
+ const $1bf158f521e1b1b4$var$useCollapsibleScope = $409067139f391064$export$952b32dcbe73087a();
2126
+ const $1bf158f521e1b1b4$export$a766cd26d0d69044 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2127
+ const { type: type , ...accordionProps } = props;
2128
+ const singleProps = accordionProps;
2129
+ const multipleProps = accordionProps;
2130
+ return /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$Collection.Provider, {
2131
+ scope: props.__scopeAccordion
2132
+ }, type === 'multiple' ? /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionImplMultiple, _extends({}, multipleProps, {
2133
+ ref: forwardedRef
2134
+ })) : /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionImplSingle, _extends({}, singleProps, {
2135
+ ref: forwardedRef
2136
+ })));
2137
+ });
2138
+ $1bf158f521e1b1b4$export$a766cd26d0d69044.propTypes = {
2139
+ type (props) {
2140
+ const value = props.value || props.defaultValue;
2141
+ if (props.type && ![
2142
+ 'single',
2143
+ 'multiple'
2144
+ ].includes(props.type)) return new Error('Invalid prop `type` supplied to `Accordion`. Expected one of `single | multiple`.');
2145
+ if (props.type === 'multiple' && typeof value === 'string') return new Error('Invalid prop `type` supplied to `Accordion`. Expected `single` when `defaultValue` or `value` is type `string`.');
2146
+ if (props.type === 'single' && Array.isArray(value)) return new Error('Invalid prop `type` supplied to `Accordion`. Expected `multiple` when `defaultValue` or `value` is type `string[]`.');
2147
+ return null;
2148
+ }
2149
+ };
2150
+ /* -----------------------------------------------------------------------------------------------*/ const [$1bf158f521e1b1b4$var$AccordionValueProvider, $1bf158f521e1b1b4$var$useAccordionValueContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME);
2151
+ const [$1bf158f521e1b1b4$var$AccordionCollapsibleProvider, $1bf158f521e1b1b4$var$useAccordionCollapsibleContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, {
2152
+ collapsible: false
2153
+ });
2154
+ const $1bf158f521e1b1b4$var$AccordionImplSingle = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2155
+ const { value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange = ()=>{} , collapsible: collapsible = false , ...accordionSingleProps } = props;
2156
+ const [value, setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
2157
+ prop: valueProp,
2158
+ defaultProp: defaultValue,
2159
+ onChange: onValueChange
2179
2160
  });
2180
- const initialCheckedStateRef = React.useRef(checked);
2181
- React.useEffect(()=>{
2182
- const form = button === null || button === void 0 ? void 0 : button.form;
2183
- if (form) {
2184
- const reset = ()=>setChecked(initialCheckedStateRef.current)
2185
- ;
2186
- form.addEventListener('reset', reset);
2187
- return ()=>form.removeEventListener('reset', reset)
2188
- ;
2189
- }
2190
- }, [
2191
- button,
2192
- setChecked
2161
+ return /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionValueProvider, {
2162
+ scope: props.__scopeAccordion,
2163
+ value: value ? [
2164
+ value
2165
+ ] : [],
2166
+ onItemOpen: setValue,
2167
+ onItemClose: React.useCallback(()=>collapsible && setValue('')
2168
+ , [
2169
+ collapsible,
2170
+ setValue
2171
+ ])
2172
+ }, /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionCollapsibleProvider, {
2173
+ scope: props.__scopeAccordion,
2174
+ collapsible: collapsible
2175
+ }, /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionImpl, _extends({}, accordionSingleProps, {
2176
+ ref: forwardedRef
2177
+ }))));
2178
+ });
2179
+ /* -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$AccordionImplMultiple = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2180
+ const { value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange = ()=>{} , ...accordionMultipleProps } = props;
2181
+ const [value1 = [], setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
2182
+ prop: valueProp,
2183
+ defaultProp: defaultValue,
2184
+ onChange: onValueChange
2185
+ });
2186
+ const handleItemOpen = React.useCallback((itemValue)=>setValue((prevValue = [])=>[
2187
+ ...prevValue,
2188
+ itemValue
2189
+ ]
2190
+ )
2191
+ , [
2192
+ setValue
2193
2193
  ]);
2194
- return /*#__PURE__*/ React.createElement($e698a72e93240346$var$CheckboxProvider, {
2195
- scope: __scopeCheckbox,
2196
- state: checked,
2197
- disabled: disabled
2198
- }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends({
2199
- type: "button",
2200
- role: "checkbox",
2201
- "aria-checked": $e698a72e93240346$var$isIndeterminate(checked) ? 'mixed' : checked,
2202
- "aria-required": required,
2203
- "data-state": $e698a72e93240346$var$getState(checked),
2204
- "data-disabled": disabled ? '' : undefined,
2194
+ const handleItemClose = React.useCallback((itemValue)=>setValue((prevValue = [])=>prevValue.filter((value)=>value !== itemValue
2195
+ )
2196
+ )
2197
+ , [
2198
+ setValue
2199
+ ]);
2200
+ return /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionValueProvider, {
2201
+ scope: props.__scopeAccordion,
2202
+ value: value1,
2203
+ onItemOpen: handleItemOpen,
2204
+ onItemClose: handleItemClose
2205
+ }, /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionCollapsibleProvider, {
2206
+ scope: props.__scopeAccordion,
2207
+ collapsible: true
2208
+ }, /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionImpl, _extends({}, accordionMultipleProps, {
2209
+ ref: forwardedRef
2210
+ }))));
2211
+ });
2212
+ /* -----------------------------------------------------------------------------------------------*/ const [$1bf158f521e1b1b4$var$AccordionImplProvider, $1bf158f521e1b1b4$var$useAccordionContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME);
2213
+ const $1bf158f521e1b1b4$var$AccordionImpl = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2214
+ const { __scopeAccordion: __scopeAccordion , disabled: disabled , dir: dir , orientation: orientation = 'vertical' , ...accordionProps } = props;
2215
+ const accordionRef = React.useRef(null);
2216
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(accordionRef, forwardedRef);
2217
+ const getItems = $1bf158f521e1b1b4$var$useCollection(__scopeAccordion);
2218
+ const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
2219
+ const isDirectionLTR = direction === 'ltr';
2220
+ const handleKeyDown = $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onKeyDown, (event)=>{
2221
+ var _triggerCollection$cl;
2222
+ if (!$1bf158f521e1b1b4$var$ACCORDION_KEYS.includes(event.key)) return;
2223
+ const target = event.target;
2224
+ const triggerCollection = getItems().filter((item)=>{
2225
+ var _item$ref$current;
2226
+ return !((_item$ref$current = item.ref.current) !== null && _item$ref$current !== void 0 && _item$ref$current.disabled);
2227
+ });
2228
+ const triggerIndex = triggerCollection.findIndex((item)=>item.ref.current === target
2229
+ );
2230
+ const triggerCount = triggerCollection.length;
2231
+ if (triggerIndex === -1) return; // Prevents page scroll while user is navigating
2232
+ event.preventDefault();
2233
+ let nextIndex = triggerIndex;
2234
+ const homeIndex = 0;
2235
+ const endIndex = triggerCount - 1;
2236
+ const moveNext = ()=>{
2237
+ nextIndex = triggerIndex + 1;
2238
+ if (nextIndex > endIndex) nextIndex = homeIndex;
2239
+ };
2240
+ const movePrev = ()=>{
2241
+ nextIndex = triggerIndex - 1;
2242
+ if (nextIndex < homeIndex) nextIndex = endIndex;
2243
+ };
2244
+ switch(event.key){
2245
+ case 'Home':
2246
+ nextIndex = homeIndex;
2247
+ break;
2248
+ case 'End':
2249
+ nextIndex = endIndex;
2250
+ break;
2251
+ case 'ArrowRight':
2252
+ if (orientation === 'horizontal') {
2253
+ if (isDirectionLTR) moveNext();
2254
+ else movePrev();
2255
+ }
2256
+ break;
2257
+ case 'ArrowDown':
2258
+ if (orientation === 'vertical') moveNext();
2259
+ break;
2260
+ case 'ArrowLeft':
2261
+ if (orientation === 'horizontal') {
2262
+ if (isDirectionLTR) movePrev();
2263
+ else moveNext();
2264
+ }
2265
+ break;
2266
+ case 'ArrowUp':
2267
+ if (orientation === 'vertical') movePrev();
2268
+ break;
2269
+ }
2270
+ const clampedIndex = nextIndex % triggerCount;
2271
+ (_triggerCollection$cl = triggerCollection[clampedIndex].ref.current) === null || _triggerCollection$cl === void 0 || _triggerCollection$cl.focus();
2272
+ });
2273
+ return /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionImplProvider, {
2274
+ scope: __scopeAccordion,
2205
2275
  disabled: disabled,
2206
- value: value
2207
- }, checkboxProps, {
2276
+ direction: dir,
2277
+ orientation: orientation
2278
+ }, /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$Collection.Slot, {
2279
+ scope: __scopeAccordion
2280
+ }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({}, accordionProps, {
2281
+ "data-orientation": orientation,
2208
2282
  ref: composedRefs,
2209
- onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onKeyDown, (event)=>{
2210
- // According to WAI ARIA, Checkboxes don't activate on enter keypress
2211
- if (event.key === 'Enter') event.preventDefault();
2212
- }),
2213
- onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, (event)=>{
2214
- setChecked((prevChecked)=>$e698a72e93240346$var$isIndeterminate(prevChecked) ? true : !prevChecked
2215
- );
2216
- if (isFormControl) {
2217
- hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if checkbox is in a form, stop propagation from the button so that we only propagate
2218
- // one click event (from the input). We propagate changes from an input so that native
2219
- // form validation works and form events reflect checkbox updates.
2220
- if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
2221
- }
2222
- })
2223
- })), isFormControl && /*#__PURE__*/ React.createElement($e698a72e93240346$var$BubbleInput, {
2224
- control: button,
2225
- bubbles: !hasConsumerStoppedPropagationRef.current,
2226
- name: name,
2227
- value: value,
2228
- checked: checked,
2229
- required: required,
2230
- disabled: disabled // We transform because the input is absolutely positioned but we have
2231
- ,
2232
- style: {
2233
- transform: 'translateX(-100%)'
2234
- }
2235
- }));
2283
+ onKeyDown: disabled ? undefined : handleKeyDown
2284
+ }))));
2236
2285
  });
2237
2286
  /* -------------------------------------------------------------------------------------------------
2238
- * CheckboxIndicator
2239
- * -----------------------------------------------------------------------------------------------*/ const $e698a72e93240346$var$INDICATOR_NAME = 'CheckboxIndicator';
2240
- const $e698a72e93240346$export$59aad738f51d1c05 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2241
- const { __scopeCheckbox: __scopeCheckbox , forceMount: forceMount , ...indicatorProps } = props;
2242
- const context = $e698a72e93240346$var$useCheckboxContext($e698a72e93240346$var$INDICATOR_NAME, __scopeCheckbox);
2243
- return /*#__PURE__*/ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
2244
- present: forceMount || $e698a72e93240346$var$isIndeterminate(context.state) || context.state === true
2245
- }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends({
2246
- "data-state": $e698a72e93240346$var$getState(context.state),
2247
- "data-disabled": context.disabled ? '' : undefined
2248
- }, indicatorProps, {
2287
+ * AccordionItem
2288
+ * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$ITEM_NAME = 'AccordionItem';
2289
+ const [$1bf158f521e1b1b4$var$AccordionItemProvider, $1bf158f521e1b1b4$var$useAccordionItemContext] = $1bf158f521e1b1b4$var$createAccordionContext($1bf158f521e1b1b4$var$ITEM_NAME);
2290
+ /**
2291
+ * `AccordionItem` contains all of the parts of a collapsible section inside of an `Accordion`.
2292
+ */ const $1bf158f521e1b1b4$export$d99097c13d4dac9f = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2293
+ const { __scopeAccordion: __scopeAccordion , value: value , ...accordionItemProps } = props;
2294
+ const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ITEM_NAME, __scopeAccordion);
2295
+ const valueContext = $1bf158f521e1b1b4$var$useAccordionValueContext($1bf158f521e1b1b4$var$ITEM_NAME, __scopeAccordion);
2296
+ const collapsibleScope = $1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion);
2297
+ const triggerId = $1746a345f3d73bb7$export$f680877a34711e37$1();
2298
+ const open1 = value && valueContext.value.includes(value) || false;
2299
+ const disabled = accordionContext.disabled || props.disabled;
2300
+ return /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$AccordionItemProvider, {
2301
+ scope: __scopeAccordion,
2302
+ open: open1,
2303
+ disabled: disabled,
2304
+ triggerId: triggerId
2305
+ }, /*#__PURE__*/ React.createElement($409067139f391064$export$be92b6f5f03c0fe9, _extends({
2306
+ "data-orientation": accordionContext.orientation,
2307
+ "data-state": $1bf158f521e1b1b4$var$getState(open1)
2308
+ }, collapsibleScope, accordionItemProps, {
2249
2309
  ref: forwardedRef,
2250
- style: {
2251
- pointerEvents: 'none',
2252
- ...props.style
2310
+ disabled: disabled,
2311
+ open: open1,
2312
+ onOpenChange: (open)=>{
2313
+ if (open) valueContext.onItemOpen(value);
2314
+ else valueContext.onItemClose(value);
2253
2315
  }
2254
2316
  })));
2255
2317
  });
2256
- /* ---------------------------------------------------------------------------------------------- */ const $e698a72e93240346$var$BubbleInput = (props)=>{
2257
- const { control: control , checked: checked , bubbles: bubbles = true , ...inputProps } = props;
2258
- const ref = React.useRef(null);
2259
- const prevChecked = $010c2913dbd2fe3d$export$5cae361ad82dce8b(checked);
2260
- const controlSize = $db6c3485150b8e66$export$1ab7ae714698c4b8(control); // Bubble checked change to parents (e.g form change event)
2261
- React.useEffect(()=>{
2262
- const input = ref.current;
2263
- const inputProto = window.HTMLInputElement.prototype;
2264
- const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');
2265
- const setChecked = descriptor.set;
2266
- if (prevChecked !== checked && setChecked) {
2267
- const event = new Event('click', {
2268
- bubbles: bubbles
2269
- });
2270
- input.indeterminate = $e698a72e93240346$var$isIndeterminate(checked);
2271
- setChecked.call(input, $e698a72e93240346$var$isIndeterminate(checked) ? false : checked);
2272
- input.dispatchEvent(event);
2273
- }
2274
- }, [
2275
- prevChecked,
2276
- checked,
2277
- bubbles
2278
- ]);
2279
- return /*#__PURE__*/ React.createElement("input", _extends({
2280
- type: "checkbox",
2281
- "aria-hidden": true,
2282
- defaultChecked: $e698a72e93240346$var$isIndeterminate(checked) ? false : checked
2283
- }, inputProps, {
2284
- tabIndex: -1,
2285
- ref: ref,
2318
+ /* -------------------------------------------------------------------------------------------------
2319
+ * AccordionHeader
2320
+ * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$HEADER_NAME = 'AccordionHeader';
2321
+ /**
2322
+ * `AccordionHeader` contains the content for the parts of an `AccordionItem` that will be visible
2323
+ * whether or not its content is collapsed.
2324
+ */ const $1bf158f521e1b1b4$export$5e3e5deaaf81ee41 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2325
+ const { __scopeAccordion: __scopeAccordion , ...headerProps } = props;
2326
+ const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, __scopeAccordion);
2327
+ const itemContext = $1bf158f521e1b1b4$var$useAccordionItemContext($1bf158f521e1b1b4$var$HEADER_NAME, __scopeAccordion);
2328
+ return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.h3, _extends({
2329
+ "data-orientation": accordionContext.orientation,
2330
+ "data-state": $1bf158f521e1b1b4$var$getState(itemContext.open),
2331
+ "data-disabled": itemContext.disabled ? '' : undefined
2332
+ }, headerProps, {
2333
+ ref: forwardedRef
2334
+ }));
2335
+ });
2336
+ /* -------------------------------------------------------------------------------------------------
2337
+ * AccordionTrigger
2338
+ * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$TRIGGER_NAME = 'AccordionTrigger';
2339
+ /**
2340
+ * `AccordionTrigger` is the trigger that toggles the collapsed state of an `AccordionItem`. It
2341
+ * should always be nested inside of an `AccordionHeader`.
2342
+ */ const $1bf158f521e1b1b4$export$94e939b1f85bdd73 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2343
+ const { __scopeAccordion: __scopeAccordion , ...triggerProps } = props;
2344
+ const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, __scopeAccordion);
2345
+ const itemContext = $1bf158f521e1b1b4$var$useAccordionItemContext($1bf158f521e1b1b4$var$TRIGGER_NAME, __scopeAccordion);
2346
+ const collapsibleContext = $1bf158f521e1b1b4$var$useAccordionCollapsibleContext($1bf158f521e1b1b4$var$TRIGGER_NAME, __scopeAccordion);
2347
+ const collapsibleScope = $1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion);
2348
+ return /*#__PURE__*/ React.createElement($1bf158f521e1b1b4$var$Collection.ItemSlot, {
2349
+ scope: __scopeAccordion
2350
+ }, /*#__PURE__*/ React.createElement($409067139f391064$export$41fb9f06171c75f4, _extends({
2351
+ "aria-disabled": itemContext.open && !collapsibleContext.collapsible || undefined,
2352
+ "data-orientation": accordionContext.orientation,
2353
+ id: itemContext.triggerId
2354
+ }, collapsibleScope, triggerProps, {
2355
+ ref: forwardedRef
2356
+ })));
2357
+ });
2358
+ /* -------------------------------------------------------------------------------------------------
2359
+ * AccordionContent
2360
+ * -----------------------------------------------------------------------------------------------*/ const $1bf158f521e1b1b4$var$CONTENT_NAME = 'AccordionContent';
2361
+ /**
2362
+ * `AccordionContent` contains the collapsible content for an `AccordionItem`.
2363
+ */ const $1bf158f521e1b1b4$export$985b9a77379b54a0 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2364
+ const { __scopeAccordion: __scopeAccordion , ...contentProps } = props;
2365
+ const accordionContext = $1bf158f521e1b1b4$var$useAccordionContext($1bf158f521e1b1b4$var$ACCORDION_NAME, __scopeAccordion);
2366
+ const itemContext = $1bf158f521e1b1b4$var$useAccordionItemContext($1bf158f521e1b1b4$var$CONTENT_NAME, __scopeAccordion);
2367
+ const collapsibleScope = $1bf158f521e1b1b4$var$useCollapsibleScope(__scopeAccordion);
2368
+ return /*#__PURE__*/ React.createElement($409067139f391064$export$7c6e2c02157bb7d2, _extends({
2369
+ role: "region",
2370
+ "aria-labelledby": itemContext.triggerId,
2371
+ "data-orientation": accordionContext.orientation
2372
+ }, collapsibleScope, contentProps, {
2373
+ ref: forwardedRef,
2286
2374
  style: {
2287
- ...props.style,
2288
- ...controlSize,
2289
- position: 'absolute',
2290
- pointerEvents: 'none',
2291
- opacity: 0,
2292
- margin: 0
2375
+ ['--radix-accordion-content-height']: 'var(--radix-collapsible-content-height)',
2376
+ ['--radix-accordion-content-width']: 'var(--radix-collapsible-content-width)',
2377
+ ...props.style
2293
2378
  }
2294
2379
  }));
2295
- };
2296
- function $e698a72e93240346$var$isIndeterminate(checked) {
2297
- return checked === 'indeterminate';
2298
- }
2299
- function $e698a72e93240346$var$getState(checked) {
2300
- return $e698a72e93240346$var$isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';
2380
+ });
2381
+ /* -----------------------------------------------------------------------------------------------*/ function $1bf158f521e1b1b4$var$getState(open) {
2382
+ return open ? 'open' : 'closed';
2301
2383
  }
2302
- const $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;
2303
- const $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;
2384
+ const $1bf158f521e1b1b4$export$be92b6f5f03c0fe9 = $1bf158f521e1b1b4$export$a766cd26d0d69044;
2385
+ const $1bf158f521e1b1b4$export$6d08773d2e66f8f2 = $1bf158f521e1b1b4$export$d99097c13d4dac9f;
2386
+ const $1bf158f521e1b1b4$export$8b251419efc915eb = $1bf158f521e1b1b4$export$5e3e5deaaf81ee41;
2387
+ const $1bf158f521e1b1b4$export$41fb9f06171c75f4 = $1bf158f521e1b1b4$export$94e939b1f85bdd73;
2388
+ const $1bf158f521e1b1b4$export$7c6e2c02157bb7d2 = $1bf158f521e1b1b4$export$985b9a77379b54a0;
2304
2389
 
2305
2390
  function _objectWithoutPropertiesLoose$1(source, excluded) {
2306
2391
  if (source == null) return {};
@@ -2471,6 +2556,28 @@ var Cross2Icon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2471
2556
  }));
2472
2557
  });
2473
2558
 
2559
+ var _excluded$1D = ["color"];
2560
+ var DiscIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2561
+ var _ref$color = _ref.color,
2562
+ color = _ref$color === void 0 ? 'currentColor' : _ref$color,
2563
+ props = _objectWithoutPropertiesLoose$1(_ref, _excluded$1D);
2564
+
2565
+ return React.createElement("svg", Object.assign({
2566
+ width: "15",
2567
+ height: "15",
2568
+ viewBox: "0 0 15 15",
2569
+ fill: "none",
2570
+ xmlns: "http://www.w3.org/2000/svg"
2571
+ }, props, {
2572
+ ref: forwardedRef
2573
+ }), React.createElement("path", {
2574
+ d: "M7.49991 0.877075C3.84222 0.877075 0.877075 3.84222 0.877075 7.49991C0.877075 11.1576 3.84222 14.1227 7.49991 14.1227C11.1576 14.1227 14.1227 11.1576 14.1227 7.49991C14.1227 3.84222 11.1576 0.877075 7.49991 0.877075ZM1.82708 7.49991C1.82708 4.36689 4.36689 1.82707 7.49991 1.82707C10.6329 1.82707 13.1727 4.36689 13.1727 7.49991C13.1727 10.6329 10.6329 13.1727 7.49991 13.1727C4.36689 13.1727 1.82708 10.6329 1.82708 7.49991ZM8.37287 7.50006C8.37287 7.98196 7.98221 8.37263 7.5003 8.37263C7.01839 8.37263 6.62773 7.98196 6.62773 7.50006C6.62773 7.01815 7.01839 6.62748 7.5003 6.62748C7.98221 6.62748 8.37287 7.01815 8.37287 7.50006ZM9.32287 7.50006C9.32287 8.50664 8.50688 9.32263 7.5003 9.32263C6.49372 9.32263 5.67773 8.50664 5.67773 7.50006C5.67773 6.49348 6.49372 5.67748 7.5003 5.67748C8.50688 5.67748 9.32287 6.49348 9.32287 7.50006Z",
2575
+ fill: color,
2576
+ fillRule: "evenodd",
2577
+ clipRule: "evenodd"
2578
+ }));
2579
+ });
2580
+
2474
2581
  var _excluded$20 = ["color"];
2475
2582
  var ExclamationTriangleIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2476
2583
  var _ref$color = _ref.color,
@@ -2625,40 +2732,85 @@ var SunIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
2625
2732
  }));
2626
2733
  });
2627
2734
 
2628
- var styles$v = {"flex":"flex-module_flex__tfvHj","direction-row":"flex-module_direction-row__ZZCCO","direction-column":"flex-module_direction-column__MZhja","direction-rowReverse":"flex-module_direction-rowReverse__cODeQ","direction-columnReverse":"flex-module_direction-columnReverse__uxwTT","align-start":"flex-module_align-start__d1cB2","align-center":"flex-module_align-center__zZ1E6","align-end":"flex-module_align-end__z2g3F","align-stretch":"flex-module_align-stretch__X-Zb0","align-baseline":"flex-module_align-baseline__UImQH","justify-start":"flex-module_justify-start__4eduw","justify-center":"flex-module_justify-center__BMDDv","justify-end":"flex-module_justify-end__pWfzn","justify-between":"flex-module_justify-between__9NSwF","wrap-noWrap":"flex-module_wrap-noWrap__Ly8Pu","wrap-wrap":"flex-module_wrap-wrap__5WZOm","wrap-wrapReverse":"flex-module_wrap-wrapReverse__6u3Es","gap-xs":"flex-module_gap-xs__3h3LG","gap-sm":"flex-module_gap-sm__UMdVH","gap-md":"flex-module_gap-md__sfd7f","gap-lg":"flex-module_gap-lg__LAcQC","gap-xl":"flex-module_gap-xl__3-8uA"};
2735
+ function r(e){var t,f,n="";if("string"==typeof e||"number"==typeof e)n+=e;else if("object"==typeof e)if(Array.isArray(e))for(t=0;t<e.length;t++)e[t]&&(f=r(e[t]))&&(n&&(n+=" "),n+=f);else for(t in e)e[t]&&(n&&(n+=" "),n+=t);return n}function clsx(){for(var e,t,f=0,n="";f<arguments.length;)(e=arguments[f++])&&(t=r(e))&&(n&&(n+=" "),n+=t);return n}
2736
+
2737
+ const falsyToString = (value)=>typeof value === "boolean" ? "".concat(value) : value === 0 ? "0" : value;
2738
+ const cx = clsx;
2739
+ const cva = (base, config)=>{
2740
+ return (props)=>{
2741
+ var ref;
2742
+ if ((config === null || config === void 0 ? void 0 : config.variants) == null) return cx(base, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
2743
+ const { variants , defaultVariants } = config;
2744
+ const getVariantClassNames = Object.keys(variants).map((variant)=>{
2745
+ const variantProp = props === null || props === void 0 ? void 0 : props[variant];
2746
+ const defaultVariantProp = defaultVariants === null || defaultVariants === void 0 ? void 0 : defaultVariants[variant];
2747
+ if (variantProp === null) return null;
2748
+ const variantKey = falsyToString(variantProp) || falsyToString(defaultVariantProp);
2749
+ return variants[variant][variantKey];
2750
+ });
2751
+ const propsWithoutUndefined = props && Object.entries(props).reduce((acc, param)=>{
2752
+ let [key, value] = param;
2753
+ if (value === undefined) {
2754
+ return acc;
2755
+ }
2756
+ acc[key] = value;
2757
+ return acc;
2758
+ }, {});
2759
+ const getCompoundVariantClassNames = config === null || config === void 0 ? void 0 : (ref = config.compoundVariants) === null || ref === void 0 ? void 0 : ref.reduce((acc, param1)=>{
2760
+ let { class: cvClass , className: cvClassName , ...compoundVariantOptions } = param1;
2761
+ return Object.entries(compoundVariantOptions).every((param)=>{
2762
+ let [key, value] = param;
2763
+ return Array.isArray(value) ? value.includes({
2764
+ ...defaultVariants,
2765
+ ...propsWithoutUndefined
2766
+ }[key]) : ({
2767
+ ...defaultVariants,
2768
+ ...propsWithoutUndefined
2769
+ })[key] === value;
2770
+ }) ? [
2771
+ ...acc,
2772
+ cvClass,
2773
+ cvClassName
2774
+ ] : acc;
2775
+ }, []);
2776
+ return cx(base, getVariantClassNames, getCompoundVariantClassNames, props === null || props === void 0 ? void 0 : props.class, props === null || props === void 0 ? void 0 : props.className);
2777
+ };
2778
+ };
2779
+
2780
+ var styles$B = {"flex":"flex-module_flex__tfvHj","direction-row":"flex-module_direction-row__ZZCCO","direction-column":"flex-module_direction-column__MZhja","direction-rowReverse":"flex-module_direction-rowReverse__cODeQ","direction-columnReverse":"flex-module_direction-columnReverse__uxwTT","align-start":"flex-module_align-start__d1cB2","align-center":"flex-module_align-center__zZ1E6","align-end":"flex-module_align-end__z2g3F","align-stretch":"flex-module_align-stretch__X-Zb0","align-baseline":"flex-module_align-baseline__UImQH","justify-start":"flex-module_justify-start__4eduw","justify-center":"flex-module_justify-center__BMDDv","justify-end":"flex-module_justify-end__pWfzn","justify-between":"flex-module_justify-between__9NSwF","wrap-noWrap":"flex-module_wrap-noWrap__Ly8Pu","wrap-wrap":"flex-module_wrap-wrap__5WZOm","wrap-wrapReverse":"flex-module_wrap-wrapReverse__6u3Es","gap-xs":"flex-module_gap-xs__3h3LG","gap-sm":"flex-module_gap-sm__UMdVH","gap-md":"flex-module_gap-md__sfd7f","gap-lg":"flex-module_gap-lg__LAcQC","gap-xl":"flex-module_gap-xl__3-8uA"};
2629
2781
 
2630
- const flex = cva(styles$v.flex, {
2782
+ const flex = cva(styles$B.flex, {
2631
2783
  variants: {
2632
2784
  direction: {
2633
- row: styles$v["direction-row"],
2634
- column: styles$v["direction-column"],
2635
- rowReverse: styles$v["direction-rowReverse"],
2636
- columnReverse: styles$v["direction-columnReverse"],
2785
+ row: styles$B["direction-row"],
2786
+ column: styles$B["direction-column"],
2787
+ rowReverse: styles$B["direction-rowReverse"],
2788
+ columnReverse: styles$B["direction-columnReverse"],
2637
2789
  },
2638
2790
  align: {
2639
- start: styles$v["align-start"],
2640
- center: styles$v["align-center"],
2641
- end: styles$v["align-end"],
2642
- stretch: styles$v["align-stretch"],
2643
- baseline: styles$v["align-baseline"],
2791
+ start: styles$B["align-start"],
2792
+ center: styles$B["align-center"],
2793
+ end: styles$B["align-end"],
2794
+ stretch: styles$B["align-stretch"],
2795
+ baseline: styles$B["align-baseline"],
2644
2796
  },
2645
2797
  justify: {
2646
- start: styles$v["justify-start"],
2647
- center: styles$v["justify-center"],
2648
- end: styles$v["justify-end"],
2649
- between: styles$v["justify-between"],
2798
+ start: styles$B["justify-start"],
2799
+ center: styles$B["justify-center"],
2800
+ end: styles$B["justify-end"],
2801
+ between: styles$B["justify-between"],
2650
2802
  },
2651
2803
  wrap: {
2652
- noWrap: styles$v["wrap-noWrap"],
2653
- wrap: styles$v["wrap-wrap"],
2654
- wrapReverse: styles$v["wrap-wrapReverse"],
2804
+ noWrap: styles$B["wrap-noWrap"],
2805
+ wrap: styles$B["wrap-wrap"],
2806
+ wrapReverse: styles$B["wrap-wrapReverse"],
2655
2807
  },
2656
2808
  gap: {
2657
- "extra-small": styles$v["gap-xs"],
2658
- small: styles$v["gap-sm"],
2659
- medium: styles$v["gap-md"],
2660
- large: styles$v["gap-lg"],
2661
- "extra-large": styles$v["gap-xl"],
2809
+ "extra-small": styles$B["gap-xs"],
2810
+ small: styles$B["gap-sm"],
2811
+ medium: styles$B["gap-md"],
2812
+ large: styles$B["gap-lg"],
2813
+ "extra-large": styles$B["gap-xl"],
2662
2814
  },
2663
2815
  },
2664
2816
  defaultVariants: {
@@ -2668,9 +2820,411 @@ const flex = cva(styles$v.flex, {
2668
2820
  wrap: "noWrap",
2669
2821
  },
2670
2822
  });
2671
- const Flex = React.forwardRef(({ children, direction, align, justify, wrap, gap, className, ...props }, ref) => {
2672
- return (jsxRuntimeExports.jsx("div", { className: flex({ direction, align, justify, wrap, gap, className }), ...props, ref: ref, children: children }));
2823
+ const Flex = React.forwardRef(({ children, direction, align, justify, wrap, gap, className, ...props }, ref) => {
2824
+ return (jsxRuntimeExports.jsx("div", { className: flex({ direction, align, justify, wrap, gap, className }), ...props, ref: ref, children: children }));
2825
+ });
2826
+
2827
+ var styles$A = {"item":"accordion-module_item__tXeD0","header":"accordion-module_header__3y6p-","trigger":"accordion-module_trigger__ROQgB","svg":"accordion-module_svg__xvNct","content":"accordion-module_content__fUryt","slideDown":"accordion-module_slideDown__pwlAE","slideUp":"accordion-module_slideUp__ucWNi"};
2828
+
2829
+ const AccordionRoot = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($1bf158f521e1b1b4$export$be92b6f5f03c0fe9, { ref: ref, className: styles$A.accordion, ...props })));
2830
+ const AccordionItem = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsxs(Flex, { gap: "medium", style: { width: "100%" }, children: [jsxRuntimeExports.jsx(DiscIcon, { width: 16, height: 16, style: { margin: "14px 0" } }), jsxRuntimeExports.jsx($1bf158f521e1b1b4$export$6d08773d2e66f8f2, { ref: ref, className: `${styles$A.item} ${className}`, ...props })] })));
2831
+ AccordionItem.displayName = "AccordionItem";
2832
+ const AccordionTrigger = React__namespace.forwardRef(({ className, children, ...props }, ref) => (jsxRuntimeExports.jsx($1bf158f521e1b1b4$export$8b251419efc915eb, { className: styles$A.header, children: jsxRuntimeExports.jsxs($1bf158f521e1b1b4$export$41fb9f06171c75f4, { ref: ref, className: styles$A.trigger, ...props, children: [children, jsxRuntimeExports.jsx(ChevronDownIcon, { className: styles$A.svg })] }) })));
2833
+ AccordionTrigger.displayName = $1bf158f521e1b1b4$export$41fb9f06171c75f4.displayName;
2834
+ const AccordionContent = React__namespace.forwardRef(({ className = "", children, ...props }, ref) => (jsxRuntimeExports.jsx($1bf158f521e1b1b4$export$7c6e2c02157bb7d2, { ref: ref, className: styles$A.content, ...props, children: jsxRuntimeExports.jsx("div", { className: `${styles$A.className}`, children: children }) })));
2835
+ AccordionContent.displayName = $1bf158f521e1b1b4$export$7c6e2c02157bb7d2.displayName;
2836
+ const Accordion = Object.assign(AccordionRoot, {
2837
+ Content: AccordionContent,
2838
+ Item: AccordionItem,
2839
+ Trigger: AccordionTrigger,
2840
+ });
2841
+
2842
+ /* -------------------------------------------------------------------------------------------------
2843
+ * Avatar
2844
+ * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$AVATAR_NAME = 'Avatar';
2845
+ const [$cddcb0b647441e34$var$createAvatarContext, $cddcb0b647441e34$export$90370d16b488820f] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($cddcb0b647441e34$var$AVATAR_NAME);
2846
+ const [$cddcb0b647441e34$var$AvatarProvider, $cddcb0b647441e34$var$useAvatarContext] = $cddcb0b647441e34$var$createAvatarContext($cddcb0b647441e34$var$AVATAR_NAME);
2847
+ const $cddcb0b647441e34$export$e2255cf6045e8d47 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2848
+ const { __scopeAvatar: __scopeAvatar , ...avatarProps } = props;
2849
+ const [imageLoadingStatus, setImageLoadingStatus] = React.useState('idle');
2850
+ return /*#__PURE__*/ React.createElement($cddcb0b647441e34$var$AvatarProvider, {
2851
+ scope: __scopeAvatar,
2852
+ imageLoadingStatus: imageLoadingStatus,
2853
+ onImageLoadingStatusChange: setImageLoadingStatus
2854
+ }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends({}, avatarProps, {
2855
+ ref: forwardedRef
2856
+ })));
2857
+ });
2858
+ /* -------------------------------------------------------------------------------------------------
2859
+ * AvatarImage
2860
+ * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$IMAGE_NAME = 'AvatarImage';
2861
+ const $cddcb0b647441e34$export$2cd8ae1985206fe8 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2862
+ const { __scopeAvatar: __scopeAvatar , src: src , onLoadingStatusChange: onLoadingStatusChange = ()=>{} , ...imageProps } = props;
2863
+ const context = $cddcb0b647441e34$var$useAvatarContext($cddcb0b647441e34$var$IMAGE_NAME, __scopeAvatar);
2864
+ const imageLoadingStatus = $cddcb0b647441e34$var$useImageLoadingStatus(src);
2865
+ const handleLoadingStatusChange = $b1b2314f5f9a1d84$export$25bec8c6f54ee79a$1((status)=>{
2866
+ onLoadingStatusChange(status);
2867
+ context.onImageLoadingStatusChange(status);
2868
+ });
2869
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
2870
+ if (imageLoadingStatus !== 'idle') handleLoadingStatusChange(imageLoadingStatus);
2871
+ }, [
2872
+ imageLoadingStatus,
2873
+ handleLoadingStatusChange
2874
+ ]);
2875
+ return imageLoadingStatus === 'loaded' ? /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.img, _extends({}, imageProps, {
2876
+ ref: forwardedRef,
2877
+ src: src
2878
+ })) : null;
2879
+ });
2880
+ /* -------------------------------------------------------------------------------------------------
2881
+ * AvatarFallback
2882
+ * -----------------------------------------------------------------------------------------------*/ const $cddcb0b647441e34$var$FALLBACK_NAME = 'AvatarFallback';
2883
+ const $cddcb0b647441e34$export$69fffb6a9571fbfe = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
2884
+ const { __scopeAvatar: __scopeAvatar , delayMs: delayMs , ...fallbackProps } = props;
2885
+ const context = $cddcb0b647441e34$var$useAvatarContext($cddcb0b647441e34$var$FALLBACK_NAME, __scopeAvatar);
2886
+ const [canRender, setCanRender] = React.useState(delayMs === undefined);
2887
+ React.useEffect(()=>{
2888
+ if (delayMs !== undefined) {
2889
+ const timerId = window.setTimeout(()=>setCanRender(true)
2890
+ , delayMs);
2891
+ return ()=>window.clearTimeout(timerId)
2892
+ ;
2893
+ }
2894
+ }, [
2895
+ delayMs
2896
+ ]);
2897
+ return canRender && context.imageLoadingStatus !== 'loaded' ? /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends({}, fallbackProps, {
2898
+ ref: forwardedRef
2899
+ })) : null;
2900
+ });
2901
+ /* -----------------------------------------------------------------------------------------------*/ function $cddcb0b647441e34$var$useImageLoadingStatus(src) {
2902
+ const [loadingStatus, setLoadingStatus] = React.useState('idle');
2903
+ React.useEffect(()=>{
2904
+ if (!src) {
2905
+ setLoadingStatus('error');
2906
+ return;
2907
+ }
2908
+ let isMounted = true;
2909
+ const image = new window.Image();
2910
+ const updateStatus = (status)=>()=>{
2911
+ if (!isMounted) return;
2912
+ setLoadingStatus(status);
2913
+ }
2914
+ ;
2915
+ setLoadingStatus('loading');
2916
+ image.onload = updateStatus('loaded');
2917
+ image.onerror = updateStatus('error');
2918
+ image.src = src;
2919
+ return ()=>{
2920
+ isMounted = false;
2921
+ };
2922
+ }, [
2923
+ src
2924
+ ]);
2925
+ return loadingStatus;
2926
+ }
2927
+ const $cddcb0b647441e34$export$be92b6f5f03c0fe9 = $cddcb0b647441e34$export$e2255cf6045e8d47;
2928
+ const $cddcb0b647441e34$export$3e431a229df88919 = $cddcb0b647441e34$export$2cd8ae1985206fe8;
2929
+ const $cddcb0b647441e34$export$fb8d7f40caaeea67 = $cddcb0b647441e34$export$69fffb6a9571fbfe;
2930
+
2931
+ var styles$z = {"box":"box-module_box__ETj3v"};
2932
+
2933
+ const box = cva(styles$z.box);
2934
+ function Box({ children, className, ...props }) {
2935
+ return (jsxRuntimeExports.jsx("div", { className: box({ className }), ...props, children: children }));
2936
+ }
2937
+
2938
+ var styles$y = {"avatar":"avatar-module_avatar__jlJnk","avatar-square":"avatar-module_avatar-square__vypF7","avatar-circle":"avatar-module_avatar-circle__XP6E3","avatar-disabled":"avatar-module_avatar-disabled__rsBE6","imageWrapper":"avatar-module_imageWrapper__dhsku","image":"avatar-module_image__P6Pav","fallback":"avatar-module_fallback__NzNwU"};
2939
+
2940
+ const avatar = cva(styles$y.avatar, {
2941
+ variants: {
2942
+ shape: {
2943
+ square: styles$y["avatar-square"],
2944
+ circle: styles$y["avatar-circle"],
2945
+ },
2946
+ disabled: {
2947
+ true: styles$y["avatar-disabled"],
2948
+ },
2949
+ },
2950
+ defaultVariants: {
2951
+ shape: "circle",
2952
+ },
2953
+ });
2954
+ const image$1 = cva(styles$y.image);
2955
+ const AvatarRoot = React.forwardRef(({ className, alt, src, fallback, shape, style, imageProps, ...props }, ref) => (jsxRuntimeExports.jsx(Box, { className: styles$y.imageWrapper, style: style, children: jsxRuntimeExports.jsxs($cddcb0b647441e34$export$be92b6f5f03c0fe9, { ref: ref, className: avatar({ shape, className }), style: imageProps, ...props, children: [jsxRuntimeExports.jsx(AvatarImage, { alt: alt, src: src }), jsxRuntimeExports.jsx(AvatarFallback, { children: fallback })] }) })));
2956
+ AvatarRoot.displayName = $cddcb0b647441e34$export$be92b6f5f03c0fe9.displayName;
2957
+ const AvatarImage = React.forwardRef(({ className, sizes, ...props }, ref) => (jsxRuntimeExports.jsx($cddcb0b647441e34$export$3e431a229df88919, { ref: ref, className: image$1({ className }), ...props })));
2958
+ AvatarImage.displayName = $cddcb0b647441e34$export$3e431a229df88919.displayName;
2959
+ const fallback = cva(styles$y.fallback);
2960
+ const AvatarFallback = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($cddcb0b647441e34$export$fb8d7f40caaeea67, { ref: ref, className: fallback({ className }), ...props })));
2961
+ AvatarFallback.displayName = $cddcb0b647441e34$export$fb8d7f40caaeea67.displayName;
2962
+ const Avatar = Object.assign(AvatarRoot, {
2963
+ Image: AvatarImage,
2964
+ Fallback: AvatarFallback,
2965
+ });
2966
+
2967
+ var styles$x = {"badge":"badge-module_badge__NAloH"};
2968
+
2969
+ const badge = cva(styles$x.badge, {
2970
+ variants: {
2971
+ color: {},
2972
+ },
2973
+ });
2974
+ const Badge = (props, ref) => {
2975
+ const { color, className, children } = props;
2976
+ return jsxRuntimeExports.jsx("span", { className: badge({ color, className }), children: children });
2977
+ };
2978
+ var badge$1 = React.forwardRef(Badge);
2979
+
2980
+ var styles$w = {"body":"body-module_body__0sfEI","body-small":"body-module_body-small__CjW1C","body-medium":"body-module_body-medium__XVmQw","body-large":"body-module_body-large__KqAga"};
2981
+
2982
+ const body$1 = cva(styles$w.body, {
2983
+ variants: {
2984
+ size: {
2985
+ small: styles$w["body-small"],
2986
+ medium: styles$w["body-medium"],
2987
+ large: styles$w["body-large"],
2988
+ },
2989
+ },
2990
+ defaultVariants: {
2991
+ size: "small",
2992
+ },
2993
+ });
2994
+ function Body({ children, className, size, ...props }) {
2995
+ return (jsxRuntimeExports.jsx("span", { className: body$1({ size, className }), ...props, children: children }));
2996
+ }
2997
+
2998
+ var styles$v = {"button":"button-module_button__9VQ21","button-small":"button-module_button-small__RR1mh","button-medium":"button-module_button-medium__79Bf1","button-large":"button-module_button-large__BQy6w","button-round":"button-module_button-round__Gd30S","button-primary":"button-module_button-primary__R0k9n","button-outline":"button-module_button-outline__MN25q","button-secondary":"button-module_button-secondary__zDkNV","button-ghost":"button-module_button-ghost__KcZUm","button-danger":"button-module_button-danger__dnB-7"};
2999
+
3000
+ const button = cva(styles$v.button, {
3001
+ variants: {
3002
+ variant: {
3003
+ primary: styles$v["button-primary"],
3004
+ outline: styles$v["button-outline"],
3005
+ secondary: styles$v["button-secondary"],
3006
+ ghost: styles$v["button-ghost"],
3007
+ danger: styles$v["button-danger"],
3008
+ },
3009
+ size: {
3010
+ small: styles$v["button-small"],
3011
+ medium: styles$v["button-medium"],
3012
+ large: styles$v["button-large"],
3013
+ },
3014
+ },
3015
+ });
3016
+ const Button = React.forwardRef(({ className, variant, size, asChild = false, ...props }, ref) => {
3017
+ const Comp = asChild ? $5e63c961fc1ce211$export$8c6ed5c666ac1360$1 : "button";
3018
+ return (jsxRuntimeExports.jsx(Comp, { className: button({ variant, size, className }), ref: ref, ...props }));
3019
+ });
3020
+ Button.displayName = "Button";
3021
+
3022
+ function $010c2913dbd2fe3d$export$5cae361ad82dce8b(value) {
3023
+ const ref = React.useRef({
3024
+ value: value,
3025
+ previous: value
3026
+ }); // We compare values before making an update to ensure that
3027
+ // a change has been made. This ensures the previous value is
3028
+ // persisted correctly between renders.
3029
+ return React.useMemo(()=>{
3030
+ if (ref.current.value !== value) {
3031
+ ref.current.previous = ref.current.value;
3032
+ ref.current.value = value;
3033
+ }
3034
+ return ref.current.previous;
3035
+ }, [
3036
+ value
3037
+ ]);
3038
+ }
3039
+
3040
+ function $db6c3485150b8e66$export$1ab7ae714698c4b8(element) {
3041
+ const [size, setSize] = React.useState(undefined);
3042
+ $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
3043
+ if (element) {
3044
+ // provide size as early as possible
3045
+ setSize({
3046
+ width: element.offsetWidth,
3047
+ height: element.offsetHeight
3048
+ });
3049
+ const resizeObserver = new ResizeObserver((entries)=>{
3050
+ if (!Array.isArray(entries)) return;
3051
+ // Since we only observe the one element, we don't need to loop over the
3052
+ // array
3053
+ if (!entries.length) return;
3054
+ const entry = entries[0];
3055
+ let width;
3056
+ let height;
3057
+ if ('borderBoxSize' in entry) {
3058
+ const borderSizeEntry = entry['borderBoxSize']; // iron out differences between browsers
3059
+ const borderSize = Array.isArray(borderSizeEntry) ? borderSizeEntry[0] : borderSizeEntry;
3060
+ width = borderSize['inlineSize'];
3061
+ height = borderSize['blockSize'];
3062
+ } else {
3063
+ // for browsers that don't support `borderBoxSize`
3064
+ // we calculate it ourselves to get the correct border box.
3065
+ width = element.offsetWidth;
3066
+ height = element.offsetHeight;
3067
+ }
3068
+ setSize({
3069
+ width: width,
3070
+ height: height
3071
+ });
3072
+ });
3073
+ resizeObserver.observe(element, {
3074
+ box: 'border-box'
3075
+ });
3076
+ return ()=>resizeObserver.unobserve(element)
3077
+ ;
3078
+ } else // We only want to reset to `undefined` when the element becomes `null`,
3079
+ // not if it changes to another element.
3080
+ setSize(undefined);
3081
+ }, [
3082
+ element
3083
+ ]);
3084
+ return size;
3085
+ }
3086
+
3087
+ /* -------------------------------------------------------------------------------------------------
3088
+ * Checkbox
3089
+ * -----------------------------------------------------------------------------------------------*/ const $e698a72e93240346$var$CHECKBOX_NAME = 'Checkbox';
3090
+ const [$e698a72e93240346$var$createCheckboxContext, $e698a72e93240346$export$b566c4ff5488ea01] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($e698a72e93240346$var$CHECKBOX_NAME);
3091
+ const [$e698a72e93240346$var$CheckboxProvider, $e698a72e93240346$var$useCheckboxContext] = $e698a72e93240346$var$createCheckboxContext($e698a72e93240346$var$CHECKBOX_NAME);
3092
+ const $e698a72e93240346$export$48513f6b9f8ce62d = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
3093
+ const { __scopeCheckbox: __scopeCheckbox , name: name , checked: checkedProp , defaultChecked: defaultChecked , required: required , disabled: disabled , value: value = 'on' , onCheckedChange: onCheckedChange , ...checkboxProps } = props;
3094
+ const [button, setButton] = React.useState(null);
3095
+ const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, (node)=>setButton(node)
3096
+ );
3097
+ const hasConsumerStoppedPropagationRef = React.useRef(false); // We set this to true by default so that events bubble to forms without JS (SSR)
3098
+ const isFormControl = button ? Boolean(button.closest('form')) : true;
3099
+ const [checked = false, setChecked] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
3100
+ prop: checkedProp,
3101
+ defaultProp: defaultChecked,
3102
+ onChange: onCheckedChange
3103
+ });
3104
+ const initialCheckedStateRef = React.useRef(checked);
3105
+ React.useEffect(()=>{
3106
+ const form = button === null || button === void 0 ? void 0 : button.form;
3107
+ if (form) {
3108
+ const reset = ()=>setChecked(initialCheckedStateRef.current)
3109
+ ;
3110
+ form.addEventListener('reset', reset);
3111
+ return ()=>form.removeEventListener('reset', reset)
3112
+ ;
3113
+ }
3114
+ }, [
3115
+ button,
3116
+ setChecked
3117
+ ]);
3118
+ return /*#__PURE__*/ React.createElement($e698a72e93240346$var$CheckboxProvider, {
3119
+ scope: __scopeCheckbox,
3120
+ state: checked,
3121
+ disabled: disabled
3122
+ }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends({
3123
+ type: "button",
3124
+ role: "checkbox",
3125
+ "aria-checked": $e698a72e93240346$var$isIndeterminate(checked) ? 'mixed' : checked,
3126
+ "aria-required": required,
3127
+ "data-state": $e698a72e93240346$var$getState(checked),
3128
+ "data-disabled": disabled ? '' : undefined,
3129
+ disabled: disabled,
3130
+ value: value
3131
+ }, checkboxProps, {
3132
+ ref: composedRefs,
3133
+ onKeyDown: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onKeyDown, (event)=>{
3134
+ // According to WAI ARIA, Checkboxes don't activate on enter keypress
3135
+ if (event.key === 'Enter') event.preventDefault();
3136
+ }),
3137
+ onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, (event)=>{
3138
+ setChecked((prevChecked)=>$e698a72e93240346$var$isIndeterminate(prevChecked) ? true : !prevChecked
3139
+ );
3140
+ if (isFormControl) {
3141
+ hasConsumerStoppedPropagationRef.current = event.isPropagationStopped(); // if checkbox is in a form, stop propagation from the button so that we only propagate
3142
+ // one click event (from the input). We propagate changes from an input so that native
3143
+ // form validation works and form events reflect checkbox updates.
3144
+ if (!hasConsumerStoppedPropagationRef.current) event.stopPropagation();
3145
+ }
3146
+ })
3147
+ })), isFormControl && /*#__PURE__*/ React.createElement($e698a72e93240346$var$BubbleInput, {
3148
+ control: button,
3149
+ bubbles: !hasConsumerStoppedPropagationRef.current,
3150
+ name: name,
3151
+ value: value,
3152
+ checked: checked,
3153
+ required: required,
3154
+ disabled: disabled // We transform because the input is absolutely positioned but we have
3155
+ ,
3156
+ style: {
3157
+ transform: 'translateX(-100%)'
3158
+ }
3159
+ }));
3160
+ });
3161
+ /* -------------------------------------------------------------------------------------------------
3162
+ * CheckboxIndicator
3163
+ * -----------------------------------------------------------------------------------------------*/ const $e698a72e93240346$var$INDICATOR_NAME = 'CheckboxIndicator';
3164
+ const $e698a72e93240346$export$59aad738f51d1c05 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
3165
+ const { __scopeCheckbox: __scopeCheckbox , forceMount: forceMount , ...indicatorProps } = props;
3166
+ const context = $e698a72e93240346$var$useCheckboxContext($e698a72e93240346$var$INDICATOR_NAME, __scopeCheckbox);
3167
+ return /*#__PURE__*/ React.createElement($921a889cee6df7e8$export$99c2b779aa4e8b8b$1, {
3168
+ present: forceMount || $e698a72e93240346$var$isIndeterminate(context.state) || context.state === true
3169
+ }, /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.span, _extends({
3170
+ "data-state": $e698a72e93240346$var$getState(context.state),
3171
+ "data-disabled": context.disabled ? '' : undefined
3172
+ }, indicatorProps, {
3173
+ ref: forwardedRef,
3174
+ style: {
3175
+ pointerEvents: 'none',
3176
+ ...props.style
3177
+ }
3178
+ })));
2673
3179
  });
3180
+ /* ---------------------------------------------------------------------------------------------- */ const $e698a72e93240346$var$BubbleInput = (props)=>{
3181
+ const { control: control , checked: checked , bubbles: bubbles = true , ...inputProps } = props;
3182
+ const ref = React.useRef(null);
3183
+ const prevChecked = $010c2913dbd2fe3d$export$5cae361ad82dce8b(checked);
3184
+ const controlSize = $db6c3485150b8e66$export$1ab7ae714698c4b8(control); // Bubble checked change to parents (e.g form change event)
3185
+ React.useEffect(()=>{
3186
+ const input = ref.current;
3187
+ const inputProto = window.HTMLInputElement.prototype;
3188
+ const descriptor = Object.getOwnPropertyDescriptor(inputProto, 'checked');
3189
+ const setChecked = descriptor.set;
3190
+ if (prevChecked !== checked && setChecked) {
3191
+ const event = new Event('click', {
3192
+ bubbles: bubbles
3193
+ });
3194
+ input.indeterminate = $e698a72e93240346$var$isIndeterminate(checked);
3195
+ setChecked.call(input, $e698a72e93240346$var$isIndeterminate(checked) ? false : checked);
3196
+ input.dispatchEvent(event);
3197
+ }
3198
+ }, [
3199
+ prevChecked,
3200
+ checked,
3201
+ bubbles
3202
+ ]);
3203
+ return /*#__PURE__*/ React.createElement("input", _extends({
3204
+ type: "checkbox",
3205
+ "aria-hidden": true,
3206
+ defaultChecked: $e698a72e93240346$var$isIndeterminate(checked) ? false : checked
3207
+ }, inputProps, {
3208
+ tabIndex: -1,
3209
+ ref: ref,
3210
+ style: {
3211
+ ...props.style,
3212
+ ...controlSize,
3213
+ position: 'absolute',
3214
+ pointerEvents: 'none',
3215
+ opacity: 0,
3216
+ margin: 0
3217
+ }
3218
+ }));
3219
+ };
3220
+ function $e698a72e93240346$var$isIndeterminate(checked) {
3221
+ return checked === 'indeterminate';
3222
+ }
3223
+ function $e698a72e93240346$var$getState(checked) {
3224
+ return $e698a72e93240346$var$isIndeterminate(checked) ? 'indeterminate' : checked ? 'checked' : 'unchecked';
3225
+ }
3226
+ const $e698a72e93240346$export$be92b6f5f03c0fe9 = $e698a72e93240346$export$48513f6b9f8ce62d;
3227
+ const $e698a72e93240346$export$adb584737d712b70 = $e698a72e93240346$export$59aad738f51d1c05;
2674
3228
 
2675
3229
  var styles$u = {"label":"label-module_label__hM2lk","label-small":"label-module_label-small__se5gE","label-medium":"label-module_label-medium__Z4Tcb","label-large":"label-module_label-large__ba4Jb"};
2676
3230
 
@@ -2843,13 +3397,13 @@ function $e42e1063c40fb3ef$export$b9ecd428b558ff10(originalEventHandler, ourEven
2843
3397
  * See: https://reactjs.org/docs/hooks-reference.html#uselayouteffect
2844
3398
  */ const $9f79659886946c16$export$e5c5a5f917a5871c = Boolean(globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) ? React.useLayoutEffect : ()=>{};
2845
3399
 
2846
- const $1746a345f3d73bb7$var$useReactId$1 = React__namespace['useId'.toString()] || (()=>undefined
3400
+ const $1746a345f3d73bb7$var$useReactId = React__namespace['useId'.toString()] || (()=>undefined
2847
3401
  );
2848
- let $1746a345f3d73bb7$var$count$1 = 0;
2849
- function $1746a345f3d73bb7$export$f680877a34711e37$1(deterministicId) {
2850
- const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId$1()); // React versions older than 18 will have client-side ids only.
3402
+ let $1746a345f3d73bb7$var$count = 0;
3403
+ function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
3404
+ const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId()); // React versions older than 18 will have client-side ids only.
2851
3405
  $9f79659886946c16$export$e5c5a5f917a5871c(()=>{
2852
- if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count$1++)
3406
+ if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
2853
3407
  );
2854
3408
  }, [
2855
3409
  deterministicId
@@ -4532,9 +5086,9 @@ const $5d3850c4d0b4e6c7$export$3ddf2d174ce01153$1 = (props)=>{
4532
5086
  scope: __scopeDialog,
4533
5087
  triggerRef: triggerRef,
4534
5088
  contentRef: contentRef,
4535
- contentId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
4536
- titleId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
4537
- descriptionId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
5089
+ contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
5090
+ titleId: $1746a345f3d73bb7$export$f680877a34711e37(),
5091
+ descriptionId: $1746a345f3d73bb7$export$f680877a34711e37(),
4538
5092
  open: open,
4539
5093
  onOpenChange: setOpen,
4540
5094
  onOpenToggle: React.useCallback(()=>setOpen((prevOpen)=>!prevOpen
@@ -4851,20 +5405,6 @@ var ue='[cmdk-list-sizer=""]',M='[cmdk-group=""]',N='[cmdk-group-items=""]',de='
4851
5405
 
4852
5406
  var styles$s = {"command":"command-module_command__uWauu","inputWrapper":"command-module_inputWrapper__3p35Y","inputIcon":"command-module_inputIcon__A5omD","input":"command-module_input__l18cJ","list":"command-module_list__R5zPY","empty":"command-module_empty__had3w","group":"command-module_group__eVKQy","item":"command-module_item__J5y6v","separator":"command-module_separator__etEyE"};
4853
5407
 
4854
- const $1746a345f3d73bb7$var$useReactId = React__namespace['useId'.toString()] || (()=>undefined
4855
- );
4856
- let $1746a345f3d73bb7$var$count = 0;
4857
- function $1746a345f3d73bb7$export$f680877a34711e37(deterministicId) {
4858
- const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId()); // React versions older than 18 will have client-side ids only.
4859
- $9f79659886946c16$export$e5c5a5f917a5871c$1(()=>{
4860
- if (!deterministicId) setId((reactId)=>reactId !== null && reactId !== void 0 ? reactId : String($1746a345f3d73bb7$var$count++)
4861
- );
4862
- }, [
4863
- deterministicId
4864
- ]);
4865
- return deterministicId || (id ? `radix-${id}` : '');
4866
- }
4867
-
4868
5408
  /**
4869
5409
  * Listens for when the escape key is down
4870
5410
  */ function $addc16e1bbe58fd0$export$3a72a57244d6e765(onEscapeKeyDownProp, ownerDocument = globalThis === null || globalThis === void 0 ? void 0 : globalThis.document) {
@@ -5731,9 +6271,9 @@ const $5d3850c4d0b4e6c7$export$3ddf2d174ce01153 = (props)=>{
5731
6271
  scope: __scopeDialog,
5732
6272
  triggerRef: triggerRef,
5733
6273
  contentRef: contentRef,
5734
- contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
5735
- titleId: $1746a345f3d73bb7$export$f680877a34711e37(),
5736
- descriptionId: $1746a345f3d73bb7$export$f680877a34711e37(),
6274
+ contentId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
6275
+ titleId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
6276
+ descriptionId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
5737
6277
  open: open,
5738
6278
  onOpenChange: setOpen,
5739
6279
  onOpenToggle: React.useCallback(()=>setOpen((prevOpen)=>!prevOpen
@@ -6071,99 +6611,6 @@ function Display({ children, className, size, ...props }) {
6071
6611
  return (jsxRuntimeExports.jsx("span", { className: display({ size, className }), ...props, children: children }));
6072
6612
  }
6073
6613
 
6074
- // We have resorted to returning slots directly rather than exposing primitives that can then
6075
- // be slotted like `<CollectionItem as={Slot}>…</CollectionItem>`.
6076
- // This is because we encountered issues with generic types that cannot be statically analysed
6077
- // due to creating them dynamically via createCollection.
6078
- function $e02a7d9cb1dc128c$export$c74125a8e3af6bb2(name) {
6079
- /* -----------------------------------------------------------------------------------------------
6080
- * CollectionProvider
6081
- * ---------------------------------------------------------------------------------------------*/ const PROVIDER_NAME = name + 'CollectionProvider';
6082
- const [createCollectionContext, createCollectionScope] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1(PROVIDER_NAME);
6083
- const [CollectionProviderImpl, useCollectionContext] = createCollectionContext(PROVIDER_NAME, {
6084
- collectionRef: {
6085
- current: null
6086
- },
6087
- itemMap: new Map()
6088
- });
6089
- const CollectionProvider = (props)=>{
6090
- const { scope: scope , children: children } = props;
6091
- const ref = React.useRef(null);
6092
- const itemMap = React.useRef(new Map()).current;
6093
- return /*#__PURE__*/ React.createElement(CollectionProviderImpl, {
6094
- scope: scope,
6095
- itemMap: itemMap,
6096
- collectionRef: ref
6097
- }, children);
6098
- };
6099
- /* -----------------------------------------------------------------------------------------------
6100
- * CollectionSlot
6101
- * ---------------------------------------------------------------------------------------------*/ const COLLECTION_SLOT_NAME = name + 'CollectionSlot';
6102
- const CollectionSlot = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
6103
- const { scope: scope , children: children } = props;
6104
- const context = useCollectionContext(COLLECTION_SLOT_NAME, scope);
6105
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, context.collectionRef);
6106
- return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1, {
6107
- ref: composedRefs
6108
- }, children);
6109
- });
6110
- /* -----------------------------------------------------------------------------------------------
6111
- * CollectionItem
6112
- * ---------------------------------------------------------------------------------------------*/ const ITEM_SLOT_NAME = name + 'CollectionItemSlot';
6113
- const ITEM_DATA_ATTR = 'data-radix-collection-item';
6114
- const CollectionItemSlot = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
6115
- const { scope: scope , children: children , ...itemData } = props;
6116
- const ref = React.useRef(null);
6117
- const composedRefs = $6ed0406888f73fc4$export$c7b2cbe3552a0d05$1(forwardedRef, ref);
6118
- const context = useCollectionContext(ITEM_SLOT_NAME, scope);
6119
- React.useEffect(()=>{
6120
- context.itemMap.set(ref, {
6121
- ref: ref,
6122
- ...itemData
6123
- });
6124
- return ()=>void context.itemMap.delete(ref)
6125
- ;
6126
- });
6127
- return /*#__PURE__*/ React.createElement($5e63c961fc1ce211$export$8c6ed5c666ac1360$1, {
6128
- [ITEM_DATA_ATTR]: '',
6129
- ref: composedRefs
6130
- }, children);
6131
- });
6132
- /* -----------------------------------------------------------------------------------------------
6133
- * useCollection
6134
- * ---------------------------------------------------------------------------------------------*/ function useCollection(scope) {
6135
- const context = useCollectionContext(name + 'CollectionConsumer', scope);
6136
- const getItems = React.useCallback(()=>{
6137
- const collectionNode = context.collectionRef.current;
6138
- if (!collectionNode) return [];
6139
- const orderedNodes = Array.from(collectionNode.querySelectorAll(`[${ITEM_DATA_ATTR}]`));
6140
- const items = Array.from(context.itemMap.values());
6141
- const orderedItems = items.sort((a, b)=>orderedNodes.indexOf(a.ref.current) - orderedNodes.indexOf(b.ref.current)
6142
- );
6143
- return orderedItems;
6144
- }, [
6145
- context.collectionRef,
6146
- context.itemMap
6147
- ]);
6148
- return getItems;
6149
- }
6150
- return [
6151
- {
6152
- Provider: CollectionProvider,
6153
- Slot: CollectionSlot,
6154
- ItemSlot: CollectionItemSlot
6155
- },
6156
- useCollection,
6157
- createCollectionScope
6158
- ];
6159
- }
6160
-
6161
- const $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ React.createContext(undefined);
6162
- /* -----------------------------------------------------------------------------------------------*/ function $f631663db3294ace$export$b39126d51d94e6f3(localDir) {
6163
- const globalDir = React.useContext($f631663db3294ace$var$DirectionContext);
6164
- return localDir || globalDir || 'ltr';
6165
- }
6166
-
6167
6614
  function getAlignment(placement) {
6168
6615
  return placement.split('-')[1];
6169
6616
  }
@@ -8300,7 +8747,7 @@ const $d7bdfb9eb0fdf311$export$8699f7c8af148338 = /*#__PURE__*/ React.forwardRef
8300
8747
  * -----------------------------------------------------------------------------------------------*/ const $d7bdfb9eb0fdf311$var$ITEM_NAME = 'RovingFocusGroupItem';
8301
8748
  const $d7bdfb9eb0fdf311$export$ab9df7c53fe8454 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
8302
8749
  const { __scopeRovingFocusGroup: __scopeRovingFocusGroup , focusable: focusable = true , active: active = false , tabStopId: tabStopId , ...itemProps } = props;
8303
- const autoId = $1746a345f3d73bb7$export$f680877a34711e37();
8750
+ const autoId = $1746a345f3d73bb7$export$f680877a34711e37$1();
8304
8751
  const id = tabStopId || autoId;
8305
8752
  const context = $d7bdfb9eb0fdf311$var$useRovingFocusContext($d7bdfb9eb0fdf311$var$ITEM_NAME, __scopeRovingFocusGroup);
8306
8753
  const isCurrentTabStop = context.currentTabStopId === id;
@@ -8992,9 +9439,9 @@ const $d08ef79370b62062$export$e44a253a59704894 = (props)=>{
8992
9439
  });
8993
9440
  return /*#__PURE__*/ React.createElement($d08ef79370b62062$var$DropdownMenuProvider, {
8994
9441
  scope: __scopeDropdownMenu,
8995
- triggerId: $1746a345f3d73bb7$export$f680877a34711e37(),
9442
+ triggerId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
8996
9443
  triggerRef: triggerRef,
8997
- contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
9444
+ contentId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
8998
9445
  open: open,
8999
9446
  onOpenChange: setOpen,
9000
9447
  onOpenToggle: React.useCallback(()=>setOpen((prevOpen)=>!prevOpen
@@ -9350,7 +9797,7 @@ const $cb5cc270b50c6fcd$export$5b6b19405a83ff9d = (props)=>{
9350
9797
  });
9351
9798
  return /*#__PURE__*/ React.createElement($cf1ac5d9fe0e8206$export$be92b6f5f03c0fe9$1, popperScope, /*#__PURE__*/ React.createElement($cb5cc270b50c6fcd$var$PopoverProvider, {
9352
9799
  scope: __scopePopover,
9353
- contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
9800
+ contentId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
9354
9801
  triggerRef: triggerRef,
9355
9802
  open: open,
9356
9803
  onOpenChange: setOpen,
@@ -16899,13 +17346,15 @@ var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
16899
17346
  });
16900
17347
  var StateManagedSelect$1 = StateManagedSelect;
16901
17348
 
16902
- var styles$e = {"select":"rselect-module_select__gZKVx","input":"rselect-module_input__6OSt0","control":"rselect-module_control__zsqi5","placeholder":"rselect-module_placeholder__tRMzL","indicatorsContainer":"rselect-module_indicatorsContainer__mufOH"};
17349
+ var styles$e = {"select":"rselect-module_select__gZKVx","option":"rselect-module_option__UNSGQ","isSelected":"rselect-module_isSelected__Gq24Q","control":"rselect-module_control__zsqi5","placeholder":"rselect-module_placeholder__tRMzL","indicatorsContainer":"rselect-module_indicatorsContainer__mufOH"};
16903
17350
 
16904
17351
  const select = cva(styles$e.select);
16905
17352
  const classNames = {
16906
17353
  control: () => cx(styles$e.control),
16907
17354
  option: () => cx(styles$e.option),
16908
- input: () => cx(styles$e.input),
17355
+ input: () => cx(styles$e.input, {
17356
+ isSelected: () => cx(styles$e.isSelected),
17357
+ }),
16909
17358
  placeholder: () => cx(styles$e.placeholder),
16910
17359
  singleValue: () => cx(styles$e.singleValue),
16911
17360
  indicatorsContainer: () => cx(styles$e.indicatorsContainer),
@@ -17762,7 +18211,7 @@ const $cc7e05a45900e73f$export$ef9b1a59e592288f = (props)=>{
17762
18211
  onValueNodeChange: setValueNode,
17763
18212
  valueNodeHasChildren: valueNodeHasChildren,
17764
18213
  onValueNodeHasChildrenChange: setValueNodeHasChildren,
17765
- contentId: $1746a345f3d73bb7$export$f680877a34711e37(),
18214
+ contentId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
17766
18215
  value: value,
17767
18216
  onValueChange: setValue,
17768
18217
  open: open,
@@ -18426,7 +18875,7 @@ const $cc7e05a45900e73f$export$9ed6e7b40248d36d = /*#__PURE__*/ React.forwardRef
18426
18875
  const [$cc7e05a45900e73f$var$SelectGroupContextProvider, $cc7e05a45900e73f$var$useSelectGroupContext] = $cc7e05a45900e73f$var$createSelectContext($cc7e05a45900e73f$var$GROUP_NAME);
18427
18876
  const $cc7e05a45900e73f$export$ee25a334c55de1f4 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
18428
18877
  const { __scopeSelect: __scopeSelect , ...groupProps } = props;
18429
- const groupId = $1746a345f3d73bb7$export$f680877a34711e37();
18878
+ const groupId = $1746a345f3d73bb7$export$f680877a34711e37$1();
18430
18879
  return /*#__PURE__*/ React.createElement($cc7e05a45900e73f$var$SelectGroupContextProvider, {
18431
18880
  scope: __scopeSelect,
18432
18881
  id: groupId
@@ -18464,7 +18913,7 @@ const $cc7e05a45900e73f$export$13ef48a934230896 = /*#__PURE__*/ React.forwardRef
18464
18913
  var _contentContext$itemR;
18465
18914
  return (_contentContext$itemR = contentContext.itemRefCallback) === null || _contentContext$itemR === void 0 ? void 0 : _contentContext$itemR.call(contentContext, node, value, disabled);
18466
18915
  });
18467
- const textId = $1746a345f3d73bb7$export$f680877a34711e37();
18916
+ const textId = $1746a345f3d73bb7$export$f680877a34711e37$1();
18468
18917
  const handleSelect = ()=>{
18469
18918
  if (!disabled) {
18470
18919
  context.onValueChange(value);
@@ -18950,16 +19399,16 @@ function Text({ children, className, size, ...props }) {
18950
19399
  return (jsxRuntimeExports.jsx("span", { className: text$1({ size, className }), ...props, children: children }));
18951
19400
  }
18952
19401
 
18953
- var styles$8 = {"sidebar":"sidebar-module_sidebar__NXH3O","navigations":"sidebar-module_navigations__z5B4k","navigationgroup":"sidebar-module_navigationgroup__bBDHs","navigationgroupheading":"sidebar-module_navigationgroupheading__MkRud","navigationgroupcontent":"sidebar-module_navigationgroupcontent__q70dL","cell":"sidebar-module_cell__NHLSi","active":"sidebar-module_active__lfMUF","disabled":"sidebar-module_disabled__nYLU3","cellText":"sidebar-module_cellText__JV292","footer":"sidebar-module_footer__wLl-f"};
19402
+ var styles$8 = {"sidebar":"sidebar-module_sidebar__NXH3O","logo":"sidebar-module_logo__RaK-j","navigations":"sidebar-module_navigations__z5B4k","navigationgroup":"sidebar-module_navigationgroup__bBDHs","navigationgroupheading":"sidebar-module_navigationgroupheading__MkRud","navigationgroupcontent":"sidebar-module_navigationgroupcontent__q70dL","cell":"sidebar-module_cell__NHLSi","active":"sidebar-module_active__lfMUF","disabled":"sidebar-module_disabled__nYLU3","cellText":"sidebar-module_cellText__JV292","footer":"sidebar-module_footer__wLl-f"};
18954
19403
 
18955
- const SidebarRoot = ({ children }) => {
18956
- return (jsxRuntimeExports.jsx(Flex, { direction: "column", justify: "between", className: styles$8.sidebar, children: children }));
19404
+ const SidebarRoot = ({ children, ...props }) => {
19405
+ return (jsxRuntimeExports.jsx(Flex, { direction: "column", justify: "between", className: styles$8.sidebar, ...props, children: children }));
18957
19406
  };
18958
- const SidebarLogo = ({ name = "Apsara", logo, onClick }) => {
18959
- return (jsxRuntimeExports.jsxs(Flex, { align: "center", direction: "row", gap: "small", onClick: onClick, className: styles$8.logo, children: [jsxRuntimeExports.jsx(Flex, { gap: "small", children: logo }), jsxRuntimeExports.jsx(Text, { children: name })] }));
19407
+ const SidebarLogo = ({ name = "Apsara", logo, onClick, ...props }) => {
19408
+ return (jsxRuntimeExports.jsxs(Flex, { align: "center", direction: "row", gap: "small", onClick: onClick, ...props, children: [jsxRuntimeExports.jsx(Flex, { gap: "small", children: logo }), jsxRuntimeExports.jsx(Text, { size: 2, className: styles$8.logo, children: name })] }));
18960
19409
  };
18961
19410
  const SidebarNavigations = ({ children, ...props }) => {
18962
- return (jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$8.navigations, ...props, children: children }));
19411
+ return (jsxRuntimeExports.jsx(Flex, { direction: "column", gap: "extra-small", ...props, children: children }));
18963
19412
  };
18964
19413
  const SidebarNavigationsGroup = ({ icon, name, children, ...props }) => {
18965
19414
  return (jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$8.navigationgroup, ...props, children: [jsxRuntimeExports.jsxs(Flex, { className: styles$8.navigationgroupheading, children: [icon && icon, jsxRuntimeExports.jsx(Text, { size: 2, style: { color: "var(--foreground-muted)" }, children: name })] }), jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$8.navigationgroupcontent, children: children })] }));
@@ -19627,7 +20076,7 @@ const $a093c7e1ec25a057$export$28c660c63b792dea = (props)=>{
19627
20076
  const providerContext = $a093c7e1ec25a057$var$useTooltipProviderContext($a093c7e1ec25a057$var$TOOLTIP_NAME, props.__scopeTooltip);
19628
20077
  const popperScope = $a093c7e1ec25a057$var$usePopperScope(__scopeTooltip);
19629
20078
  const [trigger, setTrigger] = React.useState(null);
19630
- const contentId = $1746a345f3d73bb7$export$f680877a34711e37();
20079
+ const contentId = $1746a345f3d73bb7$export$f680877a34711e37$1();
19631
20080
  const openTimerRef = React.useRef(0);
19632
20081
  const disableHoverableContent = disableHoverableContentProp !== null && disableHoverableContentProp !== void 0 ? disableHoverableContentProp : providerContext.disableHoverableContent;
19633
20082
  const delayDuration = delayDurationProp !== null && delayDurationProp !== void 0 ? delayDurationProp : providerContext.delayDuration;
@@ -23596,7 +24045,7 @@ const TextField = React.forwardRef(({ leading, className, src, size, state, styl
23596
24045
  });
23597
24046
  TextField.displayName = "TextField";
23598
24047
 
23599
- var styles$4 = {"wrapper":"datatable-module_wrapper__Sxg2d","datatable":"datatable-module_datatable__z-Th2","table":"datatable-module_table__x2IkY","head":"datatable-module_head__zCfCW","toolbar":"datatable-module_toolbar__lO-aI","chip":"datatable-module_chip__IiwTD"};
24048
+ var styles$4 = {"wrapper":"datatable-module_wrapper__Sxg2d","datatable":"datatable-module_datatable__z-Th2","table":"datatable-module_table__x2IkY","head":"datatable-module_head__zCfCW","toolbar":"datatable-module_toolbar__lO-aI","chip":"datatable-module_chip__IiwTD","chipWrapper":"datatable-module_chipWrapper__iz69x"};
23600
24049
 
23601
24050
  const FilteredChip = ({ column }) => {
23602
24051
  const { table, removeFilterColumn } = useTable();
@@ -23835,7 +24284,7 @@ const $69cb30bb0017df05$export$b2539bed5023c21c = /*#__PURE__*/ React.forwardRef
23835
24284
  });
23836
24285
  return /*#__PURE__*/ React.createElement($69cb30bb0017df05$var$TabsProvider, {
23837
24286
  scope: __scopeTabs,
23838
- baseId: $1746a345f3d73bb7$export$f680877a34711e37(),
24287
+ baseId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
23839
24288
  value: value,
23840
24289
  onValueChange: setValue,
23841
24290
  orientation: orientation,
@@ -24269,6 +24718,7 @@ function Title({ children, className, size, ...props }) {
24269
24718
  return (jsxRuntimeExports.jsx("span", { className: title({ size, className }), ...props, children: children }));
24270
24719
  }
24271
24720
 
24721
+ exports.Accordion = Accordion;
24272
24722
  exports.Avatar = Avatar;
24273
24723
  exports.Badge = badge$1;
24274
24724
  exports.Body = Body;