@5ive-souls/controls 0.0.1 → 0.0.3

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.
Files changed (59) hide show
  1. package/dist/5ive-souls-controls-0.0.3.tgz +0 -0
  2. package/dist/Section-Bw_kuHpK.js +754 -0
  3. package/dist/components/ClassNames.js +7 -0
  4. package/dist/components/DynamicForm/Builder/DynamicFormBuilder.js +64 -0
  5. package/dist/components/DynamicForm/Builder/Field/FieldBuilder.js +53 -0
  6. package/dist/components/DynamicForm/Builder/Section/SectionBuilder.js +16 -0
  7. package/dist/components/DynamicForm/Builder/index.js +8 -0
  8. package/dist/components/DynamicForm/DynamicForm.js +197 -0
  9. package/dist/components/DynamicForm/Interfaces/IField.js +0 -0
  10. package/dist/components/DynamicForm/Interfaces/IFieldGroup.js +0 -0
  11. package/dist/components/DynamicForm/Interfaces/IFormMetaData.js +0 -0
  12. package/dist/components/DynamicForm/Interfaces/IFormSection.js +0 -0
  13. package/dist/components/DynamicForm/Interfaces/index.js +0 -0
  14. package/dist/components/DynamicForm/index.js +10 -0
  15. package/dist/components/FiveSoulsProvider/FiveSouls.Types.js +4 -0
  16. package/dist/components/FiveSoulsProvider/FiveSoulsProvider.js +20 -0
  17. package/dist/components/FiveSoulsProvider/deviceContext.js +5 -0
  18. package/dist/components/FiveSoulsProvider/index.js +10 -0
  19. package/dist/components/FiveSoulsProvider/useDevice.js +10 -0
  20. package/dist/components/FlexBox/FlexBox.js +75 -0
  21. package/dist/components/FlexBox/FlexBoxItem/FlexBoxItem.js +15 -0
  22. package/dist/components/FlexBox/FlexBoxItem/index.js +4 -0
  23. package/dist/components/FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js +80 -0
  24. package/dist/components/FlexBox/FlexBoxItemResizer/index.js +4 -0
  25. package/dist/components/FlexBox/FlexBoxUtils.js +13 -0
  26. package/dist/components/FlexBox/ResizeUtils.js +31 -0
  27. package/dist/components/FlexBox/index.js +8 -0
  28. package/dist/components/Grid/Grid.js +97 -0
  29. package/dist/components/Grid/GridCell/GridCell.js +16 -0
  30. package/dist/components/Grid/GridCell/index.js +4 -0
  31. package/dist/components/Grid/GridContext.js +5 -0
  32. package/dist/components/Grid/GridUtils.js +10 -0
  33. package/dist/components/Grid/ResizableGridCell/ResizableGridCell.js +72 -0
  34. package/dist/components/Grid/ResizableGridCell/index.js +4 -0
  35. package/dist/components/Grid/index.js +12 -0
  36. package/dist/components/IComponentProps.js +0 -0
  37. package/dist/components/JumpList/JumpList.js +178 -0
  38. package/dist/components/JumpList/index.js +4 -0
  39. package/dist/components/RichText/RichText.js +32 -0
  40. package/dist/components/RichText/index.js +4 -0
  41. package/dist/components/Section/Section.js +12 -0
  42. package/dist/components/Section/SectionUtils.js +15 -0
  43. package/dist/components/Section/index.js +4 -0
  44. package/dist/components/ThemePicker/ThemePicker.js +92 -0
  45. package/dist/components/ThemePicker/Themes/Cornflower/Cornflower.js +32 -0
  46. package/dist/components/ThemePicker/Themes/Crimson/Crimson.js +32 -0
  47. package/dist/components/ThemePicker/Themes/Forest/Forest.js +32 -0
  48. package/dist/components/ThemePicker/Themes/Royal/Royal.js +32 -0
  49. package/dist/components/ThemePicker/Themes/index.js +18 -0
  50. package/dist/components/ThemePicker/index.js +20 -0
  51. package/dist/components/Wizard/Wizard.js +99 -0
  52. package/dist/components/Wizard/WizardPanel/WizardPanel.js +14 -0
  53. package/dist/components/Wizard/WizardPanel/index.js +4 -0
  54. package/dist/components/Wizard/index.js +6 -0
  55. package/dist/components/index.js +61 -0
  56. package/dist/createFluentIcon-CwLxkjIW.js +503 -0
  57. package/dist/main.d.ts +637 -0
  58. package/dist/main.js +61 -0
  59. package/package.json +75 -64
