ublo-lib 1.38.4 → 1.38.6

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,9 +1,50 @@
1
1
  .form {
2
+ --ds-sans-serif-font: var(
3
+ --ublo-content-font,
4
+ system-ui,
5
+ -apple-system,
6
+ BlinkMacSystemFont,
7
+ "Segoe UI",
8
+ "Roboto",
9
+ "Oxygen",
10
+ "Ubuntu",
11
+ "Cantarell",
12
+ "Fira Sans",
13
+ "Droid Sans",
14
+ "Helvetica Neue",
15
+ Arial,
16
+ sans-serif
17
+ );
18
+ --ds-mono-font: var(
19
+ --ublo-code-font,
20
+ ui-monospace,
21
+ Menlo,
22
+ Monaco,
23
+ "Cascadia Mono",
24
+ "Segoe UI Mono",
25
+ "Roboto Mono",
26
+ "Oxygen Mono",
27
+ "Ubuntu Monospace",
28
+ "Source Code Pro",
29
+ "Fira Mono",
30
+ "Droid Sans Mono",
31
+ "Courier New",
32
+ monospace
33
+ );
34
+
35
+ --ds-primary: var(--ublo-primary-color, #073ff8);
36
+ --ds-secondary: var(--ublo-secondary-color, #4177f6);
37
+
2
38
  max-width: 100%;
3
39
  display: flex;
4
40
  flex-direction: column;
5
41
  gap: 12px;
6
42
  padding: 20px;
43
+ font-family: var(--ds-sans-serif-font);
44
+ }
45
+
46
+ .form * {
47
+ font-family: var(--ds-sans-serif-font);
7
48
  }
8
49
 
9
50
  .title {
@@ -1,10 +1,51 @@
1
1
  .dialog {
2
+ --ds-sans-serif-font: var(
3
+ --ublo-content-font,
4
+ system-ui,
5
+ -apple-system,
6
+ BlinkMacSystemFont,
7
+ "Segoe UI",
8
+ "Roboto",
9
+ "Oxygen",
10
+ "Ubuntu",
11
+ "Cantarell",
12
+ "Fira Sans",
13
+ "Droid Sans",
14
+ "Helvetica Neue",
15
+ Arial,
16
+ sans-serif
17
+ );
18
+ --ds-mono-font: var(
19
+ --ublo-code-font,
20
+ ui-monospace,
21
+ Menlo,
22
+ Monaco,
23
+ "Cascadia Mono",
24
+ "Segoe UI Mono",
25
+ "Roboto Mono",
26
+ "Oxygen Mono",
27
+ "Ubuntu Monospace",
28
+ "Source Code Pro",
29
+ "Fira Mono",
30
+ "Droid Sans Mono",
31
+ "Courier New",
32
+ monospace
33
+ );
34
+
35
+ --ds-primary: var(--ublo-primary-color, #073ff8);
36
+ --ds-secondary: var(--ublo-secondary-color, #4177f6);
37
+
2
38
  display: flex;
3
39
  flex-direction: column;
4
40
  padding: 16px;
41
+ font-family: var(--ds-sans-serif-font);
5
42
  pointer-events: auto;
6
43
  }
7
44
 
45
+ .dialog * {
46
+ font-family: var(--ds-sans-serif-font);
47
+ }
48
+
8
49
  .title {
9
50
  margin-bottom: 8px;
10
51
  font-size: 24px;
@@ -9,7 +9,8 @@ type Props = {
9
9
  msemServicesUrl: string;
10
10
  target: HTMLElement | null;
11
11
  resorts?: Resort[];
12
+ close: () => void;
12
13
  };
13
- export default function MseMPresetLinker({ lang, channel, resort, msemServicesUrl, target, resorts, }: Props): import("react/jsx-runtime").JSX.Element;
14
+ export default function MseMPresetLinker({ lang, channel, resort, msemServicesUrl, target, resorts, close, }: Props): import("react/jsx-runtime").JSX.Element;
14
15
  export {};
15
16
  //# sourceMappingURL=msem-preset-linker.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"msem-preset-linker.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem-preset-linker/msem-preset-linker.tsx"],"names":[],"mappings":"AAGA,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,IAAI,EACJ,OAAO,EACP,MAAM,EACN,eAAe,EACf,MAAM,EACN,OAAO,GACR,EAAE,KAAK,2CA2BP"}
1
+ {"version":3,"file":"msem-preset-linker.d.ts","sourceRoot":"","sources":["../../../../src/future/components/msem-preset-linker/msem-preset-linker.tsx"],"names":[],"mappings":"AAGA,KAAK,MAAM,GAAG;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,IAAI,GAAG,IAAI,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,eAAe,EAAE,MAAM,CAAC;IACxB,MAAM,EAAE,WAAW,GAAG,IAAI,CAAC;IAC3B,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,KAAK,EAAE,MAAM,IAAI,CAAC;CACnB,CAAC;AAIF,MAAM,CAAC,OAAO,UAAU,gBAAgB,CAAC,EACvC,IAAI,EACJ,OAAO,EACP,MAAM,EACN,eAAe,EACf,MAAM,EACN,OAAO,EACP,KAAK,GACN,EAAE,KAAK,2CA8BP"}
@@ -1,9 +1,12 @@
1
1
  import { jsx as _jsx } from "react/jsx-runtime";
2
2
  import EditorDialog from "../msem-preset-editor/editor-dialog";
3
3
  const PRESET_ATTRIBUTE = "data-msem-preset";
4
- export default function MseMPresetLinker({ lang, channel, resort, msemServicesUrl, target, resorts, }) {
4
+ export default function MseMPresetLinker({ lang, channel, resort, msemServicesUrl, target, resorts, close, }) {
5
5
  const link = target?.querySelector(":scope > a");
6
6
  const urlOverride = link?.getAttribute("href") || undefined;
7
+ const closeEditor = () => {
8
+ close();
9
+ };
7
10
  const updatePreset = (newPreset) => {
8
11
  if (newPreset) {
9
12
  target?.setAttribute(PRESET_ATTRIBUTE, JSON.stringify(newPreset));
@@ -11,7 +14,7 @@ export default function MseMPresetLinker({ lang, channel, resort, msemServicesUr
11
14
  else {
12
15
  target?.removeAttribute(PRESET_ATTRIBUTE);
13
16
  }
17
+ closeEditor();
14
18
  };
15
- const closeEditor = () => { };
16
19
  return (_jsx(EditorDialog, { lang: lang, channel: channel, resort: resort, msemServicesUrl: msemServicesUrl, target: target, updatePreset: updatePreset, closeEditor: closeEditor, urlOverride: urlOverride, resorts: resorts }));
17
20
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ublo-lib",
3
- "version": "1.38.4",
3
+ "version": "1.38.6",
4
4
  "peerDependencies": {
5
5
  "dt-design-system": "^3.9.9",
6
6
  "leaflet": "^1.9.1",