@zenkigen-inc/component-ui 1.19.3 → 1.19.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +11 -11
- package/dist/index.mjs +11 -11
- package/package.json +4 -4
package/dist/index.js
CHANGED
|
@@ -146,7 +146,7 @@ function Avatar({ size = "medium", ...props }) {
|
|
|
146
146
|
// src/breadcrumb/breadcrumb-item.tsx
|
|
147
147
|
var import_jsx_runtime3 = require("react/jsx-runtime");
|
|
148
148
|
var BreadcrumbItem = ({ children }) => {
|
|
149
|
-
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { className: "flex gap-2 after:content-['/'] last:after:content-none [&_a]:text-interactive02 [&_a]:hover:underline", children });
|
|
149
|
+
return /* @__PURE__ */ (0, import_jsx_runtime3.jsx)("li", { className: "flex gap-2 after:content-['/'] last:after:content-none [&_a]:text-interactive02 [&_a]:hover:underline [&_a]:active:text-activeLink02 [&_a]:active:underline", children });
|
|
150
150
|
};
|
|
151
151
|
|
|
152
152
|
// src/breadcrumb/breadcrumb.tsx
|
|
@@ -1408,9 +1408,9 @@ var FileInput = (0, import_react17.forwardRef)(
|
|
|
1408
1408
|
{
|
|
1409
1409
|
"border-uiBorder03 bg-white text-text01": !isDisabled && !isDragOver && !hasErrors,
|
|
1410
1410
|
"border-activeInput bg-activeInput/5": !isDisabled && isDragOver && !hasErrors,
|
|
1411
|
-
"border-supportDanger bg-
|
|
1411
|
+
"border-supportDanger bg-uiBackground01": hasErrors && !isDisabled,
|
|
1412
1412
|
"cursor-pointer hover:bg-hover02 active:bg-active02": !isDisabled,
|
|
1413
|
-
"hover:bg-
|
|
1413
|
+
"hover:bg-hoverUiError active:bg-activeUiError": !isDisabled && hasErrors,
|
|
1414
1414
|
"border-disabled01 bg-disabled02 text-textPlaceholder cursor-not-allowed": isDisabled
|
|
1415
1415
|
}
|
|
1416
1416
|
);
|
|
@@ -2275,7 +2275,7 @@ var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
|
2275
2275
|
var TextInputErrorMessage = (0, import_react31.forwardRef)(
|
|
2276
2276
|
({ "aria-live": ariaLive = "assertive", ...props }, ref) => {
|
|
2277
2277
|
const { inputProps } = useTextInputCompoundContext("TextInput.ErrorMessage");
|
|
2278
|
-
const typographyClass = inputProps.size === "large" ? "typography-
|
|
2278
|
+
const typographyClass = inputProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
2279
2279
|
const shouldRender = inputProps.isError === true;
|
|
2280
2280
|
if (!shouldRender) {
|
|
2281
2281
|
return null;
|
|
@@ -2292,7 +2292,7 @@ var import_react32 = require("react");
|
|
|
2292
2292
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2293
2293
|
var TextInputHelperMessage = (0, import_react32.forwardRef)((props, ref) => {
|
|
2294
2294
|
const { inputProps } = useTextInputCompoundContext("TextInput.HelperMessage");
|
|
2295
|
-
const typographyClass = inputProps.size === "large" ? "typography-
|
|
2295
|
+
const typographyClass = inputProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
2296
2296
|
const helperMessageClassName = (0, import_clsx26.clsx)(typographyClass, "text-text02");
|
|
2297
2297
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ref, className: helperMessageClassName, ...props });
|
|
2298
2298
|
});
|
|
@@ -2379,7 +2379,7 @@ function TextInputInner({
|
|
|
2379
2379
|
"pr-2": size === "medium" && hasTrailingElement,
|
|
2380
2380
|
"pr-3": size === "large" && hasTrailingElement
|
|
2381
2381
|
});
|
|
2382
|
-
const inputClasses = (0, import_clsx27.clsx)("flex-1 outline-
|
|
2382
|
+
const inputClasses = (0, import_clsx27.clsx)("flex-1 outline-none placeholder:text-textPlaceholder disabled:text-textPlaceholder", {
|
|
2383
2383
|
["typography-label14regular min-h-8 px-2"]: size === "medium",
|
|
2384
2384
|
["typography-label16regular min-h-10 px-3"]: size === "large",
|
|
2385
2385
|
"text-text01": !isError,
|
|
@@ -2601,7 +2601,7 @@ var Search = (0, import_react39.forwardRef)(({ width = "100%", size = "medium",
|
|
|
2601
2601
|
{ "h-8 px-3": size === "medium" },
|
|
2602
2602
|
{ "h-10 px-4": size === "large" }
|
|
2603
2603
|
);
|
|
2604
|
-
const inputClasses = (0, import_clsx29.clsx)("mx-2 h-full flex-1 text-text01 outline-
|
|
2604
|
+
const inputClasses = (0, import_clsx29.clsx)("mx-2 h-full flex-1 text-text01 outline-none placeholder:text-textPlaceholder", {
|
|
2605
2605
|
["typography-label14regular"]: size === "medium",
|
|
2606
2606
|
["typography-label16regular"]: size === "large"
|
|
2607
2607
|
});
|
|
@@ -3170,7 +3170,7 @@ var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
|
3170
3170
|
var TextAreaErrorMessage = (0, import_react47.forwardRef)(
|
|
3171
3171
|
({ "aria-live": ariaLive = "assertive", ...props }, ref) => {
|
|
3172
3172
|
const { textAreaProps } = useTextAreaCompoundContext("TextArea.ErrorMessage");
|
|
3173
|
-
const typographyClass = textAreaProps.size === "large" ? "typography-
|
|
3173
|
+
const typographyClass = textAreaProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
3174
3174
|
const shouldRender = textAreaProps.isError === true;
|
|
3175
3175
|
if (!shouldRender) {
|
|
3176
3176
|
return null;
|
|
@@ -3187,7 +3187,7 @@ var import_react48 = require("react");
|
|
|
3187
3187
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
3188
3188
|
var TextAreaHelperMessage = (0, import_react48.forwardRef)((props, ref) => {
|
|
3189
3189
|
const { textAreaProps } = useTextAreaCompoundContext("TextArea.HelperMessage");
|
|
3190
|
-
const typographyClass = textAreaProps.size === "large" ? "typography-
|
|
3190
|
+
const typographyClass = textAreaProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
3191
3191
|
const helperMessageClassName = (0, import_clsx42.clsx)(typographyClass, "text-text02");
|
|
3192
3192
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { ref, className: helperMessageClassName, ...props });
|
|
3193
3193
|
});
|
|
@@ -3272,10 +3272,10 @@ function TextAreaInner({
|
|
|
3272
3272
|
className
|
|
3273
3273
|
);
|
|
3274
3274
|
const textAreaClassName = (0, import_clsx43.clsx)(
|
|
3275
|
-
"w-full border-none bg-uiBackground01 outline-
|
|
3275
|
+
"w-full border-none bg-uiBackground01 outline-none placeholder:text-textPlaceholder disabled:text-textPlaceholder",
|
|
3276
3276
|
{
|
|
3277
3277
|
"typography-body14regular px-2 py-2": size === "medium",
|
|
3278
|
-
"
|
|
3278
|
+
"typography-body16regular px-3 py-2": size === "large",
|
|
3279
3279
|
"field-sizing-content": autoHeight,
|
|
3280
3280
|
"text-text01": !isError,
|
|
3281
3281
|
"text-supportError": isError,
|
package/dist/index.mjs
CHANGED
|
@@ -69,7 +69,7 @@ function Avatar({ size = "medium", ...props }) {
|
|
|
69
69
|
// src/breadcrumb/breadcrumb-item.tsx
|
|
70
70
|
import { jsx as jsx3 } from "react/jsx-runtime";
|
|
71
71
|
var BreadcrumbItem = ({ children }) => {
|
|
72
|
-
return /* @__PURE__ */ jsx3("li", { className: "flex gap-2 after:content-['/'] last:after:content-none [&_a]:text-interactive02 [&_a]:hover:underline", children });
|
|
72
|
+
return /* @__PURE__ */ jsx3("li", { className: "flex gap-2 after:content-['/'] last:after:content-none [&_a]:text-interactive02 [&_a]:hover:underline [&_a]:active:text-activeLink02 [&_a]:active:underline", children });
|
|
73
73
|
};
|
|
74
74
|
|
|
75
75
|
// src/breadcrumb/breadcrumb.tsx
|
|
@@ -1341,9 +1341,9 @@ var FileInput = forwardRef4(
|
|
|
1341
1341
|
{
|
|
1342
1342
|
"border-uiBorder03 bg-white text-text01": !isDisabled && !isDragOver && !hasErrors,
|
|
1343
1343
|
"border-activeInput bg-activeInput/5": !isDisabled && isDragOver && !hasErrors,
|
|
1344
|
-
"border-supportDanger bg-
|
|
1344
|
+
"border-supportDanger bg-uiBackground01": hasErrors && !isDisabled,
|
|
1345
1345
|
"cursor-pointer hover:bg-hover02 active:bg-active02": !isDisabled,
|
|
1346
|
-
"hover:bg-
|
|
1346
|
+
"hover:bg-hoverUiError active:bg-activeUiError": !isDisabled && hasErrors,
|
|
1347
1347
|
"border-disabled01 bg-disabled02 text-textPlaceholder cursor-not-allowed": isDisabled
|
|
1348
1348
|
}
|
|
1349
1349
|
);
|
|
@@ -2208,7 +2208,7 @@ import { jsx as jsx33 } from "react/jsx-runtime";
|
|
|
2208
2208
|
var TextInputErrorMessage = forwardRef6(
|
|
2209
2209
|
({ "aria-live": ariaLive = "assertive", ...props }, ref) => {
|
|
2210
2210
|
const { inputProps } = useTextInputCompoundContext("TextInput.ErrorMessage");
|
|
2211
|
-
const typographyClass = inputProps.size === "large" ? "typography-
|
|
2211
|
+
const typographyClass = inputProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
2212
2212
|
const shouldRender = inputProps.isError === true;
|
|
2213
2213
|
if (!shouldRender) {
|
|
2214
2214
|
return null;
|
|
@@ -2225,7 +2225,7 @@ import { forwardRef as forwardRef7 } from "react";
|
|
|
2225
2225
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2226
2226
|
var TextInputHelperMessage = forwardRef7((props, ref) => {
|
|
2227
2227
|
const { inputProps } = useTextInputCompoundContext("TextInput.HelperMessage");
|
|
2228
|
-
const typographyClass = inputProps.size === "large" ? "typography-
|
|
2228
|
+
const typographyClass = inputProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
2229
2229
|
const helperMessageClassName = clsx26(typographyClass, "text-text02");
|
|
2230
2230
|
return /* @__PURE__ */ jsx34("div", { ref, className: helperMessageClassName, ...props });
|
|
2231
2231
|
});
|
|
@@ -2312,7 +2312,7 @@ function TextInputInner({
|
|
|
2312
2312
|
"pr-2": size === "medium" && hasTrailingElement,
|
|
2313
2313
|
"pr-3": size === "large" && hasTrailingElement
|
|
2314
2314
|
});
|
|
2315
|
-
const inputClasses = clsx27("flex-1 outline-
|
|
2315
|
+
const inputClasses = clsx27("flex-1 outline-none placeholder:text-textPlaceholder disabled:text-textPlaceholder", {
|
|
2316
2316
|
["typography-label14regular min-h-8 px-2"]: size === "medium",
|
|
2317
2317
|
["typography-label16regular min-h-10 px-3"]: size === "large",
|
|
2318
2318
|
"text-text01": !isError,
|
|
@@ -2534,7 +2534,7 @@ var Search = forwardRef10(({ width = "100%", size = "medium", ...props }, ref) =
|
|
|
2534
2534
|
{ "h-8 px-3": size === "medium" },
|
|
2535
2535
|
{ "h-10 px-4": size === "large" }
|
|
2536
2536
|
);
|
|
2537
|
-
const inputClasses = clsx29("mx-2 h-full flex-1 text-text01 outline-
|
|
2537
|
+
const inputClasses = clsx29("mx-2 h-full flex-1 text-text01 outline-none placeholder:text-textPlaceholder", {
|
|
2538
2538
|
["typography-label14regular"]: size === "medium",
|
|
2539
2539
|
["typography-label16regular"]: size === "large"
|
|
2540
2540
|
});
|
|
@@ -3103,7 +3103,7 @@ import { jsx as jsx56 } from "react/jsx-runtime";
|
|
|
3103
3103
|
var TextAreaErrorMessage = forwardRef11(
|
|
3104
3104
|
({ "aria-live": ariaLive = "assertive", ...props }, ref) => {
|
|
3105
3105
|
const { textAreaProps } = useTextAreaCompoundContext("TextArea.ErrorMessage");
|
|
3106
|
-
const typographyClass = textAreaProps.size === "large" ? "typography-
|
|
3106
|
+
const typographyClass = textAreaProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
3107
3107
|
const shouldRender = textAreaProps.isError === true;
|
|
3108
3108
|
if (!shouldRender) {
|
|
3109
3109
|
return null;
|
|
@@ -3120,7 +3120,7 @@ import { forwardRef as forwardRef12 } from "react";
|
|
|
3120
3120
|
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
3121
3121
|
var TextAreaHelperMessage = forwardRef12((props, ref) => {
|
|
3122
3122
|
const { textAreaProps } = useTextAreaCompoundContext("TextArea.HelperMessage");
|
|
3123
|
-
const typographyClass = textAreaProps.size === "large" ? "typography-
|
|
3123
|
+
const typographyClass = textAreaProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
3124
3124
|
const helperMessageClassName = clsx42(typographyClass, "text-text02");
|
|
3125
3125
|
return /* @__PURE__ */ jsx57("div", { ref, className: helperMessageClassName, ...props });
|
|
3126
3126
|
});
|
|
@@ -3205,10 +3205,10 @@ function TextAreaInner({
|
|
|
3205
3205
|
className
|
|
3206
3206
|
);
|
|
3207
3207
|
const textAreaClassName = clsx43(
|
|
3208
|
-
"w-full border-none bg-uiBackground01 outline-
|
|
3208
|
+
"w-full border-none bg-uiBackground01 outline-none placeholder:text-textPlaceholder disabled:text-textPlaceholder",
|
|
3209
3209
|
{
|
|
3210
3210
|
"typography-body14regular px-2 py-2": size === "medium",
|
|
3211
|
-
"
|
|
3211
|
+
"typography-body16regular px-3 py-2": size === "large",
|
|
3212
3212
|
"field-sizing-content": autoHeight,
|
|
3213
3213
|
"text-text01": !isError,
|
|
3214
3214
|
"text-supportError": isError,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zenkigen-inc/component-ui",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.4",
|
|
4
4
|
"repository": "https://github.com/zenkigen/zenkigen-component",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@floating-ui/react": "0.27.16",
|
|
41
|
-
"@zenkigen-inc/component-config": "1.19.
|
|
42
|
-
"@zenkigen-inc/component-icons": "1.19.
|
|
43
|
-
"@zenkigen-inc/component-theme": "1.19.
|
|
41
|
+
"@zenkigen-inc/component-config": "1.19.4",
|
|
42
|
+
"@zenkigen-inc/component-icons": "1.19.4",
|
|
43
|
+
"@zenkigen-inc/component-theme": "1.19.4",
|
|
44
44
|
"clsx": "2.1.1",
|
|
45
45
|
"react-day-picker": "9.13.0"
|
|
46
46
|
}
|