@dxtmisha/wiki 0.24.3 → 0.25.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 (230) hide show
  1. package/package.json +7 -7
  2. package/src/classes/WikiStorybookItem.ts +24 -0
  3. package/src/media/descriptions/wikiDescriptions.ts +28 -0
  4. package/src/media/descriptions/wikiDescriptionsAccordion.ts +158 -0
  5. package/src/media/descriptions/wikiDescriptionsActionSheet.ts +211 -0
  6. package/src/media/descriptions/wikiDescriptionsActions.ts +161 -0
  7. package/src/media/descriptions/wikiDescriptionsAnchor.ts +42 -0
  8. package/src/media/descriptions/wikiDescriptionsArrow.ts +181 -0
  9. package/src/media/descriptions/wikiDescriptionsBlock.ts +97 -0
  10. package/src/media/descriptions/wikiDescriptionsButton.ts +0 -1
  11. package/src/media/descriptions/wikiDescriptionsCell.ts +2 -1
  12. package/src/media/descriptions/wikiDescriptionsChipGroup.ts +168 -0
  13. package/src/media/descriptions/wikiDescriptionsDialog.ts +182 -0
  14. package/src/media/descriptions/wikiDescriptionsField.ts +2 -0
  15. package/src/media/descriptions/wikiDescriptionsImage.ts +41 -6
  16. package/src/media/descriptions/wikiDescriptionsInput.ts +257 -0
  17. package/src/media/descriptions/wikiDescriptionsMenu.ts +123 -0
  18. package/src/media/descriptions/wikiDescriptionsModal.ts +145 -0
  19. package/src/media/descriptions/wikiDescriptionsMotionTransform.ts +2 -6
  20. package/src/media/descriptions/wikiDescriptionsSelect.ts +209 -0
  21. package/src/media/descriptions/wikiDescriptionsSelectValue.ts +78 -0
  22. package/src/media/descriptions/wikiDescriptionsTextareaAutosize.ts +50 -0
  23. package/src/media/descriptions/wikiDescriptionsTooltip.ts +89 -0
  24. package/src/media/functional/en/conversions.mdx +67 -0
  25. package/src/media/functional/en/dataUtils.mdx +25 -0
  26. package/src/media/functional/en/datetimeRef.mdx +1 -1
  27. package/src/media/functional/en/eventRef.mdx +1 -1
  28. package/src/media/functional/en/executionUtils.mdx +58 -0
  29. package/src/media/functional/en/geoFlagRef.mdx +1 -1
  30. package/src/media/functional/en/geoIntlRef.mdx +1 -1
  31. package/src/media/functional/en/geoRef.mdx +2 -2
  32. package/src/media/functional/en/meta.mdx +1206 -0
  33. package/src/media/functional/en/metaManager.mdx +376 -0
  34. package/src/media/functional/en/metaOg.mdx +694 -0
  35. package/src/media/functional/en/metaTwitter.mdx +853 -0
  36. package/src/media/functional/en/reactive.mdx +40 -0
  37. package/src/media/functional/en/refTypes.mdx +1 -1
  38. package/src/media/functional/en/useApiRef.mdx +5 -5
  39. package/src/media/functional/en/useMeta.mdx +431 -0
  40. package/src/media/functional/en/validationUtils.mdx +11 -0
  41. package/src/media/functional/ru/conversions.mdx +67 -0
  42. package/src/media/functional/ru/dataUtils.mdx +25 -0
  43. package/src/media/functional/ru/datetimeRef.mdx +2 -2
  44. package/src/media/functional/ru/eventRef.mdx +1 -1
  45. package/src/media/functional/ru/executionUtils.mdx +58 -0
  46. package/src/media/functional/ru/geoFlagRef.mdx +1 -1
  47. package/src/media/functional/ru/geoIntl.mdx +2 -2
  48. package/src/media/functional/ru/geoIntlRef.mdx +1 -1
  49. package/src/media/functional/ru/geoRef.mdx +2 -2
  50. package/src/media/functional/ru/listTypes.mdx +1 -1
  51. package/src/media/functional/ru/meta.mdx +1330 -0
  52. package/src/media/functional/ru/metaManager.mdx +376 -0
  53. package/src/media/functional/ru/metaOg.mdx +694 -0
  54. package/src/media/functional/ru/metaTwitter.mdx +853 -0
  55. package/src/media/functional/ru/reactive.mdx +40 -0
  56. package/src/media/functional/ru/refTypes.mdx +2 -2
  57. package/src/media/functional/ru/useApiRef.mdx +5 -5
  58. package/src/media/functional/ru/useMeta.mdx +431 -0
  59. package/src/media/functional/ru/validationUtils.mdx +11 -0
  60. package/src/media/mdx/Accordion/accordion.en.mdx +59 -0
  61. package/src/media/mdx/Accordion/accordion.ru.mdx +59 -0
  62. package/src/media/mdx/Accordion/slots.en.mdx +6 -0
  63. package/src/media/mdx/Accordion/slots.ru.mdx +6 -0
  64. package/src/media/mdx/Accordion/wikiMdxAccordion.ts +25 -0
  65. package/src/media/mdx/ActionSheet/actionSheet.en.mdx +61 -0
  66. package/src/media/mdx/ActionSheet/actionSheet.ru.mdx +61 -0
  67. package/src/media/mdx/ActionSheet/touchClose.en.mdx +21 -0
  68. package/src/media/mdx/ActionSheet/touchClose.ru.mdx +21 -0
  69. package/src/media/mdx/ActionSheet/wikiMdxActionSheet.ts +25 -0
  70. package/src/media/mdx/Actions/actions.en.mdx +48 -0
  71. package/src/media/mdx/Actions/actions.ru.mdx +48 -0
  72. package/src/media/mdx/Actions/flexible.en.mdx +19 -0
  73. package/src/media/mdx/Actions/flexible.ru.mdx +19 -0
  74. package/src/media/mdx/Actions/list.en.mdx +50 -0
  75. package/src/media/mdx/Actions/list.ru.mdx +50 -0
  76. package/src/media/mdx/Actions/wikiMdxActions.ts +31 -0
  77. package/src/media/mdx/Anchor/anchor.en.mdx +34 -0
  78. package/src/media/mdx/Anchor/anchor.ru.mdx +34 -0
  79. package/src/media/mdx/Anchor/expose.go.en.mdx +6 -0
  80. package/src/media/mdx/Anchor/expose.go.ru.mdx +6 -0
  81. package/src/media/mdx/Anchor/hide.en.mdx +28 -0
  82. package/src/media/mdx/Anchor/hide.ru.mdx +28 -0
  83. package/src/media/mdx/Anchor/isCopy.en.mdx +23 -0
  84. package/src/media/mdx/Anchor/isCopy.ru.mdx +23 -0
  85. package/src/media/mdx/Anchor/scroll.en.mdx +34 -0
  86. package/src/media/mdx/Anchor/scroll.ru.mdx +35 -0
  87. package/src/media/mdx/Anchor/wikiMdxAnchor.ts +43 -0
  88. package/src/media/mdx/Arrow/arrow.en.mdx +33 -0
  89. package/src/media/mdx/Arrow/arrow.ru.mdx +33 -0
  90. package/src/media/mdx/Arrow/wikiMdxArrow.ts +19 -0
  91. package/src/media/mdx/Block/block.en.mdx +42 -0
  92. package/src/media/mdx/Block/block.ru.mdx +42 -0
  93. package/src/media/mdx/Block/wikiMdxBlock.ts +19 -0
  94. package/src/media/mdx/ChipGroup/chipGroup.en.mdx +51 -0
  95. package/src/media/mdx/ChipGroup/chipGroup.ru.mdx +51 -0
  96. package/src/media/mdx/ChipGroup/selected.en.mdx +50 -0
  97. package/src/media/mdx/ChipGroup/selected.ru.mdx +50 -0
  98. package/src/media/mdx/ChipGroup/wikiMdxChipGroup.ts +25 -0
  99. package/src/media/mdx/Dialog/buttons.en.mdx +45 -0
  100. package/src/media/mdx/Dialog/buttons.ru.mdx +45 -0
  101. package/src/media/mdx/Dialog/dialog.en.mdx +66 -0
  102. package/src/media/mdx/Dialog/dialog.ru.mdx +65 -0
  103. package/src/media/mdx/Dialog/events.en.mdx +63 -0
  104. package/src/media/mdx/Dialog/events.ru.mdx +63 -0
  105. package/src/media/mdx/Dialog/states.en.mdx +58 -0
  106. package/src/media/mdx/Dialog/states.ru.mdx +57 -0
  107. package/src/media/mdx/Dialog/wikiMdxDialog.ts +37 -0
  108. package/src/media/mdx/Field/arrows.en.mdx +22 -6
  109. package/src/media/mdx/Field/arrows.ru.mdx +22 -6
  110. package/src/media/mdx/Field/slots.en.mdx +0 -13
  111. package/src/media/mdx/Field/slots.ru.mdx +0 -13
  112. package/src/media/mdx/Image/img-tag.en.mdx +105 -0
  113. package/src/media/mdx/Image/img-tag.ru.mdx +105 -0
  114. package/src/media/mdx/Image/wikiMdxImage.ts +6 -0
  115. package/src/media/mdx/Input/currency.en.mdx +38 -0
  116. package/src/media/mdx/Input/currency.ru.mdx +38 -0
  117. package/src/media/mdx/Input/date.en.mdx +53 -0
  118. package/src/media/mdx/Input/date.ru.mdx +53 -0
  119. package/src/media/mdx/Input/input.en.mdx +143 -0
  120. package/src/media/mdx/Input/input.ru.mdx +71 -0
  121. package/src/media/mdx/Input/mask.en.mdx +30 -0
  122. package/src/media/mdx/Input/mask.ru.mdx +30 -0
  123. package/src/media/mdx/Input/number.en.mdx +41 -0
  124. package/src/media/mdx/Input/number.ru.mdx +41 -0
  125. package/src/media/mdx/Input/type.en.mdx +26 -0
  126. package/src/media/mdx/Input/type.ru.mdx +26 -0
  127. package/src/media/mdx/Input/wikiMdxInput.ts +49 -0
  128. package/src/media/mdx/Menu/event.updateValue.en.mdx +29 -0
  129. package/src/media/mdx/Menu/event.updateValue.ru.mdx +30 -0
  130. package/src/media/mdx/Menu/expose.navigation.en.mdx +12 -0
  131. package/src/media/mdx/Menu/expose.navigation.ru.mdx +12 -0
  132. package/src/media/mdx/Menu/navigation.en.mdx +56 -0
  133. package/src/media/mdx/Menu/navigation.ru.mdx +56 -0
  134. package/src/media/mdx/Menu/slots.control.en.mdx +65 -0
  135. package/src/media/mdx/Menu/slots.control.ru.mdx +65 -0
  136. package/src/media/mdx/Menu/slots.en.mdx +2 -24
  137. package/src/media/mdx/Menu/slots.ru.mdx +2 -24
  138. package/src/media/mdx/Menu/wikiMdxMenu.ts +27 -3
  139. package/src/media/mdx/Modal/differences.en.mdx +130 -0
  140. package/src/media/mdx/Modal/differences.ru.mdx +65 -0
  141. package/src/media/mdx/Modal/modal.en.mdx +63 -0
  142. package/src/media/mdx/Modal/modal.ru.mdx +63 -0
  143. package/src/media/mdx/Modal/wikiMdxModal.ts +25 -0
  144. package/src/media/mdx/MotionTransform/expose.motionTransformElement.en.mdx +13 -0
  145. package/src/media/mdx/MotionTransform/expose.motionTransformElement.ru.mdx +14 -0
  146. package/src/media/mdx/MotionTransform/wikiMdxMotionTransform.ts +6 -0
  147. package/src/media/mdx/Select/select.en.mdx +69 -0
  148. package/src/media/mdx/Select/select.ru.mdx +69 -0
  149. package/src/media/mdx/Select/wikiMdxSelect.ts +19 -0
  150. package/src/media/mdx/SelectValue/selectValue.en.mdx +64 -0
  151. package/src/media/mdx/SelectValue/selectValue.ru.mdx +64 -0
  152. package/src/media/mdx/SelectValue/wikiMdxSelectValue.ts +19 -0
  153. package/src/media/mdx/TextareaAutosize/textarea-autosize.en.mdx +65 -0
  154. package/src/media/mdx/TextareaAutosize/textarea-autosize.ru.mdx +65 -0
  155. package/src/media/mdx/TextareaAutosize/wikiMdxTextareaAutosize.ts +19 -0
  156. package/src/media/mdx/Tooltip/event.tooltip.en.mdx +7 -0
  157. package/src/media/mdx/Tooltip/event.tooltip.ru.mdx +8 -0
  158. package/src/media/mdx/Tooltip/slot.control.en.mdx +14 -0
  159. package/src/media/mdx/Tooltip/slot.control.ru.mdx +14 -0
  160. package/src/media/mdx/Tooltip/tooltip.en.mdx +34 -0
  161. package/src/media/mdx/Tooltip/tooltip.ru.mdx +34 -0
  162. package/src/media/mdx/Tooltip/wikiMdxTooltip.ts +31 -0
  163. package/src/media/mdx/Window/classes.ru.mdx +1 -1
  164. package/src/media/mdx/event/events.actions.en.mdx +44 -0
  165. package/src/media/mdx/event/events.actions.ru.mdx +44 -0
  166. package/src/media/mdx/event/events.inputStandard.en.mdx +6 -0
  167. package/src/media/mdx/event/events.inputStandard.ru.mdx +6 -0
  168. package/src/media/mdx/event/wikiMdxEvent.ts +20 -8
  169. package/src/media/mdx/expose/expose.descriptionId.en.mdx +6 -0
  170. package/src/media/mdx/expose/expose.descriptionId.ru.mdx +6 -0
  171. package/src/media/mdx/expose/expose.id.en.mdx +6 -0
  172. package/src/media/mdx/expose/expose.id.ru.mdx +6 -0
  173. package/src/media/mdx/expose/expose.labelId.en.mdx +6 -0
  174. package/src/media/mdx/expose/expose.labelId.ru.mdx +6 -0
  175. package/src/media/mdx/expose/wikiMdxExpose.ts +18 -0
  176. package/src/media/mdx/slot/body.en.mdx +6 -0
  177. package/src/media/mdx/slot/body.ru.mdx +6 -0
  178. package/src/media/mdx/slot/headline.en.mdx +7 -0
  179. package/src/media/mdx/slot/headline.ru.mdx +6 -0
  180. package/src/media/mdx/slot/leading.en.mdx +7 -0
  181. package/src/media/mdx/slot/leading.ru.mdx +7 -0
  182. package/src/media/mdx/slot/secondary.en.mdx +5 -0
  183. package/src/media/mdx/slot/secondary.ru.mdx +5 -0
  184. package/src/media/mdx/slot/trailing.en.mdx +7 -0
  185. package/src/media/mdx/slot/trailing.ru.mdx +7 -0
  186. package/src/media/mdx/slot/wikiMdxSlot.ts +30 -0
  187. package/src/media/mdx/style/isSkeleton.en.mdx +2 -2
  188. package/src/media/mdx/style/isSkeleton.ru.mdx +2 -2
  189. package/src/media/mdx/value/v-model-selected.en.mdx +28 -0
  190. package/src/media/mdx/value/v-model-selected.ru.mdx +28 -0
  191. package/src/media/mdx/value/v-model.en.mdx +26 -0
  192. package/src/media/mdx/value/v-model.ru.mdx +26 -0
  193. package/src/media/mdx/value/wikiMdxValue.ts +24 -3
  194. package/src/media/mdx/wikiMdx.ts +29 -1
  195. package/src/media/props/wiki.ts +42 -0
  196. package/src/media/props/wikiActions.ts +43 -0
  197. package/src/media/props/wikiActionsInclude.ts +62 -0
  198. package/src/media/props/wikiAnchor.ts +84 -0
  199. package/src/media/props/wikiAria.ts +102 -0
  200. package/src/media/props/wikiArrow.ts +24 -0
  201. package/src/media/props/wikiArrowInclude.ts +45 -0
  202. package/src/media/props/wikiBarsInclude.ts +80 -0
  203. package/src/media/props/wikiChipGroup.ts +39 -0
  204. package/src/media/props/wikiDialog.ts +34 -0
  205. package/src/media/props/wikiField.ts +0 -21
  206. package/src/media/props/wikiFieldCounterInclude.ts +78 -0
  207. package/src/media/props/wikiForm.ts +248 -0
  208. package/src/media/props/wikiHook.ts +20 -0
  209. package/src/media/props/wikiIcon.ts +3 -3
  210. package/src/media/props/wikiIconInclude.ts +319 -0
  211. package/src/media/props/wikiImage.ts +71 -19
  212. package/src/media/props/wikiInformation.ts +160 -0
  213. package/src/media/props/wikiInput.ts +34 -0
  214. package/src/media/props/wikiListItem.ts +20 -0
  215. package/src/media/props/wikiMask.ts +0 -10
  216. package/src/media/props/wikiMaskInclude.ts +54 -0
  217. package/src/media/props/wikiMenu.ts +0 -10
  218. package/src/media/props/wikiMotionTransform.ts +0 -10
  219. package/src/media/props/wikiOption.ts +113 -0
  220. package/src/media/props/wikiSelect.ts +68 -0
  221. package/src/media/props/wikiSelectValue.ts +30 -0
  222. package/src/media/props/wikiStatus.ts +29 -41
  223. package/src/media/props/wikiStyle.ts +154 -243
  224. package/src/media/props/wikiTechnical.ts +65 -0
  225. package/src/media/props/wikiText.ts +57 -0
  226. package/src/media/props/wikiTooltip.ts +53 -0
  227. package/src/media/props/wikiValue.ts +14 -203
  228. package/src/media/props/wikiWindow.ts +0 -31
  229. package/src/styles/storybookStyle.scss +3 -1
  230. package/src/types/storybookTypes.ts +26 -4
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/wiki",
3
3
  "private": false,
