@musecat/uikit 0.1.3 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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 +2 -0
  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 +58 -57
  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 +11 -11
  54. package/packages/Components/Card/Card.foldable.tsx +14 -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 +5 -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 +7 -7
  65. package/packages/Components/ContextMenu/ContextMenu.types.ts +1 -1
  66. package/packages/Components/ContributionGraph/ContributionGraph.tsx +6 -6
  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 +14 -14
  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 +7 -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 +5 -5
  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 +8 -8
  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 +5 -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 +2 -2
  141. package/packages/Frameworks/Dialog/hooks/useSheetGeometry.ts +2 -2
  142. package/packages/Frameworks/Dialog/hooks/useSheetProgressive.ts +1 -1
  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 +15 -15
  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 +9 -9
  149. package/packages/Frameworks/Pressable/Pressable.types.ts +5 -5
  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 +4 -4
  154. package/packages/Frameworks/Toaster/Toaster.types.ts +1 -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 +4 -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 +11 -10
  167. package/packages/Frameworks/View/ImageView/Image.types.ts +2 -2
  168. package/packages/Frameworks/View/ImageView/Image.utils.ts +1 -1
  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 +1 -1
  172. package/packages/Frameworks/_shared/StopParentInteraction.tsx +1 -1
  173. package/packages/Frameworks/_shared/Wind.types.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  import { useViewportHeight } from "@musecat/functionkit";
2
2
  import { useCallback, useLayoutEffect, useState } from "react";
3
- import { SizePX } from "@/packages/Frameworks/_shared/sizing";
4
- import type { OffsetConfig } from "@/packages/Frameworks/Dialog/Dialog.types";
3
+ import { SizePX } from "../../_shared/sizing";
4
+ import type { OffsetConfig } from "../Dialog.types";
5
5
 
6
6
  export type PopoverPlacement =
7
7
  | "top"
@@ -2,8 +2,8 @@
2
2
 
3
3
  import { animate, type MotionValue, useDragControls } from "motion/react";
4
4
  import { useCallback, useRef } from "react";
5
- import { toPx } from "@/packages/Frameworks/Dialog/hooks/useSheetGeometry";
6
- import { motionTransitions } from "@/packages/Frameworks/Motion/Motion.presets";
5
+ import { toPx } from "./useSheetGeometry";
6
+ import { motionTransitions } from "../../Motion/Motion.presets";
7
7
 
8
8
  const CLOSE_VELOCITY = 900;
9
9
  const CLOSE_DISTANCE_RATIO = 0.34;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
3
  import { useCallback, useEffect, useMemo, useState } from "react";
4
- import type { SheetConfig } from "@/packages/Frameworks/Dialog/Dialog.types";
4
+ import type { SheetConfig } from "../Dialog.types";
5
5
 
