maru_design2 2.4.2 → 2.4.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (115) hide show
  1. package/.claude/settings.local.json +7 -0
  2. package/.idea/MaruDesign2.iml +13 -0
  3. package/.idea/codeStyles/Project.xml +77 -0
  4. package/.idea/codeStyles/codeStyleConfig.xml +5 -0
  5. package/.idea/inspectionProfiles/Project_Default.xml +94 -0
  6. package/.idea/jsLinters/eslint.xml +6 -0
  7. package/.idea/material_theme_project_new.xml +12 -0
  8. package/.idea/modules.xml +8 -0
  9. package/.idea/prettier.xml +8 -0
  10. package/.idea/vcs.xml +6 -0
  11. package/.idea/watcherTasks.xml +4 -0
  12. package/CHANGELOG.md +9 -0
  13. package/dist/components/atoms/button/Button.d.ts +33 -30
  14. package/dist/components/atoms/button/index.d.ts +1 -1
  15. package/dist/components/atoms/checkbox/Checkbox.d.ts +21 -21
  16. package/dist/components/atoms/checkbox/index.d.ts +1 -1
  17. package/dist/components/atoms/chip/Chip.d.ts +29 -25
  18. package/dist/components/atoms/chip/index.d.ts +1 -1
  19. package/dist/components/atoms/code/Code.d.ts +7 -0
  20. package/dist/components/atoms/code/index.d.ts +1 -0
  21. package/dist/components/atoms/icon/Icon.d.ts +16 -17
  22. package/dist/components/atoms/icon/iconmap.d.ts +421 -172
  23. package/dist/components/atoms/icon/index.d.ts +2 -2
  24. package/dist/components/atoms/input/Input.d.ts +43 -31
  25. package/dist/components/atoms/input/index.d.ts +1 -1
  26. package/dist/components/atoms/popover/Popover.d.ts +19 -19
  27. package/dist/components/atoms/popover/index.d.ts +1 -1
  28. package/dist/components/atoms/radio/Radio.d.ts +14 -12
  29. package/dist/components/atoms/radio/index.d.ts +1 -1
  30. package/dist/components/atoms/skeleton/Contents.d.ts +1 -0
  31. package/dist/components/atoms/skeleton/Skeleton.d.ts +6 -0
  32. package/dist/components/atoms/skeleton/index.d.ts +1 -0
  33. package/dist/components/atoms/slider/Slider.d.ts +31 -0
  34. package/dist/components/atoms/slider/index.d.ts +1 -0
  35. package/dist/components/atoms/textarea/Textarea.d.ts +38 -0
  36. package/dist/components/atoms/textarea/index.d.ts +1 -0
  37. package/dist/components/atoms/toggle/Toggle.d.ts +20 -20
  38. package/dist/components/atoms/toggle/index.d.ts +1 -1
  39. package/dist/components/atoms/tooltip/Tooltip.d.ts +29 -22
  40. package/dist/components/atoms/tooltip/index.d.ts +1 -1
  41. package/dist/components/molecules/calendar/Calendar.d.ts +27 -0
  42. package/dist/components/molecules/calendar/DatePickerHeader.d.ts +3 -0
  43. package/dist/components/molecules/calendar/DatePickerWrapper.d.ts +9 -0
  44. package/dist/components/molecules/calendar/index.d.ts +1 -0
  45. package/dist/components/molecules/dropdown/Dropdown.d.ts +90 -77
  46. package/dist/components/molecules/dropdown/index.d.ts +1 -1
  47. package/dist/components/molecules/dropdown/menu/MenuItem.d.ts +16 -0
  48. package/dist/components/molecules/dropdown/menu/index.d.ts +31 -0
  49. package/dist/components/molecules/dropdown/{toggles → toggleButton}/Arrow.d.ts +9 -8
  50. package/dist/components/molecules/dropdown/toggleButton/Clear.d.ts +6 -0
  51. package/dist/components/molecules/dropdown/toggleButton/index.d.ts +19 -0
  52. package/dist/components/molecules/modal/Modal.d.ts +48 -50
  53. package/dist/components/molecules/modal/index.d.ts +1 -1
  54. package/dist/components/molecules/multiSelectDropdown/MultiSelectDropdown.d.ts +76 -0
  55. package/dist/components/molecules/multiSelectDropdown/index.d.ts +1 -0
  56. package/dist/components/molecules/multiSelectDropdown/menu/MenuItem.d.ts +12 -0
  57. package/dist/components/molecules/multiSelectDropdown/menu/index.d.ts +21 -0
  58. package/dist/components/molecules/multiSelectDropdown/toggleButton/Arrow.d.ts +9 -0
  59. package/dist/components/molecules/multiSelectDropdown/toggleButton/Clear.d.ts +6 -0
  60. package/dist/components/molecules/multiSelectDropdown/toggleButton/index.d.ts +17 -0
  61. package/dist/components/molecules/pagination/Pagination.d.ts +22 -26
  62. package/dist/components/molecules/pagination/index.d.ts +1 -1
  63. package/dist/components/molecules/searchInput/SearchInput.d.ts +34 -0
  64. package/dist/components/molecules/searchInput/filter/FilterPopover.d.ts +16 -0
  65. package/dist/components/molecules/searchInput/filter/index.d.ts +17 -0
  66. package/dist/components/molecules/searchInput/index.d.ts +1 -0
  67. package/dist/components/molecules/table/Colgroup.d.ts +9 -9
  68. package/dist/components/molecules/table/Table.d.ts +3 -3
  69. package/dist/components/molecules/table/body/BinButtonTd.d.ts +7 -0
  70. package/dist/components/molecules/table/body/ChartButtonTd.d.ts +8 -0
  71. package/dist/components/molecules/table/body/CheckboxTd.d.ts +6 -7
  72. package/dist/components/molecules/table/body/EmptyTr.d.ts +8 -0
  73. package/dist/components/molecules/table/body/KebabMenuTd.d.ts +7 -7
  74. package/dist/components/molecules/table/body/RadioTd.d.ts +6 -0
  75. package/dist/components/molecules/table/body/Tr.d.ts +7 -0
  76. package/dist/components/molecules/table/body/index.d.ts +7 -0
  77. package/dist/components/molecules/table/header/FilterButtonsTh.d.ts +7 -0
  78. package/dist/components/molecules/table/header/FilterTh.d.ts +8 -0
  79. package/dist/components/molecules/table/header/SortableColumn.d.ts +15 -0
  80. package/dist/components/molecules/table/header/index.d.ts +17 -0
  81. package/dist/components/molecules/table/index.d.ts +1 -1
  82. package/dist/components/molecules/table/types.d.ts +125 -92
  83. package/dist/components/molecules/toast/Details.d.ts +6 -0
  84. package/dist/components/molecules/toast/Toast.d.ts +31 -0
  85. package/dist/components/molecules/toast/ToastContext.d.ts +15 -0
  86. package/dist/components/molecules/toast/ToastStyle.d.ts +18 -0
  87. package/dist/components/molecules/toast/index.d.ts +1 -0
  88. package/dist/components/molecules/toast/types.d.ts +4 -0
  89. package/dist/components/styleProvider/StyleProvider.d.ts +10 -10
  90. package/dist/components/styleProvider/index.d.ts +1 -1
  91. package/dist/enums/color.d.ts +14 -12
  92. package/dist/enums/direction.d.ts +2 -2
  93. package/dist/enums/gap.d.ts +4 -2
  94. package/dist/enums/size.d.ts +8 -10
  95. package/dist/enums/type.d.ts +4 -4
  96. package/dist/enums/variant.d.ts +8 -6
  97. package/dist/hooks/useButtonState.d.ts +16 -16
  98. package/dist/hooks/useColor.d.ts +4 -4
  99. package/dist/hooks/useCombineRef.d.ts +11 -11
  100. package/dist/hooks/useCreatePortal.d.ts +7 -7
  101. package/dist/hooks/useId.d.ts +7 -7
  102. package/dist/index.d.ts +22 -14
  103. package/dist/index.js +89488 -4293
  104. package/dist/utils/copy.d.ts +6 -0
  105. package/dist/utils/format.d.ts +2 -2
  106. package/dist/utils/highlight.d.ts +1 -3
  107. package/package.json +74 -70
  108. package/dist/components/molecules/dropdown/Menu.d.ts +0 -19
  109. package/dist/components/molecules/dropdown/toggles/Button.d.ts +0 -24
  110. package/dist/components/molecules/dropdown/toggles/Clear.d.ts +0 -8
  111. package/dist/components/molecules/dropdown/toggles/Input.d.ts +0 -24
  112. package/dist/components/molecules/table/body/ExpandingRow.d.ts +0 -9
  113. package/dist/components/molecules/table/body/TBody.d.ts +0 -28
  114. package/dist/components/molecules/table/body/TBodyEmptyContent.d.ts +0 -14
  115. package/dist/components/molecules/table/header/THead.d.ts +0 -12
