@stokelp/ui 2.37.0 → 2.37.2
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/app/price-tag/PriceTag.d.ts +4 -43
- package/dist/style.css +1 -1
- package/dist/theme/recipes/app/price-tag.d.ts +2 -0
- package/dist/theme/recipes/index.d.ts +1 -0
- package/dist/ui.cjs +10 -10
- package/dist/ui.cjs.map +1 -1
- package/dist/ui.js +483 -480
- package/dist/ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -1,54 +1,15 @@
|
|
|
1
|
-
import { JsxStyleProps, RecipeVariantProps,
|
|
1
|
+
import { JsxStyleProps, RecipeVariantProps, ConditionalValue } from '@stokelp/styled-system/types';
|
|
2
|
+
import { priceTag } from '@stokelp/styled-system/recipes';
|
|
2
3
|
import { Assign, HTMLProps } from '@ark-ui/react';
|
|
3
4
|
import { ReactNode, ForwardRefExoticComponent, HTMLAttributes, DetailedHTMLProps, RefAttributes } from 'react';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
size: {
|
|
7
|
-
lg: {
|
|
8
|
-
root: {
|
|
9
|
-
py: "space-8";
|
|
10
|
-
px: "space-16";
|
|
11
|
-
};
|
|
12
|
-
price: {
|
|
13
|
-
textStyle: "heading.h2";
|
|
14
|
-
};
|
|
15
|
-
unit: {
|
|
16
|
-
textStyle: "body.lg";
|
|
17
|
-
};
|
|
18
|
-
};
|
|
19
|
-
md: {
|
|
20
|
-
root: {
|
|
21
|
-
py: "space-4";
|
|
22
|
-
px: "space-8";
|
|
23
|
-
};
|
|
24
|
-
price: {
|
|
25
|
-
textStyle: "heading.h4";
|
|
26
|
-
};
|
|
27
|
-
unit: {
|
|
28
|
-
textStyle: "body.md";
|
|
29
|
-
};
|
|
30
|
-
};
|
|
31
|
-
sm: {
|
|
32
|
-
root: {
|
|
33
|
-
py: "space-4";
|
|
34
|
-
px: "space-8";
|
|
35
|
-
};
|
|
36
|
-
price: {
|
|
37
|
-
textStyle: "heading.h6";
|
|
38
|
-
};
|
|
39
|
-
unit: {
|
|
40
|
-
textStyle: "body.sm";
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
};
|
|
44
|
-
}>;
|
|
45
|
-
type PriceTagVariants = RecipeVariantProps<typeof priceTagRecipe>;
|
|
6
|
+
type PriceTagVariants = RecipeVariantProps<typeof priceTag>;
|
|
46
7
|
export type PriceTagProps = Assign<JsxStyleProps, HTMLProps<'span'>> & PriceTagVariants & {
|
|
47
8
|
price: ReactNode;
|
|
48
9
|
unit?: ReactNode;
|
|
49
10
|
};
|
|
50
11
|
export declare const PriceTag: ForwardRefExoticComponent<Omit<JsxStyleProps, "key" | keyof HTMLAttributes<HTMLSpanElement>> & Omit< DetailedHTMLProps<HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
|
|
51
|
-
size?: "sm" | "md" | "lg" | undefined;
|
|
12
|
+
size?: ConditionalValue<"sm" | "md" | "lg"> | undefined;
|
|
52
13
|
} & {
|
|
53
14
|
price: ReactNode;
|
|
54
15
|
unit?: ReactNode;
|