@sikka/hawa 0.26.3-next → 0.26.5-next
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/blocks/auth/index.js +4 -2
- package/dist/blocks/auth/index.mjs +4 -2
- package/dist/blocks/feedback/index.js +68 -60
- package/dist/blocks/feedback/index.mjs +5 -3
- package/dist/blocks/index.js +72 -62
- package/dist/blocks/index.mjs +8 -4
- package/dist/blocks/misc/index.js +41 -28
- package/dist/blocks/misc/index.mjs +1 -1
- package/dist/blocks/pricing/index.js +24 -31
- package/dist/blocks/pricing/index.mjs +1 -1
- package/dist/chunk-LT3VHLAG.mjs +70 -0
- package/dist/{chunk-2UQWMSFQ.mjs → chunk-M2ZS3EDT.mjs} +24 -31
- package/dist/{chunk-I7I5JJHC.mjs → chunk-SUS6O2PO.mjs} +65 -59
- package/dist/codeBlock/index.js +41 -28
- package/dist/codeBlock/index.mjs +41 -28
- package/dist/elements/index.d.mts +3 -0
- package/dist/elements/index.d.ts +3 -0
- package/dist/elements/index.js +65 -59
- package/dist/elements/index.mjs +1 -1
- package/dist/index.d.mts +3 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +72 -62
- package/dist/index.mjs +72 -62
- package/dist/interfaceSettings/index.js +24 -31
- package/dist/interfaceSettings/index.mjs +24 -31
- package/dist/radio/index.js +24 -31
- package/dist/radio/index.mjs +24 -31
- package/dist/signature/index.js +1 -1
- package/dist/signature/index.mjs +1 -1
- package/dist/textarea/index.d.mts +3 -0
- package/dist/textarea/index.d.ts +3 -0
- package/dist/textarea/index.js +41 -28
- package/dist/textarea/index.mjs +41 -28
- package/package.json +4 -4
- package/dist/blocks/feedback/index.css +0 -5
- package/dist/blocks/index.css +0 -5
- package/dist/blocks/misc/index.css +0 -5
- package/dist/chunk-2XKXPVD3.mjs +0 -57
- package/dist/codeBlock/index.css +0 -5
- package/dist/elements/index.css +0 -5
- package/dist/textarea/index.css +0 -5
package/dist/radio/index.mjs
CHANGED
|
@@ -187,45 +187,38 @@ var Radio = ({
|
|
|
187
187
|
))
|
|
188
188
|
);
|
|
189
189
|
case "bordered":
|
|
190
|
-
return /* @__PURE__ */ React3.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React3.createElement(
|
|
190
|
+
return /* @__PURE__ */ React3.createElement("div", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, props.options && props.options.map((opt, i) => /* @__PURE__ */ React3.createElement("div", { key: i, className: "hawa-w-full hawa-rounded hawa-border" }, /* @__PURE__ */ React3.createElement(
|
|
191
191
|
"div",
|
|
192
192
|
{
|
|
193
|
-
|
|
194
|
-
|
|
193
|
+
className: cn(
|
|
194
|
+
"radio-item radio-item-bordered hawa-flex hawa-items-center hawa-transition-all",
|
|
195
|
+
props.direction === "rtl" ? "margin-left right-19px" : "margin-right left-23px"
|
|
196
|
+
),
|
|
197
|
+
key: i + 1
|
|
195
198
|
},
|
|
196
199
|
/* @__PURE__ */ React3.createElement(
|
|
197
|
-
"
|
|
200
|
+
"input",
|
|
201
|
+
{
|
|
202
|
+
disabled: opt.disabled,
|
|
203
|
+
id: opt.value.toString(),
|
|
204
|
+
type: "radio",
|
|
205
|
+
value: opt.value,
|
|
206
|
+
name,
|
|
207
|
+
onChange: () => handleChange(opt)
|
|
208
|
+
}
|
|
209
|
+
),
|
|
210
|
+
/* @__PURE__ */ React3.createElement(
|
|
211
|
+
"label",
|
|
198
212
|
{
|
|
213
|
+
htmlFor: opt.value.toString(),
|
|
199
214
|
className: cn(
|
|
200
|
-
"
|
|
201
|
-
|
|
202
|
-
)
|
|
203
|
-
key: i + 1
|
|
215
|
+
"hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium hawa-text-black dark:hawa-text-white",
|
|
216
|
+
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
|
217
|
+
)
|
|
204
218
|
},
|
|
205
|
-
|
|
206
|
-
"input",
|
|
207
|
-
{
|
|
208
|
-
disabled: opt.disabled,
|
|
209
|
-
id: opt.value.toString(),
|
|
210
|
-
type: "radio",
|
|
211
|
-
value: opt.value,
|
|
212
|
-
name,
|
|
213
|
-
onChange: () => handleChange(opt)
|
|
214
|
-
}
|
|
215
|
-
),
|
|
216
|
-
/* @__PURE__ */ React3.createElement(
|
|
217
|
-
"label",
|
|
218
|
-
{
|
|
219
|
-
htmlFor: opt.value.toString(),
|
|
220
|
-
className: cn(
|
|
221
|
-
"hawa-ml-2 hawa-w-full hawa-select-none hawa-p-4 hawa-pl-3 hawa-text-sm hawa-font-medium dark:hawa-text-white",
|
|
222
|
-
opt.disabled ? "hawa-opacity-50" : "hawa-cursor-pointer hawa-text-gray-900"
|
|
223
|
-
)
|
|
224
|
-
},
|
|
225
|
-
opt.label
|
|
226
|
-
)
|
|
219
|
+
opt.label
|
|
227
220
|
)
|
|
228
|
-
)));
|
|
221
|
+
))));
|
|
229
222
|
case "cards":
|
|
230
223
|
return /* @__PURE__ */ React3.createElement("ul", { className: cn(orientationStyle[orientation], "hawa-gap-4") }, (_c = props.options) == null ? void 0 : _c.map((opt, o) => /* @__PURE__ */ React3.createElement("li", { key: o, onClick: () => handleChange(opt) }, /* @__PURE__ */ React3.createElement(
|
|
231
224
|
"input",
|
package/dist/signature/index.js
CHANGED
|
@@ -244,7 +244,7 @@ var Signature = ({
|
|
|
244
244
|
canvasProps == null ? void 0 : canvasProps.className
|
|
245
245
|
)
|
|
246
246
|
}
|
|
247
|
-
), /* @__PURE__ */ import_react2.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" },
|
|
247
|
+
), /* @__PURE__ */ import_react2.default.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ import_react2.default.createElement(
|
|
248
248
|
"p",
|
|
249
249
|
{
|
|
250
250
|
className: cn(
|
package/dist/signature/index.mjs
CHANGED
|
@@ -203,7 +203,7 @@ var Signature = ({
|
|
|
203
203
|
canvasProps == null ? void 0 : canvasProps.className
|
|
204
204
|
)
|
|
205
205
|
}
|
|
206
|
-
), /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" },
|
|
206
|
+
), /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, /* @__PURE__ */ React3.createElement(
|
|
207
207
|
"p",
|
|
208
208
|
{
|
|
209
209
|
className: cn(
|
|
@@ -17,6 +17,9 @@ interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement
|
|
|
17
17
|
textareaProps?: React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
18
18
|
showCount?: boolean;
|
|
19
19
|
countPosition?: "top" | "bottom";
|
|
20
|
+
classNames?: {
|
|
21
|
+
textarea?: string;
|
|
22
|
+
};
|
|
20
23
|
}
|
|
21
24
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
22
25
|
|
package/dist/textarea/index.d.ts
CHANGED
|
@@ -17,6 +17,9 @@ interface TextareaProps extends React.TextareaHTMLAttributes<HTMLTextAreaElement
|
|
|
17
17
|
textareaProps?: React.TextareaHTMLAttributes<HTMLTextAreaElement>;
|
|
18
18
|
showCount?: boolean;
|
|
19
19
|
countPosition?: "top" | "bottom";
|
|
20
|
+
classNames?: {
|
|
21
|
+
textarea?: string;
|
|
22
|
+
};
|
|
20
23
|
}
|
|
21
24
|
declare const Textarea: React.ForwardRefExoticComponent<TextareaProps & React.RefAttributes<HTMLTextAreaElement>>;
|
|
22
25
|
|
package/dist/textarea/index.js
CHANGED
|
@@ -144,6 +144,7 @@ Label.displayName = "Label";
|
|
|
144
144
|
var Textarea = React3.forwardRef(
|
|
145
145
|
({
|
|
146
146
|
className,
|
|
147
|
+
classNames,
|
|
147
148
|
labelProps,
|
|
148
149
|
showCount,
|
|
149
150
|
forceHideHelperText,
|
|
@@ -151,39 +152,51 @@ var Textarea = React3.forwardRef(
|
|
|
151
152
|
countPosition = "bottom",
|
|
152
153
|
...props
|
|
153
154
|
}, ref) => {
|
|
154
|
-
return /* @__PURE__ */ React3.createElement(
|
|
155
|
-
"textarea",
|
|
156
|
-
{
|
|
157
|
-
className: cn(
|
|
158
|
-
"hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
|
159
|
-
className
|
|
160
|
-
),
|
|
161
|
-
ref,
|
|
162
|
-
...textareaProps
|
|
163
|
-
}
|
|
164
|
-
), /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React3.createElement(
|
|
165
|
-
"p",
|
|
166
|
-
{
|
|
167
|
-
className: cn(
|
|
168
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
|
169
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
|
170
|
-
)
|
|
171
|
-
},
|
|
172
|
-
props.helperText
|
|
173
|
-
), showCount && /* @__PURE__ */ React3.createElement(
|
|
155
|
+
return /* @__PURE__ */ React3.createElement(
|
|
174
156
|
"div",
|
|
175
157
|
{
|
|
176
158
|
className: cn(
|
|
177
|
-
"hawa-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
}
|
|
159
|
+
"textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
|
|
160
|
+
!forceHideHelperText && "hawa-gap-2",
|
|
161
|
+
className
|
|
181
162
|
)
|
|
182
163
|
},
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
164
|
+
props.label && /* @__PURE__ */ React3.createElement(Label, { ...labelProps }, props.label),
|
|
165
|
+
/* @__PURE__ */ React3.createElement(
|
|
166
|
+
"textarea",
|
|
167
|
+
{
|
|
168
|
+
className: cn(
|
|
169
|
+
"hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
|
170
|
+
classNames == null ? void 0 : classNames.textarea
|
|
171
|
+
),
|
|
172
|
+
ref,
|
|
173
|
+
...textareaProps
|
|
174
|
+
}
|
|
175
|
+
),
|
|
176
|
+
/* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React3.createElement(
|
|
177
|
+
"p",
|
|
178
|
+
{
|
|
179
|
+
className: cn(
|
|
180
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
|
181
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
|
182
|
+
)
|
|
183
|
+
},
|
|
184
|
+
props.helperText
|
|
185
|
+
), showCount && /* @__PURE__ */ React3.createElement(
|
|
186
|
+
"div",
|
|
187
|
+
{
|
|
188
|
+
className: cn(
|
|
189
|
+
"hawa-text-start hawa-text-xs hawa-transition-all",
|
|
190
|
+
{
|
|
191
|
+
"hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
|
|
192
|
+
}
|
|
193
|
+
)
|
|
194
|
+
},
|
|
195
|
+
(textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
|
|
196
|
+
"/",
|
|
197
|
+
textareaProps == null ? void 0 : textareaProps.maxLength
|
|
198
|
+
))
|
|
199
|
+
);
|
|
187
200
|
}
|
|
188
201
|
);
|
|
189
202
|
Textarea.displayName = "Textarea";
|
package/dist/textarea/index.mjs
CHANGED
|
@@ -105,6 +105,7 @@ Label.displayName = "Label";
|
|
|
105
105
|
var Textarea = React3.forwardRef(
|
|
106
106
|
({
|
|
107
107
|
className,
|
|
108
|
+
classNames,
|
|
108
109
|
labelProps,
|
|
109
110
|
showCount,
|
|
110
111
|
forceHideHelperText,
|
|
@@ -112,39 +113,51 @@ var Textarea = React3.forwardRef(
|
|
|
112
113
|
countPosition = "bottom",
|
|
113
114
|
...props
|
|
114
115
|
}, ref) => {
|
|
115
|
-
return /* @__PURE__ */ React3.createElement(
|
|
116
|
-
"textarea",
|
|
117
|
-
{
|
|
118
|
-
className: cn(
|
|
119
|
-
"hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
|
120
|
-
className
|
|
121
|
-
),
|
|
122
|
-
ref,
|
|
123
|
-
...textareaProps
|
|
124
|
-
}
|
|
125
|
-
), /* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React3.createElement(
|
|
126
|
-
"p",
|
|
127
|
-
{
|
|
128
|
-
className: cn(
|
|
129
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
|
130
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
|
131
|
-
)
|
|
132
|
-
},
|
|
133
|
-
props.helperText
|
|
134
|
-
), showCount && /* @__PURE__ */ React3.createElement(
|
|
116
|
+
return /* @__PURE__ */ React3.createElement(
|
|
135
117
|
"div",
|
|
136
118
|
{
|
|
137
119
|
className: cn(
|
|
138
|
-
"hawa-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
}
|
|
120
|
+
"textarea-main hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col",
|
|
121
|
+
!forceHideHelperText && "hawa-gap-2",
|
|
122
|
+
className
|
|
142
123
|
)
|
|
143
124
|
},
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
125
|
+
props.label && /* @__PURE__ */ React3.createElement(Label, { ...labelProps }, props.label),
|
|
126
|
+
/* @__PURE__ */ React3.createElement(
|
|
127
|
+
"textarea",
|
|
128
|
+
{
|
|
129
|
+
className: cn(
|
|
130
|
+
"hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
|
131
|
+
classNames == null ? void 0 : classNames.textarea
|
|
132
|
+
),
|
|
133
|
+
ref,
|
|
134
|
+
...textareaProps
|
|
135
|
+
}
|
|
136
|
+
),
|
|
137
|
+
/* @__PURE__ */ React3.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React3.createElement(
|
|
138
|
+
"p",
|
|
139
|
+
{
|
|
140
|
+
className: cn(
|
|
141
|
+
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
|
142
|
+
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
|
143
|
+
)
|
|
144
|
+
},
|
|
145
|
+
props.helperText
|
|
146
|
+
), showCount && /* @__PURE__ */ React3.createElement(
|
|
147
|
+
"div",
|
|
148
|
+
{
|
|
149
|
+
className: cn(
|
|
150
|
+
"hawa-text-start hawa-text-xs hawa-transition-all",
|
|
151
|
+
{
|
|
152
|
+
"hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
|
|
153
|
+
}
|
|
154
|
+
)
|
|
155
|
+
},
|
|
156
|
+
(textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
|
|
157
|
+
"/",
|
|
158
|
+
textareaProps == null ? void 0 : textareaProps.maxLength
|
|
159
|
+
))
|
|
160
|
+
);
|
|
148
161
|
}
|
|
149
162
|
);
|
|
150
163
|
Textarea.displayName = "Textarea";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sikka/hawa",
|
|
3
|
-
"version": "0.26.
|
|
3
|
+
"version": "0.26.5-next",
|
|
4
4
|
"description": "Modern UI Kit made with Tailwind",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Sikka Software",
|
|
@@ -78,7 +78,7 @@
|
|
|
78
78
|
"@radix-ui/react-tabs": "^1.0.4",
|
|
79
79
|
"@radix-ui/react-toast": "^1.1.5",
|
|
80
80
|
"@radix-ui/react-tooltip": "^1.0.7",
|
|
81
|
-
"@tanstack/react-table": "^8.11.
|
|
81
|
+
"@tanstack/react-table": "^8.11.2",
|
|
82
82
|
"@types/node": "^20.10.5",
|
|
83
83
|
"@types/react": "^18.2.45",
|
|
84
84
|
"@types/react-dom": "^18.2.18",
|
|
@@ -100,7 +100,7 @@
|
|
|
100
100
|
"react-hook-form": "^7.49.2",
|
|
101
101
|
"react-select": "^5.8.0",
|
|
102
102
|
"signature_pad": "^4.1.7",
|
|
103
|
-
"tailwind-merge": "^2.
|
|
103
|
+
"tailwind-merge": "^2.2.0",
|
|
104
104
|
"trim-canvas": "^0.1.2",
|
|
105
105
|
"zod": "^3.22.4"
|
|
106
106
|
},
|
|
@@ -125,7 +125,7 @@
|
|
|
125
125
|
"eslint-plugin-storybook": "^0.6.15",
|
|
126
126
|
"jest": "^29.7.0",
|
|
127
127
|
"jest-environment-jsdom": "^29.7.0",
|
|
128
|
-
"lucide-react": "^0.
|
|
128
|
+
"lucide-react": "^0.300.0",
|
|
129
129
|
"postcss": "^8.4.32",
|
|
130
130
|
"postcss-cli": "^11.0.0",
|
|
131
131
|
"postcss-import": "^15.1.0",
|
package/dist/blocks/index.css
DELETED
package/dist/chunk-2XKXPVD3.mjs
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
Label,
|
|
3
|
-
cn
|
|
4
|
-
} from "./chunk-FYH74ZRQ.mjs";
|
|
5
|
-
|
|
6
|
-
// components/elements/textarea/Textarea.tsx
|
|
7
|
-
import * as React from "react";
|
|
8
|
-
var Textarea = React.forwardRef(
|
|
9
|
-
({
|
|
10
|
-
className,
|
|
11
|
-
labelProps,
|
|
12
|
-
showCount,
|
|
13
|
-
forceHideHelperText,
|
|
14
|
-
textareaProps,
|
|
15
|
-
countPosition = "bottom",
|
|
16
|
-
...props
|
|
17
|
-
}, ref) => {
|
|
18
|
-
return /* @__PURE__ */ React.createElement("div", { className: "hawa-relative hawa-flex hawa-h-full hawa-w-full hawa-flex-col hawa-gap-2 textarea-main " }, props.label && /* @__PURE__ */ React.createElement(Label, { ...labelProps }, props.label), /* @__PURE__ */ React.createElement(
|
|
19
|
-
"textarea",
|
|
20
|
-
{
|
|
21
|
-
className: cn(
|
|
22
|
-
"hawa-flex hawa-min-h-[40px] hawa-w-full hawa-rounded-md hawa-border hawa-border-input hawa-bg-background hawa-px-3 hawa-py-2 hawa-text-sm hawa-ring-offset-background placeholder:hawa-text-gray-400 placeholder:hawa-text-muted-foreground focus-visible:hawa-outline-none focus-visible:hawa-ring-2 focus-visible:hawa-ring-ring focus-visible:hawa-ring-offset-0 disabled:hawa-cursor-not-allowed disabled:hawa-opacity-50",
|
|
23
|
-
className
|
|
24
|
-
),
|
|
25
|
-
ref,
|
|
26
|
-
...textareaProps
|
|
27
|
-
}
|
|
28
|
-
), /* @__PURE__ */ React.createElement("div", { className: "hawa-flex hawa-flex-row hawa-justify-between" }, !forceHideHelperText && /* @__PURE__ */ React.createElement(
|
|
29
|
-
"p",
|
|
30
|
-
{
|
|
31
|
-
className: cn(
|
|
32
|
-
"hawa-my-0 hawa-text-start hawa-text-xs hawa-text-helper-color hawa-transition-all",
|
|
33
|
-
props.helperText ? "hawa-h-4 hawa-opacity-100" : "hawa-h-0 hawa-opacity-0"
|
|
34
|
-
)
|
|
35
|
-
},
|
|
36
|
-
props.helperText
|
|
37
|
-
), showCount && /* @__PURE__ */ React.createElement(
|
|
38
|
-
"div",
|
|
39
|
-
{
|
|
40
|
-
className: cn(
|
|
41
|
-
"hawa-text-start hawa-text-xs hawa-transition-all",
|
|
42
|
-
{
|
|
43
|
-
"hawa-absolute hawa-bottom-[80px] hawa-end-0 hawa-translate-y-1/2": countPosition === "top"
|
|
44
|
-
}
|
|
45
|
-
)
|
|
46
|
-
},
|
|
47
|
-
(textareaProps == null ? void 0 : textareaProps.value) ? String(textareaProps == null ? void 0 : textareaProps.value).length : 0,
|
|
48
|
-
"/",
|
|
49
|
-
textareaProps == null ? void 0 : textareaProps.maxLength
|
|
50
|
-
)));
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
Textarea.displayName = "Textarea";
|
|
54
|
-
|
|
55
|
-
export {
|
|
56
|
-
Textarea
|
|
57
|
-
};
|
package/dist/codeBlock/index.css
DELETED
package/dist/elements/index.css
DELETED