@iyulab/components 2.3.1 → 2.5.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.
Files changed (65) hide show
  1. package/CHANGELOG.md +43 -0
  2. package/dist/assets/locales/ar.json.js +3 -1
  3. package/dist/assets/locales/de.json.js +3 -1
  4. package/dist/assets/locales/en.json.js +3 -1
  5. package/dist/assets/locales/es.json.js +3 -1
  6. package/dist/assets/locales/fr.json.js +3 -1
  7. package/dist/assets/locales/id.json.js +3 -1
  8. package/dist/assets/locales/ja.json.js +3 -1
  9. package/dist/assets/locales/ko.json.js +3 -1
  10. package/dist/assets/locales/pt-BR.json.js +3 -1
  11. package/dist/assets/locales/ru.json.js +3 -1
  12. package/dist/assets/locales/th.json.js +3 -1
  13. package/dist/assets/locales/vi.json.js +3 -1
  14. package/dist/assets/locales/zh-CN.json.js +3 -1
  15. package/dist/assets/locales/zh-TW.json.js +3 -1
  16. package/dist/components/UOverlayElement.d.ts +11 -0
  17. package/dist/components/UOverlayElement.js +30 -9
  18. package/dist/components/alert/UAlert.js +1 -1
  19. package/dist/components/breadcrumb/UBreadcrumb.js +1 -1
  20. package/dist/components/carousel/UCarousel.js +1 -1
  21. package/dist/components/checkbox/UCheckbox.js +1 -1
  22. package/dist/components/chip/UChip.js +1 -1
  23. package/dist/components/copy-button/UCopyButton.js +1 -1
  24. package/dist/components/date-picker/UDatePicker.js +1 -1
  25. package/dist/components/date-range-picker/UDateRangePicker.js +1 -1
  26. package/dist/components/dialog/UDialog.js +2 -1
  27. package/dist/components/drawer/UDrawer.js +2 -1
  28. package/dist/components/file-input/UFileInput.js +5 -2
  29. package/dist/components/icon-button/UIconButton.d.ts +3 -0
  30. package/dist/components/icon-button/UIconButton.js +9 -3
  31. package/dist/components/input/UInput.d.ts +2 -0
  32. package/dist/components/input/UInput.js +3 -2
  33. package/dist/components/input/UInput.styles.js +11 -0
  34. package/dist/components/progress-bar/UProgressBar.d.ts +3 -0
  35. package/dist/components/progress-bar/UProgressBar.js +11 -0
  36. package/dist/components/progress-ring/UProgressRing.d.ts +3 -0
  37. package/dist/components/progress-ring/UProgressRing.js +11 -0
  38. package/dist/components/rating/URating.js +2 -1
  39. package/dist/components/select/USelect.js +1 -1
  40. package/dist/components/spinner/USpinner.d.ts +7 -0
  41. package/dist/components/spinner/USpinner.js +12 -1
  42. package/dist/components/split-panel/USplitPanel.js +1 -1
  43. package/dist/components/switch/USwitch.js +1 -0
  44. package/dist/components/tab/UTab.js +1 -1
  45. package/dist/components/tree-item/UTreeItem.d.ts +5 -0
  46. package/dist/components/tree-item/UTreeItem.js +27 -2
  47. package/dist/index.js +1 -1
  48. package/dist/utilities/Dialog.d.ts +2 -0
  49. package/dist/utilities/Dialog.js +36 -13
  50. package/dist/utilities/Locale.d.ts +1 -1
  51. package/dist/utilities/progressAria.d.ts +14 -0
  52. package/dist/utilities/progressAria.js +22 -0
  53. package/package.json +1 -1
  54. package/skills/iyulab-components/references/components/dialog.md +7 -0
  55. package/skills/iyulab-components/references/components/drawer.md +5 -0
  56. package/skills/iyulab-components/references/components/file-input.md +1 -1
  57. package/skills/iyulab-components/references/components/icon-button.md +2 -1
  58. package/skills/iyulab-components/references/components/input.md +1 -0
  59. package/skills/iyulab-components/references/components/progress-bar.md +4 -0
  60. package/skills/iyulab-components/references/components/progress-ring.md +4 -0
  61. package/skills/iyulab-components/references/components/rating.md +4 -0
  62. package/skills/iyulab-components/references/components/spinner.md +4 -0
  63. package/skills/iyulab-components/references/components/switch.md +5 -0
  64. package/skills/iyulab-components/references/components/tree.md +6 -0
  65. package/skills/iyulab-components/references/utilities/dialog.md +6 -0
@@ -49,7 +49,8 @@ Square icon-only button with a built-in tooltip (shown from the default slot). R
49
49
 
50
50
  ## Accessibility
51
51
 
52
- Give every icon button an `aria-label` — the icon has no text. `aria-label` and the button states
52
+ The icon has no text, so the button is named by its tooltip text (the default slot) — or by an `aria-label`
53
+ on the host, which wins. One of the two is required. `aria-label` and the button states
53
54
  (`aria-pressed`, `aria-expanded`, `aria-controls`, `aria-haspopup`) set on the host reach the
