@waggylabs/yumekit 0.5.2 → 0.5.3

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/llm.txt CHANGED
@@ -3,7 +3,7 @@
3
3
  A modern, framework-agnostic Web Components UI kit providing 51 production-ready custom HTML elements. Built entirely on native web standards with zero external runtime dependencies.
4
4
 
5
5
  ## Version
6
- 0.5.2
6
+ 0.5.3
7
7
 
8
8
  ## License
9
9
  MIT
@@ -158,7 +158,8 @@ Tag: `<y-button>`
158
158
  Attributes:
159
159
  - `color` — predefined scheme (`"base"` | `"primary"` | `"secondary"` | `"success"` | `"warning"` | `"error"` | `"help"`) or any CSS color (`#hex`, `rgb()`, `hsl()`)
160
160
  - `size` — `"small"` | `"medium"` (default) | `"large"`
161
- - `style-type` — `"outlined"` (default) | `"filled"` | `"flat"`
161
+ - `variant` — `"outlined"` (default) | `"filled"` | `"flat"`
162
+ - `style-type` — **deprecated** alias for `variant`; still honored (with `variant` winning if both are set) but will be removed in a future major version
162
163
  - `padding-mode` — `"auto"` (default) | `"square"` | `"wide"`. Controls whether the inline padding collapses to the block value: `auto` does so for icon-only buttons; `square` forces it (e.g. paginator number buttons); `wide` never does
163
164
  - `left-icon` — icon name (from registry)
164
165
  - `right-icon` — icon name (from registry)
@@ -176,7 +177,7 @@ Attributes:
176
177
  <y-button href="/docs" target="_blank" rel="noopener">Docs</y-button>
177
178
  ```
178
179
 
179
- CSS Custom Properties (per `small|medium|large`): `--component-button-padding-{size}` sets padding on all sides; `--component-button-padding-block-{size}` and `--component-button-padding-inline-{size}` override the vertical / horizontal axes independently and fall back to `--component-button-padding-{size}` when unset (the Material and Shadcn themes use this for wider buttons). Whether the inline axis collapses to the block value is governed by the `padding-mode` attribute above (default `auto` = collapse for icon-only buttons). `--component-control-height-{size}` sets the min-height (shared with `y-input` so fields and buttons stay the same height per theme); falls back to `--sizing-{size}`. For `style-type="outlined"`, the border is sourced from the button's matching semantic border token (`--base-border`, `--primary-border`, `--error-border`, …) per `color`, falling back to the button's text color when that token is unset. `--component-button-border-width` sets the border width and is applied as the `border-width` longhand (not baked into a shorthand), so it accepts a 1–4 value pattern for per-side widths (e.g. `1px 2px` or `0 0 2px 0` for a bottom-only border); defaults to `1px`. Two optional global overrides remain: `--component-button-outline-border` overrides the border style + color as a CSS `border` shorthand (e.g. `1px solid var(--base-border)`) — note its width is superseded by `--component-button-border-width` — and `--component-button-outline-border-color` sets just the border color across resting/hover/focus/active — set either via CSS or a scoped `y-theme` to flatten all outlined borders to one color.
180
+ CSS Custom Properties (per `small|medium|large`): `--component-button-padding-{size}` sets padding on all sides; `--component-button-padding-block-{size}` and `--component-button-padding-inline-{size}` override the vertical / horizontal axes independently and fall back to `--component-button-padding-{size}` when unset (the Material and Shadcn themes use this for wider buttons). Whether the inline axis collapses to the block value is governed by the `padding-mode` attribute above (default `auto` = collapse for icon-only buttons). `--component-control-height-{size}` sets the min-height (shared with `y-input` so fields and buttons stay the same height per theme); falls back to `--sizing-{size}`. For `variant="outlined"`, the border is sourced from the button's matching semantic border token (`--base-border`, `--primary-border`, `--error-border`, …) per `color`, falling back to the button's text color when that token is unset. `--component-button-border-width` sets the border width and is applied as the `border-width` longhand (not baked into a shorthand), so it accepts a 1–4 value pattern for per-side widths (e.g. `1px 2px` or `0 0 2px 0` for a bottom-only border); defaults to `1px`. Two optional global overrides remain: `--component-button-outline-border` overrides the border style + color as a CSS `border` shorthand (e.g. `1px solid var(--base-border)`) — note its width is superseded by `--component-button-border-width` — and `--component-button-outline-border-color` sets just the border color across resting/hover/focus/active — set either via CSS or a scoped `y-theme` to flatten all outlined borders to one color.
180
181
 
181
182
  ---
182
183
 
@@ -779,7 +780,8 @@ Tag: `<y-tag>`
779
780
  Attributes:
780
781
  - `color` — predefined scheme or CSS color (`#hex`, `rgb()`, `hsl()`). For `filled`, text is auto-contrasted via WCAG luminance. For `flat`, background is a 20% tint via `color-mix()`.
