@lotte-innovate/ui-component-test 0.2.6 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. package/dist/lib/components/Editor/index.d.ts +14 -14
  2. package/dist/lib/components/Editor/index.js +14 -14
  3. package/dist/lib/components/Editor/index.mjs +1 -1
  4. package/dist/lib/constants.mjs.map +1 -1
  5. package/dist/lib/tailwind.config.d.ts +3 -0
  6. package/dist/lib/theme/ThemeProvider.mjs +1 -1
  7. package/dist/lib/tsconfig.tsbuildinfo +1 -0
  8. package/dist/lib/utils/utils.mjs.map +1 -1
  9. package/dist/tailwind.config.d.ts +3 -0
  10. package/dist/tailwind.config.js +65 -0
  11. package/dist/tsconfig.tsbuildinfo +1 -1
  12. package/package.json +6 -4
  13. package/public/tinymce/icons/default/index.mjs +1 -1
  14. package/public/tinymce/plugins/advlist/index.mjs +1 -1
  15. package/public/tinymce/plugins/code/index.mjs +1 -1
  16. package/public/tinymce/plugins/code/plugin.mjs +1 -1
  17. package/public/tinymce/plugins/codesample/index.mjs +1 -1
  18. package/public/tinymce/plugins/codesample/plugin.mjs +1 -1
  19. package/public/tinymce/plugins/image/index.mjs +1 -1
  20. package/public/tinymce/plugins/image/plugin.mjs +1 -1
  21. package/public/tinymce/plugins/link/index.mjs +1 -1
  22. package/public/tinymce/plugins/link/index.mjs.map +1 -1
  23. package/public/tinymce/plugins/link/plugin.mjs +1 -1
  24. package/public/tinymce/plugins/lists/index.mjs +1 -1
  25. package/public/tinymce/plugins/lists/plugin.mjs +1 -1
  26. package/public/tinymce/plugins/table/index.mjs +1 -1
  27. package/public/tinymce/themes/silver/index.mjs +1 -1
  28. package/public/tinymce/themes/silver/index.mjs.map +1 -1
  29. package/_virtual/icons.mjs +0 -2
  30. package/_virtual/icons.mjs.map +0 -1
  31. package/_virtual/index.mjs +0 -2
  32. package/_virtual/index.mjs.map +0 -1
  33. package/_virtual/index10.mjs +0 -2
  34. package/_virtual/index10.mjs.map +0 -1
  35. package/_virtual/index11.mjs +0 -2
  36. package/_virtual/index11.mjs.map +0 -1
  37. package/_virtual/index12.mjs +0 -2
  38. package/_virtual/index12.mjs.map +0 -1
  39. package/_virtual/index13.mjs +0 -2
  40. package/_virtual/index13.mjs.map +0 -1
  41. package/_virtual/index14.mjs +0 -2
  42. package/_virtual/index14.mjs.map +0 -1
  43. package/_virtual/index15.mjs +0 -2
  44. package/_virtual/index15.mjs.map +0 -1
  45. package/_virtual/index16.mjs +0 -2
  46. package/_virtual/index16.mjs.map +0 -1
  47. package/_virtual/index17.mjs +0 -2
  48. package/_virtual/index17.mjs.map +0 -1
  49. package/_virtual/index18.mjs +0 -2
  50. package/_virtual/index18.mjs.map +0 -1
  51. package/_virtual/index19.mjs +0 -2
  52. package/_virtual/index19.mjs.map +0 -1
  53. package/_virtual/index2.mjs +0 -2
  54. package/_virtual/index2.mjs.map +0 -1
  55. package/_virtual/index20.mjs +0 -2
  56. package/_virtual/index20.mjs.map +0 -1
  57. package/_virtual/index21.mjs +0 -2
  58. package/_virtual/index21.mjs.map +0 -1
  59. package/_virtual/index22.mjs +0 -2
  60. package/_virtual/index22.mjs.map +0 -1
  61. package/_virtual/index3.mjs +0 -2
  62. package/_virtual/index3.mjs.map +0 -1
  63. package/_virtual/index4.mjs +0 -2
  64. package/_virtual/index4.mjs.map +0 -1
  65. package/_virtual/index5.mjs +0 -2
  66. package/_virtual/index5.mjs.map +0 -1
  67. package/_virtual/index6.mjs +0 -2
  68. package/_virtual/index6.mjs.map +0 -1
  69. package/_virtual/index7.mjs +0 -2
  70. package/_virtual/index7.mjs.map +0 -1
  71. package/_virtual/index8.mjs +0 -2
  72. package/_virtual/index8.mjs.map +0 -1
  73. package/_virtual/index9.mjs +0 -2
  74. package/_virtual/index9.mjs.map +0 -1
  75. package/_virtual/jsx-runtime.mjs +0 -2
  76. package/_virtual/jsx-runtime.mjs.map +0 -1
  77. package/_virtual/jsx-runtime2.mjs +0 -2
  78. package/_virtual/jsx-runtime2.mjs.map +0 -1
  79. package/_virtual/model.mjs +0 -2
  80. package/_virtual/model.mjs.map +0 -1
  81. package/_virtual/plugin.mjs +0 -2
  82. package/_virtual/plugin.mjs.map +0 -1
  83. package/_virtual/plugin2.mjs +0 -2
  84. package/_virtual/plugin2.mjs.map +0 -1
  85. package/_virtual/plugin3.mjs +0 -2
  86. package/_virtual/plugin3.mjs.map +0 -1
  87. package/_virtual/plugin4.mjs +0 -2
  88. package/_virtual/plugin4.mjs.map +0 -1
  89. package/_virtual/plugin5.mjs +0 -2
  90. package/_virtual/plugin5.mjs.map +0 -1
  91. package/_virtual/plugin6.mjs +0 -2
  92. package/_virtual/plugin6.mjs.map +0 -1
  93. package/_virtual/plugin7.mjs +0 -2
  94. package/_virtual/plugin7.mjs.map +0 -1
  95. package/_virtual/react-jsx-runtime.development.mjs +0 -2
  96. package/_virtual/react-jsx-runtime.development.mjs.map +0 -1
  97. package/_virtual/react-jsx-runtime.production.min.mjs +0 -2
  98. package/_virtual/react-jsx-runtime.production.min.mjs.map +0 -1
  99. package/_virtual/react.development.mjs +0 -2
  100. package/_virtual/react.development.mjs.map +0 -1
  101. package/_virtual/react.production.min.mjs +0 -2
  102. package/_virtual/react.production.min.mjs.map +0 -1
  103. package/_virtual/theme.mjs +0 -2
  104. package/_virtual/theme.mjs.map +0 -1
  105. package/_virtual/tinymce.mjs +0 -2
  106. package/_virtual/tinymce.mjs.map +0 -1
  107. package/_virtual/tinymce2.mjs +0 -2
  108. package/_virtual/tinymce2.mjs.map +0 -1
@@ -1,20 +1,20 @@
1
1
  import React from 'react';
2
2
  import { IAllProps } from '@tinymce/tinymce-react';
3
3
  import { VariantProps } from 'class-variance-authority';
4
- import '../../../../public/tinymce/tinymce';
5
- import '../../../../public/tinymce/themes/silver';
6
- import '../../../../public/tinymce/models/dom';
7
- import '../../../../public/tinymce/icons/default';
8
- import '../../../../public/tinymce/skins/ui/oxide/skin';
9
- import '../../../../public/tinymce/plugins/advlist';
10
- import '../../../../public/tinymce/plugins/code';
11
- import '../../../../public/tinymce/plugins/codesample';
12
- import '../../../../public/tinymce/plugins/link';
13
- import '../../../../public/tinymce/plugins/lists';
14
- import '../../../../public/tinymce/plugins/table';
15
- import '../../../../public/tinymce/plugins/image';
16
- import '../../../../public/tinymce/skins/content/default/content';
17
- import '../../../../public/tinymce/skins/ui/oxide/content';
4
+ import 'tinymce/tinymce';
5
+ import 'tinymce/themes/silver';
6
+ import 'tinymce/models/dom';
7
+ import 'tinymce/icons/default';
8
+ import 'tinymce/skins/ui/oxide/skin';
9
+ import 'tinymce/plugins/advlist';
10
+ import 'tinymce/plugins/code';
11
+ import 'tinymce/plugins/codesample';
12
+ import 'tinymce/plugins/link';
13
+ import 'tinymce/plugins/lists';
14
+ import 'tinymce/plugins/table';
15
+ import 'tinymce/plugins/image';
16
+ import 'tinymce/skins/content/default/content';
17
+ import 'tinymce/skins/ui/oxide/content';
18
18
  export interface EditorProps extends VariantProps<typeof editorVariants> {
19
19
  }
