@unframed/cli 0.5.0 → 0.6.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/README.md +2 -0
- package/package.json +1 -1
- package/registry.json +7 -7
- package/skill/unframed/SKILL.md +17 -17
- package/skill/unframed/references/components.md +1012 -1012
- package/skill/unframed/references/frameworks.md +1 -1
package/skill/unframed/SKILL.md
CHANGED
|
@@ -5,7 +5,7 @@ description: Builds UI with Unframed web components (@unframed/core, @unframed/r
|
|
|
5
5
|
|
|
6
6
|
# Unframed UI
|
|
7
7
|
|
|
8
|
-
Unframed 0.
|
|
8
|
+
Unframed 0.6.0: accessible UI components as standard custom elements (Lit). Every tag starts with `uf-`. They work in plain HTML and every framework; React, Vue and Angular have wrapper packages for typed props, events and form bindings.
|
|
9
9
|
|
|
10
10
|
## Before writing code
|
|
11
11
|
|
|
@@ -26,34 +26,34 @@ Unframed 0.5.0: accessible UI components as standard custom elements (Lit). Ever
|
|
|
26
26
|
- **Dialogs.** Open with `open` or `.show()`; any child with `data-dialog="close"` closes it; cancel a close in `uf-request-close` with `preventDefault()`.
|
|
27
27
|
- **Toasts.** `import { toast } from '@unframed/core'` and call `toast('Saved', { variant: 'success' })`; no element needed.
|
|
28
28
|
- **Theming.** Change colors and shapes with `--uf-*` custom properties (global tokens, then per-component ones like `--uf-button-radius`), then `::part()`. Don't style internals any other way, and don't re-implement a component that exists. See [references/theming.md](references/theming.md).
|
|
29
|
-
- **Translations.** Built-in texts (dialog close button, "No results", pagination labels, a few error messages) are English.
|
|
29
|
+
- **Translations.** Built-in texts (dialog close button, "No results", pagination labels, a few error messages) are English. Italian, French, German, Spanish and Portuguese are built in: `import it from '@unframed/core/locales/it'; setTranslations(it, 'it')` (codes `it`, `fr`, `de`, `es`, `pt`), once at startup. For other languages, pass the texts yourself: `setTranslations({ close: 'Zamknij', page: 'Strona {page}' }, 'pl')`; components follow the nearest `lang` attribute. Don't add `aria-label`s to override them.
|
|
30
30
|
- **Dark mode** follows the OS; force it with `data-uf-theme="dark"` (or `"light"`) on any element.
|
|
31
31
|
|
|
32
32
|
## Components
|
|
33
33
|
|
|
34
34
|
| Component | Tags | Import |
|
|
35
35
|
|---|---|---|
|
|
36
|
+
| Accordion: A stack of sections that expand and collapse. | `<uf-accordion>` `<uf-accordion-item>` | `@unframed/core/accordion` |
|
|
37
|
+
| Avatar: Shows a person's picture, initials or icon. | `<uf-avatar>` | `@unframed/core/avatar` |
|
|
38
|
+
| Badge: Labels a status, a category or a count. | `<uf-badge>` | `@unframed/core/badge` |
|
|
36
39
|
| Button: Triggers an action or navigates to a URL. | `<uf-button>` | `@unframed/core/button` |
|
|
37
|
-
|
|
|
38
|
-
|
|
|
39
|
-
| Select: Lets users pick one option from a dropdown list. | `<uf-select>` | `@unframed/core/select` |
|
|
40
|
+
| Card: Groups related content and actions. | `<uf-card>` | `@unframed/core/card` |
|
|
41
|
+
| Checkbox: Lets users turn an option on or off, or pick several options. | `<uf-checkbox>` `<uf-checkbox-group>` | `@unframed/core/checkbox` `@unframed/core/checkbox-group` |
|
|
40
42
|
| Combobox: Lets users search a list and pick one option. | `<uf-combobox>` | `@unframed/core/combobox` |
|
|
41
43
|
| Date picker: Lets users type or pick a date. | `<uf-date-picker>` `<uf-calendar>` | `@unframed/core/date-picker` `@unframed/core/calendar` |
|
|
42
|
-
| Checkbox: Lets users turn an option on or off, or pick several options. | `<uf-checkbox>` `<uf-checkbox-group>` | `@unframed/core/checkbox` `@unframed/core/checkbox-group` |
|
|
43
|
-
| Switch: Turns a setting on or off. | `<uf-switch>` | `@unframed/core/switch` |
|
|
44
|
-
| Radio group: Lets users pick exactly one option from a list. | `<uf-radio-group>` `<uf-radio>` | `@unframed/core/radio-group` `@unframed/core/radio` |
|
|
45
|
-
| Tabs: Organizes content into panels, one visible at a time. | `<uf-tabs>` `<uf-tab>` `<uf-tab-panel>` | `@unframed/core/tabs` |
|
|
46
|
-
| Accordion: A stack of sections that expand and collapse. | `<uf-accordion>` `<uf-accordion-item>` | `@unframed/core/accordion` |
|
|
47
44
|
| Dialog: Shows content in a modal window on top of the page. | `<uf-dialog>` | `@unframed/core/dialog` |
|
|
48
|
-
| Popover: Shows floating content next to a trigger. | `<uf-popover>` | `@unframed/core/popover` |
|
|
49
45
|
| Dropdown menu: Opens a menu of actions from a button. | `<uf-dropdown>` `<uf-menu>` `<uf-menu-item>` | `@unframed/core/dropdown` `@unframed/core/menu` |
|
|
50
|
-
| Tooltip: Shows a short hint for the element it wraps. | `<uf-tooltip>` | `@unframed/core/tooltip` |
|
|
51
|
-
| Toast: Shows short, temporary notifications. | `<uf-toaster>` | `@unframed/core/toast` |
|
|
52
46
|
| Icon: Shows a small symbol. | `<uf-icon>` | `@unframed/core/icon` |
|
|
53
|
-
|
|
|
54
|
-
| Avatar: Shows a person's picture, initials or icon. | `<uf-avatar>` | `@unframed/core/avatar` |
|
|
55
|
-
| Card: Groups related content and actions. | `<uf-card>` | `@unframed/core/card` |
|
|
56
|
-
| Table: Shows data in rows and columns, with sorting. | `<uf-table>` | `@unframed/core/table` |
|
|
47
|
+
| Input: Lets users enter a single line of text. | `<uf-input>` | `@unframed/core/input` |
|
|
57
48
|
| Pagination: Moves between the pages of a long list. | `<uf-pagination>` | `@unframed/core/pagination` |
|
|
49
|
+
| Popover: Shows floating content next to a trigger. | `<uf-popover>` | `@unframed/core/popover` |
|
|
50
|
+
| Radio group: Lets users pick exactly one option from a list. | `<uf-radio-group>` `<uf-radio>` | `@unframed/core/radio-group` `@unframed/core/radio` |
|
|
51
|
+
| Select: Lets users pick one option from a dropdown list. | `<uf-select>` | `@unframed/core/select` |
|
|
52
|
+
| Switch: Turns a setting on or off. | `<uf-switch>` | `@unframed/core/switch` |
|
|
53
|
+
| Table: Shows data in rows and columns, with sorting. | `<uf-table>` | `@unframed/core/table` |
|
|
54
|
+
| Tabs: Organizes content into panels, one visible at a time. | `<uf-tabs>` `<uf-tab>` `<uf-tab-panel>` | `@unframed/core/tabs` |
|
|
55
|
+
| Textarea: Lets users enter multiple lines of text. | `<uf-textarea>` | `@unframed/core/textarea` |
|
|
56
|
+
| Toast: Shows short, temporary notifications. | `<uf-toaster>` | `@unframed/core/toast` |
|
|
57
|
+
| Tooltip: Shows a short hint for the element it wraps. | `<uf-tooltip>` | `@unframed/core/tooltip` |
|
|
58
58
|
|
|
59
59
|
The full API of each, with examples: [references/components.md](references/components.md). Docs: https://p-db.github.io/unframed-ui/
|