@dloizides/ui-layout 1.49.3 → 1.50.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/CHANGELOG.md +713 -708
- package/dist/index.d.mts +15 -3
- package/dist/index.d.ts +15 -3
- package/dist/index.js +14 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -450,12 +450,17 @@ var styles6 = StyleSheet.create({
|
|
|
450
450
|
stackPane: { width: "100%", minWidth: 0 },
|
|
451
451
|
fixedPane: { flexGrow: 0, flexShrink: 0, minWidth: 0 }
|
|
452
452
|
});
|
|
453
|
+
function sidePaneStyle(weight, fixedWidth) {
|
|
454
|
+
if (fixedWidth === void 0) return [styles6.sidePane, { flexGrow: weight }];
|
|
455
|
+
return [styles6.fixedPane, { width: fixedWidth }];
|
|
456
|
+
}
|
|
453
457
|
var SplitPanes = ({
|
|
454
458
|
start,
|
|
455
459
|
end,
|
|
456
460
|
layout = "auto" /* Auto */,
|
|
457
461
|
startWeight = DEFAULT_WEIGHT,
|
|
458
462
|
endWeight = DEFAULT_WEIGHT,
|
|
463
|
+
startWidth,
|
|
459
464
|
endWidth,
|
|
460
465
|
gap = DEFAULT_GAP,
|
|
461
466
|
breakpoint = LAYOUT_COLLAPSE_BREAKPOINT,
|
|
@@ -464,9 +469,8 @@ var SplitPanes = ({
|
|
|
464
469
|
const { width } = useWindowDimensions();
|
|
465
470
|
const isSide = isSplitSideBySide(layout, width, breakpoint);
|
|
466
471
|
const container = useMemo(() => [isSide ? styles6.row : styles6.column, { gap }], [isSide, gap]);
|
|
467
|
-
const startStyle = isSide ?
|
|
468
|
-
const
|
|
469
|
-
const endStyle = isSide ? sideEnd : styles6.stackPane;
|
|
472
|
+
const startStyle = isSide ? sidePaneStyle(startWeight, startWidth) : styles6.stackPane;
|
|
473
|
+
const endStyle = isSide ? sidePaneStyle(endWeight, endWidth) : styles6.stackPane;
|
|
470
474
|
return /* @__PURE__ */ jsxs(View, { style: container, testID, children: [
|
|
471
475
|
/* @__PURE__ */ jsx(View, { style: startStyle, testID: `${testID}-start`, children: start }),
|
|
472
476
|
/* @__PURE__ */ jsx(View, { style: endStyle, testID: `${testID}-end`, children: end })
|
|
@@ -3292,6 +3296,12 @@ var ListRow = ({
|
|
|
3292
3296
|
] });
|
|
3293
3297
|
};
|
|
3294
3298
|
|
|
3299
|
+
// src/ListRow/utils/rowSelection.ts
|
|
3300
|
+
function rowSelection(isDesktop, rowKey, keys) {
|
|
3301
|
+
if (isDesktop) return { selected: keys.shownKey === rowKey, style: "accent-bar" /* AccentBar */ };
|
|
3302
|
+
return { selected: keys.selectedKey === rowKey, style: "outline" /* Outline */ };
|
|
3303
|
+
}
|
|
3304
|
+
|
|
3295
3305
|
// src/SectionIndexLayout/ChipOverflow.ts
|
|
3296
3306
|
var ChipOverflow = /* @__PURE__ */ ((ChipOverflow2) => {
|
|
3297
3307
|
ChipOverflow2["Wrap"] = "wrap";
|
|
@@ -3705,6 +3715,6 @@ var WidgetCard = ({ title, children, icon, headerRight, footer, testID }) => {
|
|
|
3705
3715
|
] });
|
|
3706
3716
|
};
|
|
3707
3717
|
|
|
3708
|
-
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, AppText, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, Breadcrumb, BuildInfoFooter, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, CopyStatus, CopyableId, CountBadge, DEFAULT_BILLING_ROUTE, DayCard, DropdownVariant, ELLIPSIS, FigureStrip, FormDialog, HEADER_STACK_BREAKPOINT, Heading, IdChip, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, ModalShell, PageFrame, RecordActionButton, RecordHeader, RowSelectedStyle, SECTION_INDEX_BREAKPOINT, ScreenColumn, Section, SectionChips, SectionDensity, SectionIndex, SectionIndexLayout, SectionVariant, SegmentedControl, SelectedMarker, SideSheet, SplitLayout, SplitPanes, StatusBadge, StickyPreview, TYPE_SCALE_BREAKPOINT, Tabs, TabsCollapsedTrigger, TextKind, Timeline, ToggleSection, TruncatedText, UnderlineTabs, UpgradePrompt, WidgetCard, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveRowLook, resolveToneColors, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|
|
3718
|
+
export { A4_PAGE, API_COMMIT_SEPARATOR, Accordion, AccordionItem, AppText, BUILD_INFO_PREFIX, BadgeTone, BottomSheet, Breadcrumb, BuildInfoFooter, COPY_FEEDBACK_MS, ChipOverflow, ConfirmDialog, ConfirmDialogFocus, CopyStatus, CopyableId, CountBadge, DEFAULT_BILLING_ROUTE, DayCard, DropdownVariant, ELLIPSIS, FigureStrip, FormDialog, HEADER_STACK_BREAKPOINT, Heading, IdChip, LAYOUT_COLLAPSE_BREAKPOINT, LAYOUT_I18N, LAYOUT_TEST_IDS, ListRow, MIN_TARGET_PX, MODAL_FOOTER_STACK_BELOW, Modal, ModalDropdown, ModalShell, PageFrame, RecordActionButton, RecordHeader, RowSelectedStyle, SECTION_INDEX_BREAKPOINT, ScreenColumn, Section, SectionChips, SectionDensity, SectionIndex, SectionIndexLayout, SectionVariant, SegmentedControl, SelectedMarker, SideSheet, SplitLayout, SplitPanes, StatusBadge, StickyPreview, TYPE_SCALE_BREAKPOINT, Tabs, TabsCollapsedTrigger, TextKind, Timeline, ToggleSection, TruncatedText, UnderlineTabs, UpgradePrompt, WidgetCard, copyText, figureCell, formatBuildInfo, formatCount, formatUrlForDisplay, isKeyboardOpen, isModalFooterStacked, isRecordHeaderCompact, isSplitSideBySide, isWideWebViewport, pageScale, resolveActiveKey, resolveRowLook, resolveToneColors, rowSelection, scaledFrame, shortenCommit, trimTrailingSlash, truncateMiddle, useApiCommit, useCopyToClipboard, useFocusTrap, useIsWideViewport, useListRowTone, useVisibleViewport };
|
|
3709
3719
|
//# sourceMappingURL=index.mjs.map
|
|
3710
3720
|
//# sourceMappingURL=index.mjs.map
|