commerce-toolkit 0.0.20 → 0.0.22
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/components/accordion/primitives/accordion-trigger.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-author.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-content.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-link.d.ts.map +1 -1
- package/dist/components/blog-post-card/primitives/blog-post-card-title.d.ts.map +1 -1
- package/dist/components/field-error/field-error.d.ts +14 -0
- package/dist/components/field-error/field-error.d.ts.map +1 -0
- package/dist/components/field-error/index.d.ts +2 -0
- package/dist/components/field-error/index.d.ts.map +1 -0
- package/dist/components/rating/index.d.ts +7 -0
- package/dist/components/rating/index.d.ts.map +1 -0
- package/dist/components/rating/primitives/rating-provider.d.ts +19 -0
- package/dist/components/rating/primitives/rating-provider.d.ts.map +1 -0
- package/dist/components/rating/primitives/rating-root.d.ts +4 -0
- package/dist/components/rating/primitives/rating-root.d.ts.map +1 -0
- package/dist/components/rating/primitives/rating-star.d.ts +4 -0
- package/dist/components/rating/primitives/rating-star.d.ts.map +1 -0
- package/dist/components/rating/primitives/rating-stars.d.ts +2 -0
- package/dist/components/rating/primitives/rating-stars.d.ts.map +1 -0
- package/dist/components/rating/primitives/rating-value.d.ts +4 -0
- package/dist/components/rating/primitives/rating-value.d.ts.map +1 -0
- package/dist/components/rating/rating.d.ts +19 -0
- package/dist/components/rating/rating.d.ts.map +1 -0
- package/dist/index.cjs +12 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +908 -768
- package/dist/index.js.map +1 -1
- package/dist/lib/index.d.ts +1 -1
- package/dist/lib/index.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"accordion-trigger.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/primitives/accordion-trigger.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"accordion-trigger.d.ts","sourceRoot":"","sources":["../../../../src/components/accordion/primitives/accordion-trigger.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,kBAAkB,MAAM,2BAA2B,CAAC;AAChE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,qBAAqB,GAAG,IAAI,CACtC,cAAc,CAAC,OAAO,kBAAkB,CAAC,OAAO,CAAC,EACjD,UAAU,CACX,CAAC;AAEF,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,2CA6D9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blog-post-card-author.d.ts","sourceRoot":"","sources":["../../../../src/components/blog-post-card/primitives/blog-post-card-author.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"blog-post-card-author.d.ts","sourceRoot":"","sources":["../../../../src/components/blog-post-card/primitives/blog-post-card-author.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,uBAAuB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAE7D,wBAAgB,kBAAkB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,uBAAuB,uDAelF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blog-post-card-content.d.ts","sourceRoot":"","sources":["../../../../src/components/blog-post-card/primitives/blog-post-card-content.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"blog-post-card-content.d.ts","sourceRoot":"","sources":["../../../../src/components/blog-post-card/primitives/blog-post-card-content.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,wBAAwB,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AAE3D,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,wBAAwB,2CAepF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blog-post-card-link.d.ts","sourceRoot":"","sources":["../../../../src/components/blog-post-card/primitives/blog-post-card-link.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"blog-post-card-link.d.ts","sourceRoot":"","sources":["../../../../src/components/blog-post-card/primitives/blog-post-card-link.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,qBAAqB,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC;AAExD,wBAAgB,gBAAgB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,qBAAqB,2WAmB9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blog-post-card-title.d.ts","sourceRoot":"","sources":["../../../../src/components/blog-post-card/primitives/blog-post-card-title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"blog-post-card-title.d.ts","sourceRoot":"","sources":["../../../../src/components/blog-post-card/primitives/blog-post-card-title.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,sBAAsB,GAAG,cAAc,CAAC,IAAI,CAAC,CAAC;AAE1D,wBAAgB,iBAAiB,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,sBAAsB,2CAehF"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ComponentPropsWithoutRef } from 'react';
|
|
2
|
+
export type FieldErrorProps = ComponentPropsWithoutRef<'div'>;
|
|
3
|
+
/**
|
|
4
|
+
* This component supports various CSS variables for theming. Here's a comprehensive list, along
|
|
5
|
+
* with their default values:
|
|
6
|
+
*
|
|
7
|
+
* ```css
|
|
8
|
+
* :root {
|
|
9
|
+
* --field-error: var(--error);
|
|
10
|
+
* }
|
|
11
|
+
* ```
|
|
12
|
+
*/
|
|
13
|
+
export declare function FieldError({ className, children, ...props }: FieldErrorProps): import("react/jsx-runtime").JSX.Element;
|
|
14
|
+
//# sourceMappingURL=field-error.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"field-error.d.ts","sourceRoot":"","sources":["../../../src/components/field-error/field-error.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAItD,MAAM,MAAM,eAAe,GAAG,wBAAwB,CAAC,KAAK,CAAC,CAAC;AAE9D;;;;;;;;;GASG;AACH,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAa5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/field-error/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,KAAK,eAAe,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Rating, type RatingProps } from '../../components/rating/rating';
|
|
2
|
+
export { RatingProvider as Provider, type RatingProviderProps as ProviderProps, type StarType, useRating, } from '../../components/rating/primitives/rating-provider';
|
|
3
|
+
export { RatingRoot as Root, type RatingRootProps as RootProps, } from '../../components/rating/primitives/rating-root';
|
|
4
|
+
export { RatingStar as Star, type RatingStarProps as StarProps, } from '../../components/rating/primitives/rating-star';
|
|
5
|
+
export { RatingStars as Stars } from '../../components/rating/primitives/rating-stars';
|
|
6
|
+
export { RatingValue as Value, type RatingValueProps as ValueProps, } from '../../components/rating/primitives/rating-value';
|
|
7
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/rating/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,KAAK,WAAW,EAAE,MAAM,4BAA4B,CAAC;AACtE,OAAO,EACL,cAAc,IAAI,QAAQ,EAC1B,KAAK,mBAAmB,IAAI,aAAa,EACzC,KAAK,QAAQ,EACb,SAAS,GACV,MAAM,gDAAgD,CAAC;AACxD,OAAO,EACL,UAAU,IAAI,IAAI,EAClB,KAAK,eAAe,IAAI,SAAS,GAClC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EACL,UAAU,IAAI,IAAI,EAClB,KAAK,eAAe,IAAI,SAAS,GAClC,MAAM,4CAA4C,CAAC;AACpD,OAAO,EAAE,WAAW,IAAI,KAAK,EAAE,MAAM,6CAA6C,CAAC;AACnF,OAAO,EACL,WAAW,IAAI,KAAK,EACpB,KAAK,gBAAgB,IAAI,UAAU,GACpC,MAAM,6CAA6C,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { ReactNode } from 'react';
|
|
2
|
+
export type StarType = 'empty' | 'half' | 'full';
|
|
3
|
+
export interface RatingContext {
|
|
4
|
+
rating: number;
|
|
5
|
+
adjustedRating: number;
|
|
6
|
+
stars: StarType[];
|
|
7
|
+
showRating: boolean;
|
|
8
|
+
getNextStarIndex: () => number;
|
|
9
|
+
resetStarIndex: () => void;
|
|
10
|
+
}
|
|
11
|
+
export declare const RatingContext: import("react").Context<RatingContext | undefined>;
|
|
12
|
+
export interface RatingProviderProps {
|
|
13
|
+
rating: number;
|
|
14
|
+
showRating?: boolean;
|
|
15
|
+
children: ReactNode;
|
|
16
|
+
}
|
|
17
|
+
export declare function RatingProvider({ children, rating, showRating }: RatingProviderProps): import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export declare function useRating(): RatingContext;
|
|
19
|
+
//# sourceMappingURL=rating-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rating-provider.d.ts","sourceRoot":"","sources":["../../../../src/components/rating/primitives/rating-provider.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,MAAM,CAAC;AAEjD,MAAM,WAAW,aAAa;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,UAAU,EAAE,OAAO,CAAC;IACpB,gBAAgB,EAAE,MAAM,MAAM,CAAC;IAC/B,cAAc,EAAE,MAAM,IAAI,CAAC;CAC5B;AAED,eAAO,MAAM,aAAa,oDAAsD,CAAC;AAEjF,MAAM,WAAW,mBAAmB;IAClC,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,EAAE,SAAS,CAAC;CACrB;AAED,wBAAgB,cAAc,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAiB,EAAE,EAAE,mBAAmB,2CAiC1F;AAED,wBAAgB,SAAS,kBAQxB"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export type RatingRootProps = ComponentProps<'div'>;
|
|
3
|
+
export declare function RatingRoot({ children, className, ...props }: RatingRootProps): import("react/jsx-runtime").JSX.Element;
|
|
4
|
+
//# sourceMappingURL=rating-root.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rating-root.d.ts","sourceRoot":"","sources":["../../../../src/components/rating/primitives/rating-root.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpD,wBAAgB,UAAU,CAAC,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAM5E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rating-star.d.ts","sourceRoot":"","sources":["../../../../src/components/rating/primitives/rating-star.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,eAAe,GAAG,cAAc,CAAC,KAAK,CAAC,CAAC;AAEpD,wBAAgB,UAAU,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAsDlE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rating-stars.d.ts","sourceRoot":"","sources":["../../../../src/components/rating/primitives/rating-stars.tsx"],"names":[],"mappings":"AAIA,wBAAgB,WAAW,4CAY1B"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { ComponentProps } from 'react';
|
|
2
|
+
export type RatingValueProps = ComponentProps<'span'>;
|
|
3
|
+
export declare function RatingValue({ className, ...props }: RatingValueProps): import("react/jsx-runtime").JSX.Element | null;
|
|
4
|
+
//# sourceMappingURL=rating-value.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rating-value.d.ts","sourceRoot":"","sources":["../../../../src/components/rating/primitives/rating-value.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAK5C,MAAM,MAAM,gBAAgB,GAAG,cAAc,CAAC,MAAM,CAAC,CAAC;AAEtD,wBAAgB,WAAW,CAAC,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,gBAAgB,kDAgBpE"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface RatingProps {
|
|
2
|
+
showRating?: boolean;
|
|
3
|
+
rating: number;
|
|
4
|
+
className?: string;
|
|
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
|
+
* --rating-icon: hsl(var(--foreground));
|
|
13
|
+
* --rating-border: hsl(var(--contrast-100));
|
|
14
|
+
* --rating-text: hsl(var(--contrast-400));
|
|
15
|
+
* }
|
|
16
|
+
* ```
|
|
17
|
+
*/
|
|
18
|
+
export declare function Rating({ showRating, rating, className }: Readonly<RatingProps>): import("react/jsx-runtime").JSX.Element;
|
|
19
|
+
//# sourceMappingURL=rating.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rating.d.ts","sourceRoot":"","sources":["../../../src/components/rating/rating.tsx"],"names":[],"mappings":"AAEA,MAAM,WAAW,WAAW;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,MAAM,CAAC,EAAE,UAAiB,EAAE,MAAM,EAAE,SAAS,EAAE,EAAE,QAAQ,CAAC,WAAW,CAAC,2CASrF"}
|