@blockbite/tailwind 3.4.13 → 3.4.14

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.
Files changed (75) hide show
  1. package/dist/___index copy.d.ts +7 -0
  2. package/dist/___index copy.js +9 -0
  3. package/dist/aspect-ratio.d.ts +1 -0
  4. package/dist/aspect-ratio.js +6 -0
  5. package/dist/colors.d.ts +8 -0
  6. package/dist/colors.js +65 -0
  7. package/dist/components/anchor-position.d.ts +3 -0
  8. package/dist/components/anchor-position.js +99 -0
  9. package/dist/components/fluid-container.d.ts +4 -0
  10. package/dist/components/fluid-container.js +29 -0
  11. package/dist/components/grid-container.d.ts +5 -0
  12. package/dist/components/grid-container.js +34 -0
  13. package/dist/components/interaction.d.ts +3 -0
  14. package/dist/components/interaction.js +35 -0
  15. package/dist/components/swiper.d.ts +3 -0
  16. package/dist/components/swiper.js +13 -0
  17. package/dist/container.d.ts +8 -0
  18. package/dist/container.js +10 -0
  19. package/dist/gridarea/index.d.ts +2 -0
  20. package/dist/gridarea/index.js +7 -0
  21. package/dist/gridarea/utilities/area-dimensions.d.ts +3 -0
  22. package/dist/gridarea/utilities/area-dimensions.js +22 -0
  23. package/dist/gridarea/utilities/grid-area.d.ts +5 -0
  24. package/dist/gridarea/utilities/grid-area.js +46 -0
  25. package/dist/index.d.ts +9 -0
  26. package/dist/index.js +32 -0
  27. package/dist/plugins/viewport-dimensions.d.ts +2 -0
  28. package/dist/plugins/viewport-dimensions.js +25 -0
  29. package/dist/screens.d.ts +5 -0
  30. package/dist/screens.js +10 -0
  31. package/dist/spacing.d.ts +6 -0
  32. package/dist/spacing.js +201 -0
  33. package/dist/theme-parser.d.ts +21 -0
  34. package/dist/theme-parser.js +68 -0
  35. package/package.json +26 -4
  36. package/CHANGELOG.md +0 -55
  37. package/components/anchor-position.js +0 -110
  38. package/components/fluid-container.js +0 -34
  39. package/components/grid-container.js +0 -37
  40. package/components/interaction.js +0 -37
  41. package/components/swiper.js +0 -13
  42. package/deprecated/fluid-container-aside.js +0 -48
  43. package/deprecated/fluid-container-half.js +0 -48
  44. package/dist/assets/index-BeSH1wKF.js +0 -74
  45. package/dist/assets/index-CFh4XZ-f.css +0 -1
  46. package/dist/index.html +0 -23
  47. package/gridarea/index.js +0 -6
  48. package/gridarea/utilities/area-dimensions.js +0 -13
  49. package/gridarea/utilities/grid-area.js +0 -49
  50. package/index.d.ts +0 -17
  51. package/index.html +0 -46
  52. package/index.js +0 -30
  53. package/lib/aspect-ratio.js +0 -6
  54. package/lib/colors.js +0 -58
  55. package/lib/container.js +0 -10
  56. package/lib/screens.js +0 -13
  57. package/lib/spacing.js +0 -215
  58. package/lib/theme-parser.js +0 -83
  59. package/motion/index.js +0 -17
  60. package/motion/theme.js +0 -174
  61. package/motion/utilities/delay.js +0 -11
  62. package/motion/utilities/direction.js +0 -15
  63. package/motion/utilities/duration.js +0 -11
  64. package/motion/utilities/fillMode.js +0 -15
  65. package/motion/utilities/iterationCount.js +0 -15
  66. package/motion/utilities/offset.js +0 -11
  67. package/motion/utilities/playState.js +0 -15
  68. package/motion/utilities/timingFunction.js +0 -15
  69. package/plugins/viewport-dimensions.js +0 -33
  70. package/postcss.config.js +0 -6
  71. package/tailwind.config.js +0 -18
  72. package/theme-example.json +0 -329
  73. package/themecolors/index.js +0 -65
  74. package/vite.css +0 -8
  75. package/vite.js +0 -64
