@dreamcommerce/aurora 0.3.4-180 → 0.3.4-184
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/build/cjs/external/react-i18next/dist/es/I18nextProvider.js +21 -0
- package/build/cjs/external/react-i18next/dist/es/I18nextProvider.js.map +1 -0
- package/build/cjs/packages/aurora/src/components/color_picker/index.js +4 -2
- package/build/cjs/packages/aurora/src/components/color_picker/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_color_picker/index.js +18 -16
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_color_picker/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_date_picker/index.js +16 -14
- package/build/cjs/packages/aurora/src/components/controls/hoc/control_date_picker/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/components/modal/hoc/absolute_modal/index.js +27 -5
- package/build/cjs/packages/aurora/src/components/modal/hoc/absolute_modal/index.js.map +1 -1
- package/build/cjs/packages/aurora/src/i18n.js +3 -2
- package/build/cjs/packages/aurora/src/i18n.js.map +1 -1
- package/build/cjs/packages/aurora/src/utilities/translation/with_translation.js +20 -0
- package/build/cjs/packages/aurora/src/utilities/translation/with_translation.js.map +1 -0
- package/build/esm/external/react-i18next/dist/es/I18nextProvider.js +17 -0
- package/build/esm/external/react-i18next/dist/es/I18nextProvider.js.map +1 -0
- package/build/esm/packages/aurora/src/components/color_picker/index.d.ts +1 -1
- package/build/esm/packages/aurora/src/components/color_picker/index.js +4 -2
- package/build/esm/packages/aurora/src/components/color_picker/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/hoc/control_color_picker/index.d.ts +2 -14
- package/build/esm/packages/aurora/src/components/controls/hoc/control_color_picker/index.js +4 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_color_picker/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/controls/hoc/control_date_picker/index.d.ts +3 -3
- package/build/esm/packages/aurora/src/components/controls/hoc/control_date_picker/index.js +4 -2
- package/build/esm/packages/aurora/src/components/controls/hoc/control_date_picker/index.js.map +1 -1
- package/build/esm/packages/aurora/src/components/modal/hoc/absolute_modal/index.js +27 -5
- package/build/esm/packages/aurora/src/components/modal/hoc/absolute_modal/index.js.map +1 -1
- package/build/esm/packages/aurora/src/i18n.d.ts +1 -1
- package/build/esm/packages/aurora/src/i18n.js +4 -2
- package/build/esm/packages/aurora/src/i18n.js.map +1 -1
- package/build/esm/packages/aurora/src/src/assets/css_classes.d.ts +1 -0
- package/build/esm/packages/aurora/src/src/assets/icon.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/assets/icon_arrow.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/assets/icon_calendar.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/assets/icon_close.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/assets/icon_delete.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/assets/icon_hint.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/assets/icon_tick.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/assets/icon_upload.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/assets/types.d.ts +8 -0
- package/build/esm/packages/aurora/src/src/components/button/components/button/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/button/components/button/types.d.ts +5 -0
- package/build/esm/packages/aurora/src/src/components/button/components/index.d.ts +8 -0
- package/build/esm/packages/aurora/src/src/components/button/components/link/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/button/components/link/types.d.ts +7 -0
- package/build/esm/packages/aurora/src/src/components/button/css_classes.d.ts +7 -0
- package/build/esm/packages/aurora/src/src/components/button/index.d.ts +21 -0
- package/build/esm/packages/aurora/src/src/components/button/types.d.ts +11 -0
- package/build/esm/packages/aurora/src/src/components/buttons_group/css_classes.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/buttons_group/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/buttons_group/types.d.ts +6 -0
- package/build/esm/packages/aurora/src/src/components/color_picker/components/buttons.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/color_picker/components/hue_picker.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/color_picker/components/label.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/color_picker/components/saturation_lightness_picker.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/color_picker/constants.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/color_picker/context.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/color_picker/css_classes.d.ts +12 -0
- package/build/esm/packages/aurora/src/src/components/color_picker/index.d.ts +5 -0
- package/build/esm/packages/aurora/src/src/components/color_picker/types.d.ts +59 -0
- package/build/esm/packages/aurora/src/src/components/color_picker/use_color_picker.d.ts +48 -0
- package/build/esm/packages/aurora/src/src/components/color_picker/utilities.d.ts +43 -0
- package/build/esm/packages/aurora/src/src/components/controls/components/cell_selector.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/components/checkbox.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/components/checkbox_switch.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/components/content.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/components/element.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/components/errors.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/controls/components/input.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/components/input_wrapper.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/components/label.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/components/radio.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/components/textarea.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/context.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/css_classes.d.ts +40 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_cell_selector/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_checkbox/index.d.ts +16 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_checkbox_switch/index.d.ts +16 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_color_picker/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_date_picker/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_file_picker/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_input/index.d.ts +19 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_multi_select/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_radio/index.d.ts +16 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_radio_group/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_range/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_select/index.d.ts +19 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_tags_selector/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/hoc/control_textarea/index.d.ts +19 -0
- package/build/esm/packages/aurora/src/src/components/controls/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/controls/types.d.ts +164 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/buttons.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/common_ranges.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/days_grid.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/label.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/month_controller.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/month_year_picker/components/month_view.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/month_year_picker/components/month_year_controller.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/month_year_picker/components/month_year_picker_context_manager.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/month_year_picker/components/month_year_view.d.ts +2 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/month_year_picker/components/years_view.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/month_year_picker/constants.d.ts +2 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/month_year_picker/context.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/month_year_picker/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/month_year_picker/types.d.ts +16 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/pure_date_picker.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/components/single_day.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/constants.d.ts +12 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/context/index.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/context/month_year_navigation_context.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/context/value_controller_context.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/css_classes.d.ts +32 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/hoc/range_picker.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/hoc/single_date_picker.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/hooks/use_animation.d.ts +15 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/hooks/use_date_names.d.ts +10 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/hooks/use_keyboard_navigation.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/hooks/use_value_controller.d.ts +44 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/index.d.ts +7 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/types.d.ts +108 -0
- package/build/esm/packages/aurora/src/src/components/date_picker/utilities.d.ts +49 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/components/content.d.ts +10 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/components/custom_label.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/components/header.d.ts +10 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/components/item.d.ts +10 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/components/label.d.ts +10 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/components/link.d.ts +12 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/components/list.d.ts +12 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/components/option.d.ts +22 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/components/option_multiple.d.ts +22 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/components/search.d.ts +10 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/components/select.d.ts +10 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/constants.d.ts +6 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/context/index.d.ts +7 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/context/types.d.ts +6 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/css_classes.d.ts +19 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/hoc/multiselect/index.d.ts +20 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/hoc/select/index.d.ts +20 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/hooks/index.d.ts +5 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/hooks/use_keyboard_open_close.d.ts +2 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/hooks/use_set_options_on_close.d.ts +11 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/hooks/use_toggle.d.ts +7 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/hooks/use_value.d.ts +22 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/hooks/use_values.d.ts +25 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/index.d.ts +23 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/types.d.ts +100 -0
- package/build/esm/packages/aurora/src/src/components/dropdown/utilities.d.ts +32 -0
- package/build/esm/packages/aurora/src/src/components/file_picker/components/file_input.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/file_picker/components/selected_file_preview.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/file_picker/css_classes.d.ts +11 -0
- package/build/esm/packages/aurora/src/src/components/file_picker/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/file_picker/types.d.ts +42 -0
- package/build/esm/packages/aurora/src/src/components/file_picker/use_file_picker.d.ts +2 -0
- package/build/esm/packages/aurora/src/src/components/flash_messenger/components/flash_message.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/flash_messenger/components/flash_messages_list.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/flash_messenger/context.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/flash_messenger/index.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/flash_messenger/types.d.ts +22 -0
- package/build/esm/packages/aurora/src/src/components/gallery/constants.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/gallery/css_classes.d.ts +33 -0
- package/build/esm/packages/aurora/src/src/components/gallery/index.d.ts +133 -0
- package/build/esm/packages/aurora/src/src/components/gallery/types.d.ts +124 -0
- package/build/esm/packages/aurora/src/src/components/gallery/utilities/check_is_touch_device.d.ts +1 -0
- package/build/esm/packages/aurora/src/src/components/gallery/utilities/copy_to_clipboard.d.ts +6 -0
- package/build/esm/packages/aurora/src/src/components/gallery/utilities/get_url.d.ts +1 -0
- package/build/esm/packages/aurora/src/src/components/gallery/utilities/handle_history.d.ts +1 -0
- package/build/esm/packages/aurora/src/src/components/gallery/utilities/index.d.ts +5 -0
- package/build/esm/packages/aurora/src/src/components/grid/components/box.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/grid/components/col.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/grid/components/row.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/grid/constants.d.ts +24 -0
- package/build/esm/packages/aurora/src/src/components/grid/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/grid/types.d.ts +42 -0
- package/build/esm/packages/aurora/src/src/components/grid/utils.d.ts +15 -0
- package/build/esm/packages/aurora/src/src/components/heading/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/heading/types.d.ts +5 -0
- package/build/esm/packages/aurora/src/src/components/hint/index.d.ts +16 -0
- package/build/esm/packages/aurora/src/src/components/label/css_classes.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/label/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/label/types.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/loader/constants.d.ts +10 -0
- package/build/esm/packages/aurora/src/src/components/loader/css_classes.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/loader/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/loader/types.d.ts +9 -0
- package/build/esm/packages/aurora/src/src/components/message-box/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/message-box/types.d.ts +8 -0
- package/build/esm/packages/aurora/src/src/components/modal/components/content.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/modal/components/footer.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/modal/components/header.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/modal/components/modal.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/modal/constants.d.ts +1 -0
- package/build/esm/packages/aurora/src/src/components/modal/context/modal_context.d.ts +8 -0
- package/build/esm/packages/aurora/src/src/components/modal/hoc/modal_provider.d.ts +6 -0
- package/build/esm/packages/aurora/src/src/components/modal/hoc/relative_modal/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/modal/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/modal/types.d.ts +55 -0
- package/build/esm/packages/aurora/src/src/components/modal/utilities.d.ts +56 -0
- package/build/esm/packages/aurora/src/src/components/range/css_classes.d.ts +8 -0
- package/build/esm/packages/aurora/src/src/components/range/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/range/types.d.ts +14 -0
- package/build/esm/packages/aurora/src/src/components/range/utilities.d.ts +19 -0
- package/build/esm/packages/aurora/src/src/components/spacing/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/spacing/types.d.ts +47 -0
- package/build/esm/packages/aurora/src/src/components/table/components/cell.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/table/components/row.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/table/components/t_body.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/table/components/t_head.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/table/hoc/data-table.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/table/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/table/types.d.ts +39 -0
- package/build/esm/packages/aurora/src/src/components/tabs/components/tab_item.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/tabs/components/tabs.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/tabs/context.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/tabs/index.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/tabs/types.d.ts +12 -0
- package/build/esm/packages/aurora/src/src/components/tag/css_classes.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/tag/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/tag/types.d.ts +7 -0
- package/build/esm/packages/aurora/src/src/components/tags_selector/components/list.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/tags_selector/components/search.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/components/tags_selector/components/wrapper.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/tags_selector/css_classes.d.ts +10 -0
- package/build/esm/packages/aurora/src/src/components/tags_selector/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/tags_selector/types.d.ts +25 -0
- package/build/esm/packages/aurora/src/src/components/tooltip/index.d.ts +10 -0
- package/build/esm/packages/aurora/src/src/components/with_loader/css_classes.d.ts +1 -0
- package/build/esm/packages/aurora/src/src/components/with_loader/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/components/with_loader/types.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/constants/responsive_breakpoints.d.ts +13 -0
- package/build/esm/packages/aurora/src/src/hooks/index.d.ts +4 -0
- package/build/esm/packages/aurora/src/src/hooks/use_click_outside.d.ts +9 -0
- package/build/esm/packages/aurora/src/src/hooks/use_effect_after_mount.d.ts +7 -0
- package/build/esm/packages/aurora/src/src/hooks/use_fixed_child_position.d.ts +10 -0
- package/build/esm/packages/aurora/src/src/hooks/use_key_down.d.ts +14 -0
- package/build/esm/packages/aurora/src/src/hooks/use_resize.d.ts +6 -0
- package/build/esm/packages/aurora/src/src/hooks/use_screen_detect.d.ts +1 -0
- package/build/esm/packages/aurora/src/src/hooks/use_unique_id.d.ts +9 -0
- package/build/esm/packages/aurora/src/src/i18n.d.ts +2 -0
- package/build/esm/packages/aurora/src/src/typings/general.d.ts +1 -0
- package/build/esm/packages/aurora/src/src/utilities/colors/color_converter.d.ts +5 -0
- package/build/esm/packages/aurora/src/src/utilities/colors/types.d.ts +6 -0
- package/build/esm/packages/aurora/src/src/utilities/dates/formats.d.ts +19 -0
- package/build/esm/packages/aurora/src/src/utilities/events/event_registration.d.ts +10 -0
- package/build/esm/packages/aurora/src/src/utilities/fuzzy_search/fuzzy_search.d.ts +19 -0
- package/build/esm/packages/aurora/src/src/utilities/index.d.ts +3 -0
- package/build/esm/packages/aurora/src/src/utilities/range/range_mappings.d.ts +12 -0
- package/build/esm/packages/aurora/src/src/utilities/styles/classNames.d.ts +8 -0
- package/build/esm/packages/aurora/src/src/utilities/translation/types.d.ts +2 -0
- package/build/esm/packages/aurora/src/src/utilities/translation/with_translation.d.ts +3 -0
- package/build/esm/packages/aurora/src/stories/controls/controls.stories.d.ts +31 -0
- package/build/esm/packages/aurora/src/stories/modal/modal_resizing.stories.d.ts +31 -0
- package/build/esm/packages/aurora/src/stories/stories_components/story_wrapper.d.ts +5 -0
- package/build/esm/packages/aurora/src/stories/welcome.stories.d.ts +36 -0
- package/build/esm/packages/aurora/src/tests/structural/button/button.storyshoot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/structural/controls/checkbox.storyshoot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/structural/controls/color_picker.storyshoot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/structural/controls/datepicker.storyshot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/structural/controls/input.storyshoot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/structural/controls/radio.storyshot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/structural/dropdown/dropdown.storyshoot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/structural/dropdown/multiselect.storyshot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/structural/dropdown/select.storyshot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/structural/grid/grid.storyshot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/structural/heading/heading.storyshoot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/structural/modal/modal.storyshoot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/structural/table/table.storyshoot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/structural/tabs/tabs.storyshoot.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/unit/components/controls/checkbox/control_checkbox.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/unit/components/gallery/utilities/copy_to_clipboard.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/unit/components/gallery/utilities/get_url.test.d.ts +4 -0
- package/build/esm/packages/aurora/src/tests/unit/components/grid/grid.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/unit/components/modal/utilities.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/unit/components/table/cell.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/unit/components/table/data-table.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/unit/components/table/row.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/unit/components/table/table.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/unit/components/tabs/tabs.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/unit/hooks/use_key_down.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/visual/constants.d.ts +5 -0
- package/build/esm/packages/aurora/src/tests/visual/control/color_picker/color_picker.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/visual/dropdown/dropdown.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/visual/modal/modal_absolute_positions.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/visual/modal/modal_relative_positions.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/tests/visual/tabs/tabs.test.d.ts +1 -0
- package/build/esm/packages/aurora/src/utilities/translation/types.d.ts +2 -0
- package/build/esm/packages/aurora/src/utilities/translation/types.js +2 -0
- package/build/esm/packages/aurora/src/utilities/translation/types.js.map +1 -0
- package/build/esm/packages/aurora/src/utilities/translation/with_translation.d.ts +3 -0
- package/build/esm/packages/aurora/src/utilities/translation/with_translation.js +12 -0
- package/build/esm/packages/aurora/src/utilities/translation/with_translation.js.map +1 -0
- package/package.json +1 -1
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var context = require('./context.js');
|
|
7
|
+
|
|
8
|
+
function I18nextProvider(_ref) {
|
|
9
|
+
var i18n = _ref.i18n,
|
|
10
|
+
defaultNS = _ref.defaultNS,
|
|
11
|
+
children = _ref.children;
|
|
12
|
+
return React.createElement(context.I18nContext.Provider, {
|
|
13
|
+
value: {
|
|
14
|
+
i18n: i18n,
|
|
15
|
+
defaultNS: defaultNS
|
|
16
|
+
}
|
|
17
|
+
}, children);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
exports.I18nextProvider = I18nextProvider;
|
|
21
|
+
//# sourceMappingURL=I18nextProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -14,6 +14,7 @@ var saturation_lightness_picker = require('./components/saturation_lightness_pic
|
|
|
14
14
|
var hue_picker = require('./components/hue_picker.js');
|
|
15
15
|
var buttons = require('./components/buttons.js');
|
|
16
16
|
var use_color_picker = require('./use_color_picker.js');
|
|
17
|
+
var with_translation = require('../../utilities/translation/with_translation.js');
|
|
17
18
|
|
|
18
19
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
19
20
|
|
|
@@ -105,13 +106,14 @@ var PureColorPicker = function (_a) {
|
|
|
105
106
|
React__default['default'].createElement(input['default'], { id: "color-picker-id", value: color === null || color === void 0 ? void 0 : color.hex, onChange: inputOnChange }))),
|
|
106
107
|
!hideChooseCancelButtons && React__default['default'].createElement(buttons['default'], { restoreInitialColor: restoreInitialColor })));
|
|
107
108
|
};
|
|
108
|
-
var
|
|
109
|
+
var ColorPickerWithContext = function (_a) {
|
|
109
110
|
var initialColor = _a.initialColor, onChange = _a.onChange, hideChooseCancelButtons = _a.hideChooseCancelButtons, name = _a.name;
|
|
110
111
|
var colorPickerContext = use_color_picker.useColorPicker({ initialColorHex: initialColor || '#ffffff', onChange: onChange });
|
|
111
112
|
return (React__default['default'].createElement(context.ColorPickerContext.Provider, { value: colorPickerContext },
|
|
112
113
|
React__default['default'].createElement("input", { type: "hidden", name: name }),
|
|
113
114
|
React__default['default'].createElement(PureColorPicker, { hideChooseCancelButtons: hideChooseCancelButtons })));
|
|
114
|
-
}
|
|
115
|
+
};
|
|
116
|
+
var index = with_translation['default'](ColorPickerWithContext);
|
|
115
117
|
|
|
116
118
|
exports.PureColorPicker = PureColorPicker;
|
|
117
119
|
exports.default = index;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,yDAA6D;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,yDAA6D;AACxF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -5,10 +5,11 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var context = require('../../../color_picker/context.js');
|
|
7
7
|
var use_color_picker = require('../../../color_picker/use_color_picker.js');
|
|
8
|
-
var
|
|
9
|
-
var index$
|
|
10
|
-
var index$2 = require('
|
|
11
|
-
var index = require('../../../
|
|
8
|
+
var with_translation = require('../../../../utilities/translation/with_translation.js');
|
|
9
|
+
var index$4 = require('../../../color_picker/index.js');
|
|
10
|
+
var index$2 = require('../../index.js');
|
|
11
|
+
var index$3 = require('../../../hint/index.js');
|
|
12
|
+
var index$1 = require('../../../dropdown/index.js');
|
|
12
13
|
var label = require('../../../color_picker/components/label.js');
|
|
13
14
|
|
|
14
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
@@ -31,19 +32,20 @@ var ControlColorPicker = function (_a) {
|
|
|
31
32
|
var _b = _a.initialColor, initialColor = _b === void 0 ? '#FFFFFF' : _b, name = _a.name, isRequired = _a.isRequired, label$1 = _a.label, id = _a.id, onChange = _a.onChange, hideChooseCancelButtons = _a.hideChooseCancelButtons, errors = _a.errors, hint = _a.hint;
|
|
32
33
|
var colorPickerContext = use_color_picker.useColorPicker({ initialColorHex: initialColor, onChange: onChange });
|
|
33
34
|
return (React__default['default'].createElement(context.ColorPickerContext.Provider, { value: colorPickerContext },
|
|
34
|
-
React__default['default'].createElement(index['default'], null,
|
|
35
|
-
React__default['default'].createElement(index['default'].CustomLabel, null,
|
|
36
|
-
React__default['default'].createElement(index$
|
|
37
|
-
(label$1 || hint) && (React__default['default'].createElement(index$
|
|
35
|
+
React__default['default'].createElement(index$1['default'], null,
|
|
36
|
+
React__default['default'].createElement(index$1['default'].CustomLabel, null,
|
|
37
|
+
React__default['default'].createElement(index$2['default'], { errors: errors, name: name, id: id },
|
|
38
|
+
(label$1 || hint) && (React__default['default'].createElement(index$2['default'].Label, { id: id, isRequired: isRequired },
|
|
38
39
|
label$1,
|
|
39
|
-
hint && React__default['default'].createElement(index$
|
|
40
|
-
React__default['default'].createElement(index$
|
|
41
|
-
React__default['default'].createElement(index$
|
|
40
|
+
hint && React__default['default'].createElement(index$3['default'], { spacingLeft: true, hint: hint }))),
|
|
41
|
+
React__default['default'].createElement(index$2['default'].Content, null,
|
|
42
|
+
React__default['default'].createElement(index$2['default'].Element, null,
|
|
42
43
|
React__default['default'].createElement(label['default'], { name: name || '', isRequired: isRequired, id: id, label: label$1 }))),
|
|
43
|
-
React__default['default'].createElement(index$
|
|
44
|
-
React__default['default'].createElement(index['default'].Content, null,
|
|
45
|
-
React__default['default'].createElement(index$
|
|
46
|
-
};
|
|
44
|
+
React__default['default'].createElement(index$2['default'].Errors, null))),
|
|
45
|
+
React__default['default'].createElement(index$1['default'].Content, null,
|
|
46
|
+
React__default['default'].createElement(index$4.PureColorPicker, { hideChooseCancelButtons: hideChooseCancelButtons })))));
|
|
47
|
+
};
|
|
48
|
+
var index = with_translation['default'](ControlColorPicker);
|
|
47
49
|
|
|
48
|
-
exports.default =
|
|
50
|
+
exports.default = index;
|
|
49
51
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/packages/aurora/src/components/controls/hoc/control_color_picker/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -4,11 +4,12 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var _tslib = require('../../../../../../../_virtual/_tslib.js');
|
|
7
|
-
var
|
|
8
|
-
var index$2 = require('
|
|
7
|
+
var with_translation = require('../../../../utilities/translation/with_translation.js');
|
|
8
|
+
var index$2 = require('../../index.js');
|
|
9
|
+
var index$3 = require('../../../hint/index.js');
|
|
9
10
|
var value_controller_context = require('../../../date_picker/context/value_controller_context.js');
|
|
10
11
|
require('../../../date_picker/context/month_year_navigation_context.js');
|
|
11
|
-
var index = require('../../../dropdown/index.js');
|
|
12
|
+
var index$1 = require('../../../dropdown/index.js');
|
|
12
13
|
var label = require('../../../date_picker/components/label.js');
|
|
13
14
|
var use_value_controller = require('../../../date_picker/hooks/use_value_controller.js');
|
|
14
15
|
var range_picker = require('../../../date_picker/hoc/range_picker.js');
|
|
@@ -52,20 +53,21 @@ var ControlDatepicker = function (_a) {
|
|
|
52
53
|
}, [value]);
|
|
53
54
|
var DatePickerComponent = DatepickerViews[type];
|
|
54
55
|
return (React__default['default'].createElement(value_controller_context['default'].Provider, { value: valueController },
|
|
55
|
-
React__default['default'].createElement(index['default'].CustomLabel, null,
|
|
56
|
-
React__default['default'].createElement(index$
|
|
57
|
-
(label$1 || hint) && (React__default['default'].createElement(index$
|
|
56
|
+
React__default['default'].createElement(index$1['default'].CustomLabel, null,
|
|
57
|
+
React__default['default'].createElement(index$2['default'], { errors: errors, name: name, id: id },
|
|
58
|
+
(label$1 || hint) && (React__default['default'].createElement(index$2['default'].Label, { id: id, isRequired: isRequired },
|
|
58
59
|
label$1,
|
|
59
|
-
hint && React__default['default'].createElement(index$
|
|
60
|
-
React__default['default'].createElement(index$
|
|
61
|
-
React__default['default'].createElement(index$
|
|
60
|
+
hint && React__default['default'].createElement(index$3['default'], { spacingLeft: true, hint: hint }))),
|
|
61
|
+
React__default['default'].createElement(index$2['default'].Content, null,
|
|
62
|
+
React__default['default'].createElement(index$2['default'].Element, null,
|
|
62
63
|
React__default['default'].createElement(label['default'], { name: name, id: id }))),
|
|
63
|
-
React__default['default'].createElement(index$
|
|
64
|
-
React__default['default'].createElement(index['default'].Content, null,
|
|
64
|
+
React__default['default'].createElement(index$2['default'].Errors, null))),
|
|
65
|
+
React__default['default'].createElement(index$1['default'].Content, null,
|
|
65
66
|
React__default['default'].createElement(DatePickerComponent, { className: className, showButtons: showButtons, showDefaultRanges: showDefaultRanges }))));
|
|
66
67
|
};
|
|
67
|
-
var DatePickerWithDropdown = function (props) { return (React__default['default'].createElement(index['default'], null,
|
|
68
|
-
React__default['default'].createElement(ControlDatepicker, _tslib.__assign({}, props)))); };
|
|
68
|
+
var DatePickerWithDropdown = function (props) { return (React__default['default'].createElement(index$1['default'], null,
|
|
69
|
+
React__default['default'].createElement(ControlDatepicker, _tslib.__assign({}, props)))); };
|
|
70
|
+
var index = with_translation['default'](DatePickerWithDropdown);
|
|
69
71
|
|
|
70
|
-
exports.default =
|
|
72
|
+
exports.default = index;
|
|
71
73
|
//# sourceMappingURL=index.js.map
|
package/build/cjs/packages/aurora/src/components/controls/hoc/control_date_picker/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -5,6 +5,7 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
5
5
|
var React = require('react');
|
|
6
6
|
var _tslib = require('../../../../../../../_virtual/_tslib.js');
|
|
7
7
|
var reactJss_esm = require('../../../../../../../external/react-jss/dist/react-jss.esm.js');
|
|
8
|
+
var use_resize = require('../../../../hooks/use_resize.js');
|
|
8
9
|
var reactDom = require('react-dom');
|
|
9
10
|
var main_module = require('../../../../css/modal/main.module.less.js');
|
|
10
11
|
var modal = require('../../components/modal.js');
|
|
@@ -48,7 +49,8 @@ var useStyles = reactJss_esm.createUseStyles({
|
|
|
48
49
|
var AbsoluteModal = function (_a) {
|
|
49
50
|
var vPosition = _a.vPosition, hPosition = _a.hPosition, _b = _a.offset, offset = _b === void 0 ? 0 : _b, transform = _a.transform, _c = _a.transformLength, transformLength = _c === void 0 ? constants.DEFAULT_TRANSLATE_MOVE : _c, children = _a.children, animationDirection = _a.animationDirection, isVisible = _a.isVisible, withBackground = _a.withBackground, rest = _tslib.__rest(_a, ["vPosition", "hPosition", "offset", "transform", "transformLength", "children", "animationDirection", "isVisible", "withBackground"]);
|
|
50
51
|
var modalRef = React.useRef(null);
|
|
51
|
-
var _d = React.useState(
|
|
52
|
+
var _d = React.useState(0), updater = _d[0], setUpdater = _d[1];
|
|
53
|
+
var _e = React.useState({}), position = _e[0], setPosition = _e[1];
|
|
52
54
|
var classes = useStyles(_tslib.__assign(_tslib.__assign({}, position), { isVisible: isVisible, transformLength: transformLength, transform: transform, animationDirection: animationDirection }));
|
|
53
55
|
React.useEffect(function () {
|
|
54
56
|
var _a, _b;
|
|
@@ -60,10 +62,30 @@ var AbsoluteModal = function (_a) {
|
|
|
60
62
|
transformLength: transformLength,
|
|
61
63
|
animationDirection: animationDirection
|
|
62
64
|
}));
|
|
63
|
-
}, [animationDirection, hPosition, offset, transformLength, vPosition, isVisible]);
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
65
|
+
}, [animationDirection, hPosition, offset, transformLength, vPosition, isVisible, updater]);
|
|
66
|
+
use_resize.useResize(function () {
|
|
67
|
+
var _a, _b;
|
|
68
|
+
setPosition(utilities.calculateAbsolutePosition({
|
|
69
|
+
vPosition: vPosition,
|
|
70
|
+
hPosition: hPosition,
|
|
71
|
+
modalRect: (_b = (_a = modalRef === null || modalRef === void 0 ? void 0 : modalRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect) === null || _b === void 0 ? void 0 : _b.call(_a),
|
|
72
|
+
offset: offset,
|
|
73
|
+
transformLength: transformLength,
|
|
74
|
+
animationDirection: animationDirection
|
|
75
|
+
}));
|
|
76
|
+
}, 50);
|
|
77
|
+
React.useEffect(function () {
|
|
78
|
+
var observer = new MutationObserver(function () {
|
|
79
|
+
setUpdater(function (updater) { return updater + 1; });
|
|
80
|
+
});
|
|
81
|
+
if (modalRef.current) {
|
|
82
|
+
observer.observe(modalRef.current, { childList: true, subtree: true });
|
|
83
|
+
}
|
|
84
|
+
return function () { return observer.disconnect(); };
|
|
85
|
+
}, []);
|
|
86
|
+
return reactDom.createPortal(React__default['default'].createElement(React__default['default'].Fragment, null,
|
|
87
|
+
React__default['default'].createElement(modal['default'], _tslib.__assign({ className: "".concat(classes.modal, " ").concat(isVisible ? main_module['default']['modal-window_visible'] : ''), modalRef: modalRef }, rest), children),
|
|
88
|
+
isVisible && withBackground && React__default['default'].createElement("div", { className: main_module['default']['modal-window-mask'] })), document.body);
|
|
67
89
|
};
|
|
68
90
|
|
|
69
91
|
exports.default = AbsoluteModal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,+DAAmE;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA,2BAA2B,+DAAmE;AAC9F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -15,7 +15,8 @@ var resources = {
|
|
|
15
15
|
translation: pl['default']
|
|
16
16
|
}
|
|
17
17
|
};
|
|
18
|
-
i18next['default'].
|
|
18
|
+
var i18n = i18next['default'].createInstance();
|
|
19
|
+
i18n.use(context.initReactI18next).init({
|
|
19
20
|
resources: resources,
|
|
20
21
|
lng: 'pl',
|
|
21
22
|
keySeparator: false,
|
|
@@ -24,5 +25,5 @@ i18next['default'].use(context.initReactI18next).init({
|
|
|
24
25
|
}
|
|
25
26
|
});
|
|
26
27
|
|
|
27
|
-
exports.default =
|
|
28
|
+
exports.default = i18n;
|
|
28
29
|
//# sourceMappingURL=i18n.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,sBAAsB,+CAAmD;AACzE,sBAAsB,oDAAwD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA,sBAAsB,+CAAmD;AACzE,sBAAsB,oDAAwD;AAC9E;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var React = require('react');
|
|
6
|
+
var I18nextProvider = require('../../../../../external/react-i18next/dist/es/I18nextProvider.js');
|
|
7
|
+
var i18n = require('../../i18n.js');
|
|
8
|
+
var _tslib = require('../../../../../_virtual/_tslib.js');
|
|
9
|
+
|
|
10
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
11
|
+
|
|
12
|
+
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
13
|
+
|
|
14
|
+
var withTranslation = function (ChildComponent) { return function (props) {
|
|
15
|
+
return (React__default['default'].createElement(I18nextProvider.I18nextProvider, { i18n: i18n['default'] },
|
|
16
|
+
React__default['default'].createElement(ChildComponent, _tslib.__assign({}, props))));
|
|
17
|
+
}; };
|
|
18
|
+
|
|
19
|
+
exports.default = withTranslation;
|
|
20
|
+
//# sourceMappingURL=with_translation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA,8BAA8B,kEAAsE;AACpG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { createElement } from 'react';
|
|
2
|
+
import { I18nContext } from './context.js';
|
|
3
|
+
|
|
4
|
+
function I18nextProvider(_ref) {
|
|
5
|
+
var i18n = _ref.i18n,
|
|
6
|
+
defaultNS = _ref.defaultNS,
|
|
7
|
+
children = _ref.children;
|
|
8
|
+
return createElement(I18nContext.Provider, {
|
|
9
|
+
value: {
|
|
10
|
+
i18n: i18n,
|
|
11
|
+
defaultNS: defaultNS
|
|
12
|
+
}
|
|
13
|
+
}, children);
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export { I18nextProvider };
|
|
17
|
+
//# sourceMappingURL=I18nextProvider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IColorPickerProps, IPureColorPickerProps } from './types';
|
|
3
3
|
export declare const PureColorPicker: React.FC<IPureColorPickerProps>;
|
|
4
|
-
declare const _default:
|
|
4
|
+
declare const _default: React.FC<IColorPickerProps>;
|
|
5
5
|
export default _default;
|
|
@@ -10,6 +10,7 @@ import SaturationLightnessPicker from './components/saturation_lightness_picker.
|
|
|
10
10
|
import HuePicker from './components/hue_picker.js';
|
|
11
11
|
import ColorPickerButtons from './components/buttons.js';
|
|
12
12
|
import { useColorPicker } from './use_color_picker.js';
|
|
13
|
+
import withTranslation from '../../utilities/translation/with_translation.js';
|
|
13
14
|
|
|
14
15
|
var useStyles = createUseStyles({
|
|
15
16
|
saturationLightnessPanel: {
|
|
@@ -97,13 +98,14 @@ var PureColorPicker = function (_a) {
|
|
|
97
98
|
React.createElement(Input, { id: "color-picker-id", value: color === null || color === void 0 ? void 0 : color.hex, onChange: inputOnChange }))),
|
|
98
99
|
!hideChooseCancelButtons && React.createElement(ColorPickerButtons, { restoreInitialColor: restoreInitialColor })));
|
|
99
100
|
};
|
|
100
|
-
var
|
|
101
|
+
var ColorPickerWithContext = function (_a) {
|
|
101
102
|
var initialColor = _a.initialColor, onChange = _a.onChange, hideChooseCancelButtons = _a.hideChooseCancelButtons, name = _a.name;
|
|
102
103
|
var colorPickerContext = useColorPicker({ initialColorHex: initialColor || '#ffffff', onChange: onChange });
|
|
103
104
|
return (React.createElement(ColorPickerContext.Provider, { value: colorPickerContext },
|
|
104
105
|
React.createElement("input", { type: "hidden", name: name }),
|
|
105
106
|
React.createElement(PureColorPicker, { hideChooseCancelButtons: hideChooseCancelButtons })));
|
|
106
|
-
}
|
|
107
|
+
};
|
|
108
|
+
var index = withTranslation(ColorPickerWithContext);
|
|
107
109
|
|
|
108
110
|
export default index;
|
|
109
111
|
export { PureColorPicker };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA,gCAAgC,yDAA6D;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA,gCAAgC,yDAA6D;AAC7F;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/esm/packages/aurora/src/components/controls/hoc/control_color_picker/index.d.ts
CHANGED
|
@@ -1,16 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { IControlColorPickerProps } from "../../types";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
* @example
|
|
6
|
-
* return (
|
|
7
|
-
* <ControlColorPicker
|
|
8
|
-
* initialColor="#FF00FF"
|
|
9
|
-
* name="Example color picker"
|
|
10
|
-
* isRequired
|
|
11
|
-
* label="Example color picker label"
|
|
12
|
-
* />
|
|
13
|
-
* )
|
|
14
|
-
*/
|
|
15
|
-
declare const ControlColorPicker: React.FC<IControlColorPickerProps>;
|
|
16
|
-
export default ControlColorPicker;
|
|
3
|
+
declare const _default: React.FC<IControlColorPickerProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { ColorPickerContext } from '../../../color_picker/context.js';
|
|
3
3
|
import { useColorPicker } from '../../../color_picker/use_color_picker.js';
|
|
4
|
+
import withTranslation from '../../../../utilities/translation/with_translation.js';
|
|
4
5
|
import { PureColorPicker } from '../../../color_picker/index.js';
|
|
5
6
|
import Control from '../../index.js';
|
|
6
7
|
import Hint from '../../../hint/index.js';
|
|
@@ -35,7 +36,8 @@ var ControlColorPicker = function (_a) {
|
|
|
35
36
|
React.createElement(Control.Errors, null))),
|
|
36
37
|
React.createElement(Dropdown.Content, null,
|
|
37
38
|
React.createElement(PureColorPicker, { hideChooseCancelButtons: hideChooseCancelButtons })))));
|
|
38
|
-
};
|
|
39
|
+
};
|
|
40
|
+
var index = withTranslation(ControlColorPicker);
|
|
39
41
|
|
|
40
|
-
export default
|
|
42
|
+
export default index;
|
|
41
43
|
//# sourceMappingURL=index.js.map
|
package/build/esm/packages/aurora/src/components/controls/hoc/control_color_picker/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
package/build/esm/packages/aurora/src/components/controls/hoc/control_date_picker/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import React from 'react';
|
|
2
2
|
import { IDatepickerProps } from "../../../date_picker/types";
|
|
3
|
-
declare const
|
|
4
|
-
export default
|
|
3
|
+
declare const _default: React.FC<IDatepickerProps>;
|
|
4
|
+
export default _default;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
2
|
import { __assign } from '../../../../../../../_virtual/_tslib.js';
|
|
3
|
+
import withTranslation from '../../../../utilities/translation/with_translation.js';
|
|
3
4
|
import Control from '../../index.js';
|
|
4
5
|
import Hint from '../../../hint/index.js';
|
|
5
6
|
import DatepickerContext from '../../../date_picker/context/value_controller_context.js';
|
|
@@ -57,7 +58,8 @@ var ControlDatepicker = function (_a) {
|
|
|
57
58
|
React.createElement(DatePickerComponent, { className: className, showButtons: showButtons, showDefaultRanges: showDefaultRanges }))));
|
|
58
59
|
};
|
|
59
60
|
var DatePickerWithDropdown = function (props) { return (React.createElement(Dropdown, null,
|
|
60
|
-
React.createElement(ControlDatepicker, __assign({}, props)))); };
|
|
61
|
+
React.createElement(ControlDatepicker, __assign({}, props)))); };
|
|
62
|
+
var index = withTranslation(DatePickerWithDropdown);
|
|
61
63
|
|
|
62
|
-
export default
|
|
64
|
+
export default index;
|
|
63
65
|
//# sourceMappingURL=index.js.map
|
package/build/esm/packages/aurora/src/components/controls/hoc/control_date_picker/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React, { useRef, useState, useEffect } from 'react';
|
|
2
2
|
import { __rest, __assign } from '../../../../../../../_virtual/_tslib.js';
|
|
3
3
|
import { createUseStyles } from '../../../../../../../external/react-jss/dist/react-jss.esm.js';
|
|
4
|
+
import { useResize } from '../../../../hooks/use_resize.js';
|
|
4
5
|
import { createPortal } from 'react-dom';
|
|
5
6
|
import cssClasses from '../../../../css/modal/main.module.less.js';
|
|
6
7
|
import Modal from '../../components/modal.js';
|
|
@@ -40,7 +41,8 @@ var useStyles = createUseStyles({
|
|
|
40
41
|
var AbsoluteModal = function (_a) {
|
|
41
42
|
var vPosition = _a.vPosition, hPosition = _a.hPosition, _b = _a.offset, offset = _b === void 0 ? 0 : _b, transform = _a.transform, _c = _a.transformLength, transformLength = _c === void 0 ? DEFAULT_TRANSLATE_MOVE : _c, children = _a.children, animationDirection = _a.animationDirection, isVisible = _a.isVisible, withBackground = _a.withBackground, rest = __rest(_a, ["vPosition", "hPosition", "offset", "transform", "transformLength", "children", "animationDirection", "isVisible", "withBackground"]);
|
|
42
43
|
var modalRef = useRef(null);
|
|
43
|
-
var _d = useState(
|
|
44
|
+
var _d = useState(0), updater = _d[0], setUpdater = _d[1];
|
|
45
|
+
var _e = useState({}), position = _e[0], setPosition = _e[1];
|
|
44
46
|
var classes = useStyles(__assign(__assign({}, position), { isVisible: isVisible, transformLength: transformLength, transform: transform, animationDirection: animationDirection }));
|
|
45
47
|
useEffect(function () {
|
|
46
48
|
var _a, _b;
|
|
@@ -52,10 +54,30 @@ var AbsoluteModal = function (_a) {
|
|
|
52
54
|
transformLength: transformLength,
|
|
53
55
|
animationDirection: animationDirection
|
|
54
56
|
}));
|
|
55
|
-
}, [animationDirection, hPosition, offset, transformLength, vPosition, isVisible]);
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
}, [animationDirection, hPosition, offset, transformLength, vPosition, isVisible, updater]);
|
|
58
|
+
useResize(function () {
|
|
59
|
+
var _a, _b;
|
|
60
|
+
setPosition(calculateAbsolutePosition({
|
|
61
|
+
vPosition: vPosition,
|
|
62
|
+
hPosition: hPosition,
|
|
63
|
+
modalRect: (_b = (_a = modalRef === null || modalRef === void 0 ? void 0 : modalRef.current) === null || _a === void 0 ? void 0 : _a.getBoundingClientRect) === null || _b === void 0 ? void 0 : _b.call(_a),
|
|
64
|
+
offset: offset,
|
|
65
|
+
transformLength: transformLength,
|
|
66
|
+
animationDirection: animationDirection
|
|
67
|
+
}));
|
|
68
|
+
}, 50);
|
|
69
|
+
useEffect(function () {
|
|
70
|
+
var observer = new MutationObserver(function () {
|
|
71
|
+
setUpdater(function (updater) { return updater + 1; });
|
|
72
|
+
});
|
|
73
|
+
if (modalRef.current) {
|
|
74
|
+
observer.observe(modalRef.current, { childList: true, subtree: true });
|
|
75
|
+
}
|
|
76
|
+
return function () { return observer.disconnect(); };
|
|
77
|
+
}, []);
|
|
78
|
+
return createPortal(React.createElement(React.Fragment, null,
|
|
79
|
+
React.createElement(Modal, __assign({ className: "".concat(classes.modal, " ").concat(isVisible ? cssClasses['modal-window_visible'] : ''), modalRef: modalRef }, rest), children),
|
|
80
|
+
isVisible && withBackground && React.createElement("div", { className: cssClasses['modal-window-mask'] })), document.body);
|
|
59
81
|
};
|
|
60
82
|
|
|
61
83
|
export default AbsoluteModal;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA,gCAAgC,+DAAmE;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA;AACA;AACA,gCAAgC,+DAAmE;AACnG;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
1
|
+
declare const i18n: import("i18next").i18n;
|
|
2
2
|
export default i18n;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import i18next from '../../../external/i18next/dist/esm/i18next.js';
|
|
2
|
-
export { default } from '../../../external/i18next/dist/esm/i18next.js';
|
|
3
2
|
import { initReactI18next } from '../../../external/react-i18next/dist/es/context.js';
|
|
4
3
|
import en from './translations/en.json.js';
|
|
5
4
|
import pl from './translations/pl.json.js';
|
|
@@ -12,7 +11,8 @@ var resources = {
|
|
|
12
11
|
translation: pl
|
|
13
12
|
}
|
|
14
13
|
};
|
|
15
|
-
i18next.
|
|
14
|
+
var i18n = i18next.createInstance();
|
|
15
|
+
i18n.use(initReactI18next).init({
|
|
16
16
|
resources: resources,
|
|
17
17
|
lng: 'pl',
|
|
18
18
|
keySeparator: false,
|
|
@@ -20,4 +20,6 @@ i18next.use(initReactI18next).init({
|
|
|
20
20
|
escapeValue: false
|
|
21
21
|
}
|
|
22
22
|
});
|
|
23
|
+
|
|
24
|
+
export default i18n;
|
|
23
25
|
//# sourceMappingURL=i18n.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,oBAAoB,+CAAmD;AACvE,
|
|
1
|
+
{"version":3,"file":null,"sources":[null],"sourcesContent":[null],"names":[],"mappings":"AAAA,oBAAoB,+CAAmD;AACvE,iCAAiC,oDAAwD;AACzF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const cssIcon = "icon";
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const buttonTypes: {
|
|
2
|
+
button: {
|
|
3
|
+
render({ type, onClick, children }: import("./button/types").IAsButtonProps, classNames: string): JSX.Element;
|
|
4
|
+
};
|
|
5
|
+
link: {
|
|
6
|
+
render({ href, target, onClick, children }: import("./link/types").IAsLinkProps, classNames: string): JSX.Element;
|
|
7
|
+
};
|
|
8
|
+
};
|