@luminescent/ui 1.0.5 → 1.1.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/lib/components/bg.js +36 -0
- package/lib/components/btn.js +7 -0
- package/lib/components/card.js +7 -0
- package/lib/components/input.js +7 -0
- package/lib/components/loading.js +7 -0
- package/lib/components/pad.js +58 -0
- package/lib/index.js +8 -0
- package/lib/tsconfig.tsbuildinfo +1 -0
- package/lib-types/components/bg.d.ts +2 -0
- package/lib-types/components/btn.d.ts +2 -0
- package/lib-types/components/card.d.ts +2 -0
- package/lib-types/components/input.d.ts +2 -0
- package/lib-types/components/loading.d.ts +2 -0
- package/lib-types/components/pad.d.ts +2 -0
- package/lib-types/index.d.ts +5 -0
- package/package.json +3 -5
- package/src/components/bg.ts +0 -38
- package/src/components/btn.ts +0 -9
- package/src/components/card.ts +0 -9
- package/src/components/input.ts +0 -9
- package/src/components/loading.ts +0 -9
- package/src/components/pad.ts +0 -60
- package/src/index.ts +0 -9
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export default function ({ matchUtilities, theme }) {
|
|
2
|
+
const colors = {};
|
|
3
|
+
Object.entries(theme('colors')).forEach(([color, value]) => {
|
|
4
|
+
if (typeof value == 'string') {
|
|
5
|
+
colors[color] = color;
|
|
6
|
+
}
|
|
7
|
+
else {
|
|
8
|
+
Object.keys(value).forEach((shade) => {
|
|
9
|
+
colors[`${color}-${shade}`] = `${color}.${shade}`;
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
});
|
|
13
|
+
matchUtilities({
|
|
14
|
+
'lum-bg': (value) => {
|
|
15
|
+
var _a, _b, _c, _d, _e;
|
|
16
|
+
const color = value.split('.')[0];
|
|
17
|
+
const shades = Object.values(colors).filter((c) => {
|
|
18
|
+
return c.startsWith(color);
|
|
19
|
+
});
|
|
20
|
+
const index = shades.indexOf(value);
|
|
21
|
+
const borderColor = shades[index - 1 < 0 ? shades.length - 1 : index - 1] || shades[index + 1 > shades.length - 1 ? 0 : index + 1];
|
|
22
|
+
const textColor = shades[index - 5 < 0 ? shades.length - 1 : index - 5] || shades[index + 5 > shades.length - 1 ? 0 : index + 5];
|
|
23
|
+
return {
|
|
24
|
+
background: (_a = theme(`colors.${value}`)) !== null && _a !== void 0 ? _a : value,
|
|
25
|
+
color: (_b = theme(`colors.${textColor}`)) !== null && _b !== void 0 ? _b : 'inherit',
|
|
26
|
+
border: `1px solid ${(_d = (_c = theme(`colors.${borderColor !== null && borderColor !== void 0 ? borderColor : value}`)) !== null && _c !== void 0 ? _c : borderColor) !== null && _d !== void 0 ? _d : value}`,
|
|
27
|
+
outline: 'none',
|
|
28
|
+
'&:focus': {
|
|
29
|
+
border: `1px solid ${(_e = theme(`colors.${textColor}`)) !== null && _e !== void 0 ? _e : 'inherit'}`,
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
},
|
|
33
|
+
}, {
|
|
34
|
+
values: colors,
|
|
35
|
+
});
|
|
36
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export default function ({ addComponents }) {
|
|
2
|
+
addComponents({
|
|
3
|
+
'.lum-btn': {
|
|
4
|
+
'@apply flex items-center gap-3 motion-safe:transition ease-in-out disabled:opacity-50 hover:drop-shadow-lg motion-safe:active:scale-95 whitespace-nowrap touch-manipulation select-none text-center': {},
|
|
5
|
+
},
|
|
6
|
+
});
|
|
7
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export default function ({ addComponents }) {
|
|
2
|
+
addComponents({
|
|
3
|
+
'.lum-pad-xs': {
|
|
4
|
+
'@apply px-2.5 py-1.5': {},
|
|
5
|
+
'&.lum-pad-equal': {
|
|
6
|
+
'@apply p-1.5': {},
|
|
7
|
+
},
|
|
8
|
+
},
|
|
9
|
+
'.lum-pad-sm': {
|
|
10
|
+
'@apply px-3 py-2': {},
|
|
11
|
+
'&.lum-pad-equal': {
|
|
12
|
+
'@apply p-2': {},
|
|
13
|
+
},
|
|
14
|
+
},
|
|
15
|
+
'.lum-pad-md': {
|
|
16
|
+
'@apply px-4 py-2': {},
|
|
17
|
+
'&.lum-pad-equal': {
|
|
18
|
+
'@apply p-2': {},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
21
|
+
'.lum-pad-lg': {
|
|
22
|
+
'@apply px-7 py-4': {},
|
|
23
|
+
'&.lum-pad-equal': {
|
|
24
|
+
'@apply p-4': {},
|
|
25
|
+
},
|
|
26
|
+
},
|
|
27
|
+
'.lum-pad-xl': {
|
|
28
|
+
'@apply px-8 py-4': {},
|
|
29
|
+
'&.lum-pad-equal': {
|
|
30
|
+
'@apply p-4': {},
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
'.lum-pad-2xl': {
|
|
34
|
+
'@apply px-10 py-5': {},
|
|
35
|
+
'&.lum-pad-equal': {
|
|
36
|
+
'@apply p-5': {},
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
'.lum-pad-3xl': {
|
|
40
|
+
'@apply px-12 py-6': {},
|
|
41
|
+
'&.lum-pad-equal': {
|
|
42
|
+
'@apply p-6': {},
|
|
43
|
+
},
|
|
44
|
+
},
|
|
45
|
+
'.lum-pad-4xl': {
|
|
46
|
+
'@apply px-14 py-7': {},
|
|
47
|
+
'&.lum-pad-equal': {
|
|
48
|
+
'@apply p-7': {},
|
|
49
|
+
},
|
|
50
|
+
},
|
|
51
|
+
'.lum-pad-5xl': {
|
|
52
|
+
'@apply px-16 py-8': {},
|
|
53
|
+
'&.lum-pad-equal': {
|
|
54
|
+
'@apply p-8': {},
|
|
55
|
+
},
|
|
56
|
+
},
|
|
57
|
+
});
|
|
58
|
+
}
|
package/lib/index.js
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import plugin from 'tailwindcss/plugin';
|
|
2
|
+
import { readdirSync } from 'fs';
|
|
3
|
+
export default plugin(function (plugin) {
|
|
4
|
+
const components = readdirSync(__dirname + '/components').map((file) => file.split('.')[0]);
|
|
5
|
+
components.forEach((component) => {
|
|
6
|
+
import(`./components/${component}`).then((module) => module.default(plugin));
|
|
7
|
+
});
|
|
8
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"program":{"fileNames":["../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2019.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2016.intl.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.date.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2019.array.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2019.object.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2019.string.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2019.symbol.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2019.intl.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.date.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.promise.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.string.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.intl.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.es2020.number.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.decorators.d.ts","../../../node_modules/.pnpm/typescript@5.5.2/node_modules/typescript/lib/lib.decorators.legacy.d.ts","../../../node_modules/.pnpm/tailwindcss@3.4.4_ts-node@10.9.1_@types+node@20.14.9_typescript@5.5.2_/node_modules/tailwindcss/types/generated/corepluginlist.d.ts","../../../node_modules/.pnpm/tailwindcss@3.4.4_ts-node@10.9.1_@types+node@20.14.9_typescript@5.5.2_/node_modules/tailwindcss/types/generated/colors.d.ts","../../../node_modules/.pnpm/tailwindcss@3.4.4_ts-node@10.9.1_@types+node@20.14.9_typescript@5.5.2_/node_modules/tailwindcss/types/config.d.ts","../../../node_modules/.pnpm/tailwindcss@3.4.4_ts-node@10.9.1_@types+node@20.14.9_typescript@5.5.2_/node_modules/tailwindcss/plugin.d.ts","../src/index.ts","../src/components/bg.ts","../src/components/btn.ts","../src/components/card.ts","../src/components/input.ts","../src/components/loading.ts","../src/components/pad.ts","../../../node_modules/.pnpm/@types+eslint@8.56.10/node_modules/@types/eslint/helpers.d.ts","../../../node_modules/.pnpm/@types+estree@1.0.5/node_modules/@types/estree/index.d.ts","../../../node_modules/.pnpm/@types+json-schema@7.0.15/node_modules/@types/json-schema/index.d.ts","../../../node_modules/.pnpm/@types+eslint@8.56.10/node_modules/@types/eslint/index.d.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/http-cache-semantics/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/assert.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/assert/strict.d.ts","../../../node_modules/.pnpm/buffer@5.7.1/node_modules/buffer/index.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/header.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/readable.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/file.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/fetch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/formdata.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/connector.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-dispatcher.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/global-origin.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool-stats.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/handlers.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/balanced-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-interceptor.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-client.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-pool.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/mock-errors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/proxy-agent.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/api.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cookies.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/patch.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/filereader.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/diagnostics-channel.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/websocket.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/content-type.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/cache.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/interceptors.d.ts","../../../node_modules/.pnpm/undici-types@5.26.5/node_modules/undici-types/index.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/globals.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/async_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/buffer.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/child_process.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/cluster.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/console.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/constants.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/crypto.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/dgram.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/diagnostics_channel.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/dns.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/dns/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/domain.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/dom-events.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/events.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/fs.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/fs/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/http.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/http2.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/https.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/inspector.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/module.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/net.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/os.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/path.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/process.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/punycode.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/querystring.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/readline.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/readline/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/repl.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/sea.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/stream.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/stream/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/stream/consumers.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/stream/web.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/string_decoder.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/test.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/timers.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/timers/promises.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/tls.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/trace_events.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/tty.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/url.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/util.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/v8.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/vm.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/wasi.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/worker_threads.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/zlib.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/globals.global.d.ts","../../../node_modules/.pnpm/@types+node@20.14.9/node_modules/@types/node/index.d.ts","../node_modules/@types/normalize-package-data/index.d.ts"],"fileInfos":[{"version":"44e584d4f6444f58791784f1d530875970993129442a847597db702a073ca68c","affectsGlobalScope":true},"45b7ab580deca34ae9729e97c13cfd999df04416a79116c3bfb483804f85ded4","3facaf05f0c5fc569c5649dd359892c98a85557e3e0c847964caeb67076f4d75","9a68c0c07ae2fa71b44384a839b7b8d81662a236d4b9ac30916718f7510b1b2d","5e1c4c362065a6b95ff952c0eab010f04dcd2c3494e813b493ecfd4fcb9fc0d8","68d73b4a11549f9c0b7d352d10e91e5dca8faa3322bfb77b661839c42b1ddec7","5efce4fc3c29ea84e8928f97adec086e3dc876365e0982cc8479a07954a3efd4",{"version":"4af6b0c727b7a2896463d512fafd23634229adf69ac7c00e2ae15a09cb084fad","affectsGlobalScope":true},{"version":"6920e1448680767498a0b77c6a00a8e77d14d62c3da8967b171f1ddffa3c18e4","affectsGlobalScope":true},{"version":"dc2df20b1bcdc8c2d34af4926e2c3ab15ffe1160a63e58b7e09833f616efff44","affectsGlobalScope":true},{"version":"4443e68b35f3332f753eacc66a04ac1d2053b8b035a0e0ac1d455392b5e243b3","affectsGlobalScope":true},{"version":"bc47685641087c015972a3f072480889f0d6c65515f12bd85222f49a98952ed7","affectsGlobalScope":true},{"version":"0dc1e7ceda9b8b9b455c3a2d67b0412feab00bd2f66656cd8850e8831b08b537","affectsGlobalScope":true},{"version":"ce691fb9e5c64efb9547083e4a34091bcbe5bdb41027e310ebba8f7d96a98671","affectsGlobalScope":true},{"version":"8d697a2a929a5fcb38b7a65594020fcef05ec1630804a33748829c5ff53640d0","affectsGlobalScope":true},{"version":"4ff2a353abf8a80ee399af572debb8faab2d33ad38c4b4474cff7f26e7653b8d","affectsGlobalScope":true},{"version":"93495ff27b8746f55d19fcbcdbaccc99fd95f19d057aed1bd2c0cafe1335fbf0","affectsGlobalScope":true},{"version":"6fc23bb8c3965964be8c597310a2878b53a0306edb71d4b5a4dfe760186bcc01","affectsGlobalScope":true},{"version":"ea011c76963fb15ef1cdd7ce6a6808b46322c527de2077b6cfdf23ae6f5f9ec7","affectsGlobalScope":true},{"version":"38f0219c9e23c915ef9790ab1d680440d95419ad264816fa15009a8851e79119","affectsGlobalScope":true},{"version":"bb42a7797d996412ecdc5b2787720de477103a0b2e53058569069a0e2bae6c7e","affectsGlobalScope":true},{"version":"4738f2420687fd85629c9efb470793bb753709c2379e5f85bc1815d875ceadcd","affectsGlobalScope":true},{"version":"2f11ff796926e0832f9ae148008138ad583bd181899ab7dd768a2666700b1893","affectsGlobalScope":true},{"version":"4de680d5bb41c17f7f68e0419412ca23c98d5749dcaaea1896172f06435891fc","affectsGlobalScope":true},{"version":"9fc46429fbe091ac5ad2608c657201eb68b6f1b8341bd6d670047d32ed0a88fa","affectsGlobalScope":true},{"version":"61c37c1de663cf4171e1192466e52c7a382afa58da01b1dc75058f032ddf0839","affectsGlobalScope":true},{"version":"b541a838a13f9234aba650a825393ffc2292dc0fc87681a5d81ef0c96d281e7a","affectsGlobalScope":true},{"version":"9e9fbd7030c440b33d021da145d3232984c8bb7916f277e8ffd3dc2e3eae2bdb","affectsGlobalScope":true},{"version":"811ec78f7fefcabbda4bfa93b3eb67d9ae166ef95f9bff989d964061cbf81a0c","affectsGlobalScope":true},{"version":"717937616a17072082152a2ef351cb51f98802fb4b2fdabd32399843875974ca","affectsGlobalScope":true},{"version":"d7e7d9b7b50e5f22c915b525acc5a49a7a6584cf8f62d0569e557c5cfc4b2ac2","affectsGlobalScope":true},{"version":"71c37f4c9543f31dfced6c7840e068c5a5aacb7b89111a4364b1d5276b852557","affectsGlobalScope":true},{"version":"576711e016cf4f1804676043e6a0a5414252560eb57de9faceee34d79798c850","affectsGlobalScope":true},{"version":"89c1b1281ba7b8a96efc676b11b264de7a8374c5ea1e6617f11880a13fc56dc6","affectsGlobalScope":true},{"version":"74f7fa2d027d5b33eb0471c8e82a6c87216223181ec31247c357a3e8e2fddc5b","affectsGlobalScope":true},{"version":"ae37d6ccd1560b0203ab88d46987393adaaa78c919e51acf32fb82c86502e98c","affectsGlobalScope":true},{"version":"063600664504610fe3e99b717a1223f8b1900087fab0b4cad1496a114744f8df","affectsGlobalScope":true},{"version":"934019d7e3c81950f9a8426d093458b65d5aff2c7c1511233c0fd5b941e608ab","affectsGlobalScope":true},{"version":"bf14a426dbbf1022d11bd08d6b8e709a2e9d246f0c6c1032f3b2edb9a902adbe","affectsGlobalScope":true},{"version":"5e07ed3809d48205d5b985642a59f2eba47c402374a7cf8006b686f79efadcbd","affectsGlobalScope":true},{"version":"2b72d528b2e2fe3c57889ca7baef5e13a56c957b946906d03767c642f386bbc3","affectsGlobalScope":true},{"version":"479553e3779be7d4f68e9f40cdb82d038e5ef7592010100410723ceced22a0f7","affectsGlobalScope":true},{"version":"368af93f74c9c932edd84c58883e736c9e3d53cec1fe24c0b0ff451f529ceab1","affectsGlobalScope":true},{"version":"811c71eee4aa0ac5f7adf713323a5c41b0cf6c4e17367a34fbce379e12bbf0a4","affectsGlobalScope":true},{"version":"33358442698bb565130f52ba79bfd3d4d484ac85fe33f3cb1759c54d18201393","affectsGlobalScope":true},{"version":"782dec38049b92d4e85c1585fbea5474a219c6984a35b004963b00beb1aab538","affectsGlobalScope":true},"b558c9a18ea4e6e4157124465c3ef1063e64640da139e67be5edb22f534f2f08","01374379f82be05d25c08d2f30779fa4a4c41895a18b93b33f14aeef51768692","8e59152220eb6d209371f0c6c4347a2350d8a6be6f4821bb2de8263519c89a8f","c3916141089b022b0b5aab813af5e5159123ec7a019d057c8a41db5c6fd57401",{"version":"efc323d753a304cab2de87a61f1b7141095bca92b53a9039feb9e3af96ec3212","signature":"c36310ab1e253101592456d718a32d35ae7c68dd00bd9ddc393bf3e886e0d291"},{"version":"596f244377d81945b6bf604a9137ef4dbf6ef4b0d94aa5529a83840c5d84abc7","signature":"760d4587e3fc7d9149dd6965630bc10906cb532904b8eb6f9b0d3d5114f639f1"},{"version":"b90d2876dc75802ca268ff7e8ebcfd559f2096ce4c852a8cd124793339c8ace6","signature":"fc791871f8394b91a80919eb54f4dc1d36635a29cd7442d2e0b48b427606dae7"},{"version":"59992e51c07d566a8ff4f0425ac20ba343f4edea5752b386024f2861ca494791","signature":"fc791871f8394b91a80919eb54f4dc1d36635a29cd7442d2e0b48b427606dae7"},{"version":"a02b6c670498e5031b5dc9ef16a8440a651beb279c7fa9eb36b9fe173d980f19","signature":"fc791871f8394b91a80919eb54f4dc1d36635a29cd7442d2e0b48b427606dae7"},{"version":"850c38dc57f9f56654fe851b9c1857db0d2069770b4bf2e87d2137d36c278d7d","signature":"fc791871f8394b91a80919eb54f4dc1d36635a29cd7442d2e0b48b427606dae7"},{"version":"8b60ae98cd347508b8b06779012d1b681895b867dc642509079a776a38740192","signature":"fc791871f8394b91a80919eb54f4dc1d36635a29cd7442d2e0b48b427606dae7"},{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"ee7d8894904b465b072be0d2e4b45cf6b887cdba16a467645c4e200982ece7ea","f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","7852500a7dc3f9cb6b73d619f6e0249119211ea662fd5e16c59ee5aba3deeb80","ee7d8894904b465b072be0d2e4b45cf6b887cdba16a467645c4e200982ece7ea","d7dbe0ad36bdca8a6ecf143422a48e72cc8927bab7b23a1a2485c2f78a7022c6","f3d8c757e148ad968f0d98697987db363070abada5f503da3c06aefd9d4248c1","2db0dd3aaa2ed285950273ce96ae8a450b45423aa9da2d10e194570f1233fa6b","7394959e5a741b185456e1ef5d64599c36c60a323207450991e7a42e08911419","8e9c23ba78aabc2e0a27033f18737a6df754067731e69dc5f52823957d60a4b6","5929864ce17fba74232584d90cb721a89b7ad277220627cc97054ba15a98ea8f","7180c03fd3cb6e22f911ce9ba0f8a7008b1a6ddbe88ccf16a9c8140ef9ac1686","25c8056edf4314820382a5fdb4bb7816999acdcb929c8f75e3f39473b87e85bc","54cb85a47d760da1c13c00add10d26b5118280d44d58e6908d8e89abbd9d7725","3e4825171442666d31c845aeb47fcd34b62e14041bb353ae2b874285d78482aa","c6fd2c5a395f2432786c9cb8deb870b9b0e8ff7e22c029954fabdd692bff6195","a967bfe3ad4e62243eb604bf956101e4c740f5921277c60debaf325c1320bf88","e9775e97ac4877aebf963a0289c81abe76d1ec9a2a7778dbe637e5151f25c5f3","471e1da5a78350bc55ef8cef24eb3aca6174143c281b8b214ca2beda51f5e04a","cadc8aced301244057c4e7e73fbcae534b0f5b12a37b150d80e5a45aa4bebcbd","385aab901643aa54e1c36f5ef3107913b10d1b5bb8cbcd933d4263b80a0d7f20","9670d44354bab9d9982eca21945686b5c24a3f893db73c0dae0fd74217a4c219","db3435f3525cd785bf21ec6769bf8da7e8a776be1a99e2e7efb5f244a2ef5fee","c3b170c45fc031db31f782e612adf7314b167e60439d304b49e704010e7bafe5","40383ebef22b943d503c6ce2cb2e060282936b952a01bea5f9f493d5fb487cc7","4893a895ea92c85345017a04ed427cbd6a1710453338df26881a6019432febdd","3a84b7cb891141824bd00ef8a50b6a44596aded4075da937f180c90e362fe5f6","13f6f39e12b1518c6650bbb220c8985999020fe0f21d818e28f512b7771d00f9","9b5369969f6e7175740bf51223112ff209f94ba43ecd3bb09eefff9fd675624a","4fe9e626e7164748e8769bbf74b538e09607f07ed17c2f20af8d680ee49fc1da","24515859bc0b836719105bb6cc3d68255042a9f02a6022b3187948b204946bd2","33203609eba548914dc83ddf6cadbc0bcb6e8ef89f6d648ca0908ae887f9fcc5","0db18c6e78ea846316c012478888f33c11ffadab9efd1cc8bcc12daded7a60b6","89167d696a849fce5ca508032aabfe901c0868f833a8625d5a9c6e861ef935d2","e53a3c2a9f624d90f24bf4588aacd223e7bec1b9d0d479b68d2f4a9e6011147f","339dc5265ee5ed92e536a93a04c4ebbc2128f45eeec6ed29f379e0085283542c","9f0a92164925aa37d4a5d9dd3e0134cff8177208dba55fd2310cd74beea40ee2","8bfdb79bf1a9d435ec48d9372dc93291161f152c0865b81fc0b2694aedb4578d","2e85db9e6fd73cfa3d7f28e0ab6b55417ea18931423bd47b409a96e4a169e8e6","c46e079fe54c76f95c67fb89081b3e399da2c7d109e7dca8e4b58d83e332e605","d32275be3546f252e3ad33976caf8c5e842c09cb87d468cb40d5f4cf092d1acc","4a0c3504813a3289f7fb1115db13967c8e004aa8e4f8a9021b95285502221bd1",{"version":"e7be367719c613d580d4b27fdf8fe64c9736f48217f4b322c0d63b2971460918","affectsGlobalScope":true},"3d77c73be94570813f8cadd1f05ebc3dc5e2e4fdefe4d340ca20cd018724ee36",{"version":"392eadc2af403dd10b4debfbc655c089a7fa6a9750caeb770cfb30051e55e848","affectsGlobalScope":true},"62f1c00d3d246e0e3cf0224f91e122d560428ec1ccc36bb51d4574a84f1dbad0","53f0960fdcc53d097918adfd8861ffbe0db989c56ffc16c052197bf115da5ed6",{"version":"662163e5327f260b23ca0a1a1ad8a74078aabb587c904fcb5ef518986987eaff","affectsGlobalScope":true},"a40826e8476694e90da94aa008283a7de50d1dafd37beada623863f1901cb7fb",{"version":"c48c503c6b3f63baf18257e9a87559b5602a4e960107c762586d2a6a62b64a18","affectsGlobalScope":true},"b0c0d1d13be149f790a75b381b413490f98558649428bb916fd2d71a3f47a134","3c884d9d9ec454bdf0d5a0b8465bf8297d2caa4d853851d92cc417ac6f30b969","0364f8bb461d6e84252412d4e5590feda4eb582f77d47f7a024a7a9ff105dfdc","5433f7f77cd1fd53f45bd82445a4e437b2f6a72a32070e907530a4fea56c30c8","d0ca5d7df114035258a9d01165be309371fcccf0cccd9d57b1453204686d1ed0",{"version":"ee1ee365d88c4c6c0c0a5a5701d66ebc27ccd0bcfcfaa482c6e2e7fe7b98edf7","affectsGlobalScope":true},{"version":"9a30b7fefd7f8abbca4828d481c61c18e40fe5ff107e113b1c1fcd2c8dcf2743","affectsGlobalScope":true},"173b6275a81ebdb283b180654890f46516c21199734fed01a773b1c168b8c45c","304f66274aa8119e8d65a49b1cff84cbf803def6afe1b2cc987386e9a9890e22","1b9adafe8a7fefaeaf9099a0e06f602903f6268438147b843a33a5233ac71745","98273274f2dbb79b0b2009b20f74eca4a7146a3447c912d580cd5d2d94a7ae30","c933f7ba4b201c98b14275fd11a14abb950178afd2074703250fe3654fc10cd2","2eaa31492906bc8525aff3c3ec2236e22d90b0dfeee77089f196cd0adf0b3e3b",{"version":"ea455cc68871b049bcecd9f56d4cf27b852d6dafd5e3b54468ca87cc11604e4d","affectsGlobalScope":true},"8f5814f29dbaf8bacd1764aebdf1c8a6eb86381f6a188ddbac0fcbaab855ce52","a63d03de72adfb91777784015bd3b4125abd2f5ef867fc5a13920b5649e8f52b","d20e003f3d518a7c1f749dbe27c6ab5e3be7b3c905a48361b04a9557de4a6900",{"version":"1d4d78c8b23c9ddaaaa49485e6adc2ec01086dfe5d8d4d36ca4cdc98d2f7e74a","affectsGlobalScope":true},{"version":"44fc16356b81c0463cc7d7b2b35dcf324d8144136f5bc5ce73ced86f2b3475b5","affectsGlobalScope":true},"575fb200043b11b464db8e42cc64379c5fd322b6d787638e005b5ee98a64486d","6de2f225d942562733e231a695534b30039bdf1875b377bb7255881f0df8ede8","56249fd3ef1f6b90888e606f4ea648c43978ef43a7263aafad64f8d83cd3b8aa","139ad1dc93a503da85b7a0d5f615bddbae61ad796bc68fedd049150db67a1e26","7b166975fdbd3b37afb64707b98bca88e46577bbc6c59871f9383a7df2daacd1","9eece5e586312581ccd106d4853e861aaaa1a39f8e3ea672b8c3847eedd12f6e","81505c54d7cad0009352eaa21bd923ab7cdee7ec3405357a54d9a5da033a2084","269929a24b2816343a178008ac9ae9248304d92a8ba8e233055e0ed6dbe6ef71","93452d394fdd1dc551ec62f5042366f011a00d342d36d50793b3529bfc9bd633","3c1f19c7abcda6b3a4cf9438a15c7307a080bd3b51dfd56b198d9f86baf19447","2ee1645e0df9d84467cfe1d67b0ad3003c2f387de55874d565094464ee6f2927",{"version":"071d4b4af5755e1a081aa3b785b5526d09276af5a50e4725dea26edd4e7deb31","affectsGlobalScope":true},{"version":"9cf780e96b687e4bdfd1907ed26a688c18b89797490a00598fa8b8ab683335dd","affectsGlobalScope":true},"98e00f3613402504bc2a2c9a621800ab48e0a463d1eed062208a4ae98ad8f84c","9ae88ce9f73446c24b2d2452e993b676da1b31fca5ceb7276e7f36279f693ed1","e49d7625faff2a7842e4e7b9b197f972633fca685afcf6b4403400c97d087c36","b82c38abc53922b1b3670c3af6f333c21b735722a8f156e7d357a2da7c53a0a0",{"version":"b423f53647708043299ded4daa68d95c967a2ac30aa1437adc4442129d7d0a6c","affectsGlobalScope":true},{"version":"7245af181218216bacb01fbdf51095617a51661f20d77178c69a377e16fb69ed","affectsGlobalScope":true},"4f0fc7b7f54422bd97cfaf558ddb4bca86893839367b746a8f86b60ac7619673","4cdd8b6b51599180a387cc7c1c50f49eca5ce06595d781638fd0216520d98246","d91a7d8b5655c42986f1bdfe2105c4408f472831c8f20cf11a8c3345b6b56c8c",{"version":"8704423bf338bff381ebc951ed819935d0252d90cd6de7dffe5b0a5debb65d07","affectsGlobalScope":true},"7c6929fd7cbf38499b6a600b91c3b603d1d78395046dc3499b2b92d01418b94b",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"a42be67ed1ddaec743582f41fc219db96a1b69719fccac6d1464321178d610fc","22293bd6fa12747929f8dfca3ec1684a3fe08638aa18023dd286ab337e88a592"],"root":[[51,57]],"options":{"allowJs":true,"declaration":true,"declarationDir":"../lib-types","esModuleInterop":true,"jsx":4,"jsxImportSource":"@builder.io/qwik","module":6,"outDir":"./","skipLibCheck":true,"strict":true,"target":4},"fileIdsList":[[58,59,60],[65],[101],[102,107,136],[103,108,114,115,122,133,144],[103,104,114,122],[105,145],[106,107,115,123],[107,133,141],[108,110,114,122],[101,109],[110,111],[114],[112,114],[101,114],[114,115,116,133,144],[114,115,116,129,133,136],[99,102,149],[110,114,117,122,133,144],[114,115,117,118,122,133,141,144],[117,119,133,141,144],[65,66,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151],[114,120],[121,144,149],[110,114,122,133],[123],[124],[101,125],[122,123,126,143,149],[127],[128],[114,129,130],[129,131,145,147],[102,114,133,134,135,136],[102,133,135],[133,134],[136],[137],[101,133],[114,139,140],[139,140],[107,122,133,141],[142],[122,143],[102,117,128,144],[107,145],[133,146],[121,147],[148],[102,107,114,116,125,133,144,147,149],[133,150],[49],[47,48],[76,80,144],[76,133,144],[71],[73,76,141,144],[122,141],[152],[71,152],[73,76,122,144],[68,69,72,75,102,114,133,144],[68,74],[72,76,102,136,144,152],[102,152],[92,102,152],[70,71,152],[76],[70,71,72,73,74,75,76,77,78,80,81,82,83,84,85,86,87,88,89,90,91,93,94,95,96,97,98],[76,83,84],[74,76,84,85],[75],[68,71,76],[76,80,84,85],[80],[74,76,79,144],[68,73,74,76,80,83],[102,133],[71,76,92,102,149,152],[50,115]],"referencedMap":[[61,1],[65,2],[66,2],[101,3],[102,4],[103,5],[104,6],[105,7],[106,8],[107,9],[108,10],[109,11],[110,12],[111,12],[113,13],[112,14],[114,15],[115,16],[116,17],[100,18],[117,19],[118,20],[119,21],[152,22],[120,23],[121,24],[122,25],[123,26],[124,27],[125,28],[126,29],[127,30],[128,31],[129,32],[130,32],[131,33],[133,34],[135,35],[134,36],[136,37],[137,38],[138,39],[139,40],[140,41],[141,42],[142,43],[143,44],[144,45],[145,46],[146,47],[147,48],[148,49],[149,50],[150,51],[50,52],[49,53],[83,54],[90,55],[82,54],[97,56],[74,57],[73,58],[96,59],[91,60],[94,61],[76,62],[75,63],[71,64],[70,65],[93,66],[72,67],[77,68],[81,68],[99,69],[98,68],[85,70],[86,71],[88,72],[84,73],[87,74],[92,59],[79,75],[80,76],[89,77],[69,78],[95,79],[52,52],[53,52],[54,52],[55,52],[56,52],[57,52],[51,80]]},"version":"5.5.2"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@luminescent/ui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.1",
|
|
4
4
|
"description": "Luminescent UI library",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
|
-
"qwik": "./lib/index.js",
|
|
7
6
|
"types": "./lib-types/index.d.ts",
|
|
8
7
|
"exports": {
|
|
9
8
|
".": {
|
|
@@ -13,7 +12,8 @@
|
|
|
13
12
|
}
|
|
14
13
|
},
|
|
15
14
|
"files": [
|
|
16
|
-
"
|
|
15
|
+
"lib",
|
|
16
|
+
"lib-types"
|
|
17
17
|
],
|
|
18
18
|
"engines": {
|
|
19
19
|
"node": ">=15.0.0"
|
|
@@ -28,7 +28,6 @@
|
|
|
28
28
|
"build": "tsc",
|
|
29
29
|
"dev": "echo \"No dev script specified\" && exit 0",
|
|
30
30
|
"lint": "eslint \"src/**/*.ts*\"",
|
|
31
|
-
"release": "np",
|
|
32
31
|
"test": "echo \"No test specified\" && exit 0"
|
|
33
32
|
},
|
|
34
33
|
"devDependencies": {
|
|
@@ -38,7 +37,6 @@
|
|
|
38
37
|
"@typescript-eslint/parser": "^7.14.1",
|
|
39
38
|
"eslint": "^8.57.0",
|
|
40
39
|
"fs": "0.0.1-security",
|
|
41
|
-
"np": "^10.0.6",
|
|
42
40
|
"postcss": "^8.4.38",
|
|
43
41
|
"tailwindcss": "3.4.4"
|
|
44
42
|
}
|
package/src/components/bg.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import type { PluginAPI } from 'tailwindcss/types/config';
|
|
2
|
-
|
|
3
|
-
export default function ({ matchUtilities, theme }: PluginAPI) {
|
|
4
|
-
const colors: { [key: string]: string } = {};
|
|
5
|
-
Object.entries(theme('colors')!).forEach(([color, value]) => {
|
|
6
|
-
if (typeof value == 'string') {
|
|
7
|
-
colors[color] = color;
|
|
8
|
-
}
|
|
9
|
-
else {
|
|
10
|
-
Object.keys(value).forEach((shade) => {
|
|
11
|
-
colors[`${color}-${shade}`] = `${color}.${shade}`;
|
|
12
|
-
});
|
|
13
|
-
}
|
|
14
|
-
});
|
|
15
|
-
matchUtilities({
|
|
16
|
-
'lum-bg': (value) => {
|
|
17
|
-
const color = value.split('.')[0];
|
|
18
|
-
const shades = Object.values(colors).filter((c) => {
|
|
19
|
-
return c.startsWith(color);
|
|
20
|
-
});
|
|
21
|
-
const index = shades.indexOf(value);
|
|
22
|
-
const borderColor = shades[index - 1 < 0 ? shades.length - 1 : index - 1] || shades[index + 1 > shades.length - 1 ? 0 : index + 1];
|
|
23
|
-
const textColor = shades[index - 5 < 0 ? shades.length - 1 : index - 5] || shades[index + 5 > shades.length - 1 ? 0 : index + 5];
|
|
24
|
-
|
|
25
|
-
return {
|
|
26
|
-
background: theme(`colors.${value}`) ?? value,
|
|
27
|
-
color: theme(`colors.${textColor}`) ?? 'inherit',
|
|
28
|
-
border: `1px solid ${theme(`colors.${borderColor ?? value}`) ?? borderColor ?? value}`,
|
|
29
|
-
outline: 'none',
|
|
30
|
-
'&:focus': {
|
|
31
|
-
border: `1px solid ${theme(`colors.${textColor}`) ?? 'inherit'}`,
|
|
32
|
-
},
|
|
33
|
-
};
|
|
34
|
-
},
|
|
35
|
-
}, {
|
|
36
|
-
values: colors,
|
|
37
|
-
});
|
|
38
|
-
}
|
package/src/components/btn.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PluginAPI } from 'tailwindcss/types/config';
|
|
2
|
-
|
|
3
|
-
export default function ({ addComponents }: PluginAPI) {
|
|
4
|
-
addComponents({
|
|
5
|
-
'.lum-btn': {
|
|
6
|
-
'@apply flex items-center gap-3 motion-safe:transition ease-in-out disabled:opacity-50 hover:drop-shadow-lg motion-safe:active:scale-95 whitespace-nowrap touch-manipulation select-none text-center': {},
|
|
7
|
-
},
|
|
8
|
-
});
|
|
9
|
-
}
|
package/src/components/card.ts
DELETED
package/src/components/input.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PluginAPI } from 'tailwindcss/types/config';
|
|
2
|
-
|
|
3
|
-
export default function ({ addComponents }: PluginAPI) {
|
|
4
|
-
addComponents({
|
|
5
|
-
'.lum-input': {
|
|
6
|
-
'@apply flex motion-safe:transition ease-in-out disabled:opacity-50 hover:drop-shadow-lg whitespace-nowrap touch-manipulation select-none': {},
|
|
7
|
-
},
|
|
8
|
-
});
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import type { PluginAPI } from 'tailwindcss/types/config';
|
|
2
|
-
|
|
3
|
-
export default function ({ addComponents }: PluginAPI) {
|
|
4
|
-
addComponents({
|
|
5
|
-
'.lum-loading': {
|
|
6
|
-
'@apply animate-spin rounded-full border-transparent border-l-current border-t-current border-4': {},
|
|
7
|
-
},
|
|
8
|
-
});
|
|
9
|
-
}
|
package/src/components/pad.ts
DELETED
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import type { PluginAPI } from 'tailwindcss/types/config';
|
|
2
|
-
|
|
3
|
-
export default function ({ addComponents }: PluginAPI) {
|
|
4
|
-
addComponents({
|
|
5
|
-
'.lum-pad-xs': {
|
|
6
|
-
'@apply px-2.5 py-1.5': {},
|
|
7
|
-
'&.lum-pad-equal': {
|
|
8
|
-
'@apply p-1.5': {},
|
|
9
|
-
},
|
|
10
|
-
},
|
|
11
|
-
'.lum-pad-sm': {
|
|
12
|
-
'@apply px-3 py-2': {},
|
|
13
|
-
'&.lum-pad-equal': {
|
|
14
|
-
'@apply p-2': {},
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
'.lum-pad-md': {
|
|
18
|
-
'@apply px-4 py-2': {},
|
|
19
|
-
'&.lum-pad-equal': {
|
|
20
|
-
'@apply p-2': {},
|
|
21
|
-
},
|
|
22
|
-
},
|
|
23
|
-
'.lum-pad-lg': {
|
|
24
|
-
'@apply px-7 py-4': {},
|
|
25
|
-
'&.lum-pad-equal': {
|
|
26
|
-
'@apply p-4': {},
|
|
27
|
-
},
|
|
28
|
-
},
|
|
29
|
-
'.lum-pad-xl': {
|
|
30
|
-
'@apply px-8 py-4': {},
|
|
31
|
-
'&.lum-pad-equal': {
|
|
32
|
-
'@apply p-4': {},
|
|
33
|
-
},
|
|
34
|
-
},
|
|
35
|
-
'.lum-pad-2xl': {
|
|
36
|
-
'@apply px-10 py-5': {},
|
|
37
|
-
'&.lum-pad-equal': {
|
|
38
|
-
'@apply p-5': {},
|
|
39
|
-
},
|
|
40
|
-
},
|
|
41
|
-
'.lum-pad-3xl': {
|
|
42
|
-
'@apply px-12 py-6': {},
|
|
43
|
-
'&.lum-pad-equal': {
|
|
44
|
-
'@apply p-6': {},
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
|
-
'.lum-pad-4xl': {
|
|
48
|
-
'@apply px-14 py-7': {},
|
|
49
|
-
'&.lum-pad-equal': {
|
|
50
|
-
'@apply p-7': {},
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
'.lum-pad-5xl': {
|
|
54
|
-
'@apply px-16 py-8': {},
|
|
55
|
-
'&.lum-pad-equal': {
|
|
56
|
-
'@apply p-8': {},
|
|
57
|
-
},
|
|
58
|
-
},
|
|
59
|
-
});
|
|
60
|
-
}
|
package/src/index.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import plugin from 'tailwindcss/plugin';
|
|
2
|
-
import { readdirSync } from 'fs';
|
|
3
|
-
|
|
4
|
-
export default plugin(function (plugin) {
|
|
5
|
-
const components = readdirSync(__dirname + '/components').map((file: string) => file.split('.')[0]) as string[];
|
|
6
|
-
components.forEach((component) => {
|
|
7
|
-
import(`./components/${component}`).then((module) => module.default(plugin));
|
|
8
|
-
});
|
|
9
|
-
});
|