@policystudio/policy-studio-ui-vue 1.1.90-beta.5 → 1.1.91
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/.eslintrc.js +67 -81
- package/.github/workflows/deploy-storybook.yml +1 -1
- package/.storybook/PolicyStudio.js +10 -0
- package/.storybook/eventBus.js +3 -0
- package/.storybook/main.js +25 -0
- package/.storybook/manager.js +6 -0
- package/babel.config.js +3 -17
- package/backup-package-lock.json +37194 -0
- package/dist/css/psui_styles.css +110273 -4031
- package/package.json +33 -52
- package/postcss.config.js +1 -1
- package/src/assets/scss/base.scss +23 -27
- 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 +1 -1
- package/src/assets/scss/components/PsTestimonialCard.scss +1 -1
- package/src/components/accordion/PsAccordion.vue +21 -20
- package/src/components/accordion/PsAccordionItem.vue +8 -30
- package/src/components/badges-and-tags/PsBadgeWithIcon.vue +4 -8
- package/src/components/badges-and-tags/PsCardInfos.vue +1 -3
- package/src/components/badges-and-tags/PsChartLegend.vue +5 -19
- package/src/components/badges-and-tags/PsCostEffectBar.vue +5 -4
- package/src/components/badges-and-tags/PsHighlightRippleDot.vue +1 -1
- package/src/components/badges-and-tags/PsProgressBar.vue +1 -1
- package/src/components/badges-and-tags/PsTestimonialCard.vue +4 -6
- package/src/components/buttons/PsButton.vue +88 -85
- package/src/components/chips/PsChips.vue +2 -5
- package/src/components/controls/PsCheckbox.vue +2 -5
- package/src/components/controls/PsCheckboxSimple.vue +4 -4
- package/src/components/controls/PsDraggable.vue +67 -70
- package/src/components/controls/PsInlineSelector.vue +14 -13
- package/src/components/controls/PsRadioButton.vue +5 -10
- package/src/components/controls/PsRadioButtonSimple.vue +3 -3
- package/src/components/controls/PsSlider.vue +6 -6
- package/src/components/controls/PsSwitch.vue +3 -13
- package/src/components/controls/PsToggle.vue +11 -14
- package/src/components/data-graphics/PsBarChart.vue +2 -4
- package/src/components/datatable/PsDataTable.vue +5 -14
- package/src/components/datatable/PsDataTableItem.vue +4 -17
- package/src/components/forms/PsDropdown.vue +5 -8
- package/src/components/forms/PsDropdownList.vue +1 -1
- package/src/components/forms/PsInput.vue +14 -30
- package/src/components/forms/PsInputSelect.vue +11 -33
- package/src/components/forms/PsInputTextArea.vue +4 -15
- package/src/components/navigations/PsBreadcrumb.vue +1 -1
- package/src/components/notifications/PsDialog.vue +5 -11
- package/src/components/notifications/PsSimpleAlert.vue +10 -22
- package/src/components/notifications/PsToast.vue +3 -8
- package/src/components/playground/PsScrollBar.vue +50 -122
- package/src/components/table-results/PsTableResults.vue +60 -76
- package/src/components/table-results/PsTableResultsBody.vue +1 -3
- package/src/components/table-results/PsTableResultsHead.vue +13 -32
- package/src/components/table-results/PsTableResultsHeadComparison.vue +8 -24
- package/src/components/table-results/PsTableResultsHeadFlexible.vue +11 -23
- package/src/components/table-results/PsTableResultsRow.vue +2 -6
- package/src/components/tabs/PsTabHeader.vue +16 -19
- package/src/components/tooltip/PsDialogTooltip.vue +8 -18
- package/src/components/tooltip/PsRichTooltip.vue +5 -12
- package/src/components/tooltip/PsTooltip.vue +9 -17
- package/src/components/ui/PsDotLoader.vue +5 -5
- package/src/components/ui/PsIcon.vue +2 -6
- package/src/{index.ts → index.js} +1 -0
- package/src/stories/{Accordion.stories.ts → Accordion.stories.js} +2 -2
- package/src/stories/{BadgeWithIcon.stories.ts → BadgeWithIcon.stories.js} +1 -1
- package/src/stories/{BarChart.stories.ts → BarChart.stories.js} +1 -1
- package/src/stories/{Breadcrumb.stories.ts → Breadcrumb.stories.js} +4 -1
- package/src/stories/Button.stories.js +130 -0
- package/src/stories/{CardInfos.stories.ts → CardInfos.stories.js} +2 -1
- package/src/stories/{ChartLegend.stories.ts → ChartLegend.stories.js} +2 -1
- package/src/stories/{Checkbox.stories.ts → Checkbox.stories.js} +1 -1
- package/src/stories/{CheckboxSimple.stories.ts → CheckboxSimple.stories.js} +1 -1
- package/src/stories/{Chips.stories.ts → Chips.stories.js} +22 -24
- package/src/stories/{ClimateZoneBadge.stories.ts → ClimateZoneBadge.stories.js} +1 -1
- package/src/stories/{CostEffectBar.stories.ts → CostEffectBar.stories.js} +1 -1
- package/src/stories/{Datatable.stories.ts → Datatable.stories.js} +2 -2
- package/src/stories/{DateCardInfo.stories.ts → DateCardInfo.stories.js} +5 -1
- package/src/stories/{ElevationSystem.mdx → ElevationSystem.stories.mdx} +1 -1
- package/src/stories/{InlineSelector.stories.ts → InlineSelector.stories.js} +1 -1
- package/src/stories/{InputTextArea.stories.ts → InputTextArea.stories.js} +1 -1
- package/src/stories/{Introduction.mdx → Introduction.stories.mdx} +101 -101
- package/src/stories/{RadioButtonSimple.stories.ts → RadioButtonSimple.stories.js} +1 -1
- package/src/stories/{Toggle.stories.ts → Toggle.stories.js} +1 -1
- package/src/stories/{Tooltip.stories.ts → Tooltip.stories.js} +3 -3
- package/src/stories/{Typography.mdx → Typography.stories.mdx} +105 -107
- package/src/util/{GeneralFunctions.ts → GeneralFunctions.js} +4 -4
- package/src/util/{imageLoader.ts → imageLoader.js} +7 -7
- package/tailwind.config.js +2 -11
- package/.eslintignore +0 -1
- package/.storybook/PolicyStudio.ts +0 -11
- package/.storybook/eventBus.ts +0 -26
- package/.storybook/main.ts +0 -21
- package/.storybook/manager.ts +0 -7
- package/scripts/kill-port.sh +0 -12
- package/src/App.vue +0 -30
- package/src/shims-vue.d.ts +0 -11
- package/src/stories/Button.stories.ts +0 -48
- package/src/stories/Button.vue +0 -59
- package/src/stories/Header.stories.ts +0 -41
- package/src/stories/Header.vue +0 -77
- package/src/stories/button.css +0 -30
- package/src/stories/header.css +0 -32
- package/tsconfig.json +0 -42
- package/webpack.config.js +0 -22
- /package/.storybook/{preview.ts → preview.js} +0 -0
- /package/src/contents/{ComparisonData.ts → ComparisonData.js} +0 -0
- /package/src/contents/{FlexibleData.ts → FlexibleData.js} +0 -0
- /package/src/contents/{ResultsData.ts → ResultsData.js} +0 -0
- /package/src/stories/{Colors.mdx → Colors.stories.mdx} +0 -0
- /package/src/stories/{Dialog.stories.ts → Dialog.stories.js} +0 -0
- /package/src/stories/{Draggable.stories.ts → Draggable.stories.js} +0 -0
- /package/src/stories/{Dropdown.stories.ts → Dropdown.stories.js} +0 -0
- /package/src/stories/{DropdownList.stories.ts → DropdownList.stories.js} +0 -0
- /package/src/stories/{HighlightRippleDot.stories.ts → HighlightRippleDot.stories.js} +0 -0
- /package/src/stories/{Icon.stories.ts → Icon.stories.js} +0 -0
- /package/src/stories/{Input.stories.ts → Input.stories.js} +0 -0
- /package/src/stories/{InputSelect.stories.ts → InputSelect.stories.js} +0 -0
- /package/src/stories/{MiniTag.stories.ts → MiniTag.stories.js} +0 -0
- /package/src/stories/{Playground.stories.ts → Playground.stories.js} +0 -0
- /package/src/stories/{ProgressBar.stories.ts → ProgressBar.stories.js} +0 -0
- /package/src/stories/{RadioButton.stories.ts → RadioButton.stories.js} +0 -0
- /package/src/stories/{SimpleAlert.stories.ts → SimpleAlert.stories.js} +0 -0
- /package/src/stories/{Slider.stories.ts → Slider.stories.js} +0 -0
- /package/src/stories/{Switch.stories.ts → Switch.stories.js} +0 -0
- /package/src/stories/{TabHeader.stories.ts → TabHeader.stories.js} +0 -0
- /package/src/stories/{TableResults.stories.ts → TableResults.stories.js} +0 -0
- /package/src/stories/{TagScope.stories.ts → TagScope.stories.js} +0 -0
- /package/src/stories/{TestimonialCard.stories.ts → TestimonialCard.stories.js} +0 -0
- /package/src/stories/{Toast.stories.ts → Toast.stories.js} +0 -0
package/.eslintrc.js
CHANGED
|
@@ -1,82 +1,68 @@
|
|
|
1
|
-
|
|
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
|
-
|
|
65
|
-
['template', 'render'],
|
|
66
|
-
'renderError'
|
|
67
|
-
]
|
|
68
|
-
}]
|
|
69
|
-
},
|
|
70
|
-
|
|
71
|
-
overrides: [
|
|
72
|
-
{
|
|
73
|
-
files: [
|
|
74
|
-
'**/__tests__/*.{j,t}s?(x)',
|
|
75
|
-
'**/tests/unit/**/*.spec.{j,t}s?(x)'
|
|
76
|
-
],
|
|
77
|
-
env: {
|
|
78
|
-
jest: true
|
|
79
|
-
}
|
|
1
|
+
module.exports = {
|
|
2
|
+
root: true,
|
|
3
|
+
env: {
|
|
4
|
+
node: true
|
|
5
|
+
},
|
|
6
|
+
extends: [
|
|
7
|
+
'plugin:vue/essential',
|
|
8
|
+
'eslint:recommended',
|
|
9
|
+
],
|
|
10
|
+
parserOptions: {
|
|
11
|
+
parser: 'babel-eslint',
|
|
12
|
+
requireConfigFile: false,
|
|
13
|
+
},
|
|
14
|
+
rules: {
|
|
15
|
+
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
16
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
17
|
+
'semi': ['warn', 'never'],
|
|
18
|
+
'quotes': [2, 'single'],
|
|
19
|
+
'vue/order-in-components': ['warn', {
|
|
20
|
+
'order': [
|
|
21
|
+
'el',
|
|
22
|
+
'name',
|
|
23
|
+
'key',
|
|
24
|
+
'parent',
|
|
25
|
+
['components', 'directives', 'filters'],
|
|
26
|
+
['props', 'propsData'],
|
|
27
|
+
'functional',
|
|
28
|
+
['delimiters', 'comments'],
|
|
29
|
+
'extends',
|
|
30
|
+
'mixins',
|
|
31
|
+
['provide', 'inject'],
|
|
32
|
+
'ROUTER_GUARDS',
|
|
33
|
+
'layout',
|
|
34
|
+
'middleware',
|
|
35
|
+
'validate',
|
|
36
|
+
'scrollToTop',
|
|
37
|
+
'transition',
|
|
38
|
+
'loading',
|
|
39
|
+
'inheritAttrs',
|
|
40
|
+
'model',
|
|
41
|
+
'emits',
|
|
42
|
+
'setup',
|
|
43
|
+
'asyncData',
|
|
44
|
+
'data',
|
|
45
|
+
'fetch',
|
|
46
|
+
'head',
|
|
47
|
+
'computed',
|
|
48
|
+
'watch',
|
|
49
|
+
'watchQuery',
|
|
50
|
+
'LIFECYCLE_HOOKS',
|
|
51
|
+
'methods',
|
|
52
|
+
['template', 'render'],
|
|
53
|
+
'renderError'
|
|
54
|
+
]
|
|
55
|
+
}]
|
|
56
|
+
},
|
|
57
|
+
overrides: [
|
|
58
|
+
{
|
|
59
|
+
files: [
|
|
60
|
+
'**/__tests__/*.{j,t}s?(x)',
|
|
61
|
+
'**/tests/unit/**/*.spec.{j,t}s?(x)'
|
|
62
|
+
],
|
|
63
|
+
env: {
|
|
64
|
+
jest: true
|
|
80
65
|
}
|
|
81
|
-
|
|
82
|
-
|
|
66
|
+
}
|
|
67
|
+
]
|
|
68
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { create } from '@storybook/theming';
|
|
2
|
+
import logo from '../src/assets/images/policy-studio.svg';
|
|
3
|
+
|
|
4
|
+
export default create({
|
|
5
|
+
base: 'light',
|
|
6
|
+
brandTitle: 'Policy Studio UI Vue',
|
|
7
|
+
brandUrl: 'https://policystudio.co/',
|
|
8
|
+
brandImage: logo,
|
|
9
|
+
brandTarget: '_blank',
|
|
10
|
+
});
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
"stories": [
|
|
3
|
+
"../src/**/*.stories.mdx",
|
|
4
|
+
"../src/**/*.stories.@(js|jsx|ts|tsx)"
|
|
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": [
|
|
13
|
+
"@storybook/addon-links",
|
|
14
|
+
"@storybook/addon-essentials",
|
|
15
|
+
{
|
|
16
|
+
name: '@storybook/addon-postcss',
|
|
17
|
+
options: {
|
|
18
|
+
postcssLoaderOptions: {
|
|
19
|
+
implementation: require('postcss'),
|
|
20
|
+
},
|
|
21
|
+
},
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
"framework": "@storybook/vue"
|
|
25
|
+
}
|
package/babel.config.js
CHANGED
|
@@ -1,17 +1,3 @@
|
|
|
1
|
-
|
|
2
|
-
[
|
|
3
|
-
|
|
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 }
|
|
1
|
+
module.exports = {
|
|
2
|
+
presets: ['@vue/cli-plugin-babel/preset'],
|
|
3
|
+
}
|