@giddaa-housing/ui 3.4.0 → 3.6.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/css/components.css +13 -0
- package/css/generated/shared.css +1 -1
- package/dist/accordion.js +1 -1
- package/dist/activity-timeline.js +1 -1
- package/dist/alert.js +1 -1
- package/dist/auth-layout.js +1 -1
- package/dist/avatar.js +1 -1
- package/dist/badge.d.ts +5 -1
- package/dist/badge.js +20 -6
- package/dist/bar-chart.d.ts +1 -1
- package/dist/bar-chart.js +1 -1
- package/dist/breadcrumb.js +1 -1
- package/dist/bullet-chart.d.ts +1 -1
- package/dist/bullet-chart.js +1 -1
- package/dist/button-BS5KCibF.d.ts +33 -0
- package/dist/button-group.d.ts +1 -1
- package/dist/button-group.js +1 -1
- package/dist/button.d.ts +1 -1
- package/dist/button.js +50 -22
- package/dist/calendar.js +2 -2
- package/dist/call-card.js +1 -1
- package/dist/card.js +1 -1
- package/dist/carousel.d.ts +4 -2
- package/dist/carousel.js +13 -16
- package/dist/chart.d.ts +1 -1
- package/dist/chart.js +1 -1
- package/dist/chat.d.ts +1 -1
- package/dist/chat.js +1 -1
- package/dist/checkbox.d.ts +2 -2
- package/dist/checkbox.js +21 -7
- package/dist/collapsible.js +1 -1
- package/dist/combobox-CACVdp1R.js +430 -0
- package/dist/combobox.d.ts +9 -4
- package/dist/combobox.js +2 -309
- package/dist/cta.d.ts +1 -1
- package/dist/cta.js +1 -1
- package/dist/currency-selector.js +2 -2
- package/dist/data-table.d.ts +2 -2
- package/dist/data-table.js +1 -1
- package/dist/date-picker.d.ts +6 -5
- package/dist/date-picker.js +7 -17
- package/dist/details-card.js +1 -1
- package/dist/dialog.d.ts +3 -1
- package/dist/dialog.js +10 -6
- package/dist/dropdown-menu.d.ts +1 -1
- package/dist/dropdown-menu.js +1 -1
- package/dist/dropzone.js +1 -1
- package/dist/editorial-card.js +2 -4
- package/dist/empty-state.js +1 -1
- package/dist/field.d.ts +4 -1
- package/dist/field.js +29 -12
- package/dist/file-upload.js +1 -1
- package/dist/filter.js +1 -1
- package/dist/footer.d.ts +2 -2
- package/dist/footer.js +1 -1
- package/dist/funnel-chart.d.ts +1 -1
- package/dist/funnel-chart.js +1 -1
- package/dist/gallery-indicator.js +1 -1
- package/dist/heatmap-chart.d.ts +1 -1
- package/dist/icons-C9JXR5Xv.d.ts +111 -0
- package/dist/icons.d.ts +2 -93
- package/dist/icons.js +37 -1
- package/dist/image.d.ts +59 -0
- package/dist/image.js +53 -0
- package/dist/infinite-scroll.js +3 -29
- package/dist/infotip.js +1 -1
- package/dist/input-group.d.ts +6 -6
- package/dist/input-group.js +39 -14
- package/dist/input-otp.d.ts +2 -2
- package/dist/input-otp.js +32 -15
- package/dist/input-size-context-BMhves-J.d.ts +13 -0
- package/dist/input-size-context.d.ts +2 -2
- package/dist/input-size-context.js +9 -2
- package/dist/input.d.ts +20 -2
- package/dist/input.js +31 -12
- package/dist/item.js +1 -1
- package/dist/kpi-card.js +1 -1
- package/dist/label.js +1 -1
- package/dist/line-chart.d.ts +1 -1
- package/dist/line-chart.js +1 -1
- package/dist/list-item.js +1 -1
- package/dist/map-indicator.js +1 -1
- package/dist/mask-input.d.ts +1 -1
- package/dist/match.d.ts +5 -2
- package/dist/match.js +183 -27
- package/dist/media-gallery-hero.js +15 -10
- package/dist/media-player.js +5 -13
- package/dist/message.js +2 -12
- package/dist/mobile-sidebar.js +2 -1
- package/dist/multi-step-form.js +2 -2
- package/dist/number-input.d.ts +2 -2
- package/dist/number-input.js +3 -3
- package/dist/page-header.js +1 -1
- package/dist/pagination.d.ts +1 -1
- package/dist/pagination.js +1 -1
- package/dist/password-input.js +1 -1
- package/dist/phone-input.d.ts +2 -2
- package/dist/phone-input.js +16 -21
- package/dist/photo-gallery.js +6 -3
- package/dist/picker-BTXBrsl4.js +62 -0
- package/dist/picker-j3txxA5t.d.ts +14 -0
- package/dist/pie-chart.d.ts +1 -1
- package/dist/pie-chart.js +1 -1
- package/dist/popover-CNymD33m.d.ts +20 -0
- package/dist/popover.d.ts +1 -19
- package/dist/popover.js +1 -1
- package/dist/price-tag.d.ts +1 -1
- package/dist/price-tag.js +50 -22
- package/dist/progress.js +1 -1
- package/dist/property-listing-card.d.ts +68 -2
- package/dist/property-listing-card.js +115 -29
- package/dist/purchase-option-card.js +1 -1
- package/dist/radar-chart.d.ts +1 -1
- package/dist/radar-chart.js +1 -1
- package/dist/radio-group.d.ts +2 -2
- package/dist/radio-group.js +24 -10
- package/dist/review-block.js +1 -1
- package/dist/rich-text-editor.d.ts +1 -1
- package/dist/rich-text-editor.js +1 -1
- package/dist/scatter-chart.d.ts +1 -1
- package/dist/scatter-chart.js +1 -1
- package/dist/scroll-spy.d.ts +8 -2
- package/dist/scroll-spy.js +16 -16
- package/dist/search-input.js +1 -1
- package/dist/section-jumper.d.ts +31 -0
- package/dist/section-jumper.js +276 -0
- package/dist/select.d.ts +9 -4
- package/dist/select.js +113 -20
- package/dist/separator.js +1 -1
- package/dist/sheet.d.ts +3 -1
- package/dist/sheet.js +10 -6
- package/dist/sidebar.d.ts +2 -2
- package/dist/sidebar.js +4 -16
- package/dist/size-context-BVhHduLi.d.ts +33 -0
- package/dist/size-context.d.ts +2 -2
- package/dist/size-context.js +30 -1
- package/dist/skeleton.js +1 -1
- package/dist/slider.d.ts +5 -3
- package/dist/slider.js +26 -11
- package/dist/sonar.d.ts +1 -1
- package/dist/sonar.js +2 -2
- package/dist/sparkline.d.ts +1 -1
- package/dist/sparkline.js +1 -1
- package/dist/stepper.js +1 -1
- package/dist/styles.css +1622 -264
- package/dist/switch.d.ts +2 -2
- package/dist/switch.js +21 -7
- package/dist/table-card.js +1 -1
- package/dist/table.js +1 -1
- package/dist/tabs.d.ts +1 -1
- package/dist/tabs.js +1 -1
- package/dist/tag.d.ts +1 -1
- package/dist/tag.js +1 -1
- package/dist/testimonial-block.js +1 -1
- package/dist/textarea.d.ts +17 -1
- package/dist/textarea.js +24 -10
- package/dist/theme-switcher.js +1 -1
- package/dist/time-picker.d.ts +5 -4
- package/dist/time-picker.js +5 -7
- package/dist/toast.js +1 -1
- package/dist/tooltip.js +1 -1
- package/dist/top-navbar.js +1 -1
- package/dist/tree-map.d.ts +1 -1
- package/dist/tree-map.js +1 -1
- package/dist/utils/cn.d.ts +5 -0
- package/dist/utils/cn.js +33 -0
- package/dist/utils/format.d.ts +45 -0
- package/dist/utils/format.js +70 -0
- package/dist/utils/phone.d.ts +98 -0
- package/dist/utils/phone.js +93 -0
- package/dist/utils/use-intersection.d.ts +9 -0
- package/dist/utils/use-intersection.js +29 -0
- package/dist/utils/use-is-mobile.d.ts +5 -0
- package/dist/utils/use-is-mobile.js +16 -0
- package/dist/utils/use-reduced-motion.d.ts +5 -0
- package/dist/{use-reduced-motion-BDvOK14x.js → utils/use-reduced-motion.js} +2 -2
- package/dist/utils/use-uncontrolled.d.ts +11 -0
- package/dist/{use-uncontrolled-CLfM1XbB.js → utils/use-uncontrolled.js} +2 -2
- package/dist/video-player-dialog.d.ts +12 -2
- package/dist/video-player-dialog.js +50 -9
- package/dist/waterfall-chart.d.ts +1 -1
- package/dist/waterfall-chart.js +1 -1
- package/package.json +13 -1
- package/dist/button-DW5OijoR.d.ts +0 -17
- package/dist/cn-BI_4DMBf.js +0 -23
- package/dist/input-CfoEJ8A6.d.ts +0 -12
- package/dist/input-size-context-C-SFx9sx.d.ts +0 -10
- package/dist/picker-xSTzeYhc.js +0 -50
- package/dist/size-context-BX6kAdVj.d.ts +0 -11
- package/dist/textarea-IS_D8pXf.d.ts +0 -11
package/dist/sidebar.js
CHANGED
|
@@ -1,32 +1,19 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Menu } from "./icons.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cn } from "./utils/cn.js";
|
|
4
4
|
import { Separator } from "./separator.js";
|
|
5
5
|
import { Button } from "./button.js";
|
|
6
6
|
import { Input } from "./input.js";
|
|
7
|
-
import {
|
|
7
|
+
import { useUncontrolled } from "./utils/use-uncontrolled.js";
|
|
8
8
|
import { Skeleton } from "./skeleton.js";
|
|
9
9
|
import { Tooltip, TooltipContent, TooltipTrigger } from "./tooltip.js";
|
|
10
10
|
import { Sheet, SheetContent, SheetDescription, SheetHeader, SheetTitle } from "./sheet.js";
|
|
11
|
+
import { useIsMobile } from "./utils/use-is-mobile.js";
|
|
11
12
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
13
|
import { mergeProps } from "@base-ui/react/merge-props";
|
|
13
14
|
import { useRender } from "@base-ui/react/use-render";
|
|
14
15
|
import { cva } from "class-variance-authority";
|
|
15
16
|
import * as React from "react";
|
|
16
|
-
//#region src/lib/use-mobile.ts
|
|
17
|
-
const DEFAULT_MOBILE_BREAKPOINT = 1024;
|
|
18
|
-
function useIsMobile(breakpoint = DEFAULT_MOBILE_BREAKPOINT) {
|
|
19
|
-
const [isMobile, setIsMobile] = React.useState(false);
|
|
20
|
-
React.useEffect(() => {
|
|
21
|
-
const mediaQuery = window.matchMedia(`(max-width: ${breakpoint - 1}px)`);
|
|
22
|
-
const update = () => setIsMobile(window.innerWidth < breakpoint);
|
|
23
|
-
update();
|
|
24
|
-
mediaQuery.addEventListener("change", update);
|
|
25
|
-
return () => mediaQuery.removeEventListener("change", update);
|
|
26
|
-
}, [breakpoint]);
|
|
27
|
-
return isMobile;
|
|
28
|
-
}
|
|
29
|
-
//#endregion
|
|
30
17
|
//#region src/sidebar.tsx
|
|
31
18
|
const SIDEBAR_LS_KEY = "sidebar_state";
|
|
32
19
|
const SIDEBAR_WIDTH = "17.5rem";
|
|
@@ -121,6 +108,7 @@ function Sidebar({ side = "left", variant = "sidebar", collapsible = "offcanvas"
|
|
|
121
108
|
"data-sidebar": "sidebar",
|
|
122
109
|
"data-slot": "sidebar",
|
|
123
110
|
"data-mobile": "true",
|
|
111
|
+
popupClassName: "min-w-10/12 w-(--layout-nav-width) max-w-screen",
|
|
124
112
|
className: "min-w-10/12 w-(--layout-nav-width) max-w-screen border-none bg-surface p-0 text-fg-secondary [&>button]:hidden",
|
|
125
113
|
style: { "--layout-nav-width": SIDEBAR_WIDTH_MOBILE },
|
|
126
114
|
side: "right",
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { ReactNode } from "react";
|
|
2
|
+
//#region src/size-context.d.ts
|
|
3
|
+
type ComponentSize = "sm" | "md" | "lg";
|
|
4
|
+
type ResponsiveValue<T extends string> = {
|
|
5
|
+
base: T;
|
|
6
|
+
md?: T;
|
|
7
|
+
lg?: T;
|
|
8
|
+
};
|
|
9
|
+
type ResolvedResponsiveValue<T extends string> = Required<ResponsiveValue<T>>;
|
|
10
|
+
type ResponsiveComponentSize = ResponsiveValue<ComponentSize>;
|
|
11
|
+
type ComponentSizeValue = ComponentSize | ResponsiveComponentSize;
|
|
12
|
+
declare function useInheritedComponentSize(): ComponentSizeValue | undefined;
|
|
13
|
+
declare function SizeProvider({ children, size }: {
|
|
14
|
+
children: ReactNode;
|
|
15
|
+
size?: ComponentSizeValue | null;
|
|
16
|
+
}): import("react").JSX.Element;
|
|
17
|
+
declare function useComponentSize(size?: ComponentSize | null, fallback?: ComponentSize): ComponentSize;
|
|
18
|
+
declare function useComponentSizeValue(size?: ComponentSizeValue | null, fallback?: ComponentSize): "lg" | "md" | "sm" | ResponsiveComponentSize;
|
|
19
|
+
declare function resolveResponsiveValue<T extends string>(value: T | ResponsiveValue<T>): ResolvedResponsiveValue<T>;
|
|
20
|
+
declare function resolveResponsiveComponentSize(size: ComponentSizeValue): Required<ResponsiveValue<ComponentSize>>;
|
|
21
|
+
declare function responsiveValueClasses<T extends string>(value: T | ResponsiveValue<T>, classes: {
|
|
22
|
+
base: Record<T, string>;
|
|
23
|
+
md: Record<T, string>;
|
|
24
|
+
lg: Record<T, string>;
|
|
25
|
+
}): {
|
|
26
|
+
base: T;
|
|
27
|
+
md: T;
|
|
28
|
+
lg: T;
|
|
29
|
+
responsive: boolean;
|
|
30
|
+
className: string;
|
|
31
|
+
};
|
|
32
|
+
//#endregion
|
|
33
|
+
export { ResponsiveValue as a, resolveResponsiveValue as c, useComponentSizeValue as d, useInheritedComponentSize as f, ResponsiveComponentSize as i, responsiveValueClasses as l, ComponentSizeValue as n, SizeProvider as o, ResolvedResponsiveValue as r, resolveResponsiveComponentSize as s, ComponentSize as t, useComponentSize as u };
|
package/dist/size-context.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export { type ComponentSize, SizeProvider, useComponentSize, useInheritedComponentSize };
|
|
1
|
+
import { a as ResponsiveValue, c as resolveResponsiveValue, d as useComponentSizeValue, f as useInheritedComponentSize, i as ResponsiveComponentSize, l as responsiveValueClasses, n as ComponentSizeValue, o as SizeProvider, r as ResolvedResponsiveValue, s as resolveResponsiveComponentSize, t as ComponentSize, u as useComponentSize } from "./size-context-BVhHduLi.js";
|
|
2
|
+
export { type ComponentSize, type ComponentSizeValue, type ResolvedResponsiveValue, type ResponsiveComponentSize, type ResponsiveValue, SizeProvider, resolveResponsiveComponentSize, resolveResponsiveValue, responsiveValueClasses, useComponentSize, useComponentSizeValue, useInheritedComponentSize };
|
package/dist/size-context.js
CHANGED
|
@@ -14,8 +14,37 @@ function SizeProvider({ children, size }) {
|
|
|
14
14
|
});
|
|
15
15
|
}
|
|
16
16
|
function useComponentSize(size, fallback = "md") {
|
|
17
|
+
const inheritedSize = useInheritedComponentSize();
|
|
18
|
+
const resolved = size ?? inheritedSize ?? fallback;
|
|
19
|
+
return typeof resolved === "string" ? resolved : resolved.base;
|
|
20
|
+
}
|
|
21
|
+
function useComponentSizeValue(size, fallback = "md") {
|
|
17
22
|
const inheritedSize = useInheritedComponentSize();
|
|
18
23
|
return size ?? inheritedSize ?? fallback;
|
|
19
24
|
}
|
|
25
|
+
function resolveResponsiveValue(value) {
|
|
26
|
+
if (typeof value === "string") return {
|
|
27
|
+
base: value,
|
|
28
|
+
md: value,
|
|
29
|
+
lg: value
|
|
30
|
+
};
|
|
31
|
+
const md = value.md ?? value.base;
|
|
32
|
+
return {
|
|
33
|
+
base: value.base,
|
|
34
|
+
md,
|
|
35
|
+
lg: value.lg ?? md
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
function resolveResponsiveComponentSize(size) {
|
|
39
|
+
return resolveResponsiveValue(size);
|
|
40
|
+
}
|
|
41
|
+
function responsiveValueClasses(value, classes) {
|
|
42
|
+
const resolved = resolveResponsiveValue(value);
|
|
43
|
+
return {
|
|
44
|
+
...resolved,
|
|
45
|
+
responsive: typeof value !== "string",
|
|
46
|
+
className: typeof value === "string" ? classes.base[resolved.base] : `${classes.base[resolved.base]} ${classes.md[resolved.md]} ${classes.lg[resolved.lg]}`
|
|
47
|
+
};
|
|
48
|
+
}
|
|
20
49
|
//#endregion
|
|
21
|
-
export { SizeProvider, useComponentSize, useInheritedComponentSize };
|
|
50
|
+
export { SizeProvider, resolveResponsiveComponentSize, resolveResponsiveValue, responsiveValueClasses, useComponentSize, useComponentSizeValue, useInheritedComponentSize };
|
package/dist/skeleton.js
CHANGED
package/dist/slider.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { n as ComponentSizeValue } from "./size-context-BVhHduLi.js";
|
|
2
2
|
import * as React from "react";
|
|
3
3
|
import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
4
4
|
//#region src/slider.d.ts
|
|
@@ -6,8 +6,10 @@ declare const sliderVariants: (props?: ({
|
|
|
6
6
|
size?: "lg" | "md" | "sm" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
type SliderRootValue = number | readonly number[];
|
|
9
|
-
type SliderSize =
|
|
10
|
-
type SliderProps<Value extends SliderRootValue = SliderRootValue> = Slider$1.Root.Props<Value> &
|
|
9
|
+
type SliderSize = ComponentSizeValue;
|
|
10
|
+
type SliderProps<Value extends SliderRootValue = SliderRootValue> = Slider$1.Root.Props<Value> & {
|
|
11
|
+
size?: SliderSize;
|
|
12
|
+
};
|
|
11
13
|
type SliderControlProps = Slider$1.Control.Props;
|
|
12
14
|
type SliderTrackProps = Slider$1.Track.Props;
|
|
13
15
|
type SliderIndicatorProps = Slider$1.Indicator.Props;
|
package/dist/slider.js
CHANGED
|
@@ -1,34 +1,49 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
3
|
-
import { SizeProvider,
|
|
2
|
+
import { cn } from "./utils/cn.js";
|
|
3
|
+
import { SizeProvider, responsiveValueClasses, useComponentSizeValue } from "./size-context.js";
|
|
4
4
|
import { jsx } from "react/jsx-runtime";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
6
|
import { Slider as Slider$1 } from "@base-ui/react/slider";
|
|
7
7
|
//#region src/slider.tsx
|
|
8
|
+
const sliderSizeVariants = {
|
|
9
|
+
sm: "[--slider-thumb-size:1rem] [--slider-track-size:0.25rem]",
|
|
10
|
+
md: "[--slider-thumb-size:1.25rem] [--slider-track-size:0.375rem]",
|
|
11
|
+
lg: "[--slider-thumb-size:1.5rem] [--slider-track-size:0.5rem]"
|
|
12
|
+
};
|
|
8
13
|
const sliderVariants = cva("group/slider grid w-full gap-2 disabled:cursor-not-allowed disabled:opacity-60 data-[disabled=true]:cursor-not-allowed data-[disabled=true]:opacity-60", {
|
|
9
|
-
variants: { size:
|
|
10
|
-
sm: "[--slider-thumb-size:1rem] [--slider-track-size:0.25rem]",
|
|
11
|
-
md: "[--slider-thumb-size:1.25rem] [--slider-track-size:0.375rem]",
|
|
12
|
-
lg: "[--slider-thumb-size:1.5rem] [--slider-track-size:0.5rem]"
|
|
13
|
-
} },
|
|
14
|
+
variants: { size: sliderSizeVariants },
|
|
14
15
|
defaultVariants: { size: "md" }
|
|
15
16
|
});
|
|
16
17
|
function Slider({ className, children, size, disabled = false, ...props }) {
|
|
17
|
-
const
|
|
18
|
+
const sizeValue = useComponentSizeValue(size);
|
|
19
|
+
const resolvedSize = responsiveValueClasses(sizeValue, responsiveSliderSizes);
|
|
18
20
|
return /* @__PURE__ */ jsx(SizeProvider, {
|
|
19
|
-
size:
|
|
21
|
+
size: sizeValue,
|
|
20
22
|
children: /* @__PURE__ */ jsx(Slider$1.Root, {
|
|
21
23
|
thumbAlignment: "edge",
|
|
22
24
|
disabled,
|
|
23
25
|
"data-disabled": disabled,
|
|
24
|
-
"data-size": resolvedSize,
|
|
26
|
+
"data-size": resolvedSize.base,
|
|
25
27
|
"data-slot": "slider",
|
|
26
|
-
className: cn(sliderVariants({ size:
|
|
28
|
+
className: cn(sliderVariants({ size: null }), resolvedSize.className, className),
|
|
27
29
|
...props,
|
|
28
30
|
children
|
|
29
31
|
})
|
|
30
32
|
});
|
|
31
33
|
}
|
|
34
|
+
const responsiveSliderSizes = {
|
|
35
|
+
base: sliderSizeVariants,
|
|
36
|
+
md: {
|
|
37
|
+
sm: "md:[--slider-thumb-size:1rem] md:[--slider-track-size:0.25rem]",
|
|
38
|
+
md: "md:[--slider-thumb-size:1.25rem] md:[--slider-track-size:0.375rem]",
|
|
39
|
+
lg: "md:[--slider-thumb-size:1.5rem] md:[--slider-track-size:0.5rem]"
|
|
40
|
+
},
|
|
41
|
+
lg: {
|
|
42
|
+
sm: "lg:[--slider-thumb-size:1rem] lg:[--slider-track-size:0.25rem]",
|
|
43
|
+
md: "lg:[--slider-thumb-size:1.25rem] lg:[--slider-track-size:0.375rem]",
|
|
44
|
+
lg: "lg:[--slider-thumb-size:1.5rem] lg:[--slider-track-size:0.5rem]"
|
|
45
|
+
}
|
|
46
|
+
};
|
|
32
47
|
function SliderControl({ className, ...props }) {
|
|
33
48
|
return /* @__PURE__ */ jsx(Slider$1.Control, {
|
|
34
49
|
"data-slot": "slider-control",
|
package/dist/sonar.d.ts
CHANGED
package/dist/sonar.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { cn } from "./utils/cn.js";
|
|
3
3
|
import { useComponentSize } from "./size-context.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
@@ -24,7 +24,7 @@ function sameCorners(a, b) {
|
|
|
24
24
|
* Colour rides on `currentColor` so the keyframe stays tone-agnostic: one set
|
|
25
25
|
* of keyframes, one class per tone.
|
|
26
26
|
*/
|
|
27
|
-
const sonarWaveVariants = cva(cn("pointer-events-none absolute inset-0 animate-sonar-wave", "motion-reduce:animate-none motion-reduce:opacity-40 motion-reduce:shadow-[0_0_0_2px_currentColor]"), {
|
|
27
|
+
const sonarWaveVariants = cva(cn("pointer-events-none absolute inset-0 animate-sonar-wave will-change-[box-shadow,opacity] [backface-visibility:hidden] [transform:translateZ(0)]", "motion-reduce:animate-none motion-reduce:opacity-40 motion-reduce:shadow-[0_0_0_2px_currentColor]"), {
|
|
28
28
|
variants: { tone: {
|
|
29
29
|
brand: "text-fg-brand",
|
|
30
30
|
info: "text-status-info",
|
package/dist/sparkline.d.ts
CHANGED
package/dist/sparkline.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { cn } from "./utils/cn.js";
|
|
3
3
|
import { useComponentSize } from "./size-context.js";
|
|
4
4
|
import { ChartContainer, ChartTooltip, ChartTooltipContent } from "./chart.js";
|
|
5
5
|
import { jsx, jsxs } from "react/jsx-runtime";
|
package/dist/stepper.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Check } from "./icons.js";
|
|
3
|
-
import {
|
|
3
|
+
import { cn } from "./utils/cn.js";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import { cva } from "class-variance-authority";
|
|
6
6
|
import * as React from "react";
|