@beeq/tailwindcss 1.11.0-beta.2 → 1.11.0

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/index.cjs.js CHANGED
@@ -1933,20 +1933,28 @@ function customFlattenColorPalette(colors) {
1933
1933
  flattenObject(colors, '', result);
1934
1934
  return result;
1935
1935
  }
1936
- function flattenColorPalette$1(colors) {
1936
+ function moduleExists(modulePath) {
1937
+ try {
1938
+ require.resolve(modulePath);
1939
+ return true;
1940
+ } catch (_unused) {
1941
+ return false;
1942
+ }
1943
+ }
1944
+ function flattenColorPalette(colors) {
1945
+ if (!moduleExists('tailwindcss/lib/util/flattenColorPalette')) {
1946
+ return customFlattenColorPalette(colors);
1947
+ }
1937
1948
  try {
1938
1949
  const {
1939
1950
  default: twFlattenColorPalette
1940
1951
  } = require('tailwindcss/lib/util/flattenColorPalette');
1941
1952
  return twFlattenColorPalette(colors);
1942
- } catch (_unused) {
1953
+ } catch (_unused2) {
1943
1954
  return customFlattenColorPalette(colors);
1944
1955
  }
1945
1956
  }
1946
1957
 
1947
- const {
1948
- default: flattenColorPalette
1949
- } = require('tailwindcss/lib/util/flattenColorPalette');
1950
1958
  const ColorMix = plugin(function ({
1951
1959
  matchUtilities,
1952
1960
  theme
@@ -2085,7 +2093,7 @@ const LogicalProperties = plugin(function ({
2085
2093
  'border-inline-end-color': value
2086
2094
  })
2087
2095
  }, {
2088
- values: flattenColorPalette$1(theme('colors'))
2096
+ values: flattenColorPalette(theme('colors'))
2089
2097
  });
2090
2098
  matchUtilities({
2091
2099
  bs: value => ({
package/index.esm.js CHANGED
@@ -1929,20 +1929,28 @@ function customFlattenColorPalette(colors) {
1929
1929
  flattenObject(colors, '', result);
1930
1930
  return result;
1931
1931
  }
1932
- function flattenColorPalette$1(colors) {
1932
+ function moduleExists(modulePath) {
1933
+ try {
1934
+ require.resolve(modulePath);
1935
+ return true;
1936
+ } catch (_unused) {
1937
+ return false;
1938
+ }
1939
+ }
1940
+ function flattenColorPalette(colors) {
1941
+ if (!moduleExists('tailwindcss/lib/util/flattenColorPalette')) {
1942
+ return customFlattenColorPalette(colors);
1943
+ }
1933
1944
  try {
1934
1945
  const {
1935
1946
  default: twFlattenColorPalette
1936
1947
  } = require('tailwindcss/lib/util/flattenColorPalette');
1937
1948
  return twFlattenColorPalette(colors);
1938
- } catch (_unused) {
1949
+ } catch (_unused2) {
1939
1950
  return customFlattenColorPalette(colors);
1940
1951
  }
1941
1952
  }
1942
1953
 
1943
- const {
1944
- default: flattenColorPalette
1945
- } = require('tailwindcss/lib/util/flattenColorPalette');
1946
1954
  const ColorMix = plugin(function ({
1947
1955
  matchUtilities,
1948
1956
  theme
@@ -2081,7 +2089,7 @@ const LogicalProperties = plugin(function ({
2081
2089
  'border-inline-end-color': value
2082
2090
  })
2083
2091
  }, {
2084
- values: flattenColorPalette$1(theme('colors'))
2092
+ values: flattenColorPalette(theme('colors'))
2085
2093
  });
2086
2094
  matchUtilities({
2087
2095
  bs: value => ({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@beeq/tailwindcss",
3
- "version": "1.11.0-beta.2",
3
+ "version": "1.11.0",
4
4
  "license": "Apache-2.0",
5
5
  "description": "BEEQ's opinionated TailwindCSS configuration",
6
6
  "main": "./index.cjs.js",