@procore/storybook-addon 4.3.0 → 4.4.1

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 (45) hide show
  1. package/CHANGELOG.md +12 -0
  2. package/dist/legacy/chunk-QGM4M3NI.js +37 -0
  3. package/dist/legacy/index.cjs +48 -0
  4. package/dist/legacy/index.d.cts +5 -0
  5. package/dist/legacy/index.d.ts +5 -0
  6. package/dist/legacy/index.js +23 -0
  7. package/dist/legacy/preset.cjs +457 -0
  8. package/dist/legacy/preset.d.cts +28 -0
  9. package/dist/legacy/preset.d.ts +28 -0
  10. package/dist/legacy/preset.js +420 -0
  11. package/dist/modern/chunk-QGM4M3NI.js +37 -0
  12. package/dist/modern/index.cjs +48 -0
  13. package/dist/modern/index.d.cts +5 -0
  14. package/dist/modern/index.d.ts +5 -0
  15. package/dist/modern/index.js +23 -0
  16. package/dist/modern/preset.cjs +457 -0
  17. package/dist/modern/preset.d.cts +28 -0
  18. package/dist/modern/preset.d.ts +28 -0
  19. package/dist/modern/preset.js +420 -0
  20. package/package.json +38 -28
  21. package/coverage/lcov-report/block-navigation.js +0 -87
  22. package/coverage/lcov-report/prettify.js +0 -2
  23. package/coverage/lcov-report/sorter.js +0 -196
  24. package/dist/asset/procoreLogo.d.ts +0 -3
  25. package/dist/asset/procoreLogo.d.ts.map +0 -1
  26. package/dist/configurations/babel.d.ts +0 -38
  27. package/dist/configurations/babel.d.ts.map +0 -1
  28. package/dist/configurations/previewHead.d.ts +0 -3
  29. package/dist/configurations/previewHead.d.ts.map +0 -1
  30. package/dist/configurations/theme.d.ts +0 -3
  31. package/dist/configurations/theme.d.ts.map +0 -1
  32. package/dist/constant/external-urls.d.ts +0 -2
  33. package/dist/constant/external-urls.d.ts.map +0 -1
  34. package/dist/index.d.ts +0 -4
  35. package/dist/index.d.ts.map +0 -1
  36. package/dist/index.js +0 -1
  37. package/dist/index.mjs +0 -11
  38. package/dist/preset.d.ts +0 -22
  39. package/dist/preset.d.ts.map +0 -1
  40. package/dist/preset.js +0 -29
  41. package/dist/preset.mjs +0 -290
  42. package/dist/utils/index.d.ts +0 -2
  43. package/dist/utils/index.d.ts.map +0 -1
  44. package/preset.js +0 -2
  45. package/src/typings/index.d.ts +0 -4
