@licklist/design 0.78.15 → 0.78.16

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 +1 @@
1
- {"version":3,"file":"snippetTemplate.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/context/snippetTemplate.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EAEhB,MAAM,mEAAmE,CAAA;AAG1E,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD,eAAe,GAAG;IAChB,IAAI,EAAE,MAAM,CAAA;CACb,CACF,CAAA;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,6BAA6B,CAAA;IACvC,OAAO,EAAE;QACP,cAAc,EAAE,CAAC,YAAY,EAAE,6BAA6B,KAAK,IAAI,CAAA;KACtE,CAAA;CACF;AAED,eAAO,MAAM,sBAAsB,uDACuB,CAAA;AAE1D,MAAM,WAAW,0CACf,SAAQ,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC;IACxC,aAAa,CAAC,EAAE,6BAA6B,CAAA;CAC9C;AAED,wBAAgB,8BAA8B,CAAC,EAC7C,QAAQ,EACR,aAAa,GACd,EAAE,0CAA0C,2CA8J5C"}
1
+ {"version":3,"file":"snippetTemplate.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/context/snippetTemplate.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,eAAe,EAEhB,MAAM,mEAAmE,CAAA;AAG1E,MAAM,MAAM,6BAA6B,GAAG,OAAO,CACjD,eAAe,GAAG;IAChB,IAAI,EAAE,MAAM,CAAA;CACb,CACF,CAAA;AAED,MAAM,WAAW,4BAA4B;IAC3C,QAAQ,EAAE,6BAA6B,CAAA;IACvC,OAAO,EAAE;QACP,cAAc,EAAE,CAAC,YAAY,EAAE,6BAA6B,KAAK,IAAI,CAAA;KACtE,CAAA;CACF;AAED,eAAO,MAAM,sBAAsB,uDACuB,CAAA;AAE1D,MAAM,WAAW,0CACf,SAAQ,KAAK,CAAC,iBAAiB,CAAC,OAAO,CAAC;IACxC,aAAa,CAAC,EAAE,6BAA6B,CAAA;CAC9C;AAED,wBAAgB,8BAA8B,CAAC,EAC7C,QAAQ,EACR,aAAa,GACd,EAAE,0CAA0C,2CA+J5C"}
@@ -102,6 +102,7 @@ function SnippetTemplateContextProvider(param) {
102
102
  '--snippet-page-body-left-block-back-button-body-color': template === null || template === void 0 ? void 0 : template.pageBodyLeftBlockBackButtonBodyColor,
103
103
  '--snippet-page-body-right-block-background-color': template === null || template === void 0 ? void 0 : template.pageBodyRightBlockBackgroundColor,
104
104
  '--snippet-elements-body-color': template === null || template === void 0 ? void 0 : template.elementsBodyColor,
105
+ '--snippet-elements-heading-text-color': (template === null || template === void 0 ? void 0 : template.elementsHeadingTextColor) || (template === null || template === void 0 ? void 0 : template.elementsTitleColor),
105
106
  '--snippet-elements-input-border-color': template === null || template === void 0 ? void 0 : template.elementsInputBorderColor,
106
107
  '--snippet-elements-input-background-color': template === null || template === void 0 ? void 0 : template.elementsInputBackgroundColor,
107
108
  '--snippet-elements-input-body-color': template === null || template === void 0 ? void 0 : template.elementsInputBodyColor,
@@ -1 +1 @@
1
- {"version":3,"file":"snippetTemplateView.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/context/snippetTemplateView.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB;;;;;;;;;;CAUhC,CAAA;AAED,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,MAAM,OAAO,oBAAoB,CAAA;IACvC,UAAU,EAAE,OAAO,oBAAoB,CAAA;IACvC,OAAO,EAAE,KAAK,CAAC,QAAQ,CACrB,KAAK,CAAC,cAAc,CAAC,MAAM,OAAO,oBAAoB,CAAC,CACxD,CAAA;CACF;AAED,eAAO,MAAM,0BAA0B,2DACuB,CAAA;AAE9D,eAAO,MAAM,YAAY,EAAE,MAAM,OAAO,oBAA6B,CAAA;AAErE,wBAAgB,kCAAkC,CAAC,EAAE,QAAQ,EAAE;;CAAA,2CA0I9D"}
1
+ {"version":3,"file":"snippetTemplateView.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/context/snippetTemplateView.tsx"],"names":[],"mappings":"AAGA,eAAO,MAAM,oBAAoB;;;;;;;;;;CAUhC,CAAA;AAED,MAAM,WAAW,gCAAgC;IAC/C,IAAI,EAAE,MAAM,OAAO,oBAAoB,CAAA;IACvC,UAAU,EAAE,OAAO,oBAAoB,CAAA;IACvC,OAAO,EAAE,KAAK,CAAC,QAAQ,CACrB,KAAK,CAAC,cAAc,CAAC,MAAM,OAAO,oBAAoB,CAAC,CACxD,CAAA;CACF;AAED,eAAO,MAAM,0BAA0B,2DACuB,CAAA;AAE9D,eAAO,MAAM,YAAY,EAAE,MAAM,OAAO,oBAA6B,CAAA;AAErE,wBAAgB,kCAAkC,CAAC,EAAE,QAAQ,EAAE;;CAAA,2CA2I9D"}
@@ -112,6 +112,7 @@ function SnippetTemplateViewContextProvider(param) {
112
112
  },
