Initial commit
This commit is contained in:
13
node_modules/@radix-ui/react-direction/README.md
generated
vendored
Normal file
13
node_modules/@radix-ui/react-direction/README.md
generated
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
# `react-direction`
|
||||
|
||||
## Installation
|
||||
|
||||
```sh
|
||||
$ yarn add @radix-ui/react-direction
|
||||
# or
|
||||
$ npm install @radix-ui/react-direction
|
||||
```
|
||||
|
||||
## Usage
|
||||
|
||||
View docs [here](https://radix-ui.com/primitives/docs/utilities/direction).
|
||||
12
node_modules/@radix-ui/react-direction/dist/index.d.mts
generated
vendored
Normal file
12
node_modules/@radix-ui/react-direction/dist/index.d.mts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as React from 'react';
|
||||
|
||||
type Direction = 'ltr' | 'rtl';
|
||||
interface DirectionProviderProps {
|
||||
children?: React.ReactNode;
|
||||
dir: Direction;
|
||||
}
|
||||
declare const DirectionProvider: React.FC<DirectionProviderProps>;
|
||||
declare function useDirection(localDir?: Direction): Direction;
|
||||
declare const Provider: React.FC<DirectionProviderProps>;
|
||||
|
||||
export { DirectionProvider, Provider, useDirection };
|
||||
12
node_modules/@radix-ui/react-direction/dist/index.d.ts
generated
vendored
Normal file
12
node_modules/@radix-ui/react-direction/dist/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,12 @@
|
||||
import * as React from 'react';
|
||||
|
||||
type Direction = 'ltr' | 'rtl';
|
||||
interface DirectionProviderProps {
|
||||
children?: React.ReactNode;
|
||||
dir: Direction;
|
||||
}
|
||||
declare const DirectionProvider: React.FC<DirectionProviderProps>;
|
||||
declare function useDirection(localDir?: Direction): Direction;
|
||||
declare const Provider: React.FC<DirectionProviderProps>;
|
||||
|
||||
export { DirectionProvider, Provider, useDirection };
|
||||
52
node_modules/@radix-ui/react-direction/dist/index.js
generated
vendored
Normal file
52
node_modules/@radix-ui/react-direction/dist/index.js
generated
vendored
Normal file
@@ -0,0 +1,52 @@
|
||||
"use strict";
|
||||
var __create = Object.create;
|
||||
var __defProp = Object.defineProperty;
|
||||
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
||||
var __getOwnPropNames = Object.getOwnPropertyNames;
|
||||
var __getProtoOf = Object.getPrototypeOf;
|
||||
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
||||
var __export = (target, all) => {
|
||||
for (var name in all)
|
||||
__defProp(target, name, { get: all[name], enumerable: true });
|
||||
};
|
||||
var __copyProps = (to, from, except, desc) => {
|
||||
if (from && typeof from === "object" || typeof from === "function") {
|
||||
for (let key of __getOwnPropNames(from))
|
||||
if (!__hasOwnProp.call(to, key) && key !== except)
|
||||
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
||||
}
|
||||
return to;
|
||||
};
|
||||
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
||||
// If the importer is in node compatibility mode or this is not an ESM
|
||||
// file that has been converted to a CommonJS file using a Babel-
|
||||
// compatible transform (i.e. "__esModule" has not been set), then set
|
||||
// "default" to the CommonJS "module.exports" for node compatibility.
|
||||
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
||||
mod
|
||||
));
|
||||
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
||||
|
||||
// packages/react/direction/src/index.ts
|
||||
var src_exports = {};
|
||||
__export(src_exports, {
|
||||
DirectionProvider: () => DirectionProvider,
|
||||
Provider: () => Provider,
|
||||
useDirection: () => useDirection
|
||||
});
|
||||
module.exports = __toCommonJS(src_exports);
|
||||
|
||||
// packages/react/direction/src/Direction.tsx
|
||||
var React = __toESM(require("react"));
|
||||
var import_jsx_runtime = require("react/jsx-runtime");
|
||||
var DirectionContext = React.createContext(void 0);
|
||||
var DirectionProvider = (props) => {
|
||||
const { dir, children } = props;
|
||||
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(DirectionContext.Provider, { value: dir, children });
|
||||
};
|
||||
function useDirection(localDir) {
|
||||
const globalDir = React.useContext(DirectionContext);
|
||||
return localDir || globalDir || "ltr";
|
||||
}
|
||||
var Provider = DirectionProvider;
|
||||
//# sourceMappingURL=index.js.map
|
||||
7
node_modules/@radix-ui/react-direction/dist/index.js.map
generated
vendored
Normal file
7
node_modules/@radix-ui/react-direction/dist/index.js.map
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../src/index.ts", "../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"],
|
||||
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;ACAA,YAAuB;AAed;AAZT,IAAM,mBAAyB,oBAAqC,MAAS;AAU7E,IAAM,oBAAsD,CAAC,UAAU;AACrE,QAAM,EAAE,KAAK,SAAS,IAAI;AAC1B,SAAO,4CAAC,iBAAiB,UAAjB,EAA0B,OAAO,KAAM,UAAS;AAC1D;AAIA,SAAS,aAAa,UAAsB;AAC1C,QAAM,YAAkB,iBAAW,gBAAgB;AACnD,SAAO,YAAY,aAAa;AAClC;AAEA,IAAM,WAAW;",
|
||||
"names": []
|
||||
}
|
||||
19
node_modules/@radix-ui/react-direction/dist/index.mjs
generated
vendored
Normal file
19
node_modules/@radix-ui/react-direction/dist/index.mjs
generated
vendored
Normal file
@@ -0,0 +1,19 @@
|
||||
// packages/react/direction/src/Direction.tsx
|
||||
import * as React from "react";
|
||||
import { jsx } from "react/jsx-runtime";
|
||||
var DirectionContext = React.createContext(void 0);
|
||||
var DirectionProvider = (props) => {
|
||||
const { dir, children } = props;
|
||||
return /* @__PURE__ */ jsx(DirectionContext.Provider, { value: dir, children });
|
||||
};
|
||||
function useDirection(localDir) {
|
||||
const globalDir = React.useContext(DirectionContext);
|
||||
return localDir || globalDir || "ltr";
|
||||
}
|
||||
var Provider = DirectionProvider;
|
||||
export {
|
||||
DirectionProvider,
|
||||
Provider,
|
||||
useDirection
|
||||
};
|
||||
//# sourceMappingURL=index.mjs.map
|
||||
7
node_modules/@radix-ui/react-direction/dist/index.mjs.map
generated
vendored
Normal file
7
node_modules/@radix-ui/react-direction/dist/index.mjs.map
generated
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"version": 3,
|
||||
"sources": ["../src/Direction.tsx"],
|
||||
"sourcesContent": ["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"],
|
||||
"mappings": ";AAAA,YAAY,WAAW;AAed;AAZT,IAAM,mBAAyB,oBAAqC,MAAS;AAU7E,IAAM,oBAAsD,CAAC,UAAU;AACrE,QAAM,EAAE,KAAK,SAAS,IAAI;AAC1B,SAAO,oBAAC,iBAAiB,UAAjB,EAA0B,OAAO,KAAM,UAAS;AAC1D;AAIA,SAAS,aAAa,UAAsB;AAC1C,QAAM,YAAkB,iBAAW,gBAAgB;AACnD,SAAO,YAAY,aAAa;AAClC;AAEA,IAAM,WAAW;",
|
||||
"names": []
|
||||
}
|
||||
76
node_modules/@radix-ui/react-direction/package.json
generated
vendored
Normal file
76
node_modules/@radix-ui/react-direction/package.json
generated
vendored
Normal file
@@ -0,0 +1,76 @@
|
||||
{
|
||||
"_from": "@radix-ui/react-direction@1.1.0",
|
||||
"_id": "@radix-ui/react-direction@1.1.0",
|
||||
"_inBundle": false,
|
||||
"_integrity": "sha512-BUuBvgThEiAXh2DWu93XsT+a3aWrGqolGlqqw5VU1kG7p/ZH2cuDlM1sRLNnY3QcBS69UIz2mcKhMxDsdewhjg==",
|
||||
"_location": "/@radix-ui/react-direction",
|
||||
"_phantomChildren": {},
|
||||
"_requested": {
|
||||
"type": "version",
|
||||
"registry": true,
|
||||
"raw": "@radix-ui/react-direction@1.1.0",
|
||||
"name": "@radix-ui/react-direction",
|
||||
"escapedName": "@radix-ui%2freact-direction",
|
||||
"scope": "@radix-ui",
|
||||
"rawSpec": "1.1.0",
|
||||
"saveSpec": null,
|
||||
"fetchSpec": "1.1.0"
|
||||
},
|
||||
"_requiredBy": [
|
||||
"/@radix-ui/react-menu",
|
||||
"/@radix-ui/react-roving-focus",
|
||||
"/@radix-ui/react-scroll-area"
|
||||
],
|
||||
"_resolved": "https://registry.npmmirror.com/@radix-ui/react-direction/-/react-direction-1.1.0.tgz",
|
||||
"_shasum": "a7d39855f4d077adc2a1922f9c353c5977a09cdc",
|
||||
"_spec": "@radix-ui/react-direction@1.1.0",
|
||||
"_where": "/Users/hongbin9/www/botgroup.chat/node_modules/@radix-ui/react-menu",
|
||||
"bugs": {
|
||||
"url": "https://github.com/radix-ui/primitives/issues"
|
||||
},
|
||||
"bundleDependencies": false,
|
||||
"deprecated": false,
|
||||
"description": "## Installation",
|
||||
"exports": {
|
||||
".": {
|
||||
"import": {
|
||||
"types": "./dist/index.d.mts",
|
||||
"default": "./dist/index.mjs"
|
||||
},
|
||||
"require": {
|
||||
"types": "./dist/index.d.ts",
|
||||
"default": "./dist/index.js"
|
||||
}
|
||||
}
|
||||
},
|
||||
"files": [
|
||||
"dist",
|
||||
"README.md"
|
||||
],
|
||||
"homepage": "https://radix-ui.com/primitives",
|
||||
"license": "MIT",
|
||||
"main": "./dist/index.js",
|
||||
"module": "./dist/index.mjs",
|
||||
"name": "@radix-ui/react-direction",
|
||||
"peerDependencies": {
|
||||
"@types/react": "*",
|
||||
"react": "^16.8 || ^17.0 || ^18.0 || ^19.0 || ^19.0.0-rc"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"@types/react": {
|
||||
"optional": true
|
||||
}
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/radix-ui/primitives.git"
|
||||
},
|
||||
"scripts": {
|
||||
"clean": "rm -rf dist",
|
||||
"version": "yarn version"
|
||||
},
|
||||
"sideEffects": false,
|
||||
"source": "./src/index.ts",
|
||||
"types": "./dist/index.d.ts",
|
||||
"version": "1.1.0"
|
||||
}
|
||||
Reference in New Issue
Block a user