@dxtmisha/wiki 0.24.3 → 0.39.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/package.json +8 -8
- package/src/classes/WikiStorybook.ts +92 -1
- package/src/classes/WikiStorybookItem.ts +79 -5
- package/src/classes/WikiStorybookProp.ts +109 -0
- package/src/library.ts +1 -0
- package/src/media/descriptions/wikiDescriptions.ts +32 -0
- package/src/media/descriptions/wikiDescriptionsAccordion.ts +204 -0
- package/src/media/descriptions/wikiDescriptionsActionSheet.ts +264 -0
- package/src/media/descriptions/wikiDescriptionsActions.ts +189 -0
- package/src/media/descriptions/wikiDescriptionsAnchor.ts +78 -0
- package/src/media/descriptions/wikiDescriptionsArrow.ts +214 -0
- package/src/media/descriptions/wikiDescriptionsBadge.ts +43 -0
- package/src/media/descriptions/wikiDescriptionsBars.ts +33 -0
- package/src/media/descriptions/wikiDescriptionsBlock.ts +159 -0
- package/src/media/descriptions/wikiDescriptionsButton.ts +32 -1
- package/src/media/descriptions/wikiDescriptionsCell.ts +26 -1
- package/src/media/descriptions/wikiDescriptionsChip.ts +42 -0
- package/src/media/descriptions/wikiDescriptionsChipGroup.ts +199 -0
- package/src/media/descriptions/wikiDescriptionsDialog.ts +226 -0
- package/src/media/descriptions/wikiDescriptionsField.ts +57 -2
- package/src/media/descriptions/wikiDescriptionsFieldCounter.ts +32 -0
- package/src/media/descriptions/wikiDescriptionsFieldLabel.ts +22 -0
- package/src/media/descriptions/wikiDescriptionsFieldMessage.ts +25 -0
- package/src/media/descriptions/wikiDescriptionsIcon.ts +46 -8
- package/src/media/descriptions/wikiDescriptionsImage.ts +91 -7
- package/src/media/descriptions/wikiDescriptionsInput.ts +313 -0
- package/src/media/descriptions/wikiDescriptionsList.ts +31 -0
- package/src/media/descriptions/wikiDescriptionsListGroup.ts +57 -0
- package/src/media/descriptions/wikiDescriptionsListItem.ts +42 -0
- package/src/media/descriptions/wikiDescriptionsListMenu.ts +41 -0
- package/src/media/descriptions/wikiDescriptionsMask.ts +42 -0
- package/src/media/descriptions/wikiDescriptionsMenu.ts +179 -0
- package/src/media/descriptions/wikiDescriptionsModal.ts +200 -0
- package/src/media/descriptions/wikiDescriptionsMotionTransform.ts +59 -6
- package/src/media/descriptions/wikiDescriptionsPage.ts +155 -0
- package/src/media/descriptions/wikiDescriptionsProgress.ts +39 -0
- package/src/media/descriptions/wikiDescriptionsRipple.ts +42 -3
- package/src/media/descriptions/wikiDescriptionsScrollbar.ts +48 -0
- package/src/media/descriptions/wikiDescriptionsSection.ts +152 -0
- package/src/media/descriptions/wikiDescriptionsSelect.ts +253 -0
- package/src/media/descriptions/wikiDescriptionsSelectValue.ts +107 -0
- package/src/media/descriptions/wikiDescriptionsSkeleton.ts +42 -1
- package/src/media/descriptions/wikiDescriptionsTextareaAutosize.ts +80 -0
- package/src/media/descriptions/wikiDescriptionsTooltip.ts +136 -0
- package/src/media/descriptions/wikiDescriptionsWindow.ts +60 -0
- package/src/media/functional/en/conversions.mdx +67 -0
- package/src/media/functional/en/dataUtils.mdx +25 -0
- package/src/media/functional/en/datetimeRef.mdx +1 -1
- package/src/media/functional/en/eventRef.mdx +1 -1
- package/src/media/functional/en/executionUtils.mdx +58 -0
- package/src/media/functional/en/geoFlagRef.mdx +1 -1
- package/src/media/functional/en/geoIntlRef.mdx +1 -1
- package/src/media/functional/en/geoRef.mdx +2 -2
- package/src/media/functional/en/meta.mdx +1206 -0
- package/src/media/functional/en/metaManager.mdx +376 -0
- package/src/media/functional/en/metaOg.mdx +694 -0
- package/src/media/functional/en/metaTwitter.mdx +853 -0
- package/src/media/functional/en/reactive.mdx +40 -0
- package/src/media/functional/en/refTypes.mdx +1 -1
- package/src/media/functional/en/useApiRef.mdx +5 -5
- package/src/media/functional/en/useMeta.mdx +431 -0
- package/src/media/functional/en/validationUtils.mdx +11 -0
- package/src/media/functional/functional-basic/functions/getCurrentDate/getCurrentDate.en.mdx +25 -0
- package/src/media/functional/functional-basic/functions/getCurrentDate/getCurrentDate.ru.mdx +25 -0
- package/src/media/functional/functional-basic/functions/getCurrentDate/getCurrentDate.vi.mdx +25 -0
- package/src/media/functional/functional-basic/functions/isEnter/isEnter.en.mdx +30 -0
- package/src/media/functional/functional-basic/functions/isEnter/isEnter.ru.mdx +30 -0
- package/src/media/functional/functional-basic/functions/isEnter/isEnter.vi.mdx +30 -0
- package/src/media/functional/ru/conversions.mdx +67 -0
- package/src/media/functional/ru/dataUtils.mdx +25 -0
- package/src/media/functional/ru/datetimeRef.mdx +2 -2
- package/src/media/functional/ru/eventRef.mdx +1 -1
- package/src/media/functional/ru/executionUtils.mdx +58 -0
- package/src/media/functional/ru/geoFlagRef.mdx +1 -1
- package/src/media/functional/ru/geoIntl.mdx +2 -2
- package/src/media/functional/ru/geoIntlRef.mdx +1 -1
- package/src/media/functional/ru/geoRef.mdx +2 -2
- package/src/media/functional/ru/listTypes.mdx +1 -1
- package/src/media/functional/ru/meta.mdx +1330 -0
- package/src/media/functional/ru/metaManager.mdx +376 -0
- package/src/media/functional/ru/metaOg.mdx +694 -0
- package/src/media/functional/ru/metaTwitter.mdx +853 -0
- package/src/media/functional/ru/reactive.mdx +40 -0
- package/src/media/functional/ru/refTypes.mdx +2 -2
- package/src/media/functional/ru/useApiRef.mdx +5 -5
- package/src/media/functional/ru/useMeta.mdx +431 -0
- package/src/media/functional/ru/validationUtils.mdx +11 -0
- package/src/media/mdx/Accordion/accordion.en.mdx +59 -0
- package/src/media/mdx/Accordion/accordion.ru.mdx +59 -0
- package/src/media/mdx/Accordion/slots.en.mdx +6 -0
- package/src/media/mdx/Accordion/slots.ru.mdx +6 -0
- package/src/media/mdx/Accordion/wikiMdxAccordion.ts +25 -0
- package/src/media/mdx/ActionSheet/actionSheet.en.mdx +61 -0
- package/src/media/mdx/ActionSheet/actionSheet.ru.mdx +61 -0
- package/src/media/mdx/ActionSheet/touchClose.en.mdx +21 -0
- package/src/media/mdx/ActionSheet/touchClose.ru.mdx +21 -0
- package/src/media/mdx/ActionSheet/wikiMdxActionSheet.ts +25 -0
- package/src/media/mdx/Actions/actions.en.mdx +48 -0
- package/src/media/mdx/Actions/actions.ru.mdx +48 -0
- package/src/media/mdx/Actions/flexible.en.mdx +19 -0
- package/src/media/mdx/Actions/flexible.ru.mdx +19 -0
- package/src/media/mdx/Actions/list.en.mdx +50 -0
- package/src/media/mdx/Actions/list.ru.mdx +50 -0
- package/src/media/mdx/Actions/wikiMdxActions.ts +31 -0
- package/src/media/mdx/Anchor/anchor.en.mdx +34 -0
- package/src/media/mdx/Anchor/anchor.ru.mdx +34 -0
- package/src/media/mdx/Anchor/expose.go.en.mdx +6 -0
- package/src/media/mdx/Anchor/expose.go.ru.mdx +6 -0
- package/src/media/mdx/Anchor/hide.en.mdx +28 -0
- package/src/media/mdx/Anchor/hide.ru.mdx +28 -0
- package/src/media/mdx/Anchor/isCopy.en.mdx +23 -0
- package/src/media/mdx/Anchor/isCopy.ru.mdx +23 -0
- package/src/media/mdx/Anchor/scroll.en.mdx +34 -0
- package/src/media/mdx/Anchor/scroll.ru.mdx +35 -0
- package/src/media/mdx/Anchor/wikiMdxAnchor.ts +43 -0
- package/src/media/mdx/Arrow/arrow.en.mdx +33 -0
- package/src/media/mdx/Arrow/arrow.ru.mdx +33 -0
- package/src/media/mdx/Arrow/wikiMdxArrow.ts +19 -0
- package/src/media/mdx/Block/block.en.mdx +42 -0
- package/src/media/mdx/Block/block.ru.mdx +42 -0
- package/src/media/mdx/Block/wikiMdxBlock.ts +19 -0
- package/src/media/mdx/ChipGroup/chipGroup.en.mdx +51 -0
- package/src/media/mdx/ChipGroup/chipGroup.ru.mdx +51 -0
- package/src/media/mdx/ChipGroup/selected.en.mdx +50 -0
- package/src/media/mdx/ChipGroup/selected.ru.mdx +50 -0
- package/src/media/mdx/ChipGroup/wikiMdxChipGroup.ts +25 -0
- package/src/media/mdx/Dialog/buttons.en.mdx +45 -0
- package/src/media/mdx/Dialog/buttons.ru.mdx +45 -0
- package/src/media/mdx/Dialog/dialog.en.mdx +66 -0
- package/src/media/mdx/Dialog/dialog.ru.mdx +65 -0
- package/src/media/mdx/Dialog/events.en.mdx +63 -0
- package/src/media/mdx/Dialog/events.ru.mdx +63 -0
- package/src/media/mdx/Dialog/states.en.mdx +58 -0
- package/src/media/mdx/Dialog/states.ru.mdx +57 -0
- package/src/media/mdx/Dialog/wikiMdxDialog.ts +37 -0
- package/src/media/mdx/Field/arrows.en.mdx +22 -6
- package/src/media/mdx/Field/arrows.ru.mdx +22 -6
- package/src/media/mdx/Field/slots.en.mdx +0 -13
- package/src/media/mdx/Field/slots.ru.mdx +0 -13
- package/src/media/mdx/Image/flag.en.mdx +23 -0
- package/src/media/mdx/Image/flag.ru.mdx +23 -0
- package/src/media/mdx/Image/image.en.mdx +26 -21
- package/src/media/mdx/Image/image.ru.mdx +26 -22
- package/src/media/mdx/Image/img-tag.en.mdx +105 -0
- package/src/media/mdx/Image/img-tag.ru.mdx +105 -0
- package/src/media/mdx/Image/wikiMdxImage.ts +12 -0
- package/src/media/mdx/Input/currency.en.mdx +38 -0
- package/src/media/mdx/Input/currency.ru.mdx +38 -0
- package/src/media/mdx/Input/date.en.mdx +53 -0
- package/src/media/mdx/Input/date.ru.mdx +53 -0
- package/src/media/mdx/Input/input.en.mdx +143 -0
- package/src/media/mdx/Input/input.ru.mdx +71 -0
- package/src/media/mdx/Input/mask.en.mdx +30 -0
- package/src/media/mdx/Input/mask.ru.mdx +30 -0
- package/src/media/mdx/Input/number.en.mdx +41 -0
- package/src/media/mdx/Input/number.ru.mdx +41 -0
- package/src/media/mdx/Input/type.en.mdx +26 -0
- package/src/media/mdx/Input/type.ru.mdx +26 -0
- package/src/media/mdx/Input/wikiMdxInput.ts +49 -0
- package/src/media/mdx/Menu/event.updateValue.en.mdx +29 -0
- package/src/media/mdx/Menu/event.updateValue.ru.mdx +30 -0
- package/src/media/mdx/Menu/expose.navigation.en.mdx +12 -0
- package/src/media/mdx/Menu/expose.navigation.ru.mdx +12 -0
- package/src/media/mdx/Menu/navigation.en.mdx +56 -0
- package/src/media/mdx/Menu/navigation.ru.mdx +56 -0
- package/src/media/mdx/Menu/slots.control.en.mdx +65 -0
- package/src/media/mdx/Menu/slots.control.ru.mdx +65 -0
- package/src/media/mdx/Menu/slots.en.mdx +2 -24
- package/src/media/mdx/Menu/slots.ru.mdx +2 -24
- package/src/media/mdx/Menu/wikiMdxMenu.ts +27 -3
- package/src/media/mdx/Modal/differences.en.mdx +130 -0
- package/src/media/mdx/Modal/differences.ru.mdx +65 -0
- package/src/media/mdx/Modal/modal.en.mdx +63 -0
- package/src/media/mdx/Modal/modal.ru.mdx +63 -0
- package/src/media/mdx/Modal/wikiMdxModal.ts +25 -0
- package/src/media/mdx/MotionTransform/expose.motionTransformElement.en.mdx +13 -0
- package/src/media/mdx/MotionTransform/expose.motionTransformElement.ru.mdx +14 -0
- package/src/media/mdx/MotionTransform/wikiMdxMotionTransform.ts +6 -0
- package/src/media/mdx/Page/page.en.mdx +38 -0
- package/src/media/mdx/Page/page.ru.mdx +38 -0
- package/src/media/mdx/Page/wikiMdxPage.ts +19 -0
- package/src/media/mdx/Section/section.en.mdx +38 -0
- package/src/media/mdx/Section/section.ru.mdx +38 -0
- package/src/media/mdx/Section/wikiMdxSection.ts +19 -0
- package/src/media/mdx/Select/select.en.mdx +69 -0
- package/src/media/mdx/Select/select.ru.mdx +69 -0
- package/src/media/mdx/Select/wikiMdxSelect.ts +19 -0
- package/src/media/mdx/SelectValue/selectValue.en.mdx +64 -0
- package/src/media/mdx/SelectValue/selectValue.ru.mdx +64 -0
- package/src/media/mdx/SelectValue/wikiMdxSelectValue.ts +19 -0
- package/src/media/mdx/TextareaAutosize/textarea-autosize.en.mdx +65 -0
- package/src/media/mdx/TextareaAutosize/textarea-autosize.ru.mdx +65 -0
- package/src/media/mdx/TextareaAutosize/wikiMdxTextareaAutosize.ts +19 -0
- package/src/media/mdx/Tooltip/event.tooltip.en.mdx +7 -0
- package/src/media/mdx/Tooltip/event.tooltip.ru.mdx +8 -0
- package/src/media/mdx/Tooltip/slot.control.en.mdx +14 -0
- package/src/media/mdx/Tooltip/slot.control.ru.mdx +14 -0
- package/src/media/mdx/Tooltip/tooltip.en.mdx +34 -0
- package/src/media/mdx/Tooltip/tooltip.ru.mdx +34 -0
- package/src/media/mdx/Tooltip/wikiMdxTooltip.ts +31 -0
- package/src/media/mdx/Window/classes.ru.mdx +1 -1
- package/src/media/mdx/event/events.actions.en.mdx +44 -0
- package/src/media/mdx/event/events.actions.ru.mdx +44 -0
- package/src/media/mdx/event/events.inputStandard.en.mdx +6 -0
- package/src/media/mdx/event/events.inputStandard.ru.mdx +6 -0
- package/src/media/mdx/event/wikiMdxEvent.ts +20 -8
- package/src/media/mdx/expose/expose.clear.en.mdx +1 -1
- package/src/media/mdx/expose/expose.descriptionId.en.mdx +6 -0
- package/src/media/mdx/expose/expose.descriptionId.ru.mdx +6 -0
- package/src/media/mdx/expose/expose.id.en.mdx +6 -0
- package/src/media/mdx/expose/expose.id.ru.mdx +6 -0
- package/src/media/mdx/expose/expose.labelId.en.mdx +6 -0
- package/src/media/mdx/expose/expose.labelId.ru.mdx +6 -0
- package/src/media/mdx/expose/wikiMdxExpose.ts +18 -0
- package/src/media/mdx/slot/body.en.mdx +6 -0
- package/src/media/mdx/slot/body.ru.mdx +6 -0
- package/src/media/mdx/slot/headline.en.mdx +7 -0
- package/src/media/mdx/slot/headline.ru.mdx +6 -0
- package/src/media/mdx/slot/leading.en.mdx +7 -0
- package/src/media/mdx/slot/leading.ru.mdx +7 -0
- package/src/media/mdx/slot/secondary.en.mdx +5 -0
- package/src/media/mdx/slot/secondary.ru.mdx +5 -0
- package/src/media/mdx/slot/trailing.en.mdx +7 -0
- package/src/media/mdx/slot/trailing.ru.mdx +7 -0
- package/src/media/mdx/slot/wikiMdxSlot.ts +30 -0
- package/src/media/mdx/style/isSkeleton.en.mdx +2 -2
- package/src/media/mdx/style/isSkeleton.ru.mdx +2 -2
- package/src/media/mdx/value/v-model-selected.en.mdx +28 -0
- package/src/media/mdx/value/v-model-selected.ru.mdx +28 -0
- package/src/media/mdx/value/v-model.en.mdx +26 -0
- package/src/media/mdx/value/v-model.ru.mdx +26 -0
- package/src/media/mdx/value/wikiMdxValue.ts +24 -3
- package/src/media/mdx/wikiMdx.ts +33 -1
- package/src/media/props/wiki.ts +44 -0
- package/src/media/props/wikiActions.ts +43 -0
- package/src/media/props/wikiActionsInclude.ts +62 -0
- package/src/media/props/wikiAnchor.ts +85 -0
- package/src/media/props/wikiAria.ts +123 -0
- package/src/media/props/wikiArrow.ts +24 -0
- package/src/media/props/wikiArrowInclude.ts +45 -0
- package/src/media/props/wikiAttributes.ts +143 -0
- package/src/media/props/wikiBadge.ts +7 -4
- package/src/media/props/wikiBars.ts +7 -6
- package/src/media/props/wikiBarsInclude.ts +82 -0
- package/src/media/props/wikiButton.ts +8 -4
- package/src/media/props/wikiChip.ts +4 -2
- package/src/media/props/wikiChipGroup.ts +39 -0
- package/src/media/props/wikiDialog.ts +33 -0
- package/src/media/props/wikiField.ts +18 -31
- package/src/media/props/wikiFieldCounterInclude.ts +87 -0
- package/src/media/props/wikiForm.ts +267 -0
- package/src/media/props/wikiHook.ts +20 -0
- package/src/media/props/wikiIcon.ts +19 -6
- package/src/media/props/wikiIconInclude.ts +322 -0
- package/src/media/props/wikiImage.ts +97 -20
- package/src/media/props/wikiInformation.ts +164 -0
- package/src/media/props/wikiInput.ts +34 -0
- package/src/media/props/wikiList.ts +10 -4
- package/src/media/props/wikiListItem.ts +23 -2
- package/src/media/props/wikiMask.ts +2 -12
- package/src/media/props/wikiMaskInclude.ts +54 -0
- package/src/media/props/wikiMenu.ts +1 -11
- package/src/media/props/wikiMotionTransform.ts +7 -13
- package/src/media/props/wikiOption.ts +356 -0
- package/src/media/props/wikiProgress.ts +8 -5
- package/src/media/props/wikiScrollbar.ts +6 -6
- package/src/media/props/wikiSelect.ts +68 -0
- package/src/media/props/wikiSelectValue.ts +30 -0
- package/src/media/props/wikiStatus.ts +34 -57
- package/src/media/props/wikiStyle.ts +85 -406
- package/src/media/props/wikiTechnical.ts +141 -1
- package/src/media/props/wikiText.ts +167 -0
- package/src/media/props/wikiTooltip.ts +53 -0
- package/src/media/props/wikiValue.ts +22 -276
- package/src/media/props/wikiWindow.ts +24 -45
- package/src/shims-mdx.d.ts +5 -0
- package/src/styles/storybookStyle.scss +3 -1
- package/src/types/storybookTypes.ts +48 -4
|
@@ -0,0 +1,155 @@
|
|
|
1
|
+
import type { StorybookComponentsDescriptionItem } from '../../types/storybookTypes'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Descriptions for Page component properties
|
|
5
|
+
*
|
|
6
|
+
* Описания свойств компонента Page
|
|
7
|
+
*/
|
|
8
|
+
export const wikiDescriptionsPage: StorybookComponentsDescriptionItem = {
|
|
9
|
+
name: 'Page',
|
|
10
|
+
description: {
|
|
11
|
+
en: 'A top-level semantic container component representing the main content of a document. It uses the <main> tag by default and supports high-level headers and descriptions.',
|
|
12
|
+
ru: 'Семантический компонент-контейнер верхнего уровня, представляющий основное содержимое документа. По умолчанию использует тег <main> и поддерживает заголовки высокого уровня.'
|
|
13
|
+
},
|
|
14
|
+
possibilities: {
|
|
15
|
+
en: [
|
|
16
|
+
'semantic wrapper for main content using <main> tag',
|
|
17
|
+
'support for main titles (h1 by default), labels, descriptions, and captions',
|
|
18
|
+
'customizable layout and spacing',
|
|
19
|
+
'support for icons',
|
|
20
|
+
'flexible content organization'
|
|
21
|
+
],
|
|
22
|
+
ru: [
|
|
23
|
+
'семантическая обертка для основного контента с использованием тега <main>',
|
|
24
|
+
'поддержка главных заголовков (h1 по умолчанию), меток, описаний и подписей',
|
|
25
|
+
'настраиваемый макет и отступы',
|
|
26
|
+
'поддержка иконок',
|
|
27
|
+
'гибкая организация контента'
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
import: [],
|
|
31
|
+
render: `
|
|
32
|
+
<DesignComponent v-bind="args">
|
|
33
|
+
<p>
|
|
34
|
+
The Page component is designed to wrap the unique content of a document.
|
|
35
|
+
It defaults to using the <code><main></code> HTML tag, ensuring that the primary content is correctly identified by assistive technologies and search engines.
|
|
36
|
+
</p>
|
|
37
|
+
<p>
|
|
38
|
+
It provides a comprehensive set of features for page-level content presentation, including headlines, labels, descriptions, and icons.
|
|
39
|
+
The default tag for the headline is set to <code><h1></code>, establishing the top-level heading for the page.
|
|
40
|
+
</p>
|
|
41
|
+
<p>
|
|
42
|
+
Use Page to encapsulate the core content of your view, separating it from repeated elements like navigation bars or footers.
|
|
43
|
+
</p>
|
|
44
|
+
</DesignComponent>
|
|
45
|
+
`,
|
|
46
|
+
stories: [
|
|
47
|
+
{
|
|
48
|
+
id: 'PageBasic',
|
|
49
|
+
name: {
|
|
50
|
+
en: 'Basic',
|
|
51
|
+
ru: 'Базовые'
|
|
52
|
+
},
|
|
53
|
+
template: `
|
|
54
|
+
<div class="wiki-storybook-flex-column">
|
|
55
|
+
<DesignComponent>
|
|
56
|
+
<p>Simple page content wrapper.</p>
|
|
57
|
+
</DesignComponent>
|
|
58
|
+
<DesignComponent label="Documentation" description="Learn how to use the library">
|
|
59
|
+
<p>Welcome to the documentation page.</p>
|
|
60
|
+
</DesignComponent>
|
|
61
|
+
<DesignComponent headline="Dashboard Overview" label="Analytics">
|
|
62
|
+
<div style="height: 100px; background: #f0f0f0; display: flex; align-items: center; justify-content: center;">
|
|
63
|
+
Chart Placeholder
|
|
64
|
+
</div>
|
|
65
|
+
</DesignComponent>
|
|
66
|
+
</div>
|
|
67
|
+
`
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: 'PageSlots',
|
|
71
|
+
name: {
|
|
72
|
+
en: 'Slots usage',
|
|
73
|
+
ru: 'Использование слотов'
|
|
74
|
+
},
|
|
75
|
+
template: `
|
|
76
|
+
<DesignComponent>
|
|
77
|
+
<template #default>Default slot</template>
|
|
78
|
+
<template #headline>Headline slot</template>
|
|
79
|
+
<template #label>Label slot</template>
|
|
80
|
+
<template #description>Description slot</template>
|
|
81
|
+
<template #caption>Caption slot</template>
|
|
82
|
+
<template #trailing>Trailing slot</template>
|
|
83
|
+
</DesignComponent>
|
|
84
|
+
`
|
|
85
|
+
}
|
|
86
|
+
],
|
|
87
|
+
documentation: {
|
|
88
|
+
body: `
|
|
89
|
+
<StorybookDescriptions componentName={'Page'} type={'block'}/>
|
|
90
|
+
<Canvas of={Component.PageBasic}/>
|
|
91
|
+
`,
|
|
92
|
+
slots: `
|
|
93
|
+
<Canvas of={Component.PageSlots}/>
|
|
94
|
+
<StorybookDescriptions componentName={'Slot'} type={'default'}/>
|
|
95
|
+
<StorybookDescriptions componentName={'Slot'} type={'headline'}/>
|
|
96
|
+
<StorybookDescriptions componentName={'Slot'} type={'label'}/>
|
|
97
|
+
<StorybookDescriptions componentName={'Slot'} type={'description'}/>
|
|
98
|
+
<StorybookDescriptions componentName={'Slot'} type={'caption'}/>
|
|
99
|
+
<StorybookDescriptions componentName={'Slot'} type={'trailing'}/>
|
|
100
|
+
`,
|
|
101
|
+
expose: `
|
|
102
|
+
<StorybookDescriptions componentName={'Expose'} type={'labelId'}/>
|
|
103
|
+
<StorybookDescriptions componentName={'Expose'} type={'descriptionId'}/>
|
|
104
|
+
`
|
|
105
|
+
},
|
|
106
|
+
ai: {
|
|
107
|
+
render: `
|
|
108
|
+
<div :class="classDemo.item">
|
|
109
|
+
<Page v-bind="args">
|
|
110
|
+
Main page content.
|
|
111
|
+
</Page>
|
|
112
|
+
</div>
|
|
113
|
+
`,
|
|
114
|
+
description: `
|
|
115
|
+
Page is a top-level structural component designed to wrap the main content of a view or document.
|
|
116
|
+
It acts as a semantic container (typically rendering a \`<main>\` tag) and provides a standardized header structure.
|
|
117
|
+
It inherits all functionality from the \`Block\` component.
|
|
118
|
+
|
|
119
|
+
**Key Features:**
|
|
120
|
+
1. **Semantic Structure:**
|
|
121
|
+
- Represents the main content area of the application.
|
|
122
|
+
- Provides a consistent layout for page headers.
|
|
123
|
+
|
|
124
|
+
2. **Header Layout:**
|
|
125
|
+
- **Headline:** High-level category or breadcrumb-like text.
|
|
126
|
+
- **Label:** The primary page title.
|
|
127
|
+
- **Description:** Subtitle or page summary.
|
|
128
|
+
- **Icon:** Page icon.
|
|
129
|
+
- **Trailing:** Area for page-level actions (e.g., "Save", "Edit").
|
|
130
|
+
|
|
131
|
+
3. **Customization:**
|
|
132
|
+
- Supports all \`Block\` props.
|
|
133
|
+
- Flexible content slot (\`#default\`).
|
|
134
|
+
|
|
135
|
+
**When to use:**
|
|
136
|
+
- As the root container for a route or view.
|
|
137
|
+
- To provide a consistent title and action bar for a page.
|
|
138
|
+
|
|
139
|
+
**Usage Examples:**
|
|
140
|
+
|
|
141
|
+
- **Standard Page:**
|
|
142
|
+
\`<Page label="Home" description="Welcome back">
|
|
143
|
+
<DashboardWidgets />
|
|
144
|
+
</Page>\`
|
|
145
|
+
|
|
146
|
+
- **Page with Actions:**
|
|
147
|
+
\`<Page headline="Settings" label="Profile">
|
|
148
|
+
<template #trailing>
|
|
149
|
+
<button>Save Changes</button>
|
|
150
|
+
</template>
|
|
151
|
+
<ProfileForm />
|
|
152
|
+
</Page>\`
|
|
153
|
+
`
|
|
154
|
+
}
|
|
155
|
+
}
|
|
@@ -196,5 +196,44 @@ export const wikiDescriptionsProgress: StorybookComponentsDescriptionItem = {
|
|
|
196
196
|
<StorybookDescriptions componentName={'Progress'} type={'delays'}/>
|
|
197
197
|
<Canvas of={Component.ProgressDelays}/>
|
|
198
198
|
`
|
|
199
|
+
},
|
|
200
|
+
ai: {
|
|
201
|
+
render: `
|
|
202
|
+
<div
|
|
203
|
+
:class="classDemo.item"
|
|
204
|
+
style="position: relative; width: 64px; height: 40px;"
|
|
205
|
+
>
|
|
206
|
+
<Progress v-bind="args"/>
|
|
207
|
+
</div>
|
|
208
|
+
`,
|
|
209
|
+
description: `
|
|
210
|
+
Progress is a component for indicating the status of a process.
|
|
211
|
+
It supports both linear and circular styles and can represent determinate (known percentage) or indeterminate (loading) states.
|
|
212
|
+
|
|
213
|
+
**Key Features:**
|
|
214
|
+
1. **Type:**
|
|
215
|
+
- \`linear\`: A horizontal bar. Standard for page loading, file uploads, or headers.
|
|
216
|
+
- \`circular\`: A spinner ring. Standard for button actions, block loading, or overlays.
|
|
217
|
+
|
|
218
|
+
2. **State:**
|
|
219
|
+
- **Determinate:** Set \`value\` (number) and optionally \`max\`. Used when the progress percentage is known.
|
|
220
|
+
- **Indeterminate:** Set \`indeterminate\` ('type1', 'type2', 'type3'). Used when the wait time is unknown.
|
|
221
|
+
|
|
222
|
+
3. **Positioning (\`position\`):**
|
|
223
|
+
- \`static\` (default): Renders in the normal document flow.
|
|
224
|
+
- \`top\`: Absolutely positioned at the top of the parent container.
|
|
225
|
+
- \`bottom\`: Absolutely positioned at the bottom of the parent container.
|
|
226
|
+
|
|
227
|
+
4. **Styling:**
|
|
228
|
+
- \`dense\`: Reduces the height/size of the indicator.
|
|
229
|
+
- \`inverse\`: Adjusts colors for dark backgrounds.
|
|
230
|
+
- \`point\`: Adds a pulsing dot at the end of the bar (linear only).
|
|
231
|
+
|
|
232
|
+
**Usage Examples:**
|
|
233
|
+
|
|
234
|
+
- **Linear Indeterminate (Page Load):** \`<Progress linear indeterminate="type1" position="top" visible />\`
|
|
235
|
+
- **Circular Determinate (Upload):** \`<Progress circular :value="45" visible />\`
|
|
236
|
+
- **Button Loading:** \`<Progress circular dense indeterminate="type2" visible />\` (inside a button)
|
|
237
|
+
`
|
|
199
238
|
}
|
|
200
239
|
}
|
|
@@ -3,16 +3,16 @@ import type { StorybookComponentsDescriptionItem } from '../../types/storybookTy
|
|
|
3
3
|
export const wikiDescriptionsRipple: StorybookComponentsDescriptionItem = {
|
|
4
4
|
name: 'Ripple',
|
|
5
5
|
description: {
|
|
6
|
-
en: 'Component for creating ripple wave effect on click interactions',
|
|
6
|
+
en: 'Component for creating a ripple wave effect on click interactions',
|
|
7
7
|
ru: 'Компонент для создания эффекта волны при взаимодействии с элементом'
|
|
8
8
|
},
|
|
9
9
|
possibilities: {
|
|
10
10
|
en: [
|
|
11
|
-
'creates ripple wave effect on click',
|
|
11
|
+
'it creates a ripple wave effect on click',
|
|
12
12
|
'automatic positioning based on click coordinates',
|
|
13
13
|
'disabling effect with `disabled` property',
|
|
14
14
|
'Material Design inspired animation',
|
|
15
|
-
'works with any interactive elements'
|
|
15
|
+
'it works with any interactive elements'
|
|
16
16
|
],
|
|
17
17
|
ru: [
|
|
18
18
|
'создает эффект волны при клике',
|
|
@@ -33,5 +33,44 @@ export const wikiDescriptionsRipple: StorybookComponentsDescriptionItem = {
|
|
|
33
33
|
body: `
|
|
34
34
|
<StorybookDescriptions componentName={'Ripple'} type={'ripple'}/>
|
|
35
35
|
`
|
|
36
|
+
},
|
|
37
|
+
ai: {
|
|
38
|
+
render: `
|
|
39
|
+
<div
|
|
40
|
+
:class="classDemo.item"
|
|
41
|
+
style="position: relative; width: 64px; height: 48px;"
|
|
42
|
+
>
|
|
43
|
+
<Ripple v-bind="args"/>
|
|
44
|
+
</div>
|
|
45
|
+
`,
|
|
46
|
+
description: `
|
|
47
|
+
**Note:** This is a low-level decorative component. You should not use it directly.
|
|
48
|
+
It is automatically integrated into interactive components like \`Button\`, \`ListItem\`,
|
|
49
|
+
and \`Card\` to provide feedback. This documentation is for informational purposes.
|
|
50
|
+
|
|
51
|
+
Ripple is a decorative component that adds a Material Design-style wave effect to provide
|
|
52
|
+
visual feedback on user interaction (clicks, taps). It should be placed inside an interactive container.
|
|
53
|
+
|
|
54
|
+
**Key Features:**
|
|
55
|
+
1. **Placement:** It is designed to be placed as the last child inside a host element
|
|
56
|
+
(like a button, card, or list item). The host element MUST have \`position:
|
|
57
|
+
relative\` and \`overflow: hidden\` for the effect to work correctly.
|
|
58
|
+
|
|
59
|
+
2. **Automatic Effect:** The ripple animation starts automatically from the point of a \`pointerdown\`
|
|
60
|
+
event (click or tap) on its parent container.
|
|
61
|
+
|
|
62
|
+
3. **Self-Managing:** The component handles the creation, animation (expansion and fade-out),
|
|
63
|
+
and removal of ripple elements from the DOM automatically.
|
|
64
|
+
|
|
65
|
+
4. **Styling:** The ripple's color is determined by the CSS \`color\` property of its host element
|
|
66
|
+
(\`currentColor\`). It can be styled by changing the text color of the parent.
|
|
67
|
+
|
|
68
|
+
5. **Control:** The effect can be completely disabled by passing the \`disabled: true\` prop.
|
|
69
|
+
|
|
70
|
+
**When to Use:**
|
|
71
|
+
- Use inside buttons, cards, list items, or any other clickable surface to provide clear,
|
|
72
|
+
tangible feedback that the user's action was registered.
|
|
73
|
+
- It is purely a visual enhancement and adds no functionality on its own.
|
|
74
|
+
`
|
|
36
75
|
}
|
|
37
76
|
}
|
|
@@ -66,5 +66,53 @@ export const wikiDescriptionsScrollbar: StorybookComponentsDescriptionItem = {
|
|
|
66
66
|
events: `
|
|
67
67
|
<StorybookDescriptions componentName={'Scrollbar'} type={'emits'}/>
|
|
68
68
|
`
|
|
69
|
+
},
|
|
70
|
+
ai: {
|
|
71
|
+
render: `
|
|
72
|
+
<div :class="classDemo.item">
|
|
73
|
+
<Scrollbar v-bind="args" style="height: 128px">
|
|
74
|
+
<h3>Modern Web Interfaces and User Experience Design</h3>
|
|
75
|
+
<p>In today's digital landscape, creating high-quality user interfaces has become a critical aspect of web application development. User interface components must not only be functional but also provide intuitive interaction patterns that enhance the overall user experience. The evolution of web technologies has enabled developers to create more sophisticated and engaging interfaces.</p>
|
|
76
|
+
|
|
77
|
+
<p>Scrollbars play a particularly important role in content navigation and information architecture. They allow users to easily navigate through large volumes of information while maintaining context and orientation within the document structure. Modern scrollbars should be adaptive, responsive, and visually appealing while providing consistent behavior across different platforms and devices.</p>
|
|
78
|
+
|
|
79
|
+
<h4>Principles of Effective Design Implementation</h4>
|
|
80
|
+
<p>Effective scrollbar design takes into account multiple factors ranging from performance optimization to accessibility compliance. It's essential to ensure smooth animations, proper handling of various input devices, and comprehensive keyboard navigation support. Cross-browser compatibility remains a top priority, especially when dealing with custom scrollbar implementations that need to work consistently across different rendering engines.</p>
|
|
81
|
+
|
|
82
|
+
<p>Users expect scrollbars to work predictably and uniformly throughout all parts of an application. This requires thorough testing and optimization for various usage scenarios, including mobile devices, desktop computers, and touch-enabled interfaces. The component must handle edge cases gracefully and provide appropriate feedback for user interactions.</p>
|
|
83
|
+
</Scrollbar>
|
|
84
|
+
</div>
|
|
85
|
+
`,
|
|
86
|
+
description: `
|
|
87
|
+
Scrollbar is a structural component that wraps content to provide custom scrolling behavior and visual indicators.
|
|
88
|
+
It is designed to handle overflow content within a fixed-height container, adding dynamic dividers (borders) that indicate scroll position.
|
|
89
|
+
|
|
90
|
+
**Key Features:**
|
|
91
|
+
1. **Scroll Indicators (Dividers):**
|
|
92
|
+
- Automatically detects scroll position.
|
|
93
|
+
- Displays a top divider when scrolled down.
|
|
94
|
+
- Displays a bottom divider when there is more content below.
|
|
95
|
+
- Configurable via props (e.g., \`divider\`, \`border\`).
|
|
96
|
+
|
|
97
|
+
2. **Layout:**
|
|
98
|
+
- Renders as a block container (default \`div\`).
|
|
99
|
+
- Must have a defined height or max-height (inherited or set) to enable scrolling.
|
|
100
|
+
|
|
101
|
+
3. **Usage:**
|
|
102
|
+
- Essential for **Modals**, **Dropdowns**, and **Sidebars** where content length varies.
|
|
103
|
+
- Provides visual cues to users that more content is available.
|
|
104
|
+
|
|
105
|
+
**Usage Examples:**
|
|
106
|
+
|
|
107
|
+
- **Basic Scroll Area:**
|
|
108
|
+
\`<Scrollbar style="height: 200px">
|
|
109
|
+
<p>Long content...</p>
|
|
110
|
+
</Scrollbar>\`
|
|
111
|
+
|
|
112
|
+
- **With Custom Tag:**
|
|
113
|
+
\`<Scrollbar tag="section" class="my-scroll-area">
|
|
114
|
+
<List :list="items" />
|
|
115
|
+
</Scrollbar>\`
|
|
116
|
+
`
|
|
69
117
|
}
|
|
70
118
|
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
import type { StorybookComponentsDescriptionItem } from '../../types/storybookTypes'
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Descriptions for Section component properties
|
|
5
|
+
*
|
|
6
|
+
* Описания свойств компонента Section
|
|
7
|
+
*/
|
|
8
|
+
export const wikiDescriptionsSection: StorybookComponentsDescriptionItem = {
|
|
9
|
+
name: 'Section',
|
|
10
|
+
description: {
|
|
11
|
+
en: 'A semantic container component designed to group related content with support for headers, descriptions, and flexible layout options. It uses the <section> tag by default.',
|
|
12
|
+
ru: 'Семантический компонент-контейнер, предназначенный для группировки связанного контента с поддержкой заголовков, описаний и гибких настроек макета. По умолчанию использует тег <section>.'
|
|
13
|
+
},
|
|
14
|
+
possibilities: {
|
|
15
|
+
en: [
|
|
16
|
+
'semantic grouping of content using <section> tag',
|
|
17
|
+
'support for titles (h2 by default), labels, descriptions, and captions',
|
|
18
|
+
'customizable layout and spacing',
|
|
19
|
+
'support for icons',
|
|
20
|
+
'flexible content organization'
|
|
21
|
+
],
|
|
22
|
+
ru: [
|
|
23
|
+
'семантическая группировка контента с использованием тега <section>',
|
|
24
|
+
'поддержка заголовков (h2 по умолчанию), меток, описаний и подписей',
|
|
25
|
+
'настраиваемый макет и отступы',
|
|
26
|
+
'поддержка иконок',
|
|
27
|
+
'гибкая организация контента'
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
import: [],
|
|
31
|
+
render: `
|
|
32
|
+
<DesignComponent v-bind="args">
|
|
33
|
+
<p>
|
|
34
|
+
The Section component is a fundamental building block for structuring web pages.
|
|
35
|
+
It defaults to using the <code><section></code> HTML tag, making it semantically appropriate for grouping thematic content.
|
|
36
|
+
</p>
|
|
37
|
+
<p>
|
|
38
|
+
It provides a rich set of features for content presentation, including headlines, labels, descriptions, and icons.
|
|
39
|
+
The default tag for the headline is set to <code><h2></code>, which fits the typical document outline structure.
|
|
40
|
+
</p>
|
|
41
|
+
<p>
|
|
42
|
+
Use Section to divide your page into distinct thematic areas, improving both the visual structure and the accessibility of your application.
|
|
43
|
+
</p>
|
|
44
|
+
</DesignComponent>
|
|
45
|
+
`,
|
|
46
|
+
stories: [
|
|
47
|
+
{
|
|
48
|
+
id: 'SectionBasic',
|
|
49
|
+
name: {
|
|
50
|
+
en: 'Basic',
|
|
51
|
+
ru: 'Базовые'
|
|
52
|
+
},
|
|
53
|
+
template: `
|
|
54
|
+
<div class="wiki-storybook-flex-column">
|
|
55
|
+
<DesignComponent>
|
|
56
|
+
<p>Generic section content without header.</p>
|
|
57
|
+
</DesignComponent>
|
|
58
|
+
<DesignComponent label="Contact Information" description="Get in touch with us">
|
|
59
|
+
<p>Email: support@example.com</p>
|
|
60
|
+
<p>Phone: +1 234 567 890</p>
|
|
61
|
+
</DesignComponent>
|
|
62
|
+
<DesignComponent headline="Our Services" label="What we do">
|
|
63
|
+
<ul>
|
|
64
|
+
<li>Web Development</li>
|
|
65
|
+
<li>Mobile Apps</li>
|
|
66
|
+
<li>UI/UX Design</li>
|
|
67
|
+
</ul>
|
|
68
|
+
</DesignComponent>
|
|
69
|
+
</div>
|
|
70
|
+
`
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
id: 'SectionSlots',
|
|
74
|
+
name: {
|
|
75
|
+
en: 'Slots usage',
|
|
76
|
+
ru: 'Использование слотов'
|
|
77
|
+
},
|
|
78
|
+
template: `
|
|
79
|
+
<DesignComponent>
|
|
80
|
+
<template #default>Default slot</template>
|
|
81
|
+
<template #headline>Headline slot</template>
|
|
82
|
+
<template #label>Label slot</template>
|
|
83
|
+
<template #description>Description slot</template>
|
|
84
|
+
<template #caption>Caption slot</template>
|
|
85
|
+
<template #trailing>Trailing slot</template>
|
|
86
|
+
</DesignComponent>
|
|
87
|
+
`
|
|
88
|
+
}
|
|
89
|
+
],
|
|
90
|
+
documentation: {
|
|
91
|
+
body: `
|
|
92
|
+
<StorybookDescriptions componentName={'Section'} type={'block'}/>
|
|
93
|
+
<Canvas of={Component.SectionBasic}/>
|
|
94
|
+
`,
|
|
95
|
+
slots: `
|
|
96
|
+
<Canvas of={Component.SectionSlots}/>
|
|
97
|
+
<StorybookDescriptions componentName={'Slot'} type={'default'}/>
|
|
98
|
+
<StorybookDescriptions componentName={'Slot'} type={'headline'}/>
|
|
99
|
+
<StorybookDescriptions componentName={'Slot'} type={'label'}/>
|
|
100
|
+
<StorybookDescriptions componentName={'Slot'} type={'description'}/>
|
|
101
|
+
<StorybookDescriptions componentName={'Slot'} type={'caption'}/>
|
|
102
|
+
<StorybookDescriptions componentName={'Slot'} type={'trailing'}/>
|
|
103
|
+
`,
|
|
104
|
+
expose: `
|
|
105
|
+
<StorybookDescriptions componentName={'Expose'} type={'labelId'}/>
|
|
106
|
+
<StorybookDescriptions componentName={'Expose'} type={'descriptionId'}/>
|
|
107
|
+
`
|
|
108
|
+
},
|
|
109
|
+
ai: {
|
|
110
|
+
render: `
|
|
111
|
+
<div :class="classDemo.item">
|
|
112
|
+
<Section v-bind="args">
|
|
113
|
+
Content of the section.
|
|
114
|
+
</Section>
|
|
115
|
+
</div>
|
|
116
|
+
`,
|
|
117
|
+
description: `
|
|
118
|
+
Section is a structural component used to divide a page into distinct thematic areas.
|
|
119
|
+
It is a semantic alias for the \`Block\` component, inheriting all its layout and styling capabilities.
|
|
120
|
+
|
|
121
|
+
**Key Features:**
|
|
122
|
+
1. **Structure:**
|
|
123
|
+
- **Headline:** Top-level category text (\`headline\`).
|
|
124
|
+
- **Header:** Contains Icon, Label (Title), Caption, and Trailing actions.
|
|
125
|
+
- **Description:** Subtitle or explanatory text.
|
|
126
|
+
- **Content:** The main body of the section.
|
|
127
|
+
|
|
128
|
+
2. **Usage:**
|
|
129
|
+
- Use \`Section\` to group related content within a Page.
|
|
130
|
+
- It provides a consistent header structure for page blocks.
|
|
131
|
+
|
|
132
|
+
3. **Props & Slots:**
|
|
133
|
+
- Inherits all props from \`Block\` (\`label\`, \`icon\`, \`tag\`, etc.).
|
|
134
|
+
- Supports slots: \`#headline\`, \`#trailing\`, \`#default\`.
|
|
135
|
+
|
|
136
|
+
**Usage Examples:**
|
|
137
|
+
|
|
138
|
+
- **Standard Section:**
|
|
139
|
+
\`<Section headline="Account" label="Profile Settings">
|
|
140
|
+
<ProfileForm />
|
|
141
|
+
</Section>\`
|
|
142
|
+
|
|
143
|
+
- **Section with Actions:**
|
|
144
|
+
\`<Section label="Recent Activity">
|
|
145
|
+
<template #trailing>
|
|
146
|
+
<button>View All</button>
|
|
147
|
+
</template>
|
|
148
|
+
<ActivityList />
|
|
149
|
+
</Section>\`
|
|
150
|
+
`
|
|
151
|
+
}
|
|
152
|
+
}
|