@dxtmisha/wiki 0.25.1 → 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.
Files changed (101) hide show
  1. package/package.json +2 -2
  2. package/src/classes/WikiStorybook.ts +92 -1
  3. package/src/classes/WikiStorybookItem.ts +55 -5
  4. package/src/classes/WikiStorybookProp.ts +109 -0
  5. package/src/library.ts +1 -0
  6. package/src/media/descriptions/wikiDescriptions.ts +4 -0
  7. package/src/media/descriptions/wikiDescriptionsAccordion.ts +46 -0
  8. package/src/media/descriptions/wikiDescriptionsActionSheet.ts +53 -0
  9. package/src/media/descriptions/wikiDescriptionsActions.ts +28 -0
  10. package/src/media/descriptions/wikiDescriptionsAnchor.ts +36 -0
  11. package/src/media/descriptions/wikiDescriptionsArrow.ts +33 -0
  12. package/src/media/descriptions/wikiDescriptionsBadge.ts +43 -0
  13. package/src/media/descriptions/wikiDescriptionsBars.ts +33 -0
  14. package/src/media/descriptions/wikiDescriptionsBlock.ts +67 -5
  15. package/src/media/descriptions/wikiDescriptionsButton.ts +32 -0
  16. package/src/media/descriptions/wikiDescriptionsCell.ts +24 -0
  17. package/src/media/descriptions/wikiDescriptionsChip.ts +42 -0
  18. package/src/media/descriptions/wikiDescriptionsChipGroup.ts +45 -14
  19. package/src/media/descriptions/wikiDescriptionsDialog.ts +44 -0
  20. package/src/media/descriptions/wikiDescriptionsField.ts +55 -2
  21. package/src/media/descriptions/wikiDescriptionsFieldCounter.ts +32 -0
  22. package/src/media/descriptions/wikiDescriptionsFieldLabel.ts +22 -0
  23. package/src/media/descriptions/wikiDescriptionsFieldMessage.ts +25 -0
  24. package/src/media/descriptions/wikiDescriptionsIcon.ts +46 -8
  25. package/src/media/descriptions/wikiDescriptionsImage.ts +50 -1
  26. package/src/media/descriptions/wikiDescriptionsInput.ts +56 -0
  27. package/src/media/descriptions/wikiDescriptionsList.ts +31 -0
  28. package/src/media/descriptions/wikiDescriptionsListGroup.ts +57 -0
  29. package/src/media/descriptions/wikiDescriptionsListItem.ts +42 -0
  30. package/src/media/descriptions/wikiDescriptionsListMenu.ts +41 -0
  31. package/src/media/descriptions/wikiDescriptionsMask.ts +42 -0
  32. package/src/media/descriptions/wikiDescriptionsMenu.ts +56 -0
  33. package/src/media/descriptions/wikiDescriptionsModal.ts +61 -6
  34. package/src/media/descriptions/wikiDescriptionsMotionTransform.ts +57 -0
  35. package/src/media/descriptions/wikiDescriptionsPage.ts +155 -0
  36. package/src/media/descriptions/wikiDescriptionsProgress.ts +39 -0
  37. package/src/media/descriptions/wikiDescriptionsRipple.ts +42 -3
  38. package/src/media/descriptions/wikiDescriptionsScrollbar.ts +48 -0
  39. package/src/media/descriptions/wikiDescriptionsSection.ts +152 -0
  40. package/src/media/descriptions/wikiDescriptionsSelect.ts +44 -0
  41. package/src/media/descriptions/wikiDescriptionsSelectValue.ts +29 -0
  42. package/src/media/descriptions/wikiDescriptionsSkeleton.ts +42 -1
  43. package/src/media/descriptions/wikiDescriptionsTextareaAutosize.ts +30 -0
  44. package/src/media/descriptions/wikiDescriptionsTooltip.ts +47 -0
  45. package/src/media/descriptions/wikiDescriptionsWindow.ts +60 -0
  46. package/src/media/functional/functional-basic/functions/getCurrentDate/getCurrentDate.en.mdx +25 -0
  47. package/src/media/functional/functional-basic/functions/getCurrentDate/getCurrentDate.ru.mdx +25 -0
  48. package/src/media/functional/functional-basic/functions/getCurrentDate/getCurrentDate.vi.mdx +25 -0
  49. package/src/media/functional/functional-basic/functions/isEnter/isEnter.en.mdx +30 -0
  50. package/src/media/functional/functional-basic/functions/isEnter/isEnter.ru.mdx +30 -0
  51. package/src/media/functional/functional-basic/functions/isEnter/isEnter.vi.mdx +30 -0
  52. package/src/media/mdx/Image/flag.en.mdx +23 -0
  53. package/src/media/mdx/Image/flag.ru.mdx +23 -0
  54. package/src/media/mdx/Image/image.en.mdx +26 -21
  55. package/src/media/mdx/Image/image.ru.mdx +26 -22
  56. package/src/media/mdx/Image/wikiMdxImage.ts +6 -0
  57. package/src/media/mdx/Page/page.en.mdx +38 -0
  58. package/src/media/mdx/Page/page.ru.mdx +38 -0
  59. package/src/media/mdx/Page/wikiMdxPage.ts +19 -0
  60. package/src/media/mdx/Section/section.en.mdx +38 -0
  61. package/src/media/mdx/Section/section.ru.mdx +38 -0
  62. package/src/media/mdx/Section/wikiMdxSection.ts +19 -0
  63. package/src/media/mdx/expose/expose.clear.en.mdx +1 -1
  64. package/src/media/mdx/wikiMdx.ts +4 -0
  65. package/src/media/props/wiki.ts +2 -0
  66. package/src/media/props/wikiActionsInclude.ts +1 -1
  67. package/src/media/props/wikiAnchor.ts +3 -2
  68. package/src/media/props/wikiAria.ts +21 -0
  69. package/src/media/props/wikiArrowInclude.ts +1 -1
  70. package/src/media/props/wikiAttributes.ts +143 -0
  71. package/src/media/props/wikiBadge.ts +7 -4
  72. package/src/media/props/wikiBars.ts +7 -6
  73. package/src/media/props/wikiBarsInclude.ts +5 -3
  74. package/src/media/props/wikiButton.ts +8 -4
  75. package/src/media/props/wikiChip.ts +4 -2
  76. package/src/media/props/wikiDialog.ts +1 -2
  77. package/src/media/props/wikiField.ts +18 -10
  78. package/src/media/props/wikiFieldCounterInclude.ts +15 -6
  79. package/src/media/props/wikiForm.ts +32 -13
  80. package/src/media/props/wikiIcon.ts +16 -3
  81. package/src/media/props/wikiIconInclude.ts +12 -9
  82. package/src/media/props/wikiImage.ts +26 -1
  83. package/src/media/props/wikiInformation.ts +21 -17
  84. package/src/media/props/wikiList.ts +10 -4
  85. package/src/media/props/wikiListItem.ts +3 -2
  86. package/src/media/props/wikiMask.ts +2 -2
  87. package/src/media/props/wikiMaskInclude.ts +1 -1
  88. package/src/media/props/wikiMenu.ts +1 -1
  89. package/src/media/props/wikiMotionTransform.ts +7 -3
  90. package/src/media/props/wikiOption.ts +250 -7
  91. package/src/media/props/wikiProgress.ts +8 -5
  92. package/src/media/props/wikiScrollbar.ts +6 -6
  93. package/src/media/props/wikiSelect.ts +22 -22
  94. package/src/media/props/wikiStatus.ts +16 -27
  95. package/src/media/props/wikiStyle.ts +43 -275
  96. package/src/media/props/wikiTechnical.ts +77 -2
  97. package/src/media/props/wikiText.ts +110 -0
  98. package/src/media/props/wikiValue.ts +26 -91
  99. package/src/media/props/wikiWindow.ts +27 -17
  100. package/src/shims-mdx.d.ts +5 -0
  101. package/src/types/storybookTypes.ts +22 -0
