@zenkigen-inc/component-ui 1.8.2 → 1.9.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/index.esm.js +116 -116
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +118 -118
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -41,14 +41,14 @@ function Avatar(_ref) {
|
|
|
41
41
|
size = 'medium'
|
|
42
42
|
} = _ref,
|
|
43
43
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
44
|
-
const classes = clsx('flex items-center justify-center rounded-full text-
|
|
44
|
+
const classes = clsx('flex items-center justify-center rounded-full text-textOnColor', {
|
|
45
45
|
'w-16 h-16 typography-label1regular': size === 'x-large',
|
|
46
46
|
'w-12 h-12 typography-label2regular': size === 'large',
|
|
47
47
|
'w-10 h-10 typography-label2regular': size === 'medium',
|
|
48
48
|
'w-8 h-8 typography-label4regular': size === 'small',
|
|
49
49
|
'w-6 h-6 typography-label4regular': size === 'x-small',
|
|
50
|
-
'bg-
|
|
51
|
-
'bg-
|
|
50
|
+
'bg-disabled01': props.isDisabled,
|
|
51
|
+
'bg-icon01': !props.userId,
|
|
52
52
|
[userColors[((_props$userId = props.userId) != null ? _props$userId : 0) % userColors.length]]: props.userId && !props.isDisabled
|
|
53
53
|
});
|
|
54
54
|
const trimmedFirstName = props.firstName.replace(' ', ' ').trim();
|
|
@@ -64,7 +64,7 @@ const BreadcrumbItem = ({
|
|
|
64
64
|
children
|
|
65
65
|
}) => {
|
|
66
66
|
return /*#__PURE__*/jsx("li", {
|
|
67
|
-
className: "flex gap-2 after:content-['/'] last:after:content-none [&_a]:text-
|
|
67
|
+
className: "flex gap-2 after:content-['/'] last:after:content-none [&_a]:text-interactive02 [&_a]:hover:underline",
|
|
68
68
|
children: children
|
|
69
69
|
});
|
|
70
70
|
};
|
|
@@ -75,7 +75,7 @@ function Breadcrumb({
|
|
|
75
75
|
return /*#__PURE__*/jsx("nav", {
|
|
76
76
|
"aria-label": "breadcrumb",
|
|
77
77
|
children: /*#__PURE__*/jsx("ul", {
|
|
78
|
-
className: "typography-label2regular flex flex-wrap gap-2 whitespace-nowrap text-
|
|
78
|
+
className: "typography-label2regular flex flex-wrap gap-2 whitespace-nowrap text-text01",
|
|
79
79
|
children: children
|
|
80
80
|
})
|
|
81
81
|
});
|
|
@@ -100,7 +100,7 @@ function Button(_ref) {
|
|
|
100
100
|
'inline-flex': type === 'anchor',
|
|
101
101
|
[buttonColors[variant].selected]: props.isSelected,
|
|
102
102
|
[buttonColors[variant].base]: !props.isSelected,
|
|
103
|
-
'hover:text-
|
|
103
|
+
'hover:text-textOnColor active:text-textOnColor [&:hover>*]:fill-iconOnColor [&:active>*]:fill-iconOnColor': props.isSelected && variant !== 'outline' && variant !== 'text',
|
|
104
104
|
'pointer-events-none': props.isDisabled,
|
|
105
105
|
'rounded-button': !props.borderRadius,
|
|
106
106
|
'typography-label1regular': size === 'large',
|
|
@@ -135,7 +135,7 @@ const CheckedIcon = () => {
|
|
|
135
135
|
return /*#__PURE__*/jsx("svg", {
|
|
136
136
|
viewBox: "0 0 20 20",
|
|
137
137
|
xmlns: "http://www.w3.org/2000/svg",
|
|
138
|
-
className: "absolute z-10 size-5 rounded-sm fill-
|
|
138
|
+
className: "absolute z-10 size-5 rounded-sm fill-iconOnColor hover:rounded-sm",
|
|
139
139
|
children: /*#__PURE__*/jsx("path", {
|
|
140
140
|
fillRule: "evenodd",
|
|
141
141
|
clipRule: "evenodd",
|
|
@@ -148,7 +148,7 @@ const MinusIcon = () => {
|
|
|
148
148
|
return /*#__PURE__*/jsx("svg", {
|
|
149
149
|
viewBox: "0 0 20 20",
|
|
150
150
|
xmlns: "http://www.w3.org/2000/svg",
|
|
151
|
-
className: "absolute z-10 size-5 rounded-sm fill-
|
|
151
|
+
className: "absolute z-10 size-5 rounded-sm fill-iconOnColor hover:rounded-sm",
|
|
152
152
|
children: /*#__PURE__*/jsx("path", {
|
|
153
153
|
d: "M4.94723 10.5028H9.49726H10.5028H15.0528C15.3293 10.5028 15.5556 10.2766 15.5556 10C15.5556 9.72352 15.3293 9.49725 15.0528 9.49725H10.5028H9.49726H4.94723C4.67071 9.49725 4.44446 9.72352 4.44446 10C4.44446 10.2766 4.67071 10.5028 4.94723 10.5028Z"
|
|
154
154
|
})
|
|
@@ -181,34 +181,34 @@ function Checkbox({
|
|
|
181
181
|
'cursor-pointer': !isDisabled
|
|
182
182
|
});
|
|
183
183
|
const boxClasses = clsx$1('inline-flex size-5 items-center justify-center rounded-sm border bg-white', focusVisible.normalPeer, {
|
|
184
|
-
'border-
|
|
185
|
-
'border-
|
|
186
|
-
'border-
|
|
187
|
-
'border-
|
|
188
|
-
'border-
|
|
189
|
-
'border-
|
|
184
|
+
'border-disabled01': isDisabled,
|
|
185
|
+
'border-hoverUiBorder': !isDisabled && isMouseOver && color === 'default',
|
|
186
|
+
'border-uiBorder03': !isDisabled && !isMouseOver && color === 'default',
|
|
187
|
+
'border-interactive02': !isDisabled && !isMouseOver && color === 'gray',
|
|
188
|
+
'border-hoverError': !isDisabled && isMouseOver && color === 'error',
|
|
189
|
+
'border-supportError': !isDisabled && !isMouseOver && color === 'error'
|
|
190
190
|
});
|
|
191
191
|
const indicatorClasses = clsx$1('relative flex size-5 flex-[0_0_auto] items-center justify-center', {
|
|
192
|
-
'bg-
|
|
193
|
-
'border-
|
|
192
|
+
'bg-disabled01': isDisabled && isChecked,
|
|
193
|
+
'border-disabled01': isDisabled
|
|
194
194
|
});
|
|
195
195
|
const afterClasses = clsx$1('absolute inset-0 m-auto block rounded-sm', {
|
|
196
|
-
'bg-
|
|
197
|
-
'bg-
|
|
198
|
-
'bg-
|
|
199
|
-
'bg-
|
|
200
|
-
'bg-
|
|
201
|
-
'bg-
|
|
202
|
-
'bg-
|
|
196
|
+
'bg-disabled01': isDisabled && isChecked,
|
|
197
|
+
'bg-hover01': !(isDisabled && isChecked) && isMouseOver,
|
|
198
|
+
'bg-interactive01': !(isDisabled && isChecked) && !isMouseOver,
|
|
199
|
+
'bg-hover02Dark': !(isDisabled && isChecked) && isMouseOver && color === 'gray',
|
|
200
|
+
'bg-interactive02': !(isDisabled && isChecked) && !isMouseOver && color === 'gray',
|
|
201
|
+
'bg-hoverError': !(isDisabled && isChecked) && isMouseOver && color === 'error',
|
|
202
|
+
'bg-supportError': !(isDisabled && isChecked) && !isMouseOver && color === 'error',
|
|
203
203
|
'scale-0': !isChecked,
|
|
204
204
|
'scale-100': isChecked
|
|
205
205
|
});
|
|
206
206
|
const hoverIndicatorClasses = clsx$1('inline-block size-3 rounded-[1px]', {
|
|
207
|
-
'bg-
|
|
207
|
+
'bg-hoverUi': !isDisabled && !isChecked && isMouseOver
|
|
208
208
|
});
|
|
209
209
|
const labelClasses = clsx$1('typography-label2regular ml-2 flex-[1_0_0] break-all', {
|
|
210
|
-
'pointer-events-none cursor-not-allowed text-
|
|
211
|
-
'cursor-pointer text-
|
|
210
|
+
'pointer-events-none cursor-not-allowed text-disabled01': isDisabled,
|
|
211
|
+
'cursor-pointer text-text01': !isDisabled
|
|
212
212
|
});
|
|
213
213
|
return /*#__PURE__*/jsxs("div", {
|
|
214
214
|
className: "flex items-center",
|
|
@@ -31126,7 +31126,7 @@ const Icon = _ref => {
|
|
|
31126
31126
|
} = _ref,
|
|
31127
31127
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
31128
31128
|
const classes = clsx('inline-block shrink-0', {
|
|
31129
|
-
'fill-
|
|
31129
|
+
'fill-disabled01': props.isDisabled,
|
|
31130
31130
|
[iconColors.icon01]: !props.isDisabled && props.color === 'icon01',
|
|
31131
31131
|
[iconColors.icon01Dark]: !props.isDisabled && props.color === 'icon01Dark',
|
|
31132
31132
|
[iconColors.icon02]: !props.isDisabled && props.color === 'icon02',
|
|
@@ -31169,9 +31169,9 @@ function DropdownItem({
|
|
|
31169
31169
|
setIsVisible(false);
|
|
31170
31170
|
onClick && onClick(event);
|
|
31171
31171
|
};
|
|
31172
|
-
const itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-
|
|
31173
|
-
'bg-
|
|
31174
|
-
'fill-
|
|
31172
|
+
const itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-hover02 active:bg-active02', focusVisible.inset, {
|
|
31173
|
+
'bg-uiBackground01 fill-icon01 text-interactive02': color === 'gray',
|
|
31174
|
+
'fill-supportDanger text-supportDanger': color === 'red'
|
|
31175
31175
|
});
|
|
31176
31176
|
return /*#__PURE__*/jsx("li", {
|
|
31177
31177
|
className: "flex w-full items-center",
|
|
@@ -31198,9 +31198,9 @@ function DropdownMenu({
|
|
|
31198
31198
|
variant,
|
|
31199
31199
|
portalTargetRef
|
|
31200
31200
|
} = useContext(DropdownContext);
|
|
31201
|
-
const wrapperClasses = clsx$1('z-dropdown w-max overflow-y-auto rounded bg-
|
|
31201
|
+
const wrapperClasses = clsx$1('z-dropdown w-max overflow-y-auto rounded bg-uiBackground01 shadow-floatingShadow', {
|
|
31202
31202
|
absolute: !portalTargetRef,
|
|
31203
|
-
'border-solid border border-
|
|
31203
|
+
'border-solid border border-uiBorder01': variant === 'outline',
|
|
31204
31204
|
'py-1': !isNoPadding,
|
|
31205
31205
|
'left-0': horizontalAlign === 'left',
|
|
31206
31206
|
'right-0': horizontalAlign === 'right',
|
|
@@ -31255,9 +31255,9 @@ function Dropdown({
|
|
|
31255
31255
|
const wrapperClasses = clsx$1('relative flex shrink-0 items-center gap-1 rounded', {
|
|
31256
31256
|
'cursor-not-allowed': isDisabled
|
|
31257
31257
|
});
|
|
31258
|
-
const childrenButtonClasses = clsx$1('flex items-center justify-center rounded p-1 hover:bg-
|
|
31258
|
+
const childrenButtonClasses = clsx$1('flex items-center justify-center rounded p-1 hover:bg-hover02 active:bg-active02', focusVisible.normal, {
|
|
31259
31259
|
'pointer-events-none': isDisabled,
|
|
31260
|
-
'border border-
|
|
31260
|
+
'border border-uiBorder02': variant === 'outline'
|
|
31261
31261
|
});
|
|
31262
31262
|
const buttonClasses = clsx$1('flex items-center rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
|
|
31263
31263
|
'pointer-events-none': isDisabled,
|
|
@@ -31291,7 +31291,7 @@ function Dropdown({
|
|
|
31291
31291
|
onClick: handleToggle,
|
|
31292
31292
|
disabled: isDisabled,
|
|
31293
31293
|
children: [target, !isArrowHidden && /*#__PURE__*/jsx("div", {
|
|
31294
|
-
className: "ml-2 flex items-center fill-
|
|
31294
|
+
className: "ml-2 flex items-center fill-icon01",
|
|
31295
31295
|
children: /*#__PURE__*/jsx(Icon, {
|
|
31296
31296
|
name: isVisible ? 'angle-small-up' : 'angle-small-down',
|
|
31297
31297
|
size: size === 'large' ? 'medium' : 'small'
|
|
@@ -31348,7 +31348,7 @@ function EvaluationStar({
|
|
|
31348
31348
|
});
|
|
31349
31349
|
const ratingStars = [];
|
|
31350
31350
|
for (let i = 1; i < maxRating + 1; i++) {
|
|
31351
|
-
const color = i <= currentRating ? 'fill-yellow-yellow50' : 'fill-
|
|
31351
|
+
const color = i <= currentRating ? 'fill-yellow-yellow50' : 'fill-icon03';
|
|
31352
31352
|
ratingStars.push( /*#__PURE__*/jsx("button", {
|
|
31353
31353
|
type: "button",
|
|
31354
31354
|
onClick: () => handleChangeRating(i),
|
|
@@ -31365,7 +31365,7 @@ function EvaluationStar({
|
|
|
31365
31365
|
|
|
31366
31366
|
function Heading(props) {
|
|
31367
31367
|
const TagName = `h${props.level}`;
|
|
31368
|
-
const classes = clsx(`flex items-center text-
|
|
31368
|
+
const classes = clsx(`flex items-center text-text01`, typography.heading[TagName], {
|
|
31369
31369
|
'gap-2': props.level === 1,
|
|
31370
31370
|
'gap-1': props.level > 1
|
|
31371
31371
|
});
|
|
@@ -31438,7 +31438,7 @@ function Loading({
|
|
|
31438
31438
|
fill: "none",
|
|
31439
31439
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31440
31440
|
children: /*#__PURE__*/jsx("circle", {
|
|
31441
|
-
className: "origin-center animate-circular-small-move stroke-
|
|
31441
|
+
className: "origin-center animate-circular-small-move stroke-interactive01",
|
|
31442
31442
|
cx: "8",
|
|
31443
31443
|
cy: "8",
|
|
31444
31444
|
r: "7",
|
|
@@ -31452,7 +31452,7 @@ function Loading({
|
|
|
31452
31452
|
fill: "none",
|
|
31453
31453
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31454
31454
|
children: /*#__PURE__*/jsx("circle", {
|
|
31455
|
-
className: "origin-center animate-circular-medium-move stroke-
|
|
31455
|
+
className: "origin-center animate-circular-medium-move stroke-interactive01",
|
|
31456
31456
|
cx: "16",
|
|
31457
31457
|
cy: "16",
|
|
31458
31458
|
r: "15",
|
|
@@ -31466,7 +31466,7 @@ function Loading({
|
|
|
31466
31466
|
fill: "none",
|
|
31467
31467
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31468
31468
|
children: /*#__PURE__*/jsx("circle", {
|
|
31469
|
-
className: "origin-center animate-circular-large-move stroke-
|
|
31469
|
+
className: "origin-center animate-circular-large-move stroke-interactive01",
|
|
31470
31470
|
cx: "32",
|
|
31471
31471
|
cy: "32",
|
|
31472
31472
|
r: "30",
|
|
@@ -31497,7 +31497,7 @@ function ModalFooter({
|
|
|
31497
31497
|
isNoBorder
|
|
31498
31498
|
}) {
|
|
31499
31499
|
const wrapperClasses = clsx$1('flex w-full shrink-0 items-center rounded-b-lg px-6 py-4', {
|
|
31500
|
-
'border-t-[1px] border-
|
|
31500
|
+
'border-t-[1px] border-uiBorder01': !isNoBorder
|
|
31501
31501
|
});
|
|
31502
31502
|
return /*#__PURE__*/jsx("div", {
|
|
31503
31503
|
className: wrapperClasses,
|
|
@@ -31512,8 +31512,8 @@ function ModalHeader({
|
|
|
31512
31512
|
const {
|
|
31513
31513
|
onClose
|
|
31514
31514
|
} = useContext(ModalContext);
|
|
31515
|
-
const headerClasses = clsx$1('typography-h5 flex w-full shrink-0 items-center justify-between rounded-t-lg px-6 text-
|
|
31516
|
-
'border-b-[1px] border-
|
|
31515
|
+
const headerClasses = clsx$1('typography-h5 flex w-full shrink-0 items-center justify-between rounded-t-lg px-6 text-text01', {
|
|
31516
|
+
'border-b-[1px] border-uiBorder01': !isNoBorder,
|
|
31517
31517
|
'h-14': !onClose,
|
|
31518
31518
|
'h-12': onClose
|
|
31519
31519
|
});
|
|
@@ -31551,9 +31551,9 @@ function Modal({
|
|
|
31551
31551
|
onClose
|
|
31552
31552
|
},
|
|
31553
31553
|
children: /*#__PURE__*/jsx("div", {
|
|
31554
|
-
className: "fixed left-0 top-0 z-overlay flex size-full items-center justify-center bg-
|
|
31554
|
+
className: "fixed left-0 top-0 z-overlay flex size-full items-center justify-center bg-backgroundOverlayBlack py-4",
|
|
31555
31555
|
children: /*#__PURE__*/jsx("div", {
|
|
31556
|
-
className: "grid max-h-full min-h-[120px] grid-rows-[max-content_1fr_max-content] flex-col rounded-lg bg-
|
|
31556
|
+
className: "grid max-h-full min-h-[120px] grid-rows-[max-content_1fr_max-content] flex-col rounded-lg bg-uiBackground01 shadow-modalShadow",
|
|
31557
31557
|
style: {
|
|
31558
31558
|
width: renderWidth,
|
|
31559
31559
|
height: renderHeight
|
|
@@ -31574,20 +31574,20 @@ function NotificationInline(_ref) {
|
|
|
31574
31574
|
size = 'medium'
|
|
31575
31575
|
} = _ref,
|
|
31576
31576
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
31577
|
-
const wrapperClasses = clsx('typography-body2regular flex items-center gap-1 rounded text-
|
|
31578
|
-
'bg-
|
|
31579
|
-
'bg-
|
|
31580
|
-
'bg-
|
|
31581
|
-
'bg-
|
|
31582
|
-
'bg-
|
|
31577
|
+
const wrapperClasses = clsx('typography-body2regular flex items-center gap-1 rounded text-text01', {
|
|
31578
|
+
'bg-uiBackgroundError': state === 'attention',
|
|
31579
|
+
'bg-uiBackgroundWarning': state === 'warning',
|
|
31580
|
+
'bg-uiBackgroundBlue': state === 'information',
|
|
31581
|
+
'bg-uiBackgroundSuccess': state === 'success',
|
|
31582
|
+
'bg-uiBackgroundGray': state === 'default',
|
|
31583
31583
|
'p-2': size === 'small',
|
|
31584
31584
|
'p-3': size === 'medium'
|
|
31585
31585
|
});
|
|
31586
31586
|
const iconClasses = clsx('flex items-center', {
|
|
31587
|
-
'fill-
|
|
31588
|
-
'fill-
|
|
31587
|
+
'fill-supportError': state === 'attention',
|
|
31588
|
+
'fill-supportWarning': state === 'warning',
|
|
31589
31589
|
'fill-blue-blue50': state === 'information',
|
|
31590
|
-
'fill-
|
|
31590
|
+
'fill-supportSuccess': state === 'success'
|
|
31591
31591
|
});
|
|
31592
31592
|
const iconName = {
|
|
31593
31593
|
attention: 'attention',
|
|
@@ -31656,7 +31656,7 @@ function Pagination({
|
|
|
31656
31656
|
for (let i = start + offsetStart; i <= end + offsetEnd; i++) {
|
|
31657
31657
|
pageList.push(i);
|
|
31658
31658
|
}
|
|
31659
|
-
const threeDotIconClasses = 'flex h-8 w-8 items-center justify-center gap-1 fill-
|
|
31659
|
+
const threeDotIconClasses = 'flex h-8 w-8 items-center justify-center gap-1 fill-icon01';
|
|
31660
31660
|
return /*#__PURE__*/jsx(PaginationContext.Provider, {
|
|
31661
31661
|
value: {
|
|
31662
31662
|
currentPage
|
|
@@ -31729,9 +31729,9 @@ function SelectItem$1({
|
|
|
31729
31729
|
onChange == null || onChange(option);
|
|
31730
31730
|
setIsOptionListOpen(false);
|
|
31731
31731
|
};
|
|
31732
|
-
const itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-
|
|
31733
|
-
'text-
|
|
31734
|
-
'text-
|
|
31732
|
+
const itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-hover02 active:bg-active02', focusVisible.inset, {
|
|
31733
|
+
'text-interactive01 fill-interactive01 bg-selectedUi': option.id === (selectedOption == null ? void 0 : selectedOption.id),
|
|
31734
|
+
'text-interactive02 fill-icon01 bg-uiBackground01': option.id !== (selectedOption == null ? void 0 : selectedOption.id)
|
|
31735
31735
|
});
|
|
31736
31736
|
return /*#__PURE__*/jsx("li", {
|
|
31737
31737
|
className: "flex w-full items-center",
|
|
@@ -31785,13 +31785,13 @@ function SelectList$1({
|
|
|
31785
31785
|
}
|
|
31786
31786
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
31787
31787
|
}, []);
|
|
31788
|
-
const listClasses = clsx$1('absolute z-dropdown w-max overflow-y-auto rounded bg-
|
|
31788
|
+
const listClasses = clsx$1('absolute z-dropdown w-max overflow-y-auto rounded bg-uiBackground01 py-2 shadow-floatingShadow', {
|
|
31789
31789
|
'top-7': size === 'x-small' || size === 'small',
|
|
31790
31790
|
'top-9': size === 'medium',
|
|
31791
31791
|
'top-11': size === 'large',
|
|
31792
|
-
'border-solid border border-
|
|
31792
|
+
'border-solid border border-uiBorder01': variant === 'outline'
|
|
31793
31793
|
});
|
|
31794
|
-
const deselectButtonClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 text-
|
|
31794
|
+
const deselectButtonClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 text-interactive02 hover:bg-hover02 active:bg-active02', focusVisible.inset);
|
|
31795
31795
|
return /*#__PURE__*/jsxs("ul", {
|
|
31796
31796
|
className: listClasses,
|
|
31797
31797
|
style: {
|
|
@@ -31923,7 +31923,7 @@ function PaginationSelect({
|
|
|
31923
31923
|
children: [/*#__PURE__*/jsxs("div", {
|
|
31924
31924
|
className: "flex items-center gap-x-2",
|
|
31925
31925
|
children: [/*#__PURE__*/jsxs("div", {
|
|
31926
|
-
className: "typography-label2regular text-
|
|
31926
|
+
className: "typography-label2regular text-text01",
|
|
31927
31927
|
children: [(currentPage - 1) * sizePerPage + 1, " -", ' ', currentPage * sizePerPage > totalSize ? totalSize : currentPage * sizePerPage, countLabel]
|
|
31928
31928
|
}), /*#__PURE__*/jsx(Select, {
|
|
31929
31929
|
size: "medium",
|
|
@@ -31935,7 +31935,7 @@ function PaginationSelect({
|
|
|
31935
31935
|
option: option
|
|
31936
31936
|
}, option.id))
|
|
31937
31937
|
}), /*#__PURE__*/jsxs("div", {
|
|
31938
|
-
className: "typography-label2regular text-
|
|
31938
|
+
className: "typography-label2regular text-text03",
|
|
31939
31939
|
children: ["/ ", pageMax, pageLabel]
|
|
31940
31940
|
})]
|
|
31941
31941
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -31979,24 +31979,24 @@ function Radio({
|
|
|
31979
31979
|
'cursor-pointer': !isDisabled
|
|
31980
31980
|
});
|
|
31981
31981
|
const boxClasses = clsx$1('inline-flex size-5 items-center justify-center rounded-full border border-solid bg-white', focusVisible.normalPeer, {
|
|
31982
|
-
'border-
|
|
31983
|
-
'border-
|
|
31984
|
-
'border-
|
|
31982
|
+
'border-disabled01 hover:border-disabled01': isDisabled && !isMouseOver,
|
|
31983
|
+
'border-hoverUiBorder': !isDisabled && isMouseOver,
|
|
31984
|
+
'border-uiBorder03': !isDisabled,
|
|
31985
31985
|
'cursor-not-allowed': isDisabled,
|
|
31986
31986
|
'cursor-pointer': !isDisabled
|
|
31987
31987
|
});
|
|
31988
31988
|
const afterClasses = clsx$1('absolute inset-0 m-auto block size-3 rounded-full', {
|
|
31989
|
-
'bg-
|
|
31990
|
-
'bg-
|
|
31989
|
+
'bg-disabled01': isDisabled && isChecked,
|
|
31990
|
+
'bg-activeSelectedUi': !isDisabled && isChecked,
|
|
31991
31991
|
'scale-0': !isChecked,
|
|
31992
31992
|
'scale-100': isChecked
|
|
31993
31993
|
});
|
|
31994
31994
|
const hoverIndicatorClasses = clsx$1('inline-block size-3 rounded-full', {
|
|
31995
|
-
'bg-
|
|
31995
|
+
'bg-hoverUi': !isDisabled && !isChecked && isMouseOver
|
|
31996
31996
|
});
|
|
31997
31997
|
const labelClasses = clsx$1('typography-label2regular ml-2 flex-[1_0_0] select-none break-all', {
|
|
31998
|
-
'pointer-events-none cursor-not-allowed text-
|
|
31999
|
-
'cursor-pointer text-
|
|
31998
|
+
'pointer-events-none cursor-not-allowed text-disabled01': isDisabled,
|
|
31999
|
+
'cursor-pointer text-text01': !isDisabled
|
|
32000
32000
|
});
|
|
32001
32001
|
return /*#__PURE__*/jsxs("div", {
|
|
32002
32002
|
className: "flex items-center",
|
|
@@ -32039,12 +32039,12 @@ const Search = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
32039
32039
|
size = 'medium'
|
|
32040
32040
|
} = _ref,
|
|
32041
32041
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
32042
|
-
const classes = clsx('flex items-center rounded-full border border-
|
|
32042
|
+
const classes = clsx('flex items-center rounded-full border border-uiBorder02 focus-within:border-activeInput', {
|
|
32043
32043
|
'h-8 px-3': size === 'medium'
|
|
32044
32044
|
}, {
|
|
32045
32045
|
'h-10 px-4': size === 'large'
|
|
32046
32046
|
});
|
|
32047
|
-
const inputClasses = clsx('mx-2.5 h-full flex-1 text-
|
|
32047
|
+
const inputClasses = clsx('mx-2.5 h-full flex-1 text-text01 outline-0 placeholder:text-textPlaceholder', {
|
|
32048
32048
|
['typography-label2regular']: size === 'medium',
|
|
32049
32049
|
['typography-label1regular']: size === 'large'
|
|
32050
32050
|
});
|
|
@@ -32087,9 +32087,9 @@ function SelectItem({
|
|
|
32087
32087
|
isSortKey,
|
|
32088
32088
|
onClickItem
|
|
32089
32089
|
}) {
|
|
32090
|
-
const itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-
|
|
32091
|
-
'bg-
|
|
32092
|
-
'bg-
|
|
32090
|
+
const itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-hover02 active:bg-active02', focusVisible.inset, {
|
|
32091
|
+
'bg-selectedUi fill-interactive01 text-interactive01': isSortKey,
|
|
32092
|
+
'bg-uiBackground01 fill-icon01 text-interactive02': !isSortKey
|
|
32093
32093
|
});
|
|
32094
32094
|
return /*#__PURE__*/jsx("li", {
|
|
32095
32095
|
className: "flex w-full items-center",
|
|
@@ -32118,13 +32118,13 @@ function SelectList({
|
|
|
32118
32118
|
onClickItem,
|
|
32119
32119
|
onClickDeselect
|
|
32120
32120
|
}) {
|
|
32121
|
-
const listClasses = clsx$1('absolute z-dropdown w-max overflow-y-auto rounded bg-
|
|
32121
|
+
const listClasses = clsx$1('absolute z-dropdown w-max overflow-y-auto rounded bg-uiBackground01 py-2 shadow-floatingShadow', {
|
|
32122
32122
|
'top-7': size === 'x-small' || size === 'small',
|
|
32123
32123
|
'top-9': size === 'medium',
|
|
32124
32124
|
'top-11': size === 'large',
|
|
32125
|
-
'border-solid border border-
|
|
32125
|
+
'border-solid border border-uiBorder01': variant === 'outline'
|
|
32126
32126
|
});
|
|
32127
|
-
const deselectButtonClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 text-
|
|
32127
|
+
const deselectButtonClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 text-interactive02 hover:bg-hover02 active:bg-active02', focusVisible.inset);
|
|
32128
32128
|
return /*#__PURE__*/jsxs("ul", {
|
|
32129
32129
|
className: listClasses,
|
|
32130
32130
|
children: [/*#__PURE__*/jsx(SelectItem, {
|
|
@@ -32220,11 +32220,11 @@ function SelectSort({
|
|
|
32220
32220
|
}
|
|
32221
32221
|
|
|
32222
32222
|
const TabItem = props => {
|
|
32223
|
-
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-
|
|
32223
|
+
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', {
|
|
32224
32224
|
'typography-label2regular': !props.isSelected,
|
|
32225
|
-
'text-
|
|
32225
|
+
'text-interactive02 hover:before:bg-uiBorder02Dark': !props.isSelected,
|
|
32226
32226
|
'typography-label2bold': props.isSelected,
|
|
32227
|
-
'before:bg-
|
|
32227
|
+
'before:bg-interactive01 hover:before:bg-interactive01 pointer-events-none': props.isSelected
|
|
32228
32228
|
});
|
|
32229
32229
|
return /*#__PURE__*/jsx("button", {
|
|
32230
32230
|
type: "button",
|
|
@@ -32242,7 +32242,7 @@ function Tab({
|
|
|
32242
32242
|
}) {
|
|
32243
32243
|
return /*#__PURE__*/jsx("div", {
|
|
32244
32244
|
role: "tablist",
|
|
32245
|
-
className: "relative flex gap-4 px-6 before:absolute before:inset-x-0 before:bottom-0 before:h-px before:bg-
|
|
32245
|
+
className: "relative flex gap-4 px-6 before:absolute before:inset-x-0 before:bottom-0 before:h-px before:bg-uiBorder01",
|
|
32246
32246
|
children: children
|
|
32247
32247
|
});
|
|
32248
32248
|
}
|
|
@@ -32253,7 +32253,7 @@ function TableCell({
|
|
|
32253
32253
|
className
|
|
32254
32254
|
}) {
|
|
32255
32255
|
return /*#__PURE__*/jsx("div", {
|
|
32256
|
-
className: clsx$1('border-b-[1px] border-
|
|
32256
|
+
className: clsx$1('border-b-[1px] border-uiBorder01', className),
|
|
32257
32257
|
children: children
|
|
32258
32258
|
});
|
|
32259
32259
|
}
|
|
@@ -32262,7 +32262,7 @@ function TableRow({
|
|
|
32262
32262
|
children,
|
|
32263
32263
|
isHoverBackgroundVisible
|
|
32264
32264
|
}) {
|
|
32265
|
-
const rowClasses = clsx$1('contents', isHoverBackgroundVisible && '[&:hover>div]:bg-
|
|
32265
|
+
const rowClasses = clsx$1('contents', isHoverBackgroundVisible && '[&:hover>div]:bg-hoverUi02');
|
|
32266
32266
|
return /*#__PURE__*/jsx("div", {
|
|
32267
32267
|
className: rowClasses,
|
|
32268
32268
|
children: children
|
|
@@ -32297,10 +32297,10 @@ const DeleteIcon = ({
|
|
|
32297
32297
|
variant,
|
|
32298
32298
|
onClick
|
|
32299
32299
|
}) => {
|
|
32300
|
-
const deleteButtonClasses = clsx$1('group ml-2 size-[14px] rounded-full p-0.5 hover:cursor-pointer hover:bg-
|
|
32300
|
+
const deleteButtonClasses = clsx$1('group ml-2 size-[14px] rounded-full p-0.5 hover:cursor-pointer hover:bg-iconOnColor focus-visible:bg-iconOnColor', focusVisible.normal);
|
|
32301
32301
|
const deletePathClasses = clsx$1({
|
|
32302
|
-
'fill-
|
|
32303
|
-
'group-hover:fill-
|
|
32302
|
+
'fill-interactive02': color === 'gray' || variant === 'light',
|
|
32303
|
+
'group-hover:fill-interactive02 group-focus-visible:fill-interactive02 fill-iconOnColor': color !== 'gray'
|
|
32304
32304
|
});
|
|
32305
32305
|
return /*#__PURE__*/jsx("button", {
|
|
32306
32306
|
type: "button",
|
|
@@ -32358,14 +32358,14 @@ const TextArea = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
32358
32358
|
isError
|
|
32359
32359
|
} = _ref,
|
|
32360
32360
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
32361
|
-
const classes = clsx('w-full rounded border outline-0 placeholder:text-
|
|
32362
|
-
'border-
|
|
32363
|
-
'hover:border-
|
|
32364
|
-
'border-
|
|
32365
|
-
'bg-
|
|
32361
|
+
const classes = clsx('w-full rounded border outline-0 placeholder:text-textPlaceholder disabled:text-textPlaceholder', {
|
|
32362
|
+
'border-supportError': isError && !props.disabled,
|
|
32363
|
+
'hover:border-hoverInput': !props.disabled && !isError,
|
|
32364
|
+
'border-uiBorder01 hover:focus-within:border-activeInput focus-within:border-activeInput text-text01': !isError,
|
|
32365
|
+
'bg-disabled02 border-disabled01': props.disabled,
|
|
32366
32366
|
['typography-body1regular px-2 pt-1.5 pb-2']: size === 'medium',
|
|
32367
32367
|
['text-4 px-3.5 py-2.5']: size === 'large',
|
|
32368
|
-
'text-
|
|
32368
|
+
'text-supportError': isError,
|
|
32369
32369
|
'resize-none': !isResizable
|
|
32370
32370
|
});
|
|
32371
32371
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -32391,18 +32391,18 @@ const TextInput = /*#__PURE__*/forwardRef((_ref, ref) => {
|
|
|
32391
32391
|
} = _ref,
|
|
32392
32392
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
32393
32393
|
const inputWrapClasses = clsx('relative flex items-center gap-2 overflow-hidden rounded border', {
|
|
32394
|
-
'border-
|
|
32395
|
-
'border-
|
|
32396
|
-
'hover:border-
|
|
32397
|
-
'hover:focus-within:border-
|
|
32398
|
-
'focus-within:border-
|
|
32399
|
-
'bg-
|
|
32394
|
+
'border-uiBorder01': !isError,
|
|
32395
|
+
'border-supportError': isError && !props.disabled,
|
|
32396
|
+
'hover:border-hoverInput': !props.disabled && !isError,
|
|
32397
|
+
'hover:focus-within:border-activeInput': !isError,
|
|
32398
|
+
'focus-within:border-activeInput': !isError,
|
|
32399
|
+
'bg-disabled02 border-disabled01': props.disabled
|
|
32400
32400
|
});
|
|
32401
|
-
const inputClasses = clsx('flex-1 pl-2 pr-3 outline-0 placeholder:text-
|
|
32401
|
+
const inputClasses = clsx('flex-1 pl-2 pr-3 outline-0 placeholder:text-textPlaceholder disabled:text-textPlaceholder', {
|
|
32402
32402
|
['typography-label2regular pt-1.5 pb-2']: size === 'medium',
|
|
32403
32403
|
['typography-label1regular py-2.5']: size === 'large',
|
|
32404
|
-
'text-
|
|
32405
|
-
'text-
|
|
32404
|
+
'text-text01': !isError,
|
|
32405
|
+
'text-supportError': isError
|
|
32406
32406
|
});
|
|
32407
32407
|
return /*#__PURE__*/jsxs("div", {
|
|
32408
32408
|
className: inputWrapClasses,
|
|
@@ -32450,14 +32450,14 @@ function Toast({
|
|
|
32450
32450
|
['animate-toast-out opacity-0']: isAnimation && isRemoving
|
|
32451
32451
|
});
|
|
32452
32452
|
const iconClasses = clsx$1('flex items-center', {
|
|
32453
|
-
'fill-
|
|
32454
|
-
'fill-
|
|
32455
|
-
'fill-
|
|
32456
|
-
'fill-
|
|
32453
|
+
'fill-supportSuccess': state === 'success',
|
|
32454
|
+
'fill-supportError': state === 'error',
|
|
32455
|
+
'fill-supportWarning': state === 'warning',
|
|
32456
|
+
'fill-supportInfo': state === 'information'
|
|
32457
32457
|
});
|
|
32458
32458
|
const textClasses = clsx$1('typography-body2regular flex-1 pt-[3px]', {
|
|
32459
|
-
'text-
|
|
32460
|
-
'text-
|
|
32459
|
+
'text-supportError': state === 'error',
|
|
32460
|
+
'text-text01': state === 'success' || state === 'warning' || state === 'information'
|
|
32461
32461
|
});
|
|
32462
32462
|
const iconName = {
|
|
32463
32463
|
success: 'success-filled',
|
|
@@ -32555,15 +32555,15 @@ function Toggle({
|
|
|
32555
32555
|
isDisabled
|
|
32556
32556
|
}) {
|
|
32557
32557
|
const baseClasses = clsx$1('relative flex items-center rounded-full', {
|
|
32558
|
-
'bg-
|
|
32559
|
-
'bg-
|
|
32560
|
-
'bg-
|
|
32561
|
-
'bg-
|
|
32558
|
+
'bg-disabledOn': isDisabled && isChecked,
|
|
32559
|
+
'bg-disabled01': isDisabled && !isChecked,
|
|
32560
|
+
'bg-interactive01 peer-hover:bg-hover01': !isDisabled && isChecked,
|
|
32561
|
+
'bg-interactive02 peer-hover:bg-hover02Dark': !isDisabled && !isChecked,
|
|
32562
32562
|
'w-8 h-4 px-[3px]': size === 'small',
|
|
32563
32563
|
'w-12 h-6 px-1': size === 'medium'
|
|
32564
32564
|
});
|
|
32565
32565
|
const inputClasses = clsx$1('peer absolute inset-0 z-[1] opacity-0', isDisabled ? 'cursor-not-allowed' : 'cursor-pointer');
|
|
32566
|
-
const indicatorClasses = clsx$1('rounded-full bg-
|
|
32566
|
+
const indicatorClasses = clsx$1('rounded-full bg-iconOnColor', {
|
|
32567
32567
|
'w-2.5 h-2.5': size === 'small',
|
|
32568
32568
|
'w-4 h-4': size === 'medium',
|
|
32569
32569
|
'ml-auto': isChecked
|
|
@@ -32573,8 +32573,8 @@ function Toggle({
|
|
|
32573
32573
|
'ml-2': labelPosition === 'right',
|
|
32574
32574
|
'typography-label3regular': size === 'small',
|
|
32575
32575
|
'typography-label1regular': size === 'medium',
|
|
32576
|
-
'pointer-events-none cursor-not-allowed text-
|
|
32577
|
-
'cursor-pointer text-
|
|
32576
|
+
'pointer-events-none cursor-not-allowed text-disabled01': isDisabled,
|
|
32577
|
+
'cursor-pointer text-text01': !isDisabled
|
|
32578
32578
|
});
|
|
32579
32579
|
return /*#__PURE__*/jsxs("div", {
|
|
32580
32580
|
className: "relative flex flex-[0_0_auto] items-center",
|
|
@@ -32654,7 +32654,7 @@ const useTooltip = () => {
|
|
|
32654
32654
|
};
|
|
32655
32655
|
|
|
32656
32656
|
const TailIcon = props => {
|
|
32657
|
-
const tailClasses = clsx$1('absolute fill-
|
|
32657
|
+
const tailClasses = clsx$1('absolute fill-uiBackgroundTooltip', {
|
|
32658
32658
|
'rotate-180': props.verticalPosition === 'bottom',
|
|
32659
32659
|
'rotate-0': props.verticalPosition !== 'bottom',
|
|
32660
32660
|
'-top-1': props.verticalPosition === 'bottom' && props.size === 'small',
|
|
@@ -32712,7 +32712,7 @@ const TooltipContent = ({
|
|
|
32712
32712
|
'w-[24px]': size === 'small',
|
|
32713
32713
|
'w-[46px]': size !== 'small'
|
|
32714
32714
|
});
|
|
32715
|
-
const tooltipBodyClasses = clsx$1('absolute z-tooltip inline-block w-max rounded bg-
|
|
32715
|
+
const tooltipBodyClasses = clsx$1('absolute z-tooltip inline-block w-max rounded bg-uiBackgroundTooltip text-textOnColor', {
|
|
32716
32716
|
'typography-body3regular': size === 'small',
|
|
32717
32717
|
'typography-body2regular': size === 'medium',
|
|
32718
32718
|
'px-2 pb-1 pt-1.5': size === 'small',
|