@liner-fe/design-token 2.4.32 → 2.5.33

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/lib/index.js CHANGED
@@ -1,43 +1,14 @@
1
- "use strict";
2
1
  var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
2
  var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
7
- var __export = (target, all) => {
8
- for (var name in all)
9
- __defProp(target, name, { get: all[name], enumerable: true });
10
- };
11
- var __copyProps = (to, from, except, desc) => {
12
- if (from && typeof from === "object" || typeof from === "function") {
13
- for (let key of __getOwnPropNames(from))
14
- if (!__hasOwnProp.call(to, key) && key !== except)
15
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
- }
17
- return to;
18
- };
19
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
20
-
21
- // src/index.ts
22
- var index_exports = {};
23
- __export(index_exports, {
24
- breakpoint: () => breakpoint,
25
- breakpointOrigin: () => breakpointOrigin,
26
- classNames: () => classNames,
27
- theme: () => theme,
28
- useDarkTheme: () => useDarkTheme,
29
- vars: () => vars
30
- });
31
- module.exports = __toCommonJS(index_exports);
32
3
 
33
4
  // src/hooks/useDarkTheme.ts
34
- var import_recoil = require("recoil");
35
- var theme = (0, import_recoil.atom)({
5
+ import { atom, useRecoilState } from "recoil";
6
+ var theme = atom({
36
7
  key: "dark-theme",
37
8
  default: false
38
9
  });
39
10
  var useDarkTheme = /* @__PURE__ */ __name(() => {
40
- const [isDarkMode, setIsDarkMode] = (0, import_recoil.useRecoilState)(theme);
11
+ const [isDarkMode, setIsDarkMode] = useRecoilState(theme);
41
12
  const setDarkTheme = /* @__PURE__ */ __name(() => {
42
13
  document.documentElement.setAttribute("color-theme", "dark");
43
14
  localStorage.setItem("theme", "dark");
@@ -87,3 +58,11 @@ var breakpoint = {
87
58
  xxl: makeBreakpoint("xxl"),
88
59
  xxxl: makeBreakpoint("xxxl")
89
60
  };
61
+ export {
62
+ breakpoint,
63
+ breakpointOrigin,
64
+ classNames,
65
+ theme,
66
+ useDarkTheme,
67
+ vars
68
+ };
package/lib/tailwind.css CHANGED
@@ -122,12 +122,12 @@
122
122
  --radius-xl: var(--lp-sys-radius-xl);
123
123
  --radius-xxl: var(--lp-sys-radius-xxl);
124
124
  --breakpoint-*: initial;
125
- --breakpoint-s: 601px;
126
- --breakpoint-m: 1025px;
127
- --breakpoint-l: 1367px;
128
- --breakpoint-xl: 1537px;
129
- --breakpoint-xxl: 1921px;
130
- --breakpoint-xxxl: 2561px;
125
+ --breakpoint-s: 600px;
126
+ --breakpoint-m: 1024px;
127
+ --breakpoint-l: 1366px;
128
+ --breakpoint-xl: 1536px;
129
+ --breakpoint-xxl: 1920px;
130
+ --breakpoint-xxxl: 2560px;
131
131
  --spacing-component-50: var(--lp-sys-padding-component-50);
132
132
  --spacing-component-100: var(--lp-sys-padding-component-100);
133
133
  --spacing-component-150: var(--lp-sys-padding-component-150);
package/package.json CHANGED
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "name": "@liner-fe/design-token",
3
- "version": "2.4.32",
3
+ "version": "2.5.33",
4
+ "type": "module",
4
5
  "devDependencies": {
5
6
  "@eslint/js": "^9.22.0",
6
- "@liner-fe/design-token-primitive": "workspace:^",
7
7
  "@types/react": "^18.2.48",
8
8
  "eslint": "^9.22.0",
9
9
  "eslint-plugin-react": "^7.37.4",
@@ -14,23 +14,15 @@
14
14
  "tsup": "^8.5.0",
15
15
  "tsx": "^4.19.4",
16
16
  "typescript": "^5.1.3",
17
- "typescript-eslint": "^8.26.1"
17
+ "typescript-eslint": "^8.26.1",
18
+ "@liner-fe/design-token-primitive": "^0.1.31"
18
19
  },
19
20
  "peerDependencies": {
20
21
  "react": "^18",
21
22
  "recoil": "^0.5.2"
22
23
  },
23
- "scripts": {
24
- "build": "yarn create-css && yarn tsup --config ./config/tsup/tsup.config.ts && yarn copy-tailwind",
25
- "build:package": "yarn build",
26
- "prepack": "yarn build",
27
- "create-css": "yarn ts-node ./scripts/index.ts",
28
- "ts-node": "tsx --tsconfig tsconfig.build.json",
29
- "copy-tailwind": "yarn ts-node ./scripts/utils/copy-file.ts"
30
- },
31
24
  "publishConfig": {
32
- "access": "public",
33
- "main": "./lib/index.js"
25
+ "access": "public"
34
26
  },
35
27
  "exports": {
36
28
  ".": {
@@ -47,5 +39,12 @@
47
39
  "files": [
48
40
  "lib",
49
41
  "src"
50
- ]
51
- }
42
+ ],
43
+ "scripts": {
44
+ "build": "pnpm create-css && pnpm tsup --config ./config/tsup/tsup.config.ts && pnpm copy-tailwind",
45
+ "build:package": "pnpm build",
46
+ "create-css": "pnpm ts-node ./scripts/index.ts",
47
+ "ts-node": "tsx --tsconfig tsconfig.build.json",
48
+ "copy-tailwind": "pnpm ts-node ./scripts/utils/copy-file.ts"
49
+ }
50
+ }
@@ -122,12 +122,12 @@
122
122
  --radius-xl: var(--lp-sys-radius-xl);
123
123
  --radius-xxl: var(--lp-sys-radius-xxl);
124
124
  --breakpoint-*: initial;
125
- --breakpoint-s: 601px;
126
- --breakpoint-m: 1025px;
127
- --breakpoint-l: 1367px;
128
- --breakpoint-xl: 1537px;
129
- --breakpoint-xxl: 1921px;
130
- --breakpoint-xxxl: 2561px;
125
+ --breakpoint-s: 600px;
126
+ --breakpoint-m: 1024px;
127
+ --breakpoint-l: 1366px;
128
+ --breakpoint-xl: 1536px;
129
+ --breakpoint-xxl: 1920px;
130
+ --breakpoint-xxxl: 2560px;
131
131
  --spacing-component-50: var(--lp-sys-padding-component-50);
132
132
  --spacing-component-100: var(--lp-sys-padding-component-100);
133
133
  --spacing-component-150: var(--lp-sys-padding-component-150);