@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
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { StorybookComponentsMdxItem } from '../../../types/storybookTypes'
|
|
2
2
|
|
|
3
|
+
import slotBodyEn from './body.en.mdx'
|
|
4
|
+
import slotBodyRu from './body.ru.mdx'
|
|
3
5
|
import slotCaptionEn from './caption.en.mdx'
|
|
4
6
|
import slotCaptionRu from './caption.ru.mdx'
|
|
5
7
|
import slotControlEn from './control.en.mdx'
|
|
@@ -10,16 +12,28 @@ import slotDescriptionEn from './description.en.mdx'
|
|
|
10
12
|
import slotDescriptionRu from './description.ru.mdx'
|
|
11
13
|
import slotFooterEn from './footer.en.mdx'
|
|
12
14
|
import slotFooterRu from './footer.ru.mdx'
|
|
15
|
+
import slotHeadlineEn from './headline.en.mdx'
|
|
16
|
+
import slotHeadlineRu from './headline.ru.mdx'
|
|
13
17
|
import slotLabelEn from './label.en.mdx'
|
|
14
18
|
import slotLabelRu from './label.ru.mdx'
|
|
19
|
+
import slotLeadingEn from './leading.en.mdx'
|
|
20
|
+
import slotLeadingRu from './leading.ru.mdx'
|
|
15
21
|
import slotPrefixEn from './prefix.en.mdx'
|
|
16
22
|
import slotPrefixRu from './prefix.ru.mdx'
|
|
23
|
+
import slotSecondaryEn from './secondary.en.mdx'
|
|
24
|
+
import slotSecondaryRu from './secondary.ru.mdx'
|
|
17
25
|
import slotSuffixEn from './suffix.en.mdx'
|
|
18
26
|
import slotSuffixRu from './suffix.ru.mdx'
|
|
27
|
+
import slotTrailingEn from './trailing.en.mdx'
|
|
28
|
+
import slotTrailingRu from './trailing.ru.mdx'
|
|
19
29
|
|
|
20
30
|
export const wikiMdxSlot: StorybookComponentsMdxItem = {
|
|
21
31
|
name: 'Slot',
|
|
22
32
|
descriptions: {
|
|
33
|
+
body: {
|
|
34
|
+
en: slotBodyEn,
|
|
35
|
+
ru: slotBodyRu
|
|
36
|
+
},
|
|
23
37
|
caption: {
|
|
24
38
|
en: slotCaptionEn,
|
|
25
39
|
ru: slotCaptionRu
|
|
@@ -40,17 +54,33 @@ export const wikiMdxSlot: StorybookComponentsMdxItem = {
|
|
|
40
54
|
en: slotFooterEn,
|
|
41
55
|
ru: slotFooterRu
|
|
42
56
|
},
|
|
57
|
+
headline: {
|
|
58
|
+
en: slotHeadlineEn,
|
|
59
|
+
ru: slotHeadlineRu
|
|
60
|
+
},
|
|
43
61
|
label: {
|
|
44
62
|
en: slotLabelEn,
|
|
45
63
|
ru: slotLabelRu
|
|
46
64
|
},
|
|
65
|
+
leading: {
|
|
66
|
+
en: slotLeadingEn,
|
|
67
|
+
ru: slotLeadingRu
|
|
68
|
+
},
|
|
47
69
|
prefix: {
|
|
48
70
|
en: slotPrefixEn,
|
|
49
71
|
ru: slotPrefixRu
|
|
50
72
|
},
|
|
73
|
+
secondary: {
|
|
74
|
+
en: slotSecondaryEn,
|
|
75
|
+
ru: slotSecondaryRu
|
|
76
|
+
},
|
|
51
77
|
suffix: {
|
|
52
78
|
en: slotSuffixEn,
|
|
53
79
|
ru: slotSuffixRu
|
|
80
|
+
},
|
|
81
|
+
trailing: {
|
|
82
|
+
en: slotTrailingEn,
|
|
83
|
+
ru: slotTrailingRu
|
|
54
84
|
}
|
|
55
85
|
}
|
|
56
86
|
}
|
|
@@ -12,11 +12,11 @@ Works in conjunction with the Skeleton component to control visibility and displ
|
|
|
12
12
|
```html
|
|
13
13
|
<!-- Element will display as skeleton -->
|
|
14
14
|
<Skeleton active>
|
|
15
|
-
<
|
|
15
|
+
<Component isSkeleton text="Loading..." />
|
|
16
16
|
</Skeleton>
|
|
17
17
|
|
|
18
18
|
<!-- Element will be hidden -->
|
|
19
19
|
<Skeleton active>
|
|
20
|
-
<
|
|
20
|
+
<Component :isSkeleton="false" text="Hidden text" />
|
|
21
21
|
</Skeleton>
|
|
22
22
|
```
|
|
@@ -12,11 +12,11 @@
|
|
|
12
12
|
```html
|
|
13
13
|
<!-- Элемент будет отображаться как скелетон -->
|
|
14
14
|
<Skeleton active>
|
|
15
|
-
<
|
|
15
|
+
<Component isSkeleton text="Загрузка..." />
|
|
16
16
|
</Skeleton>
|
|
17
17
|
|
|
18
18
|
<!-- Элемент будет скрыт -->
|
|
19
19
|
<Skeleton active>
|
|
20
|
-
<
|
|
20
|
+
<Component :isSkeleton="false" text="Скрытый текст" />
|
|
21
21
|
</Skeleton>
|
|
22
22
|
```
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
## Managing selection via v-model:selected
|
|
2
|
+
|
|
3
|
+
Two-way binding for selected value using `v-model:selected` (component uses `modelSelected`).
|
|
4
|
+
|
|
5
|
+
**Parameters:**
|
|
6
|
+
- `modelSelected: string | number | string[] | number[] | undefined` — current selected value
|
|
7
|
+
|
|
8
|
+
```html
|
|
9
|
+
<script setup>
|
|
10
|
+
import { ref } from 'vue'
|
|
11
|
+
|
|
12
|
+
const selected = ref('')
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<div>
|
|
17
|
+
<button @click="selected = 'option1'">Select Option 1</button>
|
|
18
|
+
<button @click="selected = 'option2'">Select Option 2</button>
|
|
19
|
+
<button @click="selected = undefined">Clear</button>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<Component v-model:selected="selected" :list="['Option 1', 'Option 2', 'Option 3']" />
|
|
23
|
+
|
|
24
|
+
<div>Current selected value: {{ selected }}</div>
|
|
25
|
+
</template>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
## Управление выбором через v-model:selected
|
|
2
|
+
|
|
3
|
+
Двусторонняя привязка выбранного значения через `v-model:selected` (компонент использует `modelSelected`).
|
|
4
|
+
|
|
5
|
+
**Параметры:**
|
|
6
|
+
- `modelSelected: string | number | string[] | number[] | undefined` — текущее выбранное значение
|
|
7
|
+
|
|
8
|
+
```html
|
|
9
|
+
<script setup>
|
|
10
|
+
import { ref } from 'vue'
|
|
11
|
+
|
|
12
|
+
const selected = ref('')
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<div>
|
|
17
|
+
<button @click="selected = 'option1'">Выбрать Option 1</button>
|
|
18
|
+
<button @click="selected = 'option2'">Выбрать Option 2</button>
|
|
19
|
+
<button @click="selected = undefined">Очистить</button>
|
|
20
|
+
</div>
|
|
21
|
+
|
|
22
|
+
<Component v-model:selected="selected" :list="['Option 1', 'Option 2', 'Option 3']" />
|
|
23
|
+
|
|
24
|
+
<div>Текущее выбранное значение: {{ selected }}</div>
|
|
25
|
+
</template>
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
## Managing value via v-model
|
|
2
|
+
|
|
3
|
+
Two-way value binding using `v-model` (component uses standard `modelValue`).
|
|
4
|
+
|
|
5
|
+
**Parameters:**
|
|
6
|
+
- `modelValue: string | number` — current value
|
|
7
|
+
|
|
8
|
+
```html
|
|
9
|
+
<script setup>
|
|
10
|
+
import { ref } from 'vue'
|
|
11
|
+
|
|
12
|
+
const value = ref('')
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<div>
|
|
17
|
+
<button @click="value = 'Example'">Set value</button>
|
|
18
|
+
<button @click="value = ''">Clear</button>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<Component v-model="value" />
|
|
22
|
+
|
|
23
|
+
<div>Current value: {{ value }}</div>
|
|
24
|
+
</template>
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
## Управление значением через v-model
|
|
2
|
+
|
|
3
|
+
Двусторонняя привязка значения через `v-model` (компонент использует стандартный `modelValue`).
|
|
4
|
+
|
|
5
|
+
**Параметры:**
|
|
6
|
+
- `modelValue: string | number` — текущее значение
|
|
7
|
+
|
|
8
|
+
```html
|
|
9
|
+
<script setup>
|
|
10
|
+
import { ref } from 'vue'
|
|
11
|
+
|
|
12
|
+
const value = ref('')
|
|
13
|
+
</script>
|
|
14
|
+
|
|
15
|
+
<template>
|
|
16
|
+
<div>
|
|
17
|
+
<button @click="value = 'Пример'">Установить значение</button>
|
|
18
|
+
<button @click="value = ''">Очистить</button>
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<Component v-model="value" />
|
|
22
|
+
|
|
23
|
+
<div>Текущее значение: {{ value }}</div>
|
|
24
|
+
</template>
|
|
25
|
+
```
|
|
26
|
+
|
|
@@ -6,12 +6,33 @@ import labelNumberEn from './labelNumber.en.mdx'
|
|
|
6
6
|
import labelNumberRu from './labelNumber.ru.mdx'
|
|
7
7
|
import valueEn from './value.en.mdx'
|
|
8
8
|
import valueRu from './value.ru.mdx'
|
|
9
|
+
import vModelEn from './v-model.en.mdx'
|
|
10
|
+
import vModelRu from './v-model.ru.mdx'
|
|
11
|
+
import vModelSelectedEn from './v-model-selected.en.mdx'
|
|
12
|
+
import vModelSelectedRu from './v-model-selected.ru.mdx'
|
|
9
13
|
|
|
10
14
|
export const wikiMdxValue: StorybookComponentsMdxItem = {
|
|
11
15
|
name: 'Value',
|
|
12
16
|
descriptions: {
|
|
13
|
-
highlight: {
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
'highlight': {
|
|
18
|
+
en: highlightEn,
|
|
19
|
+
ru: highlightRu
|
|
20
|
+
},
|
|
21
|
+
'labelNumber': {
|
|
22
|
+
en: labelNumberEn,
|
|
23
|
+
ru: labelNumberRu
|
|
24
|
+
},
|
|
25
|
+
'v-model': {
|
|
26
|
+
en: vModelEn,
|
|
27
|
+
ru: vModelRu
|
|
28
|
+
},
|
|
29
|
+
'v-model:selected': {
|
|
30
|
+
en: vModelSelectedEn,
|
|
31
|
+
ru: vModelSelectedRu
|
|
32
|
+
},
|
|
33
|
+
'value': {
|
|
34
|
+
en: valueEn,
|
|
35
|
+
ru: valueRu
|
|
36
|
+
}
|
|
16
37
|
}
|
|
17
38
|
}
|
package/src/media/mdx/wikiMdx.ts
CHANGED
|
@@ -6,28 +6,44 @@ import { wikiMdxSlot } from './slot/wikiMdxSlot'
|
|
|
6
6
|
import { wikiMdxStyle } from './style/wikiMdxStyle'
|
|
7
7
|
import { wikiMdxValue } from './value/wikiMdxValue'
|
|
8
8
|
|
|
9
|
+
import { wikiMdxAccordion } from './Accordion/wikiMdxAccordion'
|
|
10
|
+
import { wikiMdxActions } from './Actions/wikiMdxActions'
|
|
11
|
+
import { wikiMdxActionSheet } from './ActionSheet/wikiMdxActionSheet'
|
|
12
|
+
import { wikiMdxAnchor } from './Anchor/wikiMdxAnchor'
|
|
13
|
+
import { wikiMdxArrow } from './Arrow/wikiMdxArrow'
|
|
9
14
|
import { wikiMdxBadge } from './Badge/wikiMdxBadge'
|
|
10
15
|
import { wikiMdxBars } from './Bars/wikiMdxBars'
|
|
16
|
+
import { wikiMdxBlock } from './Block/wikiMdxBlock'
|
|
11
17
|
import { wikiMdxButton } from './Button/wikiMdxButton'
|
|
12
18
|
import { wikiMdxCell } from './Cell/wikiMdxCell'
|
|
13
19
|
import { wikiMdxChip } from './Chip/wikiMdxChip'
|
|
20
|
+
import { wikiMdxChipGroup } from './ChipGroup/wikiMdxChipGroup'
|
|
21
|
+
import { wikiMdxDialog } from './Dialog/wikiMdxDialog'
|
|
14
22
|
import { wikiMdxField } from './Field/wikiMdxField'
|
|
15
23
|
import { wikiMdxFieldCounter } from './FieldCounter/wikiMdxFieldCounter'
|
|
16
24
|
import { wikiMdxFieldLabel } from './FieldLabel/wikiMdxFieldLabel'
|
|
17
25
|
import { wikiMdxFieldMessage } from './FieldMessage/wikiMdxFieldMessage'
|
|
18
26
|
import { wikiMdxIcon } from './Icon/wikiMdxIcon'
|
|
19
27
|
import { wikiMdxImage } from './Image/wikiMdxImage'
|
|
28
|
+
import { wikiMdxInput } from './Input/wikiMdxInput'
|
|
20
29
|
import { wikiMdxList } from './List/wikiMdxList'
|
|
21
30
|
import { wikiMdxListGroup } from './ListGroup/wikiMdxListGroup'
|
|
22
31
|
import { wikiMdxListItem } from './ListItem/wikiMdxListItem'
|
|
23
32
|
import { wikiMdxListMenu } from './ListMenu/wikiMdxListMenu'
|
|
24
33
|
import { wikiMdxMask } from './Mask/wikiMdxMask'
|
|
25
34
|
import { wikiMdxMenu } from './Menu/wikiMdxMenu'
|
|
35
|
+
import { wikiMdxModal } from './Modal/wikiMdxModal'
|
|
26
36
|
import { wikiMdxMotionTransform } from './MotionTransform/wikiMdxMotionTransform'
|
|
37
|
+
import { wikiMdxPage } from './Page/wikiMdxPage'
|
|
27
38
|
import { wikiMdxProgress } from './Progress/wikiMdxProgress'
|
|
28
39
|
import { wikiMdxRipple } from './Ripple/wikiMdxRipple'
|
|
29
40
|
import { wikiMdxScrollbar } from './Scrollbar/wikiMdxScrollbar'
|
|
41
|
+
import { wikiMdxSection } from './Section/wikiMdxSection'
|
|
42
|
+
import { wikiMdxSelect } from './Select/wikiMdxSelect'
|
|
43
|
+
import { wikiMdxSelectValue } from './SelectValue/wikiMdxSelectValue'
|
|
30
44
|
import { wikiMdxSkeleton } from './Skeleton/wikiMdxSkeleton'
|
|
45
|
+
import { wikiMdxTextareaAutosize } from './TextareaAutosize/wikiMdxTextareaAutosize'
|
|
46
|
+
import { wikiMdxTooltip } from './Tooltip/wikiMdxTooltip'
|
|
31
47
|
import { wikiMdxWindow } from './Window/wikiMdxWindow'
|
|
32
48
|
|
|
33
49
|
export const wikiMdx: StorybookComponentsMdx = [
|
|
@@ -37,27 +53,43 @@ export const wikiMdx: StorybookComponentsMdx = [
|
|
|
37
53
|
wikiMdxStyle,
|
|
38
54
|
wikiMdxValue,
|
|
39
55
|
|
|
56
|
+
wikiMdxAccordion,
|
|
57
|
+
wikiMdxActions,
|
|
58
|
+
wikiMdxActionSheet,
|
|
59
|
+
wikiMdxAnchor,
|
|
60
|
+
wikiMdxArrow,
|
|
40
61
|
wikiMdxBadge,
|
|
41
62
|
wikiMdxBars,
|
|
63
|
+
wikiMdxBlock,
|
|
42
64
|
wikiMdxButton,
|
|
43
65
|
wikiMdxCell,
|
|
44
66
|
wikiMdxChip,
|
|
67
|
+
wikiMdxChipGroup,
|
|
68
|
+
wikiMdxDialog,
|
|
45
69
|
wikiMdxField,
|
|
46
70
|
wikiMdxFieldCounter,
|
|
47
71
|
wikiMdxFieldLabel,
|
|
48
72
|
wikiMdxFieldMessage,
|
|
49
73
|
wikiMdxIcon,
|
|
50
74
|
wikiMdxImage,
|
|
75
|
+
wikiMdxInput,
|
|
51
76
|
wikiMdxList,
|
|
52
77
|
wikiMdxListGroup,
|
|
53
78
|
wikiMdxListItem,
|
|
54
79
|
wikiMdxListMenu,
|
|
55
80
|
wikiMdxMask,
|
|
56
|
-
wikiMdxMotionTransform,
|
|
57
81
|
wikiMdxMenu,
|
|
82
|
+
wikiMdxModal,
|
|
83
|
+
wikiMdxMotionTransform,
|
|
84
|
+
wikiMdxPage,
|
|
58
85
|
wikiMdxProgress,
|
|
59
86
|
wikiMdxRipple,
|
|
60
87
|
wikiMdxScrollbar,
|
|
88
|
+
wikiMdxSection,
|
|
89
|
+
wikiMdxSelect,
|
|
90
|
+
wikiMdxSelectValue,
|
|
61
91
|
wikiMdxSkeleton,
|
|
92
|
+
wikiMdxTextareaAutosize,
|
|
93
|
+
wikiMdxTooltip,
|
|
62
94
|
wikiMdxWindow
|
|
63
95
|
]
|
package/src/media/props/wiki.ts
CHANGED
|
@@ -1,18 +1,37 @@
|
|
|
1
1
|
import type { StorybookArgsToList } from '../../types/storybookTypes'
|
|
2
2
|
|
|
3
|
+
import { wikiAria } from './wikiAria'
|
|
4
|
+
import { wikiAttributes } from './wikiAttributes'
|
|
5
|
+
import { wikiForm } from './wikiForm'
|
|
3
6
|
import { wikiStatus } from './wikiStatus'
|
|
7
|
+
import { wikiInformation } from './wikiInformation'
|
|
4
8
|
import { wikiValue } from './wikiValue'
|
|
5
9
|
import { wikiStyle } from './wikiStyle'
|
|
10
|
+
import { wikiOption } from './wikiOption'
|
|
6
11
|
import { wikiTechnical } from './wikiTechnical'
|
|
12
|
+
import { wikiText } from './wikiText'
|
|
7
13
|
import { wikiHook } from './wikiHook'
|
|
8
14
|
|
|
15
|
+
import { wikiActionsInclude } from './wikiActionsInclude'
|
|
16
|
+
import { wikiArrowInclude } from './wikiArrowInclude'
|
|
17
|
+
import { wikiBarsInclude } from './wikiBarsInclude'
|
|
18
|
+
import { wikiFieldCounterInclude } from './wikiFieldCounterInclude'
|
|
19
|
+
import { wikiIconInclude } from './wikiIconInclude'
|
|
20
|
+
import { wikiMaskInclude } from './wikiMaskInclude'
|
|
21
|
+
|
|
22
|
+
import { wikiActions } from './wikiActions'
|
|
23
|
+
import { wikiAnchor } from './wikiAnchor'
|
|
24
|
+
import { wikiArrow } from './wikiArrow'
|
|
9
25
|
import { wikiBadge } from './wikiBadge'
|
|
10
26
|
import { wikiBars } from './wikiBars'
|
|
11
27
|
import { wikiButton } from './wikiButton'
|
|
12
28
|
import { wikiChip } from './wikiChip'
|
|
29
|
+
import { wikiChipGroup } from './wikiChipGroup'
|
|
30
|
+
import { wikiDialog } from './wikiDialog'
|
|
13
31
|
import { wikiField } from './wikiField'
|
|
14
32
|
import { wikiIcon } from './wikiIcon'
|
|
15
33
|
import { wikiImage } from './wikiImage'
|
|
34
|
+
import { wikiInput } from './wikiInput'
|
|
16
35
|
import { wikiList } from './wikiList'
|
|
17
36
|
import { wikiListItem } from './wikiListItem'
|
|
18
37
|
import { wikiMask } from './wikiMask'
|
|
@@ -20,22 +39,44 @@ import { wikiMenu } from './wikiMenu'
|
|
|
20
39
|
import { wikiMotionTransform } from './wikiMotionTransform'
|
|
21
40
|
import { wikiProgress } from './wikiProgress'
|
|
22
41
|
import { wikiScrollbar } from './wikiScrollbar'
|
|
42
|
+
import { wikiSelect } from './wikiSelect'
|
|
43
|
+
import { wikiSelectValue } from './wikiSelectValue'
|
|
44
|
+
import { wikiTooltip } from './wikiTooltip'
|
|
23
45
|
import { wikiWindow } from './wikiWindow'
|
|
24
46
|
|
|
25
47
|
export const wiki: StorybookArgsToList = {
|
|
48
|
+
...wikiAria,
|
|
49
|
+
...wikiAttributes,
|
|
50
|
+
...wikiForm,
|
|
26
51
|
...wikiStatus,
|
|
52
|
+
...wikiInformation,
|
|
27
53
|
...wikiValue,
|
|
28
54
|
...wikiStyle,
|
|
55
|
+
...wikiOption,
|
|
29
56
|
...wikiTechnical,
|
|
57
|
+
...wikiText,
|
|
30
58
|
...wikiHook,
|
|
31
59
|
|
|
60
|
+
...wikiActionsInclude,
|
|
61
|
+
...wikiArrowInclude,
|
|
62
|
+
...wikiBarsInclude,
|
|
63
|
+
...wikiFieldCounterInclude,
|
|
64
|
+
...wikiIconInclude,
|
|
65
|
+
...wikiMaskInclude,
|
|
66
|
+
|
|
67
|
+
...wikiActions,
|
|
68
|
+
...wikiAnchor,
|
|
69
|
+
...wikiArrow,
|
|
32
70
|
...wikiBadge,
|
|
33
71
|
...wikiBars,
|
|
34
72
|
...wikiButton,
|
|
35
73
|
...wikiChip,
|
|
74
|
+
...wikiChipGroup,
|
|
75
|
+
...wikiDialog,
|
|
36
76
|
...wikiField,
|
|
37
77
|
...wikiIcon,
|
|
38
78
|
...wikiImage,
|
|
79
|
+
...wikiInput,
|
|
39
80
|
...wikiList,
|
|
40
81
|
...wikiListItem,
|
|
41
82
|
...wikiMask,
|
|
@@ -43,5 +84,8 @@ export const wiki: StorybookArgsToList = {
|
|
|
43
84
|
...wikiMotionTransform,
|
|
44
85
|
...wikiProgress,
|
|
45
86
|
...wikiScrollbar,
|
|
87
|
+
...wikiSelect,
|
|
88
|
+
...wikiSelectValue,
|
|
89
|
+
...wikiTooltip,
|
|
46
90
|
...wikiWindow
|
|
47
91
|
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type StorybookArgsToList,
|
|
3
|
+
StorybookCategory,
|
|
4
|
+
StorybookControl
|
|
5
|
+
} from '../../types/storybookTypes'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The wikiActions object contains descriptions of all properties for the Actions component
|
|
9
|
+
*
|
|
10
|
+
* Объект wikiActions содержит описание всех свойств для компонента Actions
|
|
11
|
+
*/
|
|
12
|
+
export const wikiActions: StorybookArgsToList = {
|
|
13
|
+
'actions.list': {
|
|
14
|
+
type: StorybookControl.object,
|
|
15
|
+
options: {
|
|
16
|
+
category: StorybookCategory.value,
|
|
17
|
+
description: {
|
|
18
|
+
en: 'Array of primary action button configurations',
|
|
19
|
+
ru: 'Массив конфигураций основных кнопок действий'
|
|
20
|
+
},
|
|
21
|
+
value: [
|
|
22
|
+
{ label: 'Ok' },
|
|
23
|
+
{ label: 'Cancel' }
|
|
24
|
+
]
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
'actions.listSecondary': {
|
|
28
|
+
type: StorybookControl.object,
|
|
29
|
+
options: {
|
|
30
|
+
category: StorybookCategory.value,
|
|
31
|
+
description: {
|
|
32
|
+
en: 'Array of secondary action button configurations',
|
|
33
|
+
ru: 'Массив конфигураций вторичных кнопок действий'
|
|
34
|
+
},
|
|
35
|
+
value: [
|
|
36
|
+
{ icon: 'edit' },
|
|
37
|
+
{ icon: 'photo_camera' },
|
|
38
|
+
{ icon: 'image' },
|
|
39
|
+
{ icon: 'tune' }
|
|
40
|
+
]
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type StorybookArgsToList,
|
|
3
|
+
StorybookCategory,
|
|
4
|
+
StorybookControl
|
|
5
|
+
} from '../../types/storybookTypes'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The wikiActionsInclude object contains descriptions of all properties for the Actions include
|
|
9
|
+
*
|
|
10
|
+
* Объект wikiActionsInclude содержит описание всех свойств для включения Actions
|
|
11
|
+
*/
|
|
12
|
+
export const wikiActionsInclude: StorybookArgsToList = {
|
|
13
|
+
actionsAttrs: {
|
|
14
|
+
type: StorybookControl.object,
|
|
15
|
+
options: {
|
|
16
|
+
category: StorybookCategory.attributes,
|
|
17
|
+
description: {
|
|
18
|
+
en: 'Additional attributes for the Actions component container',
|
|
19
|
+
ru: 'Дополнительные атрибуты для контейнера компонента Actions'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
actionsHide: {
|
|
24
|
+
type: StorybookControl.boolean,
|
|
25
|
+
options: {
|
|
26
|
+
category: StorybookCategory.actions,
|
|
27
|
+
description: {
|
|
28
|
+
en: 'Hides the actions block',
|
|
29
|
+
ru: 'Скрывает блок действий'
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
actionsList: {
|
|
34
|
+
type: StorybookControl.object,
|
|
35
|
+
options: {
|
|
36
|
+
category: StorybookCategory.actions,
|
|
37
|
+
description: {
|
|
38
|
+
en: 'Array of primary action buttons displayed in the actions area',
|
|
39
|
+
ru: 'Массив основных кнопок действий, отображаемых в области действий'
|
|
40
|
+
},
|
|
41
|
+
value: [
|
|
42
|
+
{ icon: 'edit', label: 'Edit' },
|
|
43
|
+
{ icon: 'delete', label: 'Delete' },
|
|
44
|
+
{ icon: 'share', label: 'Share' }
|
|
45
|
+
]
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
actionsSecondary: {
|
|
49
|
+
type: StorybookControl.object,
|
|
50
|
+
options: {
|
|
51
|
+
category: StorybookCategory.actions,
|
|
52
|
+
description: {
|
|
53
|
+
en: 'Array of secondary action buttons displayed in the actions area',
|
|
54
|
+
ru: 'Массив вторичных кнопок действий, отображаемых в области действий'
|
|
55
|
+
},
|
|
56
|
+
value: [
|
|
57
|
+
{ icon: 'info', label: 'Info' },
|
|
58
|
+
{ icon: 'help', label: 'Help' }
|
|
59
|
+
]
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type StorybookArgsToList,
|
|
3
|
+
StorybookCategory,
|
|
4
|
+
StorybookControl
|
|
5
|
+
} from '../../types/storybookTypes'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The wikiAnchor object contains descriptions of all properties for the Anchor component
|
|
9
|
+
*
|
|
10
|
+
* Объект wikiAnchor содержит описание всех свойств для компонента Anchor
|
|
11
|
+
*/
|
|
12
|
+
export const wikiAnchor: StorybookArgsToList = {
|
|
13
|
+
'anchor.behavior': {
|
|
14
|
+
type: StorybookControl.select,
|
|
15
|
+
options: {
|
|
16
|
+
category: StorybookCategory.option,
|
|
17
|
+
description: {
|
|
18
|
+
en: 'Defines the transition animation',
|
|
19
|
+
ru: 'Определяет анимацию перехода'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
'anchor.block': {
|
|
24
|
+
type: StorybookControl.select,
|
|
25
|
+
options: {
|
|
26
|
+
category: StorybookCategory.option,
|
|
27
|
+
description: {
|
|
28
|
+
en: 'Defines vertical alignment',
|
|
29
|
+
ru: 'Определяет вертикальное выравнивание'
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
},
|
|
33
|
+
'anchor.delayHide': {
|
|
34
|
+
type: StorybookControl.number,
|
|
35
|
+
options: {
|
|
36
|
+
category: StorybookCategory.option,
|
|
37
|
+
description: {
|
|
38
|
+
en: 'Delay before hiding the element (in ms)',
|
|
39
|
+
ru: 'Задержка перед скрытием элемента (в мс)'
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
'anchor.inline': {
|
|
44
|
+
type: StorybookControl.select,
|
|
45
|
+
options: {
|
|
46
|
+
category: StorybookCategory.option,
|
|
47
|
+
description: {
|
|
48
|
+
en: 'Defines horizontal alignment',
|
|
49
|
+
ru: 'Определяет горизонтальное выравнивание'
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
'anchor.isCopy': {
|
|
54
|
+
type: StorybookControl.boolean,
|
|
55
|
+
options: {
|
|
56
|
+
category: StorybookCategory.option,
|
|
57
|
+
description: {
|
|
58
|
+
en: 'Enables copy-to-clipboard functionality',
|
|
59
|
+
ru: 'Включает функцию копирования в буфер обмена'
|
|
60
|
+
}
|
|
61
|
+
},
|
|
62
|
+
isDemo: true
|
|
63
|
+
},
|
|
64
|
+
'anchor.name': {
|
|
65
|
+
type: StorybookControl.text,
|
|
66
|
+
options: {
|
|
67
|
+
category: StorybookCategory.value,
|
|
68
|
+
description: {
|
|
69
|
+
en: 'Anchor name for navigation within the page',
|
|
70
|
+
ru: 'Имя якоря для навигации внутри страницы'
|
|
71
|
+
},
|
|
72
|
+
value: 'name-example'
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
'anchor.shift': {
|
|
76
|
+
type: StorybookControl.number,
|
|
77
|
+
options: {
|
|
78
|
+
category: StorybookCategory.option,
|
|
79
|
+
description: {
|
|
80
|
+
en: 'Scroll offset from the top edge (in pixels)',
|
|
81
|
+
ru: 'Смещение прокрутки от верхнего края (в пикселях)'
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
}
|