@reopt-ai/opt-ui 1.12.5 → 1.14.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.
- package/CHANGELOG.md +236 -0
- package/COMPONENT_CATALOG.md +670 -123
- package/README.md +9 -7
- package/dist/core/index.cjs +13 -13
- package/dist/core/index.d.cts +2 -2
- package/dist/core/index.d.ts +2 -2
- package/dist/core/index.js +2 -2
- package/dist/docs/02-components/01-core.md +260 -61
- package/dist/docs/02-components/02-visuals.md +1 -1
- package/dist/docs/02-components/03-shells.md +431 -63
- package/dist/docs/02-components/04-surfaces.md +1 -1
- package/dist/docs/02-components/index.md +4 -4
- package/dist/{field-sidebar-YaWHfLLW.d.ts → field-sidebar-CJ4HxP8D.d.cts} +824 -2
- package/dist/{field-sidebar-Ct8c9L4V.d.cts → field-sidebar-DnhpcT2A.d.ts} +824 -2
- package/dist/{field-sidebar-DwtrYSSt.cjs → field-sidebar-ePqFX6MN.cjs} +4339 -244
- package/dist/{field-sidebar-Ben7MQD4.js → field-sidebar-mSVCMAZp.js} +3976 -235
- package/dist/id-registry.cjs +80 -0
- package/dist/id-registry.js +80 -0
- package/dist/id-registry.json +170 -0
- package/dist/index.cjs +1096 -1476
- package/dist/index.d.cts +243 -92
- package/dist/index.d.ts +243 -92
- package/dist/index.js +1004 -1415
- package/dist/{key-pad-menu-BpQebDyw.cjs → key-pad-menu-BgtSL3xe.cjs} +60 -487
- package/dist/{key-pad-menu-CYYtS_Tl.js → key-pad-menu-CqFI6la9.js} +61 -422
- package/dist/{key-pad-menu-CwcY_Vps.d.cts → key-pad-menu-D6pYzaj-.d.cts} +14 -56
- package/dist/{key-pad-menu-WBJShCJn.d.ts → key-pad-menu-Yh7Fpb8m.d.ts} +14 -56
- package/dist/meta.cjs +1312 -12
- package/dist/meta.js +1312 -12
- package/dist/shells/index.cjs +20 -1
- package/dist/shells/index.d.cts +2 -2
- package/dist/shells/index.d.ts +2 -2
- package/dist/shells/index.js +2 -2
- package/dist/{text-truncate-CQyfUZvq.d.cts → text-truncate-Bbul-jMD.d.cts} +52 -30
- package/dist/{text-truncate-CQyfUZvq.d.ts → text-truncate-Bbul-jMD.d.ts} +52 -30
- package/dist/{text-truncate-Dlm7JwDf.js → text-truncate-Bd-0WkSP.js} +461 -97
- package/dist/{text-truncate-CqdiQuj8.cjs → text-truncate-BeYW6XZu.cjs} +523 -99
- package/dist/theme/server.cjs +2 -2
- package/dist/theme/server.d.cts +2 -2
- package/dist/theme/server.d.ts +2 -2
- package/dist/theme/server.js +2 -2
- package/package.json +6 -2
package/dist/theme/server.cjs
CHANGED
|
@@ -172,7 +172,7 @@ function hasStorageMutation(storage) {
|
|
|
172
172
|
}
|
|
173
173
|
/** Handles is theme preset. */
|
|
174
174
|
function isThemePreset(value) {
|
|
175
|
-
return typeof value === "string" &&
|
|
175
|
+
return typeof value === "string" && THEME_PRESET_IDS.includes(value);
|
|
176
176
|
}
|
|
177
177
|
/** Handles is theme mode. */
|
|
178
178
|
function isThemeMode(value) {
|
|
@@ -241,7 +241,7 @@ function coerceThemeMode(mode, allowedModes, fallback = "system") {
|
|
|
241
241
|
*/
|
|
242
242
|
function createThemeBootScript(defaultPreset = "default", defaultMode = "system", options = {}) {
|
|
243
243
|
var _options$allowedModes, _allowedModes$2;
|
|
244
|
-
const presetValues = JSON.stringify(
|
|
244
|
+
const presetValues = JSON.stringify(THEME_PRESET_IDS);
|
|
245
245
|
const modeValues = JSON.stringify(THEME_MODE_VALUES);
|
|
246
246
|
const allowedModes = ((_options$allowedModes = options.allowedModes) === null || _options$allowedModes === void 0 ? void 0 : _options$allowedModes.length) ? options.allowedModes : THEME_MODE_VALUES;
|
|
247
247
|
const allowedModeValues = JSON.stringify(allowedModes);
|
package/dist/theme/server.d.cts
CHANGED
|
@@ -11,8 +11,8 @@ interface ThemeDescriptor {
|
|
|
11
11
|
* Optional engine input that approximates this preset. Used by
|
|
12
12
|
* ThemeSwitcher to derive swatches when `switcherSwatches` is omitted, and
|
|
13
13
|
* as the starting point when a user clones a preset into a custom palette.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* `gen-theme-css.ts` does not consume this field — the emitted token values
|
|
15
|
+
* come from `PRESET_TOKENS` in `tokens.ts`.
|
|
16
16
|
*/
|
|
17
17
|
readonly palette?: PaletteConfig;
|
|
18
18
|
/**
|
package/dist/theme/server.d.ts
CHANGED
|
@@ -11,8 +11,8 @@ interface ThemeDescriptor {
|
|
|
11
11
|
* Optional engine input that approximates this preset. Used by
|
|
12
12
|
* ThemeSwitcher to derive swatches when `switcherSwatches` is omitted, and
|
|
13
13
|
* as the starting point when a user clones a preset into a custom palette.
|
|
14
|
-
*
|
|
15
|
-
*
|
|
14
|
+
* `gen-theme-css.ts` does not consume this field — the emitted token values
|
|
15
|
+
* come from `PRESET_TOKENS` in `tokens.ts`.
|
|
16
16
|
*/
|
|
17
17
|
readonly palette?: PaletteConfig;
|
|
18
18
|
/**
|
package/dist/theme/server.js
CHANGED
|
@@ -161,7 +161,7 @@ function hasStorageMutation(storage) {
|
|
|
161
161
|
}
|
|
162
162
|
/** Handles is theme preset. */
|
|
163
163
|
function isThemePreset(value) {
|
|
164
|
-
return typeof value === "string" &&
|
|
164
|
+
return typeof value === "string" && THEME_PRESET_IDS.includes(value);
|
|
165
165
|
}
|
|
166
166
|
/** Handles is theme mode. */
|
|
167
167
|
function isThemeMode(value) {
|
|
@@ -230,7 +230,7 @@ function coerceThemeMode(mode, allowedModes, fallback = "system") {
|
|
|
230
230
|
*/
|
|
231
231
|
function createThemeBootScript(defaultPreset = "default", defaultMode = "system", options = {}) {
|
|
232
232
|
var _options$allowedModes, _allowedModes$2;
|
|
233
|
-
const presetValues = JSON.stringify(
|
|
233
|
+
const presetValues = JSON.stringify(THEME_PRESET_IDS);
|
|
234
234
|
const modeValues = JSON.stringify(THEME_MODE_VALUES);
|
|
235
235
|
const allowedModes = ((_options$allowedModes = options.allowedModes) === null || _options$allowedModes === void 0 ? void 0 : _options$allowedModes.length) ? options.allowedModes : THEME_MODE_VALUES;
|
|
236
236
|
const allowedModeValues = JSON.stringify(allowedModes);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@reopt-ai/opt-ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.14.0",
|
|
4
4
|
"description": "접근성 우선 UI 컴포넌트 라이브러리. opt-ui-primitives Core, 비즈니스 Shells, 페이지 Surfaces.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -148,7 +148,7 @@
|
|
|
148
148
|
"registry": "https://registry.npmjs.org"
|
|
149
149
|
},
|
|
150
150
|
"dependencies": {
|
|
151
|
-
"@reopt-ai/opt-charts": "^1.
|
|
151
|
+
"@reopt-ai/opt-charts": "^1.7.0",
|
|
152
152
|
"@reopt-ai/opt-meta": "^0.1.0",
|
|
153
153
|
"@reopt-ai/opt-palette": "^1.0.0",
|
|
154
154
|
"@reopt-ai/opt-ui-primitives": "^1.5.2",
|
|
@@ -162,6 +162,7 @@
|
|
|
162
162
|
},
|
|
163
163
|
"peerDependencies": {
|
|
164
164
|
"@codemirror/autocomplete": "^6.20.1",
|
|
165
|
+
"@codemirror/commands": "^6.8.1",
|
|
165
166
|
"@codemirror/lang-sql": "^6.10.0",
|
|
166
167
|
"@codemirror/state": "^6.5.4",
|
|
167
168
|
"@codemirror/theme-one-dark": "^6.1.3",
|
|
@@ -174,6 +175,9 @@
|
|
|
174
175
|
"@codemirror/autocomplete": {
|
|
175
176
|
"optional": true
|
|
176
177
|
},
|
|
178
|
+
"@codemirror/commands": {
|
|
179
|
+
"optional": true
|
|
180
|
+
},
|
|
177
181
|
"@codemirror/lang-sql": {
|
|
178
182
|
"optional": true
|
|
179
183
|
},
|