@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,68 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type StorybookArgsToList,
|
|
3
|
+
StorybookCategory,
|
|
4
|
+
StorybookControl
|
|
5
|
+
} from '../../types/storybookTypes'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The wikiSelect object contains properties for the Select component
|
|
9
|
+
*
|
|
10
|
+
* Объект wikiSelect содержит свойства для компонента Select
|
|
11
|
+
*/
|
|
12
|
+
export const wikiSelect: StorybookArgsToList = {
|
|
13
|
+
'select.editValue': {
|
|
14
|
+
type: StorybookControl.boolean,
|
|
15
|
+
options: {
|
|
16
|
+
category: StorybookCategory.form,
|
|
17
|
+
description: {
|
|
18
|
+
en: 'Allows editing the selected value directly inside the input when not in multiple mode',
|
|
19
|
+
ru: 'Позволяет редактировать выбранное значение прямо в input при одиночном выборе'
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
'select.inputSearchAttrs': {
|
|
24
|
+
type: StorybookControl.object,
|
|
25
|
+
options: {
|
|
26
|
+
category: StorybookCategory.attributes,
|
|
27
|
+
type: ['object', 'function'],
|
|
28
|
+
description: {
|
|
29
|
+
en: 'Additional bindings or attributes for the search input inside the dropdown',
|
|
30
|
+
ru: 'Дополнительные привязки или атрибуты для поля поиска внутри выпадающего меню'
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
'select.option': {
|
|
35
|
+
type: StorybookControl.object,
|
|
36
|
+
options: {
|
|
37
|
+
category: StorybookCategory.value,
|
|
38
|
+
type: ['array', 'object', 'function'],
|
|
39
|
+
description: {
|
|
40
|
+
en: 'List of options to display in the dropdown - accepts array, object, or function returning options',
|
|
41
|
+
ru: 'Список опций для отображения в выпадающем списке - принимает массив, объект или функцию, возвращающую опции'
|
|
42
|
+
},
|
|
43
|
+
value: [
|
|
44
|
+
{ label: 'Home', value: 'home', icon: 'home' },
|
|
45
|
+
{ label: 'Dashboard', value: 'dashboard', icon: 'dashboard' },
|
|
46
|
+
{ label: 'Profile', value: 'profile', icon: 'person' },
|
|
47
|
+
{ label: 'Settings', value: 'settings', icon: 'settings' },
|
|
48
|
+
{ label: 'Notifications', value: 'notifications', icon: 'notifications' },
|
|
49
|
+
{ label: 'Messages', value: 'messages', icon: 'message' },
|
|
50
|
+
{ label: 'Calendar', value: 'calendar', icon: 'calendar_today' },
|
|
51
|
+
{ label: 'Tasks', value: 'tasks', icon: 'task' },
|
|
52
|
+
{ label: 'Projects', value: 'projects', icon: 'work' },
|
|
53
|
+
{ label: 'Team', value: 'team', icon: 'group' },
|
|
54
|
+
{ label: 'Documents', value: 'documents', icon: 'description' }
|
|
55
|
+
]
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
'select.showSearch': {
|
|
59
|
+
type: StorybookControl.boolean,
|
|
60
|
+
options: {
|
|
61
|
+
category: StorybookCategory.option,
|
|
62
|
+
description: {
|
|
63
|
+
en: 'Shows a search/filter field inside the dropdown menu',
|
|
64
|
+
ru: 'Отображает поле поиска/фильтра внутри выпадающего меню'
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import {
|
|
2
|
+
type StorybookArgsToList,
|
|
3
|
+
StorybookCategory,
|
|
4
|
+
StorybookControl
|
|
5
|
+
} from '../../types/storybookTypes'
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* The wikiSelectValue object contains properties for the SelectValue component
|
|
9
|
+
*
|
|
10
|
+
* Объект wikiSelectValue содержит свойства для компонента SelectValue
|
|
11
|
+
*/
|
|
12
|
+
export const wikiSelectValue: StorybookArgsToList = {
|
|
13
|
+
'selectValue.value': {
|
|
14
|
+
type: StorybookControl.object,
|
|
15
|
+
options: {
|
|
16
|
+
category: StorybookCategory.value,
|
|
17
|
+
type: 'array',
|
|
18
|
+
description: {
|
|
19
|
+
en: 'Array of selected values to display - each item should contain label, value, and optional index, icon, and detail properties',
|
|
20
|
+
ru: 'Массив выбранных значений для отображения - каждый элемент должен содержать свойства label, value и опционально index, icon и detail'
|
|
21
|
+
},
|
|
22
|
+
value: [
|
|
23
|
+
{ label: 'JavaScript', value: 'js', icon: 'code', index: '1' },
|
|
24
|
+
{ label: 'TypeScript', value: 'ts', icon: 'verified', index: '2', detail: 'Recommended' },
|
|
25
|
+
{ label: 'React', value: 'react', icon: 'favorite', index: '3' },
|
|
26
|
+
{ label: 'Vue.js', value: 'vue', icon: 'star', index: '4', detail: 'Popular framework' }
|
|
27
|
+
]
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
}
|
|
@@ -14,45 +14,43 @@ export const wikiStatus: StorybookArgsToList = {
|
|
|
14
14
|
type: StorybookControl.boolean,
|
|
15
15
|
options: {
|
|
16
16
|
category: StorybookCategory.status,
|
|
17
|
-
|
|
18
17
|
description: {
|
|
19
18
|
en: 'Sets the element to an active state',
|
|
20
19
|
ru: 'Переводит элемент в активное состояние'
|
|
21
20
|
}
|
|
22
21
|
}
|
|
23
22
|
},
|
|
24
|
-
|
|
23
|
+
cancelShow: {
|
|
25
24
|
type: StorybookControl.boolean,
|
|
26
25
|
options: {
|
|
27
26
|
category: StorybookCategory.status,
|
|
28
|
-
|
|
29
27
|
description: {
|
|
30
|
-
en: '
|
|
31
|
-
ru: '
|
|
28
|
+
en: 'Used only when cancel=auto: allows showing cancel (обычно при наличии значения). Ignored for always.',
|
|
29
|
+
ru: 'Работает только при cancel=auto: разрешает показ (обычно при значении). Игнорируется для always.'
|
|
32
30
|
}
|
|
33
31
|
}
|
|
34
32
|
},
|
|
35
|
-
|
|
33
|
+
disabled: {
|
|
36
34
|
type: StorybookControl.boolean,
|
|
37
35
|
options: {
|
|
38
36
|
category: StorybookCategory.status,
|
|
39
|
-
|
|
40
37
|
description: {
|
|
41
|
-
en: '
|
|
42
|
-
ru: '
|
|
38
|
+
en: 'Sets the element to an inactive state',
|
|
39
|
+
ru: 'Переводит элемент в неактивное состояние'
|
|
43
40
|
}
|
|
44
|
-
}
|
|
41
|
+
},
|
|
42
|
+
isDemo: true
|
|
45
43
|
},
|
|
46
|
-
|
|
44
|
+
error: {
|
|
47
45
|
type: StorybookControl.boolean,
|
|
48
46
|
options: {
|
|
49
47
|
category: StorybookCategory.status,
|
|
50
|
-
|
|
51
48
|
description: {
|
|
52
|
-
en: 'Sets the element to an
|
|
53
|
-
ru: 'Переводит элемент в
|
|
49
|
+
en: 'Sets the element to an error state',
|
|
50
|
+
ru: 'Переводит элемент в состояние ошибки'
|
|
54
51
|
}
|
|
55
|
-
}
|
|
52
|
+
},
|
|
53
|
+
isDemo: true
|
|
56
54
|
},
|
|
57
55
|
focus: {
|
|
58
56
|
type: StorybookControl.boolean,
|
|
@@ -62,62 +60,29 @@ export const wikiStatus: StorybookArgsToList = {
|
|
|
62
60
|
en: 'Visual focus state',
|
|
63
61
|
ru: 'Визуальное состояние фокуса'
|
|
64
62
|
}
|
|
65
|
-
}
|
|
63
|
+
},
|
|
64
|
+
isDemo: true
|
|
66
65
|
},
|
|
67
66
|
forceShow: {
|
|
68
67
|
type: StorybookControl.boolean,
|
|
69
68
|
options: {
|
|
70
69
|
category: StorybookCategory.status,
|
|
71
|
-
|
|
72
70
|
description: {
|
|
73
71
|
en: 'Forces the display of the element regardless of other conditions',
|
|
74
72
|
ru: 'Принудительно отображает элемент независимо от других условий'
|
|
75
73
|
}
|
|
76
74
|
}
|
|
77
75
|
},
|
|
78
|
-
forceShowMessage: {
|
|
79
|
-
type: StorybookControl.boolean,
|
|
80
|
-
options: {
|
|
81
|
-
category: StorybookCategory.status,
|
|
82
|
-
description: {
|
|
83
|
-
en: 'Forces display of helper / validation message ignoring usual visibility rules',
|
|
84
|
-
ru: 'Принудительно показывает сообщение (helper / validation), игнорируя обычные условия видимости'
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
},
|
|
88
76
|
hide: {
|
|
89
77
|
type: StorybookControl.boolean,
|
|
90
78
|
options: {
|
|
91
79
|
category: StorybookCategory.status,
|
|
92
|
-
|
|
93
80
|
description: {
|
|
94
81
|
en: 'Hides the element',
|
|
95
82
|
ru: 'Скрывает элемент'
|
|
96
83
|
}
|
|
97
84
|
}
|
|
98
85
|
},
|
|
99
|
-
iconHide: {
|
|
100
|
-
type: StorybookControl.boolean,
|
|
101
|
-
options: {
|
|
102
|
-
category: StorybookCategory.status,
|
|
103
|
-
|
|
104
|
-
description: {
|
|
105
|
-
en: 'Hides the icon',
|
|
106
|
-
ru: 'Скрывает иконку'
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
iconTurn: {
|
|
111
|
-
type: StorybookControl.boolean,
|
|
112
|
-
options: {
|
|
113
|
-
category: StorybookCategory.status,
|
|
114
|
-
|
|
115
|
-
description: {
|
|
116
|
-
en: 'Turns the icon',
|
|
117
|
-
ru: 'Поворачивает иконку'
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
},
|
|
121
86
|
isValue: {
|
|
122
87
|
type: StorybookControl.boolean,
|
|
123
88
|
options: {
|
|
@@ -132,23 +97,23 @@ export const wikiStatus: StorybookArgsToList = {
|
|
|
132
97
|
type: StorybookControl.boolean,
|
|
133
98
|
options: {
|
|
134
99
|
category: StorybookCategory.status,
|
|
135
|
-
|
|
136
100
|
description: {
|
|
137
101
|
en: 'Sets the element to a loading state',
|
|
138
102
|
ru: 'Переводит элемент в состояние загрузки'
|
|
139
103
|
}
|
|
140
|
-
}
|
|
104
|
+
},
|
|
105
|
+
isDemo: true
|
|
141
106
|
},
|
|
142
107
|
open: {
|
|
143
108
|
type: StorybookControl.boolean,
|
|
144
109
|
options: {
|
|
145
110
|
category: StorybookCategory.status,
|
|
146
|
-
|
|
147
111
|
description: {
|
|
148
112
|
en: 'Sets the element to an open state',
|
|
149
113
|
ru: 'Переводит элемент в открытое состояние'
|
|
150
114
|
}
|
|
151
|
-
}
|
|
115
|
+
},
|
|
116
|
+
isDemo: true
|
|
152
117
|
},
|
|
153
118
|
readonly: {
|
|
154
119
|
type: StorybookControl.boolean,
|
|
@@ -168,18 +133,30 @@ export const wikiStatus: StorybookArgsToList = {
|
|
|
168
133
|
en: 'Selected state of the element',
|
|
169
134
|
ru: 'Состояние выбора элемента'
|
|
170
135
|
}
|
|
171
|
-
}
|
|
136
|
+
},
|
|
137
|
+
isDemo: true
|
|
138
|
+
},
|
|
139
|
+
success: {
|
|
140
|
+
type: StorybookControl.boolean,
|
|
141
|
+
options: {
|
|
142
|
+
category: StorybookCategory.status,
|
|
143
|
+
description: {
|
|
144
|
+
en: 'Sets the element to a success state',
|
|
145
|
+
ru: 'Переводит элемент в состояние успеха'
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
isDemo: true
|
|
172
149
|
},
|
|
173
150
|
turn: {
|
|
174
151
|
type: StorybookControl.boolean,
|
|
175
152
|
options: {
|
|
176
153
|
category: StorybookCategory.status,
|
|
177
|
-
|
|
178
154
|
description: {
|
|
179
155
|
en: 'Rotates the element by 180 degrees',
|
|
180
156
|
ru: 'Поворачивает элемент на 180 градусов'
|
|
181
157
|
}
|
|
182
|
-
}
|
|
158
|
+
},
|
|
159
|
+
isDemo: true
|
|
183
160
|
},
|
|
184
161
|
visible: {
|
|
185
162
|
type: StorybookControl.boolean,
|