@bethinkpl/design-system 24.2.0 → 25.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.
- package/dist/design-system.umd.js +155 -10429
- package/dist/design-system.umd.js.map +1 -1
- package/dist/lib/js/components/Banner/Banner.vue.d.ts +1 -0
- package/dist/lib/js/components/Buttons/Button/Button.vue.d.ts +1 -0
- package/dist/lib/js/components/Buttons/IconButton/IconButton.vue.d.ts +1 -0
- package/dist/lib/js/components/Cards/CardExpandable/CardExpandable.vue.d.ts +1 -0
- package/dist/lib/js/components/Chip/Chip.vue.d.ts +1 -0
- package/dist/lib/js/components/DatePickers/DatePickerBox/DatePickerBox.vue.d.ts +1 -0
- package/dist/lib/js/components/Drawer/DrawerSection/DrawerSection.vue.d.ts +1 -0
- package/dist/lib/js/components/Form/Checkbox/Checkbox.vue.d.ts +1 -0
- package/dist/lib/js/components/Form/RadioButton/RadioButton.vue.d.ts +1 -0
- package/dist/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue.d.ts +20 -6
- package/dist/lib/js/components/Headers/SectionHeader/SectionHeader.vue.d.ts +1 -0
- package/dist/lib/js/components/Icons/Icon/Icon.consts.d.ts +1 -0
- package/dist/lib/js/components/Modal/Modal.vue.d.ts +1 -0
- package/dist/lib/js/components/Modals/Modal/Modal.vue.d.ts +1 -0
- package/dist/lib/js/components/Outline/OutlineItem/OutlineItem.vue.d.ts +1 -0
- package/dist/lib/js/components/Pagination/Pagination.vue.d.ts +1 -0
- package/dist/lib/js/components/ProgressBar/ProgressBar.vue.d.ts +1 -0
- package/dist/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue.d.ts +1 -0
- package/dist/lib/js/components/RichList/RichListItem/RichListItem.vue.d.ts +1 -0
- package/dist/lib/js/components/SelectionTile/SelectionTile.vue.d.ts +1 -0
- package/dist/lib/js/components/Statuses/AccessStatus/AccessStatus.vue.d.ts +1 -0
- package/dist/lib/js/components/Statuses/BlockadeStatus/BlockadeStatus.vue.d.ts +1 -0
- package/dist/lib/js/components/Switch/Switch.vue.d.ts +1 -0
- package/dist/lib/js/components/Tile/Tile.sb.shared.d.ts +1 -0
- package/dist/lib/js/components/Tile/Tile.vue.d.ts +1 -0
- package/dist/lib/js/components/Toggles/ToggleButton/ToggleButton.vue.d.ts +1 -0
- package/dist/lib/js/components/Tooltip/Tooltip.vue.d.ts +1 -0
- package/dist/lib/js/icons/fontawesome.d.ts +1 -0
- package/docs/838.fdf5ac21.iframe.bundle.js +2 -0
- package/docs/iframe.html +1 -1
- package/docs/main.873cd7d2.iframe.bundle.js +2 -0
- package/docs/project.json +1 -1
- package/lib/js/components/Headers/OverlayHeader/OverlayHeader.vue +35 -12
- package/lib/js/components/Tooltip/Tooltip.vue +1 -0
- package/lib/js/icons/fontawesome.ts +2 -0
- package/lib/js/primevue.ts +3 -0
- package/lib/styles/settings/_z-indexes.scss +1 -0
- package/package.json +5 -3
- package/vue.config.js +3 -0
- package/docs/548.a87360ed.iframe.bundle.js +0 -2
- package/docs/main.9403ca72.iframe.bundle.js +0 -2
- /package/docs/{548.a87360ed.iframe.bundle.js.LICENSE.txt → 838.fdf5ac21.iframe.bundle.js.LICENSE.txt} +0 -0
- /package/docs/{main.9403ca72.iframe.bundle.js.LICENSE.txt → main.873cd7d2.iframe.bundle.js.LICENSE.txt} +0 -0
package/docs/project.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1724912280840,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"metaFramework":{"name":"vue-cli","packageName":"@vue/cli-service","version":"5.0.8"},"packageManager":{"type":"yarn","version":"1.22.22"},"storybookVersion":"6.5.13","language":"typescript","storybookPackages":{"@storybook/builder-webpack5":{"version":"6.5.13"},"@storybook/manager-webpack5":{"version":"6.5.13"},"@storybook/vue3":{"version":"6.5.13"},"eslint-plugin-storybook":{"version":"0.6.6"}},"framework":{"name":"vue3"},"addons":{"@storybook/addon-actions":{"version":"6.5.16"},"@storybook/addon-docs":{"version":"6.5.15"},"@storybook/addon-controls":{"version":"6.5.15"},"@storybook/addon-storysource":{"version":"6.5.15"},"@storybook/addon-viewport":{"version":"6.5.15"},"storybook-addon-designs":{"version":"6.3.1"}}}
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
@hide="isDropdownOpen = false"
|
|
83
83
|
>
|
|
84
84
|
<template #reference>
|
|
85
|
-
<icon-button
|
|
85
|
+
<ds-icon-button
|
|
86
86
|
:icon="ICONS.FA_ELLIPSIS_VERTICAL"
|
|
87
87
|
:size="ICON_BUTTON_SIZES.MEDIUM"
|
|
88
88
|
:color="ICON_BUTTON_COLORS.NEUTRAL"
|
|
@@ -101,12 +101,18 @@
|
|
|
101
101
|
is-vertical
|
|
102
102
|
/>
|
|
103
103
|
</template>
|
|
104
|
-
<
|
|
105
|
-
:
|
|
106
|
-
:
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
104
|
+
<ds-tooltip
|
|
105
|
+
:is-pointer-visible="false"
|
|
106
|
+
:placement="TOOLTIP_PLACEMENTS.LEFT"
|
|
107
|
+
text="Zamknij - Q"
|
|
108
|
+
>
|
|
109
|
+
<ds-icon-button
|
|
110
|
+
:icon="ICONS.FA_XMARK"
|
|
111
|
+
:size="ICON_BUTTON_SIZES.MEDIUM"
|
|
112
|
+
:color="ICON_BUTTON_COLORS.NEUTRAL"
|
|
113
|
+
@click="$emit('close')"
|
|
114
|
+
/>
|
|
115
|
+
</ds-tooltip>
|
|
110
116
|
</div>
|
|
111
117
|
</template>
|
|
112
118
|
|
|
@@ -307,10 +313,11 @@
|
|
|
307
313
|
</style>
|
|
308
314
|
|
|
309
315
|
<script lang="ts">
|
|
310
|
-
import
|
|
316
|
+
import DsIconButton from '../../Buttons/IconButton/IconButton.vue';
|
|
311
317
|
import DsDivider, { DIVIDER_PROMINENCES } from '../../Divider';
|
|
312
318
|
import DsDropdown, { DROPDOWN_PLACEMENTS } from '../../Dropdown';
|
|
313
319
|
import DsSkeleton from '../../Skeleton';
|
|
320
|
+
import DsTooltip, { TOOLTIP_PLACEMENTS } from '../../Tooltip';
|
|
314
321
|
import {
|
|
315
322
|
ICON_BUTTON_COLORS,
|
|
316
323
|
ICON_BUTTON_SIZES,
|
|
@@ -322,7 +329,7 @@ import { Value } from '../../../utils/type.utils';
|
|
|
322
329
|
|
|
323
330
|
export default {
|
|
324
331
|
name: 'OverlayHeader',
|
|
325
|
-
components: {
|
|
332
|
+
components: { DsIconButton, DsDivider, DsDropdown, DsSkeleton, DsTooltip },
|
|
326
333
|
props: {
|
|
327
334
|
title: {
|
|
328
335
|
type: String,
|
|
@@ -353,9 +360,10 @@ export default {
|
|
|
353
360
|
},
|
|
354
361
|
},
|
|
355
362
|
},
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
363
|
+
emits: {
|
|
364
|
+
close: () => true,
|
|
365
|
+
titleClick: () => true,
|
|
366
|
+
},
|
|
359
367
|
data() {
|
|
360
368
|
return {
|
|
361
369
|
ICON_BUTTON_SIZES: Object.freeze(ICON_BUTTON_SIZES),
|
|
@@ -367,6 +375,7 @@ export default {
|
|
|
367
375
|
OVERLAY_HEADER_STATES: Object.freeze(OVERLAY_HEADER_STATES),
|
|
368
376
|
DROPDOWN_PLACEMENTS: Object.freeze(DROPDOWN_PLACEMENTS),
|
|
369
377
|
isDropdownOpen: false,
|
|
378
|
+
TOOLTIP_PLACEMENTS: Object.freeze(TOOLTIP_PLACEMENTS),
|
|
370
379
|
};
|
|
371
380
|
},
|
|
372
381
|
computed: {
|
|
@@ -374,7 +383,21 @@ export default {
|
|
|
374
383
|
return this.state === OVERLAY_HEADER_STATES.LOADING;
|
|
375
384
|
},
|
|
376
385
|
},
|
|
386
|
+
beforeUnmount() {
|
|
387
|
+
window.removeEventListener('keydown', this.onKeydown);
|
|
388
|
+
},
|
|
389
|
+
mounted() {
|
|
390
|
+
window.addEventListener('keydown', this.onKeydown);
|
|
391
|
+
},
|
|
377
392
|
methods: {
|
|
393
|
+
onKeydown(e) {
|
|
394
|
+
switch (e.keyCode) {
|
|
395
|
+
case 81: // "Q" key
|
|
396
|
+
e.stopPropagation();
|
|
397
|
+
this.$emit('close');
|
|
398
|
+
break;
|
|
399
|
+
}
|
|
400
|
+
},
|
|
378
401
|
onTitleClick() {
|
|
379
402
|
if (this.isTitleInteractive) {
|
|
380
403
|
this.$emit('titleClick');
|
|
@@ -180,6 +180,7 @@ import { faSitemap as fasSitemap } from '@fortawesome/pro-solid-svg-icons/faSite
|
|
|
180
180
|
import { faSquareCheck as fasSquareCheck } from '@fortawesome/pro-solid-svg-icons/faSquareCheck';
|
|
181
181
|
import { faSquareList as fasSquareList } from '@fortawesome/pro-solid-svg-icons/faSquareList';
|
|
182
182
|
import { faStar as fasStar } from '@fortawesome/pro-solid-svg-icons/faStar';
|
|
183
|
+
import { faStethoscope } from '@fortawesome/pro-regular-svg-icons/faStethoscope';
|
|
183
184
|
import { faStopwatch as fasStopwach } from '@fortawesome/pro-solid-svg-icons/faStopwatch';
|
|
184
185
|
import { faThumbsUp as fasThumbsUp } from '@fortawesome/pro-solid-svg-icons/faThumbsUp';
|
|
185
186
|
import { faThumbtack as fasThumbtack } from '@fortawesome/pro-solid-svg-icons/faThumbtack';
|
|
@@ -366,6 +367,7 @@ export const FONTAWESOME_ICONS = {
|
|
|
366
367
|
FA_SQUARE_LIST_SOLID: fasSquareList,
|
|
367
368
|
FA_STAR: faStar,
|
|
368
369
|
FA_STAR_SOLID: fasStar,
|
|
370
|
+
FA_STETHOSCOPE: faStethoscope,
|
|
369
371
|
FA_STOPWATCH_SOLID: fasStopwach,
|
|
370
372
|
FA_TAG: faTag,
|
|
371
373
|
FA_TAGS: faTags,
|
package/lib/js/primevue.ts
CHANGED
|
@@ -10,6 +10,9 @@ export const initializePrimeVue = (app) => {
|
|
|
10
10
|
darkModeSelector: '.app-dark', // enabling dark mode in storybook makes all components canvas black
|
|
11
11
|
},
|
|
12
12
|
},
|
|
13
|
+
zIndex: {
|
|
14
|
+
tooltip: 16777271, // keep above $z-index-modal
|
|
15
|
+
},
|
|
13
16
|
});
|
|
14
17
|
|
|
15
18
|
app.directive('pv-tooltip', Tooltip);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bethinkpl/design-system",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "25.0.0",
|
|
4
4
|
"description": "Bethink universe design-system",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -40,7 +40,6 @@
|
|
|
40
40
|
"@fortawesome/pro-regular-svg-icons": "6.4.2",
|
|
41
41
|
"@fortawesome/pro-solid-svg-icons": "6.4.2",
|
|
42
42
|
"@fortawesome/vue-fontawesome": "3.0.3",
|
|
43
|
-
"@primevue/themes": "4.0.0-rc.3",
|
|
44
43
|
"@storybook/addon-actions": "^6.5.13",
|
|
45
44
|
"@storybook/addon-controls": "^6.5.13",
|
|
46
45
|
"@storybook/addon-docs": "^6.5.13",
|
|
@@ -73,7 +72,6 @@
|
|
|
73
72
|
"jsdom-global": "^3.0.2",
|
|
74
73
|
"postcss-prefix-selector": "^1.9.0",
|
|
75
74
|
"prettier": "2.7.1",
|
|
76
|
-
"primevue": "4.0.0-rc.3",
|
|
77
75
|
"sass": "^1.28.0",
|
|
78
76
|
"sass-loader": "^7.1.0",
|
|
79
77
|
"storybook-addon-designs": "^6.3.1",
|
|
@@ -88,5 +86,9 @@
|
|
|
88
86
|
"vue-loader": "17.0.0",
|
|
89
87
|
"vue-popperjs": "github:bethinkpl/vue-popper#03c7912c4729386743b0cca8f39b35448cc3db7f",
|
|
90
88
|
"vue-svg-loader": "0.17.0-beta.2"
|
|
89
|
+
},
|
|
90
|
+
"dependencies": {
|
|
91
|
+
"@primevue/themes": "4.0.0-rc.3",
|
|
92
|
+
"primevue": "4.0.0-rc.3"
|
|
91
93
|
}
|
|
92
94
|
}
|
package/vue.config.js
CHANGED
|
@@ -18,6 +18,9 @@ module.exports = {
|
|
|
18
18
|
css: {
|
|
19
19
|
extract: false,
|
|
20
20
|
},
|
|
21
|
+
configureWebpack: (config) => {
|
|
22
|
+
config.externals = [/^@?primevue\/.*$/];
|
|
23
|
+
},
|
|
21
24
|
chainWebpack: (config) => {
|
|
22
25
|
/**
|
|
23
26
|
* These are some necessary steps changing the default webpack config of the Vue CLI
|