@dxtmisha/wiki 0.39.2 → 0.39.4
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/dist/classes/WikiStorybook.d.ts +161 -0
- package/dist/classes/WikiStorybookDescriptions.d.ts +29 -0
- package/dist/classes/WikiStorybookItem.d.ts +122 -0
- package/dist/classes/WikiStorybookProp.d.ts +76 -0
- package/dist/documentation/storybook/StorybookDescriptions.d.ts +12 -0
- package/dist/documentation/storybook/StorybookMain.d.ts +6 -0
- package/dist/library.d.ts +8 -0
- package/dist/library.js +35863 -0
- package/dist/media/descriptions/wikiDescriptions.d.ts +2 -0
- package/dist/media/descriptions/wikiDescriptionsAccordion.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsActionSheet.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsActions.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsAnchor.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsArrow.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsBadge.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsBars.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsBlock.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsButton.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsCell.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsCheckbox.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsChip.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsChipGroup.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsDialog.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsDummy.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsField.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsFieldCounter.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsFieldLabel.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsFieldMessage.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsGrid.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsGridItem.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsGroup.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsHorizontalScroll.d.ts +2 -0
- package/dist/media/descriptions/wikiDescriptionsIcon.d.ts +2 -0
- package/dist/media/descriptions/wikiDescriptionsImage.d.ts +2 -0
- package/dist/media/descriptions/wikiDescriptionsInput.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsList.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsListGroup.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsListItem.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsListMenu.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsMask.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsMenu.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsModal.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsMotionAxis.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsMotionTransform.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsPage.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsProgress.d.ts +2 -0
- package/dist/media/descriptions/wikiDescriptionsRipple.d.ts +2 -0
- package/dist/media/descriptions/wikiDescriptionsScrollbar.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsSection.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsSelect.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsSelectValue.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsSkeleton.d.ts +2 -0
- package/dist/media/descriptions/wikiDescriptionsSnackbar.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsSnackbarItem.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsTabItem.d.ts +2 -0
- package/dist/media/descriptions/wikiDescriptionsTabs.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsTabsNavigation.d.ts +2 -0
- package/dist/media/descriptions/wikiDescriptionsTextarea.d.ts +2 -0
- package/dist/media/descriptions/wikiDescriptionsTextareaAutosize.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsTooltip.d.ts +7 -0
- package/dist/media/descriptions/wikiDescriptionsWindow.d.ts +7 -0
- package/dist/media/mdx/Accordion/wikiMdxAccordion.d.ts +7 -0
- package/dist/media/mdx/ActionSheet/wikiMdxActionSheet.d.ts +7 -0
- package/dist/media/mdx/Actions/wikiMdxActions.d.ts +7 -0
- package/dist/media/mdx/Anchor/wikiMdxAnchor.d.ts +7 -0
- package/dist/media/mdx/Arrow/wikiMdxArrow.d.ts +7 -0
- package/dist/media/mdx/Badge/wikiMdxBadge.d.ts +7 -0
- package/dist/media/mdx/Bars/wikiMdxBars.d.ts +7 -0
- package/dist/media/mdx/Block/wikiMdxBlock.d.ts +7 -0
- package/dist/media/mdx/Button/wikiMdxButton.d.ts +7 -0
- package/dist/media/mdx/Cell/wikiMdxCell.d.ts +7 -0
- package/dist/media/mdx/Checkbox/wikiMdxCheckbox.d.ts +7 -0
- package/dist/media/mdx/Chip/wikiMdxChip.d.ts +7 -0
- package/dist/media/mdx/ChipGroup/wikiMdxChipGroup.d.ts +7 -0
- package/dist/media/mdx/Dialog/wikiMdxDialog.d.ts +7 -0
- package/dist/media/mdx/Dummy/wikiMdxDummy.d.ts +7 -0
- package/dist/media/mdx/Field/wikiMdxField.d.ts +7 -0
- package/dist/media/mdx/FieldCounter/wikiMdxFieldCounter.d.ts +7 -0
- package/dist/media/mdx/FieldLabel/wikiMdxFieldLabel.d.ts +7 -0
- package/dist/media/mdx/FieldMessage/wikiMdxFieldMessage.d.ts +7 -0
- package/dist/media/mdx/Grid/wikiMdxGrid.d.ts +7 -0
- package/dist/media/mdx/GridItem/wikiMdxGridItem.d.ts +7 -0
- package/dist/media/mdx/Group/wikiMdxGroup.d.ts +7 -0
- package/dist/media/mdx/HorizontalScroll/wikiMdxHorizontalScroll.d.ts +7 -0
- package/dist/media/mdx/Icon/wikiMdxIcon.d.ts +2 -0
- package/dist/media/mdx/Image/wikiMdxImage.d.ts +2 -0
- package/dist/media/mdx/Input/wikiMdxInput.d.ts +7 -0
- package/dist/media/mdx/List/wikiMdxList.d.ts +7 -0
- package/dist/media/mdx/ListGroup/wikiMdxListGroup.d.ts +7 -0
- package/dist/media/mdx/ListItem/wikiMdxListItem.d.ts +7 -0
- package/dist/media/mdx/ListMenu/wikiMdxListMenu.d.ts +7 -0
- package/dist/media/mdx/Mask/wikiMdxMask.d.ts +7 -0
- package/dist/media/mdx/Menu/wikiMdxMenu.d.ts +3 -0
- package/dist/media/mdx/Modal/wikiMdxModal.d.ts +7 -0
- package/dist/media/mdx/MotionAxis/wikiMdxMotionAxis.d.ts +7 -0
- package/dist/media/mdx/MotionTransform/wikiMdxMotionTransform.d.ts +7 -0
- package/dist/media/mdx/Page/wikiMdxPage.d.ts +7 -0
- package/dist/media/mdx/Progress/wikiMdxProgress.d.ts +2 -0
- package/dist/media/mdx/Ripple/wikiMdxRipple.d.ts +2 -0
- package/dist/media/mdx/Scrollbar/wikiMdxScrollbar.d.ts +7 -0
- package/dist/media/mdx/Section/wikiMdxSection.d.ts +7 -0
- package/dist/media/mdx/Select/wikiMdxSelect.d.ts +7 -0
- package/dist/media/mdx/SelectValue/wikiMdxSelectValue.d.ts +7 -0
- package/dist/media/mdx/Skeleton/wikiMdxSkeleton.d.ts +2 -0
- package/dist/media/mdx/Snackbar/wikiMdxSnackbar.d.ts +7 -0
- package/dist/media/mdx/SnackbarItem/wikiMdxSnackbarItem.d.ts +7 -0
- package/dist/media/mdx/TabItem/wikiMdxTabItem.d.ts +7 -0
- package/dist/media/mdx/Tabs/wikiMdxTabs.d.ts +7 -0
- package/dist/media/mdx/TabsNavigation/wikiMdxTabsNavigation.d.ts +7 -0
- package/dist/media/mdx/Textarea/wikiMdxTextarea.d.ts +7 -0
- package/dist/media/mdx/TextareaAutosize/wikiMdxTextareaAutosize.d.ts +7 -0
- package/dist/media/mdx/Tooltip/wikiMdxTooltip.d.ts +7 -0
- package/dist/media/mdx/Window/wikiMdxWindow.d.ts +7 -0
- package/dist/media/mdx/event/wikiMdxEvent.d.ts +2 -0
- package/dist/media/mdx/expose/wikiMdxExpose.d.ts +2 -0
- package/dist/media/mdx/slot/wikiMdxSlot.d.ts +2 -0
- package/dist/media/mdx/style/wikiMdxStyle.d.ts +2 -0
- package/dist/media/mdx/value/wikiMdxValue.d.ts +2 -0
- package/dist/media/mdx/wikiMdx.d.ts +2 -0
- package/dist/media/props/wiki.d.ts +2 -0
- package/dist/media/props/wikiActions.d.ts +7 -0
- package/dist/media/props/wikiActionsInclude.d.ts +7 -0
- package/dist/media/props/wikiAnchor.d.ts +7 -0
- package/dist/media/props/wikiAria.d.ts +7 -0
- package/dist/media/props/wikiArrow.d.ts +7 -0
- package/dist/media/props/wikiArrowInclude.d.ts +7 -0
- package/dist/media/props/wikiAttributes.d.ts +7 -0
- package/dist/media/props/wikiBadge.d.ts +7 -0
- package/dist/media/props/wikiBars.d.ts +7 -0
- package/dist/media/props/wikiBarsInclude.d.ts +7 -0
- package/dist/media/props/wikiButton.d.ts +7 -0
- package/dist/media/props/wikiCheckbox.d.ts +7 -0
- package/dist/media/props/wikiChip.d.ts +7 -0
- package/dist/media/props/wikiChipGroup.d.ts +7 -0
- package/dist/media/props/wikiDialog.d.ts +7 -0
- package/dist/media/props/wikiField.d.ts +7 -0
- package/dist/media/props/wikiFieldCounterInclude.d.ts +7 -0
- package/dist/media/props/wikiForm.d.ts +2 -0
- package/dist/media/props/wikiGridItem.d.ts +7 -0
- package/dist/media/props/wikiHook.d.ts +7 -0
- package/dist/media/props/wikiIcon.d.ts +2 -0
- package/dist/media/props/wikiIconInclude.d.ts +2 -0
- package/dist/media/props/wikiImage.d.ts +7 -0
- package/dist/media/props/wikiInformation.d.ts +2 -0
- package/dist/media/props/wikiInput.d.ts +7 -0
- package/dist/media/props/wikiList.d.ts +7 -0
- package/dist/media/props/wikiListItem.d.ts +7 -0
- package/dist/media/props/wikiMask.d.ts +7 -0
- package/dist/media/props/wikiMaskInclude.d.ts +7 -0
- package/dist/media/props/wikiMenu.d.ts +7 -0
- package/dist/media/props/wikiMotionAxis.d.ts +7 -0
- package/dist/media/props/wikiMotionTransform.d.ts +7 -0
- package/dist/media/props/wikiOption.d.ts +7 -0
- package/dist/media/props/wikiProgress.d.ts +7 -0
- package/dist/media/props/wikiPropsTextarea.d.ts +7 -0
- package/dist/media/props/wikiScrollbar.d.ts +7 -0
- package/dist/media/props/wikiSelect.d.ts +7 -0
- package/dist/media/props/wikiSelectValue.d.ts +7 -0
- package/dist/media/props/wikiSnackbar.d.ts +7 -0
- package/dist/media/props/wikiSnackbarItem.d.ts +7 -0
- package/dist/media/props/wikiStatus.d.ts +7 -0
- package/dist/media/props/wikiStyle.d.ts +7 -0
- package/dist/media/props/wikiTabs.d.ts +7 -0
- package/dist/media/props/wikiTabsNavigation.d.ts +7 -0
- package/dist/media/props/wikiTechnical.d.ts +7 -0
- package/dist/media/props/wikiText.d.ts +7 -0
- package/dist/media/props/wikiTooltip.d.ts +7 -0
- package/dist/media/props/wikiValue.d.ts +7 -0
- package/dist/media/props/wikiWindow.d.ts +7 -0
- package/dist/media.d.ts +6 -0
- package/dist/storybook.d.ts +2 -0
- package/dist/types/storybookTypes.d.ts +244 -0
- package/dist/types/wikiTypes.d.ts +9 -0
- package/package.json +16 -3
- package/src/library.ts +4 -0
- package/src/media/functional/ui/properties/about/about.en.mdx +20 -0
- package/src/media/functional/ui/properties/about/about.ru.mdx +20 -0
- package/src/media/functional/ui/properties/about/about.vi.mdx +20 -0
- package/src/media/functional/ui/properties/flag-default/flag-default.en.mdx +27 -0
- package/src/media/functional/ui/properties/flag-default/flag-default.ru.mdx +27 -0
- package/src/media/functional/ui/properties/flag-default/flag-default.vi.mdx +27 -0
- package/src/media/functional/ui/properties/flag-fullName/flag-fullName.en.mdx +26 -0
- package/src/media/functional/ui/properties/flag-fullName/flag-fullName.ru.mdx +26 -0
- package/src/media/functional/ui/properties/flag-fullName/flag-fullName.vi.mdx +26 -0
- package/src/media/functional/ui/properties/flag-fullValue/flag-fullValue.en.mdx +26 -0
- package/src/media/functional/ui/properties/flag-fullValue/flag-fullValue.ru.mdx +26 -0
- package/src/media/functional/ui/properties/flag-fullValue/flag-fullValue.vi.mdx +26 -0
- package/src/media/functional/ui/properties/flag-prop/flag-prop.en.mdx +28 -0
- package/src/media/functional/ui/properties/flag-prop/flag-prop.ru.mdx +28 -0
- package/src/media/functional/ui/properties/flag-prop/flag-prop.vi.mdx +28 -0
- package/src/media/functional/ui/properties/flag-rename/flag-rename.en.mdx +26 -0
- package/src/media/functional/ui/properties/flag-rename/flag-rename.ru.mdx +26 -0
- package/src/media/functional/ui/properties/flag-rename/flag-rename.vi.mdx +26 -0
- package/src/media/functional/ui/properties/flag-replace/flag-replace.en.mdx +30 -0
- package/src/media/functional/ui/properties/flag-replace/flag-replace.ru.mdx +30 -0
- package/src/media/functional/ui/properties/flag-replace/flag-replace.vi.mdx +30 -0
- package/src/media/functional/ui/properties/flag-state/flag-state.en.mdx +28 -0
- package/src/media/functional/ui/properties/flag-state/flag-state.ru.mdx +28 -0
- package/src/media/functional/ui/properties/flag-state/flag-state.vi.mdx +28 -0
- package/src/media/functional/ui/properties/flag-subclass/flag-subclass.en.mdx +28 -0
- package/src/media/functional/ui/properties/flag-subclass/flag-subclass.ru.mdx +28 -0
- package/src/media/functional/ui/properties/flag-subclass/flag-subclass.vi.mdx +28 -0
- package/src/media/functional/ui/properties/flag-theme/flag-theme.en.mdx +28 -0
- package/src/media/functional/ui/properties/flag-theme/flag-theme.ru.mdx +28 -0
- package/src/media/functional/ui/properties/flag-theme/flag-theme.vi.mdx +28 -0
- package/src/media/functional/ui/properties/flag-var/flag-var.en.mdx +27 -0
- package/src/media/functional/ui/properties/flag-var/flag-var.ru.mdx +27 -0
- package/src/media/functional/ui/properties/flag-var/flag-var.vi.mdx +27 -0
- package/src/media/functional/ui/properties/quick-start/quick-start.en.mdx +78 -0
- package/src/media/functional/ui/properties/quick-start/quick-start.ru.mdx +78 -0
- package/src/media/functional/ui/properties/quick-start/quick-start.vi.mdx +78 -0
- package/src/media/functional/ui/properties/structure/structure.en.mdx +155 -0
- package/src/media/functional/ui/properties/structure/structure.ru.mdx +155 -0
- package/src/media/functional/ui/properties/structure/structure.vi.mdx +155 -0
- package/src/media/functional/ui/properties/type-animate/type-animate.en.mdx +42 -0
- package/src/media/functional/ui/properties/type-animate/type-animate.ru.mdx +42 -0
- package/src/media/functional/ui/properties/type-animate/type-animate.vi.mdx +42 -0
- package/src/media/functional/ui/properties/type-media/type-media.en.mdx +56 -0
- package/src/media/functional/ui/properties/type-media/type-media.ru.mdx +56 -0
- package/src/media/functional/ui/properties/type-media/type-media.vi.mdx +56 -0
- package/src/media/functional/ui/properties/type-property/type-property.en.mdx +57 -0
- package/src/media/functional/ui/properties/type-property/type-property.ru.mdx +57 -0
- package/src/media/functional/ui/properties/type-property/type-property.vi.mdx +57 -0
- package/src/media/functional/ui/properties/type-selector-virtual/type-selector-virtual.en.mdx +49 -0
- package/src/media/functional/ui/properties/type-selector-virtual/type-selector-virtual.ru.mdx +49 -0
- package/src/media/functional/ui/properties/type-selector-virtual/type-selector-virtual.vi.mdx +49 -0
- package/src/media/functional/ui/properties/type-state/type-state.en.mdx +66 -0
- package/src/media/functional/ui/properties/type-state/type-state.ru.mdx +66 -0
- package/src/media/functional/ui/properties/type-state/type-state.vi.mdx +66 -0
- package/src/media/functional/ui/properties/type-subclass/type-subclass.en.mdx +44 -0
- package/src/media/functional/ui/properties/type-subclass/type-subclass.ru.mdx +44 -0
- package/src/media/functional/ui/properties/type-subclass/type-subclass.vi.mdx +44 -0
- package/src/media/functional/ui/properties/type-var/type-var.en.mdx +63 -0
- package/src/media/functional/ui/properties/type-var/type-var.ru.mdx +63 -0
- package/src/media/functional/ui/properties/type-var/type-var.vi.mdx +63 -0
- package/src/media/functional/ui/properties/types/types.en.mdx +128 -0
- package/src/media/functional/ui/properties/types/types.ru.mdx +128 -0
- package/src/media/functional/ui/properties/types/types.vi.mdx +128 -0
- package/src/media/functional/ui/properties/values/values.en.mdx +103 -0
- package/src/media/functional/ui/properties/values/values.ru.mdx +103 -0
- package/src/media/functional/ui/properties/values/values.vi.mdx +103 -0
- package/src/media.ts +0 -3
- package/src/classes/WikiStorybook.ts +0 -353
- package/src/classes/WikiStorybookDescriptions.ts +0 -60
- package/src/classes/WikiStorybookItem.ts +0 -400
- package/src/classes/WikiStorybookProp.ts +0 -118
- package/src/media/descriptions/wikiDescriptions.ts +0 -109
- package/src/media/descriptions/wikiDescriptionsAccordion.ts +0 -177
- package/src/media/descriptions/wikiDescriptionsActionSheet.ts +0 -148
- package/src/media/descriptions/wikiDescriptionsActions.ts +0 -73
- package/src/media/descriptions/wikiDescriptionsAnchor.ts +0 -49
- package/src/media/descriptions/wikiDescriptionsArrow.ts +0 -193
- package/src/media/descriptions/wikiDescriptionsBadge.ts +0 -150
- package/src/media/descriptions/wikiDescriptionsBars.ts +0 -177
- package/src/media/descriptions/wikiDescriptionsBlock.ts +0 -115
- package/src/media/descriptions/wikiDescriptionsButton.ts +0 -200
- package/src/media/descriptions/wikiDescriptionsCell.ts +0 -121
- package/src/media/descriptions/wikiDescriptionsCheckbox.ts +0 -134
- package/src/media/descriptions/wikiDescriptionsChip.ts +0 -144
- package/src/media/descriptions/wikiDescriptionsChipGroup.ts +0 -113
- package/src/media/descriptions/wikiDescriptionsDialog.ts +0 -198
- package/src/media/descriptions/wikiDescriptionsDummy.ts +0 -42
- package/src/media/descriptions/wikiDescriptionsField.ts +0 -222
- package/src/media/descriptions/wikiDescriptionsFieldCounter.ts +0 -75
- package/src/media/descriptions/wikiDescriptionsFieldLabel.ts +0 -46
- package/src/media/descriptions/wikiDescriptionsFieldMessage.ts +0 -71
- package/src/media/descriptions/wikiDescriptionsGrid.ts +0 -68
- package/src/media/descriptions/wikiDescriptionsGridItem.ts +0 -55
- package/src/media/descriptions/wikiDescriptionsGroup.ts +0 -118
- package/src/media/descriptions/wikiDescriptionsHorizontalScroll.ts +0 -93
- package/src/media/descriptions/wikiDescriptionsIcon.ts +0 -134
- package/src/media/descriptions/wikiDescriptionsImage.ts +0 -197
- package/src/media/descriptions/wikiDescriptionsInput.ts +0 -264
- package/src/media/descriptions/wikiDescriptionsList.ts +0 -131
- package/src/media/descriptions/wikiDescriptionsListGroup.ts +0 -99
- package/src/media/descriptions/wikiDescriptionsListItem.ts +0 -167
- package/src/media/descriptions/wikiDescriptionsListMenu.ts +0 -97
- package/src/media/descriptions/wikiDescriptionsMask.ts +0 -239
- package/src/media/descriptions/wikiDescriptionsMenu.ts +0 -228
- package/src/media/descriptions/wikiDescriptionsModal.ts +0 -143
- package/src/media/descriptions/wikiDescriptionsMotionAxis.ts +0 -196
- package/src/media/descriptions/wikiDescriptionsMotionTransform.ts +0 -235
- package/src/media/descriptions/wikiDescriptionsPage.ts +0 -116
- package/src/media/descriptions/wikiDescriptionsProgress.ts +0 -220
- package/src/media/descriptions/wikiDescriptionsRipple.ts +0 -52
- package/src/media/descriptions/wikiDescriptionsScrollbar.ts +0 -111
- package/src/media/descriptions/wikiDescriptionsSection.ts +0 -116
- package/src/media/descriptions/wikiDescriptionsSelect.ts +0 -223
- package/src/media/descriptions/wikiDescriptionsSelectValue.ts +0 -85
- package/src/media/descriptions/wikiDescriptionsSkeleton.ts +0 -140
- package/src/media/descriptions/wikiDescriptionsSnackbar.ts +0 -86
- package/src/media/descriptions/wikiDescriptionsSnackbarItem.ts +0 -96
- package/src/media/descriptions/wikiDescriptionsTabItem.ts +0 -79
- package/src/media/descriptions/wikiDescriptionsTabs.ts +0 -115
- package/src/media/descriptions/wikiDescriptionsTabsNavigation.ts +0 -102
- package/src/media/descriptions/wikiDescriptionsTextarea.ts +0 -58
- package/src/media/descriptions/wikiDescriptionsTextareaAutosize.ts +0 -57
- package/src/media/descriptions/wikiDescriptionsTooltip.ts +0 -105
- package/src/media/descriptions/wikiDescriptionsWindow.ts +0 -241
- package/src/media/mdx/Accordion/accordion.en.mdx +0 -59
- package/src/media/mdx/Accordion/accordion.ru.mdx +0 -59
- package/src/media/mdx/Accordion/slots.en.mdx +0 -9
- package/src/media/mdx/Accordion/slots.ru.mdx +0 -9
- package/src/media/mdx/Accordion/wikiMdxAccordion.ts +0 -25
- package/src/media/mdx/ActionSheet/actionSheet.en.mdx +0 -61
- package/src/media/mdx/ActionSheet/actionSheet.ru.mdx +0 -61
- package/src/media/mdx/ActionSheet/touchClose.en.mdx +0 -21
- package/src/media/mdx/ActionSheet/touchClose.ru.mdx +0 -21
- package/src/media/mdx/ActionSheet/wikiMdxActionSheet.ts +0 -25
- package/src/media/mdx/Actions/actions.en.mdx +0 -48
- package/src/media/mdx/Actions/actions.ru.mdx +0 -48
- package/src/media/mdx/Actions/flexible.en.mdx +0 -19
- package/src/media/mdx/Actions/flexible.ru.mdx +0 -19
- package/src/media/mdx/Actions/list.en.mdx +0 -50
- package/src/media/mdx/Actions/list.ru.mdx +0 -50
- package/src/media/mdx/Actions/wikiMdxActions.ts +0 -31
- package/src/media/mdx/Anchor/anchor.en.mdx +0 -34
- package/src/media/mdx/Anchor/anchor.ru.mdx +0 -34
- package/src/media/mdx/Anchor/expose.go.en.mdx +0 -1
- package/src/media/mdx/Anchor/expose.go.ru.mdx +0 -1
- package/src/media/mdx/Anchor/hide.en.mdx +0 -28
- package/src/media/mdx/Anchor/hide.ru.mdx +0 -28
- package/src/media/mdx/Anchor/isCopy.en.mdx +0 -23
- package/src/media/mdx/Anchor/isCopy.ru.mdx +0 -23
- package/src/media/mdx/Anchor/scroll.en.mdx +0 -34
- package/src/media/mdx/Anchor/scroll.ru.mdx +0 -35
- package/src/media/mdx/Anchor/wikiMdxAnchor.ts +0 -43
- package/src/media/mdx/Arrow/arrow.en.mdx +0 -33
- package/src/media/mdx/Arrow/arrow.ru.mdx +0 -33
- package/src/media/mdx/Arrow/wikiMdxArrow.ts +0 -19
- package/src/media/mdx/Badge/badge.en.mdx +0 -89
- package/src/media/mdx/Badge/badge.ru.mdx +0 -89
- package/src/media/mdx/Badge/dot.en.mdx +0 -21
- package/src/media/mdx/Badge/dot.ru.mdx +0 -21
- package/src/media/mdx/Badge/outline.en.mdx +0 -16
- package/src/media/mdx/Badge/outline.ru.mdx +0 -16
- package/src/media/mdx/Badge/primary.en.mdx +0 -16
- package/src/media/mdx/Badge/primary.ru.mdx +0 -16
- package/src/media/mdx/Badge/secondary.en.mdx +0 -16
- package/src/media/mdx/Badge/secondary.ru.mdx +0 -16
- package/src/media/mdx/Badge/wikiMdxBadge.ts +0 -43
- package/src/media/mdx/Bars/action.en.mdx +0 -84
- package/src/media/mdx/Bars/action.ru.mdx +0 -84
- package/src/media/mdx/Bars/bars.en.mdx +0 -97
- package/src/media/mdx/Bars/bars.ru.mdx +0 -98
- package/src/media/mdx/Bars/slots.en.mdx +0 -2
- package/src/media/mdx/Bars/slots.ru.mdx +0 -2
- package/src/media/mdx/Bars/v-model.en.mdx +0 -28
- package/src/media/mdx/Bars/v-model.ru.mdx +0 -28
- package/src/media/mdx/Bars/wikiMdxBars.ts +0 -37
- package/src/media/mdx/Block/block.en.mdx +0 -42
- package/src/media/mdx/Block/block.ru.mdx +0 -42
- package/src/media/mdx/Block/differences.en.mdx +0 -47
- package/src/media/mdx/Block/differences.ru.mdx +0 -47
- package/src/media/mdx/Block/wikiMdxBlock.ts +0 -25
- package/src/media/mdx/Button/button.en.mdx +0 -29
- package/src/media/mdx/Button/button.ru.mdx +0 -29
- package/src/media/mdx/Button/outline.en.mdx +0 -16
- package/src/media/mdx/Button/outline.ru.mdx +0 -16
- package/src/media/mdx/Button/primary.en.mdx +0 -16
- package/src/media/mdx/Button/primary.ru.mdx +0 -16
- package/src/media/mdx/Button/secondary.en.mdx +0 -16
- package/src/media/mdx/Button/secondary.ru.mdx +0 -16
- package/src/media/mdx/Button/text.en.mdx +0 -16
- package/src/media/mdx/Button/text.ru.mdx +0 -16
- package/src/media/mdx/Button/wikiMdxButton.ts +0 -43
- package/src/media/mdx/Cell/cell.en.mdx +0 -57
- package/src/media/mdx/Cell/cell.ru.mdx +0 -57
- package/src/media/mdx/Cell/slots.en.mdx +0 -8
- package/src/media/mdx/Cell/slots.ru.mdx +0 -8
- package/src/media/mdx/Cell/wikiMdxCell.ts +0 -25
- package/src/media/mdx/Checkbox/checkbox.en.mdx +0 -22
- package/src/media/mdx/Checkbox/checkbox.ru.mdx +0 -22
- package/src/media/mdx/Checkbox/indeterminate.en.mdx +0 -61
- package/src/media/mdx/Checkbox/indeterminate.ru.mdx +0 -61
- package/src/media/mdx/Checkbox/value.en.mdx +0 -64
- package/src/media/mdx/Checkbox/value.ru.mdx +0 -64
- package/src/media/mdx/Checkbox/wikiMdxCheckbox.ts +0 -31
- package/src/media/mdx/Chip/assistive.en.mdx +0 -16
- package/src/media/mdx/Chip/assistive.ru.mdx +0 -16
- package/src/media/mdx/Chip/chip.en.mdx +0 -75
- package/src/media/mdx/Chip/chip.ru.mdx +0 -75
- package/src/media/mdx/Chip/input.en.mdx +0 -16
- package/src/media/mdx/Chip/input.ru.mdx +0 -16
- package/src/media/mdx/Chip/wikiMdxChip.ts +0 -31
- package/src/media/mdx/ChipGroup/chipGroup.en.mdx +0 -51
- package/src/media/mdx/ChipGroup/chipGroup.ru.mdx +0 -51
- package/src/media/mdx/ChipGroup/selected.en.mdx +0 -50
- package/src/media/mdx/ChipGroup/selected.ru.mdx +0 -50
- package/src/media/mdx/ChipGroup/wikiMdxChipGroup.ts +0 -25
- package/src/media/mdx/Dialog/buttons.en.mdx +0 -45
- package/src/media/mdx/Dialog/buttons.ru.mdx +0 -45
- package/src/media/mdx/Dialog/dialog.en.mdx +0 -66
- package/src/media/mdx/Dialog/dialog.ru.mdx +0 -65
- package/src/media/mdx/Dialog/events.en.mdx +0 -63
- package/src/media/mdx/Dialog/events.ru.mdx +0 -63
- package/src/media/mdx/Dialog/states.en.mdx +0 -58
- package/src/media/mdx/Dialog/states.ru.mdx +0 -57
- package/src/media/mdx/Dialog/wikiMdxDialog.ts +0 -37
- package/src/media/mdx/Dummy/dummy.en.mdx +0 -35
- package/src/media/mdx/Dummy/dummy.ru.mdx +0 -35
- package/src/media/mdx/Dummy/wikiMdxDummy.ts +0 -19
- package/src/media/mdx/Field/arrows.en.mdx +0 -91
- package/src/media/mdx/Field/arrows.ru.mdx +0 -91
- package/src/media/mdx/Field/cancel.en.mdx +0 -54
- package/src/media/mdx/Field/cancel.ru.mdx +0 -54
- package/src/media/mdx/Field/field.en.mdx +0 -52
- package/src/media/mdx/Field/field.ru.mdx +0 -52
- package/src/media/mdx/Field/slots.en.mdx +0 -10
- package/src/media/mdx/Field/slots.ru.mdx +0 -10
- package/src/media/mdx/Field/value.en.mdx +0 -49
- package/src/media/mdx/Field/value.ru.mdx +0 -49
- package/src/media/mdx/Field/width.en.mdx +0 -28
- package/src/media/mdx/Field/width.ru.mdx +0 -26
- package/src/media/mdx/Field/wikiMdxField.ts +0 -49
- package/src/media/mdx/FieldCounter/fieldCounter.en.mdx +0 -34
- package/src/media/mdx/FieldCounter/fieldCounter.ru.mdx +0 -34
- package/src/media/mdx/FieldCounter/templates.en.mdx +0 -39
- package/src/media/mdx/FieldCounter/templates.ru.mdx +0 -39
- package/src/media/mdx/FieldCounter/wikiMdxFieldCounter.ts +0 -25
- package/src/media/mdx/FieldLabel/fieldLabel.en.mdx +0 -39
- package/src/media/mdx/FieldLabel/fieldLabel.ru.mdx +0 -39
- package/src/media/mdx/FieldLabel/wikiMdxFieldLabel.ts +0 -19
- package/src/media/mdx/FieldMessage/fieldMessage.en.mdx +0 -38
- package/src/media/mdx/FieldMessage/fieldMessage.ru.mdx +0 -38
- package/src/media/mdx/FieldMessage/slots.en.mdx +0 -7
- package/src/media/mdx/FieldMessage/slots.ru.mdx +0 -7
- package/src/media/mdx/FieldMessage/wikiMdxFieldMessage.ts +0 -25
- package/src/media/mdx/Grid/grid.en.mdx +0 -21
- package/src/media/mdx/Grid/grid.ru.mdx +0 -23
- package/src/media/mdx/Grid/wikiMdxGrid.ts +0 -19
- package/src/media/mdx/GridItem/gridItem.en.mdx +0 -25
- package/src/media/mdx/GridItem/gridItem.ru.mdx +0 -27
- package/src/media/mdx/GridItem/wikiMdxGridItem.ts +0 -19
- package/src/media/mdx/Group/group.en.mdx +0 -40
- package/src/media/mdx/Group/group.ru.mdx +0 -40
- package/src/media/mdx/Group/wikiMdxGroup.ts +0 -19
- package/src/media/mdx/HorizontalScroll/expose.toSelected.en.mdx +0 -1
- package/src/media/mdx/HorizontalScroll/expose.toSelected.ru.mdx +0 -1
- package/src/media/mdx/HorizontalScroll/horizontalScroll.en.mdx +0 -62
- package/src/media/mdx/HorizontalScroll/horizontalScroll.ru.mdx +0 -62
- package/src/media/mdx/HorizontalScroll/selected.en.mdx +0 -33
- package/src/media/mdx/HorizontalScroll/selected.ru.mdx +0 -33
- package/src/media/mdx/HorizontalScroll/wikiMdxHorizontalScroll.ts +0 -31
- package/src/media/mdx/Icon/expose.isActive.en.mdx +0 -1
- package/src/media/mdx/Icon/expose.isActive.ru.mdx +0 -1
- package/src/media/mdx/Icon/icon.en.mdx +0 -77
- package/src/media/mdx/Icon/icon.ru.mdx +0 -42
- package/src/media/mdx/Icon/wikiMdxIcon.ts +0 -21
- package/src/media/mdx/Image/adaptive.en.mdx +0 -75
- package/src/media/mdx/Image/adaptive.ru.mdx +0 -75
- package/src/media/mdx/Image/event.load.en.mdx +0 -39
- package/src/media/mdx/Image/event.load.ru.mdx +0 -39
- package/src/media/mdx/Image/expose.en.mdx +0 -12
- package/src/media/mdx/Image/expose.ru.mdx +0 -12
- package/src/media/mdx/Image/flag.en.mdx +0 -23
- package/src/media/mdx/Image/flag.ru.mdx +0 -23
- package/src/media/mdx/Image/image.en.mdx +0 -51
- package/src/media/mdx/Image/image.ru.mdx +0 -51
- package/src/media/mdx/Image/img-tag.en.mdx +0 -105
- package/src/media/mdx/Image/img-tag.ru.mdx +0 -105
- package/src/media/mdx/Image/size.en.mdx +0 -32
- package/src/media/mdx/Image/size.ru.mdx +0 -32
- package/src/media/mdx/Image/value.en.mdx +0 -23
- package/src/media/mdx/Image/value.ru.mdx +0 -23
- package/src/media/mdx/Image/wikiMdxImage.ts +0 -58
- package/src/media/mdx/Input/currency.en.mdx +0 -38
- package/src/media/mdx/Input/currency.ru.mdx +0 -38
- package/src/media/mdx/Input/date.en.mdx +0 -53
- package/src/media/mdx/Input/date.ru.mdx +0 -53
- package/src/media/mdx/Input/input.en.mdx +0 -143
- package/src/media/mdx/Input/input.ru.mdx +0 -71
- package/src/media/mdx/Input/mask.en.mdx +0 -30
- package/src/media/mdx/Input/mask.ru.mdx +0 -30
- package/src/media/mdx/Input/number.en.mdx +0 -41
- package/src/media/mdx/Input/number.ru.mdx +0 -41
- package/src/media/mdx/Input/type.en.mdx +0 -26
- package/src/media/mdx/Input/type.ru.mdx +0 -26
- package/src/media/mdx/Input/wikiMdxInput.ts +0 -49
- package/src/media/mdx/List/event.close.en.mdx +0 -8
- package/src/media/mdx/List/event.close.ru.mdx +0 -8
- package/src/media/mdx/List/list.en.mdx +0 -64
- package/src/media/mdx/List/list.ru.mdx +0 -64
- package/src/media/mdx/List/lite.en.mdx +0 -24
- package/src/media/mdx/List/lite.ru.mdx +0 -24
- package/src/media/mdx/List/slot.html.en.mdx +0 -1
- package/src/media/mdx/List/slot.html.ru.mdx +0 -1
- package/src/media/mdx/List/wikiMdxList.ts +0 -37
- package/src/media/mdx/ListGroup/listGroup.en.mdx +0 -56
- package/src/media/mdx/ListGroup/listGroup.ru.mdx +0 -56
- package/src/media/mdx/ListGroup/slots.en.mdx +0 -2
- package/src/media/mdx/ListGroup/slots.ru.mdx +0 -2
- package/src/media/mdx/ListGroup/wikiMdxListGroup.ts +0 -25
- package/src/media/mdx/ListItem/basic.en.mdx +0 -55
- package/src/media/mdx/ListItem/basic.ru.mdx +0 -55
- package/src/media/mdx/ListItem/fill.en.mdx +0 -24
- package/src/media/mdx/ListItem/fill.ru.mdx +0 -24
- package/src/media/mdx/ListItem/slots.en.mdx +0 -2
- package/src/media/mdx/ListItem/slots.ru.mdx +0 -2
- package/src/media/mdx/ListItem/wikiMdxListItem.ts +0 -31
- package/src/media/mdx/ListMenu/listMenu.en.mdx +0 -63
- package/src/media/mdx/ListMenu/listMenu.ru.mdx +0 -63
- package/src/media/mdx/ListMenu/wikiMdxListMenu.ts +0 -19
- package/src/media/mdx/Mask/basic.en.mdx +0 -76
- package/src/media/mdx/Mask/basic.ru.mdx +0 -76
- package/src/media/mdx/Mask/dateTypes.en.mdx +0 -38
- package/src/media/mdx/Mask/dateTypes.ru.mdx +0 -38
- package/src/media/mdx/Mask/expose.en.mdx +0 -3
- package/src/media/mdx/Mask/expose.ru.mdx +0 -3
- package/src/media/mdx/Mask/groupSave.en.mdx +0 -26
- package/src/media/mdx/Mask/groupSave.ru.mdx +0 -26
- package/src/media/mdx/Mask/mask.en.mdx +0 -21
- package/src/media/mdx/Mask/mask.ru.mdx +0 -21
- package/src/media/mdx/Mask/match.en.mdx +0 -28
- package/src/media/mdx/Mask/match.ru.mdx +0 -28
- package/src/media/mdx/Mask/numberTypes.en.mdx +0 -38
- package/src/media/mdx/Mask/numberTypes.ru.mdx +0 -38
- package/src/media/mdx/Mask/pattern.en.mdx +0 -66
- package/src/media/mdx/Mask/pattern.ru.mdx +0 -66
- package/src/media/mdx/Mask/special.en.mdx +0 -106
- package/src/media/mdx/Mask/special.ru.mdx +0 -106
- package/src/media/mdx/Mask/type.en.mdx +0 -22
- package/src/media/mdx/Mask/type.ru.mdx +0 -22
- package/src/media/mdx/Mask/visible.en.mdx +0 -40
- package/src/media/mdx/Mask/visible.ru.mdx +0 -40
- package/src/media/mdx/Mask/wikiMdxMask.ts +0 -79
- package/src/media/mdx/Menu/ajax.en.mdx +0 -49
- package/src/media/mdx/Menu/ajax.ru.mdx +0 -49
- package/src/media/mdx/Menu/event.updateValue.en.mdx +0 -29
- package/src/media/mdx/Menu/event.updateValue.ru.mdx +0 -30
- package/src/media/mdx/Menu/expose.navigation.en.mdx +0 -2
- package/src/media/mdx/Menu/expose.navigation.ru.mdx +0 -2
- package/src/media/mdx/Menu/menu.en.mdx +0 -64
- package/src/media/mdx/Menu/menu.ru.mdx +0 -64
- package/src/media/mdx/Menu/navigation.en.mdx +0 -56
- package/src/media/mdx/Menu/navigation.ru.mdx +0 -56
- package/src/media/mdx/Menu/slots.control.en.mdx +0 -1
- package/src/media/mdx/Menu/slots.control.ru.mdx +0 -1
- package/src/media/mdx/Menu/slots.en.mdx +0 -14
- package/src/media/mdx/Menu/slots.ru.mdx +0 -14
- package/src/media/mdx/Menu/wikiMdxMenu.ts +0 -51
- package/src/media/mdx/Modal/differences.en.mdx +0 -130
- package/src/media/mdx/Modal/differences.ru.mdx +0 -65
- package/src/media/mdx/Modal/modal.en.mdx +0 -63
- package/src/media/mdx/Modal/modal.ru.mdx +0 -63
- package/src/media/mdx/Modal/wikiMdxModal.ts +0 -25
- package/src/media/mdx/MotionAxis/classes.en.mdx +0 -18
- package/src/media/mdx/MotionAxis/classes.ru.mdx +0 -18
- package/src/media/mdx/MotionAxis/event.en.mdx +0 -53
- package/src/media/mdx/MotionAxis/event.ru.mdx +0 -53
- package/src/media/mdx/MotionAxis/expose.en.mdx +0 -9
- package/src/media/mdx/MotionAxis/expose.ru.mdx +0 -9
- package/src/media/mdx/MotionAxis/motionAxis.en.mdx +0 -43
- package/src/media/mdx/MotionAxis/motionAxis.ru.mdx +0 -43
- package/src/media/mdx/MotionAxis/slots.en.mdx +0 -1
- package/src/media/mdx/MotionAxis/slots.ru.mdx +0 -1
- package/src/media/mdx/MotionAxis/v-model.en.mdx +0 -30
- package/src/media/mdx/MotionAxis/v-model.ru.mdx +0 -30
- package/src/media/mdx/MotionAxis/wikiMdxMotionAxis.ts +0 -49
- package/src/media/mdx/MotionTransform/animationHeadPosition.en.mdx +0 -18
- package/src/media/mdx/MotionTransform/animationHeadPosition.ru.mdx +0 -18
- package/src/media/mdx/MotionTransform/classes.en.mdx +0 -25
- package/src/media/mdx/MotionTransform/classes.ru.mdx +0 -25
- package/src/media/mdx/MotionTransform/events.en.mdx +0 -39
- package/src/media/mdx/MotionTransform/events.ru.mdx +0 -39
- package/src/media/mdx/MotionTransform/expose.en.mdx +0 -6
- package/src/media/mdx/MotionTransform/expose.motionTransformElement.en.mdx +0 -9
- package/src/media/mdx/MotionTransform/expose.motionTransformElement.ru.mdx +0 -9
- package/src/media/mdx/MotionTransform/expose.ru.mdx +0 -6
- package/src/media/mdx/MotionTransform/ignore.en.mdx +0 -32
- package/src/media/mdx/MotionTransform/ignore.ru.mdx +0 -32
- package/src/media/mdx/MotionTransform/motionTransform.en.mdx +0 -51
- package/src/media/mdx/MotionTransform/motionTransform.ru.mdx +0 -51
- package/src/media/mdx/MotionTransform/slots.en.mdx +0 -5
- package/src/media/mdx/MotionTransform/slots.ru.mdx +0 -5
- package/src/media/mdx/MotionTransform/v-model.en.mdx +0 -19
- package/src/media/mdx/MotionTransform/v-model.ru.mdx +0 -19
- package/src/media/mdx/MotionTransform/wikiMdxMotionTransform.ts +0 -67
- package/src/media/mdx/Page/page.en.mdx +0 -38
- package/src/media/mdx/Page/page.ru.mdx +0 -38
- package/src/media/mdx/Page/wikiMdxPage.ts +0 -19
- package/src/media/mdx/Progress/circular.en.mdx +0 -24
- package/src/media/mdx/Progress/circular.ru.mdx +0 -24
- package/src/media/mdx/Progress/delays.en.mdx +0 -24
- package/src/media/mdx/Progress/delays.ru.mdx +0 -24
- package/src/media/mdx/Progress/linear.en.mdx +0 -25
- package/src/media/mdx/Progress/linear.ru.mdx +0 -25
- package/src/media/mdx/Progress/progress.en.mdx +0 -71
- package/src/media/mdx/Progress/progress.ru.mdx +0 -71
- package/src/media/mdx/Progress/values.en.mdx +0 -24
- package/src/media/mdx/Progress/values.ru.mdx +0 -24
- package/src/media/mdx/Progress/wikiMdxProgress.ts +0 -38
- package/src/media/mdx/Ripple/ripple.en.mdx +0 -42
- package/src/media/mdx/Ripple/ripple.ru.mdx +0 -42
- package/src/media/mdx/Ripple/wikiMdxRipple.ts +0 -14
- package/src/media/mdx/Scrollbar/emits-include.en.mdx +0 -38
- package/src/media/mdx/Scrollbar/emits-include.ru.mdx +0 -38
- package/src/media/mdx/Scrollbar/emits.en.mdx +0 -38
- package/src/media/mdx/Scrollbar/emits.ru.mdx +0 -38
- package/src/media/mdx/Scrollbar/scrollbar.en.mdx +0 -39
- package/src/media/mdx/Scrollbar/scrollbar.ru.mdx +0 -39
- package/src/media/mdx/Scrollbar/wikiMdxScrollbar.ts +0 -31
- package/src/media/mdx/Section/section.en.mdx +0 -38
- package/src/media/mdx/Section/section.ru.mdx +0 -38
- package/src/media/mdx/Section/wikiMdxSection.ts +0 -19
- package/src/media/mdx/Select/select.en.mdx +0 -69
- package/src/media/mdx/Select/select.ru.mdx +0 -69
- package/src/media/mdx/Select/wikiMdxSelect.ts +0 -19
- package/src/media/mdx/SelectValue/selectValue.en.mdx +0 -64
- package/src/media/mdx/SelectValue/selectValue.ru.mdx +0 -64
- package/src/media/mdx/SelectValue/wikiMdxSelectValue.ts +0 -19
- package/src/media/mdx/Skeleton/classes.en.mdx +0 -13
- package/src/media/mdx/Skeleton/classes.ru.mdx +0 -13
- package/src/media/mdx/Skeleton/expose.isActive.en.mdx +0 -1
- package/src/media/mdx/Skeleton/expose.isActive.ru.mdx +0 -1
- package/src/media/mdx/Skeleton/skeleton.en.mdx +0 -45
- package/src/media/mdx/Skeleton/skeleton.ru.mdx +0 -45
- package/src/media/mdx/Skeleton/wikiMdxSkeleton.ts +0 -28
- package/src/media/mdx/Snackbar/adaptation.en.mdx +0 -10
- package/src/media/mdx/Snackbar/adaptation.ru.mdx +0 -10
- package/src/media/mdx/Snackbar/add.en.mdx +0 -44
- package/src/media/mdx/Snackbar/add.ru.mdx +0 -44
- package/src/media/mdx/Snackbar/event.hide.en.mdx +0 -12
- package/src/media/mdx/Snackbar/event.hide.ru.mdx +0 -12
- package/src/media/mdx/Snackbar/event.show.en.mdx +0 -11
- package/src/media/mdx/Snackbar/event.show.ru.mdx +0 -11
- package/src/media/mdx/Snackbar/expose.add.en.mdx +0 -1
- package/src/media/mdx/Snackbar/expose.add.ru.mdx +0 -1
- package/src/media/mdx/Snackbar/expose.clear.en.mdx +0 -1
- package/src/media/mdx/Snackbar/expose.clear.ru.mdx +0 -1
- package/src/media/mdx/Snackbar/expose.isItem.en.mdx +0 -1
- package/src/media/mdx/Snackbar/expose.isItem.ru.mdx +0 -1
- package/src/media/mdx/Snackbar/expose.remove.en.mdx +0 -1
- package/src/media/mdx/Snackbar/expose.remove.ru.mdx +0 -1
- package/src/media/mdx/Snackbar/position.en.mdx +0 -10
- package/src/media/mdx/Snackbar/position.ru.mdx +0 -10
- package/src/media/mdx/Snackbar/snackbar.en.mdx +0 -46
- package/src/media/mdx/Snackbar/snackbar.ru.mdx +0 -46
- package/src/media/mdx/Snackbar/wikiMdxSnackbar.ts +0 -73
- package/src/media/mdx/SnackbarItem/component.en.mdx +0 -9
- package/src/media/mdx/SnackbarItem/component.ru.mdx +0 -9
- package/src/media/mdx/SnackbarItem/event.close.en.mdx +0 -18
- package/src/media/mdx/SnackbarItem/event.close.ru.mdx +0 -18
- package/src/media/mdx/SnackbarItem/html.en.mdx +0 -6
- package/src/media/mdx/SnackbarItem/html.ru.mdx +0 -6
- package/src/media/mdx/SnackbarItem/role.en.mdx +0 -18
- package/src/media/mdx/SnackbarItem/role.ru.mdx +0 -18
- package/src/media/mdx/SnackbarItem/snackbarItem.en.mdx +0 -44
- package/src/media/mdx/SnackbarItem/snackbarItem.ru.mdx +0 -44
- package/src/media/mdx/SnackbarItem/wikiMdxSnackbarItem.ts +0 -47
- package/src/media/mdx/TabItem/tabItem.en.mdx +0 -52
- package/src/media/mdx/TabItem/tabItem.ru.mdx +0 -38
- package/src/media/mdx/TabItem/wikiMdxTabItem.ts +0 -19
- package/src/media/mdx/Tabs/tabs.en.mdx +0 -44
- package/src/media/mdx/Tabs/tabs.ru.mdx +0 -44
- package/src/media/mdx/Tabs/v-model.en.mdx +0 -27
- package/src/media/mdx/Tabs/v-model.ru.mdx +0 -27
- package/src/media/mdx/Tabs/wikiMdxTabs.ts +0 -25
- package/src/media/mdx/TabsNavigation/tabsNavigation.en.mdx +0 -40
- package/src/media/mdx/TabsNavigation/tabsNavigation.ru.mdx +0 -40
- package/src/media/mdx/TabsNavigation/v-model.en.mdx +0 -27
- package/src/media/mdx/TabsNavigation/v-model.ru.mdx +0 -27
- package/src/media/mdx/TabsNavigation/wikiMdxTabsNavigation.ts +0 -25
- package/src/media/mdx/Textarea/autosize.en.mdx +0 -35
- package/src/media/mdx/Textarea/autosize.ru.mdx +0 -35
- package/src/media/mdx/Textarea/textarea.en.mdx +0 -39
- package/src/media/mdx/Textarea/textarea.ru.mdx +0 -39
- package/src/media/mdx/Textarea/wikiMdxTextarea.ts +0 -25
- package/src/media/mdx/TextareaAutosize/textarea-autosize.en.mdx +0 -65
- package/src/media/mdx/TextareaAutosize/textarea-autosize.ru.mdx +0 -65
- package/src/media/mdx/TextareaAutosize/wikiMdxTextareaAutosize.ts +0 -19
- package/src/media/mdx/Tooltip/event.tooltip.en.mdx +0 -7
- package/src/media/mdx/Tooltip/event.tooltip.ru.mdx +0 -8
- package/src/media/mdx/Tooltip/slot.control.en.mdx +0 -5
- package/src/media/mdx/Tooltip/slot.control.ru.mdx +0 -5
- package/src/media/mdx/Tooltip/tooltip.en.mdx +0 -34
- package/src/media/mdx/Tooltip/tooltip.ru.mdx +0 -34
- package/src/media/mdx/Tooltip/wikiMdxTooltip.ts +0 -31
- package/src/media/mdx/Window/axis.en.mdx +0 -17
- package/src/media/mdx/Window/axis.ru.mdx +0 -17
- package/src/media/mdx/Window/classes.en.mdx +0 -11
- package/src/media/mdx/Window/classes.ru.mdx +0 -11
- package/src/media/mdx/Window/event.window.en.mdx +0 -31
- package/src/media/mdx/Window/event.window.ru.mdx +0 -31
- package/src/media/mdx/Window/expose.en.mdx +0 -17
- package/src/media/mdx/Window/expose.ru.mdx +0 -17
- package/src/media/mdx/Window/hooks.en.mdx +0 -31
- package/src/media/mdx/Window/hooks.ru.mdx +0 -31
- package/src/media/mdx/Window/slots.en.mdx +0 -29
- package/src/media/mdx/Window/slots.ru.mdx +0 -29
- package/src/media/mdx/Window/staticMode.en.mdx +0 -10
- package/src/media/mdx/Window/staticMode.ru.mdx +0 -10
- package/src/media/mdx/Window/v-model.en.mdx +0 -25
- package/src/media/mdx/Window/v-model.ru.mdx +0 -25
- package/src/media/mdx/Window/wikiMdxWindow.ts +0 -67
- package/src/media/mdx/Window/window.en.mdx +0 -55
- package/src/media/mdx/Window/window.ru.mdx +0 -55
- package/src/media/mdx/event/events.actions.en.mdx +0 -44
- package/src/media/mdx/event/events.actions.ru.mdx +0 -44
- package/src/media/mdx/event/events.bars.en.mdx +0 -50
- package/src/media/mdx/event/events.bars.ru.mdx +0 -50
- package/src/media/mdx/event/events.beforeinput.en.mdx +0 -13
- package/src/media/mdx/event/events.beforeinput.ru.mdx +0 -13
- package/src/media/mdx/event/events.click.en.mdx +0 -36
- package/src/media/mdx/event/events.click.ru.mdx +0 -36
- package/src/media/mdx/event/events.focus.en.mdx +0 -13
- package/src/media/mdx/event/events.focus.ru.mdx +0 -13
- package/src/media/mdx/event/events.input.en.mdx +0 -89
- package/src/media/mdx/event/events.input.ru.mdx +0 -88
- package/src/media/mdx/event/events.inputStandard.en.mdx +0 -6
- package/src/media/mdx/event/events.inputStandard.ru.mdx +0 -6
- package/src/media/mdx/event/events.keyboard.en.mdx +0 -13
- package/src/media/mdx/event/events.keyboard.ru.mdx +0 -13
- package/src/media/mdx/event/events.paste.en.mdx +0 -6
- package/src/media/mdx/event/events.paste.ru.mdx +0 -6
- package/src/media/mdx/event/events.reset.en.mdx +0 -6
- package/src/media/mdx/event/events.reset.ru.mdx +0 -6
- package/src/media/mdx/event/wikiMdxEvent.ts +0 -68
- package/src/media/mdx/expose/expose.checkValidity.en.mdx +0 -1
- package/src/media/mdx/expose/expose.checkValidity.ru.mdx +0 -1
- package/src/media/mdx/expose/expose.clear.en.mdx +0 -1
- package/src/media/mdx/expose/expose.clear.ru.mdx +0 -1
- package/src/media/mdx/expose/expose.descriptionId.en.mdx +0 -2
- package/src/media/mdx/expose/expose.descriptionId.ru.mdx +0 -2
- package/src/media/mdx/expose/expose.detail.en.mdx +0 -1
- package/src/media/mdx/expose/expose.detail.ru.mdx +0 -1
- package/src/media/mdx/expose/expose.id.en.mdx +0 -2
- package/src/media/mdx/expose/expose.id.ru.mdx +0 -2
- package/src/media/mdx/expose/expose.labelId.en.mdx +0 -2
- package/src/media/mdx/expose/expose.labelId.ru.mdx +0 -2
- package/src/media/mdx/expose/expose.open.en.mdx +0 -1
- package/src/media/mdx/expose/expose.open.ru.mdx +0 -1
- package/src/media/mdx/expose/expose.selected.en.mdx +0 -4
- package/src/media/mdx/expose/expose.selected.ru.mdx +0 -4
- package/src/media/mdx/expose/expose.validationMessage.en.mdx +0 -1
- package/src/media/mdx/expose/expose.validationMessage.ru.mdx +0 -1
- package/src/media/mdx/expose/expose.value.en.mdx +0 -1
- package/src/media/mdx/expose/expose.value.ru.mdx +0 -1
- package/src/media/mdx/expose/wikiMdxExpose.ts +0 -68
- package/src/media/mdx/slot/body.en.mdx +0 -1
- package/src/media/mdx/slot/body.ru.mdx +0 -1
- package/src/media/mdx/slot/caption.en.mdx +0 -1
- package/src/media/mdx/slot/caption.ru.mdx +0 -1
- package/src/media/mdx/slot/control.en.mdx +0 -1
- package/src/media/mdx/slot/control.ru.mdx +0 -1
- package/src/media/mdx/slot/default.en.mdx +0 -1
- package/src/media/mdx/slot/default.ru.mdx +0 -1
- package/src/media/mdx/slot/description.en.mdx +0 -1
- package/src/media/mdx/slot/description.ru.mdx +0 -1
- package/src/media/mdx/slot/footer.en.mdx +0 -1
- package/src/media/mdx/slot/footer.ru.mdx +0 -1
- package/src/media/mdx/slot/headline.en.mdx +0 -1
- package/src/media/mdx/slot/headline.ru.mdx +0 -1
- package/src/media/mdx/slot/label.en.mdx +0 -1
- package/src/media/mdx/slot/label.ru.mdx +0 -1
- package/src/media/mdx/slot/leading.en.mdx +0 -1
- package/src/media/mdx/slot/leading.ru.mdx +0 -1
- package/src/media/mdx/slot/prefix.en.mdx +0 -1
- package/src/media/mdx/slot/prefix.ru.mdx +0 -1
- package/src/media/mdx/slot/secondary.en.mdx +0 -1
- package/src/media/mdx/slot/secondary.ru.mdx +0 -1
- package/src/media/mdx/slot/suffix.en.mdx +0 -1
- package/src/media/mdx/slot/suffix.ru.mdx +0 -1
- package/src/media/mdx/slot/trailing.en.mdx +0 -1
- package/src/media/mdx/slot/trailing.ru.mdx +0 -1
- package/src/media/mdx/slot/wikiMdxSlot.ts +0 -84
- package/src/media/mdx/style/adaptive.en.mdx +0 -10
- package/src/media/mdx/style/adaptive.ru.mdx +0 -10
- package/src/media/mdx/style/asPalette.en.mdx +0 -17
- package/src/media/mdx/style/asPalette.ru.mdx +0 -17
- package/src/media/mdx/style/dir.en.mdx +0 -17
- package/src/media/mdx/style/dir.ru.mdx +0 -17
- package/src/media/mdx/style/isSkeleton.en.mdx +0 -22
- package/src/media/mdx/style/isSkeleton.ru.mdx +0 -22
- package/src/media/mdx/style/wikiMdxStyle.ts +0 -20
- package/src/media/mdx/value/highlight.en.mdx +0 -25
- package/src/media/mdx/value/highlight.ru.mdx +0 -25
- package/src/media/mdx/value/labelNumber.en.mdx +0 -47
- package/src/media/mdx/value/labelNumber.ru.mdx +0 -47
- package/src/media/mdx/value/v-model-selected.en.mdx +0 -28
- package/src/media/mdx/value/v-model-selected.ru.mdx +0 -28
- package/src/media/mdx/value/v-model.en.mdx +0 -26
- package/src/media/mdx/value/v-model.ru.mdx +0 -26
- package/src/media/mdx/value/value.en.mdx +0 -10
- package/src/media/mdx/value/value.ru.mdx +0 -10
- package/src/media/mdx/value/wikiMdxValue.ts +0 -38
- package/src/media/mdx/wikiMdx.ts +0 -121
- package/src/media/props/wiki.ts +0 -107
- package/src/media/props/wikiActions.ts +0 -45
- package/src/media/props/wikiActionsInclude.ts +0 -66
- package/src/media/props/wikiAnchor.ts +0 -91
- package/src/media/props/wikiAria.ts +0 -145
- package/src/media/props/wikiArrow.ts +0 -25
- package/src/media/props/wikiArrowInclude.ts +0 -48
- package/src/media/props/wikiAttributes.ts +0 -211
- package/src/media/props/wikiBadge.ts +0 -48
- package/src/media/props/wikiBars.ts +0 -145
- package/src/media/props/wikiBarsInclude.ts +0 -87
- package/src/media/props/wikiButton.ts +0 -61
- package/src/media/props/wikiCheckbox.ts +0 -25
- package/src/media/props/wikiChip.ts +0 -37
- package/src/media/props/wikiChipGroup.ts +0 -39
- package/src/media/props/wikiDialog.ts +0 -33
- package/src/media/props/wikiField.ts +0 -121
- package/src/media/props/wikiFieldCounterInclude.ts +0 -89
- package/src/media/props/wikiForm.ts +0 -323
- package/src/media/props/wikiGridItem.ts +0 -73
- package/src/media/props/wikiHook.ts +0 -79
- package/src/media/props/wikiIcon.ts +0 -146
- package/src/media/props/wikiIconInclude.ts +0 -365
- package/src/media/props/wikiImage.ts +0 -208
- package/src/media/props/wikiInformation.ts +0 -220
- package/src/media/props/wikiInput.ts +0 -35
- package/src/media/props/wikiList.ts +0 -281
- package/src/media/props/wikiListItem.ts +0 -101
- package/src/media/props/wikiMask.ts +0 -123
- package/src/media/props/wikiMaskInclude.ts +0 -58
- package/src/media/props/wikiMenu.ts +0 -84
- package/src/media/props/wikiMotionAxis.ts +0 -55
- package/src/media/props/wikiMotionTransform.ts +0 -82
- package/src/media/props/wikiOption.ts +0 -410
- package/src/media/props/wikiProgress.ts +0 -104
- package/src/media/props/wikiPropsTextarea.ts +0 -24
- package/src/media/props/wikiScrollbar.ts +0 -89
- package/src/media/props/wikiSelect.ts +0 -68
- package/src/media/props/wikiSelectValue.ts +0 -30
- package/src/media/props/wikiSnackbar.ts +0 -58
- package/src/media/props/wikiSnackbarItem.ts +0 -39
- package/src/media/props/wikiStatus.ts +0 -172
- package/src/media/props/wikiStyle.ts +0 -382
- package/src/media/props/wikiTabs.ts +0 -15
- package/src/media/props/wikiTabsNavigation.ts +0 -54
- package/src/media/props/wikiTechnical.ts +0 -199
- package/src/media/props/wikiText.ts +0 -181
- package/src/media/props/wikiTooltip.ts +0 -53
- package/src/media/props/wikiValue.ts +0 -197
- package/src/media/props/wikiWindow.ts +0 -277
- package/src/media/styles/en/about.mdx +0 -79
- package/src/media/styles/en/color.mdx +0 -711
- package/src/media/styles/en/content.mdx +0 -29
- package/src/media/styles/en/dimension.mdx +0 -233
- package/src/media/styles/en/dir.mdx +0 -193
- package/src/media/styles/en/flex.mdx +0 -249
- package/src/media/styles/en/font.mdx +0 -171
- package/src/media/styles/en/margin.mdx +0 -115
- package/src/media/styles/en/media.mdx +0 -133
- package/src/media/styles/en/padding.mdx +0 -115
- package/src/media/styles/en/position.mdx +0 -183
- package/src/media/styles/en/rules.mdx +0 -117
- package/src/media/styles/en/scrollbar.mdx +0 -27
- package/src/media/styles/en/selector.mdx +0 -153
- package/src/media/styles/en/transform.mdx +0 -114
- package/src/media/styles/ru/about.mdx +0 -78
- package/src/media/styles/ru/color.mdx +0 -711
- package/src/media/styles/ru/content.mdx +0 -30
- package/src/media/styles/ru/dimension.mdx +0 -233
- package/src/media/styles/ru/dir.mdx +0 -193
- package/src/media/styles/ru/flex.mdx +0 -249
- package/src/media/styles/ru/font.mdx +0 -171
- package/src/media/styles/ru/margin.mdx +0 -115
- package/src/media/styles/ru/media.mdx +0 -133
- package/src/media/styles/ru/padding.mdx +0 -115
- package/src/media/styles/ru/position.mdx +0 -183
- package/src/media/styles/ru/rules.mdx +0 -117
- package/src/media/styles/ru/scrollbar.mdx +0 -27
- package/src/media/styles/ru/selector.mdx +0 -153
- package/src/media/styles/ru/transform.mdx +0 -114
- package/src/types/storybookTypes.ts +0 -273
- package/src/types/wikiTypes.ts +0 -10
- package/src/vite-env.d.ts +0 -1
- /package/{src → dist}/shims-mdx.d.ts +0 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/en/# UI/properties/types/Pseudo-classes and pseudo-elements (selector, virtual)'/>
|
|
4
|
+
|
|
5
|
+
# Pseudo-classes and pseudo-elements (selector, virtual)
|
|
6
|
+
|
|
7
|
+
The `selector` and `virtual` structural types are designed to style native browser interaction states and generated elements (specifically, pseudo-classes like `:hover`, `:focus` and pseudo-elements like `::before`, `::after`). The compiler inherently binds these structures to the parent block utilizing fundamental SCSS conventions (`&:` and `&::`).
|
|
8
|
+
|
|
9
|
+
These types can be initialized using the explicit shortcuts `:` (for selectors) and `::` (for virtual elements). Furthermore, the majority of standard browser keys (such as `hover`, `active`, `before`) are natively recognized and automatically parsed by the compiler without requiring strict prefixes.
|
|
10
|
+
|
|
11
|
+
**Input Configuration (`properties.json`):**
|
|
12
|
+
> For pseudo-elements (`virtual`), the compiler automatically injects the foundational `content: ""` property into the output, making manual declaration entirely redundant.
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"button": {
|
|
16
|
+
"padding": "12px",
|
|
17
|
+
|
|
18
|
+
":hover": { // Explicit pseudo-class (selector, : prefix)
|
|
19
|
+
"opacity": "0.8"
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"::after": { // Explicit pseudo-element (virtual, :: prefix)
|
|
23
|
+
"position": "absolute",
|
|
24
|
+
"inset": "0"
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
"active": { // Implicit declaration (auto-detected)
|
|
28
|
+
"transform": "scale(0.95)"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Conceptual Compiled Output (SCSS):**
|
|
35
|
+
```scss
|
|
36
|
+
.button {
|
|
37
|
+
padding: 12px;
|
|
38
|
+
|
|
39
|
+
&:hover { opacity: 0.8; }
|
|
40
|
+
|
|
41
|
+
&::after {
|
|
42
|
+
content: "";
|
|
43
|
+
position: absolute;
|
|
44
|
+
inset: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:active { transform: scale(0.95); }
|
|
48
|
+
}
|
|
49
|
+
```
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/ru/# UI/properties/types/Псевдоклассы и псевдоэлементы (selector, virtual)'/>
|
|
4
|
+
|
|
5
|
+
# Псевдоклассы и псевдоэлементы (selector, virtual)
|
|
6
|
+
|
|
7
|
+
Структурные типы `selector` и `virtual` предназначены для стилизации нативных состояний и элементов в браузере (соответственно, псевдоклассов `:hover`, `:focus` и псевдоэлементов `::before`, `::after`). Компилятор привязывает эти стили к родительскому блоку с использованием базового синтаксиса SCSS (`&:` и `&::`).
|
|
8
|
+
|
|
9
|
+
Объявить эти типы можно с помощью шорткатов `:` (для псевдоклассов) и `::` (для псевдоэлементов). Большинство стандартных браузерных ключей (таких как `hover`, `active`, `before`) также распознаются компилятором автоматически без явных префиксов.
|
|
10
|
+
|
|
11
|
+
**Входная конфигурация (`properties.json`):**
|
|
12
|
+
> Для псевдоэлементов (`virtual`) компилятор автоматически генерирует базовое свойство `content: ""`, поэтому вручную прописывать его в конфигурации не нужно.
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"button": {
|
|
16
|
+
"padding": "12px",
|
|
17
|
+
|
|
18
|
+
":hover": { // Явный псевдокласс (selector, префикс :)
|
|
19
|
+
"opacity": "0.8"
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"::after": { // Явный псевдоэлемент (virtual, префикс ::)
|
|
23
|
+
"position": "absolute",
|
|
24
|
+
"inset": "0"
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
"active": { // Неявное объявление (определяется автоматически)
|
|
28
|
+
"transform": "scale(0.95)"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Ожидаемый результат генерации (SCSS):**
|
|
35
|
+
```scss
|
|
36
|
+
.button {
|
|
37
|
+
padding: 12px;
|
|
38
|
+
|
|
39
|
+
&:hover { opacity: 0.8; }
|
|
40
|
+
|
|
41
|
+
&::after {
|
|
42
|
+
content: "";
|
|
43
|
+
position: absolute;
|
|
44
|
+
inset: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:active { transform: scale(0.95); }
|
|
48
|
+
}
|
|
49
|
+
```
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/vi/# UI/properties/types/Pseudo-classes và pseudo-elements (selector, virtual)'/>
|
|
4
|
+
|
|
5
|
+
# Pseudo-classes và pseudo-elements (selector, virtual)
|
|
6
|
+
|
|
7
|
+
Loại cấu trúc `selector` và `virtual` được dọn đường để xử lý tạo kiểu cho các trạng thái chuẩn của trình duyệt (cụ thể là các pseudo-class như `:hover`, `:focus` rẽ nhánh kèm chuỗi pseudo-element giả như `::before`, `::after`). Bộ Compiler sẽ ngầm ghim dính bộ thuộc tính này ngược vào block cha với cú pháp SCSS siêu kinh điển (`&:` và `&::`).
|
|
8
|
+
|
|
9
|
+
Lập trình viên có thể khai báo chúng qua shortcut cấp tốc `:` (dành cho selector) và `::` (dành cho virtual element). Hơn nữa, gần như toàn bộ kho từ khóa phổ thông của CSS (như `hover`, `active`, `before`) đều được trí tuệ nhân tạo của code bộ biên dịch nhận diện tự động mà không cần mồi sẵn một prefix nào cả.
|
|
10
|
+
|
|
11
|
+
**File Cấu hình Đầu vào (`properties.json`):**
|
|
12
|
+
> Đối với pseudo-elements (`virtual`), compiler sẽ tự động chèn sẵn tham số gốc `content: ""` vào tệp CSS, lập trình viên không cần mất công khai báo thủ công.
|
|
13
|
+
```json
|
|
14
|
+
{
|
|
15
|
+
"button": {
|
|
16
|
+
"padding": "12px",
|
|
17
|
+
|
|
18
|
+
":hover": { // Pseudo-class cắm cờ (selector, tiền tố :)
|
|
19
|
+
"opacity": "0.8"
|
|
20
|
+
},
|
|
21
|
+
|
|
22
|
+
"::after": { // Pseudo-element cắm cờ (virtual, tiền tố ::)
|
|
23
|
+
"position": "absolute",
|
|
24
|
+
"inset": "0"
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
"active": { // Khai báo tàng hình (tự động nội suy)
|
|
28
|
+
"transform": "scale(0.95)"
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Kết quả Biên dịch Dự kiến (SCSS Output):**
|
|
35
|
+
```scss
|
|
36
|
+
.button {
|
|
37
|
+
padding: 12px;
|
|
38
|
+
|
|
39
|
+
&:hover { opacity: 0.8; }
|
|
40
|
+
|
|
41
|
+
&::after {
|
|
42
|
+
content: "";
|
|
43
|
+
position: absolute;
|
|
44
|
+
inset: 0;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&:active { transform: scale(0.95); }
|
|
48
|
+
}
|
|
49
|
+
```
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/en/# UI/properties/types/State (state)'/>
|
|
4
|
+
|
|
5
|
+
# State (state)
|
|
6
|
+
|
|
7
|
+
The `state` structural type is designated for conceptualizing functional variations, interactive modes, or modifier scales (such as size grids). Assigning this type explicitly forces the compiler to map a modifier CSS class natively to the parent scope adhering to BEM (e.g., `&--primary` or composite `&--size-sm`).
|
|
8
|
+
|
|
9
|
+
States can be rigidly declared utilizing the `~` prefix or manually via the systemic `_type: "state"` property. Within `dxt-ui`, every declared state natively reflects in the component's strict typings (`props.ts`) and synchronizes with Vue's reactive prop bindings.
|
|
10
|
+
|
|
11
|
+
The architectural engine relies on two foundational approaches:
|
|
12
|
+
- **Singular states:** Utilized for pure boolean toggle flags (e.g., `~primary`). The corresponding compiled modifier is mapped explicitly (`&--primary`).
|
|
13
|
+
- **Grouped states:** Utilized for array-like or multi-value properties (e.g., the `~size` grid). Nested structural keys organically emit composite modifiers (`&--size-sm`).
|
|
14
|
+
|
|
15
|
+
> The `_default` key defines the foundational fallback value during component initialization. Boolean flags accept a `true` assignment, whereas grouped parameters require the string identifier of the active node (e.g., `"md"`). The compiler automatically translates this structural fallback into the `props.ts` configuration.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
**Input Configuration (`properties.json`):**
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"button": {
|
|
22
|
+
"padding": "12px",
|
|
23
|
+
|
|
24
|
+
"~primary": { // Singular state (utilizing ~ alias)
|
|
25
|
+
"background-color": "blue",
|
|
26
|
+
"_default": true // Boolean default fallback
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
"disabled": { // Explicit state type assignment
|
|
30
|
+
"_type": "state",
|
|
31
|
+
"opacity": "0.5"
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
"~size": { // Grouped multi-value states
|
|
35
|
+
"sm": { "height": "32px" },
|
|
36
|
+
"md": { "height": "40px" },
|
|
37
|
+
"_default": "md" // String default fallback
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Conceptual Compiled Output (SCSS):**
|
|
44
|
+
```scss
|
|
45
|
+
.button {
|
|
46
|
+
padding: 12px;
|
|
47
|
+
|
|
48
|
+
&--primary { background-color: blue; }
|
|
49
|
+
&--disabled { opacity: 0.5; }
|
|
50
|
+
&--size-sm { height: 32px; }
|
|
51
|
+
&--size-md { height: 40px; }
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Vue Integration (`props.ts` and `Component.vue`):**
|
|
56
|
+
```typescript
|
|
57
|
+
// --- props.ts ---
|
|
58
|
+
primary?: boolean
|
|
59
|
+
disabled?: boolean
|
|
60
|
+
size?: 'sm' | 'md'
|
|
61
|
+
|
|
62
|
+
// --- Component.vue (class bindings) ---
|
|
63
|
+
'd1-button--primary': props.primary,
|
|
64
|
+
'd1-button--disabled': props.disabled,
|
|
65
|
+
[`d1-button--size--${props.size}`]: inArray(propsValues.size, props.size)
|
|
66
|
+
```
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/ru/# UI/properties/types/Состояние (state)'/>
|
|
4
|
+
|
|
5
|
+
# Состояние (state)
|
|
6
|
+
|
|
7
|
+
Тип `state` предназначен для описания вариаций, интерактивных режимов или сеток модификаторов (например, размеров). Привязка этого типа предписывает компилятору сгенерировать класс-модификатор по методологии BEM (например, `&--primary` или составной `&--size-sm`).
|
|
8
|
+
|
|
9
|
+
Объявить состояние можно с помощью префикса `~` или явно через `_type: "state"`. В `dxt-ui` каждое объявленное состояние автоматически типизируется в `props.ts` и привязывается к реактивным свойствам Vue.
|
|
10
|
+
|
|
11
|
+
В системе выделяют два основных подхода к формированию состояний:
|
|
12
|
+
- **Одиночное состояние:** Используется для простых булевых флагов (например, `~primary`). Результирующий класс-модификатор строится напрямую (`&--primary`).
|
|
13
|
+
- **Сгруппированные состояния:** Используется для многозначных параметров (например, размерной сетки `~size`). Вложенные в него ключи образуют составные модификаторы (`&--size-sm`).
|
|
14
|
+
|
|
15
|
+
> Ключ `_default` определяет базовое значение свойства при инициализации компонента. Для булевых флагов задается значение `true`, а для сгруппированных параметров — строковой идентификатор активного узла (например, `"md"`). Компилятор автоматически транслирует это значение в файле `props.ts`.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
**Входная конфигурация (`properties.json`):**
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"button": {
|
|
22
|
+
"padding": "12px",
|
|
23
|
+
|
|
24
|
+
"~primary": { // Одиночное состояние (алиас ~)
|
|
25
|
+
"background-color": "blue",
|
|
26
|
+
"_default": true // Булево значение по умолчанию
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
"disabled": { // Явное объявление типа (state)
|
|
30
|
+
"_type": "state",
|
|
31
|
+
"opacity": "0.5"
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
"~size": { // Сгруппированные состояния
|
|
35
|
+
"sm": { "height": "32px" },
|
|
36
|
+
"md": { "height": "40px" },
|
|
37
|
+
"_default": "md" // Строковое значение по умолчанию
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Ожидаемый результат генерации (SCSS):**
|
|
44
|
+
```scss
|
|
45
|
+
.button {
|
|
46
|
+
padding: 12px;
|
|
47
|
+
|
|
48
|
+
&--primary { background-color: blue; }
|
|
49
|
+
&--disabled { opacity: 0.5; }
|
|
50
|
+
&--size-sm { height: 32px; }
|
|
51
|
+
&--size-md { height: 40px; }
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Интеграция с Vue (`props.ts` и `Component.vue`):**
|
|
56
|
+
```typescript
|
|
57
|
+
// --- props.ts ---
|
|
58
|
+
primary?: boolean
|
|
59
|
+
disabled?: boolean
|
|
60
|
+
size?: 'sm' | 'md'
|
|
61
|
+
|
|
62
|
+
// --- Component.vue (classes) ---
|
|
63
|
+
'd1-button--primary': props.primary,
|
|
64
|
+
'd1-button--disabled': props.disabled,
|
|
65
|
+
[`d1-button--size--${props.size}`]: inArray(propsValues.size, props.size)
|
|
66
|
+
```
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/vi/# UI/properties/types/Trạng thái (state)'/>
|
|
4
|
+
|
|
5
|
+
# Trạng thái (state)
|
|
6
|
+
|
|
7
|
+
Type cấu trúc `state` được sinh ra để đặc tả các luồng biến thể, chế độ tương tác phụ trợ, hoặc lưới modifier đa dạng (như size grid). Phân bổ Type này sẽ ấn định cỗ máy Compiler gen dòng mã class CSS modifier tuân thủ nguyên lý BEM đính trực tiếp vào block cha (Ví dụ: `&--primary` hoặc chuỗi phức hợp `&--size-sm`).
|
|
8
|
+
|
|
9
|
+
Lập trình viên có thể khởi tạo state bằng mã phím tắt rút gọn `~` hoặc ghim cứng bằng lệnh qua định danh tham số `_type: "state"`. Trong lõi `dxt-ui`, mọi state khởi tạo sẽ tự động rễ bám sâu vào lớp type (`props.ts`) lẫn luồng chốt class binding reactive của Vue.
|
|
10
|
+
|
|
11
|
+
Bên trong hệ sinh thái của compiler, chúng ta phân tách làm hai thủ pháp chủ đạo:
|
|
12
|
+
- **Trạng thái đơn lẻ:** Được trưng dụng cho các cờ boolean cơ sở (Ví dụ: thiết lập `~primary`). Compiler sẽ đúc thẳng tắp ra class modifier gốc (`&--primary`).
|
|
13
|
+
- **Trạng thái gom nhóm đa cực:** Được trưng dụng cho bộ thông số nhiều lớp giá trị (Ví dụ: scale `~size`). Các nhánh lồng bên trong sẽ ép dính thành chuỗi modifier ghép nối tiếp (`&--size-sm`).
|
|
14
|
+
|
|
15
|
+
> Khóa `_default` xác định giá trị cơ sở mặc định trong quá trình khởi tạo component. Cờ Boolean nhận trạng thái `true`, trong khi các tham số nhóm yêu cầu chuỗi định danh của node mục tiêu (ví dụ: `"md"`). Compiler sẽ tự động dịch chuyển thiết lập này thành giá trị ẩn định trong cấu hình `props.ts`.
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
**File Cấu hình Đầu vào (`properties.json`):**
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"button": {
|
|
22
|
+
"padding": "12px",
|
|
23
|
+
|
|
24
|
+
"~primary": { // Trạng thái cục bộ (lối tắt ~)
|
|
25
|
+
"background-color": "blue",
|
|
26
|
+
"_default": true // Cấu hình cờ boolean mặc định
|
|
27
|
+
},
|
|
28
|
+
|
|
29
|
+
"disabled": { // Khai báo explicit state
|
|
30
|
+
"_type": "state",
|
|
31
|
+
"opacity": "0.5"
|
|
32
|
+
},
|
|
33
|
+
|
|
34
|
+
"~size": { // Gom nhóm trạng thái đa cực
|
|
35
|
+
"sm": { "height": "32px" },
|
|
36
|
+
"md": { "height": "40px" },
|
|
37
|
+
"_default": "md" // Cấu hình string mặc định
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
**Kết quả Biên dịch Dự kiến (SCSS Output):**
|
|
44
|
+
```scss
|
|
45
|
+
.button {
|
|
46
|
+
padding: 12px;
|
|
47
|
+
|
|
48
|
+
&--primary { background-color: blue; }
|
|
49
|
+
&--disabled { opacity: 0.5; }
|
|
50
|
+
&--size-sm { height: 32px; }
|
|
51
|
+
&--size-md { height: 40px; }
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Đồng bộ Tích hợp Vue (`props.ts` và `Component.vue`):**
|
|
56
|
+
```typescript
|
|
57
|
+
// --- props.ts ---
|
|
58
|
+
primary?: boolean
|
|
59
|
+
disabled?: boolean
|
|
60
|
+
size?: 'sm' | 'md'
|
|
61
|
+
|
|
62
|
+
// --- Component.vue (dynamic class bindings) ---
|
|
63
|
+
'd1-button--primary': props.primary,
|
|
64
|
+
'd1-button--disabled': props.disabled,
|
|
65
|
+
[`d1-button--size--${props.size}`]: inArray(propsValues.size, props.size)
|
|
66
|
+
```
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/en/# UI/properties/types/Subclass (subclass)'/>
|
|
4
|
+
|
|
5
|
+
# Subclass (subclass)
|
|
6
|
+
|
|
7
|
+
The `subclass` type is designated for conceptualizing nested structural blocks conforming to the BEM (Block-Element-Modifier) architectural methodology. Assigning this type forces the compiler to generate a deeply nested descendant CSS class firmly rooted to the parent identifier (e.g., `&__element`).
|
|
8
|
+
|
|
9
|
+
The optimal standard practice for initiating a subclass branch utilizes the `#` prefix. For rigid and explicit structural assignments, the `subclass` type may be statically assigned utilizing the internal `_type` property. Both methodologies emit parallel internal structures.
|
|
10
|
+
|
|
11
|
+
**Input Configuration (`properties.json`):**
|
|
12
|
+
```json
|
|
13
|
+
{
|
|
14
|
+
"card": {
|
|
15
|
+
"padding": "16px",
|
|
16
|
+
|
|
17
|
+
"#icon": { // Utilizing the # alias prefix
|
|
18
|
+
"width": "24px"
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
"content": { // Explicit structural type assignment
|
|
22
|
+
"_type": "subclass",
|
|
23
|
+
"display": "flex"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Conceptual Compiled Output (SCSS):**
|
|
30
|
+
```scss
|
|
31
|
+
.card {
|
|
32
|
+
padding: 16px;
|
|
33
|
+
|
|
34
|
+
&__icon {
|
|
35
|
+
width: 24px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__content {
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Utilizing `subclass` explicitly governs CSS scope isolation, fundamentally averting global namespace collisions and tying dependent components intimately to the primary architectural parent.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/ru/# UI/properties/types/Подкласс (subclass)'/>
|
|
4
|
+
|
|
5
|
+
# Подкласс (subclass)
|
|
6
|
+
|
|
7
|
+
Тип `subclass` используется для создания вложенных структурных элементов по методологии BEM (Блок-Элемент-Модификатор). Привязка этого типа к узлу предписывает компилятору сгенерировать дочерний CSS-класс, используя родительское имя как основу (например, `&__element`).
|
|
8
|
+
|
|
9
|
+
Наиболее частый и лаконичный способ создать подкласс — использование префикса `#`. Для строгой, развернутой структурной разметки тип `subclass` можно объявить явно через свойство `_type`. Оба подхода генерируют идентичный результат.
|
|
10
|
+
|
|
11
|
+
**Входная конфигурация (`properties.json`):**
|
|
12
|
+
```json
|
|
13
|
+
{
|
|
14
|
+
"card": {
|
|
15
|
+
"padding": "16px",
|
|
16
|
+
|
|
17
|
+
"#icon": { // Использование алиаса #
|
|
18
|
+
"width": "24px"
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
"content": { // Явное объявление типа
|
|
22
|
+
"_type": "subclass",
|
|
23
|
+
"display": "flex"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Ожидаемый результат генерации (SCSS):**
|
|
30
|
+
```scss
|
|
31
|
+
.card {
|
|
32
|
+
padding: 16px;
|
|
33
|
+
|
|
34
|
+
&__icon {
|
|
35
|
+
width: 24px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__content {
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Использование типа `subclass` гарантирует надежную инкапсуляцию стилей и предотвращает глобальное загрязнение CSS, жестко привязывая внутренние элементы к их компоненту-родителю.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/vi/# UI/properties/types/Lớp con (subclass)'/>
|
|
4
|
+
|
|
5
|
+
# Lớp con (subclass)
|
|
6
|
+
|
|
7
|
+
Type cấu trúc `subclass` được sinh ra chuyên dụng để khởi tạo các thực thể mảng lồng nhau (nested element) tuân thủ quy chuẩn hình thái BEM (Block-Element-Modifier). Phân bổ Type này sẽ cưỡng chế bộ máy Compiler xuất bản dòng mã chuỗi class CSS con trực tiếp được gắn kèm đằng sau tên định danh cha gốc (Ví dụ: biên dịch vòng lặp qua cấu trúc `&__element`).
|
|
8
|
+
|
|
9
|
+
Giải pháp tối ưu và lả lướt nhất để sản sinh một class lồng con vĩnh viễn là sử dụng mã ký hiệu `#` ở tiền tố. Tuỳ nhiên đối với những cấu trúc rập khuôn cứng nhắc, thao tác cấu hình bung rộng tham số type explicit `_type: "subclass"` vẫn được trưng dụng đồng tâm hiệp lực. Cả hai giải pháp gen cùng một kết quả biên dịch hệ thống.
|
|
10
|
+
|
|
11
|
+
**File Cấu hình Đầu vào (`properties.json`):**
|
|
12
|
+
```json
|
|
13
|
+
{
|
|
14
|
+
"card": {
|
|
15
|
+
"padding": "16px",
|
|
16
|
+
|
|
17
|
+
"#icon": { // Áp dụng định danh lối tắt #
|
|
18
|
+
"width": "24px"
|
|
19
|
+
},
|
|
20
|
+
|
|
21
|
+
"content": { // Phân rã cấu trúc type explicit
|
|
22
|
+
"_type": "subclass",
|
|
23
|
+
"display": "flex"
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
**Kết quả Biên dịch Dự kiến (SCSS Output):**
|
|
30
|
+
```scss
|
|
31
|
+
.card {
|
|
32
|
+
padding: 16px;
|
|
33
|
+
|
|
34
|
+
&__icon {
|
|
35
|
+
width: 24px;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&__content {
|
|
39
|
+
display: flex;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Sức mạnh trọng tâm của dạng thức `subclass` đảm nhận nhiệm vụ cô lập tầm vực scope CSS. Toàn bộ code gắn Subclass đóng chốt hiện tượng tranh chấp lớp class CSS trên toàn cục, ráp chặt mối nối UI phụ tùng vào thẳng lõi gốc cha.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/en/# UI/properties/types/Variables (var)'/>
|
|
4
|
+
|
|
5
|
+
# Variables (var)
|
|
6
|
+
|
|
7
|
+
The property generation engine provides two distinct methodologies for managing CSS Custom Properties (variables): explicit variable declaration utilizing the structural `var` type, and combinatorial generation encompassing both properties and variables via the `_var: true` boolean flag.
|
|
8
|
+
|
|
9
|
+
## Declarative Assignment (Type `var`)
|
|
10
|
+
|
|
11
|
+
Assigning the `var` type (or utilizing its symbolic alias `$`) instructs the compiler to bypass standard CSS property generation. The target node is compiled strictly as a native CSS variable injected securely into the local compilation scope of the component.
|
|
12
|
+
|
|
13
|
+
> **Type Inheritance:** The `var` type propagates structurally. If a parent node is declared as `var` (or prefixed with `$`), all structurally nested child nodes will inherently adopt the exact same type. There is no need to iteratively declare `var` on succeeding descendants.
|
|
14
|
+
|
|
15
|
+
**Input Configuration (`properties.json`):**
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
"card": {
|
|
19
|
+
"padding": {
|
|
20
|
+
"_type": "var",
|
|
21
|
+
"value": "16px"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
*(Deploying the symbol alias `$padding: "16px"` yields an identical output structural tree).*
|
|
27
|
+
|
|
28
|
+
**Conceptual Compiled Output (SCSS):**
|
|
29
|
+
```scss
|
|
30
|
+
.card {
|
|
31
|
+
--card-padding: 16px;
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Combinatorial Generation (Flag `_var`)
|
|
36
|
+
|
|
37
|
+
Component architectures frequently require rendering a conventional physical CSS attribute while abstracting its core value strictly behind a dynamic CSS variable (vital for theming integrations or dynamic Vue runtime bindings).
|
|
38
|
+
|
|
39
|
+
This is achieved securely using the configuration flag `_var: true`. This modifier retains the target node's designated structure type (inherently `property` unless overridden), coercing the compiler to execute a dual-stage emission:
|
|
40
|
+
1. Formulating and compiling a robust CSS variable initialized with the active literal value.
|
|
41
|
+
2. Formulating the target physical CSS property, structurally pointing its value to the evaluated `var()` function output.
|
|
42
|
+
|
|
43
|
+
**Input Configuration (`properties.json`):**
|
|
44
|
+
```json
|
|
45
|
+
{
|
|
46
|
+
"button": {
|
|
47
|
+
"background": {
|
|
48
|
+
"_var": true,
|
|
49
|
+
"value": "blue"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Conceptual Compiled Output (SCSS):**
|
|
56
|
+
```scss
|
|
57
|
+
.button {
|
|
58
|
+
--button-background: blue;
|
|
59
|
+
background: var(--button-background);
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Effectively, deploying the `_var: true` modifier permanently mitigates manual assignment repetition, automating the structural linkage between dynamic CSS variables and literal CSS properties inside configuration trees.
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/ru/# UI/properties/types/Переменные (var)'/>
|
|
4
|
+
|
|
5
|
+
# Переменные (var)
|
|
6
|
+
|
|
7
|
+
Система генерации свойств предлагает два механизма работы с пользовательскими CSS-переменными (Custom Properties): явное объявление узла как переменной с помощью системного типа `var` и комбинированную генерацию свойств и переменных с помощью флага `_var: true`.
|
|
8
|
+
|
|
9
|
+
## Декларативное объявление (Тип `var`)
|
|
10
|
+
|
|
11
|
+
Тип `var` (или его алиас `$`) предписывает компилятору отказаться от создания обычного CSS-свойства. Узел компилируется исключительно как CSS-переменная и становится доступен в области видимости (scope) текущего компонента.
|
|
12
|
+
|
|
13
|
+
> **Каскадное наследование:** Тип `var` обладает свойством структурного нисхождения. Если родительский узел объявлен как `var` (или через алиас `$`), все его вложенные дочерние узлы автоматически унаследуют этот же тип. Вам не нужно дублировать объявление `var` для каждого потомка.
|
|
14
|
+
|
|
15
|
+
**Входная конфигурация (`properties.json`):**
|
|
16
|
+
```json
|
|
17
|
+
{
|
|
18
|
+
"card": {
|
|
19
|
+
"padding": {
|
|
20
|
+
"_type": "var",
|
|
21
|
+
"value": "16px"
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
*(Использование алиаса `$padding: "16px"` приведет к абсолютно идентичному результату).*
|
|
27
|
+
|
|
28
|
+
**Ожидаемый результат генерации (SCSS):**
|
|
29
|
+
```scss
|
|
30
|
+
.card {
|
|
31
|
+
--card-padding: 16px;
|
|
32
|
+
}
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
## Комбинированная генерация (Флаг `_var`)
|
|
36
|
+
|
|
37
|
+
Часто возникает архитектурная потребность сгенерировать классическое физическое CSS-свойство, но при этом "запитать" его от изменяемой CSS-переменной (например, для динамической смены тем или состояний во Vue-компоненте).
|
|
38
|
+
|
|
39
|
+
Для этого используется конфигурационный флаг `_var: true`. Он позволяет узлу сохранить свой изначальный тип (по умолчанию `property`), но заставляет компилятор выполнить сразу два действия:
|
|
40
|
+
1. Сгенерировать CSS-переменную со значением свойства.
|
|
41
|
+
2. Присвоить самому CSS-свойству значение через функцию `var()`.
|
|
42
|
+
|
|
43
|
+
**Входная конфигурация (`properties.json`):**
|
|
44
|
+
```json
|
|
45
|
+
{
|
|
46
|
+
"button": {
|
|
47
|
+
"background": {
|
|
48
|
+
"_var": true,
|
|
49
|
+
"value": "blue"
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
**Ожидаемый результат компиляции (SCSS/CSS):**
|
|
56
|
+
```scss
|
|
57
|
+
.button {
|
|
58
|
+
--button-background: blue;
|
|
59
|
+
background: var(--button-background);
|
|
60
|
+
}
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
Таким образом, использование мульти-флага `_var: true` полностью устраняет необходимость писать дублирующийся код рутинной привязки переменных к свойствам.
|