@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.
Files changed (131) hide show
  1. package/.eslintrc.js +67 -81
  2. package/.github/workflows/deploy-storybook.yml +1 -1
  3. package/.storybook/PolicyStudio.js +10 -0
  4. package/.storybook/eventBus.js +3 -0
  5. package/.storybook/main.js +25 -0
  6. package/.storybook/manager.js +6 -0
  7. package/babel.config.js +3 -17
  8. package/backup-package-lock.json +37194 -0
  9. package/dist/css/psui_styles.css +110273 -4031
  10. package/package.json +33 -52
  11. package/postcss.config.js +1 -1
  12. package/src/assets/scss/base.scss +23 -27
  13. package/src/assets/scss/components/PsAccordion.scss +1 -1
  14. package/src/assets/scss/components/PsChips.scss +3 -3
  15. package/src/assets/scss/components/PsCostEffectBar.scss +4 -4
  16. package/src/assets/scss/components/PsProgressBar.scss +4 -4
  17. package/src/assets/scss/components/PsTabHeader.scss +1 -1
  18. package/src/assets/scss/components/PsTableResults.scss +1 -1
  19. package/src/assets/scss/components/PsTestimonialCard.scss +1 -1
  20. package/src/components/accordion/PsAccordion.vue +21 -20
  21. package/src/components/accordion/PsAccordionItem.vue +8 -30
  22. package/src/components/badges-and-tags/PsBadgeWithIcon.vue +4 -8
  23. package/src/components/badges-and-tags/PsCardInfos.vue +1 -3
  24. package/src/components/badges-and-tags/PsChartLegend.vue +5 -19
  25. package/src/components/badges-and-tags/PsCostEffectBar.vue +5 -4
  26. package/src/components/badges-and-tags/PsHighlightRippleDot.vue +1 -1
  27. package/src/components/badges-and-tags/PsProgressBar.vue +1 -1
  28. package/src/components/badges-and-tags/PsTestimonialCard.vue +4 -6
  29. package/src/components/buttons/PsButton.vue +88 -85
  30. package/src/components/chips/PsChips.vue +2 -5
  31. package/src/components/controls/PsCheckbox.vue +2 -5
  32. package/src/components/controls/PsCheckboxSimple.vue +4 -4
  33. package/src/components/controls/PsDraggable.vue +67 -70
  34. package/src/components/controls/PsInlineSelector.vue +14 -13
  35. package/src/components/controls/PsRadioButton.vue +5 -10
  36. package/src/components/controls/PsRadioButtonSimple.vue +3 -3
  37. package/src/components/controls/PsSlider.vue +6 -6
  38. package/src/components/controls/PsSwitch.vue +3 -13
  39. package/src/components/controls/PsToggle.vue +11 -14
  40. package/src/components/data-graphics/PsBarChart.vue +2 -4
  41. package/src/components/datatable/PsDataTable.vue +5 -14
  42. package/src/components/datatable/PsDataTableItem.vue +4 -17
  43. package/src/components/forms/PsDropdown.vue +5 -8
  44. package/src/components/forms/PsDropdownList.vue +1 -1
  45. package/src/components/forms/PsInput.vue +14 -30
  46. package/src/components/forms/PsInputSelect.vue +11 -33
  47. package/src/components/forms/PsInputTextArea.vue +4 -15
  48. package/src/components/navigations/PsBreadcrumb.vue +1 -1
  49. package/src/components/notifications/PsDialog.vue +5 -11
  50. package/src/components/notifications/PsSimpleAlert.vue +10 -22
  51. package/src/components/notifications/PsToast.vue +3 -8
  52. package/src/components/playground/PsScrollBar.vue +50 -122
  53. package/src/components/table-results/PsTableResults.vue +60 -76
  54. package/src/components/table-results/PsTableResultsBody.vue +1 -3
  55. package/src/components/table-results/PsTableResultsHead.vue +13 -32
  56. package/src/components/table-results/PsTableResultsHeadComparison.vue +8 -24
  57. package/src/components/table-results/PsTableResultsHeadFlexible.vue +11 -23
  58. package/src/components/table-results/PsTableResultsRow.vue +2 -6
  59. package/src/components/tabs/PsTabHeader.vue +16 -19
  60. package/src/components/tooltip/PsDialogTooltip.vue +8 -18
  61. package/src/components/tooltip/PsRichTooltip.vue +5 -12
  62. package/src/components/tooltip/PsTooltip.vue +9 -17
  63. package/src/components/ui/PsDotLoader.vue +5 -5
  64. package/src/components/ui/PsIcon.vue +2 -6
  65. package/src/{index.ts → index.js} +1 -0
  66. package/src/stories/{Accordion.stories.ts → Accordion.stories.js} +2 -2
  67. package/src/stories/{BadgeWithIcon.stories.ts → BadgeWithIcon.stories.js} +1 -1
  68. package/src/stories/{BarChart.stories.ts → BarChart.stories.js} +1 -1
  69. package/src/stories/{Breadcrumb.stories.ts → Breadcrumb.stories.js} +4 -1
  70. package/src/stories/Button.stories.js +130 -0
  71. package/src/stories/{CardInfos.stories.ts → CardInfos.stories.js} +2 -1
  72. package/src/stories/{ChartLegend.stories.ts → ChartLegend.stories.js} +2 -1
  73. package/src/stories/{Checkbox.stories.ts → Checkbox.stories.js} +1 -1
  74. package/src/stories/{CheckboxSimple.stories.ts → CheckboxSimple.stories.js} +1 -1
  75. package/src/stories/{Chips.stories.ts → Chips.stories.js} +22 -24
  76. package/src/stories/{ClimateZoneBadge.stories.ts → ClimateZoneBadge.stories.js} +1 -1
  77. package/src/stories/{CostEffectBar.stories.ts → CostEffectBar.stories.js} +1 -1
  78. package/src/stories/{Datatable.stories.ts → Datatable.stories.js} +2 -2
  79. package/src/stories/{DateCardInfo.stories.ts → DateCardInfo.stories.js} +5 -1
  80. package/src/stories/{ElevationSystem.mdx → ElevationSystem.stories.mdx} +1 -1
  81. package/src/stories/{InlineSelector.stories.ts → InlineSelector.stories.js} +1 -1
  82. package/src/stories/{InputTextArea.stories.ts → InputTextArea.stories.js} +1 -1
  83. package/src/stories/{Introduction.mdx → Introduction.stories.mdx} +101 -101
  84. package/src/stories/{RadioButtonSimple.stories.ts → RadioButtonSimple.stories.js} +1 -1
  85. package/src/stories/{Toggle.stories.ts → Toggle.stories.js} +1 -1
  86. package/src/stories/{Tooltip.stories.ts → Tooltip.stories.js} +3 -3
  87. package/src/stories/{Typography.mdx → Typography.stories.mdx} +105 -107
  88. package/src/util/{GeneralFunctions.ts → GeneralFunctions.js} +4 -4
  89. package/src/util/{imageLoader.ts → imageLoader.js} +7 -7
  90. package/tailwind.config.js +2 -11
  91. package/.eslintignore +0 -1
  92. package/.storybook/PolicyStudio.ts +0 -11
  93. package/.storybook/eventBus.ts +0 -26
  94. package/.storybook/main.ts +0 -21
  95. package/.storybook/manager.ts +0 -7
  96. package/scripts/kill-port.sh +0 -12
  97. package/src/App.vue +0 -30
  98. package/src/shims-vue.d.ts +0 -11
  99. package/src/stories/Button.stories.ts +0 -48
  100. package/src/stories/Button.vue +0 -59
  101. package/src/stories/Header.stories.ts +0 -41
  102. package/src/stories/Header.vue +0 -77
  103. package/src/stories/button.css +0 -30
  104. package/src/stories/header.css +0 -32
  105. package/tsconfig.json +0 -42
  106. package/webpack.config.js +0 -22
  107. /package/.storybook/{preview.ts → preview.js} +0 -0
  108. /package/src/contents/{ComparisonData.ts → ComparisonData.js} +0 -0
  109. /package/src/contents/{FlexibleData.ts → FlexibleData.js} +0 -0
  110. /package/src/contents/{ResultsData.ts → ResultsData.js} +0 -0
  111. /package/src/stories/{Colors.mdx → Colors.stories.mdx} +0 -0
  112. /package/src/stories/{Dialog.stories.ts → Dialog.stories.js} +0 -0
  113. /package/src/stories/{Draggable.stories.ts → Draggable.stories.js} +0 -0
  114. /package/src/stories/{Dropdown.stories.ts → Dropdown.stories.js} +0 -0
  115. /package/src/stories/{DropdownList.stories.ts → DropdownList.stories.js} +0 -0
  116. /package/src/stories/{HighlightRippleDot.stories.ts → HighlightRippleDot.stories.js} +0 -0
  117. /package/src/stories/{Icon.stories.ts → Icon.stories.js} +0 -0
  118. /package/src/stories/{Input.stories.ts → Input.stories.js} +0 -0
  119. /package/src/stories/{InputSelect.stories.ts → InputSelect.stories.js} +0 -0
  120. /package/src/stories/{MiniTag.stories.ts → MiniTag.stories.js} +0 -0
  121. /package/src/stories/{Playground.stories.ts → Playground.stories.js} +0 -0
  122. /package/src/stories/{ProgressBar.stories.ts → ProgressBar.stories.js} +0 -0
  123. /package/src/stories/{RadioButton.stories.ts → RadioButton.stories.js} +0 -0
  124. /package/src/stories/{SimpleAlert.stories.ts → SimpleAlert.stories.js} +0 -0
  125. /package/src/stories/{Slider.stories.ts → Slider.stories.js} +0 -0
  126. /package/src/stories/{Switch.stories.ts → Switch.stories.js} +0 -0
  127. /package/src/stories/{TabHeader.stories.ts → TabHeader.stories.js} +0 -0
  128. /package/src/stories/{TableResults.stories.ts → TableResults.stories.js} +0 -0
  129. /package/src/stories/{TagScope.stories.ts → TagScope.stories.js} +0 -0
  130. /package/src/stories/{TestimonialCard.stories.ts → TestimonialCard.stories.js} +0 -0
  131. /package/src/stories/{Toast.stories.ts → Toast.stories.js} +0 -0