@@ -0,0 +1,38 @@
1
+ ## Описание
2
+
3
+ Семантический компонент-контейнер, предназначенный для группировки связанного контента. По умолчанию использует тег `<section>`.
4
+
5
+ Section предоставляет возможности для отображения заголовков, меток, описаний, подписей и иконок. Основное назначение компонента — обозначение тематических разделов документа, что улучшает семантику и доступность страницы. Заголовок по умолчанию рендерится как `<h2>`.
6
+
7
+ **Основные возможности:**
8
+
9
+ - Семантическая группировка контента (тег `<section>`)
10
+ - Поддержка заголовков (по умолчанию `<h2>`), меток, описаний и подписей
11
+ - Поддержка иконок
12
+ - Настраиваемый макет и отступы
13
+ - Полная поддержка слотов для кастомизации контента
14
+
15
+ **Типичные сценарии использования:**
16
+
17
+ - Тематические разделы страницы
18
+ - Группировка контента в статьях
19
+ - Информационные блоки с заголовками второго уровня
20
+ - Секции лэндингов
21
+
22
+ ```html
23
+ <script setup>
24
+ import { ref } from 'vue'
25
+ </script>
26
+
27
+ <template>
28
+ <Section
29
+ headline="Заголовок секции"
30
+ label="Метка"
31
+ description="Описание содержимого данной секции"
32
+ >
33
+ <p>Основной контент секции...</p>
34
+ </Section>
35
+ </template>
36
+ ```
37
+
38
+ > Section — это семантически верный выбор для разделения страницы на крупные логические блоки.
@@ -0,0 +1,19 @@
1
+ import type { StorybookComponentsMdxItem } from '../../../types/storybookTypes'
2
+
3
+ import sectionEn from './section.en.mdx'
4
+ import sectionRu from './section.ru.mdx'
5
+
6
+ /**
7
+ * MDX files for Section component
8
+ *
9
+ * MDX файлы для компонента Section
10
+ */
11
+ export const wikiMdxSection: StorybookComponentsMdxItem = {
12
+ name: 'Section',
13
+ descriptions: {
14
+ section: {
15
+ en: sectionEn,
16
+ ru: sectionRu
17
+ }
18
+ }
19
+ }
@@ -1,3 +1,3 @@
1
1
  ### `clear`
