ixia-ui-react 1.4.6 → 1.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +84 -14
- package/dist/index.js +385 -221
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3,9 +3,9 @@ import { clsx } from "clsx";
|
|
|
3
3
|
import { extendTailwindMerge } from "tailwind-merge";
|
|
4
4
|
import { cva } from "class-variance-authority";
|
|
5
5
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
|
+
import React, { Children, Fragment as Fragment$1, createContext, createElement, isValidElement, useContext, useEffect, useId, useRef, useState } from "react";
|
|
6
7
|
import { ArrowsDownUpIcon, CaretDownIcon, CaretLeftIcon, CaretLineLeftIcon, CaretLineRightIcon, CaretRightIcon, CaretUpDownIcon, CaretUpIcon, CheckCircleIcon, CheckIcon, CircleNotchIcon, CopyIcon, DotsThreeIcon, DownloadIcon, EyeClosedIcon, EyeIcon, FileArrowUpIcon, FolderIcon, FolderOpenIcon, FolderSimpleIcon, FunnelIcon, FunnelSimpleIcon, InfoIcon, LockSimpleIcon, LockSimpleOpenIcon, MagnifyingGlassIcon, MinusIcon, PercentIcon, PlusIcon, SortAscendingIcon, SortDescendingIcon, TrashIcon, UploadIcon, WarningCircleIcon, WarningIcon, XCircleIcon, XIcon } from "@phosphor-icons/react";
|
|
7
8
|
import { AlertDialog as AlertDialog$1, Button as Button$1, Checkbox as Checkbox$1, CheckboxGroup as CheckboxGroup$1, Drawer as Drawer$1, Meter as Meter$1, NavigationMenu as NavigationMenu$1, OTPField, PreviewCard as PreviewCard$1, Radio as Radio$1, RadioGroup as RadioGroup$1, Slider as Slider$1 } from "@base-ui/react";
|
|
8
|
-
import React, { Children, Fragment as Fragment$1, createContext, createElement, isValidElement, useContext, useEffect, useId, useRef, useState } from "react";
|
|
9
9
|
import { Autocomplete as Autocomplete$1 } from "@base-ui/react/autocomplete";
|
|
10
10
|
import { Avatar as Avatar$1 } from "@base-ui/react/avatar";
|
|
11
11
|
import { DayButton, DayPicker, getDefaultClassNames, isDateRange, labelDayButton } from "@daypicker/react";
|
|
@@ -105,25 +105,124 @@ function Accordion$2({ withSeparator = true, variant, className, ref, ...props }
|
|
|
105
105
|
});
|
|
106
106
|
}
|
|
107
107
|
//#endregion
|
|
108
|
+
//#region src/utils/date-time.ts
|
|
109
|
+
const formatDate = (date, locale, options) => new Intl.DateTimeFormat(locale, options).format(date);
|
|
110
|
+
//#endregion
|
|
111
|
+
//#region src/components/icon/default-icons.ts
|
|
112
|
+
/** Phosphor icons used when the consumer does not supply their own. */
|
|
113
|
+
const defaultIcons = {
|
|
114
|
+
add: PlusIcon,
|
|
115
|
+
chevronDown: CaretDownIcon,
|
|
116
|
+
chevronLeft: CaretLeftIcon,
|
|
117
|
+
chevronRight: CaretRightIcon,
|
|
118
|
+
chevronUp: CaretUpIcon,
|
|
119
|
+
chevronsUpDown: CaretUpDownIcon,
|
|
120
|
+
close: XIcon,
|
|
121
|
+
columnFilter: FunnelSimpleIcon,
|
|
122
|
+
copy: CopyIcon,
|
|
123
|
+
delete: TrashIcon,
|
|
124
|
+
download: DownloadIcon,
|
|
125
|
+
ellipsis: DotsThreeIcon,
|
|
126
|
+
error: WarningCircleIcon,
|
|
127
|
+
fieldError: XCircleIcon,
|
|
128
|
+
fileUpload: FileArrowUpIcon,
|
|
129
|
+
filter: FunnelIcon,
|
|
130
|
+
firstPage: CaretLineLeftIcon,
|
|
131
|
+
folder: FolderIcon,
|
|
132
|
+
folderExpandAll: FolderSimpleIcon,
|
|
133
|
+
folderOpen: FolderOpenIcon,
|
|
134
|
+
hidden: EyeClosedIcon,
|
|
135
|
+
info: InfoIcon,
|
|
136
|
+
lastPage: CaretLineRightIcon,
|
|
137
|
+
locked: LockSimpleIcon,
|
|
138
|
+
minus: MinusIcon,
|
|
139
|
+
percent: PercentIcon,
|
|
140
|
+
search: MagnifyingGlassIcon,
|
|
141
|
+
selected: CheckIcon,
|
|
142
|
+
sort: ArrowsDownUpIcon,
|
|
143
|
+
sortAscending: SortAscendingIcon,
|
|
144
|
+
sortDescending: SortDescendingIcon,
|
|
145
|
+
spinner: CircleNotchIcon,
|
|
146
|
+
success: CheckCircleIcon,
|
|
147
|
+
unlocked: LockSimpleOpenIcon,
|
|
148
|
+
upload: UploadIcon,
|
|
149
|
+
visible: EyeIcon,
|
|
150
|
+
warning: WarningIcon
|
|
151
|
+
};
|
|
152
|
+
//#endregion
|
|
153
|
+
//#region src/components/icon/icon-context.ts
|
|
154
|
+
const IconContext = React.createContext({ icons: {} });
|
|
155
|
+
//#endregion
|
|
156
|
+
//#region src/components/icon/icon.tsx
|
|
157
|
+
function Icon({ name, weight, ...props }) {
|
|
158
|
+
const context = React.useContext(IconContext), Custom = context.icons[name], Default = defaultIcons[name];
|
|
159
|
+
if (Custom) return /* @__PURE__ */ jsx(Custom, {
|
|
160
|
+
"aria-hidden": "true",
|
|
161
|
+
...props
|
|
162
|
+
});
|
|
163
|
+
return /* @__PURE__ */ jsx(Default, {
|
|
164
|
+
"aria-hidden": "true",
|
|
165
|
+
weight: weight ?? context.weight,
|
|
166
|
+
...props
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
//#endregion
|
|
170
|
+
//#region src/components/icon/icon-provider.tsx
|
|
171
|
+
/**
|
|
172
|
+
* Replaces the default Phosphor icons and sets their weight for every library component below it.
|
|
173
|
+
* Providers can be nested; inner providers override only the icon names and weight they set.
|
|
174
|
+
*/
|
|
175
|
+
function IconProvider({ icons, weight, children }) {
|
|
176
|
+
const parent = React.useContext(IconContext), value = React.useMemo(() => ({
|
|
177
|
+
icons: {
|
|
178
|
+
...parent.icons,
|
|
179
|
+
...icons
|
|
180
|
+
},
|
|
181
|
+
weight: weight ?? parent.weight
|
|
182
|
+
}), [
|
|
183
|
+
parent,
|
|
184
|
+
icons,
|
|
185
|
+
weight
|
|
186
|
+
]);
|
|
187
|
+
return /* @__PURE__ */ jsx(IconContext, {
|
|
188
|
+
value,
|
|
189
|
+
children
|
|
190
|
+
});
|
|
191
|
+
}
|
|
192
|
+
//#endregion
|
|
193
|
+
//#region src/components/accordion/accordion-expand-icon.tsx
|
|
194
|
+
function AccordionExpandIcon({ className, children, ref, ...props }) {
|
|
195
|
+
return /* @__PURE__ */ jsx("div", {
|
|
196
|
+
className: cn("ml-auto shrink-0 text-on-surface-variant transition-transform duration-200 ease-out group-data-panel-open:rotate-180", className),
|
|
197
|
+
ref,
|
|
198
|
+
...props,
|
|
199
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, { name: "chevronDown" })
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
//#endregion
|
|
108
203
|
//#region src/components/accordion/accordion-header.tsx
|
|
109
204
|
function AccordionHeader({ className, children, ref, ...props }) {
|
|
110
205
|
return /* @__PURE__ */ jsx(Accordion$1.Header, {
|
|
111
206
|
className: cn("", className),
|
|
112
207
|
ref,
|
|
113
208
|
...props,
|
|
114
|
-
children: /* @__PURE__ */
|
|
209
|
+
children: /* @__PURE__ */ jsx(Accordion$1.Trigger, {
|
|
115
210
|
className: cn("group flex min-h-2xl w-full items-center justify-between gap-sm py-sm pr-sm pl-md hover:cursor-pointer"),
|
|
116
|
-
children
|
|
117
|
-
className: "grid auto-rows-min items-center gap-x-sm has-data-[slot=accordion-icon]:grid-cols-[auto_1fr] has-data-[slot=accordion-subtitle]:grid-rows-[auto_auto] has-data-[slot=accordion-subtitle]:**:data-[slot=accordion-icon]:row-span-2",
|
|
118
|
-
children
|
|
119
|
-
}), /* @__PURE__ */ jsx(CaretDownIcon, {
|
|
120
|
-
className: "ml-auto shrink-0 text-on-surface-variant transition-transform duration-200 ease-out group-data-panel-open:rotate-180",
|
|
121
|
-
weight: "bold"
|
|
122
|
-
})]
|
|
211
|
+
children
|
|
123
212
|
})
|
|
124
213
|
});
|
|
125
214
|
}
|
|
126
215
|
//#endregion
|
|
216
|
+
//#region src/components/accordion/accordion-header-content.tsx
|
|
217
|
+
function AccordionHeaderContent({ className, children, ref, ...props }) {
|
|
218
|
+
return /* @__PURE__ */ jsx("div", {
|
|
219
|
+
className: cn("grid auto-rows-min items-center gap-x-sm has-data-[slot=accordion-icon]:grid-cols-[auto_1fr] has-data-[slot=accordion-subtitle]:grid-rows-[auto_auto] has-data-[slot=accordion-subtitle]:**:data-[slot=accordion-icon]:row-span-2", className),
|
|
220
|
+
ref,
|
|
221
|
+
...props,
|
|
222
|
+
children
|
|
223
|
+
});
|
|
224
|
+
}
|
|
225
|
+
//#endregion
|
|
127
226
|
//#region src/components/accordion/accordion-icon.tsx
|
|
128
227
|
function AccordionIcon({ className, ref, ...props }) {
|
|
129
228
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -183,7 +282,9 @@ function AccordionTitle({ className, ref, ...props }) {
|
|
|
183
282
|
//#endregion
|
|
184
283
|
//#region src/components/accordion/index.ts
|
|
185
284
|
const Accordion = Object.assign(Accordion$2, {
|
|
285
|
+
ExpandIcon: AccordionExpandIcon,
|
|
186
286
|
Header: AccordionHeader,
|
|
287
|
+
HeaderContent: AccordionHeaderContent,
|
|
187
288
|
Icon: AccordionIcon,
|
|
188
289
|
Item: AccordionItem,
|
|
189
290
|
Panel: AccordionPanel,
|
|
@@ -1262,11 +1363,11 @@ function Breadcrumb$1({ className, ref, ...props }) {
|
|
|
1262
1363
|
//#endregion
|
|
1263
1364
|
//#region src/components/breadcrumb/breadcrumb-ellipsis.tsx
|
|
1264
1365
|
function BreadcrumbEllipsis({ className, children, ref, ...props }) {
|
|
1265
|
-
return /* @__PURE__ */
|
|
1366
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1266
1367
|
className: cn("flex size-md items-center justify-center rounded-full text-on-surface-variant transition-all hover:cursor-pointer hover:bg-neutral-container hover:text-neutral-on-container active:scale-[0.98] active:bg-neutral-container disabled:opacity-50 [&>svg]:size-sm", className),
|
|
1267
1368
|
ref,
|
|
1268
1369
|
...props,
|
|
1269
|
-
children:
|
|
1370
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, { name: "ellipsis" })
|
|
1270
1371
|
});
|
|
1271
1372
|
}
|
|
1272
1373
|
//#endregion
|
|
@@ -1289,12 +1390,12 @@ function BreadcrumbLink({ className, ref, ...props }) {
|
|
|
1289
1390
|
}
|
|
1290
1391
|
//#endregion
|
|
1291
1392
|
//#region src/components/breadcrumb/breadcrumb-separator.tsx
|
|
1292
|
-
function BreadcrumbSeparator({ className, ref, ...props }) {
|
|
1393
|
+
function BreadcrumbSeparator({ className, children, ref, ...props }) {
|
|
1293
1394
|
return /* @__PURE__ */ jsx("div", {
|
|
1294
1395
|
className: cn("text-on-surface-variant [&>svg]:size-xs", className),
|
|
1295
1396
|
ref,
|
|
1296
1397
|
...props,
|
|
1297
|
-
children: /* @__PURE__ */ jsx(
|
|
1398
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, { name: "chevronRight" })
|
|
1298
1399
|
});
|
|
1299
1400
|
}
|
|
1300
1401
|
//#endregion
|
|
@@ -1564,48 +1665,16 @@ function Calendar$1({ defaultState, children }) {
|
|
|
1564
1665
|
});
|
|
1565
1666
|
}
|
|
1566
1667
|
//#endregion
|
|
1567
|
-
//#region src/components/calendar/calendar-
|
|
1568
|
-
function
|
|
1569
|
-
return /* @__PURE__ */ jsx(
|
|
1570
|
-
"data-slot": "calendar-footer",
|
|
1571
|
-
className: cn("mt-xs flex flex-col gap-3xs border-t border-border pt-xs", className),
|
|
1572
|
-
ref,
|
|
1573
|
-
...props,
|
|
1574
|
-
children
|
|
1575
|
-
});
|
|
1576
|
-
}
|
|
1577
|
-
//#endregion
|
|
1578
|
-
//#region src/components/calendar/calendar-header.tsx
|
|
1579
|
-
function CalendarHeader({ className, children, ref, ...props }) {
|
|
1580
|
-
return /* @__PURE__ */ jsx("div", {
|
|
1581
|
-
className: cn("", className),
|
|
1582
|
-
ref,
|
|
1583
|
-
...props,
|
|
1584
|
-
children
|
|
1585
|
-
});
|
|
1586
|
-
}
|
|
1587
|
-
//#endregion
|
|
1588
|
-
//#region src/components/calendar/calendar.types.ts
|
|
1589
|
-
const calendarPanelVariants = cva("w-fit", {
|
|
1590
|
-
compoundVariants: [{
|
|
1591
|
-
className: "rounded-2xl p-sm",
|
|
1592
|
-
variant: ["elevated", "outline"]
|
|
1593
|
-
}],
|
|
1594
|
-
defaultVariants: { variant: "elevated" },
|
|
1595
|
-
variants: { variant: {
|
|
1596
|
-
elevated: "bg-surface shadow-2xs",
|
|
1597
|
-
ghost: "bg-transparent",
|
|
1598
|
-
outline: "border border-border"
|
|
1599
|
-
} }
|
|
1600
|
-
});
|
|
1601
|
-
//#endregion
|
|
1602
|
-
//#region src/components/calendar/calendar-panel.tsx
|
|
1603
|
-
function CalendarPanel({ variant, className, children, ref, ...props }) {
|
|
1604
|
-
return /* @__PURE__ */ jsx("div", {
|
|
1605
|
-
className: cn(calendarPanelVariants({ variant }), className),
|
|
1606
|
-
ref,
|
|
1668
|
+
//#region src/components/calendar/calendar-day-button.tsx
|
|
1669
|
+
function CalendarDayButton({ className, modifiers, ...props }) {
|
|
1670
|
+
return /* @__PURE__ */ jsx(DayButton, {
|
|
1607
1671
|
...props,
|
|
1608
|
-
|
|
1672
|
+
modifiers,
|
|
1673
|
+
className: cn(buttonVariants({
|
|
1674
|
+
size: "medium",
|
|
1675
|
+
tone: "neutral",
|
|
1676
|
+
variant: "ghost"
|
|
1677
|
+
}), "text-inherit hover:bg-brand-container hover:text-brand-on-container", modifiers.selected && "hover:bg-brand-default hover:text-brand-on-default", className)
|
|
1609
1678
|
});
|
|
1610
1679
|
}
|
|
1611
1680
|
//#endregion
|
|
@@ -1662,7 +1731,7 @@ function SelectItem({ className, children, ref, ...props }) {
|
|
|
1662
1731
|
children
|
|
1663
1732
|
}), /* @__PURE__ */ jsx(Select$1.ItemIndicator, {
|
|
1664
1733
|
className: "place-self-end self-center [&>svg]:size-sm",
|
|
1665
|
-
children: /* @__PURE__ */ jsx(
|
|
1734
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "selected" })
|
|
1666
1735
|
})]
|
|
1667
1736
|
});
|
|
1668
1737
|
}
|
|
@@ -1687,17 +1756,17 @@ function SelectPopup({ className, children, ref, ...props }) {
|
|
|
1687
1756
|
children: [
|
|
1688
1757
|
/* @__PURE__ */ jsx(Select$1.ScrollUpArrow, {
|
|
1689
1758
|
className: "top-0 right-0 z-[1px] flex h-md w-full cursor-default items-center justify-center rounded-xl bg-surface-2 before:absolute before:left-0 before:size-full before:content-[''] data-[side=none]:before:-top-full",
|
|
1690
|
-
children: /* @__PURE__ */ jsx(
|
|
1691
|
-
|
|
1692
|
-
|
|
1759
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
1760
|
+
name: "chevronUp",
|
|
1761
|
+
className: "size-sm"
|
|
1693
1762
|
})
|
|
1694
1763
|
}),
|
|
1695
1764
|
children,
|
|
1696
1765
|
/* @__PURE__ */ jsx(Select$1.ScrollDownArrow, {
|
|
1697
1766
|
className: "right-0 bottom-0 z-[1px] flex h-md w-full cursor-default items-center justify-center rounded-xl bg-surface-2 before:absolute before:left-0 before:size-full before:content-[''] data-[side=none]:before:-bottom-full",
|
|
1698
|
-
children: /* @__PURE__ */ jsx(
|
|
1699
|
-
|
|
1700
|
-
|
|
1767
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
1768
|
+
name: "chevronDown",
|
|
1769
|
+
className: "size-sm"
|
|
1701
1770
|
})
|
|
1702
1771
|
})
|
|
1703
1772
|
]
|
|
@@ -1771,25 +1840,14 @@ const Select = Object.assign(Select$2, {
|
|
|
1771
1840
|
Value: SelectValue
|
|
1772
1841
|
});
|
|
1773
1842
|
//#endregion
|
|
1774
|
-
//#region src/components/calendar/calendar-
|
|
1775
|
-
function CalendarDayButton({ className, modifiers, ...props }) {
|
|
1776
|
-
return /* @__PURE__ */ jsx(DayButton, {
|
|
1777
|
-
...props,
|
|
1778
|
-
modifiers,
|
|
1779
|
-
className: cn(buttonVariants({
|
|
1780
|
-
size: "medium",
|
|
1781
|
-
tone: "neutral",
|
|
1782
|
-
variant: "ghost"
|
|
1783
|
-
}), "text-inherit hover:bg-brand-container hover:text-brand-on-container", modifiers.selected && "hover:bg-brand-default hover:text-brand-on-default", className)
|
|
1784
|
-
});
|
|
1785
|
-
}
|
|
1843
|
+
//#region src/components/calendar/calendar-dropdown.tsx
|
|
1786
1844
|
function createSelectTarget(value) {
|
|
1787
1845
|
const element = document.createElement("select"), option = Object.assign(document.createElement("option"), { value });
|
|
1788
1846
|
element.append(option);
|
|
1789
1847
|
element.value = value;
|
|
1790
1848
|
return element;
|
|
1791
1849
|
}
|
|
1792
|
-
function CalendarDropdown({
|
|
1850
|
+
function CalendarDropdown({ children, className, disabled, value, options, onChange, "aria-label": ariaLabel }) {
|
|
1793
1851
|
const handleValueChange = (newValue) => {
|
|
1794
1852
|
if (onChange) {
|
|
1795
1853
|
const element = createSelectTarget(newValue ?? "");
|
|
@@ -1813,12 +1871,14 @@ function CalendarDropdown({ options, onChange, value, "aria-label": ariaLabel })
|
|
|
1813
1871
|
}
|
|
1814
1872
|
};
|
|
1815
1873
|
return /* @__PURE__ */ jsxs(Select, {
|
|
1874
|
+
disabled,
|
|
1816
1875
|
value: value?.toString(),
|
|
1817
1876
|
onValueChange: handleValueChange,
|
|
1818
1877
|
children: [/* @__PURE__ */ jsxs(SelectTrigger, {
|
|
1819
1878
|
variant: "ghost",
|
|
1820
1879
|
"aria-label": ariaLabel,
|
|
1821
|
-
|
|
1880
|
+
className: cn("", className),
|
|
1881
|
+
children: [/* @__PURE__ */ jsx(SelectValue, { children: options?.find((option) => option.value === value)?.label }), children ?? /* @__PURE__ */ jsx(SelectIcon, { children: /* @__PURE__ */ jsx(Icon, { name: "chevronsUpDown" }) })]
|
|
1822
1882
|
}), /* @__PURE__ */ jsx(SelectPopup, { children: /* @__PURE__ */ jsx(SelectList, { children: options?.map((option) => /* @__PURE__ */ jsx(SelectItem, {
|
|
1823
1883
|
value: option.value.toString(),
|
|
1824
1884
|
disabled: option.disabled,
|
|
@@ -1826,30 +1886,88 @@ function CalendarDropdown({ options, onChange, value, "aria-label": ariaLabel })
|
|
|
1826
1886
|
}, option.value)) }) })]
|
|
1827
1887
|
});
|
|
1828
1888
|
}
|
|
1829
|
-
|
|
1830
|
-
|
|
1889
|
+
//#endregion
|
|
1890
|
+
//#region src/components/calendar/calendar-footer.tsx
|
|
1891
|
+
function CalendarFooter({ className, children, ref, ...props }) {
|
|
1892
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1893
|
+
"data-slot": "calendar-footer",
|
|
1894
|
+
className: cn("mt-xs flex flex-col gap-3xs border-t border-border pt-xs", className),
|
|
1895
|
+
ref,
|
|
1831
1896
|
...props,
|
|
1897
|
+
children
|
|
1898
|
+
});
|
|
1899
|
+
}
|
|
1900
|
+
//#endregion
|
|
1901
|
+
//#region src/components/calendar/calendar-header.tsx
|
|
1902
|
+
function CalendarHeader({ className, children, ref, ...props }) {
|
|
1903
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1904
|
+
className: cn("", className),
|
|
1905
|
+
ref,
|
|
1906
|
+
...props,
|
|
1907
|
+
children
|
|
1908
|
+
});
|
|
1909
|
+
}
|
|
1910
|
+
//#endregion
|
|
1911
|
+
//#region src/components/calendar/calendar-next-month-button.tsx
|
|
1912
|
+
function CalendarNextMonthButton({ className, children, ...props }) {
|
|
1913
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
1832
1914
|
variant: "ghost",
|
|
1833
1915
|
tone: "neutral",
|
|
1834
|
-
size: "
|
|
1835
|
-
className: cn("
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
children: /* @__PURE__ */ jsx(CaretRightIcon, { weight: "bold" })
|
|
1916
|
+
size: "small",
|
|
1917
|
+
className: cn("", className),
|
|
1918
|
+
...props,
|
|
1919
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, { name: "chevronRight" })
|
|
1839
1920
|
});
|
|
1840
1921
|
}
|
|
1841
|
-
|
|
1922
|
+
//#endregion
|
|
1923
|
+
//#region src/components/calendar/calendar.types.ts
|
|
1924
|
+
const calendarPanelVariants = cva("w-fit", {
|
|
1925
|
+
compoundVariants: [{
|
|
1926
|
+
className: "rounded-2xl p-sm",
|
|
1927
|
+
variant: ["elevated", "outline"]
|
|
1928
|
+
}],
|
|
1929
|
+
defaultVariants: { variant: "elevated" },
|
|
1930
|
+
variants: { variant: {
|
|
1931
|
+
elevated: "bg-surface shadow-2xs",
|
|
1932
|
+
ghost: "bg-transparent",
|
|
1933
|
+
outline: "border border-border"
|
|
1934
|
+
} }
|
|
1935
|
+
});
|
|
1936
|
+
//#endregion
|
|
1937
|
+
//#region src/components/calendar/calendar-panel.tsx
|
|
1938
|
+
function CalendarPanel({ variant, className, children, ref, ...props }) {
|
|
1939
|
+
return /* @__PURE__ */ jsx("div", {
|
|
1940
|
+
className: cn(calendarPanelVariants({ variant }), className),
|
|
1941
|
+
ref,
|
|
1942
|
+
...props,
|
|
1943
|
+
children
|
|
1944
|
+
});
|
|
1945
|
+
}
|
|
1946
|
+
//#endregion
|
|
1947
|
+
//#region src/components/calendar/calendar-chevron.tsx
|
|
1948
|
+
const chevronIcons = {
|
|
1949
|
+
down: "chevronDown",
|
|
1950
|
+
left: "chevronLeft",
|
|
1951
|
+
right: "chevronRight",
|
|
1952
|
+
up: "chevronUp"
|
|
1953
|
+
};
|
|
1954
|
+
function CalendarChevron({ orientation = "left" }) {
|
|
1955
|
+
return /* @__PURE__ */ jsx(Icon, { name: chevronIcons[orientation] });
|
|
1956
|
+
}
|
|
1957
|
+
//#endregion
|
|
1958
|
+
//#region src/components/calendar/calendar-previous-month-button.tsx
|
|
1959
|
+
function CalendarPreviousMonthButton({ className, children, ...props }) {
|
|
1842
1960
|
return /* @__PURE__ */ jsx(Button, {
|
|
1843
1961
|
...props,
|
|
1844
1962
|
variant: "ghost",
|
|
1845
1963
|
tone: "neutral",
|
|
1846
|
-
size: "
|
|
1847
|
-
className: cn("
|
|
1848
|
-
|
|
1849
|
-
disabled,
|
|
1850
|
-
children: /* @__PURE__ */ jsx(CaretLeftIcon, { weight: "bold" })
|
|
1964
|
+
size: "small",
|
|
1965
|
+
className: cn("", className),
|
|
1966
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, { name: "chevronLeft" })
|
|
1851
1967
|
});
|
|
1852
1968
|
}
|
|
1969
|
+
//#endregion
|
|
1970
|
+
//#region src/components/calendar/calendar-picker.tsx
|
|
1853
1971
|
function getMultipleSelected(selectedDates) {
|
|
1854
1972
|
if (Array.isArray(selectedDates)) return selectedDates;
|
|
1855
1973
|
}
|
|
@@ -1864,6 +1982,13 @@ function labelDayButtonWithVisibleText(...args) {
|
|
|
1864
1982
|
return `${dateLib?.format(date, "d") ?? String(date.getDate())}, ${labelDayButton(date, modifiers, options, dateLib)}`;
|
|
1865
1983
|
}
|
|
1866
1984
|
const defaultClassNames = getDefaultClassNames();
|
|
1985
|
+
const defaultComponents = {
|
|
1986
|
+
Chevron: CalendarChevron,
|
|
1987
|
+
DayButton: CalendarDayButton,
|
|
1988
|
+
Dropdown: CalendarDropdown,
|
|
1989
|
+
NextMonthButton: CalendarNextMonthButton,
|
|
1990
|
+
PreviousMonthButton: CalendarPreviousMonthButton
|
|
1991
|
+
};
|
|
1867
1992
|
const calendarClassNames = {
|
|
1868
1993
|
caption_label: "style-text-strong-0",
|
|
1869
1994
|
day: cn("size-xl! rounded-full style-text-default-0 transition-colors hover:bg-brand-container hover:text-brand-on-container data-selected:text-brand-on-default data-selected:hover:bg-brand-default", defaultClassNames.day),
|
|
@@ -1881,13 +2006,7 @@ const calendarClassNames = {
|
|
|
1881
2006
|
week: cn("", defaultClassNames.week),
|
|
1882
2007
|
weekdays: cn("style-text-default-0 text-on-surface-muted", defaultClassNames.weekdays)
|
|
1883
2008
|
};
|
|
1884
|
-
|
|
1885
|
-
DayButton: CalendarDayButton,
|
|
1886
|
-
Dropdown: CalendarDropdown,
|
|
1887
|
-
NextMonthButton: CalendarNextMonthButton,
|
|
1888
|
-
PreviousMonthButton: CalendarPreviousMonthButton
|
|
1889
|
-
};
|
|
1890
|
-
function CalendarPicker({ className, mode = "single", selected, onSelect, ...props }) {
|
|
2009
|
+
function CalendarPicker({ className, components, mode = "single", selected, onSelect, ...props }) {
|
|
1891
2010
|
const { state, dispatch } = useCalendar(), selectedValue = selected ?? state.selectedDates, handleSelect = (next) => {
|
|
1892
2011
|
dispatch({
|
|
1893
2012
|
payload: next,
|
|
@@ -1897,7 +2016,10 @@ function CalendarPicker({ className, mode = "single", selected, onSelect, ...pro
|
|
|
1897
2016
|
}, baseProps = {
|
|
1898
2017
|
className,
|
|
1899
2018
|
classNames: calendarClassNames,
|
|
1900
|
-
components:
|
|
2019
|
+
components: {
|
|
2020
|
+
...defaultComponents,
|
|
2021
|
+
...components
|
|
2022
|
+
},
|
|
1901
2023
|
labels: { labelDayButton: labelDayButtonWithVisibleText },
|
|
1902
2024
|
...props
|
|
1903
2025
|
};
|
|
@@ -1923,9 +2045,6 @@ function CalendarPicker({ className, mode = "single", selected, onSelect, ...pro
|
|
|
1923
2045
|
}
|
|
1924
2046
|
}
|
|
1925
2047
|
//#endregion
|
|
1926
|
-
//#region src/utils/date-time.ts
|
|
1927
|
-
const formatDate = (date, locale, options) => new Intl.DateTimeFormat(locale, options).format(date);
|
|
1928
|
-
//#endregion
|
|
1929
2048
|
//#region src/components/calendar/calendar-summary.tsx
|
|
1930
2049
|
const dateFormatOptions = {
|
|
1931
2050
|
day: "numeric",
|
|
@@ -1961,10 +2080,14 @@ function CalendarSummary({ className, children, ref, ...props }) {
|
|
|
1961
2080
|
//#endregion
|
|
1962
2081
|
//#region src/components/calendar/index.ts
|
|
1963
2082
|
const Calendar = Object.assign(Calendar$1, {
|
|
2083
|
+
DayButton: CalendarDayButton,
|
|
2084
|
+
Dropdown: CalendarDropdown,
|
|
1964
2085
|
Footer: CalendarFooter,
|
|
1965
2086
|
Header: CalendarHeader,
|
|
2087
|
+
NextMonthButton: CalendarNextMonthButton,
|
|
1966
2088
|
Panel: CalendarPanel,
|
|
1967
2089
|
Picker: CalendarPicker,
|
|
2090
|
+
PreviousMonthButton: CalendarPreviousMonthButton,
|
|
1968
2091
|
Summary: CalendarSummary
|
|
1969
2092
|
});
|
|
1970
2093
|
//#endregion
|
|
@@ -2270,13 +2393,13 @@ function CheckboxIndicator({ className, ...props }) {
|
|
|
2270
2393
|
className: cn("flex", className),
|
|
2271
2394
|
...props,
|
|
2272
2395
|
render: (innerProps, state) => {
|
|
2273
|
-
if (state.indeterminate) return /* @__PURE__ */ jsx(
|
|
2274
|
-
|
|
2396
|
+
if (state.indeterminate) return /* @__PURE__ */ jsx(Icon, {
|
|
2397
|
+
name: "minus",
|
|
2275
2398
|
...innerProps,
|
|
2276
2399
|
className: "text-accent-default"
|
|
2277
2400
|
});
|
|
2278
|
-
return /* @__PURE__ */ jsx(
|
|
2279
|
-
|
|
2401
|
+
return /* @__PURE__ */ jsx(Icon, {
|
|
2402
|
+
name: "selected",
|
|
2280
2403
|
...innerProps
|
|
2281
2404
|
});
|
|
2282
2405
|
}
|
|
@@ -2358,12 +2481,12 @@ function CodeBlockActions({ className, ref, ...props }) {
|
|
|
2358
2481
|
//#region src/components/code-block/code-block-copy.tsx
|
|
2359
2482
|
const COPY_TIMEOUT = 2e3;
|
|
2360
2483
|
const COPY_STATUS_ICON = {
|
|
2361
|
-
false: /* @__PURE__ */ jsx(
|
|
2362
|
-
|
|
2484
|
+
false: /* @__PURE__ */ jsx(Icon, {
|
|
2485
|
+
name: "copy",
|
|
2363
2486
|
className: "animate-in zoom-in"
|
|
2364
2487
|
}),
|
|
2365
|
-
true: /* @__PURE__ */ jsx(
|
|
2366
|
-
|
|
2488
|
+
true: /* @__PURE__ */ jsx(Icon, {
|
|
2489
|
+
name: "selected",
|
|
2367
2490
|
className: "animate-in zoom-in"
|
|
2368
2491
|
})
|
|
2369
2492
|
};
|
|
@@ -2395,12 +2518,12 @@ function CodeBlockCopy({ className, children, disabled, ref, ...props }) {
|
|
|
2395
2518
|
//#region src/components/code-block/code-block-download.tsx
|
|
2396
2519
|
const DOWNLOAD_TIMEOUT = 2e3;
|
|
2397
2520
|
const DOWNLOAD_STATUS_ICON = {
|
|
2398
|
-
false: /* @__PURE__ */ jsx(
|
|
2399
|
-
|
|
2521
|
+
false: /* @__PURE__ */ jsx(Icon, {
|
|
2522
|
+
name: "download",
|
|
2400
2523
|
className: "animate-in zoom-in"
|
|
2401
2524
|
}),
|
|
2402
|
-
true: /* @__PURE__ */ jsx(
|
|
2403
|
-
|
|
2525
|
+
true: /* @__PURE__ */ jsx(Icon, {
|
|
2526
|
+
name: "selected",
|
|
2404
2527
|
className: "animate-in zoom-in"
|
|
2405
2528
|
})
|
|
2406
2529
|
};
|
|
@@ -2472,7 +2595,7 @@ function CodeBlockSelect({ className, children, ref, ...props }) {
|
|
|
2472
2595
|
ref,
|
|
2473
2596
|
...props,
|
|
2474
2597
|
variant: "ghost",
|
|
2475
|
-
children: [/* @__PURE__ */ jsx(SelectValue, { children: (value) => items.find((item) => item.id === value)?.label }), /* @__PURE__ */ jsx(SelectIcon, { children: /* @__PURE__ */ jsx(
|
|
2598
|
+
children: [/* @__PURE__ */ jsx(SelectValue, { children: (value) => items.find((item) => item.id === value)?.label }), /* @__PURE__ */ jsx(SelectIcon, { children: /* @__PURE__ */ jsx(Icon, { name: "chevronsUpDown" }) })]
|
|
2476
2599
|
}), /* @__PURE__ */ jsx(SelectPopup, { children: /* @__PURE__ */ jsxs(SelectList, { children: [children, items.map(({ label, id }) => /* @__PURE__ */ jsx(SelectItem, {
|
|
2477
2600
|
value: id,
|
|
2478
2601
|
children: /* @__PURE__ */ jsx(SelectTitle, { children: label })
|
|
@@ -2809,8 +2932,8 @@ function CollapsibleTrigger({ className, children, ref, ...props }) {
|
|
|
2809
2932
|
className: cn("group/trigger", className),
|
|
2810
2933
|
ref,
|
|
2811
2934
|
...props,
|
|
2812
|
-
children: [children, /* @__PURE__ */ jsx(
|
|
2813
|
-
|
|
2935
|
+
children: [children, /* @__PURE__ */ jsx(Icon, {
|
|
2936
|
+
name: "chevronRight",
|
|
2814
2937
|
className: "ml-auto transition-all ease-out group-data-panel-open/trigger:rotate-90"
|
|
2815
2938
|
})]
|
|
2816
2939
|
}) });
|
|
@@ -3620,7 +3743,7 @@ function ColorPickerInput({ showPopover = false, showTransparencyField = true, c
|
|
|
3620
3743
|
orientation: "vertical",
|
|
3621
3744
|
className: "h-md"
|
|
3622
3745
|
}),
|
|
3623
|
-
/* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(
|
|
3746
|
+
/* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(Icon, { name: "percent" }) }),
|
|
3624
3747
|
/* @__PURE__ */ jsx(InputGroupInput, {
|
|
3625
3748
|
"aria-label": "Transparency percentage",
|
|
3626
3749
|
type: "number",
|
|
@@ -3677,14 +3800,14 @@ function ColorPickerPaletteAdd({ className, children, ref, ...props }) {
|
|
|
3677
3800
|
const { color, addPaletteColor } = useColorPicker(), handleClick = () => {
|
|
3678
3801
|
addPaletteColor(color);
|
|
3679
3802
|
};
|
|
3680
|
-
return /* @__PURE__ */
|
|
3803
|
+
return /* @__PURE__ */ jsx("button", {
|
|
3681
3804
|
type: "button",
|
|
3682
3805
|
"aria-label": "Add current color to palette",
|
|
3683
3806
|
onClick: handleClick,
|
|
3684
3807
|
className: cn("flex size-md items-center justify-center rounded-lg border border-border-strong text-border-strong hover:cursor-pointer [&>svg]:size-xs", className),
|
|
3685
3808
|
ref,
|
|
3686
3809
|
...props,
|
|
3687
|
-
children:
|
|
3810
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, { name: "add" })
|
|
3688
3811
|
});
|
|
3689
3812
|
}
|
|
3690
3813
|
//#endregion
|
|
@@ -3796,7 +3919,7 @@ function ColorPickerValueType({ className, children, ref, ...props }) {
|
|
|
3796
3919
|
children: [
|
|
3797
3920
|
children,
|
|
3798
3921
|
/* @__PURE__ */ jsx(SelectValue, { children: (value) => VALUE_TYPES.find((type) => type.value === value)?.label ?? value }),
|
|
3799
|
-
/* @__PURE__ */ jsx(SelectIcon, { children: /* @__PURE__ */ jsx(
|
|
3922
|
+
/* @__PURE__ */ jsx(SelectIcon, { children: /* @__PURE__ */ jsx(Icon, { name: "chevronsUpDown" }) })
|
|
3800
3923
|
]
|
|
3801
3924
|
}), /* @__PURE__ */ jsx(SelectPopup, {
|
|
3802
3925
|
sideOffset: 8,
|
|
@@ -3844,9 +3967,9 @@ function ComboboxChip({ className, children, ref, ...props }) {
|
|
|
3844
3967
|
variant: "ghost",
|
|
3845
3968
|
tone: "error",
|
|
3846
3969
|
size: "extraSmall",
|
|
3847
|
-
children: /* @__PURE__ */ jsx(
|
|
3848
|
-
|
|
3849
|
-
|
|
3970
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
3971
|
+
name: "close",
|
|
3972
|
+
className: "size-sm"
|
|
3850
3973
|
})
|
|
3851
3974
|
})
|
|
3852
3975
|
})]
|
|
@@ -3939,7 +4062,7 @@ function ComboboxInput({ inline = false, variant, size = "medium", className, ch
|
|
|
3939
4062
|
size: "extraSmall",
|
|
3940
4063
|
variant: "ghost",
|
|
3941
4064
|
tone: "error",
|
|
3942
|
-
children: /* @__PURE__ */ jsx(
|
|
4065
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "close" })
|
|
3943
4066
|
})
|
|
3944
4067
|
}), /* @__PURE__ */ jsx(Combobox$1.Trigger, {
|
|
3945
4068
|
"aria-label": "Open popup",
|
|
@@ -3949,7 +4072,7 @@ function ComboboxInput({ inline = false, variant, size = "medium", className, ch
|
|
|
3949
4072
|
size: "extraSmall",
|
|
3950
4073
|
variant: getTriggerVariant(state.open),
|
|
3951
4074
|
tone: "brand",
|
|
3952
|
-
children: /* @__PURE__ */ jsx(
|
|
4075
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "chevronDown" })
|
|
3953
4076
|
})
|
|
3954
4077
|
})] })]
|
|
3955
4078
|
})
|
|
@@ -3968,9 +4091,9 @@ function ComboboxItem({ className, children, ref, ...props }) {
|
|
|
3968
4091
|
children
|
|
3969
4092
|
}), /* @__PURE__ */ jsx(Combobox$1.ItemIndicator, {
|
|
3970
4093
|
className: "col-start-2 place-self-end self-center",
|
|
3971
|
-
children: /* @__PURE__ */ jsx(
|
|
3972
|
-
|
|
3973
|
-
|
|
4094
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
4095
|
+
name: "selected",
|
|
4096
|
+
className: "size-sm"
|
|
3974
4097
|
})
|
|
3975
4098
|
})]
|
|
3976
4099
|
});
|
|
@@ -4023,7 +4146,7 @@ function ComboboxTrigger({ placeholder, className, children, ref, ...props }) {
|
|
|
4023
4146
|
className: "opacity-70",
|
|
4024
4147
|
children: placeholder
|
|
4025
4148
|
}) }),
|
|
4026
|
-
/* @__PURE__ */ jsx(Combobox$1.Icon, { children: /* @__PURE__ */ jsx(
|
|
4149
|
+
/* @__PURE__ */ jsx(Combobox$1.Icon, { children: /* @__PURE__ */ jsx(Icon, { name: "chevronsUpDown" }) }),
|
|
4027
4150
|
children
|
|
4028
4151
|
]
|
|
4029
4152
|
});
|
|
@@ -4134,9 +4257,9 @@ function ContextMenuCheckboxItem({ className, children, ref, ...props }) {
|
|
|
4134
4257
|
children
|
|
4135
4258
|
}), /* @__PURE__ */ jsx(ContextMenu$1.CheckboxItemIndicator, {
|
|
4136
4259
|
className: "col-start-2 flex items-center justify-center place-self-end self-center",
|
|
4137
|
-
children: /* @__PURE__ */ jsx(
|
|
4138
|
-
|
|
4139
|
-
|
|
4260
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
4261
|
+
name: "selected",
|
|
4262
|
+
className: "size-sm"
|
|
4140
4263
|
})
|
|
4141
4264
|
})]
|
|
4142
4265
|
});
|
|
@@ -4231,9 +4354,9 @@ function ContextMenuRadioItem({ className, children, ref, ...props }) {
|
|
|
4231
4354
|
children
|
|
4232
4355
|
}), /* @__PURE__ */ jsx(ContextMenu$1.RadioItemIndicator, {
|
|
4233
4356
|
className: "col-start-2 flex items-center justify-center place-self-end self-center",
|
|
4234
|
-
children: /* @__PURE__ */ jsx(
|
|
4235
|
-
|
|
4236
|
-
|
|
4357
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
4358
|
+
name: "selected",
|
|
4359
|
+
className: "size-sm"
|
|
4237
4360
|
})
|
|
4238
4361
|
})]
|
|
4239
4362
|
});
|
|
@@ -4271,9 +4394,9 @@ function ContextMenuSubmenuTrigger({ className, children, ref, tone, ...props })
|
|
|
4271
4394
|
children: [/* @__PURE__ */ jsx("span", {
|
|
4272
4395
|
className: "flex min-w-3xl items-center gap-2xs pr-2xl",
|
|
4273
4396
|
children
|
|
4274
|
-
}), /* @__PURE__ */ jsx(
|
|
4275
|
-
|
|
4276
|
-
|
|
4397
|
+
}), /* @__PURE__ */ jsx(Icon, {
|
|
4398
|
+
name: "chevronRight",
|
|
4399
|
+
className: "ml-auto size-xs shrink-0 self-center"
|
|
4277
4400
|
})]
|
|
4278
4401
|
});
|
|
4279
4402
|
}
|
|
@@ -4309,7 +4432,7 @@ function Dialog$2({ ...props }) {
|
|
|
4309
4432
|
}
|
|
4310
4433
|
//#endregion
|
|
4311
4434
|
//#region src/components/dialog/dialog-close.tsx
|
|
4312
|
-
function DialogClose({ className, ref, ...props }) {
|
|
4435
|
+
function DialogClose({ className, children, ref, ...props }) {
|
|
4313
4436
|
return /* @__PURE__ */ jsx(Dialog$1.Close, {
|
|
4314
4437
|
className: cn("absolute top-xs right-xs", className),
|
|
4315
4438
|
ref,
|
|
@@ -4319,7 +4442,7 @@ function DialogClose({ className, ref, ...props }) {
|
|
|
4319
4442
|
variant: "ghost",
|
|
4320
4443
|
size: "extraSmall",
|
|
4321
4444
|
tone: "error",
|
|
4322
|
-
children: /* @__PURE__ */ jsx(
|
|
4445
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, { name: "close" })
|
|
4323
4446
|
})
|
|
4324
4447
|
});
|
|
4325
4448
|
}
|
|
@@ -4807,7 +4930,7 @@ function DropzoneError({ className, children, ref, ...props }) {
|
|
|
4807
4930
|
ref,
|
|
4808
4931
|
role: "alert",
|
|
4809
4932
|
...props,
|
|
4810
|
-
children: [/* @__PURE__ */ jsx(
|
|
4933
|
+
children: [/* @__PURE__ */ jsx(Icon, { name: "error" }), children ?? fileError]
|
|
4811
4934
|
});
|
|
4812
4935
|
}
|
|
4813
4936
|
//#endregion
|
|
@@ -4994,11 +5117,17 @@ function DropzoneFilesList({ className, children, ref, ...props }) {
|
|
|
4994
5117
|
children: [
|
|
4995
5118
|
isUploading && /* @__PURE__ */ jsx("div", {
|
|
4996
5119
|
className: "flex items-center justify-center rounded-full bg-brand-container p-xs",
|
|
4997
|
-
children: /* @__PURE__ */ jsx(
|
|
5120
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
5121
|
+
name: "fileUpload",
|
|
5122
|
+
className: "size-md text-brand-on-container"
|
|
5123
|
+
})
|
|
4998
5124
|
}),
|
|
4999
5125
|
isUploaded && /* @__PURE__ */ jsx("div", {
|
|
5000
5126
|
className: "flex items-center justify-center rounded-full bg-success-container p-xs",
|
|
5001
|
-
children: /* @__PURE__ */ jsx(
|
|
5127
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
5128
|
+
name: "selected",
|
|
5129
|
+
className: "size-md text-success-on-container"
|
|
5130
|
+
})
|
|
5002
5131
|
}),
|
|
5003
5132
|
/* @__PURE__ */ jsxs("div", {
|
|
5004
5133
|
className: "flex w-full flex-col justify-between gap-3xs",
|
|
@@ -5026,7 +5155,7 @@ function DropzoneFilesList({ className, children, ref, ...props }) {
|
|
|
5026
5155
|
variant: "ghost",
|
|
5027
5156
|
tone: "error",
|
|
5028
5157
|
onClick: () => removeFile(file),
|
|
5029
|
-
children: /* @__PURE__ */ jsx(
|
|
5158
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "delete" })
|
|
5030
5159
|
})
|
|
5031
5160
|
]
|
|
5032
5161
|
}, fileKey);
|
|
@@ -5181,7 +5310,7 @@ function FieldErrors({ className, children, ref, ...props }) {
|
|
|
5181
5310
|
const DEFAULT_COLOR = "#000000";
|
|
5182
5311
|
const EMPTY_FILE_COUNT = 0;
|
|
5183
5312
|
const SINGLE_FILE_COUNT = 1;
|
|
5184
|
-
const defaultFileUploadButtonIcon = /* @__PURE__ */ jsx(
|
|
5313
|
+
const defaultFileUploadButtonIcon = /* @__PURE__ */ jsx(Icon, { name: "upload" });
|
|
5185
5314
|
const defaultFilesSelectedLabel = (count) => `${count} files selected`;
|
|
5186
5315
|
const defaultMaxFilesErrorLabel = (maxFiles) => {
|
|
5187
5316
|
if (maxFiles === SINGLE_FILE_COUNT) return `You can select up to ${maxFiles} file.`;
|
|
@@ -5333,7 +5462,7 @@ function Input({ fileUploadButtonIcon = defaultFileUploadButtonIcon, fileUploadB
|
|
|
5333
5462
|
variant: "ghost",
|
|
5334
5463
|
tone: "error",
|
|
5335
5464
|
onClick: clearFiles,
|
|
5336
|
-
children: /* @__PURE__ */ jsx(
|
|
5465
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "close" })
|
|
5337
5466
|
})]
|
|
5338
5467
|
});
|
|
5339
5468
|
}
|
|
@@ -5908,7 +6037,7 @@ function FormErrors({ className, children, ref, ...props }) {
|
|
|
5908
6037
|
tone: "error",
|
|
5909
6038
|
...props,
|
|
5910
6039
|
children: [
|
|
5911
|
-
/* @__PURE__ */ jsx(AlertIcon, { children: /* @__PURE__ */ jsx(
|
|
6040
|
+
/* @__PURE__ */ jsx(AlertIcon, { children: /* @__PURE__ */ jsx(Icon, { name: "fieldError" }) }),
|
|
5912
6041
|
/* @__PURE__ */ jsx(AlertTitle, { children }),
|
|
5913
6042
|
/* @__PURE__ */ jsx(AlertDescription, { children: /* @__PURE__ */ jsx("ul", {
|
|
5914
6043
|
className: "list-inside list-disc has-[>:only-child]:list-none",
|
|
@@ -6000,9 +6129,9 @@ function FormSubmit({ className, children, ref, ...props }) {
|
|
|
6000
6129
|
ref,
|
|
6001
6130
|
type: "submit",
|
|
6002
6131
|
...props,
|
|
6003
|
-
children: [state.isSubmitting && /* @__PURE__ */ jsx(
|
|
6004
|
-
|
|
6005
|
-
|
|
6132
|
+
children: [state.isSubmitting && /* @__PURE__ */ jsx(Icon, {
|
|
6133
|
+
name: "spinner",
|
|
6134
|
+
className: "animate-spin"
|
|
6006
6135
|
}), !state.isSubmitting && children]
|
|
6007
6136
|
})
|
|
6008
6137
|
});
|
|
@@ -6129,12 +6258,12 @@ function InputOTP$1({ children, className, id, ref, ...props }) {
|
|
|
6129
6258
|
}
|
|
6130
6259
|
//#endregion
|
|
6131
6260
|
//#region src/components/input-otp/input-otp-separator.tsx
|
|
6132
|
-
function InputOtpSeparator({ className, ref, ...props }) {
|
|
6261
|
+
function InputOtpSeparator({ className, children, ref, ...props }) {
|
|
6133
6262
|
return /* @__PURE__ */ jsx(OTPField.Separator, {
|
|
6134
6263
|
className: cn("flex items-center justify-center text-on-surface-variant", className),
|
|
6135
6264
|
ref,
|
|
6136
6265
|
...props,
|
|
6137
|
-
children: /* @__PURE__ */ jsx(
|
|
6266
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, { name: "minus" })
|
|
6138
6267
|
});
|
|
6139
6268
|
}
|
|
6140
6269
|
//#endregion
|
|
@@ -6531,7 +6660,7 @@ function LayerTreeExpandAll({ className, ref, ...props }) {
|
|
|
6531
6660
|
className: cn("", className),
|
|
6532
6661
|
ref,
|
|
6533
6662
|
...props,
|
|
6534
|
-
children: [table.getIsSomeRowsExpanded() && /* @__PURE__ */ jsx(
|
|
6663
|
+
children: [table.getIsSomeRowsExpanded() && /* @__PURE__ */ jsx(Icon, { name: "folderOpen" }), !table.getIsSomeRowsExpanded() && /* @__PURE__ */ jsx(Icon, { name: "folderExpandAll" })]
|
|
6535
6664
|
})
|
|
6536
6665
|
});
|
|
6537
6666
|
}
|
|
@@ -6552,9 +6681,9 @@ function LayerTreeIconCell({ className, children, ref, ...props }) {
|
|
|
6552
6681
|
selector: (state) => state.expanded,
|
|
6553
6682
|
children: () => {
|
|
6554
6683
|
const isExpanded = row.getIsExpanded();
|
|
6555
|
-
let iconNode = createElement(icon
|
|
6556
|
-
if (hasChildren && isExpanded) iconNode = /* @__PURE__ */ jsx(
|
|
6557
|
-
else if (hasChildren) iconNode = /* @__PURE__ */ jsx(
|
|
6684
|
+
let iconNode = createElement(icon);
|
|
6685
|
+
if (hasChildren && isExpanded) iconNode = /* @__PURE__ */ jsx(Icon, { name: "folderOpen" });
|
|
6686
|
+
else if (hasChildren) iconNode = /* @__PURE__ */ jsx(Icon, { name: "folder" });
|
|
6558
6687
|
return /* @__PURE__ */ jsxs("div", {
|
|
6559
6688
|
className: cn("flex w-fit shrink-0 items-center [&>svg]:size-sm", className),
|
|
6560
6689
|
ref,
|
|
@@ -6586,8 +6715,8 @@ function LayerTreeLockedAll({ className, children, ref, ...props }) {
|
|
|
6586
6715
|
...props,
|
|
6587
6716
|
children: [
|
|
6588
6717
|
children,
|
|
6589
|
-
isLocked && /* @__PURE__ */ jsx(
|
|
6590
|
-
!isLocked && /* @__PURE__ */ jsx(
|
|
6718
|
+
isLocked && /* @__PURE__ */ jsx(Icon, { name: "locked" }),
|
|
6719
|
+
!isLocked && /* @__PURE__ */ jsx(Icon, { name: "unlocked" })
|
|
6591
6720
|
]
|
|
6592
6721
|
});
|
|
6593
6722
|
}
|
|
@@ -6616,8 +6745,8 @@ function LayerTreeLockedCell({ className, children, ref, ...props }) {
|
|
|
6616
6745
|
...props,
|
|
6617
6746
|
children: [
|
|
6618
6747
|
children,
|
|
6619
|
-
isLocked && /* @__PURE__ */ jsx(
|
|
6620
|
-
!isLocked && /* @__PURE__ */ jsx(
|
|
6748
|
+
isLocked && /* @__PURE__ */ jsx(Icon, { name: "locked" }),
|
|
6749
|
+
!isLocked && /* @__PURE__ */ jsx(Icon, { name: "unlocked" })
|
|
6621
6750
|
]
|
|
6622
6751
|
});
|
|
6623
6752
|
}
|
|
@@ -6627,10 +6756,10 @@ function LayerTreeLockedCell({ className, children, ref, ...props }) {
|
|
|
6627
6756
|
//#region src/components/layer-tree/layer-tree-node-icon.tsx
|
|
6628
6757
|
function LayerTreeNodeIcon({ icon: NodeIcon, className, children, ref, ...props }) {
|
|
6629
6758
|
const { row } = useCellContext$3(), hasChildren = row.getCanExpand() && Boolean(row.getLeafRows().length);
|
|
6630
|
-
let nodeIcon = /* @__PURE__ */ jsx(NodeIcon, {
|
|
6759
|
+
let nodeIcon = /* @__PURE__ */ jsx(NodeIcon, {});
|
|
6631
6760
|
if (hasChildren) {
|
|
6632
|
-
nodeIcon = /* @__PURE__ */ jsx(
|
|
6633
|
-
if (row.getIsExpanded()) nodeIcon = /* @__PURE__ */ jsx(
|
|
6761
|
+
nodeIcon = /* @__PURE__ */ jsx(Icon, { name: "folder" });
|
|
6762
|
+
if (row.getIsExpanded()) nodeIcon = /* @__PURE__ */ jsx(Icon, { name: "folderOpen" });
|
|
6634
6763
|
}
|
|
6635
6764
|
return /* @__PURE__ */ jsxs("div", {
|
|
6636
6765
|
className: cn("", className),
|
|
@@ -6650,7 +6779,7 @@ function LayerTreeSearch({ placeholder, className, children, ref, ...props }) {
|
|
|
6650
6779
|
ref,
|
|
6651
6780
|
...props,
|
|
6652
6781
|
children: [
|
|
6653
|
-
/* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(
|
|
6782
|
+
/* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(Icon, { name: "search" }) }),
|
|
6654
6783
|
/* @__PURE__ */ jsx(InputGroupInput, {
|
|
6655
6784
|
placeholder,
|
|
6656
6785
|
onChange: (event) => table.setGlobalFilter(event.target.value),
|
|
@@ -6678,9 +6807,9 @@ function MenuCheckboxItem({ className, children, ref, ...props }) {
|
|
|
6678
6807
|
children
|
|
6679
6808
|
}), /* @__PURE__ */ jsx(Menu$1.CheckboxItemIndicator, {
|
|
6680
6809
|
className: "col-start-2 flex items-center justify-center place-self-end self-center",
|
|
6681
|
-
children: /* @__PURE__ */ jsx(
|
|
6682
|
-
|
|
6683
|
-
|
|
6810
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
6811
|
+
name: "selected",
|
|
6812
|
+
className: "size-sm"
|
|
6684
6813
|
})
|
|
6685
6814
|
})]
|
|
6686
6815
|
});
|
|
@@ -6780,9 +6909,9 @@ function MenuRadioItem({ className, children, ref, ...props }) {
|
|
|
6780
6909
|
children
|
|
6781
6910
|
}), /* @__PURE__ */ jsx(Menu$1.RadioItemIndicator, {
|
|
6782
6911
|
className: "col-start-2 flex items-center justify-center place-self-end self-center",
|
|
6783
|
-
children: /* @__PURE__ */ jsx(
|
|
6784
|
-
|
|
6785
|
-
|
|
6912
|
+
children: /* @__PURE__ */ jsx(Icon, {
|
|
6913
|
+
name: "selected",
|
|
6914
|
+
className: "size-sm"
|
|
6786
6915
|
})
|
|
6787
6916
|
})]
|
|
6788
6917
|
});
|
|
@@ -6820,9 +6949,9 @@ function MenuSubmenuTrigger({ tone, className, children, ref, ...props }) {
|
|
|
6820
6949
|
children: [/* @__PURE__ */ jsx("div", {
|
|
6821
6950
|
className: "col-start-1 flex min-w-3xl items-center gap-2xs pr-2xl [&>svg]:size-sm",
|
|
6822
6951
|
children
|
|
6823
|
-
}), /* @__PURE__ */ jsx(
|
|
6824
|
-
|
|
6825
|
-
|
|
6952
|
+
}), /* @__PURE__ */ jsx(Icon, {
|
|
6953
|
+
name: "chevronRight",
|
|
6954
|
+
className: "col-start-2 size-xs place-self-end self-center"
|
|
6826
6955
|
})]
|
|
6827
6956
|
});
|
|
6828
6957
|
}
|
|
@@ -6878,7 +7007,7 @@ function LayerTreeSort({ className, children, ref, ...props }) {
|
|
|
6878
7007
|
variant: "ghost",
|
|
6879
7008
|
size: "medium",
|
|
6880
7009
|
tone: "neutral",
|
|
6881
|
-
children: /* @__PURE__ */ jsx(
|
|
7010
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "sort" })
|
|
6882
7011
|
})
|
|
6883
7012
|
}), /* @__PURE__ */ jsx(MenuPopup, {
|
|
6884
7013
|
align: "end",
|
|
@@ -6889,12 +7018,12 @@ function LayerTreeSort({ className, children, ref, ...props }) {
|
|
|
6889
7018
|
/* @__PURE__ */ jsxs(MenuCheckboxItem, {
|
|
6890
7019
|
checked: column.getIsSorted() === "asc",
|
|
6891
7020
|
onClick: () => handleSort(column.id, "asc"),
|
|
6892
|
-
children: [/* @__PURE__ */ jsx(
|
|
7021
|
+
children: [/* @__PURE__ */ jsx(Icon, { name: "sortDescending" }), ascendingLabel]
|
|
6893
7022
|
}),
|
|
6894
7023
|
/* @__PURE__ */ jsxs(MenuCheckboxItem, {
|
|
6895
7024
|
checked: column.getIsSorted() === "desc",
|
|
6896
7025
|
onClick: () => handleSort(column.id, "desc"),
|
|
6897
|
-
children: [/* @__PURE__ */ jsx(
|
|
7026
|
+
children: [/* @__PURE__ */ jsx(Icon, { name: "sortAscending" }), descendingLabel]
|
|
6898
7027
|
})
|
|
6899
7028
|
] })] }, column.id))
|
|
6900
7029
|
})
|
|
@@ -6990,8 +7119,8 @@ function LayerTreeVisibilityAll({ className, children, ref, ...props }) {
|
|
|
6990
7119
|
...props,
|
|
6991
7120
|
children: [
|
|
6992
7121
|
children,
|
|
6993
|
-
isVisible && /* @__PURE__ */ jsx(
|
|
6994
|
-
!isVisible && /* @__PURE__ */ jsx(
|
|
7122
|
+
isVisible && /* @__PURE__ */ jsx(Icon, { name: "visible" }),
|
|
7123
|
+
!isVisible && /* @__PURE__ */ jsx(Icon, { name: "hidden" })
|
|
6995
7124
|
]
|
|
6996
7125
|
});
|
|
6997
7126
|
}
|
|
@@ -7020,8 +7149,8 @@ function LayerTreeVisibilityCell({ className, children, ref, ...props }) {
|
|
|
7020
7149
|
...props,
|
|
7021
7150
|
children: [
|
|
7022
7151
|
children,
|
|
7023
|
-
isVisible && /* @__PURE__ */ jsx(
|
|
7024
|
-
!isVisible && /* @__PURE__ */ jsx(
|
|
7152
|
+
isVisible && /* @__PURE__ */ jsx(Icon, { name: "visible" }),
|
|
7153
|
+
!isVisible && /* @__PURE__ */ jsx(Icon, { name: "hidden" })
|
|
7025
7154
|
]
|
|
7026
7155
|
});
|
|
7027
7156
|
}
|
|
@@ -7406,7 +7535,7 @@ function NumberField({ size, variant, children, label, disableInput: disabledInp
|
|
|
7406
7535
|
variant: "ghost",
|
|
7407
7536
|
size: size ?? "medium",
|
|
7408
7537
|
className: "shrink-0 rounded-r-none",
|
|
7409
|
-
children: /* @__PURE__ */ jsx(
|
|
7538
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "minus" })
|
|
7410
7539
|
}) }),
|
|
7411
7540
|
/* @__PURE__ */ jsx(NumberField$1.Input, {
|
|
7412
7541
|
"aria-label": getInputLabel(label),
|
|
@@ -7423,7 +7552,7 @@ function NumberField({ size, variant, children, label, disableInput: disabledInp
|
|
|
7423
7552
|
variant: "ghost",
|
|
7424
7553
|
size: size ?? "medium",
|
|
7425
7554
|
className: "shrink-0 rounded-l-none",
|
|
7426
|
-
children: /* @__PURE__ */ jsx(
|
|
7555
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "add" })
|
|
7427
7556
|
}) })
|
|
7428
7557
|
]
|
|
7429
7558
|
})]
|
|
@@ -7823,7 +7952,11 @@ function resolveOpenState(value, previous) {
|
|
|
7823
7952
|
return value;
|
|
7824
7953
|
}
|
|
7825
7954
|
function SidebarProvider({ id, defaultOpen = true, side = "left", collapsible = "icon", className, ref, ...props }) {
|
|
7826
|
-
const cookieName = `sidebar-state-${id}`, [openState, setOpenState] = React.useState(defaultOpen), isMobile = useMediaQuery("mobile"), setOpen = (value) => {
|
|
7955
|
+
const cookieName = `sidebar-state-${id}`, [openState, setOpenState] = React.useState(defaultOpen), [mobileOpen, setMobileOpen] = React.useState(false), isMobile = useMediaQuery("mobile"), setOpen = (value) => {
|
|
7956
|
+
if (isMobile) {
|
|
7957
|
+
setMobileOpen((prev) => resolveOpenState(value, prev));
|
|
7958
|
+
return;
|
|
7959
|
+
}
|
|
7827
7960
|
setOpenState((prev) => {
|
|
7828
7961
|
const nextOpen = resolveOpenState(value, prev);
|
|
7829
7962
|
document.cookie = [
|
|
@@ -7835,21 +7968,27 @@ function SidebarProvider({ id, defaultOpen = true, side = "left", collapsible =
|
|
|
7835
7968
|
return nextOpen;
|
|
7836
7969
|
});
|
|
7837
7970
|
}, trigger = () => setOpen((prev) => !prev);
|
|
7838
|
-
|
|
7839
|
-
|
|
7971
|
+
React.useEffect(() => {
|
|
7972
|
+
if (!isMobile) setMobileOpen(false);
|
|
7973
|
+
}, [isMobile]);
|
|
7974
|
+
let effectiveCollapsible = collapsible, open = openState;
|
|
7975
|
+
if (isMobile) {
|
|
7976
|
+
effectiveCollapsible = "offcanvas";
|
|
7977
|
+
open = mobileOpen;
|
|
7978
|
+
}
|
|
7840
7979
|
return /* @__PURE__ */ jsx(SidebarContext.Provider, {
|
|
7841
7980
|
value: {
|
|
7842
7981
|
collapsible: effectiveCollapsible,
|
|
7843
7982
|
defaultOpen,
|
|
7844
7983
|
id,
|
|
7845
7984
|
isMobile,
|
|
7846
|
-
open
|
|
7985
|
+
open,
|
|
7847
7986
|
setOpen,
|
|
7848
7987
|
side,
|
|
7849
7988
|
trigger
|
|
7850
7989
|
},
|
|
7851
7990
|
children: /* @__PURE__ */ jsx("div", {
|
|
7852
|
-
className: cn("relative
|
|
7991
|
+
className: cn("relative flex min-h-0 w-full min-w-0 flex-1", side === "left" && "flex flex-row", side === "right" && "flex flex-row-reverse", className),
|
|
7853
7992
|
ref,
|
|
7854
7993
|
...props
|
|
7855
7994
|
})
|
|
@@ -7885,7 +8024,7 @@ function getPositionClasses({ collapsible, open, isMobile }) {
|
|
|
7885
8024
|
return "";
|
|
7886
8025
|
}
|
|
7887
8026
|
function Sidebar$1({ tone = "primary", width = DEFAULT_SIDEBAR_WIDTH, className, ...props }) {
|
|
7888
|
-
const { open, setOpen, isMobile, collapsible, side } = useSidebar(), sidebarRef = React.useRef(null), layout = {
|
|
8027
|
+
const { open, setOpen, isMobile, collapsible, side } = useSidebar(), sidebarRef = React.useRef(null), isHidden = collapsible === "offcanvas" && !open, layout = {
|
|
7889
8028
|
collapsible,
|
|
7890
8029
|
isMobile,
|
|
7891
8030
|
open,
|
|
@@ -7905,10 +8044,12 @@ function Sidebar$1({ tone = "primary", width = DEFAULT_SIDEBAR_WIDTH, className,
|
|
|
7905
8044
|
isMobile
|
|
7906
8045
|
]);
|
|
7907
8046
|
return /* @__PURE__ */ jsx("div", {
|
|
7908
|
-
className: cn("sticky left-[0px] flex h-full max-h-dvh min-h-0 shrink-0 flex-col overflow-hidden border-border bg-surface transition-[width,transform] duration-300 ease-in-out", className, tone === "primary" && "bg-surface-background", tone === "secondary" && "bg-surface", tone === "ghost" && "bg-transparent", getGapClasses(layout), getPositionClasses(layout), collapsible === "offcanvas" && !open && "border-none", open && "p-md", collapsible === "icon" && !open && "py-md", isMobile && "border-none", side === "left" && "border-r", side === "right" && "border-l"),
|
|
8047
|
+
className: cn("sticky left-[0px] flex h-full max-h-dvh min-h-0 shrink-0 flex-col overflow-hidden border-border bg-surface transition-[width,transform] duration-300 ease-in-out", className, tone === "primary" && "bg-surface-background", tone === "secondary" && "bg-surface", tone === "ghost" && "bg-transparent", getGapClasses(layout), getPositionClasses(layout), isHidden && "invisible", collapsible === "offcanvas" && !open && "border-none", open && "p-md", collapsible === "icon" && !open && "py-md", isMobile && "border-none", side === "left" && "border-r", side === "right" && "border-l"),
|
|
7909
8048
|
ref: sidebarRef,
|
|
7910
8049
|
style: getWidthStyle(layout),
|
|
7911
|
-
...props
|
|
8050
|
+
...props,
|
|
8051
|
+
"aria-hidden": isHidden || void 0,
|
|
8052
|
+
inert: isHidden
|
|
7912
8053
|
});
|
|
7913
8054
|
}
|
|
7914
8055
|
//#endregion
|
|
@@ -7977,6 +8118,16 @@ function SidebarHeader({ className, children, ref, ...props }) {
|
|
|
7977
8118
|
});
|
|
7978
8119
|
}
|
|
7979
8120
|
//#endregion
|
|
8121
|
+
//#region src/components/sidebar/sidebar-inset.tsx
|
|
8122
|
+
function SidebarInset({ className, children, ref, ...props }) {
|
|
8123
|
+
return /* @__PURE__ */ jsx("div", {
|
|
8124
|
+
className: cn("min-h-0 min-w-0 flex-1 overflow-auto", className),
|
|
8125
|
+
ref,
|
|
8126
|
+
...props,
|
|
8127
|
+
children
|
|
8128
|
+
});
|
|
8129
|
+
}
|
|
8130
|
+
//#endregion
|
|
7980
8131
|
//#region src/components/sidebar/sidebar-menu.tsx
|
|
7981
8132
|
function SidebarMenu({ className, ref, ...props }) {
|
|
7982
8133
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -8050,8 +8201,8 @@ function SidebarMenuCollapsibleTrigger({ className, children, ref, style: _style
|
|
|
8050
8201
|
if (!open) return /* @__PURE__ */ jsx(PopoverTrigger, { children: /* @__PURE__ */ jsxs("button", {
|
|
8051
8202
|
type: "button",
|
|
8052
8203
|
className: cn("flex size-xl items-center justify-center rounded-full shadow-none! transition-colors *:hidden hover:cursor-pointer hover:bg-neutral-container hover:text-neutral-on-container data-popup-open:bg-neutral-container [&>svg]:block"),
|
|
8053
|
-
children: [children, /* @__PURE__ */ jsx(
|
|
8054
|
-
|
|
8204
|
+
children: [children, /* @__PURE__ */ jsx(Icon, {
|
|
8205
|
+
name: "chevronRight",
|
|
8055
8206
|
className: "absolute right-2xs size-xs text-on-surface-variant"
|
|
8056
8207
|
})]
|
|
8057
8208
|
}) });
|
|
@@ -8116,6 +8267,7 @@ const Sidebar = Object.assign(Sidebar$1, {
|
|
|
8116
8267
|
GroupContent: SidebarGroupContent,
|
|
8117
8268
|
GroupLabel: SidebarGroupLabel,
|
|
8118
8269
|
Header: SidebarHeader,
|
|
8270
|
+
Inset: SidebarInset,
|
|
8119
8271
|
Menu: SidebarMenu,
|
|
8120
8272
|
MenuBadge: SidebarMenuBadge,
|
|
8121
8273
|
MenuButton: SidebarMenuButton,
|
|
@@ -8944,7 +9096,7 @@ function TableDateFilterChip({ column, className, children, ref, ...props }) {
|
|
|
8944
9096
|
size: "extraSmall",
|
|
8945
9097
|
variant: "soft",
|
|
8946
9098
|
children: [
|
|
8947
|
-
/* @__PURE__ */ jsx(
|
|
9099
|
+
/* @__PURE__ */ jsx(Icon, { name: "filter" }),
|
|
8948
9100
|
/* @__PURE__ */ jsx("span", { children: getColumnHeaderLabel(column) }),
|
|
8949
9101
|
/* @__PURE__ */ jsx("span", {
|
|
8950
9102
|
className: "lowercase",
|
|
@@ -9041,7 +9193,7 @@ function TableNumberFilterChip({ column, className, children, ref, ...props }) {
|
|
|
9041
9193
|
size: "extraSmall",
|
|
9042
9194
|
variant: "soft",
|
|
9043
9195
|
children: [
|
|
9044
|
-
/* @__PURE__ */ jsx(
|
|
9196
|
+
/* @__PURE__ */ jsx(Icon, { name: "filter" }),
|
|
9045
9197
|
/* @__PURE__ */ jsx("span", { children: getColumnHeaderLabel(column) }),
|
|
9046
9198
|
/* @__PURE__ */ jsx("span", {
|
|
9047
9199
|
className: "font-light lowercase",
|
|
@@ -9097,7 +9249,7 @@ function TableSelectFilterForm({ column, className, children, ref, ...props }) {
|
|
|
9097
9249
|
children: [/* @__PURE__ */ jsx(SelectValue, {
|
|
9098
9250
|
placeholder: "Select values",
|
|
9099
9251
|
children: (value) => getSelectValueLabel(value)
|
|
9100
|
-
}), /* @__PURE__ */ jsx(SelectIcon, { children: /* @__PURE__ */ jsx(
|
|
9252
|
+
}), /* @__PURE__ */ jsx(SelectIcon, { children: /* @__PURE__ */ jsx(Icon, { name: "chevronsUpDown" }) })]
|
|
9101
9253
|
}), /* @__PURE__ */ jsx(SelectPopup, {
|
|
9102
9254
|
alignItemWithTrigger: false,
|
|
9103
9255
|
sideOffset: 8,
|
|
@@ -9134,7 +9286,7 @@ function TableSelectFilterChip({ column, className, children, ref, ...props }) {
|
|
|
9134
9286
|
size: "extraSmall",
|
|
9135
9287
|
variant: "soft",
|
|
9136
9288
|
children: [
|
|
9137
|
-
/* @__PURE__ */ jsx(
|
|
9289
|
+
/* @__PURE__ */ jsx(Icon, { name: "filter" }),
|
|
9138
9290
|
/* @__PURE__ */ jsx("span", { children: header }),
|
|
9139
9291
|
/* @__PURE__ */ jsx("span", {
|
|
9140
9292
|
className: "font-light lowercase",
|
|
@@ -9214,7 +9366,7 @@ function TableStringFilterChip({ column, className, children, ref, ...props }) {
|
|
|
9214
9366
|
size: "extraSmall",
|
|
9215
9367
|
variant: "soft",
|
|
9216
9368
|
children: [
|
|
9217
|
-
/* @__PURE__ */ jsx(
|
|
9369
|
+
/* @__PURE__ */ jsx(Icon, { name: "filter" }),
|
|
9218
9370
|
/* @__PURE__ */ jsx("span", { children: getColumnHeaderLabel(column) }),
|
|
9219
9371
|
/* @__PURE__ */ jsx("span", {
|
|
9220
9372
|
className: "font-light lowercase",
|
|
@@ -9299,7 +9451,7 @@ function TableFirstPage({ className, children, ref, ...props }) {
|
|
|
9299
9451
|
const table = useTableContext$2(), handleClick = () => {
|
|
9300
9452
|
table.setPageIndex(DEFAULT_PAGE_INDEX);
|
|
9301
9453
|
};
|
|
9302
|
-
return /* @__PURE__ */
|
|
9454
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
9303
9455
|
"aria-label": "Go to first page",
|
|
9304
9456
|
className: cn("shrink-0", className),
|
|
9305
9457
|
disabled: !table.getCanPreviousPage(),
|
|
@@ -9309,7 +9461,7 @@ function TableFirstPage({ className, children, ref, ...props }) {
|
|
|
9309
9461
|
tone: "neutral",
|
|
9310
9462
|
size: "medium",
|
|
9311
9463
|
...props,
|
|
9312
|
-
children:
|
|
9464
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, { name: "firstPage" })
|
|
9313
9465
|
});
|
|
9314
9466
|
}
|
|
9315
9467
|
//#endregion
|
|
@@ -9360,9 +9512,9 @@ function TableHeader({ className, children, ref, ...props }) {
|
|
|
9360
9512
|
className: "flex items-center gap-2xs",
|
|
9361
9513
|
children: /* @__PURE__ */ jsx(table.FlexRender, { header: renderHeader })
|
|
9362
9514
|
}),
|
|
9363
|
-
sorting === "asc" && /* @__PURE__ */ jsx(
|
|
9364
|
-
sorting === "desc" && /* @__PURE__ */ jsx(
|
|
9365
|
-
!sorting && renderHeader.column.getCanSort() && /* @__PURE__ */ jsx(
|
|
9515
|
+
sorting === "asc" && /* @__PURE__ */ jsx(Icon, { name: "sortDescending" }),
|
|
9516
|
+
sorting === "desc" && /* @__PURE__ */ jsx(Icon, { name: "sortAscending" }),
|
|
9517
|
+
!sorting && renderHeader.column.getCanSort() && /* @__PURE__ */ jsx(Icon, { name: "columnFilter" })
|
|
9366
9518
|
]
|
|
9367
9519
|
})
|
|
9368
9520
|
}, renderHeader.id);
|
|
@@ -9391,7 +9543,7 @@ function TableLastPage({ className, children, ref, ...props }) {
|
|
|
9391
9543
|
const table = useTableContext$2(), handleClick = () => {
|
|
9392
9544
|
table.setPageIndex(table.getPageCount() - LAST_PAGE_OFFSET);
|
|
9393
9545
|
};
|
|
9394
|
-
return /* @__PURE__ */
|
|
9546
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
9395
9547
|
"aria-label": "Go to last page",
|
|
9396
9548
|
className: cn("shrink-0", className),
|
|
9397
9549
|
disabled: !table.getCanNextPage(),
|
|
@@ -9401,7 +9553,7 @@ function TableLastPage({ className, children, ref, ...props }) {
|
|
|
9401
9553
|
tone: "neutral",
|
|
9402
9554
|
size: "medium",
|
|
9403
9555
|
...props,
|
|
9404
|
-
children:
|
|
9556
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, { name: "lastPage" })
|
|
9405
9557
|
});
|
|
9406
9558
|
}
|
|
9407
9559
|
//#endregion
|
|
@@ -9433,7 +9585,7 @@ function TableNextPage({ className, children, ref, ...props }) {
|
|
|
9433
9585
|
const table = useTableContext$2(), handleClick = () => {
|
|
9434
9586
|
table.nextPage();
|
|
9435
9587
|
};
|
|
9436
|
-
return /* @__PURE__ */
|
|
9588
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
9437
9589
|
"aria-label": "Go to next page",
|
|
9438
9590
|
className: cn("shrink-0", className),
|
|
9439
9591
|
disabled: !table.getCanNextPage(),
|
|
@@ -9443,7 +9595,7 @@ function TableNextPage({ className, children, ref, ...props }) {
|
|
|
9443
9595
|
variant: "outline",
|
|
9444
9596
|
tone: "neutral",
|
|
9445
9597
|
...props,
|
|
9446
|
-
children:
|
|
9598
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, { name: "chevronRight" })
|
|
9447
9599
|
});
|
|
9448
9600
|
}
|
|
9449
9601
|
//#endregion
|
|
@@ -9524,7 +9676,7 @@ function TablePaging({ min = DEFAULT_VISIBLE_START_PAGES, max = DEFAULT_VISIBLE_
|
|
|
9524
9676
|
size: "medium",
|
|
9525
9677
|
variant: "outline",
|
|
9526
9678
|
className: "shrink-0",
|
|
9527
|
-
children: /* @__PURE__ */ jsx(
|
|
9679
|
+
children: /* @__PURE__ */ jsx(Icon, { name: "ellipsis" })
|
|
9528
9680
|
}) }), /* @__PURE__ */ jsx(MenuPopup, {
|
|
9529
9681
|
align: "center",
|
|
9530
9682
|
children: /* @__PURE__ */ jsx(MenuRadioGroup, {
|
|
@@ -9570,7 +9722,7 @@ function TablePreviousPage({ className, children, ref, ...props }) {
|
|
|
9570
9722
|
const table = useTableContext$2(), handleClick = () => {
|
|
9571
9723
|
table.previousPage();
|
|
9572
9724
|
};
|
|
9573
|
-
return /* @__PURE__ */
|
|
9725
|
+
return /* @__PURE__ */ jsx(Button, {
|
|
9574
9726
|
"aria-label": "Go to previous page",
|
|
9575
9727
|
className: cn("shrink-0", className),
|
|
9576
9728
|
disabled: !table.getCanPreviousPage(),
|
|
@@ -9580,7 +9732,7 @@ function TablePreviousPage({ className, children, ref, ...props }) {
|
|
|
9580
9732
|
tone: "neutral",
|
|
9581
9733
|
size: "medium",
|
|
9582
9734
|
...props,
|
|
9583
|
-
children:
|
|
9735
|
+
children: children ?? /* @__PURE__ */ jsx(Icon, { name: "chevronLeft" })
|
|
9584
9736
|
});
|
|
9585
9737
|
}
|
|
9586
9738
|
//#endregion
|
|
@@ -9668,7 +9820,7 @@ function TableSearch({ className, ref, ...props }) {
|
|
|
9668
9820
|
children: (globalFilter) => /* @__PURE__ */ jsxs(InputGroup, {
|
|
9669
9821
|
variant: props.variant ?? "outline",
|
|
9670
9822
|
className: "flex-1",
|
|
9671
|
-
children: [/* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(
|
|
9823
|
+
children: [/* @__PURE__ */ jsx(InputGroupAddon, { children: /* @__PURE__ */ jsx(Icon, { name: "search" }) }), /* @__PURE__ */ jsx(InputGroupInput, {
|
|
9672
9824
|
className: cn("", className),
|
|
9673
9825
|
onChange: handleChange,
|
|
9674
9826
|
ref,
|
|
@@ -9700,11 +9852,11 @@ function TableSortMenu({ className, ref, ...props }) {
|
|
|
9700
9852
|
children: () => table.getAllColumns().filter((column) => column.getCanSort()).map((column) => /* @__PURE__ */ jsxs(MenuSubmenu, { children: [/* @__PURE__ */ jsx(MenuSubmenuTrigger, { children: getColumnHeaderLabel(column) }), /* @__PURE__ */ jsxs(MenuPopup, { children: [/* @__PURE__ */ jsxs(MenuCheckboxItem, {
|
|
9701
9853
|
checked: column.getIsSorted() === "asc",
|
|
9702
9854
|
onClick: () => handleSort(column.id, "asc"),
|
|
9703
|
-
children: [/* @__PURE__ */ jsx(
|
|
9855
|
+
children: [/* @__PURE__ */ jsx(Icon, { name: "sortDescending" }), ascendingLabel]
|
|
9704
9856
|
}), /* @__PURE__ */ jsxs(MenuCheckboxItem, {
|
|
9705
9857
|
checked: column.getIsSorted() === "desc",
|
|
9706
9858
|
onClick: () => handleSort(column.id, "desc"),
|
|
9707
|
-
children: [/* @__PURE__ */ jsx(
|
|
9859
|
+
children: [/* @__PURE__ */ jsx(Icon, { name: "sortAscending" }), descendingLabel]
|
|
9708
9860
|
})] })] }, column.id))
|
|
9709
9861
|
})
|
|
9710
9862
|
})] });
|
|
@@ -9727,8 +9879,8 @@ function TableSortChip({ column, className, children, ref, ...props }) {
|
|
|
9727
9879
|
size: "extraSmall",
|
|
9728
9880
|
variant: "soft",
|
|
9729
9881
|
children: [
|
|
9730
|
-
columnSort === "asc" && /* @__PURE__ */ jsx(
|
|
9731
|
-
columnSort === "desc" && /* @__PURE__ */ jsx(
|
|
9882
|
+
columnSort === "asc" && /* @__PURE__ */ jsx(Icon, { name: "sortDescending" }),
|
|
9883
|
+
columnSort === "desc" && /* @__PURE__ */ jsx(Icon, { name: "sortAscending" }),
|
|
9732
9884
|
/* @__PURE__ */ jsx("span", { children: getColumnHeaderLabel(column) }),
|
|
9733
9885
|
/* @__PURE__ */ jsxs("span", {
|
|
9734
9886
|
className: "font-light lowercase",
|
|
@@ -9987,12 +10139,24 @@ function getVariantBorderColor(variant) {
|
|
|
9987
10139
|
}
|
|
9988
10140
|
}
|
|
9989
10141
|
function getVariantIcon(variant, icon) {
|
|
9990
|
-
if (icon) return React.createElement(icon
|
|
10142
|
+
if (icon) return React.createElement(icon);
|
|
9991
10143
|
switch (variant) {
|
|
9992
|
-
case "error": return /* @__PURE__ */ jsx(
|
|
9993
|
-
|
|
9994
|
-
|
|
9995
|
-
|
|
10144
|
+
case "error": return /* @__PURE__ */ jsx(Icon, {
|
|
10145
|
+
name: "error",
|
|
10146
|
+
weight: "fill"
|
|
10147
|
+
});
|
|
10148
|
+
case "success": return /* @__PURE__ */ jsx(Icon, {
|
|
10149
|
+
name: "success",
|
|
10150
|
+
weight: "fill"
|
|
10151
|
+
});
|
|
10152
|
+
case "warning": return /* @__PURE__ */ jsx(Icon, {
|
|
10153
|
+
name: "warning",
|
|
10154
|
+
weight: "fill"
|
|
10155
|
+
});
|
|
10156
|
+
default: return /* @__PURE__ */ jsx(Icon, {
|
|
10157
|
+
name: "info",
|
|
10158
|
+
weight: "fill"
|
|
10159
|
+
});
|
|
9996
10160
|
}
|
|
9997
10161
|
}
|
|
9998
10162
|
function StackToastItem({ className, ref, toast, ...props }) {
|
|
@@ -10051,9 +10215,9 @@ function StackToastItem({ className, ref, toast, ...props }) {
|
|
|
10051
10215
|
style: { animation: `toast-drain-${toast.id} ${duration}ms linear forwards` }
|
|
10052
10216
|
})]
|
|
10053
10217
|
})
|
|
10054
|
-
}), /* @__PURE__ */ jsx(
|
|
10055
|
-
|
|
10056
|
-
|
|
10218
|
+
}), /* @__PURE__ */ jsx(Icon, {
|
|
10219
|
+
name: "close",
|
|
10220
|
+
className: "size-sm shrink-0"
|
|
10057
10221
|
})]
|
|
10058
10222
|
})
|
|
10059
10223
|
]
|
|
@@ -10157,6 +10321,6 @@ function ToggleGroup({ size = "medium", variant, className, ref, ...props }) {
|
|
|
10157
10321
|
});
|
|
10158
10322
|
}
|
|
10159
10323
|
//#endregion
|
|
10160
|
-
export { Accordion, AccordionHeader, AccordionIcon, AccordionItem, AccordionPanel, AccordionSubtitle, AccordionTitle, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogClose, AlertDialogConfirm, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogIcon, AlertDialogPopup, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, AnchoredToastItem, AnchoredToasts, Autocomplete, AutocompleteCollection, AutocompleteContent, AutocompleteGridContent, AutocompleteGridItem, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInputGroup, AutocompleteInputGroupAddon, AutocompleteInputGroupInput, AutocompleteItem, AutocompleteRow, AutocompleteStatus, AutocompleteTrigger, Avatar, AvatarBadge, AvatarFallback, AvatarImage, Badge, BentoBox, BentoBoxAction, BentoBoxContent, BentoBoxDescription, BentoBoxFooter, BentoBoxHeader, BentoBoxTitle, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbSeparator, Button, ButtonGroup, Calendar, CalendarFooter, CalendarHeader, CalendarPanel, CalendarPicker, CalendarSummary, ChartContainer, ChartContainerContext, ChartLegend, ChartLegendContent, ChartLegendIcon, ChartLegendIndicator, ChartLegendLabel, ChartLinearGradient, ChartTooltip, ChartTooltipContent, ChartTooltipIcon, ChartTooltipIndicator, ChartTooltipLabel, ChartTooltipName, ChartTooltipPayload, ChartTooltipValue, Checkbox, CheckboxGroup, CheckboxIndicator, CodeBlock, CodeBlockActions, CodeBlockCopy, CodeBlockDownload, CodeBlockHeader, CodeBlockName, CodeBlockSelect, CodeBlockTabs, CodeBlockWindow, Collapsible, CollapsiblePanel, CollapsibleTrigger, ColorChannelSlider, ColorPicker, ColorPickerArea, ColorPickerGroup, ColorPickerHueSlider, ColorPickerInput, ColorPickerLabel, ColorPickerLightnessSlider, ColorPickerPaletteLimit, ColorPickerPaletteList, ColorPickerPaletteSwatch, ColorPickerRow, ColorPickerTransparencySlider, ColorPickerValueType, Combobox, ComboboxChip, ComboboxChips, ComboboxCollection, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxPopup, ComboboxStatus, ComboboxTrigger, ComboboxValue, ComboboxVirtualizedList, ContextMenu, ContextMenuCheckboxItem, ContextMenuGroup, ContextMenuGroupLabel, ContextMenuItem, ContextMenuPopup, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSubmenu, ContextMenuSubmenuTrigger, ContextMenuTrigger, DEFAULT_THEME, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHelper, DialogIcon, DialogPopup, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerHeader, DrawerPopup, DrawerProvider, DrawerTitle, DrawerTrigger, Dropzone, DropzoneActions, DropzoneClear, DropzoneConfirm, DropzoneContainer, DropzoneError, DropzoneFilesList as DropzoneFileList, DropzoneFileSizeLimit, DropzoneFiles, DropzoneFilesHeader, DropzoneFilesTitle, DropzoneFormats, DropzoneHeading, DropzoneIcon, DropzoneInfo, DropzoneSubtitle, DropzoneTrigger, Field, FieldCheckbox, FieldDescription, FieldErrors, FieldInput, FieldInputGroup, FieldInputGroupInput, FieldLabel, FieldRadio, FieldRadioGroup, FieldRow, FieldSelect, FieldSet, FieldSlider, FieldSwitch, FieldTextArea, FieldToggle, Form, FormErrors, FormFooter, FormReset, FormSet, FormSetContent, FormSetHeading, FormSubmit, IconContainer, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupSeparator, InputOTP, InputOTPSlot, InputOtpSeparator, Kbd, KbdGroup, Label, LayerTree, LayerTreeBody, LayerTreeExpandAll, LayerTreeFooter, LayerTreeIconCell, LayerTreeLockedAll, LayerTreeLockedCell, LayerTreeNodeIcon, LayerTreeRow, LayerTreeSearch, LayerTreeSort, LayerTreeTextCell, LayerTreeTriggerCell, LayerTreeVisibilityAll, LayerTreeVisibilityCell, Menu, MenuCheckboxItem, MenuGroup, MenuGroupLabel, MenuItem, MenuPopup, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuShortcut, MenuSubmenu, MenuSubmenuTrigger, MenuTrigger, Meter, MeterFooter, MeterHeader, MeterIndicator, MeterLabel, MeterSubtitle, MeterTrack, MeterValue, NavBar, NavBarItem, NavBarItemIcon, NavBarItemLabel, NavigationMenu, NavigationMenuContent, NavigationMenuIcon, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPopup, NavigationMenuTrigger, NumberField, Popover, PopoverButton, PopoverContent, PopoverDescription, PopoverHeader, PopoverPanel, PopoverTitle, PopoverTrigger, PreviewCard, PreviewCardPopup, PreviewCardTrigger, Profile, ProfileAction, ProfileContent, ProfileName, ProfileSubname, Progress, ProgressBar, ProgressDescription, ProgressIndicator, ProgressLabel, ProgressTitle, RadarPing, Radio, RadioGroup, ResizeableHandle, ResizeablePanel, ResizeablePanelGroup, ScrollArea, Select, SelectDescription, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectList, SelectPopup, SelectTitle, SelectTrigger, SelectValue, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarMenu, SidebarMenuBadge, SidebarMenuButton, SidebarMenuCollapsible, SidebarMenuCollapsiblePanel, SidebarMenuCollapsibleTrigger, SidebarMenuItem, SidebarProvider, SidebarToggle, Skeleton, Slider, SliderDescription, SliderGroup, SliderGroupSlider, SliderIcon, SliderInput, SliderLabel, SliderThumb, SliderValue, StackToastItem, StackToasts, Switch, THEME_STORAGE_KEY, TableAvatarCell, TableBadgeCell, TableBody, TableBooleanCell, TableBottomBar, TableCheckboxCell, TableCheckboxHeader, TableColumnToggle, TableContainer, TableCurrencyCell, TableDateFilterChip, TableDateFilterForm, TableEmpty as TableEmptyMessage, TableFilterList, TableFilterMenu, TableFirstPage, TableFooter, TableHeader, TableImageCell, TableLastPage, TableLayout, TableLinkCell, TableNextPage, TableNumberCell, TableNumberFilterChip, TableNumberFilterForm, TablePagination, TablePaging, TablePercentCell, TablePreviousPage, TableProgressCell, TableRelativeTimeCell, TableResults, TableSearch, TableSelectFilterChip, TableSelectFilterForm, TableSortChip, TableSortList, TableSortMenu, TableStringFilterChip, TableStringFilterForm, TableTagsCell, TableTextCell, TableToolbar, TableTopBar, TableViewModeToggle, TableViewport, Tabs, TabsIndicator, TabsList, TabsPanel, TabsTab, TextArea, ThemeProvider, Toast, ToastProvider, Toggle, ToggleGroup, Tooltip, TooltipContent, TooltipTrigger, anchoredToastManager, cn, createAppColumnHelper, createAppColumnHelper$1 as createLayerTreeColumnHelper, dateFilterFn, defaultFilterOperatorLabels, features, fieldContext, findLayerTreeNode, formContext, formatDate, getPayloadConfigFromPayload, getStoredSidebarOpen, getThemeByValue, insertLayerTreeNode, features$1 as layerTreeFeatures, moveLayerTreeNode, moveLayerTreeNodeToRoot, numberFilterFn, popoverHandle, removeLayerTreeNode, rowLockedFeature, rowVisibilityFeature, selectFilterFn, stackToastManager, stringFilterFn, useAppForm, useAppTable, useCellContext, useChart, useChartTooltipContent, useChartTooltipPayload, useFieldContext, useFilter, useFilteredItems, useFormContext, useHeaderContext, useLayerTree, useCellContext$1 as useLayerTreeCellContext, useTableContext as useLayerTreeContext, useHeaderContext$1 as useLayerTreeHeaderContext, useAppTable$1 as useLayerTreeTable, useMediaQuery, useSidebar, useSliderGroupContext, useTableContext$1 as useTableContext, useTheme, useToastManager, useTypedAppFormContext, withFieldGroup, withForm };
|
|
10324
|
+
export { Accordion, AccordionExpandIcon, AccordionHeader, AccordionHeaderContent, AccordionIcon, AccordionItem, AccordionPanel, AccordionSubtitle, AccordionTitle, Alert, AlertAction, AlertDescription, AlertDialog, AlertDialogClose, AlertDialogConfirm, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogIcon, AlertDialogPopup, AlertDialogTitle, AlertDialogTrigger, AlertIcon, AlertTitle, AnchoredToastItem, AnchoredToasts, Autocomplete, AutocompleteCollection, AutocompleteContent, AutocompleteGridContent, AutocompleteGridItem, AutocompleteGroup, AutocompleteGroupLabel, AutocompleteInputGroup, AutocompleteInputGroupAddon, AutocompleteInputGroupInput, AutocompleteItem, AutocompleteRow, AutocompleteStatus, AutocompleteTrigger, Avatar, AvatarBadge, AvatarFallback, AvatarImage, Badge, BentoBox, BentoBoxAction, BentoBoxContent, BentoBoxDescription, BentoBoxFooter, BentoBoxHeader, BentoBoxTitle, Breadcrumb, BreadcrumbEllipsis, BreadcrumbItem, BreadcrumbLink, BreadcrumbSeparator, Button, ButtonGroup, Calendar, CalendarChevron, CalendarDayButton, CalendarDropdown, CalendarFooter, CalendarHeader, CalendarNextMonthButton, CalendarPanel, CalendarPicker, CalendarPreviousMonthButton, CalendarSummary, ChartContainer, ChartContainerContext, ChartLegend, ChartLegendContent, ChartLegendIcon, ChartLegendIndicator, ChartLegendLabel, ChartLinearGradient, ChartTooltip, ChartTooltipContent, ChartTooltipIcon, ChartTooltipIndicator, ChartTooltipLabel, ChartTooltipName, ChartTooltipPayload, ChartTooltipValue, Checkbox, CheckboxGroup, CheckboxIndicator, CodeBlock, CodeBlockActions, CodeBlockCopy, CodeBlockDownload, CodeBlockHeader, CodeBlockName, CodeBlockSelect, CodeBlockTabs, CodeBlockWindow, Collapsible, CollapsiblePanel, CollapsibleTrigger, ColorChannelSlider, ColorPicker, ColorPickerArea, ColorPickerGroup, ColorPickerHueSlider, ColorPickerInput, ColorPickerLabel, ColorPickerLightnessSlider, ColorPickerPaletteLimit, ColorPickerPaletteList, ColorPickerPaletteSwatch, ColorPickerRow, ColorPickerTransparencySlider, ColorPickerValueType, Combobox, ComboboxChip, ComboboxChips, ComboboxCollection, ComboboxEmpty, ComboboxGroup, ComboboxGroupLabel, ComboboxInput, ComboboxItem, ComboboxList, ComboboxPopup, ComboboxStatus, ComboboxTrigger, ComboboxValue, ComboboxVirtualizedList, ContextMenu, ContextMenuCheckboxItem, ContextMenuGroup, ContextMenuGroupLabel, ContextMenuItem, ContextMenuPopup, ContextMenuRadioGroup, ContextMenuRadioItem, ContextMenuSeparator, ContextMenuShortcut, ContextMenuSubmenu, ContextMenuSubmenuTrigger, ContextMenuTrigger, DEFAULT_THEME, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogHelper, DialogIcon, DialogPopup, DialogTitle, DialogTrigger, Drawer, DrawerClose, DrawerContent, DrawerDescription, DrawerHeader, DrawerPopup, DrawerProvider, DrawerTitle, DrawerTrigger, Dropzone, DropzoneActions, DropzoneClear, DropzoneConfirm, DropzoneContainer, DropzoneError, DropzoneFilesList as DropzoneFileList, DropzoneFileSizeLimit, DropzoneFiles, DropzoneFilesHeader, DropzoneFilesTitle, DropzoneFormats, DropzoneHeading, DropzoneIcon, DropzoneInfo, DropzoneSubtitle, DropzoneTrigger, Field, FieldCheckbox, FieldDescription, FieldErrors, FieldInput, FieldInputGroup, FieldInputGroupInput, FieldLabel, FieldRadio, FieldRadioGroup, FieldRow, FieldSelect, FieldSet, FieldSlider, FieldSwitch, FieldTextArea, FieldToggle, Form, FormErrors, FormFooter, FormReset, FormSet, FormSetContent, FormSetHeading, FormSubmit, Icon, IconContainer, IconProvider, Input, InputGroup, InputGroupAddon, InputGroupInput, InputGroupSeparator, InputOTP, InputOTPSlot, InputOtpSeparator, Kbd, KbdGroup, Label, LayerTree, LayerTreeBody, LayerTreeExpandAll, LayerTreeFooter, LayerTreeIconCell, LayerTreeLockedAll, LayerTreeLockedCell, LayerTreeNodeIcon, LayerTreeRow, LayerTreeSearch, LayerTreeSort, LayerTreeTextCell, LayerTreeTriggerCell, LayerTreeVisibilityAll, LayerTreeVisibilityCell, Menu, MenuCheckboxItem, MenuGroup, MenuGroupLabel, MenuItem, MenuPopup, MenuRadioGroup, MenuRadioItem, MenuSeparator, MenuShortcut, MenuSubmenu, MenuSubmenuTrigger, MenuTrigger, Meter, MeterFooter, MeterHeader, MeterIndicator, MeterLabel, MeterSubtitle, MeterTrack, MeterValue, NavBar, NavBarItem, NavBarItemIcon, NavBarItemLabel, NavigationMenu, NavigationMenuContent, NavigationMenuIcon, NavigationMenuItem, NavigationMenuLink, NavigationMenuList, NavigationMenuPopup, NavigationMenuTrigger, NumberField, Popover, PopoverButton, PopoverContent, PopoverDescription, PopoverHeader, PopoverPanel, PopoverTitle, PopoverTrigger, PreviewCard, PreviewCardPopup, PreviewCardTrigger, Profile, ProfileAction, ProfileContent, ProfileName, ProfileSubname, Progress, ProgressBar, ProgressDescription, ProgressIndicator, ProgressLabel, ProgressTitle, RadarPing, Radio, RadioGroup, ResizeableHandle, ResizeablePanel, ResizeablePanelGroup, ScrollArea, Select, SelectDescription, SelectGroup, SelectGroupLabel, SelectIcon, SelectItem, SelectList, SelectPopup, SelectTitle, SelectTrigger, SelectValue, Separator, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInset, SidebarMenu, SidebarMenuBadge, SidebarMenuButton, SidebarMenuCollapsible, SidebarMenuCollapsiblePanel, SidebarMenuCollapsibleTrigger, SidebarMenuItem, SidebarProvider, SidebarToggle, Skeleton, Slider, SliderDescription, SliderGroup, SliderGroupSlider, SliderIcon, SliderInput, SliderLabel, SliderThumb, SliderValue, StackToastItem, StackToasts, Switch, THEME_STORAGE_KEY, TableAvatarCell, TableBadgeCell, TableBody, TableBooleanCell, TableBottomBar, TableCheckboxCell, TableCheckboxHeader, TableColumnToggle, TableContainer, TableCurrencyCell, TableDateFilterChip, TableDateFilterForm, TableEmpty as TableEmptyMessage, TableFilterList, TableFilterMenu, TableFirstPage, TableFooter, TableHeader, TableImageCell, TableLastPage, TableLayout, TableLinkCell, TableNextPage, TableNumberCell, TableNumberFilterChip, TableNumberFilterForm, TablePagination, TablePaging, TablePercentCell, TablePreviousPage, TableProgressCell, TableRelativeTimeCell, TableResults, TableSearch, TableSelectFilterChip, TableSelectFilterForm, TableSortChip, TableSortList, TableSortMenu, TableStringFilterChip, TableStringFilterForm, TableTagsCell, TableTextCell, TableToolbar, TableTopBar, TableViewModeToggle, TableViewport, Tabs, TabsIndicator, TabsList, TabsPanel, TabsTab, TextArea, ThemeProvider, Toast, ToastProvider, Toggle, ToggleGroup, Tooltip, TooltipContent, TooltipTrigger, anchoredToastManager, cn, createAppColumnHelper, createAppColumnHelper$1 as createLayerTreeColumnHelper, dateFilterFn, defaultFilterOperatorLabels, features, fieldContext, findLayerTreeNode, formContext, formatDate, getPayloadConfigFromPayload, getStoredSidebarOpen, getThemeByValue, insertLayerTreeNode, features$1 as layerTreeFeatures, moveLayerTreeNode, moveLayerTreeNodeToRoot, numberFilterFn, popoverHandle, removeLayerTreeNode, rowLockedFeature, rowVisibilityFeature, selectFilterFn, stackToastManager, stringFilterFn, useAppForm, useAppTable, useCellContext, useChart, useChartTooltipContent, useChartTooltipPayload, useFieldContext, useFilter, useFilteredItems, useFormContext, useHeaderContext, useLayerTree, useCellContext$1 as useLayerTreeCellContext, useTableContext as useLayerTreeContext, useHeaderContext$1 as useLayerTreeHeaderContext, useAppTable$1 as useLayerTreeTable, useMediaQuery, useSidebar, useSliderGroupContext, useTableContext$1 as useTableContext, useTheme, useToastManager, useTypedAppFormContext, withFieldGroup, withForm };
|
|
10161
10325
|
|
|
10162
10326
|
//# sourceMappingURL=index.js.map
|