commerce-toolkit 0.0.27 → 0.0.29

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.
@@ -0,0 +1,37 @@
1
+ import type { ComponentProps } from 'react';
2
+ import { DayPicker } from 'react-day-picker';
3
+ export type CalendarProps = ComponentProps<typeof DayPicker> & {
4
+ colorScheme?: 'light' | 'dark';
5
+ };
6
+ /**
7
+ * This component supports various CSS variables for theming. Here's a comprehensive list, along
8
+ * with their default values:
9
+ *
10
+ * ```css
11
+ * :root {
12
+ * --calendar-font-family: var(--font-family-body);
13
+ * --calendar-light-focus: var(--foreground);
14
+ * --calendar-light-border: var(--contrast-100);
15
+ * --calendar-light-text: var(--foreground);
16
+ * --calendar-light-background: var(--background);
17
+ * --calendar-light-button-border-hover: var(--contrast-200);
18
+ * --calendar-light-selected-button-background: var(--primary);
19
+ * --calendar-light-selected-button-text: var(--foreground);
20
+ * --calendar-light-selected-middle-button-background: transparent;
21
+ * --calendar-light-text-disabled: var(--contrast-300);
22
+ * --calendar-light-range-background: var(--primary-highlight);
23
+ * --calendar-dark-focus: var(--background);
24
+ * --calendar-dark-border: var(--contrast-500);
25
+ * --calendar-dark-text: var(--background);
26
+ * --calendar-dark-background: var(--foreground);
27
+ * --calendar-dark-button-border-hover: var(--contrast-400);
28
+ * --calendar-dark-selected-button-background: var(--primary);
29
+ * --calendar-dark-selected-button-text: var(--foreground);
30
+ * --calendar-dark-selected-middle-button-background: transparent;
31
+ * --calendar-dark-text-disabled: var(--contrast-300);
32
+ * --calendar-dark-range-background: color-mix(in oklab, var(--primary), white 60%);
33
+ * }
34
+ * ```
35
+ */
36
+ export declare function Calendar({ className, colorScheme, classNames, ...props }: CalendarProps): import("react/jsx-runtime").JSX.Element;
37
+ //# sourceMappingURL=calendar.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"calendar.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/calendar.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAM7C,MAAM,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,SAAS,CAAC,GAAG;IAC7D,WAAW,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;CAChC,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,QAAQ,CAAC,EACvB,SAAS,EACT,WAAqB,EACrB,UAAU,EACV,GAAG,KAAK,EACT,EAAE,aAAa,2CAsFf"}
@@ -0,0 +1,2 @@
1
+ export { Calendar, type CalendarProps } from '../../components/calendar/calendar';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,KAAK,aAAa,EAAE,MAAM,gCAAgC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Spinner, type SpinnerProps } from '../../components/spinner/spinner';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,17 @@
1
+ import type { ComponentProps } from 'react';
2
+ export interface SpinnerProps extends ComponentProps<'span'> {
3
+ size?: 'xs' | 'sm' | 'md' | 'lg';
4
+ }
5
+ /**
6
+ * This component supports various CSS variables for theming. Here's a comprehensive list, along
7
+ * with their default values:
8
+ *
9
+ * ```css
10
+ * :root {
11
+ * --spinner-base: hsl(var(--contrast-100));
12
+ * --spinner-ring: color-mix(in oklab, hsl(var(--primary)), black 75%);
13
+ * }
14
+ * ```
15
+ */
16
+ export declare function Spinner({ className, size, ...props }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
17
+ //# sourceMappingURL=spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../../src/components/spinner/spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,MAAM,CAAC;IAC1D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CAClC;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,OAAO,CAAC,EAAE,SAAS,EAAE,IAAW,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAkBzE"}