@skbkontur/react-ui 5.1.7 → 5.2.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/CHANGELOG.md +23 -0
- package/cjs/components/CurrencyLabel/CurrencyLabel.d.ts +2 -8
- package/cjs/components/CurrencyLabel/CurrencyLabel.js +19 -15
- package/cjs/components/CurrencyLabel/CurrencyLabel.js.map +1 -1
- package/cjs/components/DateInput/DateInput.d.ts +1 -0
- package/cjs/components/DateInput/DateInput.js +25 -5
- package/cjs/components/DateInput/DateInput.js.map +1 -1
- package/cjs/components/DateInput/helpers/InternalDateMediator.d.ts +1 -1
- package/cjs/components/DateInput/helpers/InternalDateMediator.js +10 -1
- package/cjs/components/DateInput/helpers/InternalDateMediator.js.map +1 -1
- package/cjs/components/Dropdown/Dropdown.d.ts +2 -4
- package/cjs/components/FxInput/FxInput.d.ts +1 -1
- package/cjs/components/FxInput/FxInput.js.map +1 -1
- package/cjs/components/MenuFooter/MenuFooter.d.ts +1 -6
- package/cjs/components/MenuFooter/MenuFooter.js +47 -40
- package/cjs/components/MenuFooter/MenuFooter.js.map +1 -1
- package/cjs/components/MenuHeader/MenuHeader.d.ts +1 -6
- package/cjs/components/MenuHeader/MenuHeader.js +49 -41
- package/cjs/components/MenuHeader/MenuHeader.js.map +1 -1
- package/cjs/components/MenuItem/MenuItem.js +3 -0
- package/cjs/components/MenuItem/MenuItem.js.map +1 -1
- package/cjs/components/MenuItem/MenuItem.styles.d.ts +1 -0
- package/cjs/components/MenuItem/MenuItem.styles.js +18 -13
- package/cjs/components/MenuItem/MenuItem.styles.js.map +1 -1
- package/cjs/components/MenuSeparator/MenuSeparator.d.ts +1 -6
- package/cjs/components/MenuSeparator/MenuSeparator.js +24 -22
- package/cjs/components/MenuSeparator/MenuSeparator.js.map +1 -1
- package/cjs/components/MiniModal/MiniModal.js +3 -3
- package/cjs/components/MiniModal/MiniModal.js.map +1 -1
- package/cjs/components/Modal/Modal.d.ts +20 -4
- package/cjs/components/Modal/Modal.js +79 -5
- package/cjs/components/Modal/Modal.js.map +1 -1
- package/cjs/components/Modal/Modal.styles.d.ts +19 -0
- package/cjs/components/Modal/Modal.styles.js +172 -42
- package/cjs/components/Modal/Modal.styles.js.map +1 -1
- package/cjs/components/Modal/ModalBody.js +8 -1
- package/cjs/components/Modal/ModalBody.js.map +1 -1
- package/cjs/components/Modal/ModalContext.d.ts +1 -0
- package/cjs/components/Modal/ModalContext.js +1 -0
- package/cjs/components/Modal/ModalContext.js.map +1 -1
- package/cjs/components/Modal/ModalFooter.js +17 -2
- package/cjs/components/Modal/ModalFooter.js.map +1 -1
- package/cjs/components/Modal/ModalHeader.js +21 -1
- package/cjs/components/Modal/ModalHeader.js.map +1 -1
- package/cjs/components/RadioGroup/RadioGroup.d.ts +1 -0
- package/cjs/components/RadioGroup/RadioGroup.js +18 -1
- package/cjs/components/RadioGroup/RadioGroup.js.map +1 -1
- package/cjs/components/RadioGroup/RadioGroup.styles.d.ts +1 -0
- package/cjs/components/RadioGroup/RadioGroup.styles.js +10 -4
- package/cjs/components/RadioGroup/RadioGroup.styles.js.map +1 -1
- package/cjs/components/SidePage/SidePage.d.ts +3 -1
- package/cjs/components/SidePage/SidePage.js +11 -5
- package/cjs/components/SidePage/SidePage.js.map +1 -1
- package/cjs/components/SidePage/SidePage.styles.d.ts +0 -1
- package/cjs/components/SidePage/SidePage.styles.js +51 -57
- package/cjs/components/SidePage/SidePage.styles.js.map +1 -1
- package/cjs/components/Sticky/Sticky.js +1 -1
- package/cjs/components/Sticky/Sticky.js.map +1 -1
- package/cjs/components/Toast/Toast.d.ts +5 -5
- package/cjs/components/Toast/Toast.js +2 -2
- package/cjs/components/Toast/Toast.js.map +1 -1
- package/cjs/components/Toast/ToastStatic.d.ts +3 -2
- package/cjs/components/Toast/ToastStatic.js.map +1 -1
- package/cjs/components/Toast/ToastView.d.ts +1 -1
- package/cjs/components/Toast/ToastView.js.map +1 -1
- package/cjs/internal/Popup/Popup.d.ts +1 -0
- package/cjs/internal/Popup/Popup.js +11 -1
- package/cjs/internal/Popup/Popup.js.map +1 -1
- package/cjs/internal/ThemeShowcase/VariablesCollector.d.ts +1 -1
- package/cjs/internal/themes/BasicTheme.d.ts +4 -0
- package/cjs/internal/themes/BasicTheme.js +8 -2
- package/cjs/internal/themes/BasicTheme.js.map +1 -1
- package/cjs/internal/themes/DarkTheme5_2.d.ts +1 -0
- package/cjs/internal/themes/DarkTheme5_2.js +29 -0
- package/cjs/internal/themes/DarkTheme5_2.js.map +1 -0
- package/cjs/internal/themes/LightTheme5_2.d.ts +1 -0
- package/cjs/internal/themes/LightTheme5_2.js +27 -0
- package/cjs/internal/themes/LightTheme5_2.js.map +1 -0
- package/cjs/lib/ModalStack.d.ts +7 -1
- package/cjs/lib/ModalStack.js.map +1 -1
- package/cjs/lib/date/InternalDateGetter.d.ts +1 -1
- package/cjs/lib/date/InternalDateGetter.js +8 -1
- package/cjs/lib/date/InternalDateGetter.js.map +1 -1
- package/cjs/lib/featureFlagsContext/FeatureFlagsHelpers.d.ts +3 -0
- package/cjs/lib/featureFlagsContext/ReactUIFeatureFlagsContext.d.ts +3 -0
- package/cjs/lib/featureFlagsContext/ReactUIFeatureFlagsContext.js +7 -1
- package/cjs/lib/featureFlagsContext/ReactUIFeatureFlagsContext.js.map +1 -1
- package/cjs/lib/theming/ThemeVersions.d.ts +1 -1
- package/cjs/lib/theming/ThemeVersions.js.map +1 -1
- package/cjs/lib/theming/themes/DarkTheme.d.ts +1 -0
- package/cjs/lib/theming/themes/DarkTheme.js +4 -2
- package/cjs/lib/theming/themes/DarkTheme.js.map +1 -1
- package/cjs/lib/theming/themes/LightTheme.d.ts +1 -0
- package/cjs/lib/theming/themes/LightTheme.js +4 -2
- package/cjs/lib/theming/themes/LightTheme.js.map +1 -1
- package/components/CurrencyLabel/CurrencyLabel/CurrencyLabel.js +8 -6
- package/components/CurrencyLabel/CurrencyLabel/CurrencyLabel.js.map +1 -1
- package/components/CurrencyLabel/CurrencyLabel.d.ts +2 -8
- package/components/DateInput/DateInput/DateInput.js +13 -7
- package/components/DateInput/DateInput/DateInput.js.map +1 -1
- package/components/DateInput/DateInput.d.ts +1 -0
- package/components/DateInput/helpers/InternalDateMediator/InternalDateMediator.js +2 -2
- package/components/DateInput/helpers/InternalDateMediator/InternalDateMediator.js.map +1 -1
- package/components/DateInput/helpers/InternalDateMediator.d.ts +1 -1
- package/components/Dropdown/Dropdown.d.ts +2 -4
- package/components/FxInput/FxInput/FxInput.js.map +1 -1
- package/components/FxInput/FxInput.d.ts +1 -1
- package/components/MenuFooter/MenuFooter/MenuFooter.js +7 -4
- package/components/MenuFooter/MenuFooter/MenuFooter.js.map +1 -1
- package/components/MenuFooter/MenuFooter.d.ts +1 -6
- package/components/MenuHeader/MenuHeader/MenuHeader.js +7 -4
- package/components/MenuHeader/MenuHeader/MenuHeader.js.map +1 -1
- package/components/MenuHeader/MenuHeader.d.ts +1 -6
- package/components/MenuItem/MenuItem/MenuItem.js +3 -1
- package/components/MenuItem/MenuItem/MenuItem.js.map +1 -1
- package/components/MenuItem/MenuItem.styles/MenuItem.styles.js +16 -13
- package/components/MenuItem/MenuItem.styles/MenuItem.styles.js.map +1 -1
- package/components/MenuItem/MenuItem.styles.d.ts +1 -0
- package/components/MenuSeparator/MenuSeparator/MenuSeparator.js +4 -4
- package/components/MenuSeparator/MenuSeparator/MenuSeparator.js.map +1 -1
- package/components/MenuSeparator/MenuSeparator.d.ts +1 -6
- package/components/MiniModal/MiniModal/MiniModal.js +3 -1
- package/components/MiniModal/MiniModal/MiniModal.js.map +1 -1
- package/components/Modal/Modal/Modal.js +51 -11
- package/components/Modal/Modal/Modal.js.map +1 -1
- package/components/Modal/Modal.d.ts +20 -4
- package/components/Modal/Modal.styles/Modal.styles.js +98 -41
- package/components/Modal/Modal.styles/Modal.styles.js.map +1 -1
- package/components/Modal/Modal.styles.d.ts +19 -0
- package/components/Modal/ModalBody/ModalBody.js +5 -1
- package/components/Modal/ModalBody/ModalBody.js.map +1 -1
- package/components/Modal/ModalContext/ModalContext.js.map +1 -1
- package/components/Modal/ModalContext.d.ts +1 -0
- package/components/Modal/ModalFooter/ModalFooter.js +14 -2
- package/components/Modal/ModalFooter/ModalFooter.js.map +1 -1
- package/components/Modal/ModalHeader/ModalHeader.js +12 -2
- package/components/Modal/ModalHeader/ModalHeader.js.map +1 -1
- package/components/RadioGroup/RadioGroup/RadioGroup.js +23 -17
- package/components/RadioGroup/RadioGroup/RadioGroup.js.map +1 -1
- package/components/RadioGroup/RadioGroup.d.ts +1 -0
- package/components/RadioGroup/RadioGroup.styles/RadioGroup.styles.js +7 -4
- package/components/RadioGroup/RadioGroup.styles/RadioGroup.styles.js.map +1 -1
- package/components/RadioGroup/RadioGroup.styles.d.ts +1 -0
- package/components/SidePage/SidePage/SidePage.js +15 -8
- package/components/SidePage/SidePage/SidePage.js.map +1 -1
- package/components/SidePage/SidePage.d.ts +3 -1
- package/components/SidePage/SidePage.styles/SidePage.styles.js +51 -54
- package/components/SidePage/SidePage.styles/SidePage.styles.js.map +1 -1
- package/components/SidePage/SidePage.styles.d.ts +0 -1
- package/components/Sticky/Sticky/Sticky.js +1 -1
- package/components/Sticky/Sticky/Sticky.js.map +1 -1
- package/components/Toast/Toast/Toast.js +2 -2
- package/components/Toast/Toast/Toast.js.map +1 -1
- package/components/Toast/Toast.d.ts +5 -5
- package/components/Toast/ToastStatic/ToastStatic.js.map +1 -1
- package/components/Toast/ToastStatic.d.ts +3 -2
- package/components/Toast/ToastView/ToastView.js.map +1 -1
- package/components/Toast/ToastView.d.ts +1 -1
- package/internal/Popup/Popup/Popup.js +12 -1
- package/internal/Popup/Popup/Popup.js.map +1 -1
- package/internal/Popup/Popup.d.ts +1 -0
- package/internal/ThemeShowcase/VariablesCollector.d.ts +1 -1
- package/internal/themes/BasicTheme/BasicTheme.js +8 -0
- package/internal/themes/BasicTheme/BasicTheme.js.map +1 -1
- package/internal/themes/BasicTheme.d.ts +4 -0
- package/internal/themes/DarkTheme5_2/DarkTheme5_2.js +27 -0
- package/internal/themes/DarkTheme5_2/DarkTheme5_2.js.map +1 -0
- package/internal/themes/DarkTheme5_2/package.json +6 -0
- package/internal/themes/DarkTheme5_2.d.ts +1 -0
- package/internal/themes/LightTheme5_2/LightTheme5_2.js +27 -0
- package/internal/themes/LightTheme5_2/LightTheme5_2.js.map +1 -0
- package/internal/themes/LightTheme5_2/package.json +6 -0
- package/internal/themes/LightTheme5_2.d.ts +1 -0
- package/lib/ModalStack/ModalStack.js.map +1 -1
- package/lib/ModalStack.d.ts +7 -1
- package/lib/date/InternalDateGetter/InternalDateGetter.js +4 -1
- package/lib/date/InternalDateGetter/InternalDateGetter.js.map +1 -1
- package/lib/date/InternalDateGetter.d.ts +1 -1
- package/lib/featureFlagsContext/FeatureFlagsHelpers.d.ts +3 -0
- package/lib/featureFlagsContext/ReactUIFeatureFlagsContext/ReactUIFeatureFlagsContext.js +4 -1
- package/lib/featureFlagsContext/ReactUIFeatureFlagsContext/ReactUIFeatureFlagsContext.js.map +1 -1
- package/lib/featureFlagsContext/ReactUIFeatureFlagsContext.d.ts +3 -0
- package/lib/theming/ThemeVersions/ThemeVersions.js.map +1 -1
- package/lib/theming/ThemeVersions.d.ts +1 -1
- package/lib/theming/themes/DarkTheme/DarkTheme.js +3 -1
- package/lib/theming/themes/DarkTheme/DarkTheme.js.map +1 -1
- package/lib/theming/themes/DarkTheme.d.ts +1 -0
- package/lib/theming/themes/LightTheme/LightTheme.js +3 -1
- package/lib/theming/themes/LightTheme/LightTheme.js.map +1 -1
- package/lib/theming/themes/LightTheme.d.ts +1 -0
- package/package.json +9 -9
- package/cjs/components/Autocomplete/__creevey__/Autocomplete.creevey.mts +0 -239
- package/cjs/components/Autocomplete/__docs__/Autocomplete.mdx +0 -26
- package/cjs/components/Button/__creevey__/Button.creevey.mts +0 -251
- package/cjs/components/Button/__docs__/Button.mdx +0 -27
- package/cjs/components/Calendar/__creevey__/Calendar.creevey.mts +0 -113
- package/cjs/components/Calendar/__docs__/Calendar.mdx +0 -27
- package/cjs/components/Calendar/__docs__/CalendarDay.mdx +0 -23
- package/cjs/components/Center/__docs__/Center.mdx +0 -23
- package/cjs/components/Checkbox/__creevey__/Checkbox.creevey.mts +0 -243
- package/cjs/components/Checkbox/__docs__/Checkbox.mdx +0 -27
- package/cjs/components/ComboBox/__creevey__/ComboBox.creevey.mts +0 -545
- package/cjs/components/ComboBox/__docs__/ComboBox.mdx +0 -27
- package/cjs/components/CurrencyInput/__creevey__/CurrencyInput.creevey.mts +0 -81
- package/cjs/components/CurrencyInput/__docs__/CurrencyInput.mdx +0 -27
- package/cjs/components/CurrencyLabel/__docs__/CurrencyLabel.mdx +0 -23
- package/cjs/components/DateInput/__creevey__/DateInput.creevey.mts +0 -156
- package/cjs/components/DateInput/__docs__/DateInput.mdx +0 -23
- package/cjs/components/DatePicker/__creevey__/DatePicker.creevey.mts +0 -209
- package/cjs/components/DatePicker/__docs__/DatePicker.mdx +0 -27
- package/cjs/components/DateRangePicker/__creevey__/DateRangePicker.creevey.mts +0 -155
- package/cjs/components/DateRangePicker/__docs__/DateRangePicker.mdx +0 -123
- package/cjs/components/Dropdown/__creevey__/Dropdown.creevey.mts +0 -184
- package/cjs/components/Dropdown/__docs__/Dropdown.mdx +0 -27
- package/cjs/components/DropdownMenu/__creevey__/DropdownMenu.creevey.mts +0 -263
- package/cjs/components/DropdownMenu/__docs__/DropdownMenu.mdx +0 -27
- package/cjs/components/FileUploader/__docs__/FileUploader.mdx +0 -27
- package/cjs/components/FxInput/__creevey__/FxInput.creevey.mts +0 -21
- package/cjs/components/FxInput/__docs__/FxInput.mdx +0 -27
- package/cjs/components/Gapped/__docs__/Gapped.mdx +0 -23
- package/cjs/components/GlobalLoader/__docs__/GlobalLoader.mdx +0 -27
- package/cjs/components/Group/__creevey__/Group.creevey.mts +0 -19
- package/cjs/components/Group/__docs__/Group.mdx +0 -23
- package/cjs/components/Hint/__creevey__/Hint.creevey.mts +0 -68
- package/cjs/components/Hint/__docs__/Hint.mdx +0 -28
- package/cjs/components/Input/__creevey__/Input.creevey.mts +0 -239
- package/cjs/components/Input/__docs__/Input.mdx +0 -27
- package/cjs/components/Kebab/__creevey__/Kebab.creevey.mts +0 -147
- package/cjs/components/Kebab/__docs__/Kebab.mdx +0 -27
- package/cjs/components/Link/__creevey__/Link.creevey.mts +0 -162
- package/cjs/components/Link/__docs__/Link.mdx +0 -27
- package/cjs/components/Loader/__creevey__/Loader.creevey.mts +0 -35
- package/cjs/components/Loader/__docs__/Loader.mdx +0 -23
- package/cjs/components/MaskedInput/__creevey__/MaskedInput.creevey.mts +0 -221
- package/cjs/components/MaskedInput/__docs__/MaskedInput.mdx +0 -27
- package/cjs/components/MenuFooter/__docs__/MenuFooter.mdx +0 -23
- package/cjs/components/MenuHeader/__docs__/MenuHeader.mdx +0 -23
- package/cjs/components/MenuItem/__docs__/MenuItem.mdx +0 -23
- package/cjs/components/MenuSeparator/__docs__/MenuSeparator.mdx +0 -23
- package/cjs/components/MiniModal/__docs__/MiniModal.mdx +0 -27
- package/cjs/components/MiniModal/__docs__/MiniModalBody.mdx +0 -17
- package/cjs/components/MiniModal/__docs__/MiniModalFooter.mdx +0 -17
- package/cjs/components/MiniModal/__docs__/MiniModalHeader.mdx +0 -18
- package/cjs/components/MiniModal/__docs__/MiniModalIndent.mdx +0 -11
- package/cjs/components/Modal/__creevey__/Modal.creevey.mts +0 -295
- package/cjs/components/Modal/__docs__/Modal.mdx +0 -27
- package/cjs/components/Modal/__docs__/ModalBody.mdx +0 -15
- package/cjs/components/Modal/__docs__/ModalFooter.mdx +0 -15
- package/cjs/components/Modal/__docs__/ModalHeader.mdx +0 -15
- package/cjs/components/Modal/__docs__/ModalSeparator.mdx +0 -15
- package/cjs/components/Paging/__creevey__/Paging.creevey.mts +0 -97
- package/cjs/components/Paging/__docs__/Paging.mdx +0 -27
- package/cjs/components/PasswordInput/__creevey__/PasswordInput.creevey.mts +0 -46
- package/cjs/components/PasswordInput/__docs__/PasswordInput.mdx +0 -27
- package/cjs/components/Radio/__creevey__/Radio.creevey.mts +0 -28
- package/cjs/components/Radio/__docs__/Radio.mdx +0 -27
- package/cjs/components/RadioGroup/__creevey__/RadioGroup.creevey.mts +0 -86
- package/cjs/components/RadioGroup/__docs__/RadioGroup.mdx +0 -27
- package/cjs/components/ResponsiveLayout/__docs__/ResponsiveLayout.mdx +0 -96
- package/cjs/components/ScrollContainer/__creevey__/ScrollContainer.creevey.mts +0 -247
- package/cjs/components/ScrollContainer/__docs__/ScrollContainer.mdx +0 -23
- package/cjs/components/Select/__creevey__/Select.creevey.mts +0 -293
- package/cjs/components/Select/__docs__/Select.mdx +0 -27
- package/cjs/components/SidePage/__creevey__/SidePage.creevey.mts +0 -421
- package/cjs/components/SidePage/__docs__/SidePage.mdx +0 -27
- package/cjs/components/SidePage/__docs__/SidePageBody.mdx +0 -16
- package/cjs/components/SidePage/__docs__/SidePageContainer.mdx +0 -15
- package/cjs/components/SidePage/__docs__/SidePageFooter.mdx +0 -15
- package/cjs/components/SidePage/__docs__/SidePageHeader.mdx +0 -15
- package/cjs/components/SingleToast/__docs__/SingleToast.mdx +0 -27
- package/cjs/components/Spinner/__docs__/Spinner.mdx +0 -27
- package/cjs/components/Sticky/__creevey__/Sticky.creevey.mts +0 -98
- package/cjs/components/Sticky/__docs__/Sticky.mdx +0 -23
- package/cjs/components/Switcher/__creevey__/Switcher.creevey.mts +0 -24
- package/cjs/components/Switcher/__docs__/Switcher.mdx +0 -27
- package/cjs/components/Tabs/__creevey__/Tabs.creevey.mts +0 -239
- package/cjs/components/Tabs/__docs__/Tab.mdx +0 -27
- package/cjs/components/Tabs/__docs__/Tabs.mdx +0 -27
- package/cjs/components/Textarea/__creevey__/Textarea.creevey.mts +0 -177
- package/cjs/components/Textarea/__docs__/Textarea.mdx +0 -27
- package/cjs/components/Toast/__creevey__/Toast.creevey.mts +0 -77
- package/cjs/components/Toast/__docs__/Toast.mdx +0 -27
- package/cjs/components/Toggle/__creevey__/Toggle.creevey.mts +0 -93
- package/cjs/components/Toggle/__docs__/Toggle.mdx +0 -27
- package/cjs/components/Token/__docs__/Token.mdx +0 -27
- package/cjs/components/TokenInput/__creevey__/TokenInput.creevey.mts +0 -442
- package/cjs/components/TokenInput/__docs__/TokenInput.mdx +0 -27
- package/cjs/components/Tooltip/__creevey__/Tooltip.creevey.mts +0 -533
- package/cjs/components/Tooltip/__docs__/Tooltip.mdx +0 -27
- package/cjs/components/TooltipMenu/__creevey__/TooltipMenu.creevey.mts +0 -131
- package/cjs/components/TooltipMenu/__docs__/TooltipMenu.mdx +0 -23
- package/cjs/internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.mts +0 -44
- package/cjs/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.mts +0 -48
- package/cjs/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.mts +0 -30
- package/cjs/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.mts +0 -25
- package/cjs/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.mts +0 -83
- package/cjs/internal/Menu/__creevey__/Menu.creevey.mts +0 -90
- package/cjs/internal/PerformanceMetrics/PerformanceMetrics.d.ts +0 -7
- package/cjs/internal/PerformanceMetrics/PerformanceMetrics.js +0 -89
- package/cjs/internal/PerformanceMetrics/PerformanceMetrics.js.map +0 -1
- package/cjs/internal/PopupMenu/__creevey__/PopupMenu.creevey.mts +0 -37
- package/cjs/internal/ThemePlayground/__creevey__/Theme5_0.creevey.mts +0 -36
- package/cjs/internal/ThemePlayground/__creevey__/Theme5_0.stories.d.ts +0 -4
- package/cjs/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.mts +0 -68
- package/cjs/internal/ZIndex/__creevey__/ZIndex.creevey.mts +0 -228
- package/components/Autocomplete/__creevey__/Autocomplete.creevey.d.mts +0 -1
- package/components/Autocomplete/__creevey__/Autocomplete.creevey.mts +0 -239
- package/components/Autocomplete/__docs__/Autocomplete.mdx +0 -26
- package/components/Button/__creevey__/Button.creevey.d.mts +0 -1
- package/components/Button/__creevey__/Button.creevey.mts +0 -251
- package/components/Button/__docs__/Button.mdx +0 -27
- package/components/Calendar/__creevey__/Calendar.creevey.d.mts +0 -1
- package/components/Calendar/__creevey__/Calendar.creevey.mts +0 -113
- package/components/Calendar/__docs__/Calendar.mdx +0 -27
- package/components/Calendar/__docs__/CalendarDay.mdx +0 -23
- package/components/Center/__docs__/Center.mdx +0 -23
- package/components/Checkbox/__creevey__/Checkbox.creevey.d.mts +0 -1
- package/components/Checkbox/__creevey__/Checkbox.creevey.mts +0 -243
- package/components/Checkbox/__docs__/Checkbox.mdx +0 -27
- package/components/ComboBox/__creevey__/ComboBox.creevey.d.mts +0 -1
- package/components/ComboBox/__creevey__/ComboBox.creevey.mts +0 -545
- package/components/ComboBox/__docs__/ComboBox.mdx +0 -27
- package/components/CurrencyInput/__creevey__/CurrencyInput.creevey.d.mts +0 -1
- package/components/CurrencyInput/__creevey__/CurrencyInput.creevey.mts +0 -81
- package/components/CurrencyInput/__docs__/CurrencyInput.mdx +0 -27
- package/components/CurrencyLabel/__docs__/CurrencyLabel.mdx +0 -23
- package/components/DateInput/__creevey__/DateInput.creevey.d.mts +0 -1
- package/components/DateInput/__creevey__/DateInput.creevey.mts +0 -156
- package/components/DateInput/__docs__/DateInput.mdx +0 -23
- package/components/DatePicker/__creevey__/DatePicker.creevey.d.mts +0 -1
- package/components/DatePicker/__creevey__/DatePicker.creevey.mts +0 -209
- package/components/DatePicker/__docs__/DatePicker.mdx +0 -27
- package/components/DateRangePicker/__creevey__/DateRangePicker.creevey.d.mts +0 -1
- package/components/DateRangePicker/__creevey__/DateRangePicker.creevey.mts +0 -155
- package/components/DateRangePicker/__docs__/DateRangePicker.mdx +0 -123
- package/components/Dropdown/__creevey__/Dropdown.creevey.d.mts +0 -1
- package/components/Dropdown/__creevey__/Dropdown.creevey.mts +0 -184
- package/components/Dropdown/__docs__/Dropdown.mdx +0 -27
- package/components/DropdownMenu/__creevey__/DropdownMenu.creevey.d.mts +0 -1
- package/components/DropdownMenu/__creevey__/DropdownMenu.creevey.mts +0 -263
- package/components/DropdownMenu/__docs__/DropdownMenu.mdx +0 -27
- package/components/FileUploader/__docs__/FileUploader.mdx +0 -27
- package/components/FxInput/__creevey__/FxInput.creevey.d.mts +0 -1
- package/components/FxInput/__creevey__/FxInput.creevey.mts +0 -21
- package/components/FxInput/__docs__/FxInput.mdx +0 -27
- package/components/Gapped/__docs__/Gapped.mdx +0 -23
- package/components/GlobalLoader/__docs__/GlobalLoader.mdx +0 -27
- package/components/Group/__creevey__/Group.creevey.d.mts +0 -1
- package/components/Group/__creevey__/Group.creevey.mts +0 -19
- package/components/Group/__docs__/Group.mdx +0 -23
- package/components/Hint/__creevey__/Hint.creevey.d.mts +0 -1
- package/components/Hint/__creevey__/Hint.creevey.mts +0 -68
- package/components/Hint/__docs__/Hint.mdx +0 -28
- package/components/Input/__creevey__/Input.creevey.d.mts +0 -1
- package/components/Input/__creevey__/Input.creevey.mts +0 -239
- package/components/Input/__docs__/Input.mdx +0 -27
- package/components/Kebab/__creevey__/Kebab.creevey.d.mts +0 -1
- package/components/Kebab/__creevey__/Kebab.creevey.mts +0 -147
- package/components/Kebab/__docs__/Kebab.mdx +0 -27
- package/components/Link/__creevey__/Link.creevey.d.mts +0 -1
- package/components/Link/__creevey__/Link.creevey.mts +0 -162
- package/components/Link/__docs__/Link.mdx +0 -27
- package/components/Loader/__creevey__/Loader.creevey.d.mts +0 -1
- package/components/Loader/__creevey__/Loader.creevey.mts +0 -35
- package/components/Loader/__docs__/Loader.mdx +0 -23
- package/components/MaskedInput/__creevey__/MaskedInput.creevey.d.mts +0 -1
- package/components/MaskedInput/__creevey__/MaskedInput.creevey.mts +0 -221
- package/components/MaskedInput/__docs__/MaskedInput.mdx +0 -27
- package/components/MenuFooter/__docs__/MenuFooter.mdx +0 -23
- package/components/MenuHeader/__docs__/MenuHeader.mdx +0 -23
- package/components/MenuItem/__docs__/MenuItem.mdx +0 -23
- package/components/MenuSeparator/__docs__/MenuSeparator.mdx +0 -23
- package/components/MiniModal/__docs__/MiniModal.mdx +0 -27
- package/components/MiniModal/__docs__/MiniModalBody.mdx +0 -17
- package/components/MiniModal/__docs__/MiniModalFooter.mdx +0 -17
- package/components/MiniModal/__docs__/MiniModalHeader.mdx +0 -18
- package/components/MiniModal/__docs__/MiniModalIndent.mdx +0 -11
- package/components/Modal/__creevey__/Modal.creevey.d.mts +0 -1
- package/components/Modal/__creevey__/Modal.creevey.mts +0 -295
- package/components/Modal/__docs__/Modal.mdx +0 -27
- package/components/Modal/__docs__/ModalBody.mdx +0 -15
- package/components/Modal/__docs__/ModalFooter.mdx +0 -15
- package/components/Modal/__docs__/ModalHeader.mdx +0 -15
- package/components/Modal/__docs__/ModalSeparator.mdx +0 -15
- package/components/Paging/__creevey__/Paging.creevey.d.mts +0 -1
- package/components/Paging/__creevey__/Paging.creevey.mts +0 -97
- package/components/Paging/__docs__/Paging.mdx +0 -27
- package/components/PasswordInput/__creevey__/PasswordInput.creevey.d.mts +0 -1
- package/components/PasswordInput/__creevey__/PasswordInput.creevey.mts +0 -46
- package/components/PasswordInput/__docs__/PasswordInput.mdx +0 -27
- package/components/Radio/__creevey__/Radio.creevey.d.mts +0 -1
- package/components/Radio/__creevey__/Radio.creevey.mts +0 -28
- package/components/Radio/__docs__/Radio.mdx +0 -27
- package/components/RadioGroup/__creevey__/RadioGroup.creevey.d.mts +0 -1
- package/components/RadioGroup/__creevey__/RadioGroup.creevey.mts +0 -86
- package/components/RadioGroup/__docs__/RadioGroup.mdx +0 -27
- package/components/ResponsiveLayout/__docs__/ResponsiveLayout.mdx +0 -96
- package/components/ScrollContainer/__creevey__/ScrollContainer.creevey.d.mts +0 -1
- package/components/ScrollContainer/__creevey__/ScrollContainer.creevey.mts +0 -247
- package/components/ScrollContainer/__docs__/ScrollContainer.mdx +0 -23
- package/components/Select/__creevey__/Select.creevey.d.mts +0 -1
- package/components/Select/__creevey__/Select.creevey.mts +0 -293
- package/components/Select/__docs__/Select.mdx +0 -27
- package/components/SidePage/__creevey__/SidePage.creevey.d.mts +0 -1
- package/components/SidePage/__creevey__/SidePage.creevey.mts +0 -421
- package/components/SidePage/__docs__/SidePage.mdx +0 -27
- package/components/SidePage/__docs__/SidePageBody.mdx +0 -16
- package/components/SidePage/__docs__/SidePageContainer.mdx +0 -15
- package/components/SidePage/__docs__/SidePageFooter.mdx +0 -15
- package/components/SidePage/__docs__/SidePageHeader.mdx +0 -15
- package/components/SingleToast/__docs__/SingleToast.mdx +0 -27
- package/components/Spinner/__docs__/Spinner.mdx +0 -27
- package/components/Sticky/__creevey__/Sticky.creevey.d.mts +0 -1
- package/components/Sticky/__creevey__/Sticky.creevey.mts +0 -98
- package/components/Sticky/__docs__/Sticky.mdx +0 -23
- package/components/Switcher/__creevey__/Switcher.creevey.d.mts +0 -1
- package/components/Switcher/__creevey__/Switcher.creevey.mts +0 -24
- package/components/Switcher/__docs__/Switcher.mdx +0 -27
- package/components/Tabs/__creevey__/Tabs.creevey.d.mts +0 -1
- package/components/Tabs/__creevey__/Tabs.creevey.mts +0 -239
- package/components/Tabs/__docs__/Tab.mdx +0 -27
- package/components/Tabs/__docs__/Tabs.mdx +0 -27
- package/components/Textarea/__creevey__/Textarea.creevey.d.mts +0 -1
- package/components/Textarea/__creevey__/Textarea.creevey.mts +0 -177
- package/components/Textarea/__docs__/Textarea.mdx +0 -27
- package/components/Toast/__creevey__/Toast.creevey.d.mts +0 -1
- package/components/Toast/__creevey__/Toast.creevey.mts +0 -77
- package/components/Toast/__docs__/Toast.mdx +0 -27
- package/components/Toggle/__creevey__/Toggle.creevey.d.mts +0 -1
- package/components/Toggle/__creevey__/Toggle.creevey.mts +0 -93
- package/components/Toggle/__docs__/Toggle.mdx +0 -27
- package/components/Token/__docs__/Token.mdx +0 -27
- package/components/TokenInput/__creevey__/TokenInput.creevey.d.mts +0 -1
- package/components/TokenInput/__creevey__/TokenInput.creevey.mts +0 -442
- package/components/TokenInput/__docs__/TokenInput.mdx +0 -27
- package/components/Tooltip/__creevey__/Tooltip.creevey.d.mts +0 -1
- package/components/Tooltip/__creevey__/Tooltip.creevey.mts +0 -533
- package/components/Tooltip/__docs__/Tooltip.mdx +0 -27
- package/components/TooltipMenu/__creevey__/TooltipMenu.creevey.d.mts +0 -1
- package/components/TooltipMenu/__creevey__/TooltipMenu.creevey.mts +0 -131
- package/components/TooltipMenu/__docs__/TooltipMenu.mdx +0 -23
- package/internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.d.mts +0 -1
- package/internal/ClearCrossIcon/__creevey__/ClearCrossIcon.creevey.mts +0 -44
- package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.d.mts +0 -1
- package/internal/CloseButtonIcon/__creevey__/CloseButtonIcon.creevey.mts +0 -48
- package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.d.mts +0 -1
- package/internal/CustomComboBox/__creevey__/ComboBoxView.creevey.mts +0 -30
- package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.d.mts +0 -1
- package/internal/FileUploaderControl/__creevey__/FileUploaderFile.creevey.mts +0 -25
- package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.d.mts +0 -1
- package/internal/HideBodyVerticalScroll/__creevey__/HideBodyVerticalScroll.creevey.mts +0 -83
- package/internal/Menu/__creevey__/Menu.creevey.d.mts +0 -1
- package/internal/Menu/__creevey__/Menu.creevey.mts +0 -90
- package/internal/PerformanceMetrics/PerformanceMetrics/PerformanceMetrics.js +0 -106
- package/internal/PerformanceMetrics/PerformanceMetrics/PerformanceMetrics.js.map +0 -1
- package/internal/PerformanceMetrics/PerformanceMetrics/package.json +0 -6
- package/internal/PerformanceMetrics/PerformanceMetrics.d.ts +0 -7
- package/internal/PopupMenu/__creevey__/PopupMenu.creevey.d.mts +0 -1
- package/internal/PopupMenu/__creevey__/PopupMenu.creevey.mts +0 -37
- package/internal/ThemePlayground/__creevey__/Theme5_0.creevey.d.mts +0 -1
- package/internal/ThemePlayground/__creevey__/Theme5_0.creevey.mts +0 -36
- package/internal/ThemePlayground/__creevey__/Theme5_0.stories.d.ts +0 -4
- package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.d.mts +0 -1
- package/internal/ThemePlayground/__creevey__/ThemeProvider.creevey.mts +0 -68
- package/internal/ZIndex/__creevey__/ZIndex.creevey.d.mts +0 -1
- package/internal/ZIndex/__creevey__/ZIndex.creevey.mts +0 -228
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DarkTheme5_2: Readonly<typeof import("./BasicTheme").BasicThemeClass>;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule = true;exports.DarkTheme5_2 = void 0;var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));var _ThemeHelpers = require("../../lib/theming/ThemeHelpers");
|
|
2
|
+
|
|
3
|
+
var _BasicTheme = require("./BasicTheme");
|
|
4
|
+
var _DarkTheme5_2 = require("./DarkTheme5_1");var _DarkTheme5_;
|
|
5
|
+
|
|
6
|
+
var DarkTheme5_2 = exports.DarkTheme5_2 = (0, _ThemeHelpers.createTheme)({
|
|
7
|
+
themeClass: (_DarkTheme5_ = /*#__PURE__*/function (_BasicThemeClassForEx) {function DarkTheme5_1() {return _BasicThemeClassForEx.apply(this, arguments) || this;}(0, _inheritsLoose2.default)(DarkTheme5_1, _BasicThemeClassForEx);return (0, _createClass2.default)(DarkTheme5_1, null, [{ key: "mobileModalCloseButtonRightPadding", get:
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
function get() {
|
|
11
|
+
return this.mobileModalCloseButtonClickArea;
|
|
12
|
+
} }, { key: "mobileModalCloseButtonTopPadding", get:
|
|
13
|
+
function get() {
|
|
14
|
+
return this.mobileModalCloseButtonClickArea;
|
|
15
|
+
} }]);}(_BasicTheme.BasicThemeClassForExtension), _DarkTheme5_.kebabBackgroundHover = 'rgba(255, 255, 255, 0.1)', _DarkTheme5_.kebabBackgroundActive = 'rgba(255, 255, 255, 0.06)', _DarkTheme5_.
|
|
16
|
+
mobileModalCloseButtonClickArea = '22px', _DarkTheme5_.
|
|
17
|
+
mobileModalBodyPadding = '0 16px 0 16px', _DarkTheme5_.
|
|
18
|
+
mobileModalContainerMarginTop = '16px', _DarkTheme5_.
|
|
19
|
+
mobileModalContainerMarginRight = '16px', _DarkTheme5_.
|
|
20
|
+
mobileModalContainerMarginBottom = '16px', _DarkTheme5_.
|
|
21
|
+
mobileModalContainerMarginLeft = '16px', _DarkTheme5_.
|
|
22
|
+
|
|
23
|
+
miniModalMarginTopMobile = '16px', _DarkTheme5_.
|
|
24
|
+
miniModalMarginLeftMobile = '16px', _DarkTheme5_.
|
|
25
|
+
miniModalMarginRightMobile = '16px', _DarkTheme5_),
|
|
26
|
+
|
|
27
|
+
prototypeTheme: _DarkTheme5_2.DarkTheme5_1,
|
|
28
|
+
themeMarkers: [(0, _ThemeHelpers.markThemeVersion)('5.2')]
|
|
29
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_ThemeHelpers","require","_BasicTheme","_DarkTheme5_2","_DarkTheme5_","DarkTheme5_2","exports","createTheme","themeClass","_BasicThemeClassForEx","DarkTheme5_1","apply","arguments","_inheritsLoose2","default","_createClass2","key","get","mobileModalCloseButtonClickArea","BasicThemeClassForExtension","kebabBackgroundHover","kebabBackgroundActive","mobileModalBodyPadding","mobileModalContainerMarginTop","mobileModalContainerMarginRight","mobileModalContainerMarginBottom","mobileModalContainerMarginLeft","miniModalMarginTopMobile","miniModalMarginLeftMobile","miniModalMarginRightMobile","prototypeTheme","themeMarkers","markThemeVersion"],"sources":["DarkTheme5_2.ts"],"sourcesContent":["import { createTheme, markThemeVersion } from '../../lib/theming/ThemeHelpers';\n\nimport { BasicThemeClassForExtension } from './BasicTheme';\nimport { DarkTheme5_1 } from './DarkTheme5_1';\n\nexport const DarkTheme5_2 = createTheme({\n themeClass: class DarkTheme5_1 extends BasicThemeClassForExtension {\n public static kebabBackgroundHover = 'rgba(255, 255, 255, 0.1)';\n public static kebabBackgroundActive = 'rgba(255, 255, 255, 0.06)';\n public static get mobileModalCloseButtonRightPadding() {\n return this.mobileModalCloseButtonClickArea;\n }\n public static get mobileModalCloseButtonTopPadding() {\n return this.mobileModalCloseButtonClickArea;\n }\n public static mobileModalCloseButtonClickArea = '22px';\n public static mobileModalBodyPadding = '0 16px 0 16px';\n public static mobileModalContainerMarginTop = '16px';\n public static mobileModalContainerMarginRight = '16px';\n public static mobileModalContainerMarginBottom = '16px';\n public static mobileModalContainerMarginLeft = '16px';\n\n public static miniModalMarginTopMobile = '16px';\n public static miniModalMarginLeftMobile = '16px';\n public static miniModalMarginRightMobile = '16px';\n },\n prototypeTheme: DarkTheme5_1,\n themeMarkers: [markThemeVersion('5.2')],\n});\n"],"mappings":"0VAAA,IAAAA,aAAA,GAAAC,OAAA;;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA,mBAA8C,IAAAG,YAAA;;AAEvC,IAAMC,YAAY,GAAAC,OAAA,CAAAD,YAAA,GAAG,IAAAE,yBAAW,EAAC;EACtCC,UAAU,GAAAJ,YAAA,0BAAAK,qBAAA,YAAAC,aAAA,UAAAD,qBAAA,CAAAE,KAAA,OAAAC,SAAA,eAAAC,eAAA,CAAAC,OAAA,EAAAJ,YAAA,EAAAD,qBAAA,aAAAM,aAAA,CAAAD,OAAA,EAAAJ,YAAA,WAAAM,GAAA,wCAAAC,GAAA;;;MAGR,SAAAA,IAAA,EAAuD;QACrD,OAAO,IAAI,CAACC,+BAA+B;MAC7C,CAAC,MAAAF,GAAA,sCAAAC,GAAA;MACD,SAAAA,IAAA,EAAqD;QACnD,OAAO,IAAI,CAACC,+BAA+B;MAC7C,CAAC,OARoCC,uCAA2B,GAAAf,YAAA,CAClDgB,oBAAoB,GAAG,0BAA0B,EAAAhB,YAAA,CACjDiB,qBAAqB,GAAG,2BAA2B,EAAAjB,YAAA;EAOnDc,+BAA+B,GAAG,MAAM,EAAAd,YAAA;EACxCkB,sBAAsB,GAAG,eAAe,EAAAlB,YAAA;EACxCmB,6BAA6B,GAAG,MAAM,EAAAnB,YAAA;EACtCoB,+BAA+B,GAAG,MAAM,EAAApB,YAAA;EACxCqB,gCAAgC,GAAG,MAAM,EAAArB,YAAA;EACzCsB,8BAA8B,GAAG,MAAM,EAAAtB,YAAA;;EAEvCuB,wBAAwB,GAAG,MAAM,EAAAvB,YAAA;EACjCwB,yBAAyB,GAAG,MAAM,EAAAxB,YAAA;EAClCyB,0BAA0B,GAAG,MAAM,EAAAzB,YAAA,CAClD;;EACD0B,cAAc,EAAEpB,0BAAY;EAC5BqB,YAAY,EAAE,CAAC,IAAAC,8BAAgB,EAAC,KAAK,CAAC;AACxC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const LightTheme5_2: Readonly<typeof import("./BasicTheme").BasicThemeClass>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;exports.__esModule = true;exports.LightTheme5_2 = void 0;var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));var _inheritsLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/inheritsLoose"));var _ThemeHelpers = require("../../lib/theming/ThemeHelpers");
|
|
2
|
+
|
|
3
|
+
var _BasicTheme = require("./BasicTheme");
|
|
4
|
+
var _LightTheme5_2 = require("./LightTheme5_1");var _LightTheme5_;
|
|
5
|
+
|
|
6
|
+
var LightTheme5_2 = exports.LightTheme5_2 = (0, _ThemeHelpers.createTheme)({
|
|
7
|
+
themeClass: (_LightTheme5_ = /*#__PURE__*/function (_BasicThemeClassForEx) {function LightTheme5_2() {return _BasicThemeClassForEx.apply(this, arguments) || this;}(0, _inheritsLoose2.default)(LightTheme5_2, _BasicThemeClassForEx);return (0, _createClass2.default)(LightTheme5_2, null, [{ key: "mobileModalCloseButtonRightPadding", get:
|
|
8
|
+
function get() {
|
|
9
|
+
return this.mobileModalCloseButtonClickArea;
|
|
10
|
+
} }, { key: "mobileModalCloseButtonTopPadding", get:
|
|
11
|
+
function get() {
|
|
12
|
+
return this.mobileModalCloseButtonClickArea;
|
|
13
|
+
} }]);}(_BasicTheme.BasicThemeClassForExtension), _LightTheme5_.
|
|
14
|
+
mobileModalCloseButtonClickArea = '22px', _LightTheme5_.
|
|
15
|
+
mobileModalBodyPadding = '0 16px 0 16px', _LightTheme5_.
|
|
16
|
+
mobileModalContainerMarginTop = '16px', _LightTheme5_.
|
|
17
|
+
mobileModalContainerMarginRight = '16px', _LightTheme5_.
|
|
18
|
+
mobileModalContainerMarginBottom = '16px', _LightTheme5_.
|
|
19
|
+
mobileModalContainerMarginLeft = '16px', _LightTheme5_.
|
|
20
|
+
|
|
21
|
+
miniModalMarginTopMobile = '16px', _LightTheme5_.
|
|
22
|
+
miniModalMarginLeftMobile = '16px', _LightTheme5_.
|
|
23
|
+
miniModalMarginRightMobile = '16px', _LightTheme5_),
|
|
24
|
+
|
|
25
|
+
prototypeTheme: _LightTheme5_2.LightTheme5_1,
|
|
26
|
+
themeMarkers: [(0, _ThemeHelpers.markThemeVersion)('5.2')]
|
|
27
|
+
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_ThemeHelpers","require","_BasicTheme","_LightTheme5_2","_LightTheme5_","LightTheme5_2","exports","createTheme","themeClass","_BasicThemeClassForEx","apply","arguments","_inheritsLoose2","default","_createClass2","key","get","mobileModalCloseButtonClickArea","BasicThemeClassForExtension","mobileModalBodyPadding","mobileModalContainerMarginTop","mobileModalContainerMarginRight","mobileModalContainerMarginBottom","mobileModalContainerMarginLeft","miniModalMarginTopMobile","miniModalMarginLeftMobile","miniModalMarginRightMobile","prototypeTheme","LightTheme5_1","themeMarkers","markThemeVersion"],"sources":["LightTheme5_2.ts"],"sourcesContent":["import { createTheme, markThemeVersion } from '../../lib/theming/ThemeHelpers';\n\nimport { BasicThemeClassForExtension } from './BasicTheme';\nimport { LightTheme5_1 } from './LightTheme5_1';\n\nexport const LightTheme5_2 = createTheme({\n themeClass: class LightTheme5_2 extends BasicThemeClassForExtension {\n public static get mobileModalCloseButtonRightPadding() {\n return this.mobileModalCloseButtonClickArea;\n }\n public static get mobileModalCloseButtonTopPadding() {\n return this.mobileModalCloseButtonClickArea;\n }\n public static mobileModalCloseButtonClickArea = '22px';\n public static mobileModalBodyPadding = '0 16px 0 16px';\n public static mobileModalContainerMarginTop = '16px';\n public static mobileModalContainerMarginRight = '16px';\n public static mobileModalContainerMarginBottom = '16px';\n public static mobileModalContainerMarginLeft = '16px';\n\n public static miniModalMarginTopMobile = '16px';\n public static miniModalMarginLeftMobile = '16px';\n public static miniModalMarginRightMobile = '16px';\n },\n prototypeTheme: LightTheme5_1,\n themeMarkers: [markThemeVersion('5.2')],\n});\n"],"mappings":"2VAAA,IAAAA,aAAA,GAAAC,OAAA;;AAEA,IAAAC,WAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA,oBAAgD,IAAAG,aAAA;;AAEzC,IAAMC,aAAa,GAAAC,OAAA,CAAAD,aAAA,GAAG,IAAAE,yBAAW,EAAC;EACvCC,UAAU,GAAAJ,aAAA,0BAAAK,qBAAA,YAAAJ,cAAA,UAAAI,qBAAA,CAAAC,KAAA,OAAAC,SAAA,eAAAC,eAAA,CAAAC,OAAA,EAAAR,aAAA,EAAAI,qBAAA,aAAAK,aAAA,CAAAD,OAAA,EAAAR,aAAA,WAAAU,GAAA,wCAAAC,GAAA;MACR,SAAAA,IAAA,EAAuD;QACrD,OAAO,IAAI,CAACC,+BAA+B;MAC7C,CAAC,MAAAF,GAAA,sCAAAC,GAAA;MACD,SAAAA,IAAA,EAAqD;QACnD,OAAO,IAAI,CAACC,+BAA+B;MAC7C,CAAC,OANqCC,uCAA2B,GAAAd,aAAA;EAOnDa,+BAA+B,GAAG,MAAM,EAAAb,aAAA;EACxCe,sBAAsB,GAAG,eAAe,EAAAf,aAAA;EACxCgB,6BAA6B,GAAG,MAAM,EAAAhB,aAAA;EACtCiB,+BAA+B,GAAG,MAAM,EAAAjB,aAAA;EACxCkB,gCAAgC,GAAG,MAAM,EAAAlB,aAAA;EACzCmB,8BAA8B,GAAG,MAAM,EAAAnB,aAAA;;EAEvCoB,wBAAwB,GAAG,MAAM,EAAApB,aAAA;EACjCqB,yBAAyB,GAAG,MAAM,EAAArB,aAAA;EAClCsB,0BAA0B,GAAG,MAAM,EAAAtB,aAAA,CAClD;;EACDuB,cAAc,EAAEC,4BAAa;EAC7BC,YAAY,EAAE,CAAC,IAAAC,8BAAgB,EAAC,KAAK,CAAC;AACxC,CAAC,CAAC","ignoreList":[]}
|
package/cjs/lib/ModalStack.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import type React from 'react';
|
|
2
|
+
import EventEmitter from 'eventemitter3';
|
|
3
|
+
interface StackInfo {
|
|
4
|
+
emitter: EventEmitter;
|
|
5
|
+
mounted: React.Component[];
|
|
6
|
+
}
|
|
2
7
|
export interface ModalStackSubscription {
|
|
3
8
|
remove: () => void;
|
|
4
9
|
}
|
|
@@ -10,6 +15,7 @@ export declare class ModalStack {
|
|
|
10
15
|
* Determines if stack component is allowed to block background
|
|
11
16
|
*/
|
|
12
17
|
static isBlocking(component: React.Component): boolean;
|
|
13
|
-
|
|
18
|
+
static getStackInfo(): StackInfo;
|
|
14
19
|
private static wantsToBlock;
|
|
15
20
|
}
|
|
21
|
+
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_eventemitter","_interopRequireDefault","require","_globalObject","ModalStack","exports","add","component","onChange","_ModalStack$getStackI","getStackInfo","emitter","mounted","unshift","changeHandler","concat","_token","addListener","emit","remove","removeListener","_ModalStack$getStackI2","index","indexOf","splice","rerender","_ModalStack$getStackI3","isBlocking","_ModalStack$getStackI4","length","wantsToBlock","globalWithStack","globalObject","__ReactUIStackInfo","EventEmitter","isModal","isSidePage","props","blockBackground","isReactUIInstance","componentName","instance","constructor","Object","prototype","hasOwnProperty","call","__KONTUR_REACT_UI__"],"sources":["ModalStack.ts"],"sourcesContent":["import type React from 'react';\nimport EventEmitter from 'eventemitter3';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport type { SidePageProps } from '../components/SidePage';\nimport type { ModalProps } from '../components/Modal';\n\ninterface StackInfo {\n emitter: EventEmitter;\n mounted: React.Component[];\n}\n\ninterface GlobalWithStackInfo {\n __ReactUIStackInfo?: StackInfo;\n}\n\nexport interface ModalStackSubscription {\n remove: () => void;\n}\n\nexport class ModalStack {\n public static add(\n component: React.Component,\n onChange: (stack: readonly React.Component[]) => void,\n ): ModalStackSubscription {\n const { emitter, mounted } = ModalStack.getStackInfo();\n mounted.unshift(component);\n const changeHandler = () => onChange([...mounted]);\n const _token = emitter.addListener('change', changeHandler);\n emitter.emit('change');\n return {\n remove: () => {\n // Backwards compatible with versions 0.x and 1.w which using the fbemitter package\n if ('remove' in _token) {\n // @ts-expect-error: `remove` is method of `ModalStack`.\n _token.remove();\n return;\n }\n\n emitter.removeListener('change', changeHandler);\n },\n };\n }\n\n public static remove(component: React.Component) {\n const { emitter, mounted } = ModalStack.getStackInfo();\n const index = mounted.indexOf(component);\n if (index !== -1) {\n mounted.splice(index, 1);\n }\n emitter.emit('change');\n }\n public static rerender() {\n const { emitter } = ModalStack.getStackInfo();\n emitter.emit('change');\n }\n\n /**\n * Determines if stack component is allowed to block background\n */\n public static isBlocking(component: React.Component): boolean {\n const { mounted } = ModalStack.getStackInfo();\n for (let index = 0; index < mounted.length; index++) {\n if (ModalStack.wantsToBlock(mounted[index])) {\n // only the highest component in stack\n // that wants to block is allowed to do it\n return component === mounted[index];\n }\n }\n return false;\n }\n\n
|
|
1
|
+
{"version":3,"names":["_eventemitter","_interopRequireDefault","require","_globalObject","ModalStack","exports","add","component","onChange","_ModalStack$getStackI","getStackInfo","emitter","mounted","unshift","changeHandler","concat","_token","addListener","emit","remove","removeListener","_ModalStack$getStackI2","index","indexOf","splice","rerender","_ModalStack$getStackI3","isBlocking","_ModalStack$getStackI4","length","wantsToBlock","globalWithStack","globalObject","__ReactUIStackInfo","EventEmitter","isModal","isSidePage","props","blockBackground","isReactUIInstance","componentName","instance","constructor","Object","prototype","hasOwnProperty","call","__KONTUR_REACT_UI__"],"sources":["ModalStack.ts"],"sourcesContent":["import type React from 'react';\nimport EventEmitter from 'eventemitter3';\nimport { globalObject } from '@skbkontur/global-object';\n\nimport type { SidePageProps } from '../components/SidePage';\nimport type { ModalProps } from '../components/Modal';\n\ninterface StackInfo {\n emitter: EventEmitter;\n mounted: React.Component[];\n}\n\ninterface GlobalWithStackInfo {\n __ReactUIStackInfo?: StackInfo;\n}\n\nexport interface ModalStackSubscription {\n remove: () => void;\n}\n\nexport class ModalStack {\n public static add(\n component: React.Component,\n onChange: (stack: readonly React.Component[]) => void,\n ): ModalStackSubscription {\n const { emitter, mounted } = ModalStack.getStackInfo();\n mounted.unshift(component);\n const changeHandler = () => onChange([...mounted]);\n const _token = emitter.addListener('change', changeHandler);\n emitter.emit('change');\n return {\n remove: () => {\n // Backwards compatible with versions 0.x and 1.w which using the fbemitter package\n if ('remove' in _token) {\n // @ts-expect-error: `remove` is method of `ModalStack`.\n _token.remove();\n return;\n }\n\n emitter.removeListener('change', changeHandler);\n },\n };\n }\n\n public static remove(component: React.Component) {\n const { emitter, mounted } = ModalStack.getStackInfo();\n const index = mounted.indexOf(component);\n if (index !== -1) {\n mounted.splice(index, 1);\n }\n emitter.emit('change');\n }\n public static rerender() {\n const { emitter } = ModalStack.getStackInfo();\n emitter.emit('change');\n }\n\n /**\n * Determines if stack component is allowed to block background\n */\n public static isBlocking(component: React.Component): boolean {\n const { mounted } = ModalStack.getStackInfo();\n for (let index = 0; index < mounted.length; index++) {\n if (ModalStack.wantsToBlock(mounted[index])) {\n // only the highest component in stack\n // that wants to block is allowed to do it\n return component === mounted[index];\n }\n }\n return false;\n }\n\n public static getStackInfo(): StackInfo {\n const globalWithStack = globalObject as GlobalWithStackInfo;\n return (\n globalWithStack.__ReactUIStackInfo ||\n (globalWithStack.__ReactUIStackInfo = {\n emitter: new EventEmitter(),\n mounted: [],\n })\n );\n }\n\n private static wantsToBlock(component: React.Component): boolean {\n if (isModal(component)) {\n return true;\n }\n\n if (isSidePage(component)) {\n return !!component.props.blockBackground;\n }\n\n return false;\n }\n}\n\n/**\n * Specific check for component type by its instance\n */\nconst isReactUIInstance = <T>(componentName: string) => {\n return (instance: React.Component): instance is React.Component<T> => {\n const { constructor } = instance;\n\n return (\n Object.prototype.hasOwnProperty.call(constructor, '__KONTUR_REACT_UI__') &&\n // @ts-expect-error: React doesn't know about existence of __KONTUR_REACT_UI__.\n constructor.__KONTUR_REACT_UI__ === componentName\n );\n };\n};\n\nconst isSidePage = isReactUIInstance<SidePageProps>('SidePage');\n\nconst isModal = isReactUIInstance<ModalProps>('Modal');\n"],"mappings":";AACA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA,6BAAwD;;;;;;;;;;;;;;;;;;AAkB3CE,UAAU,GAAAC,OAAA,CAAAD,UAAA,sCAAAA,WAAA,IAAAA,UAAA;EACPE,GAAG,GAAjB,SAAAA;EACEC,SAA0B;EAC1BC,QAAqD;EAC7B;IACxB,IAAAC,qBAAA,GAA6BL,UAAU,CAACM,YAAY,CAAC,CAAC,CAA9CC,OAAO,GAAAF,qBAAA,CAAPE,OAAO,CAAEC,OAAO,GAAAH,qBAAA,CAAPG,OAAO;IACxBA,OAAO,CAACC,OAAO,CAACN,SAAS,CAAC;IAC1B,IAAMO,aAAa,GAAG,SAAhBA,aAAaA,CAAA,UAASN,QAAQ,IAAAO,MAAA,CAAKH,OAA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C","ignoreList":[]}
|
|
@@ -7,7 +7,7 @@ export declare class InternalDateGetter {
|
|
|
7
7
|
static getMaxDaysInMonth(month: number, year?: number): number;
|
|
8
8
|
static getValueDateComponent(type: InternalDateComponentType | null, components: InternalDateComponentsRaw): InternalDateComponentRaw;
|
|
9
9
|
static getDefaultMin(type: InternalDateComponentType): number;
|
|
10
|
-
static getDefaultMax(type: InternalDateComponentType | null, components?: InternalDateComponents): number;
|
|
10
|
+
static getDefaultMax(type: InternalDateComponentType | null, components?: InternalDateComponents, dateInputAllowInvalidValuesInDays?: boolean): number;
|
|
11
11
|
static getTodayComponents(): {
|
|
12
12
|
date: number;
|
|
13
13
|
month: number;
|
|
@@ -64,12 +64,19 @@ InternalDateGetter = exports.InternalDateGetter = /*#__PURE__*/function () {func
|
|
|
64
64
|
return _constants.MIN_DATE;
|
|
65
65
|
};InternalDateGetter.
|
|
66
66
|
|
|
67
|
-
getDefaultMax = function getDefaultMax(
|
|
67
|
+
getDefaultMax = function getDefaultMax(
|
|
68
|
+
type,
|
|
69
|
+
components,
|
|
70
|
+
dateInputAllowInvalidValuesInDays)
|
|
71
|
+
{
|
|
68
72
|
if (type === _types.InternalDateComponentType.Year) {
|
|
69
73
|
return _constants.MAX_YEAR;
|
|
70
74
|
} else if (type === _types.InternalDateComponentType.Month) {
|
|
71
75
|
return _constants.MAX_MONTH;
|
|
72
76
|
} else if (type === _types.InternalDateComponentType.Date) {
|
|
77
|
+
if (dateInputAllowInvalidValuesInDays) {
|
|
78
|
+
return _constants.MAX_DATE;
|
|
79
|
+
}
|
|
73
80
|
if (components === undefined) {
|
|
74
81
|
return _constants.MAX_DATE;
|
|
75
82
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_constants","require","_types","calculateMonth","month","getIsLeapYear","year","isDividableByFour","isDividableByOneHundred","isDividableByFourHundred","InternalDateGetter","exports","getMaxDaysInMonth","isLeapYear","calculatedMonth","getValueDateComponent","type","components","InternalDateComponentType","Year","Month","date","getDefaultMin","MIN_YEAR","MIN_MONTH","Date","MIN_DATE","getDefaultMax","MAX_YEAR","MAX_MONTH","
|
|
1
|
+
{"version":3,"names":["_constants","require","_types","calculateMonth","month","getIsLeapYear","year","isDividableByFour","isDividableByOneHundred","isDividableByFourHundred","InternalDateGetter","exports","getMaxDaysInMonth","isLeapYear","calculatedMonth","getValueDateComponent","type","components","InternalDateComponentType","Year","Month","date","getDefaultMin","MIN_YEAR","MIN_MONTH","Date","MIN_DATE","getDefaultMax","dateInputAllowInvalidValuesInDays","MAX_YEAR","MAX_MONTH","MAX_DATE","undefined","getTodayComponents","getDate","getMonth","getFullYear","max","datesCustom","sort","a","b","toNumber","min"],"sources":["InternalDateGetter.ts"],"sourcesContent":["import { MAX_DATE, MAX_MONTH, MAX_YEAR, MIN_DATE, MIN_MONTH, MIN_YEAR } from './constants';\nimport type { InternalDate } from './InternalDate';\nimport type { InternalDateComponentsRaw, InternalDateComponentRaw, InternalDateComponents } from './types';\nimport { InternalDateComponentType } from './types';\n\nconst calculateMonth = (month: number) => {\n if (month <= 7) {\n return month + 1;\n }\n\n return month;\n};\n\nconst getIsLeapYear = (year: number) => {\n // The year is considered leap if it's either dividable by 4, 100 or 400.\n const isDividableByFour = year % 4 === 0;\n const isDividableByOneHundred = year % 100 === 0;\n const isDividableByFourHundred = year % 400 === 0;\n\n return isDividableByFour || isDividableByOneHundred || isDividableByFourHundred;\n};\n\nexport class InternalDateGetter {\n public static max = (datesCustom: InternalDate[]): InternalDate =>\n datesCustom.sort((a, b) => b.toNumber() - a.toNumber())[0];\n\n public static min = (datesCustom: InternalDate[]): InternalDate =>\n datesCustom.sort((a, b) => a.toNumber() - b.toNumber())[0];\n\n public static getMaxDaysInMonth(month: number, year?: number): number {\n if (month === 2) {\n const isLeapYear = year ? getIsLeapYear(year) : false;\n\n return isLeapYear ? 29 : 28;\n }\n\n const calculatedMonth = calculateMonth(month);\n return calculatedMonth % 2 === 0 ? 31 : 30;\n }\n\n public static getValueDateComponent(\n type: InternalDateComponentType | null,\n components: InternalDateComponentsRaw,\n ): InternalDateComponentRaw {\n if (type === InternalDateComponentType.Year) {\n return components.year;\n }\n\n if (type === InternalDateComponentType.Month) {\n return components.month;\n }\n\n return components.date;\n }\n\n public static getDefaultMin(type: InternalDateComponentType): number {\n if (type === InternalDateComponentType.Year) {\n return MIN_YEAR;\n } else if (type === InternalDateComponentType.Month) {\n return MIN_MONTH;\n } else if (type === InternalDateComponentType.Date) {\n return MIN_DATE;\n }\n return MIN_DATE;\n }\n\n public static getDefaultMax(\n type: InternalDateComponentType | null,\n components?: InternalDateComponents,\n dateInputAllowInvalidValuesInDays?: boolean,\n ): number {\n if (type === InternalDateComponentType.Year) {\n return MAX_YEAR;\n } else if (type === InternalDateComponentType.Month) {\n return MAX_MONTH;\n } else if (type === InternalDateComponentType.Date) {\n if (dateInputAllowInvalidValuesInDays) {\n return MAX_DATE;\n }\n if (components === undefined) {\n return MAX_DATE;\n }\n const { year, month } = components;\n return year && month ? InternalDateGetter.getMaxDaysInMonth(month, year) : MAX_DATE;\n }\n return MAX_DATE;\n }\n\n public static getTodayComponents() {\n const date = new Date();\n return {\n date: date.getDate(),\n month: date.getMonth() + 1,\n year: date.getFullYear(),\n };\n }\n}\n"],"mappings":"2EAAA,IAAAA,UAAA,GAAAC,OAAA;;;AAGA,IAAAC,MAAA,GAAAD,OAAA;;AAEA,IAAME,cAAc,GAAG,SAAjBA,cAAcA,CAAIC,KAAa,EAAK;EACxC,IAAIA,KAAK,IAAI,CAAC,EAAE;IACd,OAAOA,KAAK,GAAG,CAAC;EAClB;;EAEA,OAAOA,KAAK;AACd,CAAC;;AAED,IAAMC,aAAa,GAAG,SAAhBA,aAAaA,CAAIC,IAAY,EAAK;EACtC;EACA,IAAMC,iBAAiB,GAAGD,IAAI,GAAG,CAAC,KAAK,CAAC;EACxC,IAAME,uBAAuB,GAAGF,IAAI,GAAG,GAAG,KAAK,CAAC;EAChD,IAAMG,wBAAwB,GAAGH,IAA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UAC9CA,WAAW,CAACC,IAAI,CAAC,UAACC,CAAC,EAAEC,CAAC,UAAKD,CAAC,CAACE,QAAQ,CAAC,CAAC,GAAGD,CAAC,CAACC,QAAQ,CAAC,CAAC,GAAC,CAAC,CAAC,CAAC","ignoreList":[]}
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { ReactUIFeatureFlags } from './ReactUIFeatureFlagsContext';
|
|
2
2
|
export declare const getFullReactUIFlagsContext: (flags: ReactUIFeatureFlags) => {
|
|
3
|
+
dateInputFixSameNumberTypingOnRefocus?: boolean | undefined;
|
|
4
|
+
dateInputAllowInvalidValuesInDays?: boolean | undefined;
|
|
3
5
|
comboBoxAllowValueChangeInEditingState?: boolean | undefined;
|
|
4
6
|
stickyReduceLayoutEvents?: boolean | undefined;
|
|
7
|
+
radioGroupRemoveBaselineSpacer?: boolean | undefined;
|
|
5
8
|
};
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export interface ReactUIFeatureFlags {
|
|
3
|
+
dateInputFixSameNumberTypingOnRefocus?: boolean;
|
|
4
|
+
dateInputAllowInvalidValuesInDays?: boolean;
|
|
3
5
|
comboBoxAllowValueChangeInEditingState?: boolean;
|
|
4
6
|
stickyReduceLayoutEvents?: boolean;
|
|
7
|
+
radioGroupRemoveBaselineSpacer?: boolean;
|
|
5
8
|
}
|
|
6
9
|
export declare const reactUIFeatureFlagsDefault: ReactUIFeatureFlags;
|
|
7
10
|
export declare const ReactUIFeatureFlagsContext: React.Context<ReactUIFeatureFlags>;
|
|
@@ -5,9 +5,15 @@
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
8
11
|
var reactUIFeatureFlagsDefault = exports.reactUIFeatureFlagsDefault = {
|
|
12
|
+
dateInputFixSameNumberTypingOnRefocus: false,
|
|
13
|
+
dateInputAllowInvalidValuesInDays: false,
|
|
9
14
|
comboBoxAllowValueChangeInEditingState: false,
|
|
10
|
-
stickyReduceLayoutEvents: false
|
|
15
|
+
stickyReduceLayoutEvents: false,
|
|
16
|
+
radioGroupRemoveBaselineSpacer: false
|
|
11
17
|
};
|
|
12
18
|
|
|
13
19
|
var ReactUIFeatureFlagsContext = exports.ReactUIFeatureFlagsContext = /*#__PURE__*/_react.default.createContext(reactUIFeatureFlagsDefault);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","reactUIFeatureFlagsDefault","exports","comboBoxAllowValueChangeInEditingState","stickyReduceLayoutEvents","ReactUIFeatureFlagsContext","React","createContext","displayName","__KONTUR_REACT_UI__"],"sources":["ReactUIFeatureFlagsContext.tsx"],"sourcesContent":["import React from 'react';\n\nexport interface ReactUIFeatureFlags {\n comboBoxAllowValueChangeInEditingState?: boolean;\n stickyReduceLayoutEvents?: boolean;\n}\n\nexport const reactUIFeatureFlagsDefault: ReactUIFeatureFlags = {\n comboBoxAllowValueChangeInEditingState: false,\n stickyReduceLayoutEvents: false,\n};\n\nexport const ReactUIFeatureFlagsContext = React.createContext<ReactUIFeatureFlags>(reactUIFeatureFlagsDefault);\n\nReactUIFeatureFlagsContext.displayName = 'ReactUIFeatureFlagsContext';\nReactUIFeatureFlagsContext.__KONTUR_REACT_UI__ = 'ReactUIFeatureFlagsContext';\n"],"mappings":"qNAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA
|
|
1
|
+
{"version":3,"names":["_react","_interopRequireDefault","require","reactUIFeatureFlagsDefault","exports","dateInputFixSameNumberTypingOnRefocus","dateInputAllowInvalidValuesInDays","comboBoxAllowValueChangeInEditingState","stickyReduceLayoutEvents","radioGroupRemoveBaselineSpacer","ReactUIFeatureFlagsContext","React","createContext","displayName","__KONTUR_REACT_UI__"],"sources":["ReactUIFeatureFlagsContext.tsx"],"sourcesContent":["import React from 'react';\n\nexport interface ReactUIFeatureFlags {\n dateInputFixSameNumberTypingOnRefocus?: boolean;\n dateInputAllowInvalidValuesInDays?: boolean;\n comboBoxAllowValueChangeInEditingState?: boolean;\n stickyReduceLayoutEvents?: boolean;\n radioGroupRemoveBaselineSpacer?: boolean;\n}\n\nexport const reactUIFeatureFlagsDefault: ReactUIFeatureFlags = {\n dateInputFixSameNumberTypingOnRefocus: false,\n dateInputAllowInvalidValuesInDays: false,\n comboBoxAllowValueChangeInEditingState: false,\n stickyReduceLayoutEvents: false,\n radioGroupRemoveBaselineSpacer: false,\n};\n\nexport const ReactUIFeatureFlagsContext = React.createContext<ReactUIFeatureFlags>(reactUIFeatureFlagsDefault);\n\nReactUIFeatureFlagsContext.displayName = 'ReactUIFeatureFlagsContext';\nReactUIFeatureFlagsContext.__KONTUR_REACT_UI__ = 'ReactUIFeatureFlagsContext';\n"],"mappings":"qNAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;;;;;;;;;;AAUO,IAAMC,0BAA+C,GAAAC,OAAA,CAAAD,0BAAA,GAAG;EAC7DE,qCAAqC,EAAE,KAAK;EAC5CC,iCAAiC,EAAE,KAAK;EACxCC,sCAAsC,EAAE,KAAK;EAC7CC,wBAAwB,EAAE,KAAK;EAC/BC,8BAA8B,EAAE;AAClC,CAAC;;AAEM,IAAMC,0BAA0B,GAAAN,OAAA,CAAAM,0BAAA,gBAAGC,cAAK,CAACC,aAAa,CAAsBT,0BAA0B,CAAC;;AAE9GO,0BAA0B,CAACG,WAAW,GAAG,4BAA4B;AACrEH,0BAA0B,CAACI,mBAAmB,GAAG,4BAA4B","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["parseThemeVersion","exports","str","separator","match","RegExp","major","minor","Number","parseVersionFromThemeName","name","isThemeVersionGTE","v1","v2","parsedV1","parsedV2"],"sources":["ThemeVersions.ts"],"sourcesContent":["export type ThemeVersions = '5.0' | '5.1';\nexport interface ThemeVersionParsed {\n major: number;\n minor: number;\n}\n\n/**\n * Converts a string theme version to the object with numbers\n * @param str A string with version (e.g. \"1.0\")\n * @param [separator=\".\"] Optional major and minor string separator. By default is \".\"\n * @returns An object of type { major: number; minor: number } or null, if the given string is invalid\n */\nexport const parseThemeVersion = (str: string, separator: string = '\\\\.'): ThemeVersionParsed | null => {\n const match = str.match(new RegExp(`(\\\\d+)${separator}(\\\\d+)`));\n const major = match?.[1];\n const minor = match?.[2];\n\n if (!major || !minor) {\n return null;\n }\n\n return {\n major: Number(major),\n minor: Number(minor),\n };\n};\n\n/**\n * Extracts a version from a theme name\n * @param name A string theme name (e.g. \"LIGHT_THEME_1_0\")\n * @returns An object of type { major: number; minor: number } or null, if the given string is invalid or contains no version\n */\nexport const parseVersionFromThemeName = (name: string): ThemeVersionParsed | null => {\n return parseThemeVersion(name, '_');\n};\n\n/**\n * Checks if one string theme version is \"greater or equal\" than another one\n * @param v1 The version being compared (e.g. \"1.0\")\n * @param v2 The version being compared to (e.g. \"2.0\")\n * @returns Boolean result\n */\nexport const isThemeVersionGTE = (v1: ThemeVersions, v2: ThemeVersions): boolean => {\n const parsedV1 = parseThemeVersion(v1);\n const parsedV2 = parseThemeVersion(v2);\n\n if (!parsedV1 || !parsedV2) {\n return false;\n }\n\n if (parsedV1.major > parsedV2.major) {\n return true;\n } else if (parsedV1.major === parsedV2.major) {\n return parsedV1.minor >= parsedV2.minor;\n }\n\n return false;\n};\n"],"mappings":";;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,SAApBA,iBAAiBA,CAAIE,GAAW,EAAEC,SAAiB,EAAwC,KAAzDA,SAAiB,cAAjBA,SAAiB,GAAG,KAAK;EACtE,IAAMC,KAAK,GAAGF,GAAG,CAACE,KAAK,CAAC,IAAIC,MAAM,YAAUF,SAAS,WAAQ,CAAC,CAAC;EAC/D,IAAMG,KAAK,GAAGF,KAAK,oBAALA,KAAK,CAAG,CAAC,CAAC;EACxB,IAAMG,KAAK,GAAGH,KAAK,oBAALA,KAAK,CAAG,CAAC,CAAC;;EAExB,IAAI,CAACE,KAAK,IAAI,CAACC,KAAK,EAAE;IACpB,OAAO,IAAI;EACb;;EAEA,OAAO;IACLD,KAAK,EAAEE,MAAM,CAACF,KAAK,CAAC;IACpBC,KAAK,EAAEC,MAAM,CAACD,KAAK;EACrB,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACO,IAAME,yBAAyB,GAAAR,OAAA,CAAAQ,yBAAA,GAAG,SAA5BA,yBAAyBA,CAAIC,IAAY,EAAgC;EACpF,OAAOV,iBAAiB,CAACU,IAAI,EAAE,GAAG,CAAC;AACrC,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,IAAMC,iBAAiB,GAAAV,OAAA,CAAAU,iBAAA,GAAG,SAApBA,iBAAiBA,CAAIC,EAAiB,EAAEC,EAAiB,EAAc;EAClF,IAAMC,QAAQ,GAAGd,iBAAiB,CAACY,EAAE,CAAC;EACtC,IAAMG,QAAQ,GAAGf,iBAAiB,CAACa,EAAE,CAAC;;EAEtC,IAAI,CAACC,QAAQ,IAAI,CAACC,QAAQ,EAAE;IAC1B,OAAO,KAAK;EACd;;EAEA,IAAID,QAAQ,CAACR,KAAK,GAAGS,QAAQ,CAACT,KAAK,EAAE;IACnC,OAAO,IAAI;EACb,CAAC,MAAM,IAAIQ,QAAQ,CAACR,KAAK,KAAKS,QAAQ,CAACT,KAAK,EAAE;IAC5C,OAAOQ,QAAQ,CAACP,KAAK,IAAIQ,QAAQ,CAACR,KAAK;EACzC;;EAEA,OAAO,KAAK;AACd,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"names":["parseThemeVersion","exports","str","separator","match","RegExp","major","minor","Number","parseVersionFromThemeName","name","isThemeVersionGTE","v1","v2","parsedV1","parsedV2"],"sources":["ThemeVersions.ts"],"sourcesContent":["export type ThemeVersions = '5.0' | '5.1' | '5.2';\nexport interface ThemeVersionParsed {\n major: number;\n minor: number;\n}\n\n/**\n * Converts a string theme version to the object with numbers\n * @param str A string with version (e.g. \"1.0\")\n * @param [separator=\".\"] Optional major and minor string separator. By default is \".\"\n * @returns An object of type { major: number; minor: number } or null, if the given string is invalid\n */\nexport const parseThemeVersion = (str: string, separator: string = '\\\\.'): ThemeVersionParsed | null => {\n const match = str.match(new RegExp(`(\\\\d+)${separator}(\\\\d+)`));\n const major = match?.[1];\n const minor = match?.[2];\n\n if (!major || !minor) {\n return null;\n }\n\n return {\n major: Number(major),\n minor: Number(minor),\n };\n};\n\n/**\n * Extracts a version from a theme name\n * @param name A string theme name (e.g. \"LIGHT_THEME_1_0\")\n * @returns An object of type { major: number; minor: number } or null, if the given string is invalid or contains no version\n */\nexport const parseVersionFromThemeName = (name: string): ThemeVersionParsed | null => {\n return parseThemeVersion(name, '_');\n};\n\n/**\n * Checks if one string theme version is \"greater or equal\" than another one\n * @param v1 The version being compared (e.g. \"1.0\")\n * @param v2 The version being compared to (e.g. \"2.0\")\n * @returns Boolean result\n */\nexport const isThemeVersionGTE = (v1: ThemeVersions, v2: ThemeVersions): boolean => {\n const parsedV1 = parseThemeVersion(v1);\n const parsedV2 = parseThemeVersion(v2);\n\n if (!parsedV1 || !parsedV2) {\n return false;\n }\n\n if (parsedV1.major > parsedV2.major) {\n return true;\n } else if (parsedV1.major === parsedV2.major) {\n return parsedV1.minor >= parsedV2.minor;\n }\n\n return false;\n};\n"],"mappings":";;;;;;AAMA;AACA;AACA;AACA;AACA;AACA;AACO,IAAMA,iBAAiB,GAAAC,OAAA,CAAAD,iBAAA,GAAG,SAApBA,iBAAiBA,CAAIE,GAAW,EAAEC,SAAiB,EAAwC,KAAzDA,SAAiB,cAAjBA,SAAiB,GAAG,KAAK;EACtE,IAAMC,KAAK,GAAGF,GAAG,CAACE,KAAK,CAAC,IAAIC,MAAM,YAAUF,SAAS,WAAQ,CAAC,CAAC;EAC/D,IAAMG,KAAK,GAAGF,KAAK,oBAALA,KAAK,CAAG,CAAC,CAAC;EACxB,IAAMG,KAAK,GAAGH,KAAK,oBAALA,KAAK,CAAG,CAAC,CAAC;;EAExB,IAAI,CAACE,KAAK,IAAI,CAACC,KAAK,EAAE;IACpB,OAAO,IAAI;EACb;;EAEA,OAAO;IACLD,KAAK,EAAEE,MAAM,CAACF,KAAK,CAAC;IACpBC,KAAK,EAAEC,MAAM,CAACD,KAAK;EACrB,CAAC;AACH,CAAC;;AAED;AACA;AACA;AACA;AACA;AACO,IAAME,yBAAyB,GAAAR,OAAA,CAAAQ,yBAAA,GAAG,SAA5BA,yBAAyBA,CAAIC,IAAY,EAAgC;EACpF,OAAOV,iBAAiB,CAACU,IAAI,EAAE,GAAG,CAAC;AACrC,CAAC;;AAED;AACA;AACA;AACA;AACA;AACA;AACO,IAAMC,iBAAiB,GAAAV,OAAA,CAAAU,iBAAA,GAAG,SAApBA,iBAAiBA,CAAIC,EAAiB,EAAEC,EAAiB,EAAc;EAClF,IAAMC,QAAQ,GAAGd,iBAAiB,CAACY,EAAE,CAAC;EACtC,IAAMG,QAAQ,GAAGf,iBAAiB,CAACa,EAAE,CAAC;;EAEtC,IAAI,CAACC,QAAQ,IAAI,CAACC,QAAQ,EAAE;IAC1B,OAAO,KAAK;EACd;;EAEA,IAAID,QAAQ,CAACR,KAAK,GAAGS,QAAQ,CAACT,KAAK,EAAE;IACnC,OAAO,IAAI;EACb,CAAC,MAAM,IAAIQ,QAAQ,CAACR,KAAK,KAAKS,QAAQ,CAACT,KAAK,EAAE;IAC5C,OAAOQ,QAAQ,CAACP,KAAK,IAAIQ,QAAQ,CAACR,KAAK;EACzC;;EAEA,OAAO,KAAK;AACd,CAAC","ignoreList":[]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const DARK_THEME_5_0: Readonly<typeof import("../../../internal/themes/BasicTheme").BasicThemeClass>;
|
|
2
2
|
export declare const DARK_THEME_5_1: Readonly<typeof import("../../../internal/themes/BasicTheme").BasicThemeClass>;
|
|
3
|
+
export declare const DARK_THEME_5_2: Readonly<typeof import("../../../internal/themes/BasicTheme").BasicThemeClass>;
|
|
3
4
|
export declare const DARK_THEME: Readonly<typeof import("../../../internal/themes/BasicTheme").BasicThemeClass>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
"use strict";exports.__esModule = true;exports.DARK_THEME_5_1 = exports.DARK_THEME_5_0 = exports.DARK_THEME = void 0;var _DarkTheme5_ = require("../../../internal/themes/DarkTheme5_0");
|
|
1
|
+
"use strict";exports.__esModule = true;exports.DARK_THEME_5_2 = exports.DARK_THEME_5_1 = exports.DARK_THEME_5_0 = exports.DARK_THEME = void 0;var _DarkTheme5_ = require("../../../internal/themes/DarkTheme5_0");
|
|
2
2
|
var _DarkTheme5_2 = require("../../../internal/themes/DarkTheme5_1");
|
|
3
|
+
var _DarkTheme5_3 = require("../../../internal/themes/DarkTheme5_2");
|
|
3
4
|
|
|
4
5
|
var DARK_THEME_5_0 = exports.DARK_THEME_5_0 = _DarkTheme5_.DarkTheme5_0;
|
|
5
6
|
var DARK_THEME_5_1 = exports.DARK_THEME_5_1 = _DarkTheme5_2.DarkTheme5_1;
|
|
7
|
+
var DARK_THEME_5_2 = exports.DARK_THEME_5_2 = _DarkTheme5_3.DarkTheme5_2;
|
|
6
8
|
|
|
7
|
-
var DARK_THEME = exports.DARK_THEME =
|
|
9
|
+
var DARK_THEME = exports.DARK_THEME = DARK_THEME_5_2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_DarkTheme5_","require","_DarkTheme5_2","DARK_THEME_5_0","exports","DarkTheme5_0","DARK_THEME_5_1","DarkTheme5_1","DARK_THEME"],"sources":["DarkTheme.ts"],"sourcesContent":["import { DarkTheme5_0 } from '../../../internal/themes/DarkTheme5_0';\nimport { DarkTheme5_1 } from '../../../internal/themes/DarkTheme5_1';\n\nexport const DARK_THEME_5_0 = DarkTheme5_0;\nexport const DARK_THEME_5_1 = DarkTheme5_1;\n\nexport const DARK_THEME =
|
|
1
|
+
{"version":3,"names":["_DarkTheme5_","require","_DarkTheme5_2","_DarkTheme5_3","DARK_THEME_5_0","exports","DarkTheme5_0","DARK_THEME_5_1","DarkTheme5_1","DARK_THEME_5_2","DarkTheme5_2","DARK_THEME"],"sources":["DarkTheme.ts"],"sourcesContent":["import { DarkTheme5_0 } from '../../../internal/themes/DarkTheme5_0';\nimport { DarkTheme5_1 } from '../../../internal/themes/DarkTheme5_1';\nimport { DarkTheme5_2 } from '../../../internal/themes/DarkTheme5_2';\n\nexport const DARK_THEME_5_0 = DarkTheme5_0;\nexport const DARK_THEME_5_1 = DarkTheme5_1;\nexport const DARK_THEME_5_2 = DarkTheme5_2;\n\nexport const DARK_THEME = DARK_THEME_5_2;\n"],"mappings":"8IAAA,IAAAA,YAAA,GAAAC,OAAA;AACA,IAAAC,aAAA,GAAAD,OAAA;AACA,IAAAE,aAAA,GAAAF,OAAA;;AAEO,IAAMG,cAAc,GAAAC,OAAA,CAAAD,cAAA,GAAGE,yBAAY;AACnC,IAAMC,cAAc,GAAAF,OAAA,CAAAE,cAAA,GAAGC,0BAAY;AACnC,IAAMC,cAAc,GAAAJ,OAAA,CAAAI,cAAA,GAAGC,0BAAY;;AAEnC,IAAMC,UAAU,GAAAN,OAAA,CAAAM,UAAA,GAAGF,cAAc","ignoreList":[]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
export declare const LIGHT_THEME_5_0: Readonly<typeof import("../../../internal/themes/BasicTheme").BasicThemeClass>;
|
|
2
2
|
export declare const LIGHT_THEME_5_1: Readonly<typeof import("../../../internal/themes/BasicTheme").BasicThemeClass>;
|
|
3
|
+
export declare const LIGHT_THEME_5_2: Readonly<typeof import("../../../internal/themes/BasicTheme").BasicThemeClass>;
|
|
3
4
|
export declare const LIGHT_THEME: Readonly<typeof import("../../../internal/themes/BasicTheme").BasicThemeClass>;
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
"use strict";exports.__esModule = true;exports.LIGHT_THEME_5_1 = exports.LIGHT_THEME_5_0 = exports.LIGHT_THEME = void 0;var _LightTheme5_ = require("../../../internal/themes/LightTheme5_0");
|
|
1
|
+
"use strict";exports.__esModule = true;exports.LIGHT_THEME_5_2 = exports.LIGHT_THEME_5_1 = exports.LIGHT_THEME_5_0 = exports.LIGHT_THEME = void 0;var _LightTheme5_ = require("../../../internal/themes/LightTheme5_0");
|
|
2
2
|
var _LightTheme5_2 = require("../../../internal/themes/LightTheme5_1");
|
|
3
|
+
var _LightTheme5_3 = require("../../../internal/themes/LightTheme5_2");
|
|
3
4
|
|
|
4
5
|
var LIGHT_THEME_5_0 = exports.LIGHT_THEME_5_0 = _LightTheme5_.LightTheme5_0;
|
|
5
6
|
var LIGHT_THEME_5_1 = exports.LIGHT_THEME_5_1 = _LightTheme5_2.LightTheme5_1;
|
|
7
|
+
var LIGHT_THEME_5_2 = exports.LIGHT_THEME_5_2 = _LightTheme5_3.LightTheme5_2;
|
|
6
8
|
|
|
7
|
-
var LIGHT_THEME = exports.LIGHT_THEME =
|
|
9
|
+
var LIGHT_THEME = exports.LIGHT_THEME = LIGHT_THEME_5_2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["_LightTheme5_","require","_LightTheme5_2","LIGHT_THEME_5_0","exports","LightTheme5_0","LIGHT_THEME_5_1","LightTheme5_1","LIGHT_THEME"],"sources":["LightTheme.ts"],"sourcesContent":["import { LightTheme5_0 } from '../../../internal/themes/LightTheme5_0';\nimport { LightTheme5_1 } from '../../../internal/themes/LightTheme5_1';\n\nexport const LIGHT_THEME_5_0 = LightTheme5_0;\nexport const LIGHT_THEME_5_1 = LightTheme5_1;\n\nexport const LIGHT_THEME =
|
|
1
|
+
{"version":3,"names":["_LightTheme5_","require","_LightTheme5_2","_LightTheme5_3","LIGHT_THEME_5_0","exports","LightTheme5_0","LIGHT_THEME_5_1","LightTheme5_1","LIGHT_THEME_5_2","LightTheme5_2","LIGHT_THEME"],"sources":["LightTheme.ts"],"sourcesContent":["import { LightTheme5_0 } from '../../../internal/themes/LightTheme5_0';\nimport { LightTheme5_1 } from '../../../internal/themes/LightTheme5_1';\nimport { LightTheme5_2 } from '../../../internal/themes/LightTheme5_2';\n\nexport const LIGHT_THEME_5_0 = LightTheme5_0;\nexport const LIGHT_THEME_5_1 = LightTheme5_1;\nexport const LIGHT_THEME_5_2 = LightTheme5_2;\n\nexport const LIGHT_THEME = LIGHT_THEME_5_2;\n"],"mappings":"kJAAA,IAAAA,aAAA,GAAAC,OAAA;AACA,IAAAC,cAAA,GAAAD,OAAA;AACA,IAAAE,cAAA,GAAAF,OAAA;;AAEO,IAAMG,eAAe,GAAAC,OAAA,CAAAD,eAAA,GAAGE,2BAAa;AACrC,IAAMC,eAAe,GAAAF,OAAA,CAAAE,eAAA,GAAGC,4BAAa;AACrC,IAAMC,eAAe,GAAAJ,OAAA,CAAAI,eAAA,GAAGC,4BAAa;;AAErC,IAAMC,WAAW,GAAAN,OAAA,CAAAM,WAAA,GAAGF,eAAe","ignoreList":[]}
|
|
@@ -4,6 +4,7 @@ import React from 'react';
|
|
|
4
4
|
import { MAX_SAFE_DIGITS } from "../../CurrencyInput/constants";
|
|
5
5
|
import { CurrencyHelper } from "../../CurrencyInput/CurrencyHelper";
|
|
6
6
|
import { CommonWrapper } from "../../../internal/CommonWrapper";
|
|
7
|
+
import { forwardRefAndName } from "../../../lib/forwardRefAndName";
|
|
7
8
|
var FRACTION_DIGITS_DEFAULT = 2;
|
|
8
9
|
export var CurrencyLabelDataTids = {
|
|
9
10
|
root: 'CurrencyLabel__root'
|
|
@@ -12,7 +13,7 @@ export var CurrencyLabelDataTids = {
|
|
|
12
13
|
/**
|
|
13
14
|
* `CurrencyLabel` — подпись для денежных сумм (и других числовых значений).
|
|
14
15
|
*/
|
|
15
|
-
|
|
16
|
+
var CurrencyLabel = forwardRefAndName('CurrencyLabel', function CurrencyLabel(_ref, ref) {
|
|
16
17
|
var id = _ref.id,
|
|
17
18
|
value = _ref.value,
|
|
18
19
|
_ref$fractionDigits = _ref.fractionDigits,
|
|
@@ -25,16 +26,16 @@ export var CurrencyLabel = function CurrencyLabel(_ref) {
|
|
|
25
26
|
React.createElement(CommonWrapper, rest, /*#__PURE__*/
|
|
26
27
|
React.createElement("span", {
|
|
27
28
|
id: id,
|
|
28
|
-
"data-tid": CurrencyLabelDataTids.root
|
|
29
|
+
"data-tid": CurrencyLabelDataTids.root,
|
|
30
|
+
ref: ref
|
|
29
31
|
}, CurrencyHelper.format(value, {
|
|
30
32
|
fractionDigits: fractionDigits,
|
|
31
33
|
hideTrailingZeros: hideTrailingZeros
|
|
32
34
|
}), currencySymbol && String.fromCharCode(0xa0) /* */, currencySymbol))
|
|
33
35
|
);
|
|
34
|
-
};
|
|
35
|
-
CurrencyLabel.__KONTUR_REACT_UI__ = 'CurrencyLabel';
|
|
36
|
-
CurrencyLabel.displayName = 'CurrencyLabel';
|
|
36
|
+
});
|
|
37
37
|
CurrencyLabel.propTypes = {
|
|
38
|
+
// @ts-ignore
|
|
38
39
|
fractionDigits: function fractionDigits(_ref2) {
|
|
39
40
|
var _ref2$fractionDigits = _ref2.fractionDigits,
|
|
40
41
|
_fractionDigits = _ref2$fractionDigits === void 0 ? FRACTION_DIGITS_DEFAULT : _ref2$fractionDigits,
|
|
@@ -54,4 +55,5 @@ CurrencyLabel.propTypes = {
|
|
|
54
55
|
}
|
|
55
56
|
return null;
|
|
56
57
|
}
|
|
57
|
-
};
|
|
58
|
+
};
|
|
59
|
+
export { CurrencyLabel };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["React","MAX_SAFE_DIGITS","CurrencyHelper","CommonWrapper","FRACTION_DIGITS_DEFAULT","CurrencyLabelDataTids","root","CurrencyLabel","_ref","id","value","_ref$fractionDigits","fractionDigits","currencySymbol","_ref$hideTrailingZero","hideTrailingZeros","rest","_objectWithoutPropertiesLoose","_excluded","createElement","format","String","fromCharCode","
|
|
1
|
+
{"version":3,"names":["React","MAX_SAFE_DIGITS","CurrencyHelper","CommonWrapper","forwardRefAndName","FRACTION_DIGITS_DEFAULT","CurrencyLabelDataTids","root","CurrencyLabel","_ref","ref","id","value","_ref$fractionDigits","fractionDigits","currencySymbol","_ref$hideTrailingZero","hideTrailingZeros","rest","_objectWithoutPropertiesLoose","_excluded","createElement","format","String","fromCharCode","propTypes","_ref2","_ref2$fractionDigits","Error","_ref3","destructString","fraction","length","Number","isInteger"],"sources":["CurrencyLabel.tsx"],"sourcesContent":["import type { HTMLAttributes } from 'react';\nimport React from 'react';\n\nimport { MAX_SAFE_DIGITS } from '../CurrencyInput/constants';\nimport { CurrencyHelper } from '../CurrencyInput/CurrencyHelper';\nimport type { CommonProps } from '../../internal/CommonWrapper';\nimport { CommonWrapper } from '../../internal/CommonWrapper';\nimport { forwardRefAndName } from '../../lib/forwardRefAndName';\n\nexport interface CurrencyLabelProps extends CommonProps, Pick<HTMLAttributes<HTMLElement>, 'id'> {\n /** Устанавливает минимальное количество отображаемых знаков после запятой.\n * @default 2 */\n fractionDigits?: number;\n\n /** Устанавливает значение. */\n value: number;\n\n /** Задает символ валюты. */\n currencySymbol?: React.ReactNode;\n\n /** Убирает лишние нули после запятой. */\n hideTrailingZeros?: boolean;\n}\n\nconst FRACTION_DIGITS_DEFAULT = 2;\n\nexport const CurrencyLabelDataTids = {\n root: 'CurrencyLabel__root',\n} as const;\n\n/**\n * `CurrencyLabel` — подпись для денежных сумм (и других числовых значений).\n */\nconst CurrencyLabel = forwardRefAndName(\n 'CurrencyLabel',\n function CurrencyLabel(\n {\n id,\n value,\n fractionDigits = FRACTION_DIGITS_DEFAULT,\n currencySymbol,\n hideTrailingZeros = false,\n ...rest\n }: CurrencyLabelProps,\n ref: React.Ref<HTMLDivElement>,\n ) {\n return (\n <CommonWrapper {...rest}>\n <span id={id} data-tid={CurrencyLabelDataTids.root} ref={ref}>\n {CurrencyHelper.format(value, { fractionDigits, hideTrailingZeros })}\n {currencySymbol && String.fromCharCode(0xa0) /* */}\n {currencySymbol}\n </span>\n </CommonWrapper>\n );\n },\n);\n\nCurrencyLabel.propTypes = {\n // @ts-ignore\n fractionDigits: ({ fractionDigits = FRACTION_DIGITS_DEFAULT, value }: CurrencyLabelProps) => {\n if (fractionDigits > MAX_SAFE_DIGITS) {\n return new Error(\n `[CurrencyLabel]: Prop 'fractionDigits' exceeds ${MAX_SAFE_DIGITS}.` +\n `\\nSee https://tech.skbkontur.ru/react-ui/#/CurrencyInput?id=why15`,\n );\n }\n\n const { fraction } = CurrencyHelper.destructString(String(value)) || { fraction: '' };\n if (fraction.length > fractionDigits) {\n return new Error(\n `[CurrencyLabel]: Prop 'fractionDigits' less than fractional part of the 'value' property,` +\n `'value' will not be cutted`,\n );\n }\n\n if (!Number.isInteger(fractionDigits)) {\n return new Error(\n `[CurrencyLabel]: Prop 'fractionDigits' is not integer, fraction part of these property will not be used`,\n );\n }\n return null;\n },\n};\n\nexport { CurrencyLabel };\n"],"mappings":";AACA,OAAOA,KAAK,MAAM,OAAO;;AAEzB,SAASC,eAAe,QAAQ,4BAA4B;AAC5D,SAASC,cAAc,QAAQ,iCAAiC;;AAEhE,SAASC,aAAa,QAAQ,8BAA8B;AAC5D,SAASC,iBAAiB,QAAQ,6BAA6B;;;;;;;;;;;;;;;;;AAiB/D,IAAMC,uBAAuB,GAAG,CAAC;;AAEjC,OAAO,IAAMC,qBAAqB,GAAG;EACnCC,IAAI,EAAE;AACR,CAAU;;AAEV;AACA;AACA;AACA,IAAMC,aAAa,GAAGJ,iBAAiB;EACrC,eAAe;EACf,SAASI,aAAaA,CAAAC,IAAA;;;;;;;;;EASpBC,GAA8B;EAC9B,KAREC,EAAE,GAAAF,IAAA,CAAFE,EAAE,CACFC,KAAK,GAAAH,IAAA,CAALG,KAAK,CAAAC,mBAAA,GAAAJ,IAAA,CACLK,cAAc,CAAdA,cAAc,GAAAD,mBAAA,cAAGR,uBAAuB,GAAAQ,mBAAA,CACxCE,cAAc,GAAAN,IAAA,CAAdM,cAAc,CAAAC,qBAAA,GAAAP,IAAA,CACdQ,iBAAiB,CAAjBA,iBAAiB,GAAAD,qBAAA,cAAG,KAAK,GAAA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AAa","ignoreList":[]}
|
|
@@ -18,11 +18,5 @@ export declare const CurrencyLabelDataTids: {
|
|
|
18
18
|
/**
|
|
19
19
|
* `CurrencyLabel` — подпись для денежных сумм (и других числовых значений).
|
|
20
20
|
*/
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
__KONTUR_REACT_UI__: string;
|
|
24
|
-
displayName: string;
|
|
25
|
-
propTypes: {
|
|
26
|
-
fractionDigits: ({ fractionDigits, value }: CurrencyLabelProps) => Error | null;
|
|
27
|
-
};
|
|
28
|
-
};
|
|
21
|
+
declare const CurrencyLabel: import("../../lib/forwardRefAndName").ReactUIComponentWithRef<HTMLDivElement, CurrencyLabelProps> & Record<never, never>;
|
|
22
|
+
export { CurrencyLabel };
|
|
@@ -4,6 +4,7 @@ var _dec, _class, _DateInput;
|
|
|
4
4
|
import React from 'react';
|
|
5
5
|
import ReactDOM from 'react-dom';
|
|
6
6
|
import { globalObject } from '@skbkontur/global-object';
|
|
7
|
+
import { getFullReactUIFlagsContext, ReactUIFeatureFlagsContext } from "../../../lib/featureFlagsContext";
|
|
7
8
|
import { ConditionalHandler } from "../../../lib/ConditionalHandler";
|
|
8
9
|
import { LENGTH_FULLDATE, MAX_FULLDATE, MIN_FULLDATE } from "../../../lib/date/constants";
|
|
9
10
|
import { InternalDateComponentType } from "../../../lib/date/types";
|
|
@@ -300,12 +301,14 @@ export var DateInput = (_dec = locale('DatePicker', DatePickerLocaleHelper), roo
|
|
|
300
301
|
selected: selected
|
|
301
302
|
});
|
|
302
303
|
}
|
|
303
|
-
var _this$iDateMediator$i = _this.iDateMediator.inputKey(event.key, selected, _this.state.inputMode),
|
|
304
|
+
var _this$iDateMediator$i = _this.iDateMediator.inputKey(event.key, selected, _this.state.inputMode, _this.featureFlags.dateInputAllowInvalidValuesInDays),
|
|
304
305
|
inputMode = _this$iDateMediator$i.inputMode,
|
|
305
306
|
changed = _this$iDateMediator$i.changed;
|
|
306
|
-
if (!
|
|
307
|
-
|
|
308
|
-
|
|
307
|
+
if (!_this.featureFlags.dateInputFixSameNumberTypingOnRefocus) {
|
|
308
|
+
if (!changed) {
|
|
309
|
+
_this.blink();
|
|
310
|
+
return;
|
|
311
|
+
}
|
|
309
312
|
}
|
|
310
313
|
if (!inputMode) {
|
|
311
314
|
_this.ignoringDelimiter = true;
|
|
@@ -359,9 +362,12 @@ export var DateInput = (_dec = locale('DatePicker', DatePickerLocaleHelper), roo
|
|
|
359
362
|
};
|
|
360
363
|
_proto.render = function render() {
|
|
361
364
|
var _this2 = this;
|
|
362
|
-
return /*#__PURE__*/React.createElement(
|
|
363
|
-
_this2.
|
|
364
|
-
return
|
|
365
|
+
return /*#__PURE__*/React.createElement(ReactUIFeatureFlagsContext.Consumer, null, function (flags) {
|
|
366
|
+
_this2.featureFlags = getFullReactUIFlagsContext(flags);
|
|
367
|
+
return /*#__PURE__*/React.createElement(ThemeContext.Consumer, null, function (theme) {
|
|
368
|
+
_this2.theme = theme;
|
|
369
|
+
return _this2.renderMain();
|
|
370
|
+
});
|
|
365
371
|
});
|
|
366
372
|
};
|
|
367
373
|
_proto.renderMain = function renderMain() {
|