@gem-sdk/components 2.0.0-staging.711 → 2.0.0-staging.712

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.
@@ -4,13 +4,6 @@
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
6
  var jsxRuntime = require('react/jsx-runtime');
7
- require('@gem-sdk/core');
8
- require('react');
9
- require('@gem-sdk/system');
10
- require('next/link');
11
- require('next/head');
12
- require('next/image');
13
- require('react-youtube');
14
7
  var CollectionPaginator = require('../../collection/components/collection-paginator/components/CollectionPaginator.js');
15
8
 
16
9
  const ArticlePagination = (props)=>{
@@ -3,11 +3,6 @@
3
3
 
4
4
  Object.defineProperty(exports, '__esModule', { value: true });
5
5
 
6
- require('@gem-sdk/core');
7
- require('react/jsx-runtime');
8
- require('react');
9
- require('next/link');
10
- require('@gem-sdk/system');
11
6
  var CollectionPaginator_liquid = require('../../collection/components/collection-paginator/components/CollectionPaginator.liquid.js');
12
7
 
13
8
  const ArticlePagination = (props)=>{
@@ -7,8 +7,6 @@ require('next/link');
7
7
  require('@gem-sdk/system');
8
8
  require('../image/components/AdaptiveImage.js');
9
9
  require('next/image');
10
- require('next/head');
11
- require('react-youtube');
12
10
  require('html-react-parser');
13
11
  var ArticleList$1 = require('./setting/ArticleList.js');
14
12
  var ArticleTitle$1 = require('./setting/ArticleTitle.js');
@@ -4,23 +4,10 @@ Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
5
  var core = require('@gem-sdk/core');
6
6
  var helpers = require('../../helpers.js');
7
- var system = require('@gem-sdk/system');
8
- require('../../accordion/components/common/classes.js');
9
- var Text_liquid = require('../../text/components/Text.liquid.js');
10
- require('html-react-parser');
11
- require('react/jsx-runtime');
12
- require('react');
13
- require('next/link');
14
7
  var getNewSetting = require('./common/getNewSetting.js');
8
+ var system = require('@gem-sdk/system');
15
9
  var getAdvanced = require('./common/getAdvanced.js');
16
- require('../../marquee/common/classes.js');
17
- require('../../product/components/constants/product-bundle.js');
18
- require('../../product/components/ProductBadge/types.js');
19
- require('../../product/components/ProductBadge/constants.js');
20
- require('../../product/components/ProductBadge/utils/shape.js');
21
- require('../../product/components/ProductBundle/common/styles.js');
22
- require('../../product/components/ProductBundle/common/classes.js');
23
- require('../../product/components/ProductButton/common/types.js');
10
+ var Text_liquid = require('../../text/components/Text.liquid.js');
24
11
 
25
12
  const EstimateDate = ({ setting = {}, styles, builderAttrs, style, builderProps, advanced, isText, pageContext })=>{
26
13
  const wrapperClasses = system.createClass({
@@ -1,12 +1,5 @@
1
1
  'use client';
2
2
  import { jsx } from 'react/jsx-runtime';
3
- import '@gem-sdk/core';
4
- import 'react';
5
- import '@gem-sdk/system';
6
- import 'next/link';
7
- import 'next/head';
8
- import 'next/image';
9
- import 'react-youtube';
10
3
  import CollectionPaginator from '../../collection/components/collection-paginator/components/CollectionPaginator.js';
11
4
 
12
5
  const ArticlePagination = (props)=>{
@@ -1,9 +1,4 @@
1
1
  'use client';
2
- import '@gem-sdk/core';
3
- import 'react/jsx-runtime';
4
- import 'react';
5
- import 'next/link';
6
- import '@gem-sdk/system';
7
2
  import CollectionPaginator from '../../collection/components/collection-paginator/components/CollectionPaginator.liquid.js';
8
3
 
9
4
  const ArticlePagination = (props)=>{
@@ -5,8 +5,6 @@ import 'next/link';
5
5
  import '@gem-sdk/system';
6
6
  import '../image/components/AdaptiveImage.js';
7
7
  import 'next/image';
8
- import 'next/head';
9
- import 'react-youtube';
10
8
  import 'html-react-parser';
11
9
  import config from './setting/ArticleList.js';
12
10
  import config$1 from './setting/ArticleTitle.js';
@@ -1,22 +1,9 @@
1
1
  import { template, RenderIf, isLocalEnv, baseAssetURL } from '@gem-sdk/core';
2
2
  import { getSettingPreloadData } from '../../helpers.js';
3
- import { createClass } from '@gem-sdk/system';
4
- import '../../accordion/components/common/classes.js';
5
- import Text from '../../text/components/Text.liquid.js';
6
- import 'html-react-parser';
7
- import 'react/jsx-runtime';
8
- import 'react';
9
- import 'next/link';
10
3
  import { getNewSetting } from './common/getNewSetting.js';
4
+ import { createClass } from '@gem-sdk/system';
11
5
  import { getClassAdvanced } from './common/getAdvanced.js';
12
- import '../../marquee/common/classes.js';
13
- import '../../product/components/constants/product-bundle.js';
14
- import '../../product/components/ProductBadge/types.js';
15
- import '../../product/components/ProductBadge/constants.js';
16
- import '../../product/components/ProductBadge/utils/shape.js';
17
- import '../../product/components/ProductBundle/common/styles.js';
18
- import '../../product/components/ProductBundle/common/classes.js';
19
- import '../../product/components/ProductButton/common/types.js';
6
+ import Text from '../../text/components/Text.liquid.js';
20
7
 
21
8
  const EstimateDate = ({ setting = {}, styles, builderAttrs, style, builderProps, advanced, isText, pageContext })=>{
22
9
  const wrapperClasses = createClass({
@@ -463,23 +463,53 @@ declare const ArticleContent$1: React.FC<ArticleContentProps>;
463
463
 
464
464
  declare const ArticleImage$1: React.FC<ArticleImageProps>;
465
465
 
466
- type CollectionTitleProps = BaseProps<{
467
- htmlTag?: React.ElementType;
468
- textAlign?: ObjectDevices$1<AlignProp>;
469
- /**
470
- * @deprecated please use color inside `typo` instead
471
- */
472
- textColor?: ColorValueType$1;
466
+ type CollectionPaginatorProps = BasePropsWrap<{
467
+ pageQuantity?: string;
468
+ layout?: string;
469
+ buttonShape?: string;
470
+ buttonSizeNumber?: number;
471
+ itemSpacing?: number | string;
472
+ previousText?: string;
473
+ nextText?: string;
474
+ translate?: string;
473
475
  /**
474
476
  * @deprecated please use `typo` instead
475
477
  */
476
- typography?: TypographySetting$1;
478
+ typographyPaginator?: TypographySetting$1;
477
479
  typo?: TypographySettingV2;
478
- /**
479
- * @deprecated please use transform inside `typo` instead
480
- */
481
- transform?: TransformProp;
482
- }>;
480
+ normalColor?: ColorValueType$1;
481
+ activeColor?: ColorValueType$1;
482
+ align?: ObjectDevices$1<AlignProp>;
483
+ numberOfProducts?: number;
484
+ }> & {
485
+ pageContext?: PageContext;
486
+ };
487
+
488
+ declare const ArticlePagination$1: React.FC<CollectionPaginatorProps>;
489
+
490
+ declare const ArticleAuthor$1: React.FC<ArticleAuthorProps>;
491
+
492
+ declare const ArticleTag$1: React.FC<ArticleTagProps>;
493
+
494
+ declare const ArticleCategory$1: React.FC<ArticleCategoryProps>;
495
+
496
+ declare const ArticleDate$1: React.FC<ArticleDateProps>;
497
+
498
+ declare const ArticleReadMore$1: React.FC<ArticleReadMoreProps>;
499
+
500
+ declare const articleListSetting: {
501
+ ArticleList: _gem_sdk_core.ComponentSetting<ArticleListProps>;
502
+ ArticleTitle: _gem_sdk_core.ComponentSetting<ArticleTitleProps>;
503
+ ArticleExcerpt: _gem_sdk_core.ComponentSetting<ArticleExcerptProps>;
504
+ ArticleContent: _gem_sdk_core.ComponentSetting<ArticleContentProps>;
505
+ ArticleImage: _gem_sdk_core.ComponentSetting<ArticleImageProps>;
506
+ ArticlePagination: _gem_sdk_core.ComponentSetting<CollectionPaginatorProps>;
507
+ ArticleAuthor: _gem_sdk_core.ComponentSetting<ArticleAuthorProps>;
508
+ ArticleTag: _gem_sdk_core.ComponentSetting<ArticleTagProps>;
509
+ ArticleCategory: _gem_sdk_core.ComponentSetting<ArticleCategoryProps>;
510
+ ArticleDate: _gem_sdk_core.ComponentSetting<ArticleDateProps>;
511
+ ArticleReadMore: _gem_sdk_core.ComponentSetting<ArticleReadMoreProps>;
512
+ };
483
513
 
484
514
  type RootProps$2 = {
485
515
  children?: React.ReactNode;
@@ -567,149 +597,6 @@ declare const gridSetting: {
567
597
  };
568
598
 
569
599
  type Setting$5 = {
570
- link?: {
571
- link?: string;
572
- target?: string;
573
- };
574
- hoverEffect?: 'none' | 'zoom';
575
- hoverScale?: number;
576
- hoverDuration?: string;
577
- overlayColor?: StateProp<ColorValueType$1>;
578
- overlayOpacity?: StateProp<string>;
579
- fixedMode?: boolean;
580
- height?: ObjectDevices$1<string>;
581
- contentPosition?: string;
582
- container?: boolean;
583
- } & Pick<NonNullable<RowProps['setting']>, 'layout' | 'horizontalAlign' | 'verticalAlign'> & Pick<NonNullable<RowProps['styles']>, 'background' | 'fullWidth' | 'width' | 'verticalGutter'>;
584
- type CollectionBannerProps = BasePropsWrap<Setting$5> & {
585
- children?: React.ReactNode;
586
- };
587
-
588
- type CollectionDescriptionProps = BaseProps<{
589
- textAlign?: ObjectDevices$1<AlignProp>;
590
- /**
591
- * @deprecated please use color inside `typo` instead
592
- */
593
- textColor?: ColorValueType$1;
594
- /**
595
- * @deprecated please use `typo` instead
596
- */
597
- typography?: TypographySetting$1;
598
- typo?: TypographySettingV2;
599
- /**
600
- * @deprecated please use transform inside `typo` instead
601
- */
602
- color?: ColorValueType$1;
603
- transform?: TransformProp;
604
- showMoreColor?: ColorValueType$1;
605
- hasLineClamp?: ObjectDevices$1<boolean>;
606
- lineClamp?: ObjectDevices$1<number>;
607
- viewMoreText?: string;
608
- viewLessText?: string;
609
- enableViewMoreIcon?: boolean;
610
- translate?: string;
611
- htmlTag?: 'plaintext' | 'html';
612
- }> & {
613
- pageContext?: PageContext;
614
- };
615
-
616
- type CollectionToolbarProps = BaseProps<{
617
- sortingTextDisplay?: string;
618
- displayQuantity?: boolean;
619
- quantityTextDisplay?: string;
620
- translate?: string;
621
- typoSorting?: TypographySettingV2;
622
- typoQuantity?: TypographySettingV2;
623
- width?: ObjectDevices$1<string | number>;
624
- height?: ObjectDevices$1<string | number>;
625
- align?: ObjectDevices$1<AlignProp>;
626
- /**
627
- * @deprecated please use `typoSorting` instead
628
- */
629
- typographySorting?: TypographySetting$1;
630
- /**
631
- * @deprecated please use color inside `typoSorting` instead
632
- */
633
- colorSorting?: ColorValueType$1;
634
- /**
635
- * @deprecated please use `typoQuantity` instead
636
- */
637
- typographyQuantity?: TypographySetting$1;
638
- /**
639
- * @deprecated please use color inside `typoQuantity` instead
640
- */
641
- colorQuantity?: ColorValueType$1;
642
- }> & {
643
- pageContext?: PageContext;
644
- };
645
-
646
- type CollectionPaginatorProps = BasePropsWrap<{
647
- pageQuantity?: string;
648
- layout?: string;
649
- buttonShape?: string;
650
- buttonSizeNumber?: number;
651
- itemSpacing?: number | string;
652
- previousText?: string;
653
- nextText?: string;
654
- translate?: string;
655
- /**
656
- * @deprecated please use `typo` instead
657
- */
658
- typographyPaginator?: TypographySetting$1;
659
- typo?: TypographySettingV2;
660
- normalColor?: ColorValueType$1;
661
- activeColor?: ColorValueType$1;
662
- align?: ObjectDevices$1<AlignProp>;
663
- numberOfProducts?: number;
664
- }> & {
665
- pageContext?: PageContext;
666
- };
667
-
668
- declare const CollectionTitle$1: React.FC<CollectionTitleProps>;
669
-
670
- declare const CollectionBanner$1: React.FC<CollectionBannerProps>;
671
-
672
- declare const CollectionDescription$1: React.FC<CollectionDescriptionProps>;
673
-
674
- declare const CollectionToolbar$1: React.FC<CollectionToolbarProps>;
675
-
676
- declare const CollectionPaginator$1: React.FC<CollectionPaginatorProps>;
677
-
678
- declare const collectionSetting: {
679
- CollectionTitle: _gem_sdk_core.ComponentSetting<CollectionTitleProps>;
680
- CollectionBanner: _gem_sdk_core.ComponentSetting<CollectionBannerProps>;
681
- CollectionDescription: _gem_sdk_core.ComponentSetting<CollectionDescriptionProps>;
682
- CollectionToolbar: _gem_sdk_core.ComponentSetting<CollectionToolbarProps>;
683
- CollectionPaginator: _gem_sdk_core.ComponentSetting<CollectionPaginatorProps>;
684
- };
685
-
686
- declare const ArticlePagination$1: React.FC<CollectionPaginatorProps>;
687
-
688
- declare const ArticleAuthor$1: React.FC<ArticleAuthorProps>;
689
-
690
- declare const ArticleTag$1: React.FC<ArticleTagProps>;
691
-
692
- declare const ArticleCategory$1: React.FC<ArticleCategoryProps>;
693
-
694
- declare const ArticleDate$1: React.FC<ArticleDateProps>;
695
-
696
- declare const ArticleReadMore$1: React.FC<ArticleReadMoreProps>;
697
-
698
- declare const articleListSetting: {
699
- ArticleList: _gem_sdk_core.ComponentSetting<ArticleListProps>;
700
- ArticleTitle: _gem_sdk_core.ComponentSetting<ArticleTitleProps>;
701
- ArticleExcerpt: _gem_sdk_core.ComponentSetting<ArticleExcerptProps>;
702
- ArticleContent: _gem_sdk_core.ComponentSetting<ArticleContentProps>;
703
- ArticleImage: _gem_sdk_core.ComponentSetting<ArticleImageProps>;
704
- ArticlePagination: _gem_sdk_core.ComponentSetting<CollectionPaginatorProps>;
705
- ArticleAuthor: _gem_sdk_core.ComponentSetting<ArticleAuthorProps>;
706
- ArticleTag: _gem_sdk_core.ComponentSetting<ArticleTagProps>;
707
- ArticleCategory: _gem_sdk_core.ComponentSetting<ArticleCategoryProps>;
708
- ArticleDate: _gem_sdk_core.ComponentSetting<ArticleDateProps>;
709
- ArticleReadMore: _gem_sdk_core.ComponentSetting<ArticleReadMoreProps>;
710
- };
711
-
712
- type Setting$4 = {
713
600
  link?: {
714
601
  link?: string;
715
602
  target?: string;
@@ -749,7 +636,7 @@ type Styles$2 = {
749
636
  order?: ObjectDevices$1<number>;
750
637
  contentPadding?: ObjectDevices$1<PaddingType$1>;
751
638
  } & Pick<NonNullable<RowProps['styles']>, 'verticalGutter' | 'background'>;
752
- type HeroBannerProps = BasePropsWrap<Setting$4, Styles$2> & {
639
+ type HeroBannerProps = BasePropsWrap<Setting$5, Styles$2> & {
753
640
  children?: React.ReactNode;
754
641
  rawChildren?: any[];
755
642
  advanced?: any;
@@ -1229,6 +1116,119 @@ declare const codeSetting: {
1229
1116
  CSSCode: _gem_sdk_core.ComponentSetting<CSSCodeProps>;
1230
1117
  };
1231
1118
 
1119
+ type CollectionTitleProps = BaseProps<{
1120
+ htmlTag?: React.ElementType;
1121
+ textAlign?: ObjectDevices$1<AlignProp>;
1122
+ /**
1123
+ * @deprecated please use color inside `typo` instead
1124
+ */
1125
+ textColor?: ColorValueType$1;
1126
+ /**
1127
+ * @deprecated please use `typo` instead
1128
+ */
1129
+ typography?: TypographySetting$1;
1130
+ typo?: TypographySettingV2;
1131
+ /**
1132
+ * @deprecated please use transform inside `typo` instead
1133
+ */
1134
+ transform?: TransformProp;
1135
+ }>;
1136
+
1137
+ type Setting$4 = {
1138
+ link?: {
1139
+ link?: string;
1140
+ target?: string;
1141
+ };
1142
+ hoverEffect?: 'none' | 'zoom';
1143
+ hoverScale?: number;
1144
+ hoverDuration?: string;
1145
+ overlayColor?: StateProp<ColorValueType$1>;
1146
+ overlayOpacity?: StateProp<string>;
1147
+ fixedMode?: boolean;
1148
+ height?: ObjectDevices$1<string>;
1149
+ contentPosition?: string;
1150
+ container?: boolean;
1151
+ } & Pick<NonNullable<RowProps['setting']>, 'layout' | 'horizontalAlign' | 'verticalAlign'> & Pick<NonNullable<RowProps['styles']>, 'background' | 'fullWidth' | 'width' | 'verticalGutter'>;
1152
+ type CollectionBannerProps = BasePropsWrap<Setting$4> & {
1153
+ children?: React.ReactNode;
1154
+ };
1155
+
1156
+ type CollectionDescriptionProps = BaseProps<{
1157
+ textAlign?: ObjectDevices$1<AlignProp>;
1158
+ /**
1159
+ * @deprecated please use color inside `typo` instead
1160
+ */
1161
+ textColor?: ColorValueType$1;
1162
+ /**
1163
+ * @deprecated please use `typo` instead
1164
+ */
1165
+ typography?: TypographySetting$1;
1166
+ typo?: TypographySettingV2;
1167
+ /**
1168
+ * @deprecated please use transform inside `typo` instead
1169
+ */
1170
+ color?: ColorValueType$1;
1171
+ transform?: TransformProp;
1172
+ showMoreColor?: ColorValueType$1;
1173
+ hasLineClamp?: ObjectDevices$1<boolean>;
1174
+ lineClamp?: ObjectDevices$1<number>;
1175
+ viewMoreText?: string;
1176
+ viewLessText?: string;
1177
+ enableViewMoreIcon?: boolean;
1178
+ translate?: string;
1179
+ htmlTag?: 'plaintext' | 'html';
1180
+ }> & {
1181
+ pageContext?: PageContext;
1182
+ };
1183
+
1184
+ type CollectionToolbarProps = BaseProps<{
1185
+ sortingTextDisplay?: string;
1186
+ displayQuantity?: boolean;
1187
+ quantityTextDisplay?: string;
1188
+ translate?: string;
1189
+ typoSorting?: TypographySettingV2;
1190
+ typoQuantity?: TypographySettingV2;
1191
+ width?: ObjectDevices$1<string | number>;
1192
+ height?: ObjectDevices$1<string | number>;
1193
+ align?: ObjectDevices$1<AlignProp>;
1194
+ /**
1195
+ * @deprecated please use `typoSorting` instead
1196
+ */
1197
+ typographySorting?: TypographySetting$1;
1198
+ /**
1199
+ * @deprecated please use color inside `typoSorting` instead
1200
+ */
1201
+ colorSorting?: ColorValueType$1;
1202
+ /**
1203
+ * @deprecated please use `typoQuantity` instead
1204
+ */
1205
+ typographyQuantity?: TypographySetting$1;
1206
+ /**
1207
+ * @deprecated please use color inside `typoQuantity` instead
1208
+ */
1209
+ colorQuantity?: ColorValueType$1;
1210
+ }> & {
1211
+ pageContext?: PageContext;
1212
+ };
1213
+
1214
+ declare const CollectionTitle$1: React.FC<CollectionTitleProps>;
1215
+
1216
+ declare const CollectionBanner$1: React.FC<CollectionBannerProps>;
1217
+
1218
+ declare const CollectionDescription$1: React.FC<CollectionDescriptionProps>;
1219
+
1220
+ declare const CollectionToolbar$1: React.FC<CollectionToolbarProps>;
1221
+
1222
+ declare const CollectionPaginator$1: React.FC<CollectionPaginatorProps>;
1223
+
1224
+ declare const collectionSetting: {
1225
+ CollectionTitle: _gem_sdk_core.ComponentSetting<CollectionTitleProps>;
1226
+ CollectionBanner: _gem_sdk_core.ComponentSetting<CollectionBannerProps>;
1227
+ CollectionDescription: _gem_sdk_core.ComponentSetting<CollectionDescriptionProps>;
1228
+ CollectionToolbar: _gem_sdk_core.ComponentSetting<CollectionToolbarProps>;
1229
+ CollectionPaginator: _gem_sdk_core.ComponentSetting<CollectionPaginatorProps>;
1230
+ };
1231
+
1232
1232
  type NameDevices = 'desktop' | 'tablet' | 'mobile';
1233
1233
  type ObjectDevices<T> = Partial<Record<NameDevices, T>>;
1234
1234
  type HexColorType = `#${string}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gem-sdk/components",
3
- "version": "2.0.0-staging.711",
3
+ "version": "2.0.0-staging.712",
4
4
  "license": "MIT",
5
5
  "sideEffects": false,
6
6
  "main": "dist/cjs/index.js",