@assemblyvoting/ui-library 0.0.1 → 0.0.3
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 +16 -20
- package/dist/{components/atoms/AVDatetimeInput → AVDatetimeInput}/AVDatetimeInput.vue.d.ts +1 -1
- package/dist/AVDatetimeInput/AVDatetimeInput.vue.d.ts.map +1 -0
- package/dist/{components/atoms/AVDropdown/AVDropdown.vue.d.ts → AVDropdown.vue.d.ts} +1 -1
- package/dist/AVDropdown.vue.d.ts.map +1 -0
- package/dist/{components/atoms/AVFileInput → AVFileInput}/AVFileInput.vue.d.ts +1 -1
- package/dist/AVFileInput/AVFileInput.vue.d.ts.map +1 -0
- package/dist/{components/atoms/AVNumberInput → AVNumberInput}/AVNumberInput.vue.d.ts +1 -1
- package/dist/AVNumberInput/AVNumberInput.vue.d.ts.map +1 -0
- package/dist/{components/atoms/AVPasswordInput → AVPasswordInput}/AVPasswordInput.vue.d.ts +1 -1
- package/dist/AVPasswordInput/AVPasswordInput.vue.d.ts.map +1 -0
- package/dist/AVRadio/AVRadio.vue.d.ts +5 -0
- package/dist/AVRadio/AVRadio.vue.d.ts.map +1 -0
- package/dist/{components/atoms/AVTextArea → AVTextArea}/AVTextArea.vue.d.ts +1 -1
- package/dist/AVTextArea/AVTextArea.vue.d.ts.map +1 -0
- package/dist/{components/atoms/AVTextInput → AVTextInput}/AVTextInput.vue.d.ts +1 -1
- package/dist/AVTextInput/AVTextInput.vue.d.ts.map +1 -0
- package/dist/UILibrary.d.ts +2 -2
- package/dist/UILibrary.d.ts.map +1 -1
- package/dist/index.cjs +20 -20
- package/dist/index.js +7747 -7607
- package/dist/molecules/AVRadioGroup/AVRadioGroup.vue.d.ts +5 -0
- package/dist/molecules/AVRadioGroup/AVRadioGroup.vue.d.ts.map +1 -0
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/dist/components/atoms/AVDatetimeInput/AVDatetimeInput.vue.d.ts.map +0 -1
- package/dist/components/atoms/AVDropdown/AVDropdown.vue.d.ts.map +0 -1
- package/dist/components/atoms/AVFileInput/AVFileInput.vue.d.ts.map +0 -1
- package/dist/components/atoms/AVNumberInput/AVNumberInput.vue.d.ts.map +0 -1
- package/dist/components/atoms/AVPasswordInput/AVPasswordInput.vue.d.ts.map +0 -1
- package/dist/components/atoms/AVTextArea/AVTextArea.vue.d.ts.map +0 -1
- package/dist/components/atoms/AVTextInput/AVTextInput.vue.d.ts.map +0 -1
package/README.md
CHANGED
@@ -6,18 +6,17 @@ Description...
|
|
6
6
|
|
7
7
|
## Setup
|
8
8
|
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
`yarn add npm-package-name`
|
9
|
+
`npm i @assemblyvoting/ui-library`
|
10
|
+
|
11
|
+
`yarn add @assemblyvoting/ui-library`
|
13
12
|
|
14
|
-
## Importing library as a plugin
|
13
|
+
## Importing library as a plugin (recommended)
|
15
14
|
|
16
15
|
In the main file:
|
17
16
|
|
18
17
|
```
|
19
|
-
import * as UILibrary from "
|
20
|
-
import "
|
18
|
+
import * as UILibrary from "@assemblyvoting/ui-library"; // Imports components
|
19
|
+
import "@assemblyvoting/ui-library/styles"; // Imports styles
|
21
20
|
|
22
21
|
const app = createApp(App);
|
23
22
|
app.use(UILibrary.default); // Plugin-in the library
|
@@ -29,9 +28,9 @@ app.mount("#app");
|
|
29
28
|
In the file you want to use it:
|
30
29
|
|
31
30
|
```
|
32
|
-
import { ComponentName } from
|
31
|
+
import { ComponentName } from "@assemblyvoting/ui-library"
|
33
32
|
|
34
|
-
<
|
33
|
+
<ComponentName />
|
35
34
|
|
36
35
|
```
|
37
36
|
## Project Setup
|
@@ -77,14 +76,11 @@ yarn build-storybook
|
|
77
76
|
```
|
78
77
|
### Creating new components
|
79
78
|
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
```sh
|
89
|
-
@app/src/UILibrary.ts
|
90
|
-
```
|
79
|
+
Recommendations:
|
80
|
+
- Use REMs as measure units. `1 REM = 16px`.
|
81
|
+
- Check the component in different browsers.
|
82
|
+
- Check the component both in the storybook view and in the development App.
|
83
|
+
- Most of the UI components from our design system uses [Tailwindcss utility classes](https://tailwindcss.com/docs/preflight) , you can implement them by using `@apply utility-class-1 utility-class2;` in your regular css file.
|
84
|
+
- The colors we use are named `slate`, `avblue` and `semantic`, which you can use inside the utility classes: `bg-avblue-600`, `text-slate-800`, `border-semantic-danger-1`.
|
85
|
+
- Remember to use the AV prefix both for component and class names.
|
86
|
+
- Once the component is ready, you need to include it on the component index at `@app/src/components.index.ts` and then in the Library (both as plugin component and as regular export) at `@app/src/UILibrary.ts`.
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from "/Users/alexis.toledo/Projects/ui-library/src/components/atoms/AVDatetimeInput/AVDatetimeInput.vue?vue&type=script&setup=true&lang.ts";
|
2
|
-
import "./AVDatetimeInput.css?vue&type=style&index=0&src=
|
2
|
+
import "./AVDatetimeInput.css?vue&type=style&index=0&src=930f7343&scoped=930f7343&lang.css";
|
3
3
|
declare const _default: any;
|
4
4
|
export default _default;
|
5
5
|
//# sourceMappingURL=AVDatetimeInput.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AVDatetimeInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/atoms/AVDatetimeInput/AVDatetimeInput.vue"],"names":[],"mappings":"AACA,cAAc,sIAAsI,CAAC;AACrJ,OAAO,oFAAoF,CAAC;;AAE5F,wBAA0F"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from "/Users/alexis.toledo/Projects/ui-library/src/components/atoms/AVDropdown/AVDropdown.vue?vue&type=script&setup=true&lang.ts";
|
2
|
-
import "./AVDropdown.css?vue&type=style&index=0&src=
|
2
|
+
import "./AVDropdown.css?vue&type=style&index=0&src=4daf9f87&scoped=4daf9f87&lang.css";
|
3
3
|
declare const _default: any;
|
4
4
|
export default _default;
|
5
5
|
//# sourceMappingURL=AVDropdown.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AVDropdown.vue.d.ts","sourceRoot":"","sources":["../src/components/atoms/AVDropdown/AVDropdown.vue"],"names":[],"mappings":"AACA,cAAc,4HAA4H,CAAC;AAC3I,OAAO,+EAA+E,CAAC;;AAEvF,wBAA0F"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from "/Users/alexis.toledo/Projects/ui-library/src/components/atoms/AVFileInput/AVFileInput.vue?vue&type=script&setup=true&lang.ts";
|
2
|
-
import "./AVFileInput.css?vue&type=style&index=0&src=
|
2
|
+
import "./AVFileInput.css?vue&type=style&index=0&src=6a262d53&scoped=6a262d53&lang.css";
|
3
3
|
declare const _default: any;
|
4
4
|
export default _default;
|
5
5
|
//# sourceMappingURL=AVFileInput.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AVFileInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/atoms/AVFileInput/AVFileInput.vue"],"names":[],"mappings":"AACA,cAAc,8HAA8H,CAAC;AAC7I,OAAO,gFAAgF,CAAC;;AAExF,wBAA0F"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from "/Users/alexis.toledo/Projects/ui-library/src/components/atoms/AVNumberInput/AVNumberInput.vue?vue&type=script&setup=true&lang.ts";
|
2
|
-
import "./AVNumberInput.css?vue&type=style&index=0&src=
|
2
|
+
import "./AVNumberInput.css?vue&type=style&index=0&src=70e8a9d4&scoped=70e8a9d4&lang.css";
|
3
3
|
declare const _default: any;
|
4
4
|
export default _default;
|
5
5
|
//# sourceMappingURL=AVNumberInput.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AVNumberInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/atoms/AVNumberInput/AVNumberInput.vue"],"names":[],"mappings":"AACA,cAAc,kIAAkI,CAAC;AACjJ,OAAO,kFAAkF,CAAC;;AAE1F,wBAA0F"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from "/Users/alexis.toledo/Projects/ui-library/src/components/atoms/AVPasswordInput/AVPasswordInput.vue?vue&type=script&setup=true&lang.ts";
|
2
|
-
import "./AVPasswordInput.css?vue&type=style&index=0&src=
|
2
|
+
import "./AVPasswordInput.css?vue&type=style&index=0&src=89846f2b&scoped=89846f2b&lang.css";
|
3
3
|
declare const _default: any;
|
4
4
|
export default _default;
|
5
5
|
//# sourceMappingURL=AVPasswordInput.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AVPasswordInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/atoms/AVPasswordInput/AVPasswordInput.vue"],"names":[],"mappings":"AACA,cAAc,sIAAsI,CAAC;AACrJ,OAAO,oFAAoF,CAAC;;AAE5F,wBAA0F"}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
export * from "/Users/alexis.toledo/Projects/ui-library/src/components/atoms/AVRadio/AVRadio.vue?vue&type=script&setup=true&lang.ts";
|
2
|
+
import "./AVRadio.css?vue&type=style&index=0&src=d8e45fa7&scoped=d8e45fa7&lang.css";
|
3
|
+
declare const _default: any;
|
4
|
+
export default _default;
|
5
|
+
//# sourceMappingURL=AVRadio.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AVRadio.vue.d.ts","sourceRoot":"","sources":["../../src/components/atoms/AVRadio/AVRadio.vue"],"names":[],"mappings":"AACA,cAAc,sHAAsH,CAAC;AACrI,OAAO,4EAA4E,CAAC;;AAEpF,wBAA0F"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from "/Users/alexis.toledo/Projects/ui-library/src/components/atoms/AVTextArea/AVTextArea.vue?vue&type=script&setup=true&lang.ts";
|
2
|
-
import "./AVTextArea.css?vue&type=style&index=0&src=
|
2
|
+
import "./AVTextArea.css?vue&type=style&index=0&src=092f6ab7&scoped=092f6ab7&lang.css";
|
3
3
|
declare const _default: any;
|
4
4
|
export default _default;
|
5
5
|
//# sourceMappingURL=AVTextArea.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AVTextArea.vue.d.ts","sourceRoot":"","sources":["../../src/components/atoms/AVTextArea/AVTextArea.vue"],"names":[],"mappings":"AACA,cAAc,4HAA4H,CAAC;AAC3I,OAAO,+EAA+E,CAAC;;AAEvF,wBAA0F"}
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from "/Users/alexis.toledo/Projects/ui-library/src/components/atoms/AVTextInput/AVTextInput.vue?vue&type=script&setup=true&lang.ts";
|
2
|
-
import "./AVTextInput.css?vue&type=style&index=0&src=
|
2
|
+
import "./AVTextInput.css?vue&type=style&index=0&src=9e19bd68&scoped=9e19bd68&lang.css";
|
3
3
|
declare const _default: any;
|
4
4
|
export default _default;
|
5
5
|
//# sourceMappingURL=AVTextInput.vue.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"AVTextInput.vue.d.ts","sourceRoot":"","sources":["../../src/components/atoms/AVTextInput/AVTextInput.vue"],"names":[],"mappings":"AACA,cAAc,8HAA8H,CAAC;AAC7I,OAAO,gFAAgF,CAAC;;AAExF,wBAA0F"}
|
package/dist/UILibrary.d.ts
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
import { AVButton, AVSpinner, AVBullet, AVTextInput, AVNumberInput, AVPasswordInput, AVRoundBox, AVRoundButton, AVLabel, AVDatetimeInput, AVTextArea, AVDropdown, AVDropdownContent, AVDropdownItem, AVAlert, AVFileInput } from "./components";
|
1
|
+
import { AVButton, AVSpinner, AVBullet, AVTextInput, AVNumberInput, AVPasswordInput, AVRoundBox, AVRoundButton, AVLabel, AVDatetimeInput, AVTextArea, AVDropdown, AVDropdownContent, AVDropdownItem, AVAlert, AVFileInput, AVRadio, AVRadioGroup } from "./components";
|
2
2
|
declare const _default: {
|
3
3
|
install: (app: any) => void;
|
4
4
|
};
|
5
5
|
export default _default;
|
6
|
-
export { AVButton, AVSpinner, AVBullet, AVTextInput, AVNumberInput, AVPasswordInput, AVRoundBox, AVRoundButton, AVLabel, AVDatetimeInput, AVTextArea, AVDropdown, AVDropdownContent, AVDropdownItem, AVAlert, AVFileInput };
|
6
|
+
export { AVButton, AVSpinner, AVBullet, AVTextInput, AVNumberInput, AVPasswordInput, AVRoundBox, AVRoundButton, AVLabel, AVDatetimeInput, AVTextArea, AVDropdown, AVDropdownContent, AVDropdownItem, AVAlert, AVFileInput, AVRadio, AVRadioGroup };
|
7
7
|
//# sourceMappingURL=UILibrary.d.ts.map
|
package/dist/UILibrary.d.ts.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"UILibrary.d.ts","sourceRoot":"","sources":["../src/UILibrary.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,aAAa,EACb,eAAe,EACf,UAAU,EACV,aAAa,EACb,OAAO,EACP,eAAe,EACf,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,OAAO,EACP,WAAW,
|
1
|
+
{"version":3,"file":"UILibrary.d.ts","sourceRoot":"","sources":["../src/UILibrary.ts"],"names":[],"mappings":"AACA,OAAO,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,aAAa,EACb,eAAe,EACf,UAAU,EACV,aAAa,EACb,OAAO,EACP,eAAe,EACf,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,OAAO,EACP,WAAW,EACX,OAAO,EACP,YAAY,EACb,MAAM,cAAc,CAAC;;;;AACtB,wBAsBE;AACF,OAAO,EACL,QAAQ,EACR,SAAS,EACT,QAAQ,EACR,WAAW,EACX,aAAa,EACb,eAAe,EACf,UAAU,EACV,aAAa,EACb,OAAO,EACP,eAAe,EACf,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,cAAc,EACd,OAAO,EACP,WAAW,EACX,OAAO,EACP,YAAY,EACb,CAAC"}
|