@xplortech/apollo-react 1.0.0-beta.7.1 → 2.4.2
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/README.md +5 -15
- package/css/.gitkeep +0 -0
- package/css/apollo.css +6822 -0
- package/dist/components.d.ts +27 -1
- package/dist/components.js +57 -33
- package/dist/components.js.map +1 -1
- package/dist/react-component-lib/createComponent.d.ts +1 -1
- package/dist/react-component-lib/createComponent.js +15 -9
- package/dist/react-component-lib/createComponent.js.map +1 -1
- package/dist/react-component-lib/createOverlayComponent.d.ts +5 -4
- package/dist/react-component-lib/createOverlayComponent.js +18 -10
- package/dist/react-component-lib/createOverlayComponent.js.map +1 -1
- package/dist/react-component-lib/utils/attachProps.d.ts +3 -6
- package/dist/react-component-lib/utils/attachProps.js +21 -25
- package/dist/react-component-lib/utils/attachProps.js.map +1 -1
- package/dist/react-component-lib/utils/case.js.map +1 -1
- package/dist/react-component-lib/utils/dev.js.map +1 -1
- package/dist/react-component-lib/utils/index.d.ts +4 -1
- package/dist/react-component-lib/utils/index.js +14 -4
- package/dist/react-component-lib/utils/index.js.map +1 -1
- package/package.json +59 -13
- /package/{licence → LICENSE} +0 -0
package/README.md
CHANGED
|
@@ -1,27 +1,19 @@
|
|
|
1
|
-
# React Components for Xplor Apollo
|
|
1
|
+
# Apollo React - React Components for Xplor Apollo
|
|
2
2
|
|
|
3
3
|
This package contains React bindings for Apollo components. Apollo Core uses web components, but this package wraps those components in a React-friendly JSX syntax.
|
|
4
4
|
|
|
5
|
-
**If your app uses React and you want to use Apollo components, you
|
|
5
|
+
**If your app uses React and you want to use Apollo components, you should use this package!**
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
|
-
Apollo React is published as a
|
|
10
|
-
|
|
11
|
-
Create a `.npmrc` file at the root of your project with the token:
|
|
12
|
-
|
|
13
|
-
```
|
|
14
|
-
//registry.npmjs.org/:_authToken=${NPM_TOKEN}
|
|
15
|
-
```
|
|
9
|
+
Apollo React is published as a public package on NPM.
|
|
16
10
|
|
|
17
11
|
Install:
|
|
18
12
|
|
|
19
13
|
```bash
|
|
20
|
-
npm install @xplortech/apollo-
|
|
14
|
+
npm install @xplortech/apollo-react@latest
|
|
21
15
|
```
|
|
22
16
|
|
|
23
|
-
> Note: You will need to set up your NPM token in CI. [Check NPM's documentation on the topic][npm-ci-token].
|
|
24
|
-
|
|
25
17
|
## Getting Started
|
|
26
18
|
|
|
27
19
|
Most changes rely on changing dash-separated tag names (i.e. `xpl-component`) to camel-case (i.e. `XplComponent`). For example:
|
|
@@ -56,7 +48,7 @@ Whereas with React components you can pass it directly through props:
|
|
|
56
48
|
|
|
57
49
|
```jsx
|
|
58
50
|
/**
|
|
59
|
-
* Notice that we don't need to include an `id` to
|
|
51
|
+
* Notice that we don't need to include an `id` to
|
|
60
52
|
* reference it later in the markup
|
|
61
53
|
*/
|
|
62
54
|
<XplTable data={[
|
|
@@ -70,5 +62,3 @@ Whereas with React components you can pass it directly through props:
|
|
|
70
62
|
]
|
|
71
63
|
]} />
|
|
72
64
|
```
|
|
73
|
-
|
|
74
|
-
[npm-ci-token]: https://docs.npmjs.com/using-private-packages-in-a-ci-cd-workflow#set-the-token-as-an-environment-variable-on-the-cicd-server
|
package/css/.gitkeep
ADDED
|
File without changes
|