4
- "version": "0.24.3",
4
+ "version": "0.25.1",
5
5
  "type": "module",
6
6
  "description": "Wiki documentation and storybook utilities for DXT UI design system",
7
7
  "keywords": [
@@ -46,12 +46,12 @@
46
46
  "node": ">=18.0.0"
47
47
  },
48
48
  "peerDependencies": {
49
- "@dxtmisha/functional": ">=1.0.0",
50
- "@dxtmisha/media": ">=0.3.0",
51
- "@storybook/addon-docs": ">=9.0.0",
52
- "@mdx-js/react": ">=2.0.0",
53
- "react": ">=17.0.0",
54
- "vue": ">=3.0.0"
49
+ "@dxtmisha/functional": "*",
50
+ "@dxtmisha/media": "*",
51
+ "@storybook/addon-docs": "*",
52
+ "@mdx-js/react": "*",
53
+ "react": "*",
54
+ "vue": "*"
55
55
  },
56
56
  "dependencies": {}
57
57
  }
@@ -64,8 +64,32 @@ export class WikiStorybookItem {
64
64
  return 3000
65
65
  case StorybookCategory.value:
66
66
  return 5000
67
+ case StorybookCategory.information:
68
+ return 5100
69
+ case StorybookCategory.actions:
70
+ return 5200
71
+ case StorybookCategory.icon:
72
+ return 5200
73
+ case StorybookCategory.bars:
74
+ return 5200
75
+ case StorybookCategory.counter:
76
+ return 5200
77
+ case StorybookCategory.mask:
78
+ return 5200
79
+ case StorybookCategory.form:
80
+ return 6000
81
+ case StorybookCategory.arrow:
82
+ return 6900
83
+ case StorybookCategory.hook:
84
+ return 7000
67
85
  case StorybookCategory.style:
68
86
  return 9000
87
+ case StorybookCategory.option:
88
+ return 9100
89
+ case StorybookCategory.text:
90
+ return 9800
91
+ case StorybookCategory.aria:
92
+ return 9900
69
93
  default:
70
94
  return 9999
71
95
  }
