@zenkigen-inc/component-ui 1.5.1 → 1.6.1
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/button/button.d.ts +1 -0
- package/dist/index.esm.js +119 -94
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +134 -96
- package/dist/index.js.map +1 -1
- package/dist/modal/modal-context.d.ts +1 -1
- package/dist/modal/modal-header.d.ts +1 -2
- package/dist/modal/modal.d.ts +2 -2
- package/dist/table/table.d.ts +5 -3
- package/package.json +4 -4
package/dist/button/button.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -80,21 +80,18 @@ Breadcrumb.Item = BreadcrumbItem;
|
|
|
80
80
|
|
|
81
81
|
var _excluded$6 = ["size", "variant"];
|
|
82
82
|
function Button(_ref) {
|
|
83
|
+
var _clsx;
|
|
83
84
|
var _ref$size = _ref.size,
|
|
84
85
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
85
86
|
_ref$variant = _ref.variant,
|
|
86
87
|
variant = _ref$variant === void 0 ? 'fill' : _ref$variant,
|
|
87
88
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
88
|
-
var baseClasses = clsx('flex
|
|
89
|
+
var baseClasses = clsx('flex shrink-0 items-center justify-center gap-1', buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, (_clsx = {
|
|
89
90
|
'h-6 px-2.5': size === 'small',
|
|
90
91
|
'h-8 px-3': size === 'medium',
|
|
91
92
|
'h-10 px-4 leading-[24px]': size === 'large',
|
|
92
|
-
'inline-flex': props.isAnchor
|
|
93
|
-
|
|
94
|
-
'rounded-button': !props.borderRadius,
|
|
95
|
-
'typography-label1regular': size === 'large',
|
|
96
|
-
'typography-label2regular': size !== 'large'
|
|
97
|
-
});
|
|
93
|
+
'inline-flex': props.isAnchor
|
|
94
|
+
}, _clsx[buttonColors[variant].selected] = props.isSelected, _clsx[buttonColors[variant].base] = !props.isSelected, _clsx['hover:text-text-textOnColor active:text-text-textOnColor [&:hover>*]:fill-icon-iconOnColor [&:active>*]:fill-icon-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));
|
|
98
95
|
if (props.isAnchor) {
|
|
99
96
|
return /*#__PURE__*/jsxs("a", {
|
|
100
97
|
className: baseClasses,
|
|
@@ -170,24 +167,44 @@ function Checkbox(_ref) {
|
|
|
170
167
|
var handleChange = useCallback(function (e) {
|
|
171
168
|
!isDisabled && (onChange == null ? void 0 : onChange(e));
|
|
172
169
|
}, [isDisabled, onChange]);
|
|
173
|
-
var
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
var
|
|
170
|
+
var baseInputClasses = clsx$1('peer absolute z-[1] h-5 w-5 opacity-0', {
|
|
171
|
+
'cursor-not-allowed': isDisabled,
|
|
172
|
+
'cursor-pointer': !isDisabled
|
|
173
|
+
});
|
|
174
|
+
var boxClasses = clsx$1('inline-flex h-5 w-5 items-center justify-center rounded-sm border bg-white', focusVisible.normalPeer, {
|
|
175
|
+
'border-disabled-disabled01': isDisabled,
|
|
176
|
+
'border-hover-hoverUiBorder': !isDisabled && isMouseOver,
|
|
177
|
+
'border-border-uiBorder03': !isDisabled && !isMouseOver,
|
|
178
|
+
'border-interactive-interactive02': !isDisabled && !isMouseOver && color === 'gray',
|
|
179
|
+
'border-hover-hoverError': !isDisabled && isMouseOver && color === 'error',
|
|
180
|
+
'border-support-supportError': !isDisabled && !isMouseOver && color === 'error'
|
|
181
|
+
});
|
|
182
|
+
var indicatorClasses = clsx$1('relative flex h-5 w-5 flex-[0_0_auto] items-center justify-center', {
|
|
178
183
|
'bg-disabled-disabled01': isDisabled && isChecked,
|
|
179
184
|
'border-disabled-disabled01': isDisabled
|
|
180
185
|
});
|
|
181
|
-
var afterClasses = clsx$1('absolute
|
|
186
|
+
var afterClasses = clsx$1('absolute inset-0 m-auto block rounded-sm', {
|
|
187
|
+
'bg-disabled-disabled01': isDisabled && isChecked,
|
|
188
|
+
'bg-hover-hover01': !(isDisabled && isChecked) && isMouseOver,
|
|
189
|
+
'bg-interactive-interactive01': !(isDisabled && isChecked) && !isMouseOver,
|
|
190
|
+
'bg-hover-hover02Dark': !(isDisabled && isChecked) && isMouseOver && color === 'gray',
|
|
191
|
+
'bg-interactive-interactive02': !(isDisabled && isChecked) && !isMouseOver && color === 'gray',
|
|
192
|
+
'bg-hover-hoverError': !(isDisabled && isChecked) && isMouseOver && color === 'error',
|
|
193
|
+
'bg-support-supportError': !(isDisabled && isChecked) && !isMouseOver && color === 'error',
|
|
182
194
|
'scale-0': !isChecked,
|
|
183
195
|
'scale-100': isChecked
|
|
184
196
|
});
|
|
185
|
-
var hoverIndicatorClasses = clsx$1('
|
|
186
|
-
|
|
197
|
+
var hoverIndicatorClasses = clsx$1('inline-block h-3 w-3 rounded-[1px]', {
|
|
198
|
+
'bg-hover-hoverUi': !isDisabled && !isChecked && isMouseOver
|
|
199
|
+
});
|
|
200
|
+
var labelClasses = clsx$1('typography-label2regular ml-2 flex-[1_0_0] break-all', {
|
|
201
|
+
'pointer-events-none cursor-not-allowed text-disabled-disabled01': isDisabled,
|
|
202
|
+
'cursor-pointer text-text-text01': !isDisabled
|
|
203
|
+
});
|
|
187
204
|
return /*#__PURE__*/jsxs("div", {
|
|
188
|
-
className:
|
|
205
|
+
className: "flex items-center",
|
|
189
206
|
children: [/*#__PURE__*/jsxs("div", {
|
|
190
|
-
className:
|
|
207
|
+
className: "flex h-6 w-6 items-center justify-center",
|
|
191
208
|
children: [/*#__PURE__*/jsx("input", {
|
|
192
209
|
type: "checkbox",
|
|
193
210
|
value: value,
|
|
@@ -31100,18 +31117,15 @@ var useOutsideClick = function useOutsideClick(ref, handler, enabled) {
|
|
|
31100
31117
|
|
|
31101
31118
|
var _excluded$5 = ["size"];
|
|
31102
31119
|
var Icon = function Icon(_ref) {
|
|
31103
|
-
var
|
|
31120
|
+
var _clsx;
|
|
31104
31121
|
var _ref$size = _ref.size,
|
|
31105
31122
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
31106
31123
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
31124
|
+
var classes = clsx('inline-block shrink-0', (_clsx = {
|
|
31125
|
+
'fill-disabled-disabled01': props.isDisabled
|
|
31126
|
+
}, _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));
|
|
31107
31127
|
return /*#__PURE__*/jsx("span", {
|
|
31108
|
-
className:
|
|
31109
|
-
'w-3 h-3': size === 'x-small',
|
|
31110
|
-
'w-4 h-4': size === 'small',
|
|
31111
|
-
'w-6 h-6': size === 'medium',
|
|
31112
|
-
'w-8 h-8': size === 'large',
|
|
31113
|
-
'w-10 h-10': size === 'x-large'
|
|
31114
|
-
}),
|
|
31128
|
+
className: classes,
|
|
31115
31129
|
children: iconElements[props.name]
|
|
31116
31130
|
});
|
|
31117
31131
|
};
|
|
@@ -31140,13 +31154,12 @@ function DropdownItem(_ref) {
|
|
|
31140
31154
|
setIsVisible(false);
|
|
31141
31155
|
onClick && onClick(event);
|
|
31142
31156
|
};
|
|
31143
|
-
var listItemClasses = clsx$1('flex w-full items-center');
|
|
31144
31157
|
var itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-hover-hover02 active:bg-active-active02', focusVisible.inset, {
|
|
31145
31158
|
'bg-background-uiBackground01 fill-icon-icon01 text-interactive-interactive02': color === 'gray',
|
|
31146
31159
|
'fill-support-supportDanger text-support-supportDanger': color === 'red'
|
|
31147
31160
|
});
|
|
31148
31161
|
return /*#__PURE__*/jsx("li", {
|
|
31149
|
-
className:
|
|
31162
|
+
className: "flex w-full items-center",
|
|
31150
31163
|
children: /*#__PURE__*/jsx("button", {
|
|
31151
31164
|
className: itemClasses,
|
|
31152
31165
|
type: "button",
|
|
@@ -31233,11 +31246,15 @@ function Dropdown(_ref) {
|
|
|
31233
31246
|
setIsVisible(true);
|
|
31234
31247
|
}
|
|
31235
31248
|
}, [isVisible]);
|
|
31236
|
-
var wrapperClasses = clsx$1('relative
|
|
31237
|
-
|
|
31249
|
+
var wrapperClasses = clsx$1('relative flex shrink-0 items-center gap-1 rounded', {
|
|
31250
|
+
'cursor-not-allowed': isDisabled
|
|
31251
|
+
});
|
|
31252
|
+
var childrenButtonClasses = clsx$1('flex items-center justify-center rounded p-1 hover:bg-hover-hover02 active:bg-active-active02', focusVisible.normal, {
|
|
31253
|
+
'pointer-events-none': isDisabled,
|
|
31238
31254
|
'border border-border-uiBorder02': variant === 'outline'
|
|
31239
31255
|
});
|
|
31240
|
-
var buttonClasses = clsx$1('flex items-center
|
|
31256
|
+
var buttonClasses = clsx$1('flex items-center rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
|
|
31257
|
+
'pointer-events-none': isDisabled,
|
|
31241
31258
|
'h-6 px-2': size === 'x-small' || size === 'small',
|
|
31242
31259
|
'h-8 px-4': size === 'medium',
|
|
31243
31260
|
'h-10 px-4': size === 'large'
|
|
@@ -31345,8 +31362,7 @@ function EvaluationStar(_ref) {
|
|
|
31345
31362
|
function Heading(props) {
|
|
31346
31363
|
var TagName = "h" + props.level;
|
|
31347
31364
|
var classes = clsx("flex items-center text-text-text01", typography.heading[TagName], {
|
|
31348
|
-
'gap-2': props.level === 1
|
|
31349
|
-
}, {
|
|
31365
|
+
'gap-2': props.level === 1,
|
|
31350
31366
|
'gap-1': props.level > 1
|
|
31351
31367
|
});
|
|
31352
31368
|
return /*#__PURE__*/jsxs(TagName, {
|
|
@@ -31363,20 +31379,11 @@ function IconButton(_ref) {
|
|
|
31363
31379
|
variant = _ref$variant === void 0 ? 'outline' : _ref$variant,
|
|
31364
31380
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
31365
31381
|
var baseClasses = clsx('typography-label1regular flex items-center justify-center gap-1 rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
|
|
31366
|
-
'h-
|
|
31367
|
-
|
|
31368
|
-
'h-8 w-8': size === 'medium' && !props.isNoPadding
|
|
31369
|
-
|
|
31370
|
-
'
|
|
31371
|
-
}, {
|
|
31372
|
-
'h-4 w-4': size === 'small' && props.isNoPadding
|
|
31373
|
-
}, {
|
|
31374
|
-
'h-6 w-6': size === 'medium' && props.isNoPadding
|
|
31375
|
-
}, {
|
|
31376
|
-
'h-6 w-6': size === 'large' && props.isNoPadding
|
|
31377
|
-
}, {
|
|
31378
|
-
'inline-flex': props.isAnchor
|
|
31379
|
-
}, {
|
|
31382
|
+
'h-4 w-4': size === 'small' && props.isNoPadding,
|
|
31383
|
+
'h-6 w-6': size === 'small' && !props.isNoPadding || (size === 'medium' || size === 'large') && props.isNoPadding,
|
|
31384
|
+
'h-8 w-8': size === 'medium' && !props.isNoPadding,
|
|
31385
|
+
'h-10 w-10': size === 'large' && !props.isNoPadding,
|
|
31386
|
+
'inline-flex': props.isAnchor,
|
|
31380
31387
|
'pointer-events-none': props.isDisabled
|
|
31381
31388
|
});
|
|
31382
31389
|
var iconSize = size === 'small' ? 'small' : 'medium';
|
|
@@ -31411,8 +31418,12 @@ function Loading(_ref) {
|
|
|
31411
31418
|
position = _ref$position === void 0 ? 'fixed' : _ref$position,
|
|
31412
31419
|
_ref$height = _ref.height,
|
|
31413
31420
|
height = _ref$height === void 0 ? '100%' : _ref$height;
|
|
31414
|
-
var wrapperClasses = clsx$1(position, '
|
|
31415
|
-
var svgClasses = clsx$1(
|
|
31421
|
+
var wrapperClasses = clsx$1(position, 'left-0 top-0 z-20 flex w-full items-center justify-center');
|
|
31422
|
+
var svgClasses = clsx$1({
|
|
31423
|
+
'h-4 w-4': size === 'small',
|
|
31424
|
+
'h-8 w-8': size === 'medium',
|
|
31425
|
+
'h-16 w-16': size === 'large'
|
|
31426
|
+
});
|
|
31416
31427
|
return /*#__PURE__*/jsx(Fragment, {
|
|
31417
31428
|
children: /*#__PURE__*/jsxs("div", {
|
|
31418
31429
|
className: wrapperClasses,
|
|
@@ -31475,15 +31486,15 @@ function ModalBody(_ref) {
|
|
|
31475
31486
|
}
|
|
31476
31487
|
|
|
31477
31488
|
var ModalContext = /*#__PURE__*/createContext({
|
|
31478
|
-
|
|
31479
|
-
return
|
|
31489
|
+
onClose: function onClose() {
|
|
31490
|
+
return null;
|
|
31480
31491
|
}
|
|
31481
31492
|
});
|
|
31482
31493
|
|
|
31483
31494
|
function ModalFooter(_ref) {
|
|
31484
31495
|
var children = _ref.children,
|
|
31485
31496
|
isNoBorder = _ref.isNoBorder;
|
|
31486
|
-
var wrapperClasses = clsx$1('flex
|
|
31497
|
+
var wrapperClasses = clsx$1('flex w-full shrink-0 items-center rounded-b-lg px-6 py-4', {
|
|
31487
31498
|
'border-t-[1px] border-border-uiBorder01': !isNoBorder
|
|
31488
31499
|
});
|
|
31489
31500
|
return /*#__PURE__*/jsx("div", {
|
|
@@ -31494,26 +31505,23 @@ function ModalFooter(_ref) {
|
|
|
31494
31505
|
|
|
31495
31506
|
function ModalHeader(_ref) {
|
|
31496
31507
|
var children = _ref.children,
|
|
31497
|
-
isNoBorder = _ref.isNoBorder
|
|
31498
|
-
isNoCloseButton = _ref.isNoCloseButton;
|
|
31508
|
+
isNoBorder = _ref.isNoBorder;
|
|
31499
31509
|
var _useContext = useContext(ModalContext),
|
|
31500
|
-
|
|
31510
|
+
onClose = _useContext.onClose;
|
|
31501
31511
|
var headerClasses = clsx$1('typography-h5 flex w-full shrink-0 items-center justify-between rounded-t-lg px-6 text-text-text01', {
|
|
31502
31512
|
'border-b-[1px] border-border-uiBorder01': !isNoBorder,
|
|
31503
|
-
'h-14': !
|
|
31504
|
-
'h-12':
|
|
31513
|
+
'h-14': !onClose,
|
|
31514
|
+
'h-12': onClose
|
|
31505
31515
|
});
|
|
31506
31516
|
return /*#__PURE__*/jsxs("div", {
|
|
31507
31517
|
className: headerClasses,
|
|
31508
31518
|
children: [/*#__PURE__*/jsx("div", {
|
|
31509
31519
|
children: children
|
|
31510
|
-
}),
|
|
31520
|
+
}), onClose && /*#__PURE__*/jsx(IconButton, {
|
|
31511
31521
|
icon: "close",
|
|
31512
31522
|
size: "small",
|
|
31513
31523
|
variant: "text",
|
|
31514
|
-
onClick:
|
|
31515
|
-
return setIsOpen(false);
|
|
31516
|
-
}
|
|
31524
|
+
onClick: onClose
|
|
31517
31525
|
})]
|
|
31518
31526
|
});
|
|
31519
31527
|
}
|
|
@@ -31526,13 +31534,13 @@ function Modal(_ref) {
|
|
|
31526
31534
|
width = _ref$width === void 0 ? 480 : _ref$width,
|
|
31527
31535
|
height = _ref.height,
|
|
31528
31536
|
isOpen = _ref.isOpen,
|
|
31529
|
-
|
|
31537
|
+
onClose = _ref.onClose,
|
|
31530
31538
|
portalTargetRef = _ref.portalTargetRef;
|
|
31531
31539
|
var renderWidth = typeof width === 'number' ? Math.max(width, LIMIT_WIDTH) : width;
|
|
31532
31540
|
var renderHeight = typeof height === 'number' ? Math.max(height, LIMIT_HEIGHT) : height;
|
|
31533
31541
|
return /*#__PURE__*/reactDom.createPortal(isOpen && /*#__PURE__*/jsx(ModalContext.Provider, {
|
|
31534
31542
|
value: {
|
|
31535
|
-
|
|
31543
|
+
onClose: onClose
|
|
31536
31544
|
},
|
|
31537
31545
|
children: /*#__PURE__*/jsx("div", {
|
|
31538
31546
|
className: "fixed left-0 top-0 z-overlay flex h-full w-full items-center justify-center bg-background-backgroundOverlayBlack",
|
|
@@ -31567,7 +31575,7 @@ function NotificationInline(_ref) {
|
|
|
31567
31575
|
'p-2': size === 'small',
|
|
31568
31576
|
'p-3': size === 'medium'
|
|
31569
31577
|
});
|
|
31570
|
-
var iconClasses = clsx('flex
|
|
31578
|
+
var iconClasses = clsx('flex items-center', {
|
|
31571
31579
|
'fill-support-supportError': state === 'attention',
|
|
31572
31580
|
'fill-support-supportWarning': state === 'warning',
|
|
31573
31581
|
'fill-blue-blue50': state === 'information',
|
|
@@ -32106,13 +32114,12 @@ function SelectItem(_ref) {
|
|
|
32106
32114
|
var children = _ref.children,
|
|
32107
32115
|
isSortKey = _ref.isSortKey,
|
|
32108
32116
|
onClickItem = _ref.onClickItem;
|
|
32109
|
-
var listItemClasses = clsx$1('flex w-full items-center');
|
|
32110
32117
|
var itemClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 hover:bg-hover-hover02 active:bg-active-active02', focusVisible.inset, {
|
|
32111
32118
|
'bg-selected-selectedUi fill-interactive-interactive01 text-interactive-interactive01': isSortKey,
|
|
32112
32119
|
'bg-background-uiBackground01 fill-icon-icon01 text-interactive-interactive02': !isSortKey
|
|
32113
32120
|
});
|
|
32114
32121
|
return /*#__PURE__*/jsx("li", {
|
|
32115
|
-
className:
|
|
32122
|
+
className: "flex w-full items-center",
|
|
32116
32123
|
onClick: onClickItem,
|
|
32117
32124
|
children: /*#__PURE__*/jsxs("button", {
|
|
32118
32125
|
className: itemClasses,
|
|
@@ -32170,6 +32177,7 @@ function SelectList(_ref) {
|
|
|
32170
32177
|
}
|
|
32171
32178
|
|
|
32172
32179
|
function SelectSort(_ref) {
|
|
32180
|
+
var _clsx;
|
|
32173
32181
|
var _ref$size = _ref.size,
|
|
32174
32182
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
32175
32183
|
_ref$variant = _ref.variant,
|
|
@@ -32198,18 +32206,20 @@ function SelectSort(_ref) {
|
|
|
32198
32206
|
onChange == null || onChange(value);
|
|
32199
32207
|
setIsOptionListOpen(false);
|
|
32200
32208
|
}, [onChange]);
|
|
32201
|
-
var wrapperClasses = clsx$1('relative
|
|
32209
|
+
var wrapperClasses = clsx$1('relative flex shrink-0 items-center gap-1 rounded', {
|
|
32202
32210
|
'h-6': size === 'x-small' || size === 'small',
|
|
32203
32211
|
'h-8': size === 'medium',
|
|
32204
32212
|
'h-10': size === 'large',
|
|
32205
32213
|
'cursor-not-allowed': isDisabled
|
|
32206
32214
|
});
|
|
32207
|
-
var buttonClasses = clsx$1('flex
|
|
32208
|
-
|
|
32209
|
-
'
|
|
32210
|
-
'
|
|
32215
|
+
var buttonClasses = clsx$1('flex h-full w-full items-center rounded', buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, (_clsx = {}, _clsx[buttonColors[variant].selected] = isSortKey, _clsx[buttonColors[variant].base] = !isSortKey, _clsx['px-2'] = size === 'x-small' || size === 'small', _clsx['px-4'] = size === 'medium' || size === 'large', _clsx['pointer-events-none'] = isDisabled, _clsx));
|
|
32216
|
+
var labelClasses = clsx$1('truncate', {
|
|
32217
|
+
'typography-label3regular': size === 'x-small',
|
|
32218
|
+
'typography-label2regular': size === 'small' || size === 'medium',
|
|
32219
|
+
'typography-label1regular': size === 'large',
|
|
32220
|
+
'mr-1': size === 'x-small',
|
|
32221
|
+
'mr-2': size !== 'x-small'
|
|
32211
32222
|
});
|
|
32212
|
-
var labelClasses = clsx$1('truncate', size === 'x-small' ? 'mr-1' : 'mr-2', typography.label[size === 'x-small' ? 'label3regular' : size === 'small' || size === 'medium' ? 'label2regular' : 'label1regular']);
|
|
32213
32223
|
return /*#__PURE__*/jsxs("div", {
|
|
32214
32224
|
className: wrapperClasses,
|
|
32215
32225
|
style: {
|
|
@@ -32245,8 +32255,12 @@ function SelectSort(_ref) {
|
|
|
32245
32255
|
}
|
|
32246
32256
|
|
|
32247
32257
|
var TabItem = function TabItem(props) {
|
|
32248
|
-
var
|
|
32249
|
-
|
|
32258
|
+
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-text-text01 disabled:pointer-events-none disabled:text-disabled-disabled01', {
|
|
32259
|
+
'typography-label2regular': !props.isSelected,
|
|
32260
|
+
'text-interactive-interactive02 hover:before:bg-border-uiBorder02Dark': !props.isSelected,
|
|
32261
|
+
'typography-label2bold': props.isSelected,
|
|
32262
|
+
'before:bg-interactive-interactive01 hover:before:bg-interactive-interactive01 pointer-events-none': props.isSelected
|
|
32263
|
+
});
|
|
32250
32264
|
return /*#__PURE__*/jsx("button", {
|
|
32251
32265
|
type: "button",
|
|
32252
32266
|
role: "tab",
|
|
@@ -32262,10 +32276,9 @@ var TabItem = function TabItem(props) {
|
|
|
32262
32276
|
|
|
32263
32277
|
function Tab(_ref) {
|
|
32264
32278
|
var children = _ref.children;
|
|
32265
|
-
var classes = clsx('flex', 'px-6', 'gap-4', 'relative', 'before:bg-border-uiBorder01', 'before:h-px', 'before:bottom-0', 'before:left-0', 'before:right-0', 'before:absolute', {});
|
|
32266
32279
|
return /*#__PURE__*/jsx("div", {
|
|
32267
32280
|
role: "tablist",
|
|
32268
|
-
className:
|
|
32281
|
+
className: "relative flex gap-4 px-6 before:absolute before:inset-x-0 before:bottom-0 before:h-px before:bg-border-uiBorder01",
|
|
32269
32282
|
children: children
|
|
32270
32283
|
});
|
|
32271
32284
|
}
|
|
@@ -32274,9 +32287,8 @@ Tab.Item = TabItem;
|
|
|
32274
32287
|
function TableCell(_ref) {
|
|
32275
32288
|
var children = _ref.children,
|
|
32276
32289
|
className = _ref.className;
|
|
32277
|
-
var cellClasses = clsx$1('border-b-[1px] border-border-uiBorder01');
|
|
32278
32290
|
return /*#__PURE__*/jsx("div", {
|
|
32279
|
-
className: clsx$1(
|
|
32291
|
+
className: clsx$1('border-b-[1px] border-border-uiBorder01', className),
|
|
32280
32292
|
children: children
|
|
32281
32293
|
});
|
|
32282
32294
|
}
|
|
@@ -32293,15 +32305,19 @@ function TableRow(_ref) {
|
|
|
32293
32305
|
|
|
32294
32306
|
function Table(_ref) {
|
|
32295
32307
|
var width = _ref.width,
|
|
32296
|
-
|
|
32297
|
-
|
|
32308
|
+
templateRows = _ref.templateRows,
|
|
32309
|
+
templateColumns = _ref.templateColumns,
|
|
32310
|
+
autoColumns = _ref.autoColumns,
|
|
32311
|
+
autoRows = _ref.autoRows,
|
|
32298
32312
|
children = _ref.children;
|
|
32299
32313
|
return /*#__PURE__*/jsx("div", {
|
|
32300
32314
|
className: "grid",
|
|
32301
32315
|
style: {
|
|
32302
32316
|
width: width,
|
|
32303
|
-
gridTemplateRows:
|
|
32304
|
-
gridTemplateColumns:
|
|
32317
|
+
gridTemplateRows: templateRows,
|
|
32318
|
+
gridTemplateColumns: templateColumns,
|
|
32319
|
+
gridAutoColumns: autoColumns,
|
|
32320
|
+
gridAutoRows: autoRows
|
|
32305
32321
|
},
|
|
32306
32322
|
children: children
|
|
32307
32323
|
});
|
|
@@ -32313,7 +32329,7 @@ var DeleteIcon = function DeleteIcon(_ref) {
|
|
|
32313
32329
|
var color = _ref.color,
|
|
32314
32330
|
variant = _ref.variant,
|
|
32315
32331
|
onClick = _ref.onClick;
|
|
32316
|
-
var deleteButtonClasses = clsx$1('h-[14px]
|
|
32332
|
+
var deleteButtonClasses = clsx$1('group ml-2 h-[14px] w-[14px] rounded-full p-0.5 hover:cursor-pointer hover:bg-icon-iconOnColor focus-visible:bg-icon-iconOnColor', focusVisible.normal);
|
|
32317
32333
|
var deletePathClasses = clsx$1({
|
|
32318
32334
|
'fill-interactive-interactive02': color === 'gray' || variant === 'light',
|
|
32319
32335
|
'group-hover:fill-interactive-interactive02 group-focus-visible:fill-interactive-interactive02 fill-icon-iconOnColor': color !== 'gray'
|
|
@@ -32567,19 +32583,16 @@ function Toggle(_ref) {
|
|
|
32567
32583
|
_ref$labelPosition = _ref.labelPosition,
|
|
32568
32584
|
labelPosition = _ref$labelPosition === void 0 ? 'right' : _ref$labelPosition,
|
|
32569
32585
|
isDisabled = _ref.isDisabled;
|
|
32570
|
-
var wrapperClasses = 'flex flex-[0_0_auto] items-center relative';
|
|
32571
32586
|
var baseClasses = clsx$1('relative flex items-center rounded-full', {
|
|
32587
|
+
'bg-disabled-disabledOn': isDisabled && isChecked,
|
|
32588
|
+
'bg-disabled-disabled01': isDisabled && !isChecked,
|
|
32589
|
+
'bg-interactive-interactive01 peer-hover:bg-hover-hover01': !isDisabled && isChecked,
|
|
32590
|
+
'bg-interactive-interactive02 peer-hover:bg-hover-hover02Dark': !isDisabled && !isChecked,
|
|
32572
32591
|
'w-8 h-4 px-[3px]': size === 'small',
|
|
32573
32592
|
'w-12 h-6 px-1': size === 'medium'
|
|
32574
|
-
}, isDisabled ? {
|
|
32575
|
-
'bg-disabled-disabledOn': isChecked,
|
|
32576
|
-
'bg-disabled-disabled01': !isChecked
|
|
32577
|
-
} : {
|
|
32578
|
-
'bg-interactive-interactive01 peer-hover:bg-hover-hover01': isChecked,
|
|
32579
|
-
'bg-interactive-interactive02 peer-hover:bg-hover-hover02Dark': !isChecked
|
|
32580
32593
|
});
|
|
32581
32594
|
var inputClasses = clsx$1('peer absolute inset-0 z-[1] opacity-0', isDisabled ? 'cursor-not-allowed' : 'cursor-pointer');
|
|
32582
|
-
var indicatorClasses = clsx$1('bg-icon-iconOnColor',
|
|
32595
|
+
var indicatorClasses = clsx$1('rounded-full bg-icon-iconOnColor', {
|
|
32583
32596
|
'w-2.5 h-2.5': size === 'small',
|
|
32584
32597
|
'w-4 h-4': size === 'medium',
|
|
32585
32598
|
'ml-auto': isChecked
|
|
@@ -32593,7 +32606,7 @@ function Toggle(_ref) {
|
|
|
32593
32606
|
'cursor-pointer text-text-text01': !isDisabled
|
|
32594
32607
|
});
|
|
32595
32608
|
return /*#__PURE__*/jsxs("div", {
|
|
32596
|
-
className:
|
|
32609
|
+
className: "relative flex flex-[0_0_auto] items-center",
|
|
32597
32610
|
children: [label && labelPosition === 'left' && /*#__PURE__*/jsx("label", {
|
|
32598
32611
|
htmlFor: id,
|
|
32599
32612
|
className: labelClasses,
|
|
@@ -32620,7 +32633,20 @@ function Toggle(_ref) {
|
|
|
32620
32633
|
}
|
|
32621
32634
|
|
|
32622
32635
|
var TailIcon = function TailIcon(props) {
|
|
32623
|
-
var tailClasses = clsx$1('absolute
|
|
32636
|
+
var tailClasses = clsx$1('absolute fill-background-uiBackgroundTooltip', {
|
|
32637
|
+
'rotate-180': props.verticalPosition === 'bottom',
|
|
32638
|
+
'rotate-0': props.verticalPosition !== 'bottom',
|
|
32639
|
+
'-top-1': props.verticalPosition === 'bottom' && props.size === 'small',
|
|
32640
|
+
'-top-2': props.verticalPosition === 'bottom' && props.size !== 'small',
|
|
32641
|
+
'-bottom-1': props.verticalPosition !== 'bottom' && props.size === 'small',
|
|
32642
|
+
'-bottom-2': props.verticalPosition !== 'bottom' && props.size !== 'small',
|
|
32643
|
+
'right-2': props.horizontalAlign === 'right' && props.size === 'small',
|
|
32644
|
+
'right-4': props.horizontalAlign === 'right' && props.size !== 'small',
|
|
32645
|
+
'left-2': props.horizontalAlign === 'left' && props.size === 'small',
|
|
32646
|
+
'left-4': props.horizontalAlign === 'left' && props.size !== 'small',
|
|
32647
|
+
'left-2/4 -translate-x-1': props.horizontalAlign === 'center' && props.size === 'small',
|
|
32648
|
+
'left-2/4 -translate-x-2': props.horizontalAlign === 'center' && props.size !== 'small'
|
|
32649
|
+
});
|
|
32624
32650
|
if (props.size === 'small') {
|
|
32625
32651
|
return /*#__PURE__*/jsx("svg", {
|
|
32626
32652
|
className: tailClasses,
|
|
@@ -32684,7 +32710,6 @@ function Tooltip(_ref) {
|
|
|
32684
32710
|
var handleMouseOutWrapper = useCallback(function () {
|
|
32685
32711
|
setIsVisible(false);
|
|
32686
32712
|
}, []);
|
|
32687
|
-
var targetClasses = clsx$1('relative', 'flex', 'items-center', 'justify-center');
|
|
32688
32713
|
var tooltipBodyClasses = clsx$1('absolute z-tooltip inline-block w-max rounded bg-background-uiBackgroundTooltip text-text-textOnColor', {
|
|
32689
32714
|
'typography-body3regular': size === 'small',
|
|
32690
32715
|
'typography-body2regular': size === 'medium',
|
|
@@ -32696,7 +32721,7 @@ function Tooltip(_ref) {
|
|
|
32696
32721
|
});
|
|
32697
32722
|
return /*#__PURE__*/jsxs("div", {
|
|
32698
32723
|
ref: targetRef,
|
|
32699
|
-
className:
|
|
32724
|
+
className: "relative flex items-center justify-center",
|
|
32700
32725
|
onMouseOver: handleMouseOverWrapper,
|
|
32701
32726
|
onMouseLeave: handleMouseOutWrapper,
|
|
32702
32727
|
children: [children, isVisible && /*#__PURE__*/jsxs("div", {
|