@citrusworx/juiceui 1.0.0 → 1.0.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/LICENSE +21 -0
- package/README.md +14 -14
- package/dist/index.css +18212 -26
- package/dist/index.js +702 -680
- package/dist/themes/kiwipress.css +4 -1
- package/package.json +13 -2
- package/dist/components/form/cc/cc.d.ts +0 -1
- package/dist/components/index.d.ts +0 -1
- package/dist/js/juice.d.ts +0 -68
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CitrusWorx
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -50,7 +50,7 @@ A page that sets `theme` and never imports a theme stylesheet has structure and
|
|
|
50
50
|
|
|
51
51
|
## Themes
|
|
52
52
|
|
|
53
|
-
Themes are
|
|
53
|
+
Themes are Emerging. Set `theme="<id>"` on the root and import that id.
|
|
54
54
|
|
|
55
55
|
Core:
|
|
56
56
|
|
|
@@ -84,7 +84,7 @@ The top-level JS entry is small. Thirty-two runtimes stay Emerging.
|
|
|
84
84
|
|
|
85
85
|
Navigation through field (twenty-five) shipped in `@citrusworx/juiceui@0.9.2`. Icon button, avatar, and table shipped in 0.9.3. Pressable and touchable row shipped in 0.9.4. Keyboard avoider shipped in 0.9.5. Sheet is the thirty-second and shipped in 0.9.6.
|
|
86
86
|
|
|
87
|
-
The shared overlay stack shipped in **0.9.7**. npm latest is **0.
|
|
87
|
+
The shared overlay stack shipped in **0.9.7**. npm latest is **1.0.0** (published 2026-11-17, `gitHead` `bd5b25f8`). Last-opened-wins Escape and outside pointer cover modal, drawer, sheet, popover, menu, and combobox. The dismiss reason is `'cascade'`. A cascaded dialog skips focus restore. A non-modal sheet suspends the modal trap under it. Tooltip and toast stay off that stack. All thirty-two Emerging runtimes stay Emerging. The CDN pin below is the published 1.0.0 tarball and includes that stack.
|
|
88
88
|
|
|
89
89
|
The full index, including how to choose between similar components, is [Runtime behavior](../../docs/juice/juice-runtime-behavior.md#components).
|
|
90
90
|
|
|
@@ -197,7 +197,7 @@ Icon button, avatar, table, pressable, touchable row, keyboard avoider, and shee
|
|
|
197
197
|
|
|
198
198
|
### `juice:change` and `getState`
|
|
199
199
|
|
|
200
|
-
Interactive runtimes dispatch a bubbling `juice:change` from the widget host when observable state changes. `detail` is `{ runtime, state }`. `getState()` reads that shape.
|
|
200
|
+
Interactive runtimes dispatch a bubbling `juice:change` from the widget host when observable state changes. `detail` is `{ runtime, state }`. `getState()` reads that shape. A second controller beside the auto-started one dispatches a second `juice:change` for the same change. The click or key is still claimed once. See [Automatic behavior](../../docs/juice/juice-runtime-behavior.md#automatic-behavior).
|
|
201
201
|
|
|
202
202
|
Select, input, and textarea publish through native `input` and `change`. They still expose `getState()`.
|
|
203
203
|
|
|
@@ -210,7 +210,7 @@ npm `@citrusworx/sigjs` **1.0.0** and **0.7.2** `bind` names twenty-eight runtim
|
|
|
210
210
|
- `@citrusworx/sigjs@0.7.0` and `@citrusworx/sigjs@0.7.1` stop at twenty-five names, through `textarea`.
|
|
211
211
|
- Binding `icon-button`, `avatar`, or `table` against `@citrusworx/juiceui@0.9.1` or `@citrusworx/juiceui@0.9.2` throws. Those cuts do not export their start functions. The three exports shipped in 0.9.3. Pressable and touchable row shipped in 0.9.4. Keyboard avoider shipped in 0.9.5. Sheet shipped in 0.9.6. Binding sheet on **0.9.5** throws.
|
|
212
212
|
|
|
213
|
-
Juice works without Sig. The optional adapter is `@citrusworx/sigjs/juice` only.
|
|
213
|
+
Juice works without Sig. The optional adapter is `@citrusworx/sigjs/juice` only. Published npm `@citrusworx/sigjs@1.1.2` declares an optional peer `@citrusworx/juiceui` `>=0.9.1 <1`. The workspace peer is `>=0.9.1 <2`.
|
|
214
214
|
|
|
215
215
|
See [`juice:change`](../../docs/juice/juice-runtime-behavior.md#juicechange) and [Sig.js + Juice](../../docs/sigjs/sig-juice-integration.md#runtime-binding).
|
|
216
216
|
|
|
@@ -366,7 +366,7 @@ Built-in breakpoints, `row` collapse, and scaled spacing are documented in [Resp
|
|
|
366
366
|
|
|
367
367
|
## Surfaces
|
|
368
368
|
|
|
369
|
-
|
|
369
|
+
Frozen attribute names: `surfaceTone="soft|strong|muted"`, `borderStrength="soft|bold"`, `blur="sm|md"`, `shadowTone="cool|warm"`, `overlay="frost|tint"`, and `variant="monochromatic|glass|tinted"`. The maturity matrix does not list surfaces as a separate Stable row. Themes bind `--juice-surface-*`, `--juice-border-strength-*`, `--juice-shadow-tone-*`, and `--juice-overlay-*` roles.
|
|
370
370
|
|
|
371
371
|
Variant recipes compose those same roles. Standalone blur uses fixed `6px` / `16px` lengths.
|
|
372
372
|
|
|
@@ -374,7 +374,7 @@ See [Surfaces](../../docs/juice/juice-surfaces.md).
|
|
|
374
374
|
|
|
375
375
|
## Motion
|
|
376
376
|
|
|
377
|
-
Motion is
|
|
377
|
+
Motion is Emerging. The `[motion]` catalog and `data-motion-state` are Frozen. The helpers stay Emerging. Use the `motion` attribute for animations (for example `motion="fade.in"`, `motion="spin::fast"`). See [Animations](../../docs/juice/juice-animations.md).
|
|
378
378
|
|
|
379
379
|
## Package surface
|
|
380
380
|
|
|
@@ -410,15 +410,15 @@ If you are hosting Juice assets yourself, the main built files are:
|
|
|
410
410
|
|
|
411
411
|
Load core plus at least one theme CSS file when using `theme="..."` on the root element.
|
|
412
412
|
|
|
413
|
-
There is no first-party Juice CDN. Those `dist/` files are on npm, so jsDelivr and unpkg serve them (verified for `@citrusworx/juiceui@0.
|
|
413
|
+
There is no first-party Juice CDN. Those `dist/` files are on npm, so jsDelivr and unpkg serve them (verified for `@citrusworx/juiceui@1.0.0`):
|
|
414
414
|
|
|
415
415
|
```html
|
|
416
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@0.
|
|
417
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@0.
|
|
418
|
-
<script type="module" src="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@0.
|
|
416
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@1.0.0/dist/index.css" />
|
|
417
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@1.0.0/dist/themes/kiwipress.css" />
|
|
418
|
+
<script type="module" src="https://cdn.jsdelivr.net/npm/@citrusworx/juiceui@1.0.0/dist/index.js"></script>
|
|
419
419
|
```
|
|
420
420
|
|
|
421
|
-
The JS module is optional. Pin a version. You can also copy the same files out of `node_modules/@citrusworx/juiceui/dist/` next to a plain HTML page. unpkg uses the same paths under `https://unpkg.com/@citrusworx/juiceui@0.
|
|
421
|
+
The JS module is optional. Pin a version. You can also copy the same files out of `node_modules/@citrusworx/juiceui/dist/` next to a plain HTML page. unpkg uses the same paths under `https://unpkg.com/@citrusworx/juiceui@1.0.0/`.
|
|
422
422
|
|
|
423
423
|
### What the build contains
|
|
424
424
|
|
|
@@ -477,9 +477,9 @@ Current release policy:
|
|
|
477
477
|
- keep `dist/icons/` under a separate icon payload budget
|
|
478
478
|
- avoid adding new runtime asset directories unless they are part of the published package contract
|
|
479
479
|
|
|
480
|
-
##
|
|
480
|
+
## Draft workspace config
|
|
481
481
|
|
|
482
|
-
|
|
482
|
+
The source workspace includes `juice.config.yaml` and an experimental theme generator. Both remain **Draft / Post-v1**. For themes in an npm app, [author CSS and import it after core](../../docs/juice/juice-theme-authoring.md#2-app-owned-themes).
|
|
483
483
|
|
|
484
484
|
This is intended for describing project-level branding concerns like:
|
|
485
485
|
|
|
@@ -495,7 +495,7 @@ The generator writes those derived theme contracts into `src/.generated/themes/<
|
|
|
495
495
|
App-owned themes can be generated from an app config and committed or imported locally:
|
|
496
496
|
|
|
497
497
|
```bash
|
|
498
|
-
yarn workspace @citrusworx/juiceui generate:themes --config ../../apps/
|
|
498
|
+
yarn workspace @citrusworx/juiceui generate:themes --config ../../apps/miamakes/front/juice.theme.yaml --css-out ../../apps/miamakes/front/src/generated/miamakes-theme.css
|
|
499
499
|
```
|
|
500
500
|
|
|
501
501
|
That lets an app keep its brand config while still relying on Juice for spacing, layout, surfaces, and responsive structure.
|