dxd-style-code 0.1.10 → 0.1.12
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/dxd-style-code.js +9785 -8652
- package/dist/dxd-style-code.umd.cjs +3 -3
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/atoms/DX/DX.stories.js +265 -0
- package/src/components/atoms/DX/DX.vue +80 -0
- package/src/components/atoms/DX/index.js +2 -0
- package/src/components/atoms/DXAvatar/DXAvatar.stories.js +1 -2
- package/src/components/atoms/DXBackdrop/DXBackdrop.stories.js +77 -1
- package/src/components/atoms/DXBadge/DXBadge.stories.js +83 -1
- package/src/components/atoms/DXBlockquote/DXBlockquote.stories.js +99 -0
- package/src/components/{layout → atoms}/DXBox/DXBox.stories.js +2 -2
- package/src/components/{layout → atoms}/DXBox/DXBox.vue +69 -2
- package/src/components/atoms/DXButton/DXButton.stories.js +94 -1
- package/src/components/atoms/DXButton/DXButton.vue +145 -11
- package/src/components/atoms/DXCard/DXCard.stories.js +72 -14
- package/src/components/atoms/DXCard/DXCard.vue +3 -4
- package/src/components/atoms/DXCheckbox/DXCheckbox.stories.js +85 -1
- package/src/components/atoms/DXCode/DXCode.stories.js +95 -0
- package/src/components/{layout → atoms}/DXContainer/DXContainer.stories.js +2 -2
- package/src/components/{layout → atoms}/DXContainer/DXContainer.vue +28 -1
- package/src/components/atoms/DXDivider/DXDivider.stories.js +84 -1
- package/src/components/{layout → atoms}/DXFlex/DXFlex.stories.js +2 -2
- package/src/components/{layout → atoms}/DXFlex/DXFlex.vue +57 -3
- package/src/components/atoms/DXFormLabel/DXFormLabel.stories.js +70 -1
- package/src/components/{layout → atoms}/DXGrid/DXGrid.stories.js +2 -2
- package/src/components/atoms/DXHeading/DXHeading.stories.js +143 -0
- package/src/components/atoms/DXIcon/DXIcon.stories.js +74 -0
- package/src/components/atoms/DXIconWrapper/DXIconWrapper.stories.js +69 -0
- package/src/components/atoms/DXImage/DXImage.stories.js +483 -0
- package/src/components/atoms/DXImage/DXImage.vue +294 -0
- package/src/components/atoms/DXImage/index.js +2 -0
- package/src/components/atoms/DXInputAddon/DXInputAddon.stories.js +86 -1
- package/src/components/atoms/DXLabel/DXLabel.stories.js +101 -0
- package/src/components/atoms/DXLink/DXLink.stories.js +75 -10
- package/src/components/atoms/DXLink/DXLink.vue +59 -3
- package/src/components/atoms/DXList/DXList.stories.js +125 -0
- package/src/components/atoms/DXLoader/DXLoader.stories.js +75 -1
- package/src/components/atoms/DXNav/DXNav.stories.js +236 -0
- package/src/components/atoms/DXNav/DXNav.vue +114 -0
- package/src/components/atoms/DXNav/index.js +2 -0
- package/src/components/atoms/DXProgress/DXProgress.stories.js +76 -1
- package/src/components/atoms/DXRadio/DXRadio.stories.js +85 -1
- package/src/components/atoms/DXSkeleton/DXSkeleton.stories.js +59 -1
- package/src/components/atoms/DXSlider/DXSlider.stories.js +89 -0
- package/src/components/{layout → atoms}/DXSpacer/DXSpacer.stories.js +2 -2
- package/src/components/{layout → atoms}/DXStack/DXStack.stories.js +2 -2
- package/src/components/{layout → atoms}/DXStack/DXStack.vue +5 -2
- package/src/components/atoms/DXTags/DXTags.stories.js +77 -0
- package/src/components/atoms/DXText/DXText.stories.js +129 -0
- package/src/components/atoms/DXToast/DXToast.stories.js +64 -1
- package/src/components/atoms/DXToggle/DXToggle.stories.js +84 -1
- package/src/components/atoms/DXToggleButton/DXToggleButton.stories.js +78 -1
- package/src/components/atoms/DXTooltip/DXTooltip.stories.js +98 -1
- package/src/components/atoms/index.js +16 -1
- package/src/components/index.js +1 -7
- package/src/components/molecules/DXActionButtons/DXActionButtons.stories.js +280 -77
- package/src/components/molecules/DXActionButtons/DXActionButtons.vue +31 -31
- package/src/components/molecules/DXAlert/DXAlert.stories.js +199 -1
- package/src/components/molecules/DXAlert/DXAlert.vue +35 -13
- package/src/components/molecules/DXBreadcrumb/DXBreadcrumb.stories.js +125 -1
- package/src/components/molecules/DXBreadcrumb/DXBreadcrumb.vue +22 -18
- package/src/components/molecules/DXButtonGroup/DXButtonGroup.stories.js +193 -6
- package/src/components/molecules/DXButtonGroup/DXButtonGroup.vue +39 -3
- package/src/components/molecules/DXCloseButton/DXCloseButton.stories.js +64 -1
- package/src/components/molecules/DXComboBox/DXComboBox.stories.js +66 -0
- package/src/components/molecules/DXCopyField/DXCopyField.stories.js +128 -1
- package/src/components/molecules/DXCopyField/DXCopyField.vue +60 -7
- package/src/components/molecules/DXDataFilter/DXDataFilter.vue +8 -6
- package/src/components/molecules/DXDatePicker/DXDatePicker.stories.js +58 -0
- package/src/components/molecules/DXFileUpload/DXFileUpload.stories.js +66 -0
- package/src/components/molecules/DXFilterGroup/DXFilterGroup.stories.js +61 -0
- package/src/components/molecules/DXFormControl/DXFormControl.stories.js +76 -0
- package/src/components/molecules/DXFormControl/DXFormControl.vue +9 -8
- package/src/components/molecules/DXInput/DXInput.stories.js +100 -1
- package/src/components/molecules/DXInputGroup/DXInputGroup.stories.js +89 -1
- package/src/components/molecules/DXInputMask/DXInputMask.stories.js +67 -0
- package/src/components/molecules/DXMenu/DXMenu.stories.js +111 -4
- package/src/components/molecules/DXMenu/DXMenu.vue +18 -5
- package/src/components/molecules/DXMenu/README.md +1 -1
- package/src/components/molecules/DXPagination/DXPagination.stories.js +105 -2
- package/src/components/molecules/DXPagination/DXPagination.vue +18 -33
- package/src/components/molecules/DXPasswordInput/DXPasswordInput.stories.js +67 -1
- package/src/components/molecules/DXRadioCard/DXRadioCard.stories.js +64 -0
- package/src/components/molecules/DXRadioGroup/DXRadioGroup.stories.js +84 -0
- package/src/components/molecules/DXRating/DXRating.stories.js +3 -2
- package/src/components/molecules/DXSearchBar/DXSearchBar.stories.js +1 -1
- package/src/components/molecules/DXSearchBar/DXSearchBar.vue +16 -12
- package/src/components/molecules/DXSearchSelect/DXSearchSelect.stories.js +71 -0
- package/src/components/molecules/DXSegmentedControl/DXSegmentedControl.stories.js +74 -0
- package/src/components/molecules/DXSelect/DXSelect.stories.js +92 -1
- package/src/components/molecules/DXStatCard/DXStatCard.stories.js +1 -1
- package/src/components/molecules/DXStatCard/DXStatCard.vue +30 -26
- package/src/components/molecules/DXTableFiltersPanel/index.js +2 -0
- package/src/components/molecules/DXTablePagination/DXTablePagination.stories.js +67 -0
- package/src/components/molecules/DXTableToolbar/DXTableToolbar.stories.js +71 -0
- package/src/components/molecules/DXTextarea/DXTextarea.stories.js +87 -1
- package/src/components/molecules/DXTimePicker/DXTimePicker.stories.js +1 -1
- package/src/components/molecules/DXValidationIcon/DXValidationIcon.stories.js +59 -1
- package/src/components/molecules/index.js +0 -1
- package/src/components/organisms/DXAccordion/DXAccordion.stories.js +75 -0
- package/src/components/organisms/DXAppLayout/DXAppLayout.stories.js +28 -26
- package/src/components/organisms/DXAuthenticationForm/DXAuthenticationForm.stories.js +0 -2
- package/src/components/organisms/DXAuthenticationForm/DXAuthenticationForm.vue +5 -8
- package/src/components/{molecules → organisms}/DXBaseTable/DXBaseTable.stories.js +78 -1
- package/src/components/{molecules → organisms}/DXBaseTable/DXBaseTable.vue +2 -2
- package/src/components/organisms/DXChartContainer/DXChartContainer.stories.js +1 -1
- package/src/components/organisms/DXChartContainer/DXChartContainer.vue +10 -6
- package/src/components/organisms/DXChatInterface/DXChatInterface.stories.js +1 -1
- package/src/components/organisms/DXChatInterface/DXChatInterface.vue +6 -4
- package/src/components/organisms/DXCommentSection/DXCommentSection.stories.js +1 -1
- package/src/components/organisms/DXCommentSection/DXCommentSection.vue +7 -6
- package/src/components/organisms/DXDashboardGrid/DXDashboardGrid.stories.js +1 -1
- package/src/components/organisms/DXDashboardGrid/DXDashboardGrid.vue +4 -2
- package/src/components/organisms/DXDashboardWidget/DXDashboardWidget.stories.js +1 -1
- package/src/components/organisms/DXDashboardWidget/DXDashboardWidget.vue +3 -2
- package/src/components/organisms/DXDataTable/DXDataTable.stories.js +1 -1
- package/src/components/organisms/DXDropdown/DXDropdown.stories.js +84 -1
- package/src/components/organisms/DXEmptyState/DXEmptyState.stories.js +64 -0
- package/src/components/organisms/DXEmptyState/DXEmptyState.vue +4 -2
- package/src/components/organisms/DXHeaderBar/DXHeaderBar.stories.js +409 -3
- package/src/components/organisms/DXHeaderBar/DXHeaderBar.vue +262 -53
- package/src/components/organisms/DXMediaGallery/DXMediaGallery.stories.js +1 -1
- package/src/components/organisms/DXMediaGallery/DXMediaGallery.vue +7 -5
- package/src/components/organisms/DXModal/DXModal.stories.js +93 -1
- package/src/components/organisms/DXModal/DXModal.vue +3 -2
- package/src/components/organisms/DXNotificationCenter/DXNotificationCenter.stories.js +1 -1
- package/src/components/organisms/DXNotificationCenter/DXNotificationCenter.vue +2 -1
- package/src/components/organisms/DXReportGenerator/DXReportGenerator.vue +4 -3
- package/src/components/organisms/DXSettingsPanel/DXSettingsPanel.vue +11 -8
- package/src/components/organisms/DXSidebar/DXSidebar.stories.js +1 -1
- package/src/components/organisms/DXSidebarMenu/DXSidebarMenu.stories.js +104 -1
- package/src/components/organisms/DXSidebarMenu/DXSidebarMenu.vue +14 -4
- package/src/components/organisms/DXSidebarMenu/README.md +3 -3
- package/src/components/organisms/DXTable/DXTable.stories.js +138 -11
- package/src/components/organisms/DXTable/DXTable.vue +1 -1
- package/src/components/organisms/DXTabs/DXTabs.stories.js +91 -1
- package/src/components/organisms/DXUserProfileCard/DXUserProfileCard.stories.js +1 -1
- package/src/components/organisms/DXUserProfileCard/DXUserProfileCard.vue +20 -18
- package/src/components/organisms/index.js +1 -0
- package/src/components/utilities/DXAnimatePresence/DXAnimatePresence.stories.js +1 -1
- package/src/components/utilities/DXBreakpointProvider/DXBreakpointProvider.stories.js +2 -2
- package/src/components/utilities/DXObserver/DXObserver.stories.js +1 -1
- package/src/components/utilities/DXPortal/DXPortal.stories.js +1 -1
- package/src/components/utilities/DXStaggeredAnimation/DXStaggeredAnimation.stories.js +2 -2
- package/src/components/utilities/DXThemeProvider/DXThemeProvider.stories.js +1 -1
- package/src/components/utilities/DXTransitionGroup/DXTransitionGroup.stories.js +1 -1
- package/src/composables/useSize.js +8 -1
- package/src/index.js +1 -7
- package/src/components/layout/index.js +0 -8
- package/src/components/typography/DXBlockquote/DXBlockquote.stories.js +0 -33
- package/src/components/typography/DXCode/DXCode.stories.js +0 -29
- package/src/components/typography/DXHeading/DXHeading.stories.js +0 -54
- package/src/components/typography/DXLabel/DXLabel.stories.js +0 -40
- package/src/components/typography/DXList/DXList.stories.js +0 -50
- package/src/components/typography/DXText/DXText.stories.js +0 -47
- package/src/components/typography/index.js +0 -8
- /package/src/components/{typography → atoms}/DXBlockquote/DXBlockquote.vue +0 -0
- /package/src/components/{typography → atoms}/DXBlockquote/index.js +0 -0
- /package/src/components/{layout → atoms}/DXBox/index.js +0 -0
- /package/src/components/{typography → atoms}/DXCode/DXCode.vue +0 -0
- /package/src/components/{typography → atoms}/DXCode/index.js +0 -0
- /package/src/components/{layout → atoms}/DXContainer/index.js +0 -0
- /package/src/components/{layout → atoms}/DXFlex/index.js +0 -0
- /package/src/components/{layout → atoms}/DXGrid/DXGrid.vue +0 -0
- /package/src/components/{layout → atoms}/DXGrid/index.js +0 -0
- /package/src/components/{typography → atoms}/DXHeading/DXHeading.vue +0 -0
- /package/src/components/{typography → atoms}/DXHeading/index.js +0 -0
- /package/src/components/{typography → atoms}/DXLabel/DXLabel.vue +0 -0
- /package/src/components/{typography → atoms}/DXLabel/index.js +0 -0
- /package/src/components/{typography → atoms}/DXList/DXList.vue +0 -0
- /package/src/components/{typography → atoms}/DXList/index.js +0 -0
- /package/src/components/{layout → atoms}/DXSpacer/DXSpacer.vue +0 -0
- /package/src/components/{layout → atoms}/DXSpacer/index.js +0 -0
- /package/src/components/{layout → atoms}/DXStack/index.js +0 -0
- /package/src/components/{typography → atoms}/DXText/DXText.vue +0 -0
- /package/src/components/{typography → atoms}/DXText/index.js +0 -0
- /package/src/components/{molecules → organisms}/DXBaseTable/index.js +0 -0
|
@@ -2,12 +2,12 @@ import { ref, inject, computed } from 'vue';
|
|
|
2
2
|
import DXBreakpointProvider from './DXBreakpointProvider.vue';
|
|
3
3
|
import DXCard from '../../atoms/DXCard/DXCard.vue';
|
|
4
4
|
import DXButton from '../../atoms/DXButton/DXButton.vue';
|
|
5
|
-
import DXGrid from '../../
|
|
5
|
+
import DXGrid from '../../atoms/DXGrid/DXGrid.vue';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: 'Utilities/DXBreakpointProvider',
|
|
9
9
|
component: DXBreakpointProvider,
|
|
10
|
-
tags: ['autodocs'],
|
|
10
|
+
tags: ['autodocs', 'category:provider'],
|
|
11
11
|
parameters: {
|
|
12
12
|
docs: {
|
|
13
13
|
description: {
|
|
@@ -2,12 +2,12 @@ import { ref } from 'vue';
|
|
|
2
2
|
import DXStaggeredAnimation from './DXStaggeredAnimation.vue';
|
|
3
3
|
import DXCard from '../../atoms/DXCard/DXCard.vue';
|
|
4
4
|
import DXButton from '../../atoms/DXButton/DXButton.vue';
|
|
5
|
-
import DXList from '../../
|
|
5
|
+
import DXList from '../../atoms/DXList/DXList.vue';
|
|
6
6
|
|
|
7
7
|
export default {
|
|
8
8
|
title: 'Utilities/DXStaggeredAnimation',
|
|
9
9
|
component: DXStaggeredAnimation,
|
|
10
|
-
tags: ['autodocs'],
|
|
10
|
+
tags: ['autodocs', 'category:animation'],
|
|
11
11
|
parameters: {
|
|
12
12
|
docs: {
|
|
13
13
|
description: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Композабл для унификации размеров компонентов
|
|
3
3
|
* @param {string} size - xs | sm | md | lg | xl (для spacing также доступен none)
|
|
4
|
-
* @param {string} type - button | buttonIcon | input | icon | text | checkbox | radio | avatar | spacing | loader | progress | inputAddon | sliderTrack | sliderThumb | tooltip | toggle | badge
|
|
4
|
+
* @param {string} type - button | buttonIcon | input | icon | text | checkbox | radio | avatar | spacing | loader | progress | inputAddon | sliderTrack | sliderThumb | tooltip | toggle | badge | image
|
|
5
5
|
* @returns {string|Object} Tailwind CSS классы или объект с классами для track и thumb (для toggle)
|
|
6
6
|
*/
|
|
7
7
|
export function useSize(size, type = 'input') {
|
|
@@ -122,6 +122,13 @@ export function useSize(size, type = 'input') {
|
|
|
122
122
|
sm: 'px-2 py-1 text-[11px]',
|
|
123
123
|
md: 'px-2.5 py-1.5 text-xs',
|
|
124
124
|
},
|
|
125
|
+
image: {
|
|
126
|
+
xs: 'w-8 h-8',
|
|
127
|
+
sm: 'w-12 h-12',
|
|
128
|
+
md: 'w-16 h-16',
|
|
129
|
+
lg: 'w-24 h-24',
|
|
130
|
+
xl: 'w-32 h-32',
|
|
131
|
+
},
|
|
125
132
|
};
|
|
126
133
|
|
|
127
134
|
// Для toggle возвращаем объект, для остальных - строку
|
package/src/index.js
CHANGED
|
@@ -1,13 +1,7 @@
|
|
|
1
1
|
// DX Components - Vue 3 UI Component Library
|
|
2
2
|
// Export all components
|
|
3
3
|
|
|
4
|
-
//
|
|
5
|
-
export * from './components/typography';
|
|
6
|
-
|
|
7
|
-
// Layout
|
|
8
|
-
export * from './components/layout';
|
|
9
|
-
|
|
10
|
-
// Atoms
|
|
4
|
+
// Atoms - basic building blocks (includes typography and layout components)
|
|
11
5
|
export * from './components/atoms';
|
|
12
6
|
|
|
13
7
|
// Molecules
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// Layout components
|
|
2
|
-
export { default as DXContainer } from './DXContainer';
|
|
3
|
-
export { default as DXGrid } from './DXGrid';
|
|
4
|
-
export { default as DXFlex } from './DXFlex';
|
|
5
|
-
export { default as DXStack } from './DXStack';
|
|
6
|
-
export { default as DXSpacer } from './DXSpacer';
|
|
7
|
-
export { default as DXBox } from './DXBox';
|
|
8
|
-
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
import DXBlockquote from './DXBlockquote.vue';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Typography/DXBlockquote',
|
|
5
|
-
component: DXBlockquote,
|
|
6
|
-
tags: ['autodocs'],
|
|
7
|
-
argTypes: {
|
|
8
|
-
variant: { control: { type: 'select' }, options: ['default', 'bordered', 'highlighted'] },
|
|
9
|
-
},
|
|
10
|
-
};
|
|
11
|
-
|
|
12
|
-
export const Default = {
|
|
13
|
-
args: { cite: 'Стив Джобс' },
|
|
14
|
-
render: (args) => ({
|
|
15
|
-
components: { DXBlockquote },
|
|
16
|
-
setup() { return { args }; },
|
|
17
|
-
template: '<DXBlockquote v-bind="args">Дизайн — это не только то, как что-то выглядит и ощущается. Дизайн — это то, как что-то работает.</DXBlockquote>',
|
|
18
|
-
}),
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
export const Variants = {
|
|
22
|
-
render: () => ({
|
|
23
|
-
components: { DXBlockquote },
|
|
24
|
-
template: `
|
|
25
|
-
<div class="space-y-6">
|
|
26
|
-
<DXBlockquote variant="default">Default variant without border</DXBlockquote>
|
|
27
|
-
<DXBlockquote variant="bordered">Bordered variant with left border</DXBlockquote>
|
|
28
|
-
<DXBlockquote variant="highlighted">Highlighted variant with background</DXBlockquote>
|
|
29
|
-
</div>
|
|
30
|
-
`,
|
|
31
|
-
}),
|
|
32
|
-
};
|
|
33
|
-
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import DXCode from './DXCode.vue';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Typography/DXCode',
|
|
5
|
-
component: DXCode,
|
|
6
|
-
tags: ['autodocs'],
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export const Inline = {
|
|
10
|
-
render: () => ({
|
|
11
|
-
components: { DXCode },
|
|
12
|
-
template: '<p>Используйте <DXCode>npm install</DXCode> для установки.</p>',
|
|
13
|
-
}),
|
|
14
|
-
};
|
|
15
|
-
|
|
16
|
-
export const Block = {
|
|
17
|
-
args: { block: true },
|
|
18
|
-
render: (args) => ({
|
|
19
|
-
components: { DXCode },
|
|
20
|
-
setup() { return { args }; },
|
|
21
|
-
template: `<DXCode v-bind="args">const greeting = "Hello World";
|
|
22
|
-
console.log(greeting);
|
|
23
|
-
|
|
24
|
-
function add(a, b) {
|
|
25
|
-
return a + b;
|
|
26
|
-
}</DXCode>`,
|
|
27
|
-
}),
|
|
28
|
-
};
|
|
29
|
-
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
import DXHeading from './DXHeading.vue';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Typography/DXHeading',
|
|
5
|
-
component: DXHeading,
|
|
6
|
-
tags: ['autodocs'],
|
|
7
|
-
argTypes: {
|
|
8
|
-
level: { control: { type: 'select' }, options: [1, 2, 3, 4, 5, 6] },
|
|
9
|
-
size: { control: { type: 'select' }, options: ['xs', 'sm', 'md', 'lg', 'xl', '2xl', '3xl', '4xl'] },
|
|
10
|
-
weight: { control: { type: 'select' }, options: ['normal', 'medium', 'semibold', 'bold'] },
|
|
11
|
-
color: { control: { type: 'select' }, options: ['default', 'muted', 'primary', 'success', 'warning', 'danger'] },
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const Default = {
|
|
16
|
-
args: { level: 1 },
|
|
17
|
-
render: (args) => ({
|
|
18
|
-
components: { DXHeading },
|
|
19
|
-
setup() { return { args }; },
|
|
20
|
-
template: '<DXHeading v-bind="args">Заголовок страницы</DXHeading>',
|
|
21
|
-
}),
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export const AllLevels = {
|
|
25
|
-
render: () => ({
|
|
26
|
-
components: { DXHeading },
|
|
27
|
-
template: `
|
|
28
|
-
<div class="space-y-4">
|
|
29
|
-
<DXHeading :level="1">Heading 1</DXHeading>
|
|
30
|
-
<DXHeading :level="2">Heading 2</DXHeading>
|
|
31
|
-
<DXHeading :level="3">Heading 3</DXHeading>
|
|
32
|
-
<DXHeading :level="4">Heading 4</DXHeading>
|
|
33
|
-
<DXHeading :level="5">Heading 5</DXHeading>
|
|
34
|
-
<DXHeading :level="6">Heading 6</DXHeading>
|
|
35
|
-
</div>
|
|
36
|
-
`,
|
|
37
|
-
}),
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export const Colors = {
|
|
41
|
-
render: () => ({
|
|
42
|
-
components: { DXHeading },
|
|
43
|
-
template: `
|
|
44
|
-
<div class="space-y-2">
|
|
45
|
-
<DXHeading :level="3" color="default">Default Color</DXHeading>
|
|
46
|
-
<DXHeading :level="3" color="muted">Muted Color</DXHeading>
|
|
47
|
-
<DXHeading :level="3" color="success">Success Color</DXHeading>
|
|
48
|
-
<DXHeading :level="3" color="warning">Warning Color</DXHeading>
|
|
49
|
-
<DXHeading :level="3" color="danger">Danger Color</DXHeading>
|
|
50
|
-
</div>
|
|
51
|
-
`,
|
|
52
|
-
}),
|
|
53
|
-
};
|
|
54
|
-
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import DXLabel from './DXLabel.vue';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Typography/DXLabel',
|
|
5
|
-
component: DXLabel,
|
|
6
|
-
tags: ['autodocs'],
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export const Default = {
|
|
10
|
-
args: {},
|
|
11
|
-
render: (args) => ({
|
|
12
|
-
components: { DXLabel },
|
|
13
|
-
setup() { return { args }; },
|
|
14
|
-
template: '<DXLabel v-bind="args">Email адрес</DXLabel>',
|
|
15
|
-
}),
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
export const Required = {
|
|
19
|
-
args: { required: true },
|
|
20
|
-
render: (args) => ({
|
|
21
|
-
components: { DXLabel },
|
|
22
|
-
setup() { return { args }; },
|
|
23
|
-
template: '<DXLabel v-bind="args">Обязательное поле</DXLabel>',
|
|
24
|
-
}),
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
export const Sizes = {
|
|
28
|
-
render: () => ({
|
|
29
|
-
components: { DXLabel },
|
|
30
|
-
template: `
|
|
31
|
-
<div class="space-y-2">
|
|
32
|
-
<DXLabel size="xs">Extra Small Label</DXLabel>
|
|
33
|
-
<DXLabel size="sm">Small Label (default)</DXLabel>
|
|
34
|
-
<DXLabel size="md">Medium Label</DXLabel>
|
|
35
|
-
<DXLabel size="lg">Large Label</DXLabel>
|
|
36
|
-
</div>
|
|
37
|
-
`,
|
|
38
|
-
}),
|
|
39
|
-
};
|
|
40
|
-
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import DXList from './DXList.vue';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Typography/DXList',
|
|
5
|
-
component: DXList,
|
|
6
|
-
tags: ['autodocs'],
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export const Unordered = {
|
|
10
|
-
render: () => ({
|
|
11
|
-
components: { DXList },
|
|
12
|
-
template: `
|
|
13
|
-
<DXList>
|
|
14
|
-
<li>Первый элемент</li>
|
|
15
|
-
<li>Второй элемент</li>
|
|
16
|
-
<li>Третий элемент</li>
|
|
17
|
-
</DXList>
|
|
18
|
-
`,
|
|
19
|
-
}),
|
|
20
|
-
};
|
|
21
|
-
|
|
22
|
-
export const Ordered = {
|
|
23
|
-
args: { ordered: true },
|
|
24
|
-
render: (args) => ({
|
|
25
|
-
components: { DXList },
|
|
26
|
-
setup() { return { args }; },
|
|
27
|
-
template: `
|
|
28
|
-
<DXList v-bind="args">
|
|
29
|
-
<li>Шаг первый</li>
|
|
30
|
-
<li>Шаг второй</li>
|
|
31
|
-
<li>Шаг третий</li>
|
|
32
|
-
</DXList>
|
|
33
|
-
`,
|
|
34
|
-
}),
|
|
35
|
-
};
|
|
36
|
-
|
|
37
|
-
export const NoMarker = {
|
|
38
|
-
args: { marker: 'none' },
|
|
39
|
-
render: (args) => ({
|
|
40
|
-
components: { DXList },
|
|
41
|
-
setup() { return { args }; },
|
|
42
|
-
template: `
|
|
43
|
-
<DXList v-bind="args">
|
|
44
|
-
<li>Элемент без маркера</li>
|
|
45
|
-
<li>Ещё один элемент</li>
|
|
46
|
-
</DXList>
|
|
47
|
-
`,
|
|
48
|
-
}),
|
|
49
|
-
};
|
|
50
|
-
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import DXText from './DXText.vue';
|
|
2
|
-
|
|
3
|
-
export default {
|
|
4
|
-
title: 'Typography/DXText',
|
|
5
|
-
component: DXText,
|
|
6
|
-
tags: ['autodocs'],
|
|
7
|
-
argTypes: {
|
|
8
|
-
size: { control: { type: 'select' }, options: ['xs', 'sm', 'md', 'lg', 'xl'] },
|
|
9
|
-
weight: { control: { type: 'select' }, options: ['normal', 'medium', 'semibold', 'bold'] },
|
|
10
|
-
color: { control: { type: 'select' }, options: ['default', 'muted', 'primary', 'success', 'warning', 'danger'] },
|
|
11
|
-
align: { control: { type: 'select' }, options: ['left', 'center', 'right', 'justify'] },
|
|
12
|
-
},
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
export const Default = {
|
|
16
|
-
args: {},
|
|
17
|
-
render: (args) => ({
|
|
18
|
-
components: { DXText },
|
|
19
|
-
setup() { return { args }; },
|
|
20
|
-
template: '<DXText v-bind="args">Это обычный текстовый параграф с настройками по умолчанию.</DXText>',
|
|
21
|
-
}),
|
|
22
|
-
};
|
|
23
|
-
|
|
24
|
-
export const Sizes = {
|
|
25
|
-
render: () => ({
|
|
26
|
-
components: { DXText },
|
|
27
|
-
template: `
|
|
28
|
-
<div class="space-y-2">
|
|
29
|
-
<DXText size="xs">Extra Small Text</DXText>
|
|
30
|
-
<DXText size="sm">Small Text</DXText>
|
|
31
|
-
<DXText size="md">Medium Text (default)</DXText>
|
|
32
|
-
<DXText size="lg">Large Text</DXText>
|
|
33
|
-
<DXText size="xl">Extra Large Text</DXText>
|
|
34
|
-
</div>
|
|
35
|
-
`,
|
|
36
|
-
}),
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
export const Truncated = {
|
|
40
|
-
args: { truncate: true },
|
|
41
|
-
render: (args) => ({
|
|
42
|
-
components: { DXText },
|
|
43
|
-
setup() { return { args }; },
|
|
44
|
-
template: '<div class="w-48"><DXText v-bind="args">Это очень длинный текст который будет обрезан с многоточием</DXText></div>',
|
|
45
|
-
}),
|
|
46
|
-
};
|
|
47
|
-
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
// Typography components
|
|
2
|
-
export { default as DXHeading } from './DXHeading';
|
|
3
|
-
export { default as DXText } from './DXText';
|
|
4
|
-
export { default as DXLabel } from './DXLabel';
|
|
5
|
-
export { default as DXCode } from './DXCode';
|
|
6
|
-
export { default as DXBlockquote } from './DXBlockquote';
|
|
7
|
-
export { default as DXList } from './DXList';
|
|
8
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|