@bethinkpl/design-system 25.0.9 → 25.0.10
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 +50 -41
- package/dist/design-system.umd.js.map +1 -1
- package/dist/lib/js/components/Cards/Card/Card.vue.d.ts +3 -54
- package/dist/lib/js/components/Drawer/DrawerListItem/DrawerListItem.vue.d.ts +3 -244
- package/dist/lib/js/components/Skeleton/Skeleton.vue.d.ts +2 -41
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionOpenEnded/SurveyQuestionOpenEnded.vue.d.ts +3 -269
- package/dist/lib/js/components/SurveyQuestions/SurveyQuestionScale/SurveyQuestionScale.vue.d.ts +3 -312
- package/dist/lib/js/components/SurveyToggle/SurveyToggle.vue.d.ts +3 -71
- package/docs/iframe.html +1 -1
- package/docs/main.2c610e68.iframe.bundle.js +2 -0
- package/docs/project.json +1 -1
- package/lib/js/components/Outline/OutlineItem/OutlineItem.stories.ts +5 -1
- package/lib/js/components/Outline/OutlineItem/OutlineItem.vue +16 -1
- package/package.json +1 -1
- package/docs/main.08ae3a51.iframe.bundle.js +0 -2
- /package/docs/{main.08ae3a51.iframe.bundle.js.LICENSE.txt → main.2c610e68.iframe.bundle.js.LICENSE.txt} +0 -0
package/docs/project.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1727867256045,"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"}}}
|
|
@@ -30,6 +30,9 @@ const StoryTemplate: StoryFn<typeof OutlineItem> = (args) => ({
|
|
|
30
30
|
:is-label-uppercase="isLabelUppercase" :icon-right-rotation="iconRightRotation"
|
|
31
31
|
:has-selected-icons-color-primary="hasSelectedIconsColorPrimary"
|
|
32
32
|
:is-selected-interactive="isSelectedInteractive">
|
|
33
|
+
<template #labelSlot v-if="labelSlot">
|
|
34
|
+
<span v-html="labelSlot" />
|
|
35
|
+
</template>
|
|
33
36
|
<template #default v-if="defaultSlot.length > 0">
|
|
34
37
|
<ds-chip :label="defaultSlot" />
|
|
35
38
|
</template>
|
|
@@ -42,6 +45,7 @@ const args = {} as Args;
|
|
|
42
45
|
|
|
43
46
|
const argTypes = {
|
|
44
47
|
defaultSlot: { control: { type: 'text' }, defaultValue: '10 / 20' },
|
|
48
|
+
labelSlot: { control: { type: 'text' }, defaultValue: 'Outline Item label in slot' },
|
|
45
49
|
size: {
|
|
46
50
|
control: { type: 'select', options: Object.values(OUTLINE_ITEM_SIZES) },
|
|
47
51
|
defaultValue: OUTLINE_ITEM_SIZES.SMALL,
|
|
@@ -71,7 +75,7 @@ const argTypes = {
|
|
|
71
75
|
control: { type: 'boolean' },
|
|
72
76
|
defaultValue: false,
|
|
73
77
|
},
|
|
74
|
-
additionalText: { control: { type: 'text' } },
|
|
78
|
+
additionalText: { control: { type: 'text' }, defaultValue: '' },
|
|
75
79
|
state: {
|
|
76
80
|
control: { type: 'select', options: Object.values(OUTLINE_ITEM_STATES) },
|
|
77
81
|
defaultValue: OUTLINE_ITEM_STATES.DEFAULT,
|
|
@@ -28,7 +28,12 @@
|
|
|
28
28
|
/>
|
|
29
29
|
<span class="ds-outlineItem__text">
|
|
30
30
|
<span class="ds-outlineItem__label" :class="{ '-ds-uppercase': isLabelUppercase }">
|
|
31
|
-
|
|
31
|
+
<template v-if="$slots.labelSlot">
|
|
32
|
+
<slot name="labelSlot" />
|
|
33
|
+
</template>
|
|
34
|
+
<template v-else>
|
|
35
|
+
{{ label }}
|
|
36
|
+
</template>
|
|
32
37
|
</span>
|
|
33
38
|
<span v-if="additionalText" class="ds-outlineItem__additionalText">
|
|
34
39
|
{{ additionalText }}
|
|
@@ -36,6 +41,7 @@
|
|
|
36
41
|
</span>
|
|
37
42
|
</div>
|
|
38
43
|
<div
|
|
44
|
+
v-if="$slots.default || isDone || iconRight"
|
|
39
45
|
class="ds-outlineItem__rightContent"
|
|
40
46
|
:class="{ '-ds-centeredContent': $slots.default }"
|
|
41
47
|
>
|
|
@@ -84,12 +90,17 @@
|
|
|
84
90
|
align-items: flex-start;
|
|
85
91
|
column-gap: $space-2xs;
|
|
86
92
|
display: flex;
|
|
93
|
+
max-width: 100%;
|
|
87
94
|
|
|
88
95
|
&.-ds-centeredContent {
|
|
89
96
|
align-items: center;
|
|
90
97
|
}
|
|
91
98
|
}
|
|
92
99
|
|
|
100
|
+
&__content {
|
|
101
|
+
overflow-x: hidden;
|
|
102
|
+
}
|
|
103
|
+
|
|
93
104
|
&__index {
|
|
94
105
|
@include label-l-default-bold;
|
|
95
106
|
|
|
@@ -102,6 +113,10 @@
|
|
|
102
113
|
|
|
103
114
|
&__text {
|
|
104
115
|
@include label-l-default-regular; //it fixes whole component height
|
|
116
|
+
|
|
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
|
+
// https://bethinkteam.slack.com/archives/C012R8RM3A4/p1727776466931369?thread_ts=1727775029.076259&cid=C012R8RM3A4
|
|
119
|
+
overflow: hidden;
|
|
105
120
|
}
|
|
106
121
|
|
|
107
122
|
&__label {
|