@agility/plenum-ui 2.2.1 → 2.2.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/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +2 -2
- package/dist/tailwind.css +4 -4
- package/dist/types/stories/atoms/Typography/Paragraph/Paragraph.d.ts +1 -1
- package/package.json +1 -1
- package/stories/atoms/Typography/Label/Label.tsx +1 -1
- package/stories/atoms/Typography/Paragraph/Paragraph.tsx +6 -5
package/dist/tailwind.css
CHANGED
|
@@ -68086,12 +68086,12 @@ select {
|
|
|
68086
68086
|
line-height: 1.25rem;
|
|
68087
68087
|
}
|
|
68088
68088
|
|
|
68089
|
-
.leading-\[
|
|
68090
|
-
line-height:
|
|
68089
|
+
.leading-\[12px\] {
|
|
68090
|
+
line-height: 12px;
|
|
68091
68091
|
}
|
|
68092
68092
|
|
|
68093
|
-
.leading-\[
|
|
68094
|
-
line-height:
|
|
68093
|
+
.leading-\[14px\] {
|
|
68094
|
+
line-height: 14px;
|
|
68095
68095
|
}
|
|
68096
68096
|
|
|
68097
68097
|
.leading-\[28px\] {
|
package/package.json
CHANGED
|
@@ -21,5 +21,5 @@ const labelStyles: Record<LabelSize, string> = {
|
|
|
21
21
|
export default function Label({ as = "span", size = "md", children, className }: LabelProps) {
|
|
22
22
|
const Tag = as;
|
|
23
23
|
|
|
24
|
-
return <Tag className={cn("gray-900 font-
|
|
24
|
+
return <Tag className={cn("gray-900 font-normal", labelStyles[size], className)}>{children}</Tag>;
|
|
25
25
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { default as cn } from "classnames";
|
|
2
2
|
|
|
3
3
|
type ParagraphAs = "span" | "p" | "label" | "strong" | "em";
|
|
4
|
-
type ParagraphSize = "lg" | "md" | "sm" | "xs";
|
|
4
|
+
type ParagraphSize = "xl" | "lg" | "md" | "sm" | "xs";
|
|
5
5
|
|
|
6
6
|
export interface ParagraphProps {
|
|
7
7
|
as?: ParagraphAs;
|
|
@@ -11,10 +11,11 @@ export interface ParagraphProps {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
const paragraphStyles: Record<ParagraphSize, string> = {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
14
|
+
xl: "text-lg",
|
|
15
|
+
lg: "text-base",
|
|
16
|
+
md: "text-sm",
|
|
17
|
+
sm: "text-xs",
|
|
18
|
+
xs: "text-[10px] leading-[12px]"
|
|
18
19
|
};
|
|
19
20
|
|
|
20
21
|
export default function Paragraph({ as = "p", size = "md", children, className }: ParagraphProps) {
|