@musecat/uikit 0.1.3 → 0.2.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 (173) hide show
  1. package/.agents/references/Components/Box.md +1 -1
  2. package/.agents/references/Components/Button.md +1 -1
  3. package/.agents/references/Components/Card.md +1 -1
  4. package/.agents/references/Components/Checkbox.md +1 -1
  5. package/.agents/references/Components/CodeBox.md +1 -1
  6. package/.agents/references/Components/ContextMenu.md +1 -1
  7. package/.agents/references/Components/ContributionGraph.md +1 -1
  8. package/.agents/references/Components/DatePicker.md +1 -1
  9. package/.agents/references/Components/Divider.md +1 -1
  10. package/.agents/references/Components/Header.md +3 -3
  11. package/.agents/references/Components/Icon.md +1 -1
  12. package/.agents/references/Components/Input.md +1 -1
  13. package/.agents/references/Components/Label.md +2 -2
  14. package/.agents/references/Components/Layout.md +2 -2
  15. package/.agents/references/Components/Maps.md +1 -1
  16. package/.agents/references/Components/Nav.md +1 -1
  17. package/.agents/references/Components/Pagination.md +1 -1
  18. package/.agents/references/Components/Pill.md +1 -1
  19. package/.agents/references/Components/Profile.md +1 -1
  20. package/.agents/references/Components/Progress.md +2 -2
  21. package/.agents/references/Components/Radio.md +2 -2
  22. package/.agents/references/Components/Select.md +1 -1
  23. package/.agents/references/Components/Skeleton.md +1 -1
  24. package/.agents/references/Components/Spinner.md +1 -1
  25. package/.agents/references/Components/Text.md +1 -1
  26. package/.agents/references/Components/TimePicker.md +1 -1
  27. package/.agents/references/Components/Timeline.md +2 -2
  28. package/.agents/references/Frameworks/DNDView.md +1 -1
  29. package/.agents/references/Frameworks/Dialog.md +2 -2
  30. package/.agents/references/Frameworks/EdgeEffect.md +2 -2
  31. package/.agents/references/Frameworks/HScrollView.md +2 -2
  32. package/.agents/references/Frameworks/ImageView.md +1 -1
  33. package/.agents/references/Frameworks/Motion.md +1 -1
  34. package/.agents/references/Frameworks/Pressable.md +1 -1
  35. package/.agents/references/Frameworks/Squircle.md +1 -1
  36. package/.agents/references/Frameworks/Theme.md +1 -1
  37. package/.agents/references/Frameworks/Toaster.md +2 -2
  38. package/.agents/references/Frameworks/View.md +1 -1
  39. package/.agents/references/Frameworks/_shared.md +3 -3
  40. package/README.md +25 -1
  41. package/global.d.ts +6 -0
  42. package/i18n/messages/en/uikit.json +50 -0
  43. package/i18n/messages/jp/uikit.json +50 -0
  44. package/i18n/messages/kr/uikit.json +50 -0
  45. package/i18n/request.ts +17 -0
  46. package/i18n/shared.ts +54 -0
  47. package/index.ts +86 -66
  48. package/package.json +33 -10
  49. package/packages/Components/Box/Box.tsx +7 -7
  50. package/packages/Components/Box/Box.types.ts +7 -7
  51. package/packages/Components/Button/Button.tsx +6 -6
  52. package/packages/Components/Button/Button.types.ts +6 -6
  53. package/packages/Components/Card/Card.default.tsx +13 -11
  54. package/packages/Components/Card/Card.foldable.tsx +16 -14
  55. package/packages/Components/Card/Card.tsx +3 -3
  56. package/packages/Components/Card/Card.types.ts +5 -5
  57. package/packages/Components/Card/Card.utils.ts +1 -1
  58. package/packages/Components/Checkbox/Checkbox.tsx +6 -6
  59. package/packages/Components/Checkbox/Checkbox.types.ts +4 -4
  60. package/packages/Components/CodeBox/CodeBox.copy.tsx +3 -3
  61. package/packages/Components/CodeBox/CodeBox.tsx +6 -5
  62. package/packages/Components/CodeBox/CodeBox.types.ts +2 -2
  63. package/packages/Components/ContextMenu/ContextMenu.options.tsx +6 -6
  64. package/packages/Components/ContextMenu/ContextMenu.tsx +8 -7
  65. package/packages/Components/ContextMenu/ContextMenu.types.ts +1 -1
  66. package/packages/Components/ContributionGraph/ContributionGraph.tsx +18 -9
  67. package/packages/Components/ContributionGraph/ContributionGraph.types.ts +2 -2
  68. package/packages/Components/DatePicker/DatePicker.calendar.tsx +6 -6
  69. package/packages/Components/DatePicker/DatePicker.core.tsx +2 -2
  70. package/packages/Components/DatePicker/DatePicker.tsx +48 -27
  71. package/packages/Components/DatePicker/DatePicker.types.ts +1 -1
  72. package/packages/Components/DatePicker/hooks/useCalendar.ts +1 -1
  73. package/packages/Components/DatePicker/hooks/useSelection.ts +2 -2
  74. package/packages/Components/Divider/Divider.tsx +2 -2
  75. package/packages/Components/Divider/Divider.types.ts +1 -1
  76. package/packages/Components/Header/Header.tsx +4 -4
  77. package/packages/Components/Icon/Icon.group.tsx +5 -5
  78. package/packages/Components/Icon/Icon.group.types.ts +4 -4
  79. package/packages/Components/Icon/Icon.tsx +8 -8
  80. package/packages/Components/Icon/Icon.types.ts +7 -7
  81. package/packages/Components/Input/Input.tsx +5 -5
  82. package/packages/Components/Input/Input.types.ts +1 -1
  83. package/packages/Components/Label/Label.tsx +7 -7
  84. package/packages/Components/Label/Label.types.ts +2 -2
  85. package/packages/Components/Layout/Layout.docs.tsx +6 -6
  86. package/packages/Components/Layout/Layout.docs.types.ts +2 -2
  87. package/packages/Components/Layout/Layout.tsx +7 -7
  88. package/packages/Components/Layout/Layout.types.ts +4 -4
  89. package/packages/Components/Maps/OSM/MapOSM.tsx +4 -4
  90. package/packages/Components/Nav/Nav.tsx +8 -8
  91. package/packages/Components/Nav/Nav.types.ts +5 -5
  92. package/packages/Components/Nav/hooks/useNavDrag.ts +1 -1
  93. package/packages/Components/Pagination/Pagination.tsx +8 -7
  94. package/packages/Components/Pagination/Pagination.types.ts +1 -1
  95. package/packages/Components/Pill/Pill.tsx +4 -4
  96. package/packages/Components/Pill/Pill.types.ts +6 -6
  97. package/packages/Components/Profile/Profile.shared.ts +3 -3
  98. package/packages/Components/Profile/Profile.tsx +7 -7
  99. package/packages/Components/Profile/Profile.types.ts +4 -4
  100. package/packages/Components/Progress/Progress.tsx +5 -5
  101. package/packages/Components/Progress/Progress.types.ts +2 -2
  102. package/packages/Components/Radio/Radio.tsx +5 -5
  103. package/packages/Components/Radio/Radio.types.ts +4 -4
  104. package/packages/Components/Select/Select.keyboard.tsx +1 -1
  105. package/packages/Components/Select/Select.trigger.tsx +3 -3
  106. package/packages/Components/Select/Select.tsx +2 -2
  107. package/packages/Components/Select/Select.types.ts +1 -1
  108. package/packages/Components/Select/Select.utils.ts +1 -1
  109. package/packages/Components/Select/hooks/useSelectNavigation.ts +7 -10
  110. package/packages/Components/Select/hooks/useSelectSelection.ts +3 -3
  111. package/packages/Components/Select/hooks/useSelectState.ts +3 -3
  112. package/packages/Components/Select/select.control.tsx +15 -24
  113. package/packages/Components/Select/select.inner.tsx +10 -10
  114. package/packages/Components/Skeleton/Skeleton.tsx +2 -2
  115. package/packages/Components/Skeleton/Skeleton.types.ts +2 -2
  116. package/packages/Components/Spinner/Spinner.tsx +5 -5
  117. package/packages/Components/Spinner/Spinner.types.ts +2 -2
  118. package/packages/Components/Text/Text.tsx +3 -3
  119. package/packages/Components/Text/Text.types.ts +2 -2
  120. package/packages/Components/TimePicker/TimePicker.core.tsx +4 -4
  121. package/packages/Components/TimePicker/TimePicker.tsx +7 -7
  122. package/packages/Components/TimePicker/TimePicker.types.ts +1 -1
  123. package/packages/Components/Timeline/Timeline.tsx +5 -5
  124. package/packages/Components/Timeline/Timeline.types.ts +3 -3
  125. package/packages/Components/Title/Title.tsx +7 -7
  126. package/packages/Components/Title/Title.types.ts +6 -6
  127. package/packages/Components/Toggle/Toggle.tsx +9 -9
  128. package/packages/Components/Toggle/Toggle.types.ts +3 -3
  129. package/packages/Components/Tooltip/Tooltip.tsx +3 -3
  130. package/packages/Components/Tooltip/Tooltip.types.ts +2 -2
  131. package/packages/Frameworks/Dialog/Dialog.background.tsx +4 -4
  132. package/packages/Frameworks/Dialog/Dialog.boot.tsx +2 -2
  133. package/packages/Frameworks/Dialog/Dialog.store.ts +1 -1
  134. package/packages/Frameworks/Dialog/Dialog.tsx +6 -5
  135. package/packages/Frameworks/Dialog/Dialog.types.ts +4 -4
  136. package/packages/Frameworks/Dialog/contents/Dialog.footer.tsx +4 -4
  137. package/packages/Frameworks/Dialog/contents/Dialog.funnel.tsx +6 -6
  138. package/packages/Frameworks/Dialog/contents/Dialog.header.tsx +6 -6
  139. package/packages/Frameworks/Dialog/hooks/useDialogPosition.ts +2 -2
  140. package/packages/Frameworks/Dialog/hooks/useSheetDrag.ts +4 -2
  141. package/packages/Frameworks/Dialog/hooks/useSheetGeometry.ts +5 -3
  142. package/packages/Frameworks/Dialog/hooks/useSheetProgressive.ts +2 -2
  143. package/packages/Frameworks/Dialog/renderers/renderModal.tsx +9 -9
  144. package/packages/Frameworks/Dialog/renderers/renderPopover.tsx +11 -11
  145. package/packages/Frameworks/Dialog/renderers/renderSheet.tsx +17 -17
  146. package/packages/Frameworks/EdgeEffect/EdgeEffect.tsx +2 -2
  147. package/packages/Frameworks/EdgeEffect/EdgeEffect.types.ts +1 -1
  148. package/packages/Frameworks/Pressable/Pressable.tsx +11 -11
  149. package/packages/Frameworks/Pressable/Pressable.types.ts +15 -6
  150. package/packages/Frameworks/Squircle/Squircle.tsx +3 -3
  151. package/packages/Frameworks/Squircle/Squircle.types.ts +1 -1
  152. package/packages/Frameworks/Theme/Radius.types.ts +2 -2
  153. package/packages/Frameworks/Toaster/Toaster.boot.tsx +5 -5
  154. package/packages/Frameworks/Toaster/Toaster.types.ts +3 -1
  155. package/packages/Frameworks/View/DNDView/DNDView.tsx +5 -5
  156. package/packages/Frameworks/View/DNDView/DNDView.types.ts +2 -2
  157. package/packages/Frameworks/View/HScrollView/HScrollView.tsx +8 -8
  158. package/packages/Frameworks/View/HScrollView/HScrollView.types.ts +2 -2
  159. package/packages/Frameworks/View/ImageView/Dialog/ImageDialog.counter.tsx +2 -2
  160. package/packages/Frameworks/View/ImageView/Dialog/ImageDialog.footer.tsx +8 -4
  161. package/packages/Frameworks/View/ImageView/Dialog/ImageDialog.header.tsx +3 -3
  162. package/packages/Frameworks/View/ImageView/Dialog/ImageDialog.list.tsx +5 -5
  163. package/packages/Frameworks/View/ImageView/Dialog/ImageDialog.slide.tsx +3 -3
  164. package/packages/Frameworks/View/ImageView/Dialog/ImageDialog.tsx +7 -7
  165. package/packages/Frameworks/View/ImageView/Image.controls.tsx +1 -1
  166. package/packages/Frameworks/View/ImageView/Image.tsx +44 -27
  167. package/packages/Frameworks/View/ImageView/Image.types.ts +2 -2
  168. package/packages/Frameworks/View/ImageView/Image.utils.ts +2 -2
  169. package/packages/Frameworks/View/View.tsx +8 -8
  170. package/packages/Frameworks/View/View.types.ts +5 -5
  171. package/packages/Frameworks/_shared/Padding.types.ts +2 -4
  172. package/packages/Frameworks/_shared/StopParentInteraction.tsx +1 -1
  173. package/packages/Frameworks/_shared/Wind.types.ts +1 -1
