@policystudio/policy-studio-ui-vue 1.1.89 → 1.1.90-beta.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/.eslintignore +1 -0
- package/.eslintrc.js +70 -67
- package/.github/workflows/deploy-storybook.yml +1 -1
- package/.storybook/eventBus.js +25 -2
- package/.storybook/main.js +17 -21
- package/babel.config.js +17 -3
- package/dist/css/psui_styles.css +4028 -110346
- package/package.json +37 -24
- package/postcss.config.js +1 -1
- package/scripts/kill-port.sh +12 -0
- package/src/assets/scss/base.scss +27 -23
- package/src/assets/scss/components/PsAccordion.scss +1 -1
- package/src/assets/scss/components/PsChips.scss +3 -3
- package/src/assets/scss/components/PsCostEffectBar.scss +4 -4
- package/src/assets/scss/components/PsProgressBar.scss +4 -4
- package/src/assets/scss/components/PsTabHeader.scss +1 -1
- package/src/assets/scss/components/PsTableResults.scss +2 -63
- package/src/assets/scss/components/PsTestimonialCard.scss +1 -1
- package/src/components/accordion/PsAccordion.vue +20 -21
- package/src/components/accordion/PsAccordionItem.vue +30 -8
- package/src/components/badges-and-tags/PsBadgeWithIcon.vue +6 -3
- package/src/components/badges-and-tags/PsCardInfos.vue +3 -1
- package/src/components/badges-and-tags/PsChartLegend.vue +19 -5
- package/src/components/badges-and-tags/PsCostEffectBar.vue +4 -5
- package/src/components/badges-and-tags/PsHighlightRippleDot.vue +1 -1
- package/src/components/badges-and-tags/PsTestimonialCard.vue +6 -4
- package/src/components/buttons/PsButton.vue +30 -11
- package/src/components/chips/PsChips.vue +5 -2
- package/src/components/controls/PsCheckbox.vue +5 -2
- package/src/components/controls/PsCheckboxSimple.vue +4 -4
- package/src/components/controls/PsDraggable.vue +70 -67
- package/src/components/controls/PsInlineSelector.vue +13 -14
- package/src/components/controls/PsRadioButton.vue +10 -5
- package/src/components/controls/PsRadioButtonSimple.vue +3 -3
- package/src/components/controls/PsSlider.vue +6 -6
- package/src/components/controls/PsSwitch.vue +13 -3
- package/src/components/controls/PsToggle.vue +14 -11
- package/src/components/data-graphics/PsBarChart.vue +4 -2
- package/src/components/datatable/PsDataTable.vue +14 -5
- package/src/components/datatable/PsDataTableItem.vue +17 -4
- package/src/components/forms/PsDropdown.vue +8 -5
- package/src/components/forms/PsDropdownList.vue +1 -1
- package/src/components/forms/PsInput.vue +30 -14
- package/src/components/forms/PsInputSelect.vue +33 -11
- package/src/components/forms/PsInputTextArea.vue +15 -4
- package/src/components/navigations/PsBreadcrumb.vue +1 -1
- package/src/components/notifications/PsDialog.vue +11 -5
- package/src/components/notifications/PsSimpleAlert.vue +22 -10
- package/src/components/notifications/PsToast.vue +8 -3
- package/src/components/playground/PsScrollBar.vue +122 -50
- package/src/components/table-results/PsTableResults.vue +67 -51
- package/src/components/table-results/PsTableResultsBody.vue +3 -1
- package/src/components/table-results/PsTableResultsHead.vue +27 -8
- package/src/components/table-results/PsTableResultsHeadComparison.vue +24 -8
- package/src/components/table-results/PsTableResultsHeadFlexible.vue +18 -6
- package/src/components/table-results/PsTableResultsRow.vue +6 -2
- package/src/components/tabs/PsTabHeader.vue +19 -16
- package/src/components/tooltip/PsDialogTooltip.vue +18 -8
- package/src/components/tooltip/PsRichTooltip.vue +12 -5
- package/src/components/tooltip/PsTooltip.vue +17 -9
- package/src/components/ui/PsDotLoader.vue +5 -5
- package/src/components/ui/PsIcon.vue +6 -2
- package/src/index.js +0 -1
- package/src/stories/Button.stories.js +48 -130
- package/src/stories/Button.vue +59 -0
- package/src/stories/{ElevationSystem.stories.mdx → ElevationSystem.mdx} +1 -1
- package/src/stories/Header.stories.js +41 -0
- package/src/stories/Header.vue +77 -0
- package/src/stories/{Introduction.stories.mdx → Introduction.mdx} +101 -101
- package/src/stories/{Typography.stories.mdx → Typography.mdx} +107 -105
- package/src/stories/button.css +30 -0
- package/src/stories/header.css +32 -0
- package/tailwind.config.js +11 -2
- package/webpack.config.js +22 -0
- package/backup-package-lock.json +0 -37194
- /package/src/stories/{Colors.stories.mdx → Colors.mdx} +0 -0
package/.eslintignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.storybook
|
package/.eslintrc.js
CHANGED
|
@@ -1,68 +1,71 @@
|
|
|
1
|
-
module.exports = {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
'
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
'
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
'
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true
|
|
5
|
+
},
|
|
6
|
+
parser: 'vue-eslint-parser',
|
|
7
|
+
parserOptions: {
|
|
8
|
+
parser: '@babel/eslint-parser',
|
|
9
|
+
requireConfigFile: false,
|
|
10
|
+
babelOptions: {
|
|
11
|
+
babelrc: false,
|
|
12
|
+
configFile: false,
|
|
13
|
+
presets: ['@babel/preset-env'],
|
|
14
|
+
},
|
|
15
|
+
},
|
|
16
|
+
extends: ['plugin:vue/vue3-essential', 'eslint:recommended','plugin:vue/vue3-strongly-recommended'],
|
|
17
|
+
rules: {
|
|
18
|
+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
19
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
20
|
+
'semi': ['warn', 'never'],
|
|
21
|
+
'quotes': [2, 'single'],
|
|
22
|
+
'vue/order-in-components': ['warn', {
|
|
23
|
+
'order': [
|
|
24
|
+
'el',
|
|
25
|
+
'name',
|
|
26
|
+
'key',
|
|
27
|
+
'parent',
|
|
28
|
+
['components', 'directives', 'filters'],
|
|
29
|
+
['props', 'propsData'],
|
|
30
|
+
'functional',
|
|
31
|
+
['delimiters', 'comments'],
|
|
32
|
+
'extends',
|
|
33
|
+
'mixins',
|
|
34
|
+
['provide', 'inject'],
|
|
35
|
+
'ROUTER_GUARDS',
|
|
36
|
+
'layout',
|
|
37
|
+
'middleware',
|
|
38
|
+
'validate',
|
|
39
|
+
'scrollToTop',
|
|
40
|
+
'transition',
|
|
41
|
+
'loading',
|
|
42
|
+
'inheritAttrs',
|
|
43
|
+
'model',
|
|
44
|
+
'emits',
|
|
45
|
+
'setup',
|
|
46
|
+
'asyncData',
|
|
47
|
+
'data',
|
|
48
|
+
'fetch',
|
|
49
|
+
'head',
|
|
50
|
+
'computed',
|
|
51
|
+
'watch',
|
|
52
|
+
'watchQuery',
|
|
53
|
+
'LIFECYCLE_HOOKS',
|
|
54
|
+
'methods',
|
|
55
|
+
['template', 'render'],
|
|
56
|
+
'renderError'
|
|
57
|
+
]
|
|
58
|
+
}]
|
|
59
|
+
},
|
|
60
|
+
overrides: [
|
|
61
|
+
{
|
|
62
|
+
files: [
|
|
63
|
+
'**/__tests__/*.{j,t}s?(x)',
|
|
64
|
+
'**/tests/unit/**/*.spec.{j,t}s?(x)'
|
|
65
|
+
],
|
|
66
|
+
env: {
|
|
67
|
+
jest: true
|
|
68
|
+
}
|
|
65
69
|
}
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
}
|
|
70
|
+
]
|
|
71
|
+
}
|
package/.storybook/eventBus.js
CHANGED
|
@@ -1,3 +1,26 @@
|
|
|
1
|
-
|
|
1
|
+
// this was a vue2 syntax
|
|
2
|
+
// import Vue from 'vue';
|
|
3
|
+
// export const eventBus = new Vue();
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
// import { createApp } from 'vue';
|
|
6
|
+
|
|
7
|
+
// export const app = createApp({});
|
|
8
|
+
// const emitter = app.config.globalProperties.$emitter = {};
|
|
9
|
+
|
|
10
|
+
// export const eventBus = {
|
|
11
|
+
// on(event, callback) {
|
|
12
|
+
// if (!emitter[event]) {
|
|
13
|
+
// emitter[event] = [];
|
|
14
|
+
// }
|
|
15
|
+
// emitter[event].push(callback);
|
|
16
|
+
// },
|
|
17
|
+
// emit(event, ...args) {
|
|
18
|
+
// if (emitter[event]) {
|
|
19
|
+
// emitter[event].forEach(callback => {
|
|
20
|
+
// callback(...args);
|
|
21
|
+
// });
|
|
22
|
+
// }
|
|
23
|
+
// },
|
|
24
|
+
// };
|
|
25
|
+
|
|
26
|
+
// app.mount('#app');
|
package/.storybook/main.js
CHANGED
|
@@ -1,25 +1,21 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
],
|
|
6
|
-
previewHead: (head) => (`
|
|
7
|
-
${head}
|
|
8
|
-
<link rel="preconnect" href="https://fonts.googleapis.com">
|
|
9
|
-
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
|
|
10
|
-
<link href="https://fonts.googleapis.com/css2?family=Lato:wght@100;300;400;700;900&display=swap" rel="stylesheet">
|
|
11
|
-
`),
|
|
12
|
-
"addons": [
|
|
1
|
+
/** @type { import('@storybook/vue3-webpack5').StorybookConfig } */
|
|
2
|
+
const config = {
|
|
3
|
+
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
|
|
4
|
+
addons: [
|
|
13
5
|
"@storybook/addon-links",
|
|
14
6
|
"@storybook/addon-essentials",
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
"@storybook/addon-interactions",
|
|
8
|
+
],
|
|
9
|
+
framework: {
|
|
10
|
+
name: "@storybook/vue3-webpack5",
|
|
11
|
+
options: {
|
|
12
|
+
builder: {
|
|
13
|
+
useSWC: true,
|
|
21
14
|
},
|
|
22
15
|
},
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
16
|
+
},
|
|
17
|
+
docs: {
|
|
18
|
+
autodocs: "tag",
|
|
19
|
+
},
|
|
20
|
+
};
|
|
21
|
+
export default config;
|
package/babel.config.js
CHANGED
|
@@ -1,3 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
const presets = [
|
|
2
|
+
[
|
|
3
|
+
'@babel/preset-env',
|
|
4
|
+
{
|
|
5
|
+
targets: {
|
|
6
|
+
edge: '17',
|
|
7
|
+
firefox: '60',
|
|
8
|
+
chrome: '67',
|
|
9
|
+
safari: '11.1',
|
|
10
|
+
},
|
|
11
|
+
useBuiltIns: 'usage',
|
|
12
|
+
corejs: '3.6.4',
|
|
13
|
+
},
|
|
14
|
+
],
|
|
15
|
+
]
|
|
16
|
+
|
|
17
|
+
module.exports = { presets }
|