@plumeria/core 7.2.0 → 7.2.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/dist/css.d.ts CHANGED
@@ -8,13 +8,13 @@ export type viewTransition = typeof viewTransition;
8
8
  export type variants = typeof variants;
9
9
  export type marker = typeof marker;
10
10
  export type extended = typeof extended;
11
- export declare function create<const T extends Record<string, CSSProperties>>(_rule: CreateStyleType<T>): ReturnType<T>;
12
- export declare function props(..._rules: (false | CSSProperties | null | undefined)[]): string;
13
- export declare function createTheme<const T extends CreateTheme>(_rule: T): ReturnVariableType<T>;
14
- export declare function createStatic<const T extends CreateStatic>(_rule: T): T;
15
- export declare function keyframes(_rule: Keyframes): string;
16
- export declare function viewTransition(_rule: ViewTransition): string;
17
- export declare function variants<T extends Variant>(_rule: T): (_props: { [K in keyof T]?: keyof T[K]; }) => CSSProperties;
18
- export declare function marker(_id: string, _pseudo: string): CSSProperties;
19
- export declare function extended(_id: string, _pseudo: string): ContainerStyleQuery;
11
+ export declare const create: <const T extends Record<string, CSSProperties>>(_rule: CreateStyleType<T>) => ReturnType<T>;
12
+ export declare const props: (..._rules: (false | CSSProperties | null | undefined)[]) => string;
13
+ export declare const createTheme: <const T extends CreateTheme>(_rule: T) => ReturnVariableType<T>;
14
+ export declare const createStatic: <const T extends CreateStatic>(_rule: T) => T;
15
+ export declare const keyframes: (_rule: Keyframes) => string;
16
+ export declare const viewTransition: (_rule: ViewTransition) => string;
17
+ export declare const variants: <T extends Variant>(_rule: T) => (_props: { [K in keyof T]?: keyof T[K]; }) => CSSProperties;
18
+ export declare const marker: (_id: string, _pseudo: string) => CSSProperties;
19
+ export declare const extended: (_id: string, _pseudo: string) => ContainerStyleQuery;
20
20
  export type { CreateStyle, CSSProperties } from './types';
package/dist/css.js CHANGED
@@ -1,30 +1,12 @@
1
- const errorForFn = () => new Error('Runtime is not supported. Configure the bundler plugin.');
2
- export function create(_rule) {
3
- throw errorForFn();
4
- }
5
- export function props(..._rules) {
6
- throw errorForFn();
7
- }
8
- export function createTheme(_rule) {
9
- throw errorForFn();
10
- }
11
- export function createStatic(_rule) {
12
- throw errorForFn();
13
- }
14
- export function keyframes(_rule) {
15
- throw errorForFn();
16
- }
17
- export function viewTransition(_rule) {
18
- throw errorForFn();
19
- }
20
- export function variants(_rule) {
21
- return (_props) => {
22
- throw errorForFn();
23
- };
24
- }
25
- export function marker(_id, _pseudo) {
26
- throw errorForFn();
27
- }
28
- export function extended(_id, _pseudo) {
29
- throw errorForFn();
30
- }
1
+ const runtimeNotSupported = () => {
2
+ throw new Error('Runtime is not supported. Configure the bundler plugin.');
3
+ };
4
+ export const create = (_rule) => runtimeNotSupported();
5
+ export const props = (..._rules) => runtimeNotSupported();
6
+ export const createTheme = (_rule) => runtimeNotSupported();
7
+ export const createStatic = (_rule) => runtimeNotSupported();
8
+ export const keyframes = (_rule) => runtimeNotSupported();
9
+ export const viewTransition = (_rule) => runtimeNotSupported();
10
+ export const variants = (_rule) => (_props) => runtimeNotSupported();
11
+ export const marker = (_id, _pseudo) => runtimeNotSupported();
12
+ export const extended = (_id, _pseudo) => runtimeNotSupported();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plumeria/core",
3
- "version": "7.2.0",
3
+ "version": "7.2.1",
4
4
  "description": "An atomic CSS runtime designed to disappear.",
5
5
  "author": "Refirst 11",
6
6
  "license": "MIT",