@5ive-souls/controls 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (35) hide show
  1. package/dist/5ive-souls-controls-0.0.4.tgz +0 -0
  2. package/dist/Utilities-C0PUcYTL.js +157 -0
  3. package/dist/chunk-3-CMb_cR4A.js +11 -0
  4. package/dist/components/ClassNames.js +1 -1
  5. package/dist/components/EventCalender/Context/EventCalenderContext.js +5 -0
  6. package/dist/components/EventCalender/Context/EventCalenderProvider.js +34 -0
  7. package/dist/components/EventCalender/Context/EventProviderProps.js +0 -0
  8. package/dist/components/EventCalender/Context/index.js +6 -0
  9. package/dist/components/EventCalender/Day.js +12 -0
  10. package/dist/components/EventCalender/EventCalender.js +8 -0
  11. package/dist/components/EventCalender/EventList.js +12 -0
  12. package/dist/components/EventCalender/Month.js +48 -0
  13. package/dist/components/EventCalender/MonthPicker.js +65 -0
  14. package/dist/components/EventCalender/Utilities.js +8 -0
  15. package/dist/components/EventCalender/Week.js +10 -0
  16. package/dist/components/EventCalender/WeekdayLabel.js +32 -0
  17. package/dist/components/EventCalender/YearPicker.js +21 -0
  18. package/dist/components/EventCalender/index.js +4 -0
  19. package/dist/components/EventCalender/interfaces/CalenderItemProps.js +0 -0
  20. package/dist/components/EventCalender/interfaces/Event.js +0 -0
  21. package/dist/components/EventCalender/interfaces/EventCalenderProps.js +0 -0
  22. package/dist/components/EventCalender/interfaces/EventCalenderStrings.js +0 -0
  23. package/dist/components/EventCalender/interfaces/index.js +0 -0
  24. package/dist/components/FlexBox/FlexBoxItem/FlexBoxItem.js +3 -3
  25. package/dist/components/JumpList/JumpList.js +1 -1
  26. package/dist/components/Section/Section.js +750 -9
  27. package/dist/components/Section/SectionUtils.js +10 -7
  28. package/dist/components/Section/index.js +1 -1
  29. package/dist/components/Wizard/Wizard.js +16 -15
  30. package/dist/components/index.js +7 -7
  31. package/dist/main.d.ts +4 -0
  32. package/dist/main.js +7 -7
  33. package/package.json +1 -1
  34. package/dist/5ive-souls-controls-0.0.3.tgz +0 -0
  35. package/dist/Section-Bw_kuHpK.js +0 -754
