@olenbetong/synergi-react 4.3.0 → 5.0.0

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.
Files changed (81) hide show
  1. package/dist/styles/styles.css +1 -1
  2. package/dist/styles/styles.css.map +1 -1
  3. package/es/components/CodeEditor/CodeEditor.css +6 -6
  4. package/es/components/MergeProgressDialog/MergeProgressDialogDs.d.ts +7 -0
  5. package/es/components/MergeProgressDialog/MergeProgressDialogDs.js +20 -0
  6. package/es/components/MergeProgressDialog/index.d.ts +3 -8
  7. package/es/components/MergeProgressDialog/index.js +4 -113
  8. package/es/components/MergeProgressDialog/useMergeJob.d.ts +36 -0
  9. package/es/components/MergeProgressDialog/useMergeJob.js +141 -0
  10. package/es/components/ProgressBar/index.css +1 -1
  11. package/es/components/Toolbar/Toolbar.css +137 -137
  12. package/es/elements/ElementLookupDialog/BarcodeScanner/BarcodeScanner.css +81 -0
  13. package/es/elements/ElementLookupDialog/BarcodeScanner/DeadIcon.d.ts +2 -2
  14. package/es/elements/ElementLookupDialog/BarcodeScanner/DeadIcon.js +1 -2
  15. package/es/elements/ElementLookupDialog/BarcodeScanner/Error.js +3 -29
  16. package/es/elements/ElementLookupDialog/BarcodeScanner/index.d.ts +1 -0
  17. package/es/elements/ElementLookupDialog/BarcodeScanner/index.js +3 -28
  18. package/es/index.css +1 -1
  19. package/es/index.d.ts +2 -1
  20. package/es/index.js +2 -1
  21. package/es/mui/index.d.ts +1 -0
  22. package/es/mui/index.js +1 -0
  23. package/es/test/setup.d.ts +5 -0
  24. package/package.json +21 -14
  25. package/src/chrome/AppShell/index.tsx +29 -29
  26. package/src/chrome/openReport.ts +34 -34
  27. package/src/colorScheme.ts +125 -125
  28. package/src/components/CodeEditor/CodeEditor.css +6 -6
  29. package/src/components/CodeEditor/CodeEditor.tsx +173 -173
  30. package/src/components/CodeEditor/index.ts +1 -1
  31. package/src/components/DateNavigator/index.tsx +186 -186
  32. package/src/components/FilePond.tsx +312 -312
  33. package/src/components/ImageEditor/ImageEditor.tsx +348 -348
  34. package/src/components/ImageEditor/index.ts +9 -9
  35. package/src/components/ImageEditor/plugins/cropPlugin/CropOverlay.tsx +165 -165
  36. package/src/components/ImageEditor/plugins/cropPlugin/CropToolbar.tsx +48 -48
  37. package/src/components/ImageEditor/plugins/cropPlugin/useCropTool.ts +405 -405
  38. package/src/components/ImageEditor/plugins/redactPlugin/RedactToolbar.tsx +47 -47
  39. package/src/components/ImageEditor/plugins/zoomPlugin/ZoomContext.tsx +23 -23
  40. package/src/components/ImageEditor/plugins/zoomPlugin/ZoomControls.tsx +40 -40
  41. package/src/components/ImageEditor/useActiveTool.ts +21 -21
  42. package/src/components/ImageEditor/useEdgeDetection.ts +319 -319
  43. package/src/components/ImageEditor/useImageHistory.ts +197 -197
  44. package/src/components/ImageEditor/useOpenCV.ts +184 -184
  45. package/src/components/LinkedCardList/index.scss +95 -95
  46. package/src/components/MergeProgressDialog/MergeProgressDialogDs.tsx +91 -0
  47. package/src/components/MergeProgressDialog/index.tsx +5 -136
  48. package/src/components/MergeProgressDialog/useMergeJob.ts +169 -0
  49. package/src/components/PageBanner/index.tsx +80 -80
  50. package/src/components/PdfViewer/PdfViewer.tsx +158 -158
  51. package/src/components/ProgressBar/index.scss +23 -54
  52. package/src/components/SplitContainer/index.tsx +333 -333
  53. package/src/components/Toolbar/Toolbar.css +137 -137
  54. package/src/components/Toolbar/index.tsx +265 -265
  55. package/src/designsystemet-web-types.d.ts +24 -24
  56. package/src/elements/ElementDamage/DamageFormButtons.tsx +35 -35
  57. package/src/elements/ElementDamage/DescriptionInput.tsx +120 -120
  58. package/src/elements/ElementDamage/DuplicateDamage/DesktopView.tsx +82 -82
  59. package/src/elements/ElementDamage/DuplicateDamage/DublicateElementDamageDialog.tsx +67 -67
  60. package/src/elements/ElementDamage/DuplicateDamage/PhoneView.tsx +45 -45
  61. package/src/elements/ElementDamage/ElementNumberTextField.tsx +41 -41
  62. package/src/elements/ElementDamage/RegisterFix.tsx +100 -100
  63. package/src/elements/ElementDamage/SubmitButtons.tsx +40 -40
  64. package/src/elements/ElementDamage/TransportElementSelect.tsx +52 -52
  65. package/src/elements/ElementLookup.tsx +123 -123
  66. package/src/elements/ElementLookupDialog/BarcodeScanner/BarcodeScanner.css +81 -0
  67. package/src/elements/ElementLookupDialog/BarcodeScanner/DeadIcon.tsx +4 -4
  68. package/src/elements/ElementLookupDialog/BarcodeScanner/Error.tsx +7 -36
  69. package/src/elements/ElementLookupDialog/BarcodeScanner/index.tsx +20 -49
  70. package/src/elements/ElementLookupDialog/HIDScanner/index.tsx +67 -67
  71. package/src/elements/ElementLookupDialog/Manual/ManualForm.tsx +141 -141
  72. package/src/elements/ElementLookupDialog/index.tsx +226 -226
  73. package/src/elements/ElementLookupDialog/utils/Giai.ts +209 -209
  74. package/src/elements/ProjectSelect.tsx +130 -130
  75. package/src/elements/index.ts +15 -15
  76. package/src/filter/index.ts +34 -34
  77. package/src/i18n.ts +13 -13
  78. package/src/index.ts +5 -1
  79. package/src/mui/MuiThemeProvider.tsx +135 -135
  80. package/src/mui/index.ts +1 -0
  81. package/src/test/setup.ts +23 -8
