@lynx-js/tailwind-preset-canary 0.1.0 → 0.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/CHANGELOG.md +6 -0
- package/dist/core.d.ts +25 -0
- package/dist/helpers.d.ts +31 -0
- package/dist/lynx.cjs +809 -0
- package/dist/lynx.d.ts +15 -0
- package/dist/lynx.js +783 -0
- package/dist/plugins/lynx/alignContent.d.ts +2 -0
- package/dist/plugins/lynx/backgroundClip.d.ts +2 -0
- package/dist/plugins/lynx/boxShadow.d.ts +2 -0
- package/dist/plugins/lynx/defaults.d.ts +2 -0
- package/dist/plugins/lynx/direction.d.ts +2 -0
- package/dist/plugins/lynx/display.d.ts +2 -0
- package/dist/plugins/lynx/gridColumn.d.ts +2 -0
- package/dist/plugins/lynx/gridRow.d.ts +2 -0
- package/dist/plugins/lynx/index.d.ts +23 -0
- package/dist/plugins/lynx/inset.d.ts +2 -0
- package/dist/plugins/lynx/justifyContent.d.ts +2 -0
- package/dist/plugins/lynx/overflow.d.ts +2 -0
- package/dist/plugins/lynx/perspective.d.ts +2 -0
- package/dist/plugins/lynx/position.d.ts +2 -0
- package/dist/plugins/lynx/rotate.d.ts +5 -0
- package/dist/plugins/lynx/scale.d.ts +2 -0
- package/dist/plugins/lynx/skew.d.ts +2 -0
- package/dist/plugins/lynx/textAlign.d.ts +2 -0
- package/dist/plugins/lynx/textDecoration.d.ts +2 -0
- package/dist/plugins/lynx/transform.d.ts +6 -0
- package/dist/plugins/lynx/translate.d.ts +5 -0
- package/dist/plugins/lynx/visibility.d.ts +2 -0
- package/dist/plugins/lynx/whitespace.d.ts +2 -0
- package/dist/plugins/lynx/wordBreak.d.ts +2 -0
- package/dist/theme.d.ts +2 -0
- package/dist/types/plugin-types.d.ts +50 -0
- package/dist/types/tailwind-types.d.ts +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/core.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { Plugin } from './helpers.js';
|
|
2
|
+
import * as pluginModules from './plugins/lynx/index.js';
|
|
3
|
+
import type { CorePluginsConfig } from './types/tailwind-types.js';
|
|
4
|
+
export type LynxPluginName = keyof typeof pluginModules;
|
|
5
|
+
export declare const DEFAULT_CORE_PLUGINS: CorePluginsConfig;
|
|
6
|
+
export declare const LYNX_PLUGIN_MAP: Record<LynxPluginName, Plugin>;
|
|
7
|
+
export declare const REPLACEABLE_PLUGINS: readonly LynxPluginName[];
|
|
8
|
+
export type LynxPluginsOption = boolean | LynxPluginName[] | Partial<Record<LynxPluginName, boolean>>;
|
|
9
|
+
export declare function toEnabledSet(opt?: LynxPluginsOption): Set<LynxPluginName>;
|
|
10
|
+
export declare const getReplaceablePlugins: () => readonly LynxPluginName[];
|
|
11
|
+
export declare const isPluginReplaceable: (p: string) => p is LynxPluginName;
|
|
12
|
+
/** svg-related plugins */
|
|
13
|
+
/** filter-related plugins, only gradyscale and blur are supported*/
|
|
14
|
+
/** backdrop-related plugins */
|
|
15
|
+
/** deprecated outline-related plugins */
|
|
16
|
+
/** non-supported scroll-related plugins */
|
|
17
|
+
/** interactivity related plugins */
|
|
18
|
+
/** layout and box model related plugins */
|
|
19
|
+
/** table & list related plugins */
|
|
20
|
+
/** form appearance related plugins */
|
|
21
|
+
/** background and effects related plugins */
|
|
22
|
+
/** sizing and positioning related plugins */
|
|
23
|
+
/** break control related plugins */
|
|
24
|
+
/** decoration and compositing related plugins */
|
|
25
|
+
/** typography and text styling related plugins */
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { formatBoxShadowValue, parseBoxShadowValue } from 'tailwindcss/lib/util/parseBoxShadowValue.js';
|
|
2
|
+
import type { ShadowPart } from 'tailwindcss/lib/util/parseBoxShadowValue.js';
|
|
3
|
+
import type { ThemeKey, ValueTransformer } from 'tailwindcss/lib/util/transformThemeValue.js';
|
|
4
|
+
import type { Bound, BoundedPluginCreator, PluginFn, UtilityPluginOptions, UtilityVariations } from './types/plugin-types.js';
|
|
5
|
+
import type { Config, Plugin, PluginCreator } from './types/tailwind-types.js';
|
|
6
|
+
/**
|
|
7
|
+
* Wraps a Tailwind PluginCreator and auto-binds all function properties of the API.
|
|
8
|
+
*/
|
|
9
|
+
declare function createPlugin(fn: BoundedPluginCreator, cfg?: Partial<Config>): {
|
|
10
|
+
handler: PluginCreator;
|
|
11
|
+
config?: Partial<Config> | undefined;
|
|
12
|
+
};
|
|
13
|
+
declare function createPluginWithName(name: string, fn: BoundedPluginCreator, cfg?: Partial<Config>): {
|
|
14
|
+
handler: PluginCreator;
|
|
15
|
+
config?: Partial<Config> | undefined;
|
|
16
|
+
};
|
|
17
|
+
export declare const plugin: PluginFn;
|
|
18
|
+
/**
|
|
19
|
+
* Auto-binds all function-valued properties to the original object.
|
|
20
|
+
*/
|
|
21
|
+
declare function autoBind<T extends object>(obj: T): Bound<T>;
|
|
22
|
+
/**
|
|
23
|
+
* A type-safe re-export of Tailwind's internal createUtilityPlugin.
|
|
24
|
+
* For internal use in Lynx plugin system.
|
|
25
|
+
*/
|
|
26
|
+
declare function createUtilityPlugin(themeKey: string, utilityVariations?: UtilityVariations, options?: UtilityPluginOptions): PluginCreator;
|
|
27
|
+
export { createUtilityPlugin, createPlugin, createPluginWithName, autoBind };
|
|
28
|
+
export type { Plugin };
|
|
29
|
+
export declare const transformThemeValue: (key: ThemeKey) => ValueTransformer;
|
|
30
|
+
export { parseBoxShadowValue, formatBoxShadowValue };
|
|
31
|
+
export type { ShadowPart };
|