commerce-toolkit 0.0.7 → 0.0.8

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,24 @@
1
+ import type { ComponentProps } from 'react';
2
+ export type BadgeProps = ComponentProps<'span'> & {
3
+ children: string;
4
+ shape?: 'pill' | 'rounded';
5
+ variant?: 'primary' | 'warning' | 'error' | 'success' | 'info';
6
+ };
7
+ /**
8
+ * This component supports various CSS variables for theming. Here's a comprehensive list, along
9
+ * with their default values:
10
+ *
11
+ * ```css
12
+ * :root {
13
+ * --badge-primary-background: color-mix(in oklab, hsl(var(--primary)), white 75%);
14
+ * --badge-success-background: color-mix(in oklab, hsl(var(--success)), white 75%);
15
+ * --badge-warning-background: color-mix(in oklab, hsl(var(--warning)), white 75%);
16
+ * --badge-error-background: color-mix(in oklab, hsl(var(--error)), white 75%);
17
+ * --badge-info-background: color-mix(in oklab, hsl(var(--info)), white 75%);
18
+ * --badge-text: hsl(var(--foreground));
19
+ * --badge-font-family: var(--font-family-mono);
20
+ * }
21
+ * ```
22
+ */
23
+ export declare function Badge({ children, shape, className, variant, ...props }: BadgeProps): import("react/jsx-runtime").JSX.Element;
24
+ //# sourceMappingURL=badge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/badge/badge.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAI5C,MAAM,MAAM,UAAU,GAAG,cAAc,CAAC,MAAM,CAAC,GAAG;IAChD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;CAChE,CAAC;AAEF;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,KAAK,CAAC,EACpB,QAAQ,EACR,KAAiB,EACjB,SAAS,EACT,OAAmB,EACnB,GAAG,KAAK,EACT,EAAE,UAAU,2CA2BZ"}
@@ -0,0 +1,2 @@
1
+ export { Badge, type BadgeProps } from '@/components/badge/badge';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/badge/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,KAAK,UAAU,EAAE,MAAM,0BAA0B,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "commerce-toolkit",
3
- "version": "0.0.7",
3
+ "version": "0.0.8",
4
4
  "description": "A collection of modern, accessible commerce UI components",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",