simplestyle-js 5.3.1-beta.0 → 5.3.1-beta.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.
@@ -11,13 +11,14 @@ Object.defineProperty(exports, "makeCssFuncs", {
11
11
  const _makeStyles = require("..\makeStyles.cjs");
12
12
  const _SimpleStyleProvider = require("..\SimpleStyleProvider.cjs");
13
13
  const _simpleStyleRegistry = require("..\simpleStyleRegistry.cjs");
14
- const makeCssFuncs = (opts)=>{
14
+ const makeCssFuncs = (...args)=>{
15
+ const [opts, ...rest] = args;
15
16
  const { registry: providedRegistry } = opts;
16
17
  const registry = providedRegistry ?? new _simpleStyleRegistry.SimpleStyleRegistry();
17
18
  const funcs = (0, _makeStyles.makeCssFuncs)({
18
19
  ...opts,
19
20
  registry
20
- });
21
+ }, ...rest);
21
22
  return {
22
23
  ...funcs,
23
24
  SimpleStyleProvider: (0, _SimpleStyleProvider.makeSimpleStyleProvider)(registry)
@@ -1,2 +1,39 @@
1
1
  import { makeCssFuncs as _makeCssFuncs } from '../makeStyles.js';
2
- export declare const makeCssFuncs: typeof _makeCssFuncs;
2
+ import { SimpleStyleRegistry } from '../simpleStyleRegistry.js';
3
+ export declare const makeCssFuncs: (...args: Parameters<typeof _makeCssFuncs>) => {
4
+ SimpleStyleProvider: ({ children }: import("react").PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
5
+ createStyles: <T extends import("../types.js").SimpleStyleRules, K extends keyof T, O extends Record<K, string>>(ruleId: string, rulesFnc: (vars: object) => T, overrides?: Partial<{
6
+ flush: boolean;
7
+ insertAfter?: HTMLElement;
8
+ insertBefore?: HTMLElement;
9
+ registry?: SimpleStyleRegistry;
10
+ }> | undefined) => {
11
+ classes: O;
12
+ stylesheet: string;
13
+ updateSheet: <T2 extends import("../types.js").SimpleStyleRules>(updatedRulesFnc: () => Partial<T2>) => {
14
+ classes: Record<string | number | keyof T2, string>;
15
+ stylesheet: string;
16
+ } | null;
17
+ };
18
+ imports: (ruleId: string, rulesFnc: (vars: object) => `@import ${string}`[], overrides?: Partial<{
19
+ flush: boolean;
20
+ insertAfter?: HTMLElement;
21
+ insertBefore?: HTMLElement;
22
+ registry?: SimpleStyleRegistry;
23
+ }> | undefined) => void;
24
+ keyframes: <T extends Record<string, import("csstype").Properties>>(ruleId: string, rulesFnc: (vars: object) => T, overrides?: Partial<{
25
+ flush: boolean;
26
+ insertAfter?: HTMLElement;
27
+ insertBefore?: HTMLElement;
28
+ registry?: SimpleStyleRegistry;
29
+ }> | undefined) => {
30
+ keyframe: string;
31
+ stylesheet: string;
32
+ };
33
+ rawStyles: <T extends import("../types.js").SimpleStyleRules>(ruleId: string, rulesFnc: (vars: object) => T, overrides?: Partial<{
34
+ flush: boolean;
35
+ insertAfter?: HTMLElement;
36
+ insertBefore?: HTMLElement;
37
+ registry?: SimpleStyleRegistry;
38
+ }> | undefined) => string;
39
+ };
@@ -11,13 +11,14 @@ Object.defineProperty(exports, "makeCssFuncs", {
11
11
  const _makeStyles = require("..\makeStyles.cjs");
12
12
  const _SimpleStyleProvider = require("..\SimpleStyleProvider.cjs");
13
13
  const _simpleStyleRegistry = require("..\simpleStyleRegistry.cjs");
14
- const makeCssFuncs = (opts)=>{
14
+ const makeCssFuncs = (...args)=>{
15
+ const [opts, ...rest] = args;
15
16
  const { registry: providedRegistry } = opts;
16
17
  const registry = providedRegistry ?? new _simpleStyleRegistry.SimpleStyleRegistry();
17
18
  const funcs = (0, _makeStyles.makeCssFuncs)({
18
19
  ...opts,
19
20
  registry
20
- });
21
+ }, ...rest);
21
22
  return {
22
23
  ...funcs,
23
24
  SimpleStyleProvider: (0, _SimpleStyleProvider.makeSimpleStyleProvider)(registry)
@@ -1,2 +1,39 @@
1
1
  import { makeCssFuncs as _makeCssFuncs } from '../makeStyles.js';
2
- export declare const makeCssFuncs: typeof _makeCssFuncs;
2
+ import { SimpleStyleRegistry } from '../simpleStyleRegistry.js';
3
+ export declare const makeCssFuncs: (...args: Parameters<typeof _makeCssFuncs>) => {
4
+ SimpleStyleProvider: ({ children }: import("react").PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
5
+ createStyles: <T extends import("../types.js").SimpleStyleRules, K extends keyof T, O extends Record<K, string>>(ruleId: string, rulesFnc: (vars: object) => T, overrides?: Partial<{
6
+ flush: boolean;
7
+ insertAfter?: HTMLElement;
8
+ insertBefore?: HTMLElement;
9
+ registry?: SimpleStyleRegistry;
10
+ }> | undefined) => {
11
+ classes: O;
12
+ stylesheet: string;
13
+ updateSheet: <T2 extends import("../types.js").SimpleStyleRules>(updatedRulesFnc: () => Partial<T2>) => {
14
+ classes: Record<string | number | keyof T2, string>;
15
+ stylesheet: string;
16
+ } | null;
17
+ };
18
+ imports: (ruleId: string, rulesFnc: (vars: object) => `@import ${string}`[], overrides?: Partial<{
19
+ flush: boolean;
20
+ insertAfter?: HTMLElement;
21
+ insertBefore?: HTMLElement;
22
+ registry?: SimpleStyleRegistry;
23
+ }> | undefined) => void;
24
+ keyframes: <T extends Record<string, import("csstype").Properties>>(ruleId: string, rulesFnc: (vars: object) => T, overrides?: Partial<{
25
+ flush: boolean;
26
+ insertAfter?: HTMLElement;
27
+ insertBefore?: HTMLElement;
28
+ registry?: SimpleStyleRegistry;
29
+ }> | undefined) => {
30
+ keyframe: string;
31
+ stylesheet: string;
32
+ };
33
+ rawStyles: <T extends import("../types.js").SimpleStyleRules>(ruleId: string, rulesFnc: (vars: object) => T, overrides?: Partial<{
34
+ flush: boolean;
35
+ insertAfter?: HTMLElement;
36
+ insertBefore?: HTMLElement;
37
+ registry?: SimpleStyleRegistry;
38
+ }> | undefined) => string;
39
+ };
@@ -1,2 +1,39 @@
1
1
  import { makeCssFuncs as _makeCssFuncs } from '../makeStyles.js';
2
- export declare const makeCssFuncs: typeof _makeCssFuncs;
2
+ import { SimpleStyleRegistry } from '../simpleStyleRegistry.js';
3
+ export declare const makeCssFuncs: (...args: Parameters<typeof _makeCssFuncs>) => {
4
+ SimpleStyleProvider: ({ children }: import("react").PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
5
+ createStyles: <T extends import("../types.js").SimpleStyleRules, K extends keyof T, O extends Record<K, string>>(ruleId: string, rulesFnc: (vars: object) => T, overrides?: Partial<{
6
+ flush: boolean;
7
+ insertAfter?: HTMLElement;
8
+ insertBefore?: HTMLElement;
9
+ registry?: SimpleStyleRegistry;
10
+ }> | undefined) => {
11
+ classes: O;
12
+ stylesheet: string;
13
+ updateSheet: <T2 extends import("../types.js").SimpleStyleRules>(updatedRulesFnc: () => Partial<T2>) => {
14
+ classes: Record<string | number | keyof T2, string>;
15
+ stylesheet: string;
16
+ } | null;
17
+ };
18
+ imports: (ruleId: string, rulesFnc: (vars: object) => `@import ${string}`[], overrides?: Partial<{
19
+ flush: boolean;
20
+ insertAfter?: HTMLElement;
21
+ insertBefore?: HTMLElement;
22
+ registry?: SimpleStyleRegistry;
23
+ }> | undefined) => void;
24
+ keyframes: <T extends Record<string, import("csstype").Properties>>(ruleId: string, rulesFnc: (vars: object) => T, overrides?: Partial<{
25
+ flush: boolean;
26
+ insertAfter?: HTMLElement;
27
+ insertBefore?: HTMLElement;
28
+ registry?: SimpleStyleRegistry;
29
+ }> | undefined) => {
30
+ keyframe: string;
31
+ stylesheet: string;
32
+ };
33
+ rawStyles: <T extends import("../types.js").SimpleStyleRules>(ruleId: string, rulesFnc: (vars: object) => T, overrides?: Partial<{
34
+ flush: boolean;
35
+ insertAfter?: HTMLElement;
36
+ insertBefore?: HTMLElement;
37
+ registry?: SimpleStyleRegistry;
38
+ }> | undefined) => string;
39
+ };
@@ -1,13 +1,14 @@
1
1
  import { makeCssFuncs as _makeCssFuncs } from '..\makeStyles.mjs';
2
2
  import { makeSimpleStyleProvider } from '..\SimpleStyleProvider.mjs';
3
3
  import { SimpleStyleRegistry } from '..\simpleStyleRegistry.mjs';
4
- export const makeCssFuncs = (opts)=>{
4
+ export const makeCssFuncs = (...args)=>{
5
+ const [opts, ...rest] = args;
5
6
  const { registry: providedRegistry } = opts;
6
7
  const registry = providedRegistry ?? new SimpleStyleRegistry();
7
8
  const funcs = _makeCssFuncs({
8
9
  ...opts,
9
10
  registry
10
- });
11
+ }, ...rest);
11
12
  return {
12
13
  ...funcs,
13
14
  SimpleStyleProvider: makeSimpleStyleProvider(registry)
@@ -1,2 +1,39 @@
1
1
  import { makeCssFuncs as _makeCssFuncs } from '../makeStyles.js';
2
- export declare const makeCssFuncs: typeof _makeCssFuncs;
2
+ import { SimpleStyleRegistry } from '../simpleStyleRegistry.js';
3
+ export declare const makeCssFuncs: (...args: Parameters<typeof _makeCssFuncs>) => {
4
+ SimpleStyleProvider: ({ children }: import("react").PropsWithChildren) => import("react/jsx-runtime").JSX.Element;
5
+ createStyles: <T extends import("../types.js").SimpleStyleRules, K extends keyof T, O extends Record<K, string>>(ruleId: string, rulesFnc: (vars: object) => T, overrides?: Partial<{
6
+ flush: boolean;
7
+ insertAfter?: HTMLElement;
8
+ insertBefore?: HTMLElement;
9
+ registry?: SimpleStyleRegistry;
10
+ }> | undefined) => {
11
+ classes: O;
12
+ stylesheet: string;
13
+ updateSheet: <T2 extends import("../types.js").SimpleStyleRules>(updatedRulesFnc: () => Partial<T2>) => {
14
+ classes: Record<string | number | keyof T2, string>;
15
+ stylesheet: string;
16
+ } | null;
17
+ };
18
+ imports: (ruleId: string, rulesFnc: (vars: object) => `@import ${string}`[], overrides?: Partial<{
19
+ flush: boolean;
20
+ insertAfter?: HTMLElement;
21
+ insertBefore?: HTMLElement;
22
+ registry?: SimpleStyleRegistry;
23
+ }> | undefined) => void;
24
+ keyframes: <T extends Record<string, import("csstype").Properties>>(ruleId: string, rulesFnc: (vars: object) => T, overrides?: Partial<{
25
+ flush: boolean;
26
+ insertAfter?: HTMLElement;
27
+ insertBefore?: HTMLElement;
28
+ registry?: SimpleStyleRegistry;
29
+ }> | undefined) => {
30
+ keyframe: string;
31
+ stylesheet: string;
32
+ };
33
+ rawStyles: <T extends import("../types.js").SimpleStyleRules>(ruleId: string, rulesFnc: (vars: object) => T, overrides?: Partial<{
34
+ flush: boolean;
35
+ insertAfter?: HTMLElement;
36
+ insertBefore?: HTMLElement;
37
+ registry?: SimpleStyleRegistry;
38
+ }> | undefined) => string;
39
+ };
@@ -1,13 +1,14 @@
1
1
  import { makeCssFuncs as _makeCssFuncs } from '..\makeStyles.mjs';
2
2
  import { makeSimpleStyleProvider } from '..\SimpleStyleProvider.mjs';
3
3
  import { SimpleStyleRegistry } from '..\simpleStyleRegistry.mjs';
4
- export const makeCssFuncs = (opts)=>{
4
+ export const makeCssFuncs = (...args)=>{
5
+ const [opts, ...rest] = args;
5
6
  const { registry: providedRegistry } = opts;
6
7
  const registry = providedRegistry ?? new SimpleStyleRegistry();
7
8
  const funcs = _makeCssFuncs({
8
9
  ...opts,
9
10
  registry
10
- });
11
+ }, ...rest);
11
12
  return {
12
13
  ...funcs,
13
14
  SimpleStyleProvider: makeSimpleStyleProvider(registry)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "simplestyle-js",
3
- "version": "5.3.1-beta.0",
3
+ "version": "5.3.1-beta.1",
4
4
  "description": "An incredibly straightforward and simple CSS-in-JS solution with zero runtime dependencies, and out-of-the-box TypeScript support",
5
5
  "type": "module",
6
6
  "repository": {