@scattered-light/loomiere-base-ui 0.13.0 → 0.14.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 (81) hide show
  1. package/README.md +1 -0
  2. package/dist/{chunk-2NAYVQ2U.js → chunk-HPUI5FIO.js} +3 -3
  3. package/dist/chunk-HPUI5FIO.js.map +1 -0
  4. package/dist/custom/collection/index.d.ts +10 -3
  5. package/dist/custom/collection/index.js +11 -3
  6. package/dist/custom/collection/index.js.map +1 -1
  7. package/dist/custom/index.d.ts +1 -1
  8. package/dist/custom/index.js +1 -1
  9. package/dist/design-system/components/DataTable/preview.html +1 -1
  10. package/dist/design-system/components/PickerButton/README.md +1 -1
  11. package/dist/design-system/components/Table/README.md +1 -1
  12. package/dist/design-system/components/bundle.js +6 -6
  13. package/dist/design-system/components/index.d.ts +1 -1
  14. package/dist/design-system/components/styles.css +106 -63
  15. package/dist/{index-D4DT1VE-.d.ts → index-kV9TCCxP.d.ts} +2 -1
  16. package/dist/index.d.ts +1 -1
  17. package/dist/index.js +1 -1
  18. package/dist/styles/components/Accordion.css +1 -1
  19. package/dist/styles/components/AlertDialog.css +1 -1
  20. package/dist/styles/components/Autocomplete.css +1 -1
  21. package/dist/styles/components/Avatar.css +1 -1
  22. package/dist/styles/components/Button.css +1 -1
  23. package/dist/styles/components/Checkbox.css +1 -1
  24. package/dist/styles/components/CheckboxGroup.css +1 -1
  25. package/dist/styles/components/Collapsible.css +1 -1
  26. package/dist/styles/components/Combobox.css +1 -1
  27. package/dist/styles/components/ContextMenu.css +1 -1
  28. package/dist/styles/components/Dialog.css +1 -1
  29. package/dist/styles/components/Drawer.css +1 -1
  30. package/dist/styles/components/Field.css +1 -1
  31. package/dist/styles/components/Fieldset.css +1 -1
  32. package/dist/styles/components/Form.css +1 -1
  33. package/dist/styles/components/Input.css +1 -1
  34. package/dist/styles/components/Menu.css +1 -1
  35. package/dist/styles/components/Menubar.css +1 -1
  36. package/dist/styles/components/Meter.css +1 -1
  37. package/dist/styles/components/NavigationMenu.css +1 -1
  38. package/dist/styles/components/NumberField.css +1 -1
  39. package/dist/styles/components/OTPField.css +1 -1
  40. package/dist/styles/components/Popover.css +1 -1
  41. package/dist/styles/components/PreviewCard.css +1 -1
  42. package/dist/styles/components/Progress.css +1 -1
  43. package/dist/styles/components/Radio.css +1 -1
  44. package/dist/styles/components/ScrollArea.css +1 -1
  45. package/dist/styles/components/Select.css +1 -1
  46. package/dist/styles/components/Separator.css +1 -1
  47. package/dist/styles/components/Slider.css +1 -1
  48. package/dist/styles/components/Switch.css +1 -1
  49. package/dist/styles/components/Tabs.css +1 -1
  50. package/dist/styles/components/Toast.css +1 -1
  51. package/dist/styles/components/Toggle.css +1 -1
  52. package/dist/styles/components/ToggleGroup.css +1 -1
  53. package/dist/styles/components/Toolbar.css +1 -1
  54. package/dist/styles/components/Tooltip.css +1 -1
  55. package/dist/styles/custom/AppBar.css +1 -1
  56. package/dist/styles/custom/Badge.css +1 -1
  57. package/dist/styles/custom/Collection.css +1 -1
  58. package/dist/styles/custom/CollectionPagination.css +1 -1
  59. package/dist/styles/custom/CollectionToolbar.css +1 -1
  60. package/dist/styles/custom/DataList.css +1 -1
  61. package/dist/styles/custom/DataTable.css +12 -1
  62. package/dist/styles/custom/DatePicker.css +1 -1
  63. package/dist/styles/custom/DescriptionList.css +1 -1
  64. package/dist/styles/custom/EditableList.css +1 -1
  65. package/dist/styles/custom/EmptyState.css +1 -1
  66. package/dist/styles/custom/ListDetail.css +1 -1
  67. package/dist/styles/custom/MoneyField.css +1 -1
  68. package/dist/styles/custom/PickerButton.css +17 -4
  69. package/dist/styles/custom/Sheet.css +3 -1
  70. package/dist/styles/custom/SideNav.css +1 -1
  71. package/dist/styles/custom/Splitter.css +1 -1
  72. package/dist/styles/custom/StatFigure.css +1 -1
  73. package/dist/styles/custom/Table.css +18 -1
  74. package/dist/styles/index.css +1 -1
  75. package/dist/styles/reset/accessibility.css +1 -1
  76. package/dist/styles/reset/reset-accessibility.css +1 -1
  77. package/dist/styles/reset/reset-tailwind.css +1 -1
  78. package/dist/styles/reset/reset.css +1 -1
  79. package/dist/styles/tailwind.css +1 -1
  80. package/package.json +2 -2
  81. package/dist/chunk-2NAYVQ2U.js.map +0 -1
