@gem-sdk/components 2.0.0-dev.515 → 2.0.0-dev.517

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.
@@ -26,11 +26,14 @@ const getBreadcrumbChildItemStyles = (args)=>{
26
26
  };
27
27
  };
28
28
  const generateBreadcrumbChildIconStyles = (iconWidth, color)=>{
29
+ const desktopWidth = iconWidth?.desktop ?? 0;
30
+ const tabletWidth = iconWidth?.tablet ?? desktopWidth;
31
+ const mobileWidth = iconWidth?.mobile ?? tabletWidth;
29
32
  return {
30
- '--height-desktop': `${iconWidth?.desktop}px`,
31
- '--height-tablet': `${iconWidth?.tablet ?? iconWidth?.desktop}px`,
32
- '--height-mobile': `${iconWidth?.mobile ?? iconWidth?.tablet ?? iconWidth?.desktop}px`,
33
- '--color': `${color}`
33
+ '--height-desktop': `${desktopWidth}px`,
34
+ '--height-tablet': `${tabletWidth}px`,
35
+ '--height-mobile': `${mobileWidth}px`,
36
+ '--c': core.getGlobalColorCSSProp(color)
34
37
  };
35
38
  };
36
39
  const getBreadcrumbStyles = (style, settings)=>{
@@ -32,6 +32,7 @@ const config = {
32
32
  {
33
33
  tag: 'Breadcrumb',
34
34
  advanced: {
35
+ of: 'hidden',
35
36
  'spacing-setting': {
36
37
  desktop: {
37
38
  margin: {
@@ -84,7 +84,7 @@ const BreadcrumbSettings = [
84
84
  type: 'color-picker-v2',
85
85
  default: {
86
86
  normal: 'text-1',
87
- hover: 'text-1',
87
+ hover: 'highlight',
88
88
  active: 'text-1'
89
89
  },
90
90
  state: {
@@ -313,7 +313,7 @@ const SettingUIV2 = [
313
313
  controls: [
314
314
  {
315
315
  label: {
316
- en: 'Current page'
316
+ en: 'Hide active page'
317
317
  },
318
318
  setting: {
319
319
  id: 'hideCurrentPage'
@@ -30,7 +30,7 @@ const getButtonClass = ({ borderBtn, buttonBackgroundColor, iconColor, buttonSid
30
30
  };
31
31
  const getContainerClasses = (advanceClass)=>{
32
32
  return {
33
- ...core.composeClasses(`wc_quantity_selector gp-relative gp-inline-flex gp-h-12 gp-w-full gp-bg-transparent gp-transition-all gp-duration-150 data-[disabled=true]:gp-opacity-60 ${advanceClass ?? ''}`)
33
+ ...core.composeClasses(`quantityClass gp-relative gp-inline-flex gp-h-12 gp-w-full gp-bg-transparent gp-transition-all gp-duration-150 data-[disabled=true]:gp-opacity-60 ${advanceClass ?? ''}`)
34
34
  };
35
35
  };
36
36
  const getWrapperClasses = ()=>{
@@ -22,9 +22,6 @@ const config = {
22
22
  settings: [
23
23
  {
24
24
  id: 'setting',
25
- info: {
26
- next_link_text: 'You can integrate your store with any Shopify apps using this element'
27
- },
28
25
  controls: [
29
26
  {
30
27
  id: 'setupGuide',
@@ -3,6 +3,12 @@
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  const SettingUIV2 = [
6
+ {
7
+ messageConfig: {
8
+ type: 'info',
9
+ message: `You can integrate your store with any Shopify apps using this element`
10
+ }
11
+ },
6
12
  {
7
13
  controls: [
8
14
  {
@@ -1,4 +1,4 @@
1
- import { makeStyleResponsive, getGlobalColorStateStyle, makeStyle, getSingleColorVariable, removeNullUndefined } from '@gem-sdk/core';
1
+ import { makeStyleResponsive, getGlobalColorStateStyle, makeStyle, getSingleColorVariable, removeNullUndefined, getGlobalColorCSSProp } from '@gem-sdk/core';
2
2
  import { makeStyleStateConditionActive } from './index.js';
3
3
 
4
4
  const getSpacingStyles = (spacing)=>{
@@ -24,11 +24,14 @@ const getBreadcrumbChildItemStyles = (args)=>{
24
24
  };
25
25
  };
26
26
  const generateBreadcrumbChildIconStyles = (iconWidth, color)=>{
27
+ const desktopWidth = iconWidth?.desktop ?? 0;
28
+ const tabletWidth = iconWidth?.tablet ?? desktopWidth;
29
+ const mobileWidth = iconWidth?.mobile ?? tabletWidth;
27
30
  return {
28
- '--height-desktop': `${iconWidth?.desktop}px`,
29
- '--height-tablet': `${iconWidth?.tablet ?? iconWidth?.desktop}px`,
30
- '--height-mobile': `${iconWidth?.mobile ?? iconWidth?.tablet ?? iconWidth?.desktop}px`,
31
- '--color': `${color}`
31
+ '--height-desktop': `${desktopWidth}px`,
32
+ '--height-tablet': `${tabletWidth}px`,
33
+ '--height-mobile': `${mobileWidth}px`,
34
+ '--c': getGlobalColorCSSProp(color)
32
35
  };
33
36
  };
34
37
  const getBreadcrumbStyles = (style, settings)=>{
@@ -28,6 +28,7 @@ const config = {
28
28
  {
29
29
  tag: 'Breadcrumb',
30
30
  advanced: {
31
+ of: 'hidden',
31
32
  'spacing-setting': {
32
33
  desktop: {
33
34
  margin: {
@@ -82,7 +82,7 @@ const BreadcrumbSettings = [
82
82
  type: 'color-picker-v2',
83
83
  default: {
84
84
  normal: 'text-1',
85
- hover: 'text-1',
85
+ hover: 'highlight',
86
86
  active: 'text-1'
87
87
  },
88
88
  state: {
@@ -311,7 +311,7 @@ const SettingUIV2 = [
311
311
  controls: [
312
312
  {
313
313
  label: {
314
- en: 'Current page'
314
+ en: 'Hide active page'
315
315
  },
316
316
  setting: {
317
317
  id: 'hideCurrentPage'
@@ -28,7 +28,7 @@ const getButtonClass = ({ borderBtn, buttonBackgroundColor, iconColor, buttonSid
28
28
  };
29
29
  const getContainerClasses = (advanceClass)=>{
30
30
  return {
31
- ...composeClasses(`wc_quantity_selector gp-relative gp-inline-flex gp-h-12 gp-w-full gp-bg-transparent gp-transition-all gp-duration-150 data-[disabled=true]:gp-opacity-60 ${advanceClass ?? ''}`)
31
+ ...composeClasses(`quantityClass gp-relative gp-inline-flex gp-h-12 gp-w-full gp-bg-transparent gp-transition-all gp-duration-150 data-[disabled=true]:gp-opacity-60 ${advanceClass ?? ''}`)
32
32
  };
33
33
  };
34
34
  const getWrapperClasses = ()=>{
@@ -18,9 +18,6 @@ const config = {
18
18
  settings: [
19
19
  {
20
20
  id: 'setting',
21
- info: {
22
- next_link_text: 'You can integrate your store with any Shopify apps using this element'
23
- },
24
21
  controls: [
25
22
  {
26
23
  id: 'setupGuide',
@@ -1,4 +1,10 @@
1
1
  const SettingUIV2 = [
2
+ {
3
+ messageConfig: {
4
+ type: 'info',
5
+ message: `You can integrate your store with any Shopify apps using this element`
6
+ }
7
+ },
2
8
  {
3
9
  controls: [
4
10
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.515",
3
+ "version": "2.0.0-dev.517",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",