@musecat/uikit 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (180) hide show
  1. package/LICENSE +9 -0
  2. package/README.md +51 -0
  3. package/index.ts +78 -0
  4. package/package.json +103 -0
  5. package/packages/Components/Box/Box.tsx +173 -0
  6. package/packages/Components/Box/Box.types.ts +48 -0
  7. package/packages/Components/Button/Button.tsx +275 -0
  8. package/packages/Components/Button/Button.types.ts +44 -0
  9. package/packages/Components/Card/Card.default.tsx +180 -0
  10. package/packages/Components/Card/Card.foldable.tsx +383 -0
  11. package/packages/Components/Card/Card.module.scss +23 -0
  12. package/packages/Components/Card/Card.tsx +8 -0
  13. package/packages/Components/Card/Card.types.ts +91 -0
  14. package/packages/Components/Card/Card.utils.ts +66 -0
  15. package/packages/Components/Checkbox/Checkbox.module.scss +11 -0
  16. package/packages/Components/Checkbox/Checkbox.tsx +104 -0
  17. package/packages/Components/Checkbox/Checkbox.types.ts +24 -0
  18. package/packages/Components/CodeBox/CodeBox.copy.tsx +43 -0
  19. package/packages/Components/CodeBox/CodeBox.module.scss +72 -0
  20. package/packages/Components/CodeBox/CodeBox.tsx +91 -0
  21. package/packages/Components/CodeBox/CodeBox.types.ts +17 -0
  22. package/packages/Components/ContextMenu/ContextMenu.module.scss +8 -0
  23. package/packages/Components/ContextMenu/ContextMenu.options.tsx +126 -0
  24. package/packages/Components/ContextMenu/ContextMenu.tsx +381 -0
  25. package/packages/Components/ContextMenu/ContextMenu.types.ts +46 -0
  26. package/packages/Components/ContributionGraph/ContributionGraph.module.scss +42 -0
  27. package/packages/Components/ContributionGraph/ContributionGraph.tsx +454 -0
  28. package/packages/Components/ContributionGraph/ContributionGraph.types.ts +27 -0
  29. package/packages/Components/DatePicker/DatePicker.calendar.tsx +161 -0
  30. package/packages/Components/DatePicker/DatePicker.core.tsx +582 -0
  31. package/packages/Components/DatePicker/DatePicker.module.scss +26 -0
  32. package/packages/Components/DatePicker/DatePicker.tsx +786 -0
  33. package/packages/Components/DatePicker/DatePicker.types.ts +36 -0
  34. package/packages/Components/DatePicker/DatePicker.utils.ts +80 -0
  35. package/packages/Components/DatePicker/hooks/useCalendar.ts +61 -0
  36. package/packages/Components/DatePicker/hooks/useSelection.ts +208 -0
  37. package/packages/Components/Divider/Divider.tsx +46 -0
  38. package/packages/Components/Divider/Divider.types.ts +12 -0
  39. package/packages/Components/Header/Header.module.scss +74 -0
  40. package/packages/Components/Header/Header.tsx +47 -0
  41. package/packages/Components/Header/Header.types.ts +8 -0
  42. package/packages/Components/Icon/Icon.group.tsx +122 -0
  43. package/packages/Components/Icon/Icon.group.types.ts +20 -0
  44. package/packages/Components/Icon/Icon.tsx +341 -0
  45. package/packages/Components/Icon/Icon.types.ts +59 -0
  46. package/packages/Components/Icon/SVG/data.tsx +232 -0
  47. package/packages/Components/Input/Input.module.scss +5 -0
  48. package/packages/Components/Input/Input.tsx +87 -0
  49. package/packages/Components/Input/Input.types.ts +14 -0
  50. package/packages/Components/Label/Label.module.scss +19 -0
  51. package/packages/Components/Label/Label.tsx +115 -0
  52. package/packages/Components/Label/Label.types.ts +28 -0
  53. package/packages/Components/Layout/Layout.docs.module.scss +42 -0
  54. package/packages/Components/Layout/Layout.docs.tsx +150 -0
  55. package/packages/Components/Layout/Layout.docs.types.ts +18 -0
  56. package/packages/Components/Layout/Layout.module.scss +91 -0
  57. package/packages/Components/Layout/Layout.tsx +306 -0
  58. package/packages/Components/Layout/Layout.types.ts +71 -0
  59. package/packages/Components/Maps/OSM/MapOSM.module.scss +11 -0
  60. package/packages/Components/Maps/OSM/MapOSM.shared.ts +121 -0
  61. package/packages/Components/Maps/OSM/MapOSM.tsx +279 -0
  62. package/packages/Components/Maps/OSM/MapOSM.types.ts +18 -0
  63. package/packages/Components/Nav/Nav.module.scss +137 -0
  64. package/packages/Components/Nav/Nav.tsx +304 -0
  65. package/packages/Components/Nav/Nav.types.ts +32 -0
  66. package/packages/Components/Nav/hooks/useNavDrag.ts +374 -0
  67. package/packages/Components/Nav/hooks/useNavIndicator.ts +137 -0
  68. package/packages/Components/Pagination/Pagination.tsx +254 -0
  69. package/packages/Components/Pagination/Pagination.types.ts +18 -0
  70. package/packages/Components/Pill/Pill.tsx +127 -0
  71. package/packages/Components/Pill/Pill.types.ts +33 -0
  72. package/packages/Components/Profile/Profile.shared.ts +74 -0
  73. package/packages/Components/Profile/Profile.tsx +382 -0
  74. package/packages/Components/Profile/Profile.types.ts +55 -0
  75. package/packages/Components/Progress/Progress.module.scss +15 -0
  76. package/packages/Components/Progress/Progress.tsx +88 -0
  77. package/packages/Components/Progress/Progress.types.ts +22 -0
  78. package/packages/Components/Radio/Radio.module.scss +11 -0
  79. package/packages/Components/Radio/Radio.tsx +121 -0
  80. package/packages/Components/Radio/Radio.types.ts +20 -0
  81. package/packages/Components/Select/Select.keyboard.tsx +76 -0
  82. package/packages/Components/Select/Select.trigger.tsx +88 -0
  83. package/packages/Components/Select/Select.tsx +11 -0
  84. package/packages/Components/Select/Select.types.ts +38 -0
  85. package/packages/Components/Select/Select.utils.ts +84 -0
  86. package/packages/Components/Select/hooks/useSelectNavigation.ts +461 -0
  87. package/packages/Components/Select/hooks/useSelectSelection.ts +142 -0
  88. package/packages/Components/Select/hooks/useSelectState.ts +314 -0
  89. package/packages/Components/Select/select.control.tsx +228 -0
  90. package/packages/Components/Select/select.inner.tsx +312 -0
  91. package/packages/Components/Skeleton/Skeleton.tsx +30 -0
  92. package/packages/Components/Skeleton/Skeleton.types.ts +12 -0
  93. package/packages/Components/Spinner/Spinner.module.scss +78 -0
  94. package/packages/Components/Spinner/Spinner.tsx +125 -0
  95. package/packages/Components/Spinner/Spinner.types.ts +19 -0
  96. package/packages/Components/Text/Text.module.scss +7 -0
  97. package/packages/Components/Text/Text.tsx +49 -0
  98. package/packages/Components/Text/Text.types.ts +33 -0
  99. package/packages/Components/TimePicker/TimePicker.core.tsx +448 -0
  100. package/packages/Components/TimePicker/TimePicker.module.scss +30 -0
  101. package/packages/Components/TimePicker/TimePicker.tsx +511 -0
  102. package/packages/Components/TimePicker/TimePicker.types.ts +22 -0
  103. package/packages/Components/Timeline/Timeline.tsx +111 -0
  104. package/packages/Components/Timeline/Timeline.types.ts +23 -0
  105. package/packages/Components/Title/Title.tsx +305 -0
  106. package/packages/Components/Title/Title.types.ts +64 -0
  107. package/packages/Components/Toggle/Toggle.module.scss +32 -0
  108. package/packages/Components/Toggle/Toggle.tsx +272 -0
  109. package/packages/Components/Toggle/Toggle.types.ts +17 -0
  110. package/packages/Components/Tooltip/Tooltip.module.scss +44 -0
  111. package/packages/Components/Tooltip/Tooltip.tsx +340 -0
  112. package/packages/Components/Tooltip/Tooltip.types.ts +38 -0
  113. package/packages/Frameworks/Dialog/Dialog.background.tsx +88 -0
  114. package/packages/Frameworks/Dialog/Dialog.boot.tsx +32 -0
  115. package/packages/Frameworks/Dialog/Dialog.store.ts +199 -0
  116. package/packages/Frameworks/Dialog/Dialog.tsx +185 -0
  117. package/packages/Frameworks/Dialog/Dialog.types.ts +264 -0
  118. package/packages/Frameworks/Dialog/Dialog.utils.ts +22 -0
  119. package/packages/Frameworks/Dialog/contents/Dialog.footer.tsx +79 -0
  120. package/packages/Frameworks/Dialog/contents/Dialog.funnel.tsx +260 -0
  121. package/packages/Frameworks/Dialog/contents/Dialog.header.tsx +137 -0
  122. package/packages/Frameworks/Dialog/hooks/useDialogPosition.ts +298 -0
  123. package/packages/Frameworks/Dialog/hooks/useSheetDrag.ts +325 -0
  124. package/packages/Frameworks/Dialog/hooks/useSheetGeometry.ts +201 -0
  125. package/packages/Frameworks/Dialog/hooks/useSheetProgressive.ts +98 -0
  126. package/packages/Frameworks/Dialog/renderers/renderModal.tsx +228 -0
  127. package/packages/Frameworks/Dialog/renderers/renderPopover.tsx +220 -0
  128. package/packages/Frameworks/Dialog/renderers/renderSheet.tsx +571 -0
  129. package/packages/Frameworks/EdgeEffect/EdgeEffect.tsx +52 -0
  130. package/packages/Frameworks/EdgeEffect/EdgeEffect.types.ts +5 -0
  131. package/packages/Frameworks/Motion/Motion.presets.ts +49 -0
  132. package/packages/Frameworks/Pressable/Pressable.module.scss +19 -0
  133. package/packages/Frameworks/Pressable/Pressable.tsx +651 -0
  134. package/packages/Frameworks/Pressable/Pressable.types.ts +73 -0
  135. package/packages/Frameworks/Squircle/Squircle.tsx +263 -0
  136. package/packages/Frameworks/Squircle/Squircle.types.ts +15 -0
  137. package/packages/Frameworks/Theme/Radius.types.ts +55 -0
  138. package/packages/Frameworks/Theme/Theme.types.ts +325 -0
  139. package/packages/Frameworks/Toaster/Toaster.boot.tsx +47 -0
  140. package/packages/Frameworks/Toaster/Toaster.module.scss +168 -0
  141. package/packages/Frameworks/Toaster/Toaster.types.ts +13 -0
  142. package/packages/Frameworks/View/DNDView/DNDView.module.scss +8 -0
  143. package/packages/Frameworks/View/DNDView/DNDView.tsx +470 -0
  144. package/packages/Frameworks/View/DNDView/DNDView.types.ts +61 -0
  145. package/packages/Frameworks/View/HScrollView/HScrollView.module.scss +59 -0
  146. package/packages/Frameworks/View/HScrollView/HScrollView.tsx +386 -0
  147. package/packages/Frameworks/View/HScrollView/HScrollView.types.ts +46 -0
  148. package/packages/Frameworks/View/ImageView/Dialog/ImageDialog.counter.tsx +27 -0
  149. package/packages/Frameworks/View/ImageView/Dialog/ImageDialog.footer.tsx +76 -0
  150. package/packages/Frameworks/View/ImageView/Dialog/ImageDialog.header.tsx +49 -0
  151. package/packages/Frameworks/View/ImageView/Dialog/ImageDialog.list.tsx +74 -0
  152. package/packages/Frameworks/View/ImageView/Dialog/ImageDialog.slide.tsx +71 -0
  153. package/packages/Frameworks/View/ImageView/Dialog/ImageDialog.tsx +175 -0
  154. package/packages/Frameworks/View/ImageView/Image.controls.tsx +39 -0
  155. package/packages/Frameworks/View/ImageView/Image.hooks.ts +82 -0
  156. package/packages/Frameworks/View/ImageView/Image.module.scss +7 -0
  157. package/packages/Frameworks/View/ImageView/Image.tsx +375 -0
  158. package/packages/Frameworks/View/ImageView/Image.types.ts +71 -0
  159. package/packages/Frameworks/View/ImageView/Image.utils.ts +79 -0
  160. package/packages/Frameworks/View/View.module.scss +34 -0
  161. package/packages/Frameworks/View/View.tsx +200 -0
  162. package/packages/Frameworks/View/View.types.ts +36 -0
  163. package/packages/Frameworks/_shared/Padding.types.ts +52 -0
  164. package/packages/Frameworks/_shared/StopParentInteraction.tsx +45 -0
  165. package/packages/Frameworks/_shared/Wind.types.ts +17 -0
  166. package/packages/Frameworks/_shared/bodyScrollLock.ts +127 -0
  167. package/packages/Frameworks/_shared/layer.constants.ts +8 -0
  168. package/packages/Frameworks/_shared/normalize.ts +39 -0
  169. package/packages/Frameworks/_shared/sizing.ts +55 -0
  170. package/packages/Frameworks/_shared/useControllableState.ts +29 -0
  171. package/packages/Styles/_animation.scss +42 -0
  172. package/packages/Styles/_color.scss +131 -0
  173. package/packages/Styles/_font.scss +30 -0
  174. package/packages/Styles/_icon.scss +782 -0
  175. package/packages/Styles/_importer.scss +9 -0
  176. package/packages/Styles/_system.scss +69 -0
  177. package/packages/Styles/_textstyle.scss +111 -0
  178. package/packages/Styles/_theme.scss +452 -0
  179. package/packages/Styles/_viewport-global.scss +99 -0
  180. package/packages/Styles/_viewport.scss +108 -0
