@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.
- package/dist/___index copy.d.ts +7 -0
- package/dist/___index copy.js +9 -0
- package/dist/aspect-ratio.d.ts +1 -0
- package/dist/aspect-ratio.js +6 -0
- package/dist/colors.d.ts +8 -0
- package/dist/colors.js +65 -0
- package/dist/components/anchor-position.d.ts +3 -0
- package/dist/components/anchor-position.js +99 -0
- package/dist/components/fluid-container.d.ts +4 -0
- package/dist/components/fluid-container.js +29 -0
- package/dist/components/grid-container.d.ts +5 -0
- package/dist/components/grid-container.js +34 -0
- package/dist/components/interaction.d.ts +3 -0
- package/dist/components/interaction.js +35 -0
- package/dist/components/swiper.d.ts +3 -0
- package/dist/components/swiper.js +13 -0
- package/dist/container.d.ts +8 -0
- package/dist/container.js +10 -0
- package/dist/gridarea/index.d.ts +2 -0
- package/dist/gridarea/index.js +7 -0
- package/dist/gridarea/utilities/area-dimensions.d.ts +3 -0
- package/dist/gridarea/utilities/area-dimensions.js +22 -0
- package/dist/gridarea/utilities/grid-area.d.ts +5 -0
- package/dist/gridarea/utilities/grid-area.js +46 -0
- package/dist/index.d.ts +9 -0
- package/dist/index.js +32 -0
- package/dist/plugins/viewport-dimensions.d.ts +2 -0
- package/dist/plugins/viewport-dimensions.js +25 -0
- package/dist/screens.d.ts +5 -0
- package/dist/screens.js +10 -0
- package/dist/spacing.d.ts +6 -0
- package/dist/spacing.js +201 -0
- package/dist/theme-parser.d.ts +21 -0
- package/dist/theme-parser.js +68 -0
- package/package.json +26 -4
- package/CHANGELOG.md +0 -55
- package/components/anchor-position.js +0 -110
- package/components/fluid-container.js +0 -34
- package/components/grid-container.js +0 -37
- package/components/interaction.js +0 -37
- package/components/swiper.js +0 -13
- package/deprecated/fluid-container-aside.js +0 -48
- package/deprecated/fluid-container-half.js +0 -48
- package/dist/assets/index-BeSH1wKF.js +0 -74
- package/dist/assets/index-CFh4XZ-f.css +0 -1
- package/dist/index.html +0 -23
- package/gridarea/index.js +0 -6
- package/gridarea/utilities/area-dimensions.js +0 -13
- package/gridarea/utilities/grid-area.js +0 -49
- package/index.d.ts +0 -17
- package/index.html +0 -46
- package/index.js +0 -30
- package/lib/aspect-ratio.js +0 -6
- package/lib/colors.js +0 -58
- package/lib/container.js +0 -10
- package/lib/screens.js +0 -13
- package/lib/spacing.js +0 -215
- package/lib/theme-parser.js +0 -83
- package/motion/index.js +0 -17
- package/motion/theme.js +0 -174
- package/motion/utilities/delay.js +0 -11
- package/motion/utilities/direction.js +0 -15
- package/motion/utilities/duration.js +0 -11
- package/motion/utilities/fillMode.js +0 -15
- package/motion/utilities/iterationCount.js +0 -15
- package/motion/utilities/offset.js +0 -11
- package/motion/utilities/playState.js +0 -15
- package/motion/utilities/timingFunction.js +0 -15
- package/plugins/viewport-dimensions.js +0 -33
- package/postcss.config.js +0 -6
- package/tailwind.config.js +0 -18
- package/theme-example.json +0 -329
- package/themecolors/index.js +0 -65
- package/vite.css +0 -8
- package/vite.js +0 -64
package/lib/theme-parser.js
DELETED
|
@@ -1,83 +0,0 @@
|
|
|
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';
|
|
5
|
-
import { getContainer } from './container';
|
|
6
|
-
import { getScreens } from './screens';
|
|
7
|
-
import { fluidSpacing, gridSpacing } from './spacing';
|
|
8
|
-
|
|
9
|
-
export function themeParser(
|
|
10
|
-
theme,
|
|
11
|
-
prefixObject = {
|
|
12
|
-
prefixScreens: 'b_',
|
|
13
|
-
prefixAspectRatio: 'b_',
|
|
14
|
-
prefixSpacing: 'b_',
|
|
15
|
-
},
|
|
16
|
-
gridFluidSpacing = true
|
|
17
|
-
) {
|
|
18
|
-
// get prefixes
|
|
19
|
-
const { prefixScreens, prefixAspectRatio, prefixSpacing } = prefixObject;
|
|
20
|
-
|
|
21
|
-
// import 16-grid and clamp spacing
|
|
22
|
-
let spacing = {};
|
|
23
|
-
if (gridFluidSpacing) {
|
|
24
|
-
spacing = [...fluidSpacing(prefixSpacing), ...gridSpacing(prefixSpacing)];
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
// add colors
|
|
28
|
-
const colors = {};
|
|
29
|
-
if (theme.settings.color && theme.settings.color.palette !== undefined) {
|
|
30
|
-
theme.settings.color.palette.forEach((color) => {
|
|
31
|
-
colors[color.slug] = color.color;
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// add fonts and fontWeights
|
|
36
|
-
const fonts = {};
|
|
37
|
-
const fontWeights = {};
|
|
38
|
-
if (
|
|
39
|
-
theme.settings.typography &&
|
|
40
|
-
theme.settings.typography.fontFamilies !== undefined
|
|
41
|
-
) {
|
|
42
|
-
theme.settings.typography.fontFamilies.forEach((fam) => {
|
|
43
|
-
fonts[fam.slug] = fam.fontFamily.split(',');
|
|
44
|
-
if (fam.fontFace) {
|
|
45
|
-
// generate fontWeights
|
|
46
|
-
fam.fontFace.forEach((face) => {
|
|
47
|
-
fontWeights[face.fontWeight] = face.fontWeight;
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
});
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
// fontsizes
|
|
54
|
-
const fontSizes = {};
|
|
55
|
-
if (
|
|
56
|
-
theme.settings.typography &&
|
|
57
|
-
theme.settings.typography.fontSizes !== undefined
|
|
58
|
-
) {
|
|
59
|
-
theme.settings.typography.fontSizes.forEach((size) => {
|
|
60
|
-
// add font variables
|
|
61
|
-
fontSizes[size.slug] = `var(--wp--preset--font-size--${size.slug})`;
|
|
62
|
-
});
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
// responsive
|
|
66
|
-
const screens = getScreens(prefixScreens);
|
|
67
|
-
// aspect ratio
|
|
68
|
-
const aspectRatio = getAspectRatio(prefixAspectRatio);
|
|
69
|
-
// container
|
|
70
|
-
const container = getContainer();
|
|
71
|
-
|
|
72
|
-
// export object
|
|
73
|
-
return {
|
|
74
|
-
fonts,
|
|
75
|
-
fontWeights,
|
|
76
|
-
colors,
|
|
77
|
-
spacing,
|
|
78
|
-
fontSizes,
|
|
79
|
-
screens,
|
|
80
|
-
aspectRatio,
|
|
81
|
-
container,
|
|
82
|
-
};
|
|
83
|
-
}
|
package/motion/index.js
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
const plugin = require('tailwindcss/plugin');
|
|
2
|
-
|
|
3
|
-
module.exports = plugin(
|
|
4
|
-
(api) => {
|
|
5
|
-
require('./utilities/delay')(api);
|
|
6
|
-
require('./utilities/direction')(api);
|
|
7
|
-
require('./utilities/duration')(api);
|
|
8
|
-
require('./utilities/fillMode')(api);
|
|
9
|
-
require('./utilities/iterationCount')(api);
|
|
10
|
-
require('./utilities/playState')(api);
|
|
11
|
-
require('./utilities/timingFunction')(api);
|
|
12
|
-
require('./utilities/offset')(api);
|
|
13
|
-
},
|
|
14
|
-
{
|
|
15
|
-
theme: require('./theme'),
|
|
16
|
-
}
|
|
17
|
-
);
|
package/motion/theme.js
DELETED
|
@@ -1,174 +0,0 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
extend: {
|
|
3
|
-
keyframes: {
|
|
4
|
-
wiggle: {
|
|
5
|
-
'0%, 100%': {
|
|
6
|
-
transform: 'rotate(-3deg)',
|
|
7
|
-
},
|
|
8
|
-
'50%': {
|
|
9
|
-
transform: 'rotate(3deg)',
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
'wiggle-more': {
|
|
13
|
-
'0%, 100%': {
|
|
14
|
-
transform: 'rotate(-12deg)',
|
|
15
|
-
},
|
|
16
|
-
'50%': {
|
|
17
|
-
transform: 'rotate(12deg)',
|
|
18
|
-
},
|
|
19
|
-
},
|
|
20
|
-
'rotate-y': {
|
|
21
|
-
'0%': {
|
|
22
|
-
transform: 'rotateY(360deg)',
|
|
23
|
-
},
|
|
24
|
-
'100%': {
|
|
25
|
-
transform: 'rotateY(0)',
|
|
26
|
-
},
|
|
27
|
-
},
|
|
28
|
-
'rotate-x': {
|
|
29
|
-
'0%': {
|
|
30
|
-
transform: 'rotateX(360deg)',
|
|
31
|
-
},
|
|
32
|
-
'100%': {
|
|
33
|
-
transform: 'rotateX(0)',
|
|
34
|
-
},
|
|
35
|
-
},
|
|
36
|
-
jump: {
|
|
37
|
-
'0%, 100%': {
|
|
38
|
-
transform: 'scale(100%)',
|
|
39
|
-
},
|
|
40
|
-
'10%': {
|
|
41
|
-
transform: 'scale(80%)',
|
|
42
|
-
},
|
|
43
|
-
'50%': {
|
|
44
|
-
transform: 'scale(120%)',
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
'jump-in': {
|
|
48
|
-
'0%': {
|
|
49
|
-
transform: 'scale(0%)',
|
|
50
|
-
},
|
|
51
|
-
'80%': {
|
|
52
|
-
transform: 'scale(120%)',
|
|
53
|
-
},
|
|
54
|
-
'100%': {
|
|
55
|
-
transform: 'scale(100%)',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
'jump-out': {
|
|
59
|
-
'0%': {
|
|
60
|
-
transform: 'scale(100%)',
|
|
61
|
-
},
|
|
62
|
-
'20%': {
|
|
63
|
-
transform: 'scale(120%)',
|
|
64
|
-
},
|
|
65
|
-
'100%': {
|
|
66
|
-
transform: 'scale(0%)',
|
|
67
|
-
},
|
|
68
|
-
},
|
|
69
|
-
shake: {
|
|
70
|
-
'0%': {
|
|
71
|
-
transform: 'translateX(0rem)',
|
|
72
|
-
},
|
|
73
|
-
'25%': {
|
|
74
|
-
transform: 'translateX(-1rem)',
|
|
75
|
-
},
|
|
76
|
-
'75%': {
|
|
77
|
-
transform: 'translateX(1rem)',
|
|
78
|
-
},
|
|
79
|
-
'100%': {
|
|
80
|
-
transform: 'translateX(0rem)',
|
|
81
|
-
},
|
|
82
|
-
},
|
|
83
|
-
fade: {
|
|
84
|
-
'0%': {
|
|
85
|
-
opacity: '0',
|
|
86
|
-
transform: 'translate(var(--an-ani-x), var(--an-ani-y))',
|
|
87
|
-
},
|
|
88
|
-
'100%': {
|
|
89
|
-
opacity: '1',
|
|
90
|
-
transform: 'translateY(var(--tw-translate-y))',
|
|
91
|
-
},
|
|
92
|
-
},
|
|
93
|
-
'fade-left': {
|
|
94
|
-
'0%': {
|
|
95
|
-
opacity: '0',
|
|
96
|
-
transform: 'translateY(var(--an-translate-y))',
|
|
97
|
-
},
|
|
98
|
-
'100%': {
|
|
99
|
-
opacity: '1',
|
|
100
|
-
transform: 'translateY(var(--tw-translate-y))',
|
|
101
|
-
},
|
|
102
|
-
},
|
|
103
|
-
'fade-right': {
|
|
104
|
-
'0%': {
|
|
105
|
-
opacity: '0',
|
|
106
|
-
transform: 'translateY(var(--an-translate-y))',
|
|
107
|
-
},
|
|
108
|
-
'100%': {
|
|
109
|
-
opacity: '1',
|
|
110
|
-
transform: 'translateY(var(--tw-translate-y))',
|
|
111
|
-
},
|
|
112
|
-
},
|
|
113
|
-
'flip-up': {
|
|
114
|
-
'0%': {
|
|
115
|
-
transform: 'rotateX(90deg)',
|
|
116
|
-
transformOrigin: 'bottom',
|
|
117
|
-
},
|
|
118
|
-
'100%': {
|
|
119
|
-
transform: 'rotateX(0)',
|
|
120
|
-
transformOrigin: 'bottom',
|
|
121
|
-
},
|
|
122
|
-
},
|
|
123
|
-
'flip-down': {
|
|
124
|
-
'0%': {
|
|
125
|
-
transform: 'rotateX(-90deg)',
|
|
126
|
-
transformOrigin: 'top',
|
|
127
|
-
},
|
|
128
|
-
'100%': {
|
|
129
|
-
transform: 'rotateX(0)',
|
|
130
|
-
transformOrigin: 'top',
|
|
131
|
-
},
|
|
132
|
-
},
|
|
133
|
-
},
|
|
134
|
-
animation: {
|
|
135
|
-
wiggle: 'wiggle 1s both',
|
|
136
|
-
'wiggle-more': 'wiggle-more 1s both',
|
|
137
|
-
'rotate-y': 'rotate-y 1s both',
|
|
138
|
-
'rotate-x': 'rotate-x 1s both',
|
|
139
|
-
jump: 'jump .5s both',
|
|
140
|
-
'jump-in': 'jump-in .5s both',
|
|
141
|
-
'jump-out': 'jump-out .5s both',
|
|
142
|
-
shake: 'shake .5s both',
|
|
143
|
-
fade: 'fade 1s both',
|
|
144
|
-
'fade-down': 'fade-down 1s both',
|
|
145
|
-
'fade-up': 'fade-up 1s both',
|
|
146
|
-
'fade-left': 'fade-left 1s both',
|
|
147
|
-
'fade-right': 'fade-right 1s both',
|
|
148
|
-
'flip-up': 'flip-up 1s both',
|
|
149
|
-
'flip-down': 'flip-down 1s both',
|
|
150
|
-
},
|
|
151
|
-
animationDelay: {
|
|
152
|
-
none: '0ms',
|
|
153
|
-
0: '0ms',
|
|
154
|
-
75: '75ms',
|
|
155
|
-
100: '100ms',
|
|
156
|
-
150: '150ms',
|
|
157
|
-
200: '200ms',
|
|
158
|
-
300: '300ms',
|
|
159
|
-
500: '500ms',
|
|
160
|
-
700: '700ms',
|
|
161
|
-
1000: '1000ms',
|
|
162
|
-
},
|
|
163
|
-
animationDuration: {
|
|
164
|
-
75: '75ms',
|
|
165
|
-
100: '100ms',
|
|
166
|
-
150: '150ms',
|
|
167
|
-
200: '200ms',
|
|
168
|
-
300: '300ms',
|
|
169
|
-
500: '500ms',
|
|
170
|
-
700: '700ms',
|
|
171
|
-
1000: '1000ms',
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
module.exports = ({ addUtilities }) =>
|
|
2
|
-
addUtilities({
|
|
3
|
-
'.animate-normal': {
|
|
4
|
-
'animation-direction': 'normal',
|
|
5
|
-
},
|
|
6
|
-
'.animate-reverse': {
|
|
7
|
-
'animation-direction': 'reverse',
|
|
8
|
-
},
|
|
9
|
-
'.animate-alternate': {
|
|
10
|
-
'animation-direction': 'alternate',
|
|
11
|
-
},
|
|
12
|
-
'.animate-alternate-reverse': {
|
|
13
|
-
'animation-direction': 'alternate-reverse',
|
|
14
|
-
},
|
|
15
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
module.exports = ({ addUtilities }) =>
|
|
2
|
-
addUtilities({
|
|
3
|
-
'.animate-fill-none': {
|
|
4
|
-
'animation-fill-mode': 'normal',
|
|
5
|
-
},
|
|
6
|
-
'.animate-fill-forwards': {
|
|
7
|
-
'animation-fill-mode': 'forwards',
|
|
8
|
-
},
|
|
9
|
-
'.animate-fill-backwards': {
|
|
10
|
-
'animation-fill-mode': 'backwards',
|
|
11
|
-
},
|
|
12
|
-
'.animate-fill-both': {
|
|
13
|
-
'animation-fill-mode': 'both',
|
|
14
|
-
},
|
|
15
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
module.exports = ({ addUtilities }) =>
|
|
2
|
-
addUtilities({
|
|
3
|
-
'.animate-infinite': {
|
|
4
|
-
'animation-iteration-count': 'infinite',
|
|
5
|
-
},
|
|
6
|
-
'.animate-once': {
|
|
7
|
-
'animation-iteration-count': '1',
|
|
8
|
-
},
|
|
9
|
-
'.animate-twice': {
|
|
10
|
-
'animation-iteration-count': '2',
|
|
11
|
-
},
|
|
12
|
-
'.animate-thrice': {
|
|
13
|
-
'animation-iteration-count': '3',
|
|
14
|
-
},
|
|
15
|
-
});
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
module.exports = function ({ addUtilities, theme, e }) {
|
|
2
|
-
const spacing = theme('spacing');
|
|
3
|
-
const newUtilities = {};
|
|
4
|
-
|
|
5
|
-
Object.entries(spacing).forEach(([key, value]) => {
|
|
6
|
-
newUtilities[`.${e(`b_ani-x-${key}`)}`] = { '--an-ani-x': `${value}` };
|
|
7
|
-
newUtilities[`.${e(`b_ani-y-${key}`)}`] = { '--an-ani-y': `${value}` };
|
|
8
|
-
});
|
|
9
|
-
|
|
10
|
-
addUtilities(newUtilities, ['responsive']);
|
|
11
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
module.exports = ({ addUtilities }) =>
|
|
2
|
-
addUtilities({
|
|
3
|
-
'.animate-run': {
|
|
4
|
-
'animation-play-state': 'running',
|
|
5
|
-
},
|
|
6
|
-
'.animate-play': {
|
|
7
|
-
'animation-play-state': 'running',
|
|
8
|
-
},
|
|
9
|
-
'.animate-stop': {
|
|
10
|
-
'animation-play-state': 'paused',
|
|
11
|
-
},
|
|
12
|
-
'.animate-pause': {
|
|
13
|
-
'animation-play-state': 'paused',
|
|
14
|
-
},
|
|
15
|
-
});
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
module.exports = ({ addUtilities }) =>
|
|
2
|
-
addUtilities({
|
|
3
|
-
'.animate-ease-linear': {
|
|
4
|
-
'animation-timing-function': 'linear',
|
|
5
|
-
},
|
|
6
|
-
'.animate-ease-in': {
|
|
7
|
-
'animation-timing-function': 'cubic-bezier(0.4, 0, 1, 1)',
|
|
8
|
-
},
|
|
9
|
-
'.animate-ease-out': {
|
|
10
|
-
'animation-timing-function': 'cubic-bezier(0, 0, 0.2, 1)',
|
|
11
|
-
},
|
|
12
|
-
'.animate-ease-in-out': {
|
|
13
|
-
'animation-timing-function': 'cubic-bezier(0.4, 0, 0.2, 1)',
|
|
14
|
-
},
|
|
15
|
-
});
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
const plugin = require('tailwindcss/plugin');
|
|
2
|
-
|
|
3
|
-
module.exports = plugin(function ({ addUtilities }) {
|
|
4
|
-
const utilities = {};
|
|
5
|
-
|
|
6
|
-
for (let i = 10; i <= 100; i += 10) {
|
|
7
|
-
utilities[`.w-b_screen-${i}`] = {
|
|
8
|
-
width: `${i}vw`,
|
|
9
|
-
};
|
|
10
|
-
|
|
11
|
-
utilities[`.h-b_screen-${i}`] = {
|
|
12
|
-
height: `${i}vh`,
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
utilities[`.min-h-b_screen-${i}`] = {
|
|
16
|
-
minHeight: `${i}vh`,
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
utilities[`.max-h-b_screen-${i}`] = {
|
|
20
|
-
maxHeight: `${i}vh`,
|
|
21
|
-
};
|
|
22
|
-
|
|
23
|
-
utilities[`.min-w-b_screen-${i}`] = {
|
|
24
|
-
minWidth: `${i}vw`,
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
utilities[`.max-w-b_screen-${i}`] = {
|
|
28
|
-
maxWidth: `${i}vw`,
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
addUtilities(utilities);
|
|
33
|
-
});
|
package/postcss.config.js
DELETED
package/tailwind.config.js
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** @type {import('tailwindcss').Config} */
|
|
2
|
-
|
|
3
|
-
import { getContainer } from './lib/container.js';
|
|
4
|
-
|
|
5
|
-
module.exports = {
|
|
6
|
-
content: ['./vite.html', './vite.js'],
|
|
7
|
-
theme: {
|
|
8
|
-
extend: {
|
|
9
|
-
container: getContainer(),
|
|
10
|
-
},
|
|
11
|
-
},
|
|
12
|
-
plugins: [
|
|
13
|
-
require('./gridarea'),
|
|
14
|
-
require('./components/fluid-container.js'),
|
|
15
|
-
require('./components/grid-container.js'),
|
|
16
|
-
require('./themecolors'),
|
|
17
|
-
],
|
|
18
|
-
};
|