@dxtmisha/wiki 0.24.1 → 0.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -2
- package/src/library.ts +7 -7
- package/src/media/descriptions/wikiDescriptionsBars.ts +1 -3
- package/src/media/descriptions/wikiDescriptionsCell.ts +1 -2
- package/src/media/descriptions/wikiDescriptionsChip.ts +0 -1
- package/src/media/descriptions/wikiDescriptionsField.ts +1 -4
- package/src/media/descriptions/wikiDescriptionsFieldCounter.ts +6 -6
- package/src/media/descriptions/wikiDescriptionsFieldMessage.ts +1 -2
- package/src/media/descriptions/wikiDescriptionsImage.ts +2 -2
- package/src/media/descriptions/wikiDescriptionsList.ts +1 -5
- package/src/media/descriptions/wikiDescriptionsListGroup.ts +2 -3
- package/src/media/descriptions/wikiDescriptionsListItem.ts +1 -3
- package/src/media/descriptions/wikiDescriptionsListMenu.ts +2 -9
- package/src/media/descriptions/wikiDescriptionsMask.ts +12 -0
- package/src/media/descriptions/wikiDescriptionsMenu.ts +3 -14
- package/src/media/descriptions/wikiDescriptionsMotionTransform.ts +2 -4
- package/src/media/descriptions/wikiDescriptionsScrollbar.ts +1 -7
- package/src/media/descriptions/wikiDescriptionsSkeleton.ts +1 -0
- package/src/media/descriptions/wikiDescriptionsWindow.ts +5 -22
- package/src/media/functional/en/broadcastMessage.mdx +307 -0
- package/src/media/functional/ru/broadcastMessage.mdx +305 -0
- package/src/media/mdx/Badge/badge.en.mdx +85 -7
- package/src/media/mdx/Badge/badge.ru.mdx +85 -7
- package/src/media/mdx/Badge/dot.en.mdx +16 -12
- package/src/media/mdx/Badge/dot.ru.mdx +16 -12
- package/src/media/mdx/Badge/outline.en.mdx +12 -13
- package/src/media/mdx/Badge/outline.ru.mdx +12 -13
- package/src/media/mdx/Badge/primary.en.mdx +12 -12
- package/src/media/mdx/Badge/primary.ru.mdx +12 -12
- package/src/media/mdx/Badge/secondary.en.mdx +12 -13
- package/src/media/mdx/Badge/secondary.ru.mdx +12 -13
- package/src/media/mdx/Bars/action.en.mdx +72 -28
- package/src/media/mdx/Bars/action.ru.mdx +73 -29
- package/src/media/mdx/Bars/bars.en.mdx +90 -15
- package/src/media/mdx/Bars/bars.ru.mdx +91 -15
- package/src/media/mdx/Bars/slots.en.mdx +33 -0
- package/src/media/mdx/Bars/slots.ru.mdx +33 -0
- package/src/media/mdx/Bars/v-model.en.mdx +23 -14
- package/src/media/mdx/Bars/v-model.ru.mdx +23 -14
- package/src/media/mdx/Bars/wikiMdxBars.ts +5 -11
- package/src/media/mdx/Button/button.en.mdx +89 -1
- package/src/media/mdx/Button/button.ru.mdx +89 -1
- package/src/media/mdx/Button/outline.en.mdx +12 -14
- package/src/media/mdx/Button/outline.ru.mdx +12 -14
- package/src/media/mdx/Button/primary.en.mdx +12 -19
- package/src/media/mdx/Button/primary.ru.mdx +12 -19
- package/src/media/mdx/Button/secondary.en.mdx +12 -17
- package/src/media/mdx/Button/secondary.ru.mdx +12 -17
- package/src/media/mdx/Button/text.en.mdx +12 -11
- package/src/media/mdx/Button/text.ru.mdx +12 -11
- package/src/media/mdx/Cell/cell.en.mdx +50 -9
- package/src/media/mdx/Cell/cell.ru.mdx +50 -9
- package/src/media/mdx/Cell/slots.en.mdx +82 -0
- package/src/media/mdx/Cell/slots.ru.mdx +83 -0
- package/src/media/mdx/Cell/wikiMdxCell.ts +6 -12
- package/src/media/mdx/Chip/assistive.en.mdx +12 -14
- package/src/media/mdx/Chip/assistive.ru.mdx +12 -14
- package/src/media/mdx/Chip/chip.en.mdx +69 -9
- package/src/media/mdx/Chip/chip.ru.mdx +69 -9
- package/src/media/mdx/Chip/input.en.mdx +12 -19
- package/src/media/mdx/Chip/input.ru.mdx +12 -19
- package/src/media/mdx/Field/arrows.en.mdx +67 -17
- package/src/media/mdx/Field/arrows.ru.mdx +67 -17
- package/src/media/mdx/Field/cancel.en.mdx +47 -10
- package/src/media/mdx/Field/cancel.ru.mdx +47 -10
- package/src/media/mdx/Field/field.en.mdx +45 -15
- package/src/media/mdx/Field/field.ru.mdx +45 -15
- package/src/media/mdx/Field/slots.en.mdx +151 -0
- package/src/media/mdx/Field/slots.ru.mdx +151 -0
- package/src/media/mdx/Field/value.en.mdx +49 -28
- package/src/media/mdx/Field/value.ru.mdx +49 -28
- package/src/media/mdx/Field/width.en.mdx +21 -19
- package/src/media/mdx/Field/width.ru.mdx +21 -19
- package/src/media/mdx/Field/wikiMdxField.ts +14 -26
- package/src/media/mdx/FieldCounter/fieldCounter.en.mdx +52 -14
- package/src/media/mdx/FieldCounter/fieldCounter.ru.mdx +55 -14
- package/src/media/mdx/FieldCounter/templates.en.mdx +26 -6
- package/src/media/mdx/FieldCounter/templates.ru.mdx +25 -5
- package/src/media/mdx/FieldLabel/fieldLabel.en.mdx +56 -14
- package/src/media/mdx/FieldLabel/fieldLabel.ru.mdx +56 -14
- package/src/media/mdx/FieldMessage/fieldMessage.en.mdx +58 -14
- package/src/media/mdx/FieldMessage/fieldMessage.ru.mdx +58 -14
- package/src/media/mdx/FieldMessage/slots.en.mdx +45 -0
- package/src/media/mdx/FieldMessage/slots.ru.mdx +45 -0
- package/src/media/mdx/FieldMessage/wikiMdxFieldMessage.ts +6 -12
- package/src/media/mdx/Icon/expose.isActive.en.mdx +2 -10
- package/src/media/mdx/Icon/expose.isActive.ru.mdx +2 -10
- package/src/media/mdx/Icon/icon.en.mdx +43 -9
- package/src/media/mdx/Icon/icon.ru.mdx +27 -28
- package/src/media/mdx/Image/adaptive.en.mdx +63 -20
- package/src/media/mdx/Image/adaptive.ru.mdx +62 -25
- package/src/media/mdx/Image/event.load.en.mdx +37 -2
- package/src/media/mdx/Image/event.load.ru.mdx +34 -7
- package/src/media/mdx/Image/{expose.type.ru.mdx → expose.en.mdx} +11 -1
- package/src/media/mdx/Image/expose.ru.mdx +31 -0
- package/src/media/mdx/Image/image.en.mdx +46 -0
- package/src/media/mdx/Image/image.ru.mdx +47 -0
- package/src/media/mdx/Image/size.en.mdx +19 -19
- package/src/media/mdx/Image/size.ru.mdx +19 -23
- package/src/media/mdx/Image/value.en.mdx +10 -27
- package/src/media/mdx/Image/value.ru.mdx +10 -29
- package/src/media/mdx/Image/wikiMdxImage.ts +11 -11
- package/src/media/mdx/List/event.close.en.mdx +5 -8
- package/src/media/mdx/List/event.close.ru.mdx +5 -8
- package/src/media/mdx/List/list.en.mdx +56 -14
- package/src/media/mdx/List/list.ru.mdx +56 -14
- package/src/media/mdx/List/lite.en.mdx +17 -12
- package/src/media/mdx/List/lite.ru.mdx +17 -12
- package/src/media/mdx/List/slot.html.en.mdx +72 -21
- package/src/media/mdx/List/slot.html.ru.mdx +72 -21
- package/src/media/mdx/ListGroup/listGroup.en.mdx +55 -1
- package/src/media/mdx/ListGroup/listGroup.ru.mdx +55 -1
- package/src/media/mdx/ListGroup/slots.en.mdx +10 -0
- package/src/media/mdx/ListGroup/slots.ru.mdx +10 -0
- package/src/media/mdx/ListGroup/wikiMdxListGroup.ts +6 -12
- package/src/media/mdx/ListItem/basic.en.mdx +47 -10
- package/src/media/mdx/ListItem/basic.ru.mdx +46 -9
- package/src/media/mdx/ListItem/fill.en.mdx +22 -8
- package/src/media/mdx/ListItem/fill.ru.mdx +22 -8
- package/src/media/mdx/ListItem/slots.en.mdx +7 -0
- package/src/media/mdx/ListItem/slots.ru.mdx +7 -0
- package/src/media/mdx/ListItem/wikiMdxListItem.ts +7 -13
- package/src/media/mdx/ListMenu/listMenu.en.mdx +62 -1
- package/src/media/mdx/ListMenu/listMenu.ru.mdx +62 -1
- package/src/media/mdx/Mask/basic.en.mdx +68 -16
- package/src/media/mdx/Mask/basic.ru.mdx +70 -11
- package/src/media/mdx/Mask/dateTypes.en.mdx +82 -68
- package/src/media/mdx/Mask/dateTypes.ru.mdx +82 -68
- package/src/media/mdx/Mask/expose.en.mdx +20 -0
- package/src/media/mdx/Mask/expose.ru.mdx +20 -0
- package/src/media/mdx/Mask/groupSave.en.mdx +13 -46
- package/src/media/mdx/Mask/groupSave.ru.mdx +13 -46
- package/src/media/mdx/Mask/mask.en.mdx +12 -66
- package/src/media/mdx/Mask/mask.ru.mdx +12 -66
- package/src/media/mdx/Mask/match.en.mdx +16 -24
- package/src/media/mdx/Mask/match.ru.mdx +16 -24
- package/src/media/mdx/Mask/numberTypes.en.mdx +64 -52
- package/src/media/mdx/Mask/numberTypes.ru.mdx +64 -52
- package/src/media/mdx/Mask/pattern.en.mdx +63 -75
- package/src/media/mdx/Mask/pattern.ru.mdx +63 -75
- package/src/media/mdx/Mask/special.en.mdx +174 -97
- package/src/media/mdx/Mask/special.ru.mdx +174 -97
- package/src/media/mdx/Mask/type.en.mdx +12 -36
- package/src/media/mdx/Mask/type.ru.mdx +11 -35
- package/src/media/mdx/Mask/visible.en.mdx +33 -41
- package/src/media/mdx/Mask/visible.ru.mdx +32 -40
- package/src/media/mdx/Mask/wikiMdxMask.ts +6 -0
- package/src/media/mdx/Menu/ajax.en.mdx +44 -51
- package/src/media/mdx/Menu/ajax.ru.mdx +44 -52
- package/src/media/mdx/Menu/menu.en.mdx +63 -1
- package/src/media/mdx/Menu/menu.ru.mdx +64 -1
- package/src/media/mdx/Menu/slots.en.mdx +122 -0
- package/src/media/mdx/Menu/slots.ru.mdx +122 -0
- package/src/media/mdx/Menu/wikiMdxMenu.ts +7 -32
- package/src/media/mdx/MotionTransform/animationHeadPosition.en.mdx +10 -22
- package/src/media/mdx/MotionTransform/animationHeadPosition.ru.mdx +10 -22
- package/src/media/mdx/MotionTransform/classes.en.mdx +18 -25
- package/src/media/mdx/MotionTransform/classes.ru.mdx +18 -25
- package/src/media/mdx/MotionTransform/events.en.mdx +31 -43
- package/src/media/mdx/MotionTransform/events.ru.mdx +31 -43
- package/src/media/mdx/MotionTransform/expose.isShow.en.mdx +2 -4
- package/src/media/mdx/MotionTransform/expose.isShow.ru.mdx +2 -4
- package/src/media/mdx/MotionTransform/ignore.en.mdx +22 -24
- package/src/media/mdx/MotionTransform/ignore.ru.mdx +22 -24
- package/src/media/mdx/MotionTransform/motionTransform.en.mdx +44 -15
- package/src/media/mdx/MotionTransform/motionTransform.ru.mdx +44 -15
- package/src/media/mdx/MotionTransform/slots.en.mdx +92 -0
- package/src/media/mdx/MotionTransform/slots.ru.mdx +92 -0
- package/src/media/mdx/MotionTransform/v-model.en.mdx +23 -14
- package/src/media/mdx/MotionTransform/v-model.ru.mdx +23 -14
- package/src/media/mdx/MotionTransform/wikiMdxMotionTransform.ts +5 -17
- package/src/media/mdx/Progress/circular.en.mdx +7 -20
- package/src/media/mdx/Progress/circular.ru.mdx +7 -20
- package/src/media/mdx/Progress/delays.en.mdx +6 -13
- package/src/media/mdx/Progress/delays.ru.mdx +6 -13
- package/src/media/mdx/Progress/linear.en.mdx +9 -23
- package/src/media/mdx/Progress/linear.ru.mdx +9 -23
- package/src/media/mdx/Progress/progress.en.mdx +67 -5
- package/src/media/mdx/Progress/progress.ru.mdx +67 -5
- package/src/media/mdx/Progress/values.en.mdx +6 -28
- package/src/media/mdx/Progress/values.ru.mdx +6 -29
- package/src/media/mdx/Ripple/ripple.en.mdx +34 -40
- package/src/media/mdx/Ripple/ripple.ru.mdx +34 -40
- package/src/media/mdx/Scrollbar/emits-include.en.mdx +38 -0
- package/src/media/mdx/Scrollbar/emits-include.ru.mdx +38 -0
- package/src/media/mdx/Scrollbar/emits.en.mdx +38 -0
- package/src/media/mdx/Scrollbar/emits.ru.mdx +38 -0
- package/src/media/mdx/Scrollbar/scrollbar.en.mdx +38 -2
- package/src/media/mdx/Scrollbar/scrollbar.ru.mdx +38 -2
- package/src/media/mdx/Scrollbar/wikiMdxScrollbar.ts +12 -43
- package/src/media/mdx/Skeleton/classes.en.mdx +13 -0
- package/src/media/mdx/Skeleton/classes.ru.mdx +13 -0
- package/src/media/mdx/Skeleton/expose.isActive.en.mdx +7 -28
- package/src/media/mdx/Skeleton/expose.isActive.ru.mdx +7 -28
- package/src/media/mdx/Skeleton/skeleton.en.mdx +37 -36
- package/src/media/mdx/Skeleton/skeleton.ru.mdx +37 -36
- package/src/media/mdx/Skeleton/wikiMdxSkeleton.ts +7 -0
- package/src/media/mdx/Window/axis.en.mdx +11 -19
- package/src/media/mdx/Window/axis.ru.mdx +11 -19
- package/src/media/mdx/Window/classes.en.mdx +9 -26
- package/src/media/mdx/Window/classes.ru.mdx +9 -26
- package/src/media/mdx/Window/event.window.en.mdx +26 -8
- package/src/media/mdx/Window/event.window.ru.mdx +26 -8
- package/src/media/mdx/Window/expose.en.mdx +44 -0
- package/src/media/mdx/Window/expose.ru.mdx +44 -0
- package/src/media/mdx/Window/hooks.en.mdx +29 -50
- package/src/media/mdx/Window/hooks.ru.mdx +31 -52
- package/src/media/mdx/Window/slots.en.mdx +168 -0
- package/src/media/mdx/Window/slots.ru.mdx +168 -0
- package/src/media/mdx/Window/v-model.en.mdx +20 -11
- package/src/media/mdx/Window/v-model.ru.mdx +19 -11
- package/src/media/mdx/Window/wikiMdxWindow.ts +11 -41
- package/src/media/mdx/Window/window.en.mdx +55 -1
- package/src/media/mdx/Window/window.ru.mdx +55 -1
- package/src/media/mdx/event/events.bars.en.mdx +50 -0
- package/src/media/mdx/event/events.bars.ru.mdx +50 -0
- package/src/media/mdx/event/events.beforeinput.en.mdx +13 -0
- package/src/media/mdx/event/events.beforeinput.ru.mdx +13 -0
- package/src/media/mdx/event/events.click.en.mdx +36 -0
- package/src/media/mdx/event/events.click.ru.mdx +36 -0
- package/src/media/mdx/event/events.focus.en.mdx +13 -0
- package/src/media/mdx/event/events.focus.ru.mdx +13 -0
- package/src/media/mdx/event/events.input.en.mdx +89 -0
- package/src/media/mdx/event/events.input.ru.mdx +90 -0
- package/src/media/mdx/event/events.keyboard.en.mdx +13 -0
- package/src/media/mdx/event/events.keyboard.ru.mdx +13 -0
- package/src/media/mdx/event/events.paste.en.mdx +6 -0
- package/src/media/mdx/event/events.paste.ru.mdx +6 -0
- package/src/media/mdx/event/events.reset.en.mdx +6 -0
- package/src/media/mdx/event/events.reset.ru.mdx +6 -0
- package/src/media/mdx/event/wikiMdxEvent.ts +39 -74
- package/src/media/mdx/expose/expose.clear.en.mdx +3 -0
- package/src/media/mdx/expose/expose.clear.ru.mdx +3 -0
- package/src/media/mdx/expose/expose.detail.en.mdx +5 -0
- package/src/media/mdx/expose/{detail.ru.mdx → expose.detail.ru.mdx} +1 -3
- package/src/media/mdx/expose/expose.open.en.mdx +5 -0
- package/src/media/mdx/expose/expose.open.ru.mdx +5 -0
- package/src/media/mdx/expose/expose.selected.en.mdx +23 -0
- package/src/media/mdx/expose/expose.selected.ru.mdx +23 -0
- package/src/media/mdx/expose/{value.en.mdx → expose.value.en.mdx} +1 -3
- package/src/media/mdx/expose/{value.ru.mdx → expose.value.ru.mdx} +1 -3
- package/src/media/mdx/expose/wikiMdxExpose.ts +25 -31
- package/src/media/mdx/slot/caption.en.mdx +2 -7
- package/src/media/mdx/slot/caption.ru.mdx +2 -7
- package/src/media/mdx/slot/control.en.mdx +4 -5
- package/src/media/mdx/slot/control.ru.mdx +4 -5
- package/src/media/mdx/slot/default.en.mdx +2 -7
- package/src/media/mdx/slot/default.ru.mdx +2 -7
- package/src/media/mdx/slot/description.en.mdx +2 -7
- package/src/media/mdx/slot/description.ru.mdx +2 -7
- package/src/media/mdx/slot/footer.en.mdx +4 -5
- package/src/media/mdx/slot/footer.ru.mdx +4 -5
- package/src/media/mdx/slot/label.en.mdx +2 -8
- package/src/media/mdx/slot/label.ru.mdx +2 -8
- package/src/media/mdx/slot/prefix.en.mdx +1 -4
- package/src/media/mdx/slot/prefix.ru.mdx +1 -4
- package/src/media/mdx/slot/suffix.en.mdx +1 -4
- package/src/media/mdx/slot/suffix.ru.mdx +1 -4
- package/src/media/mdx/slot/wikiMdxSlot.ts +0 -6
- package/src/media/mdx/style/adaptive.en.mdx +6 -16
- package/src/media/mdx/style/adaptive.ru.mdx +6 -16
- package/src/media/mdx/style/asPalette.en.mdx +13 -5
- package/src/media/mdx/style/asPalette.ru.mdx +13 -5
- package/src/media/mdx/style/dir.en.mdx +14 -7
- package/src/media/mdx/style/dir.ru.mdx +14 -7
- package/src/media/mdx/style/isSkeleton.en.mdx +20 -6
- package/src/media/mdx/style/isSkeleton.ru.mdx +19 -5
- package/src/media/mdx/value/highlight.en.mdx +19 -12
- package/src/media/mdx/value/highlight.ru.mdx +19 -12
- package/src/media/mdx/value/labelNumber.en.mdx +39 -20
- package/src/media/mdx/value/labelNumber.ru.mdx +39 -20
- package/src/media/mdx/value/value.en.mdx +6 -12
- package/src/media/mdx/value/value.ru.mdx +6 -12
- package/src/media/styles/color.md +1 -0
- package/src/media/styles/en/about.mdx +79 -0
- package/src/media/styles/en/color.mdx +711 -0
- package/src/media/styles/en/content.mdx +29 -0
- package/src/media/styles/en/dimension.mdx +233 -0
- package/src/media/styles/en/dir.mdx +193 -0
- package/src/media/styles/en/flex.mdx +249 -0
- package/src/media/styles/en/font.mdx +171 -0
- package/src/media/styles/en/margin.mdx +115 -0
- package/src/media/styles/en/media.mdx +133 -0
- package/src/media/styles/en/padding.mdx +115 -0
- package/src/media/styles/en/position.mdx +183 -0
- package/src/media/styles/en/rules.mdx +117 -0
- package/src/media/styles/en/scrollbar.mdx +27 -0
- package/src/media/styles/en/selector.mdx +153 -0
- package/src/media/styles/en/transform.mdx +114 -0
- package/src/media/styles/ru/about.mdx +78 -0
- package/src/media/styles/ru/color.mdx +711 -0
- package/src/media/styles/ru/content.mdx +30 -0
- package/src/media/styles/ru/dimension.mdx +233 -0
- package/src/media/styles/ru/dir.mdx +193 -0
- package/src/media/styles/ru/flex.mdx +249 -0
- package/src/media/styles/ru/font.mdx +171 -0
- package/src/media/styles/ru/margin.mdx +115 -0
- package/src/media/styles/ru/media.mdx +133 -0
- package/src/media/styles/ru/padding.mdx +115 -0
- package/src/media/styles/ru/position.mdx +183 -0
- package/src/media/styles/ru/rules.mdx +117 -0
- package/src/media/styles/ru/scrollbar.mdx +27 -0
- package/src/media/styles/ru/selector.mdx +153 -0
- package/src/media/styles/ru/transform.mdx +114 -0
- package/src/styles/storybookStyle.scss +1 -0
- package/src/media/mdx/Bars/slot.actionBars.en.mdx +0 -12
- package/src/media/mdx/Bars/slot.actionBars.ru.mdx +0 -11
- package/src/media/mdx/Bars/slot.bars.en.mdx +0 -12
- package/src/media/mdx/Bars/slot.bars.ru.mdx +0 -11
- package/src/media/mdx/Cell/slot.body.en.mdx +0 -7
- package/src/media/mdx/Cell/slot.body.ru.mdx +0 -7
- package/src/media/mdx/Cell/slot.trailing.en.mdx +0 -7
- package/src/media/mdx/Cell/slot.trailing.ru.mdx +0 -7
- package/src/media/mdx/Field/slot.default.en.mdx +0 -9
- package/src/media/mdx/Field/slot.default.ru.mdx +0 -9
- package/src/media/mdx/Field/slot.leading.en.mdx +0 -10
- package/src/media/mdx/Field/slot.leading.ru.mdx +0 -10
- package/src/media/mdx/Field/slot.trailing.en.mdx +0 -10
- package/src/media/mdx/Field/slot.trailing.ru.mdx +0 -10
- package/src/media/mdx/FieldMessage/slot.helper.en.mdx +0 -12
- package/src/media/mdx/FieldMessage/slot.helper.ru.mdx +0 -12
- package/src/media/mdx/FieldMessage/slot.validation.en.mdx +0 -12
- package/src/media/mdx/FieldMessage/slot.validation.ru.mdx +0 -12
- package/src/media/mdx/Image/expose.data.en.mdx +0 -13
- package/src/media/mdx/Image/expose.data.ru.mdx +0 -13
- package/src/media/mdx/Image/expose.type.en.mdx +0 -21
- package/src/media/mdx/ListGroup/slot.head.en.mdx +0 -8
- package/src/media/mdx/ListGroup/slot.head.ru.mdx +0 -8
- package/src/media/mdx/ListGroup/slot.list.en.mdx +0 -8
- package/src/media/mdx/ListGroup/slot.list.ru.mdx +0 -8
- package/src/media/mdx/ListItem/slot.body.en.mdx +0 -7
- package/src/media/mdx/ListItem/slot.body.ru.mdx +0 -7
- package/src/media/mdx/ListItem/slot.trailing.en.mdx +0 -7
- package/src/media/mdx/ListItem/slot.trailing.ru.mdx +0 -7
- package/src/media/mdx/Menu/slot.contextBottom.en.mdx +0 -9
- package/src/media/mdx/Menu/slot.contextBottom.ru.mdx +0 -9
- package/src/media/mdx/Menu/slot.contextTop.en.mdx +0 -9
- package/src/media/mdx/Menu/slot.contextTop.ru.mdx +0 -9
- package/src/media/mdx/Menu/slot.control.en.mdx +0 -9
- package/src/media/mdx/Menu/slot.control.ru.mdx +0 -9
- package/src/media/mdx/Menu/slot.footer.en.mdx +0 -9
- package/src/media/mdx/Menu/slot.footer.ru.mdx +0 -9
- package/src/media/mdx/Menu/slot.title.en.mdx +0 -9
- package/src/media/mdx/Menu/slot.title.ru.mdx +0 -9
- package/src/media/mdx/MotionTransform/slot.body.en.mdx +0 -11
- package/src/media/mdx/MotionTransform/slot.body.ru.mdx +0 -11
- package/src/media/mdx/MotionTransform/slot.head.en.mdx +0 -11
- package/src/media/mdx/MotionTransform/slot.head.ru.mdx +0 -11
- package/src/media/mdx/MotionTransform/slot.params.en.mdx +0 -61
- package/src/media/mdx/MotionTransform/slot.params.ru.mdx +0 -61
- package/src/media/mdx/Scrollbar/event.bottom.en.mdx +0 -12
- package/src/media/mdx/Scrollbar/event.bottom.ru.mdx +0 -12
- package/src/media/mdx/Scrollbar/event.edge.en.mdx +0 -14
- package/src/media/mdx/Scrollbar/event.edge.ru.mdx +0 -14
- package/src/media/mdx/Scrollbar/event.leaveBottom.en.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.leaveBottom.ru.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.leaveTop.en.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.leaveTop.ru.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.reachBottom.en.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.reachBottom.ru.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.reachTop.en.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.reachTop.ru.mdx +0 -11
- package/src/media/mdx/Scrollbar/event.top.en.mdx +0 -12
- package/src/media/mdx/Scrollbar/event.top.ru.mdx +0 -12
- package/src/media/mdx/Window/expose.control.en.mdx +0 -15
- package/src/media/mdx/Window/expose.control.ru.mdx +0 -15
- package/src/media/mdx/Window/expose.id.en.mdx +0 -7
- package/src/media/mdx/Window/expose.id.ru.mdx +0 -7
- package/src/media/mdx/Window/expose.open.en.mdx +0 -7
- package/src/media/mdx/Window/expose.open.ru.mdx +0 -7
- package/src/media/mdx/Window/expose.setOpen.en.mdx +0 -7
- package/src/media/mdx/Window/expose.setOpen.ru.mdx +0 -7
- package/src/media/mdx/Window/expose.toClose.en.mdx +0 -7
- package/src/media/mdx/Window/expose.toClose.ru.mdx +0 -7
- package/src/media/mdx/Window/expose.toOpen.en.mdx +0 -7
- package/src/media/mdx/Window/expose.toOpen.ru.mdx +0 -7
- package/src/media/mdx/Window/expose.toggle.en.mdx +0 -7
- package/src/media/mdx/Window/expose.toggle.ru.mdx +0 -7
- package/src/media/mdx/event/bars.en.mdx +0 -17
- package/src/media/mdx/event/bars.ru.mdx +0 -14
- package/src/media/mdx/event/barsBack.en.mdx +0 -14
- package/src/media/mdx/event/barsBack.ru.mdx +0 -16
- package/src/media/mdx/event/barsLite.en.mdx +0 -14
- package/src/media/mdx/event/barsLite.ru.mdx +0 -14
- package/src/media/mdx/event/click.en.mdx +0 -18
- package/src/media/mdx/event/click.ru.mdx +0 -18
- package/src/media/mdx/event/clickLite.en.mdx +0 -18
- package/src/media/mdx/event/clickLite.ru.mdx +0 -18
- package/src/media/mdx/event/scrollbarBottom.en.mdx +0 -13
- package/src/media/mdx/event/scrollbarBottom.ru.mdx +0 -13
- package/src/media/mdx/event/scrollbarEdge.en.mdx +0 -15
- package/src/media/mdx/event/scrollbarEdge.ru.mdx +0 -15
- package/src/media/mdx/event/scrollbarLeaveBottom.en.mdx +0 -12
- package/src/media/mdx/event/scrollbarLeaveBottom.ru.mdx +0 -12
- package/src/media/mdx/event/scrollbarLeaveTop.en.mdx +0 -12
- package/src/media/mdx/event/scrollbarLeaveTop.ru.mdx +0 -12
- package/src/media/mdx/event/scrollbarReachBottom.en.mdx +0 -12
- package/src/media/mdx/event/scrollbarReachBottom.ru.mdx +0 -12
- package/src/media/mdx/event/scrollbarReachTop.en.mdx +0 -12
- package/src/media/mdx/event/scrollbarReachTop.ru.mdx +0 -12
- package/src/media/mdx/event/scrollbarTop.en.mdx +0 -13
- package/src/media/mdx/event/scrollbarTop.ru.mdx +0 -13
- package/src/media/mdx/event/window.en.mdx +0 -20
- package/src/media/mdx/event/window.ru.mdx +0 -20
- package/src/media/mdx/expose/detail.en.mdx +0 -7
- package/src/media/mdx/expose/isSelected.en.mdx +0 -8
- package/src/media/mdx/expose/isSelected.ru.mdx +0 -8
- package/src/media/mdx/expose/selectedList.en.mdx +0 -7
- package/src/media/mdx/expose/selectedList.ru.mdx +0 -7
- package/src/media/mdx/expose/selectedNames.en.mdx +0 -7
- package/src/media/mdx/expose/selectedNames.ru.mdx +0 -7
- package/src/media/mdx/expose/selectedValues.en.mdx +0 -8
- package/src/media/mdx/expose/selectedValues.ru.mdx +0 -8
- package/src/media/mdx/slot/title.en.mdx +0 -9
- package/src/media/mdx/slot/title.ru.mdx +0 -9
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/styles/en/Dimension'/>
|
|
4
|
+
|
|
5
|
+
# Dimension
|
|
6
|
+
|
|
7
|
+
A set of SCSS functions and mixins for managing dimensions with CSS Custom Properties support.
|
|
8
|
+
|
|
9
|
+
## Functions
|
|
10
|
+
|
|
11
|
+
### `getWidthByRatio`
|
|
12
|
+
|
|
13
|
+
Returns width based on aspect ratio values.
|
|
14
|
+
|
|
15
|
+
**Parameters:**
|
|
16
|
+
- `$value` — aspect ratio string (e.g., '16/9')
|
|
17
|
+
|
|
18
|
+
**Returns:** `String`
|
|
19
|
+
|
|
20
|
+
```scss
|
|
21
|
+
$width: getWidthByRatio('16/9'); // "16"
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### `getHeightByRatio`
|
|
25
|
+
|
|
26
|
+
Returns height based on aspect ratio values.
|
|
27
|
+
|
|
28
|
+
**Parameters:**
|
|
29
|
+
- `$value` — aspect ratio string (e.g., '16/9')
|
|
30
|
+
|
|
31
|
+
**Returns:** `String`
|
|
32
|
+
|
|
33
|
+
```scss
|
|
34
|
+
$height: getHeightByRatio('16/9'); // "9"
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
## Mixins
|
|
38
|
+
|
|
39
|
+
### `width`
|
|
40
|
+
|
|
41
|
+
Sets width with CSS custom property.
|
|
42
|
+
|
|
43
|
+
**Parameters:**
|
|
44
|
+
- `$value` — width value
|
|
45
|
+
|
|
46
|
+
**Returns:** `void`
|
|
47
|
+
|
|
48
|
+
```scss
|
|
49
|
+
.element {
|
|
50
|
+
@include width(200px);
|
|
51
|
+
}
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### `height`
|
|
55
|
+
|
|
56
|
+
Sets height with CSS custom property.
|
|
57
|
+
|
|
58
|
+
**Parameters:**
|
|
59
|
+
- `$value` — height value
|
|
60
|
+
|
|
61
|
+
**Returns:** `void`
|
|
62
|
+
|
|
63
|
+
```scss
|
|
64
|
+
.element {
|
|
65
|
+
@include height(100px);
|
|
66
|
+
}
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
### `widthDevice`
|
|
70
|
+
|
|
71
|
+
Sets width using device viewport width (dvw).
|
|
72
|
+
|
|
73
|
+
**Parameters:**
|
|
74
|
+
- `$value` — width value in dvw units
|
|
75
|
+
|
|
76
|
+
**Returns:** `void`
|
|
77
|
+
|
|
78
|
+
```scss
|
|
79
|
+
.element {
|
|
80
|
+
@include widthDevice(100);
|
|
81
|
+
}
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
### `heightDevice`
|
|
85
|
+
|
|
86
|
+
Sets height using device viewport height (dvh).
|
|
87
|
+
|
|
88
|
+
**Parameters:**
|
|
89
|
+
- `$value` — height value in dvh units
|
|
90
|
+
|
|
91
|
+
**Returns:** `void`
|
|
92
|
+
|
|
93
|
+
```scss
|
|
94
|
+
.element {
|
|
95
|
+
@include heightDevice(100);
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### `maxWidthDevice`
|
|
100
|
+
|
|
101
|
+
Sets max-width using device viewport width (dvw).
|
|
102
|
+
|
|
103
|
+
**Parameters:**
|
|
104
|
+
- `$value` — max-width value in dvw units
|
|
105
|
+
|
|
106
|
+
**Returns:** `void`
|
|
107
|
+
|
|
108
|
+
```scss
|
|
109
|
+
.element {
|
|
110
|
+
@include maxWidthDevice(90);
|
|
111
|
+
}
|
|
112
|
+
```
|
|
113
|
+
|
|
114
|
+
### `maxHeightDevice`
|
|
115
|
+
|
|
116
|
+
Sets max-height using device viewport height (dvh).
|
|
117
|
+
|
|
118
|
+
**Parameters:**
|
|
119
|
+
- `$value` — max-height value in dvh units
|
|
120
|
+
|
|
121
|
+
**Returns:** `void`
|
|
122
|
+
|
|
123
|
+
```scss
|
|
124
|
+
.element {
|
|
125
|
+
@include maxHeightDevice(80);
|
|
126
|
+
}
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
### `widthBasis`
|
|
130
|
+
|
|
131
|
+
Sets width with flex-basis and max-width constraint.
|
|
132
|
+
|
|
133
|
+
**Parameters:**
|
|
134
|
+
- `$value` — width value
|
|
135
|
+
|
|
136
|
+
**Returns:** `void`
|
|
137
|
+
|
|
138
|
+
```scss
|
|
139
|
+
.element {
|
|
140
|
+
@include widthBasis(300px);
|
|
141
|
+
}
|
|
142
|
+
```
|
|
143
|
+
|
|
144
|
+
### `heightBasis`
|
|
145
|
+
|
|
146
|
+
Sets height with flex-basis and max-height constraint.
|
|
147
|
+
|
|
148
|
+
**Parameters:**
|
|
149
|
+
- `$value` — height value
|
|
150
|
+
|
|
151
|
+
**Returns:** `void`
|
|
152
|
+
|
|
153
|
+
```scss
|
|
154
|
+
.element {
|
|
155
|
+
@include heightBasis(200px);
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### `aspectRatio`
|
|
160
|
+
|
|
161
|
+
Sets aspect ratio.
|
|
162
|
+
|
|
163
|
+
**Parameters:**
|
|
164
|
+
- `$value` — aspect ratio value
|
|
165
|
+
|
|
166
|
+
**Returns:** `void`
|
|
167
|
+
|
|
168
|
+
```scss
|
|
169
|
+
.element {
|
|
170
|
+
@include aspectRatio(16/9);
|
|
171
|
+
}
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### `aspectRatioWidth`
|
|
175
|
+
|
|
176
|
+
Sets aspect ratio (alias for aspectRatio).
|
|
177
|
+
|
|
178
|
+
**Parameters:**
|
|
179
|
+
- `$value` — aspect ratio value
|
|
180
|
+
|
|
181
|
+
**Returns:** `void`
|
|
182
|
+
|
|
183
|
+
```scss
|
|
184
|
+
.element {
|
|
185
|
+
@include aspectRatioWidth(16/9);
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
### `aspectRatioHeight`
|
|
190
|
+
|
|
191
|
+
Sets aspect ratio (alias for aspectRatio).
|
|
192
|
+
|
|
193
|
+
**Parameters:**
|
|
194
|
+
- `$value` — aspect ratio value
|
|
195
|
+
|
|
196
|
+
**Returns:** `void`
|
|
197
|
+
|
|
198
|
+
```scss
|
|
199
|
+
.element {
|
|
200
|
+
@include aspectRatioHeight(4/3);
|
|
201
|
+
}
|
|
202
|
+
```
|
|
203
|
+
|
|
204
|
+
### `squared`
|
|
205
|
+
|
|
206
|
+
Creates a square element with aspect ratio 1:1.
|
|
207
|
+
|
|
208
|
+
**Parameters:**
|
|
209
|
+
- `$value` — size value
|
|
210
|
+
|
|
211
|
+
**Returns:** `void`
|
|
212
|
+
|
|
213
|
+
```scss
|
|
214
|
+
.element {
|
|
215
|
+
@include squared(100px);
|
|
216
|
+
}
|
|
217
|
+
```
|
|
218
|
+
|
|
219
|
+
### `circle`
|
|
220
|
+
|
|
221
|
+
Creates a circular element.
|
|
222
|
+
|
|
223
|
+
**Parameters:**
|
|
224
|
+
- `$value` — size value
|
|
225
|
+
|
|
226
|
+
**Returns:** `void`
|
|
227
|
+
|
|
228
|
+
```scss
|
|
229
|
+
.element {
|
|
230
|
+
@include circle(50px);
|
|
231
|
+
}
|
|
232
|
+
```
|
|
233
|
+
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/styles/en/Dir'/>
|
|
4
|
+
|
|
5
|
+
# Dir
|
|
6
|
+
|
|
7
|
+
A set of SCSS functions and mixins for managing text direction (LTR/RTL) with CSS Custom Properties support.
|
|
8
|
+
|
|
9
|
+
**How it works:** The system uses CSS custom properties to manage bidirectional text. By default, LTR (left-to-right) is set. When `html[dir="rtl"]` or `.dir-rtl` class is applied, all direction-related variables are automatically inverted, allowing seamless RTL support without code duplication.
|
|
10
|
+
|
|
11
|
+
## Initialization Mixins
|
|
12
|
+
|
|
13
|
+
### `initDir`
|
|
14
|
+
|
|
15
|
+
Initializes direction system with CSS custom properties for LTR and RTL support.
|
|
16
|
+
|
|
17
|
+
**Parameters:** none
|
|
18
|
+
|
|
19
|
+
**Returns:** `void`
|
|
20
|
+
|
|
21
|
+
```scss
|
|
22
|
+
@include initDir;
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### `dirToRtl`
|
|
26
|
+
|
|
27
|
+
Applies RTL (right-to-left) direction styles.
|
|
28
|
+
|
|
29
|
+
**Parameters:** none
|
|
30
|
+
|
|
31
|
+
**Returns:** `void`
|
|
32
|
+
|
|
33
|
+
```scss
|
|
34
|
+
html[dir="rtl"] {
|
|
35
|
+
@include dirToRtl;
|
|
36
|
+
}
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Validation Functions
|
|
40
|
+
|
|
41
|
+
### `isDir`
|
|
42
|
+
|
|
43
|
+
Returns direction multiplier (1 for LTR, -1 for RTL).
|
|
44
|
+
|
|
45
|
+
**Parameters:** none
|
|
46
|
+
|
|
47
|
+
**Returns:** `String`
|
|
48
|
+
|
|
49
|
+
```scss
|
|
50
|
+
$dir: isDir(); // var(--d-dir, 1)
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
### `isDirLeft`
|
|
54
|
+
|
|
55
|
+
Checks if current direction is left-aligned.
|
|
56
|
+
|
|
57
|
+
**Parameters:** none
|
|
58
|
+
|
|
59
|
+
**Returns:** `String`
|
|
60
|
+
|
|
61
|
+
```scss
|
|
62
|
+
$isLeft: isDirLeft(); // var(--d-dir-left, 1)
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### `isDirRight`
|
|
66
|
+
|
|
67
|
+
Checks if current direction is right-aligned.
|
|
68
|
+
|
|
69
|
+
**Parameters:** none
|
|
70
|
+
|
|
71
|
+
**Returns:** `String`
|
|
72
|
+
|
|
73
|
+
```scss
|
|
74
|
+
$isRight: isDirRight(); // var(--d-dir-right, 0)
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
## Direction Functions
|
|
78
|
+
|
|
79
|
+
### `dirLeft`
|
|
80
|
+
|
|
81
|
+
Returns text alignment value for left side.
|
|
82
|
+
|
|
83
|
+
**Parameters:** none
|
|
84
|
+
|
|
85
|
+
**Returns:** `String`
|
|
86
|
+
|
|
87
|
+
```scss
|
|
88
|
+
text-align: dirLeft(); // left (LTR) or right (RTL)
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
### `dirRight`
|
|
92
|
+
|
|
93
|
+
Returns text alignment value for right side.
|
|
94
|
+
|
|
95
|
+
**Parameters:** none
|
|
96
|
+
|
|
97
|
+
**Returns:** `String`
|
|
98
|
+
|
|
99
|
+
```scss
|
|
100
|
+
text-align: dirRight(); // right (LTR) or left (RTL)
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### `dirLeftAuto`
|
|
104
|
+
|
|
105
|
+
Returns 'auto' value for left property.
|
|
106
|
+
|
|
107
|
+
**Parameters:** none
|
|
108
|
+
|
|
109
|
+
**Returns:** `String`
|
|
110
|
+
|
|
111
|
+
```scss
|
|
112
|
+
left: dirLeftAuto(); // auto (LTR) or unset (RTL)
|
|
113
|
+
```
|
|
114
|
+
|
|
115
|
+
### `dirRightAuto`
|
|
116
|
+
|
|
117
|
+
Returns 'auto' value for right property.
|
|
118
|
+
|
|
119
|
+
**Parameters:** none
|
|
120
|
+
|
|
121
|
+
**Returns:** `String`
|
|
122
|
+
|
|
123
|
+
```scss
|
|
124
|
+
right: dirRightAuto(); // unset (LTR) or auto (RTL)
|
|
125
|
+
```
|
|
126
|
+
|
|
127
|
+
### `dirFlexLeft`
|
|
128
|
+
|
|
129
|
+
Returns flex alignment value for left side.
|
|
130
|
+
|
|
131
|
+
**Parameters:** none
|
|
132
|
+
|
|
133
|
+
**Returns:** `String`
|
|
134
|
+
|
|
135
|
+
```scss
|
|
136
|
+
justify-content: dirFlexLeft(); // flex-start (LTR) or flex-end (RTL)
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
### `dirFlexRight`
|
|
140
|
+
|
|
141
|
+
Returns flex alignment value for right side.
|
|
142
|
+
|
|
143
|
+
**Parameters:** none
|
|
144
|
+
|
|
145
|
+
**Returns:** `String`
|
|
146
|
+
|
|
147
|
+
```scss
|
|
148
|
+
justify-content: dirFlexRight(); // flex-end (LTR) or flex-start (RTL)
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
## Position Functions
|
|
152
|
+
|
|
153
|
+
### `dirToLeft`
|
|
154
|
+
|
|
155
|
+
Calculates position value for left property based on direction.
|
|
156
|
+
|
|
157
|
+
**Parameters:**
|
|
158
|
+
- `$left` — left position variable
|
|
159
|
+
- `$right` — right position variable
|
|
160
|
+
|
|
161
|
+
**Returns:** `String`
|
|
162
|
+
|
|
163
|
+
```scss
|
|
164
|
+
left: dirToLeft(--pos-left, --pos-right);
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### `dirToRight`
|
|
168
|
+
|
|
169
|
+
Calculates position value for right property based on direction.
|
|
170
|
+
|
|
171
|
+
**Parameters:**
|
|
172
|
+
- `$left` — left position variable
|
|
173
|
+
- `$right` — right position variable
|
|
174
|
+
|
|
175
|
+
**Returns:** `String`
|
|
176
|
+
|
|
177
|
+
```scss
|
|
178
|
+
right: dirToRight(--pos-left, --pos-right);
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### `dirOrder`
|
|
182
|
+
|
|
183
|
+
Calculates order value based on direction multiplier.
|
|
184
|
+
|
|
185
|
+
**Parameters:**
|
|
186
|
+
- `$value` — order value
|
|
187
|
+
|
|
188
|
+
**Returns:** `String`
|
|
189
|
+
|
|
190
|
+
```scss
|
|
191
|
+
order: dirOrder(2); // 3 (LTR) or 999997 (RTL)
|
|
192
|
+
```
|
|
193
|
+
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/styles/en/Flex'/>
|
|
4
|
+
|
|
5
|
+
# Flex
|
|
6
|
+
|
|
7
|
+
A set of SCSS mixins for working with flexbox layouts with CSS Custom Properties support.
|
|
8
|
+
|
|
9
|
+
**How it works:** The system provides convenient mixins for common flexbox patterns. Each mixin combines multiple flexbox properties into a single declaration, reducing code repetition. The mixins support both standard flex containers and inline-flex variants, with automatic alignment presets for horizontal/vertical layouts.
|
|
10
|
+
|
|
11
|
+
## Basic Mixins
|
|
12
|
+
|
|
13
|
+
### `flex`
|
|
14
|
+
|
|
15
|
+
Sets display: flex.
|
|
16
|
+
|
|
17
|
+
**Parameters:** none
|
|
18
|
+
|
|
19
|
+
**Returns:** `void`
|
|
20
|
+
|
|
21
|
+
```scss
|
|
22
|
+
.container {
|
|
23
|
+
@include flex;
|
|
24
|
+
}
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### `flexInline`
|
|
28
|
+
|
|
29
|
+
Sets display: inline-flex.
|
|
30
|
+
|
|
31
|
+
**Parameters:** none
|
|
32
|
+
|
|
33
|
+
**Returns:** `void`
|
|
34
|
+
|
|
35
|
+
```scss
|
|
36
|
+
.container {
|
|
37
|
+
@include flexInline;
|
|
38
|
+
}
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Alignment Mixins
|
|
42
|
+
|
|
43
|
+
### `flexX`
|
|
44
|
+
|
|
45
|
+
Creates horizontal flex container with centered items.
|
|
46
|
+
|
|
47
|
+
**Parameters:** none
|
|
48
|
+
|
|
49
|
+
**Returns:** `void`
|
|
50
|
+
|
|
51
|
+
```scss
|
|
52
|
+
.container {
|
|
53
|
+
@include flexX;
|
|
54
|
+
// display: flex;
|
|
55
|
+
// align-items: center;
|
|
56
|
+
}
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
### `flexY`
|
|
60
|
+
|
|
61
|
+
Creates vertical flex container with centered items.
|
|
62
|
+
|
|
63
|
+
**Parameters:** none
|
|
64
|
+
|
|
65
|
+
**Returns:** `void`
|
|
66
|
+
|
|
67
|
+
```scss
|
|
68
|
+
.container {
|
|
69
|
+
@include flexY;
|
|
70
|
+
// display: flex;
|
|
71
|
+
// align-items: center;
|
|
72
|
+
// flex-flow: column;
|
|
73
|
+
}
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
### `flexStretchX`
|
|
77
|
+
|
|
78
|
+
Creates horizontal flex container with stretched items.
|
|
79
|
+
|
|
80
|
+
**Parameters:** none
|
|
81
|
+
|
|
82
|
+
**Returns:** `void`
|
|
83
|
+
|
|
84
|
+
```scss
|
|
85
|
+
.container {
|
|
86
|
+
@include flexStretchX;
|
|
87
|
+
// display: flex;
|
|
88
|
+
// align-items: stretch;
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
### `flexStretchY`
|
|
93
|
+
|
|
94
|
+
Creates vertical flex container with stretched items.
|
|
95
|
+
|
|
96
|
+
**Parameters:** none
|
|
97
|
+
|
|
98
|
+
**Returns:** `void`
|
|
99
|
+
|
|
100
|
+
```scss
|
|
101
|
+
.container {
|
|
102
|
+
@include flexStretchY;
|
|
103
|
+
// display: flex;
|
|
104
|
+
// align-items: stretch;
|
|
105
|
+
// flex-flow: column;
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
### `flexCenter`
|
|
110
|
+
|
|
111
|
+
Creates centered flex container (both axes).
|
|
112
|
+
|
|
113
|
+
**Parameters:** none
|
|
114
|
+
|
|
115
|
+
**Returns:** `void`
|
|
116
|
+
|
|
117
|
+
```scss
|
|
118
|
+
.container {
|
|
119
|
+
@include flexCenter;
|
|
120
|
+
// display: flex;
|
|
121
|
+
// align-items: center;
|
|
122
|
+
// justify-content: center;
|
|
123
|
+
}
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
### `flexBetween`
|
|
127
|
+
|
|
128
|
+
Creates flex container with space-between alignment.
|
|
129
|
+
|
|
130
|
+
**Parameters:** none
|
|
131
|
+
|
|
132
|
+
**Returns:** `void`
|
|
133
|
+
|
|
134
|
+
```scss
|
|
135
|
+
.container {
|
|
136
|
+
@include flexBetween;
|
|
137
|
+
// display: flex;
|
|
138
|
+
// align-items: center;
|
|
139
|
+
// justify-content: space-between;
|
|
140
|
+
}
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
## Inline Flex Mixins
|
|
144
|
+
|
|
145
|
+
### `flexInlineX`
|
|
146
|
+
|
|
147
|
+
Creates horizontal inline-flex container with centered items.
|
|
148
|
+
|
|
149
|
+
**Parameters:** none
|
|
150
|
+
|
|
151
|
+
**Returns:** `void`
|
|
152
|
+
|
|
153
|
+
```scss
|
|
154
|
+
.container {
|
|
155
|
+
@include flexInlineX;
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
### `flexInlineY`
|
|
160
|
+
|
|
161
|
+
Creates vertical inline-flex container with centered items.
|
|
162
|
+
|
|
163
|
+
**Parameters:** none
|
|
164
|
+
|
|
165
|
+
**Returns:** `void`
|
|
166
|
+
|
|
167
|
+
```scss
|
|
168
|
+
.container {
|
|
169
|
+
@include flexInlineY;
|
|
170
|
+
}
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
### `flexInlineCenter`
|
|
174
|
+
|
|
175
|
+
Creates centered inline-flex container (both axes).
|
|
176
|
+
|
|
177
|
+
**Parameters:** none
|
|
178
|
+
|
|
179
|
+
**Returns:** `void`
|
|
180
|
+
|
|
181
|
+
```scss
|
|
182
|
+
.container {
|
|
183
|
+
@include flexInlineCenter;
|
|
184
|
+
}
|
|
185
|
+
```
|
|
186
|
+
|
|
187
|
+
### `flexInlineBetween`
|
|
188
|
+
|
|
189
|
+
Creates inline-flex container with space-between alignment.
|
|
190
|
+
|
|
191
|
+
**Parameters:** none
|
|
192
|
+
|
|
193
|
+
**Returns:** `void`
|
|
194
|
+
|
|
195
|
+
```scss
|
|
196
|
+
.container {
|
|
197
|
+
@include flexInlineBetween;
|
|
198
|
+
}
|
|
199
|
+
```
|
|
200
|
+
|
|
201
|
+
## Utility Mixins
|
|
202
|
+
|
|
203
|
+
### `justifyContent`
|
|
204
|
+
|
|
205
|
+
Sets justify-content property.
|
|
206
|
+
|
|
207
|
+
**Parameters:**
|
|
208
|
+
- `$value` — justify-content value
|
|
209
|
+
|
|
210
|
+
**Returns:** `void`
|
|
211
|
+
|
|
212
|
+
```scss
|
|
213
|
+
.container {
|
|
214
|
+
@include justifyContent(center);
|
|
215
|
+
}
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
### `flexPosition`
|
|
219
|
+
|
|
220
|
+
Applies flex layout based on preset value.
|
|
221
|
+
|
|
222
|
+
**Parameters:**
|
|
223
|
+
- `$value` — preset name ('x', 'y', 'center', 'between', 'inline-x', 'inline-y', 'inline-center', 'inline-between')
|
|
224
|
+
|
|
225
|
+
**Returns:** `void`
|
|
226
|
+
|
|
227
|
+
```scss
|
|
228
|
+
.container {
|
|
229
|
+
@include flexPosition('center');
|
|
230
|
+
}
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### `flexDynamic`
|
|
234
|
+
|
|
235
|
+
Creates flexible item that grows and shrinks.
|
|
236
|
+
|
|
237
|
+
**Parameters:** none
|
|
238
|
+
|
|
239
|
+
**Returns:** `void`
|
|
240
|
+
|
|
241
|
+
```scss
|
|
242
|
+
.item {
|
|
243
|
+
@include flexDynamic;
|
|
244
|
+
// flex-basis: 1px;
|
|
245
|
+
// flex-grow: 1;
|
|
246
|
+
// flex-shrink: 1;
|
|
247
|
+
}
|
|
248
|
+
```
|
|
249
|
+
|