package/README.md CHANGED
@@ -174,6 +174,7 @@ A tree in a DataTable (`getSubRows`) has options for a register of parents and c
174
174
  - `treeLines` also gives parent, child and total rows their own heights, from `collection.tree-row-height-parent`, `tree-row-height-child`, `total-row-height-subtotal` and `total-row-height-grand` (all the dense row until a brand sets them), and starts the elbow `collection.tree-line-offset` in. With `disclosure="small"` the chevron takes `collection.disclosure-color`. A row with `onRowActivate` or `getRowHref` shows a pointer. `table.row-hover-color` is the text color on the hovered row.
175
175
  - `CollectionToolbar` takes `searchWidth="fixed"` (the search keeps `collection.search-fixed-width`), `meta` and `metaEnd` (quiet text beside the search and at the far end of the row) and `framed` (padding and a rule under it, inside a Sheet).
176
176
  - `treeLines` draws an elbow from each child's name back up to its parent. `disclosure="small"` shrinks the expand button so a parent is as tall as its children. `getRowKind={(row) => 'link'}` marks a row (`data-kind="link"`) whose name reads as a link, for a row such as "3 more Entities".
177
+ - `CollectionToolbar` takes `searchPlaceholder`. `DataTable` takes `headerStyle="caps"` (column names and total-row labels in caps-condense) and `figures` (end-aligned cells in the figures family). With `treeLines`, parent rows take `collection.tree-parent-row-background` and `collection.tree-parent-row-hover`.
177
178
 
178
179
 
179
180
  ### App bar: AppBar, PickerButton and a segmented ToggleGroup
@@ -3555,7 +3555,7 @@ var AppBarSpacer = React10.forwardRef(function AppBarSpacer2({ className, ...pro
3555
3555
  });
3556
3556
  var PickerButton = React10.forwardRef(function PickerButton2({ className, label, value, placeholder, type = "button", children, ...props }, ref) {
3557
3557
  const empty = value == null || value === "";
3558
- return /* @__PURE__ */ jsxs("button", { ref, type, className: cn("PickerButton", className), ...props, children: [
3558
+ return /* @__PURE__ */ jsxs("button", { ref, type, className: cn("PickerButton", className?.split(/\s+/).filter((name) => name !== "Button").join(" ")), ...props, children: [
3559
3559
  /* @__PURE__ */ jsx("span", { className: "PickerButtonLabel", children: label }),
3560
3560
  /* @__PURE__ */ jsx("span", { className: "PickerButtonValue", "data-placeholder": empty ? "" : void 0, children: empty ? placeholder : value }),
3561
3561
  children,
@@ -3833,5 +3833,5 @@ var EditableList = {
3833
3833
  };
3834
3834
 
3835
3835
  export { AppBar, AppBarSpacer, Badge, CURRENCY_SEARCH_THRESHOLD, Calendar, CurrencySelect, DatePicker, DatePresets, DescriptionItem, DescriptionList, Drawer, EditableList, Field, ListDetail, ListDetailDetail, ListDetailList, ListDetailRoot, MAX_MINOR_UNITS, MoneyField, MoneyFieldAffix, MoneyFieldGroup, MoneyFieldInput, MoneyFieldRoot, NumberField, PickerButton, Popover, Sheet, SideNav, SideNavGroup, SideNavItem, SideNavToggle, Splitter, SplitterHandle, SplitterPanel, SplitterRoot, StatFigure, addDays, addMonths, affixSide, applyKey, applyStored, ariaPercents, builtinPresets, clampDate, createPanels, cssSize, currencyName, currencySymbol, daysInMonth, defaultPresets, defaultWeekStartsOn, endOfWeek, formatDay, formatFull, formatMoney2 as formatMoney, fromMinorUnits, getCurrencyDigits, handleTarget, inclusiveDays, isValidCurrency, isoWeek, last30Days, last7Days, lastMonth, lastWeek, layoutOf, lengthBlockReason, measure, monthCells, moveFocusDate, nextMonth, nextWeek, normalizePaste, orderRange, parseDate, parseDecimalString, parseSize, presetInBounds, resetToDefault, resizeByDelta, resolvePreset, roundHalfExpand, roundingChangesValue, sameSelection, serializeSize, settle, sizeText, startOfWeek, syncPanels, thisMonth, thisQuarter, thisWeek, toDecimalString, toMinorUnits, today, todayDate, toggleCollapsed, tomorrow, useListDetail, valueText, yearToDate, yesterday };
3836
- //# sourceMappingURL=chunk-2NAYVQ2U.js.map
3837
- //# sourceMappingURL=chunk-2NAYVQ2U.js.map
3836
+ //# sourceMappingURL=chunk-HPUI5FIO.js.map
3837
+ //# sourceMappingURL=chunk-HPUI5FIO.js.map