This commit is contained in:
nik
2025-10-03 22:27:28 +03:00
parent 829fad0e17
commit 871cf7e792
16520 changed files with 2967597 additions and 3 deletions

View File

@@ -0,0 +1,55 @@
"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __export = (target, all) => {
for (var name in all)
__defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
if (from && typeof from === "object" || typeof from === "function") {
for (let key of __getOwnPropNames(from))
if (!__hasOwnProp.call(to, key) && key !== except)
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
}
return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
// If the importer is in node compatibility mode or this is not an ESM
// file that has been converted to a CommonJS file using a Babel-
// compatible transform (i.e. "__esModule" has not been set), then set
// "default" to the CommonJS "module.exports" for node compatibility.
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
// src/index.ts
var src_exports = {};
__export(src_exports, {
default: () => src_default
});
module.exports = __toCommonJS(src_exports);
var import_plugin = __toESM(require("tailwindcss/plugin.js"), 1);
var src_default = import_plugin.default.withOptions(({ prefix = "ui" } = {}) => {
return ({ addVariant }) => {
for (let state of ["open", "checked", "selected", "active", "disabled"]) {
addVariant(`${prefix}-${state}`, [
`&[data-headlessui-state~="${state}"]`,
`:where([data-headlessui-state~="${state}"]) &`
]);
addVariant(`${prefix}-not-${state}`, [
`&[data-headlessui-state]:not([data-headlessui-state~="${state}"])`,
`:where([data-headlessui-state]:not([data-headlessui-state~="${state}"])) &:not([data-headlessui-state])`
]);
}
addVariant(`${prefix}-focus-visible`, ":where([data-headlessui-focus-visible]) &:focus");
addVariant(
`${prefix}-not-focus-visible`,
"&:focus:where(:not([data-headlessui-focus-visible] &))"
);
};
});

View File

@@ -0,0 +1 @@
import a from"tailwindcss/plugin.js";var o=a.withOptions(({prefix:s="ui"}={})=>({addVariant:t})=>{for(let e of["open","checked","selected","active","disabled"])t(`${s}-${e}`,[`&[data-headlessui-state~="${e}"]`,`:where([data-headlessui-state~="${e}"]) &`]),t(`${s}-not-${e}`,[`&[data-headlessui-state]:not([data-headlessui-state~="${e}"])`,`:where([data-headlessui-state]:not([data-headlessui-state~="${e}"])) &:not([data-headlessui-state])`]);t(`${s}-focus-visible`,":where([data-headlessui-focus-visible]) &:focus"),t(`${s}-not-focus-visible`,"&:focus:where(:not([data-headlessui-focus-visible] &))")});export{o as default};

View File

@@ -0,0 +1 @@
"use strict";var d=Object.create;var i=Object.defineProperty;var h=Object.getOwnPropertyDescriptor;var c=Object.getOwnPropertyNames;var n=Object.getPrototypeOf,$=Object.prototype.hasOwnProperty;var f=(e,s)=>{for(var t in s)i(e,t,{get:s[t],enumerable:!0})},u=(e,s,t,o)=>{if(s&&typeof s=="object"||typeof s=="function")for(let a of c(s))!$.call(e,a)&&a!==t&&i(e,a,{get:()=>s[a],enumerable:!(o=h(s,a))||o.enumerable});return e};var r=(e,s,t)=>(t=e!=null?d(n(e)):{},u(s||!e||!e.__esModule?i(t,"default",{value:e,enumerable:!0}):t,e)),b=e=>u(i({},"__esModule",{value:!0}),e);var v={};f(v,{default:()=>p});module.exports=b(v);var l=r(require("tailwindcss/plugin.js"),1),p=l.default.withOptions(({prefix:e="ui"}={})=>({addVariant:s})=>{for(let t of["open","checked","selected","active","disabled"])s(`${e}-${t}`,[`&[data-headlessui-state~="${t}"]`,`:where([data-headlessui-state~="${t}"]) &`]),s(`${e}-not-${t}`,[`&[data-headlessui-state]:not([data-headlessui-state~="${t}"])`,`:where([data-headlessui-state]:not([data-headlessui-state~="${t}"])) &:not([data-headlessui-state])`]);s(`${e}-focus-visible`,":where([data-headlessui-focus-visible]) &:focus"),s(`${e}-not-focus-visible`,"&:focus:where(:not([data-headlessui-focus-visible] &))")});

8
node_modules/@headlessui/tailwindcss/dist/index.cjs generated vendored Normal file
View File

@@ -0,0 +1,8 @@
'use strict'
let plugin =
process.env.NODE_ENV === 'production'
? require('./headlessui.prod.cjs')
: require('./headlessui.dev.cjs')
module.exports = (plugin.__esModule ? plugin : { default: plugin }).default

19
node_modules/@headlessui/tailwindcss/dist/index.d.cts generated vendored Normal file
View File

@@ -0,0 +1,19 @@
interface Options {
/**
* The prefix used for the variants. This defaults to `ui`.
*
* Usage example:
* ```html
* <div class="ui-open:underline"></div>
* ```
**/
prefix?: string;
}
declare const _default: {
(options: Options): {
handler: import("tailwindcss/types/config").PluginCreator;
config?: Partial<import("tailwindcss/types/config").Config> | undefined;
};
__isOptionsFunction: true;
};
export = _default;

19
node_modules/@headlessui/tailwindcss/dist/index.d.ts generated vendored Normal file
View File

@@ -0,0 +1,19 @@
interface Options {
/**
* The prefix used for the variants. This defaults to `ui`.
*
* Usage example:
* ```html
* <div class="ui-open:underline"></div>
* ```
**/
prefix?: string;
}
declare const _default: {
(options: Options): {
handler: import("tailwindcss/types/config").PluginCreator;
config?: Partial<import("tailwindcss/types/config").Config> | undefined;
};
__isOptionsFunction: true;
};
export default _default;

1
node_modules/@headlessui/tailwindcss/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1 @@
import a from"tailwindcss/plugin.js";var o=a.withOptions(({prefix:s="ui"}={})=>({addVariant:t})=>{for(let e of["open","checked","selected","active","disabled"])t(`${s}-${e}`,[`&[data-headlessui-state~="${e}"]`,`:where([data-headlessui-state~="${e}"]) &`]),t(`${s}-not-${e}`,[`&[data-headlessui-state]:not([data-headlessui-state~="${e}"])`,`:where([data-headlessui-state]:not([data-headlessui-state~="${e}"])) &:not([data-headlessui-state])`]);t(`${s}-focus-visible`,":where([data-headlessui-focus-visible]) &:focus"),t(`${s}-not-focus-visible`,"&:focus:where(:not([data-headlessui-focus-visible] &))")});export{o as default};