@eturnity/eturnity_reusable_components 7.33.2 → 7.33.4-EPDM-11766.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 (42) hide show
  1. package/package.json +30 -33
  2. package/src/Test.vue +10 -0
  3. package/src/components/buttons/closeButton/CloseButton.stories.js +16 -19
  4. package/src/components/buttons/closeButton/index.vue +1 -0
  5. package/src/components/icon/index.vue +1 -1
  6. package/src/components/inputs/toggle/toggle.spec.js +1 -1
  7. package/src/components/modals/modal/modal.stories.js +4 -4
  8. package/src/stories/Button.stories.js +48 -0
  9. package/src/stories/Button.vue +52 -0
  10. package/src/stories/Configure.mdx +364 -0
  11. package/src/stories/Header.stories.js +41 -0
  12. package/src/stories/Header.vue +59 -0
  13. package/src/stories/Page.stories.js +30 -0
  14. package/src/stories/Page.vue +83 -0
  15. package/src/stories/assets/accessibility.png +0 -0
  16. package/src/stories/assets/accessibility.svg +1 -0
  17. package/src/stories/assets/addon-library.png +0 -0
  18. package/src/stories/assets/assets.png +0 -0
  19. package/src/stories/assets/avif-test-image.avif +0 -0
  20. package/src/stories/assets/context.png +0 -0
  21. package/src/stories/assets/discord.svg +1 -0
  22. package/src/stories/assets/docs.png +0 -0
  23. package/src/stories/assets/figma-plugin.png +0 -0
  24. package/src/stories/assets/github.svg +1 -0
  25. package/src/stories/assets/share.png +0 -0
  26. package/src/stories/assets/styling.png +0 -0
  27. package/src/stories/assets/testing.png +0 -0
  28. package/src/stories/assets/theming.png +0 -0
  29. package/src/stories/assets/tutorials.svg +1 -0
  30. package/src/stories/assets/youtube.svg +1 -0
  31. package/src/stories/button.css +30 -0
  32. package/src/stories/header.css +32 -0
  33. package/src/stories/page.css +69 -0
  34. package/.eslintrc.js +0 -186
  35. package/.prettierrc +0 -9
  36. package/.storybook/main.js +0 -8
  37. package/.storybook/preview.js +0 -46
  38. package/babel.config.js +0 -7
  39. package/jest.config.js +0 -19
  40. package/postcss.config.js +0 -6
  41. package/src/components/banner/banner/banner.stories.js +0 -31
  42. /package/src/components/icon/{iconCache.js → iconCache.mjs} +0 -0
