@bbl-digital/snorre 4.3.0 → 4.3.2

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.
@@ -7,7 +7,7 @@ exports.styles = exports.default = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
9
9
  const styles = exports.styles = {
10
- default: theme => /*#__PURE__*/(0, _react.css)("padding:0px!important;font-size:16px;color:", theme.defaultText, ";max-width:100%;*{max-width:100%;}h1,h2,h3,h4,h5,h6,p,ul,ol{margin:0;}a{color:", theme.primary, ";text-decoration:underline;cursor:pointer;}li::marker{margin-right:0.5em;}p{min-height:22px;margin-bottom:1em;}.ql-indent-1{padding-inline-start:30px;}.ql-indent-2{padding-inline-start:60px;}.ql-indent-3{padding-inline-start:90px;}.ql-indent-4{padding-inline-start:120px;}.ql-indent-5{padding-inline-start:150px;}.ql-indent-6{padding-inline-start:180px;}.ql-indent-7{padding-inline-start:210px;}.ql-indent-8{padding-inline-start:240px;}.ql-indent-9{padding-inline-start:270px;}.ql-indent-10{padding-inline-start:300px;}.video-container{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;}.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%;}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;")),
10
+ default: theme => /*#__PURE__*/(0, _react.css)("padding:0px!important;font-size:16px;color:", theme.defaultText, ";max-width:100%;*{max-width:100%;}h1,h2,h3,h4,h5,h6,p,ul,ol{margin:0;}a{color:", theme.primary, ";text-decoration:underline;cursor:pointer;}ol{list-style-type:decimal;}ul{list-style-type:disc;}li::marker{margin-right:0.5em;}p{min-height:22px;margin-bottom:1em;}.ql-indent-1{padding-inline-start:30px;}.ql-indent-2{padding-inline-start:60px;}.ql-indent-3{padding-inline-start:90px;}.ql-indent-4{padding-inline-start:120px;}.ql-indent-5{padding-inline-start:150px;}.ql-indent-6{padding-inline-start:180px;}.ql-indent-7{padding-inline-start:210px;}.ql-indent-8{padding-inline-start:240px;}.ql-indent-9{padding-inline-start:270px;}.ql-indent-10{padding-inline-start:300px;}.video-container{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;}.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%;}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;")),
11
11
  secondary: theme => /*#__PURE__*/(0, _react.css)({
12
12
  color: theme.secondary
13
13
  }, process.env.NODE_ENV === "production" ? "" : ";label:secondary;"),
@@ -107,7 +107,7 @@ const InModal = exports.InModal = {
107
107
  };
108
108
  const WithoutSoftBreak = exports.WithoutSoftBreak = {
109
109
  render: () => /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
110
- withSoftBreak: false
110
+ withSoftBreakStyle: false
111
111
  }),
112
112
  name: 'Without soft break'
113
113
  };
