daleui 0.0.2 → 0.0.5

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.
Files changed (176) hide show
  1. package/README.md +43 -0
  2. package/dist/check-DEVerfH5.js +72 -0
  3. package/dist/components/Box/Box.d.ts +34 -0
  4. package/dist/components/Box/Box.js +34 -0
  5. package/dist/components/Button/Button.d.ts +37 -0
  6. package/dist/components/Button/Button.js +367 -0
  7. package/dist/components/Card/Card.d.ts +68 -0
  8. package/dist/components/Card/Card.js +132 -0
  9. package/dist/components/Checkbox/Checkbox.d.ts +34 -0
  10. package/dist/components/Checkbox/Checkbox.js +657 -0
  11. package/dist/components/Flex/Flex.d.ts +361 -0
  12. package/dist/components/Flex/Flex.js +65 -0
  13. package/dist/components/HStack/HStack.d.ts +23 -0
  14. package/dist/components/HStack/HStack.js +35 -0
  15. package/dist/components/Heading/Heading.d.ts +33 -0
  16. package/dist/components/Heading/Heading.js +67 -0
  17. package/dist/components/Icon/Icon.d.ts +20 -0
  18. package/dist/components/Icon/Icon.js +325 -0
  19. package/dist/components/Label/Label.d.ts +35 -0
  20. package/dist/components/Label/Label.js +74 -0
  21. package/dist/components/Link/Link.d.ts +33 -0
  22. package/dist/components/Link/Link.js +176 -0
  23. package/dist/components/PasswordInput/PasswordInput.d.ts +17 -0
  24. package/dist/components/PasswordInput/PasswordInput.js +151 -0
  25. package/dist/components/RadioGroup/RadioGroup.d.ts +82 -0
  26. package/dist/components/RadioGroup/RadioGroup.js +713 -0
  27. package/dist/components/Select/Select.d.ts +39 -0
  28. package/dist/components/Select/Select.js +222 -0
  29. package/dist/components/Tag/Tag.d.ts +26 -0
  30. package/dist/components/Tag/Tag.js +189 -0
  31. package/dist/components/Text/Text.d.ts +22 -0
  32. package/dist/components/Text/Text.js +115 -0
  33. package/dist/components/TextInput/TextInput.d.ts +21 -0
  34. package/dist/components/TextInput/TextInput.js +106 -0
  35. package/dist/components/VStack/VStack.d.ts +23 -0
  36. package/dist/components/VStack/VStack.js +35 -0
  37. package/dist/css-QiVVeZaw.js +212 -0
  38. package/dist/cva-BrKodHDH.js +57 -0
  39. package/dist/cx-DN21T1EH.js +9 -0
  40. package/dist/hstack-cCrHxysi.js +43 -0
  41. package/dist/index.css +1 -0
  42. package/dist/index.d.ts +18 -0
  43. package/dist/index.js +37 -0
  44. package/dist/tokens/colors.d.ts +4 -0
  45. package/dist/tokens/iconography.d.ts +45 -0
  46. package/dist/tokens/spacing.d.ts +42 -0
  47. package/dist/tokens/typography.d.ts +312 -0
  48. package/dist/use-locale-context-DYXE7B4r.js +775 -0
  49. package/package.json +62 -39
  50. package/styled-system/css/conditions.mjs +36 -0
  51. package/styled-system/css/css.d.ts +22 -0
  52. package/styled-system/css/css.mjs +45 -0
  53. package/styled-system/css/cva.d.ts +6 -0
  54. package/styled-system/css/cva.mjs +87 -0
  55. package/styled-system/css/cx.d.ts +5 -0
  56. package/styled-system/css/cx.mjs +15 -0
  57. package/styled-system/css/index.d.ts +5 -0
  58. package/styled-system/css/index.mjs +4 -0
  59. package/styled-system/css/sva.d.ts +4 -0
  60. package/styled-system/css/sva.mjs +46 -0
  61. package/styled-system/helpers.mjs +316 -0
  62. package/styled-system/patterns/aspect-ratio.d.ts +20 -0
  63. package/styled-system/patterns/aspect-ratio.mjs +38 -0
  64. package/styled-system/patterns/bleed.d.ts +21 -0
  65. package/styled-system/patterns/bleed.mjs +24 -0
  66. package/styled-system/patterns/box.d.ts +20 -0
  67. package/styled-system/patterns/box.mjs +15 -0
  68. package/styled-system/patterns/center.d.ts +20 -0
  69. package/styled-system/patterns/center.mjs +21 -0
  70. package/styled-system/patterns/circle.d.ts +20 -0
  71. package/styled-system/patterns/circle.mjs +25 -0
  72. package/styled-system/patterns/container.d.ts +20 -0
  73. package/styled-system/patterns/container.mjs +21 -0
  74. package/styled-system/patterns/cq.d.ts +21 -0
  75. package/styled-system/patterns/cq.mjs +21 -0
  76. package/styled-system/patterns/divider.d.ts +22 -0
  77. package/styled-system/patterns/divider.mjs +25 -0
  78. package/styled-system/patterns/flex.d.ts +26 -0
  79. package/styled-system/patterns/flex.mjs +26 -0
  80. package/styled-system/patterns/float.d.ts +23 -0
  81. package/styled-system/patterns/float.mjs +52 -0
  82. package/styled-system/patterns/grid-item.d.ts +25 -0
  83. package/styled-system/patterns/grid-item.mjs +25 -0
  84. package/styled-system/patterns/grid.d.ts +24 -0
  85. package/styled-system/patterns/grid.mjs +27 -0
  86. package/styled-system/patterns/hstack.d.ts +21 -0
  87. package/styled-system/patterns/hstack.mjs +24 -0
  88. package/styled-system/patterns/index.d.ts +21 -0
  89. package/styled-system/patterns/index.mjs +20 -0
  90. package/styled-system/patterns/link-overlay.d.ts +20 -0
  91. package/styled-system/patterns/link-overlay.mjs +24 -0
  92. package/styled-system/patterns/spacer.d.ts +20 -0
  93. package/styled-system/patterns/spacer.mjs +21 -0
  94. package/styled-system/patterns/square.d.ts +20 -0
  95. package/styled-system/patterns/square.mjs +24 -0
  96. package/styled-system/patterns/stack.d.ts +23 -0
  97. package/styled-system/patterns/stack.mjs +24 -0
  98. package/styled-system/patterns/visually-hidden.d.ts +20 -0
  99. package/styled-system/patterns/visually-hidden.mjs +18 -0
  100. package/styled-system/patterns/vstack.d.ts +21 -0
  101. package/styled-system/patterns/vstack.mjs +24 -0
  102. package/styled-system/patterns/wrap.d.ts +24 -0
  103. package/styled-system/patterns/wrap.mjs +25 -0
  104. package/styled-system/tokens/index.d.ts +9 -0
  105. package/styled-system/tokens/index.mjs +3176 -0
  106. package/styled-system/tokens/tokens.d.ts +63 -0
  107. package/styled-system/types/composition.d.ts +224 -0
  108. package/styled-system/types/conditions.d.ts +310 -0
  109. package/styled-system/types/csstype.d.ts +21298 -0
  110. package/styled-system/types/global.d.ts +20 -0
  111. package/styled-system/types/index.d.ts +7 -0
  112. package/styled-system/types/parts.d.ts +8 -0
  113. package/styled-system/types/pattern.d.ts +78 -0
  114. package/styled-system/types/prop-type.d.ts +265 -0
  115. package/styled-system/types/recipe.d.ts +181 -0
  116. package/styled-system/types/selectors.d.ts +59 -0
  117. package/styled-system/types/static-css.d.ts +56 -0
  118. package/styled-system/types/style-props.d.ts +7504 -0
  119. package/styled-system/types/system-types.d.ts +269 -0
  120. package/.github/CODEOWNERS +0 -1
  121. package/.github/FUNDING.yml +0 -1
  122. package/.github/workflows/automation.yml +0 -13
  123. package/.github/workflows/chromatic.yml +0 -19
  124. package/.github/workflows/deployment.yml +0 -32
  125. package/.github/workflows/integration.yml +0 -15
  126. package/.github/workflows/storybook-tests.yml +0 -17
  127. package/.storybook/main.ts +0 -18
  128. package/.storybook/preview.ts +0 -29
  129. package/.storybook/test-runner.ts +0 -33
  130. package/bun.lock +0 -2099
  131. package/chromatic.config.json +0 -5
  132. package/eslint.config.js +0 -28
  133. package/index.html +0 -13
  134. package/panda.config.ts +0 -61
  135. package/postcss.config.cjs +0 -5
  136. package/public/logo.svg +0 -9
  137. package/src/App.tsx +0 -67
  138. package/src/assets/Discord.svg +0 -1
  139. package/src/assets/GitHub.svg +0 -1
  140. package/src/assets/LinkedIn.svg +0 -1
  141. package/src/assets/Medium.svg +0 -1
  142. package/src/assets/YouTube.svg +0 -1
  143. package/src/components/Button/Button.stories.tsx +0 -115
  144. package/src/components/Button/Button.test.tsx +0 -108
  145. package/src/components/Button/Button.tsx +0 -245
  146. package/src/components/Button/index.tsx +0 -1
  147. package/src/components/Checkbox/Checkbox.stories.tsx +0 -129
  148. package/src/components/Checkbox/Checkbox.test.tsx +0 -169
  149. package/src/components/Checkbox/Checkbox.tsx +0 -190
  150. package/src/components/Heading/Heading.stories.tsx +0 -72
  151. package/src/components/Heading/Heading.test.tsx +0 -55
  152. package/src/components/Heading/Heading.tsx +0 -73
  153. package/src/components/Heading/index.tsx +0 -1
  154. package/src/components/Icon/Icon.stories.tsx +0 -106
  155. package/src/components/Icon/Icon.test.tsx +0 -44
  156. package/src/components/Icon/Icon.tsx +0 -116
  157. package/src/components/Icon/index.tsx +0 -1
  158. package/src/components/Text/Text.stories.tsx +0 -65
  159. package/src/components/Text/Text.test.tsx +0 -54
  160. package/src/components/Text/Text.tsx +0 -93
  161. package/src/components/Text/index.tsx +0 -1
  162. package/src/index.css +0 -2
  163. package/src/main.tsx +0 -10
  164. package/src/setupTests.tsx +0 -5
  165. package/src/styles/globalCss.ts +0 -43
  166. package/src/tokens/colors.mdx +0 -100
  167. package/src/tokens/colors.ts +0 -288
  168. package/src/tokens/iconography.mdx +0 -15
  169. package/src/tokens/iconography.tsx +0 -54
  170. package/src/tokens/typography.mdx +0 -38
  171. package/src/tokens/typography.ts +0 -132
  172. package/src/vite-env.d.ts +0 -2
  173. package/tsconfig.app.json +0 -25
  174. package/tsconfig.json +0 -7
  175. package/tsconfig.node.json +0 -22
  176. package/vite.config.ts +0 -16
