@aircall/ds 0.47.1 → 0.48.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/{data-table-Bwq4VuWA.js → data-table-C-UXpZWS.js} +0 -1
- package/dist/data-table.js +1 -1
- package/dist/globals.css +1 -1
- package/dist/index.d.ts +30 -9
- package/dist/index.js +33 -16
- package/dist/theme.css +9 -9
- package/package.json +10 -10
package/dist/index.d.ts
CHANGED
|
@@ -96,8 +96,8 @@ declare namespace AccordionContent {
|
|
|
96
96
|
//#region src/components/button.d.ts
|
|
97
97
|
/** `cva` variant definitions for {@link Button} — resolves `variant`, `size`, and `block` into class names. */
|
|
98
98
|
declare const buttonVariants: (props?: ({
|
|
99
|
-
variant?: "link" | "default" | "
|
|
100
|
-
size?: "default" | "icon" | "
|
|
99
|
+
variant?: "link" | "default" | "outline" | "secondary" | "ghost" | "destructive" | null | undefined;
|
|
100
|
+
size?: "default" | "icon" | "sm" | "lg" | "icon-sm" | "icon-lg" | null | undefined;
|
|
101
101
|
block?: boolean | null | undefined;
|
|
102
102
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
103
103
|
/**
|
|
@@ -888,7 +888,7 @@ declare namespace AttachmentGroup {
|
|
|
888
888
|
* over the sticky header (also `z-10`) while the rows scrolled under it.
|
|
889
889
|
*/
|
|
890
890
|
declare const avatarVariants: (props?: ({
|
|
891
|
-
size?: "default" | "
|
|
891
|
+
size?: "default" | "sm" | "lg" | "xs" | "xl" | null | undefined;
|
|
892
892
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
893
893
|
/**
|
|
894
894
|
* Circular container that displays a user or entity image with a text/icon fallback.
|
|
@@ -971,7 +971,7 @@ declare namespace AvatarGroupCount {
|
|
|
971
971
|
* (`default` | `secondary` | `ghost`, default `default`) sets the colour scheme.
|
|
972
972
|
*/
|
|
973
973
|
declare const counterBadgeVariants: (props?: ({
|
|
974
|
-
variant?: "default" | "
|
|
974
|
+
variant?: "default" | "secondary" | "ghost" | null | undefined;
|
|
975
975
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
976
976
|
/**
|
|
977
977
|
* Small pill for surfacing a count or short status, e.g. an unread indicator.
|
|
@@ -1384,7 +1384,7 @@ declare namespace CalendarDayButton {
|
|
|
1384
1384
|
* child parts read the same size back off `data-size` via `group-data-[size=x]/card`.
|
|
1385
1385
|
*/
|
|
1386
1386
|
declare const cardVariants: (props?: ({
|
|
1387
|
-
size?: "default" | "
|
|
1387
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1388
1388
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
1389
1389
|
/**
|
|
1390
1390
|
* Root container for a card. Renders a `<div data-slot="card">` with border, background, and
|
|
@@ -1752,7 +1752,7 @@ declare namespace PopoverDescription {
|
|
|
1752
1752
|
*/
|
|
1753
1753
|
declare const toggleVariants: (props?: ({
|
|
1754
1754
|
variant?: "default" | "outline" | null | undefined;
|
|
1755
|
-
size?: "default" | "
|
|
1755
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
1756
1756
|
pressedColor?: "highContrast" | "lowContrast" | null | undefined;
|
|
1757
1757
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
1758
1758
|
/**
|
|
@@ -4353,6 +4353,14 @@ type InlineEditInputOwnProps = {
|
|
|
4353
4353
|
onValueCommit?: (value: string) => void;
|
|
4354
4354
|
/** Selects all text when the field receives focus. */
|
|
4355
4355
|
selectAllOnFocus?: boolean;
|
|
4356
|
+
/**
|
|
4357
|
+
* Shows a pencil icon right after the text so the field reads as editable at
|
|
4358
|
+
* rest. The field then hugs its content instead of filling the row. The icon
|
|
4359
|
+
* hides while editing but keeps its space, so the field doesn't resize on focus.
|
|
4360
|
+
* It never shows when `readOnly` or `disabled`. Clicking it focuses the field.
|
|
4361
|
+
* @default false
|
|
4362
|
+
*/
|
|
4363
|
+
showIcon?: boolean;
|
|
4356
4364
|
};
|
|
4357
4365
|
type InlineEditInputNativeProps = Omit<React.ComponentProps<'input'>, 'size' | 'prefix' | 'value' | 'defaultValue' | 'onChange'>;
|
|
4358
4366
|
type InlineEditInputProps = InlineEditInputOwnProps & InlineEditInputNativeProps;
|
|
@@ -4666,6 +4674,13 @@ interface InlineEditSelectTriggerProps {
|
|
|
4666
4674
|
className?: string;
|
|
4667
4675
|
/** Content of the trigger — typically `InlineEditSelectValue`. */
|
|
4668
4676
|
children?: React.ReactNode;
|
|
4677
|
+
/**
|
|
4678
|
+
* Keeps the chevron visible at rest so the value reads as selectable, and makes
|
|
4679
|
+
* the trigger hug its content so the chevron sits right after the text. When
|
|
4680
|
+
* `false`, the chevron only appears on hover and focus. Never shown when `readOnly`.
|
|
4681
|
+
* @default false
|
|
4682
|
+
*/
|
|
4683
|
+
showIcon?: boolean;
|
|
4669
4684
|
}
|
|
4670
4685
|
declare namespace InlineEditSelectTrigger {
|
|
4671
4686
|
type Props = InlineEditSelectTriggerProps;
|
|
@@ -4775,6 +4790,12 @@ interface InlineEditSelectDataProps<Item> extends InlineEditSelectBaseProps {
|
|
|
4775
4790
|
id?: string;
|
|
4776
4791
|
/** Additional class name on the chrome wrapper. */
|
|
4777
4792
|
className?: string;
|
|
4793
|
+
/**
|
|
4794
|
+
* Keeps the chevron visible at rest so the value reads as selectable.
|
|
4795
|
+
* See `InlineEditSelectTrigger`.
|
|
4796
|
+
* @default false
|
|
4797
|
+
*/
|
|
4798
|
+
showIcon?: boolean;
|
|
4778
4799
|
children?: never;
|
|
4779
4800
|
}
|
|
4780
4801
|
/** Compound (escape-hatch) mode props: bring your own sub-parts. */
|
|
@@ -5128,7 +5149,7 @@ declare namespace ItemSeparator {
|
|
|
5128
5149
|
type Props = ItemSeparatorProps;
|
|
5129
5150
|
}
|
|
5130
5151
|
declare const itemVariants: (props?: ({
|
|
5131
|
-
variant?: "default" | "
|
|
5152
|
+
variant?: "default" | "outline" | "muted" | null | undefined;
|
|
5132
5153
|
size?: "default" | "sm" | "xs" | null | undefined;
|
|
5133
5154
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
5134
5155
|
/**
|
|
@@ -6370,7 +6391,7 @@ declare namespace SidebarMenuItem {
|
|
|
6370
6391
|
}
|
|
6371
6392
|
declare const sidebarMenuButtonVariants: (props?: ({
|
|
6372
6393
|
variant?: "default" | "outline" | null | undefined;
|
|
6373
|
-
size?: "default" | "
|
|
6394
|
+
size?: "default" | "sm" | "lg" | null | undefined;
|
|
6374
6395
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6375
6396
|
/**
|
|
6376
6397
|
* Primary clickable row inside a menu item, with variant/size styles and an
|
|
@@ -6531,7 +6552,7 @@ declare namespace Toaster {
|
|
|
6531
6552
|
//#region src/components/spinner.d.ts
|
|
6532
6553
|
/** Class variants for `Spinner`, controlling its `size` (`default`, `sm`, `lg`, `xl`). */
|
|
6533
6554
|
declare const spinnerVariants: (props?: ({
|
|
6534
|
-
size?: "default" | "
|
|
6555
|
+
size?: "default" | "sm" | "lg" | "xl" | null | undefined;
|
|
6535
6556
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6536
6557
|
/**
|
|
6537
6558
|
* Animated loading indicator. Renders a spinning `<svg>` (Loader icon) with
|
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { C as Button, D as _objectWithoutProperties, E as _objectSpread2, O as cn, S as registerI18nNamespace, T as linkStyle, _ as ActionBarHeight, a as TableFooter, b as detectInitialLanguage, c as TableRow, d as Checkbox, f as Spinner, g as ActionBarContext, h as ActionBarButton, i as TableCell, l as useFetchMoreSentinel, m as ActionBar, n as Table, o as TableHead, p as spinnerVariants, r as TableBody, s as TableHeader, t as DataTable, u as Skeleton, v as useDsTranslation, w as buttonVariants, x as dsI18n, y as SUPPORTED_LANGUAGES } from "./data-table-
|
|
1
|
+
import { C as Button, D as _objectWithoutProperties, E as _objectSpread2, O as cn, S as registerI18nNamespace, T as linkStyle, _ as ActionBarHeight, a as TableFooter, b as detectInitialLanguage, c as TableRow, d as Checkbox, f as Spinner, g as ActionBarContext, h as ActionBarButton, i as TableCell, l as useFetchMoreSentinel, m as ActionBar, n as Table, o as TableHead, p as spinnerVariants, r as TableBody, s as TableHeader, t as DataTable, u as Skeleton, v as useDsTranslation, w as buttonVariants, x as dsI18n, y as SUPPORTED_LANGUAGES } from "./data-table-C-UXpZWS.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { createContext, useContext, useSyncExternalStore } from "react";
|
|
4
4
|
import { Accordion as Accordion$1 } from "@base-ui/react/accordion";
|
|
5
|
-
import { ArrowDownToLine, ArrowLeft, ArrowRight, Backward10, Bold, CalendarDaysIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleAlert, CircleAlertIcon, CircleCheck, Code, ExternalLink, FLAGS, FastForward, FlagUs, Forward10, Info, Italic, Link, List as List$1, ListOrdered, Loader2Icon, Minus, MinusIcon, MoreHorizontalIcon, PanelLeftIcon, Pause, Play, Plus, PlusIcon, Rewind, RotateCcw, Search, Smile, Strikethrough, Text, TriangleAlertIcon, Underline, Unlink, XIcon } from "@aircall/react-icons";
|
|
5
|
+
import { ArrowDownToLine, ArrowLeft, ArrowRight, Backward10, Bold, CalendarDaysIcon, CheckIcon, ChevronDownIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, CircleAlert, CircleAlertIcon, CircleCheck, Code, ExternalLink, FLAGS, FastForward, FlagUs, Forward10, Info, Italic, Link, List as List$1, ListOrdered, Loader2Icon, Minus, MinusIcon, MoreHorizontalIcon, PanelLeftIcon, Pause, PencilIcon, Play, Plus, PlusIcon, Rewind, RotateCcw, Search, Smile, Strikethrough, Text, TriangleAlertIcon, Underline, Unlink, XIcon } from "@aircall/react-icons";
|
|
6
6
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
7
7
|
import { Button as Button$1 } from "@base-ui/react/button";
|
|
8
8
|
import { cva } from "class-variance-authority";
|
|
@@ -2579,7 +2579,7 @@ function Calendar(_ref) {
|
|
|
2579
2579
|
locale,
|
|
2580
2580
|
formatters: _objectSpread2({ formatMonthDropdown: (date) => date.toLocaleString(locale === null || locale === void 0 ? void 0 : locale.code, { month: "short" }) }, formatters),
|
|
2581
2581
|
classNames: _objectSpread2({
|
|
2582
|
-
root: cn("w-fit rounded-lg border border-border bg-background overflow-hidden", defaultClassNames.root),
|
|
2582
|
+
root: cn("w-fit rounded-lg border border-border bg-background overflow-hidden [[data-slot=card-content]_&]:bg-transparent [[data-slot=popover-content]_&]:bg-transparent [[data-slot=popover-positioner]_&]:bg-transparent", defaultClassNames.root),
|
|
2583
2583
|
months: cn("relative flex flex-col gap-4 md:flex-row", defaultClassNames.months),
|
|
2584
2584
|
month: cn("flex w-full flex-col gap-4", defaultClassNames.month),
|
|
2585
2585
|
nav: cn("absolute inset-x-0 top-0 flex w-full items-center justify-between gap-1", defaultClassNames.nav),
|
|
@@ -6454,7 +6454,7 @@ function findFirstAllowed(start, direction, minVal, maxVal, isBlocked) {
|
|
|
6454
6454
|
return null;
|
|
6455
6455
|
}
|
|
6456
6456
|
function applyDigitToSegment(state, segment, digit) {
|
|
6457
|
-
const {
|
|
6457
|
+
const { yearMax } = state;
|
|
6458
6458
|
const maxVal = segment === "day" ? daysInMonth(state.month, state.year) : segment === "month" ? 12 : yearMax;
|
|
6459
6459
|
const newAcc = state.accumulator + digit;
|
|
6460
6460
|
/** Build the return state, clamping day to month when segment is 'month'. */
|
|
@@ -7510,7 +7510,7 @@ function DateInputSegment({ segmentProps, disabled, id }) {
|
|
|
7510
7510
|
autoCorrect: "off",
|
|
7511
7511
|
spellCheck: false,
|
|
7512
7512
|
size: placeholder.length,
|
|
7513
|
-
className: cn("bg-transparent border-0 outline-none p-0 text-center tabular-nums rounded-sm", "focus:ring-0 focus-visible:ring-0 focus:outline-none", "focus:bg-accent/60", "disabled:opacity-50 disabled:cursor-not-allowed", "field-sizing-content", "px-px",
|
|
7513
|
+
className: cn("bg-transparent border-0 outline-none p-0 text-center tabular-nums rounded-sm", "focus:ring-0 focus-visible:ring-0 focus:outline-none", "focus:bg-accent/60", "disabled:opacity-50 disabled:cursor-not-allowed", "field-sizing-content", "px-px", "text-foreground placeholder:text-muted-foreground"),
|
|
7514
7514
|
style
|
|
7515
7515
|
}, rest));
|
|
7516
7516
|
}
|
|
@@ -9979,10 +9979,12 @@ const _excluded$20 = [
|
|
|
9979
9979
|
"onValueChange",
|
|
9980
9980
|
"onValueCommit",
|
|
9981
9981
|
"selectAllOnFocus",
|
|
9982
|
+
"showIcon",
|
|
9982
9983
|
"onBlur",
|
|
9983
9984
|
"onKeyDown",
|
|
9984
9985
|
"onFocus",
|
|
9985
|
-
"placeholder"
|
|
9986
|
+
"placeholder",
|
|
9987
|
+
"id"
|
|
9986
9988
|
];
|
|
9987
9989
|
/**
|
|
9988
9990
|
* An inline-editable single-line text field. Renders as unstyled text that
|
|
@@ -10009,7 +10011,11 @@ const _excluded$20 = [
|
|
|
10009
10011
|
* ```
|
|
10010
10012
|
*/
|
|
10011
10013
|
const InlineEditInput = React.forwardRef((componentProps, forwardRef) => {
|
|
10012
|
-
|
|
10014
|
+
var _placeholder$length;
|
|
10015
|
+
const { prefix, readOnly, "aria-invalid": ariaInvalid, className, value, defaultValue, onValueChange, onValueCommit, selectAllOnFocus, showIcon = false, onBlur, onKeyDown, onFocus, placeholder, id: idProp } = componentProps, props = _objectWithoutProperties(componentProps, _excluded$20);
|
|
10016
|
+
const generatedId = React.useId();
|
|
10017
|
+
const id = idProp !== null && idProp !== void 0 ? idProp : generatedId;
|
|
10018
|
+
const hasIcon = showIcon && !readOnly && !props.disabled;
|
|
10013
10019
|
const { currentValue, handleChange, handleCommit, handleRevert } = useInlineEditCommit({
|
|
10014
10020
|
value,
|
|
10015
10021
|
defaultValue,
|
|
@@ -10034,13 +10040,15 @@ const InlineEditInput = React.forwardRef((componentProps, forwardRef) => {
|
|
|
10034
10040
|
if (selectAllOnFocus) e.currentTarget.select();
|
|
10035
10041
|
onFocus === null || onFocus === void 0 || onFocus(e);
|
|
10036
10042
|
};
|
|
10037
|
-
return /* @__PURE__ */
|
|
10043
|
+
return /* @__PURE__ */ jsxs(InlineEditChrome, {
|
|
10038
10044
|
readOnly,
|
|
10039
10045
|
"aria-invalid": ariaInvalid,
|
|
10040
|
-
className,
|
|
10046
|
+
className: cn(hasIcon && "w-fit max-w-full", className),
|
|
10041
10047
|
prefix,
|
|
10042
|
-
children: /* @__PURE__ */ jsx("input", _objectSpread2({
|
|
10048
|
+
children: [/* @__PURE__ */ jsx("input", _objectSpread2({
|
|
10043
10049
|
ref: forwardRef,
|
|
10050
|
+
id: hasIcon ? id : idProp,
|
|
10051
|
+
size: hasIcon ? Math.max(currentValue.length, (_placeholder$length = placeholder === null || placeholder === void 0 ? void 0 : placeholder.length) !== null && _placeholder$length !== void 0 ? _placeholder$length : 0) + 1 : void 0,
|
|
10044
10052
|
"data-slot": "inline-edit-field",
|
|
10045
10053
|
"aria-invalid": ariaInvalid,
|
|
10046
10054
|
readOnly,
|
|
@@ -10050,8 +10058,16 @@ const InlineEditInput = React.forwardRef((componentProps, forwardRef) => {
|
|
|
10050
10058
|
onBlur: handleBlur,
|
|
10051
10059
|
onKeyDown: handleKeyDown,
|
|
10052
10060
|
onFocus: handleFocus,
|
|
10053
|
-
className: cn("relative
|
|
10054
|
-
}, props))
|
|
10061
|
+
className: cn("relative min-w-0 bg-transparent outline-none border-none", hasIcon ? "field-sizing-content" : "flex-1", "text-foreground placeholder:text-muted-foreground", "read-only:cursor-not-allowed")
|
|
10062
|
+
}, props)), hasIcon && /* @__PURE__ */ jsx("label", {
|
|
10063
|
+
htmlFor: id,
|
|
10064
|
+
"data-slot": "inline-edit-icon",
|
|
10065
|
+
className: cn("relative flex shrink-0 items-center min-h-[1lh] opacity-50", "group-hover/inline-edit:opacity-70 group-focus-within/inline-edit:invisible"),
|
|
10066
|
+
children: /* @__PURE__ */ jsx(PencilIcon, {
|
|
10067
|
+
"aria-hidden": true,
|
|
10068
|
+
className: "pointer-events-none size-4"
|
|
10069
|
+
})
|
|
10070
|
+
})]
|
|
10055
10071
|
});
|
|
10056
10072
|
});
|
|
10057
10073
|
InlineEditInput.displayName = "InlineEditInput";
|
|
@@ -10418,12 +10434,12 @@ const _excluded3$11 = [
|
|
|
10418
10434
|
* ```
|
|
10419
10435
|
*/
|
|
10420
10436
|
const InlineEditSelectTrigger = React.forwardRef((componentProps, forwardRef) => {
|
|
10421
|
-
const { prefix, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, id, className, children } = componentProps;
|
|
10437
|
+
const { prefix, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, id, className, children, showIcon = false } = componentProps;
|
|
10422
10438
|
const { readOnly } = React.useContext(InlineEditSelectContext);
|
|
10423
10439
|
return /* @__PURE__ */ jsx(InlineEditChrome, {
|
|
10424
10440
|
readOnly,
|
|
10425
10441
|
"aria-invalid": ariaInvalid,
|
|
10426
|
-
className,
|
|
10442
|
+
className: cn(showIcon && !readOnly && "w-fit max-w-full", className),
|
|
10427
10443
|
prefix,
|
|
10428
10444
|
children: /* @__PURE__ */ jsxs(Select$1.Trigger, {
|
|
10429
10445
|
ref: forwardRef,
|
|
@@ -10434,7 +10450,7 @@ const InlineEditSelectTrigger = React.forwardRef((componentProps, forwardRef) =>
|
|
|
10434
10450
|
className: cn("relative flex flex-1 min-w-0 items-center gap-2 outline-none select-none", "text-foreground data-[placeholder]:text-muted-foreground", readOnly && "cursor-not-allowed"),
|
|
10435
10451
|
children: [children, !readOnly && /* @__PURE__ */ jsx(ChevronDownIcon, {
|
|
10436
10452
|
"data-slot": "inline-edit-chevron",
|
|
10437
|
-
className: "ml-auto shrink-0 size-4
|
|
10453
|
+
className: cn("ml-auto shrink-0 size-4 pointer-events-none group-focus-within/inline-edit:opacity-70", showIcon ? "opacity-50 group-hover/inline-edit:opacity-70" : "opacity-0 group-hover/inline-edit:opacity-50")
|
|
10438
10454
|
})]
|
|
10439
10455
|
})
|
|
10440
10456
|
});
|
|
@@ -10518,7 +10534,7 @@ const InlineEditSelectItem = React.forwardRef((componentProps, forwardRef) => {
|
|
|
10518
10534
|
});
|
|
10519
10535
|
InlineEditSelectItem.displayName = "InlineEditSelectItem";
|
|
10520
10536
|
function InlineEditSelectDataDriven(props) {
|
|
10521
|
-
const { value, defaultValue, onValueChange, readOnly, items, getItemValue, getItemLabel, renderItem, disabledKeys, prefix, placeholder, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, id, className } = props;
|
|
10537
|
+
const { value, defaultValue, onValueChange, readOnly, items, getItemValue, getItemLabel, renderItem, disabledKeys, prefix, placeholder, "aria-invalid": ariaInvalid, "aria-label": ariaLabel, id, className, showIcon } = props;
|
|
10522
10538
|
const contextValue = React.useMemo(() => ({ readOnly }), [readOnly]);
|
|
10523
10539
|
const [displayValue, setDisplayValue] = React.useState(defaultValue);
|
|
10524
10540
|
const currentDisplayValue = value !== void 0 ? value : displayValue;
|
|
@@ -10542,6 +10558,7 @@ function InlineEditSelectDataDriven(props) {
|
|
|
10542
10558
|
"aria-label": ariaLabel,
|
|
10543
10559
|
id,
|
|
10544
10560
|
className,
|
|
10561
|
+
showIcon,
|
|
10545
10562
|
children: /* @__PURE__ */ jsx("span", {
|
|
10546
10563
|
"data-slot": "inline-edit-value",
|
|
10547
10564
|
className: cn("flex flex-1 min-w-0 truncate text-left", displayLabel === void 0 && "text-muted-foreground"),
|
package/dist/theme.css
CHANGED
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
--color-neutral-400: #a4a6aa;
|
|
45
45
|
--color-neutral-500: #7e8084;
|
|
46
46
|
--color-neutral-600: #64666a;
|
|
47
|
-
--color-neutral-700: #
|
|
48
|
-
--color-neutral-800: #
|
|
49
|
-
--color-neutral-900: #
|
|
47
|
+
--color-neutral-700: #2b2d31;
|
|
48
|
+
--color-neutral-800: #1b1d21;
|
|
49
|
+
--color-neutral-900: #14161a;
|
|
50
50
|
--color-neutral-950: #0b0d11;
|
|
51
51
|
|
|
52
52
|
/* Red */
|
|
@@ -365,9 +365,9 @@
|
|
|
365
365
|
/* Dark theme */
|
|
366
366
|
[data-theme='dark'],
|
|
367
367
|
[data-theme='dark'] * {
|
|
368
|
-
--background: var(--color-neutral-
|
|
368
|
+
--background: var(--color-neutral-900);
|
|
369
369
|
--foreground: var(--color-neutral-50);
|
|
370
|
-
--card: var(--color-neutral-
|
|
370
|
+
--card: var(--color-neutral-800);
|
|
371
371
|
--card-foreground: var(--color-neutral-50);
|
|
372
372
|
--popover: var(--color-neutral-800);
|
|
373
373
|
--popover-foreground: var(--color-neutral-50);
|
|
@@ -386,8 +386,8 @@
|
|
|
386
386
|
--warning: var(--color-yellow-500);
|
|
387
387
|
--warning-foreground: var(--color-yellow-400);
|
|
388
388
|
--warning-background: var(--color-yellow-950);
|
|
389
|
-
--muted: var(--color-neutral-
|
|
390
|
-
--muted-foreground: var(--color-neutral-
|
|
389
|
+
--muted: var(--color-neutral-700);
|
|
390
|
+
--muted-foreground: var(--color-neutral-300);
|
|
391
391
|
--accent: var(--color-neutral-700);
|
|
392
392
|
--accent-foreground: var(--color-neutral-50);
|
|
393
393
|
--destructive: var(--color-red-400);
|
|
@@ -445,7 +445,7 @@
|
|
|
445
445
|
--heatmap-3-default: var(--color-blue-800);
|
|
446
446
|
--heatmap-4-default: var(--color-blue-700);
|
|
447
447
|
--heatmap-5-default: var(--color-blue-600);
|
|
448
|
-
--heatmap-empty-default: var(--color-neutral-
|
|
448
|
+
--heatmap-empty-default: var(--color-neutral-800);
|
|
449
449
|
--heatmap-1-default-foreground: #fff;
|
|
450
450
|
--heatmap-2-default-foreground: #fff;
|
|
451
451
|
--heatmap-3-default-foreground: #fff;
|
|
@@ -457,7 +457,7 @@
|
|
|
457
457
|
--heatmap-3-colorscale: transparent;
|
|
458
458
|
--heatmap-4-colorscale: var(--color-red-950);
|
|
459
459
|
--heatmap-5-colorscale: var(--color-red-900);
|
|
460
|
-
--heatmap-empty-colorscale: var(--color-neutral-
|
|
460
|
+
--heatmap-empty-colorscale: var(--color-neutral-800);
|
|
461
461
|
--heatmap-1-colorscale-foreground: var(--color-green-50);
|
|
462
462
|
--heatmap-2-colorscale-foreground: var(--color-green-50);
|
|
463
463
|
--heatmap-3-colorscale-foreground: #fff;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aircall/ds",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.48.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"private": false,
|
|
6
6
|
"sideEffects": [
|
|
@@ -87,13 +87,13 @@
|
|
|
87
87
|
"@chromatic-com/storybook": "5.3.0",
|
|
88
88
|
"@faker-js/faker": "10.2.0",
|
|
89
89
|
"@parcel/watcher-linux-x64-glibc": "2.5.1",
|
|
90
|
-
"@storybook/addon-a11y": "10.
|
|
90
|
+
"@storybook/addon-a11y": "10.6.2",
|
|
91
91
|
"@storybook/addon-designs": "^11.1.3",
|
|
92
|
-
"@storybook/addon-docs": "10.
|
|
92
|
+
"@storybook/addon-docs": "10.6.2",
|
|
93
93
|
"@storybook/addon-mcp": "0.4.2",
|
|
94
|
-
"@storybook/addon-themes": "10.
|
|
95
|
-
"@storybook/addon-vitest": "10.
|
|
96
|
-
"@storybook/react-vite": "10.
|
|
94
|
+
"@storybook/addon-themes": "10.6.2",
|
|
95
|
+
"@storybook/addon-vitest": "10.6.2",
|
|
96
|
+
"@storybook/react-vite": "10.6.2",
|
|
97
97
|
"@tailwindcss/cli": "4.1.18",
|
|
98
98
|
"@tailwindcss/postcss": "4.1.18",
|
|
99
99
|
"@tanstack/intent": "0.1.1",
|
|
@@ -111,14 +111,14 @@
|
|
|
111
111
|
"react-compiler-runtime": "1.0.0",
|
|
112
112
|
"react-day-picker": "9.14.0",
|
|
113
113
|
"react-dom": "19.3.0",
|
|
114
|
-
"storybook": "10.
|
|
115
|
-
"storybook-addon-pseudo-states": "10.
|
|
114
|
+
"storybook": "10.6.2",
|
|
115
|
+
"storybook-addon-pseudo-states": "10.6.2",
|
|
116
116
|
"tailwindcss": "4.1.18",
|
|
117
117
|
"tsdown": "0.22.14",
|
|
118
118
|
"typescript": "6.0.3",
|
|
119
119
|
"vite": "7.3.1",
|
|
120
120
|
"vitest": "4.0.17",
|
|
121
|
-
"@aircall/hooks": "0.
|
|
121
|
+
"@aircall/hooks": "0.7.0"
|
|
122
122
|
},
|
|
123
123
|
"keywords": [
|
|
124
124
|
"tanstack-intent"
|
|
@@ -133,7 +133,7 @@
|
|
|
133
133
|
"build:js": "tsdown --config ./tsdown.config.ts",
|
|
134
134
|
"build:css": "tailwindcss -i ./src/styles/globals.css -o ./dist/globals.css --minify && node ./scripts/build-theme-css.mjs",
|
|
135
135
|
"build:package": "pnpm run build:js && pnpm run build:css",
|
|
136
|
-
"lint": "eslint
|
|
136
|
+
"lint": "cd ../.. && eslint packages/ds --max-warnings 0 --pass-on-unpruned-suppressions",
|
|
137
137
|
"shadcn:add": "pnpx shadcn@latest add",
|
|
138
138
|
"registry:build": "node scripts/build-registry.mjs",
|
|
139
139
|
"sb:dev": "storybook dev -p 6008",
|