@xjur-ui/react 1.0.0 → 1.0.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.
Files changed (117) hide show
  1. package/.turbo/turbo-build.log +63 -57
  2. package/CHANGELOG.md +18 -0
  3. package/dist/components/avatar.d.ts +11 -0
  4. package/dist/components/avatar.js +58 -0
  5. package/dist/components/badge.d.ts +13 -0
  6. package/dist/components/{ui/input/message.js → badge.js} +30 -47
  7. package/dist/components/{ui/button.d.ts → button.d.ts} +2 -2
  8. package/dist/components/{ui/button.js → button.js} +9 -6
  9. package/dist/components/calendar.d.ts +11 -0
  10. package/dist/components/calendar.js +751 -0
  11. package/dist/components/checkbox.d.ts +8 -0
  12. package/dist/components/{ui/input/root.js → checkbox.js} +69 -79
  13. package/dist/components/chip.d.ts +24 -0
  14. package/dist/components/chip.js +255 -0
  15. package/dist/components/collapsible.d.ts +8 -0
  16. package/dist/components/collapsible.js +41 -0
  17. package/dist/components/date-picker.d.ts +20 -0
  18. package/dist/components/date-picker.js +232 -0
  19. package/dist/components/divider.d.ts +7 -0
  20. package/dist/components/divider.js +28 -0
  21. package/dist/components/dropdown-menu.d.ts +22 -0
  22. package/dist/components/dropdown-menu.js +294 -0
  23. package/dist/components/{resources/icons.d.ts → icon.d.ts} +11 -2
  24. package/dist/components/{ui/icon.js → icon.js} +20 -5
  25. package/dist/components/input.d.ts +32 -0
  26. package/dist/components/input.js +315 -0
  27. package/dist/components/list.d.ts +25 -0
  28. package/dist/components/{ui/input/content.js → list.js} +83 -87
  29. package/dist/components/{ui/logo.d.ts → logo.d.ts} +2 -2
  30. package/dist/components/{ui/logo.js → logo.js} +5 -5
  31. package/dist/components/{ui/otp-input.js → otp-input.js} +1 -1
  32. package/dist/components/radio.d.ts +10 -0
  33. package/dist/components/{ui/input/label.js → radio.js} +68 -77
  34. package/dist/components/search-input.d.ts +17 -0
  35. package/dist/components/search-input.js +274 -0
  36. package/dist/components/select.d.ts +33 -0
  37. package/dist/components/select.js +550 -0
  38. package/dist/components/sheet.d.ts +19 -0
  39. package/dist/components/sheet.js +251 -0
  40. package/dist/components/switch.d.ts +7 -0
  41. package/dist/components/switch.js +36 -0
  42. package/dist/components/tabs.d.ts +11 -0
  43. package/dist/components/tabs.js +54 -0
  44. package/dist/components/tag.d.ts +18 -0
  45. package/dist/components/tag.js +189 -0
  46. package/dist/components/{ui/typography.d.ts → typography.d.ts} +4 -4
  47. package/dist/components/{ui/typography.js → typography.js} +1 -1
  48. package/dist/index.css +1233 -62
  49. package/dist/index.d.ts +2 -17
  50. package/dist/index.js +0 -788
  51. package/eslint.config.js +8 -1
  52. package/package.json +41 -10
  53. package/src/components/avatar.tsx +53 -0
  54. package/src/components/badge.tsx +40 -0
  55. package/src/components/{ui/button.tsx → button.tsx} +7 -5
  56. package/src/components/calendar.tsx +123 -0
  57. package/src/components/checkbox.tsx +57 -0
  58. package/src/components/chip.tsx +109 -0
  59. package/src/components/collapsible.tsx +35 -0
  60. package/src/components/date-picker.tsx +160 -0
  61. package/src/components/divider.tsx +23 -0
  62. package/src/components/dropdown-menu.tsx +101 -0
  63. package/src/components/{ui/icon.tsx → icon.tsx} +1 -1
  64. package/src/components/input.tsx +256 -0
  65. package/src/components/list.tsx +111 -0
  66. package/src/components/radio.tsx +74 -0
  67. package/src/components/search-input.tsx +112 -0
  68. package/src/components/select.tsx +240 -0
  69. package/src/components/sheet.tsx +141 -0
  70. package/src/components/switch.tsx +31 -0
  71. package/src/components/tabs.tsx +53 -0
  72. package/src/components/tag.tsx +91 -0
  73. package/src/index.css +4 -1
  74. package/src/index.ts +0 -1
  75. package/src/{components/resources → resources}/icons.ts +16 -1
  76. package/src/resources/input-mask.ts +91 -0
  77. package/dist/components/resources/icons.js +0 -133
  78. package/dist/components/resources/logo/horizontal.d.ts +0 -12
  79. package/dist/components/resources/logo/horizontal.js +0 -107
  80. package/dist/components/resources/logo/icon.d.ts +0 -12
  81. package/dist/components/resources/logo/icon.js +0 -79
  82. package/dist/components/resources/logo/index.d.ts +0 -4
  83. package/dist/components/resources/logo/index.js +0 -291
  84. package/dist/components/resources/logo/vertical.d.ts +0 -12
  85. package/dist/components/resources/logo/vertical.js +0 -107
  86. package/dist/components/ui/accordion.d.ts +0 -5
  87. package/dist/components/ui/accordion.js +0 -8
  88. package/dist/components/ui/icon.d.ts +0 -12
  89. package/dist/components/ui/index.d.ts +0 -17
  90. package/dist/components/ui/index.js +0 -788
  91. package/dist/components/ui/input/content.d.ts +0 -9
  92. package/dist/components/ui/input/index.d.ts +0 -12
  93. package/dist/components/ui/input/index.js +0 -335
  94. package/dist/components/ui/input/label.d.ts +0 -12
  95. package/dist/components/ui/input/message.d.ts +0 -10
  96. package/dist/components/ui/input/root.d.ts +0 -18
  97. package/dist/components/ui/input/slot.d.ts +0 -10
  98. package/dist/components/ui/input/slot.js +0 -20
  99. package/dist/components/ui/input/text.d.ts +0 -10
  100. package/dist/components/ui/input/text.js +0 -195
  101. package/src/components/ui/accordion.tsx +0 -3
  102. package/src/components/ui/index.ts +0 -13
  103. package/src/components/ui/input/content.tsx +0 -59
  104. package/src/components/ui/input/index.ts +0 -6
  105. package/src/components/ui/input/label.tsx +0 -41
  106. package/src/components/ui/input/message.tsx +0 -37
  107. package/src/components/ui/input/root.tsx +0 -57
  108. package/src/components/ui/input/slot.tsx +0 -21
  109. package/src/components/ui/input/text.tsx +0 -69
  110. /package/dist/components/{ui/otp-input.d.ts → otp-input.d.ts} +0 -0
  111. /package/src/components/{ui/logo.tsx → logo.tsx} +0 -0
  112. /package/src/components/{ui/otp-input.tsx → otp-input.tsx} +0 -0
  113. /package/src/components/{ui/typography.tsx → typography.tsx} +0 -0
  114. /package/src/{components/resources → resources}/logo/horizontal.tsx +0 -0
  115. /package/src/{components/resources → resources}/logo/icon.tsx +0 -0
  116. /package/src/{components/resources → resources}/logo/index.ts +0 -0
  117. /package/src/{components/resources → resources}/logo/vertical.tsx +0 -0
