@parrot-co/parrot-ui 0.0.66 → 0.0.68
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/main.js +550 -137
- package/dist/main.js.map +1 -1
- package/dist/module.js +548 -141
- package/dist/module.js.map +1 -1
- package/dist/types.d.ts +8167 -43
- package/dist/types.d.ts.map +1 -1
- package/package.json +2 -2
package/dist/module.js
CHANGED
|
@@ -2,9 +2,9 @@ import {createStitches as $kF5Av$createStitches} from "@stitches/react";
|
|
|
2
2
|
import {gray as $kF5Av$gray, mauve as $kF5Av$mauve, slate as $kF5Av$slate, sage as $kF5Av$sage, olive as $kF5Av$olive, sand as $kF5Av$sand, tomato as $kF5Av$tomato, red as $kF5Av$red, crimson as $kF5Av$crimson, pink as $kF5Av$pink, plum as $kF5Av$plum, purple as $kF5Av$purple, violet as $kF5Av$violet, indigo as $kF5Av$indigo, blue as $kF5Av$blue, sky as $kF5Av$sky, mint as $kF5Av$mint, cyan as $kF5Av$cyan, teal as $kF5Av$teal, green as $kF5Av$green, grass as $kF5Av$grass, lime as $kF5Av$lime, yellow as $kF5Av$yellow, amber as $kF5Av$amber, orange as $kF5Av$orange, brown as $kF5Av$brown, bronze as $kF5Av$bronze, gold as $kF5Av$gold, grayA as $kF5Av$grayA, mauveA as $kF5Av$mauveA, slateA as $kF5Av$slateA, sageA as $kF5Av$sageA, oliveA as $kF5Av$oliveA, sandA as $kF5Av$sandA, tomatoA as $kF5Av$tomatoA, redA as $kF5Av$redA, crimsonA as $kF5Av$crimsonA, pinkA as $kF5Av$pinkA, plumA as $kF5Av$plumA, purpleA as $kF5Av$purpleA, violetA as $kF5Av$violetA, indigoA as $kF5Av$indigoA, blueA as $kF5Av$blueA, skyA as $kF5Av$skyA, mintA as $kF5Av$mintA, cyanA as $kF5Av$cyanA, tealA as $kF5Av$tealA, greenA as $kF5Av$greenA, grassA as $kF5Av$grassA, limeA as $kF5Av$limeA, yellowA as $kF5Av$yellowA, amberA as $kF5Av$amberA, orangeA as $kF5Av$orangeA, brownA as $kF5Av$brownA, bronzeA as $kF5Av$bronzeA, goldA as $kF5Av$goldA, whiteA as $kF5Av$whiteA, blackA as $kF5Av$blackA} from "@radix-ui/colors";
|
|
3
3
|
import {jsxs as $kF5Av$jsxs, jsx as $kF5Av$jsx, Fragment as $kF5Av$Fragment} from "react/jsx-runtime";
|
|
4
4
|
import $kF5Av$react, {forwardRef as $kF5Av$forwardRef, useRef as $kF5Av$useRef, useContext as $kF5Av$useContext, useMemo as $kF5Av$useMemo, useState as $kF5Av$useState, useEffect as $kF5Av$useEffect, cloneElement as $kF5Av$cloneElement} from "react";
|
|
5
|
-
import {useTextField as $kF5Av$useTextField, useLocale as $kF5Av$useLocale, useNumberField as $kF5Av$useNumberField, useButton as $kF5Av$useButton, useCheckbox as $kF5Av$useCheckbox, useCheckboxGroupItem as $kF5Av$useCheckboxGroupItem, useFocusRing as $kF5Av$useFocusRing, VisuallyHidden as $kF5Av$VisuallyHidden, useCheckboxGroup as $kF5Av$useCheckboxGroup, useRadio as $kF5Av$useRadio, useRadioGroup as $kF5Av$useRadioGroup, useSelect as $kF5Av$useSelect, HiddenSelect as $kF5Av$HiddenSelect, mergeProps as $kF5Av$mergeProps, useListBox as $kF5Av$useListBox, useOption as $kF5Av$useOption, useListBoxSection as $kF5Av$useListBoxSection, useSeparator as $kF5Av$useSeparator, usePopover as $kF5Av$usePopover, Overlay as $kF5Av$Overlay, useDatePicker as $kF5Av$useDatePicker, useDateField as $kF5Av$useDateField, useDateSegment as $kF5Av$useDateSegment, useCalendar as $kF5Av$useCalendar, useCalendarGrid as $kF5Av$useCalendarGrid, useCalendarCell as $kF5Av$useCalendarCell, useDrop as $kF5Av$useDrop, useProgressBar as $kF5Av$useProgressBar, useTabList as $kF5Av$useTabList, useTab as $kF5Av$useTab, useTabPanel as $kF5Av$useTabPanel, useHover as $kF5Av$useHover, usePress as $kF5Av$usePress, useSwitch as $kF5Av$useSwitch, useMenuTrigger as $kF5Av$useMenuTrigger, useMenu as $kF5Av$useMenu, useMenuSection as $kF5Av$useMenuSection, useMenuItem as $kF5Av$useMenuItem} from "react-aria";
|
|
6
|
-
import {HiChevronUp as $kF5Av$HiChevronUp, HiChevronDown as $kF5Av$HiChevronDown, HiSelector as $kF5Av$HiSelector, HiOutlineCalendar as $kF5Av$HiOutlineCalendar, HiChevronLeft as $kF5Av$HiChevronLeft, HiChevronRight as $kF5Av$HiChevronRight, HiOutlineDocumentAdd as $kF5Av$HiOutlineDocumentAdd, HiOutlineCheckCircle as $kF5Av$HiOutlineCheckCircle, HiOutlineTrash as $kF5Av$HiOutlineTrash, HiOutlineExclamationCircle as $kF5Av$HiOutlineExclamationCircle, HiOutlineRefresh as $kF5Av$HiOutlineRefresh, HiOutlinePaperClip as $kF5Av$HiOutlinePaperClip, HiCheck as $kF5Av$HiCheck, HiOutlineGlobe as $kF5Av$HiOutlineGlobe, HiOutlineCurrencyDollar as $kF5Av$HiOutlineCurrencyDollar, HiOutlineGlobeAlt as $kF5Av$HiOutlineGlobeAlt, HiOutlineArchive as $kF5Av$HiOutlineArchive, HiOutlineAnnotation as $kF5Av$HiOutlineAnnotation, HiOutlineFire as $kF5Av$HiOutlineFire, HiOutlineBadgeCheck as $kF5Av$HiOutlineBadgeCheck, HiOutlineSparkles as $kF5Av$HiOutlineSparkles, HiOutlineSpeakerphone as $kF5Av$HiOutlineSpeakerphone, HiOutlineCreditCard as $kF5Av$HiOutlineCreditCard, HiOutlineHeart as $kF5Av$HiOutlineHeart, HiOutlineLocationMarker as $kF5Av$HiOutlineLocationMarker, HiOutlineCursorClick as $kF5Av$HiOutlineCursorClick, HiOutlineLightningBolt as $kF5Av$HiOutlineLightningBolt, HiOutlineDocumentDownload as $kF5Av$HiOutlineDocumentDownload, HiOutlineTag as $kF5Av$HiOutlineTag, HiOutlineAtSymbol as $kF5Av$HiOutlineAtSymbol, HiOutlineUserCircle as $kF5Av$HiOutlineUserCircle, HiOutlineTerminal as $kF5Av$HiOutlineTerminal, HiOutlineMoon as $kF5Av$HiOutlineMoon} from "react-icons/hi";
|
|
7
|
-
import {useNumberFieldState as $kF5Av$useNumberFieldState, useToggleState as $kF5Av$useToggleState, useCheckboxGroupState as $kF5Av$useCheckboxGroupState, useRadioGroupState as $kF5Av$useRadioGroupState, useSelectState as $kF5Av$useSelectState, Item as $kF5Av$Item, useListState as $kF5Av$useListState, useDatePickerState as $kF5Av$useDatePickerState, useDateFieldState as $kF5Av$useDateFieldState, useCalendarState as $kF5Av$useCalendarState, useTabListState as $kF5Av$useTabListState, useMenuTriggerState as $kF5Av$useMenuTriggerState, useTreeState as $kF5Av$useTreeState} from "react-stately";
|
|
5
|
+
import {useTextField as $kF5Av$useTextField, useLocale as $kF5Av$useLocale, useNumberField as $kF5Av$useNumberField, useButton as $kF5Av$useButton, useCheckbox as $kF5Av$useCheckbox, useCheckboxGroupItem as $kF5Av$useCheckboxGroupItem, useFocusRing as $kF5Av$useFocusRing, VisuallyHidden as $kF5Av$VisuallyHidden, useCheckboxGroup as $kF5Av$useCheckboxGroup, useRadio as $kF5Av$useRadio, useRadioGroup as $kF5Av$useRadioGroup, useSelect as $kF5Av$useSelect, HiddenSelect as $kF5Av$HiddenSelect, mergeProps as $kF5Av$mergeProps, useListBox as $kF5Av$useListBox, useOption as $kF5Av$useOption, useListBoxSection as $kF5Av$useListBoxSection, useSeparator as $kF5Av$useSeparator, usePopover as $kF5Av$usePopover, Overlay as $kF5Av$Overlay, useDatePicker as $kF5Av$useDatePicker, useDateField as $kF5Av$useDateField, useDateSegment as $kF5Av$useDateSegment, useCalendar as $kF5Av$useCalendar, useCalendarGrid as $kF5Av$useCalendarGrid, useCalendarCell as $kF5Av$useCalendarCell, useDrop as $kF5Av$useDrop, useProgressBar as $kF5Av$useProgressBar, useTabList as $kF5Av$useTabList, useTab as $kF5Av$useTab, useTabPanel as $kF5Av$useTabPanel, useHover as $kF5Av$useHover, usePress as $kF5Av$usePress, useSwitch as $kF5Av$useSwitch, useMenuTrigger as $kF5Av$useMenuTrigger, useMenu as $kF5Av$useMenu, useMenuSection as $kF5Av$useMenuSection, useMenuItem as $kF5Av$useMenuItem, useTable as $kF5Av$useTable, useTableRowGroup as $kF5Av$useTableRowGroup, useTableHeaderRow as $kF5Av$useTableHeaderRow, useTableColumnHeader as $kF5Av$useTableColumnHeader, useTableRow as $kF5Av$useTableRow, useTableCell as $kF5Av$useTableCell, useTableSelectionCheckbox as $kF5Av$useTableSelectionCheckbox, useTableSelectAllCheckbox as $kF5Av$useTableSelectAllCheckbox, useModalOverlay as $kF5Av$useModalOverlay, useDialog as $kF5Av$useDialog} from "react-aria";
|
|
6
|
+
import {HiChevronUp as $kF5Av$HiChevronUp, HiChevronDown as $kF5Av$HiChevronDown, HiSelector as $kF5Av$HiSelector, HiOutlineCalendar as $kF5Av$HiOutlineCalendar, HiChevronLeft as $kF5Av$HiChevronLeft, HiChevronRight as $kF5Av$HiChevronRight, HiOutlineDocumentAdd as $kF5Av$HiOutlineDocumentAdd, HiOutlineCheckCircle as $kF5Av$HiOutlineCheckCircle, HiOutlineTrash as $kF5Av$HiOutlineTrash, HiOutlineExclamationCircle as $kF5Av$HiOutlineExclamationCircle, HiOutlineRefresh as $kF5Av$HiOutlineRefresh, HiOutlinePaperClip as $kF5Av$HiOutlinePaperClip, HiCheck as $kF5Av$HiCheck, HiOutlineGlobe as $kF5Av$HiOutlineGlobe, HiOutlineCurrencyDollar as $kF5Av$HiOutlineCurrencyDollar, HiOutlineGlobeAlt as $kF5Av$HiOutlineGlobeAlt, HiOutlineArchive as $kF5Av$HiOutlineArchive, HiOutlineAnnotation as $kF5Av$HiOutlineAnnotation, HiOutlineFire as $kF5Av$HiOutlineFire, HiOutlineBadgeCheck as $kF5Av$HiOutlineBadgeCheck, HiOutlineSparkles as $kF5Av$HiOutlineSparkles, HiOutlineSpeakerphone as $kF5Av$HiOutlineSpeakerphone, HiOutlineCreditCard as $kF5Av$HiOutlineCreditCard, HiOutlineHeart as $kF5Av$HiOutlineHeart, HiOutlineLocationMarker as $kF5Av$HiOutlineLocationMarker, HiOutlineCursorClick as $kF5Av$HiOutlineCursorClick, HiOutlineLightningBolt as $kF5Av$HiOutlineLightningBolt, HiOutlineDocumentDownload as $kF5Av$HiOutlineDocumentDownload, HiOutlineTag as $kF5Av$HiOutlineTag, HiOutlineAtSymbol as $kF5Av$HiOutlineAtSymbol, HiOutlineUserCircle as $kF5Av$HiOutlineUserCircle, HiOutlineTerminal as $kF5Av$HiOutlineTerminal, HiOutlineMoon as $kF5Av$HiOutlineMoon, HiSortAscending as $kF5Av$HiSortAscending, HiSortDescending as $kF5Av$HiSortDescending} from "react-icons/hi";
|
|
7
|
+
import {useNumberFieldState as $kF5Av$useNumberFieldState, useToggleState as $kF5Av$useToggleState, useCheckboxGroupState as $kF5Av$useCheckboxGroupState, useRadioGroupState as $kF5Av$useRadioGroupState, useSelectState as $kF5Av$useSelectState, Item as $kF5Av$Item, useListState as $kF5Av$useListState, useDatePickerState as $kF5Av$useDatePickerState, useDateFieldState as $kF5Av$useDateFieldState, useCalendarState as $kF5Av$useCalendarState, useTabListState as $kF5Av$useTabListState, useMenuTriggerState as $kF5Av$useMenuTriggerState, useTreeState as $kF5Av$useTreeState, useTableState as $kF5Av$useTableState, TableHeader as $kF5Av$TableHeader, TableBody as $kF5Av$TableBody, Column as $kF5Av$Column, Row as $kF5Av$Row, Cell as $kF5Av$Cell, useOverlayTriggerState as $kF5Av$useOverlayTriggerState} from "react-stately";
|
|
8
8
|
import {createCalendar as $kF5Av$createCalendar, endOfMonth as $kF5Av$endOfMonth, getWeeksInMonth as $kF5Av$getWeeksInMonth, isSameMonth as $kF5Av$isSameMonth, CalendarDate as $kF5Av$CalendarDate} from "@internationalized/date";
|
|
9
9
|
|
|
10
10
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
@@ -69,7 +69,8 @@ const $9ade691eb9e41cfb$export$8f45430ccf837300 = {
|
|
|
69
69
|
whiteA: $kF5Av$whiteA,
|
|
70
70
|
blackA: $kF5Av$blackA
|
|
71
71
|
};
|
|
72
|
-
const { styled: $9ade691eb9e41cfb$export$3817b7a54a07cec7 , css: $9ade691eb9e41cfb$export$dbf350e5966cf602 , keyframes: $9ade691eb9e41cfb$export$d25ddfdf17c3ad3e , config: $9ade691eb9e41cfb$export$e506a1d27d1eaa20 } = (0, $kF5Av$createStitches)({
|
|
72
|
+
const { styled: $9ade691eb9e41cfb$export$3817b7a54a07cec7 , css: $9ade691eb9e41cfb$export$dbf350e5966cf602 , keyframes: $9ade691eb9e41cfb$export$d25ddfdf17c3ad3e , config: $9ade691eb9e41cfb$export$e506a1d27d1eaa20 , theme: $9ade691eb9e41cfb$export$bca14c5b3b88a9c9 } = (0, $kF5Av$createStitches)({
|
|
73
|
+
prefix: "parrot-ui",
|
|
73
74
|
theme: {
|
|
74
75
|
colors: {
|
|
75
76
|
...(0, $kF5Av$gray),
|
|
@@ -1032,7 +1033,7 @@ function $22d93d8ad1e2d08d$export$ccdcc3b9d72a654(color, variant) {
|
|
|
1032
1033
|
background: "white",
|
|
1033
1034
|
color: "$gray12",
|
|
1034
1035
|
fill: "$gray12",
|
|
1035
|
-
border: variant === "
|
|
1036
|
+
border: variant === "plain" ? "none" : "1.5px solid $gray5",
|
|
1036
1037
|
"&:focus": {
|
|
1037
1038
|
boxShadow: $22d93d8ad1e2d08d$export$71074ab0ed740397("violet")
|
|
1038
1039
|
}
|
|
@@ -1478,29 +1479,23 @@ var $19752cc72b827664$export$2e2bcd8739ae039 = $19752cc72b827664$var$InputError;
|
|
|
1478
1479
|
|
|
1479
1480
|
|
|
1480
1481
|
|
|
1481
|
-
|
|
1482
|
-
const $f8db34c11dd03189$var$Socket = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)("div", {
|
|
1482
|
+
const $f8db34c11dd03189$var$Socket = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)("span", {
|
|
1483
1483
|
display: "flex",
|
|
1484
1484
|
height: "100%",
|
|
1485
|
+
alignItems: "center",
|
|
1485
1486
|
variants: {
|
|
1486
1487
|
side: {
|
|
1487
1488
|
left: {
|
|
1488
|
-
|
|
1489
|
+
pr: 4
|
|
1489
1490
|
},
|
|
1490
1491
|
right: {
|
|
1491
|
-
|
|
1492
|
+
pl: 4
|
|
1492
1493
|
}
|
|
1493
1494
|
}
|
|
1494
1495
|
}
|
|
1495
1496
|
});
|
|
1496
1497
|
const $f8db34c11dd03189$var$Sockets = /*#__PURE__*/ (0, $kF5Av$react).forwardRef(({ append: append , prepend: prepend , children: children , ...props }, ref)=>{
|
|
1497
|
-
return /*#__PURE__*/ (0, $kF5Av$jsxs)((0, $
|
|
1498
|
-
align: "center",
|
|
1499
|
-
justify: "center",
|
|
1500
|
-
gap: 2,
|
|
1501
|
-
stretchX: true,
|
|
1502
|
-
ref: ref,
|
|
1503
|
-
...props,
|
|
1498
|
+
return /*#__PURE__*/ (0, $kF5Av$jsxs)((0, $f8db34c11dd03189$import$867d6c90a4013129$ffb0004e005737fa), {
|
|
1504
1499
|
children: [
|
|
1505
1500
|
prepend && /*#__PURE__*/ (0, $kF5Av$jsx)($f8db34c11dd03189$var$Socket, {
|
|
1506
1501
|
side: "left",
|
|
@@ -2031,6 +2026,9 @@ const $d9dcae15cfac0230$export$b28585a458fee016 = /*#__PURE__*/ (0, $kF5Av$react
|
|
|
2031
2026
|
...props,
|
|
2032
2027
|
type: showPassword ? "text" : "password",
|
|
2033
2028
|
append: /*#__PURE__*/ (0, $kF5Av$jsx)((0, $59636f06ede7befa$export$353f5b6fc5456de1), {
|
|
2029
|
+
css: {
|
|
2030
|
+
marginRight: 6
|
|
2031
|
+
},
|
|
2034
2032
|
variant: "solid",
|
|
2035
2033
|
color: "white",
|
|
2036
2034
|
size: "xs",
|
|
@@ -2197,10 +2195,17 @@ const $ba191264a9103a53$export$74cd3087fed3724d = (0, $9ade691eb9e41cfb$export$3
|
|
|
2197
2195
|
alignItems: "center",
|
|
2198
2196
|
justifyContent: "center",
|
|
2199
2197
|
boxSizing: "border-box",
|
|
2198
|
+
"&[data-focused=true]": {
|
|
2199
|
+
boxShadow: "$focusRing"
|
|
2200
|
+
},
|
|
2200
2201
|
"&[data-checked='true']": {
|
|
2201
2202
|
background: "$violet10",
|
|
2202
2203
|
borderColor: "transparent"
|
|
2203
2204
|
},
|
|
2205
|
+
"&[data-indeterminate=true]": {
|
|
2206
|
+
background: "$gray4",
|
|
2207
|
+
borderColor: "transparent"
|
|
2208
|
+
},
|
|
2204
2209
|
defaultVariants: {
|
|
2205
2210
|
size: "sm",
|
|
2206
2211
|
appearance: "flushed",
|
|
@@ -2251,7 +2256,7 @@ const $ba191264a9103a53$export$74cd3087fed3724d = (0, $9ade691eb9e41cfb$export$3
|
|
|
2251
2256
|
size: "sm",
|
|
2252
2257
|
shape: "round",
|
|
2253
2258
|
css: {
|
|
2254
|
-
borderRadius:
|
|
2259
|
+
borderRadius: 4
|
|
2255
2260
|
}
|
|
2256
2261
|
},
|
|
2257
2262
|
{
|
|
@@ -2279,13 +2284,12 @@ const $ba191264a9103a53$export$74cd3087fed3724d = (0, $9ade691eb9e41cfb$export$3
|
|
|
2279
2284
|
});
|
|
2280
2285
|
|
|
2281
2286
|
|
|
2287
|
+
|
|
2282
2288
|
const $b5830f3daeb33bb2$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, $kF5Av$react).forwardRef((props, ref)=>{
|
|
2283
2289
|
const { appearance: appearance , size: size , ...otherProps } = props;
|
|
2284
2290
|
// check if checkbox is rendered in a group context
|
|
2285
2291
|
const groupState = (0, $kF5Av$react).useContext((0, $5711a5825d7012d3$export$f9c6924e160136d1));
|
|
2286
2292
|
const isWithinGroup = groupState != null;
|
|
2287
|
-
// if it is, use the group state to determine the checkbox state
|
|
2288
|
-
// otherwise, use the toggle state hook
|
|
2289
2293
|
const singleState = (0, $kF5Av$useToggleState)(props);
|
|
2290
2294
|
const inputRef = (0, $kF5Av$react).useRef(null);
|
|
2291
2295
|
const single = (0, $kF5Av$useCheckbox)(otherProps, singleState, inputRef);
|
|
@@ -2293,7 +2297,7 @@ const $b5830f3daeb33bb2$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, $kF5Av$react
|
|
|
2293
2297
|
const { isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $kF5Av$useFocusRing)();
|
|
2294
2298
|
const inputProps = isWithinGroup ? group?.inputProps : single.inputProps;
|
|
2295
2299
|
const state = isWithinGroup ? groupState : singleState;
|
|
2296
|
-
const isSelected = isWithinGroup ? groupState.isSelected(props.value) : state.isSelected;
|
|
2300
|
+
const isSelected = isWithinGroup ? groupState.isSelected(props.value ?? "") : state.isSelected;
|
|
2297
2301
|
return /*#__PURE__*/ (0, $kF5Av$jsxs)((0, $ba191264a9103a53$export$eea83358d9434634), {
|
|
2298
2302
|
"data-disabled": inputProps?.disabled,
|
|
2299
2303
|
ref: ref,
|
|
@@ -2306,27 +2310,39 @@ const $b5830f3daeb33bb2$export$48513f6b9f8ce62d = /*#__PURE__*/ (0, $kF5Av$react
|
|
|
2306
2310
|
...focusProps
|
|
2307
2311
|
})
|
|
2308
2312
|
}),
|
|
2309
|
-
/*#__PURE__*/ (0, $kF5Av$
|
|
2313
|
+
/*#__PURE__*/ (0, $kF5Av$jsxs)((0, $ba191264a9103a53$export$74cd3087fed3724d), {
|
|
2314
|
+
"data-focused": isFocusVisible,
|
|
2310
2315
|
"aria-hidden": "true",
|
|
2311
2316
|
"data-checked": isSelected,
|
|
2317
|
+
"data-indeterminate": props.isIndeterminate,
|
|
2312
2318
|
size: size,
|
|
2313
2319
|
appearance: appearance,
|
|
2314
|
-
children:
|
|
2315
|
-
|
|
2316
|
-
|
|
2317
|
-
|
|
2318
|
-
|
|
2319
|
-
|
|
2320
|
-
|
|
2321
|
-
|
|
2322
|
-
|
|
2323
|
-
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
|
|
2320
|
+
children: [
|
|
2321
|
+
isSelected && /*#__PURE__*/ (0, $kF5Av$jsx)("svg", {
|
|
2322
|
+
stroke: "white",
|
|
2323
|
+
width: "0.75rem",
|
|
2324
|
+
height: "0.75rem",
|
|
2325
|
+
viewBox: "0 0 18 18",
|
|
2326
|
+
children: /*#__PURE__*/ (0, $kF5Av$jsx)("polyline", {
|
|
2327
|
+
points: "1 9 7 14 15 4",
|
|
2328
|
+
fill: "none",
|
|
2329
|
+
strokeWidth: 3,
|
|
2330
|
+
strokeDasharray: 22,
|
|
2331
|
+
strokeDashoffset: isSelected ? 44 : 66,
|
|
2332
|
+
style: {
|
|
2333
|
+
transition: "all 400ms"
|
|
2334
|
+
}
|
|
2335
|
+
})
|
|
2336
|
+
}),
|
|
2337
|
+
props.isIndeterminate && /*#__PURE__*/ (0, $kF5Av$jsx)((0, $d22d8a7881f7b33f$export$2e2bcd8739ae039), {
|
|
2338
|
+
css: {
|
|
2339
|
+
background: "$gray11",
|
|
2340
|
+
width: "70%",
|
|
2341
|
+
height: 2,
|
|
2342
|
+
borderRadius: 4
|
|
2327
2343
|
}
|
|
2328
2344
|
})
|
|
2329
|
-
|
|
2345
|
+
]
|
|
2330
2346
|
}),
|
|
2331
2347
|
otherProps.children
|
|
2332
2348
|
]
|
|
@@ -3385,6 +3401,7 @@ const $bc830feefb2f8a48$export$f7513421c53ce141 = (0, $9ade691eb9e41cfb$export$3
|
|
|
3385
3401
|
|
|
3386
3402
|
|
|
3387
3403
|
|
|
3404
|
+
|
|
3388
3405
|
function $0cd1b33af66db866$export$d41d9ab3de2def3d(text) {
|
|
3389
3406
|
const str = String(text);
|
|
3390
3407
|
let hash = 0;
|
|
@@ -3401,6 +3418,10 @@ function $0cd1b33af66db866$export$d41d9ab3de2def3d(text) {
|
|
|
3401
3418
|
function $0cd1b33af66db866$export$d560c7e4a29451c2() {
|
|
3402
3419
|
return Math.random().toString(36);
|
|
3403
3420
|
}
|
|
3421
|
+
function $0cd1b33af66db866$export$e4369cabd7e84cd9(string) {
|
|
3422
|
+
const hash = $0cd1b33af66db866$export$d41d9ab3de2def3d(string);
|
|
3423
|
+
return (0, $22d93d8ad1e2d08d$export$36308cce1deef340)[hash % (0, $22d93d8ad1e2d08d$export$36308cce1deef340).length];
|
|
3424
|
+
}
|
|
3404
3425
|
|
|
3405
3426
|
|
|
3406
3427
|
const $2b3b1dc9b2ed8672$export$e2255cf6045e8d47 = /*#__PURE__*/ $kF5Av$forwardRef(({ src: src , alt: alt , name: name , color: color , variant: variant = "light" , fallback: fallback , children: children , ...props }, ref)=>{
|
|
@@ -3891,12 +3912,15 @@ const $40e1dcf58e198ee9$export$1aaa3deaa90ea306 = {
|
|
|
3891
3912
|
|
|
3892
3913
|
|
|
3893
3914
|
|
|
3894
|
-
const $b3ab9230425b9da4$export$7a4af5518e2bbe67 = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)("
|
|
3915
|
+
const $b3ab9230425b9da4$export$7a4af5518e2bbe67 = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)("span", (0, $22d93d8ad1e2d08d$export$5a7eb6284e7684f5), {
|
|
3916
|
+
"$$tag-base-height": "14px",
|
|
3895
3917
|
display: "inline-flex",
|
|
3896
3918
|
alignItems: "center",
|
|
3897
3919
|
justifyContent: "center",
|
|
3898
3920
|
fontFamily: "$sans",
|
|
3899
3921
|
boxSizing: "border-box",
|
|
3922
|
+
lineHeight: 1.2,
|
|
3923
|
+
height: "$$tag-base-height",
|
|
3900
3924
|
defaultVariants: {
|
|
3901
3925
|
color: "gray",
|
|
3902
3926
|
variant: "light",
|
|
@@ -3906,135 +3930,59 @@ const $b3ab9230425b9da4$export$7a4af5518e2bbe67 = (0, $9ade691eb9e41cfb$export$3
|
|
|
3906
3930
|
variants: {
|
|
3907
3931
|
size: {
|
|
3908
3932
|
"3xs": {
|
|
3909
|
-
height:
|
|
3910
|
-
px:
|
|
3933
|
+
"$$tag-base-height": "14px",
|
|
3934
|
+
px: 4,
|
|
3911
3935
|
fontSize: 11
|
|
3912
3936
|
},
|
|
3913
3937
|
"2xs": {
|
|
3914
|
-
height:
|
|
3915
|
-
px:
|
|
3938
|
+
"$$tag-base-height": "16px",
|
|
3939
|
+
px: 4,
|
|
3916
3940
|
fontSize: 12
|
|
3917
3941
|
},
|
|
3918
3942
|
xs: {
|
|
3919
|
-
height:
|
|
3920
|
-
px:
|
|
3921
|
-
fontSize:
|
|
3943
|
+
"$$tag-base-height": "20px",
|
|
3944
|
+
px: 4,
|
|
3945
|
+
fontSize: 12
|
|
3922
3946
|
},
|
|
3923
3947
|
sm: {
|
|
3924
|
-
height:
|
|
3925
|
-
px:
|
|
3926
|
-
fontSize:
|
|
3948
|
+
"$$tag-base-height": "24px",
|
|
3949
|
+
px: 6,
|
|
3950
|
+
fontSize: 13
|
|
3927
3951
|
},
|
|
3928
3952
|
md: {
|
|
3929
|
-
height:
|
|
3930
|
-
px:
|
|
3953
|
+
"$$tag-base-height": "28px",
|
|
3954
|
+
px: 6,
|
|
3931
3955
|
fontSize: 14
|
|
3932
3956
|
},
|
|
3933
3957
|
lg: {
|
|
3934
|
-
height:
|
|
3935
|
-
px:
|
|
3958
|
+
"$$tag-base-height": "32px",
|
|
3959
|
+
px: 6,
|
|
3936
3960
|
fontSize: 14
|
|
3937
3961
|
}
|
|
3938
3962
|
},
|
|
3939
3963
|
shape: {
|
|
3940
|
-
pill: {
|
|
3941
|
-
|
|
3964
|
+
pill: {
|
|
3965
|
+
borderRadius: "calc($$tag-base-height / 2)"
|
|
3966
|
+
},
|
|
3967
|
+
round: {
|
|
3968
|
+
borderRadius: "calc($$tag-base-height / 4)"
|
|
3969
|
+
},
|
|
3942
3970
|
sharp: {
|
|
3943
3971
|
borderRadius: 0
|
|
3944
3972
|
}
|
|
3945
3973
|
}
|
|
3946
|
-
}
|
|
3947
|
-
compoundVariants: [
|
|
3948
|
-
{
|
|
3949
|
-
size: "3xs",
|
|
3950
|
-
shape: "round",
|
|
3951
|
-
css: {
|
|
3952
|
-
borderRadius: 4
|
|
3953
|
-
}
|
|
3954
|
-
},
|
|
3955
|
-
{
|
|
3956
|
-
size: "2xs",
|
|
3957
|
-
shape: "round",
|
|
3958
|
-
css: {
|
|
3959
|
-
borderRadius: 4
|
|
3960
|
-
}
|
|
3961
|
-
},
|
|
3962
|
-
{
|
|
3963
|
-
size: "xs",
|
|
3964
|
-
shape: "round",
|
|
3965
|
-
css: {
|
|
3966
|
-
borderRadius: 6
|
|
3967
|
-
}
|
|
3968
|
-
},
|
|
3969
|
-
{
|
|
3970
|
-
size: "sm",
|
|
3971
|
-
shape: "round",
|
|
3972
|
-
css: {
|
|
3973
|
-
borderRadius: 6
|
|
3974
|
-
}
|
|
3975
|
-
},
|
|
3976
|
-
{
|
|
3977
|
-
size: "md",
|
|
3978
|
-
shape: "round",
|
|
3979
|
-
css: {
|
|
3980
|
-
borderRadius: 6
|
|
3981
|
-
}
|
|
3982
|
-
},
|
|
3983
|
-
{
|
|
3984
|
-
size: "lg",
|
|
3985
|
-
shape: "round",
|
|
3986
|
-
css: {
|
|
3987
|
-
borderRadius: 8
|
|
3988
|
-
}
|
|
3989
|
-
},
|
|
3990
|
-
{
|
|
3991
|
-
size: "3xs",
|
|
3992
|
-
shape: "pill",
|
|
3993
|
-
css: {
|
|
3994
|
-
borderRadius: 10
|
|
3995
|
-
}
|
|
3996
|
-
},
|
|
3997
|
-
{
|
|
3998
|
-
size: "2xs",
|
|
3999
|
-
shape: "pill",
|
|
4000
|
-
css: {
|
|
4001
|
-
borderRadius: 10
|
|
4002
|
-
}
|
|
4003
|
-
},
|
|
4004
|
-
{
|
|
4005
|
-
size: "xs",
|
|
4006
|
-
shape: "pill",
|
|
4007
|
-
css: {
|
|
4008
|
-
borderRadius: 12
|
|
4009
|
-
}
|
|
4010
|
-
},
|
|
4011
|
-
{
|
|
4012
|
-
size: "sm",
|
|
4013
|
-
shape: "pill",
|
|
4014
|
-
css: {
|
|
4015
|
-
borderRadius: 14
|
|
4016
|
-
}
|
|
4017
|
-
},
|
|
4018
|
-
{
|
|
4019
|
-
size: "md",
|
|
4020
|
-
shape: "pill",
|
|
4021
|
-
css: {
|
|
4022
|
-
borderRadius: 16
|
|
4023
|
-
}
|
|
4024
|
-
},
|
|
4025
|
-
{
|
|
4026
|
-
size: "lg",
|
|
4027
|
-
shape: "pill",
|
|
4028
|
-
css: {
|
|
4029
|
-
borderRadius: 20
|
|
4030
|
-
}
|
|
4031
|
-
}
|
|
4032
|
-
]
|
|
3974
|
+
}
|
|
4033
3975
|
});
|
|
4034
3976
|
|
|
4035
3977
|
|
|
4036
|
-
|
|
3978
|
+
|
|
3979
|
+
const $827cce002ec16c4b$export$3288d34c523a1192 = /*#__PURE__*/ (0, $kF5Av$react).forwardRef(({ prepend: prepend , append: append , children: children , hashValue: hashValue , color: color , ...props }, ref)=>{
|
|
3980
|
+
const randomColor = (0, $kF5Av$react).useMemo(()=>{
|
|
3981
|
+
if (hashValue) return (0, $0cd1b33af66db866$export$e4369cabd7e84cd9)(hashValue);
|
|
3982
|
+
return "gray";
|
|
3983
|
+
}, []);
|
|
4037
3984
|
return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $b3ab9230425b9da4$export$7a4af5518e2bbe67), {
|
|
3985
|
+
color: color ?? randomColor,
|
|
4038
3986
|
ref: ref,
|
|
4039
3987
|
...props,
|
|
4040
3988
|
children: /*#__PURE__*/ (0, $kF5Av$jsx)((0, $f8db34c11dd03189$export$2e2bcd8739ae039), {
|
|
@@ -4665,5 +4613,464 @@ function $b13859906e03ed0f$export$e44a253a59704894(props) {
|
|
|
4665
4613
|
|
|
4666
4614
|
|
|
4667
4615
|
|
|
4668
|
-
|
|
4616
|
+
|
|
4617
|
+
|
|
4618
|
+
|
|
4619
|
+
|
|
4620
|
+
const $8de20d77864e0cc6$export$a6cc9d741fb2f287 = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)("table", {
|
|
4621
|
+
borderCollapse: "collapse",
|
|
4622
|
+
width: "100%"
|
|
4623
|
+
});
|
|
4624
|
+
const $8de20d77864e0cc6$export$96f9bf5ade461735 = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)("tbody", {});
|
|
4625
|
+
const $8de20d77864e0cc6$export$8a602e750662ba27 = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)("tr", {});
|
|
4626
|
+
const $8de20d77864e0cc6$export$2306c7347640f5e4 = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)("td", {
|
|
4627
|
+
fontFamily: "$sans",
|
|
4628
|
+
borderBottom: "1px solid $gray3",
|
|
4629
|
+
py: 8,
|
|
4630
|
+
fontSize: "$3",
|
|
4631
|
+
variants: {
|
|
4632
|
+
isHeader: {
|
|
4633
|
+
true: {
|
|
4634
|
+
color: "$gray10",
|
|
4635
|
+
fontWeight: "$regular",
|
|
4636
|
+
textAlign: "left",
|
|
4637
|
+
fontSize: "$3"
|
|
4638
|
+
}
|
|
4639
|
+
}
|
|
4640
|
+
}
|
|
4641
|
+
});
|
|
4642
|
+
|
|
4643
|
+
|
|
4644
|
+
|
|
4645
|
+
|
|
4646
|
+
|
|
4647
|
+
// export function Checkbox(props: AriaCheckboxProps) {
|
|
4648
|
+
// const { ...otherProps } = props;
|
|
4649
|
+
// const ref = React.useRef(null);
|
|
4650
|
+
// const state = useToggleState(otherProps);
|
|
4651
|
+
// const { inputProps } = useCheckbox(otherProps, state, ref);
|
|
4652
|
+
// return (
|
|
4653
|
+
// <>
|
|
4654
|
+
// <input {...inputProps} ref={ref} />
|
|
4655
|
+
// </>
|
|
4656
|
+
// );
|
|
4657
|
+
// }
|
|
4658
|
+
const $2c3cbfa2e31957ff$var$TableWrapper = /*#__PURE__*/ $kF5Av$forwardRef((props, ref)=>{
|
|
4659
|
+
const state = (0, $kF5Av$useTableState)({
|
|
4660
|
+
...props,
|
|
4661
|
+
showSelectionCheckboxes: true
|
|
4662
|
+
});
|
|
4663
|
+
const tableRef = $kF5Av$useRef(null);
|
|
4664
|
+
const { collection: collection } = state;
|
|
4665
|
+
const { gridProps: gridProps } = (0, $kF5Av$useTable)(props, state, tableRef);
|
|
4666
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $391d62e0590dec97$export$2e2bcd8739ae039), {
|
|
4667
|
+
stretchX: true,
|
|
4668
|
+
ref: ref,
|
|
4669
|
+
children: /*#__PURE__*/ (0, $kF5Av$jsxs)((0, $8de20d77864e0cc6$export$a6cc9d741fb2f287), {
|
|
4670
|
+
...gridProps,
|
|
4671
|
+
ref: tableRef,
|
|
4672
|
+
children: [
|
|
4673
|
+
/*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$var$TableRowGroup, {
|
|
4674
|
+
type: "thead",
|
|
4675
|
+
children: collection.headerRows.map((headerRow)=>{
|
|
4676
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$var$HeaderRow, {
|
|
4677
|
+
state: state,
|
|
4678
|
+
item: headerRow,
|
|
4679
|
+
children: [
|
|
4680
|
+
...headerRow.childNodes
|
|
4681
|
+
].map((column)=>{
|
|
4682
|
+
return column.props.isSelectionCell ? /*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$var$SelectAllCell, {
|
|
4683
|
+
state: state,
|
|
4684
|
+
column: column
|
|
4685
|
+
}, column.key) : /*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$var$ColumnHeader, {
|
|
4686
|
+
state: state,
|
|
4687
|
+
column: column
|
|
4688
|
+
}, column.key);
|
|
4689
|
+
})
|
|
4690
|
+
}, headerRow.key);
|
|
4691
|
+
})
|
|
4692
|
+
}),
|
|
4693
|
+
/*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$var$TableRowGroup, {
|
|
4694
|
+
type: "tbody",
|
|
4695
|
+
children: [
|
|
4696
|
+
...collection.body.childNodes
|
|
4697
|
+
].map((row)=>{
|
|
4698
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$var$TableRow, {
|
|
4699
|
+
item: row,
|
|
4700
|
+
state: state,
|
|
4701
|
+
children: [
|
|
4702
|
+
...row.childNodes
|
|
4703
|
+
].map((cell)=>{
|
|
4704
|
+
return cell.props.isSelectionCell ? /*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$var$CheckboxCell, {
|
|
4705
|
+
cell: cell,
|
|
4706
|
+
state: state
|
|
4707
|
+
}, cell.key) : /*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$var$TableCell, {
|
|
4708
|
+
cell: cell,
|
|
4709
|
+
state: state
|
|
4710
|
+
}, cell.key);
|
|
4711
|
+
})
|
|
4712
|
+
}, row.key);
|
|
4713
|
+
})
|
|
4714
|
+
})
|
|
4715
|
+
]
|
|
4716
|
+
})
|
|
4717
|
+
});
|
|
4718
|
+
});
|
|
4719
|
+
function $2c3cbfa2e31957ff$var$TableRowGroup({ type: type , children: children }) {
|
|
4720
|
+
const { rowGroupProps: rowGroupProps } = (0, $kF5Av$useTableRowGroup)();
|
|
4721
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $8de20d77864e0cc6$export$96f9bf5ade461735), {
|
|
4722
|
+
as: type,
|
|
4723
|
+
...rowGroupProps,
|
|
4724
|
+
children: children
|
|
4725
|
+
});
|
|
4726
|
+
}
|
|
4727
|
+
function $2c3cbfa2e31957ff$var$HeaderRow({ item: item , state: state , children: children }) {
|
|
4728
|
+
const ref = $kF5Av$useRef(null);
|
|
4729
|
+
const { rowProps: rowProps } = (0, $kF5Av$useTableHeaderRow)({
|
|
4730
|
+
node: item
|
|
4731
|
+
}, state, ref);
|
|
4732
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)("tr", {
|
|
4733
|
+
...rowProps,
|
|
4734
|
+
ref: ref,
|
|
4735
|
+
children: children
|
|
4736
|
+
});
|
|
4737
|
+
}
|
|
4738
|
+
function $2c3cbfa2e31957ff$var$ColumnHeader({ column: column , state: state }) {
|
|
4739
|
+
const ref = $kF5Av$useRef(null);
|
|
4740
|
+
const { columnHeaderProps: columnHeaderProps } = (0, $kF5Av$useTableColumnHeader)({
|
|
4741
|
+
node: column
|
|
4742
|
+
}, state, ref);
|
|
4743
|
+
const { isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $kF5Av$useFocusRing)();
|
|
4744
|
+
function getSortIcon() {
|
|
4745
|
+
if (state.sortDescriptor?.direction === "ascending") return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $kF5Av$HiSortAscending), {
|
|
4746
|
+
size: 16
|
|
4747
|
+
});
|
|
4748
|
+
if (state.sortDescriptor?.direction === "descending") return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $kF5Av$HiSortDescending), {
|
|
4749
|
+
size: 16
|
|
4750
|
+
});
|
|
4751
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $kF5Av$HiSelector), {
|
|
4752
|
+
size: 16
|
|
4753
|
+
});
|
|
4754
|
+
}
|
|
4755
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $8de20d77864e0cc6$export$2306c7347640f5e4), {
|
|
4756
|
+
isHeader: true,
|
|
4757
|
+
"data-focused": isFocusVisible,
|
|
4758
|
+
as: "th",
|
|
4759
|
+
ref: ref,
|
|
4760
|
+
...(0, $kF5Av$mergeProps)(focusProps, columnHeaderProps),
|
|
4761
|
+
children: /*#__PURE__*/ (0, $kF5Av$jsxs)((0, $391d62e0590dec97$export$2e2bcd8739ae039), {
|
|
4762
|
+
align: "center",
|
|
4763
|
+
gap: 2,
|
|
4764
|
+
children: [
|
|
4765
|
+
column.rendered,
|
|
4766
|
+
column.props.allowsSorting && getSortIcon()
|
|
4767
|
+
]
|
|
4768
|
+
})
|
|
4769
|
+
});
|
|
4770
|
+
}
|
|
4771
|
+
function $2c3cbfa2e31957ff$var$TableRow({ item: item , children: children , state: state }) {
|
|
4772
|
+
const ref = $kF5Av$useRef(null);
|
|
4773
|
+
const { rowProps: rowProps , isPressed: isPressed } = (0, $kF5Av$useTableRow)({
|
|
4774
|
+
node: item
|
|
4775
|
+
}, state, ref);
|
|
4776
|
+
const { isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $kF5Av$useFocusRing)();
|
|
4777
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $8de20d77864e0cc6$export$8a602e750662ba27), {
|
|
4778
|
+
ref: ref,
|
|
4779
|
+
"data-pressed": isPressed,
|
|
4780
|
+
"data-focused": isFocusVisible,
|
|
4781
|
+
...(0, $kF5Av$mergeProps)(focusProps, rowProps),
|
|
4782
|
+
children: children
|
|
4783
|
+
});
|
|
4784
|
+
}
|
|
4785
|
+
function $2c3cbfa2e31957ff$var$TableCell({ cell: cell , state: state }) {
|
|
4786
|
+
const ref = $kF5Av$useRef(null);
|
|
4787
|
+
const { gridCellProps: gridCellProps } = (0, $kF5Av$useTableCell)({
|
|
4788
|
+
node: cell
|
|
4789
|
+
}, state, ref);
|
|
4790
|
+
const { isFocusVisible: isFocusVisible , focusProps: focusProps } = (0, $kF5Av$useFocusRing)();
|
|
4791
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $8de20d77864e0cc6$export$2306c7347640f5e4), {
|
|
4792
|
+
"data-focused": isFocusVisible,
|
|
4793
|
+
ref: ref,
|
|
4794
|
+
...(0, $kF5Av$mergeProps)(focusProps, gridCellProps),
|
|
4795
|
+
children: cell.rendered
|
|
4796
|
+
});
|
|
4797
|
+
}
|
|
4798
|
+
function $2c3cbfa2e31957ff$var$CheckboxCell({ cell: cell , state: state }) {
|
|
4799
|
+
const ref = $kF5Av$useRef(null);
|
|
4800
|
+
const { gridCellProps: gridCellProps } = (0, $kF5Av$useTableCell)({
|
|
4801
|
+
node: cell
|
|
4802
|
+
}, state, ref);
|
|
4803
|
+
const { checkboxProps: checkboxProps } = (0, $kF5Av$useTableSelectionCheckbox)({
|
|
4804
|
+
key: cell.parentKey ?? (0, $0cd1b33af66db866$export$d560c7e4a29451c2)()
|
|
4805
|
+
}, state);
|
|
4806
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $8de20d77864e0cc6$export$2306c7347640f5e4), {
|
|
4807
|
+
css: {
|
|
4808
|
+
width: 40
|
|
4809
|
+
},
|
|
4810
|
+
...gridCellProps,
|
|
4811
|
+
ref: ref,
|
|
4812
|
+
children: /*#__PURE__*/ (0, $kF5Av$jsx)((0, $b5830f3daeb33bb2$export$48513f6b9f8ce62d), {
|
|
4813
|
+
appearance: "outline",
|
|
4814
|
+
...checkboxProps
|
|
4815
|
+
})
|
|
4816
|
+
});
|
|
4817
|
+
}
|
|
4818
|
+
function $2c3cbfa2e31957ff$var$SelectAllCell({ column: column , state: state }) {
|
|
4819
|
+
const ref = $kF5Av$useRef(null);
|
|
4820
|
+
const { columnHeaderProps: columnHeaderProps } = (0, $kF5Av$useTableColumnHeader)({
|
|
4821
|
+
node: column
|
|
4822
|
+
}, state, ref);
|
|
4823
|
+
const { checkboxProps: checkboxProps } = (0, $kF5Av$useTableSelectAllCheckbox)(state);
|
|
4824
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $8de20d77864e0cc6$export$2306c7347640f5e4), {
|
|
4825
|
+
as: "th",
|
|
4826
|
+
...columnHeaderProps,
|
|
4827
|
+
ref: ref,
|
|
4828
|
+
children: state.selectionManager.selectionMode === "single" ? /*#__PURE__*/ (0, $kF5Av$jsx)((0, $kF5Av$VisuallyHidden), {
|
|
4829
|
+
children: checkboxProps["aria-label"]
|
|
4830
|
+
}) : /*#__PURE__*/ (0, $kF5Av$jsx)((0, $b5830f3daeb33bb2$export$48513f6b9f8ce62d), {
|
|
4831
|
+
appearance: "outline",
|
|
4832
|
+
...checkboxProps
|
|
4833
|
+
})
|
|
4834
|
+
});
|
|
4835
|
+
}
|
|
4836
|
+
function $2c3cbfa2e31957ff$export$54ec01a60f47d33d({ columns: columns , data: data , ...props }) {
|
|
4837
|
+
function findColumnDefByKey(key) {
|
|
4838
|
+
return columns?.find((column)=>column.key === key);
|
|
4839
|
+
}
|
|
4840
|
+
function renderCell(item, key) {
|
|
4841
|
+
const columnDef = findColumnDefByKey(key);
|
|
4842
|
+
if (!columnDef) return null;
|
|
4843
|
+
if (columnDef?.render) return columnDef.render(item[columnDef.dataIndex], item);
|
|
4844
|
+
return item[columnDef?.dataIndex];
|
|
4845
|
+
}
|
|
4846
|
+
return /*#__PURE__*/ (0, $kF5Av$jsxs)($2c3cbfa2e31957ff$var$TableWrapper, {
|
|
4847
|
+
...props,
|
|
4848
|
+
children: [
|
|
4849
|
+
/*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$export$54ec01a60f47d33d.Header, {
|
|
4850
|
+
columns: columns,
|
|
4851
|
+
children: (column)=>/*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$export$54ec01a60f47d33d.Column, {
|
|
4852
|
+
allowsSorting: column.allowSorting,
|
|
4853
|
+
children: column?.title
|
|
4854
|
+
})
|
|
4855
|
+
}),
|
|
4856
|
+
/*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$export$54ec01a60f47d33d.Body, {
|
|
4857
|
+
items: data,
|
|
4858
|
+
children: (item)=>/*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$export$54ec01a60f47d33d.Row, {
|
|
4859
|
+
children: (columnKey)=>/*#__PURE__*/ (0, $kF5Av$jsx)($2c3cbfa2e31957ff$export$54ec01a60f47d33d.Cell, {
|
|
4860
|
+
children: renderCell(item, columnKey)
|
|
4861
|
+
})
|
|
4862
|
+
})
|
|
4863
|
+
})
|
|
4864
|
+
]
|
|
4865
|
+
});
|
|
4866
|
+
}
|
|
4867
|
+
$2c3cbfa2e31957ff$export$54ec01a60f47d33d.Header = (0, $kF5Av$TableHeader);
|
|
4868
|
+
$2c3cbfa2e31957ff$export$54ec01a60f47d33d.Body = (0, $kF5Av$TableBody);
|
|
4869
|
+
$2c3cbfa2e31957ff$export$54ec01a60f47d33d.Column = (0, $kF5Av$Column);
|
|
4870
|
+
$2c3cbfa2e31957ff$export$54ec01a60f47d33d.Row = (0, $kF5Av$Row);
|
|
4871
|
+
$2c3cbfa2e31957ff$export$54ec01a60f47d33d.Cell = (0, $kF5Av$Cell);
|
|
4872
|
+
$2c3cbfa2e31957ff$var$TableWrapper.displayName = "Table";
|
|
4873
|
+
|
|
4874
|
+
|
|
4875
|
+
|
|
4876
|
+
|
|
4877
|
+
|
|
4878
|
+
|
|
4879
|
+
|
|
4880
|
+
|
|
4881
|
+
|
|
4882
|
+
|
|
4883
|
+
|
|
4884
|
+
|
|
4885
|
+
const $03ac4c4d4168e823$export$801126757ee0703d = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)((0, $391d62e0590dec97$export$2e2bcd8739ae039), {
|
|
4886
|
+
size: "auto",
|
|
4887
|
+
defaultVariants: {
|
|
4888
|
+
justify: "center"
|
|
4889
|
+
}
|
|
4890
|
+
});
|
|
4891
|
+
const $03ac4c4d4168e823$export$757c414c7d55357c = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)((0, $d22d8a7881f7b33f$export$2e2bcd8739ae039), {
|
|
4892
|
+
borderInlineStart: "1px solid $gray4",
|
|
4893
|
+
height: "100%",
|
|
4894
|
+
width: 1
|
|
4895
|
+
});
|
|
4896
|
+
const $03ac4c4d4168e823$export$70e89defd31d36ee = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)((0, $d22d8a7881f7b33f$export$2e2bcd8739ae039), (0, $22d93d8ad1e2d08d$export$5a7eb6284e7684f5), {
|
|
4897
|
+
size: 12,
|
|
4898
|
+
borderRadius: 16,
|
|
4899
|
+
borderWidth: "3px !important"
|
|
4900
|
+
});
|
|
4901
|
+
const $03ac4c4d4168e823$export$c187897b30d9e78 = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)((0, $391d62e0590dec97$export$2e2bcd8739ae039), {
|
|
4902
|
+
position: "relative"
|
|
4903
|
+
});
|
|
4904
|
+
const $03ac4c4d4168e823$export$17fcda98577239c4 = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)((0, $391d62e0590dec97$export$2e2bcd8739ae039), {
|
|
4905
|
+
pb: 20,
|
|
4906
|
+
pl: 12
|
|
4907
|
+
});
|
|
4908
|
+
|
|
4909
|
+
|
|
4910
|
+
function $cdf79c1aee6c465f$export$e6a97ba2cae5bb94({ items: items , render: render , labelKey: labelKey , getIndicator: getIndicator , hideLastItemTail: hideLastItemTail = true }) {
|
|
4911
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $d22d8a7881f7b33f$export$2e2bcd8739ae039), {
|
|
4912
|
+
children: items.map((item, index)=>{
|
|
4913
|
+
const indicator = getIndicator?.(item) ?? /*#__PURE__*/ (0, $kF5Av$jsx)((0, $03ac4c4d4168e823$export$70e89defd31d36ee), {
|
|
4914
|
+
color: "blue",
|
|
4915
|
+
variant: "outline"
|
|
4916
|
+
});
|
|
4917
|
+
const content = render?.(item) ?? item[labelKey];
|
|
4918
|
+
const isLast = index === items.length - 1;
|
|
4919
|
+
return /*#__PURE__*/ (0, $kF5Av$jsxs)((0, $03ac4c4d4168e823$export$c187897b30d9e78), {
|
|
4920
|
+
children: [
|
|
4921
|
+
/*#__PURE__*/ (0, $kF5Av$jsxs)((0, $391d62e0590dec97$export$2e2bcd8739ae039), {
|
|
4922
|
+
align: "center",
|
|
4923
|
+
stack: true,
|
|
4924
|
+
children: [
|
|
4925
|
+
/*#__PURE__*/ (0, $kF5Av$jsx)((0, $03ac4c4d4168e823$export$801126757ee0703d), {
|
|
4926
|
+
className: "indicator-container",
|
|
4927
|
+
children: indicator
|
|
4928
|
+
}),
|
|
4929
|
+
isLast && hideLastItemTail ? null : /*#__PURE__*/ (0, $kF5Av$jsx)((0, $03ac4c4d4168e823$export$757c414c7d55357c), {})
|
|
4930
|
+
]
|
|
4931
|
+
}),
|
|
4932
|
+
/*#__PURE__*/ (0, $kF5Av$jsx)((0, $03ac4c4d4168e823$export$17fcda98577239c4), {
|
|
4933
|
+
stretchX: true,
|
|
4934
|
+
children: content
|
|
4935
|
+
})
|
|
4936
|
+
]
|
|
4937
|
+
}, index);
|
|
4938
|
+
})
|
|
4939
|
+
});
|
|
4940
|
+
}
|
|
4941
|
+
|
|
4942
|
+
|
|
4943
|
+
|
|
4944
|
+
|
|
4945
|
+
|
|
4946
|
+
|
|
4947
|
+
|
|
4948
|
+
|
|
4949
|
+
|
|
4950
|
+
|
|
4951
|
+
|
|
4952
|
+
|
|
4953
|
+
|
|
4954
|
+
const $9da3b07c262d31a5$var$ModalOverlay = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)((0, $d22d8a7881f7b33f$export$2e2bcd8739ae039), {
|
|
4955
|
+
position: "fixed",
|
|
4956
|
+
top: 0,
|
|
4957
|
+
right: 0,
|
|
4958
|
+
bottom: 0,
|
|
4959
|
+
left: 0,
|
|
4960
|
+
display: "flex",
|
|
4961
|
+
alignItems: "center",
|
|
4962
|
+
justifyContent: "center",
|
|
4963
|
+
background: "$blackA8"
|
|
4964
|
+
});
|
|
4965
|
+
const $9da3b07c262d31a5$var$ModalContent = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)((0, $d22d8a7881f7b33f$export$2e2bcd8739ae039), {
|
|
4966
|
+
background: "white",
|
|
4967
|
+
borderRadius: 12
|
|
4968
|
+
});
|
|
4969
|
+
const $9da3b07c262d31a5$var$ModalFooter = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)((0, $391d62e0590dec97$export$2e2bcd8739ae039), {
|
|
4970
|
+
p: 16
|
|
4971
|
+
});
|
|
4972
|
+
const $9da3b07c262d31a5$var$ModalHead = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)((0, $391d62e0590dec97$export$2e2bcd8739ae039), {
|
|
4973
|
+
p: 16,
|
|
4974
|
+
borderBottom: "1px solid $gray3"
|
|
4975
|
+
});
|
|
4976
|
+
const $9da3b07c262d31a5$var$ModalBody = (0, $9ade691eb9e41cfb$export$3817b7a54a07cec7)((0, $391d62e0590dec97$export$2e2bcd8739ae039), {
|
|
4977
|
+
p: 16
|
|
4978
|
+
});
|
|
4979
|
+
function $9da3b07c262d31a5$export$c6fdb837b070b4ff({ state: state , children: children , ...props }) {
|
|
4980
|
+
const modalRef = $kF5Av$useRef(null);
|
|
4981
|
+
const { modalProps: modalProps , underlayProps: underlayProps } = (0, $kF5Av$useModalOverlay)(props, state, modalRef);
|
|
4982
|
+
if (!state.isOpen) return null;
|
|
4983
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)((0, $kF5Av$Overlay), {
|
|
4984
|
+
children: /*#__PURE__*/ (0, $kF5Av$jsx)($9da3b07c262d31a5$var$ModalOverlay, {
|
|
4985
|
+
...underlayProps,
|
|
4986
|
+
children: /*#__PURE__*/ (0, $kF5Av$jsx)((0, $d22d8a7881f7b33f$export$2e2bcd8739ae039), {
|
|
4987
|
+
...modalProps,
|
|
4988
|
+
ref: modalRef,
|
|
4989
|
+
children: children
|
|
4990
|
+
})
|
|
4991
|
+
})
|
|
4992
|
+
});
|
|
4993
|
+
}
|
|
4994
|
+
function $9da3b07c262d31a5$var$Dialog({ width: width = 400 , title: title , onCancel: onCancel , onConfirm: onConfirm , confirmLabel: confirmLabel = "Confirm" , cancelLabel: cancelLabel = "Cancel" , description: description , children: children , state: state , confirmButtonProps: confirmButtonProps , cancelButtonProps: cancelButtonProps }) {
|
|
4995
|
+
const dialogRef = $kF5Av$useRef(null);
|
|
4996
|
+
const { dialogProps: dialogProps , titleProps: titleProps } = (0, $kF5Av$useDialog)({
|
|
4997
|
+
role: "alertdialog"
|
|
4998
|
+
}, dialogRef);
|
|
4999
|
+
return /*#__PURE__*/ (0, $kF5Av$jsxs)($9da3b07c262d31a5$var$ModalContent, {
|
|
5000
|
+
css: {
|
|
5001
|
+
width: width
|
|
5002
|
+
},
|
|
5003
|
+
ref: dialogRef,
|
|
5004
|
+
...dialogProps,
|
|
5005
|
+
children: [
|
|
5006
|
+
/*#__PURE__*/ (0, $kF5Av$jsxs)($9da3b07c262d31a5$var$ModalHead, {
|
|
5007
|
+
stack: true,
|
|
5008
|
+
gap: 2,
|
|
5009
|
+
className: "modal-head",
|
|
5010
|
+
children: [
|
|
5011
|
+
title && /*#__PURE__*/ (0, $kF5Av$jsx)((0, $4fdef5d0844b7575$export$2e2bcd8739ae039), {
|
|
5012
|
+
weight: "medium",
|
|
5013
|
+
size: "lg",
|
|
5014
|
+
color: "black",
|
|
5015
|
+
...titleProps,
|
|
5016
|
+
as: "div",
|
|
5017
|
+
children: title
|
|
5018
|
+
}),
|
|
5019
|
+
description && /*#__PURE__*/ (0, $kF5Av$jsx)((0, $4fdef5d0844b7575$export$2e2bcd8739ae039), {
|
|
5020
|
+
lineHeight: "base",
|
|
5021
|
+
size: "sm",
|
|
5022
|
+
color: "light",
|
|
5023
|
+
as: "div",
|
|
5024
|
+
children: description
|
|
5025
|
+
})
|
|
5026
|
+
]
|
|
5027
|
+
}),
|
|
5028
|
+
/*#__PURE__*/ (0, $kF5Av$jsx)((0, $391d62e0590dec97$export$2e2bcd8739ae039), {
|
|
5029
|
+
className: "modal-body",
|
|
5030
|
+
children: children
|
|
5031
|
+
}),
|
|
5032
|
+
(onConfirm || onCancel) && /*#__PURE__*/ (0, $kF5Av$jsxs)($9da3b07c262d31a5$var$ModalFooter, {
|
|
5033
|
+
gap: 2,
|
|
5034
|
+
justify: "end",
|
|
5035
|
+
stretchX: true,
|
|
5036
|
+
children: [
|
|
5037
|
+
onCancel && /*#__PURE__*/ (0, $kF5Av$jsx)((0, $59636f06ede7befa$export$353f5b6fc5456de1), {
|
|
5038
|
+
...cancelButtonProps,
|
|
5039
|
+
onPress: state.close,
|
|
5040
|
+
variant: "outline",
|
|
5041
|
+
color: "gray",
|
|
5042
|
+
children: cancelLabel
|
|
5043
|
+
}),
|
|
5044
|
+
onConfirm && /*#__PURE__*/ (0, $kF5Av$jsx)((0, $59636f06ede7befa$export$353f5b6fc5456de1), {
|
|
5045
|
+
...confirmButtonProps,
|
|
5046
|
+
children: confirmLabel
|
|
5047
|
+
})
|
|
5048
|
+
]
|
|
5049
|
+
})
|
|
5050
|
+
]
|
|
5051
|
+
});
|
|
5052
|
+
}
|
|
5053
|
+
function $9da3b07c262d31a5$export$2b77a92f1a5ad772(props) {
|
|
5054
|
+
return /*#__PURE__*/ (0, $kF5Av$jsx)($9da3b07c262d31a5$export$c6fdb837b070b4ff, {
|
|
5055
|
+
...props,
|
|
5056
|
+
children: /*#__PURE__*/ (0, $kF5Av$jsx)($9da3b07c262d31a5$var$Dialog, {
|
|
5057
|
+
...props
|
|
5058
|
+
})
|
|
5059
|
+
});
|
|
5060
|
+
}
|
|
5061
|
+
function $9da3b07c262d31a5$export$33ffd74ebf07f060(props = {}) {
|
|
5062
|
+
const state = (0, $kF5Av$useOverlayTriggerState)(props);
|
|
5063
|
+
return state;
|
|
5064
|
+
}
|
|
5065
|
+
$9da3b07c262d31a5$export$2b77a92f1a5ad772.Body = $9da3b07c262d31a5$var$ModalBody;
|
|
5066
|
+
$9da3b07c262d31a5$export$2b77a92f1a5ad772.Footer = $9da3b07c262d31a5$var$ModalFooter;
|
|
5067
|
+
$9da3b07c262d31a5$export$2b77a92f1a5ad772.useModal = $9da3b07c262d31a5$export$33ffd74ebf07f060;
|
|
5068
|
+
|
|
5069
|
+
|
|
5070
|
+
|
|
5071
|
+
|
|
5072
|
+
|
|
5073
|
+
|
|
5074
|
+
|
|
5075
|
+
export {$d22d8a7881f7b33f$export$2e2bcd8739ae039 as Box, $07781ffe9a5ae30b$export$ef2184bd89960b14 as Grid, $07781ffe9a5ae30b$export$9eb849b9b922d396 as GridItem, $f09084fde7cc0470$export$2e2bcd8739ae039 as Column, $391d62e0590dec97$export$2e2bcd8739ae039 as Flex, $61dde3060428563f$export$f5b8910cec6cf069 as Input, $4fdef5d0844b7575$export$2e2bcd8739ae039 as Text, $7f7599719bb2a749$export$379139ebc1c2b235 as Textarea, $59636f06ede7befa$export$353f5b6fc5456de1 as Button, $39ebe5a116c39d6c$export$c25acd513dcc8062 as IconButton, $b5830f3daeb33bb2$export$48513f6b9f8ce62d as Checkbox, $5711a5825d7012d3$export$4aa08d5625cb8ead as CheckboxGroup, $b5c60232b181c4bd$export$d7b12c4107be0d61 as Radio, $b5c60232b181c4bd$export$a98f0dcb43a68a25 as RadioGroup, $f7762930a14621d8$export$f8afaea2e9656b91 as RadioCard, $604e914a624d5a0f$export$a26e8b900a29a570 as Select, $8370e4d32f002899$export$5109c6dd95d8fb00 as DatePicker, $2b3b1dc9b2ed8672$export$e2255cf6045e8d47 as Avatar, $c0386802302e82e5$export$1a5cb5295a7d2749 as FileUploader, $4724a2c0da358be5$export$1ff3c3f08ae963c0 as Separator, $12105c91de6d0b91$export$b25a304ec7d746bb as Progress, $8eafe9f534066907$export$3b0d6d7590275603 as Loader, $d20773ec72923119$export$be92b6f5f03c0fe9 as Root, $d20773ec72923119$export$6d08773d2e66f8f2 as Item, $827cce002ec16c4b$export$3288d34c523a1192 as Tag, $4fd64b5726f94f78$export$b5d5cf8927ab7262 as Switch, $fd0a1cc8c4288e44$export$dbada5ace43900dd as ColorTray, $d2eff3f3a30a8f9a$export$50e381fea3a45244 as IconTray, $ea604f064e7efbe1$export$ea98c603db73aee7 as Sticker, $b13859906e03ed0f$export$e44a253a59704894 as DropdownMenu, $40e1dcf58e198ee9$export$1aaa3deaa90ea306 as Tabs, $2c3cbfa2e31957ff$export$54ec01a60f47d33d as Table, $cdf79c1aee6c465f$export$e6a97ba2cae5bb94 as Timeline, $9da3b07c262d31a5$export$2b77a92f1a5ad772 as Modal, $9ade691eb9e41cfb$export$3817b7a54a07cec7 as parrot, $9ade691eb9e41cfb$export$bca14c5b3b88a9c9 as ParrotTheme, $9ade691eb9e41cfb$export$e506a1d27d1eaa20 as ParrotThemeConfig};
|
|
4669
5076
|
//# sourceMappingURL=module.js.map
|