@krrli/cm-designsystem 1.32.1 → 1.32.3
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/assets/fallback.png.js +4 -0
- package/dist/cm-designsystem.css +1944 -1
- package/dist/components/accessible-button/AccessibleButton.d.ts +1 -0
- package/dist/components/accessible-button/AccessibleButton.d.ts.map +1 -0
- package/dist/components/accessible-button/AccessibleButton.js +29 -11
- package/dist/components/avatar/Avatar.d.ts +4 -3
- package/dist/components/avatar/Avatar.d.ts.map +1 -0
- package/dist/components/avatar/Avatar.js +91 -65
- package/dist/components/branding/BrandingGallery.d.ts +1 -0
- package/dist/components/branding/BrandingGallery.d.ts.map +1 -0
- package/dist/components/branding/BrandingGallery.js +212 -145
- package/dist/components/branding/app-icon-gradient.svg.js +4 -0
- package/dist/components/branding/app-icon-white.svg.js +4 -0
- package/dist/components/branding/hover-logo-default.svg.js +4 -0
- package/dist/components/branding/hover-logo-hovered.svg.js +4 -0
- package/dist/components/branding/logo-inline-gradient.svg.js +4 -0
- package/dist/components/branding/logo-inline-violet.svg.js +4 -0
- package/dist/components/branding/logo-inline-white.svg.js +4 -0
- package/dist/components/branding/logo-stacked-gradient.svg.js +4 -0
- package/dist/components/branding/logo-stacked-violet.svg.js +4 -0
- package/dist/components/branding/logo-stacked-white.svg.js +4 -0
- package/dist/components/branding/superzeichen.svg.js +4 -0
- package/dist/components/button/Button.d.ts +6 -5
- package/dist/components/button/Button.d.ts.map +1 -0
- package/dist/components/button/Button.js +61 -55
- package/dist/components/color/ColorDoc.d.ts +1 -0
- package/dist/components/color/ColorDoc.d.ts.map +1 -0
- package/dist/components/color/ColorDoc.js +26 -7
- package/dist/components/file-upload/FileUpload.d.ts +34 -33
- package/dist/components/file-upload/FileUpload.d.ts.map +1 -0
- package/dist/components/file-upload/FileUpload.js +129 -66
- package/dist/components/form/Form.d.ts +14 -13
- package/dist/components/form/Form.d.ts.map +1 -0
- package/dist/components/form/Form.js +33 -26
- package/dist/components/icon-button/IconButton.d.ts +7 -6
- package/dist/components/icon-button/IconButton.d.ts.map +1 -0
- package/dist/components/icon-button/IconButton.js +33 -29
- package/dist/components/icons/IconBase.d.ts +1 -0
- package/dist/components/icons/IconBase.d.ts.map +1 -0
- package/dist/components/icons/IconBase.js +21 -6
- package/dist/components/icons/generated/ArrowDown.d.ts +2 -1
- package/dist/components/icons/generated/ArrowDown.d.ts.map +1 -0
- package/dist/components/icons/generated/ArrowDown.js +15 -4
- package/dist/components/icons/generated/ArrowLeft.d.ts +2 -1
- package/dist/components/icons/generated/ArrowLeft.d.ts.map +1 -0
- package/dist/components/icons/generated/ArrowLeft.js +15 -4
- package/dist/components/icons/generated/ArrowRight.d.ts +2 -1
- package/dist/components/icons/generated/ArrowRight.d.ts.map +1 -0
- package/dist/components/icons/generated/ArrowRight.js +15 -4
- package/dist/components/icons/generated/ArrowUp.d.ts +2 -1
- package/dist/components/icons/generated/ArrowUp.d.ts.map +1 -0
- package/dist/components/icons/generated/ArrowUp.js +15 -4
- package/dist/components/icons/generated/Calendar.d.ts +2 -1
- package/dist/components/icons/generated/Calendar.d.ts.map +1 -0
- package/dist/components/icons/generated/Calendar.js +15 -4
- package/dist/components/icons/generated/Cancel.d.ts +2 -1
- package/dist/components/icons/generated/Cancel.d.ts.map +1 -0
- package/dist/components/icons/generated/Cancel.js +12 -4
- package/dist/components/icons/generated/Checkmark.d.ts +2 -1
- package/dist/components/icons/generated/Checkmark.d.ts.map +1 -0
- package/dist/components/icons/generated/Checkmark.js +12 -4
- package/dist/components/icons/generated/Edit.d.ts +2 -1
- package/dist/components/icons/generated/Edit.d.ts.map +1 -0
- package/dist/components/icons/generated/Edit.js +9 -4
- package/dist/components/icons/generated/Eye.d.ts +2 -1
- package/dist/components/icons/generated/Eye.d.ts.map +1 -0
- package/dist/components/icons/generated/Eye.js +15 -4
- package/dist/components/icons/generated/Fullscreen.d.ts +2 -1
- package/dist/components/icons/generated/Fullscreen.d.ts.map +1 -0
- package/dist/components/icons/generated/Fullscreen.js +9 -4
- package/dist/components/icons/generated/HeartFilled.d.ts +2 -1
- package/dist/components/icons/generated/HeartFilled.d.ts.map +1 -0
- package/dist/components/icons/generated/HeartFilled.js +15 -4
- package/dist/components/icons/generated/HeartOutline.d.ts +2 -1
- package/dist/components/icons/generated/HeartOutline.d.ts.map +1 -0
- package/dist/components/icons/generated/HeartOutline.js +15 -4
- package/dist/components/icons/generated/Location.d.ts +2 -1
- package/dist/components/icons/generated/Location.d.ts.map +1 -0
- package/dist/components/icons/generated/Location.js +15 -4
- package/dist/components/icons/generated/LogOut.d.ts +2 -1
- package/dist/components/icons/generated/LogOut.d.ts.map +1 -0
- package/dist/components/icons/generated/LogOut.js +12 -4
- package/dist/components/icons/generated/Mumble.d.ts +2 -1
- package/dist/components/icons/generated/Mumble.d.ts.map +1 -0
- package/dist/components/icons/generated/Mumble.js +13 -4
- package/dist/components/icons/generated/Profile.d.ts +2 -1
- package/dist/components/icons/generated/Profile.d.ts.map +1 -0
- package/dist/components/icons/generated/Profile.js +12 -4
- package/dist/components/icons/generated/ReplyFilled.d.ts +2 -1
- package/dist/components/icons/generated/ReplyFilled.d.ts.map +1 -0
- package/dist/components/icons/generated/ReplyFilled.js +15 -4
- package/dist/components/icons/generated/ReplyOutline.d.ts +2 -1
- package/dist/components/icons/generated/ReplyOutline.d.ts.map +1 -0
- package/dist/components/icons/generated/ReplyOutline.js +15 -4
- package/dist/components/icons/generated/Repost.d.ts +2 -1
- package/dist/components/icons/generated/Repost.d.ts.map +1 -0
- package/dist/components/icons/generated/Repost.js +15 -4
- package/dist/components/icons/generated/Send.d.ts +2 -1
- package/dist/components/icons/generated/Send.d.ts.map +1 -0
- package/dist/components/icons/generated/Send.js +15 -4
- package/dist/components/icons/generated/Settings.d.ts +2 -1
- package/dist/components/icons/generated/Settings.d.ts.map +1 -0
- package/dist/components/icons/generated/Settings.js +15 -4
- package/dist/components/icons/generated/Share.d.ts +2 -1
- package/dist/components/icons/generated/Share.d.ts.map +1 -0
- package/dist/components/icons/generated/Share.js +12 -4
- package/dist/components/icons/generated/Time.d.ts +2 -1
- package/dist/components/icons/generated/Time.d.ts.map +1 -0
- package/dist/components/icons/generated/Time.js +12 -4
- package/dist/components/icons/generated/Upload.d.ts +2 -1
- package/dist/components/icons/generated/Upload.d.ts.map +1 -0
- package/dist/components/icons/generated/Upload.js +21 -4
- package/dist/components/icons/generated/index.d.ts +25 -24
- package/dist/components/icons/generated/index.d.ts.map +1 -0
- package/dist/components/index.d.ts +28 -27
- package/dist/components/index.d.ts.map +1 -0
- package/dist/components/input/Input.d.ts +6 -5
- package/dist/components/input/Input.d.ts.map +1 -0
- package/dist/components/input/Input.js +67 -41
- package/dist/components/like-toggle/LikeToggle.d.ts +4 -3
- package/dist/components/like-toggle/LikeToggle.d.ts.map +1 -0
- package/dist/components/like-toggle/LikeToggle.js +203 -176
- package/dist/components/logo-link/LogoLink.d.ts +1 -0
- package/dist/components/logo-link/LogoLink.d.ts.map +1 -0
- package/dist/components/logo-link/LogoLink.js +56 -34
- package/dist/components/modal/Modal.d.ts +23 -22
- package/dist/components/modal/Modal.d.ts.map +1 -0
- package/dist/components/modal/Modal.js +66 -50
- package/dist/components/navi-button/NaviButton.d.ts +7 -6
- package/dist/components/navi-button/NaviButton.d.ts.map +1 -0
- package/dist/components/navi-button/NaviButton.js +42 -30
- package/dist/components/navi-user-button/NaviUserButton.d.ts +5 -4
- package/dist/components/navi-user-button/NaviUserButton.d.ts.map +1 -0
- package/dist/components/navi-user-button/NaviUserButton.js +39 -29
- package/dist/components/round-button/RoundButton.d.ts +6 -5
- package/dist/components/round-button/RoundButton.d.ts.map +1 -0
- package/dist/components/round-button/RoundButton.js +39 -29
- package/dist/components/tabs/TabItem.d.ts +4 -3
- package/dist/components/tabs/TabItem.d.ts.map +1 -0
- package/dist/components/tabs/TabItem.js +11 -8
- package/dist/components/tabs/Tabs.d.ts +6 -5
- package/dist/components/tabs/Tabs.d.ts.map +1 -0
- package/dist/components/tabs/Tabs.js +74 -59
- package/dist/components/text-link/TextLink.d.ts +3 -2
- package/dist/components/text-link/TextLink.d.ts.map +1 -0
- package/dist/components/text-link/TextLink.js +14 -11
- package/dist/components/textarea/Textarea.d.ts +16 -15
- package/dist/components/textarea/Textarea.d.ts.map +1 -0
- package/dist/components/textarea/Textarea.js +57 -41
- package/dist/components/timed-button/TimedButton.d.ts +6 -5
- package/dist/components/timed-button/TimedButton.d.ts.map +1 -0
- package/dist/components/timed-button/TimedButton.js +116 -102
- package/dist/components/toggle/Toggle.d.ts +4 -3
- package/dist/components/toggle/Toggle.d.ts.map +1 -0
- package/dist/components/toggle/Toggle.js +91 -62
- package/dist/components/typography/AccessibleTypography.d.ts +2 -1
- package/dist/components/typography/AccessibleTypography.d.ts.map +1 -0
- package/dist/components/typography/AccessibleTypography.js +12 -9
- package/dist/components/typography/Heading.d.ts +5 -4
- package/dist/components/typography/Heading.d.ts.map +1 -0
- package/dist/components/typography/Heading.js +13 -9
- package/dist/components/typography/Label.d.ts +4 -3
- package/dist/components/typography/Label.d.ts.map +1 -0
- package/dist/components/typography/Label.js +13 -9
- package/dist/components/typography/Paragraph.d.ts +4 -3
- package/dist/components/typography/Paragraph.d.ts.map +1 -0
- package/dist/components/typography/Paragraph.js +13 -9
- package/dist/components/typography/Placeholder.d.ts +4 -3
- package/dist/components/typography/Placeholder.d.ts.map +1 -0
- package/dist/components/typography/Placeholder.js +13 -9
- package/dist/components/typography/ValidationMessage.d.ts +4 -3
- package/dist/components/typography/ValidationMessage.d.ts.map +1 -0
- package/dist/components/typography/ValidationMessage.js +14 -9
- package/dist/components/typography/styles.d.ts +10 -9
- package/dist/components/typography/styles.d.ts.map +1 -0
- package/dist/components/typography/styles.js +53 -46
- package/dist/compositions/image-banner/ImageBanner.d.ts +4 -3
- package/dist/compositions/image-banner/ImageBanner.d.ts.map +1 -0
- package/dist/compositions/image-banner/ImageBanner.js +53 -45
- package/dist/compositions/image-upload-modal/ImageUploadModal.d.ts +2 -1
- package/dist/compositions/image-upload-modal/ImageUploadModal.d.ts.map +1 -0
- package/dist/compositions/image-upload-modal/ImageUploadModal.js +44 -20
- package/dist/compositions/index.d.ts +12 -11
- package/dist/compositions/index.d.ts.map +1 -0
- package/dist/compositions/post/Post.d.ts +4 -3
- package/dist/compositions/post/Post.d.ts.map +1 -0
- package/dist/compositions/post/Post.js +81 -26
- package/dist/compositions/post-base/PostBase.d.ts +10 -9
- package/dist/compositions/post-base/PostBase.d.ts.map +1 -0
- package/dist/compositions/post-base/PostBase.js +23 -24
- package/dist/compositions/post-creator/PostCreator.d.ts +22 -21
- package/dist/compositions/post-creator/PostCreator.d.ts.map +1 -0
- package/dist/compositions/post-creator/PostCreator.js +72 -24
- package/dist/compositions/profile-banner/ProfileBanner.d.ts +19 -18
- package/dist/compositions/profile-banner/ProfileBanner.d.ts.map +1 -0
- package/dist/compositions/profile-banner/ProfileBanner.js +71 -21
- package/dist/compositions/profile-banner-image/ProfileBannerImage.d.ts +4 -3
- package/dist/compositions/profile-banner-image/ProfileBannerImage.d.ts.map +1 -0
- package/dist/compositions/profile-banner-image/ProfileBannerImage.js +60 -52
- package/dist/compositions/profile-banner-info/ProfileBannerInfo.d.ts +25 -24
- package/dist/compositions/profile-banner-info/ProfileBannerInfo.d.ts.map +1 -0
- package/dist/compositions/profile-banner-info/ProfileBannerInfo.js +72 -40
- package/dist/compositions/response/Response.d.ts +19 -18
- package/dist/compositions/response/Response.d.ts.map +1 -0
- package/dist/compositions/response/Response.js +63 -19
- package/dist/compositions/response-creator/ResponseCreator.d.ts +16 -15
- package/dist/compositions/response-creator/ResponseCreator.d.ts.map +1 -0
- package/dist/compositions/response-creator/ResponseCreator.js +67 -23
- package/dist/compositions/user-info/UserInfo.d.ts +22 -21
- package/dist/compositions/user-info/UserInfo.d.ts.map +1 -0
- package/dist/compositions/user-info/UserInfo.js +71 -52
- package/dist/compositions/user-recommendation/UserRecommendation.d.ts +16 -15
- package/dist/compositions/user-recommendation/UserRecommendation.d.ts.map +1 -0
- package/dist/compositions/user-recommendation/UserRecommendation.js +58 -30
- package/dist/index.d.ts +3 -3
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +129 -4
- package/dist/setupTests.d.ts +1 -1
- package/dist/setupTests.d.ts.map +1 -0
- package/package.json +16 -14
- package/dist/components/accessible-button/AccessibleButton.test.d.ts +0 -1
- package/dist/components/accessible-button/AccessibleButton.test.js +0 -28
- package/dist/components/button/Button.test.d.ts +0 -1
- package/dist/components/button/Button.test.js +0 -30
- package/dist/components/icon-button/IconButton.test.d.ts +0 -1
- package/dist/components/icon-button/IconButton.test.js +0 -22
- package/dist/components/icons/generated/index.js +0 -24
- package/dist/components/index.js +0 -27
- package/dist/components/like-toggle/LikeToggle.test.d.ts +0 -1
- package/dist/components/like-toggle/LikeToggle.test.js +0 -35
- package/dist/components/modal/Modal.test.d.ts +0 -1
- package/dist/components/modal/Modal.test.js +0 -24
- package/dist/components/navi-button/NaviButton.test.d.ts +0 -1
- package/dist/components/navi-button/NaviButton.test.js +0 -22
- package/dist/components/round-button/RoundButton.test.d.ts +0 -1
- package/dist/components/round-button/RoundButton.test.js +0 -22
- package/dist/components/tabs/Tabs.test.d.ts +0 -1
- package/dist/components/tabs/Tabs.test.js +0 -61
- package/dist/components/text-link/TextLink.test.d.ts +0 -1
- package/dist/components/text-link/TextLink.test.js +0 -14
- package/dist/components/timed-button/TimedButton.test.d.ts +0 -1
- package/dist/components/timed-button/TimedButton.test.js +0 -36
- package/dist/components/toggle/Toggle.test.d.ts +0 -1
- package/dist/components/toggle/Toggle.test.js +0 -93
- package/dist/compositions/index.js +0 -11
- package/dist/favicon.svg +0 -18
- package/dist/index.cjs.js +0 -50
- package/dist/index.es.js +0 -8343
- package/dist/logo-inline-gradient.svg +0 -43
- package/dist/setupTests.js +0 -7
|
@@ -1,69 +1,98 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import {
|
|
2
|
+
import { jsxs, jsx } from "react/jsx-runtime";
|
|
3
3
|
import * as RadixToggle from "@radix-ui/react-toggle";
|
|
4
4
|
import { tv } from "tailwind-variants";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
5
|
+
import { Label } from "../typography/Label.js";
|
|
6
|
+
import { ReplyFilled } from "../icons/generated/ReplyFilled.js";
|
|
7
|
+
import { ReplyOutline } from "../icons/generated/ReplyOutline.js";
|
|
7
8
|
const toggleStyles = tv({
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
9
|
+
slots: {
|
|
10
|
+
base: [
|
|
11
|
+
"inline-flex",
|
|
12
|
+
"items-center",
|
|
13
|
+
"justify-center",
|
|
14
|
+
"gap-2",
|
|
15
|
+
"h-8",
|
|
16
|
+
"px-3",
|
|
17
|
+
"py-2",
|
|
18
|
+
"rounded-full",
|
|
19
|
+
"transition-all",
|
|
20
|
+
"duration-150",
|
|
21
|
+
"ease-in-out",
|
|
22
|
+
"focus-visible:outline-none",
|
|
23
|
+
"focus-visible:ring-2",
|
|
24
|
+
"focus-visible:ring-offset-2",
|
|
25
|
+
"disabled:opacity-50",
|
|
26
|
+
"disabled:pointer-events-none",
|
|
27
|
+
"cursor-pointer"
|
|
28
|
+
],
|
|
29
|
+
icon: ["inline-flex"],
|
|
30
|
+
label: []
|
|
31
|
+
},
|
|
32
|
+
variants: {
|
|
33
|
+
pressed: {
|
|
34
|
+
true: {
|
|
35
|
+
base: ["hover:bg-violet-50", "hover:text-violet-600"],
|
|
36
|
+
icon: [
|
|
37
|
+
"text-violet-600",
|
|
38
|
+
"hover:transition-all",
|
|
39
|
+
"hover:duration-300",
|
|
40
|
+
"hover:ease-out"
|
|
27
41
|
],
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
"hover:transition-all",
|
|
53
|
-
"hover:duration-350",
|
|
54
|
-
"hover:ease-in-out",
|
|
55
|
-
],
|
|
56
|
-
label: [
|
|
57
|
-
"text-inherit",
|
|
58
|
-
"hover:transition-all",
|
|
59
|
-
"hover:duration-350",
|
|
60
|
-
"hover:ease-in-out",
|
|
61
|
-
],
|
|
62
|
-
},
|
|
63
|
-
},
|
|
64
|
-
},
|
|
42
|
+
label: [
|
|
43
|
+
"text-inherit",
|
|
44
|
+
"hover:transition-all",
|
|
45
|
+
"hover:duration-300",
|
|
46
|
+
"hover:ease-out"
|
|
47
|
+
]
|
|
48
|
+
},
|
|
49
|
+
false: {
|
|
50
|
+
base: ["hover:bg-violet-50", "hover:text-violet-600"],
|
|
51
|
+
icon: [
|
|
52
|
+
"text-inherit",
|
|
53
|
+
"hover:transition-all",
|
|
54
|
+
"hover:duration-350",
|
|
55
|
+
"hover:ease-in-out"
|
|
56
|
+
],
|
|
57
|
+
label: [
|
|
58
|
+
"text-inherit",
|
|
59
|
+
"hover:transition-all",
|
|
60
|
+
"hover:duration-350",
|
|
61
|
+
"hover:ease-in-out"
|
|
62
|
+
]
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
65
66
|
});
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
67
|
+
const Toggle = ({
|
|
68
|
+
ariaLabel,
|
|
69
|
+
labelText,
|
|
70
|
+
pressed = false,
|
|
71
|
+
onToggle
|
|
72
|
+
}) => {
|
|
73
|
+
const { base, icon, label: labelSlot } = toggleStyles({ pressed });
|
|
74
|
+
return /* @__PURE__ */ jsxs(
|
|
75
|
+
RadixToggle.Root,
|
|
76
|
+
{
|
|
77
|
+
"aria-label": ariaLabel,
|
|
78
|
+
className: base(),
|
|
79
|
+
pressed,
|
|
80
|
+
onPressedChange: onToggle,
|
|
81
|
+
children: [
|
|
82
|
+
/* @__PURE__ */ jsx(
|
|
83
|
+
"span",
|
|
84
|
+
{
|
|
85
|
+
className: icon(),
|
|
86
|
+
"aria-hidden": "true",
|
|
87
|
+
"aria-label": pressed ? "ReplyFilled" : "ReplyOutline",
|
|
88
|
+
children: pressed ? /* @__PURE__ */ jsx(ReplyFilled, {}) : /* @__PURE__ */ jsx(ReplyOutline, {})
|
|
89
|
+
}
|
|
90
|
+
),
|
|
91
|
+
/* @__PURE__ */ jsx("span", { className: labelSlot(), children: /* @__PURE__ */ jsx(Label, { as: "span", size: "md", children: labelText }) })
|
|
92
|
+
]
|
|
93
|
+
}
|
|
94
|
+
);
|
|
95
|
+
};
|
|
96
|
+
export {
|
|
97
|
+
Toggle
|
|
69
98
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JSX } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Props for the Typography component.
|
|
4
4
|
*/
|
|
@@ -31,3 +31,4 @@ export interface AccessibleTypographyProps {
|
|
|
31
31
|
* to set the HTML tag and optionally make it clickable.
|
|
32
32
|
*/
|
|
33
33
|
export declare const AccessibleTypography: React.FC<AccessibleTypographyProps>;
|
|
34
|
+
//# sourceMappingURL=AccessibleTypography.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AccessibleTypography.d.ts","sourceRoot":"","sources":["../../../src/components/typography/AccessibleTypography.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,GAAG,EAAE,MAAM,OAAO,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,CAAC,iBAAiB,CAAC;IAEjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IAEd;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED;;;GAGG;AACH,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAWpE,CAAC"}
|
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import { createElement } from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
2
|
+
const AccessibleTypography = (props) => {
|
|
3
|
+
return createElement(
|
|
4
|
+
props.as ?? "span",
|
|
5
|
+
{
|
|
6
|
+
className: props.className,
|
|
7
|
+
"aria-label": props.ariaLabel
|
|
8
|
+
},
|
|
9
|
+
props.children
|
|
10
|
+
);
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
AccessibleTypography
|
|
11
14
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { headingStyles } from
|
|
4
|
-
import
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
import { AccessibleTypographyProps } from './AccessibleTypography';
|
|
3
|
+
import { headingStyles } from './styles';
|
|
4
|
+
import { JSX } from 'react';
|
|
5
5
|
type HeadingVariants = VariantProps<typeof headingStyles>;
|
|
6
6
|
type HeadingSize = "1" | "2" | "3" | "4";
|
|
7
7
|
/**
|
|
@@ -22,3 +22,4 @@ interface HeadingProps extends HeadingVariants, AccessibleTypographyProps {
|
|
|
22
22
|
*/
|
|
23
23
|
export declare const Heading: React.FC<HeadingProps>;
|
|
24
24
|
export {};
|
|
25
|
+
//# sourceMappingURL=Heading.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Heading.d.ts","sourceRoot":"","sources":["../../../src/components/typography/Heading.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAEjC,KAAK,eAAe,GAAG,YAAY,CAAC,OAAO,aAAa,CAAC,CAAC;AAC1D,KAAK,WAAW,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC;AAEzC;;;;;GAKG;AACH,UAAU,YAAa,SAAQ,eAAe,EAAE,yBAAyB;IACvE,EAAE,EAAE,MAAM,GAAG,CAAC,iBAAiB,CAAC;IAChC;;OAEG;IACH,IAAI,EAAE,WAAW,CAAC;CACnB;AAED;;GAEG;AACH,eAAO,MAAM,OAAO,EAAE,KAAK,CAAC,EAAE,CAAC,YAAY,CAO1C,CAAC"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "tailwind-variants";
|
|
3
|
-
import { AccessibleTypography
|
|
4
|
-
import { headingStyles } from "./styles";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { AccessibleTypography } from "./AccessibleTypography.js";
|
|
4
|
+
import { headingStyles } from "./styles.js";
|
|
5
|
+
const Heading = ({
|
|
6
|
+
as,
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
const styles = cn(headingStyles(props), className);
|
|
11
|
+
return /* @__PURE__ */ jsx(AccessibleTypography, { as, className: styles, ...props });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
Heading
|
|
11
15
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { labelStyles } from
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
import { AccessibleTypographyProps } from './AccessibleTypography';
|
|
3
|
+
import { labelStyles } from './styles';
|
|
4
4
|
type LabelVariants = VariantProps<typeof labelStyles>;
|
|
5
5
|
export type LabelSize = "xl" | "lg" | "md" | "sm";
|
|
6
6
|
/**
|
|
@@ -20,3 +20,4 @@ interface LabelProps extends LabelVariants, AccessibleTypographyProps {
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const Label: React.FC<LabelProps>;
|
|
22
22
|
export {};
|
|
23
|
+
//# sourceMappingURL=Label.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Label.d.ts","sourceRoot":"","sources":["../../../src/components/typography/Label.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,UAAU,CAAC;AAEvC,KAAK,aAAa,GAAG,YAAY,CAAC,OAAO,WAAW,CAAC,CAAC;AACtD,MAAM,MAAM,SAAS,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAElD;;;;;GAKG;AACH,UAAU,UAAW,SAAQ,aAAa,EAAE,yBAAyB;IACnE;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;CACjB;AAED;;GAEG;AACH,eAAO,MAAM,KAAK,EAAE,KAAK,CAAC,EAAE,CAAC,UAAU,CAOtC,CAAC"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "tailwind-variants";
|
|
3
|
-
import { AccessibleTypography
|
|
4
|
-
import { labelStyles } from "./styles";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { AccessibleTypography } from "./AccessibleTypography.js";
|
|
4
|
+
import { labelStyles } from "./styles.js";
|
|
5
|
+
const Label = ({
|
|
6
|
+
as = "label",
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
const styles = cn(labelStyles(props), className);
|
|
11
|
+
return /* @__PURE__ */ jsx(AccessibleTypography, { as, className: styles, ...props });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
Label
|
|
11
15
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { paragraphStyles } from
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
import { AccessibleTypographyProps } from './AccessibleTypography';
|
|
3
|
+
import { paragraphStyles } from './styles';
|
|
4
4
|
type ParagraphVariants = VariantProps<typeof paragraphStyles>;
|
|
5
5
|
type ParagraphSize = "lg" | "md";
|
|
6
6
|
/**
|
|
@@ -20,3 +20,4 @@ interface ParagraphProps extends ParagraphVariants, AccessibleTypographyProps {
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const Paragraph: React.FC<ParagraphProps>;
|
|
22
22
|
export {};
|
|
23
|
+
//# sourceMappingURL=Paragraph.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Paragraph.d.ts","sourceRoot":"","sources":["../../../src/components/typography/Paragraph.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAE3C,KAAK,iBAAiB,GAAG,YAAY,CAAC,OAAO,eAAe,CAAC,CAAC;AAC9D,KAAK,aAAa,GAAG,IAAI,GAAG,IAAI,CAAC;AAEjC;;;;;GAKG;AACH,UAAU,cAAe,SAAQ,iBAAiB,EAAE,yBAAyB;IAC3E;;OAEG;IACH,IAAI,EAAE,aAAa,CAAC;CACrB;AAED;;GAEG;AACH,eAAO,MAAM,SAAS,EAAE,KAAK,CAAC,EAAE,CAAC,cAAc,CAO9C,CAAC"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "tailwind-variants";
|
|
3
|
-
import { AccessibleTypography
|
|
4
|
-
import { paragraphStyles } from "./styles";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { AccessibleTypography } from "./AccessibleTypography.js";
|
|
4
|
+
import { paragraphStyles } from "./styles.js";
|
|
5
|
+
const Paragraph = ({
|
|
6
|
+
as = "p",
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
const styles = cn(paragraphStyles(props), className);
|
|
11
|
+
return /* @__PURE__ */ jsx(AccessibleTypography, { as, className: styles, ...props });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
Paragraph
|
|
11
15
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { placeholderStyles } from
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
import { AccessibleTypographyProps } from './AccessibleTypography';
|
|
3
|
+
import { placeholderStyles } from './styles';
|
|
4
4
|
type PlaceholderVariants = VariantProps<typeof placeholderStyles>;
|
|
5
5
|
/**
|
|
6
6
|
* Placeholder component props.
|
|
@@ -15,3 +15,4 @@ interface PlaceholderProps extends PlaceholderVariants, AccessibleTypographyProp
|
|
|
15
15
|
*/
|
|
16
16
|
export declare const Placeholder: React.FC<PlaceholderProps>;
|
|
17
17
|
export {};
|
|
18
|
+
//# sourceMappingURL=Placeholder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Placeholder.d.ts","sourceRoot":"","sources":["../../../src/components/typography/Placeholder.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAE7C,KAAK,mBAAmB,GAAG,YAAY,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAElE;;;;;GAKG;AACH,UAAU,gBACR,SAAQ,mBAAmB,EAAE,yBAAyB;CAAG;AAE3D;;GAEG;AACH,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAOlD,CAAC"}
|
|
@@ -1,11 +1,15 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "tailwind-variants";
|
|
3
|
-
import { AccessibleTypography
|
|
4
|
-
import { placeholderStyles } from "./styles";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { AccessibleTypography } from "./AccessibleTypography.js";
|
|
4
|
+
import { placeholderStyles } from "./styles.js";
|
|
5
|
+
const Placeholder = ({
|
|
6
|
+
as = "span",
|
|
7
|
+
className,
|
|
8
|
+
...props
|
|
9
|
+
}) => {
|
|
10
|
+
const styles = cn(placeholderStyles(props), className);
|
|
11
|
+
return /* @__PURE__ */ jsx(AccessibleTypography, { as, className: styles, ...props });
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
Placeholder
|
|
11
15
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { validationMessageStyles } from
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
import { AccessibleTypographyProps } from './AccessibleTypography';
|
|
3
|
+
import { validationMessageStyles } from './styles';
|
|
4
4
|
type ValidationMessageVariants = VariantProps<typeof validationMessageStyles>;
|
|
5
5
|
type ValidationMessageType = "error";
|
|
6
6
|
/**
|
|
@@ -20,3 +20,4 @@ interface ValidationMessageProps extends ValidationMessageVariants, AccessibleTy
|
|
|
20
20
|
*/
|
|
21
21
|
export declare const ValidationMessage: React.FC<ValidationMessageProps>;
|
|
22
22
|
export {};
|
|
23
|
+
//# sourceMappingURL=ValidationMessage.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ValidationMessage.d.ts","sourceRoot":"","sources":["../../../src/components/typography/ValidationMessage.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAM,KAAK,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAEL,KAAK,yBAAyB,EAC/B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAEnD,KAAK,yBAAyB,GAAG,YAAY,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAC9E,KAAK,qBAAqB,GAAG,OAAO,CAAC;AAErC;;;;;GAKG;AACH,UAAU,sBACR,SAAQ,yBAAyB,EAAE,yBAAyB;IAC5D;;OAEG;IACH,IAAI,CAAC,EAAE,qBAAqB,CAAC;CAC9B;AAED;;GAEG;AACH,eAAO,MAAM,iBAAiB,EAAE,KAAK,CAAC,EAAE,CAAC,sBAAsB,CAQ9D,CAAC"}
|
|
@@ -1,11 +1,16 @@
|
|
|
1
|
-
import { jsx
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cn } from "tailwind-variants";
|
|
3
|
-
import { AccessibleTypography
|
|
4
|
-
import { validationMessageStyles } from "./styles";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
3
|
+
import { AccessibleTypography } from "./AccessibleTypography.js";
|
|
4
|
+
import { validationMessageStyles } from "./styles.js";
|
|
5
|
+
const ValidationMessage = ({
|
|
6
|
+
as = "span",
|
|
7
|
+
type = "error",
|
|
8
|
+
className,
|
|
9
|
+
...props
|
|
10
|
+
}) => {
|
|
11
|
+
const styles = cn(validationMessageStyles({ type, ...props }), className);
|
|
12
|
+
return /* @__PURE__ */ jsx(AccessibleTypography, { as, className: styles, ...props });
|
|
13
|
+
};
|
|
14
|
+
export {
|
|
15
|
+
ValidationMessage
|
|
11
16
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const headingStyles: import(
|
|
1
|
+
export declare const headingStyles: import('tailwind-variants').TVReturnType<{
|
|
2
2
|
size: {
|
|
3
3
|
"1": string[];
|
|
4
4
|
"2": string[];
|
|
@@ -12,7 +12,7 @@ export declare const headingStyles: import("tailwind-variants").TVReturnType<{
|
|
|
12
12
|
"3": string[];
|
|
13
13
|
"4": string[];
|
|
14
14
|
};
|
|
15
|
-
}, undefined, import(
|
|
15
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
16
16
|
size: {
|
|
17
17
|
"1": string[];
|
|
18
18
|
"2": string[];
|
|
@@ -20,7 +20,7 @@ export declare const headingStyles: import("tailwind-variants").TVReturnType<{
|
|
|
20
20
|
"4": string[];
|
|
21
21
|
};
|
|
22
22
|
}, undefined, string[], unknown, unknown, undefined>>;
|
|
23
|
-
export declare const paragraphStyles: import(
|
|
23
|
+
export declare const paragraphStyles: import('tailwind-variants').TVReturnType<{
|
|
24
24
|
size: {
|
|
25
25
|
lg: string[];
|
|
26
26
|
md: string[];
|
|
@@ -30,13 +30,13 @@ export declare const paragraphStyles: import("tailwind-variants").TVReturnType<{
|
|
|
30
30
|
lg: string[];
|
|
31
31
|
md: string[];
|
|
32
32
|
};
|
|
33
|
-
}, undefined, import(
|
|
33
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
34
34
|
size: {
|
|
35
35
|
lg: string[];
|
|
36
36
|
md: string[];
|
|
37
37
|
};
|
|
38
38
|
}, undefined, string[], unknown, unknown, undefined>>;
|
|
39
|
-
export declare const labelStyles: import(
|
|
39
|
+
export declare const labelStyles: import('tailwind-variants').TVReturnType<{
|
|
40
40
|
size: {
|
|
41
41
|
xl: string[];
|
|
42
42
|
lg: string[];
|
|
@@ -50,7 +50,7 @@ export declare const labelStyles: import("tailwind-variants").TVReturnType<{
|
|
|
50
50
|
md: string[];
|
|
51
51
|
sm: string[];
|
|
52
52
|
};
|
|
53
|
-
}, undefined, import(
|
|
53
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
54
54
|
size: {
|
|
55
55
|
xl: string[];
|
|
56
56
|
lg: string[];
|
|
@@ -58,8 +58,8 @@ export declare const labelStyles: import("tailwind-variants").TVReturnType<{
|
|
|
58
58
|
sm: string[];
|
|
59
59
|
};
|
|
60
60
|
}, undefined, string[], unknown, unknown, undefined>>;
|
|
61
|
-
export declare const placeholderStyles: import(
|
|
62
|
-
export declare const validationMessageStyles: import(
|
|
61
|
+
export declare const placeholderStyles: import('tailwind-variants').TVReturnType<{} | {} | {}, undefined, string[], {} | {}, undefined, import('tailwind-variants').TVReturnType<unknown, undefined, string[], unknown, unknown, undefined>>;
|
|
62
|
+
export declare const validationMessageStyles: import('tailwind-variants').TVReturnType<{
|
|
63
63
|
type: {
|
|
64
64
|
error: string[];
|
|
65
65
|
};
|
|
@@ -67,8 +67,9 @@ export declare const validationMessageStyles: import("tailwind-variants").TVRetu
|
|
|
67
67
|
type: {
|
|
68
68
|
error: string[];
|
|
69
69
|
};
|
|
70
|
-
}, undefined, import(
|
|
70
|
+
}, undefined, import('tailwind-variants').TVReturnType<{
|
|
71
71
|
type: {
|
|
72
72
|
error: string[];
|
|
73
73
|
};
|
|
74
74
|
}, undefined, string[], unknown, unknown, undefined>>;
|
|
75
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/components/typography/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;qDAUxB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;qDAQ1B,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;qDAUtB,CAAC;AAEH,eAAO,MAAM,iBAAiB,sMAW5B,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;qDAOlC,CAAC"}
|
|
@@ -1,52 +1,59 @@
|
|
|
1
1
|
import { tv } from "tailwind-variants";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
2
|
+
const headingStyles = tv({
|
|
3
|
+
base: ["tracking-normal"],
|
|
4
|
+
variants: {
|
|
5
|
+
size: {
|
|
6
|
+
"1": ["font-bold", "text-[48px]/[125%]"],
|
|
7
|
+
"2": ["font-bold", "text-[40px]/[125%]"],
|
|
8
|
+
"3": ["font-semibold", "text-[32px]/[125%]"],
|
|
9
|
+
"4": ["font-semibold", "text-[24px]/[125%]"]
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
12
|
});
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
13
|
+
const paragraphStyles = tv({
|
|
14
|
+
base: ["font-medium", "tracking-normal"],
|
|
15
|
+
variants: {
|
|
16
|
+
size: {
|
|
17
|
+
lg: ["text-[24px]/[145%]"],
|
|
18
|
+
md: ["text-[18px]/[140%]"]
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
21
|
});
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
22
|
+
const labelStyles = tv({
|
|
23
|
+
base: ["font-semibold", "tracking-normal"],
|
|
24
|
+
variants: {
|
|
25
|
+
size: {
|
|
26
|
+
xl: ["text-[24px]/[100%]"],
|
|
27
|
+
lg: ["text-[20px]/[100%]"],
|
|
28
|
+
md: ["text-[16px]/[100%]"],
|
|
29
|
+
sm: ["text-[14px]/[100%]"]
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
32
|
});
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
33
|
+
const placeholderStyles = tv({
|
|
34
|
+
base: [
|
|
35
|
+
"font-medium",
|
|
36
|
+
"text-slate-500",
|
|
37
|
+
"text-[16px]/[100%]",
|
|
38
|
+
"tracking-normal",
|
|
39
|
+
"placeholder:font-medium",
|
|
40
|
+
"placeholder:text-slate-300",
|
|
41
|
+
"placeholder:text-[16px]/[100%]",
|
|
42
|
+
"placeholder:tracking-normal"
|
|
43
|
+
]
|
|
44
44
|
});
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
45
|
+
const validationMessageStyles = tv({
|
|
46
|
+
base: ["font-medium", "text-[14px]/[100%]", "tracking-normal"],
|
|
47
|
+
variants: {
|
|
48
|
+
type: {
|
|
49
|
+
error: ["text-error"]
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
52
|
});
|
|
53
|
+
export {
|
|
54
|
+
headingStyles,
|
|
55
|
+
labelStyles,
|
|
56
|
+
paragraphStyles,
|
|
57
|
+
placeholderStyles,
|
|
58
|
+
validationMessageStyles
|
|
59
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const ImageBannerStyles: import(
|
|
1
|
+
import { VariantProps } from 'tailwind-variants';
|
|
2
|
+
declare const ImageBannerStyles: import('tailwind-variants').TVReturnType<{
|
|
3
3
|
isFallback: {
|
|
4
4
|
true: {
|
|
5
5
|
image: string[];
|
|
@@ -21,7 +21,7 @@ declare const ImageBannerStyles: import("tailwind-variants").TVReturnType<{
|
|
|
21
21
|
image: string[];
|
|
22
22
|
overlay: string[];
|
|
23
23
|
icon: string[];
|
|
24
|
-
}, import(
|
|
24
|
+
}, import('tailwind-variants').TVReturnType<{
|
|
25
25
|
isFallback: {
|
|
26
26
|
true: {
|
|
27
27
|
image: string[];
|
|
@@ -52,3 +52,4 @@ interface ImageBannerProps extends ImageBannerVariants {
|
|
|
52
52
|
*/
|
|
53
53
|
export declare const ImageBanner: React.FC<ImageBannerProps>;
|
|
54
54
|
export {};
|
|
55
|
+
//# sourceMappingURL=ImageBanner.d.ts.map
|