@pylerai/design-system 1.2.4 → 2.1.0
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/LICENSE +21 -0
- package/README.md +183 -307
- package/dist/components/ui/badge.d.ts +2 -1
- package/dist/components/ui/badge.js +49 -0
- package/dist/components/ui/body.js +52 -0
- package/dist/components/ui/button.d.ts +2 -1
- package/dist/components/ui/button.js +172 -0
- package/dist/components/ui/calendar.js +275 -0
- package/dist/components/ui/checkbox.d.ts +7 -0
- package/dist/components/ui/checkbox.js +45 -0
- package/dist/components/ui/chip.d.ts +4 -3
- package/dist/components/ui/chip.js +66 -0
- package/dist/components/ui/dropdown.d.ts +8 -2
- package/dist/components/ui/dropdown.js +256 -0
- package/dist/components/ui/headline.js +50 -0
- package/dist/components/ui/input.d.ts +3 -2
- package/dist/components/ui/input.js +129 -0
- package/dist/components/ui/label.js +43 -0
- package/dist/components/ui/loading-bar.d.ts +2 -1
- package/dist/components/ui/loading-bar.js +64 -0
- package/dist/components/ui/modal.d.ts +3 -2
- package/dist/components/ui/modal.js +170 -0
- package/dist/components/ui/pagination.js +106 -0
- package/dist/components/ui/radio.d.ts +7 -0
- package/dist/components/ui/radio.js +42 -0
- package/dist/components/ui/search-field.d.ts +3 -2
- package/dist/components/ui/search-field.js +98 -0
- package/dist/components/ui/table.js +206 -0
- package/dist/components/ui/tabs.js +149 -0
- package/dist/components/ui/tag.d.ts +2 -1
- package/dist/components/ui/tag.js +31 -0
- package/dist/components/ui/tips.d.ts +2 -1
- package/dist/components/ui/tips.js +25 -0
- package/dist/components/ui/toast.js +70 -0
- package/dist/components/ui/toggle.d.ts +1 -2
- package/dist/components/ui/toggle.js +41 -0
- package/dist/components/ui/use-modal.js +94 -0
- package/dist/fonts/PretendardJPVariable.subset.0.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.1.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.10.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.100.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.101.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.102.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.103.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.104.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.105.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.106.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.107.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.108.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.109.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.11.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.110.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.111.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.112.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.113.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.114.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.115.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.116.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.117.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.118.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.12.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.13.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.14.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.15.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.16.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.17.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.18.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.19.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.2.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.20.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.21.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.22.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.23.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.24.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.25.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.26.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.27.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.28.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.29.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.3.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.30.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.31.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.32.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.33.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.34.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.35.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.36.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.37.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.38.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.39.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.4.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.40.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.41.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.42.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.43.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.44.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.45.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.46.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.47.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.48.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.49.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.5.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.50.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.51.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.52.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.53.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.54.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.55.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.56.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.57.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.58.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.59.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.6.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.60.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.61.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.62.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.63.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.64.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.65.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.66.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.67.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.68.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.69.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.7.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.70.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.71.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.72.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.73.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.74.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.75.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.76.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.77.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.78.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.79.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.8.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.80.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.81.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.82.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.83.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.84.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.85.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.86.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.87.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.88.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.89.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.9.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.90.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.91.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.92.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.93.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.94.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.95.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.96.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.97.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.98.woff2 +0 -0
- package/dist/fonts/PretendardJPVariable.subset.99.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.0.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.1.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.10.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.11.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.12.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.13.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.14.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.15.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.16.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.17.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.18.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.19.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.2.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.20.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.21.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.22.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.23.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.24.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.25.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.26.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.27.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.28.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.29.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.3.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.30.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.31.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.32.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.33.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.34.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.35.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.36.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.37.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.38.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.39.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.4.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.40.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.41.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.42.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.43.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.44.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.45.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.46.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.47.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.48.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.49.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.5.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.50.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.51.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.52.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.53.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.54.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.55.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.56.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.57.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.58.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.59.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.6.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.60.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.61.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.62.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.63.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.64.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.65.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.66.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.67.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.68.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.69.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.7.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.70.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.71.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.72.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.73.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.74.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.75.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.76.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.77.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.78.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.79.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.8.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.80.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.81.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.82.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.83.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.84.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.85.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.86.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.87.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.88.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.89.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.9.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.90.woff2 +0 -0
- package/dist/fonts/PretendardVariable.subset.91.woff2 +0 -0
- package/dist/fonts.css +2018 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +75 -5779
- package/dist/lib/icons.js +225 -0
- package/dist/lib/size.d.ts +8 -0
- package/dist/lib/use-dialog-a11y.d.ts +2 -0
- package/dist/lib/use-dialog-a11y.js +50 -0
- package/dist/lib/utils.js +16 -0
- package/dist/style.css +1 -1
- package/dist/tokens/pyler-light.js +134 -0
- package/dist/tokens/typography.js +84 -0
- package/package.json +22 -5
- package/pyler-tailwind-colors.cjs +4 -0
- package/dist/index.css.d.ts +0 -0
|
@@ -0,0 +1,134 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const g = [
|
|
3
|
+
"primitive",
|
|
4
|
+
"main",
|
|
5
|
+
"background",
|
|
6
|
+
"text",
|
|
7
|
+
"line",
|
|
8
|
+
"surface",
|
|
9
|
+
"primary",
|
|
10
|
+
"category",
|
|
11
|
+
"icon"
|
|
12
|
+
];
|
|
13
|
+
function c(e) {
|
|
14
|
+
return e.replace(/([a-z])([A-Z])/g, "$1-$2").toLowerCase();
|
|
15
|
+
}
|
|
16
|
+
function a(e) {
|
|
17
|
+
return e.split(".").map(c).join("-");
|
|
18
|
+
}
|
|
19
|
+
function s(e) {
|
|
20
|
+
return `--ds-${a(e)}`;
|
|
21
|
+
}
|
|
22
|
+
function l(e) {
|
|
23
|
+
return `bg-ds-${a(e)}`;
|
|
24
|
+
}
|
|
25
|
+
function F(e) {
|
|
26
|
+
return typeof e == "object" && e !== null && "hex" in e && typeof e.hex == "string";
|
|
27
|
+
}
|
|
28
|
+
function i(e, o, r) {
|
|
29
|
+
if (F(e)) {
|
|
30
|
+
const t = o.join("."), n = o[0];
|
|
31
|
+
return [
|
|
32
|
+
{
|
|
33
|
+
path: t,
|
|
34
|
+
hex: e.hex,
|
|
35
|
+
cssVar: s(t),
|
|
36
|
+
tailwindBg: l(t),
|
|
37
|
+
group: n,
|
|
38
|
+
figmaKey: r == null ? void 0 : r.get(t)
|
|
39
|
+
}
|
|
40
|
+
];
|
|
41
|
+
}
|
|
42
|
+
return Object.entries(e).flatMap(
|
|
43
|
+
([t, n]) => i(n, [...o, t], r)
|
|
44
|
+
);
|
|
45
|
+
}
|
|
46
|
+
const h = {
|
|
47
|
+
primitive: {
|
|
48
|
+
black: { hex: "#121212" },
|
|
49
|
+
white: { hex: "#FFFFFF" }
|
|
50
|
+
},
|
|
51
|
+
main: {
|
|
52
|
+
default: { hex: "#2C80F5" }
|
|
53
|
+
},
|
|
54
|
+
background: {
|
|
55
|
+
default: { hex: "#FFFFFF" }
|
|
56
|
+
},
|
|
57
|
+
text: {
|
|
58
|
+
strong: { hex: "#333333" },
|
|
59
|
+
normal: { hex: "#969696" },
|
|
60
|
+
disabled: { hex: "#CCCCCC" }
|
|
61
|
+
},
|
|
62
|
+
line: {
|
|
63
|
+
strong: { hex: "#E2E2E2" },
|
|
64
|
+
normal: { hex: "#EBEBEB" }
|
|
65
|
+
},
|
|
66
|
+
surface: {
|
|
67
|
+
strong: { hex: "#F5F5F5" },
|
|
68
|
+
normal: { hex: "#F7F8F9" },
|
|
69
|
+
alternative: { hex: "#FFFFFF" }
|
|
70
|
+
},
|
|
71
|
+
primary: {
|
|
72
|
+
"blue-normal": { hex: "#2C80F5" },
|
|
73
|
+
"blue-hovered": { hex: "#0B64E2" },
|
|
74
|
+
"blue-disabled": { hex: "#D2E5FD" },
|
|
75
|
+
"blue-muted": { hex: "#F4F9FE" },
|
|
76
|
+
"red-normal": { hex: "#FF4242" },
|
|
77
|
+
"red-hovered": { hex: "#E60D0D" },
|
|
78
|
+
"red-disabled": { hex: "#FFDCDC" },
|
|
79
|
+
"red-muted": { hex: "#FFF7F7" },
|
|
80
|
+
"green-normal": { hex: "#0BC753" },
|
|
81
|
+
"green-hovered": { hex: "#00A13E" },
|
|
82
|
+
"green-disabled": { hex: "#B4ECD1" },
|
|
83
|
+
"green-muted": { hex: "#F4FBF7" }
|
|
84
|
+
},
|
|
85
|
+
category: {
|
|
86
|
+
sexual: { hex: "#FF6355" },
|
|
87
|
+
violence: { hex: "#C06528" },
|
|
88
|
+
hate: { hex: "#6554C0" },
|
|
89
|
+
politics: { hex: "#0B945A" },
|
|
90
|
+
controversy: { hex: "#0098B2" },
|
|
91
|
+
talk: { hex: "#2B70E4" },
|
|
92
|
+
overseas: { hex: "#E63FE1" },
|
|
93
|
+
religion: { hex: "#FFC400" },
|
|
94
|
+
custom: { hex: "#58CF04" },
|
|
95
|
+
sensitive: { hex: "#CC3D00" },
|
|
96
|
+
issue: { hex: "#00B8D9" }
|
|
97
|
+
},
|
|
98
|
+
icon: {
|
|
99
|
+
strong: { hex: "#333333" },
|
|
100
|
+
normal: { hex: "#969696" },
|
|
101
|
+
disabled: { hex: "#CCCCCC" }
|
|
102
|
+
}
|
|
103
|
+
}, x = /* @__PURE__ */ new Map([
|
|
104
|
+
["category.sexual", "Sexual"],
|
|
105
|
+
["category.violence", "Violence"],
|
|
106
|
+
["category.hate", "Hate"],
|
|
107
|
+
["category.politics", "Politics"],
|
|
108
|
+
["category.controversy", "Controversy"],
|
|
109
|
+
["category.talk", "Talk"],
|
|
110
|
+
["category.overseas", "Overseas"],
|
|
111
|
+
["category.religion", "Religion"],
|
|
112
|
+
["category.custom", "Custom"],
|
|
113
|
+
["category.sensitive", "Sensitive"],
|
|
114
|
+
["category.issue", "Issue"]
|
|
115
|
+
]), C = i(
|
|
116
|
+
h,
|
|
117
|
+
[],
|
|
118
|
+
x
|
|
119
|
+
);
|
|
120
|
+
function u(e) {
|
|
121
|
+
return s(e);
|
|
122
|
+
}
|
|
123
|
+
const d = u;
|
|
124
|
+
function b(e) {
|
|
125
|
+
return a(e);
|
|
126
|
+
}
|
|
127
|
+
export {
|
|
128
|
+
h as PYLER_LIGHT_COLOR_TOKENS,
|
|
129
|
+
g as PYLER_LIGHT_GROUP_ORDER,
|
|
130
|
+
C as flatPylerLightTokens,
|
|
131
|
+
b as formatPylerPathForDisplay,
|
|
132
|
+
u as getDsCssVar,
|
|
133
|
+
d as getPylerCssVar
|
|
134
|
+
};
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
const t = {
|
|
3
|
+
title1Sb: {
|
|
4
|
+
fontFamily: "var(--ds-font-sans)",
|
|
5
|
+
fontSize: "var(--ds-type-title-1-sb-font-size)",
|
|
6
|
+
lineHeight: "var(--ds-type-title-1-sb-line-height)",
|
|
7
|
+
fontWeight: "var(--ds-type-title-1-sb-font-weight)"
|
|
8
|
+
},
|
|
9
|
+
title1M: {
|
|
10
|
+
fontFamily: "var(--ds-font-sans)",
|
|
11
|
+
fontSize: "var(--ds-type-title-1-m-font-size)",
|
|
12
|
+
lineHeight: "var(--ds-type-title-1-m-line-height)",
|
|
13
|
+
fontWeight: "var(--ds-type-title-1-m-font-weight)"
|
|
14
|
+
},
|
|
15
|
+
title2Sb: {
|
|
16
|
+
fontFamily: "var(--ds-font-sans)",
|
|
17
|
+
fontSize: "var(--ds-type-title-2-sb-font-size)",
|
|
18
|
+
lineHeight: "var(--ds-type-title-2-sb-line-height)",
|
|
19
|
+
fontWeight: "var(--ds-type-title-2-sb-font-weight)"
|
|
20
|
+
},
|
|
21
|
+
body1M: {
|
|
22
|
+
fontFamily: "var(--ds-font-sans)",
|
|
23
|
+
fontSize: "var(--ds-type-body-1-m-font-size)",
|
|
24
|
+
lineHeight: "var(--ds-type-body-1-m-line-height)",
|
|
25
|
+
fontWeight: "var(--ds-type-body-1-m-font-weight)"
|
|
26
|
+
},
|
|
27
|
+
body1R: {
|
|
28
|
+
fontFamily: "var(--ds-font-sans)",
|
|
29
|
+
fontSize: "var(--ds-type-body-1-r-font-size)",
|
|
30
|
+
lineHeight: "var(--ds-type-body-1-r-line-height)",
|
|
31
|
+
fontWeight: "var(--ds-type-body-1-r-font-weight)"
|
|
32
|
+
},
|
|
33
|
+
body2Sb: {
|
|
34
|
+
fontFamily: "var(--ds-font-sans)",
|
|
35
|
+
fontSize: "var(--ds-type-body-2-sb-font-size)",
|
|
36
|
+
lineHeight: "var(--ds-type-body-2-sb-line-height)",
|
|
37
|
+
fontWeight: "var(--ds-type-body-2-sb-font-weight)"
|
|
38
|
+
},
|
|
39
|
+
body2M: {
|
|
40
|
+
fontFamily: "var(--ds-font-sans)",
|
|
41
|
+
fontSize: "var(--ds-type-body-2-m-font-size)",
|
|
42
|
+
lineHeight: "var(--ds-type-body-2-m-line-height)",
|
|
43
|
+
fontWeight: "var(--ds-type-body-2-m-font-weight)"
|
|
44
|
+
},
|
|
45
|
+
body2R: {
|
|
46
|
+
fontFamily: "var(--ds-font-sans)",
|
|
47
|
+
fontSize: "var(--ds-type-body-2-r-font-size)",
|
|
48
|
+
lineHeight: "var(--ds-type-body-2-r-line-height)",
|
|
49
|
+
fontWeight: "var(--ds-type-body-2-r-font-weight)"
|
|
50
|
+
},
|
|
51
|
+
body3M: {
|
|
52
|
+
fontFamily: "var(--ds-font-sans)",
|
|
53
|
+
fontSize: "var(--ds-type-body-3-m-font-size)",
|
|
54
|
+
lineHeight: "var(--ds-type-body-3-m-line-height)",
|
|
55
|
+
fontWeight: "var(--ds-type-body-3-m-font-weight)"
|
|
56
|
+
},
|
|
57
|
+
body3R: {
|
|
58
|
+
fontFamily: "var(--ds-font-sans)",
|
|
59
|
+
fontSize: "var(--ds-type-body-3-r-font-size)",
|
|
60
|
+
lineHeight: "var(--ds-type-body-3-r-line-height)",
|
|
61
|
+
fontWeight: "var(--ds-type-body-3-r-font-weight)"
|
|
62
|
+
},
|
|
63
|
+
body4M: {
|
|
64
|
+
fontFamily: "var(--ds-font-sans)",
|
|
65
|
+
fontSize: "var(--ds-type-body-4-m-font-size)",
|
|
66
|
+
lineHeight: "var(--ds-type-body-4-m-line-height)",
|
|
67
|
+
fontWeight: "var(--ds-type-body-4-m-font-weight)"
|
|
68
|
+
},
|
|
69
|
+
body4R: {
|
|
70
|
+
fontFamily: "var(--ds-font-sans)",
|
|
71
|
+
fontSize: "var(--ds-type-body-4-r-font-size)",
|
|
72
|
+
lineHeight: "var(--ds-type-body-4-r-line-height)",
|
|
73
|
+
fontWeight: "var(--ds-type-body-4-r-font-weight)"
|
|
74
|
+
},
|
|
75
|
+
label1R: {
|
|
76
|
+
fontFamily: "var(--ds-font-sans)",
|
|
77
|
+
fontSize: "var(--ds-type-label-1-r-font-size)",
|
|
78
|
+
lineHeight: "var(--ds-type-label-1-r-line-height)",
|
|
79
|
+
fontWeight: "var(--ds-type-label-1-r-font-weight)"
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
export {
|
|
83
|
+
t as PYLER_TYPOGRAPHY_STYLE
|
|
84
|
+
};
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pylerai/design-system",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "design-system for pyler frontend",
|
|
5
5
|
"type": "module",
|
|
6
|
+
"sideEffects": [
|
|
7
|
+
"**/*.css"
|
|
8
|
+
],
|
|
6
9
|
"main": "./dist/index.js",
|
|
7
10
|
"types": "./dist/index.d.ts",
|
|
8
11
|
"exports": {
|
|
@@ -12,6 +15,7 @@
|
|
|
12
15
|
"default": "./dist/index.js"
|
|
13
16
|
},
|
|
14
17
|
"./style.css": "./dist/style.css",
|
|
18
|
+
"./fonts.css": "./dist/fonts.css",
|
|
15
19
|
"./tailwind-preset": "./tailwind-preset.cjs",
|
|
16
20
|
"./pyler-tailwind-colors": "./pyler-tailwind-colors.cjs",
|
|
17
21
|
"./pyler-typography": "./pyler-typography.cjs"
|
|
@@ -24,19 +28,22 @@
|
|
|
24
28
|
],
|
|
25
29
|
"scripts": {
|
|
26
30
|
"dev": "vite",
|
|
27
|
-
"build": "vite build",
|
|
31
|
+
"build": "vite build && node scripts/build-fonts.cjs",
|
|
28
32
|
"preview": "vite preview",
|
|
29
33
|
"test": "vitest run",
|
|
34
|
+
"check:tokens": "node scripts/check-tokens.cjs",
|
|
35
|
+
"lint": "eslint . --max-warnings 0",
|
|
30
36
|
"storybook": "storybook dev -p 6006",
|
|
31
37
|
"build-storybook": "storybook build",
|
|
32
|
-
"publish:npm": "npm run build && npm publish --access public"
|
|
38
|
+
"publish:npm": "npm run build && npm publish --access public",
|
|
39
|
+
"build:fonts": "node scripts/build-fonts.cjs"
|
|
33
40
|
},
|
|
34
41
|
"repository": {
|
|
35
42
|
"type": "git",
|
|
36
43
|
"url": "git+https://github.com/pylerAI/design-system.git"
|
|
37
44
|
},
|
|
38
|
-
"author": "",
|
|
39
|
-
"license": "
|
|
45
|
+
"author": "Pyler Inc.",
|
|
46
|
+
"license": "MIT",
|
|
40
47
|
"bugs": {
|
|
41
48
|
"url": "https://github.com/pylerAI/design-system/issues"
|
|
42
49
|
},
|
|
@@ -59,6 +66,7 @@
|
|
|
59
66
|
},
|
|
60
67
|
"devDependencies": {
|
|
61
68
|
"@chromatic-com/storybook": "^4.1.1",
|
|
69
|
+
"@eslint/js": "^9.39.5",
|
|
62
70
|
"@storybook/addon-a11y": "^9.1.15",
|
|
63
71
|
"@storybook/addon-docs": "^9.1.15",
|
|
64
72
|
"@storybook/addon-onboarding": "^9.1.15",
|
|
@@ -72,14 +80,23 @@
|
|
|
72
80
|
"@vitest/coverage-v8": "^4.0.4",
|
|
73
81
|
"autoprefixer": "^10.4.16",
|
|
74
82
|
"dotenv-cli": "^8.0.0",
|
|
83
|
+
"esbuild": "^0.21.5",
|
|
84
|
+
"eslint": "^9.39.5",
|
|
85
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
86
|
+
"eslint-plugin-react-hooks": "^5.2.0",
|
|
87
|
+
"eslint-plugin-storybook": "^9.1.20",
|
|
88
|
+
"globals": "^15.15.0",
|
|
75
89
|
"playwright": "^1.56.1",
|
|
76
90
|
"postcss": "^8.4.32",
|
|
91
|
+
"pretendard": "1.3.9",
|
|
92
|
+
"pretendard-jp": "1.3.9",
|
|
77
93
|
"react": "^18.2.0",
|
|
78
94
|
"react-dom": "^18.2.0",
|
|
79
95
|
"storybook": "^9.1.15",
|
|
80
96
|
"tailwindcss": "^3.4.0",
|
|
81
97
|
"tailwindcss-animate": "^1.0.7",
|
|
82
98
|
"typescript": "^5.3.3",
|
|
99
|
+
"typescript-eslint": "^8.66.0",
|
|
83
100
|
"vite": "^5.0.11",
|
|
84
101
|
"vite-plugin-dts": "^4.5.4",
|
|
85
102
|
"vitest": "^4.0.4"
|
|
@@ -15,6 +15,10 @@ module.exports = {
|
|
|
15
15
|
background: {
|
|
16
16
|
default: "var(--ds-background-default)",
|
|
17
17
|
},
|
|
18
|
+
// Figma Foundation/Dim — 값이 rgba라 pyler-light.ts(HEX 전용)에는 없다
|
|
19
|
+
dim: {
|
|
20
|
+
default: "var(--ds-dim-default)",
|
|
21
|
+
},
|
|
18
22
|
text: {
|
|
19
23
|
strong: "var(--ds-text-strong)",
|
|
20
24
|
normal: "var(--ds-text-normal)",
|
package/dist/index.css.d.ts
DELETED
|
File without changes
|