6
6
  function toPx(
7
7
  value: number | string | undefined,
@@ -146,7 +146,7 @@ export function useSheetGeometry({
146
146
  const normalizedSnapPoints = useMemo(
147
147
  () =>
148
148
  config?.snapPoints?.length ? normalizeSnapPoints(config.snapPoints) : [1],
149
- [config?.snapPoints?.length, config.snapPoints],
149
+ [config?.snapPoints?.length, config?.snapPoints],
150
150
  );
151
151
 
152
152
  const maxSnap = useMemo(
@@ -2,7 +2,7 @@
2
2
 
3
3
  import type { MotionValue } from "motion/react";
4
4
  import { useEffect, useMemo, useState } from "react";
5
- import type { RadiusValue } from "@/packages/Frameworks/Theme/Radius.types";
5
+ import type { RadiusValue } from "../../Theme/Radius.types";
6
6
 
7
7
  const EDGE_INSET_MAX_PX = 8;
8
8
  const BOTTOM_GAP_PX = 8;
@@ -3,21 +3,21 @@
3
3
  import { AnimatePresence } from "motion/react";
4
4
  import type { ReactNode } from "react";
5
5
  import { useCallback, useEffect, useRef } from "react";
6
- import { useScrollLock } from "@/packages/Frameworks/_shared/bodyScrollLock";
7
- import { LAYER_Z_INDEX } from "@/packages/Frameworks/_shared/layer.constants";
8
- import DialogFooter from "@/packages/Frameworks/Dialog/contents/Dialog.footer";
9
- import DialogHeader from "@/packages/Frameworks/Dialog/contents/Dialog.header";
10
- import BackgroundWrapper from "@/packages/Frameworks/Dialog/Dialog.background";
6
+ import { useScrollLock } from "../../_shared/bodyScrollLock";
7
+ import { LAYER_Z_INDEX } from "../../_shared/layer.constants";
8
+ import DialogFooter from "../contents/Dialog.footer";
9
+ import DialogHeader from "../contents/Dialog.header";
10
+ import BackgroundWrapper from "../Dialog.background";
11
11
  import type {
12
12
  DialogOutsideOptions,
13
13
  ModalConfig,
14
- } from "@/packages/Frameworks/Dialog/Dialog.types";
14
+ } from "../Dialog.types";
15
15
  import {
16
16
  DialogPortal,
17
17
  useEscapeClose,
18
- } from "@/packages/Frameworks/Dialog/Dialog.utils";
19
- import { motionPresets } from "@/packages/Frameworks/Motion/Motion.presets";
20
- import View from "@/packages/Frameworks/View/View";
18
+ } from "../Dialog.utils";
19
+ import { motionPresets } from "../../Motion/Motion.presets";
20
+ import View from "../../View/View";
21
21
 
22
22
  interface RenderModalProps {
23
23
  open: boolean;
@@ -3,23 +3,23 @@
3
3
  import { getFloatingTransformOrigin } from "@musecat/functionkit";
4
4
  import { AnimatePresence } from "motion/react";
5
5
  import { type ReactNode, useCallback, useEffect, useRef } from "react";
6
- import { useScrollLock } from "@/packages/Frameworks/_shared/bodyScrollLock";
7
- import { LAYER_Z_INDEX } from "@/packages/Frameworks/_shared/layer.constants";
8
- import { Size } from "@/packages/Frameworks/_shared/sizing";
9
- import DialogFooter from "@/packages/Frameworks/Dialog/contents/Dialog.footer";
10
- import DialogHeader from "@/packages/Frameworks/Dialog/contents/Dialog.header";
11
- import BackgroundWrapper from "@/packages/Frameworks/Dialog/Dialog.background";
6
+ import { useScrollLock } from "../../_shared/bodyScrollLock";
7
+ import { LAYER_Z_INDEX } from "../../_shared/layer.constants";
8
+ import { Size } from "../../_shared/sizing";
9
+ import DialogFooter from "../contents/Dialog.footer";
10
+ import DialogHeader from "../contents/Dialog.header";
11
+ import BackgroundWrapper from "../Dialog.background";
12
12
  import type {
13
13
  DialogOutsideOptions,
14
14
  PopoverConfig,
15
- } from "@/packages/Frameworks/Dialog/Dialog.types";
15
+ } from "../Dialog.types";
16
16
  import {
17
17
  DialogPortal,
18
18
  useEscapeClose,
19
- } from "@/packages/Frameworks/Dialog/Dialog.utils";
20
- import { useDialogPosition } from "@/packages/Frameworks/Dialog/hooks/useDialogPosition";
21
- import { motionPresets } from "@/packages/Frameworks/Motion/Motion.presets";
22
- import View from "@/packages/Frameworks/View/View";
19
+ } from "../Dialog.utils";
20
+ import { useDialogPosition } from "../hooks/useDialogPosition";
21
+ import { motionPresets } from "../../Motion/Motion.presets";
22
+ import View from "../../View/View";
23
23
 
24
24
  interface RenderPopoverProps {
25
25
  open: boolean;
@@ -13,27 +13,27 @@ import {
13
13
  useRef,
14
14
  useState,
15
15
  } from "react";
16
- import { useScrollLock } from "@/packages/Frameworks/_shared/bodyScrollLock";
17
- import { LAYER_Z_INDEX } from "@/packages/Frameworks/_shared/layer.constants";
18
- import { Size } from "@/packages/Frameworks/_shared/sizing";
19
- import DialogFooter from "@/packages/Frameworks/Dialog/contents/Dialog.footer";
20
- import DialogHeader from "@/packages/Frameworks/Dialog/contents/Dialog.header";
21
- import BackgroundWrapper from "@/packages/Frameworks/Dialog/Dialog.background";
16
+ import { useScrollLock } from "../../_shared/bodyScrollLock";
17
+ import { LAYER_Z_INDEX } from "../../_shared/layer.constants";
18
+ import { Size } from "../../_shared/sizing";
19
+ import DialogFooter from "../contents/Dialog.footer";
20
+ import DialogHeader from "../contents/Dialog.header";
21
+ import BackgroundWrapper from "../Dialog.background";
22
22
  import type {
23
23
  DialogOutsideOptions,
24
24
  SheetConfig,
25
- } from "@/packages/Frameworks/Dialog/Dialog.types";
25
+ } from "../Dialog.types";
26
26
  import {
27
27
  DialogPortal,
28
28
  useEscapeClose,
29
- } from "@/packages/Frameworks/Dialog/Dialog.utils";
30
- import { useSheetDrag } from "@/packages/Frameworks/Dialog/hooks/useSheetDrag";
31
- import { resolveInitialSnapIndex } from "@/packages/Frameworks/Dialog/hooks/useSheetGeometry";
32
- import { useSheetGeometry } from "@/packages/Frameworks/Dialog/hooks/useSheetGeometry";
33
- import { useSheetProgressive } from "@/packages/Frameworks/Dialog/hooks/useSheetProgressive";
34
- import { motionTransitions } from "@/packages/Frameworks/Motion/Motion.presets";
35
- import Pressable from "@/packages/Frameworks/Pressable/Pressable";
36
- import View from "@/packages/Frameworks/View/View";
29
+ } from "../Dialog.utils";
30
+ import { useSheetDrag } from "../hooks/useSheetDrag";
31
+ import { resolveInitialSnapIndex } from "../hooks/useSheetGeometry";
32
+ import { useSheetGeometry } from "../hooks/useSheetGeometry";
33
+ import { useSheetProgressive } from "../hooks/useSheetProgressive";
34
+ import { motionTransitions } from "../../Motion/Motion.presets";
35
+ import Pressable from "../../Pressable/Pressable";
36
+ import View from "../../View/View";
37
37
 
