@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,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-Bw_kuHpK.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
+ };
@@ -0,0 +1,14 @@
1
+ import { jsx as l } from "react/jsx-runtime";
2
+ import { makeStyles as o, tokens as s, mergeClasses as m } from "@fluentui/react-components";
3
+ import { ClassNames as c } from "../../ClassNames.js";
4
+ const d = o({
5
+ wizardPanel: {
6
+ padding: s.spacingVerticalS + " " + s.spacingHorizontalS
7
+ }
8
+ }), g = (a) => {
9
+ const { children: e, className: r, ref: i, id: n } = a, t = d();
10
+ return /* @__PURE__ */ l("div", { id: n, className: m(c.WizardPanel, t.wizardPanel, r), ref: i, children: e });
11
+ };
12
+ export {
13
+ g as WizardPanel
14
+ };
@@ -0,0 +1,4 @@
1
+ import { WizardPanel as e } from "./WizardPanel.js";
2
+ export {
3
+ e as WizardPanel
4
+ };
@@ -0,0 +1,6 @@
1
+ import { Wizard as a } from "./Wizard.js";
2
+ import { WizardPanel as d } from "./WizardPanel/WizardPanel.js";
3
+ export {
4
+ a as Wizard,
5
+ d as WizardPanel
6
+ };
@@ -0,0 +1,61 @@
1
+ import { DynamicForm as t } from "./DynamicForm/DynamicForm.js";
2
+ import { DynamicFormBuilder as m } from "./DynamicForm/Builder/DynamicFormBuilder.js";
3
+ import { FieldBuilder as x } from "./DynamicForm/Builder/Field/FieldBuilder.js";
4
+ import { SectionBuilder as l } from "./DynamicForm/Builder/Section/SectionBuilder.js";
5
+ import { Device as c } from "./FiveSoulsProvider/FiveSouls.Types.js";
6
+ import { FiveSoulsProvider as s } from "./FiveSoulsProvider/FiveSoulsProvider.js";
7
+ import { deviceContext as D } from "./FiveSoulsProvider/deviceContext.js";
8
+ import { useDevice as F } from "./FiveSoulsProvider/useDevice.js";
9
+ import { FlexBox as B } from "./FlexBox/FlexBox.js";
10
+ import { FlexBoxItem as v } from "./FlexBox/FlexBoxItem/FlexBoxItem.js";
11
+ import { FlexBoxItemResizer as L } from "./FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
12
+ import { ColumnDefinition as w, Grid as z, RowDefinition as C } from "./Grid/Grid.js";
13
+ import { GridCell as S } from "./Grid/GridCell/GridCell.js";
14
+ import { ResizableGridCell as P } from "./Grid/ResizableGridCell/ResizableGridCell.js";
15
+ import "./Grid/GridContext.js";
16
+ import { RichText as T } from "./RichText/RichText.js";
17
+ import { S as b } from "../Section-Bw_kuHpK.js";
18
+ import { ThemePicker as j } from "./ThemePicker/ThemePicker.js";
19
+ import { cornflower as A, cornflowerDark as E, cornflowerLight as H } from "./ThemePicker/Themes/Cornflower/Cornflower.js";
20
+ import { crimson as M, crimsonDark as N, crimsonLight as O } from "./ThemePicker/Themes/Crimson/Crimson.js";
21
+ import { forest as U, forestDark as V, forestLight as X } from "./ThemePicker/Themes/Forest/Forest.js";
22
+ import { royal as Z, royalDark as _, royalLight as $ } from "./ThemePicker/Themes/Royal/Royal.js";
23
+ import { Wizard as or } from "./Wizard/Wizard.js";
24
+ import { WizardPanel as tr } from "./Wizard/WizardPanel/WizardPanel.js";
25
+ import { JumpList as mr } from "./JumpList/JumpList.js";
26
+ export {
27
+ w as ColumnDefinition,
28
+ c as Device,
29
+ t as DynamicForm,
30
+ m as DynamicFormBuilder,
31
+ x as FieldBuilder,
32
+ s as FiveSoulsProvider,
33
+ B as FlexBox,
34
+ v as FlexBoxItem,
35
+ L as FlexBoxItemResizer,
36
+ z as Grid,
37
+ S as GridCell,
38
+ mr as JumpList,
39
+ P as ResizableGridCell,
40
+ T as RichText,
41
+ C as RowDefinition,
42
+ b as Section,
43
+ l as SectionBuilder,
44
+ j as ThemePicker,
45
+ or as Wizard,
46
+ tr as WizardPanel,
47
+ A as cornflower,
48
+ E as cornflowerDark,
49
+ H as cornflowerLight,
50
+ M as crimson,
51
+ N as crimsonDark,
52
+ O as crimsonLight,
53
+ D as deviceContext,
54
+ U as forest,
55
+ V as forestDark,
56
+ X as forestLight,
57
+ Z as royal,
58
+ _ as royalDark,
59
+ $ as royalLight,
60
+ F as useDevice
61
+ };