@@ -1,40 +1,63 @@
1
1
  import type { StorybookComponentsDescription } from '../../types/storybookTypes'
2
2
 
3
+ import { wikiDescriptionsAccordion } from './wikiDescriptionsAccordion'
4
+ import { wikiDescriptionsActions } from './wikiDescriptionsActions'
5
+ import { wikiDescriptionsActionSheet } from './wikiDescriptionsActionSheet'
6
+ import { wikiDescriptionsAnchor } from './wikiDescriptionsAnchor'
7
+ import { wikiDescriptionsArrow } from './wikiDescriptionsArrow'
3
8
  import { wikiDescriptionsBadge } from './wikiDescriptionsBadge'
4
9
  import { wikiDescriptionsBars } from './wikiDescriptionsBars'
10
+ import { wikiDescriptionsBlock } from './wikiDescriptionsBlock'
5
11
  import { wikiDescriptionsButton } from './wikiDescriptionsButton'
6
12
  import { wikiDescriptionsCell } from './wikiDescriptionsCell'
7
13
  import { wikiDescriptionsChip } from './wikiDescriptionsChip'
14
+ import { wikiDescriptionsChipGroup } from './wikiDescriptionsChipGroup'
15
+ import { wikiDescriptionsDialog } from './wikiDescriptionsDialog'
8
16
  import { wikiDescriptionsField } from './wikiDescriptionsField'