2
2
 
3
- Clears the component value to default and focuses the input field.
3
+ Clears the component value by default and focuses the input field.
@@ -34,9 +34,11 @@ import { wikiMdxMask } from './Mask/wikiMdxMask'
34
34
  import { wikiMdxMenu } from './Menu/wikiMdxMenu'
35
35
  import { wikiMdxModal } from './Modal/wikiMdxModal'
36
36
  import { wikiMdxMotionTransform } from './MotionTransform/wikiMdxMotionTransform'
37
+ import { wikiMdxPage } from './Page/wikiMdxPage'
37
38
  import { wikiMdxProgress } from './Progress/wikiMdxProgress'
38
39
  import { wikiMdxRipple } from './Ripple/wikiMdxRipple'
39
40
  import { wikiMdxScrollbar } from './Scrollbar/wikiMdxScrollbar'
41
+ import { wikiMdxSection } from './Section/wikiMdxSection'
40
42
  import { wikiMdxSelect } from './Select/wikiMdxSelect'
41
43
  import { wikiMdxSelectValue } from './SelectValue/wikiMdxSelectValue'
42
44
  import { wikiMdxSkeleton } from './Skeleton/wikiMdxSkeleton'
@@ -79,9 +81,11 @@ export const wikiMdx: StorybookComponentsMdx = [
79
81
  wikiMdxMenu,
80
82
  wikiMdxModal,
81
83
  wikiMdxMotionTransform,
84
+ wikiMdxPage,
82
85
  wikiMdxProgress,
83
86
  wikiMdxRipple,
84
87
  wikiMdxScrollbar,
88
+ wikiMdxSection,
85
89
  wikiMdxSelect,
86
90
  wikiMdxSelectValue,
87
91
  wikiMdxSkeleton,
@@ -1,6 +1,7 @@
1
1
  import type { StorybookArgsToList } from '../../types/storybookTypes'
2
2
 
3
3
  import { wikiAria } from './wikiAria'
4
+ import { wikiAttributes } from './wikiAttributes'
4
5
  import { wikiForm } from './wikiForm'
5
6
  import { wikiStatus } from './wikiStatus'
6
7
  import { wikiInformation } from './wikiInformation'
@@ -45,6 +46,7 @@ import { wikiWindow } from './wikiWindow'
45
46
 
46
47
  export const wiki: StorybookArgsToList = {
47
48
  ...wikiAria,
49
+ ...wikiAttributes,
48
50
  ...wikiForm,
49
51
  ...wikiStatus,
50
52
  ...wikiInformation,
@@ -13,7 +13,7 @@ export const wikiActionsInclude: StorybookArgsToList = {
13
13
  actionsAttrs: {
14
14
  type: StorybookControl.object,
15
15
  options: {
16
- category: StorybookCategory.actions,
16
+ category: StorybookCategory.attributes,
17
17
  description: {
18
18
  en: 'Additional attributes for the Actions component container',
19
19
  ru: 'Дополнительные атрибуты для контейнера компонента Actions'
@@ -55,10 +55,11 @@ export const wikiAnchor: StorybookArgsToList = {
55
55
  options: {
56
56
  category: StorybookCategory.option,
57
57
  description: {
58
- en: 'Enables copy to clipboard functionality',
58
+ en: 'Enables copy-to-clipboard functionality',
59
59
  ru: 'Включает функцию копирования в буфер обмена'
60
60
  }
61
- }
61
+ },
62
+ isDemo: true
62
63
  },
63
64
  'anchor.name': {
64
65
  type: StorybookControl.text,
@@ -66,6 +66,16 @@ export const wikiAria: StorybookArgsToList = {
66
66
  }
67
67
  }
68
68
  },
69
+ ariaMultiselectable: {
70
+ type: StorybookControl.boolean,
71
+ options: {
72
+ category: StorybookCategory.technical,
73
+ description: {
74
+ en: 'Indicates that the user may select more than one item',
75
+ ru: 'Указывает, что пользователь может выбрать более одного элемента'
76
+ }
77
+ }
78
+ },
69
79
  polite: {
70
80
  type: StorybookControl.boolean,
71
81
  options: {
@@ -98,5 +108,16 @@ export const wikiAria: StorybookArgsToList = {
98
108
  ru: 'Определяет роль элемента item для доступности'
99
109
  }
100
110
  }
111
+ },
112
+ tabindex: {
113
+ type: StorybookControl.number,
114
+ options: {
115
+ category: StorybookCategory.aria,
116
+ type: 'number',
117
+ description: {
118
+ en: 'Tab order position for keyboard navigation',
119
+ ru: 'Позиция порядка табуляции для навигации с клавиатуры'
120
+ }
121
+ }
101
122
  }
102
123
  }
@@ -13,7 +13,7 @@ export const wikiArrowInclude: StorybookArgsToList = {
13
13
  arrowAttrs: {
14
14
  type: StorybookControl.object,
15
15
  options: {
16
- category: StorybookCategory.arrow,
16
+ category: StorybookCategory.attributes,
17
17
  description: {
18
18
  en: 'Additional attributes for the Arrow component',
19
19
  ru: 'Дополнительные атрибуты для компонента Arrow'
@@ -0,0 +1,143 @@
1
+ import {
2
+ type StorybookArgsToList,
3
+ StorybookCategory,
4
+ StorybookControl
5
+ } from '../../types/storybookTypes'
6
+
7
+ /**
8
+ * The wikiAttributes object contains descriptions of all attribute properties
9
+ *
10
+ * Объект wikiAttributes содержит описание всех свойств атрибутов
11
+ */
12
+ export const wikiAttributes: StorybookArgsToList = {
13
+ buttonAttrs: {
14
+ type: StorybookControl.object,
15
+ options: {
16
+ category: StorybookCategory.attributes,
17
+ description: {
18
+ en: 'Additional attributes for button elements',
19
+ ru: 'Дополнительные атрибуты для элементов кнопок'
20
+ }
21
+ }
22
+ },
23
+ buttonSecondaryAttrs: {
24
+ type: StorybookControl.object,
25
+ options: {
26
+ category: StorybookCategory.attributes,
27
+ description: {
28
+ en: 'Additional attributes for secondary button elements',
29
+ ru: 'Дополнительные атрибуты для элементов вторичных кнопок'
30
+ }
31
+ }
32
+ },
33
+ cellAttrs: {
34
+ type: StorybookControl.object,
35
+ options: {
36
+ category: StorybookCategory.attributes,
37
+ description: {
38
+ en: 'Additional attributes for the Cell component',
39
+ ru: 'Дополнительные атрибуты для компонента Cell'
40
+ }
41
+ }
42
+ },
43
+ chipAttrs: {
44
+ type: StorybookControl.object,
45
+ options: {
46
+ category: StorybookCategory.attributes,
47
+ description: {
48
+ en: 'Additional attributes for the Chip component',
49
+ ru: 'Дополнительные атрибуты для компонента Chip'
50
+ }
51
+ }
52
+ },
53
+ fieldAttrs: {
54
+ type: StorybookControl.object,
55
+ options: {
56
+ category: StorybookCategory.attributes,
57
+ description: {
58
+ en: 'Additional attributes for the Field component',
59
+ ru: 'Дополнительные атрибуты для компонента Field'
60
+ }
61
+ }
62
+ },
63
+ fieldLabelAttrs: {
64
+ type: StorybookControl.object,
65
+ options: {
66
+ category: StorybookCategory.attributes,
67
+ description: {
68
+ en: 'Additional attributes for the FieldLabel element',
69
+ ru: 'Дополнительные атрибуты для элемента FieldLabel'
70
+ }
71
+ }
72
+ },
73
+ fieldMessageAttrs: {
74
+ type: StorybookControl.object,
75
+ options: {
76
+ category: StorybookCategory.attributes,
77
+ description: {
78
+ en: 'Additional attributes for the FieldMessage element',
79
+ ru: 'Дополнительные атрибуты для элемента FieldMessage'
80
+ }
81
+ }
82
+ },
83
+ inputAttrs: {
84
+ type: StorybookControl.object,
85
+ options: {
86
+ category: StorybookCategory.attributes,
87
+ description: {
88
+ en: 'Additional attributes for the native input element',
89
+ ru: 'Дополнительные атрибуты для нативного элемента input'
90
+ }
91
+ }
92
+ },
93
+ menuAttrs: {
94
+ type: StorybookControl.object,
95
+ options: {
96
+ category: StorybookCategory.attributes,
97
+ description: {
98
+ en: 'Additional attributes for the Menu root container',
99
+ ru: 'Дополнительные атрибуты для корневого контейнера Menu'
100
+ }
101
+ }
102
+ },
103
+ motionTransformAttrs: {
104
+ type: StorybookControl.object,
105
+ options: {
106
+ category: StorybookCategory.attributes,
107
+ description: {
108
+ en: 'Additional attributes for the MotionTransform component',
109
+ ru: 'Дополнительные атрибуты для компонента MotionTransform'
110
+ }
111
+ }
112
+ },
113
+ scrollbarAttrs: {
114
+ type: StorybookControl.object,
115
+ options: {
116
+ category: StorybookCategory.attributes,
117
+ description: {
118
+ en: 'Sets attributes for the internal scrollbar',
119
+ ru: 'Задает атрибуты встроенного скроллбара'
120
+ }
121
+ }
122
+ },
123
+ tooltipAttrs: {
124
+ type: StorybookControl.object,
125
+ options: {
126
+ category: StorybookCategory.attributes,
127
+ description: {
128
+ en: 'Additional attributes for the Tooltip component',
129
+ ru: 'Дополнительные атрибуты для компонента Tooltip'
130
+ }
131
+ }
132
+ },
133
+ windowAttrs: {
134
+ type: StorybookControl.object,
135
+ options: {
136
+ category: StorybookCategory.attributes,
137
+ description: {
138
+ en: 'Additional attributes for the Window root container',
139
+ ru: 'Дополнительные атрибуты для корневого контейнера Window'
140
+ }
141
+ }
142
+ }
143
+ }
@@ -16,10 +16,11 @@ export const wikiBadge: StorybookArgsToList = {
16
16
  category: StorybookCategory.style,
17
17
 
18
18
  description: {
19
- en: 'Outline variant of the badge with transparent background and border',
19
+ en: 'Outline variant of the badge with a transparent background and border',
20
20
  ru: 'Контурный вариант бейджа с прозрачным фоном и границей'
21
21
  }
22
- }
22
+ },
23
+ isDemo: true
23
24
  },
24
25
  'badge.primary': {
25
26
  type: StorybookControl.boolean,
@@ -29,7 +30,8 @@ export const wikiBadge: StorybookArgsToList = {
29
30
  en: 'Primary color variant for the badge with high contrast and emphasis',
30
31
  ru: 'Основной цветовой вариант бейджа с высоким контрастом и акцентом'
31
32
  }
32
- }
33
+ },
34
+ isDemo: true
33
35
  },
34
36
  'badge.secondary': {
35
37
  type: StorybookControl.boolean,
@@ -40,6 +42,7 @@ export const wikiBadge: StorybookArgsToList = {
40
42
  en: 'Secondary color variant for the badge with moderate contrast',
41
43
  ru: 'Второстепенный цветовой вариант бейджа с умеренным контрастом'
42
44
  }
43
- }
45
+ },
46
+ isDemo: true
44
47
  }
45
48
  }