781
782
  - `size` — `"small"` | `"medium"` | `"large"`
782
- - `style-type` — `"filled"` (default) | `"outlined"` | `"flat"`
783
+ - `variant` — `"filled"` (default) | `"outlined"` | `"flat"`
784
+ - `style-type` — **deprecated** alias for `variant`; still honored (with `variant` winning if both are set) but will be removed in a future major version
783
785
  - `shape` — `"square"` (default) | `"round"`
784
786
  - `removable` — boolean, shows close button
785
787
 
@@ -789,8 +791,8 @@ The `flat` style uses `--{color}-background-app` as the background, so it automa
789
791
 
790
792
  ```html
791
793
  <y-tag color="primary" removable>JavaScript</y-tag>
792
- <y-tag color="success" style-type="outlined" shape="round">Active</y-tag>
793
- <y-tag color="base" style-type="flat">Draft</y-tag>
794
+ <y-tag color="success" variant="outlined" shape="round">Active</y-tag>
795
+ <y-tag color="base" variant="flat">Draft</y-tag>
794
796
  ```
795
797
 
796
798
  ---
@@ -976,7 +978,7 @@ CSS Custom Properties: `--component-popover-background`, `--component-popover-co
976
978
  <strong slot="header">Confirm change</strong>
977
979
  <p>Saving will overwrite the existing layout.</p>
978
980
  <div slot="footer">
979
- <y-button size="small" style-type="outlined">Cancel</y-button>
981
+ <y-button size="small" variant="outlined">Cancel</y-button>
980
982
  <y-button size="small" color="primary">Save</y-button>
981
983
  </div>
982
984
  </y-popover>
@@ -1470,7 +1472,7 @@ CSS Custom Properties: `--component-dock-height`, `--component-dock-height-{smal
1470
1472
 
1471
1473
  ```html
1472
1474
  <y-dock
1473
- items='[{"name":"Home","icon":"home","href":"/","selected":true},{"name":"Search","icon":"search","href":"/search"},{"name":"Profile","icon":"settings","href":"/profile"}]'
1475
+ items='[{"name":"Home","icon":"home","href":"/","selected":true},{"name":"Search","icon":"magnifying-glass","href":"/search"},{"name":"Profile","icon":"gear","href":"/profile"}]'
1474
1476
  ></y-dock>
1475
1477
  ```
1476
1478
 
@@ -1481,7 +1483,7 @@ Dropdown menu. Positioned relative to an anchor element. Items can be defined vi
1481
1483
 
1482
1484
  Tag: `<y-menu>`
1483
1485
  Attributes:
1484
- - `items` — JSON string: `[{"text": "Edit", "value": "edit", "href": "...", "icon": "edit", "slot": "name", "selected": true, "children": [...]}, ...]`
1486
+ - `items` — JSON string: `[{"text": "Edit", "value": "edit", "href": "...", "icon": "pencil", "slot": "name", "selected": true, "children": [...]}, ...]`
1485
1487
  - `anchor` — element ID (no `#`) of the trigger element; clicking the anchor toggles the menu automatically (no manual listener needed). A disabled anchor (native `disabled`, a reflected `disabled` attribute on a custom element like `y-button`, or `aria-disabled="true"`) will not open the menu.
1486
1488
  - `visible` — boolean
1487
1489
  - `direction` — `"down"` (default) | `"up"` | `"left"` | `"right"`
@@ -1498,7 +1500,7 @@ Item object fields:
1498
1500
  - `text` — display text
1499
1501
  - `value` — value reported in the `select` event (defaults to `text`)
1500
1502
  - `href` — optional navigation URL
1501
- - `icon` — icon name rendered via `<y-icon>` (e.g. `"edit"`, `"trash"`)
1503
+ - `icon` — icon name rendered via `<y-icon>` (e.g. `"pencil"`, `"trash"`)
1502
1504
  - `slot` — named slot in light DOM whose content replaces this item's default content
1503
1505
  - `selected` — boolean, highlights the active item
1504
1506
  - `children` — array of sub-items (nested submenu)
@@ -1816,7 +1818,7 @@ Keyboard: ArrowUp/Down move between visible items; ArrowRight expands or focuses
1816
1818
  ```html
1817
1819
  <y-tree route-match="prefix" style="width:280px">
1818
1820
  <y-tree-item href="/docs" expanded>
1819
- <y-icon slot="icon" name="book" size="small"></y-icon>
1821
+ <y-icon slot="icon" name="folder" size="small"></y-icon>
1820
1822
  <span slot="label">Docs</span>
1821
1823
  <y-tree-item slot="children" href="/docs/install">
1822
1824
  <span slot="label">Installation</span>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@waggylabs/yumekit",
3
- "version": "0.5.2",
3
+ "version": "0.5.3",
4
4
  "description": "Modern Web Component UI Kit",
5
5
  "type": "module",
6
6
  "main": "dist/yumekit.min.js",