9
17
  import { wikiDescriptionsFieldCounter } from './wikiDescriptionsFieldCounter'
10
18
  import { wikiDescriptionsFieldLabel } from './wikiDescriptionsFieldLabel'
11
19
  import { wikiDescriptionsFieldMessage } from './wikiDescriptionsFieldMessage'
12
20
  import { wikiDescriptionsIcon } from './wikiDescriptionsIcon'
13
21
  import { wikiDescriptionsImage } from './wikiDescriptionsImage'
22
+ import { wikiDescriptionsInput } from './wikiDescriptionsInput'
14
23
  import { wikiDescriptionsList } from './wikiDescriptionsList'
15
24
  import { wikiDescriptionsListGroup } from './wikiDescriptionsListGroup'
16
25
  import { wikiDescriptionsListItem } from './wikiDescriptionsListItem'
17
26
  import { wikiDescriptionsListMenu } from './wikiDescriptionsListMenu'
18
27
  import { wikiDescriptionsMask } from './wikiDescriptionsMask'
19
28
  import { wikiDescriptionsMenu } from './wikiDescriptionsMenu'
29
+ import { wikiDescriptionsModal } from './wikiDescriptionsModal'
20
30
  import { wikiDescriptionsMotionTransform } from './wikiDescriptionsMotionTransform'
21
31
  import { wikiDescriptionsProgress } from './wikiDescriptionsProgress'
22
32
  import { wikiDescriptionsRipple } from './wikiDescriptionsRipple'
23
33
  import { wikiDescriptionsScrollbar } from './wikiDescriptionsScrollbar'
34
+ import { wikiDescriptionsSelect } from './wikiDescriptionsSelect'
35
+ import { wikiDescriptionsSelectValue } from './wikiDescriptionsSelectValue'
24
36
  import { wikiDescriptionsSkeleton } from './wikiDescriptionsSkeleton'
37
+ import { wikiDescriptionsTextareaAutosize } from './wikiDescriptionsTextareaAutosize'
38
+ import { wikiDescriptionsTooltip } from './wikiDescriptionsTooltip'
25
39
  import { wikiDescriptionsWindow } from './wikiDescriptionsWindow'
26
40
 
