@zenkigen-inc/component-ui 1.19.2 → 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 +13 -11
- package/dist/index.mjs +13 -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
|
);
|
|
@@ -1818,6 +1818,8 @@ function Modal({
|
|
|
1818
1818
|
/* @__PURE__ */ (0, import_jsx_runtime27.jsx)(ModalContext.Provider, { value: { onClose }, children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)("div", { className: "fixed left-0 top-0 z-overlay flex size-full items-center justify-center bg-backgroundOverlayBlack py-4", children: /* @__PURE__ */ (0, import_jsx_runtime27.jsx)(
|
|
1819
1819
|
"div",
|
|
1820
1820
|
{
|
|
1821
|
+
role: "dialog",
|
|
1822
|
+
"aria-modal": "true",
|
|
1821
1823
|
className: "grid max-h-full min-h-[120px] grid-rows-[max-content_1fr_max-content] flex-col rounded-lg bg-uiBackground01 shadow-modalShadow",
|
|
1822
1824
|
style: { width: renderWidth, height: renderHeight, maxWidth },
|
|
1823
1825
|
children
|
|
@@ -2273,7 +2275,7 @@ var import_jsx_runtime35 = require("react/jsx-runtime");
|
|
|
2273
2275
|
var TextInputErrorMessage = (0, import_react31.forwardRef)(
|
|
2274
2276
|
({ "aria-live": ariaLive = "assertive", ...props }, ref) => {
|
|
2275
2277
|
const { inputProps } = useTextInputCompoundContext("TextInput.ErrorMessage");
|
|
2276
|
-
const typographyClass = inputProps.size === "large" ? "typography-
|
|
2278
|
+
const typographyClass = inputProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
2277
2279
|
const shouldRender = inputProps.isError === true;
|
|
2278
2280
|
if (!shouldRender) {
|
|
2279
2281
|
return null;
|
|
@@ -2290,7 +2292,7 @@ var import_react32 = require("react");
|
|
|
2290
2292
|
var import_jsx_runtime36 = require("react/jsx-runtime");
|
|
2291
2293
|
var TextInputHelperMessage = (0, import_react32.forwardRef)((props, ref) => {
|
|
2292
2294
|
const { inputProps } = useTextInputCompoundContext("TextInput.HelperMessage");
|
|
2293
|
-
const typographyClass = inputProps.size === "large" ? "typography-
|
|
2295
|
+
const typographyClass = inputProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
2294
2296
|
const helperMessageClassName = (0, import_clsx26.clsx)(typographyClass, "text-text02");
|
|
2295
2297
|
return /* @__PURE__ */ (0, import_jsx_runtime36.jsx)("div", { ref, className: helperMessageClassName, ...props });
|
|
2296
2298
|
});
|
|
@@ -2377,7 +2379,7 @@ function TextInputInner({
|
|
|
2377
2379
|
"pr-2": size === "medium" && hasTrailingElement,
|
|
2378
2380
|
"pr-3": size === "large" && hasTrailingElement
|
|
2379
2381
|
});
|
|
2380
|
-
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", {
|
|
2381
2383
|
["typography-label14regular min-h-8 px-2"]: size === "medium",
|
|
2382
2384
|
["typography-label16regular min-h-10 px-3"]: size === "large",
|
|
2383
2385
|
"text-text01": !isError,
|
|
@@ -2599,7 +2601,7 @@ var Search = (0, import_react39.forwardRef)(({ width = "100%", size = "medium",
|
|
|
2599
2601
|
{ "h-8 px-3": size === "medium" },
|
|
2600
2602
|
{ "h-10 px-4": size === "large" }
|
|
2601
2603
|
);
|
|
2602
|
-
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", {
|
|
2603
2605
|
["typography-label14regular"]: size === "medium",
|
|
2604
2606
|
["typography-label16regular"]: size === "large"
|
|
2605
2607
|
});
|
|
@@ -3168,7 +3170,7 @@ var import_jsx_runtime58 = require("react/jsx-runtime");
|
|
|
3168
3170
|
var TextAreaErrorMessage = (0, import_react47.forwardRef)(
|
|
3169
3171
|
({ "aria-live": ariaLive = "assertive", ...props }, ref) => {
|
|
3170
3172
|
const { textAreaProps } = useTextAreaCompoundContext("TextArea.ErrorMessage");
|
|
3171
|
-
const typographyClass = textAreaProps.size === "large" ? "typography-
|
|
3173
|
+
const typographyClass = textAreaProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
3172
3174
|
const shouldRender = textAreaProps.isError === true;
|
|
3173
3175
|
if (!shouldRender) {
|
|
3174
3176
|
return null;
|
|
@@ -3185,7 +3187,7 @@ var import_react48 = require("react");
|
|
|
3185
3187
|
var import_jsx_runtime59 = require("react/jsx-runtime");
|
|
3186
3188
|
var TextAreaHelperMessage = (0, import_react48.forwardRef)((props, ref) => {
|
|
3187
3189
|
const { textAreaProps } = useTextAreaCompoundContext("TextArea.HelperMessage");
|
|
3188
|
-
const typographyClass = textAreaProps.size === "large" ? "typography-
|
|
3190
|
+
const typographyClass = textAreaProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
3189
3191
|
const helperMessageClassName = (0, import_clsx42.clsx)(typographyClass, "text-text02");
|
|
3190
3192
|
return /* @__PURE__ */ (0, import_jsx_runtime59.jsx)("div", { ref, className: helperMessageClassName, ...props });
|
|
3191
3193
|
});
|
|
@@ -3270,10 +3272,10 @@ function TextAreaInner({
|
|
|
3270
3272
|
className
|
|
3271
3273
|
);
|
|
3272
3274
|
const textAreaClassName = (0, import_clsx43.clsx)(
|
|
3273
|
-
"w-full border-none bg-uiBackground01 outline-
|
|
3275
|
+
"w-full border-none bg-uiBackground01 outline-none placeholder:text-textPlaceholder disabled:text-textPlaceholder",
|
|
3274
3276
|
{
|
|
3275
3277
|
"typography-body14regular px-2 py-2": size === "medium",
|
|
3276
|
-
"
|
|
3278
|
+
"typography-body16regular px-3 py-2": size === "large",
|
|
3277
3279
|
"field-sizing-content": autoHeight,
|
|
3278
3280
|
"text-text01": !isError,
|
|
3279
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
|
);
|
|
@@ -1751,6 +1751,8 @@ function Modal({
|
|
|
1751
1751
|
/* @__PURE__ */ jsx25(ModalContext.Provider, { value: { onClose }, children: /* @__PURE__ */ jsx25("div", { className: "fixed left-0 top-0 z-overlay flex size-full items-center justify-center bg-backgroundOverlayBlack py-4", children: /* @__PURE__ */ jsx25(
|
|
1752
1752
|
"div",
|
|
1753
1753
|
{
|
|
1754
|
+
role: "dialog",
|
|
1755
|
+
"aria-modal": "true",
|
|
1754
1756
|
className: "grid max-h-full min-h-[120px] grid-rows-[max-content_1fr_max-content] flex-col rounded-lg bg-uiBackground01 shadow-modalShadow",
|
|
1755
1757
|
style: { width: renderWidth, height: renderHeight, maxWidth },
|
|
1756
1758
|
children
|
|
@@ -2206,7 +2208,7 @@ import { jsx as jsx33 } from "react/jsx-runtime";
|
|
|
2206
2208
|
var TextInputErrorMessage = forwardRef6(
|
|
2207
2209
|
({ "aria-live": ariaLive = "assertive", ...props }, ref) => {
|
|
2208
2210
|
const { inputProps } = useTextInputCompoundContext("TextInput.ErrorMessage");
|
|
2209
|
-
const typographyClass = inputProps.size === "large" ? "typography-
|
|
2211
|
+
const typographyClass = inputProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
2210
2212
|
const shouldRender = inputProps.isError === true;
|
|
2211
2213
|
if (!shouldRender) {
|
|
2212
2214
|
return null;
|
|
@@ -2223,7 +2225,7 @@ import { forwardRef as forwardRef7 } from "react";
|
|
|
2223
2225
|
import { jsx as jsx34 } from "react/jsx-runtime";
|
|
2224
2226
|
var TextInputHelperMessage = forwardRef7((props, ref) => {
|
|
2225
2227
|
const { inputProps } = useTextInputCompoundContext("TextInput.HelperMessage");
|
|
2226
|
-
const typographyClass = inputProps.size === "large" ? "typography-
|
|
2228
|
+
const typographyClass = inputProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
2227
2229
|
const helperMessageClassName = clsx26(typographyClass, "text-text02");
|
|
2228
2230
|
return /* @__PURE__ */ jsx34("div", { ref, className: helperMessageClassName, ...props });
|
|
2229
2231
|
});
|
|
@@ -2310,7 +2312,7 @@ function TextInputInner({
|
|
|
2310
2312
|
"pr-2": size === "medium" && hasTrailingElement,
|
|
2311
2313
|
"pr-3": size === "large" && hasTrailingElement
|
|
2312
2314
|
});
|
|
2313
|
-
const inputClasses = clsx27("flex-1 outline-
|
|
2315
|
+
const inputClasses = clsx27("flex-1 outline-none placeholder:text-textPlaceholder disabled:text-textPlaceholder", {
|
|
2314
2316
|
["typography-label14regular min-h-8 px-2"]: size === "medium",
|
|
2315
2317
|
["typography-label16regular min-h-10 px-3"]: size === "large",
|
|
2316
2318
|
"text-text01": !isError,
|
|
@@ -2532,7 +2534,7 @@ var Search = forwardRef10(({ width = "100%", size = "medium", ...props }, ref) =
|
|
|
2532
2534
|
{ "h-8 px-3": size === "medium" },
|
|
2533
2535
|
{ "h-10 px-4": size === "large" }
|
|
2534
2536
|
);
|
|
2535
|
-
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", {
|
|
2536
2538
|
["typography-label14regular"]: size === "medium",
|
|
2537
2539
|
["typography-label16regular"]: size === "large"
|
|
2538
2540
|
});
|
|
@@ -3101,7 +3103,7 @@ import { jsx as jsx56 } from "react/jsx-runtime";
|
|
|
3101
3103
|
var TextAreaErrorMessage = forwardRef11(
|
|
3102
3104
|
({ "aria-live": ariaLive = "assertive", ...props }, ref) => {
|
|
3103
3105
|
const { textAreaProps } = useTextAreaCompoundContext("TextArea.ErrorMessage");
|
|
3104
|
-
const typographyClass = textAreaProps.size === "large" ? "typography-
|
|
3106
|
+
const typographyClass = textAreaProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
3105
3107
|
const shouldRender = textAreaProps.isError === true;
|
|
3106
3108
|
if (!shouldRender) {
|
|
3107
3109
|
return null;
|
|
@@ -3118,7 +3120,7 @@ import { forwardRef as forwardRef12 } from "react";
|
|
|
3118
3120
|
import { jsx as jsx57 } from "react/jsx-runtime";
|
|
3119
3121
|
var TextAreaHelperMessage = forwardRef12((props, ref) => {
|
|
3120
3122
|
const { textAreaProps } = useTextAreaCompoundContext("TextArea.HelperMessage");
|
|
3121
|
-
const typographyClass = textAreaProps.size === "large" ? "typography-
|
|
3123
|
+
const typographyClass = textAreaProps.size === "large" ? "typography-label13regular" : "typography-label12regular";
|
|
3122
3124
|
const helperMessageClassName = clsx42(typographyClass, "text-text02");
|
|
3123
3125
|
return /* @__PURE__ */ jsx57("div", { ref, className: helperMessageClassName, ...props });
|
|
3124
3126
|
});
|
|
@@ -3203,10 +3205,10 @@ function TextAreaInner({
|
|
|
3203
3205
|
className
|
|
3204
3206
|
);
|
|
3205
3207
|
const textAreaClassName = clsx43(
|
|
3206
|
-
"w-full border-none bg-uiBackground01 outline-
|
|
3208
|
+
"w-full border-none bg-uiBackground01 outline-none placeholder:text-textPlaceholder disabled:text-textPlaceholder",
|
|
3207
3209
|
{
|
|
3208
3210
|
"typography-body14regular px-2 py-2": size === "medium",
|
|
3209
|
-
"
|
|
3211
|
+
"typography-body16regular px-3 py-2": size === "large",
|
|
3210
3212
|
"field-sizing-content": autoHeight,
|
|
3211
3213
|
"text-text01": !isError,
|
|
3212
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
|
}
|