@@ -0,0 +1,7 @@
1
+ {
2
+ "permissions": {
3
+ "allow": [
4
+ "Bash(cat:*)"
5
+ ]
6
+ }
7
+ }
@@ -0,0 +1,13 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="WEB_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/.tmp" />
6
+ <excludeFolder url="file://$MODULE_DIR$/temp" />
7
+ <excludeFolder url="file://$MODULE_DIR$/tmp" />
8
+ <excludeFolder url="file://$MODULE_DIR$/src/assets" />
9
+ </content>
10
+ <orderEntry type="inheritedJdk" />
11
+ <orderEntry type="sourceFolder" forTests="false" />
12
+ </component>
13
+ </module>
@@ -0,0 +1,77 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <code_scheme name="Project" version="173">
3
+ <HTMLCodeStyleSettings>
4
+ <option name="HTML_SPACE_INSIDE_EMPTY_TAG" value="true" />
5
+ </HTMLCodeStyleSettings>
6
+ <JSCodeStyleSettings version="0">
7
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
8
+ <option name="USE_DOUBLE_QUOTES" value="false" />
9
+ <option name="FORCE_QUOTE_STYlE" value="true" />
10
+ <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
11
+ <option name="VAR_DECLARATION_WRAP" value="2" />
12
+ <option name="OBJECT_LITERAL_WRAP" value="2" />
13
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
14
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
15
+ </JSCodeStyleSettings>
16
+ <TypeScriptCodeStyleSettings version="0">
17
+ <option name="FORCE_SEMICOLON_STYLE" value="true" />
18
+ <option name="USE_DOUBLE_QUOTES" value="false" />
19
+ <option name="FORCE_QUOTE_STYlE" value="true" />
20
+ <option name="ENFORCE_TRAILING_COMMA" value="WhenMultiline" />
21
+ <option name="VAR_DECLARATION_WRAP" value="2" />
22
+ <option name="OBJECT_LITERAL_WRAP" value="2" />
23
+ <option name="SPACES_WITHIN_OBJECT_LITERAL_BRACES" value="true" />
24
+ <option name="SPACES_WITHIN_IMPORTS" value="true" />
25
+ </TypeScriptCodeStyleSettings>
26
+ <VueCodeStyleSettings>
27
+ <option name="INTERPOLATION_NEW_LINE_AFTER_START_DELIMITER" value="false" />
28
+ <option name="INTERPOLATION_NEW_LINE_BEFORE_END_DELIMITER" value="false" />
29
+ </VueCodeStyleSettings>
30
+ <codeStyleSettings language="HTML">
31
+ <option name="SOFT_MARGINS" value="80" />
32
+ <indentOptions>
33
+ <option name="INDENT_SIZE" value="2" />
34
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
35
+ <option name="TAB_SIZE" value="2" />
36
+ </indentOptions>
37
+ </codeStyleSettings>
38
+ <codeStyleSettings language="JavaScript">
39
+ <option name="RIGHT_MARGIN" value="100" />
40
+ <option name="BLOCK_COMMENT_ADD_SPACE" value="true" />
41
+ <option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
42
+ <option name="METHOD_CALL_CHAIN_WRAP" value="2" />
43
+ <option name="IF_BRACE_FORCE" value="1" />
44
+ <option name="DOWHILE_BRACE_FORCE" value="1" />
45
+ <option name="WHILE_BRACE_FORCE" value="1" />
46
+ <option name="FOR_BRACE_FORCE" value="1" />
47
+ <option name="SOFT_MARGINS" value="80" />
48
+ <indentOptions>
49
+ <option name="INDENT_SIZE" value="2" />
50
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
51
+ <option name="TAB_SIZE" value="2" />
52
+ </indentOptions>
53
+ </codeStyleSettings>
54
+ <codeStyleSettings language="TypeScript">
55
+ <option name="RIGHT_MARGIN" value="100" />
56
+ <option name="BLOCK_COMMENT_ADD_SPACE" value="true" />
57
+ <option name="KEEP_BLANK_LINES_IN_CODE" value="1" />
58
+ <option name="METHOD_CALL_CHAIN_WRAP" value="2" />
59
+ <option name="IF_BRACE_FORCE" value="1" />
60
+ <option name="DOWHILE_BRACE_FORCE" value="1" />
61
+ <option name="WHILE_BRACE_FORCE" value="1" />
62
+ <option name="FOR_BRACE_FORCE" value="1" />
63
+ <option name="SOFT_MARGINS" value="80" />
64
+ <indentOptions>
65
+ <option name="INDENT_SIZE" value="2" />
66
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
67
+ <option name="TAB_SIZE" value="2" />
68
+ </indentOptions>
69
+ </codeStyleSettings>
70
+ <codeStyleSettings language="Vue">
71
+ <option name="SOFT_MARGINS" value="80" />
72
+ <indentOptions>
73
+ <option name="CONTINUATION_INDENT_SIZE" value="2" />
74
+ </indentOptions>
75
+ </codeStyleSettings>
76
+ </code_scheme>
77
+ </component>
@@ -0,0 +1,5 @@
1
+ <component name="ProjectCodeStyleConfiguration">
2
+ <state>
3
+ <option name="USE_PER_PROJECT_SETTINGS" value="true" />
4
+ </state>
5
+ </component>
@@ -0,0 +1,94 @@
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="Eslint" enabled="true" level="WARNING" enabled_by_default="true" />
5
+ <inspection_tool class="PyInterpreterInspection" enabled="false" level="WARNING" enabled_by_default="false" />
6
+ <inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
7
+ <option name="ignoredPackages">
8
+ <value>
9
+ <list size="79">
10
+ <item index="0" class="java.lang.String" itemvalue="Automat" />
11
+ <item index="1" class="java.lang.String" itemvalue="Babel" />
12
+ <item index="2" class="java.lang.String" itemvalue="PyYAML" />
13
+ <item index="3" class="java.lang.String" itemvalue="texttable" />
14
+ <item index="4" class="java.lang.String" itemvalue="ufw" />
15
+ <item index="5" class="java.lang.String" itemvalue="python-dotenv" />
16
+ <item index="6" class="java.lang.String" itemvalue="MarkupSafe" />
17
+ <item index="7" class="java.lang.String" itemvalue="constantly" />
18
+ <item index="8" class="java.lang.String" itemvalue="PyGObject" />
19
+ <item index="9" class="java.lang.String" itemvalue="docker-compose" />
20
+ <item index="10" class="java.lang.String" itemvalue="distro-info" />
21
+ <item index="11" class="java.lang.String" itemvalue="pyasn1-modules" />
22
+ <item index="12" class="java.lang.String" itemvalue="python-magic" />
23
+ <item index="13" class="java.lang.String" itemvalue="systemd-python" />
24
+ <item index="14" class="java.lang.String" itemvalue="docopt" />
25
+ <item index="15" class="java.lang.String" itemvalue="filelock" />
26
+ <item index="16" class="java.lang.String" itemvalue="sos" />
27
+ <item index="17" class="java.lang.String" itemvalue="certifi" />
28
+ <item index="18" class="java.lang.String" itemvalue="dockerpty" />
29
+ <item index="19" class="java.lang.String" itemvalue="oauthlib" />
30
+ <item index="20" class="java.lang.String" itemvalue="pyparsing" />
31
+ <item index="21" class="java.lang.String" itemvalue="unattended-upgrades" />
32
+ <item index="22" class="java.lang.String" itemvalue="jsonschema" />
33
+ <item index="23" class="java.lang.String" itemvalue="hyperlink" />
34
+ <item index="24" class="java.lang.String" itemvalue="service-identity" />
35
+ <item index="25" class="java.lang.String" itemvalue="lazr.restfulclient" />
36
+ <item index="26" class="java.lang.String" itemvalue="cryptography" />
37
+ <item index="27" class="java.lang.String" itemvalue="zope.interface" />
38
+ <item index="28" class="java.lang.String" itemvalue="pexpect" />
39
+ <item index="29" class="java.lang.String" itemvalue="lazr.uri" />
40
+ <item index="30" class="java.lang.String" itemvalue="python-apt" />
41
+ <item index="31" class="java.lang.String" itemvalue="SecretStorage" />
42
+ <item index="32" class="java.lang.String" itemvalue="click" />
43
+ <item index="33" class="java.lang.String" itemvalue="ubuntu-advantage-tools" />
44
+ <item index="34" class="java.lang.String" itemvalue="attrs" />
45
+ <item index="35" class="java.lang.String" itemvalue="bcrypt" />
46
+ <item index="36" class="java.lang.String" itemvalue="ssh-import-id" />
47
+ <item index="37" class="java.lang.String" itemvalue="platformdirs" />
48
+ <item index="38" class="java.lang.String" itemvalue="virtualenv" />
49
+ <item index="39" class="java.lang.String" itemvalue="distlib" />
50
+ <item index="40" class="java.lang.String" itemvalue="jsonpatch" />
51
+ <item index="41" class="java.lang.String" itemvalue="idna" />
52
+ <item index="42" class="java.lang.String" itemvalue="distro" />
53
+ <item index="43" class="java.lang.String" itemvalue="PyJWT" />
54
+ <item index="44" class="java.lang.String" itemvalue="netifaces" />
55
+ <item index="45" class="java.lang.String" itemvalue="ptyprocess" />
56
+ <item index="46" class="java.lang.String" itemvalue="more-itertools" />
57
+ <item index="47" class="java.lang.String" itemvalue="httplib2" />
58
+ <item index="48" class="java.lang.String" itemvalue="pyasn1" />
59
+ <item index="49" class="java.lang.String" itemvalue="requests" />
60
+ <item index="50" class="java.lang.String" itemvalue="wadllib" />
61
+ <item index="51" class="java.lang.String" itemvalue="importlib-metadata" />
62
+ <item index="52" class="java.lang.String" itemvalue="jeepney" />
63
+ <item index="53" class="java.lang.String" itemvalue="Jinja2" />
64
+ <item index="54" class="java.lang.String" itemvalue="python-debian" />
65
+ <item index="55" class="java.lang.String" itemvalue="websocket-client" />
66
+ <item index="56" class="java.lang.String" itemvalue="docker" />
67
+ <item index="57" class="java.lang.String" itemvalue="pyrsistent" />
68
+ <item index="58" class="java.lang.String" itemvalue="pyOpenSSL" />
69
+ <item index="59" class="java.lang.String" itemvalue="launchpadlib" />
70
+ <item index="60" class="java.lang.String" itemvalue="zipp" />
71
+ <item index="61" class="java.lang.String" itemvalue="cloud-init" />
72
+ <item index="62" class="java.lang.String" itemvalue="urllib3" />
73
+ <item index="63" class="java.lang.String" itemvalue="blinker" />
74
+ <item index="64" class="java.lang.String" itemvalue="ubuntu-drivers-common" />
75
+ <item index="65" class="java.lang.String" itemvalue="six" />
76
+ <item index="66" class="java.lang.String" itemvalue="xkit" />
77
+ <item index="67" class="java.lang.String" itemvalue="jsonpointer" />
78
+ <item index="68" class="java.lang.String" itemvalue="PyHamcrest" />
79
+ <item index="69" class="java.lang.String" itemvalue="pyserial" />
80
+ <item index="70" class="java.lang.String" itemvalue="incremental" />
81
+ <item index="71" class="java.lang.String" itemvalue="chardet" />
82
+ <item index="72" class="java.lang.String" itemvalue="colorama" />
83
+ <item index="73" class="java.lang.String" itemvalue="configobj" />
84
+ <item index="74" class="java.lang.String" itemvalue="dbus-python" />
85
+ <item index="75" class="java.lang.String" itemvalue="command-not-found" />
86
+ <item index="76" class="java.lang.String" itemvalue="pytz" />
87
+ <item index="77" class="java.lang.String" itemvalue="keyring" />
88
+ <item index="78" class="java.lang.String" itemvalue="Twisted" />
89
+ </list>
90
+ </value>
91
+ </option>
92
+ </inspection_tool>
93
+ </profile>
94
+ </component>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="EslintConfiguration">
4
+ <option name="fix-on-save" value="true" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,12 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="MaterialThemeProjectNewConfig">
4
+ <option name="metadata">
5
+ <MTProjectMetadataState>
6
+ <option name="migrated" value="true" />
7
+ <option name="pristineConfig" value="false" />
8
+ <option name="userId" value="-1de6b85:18f936e3845:-7ffe" />
9
+ </MTProjectMetadataState>
10
+ </option>
11
+ </component>
12
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/MaruDesign2.iml" filepath="$PROJECT_DIR$/.idea/MaruDesign2.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="PrettierConfiguration">
4
+ <option name="myConfigurationMode" value="MANUAL" />
5
+ <option name="myRunOnSave" value="true" />
6
+ <option name="myFilesPattern" value="**/*.{js,ts,jsx,tsx,vue,astro,scss,css}" />
7
+ </component>
8
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectTasksOptions" suppressed-tasks="SCSS" />
4
+ </project>
package/CHANGELOG.md ADDED
@@ -0,0 +1,9 @@
1
+ # Changelog
2
+
3
+ ## 2.4.3 (2024-05-10)
4
+
5
+
6
+ ### Features
7
+
8
+ * add release-please.yml ([21d18be](https://github.com/42maru-ai/maru-design2/commit/21d18bef2f30e759b9bbd7d7c80ceb81d9b0c1eb))
9
+ * update release-please.yml ([9b36847](https://github.com/42maru-ai/maru-design2/commit/9b36847339d53de4a0a31b37641f7ccef97aa985))
@@ -1,30 +1,33 @@
1
- import React from 'react';
2
- import { TColor } from '../../../enums/color';
3
- import { TButtonSize } from '../../../enums/size';
4
- import { TButtonVariant } from '../../../enums/variant';
5
- import { IconProps } from '../icon/Icon';
6
- import './button.scss';
7
- export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
8
- children?: React.ReactNode;
9
- /**
10
- * ['primary', 'secondary', 'positive', 'warning', 'danger']. (@v1 variant)
11
- */
12
- color?: TColor;
13
- /**
14
- * ['small', 'normal', 'large']. (@v1 kind)
15
- */
16
- size?: TButtonSize;
17
- /**
18
- * ['default', 'default-light', 'outline', 'text', 'color-on-focus']. (@v1 kind)
19
- */
20
- variant?: TButtonVariant;
21
- /**
22
- * 컴포넌트 시작점에 위치시킬 아이콘 (@v1 icon)
23
- */
24
- startIcon?: IconProps;
25
- /**
26
- * 컴포넌트 끝점에 위치시킬 아이콘 (@v1 icon)
27
- */
28
- endIcon?: IconProps;
29
- }
30
- export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
1
+ import React from 'react';
2
+ import { TColor } from '../../../enums/color';
3
+ import { TButtonSize } from '../../../enums/size';
4
+ import { TButtonVariant } from '../../../enums/variant';
5
+ import { IconProps } from '../icon';
6
+ import './button.scss';
7
+ export interface ButtonProps extends React.ButtonHTMLAttributes<HTMLButtonElement> {
8
+ /**
9
+ * 자식 노드
10
+ */
11
+ children?: React.ReactNode;
12
+ /**
13
+ * 색깔 (@v1 variant)
14
+ */
15
+ color?: TColor;
16
+ /**
17
+ * 사이즈 (@v1 kind)
18
+ */
19
+ size?: TButtonSize;
20
+ /**
21
+ * 모양 (@v1 kind)
22
+ */
23
+ variant?: TButtonVariant;
24
+ /**
25
+ * 컴포넌트 시작점에 위치시킬 아이콘 (@v1 icon)
26
+ */
27
+ startIcon?: IconProps;
28
+ /**
29
+ * 컴포넌트 끝점에 위치시킬 아이콘 (@v1 icon)
30
+ */
31
+ endIcon?: IconProps;
32
+ }
33
+ export declare const Button: React.ForwardRefExoticComponent<ButtonProps & React.RefAttributes<HTMLButtonElement>>;
@@ -1 +1 @@
1
- export * from './Button';
1
+ export * from './Button';
@@ -1,21 +1,21 @@
1
- import React from 'react';
2
- import { TGap } from '../../../enums/gap';
3
- import { TCheckboxSize } from '../../../enums/size';
4
- import './checkbox.scss';
5
- export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'checked' | 'type'> {
6
- checked?: boolean;
7
- /**
8
- * primary, secondary, positive, warning, danger + rgb. (@v1 variant)
9
- */
10
- color?: string;
11
- /**
12
- * 컴포넌트와 라벨 사이의 거리. ['8px', '4px']
13
- */
14
- gap?: TGap;
15
- label?: string;
16
- /**
17
- * [16, 18, 24]
18
- */
19
- size?: TCheckboxSize;
20
- }
21
- export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
1
+ import React from 'react';
2
+ import { TGap } from '../../../enums/gap';
3
+ import { TCheckboxSize } from '../../../enums/size';
4
+ import './checkbox.scss';
5
+ export interface CheckboxProps extends Omit<React.InputHTMLAttributes<HTMLInputElement>, 'checked' | 'type'> {
6
+ checked?: boolean;
7
+ label?: string;
8
+ /**
9
+ * (@v1 variant)
10
+ */
11
+ color?: string;
12
+ /**
13
+ * 컴포넌트와 라벨 사이의 거리
14
+ */
15
+ gap?: TGap;
16
+ /**
17
+ * [16, 18, 24]
18
+ */
19
+ size?: TCheckboxSize;
20
+ }
21
+ export declare const Checkbox: React.ForwardRefExoticComponent<CheckboxProps & React.RefAttributes<HTMLInputElement>>;
@@ -1 +1 @@
1
- export * from './Checkbox';
1
+ export * from './Checkbox';
@@ -1,25 +1,29 @@
1
- import React from 'react';
2
- import { TColor } from '../../../enums/color';
3
- import { TChipSize } from '../../../enums/size';
4
- import { TChipVariant } from '../../../enums/variant';
5
- import './chip.scss';
6
- export interface ChipProps {
7
- /**
8
- * 컴포넌트에 들어갈 내용. number인 경우 천의 자리마다 컴마(,) 표시됨. [React.ReactNode | string | number].
9
- */
10
- children: React.ReactNode | string | number;
11
- className?: string;
12
- /**
13
- * ['primary', 'secondary', 'positive', 'warning', 'danger']. (@v1 variant)
14
- */
15
- color?: TColor;
16
- /**
17
- * ['small', 'normal']. (@v1 kind)
18
- */
19
- size?: TChipSize;
20
- /**
21
- * ['default', 'outline', 'dot']. (@v1 kind)
22
- */
23
- variant?: TChipVariant;
24
- }
25
- export declare function Chip({ children, className, color, size, variant, }: ChipProps): import("react/jsx-runtime").JSX.Element;
1
+ import React from 'react';
2
+ import { TColor } from '../../../enums/color';
3
+ import { TChipSize } from '../../../enums/size';
4
+ import { TChipVariant } from '../../../enums/variant';
5
+ import './chip.scss';
6
+ export interface ChipProps {
7
+ /**
8
+ * 컴포넌트에 들어갈 내용. number인 경우 천의 자리마다 컴마(,) 표시됨
9
+ */
10
+ children: React.ReactNode | string | number;
11
+ /**
12
+ * (@v1 variant)
13
+ */
14
+ color?: TColor;
15
+ /**
16
+ * (@v1 kind)
17
+ */
18
+ size?: TChipSize;
19
+ /**
20
+ * (@v1 kind)
21
+ */
22
+ variant?: TChipVariant;
23
+ className?: string;
24
+ /**
25
+ * 설정하면 X아이콘 생기며, 해당 아이콘에 클릭 이벤트를 할당함.
26
+ */
27
+ onXIconClick?: () => void;
28
+ }
29
+ export declare function Chip({ children, color, size, variant, className, onXIconClick, }: ChipProps): import("react/jsx-runtime").JSX.Element;
@@ -1 +1 @@
1
- export * from './Chip';
1
+ export * from './Chip';
@@ -0,0 +1,7 @@
1
+ import 'highlight.js/styles/a11y-light.css';
2
+ import './code.scss';
3
+ export interface CodeProps {
4
+ value: string;
5
+ copyable?: boolean;
6
+ }
7
+ export declare function Code({ value, copyable }: CodeProps): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1 @@
1
+ export * from './Code';
@@ -1,17 +1,16 @@
1
- import { TIconSize } from '../../../enums/size';
2
- import { TIcons } from './iconmap';
3
- export interface IconProps {
4
- /**
5
- * 이름 뒤에 Thin이 있다면 Stroke 1.5이므로 14, 16, 18 사이즈 권장. (@v1 iconName)
6
- */
7
- name: TIcons;
8
- /**
9
- * primary, secondary, positive, warning, danger + rgb. (@v1 fill)
10
- */
11
- color?: string;
12
- /**
13
- * [14, 16, 18, 20, 24, 32, 40, 48]. (@v1 width, height)
14
- */
15
- size?: TIconSize;
16
- }
17
- export declare function Icon({ name, color, size }: IconProps): import("react/jsx-runtime").JSX.Element;
1
+ import { TIcons } from './iconmap';
2
+ export interface IconProps {
3
+ /**
4
+ * (@v1 iconName)
5
+ */
6
+ name: TIcons;
7
+ /**
8
+ * primary, secondary, positive, warning, danger + rgb. (@v1 fill)
9
+ */
10
+ color?: string;
11
+ /**
12
+ * primary, secondary, positive, warning, danger + rgb. (@v1 fill)
13
+ */
14
+ hoverColor?: string;
15
+ }
16
+ export declare function Icon({ name, color, hoverColor }: IconProps): import("react/jsx-runtime").JSX.Element;