20
20
  declare const editorVariants: (props?: ({
@@ -28,20 +28,20 @@ import { cva } from 'class-variance-authority';
28
28
  import { scalingVariants } from '../../../lib/constants';
29
29
  import { cn } from '../../../lib/utils/utils';
30
30
  import { marked } from 'marked';
31
- import '../../../../public/tinymce/tinymce';
32
- import '../../../../public/tinymce/themes/silver';
33
- import '../../../../public/tinymce/models/dom';
34
- import '../../../../public/tinymce/icons/default';
35
- import '../../../../public/tinymce/skins/ui/oxide/skin';
36
- import '../../../../public/tinymce/plugins/advlist';
37
- import '../../../../public/tinymce/plugins/code';
38
- import '../../../../public/tinymce/plugins/codesample';
39
- import '../../../../public/tinymce/plugins/link';
40
- import '../../../../public/tinymce/plugins/lists';
41
- import '../../../../public/tinymce/plugins/table';
42
- import '../../../../public/tinymce/plugins/image';
43
- import '../../../../public/tinymce/skins/content/default/content';
44
- import '../../../../public/tinymce/skins/ui/oxide/content';
31
+ import 'tinymce/tinymce';
32
+ import 'tinymce/themes/silver';
33
+ import 'tinymce/models/dom';
34
+ import 'tinymce/icons/default';
35
+ import 'tinymce/skins/ui/oxide/skin';
36
+ import 'tinymce/plugins/advlist';
37
+ import 'tinymce/plugins/code';
38
+ import 'tinymce/plugins/codesample';
39
+ import 'tinymce/plugins/link';
40
+ import 'tinymce/plugins/lists';
41
+ import 'tinymce/plugins/table';
42
+ import 'tinymce/plugins/image';
43
+ import 'tinymce/skins/content/default/content';
44
+ import 'tinymce/skins/ui/oxide/content';
45
45
  var editorVariants = cva('', {
46
46
  variants: {
47
47
  scaling: __assign({}, scalingVariants),
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{j as t}from"../../../../_virtual/jsx-runtime.mjs";import{r as i}from"../../../../_virtual/index.mjs";import{Editor as e}from"@tinymce/tinymce-react";import{cva as r}from"class-variance-authority";import{scalingVariants as o}from"../../constants.mjs";import{cn as n}from"../../utils/utils.mjs";import{marked as a}from"marked";import"../../../../_virtual/tinymce.mjs";import"../../../../_virtual/index17.mjs";import"../../../../_virtual/index21.mjs";import"../../../../_virtual/index5.mjs";import"../../../../public/tinymce/skins/ui/oxide/skin.mjs";import"../../../../_virtual/index3.mjs";import"../../../../_virtual/index19.mjs";import"../../../../_virtual/index13.mjs";import"../../../../_virtual/index7.mjs";import"../../../../_virtual/index15.mjs";import"../../../../_virtual/index11.mjs";import"../../../../_virtual/index9.mjs";import"../../../../public/tinymce/skins/content/default/content.mjs";import"../../../../public/tinymce/skins/ui/oxide/content.mjs";var s=function(){return s=Object.assign||function(t){for(var i,e=1,r=arguments.length;e<r;e++)for(var o in i=arguments[e])Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o]);return t},s.apply(this,arguments)},m=function(t,i){var e={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&i.indexOf(r)<0&&(e[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)i.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(e[r[o]]=t[r[o]])}return e},l=r("",{variants:{scaling:s({},o),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),c=i.forwardRef((function(i,r){var o=i.className,c=i.size,u=i.scaling,p=m(i,["className","size","scaling"]);return t.jsx("div",{className:n(l({size:c,scaling:u}),o),ref:r,children:t.jsx(e,s({init:{base_url:"tinymce",width:"100%",height:"100%",plugins:"link table code lists codesample",menubar:!1,toolbar:"blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat codesample markdown",content_style:"body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }",setup:function(t){t.ui.registry.addButton("inlinecode",{icon:"sourcecode",tooltip:"Inline code",onAction:function(){t.formatter.toggle("code")}}),t.on("init",(function(){t.formatter.register("code",{inline:"code",remove:"all"})})),t.ui.registry.addButton("markdown",{text:"Markdown",onAction:function(){var i=t.getContent({format:"text"}),e=a(i);t.setContent(e)}})}}},p))})}));c.displayName="Editor";export{c as Editor,c as default};
2
+ import{jsx as t}from"react/jsx-runtime";import{forwardRef as e}from"react";import{Editor as i}from"@tinymce/tinymce-react";import{cva as n}from"class-variance-authority";import{scalingVariants as o}from"../../constants.mjs";import{cn as r}from"../../utils/utils.mjs";import{marked as s}from"marked";import"tinymce/tinymce";import"tinymce/themes/silver";import"tinymce/models/dom";import"tinymce/icons/default";import"tinymce/skins/ui/oxide/skin";import"tinymce/plugins/advlist";import"tinymce/plugins/code";import"tinymce/plugins/codesample";import"tinymce/plugins/link";import"tinymce/plugins/lists";import"tinymce/plugins/table";import"tinymce/plugins/image";import"tinymce/skins/content/default/content";import"tinymce/skins/ui/oxide/content";var m=function(){return m=Object.assign||function(t){for(var e,i=1,n=arguments.length;i<n;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},m.apply(this,arguments)},a=function(t,e){var i={};for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&e.indexOf(n)<0&&(i[n]=t[n]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(t);o<n.length;o++)e.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(t,n[o])&&(i[n[o]]=t[n[o]])}return i},c=n("",{variants:{scaling:m({},o),size:{small:"w-[500px] h-[350px]",medium:"w-[550px] h-[400px]",large:"w-[600px] h-[450px]"}},defaultVariants:{scaling:"100%",size:"medium"}}),l=e((function(e,n){var o=e.className,l=e.size,p=e.scaling,u=a(e,["className","size","scaling"]);return t("div",{className:r(c({size:l,scaling:p}),o),ref:n,children:t(i,m({init:{base_url:"tinymce",width:"100%",height:"100%",plugins:"link table code lists codesample",menubar:!1,toolbar:"blocks | bold italic forecolor strikethrough | hr blockquote | bullist numlist outdent indent | table image link | inlinecode codeformat codesample markdown",content_style:"body { font-family:Noto Sans KR, sans-serif, Nunito Sans, Helvetica Neue, Helvetica }",setup:function(t){t.ui.registry.addButton("inlinecode",{icon:"sourcecode",tooltip:"Inline code",onAction:function(){t.formatter.toggle("code")}}),t.on("init",(function(){t.formatter.register("code",{inline:"code",remove:"all"})})),t.ui.registry.addButton("markdown",{text:"Markdown",onAction:function(){var e=t.getContent({format:"text"}),i=s(e);t.setContent(i)}})}}},u))})}));l.displayName="Editor";export{l as Editor,l as default};
3
3
  //# sourceMappingURL=index.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"constants.mjs","sources":["../../../lib/constants.js"],"sourcesContent":["import { ColorStyle, DarkColorStyle, MAIN_COLOR, colorOptions } from '../lib/color/constants';\nexport var radiusOptions = ['none', 'small', 'medium', 'large', 'full'];\nexport var typoSizeOptions = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];\nexport var scalingOptions = ['90%', '95%', '100%', '105%', '110%'];\nexport var sizeOptions = ['x-small', 'small', 'medium', 'large', 'x-large'];\nexport var weightOptions = ['regular', 'medium', 'semibold', 'bold'];\nexport var themeOptions = ['light', 'dark'];\nexport var appearanceOptions = [\n 'classic',\n 'ghost',\n 'outline',\n 'soft',\n 'solid',\n 'surface',\n];\n//차트\nexport var labelPositionList = ['top', 'bottom', 'left', 'right'];\nexport var pointStyleList = [\n 'circle',\n 'cross',\n 'crossRot',\n 'dash',\n 'line',\n 'rect',\n 'rectRounded',\n 'rectRot',\n 'star',\n 'triangle',\n false,\n];\nexport var radiusVariants = {\n // 체크박스\n small: {\n none: 'rounded-none',\n small: 'rounded-[3px]',\n medium: 'rounded',\n large: 'rounded',\n full: 'rounded',\n },\n // 라디오버튼, 스위치, 태그, 배지, 버튼, 텍스트인풋, 텍스트영역, 페이지네이션\n base: {\n none: 'rounded-none',\n small: 'rounded-[3px]',\n medium: 'rounded', // 4px\n large: 'rounded-md', // 6px\n full: 'rounded-full',\n },\n // 배너\n large: {\n none: 'rounded-none',\n small: 'rounded',\n medium: 'rounded-lg', // 8px\n large: 'rounded-xl', // 12px\n full: 'rounded-2xl', // 16px\n },\n // 다이얼로그, 바텀시트, 그리드, 카드\n 'extra-large': {\n none: 'rounded-none',\n small: 'rounded',\n medium: 'rounded-lg',\n large: 'rounded-xl',\n full: 'rounded-xl',\n },\n // Dropdown, Context Menu 아이템\n 'menu-item': {\n none: 'rounded-none',\n small: 'rounded-[1px]',\n medium: 'rounded-sm',\n large: 'rounded',\n full: 'rounded',\n },\n};\nexport var weightVariants = {\n regular: 'font-normal', // 400\n medium: 'font-medium', // 500\n semibold: 'font-semibold', // 600\n bold: 'font-bold', // 700\n};\nexport var scalingVariants = {\n '90%': 'scale-90',\n '95%': 'scale-95',\n '100%': 'scale-100',\n '105%': 'scale-105',\n '110%': 'scale-110',\n};\n// 스토리북 공통 argTypes 설정\nexport var commonArgTypes = {\n typoSize: {\n table: {\n category: 'Theme Props',\n type: { summary: '1 ~ 9' },\n },\n control: { type: 'select' },\n options: typoSizeOptions,\n defaultValue: { summary: '3' },\n },\n scaling: {\n table: {\n category: 'Theme Props',\n type: { summary: scalingOptions.join(' | ') },\n },\n control: { type: 'select' },\n options: scalingOptions,\n defaultValue: { summary: '100%' },\n },\n weight: {\n table: {\n category: 'Theme Props',\n type: { summary: weightOptions.join(' | ') },\n },\n options: weightOptions,\n control: { type: 'select' },\n defaultValue: { summary: 'medium' },\n },\n radius: {\n table: {\n category: 'Theme Props',\n type: { summary: radiusOptions.join(' | ') },\n },\n options: radiusOptions,\n control: { type: 'select' },\n defaultValue: { summary: 'medium' },\n },\n color: {\n table: {\n category: 'Theme Props',\n type: { summary: 'colorVariants' },\n },\n options: colorOptions,\n control: { type: 'select' },\n defaultValue: { summary: 'red' },\n },\n basicText: {\n table: {\n category: 'Props',\n type: { summary: 'string' },\n },\n control: 'text',\n },\n appearance: {\n table: {\n category: 'Props',\n type: { summary: appearanceOptions.join(' | ') },\n },\n options: appearanceOptions,\n control: { type: 'select' },\n defaultValue: { summary: 'solid' },\n },\n size: {\n table: {\n category: 'Props',\n type: { summary: sizeOptions.join(' | ') },\n },\n control: { type: 'select' },\n options: sizeOptions,\n defaultValue: { summary: 'medium' },\n },\n isColorMixed: {\n table: {\n category: 'Props',\n type: { summary: 'boolean' },\n },\n description: \"- \\uCC28\\uD2B8 \\uAE30\\uBCF8 \\uC0C9\\uC0C1 \\uC2A4\\uD0C0\\uC77C \\n - true\\uC778 \\uACBD\\uC6B0 \\uC0C9\\uC0C1\\uC774 \\uAD50\\uCC28\\uB428, false\\uC778 \\uACBD\\uC6B0 \\uC0C9\\uC0C1 \\uC21C\\uCC28\\uC801\\uC73C\\uB85C \\uC0AC\\uC6A9\",\n control: 'readonly',\n defaultValue: { summary: 'true' },\n },\n chartAppearance: {\n table: {\n category: 'Props',\n type: { summary: 'solid | soft' },\n },\n options: ['solid', 'soft'],\n control: 'readonly',\n defaultValue: { summary: 'solid' },\n description: \"- \\uCC28\\uD2B8 \\uAE30\\uBCF8 \\uC0C9\\uC0C1 \\uC2A4\\uD0C0\\uC77C \\n - \\uBC30\\uACBD\\uC0C9\\uACFC \\uD14C\\uB450\\uB9AC\\uC0C9 \\uAE30\\uBCF8 \\uC2A4\\uD0C0\\uC77C\\uC744 \\uC9C0\\uC815\\uD574\\uC900\\uB2E4\",\n },\n datasets: {\n name: 'datasets',\n description: '차트에 사용할 데이터셋',\n table: {\n category: 'Props',\n type: { summary: 'object' },\n },\n },\n labels: {\n description: '차트 위에 표시될 라벨들',\n table: {\n category: 'Props',\n type: { summary: 'object' },\n },\n },\n};\nexport var chartTitleArgTypes = {\n title: {\n description: '차트 타이틀',\n table: {\n category: 'Props',\n type: { summary: 'object' },\n },\n },\n 'title.display': {\n description: '타이틀 표시 여부',\n table: {\n category: 'Title Props',\n type: { summary: 'boolean' },\n },\n control: { type: 'boolean', defaultValue: false },\n defaultValue: { summary: false },\n },\n 'title.text': {\n description: '타이틀 내용',\n table: {\n category: 'Title Props',\n type: { summary: 'string | string[]' },\n },\n control: { type: 'text' },\n defaultValue: { summary: '' },\n },\n 'title.position': {\n description: '타이틀 위치',\n table: {\n category: 'Title Props',\n type: { summary: 'top | right | bottom | left' },\n },\n control: { type: 'select' },\n options: ['top', 'right', 'bottom', 'left'],\n defaultValue: { summary: 'top' },\n },\n 'title.align': {\n description: '타이틀 정렬',\n table: {\n category: 'Title Props',\n type: { summary: 'start | center | end' },\n },\n control: { type: 'select' },\n options: ['start', 'center', 'end'],\n defaultValue: { summary: 'top' },\n },\n 'title.font.size': {\n description: '타이틀 폰트 크기',\n table: {\n category: 'Title Props',\n type: { summary: 'number' },\n },\n control: { type: 'text' },\n defaultValue: { summary: 12 },\n },\n};\nexport var chartLegendArgTypes = {\n legend: {\n description: '차트 범례',\n table: {\n category: 'Props',\n type: { summary: 'object' },\n },\n },\n 'legend.display': {\n description: '범례 표시 여부',\n table: {\n category: 'Legend Props',\n type: { summary: 'boolean' },\n },\n control: { type: 'boolean' },\n defaultValue: { summary: true },\n },\n 'legend.align': {\n description: '범례 정렬',\n table: {\n category: 'Legend Props',\n type: { summary: 'start | center | end' },\n },\n control: { type: 'select' },\n options: ['start', 'center', 'end'],\n defaultValue: { summary: 'center' },\n },\n 'legend.position': {\n description: '범례 위치',\n table: {\n category: 'Legend Props',\n type: { summary: 'top | right | bottom | left' },\n },\n control: { type: 'select' },\n options: ['top', 'right', 'bottom', 'left'],\n defaultValue: { summary: 'top' },\n },\n 'legend.maxHeight': {\n description: '범례 최대 높이(픽셀)',\n table: {\n category: 'Legend Props',\n type: { summary: 'number' },\n },\n control: { type: 'text' },\n defaultValue: { summary: 12 },\n },\n 'legend.maxWidth': {\n description: '범례 최대 길이(픽셀)',\n table: {\n category: 'Legend Props',\n type: { summary: 'number' },\n },\n control: { type: 'text' },\n defaultValue: { summary: 12 },\n },\n 'legend.title.display': {\n description: '범례 타이틀 표시 여부',\n table: {\n category: 'Legend Props',\n type: { summary: 'boolean' },\n },\n control: { type: 'boolean' },\n defaultValue: { summary: false },\n },\n 'legend.title.text': {\n description: '범례 타이틀 문구',\n table: {\n category: 'Legend Props',\n type: { summary: 'string' },\n },\n control: { type: 'text' },\n defaultValue: { summary: '' },\n },\n 'legend.labels.usePointStyle': {\n description: '범례 스타일 사용여부',\n table: {\n category: 'Legend Props',\n type: { summary: 'boolean' },\n },\n control: { type: 'boolean' },\n defaultValue: { summary: 'false' },\n },\n 'legend.labels.pointStyle': {\n description: \"- \\uB77C\\uBCA8 \\uD3EC\\uC778\\uD2B8 \\uC2A4\\uD0C0\\uC77C\\n - usePointStyle\\uAC00 true\\uC778 \\uACBD\\uC6B0 \\uC801\\uC6A9\",\n table: {\n category: 'Legend Props',\n type: { summary: pointStyleList.join(' | ') },\n },\n control: { type: 'select' },\n options: pointStyleList,\n defaultValue: { summary: 'false' },\n },\n};\nexport var chartDatasetsArgsTypes = {\n 'datasets[n].data': {\n description: '데이터셋 데이터',\n table: {\n category: 'Dataset Props',\n type: { summary: 'object | object[] | number[] | string[]' },\n },\n },\n 'datasets[n].label': {\n description: '데이터셋 라벨',\n table: {\n category: 'Dataset Props',\n type: { summary: 'string' },\n },\n },\n 'datasets[n].backgroundColor': {\n description: '데이터셋 배경 색상',\n table: {\n category: 'Dataset Props',\n type: { summary: 'object' },\n },\n },\n 'datasets[n].borderColor': {\n description: '데이터셋 테두리 색상',\n table: {\n category: 'Dataset Props',\n type: { summary: 'object' },\n },\n },\n 'datasets[n].borderWidth': {\n description: '데이터셋 테두리 두꼐',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].borderRadius': {\n description: '데이터셋 둥글기',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].hoverBackgroundColor': {\n description: '데이터셋 마우스 호버 시 배경 색상',\n table: {\n category: 'Dataset Props',\n type: { summary: 'object' },\n },\n },\n 'datasets[n].hoverBorderColor': {\n description: '데이터셋 마우스 호버 시 테두리 색상',\n table: {\n category: 'Dataset Props',\n type: { summary: 'object' },\n },\n },\n 'datasets[n].hoverBorderWidth': {\n description: '데이터셋 호버 시 테두리 두께',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].hoverBorderRadius': {\n description: '데이터셋 호버 시 둥글기',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].order': {\n description: '데이터셋 순서',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].hidden': {\n description: '데이터셋 표시 여부',\n table: {\n category: 'Dataset Props',\n type: { summary: 'boolean' },\n },\n },\n 'datasets[n].borderDash': {\n description: \"- \\uCC28\\uD2B8\\uC758 \\uAC01 \\uC139\\uC158\\uC758 \\uD14C\\uB450\\uB9AC\\uB97C \\uC810\\uC120\\uC73C\\uB85C \\uB9CC\\uB4EC\\n - ex)[5,5]: 5\\uD53D\\uC140 \\uAE38\\uC774\\uC758 \\uC120\\uACFC 5\\uD53D\\uC140 \\uAE38\\uC774\\uC758 \\uAC04\\uACA9\",\n table: {\n category: 'Dataset Props',\n type: { summary: 'number[]' },\n },\n },\n 'datasets[n].borderDashOffset': {\n description: \"- \\uC810\\uC120\\uC758 \\uC2DC\\uC791 \\uC704\\uCE58 \\uC870\\uC815\\n - ex) 2: \\uC810\\uC120\\uC758 \\uC2DC\\uC791 \\uC9C0\\uC810\\uC744 2\\uD53D\\uC140 \\uC774\\uB3D9\",\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].offset': {\n description: '각 섹션 사이의 간격 조정',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].weight': {\n description: '각 섹션의 상대적인 두께를 설정, 섹션이 차지하는 공간의 비율을 조정',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n};\nexport var chartDatalabelsArgsTypes = {\n datalabels: {\n table: {\n disable: true,\n },\n },\n 'datalabels.display': {\n description: '차트 데이터 라벨 표시 여부',\n table: {\n category: 'Datalabels Props',\n type: { summary: 'boolean' },\n },\n control: { type: 'boolean' },\n defaultValue: { summary: false },\n },\n 'datalabels.color': {\n description: '차트 데이터 라벨 색상',\n table: {\n category: 'Datalabels Props',\n type: { summary: 'string' },\n },\n control: { type: 'select' },\n options: ['white', 'gray', 'black'],\n defaultValue: { summary: 'gray' },\n },\n};\nexport var blackText = ['sky', 'mint', 'lime', 'yellow', 'amber', 'orange', 'white'];\nexport var primaryColorStyle = function () {\n var color = {};\n for (var i in ColorStyle) {\n var darkColor = \"\".concat(i, \"Dark\");\n color[i] = blackText.includes(i)\n ? \"bg-\".concat(ColorStyle[i], \" text-slate-12 dark:bg-\").concat(DarkColorStyle[darkColor], \" dark:text-slateDark-12\")\n : \"bg-\".concat(ColorStyle[i], \" text-white dark:bg-\").concat(DarkColorStyle[darkColor], \" dark:text-slateDark-1\");\n }\n return color;\n};\nexport var bgColorStyle = function () {\n var color = {};\n for (var i in ColorStyle) {\n var darkColor = \"\".concat(i, \"Dark\");\n color[i] = \"bg-\".concat(ColorStyle[i], \" dark:bg-\").concat(DarkColorStyle[darkColor]);\n }\n return color;\n};\nexport var textColorStyle = function () {\n var color = {};\n for (var i in ColorStyle) {\n var darkColor = \"\".concat(i, \"Dark\");\n color[i] = \"text-\".concat(ColorStyle[i], \" dark:text-\").concat(DarkColorStyle[darkColor]);\n }\n return color;\n};\nexport var borderColorStyle = function () {\n var color = {};\n for (var i in ColorStyle) {\n var darkColor = \"\".concat(i, \"Dark\");\n color[i] = \"border-\".concat(ColorStyle[i], \" dark:border-\").concat(DarkColorStyle[darkColor]);\n }\n return color;\n};\nvar makeClassName = function (type, isClickable) {\n var className = '';\n className += \"\".concat(type.light.default, \" \").concat(type.dark.default);\n if (isClickable) {\n className += \" \".concat(type.light.hover, \" \").concat(type.light.active, \" \").concat(type.light.disable, \" \").concat(type.dark.hover, \" \").concat(type.dark.active, \" \").concat(type.dark.disable);\n }\n return className;\n};\nexport var appearanceStyle = function (type, color, isClickable) {\n if (color === void 0) { color = MAIN_COLOR; }\n if (isClickable === void 0) { isClickable = true; }\n var darkColor = \"\".concat(color, \"Dark\");\n var classic = {\n light: {\n default: \"bg-\".concat(color, \"-9 border border-solid border-\").concat(color, \"-9 shadow-button-classic\"),\n hover: \"hover:bg-\".concat(color, \"-10 hover:border-\").concat(color, \"-9\"),\n active: \"active:bg-\".concat(color, \"-9 active:border-\").concat(color, \"-9\"),\n disable: \"disabled:bg-slateA-3 disabled:border-slate-4 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"-9 dark:border-\").concat(darkColor, \"-9 dark:shadow-button-dark-classic\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"-10 dark:hover:border-\").concat(darkColor, \"-9\"),\n active: \"dark:active:bg-\".concat(darkColor, \"-9 dark:active:border-\").concat(darkColor, \"-9\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8\",\n },\n };\n var solid = {\n light: {\n default: \"bg-\".concat(color, \"-9 border-none\"),\n hover: \"hover:bg-\".concat(color, \"-10 hover:border-none\"),\n active: \"active:bg-\".concat(color, \"-10 active:border-none active:opacity-[.92]\"),\n disable: \"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"-9\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"-10\"),\n active: \"dark:active:bg-\".concat(darkColor, \"-10 dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8\",\n },\n };\n var soft = {\n light: {\n default: \"bg-\".concat(color, \"A-3 border-none text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-4 hover:border-none hover:text-\").concat(color, \"A-11\"),\n active: \"active:bg-\".concat(color, \"A-5 active:border-none active:text-\").concat(color, \"A-11 active:opacity-[.92]\"),\n disable: \"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"A-3 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-4 dark:hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-5 dark:active:text-\").concat(darkColor, \"A-11 dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8\",\n },\n };\n var surface = {\n light: {\n default: \"bg-\".concat(color, \"A-2 border border-solid border-\").concat(color, \"A-7 text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-2 hover:border-\").concat(color, \"A-8 hover:text-\").concat(color, \"A-11\"),\n active: \"active:bg-\".concat(color, \"A-3 active:border-\").concat(color, \"A-8 active:text-\").concat(color, \"A-11 active:opacity-[.92]\"),\n disable: \"disabled:bg-slateA-2 disabled:border-slateA-6 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"A-2 dark:border-\").concat(darkColor, \"A-7 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-2 dark:hover:border-\").concat(darkColor, \"A-8 dark:hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-3 dark:active:border-\").concat(darkColor, \"A-8 dark:active:text-\").concat(darkColor, \"A-11 dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-2 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8\",\n },\n };\n var outline = {\n light: {\n default: \"bg-transparent border border-solid border-\".concat(color, \"A-8 text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-2 hover:border-\").concat(color, \"A-8 hover:text-\").concat(color, \"A-11\"),\n active: \"active:bg-\".concat(color, \"A-3 active:border-\").concat(color, \"A-8 active:text-\").concat(color, \"A-11\"),\n disable: \"disabled:bg-transparent disabled:border-slateA-7 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:border-\".concat(darkColor, \"A-8 dark:bg-transparent dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-2 dark:hover:border-\").concat(darkColor, \"A-8 dark:hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-3 dark:active:border-\").concat(darkColor, \"A-8 dark:active:text-\").concat(darkColor, \"A-11 dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:border-slateDarkA-7 dark:disabled:bg-transparent dark:disabled:text-slateDarkA-8 \",\n },\n };\n var ghost = {\n light: {\n default: \"bg-transparent border-none text-\".concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-3 hover:border-none hover:text-\").concat(color, \"A-11\"),\n active: \"active:bg-\".concat(color, \"A-4 active:border-none active:text-\").concat(color, \"A-11 active:opacity-[.92]\"),\n disable: \"disabled:bg-transparent disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-transparent dark:text-\".concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-3 dark:hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-4 dark:active:text-\").concat(darkColor, \"A-11 dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:text-slateDarkA-8\",\n },\n };\n switch (type) {\n case 'classic':\n return makeClassName(classic, isClickable);\n case 'solid':\n return makeClassName(solid, isClickable);\n case 'soft':\n return makeClassName(soft, isClickable);\n case 'surface':\n return makeClassName(surface, isClickable);\n case 'outline':\n return makeClassName(outline, isClickable);\n case 'ghost':\n return makeClassName(ghost, isClickable);\n default:\n return '';\n }\n};\nexport var toggleAppearanceStyle = function (type, color, isClickable, stateOn) {\n if (color === void 0) { color = MAIN_COLOR; }\n if (isClickable === void 0) { isClickable = true; }\n if (stateOn === void 0) { stateOn = ''; }\n var darkColor = \"\".concat(color, \"Dark\");\n var classic = {\n light: {\n default: \"bg-\".concat(color, \"-9 border border-solid border-\").concat(color, \"-9 text-white shadow-button-classic\"),\n hover: \"hover:bg-\".concat(color, \"-10 hover:border-\").concat(color, \"-9 hover:text-white \").concat(stateOn, \"hover:bg-\").concat(color, \"-10 \").concat(stateOn, \"hover:border-\").concat(color, \"-9 \").concat(stateOn, \"hover:text-white\"),\n active: \"\".concat(stateOn, \"bg-\").concat(color, \"-9 \").concat(stateOn, \"border-\").concat(color, \"-9 \").concat(stateOn, \"text-white\"),\n disable: \"disabled:bg-slateA-3 disabled:border-slate-4 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"-9 dark:border-\").concat(darkColor, \"-9 dark:text-slateDark-1\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"-10 dark:hover:border-\").concat(darkColor, \"-9 dark:hover:text-slateDark-1 dark:\").concat(stateOn, \"hover:bg-\").concat(darkColor, \"-10 dark:\").concat(stateOn, \"hover:border-\").concat(darkColor, \"-9 dark:\").concat(stateOn, \"hover:text-slateDark-1\"),\n active: \"dark:\".concat(stateOn, \"bg-\").concat(darkColor, \"-9 dark:\").concat(stateOn, \"border-\").concat(darkColor, \"-9 dark:\").concat(stateOn, \"text-slateDark-1\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8\",\n },\n };\n var solid = {\n light: {\n default: \"bg-\".concat(color, \"-9 border-none text-white\"),\n hover: \"hover:bg-\".concat(color, \"-10 hover:border-none hover:text-white \").concat(stateOn, \"hover:bg-\").concat(color, \"-10 \").concat(stateOn, \"hover:border-none \").concat(stateOn, \"hover:text-white\"),\n active: \"\".concat(stateOn, \"bg-\").concat(color, \"-10 \").concat(stateOn, \"border-none \").concat(stateOn, \"text-white \").concat(stateOn, \"opacity-[.92]\"),\n disable: \"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"-9 dark:text-slateDark-1\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"-10 dark:hover:text-slateDark-1 dark:\").concat(stateOn, \"hover:bg-\").concat(darkColor, \"-10 dark:\").concat(stateOn, \"hover:text-slateDark-1\"),\n active: \"dark:\".concat(stateOn, \"bg-\").concat(darkColor, \"-10 dark:\").concat(stateOn, \"text-slateDark-1 dark:\").concat(stateOn, \"opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-3 disabled:text-slateDarkA-8\",\n },\n };\n var soft = {\n light: {\n default: \"bg-\".concat(color, \"A-3 border-none text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-4 hover:border-none hover:text-\").concat(color, \"A-11 \").concat(stateOn, \"hover:bg-\").concat(color, \"A-4 \").concat(stateOn, \"hover:border-none \").concat(stateOn, \"hover:text-\").concat(color, \"A-11\"),\n active: \"\".concat(stateOn, \"bg-\").concat(color, \"A-5 \").concat(stateOn, \"border-none \").concat(stateOn, \"text-\").concat(color, \"A-11 \").concat(stateOn, \"opacity-[.92]\"),\n disable: \"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"A-3 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-4 dark:hover:text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"hover:bg-\").concat(darkColor, \"A-4 dark:\").concat(stateOn, \"hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:\".concat(stateOn, \"bg-\").concat(darkColor, \"A-5 dark:\").concat(stateOn, \"text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8\",\n },\n };\n var surface = {\n light: {\n default: \"bg-\".concat(color, \"A-2 border border-solid border-\").concat(color, \"A-7 text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-2 hover:border-\").concat(color, \"A-8 hover:text-\").concat(color, \"A-11 \").concat(stateOn, \"hover:bg-\").concat(color, \"A-2 \").concat(stateOn, \"hover:border-\").concat(color, \"A-8 \").concat(stateOn, \"hover:text-\").concat(color, \"A-11\"),\n active: \"\".concat(stateOn, \"bg-\").concat(color, \"A-3 \").concat(stateOn, \"border-\").concat(color, \"A-8 \").concat(stateOn, \"text-\").concat(color, \"A-11 \").concat(stateOn, \"opacity-[.92]\"),\n disable: \"disabled:bg-slatDarkeA-2 disabled:border-slateDarkA-6 disabled:text-slateDarkA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"A-2 dark:border-\").concat(darkColor, \"A-7 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-2 dark:hover:border-\").concat(darkColor, \"A-8 dark:hover:text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"hover:bg-\").concat(darkColor, \"A-2 dark:\").concat(stateOn, \"hover:border-\").concat(darkColor, \"A-8 dark:\").concat(stateOn, \"hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:\".concat(stateOn, \"bg-\").concat(darkColor, \"A-3 dark:\").concat(stateOn, \"border-\").concat(darkColor, \"A-8 dark:\").concat(stateOn, \"text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-2 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8\",\n },\n };\n var outline = {\n light: {\n default: \"bg-transparent border border-solid border-\".concat(color, \"A-8 text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-2 hover:border-\").concat(color, \"A-8 hover:text-\").concat(color, \"A-11 \").concat(stateOn, \"hover:bg-\").concat(color, \"A-2 \").concat(stateOn, \"hover:border-\").concat(color, \"A-8 \").concat(stateOn, \"hover:text-\").concat(color, \"A-11\"),\n active: \"\".concat(stateOn, \"bg-\").concat(color, \"A-3 \").concat(stateOn, \"border-\").concat(color, \"A-8 \").concat(stateOn, \"text-\").concat(color, \"A-11\"),\n disable: \"disabled:bg-transparent disabled:border-slateA-7 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:border-\".concat(darkColor, \"A-8 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-2 dark:hover:border-\").concat(darkColor, \"A-8 dark:hover:text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"hover:bg-\").concat(darkColor, \"A-2 dark:\").concat(stateOn, \"hover:border-\").concat(darkColor, \"A-8 dark:\").concat(stateOn, \"hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:\".concat(stateOn, \"bg-\").concat(darkColor, \"A-3 dark:\").concat(stateOn, \"border-\").concat(darkColor, \"A-8 dark:\").concat(stateOn, \"text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"opacity-[.92]\"),\n disable: \"dark:disabled:border-slateDarkA-7 dark:disabled:text-slateDarkA-8\",\n },\n };\n var ghost = {\n light: {\n default: \"bg-transparent border-none text-\".concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-3 hover:border-none hover:text-\").concat(color, \"A-11 \").concat(stateOn, \"hover:bg-\").concat(color, \"A-3 \").concat(stateOn, \"hover:border-none \").concat(stateOn, \"hover:text-\").concat(color, \"A-11\"),\n active: \"\".concat(stateOn, \"bg-\").concat(color, \"A-4 \").concat(stateOn, \"border-none \").concat(stateOn, \"text-\").concat(color, \"A-11 \").concat(stateOn, \"opacity-[.92]\"),\n disable: \"disabled:bg-transparent disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-transparent dark:text-\".concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-3 dark:hover:text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"hover:bg-\").concat(darkColor, \"A-3 dark:\").concat(stateOn, \"hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:\".concat(stateOn, \"bg-\").concat(darkColor, \"A-4 dark:\").concat(stateOn, \"text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"opacity-[.92]\"),\n disable: \"dark:disabled:text-slateDarkA-8\",\n },\n };\n switch (type) {\n case 'classic':\n return makeClassName(classic, isClickable);\n case 'solid':\n return makeClassName(solid, isClickable);\n case 'soft':\n return makeClassName(soft, isClickable);\n case 'surface':\n return makeClassName(surface, isClickable);\n case 'outline':\n return makeClassName(outline, isClickable);\n case 'ghost':\n return makeClassName(ghost, isClickable);\n default:\n return '';\n }\n};\nexport var menuItemAppearanceStyle = function (type, color) {\n if (color === void 0) { color = MAIN_COLOR; }\n var appearanceStyle = '';\n if (type === 'solid') {\n appearanceStyle = \"hover:bg-\".concat(color, \"-9 dark:hover:bg-\").concat(color, \"Dark-9 \");\n appearanceStyle += blackText.includes(color)\n ? \"hover:text-slateA-11 dark:hover:text-white\"\n : \"hover:text-white dark:hover:text-white\";\n }\n if (type === 'soft') {\n appearanceStyle = \"hover:bg-\".concat(color, \"A-4 dark:hover-bg-\").concat(color, \"DarkA-4\");\n }\n if (type === 'ghost') {\n appearanceStyle = \"hover:bg-\".concat(color, \"-3 dark:hover:bg-\").concat(color, \"Dark-3\");\n }\n return appearanceStyle;\n};\nexport var checkboxAppearanceStyle = function (type, color, indeterminate) {\n if (color === void 0) { color = MAIN_COLOR; }\n var darkColor = \"\".concat(color, \"Dark\");\n var surface = {\n light: {\n default: \"border data-[state=unchecked]:bg-transparent data-[state=unchecked]:border-slateA-7\\n data-[state=checked]:bg-\".concat(color, \"-9 data-[state=checked]:border-none data-[state=checked]:text-slate-1\"),\n hover: \"hover:data-[state=unchecked]:bg-transparent hover:data-[state=unchecked]:border-slateA-8\\n hover:data-[state=checked]:bg-\".concat(color, \"-10 hover:data-[state=checked]:border-none hover:data-[state=checked]:text-white\"),\n active: \"active:data-[state=unchecked]:bg-transparent active:data-[state=unchecked]:border-slateA-9\\n active:data-[state=checked]:bg-\".concat(color, \"-10 active:data-[state=checked]:border-none active:data-[state=checked]:text-white\"),\n disable: \"disabled:data-[state=unchecked]:bg-slateA-3 disabled:data-[state=unchecked]:border-slateA-6\\n disabled:data-[state=checked]:bg-slateA-3 disabled:data-[state=checked]:border-slateA-6 disabled:data-[state=checked]:text-slateA-8\",\n },\n dark: {\n default: \"dark:data-[state=unchecked]:border-slateDarkA-7\\n dark:data-[state=checked]:bg-\".concat(darkColor, \"-9 dark:data-[state=checked]:text-#111113\"),\n hover: \"dark:hover:data-[state=unchecked]:border-slateDarkA-8\\n dark:hover:data-[state=checked]:bg-\".concat(darkColor, \"-10 dark:hover:data-[state=checked]:text-#111113\"),\n active: \"dark:active:data-[state=unchecked]:border-slateDarkA-9\\n dark:active:data-[state=checked]:bg-\".concat(darkColor, \"-10 dark:active:data-[state=checked]:text-#111113\"),\n disable: \"dark:disabled:data-[state=unchecked]:bg-slateDarkA-3 dark:disabled:data-[state=unchecked]:border-slateDarkA-6\\n dark:disabled:data-[state=checked]:bg-slateDarkA-3 dark:disabled:data-[state=checked]:border-slateDarkA-6 dark:disabled:data-[state=checked]:text-slateDarkA-8\",\n },\n };\n var soft = {\n light: {\n default: \"data-[state=unchecked]:bg-\".concat(color, \"A-5 data-[state=unchecked]:border-none\\n data-[state=checked]:bg-\").concat(color, \"A-5 data-[state=checked]:border-none data-[state=checked]:text-\").concat(color, \"-11\"),\n hover: \"hover:data-[state=unchecked]:bg-\".concat(color, \"A-6 hover:data-[state=unchecked]:border-none\\n hover:data-[state=checked]:bg-\").concat(color, \"A-6 hover:data-[state=checked]:border-none hover:data-[state=checked]:text-\").concat(color, \"-11\"),\n active: \"active:data-[state=unchecked]:bg-\".concat(color, \"A-7 active:data-[state=unchecked]:border-none\\n active:data-[state=checked]:bg-\").concat(color, \"A-7 active:data-[state=checked]:border-none active:data-[state=checked]:text-\").concat(color, \"-11\"),\n disable: \"disabled:data-[state=unchecked]:bg-slateA-3 disabled:data-[state=unchecked]:border-none\\n disabled:data-[state=checked]:bg-slateA-3 disabled:data-[state=checked]:border-none disabled:data-[state=checked]:text-slateA-8\",\n },\n dark: {\n default: \"dark:data-[state=unchecked]:bg-\".concat(darkColor, \"A-5\\n dark:data-[state=checked]:bg-\").concat(darkColor, \"A-5 dark:data-[state=checked]:text-\").concat(darkColor, \"-11\"),\n hover: \"dark:hover:data-[state=unchecked]:bg-\".concat(darkColor, \"A-6\\n dark:hover:data-[state=checked]:bg-\").concat(darkColor, \"A-6 dark:hover:data-[state=checked]:text-\").concat(darkColor, \"-11\"),\n active: \"dark:active:data-[state=unchecked]:bg-\".concat(darkColor, \"A-7\\n dark:active:data-[state=checked]:bg-\").concat(darkColor, \"A-7 dark:active:data-[state=checked]:text-\").concat(darkColor, \"-11\"),\n disable: \"dark:disabled:data-[state=unchecked]:bg-slateDarkA-3\\n dark:disabled:data-[state=checked]:bg-slateDarkA-3 dark:disabled:data-[state=checked]:text-slateDarkA-8\",\n },\n };\n var indeterminateSurface = {\n light: {\n default: \"border bg-\".concat(color, \"A-2 border-\").concat(color, \"A-7 text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-2 hover:border-\").concat(color, \"A-8 hover:text-\").concat(color, \"A-11\"),\n active: \"active:bg-\".concat(color, \"A-3 active:border-\").concat(color, \"A-8 active:text-\").concat(color, \"A-11\"),\n disable: \"disabled:bg-slateA-3 disabled:border-slateA-6 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"A-2 dark:border-\").concat(darkColor, \"A-7 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-2 dark:hover:border-\").concat(darkColor, \"A-8 dark:hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-3 dark:active:border-\").concat(darkColor, \"A-8 dark:active:text-\").concat(darkColor, \"A-11\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8\",\n },\n };\n var indeterminateSoft = {\n light: {\n default: \"border bg-transparent border-\".concat(color, \"A-6 text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-transparent hover:border-\".concat(color, \"A-6 hover:text-\").concat(color, \"A-11\"),\n active: \"active:bg-transparent active:border-\".concat(color, \"A-6 active:text-\").concat(color, \"A-11\"),\n disable: \"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:border-\".concat(darkColor, \"A-6 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:border-\".concat(darkColor, \"A-6 dark:hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:active:border-\".concat(darkColor, \"A-6 dark:active:text-\").concat(darkColor, \"A-11\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8\",\n },\n };\n switch (type) {\n case 'classic':\n return indeterminate\n ? makeClassName(indeterminateSurface, true)\n : \"\".concat(makeClassName(surface, true), \" data-[state=checked]:shadow-checkbox-classic data-[state=unchecked]:shadow-checkbox-classic\\n dark:data-[state=checked]:shadow-checkbox-classic dark:data-[state=unchecked]:shadow-checkbox-classic\");\n case 'soft':\n return indeterminate ? makeClassName(indeterminateSoft, true) : makeClassName(soft, true);\n case 'surface':\n return indeterminate\n ? makeClassName(indeterminateSurface, true)\n : makeClassName(surface, true);\n default:\n return makeClassName(surface, true);\n }\n};\nexport var selectAppearanceStyle = function (type, color) {\n var darkColor = \"\".concat(color, \"Dark\");\n var surface = {\n light: {\n default: \"bg-[#FFFFFF] border border-slateA-7 data-placeholder:text-slateA-10 text-slateA-12\",\n hover: \"hover:bg-[#FFFFFF] hover:border hover:border-slateA-8 hover:text-slateA-10\",\n active: \"active:bg-\".concat(color, \"A-3 active:border-\").concat(color, \"A-8 active:text-slateA-10 active:opacity-[.92]\"),\n disable: \"disabled:bg-slateA-2 disabled:border-slateA-6 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-[#111113] dark:border dark:data-placeholder:border-slateDarkA-7 dark:data-placeholder:text-slateDarkA-9 dark:border-slateDarkA-7 dark:text-slateDarkA-12\",\n hover: \"dark:hover:bg-[#111113] dark:hover:border dark:hover:border-slateDarkA-8 dark:hover:text-slateDarkA-10\",\n active: \"dark:active:bg-\".concat(darkColor, \"A-3 dark:active:border dark:active:border-\").concat(darkColor, \"A-8 dark:active:text-slateDarkA-10 dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-2 dark:disabled:border dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8\",\n },\n };\n var classic = {\n light: {\n default: \"bg-slateA-2 border border-slate-4 data-placeholder:text-slateA-10 text-slateA-12\",\n hover: \"hover:bg-slateA-3 hover:border hover:border-slate-4 hover:text-slateA-10\",\n active: \"active:bg-slateA-4 active:border active:border-slate-6 active:text-slateA-10\",\n disable: \"disabled:bg-slateA-3 disabled:border disabled:border-slate-4 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-slateDarkA-2 dark:border-slateDark-4 dark:data-placeholder:text-slateDarkA-10 dark:text-slateDarkA-12\",\n hover: \"dark:hover:bg-slateDarkA-3 dark:hover:border-slateDark-4 dark:hover:text-slateDarkA-10\",\n active: \"dark:active:bg-slateDarkA-4 dark:active:border-slateDark-6 dark:active:text-slateDarkA-10\",\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8\",\n },\n };\n var soft = {\n light: {\n default: \"bg-\".concat(color, \"A-3 border-none data-placeholder:text-\").concat(color, \"A-12/[.5] text-\").concat(color, \"A-12\"),\n hover: \"hover:bg-\".concat(color, \"A-4 hover:border-none hover:text-\").concat(color, \"A-12/[.5]\"),\n active: \"active:bg-\".concat(color, \"A-5 active:border-none active:text-\").concat(color, \"A-12/[.5] active:opacity-[.92]\"),\n disable: \"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"A-3 dark:border-none dark:data-placeholder:text-\").concat(darkColor, \"A-12/[.5] dark:text-\").concat(darkColor, \"A-12 \"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-4 dark:hover:border-none dark:hover:text-\").concat(darkColor, \"A-12/[.5]\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-5 dark:active:border-none dark:active:text-\").concat(darkColor, \"A-12/[.5] dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:border-none dark:disabled:text-slateDarkA-8\",\n },\n };\n var ghost = {\n light: {\n default: \"bg-transparent border-none data-placeholder:text-\".concat(color, \"A-12/[.5] text-\").concat(color, \"A-12\"),\n hover: \"hover:bg-\".concat(color, \"A-3 hover:border-none hover:text-\").concat(color, \"A-1/[.5]\"),\n active: \"active:bg-\".concat(color, \"A-4 active:border-none active:text-\").concat(color, \"A-12/[.5] active:opacity-[.92]\"),\n disable: \"disabled:bg-transparent disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-transparent dark:border-none dark:data-placeholder:text-\".concat(darkColor, \"A-12/[.5] dark:text-\").concat(darkColor, \"A-12\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-3 dark:hover:border-none dark:hover:text-\").concat(darkColor, \"A-12/[.5]\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-4 dark:active:border-none dark:active:text-\").concat(darkColor, \"A-12/[.5] dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:text-slateDarkA-8 dark:disabled:border-none\",\n },\n };\n var makeClassName = function (type) {\n var className = '';\n className += \"\".concat(type.light.default, \" \").concat(type.dark.default, \" \").concat(type.light.hover, \" \").concat(type.light.active, \" \").concat(type.light.disable, \" \").concat(type.dark.hover, \" \").concat(type.dark.active, \" \").concat(type.dark.disable);\n return className;\n };\n switch (type) {\n case 'classic':\n return makeClassName(classic);\n case 'soft':\n return makeClassName(soft);\n case 'surface':\n return makeClassName(surface);\n case 'ghost':\n return makeClassName(ghost);\n default:\n return '';\n }\n};\n"],"names":["scalingVariants"],"mappings":"AA8EU,IAACA,EAAkB,CACzB,MAAO,WACP,MAAO,WACP,OAAQ,YACR,OAAQ,YACR,OAAQ"}
1
+ {"version":3,"file":"constants.mjs","sources":["../lib/constants.js"],"sourcesContent":["import { ColorStyle, DarkColorStyle, MAIN_COLOR, colorOptions } from '../lib/color/constants';\nexport var radiusOptions = ['none', 'small', 'medium', 'large', 'full'];\nexport var typoSizeOptions = ['1', '2', '3', '4', '5', '6', '7', '8', '9'];\nexport var scalingOptions = ['90%', '95%', '100%', '105%', '110%'];\nexport var sizeOptions = ['x-small', 'small', 'medium', 'large', 'x-large'];\nexport var weightOptions = ['regular', 'medium', 'semibold', 'bold'];\nexport var themeOptions = ['light', 'dark'];\nexport var appearanceOptions = [\n 'classic',\n 'ghost',\n 'outline',\n 'soft',\n 'solid',\n 'surface',\n];\n//차트\nexport var labelPositionList = ['top', 'bottom', 'left', 'right'];\nexport var pointStyleList = [\n 'circle',\n 'cross',\n 'crossRot',\n 'dash',\n 'line',\n 'rect',\n 'rectRounded',\n 'rectRot',\n 'star',\n 'triangle',\n false,\n];\nexport var radiusVariants = {\n // 체크박스\n small: {\n none: 'rounded-none',\n small: 'rounded-[3px]',\n medium: 'rounded',\n large: 'rounded',\n full: 'rounded',\n },\n // 라디오버튼, 스위치, 태그, 배지, 버튼, 텍스트인풋, 텍스트영역, 페이지네이션\n base: {\n none: 'rounded-none',\n small: 'rounded-[3px]',\n medium: 'rounded', // 4px\n large: 'rounded-md', // 6px\n full: 'rounded-full',\n },\n // 배너\n large: {\n none: 'rounded-none',\n small: 'rounded',\n medium: 'rounded-lg', // 8px\n large: 'rounded-xl', // 12px\n full: 'rounded-2xl', // 16px\n },\n // 다이얼로그, 바텀시트, 그리드, 카드\n 'extra-large': {\n none: 'rounded-none',\n small: 'rounded',\n medium: 'rounded-lg',\n large: 'rounded-xl',\n full: 'rounded-xl',\n },\n // Dropdown, Context Menu 아이템\n 'menu-item': {\n none: 'rounded-none',\n small: 'rounded-[1px]',\n medium: 'rounded-sm',\n large: 'rounded',\n full: 'rounded',\n },\n};\nexport var weightVariants = {\n regular: 'font-normal', // 400\n medium: 'font-medium', // 500\n semibold: 'font-semibold', // 600\n bold: 'font-bold', // 700\n};\nexport var scalingVariants = {\n '90%': 'scale-90',\n '95%': 'scale-95',\n '100%': 'scale-100',\n '105%': 'scale-105',\n '110%': 'scale-110',\n};\n// 스토리북 공통 argTypes 설정\nexport var commonArgTypes = {\n typoSize: {\n table: {\n category: 'Theme Props',\n type: { summary: '1 ~ 9' },\n },\n control: { type: 'select' },\n options: typoSizeOptions,\n defaultValue: { summary: '3' },\n },\n scaling: {\n table: {\n category: 'Theme Props',\n type: { summary: scalingOptions.join(' | ') },\n },\n control: { type: 'select' },\n options: scalingOptions,\n defaultValue: { summary: '100%' },\n },\n weight: {\n table: {\n category: 'Theme Props',\n type: { summary: weightOptions.join(' | ') },\n },\n options: weightOptions,\n control: { type: 'select' },\n defaultValue: { summary: 'medium' },\n },\n radius: {\n table: {\n category: 'Theme Props',\n type: { summary: radiusOptions.join(' | ') },\n },\n options: radiusOptions,\n control: { type: 'select' },\n defaultValue: { summary: 'medium' },\n },\n color: {\n table: {\n category: 'Theme Props',\n type: { summary: 'colorVariants' },\n },\n options: colorOptions,\n control: { type: 'select' },\n defaultValue: { summary: 'red' },\n },\n basicText: {\n table: {\n category: 'Props',\n type: { summary: 'string' },\n },\n control: 'text',\n },\n appearance: {\n table: {\n category: 'Props',\n type: { summary: appearanceOptions.join(' | ') },\n },\n options: appearanceOptions,\n control: { type: 'select' },\n defaultValue: { summary: 'solid' },\n },\n size: {\n table: {\n category: 'Props',\n type: { summary: sizeOptions.join(' | ') },\n },\n control: { type: 'select' },\n options: sizeOptions,\n defaultValue: { summary: 'medium' },\n },\n isColorMixed: {\n table: {\n category: 'Props',\n type: { summary: 'boolean' },\n },\n description: \"- \\uCC28\\uD2B8 \\uAE30\\uBCF8 \\uC0C9\\uC0C1 \\uC2A4\\uD0C0\\uC77C \\n - true\\uC778 \\uACBD\\uC6B0 \\uC0C9\\uC0C1\\uC774 \\uAD50\\uCC28\\uB428, false\\uC778 \\uACBD\\uC6B0 \\uC0C9\\uC0C1 \\uC21C\\uCC28\\uC801\\uC73C\\uB85C \\uC0AC\\uC6A9\",\n control: 'readonly',\n defaultValue: { summary: 'true' },\n },\n chartAppearance: {\n table: {\n category: 'Props',\n type: { summary: 'solid | soft' },\n },\n options: ['solid', 'soft'],\n control: 'readonly',\n defaultValue: { summary: 'solid' },\n description: \"- \\uCC28\\uD2B8 \\uAE30\\uBCF8 \\uC0C9\\uC0C1 \\uC2A4\\uD0C0\\uC77C \\n - \\uBC30\\uACBD\\uC0C9\\uACFC \\uD14C\\uB450\\uB9AC\\uC0C9 \\uAE30\\uBCF8 \\uC2A4\\uD0C0\\uC77C\\uC744 \\uC9C0\\uC815\\uD574\\uC900\\uB2E4\",\n },\n datasets: {\n name: 'datasets',\n description: '차트에 사용할 데이터셋',\n table: {\n category: 'Props',\n type: { summary: 'object' },\n },\n },\n labels: {\n description: '차트 위에 표시될 라벨들',\n table: {\n category: 'Props',\n type: { summary: 'object' },\n },\n },\n};\nexport var chartTitleArgTypes = {\n title: {\n description: '차트 타이틀',\n table: {\n category: 'Props',\n type: { summary: 'object' },\n },\n },\n 'title.display': {\n description: '타이틀 표시 여부',\n table: {\n category: 'Title Props',\n type: { summary: 'boolean' },\n },\n control: { type: 'boolean', defaultValue: false },\n defaultValue: { summary: false },\n },\n 'title.text': {\n description: '타이틀 내용',\n table: {\n category: 'Title Props',\n type: { summary: 'string | string[]' },\n },\n control: { type: 'text' },\n defaultValue: { summary: '' },\n },\n 'title.position': {\n description: '타이틀 위치',\n table: {\n category: 'Title Props',\n type: { summary: 'top | right | bottom | left' },\n },\n control: { type: 'select' },\n options: ['top', 'right', 'bottom', 'left'],\n defaultValue: { summary: 'top' },\n },\n 'title.align': {\n description: '타이틀 정렬',\n table: {\n category: 'Title Props',\n type: { summary: 'start | center | end' },\n },\n control: { type: 'select' },\n options: ['start', 'center', 'end'],\n defaultValue: { summary: 'top' },\n },\n 'title.font.size': {\n description: '타이틀 폰트 크기',\n table: {\n category: 'Title Props',\n type: { summary: 'number' },\n },\n control: { type: 'text' },\n defaultValue: { summary: 12 },\n },\n};\nexport var chartLegendArgTypes = {\n legend: {\n description: '차트 범례',\n table: {\n category: 'Props',\n type: { summary: 'object' },\n },\n },\n 'legend.display': {\n description: '범례 표시 여부',\n table: {\n category: 'Legend Props',\n type: { summary: 'boolean' },\n },\n control: { type: 'boolean' },\n defaultValue: { summary: true },\n },\n 'legend.align': {\n description: '범례 정렬',\n table: {\n category: 'Legend Props',\n type: { summary: 'start | center | end' },\n },\n control: { type: 'select' },\n options: ['start', 'center', 'end'],\n defaultValue: { summary: 'center' },\n },\n 'legend.position': {\n description: '범례 위치',\n table: {\n category: 'Legend Props',\n type: { summary: 'top | right | bottom | left' },\n },\n control: { type: 'select' },\n options: ['top', 'right', 'bottom', 'left'],\n defaultValue: { summary: 'top' },\n },\n 'legend.maxHeight': {\n description: '범례 최대 높이(픽셀)',\n table: {\n category: 'Legend Props',\n type: { summary: 'number' },\n },\n control: { type: 'text' },\n defaultValue: { summary: 12 },\n },\n 'legend.maxWidth': {\n description: '범례 최대 길이(픽셀)',\n table: {\n category: 'Legend Props',\n type: { summary: 'number' },\n },\n control: { type: 'text' },\n defaultValue: { summary: 12 },\n },\n 'legend.title.display': {\n description: '범례 타이틀 표시 여부',\n table: {\n category: 'Legend Props',\n type: { summary: 'boolean' },\n },\n control: { type: 'boolean' },\n defaultValue: { summary: false },\n },\n 'legend.title.text': {\n description: '범례 타이틀 문구',\n table: {\n category: 'Legend Props',\n type: { summary: 'string' },\n },\n control: { type: 'text' },\n defaultValue: { summary: '' },\n },\n 'legend.labels.usePointStyle': {\n description: '범례 스타일 사용여부',\n table: {\n category: 'Legend Props',\n type: { summary: 'boolean' },\n },\n control: { type: 'boolean' },\n defaultValue: { summary: 'false' },\n },\n 'legend.labels.pointStyle': {\n description: \"- \\uB77C\\uBCA8 \\uD3EC\\uC778\\uD2B8 \\uC2A4\\uD0C0\\uC77C\\n - usePointStyle\\uAC00 true\\uC778 \\uACBD\\uC6B0 \\uC801\\uC6A9\",\n table: {\n category: 'Legend Props',\n type: { summary: pointStyleList.join(' | ') },\n },\n control: { type: 'select' },\n options: pointStyleList,\n defaultValue: { summary: 'false' },\n },\n};\nexport var chartDatasetsArgsTypes = {\n 'datasets[n].data': {\n description: '데이터셋 데이터',\n table: {\n category: 'Dataset Props',\n type: { summary: 'object | object[] | number[] | string[]' },\n },\n },\n 'datasets[n].label': {\n description: '데이터셋 라벨',\n table: {\n category: 'Dataset Props',\n type: { summary: 'string' },\n },\n },\n 'datasets[n].backgroundColor': {\n description: '데이터셋 배경 색상',\n table: {\n category: 'Dataset Props',\n type: { summary: 'object' },\n },\n },\n 'datasets[n].borderColor': {\n description: '데이터셋 테두리 색상',\n table: {\n category: 'Dataset Props',\n type: { summary: 'object' },\n },\n },\n 'datasets[n].borderWidth': {\n description: '데이터셋 테두리 두꼐',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].borderRadius': {\n description: '데이터셋 둥글기',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].hoverBackgroundColor': {\n description: '데이터셋 마우스 호버 시 배경 색상',\n table: {\n category: 'Dataset Props',\n type: { summary: 'object' },\n },\n },\n 'datasets[n].hoverBorderColor': {\n description: '데이터셋 마우스 호버 시 테두리 색상',\n table: {\n category: 'Dataset Props',\n type: { summary: 'object' },\n },\n },\n 'datasets[n].hoverBorderWidth': {\n description: '데이터셋 호버 시 테두리 두께',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].hoverBorderRadius': {\n description: '데이터셋 호버 시 둥글기',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].order': {\n description: '데이터셋 순서',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].hidden': {\n description: '데이터셋 표시 여부',\n table: {\n category: 'Dataset Props',\n type: { summary: 'boolean' },\n },\n },\n 'datasets[n].borderDash': {\n description: \"- \\uCC28\\uD2B8\\uC758 \\uAC01 \\uC139\\uC158\\uC758 \\uD14C\\uB450\\uB9AC\\uB97C \\uC810\\uC120\\uC73C\\uB85C \\uB9CC\\uB4EC\\n - ex)[5,5]: 5\\uD53D\\uC140 \\uAE38\\uC774\\uC758 \\uC120\\uACFC 5\\uD53D\\uC140 \\uAE38\\uC774\\uC758 \\uAC04\\uACA9\",\n table: {\n category: 'Dataset Props',\n type: { summary: 'number[]' },\n },\n },\n 'datasets[n].borderDashOffset': {\n description: \"- \\uC810\\uC120\\uC758 \\uC2DC\\uC791 \\uC704\\uCE58 \\uC870\\uC815\\n - ex) 2: \\uC810\\uC120\\uC758 \\uC2DC\\uC791 \\uC9C0\\uC810\\uC744 2\\uD53D\\uC140 \\uC774\\uB3D9\",\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].offset': {\n description: '각 섹션 사이의 간격 조정',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n 'datasets[n].weight': {\n description: '각 섹션의 상대적인 두께를 설정, 섹션이 차지하는 공간의 비율을 조정',\n table: {\n category: 'Dataset Props',\n type: { summary: 'number' },\n },\n },\n};\nexport var chartDatalabelsArgsTypes = {\n datalabels: {\n table: {\n disable: true,\n },\n },\n 'datalabels.display': {\n description: '차트 데이터 라벨 표시 여부',\n table: {\n category: 'Datalabels Props',\n type: { summary: 'boolean' },\n },\n control: { type: 'boolean' },\n defaultValue: { summary: false },\n },\n 'datalabels.color': {\n description: '차트 데이터 라벨 색상',\n table: {\n category: 'Datalabels Props',\n type: { summary: 'string' },\n },\n control: { type: 'select' },\n options: ['white', 'gray', 'black'],\n defaultValue: { summary: 'gray' },\n },\n};\nexport var blackText = ['sky', 'mint', 'lime', 'yellow', 'amber', 'orange', 'white'];\nexport var primaryColorStyle = function () {\n var color = {};\n for (var i in ColorStyle) {\n var darkColor = \"\".concat(i, \"Dark\");\n color[i] = blackText.includes(i)\n ? \"bg-\".concat(ColorStyle[i], \" text-slate-12 dark:bg-\").concat(DarkColorStyle[darkColor], \" dark:text-slateDark-12\")\n : \"bg-\".concat(ColorStyle[i], \" text-white dark:bg-\").concat(DarkColorStyle[darkColor], \" dark:text-slateDark-1\");\n }\n return color;\n};\nexport var bgColorStyle = function () {\n var color = {};\n for (var i in ColorStyle) {\n var darkColor = \"\".concat(i, \"Dark\");\n color[i] = \"bg-\".concat(ColorStyle[i], \" dark:bg-\").concat(DarkColorStyle[darkColor]);\n }\n return color;\n};\nexport var textColorStyle = function () {\n var color = {};\n for (var i in ColorStyle) {\n var darkColor = \"\".concat(i, \"Dark\");\n color[i] = \"text-\".concat(ColorStyle[i], \" dark:text-\").concat(DarkColorStyle[darkColor]);\n }\n return color;\n};\nexport var borderColorStyle = function () {\n var color = {};\n for (var i in ColorStyle) {\n var darkColor = \"\".concat(i, \"Dark\");\n color[i] = \"border-\".concat(ColorStyle[i], \" dark:border-\").concat(DarkColorStyle[darkColor]);\n }\n return color;\n};\nvar makeClassName = function (type, isClickable) {\n var className = '';\n className += \"\".concat(type.light.default, \" \").concat(type.dark.default);\n if (isClickable) {\n className += \" \".concat(type.light.hover, \" \").concat(type.light.active, \" \").concat(type.light.disable, \" \").concat(type.dark.hover, \" \").concat(type.dark.active, \" \").concat(type.dark.disable);\n }\n return className;\n};\nexport var appearanceStyle = function (type, color, isClickable) {\n if (color === void 0) { color = MAIN_COLOR; }\n if (isClickable === void 0) { isClickable = true; }\n var darkColor = \"\".concat(color, \"Dark\");\n var classic = {\n light: {\n default: \"bg-\".concat(color, \"-9 border border-solid border-\").concat(color, \"-9 shadow-button-classic\"),\n hover: \"hover:bg-\".concat(color, \"-10 hover:border-\").concat(color, \"-9\"),\n active: \"active:bg-\".concat(color, \"-9 active:border-\").concat(color, \"-9\"),\n disable: \"disabled:bg-slateA-3 disabled:border-slate-4 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"-9 dark:border-\").concat(darkColor, \"-9 dark:shadow-button-dark-classic\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"-10 dark:hover:border-\").concat(darkColor, \"-9\"),\n active: \"dark:active:bg-\".concat(darkColor, \"-9 dark:active:border-\").concat(darkColor, \"-9\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8\",\n },\n };\n var solid = {\n light: {\n default: \"bg-\".concat(color, \"-9 border-none\"),\n hover: \"hover:bg-\".concat(color, \"-10 hover:border-none\"),\n active: \"active:bg-\".concat(color, \"-10 active:border-none active:opacity-[.92]\"),\n disable: \"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"-9\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"-10\"),\n active: \"dark:active:bg-\".concat(darkColor, \"-10 dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8\",\n },\n };\n var soft = {\n light: {\n default: \"bg-\".concat(color, \"A-3 border-none text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-4 hover:border-none hover:text-\").concat(color, \"A-11\"),\n active: \"active:bg-\".concat(color, \"A-5 active:border-none active:text-\").concat(color, \"A-11 active:opacity-[.92]\"),\n disable: \"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"A-3 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-4 dark:hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-5 dark:active:text-\").concat(darkColor, \"A-11 dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8\",\n },\n };\n var surface = {\n light: {\n default: \"bg-\".concat(color, \"A-2 border border-solid border-\").concat(color, \"A-7 text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-2 hover:border-\").concat(color, \"A-8 hover:text-\").concat(color, \"A-11\"),\n active: \"active:bg-\".concat(color, \"A-3 active:border-\").concat(color, \"A-8 active:text-\").concat(color, \"A-11 active:opacity-[.92]\"),\n disable: \"disabled:bg-slateA-2 disabled:border-slateA-6 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"A-2 dark:border-\").concat(darkColor, \"A-7 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-2 dark:hover:border-\").concat(darkColor, \"A-8 dark:hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-3 dark:active:border-\").concat(darkColor, \"A-8 dark:active:text-\").concat(darkColor, \"A-11 dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-2 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8\",\n },\n };\n var outline = {\n light: {\n default: \"bg-transparent border border-solid border-\".concat(color, \"A-8 text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-2 hover:border-\").concat(color, \"A-8 hover:text-\").concat(color, \"A-11\"),\n active: \"active:bg-\".concat(color, \"A-3 active:border-\").concat(color, \"A-8 active:text-\").concat(color, \"A-11\"),\n disable: \"disabled:bg-transparent disabled:border-slateA-7 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:border-\".concat(darkColor, \"A-8 dark:bg-transparent dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-2 dark:hover:border-\").concat(darkColor, \"A-8 dark:hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-3 dark:active:border-\").concat(darkColor, \"A-8 dark:active:text-\").concat(darkColor, \"A-11 dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:border-slateDarkA-7 dark:disabled:bg-transparent dark:disabled:text-slateDarkA-8 \",\n },\n };\n var ghost = {\n light: {\n default: \"bg-transparent border-none text-\".concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-3 hover:border-none hover:text-\").concat(color, \"A-11\"),\n active: \"active:bg-\".concat(color, \"A-4 active:border-none active:text-\").concat(color, \"A-11 active:opacity-[.92]\"),\n disable: \"disabled:bg-transparent disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-transparent dark:text-\".concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-3 dark:hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-4 dark:active:text-\").concat(darkColor, \"A-11 dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:text-slateDarkA-8\",\n },\n };\n switch (type) {\n case 'classic':\n return makeClassName(classic, isClickable);\n case 'solid':\n return makeClassName(solid, isClickable);\n case 'soft':\n return makeClassName(soft, isClickable);\n case 'surface':\n return makeClassName(surface, isClickable);\n case 'outline':\n return makeClassName(outline, isClickable);\n case 'ghost':\n return makeClassName(ghost, isClickable);\n default:\n return '';\n }\n};\nexport var toggleAppearanceStyle = function (type, color, isClickable, stateOn) {\n if (color === void 0) { color = MAIN_COLOR; }\n if (isClickable === void 0) { isClickable = true; }\n if (stateOn === void 0) { stateOn = ''; }\n var darkColor = \"\".concat(color, \"Dark\");\n var classic = {\n light: {\n default: \"bg-\".concat(color, \"-9 border border-solid border-\").concat(color, \"-9 text-white shadow-button-classic\"),\n hover: \"hover:bg-\".concat(color, \"-10 hover:border-\").concat(color, \"-9 hover:text-white \").concat(stateOn, \"hover:bg-\").concat(color, \"-10 \").concat(stateOn, \"hover:border-\").concat(color, \"-9 \").concat(stateOn, \"hover:text-white\"),\n active: \"\".concat(stateOn, \"bg-\").concat(color, \"-9 \").concat(stateOn, \"border-\").concat(color, \"-9 \").concat(stateOn, \"text-white\"),\n disable: \"disabled:bg-slateA-3 disabled:border-slate-4 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"-9 dark:border-\").concat(darkColor, \"-9 dark:text-slateDark-1\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"-10 dark:hover:border-\").concat(darkColor, \"-9 dark:hover:text-slateDark-1 dark:\").concat(stateOn, \"hover:bg-\").concat(darkColor, \"-10 dark:\").concat(stateOn, \"hover:border-\").concat(darkColor, \"-9 dark:\").concat(stateOn, \"hover:text-slateDark-1\"),\n active: \"dark:\".concat(stateOn, \"bg-\").concat(darkColor, \"-9 dark:\").concat(stateOn, \"border-\").concat(darkColor, \"-9 dark:\").concat(stateOn, \"text-slateDark-1\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8\",\n },\n };\n var solid = {\n light: {\n default: \"bg-\".concat(color, \"-9 border-none text-white\"),\n hover: \"hover:bg-\".concat(color, \"-10 hover:border-none hover:text-white \").concat(stateOn, \"hover:bg-\").concat(color, \"-10 \").concat(stateOn, \"hover:border-none \").concat(stateOn, \"hover:text-white\"),\n active: \"\".concat(stateOn, \"bg-\").concat(color, \"-10 \").concat(stateOn, \"border-none \").concat(stateOn, \"text-white \").concat(stateOn, \"opacity-[.92]\"),\n disable: \"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"-9 dark:text-slateDark-1\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"-10 dark:hover:text-slateDark-1 dark:\").concat(stateOn, \"hover:bg-\").concat(darkColor, \"-10 dark:\").concat(stateOn, \"hover:text-slateDark-1\"),\n active: \"dark:\".concat(stateOn, \"bg-\").concat(darkColor, \"-10 dark:\").concat(stateOn, \"text-slateDark-1 dark:\").concat(stateOn, \"opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-3 disabled:text-slateDarkA-8\",\n },\n };\n var soft = {\n light: {\n default: \"bg-\".concat(color, \"A-3 border-none text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-4 hover:border-none hover:text-\").concat(color, \"A-11 \").concat(stateOn, \"hover:bg-\").concat(color, \"A-4 \").concat(stateOn, \"hover:border-none \").concat(stateOn, \"hover:text-\").concat(color, \"A-11\"),\n active: \"\".concat(stateOn, \"bg-\").concat(color, \"A-5 \").concat(stateOn, \"border-none \").concat(stateOn, \"text-\").concat(color, \"A-11 \").concat(stateOn, \"opacity-[.92]\"),\n disable: \"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"A-3 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-4 dark:hover:text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"hover:bg-\").concat(darkColor, \"A-4 dark:\").concat(stateOn, \"hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:\".concat(stateOn, \"bg-\").concat(darkColor, \"A-5 dark:\").concat(stateOn, \"text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8\",\n },\n };\n var surface = {\n light: {\n default: \"bg-\".concat(color, \"A-2 border border-solid border-\").concat(color, \"A-7 text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-2 hover:border-\").concat(color, \"A-8 hover:text-\").concat(color, \"A-11 \").concat(stateOn, \"hover:bg-\").concat(color, \"A-2 \").concat(stateOn, \"hover:border-\").concat(color, \"A-8 \").concat(stateOn, \"hover:text-\").concat(color, \"A-11\"),\n active: \"\".concat(stateOn, \"bg-\").concat(color, \"A-3 \").concat(stateOn, \"border-\").concat(color, \"A-8 \").concat(stateOn, \"text-\").concat(color, \"A-11 \").concat(stateOn, \"opacity-[.92]\"),\n disable: \"disabled:bg-slatDarkeA-2 disabled:border-slateDarkA-6 disabled:text-slateDarkA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"A-2 dark:border-\").concat(darkColor, \"A-7 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-2 dark:hover:border-\").concat(darkColor, \"A-8 dark:hover:text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"hover:bg-\").concat(darkColor, \"A-2 dark:\").concat(stateOn, \"hover:border-\").concat(darkColor, \"A-8 dark:\").concat(stateOn, \"hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:\".concat(stateOn, \"bg-\").concat(darkColor, \"A-3 dark:\").concat(stateOn, \"border-\").concat(darkColor, \"A-8 dark:\").concat(stateOn, \"text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-2 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8\",\n },\n };\n var outline = {\n light: {\n default: \"bg-transparent border border-solid border-\".concat(color, \"A-8 text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-2 hover:border-\").concat(color, \"A-8 hover:text-\").concat(color, \"A-11 \").concat(stateOn, \"hover:bg-\").concat(color, \"A-2 \").concat(stateOn, \"hover:border-\").concat(color, \"A-8 \").concat(stateOn, \"hover:text-\").concat(color, \"A-11\"),\n active: \"\".concat(stateOn, \"bg-\").concat(color, \"A-3 \").concat(stateOn, \"border-\").concat(color, \"A-8 \").concat(stateOn, \"text-\").concat(color, \"A-11\"),\n disable: \"disabled:bg-transparent disabled:border-slateA-7 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:border-\".concat(darkColor, \"A-8 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-2 dark:hover:border-\").concat(darkColor, \"A-8 dark:hover:text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"hover:bg-\").concat(darkColor, \"A-2 dark:\").concat(stateOn, \"hover:border-\").concat(darkColor, \"A-8 dark:\").concat(stateOn, \"hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:\".concat(stateOn, \"bg-\").concat(darkColor, \"A-3 dark:\").concat(stateOn, \"border-\").concat(darkColor, \"A-8 dark:\").concat(stateOn, \"text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"opacity-[.92]\"),\n disable: \"dark:disabled:border-slateDarkA-7 dark:disabled:text-slateDarkA-8\",\n },\n };\n var ghost = {\n light: {\n default: \"bg-transparent border-none text-\".concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-3 hover:border-none hover:text-\").concat(color, \"A-11 \").concat(stateOn, \"hover:bg-\").concat(color, \"A-3 \").concat(stateOn, \"hover:border-none \").concat(stateOn, \"hover:text-\").concat(color, \"A-11\"),\n active: \"\".concat(stateOn, \"bg-\").concat(color, \"A-4 \").concat(stateOn, \"border-none \").concat(stateOn, \"text-\").concat(color, \"A-11 \").concat(stateOn, \"opacity-[.92]\"),\n disable: \"disabled:bg-transparent disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-transparent dark:text-\".concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-3 dark:hover:text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"hover:bg-\").concat(darkColor, \"A-3 dark:\").concat(stateOn, \"hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:\".concat(stateOn, \"bg-\").concat(darkColor, \"A-4 dark:\").concat(stateOn, \"text-\").concat(darkColor, \"A-11 dark:\").concat(stateOn, \"opacity-[.92]\"),\n disable: \"dark:disabled:text-slateDarkA-8\",\n },\n };\n switch (type) {\n case 'classic':\n return makeClassName(classic, isClickable);\n case 'solid':\n return makeClassName(solid, isClickable);\n case 'soft':\n return makeClassName(soft, isClickable);\n case 'surface':\n return makeClassName(surface, isClickable);\n case 'outline':\n return makeClassName(outline, isClickable);\n case 'ghost':\n return makeClassName(ghost, isClickable);\n default:\n return '';\n }\n};\nexport var menuItemAppearanceStyle = function (type, color) {\n if (color === void 0) { color = MAIN_COLOR; }\n var appearanceStyle = '';\n if (type === 'solid') {\n appearanceStyle = \"hover:bg-\".concat(color, \"-9 dark:hover:bg-\").concat(color, \"Dark-9 \");\n appearanceStyle += blackText.includes(color)\n ? \"hover:text-slateA-11 dark:hover:text-white\"\n : \"hover:text-white dark:hover:text-white\";\n }\n if (type === 'soft') {\n appearanceStyle = \"hover:bg-\".concat(color, \"A-4 dark:hover-bg-\").concat(color, \"DarkA-4\");\n }\n if (type === 'ghost') {\n appearanceStyle = \"hover:bg-\".concat(color, \"-3 dark:hover:bg-\").concat(color, \"Dark-3\");\n }\n return appearanceStyle;\n};\nexport var checkboxAppearanceStyle = function (type, color, indeterminate) {\n if (color === void 0) { color = MAIN_COLOR; }\n var darkColor = \"\".concat(color, \"Dark\");\n var surface = {\n light: {\n default: \"border data-[state=unchecked]:bg-transparent data-[state=unchecked]:border-slateA-7\\n data-[state=checked]:bg-\".concat(color, \"-9 data-[state=checked]:border-none data-[state=checked]:text-slate-1\"),\n hover: \"hover:data-[state=unchecked]:bg-transparent hover:data-[state=unchecked]:border-slateA-8\\n hover:data-[state=checked]:bg-\".concat(color, \"-10 hover:data-[state=checked]:border-none hover:data-[state=checked]:text-white\"),\n active: \"active:data-[state=unchecked]:bg-transparent active:data-[state=unchecked]:border-slateA-9\\n active:data-[state=checked]:bg-\".concat(color, \"-10 active:data-[state=checked]:border-none active:data-[state=checked]:text-white\"),\n disable: \"disabled:data-[state=unchecked]:bg-slateA-3 disabled:data-[state=unchecked]:border-slateA-6\\n disabled:data-[state=checked]:bg-slateA-3 disabled:data-[state=checked]:border-slateA-6 disabled:data-[state=checked]:text-slateA-8\",\n },\n dark: {\n default: \"dark:data-[state=unchecked]:border-slateDarkA-7\\n dark:data-[state=checked]:bg-\".concat(darkColor, \"-9 dark:data-[state=checked]:text-#111113\"),\n hover: \"dark:hover:data-[state=unchecked]:border-slateDarkA-8\\n dark:hover:data-[state=checked]:bg-\".concat(darkColor, \"-10 dark:hover:data-[state=checked]:text-#111113\"),\n active: \"dark:active:data-[state=unchecked]:border-slateDarkA-9\\n dark:active:data-[state=checked]:bg-\".concat(darkColor, \"-10 dark:active:data-[state=checked]:text-#111113\"),\n disable: \"dark:disabled:data-[state=unchecked]:bg-slateDarkA-3 dark:disabled:data-[state=unchecked]:border-slateDarkA-6\\n dark:disabled:data-[state=checked]:bg-slateDarkA-3 dark:disabled:data-[state=checked]:border-slateDarkA-6 dark:disabled:data-[state=checked]:text-slateDarkA-8\",\n },\n };\n var soft = {\n light: {\n default: \"data-[state=unchecked]:bg-\".concat(color, \"A-5 data-[state=unchecked]:border-none\\n data-[state=checked]:bg-\").concat(color, \"A-5 data-[state=checked]:border-none data-[state=checked]:text-\").concat(color, \"-11\"),\n hover: \"hover:data-[state=unchecked]:bg-\".concat(color, \"A-6 hover:data-[state=unchecked]:border-none\\n hover:data-[state=checked]:bg-\").concat(color, \"A-6 hover:data-[state=checked]:border-none hover:data-[state=checked]:text-\").concat(color, \"-11\"),\n active: \"active:data-[state=unchecked]:bg-\".concat(color, \"A-7 active:data-[state=unchecked]:border-none\\n active:data-[state=checked]:bg-\").concat(color, \"A-7 active:data-[state=checked]:border-none active:data-[state=checked]:text-\").concat(color, \"-11\"),\n disable: \"disabled:data-[state=unchecked]:bg-slateA-3 disabled:data-[state=unchecked]:border-none\\n disabled:data-[state=checked]:bg-slateA-3 disabled:data-[state=checked]:border-none disabled:data-[state=checked]:text-slateA-8\",\n },\n dark: {\n default: \"dark:data-[state=unchecked]:bg-\".concat(darkColor, \"A-5\\n dark:data-[state=checked]:bg-\").concat(darkColor, \"A-5 dark:data-[state=checked]:text-\").concat(darkColor, \"-11\"),\n hover: \"dark:hover:data-[state=unchecked]:bg-\".concat(darkColor, \"A-6\\n dark:hover:data-[state=checked]:bg-\").concat(darkColor, \"A-6 dark:hover:data-[state=checked]:text-\").concat(darkColor, \"-11\"),\n active: \"dark:active:data-[state=unchecked]:bg-\".concat(darkColor, \"A-7\\n dark:active:data-[state=checked]:bg-\").concat(darkColor, \"A-7 dark:active:data-[state=checked]:text-\").concat(darkColor, \"-11\"),\n disable: \"dark:disabled:data-[state=unchecked]:bg-slateDarkA-3\\n dark:disabled:data-[state=checked]:bg-slateDarkA-3 dark:disabled:data-[state=checked]:text-slateDarkA-8\",\n },\n };\n var indeterminateSurface = {\n light: {\n default: \"border bg-\".concat(color, \"A-2 border-\").concat(color, \"A-7 text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-\".concat(color, \"A-2 hover:border-\").concat(color, \"A-8 hover:text-\").concat(color, \"A-11\"),\n active: \"active:bg-\".concat(color, \"A-3 active:border-\").concat(color, \"A-8 active:text-\").concat(color, \"A-11\"),\n disable: \"disabled:bg-slateA-3 disabled:border-slateA-6 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"A-2 dark:border-\").concat(darkColor, \"A-7 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-2 dark:hover:border-\").concat(darkColor, \"A-8 dark:hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-3 dark:active:border-\").concat(darkColor, \"A-8 dark:active:text-\").concat(darkColor, \"A-11\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8\",\n },\n };\n var indeterminateSoft = {\n light: {\n default: \"border bg-transparent border-\".concat(color, \"A-6 text-\").concat(color, \"A-11\"),\n hover: \"hover:bg-transparent hover:border-\".concat(color, \"A-6 hover:text-\").concat(color, \"A-11\"),\n active: \"active:bg-transparent active:border-\".concat(color, \"A-6 active:text-\").concat(color, \"A-11\"),\n disable: \"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:border-\".concat(darkColor, \"A-6 dark:text-\").concat(darkColor, \"A-11\"),\n hover: \"dark:hover:border-\".concat(darkColor, \"A-6 dark:hover:text-\").concat(darkColor, \"A-11\"),\n active: \"dark:active:border-\".concat(darkColor, \"A-6 dark:active:text-\").concat(darkColor, \"A-11\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:text-slateDarkA-8\",\n },\n };\n switch (type) {\n case 'classic':\n return indeterminate\n ? makeClassName(indeterminateSurface, true)\n : \"\".concat(makeClassName(surface, true), \" data-[state=checked]:shadow-checkbox-classic data-[state=unchecked]:shadow-checkbox-classic\\n dark:data-[state=checked]:shadow-checkbox-classic dark:data-[state=unchecked]:shadow-checkbox-classic\");\n case 'soft':\n return indeterminate ? makeClassName(indeterminateSoft, true) : makeClassName(soft, true);\n case 'surface':\n return indeterminate\n ? makeClassName(indeterminateSurface, true)\n : makeClassName(surface, true);\n default:\n return makeClassName(surface, true);\n }\n};\nexport var selectAppearanceStyle = function (type, color) {\n var darkColor = \"\".concat(color, \"Dark\");\n var surface = {\n light: {\n default: \"bg-[#FFFFFF] border border-slateA-7 data-placeholder:text-slateA-10 text-slateA-12\",\n hover: \"hover:bg-[#FFFFFF] hover:border hover:border-slateA-8 hover:text-slateA-10\",\n active: \"active:bg-\".concat(color, \"A-3 active:border-\").concat(color, \"A-8 active:text-slateA-10 active:opacity-[.92]\"),\n disable: \"disabled:bg-slateA-2 disabled:border-slateA-6 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-[#111113] dark:border dark:data-placeholder:border-slateDarkA-7 dark:data-placeholder:text-slateDarkA-9 dark:border-slateDarkA-7 dark:text-slateDarkA-12\",\n hover: \"dark:hover:bg-[#111113] dark:hover:border dark:hover:border-slateDarkA-8 dark:hover:text-slateDarkA-10\",\n active: \"dark:active:bg-\".concat(darkColor, \"A-3 dark:active:border dark:active:border-\").concat(darkColor, \"A-8 dark:active:text-slateDarkA-10 dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-2 dark:disabled:border dark:disabled:border-slateDarkA-6 dark:disabled:text-slateDarkA-8\",\n },\n };\n var classic = {\n light: {\n default: \"bg-slateA-2 border border-slate-4 data-placeholder:text-slateA-10 text-slateA-12\",\n hover: \"hover:bg-slateA-3 hover:border hover:border-slate-4 hover:text-slateA-10\",\n active: \"active:bg-slateA-4 active:border active:border-slate-6 active:text-slateA-10\",\n disable: \"disabled:bg-slateA-3 disabled:border disabled:border-slate-4 disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-slateDarkA-2 dark:border-slateDark-4 dark:data-placeholder:text-slateDarkA-10 dark:text-slateDarkA-12\",\n hover: \"dark:hover:bg-slateDarkA-3 dark:hover:border-slateDark-4 dark:hover:text-slateDarkA-10\",\n active: \"dark:active:bg-slateDarkA-4 dark:active:border-slateDark-6 dark:active:text-slateDarkA-10\",\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:border-slateDark-4 dark:disabled:text-slateDarkA-8\",\n },\n };\n var soft = {\n light: {\n default: \"bg-\".concat(color, \"A-3 border-none data-placeholder:text-\").concat(color, \"A-12/[.5] text-\").concat(color, \"A-12\"),\n hover: \"hover:bg-\".concat(color, \"A-4 hover:border-none hover:text-\").concat(color, \"A-12/[.5]\"),\n active: \"active:bg-\".concat(color, \"A-5 active:border-none active:text-\").concat(color, \"A-12/[.5] active:opacity-[.92]\"),\n disable: \"disabled:bg-slateA-3 disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-\".concat(darkColor, \"A-3 dark:border-none dark:data-placeholder:text-\").concat(darkColor, \"A-12/[.5] dark:text-\").concat(darkColor, \"A-12 \"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-4 dark:hover:border-none dark:hover:text-\").concat(darkColor, \"A-12/[.5]\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-5 dark:active:border-none dark:active:text-\").concat(darkColor, \"A-12/[.5] dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:bg-slateDarkA-3 dark:disabled:border-none dark:disabled:text-slateDarkA-8\",\n },\n };\n var ghost = {\n light: {\n default: \"bg-transparent border-none data-placeholder:text-\".concat(color, \"A-12/[.5] text-\").concat(color, \"A-12\"),\n hover: \"hover:bg-\".concat(color, \"A-3 hover:border-none hover:text-\").concat(color, \"A-1/[.5]\"),\n active: \"active:bg-\".concat(color, \"A-4 active:border-none active:text-\").concat(color, \"A-12/[.5] active:opacity-[.92]\"),\n disable: \"disabled:bg-transparent disabled:border-none disabled:text-slateA-8\",\n },\n dark: {\n default: \"dark:bg-transparent dark:border-none dark:data-placeholder:text-\".concat(darkColor, \"A-12/[.5] dark:text-\").concat(darkColor, \"A-12\"),\n hover: \"dark:hover:bg-\".concat(darkColor, \"A-3 dark:hover:border-none dark:hover:text-\").concat(darkColor, \"A-12/[.5]\"),\n active: \"dark:active:bg-\".concat(darkColor, \"A-4 dark:active:border-none dark:active:text-\").concat(darkColor, \"A-12/[.5] dark:active:opacity-[.92]\"),\n disable: \"dark:disabled:text-slateDarkA-8 dark:disabled:border-none\",\n },\n };\n var makeClassName = function (type) {\n var className = '';\n className += \"\".concat(type.light.default, \" \").concat(type.dark.default, \" \").concat(type.light.hover, \" \").concat(type.light.active, \" \").concat(type.light.disable, \" \").concat(type.dark.hover, \" \").concat(type.dark.active, \" \").concat(type.dark.disable);\n return className;\n };\n switch (type) {\n case 'classic':\n return makeClassName(classic);\n case 'soft':\n return makeClassName(soft);\n case 'surface':\n return makeClassName(surface);\n case 'ghost':\n return makeClassName(ghost);\n default:\n return '';\n }\n};\n"],"names":["scalingVariants"],"mappings":"AA8EU,IAACA,EAAkB,CACzB,MAAO,WACP,MAAO,WACP,OAAQ,YACR,OAAQ,YACR,OAAQ"}
@@ -0,0 +1,3 @@
1
+ import type { Config } from 'tailwindcss';
2
+ declare const config: Config;
3
+ export default config;
@@ -1,3 +1,3 @@
1
1
  "use client";
2
- import{j as t}from"../../../_virtual/jsx-runtime.mjs";import{r as e}from"../../../_virtual/index.mjs";var r=function(){return r=Object.assign||function(t){for(var e,r=1,n=arguments.length;r<n;r++)for(var u in e=arguments[r])Object.prototype.hasOwnProperty.call(e,u)&&(t[u]=e[u]);return t},r.apply(this,arguments)},n={},u=e.createContext({theme:n,updateTheme:function(){}}),o=function(){return e.useContext(u)},a=function(o){var a=o.children,i=e.useState(n),c=i[0],s=i[1];return t.jsx(u.Provider,{value:{theme:c,updateTheme:function(t){s((function(e){return r(r({},e),t)}))}},children:a})};export{a as default,o as useTheme};
2
+ import{jsx as r}from"react/jsx-runtime";import{createContext as t,useContext as e,useState as n}from"react";var o=function(){return o=Object.assign||function(r){for(var t,e=1,n=arguments.length;e<n;e++)for(var o in t=arguments[e])Object.prototype.hasOwnProperty.call(t,o)&&(r[o]=t[o]);return r},o.apply(this,arguments)},u={},i=t({theme:u,updateTheme:function(){}}),a=function(){return e(i)},c=function(t){var e=t.children,a=n(u),c=a[0],f=a[1];return r(i.Provider,{value:{theme:c,updateTheme:function(r){f((function(t){return o(o({},t),r)}))}},children:e})};export{c as default,a as useTheme};
3
3
  //# sourceMappingURL=ThemeProvider.mjs.map