@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.esm.js
CHANGED
|
@@ -40,14 +40,14 @@ function Avatar(_ref) {
|
|
|
40
40
|
var _ref$size = _ref.size,
|
|
41
41
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
42
42
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
|
|
43
|
-
var classes = clsx('flex items-center justify-center rounded-full text-
|
|
43
|
+
var classes = clsx('flex items-center justify-center rounded-full text-textOnColor', (_clsx = {
|
|
44
44
|
'w-16 h-16 typography-label1regular': size === 'x-large',
|
|
45
45
|
'w-12 h-12 typography-label2regular': size === 'large',
|
|
46
46
|
'w-10 h-10 typography-label2regular': size === 'medium',
|
|
47
47
|
'w-8 h-8 typography-label4regular': size === 'small',
|
|
48
48
|
'w-6 h-6 typography-label4regular': size === 'x-small',
|
|
49
|
-
'bg-
|
|
50
|
-
'bg-
|
|
49
|
+
'bg-disabled01': props.isDisabled,
|
|
50
|
+
'bg-icon01': !props.userId
|
|
51
51
|
}, _clsx[userColors[((_props$userId = props.userId) != null ? _props$userId : 0) % userColors.length]] = props.userId && !props.isDisabled, _clsx));
|
|
52
52
|
var trimmedFirstName = props.firstName.replace(' ', ' ').trim();
|
|
53
53
|
var trimmedLastName = props.lastName.replace(' ', ' ').trim().trim();
|
|
@@ -61,7 +61,7 @@ function Avatar(_ref) {
|
|
|
61
61
|
var BreadcrumbItem = function BreadcrumbItem(_ref) {
|
|
62
62
|
var children = _ref.children;
|
|
63
63
|
return /*#__PURE__*/jsx("li", {
|
|
64
|
-
className: "flex gap-2 after:content-['/'] last:after:content-none [&_a]:text-
|
|
64
|
+
className: "flex gap-2 after:content-['/'] last:after:content-none [&_a]:text-interactive02 [&_a]:hover:underline",
|
|
65
65
|
children: children
|
|
66
66
|
});
|
|
67
67
|
};
|
|
@@ -71,7 +71,7 @@ function Breadcrumb(_ref) {
|
|
|
71
71
|
return /*#__PURE__*/jsx("nav", {
|
|
72
72
|
"aria-label": "breadcrumb",
|
|
73
73
|
children: /*#__PURE__*/jsx("ul", {
|
|
74
|
-
className: "typography-label2regular flex flex-wrap gap-2 whitespace-nowrap text-
|
|
74
|
+
className: "typography-label2regular flex flex-wrap gap-2 whitespace-nowrap text-text01",
|
|
75
75
|
children: children
|
|
76
76
|
})
|
|
77
77
|
});
|
|
@@ -96,7 +96,7 @@ function Button(_ref) {
|
|
|
96
96
|
'h-8 px-3': size === 'medium',
|
|
97
97
|
'h-10 px-4 leading-[24px]': size === 'large',
|
|
98
98
|
'inline-flex': type === 'anchor'
|
|
99
|
-
}, _clsx[buttonColors[variant].selected] = props.isSelected, _clsx[buttonColors[variant].base] = !props.isSelected, _clsx['hover:text-
|
|
99
|
+
}, _clsx[buttonColors[variant].selected] = props.isSelected, _clsx[buttonColors[variant].base] = !props.isSelected, _clsx['hover:text-textOnColor active:text-textOnColor [&:hover>*]:fill-iconOnColor [&:active>*]:fill-iconOnColor'] = props.isSelected && variant !== 'outline' && variant !== 'text', _clsx['pointer-events-none'] = props.isDisabled, _clsx['rounded-button'] = !props.borderRadius, _clsx['typography-label1regular'] = size === 'large', _clsx['typography-label2regular'] = size !== 'large', _clsx));
|
|
100
100
|
if (type === 'anchor') {
|
|
101
101
|
return /*#__PURE__*/jsxs("a", {
|
|
102
102
|
className: baseClasses,
|
|
@@ -126,7 +126,7 @@ var CheckedIcon = function CheckedIcon() {
|
|
|
126
126
|
return /*#__PURE__*/jsx("svg", {
|
|
127
127
|
viewBox: "0 0 20 20",
|
|
128
128
|
xmlns: "http://www.w3.org/2000/svg",
|
|
129
|
-
className: "absolute z-10 size-5 rounded-sm fill-
|
|
129
|
+
className: "absolute z-10 size-5 rounded-sm fill-iconOnColor hover:rounded-sm",
|
|
130
130
|
children: /*#__PURE__*/jsx("path", {
|
|
131
131
|
fillRule: "evenodd",
|
|
132
132
|
clipRule: "evenodd",
|
|
@@ -139,7 +139,7 @@ var MinusIcon = function MinusIcon() {
|
|
|
139
139
|
return /*#__PURE__*/jsx("svg", {
|
|
140
140
|
viewBox: "0 0 20 20",
|
|
141
141
|
xmlns: "http://www.w3.org/2000/svg",
|
|
142
|
-
className: "absolute z-10 size-5 rounded-sm fill-
|
|
142
|
+
className: "absolute z-10 size-5 rounded-sm fill-iconOnColor hover:rounded-sm",
|
|
143
143
|
children: /*#__PURE__*/jsx("path", {
|
|
144
144
|
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"
|
|
145
145
|
})
|
|
@@ -177,34 +177,34 @@ function Checkbox(_ref) {
|
|
|
177
177
|
'cursor-pointer': !isDisabled
|
|
178
178
|
});
|
|
179
179
|
var boxClasses = clsx$1('inline-flex size-5 items-center justify-center rounded-sm border bg-white', focusVisible.normalPeer, {
|
|
180
|
-
'border-
|
|
181
|
-
'border-
|
|
182
|
-
'border-
|
|
183
|
-
'border-
|
|
184
|
-
'border-
|
|
185
|
-
'border-
|
|
180
|
+
'border-disabled01': isDisabled,
|
|
181
|
+
'border-hoverUiBorder': !isDisabled && isMouseOver && color === 'default',
|
|
182
|
+
'border-uiBorder03': !isDisabled && !isMouseOver && color === 'default',
|
|
183
|
+
'border-interactive02': !isDisabled && !isMouseOver && color === 'gray',
|
|
184
|
+
'border-hoverError': !isDisabled && isMouseOver && color === 'error',
|
|
185
|
+
'border-supportError': !isDisabled && !isMouseOver && color === 'error'
|
|
186
186
|
});
|
|
187
187
|
var indicatorClasses = clsx$1('relative flex size-5 flex-[0_0_auto] items-center justify-center', {
|
|
188
|
-
'bg-
|
|
189
|
-
'border-
|
|
188
|
+
'bg-disabled01': isDisabled && isChecked,
|
|
189
|
+
'border-disabled01': isDisabled
|
|
190
190
|
});
|
|
191
191
|
var afterClasses = clsx$1('absolute inset-0 m-auto block rounded-sm', {
|
|
192
|
-
'bg-
|
|
193
|
-
'bg-
|
|
194
|
-
'bg-
|
|
195
|
-
'bg-
|
|
196
|
-
'bg-
|
|
197
|
-
'bg-
|
|
198
|
-
'bg-
|
|
192
|
+
'bg-disabled01': isDisabled && isChecked,
|
|
193
|
+
'bg-hover01': !(isDisabled && isChecked) && isMouseOver,
|
|
194
|
+
'bg-interactive01': !(isDisabled && isChecked) && !isMouseOver,
|
|
195
|
+
'bg-hover02Dark': !(isDisabled && isChecked) && isMouseOver && color === 'gray',
|
|
196
|
+
'bg-interactive02': !(isDisabled && isChecked) && !isMouseOver && color === 'gray',
|
|
197
|
+
'bg-hoverError': !(isDisabled && isChecked) && isMouseOver && color === 'error',
|
|
198
|
+
'bg-supportError': !(isDisabled && isChecked) && !isMouseOver && color === 'error',
|
|
199
199
|
'scale-0': !isChecked,
|
|
200
200
|
'scale-100': isChecked
|
|
201
201
|
});
|
|
202
202
|
var hoverIndicatorClasses = clsx$1('inline-block size-3 rounded-[1px]', {
|
|
203
|
-
'bg-
|
|
203
|
+
'bg-hoverUi': !isDisabled && !isChecked && isMouseOver
|
|
204
204
|
});
|
|
205
205
|
var labelClasses = clsx$1('typography-label2regular ml-2 flex-[1_0_0] break-all', {
|
|
206
|
-
'pointer-events-none cursor-not-allowed text-
|
|
207
|
-
'cursor-pointer text-
|
|
206
|
+
'pointer-events-none cursor-not-allowed text-disabled01': isDisabled,
|
|
207
|
+
'cursor-pointer text-text01': !isDisabled
|
|
208
208
|
});
|
|
209
209
|
return /*#__PURE__*/jsxs("div", {
|
|
210
210
|
className: "flex items-center",
|
|
@@ -31127,7 +31127,7 @@ var Icon = function Icon(_ref) {
|
|
|
31127
31127
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
31128
31128
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
31129
31129
|
var classes = clsx('inline-block shrink-0', (_clsx = {
|
|
31130
|
-
'fill-
|
|
31130
|
+
'fill-disabled01': props.isDisabled
|
|
31131
31131
|
}, _clsx[iconColors.icon01] = !props.isDisabled && props.color === 'icon01', _clsx[iconColors.icon01Dark] = !props.isDisabled && props.color === 'icon01Dark', _clsx[iconColors.icon02] = !props.isDisabled && props.color === 'icon02', _clsx[iconColors.icon02Dark] = !props.isDisabled && props.color === 'icon02Dark', _clsx[iconColors.icon03] = !props.isDisabled && props.color === 'icon03', _clsx[iconColors.icon03Dark] = !props.isDisabled && props.color === 'icon03Dark', _clsx[iconColors.iconOnColor] = !props.isDisabled && props.color === 'iconOnColor', _clsx['w-3 h-3'] = size === 'x-small', _clsx['w-4 h-4'] = size === 'small', _clsx['w-6 h-6'] = size === 'medium', _clsx['w-8 h-8'] = size === 'large', _clsx['w-10 h-10'] = size === 'x-large', _clsx));
|
|
31132
31132
|
return /*#__PURE__*/jsx("span", {
|
|
31133
31133
|
className: classes,
|
|
@@ -31159,9 +31159,9 @@ function DropdownItem(_ref) {
|
|
|
31159
31159
|
setIsVisible(false);
|
|
31160
31160
|
onClick && onClick(event);
|
|
31161
31161
|
};
|
|
31162
|
-
var itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-
|
|
31163
|
-
'bg-
|
|
31164
|
-
'fill-
|
|
31162
|
+
var itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-hover02 active:bg-active02', focusVisible.inset, {
|
|
31163
|
+
'bg-uiBackground01 fill-icon01 text-interactive02': color === 'gray',
|
|
31164
|
+
'fill-supportDanger text-supportDanger': color === 'red'
|
|
31165
31165
|
});
|
|
31166
31166
|
return /*#__PURE__*/jsx("li", {
|
|
31167
31167
|
className: "flex w-full items-center",
|
|
@@ -31188,9 +31188,9 @@ function DropdownMenu(_ref) {
|
|
|
31188
31188
|
targetDimensions = _useContext.targetDimensions,
|
|
31189
31189
|
variant = _useContext.variant,
|
|
31190
31190
|
portalTargetRef = _useContext.portalTargetRef;
|
|
31191
|
-
var wrapperClasses = clsx$1('z-dropdown w-max overflow-y-auto rounded bg-
|
|
31191
|
+
var wrapperClasses = clsx$1('z-dropdown w-max overflow-y-auto rounded bg-uiBackground01 shadow-floatingShadow', {
|
|
31192
31192
|
absolute: !portalTargetRef,
|
|
31193
|
-
'border-solid border border-
|
|
31193
|
+
'border-solid border border-uiBorder01': variant === 'outline',
|
|
31194
31194
|
'py-1': !isNoPadding,
|
|
31195
31195
|
'left-0': horizontalAlign === 'left',
|
|
31196
31196
|
'right-0': horizontalAlign === 'right',
|
|
@@ -31254,9 +31254,9 @@ function Dropdown(_ref) {
|
|
|
31254
31254
|
var wrapperClasses = clsx$1('relative flex shrink-0 items-center gap-1 rounded', {
|
|
31255
31255
|
'cursor-not-allowed': isDisabled
|
|
31256
31256
|
});
|
|
31257
|
-
var childrenButtonClasses = clsx$1('flex items-center justify-center rounded p-1 hover:bg-
|
|
31257
|
+
var childrenButtonClasses = clsx$1('flex items-center justify-center rounded p-1 hover:bg-hover02 active:bg-active02', focusVisible.normal, {
|
|
31258
31258
|
'pointer-events-none': isDisabled,
|
|
31259
|
-
'border border-
|
|
31259
|
+
'border border-uiBorder02': variant === 'outline'
|
|
31260
31260
|
});
|
|
31261
31261
|
var buttonClasses = clsx$1('flex items-center rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
|
|
31262
31262
|
'pointer-events-none': isDisabled,
|
|
@@ -31290,7 +31290,7 @@ function Dropdown(_ref) {
|
|
|
31290
31290
|
onClick: handleToggle,
|
|
31291
31291
|
disabled: isDisabled,
|
|
31292
31292
|
children: [target, !isArrowHidden && /*#__PURE__*/jsx("div", {
|
|
31293
|
-
className: "ml-2 flex items-center fill-
|
|
31293
|
+
className: "ml-2 flex items-center fill-icon01",
|
|
31294
31294
|
children: /*#__PURE__*/jsx(Icon, {
|
|
31295
31295
|
name: isVisible ? 'angle-small-up' : 'angle-small-down',
|
|
31296
31296
|
size: size === 'large' ? 'medium' : 'small'
|
|
@@ -31350,7 +31350,7 @@ function EvaluationStar(_ref) {
|
|
|
31350
31350
|
});
|
|
31351
31351
|
var ratingStars = [];
|
|
31352
31352
|
var _loop = function _loop(i) {
|
|
31353
|
-
var color = i <= currentRating ? 'fill-yellow-yellow50' : 'fill-
|
|
31353
|
+
var color = i <= currentRating ? 'fill-yellow-yellow50' : 'fill-icon03';
|
|
31354
31354
|
ratingStars.push( /*#__PURE__*/jsx("button", {
|
|
31355
31355
|
type: "button",
|
|
31356
31356
|
onClick: function onClick() {
|
|
@@ -31372,7 +31372,7 @@ function EvaluationStar(_ref) {
|
|
|
31372
31372
|
|
|
31373
31373
|
function Heading(props) {
|
|
31374
31374
|
var TagName = "h" + props.level;
|
|
31375
|
-
var classes = clsx("flex items-center text-
|
|
31375
|
+
var classes = clsx("flex items-center text-text01", typography.heading[TagName], {
|
|
31376
31376
|
'gap-2': props.level === 1,
|
|
31377
31377
|
'gap-1': props.level > 1
|
|
31378
31378
|
});
|
|
@@ -31447,7 +31447,7 @@ function Loading(_ref) {
|
|
|
31447
31447
|
fill: "none",
|
|
31448
31448
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31449
31449
|
children: /*#__PURE__*/jsx("circle", {
|
|
31450
|
-
className: "origin-center animate-circular-small-move stroke-
|
|
31450
|
+
className: "origin-center animate-circular-small-move stroke-interactive01",
|
|
31451
31451
|
cx: "8",
|
|
31452
31452
|
cy: "8",
|
|
31453
31453
|
r: "7",
|
|
@@ -31461,7 +31461,7 @@ function Loading(_ref) {
|
|
|
31461
31461
|
fill: "none",
|
|
31462
31462
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31463
31463
|
children: /*#__PURE__*/jsx("circle", {
|
|
31464
|
-
className: "origin-center animate-circular-medium-move stroke-
|
|
31464
|
+
className: "origin-center animate-circular-medium-move stroke-interactive01",
|
|
31465
31465
|
cx: "16",
|
|
31466
31466
|
cy: "16",
|
|
31467
31467
|
r: "15",
|
|
@@ -31475,7 +31475,7 @@ function Loading(_ref) {
|
|
|
31475
31475
|
fill: "none",
|
|
31476
31476
|
xmlns: "http://www.w3.org/2000/svg",
|
|
31477
31477
|
children: /*#__PURE__*/jsx("circle", {
|
|
31478
|
-
className: "origin-center animate-circular-large-move stroke-
|
|
31478
|
+
className: "origin-center animate-circular-large-move stroke-interactive01",
|
|
31479
31479
|
cx: "32",
|
|
31480
31480
|
cy: "32",
|
|
31481
31481
|
r: "30",
|
|
@@ -31506,7 +31506,7 @@ function ModalFooter(_ref) {
|
|
|
31506
31506
|
var children = _ref.children,
|
|
31507
31507
|
isNoBorder = _ref.isNoBorder;
|
|
31508
31508
|
var wrapperClasses = clsx$1('flex w-full shrink-0 items-center rounded-b-lg px-6 py-4', {
|
|
31509
|
-
'border-t-[1px] border-
|
|
31509
|
+
'border-t-[1px] border-uiBorder01': !isNoBorder
|
|
31510
31510
|
});
|
|
31511
31511
|
return /*#__PURE__*/jsx("div", {
|
|
31512
31512
|
className: wrapperClasses,
|
|
@@ -31519,8 +31519,8 @@ function ModalHeader(_ref) {
|
|
|
31519
31519
|
isNoBorder = _ref.isNoBorder;
|
|
31520
31520
|
var _useContext = useContext(ModalContext),
|
|
31521
31521
|
onClose = _useContext.onClose;
|
|
31522
|
-
var headerClasses = clsx$1('typography-h5 flex w-full shrink-0 items-center justify-between rounded-t-lg px-6 text-
|
|
31523
|
-
'border-b-[1px] border-
|
|
31522
|
+
var headerClasses = clsx$1('typography-h5 flex w-full shrink-0 items-center justify-between rounded-t-lg px-6 text-text01', {
|
|
31523
|
+
'border-b-[1px] border-uiBorder01': !isNoBorder,
|
|
31524
31524
|
'h-14': !onClose,
|
|
31525
31525
|
'h-12': onClose
|
|
31526
31526
|
});
|
|
@@ -31560,9 +31560,9 @@ function Modal(_ref) {
|
|
|
31560
31560
|
onClose: onClose
|
|
31561
31561
|
},
|
|
31562
31562
|
children: /*#__PURE__*/jsx("div", {
|
|
31563
|
-
className: "fixed left-0 top-0 z-overlay flex size-full items-center justify-center bg-
|
|
31563
|
+
className: "fixed left-0 top-0 z-overlay flex size-full items-center justify-center bg-backgroundOverlayBlack py-4",
|
|
31564
31564
|
children: /*#__PURE__*/jsx("div", {
|
|
31565
|
-
className: "grid max-h-full min-h-[120px] grid-rows-[max-content_1fr_max-content] flex-col rounded-lg bg-
|
|
31565
|
+
className: "grid max-h-full min-h-[120px] grid-rows-[max-content_1fr_max-content] flex-col rounded-lg bg-uiBackground01 shadow-modalShadow",
|
|
31566
31566
|
style: {
|
|
31567
31567
|
width: renderWidth,
|
|
31568
31568
|
height: renderHeight
|
|
@@ -31583,20 +31583,20 @@ function NotificationInline(_ref) {
|
|
|
31583
31583
|
_ref$size = _ref.size,
|
|
31584
31584
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
31585
31585
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
|
|
31586
|
-
var wrapperClasses = clsx('typography-body2regular flex items-center gap-1 rounded text-
|
|
31587
|
-
'bg-
|
|
31588
|
-
'bg-
|
|
31589
|
-
'bg-
|
|
31590
|
-
'bg-
|
|
31591
|
-
'bg-
|
|
31586
|
+
var wrapperClasses = clsx('typography-body2regular flex items-center gap-1 rounded text-text01', {
|
|
31587
|
+
'bg-uiBackgroundError': state === 'attention',
|
|
31588
|
+
'bg-uiBackgroundWarning': state === 'warning',
|
|
31589
|
+
'bg-uiBackgroundBlue': state === 'information',
|
|
31590
|
+
'bg-uiBackgroundSuccess': state === 'success',
|
|
31591
|
+
'bg-uiBackgroundGray': state === 'default',
|
|
31592
31592
|
'p-2': size === 'small',
|
|
31593
31593
|
'p-3': size === 'medium'
|
|
31594
31594
|
});
|
|
31595
31595
|
var iconClasses = clsx('flex items-center', {
|
|
31596
|
-
'fill-
|
|
31597
|
-
'fill-
|
|
31596
|
+
'fill-supportError': state === 'attention',
|
|
31597
|
+
'fill-supportWarning': state === 'warning',
|
|
31598
31598
|
'fill-blue-blue50': state === 'information',
|
|
31599
|
-
'fill-
|
|
31599
|
+
'fill-supportSuccess': state === 'success'
|
|
31600
31600
|
});
|
|
31601
31601
|
var iconName = {
|
|
31602
31602
|
attention: 'attention',
|
|
@@ -31665,7 +31665,7 @@ function Pagination(_ref) {
|
|
|
31665
31665
|
for (var i = start + offsetStart; i <= end + offsetEnd; i++) {
|
|
31666
31666
|
pageList.push(i);
|
|
31667
31667
|
}
|
|
31668
|
-
var threeDotIconClasses = 'flex h-8 w-8 items-center justify-center gap-1 fill-
|
|
31668
|
+
var threeDotIconClasses = 'flex h-8 w-8 items-center justify-center gap-1 fill-icon01';
|
|
31669
31669
|
return /*#__PURE__*/jsx(PaginationContext.Provider, {
|
|
31670
31670
|
value: {
|
|
31671
31671
|
currentPage: currentPage
|
|
@@ -31750,9 +31750,9 @@ function SelectItem$1(_ref) {
|
|
|
31750
31750
|
onChange == null || onChange(option);
|
|
31751
31751
|
setIsOptionListOpen(false);
|
|
31752
31752
|
};
|
|
31753
|
-
var itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-
|
|
31754
|
-
'text-
|
|
31755
|
-
'text-
|
|
31753
|
+
var itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-hover02 active:bg-active02', focusVisible.inset, {
|
|
31754
|
+
'text-interactive01 fill-interactive01 bg-selectedUi': option.id === (selectedOption == null ? void 0 : selectedOption.id),
|
|
31755
|
+
'text-interactive02 fill-icon01 bg-uiBackground01': option.id !== (selectedOption == null ? void 0 : selectedOption.id)
|
|
31756
31756
|
});
|
|
31757
31757
|
return /*#__PURE__*/jsx("li", {
|
|
31758
31758
|
className: "flex w-full items-center",
|
|
@@ -31808,13 +31808,13 @@ function SelectList$1(_ref) {
|
|
|
31808
31808
|
}
|
|
31809
31809
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
31810
31810
|
}, []);
|
|
31811
|
-
var listClasses = clsx$1('absolute z-dropdown w-max overflow-y-auto rounded bg-
|
|
31811
|
+
var listClasses = clsx$1('absolute z-dropdown w-max overflow-y-auto rounded bg-uiBackground01 py-2 shadow-floatingShadow', {
|
|
31812
31812
|
'top-7': size === 'x-small' || size === 'small',
|
|
31813
31813
|
'top-9': size === 'medium',
|
|
31814
31814
|
'top-11': size === 'large',
|
|
31815
|
-
'border-solid border border-
|
|
31815
|
+
'border-solid border border-uiBorder01': variant === 'outline'
|
|
31816
31816
|
});
|
|
31817
|
-
var deselectButtonClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 text-
|
|
31817
|
+
var deselectButtonClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 text-interactive02 hover:bg-hover02 active:bg-active02', focusVisible.inset);
|
|
31818
31818
|
return /*#__PURE__*/jsxs("ul", {
|
|
31819
31819
|
className: listClasses,
|
|
31820
31820
|
style: {
|
|
@@ -31959,7 +31959,7 @@ function PaginationSelect(_ref) {
|
|
|
31959
31959
|
children: [/*#__PURE__*/jsxs("div", {
|
|
31960
31960
|
className: "flex items-center gap-x-2",
|
|
31961
31961
|
children: [/*#__PURE__*/jsxs("div", {
|
|
31962
|
-
className: "typography-label2regular text-
|
|
31962
|
+
className: "typography-label2regular text-text01",
|
|
31963
31963
|
children: [(currentPage - 1) * sizePerPage + 1, " -", ' ', currentPage * sizePerPage > totalSize ? totalSize : currentPage * sizePerPage, countLabel]
|
|
31964
31964
|
}), /*#__PURE__*/jsx(Select, {
|
|
31965
31965
|
size: "medium",
|
|
@@ -31977,7 +31977,7 @@ function PaginationSelect(_ref) {
|
|
|
31977
31977
|
}, option.id);
|
|
31978
31978
|
})
|
|
31979
31979
|
}), /*#__PURE__*/jsxs("div", {
|
|
31980
|
-
className: "typography-label2regular text-
|
|
31980
|
+
className: "typography-label2regular text-text03",
|
|
31981
31981
|
children: ["/ ", pageMax, pageLabel]
|
|
31982
31982
|
})]
|
|
31983
31983
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -32026,24 +32026,24 @@ function Radio(_ref) {
|
|
|
32026
32026
|
'cursor-pointer': !isDisabled
|
|
32027
32027
|
});
|
|
32028
32028
|
var boxClasses = clsx$1('inline-flex size-5 items-center justify-center rounded-full border border-solid bg-white', focusVisible.normalPeer, {
|
|
32029
|
-
'border-
|
|
32030
|
-
'border-
|
|
32031
|
-
'border-
|
|
32029
|
+
'border-disabled01 hover:border-disabled01': isDisabled && !isMouseOver,
|
|
32030
|
+
'border-hoverUiBorder': !isDisabled && isMouseOver,
|
|
32031
|
+
'border-uiBorder03': !isDisabled,
|
|
32032
32032
|
'cursor-not-allowed': isDisabled,
|
|
32033
32033
|
'cursor-pointer': !isDisabled
|
|
32034
32034
|
});
|
|
32035
32035
|
var afterClasses = clsx$1('absolute inset-0 m-auto block size-3 rounded-full', {
|
|
32036
|
-
'bg-
|
|
32037
|
-
'bg-
|
|
32036
|
+
'bg-disabled01': isDisabled && isChecked,
|
|
32037
|
+
'bg-activeSelectedUi': !isDisabled && isChecked,
|
|
32038
32038
|
'scale-0': !isChecked,
|
|
32039
32039
|
'scale-100': isChecked
|
|
32040
32040
|
});
|
|
32041
32041
|
var hoverIndicatorClasses = clsx$1('inline-block size-3 rounded-full', {
|
|
32042
|
-
'bg-
|
|
32042
|
+
'bg-hoverUi': !isDisabled && !isChecked && isMouseOver
|
|
32043
32043
|
});
|
|
32044
32044
|
var labelClasses = clsx$1('typography-label2regular ml-2 flex-[1_0_0] select-none break-all', {
|
|
32045
|
-
'pointer-events-none cursor-not-allowed text-
|
|
32046
|
-
'cursor-pointer text-
|
|
32045
|
+
'pointer-events-none cursor-not-allowed text-disabled01': isDisabled,
|
|
32046
|
+
'cursor-pointer text-text01': !isDisabled
|
|
32047
32047
|
});
|
|
32048
32048
|
return /*#__PURE__*/jsxs("div", {
|
|
32049
32049
|
className: "flex items-center",
|
|
@@ -32087,12 +32087,12 @@ var Search = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
32087
32087
|
_ref$size = _ref.size,
|
|
32088
32088
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
32089
32089
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
32090
|
-
var classes = clsx('flex items-center rounded-full border border-
|
|
32090
|
+
var classes = clsx('flex items-center rounded-full border border-uiBorder02 focus-within:border-activeInput', {
|
|
32091
32091
|
'h-8 px-3': size === 'medium'
|
|
32092
32092
|
}, {
|
|
32093
32093
|
'h-10 px-4': size === 'large'
|
|
32094
32094
|
});
|
|
32095
|
-
var inputClasses = clsx('mx-2.5 h-full flex-1 text-
|
|
32095
|
+
var inputClasses = clsx('mx-2.5 h-full flex-1 text-text01 outline-0 placeholder:text-textPlaceholder', (_clsx = {}, _clsx['typography-label2regular'] = size === 'medium', _clsx['typography-label1regular'] = size === 'large', _clsx));
|
|
32096
32096
|
return /*#__PURE__*/jsx("div", {
|
|
32097
32097
|
className: "relative",
|
|
32098
32098
|
ref: ref,
|
|
@@ -32131,9 +32131,9 @@ function SelectItem(_ref) {
|
|
|
32131
32131
|
var children = _ref.children,
|
|
32132
32132
|
isSortKey = _ref.isSortKey,
|
|
32133
32133
|
onClickItem = _ref.onClickItem;
|
|
32134
|
-
var itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-
|
|
32135
|
-
'bg-
|
|
32136
|
-
'bg-
|
|
32134
|
+
var itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-hover02 active:bg-active02', focusVisible.inset, {
|
|
32135
|
+
'bg-selectedUi fill-interactive01 text-interactive01': isSortKey,
|
|
32136
|
+
'bg-uiBackground01 fill-icon01 text-interactive02': !isSortKey
|
|
32137
32137
|
});
|
|
32138
32138
|
return /*#__PURE__*/jsx("li", {
|
|
32139
32139
|
className: "flex w-full items-center",
|
|
@@ -32161,13 +32161,13 @@ function SelectList(_ref) {
|
|
|
32161
32161
|
sortOrder = _ref.sortOrder,
|
|
32162
32162
|
_onClickItem = _ref.onClickItem,
|
|
32163
32163
|
onClickDeselect = _ref.onClickDeselect;
|
|
32164
|
-
var listClasses = clsx$1('absolute z-dropdown w-max overflow-y-auto rounded bg-
|
|
32164
|
+
var listClasses = clsx$1('absolute z-dropdown w-max overflow-y-auto rounded bg-uiBackground01 py-2 shadow-floatingShadow', {
|
|
32165
32165
|
'top-7': size === 'x-small' || size === 'small',
|
|
32166
32166
|
'top-9': size === 'medium',
|
|
32167
32167
|
'top-11': size === 'large',
|
|
32168
|
-
'border-solid border border-
|
|
32168
|
+
'border-solid border border-uiBorder01': variant === 'outline'
|
|
32169
32169
|
});
|
|
32170
|
-
var deselectButtonClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 text-
|
|
32170
|
+
var deselectButtonClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 text-interactive02 hover:bg-hover02 active:bg-active02', focusVisible.inset);
|
|
32171
32171
|
return /*#__PURE__*/jsxs("ul", {
|
|
32172
32172
|
className: listClasses,
|
|
32173
32173
|
children: [/*#__PURE__*/jsx(SelectItem, {
|
|
@@ -32272,11 +32272,11 @@ function SelectSort(_ref) {
|
|
|
32272
32272
|
}
|
|
32273
32273
|
|
|
32274
32274
|
var TabItem = function TabItem(props) {
|
|
32275
|
-
var classes = clsx('relative z-0 flex py-2 leading-[24px] before:absolute before:inset-x-0 before:bottom-0 before:h-px hover:text-
|
|
32275
|
+
var 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', {
|
|
32276
32276
|
'typography-label2regular': !props.isSelected,
|
|
32277
|
-
'text-
|
|
32277
|
+
'text-interactive02 hover:before:bg-uiBorder02Dark': !props.isSelected,
|
|
32278
32278
|
'typography-label2bold': props.isSelected,
|
|
32279
|
-
'before:bg-
|
|
32279
|
+
'before:bg-interactive01 hover:before:bg-interactive01 pointer-events-none': props.isSelected
|
|
32280
32280
|
});
|
|
32281
32281
|
return /*#__PURE__*/jsx("button", {
|
|
32282
32282
|
type: "button",
|
|
@@ -32295,7 +32295,7 @@ function Tab(_ref) {
|
|
|
32295
32295
|
var children = _ref.children;
|
|
32296
32296
|
return /*#__PURE__*/jsx("div", {
|
|
32297
32297
|
role: "tablist",
|
|
32298
|
-
className: "relative flex gap-4 px-6 before:absolute before:inset-x-0 before:bottom-0 before:h-px before:bg-
|
|
32298
|
+
className: "relative flex gap-4 px-6 before:absolute before:inset-x-0 before:bottom-0 before:h-px before:bg-uiBorder01",
|
|
32299
32299
|
children: children
|
|
32300
32300
|
});
|
|
32301
32301
|
}
|
|
@@ -32305,7 +32305,7 @@ function TableCell(_ref) {
|
|
|
32305
32305
|
var children = _ref.children,
|
|
32306
32306
|
className = _ref.className;
|
|
32307
32307
|
return /*#__PURE__*/jsx("div", {
|
|
32308
|
-
className: clsx$1('border-b-[1px] border-
|
|
32308
|
+
className: clsx$1('border-b-[1px] border-uiBorder01', className),
|
|
32309
32309
|
children: children
|
|
32310
32310
|
});
|
|
32311
32311
|
}
|
|
@@ -32313,7 +32313,7 @@ function TableCell(_ref) {
|
|
|
32313
32313
|
function TableRow(_ref) {
|
|
32314
32314
|
var children = _ref.children,
|
|
32315
32315
|
isHoverBackgroundVisible = _ref.isHoverBackgroundVisible;
|
|
32316
|
-
var rowClasses = clsx$1('contents', isHoverBackgroundVisible && '[&:hover>div]:bg-
|
|
32316
|
+
var rowClasses = clsx$1('contents', isHoverBackgroundVisible && '[&:hover>div]:bg-hoverUi02');
|
|
32317
32317
|
return /*#__PURE__*/jsx("div", {
|
|
32318
32318
|
className: rowClasses,
|
|
32319
32319
|
children: children
|
|
@@ -32346,10 +32346,10 @@ var DeleteIcon = function DeleteIcon(_ref) {
|
|
|
32346
32346
|
var color = _ref.color,
|
|
32347
32347
|
variant = _ref.variant,
|
|
32348
32348
|
onClick = _ref.onClick;
|
|
32349
|
-
var deleteButtonClasses = clsx$1('group ml-2 size-[14px] rounded-full p-0.5 hover:cursor-pointer hover:bg-
|
|
32349
|
+
var 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);
|
|
32350
32350
|
var deletePathClasses = clsx$1({
|
|
32351
|
-
'fill-
|
|
32352
|
-
'group-hover:fill-
|
|
32351
|
+
'fill-interactive02': color === 'gray' || variant === 'light',
|
|
32352
|
+
'group-hover:fill-interactive02 group-focus-visible:fill-interactive02 fill-iconOnColor': color !== 'gray'
|
|
32353
32353
|
});
|
|
32354
32354
|
return /*#__PURE__*/jsx("button", {
|
|
32355
32355
|
type: "button",
|
|
@@ -32401,12 +32401,12 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
32401
32401
|
isResizable = _ref$isResizable === void 0 ? false : _ref$isResizable,
|
|
32402
32402
|
isError = _ref.isError,
|
|
32403
32403
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
|
|
32404
|
-
var classes = clsx('w-full rounded border outline-0 placeholder:text-
|
|
32405
|
-
'border-
|
|
32406
|
-
'hover:border-
|
|
32407
|
-
'border-
|
|
32408
|
-
'bg-
|
|
32409
|
-
}, _clsx['typography-body1regular px-2 pt-1.5 pb-2'] = size === 'medium', _clsx['text-4 px-3.5 py-2.5'] = size === 'large', _clsx['text-
|
|
32404
|
+
var classes = clsx('w-full rounded border outline-0 placeholder:text-textPlaceholder disabled:text-textPlaceholder', (_clsx = {
|
|
32405
|
+
'border-supportError': isError && !props.disabled,
|
|
32406
|
+
'hover:border-hoverInput': !props.disabled && !isError,
|
|
32407
|
+
'border-uiBorder01 hover:focus-within:border-activeInput focus-within:border-activeInput text-text01': !isError,
|
|
32408
|
+
'bg-disabled02 border-disabled01': props.disabled
|
|
32409
|
+
}, _clsx['typography-body1regular px-2 pt-1.5 pb-2'] = size === 'medium', _clsx['text-4 px-3.5 py-2.5'] = size === 'large', _clsx['text-supportError'] = isError, _clsx['resize-none'] = !isResizable, _clsx));
|
|
32410
32410
|
return /*#__PURE__*/jsx("div", {
|
|
32411
32411
|
className: "flex",
|
|
32412
32412
|
children: /*#__PURE__*/jsx("textarea", _extends({
|
|
@@ -32430,14 +32430,14 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
32430
32430
|
onClickClearButton = _ref.onClickClearButton,
|
|
32431
32431
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
32432
32432
|
var inputWrapClasses = clsx('relative flex items-center gap-2 overflow-hidden rounded border', {
|
|
32433
|
-
'border-
|
|
32434
|
-
'border-
|
|
32435
|
-
'hover:border-
|
|
32436
|
-
'hover:focus-within:border-
|
|
32437
|
-
'focus-within:border-
|
|
32438
|
-
'bg-
|
|
32433
|
+
'border-uiBorder01': !isError,
|
|
32434
|
+
'border-supportError': isError && !props.disabled,
|
|
32435
|
+
'hover:border-hoverInput': !props.disabled && !isError,
|
|
32436
|
+
'hover:focus-within:border-activeInput': !isError,
|
|
32437
|
+
'focus-within:border-activeInput': !isError,
|
|
32438
|
+
'bg-disabled02 border-disabled01': props.disabled
|
|
32439
32439
|
});
|
|
32440
|
-
var inputClasses = clsx('flex-1 pl-2 pr-3 outline-0 placeholder:text-
|
|
32440
|
+
var inputClasses = clsx('flex-1 pl-2 pr-3 outline-0 placeholder:text-textPlaceholder disabled:text-textPlaceholder', (_clsx = {}, _clsx['typography-label2regular pt-1.5 pb-2'] = size === 'medium', _clsx['typography-label1regular py-2.5'] = size === 'large', _clsx['text-text01'] = !isError, _clsx['text-supportError'] = isError, _clsx));
|
|
32441
32441
|
return /*#__PURE__*/jsxs("div", {
|
|
32442
32442
|
className: inputWrapClasses,
|
|
32443
32443
|
children: [/*#__PURE__*/jsx("input", _extends({
|
|
@@ -32485,14 +32485,14 @@ function Toast(_ref) {
|
|
|
32485
32485
|
};
|
|
32486
32486
|
var wrapperClasses = clsx$1('pointer-events-auto flex items-start gap-1 bg-white p-4 shadow-floatingShadow', (_clsx = {}, _clsx['animate-toast-in'] = isAnimation && !isRemoving, _clsx['animate-toast-out opacity-0'] = isAnimation && isRemoving, _clsx));
|
|
32487
32487
|
var iconClasses = clsx$1('flex items-center', {
|
|
32488
|
-
'fill-
|
|
32489
|
-
'fill-
|
|
32490
|
-
'fill-
|
|
32491
|
-
'fill-
|
|
32488
|
+
'fill-supportSuccess': state === 'success',
|
|
32489
|
+
'fill-supportError': state === 'error',
|
|
32490
|
+
'fill-supportWarning': state === 'warning',
|
|
32491
|
+
'fill-supportInfo': state === 'information'
|
|
32492
32492
|
});
|
|
32493
32493
|
var textClasses = clsx$1('typography-body2regular flex-1 pt-[3px]', {
|
|
32494
|
-
'text-
|
|
32495
|
-
'text-
|
|
32494
|
+
'text-supportError': state === 'error',
|
|
32495
|
+
'text-text01': state === 'success' || state === 'warning' || state === 'information'
|
|
32496
32496
|
});
|
|
32497
32497
|
var iconName = {
|
|
32498
32498
|
success: 'success-filled',
|
|
@@ -32604,15 +32604,15 @@ function Toggle(_ref) {
|
|
|
32604
32604
|
labelPosition = _ref$labelPosition === void 0 ? 'right' : _ref$labelPosition,
|
|
32605
32605
|
isDisabled = _ref.isDisabled;
|
|
32606
32606
|
var baseClasses = clsx$1('relative flex items-center rounded-full', {
|
|
32607
|
-
'bg-
|
|
32608
|
-
'bg-
|
|
32609
|
-
'bg-
|
|
32610
|
-
'bg-
|
|
32607
|
+
'bg-disabledOn': isDisabled && isChecked,
|
|
32608
|
+
'bg-disabled01': isDisabled && !isChecked,
|
|
32609
|
+
'bg-interactive01 peer-hover:bg-hover01': !isDisabled && isChecked,
|
|
32610
|
+
'bg-interactive02 peer-hover:bg-hover02Dark': !isDisabled && !isChecked,
|
|
32611
32611
|
'w-8 h-4 px-[3px]': size === 'small',
|
|
32612
32612
|
'w-12 h-6 px-1': size === 'medium'
|
|
32613
32613
|
});
|
|
32614
32614
|
var inputClasses = clsx$1('peer absolute inset-0 z-[1] opacity-0', isDisabled ? 'cursor-not-allowed' : 'cursor-pointer');
|
|
32615
|
-
var indicatorClasses = clsx$1('rounded-full bg-
|
|
32615
|
+
var indicatorClasses = clsx$1('rounded-full bg-iconOnColor', {
|
|
32616
32616
|
'w-2.5 h-2.5': size === 'small',
|
|
32617
32617
|
'w-4 h-4': size === 'medium',
|
|
32618
32618
|
'ml-auto': isChecked
|
|
@@ -32622,8 +32622,8 @@ function Toggle(_ref) {
|
|
|
32622
32622
|
'ml-2': labelPosition === 'right',
|
|
32623
32623
|
'typography-label3regular': size === 'small',
|
|
32624
32624
|
'typography-label1regular': size === 'medium',
|
|
32625
|
-
'pointer-events-none cursor-not-allowed text-
|
|
32626
|
-
'cursor-pointer text-
|
|
32625
|
+
'pointer-events-none cursor-not-allowed text-disabled01': isDisabled,
|
|
32626
|
+
'cursor-pointer text-text01': !isDisabled
|
|
32627
32627
|
});
|
|
32628
32628
|
return /*#__PURE__*/jsxs("div", {
|
|
32629
32629
|
className: "relative flex flex-[0_0_auto] items-center",
|
|
@@ -32703,7 +32703,7 @@ var useTooltip = function useTooltip() {
|
|
|
32703
32703
|
};
|
|
32704
32704
|
|
|
32705
32705
|
var TailIcon = function TailIcon(props) {
|
|
32706
|
-
var tailClasses = clsx$1('absolute fill-
|
|
32706
|
+
var tailClasses = clsx$1('absolute fill-uiBackgroundTooltip', {
|
|
32707
32707
|
'rotate-180': props.verticalPosition === 'bottom',
|
|
32708
32708
|
'rotate-0': props.verticalPosition !== 'bottom',
|
|
32709
32709
|
'-top-1': props.verticalPosition === 'bottom' && props.size === 'small',
|
|
@@ -32760,7 +32760,7 @@ var TooltipContent = function TooltipContent(_ref) {
|
|
|
32760
32760
|
'w-[24px]': size === 'small',
|
|
32761
32761
|
'w-[46px]': size !== 'small'
|
|
32762
32762
|
});
|
|
32763
|
-
var tooltipBodyClasses = clsx$1('absolute z-tooltip inline-block w-max rounded bg-
|
|
32763
|
+
var tooltipBodyClasses = clsx$1('absolute z-tooltip inline-block w-max rounded bg-uiBackgroundTooltip text-textOnColor', {
|
|
32764
32764
|
'typography-body3regular': size === 'small',
|
|
32765
32765
|
'typography-body2regular': size === 'medium',
|
|
32766
32766
|
'px-2 pb-1 pt-1.5': size === 'small',
|