@viax.io/uxm 4.36.0 → 4.37.1
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 +14 -0
- package/README.md +74 -31
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js.map +1 -1
- package/dist/previews/index.cjs +3 -0
- package/dist/previews/index.cjs.map +1 -1
- package/dist/previews/index.d.ts +3 -2
- package/dist/previews/index.d.ts.map +1 -1
- package/dist/previews/index.js +2 -0
- package/dist/previews/index.js.map +1 -1
- package/dist/studio/index.cjs.map +1 -1
- package/dist/studio/index.d.ts +2 -2
- package/dist/studio/index.js.map +1 -1
- package/dist/studio/lib/registry/app.cjs +52 -0
- package/dist/studio/lib/registry/app.cjs.map +1 -1
- package/dist/studio/lib/registry/app.d.ts.map +1 -1
- package/dist/studio/lib/registry/app.js +52 -0
- package/dist/studio/lib/registry/app.js.map +1 -1
- package/dist/studio/lib/registry/buttons.cjs +2 -2
- package/dist/studio/lib/registry/buttons.cjs.map +1 -1
- package/dist/studio/lib/registry/buttons.js +2 -2
- package/dist/studio/lib/registry/buttons.js.map +1 -1
- package/dist/studio/lib/registry/composite.cjs +1 -1
- package/dist/studio/lib/registry/composite.cjs.map +1 -1
- package/dist/studio/lib/registry/composite.js +1 -1
- package/dist/studio/lib/registry/composite.js.map +1 -1
- package/dist/studio/lib/registry/diagram.cjs +1 -1
- package/dist/studio/lib/registry/diagram.cjs.map +1 -1
- package/dist/studio/lib/registry/diagram.js +1 -1
- package/dist/studio/lib/registry/diagram.js.map +1 -1
- package/dist/studio/lib/registry/display.cjs +2 -2
- package/dist/studio/lib/registry/display.cjs.map +1 -1
- package/dist/studio/lib/registry/display.js +2 -2
- package/dist/studio/lib/registry/display.js.map +1 -1
- package/dist/studio/lib/registry/feedback.cjs +3 -3
- package/dist/studio/lib/registry/feedback.cjs.map +1 -1
- package/dist/studio/lib/registry/feedback.js +3 -3
- package/dist/studio/lib/registry/feedback.js.map +1 -1
- package/dist/studio/lib/registry/inputs.cjs +12 -12
- package/dist/studio/lib/registry/inputs.cjs.map +1 -1
- package/dist/studio/lib/registry/inputs.js +12 -12
- package/dist/studio/lib/registry/inputs.js.map +1 -1
- package/dist/studio/lib/types.cjs.map +1 -1
- package/dist/studio/persistence/generate-css.cjs +15 -0
- package/dist/studio/persistence/generate-css.cjs.map +1 -1
- package/dist/studio/persistence/generate-css.d.ts.map +1 -1
- package/dist/studio/persistence/generate-css.js +15 -0
- package/dist/studio/persistence/generate-css.js.map +1 -1
- package/dist/studio/shell/canvas.cjs +1 -0
- package/dist/studio/shell/canvas.cjs.map +1 -1
- package/dist/studio/shell/canvas.d.ts.map +1 -1
- package/dist/studio/shell/canvas.js +2 -0
- package/dist/studio/shell/canvas.js.map +1 -1
- package/dist/ui/bulk-action-bar/bulk-action-bar.css +3 -0
- package/dist/ui/calendar/calendar.cjs +3 -1
- package/dist/ui/calendar/calendar.cjs.map +1 -1
- package/dist/ui/calendar/calendar.css +2 -1
- package/dist/ui/calendar/calendar.d.ts +6 -2
- package/dist/ui/calendar/calendar.d.ts.map +1 -1
- package/dist/ui/calendar/calendar.js +3 -1
- package/dist/ui/calendar/calendar.js.map +1 -1
- package/dist/ui/currency-input/currency-input.cjs +3 -1
- package/dist/ui/currency-input/currency-input.cjs.map +1 -1
- package/dist/ui/currency-input/currency-input.d.ts +4 -2
- package/dist/ui/currency-input/currency-input.d.ts.map +1 -1
- package/dist/ui/currency-input/currency-input.js +3 -1
- package/dist/ui/currency-input/currency-input.js.map +1 -1
- package/dist/ui/date-input/date-input.cjs +2 -1
- package/dist/ui/date-input/date-input.cjs.map +1 -1
- package/dist/ui/date-input/date-input.css +1 -1
- package/dist/ui/date-input/date-input.d.ts +11 -1
- package/dist/ui/date-input/date-input.d.ts.map +1 -1
- package/dist/ui/date-input/date-input.js +2 -1
- package/dist/ui/date-input/date-input.js.map +1 -1
- package/dist/ui/editable-cell/editable-cell.cjs +20 -6
- package/dist/ui/editable-cell/editable-cell.cjs.map +1 -1
- package/dist/ui/editable-cell/editable-cell.d.ts +24 -1
- package/dist/ui/editable-cell/editable-cell.d.ts.map +1 -1
- package/dist/ui/editable-cell/editable-cell.js +20 -6
- package/dist/ui/editable-cell/editable-cell.js.map +1 -1
- package/dist/ui/file-upload/file-upload.cjs +36 -9
- package/dist/ui/file-upload/file-upload.cjs.map +1 -1
- package/dist/ui/file-upload/file-upload.d.ts +46 -4
- package/dist/ui/file-upload/file-upload.d.ts.map +1 -1
- package/dist/ui/file-upload/file-upload.js +36 -9
- package/dist/ui/file-upload/file-upload.js.map +1 -1
- package/dist/ui/index.cjs +12 -2
- package/dist/ui/index.cjs.map +1 -1
- package/dist/ui/index.d.ts +5 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/ui/index.js +7 -1
- package/dist/ui/index.js.map +1 -1
- package/dist/ui/input/input.cjs +8 -4
- package/dist/ui/input/input.cjs.map +1 -1
- package/dist/ui/input/input.css +4 -0
- package/dist/ui/input/input.d.ts.map +1 -1
- package/dist/ui/input/input.js +8 -4
- package/dist/ui/input/input.js.map +1 -1
- package/dist/ui/language-switcher/index.cjs +29 -0
- package/dist/ui/language-switcher/index.cjs.map +1 -0
- package/dist/ui/language-switcher/index.d.ts +3 -0
- package/dist/ui/language-switcher/index.d.ts.map +1 -0
- package/dist/ui/language-switcher/index.js +5 -0
- package/dist/ui/language-switcher/index.js.map +1 -0
- package/dist/ui/language-switcher/language-switcher-preview.cjs +137 -0
- package/dist/ui/language-switcher/language-switcher-preview.cjs.map +1 -0
- package/dist/ui/language-switcher/language-switcher-preview.d.ts +3 -0
- package/dist/ui/language-switcher/language-switcher-preview.d.ts.map +1 -0
- package/dist/ui/language-switcher/language-switcher-preview.js +113 -0
- package/dist/ui/language-switcher/language-switcher-preview.js.map +1 -0
- package/dist/ui/language-switcher/language-switcher.cjs +127 -0
- package/dist/ui/language-switcher/language-switcher.cjs.map +1 -0
- package/dist/ui/language-switcher/language-switcher.css +95 -0
- package/dist/ui/language-switcher/language-switcher.d.ts +73 -0
- package/dist/ui/language-switcher/language-switcher.d.ts.map +1 -0
- package/dist/ui/language-switcher/language-switcher.js +103 -0
- package/dist/ui/language-switcher/language-switcher.js.map +1 -0
- package/dist/ui/locale/index.cjs +33 -0
- package/dist/ui/locale/index.cjs.map +1 -0
- package/dist/ui/locale/index.d.ts +3 -0
- package/dist/ui/locale/index.d.ts.map +1 -0
- package/dist/ui/locale/index.js +7 -0
- package/dist/ui/locale/index.js.map +1 -0
- package/dist/ui/locale/locale.cjs +43 -0
- package/dist/ui/locale/locale.cjs.map +1 -0
- package/dist/ui/locale/locale.d.ts +49 -0
- package/dist/ui/locale/locale.d.ts.map +1 -0
- package/dist/ui/locale/locale.js +17 -0
- package/dist/ui/locale/locale.js.map +1 -0
- package/dist/ui/page-shell/page-shell.cjs.map +1 -1
- package/dist/ui/page-shell/page-shell.d.ts +1 -1
- package/dist/ui/page-shell/page-shell.d.ts.map +1 -1
- package/dist/ui/page-shell/page-shell.js.map +1 -1
- package/dist/ui/range-slider/range-slider.cjs +7 -3
- package/dist/ui/range-slider/range-slider.cjs.map +1 -1
- package/dist/ui/range-slider/range-slider.d.ts +17 -1
- package/dist/ui/range-slider/range-slider.d.ts.map +1 -1
- package/dist/ui/range-slider/range-slider.js +7 -3
- package/dist/ui/range-slider/range-slider.js.map +1 -1
- package/dist/ui/stat-card/stat-card.cjs +1 -1
- package/dist/ui/stat-card/stat-card.cjs.map +1 -1
- package/dist/ui/stat-card/stat-card.css +4 -0
- package/dist/ui/stat-card/stat-card.js +1 -1
- package/dist/ui/stat-card/stat-card.js.map +1 -1
- package/dist/ui/styles.css +2 -1
- package/dist/ui/toast/toast.css +3 -1
- package/package.json +4 -5
|
@@ -59,7 +59,7 @@ const inputsDefs = [
|
|
|
59
59
|
{ name: "onBlur", description: "Fires when the field loses focus.", payload: "FocusEvent" }
|
|
60
60
|
],
|
|
61
61
|
api: {
|
|
62
|
-
importPath: "@viax
|
|
62
|
+
importPath: "@viax/uxm/ui",
|
|
63
63
|
importNames: "TextInput",
|
|
64
64
|
props: [
|
|
65
65
|
{ name: "value", type: "string", description: "Current value (controlled)." },
|
|
@@ -232,7 +232,7 @@ const inputsDefs = [
|
|
|
232
232
|
{ name: "onCommit", description: "Fires when the user confirms a change (Enter, or blur with no validation error; for multiselect, each toggle). Async \u2014 the atom shows a submitting state until the returned promise settles.", payload: "(next: string | number | string[]) => void | Promise<void>" }
|
|
233
233
|
],
|
|
234
234
|
api: {
|
|
235
|
-
importPath: "@viax
|
|
235
|
+
importPath: "@viax/uxm/ui",
|
|
236
236
|
importNames: "EditableCell",
|
|
237
237
|
props: [
|
|
238
238
|
{ name: "value", type: "string | number | string[]", required: true, description: "Current committed value (a string[] of picked option values for multiselect). The atom keeps a draft internally during edit." },
|
|
@@ -372,7 +372,7 @@ const inputsDefs = [
|
|
|
372
372
|
{ name: "onBlur", description: "Fires when the field loses focus.", payload: "FocusEvent" }
|
|
373
373
|
],
|
|
374
374
|
api: {
|
|
375
|
-
importPath: "@viax
|
|
375
|
+
importPath: "@viax/uxm/ui",
|
|
376
376
|
importNames: "PasswordInput",
|
|
377
377
|
props: [
|
|
378
378
|
{ name: "value", type: "string", description: "Current value (controlled)." },
|
|
@@ -444,7 +444,7 @@ const inputsDefs = [
|
|
|
444
444
|
{ name: "onOpenChange", description: "Popover variant only \u2014 fires when the panel opens or closes.", payload: "(open: boolean) => void", showWhen: { variant: "popover" } }
|
|
445
445
|
],
|
|
446
446
|
api: {
|
|
447
|
-
importPath: "@viax
|
|
447
|
+
importPath: "@viax/uxm/ui",
|
|
448
448
|
importNames: ["ColorInput", "ColorInputPopover"],
|
|
449
449
|
props: [
|
|
450
450
|
{ name: "value", type: "string", description: "Current color (controlled). Any supported syntax: hex, rgb(a), hsl(a)." },
|
|
@@ -631,7 +631,7 @@ const inputsDefs = [
|
|
|
631
631
|
{ name: "onBlur", description: "Fires when the field loses focus.", payload: "FocusEvent" }
|
|
632
632
|
],
|
|
633
633
|
api: {
|
|
634
|
-
importPath: "@viax
|
|
634
|
+
importPath: "@viax/uxm/ui",
|
|
635
635
|
importNames: "TimeInput",
|
|
636
636
|
props: [
|
|
637
637
|
{ name: "value", type: "string", description: 'Current value (controlled). 24h: `"HH:MM"`. 12h: `"HH:MM AM"` or `"HH:MM PM"`.' },
|
|
@@ -710,7 +710,7 @@ const inputsDefs = [
|
|
|
710
710
|
{ name: "onBlur", description: "Fires when focus leaves the field.", payload: "FocusEvent" }
|
|
711
711
|
],
|
|
712
712
|
api: {
|
|
713
|
-
importPath: "@viax
|
|
713
|
+
importPath: "@viax/uxm/ui",
|
|
714
714
|
importNames: "PhoneInput",
|
|
715
715
|
props: [
|
|
716
716
|
{ name: "value", type: "{ country: string, number: string }", description: "Controlled value. `country` is an ISO-3166 alpha-2 code; `number` is raw digits." },
|
|
@@ -783,7 +783,7 @@ const inputsDefs = [
|
|
|
783
783
|
{ name: "onChange", description: "Fires continuously while the user drags either thumb. Payload is the full [start, end] range.", payload: "{ value: [number, number] }", showWhen: { mode: "range" } }
|
|
784
784
|
],
|
|
785
785
|
api: {
|
|
786
|
-
importPath: "@viax
|
|
786
|
+
importPath: "@viax/uxm/ui",
|
|
787
787
|
importNames: ["Slider", "RangeSlider"],
|
|
788
788
|
props: [
|
|
789
789
|
{ name: "value", type: "number // (Slider) | [number, number] // (RangeSlider)", description: "Current value. Tuple for RangeSlider." },
|
|
@@ -926,7 +926,7 @@ const inputsDefs = [
|
|
|
926
926
|
{ name: "onFocus", description: "Fires when the field receives focus.", payload: "FocusEvent" }
|
|
927
927
|
],
|
|
928
928
|
api: {
|
|
929
|
-
importPath: "@viax
|
|
929
|
+
importPath: "@viax/uxm/ui",
|
|
930
930
|
importNames: "NumberInput",
|
|
931
931
|
props: [
|
|
932
932
|
{ name: "value", type: "string", description: "Current value as a digit string (controlled)." },
|
|
@@ -1010,7 +1010,7 @@ const inputsDefs = [
|
|
|
1010
1010
|
{ name: "onBlur", description: "Fires when the amount input loses focus. Triggers min/max clamping AND switches display back to locale-formatted.", payload: "FocusEvent" }
|
|
1011
1011
|
],
|
|
1012
1012
|
api: {
|
|
1013
|
-
importPath: "@viax
|
|
1013
|
+
importPath: "@viax/uxm/ui",
|
|
1014
1014
|
importNames: "CurrencyInput",
|
|
1015
1015
|
props: [
|
|
1016
1016
|
{ name: "value", type: "{ currency: string, amount: string }", description: "Controlled value. `currency` is an ISO 4217 code; `amount` is the raw digit string." },
|
|
@@ -1258,7 +1258,7 @@ const inputsDefs = [
|
|
|
1258
1258
|
{ name: "onError", description: "Fires when the caller rejects a drop (e.g. wrong MIME). The atom never fires this on its own \u2014 drive it from your validation in `onFiles`.", payload: "{ reason: string }" }
|
|
1259
1259
|
],
|
|
1260
1260
|
api: {
|
|
1261
|
-
importPath: "@viax
|
|
1261
|
+
importPath: "@viax/uxm/ui",
|
|
1262
1262
|
importNames: "FileUpload",
|
|
1263
1263
|
props: [
|
|
1264
1264
|
{ name: "onFiles", type: "(files: File[]) => void", description: "Receives picked or dropped files." },
|
|
@@ -1578,7 +1578,7 @@ const inputsDefs = [
|
|
|
1578
1578
|
{ name: "onOpenChange", description: "Fires when the panel opens or closes.", payload: "boolean" }
|
|
1579
1579
|
],
|
|
1580
1580
|
api: {
|
|
1581
|
-
importPath: "@viax
|
|
1581
|
+
importPath: "@viax/uxm/ui",
|
|
1582
1582
|
importNames: ["Listbox", "MultiListbox"],
|
|
1583
1583
|
props: [
|
|
1584
1584
|
{ name: "items", type: "T[]", required: true, description: "Source data \u2014 the listbox is generic over T and has no knowledge of what's inside." },
|
|
@@ -1769,7 +1769,7 @@ const inputsDefs = [
|
|
|
1769
1769
|
{ name: "onOpenChange", description: "Fires when the menu opens or closes.", payload: "boolean" }
|
|
1770
1770
|
],
|
|
1771
1771
|
api: {
|
|
1772
|
-
importPath: "@viax
|
|
1772
|
+
importPath: "@viax/uxm/ui",
|
|
1773
1773
|
importNames: "Menu",
|
|
1774
1774
|
props: [
|
|
1775
1775
|
{ name: "items", type: "MenuEntry[]", required: true, description: "Menu entries \u2014 actionable items ({ key, label, subtitle?, icon?, iconColor?, hint?, onSelect?, disabled?, danger?, current? }) and separators ({ separator: true }), in display order. Pass `subtitle` to render a two-line row (label = headline), `iconColor` to tint ONE row's glyph (prefer a `var(--color-*)` reference; raw hex only for entity-identity colours), and `current` to mark the row the user is already on (aria-current + trailing checkmark + heavier label)." },
|