@@ -0,0 +1,201 @@
1
+ function createFluidSpacing(prefix) {
2
+ const fluid = [
3
+ {
4
+ size: '0px',
5
+ slug: '0',
6
+ name: '0',
7
+ },
8
+ {
9
+ size: 'clamp(16px, 1vw, 32px)',
10
+ slug: '1',
11
+ name: '1',
12
+ },
13
+ {
14
+ size: 'clamp(32px, 1vw, 48px)',
15
+ slug: '2',
16
+ name: '2',
17
+ },
18
+ {
19
+ size: 'clamp(40px, 1vw, 50px)',
20
+ slug: '3',
21
+ name: '3',
22
+ },
23
+ {
24
+ size: 'clamp(64px, 1vw, 80px)',
25
+ slug: '4',
26
+ name: '4',
27
+ },
28
+ {
29
+ size: 'clamp(128px, 1vw, 144px)',
30
+ slug: '5',
31
+ name: '5',
32
+ },
33
+ {
34
+ size: 'clamp(144px, 1vw, 164px)',
35
+ slug: '6',
36
+ name: '6',
37
+ },
38
+ {
39
+ slug: '8',
40
+ size: 'clamp(16px, 1vw, 32px)',
41
+ name: '8',
42
+ },
43
+ {
44
+ slug: '9',
45
+ size: 'clamp(16px, 1vw, 32px)',
46
+ name: '9',
47
+ },
48
+ {
49
+ slug: '10',
50
+ size: 'clamp(16px, 1vw, 32px)',
51
+ name: '10',
52
+ },
53
+ // can be used to push contain inside grid-container
54
+ {
55
+ slug: '1fr',
56
+ size: 'var(--b_fr-size, 1rem)',
57
+ name: '1FR',
58
+ },
59
+ ];
60
+ const FluidSizes = {};
61
+ // add clamp spacing for gaps
62
+ fluid.forEach((size) => {
63
+ // add to spacing
64
+ FluidSizes[prefix + 'fluid-' + size.slug] = size.size;
65
+ });
66
+ return FluidSizes;
67
+ }
68
+ function createPercentSpacing() {
69
+ const percentUnits = [
70
+ '1/2',
71
+ '1/3',
72
+ '2/3',
73
+ '1/4',
74
+ '2/4',
75
+ '3/4',
76
+ '1/5',
77
+ '2/5',
78
+ '3/5',
79
+ '4/5',
80
+ '1/6',
81
+ '2/6',
82
+ '3/6',
83
+ '4/6',
84
+ '5/6',
85
+ '1/12',
86
+ '2/12',
87
+ '3/12',
88
+ '4/12',
89
+ '5/12',
90
+ '6/12',
91
+ '7/12',
92
+ '8/12',
93
+ '9/12',
94
+ '10/12',
95
+ '11/12',
96
+ 'full',
97
+ ];
98
+ return percentUnits;
99
+ }
100
+ function createScreenSpacing() {
101
+ const screenSpacing = [
102
+ 'b_screen-10',
103
+ 'b_screen-20',
104
+ 'b_screen-30',
105
+ 'b_screen-40',
106
+ 'b_screen-50',
107
+ 'b_screen-60',
108
+ 'b_screen-70',
109
+ 'b_screen-80',
110
+ 'b_screen-90',
111
+ 'b_screen-100',
112
+ ];
113
+ const screenSpacingValues = {};
114
+ screenSpacing.forEach((size) => {
115
+ screenSpacingValues[size] = size;
116
+ });
117
+ return screenSpacingValues;
118
+ }
119
+ function createGridSpacing(prefix) {
120
+ // create grid based on 16px
121
+ const gridSpacing = {};
122
+ const minimalValues = [0, 1, 2, 4, 6, 8, 10, 12, 14, 18, 20, 22, 24, 32];
123
+ for (let i = 0; i < minimalValues.length; i++) {
124
+ const minimalValue = minimalValues[i];
125
+ gridSpacing[`${prefix}${minimalValue}`] = minimalValue / 16 + 'rem';
126
+ }
127
+ for (let i = 1; i < 1280 / 16; i++) {
128
+ const gridsize = i * 16;
129
+ gridSpacing[`${prefix}${gridsize}`] = i + 'rem';
130
+ }
131
+ return gridSpacing;
132
+ }
133
+ function createNativeSpacing() {
134
+ const nativeSpacing = [
135
+ 0,
136
+ 'px',
137
+ 0.5,
138
+ 1,
139
+ 1.5,
140
+ 2,
141
+ 2.5,
142
+ 3,
143
+ 3.5,
144
+ 4,
145
+ 5,
146
+ 6,
147
+ 7,
148
+ 8,
149
+ 9,
150
+ 10,
151
+ 11,
152
+ 12,
153
+ 14,
154
+ 16,
155
+ 20,
156
+ 24,
157
+ 28,
158
+ 32,
159
+ 36,
160
+ 40,
161
+ 44,
162
+ 48,
163
+ 52,
164
+ 56,
165
+ 60,
166
+ 64,
167
+ 72,
168
+ 80,
169
+ 96,
170
+ ];
171
+ return nativeSpacing;
172
+ }
173
+ function createSpanSpacing() {
174
+ const colSpanValues = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16];
175
+ return colSpanValues;
176
+ }
177
+ export const gridSpacing = (prefix = '') => {
178
+ // create grid based on 16px
179
+ const spacingRem = createGridSpacing(prefix);
180
+ return spacingRem;
181
+ };
182
+ export const fluidSpacing = (prefix = '') => {
183
+ const spacingFluid = createFluidSpacing(prefix);
184
+ return spacingFluid;
185
+ };
186
+ export const percentSpacing = () => {
187
+ const spacingPercent = createPercentSpacing();
188
+ return spacingPercent;
189
+ };
190
+ export const screenSpacing = () => {
191
+ const spacingScreen = createScreenSpacing();
192
+ return spacingScreen;
193
+ };
194
+ export const nativeSpacing = () => {
195
+ const spacingNative = createNativeSpacing();
196
+ return spacingNative;
197
+ };
198
+ export const spanSpacing = () => {
199
+ const spacingSpan = createSpanSpacing();
200
+ return spacingSpan;
201
+ };
@@ -0,0 +1,21 @@
1
+ export declare function themeParser(theme: any, prefixObject?: {
2
+ prefixScreens: string;
3
+ prefixAspectRatio: string;
4
+ prefixSpacing: string;
5
+ }, gridFluidSpacing?: boolean): {
6
+ fonts: {};
7
+ fontWeights: {};
8
+ colors: {};
9
+ spacing: {};
10
+ fontSizes: {};
11
+ screens: {};
12
+ aspectRatio: {};
13
+ container: {
14
+ center: boolean;
15
+ padding: {
16
+ DEFAULT: string;
17
+ sm: string;
18
+ lg: string;
19
+ };
20
+ };
21
+ };
@@ -0,0 +1,68 @@
1
+ /*
2
+ * This file is used to parse the theme.json file from the theme to generate the tailwind config
3
+ */
4
+ import { getAspectRatio } from './aspect-ratio.js';
5
+ import { getContainer } from './container.js';
6
+ import { getScreens } from './screens.js';
7
+ import { fluidSpacing, gridSpacing } from './spacing.js';
8
+ export function themeParser(theme, prefixObject = {
9
+ prefixScreens: 'b_',
10
+ prefixAspectRatio: 'b_',
11
+ prefixSpacing: 'b_',
12
+ }, gridFluidSpacing = true) {
13
+ // get prefixes
14
+ const { prefixScreens, prefixAspectRatio, prefixSpacing } = prefixObject;
15
+ // import 16-grid and clamp spacing
16
+ let spacing = {};
17
+ if (gridFluidSpacing) {
18
+ spacing = Object.assign({}, fluidSpacing(prefixSpacing), gridSpacing(prefixSpacing));
19
+ }
20
+ // add colors
21
+ const colors = {};
22
+ if (theme.settings.color && theme.settings.color.palette !== undefined) {
23
+ theme.settings.color.palette.forEach((color) => {
24
+ colors[color.slug] = color.color;
25
+ });
26
+ }
27
+ // add fonts and fontWeights
28
+ const fonts = {};
29
+ const fontWeights = {};
30
+ if (theme.settings.typography &&
31
+ theme.settings.typography.fontFamilies !== undefined) {
32
+ theme.settings.typography.fontFamilies.forEach((fam) => {
33
+ fonts[fam.slug] = fam.fontFamily.split(',');
34
+ if (fam.fontFace) {
35
+ // generate fontWeights
36
+ fam.fontFace.forEach((face) => {
37
+ fontWeights[face.fontWeight] = face.fontWeight;
38
+ });
39
+ }
40
+ });
41
+ }
42
+ // fontsizes
43
+ const fontSizes = {};
44
+ if (theme.settings.typography &&
45
+ theme.settings.typography.fontSizes !== undefined) {
46
+ theme.settings.typography.fontSizes.forEach((size) => {
47
+ // add font variables
48
+ fontSizes[size.slug] = `var(--wp--preset--font-size--${size.slug})`;
49
+ });
50
+ }
51
+ // responsive
52
+ const screens = getScreens(prefixScreens);
53
+ // aspect ratio
54
+ const aspectRatio = getAspectRatio(prefixAspectRatio);
55
+ // container
56
+ const container = getContainer();
57
+ // export object
58
+ return {
59
+ fonts,
60
+ fontWeights,
61
+ colors,
62
+ spacing,
63
+ fontSizes,
64
+ screens,
65
+ aspectRatio,
66
+ container,
67
+ };
68
+ }
package/package.json CHANGED
@@ -1,25 +1,47 @@
1
1
  {
2
2
  "name": "@blockbite/tailwind",
3
- "version": "3.4.13",
3
+ "version": "3.4.14",
4
4
  "description": "helper for blockbite plugin and blockbite theme",
5
- "main": "index.js",
5
+ "type": "module",
6
+ "main": "dist/index.js",
7
+ "types": "dist/index.d.ts",
8
+ "exports": {
9
+ ".": {
10
+ "import": "./dist/index.js",
11
+ "require": "./dist/index.js",
12
+ "types": "./dist/index.d.ts",
13
+ "default": "./dist/index.js"
14
+ }
15
+ },
16
+ "files": [
17
+ "dist"
18
+ ],
6
19
  "author": "block-bite.com",
7
20
  "license": "ISC",
21
+ "peerDependencies": {
22
+ "tailwindcss": ">=4.0.0"
23
+ },
8
24
  "dependencies": {
25
+ "i": "^0.3.7",
26
+ "npm": "^11.3.0",
27
+ "tailwind-scrollbar": "^4.0.2",
9
28
  "user": "^0.0.0"
10
29
  },
11
30
  "publishConfig": {
12
31
  "access": "public"
13
32
  },
14
33
  "devDependencies": {
34
+ "@tailwindcss/vite": "^4.1.8",
15
35
  "autoprefixer": "^10.4.19",
16
36
  "postcss": "^8.4.38",
17
- "tailwindcss": "^3.4.3",
37
+ "tailwindcss": "^4.1.10",
38
+ "typescript": "^5.8.3",
18
39
  "vite": "^5.2.0"
19
40
  },
20
41
  "scripts": {
21
42
  "test": "echo \"Error: no test specified\" && exit 1",
22
43
  "dev": "vite",
23
- "build": "vite build"
44
+ "build": "tsc --declaration --outDir dist",
45
+ "type-check": "tsc --noEmit"
24
46
  }
25
47
  }