@@ -18,7 +18,8 @@ export const wikiBars: StorybookArgsToList = {
18
18
  en: 'Enables action mode',
19
19
  ru: 'Включает режим действия'
20
20
  }
21
- }
21
+ },
22
+ isDemo: true
22
23
  },
23
24
  'bars.actionBars': {
24
25
  type: StorybookControl.object,
@@ -38,7 +39,7 @@ export const wikiBars: StorybookArgsToList = {
38
39
  'bars.actionDescription': {
39
40
  type: StorybookControl.text,
40
41
  options: {
41
- category: StorybookCategory.value,
42
+ category: StorybookCategory.information,
42
43
  description: {
43
44
  en: 'Description for the action',
44
45
  ru: 'Описание для действия'
@@ -49,7 +50,7 @@ export const wikiBars: StorybookArgsToList = {
49
50
  'bars.actionLabel': {
50
51
  type: StorybookControl.text,
51
52
  options: {
52
- category: StorybookCategory.value,
53
+ category: StorybookCategory.information,
53
54
  description: {
54
55
  en: 'Label for the action',
55
56
  ru: 'Метка для действия'
@@ -70,7 +71,7 @@ export const wikiBars: StorybookArgsToList = {
70
71
  'bars.backActionHide': {
71
72
  type: StorybookControl.boolean,
72
73
  options: {
73
- category: StorybookCategory.style,
74
+ category: StorybookCategory.option,
74
75
  description: {
75
76
  en: 'Hide back button in action',
76
77
  ru: 'Скрыть кнопку назад в action'
@@ -80,7 +81,7 @@ export const wikiBars: StorybookArgsToList = {
80
81
  'bars.backHide': {
81
82
  type: StorybookControl.boolean,
82
83
  options: {
83
- category: StorybookCategory.style,
84
+ category: StorybookCategory.option,
84
85
  description: {
85
86
  en: 'Hides the back button',
86
87
  ru: 'Скрывает кнопку назад'
@@ -107,7 +108,7 @@ export const wikiBars: StorybookArgsToList = {
107
108
  options: {
108
109
  category: StorybookCategory.technical,
109
110
  description: {
110
- en: 'Two-way binding for action state (v-model:action)',
111
+ en: 'Two-way binding for the action state (v-model:action)',
111
112
  ru: 'Двусторонняя привязка состояния action (v-model:action)'
112
113
  }
113
114
  }
@@ -13,7 +13,7 @@ export const wikiBarsInclude: StorybookArgsToList = {
13
13
  barsAttrs: {
14
14
  type: StorybookControl.object,
15
15
  options: {
16
- category: StorybookCategory.bars,
16
+ category: StorybookCategory.attributes,
17
17
  description: {
18
18
  en: 'Additional attributes for the bars (header toolbar) container',
19
19
  ru: 'Дополнительные атрибуты для контейнера бара (верхней панели)'
@@ -38,7 +38,8 @@ export const wikiBarsInclude: StorybookArgsToList = {
38
38
  description: {
39
39
  en: 'Description text displayed in the bars area (subtitle/help)',
40
40
  ru: 'Текст описания, отображаемый в области бара (подзаголовок/подсказка)'
41
- }
41
+ },
42
+ value: 'Welcome to the application!'
42
43
  }
43
44
  },
44
45
  barsHide: {
@@ -59,7 +60,8 @@ export const wikiBarsInclude: StorybookArgsToList = {
59
60
  description: {
60
61
  en: 'Label or numeric indicator shown in the bars header',
61
62
  ru: 'Метка или числовой индикатор, отображаемый в заголовке бара'
62
- }
63
+ },
64
+ value: 'Hello friend'
63
65
  }
64
66
  },
65
67
  barsList: {
@@ -19,7 +19,8 @@ export const wikiButton: StorybookArgsToList = {
19
19
  en: 'Outline button style',
20
20
  ru: 'Стиль кнопки с обводкой'
21
21
  }
22
- }
22
+ },
23
+ isDemo: true
23
24
  },
24
25
  'button.primary': {
25
26
  type: StorybookControl.boolean,
@@ -30,7 +31,8 @@ export const wikiButton: StorybookArgsToList = {
30
31
  en: 'Primary button style',
31
32
  ru: 'Основной стиль кнопки'
32
33
  }
33
- }
34
+ },
35
+ isDemo: true
34
36
  },
35
37
  'button.secondary': {
36
38
  type: StorybookControl.boolean,
@@ -41,7 +43,8 @@ export const wikiButton: StorybookArgsToList = {
41
43
  en: 'Secondary button style',
42
44
  ru: 'Вторичный стиль кнопки'
43
45
  }
44
- }
46
+ },
47
+ isDemo: true
45
48
  },
46
49
  'button.text': {
47
50
  type: StorybookControl.boolean,
@@ -52,6 +55,7 @@ export const wikiButton: StorybookArgsToList = {
52
55
  en: 'Text button style',
53
56
  ru: 'Текстовый стиль кнопки'
54
57
  }
55
- }
58
+ },
59
+ isDemo: true
56
60
  }
57
61
  }
@@ -19,7 +19,8 @@ export const wikiChip: StorybookArgsToList = {
19
19
  en: 'Alternative visual appearance style',
20
20
  ru: 'Альтернативный стиль внешнего вида'
21
21
  }
22
- }
22
+ },
23
+ isDemo: true
23
24
  },
24
25
  'chip.input': {
25
26
  type: StorybookControl.boolean,
@@ -30,6 +31,7 @@ export const wikiChip: StorybookArgsToList = {
30
31
  en: 'Input-style visual appearance',
31
32
  ru: 'Внешний вид в стиле поля ввода'
32
33
  }
33
- }
34
+ },
35
+ isDemo: true
34
36
  }
35
37
  }
@@ -23,8 +23,7 @@ export const wikiDialog: StorybookArgsToList = {
23
23
  'dialog.clickOkAndClose': {
24
24
  type: StorybookControl.boolean,
25
25
  options: {
26
- category: StorybookCategory.style,
27
-
26
+ category: StorybookCategory.option,
28
27
  description: {
29
28
  en: 'Automatically closes the dialog when the OK button is clicked',
30
29
  ru: 'Автоматически закрывает диалог при клике на кнопку OK'
@@ -13,22 +13,24 @@ export const wikiField: StorybookArgsToList = {
13
13
  'field.arrowCarousel': {
14
14
  type: StorybookControl.boolean,
15
15
  options: {
16
- category: StorybookCategory.style,
16
+ category: StorybookCategory.option,
17
17
  description: {
18
18
  en: 'Shows horizontal navigation arrows (carousel left/right)',
19
19
  ru: 'Отображает горизонтальные стрелки навигации (карусель влево/вправо)'
20
20
  }
21
- }
21
+ },
22
+ isDemo: true
22
23
  },
23
24
  'field.arrowStepper': {
24
25
  type: StorybookControl.boolean,
25
26
  options: {
26
- category: StorybookCategory.style,
27
+ category: StorybookCategory.option,
27
28
  description: {
28
29
  en: 'Shows numeric step controls (+ / -) for increment / decrement',
29
30
  ru: 'Отображает числовые степперы (+ / -) для инкремента / декремента'
30
31
  }
31
- }
32
+ },
33
+ isDemo: true
32
34
  },
33
35
  'field.basic': {
34
36
  type: StorybookControl.boolean,
@@ -38,7 +40,8 @@ export const wikiField: StorybookArgsToList = {
38
40
  en: 'Basic variant for Field without fill and border',
39
41
  ru: 'Базовый вариант Field без заливки и рамки'
40
42
  }
41
- }
43
+ },
44
+ isDemo: true
42
45
  },
43
46
  'field.boxed': {
44
47
  type: StorybookControl.boolean,
@@ -48,7 +51,8 @@ export const wikiField: StorybookArgsToList = {
48
51
  en: 'Boxed variant for Field with both fill and border',
49
52
  ru: 'Вариант Field с заливкой и рамкой (boxed)'
50
53
  }
51
- }
54
+ },
55
+ isDemo: true
52
56
  },
53
57
  'field.classic': {
54
58
  type: StorybookControl.boolean,
@@ -58,7 +62,8 @@ export const wikiField: StorybookArgsToList = {
58
62
  en: 'Classic variant for Field with standard border and no fill',
59
63
  ru: 'Классический вариант Field со стандартной рамкой без заливки'
60
64
  }
61
- }
65
+ },
66
+ isDemo: true
62
67
  },
63
68
  'field.disabledNext': {
64
69
  type: StorybookControl.boolean,
@@ -88,7 +93,8 @@ export const wikiField: StorybookArgsToList = {
88
93
  en: 'Filled variant for Field with background fill',
89
94
  ru: 'Залитый вариант Field с фоновым заполнением'
90
95
  }
91
- }
96
+ },
97
+ isDemo: true
92
98
  },