54
55
  inner button, as on `u-button`.
55
56
 
@@ -132,6 +132,7 @@ Call `preventDefault()` on the `keydown` to cancel it. Do not also submit on Ent
132
132
  |----------|-------------|
133
133
  | `--u-input-display` | Host `display` (default `inline-block`); set `block` to fill a form or grid cell |
134
134
  | `--u-input-width` | Host `width` (default `auto`); set `100%` where `block` alone does not stretch, such as in a flex container |
135
+ | `--input-min-text` | Minimum width of the text area (default `4ch`). The stepper, clear and password-toggle icons never squeeze the text below it — a field given less width overflows its host visibly instead of drawing an input you cannot see into |
135
136
  | `--input-popover-width` | Combobox popover width (fixed to anchor width by default) |
136
137
  | `--input-popover-min-height` | Combobox popover min-height |
137
138
  | `--input-popover-max-height` | Combobox popover max-height |
@@ -21,6 +21,10 @@ Linear progress indicator. Supports buffer, segments, striped effect, and indete
21
21
 
22
22
  ---
23
23
 
24
+ ## Accessibility
25
+
26
+ Exposed as a **`progressbar`** with `aria-valuenow`/`min`/`max`; `indeterminate` leaves the value out (in progress, amount unknown). Name it with `aria-label` ("Upload") — the bar has no text of its own.
27
+
24
28
  ## Slots
25
29
 
26
30
  | Name | Description |
@@ -20,6 +20,10 @@ Circular progress indicator. Supports buffer, segments, and indeterminate state.
20
20
 
21
21
  ---
22
22
 
23
+ ## Accessibility
24
+
25
+ Exposed as a **`progressbar`** with `aria-valuenow`/`min`/`max`; `indeterminate` leaves the value out. Name it with `aria-label` — slotted content ("50%") is shown, not used as the name.
26
+
23
27
  ## Slots
24
28
 
25
29
  | Name | Description |
@@ -23,6 +23,10 @@ Star/custom-symbol rating input. Supports fractional precision and custom symbol
23
23
 
24
24
  ---
25
25
 
26
+ ## Accessibility
27
+
28
+ A `radiogroup` (named by `label`) of radios named `1`…`max` — a screen reader adds the position ("3 of 5").
29
+
26
30
  ## Slots
27
31
 
28
32
  | Name | Description |
@@ -18,6 +18,10 @@ Animated circular spinner for loading states. Optional label below the spinner v
18
18
 
19
19
  ---
20
20
 
21
+ ## Accessibility
22
+
23
+ Exposed as a **`progressbar`** with no value (in progress, amount unknown). Its name is the slotted text — read once, as the name — or the locale's `loading` word ("Loading", "로딩 중") when it has none. `aria-label` on the host wins.
24
+
21
25
  ## Slots
22
26
 
23
27
  | Name | Description |
@@ -21,6 +21,11 @@ Toggle switch (on/off). Supports custom track and thumb content via slots. Form-
21
21
 
22
22
  ---
23
23
 
24
+ ## Accessibility
25
+
26
+ Exposed as a **`switch`** (on/off), not a checkbox — screen readers announce "on"/"off", and role-based queries use
27
+ `getByRole('switch', { name })`. Use `u-checkbox` for a choice that is applied later (on save).
28
+
24
29
  ## Slots
25
30
 
26
31
  | Name | Description |
@@ -24,6 +24,12 @@ Hierarchical tree with support for selection, checkboxes, cascade check, and dra
24
24
 
25
25
  ---
26
26
 
27
+ ## Accessibility
28
+
29
+ Items are `treeitem`s with `aria-level` (depth), `aria-expanded` (items with children), `aria-selected` (in a
30
+ `selectable` tree) and `aria-checked` (`mixed` for a partly checked parent, in a `checkable` tree). An item is
31
+ named by its own label — not by the text of the items under it.
32
+
27
33
  ## u-tree
28
34
 
29
35
  ### Slots
@@ -50,6 +50,12 @@ confirmation cannot inject markup. For formatting pass a Lit `TemplateResult`
50
50
  (`Dialog.confirm(html\`Delete <strong>${name}</strong>?\`)` — interpolated values stay text). Only
51
51
  `Dialog.show({ content })` takes an HTML string, and says so.
52
52
 
53
+ ## Accessibility
54
+
55
+ `alert` and `confirm` open as an **`alertdialog`** (a message that needs a response — the role a native `confirm()`
56
+ has); `prompt` and `show` open as a **`dialog`**. All are modal unless `modal: false`. With a `title`, the title is the
57
+ dialog's name and the message its description; without one, the message is the name — a dialog is never unnamed.
58
+
53
59
  ## Types
54
60
 
55
61
  ```ts