@aircall/ds 0.22.0 → 0.24.1
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/globals.css +1 -1
- package/dist/index.d.ts +150 -23
- package/dist/index.js +243 -52
- package/dist/theme.css +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22,9 +22,9 @@ import { Collapsible as Collapsible$1 } from "@base-ui/react/collapsible";
|
|
|
22
22
|
import { Combobox as Combobox$1 } from "@base-ui/react";
|
|
23
23
|
import { Command as Command$1 } from "cmdk";
|
|
24
24
|
import { Dialog as Dialog$1 } from "@base-ui/react/dialog";
|
|
25
|
+
import { useControllableState } from "@aircall/hooks";
|
|
25
26
|
import { flexRender, getCoreRowModel, useReactTable } from "@tanstack/react-table";
|
|
26
27
|
import { useVirtualizer } from "@tanstack/react-virtual";
|
|
27
|
-
import { useControllableState } from "@aircall/hooks";
|
|
28
28
|
import { checkboxesFeature, hotkeysCoreFeature, selectionFeature, syncDataLoaderFeature } from "@headless-tree/core";
|
|
29
29
|
import { useTree } from "@headless-tree/react";
|
|
30
30
|
import { Drawer as DrawerPrimitive } from "@base-ui/react/drawer";
|
|
@@ -223,6 +223,7 @@ const de = {
|
|
|
223
223
|
"pagination.nextPage": "Zur nächsten Seite",
|
|
224
224
|
"dataTable.selectAllRows": "Alle Zeilen auswählen",
|
|
225
225
|
"dataTable.selectRow": "Zeile auswählen",
|
|
226
|
+
"dataCombobox.noResults": "Keine Ergebnisse",
|
|
226
227
|
"tree.collapse": "Minimieren",
|
|
227
228
|
"tree.expand": "Erweitern",
|
|
228
229
|
"multiselect.remove": "Entfernen",
|
|
@@ -251,6 +252,7 @@ const en = {
|
|
|
251
252
|
"pagination.nextPage": "Go to next page",
|
|
252
253
|
"dataTable.selectAllRows": "Select all rows",
|
|
253
254
|
"dataTable.selectRow": "Select row",
|
|
255
|
+
"dataCombobox.noResults": "No results found",
|
|
254
256
|
"tree.collapse": "Collapse",
|
|
255
257
|
"tree.expand": "Expand",
|
|
256
258
|
"multiselect.remove": "Remove",
|
|
@@ -279,6 +281,7 @@ const es = {
|
|
|
279
281
|
"pagination.nextPage": "Ir a la página siguiente",
|
|
280
282
|
"dataTable.selectAllRows": "Seleccionar todas las filas",
|
|
281
283
|
"dataTable.selectRow": "Seleccionar fila",
|
|
284
|
+
"dataCombobox.noResults": "Sin resultados",
|
|
282
285
|
"tree.collapse": "Minimizar",
|
|
283
286
|
"tree.expand": "Ampliar",
|
|
284
287
|
"multiselect.remove": "Eliminar",
|
|
@@ -307,6 +310,7 @@ const fr = {
|
|
|
307
310
|
"pagination.nextPage": "Aller à la page suivante",
|
|
308
311
|
"dataTable.selectAllRows": "Sélectionner toutes les lignes",
|
|
309
312
|
"dataTable.selectRow": "Sélectionner la ligne",
|
|
313
|
+
"dataCombobox.noResults": "Aucun résultat",
|
|
310
314
|
"tree.collapse": "Réduire",
|
|
311
315
|
"tree.expand": "Développer",
|
|
312
316
|
"multiselect.remove": "Supprimer",
|
|
@@ -335,6 +339,7 @@ const it = {
|
|
|
335
339
|
"pagination.previousPage": "Vai alla pagina precedente",
|
|
336
340
|
"dataTable.selectAllRows": "Seleziona tutte le righe",
|
|
337
341
|
"dataTable.selectRow": "Seleziona riga",
|
|
342
|
+
"dataCombobox.noResults": "Nessun risultato",
|
|
338
343
|
"tree.collapse": "Ridurre",
|
|
339
344
|
"tree.expand": "Espandi",
|
|
340
345
|
"multiselect.remove": "Rimuovi",
|
|
@@ -2652,7 +2657,7 @@ CollapsibleContent.displayName = "CollapsibleContent";
|
|
|
2652
2657
|
|
|
2653
2658
|
//#endregion
|
|
2654
2659
|
//#region src/components/input.tsx
|
|
2655
|
-
const inputVariants = cva("text-foreground file:text-foreground placeholder:text-muted-foreground dark:bg-input/30 border-input flex h-10 w-full min-w-0 rounded-md border bg-background px-3 py-2 text-
|
|
2660
|
+
const inputVariants = cva("text-foreground file:text-foreground placeholder:text-muted-foreground dark:bg-input/30 border-input flex h-10 w-full min-w-0 rounded-md border bg-background px-3 py-2 text-sm transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 dark:disabled:bg-input/80 md:text-sm focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:border-destructive focus-visible:aria-invalid:ring-destructive/20 focus-visible:aria-invalid:ring-3 dark:focus-visible:aria-invalid:ring-destructive/40", { variants: { block: { true: "w-full" } } });
|
|
2656
2661
|
const Input = React.forwardRef((componentProps, forwardRef) => {
|
|
2657
2662
|
const { className, type, block, ...props } = componentProps;
|
|
2658
2663
|
return /* @__PURE__ */ jsx("input", {
|
|
@@ -2675,7 +2680,7 @@ const Textarea = React.forwardRef((componentProps, forwardRef) => {
|
|
|
2675
2680
|
return /* @__PURE__ */ jsx("textarea", {
|
|
2676
2681
|
ref: forwardRef,
|
|
2677
2682
|
"data-slot": "textarea",
|
|
2678
|
-
className: cn("border-input text-foreground placeholder:text-muted-foreground hover:
|
|
2683
|
+
className: cn("border-input text-foreground placeholder:text-muted-foreground hover:aria-invalid:border-destructive focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-3 aria-invalid:border-destructive focus-visible:aria-invalid:ring-destructive/20 focus-visible:aria-invalid:ring-3 dark:focus-visible:aria-invalid:ring-destructive/40 dark:bg-input/30 flex field-sizing-content min-h-16 w-full rounded-md border bg-background px-3 py-2 text-base shadow-xs transition-[color,box-shadow] outline-none disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 dark:disabled:bg-input/80 md:text-sm", className),
|
|
2679
2684
|
...props
|
|
2680
2685
|
});
|
|
2681
2686
|
});
|
|
@@ -2689,7 +2694,7 @@ Textarea.displayName = "Textarea";
|
|
|
2689
2694
|
* affix-driven input padding adjustments. Exported so `NumericInput` renders an
|
|
2690
2695
|
* identical container without nesting inside `InputGroup`.
|
|
2691
2696
|
*/
|
|
2692
|
-
const inputGroupShellClassName = cn("group/input-group bg-background border-input dark:bg-input/30 relative flex h-10 w-full items-center rounded-md border transition-[color,box-shadow] outline-none has-[>textarea]:h-auto", "
|
|
2697
|
+
const inputGroupShellClassName = cn("group/input-group bg-background border-input dark:bg-input/30 relative flex h-10 w-full items-center rounded-md border transition-[color,box-shadow] outline-none has-[>textarea]:h-auto", "has-[input:disabled]:bg-input/50 has-[textarea:disabled]:bg-input/50 has-[input:disabled]:opacity-50 has-[textarea:disabled]:opacity-50 dark:has-[input:disabled]:bg-input/80 dark:has-[textarea:disabled]:bg-input/80", "has-[>[data-align=inline-start]]:[&>input]:pl-2", "has-[>[data-align=inline-end]]:[&>input]:pr-2", "has-[>[data-align=block-start]]:h-auto has-[>[data-align=block-start]]:flex-col has-[>[data-align=block-start]]:[&>input]:pb-3", "has-[>[data-align=block-end]]:h-auto has-[>[data-align=block-end]]:flex-col has-[>[data-align=block-end]]:[&>input]:pt-3", "has-[[data-slot=input-group-control]:focus-visible]:border-ring has-[[data-slot=input-group-control]:focus-visible]:ring-ring/50 has-[[data-slot=input-group-control]:focus-visible]:ring-3", "has-[[data-slot][aria-invalid=true]]:border-destructive has-[[data-slot][aria-invalid=true]:focus-visible]:ring-destructive/20 dark:has-[[data-slot][aria-invalid=true]:focus-visible]:ring-destructive/40");
|
|
2693
2698
|
const InputGroup = React.forwardRef((componentProps, forwardRef) => {
|
|
2694
2699
|
const { className, ...props } = componentProps;
|
|
2695
2700
|
return /* @__PURE__ */ jsx("div", {
|
|
@@ -2853,7 +2858,7 @@ const ComboboxList = React.forwardRef((componentProps, forwardRef) => {
|
|
|
2853
2858
|
return /* @__PURE__ */ jsx(Combobox$1.List, {
|
|
2854
2859
|
ref: forwardRef,
|
|
2855
2860
|
"data-slot": "combobox-list",
|
|
2856
|
-
className: cn("
|
|
2861
|
+
className: cn("scroll-fade scrollbar-none max-h-[min(calc(--spacing(72)---spacing(9)),calc(var(--available-height)---spacing(9)))] scroll-py-1 overflow-y-auto overscroll-contain p-1 outline-hidden data-empty:p-0", className),
|
|
2857
2862
|
...props
|
|
2858
2863
|
});
|
|
2859
2864
|
});
|
|
@@ -3200,6 +3205,234 @@ const Skeleton = React.forwardRef((componentProps, forwardRef) => {
|
|
|
3200
3205
|
});
|
|
3201
3206
|
Skeleton.displayName = "Skeleton";
|
|
3202
3207
|
|
|
3208
|
+
//#endregion
|
|
3209
|
+
//#region src/lib/use-fetch-more-sentinel.ts
|
|
3210
|
+
/**
|
|
3211
|
+
* Returns a callback ref for a scroll sentinel element placed at the bottom of a
|
|
3212
|
+
* scrollable list. When the sentinel scrolls into view (within `rootMargin`),
|
|
3213
|
+
* `onFetchMore` fires once. The observer is (re)attached whenever the sentinel
|
|
3214
|
+
* node mounts — so it works even if the sentinel only appears after the first
|
|
3215
|
+
* page loads — and re-arms whenever `resetKey` changes (a page arrived, or the
|
|
3216
|
+
* list reset), so pagination keeps going while the sentinel stays in view and
|
|
3217
|
+
* pauses once it scrolls away. It fires at most once per intersection, so a
|
|
3218
|
+
* sentinel that stays in view can't trigger duplicate loads or a tight retry
|
|
3219
|
+
* loop when a fetch fails and the data is unchanged.
|
|
3220
|
+
*
|
|
3221
|
+
* `getRoot` resolves the scroll container the sentinel is measured against, given
|
|
3222
|
+
* the sentinel node — return the scrolling ancestor (a table container, a
|
|
3223
|
+
* combobox list, …) so `rootMargin` gives prefetch headroom inside a clipped
|
|
3224
|
+
* scroll area, or `null` to measure against the viewport.
|
|
3225
|
+
*
|
|
3226
|
+
* @example
|
|
3227
|
+
* ```tsx
|
|
3228
|
+
* const sentinelRef = useFetchMoreSentinel<HTMLDivElement>(
|
|
3229
|
+
* onFetchMore,
|
|
3230
|
+
* node => node.closest<HTMLElement>('[data-slot="combobox-list"]'),
|
|
3231
|
+
* items.length
|
|
3232
|
+
* );
|
|
3233
|
+
* // …later, at the bottom of the list:
|
|
3234
|
+
* <div aria-hidden ref={sentinelRef} />
|
|
3235
|
+
* ```
|
|
3236
|
+
*/
|
|
3237
|
+
function useFetchMoreSentinel(onFetchMore, getRoot, resetKey) {
|
|
3238
|
+
const onFetchMoreRef = React.useRef(onFetchMore);
|
|
3239
|
+
onFetchMoreRef.current = onFetchMore;
|
|
3240
|
+
const getRootRef = React.useRef(getRoot);
|
|
3241
|
+
getRootRef.current = getRoot;
|
|
3242
|
+
const observerRef = React.useRef(null);
|
|
3243
|
+
const nodeRef = React.useRef(null);
|
|
3244
|
+
const armedRef = React.useRef(true);
|
|
3245
|
+
const observe = React.useCallback(() => {
|
|
3246
|
+
observerRef.current?.disconnect();
|
|
3247
|
+
observerRef.current = null;
|
|
3248
|
+
const node = nodeRef.current;
|
|
3249
|
+
if (!node) return;
|
|
3250
|
+
const root = getRootRef.current(node);
|
|
3251
|
+
const observer = new IntersectionObserver((entries) => {
|
|
3252
|
+
if (entries[entries.length - 1]?.isIntersecting) {
|
|
3253
|
+
if (armedRef.current) {
|
|
3254
|
+
armedRef.current = false;
|
|
3255
|
+
onFetchMoreRef.current?.();
|
|
3256
|
+
}
|
|
3257
|
+
} else armedRef.current = true;
|
|
3258
|
+
}, {
|
|
3259
|
+
root,
|
|
3260
|
+
rootMargin: "200px"
|
|
3261
|
+
});
|
|
3262
|
+
observer.observe(node);
|
|
3263
|
+
observerRef.current = observer;
|
|
3264
|
+
}, []);
|
|
3265
|
+
React.useEffect(() => {
|
|
3266
|
+
armedRef.current = true;
|
|
3267
|
+
observe();
|
|
3268
|
+
}, [resetKey, observe]);
|
|
3269
|
+
return React.useCallback((node) => {
|
|
3270
|
+
nodeRef.current = node;
|
|
3271
|
+
observe();
|
|
3272
|
+
}, [observe]);
|
|
3273
|
+
}
|
|
3274
|
+
|
|
3275
|
+
//#endregion
|
|
3276
|
+
//#region src/components/data-combobox.tsx
|
|
3277
|
+
const DEFAULT_SKELETON_COUNT$1 = 5;
|
|
3278
|
+
const EMPTY_KEYS$1 = /* @__PURE__ */ new Set();
|
|
3279
|
+
function DataCombobox(componentProps) {
|
|
3280
|
+
const { items, getItemValue, getItemLabel, renderItem, renderChip, getGroupKey, getGroupLabel, selectionMode = "single", selectedKeys, defaultSelectedKeys, onSelectionChange, onOpenChange, selectedItems, disabledKeys, loadingState = "idle", skeletonCount = DEFAULT_SKELETON_COUNT$1, onSearch, onFetchMore, hasMore = false, emptyState, trigger, searchable = true, placeholder, disabled = false, className, contentClassName, "aria-label": ariaLabel } = componentProps;
|
|
3281
|
+
const t = useDsTranslation("ds");
|
|
3282
|
+
const multiple = selectionMode === "multiple";
|
|
3283
|
+
const disabledKeySet = disabledKeys ?? EMPTY_KEYS$1;
|
|
3284
|
+
const itemCacheRef = React.useRef(/* @__PURE__ */ new Map());
|
|
3285
|
+
if (selectedItems) for (const item of selectedItems) itemCacheRef.current.set(getItemValue(item), item);
|
|
3286
|
+
for (const item of items) itemCacheRef.current.set(getItemValue(item), item);
|
|
3287
|
+
const itemCache = itemCacheRef.current;
|
|
3288
|
+
const [selectionSet, setSelectionSet] = useControllableState({
|
|
3289
|
+
prop: selectedKeys,
|
|
3290
|
+
defaultProp: defaultSelectedKeys,
|
|
3291
|
+
onChange: onSelectionChange
|
|
3292
|
+
});
|
|
3293
|
+
const keys = selectionSet ?? EMPTY_KEYS$1;
|
|
3294
|
+
const selectedObjects = [];
|
|
3295
|
+
for (const key of keys) {
|
|
3296
|
+
const item = itemCache.get(key);
|
|
3297
|
+
if (item) selectedObjects.push(item);
|
|
3298
|
+
}
|
|
3299
|
+
const commit = React.useCallback((objs) => setSelectionSet(new Set(objs.map(getItemValue))), [setSelectionSet, getItemValue]);
|
|
3300
|
+
const handleInputValueChange = onSearch ? (value, details) => {
|
|
3301
|
+
if (details.reason === "input-change" || details.reason === "input-clear" || details.reason === "clear-press") onSearch(value);
|
|
3302
|
+
} : void 0;
|
|
3303
|
+
const isInitialLoading = loadingState === "loading";
|
|
3304
|
+
const isFiltering = loadingState === "filtering";
|
|
3305
|
+
const isLoadingMore = loadingState === "loadingMore";
|
|
3306
|
+
const groups = React.useMemo(() => {
|
|
3307
|
+
if (!getGroupKey) return null;
|
|
3308
|
+
const byKey = /* @__PURE__ */ new Map();
|
|
3309
|
+
for (const item of items) {
|
|
3310
|
+
const gk = getGroupKey(item);
|
|
3311
|
+
const bucket = byKey.get(gk);
|
|
3312
|
+
if (bucket) bucket.push(item);
|
|
3313
|
+
else byKey.set(gk, [item]);
|
|
3314
|
+
}
|
|
3315
|
+
return Array.from(byKey, ([groupKey, groupItems]) => ({
|
|
3316
|
+
groupKey,
|
|
3317
|
+
label: getGroupLabel ? getGroupLabel(groupKey) : groupKey,
|
|
3318
|
+
items: groupItems
|
|
3319
|
+
}));
|
|
3320
|
+
}, [
|
|
3321
|
+
items,
|
|
3322
|
+
getGroupKey,
|
|
3323
|
+
getGroupLabel
|
|
3324
|
+
]);
|
|
3325
|
+
const isGrouped = groups !== null;
|
|
3326
|
+
const sentinelRef = useFetchMoreSentinel(onFetchMore, (node) => node.closest("[data-slot=\"combobox-list\"]"), items.length);
|
|
3327
|
+
const lastRenderedItem = (groups?.at(-1)?.items ?? items).at(-1);
|
|
3328
|
+
const lastItemKey = lastRenderedItem ? getItemValue(lastRenderedItem) : void 0;
|
|
3329
|
+
const renderRow = (item) => {
|
|
3330
|
+
const key = getItemValue(item);
|
|
3331
|
+
const attachSentinel = !!onFetchMore && hasMore && key === lastItemKey;
|
|
3332
|
+
return /* @__PURE__ */ jsx(ComboboxItem, {
|
|
3333
|
+
value: item,
|
|
3334
|
+
disabled: disabledKeySet.has(key),
|
|
3335
|
+
ref: attachSentinel ? sentinelRef : void 0,
|
|
3336
|
+
"data-test": attachSentinel ? "fetch-sentinel" : void 0,
|
|
3337
|
+
children: renderItem ? renderItem(item) : getItemLabel(item)
|
|
3338
|
+
}, key);
|
|
3339
|
+
};
|
|
3340
|
+
const popupBody = /* @__PURE__ */ jsxs("div", {
|
|
3341
|
+
className: "relative",
|
|
3342
|
+
children: [isInitialLoading ? /* @__PURE__ */ jsx("div", {
|
|
3343
|
+
className: "p-1",
|
|
3344
|
+
children: /* @__PURE__ */ jsx(ComboboxSkeleton, { count: skeletonCount })
|
|
3345
|
+
}) : /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
3346
|
+
/* @__PURE__ */ jsx(ComboboxList, {
|
|
3347
|
+
"aria-label": ariaLabel,
|
|
3348
|
+
children: isGrouped ? (group) => /* @__PURE__ */ jsxs(ComboboxGroup, {
|
|
3349
|
+
items: group.items,
|
|
3350
|
+
children: [/* @__PURE__ */ jsx(ComboboxLabel, { children: group.label }), /* @__PURE__ */ jsx(ComboboxCollection, { children: renderRow })]
|
|
3351
|
+
}, group.groupKey) : renderRow
|
|
3352
|
+
}),
|
|
3353
|
+
isFiltering ? null : /* @__PURE__ */ jsx(ComboboxEmpty, { children: emptyState ?? t("dataCombobox.noResults") }),
|
|
3354
|
+
isLoadingMore ? /* @__PURE__ */ jsx(SpinnerRow, {}) : null
|
|
3355
|
+
] }), isFiltering ? /* @__PURE__ */ jsx("div", {
|
|
3356
|
+
"data-slot": "combobox-loading-overlay",
|
|
3357
|
+
className: "bg-popover/60 absolute inset-0 z-10 flex items-center justify-center",
|
|
3358
|
+
children: /* @__PURE__ */ jsx(Spinner, {})
|
|
3359
|
+
}) : null]
|
|
3360
|
+
});
|
|
3361
|
+
const chipsAnchor = useComboboxAnchor();
|
|
3362
|
+
const overlayLayout = trigger ? /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(Combobox$1.Trigger, { render: trigger }), /* @__PURE__ */ jsxs(ComboboxContent, {
|
|
3363
|
+
className: cn("min-w-50", contentClassName),
|
|
3364
|
+
children: [searchable ? /* @__PURE__ */ jsx(ComboboxInput, {
|
|
3365
|
+
showTrigger: false,
|
|
3366
|
+
placeholder
|
|
3367
|
+
}) : null, popupBody]
|
|
3368
|
+
})] }) : null;
|
|
3369
|
+
if (multiple) return /* @__PURE__ */ jsx(Combobox, {
|
|
3370
|
+
multiple: true,
|
|
3371
|
+
autoHighlight: true,
|
|
3372
|
+
items: groups ?? items,
|
|
3373
|
+
disabled,
|
|
3374
|
+
filter: onSearch || onFetchMore && hasMore ? null : void 0,
|
|
3375
|
+
value: selectedObjects,
|
|
3376
|
+
onValueChange: commit,
|
|
3377
|
+
itemToStringValue: getItemValue,
|
|
3378
|
+
itemToStringLabel: getItemLabel,
|
|
3379
|
+
isItemEqualToValue: (a, b) => getItemValue(a) === getItemValue(b),
|
|
3380
|
+
onInputValueChange: handleInputValueChange,
|
|
3381
|
+
onOpenChange,
|
|
3382
|
+
children: trigger ? overlayLayout : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ComboboxChips, {
|
|
3383
|
+
ref: chipsAnchor,
|
|
3384
|
+
className,
|
|
3385
|
+
children: /* @__PURE__ */ jsx(ComboboxValue, { children: (values) => /* @__PURE__ */ jsxs(Fragment, { children: [values.map((item) => renderChip ? /* @__PURE__ */ jsx(React.Fragment, { children: renderChip(item) }, getItemValue(item)) : /* @__PURE__ */ jsx(ComboboxChip, { children: getItemLabel(item) }, getItemValue(item))), /* @__PURE__ */ jsx(ComboboxChipsInput, { placeholder: keys.size === 0 ? placeholder : "" })] }) })
|
|
3386
|
+
}), /* @__PURE__ */ jsx(ComboboxContent, {
|
|
3387
|
+
anchor: chipsAnchor,
|
|
3388
|
+
className: cn("min-w-50", contentClassName),
|
|
3389
|
+
children: popupBody
|
|
3390
|
+
})] })
|
|
3391
|
+
}, selectionMode);
|
|
3392
|
+
return /* @__PURE__ */ jsx(Combobox, {
|
|
3393
|
+
autoHighlight: true,
|
|
3394
|
+
items: groups ?? items,
|
|
3395
|
+
disabled,
|
|
3396
|
+
filter: onSearch || onFetchMore && hasMore ? null : void 0,
|
|
3397
|
+
value: selectedObjects[0] ?? null,
|
|
3398
|
+
onValueChange: (next) => commit(next == null ? [] : [next]),
|
|
3399
|
+
itemToStringValue: getItemValue,
|
|
3400
|
+
itemToStringLabel: getItemLabel,
|
|
3401
|
+
isItemEqualToValue: (a, b) => getItemValue(a) === getItemValue(b),
|
|
3402
|
+
onInputValueChange: handleInputValueChange,
|
|
3403
|
+
onOpenChange,
|
|
3404
|
+
children: trigger ? overlayLayout : /* @__PURE__ */ jsxs(Fragment, { children: [/* @__PURE__ */ jsx(ComboboxInput, {
|
|
3405
|
+
className,
|
|
3406
|
+
placeholder,
|
|
3407
|
+
disabled,
|
|
3408
|
+
showClear: true
|
|
3409
|
+
}), /* @__PURE__ */ jsx(ComboboxContent, {
|
|
3410
|
+
className: cn("min-w-50", contentClassName),
|
|
3411
|
+
children: popupBody
|
|
3412
|
+
})] })
|
|
3413
|
+
}, selectionMode);
|
|
3414
|
+
}
|
|
3415
|
+
/**
|
|
3416
|
+
* A centered spinner row for the filtering and load-more states. Not
|
|
3417
|
+
* `aria-hidden` — the `Spinner`'s `role="status"` announces loading to screen
|
|
3418
|
+
* readers (that's the point of a loading indicator).
|
|
3419
|
+
*/
|
|
3420
|
+
function SpinnerRow() {
|
|
3421
|
+
return /* @__PURE__ */ jsx("div", {
|
|
3422
|
+
className: "flex justify-center py-2 text-muted-foreground",
|
|
3423
|
+
children: /* @__PURE__ */ jsx(Spinner, {})
|
|
3424
|
+
});
|
|
3425
|
+
}
|
|
3426
|
+
/** Skeleton rows shown while the initial page loads. */
|
|
3427
|
+
function ComboboxSkeleton({ count }) {
|
|
3428
|
+
return /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: count }, (_, i) => /* @__PURE__ */ jsx("div", {
|
|
3429
|
+
"aria-hidden": true,
|
|
3430
|
+
"data-test": "loading-item",
|
|
3431
|
+
className: "flex items-center gap-2 rounded-md p-2",
|
|
3432
|
+
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full" })
|
|
3433
|
+
}, `skeleton-${i}`)) });
|
|
3434
|
+
}
|
|
3435
|
+
|
|
3203
3436
|
//#endregion
|
|
3204
3437
|
//#region src/components/table.tsx
|
|
3205
3438
|
const Table = React.forwardRef((componentProps, forwardRef) => {
|
|
@@ -3364,7 +3597,7 @@ function DataTable(componentProps) {
|
|
|
3364
3597
|
const paddingBottom = virtualItems && virtualItems.length > 0 ? rowVirtualizer.getTotalSize() - virtualItems[virtualItems.length - 1].end : 0;
|
|
3365
3598
|
const showActionBar = !!actionBar && hasSelection;
|
|
3366
3599
|
const reservedBottom = showActionBar ? ActionBarHeight + 16 : void 0;
|
|
3367
|
-
const sentinelRef = useFetchMoreSentinel(onFetchMore, fillHeight, data.length);
|
|
3600
|
+
const sentinelRef = useFetchMoreSentinel(onFetchMore, (node) => fillHeight ? node.closest("[data-slot=\"table-container\"]") : null, data.length);
|
|
3368
3601
|
return /* @__PURE__ */ jsxs("div", {
|
|
3369
3602
|
className: cn("relative w-full", fillHeight && "flex min-h-0 flex-1 flex-col", className),
|
|
3370
3603
|
"aria-busy": isInitialLoading || isRefreshing || void 0,
|
|
@@ -3562,48 +3795,6 @@ function SkeletonRows({ columns, count }) {
|
|
|
3562
3795
|
children: /* @__PURE__ */ jsx(Skeleton, { className: "h-4 w-full max-w-full" })
|
|
3563
3796
|
}, col.id ?? `col-${ci}`)) }, `skeleton-${i}`)) });
|
|
3564
3797
|
}
|
|
3565
|
-
/**
|
|
3566
|
-
* Returns a callback ref for the scroll sentinel. The observer is (re)attached
|
|
3567
|
-
* whenever the sentinel node mounts — so it works even if the sentinel only
|
|
3568
|
-
* appears after the first page loads (the sentinel's presence is the gate). It
|
|
3569
|
-
* fires `onFetchMore` once per mount and disconnects immediately, so a single
|
|
3570
|
-
* page never triggers duplicate fetches; the sentinel remounts for the next page.
|
|
3571
|
-
*/
|
|
3572
|
-
function useFetchMoreSentinel(onFetchMore, fillHeight, resetKey) {
|
|
3573
|
-
const onFetchMoreRef = React.useRef(onFetchMore);
|
|
3574
|
-
onFetchMoreRef.current = onFetchMore;
|
|
3575
|
-
const observerRef = React.useRef(null);
|
|
3576
|
-
const nodeRef = React.useRef(null);
|
|
3577
|
-
const armedRef = React.useRef(true);
|
|
3578
|
-
const observe = React.useCallback(() => {
|
|
3579
|
-
observerRef.current?.disconnect();
|
|
3580
|
-
observerRef.current = null;
|
|
3581
|
-
const node = nodeRef.current;
|
|
3582
|
-
if (!node) return;
|
|
3583
|
-
const root = fillHeight ? node.closest("[data-slot=\"table-container\"]") : null;
|
|
3584
|
-
const observer = new IntersectionObserver((entries) => {
|
|
3585
|
-
if (entries[entries.length - 1]?.isIntersecting) {
|
|
3586
|
-
if (armedRef.current) {
|
|
3587
|
-
armedRef.current = false;
|
|
3588
|
-
onFetchMoreRef.current?.();
|
|
3589
|
-
}
|
|
3590
|
-
} else armedRef.current = true;
|
|
3591
|
-
}, {
|
|
3592
|
-
root,
|
|
3593
|
-
rootMargin: "200px"
|
|
3594
|
-
});
|
|
3595
|
-
observer.observe(node);
|
|
3596
|
-
observerRef.current = observer;
|
|
3597
|
-
}, [fillHeight]);
|
|
3598
|
-
React.useEffect(() => {
|
|
3599
|
-
armedRef.current = true;
|
|
3600
|
-
observe();
|
|
3601
|
-
}, [resetKey, observe]);
|
|
3602
|
-
return React.useCallback((node) => {
|
|
3603
|
-
nodeRef.current = node;
|
|
3604
|
-
observe();
|
|
3605
|
-
}, [observe]);
|
|
3606
|
-
}
|
|
3607
3798
|
|
|
3608
3799
|
//#endregion
|
|
3609
3800
|
//#region src/components/tree.tsx
|
|
@@ -4974,7 +5165,7 @@ const FieldLegend = React.forwardRef((componentProps, forwardRef) => {
|
|
|
4974
5165
|
ref: forwardRef,
|
|
4975
5166
|
"data-slot": "field-legend",
|
|
4976
5167
|
"data-variant": variant,
|
|
4977
|
-
className: cn("mb-1.5 font-
|
|
5168
|
+
className: cn("mb-1.5 font-bold leading-normal data-[variant=label]:text-sm data-[variant=legend]:text-xl", className),
|
|
4978
5169
|
...props
|
|
4979
5170
|
});
|
|
4980
5171
|
});
|
|
@@ -5966,7 +6157,7 @@ RadioGroupItem.displayName = "RadioGroupItem";
|
|
|
5966
6157
|
|
|
5967
6158
|
//#endregion
|
|
5968
6159
|
//#region src/components/select.tsx
|
|
5969
|
-
const selectTriggerVariants = cva("flex w-fit items-center justify-between rounded-md border border-input bg-transparent py-2 text-sm whitespace-nowrap transition-colors outline-none select-none
|
|
6160
|
+
const selectTriggerVariants = cva("flex w-fit items-center justify-between rounded-md border border-input bg-transparent py-2 text-sm whitespace-nowrap transition-colors outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:bg-input/50 disabled:opacity-50 aria-invalid:border-destructive focus-visible:aria-invalid:ring-3 focus-visible:aria-invalid:ring-destructive/20 data-placeholder:text-muted-foreground *:data-[slot=select-value]:line-clamp-1 *:data-[slot=select-value]:flex *:data-[slot=select-value]:items-center *:data-[slot=select-value]:gap-1.5 dark:bg-input/30 dark:disabled:bg-input/80 dark:aria-invalid:border-destructive/50 dark:focus-visible:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4", {
|
|
5970
6161
|
variants: { size: {
|
|
5971
6162
|
default: "h-10 gap-2 px-3",
|
|
5972
6163
|
sm: "h-8 gap-1.5 px-2"
|
|
@@ -6495,7 +6686,7 @@ const SidebarContent = React.forwardRef((componentProps, forwardRef) => {
|
|
|
6495
6686
|
ref: forwardRef,
|
|
6496
6687
|
"data-slot": "sidebar-content",
|
|
6497
6688
|
"data-sidebar": "content",
|
|
6498
|
-
className: cn("
|
|
6689
|
+
className: cn("scrollbar-none flex min-h-0 flex-1 flex-col gap-2 overflow-auto group-data-[collapsible=icon]:overflow-hidden", className),
|
|
6499
6690
|
...props
|
|
6500
6691
|
});
|
|
6501
6692
|
});
|
|
@@ -7168,4 +7359,4 @@ function useAudioGauge(options = {}) {
|
|
|
7168
7359
|
}
|
|
7169
7360
|
|
|
7170
7361
|
//#endregion
|
|
7171
|
-
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, ActionBarHeight, Alert, AlertAction, AlertAction as BannerAction, AlertDescription, AlertDescription as BannerDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTitle as BannerTitle, Anchor, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, AudioPlayerButton, AudioPlayerCurrentTime, AudioPlayerDuration, AudioPlayerManager, AudioPlayerRow, AudioPlayerSkip, AudioPlayerSpeed, AudioPlayerTime, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataTable, DataTree, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBackdrop, DrawerBar, DrawerClose, DrawerContent, DrawerCreateHandle, DrawerDescription, DrawerFooter, DrawerHeader, DrawerMenu, DrawerMenuCheckboxItem, DrawerMenuGroup, DrawerMenuGroupLabel, DrawerMenuItem, DrawerMenuRadioGroup, DrawerMenuRadioItem, DrawerMenuSeparator, DrawerMenuTrigger, DrawerPanel, DrawerPopup, DrawerPortal, DrawerPrimitive, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, DropdownMenuAddon, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneActions, DropzoneContent, DropzoneDescription, DropzoneIcon, DropzoneTitle, DropzoneTrigger, DsI18nProvider, EmojiPicker, EmojiPickerCategories, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelAside, FieldLabelInfo, FieldLabelRow, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filter, FilterClearAllButton, FilterGroup, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, List, ListCol, ListRow, NotificationQueueProvider, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
|
|
7362
|
+
export { Accordion, AccordionContent, AccordionItem, AccordionTrigger, ActionBar, ActionBarButton, ActionBarContext, ActionBarHeight, Alert, AlertAction, AlertAction as BannerAction, AlertDescription, AlertDescription as BannerDescription, AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, AlertTitle, AlertTitle as BannerTitle, Anchor, Attachment, AttachmentAction, AttachmentActions, AttachmentContent, AttachmentDescription, AttachmentGroup, AttachmentMedia, AttachmentTitle, AttachmentTrigger, Audio, AudioPlayerBar, AudioPlayerButton, AudioPlayerCurrentTime, AudioPlayerDuration, AudioPlayerManager, AudioPlayerRow, AudioPlayerSkip, AudioPlayerSpeed, AudioPlayerTime, Avatar, AvatarBadge, AvatarFallback, AvatarGroup, AvatarGroupCount, AvatarImage, Badge, BadgeGroup, BadgeGroupCount, Banner, Button, ButtonGroup, ButtonGroupSeparator, ButtonGroupText, Calendar, CalendarDayButton, Card, CardAction, CardContent, CardDescription, CardFooter, CardHeader, CardTitle, Carousel, CarouselContent, CarouselItem, CarouselNext, CarouselPrevious, Checkbox, Chip, ChipRemove, Collapsible, CollapsibleContent, CollapsibleTrigger, Combobox, ComboboxChip, ComboboxChips, ComboboxChipsInput, ComboboxCollection, ComboboxContent, ComboboxEmpty, ComboboxGroup, ComboboxInput, ComboboxItem, ComboboxLabel, ComboboxList, ComboboxSeparator, ComboboxTrigger, ComboboxValue, Command, CommandDialog, CommandEmpty, CommandGroup, CommandInput, CommandItem, CommandList, CommandSeparator, CommandShortcut, CounterBadge, CountryFlag, DataCombobox, DataTable, DataTree, Dialog, DialogClose, DialogContent, DialogDescription, DialogFooter, DialogHeader, DialogOverlay, DialogPortal, DialogTitle, DialogTrigger, Drawer, DrawerBackdrop, DrawerBar, DrawerClose, DrawerContent, DrawerCreateHandle, DrawerDescription, DrawerFooter, DrawerHeader, DrawerMenu, DrawerMenuCheckboxItem, DrawerMenuGroup, DrawerMenuGroupLabel, DrawerMenuItem, DrawerMenuRadioGroup, DrawerMenuRadioItem, DrawerMenuSeparator, DrawerMenuTrigger, DrawerPanel, DrawerPopup, DrawerPortal, DrawerPrimitive, DrawerSwipeArea, DrawerTitle, DrawerTrigger, DrawerViewport, DropdownMenu, DropdownMenuAddon, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, Dropzone, DropzoneActions, DropzoneContent, DropzoneDescription, DropzoneIcon, DropzoneTitle, DropzoneTrigger, DsI18nProvider, EmojiPicker, EmojiPickerCategories, EmojiPickerContent, EmojiPickerTrigger, Empty, EmptyContent, EmptyDescription, EmptyHeader, EmptyMedia, EmptyTitle, FAB, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLabelAside, FieldLabelInfo, FieldLabelRow, FieldLegend, FieldSeparator, FieldSet, FieldTitle, Filter, FilterClearAllButton, FilterGroup, Gauge, HoverCard, HoverCardContent, HoverCardTrigger, Input, InputGroup, InputGroupAddon, InputGroupButton, InputGroupInput, InputGroupText, InputGroupTextarea, InputOTP, InputOTPGroup, InputOTPSeparator, InputOTPSlot, Item, ItemActions, ItemContent, ItemDescription, ItemFooter, ItemGroup, ItemHeader, ItemMedia, ItemSeparator, ItemTitle, Label, List, ListCol, ListRow, NotificationQueueProvider, NotificationSlot, NumericInput, NumericInputControl, NumericInputDecrement, NumericInputIncrement, Pagination, PaginationContent, PaginationEllipsis, PaginationItem, PaginationLink, PaginationNext, PaginationPrevious, Popover, PopoverContent, PopoverDescription, PopoverHeader, PopoverTitle, PopoverTrigger, Progress, ProgressIndicator, ProgressLabel, ProgressTrack, ProgressValue, RadioGroup, RadioGroupItem, SUPPORTED_LANGUAGES, ScrollArea, ScrollAreaPrimitive, ScrollBar, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Separator, Sheet, SheetClose, SheetContent, SheetDescription, SheetFooter, SheetHeader, SheetTitle, SheetTrigger, Sidebar, SidebarContent, SidebarFooter, SidebarGroup, SidebarGroupAction, SidebarGroupContent, SidebarGroupLabel, SidebarHeader, SidebarInput, SidebarInset, SidebarMenu, SidebarMenuAction, SidebarMenuBadge, SidebarMenuButton, SidebarMenuItem, SidebarMenuSkeleton, SidebarMenuSub, SidebarMenuSubButton, SidebarMenuSubItem, SidebarProvider, SidebarRail, SidebarSeparator, SidebarTrigger, Skeleton, Slider, Spinner, Stepper, StepperContent, StepperCounter, StepperPanel, StepperProgress, Switch, Table, TableBody, TableCell, TableFooter, TableHead, TableHeader, TableRow, Tabs, TabsContent, TabsList, TabsTrigger, Textarea, ThemeProvider, Toaster, Toggle, ToggleGroup, ToggleGroupItem, Tooltip, TooltipContent, TooltipProvider, TooltipTrigger, Tree, TreeDragLine, TreeItem, TreeItemLabel, alertVariants, anchorVariants, bannerVariants, buttonGroupVariants, buttonVariants, cn, counterBadgeVariants, detectInitialLanguage, fabVariants, registerI18nNamespace, selectTriggerVariants, spinnerVariants, syncDsLanguage, toast, toggleVariants, useAudioGauge, useAudioPlayer, useAudioPlayerTime, useComboboxAnchor, useDsLocale, useDsTranslation, useNotification, useNotificationQueue, useSidebar, useStepper, useTheme };
|
package/dist/theme.css
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
/*! tailwindcss v4.1.18 | MIT License | https://tailwindcss.com */
|
|
2
|
-
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){:root,:host{--shimmer-angle:20deg}*,:before,:after,::backdrop{--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0;--scroll-fade-
|
|
2
|
+
@layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){:root,:host{--shimmer-angle:20deg}*,:before,:after,::backdrop{--tw-animation-delay:0s;--tw-animation-direction:normal;--tw-animation-duration:initial;--tw-animation-fill-mode:none;--tw-animation-iteration-count:1;--tw-enter-blur:0;--tw-enter-opacity:1;--tw-enter-rotate:0;--tw-enter-scale:1;--tw-enter-translate-x:0;--tw-enter-translate-y:0;--tw-exit-blur:0;--tw-exit-opacity:1;--tw-exit-rotate:0;--tw-exit-scale:1;--tw-exit-translate-x:0;--tw-exit-translate-y:0;--shimmer-image:initial;--shimmer-text-fill:initial;--scroll-fade-t:0px;--scroll-fade-b:0px;--scroll-fade-s:0px;--scroll-fade-e:0px;--scroll-fade-mask:initial}}}@property --tw-animation-delay{syntax:"*";inherits:false;initial-value:0s}@property --tw-animation-direction{syntax:"*";inherits:false;initial-value:normal}@property --tw-animation-duration{syntax:"*";inherits:false}@property --tw-animation-fill-mode{syntax:"*";inherits:false;initial-value:none}@property --tw-animation-iteration-count{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-enter-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-enter-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-blur{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-opacity{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-rotate{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-scale{syntax:"*";inherits:false;initial-value:1}@property --tw-exit-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-exit-translate-y{syntax:"*";inherits:false;initial-value:0}:root,:host{--color-charcoal-50:#f6fafc;--color-charcoal-300:#b0c4d1;--color-charcoal-700:#3a5362;--color-charcoal-900:#132c3b;--color-neutral-50:#f8f9fc;--color-neutral-100:#f0f2f6;--color-neutral-200:#e4e6ea;--color-neutral-400:#a4a6aa;--color-neutral-500:#7e8084;--color-neutral-600:#64666a;--color-neutral-700:#4b4d51;--color-neutral-800:#36383c;--color-neutral-900:#24262a;--color-neutral-950:#0b0d11;--color-red-50:#fff7f5;--color-red-400:#ff7256;--color-red-600:#db391a;--color-red-950:#420b00;--color-yellow-50:#fffcf3;--color-yellow-400:#f3ad26;--color-yellow-500:#d68100;--color-yellow-700:#8f5600;--color-yellow-950:#2f1c00;--color-green-50:#f4fffb;--color-green-400:#37cd8e;--color-green-500:#13a96a;--color-green-600:#00884f;--color-green-700:#006a3d;--color-green-950:#002817;--color-blue-50:#f5faff;--color-blue-400:#70b1ff;--color-blue-500:#388ef6;--color-blue-600:#1e74dc;--color-blue-700:#055bc3;--color-blue-950:#001f45;--color-purple-600:#6551d6;--color-purple-700:#4c38bd;--color-pink-500:#eb5e7c;--color-pink-600:#cf4260;--font-sans:"Fellix",sans-serif}.ds-emoji-picker .EmojiPickerReact,.ds-emoji-picker .EmojiPickerReact.epr-dark-theme{--epr-emoji-size:24px;--epr-category-navigation-button-size:24px;--epr-header-padding:calc(var(--spacing)*2)calc(var(--spacing)*2);--epr-category-label-height:calc(var(--spacing)*8);--epr-bg-color:var(--popover);--epr-category-label-bg-color:var(--popover);--epr-picker-border-color:var(--border);--epr-search-input-bg-color:var(--muted);--epr-search-input-bg-color-active:var(--muted);--epr-search-border-color:var(--ring);--epr-category-icon-active-color:var(--primary);font-family:var(--font-sans)}.ds-emoji-picker .EmojiPickerReact *{font-family:inherit}.ds-emoji-picker .EmojiPickerReact .epr-emoji-category>.epr-emoji-category-label{font-weight:400}.ds-emoji-picker .EmojiPickerReact .epr-category-nav>button.epr-cat-btn:focus:before{content:none}@keyframes caret-blink{0%,70%,to{opacity:1}20%,50%{opacity:0}}@keyframes badge-glow{0%,to{filter:drop-shadow(0 0 2px var(--badge-glow))}50%{filter:drop-shadow(0 0 5px var(--badge-glow))}}@layer theme{:root,:host{--background:#fff;--foreground:var(--color-neutral-950);--card:#fff;--card-foreground:var(--color-neutral-950);--popover:#fff;--popover-foreground:var(--color-neutral-950);--primary:var(--color-green-600);--primary-foreground:#fff;--secondary:var(--color-charcoal-700);--secondary-foreground:var(--color-charcoal-50);--info:var(--color-blue-500);--info-foreground:var(--color-blue-700);--info-background:var(--color-blue-50);--success:var(--color-green-500);--success-foreground:var(--color-green-700);--success-background:var(--color-green-50);--warning:var(--color-yellow-500);--warning-foreground:var(--color-yellow-700);--warning-background:var(--color-yellow-50);--muted:var(--color-neutral-100);--muted-foreground:var(--color-neutral-600);--accent:var(--color-neutral-100);--accent-foreground:var(--color-neutral-900);--destructive:var(--color-red-600);--destructive-foreground:var(--color-red-50);--destructive-background:var(--color-red-50);--border:var(--color-neutral-200);--input:var(--color-neutral-200);--ring:var(--color-neutral-400);--chart-1:var(--color-green-600);--chart-2:var(--color-blue-600);--chart-3:var(--color-purple-700);--chart-4:var(--color-yellow-400);--chart-5:var(--color-pink-500);--radius:.625rem;--sidebar:#fff;--sidebar-foreground:var(--color-neutral-800);--sidebar-primary:var(--color-green-600);--sidebar-primary-foreground:#fff;--sidebar-accent:var(--color-neutral-100);--sidebar-accent-foreground:var(--color-neutral-900);--sidebar-border:var(--color-neutral-200);--sidebar-ring:var(--color-neutral-400);--badge-film-10:#ffffff1a;--badge-film-40:#fff6;--badge-film-60:#fff9;--badge-film-80:#fffc}[data-theme=dark],[data-theme=dark] *{--background:var(--color-neutral-950);--foreground:var(--color-neutral-50);--card:var(--color-neutral-900);--card-foreground:var(--color-neutral-50);--popover:var(--color-neutral-800);--popover-foreground:var(--color-neutral-50);--primary:var(--color-green-500);--primary-foreground:var(--color-neutral-950);--secondary:var(--color-charcoal-300);--secondary-foreground:var(--color-charcoal-900);--info:var(--color-blue-500);--info-foreground:var(--color-blue-400);--info-background:var(--color-blue-950);--success:var(--color-green-500);--success-foreground:var(--color-green-400);--success-background:var(--color-green-950);--warning:var(--color-yellow-500);--warning-foreground:var(--color-yellow-400);--warning-background:var(--color-yellow-950);--muted:var(--color-neutral-800);--muted-foreground:var(--color-neutral-400);--accent:var(--color-neutral-700);--accent-foreground:var(--color-neutral-50);--destructive:var(--color-red-400);--destructive-foreground:var(--color-red-50);--destructive-background:var(--color-red-950);--border:oklch(100% 0 0/.1);--input:oklch(100% 0 0/.15);--ring:var(--color-neutral-500);--chart-1:var(--color-green-500);--chart-2:var(--color-blue-500);--chart-3:var(--color-purple-600);--chart-4:var(--color-yellow-500);--chart-5:var(--color-pink-600);--sidebar:var(--color-neutral-900);--sidebar-foreground:var(--color-neutral-50);--sidebar-primary:var(--color-green-500);--sidebar-primary-foreground:#fff;--sidebar-accent:var(--color-neutral-800);--sidebar-accent-foreground:var(--color-neutral-50);--sidebar-border:oklch(100% 0 0/.1);--sidebar-ring:var(--color-neutral-600);--badge-film-10:#0a0a0a1a;--badge-film-40:#0a0a0a66;--badge-film-60:#0a0a0a99;--badge-film-80:#0a0a0acc}}@property --shimmer-angle{syntax:"<angle>";inherits:true;initial-value:20deg}@property --shimmer-image{syntax:"*";inherits:false}@property --shimmer-text-fill{syntax:"*";inherits:false}@media (prefers-reduced-motion:reduce){.shimmer{-webkit-text-fill-color:currentColor;background-image:none;animation:none}}@property --scroll-fade-t{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --scroll-fade-b{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --scroll-fade-s{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --scroll-fade-e{syntax:"<length-percentage>";inherits:false;initial-value:0}@property --scroll-fade-mask{syntax:"*";inherits:false}
|