@symbo.ls/create 2.11.435 → 2.11.436

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.
@@ -27048,6 +27048,7 @@ var DESIGN_SYSTEM_OPTIONS = {
27048
27048
  useIconSprite: true,
27049
27049
  useSvgSprite: true,
27050
27050
  useDocumentTheme: true,
27051
+ useDefaultIcons: true,
27051
27052
  useFontImport: true,
27052
27053
  useDefaultConfig: true
27053
27054
  };
@@ -28516,6 +28517,7 @@ var import_utils45 = __toESM(require_cjs(), 1);
28516
28517
 
28517
28518
  // ../icons/default/index.js
28518
28519
  var default_default = {
28520
+ symbols: require_logo(),
28519
28521
  logo: require_logo(),
28520
28522
  arrowDownCircle: require_arrow_down_circle(),
28521
28523
  arrowDownLeft: require_arrow_down_left(),
@@ -28938,14 +28940,14 @@ var src_default = DEFAULT_CONFIG;
28938
28940
 
28939
28941
  // src/initEmotion.js
28940
28942
  var initEmotion = (key, options = {}) => {
28943
+ var _a;
28941
28944
  const doc = options.parent || options.document || document;
28942
28945
  const initOptions = options.initOptions || {};
28943
28946
  const emotion2 = initOptions.emotion;
28944
28947
  if (!initOptions.emotion)
28945
28948
  initOptions.emotion = emotion;
28946
28949
  const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options);
28947
- const defaultDesignSystem = (0, import_utils45.deepClone)(src_default);
28948
- const designSystem = initOptions.useDefaultConfig || options.useDefaultConfig ? (0, import_utils45.deepMerge)(options.designSystem, defaultDesignSystem) : options.designSystem || defaultDesignSystem;
28950
+ const designSystem = initOptions.useDefaultConfig || ((_a = options.designSystem) == null ? void 0 : _a.useDefaultConfig) ? (0, import_utils45.deepMerge)(options.designSystem, (0, import_utils45.deepClone)(src_default)) : options.designSystem || (0, import_utils45.deepClone)(src_default);
28949
28951
  const scratchSystem2 = init(designSystem, {
28950
28952
  key,
28951
28953
  emotion: emotion2,
@@ -38,14 +38,14 @@ var import_utils = require("@domql/utils");
38
38
  var import_options = require("./options");
39
39
  var import_default_config = __toESM(require("@symbo.ls/default-config"), 1);
40
40
  const initEmotion = (key, options = {}) => {
41
+ var _a;
41
42
  const doc = options.parent || options.document || document;
42
43
  const initOptions = options.initOptions || {};
43
44
  const emotion = initOptions.emotion;
44
45
  if (!initOptions.emotion)
45
46
  initOptions.emotion = import_emotion2.emotion;
46
47
  const registry = options.registry || (0, import_emotion.transformDOMQLEmotion)(initOptions.emotion, options);
47
- const defaultDesignSystem = (0, import_utils.deepClone)(import_default_config.default);
48
- const designSystem = initOptions.useDefaultConfig || options.useDefaultConfig ? (0, import_utils.deepMerge)(options.designSystem, defaultDesignSystem) : options.designSystem || defaultDesignSystem;
48
+ const designSystem = initOptions.useDefaultConfig || ((_a = options.designSystem) == null ? void 0 : _a.useDefaultConfig) ? (0, import_utils.deepMerge)(options.designSystem, (0, import_utils.deepClone)(import_default_config.default)) : options.designSystem || (0, import_utils.deepClone)(import_default_config.default);
49
49
  const scratchSystem = (0, import_init.init)(designSystem, {
50
50
  key,
51
51
  emotion,
@@ -30,6 +30,7 @@ const DESIGN_SYSTEM_OPTIONS = {
30
30
  useIconSprite: true,
31
31
  useSvgSprite: true,
32
32
  useDocumentTheme: true,
33
+ useDefaultIcons: true,
33
34
  useFontImport: true,
34
35
  useDefaultConfig: true
35
36
  };
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@symbo.ls/create",
3
- "version": "2.11.435",
3
+ "version": "2.11.436",
4
4
  "license": "MIT",
5
- "gitHead": "734749f8a16b9e84374d68f203f153b87e4d01d2",
5
+ "gitHead": "b3af8d5fc0ea1479dd2e2996c35d53e11a54b276",
6
6
  "files": [
7
7
  "src",
8
8
  "dist"
@@ -16,8 +16,9 @@ export const initEmotion = (key, options = {}) => {
16
16
  if (!initOptions.emotion) initOptions.emotion = defaultEmotion
17
17
 
18
18
  const registry = options.registry || transformDOMQLEmotion(initOptions.emotion, options)
19
- const defaultDesignSystem = deepClone(DEFAULT_CONFIG)
20
- const designSystem = (initOptions.useDefaultConfig || options.useDefaultConfig) ? deepMerge(options.designSystem, defaultDesignSystem) : options.designSystem || defaultDesignSystem
19
+ const designSystem = (initOptions.useDefaultConfig || options.designSystem?.useDefaultConfig)
20
+ ? deepMerge(options.designSystem, deepClone(DEFAULT_CONFIG))
21
+ : options.designSystem || deepClone(DEFAULT_CONFIG)
21
22
 
22
23
  const scratchSystem = init(designSystem, {
23
24
  key,
package/src/options.js CHANGED
@@ -8,6 +8,7 @@ export const DESIGN_SYSTEM_OPTIONS = {
8
8
  useIconSprite: true,
9
9
  useSvgSprite: true,
10
10
  useDocumentTheme: true,
11
+ useDefaultIcons: true,
11
12
  useFontImport: true,
12
13
  useDefaultConfig: true
13
14
  }