@@ -1,158 +1,158 @@
1
- import { useEffect, useMemo, useRef, useState } from "react";
2
- import { Document, Page, pdfjs } from "react-pdf";
3
- import "./PdfViewer.css";
4
-
5
- /*
6
- * pdf.js parses in a Web Worker that must be loaded from a URL on the page's origin. On the
7
- * 2026 templates pdfjs-dist comes from the platform bundle through the import map, and the
8
- * platform serves the worker next to it - so resolve the specifier the way the browser does
9
- * and step up one level. This makes the viewer platform-only: off the platform (a legacy
10
- * template bundling this package) the specifier does not resolve, pdf.js logs a warning and
11
- * parses on the main thread. A `new URL(..., import.meta.url)` fallback would make Vite emit
12
- * the 1.2 MB worker into every consumer's build output without anything ever serving it.
13
- */
14
- function platformWorkerUrl(): string | undefined {
15
- try {
16
- return new URL("../pdf.worker.min.js", import.meta.resolve("pdfjs-dist")).toString();
17
- } catch {
18
- console.warn("PdfViewer: pdfjs-dist is not on the page's import map; pdf.js will parse on the main thread.");
19
- return undefined;
20
- }
21
- }
22
-
23
- let workerUrl = platformWorkerUrl();
24
- if (workerUrl) {
25
- pdfjs.GlobalWorkerOptions.workerSrc = workerUrl;
26
- }
27
-
28
- type PdfViewerProps = { url?: string; file?: string | Blob | ArrayBuffer };
29
-
30
- export function PdfViewer({ url, file }: PdfViewerProps) {
31
- let [numPages, setNumPages] = useState(0);
32
- let [error, setError] = useState<string | null>(null);
33
- let containerRef = useRef<HTMLDivElement | null>(null);
34
- let [containerWidth, setContainerWidth] = useState<number>(0);
35
- let [containerHeight, setContainerHeight] = useState<number>(0);
36
- let [scale, setScale] = useState<number>(1);
37
- let [naturalPageSize, setNaturalPageSize] = useState<{
38
- w: number;
39
- h: number;
40
- } | null>(null);
41
-
42
- const pages = useMemo(() => Array.from({ length: numPages }, (_, i) => i + 1), [numPages]);
43
-
44
- // Observe container size to support fit-to-page calculations
45
- useEffect(() => {
46
- let el = containerRef.current;
47
- if (!el) return;
48
- let ro = new ResizeObserver((entries) => {
49
- let cr = entries[0].contentRect;
50
- setContainerWidth(Math.max(1, Math.floor(cr.width)));
51
- setContainerHeight(Math.max(1, Math.floor(cr.height)));
52
- });
53
- ro.observe(el);
54
- setContainerWidth(Math.max(1, Math.floor(el.clientWidth)));
55
- setContainerHeight(Math.max(1, Math.floor(el.clientHeight)));
56
- return () => ro.disconnect();
57
- }, []);
58
-
59
- // Intercept browser zoom gestures and zoom the PDF instead
60
- useEffect(() => {
61
- let el = containerRef.current;
62
- if (!el) return;
63
-
64
- const clamp = (v: number, min: number, max: number) => Math.min(max, Math.max(min, v));
65
- const zoomBy = (delta: number) => {
66
- // Smooth exponential zoom for trackpads/mice
67
- const factor = Math.exp(delta * 0.001);
68
- setScale((s) => clamp(s * factor, 0.25, 5));
69
- };
70
-
71
- const onWheel = (e: WheelEvent) => {
72
- if (e.ctrlKey) {
73
- // ctrl+wheel is usually browser zoom; override for PDF zoom
74
- e.preventDefault();
75
- zoomBy(-e.deltaY);
76
- }
77
- };
78
-
79
- const onKeyDown = (e: KeyboardEvent) => {
80
- if (!e.ctrlKey) return;
81
- const key = e.key;
82
- if (key === "+" || key === "=" || key === "Add") {
83
- e.preventDefault();
84
- setScale((s) => clamp(s * 1.1, 0.25, 5));
85
- } else if (key === "-" || key === "_" || key === "Subtract") {
86
- e.preventDefault();
87
- setScale((s) => clamp(s / 1.1, 0.25, 5));
88
- } else if (key === "0") {
89
- e.preventDefault();
90
- setScale(1);
91
- }
92
- };
93
-
94
- el.addEventListener("wheel", onWheel, { passive: false });
95
- window.addEventListener("keydown", onKeyDown, { passive: false });
96
- return () => {
97
- el.removeEventListener("wheel", onWheel as EventListener);
98
- window.removeEventListener("keydown", onKeyDown as EventListener);
99
- };
100
- }, []);
101
-
102
- // When source changes, reset auto-fit baseline
103
- useEffect(() => {
104
- setNaturalPageSize(null);
105
- setScale(1);
106
- }, [url, file]);
107
-
108
- // Compute base width to fit full page into container, then apply zoom scale.
109
- // If we don't yet know page's natural size, default to fit-to-width.
110
- const fitBaseWidth = useMemo(() => {
111
- if (!naturalPageSize) return containerWidth || 1000;
112
- const { w, h } = naturalPageSize;
113
- if (w <= 0 || h <= 0) return containerWidth || 1000;
114
- // width to fit by height: containerHeight * (w/h)
115
- const widthByHeight = (containerHeight || 1000) * (w / h);
116
- // Fit to page means respecting both constraints
117
- return Math.min(Math.max(1, containerWidth || 1000), Math.max(1, widthByHeight));
118
- }, [naturalPageSize, containerWidth, containerHeight]);
119
-
120
- const pageWidth = Math.max(1, Math.round(fitBaseWidth * scale));
121
-
122
- return (
123
- <div ref={containerRef} className="pdfViewerContainer">
124
- <div className="pdfViewerContent">
125
- <Document
126
- file={file ?? url}
127
- onLoadSuccess={({ numPages }) => setNumPages(numPages)}
128
- onLoadError={(e) => setError((e as Error)?.message ?? "Failed to load PDF")}
129
- >
130
- {pages.map((pageNumber) => (
131
- <Page
132
- key={pageNumber}
133
- pageNumber={pageNumber}
134
- renderTextLayer={false}
135
- renderAnnotationLayer={false}
136
- width={pageWidth}
137
- onLoadSuccess={(p) => {
138
- // Capture natural page size once for fit-to-page calculation
139
- try {
140
- // pdf.js viewport at scale 1
141
- const vp = p.getViewport({ scale: 1 });
142
- const w = Number(vp?.width) || Number((p as any).width) || 0;
143
- const h = Number(vp?.height) || Number((p as any).height) || 0;
144
- if (w > 0 && h > 0 && !naturalPageSize) {
145
- setNaturalPageSize({ w, h });
146
- }
147
- } catch {
148
- // Ignore, fallback to fit-to-width when unknown
149
- }
150
- }}
151
- />
152
- ))}
153
- </Document>
154
- </div>
155
- {error && <div style={{ color: "#b00020", padding: 8 }}>Error loading PDF: {error}</div>}
156
- </div>
157
- );
158
- }
1
+ import { useEffect, useMemo, useRef, useState } from "react";
2
+ import { Document, Page, pdfjs } from "react-pdf";
3
+ import "./PdfViewer.css";
4
+
5
+ /*
6
+ * pdf.js parses in a Web Worker that must be loaded from a URL on the page's origin. On the
7
+ * 2026 templates pdfjs-dist comes from the platform bundle through the import map, and the
8
+ * platform serves the worker next to it - so resolve the specifier the way the browser does
9
+ * and step up one level. This makes the viewer platform-only: off the platform (a legacy
10
+ * template bundling this package) the specifier does not resolve, pdf.js logs a warning and
11
+ * parses on the main thread. A `new URL(..., import.meta.url)` fallback would make Vite emit
12
+ * the 1.2 MB worker into every consumer's build output without anything ever serving it.
13
+ */
14
+ function platformWorkerUrl(): string | undefined {
15
+ try {
16
+ return new URL("../pdf.worker.min.js", import.meta.resolve("pdfjs-dist")).toString();
17
+ } catch {
18
+ console.warn("PdfViewer: pdfjs-dist is not on the page's import map; pdf.js will parse on the main thread.");
19
+ return undefined;
20
+ }
21
+ }
22
+
23
+ let workerUrl = platformWorkerUrl();
24
+ if (workerUrl) {
25
+ pdfjs.GlobalWorkerOptions.workerSrc = workerUrl;
26
+ }
27
+
28
+ type PdfViewerProps = { url?: string; file?: string | Blob | ArrayBuffer };
29
+
30
+ export function PdfViewer({ url, file }: PdfViewerProps) {
31
+ let [numPages, setNumPages] = useState(0);
32
+ let [error, setError] = useState<string | null>(null);
33
+ let containerRef = useRef<HTMLDivElement | null>(null);
34
+ let [containerWidth, setContainerWidth] = useState<number>(0);
35
+ let [containerHeight, setContainerHeight] = useState<number>(0);
36
+ let [scale, setScale] = useState<number>(1);
37
+ let [naturalPageSize, setNaturalPageSize] = useState<{
38
+ w: number;
39
+ h: number;
40
+ } | null>(null);
41
+
42
+ const pages = useMemo(() => Array.from({ length: numPages }, (_, i) => i + 1), [numPages]);
43
+
44
+ // Observe container size to support fit-to-page calculations
45
+ useEffect(() => {
46
+ let el = containerRef.current;
47
+ if (!el) return;
48
+ let ro = new ResizeObserver((entries) => {
49
+ let cr = entries[0].contentRect;
50
+ setContainerWidth(Math.max(1, Math.floor(cr.width)));
51
+ setContainerHeight(Math.max(1, Math.floor(cr.height)));
52
+ });
53
+ ro.observe(el);
54
+ setContainerWidth(Math.max(1, Math.floor(el.clientWidth)));
55
+ setContainerHeight(Math.max(1, Math.floor(el.clientHeight)));
56
+ return () => ro.disconnect();
57
+ }, []);
58
+
59
+ // Intercept browser zoom gestures and zoom the PDF instead
60
+ useEffect(() => {
61
+ let el = containerRef.current;
62
+ if (!el) return;
63
+
64
+ const clamp = (v: number, min: number, max: number) => Math.min(max, Math.max(min, v));
65
+ const zoomBy = (delta: number) => {
66
+ // Smooth exponential zoom for trackpads/mice
67
+ const factor = Math.exp(delta * 0.001);
68
+ setScale((s) => clamp(s * factor, 0.25, 5));
69
+ };
70
+
71
+ const onWheel = (e: WheelEvent) => {
72
+ if (e.ctrlKey) {
73
+ // ctrl+wheel is usually browser zoom; override for PDF zoom
74
+ e.preventDefault();
75
+ zoomBy(-e.deltaY);
76
+ }
77
+ };
78
+
79
+ const onKeyDown = (e: KeyboardEvent) => {
80
+ if (!e.ctrlKey) return;
81
+ const key = e.key;
82
+ if (key === "+" || key === "=" || key === "Add") {
83
+ e.preventDefault();
84
+ setScale((s) => clamp(s * 1.1, 0.25, 5));
85
+ } else if (key === "-" || key === "_" || key === "Subtract") {
86
+ e.preventDefault();
87
+ setScale((s) => clamp(s / 1.1, 0.25, 5));
88
+ } else if (key === "0") {
89
+ e.preventDefault();
90
+ setScale(1);
91
+ }
92
+ };
93
+
94
+ el.addEventListener("wheel", onWheel, { passive: false });
95
+ window.addEventListener("keydown", onKeyDown, { passive: false });
96
+ return () => {
97
+ el.removeEventListener("wheel", onWheel as EventListener);
98
+ window.removeEventListener("keydown", onKeyDown as EventListener);
99
+ };
100
+ }, []);
101
+
102
+ // When source changes, reset auto-fit baseline
103
+ useEffect(() => {
104
+ setNaturalPageSize(null);
105
+ setScale(1);
106
+ }, [url, file]);
107
+
108
+ // Compute base width to fit full page into container, then apply zoom scale.
109
+ // If we don't yet know page's natural size, default to fit-to-width.
110
+ const fitBaseWidth = useMemo(() => {
111
+ if (!naturalPageSize) return containerWidth || 1000;
112
+ const { w, h } = naturalPageSize;
113
+ if (w <= 0 || h <= 0) return containerWidth || 1000;
114
+ // width to fit by height: containerHeight * (w/h)
115
+ const widthByHeight = (containerHeight || 1000) * (w / h);
116
+ // Fit to page means respecting both constraints
117
+ return Math.min(Math.max(1, containerWidth || 1000), Math.max(1, widthByHeight));
118
+ }, [naturalPageSize, containerWidth, containerHeight]);
119
+
120
+ const pageWidth = Math.max(1, Math.round(fitBaseWidth * scale));
121
+
122
+ return (
123
+ <div ref={containerRef} className="pdfViewerContainer">
124
+ <div className="pdfViewerContent">
125
+ <Document
126
+ file={file ?? url}
127
+ onLoadSuccess={({ numPages }) => setNumPages(numPages)}
128
+ onLoadError={(e) => setError((e as Error)?.message ?? "Failed to load PDF")}
129
+ >
130
+ {pages.map((pageNumber) => (
131
+ <Page
132
+ key={pageNumber}
133
+ pageNumber={pageNumber}
134
+ renderTextLayer={false}
135
+ renderAnnotationLayer={false}
136
+ width={pageWidth}
137
+ onLoadSuccess={(p) => {
138
+ // Capture natural page size once for fit-to-page calculation
139
+ try {
140
+ // pdf.js viewport at scale 1
141
+ const vp = p.getViewport({ scale: 1 });
142
+ const w = Number(vp?.width) || Number((p as any).width) || 0;
143
+ const h = Number(vp?.height) || Number((p as any).height) || 0;
144
+ if (w > 0 && h > 0 && !naturalPageSize) {
145
+ setNaturalPageSize({ w, h });
146
+ }
147
+ } catch {
148
+ // Ignore, fallback to fit-to-width when unknown
149
+ }
150
+ }}
151
+ />
152
+ ))}
153
+ </Document>
154
+ </div>
155
+ {error && <div style={{ color: "#b00020", padding: 8 }}>Error loading PDF: {error}</div>}
156
+ </div>
157
+ );
158
+ }
@@ -1,21 +1,29 @@
1
1
  @use "../../styles/variables";
