@pyreon/attrs 0.11.5 → 0.11.6

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.
@@ -1,6 +1,6 @@
1
- import type { AttrsComponent } from "./AttrsComponent"
2
- import type { Configuration } from "./configuration"
3
- import type { ElementType, ExtractProps } from "./utils"
1
+ import type { AttrsComponent } from './AttrsComponent'
2
+ import type { Configuration } from './configuration'
3
+ import type { ElementType, ExtractProps } from './utils'
4
4
 
5
5
  /**
6
6
  * Type of the internal `attrsComponent` factory function.
@@ -1,4 +1,4 @@
1
- import type { ElementType } from "./utils"
1
+ import type { ElementType } from './utils'
2
2
 
3
3
  /** A component that has been enhanced by attrs — identified by the `IS_ATTRS` marker. */
4
4
  export type AttrsComponentType = ElementType & {
@@ -1,4 +1,4 @@
1
- import type { ElementType, TFn } from "./utils"
1
+ import type { ElementType, TFn } from './utils'
2
2
 
3
3
  export type OptionFunc = (...arg: unknown[]) => Record<string, unknown>
4
4
 
package/src/types/hoc.ts CHANGED
@@ -1,4 +1,4 @@
1
- import type { ElementType } from "./utils"
1
+ import type { ElementType } from './utils'
2
2
 
3
3
  export type GenericHoc = (component: ElementType) => ElementType
4
4
 
@@ -1,4 +1,4 @@
1
- import type { VNodeChild } from "@pyreon/core"
1
+ import type { VNodeChild } from '@pyreon/core'
2
2
 
3
3
  // ─── Base Types ───────────────────────────────────────────────
4
4
 
@@ -1,4 +1,4 @@
1
- import { isEmpty } from "@pyreon/ui-core"
1
+ import { isEmpty } from '@pyreon/ui-core'
2
2
 
3
3
  /**
4
4
  * Strips keys with `undefined` values from a props object.
@@ -14,8 +14,8 @@ type ChainOptions = (opts: Obj | Func | undefined, defaultOpts: Func[]) => Func[
14
14
  export const chainOptions: ChainOptions = (opts, defaultOpts = []) => {
15
15
  const result = [...defaultOpts]
16
16
 
17
- if (typeof opts === "function") result.push(opts)
18
- else if (typeof opts === "object") result.push(() => opts)
17
+ if (typeof opts === 'function') result.push(opts)
18
+ else if (typeof opts === 'object') result.push(() => opts)
19
19
 
20
20
  return result
21
21
  }
@@ -10,5 +10,5 @@ type CalculateHocsFuncs = (options: Record<string, any>) => ((arg: any) => any)[
10
10
 
11
11
  export const calculateHocsFuncs: CalculateHocsFuncs = (options = {}) =>
12
12
  Object.values(options)
13
- .filter((item) => typeof item === "function")
13
+ .filter((item) => typeof item === 'function')
14
14
  .reverse()
@@ -1,4 +1,4 @@
1
- import { isEmpty } from "@pyreon/ui-core"
1
+ import { isEmpty } from '@pyreon/ui-core'
2
2
 
3
3
  /**
4
4
  * Copies user-defined statics from `.statics()` into the component's