@zenkigen-inc/component-ui 1.3.1 → 1.5.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 CHANGED
@@ -1,7 +1,7 @@
1
- import { userColors, typography, buttonColors, focusVisible, iconColors, tagColors, tagLightColors } from '@zenkigen-inc/component-theme';
1
+ import { userColors, buttonColors, focusVisible, iconColors, typography, tagColors, tagLightColors } from '@zenkigen-inc/component-theme';
2
2
  import clsx$1, { clsx } from 'clsx';
3
3
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
4
- import aa, { useState, useCallback, useEffect, createContext, useContext, useRef, forwardRef } from 'react';
4
+ import aa, { useState, useCallback, useEffect, createContext, useContext, useRef, useLayoutEffect, forwardRef } from 'react';
5
5
  import { iconElements } from '@zenkigen-inc/component-icons';
6
6
 
7
7
  function _extends() {
@@ -31,16 +31,24 @@ function _objectWithoutPropertiesLoose(source, excluded) {
31
31
  return target;
32
32
  }
33
33
 
34
- var _excluded$6 = ["size"];
34
+ var _excluded$7 = ["size"];
35
35
  var isAsciiString = function isAsciiString(str) {
36
36
  return str.charCodeAt(0) < 256;
37
37
  };
38
38
  function Avatar(_ref) {
39
- var _clsx;
39
+ var _props$userId, _clsx;
40
40
  var _ref$size = _ref.size,
41
41
  size = _ref$size === void 0 ? 'medium' : _ref$size,
42
- props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
43
- var classes = clsx('text-text-textOnColor', 'rounded-full', 'flex items-center justify-center', props.isDisabled ? 'bg-disabled-disabled01' : props.userId ? userColors[props.userId % userColors.length] : 'bg-icon-icon01', (_clsx = {}, _clsx["w-16 h-16 " + typography.label.label1regular] = size === 'x-large', _clsx["w-12 h-12 " + typography.label.label2regular] = size === 'large', _clsx["w-10 h-10 " + typography.label.label2regular] = size === 'medium', _clsx["w-8 h-8 " + typography.label.label4regular] = size === 'small', _clsx["w-6 h-6 " + typography.label.label4regular] = size === 'x-small', _clsx));
42
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$7);
43
+ var classes = clsx('flex items-center justify-center rounded-full text-text-textOnColor', (_clsx = {
44
+ 'w-16 h-16 typography-label1regular': size === 'x-large',
45
+ 'w-12 h-12 typography-label2regular': size === 'large',
46
+ 'w-10 h-10 typography-label2regular': size === 'medium',
47
+ 'w-8 h-8 typography-label4regular': size === 'small',
48
+ 'w-6 h-6 typography-label4regular': size === 'x-small',
49
+ 'bg-disabled-disabled01': props.isDisabled,
50
+ 'bg-icon-icon01': !props.userId
51
+ }, _clsx[userColors[((_props$userId = props.userId) != null ? _props$userId : 0) % userColors.length]] = props.userId && !props.isDisabled, _clsx));
44
52
  var trimmedFirstName = props.firstName.trim();
45
53
  var trimmedLastName = props.lastName.trim();
46
54
  var nameOnIcon = isAsciiString(trimmedLastName) ? trimmedFirstName.slice(0, 1).toUpperCase() + trimmedLastName.slice(0, 1).toUpperCase() : (trimmedLastName + trimmedFirstName).slice(0, 2);
@@ -63,36 +71,38 @@ function Breadcrumb(_ref) {
63
71
  return /*#__PURE__*/jsx("nav", {
64
72
  "aria-label": "breadcrumb",
65
73
  children: /*#__PURE__*/jsx("ul", {
66
- className: typography.label.label2regular + " flex flex-wrap gap-2 whitespace-nowrap text-text-text01",
74
+ className: "typography-label2regular flex flex-wrap gap-2 whitespace-nowrap text-text-text01",
67
75
  children: children
68
76
  })
69
77
  });
70
78
  }
71
79
  Breadcrumb.Item = BreadcrumbItem;
72
80
 
73
- var _excluded$5 = ["size", "variant"];
81
+ var _excluded$6 = ["size", "variant"];
74
82
  function Button(_ref) {
75
83
  var _ref$size = _ref.size,
76
84
  size = _ref$size === void 0 ? 'medium' : _ref$size,
77
85
  _ref$variant = _ref.variant,
78
86
  variant = _ref$variant === void 0 ? 'fill' : _ref$variant,
79
- props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
80
- var baseClasses = clsx('rounded-button', 'flex', 'shrink-0', 'gap-1', 'items-center', 'justify-center', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, size === 'large' ? typography.label.label1regular : typography.label.label2regular, {
81
- 'h-6 px-2.5': size === 'small'
82
- }, {
83
- 'h-8 px-3': size === 'medium'
84
- }, {
85
- 'h-10 px-4 leading-[24px]': size === 'large'
86
- }, {
87
- 'inline-flex': props.isAnchor
88
- }, {
89
- 'pointer-events-none': props.isDisabled
87
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$6);
88
+ var baseClasses = clsx('flex', 'shrink-0', 'gap-1', 'items-center', 'justify-center', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
89
+ 'h-6 px-2.5': size === 'small',
90
+ 'h-8 px-3': size === 'medium',
91
+ 'h-10 px-4 leading-[24px]': size === 'large',
92
+ 'inline-flex': props.isAnchor,
93
+ 'pointer-events-none': props.isDisabled,
94
+ 'rounded-button': !props.borderRadius,
95
+ 'typography-label1regular': size === 'large',
96
+ 'typography-label2regular': size !== 'large'
90
97
  });
91
98
  if (props.isAnchor) {
92
99
  return /*#__PURE__*/jsxs("a", {
93
100
  className: baseClasses,
94
101
  href: props.href,
95
102
  target: props.target,
103
+ style: {
104
+ borderRadius: props.borderRadius
105
+ },
96
106
  children: [props.before, props.children, props.after]
97
107
  });
98
108
  } else {
@@ -102,7 +112,8 @@ function Button(_ref) {
102
112
  disabled: props.isDisabled,
103
113
  onClick: props.onClick,
104
114
  style: {
105
- width: props.width
115
+ width: props.width,
116
+ borderRadius: props.borderRadius
106
117
  },
107
118
  children: [props.before, props.children, props.after]
108
119
  });
@@ -172,7 +183,7 @@ function Checkbox(_ref) {
172
183
  'scale-100': isChecked
173
184
  });
174
185
  var hoverIndicatorClasses = clsx$1('w-3', 'h-3', 'inline-block', 'rounded-[1px]', !isDisabled && !isChecked && isMouseOver && 'bg-hover-hoverUi');
175
- var labelClasses = clsx$1('flex-[1_0_0]', 'ml-2', typography.label.label2regular, 'break-all', isDisabled ? 'pointer-events-none cursor-not-allowed text-disabled-disabled01' : 'cursor-pointer text-text-text01');
186
+ var labelClasses = clsx$1('typography-label2regular ml-2 flex-[1_0_0] break-all', isDisabled ? 'pointer-events-none cursor-not-allowed text-disabled-disabled01' : 'cursor-pointer text-text-text01');
176
187
  return /*#__PURE__*/jsxs("div", {
177
188
  className: wrapperClasses,
178
189
  children: [/*#__PURE__*/jsxs("div", {
@@ -208,505 +219,129 @@ function Checkbox(_ref) {
208
219
  });
209
220
  }
210
221
 
211
- var useOutsideClick = function useOutsideClick(ref, handler, enabled) {
212
- if (enabled === void 0) {
213
- enabled = true;
214
- }
215
- useEffect(function () {
216
- var listener = function listener(event) {
217
- var element = ref == null ? void 0 : ref.current;
218
- if (!element || element.contains((event == null ? void 0 : event.target) || null)) {
219
- return;
220
- }
221
- handler(event);
222
- };
223
- if (enabled) {
224
- document.addEventListener('click', listener);
225
- }
226
- return function () {
227
- return document.removeEventListener('click', listener);
228
- };
229
- }, [ref, enabled, handler]);
230
- };
222
+ function createCommonjsModule(fn) {
223
+ var module = { exports: {} };
224
+ return fn(module, module.exports), module.exports;
225
+ }
231
226
 
232
- var _excluded$4 = ["size"];
233
- var Icon = function Icon(_ref) {
234
- var _ref2;
235
- var _ref$size = _ref.size,
236
- size = _ref$size === void 0 ? 'medium' : _ref$size,
237
- props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
238
- return /*#__PURE__*/jsx("span", {
239
- className: clsx('inline-block', 'shrink-0', props.isDisabled ? 'fill-disabled-disabled01' : (_ref2 = {}, _ref2[iconColors.icon01] = props.color === 'icon01', _ref2[iconColors.icon01Dark] = props.color === 'icon01Dark', _ref2[iconColors.icon02] = props.color === 'icon02', _ref2[iconColors.icon02Dark] = props.color === 'icon02Dark', _ref2[iconColors.icon03] = props.color === 'icon03', _ref2[iconColors.icon03Dark] = props.color === 'icon03Dark', _ref2[iconColors.iconOnColor] = props.color === 'iconOnColor', _ref2), {
240
- 'w-3 h-3': size === 'x-small',
241
- 'w-4 h-4': size === 'small',
242
- 'w-6 h-6': size === 'medium',
243
- 'w-8 h-8': size === 'large',
244
- 'w-10 h-10': size === 'x-large'
245
- }),
246
- children: iconElements[props.name]
247
- });
248
- };
227
+ /**
228
+ * @license React
229
+ * scheduler.production.min.js
230
+ *
231
+ * Copyright (c) Facebook, Inc. and its affiliates.
232
+ *
233
+ * This source code is licensed under the MIT license found in the
234
+ * LICENSE file in the root directory of this source tree.
235
+ */
249
236
 
250
- var DropdownContext = /*#__PURE__*/createContext({
251
- isVisible: false,
252
- setIsVisible: function setIsVisible() {
253
- return false;
254
- },
255
- isDisabled: false,
256
- targetDimensions: {
257
- width: 0,
258
- height: 0
259
- },
260
- variant: 'outline'
237
+ var scheduler_production_min = createCommonjsModule(function (module, exports) {
238
+ function f(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<g(e,b))a[d]=b,a[c]=e,c=d;else break a}}function h(a){return 0===a.length?null:a[0]}function k(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length,w=e>>>1;d<w;){var m=2*(d+1)-1,C=a[m],n=m+1,x=a[n];if(0>g(C,c))n<e&&0>g(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(n<e&&0>g(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}
239
+ function g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if("object"===typeof performance&&"function"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()};}else {var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q};}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D="function"===typeof setTimeout?setTimeout:null,E="function"===typeof clearTimeout?clearTimeout:null,F="undefined"!==typeof setImmediate?setImmediate:null;
240
+ "undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t);}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else {var b=h(t);null!==b&&K(H,b.startTime-a);}}
241
+ function J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if("function"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();"function"===typeof e?v.callback=e:v===h(r)&&k(r);G(b);}else k(r);v=h(r);}if(null!==v)var w=!0;else {var m=h(t);null!==m&&K(H,m.startTime-b);w=!1;}return w}finally{v=null,y=c,z=!1;}}var N=!1,O=null,L=-1,P=5,Q=-1;
242
+ function M(){return exports.unstable_now()-Q<P?!1:!0}function R(){if(null!==O){var a=exports.unstable_now();Q=a;var b=!0;try{b=O(!0,a);}finally{b?S():(N=!1,O=null);}}else N=!1;}var S;if("function"===typeof F)S=function(){F(R);};else if("undefined"!==typeof MessageChannel){var T=new MessageChannel,U=T.port2;T.port1.onmessage=R;S=function(){U.postMessage(null);};}else S=function(){D(R,0);};function I(a){O=a;N||(N=!0,S());}function K(a,b){L=D(function(){a(exports.unstable_now());},b);}
243
+ exports.unstable_IdlePriority=5;exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(a){a.callback=null;};exports.unstable_continueExecution=function(){A||z||(A=!0,I(J));};
244
+ exports.unstable_forceFrameRate=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<a?Math.floor(1E3/a):5;};exports.unstable_getCurrentPriorityLevel=function(){return y};exports.unstable_getFirstCallbackNode=function(){return h(r)};exports.unstable_next=function(a){switch(y){case 1:case 2:case 3:var b=3;break;default:b=y;}var c=y;y=b;try{return a()}finally{y=c;}};exports.unstable_pauseExecution=function(){};
245
+ exports.unstable_requestPaint=function(){};exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3;}var c=y;y=a;try{return b()}finally{y=c;}};
246
+ exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3;}e=c+e;a={id:u++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};
247
+ exports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c;}}};
261
248
  });