2
2
 
3
+ // Designsystemet tokens, so the bar follows the colour scheme on the 2026 template; the old
4
+ // colours are the fallbacks on templates that do not load Designsystemet.
3
5
  .ObProgressBar-root {
6
+ --ob-progress-track: var(--ds-color-neutral-surface-active, whiteSmoke);
7
+ --ob-progress-value-start: var(--ds-color-brand-base-default, var(--brand-primary));
8
+ --ob-progress-value-end: var(--ds-color-brand-base-hover, var(--brand-light));
9
+ --ob-progress-stripe: rgb(0 0 0 / 0.1);
10
+ --ob-progress-shadow: 0 2px 3px rgb(0 0 0 / 0.2) inset;
11
+
4
12
  height: 1.5em;
5
13
  width: 100%;
6
14
  appearance: none;
7
15
  -webkit-appearance: none;
8
- background-color: whiteSmoke;
16
+ background-color: var(--ob-progress-track);
9
17
  border: none;
10
- border-radius: 3px;
11
- box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;
12
- color: royalblue;
18
+ border-radius: var(--ds-border-radius-sm, 3px);
19
+ box-shadow: var(--ob-progress-shadow);
20
+ color: var(--ob-progress-value-start);
13
21
  position: relative;
14
22
 
15
23
  &::-webkit-progress-bar {
16
- background-color: whiteSmoke;
17
- border-radius: 3px;
18
- box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2) inset;
24
+ background-color: var(--ob-progress-track);
25
+ border-radius: var(--ds-border-radius-sm, 3px);
26
+ box-shadow: var(--ob-progress-shadow);
19
27
  }