@@ -40,7 +40,7 @@ interface BoxFooterProps extends ThemeSystemProps, BorderProps, RadiusProps {
40
40
  ## Example Code
41
41
 
42
42
  ```tsx
43
- import Box from "@/packages/Components/Box/Box";
43
+ import { Box } from "@musecat/uikit";
44
44
 
45
45
  export default function Example() {
46
46
  return (
@@ -33,7 +33,7 @@ interface ButtonProps extends ThemeSystemProps, RadiusProps, BorderProps {
33
33
  ## Example Code
34
34
 
35
35
  ```tsx
36
- import Button from "@/packages/Components/Button/Button";
36
+ import { Button } from "@musecat/uikit";
37
37
 
38
38
  export default function Example() {
39
39
  return (
@@ -45,7 +45,7 @@ type CardProps = CardDefaultProps | CardFoldableProps;
45
45
  ## Example Code
46
46
 
47
47
  ```tsx
48
- import Card from "@/packages/Components/Card/Card";
48
+ import { Card } from "@musecat/uikit";
49
49
 
50
50
  export default function Example() {
51
51
  return (
@@ -33,7 +33,7 @@ interface CheckboxProps
33
33
  ## Example Code
34
34
 
35
35
  ```tsx
36
- import Checkbox from "@/packages/Components/Checkbox/Checkbox";
36
+ import { Checkbox } from "@musecat/uikit";
37
37
 
38
38
  export default function Example() {
39
39
  return (
@@ -22,7 +22,7 @@ interface CodeBoxProps extends ThemeSystemProps, RadiusProps, BorderProps {
22
22
  ## Example Code
23
23
 
24
24
  ```tsx
25
- import CodeBox from "@/packages/Components/CodeBox/CodeBox";
25
+ import { CodeBox } from "@musecat/uikit";
26
26
 
27
27
  export default function Example() {
28
28
  const sampleCode = `const hello = 'world';\nconsole.log(hello);`;
@@ -40,7 +40,7 @@ interface ContextMenuProps {
40
40
  ## Example Code
41
41
 
42
42
  ```tsx
43
- import ContextMenu from "@/packages/Components/ContextMenu/ContextMenu";
43
+ import { ContextMenu } from "@musecat/uikit";
44
44
  import { useRef, useState } from "react";
45
45
 
46
46
  export default function Example() {
@@ -39,7 +39,7 @@ export interface ContributionGraphProps
39
39
  ## 4. Example Code
40
40
 
41
41
  ```tsx
42
- import ContributionGraph from "@/packages/Components/ContributionGraph/ContributionGraph";
42
+ import { ContributionGraph } from "@musecat/uikit";
43
43
 
44
44
  export default function Example() {
45
45
  const data = [
@@ -63,7 +63,7 @@ export interface DatePickerProps {
63
63
  ## 4. Example Code
64
64
 
65
65
  ```tsx
66
- import DatePicker from "@/packages/Components/DatePicker/DatePicker";
66
+ import { DatePicker } from "@musecat/uikit";
67
67
 
68
68
  export default function Example() {
69
69
  return (
@@ -32,7 +32,7 @@ export interface DividerProps {
32
32
  ## 4. Example Code
33
33
 
34
34
  ```tsx
35
- import Divider from "@/packages/Components/Divider/Divider";
35
+ import { Divider } from "@musecat/uikit";
36
36
 
37
37
  export default function Example() {
38
38
  return (
@@ -27,9 +27,9 @@ export interface HeaderProps {
27
27
  ## 4. Example Code
28
28
 
29
29
  ```tsx
30
- import Header from "@/packages/Components/Header/Header";
31
- import Icon from "@/packages/Components/Icon/Icon";
32
- import Text from "@/packages/Components/Text/Text";
30
+ import { Header } from "@musecat/uikit";
31
+ import { Icon } from "@musecat/uikit";
32
+ import { Text } from "@musecat/uikit";
33
33
 
34
34
  export default function Example() {
35
35
  return (
@@ -54,7 +54,7 @@ export interface IconProps extends ThemeSystemProps, RadiusProps, BorderProps {
54
54
  ## 4. Example Code
55
55
 
56
56
  ```tsx
57
- import Icon from "@/packages/Components/Icon/Icon";
57
+ import { Icon } from "@musecat/uikit";
58
58
 
59
59
  export default function Example() {
60
60
  return (
@@ -36,7 +36,7 @@ _(LabelSharedProps includes `title`, `required`, `hint`, ThemeSystemProps, etc.)
36
36
  ## 4. Example Code
37
37
 
38
38
  ```tsx
39
- import Input from "@/packages/Components/Input/Input";
39
+ import { Input } from "@musecat/uikit";
40
40
 
41
41
  export default function Example() {
42
42
  return (
@@ -55,8 +55,8 @@ export type LabelSharedProps = Omit<
55
55
  ## 4. Example Code
56
56
 
57
57
  ```tsx
58
- import Label from "@/packages/Components/Label/Label";
59
- import Checkbox from "@/packages/Components/Checkbox/Checkbox"; // virtual import
58
+ import { Label } from "@musecat/uikit";
59
+ import { Checkbox } from "@musecat/uikit"; // virtual import
60
60
 
61
61
  export default function Example() {
62
62
  return (
@@ -63,8 +63,8 @@ export interface DocsLayoutProps {
63
63
  ## Example Code
64
64
 
65
65
  ```tsx
66
- import Layout from "@/packages/Components/Layout/Layout";
67
- import DocsLayout from "@/packages/Components/Layout/Layout.docs";
66
+ import { Layout } from "@musecat/uikit";
67
+ import { DocsLayout } from "@musecat/uikit";
68
68
 
69
69
  // Basic layout and section split
70
70
  export function MyPage() {
@@ -38,7 +38,7 @@ export interface MapOSMProps {
38
38
  ## Example Code
39
39
 
40
40
  ```tsx
41
- import MapOSM from "@/packages/Components/Maps/OSM/MapOSM";
41
+ import { MapOSM } from "@musecat/uikit";
42
42
  import { useState } from "react";
43
43
 
44
44
  export function LocationPicker() {
@@ -42,7 +42,7 @@ export interface NavProps extends RadiusProps {
42
42
  ## Example Code
43
43
 
44
44
  ```tsx
45
- import Nav from "@/packages/Components/Nav/Nav";
45
+ import { Nav } from "@musecat/uikit";
46
46
  import { useState } from "react";
47
47
 
48
48
  export function TabNavigation() {
@@ -40,7 +40,7 @@ export interface PaginationProps extends ThemeSystemProps, BorderProps {
40
40
  ## Example Code
41
41
 
42
42
  ```tsx
43
- import Pagination from "@/packages/Components/Pagination/Pagination";
43
+ import { Pagination } from "@musecat/uikit";
44
44
  import { useState } from "react";
45
45
 
46
46
  export function DataList() {
@@ -49,7 +49,7 @@ export interface PillProps extends ThemeSystemProps, RadiusProps, BorderProps {
49
49
  ## Example Code
50
50
 
51
51
  ```tsx
52
- import Pill from "@/packages/Components/Pill/Pill";
52
+ import { Pill } from "@musecat/uikit";
53
53
 
54
54
  export function TagList() {
55
55
  return (
@@ -54,7 +54,7 @@ export interface ProfileProps {
54
54
  ## Example Code
55
55
 
56
56
  ```tsx
57
- import Profile from "@/packages/Components/Profile/Profile";
57
+ import { Profile } from "@musecat/uikit";
58
58
 
59
59
  export function UserHeader() {
60
60
  return (
@@ -14,7 +14,7 @@ A linear progress bar component that visualizes task progress as a percentage. I
14
14
 
15
15
  ```tsx
16
16
  // Progress.types.ts
17
- import { RadiusProps } from "@/packages/Frameworks/Theme/Radius.types";
17
+ import { RadiusProps } from "@musecat/uikit";
18
18
  import type {
19
19
  ThemeBackgroundPaint,
20
20
  ThemePaint,
@@ -38,7 +38,7 @@ export interface ProgressProps extends RadiusProps {
38
38
  ## Example Code
39
39
 
40
40
  ```tsx
41
- import Progress from "@/packages/Components/Progress/Progress";
41
+ import { Progress } from "@musecat/uikit";
42
42
 
43
43
  export function FileUploadStatus({
44
44
  progressPercentage,
@@ -13,7 +13,7 @@ The `Radio` component provides a radio button UI that lets the user select a sin
13
13
  ## Type Signatures
14
14
 
15
15
  ```typescript
16
- import type { RadiusProps } from "@/packages/Frameworks/Theme/Radius.types";
16
+ import type { RadiusProps } from "@musecat/uikit";
17
17
  import type { UIKitSizeValue } from "../../Frameworks/_shared/sizing";
18
18
  import type {
19
19
  BorderProps,
@@ -39,7 +39,7 @@ export interface RadioProps
39
39
  ## Example Code
40
40
 
41
41
  ```tsx
42
- import Radio from "@/packages/Components/Radio/Radio";
42
+ import { Radio } from "@musecat/uikit";
43
43
  import { useState } from "react";
44
44
 
45
45
  export default function RadioExample() {
@@ -55,7 +55,7 @@ export interface SelectProps<
55
55
  ## Example Code
56
56
 
57
57
  ```tsx
58
- import Select from "@/packages/Components/Select/Select";
58
+ import { Select } from "@musecat/uikit";
59
59
  import { useState } from "react";
60
60
 
61
61
  export default function SelectExample() {
@@ -29,7 +29,7 @@ export interface SkeletonProps {
29
29
  ## Example Code
30
30
 
31
31
  ```tsx
32
- import Skeleton from "@/packages/Components/Skeleton/Skeleton";
32
+ import { Skeleton } from "@musecat/uikit";
33
33
 
34
34
  export default function SkeletonExample() {
35
35
  return (
@@ -37,7 +37,7 @@ export interface SpinnerProps {
37
37
  ## Example Code
38
38
 
39
39
  ```tsx
40
- import Spinner from "@/packages/Components/Spinner/Spinner";
40
+ import { Spinner } from "@musecat/uikit";
41
41
 
42
42
  export default function SpinnerExample() {
43
43
  return (
@@ -51,7 +51,7 @@ export interface TextProps {
51
51
  ## Example Code
52
52
 
53
53
  ```tsx
54
- import Text from "@/packages/Components/Text/Text";
54
+ import { Text } from "@musecat/uikit";
55
55
 
56
56
  export default function TextExample() {
57
57
  return (
@@ -41,7 +41,7 @@ export interface TimePickerProps {
41
41
  ## Example Code
42
42
 
43
43
  ```tsx
44
- import TimePicker from "@/packages/Components/TimePicker/TimePicker";
44
+ import { TimePicker } from "@musecat/uikit";
45
45
  import { useState } from "react";
46
46
 
47
47
  export default function TimePickerExample() {
@@ -41,8 +41,8 @@ export interface TimelineProps {
41
41
  ## Example Code
42
42
 
43
43
  ```tsx
44
- import Timeline from "@/packages/Components/Timeline/Timeline";
45
- import Text from "@/packages/Components/Text/Text";
44
+ import { Timeline } from "@musecat/uikit";
45
+ import { Text } from "@musecat/uikit";
46
46
 
47
47
  export default function TimelineExample() {
48
48
  const events = [
@@ -46,7 +46,7 @@ export interface DNDViewProps<T> extends ViewProps {
46
46
  ## Example Code
47
47
 
48
48
  ```tsx
49
- import View from "@/packages/Frameworks/View";
49
+ import { View } from "@musecat/uikit";
50
50
  import { useState } from "react";
51
51
 
52
52
  function SortableList() {
@@ -63,8 +63,8 @@ dialog.popover = (anchor: HTMLElement, props: Omit<DialogProps, "mode">) =>
63
63
  ## Example Code
64
64
 
65
65
  ```tsx
66
- import Dialog, { dialog } from "@/packages/Frameworks/Dialog/Dialog";
67
- import Pressable from "@/packages/Frameworks/Pressable";
66
+ import { Dialog, dialog } from "@musecat/uikit";
67
+ import { Pressable } from "@musecat/uikit";
68
68
  import { useState } from "react";
69
69
 
70
70
  function Example() {
@@ -23,8 +23,8 @@ export interface EdgeEffectProps extends Omit<ViewProps, "children"> {
23
23
  ## Example Code
24
24
 
25
25
  ```tsx
26
- import EdgeEffect from "@/packages/Frameworks/EdgeEffect";
27
- import View from "@/packages/Frameworks/View";
26
+ import { EdgeEffect } from "@musecat/uikit";
27
+ import { View } from "@musecat/uikit";
28
28
 
29
29
  function ScrollContainer() {
30
30
  return (
@@ -47,8 +47,8 @@ export interface HScrollViewProps extends Omit<
47
47
  ## Example Code
48
48
 
49
49
  ```tsx
50
- import HScrollView from "@/packages/Frameworks/View/HScrollView/HScrollView";
51
- import View from "@/packages/Frameworks/View";
50
+ import { HScrollView } from "@musecat/uikit";
51
+ import { View } from "@musecat/uikit";
52
52
 
53
53
  function HorizontalList() {
54
54
  return (
@@ -43,7 +43,7 @@ export interface ImageProps extends RadiusProps {
43
43
  ## Example Code
44
44
 
45
45
  ```tsx
46
- import View from "@/packages/Frameworks/View";
46
+ import { View } from "@musecat/uikit";
47
47
 
48
48
  function PhotoGallery() {
49
49
  const images = [
@@ -37,7 +37,7 @@ export const motionPresets = {
37
37
 
38
38
  ```tsx
39
39
  import { motion } from "motion/react";
40
- import { motionPresets } from "@/packages/Frameworks/Motion";
40
+ import { motionPresets } from "@musecat/uikit";
41
41
 
42
42
  function AnimatedModal({ isOpen, children }) {
43
43
  return (
@@ -44,7 +44,7 @@ export interface PressableProps
44
44
  ## Example Code
45
45
 
46
46
  ```tsx
47
- import Pressable from "@/packages/Frameworks/Pressable/Pressable";
47
+ import { Pressable } from "@musecat/uikit";
48
48
 
49
49
  function Example() {
50
50
  return (
@@ -33,7 +33,7 @@ export interface SquircleProps extends Omit<
33
33
  ## Example Code
34
34
 
35
35
  ```tsx
36
- import Squircle from "@/packages/Frameworks/Squircle";
36
+ import { Squircle } from "@musecat/uikit";
37
37
 
38
38
  function Card() {
39
39
  return (
@@ -51,7 +51,7 @@ import {
51
51
  resolveThemeClasses,
52
52
  Border,
53
53
  Shadow,
54
- } from "@/packages/Frameworks/Theme/Theme.types";
54
+ } from "@musecat/uikit";
55
55
  import clsx from "clsx";
56
56
 
57
57
  function CustomBox(props: ThemeSystemProps) {
@@ -34,7 +34,7 @@ export interface ToasterBootstrapProps extends ToasterProps {
34
34
 
35
35
  ```tsx
36
36
  // 1. Render at the top level (App component, etc.)
37
- import ToasterBootstrap from "@/packages/Frameworks/Toaster/Toaster.boot";
37
+ import { ToasterBootstrap } from "@musecat/uikit";
38
38
 
39
39
  export default function App() {
40
40
  return (
@@ -46,7 +46,7 @@ export default function App() {
46
46
  }
47
47
 
48
48
  // 2. Show toast
49
- import { toast } from "@/packages/Frameworks/Toaster/Toaster.boot";
49
+ import { toast } from "@musecat/uikit";
50
50
 
51
51
  function MyComponents() {
52
52
  const handleSuccess = () => {
@@ -57,7 +57,7 @@ export interface ViewProps
57
57
  ## Example Code
58
58
 
59
59
  ```tsx
60
- import View from "@/packages/Frameworks/View/View";
60
+ import { View } from "@musecat/uikit";
61
61
 
62
62
  function Card() {
63
63
  return (
@@ -51,9 +51,9 @@ export function useScrollLock(locked?: boolean): { lockScroll: () => void, openS
51
51
  ## Example Code
52
52
 
53
53
  ```tsx
54
- import { Size } from "@/packages/Frameworks/_shared/sizing";
55
- import { useScrollLock } from "@/packages/Frameworks/_shared/bodyScrollLock";
56
- import { useControllableState } from "@/packages/Frameworks/_shared/useControllableState";
54
+ import { Size } from "@musecat/uikit";
55
+ import { useScrollLock } from "@musecat/uikit";
56
+ import { useControllableState } from "@musecat/uikit";
57
57
 
58
58
  function MyComponent({ value, defaultValue, width }) {
59
59
  // Scroll lock
package/README.md CHANGED
@@ -5,7 +5,29 @@ A Next.js 16 + React 19 + TypeScript UI Design component library.
5
5
  ## Installation
6
6
 
7
7
  ```bash
8
- npm install @musecat/uikit
8
+ npm install @musecat/uikit @musecat/functionkit
9
+ ```
10
+
11
+ This package ships **raw TypeScript + SCSS source** (no prebuilt bundle), so your app must transpile it.
12
+
13
+ ### Next.js setup
14
+
15
+ Add the packages to `transpilePackages` in `next.config.ts`:
16
+
17
+ ```ts
18
+ import type { NextConfig } from "next";
19
+
20
+ const nextConfig: NextConfig = {
21
+ transpilePackages: ["@musecat/uikit", "@musecat/functionkit"],
22
+ };
23
+
24
+ export default nextConfig;
25
+ ```
26
+
27
+ Install the Sass compiler so the bundled `*.module.scss` styles are compiled:
28
+
29
+ ```bash
30
+ npm install -D sass
9
31
  ```
10
32
 
11
33
  ## Usage
@@ -50,6 +72,8 @@ This package includes `.agents/references/` directory with detailed documentatio
50
72
  - [es-hangul](https://es-hangul.toss.im/)
51
73
  - [MapLibre GL JS](https://maplibre.org/)
52
74
 
75
+ Published as raw TypeScript + SCSS source and built with [TypeScript](https://www.typescriptlang.org/).
76
+
53
77
  ## License
54
78
 
55
79
  [MIT License](./LICENSE) © Musecat Team.
package/global.d.ts ADDED
@@ -0,0 +1,6 @@
1
+ declare module "*.module.scss" {
2
+ const classes: { readonly [key: string]: string };
3
+ export default classes;
4
+ }
5
+
6
+ declare module "*.css";
@@ -0,0 +1,50 @@
1
+ {
2
+ "UIKit": {
3
+ "presets": {
4
+ "alert": {
5
+ "title": "Heads up.",
6
+ "caption": "Review the information and continue.",
7
+ "confirm": "Confirm"
8
+ },
9
+ "confirm": {
10
+ "title": "Confirmation required.",
11
+ "caption": "Review the details and choose how to proceed.",
12
+ "confirm": "Continue",
13
+ "cancel": "Cancel"
14
+ },
15
+ "error": {
16
+ "title": "Something went wrong.",
17
+ "caption": "Please try again in a moment.",
18
+ "confirm": "Confirm"
19
+ },
20
+ "success": {
21
+ "title": "Completed.",
22
+ "caption": "Your request was completed successfully.",
23
+ "confirm": "Confirm"
24
+ }
25
+ },
26
+ "actions": {
27
+ "cancel": "Cancel",
28
+ "close": "Close",
29
+ "confirm": "Confirm",
30
+ "submit": "Submit",
31
+ "submitting": "Processing...",
32
+ "required": "Required"
33
+ },
34
+ "ui": {
35
+ "select": "Select",
36
+ "noResults": "No results",
37
+ "imageGallery": "Image gallery",
38
+ "dateSelect": "Select date",
39
+ "dateRangeSelect": "Select date range",
40
+ "pagination": "Pagination",
41
+ "previous": "Previous",
42
+ "next": "Next",
43
+ "goToPage": "Go to page",
44
+ "currentPage": "Current page {value}",
45
+ "goToPageItem": "Go to page {value}",
46
+ "less": "Less",
47
+ "more": "More"
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "UIKit": {
3
+ "presets": {
4
+ "alert": {
5
+ "title": "ご案内します。",
6
+ "caption": "内容を確認してから続行してください。",
7
+ "confirm": "確認"
8
+ },
9
+ "confirm": {
10
+ "title": "確認が必要です。",
11
+ "caption": "内容を確認して、進行するかどうか選択してください。",
12
+ "confirm": "続ける",
13
+ "cancel": "キャンセル"
14
+ },
15
+ "error": {
16
+ "title": "問題が発生しました。",
17
+ "caption": "しばらくしてから再度お試しください。",
18
+ "confirm": "確認"
19
+ },
20
+ "success": {
21
+ "title": "完了しました。",
22
+ "caption": "リクエストは正常に処理されました。",
23
+ "confirm": "確認"
24
+ }
25
+ },
26
+ "actions": {
27
+ "cancel": "キャンセル",
28
+ "close": "閉じる",
29
+ "confirm": "確認",
30
+ "submit": "送信",
31
+ "submitting": "処理中...",
32
+ "required": "必須"
33
+ },
34
+ "ui": {
35
+ "select": "選択",
36
+ "noResults": "結果なし",
37
+ "imageGallery": "画像ギャラリー",
38
+ "dateSelect": "日付を選択",
39
+ "dateRangeSelect": "期間を選択",
40
+ "pagination": "ページ移動",
41
+ "previous": "前へ",
42
+ "next": "次へ",
43
+ "goToPage": "ページへ移動",
44
+ "currentPage": "現在のページ {value}",
45
+ "goToPageItem": "{value}ページへ移動",
46
+ "less": "少ない",
47
+ "more": "多い"
48
+ }
49
+ }
50
+ }
@@ -0,0 +1,50 @@
1
+ {
2
+ "UIKit": {
3
+ "presets": {
4
+ "alert": {
5
+ "title": "안내",
6
+ "caption": "내용을 확인해 주세요.",
7
+ "confirm": "확인"
8
+ },
9
+ "confirm": {
10
+ "title": "정말 진행하시겠습니까?",
11
+ "caption": "계속 진행할지 선택해 주세요.",
12
+ "confirm": "진행",
13
+ "cancel": "취소"
14
+ },
15
+ "error": {
16
+ "title": "문제가 발생했습니다.",
17
+ "caption": "잠시 후 다시 시도해 주세요.",
18
+ "confirm": "확인"
19
+ },
20
+ "success": {
21
+ "title": "완료되었습니다.",
22
+ "caption": "요청이 정상적으로 처리되었습니다.",
23
+ "confirm": "확인"
24
+ }
25
+ },
26
+ "actions": {
27
+ "cancel": "취소",
28
+ "close": "닫기",
29
+ "confirm": "확인",
30
+ "submit": "제출",
31
+ "submitting": "처리 중...",
32
+ "required": "필수"
33
+ },
34
+ "ui": {
35
+ "select": "선택",
36
+ "noResults": "결과 없음",
37
+ "imageGallery": "이미지 갤러리",
38
+ "dateSelect": "날짜 선택",
39
+ "dateRangeSelect": "날짜 범위 선택",
40
+ "pagination": "페이지 이동",
41
+ "previous": "이전",
42
+ "next": "다음",
43
+ "goToPage": "페이지로 이동",
44
+ "currentPage": "현재 페이지 {value}",
45
+ "goToPageItem": "{value}페이지로 이동",
46
+ "less": "적음",
47
+ "more": "많음"
48
+ }
49
+ }
50
+ }