@zenkigen-inc/component-ui 1.9.10 → 1.10.0
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/icon/icon.d.ts +1 -0
- package/dist/index.esm.js +67 -66
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +74 -73
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -5,29 +5,22 @@ import aa, { useState, useCallback, useEffect, createContext, useContext, useRef
|
|
|
5
5
|
import { iconElements } from '@zenkigen-inc/component-icons';
|
|
6
6
|
|
|
7
7
|
function _extends() {
|
|
8
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
9
|
-
for (var
|
|
10
|
-
var
|
|
11
|
-
for (var
|
|
12
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
13
|
-
target[key] = source[key];
|
|
14
|
-
}
|
|
15
|
-
}
|
|
8
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
9
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
10
|
+
var t = arguments[e];
|
|
11
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
16
12
|
}
|
|
17
|
-
return
|
|
18
|
-
};
|
|
19
|
-
return _extends.apply(this, arguments);
|
|
13
|
+
return n;
|
|
14
|
+
}, _extends.apply(null, arguments);
|
|
20
15
|
}
|
|
21
|
-
function _objectWithoutPropertiesLoose(
|
|
22
|
-
if (
|
|
23
|
-
var
|
|
24
|
-
for (var
|
|
25
|
-
if (
|
|
26
|
-
|
|
27
|
-
target[key] = source[key];
|
|
28
|
-
}
|
|
16
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
17
|
+
if (null == r) return {};
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
20
|
+
if (e.indexOf(n) >= 0) continue;
|
|
21
|
+
t[n] = r[n];
|
|
29
22
|
}
|
|
30
|
-
return
|
|
23
|
+
return t;
|
|
31
24
|
}
|
|
32
25
|
|
|
33
26
|
const _excluded$8 = ["size"];
|
|
@@ -41,11 +34,11 @@ function Avatar(_ref) {
|
|
|
41
34
|
} = _ref,
|
|
42
35
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
43
36
|
const classes = clsx('flex items-center justify-center rounded-full text-textOnColor', {
|
|
44
|
-
'w-16 h-16 typography-
|
|
45
|
-
'w-12 h-12 typography-
|
|
46
|
-
'w-10 h-10 typography-
|
|
47
|
-
'w-8 h-8 typography-
|
|
48
|
-
'w-6 h-6 typography-
|
|
37
|
+
'w-16 h-16 typography-label16regular': size === 'x-large',
|
|
38
|
+
'w-12 h-12 typography-label14regular': size === 'large',
|
|
39
|
+
'w-10 h-10 typography-label14regular': size === 'medium',
|
|
40
|
+
'w-8 h-8 typography-label11regular': size === 'small',
|
|
41
|
+
'w-6 h-6 typography-label11regular': size === 'x-small',
|
|
49
42
|
'bg-disabled01': props.isDisabled,
|
|
50
43
|
'bg-icon01': props.userId == null,
|
|
51
44
|
[userColors[((_props$userId = props.userId) != null ? _props$userId : 0) % userColors.length]]: props.userId != null && !((_props$isDisabled = props.isDisabled) != null ? _props$isDisabled : false)
|
|
@@ -74,7 +67,7 @@ function Breadcrumb({
|
|
|
74
67
|
return /*#__PURE__*/jsx("nav", {
|
|
75
68
|
"aria-label": "breadcrumb",
|
|
76
69
|
children: /*#__PURE__*/jsx("ul", {
|
|
77
|
-
className: "typography-
|
|
70
|
+
className: "typography-label14regular flex flex-wrap gap-2 whitespace-nowrap text-text01",
|
|
78
71
|
children: children
|
|
79
72
|
})
|
|
80
73
|
});
|
|
@@ -106,8 +99,8 @@ const Button = _ref => {
|
|
|
106
99
|
'hover:text-textOnColor active:text-textOnColor [&:hover>*]:fill-iconOnColor [&:active>*]:fill-iconOnColor': isSelected && variant !== 'outline' && variant !== 'text',
|
|
107
100
|
'pointer-events-none': isDisabled,
|
|
108
101
|
'rounded-button': borderRadius == null,
|
|
109
|
-
'typography-
|
|
110
|
-
'typography-
|
|
102
|
+
'typography-label16regular': size === 'large',
|
|
103
|
+
'typography-label14regular': size !== 'large'
|
|
111
104
|
});
|
|
112
105
|
const Component = elementAs != null ? elementAs : 'button';
|
|
113
106
|
return /*#__PURE__*/jsxs(Component, _extends({
|
|
@@ -197,7 +190,7 @@ function Checkbox({
|
|
|
197
190
|
const hoverIndicatorClasses = clsx$1('inline-block size-3 rounded-[1px]', {
|
|
198
191
|
'bg-hoverUi': !isDisabled && !isChecked && isMouseOver
|
|
199
192
|
});
|
|
200
|
-
const labelClasses = clsx$1('typography-
|
|
193
|
+
const labelClasses = clsx$1('typography-label14regular ml-2 flex-[1_0_0] break-all', {
|
|
201
194
|
'pointer-events-none cursor-not-allowed text-disabled01': isDisabled,
|
|
202
195
|
'cursor-pointer text-text01': !isDisabled
|
|
203
196
|
});
|
|
@@ -31186,7 +31179,7 @@ const Icon = _ref => {
|
|
|
31186
31179
|
'w-6 h-6': size === 'medium',
|
|
31187
31180
|
'w-8 h-8': size === 'large',
|
|
31188
31181
|
'w-10 h-10': size === 'x-large'
|
|
31189
|
-
});
|
|
31182
|
+
}, props.className);
|
|
31190
31183
|
return /*#__PURE__*/jsx("span", {
|
|
31191
31184
|
className: classes,
|
|
31192
31185
|
children: iconElements[props.name]
|
|
@@ -31216,7 +31209,7 @@ function DropdownItem({
|
|
|
31216
31209
|
setIsVisible(false);
|
|
31217
31210
|
onClick && onClick(event);
|
|
31218
31211
|
};
|
|
31219
|
-
const itemClasses = clsx$1('typography-
|
|
31212
|
+
const itemClasses = clsx$1('typography-label14regular flex h-8 w-full items-center px-3 hover:bg-hover02 active:bg-active02', focusVisible.inset, {
|
|
31220
31213
|
'bg-uiBackground01 fill-icon01 text-interactive02': color === 'gray',
|
|
31221
31214
|
'fill-supportDanger text-supportDanger': color === 'red'
|
|
31222
31215
|
});
|
|
@@ -31315,9 +31308,9 @@ function Dropdown({
|
|
|
31315
31308
|
const labelClasses = clsx$1('flex items-center', {
|
|
31316
31309
|
'mr-1': !isArrowHidden && size === 'x-small',
|
|
31317
31310
|
'mr-2': !isArrowHidden && size !== 'x-small',
|
|
31318
|
-
'typography-
|
|
31319
|
-
'typography-
|
|
31320
|
-
'typography-
|
|
31311
|
+
'typography-label12regular': size === 'x-small',
|
|
31312
|
+
'typography-label14regular': size === 'small' || size === 'medium',
|
|
31313
|
+
'typography-label16regular': size === 'large'
|
|
31321
31314
|
});
|
|
31322
31315
|
return /*#__PURE__*/jsx(DropdownContext.Provider, {
|
|
31323
31316
|
value: {
|
|
@@ -31431,7 +31424,7 @@ function IconButton(_ref) {
|
|
|
31431
31424
|
isDisabled = false
|
|
31432
31425
|
} = _ref,
|
|
31433
31426
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
31434
|
-
const baseClasses = clsx('typography-
|
|
31427
|
+
const baseClasses = clsx('typography-label16regular flex items-center justify-center gap-1 rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
|
|
31435
31428
|
'h-4 w-4': size === 'small' && isNoPadding,
|
|
31436
31429
|
'h-6 w-6': size === 'small' && !isNoPadding || (size === 'medium' || size === 'large') && isNoPadding,
|
|
31437
31430
|
'h-8 w-8': size === 'medium' && !isNoPadding,
|
|
@@ -31623,7 +31616,7 @@ function NotificationInline(_ref) {
|
|
|
31623
31616
|
size = 'medium'
|
|
31624
31617
|
} = _ref,
|
|
31625
31618
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
31626
|
-
const wrapperClasses = clsx('typography-
|
|
31619
|
+
const wrapperClasses = clsx('typography-body13regular flex items-center gap-1 rounded text-text01', {
|
|
31627
31620
|
'bg-uiBackgroundError': state === 'attention',
|
|
31628
31621
|
'bg-uiBackgroundWarning': state === 'warning',
|
|
31629
31622
|
'bg-uiBackgroundBlue': state === 'information',
|
|
@@ -31681,8 +31674,14 @@ function PaginationButton({
|
|
|
31681
31674
|
const {
|
|
31682
31675
|
currentPage
|
|
31683
31676
|
} = useContext(PaginationContext);
|
|
31684
|
-
|
|
31685
|
-
|
|
31677
|
+
const buttonClasses = clsx('flex h-8 min-w-8 items-center justify-center rounded fill-icon01 px-1', 'typography-label14regular', 'text-interactive02', 'hover:bg-hover02', {
|
|
31678
|
+
'border border-uiBorder02': page === currentPage
|
|
31679
|
+
}, {
|
|
31680
|
+
'border-transparent': page !== currentPage
|
|
31681
|
+
});
|
|
31682
|
+
return /*#__PURE__*/jsx("button", {
|
|
31683
|
+
type: "button",
|
|
31684
|
+
className: buttonClasses,
|
|
31686
31685
|
onClick: () => onClick(page),
|
|
31687
31686
|
children: page
|
|
31688
31687
|
});
|
|
@@ -31711,13 +31710,14 @@ function Pagination({
|
|
|
31711
31710
|
currentPage
|
|
31712
31711
|
},
|
|
31713
31712
|
children: /*#__PURE__*/jsxs("ul", {
|
|
31714
|
-
className: "flex gap-
|
|
31713
|
+
className: "flex gap-1",
|
|
31715
31714
|
children: [/*#__PURE__*/jsx("li", {
|
|
31715
|
+
className: "flex items-center",
|
|
31716
31716
|
children: /*#__PURE__*/jsx(IconButton, {
|
|
31717
31717
|
isDisabled: currentPage === START_PAGE,
|
|
31718
31718
|
variant: "text",
|
|
31719
31719
|
icon: "angle-left",
|
|
31720
|
-
size: "
|
|
31720
|
+
size: "small",
|
|
31721
31721
|
onClick: () => onClick(currentPage - 1)
|
|
31722
31722
|
})
|
|
31723
31723
|
}), /*#__PURE__*/jsx("li", {
|
|
@@ -31748,11 +31748,12 @@ function Pagination({
|
|
|
31748
31748
|
page: totalPage
|
|
31749
31749
|
})
|
|
31750
31750
|
}), /*#__PURE__*/jsx("li", {
|
|
31751
|
+
className: "flex items-center",
|
|
31751
31752
|
children: /*#__PURE__*/jsx(IconButton, {
|
|
31752
31753
|
isDisabled: currentPage === totalPage,
|
|
31753
31754
|
variant: "text",
|
|
31754
31755
|
icon: "angle-right",
|
|
31755
|
-
size: "
|
|
31756
|
+
size: "small",
|
|
31756
31757
|
onClick: () => onClick(currentPage + 1)
|
|
31757
31758
|
})
|
|
31758
31759
|
})]
|
|
@@ -31778,7 +31779,7 @@ function SelectItem$1({
|
|
|
31778
31779
|
onChange == null || onChange(option);
|
|
31779
31780
|
setIsOptionListOpen(false);
|
|
31780
31781
|
};
|
|
31781
|
-
const itemClasses = clsx$1('typography-
|
|
31782
|
+
const itemClasses = clsx$1('typography-label14regular flex h-8 w-full items-center px-3 hover:bg-hover02 active:bg-active02', focusVisible.inset, {
|
|
31782
31783
|
'text-interactive01 fill-interactive01 bg-selectedUi': option.id === (selectedOption == null ? void 0 : selectedOption.id),
|
|
31783
31784
|
'text-interactive02 fill-icon01 bg-uiBackground01': option.id !== (selectedOption == null ? void 0 : selectedOption.id)
|
|
31784
31785
|
});
|
|
@@ -31841,7 +31842,7 @@ function SelectList$1({
|
|
|
31841
31842
|
'top-11': size === 'large',
|
|
31842
31843
|
'border-solid border border-uiBorder01': variant === 'outline'
|
|
31843
31844
|
});
|
|
31844
|
-
const deselectButtonClasses = clsx$1('typography-
|
|
31845
|
+
const deselectButtonClasses = clsx$1('typography-label14regular flex h-8 w-full items-center px-3 text-interactive02 hover:bg-hover02 active:bg-active02', focusVisible.inset);
|
|
31845
31846
|
return /*#__PURE__*/jsxs("ul", {
|
|
31846
31847
|
className: listClasses,
|
|
31847
31848
|
style: {
|
|
@@ -31893,9 +31894,9 @@ function Select({
|
|
|
31893
31894
|
const labelClasses = clsx$1('overflow-hidden', {
|
|
31894
31895
|
'mr-1': size === 'x-small',
|
|
31895
31896
|
'mr-2': size !== 'x-small',
|
|
31896
|
-
'typography-
|
|
31897
|
-
'typography-
|
|
31898
|
-
'typography-
|
|
31897
|
+
'typography-label12regular': size === 'x-small',
|
|
31898
|
+
'typography-label14regular': size === 'small' || size === 'medium',
|
|
31899
|
+
'typography-label16regular': size === 'large'
|
|
31899
31900
|
});
|
|
31900
31901
|
return /*#__PURE__*/jsx(SelectContext.Provider, {
|
|
31901
31902
|
value: {
|
|
@@ -31980,7 +31981,7 @@ function PaginationSelect({
|
|
|
31980
31981
|
children: [/*#__PURE__*/jsxs("div", {
|
|
31981
31982
|
className: "flex items-center gap-x-2",
|
|
31982
31983
|
children: [/*#__PURE__*/jsxs("div", {
|
|
31983
|
-
className: "typography-
|
|
31984
|
+
className: "typography-label14regular text-text01",
|
|
31984
31985
|
children: [minCount > 0 && `${minCount} - `, maxCount, countLabel]
|
|
31985
31986
|
}), /*#__PURE__*/jsx(Select, {
|
|
31986
31987
|
size: "medium",
|
|
@@ -31993,7 +31994,7 @@ function PaginationSelect({
|
|
|
31993
31994
|
option: option
|
|
31994
31995
|
}, option.id))
|
|
31995
31996
|
}), /*#__PURE__*/jsxs("div", {
|
|
31996
|
-
className: "typography-
|
|
31997
|
+
className: "typography-label14regular text-text03",
|
|
31997
31998
|
children: ["/ ", pageMax, pageLabel]
|
|
31998
31999
|
})]
|
|
31999
32000
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -32052,7 +32053,7 @@ function Radio({
|
|
|
32052
32053
|
const hoverIndicatorClasses = clsx$1('inline-block size-3 rounded-full', {
|
|
32053
32054
|
'bg-hoverUi': !isDisabled && !isChecked && isMouseOver
|
|
32054
32055
|
});
|
|
32055
|
-
const labelClasses = clsx$1('typography-
|
|
32056
|
+
const labelClasses = clsx$1('typography-label14regular ml-2 flex-[1_0_0] select-none break-all', {
|
|
32056
32057
|
'pointer-events-none cursor-not-allowed text-disabled01': isDisabled,
|
|
32057
32058
|
'cursor-pointer text-text01': !isDisabled
|
|
32058
32059
|
});
|
|
@@ -32103,8 +32104,8 @@ const Search = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
32103
32104
|
'h-10 px-4': size === 'large'
|
|
32104
32105
|
});
|
|
32105
32106
|
const inputClasses = clsx('mx-2.5 h-full flex-1 text-text01 outline-0 placeholder:text-textPlaceholder', {
|
|
32106
|
-
['typography-
|
|
32107
|
-
['typography-
|
|
32107
|
+
['typography-label14regular']: size === 'medium',
|
|
32108
|
+
['typography-label16regular']: size === 'large'
|
|
32108
32109
|
});
|
|
32109
32110
|
return /*#__PURE__*/jsx("div", {
|
|
32110
32111
|
className: "relative",
|
|
@@ -32145,7 +32146,7 @@ function SelectItem({
|
|
|
32145
32146
|
isSortKey,
|
|
32146
32147
|
onClickItem
|
|
32147
32148
|
}) {
|
|
32148
|
-
const itemClasses = clsx$1('typography-
|
|
32149
|
+
const itemClasses = clsx$1('typography-label14regular flex h-8 w-full items-center px-3 hover:bg-hover02 active:bg-active02', focusVisible.inset, {
|
|
32149
32150
|
'bg-selectedUi fill-interactive01 text-interactive01': isSortKey,
|
|
32150
32151
|
'bg-uiBackground01 fill-icon01 text-interactive02': !isSortKey
|
|
32151
32152
|
});
|
|
@@ -32182,7 +32183,7 @@ function SelectList({
|
|
|
32182
32183
|
'top-11': size === 'large',
|
|
32183
32184
|
'border-solid border border-uiBorder01': variant === 'outline'
|
|
32184
32185
|
});
|
|
32185
|
-
const deselectButtonClasses = clsx$1('typography-
|
|
32186
|
+
const deselectButtonClasses = clsx$1('typography-label14regular flex h-8 w-full items-center px-3 text-interactive02 hover:bg-hover02 active:bg-active02', focusVisible.inset);
|
|
32186
32187
|
return /*#__PURE__*/jsxs("ul", {
|
|
32187
32188
|
className: listClasses,
|
|
32188
32189
|
children: [/*#__PURE__*/jsx(SelectItem, {
|
|
@@ -32237,9 +32238,9 @@ function SelectSort({
|
|
|
32237
32238
|
'pointer-events-none': isDisabled
|
|
32238
32239
|
});
|
|
32239
32240
|
const labelClasses = clsx$1('truncate', {
|
|
32240
|
-
'typography-
|
|
32241
|
-
'typography-
|
|
32242
|
-
'typography-
|
|
32241
|
+
'typography-label12regular': size === 'x-small',
|
|
32242
|
+
'typography-label14regular': size === 'small' || size === 'medium',
|
|
32243
|
+
'typography-label16regular': size === 'large',
|
|
32243
32244
|
'mr-1': size === 'x-small',
|
|
32244
32245
|
'mr-2': size !== 'x-small'
|
|
32245
32246
|
});
|
|
@@ -32284,9 +32285,9 @@ const TabItem = _ref => {
|
|
|
32284
32285
|
} = _ref,
|
|
32285
32286
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
32286
32287
|
const classes = clsx('relative z-0 flex py-2 leading-[24px] before:absolute before:inset-x-0 before:bottom-0 before:h-px hover:text-text01 disabled:pointer-events-none disabled:text-disabled01', {
|
|
32287
|
-
'typography-
|
|
32288
|
+
'typography-label14regular': !isSelected,
|
|
32288
32289
|
'text-interactive02 hover:before:bg-uiBorder02Dark': !isSelected,
|
|
32289
|
-
'typography-
|
|
32290
|
+
'typography-label14bold': isSelected,
|
|
32290
32291
|
'before:bg-interactive01 hover:before:bg-interactive01 pointer-events-none': isSelected
|
|
32291
32292
|
});
|
|
32292
32293
|
return /*#__PURE__*/jsx("button", {
|
|
@@ -32394,10 +32395,10 @@ function Tag({
|
|
|
32394
32395
|
const wrapperClasses = clsx$1('flex', 'items-center', 'justify-center', {
|
|
32395
32396
|
[tagColors[color]]: variant === 'normal',
|
|
32396
32397
|
[tagLightColors[color]]: variant === 'light',
|
|
32397
|
-
'h-[14px] typography-
|
|
32398
|
-
'h-4 typography-
|
|
32399
|
-
'h-[18px] typography-
|
|
32400
|
-
'h-[22px] typography-
|
|
32398
|
+
'h-[14px] typography-label11regular': !isEditable && size === 'x-small',
|
|
32399
|
+
'h-4 typography-label12regular': !isEditable && size === 'small',
|
|
32400
|
+
'h-[18px] typography-label14regular': !isEditable && size === 'medium',
|
|
32401
|
+
'h-[22px] typography-label14regular': isEditable && size === 'medium',
|
|
32401
32402
|
'rounded-full': isEditable,
|
|
32402
32403
|
rounded: !isEditable,
|
|
32403
32404
|
'py-0.5 px-1': !isEditable,
|
|
@@ -32425,10 +32426,10 @@ const TextArea = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
32425
32426
|
const classes = clsx('w-full rounded border outline-0 placeholder:text-textPlaceholder disabled:text-textPlaceholder', {
|
|
32426
32427
|
'border-supportError': isError && !disabled,
|
|
32427
32428
|
'hover:border-hoverInput': !disabled && !isError,
|
|
32428
|
-
'border-
|
|
32429
|
+
'border-uiBorder02 hover:focus-within:border-activeInput focus-within:border-activeInput text-text01': !isError,
|
|
32429
32430
|
'bg-disabled02 border-disabled01': disabled,
|
|
32430
|
-
['typography-
|
|
32431
|
-
['text-4 px-3.5 py-2.5']: size === 'large',
|
|
32431
|
+
['typography-body14regular px-2 pt-1.5 pb-2']: size === 'medium',
|
|
32432
|
+
['text-4 leading-normal px-3.5 py-2.5']: size === 'large',
|
|
32432
32433
|
'text-supportError': isError,
|
|
32433
32434
|
'resize-none': !isResizable
|
|
32434
32435
|
});
|
|
@@ -32457,7 +32458,7 @@ const TextInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
32457
32458
|
} = _ref,
|
|
32458
32459
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
32459
32460
|
const inputWrapClasses = clsx('relative flex items-center gap-2 overflow-hidden rounded border', {
|
|
32460
|
-
'border-
|
|
32461
|
+
'border-uiBorder02': !isError && !disabled,
|
|
32461
32462
|
'border-supportError': isError && !disabled,
|
|
32462
32463
|
'hover:border-hoverInput': !disabled && !isError,
|
|
32463
32464
|
'hover:focus-within:border-activeInput': !isError,
|
|
@@ -32465,8 +32466,8 @@ const TextInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
32465
32466
|
'bg-disabled02 border-disabled01': disabled
|
|
32466
32467
|
});
|
|
32467
32468
|
const inputClasses = clsx('flex-1 pl-2 pr-3 outline-0 placeholder:text-textPlaceholder disabled:text-textPlaceholder', {
|
|
32468
|
-
['typography-
|
|
32469
|
-
['typography-
|
|
32469
|
+
['typography-label14regular min-h-8']: size === 'medium',
|
|
32470
|
+
['typography-label16regular min-h-10']: size === 'large',
|
|
32470
32471
|
'text-text01': !isError,
|
|
32471
32472
|
'text-supportError': isError
|
|
32472
32473
|
});
|
|
@@ -32522,7 +32523,7 @@ function Toast({
|
|
|
32522
32523
|
'fill-supportWarning': state === 'warning',
|
|
32523
32524
|
'fill-supportInfo': state === 'information'
|
|
32524
32525
|
});
|
|
32525
|
-
const textClasses = clsx$1('typography-
|
|
32526
|
+
const textClasses = clsx$1('typography-body13regular flex-1 pt-[3px]', {
|
|
32526
32527
|
'text-supportError': state === 'error',
|
|
32527
32528
|
'text-text01': state === 'success' || state === 'warning' || state === 'information'
|
|
32528
32529
|
});
|
|
@@ -32638,8 +32639,8 @@ function Toggle({
|
|
|
32638
32639
|
const labelClasses = clsx$1('break-all', {
|
|
32639
32640
|
'mr-2': labelPosition === 'left',
|
|
32640
32641
|
'ml-2': labelPosition === 'right',
|
|
32641
|
-
'typography-
|
|
32642
|
-
'typography-
|
|
32642
|
+
'typography-label12regular': size === 'small',
|
|
32643
|
+
'typography-label16regular': size === 'medium',
|
|
32643
32644
|
'pointer-events-none cursor-not-allowed text-disabled01': isDisabled,
|
|
32644
32645
|
'cursor-pointer text-text01': !isDisabled
|
|
32645
32646
|
});
|
|
@@ -32780,8 +32781,8 @@ const TooltipContent = ({
|
|
|
32780
32781
|
'w-[46px]': size !== 'small'
|
|
32781
32782
|
});
|
|
32782
32783
|
const tooltipBodyClasses = clsx$1('absolute z-tooltip inline-block w-max rounded bg-uiBackgroundTooltip text-textOnColor', {
|
|
32783
|
-
'typography-
|
|
32784
|
-
'typography-
|
|
32784
|
+
'typography-body12regular': size === 'small',
|
|
32785
|
+
'typography-body13regular': size === 'medium',
|
|
32785
32786
|
'px-2 pb-1 pt-1.5': size === 'small',
|
|
32786
32787
|
'px-4 py-3': size === 'medium',
|
|
32787
32788
|
'bottom-2': verticalPosition !== 'bottom' && size === 'small',
|