@@ -0,0 +1,132 @@
1
+ import { jsx as t, jsxs as m } from "react/jsx-runtime";
2
+ import { createContext as b, useContext as f } from "react";
3
+ import { Icon as d } from "../Icon/Icon.js";
4
+ import { Link as p } from "../Link/Link.js";
5
+ import "../../css-QiVVeZaw.js";
6
+ import { c as a } from "../../cx-DN21T1EH.js";
7
+ import { c as s } from "../../cva-BrKodHDH.js";
8
+ import { Text as l } from "../Text/Text.js";
9
+ const c = b(null), u = () => {
10
+ const r = f(c);
11
+ if (!r)
12
+ throw new Error("Card 컴포넌트는 Card.Root 내부에서 사용되어야 합니다.");
13
+ return r;
14
+ };
15
+ function C({
16
+ tone: r = "neutral",
17
+ outline: e = !1,
18
+ className: o,
19
+ children: n,
20
+ ...i
21
+ }) {
22
+ return /* @__PURE__ */ t(c.Provider, { value: { tone: r }, children: /* @__PURE__ */ t(
23
+ "article",
24
+ {
25
+ className: a(k({ tone: r, outline: e }), o),
26
+ ...i,
27
+ children: n
28
+ }
29
+ ) });
30
+ }
31
+ function x({ className: r, children: e, ...o }) {
32
+ return /* @__PURE__ */ t("div", { className: a(w(), r), ...o, children: e });
33
+ }
34
+ function g({ name: r, size: e = "lg", ...o }) {
35
+ const { tone: n } = u();
36
+ return /* @__PURE__ */ t("div", { className: a(z()), children: /* @__PURE__ */ t(d, { name: r, size: e, tone: n, "aria-label": r, ...o }) });
37
+ }
38
+ function y({ children: r, ...e }) {
39
+ return /* @__PURE__ */ t(l, { size: "lg", weight: "semibold", as: "p", ...e, children: r });
40
+ }
41
+ function h({ children: r, ...e }) {
42
+ return /* @__PURE__ */ t(l, { size: "md", as: "p", ...e, children: r });
43
+ }
44
+ function v({ children: r, href: e, external: o, ...n }) {
45
+ const { tone: i } = u();
46
+ return /* @__PURE__ */ m(
47
+ p,
48
+ {
49
+ href: e,
50
+ size: "lg",
51
+ tone: i,
52
+ underline: !1,
53
+ external: o,
54
+ ...n,
55
+ children: [
56
+ r,
57
+ o && /* @__PURE__ */ t(d, { name: "externalLink", tone: i, size: "sm" })
58
+ ]
59
+ }
60
+ );
61
+ }
62
+ const k = s({
63
+ base: {
64
+ display: "flex",
65
+ flexDirection: "column",
66
+ alignItems: "start",
67
+ gap: "24",
68
+ p: "24",
69
+ px: "16",
70
+ borderRadius: "md",
71
+ bg: "bg.neutral"
72
+ },
73
+ variants: {
74
+ outline: {
75
+ true: {
76
+ borderWidth: "sm"
77
+ },
78
+ false: {
79
+ borderWidth: "0"
80
+ }
81
+ },
82
+ tone: {
83
+ neutral: {
84
+ borderColor: "border.neutral"
85
+ },
86
+ brand: {
87
+ borderColor: "border.brand"
88
+ }
89
+ }
90
+ }
91
+ }), w = s({
92
+ base: {
93
+ display: "flex",
94
+ flexDirection: "column",
95
+ gap: "4",
96
+ width: "100%"
97
+ }
98
+ }), z = s({
99
+ base: {
100
+ display: "inline-flex",
101
+ p: "12",
102
+ borderRadius: "md",
103
+ bg: "bg.brand"
104
+ }
105
+ }), B = Object.assign(C, {
106
+ /**
107
+ * Card의 제목과 설명을 감싸는 컨테이너입니다.
108
+ * 제목과 설명 사이의 간격을 관리합니다.
109
+ */
110
+ Body: x,
111
+ /**
112
+ * Card의 아이콘을 표시합니다. Card 바로 아래에 배치하며,
113
+ * tone은 Card로부터 자동으로 전달받습니다.
114
+ */
115
+ Icon: g,
116
+ /**
117
+ * Card의 제목을 표시합니다. CardBody 안에서 사용합니다.
118
+ */
119
+ Title: y,
120
+ /**
121
+ * Card의 설명을 표시합니다. CardBody 안에서 CardTitle 아래에 사용합니다.
122
+ */
123
+ Description: h,
124
+ /**
125
+ * Card 하단에 링크를 표시합니다. tone은 Card로부터 자동으로 전달받으며,
126
+ * external prop이 true일 경우 외부 링크 아이콘이 자동으로 추가됩니다.
127
+ */
128
+ Link: v
129
+ });
130
+ export {
131
+ B as Card
132
+ };
@@ -0,0 +1,34 @@
1
+ import React from "react";
2
+ import type { Tone } from "../../tokens/colors";
3
+ export interface CheckboxProps {
4
+ /** 체크박스 라벨 텍스트 */
5
+ label?: React.ReactNode;
6
+ /** 체크박스의 name 속성 */
7
+ name?: string;
8
+ /** 체크 상태 (controlled 모드) */
9
+ checked?: boolean;
10
+ /** 초기 체크 상태 (uncontrolled 모드) */
11
+ defaultChecked?: boolean;
12
+ /** 비활성화 상태 */
13
+ disabled?: boolean;
14
+ /** 에러 상태 (테두리 + 체크 아이콘 + 라벨 모두 붉은색) */
15
+ invalid?: boolean;
16
+ /** 체크박스의 색조 */
17
+ tone?: Tone;
18
+ /** 필수 입력 표시 (라벨 옆에 * 표시) */
19
+ required?: boolean;
20
+ /** 체크 상태 변경 시 호출되는 콜백 */
21
+ onChange?: (checked: boolean) => void;
22
+ }
23
+ /**
24
+ * - `label` 속성으로 체크박스의 라벨을 지정할 수 있습니다.
25
+ * - `name` 속성으로 체크박스의 form에서 사용할 name 속성을 지정할 수 있습니다.
26
+ * - `checked` 속성으로 체크박스의 체크 상태를 제어할 수 있습니다.
27
+ * - `defaultChecked` 속성으로 체크박스의 초기 체크 상태를 설정할 수 있습니다.
28
+ * - `disabled` 속성으로 체크박스를 비활성화할 수 있습니다.
29
+ * - `invalid` 속성으로 체크박스의 에러 상태를 지정할 수 있습니다.
30
+ * - `tone` 속성으로 체크박스의 색상 강조를 지정할 수 있습니다.
31
+ * - `required` 속성으로 체크박스의 필수 입력 여부를 지정할 수 있습니다.
32
+ * - `onChange` 속성으로 체크박스의 체크 상태 변경 시 호출되는 콜백을 지정할 수 있습니다.
33
+ */
34
+ export declare const Checkbox: ({ label, name, checked, defaultChecked, disabled, invalid, tone, required, onChange, }: CheckboxProps) => import("react/jsx-runtime").JSX.Element;