@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.
Files changed (148) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/README.md +74 -31
  3. package/dist/index.cjs.map +1 -1
  4. package/dist/index.d.ts +3 -3
  5. package/dist/index.js.map +1 -1
  6. package/dist/previews/index.cjs +3 -0
  7. package/dist/previews/index.cjs.map +1 -1
  8. package/dist/previews/index.d.ts +3 -2
  9. package/dist/previews/index.d.ts.map +1 -1
  10. package/dist/previews/index.js +2 -0
  11. package/dist/previews/index.js.map +1 -1
  12. package/dist/studio/index.cjs.map +1 -1
  13. package/dist/studio/index.d.ts +2 -2
  14. package/dist/studio/index.js.map +1 -1
  15. package/dist/studio/lib/registry/app.cjs +52 -0
  16. package/dist/studio/lib/registry/app.cjs.map +1 -1
  17. package/dist/studio/lib/registry/app.d.ts.map +1 -1
  18. package/dist/studio/lib/registry/app.js +52 -0
  19. package/dist/studio/lib/registry/app.js.map +1 -1
  20. package/dist/studio/lib/registry/buttons.cjs +2 -2
  21. package/dist/studio/lib/registry/buttons.cjs.map +1 -1
  22. package/dist/studio/lib/registry/buttons.js +2 -2
  23. package/dist/studio/lib/registry/buttons.js.map +1 -1
  24. package/dist/studio/lib/registry/composite.cjs +1 -1
  25. package/dist/studio/lib/registry/composite.cjs.map +1 -1
  26. package/dist/studio/lib/registry/composite.js +1 -1
  27. package/dist/studio/lib/registry/composite.js.map +1 -1
  28. package/dist/studio/lib/registry/diagram.cjs +1 -1
  29. package/dist/studio/lib/registry/diagram.cjs.map +1 -1
  30. package/dist/studio/lib/registry/diagram.js +1 -1
  31. package/dist/studio/lib/registry/diagram.js.map +1 -1
  32. package/dist/studio/lib/registry/display.cjs +2 -2
  33. package/dist/studio/lib/registry/display.cjs.map +1 -1
  34. package/dist/studio/lib/registry/display.js +2 -2
  35. package/dist/studio/lib/registry/display.js.map +1 -1
  36. package/dist/studio/lib/registry/feedback.cjs +3 -3
  37. package/dist/studio/lib/registry/feedback.cjs.map +1 -1
  38. package/dist/studio/lib/registry/feedback.js +3 -3
  39. package/dist/studio/lib/registry/feedback.js.map +1 -1
  40. package/dist/studio/lib/registry/inputs.cjs +12 -12
  41. package/dist/studio/lib/registry/inputs.cjs.map +1 -1
  42. package/dist/studio/lib/registry/inputs.js +12 -12
  43. package/dist/studio/lib/registry/inputs.js.map +1 -1
  44. package/dist/studio/lib/types.cjs.map +1 -1
  45. package/dist/studio/persistence/generate-css.cjs +15 -0
  46. package/dist/studio/persistence/generate-css.cjs.map +1 -1
  47. package/dist/studio/persistence/generate-css.d.ts.map +1 -1
  48. package/dist/studio/persistence/generate-css.js +15 -0
  49. package/dist/studio/persistence/generate-css.js.map +1 -1
  50. package/dist/studio/shell/canvas.cjs +1 -0
  51. package/dist/studio/shell/canvas.cjs.map +1 -1
  52. package/dist/studio/shell/canvas.d.ts.map +1 -1
  53. package/dist/studio/shell/canvas.js +2 -0
  54. package/dist/studio/shell/canvas.js.map +1 -1
  55. package/dist/ui/bulk-action-bar/bulk-action-bar.css +3 -0
  56. package/dist/ui/calendar/calendar.cjs +3 -1
  57. package/dist/ui/calendar/calendar.cjs.map +1 -1
  58. package/dist/ui/calendar/calendar.css +2 -1
  59. package/dist/ui/calendar/calendar.d.ts +6 -2
  60. package/dist/ui/calendar/calendar.d.ts.map +1 -1
  61. package/dist/ui/calendar/calendar.js +3 -1
  62. package/dist/ui/calendar/calendar.js.map +1 -1
  63. package/dist/ui/currency-input/currency-input.cjs +3 -1
  64. package/dist/ui/currency-input/currency-input.cjs.map +1 -1
  65. package/dist/ui/currency-input/currency-input.d.ts +4 -2
  66. package/dist/ui/currency-input/currency-input.d.ts.map +1 -1
  67. package/dist/ui/currency-input/currency-input.js +3 -1
  68. package/dist/ui/currency-input/currency-input.js.map +1 -1
  69. package/dist/ui/date-input/date-input.cjs +2 -1
  70. package/dist/ui/date-input/date-input.cjs.map +1 -1
  71. package/dist/ui/date-input/date-input.css +1 -1
  72. package/dist/ui/date-input/date-input.d.ts +11 -1
  73. package/dist/ui/date-input/date-input.d.ts.map +1 -1
  74. package/dist/ui/date-input/date-input.js +2 -1
  75. package/dist/ui/date-input/date-input.js.map +1 -1
  76. package/dist/ui/editable-cell/editable-cell.cjs +20 -6
  77. package/dist/ui/editable-cell/editable-cell.cjs.map +1 -1
  78. package/dist/ui/editable-cell/editable-cell.d.ts +24 -1
  79. package/dist/ui/editable-cell/editable-cell.d.ts.map +1 -1
  80. package/dist/ui/editable-cell/editable-cell.js +20 -6
  81. package/dist/ui/editable-cell/editable-cell.js.map +1 -1
  82. package/dist/ui/file-upload/file-upload.cjs +36 -9
  83. package/dist/ui/file-upload/file-upload.cjs.map +1 -1
  84. package/dist/ui/file-upload/file-upload.d.ts +46 -4
  85. package/dist/ui/file-upload/file-upload.d.ts.map +1 -1
  86. package/dist/ui/file-upload/file-upload.js +36 -9
  87. package/dist/ui/file-upload/file-upload.js.map +1 -1
  88. package/dist/ui/index.cjs +12 -2
  89. package/dist/ui/index.cjs.map +1 -1
  90. package/dist/ui/index.d.ts +5 -1
  91. package/dist/ui/index.d.ts.map +1 -1
  92. package/dist/ui/index.js +7 -1
  93. package/dist/ui/index.js.map +1 -1
  94. package/dist/ui/input/input.cjs +8 -4
  95. package/dist/ui/input/input.cjs.map +1 -1
  96. package/dist/ui/input/input.css +4 -0
  97. package/dist/ui/input/input.d.ts.map +1 -1
  98. package/dist/ui/input/input.js +8 -4
  99. package/dist/ui/input/input.js.map +1 -1
  100. package/dist/ui/language-switcher/index.cjs +29 -0
  101. package/dist/ui/language-switcher/index.cjs.map +1 -0
  102. package/dist/ui/language-switcher/index.d.ts +3 -0
  103. package/dist/ui/language-switcher/index.d.ts.map +1 -0
  104. package/dist/ui/language-switcher/index.js +5 -0
  105. package/dist/ui/language-switcher/index.js.map +1 -0
  106. package/dist/ui/language-switcher/language-switcher-preview.cjs +137 -0
  107. package/dist/ui/language-switcher/language-switcher-preview.cjs.map +1 -0
  108. package/dist/ui/language-switcher/language-switcher-preview.d.ts +3 -0
  109. package/dist/ui/language-switcher/language-switcher-preview.d.ts.map +1 -0
  110. package/dist/ui/language-switcher/language-switcher-preview.js +113 -0
  111. package/dist/ui/language-switcher/language-switcher-preview.js.map +1 -0
  112. package/dist/ui/language-switcher/language-switcher.cjs +127 -0
  113. package/dist/ui/language-switcher/language-switcher.cjs.map +1 -0
  114. package/dist/ui/language-switcher/language-switcher.css +95 -0
  115. package/dist/ui/language-switcher/language-switcher.d.ts +73 -0
  116. package/dist/ui/language-switcher/language-switcher.d.ts.map +1 -0
  117. package/dist/ui/language-switcher/language-switcher.js +103 -0
  118. package/dist/ui/language-switcher/language-switcher.js.map +1 -0
  119. package/dist/ui/locale/index.cjs +33 -0
  120. package/dist/ui/locale/index.cjs.map +1 -0
  121. package/dist/ui/locale/index.d.ts +3 -0
  122. package/dist/ui/locale/index.d.ts.map +1 -0
  123. package/dist/ui/locale/index.js +7 -0
  124. package/dist/ui/locale/index.js.map +1 -0
  125. package/dist/ui/locale/locale.cjs +43 -0
  126. package/dist/ui/locale/locale.cjs.map +1 -0
  127. package/dist/ui/locale/locale.d.ts +49 -0
  128. package/dist/ui/locale/locale.d.ts.map +1 -0
  129. package/dist/ui/locale/locale.js +17 -0
  130. package/dist/ui/locale/locale.js.map +1 -0
  131. package/dist/ui/page-shell/page-shell.cjs.map +1 -1
  132. package/dist/ui/page-shell/page-shell.d.ts +1 -1
  133. package/dist/ui/page-shell/page-shell.d.ts.map +1 -1
  134. package/dist/ui/page-shell/page-shell.js.map +1 -1
  135. package/dist/ui/range-slider/range-slider.cjs +7 -3
  136. package/dist/ui/range-slider/range-slider.cjs.map +1 -1
  137. package/dist/ui/range-slider/range-slider.d.ts +17 -1
  138. package/dist/ui/range-slider/range-slider.d.ts.map +1 -1
  139. package/dist/ui/range-slider/range-slider.js +7 -3
  140. package/dist/ui/range-slider/range-slider.js.map +1 -1
  141. package/dist/ui/stat-card/stat-card.cjs +1 -1
  142. package/dist/ui/stat-card/stat-card.cjs.map +1 -1
  143. package/dist/ui/stat-card/stat-card.css +4 -0
  144. package/dist/ui/stat-card/stat-card.js +1 -1
  145. package/dist/ui/stat-card/stat-card.js.map +1 -1
  146. package/dist/ui/styles.css +2 -1
  147. package/dist/ui/toast/toast.css +3 -1
  148. 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.io/uxm/ui",
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.io/uxm/ui",
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.io/uxm/ui",
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.io/uxm/ui",
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.io/uxm/ui",
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.io/uxm/ui",
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.io/uxm/ui",
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.io/uxm/ui",
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.io/uxm/ui",
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.io/uxm/ui",
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.io/uxm/ui",
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.io/uxm/ui",
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)." },