@raystack/apsara 0.11.7 → 0.11.9
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/accordion/accordion.d.ts +8 -0
- package/dist/accordion/accordion.d.ts.map +1 -0
- package/dist/accordion/index.d.ts +2 -0
- package/dist/accordion/index.d.ts.map +1 -0
- package/dist/container/container.d.ts +1 -1
- package/dist/flex/flex.d.ts +3 -3
- package/dist/grid/grid.d.ts +5 -5
- package/dist/index.cjs +1517 -881
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +252 -93
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1518 -884
- package/dist/index.js.map +1 -1
- package/dist/rselect/rselect.d.ts.map +1 -1
- package/dist/sidebar/sidebar.d.ts +6 -6
- package/dist/sidebar/sidebar.d.ts.map +1 -1
- package/dist/toggle-group/index.d.ts +2 -0
- package/dist/toggle-group/index.d.ts.map +1 -0
- package/dist/toggle-group/togglegroup.d.ts +25 -0
- package/dist/toggle-group/togglegroup.d.ts.map +1 -0
- package/package.json +3 -1
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
|
-
*
|
|
1701
|
-
* -----------------------------------------------------------------------------------------------*/
|
|
1702
|
-
const [
|
|
1703
|
-
const
|
|
1704
|
-
const
|
|
1705
|
-
const
|
|
1706
|
-
const
|
|
1707
|
-
|
|
1708
|
-
|
|
1709
|
-
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
|
|
1716
|
-
|
|
1717
|
-
|
|
1718
|
-
|
|
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
|
-
|
|
1727
|
-
|
|
1878
|
+
React.useEffect(()=>{
|
|
1879
|
+
const currentAnimationName = $921a889cee6df7e8$var$getAnimationName$1(stylesRef.current);
|
|
1880
|
+
prevAnimationNameRef.current = state === 'mounted' ? currentAnimationName : 'none';
|
|
1728
1881
|
}, [
|
|
1729
|
-
|
|
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
|
+
|
|
2163
1974
|
/* -------------------------------------------------------------------------------------------------
|
|
2164
|
-
*
|
|
2165
|
-
* -----------------------------------------------------------------------------------------------*/ const $
|
|
2166
|
-
const [$
|
|
2167
|
-
const [$
|
|
2168
|
-
const $
|
|
2169
|
-
const {
|
|
2170
|
-
const [
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
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
|
|
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
|
|
2179
1985
|
});
|
|
2180
|
-
|
|
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();
|
|
2181
2049
|
React.useEffect(()=>{
|
|
2182
|
-
const
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
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);
|
|
2189
2072
|
}
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
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
|
|
2193
2081
|
]);
|
|
2194
|
-
return /*#__PURE__*/ React.createElement($
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
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,
|
|
2205
|
-
disabled: disabled,
|
|
2206
|
-
value: value
|
|
2207
|
-
}, checkboxProps, {
|
|
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, {
|
|
2208
2088
|
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
2089
|
style: {
|
|
2233
|
-
|
|
2090
|
+
[`--radix-collapsible-content-height`]: height ? `${height}px` : undefined,
|
|
2091
|
+
[`--radix-collapsible-content-width`]: width ? `${width}px` : undefined,
|
|
2092
|
+
...props.style
|
|
2234
2093
|
}
|
|
2235
|
-
}));
|
|
2094
|
+
}), isOpen && children);
|
|
2236
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
|
+
|
|
2237
2109
|
/* -------------------------------------------------------------------------------------------------
|
|
2238
|
-
*
|
|
2239
|
-
* -----------------------------------------------------------------------------------------------*/ const $
|
|
2240
|
-
const $
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2245
|
-
|
|
2246
|
-
|
|
2247
|
-
|
|
2248
|
-
|
|
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
|
|
2160
|
+
});
|
|
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
|
+
]);
|
|
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,
|
|
2275
|
+
disabled: disabled,
|
|
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,
|
|
2282
|
+
ref: composedRefs,
|
|
2283
|
+
onKeyDown: disabled ? undefined : handleKeyDown
|
|
2284
|
+
}))));
|
|
2285
|
+
});
|
|
2286
|
+
/* -------------------------------------------------------------------------------------------------
|
|
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
|
-
|
|
2251
|
-
|
|
2252
|
-
|
|
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
|
-
/*
|
|
2257
|
-
|
|
2258
|
-
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2280
|
-
|
|
2281
|
-
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2285
|
-
|
|
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
|
-
|
|
2288
|
-
|
|
2289
|
-
|
|
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 $
|
|
2297
|
-
return
|
|
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 $
|
|
2303
|
-
const $
|
|
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,
|
|
@@ -2603,83 +2710,530 @@ var PlusIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
|
|
|
2603
2710
|
}));
|
|
2604
2711
|
});
|
|
2605
2712
|
|
|
2606
|
-
var _excluded$4i = ["color"];
|
|
2607
|
-
var SunIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
|
|
2608
|
-
var _ref$color = _ref.color,
|
|
2609
|
-
color = _ref$color === void 0 ? 'currentColor' : _ref$color,
|
|
2610
|
-
props = _objectWithoutPropertiesLoose$1(_ref, _excluded$4i);
|
|
2713
|
+
var _excluded$4i = ["color"];
|
|
2714
|
+
var SunIcon = /*#__PURE__*/React.forwardRef(function (_ref, forwardedRef) {
|
|
2715
|
+
var _ref$color = _ref.color,
|
|
2716
|
+
color = _ref$color === void 0 ? 'currentColor' : _ref$color,
|
|
2717
|
+
props = _objectWithoutPropertiesLoose$1(_ref, _excluded$4i);
|
|
2718
|
+
|
|
2719
|
+
return React.createElement("svg", Object.assign({
|
|
2720
|
+
width: "15",
|
|
2721
|
+
height: "15",
|
|
2722
|
+
viewBox: "0 0 15 15",
|
|
2723
|
+
fill: "none",
|
|
2724
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
2725
|
+
}, props, {
|
|
2726
|
+
ref: forwardedRef
|
|
2727
|
+
}), React.createElement("path", {
|
|
2728
|
+
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
2729
|
+
fill: color,
|
|
2730
|
+
fillRule: "evenodd",
|
|
2731
|
+
clipRule: "evenodd"
|
|
2732
|
+
}));
|
|
2733
|
+
});
|
|
2734
|
+
|
|
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$C = {"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"};
|
|
2781
|
+
|
|
2782
|
+
const flex = cva(styles$C.flex, {
|
|
2783
|
+
variants: {
|
|
2784
|
+
direction: {
|
|
2785
|
+
row: styles$C["direction-row"],
|
|
2786
|
+
column: styles$C["direction-column"],
|
|
2787
|
+
rowReverse: styles$C["direction-rowReverse"],
|
|
2788
|
+
columnReverse: styles$C["direction-columnReverse"],
|
|
2789
|
+
},
|
|
2790
|
+
align: {
|
|
2791
|
+
start: styles$C["align-start"],
|
|
2792
|
+
center: styles$C["align-center"],
|
|
2793
|
+
end: styles$C["align-end"],
|
|
2794
|
+
stretch: styles$C["align-stretch"],
|
|
2795
|
+
baseline: styles$C["align-baseline"],
|
|
2796
|
+
},
|
|
2797
|
+
justify: {
|
|
2798
|
+
start: styles$C["justify-start"],
|
|
2799
|
+
center: styles$C["justify-center"],
|
|
2800
|
+
end: styles$C["justify-end"],
|
|
2801
|
+
between: styles$C["justify-between"],
|
|
2802
|
+
},
|
|
2803
|
+
wrap: {
|
|
2804
|
+
noWrap: styles$C["wrap-noWrap"],
|
|
2805
|
+
wrap: styles$C["wrap-wrap"],
|
|
2806
|
+
wrapReverse: styles$C["wrap-wrapReverse"],
|
|
2807
|
+
},
|
|
2808
|
+
gap: {
|
|
2809
|
+
"extra-small": styles$C["gap-xs"],
|
|
2810
|
+
small: styles$C["gap-sm"],
|
|
2811
|
+
medium: styles$C["gap-md"],
|
|
2812
|
+
large: styles$C["gap-lg"],
|
|
2813
|
+
"extra-large": styles$C["gap-xl"],
|
|
2814
|
+
},
|
|
2815
|
+
},
|
|
2816
|
+
defaultVariants: {
|
|
2817
|
+
direction: "row",
|
|
2818
|
+
align: "stretch",
|
|
2819
|
+
justify: "start",
|
|
2820
|
+
wrap: "noWrap",
|
|
2821
|
+
},
|
|
2822
|
+
});
|
|
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$B = {"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$B.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$B.item} ${className}`, ...props })] })));
|
|
2831
|
+
AccordionItem.displayName = "AccordionItem";
|
|
2832
|
+
const AccordionTrigger = React__namespace.forwardRef(({ className, children, ...props }, ref) => (jsxRuntimeExports.jsx($1bf158f521e1b1b4$export$8b251419efc915eb, { className: styles$B.header, children: jsxRuntimeExports.jsxs($1bf158f521e1b1b4$export$41fb9f06171c75f4, { ref: ref, className: styles$B.trigger, ...props, children: [children, jsxRuntimeExports.jsx(ChevronDownIcon, { className: styles$B.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$B.content, ...props, children: jsxRuntimeExports.jsx("div", { className: `${styles$B.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$A = {"box":"box-module_box__ETj3v"};
|
|
2932
|
+
|
|
2933
|
+
const box = cva(styles$A.box);
|
|
2934
|
+
function Box({ children, className, ...props }) {
|
|
2935
|
+
return (jsxRuntimeExports.jsx("div", { className: box({ className }), ...props, children: children }));
|
|
2936
|
+
}
|
|
2937
|
+
|
|
2938
|
+
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"};
|
|
2939
|
+
|
|
2940
|
+
const avatar = cva(styles$z.avatar, {
|
|
2941
|
+
variants: {
|
|
2942
|
+
shape: {
|
|
2943
|
+
square: styles$z["avatar-square"],
|
|
2944
|
+
circle: styles$z["avatar-circle"],
|
|
2945
|
+
},
|
|
2946
|
+
disabled: {
|
|
2947
|
+
true: styles$z["avatar-disabled"],
|
|
2948
|
+
},
|
|
2949
|
+
},
|
|
2950
|
+
defaultVariants: {
|
|
2951
|
+
shape: "circle",
|
|
2952
|
+
},
|
|
2953
|
+
});
|
|
2954
|
+
const image$1 = cva(styles$z.image);
|
|
2955
|
+
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 })] }) })));
|
|
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$z.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$y = {"badge":"badge-module_badge__NAloH"};
|
|
2611
2968
|
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
fill: "none",
|
|
2617
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
2618
|
-
}, props, {
|
|
2619
|
-
ref: forwardedRef
|
|
2620
|
-
}), React.createElement("path", {
|
|
2621
|
-
d: "M7.5 0C7.77614 0 8 0.223858 8 0.5V2.5C8 2.77614 7.77614 3 7.5 3C7.22386 3 7 2.77614 7 2.5V0.5C7 0.223858 7.22386 0 7.5 0ZM2.1967 2.1967C2.39196 2.00144 2.70854 2.00144 2.90381 2.1967L4.31802 3.61091C4.51328 3.80617 4.51328 4.12276 4.31802 4.31802C4.12276 4.51328 3.80617 4.51328 3.61091 4.31802L2.1967 2.90381C2.00144 2.70854 2.00144 2.39196 2.1967 2.1967ZM0.5 7C0.223858 7 0 7.22386 0 7.5C0 7.77614 0.223858 8 0.5 8H2.5C2.77614 8 3 7.77614 3 7.5C3 7.22386 2.77614 7 2.5 7H0.5ZM2.1967 12.8033C2.00144 12.608 2.00144 12.2915 2.1967 12.0962L3.61091 10.682C3.80617 10.4867 4.12276 10.4867 4.31802 10.682C4.51328 10.8772 4.51328 11.1938 4.31802 11.3891L2.90381 12.8033C2.70854 12.9986 2.39196 12.9986 2.1967 12.8033ZM12.5 7C12.2239 7 12 7.22386 12 7.5C12 7.77614 12.2239 8 12.5 8H14.5C14.7761 8 15 7.77614 15 7.5C15 7.22386 14.7761 7 14.5 7H12.5ZM10.682 4.31802C10.4867 4.12276 10.4867 3.80617 10.682 3.61091L12.0962 2.1967C12.2915 2.00144 12.608 2.00144 12.8033 2.1967C12.9986 2.39196 12.9986 2.70854 12.8033 2.90381L11.3891 4.31802C11.1938 4.51328 10.8772 4.51328 10.682 4.31802ZM8 12.5C8 12.2239 7.77614 12 7.5 12C7.22386 12 7 12.2239 7 12.5V14.5C7 14.7761 7.22386 15 7.5 15C7.77614 15 8 14.7761 8 14.5V12.5ZM10.682 10.682C10.8772 10.4867 11.1938 10.4867 11.3891 10.682L12.8033 12.0962C12.9986 12.2915 12.9986 12.608 12.8033 12.8033C12.608 12.9986 12.2915 12.9986 12.0962 12.8033L10.682 11.3891C10.4867 11.1938 10.4867 10.8772 10.682 10.682ZM5.5 7.5C5.5 6.39543 6.39543 5.5 7.5 5.5C8.60457 5.5 9.5 6.39543 9.5 7.5C9.5 8.60457 8.60457 9.5 7.5 9.5C6.39543 9.5 5.5 8.60457 5.5 7.5ZM7.5 4.5C5.84315 4.5 4.5 5.84315 4.5 7.5C4.5 9.15685 5.84315 10.5 7.5 10.5C9.15685 10.5 10.5 9.15685 10.5 7.5C10.5 5.84315 9.15685 4.5 7.5 4.5Z",
|
|
2622
|
-
fill: color,
|
|
2623
|
-
fillRule: "evenodd",
|
|
2624
|
-
clipRule: "evenodd"
|
|
2625
|
-
}));
|
|
2969
|
+
const badge = cva(styles$y.badge, {
|
|
2970
|
+
variants: {
|
|
2971
|
+
color: {},
|
|
2972
|
+
},
|
|
2626
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);
|
|
2627
2979
|
|
|
2628
|
-
var styles$
|
|
2980
|
+
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"};
|
|
2629
2981
|
|
|
2630
|
-
const
|
|
2982
|
+
const body$1 = cva(styles$x.body, {
|
|
2631
2983
|
variants: {
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
columnReverse: styles$v["direction-columnReverse"],
|
|
2637
|
-
},
|
|
2638
|
-
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"],
|
|
2644
|
-
},
|
|
2645
|
-
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"],
|
|
2650
|
-
},
|
|
2651
|
-
wrap: {
|
|
2652
|
-
noWrap: styles$v["wrap-noWrap"],
|
|
2653
|
-
wrap: styles$v["wrap-wrap"],
|
|
2654
|
-
wrapReverse: styles$v["wrap-wrapReverse"],
|
|
2655
|
-
},
|
|
2656
|
-
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"],
|
|
2984
|
+
size: {
|
|
2985
|
+
small: styles$x["body-small"],
|
|
2986
|
+
medium: styles$x["body-medium"],
|
|
2987
|
+
large: styles$x["body-large"],
|
|
2662
2988
|
},
|
|
2663
2989
|
},
|
|
2664
2990
|
defaultVariants: {
|
|
2665
|
-
|
|
2666
|
-
align: "stretch",
|
|
2667
|
-
justify: "start",
|
|
2668
|
-
wrap: "noWrap",
|
|
2991
|
+
size: "small",
|
|
2669
2992
|
},
|
|
2670
2993
|
});
|
|
2671
|
-
|
|
2672
|
-
return (jsxRuntimeExports.jsx("
|
|
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$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"};
|
|
2999
|
+
|
|
3000
|
+
const button = cva(styles$w.button, {
|
|
3001
|
+
variants: {
|
|
3002
|
+
variant: {
|
|
3003
|
+
primary: styles$w["button-primary"],
|
|
3004
|
+
outline: styles$w["button-outline"],
|
|
3005
|
+
secondary: styles$w["button-secondary"],
|
|
3006
|
+
ghost: styles$w["button-ghost"],
|
|
3007
|
+
danger: styles$w["button-danger"],
|
|
3008
|
+
},
|
|
3009
|
+
size: {
|
|
3010
|
+
small: styles$w["button-small"],
|
|
3011
|
+
medium: styles$w["button-medium"],
|
|
3012
|
+
large: styles$w["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
|
-
var styles$
|
|
3229
|
+
var styles$v = {"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
|
|
|
2677
|
-
const label$2 = cva(styles$
|
|
3231
|
+
const label$2 = cva(styles$v.label, {
|
|
2678
3232
|
variants: {
|
|
2679
3233
|
size: {
|
|
2680
|
-
small: styles$
|
|
2681
|
-
medium: styles$
|
|
2682
|
-
large: styles$
|
|
3234
|
+
small: styles$v["label-small"],
|
|
3235
|
+
medium: styles$v["label-medium"],
|
|
3236
|
+
large: styles$v["label-large"],
|
|
2683
3237
|
},
|
|
2684
3238
|
},
|
|
2685
3239
|
defaultVariants: {
|
|
@@ -2690,13 +3244,13 @@ function Label({ children, className, size, ...props }) {
|
|
|
2690
3244
|
return (jsxRuntimeExports.jsx("label", { className: label$2({ size, className }), ...props, children: children }));
|
|
2691
3245
|
}
|
|
2692
3246
|
|
|
2693
|
-
var styles$
|
|
3247
|
+
var styles$u = {"checkbox":"checkbox-module_checkbox__QdlAc","checkbox-sm":"checkbox-module_checkbox-sm__tVhlX","checkbox-md":"checkbox-module_checkbox-md__G04e5","indicator":"checkbox-module_indicator__oGvoN"};
|
|
2694
3248
|
|
|
2695
|
-
const checkbox = cva(styles$
|
|
3249
|
+
const checkbox = cva(styles$u.checkbox, {
|
|
2696
3250
|
variants: {
|
|
2697
3251
|
size: {
|
|
2698
|
-
small: styles$
|
|
2699
|
-
medium: styles$
|
|
3252
|
+
small: styles$u["checkbox-sm"],
|
|
3253
|
+
medium: styles$u["checkbox-md"],
|
|
2700
3254
|
},
|
|
2701
3255
|
},
|
|
2702
3256
|
defaultVariants: {
|
|
@@ -2704,7 +3258,7 @@ const checkbox = cva(styles$t.checkbox, {
|
|
|
2704
3258
|
},
|
|
2705
3259
|
});
|
|
2706
3260
|
const Checkbox = React.forwardRef(({ className, size, children, ...props }, forwardedRef) => (jsxRuntimeExports.jsxs(Flex, { gap: "small", children: [jsxRuntimeExports.jsx($e698a72e93240346$export$be92b6f5f03c0fe9, { ...props, ref: forwardedRef, className: checkbox({ size, className }), children: jsxRuntimeExports.jsx(CheckboxIndicator, { children: jsxRuntimeExports.jsx(CheckIcon, {}) }) }), jsxRuntimeExports.jsx(Label, { children: children })] })));
|
|
2707
|
-
const indicator$1 = cva(styles$
|
|
3261
|
+
const indicator$1 = cva(styles$u.indicator);
|
|
2708
3262
|
const CheckboxIndicator = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($e698a72e93240346$export$adb584737d712b70, { ref: ref, className: indicator$1({ className }), ...props })));
|
|
2709
3263
|
CheckboxIndicator.displayName = $e698a72e93240346$export$adb584737d712b70.displayName;
|
|
2710
3264
|
|
|
@@ -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
|
|
3400
|
+
const $1746a345f3d73bb7$var$useReactId = React__namespace['useId'.toString()] || (()=>undefined
|
|
2847
3401
|
);
|
|
2848
|
-
let $1746a345f3d73bb7$var$count
|
|
2849
|
-
function $1746a345f3d73bb7$export$f680877a34711e37
|
|
2850
|
-
const [id, setId] = React__namespace.useState($1746a345f3d73bb7$var$useReactId
|
|
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
|
|
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
|
|
4536
|
-
titleId: $1746a345f3d73bb7$export$f680877a34711e37
|
|
4537
|
-
descriptionId: $1746a345f3d73bb7$export$f680877a34711e37
|
|
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
|
|
@@ -4849,21 +5403,7 @@ var le = /*@__PURE__*/getDefaultExportFromCjs(commandScore_1);
|
|
|
4849
5403
|
|
|
4850
5404
|
var ue='[cmdk-list-sizer=""]',M='[cmdk-group=""]',N='[cmdk-group-items=""]',de='[cmdk-group-heading=""]',ee='[cmdk-item=""]',Z=`${ee}:not([aria-disabled="true"])`,z="cmdk-item-select",S="data-value",fe=(n,a)=>le(n,a),te=React__namespace.createContext(void 0),k=()=>React__namespace.useContext(te),re=React__namespace.createContext(void 0),U=()=>React__namespace.useContext(re),ne=React__namespace.createContext(void 0),oe=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(null),o=x(()=>({search:"",value:"",filtered:{count:0,items:new Map,groups:new Set}})),u=x(()=>new Set),l=x(()=>new Map),p=x(()=>new Map),f=x(()=>new Set),d=ae(n),{label:v,children:E,value:R,onValueChange:w,filter:O,shouldFilter:ie,...D}=n,F=React__namespace.useId(),g=React__namespace.useId(),A=React__namespace.useId(),y=ye();L(()=>{if(R!==void 0){let e=R.trim().toLowerCase();o.current.value=e,y(6,W),h.emit();}},[R]);let h=React__namespace.useMemo(()=>({subscribe:e=>(f.current.add(e),()=>f.current.delete(e)),snapshot:()=>o.current,setState:(e,c,i)=>{var s,m,b;if(!Object.is(o.current[e],c)){if(o.current[e]=c,e==="search")j(),G(),y(1,V);else if(e==="value")if(((s=d.current)==null?void 0:s.value)!==void 0){(b=(m=d.current).onValueChange)==null||b.call(m,c);return}else i||y(5,W);h.emit();}},emit:()=>{f.current.forEach(e=>e());}}),[]),K=React__namespace.useMemo(()=>({value:(e,c)=>{c!==p.current.get(e)&&(p.current.set(e,c),o.current.filtered.items.set(e,B(c)),y(2,()=>{G(),h.emit();}));},item:(e,c)=>(u.current.add(e),c&&(l.current.has(c)?l.current.get(c).add(e):l.current.set(c,new Set([e]))),y(3,()=>{j(),G(),o.current.value||V(),h.emit();}),()=>{p.current.delete(e),u.current.delete(e),o.current.filtered.items.delete(e),y(4,()=>{j(),V(),h.emit();});}),group:e=>(l.current.has(e)||l.current.set(e,new Set),()=>{p.current.delete(e),l.current.delete(e);}),filter:()=>d.current.shouldFilter,label:v||n["aria-label"],listId:F,inputId:A,labelId:g}),[]);function B(e){var i;let c=((i=d.current)==null?void 0:i.filter)??fe;return e?c(e,o.current.search):0}function G(){if(!r.current||!o.current.search||d.current.shouldFilter===!1)return;let e=o.current.filtered.items,c=[];o.current.filtered.groups.forEach(s=>{let m=l.current.get(s),b=0;m.forEach(P=>{let ce=e.get(P);b=Math.max(ce,b);}),c.push([s,b]);});let i=r.current.querySelector(ue);I().sort((s,m)=>{let b=s.getAttribute(S),P=m.getAttribute(S);return (e.get(P)??0)-(e.get(b)??0)}).forEach(s=>{let m=s.closest(N);m?m.appendChild(s.parentElement===m?s:s.closest(`${N} > *`)):i.appendChild(s.parentElement===i?s:s.closest(`${N} > *`));}),c.sort((s,m)=>m[1]-s[1]).forEach(s=>{let m=r.current.querySelector(`${M}[${S}="${s[0]}"]`);m==null||m.parentElement.appendChild(m);});}function V(){let e=I().find(i=>!i.ariaDisabled),c=e==null?void 0:e.getAttribute(S);h.setState("value",c||void 0);}function j(){if(!o.current.search||d.current.shouldFilter===!1){o.current.filtered.count=u.current.size;return}o.current.filtered.groups=new Set;let e=0;for(let c of u.current){let i=p.current.get(c),s=B(i);o.current.filtered.items.set(c,s),s>0&&e++;}for(let[c,i]of l.current)for(let s of i)if(o.current.filtered.items.get(s)>0){o.current.filtered.groups.add(c);break}o.current.filtered.count=e;}function W(){var c,i,s;let e=_();e&&(((c=e.parentElement)==null?void 0:c.firstChild)===e&&((s=(i=e.closest(M))==null?void 0:i.querySelector(de))==null||s.scrollIntoView({block:"nearest"})),e.scrollIntoView({block:"nearest"}));}function _(){return r.current.querySelector(`${ee}[aria-selected="true"]`)}function I(){return Array.from(r.current.querySelectorAll(Z))}function q(e){let i=I()[e];i&&h.setState("value",i.getAttribute(S));}function $(e){var b;let c=_(),i=I(),s=i.findIndex(P=>P===c),m=i[s+e];(b=d.current)!=null&&b.loop&&(m=s+e<0?i[i.length-1]:s+e===i.length?i[0]:i[s+e]),m&&h.setState("value",m.getAttribute(S));}function J(e){let c=_(),i=c==null?void 0:c.closest(M),s;for(;i&&!s;)i=e>0?Se(i,M):Ce(i,M),s=i==null?void 0:i.querySelector(Z);s?h.setState("value",s.getAttribute(S)):$(e);}let Q=()=>q(I().length-1),X=e=>{e.preventDefault(),e.metaKey?Q():e.altKey?J(1):$(1);},Y=e=>{e.preventDefault(),e.metaKey?q(0):e.altKey?J(-1):$(-1);};return React__namespace.createElement("div",{ref:H([r,a]),...D,"cmdk-root":"",onKeyDown:e=>{var c;if((c=D.onKeyDown)==null||c.call(D,e),!e.defaultPrevented)switch(e.key){case"n":case"j":{e.ctrlKey&&X(e);break}case"ArrowDown":{X(e);break}case"p":case"k":{e.ctrlKey&&Y(e);break}case"ArrowUp":{Y(e);break}case"Home":{e.preventDefault(),q(0);break}case"End":{e.preventDefault(),Q();break}case"Enter":{e.preventDefault();let i=_();if(i){let s=new Event(z);i.dispatchEvent(s);}}}}},React__namespace.createElement("label",{"cmdk-label":"",htmlFor:K.inputId,id:K.labelId,style:xe},v),React__namespace.createElement(re.Provider,{value:h},React__namespace.createElement(te.Provider,{value:K},E)))}),me=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useId(),o=React__namespace.useRef(null),u=React__namespace.useContext(ne),l=k(),p=ae(n);L(()=>l.item(r,u),[]);let f=se(r,o,[n.value,n.children,o]),d=U(),v=T(g=>g.value&&g.value===f.current),E=T(g=>l.filter()===!1?!0:g.search?g.filtered.items.get(r)>0:!0);React__namespace.useEffect(()=>{let g=o.current;if(!(!g||n.disabled))return g.addEventListener(z,R),()=>g.removeEventListener(z,R)},[E,n.onSelect,n.disabled]);function R(){var g,A;(A=(g=p.current).onSelect)==null||A.call(g,f.current);}function w(){d.setState("value",f.current,!0);}if(!E)return null;let{disabled:O,value:ie,onSelect:D,...F}=n;return React__namespace.createElement("div",{ref:H([o,a]),...F,"cmdk-item":"",role:"option","aria-disabled":O||void 0,"aria-selected":v||void 0,"data-selected":v||void 0,onPointerMove:O?void 0:w,onClick:O?void 0:R},n.children)}),pe=React__namespace.forwardRef((n,a)=>{let{heading:r,children:o,...u}=n,l=React__namespace.useId(),p=React__namespace.useRef(null),f=React__namespace.useRef(null),d=React__namespace.useId(),v=k(),E=T(w=>v.filter()===!1?!0:w.search?w.filtered.groups.has(l):!0);L(()=>v.group(l),[]),se(l,p,[n.value,n.heading,f]);let R=React__namespace.createElement(ne.Provider,{value:l},o);return React__namespace.createElement("div",{ref:H([p,a]),...u,"cmdk-group":"",role:"presentation",hidden:E?void 0:!0},r&&React__namespace.createElement("div",{ref:f,"cmdk-group-heading":"","aria-hidden":!0,id:d},r),React__namespace.createElement("div",{"cmdk-group-items":"",role:"group","aria-labelledby":r?d:void 0},R))}),ge=React__namespace.forwardRef((n,a)=>{let{alwaysRender:r,...o}=n,u=React__namespace.useRef(null),l=T(p=>!p.search);return !r&&!l?null:React__namespace.createElement("div",{ref:H([u,a]),...o,"cmdk-separator":"",role:"separator"})}),ve=React__namespace.forwardRef((n,a)=>{let{onValueChange:r,...o}=n,u=n.value!=null,l=U(),p=T(d=>d.search),f=k();return React__namespace.useEffect(()=>{n.value!=null&&l.setState("search",n.value);},[n.value]),React__namespace.createElement("input",{ref:a,...o,"cmdk-input":"",autoComplete:"off",autoCorrect:"off",spellCheck:!1,"aria-autocomplete":"list",role:"combobox","aria-expanded":!0,"aria-controls":f.listId,"aria-labelledby":f.labelId,id:f.inputId,type:"text",value:u?n.value:p,onChange:d=>{u||l.setState("search",d.target.value),r==null||r(d.target.value);}})}),Re=React__namespace.forwardRef((n,a)=>{let{children:r,...o}=n,u=React__namespace.useRef(null),l=React__namespace.useRef(null),p=k();return React__namespace.useEffect(()=>{if(l.current&&u.current){let f=l.current,d=u.current,v,E=new ResizeObserver(()=>{v=requestAnimationFrame(()=>{let R=f.getBoundingClientRect().height;d.style.setProperty("--cmdk-list-height",R.toFixed(1)+"px");});});return E.observe(f),()=>{cancelAnimationFrame(v),E.unobserve(f);}}},[]),React__namespace.createElement("div",{ref:H([u,a]),...o,"cmdk-list":"",role:"listbox","aria-label":"Suggestions",id:p.listId,"aria-labelledby":p.inputId},React__namespace.createElement("div",{ref:l,"cmdk-list-sizer":""},r))}),be=React__namespace.forwardRef((n,a)=>{let{open:r,onOpenChange:o,container:u,...l}=n;return React__namespace.createElement($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9$1,{open:r,onOpenChange:o},React__namespace.createElement($5d3850c4d0b4e6c7$export$602eac185826482c$1,{container:u},React__namespace.createElement($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff$1,{"cmdk-overlay":""}),React__namespace.createElement($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2$1,{"aria-label":n.label,"cmdk-dialog":""},React__namespace.createElement(oe,{ref:a,...l}))))}),he=React__namespace.forwardRef((n,a)=>{let r=React__namespace.useRef(!0),o=T(u=>u.filtered.count===0);return React__namespace.useEffect(()=>{r.current=!1;},[]),r.current||!o?null:React__namespace.createElement("div",{ref:a,...n,"cmdk-empty":"",role:"presentation"})}),Ee=React__namespace.forwardRef((n,a)=>{let{progress:r,children:o,...u}=n;return React__namespace.createElement("div",{ref:a,...u,"cmdk-loading":"",role:"progressbar","aria-valuenow":r,"aria-valuemin":0,"aria-valuemax":100,"aria-label":"Loading..."},React__namespace.createElement("div",{"aria-hidden":!0},o))}),Le=Object.assign(oe,{List:Re,Item:me,Input:ve,Group:pe,Separator:ge,Dialog:be,Empty:he,Loading:Ee});function Se(n,a){let r=n.nextElementSibling;for(;r;){if(r.matches(a))return r;r=r.nextElementSibling;}}function Ce(n,a){let r=n.previousElementSibling;for(;r;){if(r.matches(a))return r;r=r.previousElementSibling;}}function ae(n){let a=React__namespace.useRef(n);return L(()=>{a.current=n;}),a}var L=typeof window>"u"?React__namespace.useEffect:React__namespace.useLayoutEffect;function x(n){let a=React__namespace.useRef();return a.current===void 0&&(a.current=n()),a}function H(n){return a=>{n.forEach(r=>{typeof r=="function"?r(a):r!=null&&(r.current=a);});}}function T(n){let a=U(),r=()=>n(a.snapshot());return React__namespace.useSyncExternalStore(a.subscribe,r,r)}function se(n,a,r){let o=React__namespace.useRef(),u=k();return L(()=>{var p;let l=(()=>{var f;for(let d of r){if(typeof d=="string")return d.trim().toLowerCase();if(typeof d=="object"&&"current"in d&&d.current)return (f=d.current.textContent)==null?void 0:f.trim().toLowerCase()}})();u.value(n,l),(p=a.current)==null||p.setAttribute(S,l),o.current=l;}),o}var ye=()=>{let[n,a]=React__namespace.useState(),r=x(()=>new Map);return L(()=>{r.current.forEach(o=>o()),r.current=new Map;},[n]),(o,u)=>{r.current.set(o,u),a({});}},xe={position:"absolute",width:"1px",height:"1px",padding:"0",margin:"-1px",overflow:"hidden",clip:"rect(0, 0, 0, 0)",whiteSpace:"nowrap",borderWidth:"0"};
|
|
4851
5405
|
|
|
4852
|
-
var styles$
|
|
4853
|
-
|
|
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
|
-
}
|
|
5406
|
+
var styles$t = {"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"};
|
|
4867
5407
|
|
|
4868
5408
|
/**
|
|
4869
5409
|
* Listens for when the escape key is down
|
|
@@ -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
|
|
@@ -5974,16 +6514,16 @@ const $5d3850c4d0b4e6c7$export$f99233281efd08a0 = $5d3850c4d0b4e6c7$export$16f76
|
|
|
5974
6514
|
const $5d3850c4d0b4e6c7$export$393edc798c47379d = $5d3850c4d0b4e6c7$export$94e94c2ec2c954d5;
|
|
5975
6515
|
const $5d3850c4d0b4e6c7$export$f39c2d165cd861fe = $5d3850c4d0b4e6c7$export$fba2fb7cd781b7ac;
|
|
5976
6516
|
|
|
5977
|
-
var styles$
|
|
6517
|
+
var styles$s = {"dialogContent":"dialog-module_dialogContent__bljTL","overlay":"dialog-module_overlay__t-jUE","close":"dialog-module_close__n9JNt"};
|
|
5978
6518
|
|
|
5979
|
-
const dialogContent = cva(styles$
|
|
6519
|
+
const dialogContent = cva(styles$s.dialogContent);
|
|
5980
6520
|
const DialogContent = React.forwardRef(({ className, children, close, overlayStyle, overlayClassname, ...props }, forwardedRef) => {
|
|
5981
6521
|
return (jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$602eac185826482c, { children: [jsxRuntimeExports.jsx(Overlay$1, { className: overlayClassname, style: overlayStyle }), jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, { ...props, ref: forwardedRef, className: dialogContent({ className }), children: [children, close && (jsxRuntimeExports.jsx(CloseButton$1, { children: jsxRuntimeExports.jsx(Cross1Icon, {}) }))] })] }));
|
|
5982
6522
|
});
|
|
5983
|
-
const overlay$1 = cva(styles$
|
|
6523
|
+
const overlay$1 = cva(styles$s.overlay);
|
|
5984
6524
|
const Overlay$1 = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { ref: ref, className: overlay$1({ className }), ...props })));
|
|
5985
6525
|
Overlay$1.displayName = $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff.displayName;
|
|
5986
|
-
const close$1 = cva(styles$
|
|
6526
|
+
const close$1 = cva(styles$s.close);
|
|
5987
6527
|
function CloseButton$1({ children, className, ...props }) {
|
|
5988
6528
|
return (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, { className: close$1({ className }), ...props, children: children }));
|
|
5989
6529
|
}
|
|
@@ -5995,30 +6535,30 @@ const Dialog = Object.assign($5d3850c4d0b4e6c7$export$be92b6f5f03c0fe9, {
|
|
|
5995
6535
|
Description: $5d3850c4d0b4e6c7$export$393edc798c47379d,
|
|
5996
6536
|
});
|
|
5997
6537
|
|
|
5998
|
-
const command = cva(styles$
|
|
6538
|
+
const command = cva(styles$t.command);
|
|
5999
6539
|
const CommandRoot = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx(Le, { ref: ref, className: command({ className }), ...props })));
|
|
6000
6540
|
CommandRoot.displayName = Le.displayName;
|
|
6001
6541
|
const CommandDialog = ({ children, ...props }) => {
|
|
6002
|
-
return (jsxRuntimeExports.jsx(Dialog, { ...props, children: jsxRuntimeExports.jsx(Dialog.Content, { style: { overflow: "hidden", padding: "0" }, children: jsxRuntimeExports.jsx(Command, { className: styles$
|
|
6542
|
+
return (jsxRuntimeExports.jsx(Dialog, { ...props, children: jsxRuntimeExports.jsx(Dialog.Content, { style: { overflow: "hidden", padding: "0" }, children: jsxRuntimeExports.jsx(Command, { className: styles$t.dialogcommand, children: children }) }) }));
|
|
6003
6543
|
};
|
|
6004
|
-
const input = cva(styles$
|
|
6005
|
-
const CommandInput = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsxs(Flex, { align: "center", gap: "small", "cmdk-input-wrapper": "", className: styles$
|
|
6544
|
+
const input = cva(styles$t.input);
|
|
6545
|
+
const CommandInput = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsxs(Flex, { align: "center", gap: "small", "cmdk-input-wrapper": "", className: styles$t.inputWrapper, children: [jsxRuntimeExports.jsx(MagnifyingGlassIcon, { className: styles$t.inputIcon, width: 16, height: 16 }), jsxRuntimeExports.jsx(Le.Input, { ref: ref, className: input({ className }), ...props })] })));
|
|
6006
6546
|
CommandInput.displayName = Le.Input.displayName;
|
|
6007
|
-
const list = cva(styles$
|
|
6547
|
+
const list = cva(styles$t.list);
|
|
6008
6548
|
const CommandList = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx(Le.List, { ref: ref, className: list({ className }), ...props })));
|
|
6009
6549
|
CommandList.displayName = Le.List.displayName;
|
|
6010
|
-
const CommandEmpty = React.forwardRef((props, ref) => (jsxRuntimeExports.jsx(Le.Empty, { ref: ref, className: styles$
|
|
6550
|
+
const CommandEmpty = React.forwardRef((props, ref) => (jsxRuntimeExports.jsx(Le.Empty, { ref: ref, className: styles$t.empty, ...props })));
|
|
6011
6551
|
CommandEmpty.displayName = Le.Empty.displayName;
|
|
6012
|
-
const group = cva(styles$
|
|
6552
|
+
const group = cva(styles$t.group);
|
|
6013
6553
|
const CommandGroup = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx(Le.Group, { ref: ref, className: group({ className }), ...props })));
|
|
6014
6554
|
CommandGroup.displayName = Le.Group.displayName;
|
|
6015
|
-
const separator$3 = cva(styles$
|
|
6555
|
+
const separator$3 = cva(styles$t.separator);
|
|
6016
6556
|
const CommandSeparator = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx(Le.Separator, { ref: ref, className: separator$3({ className }), ...props })));
|
|
6017
6557
|
CommandSeparator.displayName = Le.Separator.displayName;
|
|
6018
|
-
const item = cva(styles$
|
|
6019
|
-
const CommandItem = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx(Le.Item, { ref: ref, className: item({ className }), ...props })));
|
|
6558
|
+
const item$1 = cva(styles$t.item);
|
|
6559
|
+
const CommandItem = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx(Le.Item, { ref: ref, className: item$1({ className }), ...props })));
|
|
6020
6560
|
CommandItem.displayName = Le.Item.displayName;
|
|
6021
|
-
const shortcut = cva(styles$
|
|
6561
|
+
const shortcut = cva(styles$t.shortcut);
|
|
6022
6562
|
const CommandShortcut = ({ className, ...props }) => {
|
|
6023
6563
|
return jsxRuntimeExports.jsx("span", { className: shortcut({ className }), ...props });
|
|
6024
6564
|
};
|
|
@@ -6034,15 +6574,15 @@ const Command = Object.assign(CommandRoot, {
|
|
|
6034
6574
|
Separator: CommandSeparator,
|
|
6035
6575
|
});
|
|
6036
6576
|
|
|
6037
|
-
var styles$
|
|
6577
|
+
var styles$r = {"container":"container-module_container__gisZb","container-small":"container-module_container-small__gfmeG","container-medium":"container-module_container-medium__sA5rc","container-large":"container-module_container-large__bk-Wg","container-none":"container-module_container-none__hVnHU"};
|
|
6038
6578
|
|
|
6039
|
-
const container = cva(styles$
|
|
6579
|
+
const container = cva(styles$r.container, {
|
|
6040
6580
|
variants: {
|
|
6041
6581
|
size: {
|
|
6042
|
-
small: styles$
|
|
6043
|
-
medium: styles$
|
|
6044
|
-
large: styles$
|
|
6045
|
-
none: styles$
|
|
6582
|
+
small: styles$r["container-small"],
|
|
6583
|
+
medium: styles$r["container-medium"],
|
|
6584
|
+
large: styles$r["container-large"],
|
|
6585
|
+
none: styles$r["container-none"],
|
|
6046
6586
|
},
|
|
6047
6587
|
},
|
|
6048
6588
|
defaultVariants: {
|
|
@@ -6053,14 +6593,14 @@ function Container({ children, size, className, ...props }) {
|
|
|
6053
6593
|
return (jsxRuntimeExports.jsx("div", { className: container({ size, className }), ...props, children: children }));
|
|
6054
6594
|
}
|
|
6055
6595
|
|
|
6056
|
-
var styles$
|
|
6596
|
+
var styles$q = {"display":"display-module_display__fImHP","display-small":"display-module_display-small__n9Y4F","display-medium":"display-module_display-medium__p8Iyc","display-large":"display-module_display-large__3LvKv"};
|
|
6057
6597
|
|
|
6058
|
-
const display = cva(styles$
|
|
6598
|
+
const display = cva(styles$q.display, {
|
|
6059
6599
|
variants: {
|
|
6060
6600
|
size: {
|
|
6061
|
-
small: styles$
|
|
6062
|
-
medium: styles$
|
|
6063
|
-
large: styles$
|
|
6601
|
+
small: styles$q["display-small"],
|
|
6602
|
+
medium: styles$q["display-medium"],
|
|
6603
|
+
large: styles$q["display-large"],
|
|
6064
6604
|
},
|
|
6065
6605
|
},
|
|
6066
6606
|
defaultVariants: {
|
|
@@ -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
|
|
@@ -9132,21 +9579,21 @@ const $d08ef79370b62062$export$b04be29aa201d4f5 = $d08ef79370b62062$export$76e48
|
|
|
9132
9579
|
const $d08ef79370b62062$export$6d08773d2e66f8f2 = $d08ef79370b62062$export$ed97964d1871885d;
|
|
9133
9580
|
const $d08ef79370b62062$export$1ff3c3f08ae963c0 = $d08ef79370b62062$export$da160178fd3bc7e9;
|
|
9134
9581
|
|
|
9135
|
-
var styles$
|
|
9582
|
+
var styles$p = {"content":"dropdown-menu-module_content__-LWeL","menuitem":"dropdown-menu-module_menuitem__IuV4n","label":"dropdown-menu-module_label__2h-4H","separator":"dropdown-menu-module_separator__0-EoW","menugroup":"dropdown-menu-module_menugroup__AmbLX"};
|
|
9136
9583
|
|
|
9137
|
-
const content$2 = cva(styles$
|
|
9584
|
+
const content$2 = cva(styles$p.content);
|
|
9138
9585
|
const DropdownMenuContent = React__namespace.forwardRef(({ className, sideOffset = 4, ...props }, ref) => (jsxRuntimeExports.jsx($d08ef79370b62062$export$602eac185826482c, { children: jsxRuntimeExports.jsx($d08ef79370b62062$export$7c6e2c02157bb7d2, { ref: ref, sideOffset: sideOffset, className: content$2({ className }), ...props }) })));
|
|
9139
9586
|
DropdownMenuContent.displayName = $d08ef79370b62062$export$7c6e2c02157bb7d2.displayName;
|
|
9140
|
-
const menuitem$1 = cva(styles$
|
|
9587
|
+
const menuitem$1 = cva(styles$p.menuitem);
|
|
9141
9588
|
const DropdownMenuItem = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($d08ef79370b62062$export$6d08773d2e66f8f2, { ref: ref, className: menuitem$1({ className }), ...props })));
|
|
9142
9589
|
DropdownMenuItem.displayName = $d08ef79370b62062$export$6d08773d2e66f8f2.displayName;
|
|
9143
|
-
const label$1 = cva(styles$
|
|
9590
|
+
const label$1 = cva(styles$p.label);
|
|
9144
9591
|
const DropdownMenuLabel = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($d08ef79370b62062$export$b04be29aa201d4f5, { ref: ref, className: label$1({ className }), ...props })));
|
|
9145
9592
|
DropdownMenuLabel.displayName = $d08ef79370b62062$export$b04be29aa201d4f5.displayName;
|
|
9146
|
-
const separator$2 = cva(styles$
|
|
9593
|
+
const separator$2 = cva(styles$p.separator);
|
|
9147
9594
|
const DropdownMenuSeparator = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($d08ef79370b62062$export$1ff3c3f08ae963c0, { ref: ref, className: separator$2({ className }), ...props })));
|
|
9148
9595
|
DropdownMenuSeparator.displayName = $d08ef79370b62062$export$1ff3c3f08ae963c0.displayName;
|
|
9149
|
-
const menugroup = cva(styles$
|
|
9596
|
+
const menugroup = cva(styles$p.menugroup);
|
|
9150
9597
|
const DropdownMenuGroup = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($d08ef79370b62062$export$eb2fcfdbd7ba97d4, { ref: ref, className: menugroup({ className }), ...props })));
|
|
9151
9598
|
DropdownMenuGroup.displayName = $d08ef79370b62062$export$eb2fcfdbd7ba97d4.displayName;
|
|
9152
9599
|
const DropdownMenu = Object.assign($d08ef79370b62062$export$be92b6f5f03c0fe9, {
|
|
@@ -9158,21 +9605,21 @@ const DropdownMenu = Object.assign($d08ef79370b62062$export$be92b6f5f03c0fe9, {
|
|
|
9158
9605
|
Separator: DropdownMenuSeparator,
|
|
9159
9606
|
});
|
|
9160
9607
|
|
|
9161
|
-
var styles$
|
|
9608
|
+
var styles$o = {"emptystate":"emptystate-module_emptystate__5wz7s"};
|
|
9162
9609
|
|
|
9163
|
-
const emptystate = cva(styles$
|
|
9610
|
+
const emptystate = cva(styles$o.emptystate);
|
|
9164
9611
|
function EmptyState({ children, className, ...props }) {
|
|
9165
9612
|
return (jsxRuntimeExports.jsx("div", { className: emptystate({ className }), ...props, children: children }));
|
|
9166
9613
|
}
|
|
9167
9614
|
|
|
9168
|
-
var styles$
|
|
9615
|
+
var styles$n = {"headline":"headline-module_headline__0IEEf","headline-small":"headline-module_headline-small__nNKzH","headline-medium":"headline-module_headline-medium__ZA01P","headline-large":"headline-module_headline-large__jJ-9s"};
|
|
9169
9616
|
|
|
9170
|
-
const headline = cva(styles$
|
|
9617
|
+
const headline = cva(styles$n.headline, {
|
|
9171
9618
|
variants: {
|
|
9172
9619
|
size: {
|
|
9173
|
-
small: styles$
|
|
9174
|
-
medium: styles$
|
|
9175
|
-
large: styles$
|
|
9620
|
+
small: styles$n["headline-small"],
|
|
9621
|
+
medium: styles$n["headline-medium"],
|
|
9622
|
+
large: styles$n["headline-large"],
|
|
9176
9623
|
},
|
|
9177
9624
|
},
|
|
9178
9625
|
defaultVariants: {
|
|
@@ -9183,7 +9630,7 @@ function Headline({ children, className, size, ...props }) {
|
|
|
9183
9630
|
return (jsxRuntimeExports.jsx("span", { className: headline({ size, className }), ...props, children: children }));
|
|
9184
9631
|
}
|
|
9185
9632
|
|
|
9186
|
-
var styles$
|
|
9633
|
+
var styles$m = {};
|
|
9187
9634
|
|
|
9188
9635
|
const getIcon = (status = "") => {
|
|
9189
9636
|
switch (status) {
|
|
@@ -9227,61 +9674,61 @@ const getHeadline = (status = "Something gone wrong") => {
|
|
|
9227
9674
|
return status;
|
|
9228
9675
|
}
|
|
9229
9676
|
};
|
|
9230
|
-
const errorstate = cva(styles$
|
|
9677
|
+
const errorstate = cva(styles$m.errorstate);
|
|
9231
9678
|
function ErrorState({ children, className, status, icon, ...props }) {
|
|
9232
9679
|
return (jsxRuntimeExports.jsx(Flex, { justify: "center", style: { width: "100%", height: "100%" }, children: jsxRuntimeExports.jsxs(Flex, { direction: "column", gap: "large", align: "center", justify: "center", className: errorstate({ className }), style: { textAlign: "center", maxWidth: "400px" }, ...props, children: [icon ? icon : getIcon(status), jsxRuntimeExports.jsxs(Flex, { direction: "column", gap: "medium", children: [jsxRuntimeExports.jsx(Headline, { size: "large", children: getHeadline(status) }), jsxRuntimeExports.jsx(Body, { size: "large", children: getMessage(status) })] })] }) }));
|
|
9233
9680
|
}
|
|
9234
9681
|
|
|
9235
|
-
var styles$
|
|
9682
|
+
var styles$l = {"grid":"grid-module_grid__UQeew","align-start":"grid-module_align-start__Z7pvl","align-center":"grid-module_align-center__Rwlbt","align-end":"grid-module_align-end__nuXn1","align-stretch":"grid-module_align-stretch__6SP1w","align-baseline":"grid-module_align-baseline__ajEPv","justify-start":"grid-module_justify-start__hRYMn","justify-center":"grid-module_justify-center__zQ7Ym","justify-end":"grid-module_justify-end__92x6b","justify-between":"grid-module_justify-between__vQXi3","flow-row":"grid-module_flow-row__bI9DV","flow-column":"grid-module_flow-column__lsmAV","flow-dense":"grid-module_flow-dense__rAnOn","flow-rowDense":"grid-module_flow-rowDense__vvLwD","flow-columnDense":"grid-module_flow-columnDense__HnI7j","columns-1":"grid-module_columns-1__ISyE5","columns-2":"grid-module_columns-2__nAJXX","columns-3":"grid-module_columns-3__jSanv","columns-4":"grid-module_columns-4__TPrmV","gap-xs":"grid-module_gap-xs__jJXAg","gap-sm":"grid-module_gap-sm__lSOTF","gap-md":"grid-module_gap-md__d44tx","gap-lg":"grid-module_gap-lg__QxI9L","gap-xl":"grid-module_gap-xl__0VXE9","gapX-xs":"grid-module_gapX-xs__vCzot","gapX-sm":"grid-module_gapX-sm__3p68N","gapX-md":"grid-module_gapX-md__JPO3S","gapX-lg":"grid-module_gapX-lg__qFCBX","gapX-xl":"grid-module_gapX-xl__J141F","gapY-xs":"grid-module_gapY-xs__yx6Mm","gapY-sm":"grid-module_gapY-sm__uopNl","gapY-md":"grid-module_gapY-md__4XBeo","gapY-lg":"grid-module_gapY-lg__QrF6Z","gapY-xl":"grid-module_gapY-xl__Y6SHF"};
|
|
9236
9683
|
|
|
9237
|
-
const grid = cva(styles$
|
|
9684
|
+
const grid = cva(styles$l.grid, {
|
|
9238
9685
|
variants: {
|
|
9239
9686
|
align: {
|
|
9240
|
-
start: styles$
|
|
9241
|
-
center: styles$
|
|
9242
|
-
end: styles$
|
|
9243
|
-
stretch: styles$
|
|
9244
|
-
baseline: styles$
|
|
9687
|
+
start: styles$l["align-start"],
|
|
9688
|
+
center: styles$l["align-center"],
|
|
9689
|
+
end: styles$l["align-end"],
|
|
9690
|
+
stretch: styles$l["align-stretch"],
|
|
9691
|
+
baseline: styles$l["align-baseline"],
|
|
9245
9692
|
},
|
|
9246
9693
|
justify: {
|
|
9247
|
-
start: styles$
|
|
9248
|
-
center: styles$
|
|
9249
|
-
end: styles$
|
|
9250
|
-
between: styles$
|
|
9694
|
+
start: styles$l["justify-start"],
|
|
9695
|
+
center: styles$l["justify-center"],
|
|
9696
|
+
end: styles$l["justify-end"],
|
|
9697
|
+
between: styles$l["justify-between"],
|
|
9251
9698
|
},
|
|
9252
9699
|
flow: {
|
|
9253
|
-
row: styles$
|
|
9254
|
-
column: styles$
|
|
9255
|
-
dense: styles$
|
|
9256
|
-
rowDense: styles$
|
|
9257
|
-
columnDense: styles$
|
|
9700
|
+
row: styles$l["flow-row"],
|
|
9701
|
+
column: styles$l["flow-column"],
|
|
9702
|
+
dense: styles$l["flow-dense"],
|
|
9703
|
+
rowDense: styles$l["flow-rowDense"],
|
|
9704
|
+
columnDense: styles$l["flow-columnDense"],
|
|
9258
9705
|
},
|
|
9259
9706
|
columns: {
|
|
9260
|
-
1: styles$
|
|
9261
|
-
2: styles$
|
|
9262
|
-
3: styles$
|
|
9263
|
-
4: styles$
|
|
9707
|
+
1: styles$l["columns-1"],
|
|
9708
|
+
2: styles$l["columns-2"],
|
|
9709
|
+
3: styles$l["columns-3"],
|
|
9710
|
+
4: styles$l["columns-4"],
|
|
9264
9711
|
},
|
|
9265
9712
|
gap: {
|
|
9266
|
-
"extra-small": styles$
|
|
9267
|
-
small: styles$
|
|
9268
|
-
medium: styles$
|
|
9269
|
-
large: styles$
|
|
9270
|
-
"extra-large": styles$
|
|
9713
|
+
"extra-small": styles$l["gap-xs"],
|
|
9714
|
+
small: styles$l["gap-sm"],
|
|
9715
|
+
medium: styles$l["gap-md"],
|
|
9716
|
+
large: styles$l["gap-lg"],
|
|
9717
|
+
"extra-large": styles$l["gap-xl"],
|
|
9271
9718
|
},
|
|
9272
9719
|
gapX: {
|
|
9273
|
-
"extra-small": styles$
|
|
9274
|
-
small: styles$
|
|
9275
|
-
medium: styles$
|
|
9276
|
-
large: styles$
|
|
9277
|
-
"extra-large": styles$
|
|
9720
|
+
"extra-small": styles$l["gapX-xs"],
|
|
9721
|
+
small: styles$l["gapX-sm"],
|
|
9722
|
+
medium: styles$l["gapX-md"],
|
|
9723
|
+
large: styles$l["gapX-lg"],
|
|
9724
|
+
"extra-large": styles$l["gapX-xl"],
|
|
9278
9725
|
},
|
|
9279
9726
|
gapY: {
|
|
9280
|
-
"extra-small": styles$
|
|
9281
|
-
small: styles$
|
|
9282
|
-
medium: styles$
|
|
9283
|
-
large: styles$
|
|
9284
|
-
"extra-large": styles$
|
|
9727
|
+
"extra-small": styles$l["gapY-xs"],
|
|
9728
|
+
small: styles$l["gapY-sm"],
|
|
9729
|
+
medium: styles$l["gapY-md"],
|
|
9730
|
+
large: styles$l["gapY-lg"],
|
|
9731
|
+
"extra-large": styles$l["gapY-xl"],
|
|
9285
9732
|
},
|
|
9286
9733
|
},
|
|
9287
9734
|
});
|
|
@@ -9298,28 +9745,28 @@ function Grid({ children, align, justify, flow, columns, gap, gapX, gapY, classN
|
|
|
9298
9745
|
}), ...props, children: children }));
|
|
9299
9746
|
}
|
|
9300
9747
|
|
|
9301
|
-
var styles$
|
|
9748
|
+
var styles$k = {"image":"image-module_image__KDN-Q"};
|
|
9302
9749
|
|
|
9303
|
-
const image = cva(styles$
|
|
9750
|
+
const image = cva(styles$k.image);
|
|
9304
9751
|
function Image({ alt, children, className, ...props }) {
|
|
9305
9752
|
return jsxRuntimeExports.jsx("img", { alt: alt, className: image({ className }), ...props });
|
|
9306
9753
|
}
|
|
9307
9754
|
|
|
9308
|
-
var styles$
|
|
9755
|
+
var styles$j = {"textfield":"inputfield-module_textfield__l6K73","textfield-sm":"inputfield-module_textfield-sm__QTt1x","textfield-md":"inputfield-module_textfield-md__pQWpW","textfield-invlid":"inputfield-module_textfield-invlid__lcwL-","textfield-valid":"inputfield-module_textfield-valid__euwnE","bold":"inputfield-module_bold__MzkDx"};
|
|
9309
9756
|
|
|
9310
9757
|
const InputField = ({ label, children, ...props }) => {
|
|
9311
|
-
return (jsxRuntimeExports.jsxs(Flex, { direction: "column", gap: "extra-small", ...props, children: [label && jsxRuntimeExports.jsx(Label, { className: styles$
|
|
9758
|
+
return (jsxRuntimeExports.jsxs(Flex, { direction: "column", gap: "extra-small", ...props, children: [label && jsxRuntimeExports.jsx(Label, { className: styles$j.bold, children: label }), children] }));
|
|
9312
9759
|
};
|
|
9313
9760
|
InputField.displayName = "InputField";
|
|
9314
9761
|
|
|
9315
|
-
var styles$
|
|
9762
|
+
var styles$i = {"link":"link-module_link__3Pld2","link-small":"link-module_link-small__Upo0u","link-medium":"link-module_link-medium__gh8td","link-large":"link-module_link-large__XJuuy"};
|
|
9316
9763
|
|
|
9317
|
-
const link = cva(styles$
|
|
9764
|
+
const link = cva(styles$i.link, {
|
|
9318
9765
|
variants: {
|
|
9319
9766
|
size: {
|
|
9320
|
-
small: styles$
|
|
9321
|
-
medium: styles$
|
|
9322
|
-
large: styles$
|
|
9767
|
+
small: styles$i["link-small"],
|
|
9768
|
+
medium: styles$i["link-medium"],
|
|
9769
|
+
large: styles$i["link-large"],
|
|
9323
9770
|
},
|
|
9324
9771
|
},
|
|
9325
9772
|
defaultVariants: {
|
|
@@ -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,
|
|
@@ -9542,9 +9989,9 @@ const $cb5cc270b50c6fcd$export$41fb9f06171c75f4 = $cb5cc270b50c6fcd$export$7dacb
|
|
|
9542
9989
|
const $cb5cc270b50c6fcd$export$602eac185826482c = $cb5cc270b50c6fcd$export$dd679ffb4362d2d4;
|
|
9543
9990
|
const $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2 = $cb5cc270b50c6fcd$export$d7e1f420b25549ff;
|
|
9544
9991
|
|
|
9545
|
-
var styles$
|
|
9992
|
+
var styles$h = {"popover":"popover-module_popover__Jh8Hg"};
|
|
9546
9993
|
|
|
9547
|
-
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => (jsxRuntimeExports.jsx($cb5cc270b50c6fcd$export$602eac185826482c, { children: jsxRuntimeExports.jsx($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, { ref: ref, align: align, sideOffset: sideOffset, className: styles$
|
|
9994
|
+
const PopoverContent = React.forwardRef(({ className, align = "center", sideOffset = 4, ...props }, ref) => (jsxRuntimeExports.jsx($cb5cc270b50c6fcd$export$602eac185826482c, { children: jsxRuntimeExports.jsx($cb5cc270b50c6fcd$export$7c6e2c02157bb7d2, { ref: ref, align: align, sideOffset: sideOffset, className: styles$h.popover, ...props }) })));
|
|
9548
9995
|
PopoverContent.displayName = $cb5cc270b50c6fcd$export$7c6e2c02157bb7d2.displayName;
|
|
9549
9996
|
const Popover = Object.assign($cb5cc270b50c6fcd$export$be92b6f5f03c0fe9, {
|
|
9550
9997
|
Trigger: $cb5cc270b50c6fcd$export$41fb9f06171c75f4,
|
|
@@ -9773,14 +10220,14 @@ const $f99a8c78507165f7$export$5fb54c671a65c88 = /*#__PURE__*/ React.forwardRef(
|
|
|
9773
10220
|
const $f99a8c78507165f7$export$6d08773d2e66f8f2 = $f99a8c78507165f7$export$9f866c100ef519e4;
|
|
9774
10221
|
const $f99a8c78507165f7$export$adb584737d712b70 = $f99a8c78507165f7$export$5fb54c671a65c88;
|
|
9775
10222
|
|
|
9776
|
-
var styles$
|
|
10223
|
+
var styles$g = {"radio":"radio-module_radio__1Ae19","radioitem":"radio-module_radioitem__YBUvA","radioitem-small":"radio-module_radioitem-small__Zxov0","radioitem-medium":"radio-module_radioitem-medium__Ink3A","indicator":"radio-module_indicator__0p3px"};
|
|
9777
10224
|
|
|
9778
|
-
const RedioRoot = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($f99a8c78507165f7$export$be92b6f5f03c0fe9, { ref: ref, className: styles$
|
|
9779
|
-
const radioItem = cva(styles$
|
|
10225
|
+
const RedioRoot = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($f99a8c78507165f7$export$be92b6f5f03c0fe9, { ref: ref, className: styles$g.radio, ...props })));
|
|
10226
|
+
const radioItem = cva(styles$g.radioitem, {
|
|
9780
10227
|
variants: {
|
|
9781
10228
|
size: {
|
|
9782
|
-
small: styles$
|
|
9783
|
-
medium: styles$
|
|
10229
|
+
small: styles$g["radioitem-small"],
|
|
10230
|
+
medium: styles$g["radioitem-medium"],
|
|
9784
10231
|
},
|
|
9785
10232
|
},
|
|
9786
10233
|
defaultVariants: {
|
|
@@ -9788,7 +10235,7 @@ const radioItem = cva(styles$f.radioitem, {
|
|
|
9788
10235
|
},
|
|
9789
10236
|
});
|
|
9790
10237
|
const RadioItem = React.forwardRef(({ className, size, ...props }, forwardedRef) => (jsxRuntimeExports.jsx($f99a8c78507165f7$export$6d08773d2e66f8f2, { ...props, ref: forwardedRef, className: radioItem({ size, className }), children: jsxRuntimeExports.jsx(Indicator, {}) })));
|
|
9791
|
-
const indicator = cva(styles$
|
|
10238
|
+
const indicator = cva(styles$g.indicator);
|
|
9792
10239
|
const Indicator = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($f99a8c78507165f7$export$adb584737d712b70, { ref: ref, className: indicator({ className }), ...props })));
|
|
9793
10240
|
Indicator.displayName = $f99a8c78507165f7$export$adb584737d712b70.displayName;
|
|
9794
10241
|
const Radio = Object.assign(RedioRoot, {
|
|
@@ -16899,16 +17346,18 @@ var StateManagedSelect = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
16899
17346
|
});
|
|
16900
17347
|
var StateManagedSelect$1 = StateManagedSelect;
|
|
16901
17348
|
|
|
16902
|
-
var styles$
|
|
17349
|
+
var styles$f = {"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
|
-
const select = cva(styles$
|
|
17351
|
+
const select = cva(styles$f.select);
|
|
16905
17352
|
const classNames = {
|
|
16906
|
-
control: () => cx(styles$
|
|
16907
|
-
option: () => cx(styles$
|
|
16908
|
-
input: () => cx(styles$
|
|
16909
|
-
|
|
16910
|
-
|
|
16911
|
-
|
|
17353
|
+
control: () => cx(styles$f.control),
|
|
17354
|
+
option: () => cx(styles$f.option),
|
|
17355
|
+
input: () => cx(styles$f.input, {
|
|
17356
|
+
isSelected: () => cx(styles$f.isSelected),
|
|
17357
|
+
}),
|
|
17358
|
+
placeholder: () => cx(styles$f.placeholder),
|
|
17359
|
+
singleValue: () => cx(styles$f.singleValue),
|
|
17360
|
+
indicatorsContainer: () => cx(styles$f.indicatorsContainer),
|
|
16912
17361
|
};
|
|
16913
17362
|
const RSelect = React.forwardRef(({ className, ...props }, ref) => {
|
|
16914
17363
|
return (jsxRuntimeExports.jsx(StateManagedSelect$1, { className: select({ className }), ref: ref, ...props, classNames: classNames, components: {
|
|
@@ -17676,13 +18125,13 @@ function $57acba87d6e25586$var$useResizeObserver(element, onResize) {
|
|
|
17676
18125
|
const $57acba87d6e25586$export$d5c6c08dc2d3ca7 = $57acba87d6e25586$export$a21cbf9f11fca853;
|
|
17677
18126
|
const $57acba87d6e25586$export$ac61190d9fc311a9 = $57acba87d6e25586$export$56969d565df7cc4b;
|
|
17678
18127
|
|
|
17679
|
-
var styles$
|
|
18128
|
+
var styles$e = {"area":"scrollarea-module_area__bE9YJ","scrollbar":"scrollarea-module_scrollbar__mhtIe","scrollbarthumb":"scrollarea-module_scrollbarthumb__yIc25"};
|
|
17680
18129
|
|
|
17681
|
-
const area = cva(styles$
|
|
18130
|
+
const area = cva(styles$e.area);
|
|
17682
18131
|
const ScrollArea = React__namespace.forwardRef(({ className, children, ...props }, ref) => (jsxRuntimeExports.jsxs($57acba87d6e25586$export$be92b6f5f03c0fe9, { ref: ref, className: area({ className }), ...props, children: [jsxRuntimeExports.jsx($57acba87d6e25586$export$d5c6c08dc2d3ca7, { style: { height: "100%", width: "100%" }, children: children }), jsxRuntimeExports.jsx(ScrollBar, {}), jsxRuntimeExports.jsx($57acba87d6e25586$export$ac61190d9fc311a9, {})] })));
|
|
17683
18132
|
ScrollArea.displayName = $57acba87d6e25586$export$be92b6f5f03c0fe9.displayName;
|
|
17684
|
-
const scrollbar = cva(styles$
|
|
17685
|
-
const ScrollBar = React__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => (jsxRuntimeExports.jsx($57acba87d6e25586$export$2fabd85d0eba3c57, { ref: ref, orientation: orientation, className: scrollbar({ className }), ...props, children: jsxRuntimeExports.jsx($57acba87d6e25586$export$9fba1154677d7cd2, { className: styles$
|
|
18133
|
+
const scrollbar = cva(styles$e.scrollbar);
|
|
18134
|
+
const ScrollBar = React__namespace.forwardRef(({ className, orientation = "vertical", ...props }, ref) => (jsxRuntimeExports.jsx($57acba87d6e25586$export$2fabd85d0eba3c57, { ref: ref, orientation: orientation, className: scrollbar({ className }), ...props, children: jsxRuntimeExports.jsx($57acba87d6e25586$export$9fba1154677d7cd2, { className: styles$e.scrollbarthumb }) })));
|
|
17686
18135
|
ScrollBar.displayName = $57acba87d6e25586$export$2fabd85d0eba3c57.displayName;
|
|
17687
18136
|
|
|
17688
18137
|
const $ea1ef594cf570d83$export$439d29a4e110a164 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
@@ -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);
|
|
@@ -18799,21 +19248,21 @@ const $cc7e05a45900e73f$export$c3468e2714d175fa = $cc7e05a45900e73f$export$6b919
|
|
|
18799
19248
|
const $cc7e05a45900e73f$export$bf1aedc3039c8d63 = $cc7e05a45900e73f$export$ff951e476c12189;
|
|
18800
19249
|
const $cc7e05a45900e73f$export$1ff3c3f08ae963c0 = $cc7e05a45900e73f$export$eba4b1df07cb1d3;
|
|
18801
19250
|
|
|
18802
|
-
var styles$
|
|
19251
|
+
var styles$d = {"content":"select-module_content__X0QJ-","menuitem":"select-module_menuitem__DfVEU","menuitemIndicatorWapper":"select-module_menuitemIndicatorWapper__TZDvz","label":"select-module_label__4I1Se","separator":"select-module_separator__2UBNd","menugroup":"select-module_menugroup__zJbzr","trigger":"select-module_trigger__1tSaG","triggerIcon":"select-module_triggerIcon__iaoZ3"};
|
|
18803
19252
|
|
|
18804
|
-
const trigger$1 = cva(styles$
|
|
18805
|
-
const SelectTrigger = React__namespace.forwardRef(({ className, children, ...props }, ref) => (jsxRuntimeExports.jsxs($cc7e05a45900e73f$export$41fb9f06171c75f4, { ref: ref, className: trigger$1({ className }), ...props, children: [children, jsxRuntimeExports.jsx($cc7e05a45900e73f$export$f04a61298a47a40f, { asChild: true, children: jsxRuntimeExports.jsx(ChevronDownIcon, { className: styles$
|
|
19253
|
+
const trigger$1 = cva(styles$d.trigger);
|
|
19254
|
+
const SelectTrigger = React__namespace.forwardRef(({ className, children, ...props }, ref) => (jsxRuntimeExports.jsxs($cc7e05a45900e73f$export$41fb9f06171c75f4, { ref: ref, className: trigger$1({ className }), ...props, children: [children, jsxRuntimeExports.jsx($cc7e05a45900e73f$export$f04a61298a47a40f, { asChild: true, children: jsxRuntimeExports.jsx(ChevronDownIcon, { className: styles$d.triggerIcon }) })] })));
|
|
18806
19255
|
SelectTrigger.displayName = $cc7e05a45900e73f$export$41fb9f06171c75f4.displayName;
|
|
18807
|
-
const content$1 = cva(styles$
|
|
19256
|
+
const content$1 = cva(styles$d.content);
|
|
18808
19257
|
const SelectContent = React__namespace.forwardRef(({ className, children, position = "popper", ...props }, ref) => (jsxRuntimeExports.jsx($cc7e05a45900e73f$export$602eac185826482c, { children: jsxRuntimeExports.jsx($cc7e05a45900e73f$export$7c6e2c02157bb7d2, { ref: ref, className: content$1({ className }), position: position, ...props, children: children }) })));
|
|
18809
19258
|
SelectContent.displayName = $cc7e05a45900e73f$export$7c6e2c02157bb7d2.displayName;
|
|
18810
|
-
const label = cva(styles$
|
|
19259
|
+
const label = cva(styles$d.label);
|
|
18811
19260
|
const SelectLabel = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($cc7e05a45900e73f$export$b04be29aa201d4f5, { ref: ref, className: label({ className }), ...props })));
|
|
18812
19261
|
SelectLabel.displayName = $cc7e05a45900e73f$export$b04be29aa201d4f5.displayName;
|
|
18813
|
-
const menuitem = cva(styles$
|
|
18814
|
-
const SelectItem = React__namespace.forwardRef(({ className, children, ...props }, ref) => (jsxRuntimeExports.jsxs($cc7e05a45900e73f$export$6d08773d2e66f8f2, { ref: ref, className: menuitem({ className }), ...props, children: [jsxRuntimeExports.jsx($cc7e05a45900e73f$export$d6e5bf9c43ea9319, { children: children }), jsxRuntimeExports.jsx("span", { className: styles$
|
|
19262
|
+
const menuitem = cva(styles$d.menuitem);
|
|
19263
|
+
const SelectItem = React__namespace.forwardRef(({ className, children, ...props }, ref) => (jsxRuntimeExports.jsxs($cc7e05a45900e73f$export$6d08773d2e66f8f2, { ref: ref, className: menuitem({ className }), ...props, children: [jsxRuntimeExports.jsx($cc7e05a45900e73f$export$d6e5bf9c43ea9319, { children: children }), jsxRuntimeExports.jsx("span", { className: styles$d.menuitemIndicatorWapper, children: jsxRuntimeExports.jsx($cc7e05a45900e73f$export$c3468e2714d175fa, { children: jsxRuntimeExports.jsx(CheckIcon, { style: { width: "16px", height: "16px" } }) }) })] })));
|
|
18815
19264
|
SelectItem.displayName = $cc7e05a45900e73f$export$6d08773d2e66f8f2.displayName;
|
|
18816
|
-
const separator$1 = cva(styles$
|
|
19265
|
+
const separator$1 = cva(styles$d.separator);
|
|
18817
19266
|
const SelectSeparator = React__namespace.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($cc7e05a45900e73f$export$1ff3c3f08ae963c0, { ref: ref, className: separator$1({ className }), ...props })));
|
|
18818
19267
|
SelectSeparator.displayName = $cc7e05a45900e73f$export$1ff3c3f08ae963c0.displayName;
|
|
18819
19268
|
const Select = Object.assign($cc7e05a45900e73f$export$be92b6f5f03c0fe9, {
|
|
@@ -18871,14 +19320,14 @@ function $89eedd556c436f6a$var$isValidOrientation(orientation) {
|
|
|
18871
19320
|
}
|
|
18872
19321
|
const $89eedd556c436f6a$export$be92b6f5f03c0fe9 = $89eedd556c436f6a$export$1ff3c3f08ae963c0;
|
|
18873
19322
|
|
|
18874
|
-
var styles$
|
|
19323
|
+
var styles$c = {"separator":"separator-module_separator__uHK4y","separator-small":"separator-module_separator-small__-IkL9","separator-half":"separator-module_separator-half__IdLEw","separator-full":"separator-module_separator-full__hFgYp"};
|
|
18875
19324
|
|
|
18876
|
-
const separator = cva(styles$
|
|
19325
|
+
const separator = cva(styles$c.separator, {
|
|
18877
19326
|
variants: {
|
|
18878
19327
|
size: {
|
|
18879
|
-
small: styles$
|
|
18880
|
-
half: styles$
|
|
18881
|
-
full: styles$
|
|
19328
|
+
small: styles$c["separator-half"],
|
|
19329
|
+
half: styles$c["separator-half"],
|
|
19330
|
+
full: styles$c["separator-full"],
|
|
18882
19331
|
},
|
|
18883
19332
|
},
|
|
18884
19333
|
defaultVariants: {
|
|
@@ -18889,15 +19338,15 @@ function Separator({ children, size, className, ...props }) {
|
|
|
18889
19338
|
return (jsxRuntimeExports.jsx($89eedd556c436f6a$export$be92b6f5f03c0fe9, { decorative: true, className: separator({ size, className }), ...props }));
|
|
18890
19339
|
}
|
|
18891
19340
|
|
|
18892
|
-
var styles$
|
|
19341
|
+
var styles$b = {"sheetContent":"sheet-module_sheetContent__51SVy","fadeIn":"sheet-module_fadeIn__CNcbj","fadeOut":"sheet-module_fadeOut__xODyX","sheetContent-top":"sheet-module_sheetContent-top__wdxh2","sheetContent-bottom":"sheet-module_sheetContent-bottom__y1sD3","sheetContent-right":"sheet-module_sheetContent-right__Qt-b0","sheetContent-left":"sheet-module_sheetContent-left__lC4Kn","overlay":"sheet-module_overlay__30Ve-","close":"sheet-module_close__g6uoQ"};
|
|
18893
19342
|
|
|
18894
|
-
const sheetContent = cva(styles$
|
|
19343
|
+
const sheetContent = cva(styles$b.sheetContent, {
|
|
18895
19344
|
variants: {
|
|
18896
19345
|
side: {
|
|
18897
|
-
top: styles$
|
|
18898
|
-
bottom: styles$
|
|
18899
|
-
left: styles$
|
|
18900
|
-
right: styles$
|
|
19346
|
+
top: styles$b["sheetContent-top"],
|
|
19347
|
+
bottom: styles$b["sheetContent-bottom"],
|
|
19348
|
+
left: styles$b["sheetContent-left"],
|
|
19349
|
+
right: styles$b["sheetContent-right"],
|
|
18901
19350
|
},
|
|
18902
19351
|
},
|
|
18903
19352
|
defaultVariants: {
|
|
@@ -18907,10 +19356,10 @@ const sheetContent = cva(styles$a.sheetContent, {
|
|
|
18907
19356
|
const SheetContent = React.forwardRef(({ className, children, close, side, ...props }, forwardedRef) => {
|
|
18908
19357
|
return (jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$602eac185826482c, { children: [jsxRuntimeExports.jsx(Overlay, {}), jsxRuntimeExports.jsxs($5d3850c4d0b4e6c7$export$7c6e2c02157bb7d2, { ...props, ref: forwardedRef, className: sheetContent({ side, className }), children: [children, close && (jsxRuntimeExports.jsx(CloseButton, { children: jsxRuntimeExports.jsx(Cross1Icon, {}) }))] })] }));
|
|
18909
19358
|
});
|
|
18910
|
-
const overlay = cva(styles$
|
|
19359
|
+
const overlay = cva(styles$b.overlay);
|
|
18911
19360
|
const Overlay = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$c6fdb837b070b4ff, { ref: ref, className: overlay({ className }), ...props })));
|
|
18912
19361
|
Overlay.displayName = $5d3850c4d0b4e6c7$export$c6fdb837b070b4ff.displayName;
|
|
18913
|
-
const close = cva(styles$
|
|
19362
|
+
const close = cva(styles$b.close);
|
|
18914
19363
|
function CloseButton({ children, className, ...props }) {
|
|
18915
19364
|
return (jsxRuntimeExports.jsx($5d3850c4d0b4e6c7$export$f39c2d165cd861fe, { className: close({ className }), ...props, children: children }));
|
|
18916
19365
|
}
|
|
@@ -18925,21 +19374,21 @@ const Sheet = Object.assign(RootSheet, {
|
|
|
18925
19374
|
Description: $5d3850c4d0b4e6c7$export$393edc798c47379d,
|
|
18926
19375
|
});
|
|
18927
19376
|
|
|
18928
|
-
var styles$
|
|
19377
|
+
var styles$a = {"text":"text-module_text__1E39C","text-1":"text-module_text-1__ZIYnD","text-2":"text-module_text-2__vhka2","text-3":"text-module_text-3__WhApV","text-4":"text-module_text-4__I4KCY","text-5":"text-module_text-5__5i6jy","text-6":"text-module_text-6__vn534","text-7":"text-module_text-7__5stey","text-8":"text-module_text-8__J--5n","text-9":"text-module_text-9__guv-W","text-10":"text-module_text-10__OdU-l"};
|
|
18929
19378
|
|
|
18930
|
-
const text$1 = cva(styles$
|
|
19379
|
+
const text$1 = cva(styles$a.text, {
|
|
18931
19380
|
variants: {
|
|
18932
19381
|
size: {
|
|
18933
|
-
1: styles$
|
|
18934
|
-
2: styles$
|
|
18935
|
-
3: styles$
|
|
18936
|
-
4: styles$
|
|
18937
|
-
5: styles$
|
|
18938
|
-
6: styles$
|
|
18939
|
-
7: styles$
|
|
18940
|
-
8: styles$
|
|
18941
|
-
9: styles$
|
|
18942
|
-
10: styles$
|
|
19382
|
+
1: styles$a["text-1"],
|
|
19383
|
+
2: styles$a["text-2"],
|
|
19384
|
+
3: styles$a["text-3"],
|
|
19385
|
+
4: styles$a["text-4"],
|
|
19386
|
+
5: styles$a["text-5"],
|
|
19387
|
+
6: styles$a["text-6"],
|
|
19388
|
+
7: styles$a["text-7"],
|
|
19389
|
+
8: styles$a["text-8"],
|
|
19390
|
+
9: styles$a["text-9"],
|
|
19391
|
+
10: styles$a["text-10"],
|
|
18943
19392
|
},
|
|
18944
19393
|
},
|
|
18945
19394
|
defaultVariants: {
|
|
@@ -18950,35 +19399,35 @@ 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$
|
|
19402
|
+
var styles$9 = {"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$
|
|
19404
|
+
const SidebarRoot = ({ children, ...props }) => {
|
|
19405
|
+
return (jsxRuntimeExports.jsx(Flex, { direction: "column", justify: "between", className: styles$9.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,
|
|
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$9.logo, children: name })] }));
|
|
18960
19409
|
};
|
|
18961
19410
|
const SidebarNavigations = ({ children, ...props }) => {
|
|
18962
|
-
return (jsxRuntimeExports.jsx(Flex, { direction: "column",
|
|
19411
|
+
return (jsxRuntimeExports.jsx(Flex, { direction: "column", gap: "extra-small", ...props, children: children }));
|
|
18963
19412
|
};
|
|
18964
19413
|
const SidebarNavigationsGroup = ({ icon, name, children, ...props }) => {
|
|
18965
|
-
return (jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$
|
|
19414
|
+
return (jsxRuntimeExports.jsxs(Flex, { direction: "column", className: styles$9.navigationgroup, ...props, children: [jsxRuntimeExports.jsxs(Flex, { className: styles$9.navigationgroupheading, children: [icon && icon, jsxRuntimeExports.jsx(Text, { size: 2, style: { color: "var(--foreground-muted)" }, children: name })] }), jsxRuntimeExports.jsx(Flex, { direction: "column", className: styles$9.navigationgroupcontent, children: children })] }));
|
|
18966
19415
|
};
|
|
18967
|
-
const cell$1 = cva(styles$
|
|
19416
|
+
const cell$1 = cva(styles$9.cell, {
|
|
18968
19417
|
variants: {
|
|
18969
19418
|
active: {
|
|
18970
|
-
true: styles$
|
|
19419
|
+
true: styles$9.active,
|
|
18971
19420
|
},
|
|
18972
19421
|
disabled: {
|
|
18973
|
-
true: styles$
|
|
19422
|
+
true: styles$9.disabled,
|
|
18974
19423
|
},
|
|
18975
19424
|
},
|
|
18976
19425
|
});
|
|
18977
19426
|
const SidebarNavigationCell = ({ leadingIcon, trailingIcon, active, disabled, children, asChild = false, ...props }) => {
|
|
18978
|
-
return (jsxRuntimeExports.jsx(Flex, { className: cell$1({ active, disabled }), ...props, children: asChild ? (children) : (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(Flex, { gap: "small", children: [leadingIcon, jsxRuntimeExports.jsx(Text, { className: styles$
|
|
19427
|
+
return (jsxRuntimeExports.jsx(Flex, { className: cell$1({ active, disabled }), ...props, children: asChild ? (children) : (jsxRuntimeExports.jsxs(jsxRuntimeExports.Fragment, { children: [jsxRuntimeExports.jsxs(Flex, { gap: "small", children: [leadingIcon, jsxRuntimeExports.jsx(Text, { className: styles$9.cellText, children: children })] }), trailingIcon] })) }));
|
|
18979
19428
|
};
|
|
18980
19429
|
const SidebarFooter = ({ children, action }) => {
|
|
18981
|
-
return (jsxRuntimeExports.jsxs(Flex, { className: styles$
|
|
19430
|
+
return (jsxRuntimeExports.jsxs(Flex, { className: styles$9.footer, gap: "small", justify: "between", children: [jsxRuntimeExports.jsx(Text, { children: children }), action] }));
|
|
18982
19431
|
};
|
|
18983
19432
|
const Sidebar = Object.assign(SidebarRoot, {
|
|
18984
19433
|
Logo: SidebarLogo,
|
|
@@ -19102,11 +19551,11 @@ function $6be4966fd9bbc698$var$getState(checked) {
|
|
|
19102
19551
|
const $6be4966fd9bbc698$export$be92b6f5f03c0fe9 = $6be4966fd9bbc698$export$b5d5cf8927ab7262;
|
|
19103
19552
|
const $6be4966fd9bbc698$export$6521433ed15a34db = $6be4966fd9bbc698$export$4d07bf653ea69106;
|
|
19104
19553
|
|
|
19105
|
-
var styles$
|
|
19554
|
+
var styles$8 = {"switch":"switch-module_switch__glH7j","thumb":"switch-module_thumb__b4Y8H"};
|
|
19106
19555
|
|
|
19107
|
-
const switchVariants = cva(styles$
|
|
19556
|
+
const switchVariants = cva(styles$8.switch);
|
|
19108
19557
|
const Switch = React.forwardRef(({ className, ...props }, forwardedRef) => (jsxRuntimeExports.jsx($6be4966fd9bbc698$export$be92b6f5f03c0fe9, { ...props, ref: forwardedRef, className: switchVariants({ className }), children: jsxRuntimeExports.jsx(SwitchThumb, {}) })));
|
|
19109
|
-
const thumb = cva(styles$
|
|
19558
|
+
const thumb = cva(styles$8.thumb);
|
|
19110
19559
|
const SwitchThumb = React.forwardRef(({ className, ...props }, ref) => (jsxRuntimeExports.jsx($6be4966fd9bbc698$export$6521433ed15a34db, { ref: ref, className: thumb({ className }), ...props })));
|
|
19111
19560
|
SwitchThumb.displayName = $6be4966fd9bbc698$export$6521433ed15a34db.displayName;
|
|
19112
19561
|
|
|
@@ -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;
|
|
@@ -20087,11 +20536,196 @@ const $a093c7e1ec25a057$export$41fb9f06171c75f4 = $a093c7e1ec25a057$export$8c610
|
|
|
20087
20536
|
const $a093c7e1ec25a057$export$602eac185826482c = $a093c7e1ec25a057$export$7b36b8f925ab7497;
|
|
20088
20537
|
const $a093c7e1ec25a057$export$7c6e2c02157bb7d2 = $a093c7e1ec25a057$export$e9003e2be37ec060;
|
|
20089
20538
|
|
|
20090
|
-
var styles$
|
|
20539
|
+
var styles$7 = {"trigger":"tooltip-module_trigger__-ySkn","content":"tooltip-module_content__SeE6X"};
|
|
20091
20540
|
|
|
20092
20541
|
const Tooltip = ({ children, message, disabled, side = "right", }) => {
|
|
20093
|
-
return disabled ? (children) : (jsxRuntimeExports.jsx($a093c7e1ec25a057$export$2881499e37b75b9a, { children: jsxRuntimeExports.jsxs($a093c7e1ec25a057$export$be92b6f5f03c0fe9, { disableHoverableContent: false, children: [jsxRuntimeExports.jsx($a093c7e1ec25a057$export$41fb9f06171c75f4, { asChild: true, children: jsxRuntimeExports.jsx("div", { className: styles$
|
|
20542
|
+
return disabled ? (children) : (jsxRuntimeExports.jsx($a093c7e1ec25a057$export$2881499e37b75b9a, { children: jsxRuntimeExports.jsxs($a093c7e1ec25a057$export$be92b6f5f03c0fe9, { disableHoverableContent: false, children: [jsxRuntimeExports.jsx($a093c7e1ec25a057$export$41fb9f06171c75f4, { asChild: true, children: jsxRuntimeExports.jsx("div", { className: styles$7.trigger, children: children }) }), jsxRuntimeExports.jsx($a093c7e1ec25a057$export$602eac185826482c, { children: jsxRuntimeExports.jsx($a093c7e1ec25a057$export$7c6e2c02157bb7d2, { side: side, sideOffset: 5, className: styles$7.content, children: typeof message === "string" ? jsxRuntimeExports.jsx(Text, { children: message }) : message }) })] }) }));
|
|
20543
|
+
};
|
|
20544
|
+
|
|
20545
|
+
const $b3bbe2732c13b576$export$bea8ebba691c5813 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
20546
|
+
const { pressed: pressedProp , defaultPressed: defaultPressed = false , onPressedChange: onPressedChange , ...buttonProps } = props;
|
|
20547
|
+
const [pressed = false, setPressed] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
|
|
20548
|
+
prop: pressedProp,
|
|
20549
|
+
onChange: onPressedChange,
|
|
20550
|
+
defaultProp: defaultPressed
|
|
20551
|
+
});
|
|
20552
|
+
return /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.button, _extends({
|
|
20553
|
+
type: "button",
|
|
20554
|
+
"aria-pressed": pressed,
|
|
20555
|
+
"data-state": pressed ? 'on' : 'off',
|
|
20556
|
+
"data-disabled": props.disabled ? '' : undefined
|
|
20557
|
+
}, buttonProps, {
|
|
20558
|
+
ref: forwardedRef,
|
|
20559
|
+
onClick: $e42e1063c40fb3ef$export$b9ecd428b558ff10$1(props.onClick, ()=>{
|
|
20560
|
+
if (!props.disabled) setPressed(!pressed);
|
|
20561
|
+
})
|
|
20562
|
+
}));
|
|
20563
|
+
});
|
|
20564
|
+
|
|
20565
|
+
/* -------------------------------------------------------------------------------------------------
|
|
20566
|
+
* ToggleGroup
|
|
20567
|
+
* -----------------------------------------------------------------------------------------------*/ const $6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME = 'ToggleGroup';
|
|
20568
|
+
const [$6c1fd9e6a8969628$var$createToggleGroupContext, $6c1fd9e6a8969628$export$d1c7c4bcd9f26dd4] = $c512c27ab02ef895$export$50c7b4e9d9f19c1$1($6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME, [
|
|
20569
|
+
$d7bdfb9eb0fdf311$export$c7109489551a4f4
|
|
20570
|
+
]);
|
|
20571
|
+
const $6c1fd9e6a8969628$var$useRovingFocusGroupScope = $d7bdfb9eb0fdf311$export$c7109489551a4f4();
|
|
20572
|
+
const $6c1fd9e6a8969628$export$af3ec21f6cfb5e30 = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
20573
|
+
const { type: type , ...toggleGroupProps } = props;
|
|
20574
|
+
if (type === 'single') {
|
|
20575
|
+
const singleProps = toggleGroupProps;
|
|
20576
|
+
return /*#__PURE__*/ React.createElement($6c1fd9e6a8969628$var$ToggleGroupImplSingle, _extends({}, singleProps, {
|
|
20577
|
+
ref: forwardedRef
|
|
20578
|
+
}));
|
|
20579
|
+
}
|
|
20580
|
+
if (type === 'multiple') {
|
|
20581
|
+
const multipleProps = toggleGroupProps;
|
|
20582
|
+
return /*#__PURE__*/ React.createElement($6c1fd9e6a8969628$var$ToggleGroupImplMultiple, _extends({}, multipleProps, {
|
|
20583
|
+
ref: forwardedRef
|
|
20584
|
+
}));
|
|
20585
|
+
}
|
|
20586
|
+
throw new Error(`Missing prop \`type\` expected on \`${$6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME}\``);
|
|
20587
|
+
});
|
|
20588
|
+
/* -----------------------------------------------------------------------------------------------*/ const [$6c1fd9e6a8969628$var$ToggleGroupValueProvider, $6c1fd9e6a8969628$var$useToggleGroupValueContext] = $6c1fd9e6a8969628$var$createToggleGroupContext($6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME);
|
|
20589
|
+
const $6c1fd9e6a8969628$var$ToggleGroupImplSingle = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
20590
|
+
const { value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange = ()=>{} , ...toggleGroupSingleProps } = props;
|
|
20591
|
+
const [value, setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
|
|
20592
|
+
prop: valueProp,
|
|
20593
|
+
defaultProp: defaultValue,
|
|
20594
|
+
onChange: onValueChange
|
|
20595
|
+
});
|
|
20596
|
+
return /*#__PURE__*/ React.createElement($6c1fd9e6a8969628$var$ToggleGroupValueProvider, {
|
|
20597
|
+
scope: props.__scopeToggleGroup,
|
|
20598
|
+
type: "single",
|
|
20599
|
+
value: value ? [
|
|
20600
|
+
value
|
|
20601
|
+
] : [],
|
|
20602
|
+
onItemActivate: setValue,
|
|
20603
|
+
onItemDeactivate: React.useCallback(()=>setValue('')
|
|
20604
|
+
, [
|
|
20605
|
+
setValue
|
|
20606
|
+
])
|
|
20607
|
+
}, /*#__PURE__*/ React.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, _extends({}, toggleGroupSingleProps, {
|
|
20608
|
+
ref: forwardedRef
|
|
20609
|
+
})));
|
|
20610
|
+
});
|
|
20611
|
+
const $6c1fd9e6a8969628$var$ToggleGroupImplMultiple = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
20612
|
+
const { value: valueProp , defaultValue: defaultValue , onValueChange: onValueChange = ()=>{} , ...toggleGroupMultipleProps } = props;
|
|
20613
|
+
const [value1 = [], setValue] = $71cd76cc60e0454e$export$6f32135080cb4c3$1({
|
|
20614
|
+
prop: valueProp,
|
|
20615
|
+
defaultProp: defaultValue,
|
|
20616
|
+
onChange: onValueChange
|
|
20617
|
+
});
|
|
20618
|
+
const handleButtonActivate = React.useCallback((itemValue)=>setValue((prevValue = [])=>[
|
|
20619
|
+
...prevValue,
|
|
20620
|
+
itemValue
|
|
20621
|
+
]
|
|
20622
|
+
)
|
|
20623
|
+
, [
|
|
20624
|
+
setValue
|
|
20625
|
+
]);
|
|
20626
|
+
const handleButtonDeactivate = React.useCallback((itemValue)=>setValue((prevValue = [])=>prevValue.filter((value)=>value !== itemValue
|
|
20627
|
+
)
|
|
20628
|
+
)
|
|
20629
|
+
, [
|
|
20630
|
+
setValue
|
|
20631
|
+
]);
|
|
20632
|
+
return /*#__PURE__*/ React.createElement($6c1fd9e6a8969628$var$ToggleGroupValueProvider, {
|
|
20633
|
+
scope: props.__scopeToggleGroup,
|
|
20634
|
+
type: "multiple",
|
|
20635
|
+
value: value1,
|
|
20636
|
+
onItemActivate: handleButtonActivate,
|
|
20637
|
+
onItemDeactivate: handleButtonDeactivate
|
|
20638
|
+
}, /*#__PURE__*/ React.createElement($6c1fd9e6a8969628$var$ToggleGroupImpl, _extends({}, toggleGroupMultipleProps, {
|
|
20639
|
+
ref: forwardedRef
|
|
20640
|
+
})));
|
|
20641
|
+
});
|
|
20642
|
+
/* -----------------------------------------------------------------------------------------------*/ const [$6c1fd9e6a8969628$var$ToggleGroupContext, $6c1fd9e6a8969628$var$useToggleGroupContext] = $6c1fd9e6a8969628$var$createToggleGroupContext($6c1fd9e6a8969628$var$TOGGLE_GROUP_NAME);
|
|
20643
|
+
const $6c1fd9e6a8969628$var$ToggleGroupImpl = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
20644
|
+
const { __scopeToggleGroup: __scopeToggleGroup , disabled: disabled = false , rovingFocus: rovingFocus = true , orientation: orientation , dir: dir , loop: loop = true , ...toggleGroupProps } = props;
|
|
20645
|
+
const rovingFocusGroupScope = $6c1fd9e6a8969628$var$useRovingFocusGroupScope(__scopeToggleGroup);
|
|
20646
|
+
const direction = $f631663db3294ace$export$b39126d51d94e6f3(dir);
|
|
20647
|
+
const commonProps = {
|
|
20648
|
+
role: 'group',
|
|
20649
|
+
dir: direction,
|
|
20650
|
+
...toggleGroupProps
|
|
20651
|
+
};
|
|
20652
|
+
return /*#__PURE__*/ React.createElement($6c1fd9e6a8969628$var$ToggleGroupContext, {
|
|
20653
|
+
scope: __scopeToggleGroup,
|
|
20654
|
+
rovingFocus: rovingFocus,
|
|
20655
|
+
disabled: disabled
|
|
20656
|
+
}, rovingFocus ? /*#__PURE__*/ React.createElement($d7bdfb9eb0fdf311$export$be92b6f5f03c0fe9, _extends({
|
|
20657
|
+
asChild: true
|
|
20658
|
+
}, rovingFocusGroupScope, {
|
|
20659
|
+
orientation: orientation,
|
|
20660
|
+
dir: direction,
|
|
20661
|
+
loop: loop
|
|
20662
|
+
}), /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({}, commonProps, {
|
|
20663
|
+
ref: forwardedRef
|
|
20664
|
+
}))) : /*#__PURE__*/ React.createElement($8927f6f2acc4f386$export$250ffa63cdc0d034$1.div, _extends({}, commonProps, {
|
|
20665
|
+
ref: forwardedRef
|
|
20666
|
+
})));
|
|
20667
|
+
});
|
|
20668
|
+
/* -------------------------------------------------------------------------------------------------
|
|
20669
|
+
* ToggleGroupItem
|
|
20670
|
+
* -----------------------------------------------------------------------------------------------*/ const $6c1fd9e6a8969628$var$ITEM_NAME = 'ToggleGroupItem';
|
|
20671
|
+
const $6c1fd9e6a8969628$export$b453109e13abe10b = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
20672
|
+
const valueContext = $6c1fd9e6a8969628$var$useToggleGroupValueContext($6c1fd9e6a8969628$var$ITEM_NAME, props.__scopeToggleGroup);
|
|
20673
|
+
const context = $6c1fd9e6a8969628$var$useToggleGroupContext($6c1fd9e6a8969628$var$ITEM_NAME, props.__scopeToggleGroup);
|
|
20674
|
+
const rovingFocusGroupScope = $6c1fd9e6a8969628$var$useRovingFocusGroupScope(props.__scopeToggleGroup);
|
|
20675
|
+
const pressed = valueContext.value.includes(props.value);
|
|
20676
|
+
const disabled = context.disabled || props.disabled;
|
|
20677
|
+
const commonProps = {
|
|
20678
|
+
...props,
|
|
20679
|
+
pressed: pressed,
|
|
20680
|
+
disabled: disabled
|
|
20681
|
+
};
|
|
20682
|
+
const ref = React.useRef(null);
|
|
20683
|
+
return context.rovingFocus ? /*#__PURE__*/ React.createElement($d7bdfb9eb0fdf311$export$6d08773d2e66f8f2, _extends({
|
|
20684
|
+
asChild: true
|
|
20685
|
+
}, rovingFocusGroupScope, {
|
|
20686
|
+
focusable: !disabled,
|
|
20687
|
+
active: pressed,
|
|
20688
|
+
ref: ref
|
|
20689
|
+
}), /*#__PURE__*/ React.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, _extends({}, commonProps, {
|
|
20690
|
+
ref: forwardedRef
|
|
20691
|
+
}))) : /*#__PURE__*/ React.createElement($6c1fd9e6a8969628$var$ToggleGroupItemImpl, _extends({}, commonProps, {
|
|
20692
|
+
ref: forwardedRef
|
|
20693
|
+
}));
|
|
20694
|
+
});
|
|
20695
|
+
/* -----------------------------------------------------------------------------------------------*/ const $6c1fd9e6a8969628$var$ToggleGroupItemImpl = /*#__PURE__*/ React.forwardRef((props, forwardedRef)=>{
|
|
20696
|
+
const { __scopeToggleGroup: __scopeToggleGroup , value: value , ...itemProps } = props;
|
|
20697
|
+
const valueContext = $6c1fd9e6a8969628$var$useToggleGroupValueContext($6c1fd9e6a8969628$var$ITEM_NAME, __scopeToggleGroup);
|
|
20698
|
+
const singleProps = {
|
|
20699
|
+
role: 'radio',
|
|
20700
|
+
'aria-checked': props.pressed,
|
|
20701
|
+
'aria-pressed': undefined
|
|
20702
|
+
};
|
|
20703
|
+
const typeProps = valueContext.type === 'single' ? singleProps : undefined;
|
|
20704
|
+
return /*#__PURE__*/ React.createElement($b3bbe2732c13b576$export$bea8ebba691c5813, _extends({}, typeProps, itemProps, {
|
|
20705
|
+
ref: forwardedRef,
|
|
20706
|
+
onPressedChange: (pressed)=>{
|
|
20707
|
+
if (pressed) valueContext.onItemActivate(value);
|
|
20708
|
+
else valueContext.onItemDeactivate(value);
|
|
20709
|
+
}
|
|
20710
|
+
}));
|
|
20711
|
+
});
|
|
20712
|
+
/* -----------------------------------------------------------------------------------------------*/ const $6c1fd9e6a8969628$export$be92b6f5f03c0fe9 = $6c1fd9e6a8969628$export$af3ec21f6cfb5e30;
|
|
20713
|
+
const $6c1fd9e6a8969628$export$6d08773d2e66f8f2 = $6c1fd9e6a8969628$export$b453109e13abe10b;
|
|
20714
|
+
|
|
20715
|
+
var styles$6 = {"root":"togglegroup-module_root__R0WF3","item":"togglegroup-module_item__02cpj"};
|
|
20716
|
+
|
|
20717
|
+
const root$1 = cva(styles$6.root);
|
|
20718
|
+
const ToggleGroupRoot = ({ className, ...props }) => {
|
|
20719
|
+
return (jsxRuntimeExports.jsx($6c1fd9e6a8969628$export$be92b6f5f03c0fe9, { className: root$1({ className }), ...props }));
|
|
20094
20720
|
};
|
|
20721
|
+
ToggleGroupRoot.defaultProps = { type: "single" };
|
|
20722
|
+
const item = cva(styles$6.item);
|
|
20723
|
+
const ToggleGroupItem = ({ className, ...props }) => {
|
|
20724
|
+
return (jsxRuntimeExports.jsx($6c1fd9e6a8969628$export$6d08773d2e66f8f2, { className: item({ className }), ...props }));
|
|
20725
|
+
};
|
|
20726
|
+
const ToggleGroup = Object.assign(ToggleGroupRoot, {
|
|
20727
|
+
Item: ToggleGroupItem,
|
|
20728
|
+
});
|
|
20095
20729
|
|
|
20096
20730
|
/**
|
|
20097
20731
|
* table-core
|
|
@@ -23596,7 +24230,7 @@ const TextField = React.forwardRef(({ leading, className, src, size, state, styl
|
|
|
23596
24230
|
});
|
|
23597
24231
|
TextField.displayName = "TextField";
|
|
23598
24232
|
|
|
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"};
|
|
24233
|
+
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
24234
|
|
|
23601
24235
|
const FilteredChip = ({ column }) => {
|
|
23602
24236
|
const { table, removeFilterColumn } = useTable();
|
|
@@ -23835,7 +24469,7 @@ const $69cb30bb0017df05$export$b2539bed5023c21c = /*#__PURE__*/ React.forwardRef
|
|
|
23835
24469
|
});
|
|
23836
24470
|
return /*#__PURE__*/ React.createElement($69cb30bb0017df05$var$TabsProvider, {
|
|
23837
24471
|
scope: __scopeTabs,
|
|
23838
|
-
baseId: $1746a345f3d73bb7$export$f680877a34711e37(),
|
|
24472
|
+
baseId: $1746a345f3d73bb7$export$f680877a34711e37$1(),
|
|
23839
24473
|
value: value,
|
|
23840
24474
|
onValueChange: setValue,
|
|
23841
24475
|
orientation: orientation,
|
|
@@ -24269,6 +24903,7 @@ function Title({ children, className, size, ...props }) {
|
|
|
24269
24903
|
return (jsxRuntimeExports.jsx("span", { className: title({ size, className }), ...props, children: children }));
|
|
24270
24904
|
}
|
|
24271
24905
|
|
|
24906
|
+
exports.Accordion = Accordion;
|
|
24272
24907
|
exports.Avatar = Avatar;
|
|
24273
24908
|
exports.Badge = badge$1;
|
|
24274
24909
|
exports.Body = Body;
|
|
@@ -24307,6 +24942,7 @@ exports.Textarea = Textarea;
|
|
|
24307
24942
|
exports.ThemeProvider = ThemeProvider;
|
|
24308
24943
|
exports.ThemeSwitcher = ThemeSwitcher;
|
|
24309
24944
|
exports.Title = Title;
|
|
24945
|
+
exports.ToggleGroup = ToggleGroup;
|
|
24310
24946
|
exports.Tooltip = Tooltip;
|
|
24311
24947
|
exports.useTable = useTable;
|
|
24312
24948
|
exports.useTheme = useTheme;
|