@kwiz/fluentui 1.0.120 → 1.0.121

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.
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  interface IProps {
3
+ dark?: boolean;
3
4
  }
4
5
  export declare const Loading: React.FunctionComponent<IProps>;
5
6
  export {};
@@ -1,7 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
- import { LOGO_ANIM_SMALL } from '@kwiz/common';
2
+ import { LOGO_ANIM_DARK, LOGO_ANIM_LIGHT } from '@kwiz/common';
3
+ import { useKWIZFluentContext } from '../helpers/context-internal';
3
4
  import { Centered } from './centered';
4
5
  export const Loading = (props) => {
5
- return (_jsx(Centered, { children: _jsx("img", { src: LOGO_ANIM_SMALL, alt: "loading", style: { width: '15vw' } }) }));
6
+ const ctx = useKWIZFluentContext();
7
+ const src = props.dark === true || ctx.dark
8
+ ? LOGO_ANIM_DARK
9
+ : LOGO_ANIM_LIGHT;
10
+ return (_jsx(Centered, { children: _jsx("img", { src: src, alt: "loading", style: { width: '15vw' } }) }));
6
11
  };
7
12
  //# sourceMappingURL=loading.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"loading.js","sourceRoot":"","sources":["../../src/controls/loading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,MAAM,CAAC,MAAM,OAAO,GAAoC,CAAC,KAAK,EAAE,EAAE;IAC9D,OAAO,CACH,KAAC,QAAQ,cAAC,cAAK,GAAG,EAAE,eAAe,EAAE,GAAG,EAAC,SAAS,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAI,GAAW,CAC7F,CAAC;AACN,CAAC,CAAA"}
1
+ {"version":3,"file":"loading.js","sourceRoot":"","sources":["../../src/controls/loading.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAE/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAKtC,MAAM,CAAC,MAAM,OAAO,GAAoC,CAAC,KAAK,EAAE,EAAE;IAC9D,MAAM,GAAG,GAAG,oBAAoB,EAAE,CAAC;IACnC,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,KAAK,IAAI,IAAI,GAAG,CAAC,IAAI;QACvC,CAAC,CAAC,cAAc;QAChB,CAAC,CAAC,eAAe,CAAC;IAEtB,OAAO,CACH,KAAC,QAAQ,cAAC,cAAK,GAAG,EAAE,GAAG,EAAE,GAAG,EAAC,SAAS,EAAC,KAAK,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAI,GAAW,CACjF,CAAC;AACN,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwiz/fluentui",
3
- "version": "1.0.120",
3
+ "version": "1.0.121",
4
4
  "description": "KWIZ common controls for FluentUI",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -63,7 +63,7 @@
63
63
  "dependencies": {
64
64
  "@fluentui/react-datepicker-compat": "^0.4.53",
65
65
  "@fluentui/react-timepicker-compat": "^0.2.42",
66
- "@kwiz/common": "^1.0.173",
66
+ "@kwiz/common": "^1.0.181",
67
67
  "@mismerge/core": "^1.2.1",
68
68
  "@mismerge/react": "^1.0.1",
69
69
  "esbuild": "^0.19.12",