@@ -0,0 +1,420 @@
1
+ import {
2
+ __commonJS,
3
+ __require,
4
+ __toESM
5
+ } from "./chunk-QGM4M3NI.js";
6
+
7
+ // ../../node_modules/react-dev-utils/getCacheIdentifier.js
8
+ var require_getCacheIdentifier = __commonJS({
9
+ "../../node_modules/react-dev-utils/getCacheIdentifier.js"(exports, module) {
10
+ "use strict";
11
+ module.exports = function getCacheIdentifier2(environment, packages) {
12
+ let cacheIdentifier = environment == null ? "" : environment.toString();
13
+ for (const packageName of packages) {
14
+ cacheIdentifier += `:${packageName}@`;
15
+ try {
16
+ cacheIdentifier += __require(`${packageName}/package.json`).version;
17
+ } catch (_) {
18
+ }
19
+ }
20
+ return cacheIdentifier;
21
+ };
22
+ }
23
+ });
24
+
25
+ // src/configurations/babel.ts
26
+ import { version as babelRuntimeVersion } from "@babel/runtime/package.json";
27
+ import { version as corejsVersion } from "core-js/package.json";
28
+
29
+ // ../../node_modules/pathe/dist/shared/pathe.ff20891b.mjs
30
+ var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
31
+ function normalizeWindowsPath(input = "") {
32
+ if (!input) {
33
+ return input;
34
+ }
35
+ return input.replace(/\\/g, "/").replace(_DRIVE_LETTER_START_RE, (r) => r.toUpperCase());
36
+ }
37
+ var _UNC_REGEX = /^[/\\]{2}/;
38
+ var _IS_ABSOLUTE_RE = /^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;
39
+ var _DRIVE_LETTER_RE = /^[A-Za-z]:$/;
40
+ var _ROOT_FOLDER_RE = /^\/([A-Za-z]:)?$/;
41
+ var sep = "/";
42
+ var delimiter = ":";
43
+ var normalize = function(path2) {
44
+ if (path2.length === 0) {
45
+ return ".";
46
+ }
47
+ path2 = normalizeWindowsPath(path2);
48
+ const isUNCPath = path2.match(_UNC_REGEX);
49
+ const isPathAbsolute = isAbsolute(path2);
50
+ const trailingSeparator = path2[path2.length - 1] === "/";
51
+ path2 = normalizeString(path2, !isPathAbsolute);
52
+ if (path2.length === 0) {
53
+ if (isPathAbsolute) {
54
+ return "/";
55
+ }
56
+ return trailingSeparator ? "./" : ".";
57
+ }
58
+ if (trailingSeparator) {
59
+ path2 += "/";
60
+ }
61
+ if (_DRIVE_LETTER_RE.test(path2)) {
62
+ path2 += "/";
63
+ }
64
+ if (isUNCPath) {
65
+ if (!isPathAbsolute) {
66
+ return `//./${path2}`;
67
+ }
68
+ return `//${path2}`;
69
+ }
70
+ return isPathAbsolute && !isAbsolute(path2) ? `/${path2}` : path2;
71
+ };
72
+ var join = function(...arguments_) {
73
+ if (arguments_.length === 0) {
74
+ return ".";
75
+ }
76
+ let joined;
77
+ for (const argument of arguments_) {
78
+ if (argument && argument.length > 0) {
79
+ if (joined === void 0) {
80
+ joined = argument;
81
+ } else {
82
+ joined += `/${argument}`;
83
+ }
84
+ }
85
+ }
86
+ if (joined === void 0) {
87
+ return ".";
88
+ }
89
+ return normalize(joined.replace(/\/\/+/g, "/"));
90
+ };
91
+ function cwd() {
92
+ if (typeof process !== "undefined" && typeof process.cwd === "function") {
93
+ return process.cwd().replace(/\\/g, "/");
94
+ }
95
+ return "/";
96
+ }
97
+ var resolve = function(...arguments_) {
98
+ arguments_ = arguments_.map((argument) => normalizeWindowsPath(argument));
99
+ let resolvedPath = "";
100
+ let resolvedAbsolute = false;
101
+ for (let index = arguments_.length - 1; index >= -1 && !resolvedAbsolute; index--) {
102
+ const path2 = index >= 0 ? arguments_[index] : cwd();
103
+ if (!path2 || path2.length === 0) {
104
+ continue;
105
+ }
106
+ resolvedPath = `${path2}/${resolvedPath}`;
107
+ resolvedAbsolute = isAbsolute(path2);
108
+ }
109
+ resolvedPath = normalizeString(resolvedPath, !resolvedAbsolute);
110
+ if (resolvedAbsolute && !isAbsolute(resolvedPath)) {
111
+ return `/${resolvedPath}`;
112
+ }
113
+ return resolvedPath.length > 0 ? resolvedPath : ".";
114
+ };
115
+ function normalizeString(path2, allowAboveRoot) {
116
+ let res = "";
117
+ let lastSegmentLength = 0;
118
+ let lastSlash = -1;
119
+ let dots = 0;
120
+ let char = null;
121
+ for (let index = 0; index <= path2.length; ++index) {
122
+ if (index < path2.length) {
123
+ char = path2[index];
124
+ } else if (char === "/") {
125
+ break;
126
+ } else {
127
+ char = "/";
128
+ }
129
+ if (char === "/") {
130
+ if (lastSlash === index - 1 || dots === 1) ;
131
+ else if (dots === 2) {
132
+ if (res.length < 2 || lastSegmentLength !== 2 || res[res.length - 1] !== "." || res[res.length - 2] !== ".") {
133
+ if (res.length > 2) {
134
+ const lastSlashIndex = res.lastIndexOf("/");
135
+ if (lastSlashIndex === -1) {
136
+ res = "";
137
+ lastSegmentLength = 0;
138
+ } else {
139
+ res = res.slice(0, lastSlashIndex);
140
+ lastSegmentLength = res.length - 1 - res.lastIndexOf("/");
141
+ }
142
+ lastSlash = index;
143
+ dots = 0;
144
+ continue;
145
+ } else if (res.length > 0) {
146
+ res = "";
147
+ lastSegmentLength = 0;
148
+ lastSlash = index;
149
+ dots = 0;
150
+ continue;
151
+ }
152
+ }
153
+ if (allowAboveRoot) {
154
+ res += res.length > 0 ? "/.." : "..";
155
+ lastSegmentLength = 2;
156
+ }
157
+ } else {
158
+ if (res.length > 0) {
159
+ res += `/${path2.slice(lastSlash + 1, index)}`;
160
+ } else {
161
+ res = path2.slice(lastSlash + 1, index);
162
+ }
163
+ lastSegmentLength = index - lastSlash - 1;
164
+ }
165
+ lastSlash = index;
166
+ dots = 0;
167
+ } else if (char === "." && dots !== -1) {
168
+ ++dots;
169
+ } else {
170
+ dots = -1;
171
+ }
172
+ }
173
+ return res;
174
+ }
175
+ var isAbsolute = function(p) {
176
+ return _IS_ABSOLUTE_RE.test(p);
177
+ };
178
+ var toNamespacedPath = function(p) {
179
+ return normalizeWindowsPath(p);
180
+ };
181
+ var _EXTNAME_RE = /.(\.[^./]+)$/;
182
+ var extname = function(p) {
183
+ const match = _EXTNAME_RE.exec(normalizeWindowsPath(p));
184
+ return match && match[1] || "";
185
+ };
186
+ var relative = function(from, to) {
187
+ const _from = resolve(from).replace(_ROOT_FOLDER_RE, "$1").split("/");
188
+ const _to = resolve(to).replace(_ROOT_FOLDER_RE, "$1").split("/");
189
+ if (_to[0][1] === ":" && _from[0][1] === ":" && _from[0] !== _to[0]) {
190
+ return _to.join("/");
191
+ }
192
+ const _fromCopy = [..._from];
193
+ for (const segment of _fromCopy) {
194
+ if (_to[0] !== segment) {
195
+ break;
196
+ }
197
+ _from.shift();
198
+ _to.shift();
199
+ }
200
+ return [..._from.map(() => ".."), ..._to].join("/");
201
+ };
202
+ var dirname = function(p) {
203
+ const segments = normalizeWindowsPath(p).replace(/\/$/, "").split("/").slice(0, -1);
204
+ if (segments.length === 1 && _DRIVE_LETTER_RE.test(segments[0])) {
205
+ segments[0] += "/";
206
+ }
207
+ return segments.join("/") || (isAbsolute(p) ? "/" : ".");
208
+ };
209
+ var format = function(p) {
210
+ const segments = [p.root, p.dir, p.base ?? p.name + p.ext].filter(Boolean);
211
+ return normalizeWindowsPath(
212
+ p.root ? resolve(...segments) : segments.join("/")
213
+ );
214
+ };
215
+ var basename = function(p, extension) {
216
+ const lastSegment = normalizeWindowsPath(p).split("/").pop();
217
+ return extension && lastSegment.endsWith(extension) ? lastSegment.slice(0, -extension.length) : lastSegment;
218
+ };
219
+ var parse = function(p) {
220
+ const root = normalizeWindowsPath(p).split("/").shift() || "/";
221
+ const base = basename(p);
222
+ const extension = extname(base);
223
+ return {
224
+ root,
225
+ dir: dirname(p),
226
+ base,
227
+ ext: extension,
228
+ name: base.slice(0, base.length - extension.length)
229
+ };
230
+ };
231
+ var path = {
232
+ __proto__: null,
233
+ basename,
234
+ delimiter,
235
+ dirname,
236
+ extname,
237
+ format,
238
+ isAbsolute,
239
+ join,
240
+ normalize,
241
+ normalizeString,
242
+ parse,
243
+ relative,
244
+ resolve,
245
+ sep,
246
+ toNamespacedPath
247
+ };
248
+
249
+ // src/configurations/babel.ts
250
+ var import_getCacheIdentifier = __toESM(require_getCacheIdentifier(), 1);
251
+ var targets = "defaults";
252
+ var transformRuntimeOptions = {
253
+ // By default, babel assumes babel/runtime version 7.0.0-beta.0,
254
+ // explicitly resolving to match the provided helper functions.
255
+ // https://github.com/babel/babel/issues/10261
256
+ version: babelRuntimeVersion,
257
+ // Undocumented option that lets us encapsulate our runtime, ensuring
258
+ // the correct version is used
259
+ // https://github.com/babel/babel/blob/090c364a90fe73d36a30707fc612ce037bdbbb24/packages/babel-plugin-transform-runtime/src/index.js#L35-L42
260
+ absoluteRuntime: path.dirname(__require.resolve("@babel/runtime/package.json"))
261
+ };
262
+ function createConfigForReact() {
263
+ const env = process.env.NODE_ENV || "development";
264
+ const isProduction = env === "production";
265
+ return {
266
+ babelrc: false,
267
+ cacheCompression: false,
268
+ cacheDirectory: true,
269
+ cacheIdentifier: (0, import_getCacheIdentifier.default)(env, [
270
+ "babel-plugin-named-asset-import",
271
+ "react-dev-utils"
272
+ ]),
273
+ assumptions: {
274
+ privateFieldsAsProperties: true,
275
+ setPublicClassFields: true
276
+ },
277
+ compact: isProduction,
278
+ configFile: false,
279
+ sourceType: "unambiguous",
280
+ targets,
281
+ plugins: [
282
+ [
283
+ __require.resolve("@babel/plugin-transform-runtime"),
284
+ transformRuntimeOptions
285
+ ],
286
+ [
287
+ __require.resolve("babel-plugin-named-asset-import"),
288
+ {
289
+ loaderMap: {
290
+ svg: {
291
+ ReactComponent: "@svgr/webpack?-svgo,+titleProp,+ref![path]"
292
+ }
293
+ }
294
+ }
295
+ ],
296
+ [
297
+ __require.resolve("babel-plugin-styled-components"),
298
+ {
299
+ minify: true,
300
+ ssr: false,
301
+ displayName: true,
302
+ fileName: false,
303
+ transpileTemplateLiterals: true,
304
+ pure: false
305
+ }
306
+ ]
307
+ ],
308
+ presets: [
309
+ [
310
+ __require.resolve("@babel/preset-env"),
311
+ {
312
+ useBuiltIns: "usage",
313
+ corejs: corejsVersion
314
+ }
315
+ ],
316
+ [
317
+ __require.resolve("@babel/preset-react"),
318
+ {
319
+ useBuiltIns: true
320
+ }
321
+ ],
322
+ __require.resolve("@babel/preset-typescript")
323
+ ]
324
+ };
325
+ }
326
+
327
+ // src/configurations/previewHead.ts
328
+ var defaultValues = {
329
+ includeBoxSizing: true
330
+ };
331
+ function previewHead_default(head, _options, parameters) {
332
+ const { includeBoxSizing = true } = {
333
+ ...defaultValues,
334
+ ...parameters
335
+ };
336
+ return `
337
+ ${head}
338
+ <meta charset="UTF-8" />
339
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
340
+ <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap">
341
+
342
+ <style>
343
+ ${includeBoxSizing ? `
344
+ *,
345
+ *:before,
346
+ *:after {
347
+ -webkit-box-sizing: inherit;
348
+ -moz-box-sizing: inherit;
349
+ box-sizing: inherit;
350
+ }
351
+ html {
352
+ -webkit-box-sizing: border-box;
353
+ -moz-box-sizing: border-box;
354
+ box-sizing: border-box;
355
+ }
356
+ ` : ""}
357
+ html {
358
+ font-family: Inter, sans-serif;
359
+ }
360
+ body {
361
+ width: 100%;
362
+ }
363
+ </style>
364
+ `;
365
+ }
366
+
367
+ // src/utils/index.ts
368
+ function requireIfExists(moduleName) {
369
+ try {
370
+ return __require(moduleName);
371
+ } catch (e) {
372
+ return;
373
+ }
374
+ }
375
+
376
+ // src/preset.ts
377
+ var findBabelConfig = __require("find-babel-config");
378
+ var addons = () => {
379
+ const sassImplementation = requireIfExists("sass");
380
+ return [
381
+ {
382
+ name: "@storybook/addon-styling",
383
+ options: {
384
+ ...sassImplementation ? {
385
+ sass: {
386
+ implementation: sassImplementation
387
+ }
388
+ } : {},
389
+ cssModules: { localIdentName: "[name]__[local]--[hash:base64:5]" }
390
+ }
391
+ },
392
+ "@storybook/addon-essentials",
393
+ "@storybook/addon-storysource",
394
+ "@storybook/addon-a11y"
395
+ ];
396
+ };
397
+ function babelDefault(config) {
398
+ const cwd2 = process.cwd();
399
+ const { file } = findBabelConfig.sync(cwd2, 1);
400
+ if (file) {
401
+ return config;
402
+ }
403
+ console.log(
404
+ "Could not find babel config file, using babel config from @procore/storybook-addon"
405
+ );
406
+ return createConfigForReact();
407
+ }
408
+ var typescript = {
409
+ checkOptions: {
410
+ check: true,
411
+ exclude: /node_modules/
412
+ },
413
+ reactDocgen: false
414
+ };
415
+ export {
416
+ addons,
417
+ babelDefault,
418
+ previewHead_default as previewHead,
419
+ typescript
420
+ };
@@ -0,0 +1,37 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __require = /* @__PURE__ */ ((x) => typeof require !== "undefined" ? require : typeof Proxy !== "undefined" ? new Proxy(x, {
8
+ get: (a, b) => (typeof require !== "undefined" ? require : a)[b]
9
+ }) : x)(function(x) {
10
+ if (typeof require !== "undefined") return require.apply(this, arguments);
11
+ throw Error('Dynamic require of "' + x + '" is not supported');
12
+ });
13
+ var __commonJS = (cb, mod) => function __require2() {
14
+ return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
15
+ };
16
+ var __copyProps = (to, from, except, desc) => {
17
+ if (from && typeof from === "object" || typeof from === "function") {
18
+ for (let key of __getOwnPropNames(from))
19
+ if (!__hasOwnProp.call(to, key) && key !== except)
20
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
21
+ }
22
+ return to;
23
+ };
24
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
25
+ // If the importer is in node compatibility mode or this is not an ESM
26
+ // file that has been converted to a CommonJS file using a Babel-
27
+ // compatible transform (i.e. "__esModule" has not been set), then set
28
+ // "default" to the CommonJS "module.exports" for node compatibility.
29
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
30
+ mod
31
+ ));
32
+
33
+ export {
34
+ __require,
35
+ __commonJS,
36
+ __toESM
37
+ };
@@ -0,0 +1,48 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ createProcoreTheme: () => createProcoreTheme
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+
27
+ // src/configurations/theme.ts
28
+ var import_theming = require("@storybook/theming");
29
+
30
+ // src/asset/procoreLogo.ts
31
+ var procoreLogo_default = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAhQAAABFCAMAAAAl6Y+sAAAAV1BMVEUAAAAoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCgoKCj/UgD/UgD/UgD/UgD/UgD/UgD/UgD/UgD/UgD/UgD/UgAoKCj/UgDdS921AAAAG3RST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RTWgXmDUGAHceHfjrcC8LlQYOL3QaEAEbhOZ9rMqdZ0quoyW3MuxYciFExNjVBgJ8dWi5C7YelGUIAIXKd+yd+4u6ReYSjYdQGV+nQnKOoRuEndUiR3ofYix5djQFG5oGlMKOoRuEvdehz+Xq+sXC9EIAYU5RGoQaGoR+CT2K+bZrEWC9plUMVQ4LrAoFAUInChlQwgYOXIyP2BeQTF1bqAGxMKirUIPKQ+rXJeq5IzFQlBcbkuMCgU1QjcdHeQSO1F1ou9A9E6BhSgLuDHhKIegc9J7GWi3oq9zXKxEn4OhgI7YHFQKOoR+NzHhNRSzmKm7EoYCkZdYFAo6hH4ajvfH33Iqc5mlENetZK6UDsUFHN7g0JRj8DJ6RYs1OlDV9WCxE4nmqcWUzMRDwpcF3grFA/1ooWApAx5lcl/X0utWIqzLz5rj4qjTRe//bJvnaYW9aIHAe251WPOO0QfffTRR036A0Llr9K6aXreAAAAAElFTkSuQmCC";
32
+
33
+ // src/constant/external-urls.ts
34
+ var brandUrl = "https://design.procore.com";
35
+
36
+ // src/configurations/theme.ts
37
+ var createProcoreTheme = (vars) => {
38
+ return (0, import_theming.create)({
39
+ base: "light",
40
+ brandUrl,
41
+ brandImage: procoreLogo_default,
42
+ ...vars
43
+ });
44
+ };
45
+ // Annotate the CommonJS export names for ESM import in node:
46
+ 0 && (module.exports = {
47
+ createProcoreTheme
48
+ });
@@ -0,0 +1,5 @@
1
+ import { ThemeVars } from '@storybook/theming';
2
+
3
+ declare const createProcoreTheme: (vars?: Partial<ThemeVars>) => ThemeVars;
4
+
5
+ export { createProcoreTheme };
@@ -0,0 +1,5 @@
1
+ import { ThemeVars } from '@storybook/theming';
2
+
3
+ declare const createProcoreTheme: (vars?: Partial<ThemeVars>) => ThemeVars;
4
+
5
+ export { createProcoreTheme };
@@ -0,0 +1,23 @@
1
+ import "./chunk-QGM4M3NI.js";
2
+
3
+ // src/configurations/theme.ts
4
+ import { create } from "@storybook/theming";
5
+
6
+ // src/asset/procoreLogo.ts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dBofAp0wqX+IEKkQAKBmDbdSgCmhAmFBh168aEgjScXM1t0NtA2yDDQTScXtIdFD3YUOAWxkGhcBYNVTO7gk0CUDAACxworAN+DhcK3CPrx4SCZjS5mtn0P/Gg2HCuHEOBUyg68aHAG9A2KBQnixjhdAb4N42hwAN0lgdFWoDD2gnFcmJiUChQBK5ZdxI5y4UioJImhgJva1sTFPgLhUGhOIvAIRTWgXmDUGAHceHfjrcC8LlQYOL3QaEAEbhOZ9rMqdZ0quoyW3MuxYciFExNjVBgJ8dWi5C7YelGUIAIXKd+yd+4u6ReYSjYdQGV+nQnKOoRuEndUiR3ofYix5djQFG5oGlMKOoRuEvdehz+Xq+sXC9EIAYU5RGoQaGoR+CT2K+bZrEWC9plUMVQ4LrAoFAUInChlQwgYOXIyP2BeQTF1bqAGxMKirUIPKQ+rXJeq5IzFQlBcbkuMCgU1QjcdHeQSO1F1ou9A9E6BhSgLuDHhKIegc9J7GWi3oq9zXKxEn4OhgI7YHFQKOoR+NzHhNRSzmKm7EoYCkZdYFAo6hH4ajvfH33Iqc5mlENetZK6UDsUFHN7g0JRj8DJ6RYs1OlDV9WCxE4nmqcWUzMRDwpcF3grFA/1ooWApAx5lcl/X0utWIqzLz5rj4qjTRe//bJvnaYW9aIHAe251WPOO0QfffTRR036A0Llr9K6aXreAAAAAElFTkSuQmCC";
8
+
9
+ // src/constant/external-urls.ts
10
+ var brandUrl = "https://design.procore.com";
11
+
12
+ // src/configurations/theme.ts
13
+ var createProcoreTheme = (vars) => {
14
+ return create({
15
+ base: "light",
16
+ brandUrl,
17
+ brandImage: procoreLogo_default,
18
+ ...vars
19
+ });
20
+ };
21
+ export {
22
+ createProcoreTheme
23
+ };