@@ -0,0 +1,97 @@
1
+ import { jsx as c, Fragment as k } from "react/jsx-runtime";
2
+ import r, { createElement as T } from "react";
3
+ import { makeStyles as _, mergeClasses as d } from "@fluentui/react-components";
4
+ import { ClassNames as A } from "../ClassNames.js";
5
+ import { ResizableGridCell as z } from "./ResizableGridCell/ResizableGridCell.js";
6
+ import { GridContext as U } from "./GridContext.js";
7
+ const E = _({
8
+ grid: {
9
+ display: "grid",
10
+ boxSizing: "border-box"
11
+ },
12
+ inlineGrid: {
13
+ display: "inline-grid",
14
+ boxSizing: "border-box"
15
+ },
16
+ fill: {
17
+ width: "100%",
18
+ height: "100%"
19
+ }
20
+ }), M = (i) => /* @__PURE__ */ c(k, {});
21
+ M.displayName = "RowDefinition";
22
+ const $ = (i) => /* @__PURE__ */ c(k, {});
23
+ $.displayName = "ColumnDefinition";
24
+ const F = (i) => {
25
+ const { children: S, fill: x, inline: N, ref: D, style: P, defaultUnit: p, defaultUnitSize: g, gap: y, id: R, className: j } = i, u = E(), f = r.useMemo(() => [], []), m = r.useMemo(() => [], []);
26
+ let C = "", h = "";
27
+ const a = [], G = r.useCallback((e) => {
28
+ const t = e.size ?? g;
29
+ if (t == null)
30
+ return " auto";
31
+ const s = e.unit ?? p ?? "pixel";
32
+ return ` ${t}${s == "fraction" ? "fr" : "px"}`;
33
+ }, [p, g]), b = r.useCallback((e, t) => {
34
+ const s = e.props;
35
+ return t ? m.push(s) : f.push(s), G(s);
36
+ }, [m, G, f]);
37
+ r.Children.toArray(S).forEach((e, t) => {
38
+ var w;
39
+ switch (e.type.displayName) {
40
+ case "RowDefinition": {
41
+ C += b(e, !1);
42
+ break;
43
+ }
44
+ case "ColumnDefinition": {
45
+ h += b(e, !0);
46
+ break;
47
+ }
48
+ case "ResizableGridCell": {
49
+ const l = e.props;
50
+ a.push(
51
+ /* @__PURE__ */ c(
52
+ z,
53
+ {
54
+ ...l,
55
+ gap: y ?? (l.horizontal ? i.rowGap : i.columnGap)
56
+ },
57
+ t
58
+ )
59
+ );
60
+ break;
61
+ }
62
+ case "Section": {
63
+ const l = e.props;
64
+ (w = l.cellProps) != null && w.resizable ? a.push(
65
+ /* @__PURE__ */ T(
66
+ z,
67
+ {
68
+ ...l.cellProps,
69
+ key: t,
70
+ gap: y ?? (l.cellProps.horizontal ? i.rowGap : i.columnGap)
71
+ },
72
+ e
73
+ )
74
+ ) : a.push(e);
75
+ break;
76
+ }
77
+ default:
78
+ a.push(e);
79
+ break;
80
+ }
81
+ });
82
+ let n = A.Grid;
83
+ x && (n = d(n, u.fill)), N ? n = d(n, u.inlineGrid) : n = d(n, u.grid);
84
+ const o = {
85
+ gridTemplateRows: C,
86
+ gridTemplateColumns: h
87
+ };
88
+ i.gap && (o.gap = i.gap), i.columnGap && (o.columnGap = i.columnGap), i.rowGap && (o.rowGap = i.rowGap), i.padding && (o.padding = i.padding), i.justifyContent && (o.justifyContent = i.justifyContent), i.alignContent && (o.alignContent = i.alignContent);
89
+ const v = Object.assign({}, P, o);
90
+ return /* @__PURE__ */ c(U.Provider, { value: { rows: f, columns: m }, children: /* @__PURE__ */ c("div", { id: R, className: d(n, j), style: v, ref: D, children: a }) });
91
+ };
92
+ F.displayName = "Grid";
93
+ export {
94
+ $ as ColumnDefinition,
95
+ F as Grid,
96
+ M as RowDefinition
97
+ };
@@ -0,0 +1,16 @@
1
+ import { jsx as m } from "react/jsx-runtime";
2
+ import { ClassNames as d } from "../../ClassNames.js";
3
+ import { GridUtils as a } from "../GridUtils.js";
4
+ import { makeStyles as c, mergeClasses as n } from "@fluentui/react-components";
5
+ const y = c({
6
+ root: {
7
+ boxSizing: "border-box"
8
+ }
9
+ }), C = (s) => {
10
+ const { children: e, style: l, className: r, id: o } = s, t = y(), i = a.buildGridCellStyles(s, l);
11
+ return /* @__PURE__ */ m("div", { id: o, className: n(d.GridCell, t.root, r), style: i, children: e });
12
+ };
13
+ C.displayName = "GridCell";
14
+ export {
15
+ C as GridCell
16
+ };
@@ -0,0 +1,4 @@
1
+ import { GridCell as l } from "./GridCell.js";
2
+ export {
3
+ l as GridCell
4
+ };
@@ -0,0 +1,5 @@
1
+ import t from "react";
2
+ const o = t.createContext(void 0);
3
+ export {
4
+ o as GridContext
5
+ };
@@ -0,0 +1,10 @@
1
+ const e = class e {
2
+ };
3
+ e.buildCell = (r, t) => r ? t ? `${r} / span ${t}` : r.toString() : "", e.buildGridCellStyles = (r, t) => {
4
+ const { area: n, column: u, columnSpan: s, row: c, rowSpan: a } = r, l = t ?? {};
5
+ return n ? l.gridArea = n : (l.gridColumn = e.buildCell(u, s), l.gridRow = e.buildCell(c, a)), Object.assign({}, t, l);
6
+ };
7
+ let o = e;
8
+ export {
9
+ o as GridUtils
10
+ };
@@ -0,0 +1,72 @@
1
+ import { jsx as u, jsxs as y } from "react/jsx-runtime";
2
+ import { makeStyles as k, tokens as l, mergeClasses as g } from "@fluentui/react-components";
3
+ import { FlexBox as B } from "../../FlexBox/FlexBox.js";
4
+ import { FlexBoxItem as N } from "../../FlexBox/FlexBoxItem/FlexBoxItem.js";
5
+ import "../../FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
6
+ import { GridCell as M } from "../GridCell/GridCell.js";
7
+ import { ClassNames as H } from "../../ClassNames.js";
8
+ import S, { useRef as P } from "react";
9
+ import { ResizeUtils as z } from "../../FlexBox/ResizeUtils.js";
10
+ import { GridContext as U } from "../GridContext.js";
11
+ const D = k({
12
+ root: {
13
+ backgroundColor: l.colorBrandBackground,
14
+ borderRadius: l.borderRadiusMedium,
15
+ ":hover": {
16
+ backgroundColor: l.colorBrandBackgroundHover
17
+ }
18
+ },
19
+ vertical: {
20
+ cursor: "row-resize",
21
+ height: l.spacingVerticalXS
22
+ },
23
+ horizontal: {
24
+ cursor: "col-resize",
25
+ width: l.spacingHorizontalXS
26
+ }
27
+ }), E = (e) => {
28
+ const { horizontal: t, className: h, gap: x, column: C, row: w, id: G } = e, c = D(), d = P(null), [n, f] = S.useState(), p = S.useContext(U), R = (i) => {
29
+ const r = d.current, a = r.parentElement.parentElement, o = a.parentElement;
30
+ o && o.classList.add("unselectable"), f({
31
+ resizer: r,
32
+ gridCell: a,
33
+ grid: o
34
+ }), r.setPointerCapture(i.pointerId);
35
+ }, v = (i) => {
36
+ if (!n)
37
+ return;
38
+ const { grid: r, gridCell: a } = n, o = t ? C : w, m = z.GetGridTemplate(r, a, t, o) + z.GetMouseDelta(i, t), s = t ? p.columns[o - 1] : p.rows[o - 1];
39
+ console.log(JSON.stringify(s, null, 4)), !(s.max && m > s.max) && (s.min && m < s.min || z.UpdateLayoutGrid(r, t, o, m + "px"));
40
+ }, b = (i) => {
41
+ const r = d.current;
42
+ n && n.grid && n.grid.classList.remove("unselectable"), r.releasePointerCapture(i.pointerId), f(void 0);
43
+ };
44
+ return /* @__PURE__ */ u(
45
+ M,
46
+ {
47
+ id: G,
48
+ column: e.column,
49
+ columnSpan: e.columnSpan,
50
+ row: e.row,
51
+ rowSpan: e.rowSpan,
52
+ className: g(H.GridCellResizer, h),
53
+ children: /* @__PURE__ */ y(B, { horizontal: e.horizontal, fill: !0, childrenGap: x, children: [
54
+ /* @__PURE__ */ u(N, { grow: 1, style: e.style, children: e.children }),
55
+ /* @__PURE__ */ u(
56
+ "div",
57
+ {
58
+ ref: d,
59
+ className: g(c.root, t ? c.horizontal : c.vertical),
60
+ onPointerDown: R,
61
+ onMouseMove: v,
62
+ onPointerUp: b
63
+ }
64
+ )
65
+ ] })
66
+ }
67
+ );
68
+ };
69
+ E.displayName = "ResizableGridCell";
70
+ export {
71
+ E as ResizableGridCell
72
+ };
@@ -0,0 +1,4 @@
1
+ import { ResizableGridCell as r } from "./ResizableGridCell.js";
2
+ export {
3
+ r as ResizableGridCell
4
+ };
@@ -0,0 +1,12 @@
1
+ import { ColumnDefinition as e, Grid as i, RowDefinition as t } from "./Grid.js";
2
+ import { GridCell as l } from "./GridCell/GridCell.js";
3
+ import { ResizableGridCell as m } from "./ResizableGridCell/ResizableGridCell.js";
4
+ import { GridContext as d } from "./GridContext.js";
5
+ export {
6
+ e as ColumnDefinition,
7
+ i as Grid,
8
+ l as GridCell,
9
+ d as GridContext,
10
+ m as ResizableGridCell,
11
+ t as RowDefinition
12
+ };
File without changes
@@ -0,0 +1,178 @@
1
+ import { jsx as o, jsxs as g } from "react/jsx-runtime";
2
+ import { makeStyles as V, tokens as h, mergeClasses as l, Text as w, Button as F, Input as X } from "@fluentui/react-components";
3
+ import i from "react";
4
+ import { FlexBox as v } from "../FlexBox/FlexBox.js";
5
+ import { FlexBoxItem as N } from "../FlexBox/FlexBoxItem/FlexBoxItem.js";
6
+ import "../FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
7
+ import { Grid as Y, ColumnDefinition as K } from "../Grid/Grid.js";
8
+ import "../Grid/GridCell/GridCell.js";
9
+ import "../Grid/ResizableGridCell/ResizableGridCell.js";
10
+ import "../Grid/GridContext.js";
11
+ import { S as z } from "../../Section-Bw_kuHpK.js";
12
+ import { ClassNames as m } from "../ClassNames.js";
13
+ import { c as G } from "../../createFluentIcon-CwLxkjIW.js";
14
+ const Q = /* @__PURE__ */ G("AppsListRegular", "1em", ["M2 3.5C2 2.67 2.67 2 3.5 2h1C5.33 2 6 2.67 6 3.5v1C6 5.33 5.33 6 4.5 6h-1A1.5 1.5 0 0 1 2 4.5v-1ZM3.5 3a.5.5 0 0 0-.5.5v1c0 .28.22.5.5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM2 9.5C2 8.67 2.67 8 3.5 8h1C5.33 8 6 8.67 6 9.5v1c0 .83-.67 1.5-1.5 1.5h-1A1.5 1.5 0 0 1 2 10.5v-1ZM3.5 9a.5.5 0 0 0-.5.5v1c0 .28.22.5.5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM2 15.5c0-.83.67-1.5 1.5-1.5h1c.83 0 1.5.67 1.5 1.5v1c0 .83-.67 1.5-1.5 1.5h-1A1.5 1.5 0 0 1 2 16.5v-1Zm1.5-.5a.5.5 0 0 0-.5.5v1c0 .28.22.5.5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5h-1ZM8 4.5c0-.28.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Zm0 6c0-.28.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Zm0 6c0-.28.22-.5.5-.5h9a.5.5 0 0 1 0 1h-9a.5.5 0 0 1-.5-.5Z"]), U = /* @__PURE__ */ G("FilterRegular", "1em", ["M7.5 13h5a.5.5 0 0 1 .09 1H7.5a.5.5 0 0 1-.09-1h5.09-5Zm-2-4h9a.5.5 0 0 1 .09 1H5.5a.5.5 0 0 1-.09-1h9.09-9Zm-2-4h13a.5.5 0 0 1 .09 1H3.5a.5.5 0 0 1-.09-1H16.5h-13Z"]), a = 36, ee = V({
15
+ root: {
16
+ position: "relative"
17
+ },
18
+ list: {
19
+ padding: "0px",
20
+ margin: "0px",
21
+ boxSizing: "border-box",
22
+ listStyle: "none"
23
+ },
24
+ listItem: {
25
+ height: a + "px",
26
+ maxHeight: a + "px",
27
+ alignContent: "center",
28
+ ":hover": {
29
+ backgroundColor: h.colorBrandBackgroundHover
30
+ }
31
+ },
32
+ listItemIcon: {
33
+ textAlign: "center",
34
+ alignContent: "center"
35
+ },
36
+ listItemContent: {
37
+ paddingLeft: h.spacingHorizontalS
38
+ },
39
+ selectedListItem: {
40
+ backgroundColor: h.colorBrandBackgroundSelected
41
+ },
42
+ capitalize: {
43
+ textTransform: "capitalize"
44
+ },
45
+ baseSize: {
46
+ minWidth: `${a}px`,
47
+ width: `${a}px`,
48
+ height: `${a}px`,
49
+ minHeight: `${a}px`
50
+ },
51
+ headerButton: {
52
+ width: "100%",
53
+ justifyContent: "left",
54
+ height: `${a}px`
55
+ },
56
+ menuRoot: {
57
+ overflowY: "auto",
58
+ overflowX: "hidden",
59
+ height: "100%",
60
+ width: "100%",
61
+ backgroundColor: h.colorNeutralBackground1,
62
+ position: "absolute",
63
+ inset: "0px"
64
+ },
65
+ hidden: {
66
+ display: "none"
67
+ }
68
+ }), R = ["#", "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"], pe = (y) => {
69
+ const { style: B, className: k, items: u, headerProp: c, renderItem: L, renderIcon: M, onSelectionChanged: Z, strings: H } = y, s = ee(), [p, J] = i.useState(), [T, $] = i.useState(-1), [f, A] = i.useState(), [x, O] = i.useState(), E = i.useId(), d = i.useId(), W = i.useCallback(() => {
70
+ const e = window.document.getElementById(E);
71
+ console.log("TESTING: Offset width: " + e.offsetWidth);
72
+ const t = Math.min(~~((e.offsetWidth - 24) / (a + 8)), 4), n = {
73
+ columns: []
74
+ };
75
+ for (let r = 0; r < t; r++)
76
+ n.columns.push(/* @__PURE__ */ o(K, {}, `column-${r}`));
77
+ console.log("TESTING: Columns: " + n.columns.length), A(n);
78
+ }, [d]), _ = i.useCallback((e) => {
79
+ A(void 0);
80
+ const t = window.document.getElementById(d), n = t.querySelector("#header-button-" + e);
81
+ t.scrollTo({ top: n.offsetTop, behavior: "smooth" });
82
+ }, [d]), q = i.useCallback((e, t) => {
83
+ const n = e[c], r = t[c];
84
+ return n.localeCompare(r);
85
+ }, [c]);
86
+ if (i.useEffect(() => {
87
+ if (!u || u.length == 0 || !c)
88
+ return;
89
+ const e = {};
90
+ R.forEach((t) => {
91
+ e[t] = new Array();
92
+ }), u.forEach((t) => {
93
+ const n = t[c];
94
+ if (x && !new RegExp(x, "i").test(n))
95
+ return;
96
+ const r = n.charAt(0).toLowerCase();
97
+ (Object.hasOwn(e, r) ? e[r] : e["#"]).push(t);
98
+ }), J(e);
99
+ }, [c, u, x]), !p)
100
+ return /* @__PURE__ */ o(z, { className: l(m.JumpList, s.root, k), style: B, id: d, children: /* @__PURE__ */ g(v, { fill: !0, justifyContent: "center", alignItems: "center", children: [
101
+ /* @__PURE__ */ o(Q, { fontSize: 48 }),
102
+ /* @__PURE__ */ o(w, { children: H ? H.emptyList : "No items." })
103
+ ] }) });
104
+ const I = [];
105
+ let C = 0;
106
+ Object.keys(p).forEach((e) => {
107
+ const t = p[e];
108
+ t.length != 0 && (I.push(
109
+ /* @__PURE__ */ o("li", { className: m.JumpListHeader, children: /* @__PURE__ */ o(
110
+ F,
111
+ {
112
+ id: "header-button-" + e,
113
+ className: l(s.headerButton, s.capitalize),
114
+ appearance: "subtle",
115
+ onClick: W,
116
+ children: e
117
+ }
118
+ ) }, e)
119
+ ), t.sort(q).forEach((n) => {
120
+ const r = C == T, j = n[c], b = C + 0, D = L ? L(n, r) : /* @__PURE__ */ o(w, { children: j });
121
+ let S = l(m.JumpListItem, s.listItem);
122
+ r && (S = l(S, s.selectedListItem)), I.push(
123
+ /* @__PURE__ */ o(
124
+ "li",
125
+ {
126
+ className: S,
127
+ onClick: () => {
128
+ Z && T != b && (Z(n), $(b));
129
+ },
130
+ children: /* @__PURE__ */ g(v, { horizontal: !0, alignItems: "center", children: [
131
+ M && /* @__PURE__ */ o(N, { className: l(s.baseSize, s.listItemIcon), children: M(n, r) }),
132
+ /* @__PURE__ */ o(N, { grow: 1, className: s.listItemContent, children: D })
133
+ ] })
134
+ },
135
+ b
136
+ )
137
+ ), C++;
138
+ }));
139
+ });
140
+ const P = (e, t) => {
141
+ O(t.value);
142
+ };
143
+ return /* @__PURE__ */ g(v, { className: l(m.JumpList, s.root, k), style: B, id: E, childrenGap: h.spacingVerticalM, children: [
144
+ y.enableFiltering && /* @__PURE__ */ o(N, { children: /* @__PURE__ */ o(
145
+ X,
146
+ {
147
+ type: "search",
148
+ contentAfter: /* @__PURE__ */ o(U, {}),
149
+ placeholder: "Filter",
150
+ style: { width: "100%" },
151
+ onChange: P
152
+ }
153
+ ) }),
154
+ /* @__PURE__ */ o(z, { scrollable: !0, flexBoxItemProps: { grow: 1 }, id: d, children: /* @__PURE__ */ o("ul", { className: s.list, children: I }) }),
155
+ /* @__PURE__ */ o(z, { className: l(m.JumpListMenu, s.menuRoot, !f && s.hidden), scrollable: !0, role: "menu", children: /* @__PURE__ */ g(Y, { gap: h.spacingHorizontalS, justifyContent: "center", alignContent: "center", children: [
156
+ f && f.columns,
157
+ R.map((e) => {
158
+ const t = p[e].length == 0;
159
+ return /* @__PURE__ */ o(
160
+ F,
161
+ {
162
+ appearance: "subtle",
163
+ className: s.baseSize,
164
+ disabled: t,
165
+ onClick: () => {
166
+ _(e);
167
+ },
168
+ children: /* @__PURE__ */ o(w, { weight: "bold", size: 400, className: s.capitalize, children: e })
169
+ },
170
+ e
171
+ );
172
+ })
173
+ ] }) })
174
+ ] });
175
+ };
176
+ export {
177
+ pe as JumpList
178
+ };
@@ -0,0 +1,4 @@
1
+ import { JumpList as p } from "./JumpList.js";
2
+ export {
3
+ p as JumpList
4
+ };
@@ -0,0 +1,32 @@
1
+ import { jsx as s } from "react/jsx-runtime";
2
+ import { tokens as o, mergeClasses as f, Text as h } from "@fluentui/react-components";
3
+ import r from "react";
4
+ import { FlexBox as g } from "../FlexBox/FlexBox.js";
5
+ import "../FlexBox/FlexBoxItem/FlexBoxItem.js";
6
+ import "../FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
7
+ import { ClassNames as x } from "../ClassNames.js";
8
+ const u = [`
9
+ `, "\\n"], C = (e) => {
10
+ const { text: n, ref: c, id: l } = e, [m, a] = r.useState([]);
11
+ return r.useEffect(() => {
12
+ let t = [];
13
+ u.forEach((i) => {
14
+ t.length <= 1 && (t = n.split(i));
15
+ }), a(t);
16
+ }, [n]), /* @__PURE__ */ s(g, { id: l, className: f(x.RichText, e.className), childrenGap: o.spacingVerticalM, ref: c, children: m.map((t, i) => /* @__PURE__ */ s(
17
+ h,
18
+ {
19
+ align: e.align,
20
+ block: e.block,
21
+ font: e.font,
22
+ italic: e.italic,
23
+ size: e.size,
24
+ strikethrough: e.strikethrough,
25
+ children: t
26
+ },
27
+ "segment-" + i
28
+ )) });
29
+ };
30
+ export {
31
+ C as RichText
32
+ };
@@ -0,0 +1,4 @@
1
+ import { RichText as r } from "./RichText.js";
2
+ export {
3
+ r as RichText
4
+ };
@@ -0,0 +1,12 @@
1
+ import "react/jsx-runtime";
2
+ import "@fluentui/react-components";
3
+ import "react";
4
+ import "../FlexBox/FlexBox.js";
5
+ import "../FlexBox/FlexBoxItem/FlexBoxItem.js";
6
+ import "../FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
7
+ import "../ClassNames.js";
8
+ import "./SectionUtils.js";
9
+ import { S as f } from "../../Section-Bw_kuHpK.js";
10
+ export {
11
+ f as Section
12
+ };
@@ -0,0 +1,15 @@
1
+ import { tokens as s } from "@fluentui/react-components";
2
+ import { GridUtils as d } from "../Grid/GridUtils.js";
3
+ import { FlexBoxUtils as a } from "../FlexBox/FlexBoxUtils.js";
4
+ const l = class l {
5
+ };
6
+ l.buildSectionStyles = (r) => {
7
+ const { flexBoxItemProps: e, cellProps: t, scrollable: c } = r, o = {
8
+ scrollbarColor: s.colorBrandForeground1 + " " + s.colorNeutralBackground2
9
+ };
10
+ return c ? o.overflow = "auto" : o.overflow = "hidden", t && d.buildGridCellStyles(t, o), e && a.buildFlexBoxItemStyles(e, o), Object.assign({}, r.style, o);
11
+ };
12
+ let i = l;
13
+ export {
14
+ i as SectionUtils
15
+ };
@@ -0,0 +1,4 @@
1
+ import { S as r } from "../../Section-Bw_kuHpK.js";
2
+ export {
3
+ r as Section
4
+ };
@@ -0,0 +1,92 @@
1
+ import { jsxs as d, jsx as r } from "react/jsx-runtime";
2
+ import { makeStyles as M, tokens as w, mergeClasses as y, Button as D, Divider as u, SwatchPicker as R, ColorSwatch as c } from "@fluentui/react-components";
3
+ import n, { useEffect as f } from "react";
4
+ import { FlexBox as x } from "../FlexBox/FlexBox.js";
5
+ import "../FlexBox/FlexBoxItem/FlexBoxItem.js";
6
+ import "../FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
7
+ import { cornflowerDark as F, cornflowerLight as L } from "./Themes/Cornflower/Cornflower.js";
8
+ import { crimsonDark as N, crimsonLight as T } from "./Themes/Crimson/Crimson.js";
9
+ import { forestDark as z, forestLight as A } from "./Themes/Forest/Forest.js";
10
+ import { royalDark as E, royalLight as P } from "./Themes/Royal/Royal.js";
11
+ import { ClassNames as W } from "../ClassNames.js";
12
+ import { c as h } from "../../createFluentIcon-CwLxkjIW.js";
13
+ const H = /* @__PURE__ */ h("WeatherMoonRegular", "1em", ["M15.5 13.5A6.98 6.98 0 0 1 4 14.39c2.83-1.09 4.56-2.42 5.6-4.4 1.04-2 1.33-4.16.75-6.9A6.98 6.98 0 0 1 15.5 13.5ZM5.45 16.92A7.98 7.98 0 1 0 9.88 2.04a.6.6 0 0 0-.61.73c.69 2.82.43 4.88-.55 6.76-.94 1.78-2.55 3.03-5.55 4.1a.6.6 0 0 0-.3.9 7.95 7.95 0 0 0 2.59 2.39Z"]), V = /* @__PURE__ */ h("WeatherSunnyRegular", "1em", ["M10 2c.28 0 .5.22.5.5v1a.5.5 0 0 1-1 0v-1c0-.28.22-.5.5-.5Zm0 12a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm0-1a3 3 0 1 1 0-6 3 3 0 0 1 0 6Zm7.5-2.5a.5.5 0 0 0 0-1h-1a.5.5 0 0 0 0 1h1ZM10 16c.28 0 .5.22.5.5v1a.5.5 0 0 1-1 0v-1c0-.28.22-.5.5-.5Zm-6.5-5.5a.5.5 0 0 0 0-1H2.46a.5.5 0 0 0 0 1H3.5Zm.65-6.35c.2-.2.5-.2.7 0l1 1a.5.5 0 1 1-.7.7l-1-1a.5.5 0 0 1 0-.7Zm.7 11.7a.5.5 0 0 1-.7-.7l1-1a.5.5 0 0 1 .7.7l-1 1Zm11-11.7a.5.5 0 0 0-.7 0l-1 1a.5.5 0 0 0 .7.7l1-1a.5.5 0 0 0 0-.7Zm-.7 11.7a.5.5 0 0 0 .7-.7l-1-1a.5.5 0 0 0-.7.7l1 1Z"]), _ = M({
14
+ divider: {
15
+ flexGrow: 0
16
+ }
17
+ }), ee = (t) => {
18
+ const { themeSelected: o, defaultTheme: i, darkMode: k, className: g, ref: p, strings: e, id: v } = t, C = _(), [l, S] = n.useState(i), [a, Z] = n.useState(k), s = n.useCallback(() => {
19
+ switch (l) {
20
+ case "Crimson":
21
+ o(a ? N : T);
22
+ break;
23
+ case "Forest":
24
+ o(a ? z : A);
25
+ break;
26
+ case "Cornflower":
27
+ o(a ? F : L);
28
+ break;
29
+ case "Royal":
30
+ o(a ? E : P);
31
+ break;
32
+ }
33
+ }, [a, l, o]);
34
+ f(() => {
35
+ i && s();
36
+ }, [i, s]), f(() => {
37
+ o && s();
38
+ }, [l, a, o, s]);
39
+ const m = {
40
+ className: C.divider,
41
+ vertical: !0,
42
+ appearance: "brand"
43
+ };
44
+ return /* @__PURE__ */ d(
45
+ x,
46
+ {
47
+ id: v,
48
+ className: y(W.ThemePicker, g),
49
+ horizontal: !0,
50
+ alignItems: "center",
51
+ childrenGap: w.spacingHorizontalSNudge,
52
+ ref: p,
53
+ children: [
54
+ /* @__PURE__ */ r(
55
+ D,
56
+ {
57
+ icon: a ? /* @__PURE__ */ r(V, {}) : /* @__PURE__ */ r(H, {}),
58
+ title: a ? e ? e.enableLightMode : "Enable light mode." : e ? e.enableDarkMode : "Enable dark mode.",
59
+ appearance: "subtle",
60
+ onClick: () => {
61
+ Z(!a);
62
+ }
63
+ }
64
+ ),
65
+ /* @__PURE__ */ r(u, { ...m }),
66
+ /* @__PURE__ */ d(
67
+ R,
68
+ {
69
+ selectedValue: l,
70
+ defaultSelectedValue: t.defaultTheme,
71
+ spacing: t.spacing,
72
+ size: t.size,
73
+ shape: t.shape,
74
+ onSelectionChange: (j, b) => {
75
+ S(b.selectedValue);
76
+ },
77
+ children: [
78
+ /* @__PURE__ */ r(c, { color: "#6495ED", value: "Cornflower", title: e ? e.cornflower : "Cornflower" }),
79
+ /* @__PURE__ */ r(c, { color: "#990000", value: "Crimson", title: e ? e.crimson : "Crimson" }),
80
+ /* @__PURE__ */ r(c, { color: "#014421", value: "Forest", title: e ? e.forest : "Forest" }),
81
+ /* @__PURE__ */ r(c, { color: "#7851A9", value: "Royal", title: e ? e.royal : "Royal" })
82
+ ]
83
+ }
84
+ ),
85
+ /* @__PURE__ */ r(u, { ...m })
86
+ ]
87
+ }
88
+ );
89
+ };
90
+ export {
91
+ ee as ThemePicker
92
+ };
@@ -0,0 +1,32 @@
1
+ import { createLightTheme as e, createDarkTheme as c } from "@fluentui/react-components";
2
+ const r = {
3
+ 10: "#020304",
4
+ 20: "#14171F",
5
+ 30: "#1E2535",
6
+ 40: "#263048",
7
+ 50: "#2E3D5C",
8
+ 60: "#364971",
9
+ 70: "#3E5686",
10
+ 80: "#46639C",
11
+ 90: "#4E71B2",
12
+ 100: "#577FC9",
13
+ 110: "#5F8DE0",
14
+ 120: "#709CEF",
15
+ 130: "#89AAF2",
16
+ 140: "#A0B8F4",
17
+ 150: "#B5C7F7",
18
+ 160: "#CAD6FA"
19
+ };
20
+ r.primary = "#6495ED";
21
+ const F = {
22
+ ...e(r)
23
+ }, o = {
24
+ ...c(r)
25
+ };
26
+ o.colorBrandForeground1 = r[110];
27
+ o.colorBrandForeground2 = r[120];
28
+ export {
29
+ r as cornflower,
30
+ o as cornflowerDark,
31
+ F as cornflowerLight
32
+ };
@@ -0,0 +1,32 @@
1
+ import { createLightTheme as e, createDarkTheme as c } from "@fluentui/react-components";
2
+ const r = {
3
+ 10: "#070100",
4
+ 20: "#2A0F01",
5
+ 30: "#481102",
6
+ 40: "#611102",
7
+ 50: "#7A0D02",
8
+ 60: "#950200",
9
+ 70: "#A32311",
10
+ 80: "#AE3A24",
11
+ 90: "#B94F36",
12
+ 100: "#C36149",
13
+ 110: "#CC745D",
14
+ 120: "#D58671",
15
+ 130: "#DD9885",
16
+ 140: "#E5AA9A",
17
+ 150: "#ECBDAF",
18
+ 160: "#F2CFC5"
19
+ };
20
+ r.primary = "#990000";
21
+ const t = {
22
+ ...e(r)
23
+ }, o = {
24
+ ...c(r)
25
+ };
26
+ o.colorBrandForeground1 = r[110];
27
+ o.colorBrandForeground2 = r[120];
28
+ export {
29
+ r as crimson,
30
+ o as crimsonDark,
31
+ t as crimsonLight
32
+ };