@radix-ui/react-direction 0.1.0-rc.41 → 0.1.0-rc.44

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":";AAEA,iBAAiB,KAAK,GAAG,KAAK,CAAC;AAO/B;IACE,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B,GAAG,EAAE,SAAS,CAAC;CAChB;AACD,OAAA,MAAM,mBAAmB,MAAM,EAAE,CAAC,sBAAsB,CAGvD,CAAC;AAIF,6BAAsB,QAAQ,CAAC,EAAE,SAAS,aAGzC;AAED,OAAA,MAAM,0CAA4B,CAAC","sources":["packages/react/direction/src/packages/react/direction/src/Direction.tsx","packages/react/direction/src/packages/react/direction/src/index.ts","packages/react/direction/src/index.ts"],"sourcesContent":[null,null,"export * from './Direction';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
1
+ {"mappings":";AAEA,iBAAiB,KAAK,GAAG,KAAK,CAAC;AAO/B;IACE,QAAQ,CAAC,EAAE,MAAM,SAAS,CAAC;IAC3B,GAAG,EAAE,SAAS,CAAC;CAChB;AACD,OAAA,MAAM,mBAAmB,MAAM,EAAE,CAAC,sBAAsB,CAGvD,CAAC;AAIF,6BAAsB,QAAQ,CAAC,EAAE,SAAS,aAGzC;AAED,OAAA,MAAM,0CAA4B,CAAC","sources":["packages/react/direction/src/packages/react/direction/src/Direction.tsx","packages/react/direction/src/packages/react/direction/src/index.ts","packages/react/direction/src/index.ts"],"sourcesContent":[null,null,"export {\n useDirection,\n //\n Provider,\n //\n DirectionProvider,\n} from './Direction';\n"],"names":[],"version":3,"file":"index.d.ts.map"}
package/dist/index.js CHANGED
@@ -1,29 +1,12 @@
1
1
  var $9g4ps$react = require("react");
2
2
 
3
- function $parcel$exportWildcard(dest, source) {
4
- Object.keys(source).forEach(function(key) {
5
- if (key === 'default' || key === '__esModule' || dest.hasOwnProperty(key)) {
6
- return;
7
- }
8
-
9
- Object.defineProperty(dest, key, {
10
- enumerable: true,
11
- get: function get() {
12
- return source[key];
13
- }
14
- });
15
- });
16
-
17
- return dest;
18
- }
19
3
  function $parcel$export(e, n, v, s) {
20
4
  Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
21
5
  }
22
- var $cc45c1b701a63adc$exports = {};
23
6
 
24
- $parcel$export($cc45c1b701a63adc$exports, "DirectionProvider", () => $cc45c1b701a63adc$export$c760c09fdd558351);
25
- $parcel$export($cc45c1b701a63adc$exports, "useDirection", () => $cc45c1b701a63adc$export$b39126d51d94e6f3);
26
- $parcel$export($cc45c1b701a63adc$exports, "Provider", () => $cc45c1b701a63adc$export$2881499e37b75b9a);
7
+ $parcel$export(module.exports, "useDirection", () => $cc45c1b701a63adc$export$b39126d51d94e6f3);
8
+ $parcel$export(module.exports, "Provider", () => $cc45c1b701a63adc$export$2881499e37b75b9a);
9
+ $parcel$export(module.exports, "DirectionProvider", () => $cc45c1b701a63adc$export$c760c09fdd558351);
27
10
 
28
11
  const $cc45c1b701a63adc$var$DirectionContext = /*#__PURE__*/ $9g4ps$react.createContext(undefined);
29
12
  /* -------------------------------------------------------------------------------------------------
@@ -41,7 +24,6 @@ const $cc45c1b701a63adc$var$DirectionContext = /*#__PURE__*/ $9g4ps$react.create
41
24
  const $cc45c1b701a63adc$export$2881499e37b75b9a = $cc45c1b701a63adc$export$c760c09fdd558351;
42
25
 
43
26
 
44
- $parcel$exportWildcard(module.exports, $cc45c1b701a63adc$exports);
45
27
 