@@ -97,7 +97,7 @@ const QuillEditor = ({
97
97
  customModules = {
98
98
  toolbar: _config.basicToolbar
99
99
  },
100
- withSoftBreak = true,
100
+ withSoftBreakStyle = true,
101
101
  formats = ['header', 'size', 'bold', 'italic', 'underline', 'list', 'indent', 'link', 'image', 'align'],
102
102
  bounds,
103
103
  onChange,
@@ -412,7 +412,7 @@ const QuillEditor = ({
412
412
  }, [readOnly, quill]);
413
413
  return (0, _jsxRuntime.jsxs)("div", {
414
414
  className: className,
415
- css: theme => [_styles.styles.default(theme, maxHeight, minHeight, width, minWidth, maxWidth, height, resizable, withSoftBreak)],
415
+ css: theme => [_styles.styles.default(theme, maxHeight, minHeight, width, minWidth, maxWidth, height, resizable, withSoftBreakStyle)],
416
416
  children: [label && (0, _jsxRuntime.jsx)(_styles.Label, {
417
417
  children: label
418
418
  }), (0, _jsxRuntime.jsx)("div", {
@@ -17,7 +17,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
17
17
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
18
18
  };
19
19
  const styles = exports.styles = {
20
- default: (theme, maxHeight, minHeight, maxWidth, width, minWidth, height, resizable, withSoftBreak) => /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;min-height:", minHeight ? `${minHeight}` : '150px', ";max-height:", maxHeight ? `${maxHeight}` : resizable ? 'auto' : '400px', ";width:", width ? `${width}` : '100%', ";min-width:", minWidth ? `${minWidth}` : !!width ? '100%' : 'unset', ";max-width:", maxWidth ? `${maxWidth}` : '100%', ";height:", height ? `${height}` : 'auto', ";.ql-editor li[data-list='ordered'].ql-indent-1>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-2>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-3>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-4>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-5>.ql-ui:before{content:counter(list-1, decimal) '. ';}.ql-editor li[data-list='bullet']:not([class*='ql-indent-'])+li[data-list='ordered']{counter-set:list-0 1;}.ql-editor li[data-list='ordered']:not([class*='ql-indent-'])+li[class*='ql-indent-'][data-list='ordered']{counter-set:list-1 1;}.ql-toolbar{border:1px solid ", theme.border, ";background-color:white;border-radius:3px 3px 0 0;padding-top:0;padding-bottom:0;:has(.ql-list.ql-active){.ql-align{opacity:0.5;cursor:not-allowed;pointer-events:none;}}.ql-formats{margin-right:0;padding:4px;&:not(:first-of-type){border-left:1px solid ", theme.border, ";}button{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:3px;svg{height:65%;}&:hover{background:rgb(222, 224, 226);}&.ql-active{background:rgb(200, 203, 207);}&.ql-disabled{opacity:0.5;cursor:not-allowed;pointer-events:none;&:hover{background:none;}}}}.ql-picker-label{border-color:transparent!important;}.ql-picker-options{border-radius:3px;padding-left:0;padding-right:0;margin-top:3px!important;.ql-picker-item{padding:4px;&:hover{background:rgb(222, 224, 226);}}}}.ql-container{border:1px solid ", theme.border, ";border-top:none;border-radius:0 0 3px 3px;font-size:16px;}.ql-editor[contenteditable='false']{background-color:#b7b7b77a;}.ql-container{height:auto;min-height:10rem;display:flex;flex-direction:column;}.ql-editor{min-height:10rem;height:", height ? height : 'auto', ";background-color:white;overflow-y:auto;resize:", resizable ? 'vertical' : 'none', ";width:100%;", withSoftBreak && _ref, ";}.ql-snow{.ql-tooltip{padding:8px 12px;color:", theme.defaultText, ";background-color:white;border:1px solid ", theme.border, ";box-shadow:0px 2px 4px 0px rgba(0, 0, 0, 0.1);border-radius:5px;&::before{content:'URL:'!important;font-size:14px;}input[type='text']{width:200px;border:1px solid ", theme.border, ";border-radius:3px;padding:4px;font-size:14px;outline:none;&::placeholder{content:'https://www.eksempel.no';}}a{line-height:25px;&.ql-action{line-height:22px;}&.ql-action::after,&.ql-remove::before{color:#1657e2;font-size:14px;font-weight:500;text-decoration:underline;}&.ql-action::after{content:'Rediger'!important;}&.ql-remove::before{content:'Fjern'!important;}&.ql-preview{color:#1657e2;font-size:14px;max-width:250px;vertical-align:middle;white-space:nowrap;}}&.ql-editing{input[type='text']{}a.ql-action::after{content:'Lagre'!important;}}&[data-mode='link']::before{content:'URL:'!important;}&[data-mode='formula']::before{content:'Formel:'!important;}&[data-mode='video']::before{content:'video-URL:'!important;}}}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;"))
20
+ default: (theme, maxHeight, minHeight, maxWidth, width, minWidth, height, resizable, withSoftBreakStyle) => /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;min-height:", minHeight ? `${minHeight}` : '150px', ";max-height:", maxHeight ? `${maxHeight}` : resizable ? 'auto' : '400px', ";width:", width ? `${width}` : '100%', ";min-width:", minWidth ? `${minWidth}` : !!width ? '100%' : 'unset', ";max-width:", maxWidth ? `${maxWidth}` : '100%', ";height:", height ? `${height}` : 'auto', ";.ql-editor li[data-list='ordered'].ql-indent-1>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-2>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-3>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-4>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-5>.ql-ui:before{content:counter(list-1, decimal) '. ';}.ql-editor li[data-list='bullet']:not([class*='ql-indent-'])+li[data-list='ordered']{counter-set:list-0 1;}.ql-editor li[data-list='ordered']:not([class*='ql-indent-'])+li[class*='ql-indent-'][data-list='ordered']{counter-set:list-1 1;}.ql-toolbar{border:1px solid ", theme.border, ";background-color:white;border-radius:3px 3px 0 0;padding-top:0;padding-bottom:0;:has(.ql-list.ql-active){.ql-align{opacity:0.5;cursor:not-allowed;pointer-events:none;}}.ql-formats{margin-right:0;padding:4px;&:not(:first-of-type){border-left:1px solid ", theme.border, ";}button{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:3px;svg{height:65%;}&:hover{background:rgb(222, 224, 226);}&.ql-active{background:rgb(200, 203, 207);}&.ql-disabled{opacity:0.5;cursor:not-allowed;pointer-events:none;&:hover{background:none;}}}}.ql-picker-label{border-color:transparent!important;}.ql-picker-options{border-radius:3px;padding-left:0;padding-right:0;margin-top:3px!important;.ql-picker-item{padding:4px;&:hover{background:rgb(222, 224, 226);}}}}.ql-container{border:1px solid ", theme.border, ";border-top:none;border-radius:0 0 3px 3px;font-size:16px;}.ql-editor[contenteditable='false']{background-color:#b7b7b77a;}.ql-container{height:auto;min-height:10rem;display:flex;flex-direction:column;}.ql-editor{min-height:10rem;height:", height ? height : 'auto', ";background-color:white;overflow-y:auto;resize:", resizable ? 'vertical' : 'none', ";width:100%;", withSoftBreakStyle && _ref, ";}.ql-snow{.ql-tooltip{padding:8px 12px;color:", theme.defaultText, ";background-color:white;border:1px solid ", theme.border, ";box-shadow:0px 2px 4px 0px rgba(0, 0, 0, 0.1);border-radius:5px;&::before{content:'URL:'!important;font-size:14px;}input[type='text']{width:200px;border:1px solid ", theme.border, ";border-radius:3px;padding:4px;font-size:14px;outline:none;&::placeholder{content:'https://www.eksempel.no';}}a{line-height:25px;&.ql-action{line-height:22px;}&.ql-action::after,&.ql-remove::before{color:#1657e2;font-size:14px;font-weight:500;text-decoration:underline;}&.ql-action::after{content:'Rediger'!important;}&.ql-remove::before{content:'Fjern'!important;}&.ql-preview{color:#1657e2;font-size:14px;max-width:250px;vertical-align:middle;white-space:nowrap;}}&.ql-editing{input[type='text']{}a.ql-action::after{content:'Lagre'!important;}}&[data-mode='link']::before{content:'URL:'!important;}&[data-mode='formula']::before{content:'Formel:'!important;}&[data-mode='video']::before{content:'video-URL:'!important;}}}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;"))
21
21
  };
22
22
  const Label = exports.Label = /*#__PURE__*/(0, _base.default)("label", process.env.NODE_ENV === "production" ? {
23
23
  target: "e102ifjr1"
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Html/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,QAAA,MAAM,MAAM;qBACO,SAAS;uBAoFP,SAAS;kBAId,SAAS;iBAIV,MAAM;wBACC,MAAM;;CAkB3B,CAAA;AAED,eAAe,MAAM,CAAA;AAErB,OAAO,EAAE,MAAM,EAAE,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/Html/styles.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAEjD,QAAA,MAAM,MAAM;qBACO,SAAS;uBA4FP,SAAS;kBAId,SAAS;iBAIV,MAAM;wBACC,MAAM;;CAkB3B,CAAA;AAED,eAAe,MAAM,CAAA;AAErB,OAAO,EAAE,MAAM,EAAE,CAAA"}
@@ -7,7 +7,7 @@ exports.styles = exports.default = void 0;
7
7
  var _react = require("@emotion/react");
8
8
  function _EMOTION_STRINGIFIED_CSS_ERROR__() { return "You have tried to stringify object returned from `css` function. It isn't supposed to be used directly (e.g. as value of the `className` prop), but rather handed to emotion so it can handle it (e.g. as value of `css` prop)."; }
9
9
  const styles = exports.styles = {
10
- default: theme => /*#__PURE__*/(0, _react.css)("padding:0px!important;font-size:16px;color:", theme.defaultText, ";max-width:100%;*{max-width:100%;}h1,h2,h3,h4,h5,h6,p,ul,ol{margin:0;}a{color:", theme.primary, ";text-decoration:underline;cursor:pointer;}li::marker{margin-right:0.5em;}p{min-height:22px;margin-bottom:1em;}.ql-indent-1{padding-inline-start:30px;}.ql-indent-2{padding-inline-start:60px;}.ql-indent-3{padding-inline-start:90px;}.ql-indent-4{padding-inline-start:120px;}.ql-indent-5{padding-inline-start:150px;}.ql-indent-6{padding-inline-start:180px;}.ql-indent-7{padding-inline-start:210px;}.ql-indent-8{padding-inline-start:240px;}.ql-indent-9{padding-inline-start:270px;}.ql-indent-10{padding-inline-start:300px;}.video-container{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;}.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%;}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;")),
10
+ default: theme => /*#__PURE__*/(0, _react.css)("padding:0px!important;font-size:16px;color:", theme.defaultText, ";max-width:100%;*{max-width:100%;}h1,h2,h3,h4,h5,h6,p,ul,ol{margin:0;}a{color:", theme.primary, ";text-decoration:underline;cursor:pointer;}ol{list-style-type:decimal;}ul{list-style-type:disc;}li::marker{margin-right:0.5em;}p{min-height:22px;margin-bottom:1em;}.ql-indent-1{padding-inline-start:30px;}.ql-indent-2{padding-inline-start:60px;}.ql-indent-3{padding-inline-start:90px;}.ql-indent-4{padding-inline-start:120px;}.ql-indent-5{padding-inline-start:150px;}.ql-indent-6{padding-inline-start:180px;}.ql-indent-7{padding-inline-start:210px;}.ql-indent-8{padding-inline-start:240px;}.ql-indent-9{padding-inline-start:270px;}.ql-indent-10{padding-inline-start:300px;}.video-container{position:relative;width:100%;padding-bottom:56.25%;height:0;overflow:hidden;}.video-container iframe{position:absolute;top:0;left:0;width:100%;height:100%;}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;")),
11
11
  secondary: theme => /*#__PURE__*/(0, _react.css)({
12
12
  color: theme.secondary
13
13
  }, process.env.NODE_ENV === "production" ? "" : ";label:secondary;"),
@@ -107,7 +107,7 @@ const InModal = exports.InModal = {
107
107
  };
108
108
  const WithoutSoftBreak = exports.WithoutSoftBreak = {
109
109
  render: () => /*#__PURE__*/(0, _jsxRuntime.jsx)(_.default, {
110
- withSoftBreak: false
110
+ withSoftBreakStyle: false
111
111
  }),
112
112
  name: 'Without soft break'
113
113
  };
@@ -97,7 +97,7 @@ const QuillEditor = ({
97
97
  customModules = {
98
98
  toolbar: _config.basicToolbar
99
99
  },
100
- withSoftBreak = true,
100
+ withSoftBreakStyle = true,
101
101
  formats = ['header', 'size', 'bold', 'italic', 'underline', 'list', 'indent', 'link', 'image', 'align'],
102
102
  bounds,
103
103
  onChange,
@@ -412,7 +412,7 @@ const QuillEditor = ({
412
412
  }, [readOnly, quill]);
413
413
  return (0, _jsxRuntime.jsxs)("div", {
414
414
  className: className,
415
- css: theme => [_styles.styles.default(theme, maxHeight, minHeight, width, minWidth, maxWidth, height, resizable, withSoftBreak)],
415
+ css: theme => [_styles.styles.default(theme, maxHeight, minHeight, width, minWidth, maxWidth, height, resizable, withSoftBreakStyle)],
416
416
  children: [label && (0, _jsxRuntime.jsx)(_styles.Label, {
417
417
  children: label
418
418
  }), (0, _jsxRuntime.jsx)("div", {
@@ -39,35 +39,63 @@ interface QuillToolbarConfig {
39
39
  video?: boolean;
40
40
  }
41
41
  interface QuillEditorProps {
42
+ /** The height of the editor */
42
43
  height?: string;
44
+ /** The width of the editor */
43
45
  width?: string;
46
+ /** The minimum height of the editor */
44
47
  minHeight?: string;
48
+ /** The maximum height of the editor */
45
49
  maxHeight?: string;
50
+ /** The minimum width of the editor */
46
51
  minWidth?: string;
52
+ /** The maximum width of the editor */
47
53
  maxWidth?: string;
54
+ /** The label of the editor */
48
55
  label?: string;
56
+ /** Whether the editor is disabled */
49
57
  disabled?: boolean;
58
+ /** The placeholder of the editor */
50
59
  placeholder?: string;
60
+ /** The initial value of the editor */
51
61
  initialValue?: string;
62
+ /** The override value of the editor */
52
63
  overrideValue?: string;
64
+ /** Whether the editor is read only */
53
65
  readOnly?: boolean;
66
+ /** Whether to paste as text */
54
67
  pasteAsText?: boolean;
68
+ /** The type of the editor */
55
69
  type?: 'basic' | 'rich' | 'full' | 'custom';
70
+ /** The custom modules of the editor */
56
71
  customModules?: {
57
72
  toolbar?: QuillToolbarConfig[];
58
73
  };
59
- withSoftBreak?: boolean;
74
+ /** The editor will always use soft breaks, but this will turn off the styles. E.g. <p> will not have a margin-bottom. */
75
+ withSoftBreakStyle?: boolean;
76
+ /** Whether to resize the editor */
60
77
  resize?: boolean | 'both';
78
+ /** The formats of the editor */
61
79
  formats?: string[];
80
+ /** The bounds of the editor */
62
81
  bounds?: string | HTMLElement;
82
+ /** The onChange event of the editor */
63
83
  onChange?: (content: string, length: number) => void;
84
+ /** The onFocus event of the editor */
64
85
  onFocus?: (html: string) => void;
86
+ /** The onBlur event of the editor */
65
87
  onBlur?: (html: string) => void;
88
+ /** The invalid message of the editor */
66
89
  invalidMessage?: string;
90
+ /** The style of the editor */
67
91
  style?: React.CSSProperties;
92
+ /** The maximum length of the editor */
68
93
  maxlenght?: number;
94
+ /** Whether to show the word count */
69
95
  wordCount?: boolean;
96
+ /** Whether to resize the editor */
70
97
  resizable?: boolean;
98
+ /** The class name of the editor */
71
99
  className?: string;
72
100
  }
73
101
  interface QuillEditorRef {
@@ -1 +1 @@
1
- {"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/models.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,UAAU,kBAAkB;IAE1B,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,MAAM,CAAC,EAAE,OAAO,CAAA;IAGhB,UAAU,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KAC/B,CAAA;IACD,yHAAyH;IACzH,kBAAkB,CAAC,EAAE,OAAO,CAAA;IAC5B,mCAAmC;IACnC,MAAM,CAAC,EAAE,OAAO,GAAG,MAAM,CAAA;IACzB,gCAAgC;IAChC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAA;IAC7B,uCAAuC;IACvC,QAAQ,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,IAAI,CAAA;IACpD,sCAAsC;IACtC,OAAO,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAChC,qCAAqC;IACrC,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/B,wCAAwC;IACxC,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,KAAK,CAAC,aAAa,CAAA;IAC3B,uCAAuC;IACvC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,qCAAqC;IACrC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,mCAAmC;IACnC,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,UAAU,cAAc;IACtB,QAAQ,EAAE,MAAM,GAAG,CAAA;IACnB,SAAS,EAAE,MAAM,cAAc,GAAG,IAAI,CAAA;CACvC;AAED,UAAU,QAAQ;IAChB,OAAO,EAAE,KAAK,GAAG,IAAI,CAAA;CACtB;AAED,OAAO,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,cAAc,EAAE,QAAQ,EAAE,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import { IAppTheme } from '../../app-shell/theme';
2
2
  export declare const styles: {
3
- default: (theme: IAppTheme, maxHeight?: string, minHeight?: string, maxWidth?: string, width?: string, minWidth?: string, height?: string, resizable?: boolean, withSoftBreak?: boolean) => import("@emotion/react").SerializedStyles;
3
+ default: (theme: IAppTheme, maxHeight?: string, minHeight?: string, maxWidth?: string, width?: string, minWidth?: string, height?: string, resizable?: boolean, withSoftBreakStyle?: boolean) => import("@emotion/react").SerializedStyles;
4
4
  };
5
5
  export declare const Label: import("@emotion/styled").StyledComponent<{
6
6
  theme?: import("@emotion/react").Theme;
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,eAAO,MAAM,MAAM;qBAER,SAAS,cACJ,MAAM,cACN,MAAM,aACP,MAAM,UACT,MAAM,aACH,MAAM,WACR,MAAM,cACH,OAAO,kBACH,OAAO;CAgO1B,CAAA;AAED,eAAO,MAAM,KAAK;;SA5Nd,MAAG,WAAW;kHAiOjB,CAAA;AAED,eAAO,MAAM,YAAY;;SAnOrB,MAAG,WAAW;yGA6OjB,CAAA"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/packages/core/QuillEditor/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACjD,eAAO,MAAM,MAAM;qBAER,SAAS,cACJ,MAAM,cACN,MAAM,aACP,MAAM,UACT,MAAM,aACH,MAAM,WACR,MAAM,cACH,OAAO,uBACE,OAAO;CAgO/B,CAAA;AAED,eAAO,MAAM,KAAK;;SA7NuD,MACrE,WAAS;kHAiOZ,CAAA;AAED,eAAO,MAAM,YAAY;;SApOgD,MACrE,WAAS;yGA6OZ,CAAA"}
@@ -17,7 +17,7 @@ var _ref = process.env.NODE_ENV === "production" ? {
17
17
  toString: _EMOTION_STRINGIFIED_CSS_ERROR__
18
18
  };
19
19
  const styles = exports.styles = {
20
- default: (theme, maxHeight, minHeight, maxWidth, width, minWidth, height, resizable, withSoftBreak) => /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;min-height:", minHeight ? `${minHeight}` : '150px', ";max-height:", maxHeight ? `${maxHeight}` : resizable ? 'auto' : '400px', ";width:", width ? `${width}` : '100%', ";min-width:", minWidth ? `${minWidth}` : !!width ? '100%' : 'unset', ";max-width:", maxWidth ? `${maxWidth}` : '100%', ";height:", height ? `${height}` : 'auto', ";.ql-editor li[data-list='ordered'].ql-indent-1>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-2>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-3>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-4>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-5>.ql-ui:before{content:counter(list-1, decimal) '. ';}.ql-editor li[data-list='bullet']:not([class*='ql-indent-'])+li[data-list='ordered']{counter-set:list-0 1;}.ql-editor li[data-list='ordered']:not([class*='ql-indent-'])+li[class*='ql-indent-'][data-list='ordered']{counter-set:list-1 1;}.ql-toolbar{border:1px solid ", theme.border, ";background-color:white;border-radius:3px 3px 0 0;padding-top:0;padding-bottom:0;:has(.ql-list.ql-active){.ql-align{opacity:0.5;cursor:not-allowed;pointer-events:none;}}.ql-formats{margin-right:0;padding:4px;&:not(:first-of-type){border-left:1px solid ", theme.border, ";}button{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:3px;svg{height:65%;}&:hover{background:rgb(222, 224, 226);}&.ql-active{background:rgb(200, 203, 207);}&.ql-disabled{opacity:0.5;cursor:not-allowed;pointer-events:none;&:hover{background:none;}}}}.ql-picker-label{border-color:transparent!important;}.ql-picker-options{border-radius:3px;padding-left:0;padding-right:0;margin-top:3px!important;.ql-picker-item{padding:4px;&:hover{background:rgb(222, 224, 226);}}}}.ql-container{border:1px solid ", theme.border, ";border-top:none;border-radius:0 0 3px 3px;font-size:16px;}.ql-editor[contenteditable='false']{background-color:#b7b7b77a;}.ql-container{height:auto;min-height:10rem;display:flex;flex-direction:column;}.ql-editor{min-height:10rem;height:", height ? height : 'auto', ";background-color:white;overflow-y:auto;resize:", resizable ? 'vertical' : 'none', ";width:100%;", withSoftBreak && _ref, ";}.ql-snow{.ql-tooltip{padding:8px 12px;color:", theme.defaultText, ";background-color:white;border:1px solid ", theme.border, ";box-shadow:0px 2px 4px 0px rgba(0, 0, 0, 0.1);border-radius:5px;&::before{content:'URL:'!important;font-size:14px;}input[type='text']{width:200px;border:1px solid ", theme.border, ";border-radius:3px;padding:4px;font-size:14px;outline:none;&::placeholder{content:'https://www.eksempel.no';}}a{line-height:25px;&.ql-action{line-height:22px;}&.ql-action::after,&.ql-remove::before{color:#1657e2;font-size:14px;font-weight:500;text-decoration:underline;}&.ql-action::after{content:'Rediger'!important;}&.ql-remove::before{content:'Fjern'!important;}&.ql-preview{color:#1657e2;font-size:14px;max-width:250px;vertical-align:middle;white-space:nowrap;}}&.ql-editing{input[type='text']{}a.ql-action::after{content:'Lagre'!important;}}&[data-mode='link']::before{content:'URL:'!important;}&[data-mode='formula']::before{content:'Formel:'!important;}&[data-mode='video']::before{content:'video-URL:'!important;}}}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;"))
20
+ default: (theme, maxHeight, minHeight, maxWidth, width, minWidth, height, resizable, withSoftBreakStyle) => /*#__PURE__*/(0, _react.css)("display:flex;flex-direction:column;min-height:", minHeight ? `${minHeight}` : '150px', ";max-height:", maxHeight ? `${maxHeight}` : resizable ? 'auto' : '400px', ";width:", width ? `${width}` : '100%', ";min-width:", minWidth ? `${minWidth}` : !!width ? '100%' : 'unset', ";max-width:", maxWidth ? `${maxWidth}` : '100%', ";height:", height ? `${height}` : 'auto', ";.ql-editor li[data-list='ordered'].ql-indent-1>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-2>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-3>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-4>.ql-ui:before,.ql-editor li[data-list='ordered'].ql-indent-5>.ql-ui:before{content:counter(list-1, decimal) '. ';}.ql-editor li[data-list='bullet']:not([class*='ql-indent-'])+li[data-list='ordered']{counter-set:list-0 1;}.ql-editor li[data-list='ordered']:not([class*='ql-indent-'])+li[class*='ql-indent-'][data-list='ordered']{counter-set:list-1 1;}.ql-toolbar{border:1px solid ", theme.border, ";background-color:white;border-radius:3px 3px 0 0;padding-top:0;padding-bottom:0;:has(.ql-list.ql-active){.ql-align{opacity:0.5;cursor:not-allowed;pointer-events:none;}}.ql-formats{margin-right:0;padding:4px;&:not(:first-of-type){border-left:1px solid ", theme.border, ";}button{width:34px;height:34px;display:flex;align-items:center;justify-content:center;border-radius:3px;svg{height:65%;}&:hover{background:rgb(222, 224, 226);}&.ql-active{background:rgb(200, 203, 207);}&.ql-disabled{opacity:0.5;cursor:not-allowed;pointer-events:none;&:hover{background:none;}}}}.ql-picker-label{border-color:transparent!important;}.ql-picker-options{border-radius:3px;padding-left:0;padding-right:0;margin-top:3px!important;.ql-picker-item{padding:4px;&:hover{background:rgb(222, 224, 226);}}}}.ql-container{border:1px solid ", theme.border, ";border-top:none;border-radius:0 0 3px 3px;font-size:16px;}.ql-editor[contenteditable='false']{background-color:#b7b7b77a;}.ql-container{height:auto;min-height:10rem;display:flex;flex-direction:column;}.ql-editor{min-height:10rem;height:", height ? height : 'auto', ";background-color:white;overflow-y:auto;resize:", resizable ? 'vertical' : 'none', ";width:100%;", withSoftBreakStyle && _ref, ";}.ql-snow{.ql-tooltip{padding:8px 12px;color:", theme.defaultText, ";background-color:white;border:1px solid ", theme.border, ";box-shadow:0px 2px 4px 0px rgba(0, 0, 0, 0.1);border-radius:5px;&::before{content:'URL:'!important;font-size:14px;}input[type='text']{width:200px;border:1px solid ", theme.border, ";border-radius:3px;padding:4px;font-size:14px;outline:none;&::placeholder{content:'https://www.eksempel.no';}}a{line-height:25px;&.ql-action{line-height:22px;}&.ql-action::after,&.ql-remove::before{color:#1657e2;font-size:14px;font-weight:500;text-decoration:underline;}&.ql-action::after{content:'Rediger'!important;}&.ql-remove::before{content:'Fjern'!important;}&.ql-preview{color:#1657e2;font-size:14px;max-width:250px;vertical-align:middle;white-space:nowrap;}}&.ql-editing{input[type='text']{}a.ql-action::after{content:'Lagre'!important;}}&[data-mode='link']::before{content:'URL:'!important;}&[data-mode='formula']::before{content:'Formel:'!important;}&[data-mode='video']::before{content:'video-URL:'!important;}}}" + (process.env.NODE_ENV === "production" ? "" : ";label:default;"))
21
21
  };
22
22
  const Label = exports.Label = /*#__PURE__*/(0, _base.default)("label", process.env.NODE_ENV === "production" ? {
23
23
  target: "e102ifjr1"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bbl-digital/snorre",
3
- "version": "4.3.0",
3
+ "version": "4.3.2",
4
4
  "description": "Design library for BBL Digital",
5
5
  "license": "MIT",
6
6
  "main": "./lib/index.js",