@blockbite/tailwind 3.4.13 → 3.4.15

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 (73) hide show
  1. package/dist/___index copy.d.ts +7 -0
  2. package/dist/___index copy.js +9 -0
  3. package/dist/colors.d.ts +8 -0
  4. package/dist/colors.js +65 -0
  5. package/dist/components/anchor-position.d.ts +3 -0
  6. package/dist/components/anchor-position.js +99 -0
  7. package/dist/components/fluid-container.d.ts +4 -0
  8. package/dist/components/fluid-container.js +29 -0
  9. package/dist/components/grid-container.d.ts +5 -0
  10. package/dist/components/grid-container.js +34 -0
  11. package/dist/components/interaction.d.ts +3 -0
  12. package/dist/components/interaction.js +35 -0
  13. package/dist/components/swiper.d.ts +3 -0
  14. package/dist/components/swiper.js +13 -0
  15. package/dist/container.d.ts +8 -0
  16. package/dist/container.js +10 -0
  17. package/dist/gridarea/index.d.ts +2 -0
  18. package/dist/gridarea/index.js +7 -0
  19. package/dist/gridarea/utilities/area-dimensions.d.ts +3 -0
  20. package/dist/gridarea/utilities/area-dimensions.js +22 -0
  21. package/dist/gridarea/utilities/grid-area.d.ts +5 -0
  22. package/dist/gridarea/utilities/grid-area.js +46 -0
  23. package/dist/index.d.ts +7 -0
  24. package/dist/index.js +32 -0
  25. package/dist/plugins/grid-16x.d.ts +2 -0
  26. package/dist/plugins/grid-16x.js +60 -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/package.json +26 -4
  34. package/CHANGELOG.md +0 -55
  35. package/components/anchor-position.js +0 -110
  36. package/components/fluid-container.js +0 -34
  37. package/components/grid-container.js +0 -37
  38. package/components/interaction.js +0 -37
  39. package/components/swiper.js +0 -13
  40. package/deprecated/fluid-container-aside.js +0 -48
  41. package/deprecated/fluid-container-half.js +0 -48
  42. package/dist/assets/index-BeSH1wKF.js +0 -74
  43. package/dist/assets/index-CFh4XZ-f.css +0 -1
  44. package/dist/index.html +0 -23
  45. package/gridarea/index.js +0 -6
  46. package/gridarea/utilities/area-dimensions.js +0 -13
  47. package/gridarea/utilities/grid-area.js +0 -49
  48. package/index.d.ts +0 -17
  49. package/index.html +0 -46
  50. package/index.js +0 -30
  51. package/lib/aspect-ratio.js +0 -6
  52. package/lib/colors.js +0 -58
  53. package/lib/container.js +0 -10
  54. package/lib/screens.js +0 -13
  55. package/lib/spacing.js +0 -215
  56. package/lib/theme-parser.js +0 -83
  57. package/motion/index.js +0 -17
  58. package/motion/theme.js +0 -174
  59. package/motion/utilities/delay.js +0 -11
  60. package/motion/utilities/direction.js +0 -15
  61. package/motion/utilities/duration.js +0 -11
  62. package/motion/utilities/fillMode.js +0 -15
  63. package/motion/utilities/iterationCount.js +0 -15
  64. package/motion/utilities/offset.js +0 -11
  65. package/motion/utilities/playState.js +0 -15
  66. package/motion/utilities/timingFunction.js +0 -15
  67. package/plugins/viewport-dimensions.js +0 -33
  68. package/postcss.config.js +0 -6
  69. package/tailwind.config.js +0 -18
  70. package/theme-example.json +0 -329
  71. package/themecolors/index.js +0 -65
  72. package/vite.css +0 -8
  73. package/vite.js +0 -64
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,11 +0,0 @@
1
- module.exports = ({ matchUtilities, theme }) =>
2
- matchUtilities(
3
- {
4
- 'animate-delay': (value) => ({
5
- 'animation-delay': value,
6
- }),
7
- },
8
- {
9
- values: theme('animationDelay'),
10
- }
11
- );
@@ -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,11 +0,0 @@
1
- module.exports = ({ matchUtilities, theme }) =>
2
- matchUtilities(
3
- {
4
- 'animate-duration': (value) => ({
5
- 'animation-duration': value,
6
- }),
7
- },
8
- {
9
- values: theme('animationDuration'),
10
- }
11
- );
@@ -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
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- tailwindcss: {},
4
- autoprefixer: {},
5
- },
6
- };
@@ -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
- };
@@ -1,329 +0,0 @@
1
- {
2
- "$schema": "https://schemas.wp.org/wp/6.2/theme.json",
3
- "settings": {
4
- "appearanceTools": true,
5
- "layout": {
6
- "contentSize": "960px",
7
- "wideSize": "1440px"
8
- },
9
- "color": {
10
- "palette": [
11
- {
12
- "slug": "primary-light",
13
- "color": "#E9F4FF",
14
- "name": "primary-light"
15
- },
16
- {
17
- "slug": "primary",
18
- "color": "#7152EC",
19
- "name": "primary"
20
- },
21
- {
22
- "slug": "primary-medium",
23
- "color": "#559ADF",
24
- "name": "primary-medium"
25
- },
26
- {
27
- "slug": "primary-dark",
28
- "color": "#1B389F",
29
- "name": "primary-dark"
30
- },
31
- {
32
- "slug": "secondary",
33
- "color": "#FF0000",
34
- "name": "secondary"
35
- },
36
- {
37
- "slug": "secondary-dark",
38
- "color": "#5C1E1E",
39
- "name": "secondary-dark"
40
- },
41
- {
42
- "slug": "black",
43
- "color": "#1E2E36",
44
- "name": "black"
45
- },
46
- {
47
- "slug": "white",
48
- "color": "#FFF",
49
- "name": "white"
50
- }
51
- ]
52
- },
53
- "spacing": {
54
-
55
- "spacingScale": {
56
- "steps": 0
57
- },
58
- "spacingSizes": [
59
- {
60
- "size": "0px",
61
- "slug": "0",
62
- "name": "0"
63
- },
64
- {
65
- "size": "clamp(16px, 1vw, 32px);",
66
- "slug": "1",
67
- "name": "1"
68
- },
69
- {
70
- "size": "clamp(32px, 1vw, 48px);",
71
- "slug": "2",
72
- "name": "2"
73
- },
74
- {
75
- "size": "clamp(40px, 1vw, 50px);",
76
- "slug": "3",
77
- "name": "3"
78
- },
79
- {
80
- "size": "clamp(64px, 1vw, 80px);",
81
- "slug": "4",
82
- "name": "4"
83
- },
84
- {
85
- "size": "clamp(128px, 1vw, 144px);",
86
- "slug": "5",
87
- "name": "5"
88
- },
89
- {
90
- "size": "clamp(144px, 1vw, 164px);",
91
- "slug": "6",
92
- "name": "6"
93
- }
94
- ],
95
- "blockGap": true,
96
- "margin": true,
97
- "padding": true,
98
- "units": [
99
- "%",
100
- "px",
101
- "em",
102
- "rem",
103
- "vh",
104
- "vw"
105
- ]
106
- },
107
- "typography": {
108
- "fluid": true,
109
- "lineHeight": true,
110
- "fontWeight": true,
111
- "fontStyle": false,
112
- "fontFamilies": [
113
- {
114
- "fontFamily": "\"TitilliumWeb\", sans",
115
- "name": "TitilliumWeb",
116
- "slug": "expressive",
117
- "fontFace": [
118
- {
119
- "fontFamily": "TitilliumWeb",
120
- "fontWeight": "700",
121
- "fontStyle": "normal",
122
- "fontStretch": "normal",
123
- "src": [ "file:./resources/fonts/TitilliumWeb-Bold.woff2" ]
124
- },
125
- {
126
- "fontFamily": "TitilliumWeb",
127
- "fontWeight": "600",
128
- "fontStyle": "medium",
129
- "fontStretch": "normal",
130
- "src": [ "file:./resources/fonts/TitilliumWeb-SemiBold.woff2" ]
131
- },
132
- {
133
- "fontFamily": "TitilliumWeb",
134
- "fontWeight": "400",
135
- "fontStyle": "normal",
136
- "fontStretch": "normal",
137
- "src": [ "file:./resources/fonts/TitilliumWeb-Regular.woff2" ]
138
- }
139
- ]
140
- },
141
- {
142
- "fontFamily": "\"Inter\", sans",
143
- "name": "Inter",
144
- "slug": "productive",
145
- "fontFace": [
146
- {
147
- "fontFamily": "Inter",
148
- "fontWeight": "400",
149
- "fontStyle": "normal",
150
- "fontStretch": "normal",
151
- "src": [ "file:./resources/fonts/Inter-Regular.woff2" ]
152
- },
153
- {
154
- "fontFamily": "Inter",
155
- "fontWeight": "600",
156
- "fontStyle": "bold",
157
- "fontStretch": "normal",
158
- "src": [ "file:./resources/fonts/Inter-Medium.woff2" ]
159
- }
160
- ]
161
- }
162
- ],
163
- "fontSizes": [
164
- {
165
- "name": "Tiny",
166
- "slug": "tiny",
167
- "size": "0.9rem",
168
- "fluid": {
169
- "min": "0.8rem",
170
- "max": "1rem"
171
- }
172
- },
173
- {
174
- "name": "Small",
175
- "slug": "small",
176
- "size": "1rem",
177
- "fluid": {
178
- "min": "1rem",
179
- "max": "1.1rem"
180
- }
181
- },
182
- {
183
- "name": "Standard",
184
- "slug": "standard",
185
- "size": "1.2rem",
186
- "fluid": {
187
- "min": "1.2rem",
188
- "max": "1.3rem"
189
- }
190
- },
191
- {
192
- "name": "Standard XL",
193
- "slug": "standard-xl",
194
- "size": "1.5rem",
195
- "fluid": {
196
- "min": "1.5rem",
197
- "max": "1.6rem"
198
- }
199
- },
200
- {
201
- "name": "Medium",
202
- "slug": "medium",
203
- "size": "1.8rem",
204
- "fluid": {
205
- "min": "1.4rem",
206
- "max": "2.2rem"
207
- }
208
- },
209
- {
210
- "name": "Large",
211
- "slug": "large",
212
- "size": "2.2rem",
213
- "fluid": {
214
- "min": "1.6rem",
215
- "max": "2.6rem"
216
- }
217
- },
218
- {
219
- "size": "2.6rem",
220
- "fluid": {
221
- "min": "1.8rem",
222
- "max": "3.4rem"
223
- },
224
- "slug": "huge",
225
- "name": "Huge"
226
- },
227
-
228
- {
229
- "name": "Gigantic",
230
- "slug": "gigantic",
231
- "size": "3.8rem",
232
- "fluid": {
233
- "min": "2.8rem",
234
- "max": "4.5rem"
235
- }
236
- }
237
- ]
238
- }
239
- },
240
- "templateParts": [
241
- {
242
- "area": "header",
243
- "name": "header"
244
- },
245
- {
246
- "area": "footer",
247
- "name": "footer"
248
- }
249
- ],
250
- "version": 2,
251
- "styles": {
252
- "typography": {
253
- "fontFamily": "Inter",
254
- "fontWeight": "300",
255
- "lineHeight": "1.5",
256
- "fontSize": "20px"
257
- },
258
- "elements": {
259
- "link":{
260
- "typography":{
261
- "textDecoration":"false"
262
- }
263
- }
264
- },
265
- "spacing": {
266
- "blockGap": "0.5rem"
267
- },
268
- "blocks": {
269
- "core/heading": {
270
- "typography": {
271
- "fontSize":"var(--wp--preset--font-size--standard-xl)",
272
- "fontFamily": "var(--wp--preset--font-family--expressive)",
273
- "fontWeight": "600",
274
- "lineHeight": "1.25"
275
- },
276
- "spacing": {
277
- "margin": {
278
- "top": "var(--wp--preset--spacing--1)",
279
- "bottom": "var(--wp--preset--spacing--1)"
280
- }
281
- }
282
- },
283
- "blockbite/section": {
284
- "spacing": {
285
- "padding": {
286
- "top": "var(--wp--preset--spacing--2)",
287
- "bottom": "var(--wp--preset--spacing--2)"
288
- },
289
- "margin": {
290
- "top": "var(--wp--preset--spacing--0)",
291
- "bottom": "var(--wp--preset--spacing--0)"
292
- }
293
- }
294
- },
295
- "blockbite/advanced-button": {
296
- "spacing": {
297
- "margin": {
298
- "top": "var(--wp--preset--spacing--1)",
299
- "bottom": "var(--wp--preset--spacing--1)"
300
- }
301
- }
302
- },
303
- "core/columns": {
304
- "spacing": {
305
- "margin": {
306
- "top": "var(--wp--preset--spacing--0 )",
307
- "bottom": "var(--wp--preset--spacing--0 )"
308
- }
309
- }
310
- },
311
- "core/column": {
312
- "spacing": {
313
- "padding": {
314
- "top": "var(--wp--preset--spacing--1 )",
315
- "bottom": "var(--wp--preset--spacing--1 )"
316
- }
317
- }
318
- },
319
- "core/paragraph": {
320
- "spacing": {
321
- "margin": {
322
- "top": "0.5rem",
323
- "bottom": "0.5rem"
324
- }
325
- }
326
- }
327
- }
328
- }
329
- }