@kwiz/fluentui 1.0.84 → 1.0.86

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.
@@ -0,0 +1,10 @@
1
+ import { DrawerHeaderProps, DrawerHeaderTitleProps, DrawerProps } from "@fluentui/react-components";
2
+ import { ReactNode } from "react";
3
+ export default function DrawerEX(props: {
4
+ rootProps?: DrawerProps;
5
+ headerProps?: DrawerHeaderProps;
6
+ headerTitleProps?: DrawerHeaderTitleProps;
7
+ children?: ReactNode;
8
+ title?: string;
9
+ titleActions?: JSX.Element;
10
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,24 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { Drawer, DrawerBody, DrawerHeader, drawerHeaderClassNames, DrawerHeaderTitle, makeStyles, tokens } from "@fluentui/react-components";
3
+ import { useCommonStyles } from "../styles/styles";
4
+ const useStyles = makeStyles({
5
+ drawer: {
6
+ border: 0,
7
+ [`&>.${drawerHeaderClassNames.root}`]: {
8
+ boxShadow: tokens.shadow4Brand,
9
+ backgroundColor: tokens.colorBrandBackground,
10
+ color: tokens.colorNeutralBackground1,
11
+ padding: tokens.spacingVerticalXL,
12
+ '& button': {
13
+ color: tokens.colorNeutralBackground1
14
+ }
15
+ }
16
+ }
17
+ });
18
+ export default function DrawerEX(props) {
19
+ var _a, _b;
20
+ const commonStyles = useCommonStyles();
21
+ const css = useStyles();
22
+ return _jsxs(Drawer, Object.assign({}, props.rootProps, { className: css.drawer, children: [_jsx(DrawerHeader, Object.assign({}, props.headerProps, { className: commonStyles.header, children: _jsx(DrawerHeaderTitle, Object.assign({}, props.headerTitleProps, { action: props.titleActions || ((_a = props.headerTitleProps) === null || _a === void 0 ? void 0 : _a.action), children: props.title || ((_b = props.headerTitleProps) === null || _b === void 0 ? void 0 : _b.children) })) })), _jsx(DrawerBody, { children: props.children })] }));
23
+ }
24
+ //# sourceMappingURL=drawer-ex.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N,KACR,CAAC;AACd,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from "react";
2
+ export declare function FieldSet({ title, children }: {
3
+ title: string;
4
+ children: ReactNode;
5
+ }): import("react/jsx-runtime").JSX.Element;
6
+ export declare function HorizontalFieldSet({ title, children }: {
7
+ title: string;
8
+ children: ReactNode;
9
+ }): import("react/jsx-runtime").JSX.Element;
@@ -0,0 +1,18 @@
1
+ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
+ import { makeStyles, shorthands, tokens } from "@fluentui/react-components";
3
+ import { Horizontal } from "./horizontal";
4
+ const useStyles = makeStyles({
5
+ fieldset: Object.assign({ borderRadius: tokens.borderRadiusMedium }, shorthands.borderColor(tokens.colorNeutralStrokeSubtle)),
6
+ horizontal: {
7
+ alignItems: "start"
8
+ }
9
+ });
10
+ export function FieldSet({ title, children }) {
11
+ const css = useStyles();
12
+ return _jsxs("fieldset", { className: css.fieldset, children: [_jsx("legend", { children: title }), children] });
13
+ }
14
+ export function HorizontalFieldSet({ title, children }) {
15
+ const css = useStyles();
16
+ return _jsx(FieldSet, { title: title, children: _jsx(Horizontal, { wrap: true, css: [css.horizontal], children: children }) });
17
+ }
18
+ //# sourceMappingURL=field-set.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"field-set.js","sourceRoot":"","sources":["../../src/controls/field-set.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAE5E,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE1C,MAAM,SAAS,GAAG,UAAU,CAAC;IACzB,QAAQ,kBACJ,YAAY,EAAE,MAAM,CAAC,kBAAkB,IACpC,UAAU,CAAC,WAAW,CAAC,MAAM,CAAC,wBAAwB,CAAC,CAC7D;IACD,UAAU,EAAE;QACR,UAAU,EAAE,OAAO;KACtB;CACJ,CAAC,CAAC;AAEH,MAAM,UAAU,QAAQ,CAAC,EAAE,KAAK,EAAE,QAAQ,EAA0C;IAChF,MAAM,GAAG,GAAG,SAAS,EAAE,CAAC;IAExB,OAAO,oBAAU,SAAS,EAAE,GAAG,CAAC,QAAQ,aACpC,2BAAS,KAAK,GAAU,EACvB,QAAQ,IACF,CAAC;AAChB,CAAC;AACD,MAAM,UAAU,kBAAkB,CAAC,EAAE,KAAK,EAAE,QAAQ,EAA0C;IAC1F,MAAM,GAAG,GAAG,SAAS,EAAE,CAAC;IAExB,OAAO,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,YACzB,KAAC,UAAU,IAAC,IAAI,QAAC,GAAG,EAAE,CAAC,GAAG,CAAC,UAAU,CAAC,YACjC,QAAQ,GACA,GACN,CAAC;AAChB,CAAC"}
@@ -1,11 +1,9 @@
1
1
  import React from 'react';
2
- import { ISectionProps } from './section';
3
- interface IProps extends ISectionProps {
4
- wrap?: boolean;
5
- nogap?: boolean;
6
- /** vertical align center */
2
+ import { IStackProps } from './stack';
3
+ interface IProps extends Omit<IStackProps, "direction" | "justified"> {
4
+ /** vertical align items center */
7
5
  centered?: boolean;
8
- /** horizontal centered */
6
+ /** align items horizontal centered */
9
7
  hCentered?: boolean;
10
8
  }
11
9
  export declare const Horizontal: (props: IProps & {
@@ -1,34 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { makeStyles } from '@fluentui/react-components';
3
- import { isNotEmptyArray } from '@kwiz/common';
4
2
  import React from 'react';
5
- import { KnownClassNames, mixins } from '../styles/styles';
6
- import { Section } from './section';
7
- const useStyles = makeStyles({
8
- horizontal: Object.assign(Object.assign({}, mixins.flex), { flexDirection: 'row' }),
9
- wrap: mixins.wrap,
10
- nogap: mixins.nogap,
11
- centered: {
12
- alignItems: "center"
13
- },
14
- hCentered: {
15
- justifyContent: "center"
16
- },
17
- });
3
+ import { Stack } from './stack';
18
4
  export const Horizontal = React.forwardRef((props, ref) => {
19
- const cssNames = useStyles();
20
- let css = [KnownClassNames.horizontal];
21
- css.push(cssNames.horizontal);
22
- if (props.wrap)
23
- css.push(cssNames.wrap);
24
- if (props.nogap)
25
- css.push(cssNames.nogap);
26
- if (props.centered)
27
- css.push(cssNames.centered);
28
- if (props.hCentered)
29
- css.push(cssNames.hCentered);
30
- if (isNotEmptyArray(props.css))
31
- css.push(...props.css);
32
- return (_jsx(Section, Object.assign({}, props, { css: css, ref: ref })));
5
+ return _jsx(Stack, Object.assign({}, props, { direction: 'h', justified: props.hCentered }));
33
6
  });
34
7
  //# sourceMappingURL=horizontal.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"horizontal.js","sourceRoot":"","sources":["../../src/controls/horizontal.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAiB,OAAO,EAAE,MAAM,WAAW,CAAC;AAEnD,MAAM,SAAS,GAAG,UAAU,CAAC;IACzB,UAAU,kCACH,MAAM,CAAC,IAAI,KACd,aAAa,EAAE,KAAK,GACvB;IACD,IAAI,EAAE,MAAM,CAAC,IAAI;IACjB,KAAK,EAAE,MAAM,CAAC,KAAK;IACnB,QAAQ,EAAE;QACN,UAAU,EAAE,QAAQ;KACvB;IACD,SAAS,EAAE;QACP,cAAc,EAAE,QAAQ;KAC3B;CACJ,CAAC,CAAA;AAUF,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAkD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACvG,MAAM,QAAQ,GAAG,SAAS,EAAE,CAAC;IAC7B,IAAI,GAAG,GAAa,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC;IAEjD,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,UAAU,CAAC,CAAC;IAC9B,IAAI,KAAK,CAAC,IAAI;QACV,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,KAAK,CAAC,KAAK;QACX,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC7B,IAAI,KAAK,CAAC,QAAQ;QACd,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAChC,IAAI,KAAK,CAAC,SAAS;QACf,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAEjC,IAAI,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC;QAAE,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IAEvD,OAAO,CACH,KAAC,OAAO,oBAAK,KAAK,IAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAC7C,CAAC;AACN,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"horizontal.js","sourceRoot":"","sources":["../../src/controls/horizontal.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,KAAK,EAAE,MAAM,SAAS,CAAC;AAQ7C,MAAM,CAAC,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,CAAkD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACvG,OAAO,KAAC,KAAK,oBAAK,KAAK,IACnB,SAAS,EAAC,GAAG,EACb,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,CAAC;AACvC,CAAC,CAAC,CAAC"}
@@ -8,9 +8,11 @@ export * from './ColorPickerDialog';
8
8
  export * from './date';
9
9
  export * from './diagram-picker';
10
10
  export * from './divider';
11
+ export * from './drawer-ex';
11
12
  export * from './dropdown';
12
13
  export * from './error-boundary';
13
14
  export * from './field-editor';
15
+ export * from './field-set';
14
16
  export * from './file-upload';
15
17
  export * from './horizontal';
16
18
  export * from './html-editor/editor';
@@ -26,6 +28,7 @@ export * from './prompt';
26
28
  export * from './qrcode';
27
29
  export * from './search';
28
30
  export * from './section';
31
+ export * from './stack';
29
32
  export * from './svg';
30
33
  export * from './toolbar';
31
34
  export * from './vertical';
@@ -8,9 +8,11 @@ export * from './ColorPickerDialog';
8
8
  export * from './date';
9
9
  export * from './diagram-picker';
10
10
  export * from './divider';
11
+ export * from './drawer-ex';
11
12
  export * from './dropdown';
12
13
  export * from './error-boundary';
13
14
  export * from './field-editor';
15
+ export * from './field-set';
14
16
  export * from './file-upload';
15
17
  export * from './horizontal';
16
18
  export * from './html-editor/editor';
@@ -26,6 +28,7 @@ export * from './prompt';
26
28
  export * from './qrcode';
27
29
  export * from './search';
28
30
  export * from './section';
31
+ export * from './stack';
29
32
  export * from './svg';
30
33
  export * from './toolbar';
31
34
  export * from './vertical';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/controls/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,kBAAkB,CAAC;AACjC,cAAc,QAAQ,CAAC;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,qBAAqB,CAAC;AACpC,cAAc,QAAQ,CAAC;AACvB,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { ISectionProps } from './section';
3
+ export interface IStackProps extends ISectionProps {
4
+ /** h:horizontal, v:vertical */
5
+ direction: "h" | "v";
6
+ wrap?: boolean;
7
+ nogap?: boolean;
8
+ /** align items */
9
+ centered?: boolean;
10
+ /** justify items */
11
+ justified?: boolean;
12
+ }
13
+ export declare const Stack: (props: IStackProps & {
14
+ children?: React.ReactNode | undefined;
15
+ } & React.RefAttributes<HTMLDivElement>) => React.JSX.Element | null;
@@ -0,0 +1,37 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { makeStyles } from '@fluentui/react-components';
3
+ import { isNotEmptyArray } from '@kwiz/common';
4
+ import React from 'react';
5
+ import { KnownClassNames, mixins } from '../styles/styles';
6
+ import { Section } from './section';
7
+ const useStyles = makeStyles({
8
+ horizontal: Object.assign(Object.assign({}, mixins.flex), { flexDirection: 'row' }),
9
+ vertical: Object.assign(Object.assign({}, mixins.flex), { flexDirection: 'column' }),
10
+ wrap: mixins.wrap,
11
+ nogap: mixins.nogap,
12
+ centered: {
13
+ alignItems: "center"
14
+ },
15
+ justified: {
16
+ justifyContent: "center"
17
+ },
18
+ });
19
+ export const Stack = React.forwardRef((props, ref) => {
20
+ const cssNames = useStyles();
21
+ let css = [
22
+ props.direction === "h" ? KnownClassNames.horizontal : KnownClassNames.vertical,
23
+ props.direction === "h" ? cssNames.horizontal : cssNames.vertical
24
+ ];
25
+ if (props.wrap)
26
+ css.push(cssNames.wrap);
27
+ if (props.nogap)
28
+ css.push(cssNames.nogap);
29
+ if (props.centered)
30
+ css.push(cssNames.centered);
31
+ if (props.justified)
32
+ css.push(cssNames.justified);
33
+ if (isNotEmptyArray(props.css))
34
+ css.push(...props.css);
35
+ return (_jsx(Section, Object.assign({}, props, { css: css, ref: ref })));
36
+ });
37
+ //# sourceMappingURL=stack.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"stack.js","sourceRoot":"","sources":["../../src/controls/stack.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OA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AI,KAAK,CAAC,SAAS;QACf,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAEjC,IAAI,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC;QAAE,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IAEvD,OAAO,CACH,KAAC,OAAO,oBAAK,KAAK,IAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAC7C,CAAC;AACN,CAAC,CAAC,CAAC"}
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
- import { ISectionProps } from './section';
3
- interface IProps extends ISectionProps {
4
- wrap?: boolean;
5
- nogap?: boolean;
6
- /** vertical centered */
2
+ import { IStackProps } from './stack';
3
+ interface IProps extends Omit<IStackProps, "direction" | "justified"> {
4
+ /** horizontal align items center */
5
+ centered?: boolean;
6
+ /** align items vertical centered */
7
7
  vCentered?: boolean;
8
8
  }
9
9
  export declare const Vertical: (props: IProps & {
@@ -1,29 +1,7 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { makeStyles } from '@fluentui/react-components';
3
- import { isNotEmptyArray } from '@kwiz/common';
4
2
  import React from 'react';
5
- import { KnownClassNames, mixins } from '../styles/styles';
6
- import { Section } from './section';
7
- const useStyles = makeStyles({
8
- vertical: Object.assign(Object.assign({}, mixins.flex), { flexDirection: 'column' }),
9
- wrap: mixins.wrap,
10
- nogap: mixins.nogap,
11
- vCentered: {
12
- justifyContent: "center"
13
- },
14
- });
3
+ import { Stack } from './stack';
15
4
  export const Vertical = React.forwardRef((props, ref) => {
16
- const cssNames = useStyles();
17
- let css = [KnownClassNames.vertical];
18
- css.push(cssNames.vertical);
19
- if (props.wrap)
20
- css.push(cssNames.wrap);
21
- if (props.nogap)
22
- css.push(cssNames.nogap);
23
- if (props.vCentered)
24
- css.push(cssNames.vCentered);
25
- if (isNotEmptyArray(props.css))
26
- css.push(...props.css);
27
- return (_jsx(Section, Object.assign({}, props, { css: css, ref: ref })));
5
+ return _jsx(Stack, Object.assign({}, props, { direction: 'v', justified: props.vCentered }));
28
6
  });
29
7
  //# sourceMappingURL=vertical.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vertical.js","sourceRoot":"","sources":["../../src/controls/vertical.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAiB,OAAO,EAAE,MAAM,WAAW,CAAC;AAEnD,MAAM,SAAS,GAAG,UAAU,CAAC;IACzB,QAAQ,kCACD,MAAM,CAAC,IAAI,KACd,aAAa,EAAE,QAAQ,GAC1B;IACD,IAAI,EAAE,MAAM,CAAC,IAAI;IACjB,KAAK,EAAE,MAAM,CAAC,KAAK;IACnB,SAAS,EAAE;QACP,cAAc,EAAE,QAAQ;KAC3B;CAEJ,CAAC,CAAA;AAQF,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAkD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACrG,MAAM,QAAQ,GAAG,SAAS,EAAE,CAAC;IAC7B,IAAI,GAAG,GAAa,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IAE/C,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;IAC5B,IAAI,KAAK,CAAC,IAAI;QACV,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC5B,IAAI,KAAK,CAAC,KAAK;QACX,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;IAC7B,IAAI,KAAK,CAAC,SAAS;QACf,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,CAAC;IAEjC,IAAI,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC;QAAE,GAAG,CAAC,IAAI,CAAC,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC;IAEvD,OAAO,CACH,KAAC,OAAO,oBAAK,KAAK,IAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAC7C,CAAC;AACN,CAAC,CAAC,CAAC"}
1
+ {"version":3,"file":"vertical.js","sourceRoot":"","sources":["../../src/controls/vertical.tsx"],"names":[],"mappings":";AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAe,KAAK,EAAE,MAAM,SAAS,CAAC;AAQ7C,MAAM,CAAC,MAAM,QAAQ,GAAG,KAAK,CAAC,UAAU,CAAkD,CAAC,KAAK,EAAE,GAAG,EAAE,EAAE;IACrG,OAAO,KAAC,KAAK,oBAAK,KAAK,IACnB,SAAS,EAAC,GAAG,EACb,SAAS,EAAE,KAAK,CAAC,SAAS,IAAI,CAAC;AACvC,CAAC,CAAC,CAAC"}
@@ -11,7 +11,9 @@ export type toastDispatcherType = (info: {
11
11
  text: string;
12
12
  onClick: () => void;
13
13
  }[];
14
- intent?: ToastIntent;
14
+ intent?: ToastIntent | "progress";
15
+ media?: JSX.Element;
16
+ inverted?: boolean;
15
17
  }) => void;
16
18
  export declare function useToast(): {
17
19
  control: JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
2
- import { Link, Toast, ToastBody, Toaster, ToastFooter, ToastTitle, useId, useToastController } from "@fluentui/react-components";
2
+ import { Link, Spinner, Toast, ToastBody, Toaster, ToastFooter, ToastTitle, useId, useToastController } from "@fluentui/react-components";
3
3
  import { isNotEmptyArray } from "@kwiz/common";
4
4
  import { useKWIZFluentContext } from "./context-internal";
5
5
  export function useToast() {
@@ -9,8 +9,16 @@ export function useToast() {
9
9
  return {
10
10
  control: _jsx(Toaster, { mountNode: ctx.mountNode, toasterId: toasterId }),
11
11
  dispatch: info => {
12
- dispatchToast(_jsxs(Toast, { children: [info.title && _jsx(ToastTitle, { action: info.titleAction ? _jsx(Link, { onClick: info.titleAction.onClick, children: info.titleAction.text }) : undefined, children: info.title }), info.body && _jsx(ToastBody, { subtitle: info.subtitle, children: info.body }), isNotEmptyArray(info.footerActions) &&
13
- _jsx(ToastFooter, { children: info.footerActions.map((a, i) => _jsx(Link, { onClick: a.onClick, children: a.text }, `l${i}`)) })] }), { intent: info.intent || "info" });
12
+ dispatchToast(_jsxs(Toast, { appearance: info.inverted ? "inverted" : undefined, children: [info.title && _jsx(ToastTitle, { media: info.media
13
+ ? info.media
14
+ : info.intent === "progress"
15
+ ? _jsx(Spinner, { size: "tiny" })
16
+ : undefined, action: info.titleAction ? _jsx(Link, { onClick: info.titleAction.onClick, children: info.titleAction.text }) : undefined, children: info.title }), info.body && _jsx(ToastBody, { subtitle: info.subtitle, children: info.body }), isNotEmptyArray(info.footerActions) &&
17
+ _jsx(ToastFooter, { children: info.footerActions.map((a, i) => _jsx(Link, { onClick: a.onClick, children: a.text }, `l${i}`)) })] }), {
18
+ intent: info.intent === "progress"
19
+ ? "info"
20
+ : info.intent || "info"
21
+ });
14
22
  }
15
23
  };
16
24
  }
@@ -1 +1 @@
1
- {"version":3,"file":"use-toast.js","sourceRoot":"","sources":["../../src/helpers/use-toast.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,OAAO,EAAE,WAAW,EAAe,UAAU,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC9I,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAC;AAU1D,MAAM,UAAU,QAAQ;IAIpB,MAAM,GAAG,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,SAAS,GAAG,KAAK,CAAC,SAAS,CAAC,CAAC;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AE,EAAE,CAAC,KAAC,IAAI,IAAe,OAAO,EAAE,CAAC,CAAC,OAAO,YAAG,CAAC,CAAC,IAAI,IAApC,IAAI,CAAC,EAAE,CAAqC,CAAC,GAChF,IAEd,EAAE;gBACN,MAAM,EACF,IAAI,CAAC,MAAM,KAAK,UAAU;oBACtB,CAAC,CAAC,MAAM;oBACR,CAAC,CAAC,IAAI,CAAC,MAAM,IAAI,MAAM;aAClC,CAAC,CAAC;QACP,CAAC;KACJ,CAAA;AACL,CAAC"}
@@ -1 +1 @@
1
- export { commonSizes, KnownClassNames } from './styles';
1
+ export { commonSizes, KnownClassNames, useCommonStyles } from './styles';
@@ -1,2 +1,2 @@
1
- export { commonSizes, KnownClassNames } from './styles';
1
+ export { commonSizes, KnownClassNames, useCommonStyles } from './styles';
2
2
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/styles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC"}
@@ -26,9 +26,12 @@ export declare const KnownClassNames: {
26
26
  left: string;
27
27
  right: string;
28
28
  };
29
- export declare const useCommonStyles: () => Record<"hintLabel" | "validationLabel" | "fullscreen", string>;
29
+ export declare const useCommonStyles: () => Record<"hintLabel" | "validationLabel" | "fullscreen" | "header", string>;
30
30
  export declare const commonSizes: {
31
+ /** 360 */
31
32
  widthMedium: number;
33
+ /** 520 */
32
34
  widthWide: number;
35
+ /** 820 */
33
36
  extraWidthWide: number;
34
37
  };
@@ -87,11 +87,23 @@ export const useCommonStyles = makeStyles({
87
87
  padding: tokens.spacingHorizontalL,
88
88
  paddingLeft: "20px",
89
89
  paddingRight: "20px"
90
+ },
91
+ header: {
92
+ boxShadow: tokens.shadow4Brand,
93
+ backgroundColor: tokens.colorBrandBackground,
94
+ color: tokens.colorNeutralBackground1,
95
+ padding: `${tokens.spacingVerticalXL} ${tokens.spacingHorizontalXL}`,
96
+ '& button': {
97
+ color: tokens.colorNeutralBackground1
98
+ }
90
99
  }
91
100
  });
92
101
  export const commonSizes = {
102
+ /** 360 */
93
103
  widthMedium: 360,
104
+ /** 520 */
94
105
  widthWide: 520,
106
+ /** 820 */
95
107
  extraWidthWide: 820,
96
108
  };
97
109
  //# sourceMappingURL=styles.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/styles/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,UAAU,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAE9E,MAAM,KAAQ,MAAM,CAsDnB;AAtDD,WAAc,MAAM;IACH,WAAI,GAAiB;QAC9B,UAAU,EAAE,CAAC;QACb,QAAQ,EAAE,CAAC;KACd,CAAC;IACW,gBAAS,GAAiB;QACnC,MAAM,EAAE,SAAS;QACjB,CAAC,SAAS,CAAC,EAAE;YACT,MAAM,EAAE,SAAS;SACpB;KACJ,CAAA;IACY,UAAG,GAAiB;QAC7B,OAAO,EAAE,MAAM,CAAC,kBAAkB;QAClC,YAAY,EAAE,MAAM,CAAC,kBAAkB;QACvC,SAAS,EAAE,MAAM,CAAC,OAAO;QACzB,MAAM,EAAE,MAAM,CAAC,oBAAoB;KACtC,CAAA;IACY,YAAK,mCACX,OAAA,GAAG;QACN,wBAAwB;QACxB,QAAQ,EAAE,UAAU;QACpB,wBAAwB;QACxB,QAAQ,EAAE,KAAK;QACf,8BAA8B;QAC9B,SAAS,EAAE,QAAQ,EAEnB,CAAC,OAAO,CAAC,EAAE;YACP,QAAQ,EAAE,MAAM;SACnB,GACJ,CAAA;IAEY,WAAI,GAAiB;QAC9B,OAAO,EAAE,MAAM;QACf,QAAQ,EAAE,QAAQ;QAClB,MAAM,EAAE,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,MAAM,CAAC,eAAe;QAChC,UAAU,EAAE,MAAM,CAAC,iBAAiB;QACpC,UAAU,EAAE,MAAM,CAAC,iBAAiB;KACvC;IACD,UAAU,EAAE;QACR,QAAQ,EAAE,OAAO;QACjB,GAAG,EAAE,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,CAAC;QACpC,MAAM,EAAE,CAAC;QACT,eAAe,EAAE,MAAM,CAAC,uBAAuB;QAC/C,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,MAAM,CAAC,kBAAkB;QAClC,WAAW,EAAE,MAAM;QACnB,YAAY,EAAE,MAAM;KACvB;IACD,MAAM,EAAE;QACJ,SAAS,EAAE,MAAM,CAAC,YAAY;QAC9B,eAAe,EAAE,MAAM,CAAC,oBAAoB;QAC5C,KAAK,EAAE,MAAM,CAAC,uBAAuB;QACrC,OAAO,EAAE,GAAG,MAAM,CAAC,iBAAiB,IAAI,MAAM,CAAC,mBAAmB,EAAE;QACpE,UAAU,EAAE;YACR,KAAK,EAAE,MAAM,CAAC,uBAAuB;SACxC;KACJ;CACJ,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,WAAW,GAAG;IACvB,UAAU;IACV,WAAW,EAAE,GAAG;IAChB,UAAU;IACV,SAAS,EAAE,GAAG;IACd,UAAU;IACV,cAAc,EAAE,GAAG;CACtB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwiz/fluentui",
3
- "version": "1.0.84",
3
+ "version": "1.0.86",
4
4
  "description": "KWIZ common controls for FluentUI",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -18,14 +18,15 @@
18
18
  "build-explain": "tsc --explainFiles",
19
19
  "check-dependencies": "madge --circular ./src",
20
20
  "create-link": "npm link",
21
- "test": "depcruise src && node --import tsx --test src",
21
+ "test": "npm run prestart && depcruise src && node --import tsx --test src",
22
22
  "link-local-kwiz": "npm link @kwiz/common",
23
23
  "__update-kwiz-packages": "npm install @kwiz/common@latest",
24
24
  "npm-v-patch": "npm version patch && git push origin main:main && git push --tags",
25
25
  "npm-v-major": "npm version major && git push origin main:main && git push --tags",
26
26
  "npm-publish": "npm publish --access public",
27
27
  "reset-repo": "git fetch origin && git reset --hard origin/main",
28
- "clear-npm-cache": "npm cache clean --force"
28
+ "clear-npm-cache": "npm cache clean --force",
29
+ "prestart": "check-node-version --node 18"
29
30
  },
30
31
  "repository": {
31
32
  "type": "git",
@@ -52,6 +53,7 @@
52
53
  "packageManager": "npm@9.5.1",
53
54
  "devDependencies": {
54
55
  "@types/qrcode": "^1.5.5",
56
+ "check-node-version": "^4.2.1",
55
57
  "dependency-cruiser": "^16.8.0",
56
58
  "fs-extra": "^11.2.0",
57
59
  "madge": "^6.1.0",