@blockbite/tailwind 3.4.4 → 3.4.7

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/motion/theme.js CHANGED
@@ -1,174 +1,174 @@
1
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',
2
+ extend: {
3
+ keyframes: {
4
+ wiggle: {
5
+ '0%, 100%': {
6
+ transform: 'rotate(-3deg)',
172
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',
173
172
  },
173
+ },
174
174
  };
@@ -1,7 +1,11 @@
1
- module.exports = ({ matchUtilities, theme }) => matchUtilities({
2
- 'animate-delay': value => ({
1
+ module.exports = ({ matchUtilities, theme }) =>
2
+ matchUtilities(
3
+ {
4
+ 'animate-delay': (value) => ({
3
5
  'animation-delay': value,
4
- }),
5
- }, {
6
- values: theme('animationDelay'),
7
- });
6
+ }),
7
+ },
8
+ {
9
+ values: theme('animationDelay'),
10
+ }
11
+ );
@@ -1,14 +1,15 @@
1
- module.exports = ({ addUtilities }) => addUtilities({
1
+ module.exports = ({ addUtilities }) =>
2
+ addUtilities({
2
3
  '.animate-normal': {
3
- 'animation-direction': 'normal',
4
+ 'animation-direction': 'normal',
4
5
  },
5
6
  '.animate-reverse': {
6
- 'animation-direction': 'reverse',
7
+ 'animation-direction': 'reverse',
7
8
  },
8
9
  '.animate-alternate': {
9
- 'animation-direction': 'alternate',
10
+ 'animation-direction': 'alternate',
10
11
  },
11
12
  '.animate-alternate-reverse': {
12
- 'animation-direction': 'alternate-reverse',
13
+ 'animation-direction': 'alternate-reverse',
13
14
  },
14
- });
15
+ });
@@ -1,7 +1,11 @@
1
- module.exports = ({ matchUtilities, theme }) => matchUtilities({
2
- 'animate-duration': value => ({
1
+ module.exports = ({ matchUtilities, theme }) =>
2
+ matchUtilities(
3
+ {
4
+ 'animate-duration': (value) => ({
3
5
  'animation-duration': value,
4
- }),
5
- }, {
6
- values: theme('animationDuration'),
7
- });
6
+ }),
7
+ },
8
+ {
9
+ values: theme('animationDuration'),
10
+ }
11
+ );
@@ -1,14 +1,15 @@
1
- module.exports = ({ addUtilities }) => addUtilities({
1
+ module.exports = ({ addUtilities }) =>
2
+ addUtilities({
2
3
  '.animate-fill-none': {
3
- 'animation-fill-mode': 'normal',
4
+ 'animation-fill-mode': 'normal',
4
5
  },
5
6
  '.animate-fill-forwards': {
6
- 'animation-fill-mode': 'forwards',
7
+ 'animation-fill-mode': 'forwards',
7
8
  },
8
9
  '.animate-fill-backwards': {
9
- 'animation-fill-mode': 'backwards',
10
+ 'animation-fill-mode': 'backwards',
10
11
  },
11
12
  '.animate-fill-both': {
12
- 'animation-fill-mode': 'both',
13
+ 'animation-fill-mode': 'both',
13
14
  },
14
- });
15
+ });
@@ -1,14 +1,15 @@
1
- module.exports = ({ addUtilities }) => addUtilities({
1
+ module.exports = ({ addUtilities }) =>
2
+ addUtilities({
2
3
  '.animate-infinite': {
3
- 'animation-iteration-count': 'infinite',
4
+ 'animation-iteration-count': 'infinite',
4
5
  },
5
6
  '.animate-once': {
6
- 'animation-iteration-count': '1',
7
+ 'animation-iteration-count': '1',
7
8
  },
8
9
  '.animate-twice': {
9
- 'animation-iteration-count': '2',
10
+ 'animation-iteration-count': '2',
10
11
  },
11
12
  '.animate-thrice': {
12
- 'animation-iteration-count': '3',
13
+ 'animation-iteration-count': '3',
13
14
  },
14
- });
15
+ });
@@ -1,11 +1,11 @@
1
1
  module.exports = function ({ addUtilities, theme, e }, gridSpacing) {
2
- const spacing = theme("spacing");
2
+ const spacing = theme('spacing');
3
3
  const newUtilities = {};
4
4
 
5
5
  Object.entries(spacing).map(([key, value]) => {
6
- newUtilities[`.${e(`b_ani-x-${key}`)}`] = { "--an-ani-x": `${value}` };
7
- newUtilities[`.${e(`b_ani-y-${key}`)}`] = { "--an-ani-y": `${value}` };
6
+ newUtilities[`.${e(`b_ani-x-${key}`)}`] = { '--an-ani-x': `${value}` };
7
+ newUtilities[`.${e(`b_ani-y-${key}`)}`] = { '--an-ani-y': `${value}` };
8
8
  });
9
9
 
10
- addUtilities(newUtilities, ["responsive"]);
10
+ addUtilities(newUtilities, ['responsive']);
11
11
  };
@@ -1,14 +1,15 @@
1
- module.exports = ({ addUtilities }) => addUtilities({
1
+ module.exports = ({ addUtilities }) =>
2
+ addUtilities({
2
3
  '.animate-run': {
3
- 'animation-play-state': 'running',
4
+ 'animation-play-state': 'running',
4
5
  },
5
6
  '.animate-play': {
6
- 'animation-play-state': 'running',
7
+ 'animation-play-state': 'running',
7
8
  },
8
9
  '.animate-stop': {
9
- 'animation-play-state': 'paused',
10
+ 'animation-play-state': 'paused',
10
11
  },
11
12
  '.animate-pause': {
12
- 'animation-play-state': 'paused',
13
+ 'animation-play-state': 'paused',
13
14
  },
14
- });
15
+ });
@@ -1,14 +1,15 @@
1
- module.exports = ({ addUtilities }) => addUtilities({
1
+ module.exports = ({ addUtilities }) =>
2
+ addUtilities({
2
3
  '.animate-ease-linear': {
3
- 'animation-timing-function': 'linear',
4
+ 'animation-timing-function': 'linear',
4
5
  },
5
6
  '.animate-ease-in': {
6
- 'animation-timing-function': 'cubic-bezier(0.4, 0, 1, 1)',
7
+ 'animation-timing-function': 'cubic-bezier(0.4, 0, 1, 1)',
7
8
  },
8
9
  '.animate-ease-out': {
9
- 'animation-timing-function': 'cubic-bezier(0, 0, 0.2, 1)',
10
+ 'animation-timing-function': 'cubic-bezier(0, 0, 0.2, 1)',
10
11
  },
11
12
  '.animate-ease-in-out': {
12
- 'animation-timing-function': 'cubic-bezier(0.4, 0, 0.2, 1)',
13
+ 'animation-timing-function': 'cubic-bezier(0.4, 0, 0.2, 1)',
13
14
  },
14
- });
15
+ });
package/package.json CHANGED
@@ -1,13 +1,8 @@
1
1
  {
2
2
  "name": "@blockbite/tailwind",
3
- "version": "3.4.4",
3
+ "version": "3.4.7",
4
4
  "description": "helper for blockbite plugin and blockbite theme",
5
5
  "main": "index.js",
6
- "scripts": {
7
- "test": "echo \"Error: no test specified\" && exit 1",
8
- "dev": "vite",
9
- "build": "vite build"
10
- },
11
6
  "author": "block-bite.com",
12
7
  "license": "ISC",
13
8
  "dependencies": {
@@ -21,5 +16,10 @@
21
16
  "postcss": "^8.4.38",
22
17
  "tailwindcss": "^3.4.3",
23
18
  "vite": "^5.2.0"
19
+ },
20
+ "scripts": {
21
+ "test": "echo \"Error: no test specified\" && exit 1",
22
+ "dev": "vite",
23
+ "build": "vite build"
24
24
  }
25
25
  }
@@ -1,4 +1,4 @@
1
- const plugin = require("tailwindcss/plugin");
1
+ const plugin = require('tailwindcss/plugin');
2
2
 
3
3
  module.exports = plugin(function ({ addUtilities }) {
4
4
  const utilities = {};
package/postcss.config.js CHANGED
@@ -3,4 +3,4 @@ module.exports = {
3
3
  tailwindcss: {},
4
4
  autoprefixer: {},
5
5
  },
6
- }
6
+ };
@@ -1,18 +1,18 @@
1
1
  /** @type {import('tailwindcss').Config} */
2
2
 
3
- import { getContainer } from "./lib/container.js";
3
+ import { getContainer } from './lib/container.js';
4
4
 
5
5
  module.exports = {
6
- content: ["./vite.html", "./vite.js"],
6
+ content: ['./vite.html', './vite.js'],
7
7
  theme: {
8
8
  extend: {
9
9
  container: getContainer(),
10
10
  },
11
11
  },
12
12
  plugins: [
13
- require("./gridarea"),
14
- require("./components/fluid-container.js"),
15
- require("./components/grid-container.js"),
16
- require("./themecolors"),
13
+ require('./gridarea'),
14
+ require('./components/fluid-container.js'),
15
+ require('./components/grid-container.js'),
16
+ require('./themecolors'),
17
17
  ],
18
18
  };
@@ -1,28 +1,27 @@
1
- const plugin = require("tailwindcss/plugin");
1
+ const plugin = require('tailwindcss/plugin');
2
2
 
3
- function flattenColorPalette(colors, prefix = "") {
3
+ function flattenColorPalette(colors, prefix = '') {
4
4
  return Object.entries(colors).flatMap(([key, value]) => {
5
5
  const name = prefix ? `${prefix}-${key}` : key;
6
- if (typeof value === "string") {
6
+ if (typeof value === 'string') {
7
7
  return [[name, value]];
8
- } else {
9
- return flattenColorPalette(value, name);
10
8
  }
9
+ return flattenColorPalette(value, name);
11
10
  });
12
11
  }
13
12
 
14
13
  module.exports = plugin(({ addUtilities, theme, e }) => {
15
- const colors = theme("colors");
14
+ const colors = theme('colors');
16
15
 
17
16
  const flatColors = flattenColorPalette(colors);
18
17
 
19
18
  const themedVarMap = {
20
- bg: "--theme-bg",
21
- text: "--theme-text",
22
- border: "--theme-border",
23
- fill: "--theme-fill",
24
- stroke: "--theme-stroke",
25
- ring: "--theme-ring",
19
+ bg: '--theme-bg',
20
+ text: '--theme-text',
21
+ border: '--theme-border',
22
+ fill: '--theme-fill',
23
+ stroke: '--theme-stroke',
24
+ ring: '--theme-ring',
26
25
  };
27
26
 
28
27
  const themedUtilities = flatColors.flatMap(([name, value]) => {
@@ -36,31 +35,31 @@ module.exports = plugin(({ addUtilities, theme, e }) => {
36
35
  });
37
36
 
38
37
  const applyThemeClasses = {
39
- ".bg-b_theme": {
40
- "background-color": "var(--theme-bg)",
38
+ '.bg-b_theme': {
39
+ 'background-color': 'var(--theme-bg)',
41
40
  },
42
- ".text-b_theme": {
43
- color: "var(--theme-text)",
41
+ '.text-b_theme': {
42
+ color: 'var(--theme-text)',
44
43
  },
45
- ".border-b_theme": {
46
- "border-color": "var(--theme-border)",
44
+ '.border-b_theme': {
45
+ 'border-color': 'var(--theme-border)',
47
46
  },
48
- ".fill-b_theme": {
49
- fill: "var(--theme-fill)",
47
+ '.fill-b_theme': {
48
+ fill: 'var(--theme-fill)',
50
49
  },
51
- ".stroke-b_theme": {
52
- stroke: "var(--theme-stroke)",
50
+ '.stroke-b_theme': {
51
+ stroke: 'var(--theme-stroke)',
53
52
  },
54
- ".ring-b_theme": {
55
- "--tw-ring-color": "var(--theme-ring)",
53
+ '.ring-b_theme': {
54
+ '--tw-ring-color': 'var(--theme-ring)',
56
55
  },
57
56
  };
58
57
 
59
58
  addUtilities(themedUtilities, {
60
- variants: ["responsive", "hover", "focus"],
59
+ variants: ['responsive', 'hover', 'focus'],
61
60
  });
62
61
 
63
62
  addUtilities(applyThemeClasses, {
64
- variants: ["responsive", "hover", "focus"],
63
+ variants: ['responsive', 'hover', 'focus'],
65
64
  });
66
65
  });
package/vite.js CHANGED
@@ -1,5 +1,5 @@
1
- import "./vite.css";
2
- document.querySelector("#app").innerHTML = `
1
+ import './vite.css';
2
+ document.querySelector('#app').innerHTML = `
3
3
  <div style="--b_full:100%;">
4
4
  <div class="w-full h-[500px] grid b_grid-area-64 bg-red-200">
5
5
  <h1 class="bg-yellow-200 b_area md:b_area-x-6 md:b_area-y-4 md:b_area-w-14 md:b_area-h-14">Grid area </h1>
package/.gitattributes DELETED
@@ -1,2 +0,0 @@
1
- # Auto detect text files and perform LF normalization
2
- * text=auto