@liner-fe/design-library 1.0.1 → 1.1.2

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/README.md CHANGED
@@ -1,73 +1,3 @@
1
- # React + TypeScript + Vite
1
+ # @liner-fe/design-library
2
2
 
3
- This template provides a minimal setup to get React working in Vite with HMR and some ESLint rules.
4
-
5
- Currently, two official plugins are available:
6
-
7
- - [@vitejs/plugin-react](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react) uses [Babel](https://babeljs.io/) (or [oxc](https://oxc.rs) when used in [rolldown-vite](https://vite.dev/guide/rolldown)) for Fast Refresh
8
- - [@vitejs/plugin-react-swc](https://github.com/vitejs/vite-plugin-react/blob/main/packages/plugin-react-swc) uses [SWC](https://swc.rs/) for Fast Refresh
9
-
10
- ## React Compiler
11
-
12
- The React Compiler is not enabled on this template because of its impact on dev & build performances. To add it, see [this documentation](https://react.dev/learn/react-compiler/installation).
13
-
14
- ## Expanding the ESLint configuration
15
-
16
- If you are developing a production application, we recommend updating the configuration to enable type-aware lint rules:
17
-
18
- ```js
19
- export default defineConfig([
20
- globalIgnores(['dist']),
21
- {
22
- files: ['**/*.{ts,tsx}'],
23
- extends: [
24
- // Other configs...
25
-
26
- // Remove tseslint.configs.recommended and replace with this
27
- tseslint.configs.recommendedTypeChecked,
28
- // Alternatively, use this for stricter rules
29
- tseslint.configs.strictTypeChecked,
30
- // Optionally, add this for stylistic rules
31
- tseslint.configs.stylisticTypeChecked,
32
-
33
- // Other configs...
34
- ],
35
- languageOptions: {
36
- parserOptions: {
37
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
38
- tsconfigRootDir: import.meta.dirname,
39
- },
40
- // other options...
41
- },
42
- },
43
- ]);
44
- ```
45
-
46
- You can also install [eslint-plugin-react-x](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-x) and [eslint-plugin-react-dom](https://github.com/Rel1cx/eslint-react/tree/main/packages/plugins/eslint-plugin-react-dom) for React-specific lint rules:
47
-
48
- ```js
49
- // eslint.config.js
50
- import reactX from 'eslint-plugin-react-x';
51
- import reactDom from 'eslint-plugin-react-dom';
52
-
53
- export default defineConfig([
54
- globalIgnores(['dist']),
55
- {
56
- files: ['**/*.{ts,tsx}'],
57
- extends: [
58
- // Other configs...
59
- // Enable lint rules for React
60
- reactX.configs['recommended-typescript'],
61
- // Enable lint rules for React DOM
62
- reactDom.configs.recommended,
63
- ],
64
- languageOptions: {
65
- parserOptions: {
66
- project: ['./tsconfig.node.json', './tsconfig.app.json'],
67
- tsconfigRootDir: import.meta.dirname,
68
- },
69
- // other options...
70
- },
71
- },
72
- ]);
73
- ```
3
+ - Liner Design Library
package/lib/index.css CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! tailwindcss v4.1.15 | MIT License | https://tailwindcss.com */
2
- @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}@layer theme{:root,:host{--font-sans:ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji";--font-mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace;--spacing:.25rem;--default-font-family:var(--font-sans);--default-mono-font-family:var(--font-mono)}}@layer base{*,:after,:before,::backdrop{box-sizing:border-box;border:0 solid;margin:0;padding:0}::file-selector-button{box-sizing:border-box;border:0 solid;margin:0;padding:0}html,:host{-webkit-text-size-adjust:100%;tab-size:4;line-height:1.5;font-family:var(--default-font-family,ui-sans-serif,system-ui,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol","Noto Color Emoji");font-feature-settings:var(--default-font-feature-settings,normal);font-variation-settings:var(--default-font-variation-settings,normal);-webkit-tap-highlight-color:transparent}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;-webkit-text-decoration:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:var(--default-mono-font-family,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace);font-feature-settings:var(--default-mono-font-feature-settings,normal);font-variation-settings:var(--default-mono-font-variation-settings,normal);font-size:1em}small{font-size:80%}sub,sup{vertical-align:baseline;font-size:75%;line-height:0;position:relative}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}:-moz-focusring{outline:auto}progress{vertical-align:baseline}summary{display:list-item}ol,ul,menu{list-style:none}img,svg,video,canvas,audio,iframe,embed,object{vertical-align:middle;display:block}img,video{max-width:100%;height:auto}button,input,select,optgroup,textarea{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}::file-selector-button{font:inherit;font-feature-settings:inherit;font-variation-settings:inherit;letter-spacing:inherit;color:inherit;opacity:1;background-color:#0000;border-radius:0}:where(select:is([multiple],[size])) optgroup{font-weight:bolder}:where(select:is([multiple],[size])) optgroup option{padding-inline-start:20px}::file-selector-button{margin-inline-end:4px}::placeholder{opacity:1}@supports (not ((-webkit-appearance:-apple-pay-button))) or (contain-intrinsic-size:1px){::placeholder{color:currentColor}@supports (color:color-mix(in lab, red, red)){::placeholder{color:color-mix(in oklab,currentcolor 50%,transparent)}}}textarea{resize:vertical}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-date-and-time-value{min-height:1lh;text-align:inherit}::-webkit-datetime-edit{display:inline-flex}::-webkit-datetime-edit-fields-wrapper{padding:0}::-webkit-datetime-edit{padding-block:0}::-webkit-datetime-edit-year-field{padding-block:0}::-webkit-datetime-edit-month-field{padding-block:0}::-webkit-datetime-edit-day-field{padding-block:0}::-webkit-datetime-edit-hour-field{padding-block:0}::-webkit-datetime-edit-minute-field{padding-block:0}::-webkit-datetime-edit-second-field{padding-block:0}::-webkit-datetime-edit-millisecond-field{padding-block:0}::-webkit-datetime-edit-meridiem-field{padding-block:0}::-webkit-calendar-picker-indicator{line-height:1}:-moz-ui-invalid{box-shadow:none}button,input:where([type=button],[type=reset],[type=submit]){appearance:button}::file-selector-button{appearance:button}::-webkit-inner-spin-button{height:auto}::-webkit-outer-spin-button{height:auto}[hidden]:where(:not([hidden=until-found])){display:none!important}}@layer components;@layer utilities{.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.inset-0{inset:calc(var(--spacing)*0)}.top-1\/2{top:50%}.top-\[16px\]{top:16px}.right-\[16px\]{right:16px}.left-1\/2{left:50%}.z-\[1000\]{z-index:1000}.flex{display:flex}.w-\[400px\]{width:400px}.w-fit\!{width:fit-content!important}.w-full{width:100%}.w-full\!{width:100%!important}.-translate-x-1\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.rounded-\[16px\]{border-radius:16px}.shadow-\[0_1px_8px_0_rgba\(0\,0\,0\,0\.06\)\,0_2px_12px_0_rgba\(0\,0\,0\,0\.08\)\,0_0_1px_0_rgba\(0\,0\,0\,0\.06\)\]{--tw-shadow:0 1px 8px 0 var(--tw-shadow-color,#0000000f),0 2px 12px 0 var(--tw-shadow-color,#00000014),0 0 1px 0 var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
2
+ @layer properties{@supports (((-webkit-hyphens:none)) and (not (margin-trim:inline))) or ((-moz-orient:inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-translate-x:0;--tw-translate-y:0;--tw-translate-z:0;--tw-shadow:0 0 #0000;--tw-shadow-color:initial;--tw-shadow-alpha:100%;--tw-inset-shadow:0 0 #0000;--tw-inset-shadow-color:initial;--tw-inset-shadow-alpha:100%;--tw-ring-color:initial;--tw-ring-shadow:0 0 #0000;--tw-inset-ring-color:initial;--tw-inset-ring-shadow:0 0 #0000;--tw-ring-inset:initial;--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-offset-shadow:0 0 #0000}}}.absolute{position:absolute}.fixed{position:fixed}.relative{position:relative}.top-1\/2{top:50%}.top-\[16px\]{top:16px}.right-\[16px\]{right:16px}.left-1\/2{left:50%}.z-\[1000\]{z-index:1000}.flex{display:flex}.w-\[400px\]{width:400px}.w-fit\!{width:fit-content!important}.w-full{width:100%}.w-full\!{width:100%!important}.-translate-x-1\/2{--tw-translate-x:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.-translate-y-1\/2{--tw-translate-y:calc(calc(1/2*100%)*-1);translate:var(--tw-translate-x)var(--tw-translate-y)}.flex-col{flex-direction:column}.items-center{align-items:center}.items-start{align-items:flex-start}.justify-center{justify-content:center}.justify-end{justify-content:flex-end}.rounded-\[16px\]{border-radius:16px}.shadow-\[0_1px_8px_0_rgba\(0\,0\,0\,0\.06\)\,0_2px_12px_0_rgba\(0\,0\,0\,0\.08\)\,0_0_1px_0_rgba\(0\,0\,0\,0\.06\)\]{--tw-shadow:0 1px 8px 0 var(--tw-shadow-color,#0000000f),0 2px 12px 0 var(--tw-shadow-color,#00000014),0 0 1px 0 var(--tw-shadow-color,#0000000f);box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}@property --tw-translate-x{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-y{syntax:"*";inherits:false;initial-value:0}@property --tw-translate-z{syntax:"*";inherits:false;initial-value:0}@property --tw-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-shadow-color{syntax:"*";inherits:false}@property --tw-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-inset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-shadow-color{syntax:"*";inherits:false}@property --tw-inset-shadow-alpha{syntax:"<percentage>";inherits:false;initial-value:100%}@property --tw-ring-color{syntax:"*";inherits:false}@property --tw-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-inset-ring-color{syntax:"*";inherits:false}@property --tw-inset-ring-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}@property --tw-ring-inset{syntax:"*";inherits:false}@property --tw-ring-offset-width{syntax:"<length>";inherits:false;initial-value:0}@property --tw-ring-offset-color{syntax:"*";inherits:false;initial-value:#fff}@property --tw-ring-offset-shadow{syntax:"*";inherits:false;initial-value:0 0 #0000}
package/lib/index.js CHANGED
@@ -1,291 +1,11 @@
1
- import { forwardRef } from 'react';
2
- import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
1
+ import { IconClose } from '@liner-fe/icon';
3
2
  import { IconButton, Title, Paragraph, Button, TextButton } from '@liner-fe/prism';
4
3
  import { Dialog } from 'radix-ui';
5
4
  import clsx from 'clsx';
6
5
  import { twMerge } from 'tailwind-merge';
6
+ import { jsx, Fragment, jsxs } from 'react/jsx-runtime';
7
7
 
8
- // ../icon/lib/index.js
9
-
10
- // ../../node_modules/@toss/utils/esm/hexToRgba.mjs
11
- function parseHexValueStr(str) {
12
- return parseInt(str, 16);
13
- }
14
- function isValidHexValue(hex) {
15
- var regex = /^#?[0-9A-Fa-f]{6}$/;
16
- return regex.test(hex);
17
- }
18
- function isAlphaValue(alpha) {
19
- return 0 <= alpha && alpha <= 1;
20
- }
21
- function hexToRgba(hex) {
22
- var alpha = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 1;
23
- if (!isValidHexValue(hex)) {
24
- throw new Error("Invalid hex value: ".concat(hex));
25
- }
26
- if (!isAlphaValue(alpha)) {
27
- throw new Error("Invalid alpha value(0~1): ".concat(alpha));
28
- }
29
- var normalizedHex = hex.startsWith("#") ? hex.slice(1) : hex;
30
- var r = parseHexValueStr(normalizedHex.slice(0, 2));
31
- var g = parseHexValueStr(normalizedHex.slice(2, 4));
32
- var b = parseHexValueStr(normalizedHex.slice(4, 6));
33
- return "rgba(".concat(r, ",").concat(g, ",").concat(b, ",").concat(alpha, ")");
34
- }
35
-
36
- // ../../internal/design-token-primitive/dist/index.mjs
37
- var breakpointOrigin = {
38
- xs: "0px",
39
- s: "600px",
40
- m: "1024px",
41
- l: "1366px",
42
- xl: "1536px",
43
- xxl: "1920px",
44
- xxxl: "2560px"
45
- };
46
- var makeBreakpoint = (key) => `@media (max-width: ${breakpointOrigin[key]})`;
47
- ({
48
- s: makeBreakpoint("s"),
49
- m: makeBreakpoint("m"),
50
- l: makeBreakpoint("l"),
51
- xl: makeBreakpoint("xl"),
52
- xxl: makeBreakpoint("xxl"),
53
- xxxl: makeBreakpoint("xxxl")
54
- });
55
- var iconSizeMap = {
56
- xs: 16,
57
- s: 20,
58
- m: 24,
59
- l: 32,
60
- xl: 40
61
- };
62
- var system = {
63
- // neutral / container
64
- "neutral-container-lowest": ["lp-pri-achromatic-white", "lp-pri-gray-cool-100"],
65
- "neutral-container-lowest-hover": ["lp-pri-gray-cool-980", "lp-pri-gray-cool-200"],
66
- "neutral-container-low": ["lp-pri-gray-cool-980", "lp-pri-gray-cool-200"],
67
- "neutral-container-low-hover": ["lp-pri-gray-cool-970", "lp-pri-gray-cool-250"],
68
- "neutral-container-mid": ["lp-pri-gray-cool-970", "lp-pri-gray-cool-250"],
69
- "neutral-container-mid-hover": ["lp-pri-gray-cool-950", "lp-pri-gray-cool-270"],
70
- "neutral-container-high": ["lp-pri-gray-cool-940", "lp-pri-gray-cool-250"],
71
- "neutral-container-high-hover": ["lp-pri-gray-cool-900", "lp-pri-gray-cool-300"],
72
- "neutral-container-highest": ["lp-pri-gray-cool-920", "lp-pri-gray-cool-300"],
73
- "neutral-container-static-lowest": ["lp-pri-achromatic-white", "lp-pri-achromatic-white"],
74
- "neutral-container-static-lowest-hover": ["lp-pri-gray-cool-980", "lp-pri-gray-cool-980"],
75
- "neutral-container-variation-lowest": ["lp-pri-achromatic-white", "lp-pri-gray-cool-200"],
76
- // neutral / fill / overlay
77
- "neutral-fill-overlay-lowest": ["lp-pri-gray-cool-dark-alpha-0", "lp-pri-gray-cool-dark-alpha-0"],
78
- "neutral-fill-overlay-lowest-hover": [
79
- "lp-pri-gray-cool-dark-alpha-6",
80
- "lp-pri-gray-cool-dark-alpha-12"
81
- ],
82
- "neutral-fill-overlay-low": ["lp-pri-gray-cool-dark-alpha-4", "lp-pri-gray-cool-dark-alpha-8"],
83
- "neutral-fill-overlay-low-hover": [
84
- "lp-pri-gray-cool-dark-alpha-8",
85
- "lp-pri-gray-cool-dark-alpha-20"
86
- ],
87
- "neutral-fill-overlay-mid": ["lp-pri-gray-cool-dark-alpha-8", "lp-pri-gray-cool-dark-alpha-16"],
88
- "neutral-fill-overlay-mid-hover": [
89
- "lp-pri-gray-cool-dark-alpha-16",
90
- "lp-pri-gray-cool-dark-alpha-32"
91
- ],
92
- "neutral-fill-overlay-high": ["lp-pri-gray-cool-dark-alpha-20", "lp-pri-gray-cool-dark-alpha-32"],
93
- "neutral-fill-overlay-high-hover": [
94
- "lp-pri-gray-cool-dark-alpha-28",
95
- "lp-pri-gray-cool-dark-alpha-44"
96
- ],
97
- "neutral-fill-overlay-highest": [
98
- "lp-pri-gray-cool-dark-alpha-72",
99
- "lp-pri-gray-cool-dark-alpha-72"
100
- ],
101
- // neutral / fill / opaque
102
- "neutral-fill-opaque-lowest": ["lp-pri-achromatic-white", "lp-pri-gray-cool-100"],
103
- "neutral-fill-opaque-lowest-hover": ["lp-pri-gray-cool-980", "lp-pri-gray-cool-200"],
104
- "neutral-fill-opaque-low": ["lp-pri-gray-cool-980", "lp-pri-gray-cool-200"],
105
- "neutral-fill-opaque-low-hover": ["lp-pri-gray-cool-970", "lp-pri-gray-cool-250"],
106
- "neutral-fill-opaque-static-lowest": ["lp-pri-achromatic-white", "lp-pri-achromatic-white"],
107
- // neutral / label
108
- "neutral-label-primary": ["lp-pri-gray-cool-100", "lp-pri-achromatic-white"],
109
- "neutral-label-secondary": ["lp-pri-gray-cool-dark-alpha-80", "lp-pri-gray-cool-light-alpha-64"],
110
- "neutral-label-tertiary": ["lp-pri-gray-cool-dark-alpha-48", "lp-pri-gray-cool-light-alpha-32"],
111
- "neutral-label-quaternary": ["lp-pri-gray-cool-dark-alpha-24", "lp-pri-gray-cool-light-alpha-20"],
112
- "neutral-label-static-primary": ["lp-pri-gray-cool-100", "lp-pri-gray-cool-100"],
113
- "neutral-label-static-secondary": [
114
- "lp-pri-gray-cool-dark-alpha-80",
115
- "lp-pri-gray-cool-dark-alpha-80"
116
- ],
117
- // neutral / border
118
- "neutral-border-overlay-strong": [
119
- "lp-pri-gray-cool-dark-alpha-64",
120
- "lp-pri-gray-cool-light-alpha-64"
121
- ],
122
- "neutral-border-overlay-normal": [
123
- "lp-pri-gray-cool-dark-alpha-24",
124
- "lp-pri-gray-cool-light-alpha-28"
125
- ],
126
- "neutral-border-overlay-subtle": [
127
- "lp-pri-gray-cool-dark-alpha-16",
128
- "lp-pri-gray-cool-light-alpha-20"
129
- ],
130
- "neutral-border-overlay-hint": [
131
- "lp-pri-gray-cool-dark-alpha-12",
132
- "lp-pri-gray-cool-light-alpha-12"
133
- ],
134
- "neutral-border-opaque-strong": ["lp-pri-gray-cool-100", "lp-pri-achromatic-white"],
135
- "neutral-border-opaque-normal": ["lp-pri-gray-cool-850", "lp-pri-gray-cool-350"],
136
- "neutral-border-opaque-subtle": ["lp-pri-gray-cool-920", "lp-pri-gray-cool-250"],
137
- // inverse / container
138
- "inverse-container-lowest": ["lp-pri-gray-cool-100", "lp-pri-achromatic-white"],
139
- "inverse-container-lowest-hover": ["lp-pri-gray-cool-200", "lp-pri-gray-cool-980"],
140
- "inverse-container-low": ["lp-pri-gray-cool-200", "lp-pri-gray-cool-980"],
141
- "inverse-container-low-hover": ["lp-pri-gray-cool-250", "lp-pri-gray-cool-970"],
142
- "inverse-container-mid": ["lp-pri-gray-cool-250", "lp-pri-gray-cool-970"],
143
- "inverse-container-mid-hover": ["lp-pri-gray-cool-270", "lp-pri-gray-cool-950"],
144
- "inverse-container-high": ["lp-pri-gray-cool-250", "lp-pri-gray-cool-940"],
145
- "inverse-container-high-hover": ["lp-pri-gray-cool-300", "lp-pri-gray-cool-900"],
146
- "inverse-container-static-high": ["lp-pri-gray-cool-250", "lp-pri-gray-cool-250"],
147
- "inverse-container-static-high-hover": ["lp-pri-gray-cool-270", "lp-pri-gray-cool-270"],
148
- "inverse-container-highest": ["lp-pri-gray-cool-300", "lp-pri-gray-cool-920"],
149
- // inverse / fill / opaque
150
- "inverse-fill-opaque-lowest": ["lp-pri-gray-cool-100", "lp-pri-achromatic-white"],
151
- "inverse-fill-opaque-lowest-hover": ["lp-pri-gray-cool-200", "lp-pri-gray-cool-980"],
152
- "inverse-fill-opaque-low": ["lp-pri-gray-cool-200", "lp-pri-gray-cool-980"],
153
- "inverse-fill-opaque-low-hover": ["lp-pri-gray-cool-250", "lp-pri-gray-cool-970"],
154
- "inverse-fill-opaque-mid": ["lp-pri-gray-cool-250", "lp-pri-gray-cool-970"],
155
- // inverse / fill
156
- "inverse-fill-mid": ["lp-pri-achromatic-white", "lp-pri-gray-cool-light-alpha-24"],
157
- "inverse-fill-mid-hover": ["lp-pri-gray-cool-dark-alpha-32", "lp-pri-gray-cool-dark-alpha-16"],
158
- // inverse / label
159
- "inverse-label-primary": ["lp-pri-achromatic-white", "lp-pri-gray-cool-100"],
160
- "inverse-label-secondary": ["lp-pri-gray-cool-light-alpha-64", "lp-pri-gray-cool-dark-alpha-80"],
161
- "inverse-label-tertiary": ["lp-pri-gray-cool-light-alpha-32", "lp-pri-gray-cool-dark-alpha-48"],
162
- "inverse-label-quaternary": ["lp-pri-gray-cool-light-alpha-20", "lp-pri-gray-cool-dark-alpha-24"],
163
- "inverse-label-static-primary": ["lp-pri-achromatic-white", "lp-pri-achromatic-white"],
164
- "inverse-label-static-secondary": [
165
- "lp-pri-gray-cool-light-alpha-64",
166
- "lp-pri-gray-cool-light-alpha-64"
167
- ],
168
- // inverse / border
169
- "inverse-border-overlay-strong": [
170
- "lp-pri-gray-cool-light-alpha-64",
171
- "lp-pri-gray-cool-dark-alpha-64"
172
- ],
173
- "inverse-border-overlay-normal": [
174
- "lp-pri-gray-cool-light-alpha-28",
175
- "lp-pri-gray-cool-dark-alpha-24"
176
- ],
177
- "inverse-border-overlay-subtle": [
178
- "lp-pri-gray-cool-light-alpha-20",
179
- "lp-pri-gray-cool-dark-alpha-16"
180
- ],
181
- "inverse-border-overlay-hint": [
182
- "lp-pri-gray-cool-light-alpha-12",
183
- "lp-pri-gray-cool-dark-alpha-12"
184
- ],
185
- "inverse-border-opaque-strong": ["lp-pri-achromatic-white", "lp-pri-gray-cool-100"],
186
- "inverse-border-opaque-normal": ["lp-pri-gray-cool-350", "lp-pri-gray-cool-850"],
187
- "inverse-border-opaque-subtle": ["lp-pri-gray-cool-250", "lp-pri-gray-cool-920"],
188
- // brand / container
189
- "brand-container-mid": ["lp-pri-brand-original-200", "lp-pri-brand-variation-380"],
190
- "brand-container-mid-hover": ["lp-pri-brand-original-150", "lp-pri-brand-variation-420"],
191
- "brand-container-high": ["lp-pri-brand-original-500", "lp-pri-brand-original-500"],
192
- // brand / fill
193
- "brand-fill-mid": ["lp-pri-brand-original-200", "lp-pri-brand-variation-380"],
194
- "brand-fill-mid-hover": ["lp-pri-brand-original-150", "lp-pri-brand-variation-420"],
195
- "brand-fill-low": ["lp-pri-brand-original-990", "lp-pri-brand-variation-350"],
196
- "brand-fill-low-hover": ["lp-pri-brand-original-980", "lp-pri-brand-variation-380"],
197
- // brand / label
198
- "brand-label-primary": ["lp-pri-brand-original-500", "lp-pri-brand-variation-950"],
199
- "brand-label-secondary": ["lp-pri-brand-original-200", "lp-pri-achromatic-white"],
200
- "brand-label-variation-secondary": ["lp-pri-brand-original-200", "lp-pri-brand-variation-970"],
201
- // brand / border
202
- "brand-border-opaque-normal": ["lp-pri-brand-original-200", "lp-pri-achromatic-white"],
203
- "brand-border-opaque-strong": ["lp-pri-brand-original-500", "lp-pri-brand-variation-950"],
204
- // brand / inverse label
205
- "brandinverse-label-primary": ["lp-pri-brand-variation-950", "lp-pri-brand-original-500"],
206
- "brandinverse-label-secondary": ["lp-pri-achromatic-white", "lp-pri-brand-original-200"],
207
- "brandinverse-label-static-primary": ["lp-pri-brand-variation-950", "lp-pri-brand-variation-950"],
208
- // accent / label
209
- "accent-label-primary": ["lp-pri-rainbow-orange-700", "lp-pri-rainbow-orange-730"],
210
- "accent-label-yellow": ["lp-pri-rainbow-yellow-500", "lp-pri-rainbow-yellow-600"],
211
- "accent-label-mint": ["lp-pri-rainbow-mint-500", "lp-pri-rainbow-mint-600"],
212
- "accent-label-cyan": ["lp-pri-rainbow-cyan-500", "lp-pri-rainbow-cyan-600"],
213
- "accent-label-purple": ["lp-pri-rainbow-purple-500", "lp-pri-rainbow-purple-600"],
214
- "accent-label-pink": ["lp-pri-rainbow-pink-500", "lp-pri-rainbow-pink-600"],
215
- // accent / fill
216
- "accent-fill-primary": ["lp-pri-rainbow-orange-800", "lp-pri-rainbow-orange-500"],
217
- // function / fill
218
- "function-fill-positive-mid": ["lp-pri-rainbow-green-500", "lp-pri-rainbow-green-600"],
219
- "function-fill-negative-mid": ["lp-pri-rainbow-red-500", "lp-pri-rainbow-red-500"],
220
- "function-fill-negative-mid-hover": ["lp-pri-rainbow-red-400", "lp-pri-rainbow-red-600"],
221
- "function-fill-caution": ["lp-pri-rainbow-orange-700", "lp-pri-rainbow-orange-730"],
222
- "function-fill-highlight": ["lp-pri-rainbow-lime_green-970", "lp-pri-rainbow-lime_green-300"],
223
- "function-fill-selection": ["lp-pri-brand-original-alpha-8", "lp-pri-achromatic-white-alpha-12"],
224
- "function-fill-drag": ["lp-pri-brand-original-alpha-12", "lp-pri-achromatic-white-alpha-16"],
225
- "function-fill-positive-low": ["lp-pri-rainbow-green-900", "lp-pri-rainbow-green-200"],
226
- "function-fill-negative-low": ["lp-pri-rainbow-red-900", "lp-pri-rainbow-red-200"],
227
- // function / label
228
- "function-label-positive": ["lp-pri-rainbow-green-500", "lp-pri-rainbow-green-600"],
229
- "function-label-negative": ["lp-pri-rainbow-red-500", "lp-pri-rainbow-red-500"],
230
- "function-label-caution": ["lp-pri-rainbow-orange-700", "lp-pri-rainbow-orange-730"],
231
- "function-label-link": ["lp-pri-rainbow-cyan-300", "lp-pri-rainbow-cyan-600"],
232
- // cover
233
- "cover-dim-page": ["lp-pri-achromatic-black-alpha-48", "lp-pri-achromatic-black-alpha-48"]
234
- };
235
- var alphas = [
236
- 80,
237
- 72,
238
- 64,
239
- 56,
240
- 50,
241
- 48,
242
- 44,
243
- 40,
244
- 36,
245
- 32,
246
- 28,
247
- 24,
248
- 20,
249
- 16,
250
- 12,
251
- 8,
252
- 6,
253
- 4,
254
- 1,
255
- 0
256
- ];
257
- var alphaPrimitive = [
258
- { name: "lp-pri-achromatic-white", value: "#FFFFFF" },
259
- { name: "lp-pri-gray-cool-dark", value: "#6D6D70" },
260
- { name: "lp-pri-gray-cool-light", value: "#E9E9EB" },
261
- { name: "lp-pri-brand-original", value: "#14371B" },
262
- { name: "lp-pri-brand-variation", value: "#236638" },
263
- { name: "lp-pri-achromatic-black", value: "#000000" }
264
- ];
265
- var generateAlpha = () => {
266
- alphaPrimitive.forEach(({ name, value }) => {
267
- alphas.forEach((alpha) => {
268
- hexToRgba(value.slice(1), alpha / 100);
269
- });
270
- });
271
- };
272
- generateAlpha();
273
- Object.entries(system).map(([key, value]) => {
274
- value[0];
275
- value[1];
276
- });
277
- var IconClose = /* @__PURE__ */ forwardRef(
278
- ({ fill = false, thick = false, size: size2 = "m", type = "neutral-label-primary", className, fillType = "inverse-label-primary", ...props }, ref) => {
279
- if (fill && thick) {
280
- return /* @__PURE__ */ jsx("svg", { width: iconSizeMap[size2], height: iconSizeMap[size2], viewBox: "0 0 48 48", fill: "none", ref, className, ...props, children: /* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M44 24C44 35.0457 35.0457 44 24 44C12.9543 44 4 35.0457 4 24C4 12.9543 12.9543 4 24 4C35.0457 4 44 12.9543 44 24ZM24.0304 21.2242L29.6689 15.5858L32.4973 18.4142L26.8588 24.0527L32.4504 29.6443L29.622 32.4727L24.0304 26.8811L18.4859 32.4256L15.6574 29.5972L21.202 24.0527L15.6106 18.4613L18.439 15.6329L24.0304 21.2242Z", style: { fill: `var(--${type})` } }) });
281
- } else if (fill) {
282
- return /* @__PURE__ */ jsx("svg", { width: iconSizeMap[size2], height: iconSizeMap[size2], viewBox: "0 0 48 48", fill: "none", ref, className, ...props, children: /* @__PURE__ */ jsx("path", { fillRule: "evenodd", clipRule: "evenodd", d: "M44 24C44 35.0457 35.0457 44 24 44C12.9543 44 4 35.0457 4 24C4 12.9543 12.9543 4 24 4C35.0457 4 44 12.9543 44 24ZM24.0304 21.9314L30.0224 15.9393L32.1437 18.0607L26.1517 24.0527L32.0969 29.9978L29.9756 32.1192L24.0304 26.174L18.1323 32.0721L16.011 29.9508L21.9091 24.0527L15.9641 18.1077L18.0855 15.9864L24.0304 21.9314Z", style: { fill: `var(--${type})` } }) });
283
- } else if (thick) {
284
- return /* @__PURE__ */ jsx("svg", { width: iconSizeMap[size2], height: iconSizeMap[size2], viewBox: "0 0 48 48", fill: "none", ref, className, ...props, children: /* @__PURE__ */ jsx("path", { d: "M24.0006 21.1712L12.4153 9.58594L9.58692 12.4144L21.1722 23.9997L9.58691 35.585L12.4153 38.4134L24.0006 26.8281L35.5859 38.4134L38.4144 35.585L26.8291 23.9997L38.4144 12.4144L35.5859 9.58594L24.0006 21.1712Z", style: { fill: `var(--${type})` } }) });
285
- }
286
- return /* @__PURE__ */ jsx("svg", { width: iconSizeMap[size2], height: iconSizeMap[size2], viewBox: "0 0 48 48", fill: "none", ref, className, ...props, children: /* @__PURE__ */ jsx("path", { d: "M24.0006 21.8783L12.0618 9.93945L9.94043 12.0608L21.8793 23.9996L9.94043 35.9385L12.0618 38.0598L24.0006 26.1209L35.9395 38.0598L38.0608 35.9385L26.1219 23.9996L38.0608 12.0608L35.9395 9.93946L24.0006 21.8783Z", style: { fill: `var(--${type})` } }) });
287
- }
288
- );
8
+ // src/template-dialog.tsx
289
9
  var tw = (...args) => twMerge(clsx(args));
290
10
  var TemplateDialog = ({
291
11
  open = false,
package/package.json CHANGED
@@ -1,27 +1,18 @@
1
1
  {
2
2
  "name": "@liner-fe/design-library",
3
- "version": "1.0.1",
3
+ "version": "1.1.2",
4
4
  "type": "module",
5
- "scripts": {
6
- "lint": "eslint .",
7
- "preview": "vite preview",
8
- "storybook": "storybook dev -p 6006",
9
- "build-storybook": "storybook build",
10
- "build": "yarn tsup --config ./tsup.config.ts && yarn copy-tailwind",
11
- "build:package": "yarn build",
12
- "prepack": "yarn build",
13
- "copy-tailwind": "tailwindcss -c tailwind.config.js -o lib/index.css --minify"
14
- },
15
5
  "dependencies": {
16
- "@liner-fe/design-token": "workspace:^",
17
- "@liner-fe/prism": "workspace:^",
18
6
  "@tailwindcss/vite": "^4.1.14",
19
7
  "clsx": "^2.1.1",
20
8
  "radix-ui": "^1.4.3",
21
9
  "react": "18.2.0",
22
10
  "react-dom": "18.2.0",
23
11
  "tailwind-merge": "^3.3.1",
24
- "tailwindcss": "^4.1.14"
12
+ "tailwindcss": "^4.1.14",
13
+ "@liner-fe/design-token": "^2.5.33",
14
+ "@liner-fe/icon": "^0.2.32",
15
+ "@liner-fe/prism": "^2.9.41"
25
16
  },
26
17
  "devDependencies": {
27
18
  "@chromatic-com/storybook": "^4.1.1",
@@ -39,6 +30,7 @@
39
30
  "@vitejs/plugin-react": "^5.0.4",
40
31
  "@vitest/browser": "^3.2.4",
41
32
  "@vitest/coverage-v8": "^3.2.4",
33
+ "chromatic": "^13.3.1",
42
34
  "eslint": "^9.36.0",
43
35
  "eslint-plugin-react-hooks": "^5.2.0",
44
36
  "eslint-plugin-react-refresh": "^0.4.22",
@@ -60,5 +52,14 @@
60
52
  ],
61
53
  "main": "./lib/index.js",
62
54
  "types": "./lib/index.d.ts",
63
- "style": "./lib/index.css"
64
- }
55
+ "style": "./lib/index.css",
56
+ "scripts": {
57
+ "lint": "eslint .",
58
+ "preview": "vite preview",
59
+ "storybook": "storybook dev -p 6006",
60
+ "build-storybook": "storybook build",
61
+ "build": "pnpm tsup --config ./tsup.config.ts && pnpm copy-tailwind",
62
+ "build:package": "pnpm build",
63
+ "copy-tailwind": "tailwindcss -c tailwind.config.js -i src/index.css -o lib/index.css --minify"
64
+ }
65
+ }