@sps-woodland/core 8.56.21 → 8.56.22
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 +1 -2
- package/lib/action-bar/action-bar/ActionBar.ve.js +2 -3
- package/lib/action-bar/action-bar-additional-content/ActionBarAdditionalContent.js +1 -2
- package/lib/action-bar/index.js +3 -3
- package/lib/action-bar/style.css +1 -1
- package/lib/add-to-list/add-to-list/AddToList.js +65 -66
- package/lib/add-to-list/add-to-list/AddToList.ve.js +34 -35
- package/lib/add-to-list/add-to-list/ItemsList.js +4 -5
- package/lib/add-to-list/add-to-list/ListItem.js +2 -3
- package/lib/add-to-list/style.css +1 -1
- package/lib/buttons/button/Button.js +3 -4
- package/lib/buttons/button/Button.ve.js +58 -59
- package/lib/buttons/style.css +1 -1
- package/lib/cards/card/Card.js +1 -2
- package/lib/cards/card/Card.ve.js +2 -3
- package/lib/cards/card-footer/CardFooter.js +1 -2
- package/lib/cards/card-footer/CardFooter.ve.js +2 -3
- package/lib/cards/card-header/CardHeader.js +1 -2
- package/lib/cards/card-header/CardHeader.ve.js +2 -3
- package/lib/cards/card-title/CardTitle.js +1 -2
- package/lib/cards/card-title/CardTitle.ve.js +2 -3
- package/lib/cards/index.js +3 -3
- package/lib/cards/style.css +4 -4
- package/lib/column-manager/column-manager/ColumnManager.js +1 -2
- package/lib/column-manager/column-manager/useColumnManager.js +1 -2
- package/lib/components/icon/Icon.ve.js +7 -8
- package/lib/components/icon/icons/sprite.svg.js +1 -2
- package/lib/content-row/content-row/ContentRow.js +17 -18
- package/lib/content-row/content-row/ContentRow.ve.js +39 -40
- package/lib/content-row/content-row-col/ContentRowCol.js +1 -2
- package/lib/content-row/content-row-col/ContentRowCol.ve.js +16 -17
- package/lib/content-row/content-row-expansion/ContentRowExpansion.js +1 -2
- package/lib/content-row/index.js +4 -4
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.js +1 -2
- package/lib/content-row/row-list-auto-layout/RowListAutoLayout.ve.js +5 -6
- package/lib/content-row/style.css +3 -3
- package/lib/content-tiles/content-tile/ContentTile.js +4 -5
- package/lib/content-tiles/content-tile/ContentTile.ve.js +15 -16
- package/lib/content-tiles/content-tile-list/ContentTileList.js +1 -2
- package/lib/content-tiles/content-tile-list/ContentTileList.ve.js +2 -3
- package/lib/content-tiles/style.css +2 -2
- package/lib/dropdowns/dropdown/Dropdown.js +2 -3
- package/lib/dropdowns/dropdown/Dropdown.ve.js +17 -18
- package/lib/dropdowns/index.js +3 -3
- package/lib/dropdowns/option-list/Option.js +2 -3
- package/lib/dropdowns/option-list/Option.ve.js +2 -3
- package/lib/dropdowns/option-list/OptionList.js +2 -3
- package/lib/dropdowns/option-list/OptionList.ve.js +2 -3
- package/lib/dropdowns/style.css +3 -3
- package/lib/editable-table/EditableTable.js +1 -2
- package/lib/feedback-block/FeedbackBlock.js +1 -2
- package/lib/feedback-block/FeedbackBlock.ve.js +22 -23
- package/lib/feedback-block/style.css +1 -1
- package/lib/file-upload/file-upload/FileUpload.js +5 -6
- package/lib/file-upload/file-upload/FileUpload.ve.js +30 -31
- package/lib/file-upload/file-upload/mime-type.enum.js +1 -2
- package/lib/file-upload/style.css +1 -1
- package/lib/filter-tiles/filter-tile/FilterTile.js +1 -2
- package/lib/filter-tiles/filter-tile/FilterTile.ve.js +22 -23
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.js +1 -2
- package/lib/filter-tiles/filter-tile-set/FilterTileSet.ve.js +2 -3
- package/lib/filter-tiles/style.css +2 -2
- package/lib/focused-task/focused-task/FocusedTask.js +9 -10
- package/lib/focused-task/focused-task/FocusedTask.ve.js +7 -8
- package/lib/focused-task/focused-task/useFocusedTask.js +1 -2
- package/lib/focused-task/focused-task-actions/FocusedTaskActions.js +1 -2
- package/lib/focused-task/index.js +4 -4
- package/lib/focused-task/style.css +1 -1
- package/lib/growler/Growler.js +2 -3
- package/lib/growler/Growler.ve.js +12 -13
- package/lib/growler/GrowlerListProvider.js +12 -13
- package/lib/growler/Sonner.ve.js +10 -11
- package/lib/growler/sonner.js +1 -2
- package/lib/growler/style.css +2 -2
- package/lib/index.js +64 -100
- package/lib/index.umd.cjs +2 -2
- package/lib/insight-card/InsightCard.js +1 -2
- package/lib/insight-card/InsightCard.ve.js +55 -56
- package/lib/insight-card/InsightCardSet.js +1 -2
- package/lib/insight-card/style.css +1 -1
- package/lib/key-value-set/key-value-set/KeyValueSet.js +1 -2
- package/lib/key-value-set/key-value-set/KeyValueSet.ve.js +4 -5
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.js +1 -2
- package/lib/key-value-set/key-value-set-item/KeyValueSetItem.ve.js +6 -7
- package/lib/key-value-set/style.css +2 -2
- package/lib/list-bar/advanced-search/AdvancedSearch.js +1 -2
- package/lib/list-bar/advanced-search/AdvancedSearch.ve.js +11 -12
- package/lib/list-bar/index.js +7 -7
- package/lib/list-bar/list-bar/InputGroupWrapper.js +1 -2
- package/lib/list-bar/list-bar/ListBar.js +16 -17
- package/lib/list-bar/list-bar/ListBar.ve.js +6 -7
- package/lib/list-bar/list-bar/ListBarSearch.js +1 -2
- package/lib/list-bar/list-bar/ListBarSearchInfo.js +1 -2
- package/lib/list-bar/list-bar/ListBarSortBy.js +1 -2
- package/lib/list-bar/search-results-bar/SearchResultsBar.js +3 -4
- package/lib/list-bar/search-results-bar/SearchResultsBar.ve.js +2 -3
- package/lib/list-bar/style.css +3 -3
- package/lib/matrix/matrix/Matrix.js +1 -2
- package/lib/matrix/matrix/Matrix.ve.js +2 -3
- package/lib/matrix/matrix-body/MatrixBody.js +1 -2
- package/lib/matrix/matrix-cell/MatrixCell.js +1 -2
- package/lib/matrix/matrix-head/MatrixHead.js +1 -2
- package/lib/matrix/matrix-header/MatrixHeader.js +1 -2
- package/lib/matrix/matrix-row/MatrixRow.js +1 -2
- package/lib/matrix/style.css +1 -1
- package/lib/modal/index.js +4 -4
- package/lib/modal/modal/Modal.js +15 -16
- package/lib/modal/modal/Modal.ve.js +25 -26
- package/lib/modal/modal/useModal.js +1 -2
- package/lib/modal/modal-footer/ModalFooter.js +1 -2
- package/lib/modal/style.css +1 -1
- package/lib/node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.21.3/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js +1 -2
- package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/index.browser.js +1 -2
- package/lib/node_modules/.pnpm/nanoid@5.1.16/node_modules/nanoid/url-alphabet/index.js +1 -2
- package/lib/page-title/heading-level/HeadingLevel.js +1 -2
- package/lib/page-title/index.js +4 -4
- package/lib/page-title/page-subtitle/PageSubtitle.js +1 -2
- package/lib/page-title/page-subtitle/PageSubtitle.ve.js +2 -3
- package/lib/page-title/page-title/PageTitle.js +1 -2
- package/lib/page-title/page-title/PageTitle.ve.js +2 -3
- package/lib/page-title/style.css +2 -2
- package/lib/photo/photo/Photo.js +1 -2
- package/lib/photo/photo/Photo.ve.js +9 -10
- package/lib/photo/photo-carousel/PhotoCarousel.js +1 -2
- package/lib/photo/photo-carousel/PhotoCarousel.ve.js +6 -7
- package/lib/photo/style.css +2 -2
- package/lib/product-bar/hooks/usePriorityPlus.js +1 -2
- package/lib/product-bar/index.js +4 -4
- package/lib/product-bar/product-bar/ProductBar.js +12 -13
- package/lib/product-bar/product-bar/ProductBar.ve.js +19 -20
- package/lib/product-bar/product-bar-name/ProductBarName.js +3 -4
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.js +4 -5
- package/lib/product-bar/product-bar-overflow-menu/ProductBarOverflowMenu.ve.js +2 -3
- package/lib/product-bar/product-bar-tab/ProductBarTab.js +2 -3
- package/lib/product-bar/slack-link/SlackLink.js +1 -2
- package/lib/product-bar/slack-link/SlackLink.ve.js +2 -3
- package/lib/product-bar/style.css +3 -3
- package/lib/product-bar-vertical/index.js +5 -5
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.js +11 -12
- package/lib/product-bar-vertical/product-bar-vertical/ProductBarVertical.ve.js +25 -26
- package/lib/product-bar-vertical/product-bar-vertical-header/ProductBarVerticalHeader.js +2 -3
- package/lib/product-bar-vertical/product-bar-vertical-item/ProductBarVerticalItem.js +3 -4
- package/lib/product-bar-vertical/product-bar-vertical-section/ProductBarVerticalSection.js +6 -7
- package/lib/product-bar-vertical/style.css +1 -1
- package/lib/progress-indicators/index.js +3 -3
- package/lib/progress-indicators/progress-bar/ProgressBar.js +8 -9
- package/lib/progress-indicators/progress-bar/ProgressBar.ve.js +28 -29
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.js +1 -2
- package/lib/progress-indicators/progress-bar/progress-bar-step/ProgressBarStep.ve.js +45 -46
- package/lib/progress-indicators/progress-ring/ProgressRing.js +1 -2
- package/lib/progress-indicators/style.css +2 -2
- package/lib/rich-text-editor/rich-text-editor/RTELinkModal.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/RTEToolbarButton.ve.js +6 -7
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.js +3 -4
- package/lib/rich-text-editor/rich-text-editor/RichTextEditor.ve.js +9 -10
- package/lib/rich-text-editor/rich-text-editor/hooks/useHtmlToMd.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/hooks/useMdToHtml.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEContent.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEObserver.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTESelectionListener.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/hooks/useRTEToolbarButtons.js +64 -65
- package/lib/rich-text-editor/rich-text-editor/icons/BOLD.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/INDENT.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/ITALICS.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/LINK.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/ORDERED_LIST.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/OUTDENT.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/REDO.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/UNDO.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/UNLINK.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/icons/UNORDERED_LIST.svg.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/utils/flattenListItemParagraphs.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/utils/removeUnrepresentableBreaks.js +1 -2
- package/lib/rich-text-editor/rich-text-editor/utils/utils.js +1 -2
- package/lib/rich-text-editor/style.css +2 -2
- package/lib/scrollable-container/ScrollableContainer.js +1 -2
- package/lib/scrollable-container/ScrollableContainer.ve.js +2 -3
- package/lib/scrollable-container/style.css +1 -1
- package/lib/side-nav/index.js +4 -4
- package/lib/side-nav/side-nav/SideNav.js +13 -14
- package/lib/side-nav/side-nav/SideNav.ve.js +9 -10
- package/lib/side-nav/side-nav/navContext.js +1 -2
- package/lib/side-nav/side-nav-header/SideNavHeader.js +1 -2
- package/lib/side-nav/side-nav-item/SideNavItem.js +1 -2
- package/lib/side-nav/side-nav-section/SideNavSection.js +2 -3
- package/lib/side-nav/style.css +1 -1
- package/lib/sorting-header/caret/caret.ve.js +5 -6
- package/lib/sorting-header/index.js +3 -3
- package/lib/sorting-header/sorting-header/SortingHeader.js +1 -2
- package/lib/sorting-header/sorting-header/SortingHeader.ve.js +11 -12
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.js +1 -2
- package/lib/sorting-header/sorting-header-cell/SortingHeaderCell.ve.js +8 -9
- package/lib/sorting-header/style.css +3 -3
- package/lib/style.css +1 -1
- package/lib/tabs/index.js +4 -4
- package/lib/tabs/style.css +2 -2
- package/lib/tabs/tab/Tab.js +1 -2
- package/lib/tabs/tab/Tab.ve.js +24 -25
- package/lib/tabs/tab-panel/TabPanel.js +1 -2
- package/lib/tabs/tabs/Tabs.js +8 -9
- package/lib/tabs/tabs/Tabs.ve.js +7 -8
- package/lib/tags/clickable-tag/ClickableTag.js +2 -3
- package/lib/tags/clickable-tag/ClickableTag.ve.js +23 -24
- package/lib/tags/split-tag/SplitTag.js +2 -3
- package/lib/tags/split-tag/SplitTag.ve.js +17 -18
- package/lib/tags/style.css +3 -3
- package/lib/tags/tag/Tag.js +1 -2
- package/lib/tags/tag/Tag.ve.js +21 -22
- package/lib/utils/cl.js +1 -2
- package/lib/zero-state/ZeroState.js +2 -3
- package/lib/zero-state/ZeroState.ve.js +13 -14
- package/lib/zero-state/style.css +1 -1
- package/package.json +11 -11
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
1
|
+
import { getParentElement as e, getSiblingElementsAfter as t } from "../utils/utils.js";
|
|
2
|
+
import n from "../icons/BOLD.svg.js";
|
|
3
|
+
import r from "../icons/INDENT.svg.js";
|
|
4
|
+
import i from "../icons/ITALICS.svg.js";
|
|
5
|
+
import a from "../icons/LINK.svg.js";
|
|
6
|
+
import o from "../icons/ORDERED_LIST.svg.js";
|
|
7
|
+
import s from "../icons/OUTDENT.svg.js";
|
|
8
|
+
import c from "../icons/REDO.svg.js";
|
|
9
|
+
import l from "../icons/UNDO.svg.js";
|
|
10
|
+
import u from "../icons/UNLINK.svg.js";
|
|
11
|
+
import d from "../icons/UNORDERED_LIST.svg.js";
|
|
12
|
+
import { moveCaretAfter as f } from "./useRTEObserver.js";
|
|
13
13
|
import { useCallback as p, useMemo as m, useState as h } from "react";
|
|
14
|
-
|
|
14
|
+
// src/rich-text-editor/rich-text-editor/hooks/useRTEToolbarButtons.ts
|
|
15
15
|
var g = {
|
|
16
16
|
key: "bold",
|
|
17
|
-
icon:
|
|
17
|
+
icon: n,
|
|
18
18
|
onClick: () => document.execCommand("bold"),
|
|
19
19
|
activeTest: (e) => ["B", "STRONG"].includes(e.tagName),
|
|
20
20
|
isSimpleToggle: !0
|
|
21
21
|
}, _ = {
|
|
22
22
|
key: "italics",
|
|
23
|
-
icon:
|
|
23
|
+
icon: i,
|
|
24
24
|
onClick: () => document.execCommand("italic"),
|
|
25
25
|
activeTest: (e) => ["I", "EM"].includes(e.tagName),
|
|
26
26
|
isSimpleToggle: !0
|
|
27
27
|
}, v = {
|
|
28
28
|
key: "ul",
|
|
29
|
-
icon:
|
|
29
|
+
icon: d,
|
|
30
30
|
onClick: () => document.execCommand("insertUnorderedList"),
|
|
31
31
|
activeTest: (e) => e.tagName === "UL"
|
|
32
32
|
}, y = {
|
|
33
33
|
key: "ol",
|
|
34
|
-
icon:
|
|
34
|
+
icon: o,
|
|
35
35
|
onClick: () => document.execCommand("insertOrderedList"),
|
|
36
36
|
activeTest: (e) => e.tagName === "OL"
|
|
37
37
|
}, b = {
|
|
38
38
|
key: "indent",
|
|
39
|
-
icon:
|
|
39
|
+
icon: r,
|
|
40
40
|
onClick: () => {
|
|
41
41
|
try {
|
|
42
42
|
let t = window.getSelection();
|
|
@@ -57,17 +57,17 @@ var g = {
|
|
|
57
57
|
}
|
|
58
58
|
} else if (t) {
|
|
59
59
|
let { anchorNode: n } = t, r;
|
|
60
|
-
if (n instanceof HTMLElement && n.tagName === "LI" ? r = n : n && (r =
|
|
61
|
-
let
|
|
62
|
-
if (
|
|
60
|
+
if (n instanceof HTMLElement && n.tagName === "LI" ? r = n : n && (r = e(n, ["LI"])), r) {
|
|
61
|
+
let e = r.previousElementSibling, t = r.parentElement.tagName.toLowerCase();
|
|
62
|
+
if (e && e.tagName === "LI") {
|
|
63
63
|
r.remove();
|
|
64
|
-
let
|
|
65
|
-
if (
|
|
64
|
+
let i = e.querySelector(t);
|
|
65
|
+
if (i) i.appendChild(r);
|
|
66
66
|
else {
|
|
67
|
-
let
|
|
68
|
-
|
|
67
|
+
let n = document.createElement(t);
|
|
68
|
+
n.appendChild(r), e.appendChild(n);
|
|
69
69
|
}
|
|
70
|
-
n &&
|
|
70
|
+
n && f(n.childNodes?.[0] || n);
|
|
71
71
|
}
|
|
72
72
|
return;
|
|
73
73
|
}
|
|
@@ -77,50 +77,50 @@ var g = {
|
|
|
77
77
|
}
|
|
78
78
|
}, x = {
|
|
79
79
|
key: "outdent",
|
|
80
|
-
icon:
|
|
80
|
+
icon: s,
|
|
81
81
|
onClick: () => {
|
|
82
82
|
try {
|
|
83
|
-
let
|
|
84
|
-
if (
|
|
85
|
-
let e =
|
|
86
|
-
if (!(
|
|
87
|
-
let
|
|
88
|
-
if (
|
|
89
|
-
|
|
90
|
-
e.intersectsNode(t) && t instanceof HTMLElement && t.tagName === "LI" &&
|
|
83
|
+
let n = window.getSelection();
|
|
84
|
+
if (n?.type === "Range") {
|
|
85
|
+
let e = n.getRangeAt(0), r = e.commonAncestorContainer;
|
|
86
|
+
if (!(r instanceof HTMLElement)) return;
|
|
87
|
+
let i = [], a;
|
|
88
|
+
if (r.tagName === "UL" || r.tagName === "OL" ? a = r : r.tagName === "LI" && (a = r.parentElement), a) {
|
|
89
|
+
a.childNodes.forEach((t) => {
|
|
90
|
+
e.intersectsNode(t) && t instanceof HTMLElement && t.tagName === "LI" && i.push(t);
|
|
91
91
|
});
|
|
92
|
-
let
|
|
93
|
-
|
|
94
|
-
if (
|
|
95
|
-
let
|
|
96
|
-
if (
|
|
97
|
-
let
|
|
98
|
-
if (r) for (let e of
|
|
92
|
+
let n = a.parentElement;
|
|
93
|
+
n?.tagName === "LI" && (i.forEach((e, n) => {
|
|
94
|
+
if (n === i.length - 1) {
|
|
95
|
+
let n = t(e);
|
|
96
|
+
if (n.length > 0) {
|
|
97
|
+
let t = a.tagName.toLowerCase(), r = e.querySelector(t);
|
|
98
|
+
if (r) for (let e of n) e.remove(), r.appendChild(e);
|
|
99
99
|
else {
|
|
100
|
-
let r = document.createElement(
|
|
100
|
+
let r = document.createElement(t);
|
|
101
101
|
e.appendChild(r);
|
|
102
|
-
for (let e of
|
|
102
|
+
for (let e of n) e.remove(), r.appendChild(e);
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
105
|
}
|
|
106
106
|
e.remove();
|
|
107
|
-
}),
|
|
107
|
+
}), a.childElementCount === 0 && a.remove(), i.reverse().forEach((e) => n.after(e)));
|
|
108
108
|
return;
|
|
109
109
|
}
|
|
110
|
-
} else if (
|
|
111
|
-
let { anchorNode:
|
|
112
|
-
|
|
113
|
-
let
|
|
114
|
-
if (
|
|
115
|
-
let
|
|
116
|
-
if (
|
|
117
|
-
let
|
|
118
|
-
if (
|
|
119
|
-
let
|
|
120
|
-
|
|
121
|
-
for (let
|
|
110
|
+
} else if (n) {
|
|
111
|
+
let { anchorNode: r } = n, i = null, a = null;
|
|
112
|
+
r instanceof HTMLElement && (r.tagName === "UL" || r.tagName === "OL") ? (i = r, a = r.querySelector("li")) : r && (i = e(r, ["UL", "OL"]), a = r instanceof HTMLElement && r.tagName === "LI" ? r : e(r, ["LI"]));
|
|
113
|
+
let o = i ? e(i, ["UL", "OL"]) : null;
|
|
114
|
+
if (i && o) {
|
|
115
|
+
let n = e(i, ["LI"]);
|
|
116
|
+
if (i.childElementCount === 1 && i.remove(), a) {
|
|
117
|
+
let e = t(a);
|
|
118
|
+
if (e.length > 0) {
|
|
119
|
+
let t = document.createElement(i.tagName.toLowerCase());
|
|
120
|
+
a.appendChild(t);
|
|
121
|
+
for (let n of e) n.remove(), t.appendChild(n);
|
|
122
122
|
}
|
|
123
|
-
|
|
123
|
+
n?.after(a), a.lastChild && f(a.lastChild);
|
|
124
124
|
}
|
|
125
125
|
return;
|
|
126
126
|
}
|
|
@@ -130,15 +130,15 @@ var g = {
|
|
|
130
130
|
}
|
|
131
131
|
}, S = {
|
|
132
132
|
key: "undo",
|
|
133
|
-
icon:
|
|
133
|
+
icon: l,
|
|
134
134
|
onClick: () => document.execCommand("undo")
|
|
135
135
|
}, C = {
|
|
136
136
|
key: "redo",
|
|
137
|
-
icon:
|
|
137
|
+
icon: c,
|
|
138
138
|
onClick: () => document.execCommand("redo")
|
|
139
139
|
};
|
|
140
140
|
function w(e, t) {
|
|
141
|
-
let [n, r] = h(!1),
|
|
141
|
+
let [n, r] = h(!1), i = p((e, t) => {
|
|
142
142
|
r(!1);
|
|
143
143
|
let n = e.cloneRange(), i = window.getSelection();
|
|
144
144
|
if ((i?.rangeCount ?? 0) > 0 && i?.removeAllRanges(), i?.addRange(n), !n?.toString() && t?.text && i) {
|
|
@@ -160,7 +160,7 @@ function w(e, t) {
|
|
|
160
160
|
}
|
|
161
161
|
}, []), o = m(() => ({
|
|
162
162
|
key: "link",
|
|
163
|
-
icon:
|
|
163
|
+
icon: a,
|
|
164
164
|
onClick: () => {
|
|
165
165
|
let e = window.getSelection(), n = (e?.rangeCount ?? 0) > 0 ? e?.getRangeAt(0).commonAncestorContainer : null;
|
|
166
166
|
t.current && n && t.current.contains(n) && r(!0);
|
|
@@ -180,7 +180,7 @@ function w(e, t) {
|
|
|
180
180
|
o,
|
|
181
181
|
m(() => ({
|
|
182
182
|
key: "unlink",
|
|
183
|
-
icon:
|
|
183
|
+
icon: u,
|
|
184
184
|
onClick: () => {
|
|
185
185
|
let t = e(o.activeTest);
|
|
186
186
|
t && (window.getSelection()?.getRangeAt(0).selectNodeContents(t), document.execCommand("unlink"));
|
|
@@ -191,8 +191,7 @@ function w(e, t) {
|
|
|
191
191
|
C
|
|
192
192
|
],
|
|
193
193
|
showLinkModal: n,
|
|
194
|
-
handleLinkModalClose:
|
|
194
|
+
handleLinkModalClose: i
|
|
195
195
|
};
|
|
196
196
|
}
|
|
197
|
-
//#endregion
|
|
198
197
|
export { w as useRTEToolbarButtons };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/rich-text-editor/rich-text-editor/icons/BOLD.svg
|
|
2
2
|
var e = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='10px'%20height='12px'%20viewBox='0%200%2010%2012'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eBold%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-53.000000,%20-103.000000)'%20fill='%234B5356'%20fill-rule='nonzero'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%202.000000)'%20id='B'%3e%3cg%20transform='translate(3.550000,%202.130000)'%3e%3cpath%20d='M0,0%20L4.014,0%20C4.626,0%205.193,0.045%205.715,0.135%20C6.237,0.225%206.693,0.384%207.083,0.612%20C7.473,0.84%207.779,1.14%208.001,1.512%20C8.223,1.884%208.334,2.352%208.334,2.916%20C8.334,3.18%208.295,3.444%208.217,3.708%20C8.139,3.972%208.022,4.218%207.866,4.446%20C7.71,4.674%207.506,4.878%207.254,5.058%20C7.002,5.238%206.708,5.37%206.372,5.454%20L6.372,5.526%20C7.212,5.682%207.845,5.982%208.271,6.426%20C8.697,6.87%208.91,7.488%208.91,8.28%20C8.91,8.88%208.793,9.396%208.559,9.828%20C8.325,10.26%208.001,10.617%207.587,10.899%20C7.173,11.181%206.69,11.391%206.138,11.529%20C5.586,11.667%204.992,11.736%204.356,11.736%20L0,11.736%20L0,0%20Z%20M3.888,4.734%20C4.536,4.734%205.007,4.605%205.301,4.347%20C5.595,4.089%205.742,3.738%205.742,3.294%20C5.742,2.85%205.592,2.532%205.292,2.34%20C4.992,2.148%204.53,2.052%203.906,2.052%20L2.646,2.052%20L2.646,4.734%20L3.888,4.734%20Z%20M4.14,9.684%20C5.592,9.684%206.318,9.15%206.318,8.082%20C6.318,7.566%206.138,7.191%205.778,6.957%20C5.418,6.723%204.872,6.606%204.14,6.606%20L2.646,6.606%20L2.646,9.684%20L4.14,9.684%20Z'%20id='Shape'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/rich-text-editor/rich-text-editor/icons/INDENT.svg
|
|
2
2
|
var e = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='14px'%20viewBox='0%200%2016%2014'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIndent%20short%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-50.000000,%20-282.000000)'%20fill='%234B5356'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%20182.000000)'%3e%3crect%20id='Rectangle-223'%20x='0'%20y='1.6'%20width='16'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='0'%20y='12.4'%20width='16'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='7'%20y='8.8'%20width='9'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='7'%20y='5.2'%20width='9'%20height='2'%3e%3c/rect%3e%3cpath%20d='M5.20857552,7.99286089%20C5.20857552,8.06428955%205.18178977,8.14464678%205.12821828,8.19821828%20L2.27107201,11.0553645%20C2.21750052,11.108936%202.13714328,11.1357218%202.06571463,11.1357218%20C1.91392873,11.1357218%201.78,11.001793%201.78,10.85%20L1.78,5.13571463%20C1.78,4.97500015%201.90500015,4.85%202.06571463,4.85%20C2.14607186,4.85%202.21750052,4.88571433%202.28,4.93928582%20L5.12821828,7.7875035%20C5.18178977,7.84107499%205.20857552,7.92143223%205.20857552,7.99286089%20Z'%20id='Path'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/rich-text-editor/rich-text-editor/icons/ITALICS.svg
|
|
2
2
|
var e = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='10px'%20height='12px'%20viewBox='0%200%2010%2012'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eItalics%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-53.000000,%20-148.000000)'%20fill='%234B5356'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%2047.000000)'%3e%3cg%20id='I'%20transform='translate(5.600000,%202.130000)'%20fill-rule='nonzero'%3e%3cpolygon%20id='Path'%20points='2.358%200%204.824%200%202.484%2011.736%200%2011.736'%3e%3c/polygon%3e%3c/g%3e%3crect%20id='Rectangle'%20x='5.5'%20y='2'%20width='7'%20height='1.5'%3e%3c/rect%3e%3crect%20id='Rectangle-Copy'%20x='3.5'%20y='12.5'%20width='7'%20height='1.5'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/rich-text-editor/rich-text-editor/icons/LINK.svg
|
|
2
2
|
var e = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='14px'%20height='14px'%20viewBox='0%200%2014%2014'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIcon/icon-ellipses%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---Schematics'%20transform='translate(-401.000000,%20-200.000000)'%20fill='%234B5356'%3e%3cg%20id='Group-5'%20transform='translate(146.000000,%20167.000000)'%3e%3cg%20id='Icon/icon-link'%20transform='translate(254.000000,%2032.000000)'%3e%3cpath%20d='M9.28515625,6.03125%20C9.33984402,6.06770852%209.39908822,6.11328098%209.46289062,6.16796875%20C9.52669303,6.22265652%209.58593723,6.26822898%209.640625,6.3046875%20L9.6953125,6.359375%20C10.3333365,7.01562828%2010.6523438,7.79947461%2010.6523438,8.7109375%20C10.6523438,9.62240039%2010.3333365,10.4062467%209.6953125,11.0625%20L6.6875,14.0429688%20C6.04947598,14.6809928%205.27474414,15%204.36328125,15%20C3.45181836,15%202.66797203,14.6809928%202.01171875,14.0429688%20L1.95703125,13.9882812%20C1.31900723,13.332028%201,12.5481816%201,11.6367188%20C1,10.7252559%201.31900723,9.95052402%201.95703125,9.3125%20L4.0625,7.20703125%20C4.04427074,7.51692863%204.06249973,7.82682137%204.1171875,8.13671875%20C4.17187527,8.44661613%204.2630202,8.73827988%204.390625,9.01171875%20L3.05078125,10.3789062%20C2.68619609,10.7252621%202.50390625,11.1445288%202.50390625,11.6367188%20C2.50390625,12.1289087%202.68619609,12.5481754%203.05078125,12.8945312%20L3.10546875,12.9492188%20C3.45182465,13.3138039%203.87109129,13.4960938%204.36328125,13.4960938%20C4.85547121,13.4960938%205.27473785,13.3138039%205.62109375,12.9492188%20L8.6015625,9.96875%20C8.9479184,9.6223941%209.12109375,9.20312746%209.12109375,8.7109375%20C9.12109375,8.21874754%208.9479184,7.7994809%208.6015625,7.453125%20L8.546875,7.3984375%20C8.49218723,7.34374973%208.43750027,7.29362002%208.3828125,7.24804688%20C8.32812473,7.20247373%208.26432328,7.16145852%208.19140625,7.125%20L9.28515625,6.03125%20Z%20M11.6367188,1%20C12.5481816,1%2013.332028,1.31900723%2013.9882812,1.95703125%20L14.0429688,2.01171875%20C14.6809928,2.66797203%2015,3.45181836%2015,4.36328125%20C15,5.27474414%2014.6809928,6.04947598%2014.0429688,6.6875%20L11.9375,8.79296875%20C11.9557293,8.48307137%2011.9375003,8.17317863%2011.8828125,7.86328125%20C11.8281247,7.55338387%2011.7369798,7.26172012%2011.609375,6.98828125%20L12.9492188,5.62109375%20C13.3138039,5.27473785%2013.4960938,4.85547121%2013.4960938,4.36328125%20C13.4960938,3.87109129%2013.3138039,3.45182465%2012.9492188,3.10546875%20L12.8945312,3.05078125%20C12.5481754,2.68619609%2012.1289087,2.50390625%2011.6367188,2.50390625%20C11.1445288,2.50390625%2010.7252621,2.68619609%2010.3789062,3.05078125%20L7.3984375,6.03125%20C7.0520816,6.3776059%206.87890625,6.79687254%206.87890625,7.2890625%20C6.87890625,7.78125246%207.0520816,8.2005191%207.3984375,8.546875%20L7.453125,8.6015625%20C7.50781277,8.65625027%207.56249973,8.70637998%207.6171875,8.75195312%20C7.67187527,8.79752627%207.73567672,8.83854148%207.80859375,8.875%20L6.71484375,9.96875%20C6.66015598,9.93229148%206.60091178,9.88671902%206.53710938,9.83203125%20C6.47330697,9.77734348%206.41406277,9.73177102%206.359375,9.6953125%20L6.3046875,9.640625%20C5.66666348,8.98437172%205.34765625,8.20052539%205.34765625,7.2890625%20C5.34765625,6.37759961%205.66666348,5.59375328%206.3046875,4.9375%20L9.3125,1.95703125%20C9.95052402,1.31900723%2010.7252559,1%2011.6367188,1%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/rich-text-editor/rich-text-editor/icons/ORDERED_LIST.svg
|
|
2
2
|
var e = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='15px'%20height='14px'%20viewBox='0%200%2015%2014'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eOrdered%20list%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-51.000000,%20-192.000000)'%20fill='%234B5356'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%2092.000000)'%3e%3crect%20id='Rectangle-223-Copy-3'%20x='5'%20y='2.5'%20width='11'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223-Copy-2'%20x='5'%20y='7'%20width='11'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223-Copy'%20x='5'%20y='11.5'%20width='11'%20height='2'%3e%3c/rect%3e%3cg%20id='1'%20transform='translate(1.500000,%201.900000)'%20fill-rule='nonzero'%3e%3cpath%20d='M0,2.58%20L0.69,2.58%20L0.69,0.745%20L0.095,0.745%20L0.095,0.29%20C0.268333333,0.256666667%200.415,0.216666667%200.535,0.17%20C0.655,0.123333333%200.771666667,0.0666666667%200.885,0%20L1.425,0%20L1.425,2.58%20L2.02,2.58%20L2.02,3.175%20L0,3.175%20L0,2.58%20Z'%20id='Path'%3e%3c/path%3e%3c/g%3e%3cg%20id='2'%20transform='translate(1.355000,%206.400000)'%20fill-rule='nonzero'%3e%3cpath%20d='M0.035,2.815%20C0.238333333,2.625%200.424166667,2.4475%200.5925,2.2825%20C0.760833333,2.1175%200.905833333,1.9625%201.0275,1.8175%20C1.14916667,1.6725%201.24416667,1.5375%201.3125,1.4125%20C1.38083333,1.2875%201.415,1.16833333%201.415,1.055%20C1.415,0.898333333%201.375,0.779166667%201.295,0.6975%20C1.215,0.615833333%201.105,0.575%200.965,0.575%20C0.848333333,0.575%200.745,0.6075%200.655,0.6725%20C0.565,0.7375%200.48,0.813333333%200.4,0.9%20L0,0.505%20C0.156666667,0.338333333%200.316666667,0.2125%200.48,0.1275%20C0.643333333,0.0425%200.838333333,0%201.065,0%20C1.22166667,0%201.36416667,0.0241666667%201.4925,0.0725%20C1.62083333,0.120833333%201.73166667,0.189166667%201.825,0.2775%20C1.91833333,0.365833333%201.99,0.471666667%202.04,0.595%20C2.09,0.718333333%202.115,0.856666667%202.115,1.01%20C2.115,1.14333333%202.08666667,1.27916667%202.03,1.4175%20C1.97333333,1.55583333%201.8975,1.69416667%201.8025,1.8325%20C1.7075,1.97083333%201.59916667,2.10916667%201.4775,2.2475%20C1.35583333,2.38583333%201.23,2.52166667%201.1,2.655%20C1.18,2.645%201.26916667,2.63583333%201.3675,2.6275%20C1.46583333,2.61916667%201.55333333,2.615%201.63,2.615%20L2.27,2.615%20L2.27,3.235%20L0.035,3.235%20L0.035,2.815%20Z'%20id='Path'%3e%3c/path%3e%3c/g%3e%3cg%20id='3'%20transform='translate(1.350000,%2010.800000)'%20fill-rule='nonzero'%3e%3cpath%20d='M0.34,2.38%20C0.436666667,2.47333333%200.5425,2.55%200.6575,2.61%20C0.7725,2.67%200.898333333,2.7%201.035,2.7%20C1.19166667,2.7%201.31666667,2.6675%201.41,2.6025%20C1.50333333,2.5375%201.55,2.445%201.55,2.325%20C1.55,2.255%201.5375,2.19166667%201.5125,2.135%20C1.4875,2.07833333%201.44333333,2.03083333%201.38,1.9925%20C1.31666667,1.95416667%201.23,1.92416667%201.12,1.9025%20C1.01,1.88083333%200.868333333,1.87%200.695,1.87%20L0.695,1.35%20C0.838333333,1.35%200.9575,1.34%201.0525,1.32%20C1.1475,1.3%201.22416667,1.27083333%201.2825,1.2325%20C1.34083333,1.19416667%201.3825,1.14916667%201.4075,1.0975%20C1.4325,1.04583333%201.445,0.988333333%201.445,0.925%20C1.445,0.815%201.41166667,0.729166667%201.345,0.6675%20C1.27833333,0.605833333%201.18166667,0.575%201.055,0.575%20C0.941666667,0.575%200.839166667,0.6%200.7475,0.65%20C0.655833333,0.7%200.56,0.768333333%200.46,0.855%20L0.09,0.405%20C0.236666667,0.278333333%200.390833333,0.179166667%200.5525,0.1075%20C0.714166667,0.0358333333%200.893333333,0%201.09,0%20C1.25333333,0%201.4025,0.0191666667%201.5375,0.0575%20C1.6725,0.0958333333%201.7875,0.1525%201.8825,0.2275%20C1.9775,0.3025%202.05166667,0.393333333%202.105,0.5%20C2.15833333,0.606666667%202.185,0.73%202.185,0.87%20C2.185,1.03666667%202.13916667,1.1775%202.0475,1.2925%20C1.95583333,1.4075%201.825,1.50166667%201.655,1.575%20L1.655,1.595%20C1.83833333,1.64833333%201.98916667,1.73916667%202.1075,1.8675%20C2.22583333,1.99583333%202.285,2.16333333%202.285,2.37%20C2.285,2.51666667%202.25333333,2.6475%202.19,2.7625%20C2.12666667,2.8775%202.04166667,2.97416667%201.935,3.0525%20C1.82833333,3.13083333%201.70333333,3.19083333%201.56,3.2325%20C1.41666667,3.27416667%201.265,3.295%201.105,3.295%20C0.845,3.295%200.625,3.25416667%200.445,3.1725%20C0.265,3.09083333%200.116666667,2.98166667%200,2.845%20L0.34,2.38%20Z'%20id='Path'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/rich-text-editor/rich-text-editor/icons/OUTDENT.svg
|
|
2
2
|
var e = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='16px'%20height='14px'%20viewBox='0%200%2016%2014'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eOutdent%20short%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-50.000000,%20-327.000000)'%20fill='%234B5356'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%20227.000000)'%3e%3crect%20id='Rectangle-223'%20x='0'%20y='1.6'%20width='16'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='0'%20y='12.4'%20width='16'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='7'%20y='8.8'%20width='9'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='7'%20y='5.2'%20width='9'%20height='2'%3e%3c/rect%3e%3cpath%20d='M5.21357552,10.85%20C5.21357552,11.001793%205.08857537,11.1357218%204.92786089,11.1357218%20C4.84750365,11.1357218%204.77607499,11.1000075%204.71357492,11.046436%20L1.86535724,8.1892897%20C1.81178575,8.1357182%201.785,8.06428955%201.785,7.99286089%20C1.785,7.91250365%201.81178575,7.84107499%201.86535724,7.7875035%20L4.7225035,4.93035724%20C4.77607499,4.87678575%204.85643223,4.85%204.92786089,4.85%20C5.07964678,4.85%205.21357552,4.97500015%205.21357552,5.13571463%20L5.21357552,10.85%20Z'%20id='Path'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/rich-text-editor/rich-text-editor/icons/REDO.svg
|
|
2
2
|
var e = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='14px'%20height='14px'%20viewBox='0%200%2014%2014'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIcon/icon-ellipses%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---Schematics'%20transform='translate(-520.000000,%20-200.000000)'%20fill='%234B5356'%3e%3cg%20id='Group-5'%20transform='translate(146.000000,%20167.000000)'%3e%3cg%20id='Button/2.-Icon/6.-Default-Copy-8'%20transform='translate(363.000000,%2025.000000)'%3e%3cg%20id='Icon/icon-undo'%20transform='translate(10.000000,%207.000000)'%3e%3cpath%20d='M15,2.16666667%20C15,1.9296875%2014.8541667,1.72005208%2014.6445312,1.62890625%20C14.4257812,1.53776042%2014.1705729,1.58333333%2014.0065104,1.75651042%20L12.8216146,2.93229167%20C11.5364583,1.72005208%209.79557292,1%208,1%20C4.14453125,1%201,4.14453125%201,8%20C1,11.8554688%204.14453125,15%208,15%20C10.0872396,15%2012.0559896,14.0794271%2013.3867188,12.4752604%20C13.4778646,12.3567708%2013.4778646,12.1835938%2013.3684896,12.0833333%20L12.1197917,10.8255208%20C12.0559896,10.7708333%2011.9739583,10.7434896%2011.8919271,10.7434896%20C11.8098958,10.7526042%2011.7278646,10.7890625%2011.6822917,10.8528646%20C10.7890625,12.0104167%209.44921875,12.6666667%208,12.6666667%20C5.4296875,12.6666667%203.33333333,10.5703125%203.33333333,8%20C3.33333333,5.4296875%205.4296875,3.33333333%208,3.33333333%20C9.19401042,3.33333333%2010.3242188,3.7890625%2011.1809896,4.58203125%20L9.92317708,5.83984375%20C9.75,6.00390625%209.70442708,6.25911458%209.79557292,6.46875%20C9.88671875,6.6875%2010.0963542,6.83333333%2010.3333333,6.83333333%20L14.4166667,6.83333333%20C14.7356771,6.83333333%2015,6.56901042%2015,6.25%20L15,2.16666667%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/rich-text-editor/rich-text-editor/icons/UNDO.svg
|
|
2
2
|
var e = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='14px'%20height='14px'%20viewBox='0%200%2014%2014'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eIcon/icon-ellipses%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---Schematics'%20transform='translate(-484.000000,%20-200.000000)'%20fill='%234B5356'%3e%3cg%20id='Group-5'%20transform='translate(146.000000,%20167.000000)'%3e%3cg%20id='Button/2.-Icon/6.-Default-Copy-9'%20transform='translate(345.000000,%2040.000000)%20scale(-1,%201)%20translate(-345.000000,%20-40.000000)%20translate(327.000000,%2025.000000)'%3e%3cg%20id='Icon/icon-undo'%20transform='translate(10.000000,%207.000000)'%3e%3cpath%20d='M15,2.16666667%20C15,1.9296875%2014.8541667,1.72005208%2014.6445312,1.62890625%20C14.4257812,1.53776042%2014.1705729,1.58333333%2014.0065104,1.75651042%20L12.8216146,2.93229167%20C11.5364583,1.72005208%209.79557292,1%208,1%20C4.14453125,1%201,4.14453125%201,8%20C1,11.8554688%204.14453125,15%208,15%20C10.0872396,15%2012.0559896,14.0794271%2013.3867188,12.4752604%20C13.4778646,12.3567708%2013.4778646,12.1835938%2013.3684896,12.0833333%20L12.1197917,10.8255208%20C12.0559896,10.7708333%2011.9739583,10.7434896%2011.8919271,10.7434896%20C11.8098958,10.7526042%2011.7278646,10.7890625%2011.6822917,10.8528646%20C10.7890625,12.0104167%209.44921875,12.6666667%208,12.6666667%20C5.4296875,12.6666667%203.33333333,10.5703125%203.33333333,8%20C3.33333333,5.4296875%205.4296875,3.33333333%208,3.33333333%20C9.19401042,3.33333333%2010.3242188,3.7890625%2011.1809896,4.58203125%20L9.92317708,5.83984375%20C9.75,6.00390625%209.70442708,6.25911458%209.79557292,6.46875%20C9.88671875,6.6875%2010.0963542,6.83333333%2010.3333333,6.83333333%20L14.4166667,6.83333333%20C14.7356771,6.83333333%2015,6.56901042%2015,6.25%20L15,2.16666667%20Z'%3e%3c/path%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/rich-text-editor/rich-text-editor/icons/UNLINK.svg
|
|
2
2
|
var e = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='14px'%20height='16px'%20viewBox='0%200%2014%2016'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eUnlink%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-51.000000,%20-371.000000)'%20fill='%234B5356'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%20272.000000)'%3e%3cpath%20d='M14.0429688,2.01171875%20C14.6809928,2.66797203%2015,3.45181836%2015,4.36328125%20C15,5.27474414%2014.6809928,6.04947598%2014.0429688,6.6875%20L11.1027446,9.58420181%20L10.3518996,8.27890801%20L12.9492188,5.62109375%20C13.3138039,5.27473785%2013.4960938,4.85547121%2013.4960938,4.36328125%20C13.4960938,3.87109129%2013.3138039,3.45182465%2012.9492188,3.10546875%20L12.8945313,3.05078125%20C12.5481754,2.68619609%2012.1289087,2.50390625%2011.6367188,2.50390625%20C11.1445288,2.50390625%2010.7252621,2.68619609%2010.3789063,3.05078125%20L8.41457939,4.92175579%20L7.64047964,3.57621944%20L9.3125,1.95703125%20C9.95052402,1.31900723%2010.7252559,1%2011.6367188,1%20C12.5481816,1%2013.332028,1.31900723%2013.9882813,1.95703125%20L14.0429688,2.01171875%20Z'%20id='Path'%3e%3c/path%3e%3cpath%20d='M8.02641916,12.7072184%20L6.6875,14.0429687%20C6.04947598,14.6809928%205.27474414,15%204.36328125,15%20C3.45181836,15%202.66797203,14.6809928%202.01171875,14.0429687%20L1.95703125,13.9882812%20C1.31900723,13.332028%201,12.5481816%201,11.6367187%20C1,10.7252559%201.31900723,9.95052402%201.95703125,9.3125%20L4.57246065,6.71787083%20L5.34566408,8.05009655%20L3.05078125,10.3789062%20C2.68619609,10.7252621%202.50390625,11.1445288%202.50390625,11.6367187%20C2.50390625,12.1289087%202.68619609,12.5481754%203.05078125,12.8945312%20L3.10546875,12.9492187%20C3.45182465,13.3138039%203.87109129,13.4960937%204.36328125,13.4960937%20C4.85547121,13.4960937%205.27473785,13.3138039%205.62109375,12.9492187%20L7.2646265,11.388324%20L8.02641916,12.7072184%20Z'%20id='Path'%3e%3c/path%3e%3crect%20id='Rectangle'%20transform='translate(7.750000,%208.000000)%20rotate(-30.000000)%20translate(-7.750000,%20-8.000000)%20'%20x='7'%20y='0'%20width='1.5'%20height='16'%3e%3c/rect%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
// src/rich-text-editor/rich-text-editor/icons/UNORDERED_LIST.svg
|
|
2
2
|
var e = "data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='UTF-8'?%3e%3csvg%20width='15px'%20height='12px'%20viewBox='0%200%2015%2012'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3ctitle%3eUnordered%20list%3c/title%3e%3cg%20id='Components'%20stroke='none'%20stroke-width='1'%20fill='none'%20fill-rule='evenodd'%3e%3cg%20id='Markdown-Editor---New-icons'%20transform='translate(-51.000000,%20-238.000000)'%20fill='%234B5356'%3e%3cg%20id='Group'%20transform='translate(50.000000,%2099.000000)'%3e%3cg%20transform='translate(0.000000,%20137.000000)'%3e%3cg%20transform='translate(1.000000,%202.000000)'%3e%3crect%20id='Rectangle-223'%20x='4'%20y='0.5'%20width='11'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='4'%20y='5'%20width='11'%20height='2'%3e%3c/rect%3e%3crect%20id='Rectangle-223'%20x='4'%20y='9.5'%20width='11'%20height='2'%3e%3c/rect%3e%3ccircle%20id='Oval'%20cx='1.5'%20cy='1.5'%20r='1.5'%3e%3c/circle%3e%3ccircle%20id='Oval-Copy'%20cx='1.5'%20cy='6'%20r='1.5'%3e%3c/circle%3e%3ccircle%20id='Oval-Copy-2'%20cx='1.5'%20cy='10.5'%20r='1.5'%3e%3c/circle%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
|
|
3
|
-
//#endregion
|
|
4
3
|
export { e as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { visit as e } from "unist-util-visit";
|
|
2
|
-
|
|
2
|
+
// src/rich-text-editor/rich-text-editor/utils/flattenListItemParagraphs.ts
|
|
3
3
|
function t() {
|
|
4
4
|
return (t) => (e(t, "listItem", (e) => {
|
|
5
5
|
let t = Array.from(e.children);
|
|
@@ -9,5 +9,4 @@ function t() {
|
|
|
9
9
|
}
|
|
10
10
|
}), t);
|
|
11
11
|
}
|
|
12
|
-
//#endregion
|
|
13
12
|
export { t as flattenListItemParagraphs };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/rich-text-editor/rich-text-editor/utils/removeUnrepresentableBreaks.ts
|
|
2
2
|
var e = /* @__PURE__ */ new Set([
|
|
3
3
|
"strong",
|
|
4
4
|
"emphasis",
|
|
@@ -18,5 +18,4 @@ function r() {
|
|
|
18
18
|
return i(r), r;
|
|
19
19
|
};
|
|
20
20
|
}
|
|
21
|
-
//#endregion
|
|
22
21
|
export { r as removeUnrepresentableBreaks };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/rich-text-editor/rich-text-editor/utils/utils.ts
|
|
2
2
|
var e = (e, t) => {
|
|
3
3
|
let n = e;
|
|
4
4
|
for (; n.parentElement && !t.includes(n.parentElement.tagName);) n = n.parentElement;
|
|
@@ -8,5 +8,4 @@ var e = (e, t) => {
|
|
|
8
8
|
for (; n.nextElementSibling;) t.push(n.nextElementSibling), n = n.nextElementSibling;
|
|
9
9
|
return t;
|
|
10
10
|
};
|
|
11
|
-
//#endregion
|
|
12
11
|
export { e as getParentElement, t as getSiblingElementsAfter };
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
.pkg_sps-woodland_core__family_rich-text-
|
|
2
|
-
.pkg_sps-woodland_core__family_rich-text-
|
|
1
|
+
.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1903a6n0{border-style:solid;border-width:.0625rem;border-radius:.25rem;padding:.25rem .5rem}.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1903a6n0:hover{background-color:#d2d4d4;border-color:#d2d4d4}.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1903a6n0:focus{outline-offset:.125rem;outline:.125rem solid #007db8;box-shadow:0 0 0 6px #fff}.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1903a6n1{background-color:#e6f2f8;border-color:#007db8}.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1903a6n2{background-color:#fff;border-color:#fff}.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1903a6n3{background-position:50%;background-repeat:no-repeat;width:.875rem;height:1.125rem;display:block}
|
|
2
|
+
.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1f3v2ss0{background-color:#fff;border-style:solid;border-width:.0625rem;border-radius:.25rem;font-size:.875rem;line-height:1.25rem}.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1f3v2ss1{border-color:#d2d4d4}.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1f3v2ss2{border-color:#717779}.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1f3v2ss3{min-height:8rem;padding:.25rem .5rem;overflow:scroll}.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1f3v2ss4{color:#717779}.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1f3v2ss5{box-shadow:inset 0 .25rem #e9e9ea}.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1f3v2ss6{border:0 solid #717779;border-bottom-width:.0625rem;align-items:center;padding:.25rem;display:flex}.pkg_sps-woodland_core__family_rich-text-editor__version_8_56_22__hash_1f3v2ss7{background-color:#d2d4d4;width:.0625rem;height:1.75rem;margin-left:.25rem;margin-right:.25rem}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { scrollableContainer as e } from "./ScrollableContainer.ve.js";
|
|
2
2
|
import { Metadata as t, cl as n } from "@sps-woodland/core";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
|
|
4
|
+
// src/scrollable-container/ScrollableContainer.tsx
|
|
5
5
|
function i({ children: t, className: i, maxHeight: a, style: o, ...s }) {
|
|
6
6
|
return /* @__PURE__ */ r.createElement("div", {
|
|
7
7
|
className: n(e, i),
|
|
@@ -16,5 +16,4 @@ t.set(i, {
|
|
|
16
16
|
name: "ScrollableContainer",
|
|
17
17
|
props: { maxHeight: "string" }
|
|
18
18
|
});
|
|
19
|
-
//#endregion
|
|
20
19
|
export { i as ScrollableContainer };
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
/* empty css */
|
|
2
|
-
|
|
3
|
-
var e = "pkg_sps-woodland_core__family_scrollable-
|
|
4
|
-
//#endregion
|
|
2
|
+
// src/scrollable-container/ScrollableContainer.css.ts
|
|
3
|
+
var e = "pkg_sps-woodland_core__family_scrollable-container__version_8_56_22__hash_xsjxqv0";
|
|
5
4
|
export { e as scrollableContainer };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.pkg_sps-woodland_core__family_scrollable-
|
|
1
|
+
.pkg_sps-woodland_core__family_scrollable-container__version_8_56_22__hash_xsjxqv0{background-color:#fff;background-image:linear-gradient(#fff0,#fff),linear-gradient(#fff,#fff0),linear-gradient(#fff0,#00000026),linear-gradient(#00000026,#fff0);background-position:100% 100%,0 0,100% 100%,0 0;background-repeat:no-repeat;background-size:100% 3.125rem,100% 3.125rem,100% .625rem,100% .625rem;background-attachment:local,local,scroll,scroll;display:block;overflow:hidden auto}.pkg_sps-woodland_core__family_scrollable-container__version_8_56_22__hash_xsjxqv0 .sps-clickable-tag{background-color:#acd4e84d}
|
package/lib/side-nav/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SideNav as e } from "./side-nav/SideNav.js";
|
|
2
2
|
import { SideNavItem as t } from "./side-nav-item/SideNavItem.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
export {
|
|
3
|
+
import { SideNavHeader as n } from "./side-nav-header/SideNavHeader.js";
|
|
4
|
+
import { SideNavSection as r } from "./side-nav-section/SideNavSection.js";
|
|
5
|
+
export { e as SideNav, n as SideNavHeader, t as SideNavItem, r as SideNavSection };
|
|
@@ -1,33 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
1
|
+
import { SideNavHeader as e } from "../side-nav-header/SideNavHeader.js";
|
|
2
|
+
import { SideNavItem as t } from "../side-nav-item/SideNavItem.js";
|
|
3
|
+
import { SideNavSection as n } from "../side-nav-section/SideNavSection.js";
|
|
4
|
+
import { sideNavBranch as r, sideNavContainer as i } from "./SideNav.ve.js";
|
|
5
|
+
import { navContext as a } from "./navContext.js";
|
|
6
6
|
import { Metadata as o, cl as s, modChildren as c, selectChildren as l } from "@sps-woodland/core";
|
|
7
7
|
import * as u from "react";
|
|
8
|
-
|
|
8
|
+
// src/side-nav/side-nav/SideNav.tsx
|
|
9
9
|
function d({ children: o, className: d, activeNavItem: f, onChange: p, filterable: m, filterInputPlaceholder: h, ...g }) {
|
|
10
10
|
let [_, v, y] = l(o, [
|
|
11
|
+
{ type: e },
|
|
11
12
|
{ type: n },
|
|
12
|
-
{ type:
|
|
13
|
-
{ type: i }
|
|
13
|
+
{ type: t }
|
|
14
14
|
]), b = u.useRef(f), [x, S] = u.useState(f), [C, w] = u.useState(""), T = (e) => {
|
|
15
15
|
S(e), p && p(e);
|
|
16
|
-
}, E = c(y, (e) => e.type ===
|
|
17
|
-
return f !== b.current && (S(f), b.current = f), /* @__PURE__ */ u.createElement(
|
|
16
|
+
}, E = c(y, (e) => e.type === t ? [{ onSelect: (e) => T(e) }] : []), D = c(v, (e) => e.type === n ? [{ onSelect: (e) => T(e) }] : []);
|
|
17
|
+
return f !== b.current && (S(f), b.current = f), /* @__PURE__ */ u.createElement(a.Provider, { value: {
|
|
18
18
|
filterValue: C,
|
|
19
19
|
activeItem: x
|
|
20
20
|
} }, /* @__PURE__ */ u.createElement("div", {
|
|
21
|
-
className: s(
|
|
21
|
+
className: s(i),
|
|
22
22
|
...g
|
|
23
|
-
}, _, m && /* @__PURE__ */ u.createElement("div", { className: "pkg_sps-woodland_core__family_side-
|
|
23
|
+
}, _, m && /* @__PURE__ */ u.createElement("div", { className: "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70p3" }, /* @__PURE__ */ u.createElement("div", { className: "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70p4" }, /* @__PURE__ */ u.createElement("div", { className: "sps-text-input" }, /* @__PURE__ */ u.createElement("div", { className: "sps-form-control" }, /* @__PURE__ */ u.createElement("i", { className: "sps-text-input__icon sps-icon sps-icon-filter" }), /* @__PURE__ */ u.createElement("input", {
|
|
24
24
|
type: "text",
|
|
25
25
|
className: "sps-text-input__input",
|
|
26
26
|
placeholder: h,
|
|
27
27
|
onChange: (e) => {
|
|
28
28
|
w(e.target.value);
|
|
29
29
|
}
|
|
30
|
-
}))))), D, /* @__PURE__ */ u.createElement("ul", { className:
|
|
30
|
+
}))))), D, /* @__PURE__ */ u.createElement("ul", { className: r }, E)));
|
|
31
31
|
}
|
|
32
32
|
o.set(d, {
|
|
33
33
|
name: "SideNav",
|
|
@@ -41,5 +41,4 @@ o.set(d, {
|
|
|
41
41
|
filterInputPlaceholder: { type: "string" }
|
|
42
42
|
}
|
|
43
43
|
});
|
|
44
|
-
//#endregion
|
|
45
44
|
export { d as SideNav };
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import { c as e } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.21.3/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
|
|
2
1
|
/* empty css */
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
import { c as e } from "../../node_modules/.pnpm/@vanilla-extract_recipes@0.5.7_@vanilla-extract_css@1.21.3/node_modules/@vanilla-extract/recipes/dist/createRuntimeFn-62c9670f.esm.js";
|
|
3
|
+
// src/side-nav/side-nav/SideNav.css.ts
|
|
4
|
+
var t = "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70p0", n = "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70p1", r = "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70p2", i = "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70p3", a = "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70p4", o = "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70p5", s = "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70p6", c = "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70p7", l = "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70p8", u = e({
|
|
5
|
+
defaultClassName: "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70p9",
|
|
6
6
|
variantClassNames: {
|
|
7
7
|
selected: {
|
|
8
|
-
true: "pkg_sps-woodland_core__family_side-
|
|
9
|
-
false: "pkg_sps-woodland_core__family_side-
|
|
8
|
+
true: "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70pa",
|
|
9
|
+
false: "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70pb"
|
|
10
10
|
},
|
|
11
11
|
inFilter: {
|
|
12
|
-
true: "pkg_sps-woodland_core__family_side-
|
|
13
|
-
false: "pkg_sps-woodland_core__family_side-
|
|
12
|
+
true: "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70pc",
|
|
13
|
+
false: "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70pd"
|
|
14
14
|
}
|
|
15
15
|
},
|
|
16
16
|
defaultVariants: {
|
|
@@ -18,6 +18,5 @@ var t = "pkg_sps-woodland_core__family_side-nav__version_8_56_21__hash_1wtt70p0"
|
|
|
18
18
|
inFilter: !0
|
|
19
19
|
},
|
|
20
20
|
compoundVariants: []
|
|
21
|
-
}), d = "pkg_sps-woodland_core__family_side-
|
|
22
|
-
//#endregion
|
|
21
|
+
}), d = "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70pf", f = "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70pg";
|
|
23
22
|
export { c as sideNavBranch, t as sideNavContainer, l as sideNavExpand, d as sideNavExpandIcon, i as sideNavFilterSection, a as sideNavFilterWrapper, n as sideNavHeader, u as sideNavLeaf, f as sideNavLink, o as sideNavSection, s as sideNavSectionTitle, r as sideNavTitle };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { sideNavHeader as e, sideNavTitle as t } from "../side-nav/SideNav.ve.js";
|
|
2
2
|
import { Metadata as n } from "@sps-woodland/core";
|
|
3
3
|
import * as r from "react";
|
|
4
|
-
|
|
4
|
+
// src/side-nav/side-nav-header/SideNavHeader.tsx
|
|
5
5
|
function i({ children: n, className: i, ...a }) {
|
|
6
6
|
return /* @__PURE__ */ r.createElement("div", {
|
|
7
7
|
className: e,
|
|
@@ -12,5 +12,4 @@ n.set(i, {
|
|
|
12
12
|
name: "SideNavHeader",
|
|
13
13
|
props: {}
|
|
14
14
|
});
|
|
15
|
-
//#endregion
|
|
16
15
|
export { i as SideNavHeader };
|
|
@@ -2,7 +2,7 @@ import { sideNavExpand as e, sideNavExpandIcon as t, sideNavLeaf as n, sideNavLi
|
|
|
2
2
|
import { navContext as i } from "../side-nav/navContext.js";
|
|
3
3
|
import { Icon as a, Metadata as o, selectChildren as s } from "@sps-woodland/core";
|
|
4
4
|
import * as c from "react";
|
|
5
|
-
|
|
5
|
+
// src/side-nav/side-nav-item/SideNavItem.tsx
|
|
6
6
|
function l({ children: o, className: u, onSelect: d, as: f, keyId: p, selectableAsParent: m, defaultExpanded: h = !0, expanded: g, onExpandedChange: _, ...v }) {
|
|
7
7
|
let y = f ?? "a", [b, x] = s(o, [{ type: l }]), [S, C] = c.useState(h), [w, T] = c.useState(!0), E = c.useContext(i), D = c.useRef(null), O = g !== void 0, k = E.filterValue.length > 0 ? !0 : g ?? S, A = (e) => {
|
|
8
8
|
O || C(e), _?.(e);
|
|
@@ -66,5 +66,4 @@ o.set(l, {
|
|
|
66
66
|
as: { type: "string" }
|
|
67
67
|
}
|
|
68
68
|
});
|
|
69
|
-
//#endregion
|
|
70
69
|
export { l as SideNavItem };
|
|
@@ -2,17 +2,16 @@ import { sideNavBranch as e, sideNavSection as t } from "../side-nav/SideNav.ve.
|
|
|
2
2
|
import { SideNavItem as n } from "../side-nav-item/SideNavItem.js";
|
|
3
3
|
import { Metadata as r, modChildren as i, selectChildren as a } from "@sps-woodland/core";
|
|
4
4
|
import * as o from "react";
|
|
5
|
-
|
|
5
|
+
// src/side-nav/side-nav-section/SideNavSection.tsx
|
|
6
6
|
function s({ children: r, className: s, title: c, onSelect: l, ...u }) {
|
|
7
7
|
let [d, f] = a(r, [{ type: n }]), p = i(d, (e) => e.type === n ? [{ onSelect: l ? (e) => l(e) : () => {} }] : []);
|
|
8
8
|
return /* @__PURE__ */ o.createElement("div", {
|
|
9
9
|
className: t,
|
|
10
10
|
...u
|
|
11
|
-
}, c && /* @__PURE__ */ o.createElement("div", { className: "pkg_sps-woodland_core__family_side-
|
|
11
|
+
}, c && /* @__PURE__ */ o.createElement("div", { className: "pkg_sps-woodland_core__family_side-nav__version_8_56_22__hash_1wtt70p6" }, c), /* @__PURE__ */ o.createElement("ul", { className: e }, p), f);
|
|
12
12
|
}
|
|
13
13
|
r.set(s, {
|
|
14
14
|
name: "SideNavSection",
|
|
15
15
|
props: { title: { type: "string" } }
|
|
16
16
|
});
|
|
17
|
-
//#endregion
|
|
18
17
|
export { s as SideNavSection };
|