@5ive-souls/controls 0.0.3 → 0.0.5
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/dist/5ive-souls-controls-0.0.5.tgz +0 -0
- package/dist/Utilities-C0PUcYTL.js +157 -0
- package/dist/chunk-3-CMb_cR4A.js +11 -0
- package/dist/components/ClassNames.js +1 -1
- package/dist/components/EventCalender/Context/EventCalenderContext.js +5 -0
- package/dist/components/EventCalender/Context/EventCalenderProvider.js +34 -0
- package/dist/components/EventCalender/Context/EventProviderProps.js +0 -0
- package/dist/components/EventCalender/Context/index.js +6 -0
- package/dist/components/EventCalender/Day.js +12 -0
- package/dist/components/EventCalender/EventCalender.js +8 -0
- package/dist/components/EventCalender/EventList.js +12 -0
- package/dist/components/EventCalender/Month.js +48 -0
- package/dist/components/EventCalender/MonthPicker.js +65 -0
- package/dist/components/EventCalender/Utilities.js +8 -0
- package/dist/components/EventCalender/Week.js +10 -0
- package/dist/components/EventCalender/WeekdayLabel.js +32 -0
- package/dist/components/EventCalender/YearPicker.js +21 -0
- package/dist/components/EventCalender/index.js +4 -0
- package/dist/components/EventCalender/interfaces/CalenderItemProps.js +0 -0
- package/dist/components/EventCalender/interfaces/Event.js +0 -0
- package/dist/components/EventCalender/interfaces/EventCalenderProps.js +0 -0
- package/dist/components/EventCalender/interfaces/EventCalenderStrings.js +0 -0
- package/dist/components/EventCalender/interfaces/index.js +0 -0
- package/dist/components/FlexBox/FlexBoxItem/FlexBoxItem.js +3 -3
- package/dist/components/JumpList/JumpList.js +1 -1
- package/dist/components/Section/Section.js +750 -9
- package/dist/components/Section/SectionUtils.js +10 -7
- package/dist/components/Section/index.js +1 -1
- package/dist/components/Wizard/Wizard.js +16 -15
- package/dist/components/index.js +7 -7
- package/dist/main.d.ts +4 -0
- package/dist/main.js +7 -7
- package/package.json +1 -1
- package/dist/5ive-souls-controls-0.0.3.tgz +0 -0
- 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
|
|
3
|
-
import { FlexBoxUtils as
|
|
4
|
-
const
|
|
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
|
-
|
|
7
|
-
const { flexBoxItemProps:
|
|
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
|
|
13
|
+
return t ? o.overflow = "auto" : o.overflow = "hidden", Object.assign({}, e.style, o);
|
|
11
14
|
};
|
|
12
|
-
let i =
|
|
15
|
+
let i = r;
|
|
13
16
|
export {
|
|
14
17
|
i as SectionUtils
|
|
15
18
|
};
|
|
@@ -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 {
|
|
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
|
-
}),
|
|
19
|
-
const { children: g, onNavigatePanel:
|
|
20
|
-
|
|
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,
|
|
23
|
+
c.forEach((r, o) => {
|
|
23
24
|
const z = r.props;
|
|
24
|
-
|
|
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(
|
|
30
|
+
I(o);
|
|
30
31
|
},
|
|
31
|
-
current: i ===
|
|
32
|
-
className: i ===
|
|
32
|
+
current: i === o,
|
|
33
|
+
className: i === o ? s.currentBreadCrumb : "",
|
|
33
34
|
children: z.title
|
|
34
35
|
}
|
|
35
|
-
) }, "Breadcrumb-" +
|
|
36
|
+
) }, "Breadcrumb-" + o));
|
|
36
37
|
});
|
|
37
38
|
const P = i === 0, F = () => {
|
|
38
39
|
const r = i - 1;
|
|
39
|
-
|
|
40
|
+
n && !n(i, r) || l(r);
|
|
40
41
|
}, b = i === c.length - 1, w = () => {
|
|
41
42
|
const r = i + 1;
|
|
42
|
-
|
|
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,
|
|
57
|
-
children: /* @__PURE__ */ e(D, { children: /* @__PURE__ */ e(W, { children: c.map((r,
|
|
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
|
-
|
|
99
|
+
ie as Wizard
|
|
99
100
|
};
|
package/dist/components/index.js
CHANGED
|
@@ -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
|
|
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
|
|
14
|
-
import { ResizableGridCell as
|
|
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 {
|
|
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
|
-
|
|
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
|
-
|
|
37
|
+
G as GridCell,
|
|
38
38
|
mr as JumpList,
|
|
39
|
-
|
|
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
|
|
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
|
|
14
|
-
import { ResizableGridCell as
|
|
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 {
|
|
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
|
-
|
|
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
|
-
|
|
37
|
+
G as GridCell,
|
|
38
38
|
mr as JumpList,
|
|
39
|
-
|
|
39
|
+
S as ResizableGridCell,
|
|
40
40
|
T as RichText,
|
|
41
41
|
C as RowDefinition,
|
|
42
42
|
b as Section,
|
package/package.json
CHANGED
|
Binary file
|