@scattered-light/loomiere-base-ui 0.16.0 → 0.17.0
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/README.md +1 -1
- package/dist/{chunk-TVZOM4US.js → chunk-DBNGJCTF.js} +8 -5
- package/dist/chunk-DBNGJCTF.js.map +1 -0
- package/dist/custom/index.d.ts +1 -1
- package/dist/custom/index.js +1 -1
- package/dist/design-system/components/StatCard/README.md +2 -0
- package/dist/design-system/components/StatCard/preview.html +1 -1
- package/dist/design-system/components/bundle.js +6 -6
- package/dist/design-system/components/index.d.ts +1 -1
- package/dist/design-system/components/styles.css +87 -63
- package/dist/{index-CoS-HLC1.d.ts → index-C-lxJXk8.d.ts} +2 -0
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/styles/components/Accordion.css +1 -1
- package/dist/styles/components/AlertDialog.css +1 -1
- package/dist/styles/components/Autocomplete.css +1 -1
- package/dist/styles/components/Avatar.css +1 -1
- package/dist/styles/components/Button.css +1 -1
- package/dist/styles/components/Checkbox.css +1 -1
- package/dist/styles/components/CheckboxGroup.css +1 -1
- package/dist/styles/components/Collapsible.css +1 -1
- package/dist/styles/components/Combobox.css +1 -1
- package/dist/styles/components/ContextMenu.css +1 -1
- package/dist/styles/components/Dialog.css +1 -1
- package/dist/styles/components/Drawer.css +1 -1
- package/dist/styles/components/Field.css +1 -1
- package/dist/styles/components/Fieldset.css +1 -1
- package/dist/styles/components/Form.css +1 -1
- package/dist/styles/components/Input.css +1 -1
- package/dist/styles/components/Menu.css +1 -1
- package/dist/styles/components/Menubar.css +1 -1
- package/dist/styles/components/Meter.css +1 -1
- package/dist/styles/components/NavigationMenu.css +1 -1
- package/dist/styles/components/NumberField.css +1 -1
- package/dist/styles/components/OTPField.css +1 -1
- package/dist/styles/components/Popover.css +1 -1
- package/dist/styles/components/PreviewCard.css +1 -1
- package/dist/styles/components/Progress.css +1 -1
- package/dist/styles/components/Radio.css +1 -1
- package/dist/styles/components/ScrollArea.css +1 -1
- package/dist/styles/components/Select.css +1 -1
- package/dist/styles/components/Separator.css +1 -1
- package/dist/styles/components/Slider.css +1 -1
- package/dist/styles/components/Switch.css +1 -1
- package/dist/styles/components/Tabs.css +1 -1
- package/dist/styles/components/Toast.css +1 -1
- package/dist/styles/components/Toggle.css +1 -1
- package/dist/styles/components/ToggleGroup.css +1 -1
- package/dist/styles/components/Toolbar.css +1 -1
- package/dist/styles/components/Tooltip.css +1 -1
- package/dist/styles/custom/AppBar.css +1 -1
- package/dist/styles/custom/Badge.css +1 -1
- package/dist/styles/custom/Collection.css +1 -1
- package/dist/styles/custom/CollectionPagination.css +1 -1
- package/dist/styles/custom/CollectionToolbar.css +1 -1
- package/dist/styles/custom/DataList.css +1 -1
- package/dist/styles/custom/DataTable.css +1 -1
- package/dist/styles/custom/DatePicker.css +1 -1
- package/dist/styles/custom/DescriptionList.css +4 -2
- package/dist/styles/custom/EditableList.css +1 -1
- package/dist/styles/custom/EmptyState.css +1 -1
- package/dist/styles/custom/ListDetail.css +1 -1
- package/dist/styles/custom/MoneyField.css +1 -1
- package/dist/styles/custom/PickerButton.css +1 -1
- package/dist/styles/custom/PickerSplit.css +1 -1
- package/dist/styles/custom/Sheet.css +1 -1
- package/dist/styles/custom/SideNav.css +1 -1
- package/dist/styles/custom/Splitter.css +1 -1
- package/dist/styles/custom/StatCard.css +23 -1
- package/dist/styles/custom/StatFigure.css +1 -1
- package/dist/styles/custom/Table.css +1 -1
- package/dist/styles/index.css +1 -1
- package/dist/styles/reset/accessibility.css +1 -1
- package/dist/styles/reset/reset-accessibility.css +1 -1
- package/dist/styles/reset/reset-tailwind.css +1 -1
- package/dist/styles/reset/reset.css +1 -1
- package/dist/styles/tailwind.css +1 -1
- package/package.json +2 -2
- package/dist/chunk-TVZOM4US.js.map +0 -1
package/README.md
CHANGED
|
@@ -162,7 +162,7 @@ Pieces for pages that read like an accountant's working paper. They use the them
|
|
|
162
162
|
<StatFigure label="Book balance" value="75.00" caption="DR · Oct 29" underline="double" />
|
|
163
163
|
```
|
|
164
164
|
|
|
165
|
-
`StatCard` is a card for one thing a page lists (an Entity, an account): a heading, a caption, and a row of figures ruled off under them. Give it `href` or `onOpen` and the whole card opens through its title, with one tab stop named by the title. `headingLevel` fits it to the page's outline.
|
|
165
|
+
`StatCard` is a card for one thing a page lists (an Entity, an account): a heading, a caption, and a row of figures ruled off under them. Give it `href` or `onOpen` and the whole card opens through its title, with one tab stop named by the title. `headingLevel` fits it to the page's outline. `footer` adds a line under the figures, and `tag` puts a small mark (a count of what is new, a status) at the top right.
|
|
166
166
|
|
|
167
167
|
```tsx
|
|
168
168
|
<StatCard
|
|
@@ -3538,7 +3538,7 @@ var StatFigure = React10.forwardRef(function StatFigure2({ className, label, val
|
|
|
3538
3538
|
}
|
|
3539
3539
|
);
|
|
3540
3540
|
});
|
|
3541
|
-
var StatCard = React10.forwardRef(function StatCard2({ className, title, caption, facts, href, onOpen, headingLevel = 3, footer, ...props }, ref) {
|
|
3541
|
+
var StatCard = React10.forwardRef(function StatCard2({ className, title, caption, facts, href, onOpen, headingLevel = 3, footer, tag, ...props }, ref) {
|
|
3542
3542
|
const Heading = `h${headingLevel}`;
|
|
3543
3543
|
const interactive = href != null || onOpen != null;
|
|
3544
3544
|
return /* @__PURE__ */ jsxs(
|
|
@@ -3550,8 +3550,11 @@ var StatCard = React10.forwardRef(function StatCard2({ className, title, caption
|
|
|
3550
3550
|
...props,
|
|
3551
3551
|
children: [
|
|
3552
3552
|
/* @__PURE__ */ jsxs("header", { className: "StatCardHeader", children: [
|
|
3553
|
-
/* @__PURE__ */
|
|
3554
|
-
|
|
3553
|
+
/* @__PURE__ */ jsxs("div", { className: "StatCardHeading", children: [
|
|
3554
|
+
/* @__PURE__ */ jsx(Heading, { className: "StatCardTitle", children: href != null ? /* @__PURE__ */ jsx("a", { className: "StatCardLink", href, children: title }) : onOpen != null ? /* @__PURE__ */ jsx("button", { className: "StatCardLink", type: "button", onClick: onOpen, children: title }) : title }),
|
|
3555
|
+
caption != null ? /* @__PURE__ */ jsx("p", { className: "StatCardCaption", children: caption }) : null
|
|
3556
|
+
] }),
|
|
3557
|
+
tag != null ? /* @__PURE__ */ jsx("span", { className: "StatCardTag", children: tag }) : null
|
|
3555
3558
|
] }),
|
|
3556
3559
|
/* @__PURE__ */ jsx("div", { className: "StatCardFacts", style: { gridTemplateColumns: `repeat(${Math.max(facts.length, 1)}, minmax(0, 1fr))` }, children: facts.map((fact, index) => /* @__PURE__ */ jsx(StatFigure, { size: "sm", ...fact }, index)) }),
|
|
3557
3560
|
footer != null ? /* @__PURE__ */ jsx("div", { className: "StatCardFooter", children: footer }) : null
|
|
@@ -3869,5 +3872,5 @@ var EditableList = {
|
|
|
3869
3872
|
};
|
|
3870
3873
|
|
|
3871
3874
|
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, PickerSplit, PickerSplitMain, PickerSplitTrigger, Popover, Sheet, SideNav, SideNavGroup, SideNavItem, SideNavToggle, Splitter, SplitterHandle, SplitterPanel, SplitterRoot, StatCard, 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 };
|
|
3872
|
-
//# sourceMappingURL=chunk-
|
|
3873
|
-
//# sourceMappingURL=chunk-
|
|
3875
|
+
//# sourceMappingURL=chunk-DBNGJCTF.js.map
|
|
3876
|
+
//# sourceMappingURL=chunk-DBNGJCTF.js.map
|