@@ -1,788 +0,0 @@
1
- // src/components/ui/button.tsx
2
- import { Slot } from "@radix-ui/react-slot";
3
- import { cva } from "@xjur-ui/util";
4
- import { jsx } from "react/jsx-runtime";
5
- var buttonVariants = cva(
6
- [
7
- "inline-flex items-center justify-center rounded-circle gap-small cursor-pointer disabled:opacity-38 disabled:pointer-events-none transition-colors"
8
- ],
9
- {
10
- variants: {
11
- size: {
12
- md: "py-small_1x-alt px-medium text-size-body-md",
13
- sm: "py-small-1x px-small text-size-label-sm"
14
- },
15
- variant: {
16
- primary: "",
17
- secondary: "",
18
- tertiary: "",
19
- destructive: "",
20
- outlined: "bg-layer-2-idle border border-border-layer-2 hover:bg-layer-2-hover active:bg-layer-2-pressed"
21
- },
22
- appearance: {
23
- solid: "",
24
- ghost: "bg-transparent"
25
- }
26
- },
27
- compoundVariants: [
28
- {
29
- variant: "primary",
30
- appearance: "solid",
31
- class: "bg-primary-idle text-neutral-label hover:bg-primary-hover active:bg-primary-pressed"
32
- },
33
- {
34
- variant: "primary",
35
- appearance: "ghost",
36
- class: "text-primary-idle hover:bg-primary-alt-idle active:bg-primary-alt-pressed"
37
- },
38
- {
39
- variant: "secondary",
40
- appearance: "solid",
41
- class: "bg-layer-1-hover text-neutral-dark hover:bg-layer-1-pressed active:bg-layer-1-active"
42
- },
43
- {
44
- variant: "secondary",
45
- appearance: "ghost",
46
- class: "hover:bg-layer-1-hover active:bg-layer-1-pressed"
47
- },
48
- {
49
- variant: "tertiary",
50
- appearance: "solid",
51
- class: "bg-layer-2-hover text-neutral-dark hover:bg-layer-2-pressed active:bg-layer-2-active"
52
- },
53
- {
54
- variant: "tertiary",
55
- appearance: "ghost",
56
- class: "hover:bg-layer-2-hover active:bg-layer-2-pressed"
57
- },
58
- {
59
- variant: "destructive",
60
- appearance: "solid",
61
- class: "bg-danger-idle text-neutral-label hover:bg-danger-hover active:bg-danger-pressed"
62
- },
63
- {
64
- variant: "destructive",
65
- appearance: "ghost",
66
- class: "text-danger-label-idle hover:bg-danger-alt-idle active:bg-danger-alt-pressed"
67
- }
68
- ],
69
- defaultVariants: {
70
- size: "md",
71
- variant: "primary",
72
- appearance: "solid"
73
- }
74
- }
75
- );
76
- function Button({
77
- asChild,
78
- className,
79
- variant = "primary",
80
- size = "md",
81
- appearance = "solid",
82
- ...props
83
- }) {
84
- const Component = asChild ? Slot : "button";
85
- return /* @__PURE__ */ jsx(
86
- Component,
87
- {
88
- className: buttonVariants({ className, variant, appearance, size }),
89
- ...props
90
- }
91
- );
92
- }
93
-
94
- // src/components/ui/icon.tsx
95
- import { cx } from "@xjur-ui/util";
96
- import { jsx as jsx2 } from "react/jsx-runtime";
97
- function Icon({ className, filled = false, name, ...props }) {
98
- return /* @__PURE__ */ jsx2(
99
- "span",
100
- {
101
- ...props,
102
- className: cx(
103
- "material-symbols-outlined",
104
- "text-size-body-lg text-icon-neutral-3",
105
- className
106
- ),
107
- style: {
108
- fontVariationSettings: `'FILL' ${filled ? 1 : 0}, 'wght' 600, 'GRAD' 0, 'opsz' 20`,
109
- ...props.style
110
- },
111
- children: name
112
- }
113
- );
114
- }
115
-
116
- // src/components/ui/typography.tsx
117
- import { Slot as Slot2 } from "@radix-ui/react-slot";
118
- import { cva as cva2 } from "@xjur-ui/util";
119
- import { memo } from "react";
120
- import { jsx as jsx3 } from "react/jsx-runtime";
121
- var typographyVariants = cva2("", {
122
- variants: {
123
- variant: {
124
- body: "",
125
- label: "",
126
- title: "",
127
- headline: ""
128
- },
129
- size: {
130
- "sm-2x": "",
131
- "sm-1x": "",
132
- sm: "",
133
- md: "",
134
- lg: ""
135
- },
136
- weight: {
137
- thin: "font-thin",
138
- extraLight: "font-extralight",
139
- light: "font-light",
140
- normal: "font-normal",
141
- medium: "font-medium",
142
- semibold: "font-semibold",
143
- bold: "font-bold",
144
- extraBold: "font-extrabold",
145
- black: "font-black"
146
- }
147
- },
148
- compoundVariants: [
149
- { variant: "body", size: "sm-1x", class: "text-size-body-sm-1x" },
150
- { variant: "body", size: "sm", class: "text-size-body-sm" },
151
- { variant: "body", size: "md", class: "text-size-body-md" },
152
- { variant: "body", size: "lg", class: "text-size-body-lg" },
153
- { variant: "label", size: "sm-2x", class: "text-size-label-sm-2x" },
154
- { variant: "label", size: "sm-1x", class: "text-size-label-sm-1x" },
155
- { variant: "label", size: "sm", class: "text-size-label-sm" },
156
- { variant: "label", size: "md", class: "text-size-label-md" },
157
- { variant: "label", size: "lg", class: "text-size-label-lg" },
158
- { variant: "title", size: "sm", class: "text-size-title-sm" },
159
- { variant: "title", size: "md", class: "text-size-title-md" },
160
- { variant: "title", size: "lg", class: "text-size-title-lg" },
161
- { variant: "headline", size: "sm", class: "text-size-headline-sm" },
162
- { variant: "headline", size: "md", class: "text-size-headline-md" },
163
- { variant: "headline", size: "lg", class: "text-size-headline-lg" }
164
- ],
165
- defaultVariants: {
166
- variant: "body",
167
- size: "md",
168
- weight: "normal"
169
- }
170
- });
171
- var Typography = memo(
172
- ({
173
- variant,
174
- size,
175
- weight,
176
- asChild,
177
- className,
178
- ...props
179
- }) => {
180
- const Component = asChild ? Slot2 : "span";
181
- return /* @__PURE__ */ jsx3(
182
- Component,
183
- {
184
- className: typographyVariants({ variant, size, weight, className }),
185
- ...props
186
- }
187
- );
188
- }
189
- );
190
- Typography.displayName = "Typography";
191
-
192
- // src/components/ui/logo.tsx
193
- import { memo as memo2 } from "react";
194
-
195
- // src/components/resources/logo/horizontal.tsx
196
- import { jsx as jsx4, jsxs } from "react/jsx-runtime";
197
- function LogoHorizontalSolid({ color }) {
198
- return /* @__PURE__ */ jsxs(
199
- "svg",
200
- {
201
- fill: "none",
202
- height: "26",
203
- viewBox: "0 0 95 26",
204
- width: "95",
205
- xmlns: "http://www.w3.org/2000/svg",
206
- children: [
207
- /* @__PURE__ */ jsx4(
208
- "path",
209
- {
210
- d: "M89.14 14.625c4.756-1.796 4.739-9.325-.024-11.12-.943-.407-1.952-.497-2.966-.498-3.344.002-6.687-.02-10.03.006v19.822h4.902c0-2.47.002-4.937-.004-7.406 0-.174.05-.221.22-.22q1.266.013 2.53 0c.168-.002.252.06.33.2 1.38 2.426 2.764 4.849 4.142 7.275.068.118.139.167.278.167 1.841-.017 3.68.02 5.52-.017zm-2.579-3.982c-.225.048-.459.068-.689.07-1.555.006-3.11.002-4.666.006-.135 0-.188-.032-.187-.178q.009-1.413 0-2.824c-.001-.157.06-.187.199-.186.843.004 4.203.007 5.04.032.713.022 1.356.523 1.538 1.137.253.858-.3 1.74-1.235 1.943M31.777 3.004 37.552 3c.148 0 .234.045.316.17l3.522 5.338 3.517-5.33c.085-.13.173-.179.329-.178l5.773.004-6.624 9.203c-.103.143-.096.231.003.37l7.378 10.28-5.919-.001c-.126 0-.19-.05-.254-.148l-4.2-6.408-4.17 6.378c-.084.13-.172.179-.328.178l-5.857-.004 7.34-10.253c.12-.167.109-.268-.007-.429zM62.469 3.008c.097 0 .176.08.176.177l.002 10.278c.003 1.018.184 2.003.671 2.912.782 1.455 2.111 2.006 3.593 1.862 1.715-.167 2.672-1.224 3.179-2.785.223-.688.27-1.4.27-2.118V3.131a.13.13 0 0 1 .13-.13h4.663a.13.13 0 0 1 .13.13l-.008 10.222c-.001 1.362-.152 2.7-.658 3.977-1.235 3.11-3.488 4.956-6.804 5.42-2.05.287-4.02-.017-5.826-1.077-2.034-1.193-3.267-3-3.895-5.25a9.4 9.4 0 0 1-.355-2.487l-.03-10.759c0-.097.08-.177.176-.177z",
211
- fill: color
212
- }
213
- ),
214
- /* @__PURE__ */ jsx4(
215
- "path",
216
- {
217
- d: "M49.388 17.806c.156.038.286.074.418.1 1.007.192 1.877-.428 2.01-1.451a9 9 0 0 0 .062-1.158l.003-12.146a.15.15 0 0 1 .151-.15l4.62.003c.074 0 .133.059.133.132l.001 12.168c-.003 1.002-.06 2.002-.387 2.963q-.946 2.777-3.602 4.006c-.102.047-.171.065-.253-.049z",
218
- fill: color
219
- }
220
- ),
221
- /* @__PURE__ */ jsx4(
222
- "path",
223
- {
224
- d: "m17.777 14.363 1.2-1.202c1.55 1.507 3.065 3.055 4.602 4.575 1.843 1.641 2.048 4.679.097 6.314-5.965 4.847-8.34-7.021-12.57-4.062-.899.72-1.69 1.553-2.48 2.385-1.048 1.08-1.954 2.45-3.557 2.656-3.952 1.004-6.748-4.05-3.903-6.918l3.407-3.328c.35-.26.81-.352 1.165-.018.417.392.277.926-.116 1.285l-3.397 3.48c-1.63 1.999.894 4.833 3.025 3.558 1.463-.762 2.435-2.146 3.59-3.281 3.38-3.854 5.97-1.74 8.775 1.338.49.484.948 1.002 1.444 1.481 2.533 2.454 5.9-1.151 3.424-3.583-1.553-1.575-3.15-3.109-4.705-4.68",
225
- fill: color
226
- }
227
- ),
228
- /* @__PURE__ */ jsx4(
229
- "path",
230
- {
231
- d: "m3.574 9.428 1.14-1.143c.033.03 4.257 4.125 6.292 6.16.727.726 2.33.753 3.076-.013a904 904 0 0 1 8.545-8.636c2.063-2.027-.76-5.235-3.012-3.66-1.39 1.015-2.487 2.386-3.73 3.572-.278.28-.616.346-.939.187-.446-.21-.656-.841-.315-1.233 1.02-1.254 2.223-2.348 3.38-3.473 2.646-2.616 7.385-.512 7.067 3.199-.025 1.1-.461 2.04-1.235 2.803-2.895 2.857-5.81 5.695-8.7 8.555-.556.55-1.19.873-1.953.964-1.043.125-2.026-.05-2.917-.623-2.016-1.666-6.558-6.62-6.7-6.66z",
232
- fill: color
233
- }
234
- ),
235
- /* @__PURE__ */ jsx4(
236
- "path",
237
- {
238
- d: "m16.59 10.646-1.193 1.2C12.49 8.736 9.357 5.85 6.349 2.84c-.439-.434-.9-.835-1.504-1.019-2.141-.718-4.149 2.184-2.573 3.9A32 32 0 0 0 4.135 7.6L2.898 8.812c-.572-.53-1.108-1.146-1.677-1.686-3.32-3.144.723-9.057 5.037-6.503.39.226.764.51 1.085.83 3.11 3.03 6.105 6.21 9.247 9.192",
239
- fill: color
240
- }
241
- )
242
- ]
243
- }
244
- );
245
- }
246
- function LogoHorizontalColorful() {
247
- return /* @__PURE__ */ jsxs(
248
- "svg",
249
- {
250
- fill: "none",
251
- height: "26",
252
- viewBox: "0 0 95 26",
253
- width: "95",
254
- xmlns: "http://www.w3.org/2000/svg",
255
- children: [
256
- /* @__PURE__ */ jsx4(
257
- "path",
258
- {
259
- d: "M89.14 14.625c4.756-1.796 4.739-9.325-.024-11.12-.943-.407-1.952-.497-2.966-.498-3.344.002-6.687-.02-10.03.006v19.822h4.902c0-2.47.002-4.937-.004-7.406 0-.174.05-.221.22-.22q1.266.013 2.53 0c.168-.002.252.06.33.2 1.38 2.426 2.764 4.849 4.142 7.275.068.118.139.167.278.167 1.841-.017 3.68.02 5.52-.017zm-2.579-3.982c-.225.048-.459.068-.689.07-1.555.006-3.11.002-4.666.006-.135 0-.188-.032-.187-.178q.009-1.413 0-2.824c-.001-.157.06-.187.199-.186.843.004 4.203.007 5.04.032.713.022 1.356.523 1.538 1.137.253.858-.3 1.74-1.235 1.943M31.777 3.004 37.552 3c.148 0 .234.045.316.17l3.522 5.338 3.517-5.33c.085-.13.173-.179.329-.178l5.773.004-6.624 9.203c-.103.143-.096.231.003.37l7.378 10.28-5.919-.001c-.126 0-.19-.05-.254-.148l-4.2-6.408-4.17 6.378c-.084.13-.172.179-.328.178l-5.857-.004 7.34-10.253c.12-.167.109-.268-.007-.429zM62.469 3.008c.097 0 .176.08.176.177l.002 10.278c.003 1.018.184 2.003.671 2.912.782 1.455 2.111 2.006 3.593 1.862 1.715-.167 2.672-1.224 3.179-2.785.223-.688.27-1.4.27-2.118V3.131a.13.13 0 0 1 .13-.13h4.663a.13.13 0 0 1 .13.13l-.008 10.222c-.001 1.362-.152 2.7-.658 3.977-1.235 3.11-3.488 4.956-6.804 5.42-2.05.287-4.02-.017-5.826-1.077-2.034-1.193-3.267-3-3.895-5.25a9.4 9.4 0 0 1-.355-2.487l-.03-10.759c0-.097.08-.177.176-.177z",
260
- fill: "#504E50"
261
- }
262
- ),
263
- /* @__PURE__ */ jsx4(
264
- "path",
265
- {
266
- d: "M49.388 17.806c.156.038.286.074.418.1 1.007.192 1.877-.428 2.01-1.451a9 9 0 0 0 .062-1.158l.003-12.146a.15.15 0 0 1 .151-.15l4.62.003c.074 0 .133.059.133.132l.001 12.168c-.003 1.002-.06 2.002-.387 2.963q-.946 2.777-3.602 4.006c-.102.047-.171.065-.253-.049z",
267
- fill: "#504E50"
268
- }
269
- ),
270
- /* @__PURE__ */ jsx4(
271
- "path",
272
- {
273
- d: "m17.777 14.363 1.2-1.202c1.55 1.507 3.065 3.055 4.602 4.575 1.843 1.641 2.048 4.679.097 6.314-5.965 4.847-8.34-7.021-12.57-4.062-.899.72-1.69 1.553-2.48 2.385-1.048 1.08-1.954 2.45-3.557 2.656-3.952 1.004-6.748-4.05-3.903-6.918l3.407-3.328c.35-.26.81-.352 1.165-.018.417.392.277.926-.116 1.285l-3.397 3.48c-1.63 1.999.894 4.833 3.025 3.558 1.463-.762 2.435-2.146 3.59-3.281 3.38-3.854 5.97-1.74 8.775 1.338.49.484.948 1.002 1.444 1.481 2.533 2.454 5.9-1.151 3.424-3.583-1.553-1.575-3.15-3.109-4.705-4.68",
274
- fill: "#D68600"
275
- }
276
- ),
277
- /* @__PURE__ */ jsx4(
278
- "path",
279
- {
280
- d: "m3.574 9.428 1.14-1.143c.033.03 4.257 4.125 6.292 6.16.727.726 2.33.753 3.076-.013a904 904 0 0 1 8.545-8.636c2.063-2.027-.76-5.235-3.012-3.66-1.39 1.015-2.487 2.386-3.73 3.572-.278.28-.616.346-.939.187-.446-.21-.656-.841-.315-1.233 1.02-1.254 2.223-2.348 3.38-3.473 2.646-2.616 7.385-.512 7.067 3.199-.025 1.1-.461 2.04-1.235 2.803-2.895 2.857-5.81 5.695-8.7 8.555-.556.55-1.19.873-1.953.964-1.043.125-2.026-.05-2.917-.623-2.016-1.666-6.558-6.62-6.7-6.66z",
281
- fill: "#66127D"
282
- }
283
- ),
284
- /* @__PURE__ */ jsx4(
285
- "path",
286
- {
287
- d: "m16.59 10.646-1.193 1.2C12.49 8.736 9.357 5.85 6.349 2.84c-.439-.434-.9-.835-1.504-1.019-2.141-.718-4.149 2.184-2.573 3.9A32 32 0 0 0 4.135 7.6L2.898 8.812c-.572-.53-1.108-1.146-1.677-1.686-3.32-3.144.723-9.057 5.037-6.503.39.226.764.51 1.085.83 3.11 3.03 6.105 6.21 9.247 9.192",
288
- fill: "#D68600"
289
- }
290
- )
291
- ]
292
- }
293
- );
294
- }
295
- var Horizontal = {
296
- Solid: LogoHorizontalSolid,
297
- Colorful: LogoHorizontalColorful
298
- };
299
-
300
- // src/components/resources/logo/vertical.tsx
301
- import { jsx as jsx5, jsxs as jsxs2 } from "react/jsx-runtime";
302
- function LogoVerticalSolid({ color }) {
303
- return /* @__PURE__ */ jsxs2(
304
- "svg",
305
- {
306
- fill: "none",
307
- height: "50",
308
- viewBox: "0 0 63 50",
309
- width: "63",
310
- xmlns: "http://www.w3.org/2000/svg",
311
- children: [
312
- /* @__PURE__ */ jsx5(
313
- "path",
314
- {
315
- d: "M58.102 41.769c4.755-1.796 4.738-9.325-.024-11.12-.943-.407-1.952-.497-2.966-.498-3.344.002-6.688-.02-10.03.006V49.98h4.901c0-2.47.002-4.937-.004-7.406 0-.174.051-.221.221-.22q1.265.014 2.53 0c.168-.002.251.06.33.2 1.379 2.426 2.763 4.85 4.142 7.275.067.118.138.167.277.167 1.842-.017 3.68.02 5.52-.017zm-2.58-3.982c-.224.048-.459.068-.688.07-1.556.006-3.111.002-4.667.006-.134 0-.188-.032-.187-.178q.01-1.412 0-2.824c0-.157.06-.187.2-.186.842.005 4.203.008 5.038.033.714.02 1.357.522 1.54 1.136.253.858-.301 1.74-1.235 1.943M.739 30.148l5.775-.003c.148 0 .234.044.315.169l3.523 5.338 3.516-5.33c.085-.13.173-.178.33-.178l5.772.004-6.623 9.204c-.103.142-.097.23.003.368L20.727 50H14.81c-.127 0-.19-.05-.255-.148l-4.199-6.408-4.17 6.378c-.084.13-.172.179-.329.178L0 49.996l7.34-10.253c.12-.167.108-.268-.008-.429zM31.43 30.153c.097 0 .176.079.176.176l.003 10.278c.002 1.018.183 2.004.67 2.912.782 1.455 2.111 2.006 3.593 1.862 1.715-.167 2.673-1.224 3.18-2.785.223-.688.27-1.4.27-2.118V30.275a.13.13 0 0 1 .13-.13h4.662a.13.13 0 0 1 .13.13l-.008 10.223c0 1.361-.151 2.7-.658 3.976-1.235 3.11-3.488 4.956-6.804 5.42-2.05.287-4.019-.017-5.826-1.077-2.034-1.193-3.267-3-3.894-5.25a9.4 9.4 0 0 1-.356-2.487l-.03-10.758c0-.098.08-.177.177-.177l4.586.007",
316
- fill: color
317
- }
318
- ),
319
- /* @__PURE__ */ jsx5(
320
- "path",
321
- {
322
- d: "M18.35 44.95c.155.038.285.074.417.1 1.008.192 1.878-.428 2.01-1.451a9 9 0 0 0 .063-1.158l.003-12.146a.15.15 0 0 1 .15-.15l4.621.003c.073 0 .133.06.133.132v12.168c-.002 1.002-.06 2.003-.387 2.963-.631 1.85-1.83 3.188-3.602 4.006-.102.047-.17.066-.252-.049z",
323
- fill: color
324
- }
325
- ),
326
- /* @__PURE__ */ jsx5(
327
- "path",
328
- {
329
- d: "m36.738 14.363 1.201-1.202c1.549 1.507 3.065 3.055 4.602 4.575 1.843 1.641 2.047 4.679.096 6.314-5.965 4.847-8.34-7.021-12.57-4.062-.898.72-1.69 1.553-2.48 2.385-1.047 1.08-1.954 2.45-3.557 2.656-3.952 1.004-6.748-4.05-3.903-6.918l3.407-3.328c.35-.26.81-.352 1.165-.018.418.392.277.926-.116 1.285l-3.397 3.48c-1.63 1.999.894 4.833 3.025 3.558 1.463-.762 2.435-2.146 3.59-3.281 3.38-3.854 5.97-1.74 8.775 1.338.49.484.949 1.002 1.444 1.481 2.533 2.454 5.9-1.151 3.424-3.583-1.553-1.575-3.15-3.109-4.705-4.68",
330
- fill: color
331
- }
332
- ),
333
- /* @__PURE__ */ jsx5(
334
- "path",
335
- {
336
- d: "m22.535 9.428 1.14-1.143c.033.03 4.257 4.125 6.292 6.16.727.726 2.33.753 3.077-.013a904 904 0 0 1 8.544-8.636c2.063-2.027-.76-5.235-3.012-3.66-1.39 1.015-2.487 2.386-3.73 3.572-.278.28-.616.346-.938.187-.447-.21-.657-.841-.316-1.233 1.02-1.254 2.223-2.348 3.38-3.473 2.646-2.616 7.386-.512 7.068 3.199-.026 1.1-.462 2.04-1.236 2.803-2.895 2.857-5.81 5.695-8.7 8.555-.556.55-1.19.873-1.953.964-1.043.125-2.026-.05-2.917-.623-2.016-1.666-6.558-6.62-6.699-6.66",
337
- fill: color
338
- }
339
- ),
340
- /* @__PURE__ */ jsx5(
341
- "path",
342
- {
343
- d: "m35.55 10.646-1.192 1.2c-2.907-3.11-6.04-5.997-9.047-9.007-.44-.434-.901-.835-1.505-1.019-2.141-.718-4.149 2.184-2.573 3.9a32 32 0 0 0 1.863 1.88l-1.237 1.213c-.572-.53-1.108-1.146-1.676-1.686-3.32-3.144.722-9.057 5.036-6.503.39.226.764.51 1.085.83 3.11 3.03 6.105 6.21 9.247 9.192",
344
- fill: color
345
- }
346
- )
347
- ]
348
- }
349
- );
350
- }
351
- function LogoVerticalColorful() {
352
- return /* @__PURE__ */ jsxs2(
353
- "svg",
354
- {
355
- fill: "none",
356
- height: "50",
357
- viewBox: "0 0 63 50",
358
- width: "63",
359
- xmlns: "http://www.w3.org/2000/svg",
360
- children: [
361
- /* @__PURE__ */ jsx5(
362
- "path",
363
- {
364
- d: "M58.102 41.769c4.755-1.796 4.738-9.325-.024-11.12-.943-.407-1.952-.497-2.966-.498-3.344.002-6.688-.02-10.03.006V49.98h4.901c0-2.47.002-4.937-.004-7.406 0-.174.051-.221.221-.22q1.265.014 2.53 0c.168-.002.251.06.33.2 1.379 2.426 2.763 4.85 4.142 7.275.067.118.138.167.277.167 1.842-.017 3.68.02 5.52-.017zm-2.58-3.982c-.224.048-.459.068-.688.07-1.556.006-3.111.002-4.667.006-.134 0-.188-.032-.187-.178q.01-1.412 0-2.824c0-.157.06-.187.2-.186.842.005 4.203.008 5.038.033.714.02 1.357.522 1.54 1.136.253.858-.301 1.74-1.235 1.943M.739 30.148l5.775-.003c.148 0 .234.044.315.169l3.523 5.338 3.516-5.33c.085-.13.173-.178.33-.178l5.772.004-6.623 9.204c-.103.142-.097.23.003.368L20.727 50H14.81c-.127 0-.19-.05-.255-.148l-4.199-6.408-4.17 6.378c-.084.13-.172.179-.329.178L0 49.996l7.34-10.253c.12-.167.108-.268-.008-.429zM31.43 30.153c.097 0 .176.079.176.176l.003 10.278c.002 1.018.183 2.004.67 2.912.782 1.455 2.111 2.006 3.593 1.862 1.715-.167 2.673-1.224 3.18-2.785.223-.688.27-1.4.27-2.118V30.275a.13.13 0 0 1 .13-.13h4.662a.13.13 0 0 1 .13.13l-.008 10.223c0 1.361-.151 2.7-.658 3.976-1.235 3.11-3.488 4.956-6.804 5.42-2.05.287-4.019-.017-5.826-1.077-2.034-1.193-3.267-3-3.894-5.25a9.4 9.4 0 0 1-.356-2.487l-.03-10.758c0-.098.08-.177.177-.177l4.586.007",
365
- fill: "#504E50"
366
- }
367
- ),
368
- /* @__PURE__ */ jsx5(
369
- "path",
370
- {
371
- d: "M18.35 44.95c.155.038.285.074.417.1 1.008.192 1.878-.428 2.01-1.451a9 9 0 0 0 .063-1.158l.003-12.146a.15.15 0 0 1 .15-.15l4.621.003c.073 0 .133.06.133.132v12.168c-.002 1.002-.06 2.003-.387 2.963-.631 1.85-1.83 3.188-3.602 4.006-.102.047-.17.066-.252-.049z",
372
- fill: "#504E50"
373
- }
374
- ),
375
- /* @__PURE__ */ jsx5(
376
- "path",
377
- {
378
- d: "m36.738 14.363 1.201-1.202c1.549 1.507 3.065 3.055 4.602 4.575 1.843 1.641 2.047 4.679.096 6.314-5.965 4.847-8.34-7.021-12.57-4.062-.898.72-1.69 1.553-2.48 2.385-1.047 1.08-1.954 2.45-3.557 2.656-3.952 1.004-6.748-4.05-3.903-6.918l3.407-3.328c.35-.26.81-.352 1.165-.018.418.392.277.926-.116 1.285l-3.397 3.48c-1.63 1.999.894 4.833 3.025 3.558 1.463-.762 2.435-2.146 3.59-3.281 3.38-3.854 5.97-1.74 8.775 1.338.49.484.949 1.002 1.444 1.481 2.533 2.454 5.9-1.151 3.424-3.583-1.553-1.575-3.15-3.109-4.705-4.68",
379
- fill: "#D68600"
380
- }
381
- ),
382
- /* @__PURE__ */ jsx5(
383
- "path",
384
- {
385
- d: "m22.535 9.428 1.14-1.143c.033.03 4.257 4.125 6.292 6.16.727.726 2.33.753 3.077-.013a904 904 0 0 1 8.544-8.636c2.063-2.027-.76-5.235-3.012-3.66-1.39 1.015-2.487 2.386-3.73 3.572-.278.28-.616.346-.938.187-.447-.21-.657-.841-.316-1.233 1.02-1.254 2.223-2.348 3.38-3.473 2.646-2.616 7.386-.512 7.068 3.199-.026 1.1-.462 2.04-1.236 2.803-2.895 2.857-5.81 5.695-8.7 8.555-.556.55-1.19.873-1.953.964-1.043.125-2.026-.05-2.917-.623-2.016-1.666-6.558-6.62-6.699-6.66",
386
- fill: "#66127D"
387
- }
388
- ),
389
- /* @__PURE__ */ jsx5(
390
- "path",
391
- {
392
- d: "m35.55 10.646-1.192 1.2c-2.907-3.11-6.04-5.997-9.047-9.007-.44-.434-.901-.835-1.505-1.019-2.141-.718-4.149 2.184-2.573 3.9a32 32 0 0 0 1.863 1.88l-1.237 1.213c-.572-.53-1.108-1.146-1.676-1.686-3.32-3.144.722-9.057 5.036-6.503.39.226.764.51 1.085.83 3.11 3.03 6.105 6.21 9.247 9.192",
393
- fill: "#D68600"
394
- }
395
- )
396
- ]
397
- }
398
- );
399
- }
400
- var Vertical = {
401
- Solid: LogoVerticalSolid,
402
- Colorful: LogoVerticalColorful
403
- };
404
-
405
- // src/components/resources/logo/icon.tsx
406
- import { jsx as jsx6, jsxs as jsxs3 } from "react/jsx-runtime";
407
- function LogoIconSolid({ color }) {
408
- return /* @__PURE__ */ jsxs3(
409
- "svg",
410
- {
411
- fill: "none",
412
- height: "26",
413
- viewBox: "0 0 26 26",
414
- width: "26",
415
- xmlns: "http://www.w3.org/2000/svg",
416
- children: [
417
- /* @__PURE__ */ jsx6(
418
- "path",
419
- {
420
- d: "M17.7771 14.3626C18.1813 13.9583 18.5751 13.5644 18.9779 13.1612C20.5269 14.6679 22.0424 16.2157 23.5793 17.7363C25.4224 19.377 25.6267 22.4146 23.6763 24.05C17.7108 28.8974 15.3367 17.0285 11.1052 19.9875C10.2073 20.7081 9.41678 21.5407 8.62623 22.3732C7.57834 23.4534 6.67195 24.8221 5.06874 25.0287C1.11705 26.0331 -1.6791 20.9798 1.16588 18.1112L4.57331 14.783C4.92332 14.5238 5.3824 14.4309 5.73811 14.7651C6.15548 15.1572 6.01505 15.6913 5.62227 16.0498L2.22482 19.5303C0.594533 21.5289 3.1191 24.3635 5.24981 23.0884C6.71294 22.3263 7.68491 20.9423 8.83937 19.8066C12.2197 15.9533 14.8099 18.0669 17.6149 21.1446C18.1057 21.629 18.5634 22.1473 19.0588 22.6262C21.5923 25.0802 24.9591 21.4749 22.483 19.0431C20.9304 17.4682 19.3333 15.934 17.7778 14.3623L17.7771 14.3626Z",
421
- fill: color
422
- }
423
- ),
424
- /* @__PURE__ */ jsx6(
425
- "path",
426
- {
427
- d: "M3.57427 9.4276C3.95493 9.0462 4.32775 8.6723 4.71412 8.28518C4.74727 8.31556 8.97055 12.4102 11.0061 14.4445C11.7332 15.1712 13.3361 15.1983 14.0824 14.4316C16.9146 11.5384 19.7567 8.64943 22.6266 5.79551C24.6903 3.76946 21.8667 0.560949 19.6148 2.13589C18.2244 3.15071 17.1277 4.52226 15.8856 5.70793C15.6072 5.98889 15.2689 6.05359 14.9464 5.89524C14.5001 5.68506 14.2898 5.05379 14.6306 4.66238C15.6517 3.40772 16.8543 2.31355 18.0116 1.18864C20.6567 -1.42721 25.3964 0.676765 25.0785 4.3875C25.0528 5.48881 24.6169 6.42749 23.8428 7.19137C20.9475 10.0478 18.0337 12.8856 15.1428 15.7463C14.5868 16.2964 13.9523 16.6185 13.1896 16.71C12.1474 16.8351 11.1644 16.6596 10.2729 16.0873C8.25735 14.4205 3.7147 9.46657 3.57391 9.4276H3.57427Z",
428
- fill: color
429
- }
430
- ),
431
- /* @__PURE__ */ jsx6(
432
- "path",
433
- {
434
- d: "M16.5895 10.6458C16.1661 11.0719 15.7865 11.454 15.3969 11.8461C12.4899 8.73665 9.35726 5.84949 6.34938 2.83865C5.91027 2.4047 5.44869 2.00399 4.84491 1.82026C2.70386 1.10178 0.696116 4.00359 2.27223 5.71973C2.86461 6.36815 3.49049 7.00228 4.13491 7.59923C3.71397 8.01244 3.31335 8.40564 2.89776 8.8135C2.32569 8.28304 1.78999 7.66679 1.22149 7.12667C-2.09897 3.98286 1.94361 -1.93015 6.25778 0.623506C6.64878 0.850132 7.0216 1.13431 7.3431 1.45316C10.4529 4.4833 13.4476 7.66321 16.5895 10.6458Z",
435
- fill: color
436
- }
437
- )
438
- ]
439
- }
440
- );
441
- }
442
- function LogoIconColorful() {
443
- return /* @__PURE__ */ jsxs3(
444
- "svg",
445
- {
446
- fill: "none",
447
- height: "26",
448
- viewBox: "0 0 26 26",
449
- width: "26",
450
- xmlns: "http://www.w3.org/2000/svg",
451
- children: [
452
- /* @__PURE__ */ jsx6(
453
- "path",
454
- {
455
- d: "M17.7771 14.3626C18.1813 13.9583 18.5751 13.5644 18.9779 13.1612C20.5269 14.6679 22.0424 16.2157 23.5793 17.7363C25.4224 19.377 25.6267 22.4146 23.6763 24.05C17.7108 28.8974 15.3367 17.0285 11.1052 19.9875C10.2073 20.7081 9.41678 21.5407 8.62623 22.3732C7.57834 23.4534 6.67195 24.8221 5.06874 25.0287C1.11705 26.0331 -1.6791 20.9798 1.16588 18.1112L4.57331 14.783C4.92332 14.5238 5.3824 14.4309 5.73811 14.7651C6.15548 15.1572 6.01505 15.6913 5.62227 16.0498L2.22482 19.5303C0.594533 21.5289 3.1191 24.3635 5.24981 23.0884C6.71294 22.3263 7.68491 20.9423 8.83937 19.8066C12.2197 15.9533 14.8099 18.0669 17.6149 21.1446C18.1057 21.629 18.5634 22.1473 19.0588 22.6262C21.5923 25.0802 24.9591 21.4749 22.483 19.0431C20.9304 17.4682 19.3333 15.934 17.7778 14.3623L17.7771 14.3626Z",
456
- fill: "#D68600"
457
- }
458
- ),
459
- /* @__PURE__ */ jsx6(
460
- "path",
461
- {
462
- d: "M3.57427 9.4276C3.95493 9.0462 4.32775 8.6723 4.71412 8.28518C4.74727 8.31556 8.97055 12.4102 11.0061 14.4445C11.7332 15.1712 13.3361 15.1983 14.0824 14.4316C16.9146 11.5384 19.7567 8.64943 22.6266 5.79551C24.6903 3.76946 21.8667 0.560949 19.6148 2.13589C18.2244 3.15071 17.1277 4.52226 15.8856 5.70793C15.6072 5.98889 15.2689 6.05359 14.9464 5.89524C14.5001 5.68506 14.2898 5.05379 14.6306 4.66238C15.6517 3.40772 16.8543 2.31355 18.0116 1.18864C20.6567 -1.42721 25.3964 0.676765 25.0785 4.3875C25.0528 5.48881 24.6169 6.42749 23.8428 7.19137C20.9475 10.0478 18.0337 12.8856 15.1428 15.7463C14.5868 16.2964 13.9523 16.6185 13.1896 16.71C12.1474 16.8351 11.1644 16.6596 10.2729 16.0873C8.25735 14.4205 3.7147 9.46657 3.57391 9.4276H3.57427Z",
463
- fill: "#66127D"
464
- }
465
- ),
466
- /* @__PURE__ */ jsx6(
467
- "path",
468
- {
469
- d: "M16.5895 10.6458C16.1661 11.0719 15.7865 11.454 15.3969 11.8461C12.4899 8.73665 9.35726 5.84949 6.34938 2.83865C5.91027 2.4047 5.44869 2.00399 4.84491 1.82026C2.70386 1.10178 0.696116 4.00359 2.27223 5.71973C2.86461 6.36815 3.49049 7.00228 4.13491 7.59923C3.71397 8.01244 3.31335 8.40564 2.89776 8.8135C2.32569 8.28304 1.78999 7.66679 1.22149 7.12667C-2.09897 3.98286 1.94361 -1.93015 6.25778 0.623506C6.64878 0.850132 7.0216 1.13431 7.3431 1.45316C10.4529 4.4833 13.4476 7.66321 16.5895 10.6458Z",
470
- fill: "#D68600"
471
- }
472
- )
473
- ]
474
- }
475
- );
476
- }
477
- var Icon2 = {
478
- Solid: LogoIconSolid,
479
- Colorful: LogoIconColorful
480
- };
481
-
482
- // src/components/ui/logo.tsx
483
- import { jsx as jsx7 } from "react/jsx-runtime";
484
- var Logo = memo2(
485
- ({ mode = "horizontal", variant = "colorful" }) => {
486
- const colorToHex = {
487
- orange: "#D68600",
488
- purple: "#66127D",
489
- white: "#FFFFFF",
490
- gray: "#6B7280"
491
- };
492
- switch (mode) {
493
- case "icon":
494
- if (variant === "colorful") {
495
- return /* @__PURE__ */ jsx7(Icon2.Colorful, {});
496
- }
497
- return /* @__PURE__ */ jsx7(Icon2.Solid, { color: colorToHex[variant] });
498
- case "vertical":
499
- if (variant === "colorful") {
500
- return /* @__PURE__ */ jsx7(Vertical.Colorful, {});
501
- }
502
- return /* @__PURE__ */ jsx7(Vertical.Solid, { color: colorToHex[variant] });
503
- case "horizontal":
504
- default:
505
- if (variant === "colorful") {
506
- return /* @__PURE__ */ jsx7(Horizontal.Colorful, {});
507
- }
508
- return /* @__PURE__ */ jsx7(Horizontal.Solid, { color: colorToHex[variant] });
509
- }
510
- }
511
- );
512
- Logo.displayName = "Logo";
513
-
514
- // src/components/ui/input/root.tsx
515
- import { createContext, use } from "react";
516
- import { cx as cx3 } from "@xjur-ui/util";
517
-
518
- // src/components/ui/input/message.tsx
519
- import { memo as memo3 } from "react";
520
- import { cx as cx2 } from "@xjur-ui/util";
521
- import { jsx as jsx8 } from "react/jsx-runtime";
522
- var InputMessage = memo3(
523
- ({
524
- children,
525
- className,
526
- weight = "normal",
527
- variant = "body",
528
- size = "sm-1x",
529
- ...props
530
- }) => {
531
- const { errorMessage } = useInput();
532
- return /* @__PURE__ */ jsx8(
533
- Typography,
534
- {
535
- className: cx2(
536
- "text-neutral-dark data-[error=true]:text-danger-idle",
537
- className
538
- ),
539
- "data-error": !!errorMessage,
540
- size,
541
- variant,
542
- weight,
543
- ...props,
544
- children
545
- }
546
- );
547
- }
548
- );
549
- InputMessage.displayName = "InputMessage";
550
-
551
- // src/components/ui/input/root.tsx
552
- import { jsx as jsx9, jsxs as jsxs4 } from "react/jsx-runtime";
553
- var InputRootContext = createContext({});
554
- function useInput() {
555
- const context = use(InputRootContext);
556
- if (!context) {
557
- throw new Error(
558
- "useInput must be called within <Input.Root> or <Select.Root>"
559
- );
560
- }
561
- return context;
562
- }
563
- function InputRoot({
564
- children,
565
- className,
566
- errorMessage,
567
- size = "lg",
568
- rounded = false,
569
- disabled,
570
- ...props
571
- }) {
572
- return /* @__PURE__ */ jsx9(
573
- InputRootContext.Provider,
574
- {
575
- value: { errorMessage, disabled, size, rounded },
576
- children: /* @__PURE__ */ jsxs4(
577
- "div",
578
- {
579
- ...props,
580
- className: cx3(
581
- "group gap-small relative flex flex-col data-[disabled=true]:opacity-60",
582
- className
583
- ),
584
- "data-disabled": disabled,
585
- children: [
586
- children,
587
- errorMessage && /* @__PURE__ */ jsx9(InputMessage, { children: errorMessage })
588
- ]
589
- }
590
- )
591
- }
592
- );
593
- }
594
-
595
- // src/components/ui/input/text.tsx
596
- import { InputMask } from "@react-input/mask";
597
- import { useCallback, useEffect, useRef } from "react";
598
- import { cx as cx4 } from "@xjur-ui/util";
599
- import { jsx as jsx10 } from "react/jsx-runtime";
600
- function InputText({
601
- className,
602
- value,
603
- mask,
604
- ...props
605
- }) {
606
- const { errorMessage } = useInput();
607
- const inputRef = useRef(null);
608
- const InputComponent = mask ? InputMask : "input";
609
- const onCheckInputFilled = useCallback(
610
- ({ shouldUnfill = false }) => {
611
- if (inputRef.current) {
612
- if (shouldUnfill) inputRef.current.dataset.filled = "false";
613
- else {
614
- const hasNotErrorAndHasValue = !errorMessage && !!inputRef.current.value;
615
- inputRef.current.dataset.filled = String(hasNotErrorAndHasValue);
616
- }
617
- }
618
- },
619
- [errorMessage]
620
- );
621
- function setRef(ref) {
622
- inputRef.current = ref;
623
- if (typeof props.ref === "function") {
624
- props.ref(ref);
625
- }
626
- }
627
- useEffect(() => {
628
- onCheckInputFilled({ shouldUnfill: false });
629
- }, [onCheckInputFilled]);
630
- return /* @__PURE__ */ jsx10(
631
- InputComponent,
632
- {
633
- ...props,
634
- ...mask && { ...mask },
635
- className: cx4(
636
- "h-full w-full bg-transparent",
637
- "border-hidden outline-hidden",
638
- "placeholder:text-placeholder-neutral font-normal",
639
- "text-neutral-dark text-size-body-md overflow-hidden text-ellipsis",
640
- className
641
- ),
642
- "data-filled": !!value && !errorMessage,
643
- readOnly: props.readOnly !== void 0 && props.readOnly,
644
- ref: setRef,
645
- value,
646
- onBlur: (event) => {
647
- props.onBlur?.(event);
648
- onCheckInputFilled({ shouldUnfill: false });
649
- },
650
- onFocus: (event) => {
651
- props.onFocus?.(event);
652
- onCheckInputFilled({ shouldUnfill: true });
653
- }
654
- }
655
- );
656
- }
657
-
658
- // src/components/ui/input/content.tsx
659
- import { cx as cx5, cva as cva3 } from "@xjur-ui/util";
660
- import { jsx as jsx11 } from "react/jsx-runtime";
661
- var variants = cva3(
662
- [
663
- "flex items-center gap-small py-small_1x-alt px-small",
664
- "border-1 border-border-layer-2",
665
- "bg-layer-2-idle",
666
- "group-hover:border-border-layer-3",
667
- "transition-[border-color] duration-100 ease",
668
- "data-[disabled=true]:pointer-events-none",
669
- "has-[input[data-filled=true]]:bg-layer-2-hover"
670
- ],
671
- {
672
- variants: {
673
- isError: {
674
- true: "border-1 border-danger-idle focus-within:border-danger-idle focus-within:shadow-focus-danger group-hover:border-danger-idle",
675
- false: "focus-within:border-primary-idle focus-within:shadow-focus-primary"
676
- },
677
- rounded: {
678
- true: "rounded-circle",
679
- false: "rounded-small-1x"
680
- }
681
- },
682
- defaultVariants: {
683
- rounded: false
684
- }
685
- }
686
- );
687
- function InputContent({
688
- className,
689
- children,
690
- ...props
691
- }) {
692
- const { errorMessage, rounded, disabled } = useInput();
693
- const classNames = variants({
694
- className,
695
- isError: !!errorMessage,
696
- rounded
697
- });
698
- return /* @__PURE__ */ jsx11(
699
- "div",
700
- {
701
- ...props,
702
- className: cx5("group", classNames),
703
- "data-disabled": disabled,
704
- children
705
- }
706
- );
707
- }
708
-
709
- // src/components/ui/input/slot.tsx
710
- import { memo as memo4 } from "react";
711
- import { cx as cx6 } from "@xjur-ui/util";
712
- import { jsx as jsx12 } from "react/jsx-runtime";
713
- var InputSlot = memo4(
714
- ({ children, className, ...props }) => {
715
- return /* @__PURE__ */ jsx12(
716
- "label",
717
- {
718
- ...props,
719
- className: cx6("flex items-center justify-center", className),
720
- children
721
- }
722
- );
723
- }
724
- );
725
- InputSlot.displayName = "InputSlot";
726
-
727
- // src/components/ui/otp-input.tsx
728
- import * as OTPPasswordField from "@radix-ui/react-one-time-password-field";
729
- import { cx as cx7 } from "@xjur-ui/util";
730
- import { jsx as jsx13 } from "react/jsx-runtime";
731
- function Root2({
732
- children,
733
- className,
734
- ...props
735
- }) {
736
- return /* @__PURE__ */ jsx13(
737
- OTPPasswordField.Root,
738
- {
739
- className: cx7(className, "group gap-small flex items-center"),
740
- ...props,
741
- children
742
- }
743
- );
744
- }
745
- function Input2({
746
- className,
747
- ...props
748
- }) {
749
- return /* @__PURE__ */ jsx13(
750
- OTPPasswordField.Input,
751
- {
752
- className: cx7(
753
- className,
754
- "text-neutral-dark h-large-6x bg-layer-2-hover rounded-small-1x w-full text-center outline-0",
755
- "focus-within:border-primary-idle focus-within:shadow-focus-primary focus-within:border"
756
- ),
757
- ...props
758
- }
759
- );
760
- }
761
- function HiddenInput2({
762
- ...props
763
- }) {
764
- return /* @__PURE__ */ jsx13(OTPPasswordField.HiddenInput, { ...props });
765
- }
766
- var OTPInput = {
767
- Root: Root2,
768
- Input: Input2,
769
- HiddenInput: HiddenInput2
770
- };
771
-
772
- // src/components/ui/accordion.tsx
773
- import { jsx as jsx14 } from "react/jsx-runtime";
774
- function Accordion() {
775
- return /* @__PURE__ */ jsx14("div", { children: "Accordion Test" });
776
- }
777
- export {
778
- Accordion,
779
- Button,
780
- Icon,
781
- InputContent,
782
- InputRoot,
783
- InputSlot,
784
- InputText,
785
- Logo,
786
- OTPInput,
787
- Typography
788
- };