@godown/react 3.0.0-canary.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/LICENSE +9 -0
- package/README.md +14 -0
- package/_create.d.ts +4 -0
- package/_create.js +10 -0
- package/alert.d.ts +3 -0
- package/alert.js +4 -0
- package/avatar.d.ts +3 -0
- package/avatar.js +4 -0
- package/breath.d.ts +3 -0
- package/breath.js +4 -0
- package/button.d.ts +3 -0
- package/button.js +4 -0
- package/card.d.ts +3 -0
- package/card.js +4 -0
- package/carousel.d.ts +3 -0
- package/carousel.js +4 -0
- package/details.d.ts +3 -0
- package/details.js +4 -0
- package/dialog.d.ts +3 -0
- package/dialog.js +4 -0
- package/divider.d.ts +3 -0
- package/divider.js +4 -0
- package/dragbox.d.ts +3 -0
- package/dragbox.js +4 -0
- package/flex.d.ts +3 -0
- package/flex.js +4 -0
- package/form.d.ts +3 -0
- package/form.js +4 -0
- package/grid.d.ts +3 -0
- package/grid.js +4 -0
- package/index.d.ts +29 -0
- package/index.js +28 -0
- package/input.d.ts +3 -0
- package/input.js +4 -0
- package/layout.d.ts +3 -0
- package/layout.js +4 -0
- package/link.d.ts +3 -0
- package/link.js +4 -0
- package/package.json +34 -0
- package/progress.d.ts +3 -0
- package/progress.js +4 -0
- package/range.d.ts +3 -0
- package/range.js +4 -0
- package/rotate.d.ts +3 -0
- package/rotate.js +4 -0
- package/router.d.ts +3 -0
- package/router.js +4 -0
- package/select.d.ts +3 -0
- package/select.js +4 -0
- package/skeleton.d.ts +3 -0
- package/skeleton.js +4 -0
- package/split.d.ts +3 -0
- package/split.js +4 -0
- package/switch.d.ts +3 -0
- package/switch.js +4 -0
- package/text.d.ts +3 -0
- package/text.js +4 -0
- package/time.d.ts +3 -0
- package/time.js +4 -0
- package/tooltip.d.ts +3 -0
- package/tooltip.js +4 -0
- package/typewriter.d.ts +3 -0
- package/typewriter.js +4 -0
package/LICENSE
ADDED
@@ -0,0 +1,9 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2023 startracex
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6
|
+
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
package/README.md
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
# @godown/react
|
2
|
+
|
3
|
+
```sh
|
4
|
+
npm i godown @godown/react
|
5
|
+
```
|
6
|
+
|
7
|
+
```jsx
|
8
|
+
import { Alert } from "@godown/react"; // import all
|
9
|
+
// import { Alert } from "@godown/react/alert.js"; // import one
|
10
|
+
|
11
|
+
export default function () {
|
12
|
+
return <Alert title="Alert" >;
|
13
|
+
}
|
14
|
+
```
|
package/_create.d.ts
ADDED
package/_create.js
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
import { createComponent } from "@lit/react";
|
2
|
+
import * as React from "react";
|
3
|
+
export default function (elementClass, events) {
|
4
|
+
return createComponent({
|
5
|
+
elementClass: elementClass,
|
6
|
+
tagName: elementClass.elementTagName,
|
7
|
+
react: React,
|
8
|
+
events,
|
9
|
+
});
|
10
|
+
}
|
package/alert.d.ts
ADDED
package/alert.js
ADDED
package/avatar.d.ts
ADDED
package/avatar.js
ADDED
package/breath.d.ts
ADDED
package/breath.js
ADDED
package/button.d.ts
ADDED
package/button.js
ADDED
package/card.d.ts
ADDED
package/card.js
ADDED
package/carousel.d.ts
ADDED
package/carousel.js
ADDED
package/details.d.ts
ADDED
package/details.js
ADDED
package/dialog.d.ts
ADDED
package/dialog.js
ADDED
package/divider.d.ts
ADDED
package/divider.js
ADDED
package/dragbox.d.ts
ADDED
package/dragbox.js
ADDED
package/flex.d.ts
ADDED
package/flex.js
ADDED
package/form.d.ts
ADDED
package/form.js
ADDED
package/grid.d.ts
ADDED
package/grid.js
ADDED
package/index.d.ts
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
export { default as Alert } from "./alert.js";
|
2
|
+
export { default as Avatar } from "./avatar.js";
|
3
|
+
export { default as Breath } from "./breath.js";
|
4
|
+
export { default as Button } from "./button.js";
|
5
|
+
export { default as Card } from "./card.js";
|
6
|
+
export { default as Carousel } from "./carousel.js";
|
7
|
+
export { default as Details } from "./details.js";
|
8
|
+
export { default as Dialog } from "./dialog.js";
|
9
|
+
export { default as Divider } from "./divider.js";
|
10
|
+
export { default as Dragbox } from "./dragbox.js";
|
11
|
+
export { default as FlexFlow } from "./flex.js";
|
12
|
+
export { default as Form } from "./form.js";
|
13
|
+
export { default as GridFlow } from "./grid.js";
|
14
|
+
export { default as Input } from "./input.js";
|
15
|
+
export { default as Layout } from "./layout.js";
|
16
|
+
export { default as Link } from "./link.js";
|
17
|
+
export { default as Progress } from "./progress.js";
|
18
|
+
export { default as RangeInput } from "./range.js";
|
19
|
+
export { default as Rotate } from "./rotate.js";
|
20
|
+
export { default as Router } from "./router.js";
|
21
|
+
export { default as SelectInput } from "./select.js";
|
22
|
+
export { default as Skeleton } from "./skeleton.js";
|
23
|
+
export { default as SplitInput } from "./split.js";
|
24
|
+
export { default as SwitchInput } from "./switch.js";
|
25
|
+
export { default as Text } from "./text.js";
|
26
|
+
export { default as Time } from "./time.js";
|
27
|
+
export { default as Tooltip } from "./tooltip.js";
|
28
|
+
export { default as Typewriter } from "./typewriter.js";
|
29
|
+
//# sourceMappingURL=index.d.ts.map
|
package/index.js
ADDED
@@ -0,0 +1,28 @@
|
|
1
|
+
export { default as Alert } from "./alert.js";
|
2
|
+
export { default as Avatar } from "./avatar.js";
|
3
|
+
export { default as Breath } from "./breath.js";
|
4
|
+
export { default as Button } from "./button.js";
|
5
|
+
export { default as Card } from "./card.js";
|
6
|
+
export { default as Carousel } from "./carousel.js";
|
7
|
+
export { default as Details } from "./details.js";
|
8
|
+
export { default as Dialog } from "./dialog.js";
|
9
|
+
export { default as Divider } from "./divider.js";
|
10
|
+
export { default as Dragbox } from "./dragbox.js";
|
11
|
+
export { default as FlexFlow } from "./flex.js";
|
12
|
+
export { default as Form } from "./form.js";
|
13
|
+
export { default as GridFlow } from "./grid.js";
|
14
|
+
export { default as Input } from "./input.js";
|
15
|
+
export { default as Layout } from "./layout.js";
|
16
|
+
export { default as Link } from "./link.js";
|
17
|
+
export { default as Progress } from "./progress.js";
|
18
|
+
export { default as RangeInput } from "./range.js";
|
19
|
+
export { default as Rotate } from "./rotate.js";
|
20
|
+
export { default as Router } from "./router.js";
|
21
|
+
export { default as SelectInput } from "./select.js";
|
22
|
+
export { default as Skeleton } from "./skeleton.js";
|
23
|
+
export { default as SplitInput } from "./split.js";
|
24
|
+
export { default as SwitchInput } from "./switch.js";
|
25
|
+
export { default as Text } from "./text.js";
|
26
|
+
export { default as Time } from "./time.js";
|
27
|
+
export { default as Tooltip } from "./tooltip.js";
|
28
|
+
export { default as Typewriter } from "./typewriter.js";
|
package/input.d.ts
ADDED
package/input.js
ADDED
package/layout.d.ts
ADDED
package/layout.js
ADDED
package/link.d.ts
ADDED
package/link.js
ADDED
package/package.json
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
{
|
2
|
+
"name": "@godown/react",
|
3
|
+
"version": "3.0.0-canary.0",
|
4
|
+
"description": "React components for godown",
|
5
|
+
"type": "module",
|
6
|
+
"main": "index.js",
|
7
|
+
"repository": {
|
8
|
+
"type": "git",
|
9
|
+
"url": "https://github.com/startracex/godown.git",
|
10
|
+
"directory": "packages/react"
|
11
|
+
},
|
12
|
+
"keywords": [],
|
13
|
+
"author": "",
|
14
|
+
"license": "ISC",
|
15
|
+
"dependencies": {
|
16
|
+
"@lit/react": "^1.0.5",
|
17
|
+
"react": "^18",
|
18
|
+
"godown": "^3.0.0-canary.0"
|
19
|
+
},
|
20
|
+
"publishConfig": {
|
21
|
+
"access": "public"
|
22
|
+
},
|
23
|
+
"files": [
|
24
|
+
"*.{js,d.ts}"
|
25
|
+
],
|
26
|
+
"scripts": {
|
27
|
+
"dev": "tsc --watch",
|
28
|
+
"check-types": "tsc --noEmit",
|
29
|
+
"clean": "tsc --build --clean",
|
30
|
+
"build": "tsc",
|
31
|
+
"fmt": "dprint fmt",
|
32
|
+
"lint": "eslint --fix"
|
33
|
+
}
|
34
|
+
}
|
package/progress.d.ts
ADDED
package/progress.js
ADDED
package/range.d.ts
ADDED
package/range.js
ADDED
package/rotate.d.ts
ADDED
package/rotate.js
ADDED
package/router.d.ts
ADDED
package/router.js
ADDED
package/select.d.ts
ADDED
package/select.js
ADDED
package/skeleton.d.ts
ADDED
package/skeleton.js
ADDED
package/split.d.ts
ADDED
package/split.js
ADDED
package/switch.d.ts
ADDED
package/switch.js
ADDED
package/text.d.ts
ADDED
package/text.js
ADDED
package/time.d.ts
ADDED
package/time.js
ADDED
package/tooltip.d.ts
ADDED
package/tooltip.js
ADDED
package/typewriter.d.ts
ADDED
package/typewriter.js
ADDED