@blockbite/tailwind 3.5.11 → 3.5.13

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.js CHANGED
@@ -4,11 +4,13 @@ import fluidContainer from './plugins/fluid-container.js';
4
4
  import gridArea from './plugins/grid-area.js';
5
5
  import mask from './plugins/mask.js';
6
6
  import children from './variants/children.js';
7
+ import editor from './variants/editor.js';
7
8
  const blockbiteTailwindPlugin = plugin(function (api) {
8
9
  // Register all plugins/utilities and variants
9
10
  gridArea.handler(api);
10
11
  fluidContainer.handler(api);
11
12
  mask.handler(api);
12
13
  children.handler(api);
14
+ editor.handler(api);
13
15
  });
14
16
  export default blockbiteTailwindPlugin;
@@ -1,5 +1,17 @@
1
1
  import plugin from 'tailwindcss/plugin';
2
2
  export default plugin(function ({ addComponents }) {
3
+ /*
4
+ tailwind-config-functions.ts
5
+
6
+ @media (min-width: 96rem) {
7
+ :root {
8
+ --bb-container-padding: 1rem;
9
+ --bb-container-width: 96rem;
10
+ --bb-container-wide-width: 'min(96vw, 112rem)',
11
+ --bb-container-full-width: 100%;
12
+ }
13
+ }
14
+ */
3
15
  const components = {
4
16
  '.container': {
5
17
  'box-sizing': 'border-box',
@@ -8,6 +20,25 @@ export default plugin(function ({ addComponents }) {
8
20
  paddingLeft: 'var(--bb-container-padding, 4vw)',
9
21
  paddingRight: 'var(--bb-container-padding, 4vw)',
10
22
  maxWidth: 'var(--bb-container-width, 100%)',
23
+ width: '100%',
24
+ },
25
+ '.container-wide': {
26
+ 'box-sizing': 'border-box',
27
+ marginLeft: 'auto',
28
+ marginRight: 'auto',
29
+ paddingLeft: 'var(--bb-container-padding, 4vw)',
30
+ paddingRight: 'var(--bb-container-padding, 4vw)',
31
+ maxWidth: 'var(--bb-container-wide-width, 100%)',
32
+ width: '100%',
33
+ },
34
+ '.container-full': {
35
+ 'box-sizing': 'border-box',
36
+ marginLeft: 'auto',
37
+ marginRight: 'auto',
38
+ paddingLeft: 'var(--bb-container-full-padding, var(--bb-container-padding, 4vw))',
39
+ paddingRight: 'var(--bb-container-full-padding, var(--bb-container-padding, 4vw))',
40
+ maxWidth: 'var(--bb-container-full-width, 100%)',
41
+ width: '100%',
11
42
  },
12
43
  '.container-inner': {
13
44
  'box-sizing': 'border-box',
@@ -0,0 +1,2 @@
1
+ declare const _default: import("node_modules/tailwindcss/dist/types-CJYAW1ql.mjs").b;
2
+ export default _default;
@@ -0,0 +1,4 @@
1
+ import plugin from 'tailwindcss/plugin';
2
+ export default plugin(function ({ addVariant }) {
3
+ addVariant('editor', '.editor-styles-wrapper &');
4
+ });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockbite/tailwind",
3
- "version": "3.5.11",
3
+ "version": "3.5.13",
4
4
  "description": "helper for blockbite plugin and blockbite theme",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -26,7 +26,7 @@
26
26
  "npm": "^11.3.0",
27
27
  "tailwind-scrollbar": "^4.0.2",
28
28
  "user": "^0.0.0",
29
- "@blockbite/libraries": "0.12.11"
29
+ "@blockbite/libraries": "0.12.12"
30
30
  },
31
31
  "publishConfig": {
32
32
  "access": "public"