package/CHANGELOG.md DELETED
@@ -1,55 +0,0 @@
1
- # @blockbite/tailwind
2
-
3
- ## 3.4.13
4
-
5
- ### Patch Changes
6
-
7
- - dfd9376: Address deprecation warnings for Toggle Controls, Range Sliders, Text Controls, and Toggle Group Controls
8
-
9
- ## 3.4.12
10
-
11
- ### Patch Changes
12
-
13
- - 3068ac3: added shared utils
14
-
15
- ## 3.4.11
16
-
17
- ### Patch Changes
18
-
19
- - ac4743d: working bundles optimized webpack
20
-
21
- ## 3.4.10
22
-
23
- ### Patch Changes
24
-
25
- - c12fc10: make ui and icon repos public again
26
-
27
- ## 3.4.9
28
-
29
- ### Patch Changes
30
-
31
- - 5f7bf3c: add version to icons package
32
-
33
- ## 3.4.8
34
-
35
- ### Patch Changes
36
-
37
- - 9448165: Version up
38
-
39
- ## 3.4.7
40
-
41
- ### Patch Changes
42
-
43
- - 1101873: Version up
44
-
45
- ## 3.4.6
46
-
47
- ### Patch Changes
48
-
49
- - 0d56127: Add dist directories
50
-
51
- ## 3.4.5
52
-
53
- ### Patch Changes
54
-
55
- - c9871ac: Linting fixes for free plugin and tailwind package
@@ -1,110 +0,0 @@
1
- module.exports = function ({ addComponents }) {
2
- const anchorTopCenter = {
3
- '.anchor-top-center': {
4
- position: 'absolute',
5
- top: '0',
6
- left: '50%',
7
- transform: 'translate(-50%, -50%)',
8
- },
9
- };
10
-
11
- const anchorTopLeft = {
12
- '.anchor-top-left': {
13
- position: 'absolute',
14
- top: '0',
15
- left: '0',
16
- },
17
- };
18
-
19
- const anchorTopRight = {
20
- '.anchor-top-right': {
21
- position: 'absolute',
22
- top: '0',
23
- right: '0',
24
- },
25
- };
26
-
27
- const anchorBottomCenter = {
28
- '.anchor-bottom-center': {
29
- position: 'absolute',
30
- bottom: '0',
31
- left: '50%',
32
- transform: 'translate(-50%, 50%)',
33
- },
34
- };
35
-
36
- const anchorBottomLeft = {
37
- '.anchor-bottom-left': {
38
- position: 'absolute',
39
- bottom: '0',
40
- left: '0',
41
- },
42
- };
43
-
44
- const anchorBottomRight = {
45
- '.anchor-bottom-right': {
46
- position: 'absolute',
47
- bottom: '0',
48
- right: '0',
49
- },
50
- };
51
-
52
- const anchorCenterLeft = {
53
- '.anchor-center-left': {
54
- position: 'absolute',
55
- top: '50%',
56
- left: '0',
57
- transform: 'translate(-50%, -50%)',
58
- },
59
- };
60
-
61
- const anchorCenterRight = {
62
- '.anchor-center-right': {
63
- position: 'absolute',
64
- top: '50%',
65
- right: '0',
66
- transform: 'translate(50%, -50%)',
67
- },
68
- };
69
-
70
- const anchorCenterCenter = {
71
- '.anchor-center-center': {
72
- position: 'absolute',
73
- top: '50%',
74
- left: '50%',
75
- transform: 'translate(-50%, -50%)',
76
- },
77
- };
78
-
79
- const anchorCenterTop = {
80
- '.anchor-center-top': {
81
- position: 'absolute',
82
- top: '0',
83
- left: '50%',
84
- transform: 'translate(-50%, 0%)',
85
- },
86
- };
87
-
88
- const anchorCenterBottom = {
89
- '.anchor-center-bottom': {
90
- position: 'absolute',
91
- bottom: '0',
92
- left: '50%',
93
- transform: 'translate(-50%, 0%)',
94
- },
95
- };
96
-
97
- addComponents([
98
- anchorTopCenter,
99
- anchorTopLeft,
100
- anchorTopRight,
101
- anchorBottomCenter,
102
- anchorBottomLeft,
103
- anchorBottomRight,
104
- anchorCenterLeft,
105
- anchorCenterRight,
106
- anchorCenterCenter,
107
- anchorCenterTop,
108
- anchorCenterBottom,
109
- ]);
110
- };
@@ -1,34 +0,0 @@
1
- /*
2
- --b_container-fluid-xs: 98vw;
3
- --b_container-fluid-xl: 95vw;
4
- --b_padding: 1rem;
5
- */
6
- module.exports = function ({ addComponents, theme, config }) {
7
- const important = config('important');
8
- const prefix = typeof important === 'string' ? important : '';
9
-
10
- const container = {
11
- [`${prefix} .container-fluid`]: {
12
- marginLeft: 'auto',
13
- marginRight: 'auto',
14
- paddingLeft: 'var(--b_padding, 4vw)',
15
- paddingRight: 'var(--b_padding, 4vw)',
16
- },
17
- };
18
-
19
- const maxWidth2xl = theme('screens.2xl');
20
- // Add a media query for screens at '2xl' size
21
- if (maxWidth2xl) {
22
- container[`@media (min-width: ${maxWidth2xl})`] = {
23
- [`${prefix} .container-fluid`]: {
24
- maxWidth: maxWidth2xl,
25
- marginLeft: 'auto',
26
- marginRight: 'auto',
27
- paddingLeft: 'var(--b_padding, 1rem)',
28
- paddingRight: 'var(--b_padding, 1rem)',
29
- },
30
- };
31
- }
32
-
33
- addComponents(container);
34
- };
@@ -1,37 +0,0 @@
1
- module.exports = function ({ addComponents, theme, config }) {
2
- const maxWidthLg = theme('screens.lg');
3
- const maxWidth2xl = theme('screens.2xl');
4
-
5
- const important = config('important');
6
- const cssVars = config('cssVars') || false;
7
- const prefix = typeof important === 'string' ? important : '';
8
-
9
- const container = {
10
- [`${prefix} .grid-container`]: {
11
- display: 'grid',
12
- gridTemplateColumns: '1fr repeat(12, var(--b_col-width)) 1fr!important',
13
- },
14
- };
15
- // skip adding the breakpoint-specific variables if cssVars is false
16
- if (cssVars) {
17
- const breakpoints = {
18
- [maxWidthLg]: {
19
- '--b_col-width': 'calc((100% - ((var(--b_padding, 4vw) ) * 2)) / 12)',
20
- '--b_fr-size': '4vw',
21
- },
22
- [maxWidth2xl]: {
23
- '--b_col-width': `calc((${maxWidth2xl} - (var(--b_padding, 1rem) * 2)) / 12)`,
24
- '--b_padding': 'var(--b_padding, 1rem)',
25
- '--b_fr-size': `calc(100% - ${maxWidth2xl} / 2)`,
26
- },
27
- };
28
-
29
- // Add breakpoint-specific variables
30
- for (const [breakpoint, vars] of Object.entries(breakpoints)) {
31
- container[`@media (min-width: ${breakpoint})`] = {
32
- ':root': vars,
33
- };
34
- }
35
- }
36
- addComponents(container);
37
- };
@@ -1,37 +0,0 @@
1
- module.exports = function ({ addComponents }) {
2
- const b_tileslide_in = {
3
- '.tile-in-left': {
4
- position: 'absolute!important',
5
- top: 0,
6
- left: 0,
7
- right: 0,
8
- bottom: 0,
9
- zIndex: 10,
10
- overflow: 'hidden',
11
- transition: 'transform 0.5s',
12
- transform: 'translateX(-100%)',
13
- },
14
- '.active .tile-in-left': {
15
- transform: 'translateX(0%)',
16
- },
17
- };
18
-
19
- const b_tilefade_in = {
20
- '.tile-in-fade': {
21
- opacity: 0,
22
- transition: 'opacity 0.5s',
23
- position: 'absolute!important',
24
- top: 0,
25
- left: 0,
26
- right: 0,
27
- bottom: 0,
28
- zIndex: 10,
29
- overflow: 'hidden',
30
- },
31
- '.active .tile-in-fade': {
32
- opacity: 1,
33
- },
34
- };
35
-
36
- addComponents([b_tileslide_in, b_tilefade_in]);
37
- };
@@ -1,13 +0,0 @@
1
- module.exports = function ({ addComponents }) {
2
- // allows infinite loop for swiper continues
3
- const b_newsticker = {
4
- '.newsticker': {
5
- '& > .swiper-free-mode > .swiper-wrapper': {
6
- '-webkit-transition-timing-function': 'linear !important',
7
- '-o-transition-timing-function': 'linear !important',
8
- 'transition-timing-function': 'linear !important',
9
- },
10
- },
11
- };
12
- addComponents(b_newsticker);
13
- };
@@ -1,48 +0,0 @@
1
- module.exports = function ({ addComponents, theme }) {
2
- const container = {
3
- ".b_container-fluid-aside-r": {
4
- width: "var(--container-fluid-xs)",
5
- marginLeft: "auto",
6
- marginRight: "auto",
7
- paddingLeft: "1rem",
8
- paddingRight: "1rem",
9
- },
10
- ".b_container-fluid-aside-l": {
11
- width: "var(--container-fluid-xs)",
12
- marginLeft: "auto",
13
- marginRight: "auto",
14
- paddingLeft: "1rem",
15
- paddingRight: "1rem",
16
- },
17
- };
18
-
19
- const maxWidth2xl = theme("screens.2xl");
20
- const minWidthLg = theme("screens.lg");
21
-
22
- if (minWidthLg) {
23
- container[`@media (min-width: ${minWidthLg})`] = {
24
- ".b_container-fluid-aside-l": {
25
- width: "var(--container-fluid-xl)",
26
- marginLeft: `calc((100% - var(--container-fluid-xl)) / 2)`,
27
- },
28
- ".b_container-fluid-aside-r": {
29
- width: "var(--container-fluid-xl)",
30
- marginRight: `calc((100% - var(--container-fluid-xl)) / 2 )`,
31
- },
32
- };
33
- }
34
- if (maxWidth2xl) {
35
- container[`@media (min-width: ${maxWidth2xl})`] = {
36
- ".b_container-fluid-aside-l": {
37
- width: `calc(100% - (100% - ${maxWidth2xl}) / 2)`,
38
- marginLeft: `calc((100% - ${maxWidth2xl}) / 2)`,
39
- },
40
- ".b_container-fluid-aside-r": {
41
- width: `calc(100% - (100% - ${maxWidth2xl}) / 2)`,
42
- marginRight: `calc((100% - ${maxWidth2xl}) / 2)`,
43
- },
44
- };
45
- }
46
-
47
- addComponents(container);
48
- };