@namelivia/vue-components 2.1.0 → 4.0.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/.storybook/main.js +17 -0
- package/.storybook/preview.js +14 -0
- package/README.md +14 -0
- package/cypress/support/component.js +2 -1
- package/dist/index.esm.js +873 -846
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +893 -868
- package/dist/index.js.map +1 -1
- package/package.json +17 -10
- package/pnpm-workspace.yaml +3 -0
- package/src/Badge/Badge.stories.js +12 -0
- package/src/Badge/Badge.vue +4 -4
- package/src/Buttons/DangerButton/DangerButton.stories.js +12 -0
- package/src/{DangerButton → Buttons/DangerButton}/DangerButton.vue +3 -3
- package/src/Buttons/RegularButton/RegularButton.stories.js +13 -0
- package/src/{RegularButton → Buttons/RegularButton}/RegularButton.vue +3 -3
- package/src/Buttons/ResetButton/ResetButton.stories.js +13 -0
- package/src/{ResetButton → Buttons/ResetButton}/ResetButton.vue +3 -3
- package/src/Buttons/SecondaryButton/SecondaryButton.stories.js +13 -0
- package/src/{SecondaryButton → Buttons/SecondaryButton}/SecondaryButton.vue +3 -3
- package/src/Buttons/SubmitButton/SubmitButton.stories.js +13 -0
- package/src/{SubmitButton → Buttons/SubmitButton}/SubmitButton.vue +4 -4
- package/src/Card/Card.cy.js +45 -8
- package/src/Card/Card.stories.js +25 -0
- package/src/Card/Card.vue +19 -3
- package/src/{CardBody → Card}/CardBody.vue +1 -1
- package/src/CardGrid/CardGrid.stories.js +11 -0
- package/src/Container/Container.stories.js +12 -0
- package/src/Inputs/CheckBoxInput/CheckBoxInput.stories.js +16 -0
- package/src/{CheckBoxInput → Inputs/CheckBoxInput}/CheckBoxInput.vue +1 -1
- package/src/Inputs/ImageInput/ImageInput.stories.js +16 -0
- package/src/{ImageInput → Inputs/ImageInput}/ImageInput.vue +6 -6
- package/src/Inputs/NumberInput/NumberInput.stories.js +19 -0
- package/src/{NumberInput → Inputs/NumberInput}/NumberInput.vue +7 -7
- package/src/Inputs/ResizeImageUpload/ResizeImageUpload.stories.js +16 -0
- package/src/{ResizeImageUpload → Inputs/ResizeImageUpload}/ResizeImageUpload.vue +7 -7
- package/src/Inputs/Selector/Selector.stories.js +21 -0
- package/src/{Selector → Inputs/Selector}/Selector.vue +7 -7
- package/src/Inputs/TextInput/TextInput.stories.js +17 -0
- package/src/{TextInput → Inputs/TextInput}/TextInput.vue +7 -7
- package/src/Loading/Loading.stories.js +12 -0
- package/src/Loading/Loading.vue +3 -3
- package/src/Modal/Modal.stories.js +12 -0
- package/src/Modal/Modal.vue +3 -3
- package/src/Navbar/MobileMenuButton.vue +4 -4
- package/src/Navbar/Navbar.stories.js +23 -0
- package/src/Pagination/Pagination.stories.js +16 -0
- package/src/Pagination/Pagination.vue +1 -1
- package/src/RangeView/RangeView.stories.js +16 -0
- package/src/SectionTitle/SectionTitle.stories.js +12 -0
- package/src/Spinner/Spinner.stories.js +10 -0
- package/src/StyledTable/StyledTable.stories.js +10 -0
- package/src/index.js +13 -13
- package/styles/index.css +78 -0
- package/src/CardBody/CardBody.cy.js +0 -18
- package/src/CardImage/CardImage.cy.js +0 -18
- /package/src/{DangerButton → Buttons/DangerButton}/DangerButton.cy.js +0 -0
- /package/src/{RegularButton → Buttons/RegularButton}/RegularButton.cy.js +0 -0
- /package/src/{ResetButton → Buttons/ResetButton}/ResetButton.cy.js +0 -0
- /package/src/{SecondaryButton → Buttons/SecondaryButton}/SecondaryButton.cy.js +0 -0
- /package/src/{SubmitButton → Buttons/SubmitButton}/SubmitButton.cy.js +0 -0
- /package/src/{CardImage → Card}/CardImage.vue +0 -0
- /package/src/{CheckBoxInput → Inputs/CheckBoxInput}/CheckBoxInput.cy.js +0 -0
- /package/src/{ImageInput → Inputs/ImageInput}/ImageInput.cy.js +0 -0
- /package/src/{NumberInput → Inputs/NumberInput}/NumberInput.cy.js +0 -0
- /package/src/{ResizeImageUpload → Inputs/ResizeImageUpload}/ResizeImageUpload.cy.js +0 -0
- /package/src/{Selector → Inputs/Selector}/Selector.cy.js +0 -0
- /package/src/{TextInput → Inputs/TextInput}/TextInput.cy.js +0 -0
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
/** @type { import('@storybook/vue3-vite').StorybookConfig } */
|
|
4
|
+
const config = {
|
|
5
|
+
"stories": [
|
|
6
|
+
"../src/**/*.mdx",
|
|
7
|
+
"../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"
|
|
8
|
+
],
|
|
9
|
+
"addons": [
|
|
10
|
+
"@storybook/addon-essentials",
|
|
11
|
+
],
|
|
12
|
+
"framework": {
|
|
13
|
+
"name": "@storybook/vue3-vite",
|
|
14
|
+
"options": {}
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
export default config;
|
package/README.md
CHANGED
|
@@ -1 +1,15 @@
|
|
|
1
1
|
# vue-components
|
|
2
|
+
|
|
3
|
+
## Storybook
|
|
4
|
+
|
|
5
|
+
To have a quick overview, run the following command to start the Storybook server:
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
pnpm run storybook
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Then open your browser and navigate to `http://localhost:6006`.
|
|
12
|
+
|
|
13
|
+
### Colors
|
|
14
|
+
|
|
15
|
+
Colors set via CSS variables. The example theme can be found in `styles/index.css`.
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
|
|
16
16
|
// Import commands.js using ES2015 syntax:
|
|
17
17
|
import './commands'
|
|
18
|
+
import '../../styles/index.css'
|
|
18
19
|
|
|
19
20
|
// Alternatively you can use CommonJS syntax:
|
|
20
21
|
// require('./commands')
|
|
@@ -24,4 +25,4 @@ import { mount } from 'cypress/vue'
|
|
|
24
25
|
Cypress.Commands.add('mount', mount)
|
|
25
26
|
|
|
26
27
|
// Example use:
|
|
27
|
-
// cy.mount(MyComponent)
|
|
28
|
+
// cy.mount(MyComponent)
|