@5ive-souls/controls 0.0.1 → 0.0.2

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 (57) hide show
  1. package/dist/5ive-souls-controls-0.0.2.tgz +0 -0
  2. package/dist/Section-Br38kDAa.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/RichText/RichText.js +32 -0
  38. package/dist/components/RichText/index.js +4 -0
  39. package/dist/components/Section/Section.js +12 -0
  40. package/dist/components/Section/SectionUtils.js +15 -0
  41. package/dist/components/Section/index.js +4 -0
  42. package/dist/components/ThemePicker/ThemePicker.js +92 -0
  43. package/dist/components/ThemePicker/Themes/Cornflower/Cornflower.js +32 -0
  44. package/dist/components/ThemePicker/Themes/Crimson/Crimson.js +32 -0
  45. package/dist/components/ThemePicker/Themes/Forest/Forest.js +32 -0
  46. package/dist/components/ThemePicker/Themes/Royal/Royal.js +32 -0
  47. package/dist/components/ThemePicker/Themes/index.js +18 -0
  48. package/dist/components/ThemePicker/index.js +20 -0
  49. package/dist/components/Wizard/Wizard.js +99 -0
  50. package/dist/components/Wizard/WizardPanel/WizardPanel.js +14 -0
  51. package/dist/components/Wizard/WizardPanel/index.js +4 -0
  52. package/dist/components/Wizard/index.js +6 -0
  53. package/dist/components/index.js +59 -0
  54. package/dist/createFluentIcon-CwLxkjIW.js +503 -0
  55. package/dist/main.d.ts +588 -0
  56. package/dist/main.js +59 -0
  57. package/package.json +75 -64
