@rarui/typings 1.0.1 → 2.0.0

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rarui/typings",
3
- "version": "1.0.1",
3
+ "version": "2.0.0",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "files": [
@@ -10,19 +10,19 @@
10
10
  ],
11
11
  "sideEffects": false,
12
12
  "scripts": {
13
- "build": "yarn g:webpack",
13
+ "build": "yarn g:dts --external-inlines=@vanilla-extract/recipes @vanilla-extract/css csstype -o dist/index.ts src/index.ts --export-referenced-types=false",
14
14
  "clean": "rm -rf dist",
15
15
  "version": "yarn version"
16
16
  },
17
- "homepage": "https://github.com/juniorconquista/boilerplate-design-system",
17
+ "homepage": "https://git.rarolabs.com.br/frontend/rarui",
18
18
  "repository": {
19
19
  "type": "git",
20
- "url": "git+https://github.com/juniorconquista/boilerplate-design-system.git"
20
+ "url": "git+https://git.rarolabs.com.br/frontend/rarui.git"
21
21
  },
22
22
  "bugs": {
23
- "url": "https://github.com/juniorconquista/boilerplate-design-system/issues"
23
+ "url": "https://git.rarolabs.com.br/frontend/rarui/issues"
24
24
  },
25
25
  "devDependencies": {
26
- "@rarui/webpack": "^1.0.1"
26
+ "@rarui/webpack": "^1.3.3"
27
27
  }
28
28
  }
package/dist/index.d.ts DELETED
@@ -1,44 +0,0 @@
1
- // Generated by dts-bundle-generator v9.3.1
2
-
3
- import React$1 from 'react';
4
- import { ForwardedRef, RefObject } from 'react';
5
-
6
- export type Merge<P1 = {}, P2 = {}> = Omit<P1, keyof P2> & P2;
7
- /**
8
- * Infers the OwnProps if E is a ForwardRefExoticComponentWithAs
9
- */
10
- export type OwnProps<E> = E extends PolymorphicForwardRefComponent<any, infer P> ? P : {};
11
- /**
12
- * Infers the JSX.IntrinsicElement if E is a ForwardRefExoticComponentWithAs
13
- */
14
- export type IntrinsicElement<E> = E extends PolymorphicForwardRefComponent<infer I, any> ? I : never;
15
- export type ForwardRefExoticComponent<E, OwnProps> = React$1.ForwardRefExoticComponent<Merge<E extends React$1.ElementType ? React$1.ComponentPropsWithRef<E> : never, OwnProps & {
16
- as?: E;
17
- }>>;
18
- export interface PolymorphicForwardRefComponent<IntrinsicElementString, OwnProps = {}> extends ForwardRefExoticComponent<IntrinsicElementString, OwnProps> {
19
- /**
20
- * When `as` prop is passed, use this overload.
21
- * Merges original own props (without DOM props) and the inferred props
22
- * from `as` element with the own props taking precendence.
23
- *
24
- * We explicitly avoid `React.ElementType` and manually narrow the prop types
25
- * so that events are typed when using JSX.IntrinsicElements.
26
- */
27
- <As = IntrinsicElementString>(props: As extends "" ? {
28
- as: keyof JSX.IntrinsicElements;
29
- } : As extends React$1.ComponentType<infer P> ? Merge<P, OwnProps & {
30
- as: As;
31
- }> : As extends keyof JSX.IntrinsicElements ? Merge<JSX.IntrinsicElements[As], OwnProps & {
32
- as: As;
33
- }> : never): React$1.ReactElement | null;
34
- }
35
- /**
36
- * Use a ref object as the imperative handle for a forwarded ref. This can be used to
37
- * synchronize the ref object with the forwarded ref and allow local access the reference
38
- * instance with `.current`.
39
- *
40
- * **NOTE**: The `refObject` should be passed to the underlying element, NOT the `forwardedRef`.
41
- */
42
- export declare function useRefObjectAsForwardedRef<T>(forwardedRef: React$1.ForwardedRef<T>, refObject: React$1.RefObject<T>): void;
43
-
44
- export {};
package/dist/index.js DELETED
@@ -1 +0,0 @@
1
- !function(e,r){"object"==typeof exports&&"object"==typeof module?module.exports=r(require("react")):"function"==typeof define&&define.amd?define(["react"],r):"object"==typeof exports?exports["@rarui/typings"]=r(require("react")):e["@rarui/typings"]=r(e.react)}(global,(e=>(()=>{"use strict";var r={155:r=>{r.exports=e}},t={};function o(e){var n=t[e];if(void 0!==n)return n.exports;var s=t[e]={exports:{}};return r[e](s,s.exports,o),s.exports}var n={};return(()=>{var e=n;Object.defineProperty(e,"__esModule",{value:!0}),e.useRefObjectAsForwardedRef=void 0;const r=o(155);e.useRefObjectAsForwardedRef=function(e,t){(0,r.useImperativeHandle)(e,(()=>t.current))}})(),n})()));