@homebound/beam 2.369.3 → 2.369.4
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/dist/Css.js +7 -7
- package/dist/components/Accordion.js +1 -2
- package/dist/components/AccordionList.js +1 -2
- package/dist/components/AutoSaveIndicator.js +1 -2
- package/dist/components/AutoSaveStatus/AutoSaveStatusProvider.js +3 -3
- package/dist/components/AutoSaveStatus/useAutoSaveStatus.js +1 -2
- package/dist/components/Avatar/Avatar.js +1 -2
- package/dist/components/Avatar/AvatarButton.js +2 -2
- package/dist/components/Avatar/AvatarGroup.js +1 -2
- package/dist/components/Banner.js +1 -2
- package/dist/components/BeamContext.js +3 -3
- package/dist/components/Button.js +1 -2
- package/dist/components/ButtonDatePicker.js +1 -2
- package/dist/components/ButtonGroup.js +1 -2
- package/dist/components/ButtonMenu.js +1 -2
- package/dist/components/ButtonModal.js +1 -2
- package/dist/components/Chip.d.ts +1 -1
- package/dist/components/Chip.js +3 -3
- package/dist/components/Chips.js +1 -2
- package/dist/components/Copy.js +1 -2
- package/dist/components/CssReset.js +2 -2
- package/dist/components/DnDGrid/DnDGrid.js +2 -2
- package/dist/components/DnDGrid/DnDGridContext.js +2 -2
- package/dist/components/DnDGrid/DnDGridItemHandle.js +1 -2
- package/dist/components/DnDGrid/useDnDGridItem.js +1 -2
- package/dist/components/Filters/BooleanFilter.js +1 -2
- package/dist/components/Filters/CheckboxFilter.js +1 -2
- package/dist/components/Filters/DateFilter.js +1 -2
- package/dist/components/Filters/DateRangeFilter.js +1 -2
- package/dist/components/Filters/FilterModal.js +2 -3
- package/dist/components/Filters/MultiFilter.js +1 -2
- package/dist/components/Filters/NumberRangeFilter.js +1 -2
- package/dist/components/Filters/SingleFilter.js +2 -3
- package/dist/components/Filters/ToggleFilter.js +1 -2
- package/dist/components/Filters/TreeFilter.js +1 -2
- package/dist/components/Filters/index.d.ts +1 -1
- package/dist/components/Filters/index.js +3 -3
- package/dist/components/Filters/testDomain.js +3 -3
- package/dist/components/Filters/types.d.ts +0 -1
- package/dist/components/Filters/utils.js +2 -2
- package/dist/components/Grid/ResponsiveGrid.js +1 -2
- package/dist/components/Grid/ResponsiveGridItem.js +1 -2
- package/dist/components/Grid/useResponsiveGrid.js +1 -2
- package/dist/components/Grid/useResponsiveGridItem.js +1 -2
- package/dist/components/HbLoadingSpinner.js +3 -3
- package/dist/components/HelperText.js +1 -2
- package/dist/components/IconButton.js +2 -2
- package/dist/components/Label.js +3 -3
- package/dist/components/Layout/FullBleed.js +1 -2
- package/dist/components/Layout/PreventBrowserScroll.js +1 -2
- package/dist/components/Layout/RightPaneLayout/RightPaneContext.js +3 -3
- package/dist/components/Layout/RightPaneLayout/RightPaneLayout.js +1 -2
- package/dist/components/Layout/RightPaneLayout/useRightPane.js +1 -2
- package/dist/components/Layout/ScrollableContent.js +1 -2
- package/dist/components/Layout/ScrollableParent.js +3 -3
- package/dist/components/Loader.js +1 -2
- package/dist/components/LoadingSkeleton.js +1 -2
- package/dist/components/MaxLines.js +3 -4
- package/dist/components/Modal/Modal.js +5 -6
- package/dist/components/Modal/ModalContext.js +3 -3
- package/dist/components/Modal/OpenModal.d.ts +0 -1
- package/dist/components/Modal/OpenModal.js +1 -2
- package/dist/components/Modal/TestModalContent.js +3 -4
- package/dist/components/Modal/useModal.js +1 -2
- package/dist/components/NavLink.js +2 -3
- package/dist/components/Pagination.js +4 -4
- package/dist/components/PresentationContext.js +3 -3
- package/dist/components/ScrollShadows.js +1 -2
- package/dist/components/Snackbar/Snackbar.js +1 -2
- package/dist/components/Snackbar/SnackbarContext.js +3 -3
- package/dist/components/Snackbar/SnackbarNotice.js +1 -2
- package/dist/components/Snackbar/useSnackbar.js +1 -2
- package/dist/components/Stepper.js +1 -2
- package/dist/components/SuperDrawer/ConfirmCloseModal.js +1 -2
- package/dist/components/SuperDrawer/SuperDrawer.js +1 -2
- package/dist/components/SuperDrawer/components/SuperDrawerHeader.js +1 -2
- package/dist/components/SuperDrawer/useSuperDrawer.js +1 -2
- package/dist/components/SuperDrawer/utils.js +1 -1
- package/dist/components/Table/GridTable.js +13 -16
- package/dist/components/Table/GridTableApi.js +3 -3
- package/dist/components/Table/TableActions.js +1 -2
- package/dist/components/Table/TableStyles.js +2 -2
- package/dist/components/Table/components/CollapseToggle.js +1 -2
- package/dist/components/Table/components/EditColumnsButton.js +1 -2
- package/dist/components/Table/components/ExpandableHeader.js +1 -2
- package/dist/components/Table/components/KeptGroupRow.js +1 -2
- package/dist/components/Table/components/SelectToggle.js +1 -2
- package/dist/components/Table/components/SortHeader.js +1 -2
- package/dist/components/Table/components/cell.js +1 -1
- package/dist/components/Table/hooks/useSetupColumnSizes.js +1 -2
- package/dist/components/Table/utils/ColumnState.js +1 -1
- package/dist/components/Table/utils/GridRowLookup.js +2 -3
- package/dist/components/Table/utils/RowState.d.ts +1 -1
- package/dist/components/Table/utils/RowState.js +1 -1
- package/dist/components/Table/utils/TableState.js +2 -2
- package/dist/components/Table/utils/columns.js +12 -12
- package/dist/components/Table/utils/simpleHelpers.js +2 -2
- package/dist/components/Table/utils/sortRows.js +4 -5
- package/dist/components/Table/utils/utils.js +15 -15
- package/dist/components/Table/utils/visitor.js +1 -2
- package/dist/components/Tabs.js +6 -7
- package/dist/components/Tag.d.ts +1 -1
- package/dist/components/Tag.js +6 -7
- package/dist/components/Toast/Toast.js +1 -2
- package/dist/components/Toast/ToastContext.js +3 -3
- package/dist/components/Toast/useToast.js +1 -2
- package/dist/components/ToggleChip.js +1 -2
- package/dist/components/ToggleChips.js +1 -2
- package/dist/components/Tooltip.js +7 -6
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.js +4 -4
- package/dist/components/internal/CompoundField.d.ts +0 -1
- package/dist/components/internal/CompoundField.js +1 -2
- package/dist/components/internal/ContextualModal.js +1 -2
- package/dist/components/internal/DatePicker/DatePicker.js +1 -2
- package/dist/components/internal/DatePicker/DatePickerOverlay.js +1 -2
- package/dist/components/internal/DatePicker/DateRangePicker.js +1 -2
- package/dist/components/internal/DatePicker/Day.js +1 -2
- package/dist/components/internal/DatePicker/Header.js +2 -3
- package/dist/components/internal/DatePicker/WeekHeader.js +1 -2
- package/dist/components/internal/Menu.js +1 -2
- package/dist/components/internal/MenuItem.js +1 -2
- package/dist/components/internal/MenuSection.js +1 -2
- package/dist/components/internal/OverlayTrigger.js +5 -6
- package/dist/components/internal/Popover.js +2 -3
- package/dist/components/testData.js +2 -2
- package/dist/forms/BoundCheckboxField.js +1 -2
- package/dist/forms/BoundCheckboxGroupField.js +1 -2
- package/dist/forms/BoundChipSelectField.d.ts +0 -1
- package/dist/forms/BoundChipSelectField.js +1 -2
- package/dist/forms/BoundDateField.js +1 -2
- package/dist/forms/BoundDateRangeField.js +1 -2
- package/dist/forms/BoundIconCardField.d.ts +1 -1
- package/dist/forms/BoundIconCardField.js +3 -4
- package/dist/forms/BoundIconCardGroupField.d.ts +1 -1
- package/dist/forms/BoundIconCardGroupField.js +1 -2
- package/dist/forms/BoundMultiLineSelectField.d.ts +0 -1
- package/dist/forms/BoundMultiLineSelectField.js +1 -2
- package/dist/forms/BoundMultiSelectField.d.ts +0 -1
- package/dist/forms/BoundMultiSelectField.js +1 -2
- package/dist/forms/BoundNumberField.js +1 -2
- package/dist/forms/BoundRadioGroupField.js +1 -2
- package/dist/forms/BoundRichTextField.js +1 -2
- package/dist/forms/BoundSelectAndTextField.d.ts +0 -1
- package/dist/forms/BoundSelectAndTextField.js +1 -2
- package/dist/forms/BoundSelectField.d.ts +0 -1
- package/dist/forms/BoundSelectField.js +2 -3
- package/dist/forms/BoundSwitchField.js +1 -2
- package/dist/forms/BoundTextAreaField.js +1 -2
- package/dist/forms/BoundTextField.js +1 -2
- package/dist/forms/BoundToggleChipGroupField.js +1 -2
- package/dist/forms/BoundTreeSelectField.d.ts +0 -1
- package/dist/forms/BoundTreeSelectField.js +1 -2
- package/dist/forms/FormHeading.js +1 -2
- package/dist/forms/FormLines.js +4 -5
- package/dist/forms/FormStateApp.js +3 -3
- package/dist/forms/StaticField.js +1 -2
- package/dist/forms/StepperFormApp.js +1 -2
- package/dist/forms/SubmitButton.js +1 -2
- package/dist/forms/formStateDomain.js +1 -1
- package/dist/forms/index.d.ts +2 -2
- package/dist/forms/index.js +2 -2
- package/dist/forms/labelUtils.js +1 -2
- package/dist/hooks/useBreakpoint.js +1 -2
- package/dist/hooks/useComputed.d.ts +42 -1
- package/dist/hooks/useComputed.js +43 -3
- package/dist/hooks/useFilter.js +1 -2
- package/dist/hooks/useGroupBy.js +1 -2
- package/dist/hooks/useHover.js +1 -2
- package/dist/hooks/usePersistedFilter.js +2 -3
- package/dist/hooks/useQueryState.js +1 -2
- package/dist/hooks/useRenderCount.js +1 -2
- package/dist/hooks/useSessionStorage.js +1 -2
- package/dist/inputs/Autocomplete.js +1 -2
- package/dist/inputs/Checkbox.js +1 -2
- package/dist/inputs/CheckboxBase.js +2 -3
- package/dist/inputs/CheckboxGroup.js +1 -2
- package/dist/inputs/ChipSelectField.js +5 -5
- package/dist/inputs/ChipTextField.js +1 -2
- package/dist/inputs/DateFields/DateField.js +1 -2
- package/dist/inputs/DateFields/DateField.mock.js +1 -2
- package/dist/inputs/DateFields/DateFieldBase.js +2 -3
- package/dist/inputs/DateFields/DateRangeField.js +1 -2
- package/dist/inputs/DateFields/utils.js +7 -7
- package/dist/inputs/ErrorMessage.js +1 -2
- package/dist/inputs/IconCard.js +2 -2
- package/dist/inputs/IconCardGroup.js +5 -6
- package/dist/inputs/MultiLineSelectField.d.ts +0 -1
- package/dist/inputs/MultiLineSelectField.js +1 -2
- package/dist/inputs/MultiSelectField.js +1 -2
- package/dist/inputs/NumberField.js +2 -3
- package/dist/inputs/RadioGroupField.js +2 -2
- package/dist/inputs/RichTextField.d.ts +1 -1
- package/dist/inputs/RichTextField.js +2 -3
- package/dist/inputs/RichTextField.mock.js +1 -2
- package/dist/inputs/SelectField.d.ts +0 -1
- package/dist/inputs/SelectField.js +1 -2
- package/dist/inputs/Switch.js +3 -3
- package/dist/inputs/SwitchGroup.js +1 -2
- package/dist/inputs/TextAreaField.js +1 -2
- package/dist/inputs/TextField.js +1 -2
- package/dist/inputs/TextFieldBase.js +2 -3
- package/dist/inputs/ToggleButton.js +2 -2
- package/dist/inputs/ToggleChipGroup.d.ts +1 -1
- package/dist/inputs/ToggleChipGroup.js +2 -3
- package/dist/inputs/TreeSelectField/TreeOption.js +1 -2
- package/dist/inputs/TreeSelectField/TreeSelectField.js +5 -5
- package/dist/inputs/TreeSelectField/utils.js +5 -6
- package/dist/inputs/Value.js +2 -3
- package/dist/inputs/hooks/useGrowingTextField.js +1 -2
- package/dist/inputs/index.d.ts +1 -1
- package/dist/inputs/index.js +1 -1
- package/dist/inputs/internal/ComboBoxBase.js +6 -6
- package/dist/inputs/internal/ComboBoxInput.js +2 -3
- package/dist/inputs/internal/ListBox.js +1 -2
- package/dist/inputs/internal/ListBoxChip.js +1 -2
- package/dist/inputs/internal/ListBoxSection.js +1 -2
- package/dist/inputs/internal/ListBoxToggleChip.js +1 -2
- package/dist/inputs/internal/LoadingDots.js +1 -2
- package/dist/inputs/internal/MenuSearchField.js +1 -2
- package/dist/inputs/internal/Option.js +1 -2
- package/dist/inputs/internal/VirtualizedOptions.d.ts +0 -1
- package/dist/inputs/internal/VirtualizedOptions.js +1 -2
- package/dist/inputs/utils.js +1 -2
- package/dist/types.js +1 -2
- package/dist/utils/defaultLabel.js +1 -2
- package/dist/utils/defaultTestId.js +1 -2
- package/dist/utils/getInteractiveElement.js +1 -2
- package/dist/utils/index.js +12 -12
- package/dist/utils/options.js +2 -3
- package/dist/utils/rtl.d.ts +2 -3
- package/dist/utils/rtl.js +13 -13
- package/dist/utils/sb.d.ts +3 -3
- package/dist/utils/sb.js +7 -7
- package/dist/utils/shallowEqual.js +1 -2
- package/dist/utils/useTestIds.js +2 -3
- package/package.json +38 -45
package/dist/utils/rtl.js
CHANGED
|
@@ -1,6 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.withBeamRTL = exports.withRouter = exports.wait = exports.typeAndWait = exports.type = exports.rtlUtilSelect = exports.rtlUtilGetOptions = exports.newLocation = exports.input = exports.focus = exports.clickAndWait = exports.click = exports.change = exports.blur = void 0;
|
|
4
|
+
exports.render = render;
|
|
5
|
+
exports.cell = cell;
|
|
6
|
+
exports.cellOf = cellOf;
|
|
7
|
+
exports.cellAnd = cellAnd;
|
|
8
|
+
exports.row = row;
|
|
9
|
+
exports.rowAnd = rowAnd;
|
|
10
|
+
exports.tableSnapshot = tableSnapshot;
|
|
11
|
+
exports.select = select;
|
|
12
|
+
exports.selectAndWait = selectAndWait;
|
|
13
|
+
exports.getSelected = getSelected;
|
|
14
|
+
exports.getOptions = getOptions;
|
|
4
15
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
5
16
|
const rtl_react_router_utils_1 = require("@homebound/rtl-react-router-utils");
|
|
6
17
|
Object.defineProperty(exports, "newLocation", { enumerable: true, get: function () { return rtl_react_router_utils_1.newLocation; } });
|
|
@@ -32,7 +43,7 @@ function render(component, wrapperOrOpts, ...otherWrappers) {
|
|
|
32
43
|
wrappers = [
|
|
33
44
|
...otherWrappers,
|
|
34
45
|
...(!omitBeamContext ? [exports.withBeamRTL] : []),
|
|
35
|
-
...(at ? [(0, rtl_react_router_utils_1.withRouter)(at.url
|
|
46
|
+
...(at ? [(0, rtl_react_router_utils_1.withRouter)(at.url)] : [(0, rtl_react_router_utils_1.withRouter)()]),
|
|
36
47
|
];
|
|
37
48
|
}
|
|
38
49
|
else {
|
|
@@ -40,30 +51,24 @@ function render(component, wrapperOrOpts, ...otherWrappers) {
|
|
|
40
51
|
}
|
|
41
52
|
return (0, rtl_utils_1.render)(component, { wrappers, wait: true });
|
|
42
53
|
}
|
|
43
|
-
exports.render = render;
|
|
44
54
|
function cell(r, row, column) {
|
|
45
55
|
return cellOf(r, "gridTable", row, column);
|
|
46
56
|
}
|
|
47
|
-
exports.cell = cell;
|
|
48
57
|
function cellOf(r, tableTestId, rowNum, column) {
|
|
49
58
|
return row(r, rowNum, tableTestId).childNodes[column];
|
|
50
59
|
}
|
|
51
|
-
exports.cellOf = cellOf;
|
|
52
60
|
function cellAnd(r, row, column, testId) {
|
|
53
61
|
return (cell(r, row, column).querySelector(`[data-testid="${testId}"]`) ||
|
|
54
62
|
(0, mobx_utils_1.fail)(`Element not found ${(0, react_1.prettyDOM)(cell(r, row, column))}`));
|
|
55
63
|
}
|
|
56
|
-
exports.cellAnd = cellAnd;
|
|
57
64
|
function row(r, row, tableTestId = "gridTable") {
|
|
58
65
|
const dataRows = Array.from(r.getByTestId(tableTestId).querySelectorAll("[data-gridrow]"));
|
|
59
66
|
return dataRows[row];
|
|
60
67
|
}
|
|
61
|
-
exports.row = row;
|
|
62
68
|
function rowAnd(r, rowNum, testId) {
|
|
63
69
|
const e = row(r, rowNum);
|
|
64
70
|
return e.querySelector(`[data-testid="${testId}"]`) || (0, mobx_utils_1.fail)(`Element not found ${(0, react_1.prettyDOM)(e)}`);
|
|
65
71
|
}
|
|
66
|
-
exports.rowAnd = rowAnd;
|
|
67
72
|
/** Intended to be used to generate a human-readable text
|
|
68
73
|
* representation of a GridTable using the markdown table syntax.
|
|
69
74
|
* * Example Use: expect(tableSnapshot(r)).toMatchInlineSnapshot(`
|
|
@@ -98,7 +103,6 @@ function tableSnapshot(r, columnNames = []) {
|
|
|
98
103
|
}
|
|
99
104
|
return toMarkupTableString(tableDataAsStrings, hasExpandableHeader);
|
|
100
105
|
}
|
|
101
|
-
exports.tableSnapshot = tableSnapshot;
|
|
102
106
|
function toMarkupTableString(tableRows, hasExpandableHeader) {
|
|
103
107
|
// Find the largest width of each column to set a consistent width for each row
|
|
104
108
|
const columnWidths = tableRows.reduce((acc, row) => {
|
|
@@ -163,7 +167,6 @@ function select(select, value) {
|
|
|
163
167
|
const optionValues = Array.isArray(value) ? value : [value];
|
|
164
168
|
optionValues.forEach((optionValue) => selectOption(select, optionValue));
|
|
165
169
|
}
|
|
166
|
-
exports.select = select;
|
|
167
170
|
async function selectAndWait(select, value) {
|
|
168
171
|
// To work with React 18, we need to execute these as separate steps, otherwise
|
|
169
172
|
// the `ensureListBoxOpen` async render won't flush, and the `selectOption` will fail.
|
|
@@ -173,7 +176,6 @@ async function selectAndWait(select, value) {
|
|
|
173
176
|
optionValues.forEach((optionValue) => selectOption(select, optionValue));
|
|
174
177
|
});
|
|
175
178
|
}
|
|
176
|
-
exports.selectAndWait = selectAndWait;
|
|
177
179
|
function ensureListBoxOpen(select) {
|
|
178
180
|
const expanded = select.getAttribute("aria-expanded") === "true";
|
|
179
181
|
if (!expanded) {
|
|
@@ -212,7 +214,6 @@ function getSelected(select) {
|
|
|
212
214
|
.filter((o) => !!o);
|
|
213
215
|
return selections.length > 0 ? (selections.length > 1 ? selections : selections[0]) : undefined;
|
|
214
216
|
}
|
|
215
|
-
exports.getSelected = getSelected;
|
|
216
217
|
function getOptions(select) {
|
|
217
218
|
assertListBoxInput(select);
|
|
218
219
|
ensureListBoxOpen(select);
|
|
@@ -222,7 +223,6 @@ function getOptions(select) {
|
|
|
222
223
|
.map((o) => { var _a, _b; return (_b = (_a = o.dataset.label) !== null && _a !== void 0 ? _a : o.dataset.key) !== null && _b !== void 0 ? _b : ""; })
|
|
223
224
|
.filter((o) => !!o);
|
|
224
225
|
}
|
|
225
|
-
exports.getOptions = getOptions;
|
|
226
226
|
function findListBox(select) {
|
|
227
227
|
const listboxId = select.getAttribute("aria-controls") || (0, mobx_utils_1.fail)("aria-controls attribute not found");
|
|
228
228
|
return document.getElementById(listboxId) || (0, mobx_utils_1.fail)("listbox not found");
|
package/dist/utils/sb.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Decorator } from "@storybook/react";
|
|
2
2
|
import { ReactNode } from "react";
|
|
3
3
|
import { Properties } from "../Css";
|
|
4
|
-
export declare function withRouter(url?: string
|
|
4
|
+
export declare function withRouter(url?: string): Decorator;
|
|
5
5
|
type StoryParameters = {
|
|
6
6
|
chromatic?: {
|
|
7
7
|
delay?: number;
|
|
@@ -11,7 +11,7 @@ type StoryParameters = {
|
|
|
11
11
|
/** A somewhat typesafe way to set `FooStory.story` metadata. */
|
|
12
12
|
export declare function newStory(storyFn: Function, opts: {
|
|
13
13
|
parameters?: StoryParameters;
|
|
14
|
-
decorators?:
|
|
14
|
+
decorators?: Decorator[];
|
|
15
15
|
}): Function;
|
|
16
16
|
/** Renders a number of small samples within a single story. */
|
|
17
17
|
export declare function samples(...samples: [string, ReactNode][]): JSX.Element[];
|
package/dist/utils/sb.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.withDimensions = exports.withBeamDecorator =
|
|
3
|
+
exports.withDimensions = exports.withBeamDecorator = void 0;
|
|
4
|
+
exports.withRouter = withRouter;
|
|
5
|
+
exports.newStory = newStory;
|
|
6
|
+
exports.samples = samples;
|
|
7
|
+
exports.zeroTo = zeroTo;
|
|
4
8
|
const jsx_runtime_1 = require("@emotion/react/jsx-runtime");
|
|
5
9
|
const components_1 = require("../components");
|
|
6
10
|
const Css_1 = require("../Css");
|
|
7
11
|
const rtl_1 = require("./rtl");
|
|
8
|
-
function withRouter(url
|
|
9
|
-
return (Story) => (0, rtl_1.withRouter)(url
|
|
12
|
+
function withRouter(url) {
|
|
13
|
+
return (Story) => (0, rtl_1.withRouter)(url).wrap((0, jsx_runtime_1.jsx)(Story, {}));
|
|
10
14
|
}
|
|
11
|
-
exports.withRouter = withRouter;
|
|
12
15
|
/** A somewhat typesafe way to set `FooStory.story` metadata. */
|
|
13
16
|
function newStory(storyFn, opts) {
|
|
14
17
|
Object.assign(storyFn, opts);
|
|
15
18
|
return storyFn;
|
|
16
19
|
}
|
|
17
|
-
exports.newStory = newStory;
|
|
18
20
|
/** Renders a number of small samples within a single story. */
|
|
19
21
|
function samples(...samples) {
|
|
20
22
|
return samples.map((s, i) => {
|
|
21
23
|
return ((0, jsx_runtime_1.jsxs)("div", { css: Css_1.Css.my(8).$, children: [(0, jsx_runtime_1.jsx)("div", { css: Css_1.Css.my1.$, children: s[0] }), s[1]] }, i));
|
|
22
24
|
});
|
|
23
25
|
}
|
|
24
|
-
exports.samples = samples;
|
|
25
26
|
function zeroTo(n) {
|
|
26
27
|
return [...Array(n).keys()];
|
|
27
28
|
}
|
|
28
|
-
exports.zeroTo = zeroTo;
|
|
29
29
|
/** Storybook decorator utility to wrap a story with a SuperDrawer context */
|
|
30
30
|
const withBeamDecorator = (Story) => ((0, jsx_runtime_1.jsx)(components_1.BeamProvider, { children: (0, jsx_runtime_1.jsx)(Story, {}) }));
|
|
31
31
|
exports.withBeamDecorator = withBeamDecorator;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.shallowEqual =
|
|
3
|
+
exports.shallowEqual = shallowEqual;
|
|
4
4
|
/**
|
|
5
5
|
* An inlined version of shallowEach, see https://github.com/facebook/react/issues/16919
|
|
6
6
|
*/
|
|
@@ -25,4 +25,3 @@ function shallowEqual(objA, objB) {
|
|
|
25
25
|
}
|
|
26
26
|
return true;
|
|
27
27
|
}
|
|
28
|
-
exports.shallowEqual = shallowEqual;
|
package/dist/utils/useTestIds.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.useTestIds = useTestIds;
|
|
4
|
+
exports.newMethodMissingProxy = newMethodMissingProxy;
|
|
4
5
|
const defaultTestId_1 = require("./defaultTestId");
|
|
5
6
|
/**
|
|
6
7
|
* Provides a way to easily generate `data-testid`s.
|
|
@@ -44,7 +45,6 @@ function useTestIds(props, defaultPrefix) {
|
|
|
44
45
|
return { "data-testid": prefix ? `${prefix}_${key}` : key };
|
|
45
46
|
});
|
|
46
47
|
}
|
|
47
|
-
exports.useTestIds = useTestIds;
|
|
48
48
|
/** Uses `object` for any keys that exist on it, otherwise calls `methodMissing` fn. */
|
|
49
49
|
function newMethodMissingProxy(object, methodMissing) {
|
|
50
50
|
return new Proxy(object, {
|
|
@@ -61,4 +61,3 @@ function newMethodMissingProxy(object, methodMissing) {
|
|
|
61
61
|
},
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
exports.newMethodMissingProxy = newMethodMissingProxy;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@homebound/beam",
|
|
3
|
-
"version": "2.369.
|
|
3
|
+
"version": "2.369.4",
|
|
4
4
|
"author": "Homebound",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
},
|
|
20
20
|
"scripts": {
|
|
21
21
|
"start": "yarn storybook",
|
|
22
|
-
"build": "yarn copy &&
|
|
22
|
+
"build": "yarn copy && tspc",
|
|
23
23
|
"build:truss": "truss",
|
|
24
24
|
"build-storybook": "NODE_OPTIONS=--openssl-legacy-provider storybook build",
|
|
25
25
|
"test": "jest --maxWorkers 4",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"format": "prettier --loglevel warn --write \"**/*.{ts,tsx,css,md,mdx}\""
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@homebound/form-state": "^2.
|
|
36
|
+
"@homebound/form-state": "^2.25.2",
|
|
37
37
|
"@internationalized/number": "^3.0.3",
|
|
38
38
|
"@popperjs/core": "^2.11.6",
|
|
39
39
|
"@react-aria/utils": "^3.18.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"fast-deep-equal": "^3.1.3",
|
|
44
44
|
"framer-motion": "^9.0.4",
|
|
45
45
|
"memoize-one": "^5.2.1",
|
|
46
|
-
"mobx-utils": "^6.0
|
|
46
|
+
"mobx-utils": "^6.1.0",
|
|
47
47
|
"react-aria": "^3.26.0",
|
|
48
48
|
"react-day-picker": "8.0.7",
|
|
49
49
|
"react-popper": "^2.3.0",
|
|
@@ -71,68 +71,61 @@
|
|
|
71
71
|
}
|
|
72
72
|
},
|
|
73
73
|
"devDependencies": {
|
|
74
|
-
"@babel/core": "^7.21.0",
|
|
75
|
-
"@emotion/babel-preset-css-prop": "^11.10.0",
|
|
76
74
|
"@emotion/jest": "^11.10.5",
|
|
77
75
|
"@emotion/react": "^11.10.6",
|
|
78
76
|
"@homebound/eslint-config": "^1.10.2",
|
|
79
|
-
"@homebound/rtl-react-router-utils": "1.0
|
|
80
|
-
"@homebound/rtl-utils": "^2.
|
|
77
|
+
"@homebound/rtl-react-router-utils": "1.2.0",
|
|
78
|
+
"@homebound/rtl-utils": "^2.66.2",
|
|
81
79
|
"@homebound/truss": "^1.136.0",
|
|
82
80
|
"@homebound/tsconfig": "^1.0.3",
|
|
83
81
|
"@semantic-release/exec": "^6.0.3",
|
|
84
82
|
"@semantic-release/git": "^10.0.1",
|
|
85
|
-
"@storybook/addon-docs": "^
|
|
86
|
-
"@storybook/addon-essentials": "^
|
|
87
|
-
"@storybook/addon-interactions": "^
|
|
88
|
-
"@storybook/addon-links": "^
|
|
89
|
-
"@storybook/
|
|
90
|
-
"@storybook/
|
|
91
|
-
"@storybook/
|
|
92
|
-
"@storybook/
|
|
93
|
-
"@storybook/
|
|
94
|
-
"@storybook/
|
|
95
|
-
"@
|
|
96
|
-
"@testing-library/
|
|
97
|
-
"@testing-library/react": "^14.0.0",
|
|
83
|
+
"@storybook/addon-docs": "^8.3.5",
|
|
84
|
+
"@storybook/addon-essentials": "^8.3.5",
|
|
85
|
+
"@storybook/addon-interactions": "^8.3.5",
|
|
86
|
+
"@storybook/addon-links": "^8.3.5",
|
|
87
|
+
"@storybook/manager-api": "^8.3.5",
|
|
88
|
+
"@storybook/react": "^8.3.5",
|
|
89
|
+
"@storybook/react-vite": "^8.3.5",
|
|
90
|
+
"@storybook/test": "^8.3.5",
|
|
91
|
+
"@storybook/theming": "^8.3.5",
|
|
92
|
+
"@storybook/types": "^8.3.5",
|
|
93
|
+
"@testing-library/jest-dom": "^6.6.2",
|
|
94
|
+
"@testing-library/react": "^16.0.1",
|
|
98
95
|
"@tsconfig/recommended": "^1.0.2",
|
|
99
96
|
"@types/dompurify": "^2.2.3",
|
|
100
97
|
"@types/jest": "^29.4.0",
|
|
101
|
-
"@types/react": "^18.
|
|
98
|
+
"@types/react": "^18.3.11",
|
|
102
99
|
"@types/react-beautiful-dnd": "^13.1.3",
|
|
103
|
-
"@types/react-dom": "^18.
|
|
100
|
+
"@types/react-dom": "^18.3.1",
|
|
104
101
|
"@types/react-router-dom": "^5.3.3",
|
|
105
|
-
"@vitejs/plugin-react": "^3.
|
|
102
|
+
"@vitejs/plugin-react": "^4.3.2",
|
|
106
103
|
"array-move": "^4.0.0",
|
|
107
|
-
"
|
|
108
|
-
"babel-loader": "^8.2.2",
|
|
109
|
-
"chromatic": "^10.3.1",
|
|
104
|
+
"chromatic": "^11.12.6",
|
|
110
105
|
"conventional-changelog-conventionalcommits": "^5.0.0",
|
|
111
106
|
"eslint": "^8.52.0",
|
|
112
|
-
"eslint-plugin-storybook": "^0.
|
|
107
|
+
"eslint-plugin-storybook": "^0.9.0",
|
|
113
108
|
"husky": "^5.1.1",
|
|
114
109
|
"identity-obj-proxy": "^3.0.0",
|
|
115
|
-
"jest": "^29.
|
|
110
|
+
"jest": "^29.7.0",
|
|
116
111
|
"jest-chain": "^1.1.6",
|
|
117
|
-
"jest-environment-jsdom": "^29.
|
|
112
|
+
"jest-environment-jsdom": "^29.7.0",
|
|
118
113
|
"jest-watch-typeahead": "^2.2.2",
|
|
119
|
-
"mobx": "^6.
|
|
120
|
-
"mobx-react": "^9.
|
|
121
|
-
"prettier": "^3.
|
|
122
|
-
"prettier-plugin-organize-imports": "^
|
|
123
|
-
"react": "^18.
|
|
114
|
+
"mobx": "^6.13.5",
|
|
115
|
+
"mobx-react": "^9.1.1",
|
|
116
|
+
"prettier": "^3.3.3",
|
|
117
|
+
"prettier-plugin-organize-imports": "^4.1.0",
|
|
118
|
+
"react": "^18.3.1",
|
|
124
119
|
"react-dom": "^18.2.0",
|
|
125
120
|
"semantic-release": "^20.1.0",
|
|
126
|
-
"storybook": "^
|
|
127
|
-
"
|
|
128
|
-
"ts-
|
|
129
|
-
"ts-
|
|
130
|
-
"
|
|
131
|
-
"
|
|
132
|
-
"
|
|
133
|
-
"
|
|
134
|
-
"vite": "^4.1.4",
|
|
135
|
-
"vite-plugin-turbosnap": "^1.0.1",
|
|
121
|
+
"storybook": "^8.3.5",
|
|
122
|
+
"ts-jest": "^29.2.5",
|
|
123
|
+
"ts-node": "^10.9.2",
|
|
124
|
+
"ts-patch": "^3.2.1",
|
|
125
|
+
"typescript": "5.5.4",
|
|
126
|
+
"typescript-transform-paths": "^3.5.1",
|
|
127
|
+
"vite": "^5.4.9",
|
|
128
|
+
"vite-tsconfig-paths": "^5.0.1",
|
|
136
129
|
"watch": "^1.0.2"
|
|
137
130
|
},
|
|
138
131
|
"resolutions": {
|