@@ -1,11 +0,0 @@
1
- /* eslint-disable */
2
- declare module '*.vue' {
3
- import type { DefineComponent } from 'vue'
4
- const component: DefineComponent<{}, {}, any>
5
- export default component
6
- }
7
-
8
- declare module '*.svg' {
9
- const content: string;
10
- export default content;
11
- }
@@ -1,48 +0,0 @@
1
- import MyButton from './Button.vue'
2
-
3
- // More on how to set up stories at: https://storybook.js.org/docs/writing-stories
4
- export default {
5
- title: 'Example/Button',
6
- component: MyButton,
7
- tags: ['autodocs'],
8
- argTypes: {
9
- backgroundColor: {
10
- control: 'color',
11
- },
12
- onClick: {},
13
- size: {
14
- control: {
15
- type: 'select',
16
- },
17
- options: ['small', 'medium', 'large'],
18
- },
19
- },
20
- }
21
-
22
- // More on writing stories with args: https://storybook.js.org/docs/writing-stories/args
23
- export const Primary = {
24
- args: {
25
- primary: true,
26
- label: 'Button',
27
- },
28
- }
29
-
30
- export const Secondary = {
31
- args: {
32
- label: 'Button',
33
- },
34
- }
35
-
36
- export const Large = {
37
- args: {
38
- size: 'large',
39
- label: 'Button',
40
- },
41
- }
42
-
43
- export const Small = {
44
- args: {
45
- size: 'small',
46
- label: 'Button',
47
- },
48
- }
@@ -1,59 +0,0 @@
1
- <template>
2
- <button
3
- type="button"
4
- :class="classes"
5
- @click="onClick"
6
- :style="style"
7
- >
8
- {{ label }}
9
- </button>
10
- </template>
11
-
12
- <script>
13
- import './button.css'
14
- import { reactive, computed } from 'vue'
15
-
16
- export default {
17
- name: 'MyButton',
18
-
19
- props: {
20
- label: {
21
- type: String,
22
- required: true,
23
- },
24
- primary: {
25
- type: Boolean,
26
- default: false,
27
- },
28
- size: {
29
- type: String,
30
- validator: function (value) {
31
- return ['small', 'medium', 'large'].indexOf(value) !== -1
32
- },
33
- },
34
- backgroundColor: {
35
- type: String,
36
- },
37
- },
38
-
39
- emits: ['click'],
40
-
41
- setup(props, { emit }) {
42
- props = reactive(props)
43
- return {
44
- classes: computed(() => ({
45
- 'storybook-button': true,
46
- 'storybook-button--primary': props.primary,
47
- 'storybook-button--secondary': !props.primary,
48
- [`storybook-button--${props.size || 'medium'}`]: true,
49
- })),
50
- style: computed(() => ({
51
- backgroundColor: props.backgroundColor,
52
- })),
53
- onClick() {
54
- emit('click')
55
- },
56
- }
57
- },
58
- }
59
- </script>
@@ -1,41 +0,0 @@
1
- import MyHeader from './Header.vue'
2
-
3
- export default {
4
- title: 'Example/Header',
5
- component: MyHeader,
6
- // This component will have an automatically generated Autodocs entry: https://storybook.js.org/docs/writing-docs/autodocs
7
- tags: ['autodocs'],
8
- render: (args) => ({
9
- // Components used in your story `template` are defined in the `components` object
10
- components: {
11
- MyHeader,
12
- },
13
- // The story's `args` need to be mapped into the template through the `setup()` method
14
- setup() {
15
- // Story args can be spread into the returned object
16
- return {
17
- ...args,
18
- }
19
- },
20
- // Then, the spread values can be accessed directly in the template
21
- template: '<my-header :user="user" />',
22
- }),
23
- parameters: {
24
- // More on how to position stories at: https://storybook.js.org/docs/configure/story-layout
25
- layout: 'fullscreen',
26
- },
27
- }
28
-
29
- export const LoggedIn = {
30
- args: {
31
- user: {
32
- name: 'Jane Doe',
33
- },
34
- },
35
- }
36
-
37
- export const LoggedOut = {
38
- args: {
39
- user: null,
40
- },
41
- }
@@ -1,77 +0,0 @@
1
- <template>
2
- <header>
3
- <div class="storybook-header">
4
- <div>
5
- <svg
6
- width="32"
7
- height="32"
8
- viewBox="0 0 32 32"
9
- xmlns="http://www.w3.org/2000/svg"
10
- >
11
- <g
12
- fill="none"
13
- fill-rule="evenodd"
14
- >
15
- <path
16
- d="M10 0h12a10 10 0 0110 10v12a10 10 0 01-10 10H10A10 10 0 010 22V10A10 10 0 0110 0z"
17
- fill="#FFF"
18
- />
19
- <path
20
- d="M5.3 10.6l10.4 6v11.1l-10.4-6v-11zm11.4-6.2l9.7 5.5-9.7 5.6V4.4z"
21
- fill="#555AB9"
22
- />
23
- <path
24
- d="M27.2 10.6v11.2l-10.5 6V16.5l10.5-6zM15.7 4.4v11L6 10l9.7-5.5z"
25
- fill="#91BAF8"
26
- />
27
- </g>
28
- </svg>
29
- <h1>Acme</h1>
30
- </div>
31
- <div>
32
- <span
33
- class="welcome"
34
- v-if="user"
35
- >Welcome, aa<b>{{ user.name }}</b>!</span>
36
- <my-button
37
- size="small"
38
- @click="$emit('logout')"
39
- label="Log out"
40
- v-if="user"
41
- />
42
- <my-button
43
- size="small"
44
- @click="$emit('login')"
45
- label="Log in"
46
- v-if="!user"
47
- />
48
- <my-button
49
- primary
50
- size="small"
51
- @click="$emit('createAccount')"
52
- label="Sign up"
53
- v-if="!user"
54
- />
55
- </div>
56
- </div>
57
- </header>
58
- </template>
59
-
60
- <script>
61
- import './header.css'
62
- import MyButton from './Button.vue'
63
-
64
- export default {
65
- name: 'MyHeader',
66
-
67
- components: { MyButton },
68
-
69
- props: {
70
- user: {
71
- type: Object,
72
- },
73
- },
74
-
75
- emits: ['login', 'logout', 'createAccount'],
76
- }
77
- </script>
@@ -1,30 +0,0 @@
1
- .storybook-button {
2
- font-family: 'Nunito Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
3
- font-weight: 700;
4
- border: 0;
5
- border-radius: 3em;
6
- cursor: pointer;
7
- display: inline-block;
8
- line-height: 1;
9
- }
10
- .storybook-button--primary {
11
- color: white;
12
- background-color: #1ea7fd;
13
- }
14
- .storybook-button--secondary {
15
- color: #333;
16
- background-color: transparent;
17
- box-shadow: rgba(0, 0, 0, 0.15) 0px 0px 0px 1px inset;
18
- }
19
- .storybook-button--small {
20
- font-size: 12px;
21
- padding: 10px 16px;
22
- }
23
- .storybook-button--medium {
24
- font-size: 14px;
25
- padding: 11px 20px;
26
- }
27
- .storybook-button--large {
28
- font-size: 16px;
29
- padding: 12px 24px;
30
- }
@@ -1,32 +0,0 @@
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
- }
package/tsconfig.json DELETED
@@ -1,42 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "esnext",
4
- "module": "esnext",
5
- "strict": true,
6
- "jsx": "preserve",
7
- "moduleResolution": "node",
8
- "allowJs": true,
9
- "skipLibCheck": true,
10
- "esModuleInterop": true,
11
- "allowSyntheticDefaultImports": true,
12
- "forceConsistentCasingInFileNames": true,
13
- "useDefineForClassFields": true,
14
- "sourceMap": true,
15
- "baseUrl": ".",
16
- "types": [
17
- "webpack-env"
18
- ],
19
- "paths": {
20
- "@/*": [
21
- "src/*"
22
- ]
23
- },
24
- "lib": [
25
- "esnext",
26
- "dom",
27
- "dom.iterable",
28
- "scripthost"
29
- ]
30
- },
31
- "include": [
32
- "src/**/*.ts",
33
- "src/**/*.tsx",
34
- "src/**/*.vue",
35
- "tests/**/*.ts",
36
- "tests/**/*.tsx",
37
- ".storybook/*.ts"
38
- ],
39
- "exclude": [
40
- "node_modules"
41
- ]
42
- }
package/webpack.config.js DELETED
@@ -1,22 +0,0 @@
1
- module.exports = {
2
- resolve: {
3
- alias: {
4
- vue: '@vue/compat'
5
- }
6
- },
7
- module: {
8
- rules: [
9
- {
10
- test: /\.vue$/,
11
- loader: 'vue-loader',
12
- options: {
13
- compilerOptions: {
14
- compatConfig: {
15
- MODE: 2
16
- }
17
- }
18
- }
19
- },
20
- ]
21
- }
22
- }
File without changes
File without changes
File without changes