@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.
Files changed (68) hide show
  1. package/.storybook/main.js +17 -0
  2. package/.storybook/preview.js +14 -0
  3. package/README.md +14 -0
  4. package/cypress/support/component.js +2 -1
  5. package/dist/index.esm.js +873 -846
  6. package/dist/index.esm.js.map +1 -1
  7. package/dist/index.js +893 -868
  8. package/dist/index.js.map +1 -1
  9. package/package.json +17 -10
  10. package/pnpm-workspace.yaml +3 -0
  11. package/src/Badge/Badge.stories.js +12 -0
  12. package/src/Badge/Badge.vue +4 -4
  13. package/src/Buttons/DangerButton/DangerButton.stories.js +12 -0
  14. package/src/{DangerButton → Buttons/DangerButton}/DangerButton.vue +3 -3
  15. package/src/Buttons/RegularButton/RegularButton.stories.js +13 -0
  16. package/src/{RegularButton → Buttons/RegularButton}/RegularButton.vue +3 -3
  17. package/src/Buttons/ResetButton/ResetButton.stories.js +13 -0
  18. package/src/{ResetButton → Buttons/ResetButton}/ResetButton.vue +3 -3
  19. package/src/Buttons/SecondaryButton/SecondaryButton.stories.js +13 -0
  20. package/src/{SecondaryButton → Buttons/SecondaryButton}/SecondaryButton.vue +3 -3
  21. package/src/Buttons/SubmitButton/SubmitButton.stories.js +13 -0
  22. package/src/{SubmitButton → Buttons/SubmitButton}/SubmitButton.vue +4 -4
  23. package/src/Card/Card.cy.js +45 -8
  24. package/src/Card/Card.stories.js +25 -0
  25. package/src/Card/Card.vue +19 -3
  26. package/src/{CardBody → Card}/CardBody.vue +1 -1
  27. package/src/CardGrid/CardGrid.stories.js +11 -0
  28. package/src/Container/Container.stories.js +12 -0
  29. package/src/Inputs/CheckBoxInput/CheckBoxInput.stories.js +16 -0
  30. package/src/{CheckBoxInput → Inputs/CheckBoxInput}/CheckBoxInput.vue +1 -1
  31. package/src/Inputs/ImageInput/ImageInput.stories.js +16 -0
  32. package/src/{ImageInput → Inputs/ImageInput}/ImageInput.vue +6 -6
  33. package/src/Inputs/NumberInput/NumberInput.stories.js +19 -0
  34. package/src/{NumberInput → Inputs/NumberInput}/NumberInput.vue +7 -7
  35. package/src/Inputs/ResizeImageUpload/ResizeImageUpload.stories.js +16 -0
  36. package/src/{ResizeImageUpload → Inputs/ResizeImageUpload}/ResizeImageUpload.vue +7 -7
  37. package/src/Inputs/Selector/Selector.stories.js +21 -0
  38. package/src/{Selector → Inputs/Selector}/Selector.vue +7 -7
  39. package/src/Inputs/TextInput/TextInput.stories.js +17 -0
  40. package/src/{TextInput → Inputs/TextInput}/TextInput.vue +7 -7
  41. package/src/Loading/Loading.stories.js +12 -0
  42. package/src/Loading/Loading.vue +3 -3
  43. package/src/Modal/Modal.stories.js +12 -0
  44. package/src/Modal/Modal.vue +3 -3
  45. package/src/Navbar/MobileMenuButton.vue +4 -4
  46. package/src/Navbar/Navbar.stories.js +23 -0
  47. package/src/Pagination/Pagination.stories.js +16 -0
  48. package/src/Pagination/Pagination.vue +1 -1
  49. package/src/RangeView/RangeView.stories.js +16 -0
  50. package/src/SectionTitle/SectionTitle.stories.js +12 -0
  51. package/src/Spinner/Spinner.stories.js +10 -0
  52. package/src/StyledTable/StyledTable.stories.js +10 -0
  53. package/src/index.js +13 -13
  54. package/styles/index.css +78 -0
  55. package/src/CardBody/CardBody.cy.js +0 -18
  56. package/src/CardImage/CardImage.cy.js +0 -18
  57. /package/src/{DangerButton → Buttons/DangerButton}/DangerButton.cy.js +0 -0
  58. /package/src/{RegularButton → Buttons/RegularButton}/RegularButton.cy.js +0 -0
  59. /package/src/{ResetButton → Buttons/ResetButton}/ResetButton.cy.js +0 -0
  60. /package/src/{SecondaryButton → Buttons/SecondaryButton}/SecondaryButton.cy.js +0 -0
  61. /package/src/{SubmitButton → Buttons/SubmitButton}/SubmitButton.cy.js +0 -0
  62. /package/src/{CardImage → Card}/CardImage.vue +0 -0
  63. /package/src/{CheckBoxInput → Inputs/CheckBoxInput}/CheckBoxInput.cy.js +0 -0
  64. /package/src/{ImageInput → Inputs/ImageInput}/ImageInput.cy.js +0 -0
  65. /package/src/{NumberInput → Inputs/NumberInput}/NumberInput.cy.js +0 -0
  66. /package/src/{ResizeImageUpload → Inputs/ResizeImageUpload}/ResizeImageUpload.cy.js +0 -0
  67. /package/src/{Selector → Inputs/Selector}/Selector.cy.js +0 -0
  68. /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;
@@ -0,0 +1,14 @@
1
+ /** @type { import('@storybook/vue3').Preview } */
2
+ import '../styles/index.css';
3
+ const preview = {
4
+ parameters: {
5
+ controls: {
6
+ matchers: {
7
+ color: /(background|color)$/i,
8
+ date: /Date$/i,
9
+ },
10
+ },
11
+ },
12
+ };
13
+
14
+ export default preview;
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)