93
99
  'field.outlined': {
94
100
  type: StorybookControl.boolean,
@@ -98,7 +104,8 @@ export const wikiField: StorybookArgsToList = {
98
104
  en: 'Outline variant for Field with bordered style',
99
105
  ru: 'Контурный вариант Field с акцентной рамкой'
100
106
  }
101
- }
107
+ },
108
+ isDemo: true
102
109
  },
103
110
  'field.tonal': {
104
111
  type: StorybookControl.boolean,
@@ -108,6 +115,7 @@ export const wikiField: StorybookArgsToList = {
108
115
  en: 'Tonal variant for Field with toned background and softer contrast',
109
116
  ru: 'Тональный вариант Field с приглушенной заливкой и мягким контрастом'
110
117
  }
111
- }
118
+ },
119
+ isDemo: true
112
120
  }
113
121
  }
@@ -26,17 +26,17 @@ export const wikiFieldCounterInclude: StorybookArgsToList = {
26
26
  type: StorybookControl.boolean,
27
27
  options: {
28
28
  category: StorybookCategory.counter,
29
-
30
29
  description: {
31
- en: 'Shows the counter element',
30
+ en: 'Shows the counter-element',
32
31
  ru: 'Показывает элемент счетчика'
33
32
  }
34
- }
33
+ },
34
+ isDemo: true
35
35
  },
