@bethinkpl/design-system 26.2.0 → 26.2.1
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/.github/workflows/build-to-review-on-trigger.yml +1 -1
- package/dist/design-system.umd.cjs +16 -16
- package/dist/design-system.umd.cjs.map +1 -1
- package/dist/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue.d.ts +4 -0
- package/docs/assets/Banner-CrcVtTA6.js +1 -0
- package/docs/assets/{Banner.stories-BNQs4B7a.js → Banner.stories-DrJfhoQX.js} +1 -1
- package/docs/assets/BasicRichListItem-BI7N8gLp.js +1 -0
- package/docs/assets/{BasicRichListItem.stories-ufd33VzT.js → BasicRichListItem.stories-Bx-Ny_JI.js} +1 -1
- package/docs/assets/{Chip-CZhGhfp2.js → Chip-Bq1ZSXp_.js} +1 -1
- package/docs/assets/{Chip.stories-CJlT4U9X.js → Chip.stories-DFtBefaz.js} +1 -1
- package/docs/assets/{Color-ERTF36HU-DCQ3oTfn.js → Color-ERTF36HU-Dc5y5_V2.js} +1 -1
- package/docs/assets/DatePicker-DQP-efDm.js +2 -0
- package/docs/assets/{DatePicker.stories-CHXq2t7N.js → DatePicker.stories-DN8CFRc5.js} +1 -1
- package/docs/assets/{DateRangePicker-Ba8OCzac.js → DateRangePicker-CofYgx_A.js} +1 -1
- package/docs/assets/{DateRangePicker.stories-Tnl6ue7H.js → DateRangePicker.stories-DdyCIzEg.js} +1 -1
- package/docs/assets/{DocsRenderer-CFRXHY34-2RWLQUnC.js → DocsRenderer-CFRXHY34-ue2fqW_7.js} +5 -5
- package/docs/assets/{DrawerHeader-27Pq83bZ.js → DrawerHeader-CXML6ILI.js} +1 -1
- package/docs/assets/{DrawerHeader.stories-DKVM_b_K.js → DrawerHeader.stories-BFRntv9g.js} +1 -1
- package/docs/assets/{DrawerSection-NA8YIWNP.js → DrawerSection-CZQts4fV.js} +1 -1
- package/docs/assets/{DrawerSection.stories-AsNcvKAY.js → DrawerSection.stories-Ck3mBS5K.js} +1 -1
- package/docs/assets/{IconButton-DQERAUFJ.js → IconButton-5VVKI4L8.js} +1 -1
- package/docs/assets/{IconButton.stories-DYBf2RxR.js → IconButton.stories-CyKoply2.js} +1 -1
- package/docs/assets/{Modal-Dyxmofkt.js → Modal-BaQ9m90i.js} +1 -1
- package/docs/assets/{Modal.stories-D20EV-4r.js → Modal.stories-B_MFS7hu.js} +1 -1
- package/docs/assets/{ModalDialog-CQ6gqQT0.js → ModalDialog-z2qdc3v4.js} +1 -1
- package/docs/assets/{ModalDialog.stories-ClzefBkX.js → ModalDialog.stories-DRoTs0vN.js} +1 -1
- package/docs/assets/{OutlineItem-BfrVnSqG.js → OutlineItem-CgcmTUfn.js} +1 -1
- package/docs/assets/{OutlineItem.stories-BTU-NNLx.js → OutlineItem.stories-BTZHHUjA.js} +1 -1
- package/docs/assets/{OverlayHeader-axMuTIwo.js → OverlayHeader-ChWcQ7A3.js} +1 -1
- package/docs/assets/{OverlayHeader.stories-Ce-FqIzk.js → OverlayHeader.stories-BXb_hoVv.js} +1 -1
- package/docs/assets/{Pagination-DIlv-PQx.js → Pagination-D-Sq3rMY.js} +1 -1
- package/docs/assets/{Pagination.stories-CmSNdwer.js → Pagination.stories-B09ssoO2.js} +1 -1
- package/docs/assets/{PopOver-DTk9tym7.js → PopOver-BjiDLwai.js} +1 -1
- package/docs/assets/{PopOver.stories-CUplOgMq.js → PopOver.stories-DFGElLEQ.js} +1 -1
- package/docs/assets/{ProgressBar-i05eIOJ-.js → ProgressBar-xIGt_7Oi.js} +1 -1
- package/docs/assets/{ProgressBar.stories-DvDerxCw.js → ProgressBar.stories-3VuVrMzK.js} +1 -1
- package/docs/assets/{ProgressDonutChart-dD82ao8i.js → ProgressDonutChart-CZhcGOel.js} +1 -1
- package/docs/assets/{ProgressDonutChart.stories-ByyC4Wpy.js → ProgressDonutChart.stories-bOyf8HX5.js} +1 -1
- package/docs/assets/{RichListItem.stories-DpgvNK5a.js → RichListItem.stories-BYvV97pJ.js} +1 -1
- package/docs/assets/{SectionHeader-ivDpWZdM.js → SectionHeader-CkqBv6QD.js} +1 -1
- package/docs/assets/{SectionHeader.stories-CljoeeXk.js → SectionHeader.stories-DImv7yZ-.js} +1 -1
- package/docs/assets/{SelectionTile-6DXgUYii.js → SelectionTile-B6r-SAms.js} +1 -1
- package/docs/assets/{SelectionTile.stories-DoopCCEq.js → SelectionTile.stories-CZvWTZpw.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded-Dm58tKCP.js → SurveyQuestionOpenEnded-DMkrJ7PV.js} +1 -1
- package/docs/assets/{SurveyQuestionOpenEnded.stories-CVQ8H6mG.js → SurveyQuestionOpenEnded.stories-D3ydQcqO.js} +1 -1
- package/docs/assets/{SurveyQuestionScale-RjE7KKni.js → SurveyQuestionScale-D50B0A4F.js} +1 -1
- package/docs/assets/{SurveyQuestionScale.stories-C80IEuWZ.js → SurveyQuestionScale.stories-DSllYgWJ.js} +1 -1
- package/docs/assets/{iframe-TMx3aCBI.js → iframe-pILTL9EM.js} +13 -13
- package/docs/assets/{index-DBp1ogeF.js → index-qTJv4Z6R.js} +1 -1
- package/docs/assets/{index-DaN1k6Cs.js → index-t20SkCwm.js} +1 -1
- package/docs/assets/{preview-C89Bllzm.js → preview-CAEPvBGu.js} +1 -1
- package/docs/assets/{preview-Uql0YBlW.js → preview-DrpGEWHQ.js} +2 -2
- package/docs/iframe.html +1 -1
- package/docs/preview.css +6 -6
- package/docs/project.json +1 -1
- package/lib/js/components/Banner/Banner.vue +122 -113
- package/lib/js/components/Buttons/IconButton/IconButton.vue +2 -2
- package/lib/js/components/DatePickers/DatePicker/DatePicker.vue +2 -2
- package/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue +2 -2
- package/lib/js/components/Outline/OutlineItem/OutlineItem.vue +1 -1
- package/lib/js/components/PopOver/PopOver.vue +2 -1
- package/lib/js/components/ProgressBar/ProgressBar.vue +0 -1
- package/lib/js/components/ProgressDonutChart/ProgressDonutChart.vue +2 -2
- package/lib/js/components/RichList/BasicRichListItem/BasicRichListItem.vue +11 -3
- package/lib/styles/components/_buttons.scss +2 -2
- package/lib/styles/settings/_fonts.scss +6 -6
- package/lib/styles/settings/_radiuses.scss +1 -1
- package/package.json +5 -4
- package/stylelint.config.cjs +32 -4
- package/docs/assets/Banner-CLCcYMqw.js +0 -1
- package/docs/assets/BasicRichListItem-DLEOXqPF.js +0 -1
- package/docs/assets/DatePicker-DIRNXtbt.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-
|
|
2
|
-
import{_ as s}from"./iframe-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["./DocsRenderer-CFRXHY34-ue2fqW_7.js","./iframe-pILTL9EM.js","./_commonjsHelpers-Chg3vePA.js","./index-vG0co4wr.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import{_ as s}from"./iframe-pILTL9EM.js";import"../sb-preview/runtime.js";const{global:_}=__STORYBOOK_MODULE_GLOBAL__;var o,i=Object.entries((o=_.TAGS_OPTIONS)!=null?o:{}).reduce((e,r)=>{let[t,a]=r;return a.excludeFromDocsStories&&(e[t]=!0),e},{}),d={docs:{renderer:async()=>{let{DocsRenderer:e}=await s(()=>import("./DocsRenderer-CFRXHY34-ue2fqW_7.js").then(r=>r.am),__vite__mapDeps([0,1,2,3]),import.meta.url);return new e},stories:{filter:e=>{var r;return(e.tags||[]).filter(t=>i[t]).length===0&&!((r=e.parameters.docs)!=null&&r.disable)}}}};export{d as parameters};
|
package/docs/iframe.html
CHANGED
|
@@ -510,7 +510,7 @@
|
|
|
510
510
|
</script>
|
|
511
511
|
<link rel="stylesheet" href="./preview.css">
|
|
512
512
|
|
|
513
|
-
<script type="module" crossorigin src="./assets/iframe-
|
|
513
|
+
<script type="module" crossorigin src="./assets/iframe-pILTL9EM.js"></script>
|
|
514
514
|
</head>
|
|
515
515
|
|
|
516
516
|
<body>
|
package/docs/preview.css
CHANGED
|
@@ -218,7 +218,7 @@ table {
|
|
|
218
218
|
}
|
|
219
219
|
/* latin-ext */
|
|
220
220
|
@font-face {
|
|
221
|
-
font-family:
|
|
221
|
+
font-family: Lato;
|
|
222
222
|
font-style: normal;
|
|
223
223
|
font-weight: 300;
|
|
224
224
|
src: url(~design-system/lib/fonts/lato/lato-ext-300.woff2) format("woff2");
|
|
@@ -226,7 +226,7 @@ table {
|
|
|
226
226
|
}
|
|
227
227
|
/* latin */
|
|
228
228
|
@font-face {
|
|
229
|
-
font-family:
|
|
229
|
+
font-family: Lato;
|
|
230
230
|
font-style: normal;
|
|
231
231
|
font-weight: 300;
|
|
232
232
|
src: url(~design-system/lib/fonts/lato/lato-latin-300.woff2) format("woff2");
|
|
@@ -234,7 +234,7 @@ table {
|
|
|
234
234
|
}
|
|
235
235
|
/* latin-ext */
|
|
236
236
|
@font-face {
|
|
237
|
-
font-family:
|
|
237
|
+
font-family: Lato;
|
|
238
238
|
font-style: normal;
|
|
239
239
|
font-weight: 400;
|
|
240
240
|
src: url(~design-system/lib/fonts/lato/lato-ext.woff2) format("woff2");
|
|
@@ -242,7 +242,7 @@ table {
|
|
|
242
242
|
}
|
|
243
243
|
/* latin */
|
|
244
244
|
@font-face {
|
|
245
|
-
font-family:
|
|
245
|
+
font-family: Lato;
|
|
246
246
|
font-style: normal;
|
|
247
247
|
font-weight: 400;
|
|
248
248
|
src: url(~design-system/lib/fonts/lato/lato-latin.woff2) format("woff2");
|
|
@@ -250,7 +250,7 @@ table {
|
|
|
250
250
|
}
|
|
251
251
|
/* latin-ext */
|
|
252
252
|
@font-face {
|
|
253
|
-
font-family:
|
|
253
|
+
font-family: Lato;
|
|
254
254
|
font-style: normal;
|
|
255
255
|
font-weight: 700;
|
|
256
256
|
src: url(~design-system/lib/fonts/lato/lato-ext-700.woff2) format("woff2");
|
|
@@ -258,7 +258,7 @@ table {
|
|
|
258
258
|
}
|
|
259
259
|
/* latin */
|
|
260
260
|
@font-face {
|
|
261
|
-
font-family:
|
|
261
|
+
font-family: Lato;
|
|
262
262
|
font-style: normal;
|
|
263
263
|
font-weight: 700;
|
|
264
264
|
src: url(~design-system/lib/fonts/lato/lato-latin-700.woff2) format("woff2");
|
package/docs/project.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1731507519329,"hasCustomBabel":false,"hasCustomWebpack":false,"hasStaticDirs":true,"hasStorybookEslint":true,"refCount":0,"testPackages":{"@types/jest":"29.5.13","@vue/vue3-jest":"29.2.2","jest":"29.7.0","jest-environment-jsdom":"29.7.0","ts-jest":"29.0.5"},"packageManager":{"type":"yarn","version":"1.22.22"},"preview":{"usesGlobals":false},"framework":{"name":"@storybook/vue3-vite","options":{}},"builder":"@storybook/builder-vite","renderer":"@storybook/vue3","portableStoriesFileCount":2,"storybookVersion":"8.3.4","storybookVersionSpecifier":"^8.3.4","language":"typescript","storybookPackages":{"@storybook/vue3":{"version":"8.3.4"},"@storybook/vue3-vite":{"version":"8.3.4"},"eslint-plugin-storybook":{"version":"0.8.0"},"storybook":{"version":"8.3.4"}},"addons":{"@storybook/addon-actions":{"version":"8.3.4"},"@storybook/addon-designs":{"version":"8.0.3"},"@storybook/addon-docs":{"version":"8.3.4"},"@storybook/addon-controls":{"version":"8.3.4"},"@storybook/addon-storysource":{"version":"8.3.4"},"@storybook/addon-viewport":{"version":"8.3.4"}}}
|
|
@@ -1,65 +1,70 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<div class="ds-banner"
|
|
3
|
-
<div class="ds-
|
|
4
|
-
<div class="ds-
|
|
5
|
-
<div
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
<div class="ds-banner__textWrapper">
|
|
15
|
-
<div class="ds-banner__titleWrapper">
|
|
16
|
-
<div class="ds-banner__title" v-text="title" />
|
|
17
|
-
<div v-if="$slots.defaultText" class="ds-banner__defaultText">
|
|
18
|
-
<slot name="defaultText" />
|
|
19
|
-
</div>
|
|
2
|
+
<div class="ds-banner">
|
|
3
|
+
<div class="ds-banner__inner" :class="[colorClass, layoutClass]">
|
|
4
|
+
<div class="ds-banner__content">
|
|
5
|
+
<div class="ds-banner__header">
|
|
6
|
+
<div
|
|
7
|
+
v-if="icon"
|
|
8
|
+
class="ds-banner__iconContainer"
|
|
9
|
+
:class="{ '-ds-hideOnMobile': isIconHiddenOnMobile }"
|
|
10
|
+
>
|
|
11
|
+
<!-- TODO: https://bethink.atlassian.net/browse/IT-3589 change to a-illustration in the future -->
|
|
12
|
+
<ds-icon class="ds-banner__icon" :class="[colorClass]" :icon="icon" />
|
|
20
13
|
</div>
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
@click="$emit('button-clicked')"
|
|
29
|
-
>{{ buttonText }}
|
|
30
|
-
</ds-button>
|
|
14
|
+
|
|
15
|
+
<div class="ds-banner__textWrapper">
|
|
16
|
+
<div class="ds-banner__titleWrapper">
|
|
17
|
+
<div class="ds-banner__title" v-text="title" />
|
|
18
|
+
<div v-if="$slots.defaultText" class="ds-banner__defaultText">
|
|
19
|
+
<slot name="defaultText" />
|
|
20
|
+
</div>
|
|
31
21
|
</div>
|
|
32
|
-
<div
|
|
33
|
-
<
|
|
22
|
+
<div class="ds-banner__rightWrapper">
|
|
23
|
+
<div v-if="buttonText" class="ds-banner__buttonWrapper">
|
|
24
|
+
<ds-button
|
|
25
|
+
class="ds-banner__ctaButton"
|
|
26
|
+
:color="BUTTON_COLORS.NEUTRAL"
|
|
27
|
+
:type="BUTTON_TYPES.OUTLINED"
|
|
28
|
+
:size="BUTTON_SIZES.SMALL"
|
|
29
|
+
@click="$emit('button-clicked')"
|
|
30
|
+
>{{ buttonText }}
|
|
31
|
+
</ds-button>
|
|
32
|
+
</div>
|
|
33
|
+
<div v-if="$slots.rightSlot" class="ds-banner__rightSlot">
|
|
34
|
+
<slot name="rightSlot" />
|
|
35
|
+
</div>
|
|
34
36
|
</div>
|
|
35
37
|
</div>
|
|
36
38
|
</div>
|
|
39
|
+
<div v-if="$slots.expandedText" class="ds-banner__expander">
|
|
40
|
+
<ds-icon-button
|
|
41
|
+
:size="ICON_BUTTON_SIZES.SMALL"
|
|
42
|
+
:icon="isExpandedInternal ? ICONS.FA_CHEVRON_UP : ICONS.FA_CHEVRON_DOWN"
|
|
43
|
+
:color="ICON_BUTTON_COLORS.NEUTRAL"
|
|
44
|
+
:radius="BUTTON_RADIUSES.CAPSULE"
|
|
45
|
+
:touchable="false"
|
|
46
|
+
@click="toggleExpandedText"
|
|
47
|
+
/>
|
|
48
|
+
</div>
|
|
49
|
+
<div v-if="!$slots.expandedText && closable" class="ds-banner__close">
|
|
50
|
+
<ds-icon-button
|
|
51
|
+
:size="ICON_BUTTON_SIZES.SMALL"
|
|
52
|
+
:icon="ICONS.FA_XMARK"
|
|
53
|
+
:color="ICON_BUTTON_COLORS.NEUTRAL"
|
|
54
|
+
:radius="BUTTON_RADIUSES.CAPSULE"
|
|
55
|
+
:touchable="false"
|
|
56
|
+
@click="$emit('close')"
|
|
57
|
+
/>
|
|
58
|
+
</div>
|
|
37
59
|
</div>
|
|
38
|
-
<div
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/>
|
|
47
|
-
</div>
|
|
48
|
-
<div v-if="!$slots.expandedText && closable" class="ds-banner__close">
|
|
49
|
-
<ds-icon-button
|
|
50
|
-
:size="ICON_BUTTON_SIZES.SMALL"
|
|
51
|
-
:icon="ICONS.FA_XMARK"
|
|
52
|
-
:color="ICON_BUTTON_COLORS.NEUTRAL"
|
|
53
|
-
:radius="BUTTON_RADIUSES.CAPSULE"
|
|
54
|
-
:touchable="false"
|
|
55
|
-
@click="$emit('close')"
|
|
56
|
-
/>
|
|
57
|
-
</div>
|
|
58
|
-
</div>
|
|
59
|
-
<div v-if="$slots.expandedText && isExpandedInternal" class="ds-banner__expandedContainer">
|
|
60
|
-
<ds-divider :prominence="DIVIDER_PROMINENCES.STRONG" />
|
|
61
|
-
<div class="ds-banner__expandedText">
|
|
62
|
-
<slot name="expandedText" />
|
|
60
|
+
<div
|
|
61
|
+
v-if="$slots.expandedText && isExpandedInternal"
|
|
62
|
+
class="ds-banner__expandedContainer"
|
|
63
|
+
>
|
|
64
|
+
<ds-divider :prominence="DIVIDER_PROMINENCES.STRONG" />
|
|
65
|
+
<div class="ds-banner__expandedText">
|
|
66
|
+
<slot name="expandedText" />
|
|
67
|
+
</div>
|
|
63
68
|
</div>
|
|
64
69
|
</div>
|
|
65
70
|
</div>
|
|
@@ -75,79 +80,83 @@
|
|
|
75
80
|
.ds-banner {
|
|
76
81
|
$self: &;
|
|
77
82
|
|
|
78
|
-
|
|
79
|
-
border-style: solid;
|
|
80
|
-
border-width: 1px;
|
|
81
|
-
display: flex;
|
|
82
|
-
flex-direction: column;
|
|
83
|
-
padding: $space-xs;
|
|
84
|
-
|
|
85
|
-
@media #{breakpoint-s()} {
|
|
86
|
-
&.-ds-horizontal {
|
|
87
|
-
#{$self}__iconContainer {
|
|
88
|
-
padding: $space-2xs 0;
|
|
89
|
-
}
|
|
83
|
+
container-type: inline-size;
|
|
90
84
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
85
|
+
&__inner {
|
|
86
|
+
border-radius: $radius-m;
|
|
87
|
+
border-style: solid;
|
|
88
|
+
border-width: 1px;
|
|
89
|
+
display: flex;
|
|
90
|
+
flex-direction: column;
|
|
91
|
+
padding: $space-xs;
|
|
94
92
|
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
93
|
+
@container (width > 500px) {
|
|
94
|
+
&.-ds-horizontal {
|
|
95
|
+
#{$self}__iconContainer {
|
|
96
|
+
padding: $space-2xs 0;
|
|
97
|
+
}
|
|
98
98
|
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
99
|
+
#{$self}__header {
|
|
100
|
+
padding: 0 $space-2xs;
|
|
101
|
+
}
|
|
102
102
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
103
|
+
#{$self}__expander {
|
|
104
|
+
padding: $space-xs $space-4xs $space-xs 0;
|
|
105
|
+
}
|
|
106
106
|
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
107
|
+
#{$self}__textWrapper {
|
|
108
|
+
flex-direction: row;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
#{$self}__rightWrapper {
|
|
112
|
+
padding: $space-5xs 0 $space-5xs $space-s;
|
|
113
|
+
}
|
|
110
114
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
115
|
+
#{$self}__buttonWrapper {
|
|
116
|
+
padding: $space-xs 0;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
#{$self}__rightSlot {
|
|
120
|
+
flex-grow: initial;
|
|
121
|
+
padding: $space-xs 0 $space-xs 0;
|
|
122
|
+
}
|
|
114
123
|
}
|
|
115
124
|
}
|
|
116
|
-
}
|
|
117
125
|
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
126
|
+
&.-ds-warning {
|
|
127
|
+
background-color: $color-warning-background;
|
|
128
|
+
border-color: $color-warning-border-weak;
|
|
129
|
+
}
|
|
122
130
|
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
131
|
+
&.-ds-success {
|
|
132
|
+
background-color: $color-success-background;
|
|
133
|
+
border-color: $color-success-border-weak;
|
|
134
|
+
}
|
|
127
135
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
136
|
+
&.-ds-info {
|
|
137
|
+
background-color: $color-info-background;
|
|
138
|
+
border-color: $color-info-border-weak;
|
|
139
|
+
}
|
|
132
140
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
141
|
+
&.-ds-fail {
|
|
142
|
+
background-color: $color-fail-background;
|
|
143
|
+
border-color: $color-fail-border-weak;
|
|
144
|
+
}
|
|
137
145
|
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
146
|
+
&.-ds-neutral {
|
|
147
|
+
background-color: $color-neutral-background;
|
|
148
|
+
border-color: $color-neutral-border-weak;
|
|
149
|
+
}
|
|
142
150
|
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
151
|
+
&.-ds-default {
|
|
152
|
+
background-color: $color-default-background;
|
|
153
|
+
border-color: $color-neutral-border-weak;
|
|
154
|
+
}
|
|
147
155
|
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
156
|
+
&.-ds-danger {
|
|
157
|
+
background-color: $color-danger-background;
|
|
158
|
+
border-color: $color-danger-border-weak;
|
|
159
|
+
}
|
|
151
160
|
}
|
|
152
161
|
|
|
153
162
|
&__content {
|
|
@@ -67,11 +67,11 @@
|
|
|
67
67
|
@import '../../../../styles/settings/typography/tokens';
|
|
68
68
|
|
|
69
69
|
@mixin setIconButtonAdditions($border: null, $icon: null) {
|
|
70
|
-
@if $border
|
|
70
|
+
@if $border {
|
|
71
71
|
border: 1px solid $border;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
|
-
@if $icon
|
|
74
|
+
@if $icon {
|
|
75
75
|
.ds-iconButton {
|
|
76
76
|
&__icon,
|
|
77
77
|
&__loadingIcon {
|
|
@@ -260,13 +260,13 @@ export default defineComponent({
|
|
|
260
260
|
},
|
|
261
261
|
computed: {
|
|
262
262
|
eyebrowText() {
|
|
263
|
-
if (!this.date
|
|
263
|
+
if (!this.date) {
|
|
264
264
|
return '';
|
|
265
265
|
}
|
|
266
266
|
return capitalizeFirstLetter(localWeekdayName(this.date));
|
|
267
267
|
},
|
|
268
268
|
text() {
|
|
269
|
-
if (
|
|
269
|
+
if (!this.date) {
|
|
270
270
|
return this.placeholder;
|
|
271
271
|
}
|
|
272
272
|
return localFullDateWithShortMonthName(this.date);
|
|
@@ -69,7 +69,7 @@ $minimal-drawer-header-height: 82px;
|
|
|
69
69
|
flex-direction: column;
|
|
70
70
|
|
|
71
71
|
&__secondLevel {
|
|
72
|
-
position: absolute !important; //it is required so firstLevel content does not make component wider when hidden, and important is needed so component does not change its width when button was clicked
|
|
72
|
+
position: absolute !important; // it is required so firstLevel content does not make component wider when hidden, and important is needed so component does not change its width when button was clicked
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
&__leftIcon {
|
|
@@ -83,7 +83,7 @@ $minimal-drawer-header-height: 82px;
|
|
|
83
83
|
row-gap: $space-4xs;
|
|
84
84
|
|
|
85
85
|
&.-ds-hidden {
|
|
86
|
-
visibility: hidden; //by this we make sure that height does not change when switching to second level
|
|
86
|
+
visibility: hidden; // by this we make sure that height does not change when switching to second level
|
|
87
87
|
}
|
|
88
88
|
}
|
|
89
89
|
|
|
@@ -112,7 +112,7 @@
|
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
&__text {
|
|
115
|
-
@include label-l-default-regular; //it fixes whole component height
|
|
115
|
+
@include label-l-default-regular; // it fixes whole component height
|
|
116
116
|
|
|
117
117
|
// To hide scrollbar in case Chrome renders __label higher than line-height - there are some problems with fraction of a pixel on Retina screens
|
|
118
118
|
// https://bethinkteam.slack.com/archives/C012R8RM3A4/p1727776466931369?thread_ts=1727775029.076259&cid=C012R8RM3A4
|
|
@@ -69,10 +69,11 @@
|
|
|
69
69
|
flex-direction: column;
|
|
70
70
|
padding: 0;
|
|
71
71
|
|
|
72
|
-
/* stylelint-disable
|
|
72
|
+
/* stylelint-disable selector-class-pattern */
|
|
73
73
|
&.-ds-color-neutral :deep(.popper__arrow) {
|
|
74
74
|
border-color: $color-neutral-background transparent !important;
|
|
75
75
|
}
|
|
76
|
+
/* stylelint-enable selector-class-pattern */
|
|
76
77
|
|
|
77
78
|
&.-ds-color-neutral {
|
|
78
79
|
background-color: $color-neutral-background;
|
|
@@ -124,8 +124,8 @@ $progress-donut-chart-range-colors: (
|
|
|
124
124
|
transform: rotate(90deg);
|
|
125
125
|
transform-origin: 50% 50%;
|
|
126
126
|
// Disabled for v3.0
|
|
127
|
-
//stroke-linecap: round;
|
|
128
|
-
//stroke-linejoin: round;
|
|
127
|
+
// stroke-linecap: round;
|
|
128
|
+
// stroke-linejoin: round;
|
|
129
129
|
transition: all $default-transition-time ease-out;
|
|
130
130
|
}
|
|
131
131
|
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
:is-selected="isSelected"
|
|
21
21
|
class="ds-basicRichListItem"
|
|
22
22
|
:class="{
|
|
23
|
+
'-ds-loading': state === RICH_LIST_ITEM_STATE.LOADING,
|
|
23
24
|
'-ds-small': size === RICH_LIST_ITEM_SIZE.SMALL,
|
|
24
25
|
}"
|
|
25
26
|
@mouseover="hovered = true"
|
|
@@ -77,6 +78,12 @@
|
|
|
77
78
|
padding: $space-2xs 0;
|
|
78
79
|
}
|
|
79
80
|
}
|
|
81
|
+
|
|
82
|
+
&.-ds-loading {
|
|
83
|
+
#{$root}__content {
|
|
84
|
+
flex: 1;
|
|
85
|
+
}
|
|
86
|
+
}
|
|
80
87
|
}
|
|
81
88
|
</style>
|
|
82
89
|
|
|
@@ -249,6 +256,7 @@ export default defineComponent({
|
|
|
249
256
|
return {
|
|
250
257
|
hovered: false,
|
|
251
258
|
RICH_LIST_ITEM_SIZE: Object.freeze(RICH_LIST_ITEM_SIZE),
|
|
259
|
+
RICH_LIST_ITEM_STATE: Object.freeze(RICH_LIST_ITEM_STATE),
|
|
252
260
|
};
|
|
253
261
|
},
|
|
254
262
|
computed: {
|
|
@@ -261,12 +269,12 @@ export default defineComponent({
|
|
|
261
269
|
return map[this.size];
|
|
262
270
|
},
|
|
263
271
|
textGroupState(): TextGroupState {
|
|
264
|
-
if (this.hovered && this.isInteractive) {
|
|
265
|
-
return TEXT_GROUP_STATES.HOVERED;
|
|
266
|
-
}
|
|
267
272
|
if (this.state === RICH_LIST_ITEM_STATE.LOADING) {
|
|
268
273
|
return TEXT_GROUP_STATES.LOADING;
|
|
269
274
|
}
|
|
275
|
+
if (this.hovered && this.isInteractive) {
|
|
276
|
+
return TEXT_GROUP_STATES.HOVERED;
|
|
277
|
+
}
|
|
270
278
|
return TEXT_GROUP_STATES.DEFAULT;
|
|
271
279
|
},
|
|
272
280
|
},
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
$background-focus,
|
|
33
33
|
$background-disabled
|
|
34
34
|
) {
|
|
35
|
-
@if $background
|
|
35
|
+
@if not $background {
|
|
36
36
|
background-color: transparent;
|
|
37
37
|
}
|
|
38
38
|
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
$icon-focused: null,
|
|
82
82
|
$icon-disabled: null
|
|
83
83
|
) {
|
|
84
|
-
@if $border
|
|
84
|
+
@if $border {
|
|
85
85
|
border: 1px solid $border;
|
|
86
86
|
}
|
|
87
87
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/* latin-ext */
|
|
2
2
|
@font-face {
|
|
3
|
-
font-family:
|
|
3
|
+
font-family: Lato;
|
|
4
4
|
font-style: normal;
|
|
5
5
|
font-weight: 300;
|
|
6
6
|
src: url(~design-system/lib/fonts/lato/lato-ext-300.woff2) format('woff2');
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
|
|
11
11
|
/* latin */
|
|
12
12
|
@font-face {
|
|
13
|
-
font-family:
|
|
13
|
+
font-family: Lato;
|
|
14
14
|
font-style: normal;
|
|
15
15
|
font-weight: 300;
|
|
16
16
|
src: url(~design-system/lib/fonts/lato/lato-latin-300.woff2) format('woff2');
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
|
|
21
21
|
/* latin-ext */
|
|
22
22
|
@font-face {
|
|
23
|
-
font-family:
|
|
23
|
+
font-family: Lato;
|
|
24
24
|
font-style: normal;
|
|
25
25
|
font-weight: 400;
|
|
26
26
|
src: url(~design-system/lib/fonts/lato/lato-ext.woff2) format('woff2');
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
|
|
31
31
|
/* latin */
|
|
32
32
|
@font-face {
|
|
33
|
-
font-family:
|
|
33
|
+
font-family: Lato;
|
|
34
34
|
font-style: normal;
|
|
35
35
|
font-weight: 400;
|
|
36
36
|
src: url(~design-system/lib/fonts/lato/lato-latin.woff2) format('woff2');
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
|
|
41
41
|
/* latin-ext */
|
|
42
42
|
@font-face {
|
|
43
|
-
font-family:
|
|
43
|
+
font-family: Lato;
|
|
44
44
|
font-style: normal;
|
|
45
45
|
font-weight: 700;
|
|
46
46
|
src: url(~design-system/lib/fonts/lato/lato-ext-700.woff2) format('woff2');
|
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
|
|
51
51
|
/* latin */
|
|
52
52
|
@font-face {
|
|
53
|
-
font-family:
|
|
53
|
+
font-family: Lato;
|
|
54
54
|
font-style: normal;
|
|
55
55
|
font-weight: 700;
|
|
56
56
|
src: url(~design-system/lib/fonts/lato/lato-latin-700.woff2) format('woff2');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bethinkpl/design-system",
|
|
3
|
-
"version": "26.2.
|
|
3
|
+
"version": "26.2.1",
|
|
4
4
|
"description": "Bethink universe design-system",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -69,14 +69,15 @@
|
|
|
69
69
|
"jsdom": "^19.0.0",
|
|
70
70
|
"jsdom-global": "^3.0.2",
|
|
71
71
|
"postcss": "^8.4.47",
|
|
72
|
+
"postcss-html": "^1.7.0",
|
|
72
73
|
"postcss-prefix-selector": "^1.9.0",
|
|
73
74
|
"prettier": "2.7.1",
|
|
74
75
|
"sass": "^1.28.0",
|
|
75
76
|
"storybook": "^8.3.4",
|
|
76
|
-
"stylelint": "
|
|
77
|
-
"stylelint-config-standard": "
|
|
77
|
+
"stylelint": "14.12.0",
|
|
78
|
+
"stylelint-config-standard-scss": "6.1.0",
|
|
79
|
+
"stylelint-config-standard-vue": "1.0.0",
|
|
78
80
|
"stylelint-order": "6.0.3",
|
|
79
|
-
"stylelint-scss": "3.18.0",
|
|
80
81
|
"ts-jest": "29.0.5",
|
|
81
82
|
"ts-node": "^10.9.1",
|
|
82
83
|
"typescript": "4.6.4",
|
package/stylelint.config.cjs
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
extends:
|
|
3
|
-
|
|
2
|
+
"extends": [
|
|
3
|
+
'stylelint-config-standard-scss',
|
|
4
|
+
'stylelint-config-standard-vue/scss'
|
|
5
|
+
],
|
|
6
|
+
plugins: ['stylelint-order'],
|
|
4
7
|
rules: {
|
|
5
8
|
// Support SCSS imports
|
|
6
9
|
'at-rule-no-unknown': null,
|
|
7
10
|
'scss/at-rule-no-unknown': true,
|
|
11
|
+
'string-quotes': 'single',
|
|
8
12
|
|
|
9
13
|
'order/order': [
|
|
10
14
|
[
|
|
@@ -24,12 +28,14 @@ module.exports = {
|
|
|
24
28
|
type: 'at-rule',
|
|
25
29
|
name: 'media',
|
|
26
30
|
},
|
|
31
|
+
{
|
|
32
|
+
type: 'at-rule',
|
|
33
|
+
name: 'container',
|
|
34
|
+
},
|
|
27
35
|
'rules',
|
|
28
36
|
],
|
|
29
37
|
],
|
|
30
38
|
indentation: 'tab',
|
|
31
|
-
'value-list-comma-newline-after': null,
|
|
32
|
-
'declaration-colon-newline-after': null,
|
|
33
39
|
'selector-pseudo-class-no-unknown': [
|
|
34
40
|
true,
|
|
35
41
|
{
|
|
@@ -44,6 +50,28 @@ module.exports = {
|
|
|
44
50
|
],
|
|
45
51
|
'order/properties-alphabetical-order': true,
|
|
46
52
|
'selector-class-pattern': '-?ds-[a-z][a-zA-Z_]*',
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
// Disable recommended rules, consider enabling them when you have time
|
|
56
|
+
'alpha-value-notation': null,
|
|
57
|
+
'color-function-notation': null,
|
|
58
|
+
'declaration-block-no-redundant-longhand-properties': null,
|
|
59
|
+
'declaration-colon-newline-after': null,
|
|
60
|
+
'function-url-quotes': null,
|
|
61
|
+
'keyframes-name-pattern': null,
|
|
62
|
+
'max-line-length': null,
|
|
63
|
+
'property-no-vendor-prefix': null,
|
|
64
|
+
'rule-empty-line-before': null,
|
|
65
|
+
'scss/at-extend-no-missing-placeholder': null,
|
|
66
|
+
'scss/at-mixin-pattern': null,
|
|
67
|
+
'scss/at-mixin-argumentless-call-parentheses': null,
|
|
68
|
+
'scss/dollar-variable-empty-line-before': null,
|
|
69
|
+
'scss/dollar-variable-pattern': null,
|
|
70
|
+
'scss/double-slash-comment-empty-line-before': null,
|
|
71
|
+
'scss/no-global-function-names': null,
|
|
72
|
+
'selector-not-notation': null,
|
|
73
|
+
'value-list-comma-newline-after': null,
|
|
74
|
+
'value-no-vendor-prefix': null,
|
|
47
75
|
},
|
|
48
76
|
ignoreFiles: ['lib/styles/settings/typography/_tokens.scss'],
|
|
49
77
|
};
|