@sps-woodland/core 8.56.2 → 8.56.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/lib/action-bar/action-bar/ActionBar.js +44 -59
- package/lib/action-bar/action-bar/ActionBar.ve.js +4 -11
- package/lib/action-bar/action-bar-additional-content/ActionBarAdditionalContent.js +14 -22
- package/lib/action-bar/index.js +54 -74
- package/lib/action-bar/index.umd.cjs +1 -1
- package/lib/action-bar/style.css +2 -1
- package/lib/add-to-list/add-to-list/AddToList.js +220 -302
- package/lib/add-to-list/add-to-list/AddToList.ve.js +79 -24
- package/lib/add-to-list/add-to-list/ItemsList.js +42 -67
- package/lib/add-to-list/add-to-list/ListItem.js +24 -50
- package/lib/add-to-list/index.js +393 -453
- package/lib/add-to-list/index.umd.cjs +1 -1
- package/lib/add-to-list/style.css +2 -1
- package/lib/buttons/button/Button.js +95 -121
- package/lib/buttons/button/Button.ve.js +150 -9
- package/lib/buttons/index.js +281 -171
- package/lib/buttons/index.umd.cjs +1 -1
- package/lib/buttons/style.css +2 -1
- package/lib/cards/card/Card.js +19 -27
- package/lib/cards/card/Card.ve.js +4 -4
- package/lib/cards/card-footer/CardFooter.js +12 -13
- package/lib/cards/card-footer/CardFooter.ve.js +4 -4
- package/lib/cards/card-header/CardHeader.js +12 -13
- package/lib/cards/card-header/CardHeader.ve.js +4 -4
- package/lib/cards/card-title/CardTitle.js +11 -12
- package/lib/cards/card-title/CardTitle.ve.js +4 -4
- package/lib/cards/index.js +52 -52
- package/lib/cards/index.umd.cjs +1 -1
- package/lib/cards/style.css +2 -1
- package/lib/column-manager/column-manager/ColumnManager.js +95 -112
- package/lib/column-manager/column-manager/useColumnManager.js +59 -48
- package/lib/column-manager/index.js +2 -5
- package/lib/components/icon/Icon.ve.js +15 -5
- package/lib/components/icon/icons/sprite.svg.js +4 -4
- package/lib/content-row/content-row/ContentRow.js +146 -173
- package/lib/content-row/content-row/ContentRow.ve.js +105 -18
- package/lib/content-row/content-row-col/ContentRowCol.js +37 -48
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +49 -6
- package/lib/content-row/content-row-expansion/ContentRowExpansion.js +16 -24
- package/lib/content-row/index.js +407 -318
- package/lib/content-row/index.umd.cjs +1 -1
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.js +24 -39
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +13 -5
- package/lib/content-row/style.css +2 -1
- package/lib/content-tiles/content-tile/ContentTile.js +71 -60
- package/lib/content-tiles/content-tile/ContentTile.ve.js +36 -14
- package/lib/content-tiles/content-tile-list/ContentTileList.js +12 -13
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +4 -5
- package/lib/content-tiles/index.js +156 -118
- package/lib/content-tiles/index.umd.cjs +1 -1
- package/lib/content-tiles/style.css +2 -1
- package/lib/core.css +2 -1
- package/lib/dropdowns/dropdown/Dropdown.js +56 -68
- package/lib/dropdowns/dropdown/Dropdown.ve.js +37 -8
- package/lib/dropdowns/index.js +171 -171
- package/lib/dropdowns/index.umd.cjs +1 -1
- package/lib/dropdowns/option-list/Option.js +14 -18
- package/lib/dropdowns/option-list/Option.ve.js +4 -5
- package/lib/dropdowns/option-list/OptionList.js +28 -44
- package/lib/dropdowns/option-list/OptionList.ve.js +4 -5
- package/lib/dropdowns/style.css +2 -1
- package/lib/editable-table/EditableTable.js +68 -85
- package/lib/editable-table/index.js +1 -4
- package/lib/feedback-block/FeedbackBlock.js +40 -35
- package/lib/feedback-block/FeedbackBlock.ve.js +56 -7
- package/lib/feedback-block/index.js +132 -85
- package/lib/feedback-block/index.umd.cjs +1 -1
- package/lib/feedback-block/style.css +2 -1
- package/lib/file-upload/file-upload/FileUpload.js +164 -202
- package/lib/file-upload/file-upload/FileUpload.ve.js +84 -18
- package/lib/file-upload/file-upload/mime-type.enum.js +106 -106
- package/lib/file-upload/index.js +390 -353
- package/lib/file-upload/index.umd.cjs +1 -1
- package/lib/file-upload/style.css +2 -1
- package/lib/filter-tiles/filter-tile/FilterTile.js +41 -46
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +51 -9
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.js +12 -15
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +4 -4
- package/lib/filter-tiles/index.js +142 -107
- package/lib/filter-tiles/index.umd.cjs +1 -1
- package/lib/filter-tiles/style.css +2 -1
- package/lib/focused-task/focused-task/FocusedTask.js +52 -74
- package/lib/focused-task/focused-task/FocusedTask.ve.js +13 -12
- package/lib/focused-task/focused-task/useFocusedTask.js +20 -18
- package/lib/focused-task/focused-task-actions/FocusedTaskActions.js +12 -13
- package/lib/focused-task/index.js +127 -144
- package/lib/focused-task/index.umd.cjs +1 -1
- package/lib/focused-task/style.css +2 -1
- package/lib/growler/Growler.js +78 -90
- package/lib/growler/Growler.ve.js +23 -12
- package/lib/growler/GrowlerListProvider.js +38 -39
- package/lib/growler/Sonner.ve.js +17 -12
- package/lib/growler/index.js +249 -274
- package/lib/growler/index.umd.cjs +1 -1
- package/lib/growler/sonner.js +73 -102
- package/lib/growler/style.css +2 -1
- package/lib/index.js +520 -501
- package/lib/index.umd.cjs +4 -4
- package/lib/insight-card/InsightCard.js +90 -84
- package/lib/insight-card/InsightCard.ve.js +148 -15
- package/lib/insight-card/InsightCardSet.js +12 -12
- package/lib/insight-card/index.js +269 -141
- package/lib/insight-card/index.umd.cjs +1 -1
- package/lib/insight-card/style.css +2 -1
- package/lib/key-value-set/index.js +97 -87
- package/lib/key-value-set/index.umd.cjs +1 -1
- package/lib/key-value-set/key-value-set/KeyValueSet.js +17 -21
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +10 -5
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.js +25 -21
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +13 -6
- package/lib/key-value-set/style.css +2 -1
- package/lib/list-bar/advanced-search/AdvancedSearch.js +51 -54
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +30 -8
- package/lib/list-bar/index.js +305 -301
- package/lib/list-bar/index.umd.cjs +1 -1
- package/lib/list-bar/list-bar/InputGroupWrapper.js +10 -19
- package/lib/list-bar/list-bar/ListBar.js +105 -121
- package/lib/list-bar/list-bar/ListBar.ve.js +13 -17
- package/lib/list-bar/list-bar/ListBarSearch.js +20 -21
- package/lib/list-bar/list-bar/ListBarSearchInfo.js +8 -12
- package/lib/list-bar/list-bar/ListBarSortBy.js +28 -38
- package/lib/list-bar/search-results-bar/SearchResultsBar.js +38 -28
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +4 -11
- package/lib/list-bar/style.css +2 -1
- package/lib/matrix/index.js +79 -87
- package/lib/matrix/index.umd.cjs +1 -1
- package/lib/matrix/matrix/Matrix.js +18 -26
- package/lib/matrix/matrix/Matrix.ve.js +4 -7
- package/lib/matrix/matrix-body/MatrixBody.js +10 -13
- package/lib/matrix/matrix-cell/MatrixCell.js +23 -18
- package/lib/matrix/matrix-head/MatrixHead.js +10 -13
- package/lib/matrix/matrix-header/MatrixHeader.js +20 -23
- package/lib/matrix/matrix-row/MatrixRow.js +10 -13
- package/lib/matrix/style.css +2 -1
- package/lib/modal/index.js +197 -187
- package/lib/modal/index.umd.cjs +1 -1
- package/lib/modal/modal/Modal.js +90 -108
- package/lib/modal/modal/Modal.ve.js +43 -13
- package/lib/modal/modal/useModal.js +19 -24
- package/lib/modal/modal-footer/ModalFooter.js +11 -12
- package/lib/modal/style.css +2 -1
- package/lib/node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.21.3/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js +49 -0
- package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/index.browser.js +8 -10
- package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/url-alphabet/index.js +4 -4
- package/lib/page-title/heading-level/HeadingLevel.js +8 -12
- package/lib/page-title/index.js +33 -40
- package/lib/page-title/index.umd.cjs +1 -1
- package/lib/page-title/page-subtitle/PageSubtitle.js +13 -18
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +4 -5
- package/lib/page-title/page-title/PageTitle.js +15 -19
- package/lib/page-title/page-title/PageTitle.ve.js +4 -7
- package/lib/page-title/style.css +2 -1
- package/lib/photo/index.js +174 -177
- package/lib/photo/index.umd.cjs +1 -1
- package/lib/photo/photo/Photo.js +72 -81
- package/lib/photo/photo/Photo.ve.js +21 -7
- package/lib/photo/photo-carousel/PhotoCarousel.js +36 -51
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +13 -9
- package/lib/photo/style.css +2 -1
- package/lib/product-bar/hooks/usePriorityPlus.js +88 -104
- package/lib/product-bar/index.js +372 -395
- package/lib/product-bar/index.umd.cjs +1 -1
- package/lib/product-bar/product-bar/ProductBar.js +77 -103
- package/lib/product-bar/product-bar/ProductBar.ve.js +46 -15
- package/lib/product-bar/product-bar-name/ProductBarName.js +37 -40
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +48 -70
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +4 -8
- package/lib/product-bar/product-bar-tab/ProductBarTab.js +28 -26
- package/lib/product-bar/slack-link/SlackLink.js +26 -30
- package/lib/product-bar/slack-link/SlackLink.ve.js +4 -5
- package/lib/product-bar/style.css +2 -1
- package/lib/product-bar-vertical/index.js +240 -251
- package/lib/product-bar-vertical/index.umd.cjs +1 -1
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +42 -61
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +53 -23
- package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +30 -42
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +71 -89
- package/lib/product-bar-vertical/product-bar-vertical-section/ProductBarVerticalSection.js +22 -29
- package/lib/product-bar-vertical/style.css +2 -1
- package/lib/progress-indicators/index.js +372 -255
- package/lib/progress-indicators/index.umd.cjs +1 -1
- package/lib/progress-indicators/progress-bar/ProgressBar.js +66 -110
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +66 -13
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.js +34 -54
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +136 -8
- package/lib/progress-indicators/progress-ring/ProgressRing.js +45 -52
- package/lib/progress-indicators/style.css +2 -1
- package/lib/rich-text-editor/index.js +556 -582
- package/lib/rich-text-editor/index.umd.cjs +11 -11
- package/lib/rich-text-editor/rich-text-editor/RTELinkModal.js +29 -33
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.js +23 -37
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +13 -6
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +68 -77
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +21 -8
- package/lib/rich-text-editor/rich-text-editor/hooks/useHtmlToMd.js +14 -20
- package/lib/rich-text-editor/rich-text-editor/hooks/useMdToHtml.js +14 -20
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEContent.js +33 -27
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEObserver.js +79 -88
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTESelectionListener.js +28 -36
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEToolbarButtons.js +195 -211
- package/lib/rich-text-editor/rich-text-editor/icons/BOLD.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/INDENT.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/ITALICS.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/LINK.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/ORDERED_LIST.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/OUTDENT.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/REDO.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/UNDO.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/UNLINK.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/icons/UNORDERED_LIST.svg.js +4 -4
- package/lib/rich-text-editor/rich-text-editor/utils/flattenListItemParagraphs.js +12 -12
- package/lib/rich-text-editor/rich-text-editor/utils/removeUnrepresentableBreaks.js +20 -19
- package/lib/rich-text-editor/rich-text-editor/utils/utils.js +11 -15
- package/lib/rich-text-editor/style.css +2 -1
- package/lib/scrollable-container/ScrollableContainer.js +18 -27
- package/lib/scrollable-container/ScrollableContainer.ve.js +4 -4
- package/lib/scrollable-container/index.js +20 -27
- package/lib/scrollable-container/index.umd.cjs +1 -1
- package/lib/scrollable-container/style.css +2 -1
- package/lib/side-nav/index.js +190 -228
- package/lib/side-nav/index.umd.cjs +1 -1
- package/lib/side-nav/side-nav/SideNav.js +43 -60
- package/lib/side-nav/side-nav/SideNav.ve.js +22 -16
- package/lib/side-nav/side-nav/navContext.js +7 -7
- package/lib/side-nav/side-nav-header/SideNavHeader.js +14 -15
- package/lib/side-nav/side-nav-item/SideNavItem.js +68 -94
- package/lib/side-nav/side-nav-section/SideNavSection.js +16 -26
- package/lib/side-nav/style.css +2 -1
- package/lib/sorting-header/caret/caret.ve.js +13 -5
- package/lib/sorting-header/index.js +269 -251
- package/lib/sorting-header/index.umd.cjs +1 -1
- package/lib/sorting-header/sorting-header/SortingHeader.js +110 -124
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +30 -6
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.js +69 -83
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +21 -7
- package/lib/sorting-header/style.css +2 -1
- package/lib/style.css +2 -1
- package/lib/tabs/index.js +255 -201
- package/lib/tabs/index.umd.cjs +1 -1
- package/lib/tabs/style.css +2 -1
- package/lib/tabs/tab/Tab.js +24 -27
- package/lib/tabs/tab/Tab.ve.js +76 -6
- package/lib/tabs/tab-panel/TabPanel.js +16 -25
- package/lib/tabs/tabs/Tabs.js +101 -112
- package/lib/tabs/tabs/Tabs.ve.js +13 -11
- package/lib/tags/clickable-tag/ClickableTag.js +86 -90
- package/lib/tags/clickable-tag/ClickableTag.ve.js +66 -9
- package/lib/tags/index.js +342 -199
- package/lib/tags/index.umd.cjs +1 -1
- package/lib/tags/split-tag/SplitTag.js +49 -30
- package/lib/tags/split-tag/SplitTag.ve.js +35 -9
- package/lib/tags/style.css +2 -1
- package/lib/tags/tag/Tag.js +42 -38
- package/lib/tags/tag/Tag.ve.js +41 -6
- package/lib/utils/cl.js +5 -5
- package/lib/zero-state/ZeroState.js +36 -29
- package/lib/zero-state/ZeroState.ve.js +29 -11
- package/lib/zero-state/index.js +103 -78
- package/lib/zero-state/index.umd.cjs +1 -1
- package/lib/zero-state/style.css +2 -1
- package/package.json +12 -12
- package/lib/node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.17.4/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js +0 -57
package/lib/modal/modal/Modal.js
CHANGED
|
@@ -1,113 +1,95 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import * as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
kind: "icon",
|
|
18
|
-
icon: "x",
|
|
19
|
-
className: ee
|
|
20
|
-
}
|
|
21
|
-
) : null;
|
|
1
|
+
import { body as e, closeButtonBox as t, closeButtonIcon as n, footer as r, modal as i, title as a, titleContent as o, underlay as s } from "./Modal.ve.js";
|
|
2
|
+
import { ModalFooter as c } from "../modal-footer/ModalFooter.js";
|
|
3
|
+
import { Icon as l, Metadata as u, cl as d, combineEventHandlers as f, contentOf as p, modChildren as m, selectChildren as h, useChildTestIdAttrBuilder as g } from "@sps-woodland/core";
|
|
4
|
+
import * as _ from "react";
|
|
5
|
+
import { useWoodlandLanguage as v } from "@spscommerce/i18n";
|
|
6
|
+
import { Button as y } from "@sps-woodland/core/button";
|
|
7
|
+
import { Overlay as b, useDialog as x, useModalOverlay as S } from "react-aria";
|
|
8
|
+
//#region src/modal/modal/Modal.tsx
|
|
9
|
+
function C({ dismissableValue: e, handleClose: n }) {
|
|
10
|
+
return e ? /* @__PURE__ */ _.createElement(y, {
|
|
11
|
+
"aria-label": "Close",
|
|
12
|
+
onClick: n,
|
|
13
|
+
kind: "icon",
|
|
14
|
+
icon: "x",
|
|
15
|
+
className: t
|
|
16
|
+
}) : null;
|
|
22
17
|
}
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
18
|
+
var w = Object.freeze({
|
|
19
|
+
form: "pencil",
|
|
20
|
+
delete: "trash",
|
|
21
|
+
failure: "status-error",
|
|
22
|
+
informational: "info-circle",
|
|
23
|
+
success: "status-ok",
|
|
24
|
+
successWithFailures: "status-warning",
|
|
25
|
+
warning: "status-warning"
|
|
31
26
|
});
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
/* @__PURE__ */ e.createElement(
|
|
71
|
-
"div",
|
|
72
|
-
{
|
|
73
|
-
...c,
|
|
74
|
-
...i,
|
|
75
|
-
...F,
|
|
76
|
-
onFocus: x,
|
|
77
|
-
onBlur: z,
|
|
78
|
-
...R("dialog"),
|
|
79
|
-
ref: r,
|
|
80
|
-
className: E(Q({ kind: l, size: M, fullHeight: O }), n)
|
|
81
|
-
},
|
|
82
|
-
/* @__PURE__ */ e.createElement("div", { ...w, className: U({ kind: l }) }, l && /* @__PURE__ */ e.createElement(
|
|
83
|
-
A,
|
|
84
|
-
{
|
|
85
|
-
icon: g[l] || g.informational,
|
|
86
|
-
className: X
|
|
87
|
-
}
|
|
88
|
-
), /* @__PURE__ */ e.createElement("div", { className: Y }, m(N, o.close)), /* @__PURE__ */ e.createElement(b, { dismissableValue: u, handleClose: f })),
|
|
89
|
-
/* @__PURE__ */ e.createElement("div", { className: Z }, m(K, o.close)),
|
|
90
|
-
d && d.length > 0 ? /* @__PURE__ */ e.createElement(e.Fragment, null, m(d, o.close)) : /* @__PURE__ */ e.createElement("div", { className: _ }, /* @__PURE__ */ e.createElement(v, { kind: "key", onClick: f }, D("modal.defaultButtonLabel", { defaultValue: "Okay" })))
|
|
91
|
-
)
|
|
92
|
-
));
|
|
27
|
+
function T({ children: t, className: u, "data-testid": T, kind: E = "informational", onBlur: D, onFocus: O, overlayProps: k, size: A = "sm", state: j, title: M, dismissible: N, dismissable: P = !0, onClose: F, fullHeight: I = !1, ...L }) {
|
|
28
|
+
let R = N ?? P, z = _.useRef(null), { modalProps: B, underlayProps: V } = S({
|
|
29
|
+
isKeyboardDismissDisabled: !R,
|
|
30
|
+
...L
|
|
31
|
+
}, j, z), { dialogProps: H, titleProps: U } = x(L, z), W = f(B.onFocus, H.onFocus, O), G = f(B.onBlur, H.onBlur, D), { t: K } = v(), q = g({ "data-testid": T }), [J, Y] = h(t, [{ type: c }]), X = _.useCallback(() => {
|
|
32
|
+
F && typeof F == "function" && F(), j.close();
|
|
33
|
+
}, [F, j.close]), Z = m(Y, (e) => e.type === C ? [{ className: d(e.props.classname, n) }] : []);
|
|
34
|
+
return /* @__PURE__ */ _.createElement(b, null, /* @__PURE__ */ _.createElement("div", {
|
|
35
|
+
className: s,
|
|
36
|
+
"data-react-aria-top-layer": "true",
|
|
37
|
+
...V,
|
|
38
|
+
...L
|
|
39
|
+
}, /* @__PURE__ */ _.createElement("div", {
|
|
40
|
+
...B,
|
|
41
|
+
...H,
|
|
42
|
+
...k,
|
|
43
|
+
onFocus: W,
|
|
44
|
+
onBlur: G,
|
|
45
|
+
...q("dialog"),
|
|
46
|
+
ref: z,
|
|
47
|
+
className: d(i({
|
|
48
|
+
kind: E,
|
|
49
|
+
size: A,
|
|
50
|
+
fullHeight: I
|
|
51
|
+
}), u)
|
|
52
|
+
}, /* @__PURE__ */ _.createElement("div", {
|
|
53
|
+
...U,
|
|
54
|
+
className: a({ kind: E })
|
|
55
|
+
}, E && /* @__PURE__ */ _.createElement(l, {
|
|
56
|
+
icon: w[E] || w.informational,
|
|
57
|
+
className: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemn"
|
|
58
|
+
}), /* @__PURE__ */ _.createElement("div", { className: o }, p(M, j.close)), /* @__PURE__ */ _.createElement(C, {
|
|
59
|
+
dismissableValue: R,
|
|
60
|
+
handleClose: X
|
|
61
|
+
})), /* @__PURE__ */ _.createElement("div", { className: e }, p(Z, j.close)), J && J.length > 0 ? /* @__PURE__ */ _.createElement(_.Fragment, null, p(J, j.close)) : /* @__PURE__ */ _.createElement("div", { className: r }, /* @__PURE__ */ _.createElement(y, {
|
|
62
|
+
kind: "key",
|
|
63
|
+
onClick: X
|
|
64
|
+
}, K("modal.defaultButtonLabel", { defaultValue: "Okay" }))))));
|
|
93
65
|
}
|
|
94
|
-
function
|
|
95
|
-
|
|
66
|
+
function E(e) {
|
|
67
|
+
return e.state.isOpen ? /* @__PURE__ */ _.createElement(T, e, e.children) : /* @__PURE__ */ _.createElement(_.Fragment, null);
|
|
96
68
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
69
|
+
u.set(E, {
|
|
70
|
+
name: "Modal",
|
|
71
|
+
props: {
|
|
72
|
+
dismissable: {
|
|
73
|
+
type: "boolean",
|
|
74
|
+
default: "true"
|
|
75
|
+
},
|
|
76
|
+
fullHeight: {
|
|
77
|
+
type: "boolean",
|
|
78
|
+
default: "false"
|
|
79
|
+
},
|
|
80
|
+
kind: {
|
|
81
|
+
type: "ModalKind",
|
|
82
|
+
default: "informational"
|
|
83
|
+
},
|
|
84
|
+
onBlur: { type: "() => void" },
|
|
85
|
+
onClose: { type: "() => void" },
|
|
86
|
+
onFocus: { type: "() => void" },
|
|
87
|
+
size: {
|
|
88
|
+
type: "ModalSize",
|
|
89
|
+
default: "sm"
|
|
90
|
+
},
|
|
91
|
+
title: { type: "string" }
|
|
92
|
+
}
|
|
109
93
|
});
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
g as ModalIcons
|
|
113
|
-
};
|
|
94
|
+
//#endregion
|
|
95
|
+
export { E as Modal, w as ModalIcons };
|
|
@@ -1,14 +1,44 @@
|
|
|
1
|
+
import { createRuntimeFn as e } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.2.5_@vanilla-extract_css@1.21.3/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js";
|
|
1
2
|
/* empty css */
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
3
|
+
//#region src/modal/modal/Modal.css.ts
|
|
4
|
+
var t = e({
|
|
5
|
+
defaultClassName: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem0",
|
|
6
|
+
variantClassNames: {
|
|
7
|
+
kind: {
|
|
8
|
+
informational: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem1",
|
|
9
|
+
delete: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem2",
|
|
10
|
+
failure: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem3",
|
|
11
|
+
success: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem4",
|
|
12
|
+
warning: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem5",
|
|
13
|
+
successWithFailures: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem6",
|
|
14
|
+
form: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem7"
|
|
15
|
+
},
|
|
16
|
+
size: {
|
|
17
|
+
sm: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem8",
|
|
18
|
+
md: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem9",
|
|
19
|
+
lg: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksema",
|
|
20
|
+
xl: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemb"
|
|
21
|
+
},
|
|
22
|
+
fullHeight: {
|
|
23
|
+
true: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemc",
|
|
24
|
+
false: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemd"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
defaultVariants: {},
|
|
28
|
+
compoundVariants: []
|
|
29
|
+
}), n = e({
|
|
30
|
+
defaultClassName: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41kseme",
|
|
31
|
+
variantClassNames: { kind: {
|
|
32
|
+
form: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemf",
|
|
33
|
+
delete: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemg",
|
|
34
|
+
failure: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemh",
|
|
35
|
+
informational: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemi",
|
|
36
|
+
success: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemj",
|
|
37
|
+
warning: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemk",
|
|
38
|
+
successWithFailures: "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41kseml"
|
|
39
|
+
} },
|
|
40
|
+
defaultVariants: {},
|
|
41
|
+
compoundVariants: []
|
|
42
|
+
}), r = "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemm", i = "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemn", a = "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemo", o = "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemp", s = "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemq", c = "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemr", l = "pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksems";
|
|
43
|
+
//#endregion
|
|
44
|
+
export { a as body, s as closeButtonBox, c as closeButtonIcon, o as footer, t as modal, i as modalIcon, n as title, r as titleContent, l as underlay };
|
|
@@ -1,26 +1,21 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { useRef as e } from "react";
|
|
2
|
+
import { useOverlayTrigger as t } from "react-aria";
|
|
2
3
|
import { useOverlayTriggerState as n } from "react-stately";
|
|
3
|
-
|
|
4
|
-
function
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
ref: o
|
|
19
|
-
},
|
|
20
|
-
modalState: r,
|
|
21
|
-
modalProps: { overlayProps: i, state: r }
|
|
22
|
-
};
|
|
4
|
+
//#region src/modal/modal/useModal.ts
|
|
5
|
+
function r(r = {}) {
|
|
6
|
+
let i = n(r), a = e(null), { triggerProps: o, overlayProps: s } = t({ type: "dialog" }, i, a), { onPress: c, ...l } = o;
|
|
7
|
+
return {
|
|
8
|
+
triggerProps: {
|
|
9
|
+
...l,
|
|
10
|
+
onClick: c ? (e) => c(e) : void 0,
|
|
11
|
+
ref: a
|
|
12
|
+
},
|
|
13
|
+
modalState: i,
|
|
14
|
+
modalProps: {
|
|
15
|
+
overlayProps: s,
|
|
16
|
+
state: i
|
|
17
|
+
}
|
|
18
|
+
};
|
|
23
19
|
}
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
};
|
|
20
|
+
//#endregion
|
|
21
|
+
export { r as useModal };
|
|
@@ -1,14 +1,13 @@
|
|
|
1
|
+
import { footer as e } from "../modal/Modal.ve.js";
|
|
2
|
+
import { Metadata as t, cl as n } from "@sps-woodland/core";
|
|
1
3
|
import * as r from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ r.createElement("div", { className: m(c, t), ...e }, o);
|
|
4
|
+
//#region src/modal/modal-footer/ModalFooter.tsx
|
|
5
|
+
function i({ children: t, className: i = "", ...a }) {
|
|
6
|
+
return /* @__PURE__ */ r.createElement("div", {
|
|
7
|
+
className: n(e, i),
|
|
8
|
+
...a
|
|
9
|
+
}, t);
|
|
10
10
|
}
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
};
|
|
11
|
+
t.set(i, { name: "ModalFooter" });
|
|
12
|
+
//#endregion
|
|
13
|
+
export { i as ModalFooter };
|
package/lib/modal/style.css
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
|
-
.pkg_sps-
|
|
1
|
+
.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem0{background-color:#fff;border-style:solid;border-width:.0625rem;border-radius:.25rem;flex-direction:column;max-height:100%;display:flex;overflow:hidden}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem1{border-color:#007db8}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem2,.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem3{border-color:#de002e}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem4{border-color:#0b8940}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem5,.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem6{border-color:#e7760b}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem7{border-color:#4b5356}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem8{width:23.75rem}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksem9{width:36.25rem}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksema{width:48.75rem}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemb{width:73.75rem}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemc{height:100%}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41kseme{color:#fff;align-items:center;padding:1rem;display:flex}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemf{background-color:#4b5356}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemg,.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemh{background-color:#de002e}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemi{background-color:#007db8}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemj{background-color:#0b8940}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemk,.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41kseml{background-color:#e7760b}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemm{flex-grow:1;font-size:.875rem;font-weight:600;line-height:1.25rem}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemn{margin-right:.5rem;font-size:.875rem;font-weight:600;line-height:.875rem}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemo{flex:1;padding:1rem;overflow-y:auto}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemp{background-color:#f3f4f4;justify-content:flex-end;align-items:center;padding:.5rem;display:flex}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemq{color:#fff;border-width:0}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksemr{padding:0 .25rem}.pkg_sps-woodland_core__family_modal__version_8_56_4__hash_41ksems{z-index:1000;background:#f3f4f4cc;justify-content:center;align-items:start;padding:4rem 1rem 1rem;display:flex;position:fixed;inset:0}.z-stratum-dropdown{z-index:1100}
|
|
2
|
+
/*$vite$:1*/
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
//#region ../../../node_modules/.pnpm/@vanilla-extract+recipes@0.2.5_@vanilla-extract+css@1.21.3/node_modules/@vanilla-extract/recipes/createRuntimeFn/dist/vanilla-extract-recipes-createRuntimeFn.esm.js
|
|
2
|
+
function e(e, t, n) {
|
|
3
|
+
return t in e ? Object.defineProperty(e, t, {
|
|
4
|
+
value: n,
|
|
5
|
+
enumerable: !0,
|
|
6
|
+
configurable: !0,
|
|
7
|
+
writable: !0
|
|
8
|
+
}) : e[t] = n, e;
|
|
9
|
+
}
|
|
10
|
+
function t(e, t) {
|
|
11
|
+
var n = Object.keys(e);
|
|
12
|
+
if (Object.getOwnPropertySymbols) {
|
|
13
|
+
var r = Object.getOwnPropertySymbols(e);
|
|
14
|
+
t && (r = r.filter(function(t) {
|
|
15
|
+
return Object.getOwnPropertyDescriptor(e, t).enumerable;
|
|
16
|
+
})), n.push.apply(n, r);
|
|
17
|
+
}
|
|
18
|
+
return n;
|
|
19
|
+
}
|
|
20
|
+
function n(n) {
|
|
21
|
+
for (var r = 1; r < arguments.length; r++) {
|
|
22
|
+
var i = arguments[r] == null ? {} : arguments[r];
|
|
23
|
+
r % 2 ? t(Object(i), !0).forEach(function(t) {
|
|
24
|
+
e(n, t, i[t]);
|
|
25
|
+
}) : Object.getOwnPropertyDescriptors ? Object.defineProperties(n, Object.getOwnPropertyDescriptors(i)) : t(Object(i)).forEach(function(e) {
|
|
26
|
+
Object.defineProperty(n, e, Object.getOwnPropertyDescriptor(i, e));
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
return n;
|
|
30
|
+
}
|
|
31
|
+
var r = (e, t, n) => {
|
|
32
|
+
for (var r of Object.keys(e)) if (e[r] !== (t[r] ?? n[r])) return !1;
|
|
33
|
+
return !0;
|
|
34
|
+
}, i = (e) => (t) => {
|
|
35
|
+
var i = e.defaultClassName, a = n(n({}, e.defaultVariants), t);
|
|
36
|
+
for (var o in a) {
|
|
37
|
+
var s = a[o] ?? e.defaultVariants[o];
|
|
38
|
+
if (s != null) {
|
|
39
|
+
var c = s;
|
|
40
|
+
typeof c == "boolean" && (c = c === !0 ? "true" : "false");
|
|
41
|
+
var l = e.variantClassNames[o][c];
|
|
42
|
+
l && (i += " " + l);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
for (var [u, d] of e.compoundVariants) r(u, a, e.defaultVariants) && (i += " " + d);
|
|
46
|
+
return i;
|
|
47
|
+
};
|
|
48
|
+
//#endregion
|
|
49
|
+
export { i as createRuntimeFn };
|
|
@@ -1,11 +1,9 @@
|
|
|
1
|
-
import { urlAlphabet as
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
};
|
|
8
|
-
export {
|
|
9
|
-
o as nanoid,
|
|
10
|
-
l as urlAlphabet
|
|
1
|
+
import { urlAlphabet as e } from "./url-alphabet/index.js";
|
|
2
|
+
//#region ../../../node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/index.browser.js
|
|
3
|
+
var t = (t = 21) => {
|
|
4
|
+
let n = "", r = crypto.getRandomValues(new Uint8Array(t |= 0));
|
|
5
|
+
for (; t--;) n += e[r[t] & 63];
|
|
6
|
+
return n;
|
|
11
7
|
};
|
|
8
|
+
//#endregion
|
|
9
|
+
export { t as nanoid };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
};
|
|
1
|
+
//#region ../../../node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/url-alphabet/index.js
|
|
2
|
+
var e = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { e as urlAlphabet };
|
|
@@ -1,15 +1,11 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
}) {
|
|
7
|
-
return /* @__PURE__ */ e.createElement(t.Provider, { value: n }, r);
|
|
2
|
+
//#region src/page-title/heading-level/HeadingLevel.tsx
|
|
3
|
+
var t = e.createContext(void 0);
|
|
4
|
+
function n({ level: n, children: r }) {
|
|
5
|
+
return /* @__PURE__ */ e.createElement(t.Provider, { value: n }, r);
|
|
8
6
|
}
|
|
9
|
-
function
|
|
10
|
-
|
|
7
|
+
function r() {
|
|
8
|
+
return e.useContext(t);
|
|
11
9
|
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
i as useHeadingLevel
|
|
15
|
-
};
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as HeadingLevelProvider, r as useHeadingLevel };
|
package/lib/page-title/index.js
CHANGED
|
@@ -1,45 +1,38 @@
|
|
|
1
1
|
import * as e from "react";
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
2
|
+
import { Icon as t, Metadata as n, addClassName as r, cl as i, modChildren as a, selectChildren as o } from "@sps-woodland/core";
|
|
3
|
+
//#region src/page-title/page-subtitle/PageSubtitle.css.ts
|
|
4
|
+
var s = "pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_14qi3ku0", c = "pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_14qi3ku1";
|
|
5
|
+
//#endregion
|
|
6
|
+
//#region src/page-title/page-subtitle/PageSubtitle.tsx
|
|
7
|
+
function l({ children: n, className: r, ...o }) {
|
|
8
|
+
let l = a(n, (e) => e.type === t ? [{ className: i(e.props.className, c) }] : []);
|
|
9
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
10
|
+
className: i(s, r),
|
|
11
|
+
...o
|
|
12
|
+
}, e.Children.toArray(l));
|
|
13
13
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
function
|
|
19
|
-
|
|
20
|
-
children: t
|
|
21
|
-
}) {
|
|
22
|
-
return /* @__PURE__ */ e.createElement(m.Provider, { value: _ }, t);
|
|
14
|
+
n.set(l, { name: "Page Subtitle" });
|
|
15
|
+
//#endregion
|
|
16
|
+
//#region src/page-title/heading-level/HeadingLevel.tsx
|
|
17
|
+
var u = e.createContext(void 0);
|
|
18
|
+
function d({ level: t, children: n }) {
|
|
19
|
+
return /* @__PURE__ */ e.createElement(u.Provider, { value: t }, n);
|
|
23
20
|
}
|
|
24
|
-
function
|
|
25
|
-
|
|
21
|
+
function f() {
|
|
22
|
+
return e.useContext(u);
|
|
26
23
|
}
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}) {
|
|
34
|
-
|
|
35
|
-
|
|
24
|
+
//#endregion
|
|
25
|
+
//#region src/page-title/page-title/PageTitle.css.ts
|
|
26
|
+
var p = "pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_6nwwl00", m = "pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_6nwwl01", h = "pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_6nwwl02", g = "pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_6nwwl03";
|
|
27
|
+
//#endregion
|
|
28
|
+
//#region src/page-title/page-title/PageTitle.tsx
|
|
29
|
+
function _({ as: n, children: a, className: s, ...c }) {
|
|
30
|
+
let [[u], d, _] = o(a, [{ type: t }, { type: l }]), v = f(), y = n ?? (v ? `h${v}` : "h1"), b = u ? r(u, h) : "";
|
|
31
|
+
return /* @__PURE__ */ e.createElement("div", {
|
|
32
|
+
className: i(p, s),
|
|
33
|
+
...c
|
|
34
|
+
}, b, /* @__PURE__ */ e.createElement("div", { className: m }, y === "div" ? _ : e.createElement(y, { className: g }, _), d));
|
|
36
35
|
}
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
}
|
|
40
|
-
export {
|
|
41
|
-
E as HeadingLevelProvider,
|
|
42
|
-
p as PageSubtitle,
|
|
43
|
-
P as PageTitle,
|
|
44
|
-
C as useHeadingLevel
|
|
45
|
-
};
|
|
36
|
+
n.set(_, { name: "Page Title" });
|
|
37
|
+
//#endregion
|
|
38
|
+
export { d as HeadingLevelProvider, l as PageSubtitle, _ as PageTitle, f as useHeadingLevel };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(e,
|
|
1
|
+
(function(e,t){typeof exports==`object`&&typeof module<`u`?t(exports,require("react"),require("@sps-woodland/core")):typeof define==`function`&&define.amd?define([`exports`,`react`,`@sps-woodland/core`],t):(e=typeof globalThis<`u`?globalThis:e||self,t(e.PageTitle={},e.react,e.spsWoodlandCore))})(this,function(e,t,n){Object.defineProperty(e,Symbol.toStringTag,{value:`Module`});var r=Object.create,i=Object.defineProperty,a=Object.getOwnPropertyDescriptor,o=Object.getOwnPropertyNames,s=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty,l=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(var s=o(t),l=0,u=s.length,d;l<u;l++)d=s[l],!c.call(e,d)&&d!==n&&i(e,d,{get:(e=>t[e]).bind(null,d),enumerable:!(r=a(t,d))||r.enumerable});return e};t=((e,t,n)=>(n=e==null?{}:r(s(e)),l(t||!e||!e.__esModule||!c.call(e,`default`)?i(n,`default`,{value:e,enumerable:!0}):n,e)))(t,1);var u=`pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_14qi3ku0`,d=`pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_14qi3ku1`;function f({children:e,className:r,...i}){let a=(0,n.modChildren)(e,e=>e.type===n.Icon?[{className:(0,n.cl)(e.props.className,d)}]:[]);return t.createElement(`div`,{className:(0,n.cl)(u,r),...i},t.Children.toArray(a))}n.Metadata.set(f,{name:`Page Subtitle`});var p=t.createContext(void 0);function m({level:e,children:n}){return t.createElement(p.Provider,{value:e},n)}function h(){return t.useContext(p)}var g=`pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_6nwwl00`,_=`pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_6nwwl01`,v=`pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_6nwwl02`,y=`pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_6nwwl03`;function b({as:e,children:r,className:i,...a}){let[[o],s,c]=(0,n.selectChildren)(r,[{type:n.Icon},{type:f}]),l=h(),u=e??(l?`h${l}`:`h1`),d=o?(0,n.addClassName)(o,v):``;return t.createElement(`div`,{className:(0,n.cl)(g,i),...a},d,t.createElement(`div`,{className:_},u===`div`?c:t.createElement(u,{className:y},c),s))}n.Metadata.set(b,{name:`Page Title`}),e.HeadingLevelProvider=m,e.PageSubtitle=f,e.PageTitle=b,e.useHeadingLevel=h});
|
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}] : []);
|
|
12
|
-
return /* @__PURE__ */ t.createElement("div", { className: a(p, o), ...m }, t.Children.toArray(i));
|
|
1
|
+
import { pageSubtitle as e, pageSubtitleIcon as t } from "./PageSubtitle.ve.js";
|
|
2
|
+
import { Icon as n, Metadata as r, cl as i, modChildren as a } from "@sps-woodland/core";
|
|
3
|
+
import * as o from "react";
|
|
4
|
+
//#region src/page-title/page-subtitle/PageSubtitle.tsx
|
|
5
|
+
function s({ children: r, className: s, ...c }) {
|
|
6
|
+
let l = a(r, (e) => e.type === n ? [{ className: i(e.props.className, t) }] : []);
|
|
7
|
+
return /* @__PURE__ */ o.createElement("div", {
|
|
8
|
+
className: i(e, s),
|
|
9
|
+
...c
|
|
10
|
+
}, o.Children.toArray(l));
|
|
13
11
|
}
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
export {
|
|
18
|
-
d as PageSubtitle
|
|
19
|
-
};
|
|
12
|
+
r.set(s, { name: "Page Subtitle" });
|
|
13
|
+
//#endregion
|
|
14
|
+
export { s as PageSubtitle };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
};
|
|
2
|
+
//#region src/page-title/page-subtitle/PageSubtitle.css.ts
|
|
3
|
+
var e = "pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_14qi3ku0", t = "pkg_sps-woodland_core__family_page-title__version_8_56_4__hash_14qi3ku1";
|
|
4
|
+
//#endregion
|
|
5
|
+
export { e as pageSubtitle, t as pageSubtitleIcon };
|