@strictly/react-form 0.0.34 → 0.0.35

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,5 +1,5 @@
1
1
  import { type FriendlyExhaustiveArrayOfUnion } from '@strictly/base';
2
- import { type ComponentProps, type ComponentType, type DependencyList, type ForwardRefExoticComponent, type PropsWithoutRef, type Ref, type RefAttributes } from 'react';
2
+ import { type ComponentProps, type ComponentType, type DependencyList, type ForwardRefExoticComponent, type JSX, type PropsWithoutRef, type Ref, type RefAttributes } from 'react';
3
3
  export type RefOfProps<P, Fallback = unknown> = P extends RefAttributes<infer R> ? R : Fallback;
4
4
  export type PartialComponent<Component extends ComponentType<any>, CurriedProps, AdditionalProps = {}> = Exclude<keyof CurriedProps, keyof ComponentProps<Component>> extends never ? UnsafePartialComponent<Component, CurriedProps, AdditionalProps> : keyof CurriedProps extends (string | number) ? `unmatched prop: ${Exclude<keyof CurriedProps, keyof ComponentProps<Component>>}` : Exclude<keyof CurriedProps, keyof ComponentProps<Component>>;
5
5
  export type UnsafePartialComponent<Component extends ComponentType<any>, CurriedProps, AdditionalProps = {}, R = RefOfProps<ComponentProps<Component>>> = ForwardRefExoticComponent<PropsWithoutRef<RemainingComponentProps<Component, CurriedProps> & AdditionalProps> & {
@@ -8,11 +8,11 @@ $ tsup
8
8
  CJS Build start
9
9
  ESM Build start
10
10
  ESM dist/index.js 60.01 KB
11
- ESM ⚡️ Build success in 127ms
11
+ ESM ⚡️ Build success in 153ms
12
12
  CJS dist/index.cjs 64.19 KB
13
13
  CJS ⚡️ Build success in 158ms
14
14
  DTS Build start
15
- DTS ⚡️ Build success in 6824ms
16
- DTS dist/index.d.cts 38.69 KB
17
- DTS dist/index.d.ts 38.69 KB
18
- Done in 8.27s.
15
+ DTS ⚡️ Build success in 5621ms
16
+ DTS dist/index.d.cts 38.70 KB
17
+ DTS dist/index.d.ts 38.70 KB
18
+ Done in 7.27s.
@@ -1,3 +1,3 @@
1
1
  yarn run v1.22.22
2
2
  $ tsc -b
3
- Done in 0.41s.
3
+ Done in 0.34s.
package/dist/index.d.cts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Maybe, ElementOfArray, StringConcatOf, StringKeyOf as StringKeyOf$1, ExhaustiveArrayOfUnion, FriendlyExhaustiveArrayOfUnion } from '@strictly/base';
2
2
  import { Type, ValueOfType, ReadonlyTypeOfType, FlattenedTypesOfType, ListTypeDef, FlattenedValuesOfType, Accessor, Validator, UnionTypeDef, ValueTypesOfDiscriminatedUnion, LiteralTypeDef } from '@strictly/define';
3
3
  import { ValueOf, SimplifyDeep, ReadonlyDeep, UnionToIntersection, StringKeyOf, Simplify } from 'type-fest';
4
- import { ComponentType, RefAttributes, ComponentProps, ForwardRefExoticComponent, PropsWithoutRef, Ref, DependencyList } from 'react';
4
+ import { ComponentType, RefAttributes, ComponentProps, ForwardRefExoticComponent, PropsWithoutRef, Ref, DependencyList, JSX } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { CheckboxProps, PillProps, RadioProps, RadioGroupProps, TextInputProps, SelectProps } from '@mantine/core';
7
7
  import { Observer } from 'mobx-react';
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Maybe, ElementOfArray, StringConcatOf, StringKeyOf as StringKeyOf$1, ExhaustiveArrayOfUnion, FriendlyExhaustiveArrayOfUnion } from '@strictly/base';
2
2
  import { Type, ValueOfType, ReadonlyTypeOfType, FlattenedTypesOfType, ListTypeDef, FlattenedValuesOfType, Accessor, Validator, UnionTypeDef, ValueTypesOfDiscriminatedUnion, LiteralTypeDef } from '@strictly/define';
3
3
  import { ValueOf, SimplifyDeep, ReadonlyDeep, UnionToIntersection, StringKeyOf, Simplify } from 'type-fest';
4
- import { ComponentType, RefAttributes, ComponentProps, ForwardRefExoticComponent, PropsWithoutRef, Ref, DependencyList } from 'react';
4
+ import { ComponentType, RefAttributes, ComponentProps, ForwardRefExoticComponent, PropsWithoutRef, Ref, DependencyList, JSX } from 'react';
5
5
  import * as react_jsx_runtime from 'react/jsx-runtime';
6
6
  import { CheckboxProps, PillProps, RadioProps, RadioGroupProps, TextInputProps, SelectProps } from '@mantine/core';
7
7
  import { Observer } from 'mobx-react';
package/package.json CHANGED
@@ -18,8 +18,8 @@
18
18
  "@strictly/support-vite": "*",
19
19
  "@testing-library/dom": "^10.4.0",
20
20
  "@testing-library/react": "^16.0.1",
21
- "@types/react": "^18.3.12",
22
- "@types/react-dom": "^18.3.1",
21
+ "@types/react": "^19.0.0",
22
+ "@types/react-dom": "^19.0.0",
23
23
  "@vitejs/plugin-react": "^4.3.3",
24
24
  "concurrently": "^9.1.2",
25
25
  "jsdom": "^25.0.1",
@@ -73,7 +73,7 @@
73
73
  "test:watch": "vitest"
74
74
  },
75
75
  "type": "module",
76
- "version": "0.0.34",
76
+ "version": "0.0.35",
77
77
  "exports": {
78
78
  ".": {
79
79
  "import": {
package/util/Partial.tsx CHANGED
@@ -7,6 +7,7 @@ import {
7
7
  type ForwardedRef,
8
8
  forwardRef,
9
9
  type ForwardRefExoticComponent,
10
+ type JSX,
10
11
  type PropsWithoutRef,
11
12
  type Ref,
12
13
  type RefAttributes,