113
113
  elements: {
114
114
  elementsBodyColor: t('bodyColor'),
115
+ elementsHeadingTextColor: t('headingTextColor'),
115
116
  elementsInputBorderColor: t('inputBorderColor'),
116
117
  elementsInputBackgroundColor: t('inputBackgroundColor'),
117
118
  elementsInputBodyColor: t('inputBodyColor'),
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAChB,MAAM,mEAAmE,CAAA;AAE1E,eAAO,MAAM,wBAAwB,cACzB,OAAO,CAAC,eAAe,CAAC,oBAyBnC,CAAA"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/snippet/snippet-template/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,eAAe,EAChB,MAAM,mEAAmE,CAAA;AAE1E,eAAO,MAAM,wBAAwB,cACzB,OAAO,CAAC,eAAe,CAAC,oBAkCnC,CAAA"}
@@ -116,6 +116,10 @@ var safeMergeDefaultSettings = function() {
116
116
  var settingKeys = _to_consumable_array(new Set(_to_consumable_array(Object.keys(settingsProps)).concat(_to_consumable_array(Object.keys(DEFAULT_SNIPPET_TEMPLATE_COLORS)))));
117
117
  return settingKeys.reduce(function(prevValues, currentKey) {
118
118
  var settingsKeyValue = settings[currentKey];
119
+ // Do not default heading text color; leave undefined unless explicitly provided
120
+ if (currentKey === 'elementsHeadingTextColor' && (settingsKeyValue === undefined || settingsKeyValue === null || settingsKeyValue === '')) {
121
+ return prevValues;
122
+ }
119
123
  var // @TODO remove when will be integration with
120
124
  // calendar type
121
125
  _DEFAULT_SNIPPET_TEMPLATE_COLORS_currentKey;
@@ -456,3 +456,9 @@
456
456
  display: block !important;
457
457
  }
458
458
  }
459
+
460
+
461
+ // Ensure Texts element is always visible and uses heading text color by default
462
+ .snippet-template__texts-heading {
463
+ color: $snippet-elements-heading-text-color;
464
+ }
@@ -257,3 +257,9 @@ $color-transition:
257
257
  background-color 0.15s ease-in-out,
258
258
  border-color 0.15s ease-in-out,
259
259
  box-shadow 0.15s ease-in-out !default;
260
+
261
+ // Heading text color variable mapping
262
+ $snippet-elements-heading-text-color: var(
263
+ --snippet-elements-heading-text-color,
264
+ #333333
265
+ ) !default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@licklist/design",
3
- "version": "0.78.15",
3
+ "version": "0.78.16",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
@@ -42,7 +42,7 @@
42
42
  ]
43
43
  },
44
44
  "peerDependencies": {
45
- "@licklist/core": "0.36.4",
45
+ "@licklist/core": "0.36.5",
46
46
  "@licklist/eslint-config": "0.5.6",
47
47
  "@licklist/plugins": "0.36.5",
48
48
  "clsx": "2.1.1",
@@ -64,7 +64,7 @@
64
64
  "@dnd-kit/utilities": "2.0.0",
65
65
  "@fortawesome/fontawesome-svg-core": "1.2.34",
66
66
  "@fortawesome/free-solid-svg-icons": "5.15.2",
67
- "@licklist/core": "0.36.4",
67
+ "@licklist/core": "0.36.5",
68
68
  "@licklist/eslint-config": "0.5.6",
69
69
  "@licklist/plugins": "0.36.5",
70
70
  "@mantine/core": "6.0.22",
@@ -105,6 +105,7 @@ export function SnippetTemplateContextProvider({
105
105
  '--snippet-page-body-right-block-background-color':
106
106
  template?.pageBodyRightBlockBackgroundColor,
107
107
  '--snippet-elements-body-color': template?.elementsBodyColor,
108
+ '--snippet-elements-heading-text-color': template?.elementsHeadingTextColor || template?.elementsTitleColor,
108
109
  '--snippet-elements-input-border-color':
109
110
  template?.elementsInputBorderColor,
110
111
  '--snippet-elements-input-background-color':
@@ -92,6 +92,7 @@ export function SnippetTemplateViewContextProvider({ children }) {
92
92
 
93
93
  elements: {
94
94
  elementsBodyColor: t('bodyColor'),
95
+ elementsHeadingTextColor: t('headingTextColor'),
95
96
 
96
97
  elementsInputBorderColor: t('inputBorderColor'),
97
98
  elementsInputBackgroundColor: t('inputBackgroundColor'),
@@ -18,6 +18,15 @@ export const safeMergeDefaultSettings = (
18
18
  return settingKeys.reduce(
19
19
  (prevValues, currentKey) => {
20
20
  const settingsKeyValue = settings[currentKey]
21
+
22
+ // Do not default heading text color; leave undefined unless explicitly provided
23
+ if (
24
+ currentKey === 'elementsHeadingTextColor' &&
25
+ (settingsKeyValue === undefined || settingsKeyValue === null || settingsKeyValue === '')
26
+ ) {
27
+ return prevValues
28
+ }
29
+
21
30
  return {
22
31
  ...prevValues,
23
32
  [currentKey]:
@@ -456,3 +456,9 @@
456
456
  display: block !important;
457
457
  }
458
458
  }
459
+
460
+
461
+ // Ensure Texts element is always visible and uses heading text color by default
462
+ .snippet-template__texts-heading {
463
+ color: $snippet-elements-heading-text-color;
464
+ }
@@ -257,3 +257,9 @@ $color-transition:
257
257
  background-color 0.15s ease-in-out,
258
258
  border-color 0.15s ease-in-out,
259
259
  box-shadow 0.15s ease-in-out !default;
260
+
261
+ // Heading text color variable mapping
262
+ $snippet-elements-heading-text-color: var(
263
+ --snippet-elements-heading-text-color,
264
+ #333333
265
+ ) !default;