@kirill.konshin/tailwind 0.0.1

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/.ctirc ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "addNewline": true,
3
+ "fileExcludePatterns": [
4
+ "*.stories.*",
5
+ "*.test.*",
6
+ "*.fixture.*"
7
+ ],
8
+ "verbose": false,
9
+ "withoutBackupFile": true,
10
+ "withoutComment": true
11
+ }
@@ -0,0 +1,14 @@
1
+ vite v7.0.6 building SSR bundle for production...
2
+ create succeeded: /home/runner/work/utils/utils/packages/tailwind/src
3
+ transforming...
4
+ ✓ 3 modules transformed.
5
+ rendering chunks...
6
+
7
+ [vite:dts] Start generate declaration files...
8
+ dist/index.js 0.18 kB │ map: 0.09 kB
9
+ dist/fullpage.js 0.32 kB │ map: 0.63 kB
10
+ dist/responsiveHelper.js 0.87 kB │ map: 1.20 kB
11
+ [vite:dts] Declaration files built in 1381ms.
12
+
13
+ ✓ built in 2.02s
14
+ Updated package.json with exports
package/README.md ADDED
@@ -0,0 +1,8 @@
1
+ # Usage
2
+
3
+ https://tailwindcss.com/docs/detecting-classes-in-source-files#explicitly-registering-sources
4
+
5
+ ```css
6
+ @import 'tailwindcss';
7
+ @source "../node_modules/@kirill.konshin/utils/tailwind";
8
+ ```
@@ -0,0 +1,7 @@
1
+ import { FC, RefObject } from 'react';
2
+ export declare const Fullpage: FC<{
3
+ ref: RefObject<HTMLDivElement>;
4
+ className: string;
5
+ children: any;
6
+ }>;
7
+ //# sourceMappingURL=fullpage.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fullpage.d.ts","sourceRoot":"","sources":["../src/fullpage.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAE7C,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC;IAAE,GAAG,EAAE,SAAS,CAAC,cAAc,CAAC,CAAC;IAAC,SAAS,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,GAAG,CAAA;CAAE,CAS7F,CAAC"}
@@ -0,0 +1,11 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ const Fullpage = ({
3
+ ref,
4
+ className = "",
5
+ children,
6
+ ...props
7
+ }) => /* @__PURE__ */ jsx("div", { ref, ...props, className: `container h-screen flex flex-col justify-center items-center ${className}`, children });
8
+ export {
9
+ Fullpage
10
+ };
11
+ //# sourceMappingURL=fullpage.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"fullpage.js","sources":["../src/fullpage.tsx"],"sourcesContent":["import React, { FC, RefObject } from 'react';\n\nexport const Fullpage: FC<{ ref: RefObject<HTMLDivElement>; className: string; children: any }> = ({\n ref,\n className = '',\n children,\n ...props\n}) => (\n <div ref={ref} {...props} className={`container h-screen flex flex-col justify-center items-center ${className}`}>\n {children}\n </div>\n);\n"],"names":[],"mappings":";AAEO,MAAM,WAAqF,CAAC;AAAA,EAC/F;AAAA,EACA,YAAY;AAAA,EACZ;AAAA,EACA,GAAG;AACP,MACI,oBAAC,SAAI,KAAW,GAAG,OAAO,WAAW,gEAAgE,SAAS,IACzG,SAAA,CACL;"}
@@ -0,0 +1,3 @@
1
+ export * from './fullpage';
2
+ export * from './responsiveHelper';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC"}
package/dist/index.js ADDED
@@ -0,0 +1,7 @@
1
+ import { Fullpage } from "./fullpage.js";
2
+ import { ResponsiveHelperTW } from "./responsiveHelper.js";
3
+ export {
4
+ Fullpage,
5
+ ResponsiveHelperTW
6
+ };
7
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
@@ -0,0 +1,3 @@
1
+ import { FC } from 'react';
2
+ export declare const ResponsiveHelperTW: FC<any>;
3
+ //# sourceMappingURL=responsiveHelper.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsiveHelper.d.ts","sourceRoot":"","sources":["../src/responsiveHelper.tsx"],"names":[],"mappings":"AAEA,OAAc,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAElC,eAAO,MAAM,kBAAkB,EAAE,EAAE,CAAC,GAAG,CAWtC,CAAC"}
@@ -0,0 +1,16 @@
1
+ "use client";
2
+ import { jsxs, jsx } from "react/jsx-runtime";
3
+ const ResponsiveHelperTW = function ResponsiveHelperTW2() {
4
+ return /* @__PURE__ */ jsxs("span", { className: "fixed bottom-0 right-2 z-30 leading-none text-xs", children: [
5
+ /* @__PURE__ */ jsx("small", { className: "hidden xs:max-sm:block", children: "XS" }),
6
+ /* @__PURE__ */ jsx("small", { className: "hidden sm:max-md:block", children: "SM" }),
7
+ /* @__PURE__ */ jsx("small", { className: "hidden md:max-lg:block", children: "MD" }),
8
+ /* @__PURE__ */ jsx("small", { className: "hidden lg:max-xl:block", children: "LG" }),
9
+ /* @__PURE__ */ jsx("small", { className: "hidden xl:max-2xl:block", children: "XL" }),
10
+ /* @__PURE__ */ jsx("small", { className: "hidden 2xl:block", children: "XXL" })
11
+ ] });
12
+ };
13
+ export {
14
+ ResponsiveHelperTW
15
+ };
16
+ //# sourceMappingURL=responsiveHelper.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"responsiveHelper.js","sources":["../src/responsiveHelper.tsx"],"sourcesContent":["'use client';\n\nimport React, { FC } from 'react';\n\nexport const ResponsiveHelperTW: FC<any> = function ResponsiveHelperTW() {\n return (\n <span className=\"fixed bottom-0 right-2 z-30 leading-none text-xs\">\n <small className=\"hidden xs:max-sm:block\">XS</small>\n <small className=\"hidden sm:max-md:block\">SM</small>\n <small className=\"hidden md:max-lg:block\">MD</small>\n <small className=\"hidden lg:max-xl:block\">LG</small>\n <small className=\"hidden xl:max-2xl:block\">XL</small>\n <small className=\"hidden 2xl:block\">XXL</small>\n </span>\n );\n};\n"],"names":["ResponsiveHelperTW"],"mappings":";;AAIO,MAAM,qBAA8B,SAASA,sBAAqB;AACrE,SACI,qBAAC,QAAA,EAAK,WAAU,oDACZ,UAAA;AAAA,IAAA,oBAAC,SAAA,EAAM,WAAU,0BAAyB,UAAA,MAAE;AAAA,IAC5C,oBAAC,SAAA,EAAM,WAAU,0BAAyB,UAAA,MAAE;AAAA,IAC5C,oBAAC,SAAA,EAAM,WAAU,0BAAyB,UAAA,MAAE;AAAA,IAC5C,oBAAC,SAAA,EAAM,WAAU,0BAAyB,UAAA,MAAE;AAAA,IAC5C,oBAAC,SAAA,EAAM,WAAU,2BAA0B,UAAA,MAAE;AAAA,IAC7C,oBAAC,SAAA,EAAM,WAAU,oBAAmB,UAAA,MAAA,CAAG;AAAA,EAAA,GAC3C;AAER;"}
package/package.json ADDED
@@ -0,0 +1,54 @@
1
+ {
2
+ "name": "@kirill.konshin/tailwind",
3
+ "description": "Utilities",
4
+ "version": "0.0.1",
5
+ "type": "module",
6
+ "scripts": {
7
+ "----- BUILD -----": "",
8
+ "clean": "rm -rf dist .tscache tsconfig.tsbuildinfo",
9
+ "build": "vite build",
10
+ "build:index": "cti create ./src",
11
+ "build:check-types": "attw --pack .",
12
+ "start": "yarn build --watch",
13
+ "wait": "wait-on ./dist/index.js",
14
+ "----- TEST -----": "",
15
+ "test:disabled": "vitest run --coverage",
16
+ "test:watch": "vitest watch --coverage",
17
+ "----- STORYBOOK -----": "",
18
+ "storybook:start": "storybook dev -p 6006",
19
+ "storybook:build": "storybook build"
20
+ },
21
+ "devDependencies": {
22
+ "@kirill.konshin/utils-private": "*",
23
+ "react": "^19.1.1",
24
+ "tailwindcss": "^4.1.11"
25
+ },
26
+ "peerDependencies": {
27
+ "react": "^19",
28
+ "tailwindcss": "^4"
29
+ },
30
+ "publishConfig": {
31
+ "access": "public"
32
+ },
33
+ "author": "Kirill Konshin <kirill@konshin.org> (https://konshin.org)",
34
+ "license": "MIT",
35
+ "main": "./dist/index.js",
36
+ "module": "./dist/index.js",
37
+ "types": "./dist/index.d.ts",
38
+ "exports": {
39
+ ".": {
40
+ "import": {
41
+ "import": "./dist/index.js",
42
+ "types": "./dist/index.d.ts"
43
+ }
44
+ }
45
+ },
46
+ "peerDependenciesMeta": {
47
+ "react": {
48
+ "optional": true
49
+ },
50
+ "tailwindcss": {
51
+ "optional": true
52
+ }
53
+ }
54
+ }
@@ -0,0 +1,12 @@
1
+ import React, { FC, RefObject } from 'react';
2
+
3
+ export const Fullpage: FC<{ ref: RefObject<HTMLDivElement>; className: string; children: any }> = ({
4
+ ref,
5
+ className = '',
6
+ children,
7
+ ...props
8
+ }) => (
9
+ <div ref={ref} {...props} className={`container h-screen flex flex-col justify-center items-center ${className}`}>
10
+ {children}
11
+ </div>
12
+ );
package/src/index.ts ADDED
@@ -0,0 +1,2 @@
1
+ export * from './fullpage';
2
+ export * from './responsiveHelper';
@@ -0,0 +1,16 @@
1
+ 'use client';
2
+
3
+ import React, { FC } from 'react';
4
+
5
+ export const ResponsiveHelperTW: FC<any> = function ResponsiveHelperTW() {
6
+ return (
7
+ <span className="fixed bottom-0 right-2 z-30 leading-none text-xs">
8
+ <small className="hidden xs:max-sm:block">XS</small>
9
+ <small className="hidden sm:max-md:block">SM</small>
10
+ <small className="hidden md:max-lg:block">MD</small>
11
+ <small className="hidden lg:max-xl:block">LG</small>
12
+ <small className="hidden xl:max-2xl:block">XL</small>
13
+ <small className="hidden 2xl:block">XXL</small>
14
+ </span>
15
+ );
16
+ };
package/tsconfig.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "extends": "../utils-private/tsconfig.json",
3
+ "compilerOptions": {
4
+ "rootDir": "src",
5
+ "outDir": "dist",
6
+ "declarationDir": "dist"
7
+ },
8
+ "include": ["src"],
9
+ "exclude": []
10
+ }
package/turbo.json ADDED
@@ -0,0 +1,10 @@
1
+ {
2
+ "$schema": "https://turbo.build/schema.json",
3
+ "extends": ["//"],
4
+ "tasks": {
5
+ "build": {
6
+ "dependsOn": ["^build"],
7
+ "outputs": ["src/**/*/index.ts", "package.json", "dist/**/*"]
8
+ }
9
+ }
10
+ }
package/vite.config.ts ADDED
@@ -0,0 +1,2 @@
1
+ import config from '../utils-private/vite.config';
2
+ export default config;