diy-template-components 5.1.2 → 5.1.4

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.
package/build/index.js CHANGED
@@ -2508,9 +2508,9 @@ const getBorderRadius = roundness => {
2508
2508
  large: 24
2509
2509
  },
2510
2510
  pill: {
2511
- small: 9999,
2512
- regular: 9999,
2513
- large: 9999
2511
+ small: 32,
2512
+ regular: 32,
2513
+ large: 32
2514
2514
  }
2515
2515
  };
2516
2516
  return mapping[roundness] || {
@@ -3224,7 +3224,8 @@ const useSectionStyles$9 = createUseStyles(theme => ({
3224
3224
  width: '100%',
3225
3225
  height: 'calc(100% - 100px)',
3226
3226
  // objectFit: 'cover',
3227
- objectPosition: '50% 50%'
3227
+ objectPosition: '50% 50%',
3228
+ borderRadius: theme?.shape?.borderRadius?.regular
3228
3229
  },
3229
3230
  absoluteButtonsBannerRight: {
3230
3231
  display: 'flex',
@@ -4199,7 +4200,7 @@ const useSectionStyles$6 = createUseStyles(theme => {
4199
4200
  flexDirection: 'column'
4200
4201
  },
4201
4202
  subTitleHeading: {
4202
- color: theme?.palette?.font?.invertedDefault,
4203
+ color: theme?.colors?.font2,
4203
4204
  marginBottom: '8px',
4204
4205
  fontSize: theme.typography.fontSize.subHead,
4205
4206
  wordBreak: 'break-word',
@@ -4208,14 +4209,14 @@ const useSectionStyles$6 = createUseStyles(theme => {
4208
4209
  heading: {
4209
4210
  margin: '0',
4210
4211
  fontSize: theme.typography.fontSize.h1,
4211
- color: theme?.palette?.font?.invertedDefault,
4212
+ color: theme?.colors?.font2,
4212
4213
  wordBreak: ({
4213
4214
  wordBreakValue
4214
4215
  }) => wordBreakValue || 'break-word',
4215
4216
  lineHeight: '80px'
4216
4217
  },
4217
4218
  description: {
4218
- color: theme?.palette?.font?.invertedDefault,
4219
+ color: theme?.colors?.font2,
4219
4220
  lineHeight: '32px',
4220
4221
  fontWeight: '400',
4221
4222
  wordBreak: 'break-word',
@@ -4490,7 +4491,8 @@ const useSectionStyles$5 = createUseStyles(theme => {
4490
4491
  width: '100%',
4491
4492
  position: 'relative',
4492
4493
  zIndex: '2',
4493
- objectFit: 'cover'
4494
+ objectFit: 'cover',
4495
+ borderRadius: theme?.shape?.borderRadius?.regular
4494
4496
  },
4495
4497
  textContainer: {
4496
4498
  marginLeft: '72px',
@@ -5593,7 +5595,7 @@ const useVideoTestimonialStyles = createUseStyles(theme => {
5593
5595
  display: 'flex',
5594
5596
  alignItems: 'center',
5595
5597
  // marginTop: '16px',
5596
- borderRadius: '8px'
5598
+ borderRadius: theme?.shape?.borderRadius?.regular
5597
5599
  },
5598
5600
  iframeContainer: {
5599
5601
  width: '100%',
@@ -6394,7 +6396,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
6394
6396
  cursor: 'pointer'
6395
6397
  },
6396
6398
  singleCard: {
6397
- borderRadius: '24px',
6399
+ borderRadius: theme?.shape?.borderRadius?.large,
6398
6400
  margin: '0 1px',
6399
6401
  width: 'calc(100% - 24px)',
6400
6402
  position: 'relative',
@@ -6417,7 +6419,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
6417
6419
  height: ({
6418
6420
  cardsCount
6419
6421
  }) => cardsCount === 1 ? '480px' : '100%',
6420
- borderRadius: '24px',
6422
+ borderRadius: theme?.shape?.borderRadius?.large,
6421
6423
  objectFit: 'cover',
6422
6424
  objectPosition: 'center',
6423
6425
  position: 'absolute',
@@ -6460,7 +6462,7 @@ const usePhotoGalleryStyles = createUseStyles(theme => {
6460
6462
  height: ({
6461
6463
  cardsCount
6462
6464
  }) => cardsCount === 1 ? '360px' : '',
6463
- borderRadius: '16px'
6465
+ borderRadius: theme?.shape?.borderRadius?.regular
6464
6466
  },
6465
6467
  singleCard: {
6466
6468
  width: ({
@@ -6609,7 +6611,7 @@ const useFaqListStyles = createUseStyles(theme => ({
6609
6611
  },
6610
6612
  container: {
6611
6613
  boxShadow: theme?.shadows?.secondary,
6612
- borderRadius: '8px',
6614
+ borderRadius: theme?.shape?.borderRadius?.regular,
6613
6615
  backgroundColor: theme?.colors?.white
6614
6616
  },
6615
6617
  basicCardContainer: {
@@ -8282,7 +8284,7 @@ const useTeamStyles = createUseStyles(theme => {
8282
8284
  height: '208px',
8283
8285
  top: '0',
8284
8286
  left: '0',
8285
- borderRadius: '12px 12px 0px 0px',
8287
+ borderRadius: `${theme?.shape?.borderRadius?.regular}px ${theme?.shape?.borderRadius?.regular}px 0 0`,
8286
8288
  objectFit: 'cover'
8287
8289
  },
8288
8290
  teamDetailsContainer: {
@@ -11468,7 +11470,7 @@ const useAboutInstituteStyles = createUseStyles(theme => ({
11468
11470
  image: {
11469
11471
  width: '100%',
11470
11472
  height: '100%',
11471
- borderRadius: '16px',
11473
+ borderRadius: theme?.shape?.borderRadius?.large,
11472
11474
  border: '1px solid var(--stroke, #D8E0F0)'
11473
11475
  },
11474
11476
  infoContainer: {
@@ -11476,7 +11478,7 @@ const useAboutInstituteStyles = createUseStyles(theme => ({
11476
11478
  gap: '16px',
11477
11479
  display: 'flex',
11478
11480
  flexDirection: 'column',
11479
- borderRadius: '16px',
11481
+ borderRadius: theme?.shape?.borderRadius?.large,
11480
11482
  background: 'var(--Blue-Tertiary, #F4F9FF)',
11481
11483
  flex: 1
11482
11484
  },
@@ -11510,7 +11512,7 @@ const useAboutInstituteStyles = createUseStyles(theme => ({
11510
11512
  display: 'flex',
11511
11513
  justifyContent: 'space-between',
11512
11514
  alignItems: 'center',
11513
- borderRadius: '16px',
11515
+ borderRadius: theme?.shape?.borderRadius?.large,
11514
11516
  background: 'var(--Blue-Tertiary, #F4F9FF)',
11515
11517
  flexGrow: 1
11516
11518
  },
@@ -11570,7 +11572,7 @@ const useAboutInstituteStyles = createUseStyles(theme => ({
11570
11572
  width: '150px'
11571
11573
  },
11572
11574
  image: {
11573
- borderRadius: '10px',
11575
+ borderRadius: theme?.shape?.borderRadius?.regular,
11574
11576
  border: '1px solid var(--stroke, #D8E0F0)'
11575
11577
  },
11576
11578
  infoContainer: {
@@ -11792,7 +11794,6 @@ const useCounterSectionStyles = createUseStyles(theme => {
11792
11794
  return {
11793
11795
  section: {
11794
11796
  width: '100%',
11795
- borderRadius: theme.shape?.borderRadius?.regular || '12px',
11796
11797
  overflow: 'hidden',
11797
11798
  backgroundImage: ({
11798
11799
  backgroundImage
@@ -11857,9 +11858,6 @@ const useCounterSectionStyles = createUseStyles(theme => {
11857
11858
  }
11858
11859
  },
11859
11860
  '@media (max-width: 767px)': {
11860
- section: {
11861
- borderRadius: theme.shape?.borderRadius?.small || '8px'
11862
- },
11863
11861
  container: {
11864
11862
  padding: `${theme.spacing.padding.regular}px ${theme.spacing.padding.tiny}px`
11865
11863
  },