tfy-web-components 0.0.9 → 0.0.11
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/components/theme/lightColorPlugin.d.ts +6 -0
- package/dist/components/theme/{lightColorPlugin.js.es.js → lightColorPlugin.es.js} +59 -3
- package/dist/components/theme/lightColorPlugin.es.js.map +1 -0
- package/dist/lightColorPlugin.d.ts +10 -0
- package/package.json +1 -1
- package/dist/components/theme/lightColorPlugin.js.d.ts +0 -1
- package/dist/components/theme/lightColorPlugin.js.es.js.map +0 -1
- package/dist/components/theme/tailwindScrollbar.js.d.ts +0 -1
- package/dist/components/theme/tailwindScrollbar.js.es.js +0 -81
- package/dist/components/theme/tailwindScrollbar.js.es.js.map +0 -1
- package/dist/lightColorPlugin.js.d.ts +0 -1
- package/dist/plugin-06dc459f.js +0 -61
- package/dist/plugin-06dc459f.js.map +0 -1
- package/dist/tailwindScrollbar.js.d.ts +0 -1
|
@@ -1,5 +1,61 @@
|
|
|
1
|
-
import { p as plugin } from "../../plugin-06dc459f.js";
|
|
2
1
|
import { lightPalette } from "./colors.es.js";
|
|
2
|
+
function getDefaultExportFromCjs(x) {
|
|
3
|
+
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
4
|
+
}
|
|
5
|
+
var createPlugin$2 = {};
|
|
6
|
+
var createPlugin$1 = {};
|
|
7
|
+
(function(exports) {
|
|
8
|
+
Object.defineProperty(exports, "__esModule", {
|
|
9
|
+
value: true
|
|
10
|
+
});
|
|
11
|
+
Object.defineProperty(exports, "default", {
|
|
12
|
+
enumerable: true,
|
|
13
|
+
get: function() {
|
|
14
|
+
return _default;
|
|
15
|
+
}
|
|
16
|
+
});
|
|
17
|
+
function createPlugin2(plugin2, config) {
|
|
18
|
+
return {
|
|
19
|
+
handler: plugin2,
|
|
20
|
+
config
|
|
21
|
+
};
|
|
22
|
+
}
|
|
23
|
+
createPlugin2.withOptions = function(pluginFunction, configFunction = () => ({})) {
|
|
24
|
+
const optionsFunction = function(options) {
|
|
25
|
+
return {
|
|
26
|
+
__options: options,
|
|
27
|
+
handler: pluginFunction(options),
|
|
28
|
+
config: configFunction(options)
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
optionsFunction.__isOptionsFunction = true;
|
|
32
|
+
optionsFunction.__pluginFunction = pluginFunction;
|
|
33
|
+
optionsFunction.__configFunction = configFunction;
|
|
34
|
+
return optionsFunction;
|
|
35
|
+
};
|
|
36
|
+
const _default = createPlugin2;
|
|
37
|
+
})(createPlugin$1);
|
|
38
|
+
(function(exports) {
|
|
39
|
+
Object.defineProperty(exports, "__esModule", {
|
|
40
|
+
value: true
|
|
41
|
+
});
|
|
42
|
+
Object.defineProperty(exports, "default", {
|
|
43
|
+
enumerable: true,
|
|
44
|
+
get: function() {
|
|
45
|
+
return _default;
|
|
46
|
+
}
|
|
47
|
+
});
|
|
48
|
+
const _createPlugin = /* @__PURE__ */ _interop_require_default(createPlugin$1);
|
|
49
|
+
function _interop_require_default(obj) {
|
|
50
|
+
return obj && obj.__esModule ? obj : {
|
|
51
|
+
default: obj
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
const _default = _createPlugin.default;
|
|
55
|
+
})(createPlugin$2);
|
|
56
|
+
let createPlugin = createPlugin$2;
|
|
57
|
+
var plugin = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
|
|
58
|
+
const plugin$1 = /* @__PURE__ */ getDefaultExportFromCjs(plugin);
|
|
3
59
|
function flattenColors(colors, prefix = "") {
|
|
4
60
|
const result = {};
|
|
5
61
|
for (const [key, value] of Object.entries(colors)) {
|
|
@@ -70,7 +126,7 @@ function generateRingUtilities(colors) {
|
|
|
70
126
|
}
|
|
71
127
|
return utilities;
|
|
72
128
|
}
|
|
73
|
-
const lightColorPlugin = plugin(function({ addUtilities }) {
|
|
129
|
+
const lightColorPlugin = plugin$1(function({ addUtilities }) {
|
|
74
130
|
const flatColors = flattenColors(lightPalette);
|
|
75
131
|
const utilities = {
|
|
76
132
|
...generateColorUtilities("background-color", "bg", flatColors),
|
|
@@ -88,4 +144,4 @@ const lightColorPlugin = plugin(function({ addUtilities }) {
|
|
|
88
144
|
export {
|
|
89
145
|
lightColorPlugin as default
|
|
90
146
|
};
|
|
91
|
-
//# sourceMappingURL=lightColorPlugin.
|
|
147
|
+
//# sourceMappingURL=lightColorPlugin.es.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lightColorPlugin.es.js","sources":["../../../node_modules/tailwindcss/lib/util/createPlugin.js","../../../node_modules/tailwindcss/lib/public/create-plugin.js","../../../node_modules/tailwindcss/plugin.js","../../../src/components/theme/lightColorPlugin.ts"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nfunction createPlugin(plugin, config) {\n return {\n handler: plugin,\n config\n };\n}\ncreatePlugin.withOptions = function(pluginFunction, configFunction = ()=>({})) {\n const optionsFunction = function(options) {\n return {\n __options: options,\n handler: pluginFunction(options),\n config: configFunction(options)\n };\n };\n optionsFunction.__isOptionsFunction = true;\n // Expose plugin dependencies so that `object-hash` returns a different\n // value if anything here changes, to ensure a rebuild is triggered.\n optionsFunction.__pluginFunction = pluginFunction;\n optionsFunction.__configFunction = configFunction;\n return optionsFunction;\n};\nconst _default = createPlugin;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nconst _createPlugin = /*#__PURE__*/ _interop_require_default(require(\"../util/createPlugin\"));\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nconst _default = _createPlugin.default;\n","let createPlugin = require('./lib/public/create-plugin')\nmodule.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default\n","import plugin from 'tailwindcss/plugin.js'\n\nimport { lightPalette } from './colors'\n\n// Type definitions\ntype ColorValue = string | Record<string, any>\ntype FlattenedColors = Record<string, string>\ntype UtilityObject = Record<string, Record<string, string>>\ntype DirectionProperties = string | string[]\n\nfunction flattenColors(colors: ColorValue, prefix = ''): FlattenedColors {\n const result: FlattenedColors = {}\n\n for (const [key, value] of Object.entries(colors)) {\n const newKey = prefix ? `${prefix}-${key}` : key\n\n if (typeof value === 'string') {\n result[newKey] = value\n } else if (typeof value === 'object' && value !== null) {\n Object.assign(result, flattenColors(value, newKey))\n }\n }\n\n return result\n}\n\nfunction generateColorUtilities(property: string, prefix: string, colors: FlattenedColors): UtilityObject {\n const utilities: UtilityObject = {}\n\n for (const [colorKey, colorValue] of Object.entries(colors)) {\n utilities[`.${prefix}-light-${colorKey}`] = {\n [property]: colorValue,\n }\n }\n\n return utilities\n}\n\nfunction generateBorderUtilities(colors: FlattenedColors): UtilityObject {\n const utilities: UtilityObject = {}\n\n Object.assign(utilities, generateColorUtilities('border-color', 'border', colors))\n\n const directions: Record<string, DirectionProperties> = {\n t: 'border-top-color',\n r: 'border-right-color',\n b: 'border-bottom-color',\n l: 'border-left-color',\n x: ['border-left-color', 'border-right-color'],\n y: ['border-top-color', 'border-bottom-color'],\n }\n\n for (const [dirKey, properties] of Object.entries(directions)) {\n for (const [colorKey, colorValue] of Object.entries(colors)) {\n const className = `.border-${dirKey}-light-${colorKey}`\n\n if (Array.isArray(properties)) {\n utilities[className] = {}\n properties.forEach((prop) => {\n utilities[className][prop] = colorValue\n })\n } else {\n utilities[className] = {\n [properties]: colorValue,\n }\n }\n }\n }\n\n return utilities\n}\n\nfunction generateDivideUtilities(colors: FlattenedColors): UtilityObject {\n const utilities: UtilityObject = {}\n\n for (const [colorKey, colorValue] of Object.entries(colors)) {\n utilities[`.divide-light-${colorKey} > :not([hidden]) ~ :not([hidden])`] = {\n 'border-color': colorValue,\n }\n }\n\n return utilities\n}\n\nfunction generateRingUtilities(colors: FlattenedColors): UtilityObject {\n const utilities: UtilityObject = {}\n\n for (const [colorKey, colorValue] of Object.entries(colors)) {\n utilities[`.ring-light-${colorKey}`] = {\n '--tw-ring-color': colorValue,\n }\n\n utilities[`.ring-offset-light-${colorKey}`] = {\n '--tw-ring-offset-color': colorValue,\n }\n }\n\n return utilities\n}\n\nconst lightColorPlugin = plugin(function ({ addUtilities }) {\n const flatColors = flattenColors(lightPalette)\n\n const utilities = {\n ...generateColorUtilities('background-color', 'bg', flatColors),\n ...generateColorUtilities('color', 'text', flatColors),\n ...generateBorderUtilities(flatColors),\n ...generateDivideUtilities(flatColors),\n ...generateRingUtilities(flatColors),\n ...generateColorUtilities('fill', 'fill', flatColors),\n ...generateColorUtilities('stroke', 'stroke', flatColors),\n ...generateColorUtilities('accent-color', 'accent', flatColors),\n ...generateColorUtilities('caret-color', 'caret', flatColors),\n }\n\n addUtilities(utilities)\n})\n\nexport default lightColorPlugin\n"],"names":["createPlugin","plugin","require$$0"],"mappings":";;;;;;;AACA,SAAO,eAAwB,SAAA,cAAc;AAAA,IACzC,OAAO;AAAA,EACX,CAAC;AACD,SAAO,eAAe,SAAS,WAAW;AAAA,IACtC,YAAY;AAAA,IACZ,KAAK,WAAW;AACZ,aAAO;AAAA,IACV;AAAA,EACL,CAAC;AACD,WAASA,cAAaC,SAAQ,QAAQ;AAClC,WAAO;AAAA,MACH,SAASA;AAAA,MACT;AAAA,IACR;AAAA,EACC;AACD,EAAAD,cAAa,cAAc,SAAS,gBAAgB,iBAAiB,OAAK,CAAE,IAAG;AAC3E,UAAM,kBAAkB,SAAS,SAAS;AACtC,aAAO;AAAA,QACH,WAAW;AAAA,QACX,SAAS,eAAe,OAAO;AAAA,QAC/B,QAAQ,eAAe,OAAO;AAAA,MAC1C;AAAA,IACA;AACI,oBAAgB,sBAAsB;AAGtC,oBAAgB,mBAAmB;AACnC,oBAAgB,mBAAmB;AACnC,WAAO;AAAA,EACX;AACA,QAAM,WAAWA;;;AC9BjB,SAAO,eAAwB,SAAA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AAS,QAAQ,UAAU;AAAA,IACrD,GAAG,wBAAwB,UAAU;AAAA,IACrC,GAAG,wBAAwB,UAAU;AAAA,IACrC,GAAG,sBAAsB,UAAU;AAAA,IACnC,GAAG,uBAAuB,QAAQ,QAAQ,UAAU;AAAA,IACpD,GAAG,uBAAuB,UAAU,UAAU,UAAU;AAAA,IACxD,GAAG,uBAAuB,gBAAgB,UAAU,UAAU;AAAA,IAC9D,GAAG,uBAAuB,eAAe,SAAS,UAAU;AAAA,EAAA;AAG9D,eAAa,SAAS;AACxB,CAAC;","x_google_ignoreList":[0,1,2]}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Config } from 'tailwindcss/types/config';
|
|
2
|
+
import { PluginCreator } from 'tailwindcss/types/config';
|
|
3
|
+
|
|
4
|
+
declare const lightColorPlugin: {
|
|
5
|
+
handler: PluginCreator;
|
|
6
|
+
config?: Partial<Config> | undefined;
|
|
7
|
+
};
|
|
8
|
+
export default lightColorPlugin;
|
|
9
|
+
|
|
10
|
+
export { }
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './lightColorPlugin.js'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lightColorPlugin.js.es.js","sources":["../../../src/components/theme/lightColorPlugin.js"],"sourcesContent":["import plugin from 'tailwindcss/plugin.js'\n\nimport { lightPalette } from './colors'\n\nfunction flattenColors(colors, prefix = '') {\n const result = {}\n\n for (const [key, value] of Object.entries(colors)) {\n const newKey = prefix ? `${prefix}-${key}` : key\n\n if (typeof value === 'string') {\n result[newKey] = value\n } else if (typeof value === 'object' && value !== null) {\n Object.assign(result, flattenColors(value, newKey))\n }\n }\n\n return result\n}\n\nfunction generateColorUtilities(property, prefix, colors) {\n const utilities = {}\n\n for (const [colorKey, colorValue] of Object.entries(colors)) {\n utilities[`.${prefix}-light-${colorKey}`] = {\n [property]: colorValue,\n }\n }\n\n return utilities\n}\n\nfunction generateBorderUtilities(colors) {\n const utilities = {}\n\n Object.assign(utilities, generateColorUtilities('border-color', 'border', colors))\n\n const directions = {\n t: 'border-top-color',\n r: 'border-right-color',\n b: 'border-bottom-color',\n l: 'border-left-color',\n x: ['border-left-color', 'border-right-color'],\n y: ['border-top-color', 'border-bottom-color'],\n }\n\n for (const [dirKey, properties] of Object.entries(directions)) {\n for (const [colorKey, colorValue] of Object.entries(colors)) {\n const className = `.border-${dirKey}-light-${colorKey}`\n\n if (Array.isArray(properties)) {\n utilities[className] = {}\n properties.forEach((prop) => {\n utilities[className][prop] = colorValue\n })\n } else {\n utilities[className] = {\n [properties]: colorValue,\n }\n }\n }\n }\n\n return utilities\n}\n\nfunction generateDivideUtilities(colors) {\n const utilities = {}\n\n for (const [colorKey, colorValue] of Object.entries(colors)) {\n utilities[`.divide-light-${colorKey} > :not([hidden]) ~ :not([hidden])`] = {\n 'border-color': colorValue,\n }\n }\n\n return utilities\n}\n\nfunction generateRingUtilities(colors) {\n const utilities = {}\n\n for (const [colorKey, colorValue] of Object.entries(colors)) {\n utilities[`.ring-light-${colorKey}`] = {\n '--tw-ring-color': colorValue,\n }\n\n utilities[`.ring-offset-light-${colorKey}`] = {\n '--tw-ring-offset-color': colorValue,\n }\n }\n\n return utilities\n}\n\nconst lightColorPlugin = plugin(function ({ addUtilities }) {\n const flatColors = flattenColors(lightPalette)\n\n const utilities = {\n ...generateColorUtilities('background-color', 'bg', flatColors),\n ...generateColorUtilities('color', 'text', flatColors),\n ...generateBorderUtilities(flatColors),\n ...generateDivideUtilities(flatColors),\n ...generateRingUtilities(flatColors),\n ...generateColorUtilities('fill', 'fill', flatColors),\n ...generateColorUtilities('stroke', 'stroke', flatColors),\n ...generateColorUtilities('accent-color', 'accent', flatColors),\n ...generateColorUtilities('caret-color', 'caret', flatColors),\n }\n\n addUtilities(utilities)\n})\n\nexport default lightColorPlugin\n"],"names":[],"mappings":";;AAIA,SAAS,cAAc,QAAQ,SAAS,IAAI;AAC1C,QAAM,SAAS,CAAE;AAEjB,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indScrollbar = plugin(function({ addUtilities, matchUtilities, theme }) {
|
|
3
|
-
const scrollbarTrackColorValue = (value) => ({
|
|
4
|
-
"--scrollbar-track": value,
|
|
5
|
-
"&::-webkit-scrollbar-track": {
|
|
6
|
-
"background-color": value
|
|
7
|
-
}
|
|
8
|
-
});
|
|
9
|
-
const scrollbarTrackRoundedValue = (value) => ({
|
|
10
|
-
"&::-webkit-scrollbar-track": {
|
|
11
|
-
"border-radius": value
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
const scrollbarThumbColorValue = (value) => ({
|
|
15
|
-
"--scrollbar-thumb": value,
|
|
16
|
-
"&::-webkit-scrollbar-thumb": {
|
|
17
|
-
"background-color": value
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const scrollbarThumbRoundedValue = (value) => ({
|
|
21
|
-
"&::-webkit-scrollbar-thumb": {
|
|
22
|
-
"border-radius": value
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
addUtilities({
|
|
26
|
-
".scrollbar": {
|
|
27
|
-
"--scrollbar-thumb": "#cdcdcd",
|
|
28
|
-
"--scrollbar-track": "#f0f0f0",
|
|
29
|
-
"--scrollbar-width": "17px",
|
|
30
|
-
"scrollbar-color": "var(--scrollbar-thumb) var(--scrollbar-track)",
|
|
31
|
-
"&::-webkit-scrollbar": {
|
|
32
|
-
width: "var(--scrollbar-width)",
|
|
33
|
-
height: "var(--scrollbar-width)"
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
".scrollbar-thin": {
|
|
37
|
-
"--scrollbar-width": "0.5rem",
|
|
38
|
-
"scrollbar-width": "thin"
|
|
39
|
-
}
|
|
40
|
-
});
|
|
41
|
-
Object.entries(theme("colors")).forEach(([colorName, color]) => {
|
|
42
|
-
switch (typeof color) {
|
|
43
|
-
case "object":
|
|
44
|
-
matchUtilities(
|
|
45
|
-
{
|
|
46
|
-
[`scrollbar-track-${colorName}`]: (value) => scrollbarTrackColorValue(value),
|
|
47
|
-
[`scrollbar-thumb-${colorName}`]: (value) => scrollbarThumbColorValue(value)
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
values: color
|
|
51
|
-
}
|
|
52
|
-
);
|
|
53
|
-
break;
|
|
54
|
-
case "function":
|
|
55
|
-
addUtilities({
|
|
56
|
-
[`.scrollbar-track-${colorName}`]: scrollbarTrackColorValue(color({})),
|
|
57
|
-
[`.scrollbar-thumb-${colorName}`]: scrollbarThumbColorValue(color({}))
|
|
58
|
-
});
|
|
59
|
-
break;
|
|
60
|
-
case "string":
|
|
61
|
-
addUtilities({
|
|
62
|
-
[`.scrollbar-track-${colorName}`]: scrollbarTrackColorValue(color),
|
|
63
|
-
[`.scrollbar-thumb-${colorName}`]: scrollbarThumbColorValue(color)
|
|
64
|
-
});
|
|
65
|
-
break;
|
|
66
|
-
}
|
|
67
|
-
});
|
|
68
|
-
matchUtilities(
|
|
69
|
-
{
|
|
70
|
-
"scrollbar-track-rounded": (value) => scrollbarTrackRoundedValue(value),
|
|
71
|
-
"scrollbar-thumb-rounded": (value) => scrollbarThumbRoundedValue(value)
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
values: theme("borderRadius")
|
|
75
|
-
}
|
|
76
|
-
);
|
|
77
|
-
});
|
|
78
|
-
export {
|
|
79
|
-
tailwindScrollbar as default
|
|
80
|
-
};
|
|
81
|
-
//# sourceMappingURL=tailwindScrollbar.js.es.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tailwindScrollbar.js.es.js","sources":["../../../src/components/theme/tailwindScrollbar.js"],"sourcesContent":["import plugin from 'tailwindcss/plugin.js'\n\nexport default plugin(function ({ addUtilities, matchUtilities, theme }) {\n const scrollbarTrackColorValue = (value) => ({\n '--scrollbar-track': value,\n '&::-webkit-scrollbar-track': {\n 'background-color': value,\n },\n })\n\n const scrollbarTrackRoundedValue = (value) => ({\n '&::-webkit-scrollbar-track': {\n 'border-radius': value,\n },\n })\n\n const scrollbarThumbColorValue = (value) => ({\n '--scrollbar-thumb': value,\n '&::-webkit-scrollbar-thumb': {\n 'background-color': value,\n },\n })\n\n const scrollbarThumbRoundedValue = (value) => ({\n '&::-webkit-scrollbar-thumb': {\n 'border-radius': value,\n },\n })\n\n addUtilities({\n '.scrollbar': {\n '--scrollbar-thumb': '#cdcdcd',\n '--scrollbar-track': '#f0f0f0',\n '--scrollbar-width': '17px',\n 'scrollbar-color': 'var(--scrollbar-thumb) var(--scrollbar-track)',\n '&::-webkit-scrollbar': {\n width: 'var(--scrollbar-width)',\n height: 'var(--scrollbar-width)',\n },\n },\n '.scrollbar-thin': {\n '--scrollbar-width': '0.5rem',\n 'scrollbar-width': 'thin',\n },\n })\n\n Object.entries(theme('colors')).forEach(([colorName, color]) => {\n switch (typeof color) {\n case 'object':\n matchUtilities(\n {\n [`scrollbar-track-${colorName}`]: (value) => scrollbarTrackColorValue(value),\n [`scrollbar-thumb-${colorName}`]: (value) => scrollbarThumbColorValue(value),\n },\n {\n values: color,\n },\n )\n break\n case 'function':\n addUtilities({\n [`.scrollbar-track-${colorName}`]: scrollbarTrackColorValue(color({})),\n [`.scrollbar-thumb-${colorName}`]: scrollbarThumbColorValue(color({})),\n })\n break\n case 'string':\n addUtilities({\n [`.scrollbar-track-${colorName}`]: scrollbarTrackColorValue(color),\n [`.scrollbar-thumb-${colorName}`]: scrollbarThumbColorValue(color),\n })\n break\n }\n })\n\n matchUtilities(\n {\n 'scrollbar-track-rounded': (value) => scrollbarTrackRoundedValue(value),\n 'scrollbar-thumb-rounded': (value) => scrollbarThumbRoundedValue(value),\n },\n {\n values: theme('borderRadius'),\n },\n )\n})\n"],"names":[],"mappings":";AAEA,MAAe,oBAAA,OAAO,SAAU,EAAE,cAAc,gBAAgB,MAAK,GAAI;AACvE,QAAM,2BAA2B,CAAC,WAAW;AAAA,IAC3C,qBAAqB;AAAA,IACrB,8BAA8B;AAAA,MAC5B,oBAAoB;AAAA,IACrB;AAAA,EACL;AAEE,QAAM,6BAA6B,C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C,oBAAoB,SAAS,EAAE,GAAG,yBAAyB,KAAK;AAAA,QAC3E,CAAS;AACD;AAAA,IACH;AAAA,EACL,CAAG;AAED;AAAA,IACE;AAAA,MACE,2BAA2B,CAAC,UAAU,2BAA2B,KAAK;AAAA,MACtE,2BAA2B,CAAC,UAAU,2BAA2B,KAAK;AAAA,IACvE;AAAA,IACD;AAAA,MACE,QAAQ,MAAM,cAAc;AAAA,IAC7B;AAAA,EACF;AACH,CAAC;"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { }
|
package/dist/plugin-06dc459f.js
DELETED
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
function getDefaultExportFromCjs(x) {
|
|
2
|
-
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, "default") ? x["default"] : x;
|
|
3
|
-
}
|
|
4
|
-
var createPlugin$2 = {};
|
|
5
|
-
var createPlugin$1 = {};
|
|
6
|
-
(function(exports) {
|
|
7
|
-
Object.defineProperty(exports, "__esModule", {
|
|
8
|
-
value: true
|
|
9
|
-
});
|
|
10
|
-
Object.defineProperty(exports, "default", {
|
|
11
|
-
enumerable: true,
|
|
12
|
-
get: function() {
|
|
13
|
-
return _default;
|
|
14
|
-
}
|
|
15
|
-
});
|
|
16
|
-
function createPlugin2(plugin2, config) {
|
|
17
|
-
return {
|
|
18
|
-
handler: plugin2,
|
|
19
|
-
config
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
createPlugin2.withOptions = function(pluginFunction, configFunction = () => ({})) {
|
|
23
|
-
const optionsFunction = function(options) {
|
|
24
|
-
return {
|
|
25
|
-
__options: options,
|
|
26
|
-
handler: pluginFunction(options),
|
|
27
|
-
config: configFunction(options)
|
|
28
|
-
};
|
|
29
|
-
};
|
|
30
|
-
optionsFunction.__isOptionsFunction = true;
|
|
31
|
-
optionsFunction.__pluginFunction = pluginFunction;
|
|
32
|
-
optionsFunction.__configFunction = configFunction;
|
|
33
|
-
return optionsFunction;
|
|
34
|
-
};
|
|
35
|
-
const _default = createPlugin2;
|
|
36
|
-
})(createPlugin$1);
|
|
37
|
-
(function(exports) {
|
|
38
|
-
Object.defineProperty(exports, "__esModule", {
|
|
39
|
-
value: true
|
|
40
|
-
});
|
|
41
|
-
Object.defineProperty(exports, "default", {
|
|
42
|
-
enumerable: true,
|
|
43
|
-
get: function() {
|
|
44
|
-
return _default;
|
|
45
|
-
}
|
|
46
|
-
});
|
|
47
|
-
const _createPlugin = /* @__PURE__ */ _interop_require_default(createPlugin$1);
|
|
48
|
-
function _interop_require_default(obj) {
|
|
49
|
-
return obj && obj.__esModule ? obj : {
|
|
50
|
-
default: obj
|
|
51
|
-
};
|
|
52
|
-
}
|
|
53
|
-
const _default = _createPlugin.default;
|
|
54
|
-
})(createPlugin$2);
|
|
55
|
-
let createPlugin = createPlugin$2;
|
|
56
|
-
var plugin = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default;
|
|
57
|
-
const plugin$1 = /* @__PURE__ */ getDefaultExportFromCjs(plugin);
|
|
58
|
-
export {
|
|
59
|
-
plugin$1 as p
|
|
60
|
-
};
|
|
61
|
-
//# sourceMappingURL=plugin-06dc459f.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugin-06dc459f.js","sources":["../node_modules/tailwindcss/lib/util/createPlugin.js","../node_modules/tailwindcss/lib/public/create-plugin.js","../node_modules/tailwindcss/plugin.js"],"sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nfunction createPlugin(plugin, config) {\n return {\n handler: plugin,\n config\n };\n}\ncreatePlugin.withOptions = function(pluginFunction, configFunction = ()=>({})) {\n const optionsFunction = function(options) {\n return {\n __options: options,\n handler: pluginFunction(options),\n config: configFunction(options)\n };\n };\n optionsFunction.__isOptionsFunction = true;\n // Expose plugin dependencies so that `object-hash` returns a different\n // value if anything here changes, to ensure a rebuild is triggered.\n optionsFunction.__pluginFunction = pluginFunction;\n optionsFunction.__configFunction = configFunction;\n return optionsFunction;\n};\nconst _default = createPlugin;\n","\"use strict\";\nObject.defineProperty(exports, \"__esModule\", {\n value: true\n});\nObject.defineProperty(exports, \"default\", {\n enumerable: true,\n get: function() {\n return _default;\n }\n});\nconst _createPlugin = /*#__PURE__*/ _interop_require_default(require(\"../util/createPlugin\"));\nfunction _interop_require_default(obj) {\n return obj && obj.__esModule ? obj : {\n default: obj\n };\n}\nconst _default = _createPlugin.default;\n","let createPlugin = require('./lib/public/create-plugin')\nmodule.exports = (createPlugin.__esModule ? createPlugin : { default: createPlugin }).default\n"],"names":["createPlugin","plugin","require$$0"],"mappings":";;;;;;AACA,SAAO,eAAwB,SAAA,cAAc;AAAA,IACzC,OAAO;AAAA,EACX,CAAC;AACD,SAAO,eAAe,SAAS,WAAW;AAAA,IACtC,YAAY;AAAA,IACZ,KAAK,WAAW;AACZ,aAAO;AAAA,IACV;AAAA,EACL,CAAC;AACD,WAASA,cAAaC,SAAQ,QAAQ;AAClC,WAAO;AAAA,MACH,SAASA;AAAA,MACT;AAAA,IACR;AAAA,EACC;AACD,EAAAD,cAAa,cAAc,SAAS,gBAAgB,iBAAiB,OAAK,CAAE,IAAG;AAC3E,UAAM,kBAAkB,SAAS,SAAS;AACtC,aAAO;AAAA,QACH,WAAW;AAAA,QACX,SAAS,eAAe,OAAO;AAAA,QAC/B,QAAQ,eAAe,OAAO;AAAA,MAC1C;AAAA,IACA;AACI,oBAAgB,sBAAsB;AAGtC,oBAAgB,mBAAmB;AACnC,oBAAgB,mBAAmB;AACnC,WAAO;AAAA,EACX;AACA,QAAM,WAAWA;;;AC9BjB,SAAO,eAAwB,SAAA,cAAc;AAAA,IACzC,OAAO;AAAA,EACX,CAAC;AACD,SAAO,eAAe,SAAS,WAAW;AAAA,IACtC,YAAY;AAAA,IACZ,KAAK,WAAW;AACZ,aAAO;AAAA,IACV;AAAA,EACL,CAAC;AACD,QAAM,gBAA8B,yCAAyBE,cAA+B;AAC5F,WAAS,yBAAyB,KAAK;AACnC,WAAO,OAAO,IAAI,aAAa,MAAM;AAAA,MACjC,SAAS;AAAA,IACjB;AAAA,EACC;AACD,QAAM,WAAW,cAAc;;AChB/B,IAAI,eAAeA;AACnB,IAAA,UAAkB,aAAa,aAAa,eAAe,EAAE,SAAS,aAAY,GAAI;;","x_google_ignoreList":[0,1,2]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { }
|