@@ -1,15 +1,18 @@
1
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 {
2
+ import { GridUtils as c } from "../Grid/GridUtils.js";
3
+ import { FlexBoxUtils as n } from "../FlexBox/FlexBoxUtils.js";
4
+ const r = class r {
5
5
  };
6
- l.buildSectionStyles = (r) => {
7
- const { flexBoxItemProps: e, cellProps: t, scrollable: c } = r, o = {
6
+ r.buildSectionStyles = (e) => {
7
+ const { flexBoxItemProps: t, cellProps: o } = e, l = {};
8
+ return o && c.buildGridCellStyles(o, l), t && n.buildFlexBoxItemStyles(t, l), Object.assign({}, e.style, l);
9
+ }, r.buildSectionContentStyles = (e) => {
10
+ const { scrollable: t } = e, o = {
8
11
  scrollbarColor: s.colorBrandForeground1 + " " + s.colorNeutralBackground2
9
12
  };
10
- return c ? o.overflow = "auto" : o.overflow = "hidden", t && d.buildGridCellStyles(t, o), e && a.buildFlexBoxItemStyles(e, o), Object.assign({}, r.style, o);
13
+ return t ? o.overflow = "auto" : o.overflow = "hidden", Object.assign({}, e.style, o);
11
14
  };
12
- let i = l;
15
+ let i = r;
13
16
  export {
14
17
  i as SectionUtils
15
18
  };
@@ -1,4 +1,4 @@
1
- import { S as r } from "../../Section-Bw_kuHpK.js";
1
+ import { Section as r } from "./Section.js";
2
2
  export {
3
3
  r as Section
4
4
  };
@@ -5,7 +5,8 @@ import { ClassNames as q } from "../ClassNames.js";
5
5
  import { FlexBox as f } from "../FlexBox/FlexBox.js";
6
6
  import { FlexBoxItem as m } from "../FlexBox/FlexBoxItem/FlexBoxItem.js";
7
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";
8
+ import { Section as H } from "../Section/Section.js";
9
+ import { C as J, a as K, b as M } from "../../chunk-3-CMb_cR4A.js";
9
10
  const O = A({
10
11
  root: {
11
12
  height: "100%",
@@ -15,31 +16,31 @@ const O = A({
15
16
  currentBreadCrumb: {
16
17
  color: h.colorBrandForeground1
17
18
  }
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);
19
+ }), ie = (x) => {
20
+ const { children: g, onNavigatePanel: n, 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) => {
21
+ n && !n(i, r) || l(r);
21
22
  }, a = [];
22
- c.forEach((r, n) => {
23
+ c.forEach((r, o) => {
23
24
  const z = r.props;
24
- n > 0 && a.push(/* @__PURE__ */ e(L, {}, "Breadcrumb-divider-" + n)), a.push(/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
25
+ o > 0 && a.push(/* @__PURE__ */ e(L, {}, "Breadcrumb-divider-" + o)), a.push(/* @__PURE__ */ e(E, { children: /* @__PURE__ */ e(
25
26
  R,
26
27
  {
27
28
  type: "button",
28
29
  onClick: () => {
29
- I(n);
30
+ I(o);
30
31
  },
31
- current: i === n,
32
- className: i === n ? s.currentBreadCrumb : "",
32
+ current: i === o,
33
+ className: i === o ? s.currentBreadCrumb : "",
33
34
  children: z.title
34
35
  }
35
- ) }, "Breadcrumb-" + n));
36
+ ) }, "Breadcrumb-" + o));
36
37
  });
37
38
  const P = i === 0, F = () => {
38
39
  const r = i - 1;
39
- o && !o(i, r) || l(r);
40
+ n && !n(i, r) || l(r);
40
41
  }, b = i === c.length - 1, w = () => {
41
42
  const r = i + 1;
42
- o && !o(i, r) || l(r);
43
+ n && !n(i, r) || l(r);
43
44
  };
44
45
  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
46
  c.length > 1 && /* @__PURE__ */ d(m, { children: [
@@ -53,8 +54,8 @@ const O = A({
53
54
  activeIndex: i,
54
55
  whitespace: !0,
55
56
  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)) }) })
57
+ onActiveIndexChange: (r, o) => l(o.index),
58
+ children: /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(W, { children: c.map((r, o) => /* @__PURE__ */ e(G, { children: r }, o)) }) })
58
59
  }
59
60
  ) }),
60
61
  /* @__PURE__ */ e(m, { children: /* @__PURE__ */ d(f, { horizontal: !0, childrenGap: h.spacingVerticalS, itemProps: { padding: h.spacingVerticalS }, children: [
@@ -95,5 +96,5 @@ const O = A({
95
96
  ] }) }) });
96
97
  };
97
98
  export {
98
- te as Wizard
99
+ ie as Wizard
99
100
  };
@@ -3,18 +3,18 @@ import { DynamicFormBuilder as m } from "./DynamicForm/Builder/DynamicFormBuilde
3
3
  import { FieldBuilder as x } from "./DynamicForm/Builder/Field/FieldBuilder.js";
4
4
  import { SectionBuilder as l } from "./DynamicForm/Builder/Section/SectionBuilder.js";
5
5
  import { Device as c } from "./FiveSoulsProvider/FiveSouls.Types.js";
6
- import { FiveSoulsProvider as s } from "./FiveSoulsProvider/FiveSoulsProvider.js";
6
+ import { FiveSoulsProvider as d } from "./FiveSoulsProvider/FiveSoulsProvider.js";
7
7
  import { deviceContext as D } from "./FiveSoulsProvider/deviceContext.js";
8
8
  import { useDevice as F } from "./FiveSoulsProvider/useDevice.js";
9
9
  import { FlexBox as B } from "./FlexBox/FlexBox.js";
10
10
  import { FlexBoxItem as v } from "./FlexBox/FlexBoxItem/FlexBoxItem.js";
11
11
  import { FlexBoxItemResizer as L } from "./FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
12
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";
13
+ import { GridCell as G } from "./Grid/GridCell/GridCell.js";
14
+ import { ResizableGridCell as S } from "./Grid/ResizableGridCell/ResizableGridCell.js";
15
15
  import "./Grid/GridContext.js";
16
16
  import { RichText as T } from "./RichText/RichText.js";
17
- import { S as b } from "../Section-Bw_kuHpK.js";
17
+ import { Section as b } from "./Section/Section.js";
18
18
  import { ThemePicker as j } from "./ThemePicker/ThemePicker.js";
19
19
  import { cornflower as A, cornflowerDark as E, cornflowerLight as H } from "./ThemePicker/Themes/Cornflower/Cornflower.js";
20
20
  import { crimson as M, crimsonDark as N, crimsonLight as O } from "./ThemePicker/Themes/Crimson/Crimson.js";