@@ -0,0 +1,32 @@
1
+ .storybook-header {
2
+ font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
+ border-bottom: 1px solid rgba(0, 0, 0, 0.1);
4
+ padding: 15px 20px;
5
+ display: flex;
6
+ align-items: center;
7
+ justify-content: space-between;
8
+ }
9
+
10
+ .storybook-header svg {
11
+ display: inline-block;
12
+ vertical-align: top;
13
+ }
14
+
15
+ .storybook-header h1 {
16
+ font-weight: 700;
17
+ font-size: 20px;
18
+ line-height: 1;
19
+ margin: 6px 0 6px 10px;
20
+ display: inline-block;
21
+ vertical-align: top;
22
+ }
23
+
24
+ .storybook-header button + button {
25
+ margin-left: 10px;
26
+ }
27
+
28
+ .storybook-header .welcome {
29
+ color: #333;
30
+ font-size: 14px;
31
+ margin-right: 10px;
32
+ }
@@ -0,0 +1,69 @@
1
+ .storybook-page {
2
+ font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
+ font-size: 14px;
4
+ line-height: 24px;
5
+ padding: 48px 20px;
6
+ margin: 0 auto;
7
+ max-width: 600px;
8
+ color: #333;
9
+ }
10
+
11
+ .storybook-page h2 {
12
+ font-weight: 700;
13
+ font-size: 32px;
14
+ line-height: 1;
15
+ margin: 0 0 4px;
16
+ display: inline-block;
17
+ vertical-align: top;
18
+ }
19
+
20
+ .storybook-page p {
21
+ margin: 1em 0;
22
+ }
23
+
24
+ .storybook-page a {
25
+ text-decoration: none;
26
+ color: #1ea7fd;
27
+ }
28
+
29
+ .storybook-page ul {
30
+ padding-left: 30px;
31
+ margin: 1em 0;
32
+ }
33
+
34
+ .storybook-page li {
35
+ margin-bottom: 8px;
36
+ }
37
+
38
+ .storybook-page .tip {
39
+ display: inline-block;
40
+ border-radius: 1em;
41
+ font-size: 11px;
42
+ line-height: 12px;
43
+ font-weight: 700;
44
+ background: #e7fdd8;
45
+ color: #66bf3c;
46
+ padding: 4px 12px;
47
+ margin-right: 10px;
48
+ vertical-align: top;
49
+ }
50
+
51
+ .storybook-page .tip-wrapper {
52
+ font-size: 13px;
53
+ line-height: 20px;
54
+ margin-top: 40px;
55
+ margin-bottom: 40px;
56
+ }
57
+
58
+ .storybook-page .tip-wrapper svg {
59
+ display: inline-block;
60
+ height: 12px;
61
+ width: 12px;
62
+ margin-right: 4px;
63
+ vertical-align: top;
64
+ margin-top: 3px;
65
+ }
66
+
67
+ .storybook-page .tip-wrapper svg path {
68
+ fill: #1ea7fd;
69
+ }
package/.eslintrc.js DELETED
@@ -1,186 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- browser: true,
5
- node: true,
6
- es6: true,
7
- },
8
- extends: [
9
- 'eslint:recommended',
10
- 'eslint:recommended',
11
- 'plugin:vue/vue3-recommended',
12
- 'plugin:prettier/recommended',
13
- ],
14
- plugins: ['vue', 'prettier'],
15
- parserOptions: {
16
- ecmaVersion: 2020,
17
- sourceType: 'module',
18
- },
19
- rules: {
20
- 'vue/component-name-in-template-casing': [
21
- 'warn',
22
- 'PascalCase',
23
- {
24
- registeredComponentsOnly: false,
25
- ignores: [],
26
- },
27
- ],
28
- 'vue/multi-word-component-names': [
29
- 'warn',
30
- {
31
- ignores: [],
32
- },
33
- ],
34
- 'vue/html-closing-bracket-newline': [
35
- 'warn',
36
- {
37
- singleline: 'never',
38
- multiline: 'always',
39
- },
40
- ],
41
- 'vue/html-closing-bracket-spacing': [
42
- 'warn',
43
- {
44
- startTag: 'never',
45
- endTag: 'never',
46
- selfClosingTag: 'always',
47
- },
48
- ],
49
- 'vue/no-multi-spaces': [
50
- 'warn',
51
- {
52
- ignoreProperties: false,
53
- },
54
- ],
55
- 'vue/html-end-tags': 'warn',
56
- 'keyword-spacing': [
57
- 'warn',
58
- {
59
- before: true, // Require a space before keywords
60
- after: true, // Require a space after keywords
61
- },
62
- ],
63
- // Enforce one space after comma
64
- 'comma-spacing': [
65
- 'warn',
66
- {
67
- before: false, // No space before comma
68
- after: true, // Require a space after comma
69
- },
70
- ],
71
- 'func-call-spacing': ['warn', 'never'],
72
- // Enforce one space around binary operators (+, -, *, /, etc.)
73
- 'space-infix-ops': 'warn',
74
- // Enforce no space inside parentheses
75
- 'space-in-parens': ['warn', 'never'],
76
- // Enforce one space before block statements (if, else, for, etc.)
77
- 'space-before-blocks': 'warn',
78
- // Enforce no spaces inside square brackets
79
- 'array-bracket-spacing': ['warn', 'never'],
80
- // Enforce one space before function parentheses
81
- 'space-before-function-paren': ['warn', 'never'],
82
- // Enforce one space inside braces of object literals
83
- 'object-curly-spacing': ['warn', 'always'],
84
- // Enforce one space before and after arrow functions (optional)
85
- 'arrow-spacing': ['warn', { before: true, after: true }],
86
- // Enforce one space after colon in object literals
87
- 'key-spacing': [
88
- 'warn',
89
- {
90
- beforeColon: false, // No space before colon
91
- afterColon: true, // Require one space after colon
92
- mode: 'strict', // Enforce spacing between key and value
93
- },
94
- ],
95
- 'vue/html-indent': 'off',
96
- 'vue/html-quotes': ['warn', 'double'],
97
- 'vue/html-self-closing': [
98
- 'warn',
99
- {
100
- html: {
101
- void: 'always',
102
- normal: 'never',
103
- component: 'always',
104
- },
105
- svg: 'always',
106
- math: 'always',
107
- },
108
- ],
109
- 'vue/require-default-prop': 'warn',
110
- 'vue/require-prop-types': 'warn',
111
- 'vue/v-on-event-hyphenation': [
112
- 'warn',
113
- 'always',
114
- {
115
- autofix: true,
116
- ignore: [],
117
- },
118
- ],
119
- 'vue/prop-name-casing': ['warn', 'camelCase'],
120
- 'vue/order-in-components': 'warn',
121
- 'vue/this-in-template': ['warn', 'never'],
122
- 'vue/attributes-order': [
123
- 'warn',
124
- {
125
- order: [
126
- 'DEFINITION',
127
- 'LIST_RENDERING',
128
- 'CONDITIONALS',
129
- 'RENDER_MODIFIERS',
130
- 'GLOBAL',
131
- ['UNIQUE', 'SLOT'],
132
- 'TWO_WAY_BINDING',
133
- 'OTHER_DIRECTIVES',
134
- 'OTHER_ATTR',
135
- 'EVENTS',
136
- 'CONTENT',
137
- ],
138
- alphabetical: true,
139
- },
140
- ],
141
- 'vue/no-unused-vars': 'warn',
142
- 'vue/no-use-v-if-with-v-for': [
143
- 'warn',
144
- {
145
- allowUsingIterationVar: false,
146
- },
147
- ],
148
- 'no-unused-vars': 'warn',
149
- 'no-undef': 'warn',
150
- 'no-console': 'warn',
151
- 'no-debugger': 'warn',
152
- 'no-multi-spaces': 'warn',
153
- 'no-mixed-spaces-and-tabs': 'warn',
154
- 'no-redeclare': 'warn',
155
- 'vue/no-reserved-component-names': 'warn',
156
- 'vue/no-deprecated-destroyed-lifecycle': 'warn',
157
- 'no-prototype-builtins': 'warn',
158
- 'no-unsafe-finally': 'warn',
159
- 'max-len': [
160
- 'warn',
161
- {
162
- code: 120,
163
- tabWidth: 2,
164
- ignoreUrls: true,
165
- ignoreComments: true,
166
- ignoreTrailingComments: true,
167
- ignorePattern: '^import\\s.+\\sfrom\\s.+;$',
168
- },
169
- ],
170
- 'prettier/prettier': [
171
- 'warn',
172
- {
173
- semi: false,
174
- singleQuote: true,
175
- trailingComma: 'es5',
176
- printWidth: 80,
177
- tabWidth: 2,
178
- useTabs: false,
179
- endOfLine: 'auto',
180
- },
181
- ],
182
- },
183
- globals: {
184
- _: true,
185
- },
186
- }
package/.prettierrc DELETED
@@ -1,9 +0,0 @@
1
- {
2
- "semi": false,
3
- "singleQuote": true,
4
- "printWidth": 80,
5
- "tabWidth": 2,
6
- "trailingComma": "es5",
7
- "bracketSpacing": true,
8
- "vueIndentScriptAndStyle": true
9
- }
@@ -1,8 +0,0 @@
1
- module.exports = {
2
- stories: ["../src/components/**/*.stories.@(js|mdx)"],
3
- addons: [
4
- "@storybook/addon-links",
5
- "@storybook/addon-essentials",
6
- "@storybook/addon-docs",
7
- ],
8
- }
@@ -1,46 +0,0 @@
1
- import { ThemeProvider } from "vue3-styled-components"
2
-
3
- const theme = {
4
- colors: {
5
- primary: "#48a2d0",
6
- secondary: "#fdb813",
7
- tertiary: "#d5d5d5",
8
- black: "#353535",
9
- yellow: "#fdb813",
10
- darkGray: "#818181",
11
- gray1: "#666",
12
- mediumGray: "#d5d5d5",
13
- lightGray: "#f2f2f2",
14
- white: "#fff",
15
- blue: "#48a2d0",
16
- red: "#ff7e7e",
17
- blue1: "#e4efff",
18
- grey1: "#666",
19
- grey2: "#c4c4c4",
20
- grey3: "#b2b9c5",
21
- grey4: "#ebeef4",
22
- grey5: "#fafafa",
23
- green: "#99db0c",
24
- disabled: "#dfe1e1",
25
- },
26
- screen: {
27
- mobileSmall: "345px",
28
- mobile: "425px",
29
- mobileLarge: "530px",
30
- tablet: "768px",
31
- tabletLarge: "950px",
32
- },
33
- borderRadius: "4px",
34
- }
35
-
36
- export const decorators = [
37
- (story) => ({
38
- components: { story, ThemeProvider },
39
- data: () => ({ theme }),
40
- template: '<theme-provider :theme="theme"><story/> </theme-provider>',
41
- }),
42
- ]
43
-
44
- export const parameters = {
45
- actions: { argTypesRegex: "^on[A-Z].*" },
46
- }
package/babel.config.js DELETED
@@ -1,7 +0,0 @@
1
- module.exports = {
2
- presets: ['@vue/cli-plugin-babel/preset', '@babel/preset-env'],
3
- plugins: [
4
- '@babel/plugin-syntax-import-meta',
5
- '@babel/plugin-transform-runtime',
6
- ],
7
- }
package/jest.config.js DELETED
@@ -1,19 +0,0 @@
1
- module.exports = {
2
- transform: {
3
- '^.+\\.vue$': 'vue-jest',
4
- '^.+\\.js$': 'babel-jest',
5
- },
6
- moduleFileExtensions: ['js', 'json', 'vue'],
7
- transformIgnorePatterns: ['<rootDir>/node_modules/'],
8
- testMatch: ['**/src/**/*.spec.js'],
9
- collectCoverageFrom: [
10
- 'src/**/*.{js,vue}',
11
- '!src/main.js',
12
- '!src/router/index.js',
13
- '!**/node_modules/**',
14
- ],
15
- moduleNameMapper: {
16
- '^@/(.*)$': '<rootDir>/src/$1',
17
- '^@/components/icon/iconCache$': '<rootDir>/tests/__mocks__/iconCache.js',
18
- },
19
- }
package/postcss.config.js DELETED
@@ -1,6 +0,0 @@
1
- module.exports = {
2
- plugins: {
3
- // Add your PostCSS plugins here
4
- // Example: require('autoprefixer')
5
- }
6
- }
@@ -1,31 +0,0 @@
1
- import Modal from './index.vue'
2
-
3
- export default {
4
- title: 'Modal',
5
- component: Modal,
6
- // argTypes: {},
7
- }
8
-
9
- const Template = (args, { argTypes }) => ({
10
- // Components used in your story `template` are defined in the `components` object
11
- components: { Modal },
12
- // The story's `args` need to be mapped into the template through the `setup()` method
13
- props: Object.keys(argTypes),
14
- template: '<modal v-bind="$props" />',
15
-
16
- // import Modal from "@eturnity/eturnity_reusable_components/src/components/modals/modal"
17
- // This is a more flexible modal box, where the parent can decide how the body of the modal looks
18
- // To use:
19
- // <modal :isOpen="isOpen" @on-close="$emit('on-close-summary')" :preventOutsideClose="true" :isLoading="true" :hideClose="true">
20
- // <div>Data....</div>
21
- // </modal>
22
- })
23
-
24
- export const Default = Template.bind({
25
- isOpen: true,
26
- preventOutsideClose: true,
27
- isLoading: false,
28
- hideClose: false,
29
- backdrop: 'dark',
30
- })
31
- Default.args = {}