@zenkigen-inc/component-ui 1.9.9 → 1.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/icon/icon.d.ts +1 -0
- package/dist/index.esm.js +72 -72
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +79 -79
- package/dist/index.js.map +1 -1
- package/dist/tooltip/tooltip-content.d.ts +2 -2
- package/dist/tooltip/tooltip.d.ts +2 -2
- package/package.json +3 -3
package/dist/icon/icon.d.ts
CHANGED
package/dist/index.esm.js
CHANGED
|
@@ -5,30 +5,22 @@ import aa, { useState, useCallback, useEffect, createContext, useContext, useRef
|
|
|
5
5
|
import { iconElements } from '@zenkigen-inc/component-icons';
|
|
6
6
|
|
|
7
7
|
function _extends() {
|
|
8
|
-
_extends = Object.assign ? Object.assign.bind() : function (
|
|
9
|
-
for (var
|
|
10
|
-
var
|
|
11
|
-
for (var
|
|
12
|
-
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
13
|
-
target[key] = source[key];
|
|
14
|
-
}
|
|
15
|
-
}
|
|
8
|
+
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
9
|
+
for (var e = 1; e < arguments.length; e++) {
|
|
10
|
+
var t = arguments[e];
|
|
11
|
+
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
16
12
|
}
|
|
17
|
-
return
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
var
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
for (i = 0; i < sourceKeys.length; i++) {
|
|
27
|
-
key = sourceKeys[i];
|
|
28
|
-
if (excluded.indexOf(key) >= 0) continue;
|
|
29
|
-
target[key] = source[key];
|
|
13
|
+
return n;
|
|
14
|
+
}, _extends.apply(null, arguments);
|
|
15
|
+
}
|
|
16
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
17
|
+
if (null == r) return {};
|
|
18
|
+
var t = {};
|
|
19
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
20
|
+
if (e.indexOf(n) >= 0) continue;
|
|
21
|
+
t[n] = r[n];
|
|
30
22
|
}
|
|
31
|
-
return
|
|
23
|
+
return t;
|
|
32
24
|
}
|
|
33
25
|
|
|
34
26
|
var _excluded$8 = ["size"];
|
|
@@ -41,11 +33,11 @@ function Avatar(_ref) {
|
|
|
41
33
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
42
34
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$8);
|
|
43
35
|
var classes = clsx('flex items-center justify-center rounded-full text-textOnColor', (_clsx = {
|
|
44
|
-
'w-16 h-16 typography-
|
|
45
|
-
'w-12 h-12 typography-
|
|
46
|
-
'w-10 h-10 typography-
|
|
47
|
-
'w-8 h-8 typography-
|
|
48
|
-
'w-6 h-6 typography-
|
|
36
|
+
'w-16 h-16 typography-label16regular': size === 'x-large',
|
|
37
|
+
'w-12 h-12 typography-label14regular': size === 'large',
|
|
38
|
+
'w-10 h-10 typography-label14regular': size === 'medium',
|
|
39
|
+
'w-8 h-8 typography-label11regular': size === 'small',
|
|
40
|
+
'w-6 h-6 typography-label11regular': size === 'x-small',
|
|
49
41
|
'bg-disabled01': props.isDisabled,
|
|
50
42
|
'bg-icon01': props.userId == null
|
|
51
43
|
}, _clsx[userColors[((_props$userId = props.userId) != null ? _props$userId : 0) % userColors.length]] = props.userId != null && !((_props$isDisabled = props.isDisabled) != null ? _props$isDisabled : false), _clsx));
|
|
@@ -71,7 +63,7 @@ function Breadcrumb(_ref) {
|
|
|
71
63
|
return /*#__PURE__*/jsx("nav", {
|
|
72
64
|
"aria-label": "breadcrumb",
|
|
73
65
|
children: /*#__PURE__*/jsx("ul", {
|
|
74
|
-
className: "typography-
|
|
66
|
+
className: "typography-label14regular flex flex-wrap gap-2 whitespace-nowrap text-text01",
|
|
75
67
|
children: children
|
|
76
68
|
})
|
|
77
69
|
});
|
|
@@ -100,7 +92,7 @@ var Button = function Button(_ref) {
|
|
|
100
92
|
'h-8 px-3': size === 'medium',
|
|
101
93
|
'h-10 px-4 leading-[24px]': size === 'large',
|
|
102
94
|
'inline-flex': elementAs === 'a'
|
|
103
|
-
}, _clsx[buttonColors[variant].selected] = isSelected, _clsx[buttonColors[variant].base] = !isSelected, _clsx['hover:text-textOnColor active:text-textOnColor [&:hover>*]:fill-iconOnColor [&:active>*]:fill-iconOnColor'] = isSelected && variant !== 'outline' && variant !== 'text', _clsx['pointer-events-none'] = isDisabled, _clsx['rounded-button'] = borderRadius == null, _clsx['typography-
|
|
95
|
+
}, _clsx[buttonColors[variant].selected] = isSelected, _clsx[buttonColors[variant].base] = !isSelected, _clsx['hover:text-textOnColor active:text-textOnColor [&:hover>*]:fill-iconOnColor [&:active>*]:fill-iconOnColor'] = isSelected && variant !== 'outline' && variant !== 'text', _clsx['pointer-events-none'] = isDisabled, _clsx['rounded-button'] = borderRadius == null, _clsx['typography-label16regular'] = size === 'large', _clsx['typography-label14regular'] = size !== 'large', _clsx));
|
|
104
96
|
var Component = elementAs != null ? elementAs : 'button';
|
|
105
97
|
return /*#__PURE__*/jsxs(Component, _extends({
|
|
106
98
|
className: baseClasses,
|
|
@@ -194,7 +186,7 @@ function Checkbox(_ref) {
|
|
|
194
186
|
var hoverIndicatorClasses = clsx$1('inline-block size-3 rounded-[1px]', {
|
|
195
187
|
'bg-hoverUi': !isDisabled && !isChecked && isMouseOver
|
|
196
188
|
});
|
|
197
|
-
var labelClasses = clsx$1('typography-
|
|
189
|
+
var labelClasses = clsx$1('typography-label14regular ml-2 flex-[1_0_0] break-all', {
|
|
198
190
|
'pointer-events-none cursor-not-allowed text-disabled01': isDisabled,
|
|
199
191
|
'cursor-pointer text-text01': !isDisabled
|
|
200
192
|
});
|
|
@@ -1202,14 +1194,14 @@ function ql(a,b,c,d,e){if(e){if("function"===typeof d){var f=d;d=function(){var
|
|
|
1202
1194
|
function rl(a,b,c,d,e){var f=c._reactRootContainer;if(f){var g=f;if("function"===typeof e){var h=e;e=function(){var a=gl(g);h.call(a);};}fl(b,g,a,e);}else g=ql(c,b,a,e,d);return gl(g)}Ec=function(a){switch(a.tag){case 3:var b=a.stateNode;if(b.current.memoizedState.isDehydrated){var c=tc(b.pendingLanes);0!==c&&(Cc(b,c|1),Dk(b,B()),0===(K&6)&&(Gj=B()+500,jg()));}break;case 13:Rk(function(){var b=ih(a,1);if(null!==b){var c=R();gi(b,a,1,c);}}),il(a,1);}};
|
|
1203
1195
|
Fc=function(a){if(13===a.tag){var b=ih(a,134217728);if(null!==b){var c=R();gi(b,a,134217728,c);}il(a,134217728);}};Gc=function(a){if(13===a.tag){var b=yi(a),c=ih(a,b);if(null!==c){var d=R();gi(c,a,b,d);}il(a,b);}};Hc=function(){return C};Ic=function(a,b){var c=C;try{return C=a,b()}finally{C=c;}};
|
|
1204
1196
|
yb=function(a,b,c){switch(b){case "input":bb(a,c);b=c.name;if("radio"===c.type&&null!=b){for(c=a;c.parentNode;)c=c.parentNode;c=c.querySelectorAll("input[name="+JSON.stringify(""+b)+'][type="radio"]');for(b=0;b<c.length;b++){var d=c[b];if(d!==a&&d.form===a.form){var e=Db(d);if(!e)throw Error(p(90));Wa(d);bb(d,e);}}}break;case "textarea":ib(a,c);break;case "select":b=c.value,null!=b&&fb(a,!!c.multiple,b,!1);}};Gb=Qk;Hb=Rk;
|
|
1205
|
-
var sl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Qk]},tl={findFiberByHostInstance:Wc,bundleType:0,version:"18.3.
|
|
1197
|
+
var sl={usingClientEntryPoint:!1,Events:[Cb,ue,Db,Eb,Fb,Qk]},tl={findFiberByHostInstance:Wc,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"};
|
|
1206
1198
|
var ul={bundleType:tl.bundleType,version:tl.version,rendererPackageName:tl.rendererPackageName,rendererConfig:tl.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:ua.ReactCurrentDispatcher,findHostInstanceByFiber:function(a){a=Zb(a);return null===a?null:a.stateNode},findFiberByHostInstance:tl.findFiberByHostInstance||
|
|
1207
|
-
jl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.
|
|
1199
|
+
jl,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:"18.3.1-next-f1338f8080-20240426"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var vl=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!vl.isDisabled&&vl.supportsFiber)try{kc=vl.inject(ul),lc=vl;}catch(a){}}var __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=sl;
|
|
1208
1200
|
var createPortal=function(a,b){var c=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!nl(b))throw Error(p(200));return cl(a,b,null,c)};var createRoot=function(a,b){if(!nl(a))throw Error(p(299));var c=!1,d="",e=kl;null!==b&&void 0!==b&&(!0===b.unstable_strictMode&&(c=!0),void 0!==b.identifierPrefix&&(d=b.identifierPrefix),void 0!==b.onRecoverableError&&(e=b.onRecoverableError));b=bl(a,1,!1,null,null,c,!1,d,e);a[uf]=b.current;sf(8===a.nodeType?a.parentNode:a);return new ll(b)};
|
|
1209
1201
|
var findDOMNode=function(a){if(null==a)return null;if(1===a.nodeType)return a;var b=a._reactInternals;if(void 0===b){if("function"===typeof a.render)throw Error(p(188));a=Object.keys(a).join(",");throw Error(p(268,a));}a=Zb(b);a=null===a?null:a.stateNode;return a};var flushSync=function(a){return Rk(a)};var hydrate=function(a,b,c){if(!ol(b))throw Error(p(200));return rl(null,a,b,!0,c)};
|
|
1210
1202
|
var hydrateRoot=function(a,b,c){if(!nl(a))throw Error(p(405));var d=null!=c&&c.hydratedSources||null,e=!1,f="",g=kl;null!==c&&void 0!==c&&(!0===c.unstable_strictMode&&(e=!0),void 0!==c.identifierPrefix&&(f=c.identifierPrefix),void 0!==c.onRecoverableError&&(g=c.onRecoverableError));b=el(b,null,a,1,null!=c?c:null,e,!1,f,g);a[uf]=b.current;sf(a);if(d)for(a=0;a<d.length;a++)c=d[a],e=c._getVersion,e=e(c._source),null==b.mutableSourceEagerHydrationData?b.mutableSourceEagerHydrationData=[c,e]:b.mutableSourceEagerHydrationData.push(c,
|
|
1211
1203
|
e);return new ml(b)};var render=function(a,b,c){if(!ol(b))throw Error(p(200));return rl(null,a,b,!1,c)};var unmountComponentAtNode=function(a){if(!ol(a))throw Error(p(40));return a._reactRootContainer?(Rk(function(){rl(null,null,a,!1,function(){a._reactRootContainer=null;a[uf]=null;});}),!0):!1};var unstable_batchedUpdates=Qk;
|
|
1212
|
-
var unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!ol(c))throw Error(p(200));if(null==a||void 0===a._reactInternals)throw Error(p(38));return rl(a,b,c,!1,d)};var version="18.3.
|
|
1204
|
+
var unstable_renderSubtreeIntoContainer=function(a,b,c,d){if(!ol(c))throw Error(p(200));if(null==a||void 0===a._reactInternals)throw Error(p(38));return rl(a,b,c,!1,d)};var version="18.3.1-next-f1338f8080-20240426";
|
|
1213
1205
|
|
|
1214
1206
|
var reactDom_production_min = {
|
|
1215
1207
|
__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED: __SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,
|
|
@@ -29908,7 +29900,7 @@ identifierPrefix, onRecoverableError, transitionCallbacks) {
|
|
|
29908
29900
|
return root;
|
|
29909
29901
|
}
|
|
29910
29902
|
|
|
29911
|
-
var ReactVersion = '18.3.
|
|
29903
|
+
var ReactVersion = '18.3.1';
|
|
29912
29904
|
|
|
29913
29905
|
function createPortal(children, containerInfo, // TODO: figure out the API for cross-renderer implementation.
|
|
29914
29906
|
implementation) {
|
|
@@ -31177,7 +31169,7 @@ var Icon = function Icon(_ref) {
|
|
|
31177
31169
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
|
|
31178
31170
|
var classes = clsx('inline-block shrink-0', (_clsx = {
|
|
31179
31171
|
'fill-disabled01': isDisabled
|
|
31180
|
-
}, _clsx[iconColors.icon01] = !isDisabled && props.color === 'icon01', _clsx[iconColors.icon01Dark] = !isDisabled && props.color === 'icon01Dark', _clsx[iconColors.icon02] = !isDisabled && props.color === 'icon02', _clsx[iconColors.icon02Dark] = !isDisabled && props.color === 'icon02Dark', _clsx[iconColors.icon03] = !isDisabled && props.color === 'icon03', _clsx[iconColors.icon03Dark] = !isDisabled && props.color === 'icon03Dark', _clsx[iconColors.iconOnColor] = !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));
|
|
31172
|
+
}, _clsx[iconColors.icon01] = !isDisabled && props.color === 'icon01', _clsx[iconColors.icon01Dark] = !isDisabled && props.color === 'icon01Dark', _clsx[iconColors.icon02] = !isDisabled && props.color === 'icon02', _clsx[iconColors.icon02Dark] = !isDisabled && props.color === 'icon02Dark', _clsx[iconColors.icon03] = !isDisabled && props.color === 'icon03', _clsx[iconColors.icon03Dark] = !isDisabled && props.color === 'icon03Dark', _clsx[iconColors.iconOnColor] = !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), props.className);
|
|
31181
31173
|
return /*#__PURE__*/jsx("span", {
|
|
31182
31174
|
className: classes,
|
|
31183
31175
|
children: iconElements[props.name]
|
|
@@ -31208,7 +31200,7 @@ function DropdownItem(_ref) {
|
|
|
31208
31200
|
setIsVisible(false);
|
|
31209
31201
|
onClick && onClick(event);
|
|
31210
31202
|
};
|
|
31211
|
-
var itemClasses = clsx$1('typography-
|
|
31203
|
+
var itemClasses = clsx$1('typography-label14regular flex h-8 w-full items-center px-3 hover:bg-hover02 active:bg-active02', focusVisible.inset, {
|
|
31212
31204
|
'bg-uiBackground01 fill-icon01 text-interactive02': color === 'gray',
|
|
31213
31205
|
'fill-supportDanger text-supportDanger': color === 'red'
|
|
31214
31206
|
});
|
|
@@ -31317,9 +31309,9 @@ function Dropdown(_ref) {
|
|
|
31317
31309
|
var labelClasses = clsx$1('flex items-center', {
|
|
31318
31310
|
'mr-1': !isArrowHidden && size === 'x-small',
|
|
31319
31311
|
'mr-2': !isArrowHidden && size !== 'x-small',
|
|
31320
|
-
'typography-
|
|
31321
|
-
'typography-
|
|
31322
|
-
'typography-
|
|
31312
|
+
'typography-label12regular': size === 'x-small',
|
|
31313
|
+
'typography-label14regular': size === 'small' || size === 'medium',
|
|
31314
|
+
'typography-label16regular': size === 'large'
|
|
31323
31315
|
});
|
|
31324
31316
|
return /*#__PURE__*/jsx(DropdownContext.Provider, {
|
|
31325
31317
|
value: {
|
|
@@ -31443,7 +31435,7 @@ function IconButton(_ref) {
|
|
|
31443
31435
|
_ref$isDisabled = _ref.isDisabled,
|
|
31444
31436
|
isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
|
|
31445
31437
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
|
|
31446
|
-
var baseClasses = clsx('typography-
|
|
31438
|
+
var baseClasses = clsx('typography-label16regular flex items-center justify-center gap-1 rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
|
|
31447
31439
|
'h-4 w-4': size === 'small' && isNoPadding,
|
|
31448
31440
|
'h-6 w-6': size === 'small' && !isNoPadding || (size === 'medium' || size === 'large') && isNoPadding,
|
|
31449
31441
|
'h-8 w-8': size === 'medium' && !isNoPadding,
|
|
@@ -31639,7 +31631,7 @@ function NotificationInline(_ref) {
|
|
|
31639
31631
|
_ref$size = _ref.size,
|
|
31640
31632
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
31641
31633
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
|
|
31642
|
-
var wrapperClasses = clsx('typography-
|
|
31634
|
+
var wrapperClasses = clsx('typography-body13regular flex items-center gap-1 rounded text-text01', {
|
|
31643
31635
|
'bg-uiBackgroundError': state === 'attention',
|
|
31644
31636
|
'bg-uiBackgroundWarning': state === 'warning',
|
|
31645
31637
|
'bg-uiBackgroundBlue': state === 'information',
|
|
@@ -31695,8 +31687,14 @@ function PaginationButton(_ref) {
|
|
|
31695
31687
|
_onClick = _ref.onClick;
|
|
31696
31688
|
var _useContext = useContext(PaginationContext),
|
|
31697
31689
|
currentPage = _useContext.currentPage;
|
|
31698
|
-
|
|
31699
|
-
|
|
31690
|
+
var buttonClasses = clsx('flex h-8 min-w-8 items-center justify-center rounded fill-icon01 px-1', 'typography-label14regular', 'text-interactive02', 'hover:bg-hover02', {
|
|
31691
|
+
'border border-uiBorder02': page === currentPage
|
|
31692
|
+
}, {
|
|
31693
|
+
'border-transparent': page !== currentPage
|
|
31694
|
+
});
|
|
31695
|
+
return /*#__PURE__*/jsx("button", {
|
|
31696
|
+
type: "button",
|
|
31697
|
+
className: buttonClasses,
|
|
31700
31698
|
onClick: function onClick() {
|
|
31701
31699
|
return _onClick(page);
|
|
31702
31700
|
},
|
|
@@ -31727,13 +31725,14 @@ function Pagination(_ref) {
|
|
|
31727
31725
|
currentPage: currentPage
|
|
31728
31726
|
},
|
|
31729
31727
|
children: /*#__PURE__*/jsxs("ul", {
|
|
31730
|
-
className: "flex gap-
|
|
31728
|
+
className: "flex gap-1",
|
|
31731
31729
|
children: [/*#__PURE__*/jsx("li", {
|
|
31730
|
+
className: "flex items-center",
|
|
31732
31731
|
children: /*#__PURE__*/jsx(IconButton, {
|
|
31733
31732
|
isDisabled: currentPage === START_PAGE,
|
|
31734
31733
|
variant: "text",
|
|
31735
31734
|
icon: "angle-left",
|
|
31736
|
-
size: "
|
|
31735
|
+
size: "small",
|
|
31737
31736
|
onClick: function onClick() {
|
|
31738
31737
|
return _onClick(currentPage - 1);
|
|
31739
31738
|
}
|
|
@@ -31774,11 +31773,12 @@ function Pagination(_ref) {
|
|
|
31774
31773
|
page: totalPage
|
|
31775
31774
|
})
|
|
31776
31775
|
}), /*#__PURE__*/jsx("li", {
|
|
31776
|
+
className: "flex items-center",
|
|
31777
31777
|
children: /*#__PURE__*/jsx(IconButton, {
|
|
31778
31778
|
isDisabled: currentPage === totalPage,
|
|
31779
31779
|
variant: "text",
|
|
31780
31780
|
icon: "angle-right",
|
|
31781
|
-
size: "
|
|
31781
|
+
size: "small",
|
|
31782
31782
|
onClick: function onClick() {
|
|
31783
31783
|
return _onClick(currentPage + 1);
|
|
31784
31784
|
}
|
|
@@ -31806,7 +31806,7 @@ function SelectItem$1(_ref) {
|
|
|
31806
31806
|
onChange == null || onChange(option);
|
|
31807
31807
|
setIsOptionListOpen(false);
|
|
31808
31808
|
};
|
|
31809
|
-
var itemClasses = clsx$1('typography-
|
|
31809
|
+
var itemClasses = clsx$1('typography-label14regular flex h-8 w-full items-center px-3 hover:bg-hover02 active:bg-active02', focusVisible.inset, {
|
|
31810
31810
|
'text-interactive01 fill-interactive01 bg-selectedUi': option.id === (selectedOption == null ? void 0 : selectedOption.id),
|
|
31811
31811
|
'text-interactive02 fill-icon01 bg-uiBackground01': option.id !== (selectedOption == null ? void 0 : selectedOption.id)
|
|
31812
31812
|
});
|
|
@@ -31871,7 +31871,7 @@ function SelectList$1(_ref) {
|
|
|
31871
31871
|
'top-11': size === 'large',
|
|
31872
31872
|
'border-solid border border-uiBorder01': variant === 'outline'
|
|
31873
31873
|
});
|
|
31874
|
-
var deselectButtonClasses = clsx$1('typography-
|
|
31874
|
+
var deselectButtonClasses = clsx$1('typography-label14regular flex h-8 w-full items-center px-3 text-interactive02 hover:bg-hover02 active:bg-active02', focusVisible.inset);
|
|
31875
31875
|
return /*#__PURE__*/jsxs("ul", {
|
|
31876
31876
|
className: listClasses,
|
|
31877
31877
|
style: {
|
|
@@ -31930,9 +31930,9 @@ function Select(_ref) {
|
|
|
31930
31930
|
var labelClasses = clsx$1('overflow-hidden', {
|
|
31931
31931
|
'mr-1': size === 'x-small',
|
|
31932
31932
|
'mr-2': size !== 'x-small',
|
|
31933
|
-
'typography-
|
|
31934
|
-
'typography-
|
|
31935
|
-
'typography-
|
|
31933
|
+
'typography-label12regular': size === 'x-small',
|
|
31934
|
+
'typography-label14regular': size === 'small' || size === 'medium',
|
|
31935
|
+
'typography-label16regular': size === 'large'
|
|
31936
31936
|
});
|
|
31937
31937
|
return /*#__PURE__*/jsx(SelectContext.Provider, {
|
|
31938
31938
|
value: {
|
|
@@ -32019,7 +32019,7 @@ function PaginationSelect(_ref) {
|
|
|
32019
32019
|
children: [/*#__PURE__*/jsxs("div", {
|
|
32020
32020
|
className: "flex items-center gap-x-2",
|
|
32021
32021
|
children: [/*#__PURE__*/jsxs("div", {
|
|
32022
|
-
className: "typography-
|
|
32022
|
+
className: "typography-label14regular text-text01",
|
|
32023
32023
|
children: [minCount > 0 && minCount + " - ", maxCount, countLabel]
|
|
32024
32024
|
}), /*#__PURE__*/jsx(Select, {
|
|
32025
32025
|
size: "medium",
|
|
@@ -32038,7 +32038,7 @@ function PaginationSelect(_ref) {
|
|
|
32038
32038
|
}, option.id);
|
|
32039
32039
|
})
|
|
32040
32040
|
}), /*#__PURE__*/jsxs("div", {
|
|
32041
|
-
className: "typography-
|
|
32041
|
+
className: "typography-label14regular text-text03",
|
|
32042
32042
|
children: ["/ ", pageMax, pageLabel]
|
|
32043
32043
|
})]
|
|
32044
32044
|
}), /*#__PURE__*/jsxs("div", {
|
|
@@ -32102,7 +32102,7 @@ function Radio(_ref) {
|
|
|
32102
32102
|
var hoverIndicatorClasses = clsx$1('inline-block size-3 rounded-full', {
|
|
32103
32103
|
'bg-hoverUi': !isDisabled && !isChecked && isMouseOver
|
|
32104
32104
|
});
|
|
32105
|
-
var labelClasses = clsx$1('typography-
|
|
32105
|
+
var labelClasses = clsx$1('typography-label14regular ml-2 flex-[1_0_0] select-none break-all', {
|
|
32106
32106
|
'pointer-events-none cursor-not-allowed text-disabled01': isDisabled,
|
|
32107
32107
|
'cursor-pointer text-text01': !isDisabled
|
|
32108
32108
|
});
|
|
@@ -32153,7 +32153,7 @@ var Search = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
32153
32153
|
}, {
|
|
32154
32154
|
'h-10 px-4': size === 'large'
|
|
32155
32155
|
});
|
|
32156
|
-
var inputClasses = clsx('mx-2.5 h-full flex-1 text-text01 outline-0 placeholder:text-textPlaceholder', (_clsx = {}, _clsx['typography-
|
|
32156
|
+
var inputClasses = clsx('mx-2.5 h-full flex-1 text-text01 outline-0 placeholder:text-textPlaceholder', (_clsx = {}, _clsx['typography-label14regular'] = size === 'medium', _clsx['typography-label16regular'] = size === 'large', _clsx));
|
|
32157
32157
|
return /*#__PURE__*/jsx("div", {
|
|
32158
32158
|
className: "relative",
|
|
32159
32159
|
ref: ref,
|
|
@@ -32192,7 +32192,7 @@ function SelectItem(_ref) {
|
|
|
32192
32192
|
var children = _ref.children,
|
|
32193
32193
|
isSortKey = _ref.isSortKey,
|
|
32194
32194
|
onClickItem = _ref.onClickItem;
|
|
32195
|
-
var itemClasses = clsx$1('typography-
|
|
32195
|
+
var itemClasses = clsx$1('typography-label14regular flex h-8 w-full items-center px-3 hover:bg-hover02 active:bg-active02', focusVisible.inset, {
|
|
32196
32196
|
'bg-selectedUi fill-interactive01 text-interactive01': isSortKey,
|
|
32197
32197
|
'bg-uiBackground01 fill-icon01 text-interactive02': !isSortKey
|
|
32198
32198
|
});
|
|
@@ -32228,7 +32228,7 @@ function SelectList(_ref) {
|
|
|
32228
32228
|
'top-11': size === 'large',
|
|
32229
32229
|
'border-solid border border-uiBorder01': variant === 'outline'
|
|
32230
32230
|
});
|
|
32231
|
-
var deselectButtonClasses = clsx$1('typography-
|
|
32231
|
+
var deselectButtonClasses = clsx$1('typography-label14regular flex h-8 w-full items-center px-3 text-interactive02 hover:bg-hover02 active:bg-active02', focusVisible.inset);
|
|
32232
32232
|
return /*#__PURE__*/jsxs("ul", {
|
|
32233
32233
|
className: listClasses,
|
|
32234
32234
|
children: [/*#__PURE__*/jsx(SelectItem, {
|
|
@@ -32293,9 +32293,9 @@ function SelectSort(_ref) {
|
|
|
32293
32293
|
});
|
|
32294
32294
|
var buttonClasses = clsx$1('flex size-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));
|
|
32295
32295
|
var labelClasses = clsx$1('truncate', {
|
|
32296
|
-
'typography-
|
|
32297
|
-
'typography-
|
|
32298
|
-
'typography-
|
|
32296
|
+
'typography-label12regular': size === 'x-small',
|
|
32297
|
+
'typography-label14regular': size === 'small' || size === 'medium',
|
|
32298
|
+
'typography-label16regular': size === 'large',
|
|
32299
32299
|
'mr-1': size === 'x-small',
|
|
32300
32300
|
'mr-2': size !== 'x-small'
|
|
32301
32301
|
});
|
|
@@ -32339,9 +32339,9 @@ var TabItem = function TabItem(_ref) {
|
|
|
32339
32339
|
isSelected = _ref$isSelected === void 0 ? false : _ref$isSelected,
|
|
32340
32340
|
props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
|
|
32341
32341
|
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', {
|
|
32342
|
-
'typography-
|
|
32342
|
+
'typography-label14regular': !isSelected,
|
|
32343
32343
|
'text-interactive02 hover:before:bg-uiBorder02Dark': !isSelected,
|
|
32344
|
-
'typography-
|
|
32344
|
+
'typography-label14bold': isSelected,
|
|
32345
32345
|
'before:bg-interactive01 hover:before:bg-interactive01 pointer-events-none': isSelected
|
|
32346
32346
|
});
|
|
32347
32347
|
return /*#__PURE__*/jsx("button", {
|
|
@@ -32446,7 +32446,7 @@ function Tag(_ref) {
|
|
|
32446
32446
|
size = _ref$size === void 0 ? 'medium' : _ref$size,
|
|
32447
32447
|
isEditable = _ref.isEditable,
|
|
32448
32448
|
onDelete = _ref.onDelete;
|
|
32449
|
-
var wrapperClasses = clsx$1('flex', 'items-center', 'justify-center', (_clsx = {}, _clsx[tagColors[color]] = variant === 'normal', _clsx[tagLightColors[color]] = variant === 'light', _clsx['h-[14px] typography-
|
|
32449
|
+
var wrapperClasses = clsx$1('flex', 'items-center', 'justify-center', (_clsx = {}, _clsx[tagColors[color]] = variant === 'normal', _clsx[tagLightColors[color]] = variant === 'light', _clsx['h-[14px] typography-label11regular'] = !isEditable && size === 'x-small', _clsx['h-4 typography-label12regular'] = !isEditable && size === 'small', _clsx['h-[18px] typography-label14regular'] = !isEditable && size === 'medium', _clsx['h-[22px] typography-label14regular'] = isEditable && size === 'medium', _clsx['rounded-full'] = isEditable, _clsx.rounded = !isEditable, _clsx['py-0.5 px-1'] = !isEditable, _clsx['py-1 px-2'] = isEditable, _clsx));
|
|
32450
32450
|
return /*#__PURE__*/jsxs("div", {
|
|
32451
32451
|
className: wrapperClasses,
|
|
32452
32452
|
children: [children, isEditable ? /*#__PURE__*/jsx(DeleteIcon, {
|
|
@@ -32474,9 +32474,9 @@ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
32474
32474
|
var classes = clsx('w-full rounded border outline-0 placeholder:text-textPlaceholder disabled:text-textPlaceholder', (_clsx = {
|
|
32475
32475
|
'border-supportError': isError && !disabled,
|
|
32476
32476
|
'hover:border-hoverInput': !disabled && !isError,
|
|
32477
|
-
'border-
|
|
32477
|
+
'border-uiBorder02 hover:focus-within:border-activeInput focus-within:border-activeInput text-text01': !isError,
|
|
32478
32478
|
'bg-disabled02 border-disabled01': disabled
|
|
32479
|
-
}, _clsx['typography-
|
|
32479
|
+
}, _clsx['typography-body14regular px-2 pt-1.5 pb-2'] = size === 'medium', _clsx['text-4 leading-normal px-3.5 py-2.5'] = size === 'large', _clsx['text-supportError'] = isError, _clsx['resize-none'] = !isResizable, _clsx));
|
|
32480
32480
|
return /*#__PURE__*/jsx("div", {
|
|
32481
32481
|
className: "flex",
|
|
32482
32482
|
children: /*#__PURE__*/jsx("textarea", _extends({
|
|
@@ -32504,14 +32504,14 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
|
|
|
32504
32504
|
onClickClearButton = _ref.onClickClearButton,
|
|
32505
32505
|
props = _objectWithoutPropertiesLoose(_ref, _excluded);
|
|
32506
32506
|
var inputWrapClasses = clsx('relative flex items-center gap-2 overflow-hidden rounded border', {
|
|
32507
|
-
'border-
|
|
32507
|
+
'border-uiBorder02': !isError && !disabled,
|
|
32508
32508
|
'border-supportError': isError && !disabled,
|
|
32509
32509
|
'hover:border-hoverInput': !disabled && !isError,
|
|
32510
32510
|
'hover:focus-within:border-activeInput': !isError,
|
|
32511
32511
|
'focus-within:border-activeInput': !isError,
|
|
32512
32512
|
'bg-disabled02 border-disabled01': disabled
|
|
32513
32513
|
});
|
|
32514
|
-
var inputClasses = clsx('flex-1 pl-2 pr-3 outline-0 placeholder:text-textPlaceholder disabled:text-textPlaceholder', (_clsx = {}, _clsx['typography-
|
|
32514
|
+
var inputClasses = clsx('flex-1 pl-2 pr-3 outline-0 placeholder:text-textPlaceholder disabled:text-textPlaceholder', (_clsx = {}, _clsx['typography-label14regular min-h-8'] = size === 'medium', _clsx['typography-label16regular min-h-10'] = size === 'large', _clsx['text-text01'] = !isError, _clsx['text-supportError'] = isError, _clsx));
|
|
32515
32515
|
return /*#__PURE__*/jsxs("div", {
|
|
32516
32516
|
className: inputWrapClasses,
|
|
32517
32517
|
children: [/*#__PURE__*/jsx("input", _extends({
|
|
@@ -32567,7 +32567,7 @@ function Toast(_ref) {
|
|
|
32567
32567
|
'fill-supportWarning': state === 'warning',
|
|
32568
32568
|
'fill-supportInfo': state === 'information'
|
|
32569
32569
|
});
|
|
32570
|
-
var textClasses = clsx$1('typography-
|
|
32570
|
+
var textClasses = clsx$1('typography-body13regular flex-1 pt-[3px]', {
|
|
32571
32571
|
'text-supportError': state === 'error',
|
|
32572
32572
|
'text-text01': state === 'success' || state === 'warning' || state === 'information'
|
|
32573
32573
|
});
|
|
@@ -32698,8 +32698,8 @@ function Toggle(_ref) {
|
|
|
32698
32698
|
var labelClasses = clsx$1('break-all', {
|
|
32699
32699
|
'mr-2': labelPosition === 'left',
|
|
32700
32700
|
'ml-2': labelPosition === 'right',
|
|
32701
|
-
'typography-
|
|
32702
|
-
'typography-
|
|
32701
|
+
'typography-label12regular': size === 'small',
|
|
32702
|
+
'typography-label16regular': size === 'medium',
|
|
32703
32703
|
'pointer-events-none cursor-not-allowed text-disabled01': isDisabled,
|
|
32704
32704
|
'cursor-pointer text-text01': !isDisabled
|
|
32705
32705
|
});
|
|
@@ -32840,8 +32840,8 @@ var TooltipContent = function TooltipContent(_ref) {
|
|
|
32840
32840
|
'w-[46px]': size !== 'small'
|
|
32841
32841
|
});
|
|
32842
32842
|
var tooltipBodyClasses = clsx$1('absolute z-tooltip inline-block w-max rounded bg-uiBackgroundTooltip text-textOnColor', {
|
|
32843
|
-
'typography-
|
|
32844
|
-
'typography-
|
|
32843
|
+
'typography-body12regular': size === 'small',
|
|
32844
|
+
'typography-body13regular': size === 'medium',
|
|
32845
32845
|
'px-2 pb-1 pt-1.5': size === 'small',
|
|
32846
32846
|
'px-4 py-3': size === 'medium',
|
|
32847
32847
|
'bottom-2': verticalPosition !== 'bottom' && size === 'small',
|