@@ -29,14 +29,14 @@ export {
29
29
  t as DynamicForm,
30
30
  m as DynamicFormBuilder,
31
31
  x as FieldBuilder,
32
- s as FiveSoulsProvider,
32
+ d as FiveSoulsProvider,
33
33
  B as FlexBox,
34
34
  v as FlexBoxItem,
35
35
  L as FlexBoxItemResizer,
36
36
  z as Grid,
37
- S as GridCell,
37
+ G as GridCell,
38
38
  mr as JumpList,
39
- P as ResizableGridCell,
39
+ S as ResizableGridCell,
40
40
  T as RichText,
41
41
  C as RowDefinition,
42
42
  b as Section,
package/dist/main.d.ts CHANGED
@@ -465,6 +465,10 @@ export declare interface ISectionProps extends IComponentProps {
465
465
  * Collection of properties to be used when this section is rendered as a child of the `FlexBox` component.
466
466
  */
467
467
  flexBoxItemProps?: IFlexBoxItemProps;
468
+ /**
469
+ *
470
+ */
471
+ appearance?: "default" | "borderless";
468
472
  }
469
473
 
470
474
  export declare interface IThemePickerProps extends IComponentProps {
package/dist/main.js CHANGED
@@ -3,18 +3,18 @@ import { DynamicFormBuilder as m } from "./components/DynamicForm/Builder/Dynami
3
3
  import { FieldBuilder as x } from "./components/DynamicForm/Builder/Field/FieldBuilder.js";
4
4
  import { SectionBuilder as l } from "./components/DynamicForm/Builder/Section/SectionBuilder.js";
5
5
  import { Device as c } from "./components/FiveSoulsProvider/FiveSouls.Types.js";
6
- import { FiveSoulsProvider as s } from "./components/FiveSoulsProvider/FiveSoulsProvider.js";
6
+ import { FiveSoulsProvider as d } from "./components/FiveSoulsProvider/FiveSoulsProvider.js";
7
7
  import { deviceContext as D } from "./components/FiveSoulsProvider/deviceContext.js";
8
8
  import { useDevice as F } from "./components/FiveSoulsProvider/useDevice.js";
9
9
  import { FlexBox as B } from "./components/FlexBox/FlexBox.js";
10
10
  import { FlexBoxItem as v } from "./components/FlexBox/FlexBoxItem/FlexBoxItem.js";
11
11
  import { FlexBoxItemResizer as L } from "./components/FlexBox/FlexBoxItemResizer/FlexBoxItemResizer.js";
12
12
  import { ColumnDefinition as w, Grid as z, RowDefinition as C } from "./components/Grid/Grid.js";
13
- import { GridCell as S } from "./components/Grid/GridCell/GridCell.js";
14
- import { ResizableGridCell as P } from "./components/Grid/ResizableGridCell/ResizableGridCell.js";
13
+ import { GridCell as G } from "./components/Grid/GridCell/GridCell.js";
14
+ import { ResizableGridCell as S } from "./components/Grid/ResizableGridCell/ResizableGridCell.js";
15
15
  import "./components/Grid/GridContext.js";
16
16
  import { RichText as T } from "./components/RichText/RichText.js";
17
- import { S as b } from "./Section-Bw_kuHpK.js";
17
+ import { Section as b } from "./components/Section/Section.js";
18
18
  import { ThemePicker as j } from "./components/ThemePicker/ThemePicker.js";
19
19
  import { cornflower as A, cornflowerDark as E, cornflowerLight as H } from "./components/ThemePicker/Themes/Cornflower/Cornflower.js";
20
20
  import { crimson as M, crimsonDark as N, crimsonLight as O } from "./components/ThemePicker/Themes/Crimson/Crimson.js";
@@ -29,14 +29,14 @@ export {
29
29
  t as DynamicForm,
30
30
  m as DynamicFormBuilder,
31
31
  x as FieldBuilder,
32
- s as FiveSoulsProvider,
32
+ d as FiveSoulsProvider,
33
33
  B as FlexBox,
34
34
  v as FlexBoxItem,
35
35
  L as FlexBoxItemResizer,
36
36
  z as Grid,
37
- S as GridCell,
37
+ G as GridCell,
38
38
  mr as JumpList,
39
- P as ResizableGridCell,
39
+ S as ResizableGridCell,
40
40
  T as RichText,
41
41
  C as RowDefinition,
42
42
  b as Section,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@5ive-souls/controls",
3
- "version": "0.0.3",
3
+ "version": "0.0.4",
4
4
  "description": "Collection of react components built on the Fluent UI framework.",
5
5
  "keywords": [
6
6
  "react",
Binary file