@@ -0,0 +1,131 @@
1
+ :root {
2
+ --color-pink-1: rgb(230, 114, 114);
3
+ --color-pink-2: rgb(226, 95, 95);
4
+ --color-pink-3: rgb(222, 78, 78);
5
+ --color-pink-4: rgb(220, 61, 61);
6
+ --color-pink-5: rgb(217, 43, 43);
7
+ --color-pink-6: rgb(203, 37, 37);
8
+ --color-red-1: rgb(255, 85, 85);
9
+ --color-red-2: rgb(255, 61, 61);
10
+ --color-red-3: rgb(255, 31, 31);
11
+ --color-red-4: rgb(255, 0, 0);
12
+ --color-red-5: rgb(224, 0, 0);
13
+ --color-red-6: rgb(194, 0, 0);
14
+ --color-brown-1: rgb(186, 145, 119);
15
+ --color-brown-2: rgb(178, 131, 102);
16
+ --color-brown-3: rgb(170, 118, 85);
17
+ --color-brown-4: rgb(153, 106, 77);
18
+ --color-brown-5: rgb(139, 96, 70);
19
+ --color-brown-6: rgb(126, 87, 63);
20
+ --color-orange-1: rgb(254, 180, 84);
21
+ --color-orange-2: rgb(254, 166, 52);
22
+ --color-orange-3: rgb(253, 153, 22);
23
+ --color-orange-4: rgb(243, 138, 2);
24
+ --color-orange-5: rgb(223, 127, 2);
25
+ --color-orange-6: rgb(208, 118, 1);
26
+ --color-yellow-1: rgb(255, 214, 64);
27
+ --color-yellow-2: rgb(255, 210, 46);
28
+ --color-yellow-3: rgb(255, 205, 26);
29
+ --color-yellow-4: rgb(255, 201, 5);
30
+ --color-yellow-5: rgb(240, 188, 0);
31
+ --color-yellow-6: rgb(224, 176, 0);
32
+ --color-green-1: rgb(98, 236, 107);
33
+ --color-green-2: rgb(73, 233, 84);
34
+ --color-green-3: rgb(46, 229, 58);
35
+ --color-green-4: rgb(27, 218, 39);
36
+ --color-green-5: rgb(23, 191, 34);
37
+ --color-green-6: rgb(20, 164, 30);
38
+ --color-mint-1: rgb(54, 224, 176);
39
+ --color-mint-2: rgb(39, 221, 170);
40
+ --color-mint-3: rgb(32, 207, 158);
41
+ --color-mint-4: rgb(30, 194, 148);
42
+ --color-mint-5: rgb(27, 177, 134);
43
+ --color-mint-6: rgb(25, 159, 121);
44
+ --color-cyan-1: rgb(24, 219, 245);
45
+ --color-cyan-2: rgb(10, 213, 240);
46
+ --color-cyan-3: rgb(10, 200, 225);
47
+ --color-cyan-4: rgb(9, 182, 205);
48
+ --color-cyan-5: rgb(8, 165, 186);
49
+ --color-cyan-6: rgb(7, 148, 166);
50
+ --color-blue-1: rgb(74, 156, 255);
51
+ --color-blue-2: rgb(51, 143, 255);
52
+ --color-blue-3: rgb(26, 129, 255);
53
+ --color-blue-4: rgb(0, 115, 255);
54
+ --color-blue-5: rgb(0, 103, 229);
55
+ --color-blue-6: rgb(0, 92, 204);
56
+ --color-indigo-1: rgb(95, 95, 228);
57
+ --color-indigo-2: rgb(76, 76, 225);
58
+ --color-indigo-3: rgb(59, 59, 222);
59
+ --color-indigo-4: rgb(41, 41, 219);
60
+ --color-indigo-5: rgb(35, 35, 205);
61
+ --color-indigo-6: rgb(32, 32, 188);
62
+ --color-purple-1: rgb(172, 116, 255);
63
+ --color-purple-2: rgb(157, 92, 255);
64
+ --color-purple-3: rgb(145, 71, 255);
65
+ --color-purple-4: rgb(133, 51, 255);
66
+ --color-purple-5: rgb(120, 31, 255);
67
+ --color-purple-6: rgb(108, 10, 255);
68
+ --color-magenta-1: rgb(249, 89, 255);
69
+ --color-magenta-2: rgb(249, 61, 255);
70
+ --color-magenta-3: rgb(248, 36, 255);
71
+ --color-magenta-4: rgb(247, 15, 255);
72
+ --color-magenta-5: rgb(237, 0, 245);
73
+ --color-magenta-6: rgb(217, 0, 224);
74
+ --color-base-light-1: rgb(255, 255, 255);
75
+ --color-base-light-2: rgb(245, 245, 245);
76
+ --color-base-light-3: rgb(235, 235, 235);
77
+ --color-base-light-4: rgb(224, 224, 224);
78
+ --color-base-light-5: rgb(214, 214, 214);
79
+ --color-base-light-6: rgb(204, 204, 204);
80
+ --color-background-system-light: rgb(242, 241, 246);
81
+ --color-background-modal-light: rgb(242, 241, 246);
82
+ --color-background-system-dark: rgb(0, 0, 0);
83
+ --color-background-modal-dark: rgb(0, 0, 0);
84
+ --color-base-dark-1: rgb(29, 29, 31);
85
+ --color-base-dark-2: rgb(39, 39, 42);
86
+ --color-base-dark-3: rgb(49, 49, 53);
87
+ --color-base-dark-4: rgb(59, 59, 63);
88
+ --color-base-dark-5: rgb(69, 69, 74);
89
+ --color-base-dark-6: rgb(79, 79, 84);
90
+ }
91
+
92
+ :root {
93
+ --color-text-base-light: var(--color-base-dark-1);
94
+ --color-icon-base-light: var(--color-base-dark-1);
95
+ --color-border-base-light: var(--color-base-dark-1);
96
+ --color-background-base-light: var(--color-background-system-light);
97
+
98
+ --color-text-base-dark: var(--color-base-light-4);
99
+ --color-icon-base-dark: var(--color-base-light-2);
100
+ --color-border-base-dark: var(--color-base-light-1);
101
+ --color-background-base-dark: var(--color-background-system-dark);
102
+ }
103
+
104
+ :root,
105
+ [data-color-mode="light"] {
106
+ color-scheme: light;
107
+
108
+ --color-text-base: var(--color-text-base-light);
109
+ --color-icon-base: var(--color-icon-base-light);
110
+ --color-border-base: var(--color-border-base-light);
111
+ --color-background-base: var(--color-background-base-light);
112
+
113
+ @for $level from 1 through 6 {
114
+ --color-base-#{$level}: var(--color-base-light-#{$level});
115
+ --color-base-reversed-#{$level}: var(--color-base-dark-#{$level});
116
+ }
117
+ }
118
+
119
+ [data-color-mode="dark"] {
120
+ color-scheme: dark;
121
+
122
+ --color-text-base: var(--color-text-base-dark);
123
+ --color-icon-base: var(--color-icon-base-dark);
124
+ --color-border-base: var(--color-border-base-dark);
125
+ --color-background-base: var(--color-background-base-dark);
126
+
127
+ @for $level from 1 through 6 {
128
+ --color-base-#{$level}: var(--color-base-dark-#{$level});
129
+ --color-base-reversed-#{$level}: var(--color-base-light-#{$level});
130
+ }
131
+ }
@@ -0,0 +1,30 @@
1
+ @import "https://cdn.jsdelivr.net/gh/TheTechclip/UIKit-Fonts@main/AstaSans/AstaSans.css";
2
+ @import "https://cdn.jsdelivr.net/gh/TheTechclip/UIKit-Fonts@main/MinIcon/MinIcon.css";
3
+ @import "https://cdn.jsdelivr.net/gh/toss/tossface/dist/tossface.css";
4
+ @import "https://cdn.jsdelivr.net/gh/TheTechclip/UIKit-Fonts@main/JetBrainsMono/JetBrainsMono.css";
5
+ @import "https://cdn.jsdelivr.net/gh/TheTechclip/UIKit-Fonts@main/SourceHanSerifKR/SourceHanSerifKR.css";
6
+ @import "https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css";
7
+
8
+ :root {
9
+ --font-size: 10px;
10
+ --font-emoji:
11
+ "Tossface", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
12
+ --font-monospace:
13
+ "JetBrains Mono", var(--font-emoji), "Asta Sans Variable", monospace !important;
14
+ --font-icon: "Min Icon VF", "Min Icon Brand" !important;
15
+ --font-sans-serif:
16
+ "Pretendard Variable", "Asta Sans Variable", blinkmacsystemfont, system-ui,
17
+ "Apple SD Gothic Neo", "Roboto", "Helvetica Neue", "Segoe UI",
18
+ "Noto Sans KR", "Malgun Gothic", var(--font-emoji), sans-serif;
19
+ --font-serif: "Source Han Serif KR", "Noto Serif KR", georgia, serif;
20
+ }
21
+
22
+ .FontSerif {
23
+ font-family: var(--font-serif) !important;
24
+ }
25
+
26
+ .FontCode,
27
+ code,
28
+ code * {
29
+ font-family: var(--font-monospace) !important;
30
+ }