@eldrajs/ui 0.2.5 → 0.2.6
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 +1 -1
- package/README.md +7 -7
- package/dist/components/tabler-icon/types.d.ts +1 -1
- package/dist/messages/is-IS.js +16 -16
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,7 +7,7 @@ Release-please writes the generated notes from commit messages and does not repl
|
|
|
7
7
|
|
|
8
8
|
### Added
|
|
9
9
|
|
|
10
|
-
- **`TablerIcon`** — any Tabler icon by the name a `tabler-icon` CMS field holds:
|
|
10
|
+
- **`TablerIcon`** — any Tabler icon by the name a `tabler-icon` CMS field holds: Tabler's kebab-case name (`cash-register`), which Studio and the MCP store, or the older export name (`IconCashRegister`) that content saved before 17 Oct 2026 may hold, stega tolerated. `Icon`'s `size`, `label` and `classes`, plus `strokeWidth`; filled icons are filled. The icon is in the server HTML and hydration loads nothing; a page rendered in the browser loads only the data file holding each icon it draws (512 lazy chunks, every `@tabler/icons-vue` 3.48.0 export). An unknown name draws an empty box and warns once, never throws. New exports `tablerIconName` and `preloadTablerIcons`, types `TablerIconProps` and `TablerIconPart`; `<EldraTablerIcon>` through the resolver.
|
|
11
11
|
- **`SiteForm`** draws any form built in Studio from its definition (`definition`, or `formKey` read in the browser) and submits it through the SDK's `client.forms`: every field type with its own control, labels for `locale`, the platform's own checks and wording before sending, the honeypot, Cloudflare Turnstile when the form has a site key (and nothing third-party when it has none), a `422`'s messages under their fields and in an error summary, `429`, `413` and network failures in the summary, the success panel or the merchant's redirect (`navigate`), and the "check your inbox" state of a subscribing form. `layout`, `heading`, `submitLabel`, `classes` (`SiteFormPart`), slots `submit`, `success`, `loading`, `failed`, events `success` and `error`. **`useSiteForm`** is the state it is drawn from, for markup of your own. New messages `formSubmit`, `formSubmitting`, `formLoading`, `formLoadFailed`, `formRequired`, `formRequiredCheckbox`, `formInvalidEmail`, `formInvalidNumber`, `formInvalidUrl`, `formInvalidOption`, `formInvalidFormat`, `formTooShort`, `formTooLong`, `formRefused`, `formRateLimited`, `formTooLarge`, `formUnavailable`, `formSpamCheckRequired`, `formSpamCheckFailed`, `formSuccessTitle`, `formPendingTitle`, `formPendingMessage`, in English and Icelandic. New types `SiteFormClient`, `SiteFormDefinition`, `SiteFormField`, `SiteFormValue`, `SiteFormStatus`, `SiteFormSuccess`, `SiteFormFailure`, `SiteFormFailureReason`, `SiteFormSubmitOutcome`, `SiteFormLayout`, `SiteFormPart`, `SiteFormProps`, `UseSiteFormOptions`, `UseSiteFormReturn`.
|
|
12
12
|
- **`Image` exact crops.** `zoomOrigin: 'focal'` zooms around the focal point itself, so a crop can reach the edges of the picture; the default, `'band'`, keeps the origin in the band the page builder's framing clamps to, so stored framings render as before and as Studio previews them. `crops: ImageCrop[]` art-directs the one `<img>`: a `ratio`, `focal`, `zoom` and `sizes` per media condition, first match first, with `sizes` scoped and scaled per crop, so a phone gets its own crop without a second download. `ratio` also takes a number (width ÷ height). New type `ImageCrop`.
|
|
13
13
|
- **`NavMenu`** — the header navigation: top-level links, and buttons opening a `dropdown` panel or a `mega` panel of columns (entries with `description`, `badge`, `current`, `newTab`). Disclosure pattern: `Enter`/`Space` open, `Tab` walks through, `Escape` closes and returns focus, an outside click or focus leaving closes, one panel at a time; plus the APG arrow keys (`←`/`→`/`Home`/`End` along the bar, `↓`/`↑` into and through a panel, never wrapping). Optional `openOnHover`, opening after a 150ms rest and closing 150ms after the pointer leaves; a closing panel fades out. Below `collapseBelow` (default `lg`; also `md`, `xl`, the container breakpoints `@tablet`/`@content`/`@wide`, `never` and `always`) it becomes a menu button and a left `Drawer` with accordion rows. Takes a resolved Studio link tree as it is. `variant`: `ghost` (default; text colour with a fill on hover and while open) or `muted` (muted text turning the text colour on hover, while open and on the current page, no fill), for the bar and its panels alike. `linkAs`, `classes`, slots `panelItem`/`groupHeading`/`panelFooter`/`toggle`/`drawerFooter`, `v-model` (open panel) and `v-model:drawerOpen`, exposed `close()`. New messages `navMenuLabel`, `navMenuOpen`, `navMenuDrawer`, `navMenuOverview`; new CSS variables `--eldra-nav-menu-offset`, `--eldra-nav-menu-dropdown-min`/`-max`, `--eldra-nav-menu-column-min`.
|
package/README.md
CHANGED
|
@@ -1561,13 +1561,13 @@ children?, layout? }`, one level of children. Children sharing a `group` form a
|
|
|
1561
1561
|
|
|
1562
1562
|
- **`TablerIcon`** — any [Tabler](https://tabler.io/icons) icon by the name a `tabler-icon` CMS
|
|
1563
1563
|
field holds, for a value an editor picks in Studio rather than an icon the code knows. It takes
|
|
1564
|
-
|
|
1565
|
-
(`
|
|
1566
|
-
payload Studio's preview appends. `size`, `label` and `classes` are
|
|
1567
|
-
decorative-by-default ARIA; `strokeWidth` (default the spec's 1.75) is
|
|
1568
|
-
design draws another weight; a filled icon (`
|
|
1569
|
-
stroke. It is the one icon component here that takes a name
|
|
1570
|
-
CMS field can only hold a name.
|
|
1564
|
+
Tabler's kebab-case name (`cash-register`), which is what Studio and the MCP store, and also the
|
|
1565
|
+
older export-name form (`IconCashRegister`) that content saved before 17 Oct 2026 may hold, and
|
|
1566
|
+
it tolerates the stega payload Studio's preview appends. `size`, `label` and `classes` are
|
|
1567
|
+
`Icon`'s, with `Icon`'s decorative-by-default ARIA; `strokeWidth` (default the spec's 1.75) is
|
|
1568
|
+
for a site whose own design draws another weight; a filled icon (`heart-filled`,
|
|
1569
|
+
`IconHeartFilled`) is filled with no stroke. It is the one icon component here that takes a name
|
|
1570
|
+
rather than a component, because a CMS field can only hold a name.
|
|
1571
1571
|
|
|
1572
1572
|
**Only the icons a page draws reach the browser.** The icons (every `@tabler/icons-vue` export,
|
|
1573
1573
|
aliases included) ship as data in 512 small files of about 12 icons each, which a bundler emits
|
|
@@ -2,7 +2,7 @@ import { IconSize } from '../icon/types.js';
|
|
|
2
2
|
/** The parts a consumer can restyle through `classes`. */
|
|
3
3
|
export type TablerIconPart = 'root';
|
|
4
4
|
export interface TablerIconProps {
|
|
5
|
-
/** A `tabler-icon` field value:
|
|
5
|
+
/** A `tabler-icon` field value: Tabler's kebab-case name (`cash-register`), which Studio and the MCP store, or the older export name (`IconCashRegister`) that content saved before 17 Oct 2026 may hold. Empty renders nothing. */
|
|
6
6
|
name?: string | null;
|
|
7
7
|
/** One of `Icon`'s four sizes. Defaults to `md` (1.25rem). */
|
|
8
8
|
size?: IconSize;
|
package/dist/messages/is-IS.js
CHANGED
|
@@ -42,7 +42,7 @@ var isIS = {
|
|
|
42
42
|
clearSearch: "Hreinsa leit",
|
|
43
43
|
dismissNotification: "Loka tilkynningu",
|
|
44
44
|
notifications: "Tilkynningar",
|
|
45
|
-
loading: "
|
|
45
|
+
loading: "Hleður…",
|
|
46
46
|
optional: "valfrjálst",
|
|
47
47
|
required: "Nauðsynlegt",
|
|
48
48
|
search: "Leita",
|
|
@@ -68,14 +68,14 @@ var isIS = {
|
|
|
68
68
|
to: "til",
|
|
69
69
|
opensInNewTab: "(opnast í nýjum flipa)",
|
|
70
70
|
counter: (n, max) => `${n} af ${max}`,
|
|
71
|
-
previous: "Fyrri
|
|
72
|
-
next: "Næsta
|
|
71
|
+
previous: "Fyrri",
|
|
72
|
+
next: "Næsta",
|
|
73
73
|
pause: "Hlé",
|
|
74
74
|
play: "Spila",
|
|
75
75
|
slideOf: (position, total) => `${position} af ${total}`,
|
|
76
|
-
goToSlide: (n) => `Fara á
|
|
77
|
-
slides: "
|
|
78
|
-
slideInstructions: "Notaðu vinstri og hægri
|
|
76
|
+
goToSlide: (n) => `Fara á ${n}`,
|
|
77
|
+
slides: "Atriði",
|
|
78
|
+
slideInstructions: "Notaðu vinstri og hægri örvatakkana til að fletta. Ýttu á Tab til að fara inn í það sem er sýnt.",
|
|
79
79
|
closeLightbox: "Loka myndaskoðara",
|
|
80
80
|
previousImage: "Fyrri mynd",
|
|
81
81
|
nextImage: "Næsta mynd",
|
|
@@ -88,7 +88,7 @@ var isIS = {
|
|
|
88
88
|
newBadge: "Nýtt",
|
|
89
89
|
quickAddLabel: "Setja í körfu",
|
|
90
90
|
quickAdd: (title) => `Setja ${title} í körfu`,
|
|
91
|
-
loadingProduct: "
|
|
91
|
+
loadingProduct: "Hleður…",
|
|
92
92
|
swatchesAvailable: (n) => `Til í ${n} ${singular(n) ? "lit" : "litum"}`,
|
|
93
93
|
noImage: "Engin mynd",
|
|
94
94
|
noImageAvailable: "Engin mynd í boði",
|
|
@@ -100,8 +100,8 @@ var isIS = {
|
|
|
100
100
|
regularPrice: "Fullt verð",
|
|
101
101
|
from: "Frá",
|
|
102
102
|
perUnit: (per) => `/ ${per}`,
|
|
103
|
-
updatingPrice: "
|
|
104
|
-
updatingStock: "
|
|
103
|
+
updatingPrice: "Verð uppfærist…",
|
|
104
|
+
updatingStock: "Lagerstaða uppfærist…",
|
|
105
105
|
rating: (value, count) => `Einkunn ${value.toFixed(1).replace(".", ",")} af 5, ${count} ${reviewsWord(count)}`,
|
|
106
106
|
noReviews: "Engar umsagnir enn",
|
|
107
107
|
reviewCount: (n) => `${n} ${reviewsWord(n)}`,
|
|
@@ -122,7 +122,7 @@ var isIS = {
|
|
|
122
122
|
const count = singular(n) ? `Sjá ${n} niðurstöðu` : `Sjá allar ${n} niðurstöður`;
|
|
123
123
|
return query === void 0 || query === "" ? count : `${count} fyrir „${query}“`;
|
|
124
124
|
},
|
|
125
|
-
searchLoading: "
|
|
125
|
+
searchLoading: "Leitar…",
|
|
126
126
|
shortcutHint: "Ýttu á / til að leita",
|
|
127
127
|
searchMoveHint: "til að fara á milli",
|
|
128
128
|
searchOpenHint: "til að opna",
|
|
@@ -146,7 +146,7 @@ var isIS = {
|
|
|
146
146
|
nextPage: "Næsta síða",
|
|
147
147
|
pageN: (n, current = false) => current ? `Síða ${n}, núverandi síða` : `Síða ${n}`,
|
|
148
148
|
pageOfTotal: (page, total) => `Síða ${page} af ${total}`,
|
|
149
|
-
showingOf: (shown, total, noun) =>
|
|
149
|
+
showingOf: (shown, total, noun) => `${shown} af ${total} ${noun}`,
|
|
150
150
|
loadMore: "Hlaða meira",
|
|
151
151
|
filterPanelTitle: "Síur",
|
|
152
152
|
filterPanelLabel: "Vörusíur",
|
|
@@ -169,8 +169,8 @@ var isIS = {
|
|
|
169
169
|
filterPanelShowResults: (n) => `Sýna ${n} ${productsWord(n)}`,
|
|
170
170
|
filterPanelShowProducts: "Sýna vörur",
|
|
171
171
|
formSubmit: "Senda",
|
|
172
|
-
formSubmitting: "
|
|
173
|
-
formLoading: "
|
|
172
|
+
formSubmitting: "Sendir…",
|
|
173
|
+
formLoading: "Hleður…",
|
|
174
174
|
formLoadFailed: "Ekki er hægt að sýna þetta eyðublað núna.",
|
|
175
175
|
formRequired: "Þennan reit þarf að fylla út.",
|
|
176
176
|
formRequiredCheckbox: "Hakaðu í reitinn til að halda áfram.",
|
|
@@ -178,15 +178,15 @@ var isIS = {
|
|
|
178
178
|
formInvalidNumber: "Sláðu inn tölu, til dæmis 12 eða 3,5.",
|
|
179
179
|
formInvalidUrl: "Sláðu inn fullt veffang sem byrjar á http:// eða https://.",
|
|
180
180
|
formInvalidOption: "Veldu einn af valkostunum.",
|
|
181
|
-
formInvalidFormat: "
|
|
181
|
+
formInvalidFormat: "Þetta er ekki á réttu formi.",
|
|
182
182
|
formTooShort: (min) => `Þetta er of stutt (að minnsta kosti ${min} ${singular(min) ? "stafur" : "stafir"}).`,
|
|
183
183
|
formTooLong: (max) => `Þetta er of langt (í mesta lagi ${max} ${singular(max) ? "stafur" : "stafir"}).`,
|
|
184
184
|
formRefused: "Athugaðu svörin og reyndu aftur.",
|
|
185
185
|
formRateLimited: "Of margar tilraunir. Bíddu í eina mínútu og reyndu aftur.",
|
|
186
186
|
formTooLarge: "Þetta er meira en eyðublaðið tekur við. Styttu svörin og reyndu aftur.",
|
|
187
187
|
formUnavailable: "Ekki tókst að senda eyðublaðið núna. Reyndu aftur eftir smá stund.",
|
|
188
|
-
formSpamCheckRequired: "
|
|
189
|
-
formSpamCheckFailed: "Ekki tókst að hlaða
|
|
188
|
+
formSpamCheckRequired: "Staðfestu að þú sért ekki vélmenni og reyndu aftur.",
|
|
189
|
+
formSpamCheckFailed: "Ekki tókst að hlaða öryggisathuguninni. Endurnýjaðu síðuna og reyndu aftur.",
|
|
190
190
|
formSuccessTitle: "Takk fyrir",
|
|
191
191
|
formPendingTitle: "Kíktu í pósthólfið",
|
|
192
192
|
formPendingMessage: "Við sendum þér tölvupóst. Smelltu á hlekkinn í honum til að staðfesta."
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eldrajs/ui",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.6",
|
|
4
4
|
"description": "Accessible Vue 3 core components for Eldra storefronts: buttons, forms, selects, cards, overlays and navigation, themed through CSS design tokens.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"accessible",
|