@salutejs/plasma-new-hope 0.326.0-canary.1973.15343275842.0 → 0.326.0-canary.1973.15428061748.0
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/cjs/components/CodeInput/CodeInput.css +1 -1
- package/cjs/components/CodeInput/CodeInput.js +4 -4
- package/cjs/components/CodeInput/CodeInput.js.map +1 -1
- package/cjs/components/CodeInput/CodeInput.tokens.js +37 -15
- package/cjs/components/CodeInput/CodeInput.tokens.js.map +1 -1
- package/cjs/components/CodeInput/utils/generateMediaQuery.js +49 -0
- package/cjs/components/CodeInput/utils/generateMediaQuery.js.map +1 -0
- package/cjs/components/CodeInput/variations/_size/base.js +1 -1
- package/cjs/components/CodeInput/variations/_size/base.js.map +1 -1
- package/cjs/components/CodeInput/variations/_size/base_eip8ma.css +1 -0
- package/cjs/index.css +1 -1
- package/cjs/index.js +2 -0
- package/cjs/index.js.map +1 -1
- package/emotion/cjs/components/CodeInput/CodeInput.js +3 -4
- package/emotion/cjs/components/CodeInput/CodeInput.tokens.js +37 -16
- package/emotion/cjs/components/CodeInput/index.js +8 -1
- package/emotion/cjs/components/CodeInput/utils/generateMediaQuery.js +45 -0
- package/emotion/cjs/components/CodeInput/utils/index.js +20 -1
- package/emotion/cjs/components/CodeInput/utils/types.js +5 -0
- package/emotion/cjs/components/CodeInput/variations/_size/base.js +1 -1
- package/emotion/cjs/examples/plasma_b2c/components/CodeInput/CodeInput.config.js +9 -5
- package/emotion/cjs/examples/plasma_web/components/CodeInput/CodeInput.config.js +9 -5
- package/emotion/es/components/CodeInput/CodeInput.js +4 -5
- package/emotion/es/components/CodeInput/CodeInput.tokens.js +36 -15
- package/emotion/es/components/CodeInput/index.js +2 -1
- package/emotion/es/components/CodeInput/utils/generateMediaQuery.js +39 -0
- package/emotion/es/components/CodeInput/utils/index.js +2 -1
- package/emotion/es/components/CodeInput/utils/types.js +1 -0
- package/emotion/es/components/CodeInput/variations/_size/base.js +2 -2
- package/emotion/es/examples/plasma_b2c/components/CodeInput/CodeInput.config.js +10 -6
- package/emotion/es/examples/plasma_web/components/CodeInput/CodeInput.config.js +10 -6
- package/es/components/CodeInput/CodeInput.css +1 -1
- package/es/components/CodeInput/CodeInput.js +4 -4
- package/es/components/CodeInput/CodeInput.js.map +1 -1
- package/es/components/CodeInput/CodeInput.tokens.js +37 -16
- package/es/components/CodeInput/CodeInput.tokens.js.map +1 -1
- package/es/components/CodeInput/utils/generateMediaQuery.js +43 -0
- package/es/components/CodeInput/utils/generateMediaQuery.js.map +1 -0
- package/es/components/CodeInput/variations/_size/base.js +1 -1
- package/es/components/CodeInput/variations/_size/base.js.map +1 -1
- package/es/components/CodeInput/variations/_size/base_eip8ma.css +1 -0
- package/es/index.css +1 -1
- package/es/index.js +1 -0
- package/es/index.js.map +1 -1
- package/package.json +5 -5
- package/styled-components/cjs/components/CodeInput/CodeInput.js +3 -4
- package/styled-components/cjs/components/CodeInput/CodeInput.tokens.js +37 -16
- package/styled-components/cjs/components/CodeInput/index.js +8 -1
- package/styled-components/cjs/components/CodeInput/utils/generateMediaQuery.js +45 -0
- package/styled-components/cjs/components/CodeInput/utils/index.js +20 -1
- package/styled-components/cjs/components/CodeInput/utils/types.js +5 -0
- package/styled-components/cjs/components/CodeInput/variations/_size/base.js +1 -1
- package/styled-components/cjs/examples/plasma_b2c/components/CodeInput/CodeInput.config.js +8 -4
- package/styled-components/cjs/examples/plasma_web/components/CodeInput/CodeInput.config.js +8 -4
- package/styled-components/es/components/CodeInput/CodeInput.js +4 -5
- package/styled-components/es/components/CodeInput/CodeInput.tokens.js +36 -15
- package/styled-components/es/components/CodeInput/index.js +2 -1
- package/styled-components/es/components/CodeInput/utils/generateMediaQuery.js +39 -0
- package/styled-components/es/components/CodeInput/utils/index.js +2 -1
- package/styled-components/es/components/CodeInput/utils/types.js +1 -0
- package/styled-components/es/components/CodeInput/variations/_size/base.js +2 -2
- package/styled-components/es/examples/plasma_b2c/components/CodeInput/CodeInput.config.js +9 -5
- package/styled-components/es/examples/plasma_web/components/CodeInput/CodeInput.config.js +9 -5
- package/types/components/Accordion/Accordion.d.ts +16 -16
- package/types/components/Accordion/Accordion.d.ts.map +1 -1
- package/types/components/Accordion/Accordion.types.d.ts +2 -2
- package/types/components/Accordion/Accordion.types.d.ts.map +1 -1
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.d.ts +12 -12
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts +0 -1
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.styles.d.ts.map +1 -1
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts +2 -2
- package/types/components/Accordion/ui/AccordionItem/AccordionItem.types.d.ts.map +1 -1
- package/types/components/Accordion/utils/index.d.ts +2 -2
- package/types/components/Accordion/utils/index.d.ts.map +1 -1
- package/types/components/Attach/Attach.d.ts.map +1 -1
- package/types/components/Attach/Attach.styles.d.ts +0 -1
- package/types/components/Attach/Attach.styles.d.ts.map +1 -1
- package/types/components/Attach/Attach.types.d.ts +3 -3
- package/types/components/Attach/Attach.types.d.ts.map +1 -1
- package/types/components/Attach/ui/Button/Button.styles.d.ts +35 -36
- package/types/components/Attach/ui/Button/Button.styles.d.ts.map +1 -1
- package/types/components/Attach/ui/Cell/Cell.styles.d.ts +19 -20
- package/types/components/Attach/ui/Cell/Cell.styles.d.ts.map +1 -1
- package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts +70 -71
- package/types/components/Attach/ui/IconButton/IconButton.styles.d.ts.map +1 -1
- package/types/components/Attach/utils/getFileicon.d.ts +1 -2
- package/types/components/Attach/utils/getFileicon.d.ts.map +1 -1
- package/types/components/Autocomplete/Autocomplete.d.ts +2 -2
- package/types/components/Autocomplete/Autocomplete.d.ts.map +1 -1
- package/types/components/Autocomplete/Autocomplete.styles.d.ts +2 -3
- package/types/components/Autocomplete/Autocomplete.styles.d.ts.map +1 -1
- package/types/components/Autocomplete/Autocomplete.types.d.ts +3 -3
- package/types/components/Autocomplete/Autocomplete.types.d.ts.map +1 -1
- package/types/components/Autocomplete/reducers/focusedReducer.d.ts +2 -2
- package/types/components/Autocomplete/reducers/focusedReducer.d.ts.map +1 -1
- package/types/components/Autocomplete/ui/SuggestionItem/SuggestionItem.styles.d.ts +0 -1
- package/types/components/Autocomplete/ui/SuggestionItem/SuggestionItem.styles.d.ts.map +1 -1
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts +224 -225
- package/types/components/Autocomplete/ui/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/Avatar/Avatar.d.ts.map +1 -1
- package/types/components/Avatar/Avatar.styles.d.ts +41 -42
- package/types/components/Avatar/Avatar.styles.d.ts.map +1 -1
- package/types/components/Avatar/Avatar.types.d.ts +8 -8
- package/types/components/Avatar/Avatar.types.d.ts.map +1 -1
- package/types/components/Avatar/utils/getInitialsForName.d.ts +1 -1
- package/types/components/Avatar/utils/getInitialsForName.d.ts.map +1 -1
- package/types/components/Avatar/utils/index.d.ts +1 -1
- package/types/components/Avatar/utils/index.d.ts.map +1 -1
- package/types/components/AvatarGroup/AvatarGroup.d.ts.map +1 -1
- package/types/components/AvatarGroup/AvatarGroup.types.d.ts +2 -2
- package/types/components/AvatarGroup/AvatarGroup.types.d.ts.map +1 -1
- package/types/components/Badge/Badge.d.ts.map +1 -1
- package/types/components/Badge/Badge.styles.d.ts +0 -1
- package/types/components/Badge/Badge.styles.d.ts.map +1 -1
- package/types/components/Badge/Badge.types.d.ts +5 -5
- package/types/components/Badge/Badge.types.d.ts.map +1 -1
- package/types/components/Breadcrumbs/Breadcrumbs.d.ts +9 -9
- package/types/components/Breadcrumbs/Breadcrumbs.d.ts.map +1 -1
- package/types/components/Breadcrumbs/Breadcrumbs.styles.d.ts +0 -1
- package/types/components/Breadcrumbs/Breadcrumbs.styles.d.ts.map +1 -1
- package/types/components/Breadcrumbs/Breadcrumbs.types.d.ts +3 -3
- package/types/components/Breadcrumbs/Breadcrumbs.types.d.ts.map +1 -1
- package/types/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.styles.d.ts +0 -1
- package/types/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.styles.d.ts.map +1 -1
- package/types/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.types.d.ts +2 -2
- package/types/components/Breadcrumbs/ui/BreadcrumbShorter/BreadcrumbShorter.types.d.ts.map +1 -1
- package/types/components/Breadcrumbs/utils/getShortItems.d.ts +2 -2
- package/types/components/Breadcrumbs/utils/getShortItems.d.ts.map +1 -1
- package/types/components/Breadcrumbs/utils/index.d.ts +1 -1
- package/types/components/Breadcrumbs/utils/index.d.ts.map +1 -1
- package/types/components/Button/Button.d.ts +2 -2
- package/types/components/Button/Button.d.ts.map +1 -1
- package/types/components/Button/Button.styles.d.ts +11 -12
- package/types/components/Button/Button.styles.d.ts.map +1 -1
- package/types/components/Button/Button.types.d.ts +7 -7
- package/types/components/Button/Button.types.d.ts.map +1 -1
- package/types/components/ButtonBase/index.d.ts +0 -1
- package/types/components/ButtonBase/index.d.ts.map +1 -1
- package/types/components/ButtonGroup/ButtonGroup.d.ts.map +1 -1
- package/types/components/ButtonGroup/ButtonGroup.types.d.ts +5 -5
- package/types/components/ButtonGroup/ButtonGroup.types.d.ts.map +1 -1
- package/types/components/Calendar/Calendar.types.d.ts +15 -15
- package/types/components/Calendar/Calendar.types.d.ts.map +1 -1
- package/types/components/Calendar/CalendarBase/CalendarBase.d.ts +1 -1
- package/types/components/Calendar/CalendarBase/CalendarBase.d.ts.map +1 -1
- package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts +0 -1
- package/types/components/Calendar/CalendarBase/CalendarBase.styles.d.ts.map +1 -1
- package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts +1 -1
- package/types/components/Calendar/CalendarDouble/CalendarDouble.d.ts.map +1 -1
- package/types/components/Calendar/CalendarDouble/CalendarDouble.styles.d.ts +0 -1
- package/types/components/Calendar/CalendarDouble/CalendarDouble.styles.d.ts.map +1 -1
- package/types/components/Calendar/hoc/withRange.d.ts +1 -2
- package/types/components/Calendar/hoc/withRange.d.ts.map +1 -1
- package/types/components/Calendar/hooks/types.d.ts +7 -7
- package/types/components/Calendar/hooks/types.d.ts.map +1 -1
- package/types/components/Calendar/hooks/useCalendarNavigation.d.ts +2 -2
- package/types/components/Calendar/hooks/useKeyNavigation.d.ts.map +1 -1
- package/types/components/Calendar/mixins/active.d.ts +1 -1
- package/types/components/Calendar/mixins/active.d.ts.map +1 -1
- package/types/components/Calendar/mixins/selected.d.ts +1 -1
- package/types/components/Calendar/mixins/selected.d.ts.map +1 -1
- package/types/components/Calendar/store/reducer.d.ts +1 -1
- package/types/components/Calendar/store/reducer.d.ts.map +1 -1
- package/types/components/Calendar/store/types.d.ts +13 -13
- package/types/components/Calendar/store/types.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarDays/CalendarDays.styles.d.ts +0 -1
- package/types/components/Calendar/ui/CalendarDays/CalendarDays.styles.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts +35 -36
- package/types/components/Calendar/ui/CalendarHeader/CalendarHeader.styles.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.d.ts +0 -1
- package/types/components/Calendar/ui/CalendarMonths/CalendarMonths.styles.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.d.ts +0 -1
- package/types/components/Calendar/ui/CalendarQuarters/CalendarQuarters.styles.d.ts.map +1 -1
- package/types/components/Calendar/ui/CalendarYears/CalendarYears.styles.d.ts +0 -1
- package/types/components/Calendar/ui/CalendarYears/CalendarYears.styles.d.ts.map +1 -1
- package/types/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.d.ts +1 -2
- package/types/components/Calendar/ui/DateStructureItem/DateStructureItem.styles.d.ts.map +1 -1
- package/types/components/Calendar/utils/calendarGridHelper.d.ts +1 -1
- package/types/components/Calendar/utils/calendarGridHelper.d.ts.map +1 -1
- package/types/components/Calendar/utils/calendarRangeHelper.d.ts +5 -5
- package/types/components/Calendar/utils/calendarRangeHelper.d.ts.map +1 -1
- package/types/components/Calendar/utils/constants.d.ts +1 -1
- package/types/components/Calendar/utils/constants.d.ts.map +1 -1
- package/types/components/Calendar/utils/getDateWithModification.d.ts +1 -1
- package/types/components/Calendar/utils/getDateWithModification.d.ts.map +1 -1
- package/types/components/Card/Card.d.ts +10 -10
- package/types/components/Card/Card.d.ts.map +1 -1
- package/types/components/Card/Card.styles.d.ts +3 -4
- package/types/components/Card/Card.styles.d.ts.map +1 -1
- package/types/components/Card/Card.types.d.ts +2 -2
- package/types/components/Card/Card.types.d.ts.map +1 -1
- package/types/components/Carousel/Carousel.d.ts +4 -4
- package/types/components/Carousel/Carousel.d.ts.map +1 -1
- package/types/components/Carousel/Carousel.styles.d.ts +3 -4
- package/types/components/Carousel/Carousel.styles.d.ts.map +1 -1
- package/types/components/Carousel/Carousel.types.d.ts +8 -8
- package/types/components/Carousel/Carousel.types.d.ts.map +1 -1
- package/types/components/Carousel/useCarousel.d.ts +6 -6
- package/types/components/Carousel/useCarousel.d.ts.map +1 -1
- package/types/components/Carousel/useDragScroll.d.ts +1 -2
- package/types/components/Carousel/useDragScroll.d.ts.map +1 -1
- package/types/components/Cell/Cell.d.ts.map +1 -1
- package/types/components/Cell/Cell.styles.d.ts +0 -1
- package/types/components/Cell/Cell.styles.d.ts.map +1 -1
- package/types/components/Cell/Cell.types.d.ts +3 -3
- package/types/components/Cell/Cell.types.d.ts.map +1 -1
- package/types/components/Cell/ui/CellTextbox/CellTextbox.styles.d.ts +0 -1
- package/types/components/Cell/ui/CellTextbox/CellTextbox.styles.d.ts.map +1 -1
- package/types/components/Cell/ui/CellTextbox/CellTextbox.types.d.ts +2 -2
- package/types/components/Cell/ui/CellTextbox/CellTextbox.types.d.ts.map +1 -1
- package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.d.ts +0 -1
- package/types/components/Cell/ui/CellTextboxLabel/CellTextboxLabel.styles.d.ts.map +1 -1
- package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.d.ts +0 -1
- package/types/components/Cell/ui/CellTextboxSubtitle/CellTextboxSubtitle.styles.d.ts.map +1 -1
- package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.d.ts +0 -1
- package/types/components/Cell/ui/CellTextboxTitle/CellTextboxTitle.styles.d.ts.map +1 -1
- package/types/components/Checkbox/Checkbox.d.ts.map +1 -1
- package/types/components/Checkbox/Checkbox.styles.d.ts +0 -1
- package/types/components/Checkbox/Checkbox.styles.d.ts.map +1 -1
- package/types/components/Checkbox/Checkbox.types.d.ts +0 -1
- package/types/components/Checkbox/Checkbox.types.d.ts.map +1 -1
- package/types/components/Checkbox/IconsSvg.d.ts +0 -1
- package/types/components/Checkbox/IconsSvg.d.ts.map +1 -1
- package/types/components/Chip/Chip.d.ts.map +1 -1
- package/types/components/Chip/Chip.styles.d.ts +0 -1
- package/types/components/Chip/Chip.styles.d.ts.map +1 -1
- package/types/components/Chip/Chip.types.d.ts +1 -1
- package/types/components/Chip/Chip.types.d.ts.map +1 -1
- package/types/components/ChipGroup/ChipGroup.d.ts.map +1 -1
- package/types/components/ChipGroup/ChipGroup.types.d.ts +2 -2
- package/types/components/ChipGroup/ChipGroup.types.d.ts.map +1 -1
- package/types/components/CodeField/CodeField.d.ts +34 -34
- package/types/components/CodeField/CodeField.d.ts.map +1 -1
- package/types/components/CodeField/CodeField.styles.d.ts +2 -3
- package/types/components/CodeField/CodeField.styles.d.ts.map +1 -1
- package/types/components/CodeField/CodeField.types.d.ts +3 -3
- package/types/components/CodeField/CodeField.types.d.ts.map +1 -1
- package/types/components/CodeField/utils/handleCodeError.d.ts +1 -1
- package/types/components/CodeField/utils/handleCodeError.d.ts.map +1 -1
- package/types/components/CodeField/utils/handleItemError.d.ts +1 -1
- package/types/components/CodeField/utils/handleItemError.d.ts.map +1 -1
- package/types/components/CodeField/utils/initialValuesHelper.d.ts +1 -1
- package/types/components/CodeField/utils/initialValuesHelper.d.ts.map +1 -1
- package/types/components/CodeInput/CodeInput.d.ts +36 -36
- package/types/components/CodeInput/CodeInput.d.ts.map +1 -1
- package/types/components/CodeInput/CodeInput.styles.d.ts +4 -5
- package/types/components/CodeInput/CodeInput.styles.d.ts.map +1 -1
- package/types/components/CodeInput/CodeInput.tokens.d.ts +36 -15
- package/types/components/CodeInput/CodeInput.tokens.d.ts.map +1 -1
- package/types/components/CodeInput/CodeInput.types.d.ts +3 -3
- package/types/components/CodeInput/CodeInput.types.d.ts.map +1 -1
- package/types/components/CodeInput/index.d.ts +1 -0
- package/types/components/CodeInput/index.d.ts.map +1 -1
- package/types/components/CodeInput/utils/generateMediaQuery.d.ts +12 -0
- package/types/components/CodeInput/utils/generateMediaQuery.d.ts.map +1 -0
- package/types/components/CodeInput/utils/handleCodeError.d.ts +1 -1
- package/types/components/CodeInput/utils/handleCodeError.d.ts.map +1 -1
- package/types/components/CodeInput/utils/handleItemError.d.ts +1 -1
- package/types/components/CodeInput/utils/handleItemError.d.ts.map +1 -1
- package/types/components/CodeInput/utils/index.d.ts +1 -0
- package/types/components/CodeInput/utils/index.d.ts.map +1 -1
- package/types/components/CodeInput/utils/initialValuesHelper.d.ts +1 -1
- package/types/components/CodeInput/utils/initialValuesHelper.d.ts.map +1 -1
- package/types/components/CodeInput/utils/types.d.ts +11 -0
- package/types/components/CodeInput/utils/types.d.ts.map +1 -0
- package/types/components/CodeInput/variations/_size/base.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.context.d.ts +0 -1
- package/types/components/Combobox/ComboboxNew/Combobox.context.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.d.ts +2 -3
- package/types/components/Combobox/ComboboxNew/Combobox.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts +5 -6
- package/types/components/Combobox/ComboboxNew/Combobox.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts +7 -7
- package/types/components/Combobox/ComboboxNew/Combobox.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/hooks/getPathMaps.d.ts +7 -7
- package/types/components/Combobox/ComboboxNew/hooks/getPathMaps.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts +2 -2
- package/types/components/Combobox/ComboboxNew/hooks/useKeyboardNavigation.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/reducers/focusedPathReducer.d.ts +2 -2
- package/types/components/Combobox/ComboboxNew/reducers/focusedPathReducer.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/reducers/pathReducer.d.ts +2 -2
- package/types/components/Combobox/ComboboxNew/reducers/pathReducer.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Inner/Inner.type.d.ts +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Inner/Inner.type.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.d.ts +21 -22
- package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.types.d.ts +3 -3
- package/types/components/Combobox/ComboboxNew/ui/Inner/ui/Item/Item.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.d.ts +1 -1
- package/types/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.d.ts +0 -1
- package/types/components/Combobox/ComboboxNew/ui/SelectNative/SelectNative.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts +224 -225
- package/types/components/Combobox/ComboboxNew/ui/Target/Target.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/utils/filterItems.d.ts +1 -1
- package/types/components/Combobox/ComboboxNew/utils/filterItems.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/utils/initialItemsTransform.d.ts +1 -1
- package/types/components/Combobox/ComboboxNew/utils/initialItemsTransform.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/utils/sizeToIconSize.d.ts +1 -1
- package/types/components/Combobox/ComboboxNew/utils/sizeToIconSize.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/utils/updateAncestors.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/utils/updateDescendants.d.ts +1 -1
- package/types/components/Combobox/ComboboxNew/utils/updateDescendants.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxNew/utils/updateSingleAncestors.d.ts +1 -1
- package/types/components/Combobox/ComboboxNew/utils/updateSingleAncestors.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/Combobox.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/Combobox.styles.d.ts +1 -2
- package/types/components/Combobox/ComboboxOld/Combobox.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts +11 -11
- package/types/components/Combobox/ComboboxOld/Combobox.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/hooks/useFocusController.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/hooks/useKeyNavigation.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.d.ts +0 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxChip/ComboboxChip.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.d.ts +6 -7
- package/types/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.types.d.ts +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxDivider/ComboboxDivider.types.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.d.ts +6 -7
- package/types/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.type.d.ts +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxFooter/ComboboxFooter.type.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.d.ts +14 -15
- package/types/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.type.d.ts +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxGroup/ComboboxGroup.type.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.d.ts +6 -7
- package/types/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.type.d.ts +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxHeader/ComboboxHeader.type.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.d.ts +28 -28
- package/types/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.d.ts +0 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.type.d.ts +2 -2
- package/types/components/Combobox/ComboboxOld/ui/ComboboxItem/ComboboxItem.type.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.d.ts +3 -4
- package/types/components/Combobox/ComboboxOld/ui/ComboboxTarget/ComboboxTarget.styles.d.ts.map +1 -1
- package/types/components/Combobox/ComboboxOld/utils/index.d.ts +4 -4
- package/types/components/Combobox/ComboboxOld/utils/index.d.ts.map +1 -1
- package/types/components/Counter/Counter.d.ts.map +1 -1
- package/types/components/Counter/Counter.types.d.ts +2 -2
- package/types/components/Counter/Counter.types.d.ts.map +1 -1
- package/types/components/DatePicker/DatePickerBase.styles.d.ts +2 -3
- package/types/components/DatePicker/DatePickerBase.styles.d.ts.map +1 -1
- package/types/components/DatePicker/DatePickerBase.types.d.ts +4 -4
- package/types/components/DatePicker/DatePickerBase.types.d.ts.map +1 -1
- package/types/components/DatePicker/RangeDate/RangeDate.d.ts +57 -56
- package/types/components/DatePicker/RangeDate/RangeDate.d.ts.map +1 -1
- package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts +105 -106
- package/types/components/DatePicker/RangeDate/RangeDate.styles.d.ts.map +1 -1
- package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts +9 -9
- package/types/components/DatePicker/RangeDate/RangeDate.types.d.ts.map +1 -1
- package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts +0 -1
- package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.d.ts.map +1 -1
- package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts +8 -8
- package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.styles.d.ts.map +1 -1
- package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts +2 -2
- package/types/components/DatePicker/RangeDate/RangeDatePopover/RangeDatePopover.types.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.d.ts +47 -47
- package/types/components/DatePicker/SingleDate/SingleDate.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts +224 -225
- package/types/components/DatePicker/SingleDate/SingleDate.styles.d.ts.map +1 -1
- package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts +6 -6
- package/types/components/DatePicker/SingleDate/SingleDate.types.d.ts.map +1 -1
- package/types/components/DatePicker/hooks/useDatePicker.d.ts +1 -1
- package/types/components/DatePicker/hooks/useDatePicker.d.ts.map +1 -1
- package/types/components/DatePicker/hooks/useKeyboardNavigation.d.ts.map +1 -1
- package/types/components/DatePicker/utils/dateHelper.d.ts +2 -2
- package/types/components/DatePicker/utils/dateHelper.d.ts.map +1 -1
- package/types/components/DatePicker/utils/getFormattedDates.d.ts +1 -1
- package/types/components/DatePicker/utils/getFormattedDates.d.ts.map +1 -1
- package/types/components/DatePicker/utils/getMaskedDateOnInput.d.ts +1 -1
- package/types/components/DatePicker/utils/getMaskedDateOnInput.d.ts.map +1 -1
- package/types/components/DatePicker/utils/getOriginalDates.d.ts +1 -1
- package/types/components/DatePicker/utils/getOriginalDates.d.ts.map +1 -1
- package/types/components/DatePicker/utils/normalizeDates.d.ts +1 -1
- package/types/components/DatePicker/utils/normalizeDates.d.ts.map +1 -1
- package/types/components/Divider/Divider.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.d.ts +24 -24
- package/types/components/Drawer/Drawer.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.styles.d.ts +2 -3
- package/types/components/Drawer/Drawer.styles.d.ts.map +1 -1
- package/types/components/Drawer/Drawer.types.d.ts +2 -3
- package/types/components/Drawer/Drawer.types.d.ts.map +1 -1
- package/types/components/Drawer/ui/DrawerContent/DrawerContent.d.ts +2 -3
- package/types/components/Drawer/ui/DrawerContent/DrawerContent.d.ts.map +1 -1
- package/types/components/Drawer/ui/DrawerContent/DrawerContent.types.d.ts +0 -1
- package/types/components/Drawer/ui/DrawerContent/DrawerContent.types.d.ts.map +1 -1
- package/types/components/Drawer/ui/DrawerFooter/DrawerFooter.d.ts +2 -3
- package/types/components/Drawer/ui/DrawerFooter/DrawerFooter.d.ts.map +1 -1
- package/types/components/Drawer/ui/DrawerFooter/DrawerFooter.types.d.ts +1 -1
- package/types/components/Drawer/ui/DrawerFooter/DrawerFooter.types.d.ts.map +1 -1
- package/types/components/Drawer/ui/DrawerHeader/DrawerHeader.d.ts +8 -9
- package/types/components/Drawer/ui/DrawerHeader/DrawerHeader.d.ts.map +1 -1
- package/types/components/Drawer/ui/DrawerHeader/DrawerHeader.types.d.ts +1 -1
- package/types/components/Drawer/ui/DrawerHeader/DrawerHeader.types.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.context.d.ts +0 -1
- package/types/components/Dropdown/Dropdown.context.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.d.ts +48 -48
- package/types/components/Dropdown/Dropdown.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.styles.d.ts +4 -5
- package/types/components/Dropdown/Dropdown.styles.d.ts.map +1 -1
- package/types/components/Dropdown/Dropdown.types.d.ts +7 -7
- package/types/components/Dropdown/Dropdown.types.d.ts.map +1 -1
- package/types/components/Dropdown/hooks/useHashMaps.d.ts +3 -3
- package/types/components/Dropdown/hooks/useHashMaps.d.ts.map +1 -1
- package/types/components/Dropdown/reducers/focusedPathReducer.d.ts +2 -2
- package/types/components/Dropdown/reducers/focusedPathReducer.d.ts.map +1 -1
- package/types/components/Dropdown/reducers/pathReducer.d.ts +2 -2
- package/types/components/Dropdown/reducers/pathReducer.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownDivider/DropdownDivider.d.ts +6 -6
- package/types/components/Dropdown/ui/DropdownDivider/DropdownDivider.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownDivider/DropdownDivider.styles.d.ts +0 -1
- package/types/components/Dropdown/ui/DropdownDivider/DropdownDivider.styles.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownDivider/DropdownDivider.types.d.ts +2 -2
- package/types/components/Dropdown/ui/DropdownDivider/DropdownDivider.types.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownFooter/DropdownFooter.d.ts +6 -6
- package/types/components/Dropdown/ui/DropdownFooter/DropdownFooter.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownFooter/DropdownFooter.styles.d.ts +0 -1
- package/types/components/Dropdown/ui/DropdownFooter/DropdownFooter.styles.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownFooter/DropdownFooter.type.d.ts +2 -2
- package/types/components/Dropdown/ui/DropdownFooter/DropdownFooter.type.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownGroup/DropdownGroup.d.ts +12 -12
- package/types/components/Dropdown/ui/DropdownGroup/DropdownGroup.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownGroup/DropdownGroup.styles.d.ts +0 -1
- package/types/components/Dropdown/ui/DropdownGroup/DropdownGroup.styles.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownGroup/DropdownGroup.type.d.ts +2 -2
- package/types/components/Dropdown/ui/DropdownGroup/DropdownGroup.type.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownHeader/DropdownHeader.d.ts +6 -6
- package/types/components/Dropdown/ui/DropdownHeader/DropdownHeader.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownHeader/DropdownHeader.styles.d.ts +0 -1
- package/types/components/Dropdown/ui/DropdownHeader/DropdownHeader.styles.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownHeader/DropdownHeader.type.d.ts +2 -2
- package/types/components/Dropdown/ui/DropdownHeader/DropdownHeader.type.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts +21 -22
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.styles.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts +1 -1
- package/types/components/Dropdown/ui/DropdownItem/DropdownItem.type.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts +0 -1
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.styles.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts +2 -2
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItem.type.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts +28 -28
- package/types/components/Dropdown/ui/DropdownItemOld/DropdownItemOld.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownOld/Dropdown.styles.d.ts +0 -1
- package/types/components/Dropdown/ui/DropdownOld/Dropdown.styles.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownOld/Dropdown.types.d.ts +5 -5
- package/types/components/Dropdown/ui/DropdownOld/Dropdown.types.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownOld/DropdownOld.d.ts.map +1 -1
- package/types/components/Dropdown/ui/DropdownOld/utils/index.d.ts +1 -1
- package/types/components/Dropdown/ui/DropdownOld/utils/index.d.ts.map +1 -1
- package/types/components/Dropdown/utils/getItemByFocused.d.ts.map +1 -1
- package/types/components/Dropdown/utils/getPlacement.d.ts +1 -1
- package/types/components/Dropdown/utils/index.d.ts +2 -2
- package/types/components/Dropdown/utils/index.d.ts.map +1 -1
- package/types/components/Dropzone/Dropzone.d.ts +25 -24
- package/types/components/Dropzone/Dropzone.d.ts.map +1 -1
- package/types/components/Dropzone/Dropzone.styles.d.ts +0 -1
- package/types/components/Dropzone/Dropzone.styles.d.ts.map +1 -1
- package/types/components/Dropzone/Dropzone.types.d.ts +5 -5
- package/types/components/Dropzone/Dropzone.types.d.ts.map +1 -1
- package/types/components/Editable/Editable.d.ts +1 -1
- package/types/components/Editable/Editable.d.ts.map +1 -1
- package/types/components/Editable/Editable.styles.d.ts +0 -1
- package/types/components/Editable/Editable.styles.d.ts.map +1 -1
- package/types/components/Editable/Editable.types.d.ts +1 -1
- package/types/components/Editable/Editable.types.d.ts.map +1 -1
- package/types/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/types/components/EmptyState/EmptyState.styles.d.ts +35 -36
- package/types/components/EmptyState/EmptyState.styles.d.ts.map +1 -1
- package/types/components/Flow/Flow.d.ts +3 -3
- package/types/components/Flow/Flow.d.ts.map +1 -1
- package/types/components/Flow/Flow.styles.d.ts +0 -1
- package/types/components/Flow/Flow.styles.d.ts.map +1 -1
- package/types/components/Grid/Grid.d.ts.map +1 -1
- package/types/components/Grid/ui/Col/Col.styles.d.ts +0 -1
- package/types/components/Grid/ui/Col/Col.styles.d.ts.map +1 -1
- package/types/components/Grid/ui/Col/Col.types.d.ts +4 -4
- package/types/components/Grid/ui/Col/Col.types.d.ts.map +1 -1
- package/types/components/Grid/ui/Row/Row.styles.d.ts +0 -1
- package/types/components/Grid/ui/Row/Row.styles.d.ts.map +1 -1
- package/types/components/Grid/utils/types.d.ts +6 -6
- package/types/components/Grid/utils/types.d.ts.map +1 -1
- package/types/components/IconButton/IconButton.d.ts +2 -3
- package/types/components/IconButton/IconButton.d.ts.map +1 -1
- package/types/components/Image/Image.d.ts +6 -6
- package/types/components/Image/Image.d.ts.map +1 -1
- package/types/components/Image/Image.styles.d.ts +0 -1
- package/types/components/Image/Image.styles.d.ts.map +1 -1
- package/types/components/Image/Image.types.d.ts +4 -4
- package/types/components/Image/Image.types.d.ts.map +1 -1
- package/types/components/Indicator/Indicator.d.ts.map +1 -1
- package/types/components/Indicator/Indicator.types.d.ts +2 -2
- package/types/components/Indicator/Indicator.types.d.ts.map +1 -1
- package/types/components/Link/Link.d.ts.map +1 -1
- package/types/components/Link/Link.types.d.ts +2 -3
- package/types/components/Link/Link.types.d.ts.map +1 -1
- package/types/components/LinkButton/LinkButton.d.ts +10 -10
- package/types/components/LinkButton/LinkButton.d.ts.map +1 -1
- package/types/components/LinkButton/LinkButton.styles.d.ts +9 -10
- package/types/components/LinkButton/LinkButton.styles.d.ts.map +1 -1
- package/types/components/LinkButton/LinkButton.types.d.ts +2 -2
- package/types/components/LinkButton/LinkButton.types.d.ts.map +1 -1
- package/types/components/List/List.d.ts +8 -8
- package/types/components/List/List.d.ts.map +1 -1
- package/types/components/List/List.types.d.ts +2 -2
- package/types/components/List/List.types.d.ts.map +1 -1
- package/types/components/List/ui/ListItem.styles.d.ts +19 -20
- package/types/components/List/ui/ListItem.styles.d.ts.map +1 -1
- package/types/components/List/ui/ListItem.types.d.ts +2 -2
- package/types/components/List/ui/ListItem.types.d.ts.map +1 -1
- package/types/components/Mask/Mask.d.ts +1 -1
- package/types/components/Mask/Mask.d.ts.map +1 -1
- package/types/components/Mask/Mask.types.d.ts +2 -2
- package/types/components/Mask/Mask.types.d.ts.map +1 -1
- package/types/components/Modal/Modal.d.ts.map +1 -1
- package/types/components/Modal/Modal.styles.d.ts +0 -1
- package/types/components/Modal/Modal.styles.d.ts.map +1 -1
- package/types/components/Modal/Modal.types.d.ts +5 -6
- package/types/components/Modal/Modal.types.d.ts.map +1 -1
- package/types/components/Note/Note.d.ts +20 -20
- package/types/components/Note/Note.d.ts.map +1 -1
- package/types/components/Note/Note.styles.d.ts +36 -37
- package/types/components/Note/Note.styles.d.ts.map +1 -1
- package/types/components/Note/Note.types.d.ts +1 -1
- package/types/components/Note/Note.types.d.ts.map +1 -1
- package/types/components/Notification/Notification.d.ts +2 -2
- package/types/components/Notification/Notification.d.ts.map +1 -1
- package/types/components/Notification/Notification.styles.d.ts +43 -43
- package/types/components/Notification/Notification.styles.d.ts.map +1 -1
- package/types/components/Notification/Notification.types.d.ts +6 -6
- package/types/components/Notification/Notification.types.d.ts.map +1 -1
- package/types/components/Notification/NotificationsStore.d.ts +3 -3
- package/types/components/Notification/NotificationsStore.d.ts.map +1 -1
- package/types/components/Notification/utils/index.d.ts +2 -1
- package/types/components/Notification/utils/index.d.ts.map +1 -1
- package/types/components/NumberFormat/NumberFormat.d.ts +11 -11
- package/types/components/NumberFormat/NumberFormat.d.ts.map +1 -1
- package/types/components/NumberFormat/NumberFormat.types.d.ts +3 -3
- package/types/components/NumberFormat/NumberFormat.types.d.ts.map +1 -1
- package/types/components/NumberInput/NumberInput.d.ts.map +1 -1
- package/types/components/NumberInput/NumberInput.types.d.ts +3 -3
- package/types/components/NumberInput/NumberInput.types.d.ts.map +1 -1
- package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts +35 -36
- package/types/components/NumberInput/ui/ActionButton/ActionButton.styles.d.ts.map +1 -1
- package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts +1 -1
- package/types/components/NumberInput/ui/ActionButton/ActionButton.types.d.ts.map +1 -1
- package/types/components/NumberInput/ui/Input/Input.d.ts +12 -12
- package/types/components/NumberInput/ui/Input/Input.styles.d.ts +8 -9
- package/types/components/NumberInput/ui/Input/Input.styles.d.ts.map +1 -1
- package/types/components/NumberInput/ui/Input/Input.types.d.ts +1 -1
- package/types/components/NumberInput/ui/Input/Input.types.d.ts.map +1 -1
- package/types/components/NumberInput/utils/index.d.ts +1 -1
- package/types/components/NumberInput/utils/index.d.ts.map +1 -1
- package/types/components/Overlay/Overlay.styles.d.ts +3 -4
- package/types/components/Overlay/Overlay.styles.d.ts.map +1 -1
- package/types/components/Overlay/Overlay.types.d.ts +1 -1
- package/types/components/Overlay/Overlay.types.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.styles.d.ts +70 -71
- package/types/components/Pagination/Pagination.styles.d.ts.map +1 -1
- package/types/components/Pagination/Pagination.types.d.ts +2 -2
- package/types/components/Pagination/Pagination.types.d.ts.map +1 -1
- package/types/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.d.ts +0 -1
- package/types/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.styles.d.ts.map +1 -1
- package/types/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.types.d.ts +2 -2
- package/types/components/Pagination/ui/PaginationQuickJumpToPage/PaginationQuickJumpToPage.types.d.ts.map +1 -1
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts +264 -265
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.styles.d.ts.map +1 -1
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.types.d.ts +2 -2
- package/types/components/Pagination/ui/PaginationSelectPerPage/PaginationSelectPerPage.types.d.ts.map +1 -1
- package/types/components/Pagination/utils/index.d.ts +2 -1
- package/types/components/Pagination/utils/index.d.ts.map +1 -1
- package/types/components/PaginationDots/PaginationDot.d.ts +1 -2
- package/types/components/PaginationDots/PaginationDot.d.ts.map +1 -1
- package/types/components/PaginationDots/PaginationDots.d.ts +1 -2
- package/types/components/PaginationDots/PaginationDots.d.ts.map +1 -1
- package/types/components/Panel/Panel.d.ts.map +1 -1
- package/types/components/Panel/Panel.styles.d.ts +1 -2
- package/types/components/Panel/Panel.styles.d.ts.map +1 -1
- package/types/components/Panel/Panel.types.d.ts +1 -1
- package/types/components/Panel/Panel.types.d.ts.map +1 -1
- package/types/components/Panel/ui/PanelContent/PanelContent.d.ts +2 -2
- package/types/components/Panel/ui/PanelContent/PanelContent.d.ts.map +1 -1
- package/types/components/Panel/ui/PanelContent/PanelContent.types.d.ts +1 -1
- package/types/components/Panel/ui/PanelContent/PanelContent.types.d.ts.map +1 -1
- package/types/components/Panel/ui/PanelFooter/PanelFooter.d.ts +2 -2
- package/types/components/Panel/ui/PanelFooter/PanelFooter.d.ts.map +1 -1
- package/types/components/Panel/ui/PanelFooter/PanelFooter.types.d.ts +1 -1
- package/types/components/Panel/ui/PanelFooter/PanelFooter.types.d.ts.map +1 -1
- package/types/components/Panel/ui/PanelHeader/PanelHeader.d.ts +8 -8
- package/types/components/Panel/ui/PanelHeader/PanelHeader.d.ts.map +1 -1
- package/types/components/Panel/ui/PanelHeader/PanelHeader.styles.d.ts +37 -37
- package/types/components/Panel/ui/PanelHeader/PanelHeader.styles.d.ts.map +1 -1
- package/types/components/Panel/ui/PanelHeader/PanelHeader.types.d.ts +2 -2
- package/types/components/Panel/ui/PanelHeader/PanelHeader.types.d.ts.map +1 -1
- package/types/components/Popover/Popover.d.ts.map +1 -1
- package/types/components/Popover/Popover.styles.d.ts +0 -1
- package/types/components/Popover/Popover.styles.d.ts.map +1 -1
- package/types/components/Popover/Popover.types.d.ts +3 -3
- package/types/components/Popover/Popover.types.d.ts.map +1 -1
- package/types/components/Popover/hooks/usePopoverOffset.d.ts +0 -1
- package/types/components/Popover/hooks/usePopoverOffset.d.ts.map +1 -1
- package/types/components/Popup/Popup.d.ts.map +1 -1
- package/types/components/Popup/Popup.styles.d.ts +0 -1
- package/types/components/Popup/Popup.styles.d.ts.map +1 -1
- package/types/components/Popup/Popup.types.d.ts +3 -4
- package/types/components/Popup/Popup.types.d.ts.map +1 -1
- package/types/components/Popup/hooks/usePopup.d.ts +0 -1
- package/types/components/Popup/hooks/usePopup.d.ts.map +1 -1
- package/types/components/Portal/Portal.types.d.ts +1 -1
- package/types/components/Portal/Portal.types.d.ts.map +1 -1
- package/types/components/Price/Price.d.ts +2 -2
- package/types/components/Price/Price.d.ts.map +1 -1
- package/types/components/Price/Price.styles.d.ts +0 -1
- package/types/components/Price/Price.styles.d.ts.map +1 -1
- package/types/components/Price/utils/formatCurrency.d.ts.map +1 -1
- package/types/components/Progress/Progress.d.ts.map +1 -1
- package/types/components/Progress/Progress.styles.d.ts +0 -1
- package/types/components/Progress/Progress.styles.d.ts.map +1 -1
- package/types/components/Progress/Progress.types.d.ts +1 -1
- package/types/components/Progress/Progress.types.d.ts.map +1 -1
- package/types/components/Radiobox/Radiobox.d.ts +1 -1
- package/types/components/Radiobox/Radiobox.d.ts.map +1 -1
- package/types/components/Radiobox/Radiobox.styles.d.ts +0 -1
- package/types/components/Radiobox/Radiobox.styles.d.ts.map +1 -1
- package/types/components/Range/Range.d.ts.map +1 -1
- package/types/components/Range/Range.styles.d.ts +224 -225
- package/types/components/Range/Range.styles.d.ts.map +1 -1
- package/types/components/Range/Range.types.d.ts +7 -7
- package/types/components/Range/Range.types.d.ts.map +1 -1
- package/types/components/Range/utils/index.d.ts +2 -2
- package/types/components/Range/utils/index.d.ts.map +1 -1
- package/types/components/Rating/Rating.d.ts +20 -20
- package/types/components/Rating/Rating.d.ts.map +1 -1
- package/types/components/Rating/Rating.styles.d.ts +0 -1
- package/types/components/Rating/Rating.styles.d.ts.map +1 -1
- package/types/components/Rating/Rating.types.d.ts +1 -1
- package/types/components/Rating/Rating.types.d.ts.map +1 -1
- package/types/components/Rating/utils/getIcons.d.ts +1 -2
- package/types/components/Rating/utils/getIcons.d.ts.map +1 -1
- package/types/components/Rating/utils/index.d.ts +2 -2
- package/types/components/Rating/utils/index.d.ts.map +1 -1
- package/types/components/SSRProvider/SSRProvider.d.ts.map +1 -1
- package/types/components/Segment/SegmentProvider/SegmentProvider.types.d.ts +3 -3
- package/types/components/Segment/SegmentProvider/SegmentProvider.types.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.styles.d.ts +4 -5
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.styles.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.types.d.ts +1 -1
- package/types/components/Segment/ui/SegmentGroup/SegmentGroup.types.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentItem/SegmentItem.d.ts +13 -12
- package/types/components/Segment/ui/SegmentItem/SegmentItem.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentItem/SegmentItem.styles.d.ts +3 -4
- package/types/components/Segment/ui/SegmentItem/SegmentItem.styles.d.ts.map +1 -1
- package/types/components/Segment/ui/SegmentItem/SegmentItem.types.d.ts +2 -2
- package/types/components/Segment/ui/SegmentItem/SegmentItem.types.d.ts.map +1 -1
- package/types/components/Select/Select.context.d.ts +0 -1
- package/types/components/Select/Select.context.d.ts.map +1 -1
- package/types/components/Select/Select.d.ts +2 -2
- package/types/components/Select/Select.d.ts.map +1 -1
- package/types/components/Select/Select.styles.d.ts +5 -6
- package/types/components/Select/Select.styles.d.ts.map +1 -1
- package/types/components/Select/Select.types.d.ts +11 -11
- package/types/components/Select/Select.types.d.ts.map +1 -1
- package/types/components/Select/hooks/useKeyboardNavigation.d.ts +2 -2
- package/types/components/Select/hooks/useKeyboardNavigation.d.ts.map +1 -1
- package/types/components/Select/hooks/usePathMaps.d.ts +6 -6
- package/types/components/Select/hooks/usePathMaps.d.ts.map +1 -1
- package/types/components/Select/reducers/focusedPathReducer.d.ts +2 -2
- package/types/components/Select/reducers/focusedPathReducer.d.ts.map +1 -1
- package/types/components/Select/reducers/pathReducer.d.ts +2 -2
- package/types/components/Select/reducers/pathReducer.d.ts.map +1 -1
- package/types/components/Select/ui/Inner/Inner.type.d.ts +1 -1
- package/types/components/Select/ui/Inner/Inner.type.d.ts.map +1 -1
- package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts +23 -24
- package/types/components/Select/ui/Inner/ui/Item/Item.styles.d.ts.map +1 -1
- package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts +5 -5
- package/types/components/Select/ui/Inner/ui/Item/Item.types.d.ts.map +1 -1
- package/types/components/Select/ui/SelectNative/SelectNative.d.ts +1 -1
- package/types/components/Select/ui/SelectNative/SelectNative.d.ts.map +1 -1
- package/types/components/Select/ui/SelectNative/SelectNative.styles.d.ts +0 -1
- package/types/components/Select/ui/SelectNative/SelectNative.styles.d.ts.map +1 -1
- package/types/components/Select/ui/Target/Target.d.ts +6 -5
- package/types/components/Select/ui/Target/Target.d.ts.map +1 -1
- package/types/components/Select/ui/Target/Target.types.d.ts +1 -1
- package/types/components/Select/ui/Target/Target.types.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Button/Button.styles.d.ts +35 -36
- package/types/components/Select/ui/Target/ui/Button/Button.styles.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts +2 -2
- package/types/components/Select/ui/Target/ui/Button/Button.types.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts +227 -228
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.styles.d.ts.map +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts +1 -1
- package/types/components/Select/ui/Target/ui/Textfield/Textfield.types.d.ts.map +1 -1
- package/types/components/Select/utils/getCorrectHeight.d.ts +1 -1
- package/types/components/Select/utils/getCorrectHeight.d.ts.map +1 -1
- package/types/components/Select/utils/getFallbackPlacements.d.ts +1 -1
- package/types/components/Select/utils/getFallbackPlacements.d.ts.map +1 -1
- package/types/components/Select/utils/getPlacement.d.ts +1 -1
- package/types/components/Select/utils/getPlacement.d.ts.map +1 -1
- package/types/components/Select/utils/getView.d.ts +1 -1
- package/types/components/Select/utils/initialItemsTransform.d.ts +1 -1
- package/types/components/Select/utils/initialItemsTransform.d.ts.map +1 -1
- package/types/components/Select/utils/sizeToIconSize.d.ts +1 -1
- package/types/components/Select/utils/sizeToIconSize.d.ts.map +1 -1
- package/types/components/Select/utils/updateAncestors.d.ts.map +1 -1
- package/types/components/Select/utils/updateDescendants.d.ts +1 -1
- package/types/components/Select/utils/updateDescendants.d.ts.map +1 -1
- package/types/components/Select/utils/updateSingleAncestors.d.ts +1 -1
- package/types/components/Select/utils/updateSingleAncestors.d.ts.map +1 -1
- package/types/components/Sheet/Sheet.d.ts.map +1 -1
- package/types/components/Sheet/Sheet.styles.d.ts +4 -5
- package/types/components/Sheet/Sheet.styles.d.ts.map +1 -1
- package/types/components/Sheet/Sheet.types.d.ts +2 -2
- package/types/components/Sheet/Sheet.types.d.ts.map +1 -1
- package/types/components/Sheet/hooks/useSheetSwipe.d.ts +1 -1
- package/types/components/Sheet/hooks/useSheetSwipe.d.ts.map +1 -1
- package/types/components/Sheet/utils/handleTransition.d.ts +1 -1
- package/types/components/Sheet/utils/handleTransition.d.ts.map +1 -1
- package/types/components/Skeleton/LineSkeleton/LineSkeleton.d.ts +4 -4
- package/types/components/Skeleton/LineSkeleton/LineSkeleton.d.ts.map +1 -1
- package/types/components/Skeleton/LineSkeleton/LineSkeleton.styles.d.ts +0 -1
- package/types/components/Skeleton/LineSkeleton/LineSkeleton.styles.d.ts.map +1 -1
- package/types/components/Skeleton/LineSkeleton/LineSkeleton.types.d.ts +3 -3
- package/types/components/Skeleton/LineSkeleton/LineSkeleton.types.d.ts.map +1 -1
- package/types/components/Skeleton/RectSkeleton/RectSkeleton.d.ts +2 -2
- package/types/components/Skeleton/RectSkeleton/RectSkeleton.styles.d.ts +0 -1
- package/types/components/Skeleton/RectSkeleton/RectSkeleton.styles.d.ts.map +1 -1
- package/types/components/Skeleton/RectSkeleton/RectSkeleton.types.d.ts +3 -3
- package/types/components/Skeleton/RectSkeleton/RectSkeleton.types.d.ts.map +1 -1
- package/types/components/Skeleton/Skeleton.types.d.ts +1 -1
- package/types/components/Skeleton/Skeleton.types.d.ts.map +1 -1
- package/types/components/Skeleton/TextSkeleton/TextSkeleton.d.ts +1 -2
- package/types/components/Skeleton/TextSkeleton/TextSkeleton.d.ts.map +1 -1
- package/types/components/Skeleton/TextSkeleton/TextSkeleton.styles.d.ts +0 -1
- package/types/components/Skeleton/TextSkeleton/TextSkeleton.styles.d.ts.map +1 -1
- package/types/components/Skeleton/TextSkeleton/TextSkeleton.types.d.ts +2 -2
- package/types/components/Skeleton/TextSkeleton/TextSkeleton.types.d.ts.map +1 -1
- package/types/components/Skeleton/hoc/withSkeleton.d.ts +1 -2
- package/types/components/Skeleton/hoc/withSkeleton.d.ts.map +1 -1
- package/types/components/Slider/Slider.d.ts.map +1 -1
- package/types/components/Slider/Slider.types.d.ts +1 -1
- package/types/components/Slider/Slider.types.d.ts.map +1 -1
- package/types/components/Slider/components/Double/Double.styles.d.ts +224 -225
- package/types/components/Slider/components/Double/Double.styles.d.ts.map +1 -1
- package/types/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.types.d.ts +2 -2
- package/types/components/Slider/components/DoubleUncontrolled/DoubleUncontrolled.types.d.ts.map +1 -1
- package/types/components/Slider/components/Single/Single.styles.d.ts +0 -1
- package/types/components/Slider/components/Single/Single.styles.d.ts.map +1 -1
- package/types/components/Slider/components/Single/Single.types.d.ts +3 -3
- package/types/components/Slider/components/Single/Single.types.d.ts.map +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts +0 -1
- package/types/components/Slider/components/SliderBase/SliderBase.styles.d.ts.map +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts +1 -1
- package/types/components/Slider/components/SliderBase/SliderBase.types.d.ts.map +1 -1
- package/types/components/Slider/ui/Handler/Handler.styles.d.ts +4 -5
- package/types/components/Slider/ui/Handler/Handler.styles.d.ts.map +1 -1
- package/types/components/Slider/ui/Handler/computeKeyPressData.d.ts.map +1 -1
- package/types/components/Slider/ui/Thumb/Thumb.d.ts +0 -1
- package/types/components/Slider/ui/Thumb/Thumb.d.ts.map +1 -1
- package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts +1 -2
- package/types/components/Slider/ui/Thumb/Thumb.styles.d.ts.map +1 -1
- package/types/components/Spinner/Spinner.d.ts.map +1 -1
- package/types/components/Spinner/Spinner.styles.d.ts +0 -1
- package/types/components/Spinner/Spinner.styles.d.ts.map +1 -1
- package/types/components/Spinner/Spinner.types.d.ts +2 -3
- package/types/components/Spinner/Spinner.types.d.ts.map +1 -1
- package/types/components/Steps/Steps.d.ts +1 -1
- package/types/components/Steps/Steps.d.ts.map +1 -1
- package/types/components/Steps/Steps.types.d.ts +3 -3
- package/types/components/Steps/Steps.types.d.ts.map +1 -1
- package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts +11 -12
- package/types/components/Steps/ui/StepItem/StepItem.styles.d.ts.map +1 -1
- package/types/components/Steps/ui/StepItem/StepItem.types.d.ts +2 -2
- package/types/components/Steps/ui/StepItem/StepItem.types.d.ts.map +1 -1
- package/types/components/Steps/utils/getItemStatus.d.ts +2 -2
- package/types/components/Steps/utils/getItemStatus.d.ts.map +1 -1
- package/types/components/Switch/Switch.d.ts.map +1 -1
- package/types/components/Switch/Switch.styles.d.ts +0 -1
- package/types/components/Switch/Switch.styles.d.ts.map +1 -1
- package/types/components/Table/Table.d.ts.map +1 -1
- package/types/components/Table/Table.styles.d.ts +83 -84
- package/types/components/Table/Table.styles.d.ts.map +1 -1
- package/types/components/Table/Table.types.d.ts +2 -2
- package/types/components/Table/Table.types.d.ts.map +1 -1
- package/types/components/Table/ui/Cell/Cell.d.ts +1 -1
- package/types/components/Table/ui/Cell/Cell.d.ts.map +1 -1
- package/types/components/Table/ui/Cell/Cell.styles.d.ts +4 -5
- package/types/components/Table/ui/Cell/Cell.styles.d.ts.map +1 -1
- package/types/components/Table/ui/EditableCell/EditableCell.d.ts +1 -1
- package/types/components/Table/ui/EditableCell/EditableCell.d.ts.map +1 -1
- package/types/components/Table/ui/EditableCell/EditableCell.styles.d.ts +74 -75
- package/types/components/Table/ui/EditableCell/EditableCell.styles.d.ts.map +1 -1
- package/types/components/Table/ui/HeadCell/HeadCell.d.ts +2 -2
- package/types/components/Table/ui/HeadCell/HeadCell.d.ts.map +1 -1
- package/types/components/Table/ui/HeadCell/HeadCell.styles.d.ts +0 -1
- package/types/components/Table/ui/HeadCell/HeadCell.styles.d.ts.map +1 -1
- package/types/components/Table/ui/HeadCell/ui/Filter/Filter.d.ts +1 -1
- package/types/components/Table/ui/HeadCell/ui/Filter/Filter.d.ts.map +1 -1
- package/types/components/Table/ui/HeadCell/ui/Filter/Filter.styles.d.ts +264 -265
- package/types/components/Table/ui/HeadCell/ui/Filter/Filter.styles.d.ts.map +1 -1
- package/types/components/Tabs/TabItem.types.d.ts +7 -7
- package/types/components/Tabs/TabItem.types.d.ts.map +1 -1
- package/types/components/Tabs/Tabs.types.d.ts +7 -7
- package/types/components/Tabs/Tabs.types.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts +0 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabItem/HorizontalTabItem.styles.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.d.ts.map +1 -1
- package/types/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.d.ts +2 -3
- package/types/components/Tabs/ui/horizontal/HorizontalTabs/HorizontalTabs.styles.d.ts.map +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.d.ts.map +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts +0 -1
- package/types/components/Tabs/ui/vertical/VerticalTabItem/VerticalTabItem.styles.d.ts.map +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.d.ts.map +1 -1
- package/types/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.d.ts +1 -2
- package/types/components/Tabs/ui/vertical/VerticalTabs/VerticalTabs.styles.d.ts.map +1 -1
- package/types/components/Tabs/utils/index.d.ts +2 -2
- package/types/components/Tabs/utils/index.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.styles.d.ts +6 -7
- package/types/components/TextArea/TextArea.styles.d.ts.map +1 -1
- package/types/components/TextArea/TextArea.types.d.ts +13 -13
- package/types/components/TextArea/TextArea.types.d.ts.map +1 -1
- package/types/components/TextArea/hooks/useAutoResize.d.ts +1 -1
- package/types/components/TextArea/hooks/useAutoResize.d.ts.map +1 -1
- package/types/components/TextArea/ui/Hint/Hint.types.d.ts +1 -1
- package/types/components/TextArea/ui/Hint/Hint.types.d.ts.map +1 -1
- package/types/components/TextField/TextField.d.ts.map +1 -1
- package/types/components/TextField/TextField.styles.d.ts +3 -4
- package/types/components/TextField/TextField.styles.d.ts.map +1 -1
- package/types/components/TextField/TextField.types.d.ts +12 -12
- package/types/components/TextField/TextField.types.d.ts.map +1 -1
- package/types/components/TextField/hooks/useKeyNavigation.d.ts.map +1 -1
- package/types/components/TextField/ui/Hint/Hint.types.d.ts +1 -1
- package/types/components/TextField/ui/Hint/Hint.types.d.ts.map +1 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts +0 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.styles.d.ts.map +1 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts +0 -1
- package/types/components/TextField/ui/TextFieldChip/TextFieldChip.types.d.ts.map +1 -1
- package/types/components/TextFieldGroup/TextFieldGroup.d.ts.map +1 -1
- package/types/components/TextFieldGroup/TextFieldGroup.types.d.ts +8 -8
- package/types/components/TextFieldGroup/TextFieldGroup.types.d.ts.map +1 -1
- package/types/components/Toast/Toast.d.ts.map +1 -1
- package/types/components/Toast/Toast.styles.d.ts +37 -38
- package/types/components/Toast/Toast.styles.d.ts.map +1 -1
- package/types/components/Toast/Toast.types.d.ts +5 -5
- package/types/components/Toast/Toast.types.d.ts.map +1 -1
- package/types/components/Toast/ToastController.d.ts +1 -2
- package/types/components/Toast/ToastController.d.ts.map +1 -1
- package/types/components/Toast/ToastNew/ToastNew.d.ts.map +1 -1
- package/types/components/Toast/ToastNew/ToastNew.styles.d.ts +37 -37
- package/types/components/Toast/ToastNew/ToastNew.types.d.ts +2 -2
- package/types/components/Toast/ToastNew/ToastNew.types.d.ts.map +1 -1
- package/types/components/Toast/ToastProvider/ToastProvider.d.ts +1 -1
- package/types/components/Toast/ToastProvider/ToastProvider.d.ts.map +1 -1
- package/types/components/Toast/ToastProvider/ToastProvider.types.d.ts +7 -7
- package/types/components/Toast/ToastProvider/ToastProvider.types.d.ts.map +1 -1
- package/types/components/Toast/utils.d.ts +35 -36
- package/types/components/Toast/utils.d.ts.map +1 -1
- package/types/components/Toolbar/Toolbar.d.ts +8 -8
- package/types/components/Toolbar/Toolbar.d.ts.map +1 -1
- package/types/components/Toolbar/Toolbar.types.d.ts +2 -2
- package/types/components/Toolbar/Toolbar.types.d.ts.map +1 -1
- package/types/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.d.ts +0 -1
- package/types/components/Toolbar/ui/ToolbarDivider/ToolbarDivider.d.ts.map +1 -1
- package/types/components/Tooltip/Tooltip.d.ts +2 -2
- package/types/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/types/components/Tooltip/Tooltip.styles.d.ts +0 -1
- package/types/components/Tooltip/Tooltip.styles.d.ts.map +1 -1
- package/types/components/Tree/Tree.d.ts.map +1 -1
- package/types/components/Tree/Tree.styles.d.ts +1 -2
- package/types/components/Tree/Tree.styles.d.ts.map +1 -1
- package/types/components/Tree/Tree.types.d.ts +2 -2
- package/types/components/Tree/Tree.types.d.ts.map +1 -1
- package/types/components/Tree/utils/sizeToIconSize.d.ts +1 -1
- package/types/components/Tree/utils/sizeToIconSize.d.ts.map +1 -1
- package/types/components/Typography/Body/Body.d.ts +1 -2
- package/types/components/Typography/Body/Body.d.ts.map +1 -1
- package/types/components/Typography/Dspl/Dspl.d.ts +1 -2
- package/types/components/Typography/Dspl/Dspl.d.ts.map +1 -1
- package/types/components/Typography/Heading/Heading.d.ts +1 -2
- package/types/components/Typography/Heading/Heading.d.ts.map +1 -1
- package/types/components/Typography/Old/Body/Body.d.ts +1 -2
- package/types/components/Typography/Old/Body/Body.d.ts.map +1 -1
- package/types/components/Typography/Old/Button/Button.d.ts +1 -2
- package/types/components/Typography/Old/Button/Button.d.ts.map +1 -1
- package/types/components/Typography/Old/Caption/Caption.d.ts +1 -2
- package/types/components/Typography/Old/Caption/Caption.d.ts.map +1 -1
- package/types/components/Typography/Old/Display/Display.d.ts +1 -2
- package/types/components/Typography/Old/Display/Display.d.ts.map +1 -1
- package/types/components/Typography/Old/Footnote/Footnote.d.ts +1 -2
- package/types/components/Typography/Old/Footnote/Footnote.d.ts.map +1 -1
- package/types/components/Typography/Old/Headline/Headline.d.ts +1 -2
- package/types/components/Typography/Old/Headline/Headline.d.ts.map +1 -1
- package/types/components/Typography/Old/Paragraph/Paragraph.d.ts +1 -2
- package/types/components/Typography/Old/Paragraph/Paragraph.d.ts.map +1 -1
- package/types/components/Typography/Old/ParagraphText/ParagraphText.d.ts +1 -2
- package/types/components/Typography/Old/ParagraphText/ParagraphText.d.ts.map +1 -1
- package/types/components/Typography/Old/Subtitle/Subtitle.d.ts +1 -1
- package/types/components/Typography/Old/Subtitle/Subtitle.d.ts.map +1 -1
- package/types/components/Typography/Old/TypographyOld.d.ts +1 -1
- package/types/components/Typography/Old/TypographyOld.d.ts.map +1 -1
- package/types/components/Typography/Old/Underline/Underline.d.ts +1 -2
- package/types/components/Typography/Old/Underline/Underline.d.ts.map +1 -1
- package/types/components/Typography/Text/Text.d.ts +1 -2
- package/types/components/Typography/Text/Text.d.ts.map +1 -1
- package/types/components/Typography/Typography.d.ts +2 -2
- package/types/components/Typography/Typography.d.ts.map +1 -1
- package/types/components/Typography/Typography.types.d.ts +1 -1
- package/types/components/Typography/Typography.types.d.ts.map +1 -1
- package/types/components/ViewContainer/ViewContainer.d.ts +2 -2
- package/types/components/ViewContainer/ViewContainer.d.ts.map +1 -1
- package/types/components/_Icon/IconRoot.d.ts +1 -1
- package/types/components/_Icon/IconRoot.d.ts.map +1 -1
- package/types/engines/common.d.ts +1 -1
- package/types/engines/common.d.ts.map +1 -1
- package/types/engines/index.d.ts.map +1 -1
- package/types/engines/types.d.ts +14 -15
- package/types/engines/types.d.ts.map +1 -1
- package/types/engines/utils.d.ts +1 -1
- package/types/engines/utils.d.ts.map +1 -1
- package/types/hooks/useDidMountEffect.d.ts.map +1 -1
- package/types/hooks/useFocusTrap.d.ts +1 -2
- package/types/hooks/useFocusTrap.d.ts.map +1 -1
- package/types/hooks/useOutsideClick.d.ts +1 -1
- package/types/hooks/useOutsideClick.d.ts.map +1 -1
- package/types/hooks/usePreviousValue.d.ts.map +1 -1
- package/types/mixins/addFocus.d.ts +1 -1
- package/types/mixins/addFocus.d.ts.map +1 -1
- package/types/mixins/applyBlur.d.ts +1 -1
- package/types/mixins/applyBlur.d.ts.map +1 -1
- package/types/mixins/applyRoundness.d.ts +2 -2
- package/types/mixins/applyRoundness.d.ts.map +1 -1
- package/types/mixins/applySpacing.d.ts +1 -1
- package/types/mixins/applySpacing.d.ts.map +1 -1
- package/types/mixins/createApplyPaperMixin.d.ts +11 -11
- package/types/mixins/createApplyPaperMixin.d.ts.map +1 -1
- package/types/mixins/mediaQuery.d.ts +3 -3
- package/types/mixins/mediaQuery.d.ts.map +1 -1
- package/types/types/AsProps.d.ts +1 -2
- package/types/types/AsProps.d.ts.map +1 -1
- package/types/types/DistributiveOmit.d.ts +1 -1
- package/types/types/DistributiveOmit.d.ts.map +1 -1
- package/types/types/DistributivePick.d.ts +1 -1
- package/types/types/DistributivePick.d.ts.map +1 -1
- package/types/types/FormType.d.ts +2 -2
- package/types/types/FormType.d.ts.map +1 -1
- package/types/types/Range.d.ts +2 -2
- package/types/types/Range.d.ts.map +1 -1
- package/types/utils/createConditionalComponent.d.ts +2 -2
- package/types/utils/createConditionalComponent.d.ts.map +1 -1
- package/types/utils/createEvent.d.ts +1 -1
- package/types/utils/createEvent.d.ts.map +1 -1
- package/types/utils/focusManager.d.ts +1 -2
- package/types/utils/focusManager.d.ts.map +1 -1
- package/types/utils/getHeightAsNumber.d.ts +1 -1
- package/types/utils/getPopoverPlacement.d.ts +4 -4
- package/types/utils/getPopoverPlacement.d.ts.map +1 -1
- package/types/utils/index.d.ts.map +1 -1
- package/types/utils/roundness.d.ts +2 -2
- package/types/utils/roundness.d.ts.map +1 -1
- package/types/utils/setRefList.d.ts +1 -1
- package/types/utils/setRefList.d.ts.map +1 -1
- package/types/utils/tabbable.d.ts +3 -3
- package/types/utils/tabbable.d.ts.map +1 -1
- package/types/utils/useFocusTrap.d.ts +1 -2
- package/types/utils/useFocusTrap.d.ts.map +1 -1
- package/cjs/components/CodeInput/variations/_size/base_fhdb3l.css +0 -1
- package/es/components/CodeInput/variations/_size/base_fhdb3l.css +0 -1
@@ -9,6 +9,6 @@
|
|
9
9
|
|
10
10
|
.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_c19x1gm7__01f4780b{color:var(--plasma-codeinput-caption-color);}.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_c19x1gm7__01f4780b.base_lzwhmf_codeinputCaptionError__01f4780b{color:var(--plasma-codeinput-caption-color-error);}.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_i16menav__01f4780b{color:var(--plasma-codeinput-code-color);background-color:var(--plasma-codeinput-background-color);box-shadow:inset 0 0 0 var(--plasma-codeinput-border-width) var(--plasma-codeinput-border-color);}.base_lzwhmf_bxs6mj3__01f4780b:hover .base_lzwhmf_codeinputItemHoverEnabled__01f4780b{background-color:var(--plasma-codeinput-background-color-hover);box-shadow:inset 0 0 0 var(--plasma-codeinput-border-width) var(--plasma-codeinput-border-color-hover);}.base_lzwhmf_bxs6mj3__01f4780b:focus-within .base_lzwhmf_i16menav__01f4780b:focus-within{background-color:var(--plasma-codeinput-background-color-focus);box-shadow:inset 0 0 0 var(--plasma-codeinput-border-width) var(--plasma-codeinput-border-color-focus);}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputCodeErrorAnimation__01f4780b{-webkit-animation:base_lzwhmf_shakingErrorBxs6mj3__01f4780b 0.3s forwards;animation:base_lzwhmf_shakingErrorBxs6mj3__01f4780b 0.3s forwards;}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputCodeError__01f4780b .base_lzwhmf_i16menav__01f4780b{color:var(--plasma-codeinput-code-color-error);background-color:var(--plasma-codeinput-background-error-color);box-shadow:inset 0 0 0 var(--plasma-codeinput-border-width) var(--plasma-codeinput-border-error-color);}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputCodeError__01f4780b .base_lzwhmf_i1tn2nm3__01f4780b{border:var(--plasma-codeinput-item-circle-border-width) solid var(--plasma-codeinput-code-color-error);}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputCodeError__01f4780b .base_lzwhmf_i1tn2nm3__01f4780b.base_lzwhmf_codeinputItemCircleFilled__01f4780b{background-color:var(--plasma-codeinput-code-color-error);}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputCodeError__01f4780b:focus-within .base_lzwhmf_i16menav__01f4780b{background-color:var(--plasma-codeinput-background-error-color);box-shadow:inset 0 0 0 var(--plasma-codeinput-border-width) var(--plasma-codeinput-border-error-color);}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputCodeError__01f4780b.base_lzwhmf_codeinputCodeErrorFade__01f4780b .base_lzwhmf_i16menav__01f4780b{-webkit-animation:base_lzwhmf_fadeErrorBxs6mj3__01f4780b 0.3s forwards;animation:base_lzwhmf_fadeErrorBxs6mj3__01f4780b 0.3s forwards;}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputItemErrorAnimation__01f4780b{-webkit-animation:base_lzwhmf_shakingErrorBxs6mj3__01f4780b 0.3s forwards;animation:base_lzwhmf_shakingErrorBxs6mj3__01f4780b 0.3s forwards;}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputItemError__01f4780b,.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputItemError__01f4780b:focus-within{color:var(--plasma-codeinput-code-color-error);background-color:var(--plasma-codeinput-background-error-color);box-shadow:inset 0 0 0 var(--plasma-codeinput-border-width) var(--plasma-codeinput-border-error-color);}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputItemError__01f4780b.base_lzwhmf_codeinputCodeErrorFade__01f4780b,.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputItemError__01f4780b:focus-within.base_lzwhmf_codeinputCodeErrorFade__01f4780b{-webkit-animation:base_lzwhmf_shakingErrorBxs6mj3__01f4780b 0.3s forwards :local(fadeError-bxs6mj3) 0.3s :local(forwards);animation:base_lzwhmf_shakingErrorBxs6mj3__01f4780b 0.3s forwards :local(fadeError-bxs6mj3) 0.3s :local(forwards);}@-webkit-keyframes base_lzwhmf_shakingErrorBxs6mj3__01f4780b{14%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}28%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}42%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}57%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}71%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}85%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}100%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}}@keyframes base_lzwhmf_shakingErrorBxs6mj3__01f4780b{14%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}28%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}42%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}57%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}71%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}85%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}100%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}}@-webkit-keyframes base_lzwhmf_fadeErrorBxs6mj3__01f4780b{50%{color:var(--plasma-codeinput-code-color-error);}100%{color:transparent;}}@keyframes base_lzwhmf_fadeErrorBxs6mj3__01f4780b{50%{color:var(--plasma-codeinput-code-color-error);}100%{color:transparent;}}
|
11
11
|
|
12
|
-
.
|
12
|
+
.base_eip8ma_bbkzv6b__a380a498{gap:var(--plasma-codeinput-caption-gap);}.base_eip8ma_bbkzv6b__a380a498 .base_eip8ma_c1fux591__a380a498,.base_eip8ma_bbkzv6b__a380a498 .base_eip8ma_cuja080__a380a498{gap:var(--plasma-codeinput-code-item-gap);}.base_eip8ma_bbkzv6b__a380a498 .base_eip8ma_i16menav__a380a498{font-size:var(--private-codeinput-font-size);font-family:var(--plasma-codeinput-font-family);font-style:var(--plasma-codeinput-font-style);font-weight:var(--plasma-codeinput-font-weight);-webkit-letter-spacing:var(--plasma-codeinput-letter-spacing);-moz-letter-spacing:var(--plasma-codeinput-letter-spacing);-ms-letter-spacing:var(--plasma-codeinput-letter-spacing);letter-spacing:var(--plasma-codeinput-letter-spacing);line-height:var(--private-codeinput-line-height);width:var(--private-codeinput-item-width);height:var(--private-codeinput-item-hieght);}.base_eip8ma_bbkzv6b__a380a498 .base_eip8ma_c19x1gm7__a380a498{font-family:var(--plasma-codeinput-caption-font-family);font-size:var(--plasma-codeinput-caption-font-style);font-style:var(--plasma-codeinput-caption-font-size);font-weight:var(--plasma-codeinput-caption-font-weight);-webkit-letter-spacing:var(--plasma-codeinput-caption-letter-spacing);-moz-letter-spacing:var(--plasma-codeinput-caption-letter-spacing);-ms-letter-spacing:var(--plasma-codeinput-caption-letter-spacing);letter-spacing:var(--plasma-codeinput-caption-letter-spacing);line-height:var(--plasma-codeinput-caption-line-height);}
|
13
13
|
|
14
14
|
.base_vkh53h_b1vzcfqx__e0f9eeea.base_vkh53h_b1vzcfqx__e0f9eeea[disabled]{opacity:var(--plasma-codeinput-disabled-opacity);cursor:not-allowed;}.base_vkh53h_b1vzcfqx__e0f9eeea.base_vkh53h_b1vzcfqx__e0f9eeea[disabled] > *{pointer-events:none;}
|
@@ -14,6 +14,7 @@ var base$2 = require('./variations/_disabled/base.js');
|
|
14
14
|
var initialValuesHelper = require('./utils/initialValuesHelper.js');
|
15
15
|
var useDidMountEffect = require('../../hooks/useDidMountEffect.js');
|
16
16
|
var handleCodeError = require('./utils/handleCodeError.js');
|
17
|
+
var generateMediaQuery = require('./utils/generateMediaQuery.js');
|
17
18
|
var getSizeValueFromProp = require('../../utils/getSizeValueFromProp.js');
|
18
19
|
var handleItemError = require('./utils/handleItemError.js');
|
19
20
|
|
@@ -69,7 +70,7 @@ var codeInputRoot = function codeInputRoot(Root) {
|
|
69
70
|
var fieldPattern = initialValuesHelper.getFieldPattern(allowedSymbols);
|
70
71
|
var placeholderValue = initialValuesHelper.getPlaceholderValue(codeLength, placeholder);
|
71
72
|
var parts = codeLength === 6 ? 2 : 1;
|
72
|
-
var
|
73
|
+
var viewClass = generateMediaQuery.getCodeInputViewClass(view || 'default');
|
73
74
|
var widthValue = width ? getSizeValueFromProp.getSizeValueFromProp(width, 'rem') : undefined;
|
74
75
|
var getLastActiveIndex = function getLastActiveIndex() {
|
75
76
|
if (code.length && code.length < codeLength) {
|
@@ -222,7 +223,7 @@ var codeInputRoot = function codeInputRoot(Root) {
|
|
222
223
|
disabled: disabled,
|
223
224
|
screen: screen,
|
224
225
|
onClick: handleClick,
|
225
|
-
className: cls__default.default(className, _rollupPluginBabelHelpers.defineProperty({}, CodeInput_tokens.classes.captionAlignLeft, captionAlign === 'left'))
|
226
|
+
className: cls__default.default(className, viewClass, _rollupPluginBabelHelpers.defineProperty({}, CodeInput_tokens.classes.captionAlignLeft, captionAlign === 'left'))
|
226
227
|
}, rest), /*#__PURE__*/React__default.default.createElement(CodeInput_styles.CodeWrapper, {
|
227
228
|
ref: inputContainerRef
|
228
229
|
}, _rollupPluginBabelHelpers.toConsumableArray(Array(parts)).map(function (_, partIndex) {
|
@@ -233,8 +234,7 @@ var codeInputRoot = function codeInputRoot(Root) {
|
|
233
234
|
}, _rollupPluginBabelHelpers.toConsumableArray(Array(codeLength / parts)).map(function (_, i) {
|
234
235
|
var inputCorrectIndex = i + codeLength / parts * partIndex;
|
235
236
|
return /*#__PURE__*/React__default.default.createElement(CodeInput_styles.ItemWrapper, {
|
236
|
-
key: partIndex + i + partIndex * i
|
237
|
-
className: screenClass
|
237
|
+
key: partIndex + i + partIndex * i
|
238
238
|
}, /*#__PURE__*/React__default.default.createElement(CodeInput_styles.ItemInput, _rollupPluginBabelHelpers.extends({
|
239
239
|
ref: function ref(element) {
|
240
240
|
inputRefs.current[inputCorrectIndex] = element;
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CodeInput.js","sources":["../../../src/components/CodeInput/CodeInput.tsx"],"sourcesContent":["import React, { forwardRef, Fragment, useCallback, useEffect, useRef, useState } from 'react';\nimport cls from 'classnames';\nimport type { ChangeEvent, KeyboardEvent, ClipboardEvent } from 'react';\nimport type { RootProps } from 'src/engines';\nimport { useDidMountEffect } from 'src/hooks';\nimport { getSizeValueFromProp } from 'src/utils';\n\nimport type { CodeInputProps } from './CodeInput.types';\nimport { BACKSPACE_KEY, FORBIDDEN_KEYS, ONLY_DIGITS_PATTERN } from './utils/constants';\nimport { getCodeValue, getFieldPattern, getPlaceholderValue, handleCodeError, handleItemError } from './utils';\nimport { classes } from './CodeInput.tokens';\nimport {\n base,\n CaptionWrapper,\n CodeGroup,\n CodeWrapper,\n ItemInput,\n Separator,\n ItemWrapper,\n ItemCircle,\n} from './CodeInput.styles';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\n\nexport const codeInputRoot = (Root: RootProps<HTMLDivElement, CodeInputProps>) =>\n forwardRef<HTMLInputElement, CodeInputProps>(\n (\n {\n className,\n value: outerValue,\n placeholder,\n autoFocus,\n codeLength = 6,\n caption,\n captionAlign = 'left',\n width,\n view,\n size,\n screen = 'medium',\n hidden,\n disabled,\n isError,\n allowedSymbols = ONLY_DIGITS_PATTERN,\n itemErrorBehavior = 'remove-symbol',\n codeErrorBehavior = 'remove-code',\n autoComplete = 'one-time-code',\n setIsError,\n onChange,\n onFullCodeEnter,\n ...rest\n },\n ref,\n ) => {\n const [code, setCode] = useState<Array<string>>(getCodeValue(codeLength, outerValue || ''));\n const [originalValue, setOriginalValue] = useState<string>(code.join(''));\n\n const inputRefs = useRef<Array<HTMLInputElement>>([]);\n const inputContainerRef = useRef<HTMLDivElement | null>(null);\n const captionRef = useRef<HTMLDivElement | null>(null);\n\n const fieldPattern = getFieldPattern(allowedSymbols);\n const placeholderValue = getPlaceholderValue(codeLength, placeholder);\n const parts = codeLength === 6 ? 2 : 1;\n\n const screenClass = classes[`${screen}Screen`];\n\n const widthValue = width ? getSizeValueFromProp(width, 'rem') : undefined;\n\n const getLastActiveIndex = () => {\n if (code.length && code.length < codeLength) {\n return code.length;\n }\n\n const lastEmptyIndex = code.findIndex((digit) => digit === '');\n return lastEmptyIndex >= 0 ? lastEmptyIndex : codeLength - 1;\n };\n\n const handleClick = () => {\n if (disabled) {\n return;\n }\n\n const lastActiveIndex = getLastActiveIndex();\n\n if (inputRefs.current[lastActiveIndex]) {\n inputRefs.current[lastActiveIndex].focus();\n }\n };\n\n const handleOnKeyDown = (event: KeyboardEvent<HTMLInputElement>, index: number) => {\n if (disabled) {\n return;\n }\n\n const { key } = event;\n if (FORBIDDEN_KEYS.includes(key)) {\n event.preventDefault();\n\n return;\n }\n\n if (key === BACKSPACE_KEY) {\n if (index > 0 && code[index] === '') {\n inputRefs.current[index - 1]?.focus();\n }\n }\n };\n\n const codeSetter = (newCode: Array<string>) => {\n setCode(newCode);\n setOriginalValue(newCode.join(''));\n\n if (onChange) {\n onChange(newCode.join(''));\n }\n };\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>, index: number) => {\n if (disabled) {\n return;\n }\n\n const rawSymbol = event.currentTarget.value;\n const symbol = rawSymbol.charAt(rawSymbol.length - 1);\n const newCode = [...code];\n\n inputRefs.current[index]?.classList.remove(classes.itemError);\n if (isError) {\n captionRef.current?.classList.remove(classes.captionError);\n\n if (codeErrorBehavior === 'keep') {\n inputContainerRef.current?.classList.remove(classes.codeError, classes.codeErrorAnimation);\n }\n\n if (setIsError) {\n setIsError(false);\n }\n }\n\n if (!fieldPattern) {\n newCode[index] = symbol;\n codeSetter(newCode);\n\n if (symbol && index < codeLength - 1) {\n inputRefs.current[index + 1]?.focus();\n }\n\n return;\n }\n\n if (!symbol) {\n newCode[index] = '';\n codeSetter(newCode);\n\n return;\n }\n\n if (fieldPattern.test(symbol)) {\n newCode[index] = symbol.charAt(symbol.length - 1);\n codeSetter(newCode);\n\n if (index < codeLength - 1) {\n inputRefs.current[index + 1]?.focus();\n }\n } else {\n newCode[index] = symbol.charAt(symbol.length - 1);\n\n handleItemError({\n currentSymbol: symbol,\n itemErrorBehavior,\n index,\n newCode,\n inputRefs,\n setCode,\n codeSetter,\n });\n }\n };\n\n const handlePaste = (event: ClipboardEvent<HTMLInputElement>) => {\n if (disabled) {\n return;\n }\n\n event.preventDefault();\n\n const rawData = event.clipboardData.getData('text/plain');\n\n const pastedData = (fieldPattern\n ? rawData\n .split('')\n .map((symb) => symb.match(fieldPattern)?.[0] || '')\n .filter(Boolean) || []\n : rawData.split('')\n ).slice(0, codeLength);\n\n const activeIndex = Math.min(pastedData.length, codeLength - 1);\n inputRefs.current[activeIndex]?.focus();\n\n codeSetter(pastedData);\n };\n\n const handleFullCodeEnter = useCallback((fullCode: string) => {\n if (onFullCodeEnter) {\n onFullCodeEnter(fullCode);\n }\n }, []);\n\n useEffect(() => {\n inputRefs.current = inputRefs.current.slice(0, codeLength);\n }, [codeLength]);\n\n useEffect(() => {\n if (autoFocus && !disabled) {\n const lastActiveIndex = getLastActiveIndex();\n\n inputRefs.current[lastActiveIndex]?.focus();\n }\n }, [autoFocus]);\n\n useDidMountEffect(() => {\n if (handleFullCodeEnter && originalValue.length === codeLength) {\n handleFullCodeEnter(originalValue);\n }\n }, [originalValue, handleFullCodeEnter]);\n\n useDidMountEffect(() => {\n if (isError) {\n handleCodeError({\n codeLength,\n codeErrorBehavior,\n currentCode: code,\n inputRefs,\n inputContainerRef,\n captionRef,\n setCode,\n codeSetter,\n });\n }\n }, [isError]);\n\n return (\n <Root\n ref={ref}\n view={view}\n size={size}\n disabled={disabled}\n screen={screen}\n onClick={handleClick}\n className={cls(className, {\n [classes.captionAlignLeft]: captionAlign === 'left',\n })}\n {...rest}\n >\n <CodeWrapper ref={inputContainerRef}>\n {[...Array(parts)].map((_, partIndex) => (\n <Fragment key={partIndex}>\n <CodeGroup role=\"group\">\n {[...Array(codeLength / parts)].map((_, i) => {\n const inputCorrectIndex = i + (codeLength / parts) * partIndex;\n\n return (\n <ItemWrapper key={partIndex + i + partIndex * i} className={screenClass}>\n <ItemInput\n ref={(element: HTMLInputElement) => {\n inputRefs.current[inputCorrectIndex] = element;\n }}\n className={cls({\n [classes.hoverEnabled]:\n inputCorrectIndex >= originalValue.length,\n })}\n hide={hidden}\n value={code[inputCorrectIndex] || ''}\n autoComplete={autoComplete}\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n handleChange(e, inputCorrectIndex);\n }}\n onKeyDown={(e: KeyboardEvent<HTMLInputElement>) => {\n handleOnKeyDown(e, inputCorrectIndex);\n }}\n onPaste={handlePaste}\n tabIndex={originalValue.length === inputCorrectIndex ? 0 : -1}\n {...(placeholderValue && {\n placeholder: placeholderValue[inputCorrectIndex],\n })}\n />\n {(!code[inputCorrectIndex] ||\n (!!code[inputCorrectIndex] && hidden)) && (\n <ItemCircle\n className={\n !!code[inputCorrectIndex] && hidden\n ? classes.itemCirlceFilled\n : ''\n }\n />\n )}\n </ItemWrapper>\n );\n })}\n </CodeGroup>\n {partIndex !== parts - 1 && <Separator />}\n </Fragment>\n ))}\n </CodeWrapper>\n {caption && (\n <CaptionWrapper ref={captionRef} captionAlign={captionAlign} widthValue={widthValue}>\n {caption}\n </CaptionWrapper>\n )}\n </Root>\n );\n },\n );\n\nexport const codeInputConfig = {\n name: 'CodeInput',\n tag: 'div',\n layout: codeInputRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n },\n defaults: {\n size: 'm',\n view: 'default',\n },\n};\n"],"names":["codeInputRoot","Root","forwardRef","_ref","ref","className","outerValue","value","placeholder","autoFocus","_ref$codeLength","codeLength","caption","_ref$captionAlign","captionAlign","width","view","size","_ref$screen","screen","hidden","disabled","isError","_ref$allowedSymbols","allowedSymbols","ONLY_DIGITS_PATTERN","_ref$itemErrorBehavio","itemErrorBehavior","_ref$codeErrorBehavio","codeErrorBehavior","_ref$autoComplete","autoComplete","setIsError","onChange","onFullCodeEnter","rest","_objectWithoutProperties","_excluded","_useState","useState","getCodeValue","_useState2","_slicedToArray","code","setCode","_useState3","join","_useState4","originalValue","setOriginalValue","inputRefs","useRef","inputContainerRef","captionRef","fieldPattern","getFieldPattern","placeholderValue","getPlaceholderValue","parts","screenClass","classes","concat","widthValue","getSizeValueFromProp","undefined","getLastActiveIndex","length","lastEmptyIndex","findIndex","digit","handleClick","lastActiveIndex","current","focus","handleOnKeyDown","event","index","key","FORBIDDEN_KEYS","includes","preventDefault","BACKSPACE_KEY","_inputRefs$current","codeSetter","newCode","handleChange","_inputRefs$current$in","rawSymbol","currentTarget","symbol","charAt","_toConsumableArray","classList","remove","itemError","_captionRef$current","captionError","_inputContainerRef$cu","codeError","codeErrorAnimation","_inputRefs$current2","test","_inputRefs$current3","handleItemError","currentSymbol","handlePaste","_inputRefs$current$ac","rawData","clipboardData","getData","pastedData","split","map","symb","_symb$match","match","filter","Boolean","slice","activeIndex","Math","min","handleFullCodeEnter","useCallback","fullCode","useEffect","_inputRefs$current$la","useDidMountEffect","handleCodeError","currentCode","React","createElement","_extends","onClick","cls","_defineProperty","captionAlignLeft","CodeWrapper","Array","_","partIndex","Fragment","CodeGroup","role","i","inputCorrectIndex","ItemWrapper","ItemInput","element","hoverEnabled","hide","e","onKeyDown","onPaste","tabIndex","ItemCircle","itemCirlceFilled","_Separator","Separator","CaptionWrapper","codeInputConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","disabledCSS","attrs","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;IAyBaA,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,IAA+C,EAAA;AAAA,EAAA,oBACzEC,gBAAU,CACN,UAAAC,IAAA,EAyBIC,GAAG,EACF;AAAA,IAAA,IAxBGC,SAAS,GAAAF,IAAA,CAATE,SAAS;MACFC,UAAU,GAAAH,IAAA,CAAjBI,KAAK;MACLC,WAAW,GAAAL,IAAA,CAAXK,WAAW;MACXC,SAAS,GAAAN,IAAA,CAATM,SAAS;MAAAC,eAAA,GAAAP,IAAA,CACTQ,UAAU;AAAVA,MAAAA,UAAU,GAAAD,eAAA,KAAG,KAAA,CAAA,GAAA,CAAC,GAAAA,eAAA;MACdE,OAAO,GAAAT,IAAA,CAAPS,OAAO;MAAAC,iBAAA,GAAAV,IAAA,CACPW,YAAY;AAAZA,MAAAA,YAAY,GAAAD,iBAAA,KAAG,KAAA,CAAA,GAAA,MAAM,GAAAA,iBAAA;MACrBE,KAAK,GAAAZ,IAAA,CAALY,KAAK;MACLC,IAAI,GAAAb,IAAA,CAAJa,IAAI;MACJC,IAAI,GAAAd,IAAA,CAAJc,IAAI;MAAAC,WAAA,GAAAf,IAAA,CACJgB,MAAM;AAANA,MAAAA,MAAM,GAAAD,WAAA,KAAG,KAAA,CAAA,GAAA,QAAQ,GAAAA,WAAA;MACjBE,MAAM,GAAAjB,IAAA,CAANiB,MAAM;MACNC,QAAQ,GAAAlB,IAAA,CAARkB,QAAQ;MACRC,OAAO,GAAAnB,IAAA,CAAPmB,OAAO;MAAAC,mBAAA,GAAApB,IAAA,CACPqB,cAAc;AAAdA,MAAAA,cAAc,GAAAD,m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AAAA,IAAI,EAAE,GAAG;AACTD,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;"}
|
1
|
+
{"version":3,"file":"CodeInput.js","sources":["../../../src/components/CodeInput/CodeInput.tsx"],"sourcesContent":["import React, { forwardRef, Fragment, useCallback, useEffect, useRef, useState } from 'react';\nimport cls from 'classnames';\nimport type { ChangeEvent, KeyboardEvent, ClipboardEvent } from 'react';\nimport type { RootProps } from 'src/engines';\nimport { useDidMountEffect } from 'src/hooks';\nimport { getSizeValueFromProp } from 'src/utils';\n\nimport type { CodeInputProps } from './CodeInput.types';\nimport { BACKSPACE_KEY, FORBIDDEN_KEYS, ONLY_DIGITS_PATTERN } from './utils/constants';\nimport {\n getCodeInputViewClass,\n getCodeValue,\n getFieldPattern,\n getPlaceholderValue,\n handleCodeError,\n handleItemError,\n} from './utils';\nimport { classes } from './CodeInput.tokens';\nimport {\n base,\n CaptionWrapper,\n CodeGroup,\n CodeWrapper,\n ItemInput,\n Separator,\n ItemWrapper,\n ItemCircle,\n} from './CodeInput.styles';\nimport { base as viewCSS } from './variations/_view/base';\nimport { base as sizeCSS } from './variations/_size/base';\nimport { base as disabledCSS } from './variations/_disabled/base';\n\nexport const codeInputRoot = (Root: RootProps<HTMLDivElement, CodeInputProps>) =>\n forwardRef<HTMLInputElement, CodeInputProps>(\n (\n {\n className,\n value: outerValue,\n placeholder,\n autoFocus,\n codeLength = 6,\n caption,\n captionAlign = 'left',\n width,\n view,\n size,\n screen = 'medium',\n hidden,\n disabled,\n isError,\n allowedSymbols = ONLY_DIGITS_PATTERN,\n itemErrorBehavior = 'remove-symbol',\n codeErrorBehavior = 'remove-code',\n autoComplete = 'one-time-code',\n setIsError,\n onChange,\n onFullCodeEnter,\n ...rest\n },\n ref,\n ) => {\n const [code, setCode] = useState<Array<string>>(getCodeValue(codeLength, outerValue || ''));\n const [originalValue, setOriginalValue] = useState<string>(code.join(''));\n\n const inputRefs = useRef<Array<HTMLInputElement>>([]);\n const inputContainerRef = useRef<HTMLDivElement | null>(null);\n const captionRef = useRef<HTMLDivElement | null>(null);\n\n const fieldPattern = getFieldPattern(allowedSymbols);\n const placeholderValue = getPlaceholderValue(codeLength, placeholder);\n const parts = codeLength === 6 ? 2 : 1;\n\n const viewClass = getCodeInputViewClass(view || 'default');\n\n const widthValue = width ? getSizeValueFromProp(width, 'rem') : undefined;\n\n const getLastActiveIndex = () => {\n if (code.length && code.length < codeLength) {\n return code.length;\n }\n\n const lastEmptyIndex = code.findIndex((digit) => digit === '');\n return lastEmptyIndex >= 0 ? lastEmptyIndex : codeLength - 1;\n };\n\n const handleClick = () => {\n if (disabled) {\n return;\n }\n\n const lastActiveIndex = getLastActiveIndex();\n\n if (inputRefs.current[lastActiveIndex]) {\n inputRefs.current[lastActiveIndex].focus();\n }\n };\n\n const handleOnKeyDown = (event: KeyboardEvent<HTMLInputElement>, index: number) => {\n if (disabled) {\n return;\n }\n\n const { key } = event;\n if (FORBIDDEN_KEYS.includes(key)) {\n event.preventDefault();\n\n return;\n }\n\n if (key === BACKSPACE_KEY) {\n if (index > 0 && code[index] === '') {\n inputRefs.current[index - 1]?.focus();\n }\n }\n };\n\n const codeSetter = (newCode: Array<string>) => {\n setCode(newCode);\n setOriginalValue(newCode.join(''));\n\n if (onChange) {\n onChange(newCode.join(''));\n }\n };\n\n const handleChange = (event: ChangeEvent<HTMLInputElement>, index: number) => {\n if (disabled) {\n return;\n }\n\n const rawSymbol = event.currentTarget.value;\n const symbol = rawSymbol.charAt(rawSymbol.length - 1);\n const newCode = [...code];\n\n inputRefs.current[index]?.classList.remove(classes.itemError);\n if (isError) {\n captionRef.current?.classList.remove(classes.captionError);\n\n if (codeErrorBehavior === 'keep') {\n inputContainerRef.current?.classList.remove(classes.codeError, classes.codeErrorAnimation);\n }\n\n if (setIsError) {\n setIsError(false);\n }\n }\n\n if (!fieldPattern) {\n newCode[index] = symbol;\n codeSetter(newCode);\n\n if (symbol && index < codeLength - 1) {\n inputRefs.current[index + 1]?.focus();\n }\n\n return;\n }\n\n if (!symbol) {\n newCode[index] = '';\n codeSetter(newCode);\n\n return;\n }\n\n if (fieldPattern.test(symbol)) {\n newCode[index] = symbol.charAt(symbol.length - 1);\n codeSetter(newCode);\n\n if (index < codeLength - 1) {\n inputRefs.current[index + 1]?.focus();\n }\n } else {\n newCode[index] = symbol.charAt(symbol.length - 1);\n\n handleItemError({\n currentSymbol: symbol,\n itemErrorBehavior,\n index,\n newCode,\n inputRefs,\n setCode,\n codeSetter,\n });\n }\n };\n\n const handlePaste = (event: ClipboardEvent<HTMLInputElement>) => {\n if (disabled) {\n return;\n }\n\n event.preventDefault();\n\n const rawData = event.clipboardData.getData('text/plain');\n\n const pastedData = (fieldPattern\n ? rawData\n .split('')\n .map((symb) => symb.match(fieldPattern)?.[0] || '')\n .filter(Boolean) || []\n : rawData.split('')\n ).slice(0, codeLength);\n\n const activeIndex = Math.min(pastedData.length, codeLength - 1);\n inputRefs.current[activeIndex]?.focus();\n\n codeSetter(pastedData);\n };\n\n const handleFullCodeEnter = useCallback((fullCode: string) => {\n if (onFullCodeEnter) {\n onFullCodeEnter(fullCode);\n }\n }, []);\n\n useEffect(() => {\n inputRefs.current = inputRefs.current.slice(0, codeLength);\n }, [codeLength]);\n\n useEffect(() => {\n if (autoFocus && !disabled) {\n const lastActiveIndex = getLastActiveIndex();\n\n inputRefs.current[lastActiveIndex]?.focus();\n }\n }, [autoFocus]);\n\n useDidMountEffect(() => {\n if (handleFullCodeEnter && originalValue.length === codeLength) {\n handleFullCodeEnter(originalValue);\n }\n }, [originalValue, handleFullCodeEnter]);\n\n useDidMountEffect(() => {\n if (isError) {\n handleCodeError({\n codeLength,\n codeErrorBehavior,\n currentCode: code,\n inputRefs,\n inputContainerRef,\n captionRef,\n setCode,\n codeSetter,\n });\n }\n }, [isError]);\n\n return (\n <Root\n ref={ref}\n view={view}\n size={size}\n disabled={disabled}\n screen={screen}\n onClick={handleClick}\n className={cls(className, viewClass, {\n [classes.captionAlignLeft]: captionAlign === 'left',\n })}\n {...rest}\n >\n <CodeWrapper ref={inputContainerRef}>\n {[...Array(parts)].map((_, partIndex) => (\n <Fragment key={partIndex}>\n <CodeGroup role=\"group\">\n {[...Array(codeLength / parts)].map((_, i) => {\n const inputCorrectIndex = i + (codeLength / parts) * partIndex;\n\n return (\n <ItemWrapper key={partIndex + i + partIndex * i}>\n <ItemInput\n ref={(element: HTMLInputElement) => {\n inputRefs.current[inputCorrectIndex] = element;\n }}\n className={cls({\n [classes.hoverEnabled]:\n inputCorrectIndex >= originalValue.length,\n })}\n hide={hidden}\n value={code[inputCorrectIndex] || ''}\n autoComplete={autoComplete}\n onChange={(e: ChangeEvent<HTMLInputElement>) => {\n handleChange(e, inputCorrectIndex);\n }}\n onKeyDown={(e: KeyboardEvent<HTMLInputElement>) => {\n handleOnKeyDown(e, inputCorrectIndex);\n }}\n onPaste={handlePaste}\n tabIndex={originalValue.length === inputCorrectIndex ? 0 : -1}\n {...(placeholderValue && {\n placeholder: placeholderValue[inputCorrectIndex],\n })}\n />\n {(!code[inputCorrectIndex] ||\n (!!code[inputCorrectIndex] && hidden)) && (\n <ItemCircle\n className={\n !!code[inputCorrectIndex] && hidden\n ? classes.itemCirlceFilled\n : ''\n }\n />\n )}\n </ItemWrapper>\n );\n })}\n </CodeGroup>\n {partIndex !== parts - 1 && <Separator />}\n </Fragment>\n ))}\n </CodeWrapper>\n {caption && (\n <CaptionWrapper ref={captionRef} captionAlign={captionAlign} widthValue={widthValue}>\n {caption}\n </CaptionWrapper>\n )}\n </Root>\n );\n },\n );\n\nexport const codeInputConfig = {\n name: 'CodeInput',\n tag: 'div',\n layout: codeInputRoot,\n base,\n variations: {\n view: {\n css: viewCSS,\n },\n size: {\n css: sizeCSS,\n },\n disabled: {\n css: disabledCSS,\n attrs: true,\n },\n },\n defaults: {\n size: 'm',\n view: 'default',\n },\n};\n"],"names":["codeInputRoot","Root","forwardRef","_ref","ref","className","outerValue","value","placeholder","autoFocus","_ref$codeLength","codeLength","caption","_ref$captionAlign","captionAlign","width","view","size","_ref$screen","screen","hidden","disabled","isError","_ref$allowedSymbols","allowedSymbols","ONLY_DIGITS_PATTERN","_ref$itemErrorBehavio","itemErrorBehavior","_ref$codeErrorBehavio","codeErrorBehavior","_ref$autoComplete","autoComplete","setIsError","onChange","onFullCodeEnter","rest","_objectWithoutProperties","_excluded","_useState","useState","getCodeValue","_useState2","_slicedToArray","code","setCode","_useState3","join","_useState4","originalValue","setOriginalValue","inputRefs","useRef","inputContainerRef","captionRef","fieldPattern","getFieldPattern","placeholderValue","getPlaceholderValue","parts","viewClass","getCodeInputViewClass","widthValue","getSizeValueFromProp","undefined","getLastActiveIndex","length","lastEmptyIndex","findIndex","digit","handleClick","lastActiveIndex","current","focus","handleOnKeyDown","event","index","key","FORBIDDEN_KEYS","includes","preventDefault","BACKSPACE_KEY","_inputRefs$current","codeSetter","newCode","handleChange","_inputRefs$current$in","rawSymbol","currentTarget","symbol","charAt","_toConsumableArray","classList","remove","classes","itemError","_captionRef$current","captionError","_inputContainerRef$cu","codeError","codeErrorAnimation","_inputRefs$current2","test","_inputRefs$current3","handleItemError","currentSymbol","handlePaste","_inputRefs$current$ac","rawData","clipboardData","getData","pastedData","split","map","symb","_symb$match","match","filter","Boolean","slice","activeIndex","Math","min","handleFullCodeEnter","useCallback","fullCode","useEffect","_inputRefs$current$la","useDidMountEffect","handleCodeError","currentCode","React","createElement","_extends","onClick","cls","_defineProperty","captionAlignLeft","CodeWrapper","Array","_","partIndex","Fragment","CodeGroup","role","i","inputCorrectIndex","ItemWrapper","ItemInput","element","hoverEnabled","hide","e","onKeyDown","onPaste","tabIndex","ItemCircle","itemCirlceFilled","_Separator","Separator","CaptionWrapper","codeInputConfig","name","tag","layout","base","variations","css","viewCSS","sizeCSS","disabledCSS","attrs","defaults"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;IAgCaA,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,IAA+C,EAAA;AAAA,EAAA,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SAAS,KAAKlF,KAAK,GAAG,CAAC,KAAAmG,UAAA,KAAAA,UAAA,gBAAI3B,sBAAA,CAAAC,aAAA,CAAC2B,0BAAS,EAAA,IAAE,CAAC,CAAA,CACnC,CAAC,CAAA;KACd,CACQ,CAAC,EACblJ,OAAO,iBACJsH,sBAAA,CAAAC,aAAA,CAAC4B,+BAAc,EAAA;AAAC3J,MAAAA,GAAG,EAAEiD,UAAW;AAACvC,MAAAA,YAAY,EAAEA,YAAa;AAAC+C,MAAAA,UAAU,EAAEA,UAAAA;KACpEjD,EAAAA,OACW,CAElB,CAAC,CAAA;AAEf,GACJ,CAAC,CAAA;AAAA,EAAA;AAEE,IAAMoJ,eAAe,GAAG;AAC3BC,EAAAA,IAAI,EAAE,WAAW;AACjBC,EAAAA,GAAG,EAAE,KAAK;AACVC,EAAAA,MAAM,EAAEnK,aAAa;AACrBoK,EAAAA,IAAI,EAAJA,qBAAI;AACJC,EAAAA,UAAU,EAAE;AACRrJ,IAAAA,IAAI,EAAE;AACFsJ,MAAAA,GAAG,EAAEC,SAAAA;KACR;AACDtJ,IAAAA,IAAI,EAAE;AACFqJ,MAAAA,GAAG,EAAEE,WAAAA;KACR;AACDnJ,IAAAA,QAAQ,EAAE;AACNiJ,MAAAA,GAAG,EAAEG,WAAW;AAChBC,MAAAA,KAAK,EAAE,IAAA;AACX,KAAA;GACH;AACDC,EAAAA,QAAQ,EAAE;AACN1J,IAAAA,IAAI,EAAE,GAAG;AACTD,IAAAA,IAAI,EAAE,SAAA;AACV,GAAA;AACJ;;;;;"}
|
@@ -15,33 +15,54 @@ var classes = {
|
|
15
15
|
hoverEnabled: 'codeinput-item-hover-enabled',
|
16
16
|
segmented: 'codeinput-shape-segmented',
|
17
17
|
"default": 'codeinput-shape-default',
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
largeMScreen: 'codeinput-large-m-screen',
|
19
|
+
largeSScreen: 'codeinput-large-s-screen',
|
20
|
+
mediumMScreen: 'codeinput-medium-m-screen',
|
21
|
+
mediumSScreen: 'codeinput-medium-s-screen',
|
22
|
+
smallMScreen: 'codeinput-small-m-screen',
|
21
23
|
disabled: 'codeinput-disabled'
|
22
24
|
};
|
25
|
+
var privateTokens = {
|
26
|
+
itemWidth: '--private-codeinput-item-width',
|
27
|
+
itemHeight: '--private-codeinput-item-hieght',
|
28
|
+
fontSize: '--private-codeinput-font-size',
|
29
|
+
lineHeight: '--private-codeinput-line-height'
|
30
|
+
};
|
23
31
|
var tokens = {
|
24
32
|
captionGap: '--plasma-codeinput-caption-gap',
|
25
33
|
codeItemsGap: '--plasma-codeinput-code-item-gap',
|
34
|
+
smallMMinWidth: '--plasma-codeinput-smallM-min-width',
|
35
|
+
mediumSMinWidth: '--plasma-codeinput-mediumS-min-width',
|
36
|
+
mediumMMinWidth: '--plasma-codeinput-mediumM-min-width',
|
37
|
+
largeSMinWidth: '--plasma-codeinput-largeS-min-width',
|
38
|
+
largeMMinWidth: '--plasma-codeinput-largeM-min-width',
|
26
39
|
separatorWidth: '--plasma-codeinput-separator-width',
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
40
|
+
largeMCodeItemWidth: '--plasma-codeinput-item-large-m-width',
|
41
|
+
largeMCodeItemHeight: '--plasma-codeinput-item-large-m-height',
|
42
|
+
largeSCodeItemWidth: '--plasma-codeinput-item-large-s-width',
|
43
|
+
largeSCodeItemHeight: '--plasma-codeinput-item-large-s-height',
|
44
|
+
mediumMCodeItemWidth: '--plasma-codeinput-item-medium-m-width',
|
45
|
+
mediumMCodeItemHeight: '--plasma-codeinput-item-medium-m-height',
|
46
|
+
mediumSCodeItemWidth: '--plasma-codeinput-item-medium-s-width',
|
47
|
+
mediumSCodeItemHeight: '--plasma-codeinput-item-medium-s-height',
|
48
|
+
smallMCodeItemWidth: '--plasma-codeinput-item-small-m-width',
|
49
|
+
smallMCodeItemHeight: '--plasma-codeinput-item-small-m-height',
|
33
50
|
codeItemCircleSize: '--plasma-codeinput-item-circle-size',
|
34
51
|
codeItemCircleBorderWidth: '--plasma-codeinput-item-circle-border-width',
|
35
52
|
fontStyle: '--plasma-codeinput-font-style',
|
36
53
|
fontFamily: '--plasma-codeinput-font-family',
|
37
54
|
fontWeight: '--plasma-codeinput-font-weight',
|
38
55
|
letterSpacing: '--plasma-codeinput-letter-spacing',
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
56
|
+
largeMFontSize: '--plasma-codeinput-large-m-font-size',
|
57
|
+
largeMLineHeight: '--plasma-codeinput-large-m-line-height',
|
58
|
+
largeSFontSize: '--plasma-codeinput-large-s-font-size',
|
59
|
+
largeSLineHeight: '--plasma-codeinput-large-s-line-height',
|
60
|
+
mediumMFontSize: '--plasma-codeinput-medium-m-font-size',
|
61
|
+
mediumMLineHeight: '--plasma-codeinput-medium-m-line-height',
|
62
|
+
mediumSFontSize: '--plasma-codeinput-medium-s-font-size',
|
63
|
+
mediumSLineHeight: '--plasma-codeinput-medium-s-line-height',
|
64
|
+
smallMFontSize: '--plasma-codeinput-small-m-font-size',
|
65
|
+
smallMLineHeight: '--plasma-codeinput-small-m-line-height',
|
45
66
|
captionFontFamily: '--plasma-codeinput-caption-font-family',
|
46
67
|
captionFontSize: '--plasma-codeinput-caption-font-style',
|
47
68
|
captionFontStyle: '--plasma-codeinput-caption-font-size',
|
@@ -68,5 +89,6 @@ var tokens = {
|
|
68
89
|
};
|
69
90
|
|
70
91
|
exports.classes = classes;
|
92
|
+
exports.privateTokens = privateTokens;
|
71
93
|
exports.tokens = tokens;
|
72
94
|
//# sourceMappingURL=CodeInput.tokens.js.map
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"CodeInput.tokens.js","sources":["../../../src/components/CodeInput/CodeInput.tokens.ts"],"sourcesContent":["export const classes = {\n itemError: 'codeinput-item-error',\n itemErrorAnimation: 'codeinput-item-error-animation',\n itemErrorFade: 'codeinput-item-error-fade',\n itemCirlceFilled: 'codeinput-item-circle-filled',\n captionError: 'codeinput-caption-error',\n codeError: 'codeinput-code-error',\n codeErrorAnimation: 'codeinput-code-error-animation',\n codeErrorFade: 'codeinput-code-error-fade',\n\n captionAlignLeft: 'codeinput-caption-align-left',\n\n hoverEnabled: 'codeinput-item-hover-enabled',\n\n segmented: 'codeinput-shape-segmented',\n default: 'codeinput-shape-default',\n\n
|
1
|
+
{"version":3,"file":"CodeInput.tokens.js","sources":["../../../src/components/CodeInput/CodeInput.tokens.ts"],"sourcesContent":["export const classes = {\n itemError: 'codeinput-item-error',\n itemErrorAnimation: 'codeinput-item-error-animation',\n itemErrorFade: 'codeinput-item-error-fade',\n itemCirlceFilled: 'codeinput-item-circle-filled',\n captionError: 'codeinput-caption-error',\n codeError: 'codeinput-code-error',\n codeErrorAnimation: 'codeinput-code-error-animation',\n codeErrorFade: 'codeinput-code-error-fade',\n\n captionAlignLeft: 'codeinput-caption-align-left',\n\n hoverEnabled: 'codeinput-item-hover-enabled',\n\n segmented: 'codeinput-shape-segmented',\n default: 'codeinput-shape-default',\n\n largeMScreen: 'codeinput-large-m-screen',\n largeSScreen: 'codeinput-large-s-screen',\n mediumMScreen: 'codeinput-medium-m-screen',\n mediumSScreen: 'codeinput-medium-s-screen',\n smallMScreen: 'codeinput-small-m-screen',\n\n disabled: 'codeinput-disabled',\n};\n\nexport const privateTokens = {\n itemWidth: '--private-codeinput-item-width',\n itemHeight: '--private-codeinput-item-hieght',\n fontSize: '--private-codeinput-font-size',\n lineHeight: '--private-codeinput-line-height',\n};\n\nexport const tokens = {\n captionGap: '--plasma-codeinput-caption-gap',\n codeItemsGap: '--plasma-codeinput-code-item-gap',\n\n smallMMinWidth: '--plasma-codeinput-smallM-min-width',\n mediumSMinWidth: '--plasma-codeinput-mediumS-min-width',\n mediumMMinWidth: '--plasma-codeinput-mediumM-min-width',\n largeSMinWidth: '--plasma-codeinput-largeS-min-width',\n largeMMinWidth: '--plasma-codeinput-largeM-min-width',\n\n separatorWidth: '--plasma-codeinput-separator-width',\n\n largeMCodeItemWidth: '--plasma-codeinput-item-large-m-width',\n largeMCodeItemHeight: '--plasma-codeinput-item-large-m-height',\n\n largeSCodeItemWidth: '--plasma-codeinput-item-large-s-width',\n largeSCodeItemHeight: '--plasma-codeinput-item-large-s-height',\n\n mediumMCodeItemWidth: '--plasma-codeinput-item-medium-m-width',\n mediumMCodeItemHeight: '--plasma-codeinput-item-medium-m-height',\n\n mediumSCodeItemWidth: '--plasma-codeinput-item-medium-s-width',\n mediumSCodeItemHeight: '--plasma-codeinput-item-medium-s-height',\n\n smallMCodeItemWidth: '--plasma-codeinput-item-small-m-width',\n smallMCodeItemHeight: '--plasma-codeinput-item-small-m-height',\n\n codeItemCircleSize: '--plasma-codeinput-item-circle-size',\n codeItemCircleBorderWidth: '--plasma-codeinput-item-circle-border-width',\n\n fontStyle: '--plasma-codeinput-font-style',\n fontFamily: '--plasma-codeinput-font-family',\n fontWeight: '--plasma-codeinput-font-weight',\n letterSpacing: '--plasma-codeinput-letter-spacing',\n\n largeMFontSize: '--plasma-codeinput-large-m-font-size',\n largeMLineHeight: '--plasma-codeinput-large-m-line-height',\n\n largeSFontSize: '--plasma-codeinput-large-s-font-size',\n largeSLineHeight: '--plasma-codeinput-large-s-line-height',\n\n mediumMFontSize: '--plasma-codeinput-medium-m-font-size',\n mediumMLineHeight: '--plasma-codeinput-medium-m-line-height',\n\n mediumSFontSize: '--plasma-codeinput-medium-s-font-size',\n mediumSLineHeight: '--plasma-codeinput-medium-s-line-height',\n\n smallMFontSize: '--plasma-codeinput-small-m-font-size',\n smallMLineHeight: '--plasma-codeinput-small-m-line-height',\n\n captionFontFamily: '--plasma-codeinput-caption-font-family',\n captionFontSize: '--plasma-codeinput-caption-font-style',\n captionFontStyle: '--plasma-codeinput-caption-font-size',\n captionFontWeight: '--plasma-codeinput-caption-font-weight',\n captionLetterSpacing: '--plasma-codeinput-caption-letter-spacing',\n captionLineHeight: '--plasma-codeinput-caption-line-height',\n\n borderRadius: '--plasma-codeinput-code-item-border-radius',\n borderRadiusSegmented: '--plasma-codeinput-code-item-border-radius-segmented',\n segmentedSideBorderRadius: '--plasma-codeinput-code-item-segmented-side-border-radius',\n\n captionColor: '--plasma-codeinput-caption-color',\n captionColorError: '--plasma-codeinput-caption-color-error',\n\n codeColor: '--plasma-codeinput-code-color',\n codeColorError: '--plasma-codeinput-code-color-error',\n\n backgroundColor: '--plasma-codeinput-background-color',\n backgroundColorHover: '--plasma-codeinput-background-color-hover',\n backgroundColorFocus: '--plasma-codeinput-background-color-focus',\n backgroundErrorColor: '--plasma-codeinput-background-error-color',\n\n borderWidth: '--plasma-codeinput-border-width',\n borderColor: '--plasma-codeinput-border-color',\n borderColorHover: '--plasma-codeinput-border-color-hover',\n borderColorFocus: '--plasma-codeinput-border-color-focus',\n borderErrorColor: '--plasma-codeinput-border-error-color',\n\n disabledOpacity: '--plasma-codeinput-disabled-opacity',\n};\n"],"names":["classes","itemError","itemErrorAnimation","itemErrorFade","itemCirlceFilled","captionError","codeError","codeErrorAnimation","codeErrorFade","captionAlignLeft","hoverEnabled","segmented","largeMScreen","largeSScreen","mediumMScreen","mediumSScreen","smallMScreen","disabled","privateTokens","itemWidth","itemHeight","fontSize","lineHeight","tokens","captionGap","codeItemsGap","smallMMinWidth","mediumSMinWidth","mediumMMinWidth","largeSMinWidth","largeMMinWidth","separatorWidth","largeMCodeItemWidth","largeMCodeItemHeight","largeSCodeItemWidth","largeSCodeItemHeight","mediumMCodeItemWidth","mediumMCodeItemHeight","mediumSCodeItemWidth","mediumSCodeItemHeight","smallMCodeItemWidth","smallMCodeItemHeight","codeItemCircleSize","codeItemCircleBorderWidth","fontStyle","fontFamily","fontWeight","letterSpacing","largeMFontSize","largeMLineHeight","largeSFontSize","largeSLineHeight","mediumMFontSize","mediumMLineHeight","mediumSFontSize","mediumSLineHeight","smallMFontSize","smallMLineHeight","captionFontFamily","captionFontSize","captionFontStyle","captionFontWeight","captionLetterSpacing","captionLineHeight","borderRadius","borderRadiusSegmented","segmentedSideBorderRadius","captionColor","captionColorError","codeColor","codeColorError","backgroundColor","backgroundColorHover","backgroundColorFocus","backgroundErrorColor","borderWidth","borderColor","borderColorHover","borderColorFocus","borderErrorColor","disabledOpacity"],"mappings":";;;;AAAO,IAAMA,OAAO,GAAG;AACnBC,EAAAA,SAAS,EAAE,sBAAsB;AACjCC,EAAAA,kBAAkB,EAAE,gCAAgC;AACpDC,EAAAA,aAAa,EAAE,2BAA2B;AAC1CC,EAAAA,gBAAgB,EAAE,8BAA8B;AAChDC,EAAAA,YAAY,EAAE,yBAAyB;AACvCC,EAAAA,SAAS,EAAE,sBAAsB;AACjCC,EAAAA,kBAAkB,EAAE,gCAAgC;AACpDC,EAAAA,aAAa,EAAE,2BAA2B;AAE1CC,EAAAA,gBAAgB,EAAE,8BAA8B;AAEhDC,EAAAA,YAAY,EAAE,8BAA8B;AAE5CC,EAAAA,SAAS,EAAE,2BAA2B;AACtC,EAAA,SAAA,EAAS,yBAAyB;AAElCC,EAAAA,YAAY,EAAE,0BAA0B;AACxCC,EAAAA,YAAY,EAAE,0BAA0B;AACxCC,EAAAA,aAAa,EAAE,2BAA2B;AAC1CC,EAAAA,aAAa,EAAE,2BAA2B;AAC1CC,EAAAA,YAAY,EAAE,0BAA0B;AAExCC,EAAAA,QAAQ,EAAE,oBAAA;AACd,EAAC;AAEM,IAAMC,aAAa,GAAG;AACzBC,EAAAA,SAAS,EAAE,gCAAgC;AAC3CC,EAAAA,UAAU,EAAE,iCAAiC;AAC7CC,EAAAA,QAAQ,EAAE,+BAA+B;AACzCC,EAAAA,UAAU,EAAE,iCAAA;AAChB,EAAC;AAEM,IAAMC,MAAM,GAAG;AAClBC,EAAAA,UAAU,EAAE,gCAAgC;AAC5CC,EAAAA,YAAY,EAAE,kCAAkC;AAEhDC,EAAAA,cAAc,EAAE,qCAAqC;AACrDC,EAAAA,eAAe,EAAE,sCAAsC;AACvDC,EAAAA,eAAe,EAAE,sCAAsC;AACvDC,EAAAA,cAAc,E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2CAA2C;AACjEC,EAAAA,iBAAiB,EAAE,wCAAwC;AAE3DC,EAAAA,YAAY,EAAE,4CAA4C;AAC1DC,EAAAA,qBAAqB,EAAE,sDAAsD;AAC7EC,EAAAA,yBAAyB,EAAE,2DAA2D;AAEtFC,EAAAA,YAAY,EAAE,kCAAkC;AAChDC,EAAAA,iBAAiB,EAAE,wCAAwC;AAE3DC,EAAAA,SAAS,EAAE,+BAA+B;AAC1CC,EAAAA,cAAc,EAAE,qCAAqC;AAErDC,EAAAA,eAAe,EAAE,qCAAqC;AACtDC,EAAAA,oBAAoB,EAAE,2CAA2C;AACjEC,EAAAA,oBAAoB,EAAE,2CAA2C;AACjEC,EAAAA,oBAAoB,EAAE,2CAA2C;AAEjEC,EAAAA,WAAW,EAAE,iCAAiC;AAC9CC,EAAAA,WAAW,EAAE,iCAAiC;AAC9CC,EAAAA,gBAAgB,EAAE,uCAAuC;AACzDC,EAAAA,gBAAgB,EAAE,uCAAuC;AACzDC,EAAAA,gBAAgB,EAAE,uCAAuC;AAEzDC,EAAAA,eAAe,EAAE,qCAAA;AACrB;;;;;;"}
|
@@ -0,0 +1,49 @@
|
|
1
|
+
'use strict';
|
2
|
+
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
4
|
+
|
5
|
+
var CodeInput_tokens = require('../CodeInput.tokens.js');
|
6
|
+
|
7
|
+
var getCodeInputViewClass = function getCodeInputViewClass(view) {
|
8
|
+
return "codeinput-".concat(view, "-view");
|
9
|
+
};
|
10
|
+
var tokenPrefix = '--plasma-codeinput-';
|
11
|
+
var gridSizes = ['smallXXS', 'smallXS', 'smallS', 'smallM', 'smallL', 'smallXL', 'smallXXL', 'mediumXXS', 'mediumXS', 'mediumS', 'mediumM', 'mediumL', 'mediumXL', 'mediumXXL', 'largeXXS', 'largeXS', 'largeS', 'largeM', 'largeL', 'largeXL', 'largeXXL'];
|
12
|
+
|
13
|
+
/**
|
14
|
+
* Генерирует набор медиа-запросов под различную ширину вьюпорта
|
15
|
+
*
|
16
|
+
* @param {GridToken} cssTokens - объект view с набором токенов ширины вьюпорта
|
17
|
+
* @return {string} сгенерированный набор медиа-запросов
|
18
|
+
*/
|
19
|
+
var gridMediaQueryTemplate = function gridMediaQueryTemplate(breakpoints) {
|
20
|
+
return gridSizes.map(function (size) {
|
21
|
+
if (!String(breakpoints["".concat(tokenPrefix).concat(size, "-min-width")])) {
|
22
|
+
return;
|
23
|
+
}
|
24
|
+
var minWidth = breakpoints["".concat(tokenPrefix).concat(size, "-min-width")];
|
25
|
+
var itemWidth = CodeInput_tokens.tokens["".concat(size, "CodeItemWidth")];
|
26
|
+
var itemHeight = CodeInput_tokens.tokens["".concat(size, "CodeItemHeight")];
|
27
|
+
var fontSize = CodeInput_tokens.tokens["".concat(size, "FontSize")];
|
28
|
+
var lineHeight = CodeInput_tokens.tokens["".concat(size, "LineHeight")];
|
29
|
+
return "\n @media (min-width: ".concat(minWidth, ") {\n ").concat(CodeInput_tokens.privateTokens.fontSize, ": var(").concat(fontSize, ");\n ").concat(CodeInput_tokens.privateTokens.lineHeight, ": var(").concat(lineHeight, ");\n ").concat(CodeInput_tokens.privateTokens.itemWidth, ": var(").concat(itemWidth, ");\n ").concat(CodeInput_tokens.privateTokens.itemHeight, ": var(").concat(itemHeight, ");\n }\n ");
|
30
|
+
}).filter(function (style) {
|
31
|
+
return style;
|
32
|
+
}).join('\n');
|
33
|
+
};
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Генерирует строку со стилями для обертки Grid и набором медиа-запросов
|
37
|
+
*
|
38
|
+
* @param {BreakpointToken} breakponts - объект view с набором токенов ширины вьюпорта
|
39
|
+
* @param {string} viewName - название view из конфига
|
40
|
+
* @return {string} стили для обертки Grid
|
41
|
+
*/
|
42
|
+
var getCodeInputView = function getCodeInputView(breakponts, viewName) {
|
43
|
+
return "\n &.".concat(getCodeInputViewClass(viewName), " {\n ").concat(gridMediaQueryTemplate(breakponts), "\n }\n ");
|
44
|
+
};
|
45
|
+
|
46
|
+
exports.getCodeInputView = getCodeInputView;
|
47
|
+
exports.getCodeInputViewClass = getCodeInputViewClass;
|
48
|
+
exports.gridSizes = gridSizes;
|
49
|
+
//# sourceMappingURL=generateMediaQuery.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"generateMediaQuery.js","sources":["../../../../src/components/CodeInput/utils/generateMediaQuery.ts"],"sourcesContent":["import { privateTokens, tokens } from '../CodeInput.tokens';\n\nimport type { BreakpointTokens, ScreenVariant, TokensType } from './types';\n\nexport const getCodeInputViewClass = (view: string) => {\n return `codeinput-${view}-view`;\n};\n\nconst tokenPrefix = '--plasma-codeinput-';\n\nexport const gridSizes: Array<ScreenVariant> = [\n 'smallXXS',\n 'smallXS',\n 'smallS',\n 'smallM',\n 'smallL',\n 'smallXL',\n 'smallXXL',\n 'mediumXXS',\n 'mediumXS',\n 'mediumS',\n 'mediumM',\n 'mediumL',\n 'mediumXL',\n 'mediumXXL',\n 'largeXXS',\n 'largeXS',\n 'largeS',\n 'largeM',\n 'largeL',\n 'largeXL',\n 'largeXXL',\n];\n\n/**\n * Генерирует набор медиа-запросов под различную ширину вьюпорта\n *\n * @param {GridToken} cssTokens - объект view с набором токенов ширины вьюпорта\n * @return {string} сгенерированный набор медиа-запросов\n */\nconst gridMediaQueryTemplate = (breakpoints: BreakpointTokens): string => {\n return gridSizes\n .map((size) => {\n if (!String(breakpoints[`${tokenPrefix}${size}-min-width`])) {\n return;\n }\n\n const minWidth = breakpoints[`${tokenPrefix}${size}-min-width` as keyof typeof breakpoints];\n const itemWidth = tokens[`${size}CodeItemWidth` as TokensType];\n const itemHeight = tokens[`${size}CodeItemHeight` as TokensType];\n const fontSize = tokens[`${size}FontSize` as TokensType];\n const lineHeight = tokens[`${size}LineHeight` as TokensType];\n\n return `\n @media (min-width: ${minWidth}) {\n ${privateTokens.fontSize}: var(${fontSize});\n ${privateTokens.lineHeight}: var(${lineHeight});\n ${privateTokens.itemWidth}: var(${itemWidth});\n ${privateTokens.itemHeight}: var(${itemHeight});\n }\n `;\n })\n .filter((style) => style)\n .join('\\n');\n};\n\n/**\n * Генерирует строку со стилями для обертки Grid и набором медиа-запросов\n *\n * @param {BreakpointToken} breakponts - объект view с набором токенов ширины вьюпорта\n * @param {string} viewName - название view из конфига\n * @return {string} стили для обертки Grid\n */\nexport const getCodeInputView = (breakponts: BreakpointTokens, viewName: string) => {\n return `\n &.${getCodeInputViewClass(viewName)} {\n ${gridMediaQueryTemplate(breakponts)}\n }\n `;\n};\n"],"names":["getCodeInputViewClass","view","concat","tokenPrefix","gridSizes","gridMediaQueryTemplate","breakpoints","map","size","String","minWidth","itemWidth","tokens","itemHeight","fontSize","lineHeight","privateTokens","filter","style","join","getCodeInputView","breakponts","viewName"],"mappings":";;;;;;IAIaA,qBAAqB,GAAG,SAAxBA,qBAAqBA,CAAIC,IAAY,EAAK;EACnD,OAAAC,YAAAA,CAAAA,MAAA,CAAoBD,IAAI,EAAA,OAAA,CAAA,CAAA;AAC5B,EAAC;AAED,IAAME,WAAW,GAAG,qBAAqB,CAAA;AAElC,IAAMC,SAA+B,GAAG,CAC3C,UAAU,EACV,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACT,SAAS,EACT,SAAS,EACT,UAAU,EACV,WAAW,EACX,UAAU,EACV,SAAS,EACT,QAAQ,EACR,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,UAAU,EACb;;AAED;AACA;AACA;AACA;AACA;AACA;AACA,IAAMC,sBAAsB,GAAG,SAAzBA,sBAAsBA,CAAIC,WAA6B,EAAa;AACtE,EAAA,OAAOF,SAAS,CACXG,GAAG,CAAC,UAACC,IAAI,EAAK;AACX,IAAA,IAAI,CAACC,MAAM,CAACH,WAAW,IAAAJ,MAAA,CAAIC,WAAW,CAAA,CAAAD,MAAA,CAAGM,IAAI,EAAA,YAAA,CAAA,CAAa,CAAC,EAAE;AACzD,MAAA,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CAAIC,UAA4B,EAAEC,QAAgB,EAAK;AAChF,EAAA,OAAA,cAAA,CAAApB,MAAA,CACQF,qBAAqB,CAACsB,QAAQ,CAAC,EAAApB,kBAAAA,CAAAA,CAAAA,MAAA,CAC7BG,sBAAsB,CAACgB,UAAU,CAAC,EAAA,mBAAA,CAAA,CAAA;AAGhD;;;;;;"}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"base.js","sources":["../../../../../src/components/CodeInput/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { CaptionWrapper, CodeGroup, CodeWrapper, ItemInput } from '../../CodeInput.styles';\nimport { tokens,
|
1
|
+
{"version":3,"file":"base.js","sources":["../../../../../src/components/CodeInput/variations/_size/base.ts"],"sourcesContent":["import { css } from '@linaria/core';\n\nimport { CaptionWrapper, CodeGroup, CodeWrapper, ItemInput } from '../../CodeInput.styles';\nimport { tokens, privateTokens } from '../../CodeInput.tokens';\n\nexport const base = css`\n gap: var(${tokens.captionGap});\n\n ${CodeWrapper}, ${CodeGroup} {\n gap: var(${tokens.codeItemsGap});\n }\n\n ${ItemInput} {\n font-size: var(${privateTokens.fontSize});\n font-family: var(${tokens.fontFamily});\n font-style: var(${tokens.fontStyle});\n font-weight: var(${tokens.fontWeight});\n letter-spacing: var(${tokens.letterSpacing});\n line-height: var(${privateTokens.lineHeight});\n width: var(${privateTokens.itemWidth});\n height: var(${privateTokens.itemHeight});\n }\n\n ${CaptionWrapper} {\n font-family: var(${tokens.captionFontFamily});\n font-size: var(${tokens.captionFontSize});\n font-style: var(${tokens.captionFontStyle});\n font-weight: var(${tokens.captionFontWeight});\n letter-spacing: var(${tokens.captionLetterSpacing});\n line-height: var(${tokens.captionLineHeight});\n }\n`;\n"],"names":["base"],"mappings":";;;;AAKO,IAAMA,IAAI,GA0BhB;;;;"}
|
@@ -0,0 +1 @@
|
|
1
|
+
.bbkzv6b{gap:var(--plasma-codeinput-caption-gap);}.bbkzv6b .c1fux591,.bbkzv6b .cuja080{gap:var(--plasma-codeinput-code-item-gap);}.bbkzv6b .i16menav{font-size:var(--private-codeinput-font-size);font-family:var(--plasma-codeinput-font-family);font-style:var(--plasma-codeinput-font-style);font-weight:var(--plasma-codeinput-font-weight);-webkit-letter-spacing:var(--plasma-codeinput-letter-spacing);-moz-letter-spacing:var(--plasma-codeinput-letter-spacing);-ms-letter-spacing:var(--plasma-codeinput-letter-spacing);letter-spacing:var(--plasma-codeinput-letter-spacing);line-height:var(--private-codeinput-line-height);width:var(--private-codeinput-item-width);height:var(--private-codeinput-item-hieght);}.bbkzv6b .c19x1gm7{font-family:var(--plasma-codeinput-caption-font-family);font-size:var(--plasma-codeinput-caption-font-style);font-style:var(--plasma-codeinput-caption-font-size);font-weight:var(--plasma-codeinput-caption-font-weight);-webkit-letter-spacing:var(--plasma-codeinput-caption-letter-spacing);-moz-letter-spacing:var(--plasma-codeinput-caption-letter-spacing);-ms-letter-spacing:var(--plasma-codeinput-caption-letter-spacing);letter-spacing:var(--plasma-codeinput-caption-letter-spacing);line-height:var(--plasma-codeinput-caption-line-height);}
|
package/cjs/index.css
CHANGED
@@ -995,7 +995,7 @@
|
|
995
995
|
|
996
996
|
.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_c19x1gm7__01f4780b{color:var(--plasma-codeinput-caption-color);}.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_c19x1gm7__01f4780b.base_lzwhmf_codeinputCaptionError__01f4780b{color:var(--plasma-codeinput-caption-color-error);}.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_i16menav__01f4780b{color:var(--plasma-codeinput-code-color);background-color:var(--plasma-codeinput-background-color);box-shadow:inset 0 0 0 var(--plasma-codeinput-border-width) var(--plasma-codeinput-border-color);}.base_lzwhmf_bxs6mj3__01f4780b:hover .base_lzwhmf_codeinputItemHoverEnabled__01f4780b{background-color:var(--plasma-codeinput-background-color-hover);box-shadow:inset 0 0 0 var(--plasma-codeinput-border-width) var(--plasma-codeinput-border-color-hover);}.base_lzwhmf_bxs6mj3__01f4780b:focus-within .base_lzwhmf_i16menav__01f4780b:focus-within{background-color:var(--plasma-codeinput-background-color-focus);box-shadow:inset 0 0 0 var(--plasma-codeinput-border-width) var(--plasma-codeinput-border-color-focus);}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputCodeErrorAnimation__01f4780b{-webkit-animation:base_lzwhmf_shakingErrorBxs6mj3__01f4780b 0.3s forwards;animation:base_lzwhmf_shakingErrorBxs6mj3__01f4780b 0.3s forwards;}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputCodeError__01f4780b .base_lzwhmf_i16menav__01f4780b{color:var(--plasma-codeinput-code-color-error);background-color:var(--plasma-codeinput-background-error-color);box-shadow:inset 0 0 0 var(--plasma-codeinput-border-width) var(--plasma-codeinput-border-error-color);}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputCodeError__01f4780b .base_lzwhmf_i1tn2nm3__01f4780b{border:var(--plasma-codeinput-item-circle-border-width) solid var(--plasma-codeinput-code-color-error);}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputCodeError__01f4780b .base_lzwhmf_i1tn2nm3__01f4780b.base_lzwhmf_codeinputItemCircleFilled__01f4780b{background-color:var(--plasma-codeinput-code-color-error);}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputCodeError__01f4780b:focus-within .base_lzwhmf_i16menav__01f4780b{background-color:var(--plasma-codeinput-background-error-color);box-shadow:inset 0 0 0 var(--plasma-codeinput-border-width) var(--plasma-codeinput-border-error-color);}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputCodeError__01f4780b.base_lzwhmf_codeinputCodeErrorFade__01f4780b .base_lzwhmf_i16menav__01f4780b{-webkit-animation:base_lzwhmf_fadeErrorBxs6mj3__01f4780b 0.3s forwards;animation:base_lzwhmf_fadeErrorBxs6mj3__01f4780b 0.3s forwards;}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputItemErrorAnimation__01f4780b{-webkit-animation:base_lzwhmf_shakingErrorBxs6mj3__01f4780b 0.3s forwards;animation:base_lzwhmf_shakingErrorBxs6mj3__01f4780b 0.3s forwards;}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputItemError__01f4780b,.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputItemError__01f4780b:focus-within{color:var(--plasma-codeinput-code-color-error);background-color:var(--plasma-codeinput-background-error-color);box-shadow:inset 0 0 0 var(--plasma-codeinput-border-width) var(--plasma-codeinput-border-error-color);}.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputItemError__01f4780b.base_lzwhmf_codeinputCodeErrorFade__01f4780b,.base_lzwhmf_bxs6mj3__01f4780b.base_lzwhmf_bxs6mj3__01f4780b .base_lzwhmf_codeinputItemError__01f4780b:focus-within.base_lzwhmf_codeinputCodeErrorFade__01f4780b{-webkit-animation:base_lzwhmf_shakingErrorBxs6mj3__01f4780b 0.3s forwards :local(fadeError-bxs6mj3) 0.3s :local(forwards);animation:base_lzwhmf_shakingErrorBxs6mj3__01f4780b 0.3s forwards :local(fadeError-bxs6mj3) 0.3s :local(forwards);}@-webkit-keyframes base_lzwhmf_shakingErrorBxs6mj3__01f4780b{14%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}28%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}42%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}57%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}71%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}85%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}100%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}}@keyframes base_lzwhmf_shakingErrorBxs6mj3__01f4780b{14%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}28%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}42%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}57%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}71%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}85%{-webkit-transform:translateX(0.125rem);-ms-transform:translateX(0.125rem);transform:translateX(0.125rem);}100%{-webkit-transform:translateX(-0.125rem);-ms-transform:translateX(-0.125rem);transform:translateX(-0.125rem);}}@-webkit-keyframes base_lzwhmf_fadeErrorBxs6mj3__01f4780b{50%{color:var(--plasma-codeinput-code-color-error);}100%{color:transparent;}}@keyframes base_lzwhmf_fadeErrorBxs6mj3__01f4780b{50%{color:var(--plasma-codeinput-code-color-error);}100%{color:transparent;}}
|
997
997
|
|
998
|
-
.
|
998
|
+
.base_eip8ma_bbkzv6b__a380a498{gap:var(--plasma-codeinput-caption-gap);}.base_eip8ma_bbkzv6b__a380a498 .base_eip8ma_c1fux591__a380a498,.base_eip8ma_bbkzv6b__a380a498 .base_eip8ma_cuja080__a380a498{gap:var(--plasma-codeinput-code-item-gap);}.base_eip8ma_bbkzv6b__a380a498 .base_eip8ma_i16menav__a380a498{font-size:var(--private-codeinput-font-size);font-family:var(--plasma-codeinput-font-family);font-style:var(--plasma-codeinput-font-style);font-weight:var(--plasma-codeinput-font-weight);-webkit-letter-spacing:var(--plasma-codeinput-letter-spacing);-moz-letter-spacing:var(--plasma-codeinput-letter-spacing);-ms-letter-spacing:var(--plasma-codeinput-letter-spacing);letter-spacing:var(--plasma-codeinput-letter-spacing);line-height:var(--private-codeinput-line-height);width:var(--private-codeinput-item-width);height:var(--private-codeinput-item-hieght);}.base_eip8ma_bbkzv6b__a380a498 .base_eip8ma_c19x1gm7__a380a498{font-family:var(--plasma-codeinput-caption-font-family);font-size:var(--plasma-codeinput-caption-font-style);font-style:var(--plasma-codeinput-caption-font-size);font-weight:var(--plasma-codeinput-caption-font-weight);-webkit-letter-spacing:var(--plasma-codeinput-caption-letter-spacing);-moz-letter-spacing:var(--plasma-codeinput-caption-letter-spacing);-ms-letter-spacing:var(--plasma-codeinput-caption-letter-spacing);letter-spacing:var(--plasma-codeinput-caption-letter-spacing);line-height:var(--plasma-codeinput-caption-line-height);}
|
999
999
|
|
1000
1000
|
.base_vkh53h_b1vzcfqx__e0f9eeea.base_vkh53h_b1vzcfqx__e0f9eeea[disabled]{opacity:var(--plasma-codeinput-disabled-opacity);cursor:not-allowed;}.base_vkh53h_b1vzcfqx__e0f9eeea.base_vkh53h_b1vzcfqx__e0f9eeea[disabled] > *{pointer-events:none;}
|
1001
1001
|
|
package/cjs/index.js
CHANGED
@@ -244,6 +244,7 @@ var PaginationDots = require('./components/PaginationDots/PaginationDots.js');
|
|
244
244
|
var PaginationDot = require('./components/PaginationDots/PaginationDot.js');
|
245
245
|
var CodeInput = require('./components/CodeInput/CodeInput.js');
|
246
246
|
var CodeInput_tokens = require('./components/CodeInput/CodeInput.tokens.js');
|
247
|
+
var generateMediaQuery = require('./components/CodeInput/utils/generateMediaQuery.js');
|
247
248
|
var CodeField = require('./components/CodeField/CodeField.js');
|
248
249
|
var CodeField_tokens = require('./components/CodeField/CodeField.tokens.js');
|
249
250
|
var constants$1 = require('./components/CodeField/utils/constants.js');
|
@@ -699,6 +700,7 @@ exports.codeInputConfig = CodeInput.codeInputConfig;
|
|
699
700
|
exports.codeInputRoot = CodeInput.codeInputRoot;
|
700
701
|
exports.codeInputClasses = CodeInput_tokens.classes;
|
701
702
|
exports.codeInputTokens = CodeInput_tokens.tokens;
|
703
|
+
exports.getCodeInputView = generateMediaQuery.getCodeInputView;
|
702
704
|
exports.codeFieldConfig = CodeField.codeFieldConfig;
|
703
705
|
exports.codeFieldRoot = CodeField.codeFieldRoot;
|
704
706
|
exports.codeFieldClasses = CodeField_tokens.classes;
|
package/cjs/index.js.map
CHANGED
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
@@ -82,7 +82,7 @@ var codeInputRoot = exports.codeInputRoot = function codeInputRoot(Root) {
|
|
82
82
|
var fieldPattern = (0, _utils2.getFieldPattern)(allowedSymbols);
|
83
83
|
var placeholderValue = (0, _utils2.getPlaceholderValue)(codeLength, placeholder);
|
84
84
|
var parts = codeLength === 6 ? 2 : 1;
|
85
|
-
var
|
85
|
+
var viewClass = (0, _utils2.getCodeInputViewClass)(view || 'default');
|
86
86
|
var widthValue = width ? (0, _utils.getSizeValueFromProp)(width, 'rem') : undefined;
|
87
87
|
var getLastActiveIndex = function getLastActiveIndex() {
|
88
88
|
if (code.length && code.length < codeLength) {
|
@@ -235,7 +235,7 @@ var codeInputRoot = exports.codeInputRoot = function codeInputRoot(Root) {
|
|
235
235
|
disabled: disabled,
|
236
236
|
screen: screen,
|
237
237
|
onClick: handleClick,
|
238
|
-
className: (0, _classnames["default"])(className, _defineProperty({}, _CodeInput.classes.captionAlignLeft, captionAlign === 'left'))
|
238
|
+
className: (0, _classnames["default"])(className, viewClass, _defineProperty({}, _CodeInput.classes.captionAlignLeft, captionAlign === 'left'))
|
239
239
|
}, rest), /*#__PURE__*/_react["default"].createElement(_CodeInput2.CodeWrapper, {
|
240
240
|
ref: inputContainerRef
|
241
241
|
}, _toConsumableArray(Array(parts)).map(function (_, partIndex) {
|
@@ -246,8 +246,7 @@ var codeInputRoot = exports.codeInputRoot = function codeInputRoot(Root) {
|
|
246
246
|
}, _toConsumableArray(Array(codeLength / parts)).map(function (_, i) {
|
247
247
|
var inputCorrectIndex = i + codeLength / parts * partIndex;
|
248
248
|
return /*#__PURE__*/_react["default"].createElement(_CodeInput2.ItemWrapper, {
|
249
|
-
key: partIndex + i + partIndex * i
|
250
|
-
className: screenClass
|
249
|
+
key: partIndex + i + partIndex * i
|
251
250
|
}, /*#__PURE__*/_react["default"].createElement(_CodeInput2.ItemInput, _extends({
|
252
251
|
ref: function ref(element) {
|
253
252
|
inputRefs.current[inputCorrectIndex] = element;
|
@@ -3,7 +3,7 @@
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
4
4
|
value: true
|
5
5
|
});
|
6
|
-
exports.tokens = exports.classes = void 0;
|
6
|
+
exports.tokens = exports.privateTokens = exports.classes = void 0;
|
7
7
|
var classes = exports.classes = {
|
8
8
|
itemError: 'codeinput-item-error',
|
9
9
|
itemErrorAnimation: 'codeinput-item-error-animation',
|
@@ -17,33 +17,54 @@ var classes = exports.classes = {
|
|
17
17
|
hoverEnabled: 'codeinput-item-hover-enabled',
|
18
18
|
segmented: 'codeinput-shape-segmented',
|
19
19
|
"default": 'codeinput-shape-default',
|
20
|
-
|
21
|
-
|
22
|
-
|
20
|
+
largeMScreen: 'codeinput-large-m-screen',
|
21
|
+
largeSScreen: 'codeinput-large-s-screen',
|
22
|
+
mediumMScreen: 'codeinput-medium-m-screen',
|
23
|
+
mediumSScreen: 'codeinput-medium-s-screen',
|
24
|
+
smallMScreen: 'codeinput-small-m-screen',
|
23
25
|
disabled: 'codeinput-disabled'
|
24
26
|
};
|
27
|
+
var privateTokens = exports.privateTokens = {
|
28
|
+
itemWidth: '--private-codeinput-item-width',
|
29
|
+
itemHeight: '--private-codeinput-item-hieght',
|
30
|
+
fontSize: '--private-codeinput-font-size',
|
31
|
+
lineHeight: '--private-codeinput-line-height'
|
32
|
+
};
|
25
33
|
var tokens = exports.tokens = {
|
26
34
|
captionGap: '--plasma-codeinput-caption-gap',
|
27
35
|
codeItemsGap: '--plasma-codeinput-code-item-gap',
|
36
|
+
smallMMinWidth: '--plasma-codeinput-smallM-min-width',
|
37
|
+
mediumSMinWidth: '--plasma-codeinput-mediumS-min-width',
|
38
|
+
mediumMMinWidth: '--plasma-codeinput-mediumM-min-width',
|
39
|
+
largeSMinWidth: '--plasma-codeinput-largeS-min-width',
|
40
|
+
largeMMinWidth: '--plasma-codeinput-largeM-min-width',
|
28
41
|
separatorWidth: '--plasma-codeinput-separator-width',
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
42
|
+
largeMCodeItemWidth: '--plasma-codeinput-item-large-m-width',
|
43
|
+
largeMCodeItemHeight: '--plasma-codeinput-item-large-m-height',
|
44
|
+
largeSCodeItemWidth: '--plasma-codeinput-item-large-s-width',
|
45
|
+
largeSCodeItemHeight: '--plasma-codeinput-item-large-s-height',
|
46
|
+
mediumMCodeItemWidth: '--plasma-codeinput-item-medium-m-width',
|
47
|
+
mediumMCodeItemHeight: '--plasma-codeinput-item-medium-m-height',
|
48
|
+
mediumSCodeItemWidth: '--plasma-codeinput-item-medium-s-width',
|
49
|
+
mediumSCodeItemHeight: '--plasma-codeinput-item-medium-s-height',
|
50
|
+
smallMCodeItemWidth: '--plasma-codeinput-item-small-m-width',
|
51
|
+
smallMCodeItemHeight: '--plasma-codeinput-item-small-m-height',
|
35
52
|
codeItemCircleSize: '--plasma-codeinput-item-circle-size',
|
36
53
|
codeItemCircleBorderWidth: '--plasma-codeinput-item-circle-border-width',
|
37
54
|
fontStyle: '--plasma-codeinput-font-style',
|
38
55
|
fontFamily: '--plasma-codeinput-font-family',
|
39
56
|
fontWeight: '--plasma-codeinput-font-weight',
|
40
57
|
letterSpacing: '--plasma-codeinput-letter-spacing',
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
58
|
+
largeMFontSize: '--plasma-codeinput-large-m-font-size',
|
59
|
+
largeMLineHeight: '--plasma-codeinput-large-m-line-height',
|
60
|
+
largeSFontSize: '--plasma-codeinput-large-s-font-size',
|
61
|
+
largeSLineHeight: '--plasma-codeinput-large-s-line-height',
|
62
|
+
mediumMFontSize: '--plasma-codeinput-medium-m-font-size',
|
63
|
+
mediumMLineHeight: '--plasma-codeinput-medium-m-line-height',
|
64
|
+
mediumSFontSize: '--plasma-codeinput-medium-s-font-size',
|
65
|
+
mediumSLineHeight: '--plasma-codeinput-medium-s-line-height',
|
66
|
+
smallMFontSize: '--plasma-codeinput-small-m-font-size',
|
67
|
+
smallMLineHeight: '--plasma-codeinput-small-m-line-height',
|
47
68
|
captionFontFamily: '--plasma-codeinput-caption-font-family',
|
48
69
|
captionFontSize: '--plasma-codeinput-caption-font-style',
|
49
70
|
captionFontStyle: '--plasma-codeinput-caption-font-size',
|