20
28
 
21
29
  &::-webkit-progress-value {
@@ -24,73 +32,34 @@
24
32
  135deg,
25
33
  transparent,
26
34
  transparent 33%,
27
- rgba(0, 0, 0, 0.1) 33%,
28
- rgba(0, 0, 0, 0.1) 66%,
35
+ var(--ob-progress-stripe) 33%,
36
+ var(--ob-progress-stripe) 66%,
29
37
  transparent 66%
30
38
  ),
31
- linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),
32
- linear-gradient(left, var(--brand-primary), var(--brand-light));
33
- background-image:
34
- -webkit-linear-gradient(
35
- 135deg,
36
- transparent,
37
- transparent 33%,
38
- rgba(0, 0, 0, 0.1) 33%,
39
- rgba(0, 0, 0, 0.1) 66%,
40
- transparent 66%
41
- ),
42
- -webkit-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),
43
- -webkit-linear-gradient(left, var(--brand-primary), var(--brand-light));
39
+ linear-gradient(to right, var(--ob-progress-value-start), var(--ob-progress-value-end));
44
40
  background-size:
45
41
  35px 20px,
46
- 100% 100%,
47
42
  100% 100%;
48
- border-radius: 3px;
43
+ border-radius: var(--ds-border-radius-sm, 3px);
49
44
  position: relative;
