@radix-ui/react-arrow 0.1.5-rc.2 → 0.1.5-rc.5

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 +1 @@
1
- {"mappings":"A;A;A;AAYA,yBAAyB,MAAM,wBAAwB,CAAC,OAAO,UAAU,GAAG,CAAC,CAAC;AAC9E,2BAAqB,SAAQ,iBAAiB;CAAG;AAEjD,OAAA,MAAM,uFAeJ,CAAC;AAMH,OAAA,MAAM,sFAAY,CAAC","sources":["./packages/react/arrow/src/packages/react/arrow/src/Arrow.tsx","./packages/react/arrow/src/packages/react/arrow/src/index.ts"],"sourcesContent":[null,null],"names":[],"version":3,"file":"index.d.ts.map"}
1
+ {"mappings":";;;AAYA,yBAAyB,MAAM,wBAAwB,CAAC,OAAO,UAAU,GAAG,CAAC,CAAC;AAC9E,2BAAqB,SAAQ,iBAAiB;CAAG;AAEjD,OAAA,MAAM,uFAeJ,CAAC;AAMH,OAAA,MAAM,sFAAY,CAAC","sources":["packages/react/arrow/src/packages/react/arrow/src/Arrow.tsx","packages/react/arrow/src/packages/react/arrow/src/index.ts","packages/react/arrow/src/index.ts"],"sourcesContent":[null,null,"export * from './Arrow';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
package/dist/index.js CHANGED
@@ -1,2 +1,58 @@
1
- var e,r,t,i=require("@radix-ui/react-primitive").Primitive,o=(e={},r=require("react"),Object.keys(r).forEach((function(t){"default"!==t&&"__esModule"!==t&&Object.defineProperty(e,t,{enumerable:!0,get:function(){return r[t]}})})),e),n=(t=require("@babel/runtime/helpers/extends"))&&t.__esModule?t.default:t;const s=/*#__PURE__*/o.forwardRef(((e,r)=>{const{children:t,width:s=10,height:a=5,...c}=e;/*#__PURE__*/return o.createElement(i.svg,n({},c,{ref:r,width:s,height:a,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),e.asChild?t:/*#__PURE__*/o.createElement("polygon",{points:"0,0 30,0 15,10"}))}));exports.Arrow=s;const a=s;exports.Root=a;
1
+ var $eQpDd$babelruntimehelpersextends = require("@babel/runtime/helpers/extends");
2
+ var $eQpDd$react = require("react");
3
+ var $eQpDd$radixuireactprimitive = require("@radix-ui/react-primitive");
4
+
5
+ function $parcel$exportWildcard(dest, source) {
6
+ Object.keys(source).forEach(function(key) {
7
+ if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
8
+ return;
9
+ }
10
+
11
+ Object.defineProperty(dest, key, {
12
+ enumerable: true,
13
+ get: function get() {
14
+ return source[key];
15
+ }
16
+ });
17
+ });
18
+
19
+ return dest;
20
+ }
21
+ function $parcel$interopDefault(a) {
22
+ return a && a.__esModule ? a.default : a;
23
+ }
24
+ function $parcel$export(e, n, v, s) {
25
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
26
+ }
27
+ var $09f4ad68a9251bc3$exports = {};
28
+
29
+ $parcel$export($09f4ad68a9251bc3$exports, "Arrow", () => $09f4ad68a9251bc3$export$21b07c8f274aebd5);
30
+ $parcel$export($09f4ad68a9251bc3$exports, "Root", () => $09f4ad68a9251bc3$export$be92b6f5f03c0fe9);
31
+
32
+
33
+
34
+ /* -------------------------------------------------------------------------------------------------
35
+ * Arrow
36
+ * -----------------------------------------------------------------------------------------------*/ const $09f4ad68a9251bc3$var$NAME = 'Arrow';
37
+ const $09f4ad68a9251bc3$export$21b07c8f274aebd5 = /*#__PURE__*/ $eQpDd$react.forwardRef((props, forwardedRef)=>{
38
+ const { children: children , width: width = 10 , height: height = 5 , ...arrowProps } = props;
39
+ return /*#__PURE__*/ $eQpDd$react.createElement($eQpDd$radixuireactprimitive.Primitive.svg, ($parcel$interopDefault($eQpDd$babelruntimehelpersextends))({}, arrowProps, {
40
+ ref: forwardedRef,
41
+ width: width,
42
+ height: height,
43
+ viewBox: "0 0 30 10",
44
+ preserveAspectRatio: "none"
45
+ }), props.asChild ? children : /*#__PURE__*/ $eQpDd$react.createElement("polygon", {
46
+ points: "0,0 30,0 15,10"
47
+ }));
48
+ });
49
+ /*#__PURE__*/ Object.assign($09f4ad68a9251bc3$export$21b07c8f274aebd5, {
50
+ displayName: $09f4ad68a9251bc3$var$NAME
51
+ });
52
+ /* -----------------------------------------------------------------------------------------------*/ const $09f4ad68a9251bc3$export$be92b6f5f03c0fe9 = $09f4ad68a9251bc3$export$21b07c8f274aebd5;
53
+
54
+
55
+ $parcel$exportWildcard(module.exports, $09f4ad68a9251bc3$exports);
56
+
57
+
2
58
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":"IAYgCA,EAAMC,EAZNC,sDAYAF,KAAMC,mBACpCE,OAAOC,KAAKH,GAAQI,SAAQ,SAASC,GACvB,YAARA,GAA6B,eAARA,GAIzBH,OAAOI,eAAeP,EAAMM,EAAK,CAC/BE,YAAY,EACZC,IAAK,WACH,OAAOR,EAAOK,SAKbN,MA1BuBE,8CAClBA,EAAEQ,WAAaR,EAAES,QAAUT,ECQzC,MAMMU,eAAQC,EAAMC,YAAqC,CAACC,EAAOC,KAC/D,MAAMC,SAAEA,EAAFC,MAAYA,EAAQ,GAApBC,OAAwBA,EAAS,KAAMC,GAAeL,eAC5D,OACEM,EAAAC,cAACC,EAAUC,IAAXC,EAAA,GACML,EADN,CAEEM,IAAKV,EACLE,MAAOA,EACPC,OAAQA,EACRQ,QAAQ,YACRC,oBAAoB,SAGnBb,EAAMc,QAAUZ,eAAWI,EAAAC,cAAA,UAAA,CAASQ,OAAO,uCASlD,MAAMC,EAAOnB","sources":["./node_modules/@parcel/scope-hoisting/lib/helpers.js","./packages/react/arrow/src/Arrow.tsx"],"sourcesContent":["function $parcel$interopDefault(a) {\n return a && a.__esModule ? a.default : a;\n}\n\nfunction $parcel$defineInteropFlag(a) {\n Object.defineProperty(a, '__esModule', {value: true});\n}\n\nfunction $parcel$reexport(e, n, v) {\n Object.defineProperty(e, n, {get: v, enumerable: true});\n}\n\nfunction $parcel$exportWildcard(dest, source) {\n Object.keys(source).forEach(function(key) {\n if (key === 'default' || key === '__esModule') {\n return;\n }\n\n Object.defineProperty(dest, key, {\n enumerable: true,\n get: function get() {\n return source[key];\n },\n });\n });\n\n return dest;\n}\n\nfunction $parcel$missingModule(name) {\n var err = new Error(\"Cannot find module '\" + name + \"'\");\n err.code = 'MODULE_NOT_FOUND';\n throw err;\n}\n\nvar $parcel$global =\n typeof globalThis !== 'undefined'\n ? globalThis\n : typeof self !== 'undefined'\n ? self\n : typeof window !== 'undefined'\n ? window\n : typeof global !== 'undefined'\n ? global\n : {};\n","import * as React from 'react';\nimport { Primitive } from '@radix-ui/react-primitive';\n\nimport type * as Radix from '@radix-ui/react-primitive';\n\n/* -------------------------------------------------------------------------------------------------\n * Arrow\n * -----------------------------------------------------------------------------------------------*/\n\nconst NAME = 'Arrow';\n\ntype ArrowElement = React.ElementRef<typeof Primitive.svg>;\ntype PrimitiveSvgProps = Radix.ComponentPropsWithoutRef<typeof Primitive.svg>;\ninterface ArrowProps extends PrimitiveSvgProps {}\n\nconst Arrow = React.forwardRef<ArrowElement, ArrowProps>((props, forwardedRef) => {\n const { children, width = 10, height = 5, ...arrowProps } = props;\n return (\n <Primitive.svg\n {...arrowProps}\n ref={forwardedRef}\n width={width}\n height={height}\n viewBox=\"0 0 30 10\"\n preserveAspectRatio=\"none\"\n >\n {/* We use their children if they're slotting to replace the whole svg */}\n {props.asChild ? children : <polygon points=\"0,0 30,0 15,10\" />}\n </Primitive.svg>\n );\n});\n\nArrow.displayName = NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nconst Root = Arrow;\n\nexport {\n Arrow,\n //\n Root,\n};\nexport type { ArrowProps };\n"],"names":["dest","source","a","Object","keys","forEach","key","defineProperty","enumerable","get","__esModule","default","Arrow","React","forwardRef","props","forwardedRef","children","width","height","arrowProps","_react","createElement","Primitive","svg","_babelRuntimeHelpersExtends","ref","viewBox","preserveAspectRatio","asChild","points","Root"],"version":3,"file":"index.js.map"}
1
+ {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;A;;;ACKA;;oGAEA,CAEA,MAAME,0BAAI,GAAG,OAAb,AAAA;AAMA,MAAMC,yCAAK,GAAA,aAAGH,CAAAA,uBAAA,CAA2C,CAACK,KAAD,EAAQC,YAAR,GAAyB;IAChF,MAAM,E,UAAEC,QAAF,CAAA,SAAYC,KAAK,GAAG,EAApB,WAAwBC,MAAM,GAAG,CAAjC,GAAoC,GAAGC,UAAH,EAApC,GAAsDL,KAA5D,AAAM;IACN,OAAA,aACE,CAAA,0BAAA,CAAC,sCAAD,CAAW,GAAX,EAAA,2DAAA,CAAA,EAAA,EACMK,UADN,EADF;QAGI,GAAG,EAAEJ,YAFP;QAGE,KAAK,EAAEE,KAHT;QAIE,MAAM,EAAEC,MAJV;QAKE,OAAO,EAAC,WALV;QAME,mBAAmB,EAAC,MAApB;KANF,CAAA,EASGJ,KAAK,CAACM,OAAN,GAAgBJ,QAAhB,GAAA,aAA2B,CAAA,0BAT9B,CAAA,SAAA,EAAA;QASuC,MAAM,EAAC,gBAAP;KAAT,CAT9B,CADF,CAUgC;CAZpB,CAAd,AAeC;AAED,aAAA,CAAA,MAAA,CAAA,MAAA,CAAA,yCAAA,EAAA;IAAA,WAAA,EAAA,0BAAA;CAAA,CAAA,CAAA;AAEA,oGAAA,CAEA,MAAMK,yCAAI,GAAGT,yCAAb,AAAA;;ADpCA","sources":["packages/react/arrow/src/index.ts","packages/react/arrow/src/Arrow.tsx"],"sourcesContent":["export * from './Arrow';\n","import * as React from 'react';\nimport { Primitive } from '@radix-ui/react-primitive';\n\nimport type * as Radix from '@radix-ui/react-primitive';\n\n/* -------------------------------------------------------------------------------------------------\n * Arrow\n * -----------------------------------------------------------------------------------------------*/\n\nconst NAME = 'Arrow';\n\ntype ArrowElement = React.ElementRef<typeof Primitive.svg>;\ntype PrimitiveSvgProps = Radix.ComponentPropsWithoutRef<typeof Primitive.svg>;\ninterface ArrowProps extends PrimitiveSvgProps {}\n\nconst Arrow = React.forwardRef<ArrowElement, ArrowProps>((props, forwardedRef) => {\n const { children, width = 10, height = 5, ...arrowProps } = props;\n return (\n <Primitive.svg\n {...arrowProps}\n ref={forwardedRef}\n width={width}\n height={height}\n viewBox=\"0 0 30 10\"\n preserveAspectRatio=\"none\"\n >\n {/* We use their children if they're slotting to replace the whole svg */}\n {props.asChild ? children : <polygon points=\"0,0 30,0 15,10\" />}\n </Primitive.svg>\n );\n});\n\nArrow.displayName = NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nconst Root = Arrow;\n\nexport {\n Arrow,\n //\n Root,\n};\nexport type { ArrowProps };\n"],"names":["React","Primitive","NAME","Arrow","forwardRef","props","forwardedRef","children","width","height","arrowProps","asChild","Root"],"version":3,"file":"index.js.map"}
@@ -1,2 +1,39 @@
1
- import{Primitive as e}from"@radix-ui/react-primitive";import*as r from"react";import t from"@babel/runtime/helpers/esm/extends";export const Arrow=/*#__PURE__*/r.forwardRef(((o,i)=>{const{children:n,width:s=10,height:m=5,...p}=o;/*#__PURE__*/return r.createElement(e.svg,t({},p,{ref:i,width:s,height:m,viewBox:"0 0 30 10",preserveAspectRatio:"none"}),o.asChild?n:/*#__PURE__*/r.createElement("polygon",{points:"0,0 30,0 15,10"}))}));/*#__PURE__*/export const Root=Arrow;
1
+ import $jbnEx$babelruntimehelpersesmextends from "@babel/runtime/helpers/esm/extends";
2
+ import {forwardRef as $jbnEx$forwardRef, createElement as $jbnEx$createElement} from "react";
3
+ import {Primitive as $jbnEx$Primitive} from "@radix-ui/react-primitive";
4
+
5
+ function $parcel$export(e, n, v, s) {
6
+ Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
7
+ }
8
+ var $7e8f5cd07187803e$exports = {};
9
+
10
+ $parcel$export($7e8f5cd07187803e$exports, "Arrow", () => $7e8f5cd07187803e$export$21b07c8f274aebd5);
11
+ $parcel$export($7e8f5cd07187803e$exports, "Root", () => $7e8f5cd07187803e$export$be92b6f5f03c0fe9);
12
+
13
+
14
+
15
+ /* -------------------------------------------------------------------------------------------------
16
+ * Arrow
17
+ * -----------------------------------------------------------------------------------------------*/ const $7e8f5cd07187803e$var$NAME = 'Arrow';
18
+ const $7e8f5cd07187803e$export$21b07c8f274aebd5 = /*#__PURE__*/ $jbnEx$forwardRef((props, forwardedRef)=>{
19
+ const { children: children , width: width = 10 , height: height = 5 , ...arrowProps } = props;
20
+ return /*#__PURE__*/ $jbnEx$createElement($jbnEx$Primitive.svg, $jbnEx$babelruntimehelpersesmextends({}, arrowProps, {
21
+ ref: forwardedRef,
22
+ width: width,
23
+ height: height,
24
+ viewBox: "0 0 30 10",
25
+ preserveAspectRatio: "none"
26
+ }), props.asChild ? children : /*#__PURE__*/ $jbnEx$createElement("polygon", {
27
+ points: "0,0 30,0 15,10"
28
+ }));
29
+ });
30
+ /*#__PURE__*/ Object.assign($7e8f5cd07187803e$export$21b07c8f274aebd5, {
31
+ displayName: $7e8f5cd07187803e$var$NAME
32
+ });
33
+ /* -----------------------------------------------------------------------------------------------*/ const $7e8f5cd07187803e$export$be92b6f5f03c0fe9 = $7e8f5cd07187803e$export$21b07c8f274aebd5;
34
+
35
+
36
+
37
+
38
+ export {$7e8f5cd07187803e$export$21b07c8f274aebd5 as Arrow, $7e8f5cd07187803e$export$be92b6f5f03c0fe9 as Root};
2
39
  //# sourceMappingURL=index.module.js.map
@@ -1 +1 @@
1
- {"mappings":"uIAeA,MAAMA,mBAAQC,EAAMC,YAAqC,CAACC,EAAOC,KAC/D,MAAMC,SAAEA,EAAFC,MAAYA,EAAQ,GAApBC,OAAwBA,EAAS,KAAMC,GAAeL,eAC5D,OACEM,EAAAC,cAACC,EAAUC,IAAXC,EAAA,GACML,EADN,CAEEM,IAAKV,EACLE,MAAOA,EACPC,OAAQA,EACRQ,QAAQ,YACRC,oBAAoB,SAGnBb,EAAMc,QAAUZ,eAAWI,EAAAC,cAAA,UAAA,CAASQ,OAAO,2CASlD,MAAMC,KAAOnB","sources":["./packages/react/arrow/src/Arrow.tsx"],"sourcesContent":["import * as React from 'react';\nimport { Primitive } from '@radix-ui/react-primitive';\n\nimport type * as Radix from '@radix-ui/react-primitive';\n\n/* -------------------------------------------------------------------------------------------------\n * Arrow\n * -----------------------------------------------------------------------------------------------*/\n\nconst NAME = 'Arrow';\n\ntype ArrowElement = React.ElementRef<typeof Primitive.svg>;\ntype PrimitiveSvgProps = Radix.ComponentPropsWithoutRef<typeof Primitive.svg>;\ninterface ArrowProps extends PrimitiveSvgProps {}\n\nconst Arrow = React.forwardRef<ArrowElement, ArrowProps>((props, forwardedRef) => {\n const { children, width = 10, height = 5, ...arrowProps } = props;\n return (\n <Primitive.svg\n {...arrowProps}\n ref={forwardedRef}\n width={width}\n height={height}\n viewBox=\"0 0 30 10\"\n preserveAspectRatio=\"none\"\n >\n {/* We use their children if they're slotting to replace the whole svg */}\n {props.asChild ? children : <polygon points=\"0,0 30,0 15,10\" />}\n </Primitive.svg>\n );\n});\n\nArrow.displayName = NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nconst Root = Arrow;\n\nexport {\n Arrow,\n //\n Root,\n};\nexport type { ArrowProps };\n"],"names":["Arrow","React","forwardRef","props","forwardedRef","children","width","height","arrowProps","_react","createElement","Primitive","svg","_babelRuntimeHelpersEsmExtends","ref","viewBox","preserveAspectRatio","asChild","points","Root"],"version":3,"file":"index.module.js.map"}
1
+ {"mappings":";;;;;;;;;;;A;;;ACKA;;oGAEA,CAEA,MAAME,0BAAI,GAAG,OAAb,AAAA;AAMA,MAAMC,yCAAK,GAAA,aAAGH,CAAAA,iBAAA,CAA2C,CAACK,KAAD,EAAQC,YAAR,GAAyB;IAChF,MAAM,E,UAAEC,QAAF,CAAA,SAAYC,KAAK,GAAG,EAApB,WAAwBC,MAAM,GAAG,CAAjC,GAAoC,GAAGC,UAAH,EAApC,GAAsDL,KAA5D,AAAM;IACN,OAAA,aACE,CAAA,oBAAA,CAAC,gBAAD,CAAW,GAAX,EAAA,oCAAA,CAAA,EAAA,EACMK,UADN,EADF;QAGI,GAAG,EAAEJ,YAFP;QAGE,KAAK,EAAEE,KAHT;QAIE,MAAM,EAAEC,MAJV;QAKE,OAAO,EAAC,WALV;QAME,mBAAmB,EAAC,MAApB;KANF,CAAA,EASGJ,KAAK,CAACM,OAAN,GAAgBJ,QAAhB,GAAA,aAA2B,CAAA,oBAT9B,CAAA,SAAA,EAAA;QASuC,MAAM,EAAC,gBAAP;KAAT,CAT9B,CADF,CAUgC;CAZpB,CAAd,AAeC;AAED,aAAA,CAAA,MAAA,CAAA,MAAA,CAAA,yCAAA,EAAA;IAAA,WAAA,EAAA,0BAAA;CAAA,CAAA,CAAA;AAEA,oGAAA,CAEA,MAAMK,yCAAI,GAAGT,yCAAb,AAAA;;ADpCA","sources":["packages/react/arrow/src/index.ts","packages/react/arrow/src/Arrow.tsx"],"sourcesContent":["export * from './Arrow';\n","import * as React from 'react';\nimport { Primitive } from '@radix-ui/react-primitive';\n\nimport type * as Radix from '@radix-ui/react-primitive';\n\n/* -------------------------------------------------------------------------------------------------\n * Arrow\n * -----------------------------------------------------------------------------------------------*/\n\nconst NAME = 'Arrow';\n\ntype ArrowElement = React.ElementRef<typeof Primitive.svg>;\ntype PrimitiveSvgProps = Radix.ComponentPropsWithoutRef<typeof Primitive.svg>;\ninterface ArrowProps extends PrimitiveSvgProps {}\n\nconst Arrow = React.forwardRef<ArrowElement, ArrowProps>((props, forwardedRef) => {\n const { children, width = 10, height = 5, ...arrowProps } = props;\n return (\n <Primitive.svg\n {...arrowProps}\n ref={forwardedRef}\n width={width}\n height={height}\n viewBox=\"0 0 30 10\"\n preserveAspectRatio=\"none\"\n >\n {/* We use their children if they're slotting to replace the whole svg */}\n {props.asChild ? children : <polygon points=\"0,0 30,0 15,10\" />}\n </Primitive.svg>\n );\n});\n\nArrow.displayName = NAME;\n\n/* -----------------------------------------------------------------------------------------------*/\n\nconst Root = Arrow;\n\nexport {\n Arrow,\n //\n Root,\n};\nexport type { ArrowProps };\n"],"names":["React","Primitive","NAME","Arrow","forwardRef","props","forwardedRef","children","width","height","arrowProps","asChild","Root"],"version":3,"file":"index.module.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radix-ui/react-arrow",
3
- "version": "0.1.5-rc.2",
3
+ "version": "0.1.5-rc.5",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",
@@ -17,7 +17,7 @@
17
17
  },
18
18
  "dependencies": {
19
19
  "@babel/runtime": "^7.13.10",
20
- "@radix-ui/react-primitive": "0.1.5-rc.2"
20
+ "@radix-ui/react-primitive": "0.1.5-rc.5"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "react": "^16.8 || ^17.0 || ^18.0"