diy-template-components 5.1.1 → 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.es.js +28 -30
- package/build/index.es.js.map +1 -1
- package/build/index.js +28 -30
- package/build/index.js.map +1 -1
- package/package.json +1 -1
package/build/index.js
CHANGED
|
@@ -32,7 +32,7 @@ function insertStyle(css) {
|
|
|
32
32
|
return css;
|
|
33
33
|
}
|
|
34
34
|
|
|
35
|
-
insertStyle("/* Brush stroke underline - for rich text content (color via --brush-color inline style) */\n.brush-stroke {\n position: relative;\n display: inline-block;\n white-space: pre-wrap;\n}\n\n.brush-stroke::after {\n content: \"\";\n position: absolute;\n top: 90%;\n left: 0;\n height: 0.5em;\n width: 100%;\n z-index:
|
|
35
|
+
insertStyle("/* Brush stroke underline - for rich text content (color via --brush-color inline style) */\n.brush-stroke {\n position: relative;\n display: inline-block;\n white-space: pre-wrap;\n}\n\n.brush-stroke::after {\n content: \"\";\n position: absolute;\n top: 90%;\n left: 0;\n height: 0.5em;\n width: 100%;\n z-index: 1;\n border: solid var(--brush-width, 0.15em) var(--brush-color, #FFFFFF);\n border-color: var(--brush-color, #FFFFFF) transparent transparent transparent;\n border-radius: 100%;\n}\n\n/* Font size classes for rich text editor - Desktop (default) */\n.font-size-extra-small {\n font-size: 12px;\n line-height: 16px;\n}\n\n.font-size-small {\n font-size: 16px;\n line-height: 20px;\n}\n\n.font-size-medium {\n font-size: 20px;\n line-height: 24px;\n}\n\n.font-size-large {\n font-size: 24px;\n line-height: 28px;\n}\n\n.font-size-very-large {\n font-size: 32px;\n line-height: 36px;\n}\n\n.font-size-extra-large {\n font-size: 56px;\n line-height: 64px;\n}\n\n.font-size-huge {\n font-size: 72px;\n line-height: 80px;\n}\n\n/* Font size classes - Mobile */\n@media (max-width: 768px) {\n .font-size-extra-small {\n font-size: 10px;\n line-height: 14px;\n }\n .font-size-small {\n font-size: 14px;\n line-height: 18px;\n }\n .font-size-medium {\n font-size: 16px;\n line-height: 20px;\n }\n .font-size-large {\n font-size: 18px;\n line-height: 20px;\n }\n .font-size-very-large {\n font-size: 24px;\n line-height: 36px;\n }\n .font-size-extra-large {\n font-size: 40px;\n line-height: 48px;\n }\n .font-size-huge {\n font-size: 56px;\n line-height: 64px;\n }\n}");
|
|
36
36
|
|
|
37
37
|
function _extends() {
|
|
38
38
|
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
@@ -2508,9 +2508,9 @@ const getBorderRadius = roundness => {
|
|
|
2508
2508
|
large: 24
|
|
2509
2509
|
},
|
|
2510
2510
|
pill: {
|
|
2511
|
-
small:
|
|
2512
|
-
regular:
|
|
2513
|
-
large:
|
|
2511
|
+
small: 32,
|
|
2512
|
+
regular: 32,
|
|
2513
|
+
large: 32
|
|
2514
2514
|
}
|
|
2515
2515
|
};
|
|
2516
2516
|
return mapping[roundness] || {
|
|
@@ -2562,7 +2562,7 @@ function FontSeeder({
|
|
|
2562
2562
|
return null;
|
|
2563
2563
|
}
|
|
2564
2564
|
|
|
2565
|
-
insertStyle("@charset \"UTF-8\";\n/* Wrapper: no height/min-height – height comes only from section content, not from HOC */\n.sectionBackgroundWrapper {\n position: relative;\n width: 100%;\n overflow: hidden;\n}\n\n/* Section root transparent so background (image/color/gradient/video) shows through */\n.sectionBackgroundWrapper > .sectionBackgroundContent > * {\n background: transparent !important;\n}\n\n/* Video: absolute so it does not affect wrapper height; height follows section */\n.sectionBackgroundVideo {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n z-index: 0;\n pointer-events: none;\n}\n\n/* YouTube embed: cover background, no UI interaction, minimal branding via URL params */\n.sectionBackgroundYoutube {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100vw;\n min-width: 100%;\n min-height: 100%;\n height: 56.25vw; /* 16:9 */\n min-height: 100vh;\n transform: translate(-50%, -50%);\n border: none;\n z-index: 0;\n pointer-events: none;\n}\n\n@media (min-aspect-ratio: 16/9) {\n .sectionBackgroundYoutube {\n width: 177.78vh;\n height: 100vh;\n min-width: 100%;\n min-height: 100%;\n }\n}\n/* Blur overlay: frosted glass so content stays readable over video/image/gradient */\n.sectionBackgroundBlur {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1;\n pointer-events: none;\n backdrop-filter: blur(2px);\n -webkit-backdrop-filter: blur(2px)
|
|
2565
|
+
insertStyle("@charset \"UTF-8\";\n/* Wrapper: no height/min-height – height comes only from section content, not from HOC */\n.sectionBackgroundWrapper {\n position: relative;\n width: 100%;\n overflow: hidden;\n}\n\n/* Section root transparent so background (image/color/gradient/video) shows through */\n.sectionBackgroundWrapper > .sectionBackgroundContent > * {\n background: transparent !important;\n}\n\n/* Video: absolute so it does not affect wrapper height; height follows section */\n.sectionBackgroundVideo {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n object-fit: cover;\n z-index: 0;\n pointer-events: none;\n}\n\n/* YouTube embed: cover background, no UI interaction, minimal branding via URL params */\n.sectionBackgroundYoutube {\n position: absolute;\n top: 50%;\n left: 50%;\n width: 100vw;\n min-width: 100%;\n min-height: 100%;\n height: 56.25vw; /* 16:9 */\n min-height: 100vh;\n transform: translate(-50%, -50%);\n border: none;\n z-index: 0;\n pointer-events: none;\n}\n\n@media (min-aspect-ratio: 16/9) {\n .sectionBackgroundYoutube {\n width: 177.78vh;\n height: 100vh;\n min-width: 100%;\n min-height: 100%;\n }\n}\n/* Blur overlay: frosted glass so content stays readable over video/image/gradient */\n.sectionBackgroundBlur {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 1;\n pointer-events: none;\n /* backdrop-filter: blur(2px);\n -webkit-backdrop-filter: blur(2px); */\n /* background: rgba(255, 255, 255, 0.08); */\n}\n\n/* Content wrapper: above blur so component items are clear */\n.sectionBackgroundContent {\n position: relative;\n z-index: 2;\n}\n\n/* Background layer: fills wrapper only (absolute), does not affect wrapper height */\n.sectionBackgroundLayer {\n position: absolute;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n z-index: 0;\n pointer-events: none;\n}\n\n.sectionBackgroundLayer.sectionBackgroundImage {\n background-size: cover;\n background-position: center;\n background-repeat: no-repeat;\n}");
|
|
2566
2566
|
|
|
2567
2567
|
/**
|
|
2568
2568
|
* Extracts YouTube video ID from various YouTube URL formats.
|
|
@@ -2667,7 +2667,7 @@ function withSectionBackground(WrappedSectionRenderer) {
|
|
|
2667
2667
|
switch (type) {
|
|
2668
2668
|
case 'color':
|
|
2669
2669
|
return {
|
|
2670
|
-
|
|
2670
|
+
background: value
|
|
2671
2671
|
};
|
|
2672
2672
|
case 'image':
|
|
2673
2673
|
return {
|
|
@@ -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?.
|
|
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?.
|
|
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?.
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
},
|
|
@@ -12478,10 +12476,10 @@ const useTimerCallPageStyles = createUseStyles(theme => ({
|
|
|
12478
12476
|
}
|
|
12479
12477
|
},
|
|
12480
12478
|
timerAndCallContainer: {
|
|
12481
|
-
padding: '72px',
|
|
12482
|
-
background: '#F4F9FF',
|
|
12483
|
-
borderRadius: '8px',
|
|
12484
|
-
boxShadow: '0px 4px 10px rgba(0, 0, 0, 0.16)'
|
|
12479
|
+
// padding: '72px',
|
|
12480
|
+
// background: '#F4F9FF',
|
|
12481
|
+
// borderRadius: '8px',
|
|
12482
|
+
// boxShadow: '0px 4px 10px rgba(0, 0, 0, 0.16)'
|
|
12485
12483
|
},
|
|
12486
12484
|
timerAndCallBox: {
|
|
12487
12485
|
display: 'flex',
|
|
@@ -12611,7 +12609,7 @@ const TimerAndCall = ({
|
|
|
12611
12609
|
}
|
|
12612
12610
|
})) : null, nodeData?.timerButton?.metadata?.value ? /*#__PURE__*/React__default["default"].createElement(Button, {
|
|
12613
12611
|
style: {
|
|
12614
|
-
width: '
|
|
12612
|
+
width: 'fit-content',
|
|
12615
12613
|
fontWeight: '700',
|
|
12616
12614
|
fontSize: '14px'
|
|
12617
12615
|
},
|