@orbitcommerce/constellation 1.2.0 → 1.2.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 (45) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/dist/index.cjs +1417 -1271
  3. package/dist/index.d.cts +16 -5
  4. package/dist/index.d.ts +16 -5
  5. package/dist/modules/charts/BarChart.js +8 -2
  6. package/dist/modules/chunks/{chunk-BQPZL3XZ.js → chunk-5AJJKEPJ.js} +1 -1
  7. package/dist/modules/chunks/{chunk-IAI6LBP7.js → chunk-IJ34OAQ4.js} +1 -1
  8. package/dist/modules/chunks/{chunk-26BBBTBT.js → chunk-NYXMCKSQ.js} +15 -3
  9. package/dist/modules/chunks/{chunk-4FC4UJJ4.js → chunk-PKANW3SX.js} +1 -1
  10. package/dist/modules/chunks/{chunk-2NOGHGEU.js → chunk-T5XBIQ5C.js} +97 -5
  11. package/dist/modules/chunks/{chunk-G7576I2R.js → chunk-T7Y6VU4F.js} +1 -1
  12. package/dist/modules/chunks/{chunk-LXZEAWTG.js → chunk-WAVDSHPC.js} +4 -2
  13. package/dist/modules/chunks/{chunk-MSWXH7V3.js → chunk-YCS3IVCC.js} +21 -0
  14. package/dist/modules/components/AddressBlock.js +12 -3
  15. package/dist/modules/components/AddressFields.js +3 -3
  16. package/dist/modules/components/ColorField.js +2 -2
  17. package/dist/modules/components/Combobox.js +2 -2
  18. package/dist/modules/components/ConditionBuilder.js +3 -3
  19. package/dist/modules/components/FigureStrip.js +1 -1
  20. package/dist/modules/components/FigureTabs.js +1 -1
  21. package/dist/modules/components/GradientEditor.js +2 -2
  22. package/dist/modules/components/MarkdownField.js +1 -1
  23. package/dist/modules/components/PlanComparison.js +1 -1
  24. package/dist/modules/components/PlanGrid.js +1 -1
  25. package/dist/modules/components/RichTextEditor.js +2 -2
  26. package/dist/modules/components/SectionRail.js +6 -2
  27. package/dist/modules/components/SettingRow.js +2 -2
  28. package/dist/modules/components/SkeletonRow.js +1 -1
  29. package/dist/modules/components/Table.js +1 -1
  30. package/dist/modules/components/TableReorder.js +1 -1
  31. package/dist/modules/components/Tabs.js +1 -1
  32. package/dist/modules/components/TimeZoneSelect.js +3 -3
  33. package/dist/modules/components/TreeSelect.js +2 -2
  34. package/dist/modules/components/ValueChange.js +1 -1
  35. package/dist/modules/components/WeeklyHours.js +3 -3
  36. package/dist/styles/components/address-block.css +10 -0
  37. package/dist/styles/components/card.css +2 -0
  38. package/dist/styles/components/color-field.css +4 -1
  39. package/dist/styles/components/figure-strip.css +14 -0
  40. package/dist/styles/components/plan-grid.css +8 -0
  41. package/dist/styles/components/radio-group.css +40 -0
  42. package/dist/styles/components/table.css +6 -21
  43. package/dist/styles/components/tabs.css +4 -0
  44. package/dist/styles.css +88 -22
  45. package/package.json +11 -11
