@bethinkpl/design-system 16.6.0 → 16.6.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/dist/design-system.umd.js +16 -16
- package/dist/design-system.umd.js.map +1 -1
- package/dist/lib/js/components/Drawer/DrawerHeader/DrawerHeader.vue.d.ts +272 -3
- package/dist/lib/js/components/SelectList/SelectListItem/SelectListItem.vue.d.ts +241 -3
- package/docs/iframe.html +1 -1
- package/docs/main.63f40624.iframe.bundle.js +1 -0
- package/docs/project.json +1 -1
- package/lib/js/components/Outline/OutlineItem/OutlineItem.stories.ts +12 -3
- package/lib/js/components/Outline/OutlineItem/OutlineItem.vue +1 -3
- package/package.json +1 -1
- package/docs/main.36230dbf.iframe.bundle.js +0 -1
package/docs/project.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"generatedAt":
|
|
1
|
+
{"generatedAt":1685343795105,"builder":{"name":"webpack5"},"hasCustomBabel":false,"hasCustomWebpack":true,"hasStaticDirs":false,"hasStorybookEslint":true,"refCount":0,"metaFramework":{"name":"vue-cli","packageName":"@vue/cli-service","version":"5.0.4"},"packageManager":{"type":"yarn","version":"1.22.19"},"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"}}}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import OutlineItem from './OutlineItem.vue';
|
|
2
|
+
import DsPill from '../..//Pill/Pill.vue';
|
|
2
3
|
import { Args, ArgTypes, Meta, StoryFn } from '@storybook/vue3';
|
|
3
4
|
import { ICONS } from '../../Icons/Icon';
|
|
4
5
|
import {
|
|
@@ -13,7 +14,7 @@ export default {
|
|
|
13
14
|
} as Meta<typeof OutlineItem>;
|
|
14
15
|
|
|
15
16
|
const StoryTemplate: StoryFn<typeof OutlineItem> = (args) => ({
|
|
16
|
-
components: { OutlineItem },
|
|
17
|
+
components: { OutlineItem, DsPill },
|
|
17
18
|
setup() {
|
|
18
19
|
return { ...args };
|
|
19
20
|
},
|
|
@@ -22,7 +23,15 @@ const StoryTemplate: StoryFn<typeof OutlineItem> = (args) => ({
|
|
|
22
23
|
ICONS: Object.freeze(ICONS),
|
|
23
24
|
};
|
|
24
25
|
},
|
|
25
|
-
template:
|
|
26
|
+
template: `
|
|
27
|
+
<outline-item :label="label" :additional-text="additionalText" :size="size" :state="state"
|
|
28
|
+
:icon-left="ICONS[iconLeft]" :icon-right="ICONS[iconRight]" :is-done="isDone"
|
|
29
|
+
:is-selected="isSelected" :background-color="backgroundColor" :index="index"
|
|
30
|
+
:is-label-uppercase="isLabelUppercase" :icon-right-rotation="iconRightRotation"
|
|
31
|
+
:has-selected-icons-color-primary="hasSelectedIconsColorPrimary"
|
|
32
|
+
:is-selected-interactive="isSelectedInteractive">
|
|
33
|
+
<ds-pill v-if="defaultSlot.length > 0" :label="defaultSlot" />
|
|
34
|
+
</outline-item>`,
|
|
26
35
|
});
|
|
27
36
|
|
|
28
37
|
export const Interactive = StoryTemplate.bind({});
|
|
@@ -30,7 +39,7 @@ export const Interactive = StoryTemplate.bind({});
|
|
|
30
39
|
const args = {} as Args;
|
|
31
40
|
|
|
32
41
|
const argTypes = {
|
|
33
|
-
defaultSlot: { control: { type: 'text' }, defaultValue: '
|
|
42
|
+
defaultSlot: { control: { type: 'text' }, defaultValue: '10 / 20' },
|
|
34
43
|
size: {
|
|
35
44
|
control: { type: 'select', options: Object.values(OUTLINE_ITEM_SIZES) },
|
|
36
45
|
defaultValue: OUTLINE_ITEM_SIZES.SMALL,
|
|
@@ -81,13 +81,12 @@
|
|
|
81
81
|
&__content {
|
|
82
82
|
align-items: center;
|
|
83
83
|
column-gap: $space-xxs;
|
|
84
|
-
display:
|
|
84
|
+
display: flex;
|
|
85
85
|
}
|
|
86
86
|
|
|
87
87
|
&__index {
|
|
88
88
|
@include label-l-default-bold;
|
|
89
89
|
|
|
90
|
-
align-self: flex-start;
|
|
91
90
|
color: $color-neutral-text-weak;
|
|
92
91
|
|
|
93
92
|
&.-active {
|
|
@@ -117,7 +116,6 @@
|
|
|
117
116
|
}
|
|
118
117
|
|
|
119
118
|
&__icon {
|
|
120
|
-
align-self: flex-start;
|
|
121
119
|
color: $color-neutral-icon-weak;
|
|
122
120
|
|
|
123
121
|
&.-active {
|