@@ -0,0 +1,97 @@
1
+ import { jsx as c, Fragment as k } from "react/jsx-runtime";
2
+ import a, { createElement as v } from "react";
3
+ import { makeStyles as T, mergeClasses as m } from "@fluentui/react-components";
4
+ import { ClassNames as _ } from "../ClassNames.js";
5
+ import { ResizableGridCell as z } from "./ResizableGridCell/ResizableGridCell.js";
6
+ import { GridContext as A } from "./GridContext.js";
7
+ const U = T({
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
+ }), E = (i) => /* @__PURE__ */ c(k, {});
21
+ E.displayName = "RowDefinition";
22
+ const M = (i) => /* @__PURE__ */ c(k, {});
23
+ M.displayName = "ColumnDefinition";
24
+ const $ = (i) => {
25
+ const { children: S, fill: x, inline: D, ref: P, style: R, defaultUnit: p, defaultUnitSize: g, gap: y, id: N } = i, d = U();
26
+ let n = _.Grid;
27
+ const f = a.useMemo(() => [], []), u = a.useMemo(() => [], []);
28
+ let C = "", h = "";
29
+ const r = [], G = a.useCallback((e) => {
30
+ const t = e.size ?? g;
31
+ if (t == null)
32
+ return " auto";
33
+ const s = e.unit ?? p ?? "pixel";
34
+ return ` ${t}${s == "fraction" ? "fr" : "px"}`;
35
+ }, [p, g]), b = a.useCallback((e, t) => {
36
+ const s = e.props;
37
+ return t ? u.push(s) : f.push(s), G(s);
38
+ }, [u, G, f]);
39
+ a.Children.toArray(S).forEach((e, t) => {
40
+ var w;
41
+ switch (e.type.displayName) {
42
+ case "RowDefinition": {
43
+ C += b(e, !1);
44
+ break;
45
+ }
46
+ case "ColumnDefinition": {
47
+ h += b(e, !0);
48
+ break;
49
+ }
50
+ case "ResizableGridCell": {
51
+ const l = e.props;
52
+ r.push(
53
+ /* @__PURE__ */ c(
54
+ z,
55
+ {
56
+ ...l,
57
+ gap: y ?? (l.horizontal ? i.rowGap : i.columnGap)
58
+ },
59
+ t
60
+ )
61
+ );
62
+ break;
63
+ }
64
+ case "Section": {
65
+ const l = e.props;
66
+ (w = l.cellProps) != null && w.resizable ? r.push(
67
+ /* @__PURE__ */ v(
68
+ z,
69
+ {
70
+ ...l.cellProps,
71
+ key: t,
72
+ gap: y ?? (l.cellProps.horizontal ? i.rowGap : i.columnGap)
73
+ },
74
+ e
75
+ )
76
+ ) : r.push(e);
77
+ break;
78
+ }
79
+ default:
80
+ r.push(e);
81
+ break;
82
+ }
83
+ }), x && (n = m(n, d.fill)), D ? n = m(n, d.inlineGrid) : n = m(n, d.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 j = Object.assign({}, R, o);
90
+ return /* @__PURE__ */ c(A.Provider, { value: { rows: f, columns: u }, children: /* @__PURE__ */ c("div", { id: N, className: n, style: j, ref: P, children: r }) });
91
+ };
92
+ $.displayName = "Grid";
93
+ export {
94
+ M as ColumnDefinition,
95
+ $ as Grid,
96
+ E 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,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-Br38kDAa.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 a } from "../Grid/GridUtils.js";
3
+ import { FlexBoxUtils as d } from "../FlexBox/FlexBoxUtils.js";
4
+ const r = class r {
5
+ };
6
+ r.buildSectionStyles = (l) => {
7
+ const { flexBoxItemProps: e, cellProps: t, scrollable: c } = l, o = {
8
+ scrollbarColor: s.colorBrandForeground1 + " " + s.colorNeutralBackground2
9
+ };
10
+ return c && (o.overflow = "auto"), t && a.buildGridCellStyles(t, o), e && d.buildFlexBoxItemStyles(e, o), Object.assign({}, l.style, o);
11
+ };
12
+ let i = r;
13
+ export {
14
+ i as SectionUtils
15
+ };
@@ -0,0 +1,4 @@
1
+ import { S as r } from "../../Section-Br38kDAa.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
+ };
@@ -0,0 +1,32 @@
1
+ import { createLightTheme as e, createDarkTheme as t } from "@fluentui/react-components";
2
+ const r = {
3
+ 10: "#010402",
4
+ 20: "#0B1D10",
5
+ 30: "#0A3019",
6
+ 40: "#043E1F",
7
+ 50: "#114B29",
8
+ 60: "#265837",
9
+ 70: "#376546",
10
+ 80: "#487254",
11
+ 90: "#597F64",
12
+ 100: "#6A8C73",
13
+ 110: "#7C9983",
14
+ 120: "#8DA794",
15
+ 130: "#9FB5A4",
16
+ 140: "#B1C3B5",
17
+ 150: "#C3D1C6",
18
+ 160: "#D6DFD8"
19
+ };
20
+ r.primary = "#014421";
21
+ const a = {
22
+ ...e(r)
23
+ }, o = {
24
+ ...t(r)
25
+ };
26
+ o.colorBrandForeground1 = r[110];
27
+ o.colorBrandForeground2 = r[120];
28
+ export {
29
+ r as forest,
30
+ o as forestDark,
31
+ a as forestLight
32
+ };
@@ -0,0 +1,32 @@
1
+ import { createLightTheme as e, createDarkTheme as a } from "@fluentui/react-components";
2
+ const r = {
3
+ 10: "#030205",
4
+ 20: "#1A1421",
5
+ 30: "#2B1F39",
6
+ 40: "#39294D",
7
+ 50: "#483263",
8
+ 60: "#573C79",
9
+ 70: "#674690",
10
+ 80: "#7750A8",
11
+ 90: "#8460B1",
12
+ 100: "#916FB9",
13
+ 110: "#9E7FC1",
14
+ 120: "#AB8FCA",
15
+ 130: "#B89FD2",
16
+ 140: "#C4B0DA",
17
+ 150: "#D1C1E2",
18
+ 160: "#DED1EA"
19
+ };
20
+ r.primary = "#7851A9";
21
+ const o = {
22
+ ...e(r)
23
+ }, B = {
24
+ ...a(r)
25
+ };
26
+ o.colorBrandForeground1 = r[110];
27
+ o.colorBrandForeground2 = r[120];
28
+ export {
29
+ r as royal,
30
+ B as royalDark,
31
+ o as royalLight
32
+ };
@@ -0,0 +1,18 @@
1
+ import { cornflower as t, cornflowerDark as e, cornflowerLight as f } from "./Cornflower/Cornflower.js";
2
+ import { crimson as i, crimsonDark as m, crimsonLight as c } from "./Crimson/Crimson.js";
3
+ import { forest as n, forestDark as s, forestLight as g } from "./Forest/Forest.js";
4
+ import { royal as k, royalDark as p, royalLight as x } from "./Royal/Royal.js";
5
+ export {
6
+ t as cornflower,
7
+ e as cornflowerDark,
8
+ f as cornflowerLight,
9
+ i as crimson,
10
+ m as crimsonDark,
11
+ c as crimsonLight,
12
+ n as forest,
13
+ s as forestDark,
14
+ g as forestLight,
15
+ k as royal,
16
+ p as royalDark,
17
+ x as royalLight
18
+ };
@@ -0,0 +1,20 @@
1
+ import { ThemePicker as e } from "./ThemePicker.js";
2
+ import { cornflower as f, cornflowerDark as m, cornflowerLight as i } from "./Themes/Cornflower/Cornflower.js";
3
+ import { crimson as c, crimsonDark as l, crimsonLight as n } from "./Themes/Crimson/Crimson.js";
4
+ import { forest as h, forestDark as k, forestLight as p } from "./Themes/Forest/Forest.js";
5
+ import { royal as g, royalDark as D, royalLight as L } from "./Themes/Royal/Royal.js";
6
+ export {
7
+ e as ThemePicker,
8
+ f as cornflower,
9
+ m as cornflowerDark,
10
+ i as cornflowerLight,
11
+ c as crimson,
12
+ l as crimsonDark,
13
+ n as crimsonLight,
14
+ h as forest,
15
+ k as forestDark,
16
+ p as forestLight,
17
+ g as royal,
18
+ D as royalDark,
19
+ L as royalLight
20
+ };
@@ -0,0 +1,99 @@
1
+ import { jsx as e, jsxs as d } from "react/jsx-runtime";
2
+ import { makeStyles as A, tokens as h, BreadcrumbItem as E, BreadcrumbButton as R, mergeClasses as V, Breadcrumb as _, Divider as p, Carousel as j, CarouselViewport as D, CarouselSlider as W, CarouselCard as G, Button as u, BreadcrumbDivider as L } from "@fluentui/react-components";
3
+ import C from "react";
4
+ import { ClassNames as q } from "../ClassNames.js";
5
+ import { FlexBox as f } from "../FlexBox/FlexBox.js";
6
+ import { FlexBoxItem as m } from "../FlexBox/FlexBoxItem/FlexBoxItem.js";
7
+ import "../FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
8
+ import { S as H, C as J, a as K, b as M } from "../../Section-Br38kDAa.js";
9
+ const O = A({
10
+ root: {
11
+ height: "100%",
12
+ width: "100%",
13
+ boxSizing: "border-box"
14
+ },
15
+ currentBreadCrumb: {
16
+ color: h.colorBrandForeground1
17
+ }
18
+ }), te = (x) => {
19
+ const { children: g, onNavigatePanel: o, onSubmit: v, readonly: B, className: S, ref: k, asForm: N, strings: t, id: y } = x, s = O(), c = C.Children.toArray(g), [i, l] = C.useState(0), I = (r) => {
20
+ o && !o(i, r) || l(r);
21
+ }, a = [];
22
+ c.forEach((r, n) => {
23
+ const z = r.props;
24
+ n > 0 && a.push(/* @__PURE__ */ e(L, {}, "Breadcrumb-divider-" + n)), a.push(/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
25
+ R,
26
+ {
27
+ type: "button",
28
+ onClick: () => {
29
+ I(n);
30
+ },
31
+ current: i === n,
32
+ className: i === n ? s.currentBreadCrumb : "",
33
+ children: z.title
34
+ }
35
+ ) }, "Breadcrumb-" + n));
36
+ });
37
+ const P = i === 0, F = () => {
38
+ const r = i - 1;
39
+ o && !o(i, r) || l(r);
40
+ }, b = i === c.length - 1, w = () => {
41
+ const r = i + 1;
42
+ o && !o(i, r) || l(r);
43
+ };
44
+ return /* @__PURE__ */ e("div", { id: y, className: V(q.Wizard, s.root, S), ref: k, children: /* @__PURE__ */ e(H, { className: s.root, children: /* @__PURE__ */ d(f, { fill: !0, children: [
45
+ c.length > 1 && /* @__PURE__ */ d(m, { children: [
46
+ /* @__PURE__ */ e(_, { size: "large", children: a }),
47
+ /* @__PURE__ */ e(p, {})
48
+ ] }),
49
+ /* @__PURE__ */ e(m, { grow: 1, children: /* @__PURE__ */ e(
50
+ j,
51
+ {
52
+ motion: "slide",
53
+ activeIndex: i,
54
+ whitespace: !0,
55
+ align: "center",
56
+ onActiveIndexChange: (r, n) => l(n.index),
57
+ children: /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(W, { children: c.map((r, n) => /* @__PURE__ */ e(G, { children: r }, n)) }) })
58
+ }
59
+ ) }),
60
+ /* @__PURE__ */ e(m, { children: /* @__PURE__ */ d(f, { horizontal: !0, childrenGap: h.spacingVerticalS, itemProps: { padding: h.spacingVerticalS }, children: [
61
+ /* @__PURE__ */ e(p, {}),
62
+ c.length > 1 && /* @__PURE__ */ e(
63
+ u,
64
+ {
65
+ "aria-label": t ? t.previous : "Previous",
66
+ icon: /* @__PURE__ */ e(J, {}),
67
+ onClick: F,
68
+ disabled: P,
69
+ children: t ? t.previous : "Previous"
70
+ }
71
+ ),
72
+ !b && /* @__PURE__ */ e(
73
+ u,
74
+ {
75
+ "aria-label": t ? t.next : "Next",
76
+ icon: /* @__PURE__ */ e(K, {}),
77
+ iconPosition: "after",
78
+ onClick: w,
79
+ children: t ? t.next : "Next"
80
+ }
81
+ ),
82
+ b && /* @__PURE__ */ e(
83
+ u,
84
+ {
85
+ "aria-label": t ? t.submit : "Submit",
86
+ type: N ? "submit" : "button",
87
+ disabled: B,
88
+ icon: /* @__PURE__ */ e(M, {}),
89
+ iconPosition: "after",
90
+ onClick: v,
91
+ children: t ? t.submit : "Submit"
92
+ }
93
+ )
94
+ ] }) })
95
+ ] }) }) });
96
+ };
97
+ export {
98
+ te as Wizard
99
+ };