@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,711 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/styles/en/Color'/>
|
|
4
|
+
|
|
5
|
+
# Color
|
|
6
|
+
|
|
7
|
+
A set of SCSS functions and mixins for color management with CSS Custom Properties support.
|
|
8
|
+
|
|
9
|
+
## Validation Functions
|
|
10
|
+
|
|
11
|
+
### `isColorRbgOrVar`
|
|
12
|
+
|
|
13
|
+
Checks if a value is a color.
|
|
14
|
+
|
|
15
|
+
**Parameters:**
|
|
16
|
+
- `$color` — value to check
|
|
17
|
+
|
|
18
|
+
**Returns:** `Boolean`
|
|
19
|
+
|
|
20
|
+
```scss
|
|
21
|
+
@if isColorRbgOrVar(#ff0000) { } // true
|
|
22
|
+
@if isColorRbgOrVar('none') { } // false
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
### `isPalette`
|
|
26
|
+
|
|
27
|
+
Checks if a color is suitable for the palette.
|
|
28
|
+
|
|
29
|
+
**Parameters:**
|
|
30
|
+
- `$color` — color to check
|
|
31
|
+
|
|
32
|
+
**Returns:** `Boolean`
|
|
33
|
+
|
|
34
|
+
```scss
|
|
35
|
+
@if isPalette(var(--primary-500)) { } // true
|
|
36
|
+
@if isPalette(#ff0000) { } // false
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Color Functions
|
|
40
|
+
|
|
41
|
+
### `getColor`
|
|
42
|
+
|
|
43
|
+
Returns color value by its code.
|
|
44
|
+
|
|
45
|
+
**Parameters:**
|
|
46
|
+
- `$color` — color
|
|
47
|
+
- `$opacity: 1` — opacity [0..1]
|
|
48
|
+
- `$gradient: false` — if true, returns as an image
|
|
49
|
+
|
|
50
|
+
**Returns:** `String`
|
|
51
|
+
|
|
52
|
+
```scss
|
|
53
|
+
$value: getColor(#ff0000, 0.5); // rgba(255, 0, 0, 0.5)
|
|
54
|
+
$gradient: getColor(#ff0000, 0.8, true); // linear-gradient(...)
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### `getColorByPalette`
|
|
58
|
+
|
|
59
|
+
Checks if a color is part of the list of used colors.
|
|
60
|
+
|
|
61
|
+
**Parameters:**
|
|
62
|
+
- `$color` — color to check
|
|
63
|
+
|
|
64
|
+
**Returns:** `String|null`
|
|
65
|
+
|
|
66
|
+
```scss
|
|
67
|
+
$palette: getColorByPalette(var(--primary-color));
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
### `getColorByShade`
|
|
71
|
+
|
|
72
|
+
Checks if a color is part of the list of saturation levels.
|
|
73
|
+
|
|
74
|
+
**Parameters:**
|
|
75
|
+
- `$color` — color to check
|
|
76
|
+
|
|
77
|
+
**Returns:** `String|null`
|
|
78
|
+
|
|
79
|
+
```scss
|
|
80
|
+
$shade: getColorByShade(var(--color-500));
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### `getColorValue`
|
|
84
|
+
|
|
85
|
+
Gets color code for insertion into property.
|
|
86
|
+
|
|
87
|
+
**Parameters:**
|
|
88
|
+
- `$name: String` — variable name
|
|
89
|
+
- `$defaultValue: null` — default value
|
|
90
|
+
|
|
91
|
+
**Returns:** `String`
|
|
92
|
+
|
|
93
|
+
```scss
|
|
94
|
+
$color: getColorValue('--my-color', #333);
|
|
95
|
+
```
|
|
96
|
+
|
|
97
|
+
### `getColorValueSys`
|
|
98
|
+
|
|
99
|
+
Gets system color code for insertion into property.
|
|
100
|
+
|
|
101
|
+
**Parameters:**
|
|
102
|
+
- `$name: String` — variable suffix
|
|
103
|
+
|
|
104
|
+
**Returns:** `String`
|
|
105
|
+
|
|
106
|
+
```scss
|
|
107
|
+
$color: getColorValueSys('color');
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
## Palette Functions
|
|
111
|
+
|
|
112
|
+
### `getPalette`
|
|
113
|
+
|
|
114
|
+
Returns value for palette.
|
|
115
|
+
|
|
116
|
+
**Parameters:**
|
|
117
|
+
- `$color` — color
|
|
118
|
+
|
|
119
|
+
**Returns:** `String`
|
|
120
|
+
|
|
121
|
+
```scss
|
|
122
|
+
$value: getPalette(var(--primary-500));
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
### `getPaletteOpacity`
|
|
126
|
+
|
|
127
|
+
Returns value for palette opacity.
|
|
128
|
+
|
|
129
|
+
**Parameters:**
|
|
130
|
+
- `$color` — color
|
|
131
|
+
|
|
132
|
+
**Returns:** `String`
|
|
133
|
+
|
|
134
|
+
```scss
|
|
135
|
+
$opacity: getPaletteOpacity(var(--primary-500));
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
### `getPaletteItem`
|
|
139
|
+
|
|
140
|
+
Returns value for searching needed colors.
|
|
141
|
+
|
|
142
|
+
**Parameters:**
|
|
143
|
+
- `$palette: List` — palette list
|
|
144
|
+
- `$color: Color|String` — color
|
|
145
|
+
|
|
146
|
+
**Returns:** `String`
|
|
147
|
+
|
|
148
|
+
```scss
|
|
149
|
+
$item: getPaletteItem(('primary', 'secondary'), #ff0000);
|
|
150
|
+
```
|
|
151
|
+
|
|
152
|
+
### `getPaletteItemOpacity`
|
|
153
|
+
|
|
154
|
+
Returns value for searching needed colors opacity.
|
|
155
|
+
|
|
156
|
+
**Parameters:**
|
|
157
|
+
- `$palette: List` — palette list
|
|
158
|
+
- `$color: Color|String` — color
|
|
159
|
+
|
|
160
|
+
**Returns:** `String`
|
|
161
|
+
|
|
162
|
+
```scss
|
|
163
|
+
$opacity: getPaletteItemOpacity(('primary', 'secondary'), rgba(255, 0, 0, 0.8));
|
|
164
|
+
```
|
|
165
|
+
|
|
166
|
+
## Conversion Functions
|
|
167
|
+
|
|
168
|
+
### `toColorRbg`
|
|
169
|
+
|
|
170
|
+
Color conversion to RGB type.
|
|
171
|
+
|
|
172
|
+
**Parameters:**
|
|
173
|
+
- `$color` — color to convert
|
|
174
|
+
|
|
175
|
+
**Returns:** `String`
|
|
176
|
+
|
|
177
|
+
```scss
|
|
178
|
+
$rgb: toColorRbg(#ff5733); // "255, 87, 51"
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### `toColorOpacity`
|
|
182
|
+
|
|
183
|
+
Gets the transparency of the color.
|
|
184
|
+
|
|
185
|
+
**Parameters:**
|
|
186
|
+
- `$color` — color
|
|
187
|
+
|
|
188
|
+
**Returns:** `String`
|
|
189
|
+
|
|
190
|
+
```scss
|
|
191
|
+
$opacity: toColorOpacity(rgba(255, 0, 0, 0.7)); // 0.7
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### `toGradient`
|
|
195
|
+
|
|
196
|
+
Conversion of color into images for working with background-image.
|
|
197
|
+
|
|
198
|
+
**Parameters:**
|
|
199
|
+
- `$color` — color
|
|
200
|
+
|
|
201
|
+
**Returns:** `String`
|
|
202
|
+
|
|
203
|
+
```scss
|
|
204
|
+
$gradient: toGradient(rgba(255, 0, 0, 0.5));
|
|
205
|
+
```
|
|
206
|
+
|
|
207
|
+
### `toCustomVarRgb`
|
|
208
|
+
|
|
209
|
+
Converts custom variable to RGB format.
|
|
210
|
+
|
|
211
|
+
**Parameters:**
|
|
212
|
+
- `$color` — CSS custom property
|
|
213
|
+
|
|
214
|
+
**Returns:** `String`
|
|
215
|
+
|
|
216
|
+
```scss
|
|
217
|
+
$rgba: toCustomVarRgb(var(--my-color));
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
### `toCustomVarOpacity`
|
|
221
|
+
|
|
222
|
+
Adds transparency property to custom variable.
|
|
223
|
+
|
|
224
|
+
**Parameters:**
|
|
225
|
+
- `$color` — CSS custom property
|
|
226
|
+
- `$defaultValue: null` — default opacity value
|
|
227
|
+
|
|
228
|
+
**Returns:** `String`
|
|
229
|
+
|
|
230
|
+
```scss
|
|
231
|
+
$opacity: toCustomVarOpacity(var(--my-color), 1);
|
|
232
|
+
```
|
|
233
|
+
|
|
234
|
+
## System Mixins
|
|
235
|
+
|
|
236
|
+
### `initPalette`
|
|
237
|
+
|
|
238
|
+
Initializes palette-related opacity variables.
|
|
239
|
+
|
|
240
|
+
```scss
|
|
241
|
+
.component {
|
|
242
|
+
@include initPalette;
|
|
243
|
+
}
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
### `colorSys`
|
|
247
|
+
|
|
248
|
+
Defines system color variables (RGB and opacity).
|
|
249
|
+
|
|
250
|
+
**Parameters:**
|
|
251
|
+
- `$name: String` — variable suffix
|
|
252
|
+
- `$color: Color|String` — input color or CSS var
|
|
253
|
+
- `$important: false` — add !important
|
|
254
|
+
|
|
255
|
+
```scss
|
|
256
|
+
.element {
|
|
257
|
+
@include colorSys('primary', #3498db);
|
|
258
|
+
}
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
### `colorSysPalette`
|
|
262
|
+
|
|
263
|
+
Defines system palette variables (RGB and opacity).
|
|
264
|
+
|
|
265
|
+
**Parameters:**
|
|
266
|
+
- `$name: String` — palette key suffix
|
|
267
|
+
- `$color: Color|String` — input color or CSS var
|
|
268
|
+
|
|
269
|
+
```scss
|
|
270
|
+
.theme {
|
|
271
|
+
@include colorSysPalette('primary', #3498db);
|
|
272
|
+
}
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
## Palette Mixins
|
|
276
|
+
|
|
277
|
+
### `palette`
|
|
278
|
+
|
|
279
|
+
Sets base palette RGB value.
|
|
280
|
+
|
|
281
|
+
**Parameters:**
|
|
282
|
+
- `$color: Color|String` — input color or CSS var
|
|
283
|
+
|
|
284
|
+
```scss
|
|
285
|
+
.theme-blue {
|
|
286
|
+
@include palette(#3498db);
|
|
287
|
+
}
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
### `paletteVar`
|
|
291
|
+
|
|
292
|
+
Maps a custom variable into palette chain.
|
|
293
|
+
|
|
294
|
+
**Parameters:**
|
|
295
|
+
- `$color: Color|String` — CSS custom property
|
|
296
|
+
|
|
297
|
+
```scss
|
|
298
|
+
.dynamic-theme {
|
|
299
|
+
@include paletteVar(var(--theme-primary));
|
|
300
|
+
}
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
### `paletteColor`
|
|
304
|
+
|
|
305
|
+
Applies palette color to text.
|
|
306
|
+
|
|
307
|
+
**Parameters:**
|
|
308
|
+
- `$color: Color|String` — palette reference or color
|
|
309
|
+
|
|
310
|
+
```scss
|
|
311
|
+
.text {
|
|
312
|
+
@include paletteColor(#2c3e50);
|
|
313
|
+
}
|
|
314
|
+
```
|
|
315
|
+
|
|
316
|
+
### `paletteStroke`
|
|
317
|
+
|
|
318
|
+
Applies palette color to stroke.
|
|
319
|
+
|
|
320
|
+
**Parameters:**
|
|
321
|
+
- `$color: Color|String` — palette reference or color
|
|
322
|
+
|
|
323
|
+
```scss
|
|
324
|
+
.icon {
|
|
325
|
+
@include paletteStroke(#e74c3c);
|
|
326
|
+
}
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
### `paletteBackground`
|
|
330
|
+
|
|
331
|
+
Applies palette color to background.
|
|
332
|
+
|
|
333
|
+
**Parameters:**
|
|
334
|
+
- `$color: Color|String` — palette reference or color
|
|
335
|
+
|
|
336
|
+
```scss
|
|
337
|
+
.card {
|
|
338
|
+
@include paletteBackground(#ecf0f1);
|
|
339
|
+
}
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
### `paletteFill`
|
|
343
|
+
|
|
344
|
+
Applies palette color to fill.
|
|
345
|
+
|
|
346
|
+
**Parameters:**
|
|
347
|
+
- `$color: Color|String` — palette reference or color
|
|
348
|
+
|
|
349
|
+
```scss
|
|
350
|
+
.icon {
|
|
351
|
+
@include paletteFill(#3498db);
|
|
352
|
+
}
|
|
353
|
+
```
|
|
354
|
+
|
|
355
|
+
### `paletteGradient`
|
|
356
|
+
|
|
357
|
+
Applies palette gradient to background-image.
|
|
358
|
+
|
|
359
|
+
**Parameters:**
|
|
360
|
+
- `$color: Color|String` — palette reference or color
|
|
361
|
+
|
|
362
|
+
```scss
|
|
363
|
+
.hero {
|
|
364
|
+
@include paletteGradient(#667eea);
|
|
365
|
+
}
|
|
366
|
+
```
|
|
367
|
+
|
|
368
|
+
### `paletteBorder`
|
|
369
|
+
|
|
370
|
+
Applies palette color to border.
|
|
371
|
+
|
|
372
|
+
**Parameters:**
|
|
373
|
+
- `$color: Color|String` — palette reference or color
|
|
374
|
+
|
|
375
|
+
```scss
|
|
376
|
+
.input {
|
|
377
|
+
@include paletteBorder(#bdc3c7);
|
|
378
|
+
}
|
|
379
|
+
```
|
|
380
|
+
|
|
381
|
+
## Color Mixins
|
|
382
|
+
|
|
383
|
+
### `color`
|
|
384
|
+
|
|
385
|
+
Sets text color via system variables.
|
|
386
|
+
|
|
387
|
+
**Parameters:**
|
|
388
|
+
- `$color: Color|String` — color or CSS var
|
|
389
|
+
- `$opacity: null` — optional opacity [0..1]
|
|
390
|
+
- `$important: false` — add !important
|
|
391
|
+
- `$propertyName: 'color'` — CSS property name
|
|
392
|
+
|
|
393
|
+
```scss
|
|
394
|
+
.text {
|
|
395
|
+
@include color(#333333);
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
.text-transparent {
|
|
399
|
+
@include color(#ff0000, 0.5);
|
|
400
|
+
}
|
|
401
|
+
```
|
|
402
|
+
|
|
403
|
+
### `colorOpacity`
|
|
404
|
+
|
|
405
|
+
Sets text color opacity variable.
|
|
406
|
+
|
|
407
|
+
**Parameters:**
|
|
408
|
+
- `$opacity: Number` — opacity [0..1]
|
|
409
|
+
- `$important: false` — add !important
|
|
410
|
+
- `$init: false` — immediately apply computed color
|
|
411
|
+
- `$propertyName: 'color'` — CSS property name
|
|
412
|
+
|
|
413
|
+
```scss
|
|
414
|
+
.text {
|
|
415
|
+
@include color(#ff0000);
|
|
416
|
+
|
|
417
|
+
&:hover {
|
|
418
|
+
@include colorOpacity(0.7, false, true);
|
|
419
|
+
}
|
|
420
|
+
}
|
|
421
|
+
```
|
|
422
|
+
|
|
423
|
+
### `colorInit`
|
|
424
|
+
|
|
425
|
+
Applies computed system text color.
|
|
426
|
+
|
|
427
|
+
**Parameters:**
|
|
428
|
+
- `$important: false` — add !important
|
|
429
|
+
- `$propertyName: 'color'` — CSS property name
|
|
430
|
+
|
|
431
|
+
```scss
|
|
432
|
+
.element {
|
|
433
|
+
@include colorInit();
|
|
434
|
+
}
|
|
435
|
+
```
|
|
436
|
+
|
|
437
|
+
### `colorAsPalette`
|
|
438
|
+
|
|
439
|
+
Renders text color using palette variables.
|
|
440
|
+
|
|
441
|
+
```scss
|
|
442
|
+
.text {
|
|
443
|
+
@include colorAsPalette();
|
|
444
|
+
}
|
|
445
|
+
```
|
|
446
|
+
|
|
447
|
+
## Stroke Mixins
|
|
448
|
+
|
|
449
|
+
### `stroke`
|
|
450
|
+
|
|
451
|
+
Sets stroke color via system variables.
|
|
452
|
+
|
|
453
|
+
**Parameters:**
|
|
454
|
+
- `$color: Color|String` — color or CSS var
|
|
455
|
+
- `$opacity: null` — optional opacity [0..1]
|
|
456
|
+
- `$important: false` — add !important
|
|
457
|
+
|
|
458
|
+
```scss
|
|
459
|
+
.icon {
|
|
460
|
+
@include stroke(#000000);
|
|
461
|
+
}
|
|
462
|
+
```
|
|
463
|
+
|
|
464
|
+
### `strokeOpacity`
|
|
465
|
+
|
|
466
|
+
Sets stroke opacity variable.
|
|
467
|
+
|
|
468
|
+
**Parameters:**
|
|
469
|
+
- `$opacity: Number` — opacity [0..1]
|
|
470
|
+
- `$important: false` — add !important
|
|
471
|
+
- `$init: false` — immediately apply computed stroke
|
|
472
|
+
|
|
473
|
+
```scss
|
|
474
|
+
.icon {
|
|
475
|
+
@include strokeOpacity(0.5, false, true);
|
|
476
|
+
}
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
### `strokeInit`
|
|
480
|
+
|
|
481
|
+
Applies computed stroke color.
|
|
482
|
+
|
|
483
|
+
**Parameters:**
|
|
484
|
+
- `$important: false` — add !important
|
|
485
|
+
|
|
486
|
+
```scss
|
|
487
|
+
.icon {
|
|
488
|
+
@include strokeInit();
|
|
489
|
+
}
|
|
490
|
+
```
|
|
491
|
+
|
|
492
|
+
## Background Mixins
|
|
493
|
+
|
|
494
|
+
### `backgroundColor`
|
|
495
|
+
|
|
496
|
+
Sets background color via system variables.
|
|
497
|
+
|
|
498
|
+
**Parameters:**
|
|
499
|
+
- `$color: Color|String` — color, 'as-color', transparent or CSS var
|
|
500
|
+
- `$opacity: null` — optional opacity [0..1]
|
|
501
|
+
- `$important: false` — add !important
|
|
502
|
+
- `$propertyName: 'background-color'` — CSS property name
|
|
503
|
+
|
|
504
|
+
```scss
|
|
505
|
+
.card {
|
|
506
|
+
@include backgroundColor(#ffffff);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
.overlay {
|
|
510
|
+
@include backgroundColor(transparent);
|
|
511
|
+
}
|
|
512
|
+
```
|
|
513
|
+
|
|
514
|
+
### `backgroundOpacity`
|
|
515
|
+
|
|
516
|
+
Sets background opacity variable.
|
|
517
|
+
|
|
518
|
+
**Parameters:**
|
|
519
|
+
- `$opacity: Number` — opacity [0..1]
|
|
520
|
+
- `$important: false` — add !important
|
|
521
|
+
- `$init: false` — immediately apply computed background
|
|
522
|
+
- `$propertyName: 'background-color'` — CSS property name
|
|
523
|
+
|
|
524
|
+
```scss
|
|
525
|
+
.card {
|
|
526
|
+
@include backgroundOpacity(0.9, false, true);
|
|
527
|
+
}
|
|
528
|
+
```
|
|
529
|
+
|
|
530
|
+
### `backgroundSize`
|
|
531
|
+
|
|
532
|
+
Sets background-size and disables repeat.
|
|
533
|
+
|
|
534
|
+
**Parameters:**
|
|
535
|
+
- `$value` — background-size value
|
|
536
|
+
|
|
537
|
+
```scss
|
|
538
|
+
.hero {
|
|
539
|
+
@include backgroundSize(cover);
|
|
540
|
+
}
|
|
541
|
+
```
|
|
542
|
+
|
|
543
|
+
### `backgroundInit`
|
|
544
|
+
|
|
545
|
+
Applies computed background color.
|
|
546
|
+
|
|
547
|
+
**Parameters:**
|
|
548
|
+
- `$important: false` — add !important
|
|
549
|
+
- `$propertyName: 'background-color'` — CSS property name
|
|
550
|
+
|
|
551
|
+
```scss
|
|
552
|
+
.element {
|
|
553
|
+
@include backgroundInit();
|
|
554
|
+
}
|
|
555
|
+
```
|
|
556
|
+
|
|
557
|
+
### `backgroundAsColor`
|
|
558
|
+
|
|
559
|
+
Sets background from --sys-color variables.
|
|
560
|
+
|
|
561
|
+
```scss
|
|
562
|
+
.element {
|
|
563
|
+
@include backgroundAsColor();
|
|
564
|
+
}
|
|
565
|
+
```
|
|
566
|
+
|
|
567
|
+
## Fill Mixins
|
|
568
|
+
|
|
569
|
+
### `fill`
|
|
570
|
+
|
|
571
|
+
Sets fill color via background helpers.
|
|
572
|
+
|
|
573
|
+
**Parameters:**
|
|
574
|
+
- `$color: Color|String` — color or CSS var
|
|
575
|
+
- `$opacity: null` — optional opacity [0..1]
|
|
576
|
+
- `$important: false` — add !important
|
|
577
|
+
|
|
578
|
+
```scss
|
|
579
|
+
.icon {
|
|
580
|
+
@include fill(#3498db);
|
|
581
|
+
}
|
|
582
|
+
```
|
|
583
|
+
|
|
584
|
+
### `fillOpacity`
|
|
585
|
+
|
|
586
|
+
Sets fill opacity variable.
|
|
587
|
+
|
|
588
|
+
**Parameters:**
|
|
589
|
+
- `$opacity: Number` — opacity [0..1]
|
|
590
|
+
- `$important: false` — add !important
|
|
591
|
+
- `$init: false` — immediately apply computed fill
|
|
592
|
+
|
|
593
|
+
```scss
|
|
594
|
+
.icon {
|
|
595
|
+
@include fillOpacity(0.8, false, true);
|
|
596
|
+
}
|
|
597
|
+
```
|
|
598
|
+
|
|
599
|
+
### `fillInit`
|
|
600
|
+
|
|
601
|
+
Applies computed fill color.
|
|
602
|
+
|
|
603
|
+
**Parameters:**
|
|
604
|
+
- `$important: false` — add !important
|
|
605
|
+
|
|
606
|
+
```scss
|
|
607
|
+
.icon {
|
|
608
|
+
@include fillInit();
|
|
609
|
+
}
|
|
610
|
+
```
|
|
611
|
+
|
|
612
|
+
## Gradient Mixins
|
|
613
|
+
|
|
614
|
+
### `gradient`
|
|
615
|
+
|
|
616
|
+
Sets gradient (background-image) via system variables.
|
|
617
|
+
|
|
618
|
+
**Parameters:**
|
|
619
|
+
- `$color: Color|String` — color or CSS var
|
|
620
|
+
- `$opacity: null` — optional opacity [0..1]
|
|
621
|
+
- `$important: false` — add !important
|
|
622
|
+
|
|
623
|
+
```scss
|
|
624
|
+
.hero {
|
|
625
|
+
@include gradient(#667eea);
|
|
626
|
+
}
|
|
627
|
+
```
|
|
628
|
+
|
|
629
|
+
### `gradientOpacity`
|
|
630
|
+
|
|
631
|
+
Sets gradient opacity variable.
|
|
632
|
+
|
|
633
|
+
**Parameters:**
|
|
634
|
+
- `$opacity: Number` — opacity [0..1]
|
|
635
|
+
- `$important: false` — add !important
|
|
636
|
+
- `$init: false` — immediately apply computed gradient
|
|
637
|
+
|
|
638
|
+
```scss
|
|
639
|
+
.hero {
|
|
640
|
+
@include gradientOpacity(0.9, false, true);
|
|
641
|
+
}
|
|
642
|
+
```
|
|
643
|
+
|
|
644
|
+
### `gradientInit`
|
|
645
|
+
|
|
646
|
+
Applies computed gradient background image.
|
|
647
|
+
|
|
648
|
+
**Parameters:**
|
|
649
|
+
- `$important: false` — add !important
|
|
650
|
+
|
|
651
|
+
```scss
|
|
652
|
+
.element {
|
|
653
|
+
@include gradientInit();
|
|
654
|
+
}
|
|
655
|
+
```
|
|
656
|
+
|
|
657
|
+
## Border Mixins
|
|
658
|
+
|
|
659
|
+
### `borderColor`
|
|
660
|
+
|
|
661
|
+
Sets border color via system variables.
|
|
662
|
+
|
|
663
|
+
**Parameters:**
|
|
664
|
+
- `$color: Color|String` — color or CSS var
|
|
665
|
+
- `$opacity: null` — optional opacity [0..1]
|
|
666
|
+
- `$important: false` — add !important
|
|
667
|
+
|
|
668
|
+
```scss
|
|
669
|
+
.input {
|
|
670
|
+
@include borderColor(#d0d0d0);
|
|
671
|
+
}
|
|
672
|
+
```
|
|
673
|
+
|
|
674
|
+
### `borderOpacity`
|
|
675
|
+
|
|
676
|
+
Sets border opacity variable.
|
|
677
|
+
|
|
678
|
+
**Parameters:**
|
|
679
|
+
- `$opacity: Number` — opacity [0..1]
|
|
680
|
+
- `$important: false` — add !important
|
|
681
|
+
- `$init: false` — immediately apply computed border
|
|
682
|
+
|
|
683
|
+
```scss
|
|
684
|
+
.input {
|
|
685
|
+
@include borderOpacity(1, false, true);
|
|
686
|
+
}
|
|
687
|
+
```
|
|
688
|
+
|
|
689
|
+
### `borderInit`
|
|
690
|
+
|
|
691
|
+
Applies computed border color.
|
|
692
|
+
|
|
693
|
+
**Parameters:**
|
|
694
|
+
- `$important: false` — add !important
|
|
695
|
+
|
|
696
|
+
```scss
|
|
697
|
+
.element {
|
|
698
|
+
@include borderInit();
|
|
699
|
+
}
|
|
700
|
+
```
|
|
701
|
+
|
|
702
|
+
### `borderAsColor`
|
|
703
|
+
|
|
704
|
+
Sets border from --sys-color variables.
|
|
705
|
+
|
|
706
|
+
```scss
|
|
707
|
+
.element {
|
|
708
|
+
@include borderAsColor();
|
|
709
|
+
}
|
|
710
|
+
```
|
|
711
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {Meta} from '@storybook/addon-docs/blocks'
|
|
2
|
+
|
|
3
|
+
<Meta title='@dxtmisha/styles/en/Content'/>
|
|
4
|
+
|
|
5
|
+
# Content
|
|
6
|
+
|
|
7
|
+
A set of SCSS mixins for managing content visibility with CSS Custom Properties support.
|
|
8
|
+
|
|
9
|
+
## Mixins
|
|
10
|
+
|
|
11
|
+
### `contentVisibility`
|
|
12
|
+
|
|
13
|
+
Sets the `content-visibility` property with optional fallback for unsupported browsers.
|
|
14
|
+
|
|
15
|
+
**Parameters:**
|
|
16
|
+
- `$value` — content-visibility value ('auto', 'hidden', 'visible')
|
|
17
|
+
- `$display: null` — fallback display value
|
|
18
|
+
|
|
19
|
+
**Returns:** `void`
|
|
20
|
+
|
|
21
|
+
```scss
|
|
22
|
+
.list-item {
|
|
23
|
+
@include contentVisibility('auto');
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.hidden-section {
|
|
27
|
+
@include contentVisibility('hidden', none);
|
|
28
|
+
}
|
|
29
|
+
```
|