262
249
 
263
- function DropdownItem(_ref) {
264
- var children = _ref.children,
265
- _ref$color = _ref.color,
266
- color = _ref$color === void 0 ? 'gray' : _ref$color,
267
- onClick = _ref.onClick;
268
- var _useContext = useContext(DropdownContext),
269
- setIsVisible = _useContext.setIsVisible;
270
- var handleClickItem = function handleClickItem(event) {
271
- setIsVisible(false);
272
- onClick && onClick(event);
273
- };
274
- var listItemClasses = clsx$1('flex w-full items-center');
275
- var itemClasses = clsx$1('flex', 'items-center', 'w-full', 'h-8', 'px-3', 'hover:bg-hover-hover02', 'active:bg-active-active02', focusVisible.inset, typography.label.label2regular, {
276
- 'bg-background-uiBackground01 fill-icon-icon01 text-interactive-interactive02': color === 'gray',
277
- 'fill-support-supportDanger text-support-supportDanger': color === 'red'
278
- });
279
- return /*#__PURE__*/jsx("li", {
280
- className: listItemClasses,
281
- children: /*#__PURE__*/jsx("button", {
282
- className: itemClasses,
283
- type: "button",
284
- onClick: handleClickItem,
285
- children: children
286
- })
287
- });
250
+ /**
251
+ * @license React
252
+ * scheduler.development.js
253
+ *
254
+ * Copyright (c) Facebook, Inc. and its affiliates.
255
+ *
256
+ * This source code is licensed under the MIT license found in the
257
+ * LICENSE file in the root directory of this source tree.
258
+ */
259
+
260
+ var scheduler_development = createCommonjsModule(function (module, exports) {
261
+
262
+ if (process.env.NODE_ENV !== "production") {
263
+ (function() {
264
+
265
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
266
+ if (
267
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
268
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
269
+ 'function'
270
+ ) {
271
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
288
272
  }
273
+ var enableSchedulerDebugging = false;
274
+ var enableProfiling = false;
275
+ var frameYieldMs = 5;
289
276
 
290
- function DropdownMenu(_ref) {
291
- var children = _ref.children,
292
- maxHeight = _ref.maxHeight,
293
- isNoPadding = _ref.isNoPadding,
294
- _ref$verticalPosition = _ref.verticalPosition,
295
- verticalPosition = _ref$verticalPosition === void 0 ? 'bottom' : _ref$verticalPosition,
296
- _ref$horizontalAlign = _ref.horizontalAlign,
297
- horizontalAlign = _ref$horizontalAlign === void 0 ? 'left' : _ref$horizontalAlign;
298
- var _useContext = useContext(DropdownContext),
299
- isVisible = _useContext.isVisible,
300
- isDisabled = _useContext.isDisabled,
301
- targetDimensions = _useContext.targetDimensions,
302
- variant = _useContext.variant;
303
- var wrapperClasses = clsx$1('z-dropdown', 'absolute', 'w-max', 'bg-background-uiBackground01', 'rounded', 'shadow-floatingShadow', 'overflow-y-auto', horizontalAlign === 'left' ? 'left-0' : horizontalAlign === 'right' ? 'right-0' : 'left-auto', {
304
- 'border-solid border border-border-uiBorder01': variant === 'outline',
305
- 'py-1': !isNoPadding
306
- });
307
- return isVisible && !isDisabled && /*#__PURE__*/jsx("ul", {
308
- className: wrapperClasses,
309
- style: {
310
- top: verticalPosition === 'bottom' ? targetDimensions.height + 4 + "px" : 'unset',
311
- bottom: verticalPosition === 'top' ? targetDimensions.height + 4 + "px" : 'unset',
312
- maxHeight: maxHeight
313
- },
314
- children: children
315
- });
277
+ function push(heap, node) {
278
+ var index = heap.length;
279
+ heap.push(node);
280
+ siftUp(heap, node, index);
281
+ }
282
+ function peek(heap) {
283
+ return heap.length === 0 ? null : heap[0];
316
284
  }
285
+ function pop(heap) {
286
+ if (heap.length === 0) {
287
+ return null;
288
+ }
317
289
 
318
- function Dropdown(_ref) {
319
- var children = _ref.children,
320
- target = _ref.target,
321
- label = _ref.label,
322
- icon = _ref.icon,
323
- _ref$size = _ref.size,
324
- size = _ref$size === void 0 ? 'medium' : _ref$size,
325
- _ref$variant = _ref.variant,
326
- variant = _ref$variant === void 0 ? target ? 'text' : 'outline' : _ref$variant,
327
- title = _ref.title,
328
- _ref$isDisabled = _ref.isDisabled,
329
- isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
330
- _ref$isArrowHidden = _ref.isArrowHidden,
331
- isArrowHidden = _ref$isArrowHidden === void 0 ? false : _ref$isArrowHidden;
332
- var _useState = useState(false),
333
- isVisible = _useState[0],
334
- setIsVisible = _useState[1];
335
- var _useState2 = useState({
336
- width: 0,
337
- height: 0
338
- }),
339
- targetDimensions = _useState2[0],
340
- setTargetDimensions = _useState2[1];
341
- var targetRef = useRef(null);
342
- useOutsideClick(targetRef, function () {
343
- return setIsVisible(false);
344
- });
345
- var handleToggle = useCallback(function () {
346
- if (targetRef.current === null) {
290
+ var first = heap[0];
291
+ var last = heap.pop();
292
+
293
+ if (last !== first) {
294
+ heap[0] = last;
295
+ siftDown(heap, last, 0);
296
+ }
297
+
298
+ return first;
299
+ }
300
+
301
+ function siftUp(heap, node, i) {
302
+ var index = i;
303
+
304
+ while (index > 0) {
305
+ var parentIndex = index - 1 >>> 1;
306
+ var parent = heap[parentIndex];
307
+
308
+ if (compare(parent, node) > 0) {
309
+ // The parent is larger. Swap positions.
310
+ heap[parentIndex] = node;
311
+ heap[index] = parent;
312
+ index = parentIndex;
313
+ } else {
314
+ // The parent is smaller. Exit.
347
315
  return;
348
316
  }
349
- if (isVisible) {
350
- setIsVisible(false);
351
- } else {
352
- var dimensions = targetRef.current.getBoundingClientRect();
353
- var calculatedDimensions = {
354
- width: dimensions.right - dimensions.left,
355
- height: dimensions.bottom - dimensions.top
356
- };
357
- setTargetDimensions(calculatedDimensions);
358
- setIsVisible(true);
359
- }
360
- }, [isVisible]);
361
- var wrapperClasses = clsx$1('relative', 'flex shrink-0 items-center gap-1', 'rounded', isDisabled && 'cursor-not-allowed');
362
- var childrenButtonClasses = clsx$1('flex items-center justify-center', 'rounded', 'hover:bg-hover-hover02', 'active:bg-active-active02', focusVisible.normal, isDisabled && 'pointer-events-none', 'p-1', {
363
- 'border border-border-uiBorder02': variant === 'outline'
364
- });
365
- var buttonClasses = clsx$1('flex items-center', 'rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, isDisabled && 'pointer-events-none', {
366
- 'h-6 px-2': size === 'x-small' || size === 'small',
367
- 'h-8 px-4': size === 'medium',
368
- 'h-10 px-4': size === 'large'
369
- });
370
- var labelClasses = clsx$1('flex', 'items-center', !isArrowHidden ? size === 'x-small' ? 'mr-1' : 'mr-2' : null, typography.label[size === 'x-small' ? 'label3regular' : size === 'small' || size === 'medium' ? 'label2regular' : 'label1regular']);
371
- return /*#__PURE__*/jsx(DropdownContext.Provider, {
372
- value: {
373
- isVisible: isVisible,
374
- setIsVisible: setIsVisible,
375
- isDisabled: isDisabled,
376
- targetDimensions: targetDimensions,
377
- variant: variant
378
- },
379
- children: /*#__PURE__*/jsxs("div", {
380
- ref: targetRef,
381
- className: wrapperClasses,
382
- children: [target ? /*#__PURE__*/jsx("button", {
383
- type: "button",
384
- title: title,
385
- className: childrenButtonClasses,
386
- onClick: handleToggle,
387
- disabled: isDisabled,
388
- children: target
389
- }) : /*#__PURE__*/jsxs("button", {
390
- type: "button",
391
- title: title,
392
- className: buttonClasses,
393
- onClick: handleToggle,
394
- disabled: isDisabled,
395
- children: [icon && /*#__PURE__*/jsx("span", {
396
- className: "mr-1 flex",
397
- children: /*#__PURE__*/jsx(Icon, {
398
- name: icon,
399
- size: size === 'large' ? 'medium' : 'small'
400
- })
401
- }), /*#__PURE__*/jsx("span", {
402
- className: labelClasses,
403
- children: label
404
- }), !isArrowHidden && /*#__PURE__*/jsx("div", {
405
- className: "ml-auto flex items-center",
406
- children: /*#__PURE__*/jsx(Icon, {
407
- name: isVisible ? 'angle-small-up' : 'angle-small-down',
408
- size: "small"
409
- })
410
- })]
411
- }), children]
412
- })
413
- });
414
- }
415
- Dropdown.Menu = DropdownMenu;
416
- Dropdown.Item = DropdownItem;
417
-
418
- function EvaluationStar(_ref) {
419
- var value = _ref.value,
420
- _ref$isEditable = _ref.isEditable,
421
- isEditable = _ref$isEditable === void 0 ? false : _ref$isEditable,
422
- onChangeRating = _ref.onChangeRating,
423
- _ref$size = _ref.size,
424
- size = _ref$size === void 0 ? 'medium' : _ref$size;
425
- var maxRating = 5;
426
- var _useState = useState(value),
427
- currentRating = _useState[0],
428
- setCurrentRating = _useState[1];
429
- var handleChangeRating = useCallback(function (newRating) {
430
- if (isEditable) {
431
- setCurrentRating(newRating);
432
- if (onChangeRating) {
433
- onChangeRating(newRating);
434
- }
435
- }
436
- }, [isEditable, onChangeRating]);
437
- var starClasses = clsx$1(focusVisible.inset, {
438
- 'w-6 h-6': size === 'large',
439
- 'w-4 h-4': size === 'medium'
440
- });
441
- var ratingStars = [];
442
- var _loop = function _loop(i) {
443
- var color = i <= currentRating ? 'fill-yellow-yellow50' : 'fill-icon-icon03';
444
- ratingStars.push( /*#__PURE__*/jsx("button", {
445
- type: "button",
446
- onClick: function onClick() {
447
- return handleChangeRating(i);
448
- },
449
- className: clsx$1(color, starClasses),
450
- disabled: !isEditable,
451
- children: iconElements['star-filled']
452
- }, i));
453
- };
454
- for (var i = 1; i < maxRating + 1; i++) {
455
- _loop(i);
456
- }
457
- return /*#__PURE__*/jsx("span", {
458
- className: "flex flex-row",
459
- children: ratingStars
460
- });
461
- }
462
-
463
- function Heading(props) {
464
- var TagName = "h" + props.level;
465
- var classes = clsx('flex', 'items-center', 'text-text-text01', typography.heading[TagName], {
466
- 'gap-2': props.level === 1
467
- }, {
468
- 'gap-1': props.level > 1
469
- });
470
- return /*#__PURE__*/jsxs(TagName, {
471
- className: classes,
472
- children: [props.before, props.children, props.after]
473
- });
474
- }
475
-
476
- var _excluded$3 = ["size", "variant"];
477
- function IconButton(_ref) {
478
- var _ref$size = _ref.size,
479
- size = _ref$size === void 0 ? 'medium' : _ref$size,
480
- _ref$variant = _ref.variant,
481
- variant = _ref$variant === void 0 ? 'outline' : _ref$variant,
482
- props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
483
- var baseClasses = clsx('rounded', 'flex', 'gap-1', 'items-center', 'justify-center', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, typography.label.label1regular, {
484
- 'h-6 w-6': size === 'small' && !props.isNoPadding
485
- }, {
486
- 'h-8 w-8': size === 'medium' && !props.isNoPadding
487
- }, {
488
- 'h-10 w-10': size === 'large' && !props.isNoPadding
489
- }, {
490
- 'h-4 w-4': size === 'small' && props.isNoPadding
491
- }, {
492
- 'h-6 w-6': size === 'medium' && props.isNoPadding
493
- }, {
494
- 'h-6 w-6': size === 'large' && props.isNoPadding
495
- }, {
496
- 'inline-flex': props.isAnchor
497
- }, {
498
- 'pointer-events-none': props.isDisabled
499
- });
500
- var iconSize = size === 'small' ? 'small' : 'medium';
501
- if (props.isAnchor) {
502
- return /*#__PURE__*/jsx("a", {
503
- className: baseClasses,
504
- href: props.href,
505
- target: props.target,
506
- children: /*#__PURE__*/jsx(Icon, {
507
- name: props.icon,
508
- size: iconSize
509
- })
510
- });
511
- } else {
512
- return /*#__PURE__*/jsx("button", {
513
- type: "button",
514
- className: baseClasses,
515
- disabled: props.isDisabled,
516
- onClick: props.onClick,
517
- children: /*#__PURE__*/jsx(Icon, {
518
- name: props.icon,
519
- size: iconSize
520
- })
521
- });
522
- }
523
- }
524
-
525
- function Loading(_ref) {
526
- var _ref$size = _ref.size,
527
- size = _ref$size === void 0 ? 'medium' : _ref$size,
528
- _ref$position = _ref.position,
529
- position = _ref$position === void 0 ? 'fixed' : _ref$position,
530
- _ref$height = _ref.height,
531
- height = _ref$height === void 0 ? '100%' : _ref$height;
532
- var wrapperClasses = clsx$1(position, 'top-0', 'left-0', 'z-20', 'flex', 'items-center', 'justify-center', 'w-full');
533
- var svgClasses = clsx$1(size === 'small' && 'h-4 w-4', size === 'medium' && 'h-8 w-8', size === 'large' && 'h-16 w-16');
534
- return /*#__PURE__*/jsx(Fragment, {
535
- children: /*#__PURE__*/jsxs("div", {
536
- className: wrapperClasses,
537
- style: {
538
- height: height
539
- },
540
- children: [size === 'small' && /*#__PURE__*/jsx("svg", {
541
- className: svgClasses,
542
- viewBox: "0 0 16 16",
543
- fill: "none",
544
- xmlns: "http://www.w3.org/2000/svg",
545
- children: /*#__PURE__*/jsx("circle", {
546
- className: "origin-center animate-circular-small-move stroke-interactive-interactive01",
547
- cx: "8",
548
- cy: "8",
549
- r: "7",
550
- stroke: "currentColor",
551
- strokeWidth: "1.5",
552
- fill: "none"
553
- })
554
- }), size === 'medium' && /*#__PURE__*/jsx("svg", {
555
- className: svgClasses,
556
- viewBox: "0 0 32 32",
557
- fill: "none",
558
- xmlns: "http://www.w3.org/2000/svg",
559
- children: /*#__PURE__*/jsx("circle", {
560
- className: "origin-center animate-circular-medium-move stroke-interactive-interactive01",
561
- cx: "16",
562
- cy: "16",
563
- r: "15",
564
- stroke: "currentColor",
565
- strokeWidth: "2",
566
- fill: "none"
567
- })
568
- }), size === 'large' && /*#__PURE__*/jsx("svg", {
569
- className: svgClasses,
570
- viewBox: "0 0 64 64",
571
- fill: "none",
572
- xmlns: "http://www.w3.org/2000/svg",
573
- children: /*#__PURE__*/jsx("circle", {
574
- className: "origin-center animate-circular-large-move stroke-interactive-interactive01",
575
- cx: "32",
576
- cy: "32",
577
- r: "30",
578
- stroke: "currentColor",
579
- strokeWidth: "3",
580
- fill: "none"
581
- })
582
- })]
583
- })
584
- });
585
- }
586
-
587
- function createCommonjsModule(fn) {
588
- var module = { exports: {} };
589
- return fn(module, module.exports), module.exports;
590
- }
591
-
592
- /**
593
- * @license React
594
- * scheduler.production.min.js
595
- *
596
- * Copyright (c) Facebook, Inc. and its affiliates.
597
- *
598
- * This source code is licensed under the MIT license found in the
599
- * LICENSE file in the root directory of this source tree.
600
- */
601
-
602
- var scheduler_production_min = createCommonjsModule(function (module, exports) {
603
- function f(a,b){var c=a.length;a.push(b);a:for(;0<c;){var d=c-1>>>1,e=a[d];if(0<g(e,b))a[d]=b,a[c]=e,c=d;else break a}}function h(a){return 0===a.length?null:a[0]}function k(a){if(0===a.length)return null;var b=a[0],c=a.pop();if(c!==b){a[0]=c;a:for(var d=0,e=a.length,w=e>>>1;d<w;){var m=2*(d+1)-1,C=a[m],n=m+1,x=a[n];if(0>g(C,c))n<e&&0>g(x,C)?(a[d]=x,a[n]=c,d=n):(a[d]=C,a[m]=c,d=m);else if(n<e&&0>g(x,c))a[d]=x,a[n]=c,d=n;else break a}}return b}
604
- function g(a,b){var c=a.sortIndex-b.sortIndex;return 0!==c?c:a.id-b.id}if("object"===typeof performance&&"function"===typeof performance.now){var l=performance;exports.unstable_now=function(){return l.now()};}else {var p=Date,q=p.now();exports.unstable_now=function(){return p.now()-q};}var r=[],t=[],u=1,v=null,y=3,z=!1,A=!1,B=!1,D="function"===typeof setTimeout?setTimeout:null,E="function"===typeof clearTimeout?clearTimeout:null,F="undefined"!==typeof setImmediate?setImmediate:null;
605
- "undefined"!==typeof navigator&&void 0!==navigator.scheduling&&void 0!==navigator.scheduling.isInputPending&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function G(a){for(var b=h(t);null!==b;){if(null===b.callback)k(t);else if(b.startTime<=a)k(t),b.sortIndex=b.expirationTime,f(r,b);else break;b=h(t);}}function H(a){B=!1;G(a);if(!A)if(null!==h(r))A=!0,I(J);else {var b=h(t);null!==b&&K(H,b.startTime-a);}}
606
- function J(a,b){A=!1;B&&(B=!1,E(L),L=-1);z=!0;var c=y;try{G(b);for(v=h(r);null!==v&&(!(v.expirationTime>b)||a&&!M());){var d=v.callback;if("function"===typeof d){v.callback=null;y=v.priorityLevel;var e=d(v.expirationTime<=b);b=exports.unstable_now();"function"===typeof e?v.callback=e:v===h(r)&&k(r);G(b);}else k(r);v=h(r);}if(null!==v)var w=!0;else {var m=h(t);null!==m&&K(H,m.startTime-b);w=!1;}return w}finally{v=null,y=c,z=!1;}}var N=!1,O=null,L=-1,P=5,Q=-1;
607
- function M(){return exports.unstable_now()-Q<P?!1:!0}function R(){if(null!==O){var a=exports.unstable_now();Q=a;var b=!0;try{b=O(!0,a);}finally{b?S():(N=!1,O=null);}}else N=!1;}var S;if("function"===typeof F)S=function(){F(R);};else if("undefined"!==typeof MessageChannel){var T=new MessageChannel,U=T.port2;T.port1.onmessage=R;S=function(){U.postMessage(null);};}else S=function(){D(R,0);};function I(a){O=a;N||(N=!0,S());}function K(a,b){L=D(function(){a(exports.unstable_now());},b);}
608
- exports.unstable_IdlePriority=5;exports.unstable_ImmediatePriority=1;exports.unstable_LowPriority=4;exports.unstable_NormalPriority=3;exports.unstable_Profiling=null;exports.unstable_UserBlockingPriority=2;exports.unstable_cancelCallback=function(a){a.callback=null;};exports.unstable_continueExecution=function(){A||z||(A=!0,I(J));};
609
- exports.unstable_forceFrameRate=function(a){0>a||125<a?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<a?Math.floor(1E3/a):5;};exports.unstable_getCurrentPriorityLevel=function(){return y};exports.unstable_getFirstCallbackNode=function(){return h(r)};exports.unstable_next=function(a){switch(y){case 1:case 2:case 3:var b=3;break;default:b=y;}var c=y;y=b;try{return a()}finally{y=c;}};exports.unstable_pauseExecution=function(){};
610
- exports.unstable_requestPaint=function(){};exports.unstable_runWithPriority=function(a,b){switch(a){case 1:case 2:case 3:case 4:case 5:break;default:a=3;}var c=y;y=a;try{return b()}finally{y=c;}};
611
- exports.unstable_scheduleCallback=function(a,b,c){var d=exports.unstable_now();"object"===typeof c&&null!==c?(c=c.delay,c="number"===typeof c&&0<c?d+c:d):c=d;switch(a){case 1:var e=-1;break;case 2:e=250;break;case 5:e=1073741823;break;case 4:e=1E4;break;default:e=5E3;}e=c+e;a={id:u++,callback:b,priorityLevel:a,startTime:c,expirationTime:e,sortIndex:-1};c>d?(a.sortIndex=c,f(t,a),null===h(r)&&a===h(t)&&(B?(E(L),L=-1):B=!0,K(H,c-d))):(a.sortIndex=e,f(r,a),A||z||(A=!0,I(J)));return a};
612
- exports.unstable_shouldYield=M;exports.unstable_wrapCallback=function(a){var b=y;return function(){var c=y;y=b;try{return a.apply(this,arguments)}finally{y=c;}}};
613
- });
614
-
615
- /**
616
- * @license React
617
- * scheduler.development.js
618
- *
619
- * Copyright (c) Facebook, Inc. and its affiliates.
620
- *
621
- * This source code is licensed under the MIT license found in the
622
- * LICENSE file in the root directory of this source tree.
623
- */
624
-
625
- var scheduler_development = createCommonjsModule(function (module, exports) {
626
-
627
- if (process.env.NODE_ENV !== "production") {
628
- (function() {
629
-
630
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
631
- if (
632
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
633
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart ===
634
- 'function'
635
- ) {
636
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStart(new Error());
637
- }
638
- var enableSchedulerDebugging = false;
639
- var enableProfiling = false;
640
- var frameYieldMs = 5;
641
-
642
- function push(heap, node) {
643
- var index = heap.length;
644
- heap.push(node);
645
- siftUp(heap, node, index);
646
- }
647
- function peek(heap) {
648
- return heap.length === 0 ? null : heap[0];
649
- }
650
- function pop(heap) {
651
- if (heap.length === 0) {
652
- return null;
653
- }
654
-
655
- var first = heap[0];
656
- var last = heap.pop();
657
-
658
- if (last !== first) {
659
- heap[0] = last;
660
- siftDown(heap, last, 0);
661
- }
662
-
663
- return first;
664
- }
665
-
666
- function siftUp(heap, node, i) {
667
- var index = i;
668
-
669
- while (index > 0) {
670
- var parentIndex = index - 1 >>> 1;
671
- var parent = heap[parentIndex];
672
-
673
- if (compare(parent, node) > 0) {
674
- // The parent is larger. Swap positions.
675
- heap[parentIndex] = node;
676
- heap[index] = parent;
677
- index = parentIndex;
678
- } else {
679
- // The parent is smaller. Exit.
680
- return;
681
- }
682
- }
683
- }
684
-
685
- function siftDown(heap, node, i) {
686
- var index = i;
687
- var length = heap.length;
688
- var halfLength = length >>> 1;
689
-
690
- while (index < halfLength) {
691
- var leftIndex = (index + 1) * 2 - 1;
692
- var left = heap[leftIndex];
693
- var rightIndex = leftIndex + 1;
694
- var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
695
-
696
- if (compare(left, node) < 0) {
697
- if (rightIndex < length && compare(right, left) < 0) {
698
- heap[index] = right;
699
- heap[rightIndex] = node;
700
- index = rightIndex;
701
- } else {
702
- heap[index] = left;
703
- heap[leftIndex] = node;
704
- index = leftIndex;
705
- }
706
- } else if (rightIndex < length && compare(right, node) < 0) {
707
- heap[index] = right;
708
- heap[rightIndex] = node;
709
- index = rightIndex;
317
+ }
318
+ }
319
+
320
+ function siftDown(heap, node, i) {
321
+ var index = i;
322
+ var length = heap.length;
323
+ var halfLength = length >>> 1;
324
+
325
+ while (index < halfLength) {
326
+ var leftIndex = (index + 1) * 2 - 1;
327
+ var left = heap[leftIndex];
328
+ var rightIndex = leftIndex + 1;
329
+ var right = heap[rightIndex]; // If the left or right node is smaller, swap with the smaller of those.
330
+
331
+ if (compare(left, node) < 0) {
332
+ if (rightIndex < length && compare(right, left) < 0) {
333
+ heap[index] = right;
334
+ heap[rightIndex] = node;
335
+ index = rightIndex;
336
+ } else {
337
+ heap[index] = left;
338
+ heap[leftIndex] = node;
339
+ index = leftIndex;
340
+ }
341
+ } else if (rightIndex < length && compare(right, node) < 0) {
342
+ heap[index] = right;
343
+ heap[rightIndex] = node;
344
+ index = rightIndex;
710
345
  } else {
711
346
  // Neither child is smaller. Exit.
712
347
  return;
@@ -31298,149 +30933,538 @@ setAttemptHydrationAtPriority(runWithPriority);
31298
30933
  }
31299
30934
  }
31300
30935
 
31301
- setRestoreImplementation(restoreControlledState$3);
31302
- setBatchingImplementation(batchedUpdates$1, discreteUpdates, flushSync);
31303
-
31304
- function createPortal$1(children, container) {
31305
- var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
31306
-
31307
- if (!isValidContainer(container)) {
31308
- throw new Error('Target container is not a DOM element.');
31309
- } // TODO: pass ReactDOM portal implementation as third argument
31310
- // $FlowFixMe The Flow type is opaque but there's no way to actually create it.
31311
-
31312
-
31313
- return createPortal(children, container, null, key);
31314
- }
31315
-
31316
- function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
31317
- return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);
30936
+ setRestoreImplementation(restoreControlledState$3);
30937
+ setBatchingImplementation(batchedUpdates$1, discreteUpdates, flushSync);
30938
+
30939
+ function createPortal$1(children, container) {
30940
+ var key = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
30941
+
30942
+ if (!isValidContainer(container)) {
30943
+ throw new Error('Target container is not a DOM element.');
30944
+ } // TODO: pass ReactDOM portal implementation as third argument
30945
+ // $FlowFixMe The Flow type is opaque but there's no way to actually create it.
30946
+
30947
+
30948
+ return createPortal(children, container, null, key);
30949
+ }
30950
+
30951
+ function renderSubtreeIntoContainer(parentComponent, element, containerNode, callback) {
30952
+ return unstable_renderSubtreeIntoContainer(parentComponent, element, containerNode, callback);
30953
+ }
30954
+
30955
+ var Internals = {
30956
+ usingClientEntryPoint: false,
30957
+ // Keep in sync with ReactTestUtils.js.
30958
+ // This is an array for better minification.
30959
+ Events: [getInstanceFromNode, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, batchedUpdates$1]
30960
+ };
30961
+
30962
+ function createRoot$1(container, options) {
30963
+ {
30964
+ if (!Internals.usingClientEntryPoint && !false) {
30965
+ error('You are importing createRoot from "react-dom" which is not supported. ' + 'You should instead import it from "react-dom/client".');
30966
+ }
30967
+ }
30968
+
30969
+ return createRoot(container, options);
30970
+ }
30971
+
30972
+ function hydrateRoot$1(container, initialChildren, options) {
30973
+ {
30974
+ if (!Internals.usingClientEntryPoint && !false) {
30975
+ error('You are importing hydrateRoot from "react-dom" which is not supported. ' + 'You should instead import it from "react-dom/client".');
30976
+ }
30977
+ }
30978
+
30979
+ return hydrateRoot(container, initialChildren, options);
30980
+ } // Overload the definition to the two valid signatures.
30981
+ // Warning, this opts-out of checking the function body.
30982
+
30983
+
30984
+ // eslint-disable-next-line no-redeclare
30985
+ function flushSync$1(fn) {
30986
+ {
30987
+ if (isAlreadyRendering()) {
30988
+ error('flushSync was called from inside a lifecycle method. React cannot ' + 'flush when React is already rendering. Consider moving this call to ' + 'a scheduler task or micro task.');
30989
+ }
30990
+ }
30991
+
30992
+ return flushSync(fn);
30993
+ }
30994
+ var foundDevTools = injectIntoDevTools({
30995
+ findFiberByHostInstance: getClosestInstanceFromNode,
30996
+ bundleType: 1 ,
30997
+ version: ReactVersion,
30998
+ rendererPackageName: 'react-dom'
30999
+ });
31000
+
31001
+ {
31002
+ if (!foundDevTools && canUseDOM && window.top === window.self) {
31003
+ // If we're in Chrome or Firefox, provide a download link if not installed.
31004
+ if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
31005
+ var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://.
31006
+
31007
+ if (/^(https?|file):$/.test(protocol)) {
31008
+ // eslint-disable-next-line react-internal/no-production-logging
31009
+ console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://reactjs.org/link/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://reactjs.org/link/react-devtools-faq' : ''), 'font-weight:bold');
31010
+ }
31011
+ }
31012
+ }
31013
+ }
31014
+
31015
+ exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
31016
+ exports.createPortal = createPortal$1;
31017
+ exports.createRoot = createRoot$1;
31018
+ exports.findDOMNode = findDOMNode;
31019
+ exports.flushSync = flushSync$1;
31020
+ exports.hydrate = hydrate;
31021
+ exports.hydrateRoot = hydrateRoot$1;
31022
+ exports.render = render;
31023
+ exports.unmountComponentAtNode = unmountComponentAtNode;
31024
+ exports.unstable_batchedUpdates = batchedUpdates$1;
31025
+ exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
31026
+ exports.version = ReactVersion;
31027
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
31028
+ if (
31029
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
31030
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
31031
+ 'function'
31032
+ ) {
31033
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
31034
+ }
31035
+
31036
+ })();
31037
+ }
31038
+ });
31039
+
31040
+ var reactDom = createCommonjsModule(function (module) {
31041
+
31042
+ function checkDCE() {
31043
+ /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
31044
+ if (
31045
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
31046
+ typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
31047
+ ) {
31048
+ return;
31049
+ }
31050
+ if (process.env.NODE_ENV !== 'production') {
31051
+ // This branch is unreachable because this function is only called
31052
+ // in production, but the condition is true only in development.
31053
+ // Therefore if the branch is still here, dead code elimination wasn't
31054
+ // properly applied.
31055
+ // Don't change the message. React DevTools relies on it. Also make sure
31056
+ // this message doesn't occur elsewhere in this function, or it will cause
31057
+ // a false positive.
31058
+ throw new Error('^_^');
31059
+ }
31060
+ try {
31061
+ // Verify that the code above has been dead code eliminated (DCE'd).
31062
+ __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
31063
+ } catch (err) {
31064
+ // DevTools shouldn't crash React, no matter what.
31065
+ // We should still report in case we break this code.
31066
+ console.error(err);
31067
+ }
31068
+ }
31069
+
31070
+ if (process.env.NODE_ENV === 'production') {
31071
+ // DCE check should happen before ReactDOM bundle executes so that
31072
+ // DevTools can report bad minification during injection.
31073
+ checkDCE();
31074
+ module.exports = reactDom_production_min;
31075
+ } else {
31076
+ module.exports = reactDom_development;
31318
31077
  }
31078
+ });
31319
31079
 
31320
- var Internals = {
31321
- usingClientEntryPoint: false,
31322
- // Keep in sync with ReactTestUtils.js.
31323
- // This is an array for better minification.
31324
- Events: [getInstanceFromNode, getNodeFromInstance, getFiberCurrentPropsFromNode, enqueueStateRestore, restoreStateIfNeeded, batchedUpdates$1]
31325
- };
31326
-
31327
- function createRoot$1(container, options) {
31328
- {
31329
- if (!Internals.usingClientEntryPoint && !false) {
31330
- error('You are importing createRoot from "react-dom" which is not supported. ' + 'You should instead import it from "react-dom/client".');
31331
- }
31080
+ var useOutsideClick = function useOutsideClick(ref, handler, enabled) {
31081
+ if (enabled === void 0) {
31082
+ enabled = true;
31332
31083
  }
31333
-
31334
- return createRoot(container, options);
31335
- }
31336
-
31337
- function hydrateRoot$1(container, initialChildren, options) {
31338
- {
31339
- if (!Internals.usingClientEntryPoint && !false) {
31340
- error('You are importing hydrateRoot from "react-dom" which is not supported. ' + 'You should instead import it from "react-dom/client".');
31084
+ useEffect(function () {
31085
+ var listener = function listener(event) {
31086
+ var element = ref == null ? void 0 : ref.current;
31087
+ if (!element || element.contains((event == null ? void 0 : event.target) || null)) {
31088
+ return;
31089
+ }
31090
+ handler(event);
31091
+ };
31092
+ if (enabled) {
31093
+ document.addEventListener('click', listener);
31341
31094
  }
31342
- }
31095
+ return function () {
31096
+ return document.removeEventListener('click', listener);
31097
+ };
31098
+ }, [ref, enabled, handler]);
31099
+ };
31343
31100
 
31344
- return hydrateRoot(container, initialChildren, options);
31345
- } // Overload the definition to the two valid signatures.
31346
- // Warning, this opts-out of checking the function body.
31101
+ var _excluded$5 = ["size"];
31102
+ var Icon = function Icon(_ref) {
31103
+ var _ref2;
31104
+ var _ref$size = _ref.size,
31105
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
31106
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$5);
31107
+ return /*#__PURE__*/jsx("span", {
31108
+ className: clsx('inline-block', 'shrink-0', props.isDisabled ? 'fill-disabled-disabled01' : (_ref2 = {}, _ref2[iconColors.icon01] = props.color === 'icon01', _ref2[iconColors.icon01Dark] = props.color === 'icon01Dark', _ref2[iconColors.icon02] = props.color === 'icon02', _ref2[iconColors.icon02Dark] = props.color === 'icon02Dark', _ref2[iconColors.icon03] = props.color === 'icon03', _ref2[iconColors.icon03Dark] = props.color === 'icon03Dark', _ref2[iconColors.iconOnColor] = props.color === 'iconOnColor', _ref2), {
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
+ }),
31115
+ children: iconElements[props.name]
31116
+ });
31117
+ };
31347
31118
 
31119
+ var DropdownContext = /*#__PURE__*/createContext({
31120
+ isVisible: false,
31121
+ setIsVisible: function setIsVisible() {
31122
+ return false;
31123
+ },
31124
+ isDisabled: false,
31125
+ targetDimensions: {
31126
+ width: 0,
31127
+ height: 0
31128
+ },
31129
+ variant: 'outline'
31130
+ });
31348
31131
 
31349
- // eslint-disable-next-line no-redeclare
31350
- function flushSync$1(fn) {
31351
- {
31352
- if (isAlreadyRendering()) {
31353
- error('flushSync was called from inside a lifecycle method. React cannot ' + 'flush when React is already rendering. Consider moving this call to ' + 'a scheduler task or micro task.');
31354
- }
31355
- }
31132
+ function DropdownItem(_ref) {
31133
+ var children = _ref.children,
31134
+ _ref$color = _ref.color,
31135
+ color = _ref$color === void 0 ? 'gray' : _ref$color,
31136
+ onClick = _ref.onClick;
31137
+ var _useContext = useContext(DropdownContext),
31138
+ setIsVisible = _useContext.setIsVisible;
31139
+ var handleClickItem = function handleClickItem(event) {
31140
+ setIsVisible(false);
31141
+ onClick && onClick(event);
31142
+ };
31143
+ var listItemClasses = clsx$1('flex w-full items-center');
31144
+ 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
+ 'bg-background-uiBackground01 fill-icon-icon01 text-interactive-interactive02': color === 'gray',
31146
+ 'fill-support-supportDanger text-support-supportDanger': color === 'red'
31147
+ });
31148
+ return /*#__PURE__*/jsx("li", {
31149
+ className: listItemClasses,
31150
+ children: /*#__PURE__*/jsx("button", {
31151
+ className: itemClasses,
31152
+ type: "button",
31153
+ onClick: handleClickItem,
31154
+ children: children
31155
+ })
31156
+ });
31157
+ }
31356
31158
 
31357
- return flushSync(fn);
31159
+ function DropdownMenu(_ref) {
31160
+ var children = _ref.children,
31161
+ maxHeight = _ref.maxHeight,
31162
+ isNoPadding = _ref.isNoPadding,
31163
+ _ref$verticalPosition = _ref.verticalPosition,
31164
+ verticalPosition = _ref$verticalPosition === void 0 ? 'bottom' : _ref$verticalPosition,
31165
+ _ref$horizontalAlign = _ref.horizontalAlign,
31166
+ horizontalAlign = _ref$horizontalAlign === void 0 ? 'left' : _ref$horizontalAlign;
31167
+ var _useContext = useContext(DropdownContext),
31168
+ isVisible = _useContext.isVisible,
31169
+ isDisabled = _useContext.isDisabled,
31170
+ targetDimensions = _useContext.targetDimensions,
31171
+ variant = _useContext.variant,
31172
+ portalTargetRef = _useContext.portalTargetRef;
31173
+ var wrapperClasses = clsx$1('z-dropdown w-max overflow-y-auto rounded bg-background-uiBackground01 shadow-floatingShadow', {
31174
+ absolute: !portalTargetRef,
31175
+ 'border-solid border border-border-uiBorder01': variant === 'outline',
31176
+ 'py-1': !isNoPadding,
31177
+ 'left-0': horizontalAlign === 'left',
31178
+ 'right-0': horizontalAlign === 'right',
31179
+ 'left-auto': horizontalAlign === 'center'
31180
+ });
31181
+ return isVisible && !isDisabled && /*#__PURE__*/jsx("ul", {
31182
+ className: wrapperClasses,
31183
+ style: {
31184
+ top: !portalTargetRef && verticalPosition === 'bottom' ? targetDimensions.height + 4 + "px" : 'unset',
31185
+ bottom: !portalTargetRef && verticalPosition === 'top' ? targetDimensions.height + 4 + "px" : 'unset',
31186
+ maxHeight: maxHeight
31187
+ },
31188
+ children: children
31189
+ });
31358
31190
  }
31359
- var foundDevTools = injectIntoDevTools({
31360
- findFiberByHostInstance: getClosestInstanceFromNode,
31361
- bundleType: 1 ,
31362
- version: ReactVersion,
31363
- rendererPackageName: 'react-dom'
31364
- });
31365
31191
 
31366
- {
31367
- if (!foundDevTools && canUseDOM && window.top === window.self) {
31368
- // If we're in Chrome or Firefox, provide a download link if not installed.
31369
- if (navigator.userAgent.indexOf('Chrome') > -1 && navigator.userAgent.indexOf('Edge') === -1 || navigator.userAgent.indexOf('Firefox') > -1) {
31370
- var protocol = window.location.protocol; // Don't warn in exotic cases like chrome-extension://.
31192
+ function Dropdown(_ref) {
31193
+ var children = _ref.children,
31194
+ target = _ref.target,
31195
+ label = _ref.label,
31196
+ icon = _ref.icon,
31197
+ _ref$size = _ref.size,
31198
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
31199
+ _ref$variant = _ref.variant,
31200
+ variant = _ref$variant === void 0 ? target ? 'text' : 'outline' : _ref$variant,
31201
+ title = _ref.title,
31202
+ _ref$isDisabled = _ref.isDisabled,
31203
+ isDisabled = _ref$isDisabled === void 0 ? false : _ref$isDisabled,
31204
+ _ref$isArrowHidden = _ref.isArrowHidden,
31205
+ isArrowHidden = _ref$isArrowHidden === void 0 ? false : _ref$isArrowHidden,
31206
+ portalTargetRef = _ref.portalTargetRef;
31207
+ var _useState = useState(false),
31208
+ isVisible = _useState[0],
31209
+ setIsVisible = _useState[1];
31210
+ var _useState2 = useState({
31211
+ width: 0,
31212
+ height: 0
31213
+ }),
31214
+ targetDimensions = _useState2[0],
31215
+ setTargetDimensions = _useState2[1];
31216
+ var targetRef = useRef(null);
31217
+ useOutsideClick(targetRef, function () {
31218
+ return setIsVisible(false);
31219
+ });
31220
+ var handleToggle = useCallback(function () {
31221
+ if (targetRef.current === null) {
31222
+ return;
31223
+ }
31224
+ if (isVisible) {
31225
+ setIsVisible(false);
31226
+ } else {
31227
+ var dimensions = targetRef.current.getBoundingClientRect();
31228
+ var calculatedDimensions = {
31229
+ width: dimensions.right - dimensions.left,
31230
+ height: dimensions.bottom - dimensions.top
31231
+ };
31232
+ setTargetDimensions(calculatedDimensions);
31233
+ setIsVisible(true);
31234
+ }
31235
+ }, [isVisible]);
31236
+ var wrapperClasses = clsx$1('relative', 'flex shrink-0 items-center gap-1', 'rounded', isDisabled && 'cursor-not-allowed');
31237
+ var childrenButtonClasses = clsx$1('flex items-center justify-center', 'rounded', 'hover:bg-hover-hover02', 'active:bg-active-active02', focusVisible.normal, isDisabled && 'pointer-events-none', 'p-1', {
31238
+ 'border border-border-uiBorder02': variant === 'outline'
31239
+ });
31240
+ var buttonClasses = clsx$1('flex items-center', 'rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, isDisabled && 'pointer-events-none', {
31241
+ 'h-6 px-2': size === 'x-small' || size === 'small',
31242
+ 'h-8 px-4': size === 'medium',
31243
+ 'h-10 px-4': size === 'large'
31244
+ });
31245
+ var labelClasses = clsx$1('flex items-center', {
31246
+ 'mr-1': !isArrowHidden && size === 'x-small',
31247
+ 'mr-2': !isArrowHidden && size !== 'x-small',
31248
+ 'typography-label3regular': size === 'x-small',
31249
+ 'typography-label2regular': size === 'small' || size === 'medium',
31250
+ 'typography-label1regular': size === 'large'
31251
+ });
31252
+ return /*#__PURE__*/jsx(DropdownContext.Provider, {
31253
+ value: {
31254
+ isVisible: isVisible,
31255
+ setIsVisible: setIsVisible,
31256
+ isDisabled: isDisabled,
31257
+ targetDimensions: targetDimensions,
31258
+ variant: variant,
31259
+ portalTargetRef: portalTargetRef
31260
+ },
31261
+ children: /*#__PURE__*/jsxs("div", {
31262
+ ref: targetRef,
31263
+ className: wrapperClasses,
31264
+ children: [target ? /*#__PURE__*/jsx("button", {
31265
+ type: "button",
31266
+ title: title,
31267
+ className: childrenButtonClasses,
31268
+ onClick: handleToggle,
31269
+ disabled: isDisabled,
31270
+ children: target
31271
+ }) : /*#__PURE__*/jsxs("button", {
31272
+ type: "button",
31273
+ title: title,
31274
+ className: buttonClasses,
31275
+ onClick: handleToggle,
31276
+ disabled: isDisabled,
31277
+ children: [icon && /*#__PURE__*/jsx("span", {
31278
+ className: "mr-1 flex",
31279
+ children: /*#__PURE__*/jsx(Icon, {
31280
+ name: icon,
31281
+ size: size === 'large' ? 'medium' : 'small'
31282
+ })
31283
+ }), /*#__PURE__*/jsx("span", {
31284
+ className: labelClasses,
31285
+ children: label
31286
+ }), !isArrowHidden && /*#__PURE__*/jsx("div", {
31287
+ className: "ml-auto flex items-center",
31288
+ children: /*#__PURE__*/jsx(Icon, {
31289
+ name: isVisible ? 'angle-small-up' : 'angle-small-down',
31290
+ size: "small"
31291
+ })
31292
+ })]
31293
+ }), !portalTargetRef ? children : portalTargetRef && portalTargetRef.current && /*#__PURE__*/reactDom.createPortal(children, portalTargetRef.current)]
31294
+ })
31295
+ });
31296
+ }
31297
+ Dropdown.Menu = DropdownMenu;
31298
+ Dropdown.Item = DropdownItem;
31371
31299
 
31372
- if (/^(https?|file):$/.test(protocol)) {
31373
- // eslint-disable-next-line react-internal/no-production-logging
31374
- console.info('%cDownload the React DevTools ' + 'for a better development experience: ' + 'https://reactjs.org/link/react-devtools' + (protocol === 'file:' ? '\nYou might need to use a local HTTP server (instead of file://): ' + 'https://reactjs.org/link/react-devtools-faq' : ''), 'font-weight:bold');
31300
+ function EvaluationStar(_ref) {
31301
+ var value = _ref.value,
31302
+ _ref$isEditable = _ref.isEditable,
31303
+ isEditable = _ref$isEditable === void 0 ? false : _ref$isEditable,
31304
+ onChangeRating = _ref.onChangeRating,
31305
+ _ref$size = _ref.size,
31306
+ size = _ref$size === void 0 ? 'medium' : _ref$size;
31307
+ var maxRating = 5;
31308
+ var _useState = useState(value),
31309
+ currentRating = _useState[0],
31310
+ setCurrentRating = _useState[1];
31311
+ var handleChangeRating = useCallback(function (newRating) {
31312
+ if (isEditable) {
31313
+ setCurrentRating(newRating);
31314
+ if (onChangeRating) {
31315
+ onChangeRating(newRating);
31375
31316
  }
31376
31317
  }
31318
+ }, [isEditable, onChangeRating]);
31319
+ var starClasses = clsx$1(focusVisible.inset, {
31320
+ 'w-6 h-6': size === 'large',
31321
+ 'w-4 h-4': size === 'medium'
31322
+ });
31323
+ var ratingStars = [];
31324
+ var _loop = function _loop(i) {
31325
+ var color = i <= currentRating ? 'fill-yellow-yellow50' : 'fill-icon-icon03';
31326
+ ratingStars.push( /*#__PURE__*/jsx("button", {
31327
+ type: "button",
31328
+ onClick: function onClick() {
31329
+ return handleChangeRating(i);
31330
+ },
31331
+ className: clsx$1(color, starClasses),
31332
+ disabled: !isEditable,
31333
+ children: iconElements['star-filled']
31334
+ }, i));
31335
+ };
31336
+ for (var i = 1; i < maxRating + 1; i++) {
31337
+ _loop(i);
31377
31338
  }
31339
+ return /*#__PURE__*/jsx("span", {
31340
+ className: "flex flex-row",
31341
+ children: ratingStars
31342
+ });
31378
31343
  }
31379
31344
 
31380
- exports.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED = Internals;
31381
- exports.createPortal = createPortal$1;
31382
- exports.createRoot = createRoot$1;
31383
- exports.findDOMNode = findDOMNode;
31384
- exports.flushSync = flushSync$1;
31385
- exports.hydrate = hydrate;
31386
- exports.hydrateRoot = hydrateRoot$1;
31387
- exports.render = render;
31388
- exports.unmountComponentAtNode = unmountComponentAtNode;
31389
- exports.unstable_batchedUpdates = batchedUpdates$1;
31390
- exports.unstable_renderSubtreeIntoContainer = renderSubtreeIntoContainer;
31391
- exports.version = ReactVersion;
31392
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
31393
- if (
31394
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ !== 'undefined' &&
31395
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop ===
31396
- 'function'
31397
- ) {
31398
- __REACT_DEVTOOLS_GLOBAL_HOOK__.registerInternalModuleStop(new Error());
31399
- }
31400
-
31401
- })();
31345
+ function Heading(props) {
31346
+ var TagName = "h" + props.level;
31347
+ var classes = clsx("flex items-center text-text-text01", typography.heading[TagName], {
31348
+ 'gap-2': props.level === 1
31349
+ }, {
31350
+ 'gap-1': props.level > 1
31351
+ });
31352
+ return /*#__PURE__*/jsxs(TagName, {
31353
+ className: classes,
31354
+ children: [props.before, props.children, props.after]
31355
+ });
31402
31356
  }
31403
- });
31404
-
31405
- var reactDom = createCommonjsModule(function (module) {
31406
31357
 
31407
- function checkDCE() {
31408
- /* global __REACT_DEVTOOLS_GLOBAL_HOOK__ */
31409
- if (
31410
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__ === 'undefined' ||
31411
- typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE !== 'function'
31412
- ) {
31413
- return;
31414
- }
31415
- if (process.env.NODE_ENV !== 'production') {
31416
- // This branch is unreachable because this function is only called
31417
- // in production, but the condition is true only in development.
31418
- // Therefore if the branch is still here, dead code elimination wasn't
31419
- // properly applied.
31420
- // Don't change the message. React DevTools relies on it. Also make sure
31421
- // this message doesn't occur elsewhere in this function, or it will cause
31422
- // a false positive.
31423
- throw new Error('^_^');
31424
- }
31425
- try {
31426
- // Verify that the code above has been dead code eliminated (DCE'd).
31427
- __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(checkDCE);
31428
- } catch (err) {
31429
- // DevTools shouldn't crash React, no matter what.
31430
- // We should still report in case we break this code.
31431
- console.error(err);
31358
+ var _excluded$4 = ["size", "variant"];
31359
+ function IconButton(_ref) {
31360
+ var _ref$size = _ref.size,
31361
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
31362
+ _ref$variant = _ref.variant,
31363
+ variant = _ref$variant === void 0 ? 'outline' : _ref$variant,
31364
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$4);
31365
+ 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-6 w-6': size === 'small' && !props.isNoPadding
31367
+ }, {
31368
+ 'h-8 w-8': size === 'medium' && !props.isNoPadding
31369
+ }, {
31370
+ 'h-10 w-10': size === 'large' && !props.isNoPadding
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
+ }, {
31380
+ 'pointer-events-none': props.isDisabled
31381
+ });
31382
+ var iconSize = size === 'small' ? 'small' : 'medium';
31383
+ if (props.isAnchor) {
31384
+ return /*#__PURE__*/jsx("a", {
31385
+ className: baseClasses,
31386
+ href: props.href,
31387
+ target: props.target,
31388
+ children: /*#__PURE__*/jsx(Icon, {
31389
+ name: props.icon,
31390
+ size: iconSize
31391
+ })
31392
+ });
31393
+ } else {
31394
+ return /*#__PURE__*/jsx("button", {
31395
+ type: "button",
31396
+ className: baseClasses,
31397
+ disabled: props.isDisabled,
31398
+ onClick: props.onClick,
31399
+ children: /*#__PURE__*/jsx(Icon, {
31400
+ name: props.icon,
31401
+ size: iconSize
31402
+ })
31403
+ });
31432
31404
  }
31433
31405
  }
31434
31406
 
31435
- if (process.env.NODE_ENV === 'production') {
31436
- // DCE check should happen before ReactDOM bundle executes so that
31437
- // DevTools can report bad minification during injection.
31438
- checkDCE();
31439
- module.exports = reactDom_production_min;
31440
- } else {
31441
- module.exports = reactDom_development;
31407
+ function Loading(_ref) {
31408
+ var _ref$size = _ref.size,
31409
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
31410
+ _ref$position = _ref.position,
31411
+ position = _ref$position === void 0 ? 'fixed' : _ref$position,
31412
+ _ref$height = _ref.height,
31413
+ height = _ref$height === void 0 ? '100%' : _ref$height;
31414
+ var wrapperClasses = clsx$1(position, 'top-0', 'left-0', 'z-20', 'flex', 'items-center', 'justify-center', 'w-full');
31415
+ var svgClasses = clsx$1(size === 'small' && 'h-4 w-4', size === 'medium' && 'h-8 w-8', size === 'large' && 'h-16 w-16');
31416
+ return /*#__PURE__*/jsx(Fragment, {
31417
+ children: /*#__PURE__*/jsxs("div", {
31418
+ className: wrapperClasses,
31419
+ style: {
31420
+ height: height
31421
+ },
31422
+ children: [size === 'small' && /*#__PURE__*/jsx("svg", {
31423
+ className: svgClasses,
31424
+ viewBox: "0 0 16 16",
31425
+ fill: "none",
31426
+ xmlns: "http://www.w3.org/2000/svg",
31427
+ children: /*#__PURE__*/jsx("circle", {
31428
+ className: "origin-center animate-circular-small-move stroke-interactive-interactive01",
31429
+ cx: "8",
31430
+ cy: "8",
31431
+ r: "7",
31432
+ stroke: "currentColor",
31433
+ strokeWidth: "1.5",
31434
+ fill: "none"
31435
+ })
31436
+ }), size === 'medium' && /*#__PURE__*/jsx("svg", {
31437
+ className: svgClasses,
31438
+ viewBox: "0 0 32 32",
31439
+ fill: "none",
31440
+ xmlns: "http://www.w3.org/2000/svg",
31441
+ children: /*#__PURE__*/jsx("circle", {
31442
+ className: "origin-center animate-circular-medium-move stroke-interactive-interactive01",
31443
+ cx: "16",
31444
+ cy: "16",
31445
+ r: "15",
31446
+ stroke: "currentColor",
31447
+ strokeWidth: "2",
31448
+ fill: "none"
31449
+ })
31450
+ }), size === 'large' && /*#__PURE__*/jsx("svg", {
31451
+ className: svgClasses,
31452
+ viewBox: "0 0 64 64",
31453
+ fill: "none",
31454
+ xmlns: "http://www.w3.org/2000/svg",
31455
+ children: /*#__PURE__*/jsx("circle", {
31456
+ className: "origin-center animate-circular-large-move stroke-interactive-interactive01",
31457
+ cx: "32",
31458
+ cy: "32",
31459
+ r: "30",
31460
+ stroke: "currentColor",
31461
+ strokeWidth: "3",
31462
+ fill: "none"
31463
+ })
31464
+ })]
31465
+ })
31466
+ });
31442
31467
  }
31443
- });
31444
31468
 
31445
31469
  function ModalBody(_ref) {
31446
31470
  var children = _ref.children;
@@ -31474,7 +31498,7 @@ function ModalHeader(_ref) {
31474
31498
  isNoCloseButton = _ref.isNoCloseButton;
31475
31499
  var _useContext = useContext(ModalContext),
31476
31500
  setIsOpen = _useContext.setIsOpen;
31477
- var headerClasses = clsx$1('flex', 'shrink-0', 'items-center', 'justify-between', 'w-full', 'rounded-t-lg', 'px-6', 'text-text-text01', typography.heading.h5, {
31501
+ var headerClasses = clsx$1('typography-h5 flex w-full shrink-0 items-center justify-between rounded-t-lg px-6 text-text-text01', {
31478
31502
  'border-b-[1px] border-border-uiBorder01': !isNoBorder,
31479
31503
  'h-14': !isNoCloseButton,
31480
31504
  'h-12': isNoCloseButton
@@ -31527,14 +31551,14 @@ Modal.Body = ModalBody;
31527
31551
  Modal.Header = ModalHeader;
31528
31552
  Modal.Footer = ModalFooter;
31529
31553
 
31530
- var _excluded$2 = ["state", "size"];
31554
+ var _excluded$3 = ["state", "size"];
31531
31555
  function NotificationInline(_ref) {
31532
31556
  var _ref$state = _ref.state,
31533
31557
  state = _ref$state === void 0 ? 'default' : _ref$state,
31534
31558
  _ref$size = _ref.size,
31535
31559
  size = _ref$size === void 0 ? 'medium' : _ref$size,
31536
- props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
31537
- var wrapperClasses = clsx('rounded', 'text-text-text01', 'flex', 'gap-1', 'items-center', typography.body.body2regular, {
31560
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$3);
31561
+ var wrapperClasses = clsx('typography-body2regular flex items-center gap-1 rounded text-text-text01', {
31538
31562
  'bg-background-uiBackgroundError': state === 'attention',
31539
31563
  'bg-background-uiBackgroundWarning': state === 'warning',
31540
31564
  'bg-background-uiBackgroundBlue': state === 'information',
@@ -31701,13 +31725,13 @@ function SelectItem$1(_ref) {
31701
31725
  onChange == null || onChange(option);
31702
31726
  setIsOptionListOpen(false);
31703
31727
  };
31704
- var listItemClasses = clsx$1('flex w-full items-center');
31705
- var itemClasses = clsx$1('flex', 'items-center', 'w-full', 'h-8', 'px-3', 'hover:bg-hover-hover02', 'active:bg-active-active02', focusVisible.inset, typography.label.label2regular, {
31728
+ 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, {
31706
31729
  'text-interactive-interactive01 fill-interactive-interactive01 bg-selected-selectedUi': option.id === (selectedOption == null ? void 0 : selectedOption.id),
31707
31730
  'text-interactive-interactive02 fill-icon-icon01 bg-background-uiBackground01': option.id !== (selectedOption == null ? void 0 : selectedOption.id)
31708
31731
  });
31709
31732
  return /*#__PURE__*/jsx("li", {
31710
- className: listItemClasses,
31733
+ className: "flex w-full items-center",
31734
+ "data-id": option.id,
31711
31735
  children: /*#__PURE__*/jsxs("button", {
31712
31736
  className: itemClasses,
31713
31737
  type: "button",
@@ -31734,6 +31758,7 @@ function SelectItem$1(_ref) {
31734
31758
  function SelectList$1(_ref) {
31735
31759
  var children = _ref.children,
31736
31760
  maxHeight = _ref.maxHeight;
31761
+ var ref = useRef(null);
31737
31762
  var _useContext = useContext(SelectContext),
31738
31763
  size = _useContext.size,
31739
31764
  selectedOption = _useContext.selectedOption,
@@ -31745,18 +31770,32 @@ function SelectList$1(_ref) {
31745
31770
  onChange == null || onChange(null);
31746
31771
  setIsOptionListOpen(false);
31747
31772
  };
31748
- var listClasses = clsx$1('z-dropdown', 'absolute', 'w-max', 'py-2', 'overflow-y-auto', 'bg-background-uiBackground01', 'rounded', 'shadow-floatingShadow', {
31773
+ useLayoutEffect(function () {
31774
+ if (maxHeight && ref.current) {
31775
+ var element = Array.from(ref.current.children || []).find(function (item) {
31776
+ return item.getAttribute('data-id') === (selectedOption == null ? void 0 : selectedOption.id);
31777
+ });
31778
+ if (element) {
31779
+ var wrapRect = ref.current.getBoundingClientRect();
31780
+ var rect = element.getBoundingClientRect();
31781
+ ref.current.scroll(0, rect.top - wrapRect.top - wrapRect.height / 2 + rect.height / 2);
31782
+ }
31783
+ }
31784
+ // eslint-disable-next-line react-hooks/exhaustive-deps
31785
+ }, []);
31786
+ var listClasses = clsx$1('absolute z-dropdown w-max overflow-y-auto rounded bg-background-uiBackground01 py-2 shadow-floatingShadow', {
31749
31787
  'top-7': size === 'x-small' || size === 'small',
31750
31788
  'top-9': size === 'medium',
31751
31789
  'top-11': size === 'large',
31752
31790
  'border-solid border border-border-uiBorder01': variant === 'outline'
31753
31791
  });
31754
- var deselectButtonClasses = clsx$1('flex', 'items-center', 'w-full', 'h-8', 'px-3', 'hover:bg-hover-hover02', 'active:bg-active-active02', 'text-interactive-interactive02', focusVisible.inset, typography.label.label2regular);
31792
+ var deselectButtonClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 text-interactive-interactive02 hover:bg-hover-hover02 active:bg-active-active02', focusVisible.inset);
31755
31793
  return /*#__PURE__*/jsxs("ul", {
31756
31794
  className: listClasses,
31757
31795
  style: {
31758
31796
  maxHeight: maxHeight
31759
31797
  },
31798
+ ref: ref,
31760
31799
  children: [children, placeholder && selectedOption !== null && /*#__PURE__*/jsx("li", {
31761
31800
  children: /*#__PURE__*/jsx("button", {
31762
31801
  className: deselectButtonClasses,
@@ -31795,18 +31834,24 @@ function Select(_ref) {
31795
31834
  return !prev;
31796
31835
  });
31797
31836
  };
31798
- var wrapperClasses = clsx$1('relative', 'flex', 'shrink-0', 'gap-1', 'items-center', 'rounded', {
31837
+ var wrapperClasses = clsx$1('relative flex shrink-0 items-center gap-1 rounded', {
31799
31838
  'h-6': size === 'x-small' || size === 'small',
31800
31839
  'h-8': size === 'medium',
31801
31840
  'h-10': size === 'large',
31802
31841
  'cursor-not-allowed': isDisabled
31803
31842
  });
31804
- var buttonClasses = clsx$1('flex', 'items-center', 'w-full', 'h-full', 'rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
31843
+ var buttonClasses = clsx$1('flex h-full w-full items-center rounded', buttonColors[variant].base, buttonColors[variant].hover, buttonColors[variant].active, buttonColors[variant].disabled, focusVisible.normal, {
31805
31844
  'px-2': size === 'x-small' || size === 'small',
31806
31845
  'px-4': size === 'medium' || size === 'large',
31807
31846
  'pointer-events-none': isDisabled
31808
31847
  });
31809
- var labelClasses = clsx$1('overflow-hidden', size === 'x-small' ? 'mr-1' : 'mr-2', typography.label[size === 'x-small' ? 'label3regular' : size === 'small' || size === 'medium' ? 'label2regular' : 'label1regular']);
31848
+ var labelClasses = clsx$1('overflow-hidden', {
31849
+ 'mr-1': size === 'x-small',
31850
+ 'mr-2': size !== 'x-small',
31851
+ 'typography-label3regular': size === 'x-small',
31852
+ 'typography-label2regular': size === 'small' || size === 'medium',
31853
+ 'typography-label1regular': size === 'large'
31854
+ });
31810
31855
  return /*#__PURE__*/jsx(SelectContext.Provider, {
31811
31856
  value: {
31812
31857
  size: size,
@@ -31889,7 +31934,7 @@ function PaginationSelect(_ref) {
31889
31934
  children: [/*#__PURE__*/jsxs("div", {
31890
31935
  className: "flex items-center gap-x-2",
31891
31936
  children: [/*#__PURE__*/jsxs("div", {
31892
- className: clsx$1('text-text-text01', typography.label.label2regular),
31937
+ className: "typography-label2regular text-text-text01",
31893
31938
  children: [(currentPage - 1) * sizePerPage + 1, " -", ' ', currentPage * sizePerPage > totalSize ? totalSize : currentPage * sizePerPage, countLabel]
31894
31939
  }), /*#__PURE__*/jsx(Select, {
31895
31940
  size: "medium",
@@ -31907,7 +31952,7 @@ function PaginationSelect(_ref) {
31907
31952
  }, option.id);
31908
31953
  })
31909
31954
  }), /*#__PURE__*/jsxs("div", {
31910
- className: clsx$1('text-text-text03', typography.label.label2regular),
31955
+ className: "typography-label2regular text-text-text03",
31911
31956
  children: ["/ ", pageMax, pageLabel]
31912
31957
  })]
31913
31958
  }), /*#__PURE__*/jsxs("div", {
@@ -31951,25 +31996,27 @@ function Radio(_ref) {
31951
31996
  var handleChange = useCallback(function (e) {
31952
31997
  return !isDisabled && (onChange == null ? void 0 : onChange(e));
31953
31998
  }, [isDisabled, onChange]);
31954
- var inputClasses = clsx$1('absolute', 'z-[1]', 'opacity-0', 'peer', 'h-6', 'w-6', {
31999
+ var inputClasses = clsx$1('peer absolute z-[1] h-6 w-6 opacity-0', {
31955
32000
  'cursor-not-allowed': isDisabled,
31956
32001
  'cursor-pointer': !isDisabled
31957
32002
  });
31958
- var boxClasses = clsx$1('inline-flex', 'items-center', 'justify-center', 'h-5', 'w-5', 'bg-white', 'border', 'border-solid', 'rounded-full', focusVisible.normalPeer, {
32003
+ var boxClasses = clsx$1('inline-flex h-5 w-5 items-center justify-center rounded-full border border-solid bg-white', focusVisible.normalPeer, {
31959
32004
  'border-disabled-disabled01 hover:border-disabled-disabled01': isDisabled && !isMouseOver,
31960
32005
  'border-hover-hoverUiBorder': !isDisabled && isMouseOver,
31961
32006
  'border-border-uiBorder03': !isDisabled,
31962
32007
  'cursor-not-allowed': isDisabled,
31963
32008
  'cursor-pointer': !isDisabled
31964
32009
  });
31965
- var afterClasses = clsx$1('h-3', 'w-3', 'absolute', 'top-0', 'right-0', 'bottom-0', 'left-0', 'block', 'm-auto', 'rounded-full', {
32010
+ var afterClasses = clsx$1('absolute inset-0 m-auto block h-3 w-3 rounded-full', {
31966
32011
  'bg-disabled-disabled01': isDisabled && isChecked,
31967
32012
  'bg-active-activeSelectedUi': !isDisabled && isChecked,
31968
32013
  'scale-0': !isChecked,
31969
32014
  'scale-100': isChecked
31970
32015
  });
31971
- var hoverIndicatorClasses = clsx$1('w-3', 'h-3', 'inline-block', 'rounded-full', !isDisabled && !isChecked && isMouseOver && 'bg-hover-hoverUi');
31972
- var labelClasses = clsx$1('flex-[1_0_0]', 'ml-2', typography.label.label2regular, 'break-all', 'select-none', {
32016
+ var hoverIndicatorClasses = clsx$1('inline-block h-3 w-3 rounded-full', {
32017
+ 'bg-hover-hoverUi': !isDisabled && !isChecked && isMouseOver
32018
+ });
32019
+ var labelClasses = clsx$1('typography-label2regular ml-2 flex-[1_0_0] select-none break-all', {
31973
32020
  'pointer-events-none cursor-not-allowed text-disabled-disabled01': isDisabled,
31974
32021
  'cursor-pointer text-text-text01': !isDisabled
31975
32022
  });
@@ -32007,20 +32054,20 @@ function Radio(_ref) {
32007
32054
  });
32008
32055
  }
32009
32056
 
32010
- var _excluded$1 = ["width", "size"];
32057
+ var _excluded$2 = ["width", "size"];
32011
32058
  var Search = /*#__PURE__*/forwardRef(function (_ref, ref) {
32012
32059
  var _clsx;
32013
32060
  var _ref$width = _ref.width,
32014
32061
  width = _ref$width === void 0 ? '100%' : _ref$width,
32015
32062
  _ref$size = _ref.size,
32016
32063
  size = _ref$size === void 0 ? 'medium' : _ref$size,
32017
- props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
32018
- var classes = clsx('flex', 'items-center', 'rounded-full', 'border', 'border-border-uiBorder02', 'focus-within:border-active-activeInput', {
32064
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$2);
32065
+ var classes = clsx('flex items-center rounded-full border border-border-uiBorder02 focus-within:border-active-activeInput', {
32019
32066
  'h-8 px-3': size === 'medium'
32020
32067
  }, {
32021
32068
  'h-10 px-4': size === 'large'
32022
32069
  });
32023
- var inputClasses = clsx('ml-2.5', 'mr-2.5', 'h-full', 'flex-1', 'outline-0', 'text-text-text01', 'placeholder:text-text-textPlaceholder', (_clsx = {}, _clsx["" + typography.label.label2regular] = size === 'medium', _clsx["" + typography.label.label1regular] = size === 'large', _clsx));
32070
+ var inputClasses = clsx('mx-2.5 h-full flex-1 text-text-text01 outline-0 placeholder:text-text-textPlaceholder', (_clsx = {}, _clsx['typography-label2regular'] = size === 'medium', _clsx['typography-label1regular'] = size === 'large', _clsx));
32024
32071
  return /*#__PURE__*/jsx("div", {
32025
32072
  className: "relative",
32026
32073
  ref: ref,
@@ -32060,7 +32107,10 @@ function SelectItem(_ref) {
32060
32107
  isSortKey = _ref.isSortKey,
32061
32108
  onClickItem = _ref.onClickItem;
32062
32109
  var listItemClasses = clsx$1('flex w-full items-center');
32063
- var itemClasses = clsx$1('flex', 'items-center', 'w-full', 'h-8', 'px-3', 'hover:bg-hover-hover02', 'active:bg-active-active02', focusVisible.inset, typography.label.label2regular, isSortKey ? 'bg-selected-selectedUi fill-interactive-interactive01 text-interactive-interactive01' : 'bg-background-uiBackground01 fill-icon-icon01 text-interactive-interactive02');
32110
+ 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
+ 'bg-selected-selectedUi fill-interactive-interactive01 text-interactive-interactive01': isSortKey,
32112
+ 'bg-background-uiBackground01 fill-icon-icon01 text-interactive-interactive02': !isSortKey
32113
+ });
32064
32114
  return /*#__PURE__*/jsx("li", {
32065
32115
  className: listItemClasses,
32066
32116
  onClick: onClickItem,
@@ -32087,13 +32137,13 @@ function SelectList(_ref) {
32087
32137
  sortOrder = _ref.sortOrder,
32088
32138
  _onClickItem = _ref.onClickItem,
32089
32139
  onClickDeselect = _ref.onClickDeselect;
32090
- var listClasses = clsx$1('z-dropdown', 'absolute', 'w-max', 'py-2', 'overflow-y-auto', 'bg-background-uiBackground01', 'rounded', 'shadow-floatingShadow', {
32140
+ var listClasses = clsx$1('absolute z-dropdown w-max overflow-y-auto rounded bg-background-uiBackground01 py-2 shadow-floatingShadow', {
32091
32141
  'top-7': size === 'x-small' || size === 'small',
32092
32142
  'top-9': size === 'medium',
32093
32143
  'top-11': size === 'large',
32094
32144
  'border-solid border border-border-uiBorder01': variant === 'outline'
32095
32145
  });
32096
- var deselectButtonClasses = clsx$1('flex', 'items-center', 'w-full', 'h-8', 'px-3', 'hover:bg-hover-hover02', 'active:bg-active-active02', 'text-interactive-interactive02', focusVisible.inset, typography.label.label2regular);
32146
+ var deselectButtonClasses = clsx$1('typography-label2regular flex h-8 w-full items-center px-3 text-interactive-interactive02 hover:bg-hover-hover02 active:bg-active-active02', focusVisible.inset);
32097
32147
  return /*#__PURE__*/jsxs("ul", {
32098
32148
  className: listClasses,
32099
32149
  children: [/*#__PURE__*/jsx(SelectItem, {
@@ -32196,7 +32246,7 @@ function SelectSort(_ref) {
32196
32246
 
32197
32247
  var TabItem = function TabItem(props) {
32198
32248
  var _clsx;
32199
- var classes = clsx('relative', 'flex', 'z-0', 'py-2', 'leading-[24px]', 'before:h-px', 'before:absolute', 'before:left-0', 'before:right-0', 'before:bottom-0', 'hover:text-text-text01', 'disabled:text-disabled-disabled01', 'disabled:pointer-events-none', (_clsx = {}, _clsx["" + typography.label.label2regular] = !props.isSelected, _clsx['text-interactive-interactive02 hover:before:bg-border-uiBorder02Dark'] = !props.isSelected, _clsx["" + typography.label.label2bold] = props.isSelected, _clsx['before:bg-interactive-interactive01 hover:before:bg-interactive-interactive01 pointer-events-none'] = props.isSelected, _clsx));
32249
+ var classes = clsx('relative', 'flex', 'z-0', 'py-2', 'leading-[24px]', 'before:h-px', 'before:absolute', 'before:left-0', 'before:right-0', 'before:bottom-0', 'hover:text-text-text01', 'disabled:text-disabled-disabled01', 'disabled:pointer-events-none', (_clsx = {}, _clsx['typography-label2regular'] = !props.isSelected, _clsx['text-interactive-interactive02 hover:before:bg-border-uiBorder02Dark'] = !props.isSelected, _clsx['typography-label2bold'] = props.isSelected, _clsx['before:bg-interactive-interactive01 hover:before:bg-interactive-interactive01 pointer-events-none'] = props.isSelected, _clsx));
32200
32250
  return /*#__PURE__*/jsx("button", {
32201
32251
  type: "button",
32202
32252
  role: "tab",
@@ -32296,7 +32346,7 @@ function Tag(_ref) {
32296
32346
  size = _ref$size === void 0 ? 'medium' : _ref$size,
32297
32347
  isEditable = _ref.isEditable,
32298
32348
  onDelete = _ref.onDelete;
32299
- var wrapperClasses = clsx$1('flex', 'items-center', 'justify-center', (_clsx = {}, _clsx[tagColors[color]] = variant === 'normal', _clsx[tagLightColors[color]] = variant === 'light', _clsx["h-[14px] " + typography.label.label4regular] = !isEditable && size === 'x-small', _clsx["h-4 " + typography.label.label3regular] = !isEditable && size === 'small', _clsx["h-[18px] " + typography.label.label2regular] = !isEditable && size === 'medium', _clsx["h-[22px] " + typography.label.label2regular] = isEditable && size === 'medium', _clsx['rounded-full'] = isEditable, _clsx.rounded = !isEditable, _clsx['py-0.5 px-1'] = !isEditable, _clsx['py-1 px-2'] = isEditable, _clsx));
32349
+ var wrapperClasses = clsx$1('flex', 'items-center', 'justify-center', (_clsx = {}, _clsx[tagColors[color]] = variant === 'normal', _clsx[tagLightColors[color]] = variant === 'light', _clsx['h-[14px] typography-label4regular'] = !isEditable && size === 'x-small', _clsx['h-4 typography-label3regular'] = !isEditable && size === 'small', _clsx['h-[18px] typography-label2regular'] = !isEditable && size === 'medium', _clsx['h-[22px] typography-label2regular'] = isEditable && size === 'medium', _clsx['rounded-full'] = isEditable, _clsx.rounded = !isEditable, _clsx['py-0.5 px-1'] = !isEditable, _clsx['py-1 px-2'] = isEditable, _clsx));
32300
32350
  return /*#__PURE__*/jsxs("div", {
32301
32351
  className: wrapperClasses,
32302
32352
  children: [children, isEditable ? /*#__PURE__*/jsx(DeleteIcon, {
@@ -32309,6 +32359,35 @@ function Tag(_ref) {
32309
32359
  });
32310
32360
  }
32311
32361
 
32362
+ var _excluded$1 = ["size", "isResizable", "isError"];
32363
+ var TextArea = /*#__PURE__*/forwardRef(function (_ref, ref) {
32364
+ var _clsx;
32365
+ var _ref$size = _ref.size,
32366
+ size = _ref$size === void 0 ? 'medium' : _ref$size,
32367
+ _ref$isResizable = _ref.isResizable,
32368
+ isResizable = _ref$isResizable === void 0 ? false : _ref$isResizable,
32369
+ isError = _ref.isError,
32370
+ props = _objectWithoutPropertiesLoose(_ref, _excluded$1);
32371
+ var classes = clsx('w-full rounded border outline-0 placeholder:text-text-textPlaceholder disabled:text-text-textPlaceholder', (_clsx = {
32372
+ 'border-support-supportError': isError && !props.disabled,
32373
+ 'hover:border-hover-hoverInput': !props.disabled && !isError,
32374
+ 'border-border-uiBorder01 hover:focus-within:border-active-activeInput focus-within:border-active-activeInput text-text-text01': !isError,
32375
+ 'bg-disabled-disabled02 border-disabled-disabled02': props.disabled
32376
+ }, _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-support-supportError'] = isError, _clsx['resize-none'] = !isResizable, _clsx));
32377
+ return /*#__PURE__*/jsx("div", {
32378
+ className: "flex",
32379
+ children: /*#__PURE__*/jsx("textarea", _extends({
32380
+ ref: ref,
32381
+ className: classes
32382
+ }, props, {
32383
+ style: {
32384
+ height: props.height
32385
+ }
32386
+ }))
32387
+ });
32388
+ });
32389
+ TextArea.displayName = 'TextArea';
32390
+
32312
32391
  var _excluded = ["size", "isError", "onClickClearButton"];
32313
32392
  var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
32314
32393
  var _clsx;
@@ -32325,7 +32404,7 @@ var TextInput = /*#__PURE__*/forwardRef(function (_ref, ref) {
32325
32404
  'focus-within:border-active-activeInput': !isError,
32326
32405
  'bg-disabled-disabled02 border-disabled-disabled02': props.disabled
32327
32406
  });
32328
- var inputClasses = clsx('flex-1 outline-0 placeholder:text-text-textPlaceholder disabled:text-text-textPlaceholder', (_clsx = {}, _clsx[typography.label.label2regular + " pt-1.5 pb-2"] = size === 'medium', _clsx[typography.label.label1regular + " py-2.5"] = size === 'large', _clsx['text-text-text01'] = !isError, _clsx['text-support-supportError'] = isError, _clsx));
32407
+ var inputClasses = clsx('flex-1 outline-0 placeholder:text-text-textPlaceholder disabled:text-text-textPlaceholder', (_clsx = {}, _clsx['typography-label2regular pt-1.5 pb-2'] = size === 'medium', _clsx['typography-label1regular py-2.5'] = size === 'large', _clsx['text-text-text01'] = !isError, _clsx['text-support-supportError'] = isError, _clsx));
32329
32408
  return /*#__PURE__*/jsxs("div", {
32330
32409
  className: inputWrapClasses,
32331
32410
  children: [/*#__PURE__*/jsx("input", _extends({
@@ -32369,13 +32448,13 @@ function Toast(_ref) {
32369
32448
  window.getComputedStyle(e.currentTarget).opacity === '0' && onClickClose();
32370
32449
  };
32371
32450
  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));
32372
- var iconClasses = clsx$1('flex', 'items-center', {
32451
+ var iconClasses = clsx$1('flex items-center', {
32373
32452
  'fill-support-supportSuccess': state === 'success',
32374
32453
  'fill-support-supportError': state === 'error',
32375
32454
  'fill-support-supportWarning': state === 'warning',
32376
32455
  'fill-support-supportInfo': state === 'information'
32377
32456
  });
32378
- var textClasses = clsx$1('flex-1', 'pt-[3px]', typography.body.body2regular, {
32457
+ var textClasses = clsx$1('typography-body2regular flex-1 pt-[3px]', {
32379
32458
  'text-support-supportError': state === 'error',
32380
32459
  'text-text-text01': state === 'success' || state === 'warning' || state === 'information'
32381
32460
  });
@@ -32488,8 +32567,8 @@ function Toggle(_ref) {
32488
32567
  _ref$labelPosition = _ref.labelPosition,
32489
32568
  labelPosition = _ref$labelPosition === void 0 ? 'right' : _ref$labelPosition,
32490
32569
  isDisabled = _ref.isDisabled;
32491
- var wrapperClasses = clsx$1('flex', 'flex-[0_0_auto]', 'items-center', 'relative');
32492
- var baseClasses = clsx$1('relative', 'flex', 'items-center', 'rounded-full', {
32570
+ var wrapperClasses = 'flex flex-[0_0_auto] items-center relative';
32571
+ var baseClasses = clsx$1('relative flex items-center rounded-full', {
32493
32572
  'w-8 h-4 px-[3px]': size === 'small',
32494
32573
  'w-12 h-6 px-1': size === 'medium'
32495
32574
  }, isDisabled ? {
@@ -32499,13 +32578,20 @@ function Toggle(_ref) {
32499
32578
  'bg-interactive-interactive01 peer-hover:bg-hover-hover01': isChecked,
32500
32579
  'bg-interactive-interactive02 peer-hover:bg-hover-hover02Dark': !isChecked
32501
32580
  });
32502
- var inputClasses = clsx$1('peer', 'absolute', 'inset-0', 'z-[1]', 'opacity-0', isDisabled ? 'cursor-not-allowed' : 'cursor-pointer');
32581
+ var inputClasses = clsx$1('peer absolute inset-0 z-[1] opacity-0', isDisabled ? 'cursor-not-allowed' : 'cursor-pointer');
32503
32582
  var indicatorClasses = clsx$1('bg-icon-iconOnColor', 'rounded-full', {
32504
32583
  'w-2.5 h-2.5': size === 'small',
32505
32584
  'w-4 h-4': size === 'medium',
32506
32585
  'ml-auto': isChecked
32507
32586
  });
32508
- var labelClasses = clsx$1(labelPosition === 'right' ? 'ml-2' : 'mr-2', typography.label[size === 'small' ? 'label3regular' : 'label1regular'], 'break-all', isDisabled ? 'pointer-events-none cursor-not-allowed text-disabled-disabled01' : 'cursor-pointer text-text-text01');
32587
+ var labelClasses = clsx$1('break-all', {
32588
+ 'mr-2': labelPosition === 'left',
32589
+ 'ml-2': labelPosition === 'right',
32590
+ 'typography-label3regular': size === 'small',
32591
+ 'typography-label1regular': size === 'medium',
32592
+ 'pointer-events-none cursor-not-allowed text-disabled-disabled01': isDisabled,
32593
+ 'cursor-pointer text-text-text01': !isDisabled
32594
+ });
32509
32595
  return /*#__PURE__*/jsxs("div", {
32510
32596
  className: wrapperClasses,
32511
32597
  children: [label && labelPosition === 'left' && /*#__PURE__*/jsx("label", {
@@ -32599,7 +32685,15 @@ function Tooltip(_ref) {
32599
32685
  setIsVisible(false);
32600
32686
  }, []);
32601
32687
  var targetClasses = clsx$1('relative', 'flex', 'items-center', 'justify-center');
32602
- var tooltipBodyClasses = clsx$1('z-tooltip', 'absolute', 'w-max', horizontalAlign === 'left' ? 'left-0' : horizontalAlign === 'right' ? 'right-0' : 'left-auto', 'inline-block', size === 'small' ? 'px-2 pb-1 pt-1.5' : 'px-4 py-3', 'text-text-textOnColor', 'bg-background-uiBackgroundTooltip', 'rounded', typography.body[size === 'small' ? 'body3regular' : 'body2regular']);
32688
+ var tooltipBodyClasses = clsx$1('absolute z-tooltip inline-block w-max rounded bg-background-uiBackgroundTooltip text-text-textOnColor', {
32689
+ 'typography-body3regular': size === 'small',
32690
+ 'typography-body2regular': size === 'medium',
32691
+ 'px-2 pb-1 pt-1.5': size === 'small',
32692
+ 'px-4 py-3': size === 'medium',
32693
+ 'left-0': horizontalAlign === 'left',
32694
+ 'right-0': horizontalAlign === 'right',
32695
+ 'left-auto': horizontalAlign === 'center'
32696
+ });
32603
32697
  return /*#__PURE__*/jsxs("div", {
32604
32698
  ref: targetRef,
32605
32699
  className: targetClasses,
@@ -32621,5 +32715,5 @@ function Tooltip(_ref) {
32621
32715
  });
32622
32716
  }
32623
32717
 
32624
- export { Avatar, Breadcrumb, Button, Checkbox, Dropdown, EvaluationStar, Heading, Icon, IconButton, Loading, Modal, NotificationInline, Pagination, PaginationSelect, Radio, Search, Select, SelectSort, Tab, TabItem, Table, TableCell, TableRow, Tag, TextInput, Toast, ToastProvider, Toggle, Tooltip, useToast };
32718
+ export { Avatar, Breadcrumb, Button, Checkbox, Dropdown, EvaluationStar, Heading, Icon, IconButton, Loading, Modal, NotificationInline, Pagination, PaginationSelect, Radio, Search, Select, SelectSort, Tab, TabItem, Table, TableCell, TableRow, Tag, TextArea, TextInput, Toast, ToastProvider, Toggle, Tooltip, useToast };
32625
32719
  //# sourceMappingURL=index.esm.js.map