27
41
  export const wikiDescriptions: StorybookComponentsDescription = [
42
+ wikiDescriptionsAccordion,
43
+ wikiDescriptionsActions,
44
+ wikiDescriptionsActionSheet,
45
+ wikiDescriptionsAnchor,
46
+ wikiDescriptionsArrow,
28
47
  wikiDescriptionsBadge,
29
48
  wikiDescriptionsBars,
49
+ wikiDescriptionsBlock,
30
50
  wikiDescriptionsButton,
31
51
  wikiDescriptionsCell,
32
52
  wikiDescriptionsChip,
53
+ wikiDescriptionsChipGroup,
54
+ wikiDescriptionsDialog,
33
55
  wikiDescriptionsField,
34
56
  wikiDescriptionsFieldCounter,
35
57
  wikiDescriptionsFieldLabel,
36
58
  wikiDescriptionsFieldMessage,
37
59
  wikiDescriptionsIcon,
60
+ wikiDescriptionsInput,
38
61
  wikiDescriptionsImage,
39
62
  wikiDescriptionsList,
40
63
  wikiDescriptionsListGroup,
@@ -42,10 +65,15 @@ export const wikiDescriptions: StorybookComponentsDescription = [
42
65
  wikiDescriptionsListMenu,
43
66
  wikiDescriptionsMask,
44
67
  wikiDescriptionsMenu,
68
+ wikiDescriptionsModal,
45
69
  wikiDescriptionsMotionTransform,
46
70
  wikiDescriptionsProgress,
47
71
  wikiDescriptionsRipple,
48
72
  wikiDescriptionsScrollbar,
73
+ wikiDescriptionsSelect,
74
+ wikiDescriptionsSelectValue,
49
75
  wikiDescriptionsSkeleton,
76
+ wikiDescriptionsTextareaAutosize,
77
+ wikiDescriptionsTooltip,
50
78
  wikiDescriptionsWindow
51
79
  ]
@@ -0,0 +1,158 @@
1
+ import type { StorybookComponentsDescriptionItem } from '../../types/storybookTypes'
2
+
3
+ /**
4
+ * Descriptions for Accordion component
5
+ *
6
+ * Описания свойств компонента Accordion
7
+ */
8
+ export const wikiDescriptionsAccordion: StorybookComponentsDescriptionItem = {
9
+ name: 'Accordion',
10
+ description: {
11
+ en: 'Expandable container component that reveals and hides content with smooth animations',
12
+ ru: 'Раскрывающийся контейнерный компонент, который показывает и скрывает контент с плавными анимациями'
13
+ },
14
+ possibilities: {
15
+ en: [
16
+ 'smooth expand/collapse animations via MotionTransform',
17
+ 'composable header with label, description, and icons',
18
+ 'automatic arrow rotation indicator',
19
+ 'controlled or uncontrolled state management with v-model',
20
+ 'divider line customization',
21
+ 'custom cell attributes support',
22
+ 'click event handling with custom data',
23
+ 'flexible content slots for header and body'
24
+ ],
25
+ ru: [
26
+ 'плавные анимации раскрытия/сворачивания через MotionTransform',
27
+ 'композитная шапка с меткой, описанием и иконками',
28
+ 'автоматический индикатор поворота стрелки',
29
+ 'управление состоянием контролируемо или неконтролируемо через v-model',
30
+ 'настройка линии разделителя',
31
+ 'поддержка пользовательских атрибутов ячейки',
32
+ 'обработка событий клика с пользовательскими данными',
33
+ 'гибкие слоты контента для шапки и тела'
34
+ ]
35
+ },
36
+ import: [
37
+ 'import { ref } from \'vue\''
38
+ ],
39
+ render: `
40
+ <DesignComponent v-bind="args">
41
+ <template #default>
42
+ <p>Accordion content goes here. This section can contain any HTML elements, components, or text.</p>
43
+ <p>You can include multiple paragraphs, lists, and other structured content to demonstrate the accordion's flexibility and behavior.</p>
44
+ <ul>
45
+ <li>First example item with some details</li>
46
+ <li>Second example showing list formatting</li>
47
+ <li>Third item demonstrating nested content</li>
48
+ </ul>
49
+ <p>Additional text can be added to show how the accordion handles longer content with smooth animations and proper spacing.</p>
50
+ <div style="padding: 12px; background: #f5f5f5; border-radius: 4px; margin-top: 8px;">
51
+ <strong>Note:</strong> This is a highlighted section within the accordion body.
52
+ </div>
53
+ <p style="margin-top: 12px;">The accordion component automatically manages the height transitions and ensures all content is properly displayed when expanded.</p>
54
+ </template>
55
+ </DesignComponent>
56
+ <DesignComponent v-bind="args">
57
+ <template #default>
58
+ <h4 style="margin-top: 0;">Features Overview</h4>
59
+ <p>This accordion demonstrates different content types and layout possibilities:</p>
60
+ <ol>
61
+ <li>Numbered lists for sequential information</li>
62
+ <li>Headings for content structure</li>
63
+ <li>Mixed content types in a single container</li>
64
+ </ol>
65
+ <p>The component supports various HTML elements and maintains proper spacing throughout the animation cycle.</p>
66
+ <div style="display: flex; gap: 8px; margin-top: 12px;">
67
+ <span style="padding: 4px 8px; background: #e3f2fd; border-radius: 4px; font-size: 12px;">Tag 1</span>
68
+ <span style="padding: 4px 8px; background: #f3e5f5; border-radius: 4px; font-size: 12px;">Tag 2</span>
69
+ <span style="padding: 4px 8px; background: #e8f5e9; border-radius: 4px; font-size: 12px;">Tag 3</span>
70
+ </div>
71
+ </template>
72
+ </DesignComponent>
73
+ <DesignComponent v-bind="args">
74
+ <template #default>
75
+ <p>This is the third variant showing simplified content structure.</p>
76
+ <p>Accordion components support various content formats while maintaining consistent behavior.</p>
77
+ <h5>Key Features:</h5>
78
+ <ul>
79
+ <li>Flexible content layouts</li>
80
+ <li>Smooth animations</li>
81
+ <li>Easy customization</li>
82
+ </ul>
83
+ </template>
84
+ </DesignComponent>
85
+ `,
86
+ stories: [
87
+ {
88
+ id: 'AccordionVModel',
89
+ name: {
90
+ en: 'Two-way binding (v-model)',
91
+ ru: 'Двусторонняя привязка (v-model)'
92
+ },
93
+ setup: `
94
+ return {
95
+ open: ref(false)
96
+ }
97
+ `,
98
+ template: `
99
+ <div class="wiki-storybook-item--padding">
100
+ <button class="wiki-storybook-button" @click="open = !open">Toggle ({{ open }})</button>
101
+ </div>
102
+ <DesignComponent v-model:open="open" label="Settings" description="Click to expand" icon="settings">
103
+ <template #default>
104
+ <div class="wiki-storybook-item--padding">
105
+ <p>Content is {{ open ? 'visible' : 'hidden' }}</p>
106
+ <p>Using <code>v-model:open</code> provides a clean and declarative way to manage the accordion's state from the parent. It simplifies the logic by removing the need for manual event handling (<code>@update:open</code>) and prop binding (<code>:open</code>).</p>
107
+ <p>This two-way binding is ideal for scenarios where the parent component needs to know about and control the visibility of the accordion, such as in complex forms or coordinated UI interactions.</p>
108
+ </div>
109
+ </template>
110
+ </DesignComponent>
111
+ `
112
+ },
113
+ {
114
+ id: 'AccordionSlots',
115
+ name: {
116
+ en: 'Slots usage',
117
+ ru: 'Использование слотов'
118
+ },
119
+ template: `
120
+ <DesignComponent label="Default label" description="Default description" icon="settings">
121
+ <template #label>Custom label slot</template>
122
+ <template #description>Custom description slot</template>
123
+ <template #caption>Custom caption slot</template>
124
+ <template #trailing>Trailing slot</template>
125
+ <template #body>Body slot content</template>
126
+ <template #default>
127
+ <p>Custom default slot content (main accordion body)</p>
128
+ </template>
129
+ </DesignComponent>
130
+ `
131
+ }
132
+ ],
133
+ documentation: {
134
+ body: `
135
+ <StorybookDescriptions componentName={'Accordion'} type={'accordion'}/>
136
+
137
+ <StorybookDescriptions componentName={'MotionTransform'} type={'v-model'}/>
138
+ <Canvas of={Component.AccordionVModel}/>
139
+ `,
140
+ events: `
141
+ <StorybookDescriptions componentName={'Event'} type={'click'}/>
142
+ <StorybookDescriptions componentName={'MotionTransform'} type={'events'}/>
143
+ `,
144
+ expose: `
145
+ <StorybookDescriptions componentName={'MotionTransform'} type={'expose.isShow'}/>
146
+ <StorybookDescriptions componentName={'Window'} type={'expose'}/>
147
+ <StorybookDescriptions componentName={'MotionTransform'} type={'expose.motionTransformElement'}/>
148
+ `,
149
+ slots: `
150
+ <Canvas of={Component.AccordionSlots}/>
151
+ <StorybookDescriptions componentName={'Accordion'} type={'slots'}/>
152
+ <StorybookDescriptions componentName={'Slot'} type={'label'}/>
153
+ <StorybookDescriptions componentName={'Slot'} type={'caption'}/>
154
+ <StorybookDescriptions componentName={'Slot'} type={'description'}/>
155
+ <StorybookDescriptions componentName={'Cell'} type={'slots'}/>
156
+ `
157
+ }
158
+ }
@@ -0,0 +1,211 @@
1
+ import type { StorybookComponentsDescriptionItem } from '../../types/storybookTypes'
2
+
3
+ /**
4
+ * Descriptions for ActionSheet component properties
5
+ *
6
+ * Описания свойств компонента ActionSheet
7
+ */
8
+ export const wikiDescriptionsActionSheet: StorybookComponentsDescriptionItem = {
9
+ name: 'ActionSheet',
10
+ description: {
11
+ en: 'Mobile-optimized modal component for displaying a list of actions or choices that slide up from the bottom',
12
+ ru: 'Мобильно-оптимизированный модальный компонент для отображения списка действий или выборов, выдвигающийся снизу'
13
+ },
14
+ possibilities: {
15
+ en: [
16
+ 'bottom-anchored modal panel with smooth slide-up animation',
17
+ 'displays primary and secondary action lists',
18
+ 'supports cancel button and custom actions',
19
+ 'mobile-first design with touch-friendly interface',
20
+ 'backdrop click to close functionality',
21
+ 'keyboard accessibility support',
22
+ 'integration with List and Actions components',
23
+ 'customizable appearance and positioning',
24
+ 'automatic height adjustment based on content',
25
+ 'support for grouped actions with separators'
26
+ ],
27
+ ru: [
28
+ 'модальная панель, закрепленная снизу, с плавной анимацией выдвижения',
29
+ 'отображает основной и второстепенный списки действий',
30
+ 'поддержка кнопки отмены и пользовательских действий',
31
+ 'мобильно-ориентированный дизайн с удобным сенсорным интерфейсом',
32
+ 'закрытие при клике на подложку',
33
+ 'поддержка доступности с клавиатуры',
34
+ 'интеграция с компонентами List и Actions',
35
+ 'настраиваемый внешний вид и позиционирование',
36
+ 'автоматическая подстройка высоты под контент',
37
+ 'поддержка группировки действий с разделителями'
38
+ ]
39
+ },
40
+ import: [
41
+ 'import { ref } from \'vue\''
42
+ ],
43
+ render: `
44
+ <DesignComponent v-bind="args">
45
+ <template #control="{binds}">
46
+ <button class="wiki-storybook-button" v-bind="binds">Open Action Sheet</button>
47
+ </template>
48
+
49
+ <template #title>
50
+ Action Sheet Menu
51
+ </template>
52
+
53
+ <template #default>
54
+ <h4>Mobile Action Sheet Component</h4>
55
+ <p>The Action Sheet component provides a mobile-optimized interface for presenting users with a set of actions or choices. It slides up from the bottom of the screen, following familiar patterns from iOS and Material Design guidelines.</p>
56
+
57
+ <p>This component is particularly effective for contextual actions related to specific content, such as sharing options, editing tools, or destructive operations. The bottom-anchored design makes it easily accessible on mobile devices while maintaining a clear visual hierarchy.</p>
58
+
59
+ <h4>Key Features</h4>
60
+ <p>The Action Sheet includes support for primary and secondary action lists, allowing you to group related actions logically. It automatically handles touch interactions, backdrop dismissal, and keyboard accessibility, ensuring a consistent user experience across different input methods.</p>
61
+
62
+ <p>Integration with List and Actions components provides flexibility in content presentation, while the customizable appearance adapts seamlessly to different design systems and brand requirements. The component automatically adjusts its height based on content, preventing overflow issues while maintaining optimal usability.</p>
63
+ </template>
64
+ </DesignComponent>
65
+ `,
66
+ stories: [
67
+ {
68
+ id: 'ActionSheetVModel',
69
+ name: {
70
+ en: 'Two-way binding (v-model)',
71
+ ru: 'Двусторонняя привязка (v-model)'
72
+ },
73
+ setup: `
74
+ return {
75
+ open: ref(false)
76
+ }
77
+ `,
78
+ template: `
79
+ <button class="wiki-storybook-button" @click="open = true">Open via v-model ({{ open }})</button>
80
+
81
+ <DesignComponent v-model:open="open">
82
+ <div class="wiki-storybook-item--padding">Your content here</div>
83
+ </DesignComponent>
84
+ `
85
+ },
86
+ {
87
+ id: 'ActionSheetTouchClose',
88
+ name: {
89
+ en: 'Touch gesture to close',
90
+ ru: 'Закрытие жестом'
91
+ },
92
+ setup: `
93
+ return {
94
+ openWithTouch: ref(false),
95
+ openWithoutTouch: ref(false)
96
+ }
97
+ `,
98
+ template: `
99
+ <div class="wiki-storybook-flex">
100
+ <button class="wiki-storybook-button" @click="openWithTouch = true">
101
+ With Touch Close ({{ openWithTouch }})
102
+ </button>
103
+ <button class="wiki-storybook-button" @click="openWithoutTouch = true">
104
+ Without Touch Close ({{ openWithoutTouch }})
105
+ </button>
106
+ </div>
107
+
108
+ <DesignComponent v-model:open="openWithTouch" :touchClose="true">
109
+ <template #title>
110
+ Swipe Down to Close
111
+ </template>
112
+ <template #default>
113
+ <div class="wiki-storybook-item--padding">
114
+ <div class="wiki-storybook-info">
115
+ <strong>Touch Close: Enabled</strong>
116
+ <p>This action sheet can be closed by swiping down on the title area. Notice the tab indicator at the top that signals the drag interaction.</p>
117
+ <p>Try swiping down on the header to close this panel. This follows iOS and Material Design patterns for mobile interfaces.</p>
118
+ </div>
119
+ </div>
120
+ </template>
121
+ </DesignComponent>
122
+
123
+ <DesignComponent v-model:open="openWithoutTouch" :touchClose="false">
124
+ <template #title>
125
+ No Swipe Gesture
126
+ </template>
127
+ <template #default>
128
+ <div class="wiki-storybook-item--padding">
129
+ <div class="wiki-storybook-info">
130
+ <strong>Touch Close: Disabled</strong>
131
+ <p>This action sheet cannot be closed by swiping down. The tab indicator is not displayed, and touch gestures are disabled.</p>
132
+ <p>You must use the backdrop click or close button to dismiss this panel. This is useful when you want to prevent accidental dismissal.</p>
133
+ </div>
134
+ </div>
135
+ </template>
136
+ <template #footer="{classesWindow}">
137
+ <button :class="classesWindow.close" class="wiki-storybook-button wiki-storybook-button--text">Close</button>
138
+ </template>
139
+ </DesignComponent>
140
+ `
141
+ },
142
+ {
143
+ id: 'ActionSheetAllSlots',
144
+ name: {
145
+ en: 'All slots demonstration',
146
+ ru: 'Демонстрация всех слотов'
147
+ },
148
+ template: `
149
+ <DesignComponent>
150
+ <template #control="{binds}">
151
+ <button class="wiki-storybook-button" v-bind="binds">Open Action Sheet with All Slots</button>
152
+ </template>
153
+
154
+ <template #title>
155
+ Action Sheet Title Slot
156
+ </template>
157
+
158
+ <template #default>
159
+ <div class="wiki-storybook-item--padding">
160
+ <h4>Default Slot Content</h4>
161
+ <p>This is the main content area of the action sheet. You can place any content here including action lists, forms, or other components.</p>
162
+
163
+ <div class="wiki-storybook-info">
164
+ <strong>Available slots:</strong>
165
+ <ul>
166
+ <li><code>#control</code> - trigger button or element</li>
167
+ <li><code>#title</code> - action sheet header/title area</li>
168
+ <li><code>#default</code> - main content area</li>
169
+ <li><code>#footer</code> - footer with actions or cancel button</li>
170
+ </ul>
171
+ </div>
172
+
173
+ <p>Each slot receives control props that allow you to interact with the action sheet programmatically, such as closing it or accessing window classes. The component slides up from the bottom with touch gesture support.</p>
174
+ </div>
175
+ </template>
176
+
177
+ <template #footer="{classesWindow}">
178
+ <div class="wiki-storybook-flex wiki-storybook-item--padding">
179
+ <button :class="classesWindow.close" class="wiki-storybook-button wiki-storybook-button--text">Cancel</button>
180
+ <button class="wiki-storybook-button">Confirm</button>
181
+ </div>
182
+ </template>
183
+ </DesignComponent>
184
+ `
185
+ }
186
+ ],
187
+ documentation: {
188
+ body: `
189
+ <StorybookDescriptions componentName={'ActionSheet'} type={'actionSheet'}/>
190
+
191
+ <StorybookDescriptions componentName={'ActionSheet'} type={'touchClose'}/>
192
+ <Canvas of={Component.ActionSheetTouchClose}/>
193
+
194
+ <StorybookDescriptions componentName={'Window'} type={'v-model'}/>
195
+ <Canvas of={Component.ActionSheetVModel}/>
196
+
197
+ <StorybookDescriptions componentName={'Modal'} type={'differences'}/>
198
+ `,
199
+ events: `
200
+ <StorybookDescriptions componentName={'Window'} type={'event.window'}/>
201
+ <StorybookDescriptions componentName={'Event'} type={'bars'}/>
202
+ `,
203
+ expose: `
204
+ <StorybookDescriptions componentName={'Window'} type={'expose'}/>
205
+ `,
206
+ slots: `
207
+ <Canvas of={Component.ActionSheetAllSlots}/>
208
+ <StorybookDescriptions componentName={'Window'} type={'slots'}/>
209
+ `
210
+ }
211
+ }
@@ -0,0 +1,161 @@
1
+ import type { StorybookComponentsDescriptionItem } from '../../types/storybookTypes'
2
+
3
+ /**
4
+ * Descriptions for Actions component properties
5
+ *
6
+ * Описания свойств компонента Actions
7
+ */
8
+ export const wikiDescriptionsActions: StorybookComponentsDescriptionItem = {
9
+ name: 'Actions',
10
+ description: {
11
+ en: 'A flexible container component for organizing action buttons with primary and secondary groups, supporting various alignment options and adaptive behavior.',
12
+ ru: 'Гибкий компонент-контейнер для организации кнопок действий с основной и вторичной группами, поддерживающий различные варианты выравнивания и адаптивное поведение.'
13
+ },
14
+ possibilities: {
15
+ en: [
16
+ 'Organizes action buttons into primary and secondary groups',
17
+ 'Supports multiple alignment modes: left, right, center, block',
18
+ 'Flexible layout that adapts to available space',
19
+ 'Automatic spacing between button groups',
20
+ 'Customizable button attributes for each group',
21
+ 'Responsive behavior with adaptive breakpoints',
22
+ 'Supports both array-based and slot-based button rendering'
23
+ ],
24
+ ru: [
25
+ 'Организует кнопки действий в основные и вторичные группы',
26
+ 'Поддерживает несколько режимов выравнивания: left, right, center, block',
27
+ 'Гибкая раскладка, адаптирующаяся к доступному пространству',
28
+ 'Автоматическое расстояние между группами кнопок',
29
+ 'Настраиваемые атрибуты кнопок для каждой группы',
30
+ 'Адаптивное поведение с точками перехода',
31
+ 'Поддерживает рендеринг кнопок через массив и слоты'
32
+ ]
33
+ },
34
+ import: [],
35
+ stories: [
36
+ {
37
+ id: 'ActionsBasic',
38
+ name: {
39
+ en: 'Basic',
40
+ ru: 'Базовые'
41
+ },
42
+ template: `
43
+ <div class="wiki-storybook-flex-column">
44
+ <DesignComponent
45
+ :list="[
46
+ { label: 'Cancel' },
47
+ { label: 'Save', primary: true }
48
+ ]"
49
+ />
50
+ </div>
51
+ `
52
+ },
53
+ {
54
+ id: 'ActionsAlignment',
55
+ name: {
56
+ en: 'Alignment',
57
+ ru: 'Выравнивание'
58
+ },
59
+ template: `
60
+ <div class="wiki-storybook-flex-column">
61
+ <DesignComponent
62
+ align="left"
63
+ :list="[
64
+ { label: 'Cancel' },
65
+ { label: 'Save', primary: true }
66
+ ]"
67
+ />
68
+ <DesignComponent
69
+ align="center"
70
+ :list="[
71
+ { label: 'Cancel' },
72
+ { label: 'Save', primary: true }
73
+ ]"
74
+ />
75
+ <DesignComponent
76
+ align="right"
77
+ :list="[
78
+ { label: 'Cancel' },
79
+ { label: 'Save', primary: true }
80
+ ]"
81
+ />
82
+ <DesignComponent
83
+ align="block"
84
+ :list="[
85
+ { label: 'Cancel' },
86
+ { label: 'Save', primary: true }
87
+ ]"
88
+ />
89
+ </div>
90
+ `
91
+ },
92
+ {
93
+ id: 'ActionsPrimarySecondary',
94
+ name: {
95
+ en: 'Primary & Secondary Groups',
96
+ ru: 'Основная и вторичная группы'
97
+ },
98
+ template: `
99
+ <div class="wiki-storybook-flex-column">
100
+ <DesignComponent
101
+ :list="[
102
+ { label: 'Cancel' },
103
+ { label: 'Save', primary: true }
104
+ ]"
105
+ :list-secondary="[
106
+ { label: 'Delete', text: true }
107
+ ]"
108
+ />
109
+ </div>
110
+ `
111
+ },
112
+ {
113
+ id: 'ActionsFlexible',
114
+ name: {
115
+ en: 'Flexible Layout',
116
+ ru: 'Гибкая раскладка'
117
+ },
118
+ template: `
119
+ <div class="wiki-storybook-flex-column">
120
+ <DesignComponent
121
+ flexible="adaptive"
122
+ :list="[
123
+ { label: 'Cancel' },
124
+ { label: 'Apply' },
125
+ { label: 'Save', primary: true }
126
+ ]"
127
+ />
128
+ </div>
129
+ `
130
+ },
131
+ {
132
+ id: 'ActionsCustomButtons',
133
+ name: {
134
+ en: 'Custom Button Styles',
135
+ ru: 'Пользовательские стили кнопок'
136
+ },
137
+ template: `
138
+ <div class="wiki-storybook-flex-column">
139
+ <DesignComponent
140
+ :list="[
141
+ { label: 'Cancel', outlined: true },
142
+ { label: 'Save', primary: true }
143
+ ]"
144
+ :button-attrs="{ size: 'large' }"
145
+ />
146
+ </div>
147
+ `
148
+ }
149
+ ],
150
+ documentation: {
151
+ body: `
152
+ <StorybookDescriptions componentName={'Actions'} type={'actions'}/>
153
+ <StorybookDescriptions componentName={'Actions'} type={'list'}/>
154
+ <StorybookDescriptions componentName={'Actions'} type={'flexible'}/>
155
+ `,
156
+ slots: `
157
+ <StorybookDescriptions componentName={'Slot'} type={'default'}/>
158
+ <StorybookDescriptions componentName={'Slot'} type={'secondary'}/>
159
+ `
160
+ }
161
+ }