package/CHANGELOG.md CHANGED
@@ -4,6 +4,30 @@ All notable changes to Constellation by Orbit Commerce. Versions follow [semanti
4
4
  a patch fixes, a minor adds, and only a major release removes or renames something you already use. Where a minor
5
5
  changes how existing code behaves, "Behaviour changes to know" in its entry lists the change.
6
6
 
7
+ ## 1.2.1 (2026-10-22)
8
+
9
+ Fixes found as Orbit's dashboards and plugins moved onto 1.2.0, and newer Radix primitives and motion. Nothing is removed
10
+ or renamed; one public prop is added (`FigureStripItem` `valueType`).
11
+
12
+ ### Fixes
13
+
14
+ - **AddressBlock:** the phone under an address is a tap-to-call link, as the email there is a mailto link: the line's ink, the underline on hover and the focus ring. Both links are as wide as their words, so a tap beside the number is not a call and the ring hugs it. In both variants the link dials the number as it is shown, with its spaces, brackets, dashes and dots taken out, a leading `+` kept, the `(0)` after a country code left out and any words after the number not dialled ("+44 (0)113 496 0000 ext. 12" calls +441134960000). A phone with no digits in it stays text, where the contact variant drew a `tel:` link with nothing to dial.
15
+ - **TableFrame edges:** the soft shadow on each edge of a table wider than its frame now shows only on a side the table can be scrolled towards, in every browser: the end edge while there are columns past it, the start edge once it has left its start, none on a table that fits. They were driven by a named scroll timeline that Safari never resolved, so Safari showed the start shadow on every table at rest, and Firefox drew neither. The frame's viewport now carries `data-scroll-start` and `data-scroll-end` while it can scroll that way, read on every scroll and whenever the frame or its table changes size, and the seams of pinned columns follow the same marks.
16
+ - **CardHeader, actions on a narrow card:** actions wider than the card (a select and a button on a phone) wrap onto further lines, at the start, each control at its full width, instead of running past the card's edge, where a card that clips its overflow cut the last one off. `.o-card__actions` is never wider than the head. A card wide enough for its actions looks as it did.
17
+ - **SectionRail and useSectionSpy:** a page that scrolls less than the window opens on its first section. The line a section's top has to reach slid down by the scroll still left, which on such a page is small before the reader has moved, so the last section was current on load and `syncHash` wrote it into the address. The line now slides with the scroll done over the page's last stretch: the offset at the top of any page, the bottom edge at the end. A long page is as it was.
18
+ - **ColorField:** a width on the field from the host (a `w-44` class, `max-w-xs`) wins whichever stylesheet loads last. The field's own fill (`width: 100%`) carried a class's weight, and the kit's sheet loads after a host's, so the class was ignored and the field filled its row. The fill is now weightless, as a Select's trigger is.
19
+ - **Combobox and TreeSelect, attached:** a field at the foot of a page that cannot scroll further opens its results as the floating sheet, which opens above the field when there is no room below, where it shrank to a sliver under the field. The attached sheet still opens under a field with room, after scrolling the page to make room as before.
20
+ - **FigureStrip:** an item whose value is words takes `valueType: 'text'` and is set in body type that wraps, as a Figure's text value is, where "No closed deals yet" stood in the figure's face and wrapped over two lines beside the numbers. Numbers keep the figure type (the default, `'figure'`).
21
+ - **BarChart:** level category labels thinned to fit are no longer cut short. The step counted only a 44px minimum, so 30 daily bars in a 672px plot kept every second label at about 37px and "23 Sept" read "23 Se…"; it now also counts the widest label (estimated at 6px a character, up to 14, plus the 8px gap), so those labels thin to every third and each kept one fits. Short labels thin as before; tilted and horizontal charts are unchanged.
22
+ - **RadioGroup, cards with a price:** a plain card with a price and a description sets the price, and the selected pill, on the label's row only, and runs the description under them at the card's full width, where the price kept its column for the card's whole height and the description wrapped a word or two a line. The price is still at most half the card. Cards with an icon tile, a picture or a hint of their own keep their row.
23
+ - **PlanGrid:** the footnote is a block (a `div`, with the same look) rather than a paragraph, so a host's own `<p>` in it is valid markup and React no longer warns of a paragraph inside a paragraph.
24
+ - **RichTextEditor:** the character count reads 0 for an editor TipTap has destroyed, where reading its text threw ("schema.nodes") and React rendered the whole root again.
25
+ - **Tabs:** `onValueChange` is called once per press with Radix Tabs 1.2, which focuses the trigger inside its own mousedown handler, so a click reported the tab twice (two URL writes per filter click, for example). That same scripted focus counted as keyboard focus, so every click left the teal ring on the tab: a pressed tab is now marked (`data-pointer-focus`) until a key is pressed or the tab is left, and the ring shows only for focus from the keyboard, on every tab style (line, pill, steps, and the parts built on Tabs).
26
+
27
+ ### Dependencies
28
+
29
+ - motion 14.2 (was 13), and the Radix primitives the kit draws on (dialog and popover 1.3, select and context menu 2.4, dropdown menu 2.2, radio group 1.5, slot 1.5, tabs 1.2, tooltip 1.4). The docs and tests run on React 19.3, and the build on TypeScript 6.
30
+
7
31
  ## 1.2.0 (2026-10-15)
8
32
 
9
33
  The kit gains components for status and records, tables, lists and filters, fields and addresses, dates and times,