38
38
  interface RenderSheetProps {
39
39
  open: boolean;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
 
3
3
  import { memo, useMemo } from "react";
4
- import type { EdgeEffectProps } from "@/packages/Frameworks/EdgeEffect/EdgeEffect.types";
5
- import View from "@/packages/Frameworks/View/View";
4
+ import type { EdgeEffectProps } from "./EdgeEffect.types";
5
+ import View from "../View/View";
6
6
 
7
7
  const OPPOSITE_SIDE: Record<
8
8
  "left" | "right" | "top" | "bottom",
@@ -1,4 +1,4 @@
1
- import type { ViewProps } from "@/packages/Frameworks/View/View.types";
1
+ import type { ViewProps } from "../View/View.types";
2
2
 
3
3
  export interface EdgeEffectProps extends Omit<ViewProps, "children"> {
4
4
  side?: "left" | "right" | "top" | "bottom";
@@ -15,21 +15,21 @@ import {
15
15
  useRef,
16
16
  useState,
17
17
  } from "react";
18
- import { resolvePadding } from "@/packages/Frameworks/_shared/Padding.types";
19
- import { Size } from "@/packages/Frameworks/_shared/sizing";
20
- import Dialog from "@/packages/Frameworks/Dialog/Dialog";
21
- import styles from "@/packages/Frameworks/Pressable/Pressable.module.scss";
22
- import type { PressableProps } from "@/packages/Frameworks/Pressable/Pressable.types";
23
- import Squircle from "@/packages/Frameworks/Squircle/Squircle";
24
- import { Radius } from "@/packages/Frameworks/Theme/Radius.types";
18
+ import { resolvePadding } from "../_shared/Padding.types";
19
+ import { Size } from "../_shared/sizing";
20
+ import Dialog from "../Dialog/Dialog";
21
+ import styles from "./Pressable.module.scss";
22
+ import type { PressableProps } from "./Pressable.types";
23
+ import Squircle from "../Squircle/Squircle";
24
+ import { Radius } from "../Theme/Radius.types";
25
25
  import {
26
26
  BackgroundBlur,
27
27
  Border,
28
28
  resolveThemeClasses,
29
29
  resolveThemeHasBorder,
30
30
  Shadow,
31
- } from "@/packages/Frameworks/Theme/Theme.types";
32
- import View from "@/packages/Frameworks/View/View";
31
+ } from "../Theme/Theme.types";
32
+ import View from "../View/View";
33
33
 
34
34
  export const ButtonNestingContext = createContext(false);
35
35
  export const PopoverContext = createContext<{
@@ -1,13 +1,13 @@
1
1
  import type { MotionProps } from "motion/react";
2
2
  import type { LinkProps } from "next/link";
3
- import type { PaddingProps } from "@/packages/Frameworks/_shared/Padding.types";
4
- import type { WindProps } from "@/packages/Frameworks/_shared/Wind.types";
5
- import type { PopoverConfig } from "@/packages/Frameworks/Dialog/Dialog.types";
6
- import type { RadiusProps } from "@/packages/Frameworks/Theme/Radius.types";
3
+ import type { PaddingProps } from "../_shared/Padding.types";
4
+ import type { WindProps } from "../_shared/Wind.types";
5
+ import type { PopoverConfig } from "../Dialog/Dialog.types";
6
+ import type { RadiusProps } from "../Theme/Radius.types";
7
7
  import type {
8
8
  BorderProps,
9
9
  ThemeSystemProps,
10
- } from "@/packages/Frameworks/Theme/Theme.types";
10
+ } from "../Theme/Theme.types";
11
11
  export interface PressableProps
12
12
  extends Omit<
13
13
  React.HTMLAttributes<HTMLElement>,
@@ -14,9 +14,9 @@ import {
14
14
  import {
15
15
  getComputedPixelValue,
16
16
  SizePX,
17
- } from "@/packages/Frameworks/_shared/sizing";
18
- import type { SquircleProps } from "@/packages/Frameworks/Squircle/Squircle.types";
19
- import { Radius as resolveRadius } from "@/packages/Frameworks/Theme/Radius.types";
17
+ } from "../_shared/sizing";
18
+ import type { SquircleProps } from "./Squircle.types";
19
+ import { Radius as resolveRadius } from "../Theme/Radius.types";
20
20
 
21
21
  function resolveCornerRadius(
22
22
  radius: SquircleProps["radius"],
@@ -1,6 +1,6 @@
1
1
  import type { MotionProps } from "motion/react";
2
2
  import type { ElementType, HTMLAttributes } from "react";
3
- import type { RadiusValue } from "@/packages/Frameworks/Theme/Radius.types";
3
+ import type { RadiusValue } from "../Theme/Radius.types";
4
4
 
5
5
  export interface SquircleProps
6
6
  extends Omit<HTMLAttributes<HTMLElement>, "color"> {
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  Size,
3
3
  type UIKitSizeValue,
4
- } from "@/packages/Frameworks/_shared/sizing";
4
+ } from "../_shared/sizing";
5
5
 
6
- type RadiusScale =
6
+ export type RadiusScale =
7
7
  | "None"
8
8
  | "ExtraLight"
9
9
  | "Light"
@@ -1,9 +1,9 @@
1
1
  "use client";
2
2
 
3
- import Icon from "@/packages/Components/Icon/Icon";
4
- import type { IconProps } from "@/packages/Components/Icon/Icon.types";
5
- import styles from "@/packages/Frameworks/Toaster/Toaster.module.scss";
6
- import type { ToasterBootstrapProps } from "@/packages/Frameworks/Toaster/Toaster.types";
3
+ import Icon from "../../Components/Icon/Icon";
4
+ import type { IconProps } from "../../Components/Icon/Icon.types";
5
+ import styles from "./Toaster.module.scss";
6
+ import type { ToasterBootstrapProps } from "./Toaster.types";
7
7
  import clsx from "clsx";
8
8
  import { Toaster, toast } from "sonner";
9
9
 
@@ -1,5 +1,5 @@
1
1
  import type { ToasterProps } from "sonner";
2
- import type { IconProps } from "@/packages/Components/Icon/Icon.types";
2
+ import type { IconProps } from "../../Components/Icon/Icon.types";
3
3
 
4
4
  export interface ToasterBootstrapProps extends ToasterProps {
5
5
  "data-color-mode"?: string;
@@ -33,15 +33,15 @@ import {
33
33
  useRef,
34
34
  useState,
35
35
  } from "react";
36
- import Icon from "@/packages/Components/Icon/Icon";
37
- import type { PressableProps } from "@/packages/Frameworks/Pressable/Pressable.types";
38
- import styles from "@/packages/Frameworks/View/DNDView/DNDView.module.scss";
36
+ import Icon from "../../../Components/Icon/Icon";
37
+ import type { PressableProps } from "../../Pressable/Pressable.types";
38
+ import styles from "./DNDView.module.scss";
39
39
  import type {
40
40
  DNDViewItemState,
41
41
  DNDViewProps,
42
42
  DNDViewStrategy,
43
- } from "@/packages/Frameworks/View/DNDView/DNDView.types";
44
- import View from "@/packages/Frameworks/View/View";
43
+ } from "./DNDView.types";
44
+ import View from "../View";
45
45
 
46
46
  const SORTING_STRATEGY: Record<DNDViewStrategy, typeof rectSortingStrategy> = {
47
47
  horizontal: horizontalListSortingStrategy,
@@ -1,7 +1,7 @@
1
1
  import type { UniqueIdentifier } from "@dnd-kit/core";
2
2
  import type { CSSProperties, HTMLAttributes, ReactNode } from "react";
3
- import type { UIKitSizeValue } from "@/packages/Frameworks/_shared/sizing";
4
- import type { ViewProps } from "@/packages/Frameworks/View/View.types";
3
+ import type { UIKitSizeValue } from "../../_shared/sizing";
4
+ import type { ViewProps } from "../View.types";
5
5
 
6
6
  export type DNDViewItemState<T> = {
7
7
  item: T;
@@ -14,21 +14,21 @@ import {
14
14
  useRef,
15
15
  useState,
16
16
  } from "react";
17
- import { Size } from "@/packages/Frameworks/_shared/sizing";
18
- import EdgeEffect from "@/packages/Frameworks/EdgeEffect/EdgeEffect";
19
- import { Radius } from "@/packages/Frameworks/Theme/Radius.types";
17
+ import { Size } from "../../_shared/sizing";
18
+ import EdgeEffect from "../../EdgeEffect/EdgeEffect";
19
+ import { Radius } from "../../Theme/Radius.types";
20
20
  import {
21
21
  BackgroundBlur,
22
22
  Border,
23
23
  resolveThemeClasses,
24
- } from "@/packages/Frameworks/Theme/Theme.types";
25
- import styles from "@/packages/Frameworks/View/HScrollView/HScrollView.module.scss";
24
+ } from "../../Theme/Theme.types";
25
+ import styles from "./HScrollView.module.scss";
26
26
  import type {
27
27
  HScrollViewProps,
28
28
  HScrollViewViewport,
29
- } from "@/packages/Frameworks/View/HScrollView/HScrollView.types";
30
- import View from "@/packages/Frameworks/View/View";
31
- import viewStyles from "@/packages/Frameworks/View/View.module.scss";
29
+ } from "./HScrollView.types";
30
+ import View from "../View";
31
+ import viewStyles from "../View.module.scss";
32
32
 
33
33
  type HScrollViewStyle = CSSProperties & {
34
34
  "--view-default-gap"?: string | number;
@@ -1,6 +1,6 @@
1
1
  import type { CSSProperties, HTMLAttributes, ReactNode } from "react";
2
- import type { UIKitSizeValue } from "@/packages/Frameworks/_shared/sizing";
3
- import type { ViewProps } from "@/packages/Frameworks/View/View.types";
2
+ import type { UIKitSizeValue } from "../../_shared/sizing";
3
+ import type { ViewProps } from "../View.types";
4
4
 
5
5
  export type HScrollViewViewport = "w1" | "w2" | "w3" | "w4";
6
6
  export type HScrollViewActive = boolean | HScrollViewViewport;
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
 
3
- import Text from "@/packages/Components/Text/Text";
4
- import View from "@/packages/Frameworks/View/View";
3
+ import Text from "../../../../Components/Text/Text";
4
+ import View from "../../View";
5
5
 
6
6
  export function DialogImageCounter({
7
7
  selectedIndex,
@@ -1,13 +1,13 @@
1
1
  "use client";
2
2
 
3
3
  import type { MutableRefObject } from "react";
4
- import { DialogImageCounter } from "@/packages/Frameworks/View/ImageView/Dialog/ImageDialog.counter";
5
- import { DialogImageList } from "@/packages/Frameworks/View/ImageView/Dialog/ImageDialog.list";
4
+ import { DialogImageCounter } from "./ImageDialog.counter";
5
+ import { DialogImageList } from "./ImageDialog.list";
6
6
  import type {
7
7
  ImageItem,
8
8
  ImageProps,
9
- } from "@/packages/Frameworks/View/ImageView/Image.types";
10
- import View from "@/packages/Frameworks/View/View";
9
+ } from "../Image.types";
10
+ import View from "../../View";
11
11
 
12
12
  export interface DialogImageFooterProps {
13
13
  dialog: NonNullable<ImageProps["dialog"]>;
@@ -1,8 +1,8 @@
1
1
  "use client";
2
2
 
3
- import Icon from "@/packages/Components/Icon/Icon";
4
- import type { ImageProps } from "@/packages/Frameworks/View/ImageView/Image.types";
5
- import View from "@/packages/Frameworks/View/View";
3
+ import Icon from "../../../../Components/Icon/Icon";
4
+ import type { ImageProps } from "../Image.types";
5
+ import View from "../../View";
6
6
 
7
7
  export interface DialogImageHeaderProps {
8
8
  config?: NonNullable<ImageProps["dialog"]>["header"];
@@ -2,14 +2,14 @@
2
2
 
3
3
  import NextImage from "next/image";
4
4
  import type { MutableRefObject } from "react";
5
- import Pressable from "@/packages/Frameworks/Pressable/Pressable";
6
- import styles from "@/packages/Frameworks/View/ImageView/Image.module.scss";
7
- import type { ImageItem } from "@/packages/Frameworks/View/ImageView/Image.types";
5
+ import Pressable from "../../../Pressable/Pressable";
6
+ import styles from "../Image.module.scss";
7
+ import type { ImageItem } from "../Image.types";
8
8
  import {
9
9
  resolveBlurDataURL,
10
10
  resolveImageSrc,
11
- } from "@/packages/Frameworks/View/ImageView/Image.utils";
12
- import View from "@/packages/Frameworks/View/View";
11
+ } from "../Image.utils";
12
+ import View from "../../View";
13
13
 
14
14
  export interface DialogImageListProps {
15
15
  items: ImageItem[];
@@ -4,12 +4,12 @@ import NextImage from "next/image";
4
4
  import type {
5
5
  ImageItem,
6
6
  ImageOverlay,
7
- } from "@/packages/Frameworks/View/ImageView/Image.types";
7
+ } from "../Image.types";
8
8
  import {
9
9
  resolveImageSrc,
10
10
  resolveOverlay,
11
- } from "@/packages/Frameworks/View/ImageView/Image.utils";
12
- import View from "@/packages/Frameworks/View/View";
11
+ } from "../Image.utils";
12
+ import View from "../../View";
13
13
 
14
14
  export interface DialogImageSlideProps {
15
15
  item: ImageItem;
@@ -1,19 +1,19 @@
1
1
  "use client";
2
2
 
3
3
  import { useEffect, useRef } from "react";
4
- import { DialogImageFooter } from "@/packages/Frameworks/View/ImageView/Dialog/ImageDialog.footer";
5
- import { DialogImageHeader } from "@/packages/Frameworks/View/ImageView/Dialog/ImageDialog.header";
6
- import { DialogImageSlide } from "@/packages/Frameworks/View/ImageView/Dialog/ImageDialog.slide";
4
+ import { DialogImageFooter } from "./ImageDialog.footer";
5
+ import { DialogImageHeader } from "./ImageDialog.header";
6
+ import { DialogImageSlide } from "./ImageDialog.slide";
7
7
  import {
8
8
  ImageLeftControl,
9
9
  ImageRightControl,
10
- } from "@/packages/Frameworks/View/ImageView/Image.controls";
11
- import { useImageDialog } from "@/packages/Frameworks/View/ImageView/Image.hooks";
10
+ } from "../Image.controls";
11
+ import { useImageDialog } from "../Image.hooks";
12
12
  import type {
13
13
  ImageItem,
14
14
  ImageProps,
15
- } from "@/packages/Frameworks/View/ImageView/Image.types";
16
- import View from "@/packages/Frameworks/View/View";
15
+ } from "../Image.types";
16
+ import View from "../../View";
17
17
 
18
18
  export type ImageDialogProps = {
19
19
  items: ImageItem[];
@@ -1,5 +1,5 @@
1
1
  import type { CSSProperties } from "react";
2
- import Icon from "@/packages/Components/Icon/Icon";
2
+ import Icon from "../../../Components/Icon/Icon";
3
3
 
4
4
  export type ImageControlProps = {
5
5
  onClick: () => void;
@@ -2,24 +2,25 @@
2
2
 
3
3
  import NextImage from "next/image";
4
4
  import { useCallback, useMemo, useState } from "react";
5
- import Dialog from "@/packages/Frameworks/Dialog/Dialog";
6
- import Pressable from "@/packages/Frameworks/Pressable/Pressable";
7
- import HScrollView from "@/packages/Frameworks/View/HScrollView/HScrollView";
8
- import ImageDialog from "@/packages/Frameworks/View/ImageView/Dialog/ImageDialog";
5
+ import Dialog from "../../Dialog/Dialog";
6
+ import Pressable from "../../Pressable/Pressable";
7
+ import HScrollView from "../HScrollView/HScrollView";
8
+ import ImageDialog from "./Dialog/ImageDialog";
9
9
  import {
10
10
  ImageLeftControl,
11
11
  ImageRightControl,
12
- } from "@/packages/Frameworks/View/ImageView/Image.controls";
13
- import type { ImageOverlay, ImageProps } from "@/packages/Frameworks/View/ImageView/Image.types";
14
- import type { UIKitSizeValue } from "@/packages/Frameworks/_shared/sizing";
12
+ } from "./Image.controls";
13
+ import type { ImageOverlay, ImageProps } from "./Image.types";
14
+ import type { RadiusValue } from "../../Theme/Radius.types";
15
+ import type { UIKitSizeValue } from "../../_shared/sizing";
15
16
  import {
16
17
  resolveAtIndex,
17
18
  resolveBlurDataURL,
18
19
  resolveImageSrc,
19
20
  resolveItems,
20
21
  resolveOverlay,
21
- } from "@/packages/Frameworks/View/ImageView/Image.utils";
22
- import View from "@/packages/Frameworks/View/View";
22
+ } from "./Image.utils";
23
+ import View from "../View";
23
24
 
24
25
  const DEFAULT_GROUP_WIDTH = "auto";
25
26
  const DEFAULT_GROUP_HEIGHT = "29rem";
@@ -46,7 +47,7 @@ function ImageGroupItem({
46
47
  index: number;
47
48
  dialog?: ImageProps["dialog"];
48
49
  className?: string;
49
- radius?: string;
50
+ radius?: RadiusValue;
50
51
  width?: UIKitSizeValue | UIKitSizeValue[];
51
52
  height?: UIKitSizeValue | UIKitSizeValue[];
52
53
  overlay?: ImageOverlay;
@@ -1,6 +1,6 @@
1
1
  import type { CSSProperties, ReactNode } from "react";
2
- import type { UIKitSizeValue } from "@/packages/Frameworks/_shared/sizing";
3
- import type { RadiusProps } from "@/packages/Frameworks/Theme/Radius.types";
2
+ import type { UIKitSizeValue } from "../../_shared/sizing";
3
+ import type { RadiusProps } from "../../Theme/Radius.types";
4
4
 
5
5
  export type ImageItem = {
6
6
  id: number;
@@ -2,7 +2,7 @@ import type { ReactNode } from "react";
2
2
  import type {
3
3
  ImageItem,
4
4
  ImageOverlay,
5
- } from "@/packages/Frameworks/View/ImageView/Image.types";
5
+ } from "./Image.types";
6
6
 
7
7
  export type ImageMode = "inline" | "dialog";
8
8
 
@@ -1,20 +1,20 @@
1
1
  import clsx from "clsx";
2
2
  import { motion } from "motion/react";
3
3
  import { type CSSProperties, forwardRef } from "react";
4
- import { resolvePadding } from "@/packages/Frameworks/_shared/Padding.types";
5
- import { Size } from "@/packages/Frameworks/_shared/sizing";
6
- import Squircle from "@/packages/Frameworks/Squircle/Squircle";
7
- import { Radius } from "@/packages/Frameworks/Theme/Radius.types";
4
+ import { resolvePadding } from "../_shared/Padding.types";
5
+ import { Size } from "../_shared/sizing";
6
+ import Squircle from "../Squircle/Squircle";
7
+ import { Radius } from "../Theme/Radius.types";
8
8
  import {
9
9
  BackgroundBlur,
10
10
  Border,
11
11
  resolveThemeClasses,
12
12
  resolveThemeHasBorder,
13
13
  Shadow,
14
- } from "@/packages/Frameworks/Theme/Theme.types";
15
- import DNDView from "@/packages/Frameworks/View/DNDView/DNDView";
16
- import styles from "@/packages/Frameworks/View/View.module.scss";
17
- import type { ViewProps } from "@/packages/Frameworks/View/View.types";
14
+ } from "../Theme/Theme.types";
15
+ import DNDView from "./DNDView/DNDView";
16
+ import styles from "./View.module.scss";
17
+ import type { ViewProps } from "./View.types";
18
18
 
19
19
  type ViewStyle = CSSProperties & {
20
20
  "--view-default-gap"?: string | number;
@@ -1,13 +1,13 @@
1
1
  import type { MotionProps } from "motion/react";
2
2
  import type { CSSProperties, HTMLAttributes } from "react";
3
- import type { PaddingProps } from "@/packages/Frameworks/_shared/Padding.types";
4
- import type { UIKitSizeValue } from "@/packages/Frameworks/_shared/sizing";
5
- import type { WindProps } from "@/packages/Frameworks/_shared/Wind.types";
6
- import type { RadiusProps } from "@/packages/Frameworks/Theme/Radius.types";
3
+ import type { PaddingProps } from "../_shared/Padding.types";
4
+ import type { UIKitSizeValue } from "../_shared/sizing";
5
+ import type { WindProps } from "../_shared/Wind.types";
6
+ import type { RadiusProps } from "../Theme/Radius.types";
7
7
  import type {
8
8
  BorderProps,
9
9
  ThemeSystemProps,
10
- } from "@/packages/Frameworks/Theme/Theme.types";
10
+ } from "../Theme/Theme.types";
11
11
 
12
12
  export interface ViewProps
13
13
  extends Omit<HTMLAttributes<HTMLDivElement>, "color">,
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  Size,
3
3
  type UIKitSizeValue,
4
- } from "@/packages/Frameworks/_shared/sizing";
4
+ } from "./sizing";
5
5
 
6
6
  type PaddingUnitValue = UIKitSizeValue;
7
7