@uniai-fe/uds-primitives 0.0.5 → 0.0.7

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.
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "@uniai-fe/uds-primitives",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "UNIAI Design System; Primitives Components Package",
5
5
  "type": "module",
6
6
  "private": false,
7
- "sideEffects": false,
7
+ "sideEffects": [
8
+ "./src/**/*.scss",
9
+ "./src/theme/**/*.scss",
10
+ "./styles.scss"
11
+ ],
8
12
  "license": "MIT",
9
13
  "homepage": "https://www.uniai.co.kr/",
10
14
  "publishConfig": {
@@ -21,19 +25,26 @@
21
25
  "url": "https://github.com/GraffitoRyu"
22
26
  },
23
27
  "files": [
24
- "src"
28
+ "src",
29
+ "dist",
30
+ "styles.scss"
25
31
  ],
26
32
  "main": "./src/index.tsx",
27
33
  "module": "./src/index.tsx",
28
34
  "exports": {
29
- ".": "./src/index.tsx"
35
+ ".": "./src/index.tsx",
36
+ "./styles": "./styles.scss",
37
+ "./css": "./dist/styles.css",
38
+ "./init/dayjs": "./src/init/dayjs",
39
+ "./*": "./src/*"
30
40
  },
31
41
  "scripts": {
32
42
  "format": "prettier --write .",
33
43
  "format:check": "prettier --check .",
34
44
  "lint": "eslint . --max-warnings=0",
35
45
  "typecheck": "tsc --project tsconfig.build.json --noEmit",
36
- "build": "pnpm format && pnpm typecheck",
46
+ "build": "pnpm format && pnpm typecheck && pnpm css:build",
47
+ "css:build": "sass --load-path=node_modules src/index.scss dist/styles.css --style=expanded --no-source-map",
37
48
  "dev": "tsc --project tsconfig.build.json --watch --noEmit",
38
49
  "module:lint": "pnpm lint",
39
50
  "module:typecheck": "pnpm typecheck",
@@ -75,6 +86,7 @@
75
86
  "@types/react-dom": "^19.2.3",
76
87
  "@uniai-fe/eslint-config": "workspace:*",
77
88
  "@uniai-fe/next-devkit": "workspace:*",
89
+ "@uniai-fe/uds-foundation": "workspace:*",
78
90
  "@uniai-fe/tsconfig": "workspace:*",
79
91
  "@uniai-fe/util-functions": "workspace:*",
80
92
  "eslint": "^9.39.1",
@@ -3,6 +3,11 @@ import "./index.scss";
3
3
  export * from "./markup";
4
4
  export type {
5
5
  BottomNavigationProps,
6
+ NavigationActionItem,
7
+ NavigationHrefItem,
6
8
  NavigationItem,
7
9
  NavigationItemKey,
10
+ NavigationSitemapCollection,
11
+ NavigationSitemapNode,
12
+ NavigationSitemapOptions,
8
13
  } from "./types";
@@ -36,3 +36,27 @@ export interface BottomNavigationProps extends Omit<
36
36
  export interface NavigationClassNameOptions {
37
37
  className?: string;
38
38
  }
39
+
40
+ export interface NavigationSitemapOptions {
41
+ popup?: boolean;
42
+ auth?: string[];
43
+ pageStyle?: string;
44
+ navDepthDisabled?: boolean;
45
+ }
46
+
47
+ export interface NavigationSitemapNode extends NavigationSitemapOptions {
48
+ key: string;
49
+ path: string;
50
+ label: string;
51
+ icon?: ReactNode;
52
+ menu?: {
53
+ slot: "bottom" | "drawer";
54
+ order?: number;
55
+ };
56
+ depth: NavigationSitemapNode[];
57
+ }
58
+
59
+ export type NavigationSitemapCollection = Record<
60
+ string,
61
+ NavigationSitemapNode[]
62
+ >;
package/src/index.scss CHANGED
@@ -1,3 +1,24 @@
1
1
  @use "@uniai-fe/uds-foundation/css";
2
+ @use "./theme/overrides.scss";
2
3
 
3
- /* 공용 스타일 placeholder: 카테고리 styles에서 필요한 경우 @use 확장 */
4
+ /* 모든 primitives component SCSS를 번에 노출해 서비스 import 부담을 줄인다. */
5
+ @use "./components/alternate";
6
+ @use "./components/badge";
7
+ @use "./components/button";
8
+ @use "./components/calendar";
9
+ @use "./components/checkbox";
10
+ @use "./components/chip";
11
+ @use "./components/dialog";
12
+ @use "./components/drawer";
13
+ @use "./components/dropdown";
14
+ @use "./components/input";
15
+ @use "./components/label";
16
+ @use "./components/navigation";
17
+ @use "./components/pagination";
18
+ @use "./components/radio";
19
+ @use "./components/scrollbar";
20
+ @use "./components/segmented-control";
21
+ @use "./components/select";
22
+ @use "./components/spinner";
23
+ @use "./components/tab";
24
+ @use "./components/table";
@@ -1,10 +1,10 @@
1
1
  import { Theme } from "@radix-ui/themes";
2
2
  import "@radix-ui/themes/styles.css";
3
- import "@uniai-fe/uds-foundation/css";
4
3
  import type { PropsWithChildren } from "react";
5
- import "./overrides.scss";
6
4
  import { defaultThemeOptions, type ThemeProviderProps } from "./config";
7
5
 
6
+ // foundation CSS와 overrides.scss는 @uniai-fe/uds-primitives/styles에서 전역 import한다.
7
+
8
8
  /**
9
9
  * Radix Theme와 foundation 토큰을 한 번에 초기화하는 Provider.
10
10
  * Storybook 데코레이터 및 애플리케이션 루트에서 활용한다.
package/styles.scss ADDED
@@ -0,0 +1 @@
1
+ @forward "./src/index.scss";