46
28
 
47
29
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;ACAA;AAGA,MAAMC,sCAAgB,GAAA,aAAGD,CAAAA,0BAAA,CAA2CG,SAA3C,CAAzB,AAAA;AAEA;;oGAEA,CAMA,MAAMC,yCAAmD,GAAIC,CAAAA,KAAD,GAAW;IACrE,MAAM,EAdR,KAcUC,GAAF,CAAA,EAdR,UAceC,QAAAA,CAAAA,EAAP,GAAoBF,KAA1B,AAAM;IACN,OAAA,aAAO,CAAA,0BAAA,CAAC,sCAAD,CAAkB,QAAlB,EAAP;QAAkC,KAAK,EAAEC,GAAP;KAA3B,EAAwCC,QAAxC,CAAP,CAAO;CAFT,AAGC;AAED,oGAAA,CAEA,SAASC,yCAAT,CAAsBC,QAAtB,EAA4C;IAC1C,MAAMC,SAAS,GAAGV,uBAAA,CAAiBC,sCAAjB,CAAlB,AAAA;IACA,OAAOQ,QAAQ,IAAIC,SAAZ,IAAyB,KAAhC,CAAA;CACD;AAED,MAAME,yCAAQ,GAAGR,yCAAjB,AAAA;;ADzBA","sources":["packages/react/direction/src/index.ts","packages/react/direction/src/Direction.tsx"],"sourcesContent":["export * from './Direction';\n","import * as React from 'react';\n\ntype Direction = 'ltr' | 'rtl';\nconst DirectionContext = React.createContext<Direction | undefined>(undefined);\n\n/* -------------------------------------------------------------------------------------------------\n * Direction\n * -----------------------------------------------------------------------------------------------*/\n\ninterface DirectionProviderProps {\n children?: React.ReactNode;\n dir: Direction;\n}\nconst DirectionProvider: React.FC<DirectionProviderProps> = (props) => {\n const { dir, children } = props;\n return <DirectionContext.Provider value={dir}>{children}</DirectionContext.Provider>;\n};\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction useDirection(localDir?: Direction) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || 'ltr';\n}\n\nconst Provider = DirectionProvider;\n\nexport {\n useDirection,\n //\n Provider,\n //\n DirectionProvider,\n};\n"],"names":["React","DirectionContext","createContext","undefined","DirectionProvider","props","dir","children","useDirection","localDir","globalDir","useContext","Provider"],"version":3,"file":"index.js.map"}
1
+ {"mappings":";;;;;;;;;ACAA;AAGA,MAAMI,sCAAgB,GAAA,aAAGD,CAAAA,0BAAA,CAA2CG,SAA3C,CAAzB,AAAA;AAEA;;oGAEA,CAMA,MAAMJ,yCAAmD,GAAIK,CAAAA,KAAD,GAAW;IACrE,MAAM,EAdR,KAcUC,GAAF,CAAA,EAdR,UAceC,QAAAA,CAAAA,EAAP,GAAoBF,KAA1B,AAAM;IACN,OAAA,aAAO,CAAA,0BAAA,CAAC,sCAAD,CAAkB,QAAlB,EAAP;QAAkC,KAAK,EAAEC,GAAP;KAA3B,EAAwCC,QAAxC,CAAP,CAAO;CAFT,AAGC;AAED,oGAAA,CAEA,SAAST,yCAAT,CAAsBU,QAAtB,EAA4C;IAC1C,MAAMC,SAAS,GAAGR,uBAAA,CAAiBC,sCAAjB,CAAlB,AAAA;IACA,OAAOM,QAAQ,IAAIC,SAAZ,IAAyB,KAAhC,CAAA;CACD;AAED,MAAMV,yCAAQ,GAAGC,yCAAjB,AAAA;;ADzBA","sources":["packages/react/direction/src/index.ts","packages/react/direction/src/Direction.tsx"],"sourcesContent":["export {\n useDirection,\n //\n Provider,\n //\n DirectionProvider,\n} from './Direction';\n","import * as React from 'react';\n\ntype Direction = 'ltr' | 'rtl';\nconst DirectionContext = React.createContext<Direction | undefined>(undefined);\n\n/* -------------------------------------------------------------------------------------------------\n * Direction\n * -----------------------------------------------------------------------------------------------*/\n\ninterface DirectionProviderProps {\n children?: React.ReactNode;\n dir: Direction;\n}\nconst DirectionProvider: React.FC<DirectionProviderProps> = (props) => {\n const { dir, children } = props;\n return <DirectionContext.Provider value={dir}>{children}</DirectionContext.Provider>;\n};\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction useDirection(localDir?: Direction) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || 'ltr';\n}\n\nconst Provider = DirectionProvider;\n\nexport {\n useDirection,\n //\n Provider,\n //\n DirectionProvider,\n};\n"],"names":["useDirection","Provider","DirectionProvider","React","DirectionContext","createContext","undefined","props","dir","children","localDir","globalDir","useContext"],"version":3,"file":"index.js.map"}
@@ -1,13 +1,5 @@
1
1
  import {createContext as $7Gjcd$createContext, createElement as $7Gjcd$createElement, useContext as $7Gjcd$useContext} from "react";
2
2
 
3
- function $parcel$export(e, n, v, s) {
4
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
5
- }
6
- var $f631663db3294ace$exports = {};
7
-
8
- $parcel$export($f631663db3294ace$exports, "DirectionProvider", () => $f631663db3294ace$export$c760c09fdd558351);
9
- $parcel$export($f631663db3294ace$exports, "useDirection", () => $f631663db3294ace$export$b39126d51d94e6f3);
10
- $parcel$export($f631663db3294ace$exports, "Provider", () => $f631663db3294ace$export$2881499e37b75b9a);
11
3
 
12
4
  const $f631663db3294ace$var$DirectionContext = /*#__PURE__*/ $7Gjcd$createContext(undefined);
13
5
  /* -------------------------------------------------------------------------------------------------
@@ -27,5 +19,5 @@ const $f631663db3294ace$export$2881499e37b75b9a = $f631663db3294ace$export$c760c
27
19
 
28
20
 
29
21
 
30
- export {$f631663db3294ace$export$c760c09fdd558351 as DirectionProvider, $f631663db3294ace$export$b39126d51d94e6f3 as useDirection, $f631663db3294ace$export$2881499e37b75b9a as Provider};
22
+ export {$f631663db3294ace$export$b39126d51d94e6f3 as useDirection, $f631663db3294ace$export$2881499e37b75b9a as Provider, $f631663db3294ace$export$c760c09fdd558351 as DirectionProvider};
31
23
  //# sourceMappingURL=index.module.js.map
@@ -1 +1 @@
1
- {"mappings":";;;;;;;;;;ACAA;AAGA,MAAMC,sCAAgB,GAAA,aAAGD,CAAAA,oBAAA,CAA2CG,SAA3C,CAAzB,AAAA;AAEA;;oGAEA,CAMA,MAAMC,yCAAmD,GAAIC,CAAAA,KAAD,GAAW;IACrE,MAAM,EAdR,KAcUC,GAAF,CAAA,EAdR,UAceC,QAAAA,CAAAA,EAAP,GAAoBF,KAA1B,AAAM;IACN,OAAA,aAAO,CAAA,oBAAA,CAAC,sCAAD,CAAkB,QAAlB,EAAP;QAAkC,KAAK,EAAEC,GAAP;KAA3B,EAAwCC,QAAxC,CAAP,CAAO;CAFT,AAGC;AAED,oGAAA,CAEA,SAASC,yCAAT,CAAsBC,QAAtB,EAA4C;IAC1C,MAAMC,SAAS,GAAGV,iBAAA,CAAiBC,sCAAjB,CAAlB,AAAA;IACA,OAAOQ,QAAQ,IAAIC,SAAZ,IAAyB,KAAhC,CAAA;CACD;AAED,MAAME,yCAAQ,GAAGR,yCAAjB,AAAA;;ADzBA","sources":["packages/react/direction/src/index.ts","packages/react/direction/src/Direction.tsx"],"sourcesContent":["export * from './Direction';\n","import * as React from 'react';\n\ntype Direction = 'ltr' | 'rtl';\nconst DirectionContext = React.createContext<Direction | undefined>(undefined);\n\n/* -------------------------------------------------------------------------------------------------\n * Direction\n * -----------------------------------------------------------------------------------------------*/\n\ninterface DirectionProviderProps {\n children?: React.ReactNode;\n dir: Direction;\n}\nconst DirectionProvider: React.FC<DirectionProviderProps> = (props) => {\n const { dir, children } = props;\n return <DirectionContext.Provider value={dir}>{children}</DirectionContext.Provider>;\n};\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction useDirection(localDir?: Direction) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || 'ltr';\n}\n\nconst Provider = DirectionProvider;\n\nexport {\n useDirection,\n //\n Provider,\n //\n DirectionProvider,\n};\n"],"names":["React","DirectionContext","createContext","undefined","DirectionProvider","props","dir","children","useDirection","localDir","globalDir","useContext","Provider"],"version":3,"file":"index.module.js.map"}
1
+ {"mappings":";;ACAA;AAGA,MAAMI,sCAAgB,GAAA,aAAGD,CAAAA,oBAAA,CAA2CG,SAA3C,CAAzB,AAAA;AAEA;;oGAEA,CAMA,MAAMJ,yCAAmD,GAAIK,CAAAA,KAAD,GAAW;IACrE,MAAM,EAdR,KAcUC,GAAF,CAAA,EAdR,UAceC,QAAAA,CAAAA,EAAP,GAAoBF,KAA1B,AAAM;IACN,OAAA,aAAO,CAAA,oBAAA,CAAC,sCAAD,CAAkB,QAAlB,EAAP;QAAkC,KAAK,EAAEC,GAAP;KAA3B,EAAwCC,QAAxC,CAAP,CAAO;CAFT,AAGC;AAED,oGAAA,CAEA,SAAST,yCAAT,CAAsBU,QAAtB,EAA4C;IAC1C,MAAMC,SAAS,GAAGR,iBAAA,CAAiBC,sCAAjB,CAAlB,AAAA;IACA,OAAOM,QAAQ,IAAIC,SAAZ,IAAyB,KAAhC,CAAA;CACD;AAED,MAAMV,yCAAQ,GAAGC,yCAAjB,AAAA;;ADzBA","sources":["packages/react/direction/src/index.ts","packages/react/direction/src/Direction.tsx"],"sourcesContent":["export {\n useDirection,\n //\n Provider,\n //\n DirectionProvider,\n} from './Direction';\n","import * as React from 'react';\n\ntype Direction = 'ltr' | 'rtl';\nconst DirectionContext = React.createContext<Direction | undefined>(undefined);\n\n/* -------------------------------------------------------------------------------------------------\n * Direction\n * -----------------------------------------------------------------------------------------------*/\n\ninterface DirectionProviderProps {\n children?: React.ReactNode;\n dir: Direction;\n}\nconst DirectionProvider: React.FC<DirectionProviderProps> = (props) => {\n const { dir, children } = props;\n return <DirectionContext.Provider value={dir}>{children}</DirectionContext.Provider>;\n};\n\n/* -----------------------------------------------------------------------------------------------*/\n\nfunction useDirection(localDir?: Direction) {\n const globalDir = React.useContext(DirectionContext);\n return localDir || globalDir || 'ltr';\n}\n\nconst Provider = DirectionProvider;\n\nexport {\n useDirection,\n //\n Provider,\n //\n DirectionProvider,\n};\n"],"names":["useDirection","Provider","DirectionProvider","React","DirectionContext","createContext","undefined","props","dir","children","localDir","globalDir","useContext"],"version":3,"file":"index.module.js.map"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@radix-ui/react-direction",
3
- "version": "0.1.0-rc.41",
3
+ "version": "0.1.0-rc.44",
4
4
  "license": "MIT",
5
5
  "source": "src/index.ts",
6
6
  "main": "dist/index.js",