36
36
  counterId: {
37
37
  type: StorybookControl.string,
38
38
  options: {
39
- category: StorybookCategory.counter,
39
+ category: StorybookCategory.technical,
40
40
  type: 'string',
41
41
  description: {
42
42
  en: 'Unique identifier for the counter element',
@@ -50,9 +50,14 @@ export const wikiFieldCounterInclude: StorybookArgsToList = {
50
50
  category: StorybookCategory.counter,
51
51
  type: 'string',
52
52
  description: {
53
- en: 'Custom display template for the counter component',
53
+ en: 'Custom display template for the counter-component',
54
54
  ru: 'Пользовательский шаблон отображения для компонента счетчика'
55
55
  }
56
+ },
57
+ isDemo: true,
58
+ demo: 'counter: [c], max: [m]',
59
+ demoOptions: {
60
+ counterShow: true
56
61
  }
57
62
  },
58
63
  counterTop: {
@@ -63,12 +68,16 @@ export const wikiFieldCounterInclude: StorybookArgsToList = {
63
68
  en: 'Displays the counter above the field',
64
69
  ru: 'Отображает счетчик над полем'
65
70
  }
71
+ },
72
+ isDemo: true,
73
+ demoOptions: {
74
+ counterShow: true
66
75
  }
67
76
  },
68
77
  fieldCounterAttrs: {
69
78
  type: StorybookControl.object,
70
79
  options: {
71
- category: StorybookCategory.counter,
80
+ category: StorybookCategory.attributes,
72
81
  description: {
73
82
  en: 'Additional attributes for the field counter component',
74
83
  ru: 'Дополнительные атрибуты для компонента счетчика поля'