50
45
  transition: width 0.5s ease-out;
51
46
  }
52
47
 
53
- &::-webkit-progress-value:after {
54
- background-color: white;
55
- content: "";
56
-
57
- border-radius: 100%;
58
- height: 5px;
59
-
60
- position: absolute;
61
- right: 7px;
62
- top: 7px;
63
- width: 5px;
64
- }
65
-
66
48
  &::-moz-progress-bar {
67
49
  background-image:
68
50
  linear-gradient(
69
51
  135deg,
70
52
  transparent,
71
53
  transparent 33%,
72
- rgba(0, 0, 0, 0.1) 33%,
73
- rgba(0, 0, 0, 0.1) 66%,
74
- transparent 66%
75
- ),
76
- linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),
77
- linear-gradient(left, var(--brand-primary), var(--brand-light));
78
- background-image:
79
- -moz-linear-gradient(
80
- 135deg,
81
- transparent,
82
- transparent 33%,
83
- rgba(0, 0, 0, 0.1) 33%,
84
- rgba(0, 0, 0, 0.1) 66%,
54
+ var(--ob-progress-stripe) 33%,
55
+ var(--ob-progress-stripe) 66%,
85
56
  transparent 66%
86
57
  ),
87
- -moz-linear-gradient(top, rgba(255, 255, 255, 0.25), rgba(0, 0, 0, 0.2)),
88
- -moz-linear-gradient(left, var(--brand-primary), var(--brand-light));
58
+ linear-gradient(to right, var(--ob-progress-value-start), var(--ob-progress-value-end));
89
59
  background-size:
90
60
  35px 20px,
91
- 100% 100%,
92
61
  100% 100%;
93
- border-radius: 3px;
62
+ border-radius: var(--ds-border-radius-sm, 3px);
94
63
  transition: width 0.5s ease-out;
95
64
  }
96
65
  }