@kwiz/fluentui 1.0.142 → 1.0.144

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,8 +1,15 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { makeStyles, mergeClasses } from "@fluentui/react-components";
2
3
  import Editor from '@monaco-editor/react';
4
+ const useStyles = makeStyles({
5
+ root: {
6
+ direction: "ltr" //editor must be LTR
7
+ }
8
+ });
3
9
  /** it is recommended to lazy load this control into its own chunk */
4
10
  export function CodeEditor(props) {
5
- return _jsx(Editor, { defaultLanguage: props.defaultLanguage, options: {
11
+ const css = useStyles();
12
+ return _jsx(Editor, { className: mergeClasses(css.root), defaultLanguage: props.defaultLanguage, options: {
6
13
  minimap: { enabled: false },
7
14
  lineNumbers: props.hideLineNumbers ? "off" : undefined
8
15
  }, value: props.value, beforeMount: monaco => {
@@ -1 +1 @@
1
- {"version":3,"file":"editor.js","sourceRoot":"","sources":["../../../src/controls/code-editor/editor.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,sBAAsB,CAAC;AAW1C,qEAAqE;AACrE,MAAM,UAAU,UAAU,CAAC,KAAuB;IAC9C,OAAO,KAAC,MAAM,IAAC,eAAe,EAAE,KAAK,CAAC,eAAe,EACjD,OAAO,EAAE;YACL,OAAO,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE;YAC3B,WAAW,EAAE,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS;SACzD,EACD,KAAK,EAAE,KAAK,CAAC,KAAK,EAClB,WAAW,EAAE,MAAM,CAAC,EAAE;YAClB,kBAAkB;YAClB,IAAI,KAAK,CAAC,SAAS;gBACf,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CACvC,MAAM,CAAC,SAAS,CAAC,UAAU,CAAC,kBAAkB,CAAC,WAAW,C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AC,EACD,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,EAAE,EAAE;YACpB,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,CAAC;QAC1B,CAAC,GACH,CAAC;AACP,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import React from "react";
2
2
  export type iKWIZFluentStringValueType = (options?: {
3
3
  cap?: boolean;
4
- param?: string;
4
+ param?: string | number | Date;
5
5
  }) => string;
6
6
  export interface iKWIZFluentContext {
7
7
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwiz/fluentui",
3
- "version": "1.0.142",
3
+ "version": "1.0.144",
4
4
  "description": "KWIZ common controls for FluentUI",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",