@gem-sdk/components 2.0.0-dev.516 → 2.0.0-dev.518

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'
@@ -9,7 +9,8 @@ const getContainerAttrs = ({ uid, isDisabled = true, isDisableByLiquid })=>{
9
9
  const getButtonAttrs = ({ buttonSide })=>{
10
10
  return {
11
11
  title: buttonSide === 'left' ? 'Decrement' : 'Increment',
12
- 'aria-label': buttonSide === 'left' ? 'decrement' : 'increment'
12
+ 'aria-label': buttonSide === 'left' ? 'decrement' : 'increment',
13
+ type: 'button'
13
14
  };
14
15
  };
15
16
  const getInputAttr = ({ isLiquid, qtyStyle, quantity, currentVariant, defaultQty })=>{
@@ -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 = ()=>{
@@ -360,13 +360,6 @@ const ProductQuantitySettings = [
360
360
  width: '1px 1px 1px 1px',
361
361
  color: 'line-1',
362
362
  isCustom: true
363
- },
364
- hover: {
365
- borderType: 'none',
366
- border: 'none',
367
- borderWidth: '1px',
368
- width: '1px 1px 1px 1px',
369
- isCustom: true
370
363
  }
371
364
  }
372
365
  }
@@ -522,7 +515,8 @@ const ProductQuantitySettings = [
522
515
  devices: {
523
516
  desktop: {
524
517
  default: {
525
- normal: 1
518
+ normal: 1,
519
+ hover: 1
526
520
  }
527
521
  }
528
522
  },
@@ -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'
@@ -7,7 +7,8 @@ const getContainerAttrs = ({ uid, isDisabled = true, isDisableByLiquid })=>{
7
7
  const getButtonAttrs = ({ buttonSide })=>{
8
8
  return {
9
9
  title: buttonSide === 'left' ? 'Decrement' : 'Increment',
10
- 'aria-label': buttonSide === 'left' ? 'decrement' : 'increment'
10
+ 'aria-label': buttonSide === 'left' ? 'decrement' : 'increment',
11
+ type: 'button'
11
12
  };
12
13
  };
13
14
  const getInputAttr = ({ isLiquid, qtyStyle, quantity, currentVariant, defaultQty })=>{
@@ -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 = ()=>{
@@ -358,13 +358,6 @@ const ProductQuantitySettings = [
358
358
  width: '1px 1px 1px 1px',
359
359
  color: 'line-1',
360
360
  isCustom: true
361
- },
362
- hover: {
363
- borderType: 'none',
364
- border: 'none',
365
- borderWidth: '1px',
366
- width: '1px 1px 1px 1px',
367
- isCustom: true
368
361
  }
369
362
  }
370
363
  }
@@ -520,7 +513,8 @@ const ProductQuantitySettings = [
520
513
  devices: {
521
514
  desktop: {
522
515
  default: {
523
- normal: 1
516
+ normal: 1,
517
+ hover: 1
524
518
  }
525
519
  }
526
520
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-dev.516",
3
+ "version": "2.0.0-dev.518",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",