sigma-ui 1.0.11 → 1.0.13
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.
- package/dist/index.js +7 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -420,11 +420,15 @@ var baseColors = [
|
|
|
420
420
|
|
|
421
421
|
// src/utils/registry/index.ts
|
|
422
422
|
var REGISTRY_PATH = new URL("../__generated/registry-schemes/", import.meta.url);
|
|
423
|
+
var DIRS = {
|
|
424
|
+
STYLE_SYSTEM: "style-system",
|
|
425
|
+
COLORS: "colors"
|
|
426
|
+
};
|
|
423
427
|
var filePaths = {
|
|
424
428
|
index: () => `index.json`,
|
|
425
|
-
styles: () =>
|
|
426
|
-
baseColors: (baseColor) =>
|
|
427
|
-
selectedStyleComponent: (params) =>
|
|
429
|
+
styles: () => `${DIRS.STYLE_SYSTEM}/index.json`,
|
|
430
|
+
baseColors: (baseColor) => `${DIRS.COLORS}/${baseColor}.json`,
|
|
431
|
+
selectedStyleComponent: (params) => `${DIRS.STYLE_SYSTEM}/${params.styleSystem}/${params.componentName}.json`
|
|
428
432
|
};
|
|
429
433
|
function getRegistryBaseColors() {
|
|
430
434
|
return baseColors;
|