@alfalab/core-components 19.11.1 → 20.0.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/alert/esm/index.css +0 -5
- package/alert/index.css +0 -5
- package/alert/modern/index.css +0 -5
- package/amount/esm/index.css +0 -5
- package/amount/index.css +0 -5
- package/amount/modern/index.css +0 -5
- package/amount-input/default.css +0 -3
- package/amount-input/esm/default.css +0 -3
- package/amount-input/esm/index.css +0 -5
- package/amount-input/esm/inverted.css +0 -5
- package/amount-input/index.css +0 -5
- package/amount-input/inverted.css +0 -5
- package/amount-input/modern/default.css +0 -3
- package/amount-input/modern/index.css +0 -5
- package/amount-input/modern/inverted.css +0 -5
- package/attach/esm/index.css +0 -3
- package/attach/index.css +0 -3
- package/attach/modern/index.css +0 -3
- package/backdrop/esm/index.css +0 -3
- package/backdrop/index.css +0 -3
- package/backdrop/modern/index.css +0 -3
- package/badge/esm/index.css +0 -3
- package/badge/index.css +0 -3
- package/badge/modern/index.css +0 -3
- package/bank-card/Component.js +1 -1
- package/bank-card/esm/Component.js +1 -1
- package/bank-card/esm/index.css +40 -24
- package/bank-card/index.css +40 -24
- package/bank-card/modern/Component.js +1 -1
- package/bank-card/modern/index.css +40 -24
- package/base-modal/Component.js +20 -13
- package/base-modal/esm/Component.js +22 -15
- package/base-modal/esm/index.css +1 -4
- package/base-modal/esm/index.js +1 -1
- package/base-modal/esm/utils.d.ts +3 -2
- package/base-modal/esm/utils.js +36 -15
- package/base-modal/index.css +1 -4
- package/base-modal/index.js +1 -0
- package/base-modal/modern/Component.js +22 -15
- package/base-modal/modern/index.css +1 -4
- package/base-modal/modern/index.js +1 -1
- package/base-modal/modern/utils.d.ts +3 -2
- package/base-modal/modern/utils.js +35 -14
- package/base-modal/utils.d.ts +3 -2
- package/base-modal/utils.js +36 -14
- package/bottom-sheet/{Component-75c61faf.d.ts → Component-47f23852.d.ts} +0 -0
- package/bottom-sheet/Component-47f23852.js +53 -0
- package/bottom-sheet/component.js +1 -1
- package/bottom-sheet/components/footer/index.css +0 -3
- package/bottom-sheet/components/swipeable-backdrop/Component.js +1 -1
- package/bottom-sheet/{cssm/Component-3a3629ef.d.ts → esm/Component-2f048341.d.ts} +0 -0
- package/bottom-sheet/esm/Component-2f048341.js +49 -0
- package/bottom-sheet/esm/component.js +1 -1
- package/bottom-sheet/esm/components/footer/index.css +0 -3
- package/bottom-sheet/esm/components/swipeable-backdrop/Component.js +1 -1
- package/bottom-sheet/esm/index.css +0 -3
- package/bottom-sheet/esm/index.js +1 -1
- package/bottom-sheet/index.css +0 -3
- package/bottom-sheet/index.js +1 -1
- package/bottom-sheet/modern/components/footer/index.css +0 -3
- package/bottom-sheet/modern/components/swipeable-backdrop/Component.js +3 -1
- package/bottom-sheet/modern/index.css +0 -3
- package/button/default.css +0 -3
- package/button/esm/default.css +0 -3
- package/button/esm/index.css +0 -3
- package/button/esm/inverted.css +0 -3
- package/button/index.css +0 -3
- package/button/inverted.css +0 -3
- package/button/modern/default.css +0 -3
- package/button/modern/index.css +0 -3
- package/button/modern/inverted.css +0 -3
- package/calendar/Component.js +1 -1
- package/calendar/components/days-table/Component.js +1 -1
- package/calendar/components/days-table/index.css +0 -3
- package/calendar/components/days-table/index.js +1 -1
- package/calendar/components/header/Component.js +1 -1
- package/calendar/components/header/index.css +0 -5
- package/calendar/components/header/index.js +1 -1
- package/calendar/components/months-table/Component.js +1 -1
- package/calendar/components/months-table/index.css +0 -5
- package/calendar/components/months-table/index.js +1 -1
- package/calendar/components/select-button/Component.js +1 -1
- package/calendar/components/select-button/index.css +0 -3
- package/calendar/components/select-button/index.js +1 -1
- package/calendar/components/years-table/Component.js +1 -1
- package/calendar/components/years-table/index.css +0 -5
- package/calendar/components/years-table/index.js +1 -1
- package/calendar/esm/Component.js +1 -1
- package/calendar/esm/components/days-table/Component.js +1 -1
- package/calendar/esm/components/days-table/index.css +0 -3
- package/calendar/esm/components/days-table/index.js +1 -1
- package/calendar/esm/components/header/Component.js +1 -1
- package/calendar/esm/components/header/index.css +0 -5
- package/calendar/esm/components/header/index.js +1 -1
- package/calendar/esm/components/months-table/Component.js +1 -1
- package/calendar/esm/components/months-table/index.css +0 -5
- package/calendar/esm/components/months-table/index.js +1 -1
- package/calendar/esm/components/select-button/Component.js +1 -1
- package/calendar/esm/components/select-button/index.css +0 -3
- package/calendar/esm/components/select-button/index.js +1 -1
- package/calendar/esm/components/years-table/Component.js +1 -1
- package/calendar/esm/components/years-table/index.css +0 -5
- package/calendar/esm/components/years-table/index.js +1 -1
- package/calendar/esm/index.css +0 -5
- package/calendar/esm/index.js +1 -1
- package/calendar/{cssm/tslib.es6-ce870b46.d.ts → esm/tslib.es6-fca4e183.d.ts} +0 -0
- package/calendar/esm/{tslib.es6-380d0bf1.js → tslib.es6-fca4e183.js} +0 -0
- package/calendar/index.css +0 -5
- package/calendar/index.js +1 -1
- package/calendar/modern/components/days-table/index.css +0 -3
- package/calendar/modern/components/header/index.css +0 -5
- package/calendar/modern/components/months-table/index.css +0 -5
- package/calendar/modern/components/select-button/index.css +0 -3
- package/calendar/modern/components/years-table/index.css +0 -5
- package/calendar/modern/index.css +0 -5
- package/calendar/{esm/tslib.es6-380d0bf1.d.ts → tslib.es6-8fcb4075.d.ts} +0 -0
- package/calendar/{cssm/tslib.es6-ce870b46.js → tslib.es6-8fcb4075.js} +0 -0
- package/calendar-input/Component.d.ts +1 -1
- package/calendar-input/esm/index.css +0 -3
- package/calendar-input/index.css +0 -3
- package/calendar-input/modern/index.css +0 -3
- package/calendar-range/esm/index.css +0 -3
- package/calendar-range/index.css +0 -3
- package/calendar-range/modern/index.css +0 -3
- package/calendar-with-skeleton/esm/index.css +0 -3
- package/calendar-with-skeleton/index.css +0 -3
- package/calendar-with-skeleton/modern/index.css +0 -3
- package/cdn-icon/esm/index.css +0 -5
- package/cdn-icon/index.css +0 -5
- package/cdn-icon/modern/index.css +0 -5
- package/checkbox/esm/index.css +0 -3
- package/checkbox/index.css +0 -3
- package/checkbox/modern/index.css +0 -3
- package/checkbox-group/Component.d.ts +1 -1
- package/checkbox-group/Component.js +1 -1
- package/checkbox-group/esm/Component.d.ts +1 -1
- package/checkbox-group/esm/Component.js +1 -1
- package/checkbox-group/esm/index.css +0 -3
- package/checkbox-group/index.css +0 -3
- package/checkbox-group/modern/Component.d.ts +1 -1
- package/checkbox-group/modern/Component.js +1 -1
- package/checkbox-group/modern/index.css +0 -3
- package/circular-progress-bar/esm/index.css +0 -3
- package/circular-progress-bar/index.css +0 -3
- package/circular-progress-bar/modern/index.css +0 -3
- package/collapse/esm/index.css +0 -5
- package/collapse/index.css +0 -5
- package/collapse/modern/index.css +0 -5
- package/confirmation/components/code-input/index.css +1 -3
- package/confirmation/components/countdown/index.css +0 -3
- package/confirmation/components/countdown-loader/index.css +0 -3
- package/confirmation/components/sign-confirmation/index.css +0 -3
- package/confirmation/esm/components/code-input/index.css +1 -3
- package/confirmation/esm/components/countdown/index.css +0 -3
- package/confirmation/esm/components/countdown-loader/index.css +0 -3
- package/confirmation/esm/components/sign-confirmation/index.css +0 -3
- package/confirmation/esm/index.css +0 -3
- package/confirmation/index.css +0 -3
- package/confirmation/modern/components/code-input/index.css +1 -3
- package/confirmation/modern/components/countdown/index.css +0 -3
- package/confirmation/modern/components/countdown-loader/index.css +0 -3
- package/confirmation/modern/components/sign-confirmation/index.css +0 -3
- package/confirmation/modern/index.css +0 -3
- package/date-input/esm/index.css +0 -5
- package/date-input/index.css +0 -5
- package/date-input/modern/index.css +0 -5
- package/divider/esm/index.css +0 -3
- package/divider/index.css +0 -3
- package/divider/modern/index.css +0 -3
- package/drawer/esm/index.css +0 -3
- package/drawer/index.css +0 -3
- package/drawer/modern/index.css +0 -3
- package/dropzone/Component.d.ts +13 -3
- package/dropzone/Component.js +20 -12
- package/dropzone/components/index.d.ts +1 -0
- package/dropzone/components/index.js +10 -0
- package/dropzone/components/overlay/Component.d.ts +13 -0
- package/dropzone/components/overlay/Component.js +25 -0
- package/dropzone/components/overlay/index.css +50 -0
- package/{alert/cssm → dropzone/components/overlay}/index.d.ts +0 -0
- package/dropzone/components/overlay/index.js +10 -0
- package/dropzone/esm/Component.d.ts +13 -3
- package/dropzone/esm/Component.js +20 -12
- package/dropzone/esm/components/index.d.ts +1 -0
- package/dropzone/esm/components/index.js +4 -0
- package/dropzone/esm/components/overlay/Component.d.ts +13 -0
- package/dropzone/esm/components/overlay/Component.js +18 -0
- package/dropzone/esm/components/overlay/index.css +50 -0
- package/{amount-input/cssm → dropzone/esm/components/overlay}/index.d.ts +0 -0
- package/dropzone/esm/components/overlay/index.js +4 -0
- package/dropzone/esm/index.css +22 -56
- package/dropzone/esm/index.js +2 -1
- package/dropzone/index.css +22 -56
- package/dropzone/index.js +2 -1
- package/dropzone/modern/Component.d.ts +13 -3
- package/dropzone/modern/Component.js +20 -12
- package/dropzone/modern/components/index.d.ts +1 -0
- package/dropzone/modern/components/index.js +4 -0
- package/dropzone/modern/components/overlay/Component.d.ts +13 -0
- package/dropzone/modern/components/overlay/Component.js +16 -0
- package/dropzone/modern/components/overlay/index.css +50 -0
- package/{attach/cssm → dropzone/modern/components/overlay}/index.d.ts +0 -0
- package/dropzone/modern/components/overlay/index.js +4 -0
- package/dropzone/modern/index.css +22 -56
- package/dropzone/modern/index.js +1 -0
- package/file-upload-item/Component.d.ts +2 -1
- package/file-upload-item/esm/Component.d.ts +2 -1
- package/file-upload-item/esm/index.css +0 -3
- package/file-upload-item/index.css +0 -3
- package/file-upload-item/modern/Component.d.ts +2 -1
- package/file-upload-item/modern/index.css +0 -3
- package/form-control/Component.d.ts +2 -2
- package/form-control/Component.js +1 -1
- package/form-control/default.css +0 -3
- package/form-control/esm/Component.d.ts +2 -2
- package/form-control/esm/Component.js +1 -1
- package/form-control/esm/default.css +0 -3
- package/form-control/esm/index.css +0 -5
- package/form-control/esm/inverted.css +1 -4
- package/form-control/index.css +0 -5
- package/form-control/inverted.css +1 -4
- package/form-control/modern/Component.d.ts +2 -2
- package/form-control/modern/Component.js +1 -1
- package/form-control/modern/default.css +0 -3
- package/form-control/modern/index.css +0 -5
- package/form-control/modern/inverted.css +1 -4
- package/grid/Component.js +1 -1
- package/grid/col/Component.js +1 -1
- package/grid/col/index.js +1 -1
- package/grid/esm/Component.js +1 -1
- package/grid/esm/col/Component.js +1 -1
- package/grid/esm/col/index.js +1 -1
- package/{calendar/tslib.es6-50162ba7.d.ts → grid/esm/gutters.module-b39da5b6.d.ts} +0 -0
- package/grid/esm/{gutters.module-c9c70930.js → gutters.module-b39da5b6.js} +0 -0
- package/grid/esm/index.js +1 -1
- package/grid/esm/row/Component.js +1 -1
- package/grid/esm/row/index.js +1 -1
- package/grid/{cssm/tslib.es6-3084c748.d.ts → gutters.module-d3fcf523.d.ts} +0 -0
- package/grid/{gutters.module-ec984f94.js → gutters.module-d3fcf523.js} +0 -0
- package/grid/index.js +1 -1
- package/grid/modern/Component.js +1 -1
- package/grid/modern/col/Component.js +1 -1
- package/grid/modern/col/index.js +1 -1
- package/grid/modern/{gutters.module-157a0bab.js → gutters.module-3f6357c5.js} +0 -0
- package/grid/modern/index.js +1 -1
- package/grid/modern/row/Component.js +1 -1
- package/grid/modern/row/index.js +1 -1
- package/grid/row/Component.js +1 -1
- package/grid/row/index.js +1 -1
- package/icon-button/default.css +0 -3
- package/icon-button/esm/default.css +0 -3
- package/icon-button/esm/index.css +0 -5
- package/icon-button/esm/inverted.css +0 -3
- package/icon-button/index.css +0 -5
- package/icon-button/inverted.css +0 -3
- package/icon-button/modern/default.css +0 -3
- package/icon-button/modern/index.css +0 -5
- package/icon-button/modern/inverted.css +0 -3
- package/input/Component.d.ts +2 -2
- package/input/default.css +3 -3
- package/input/esm/Component.d.ts +2 -2
- package/input/esm/default.css +3 -3
- package/input/esm/index.css +0 -3
- package/input/esm/inverted.css +3 -3
- package/input/index.css +0 -3
- package/input/inverted.css +3 -3
- package/input/modern/Component.d.ts +2 -2
- package/input/modern/default.css +3 -3
- package/input/modern/index.css +0 -3
- package/input/modern/inverted.css +3 -3
- package/input-autocomplete/{Component-d1c7e395.d.ts → Component-4eb14ed5.d.ts} +0 -0
- package/input-autocomplete/Component-4eb14ed5.js +81 -0
- package/input-autocomplete/Component.d.ts +2 -2
- package/input-autocomplete/Component.js +1 -1
- package/input-autocomplete/autocomplete-field/Component.js +1 -1
- package/input-autocomplete/autocomplete-field/index.css +2 -2
- package/input-autocomplete/autocomplete-field/index.d.ts +1 -1
- package/input-autocomplete/autocomplete-field/index.js +1 -1
- package/input-autocomplete/{cssm/Component-a04a9434.d.ts → esm/Component-580300ee.d.ts} +0 -0
- package/input-autocomplete/esm/Component-580300ee.js +74 -0
- package/input-autocomplete/esm/Component.d.ts +2 -2
- package/input-autocomplete/esm/Component.js +1 -1
- package/input-autocomplete/esm/autocomplete-field/Component.js +1 -1
- package/input-autocomplete/esm/autocomplete-field/index.css +2 -2
- package/input-autocomplete/esm/autocomplete-field/index.d.ts +1 -1
- package/input-autocomplete/esm/autocomplete-field/index.js +1 -1
- package/input-autocomplete/esm/index.js +1 -1
- package/input-autocomplete/index.js +1 -1
- package/input-autocomplete/modern/Component.d.ts +2 -2
- package/input-autocomplete/modern/autocomplete-field/Component.js +1 -1
- package/input-autocomplete/modern/autocomplete-field/index.css +2 -2
- package/intl-phone-input/{component-c769f9ab.d.ts → component-287e197d.d.ts} +0 -0
- package/intl-phone-input/component-287e197d.js +72 -0
- package/intl-phone-input/component.js +3 -3
- package/intl-phone-input/components/flag-icon/component.js +1 -1
- package/intl-phone-input/components/flag-icon/index.css +784 -784
- package/intl-phone-input/components/index.js +1 -1
- package/intl-phone-input/components/select/component.js +2 -2
- package/intl-phone-input/components/select/index.css +6 -9
- package/intl-phone-input/components/select/index.js +1 -1
- package/intl-phone-input/components/select-field/component.js +1 -1
- package/intl-phone-input/components/select-field/index.css +8 -11
- package/intl-phone-input/components/select-field/index.d.ts +1 -1
- package/intl-phone-input/components/select-field/index.js +1 -1
- package/intl-phone-input/{cssm/component-88f82cfc.d.ts → esm/component-8145572d.d.ts} +0 -0
- package/intl-phone-input/esm/component-8145572d.js +65 -0
- package/intl-phone-input/esm/component.js +3 -3
- package/intl-phone-input/esm/components/flag-icon/component.js +1 -1
- package/intl-phone-input/esm/components/flag-icon/index.css +784 -784
- package/intl-phone-input/esm/components/index.js +1 -1
- package/intl-phone-input/esm/components/select/component.js +2 -2
- package/intl-phone-input/esm/components/select/index.css +6 -9
- package/intl-phone-input/esm/components/select/index.js +1 -1
- package/intl-phone-input/esm/components/select-field/component.js +1 -1
- package/intl-phone-input/esm/components/select-field/index.css +8 -11
- package/intl-phone-input/esm/components/select-field/index.d.ts +1 -1
- package/intl-phone-input/esm/components/select-field/index.js +1 -1
- package/intl-phone-input/esm/index.css +3 -3
- package/intl-phone-input/esm/index.js +1 -1
- package/intl-phone-input/{cssm/libphonenumber-js.min-d3a9d490.d.ts → esm/libphonenumber-js.min-d12da39d.d.ts} +0 -0
- package/intl-phone-input/{cssm/libphonenumber-js.min-d3a9d490.js → esm/libphonenumber-js.min-d12da39d.js} +0 -0
- package/intl-phone-input/index.css +3 -3
- package/intl-phone-input/index.js +1 -1
- package/intl-phone-input/{esm/libphonenumber-js.min-5193d589.d.ts → libphonenumber-js.min-02942ad2.d.ts} +0 -0
- package/intl-phone-input/{esm/libphonenumber-js.min-5193d589.js → libphonenumber-js.min-02942ad2.js} +0 -0
- package/intl-phone-input/modern/component.js +2 -2
- package/intl-phone-input/modern/components/flag-icon/component.js +1 -1
- package/intl-phone-input/modern/components/flag-icon/index.css +784 -784
- package/intl-phone-input/modern/components/select/component.js +1 -1
- package/intl-phone-input/modern/components/select/index.css +6 -9
- package/intl-phone-input/modern/components/select-field/component.js +1 -1
- package/intl-phone-input/modern/components/select-field/index.css +8 -11
- package/intl-phone-input/modern/index.css +3 -3
- package/intl-phone-input/{libphonenumber-js.min-b3a8fa4e.d.ts → modern/libphonenumber-js.min-d12da39d.d.ts} +0 -0
- package/intl-phone-input/{libphonenumber-js.min-b3a8fa4e.js → modern/libphonenumber-js.min-d12da39d.js} +0 -0
- package/link/default.css +0 -3
- package/link/esm/default.css +0 -3
- package/link/esm/index.css +0 -3
- package/link/esm/inverted.css +0 -3
- package/link/index.css +0 -3
- package/link/inverted.css +0 -3
- package/link/modern/default.css +0 -3
- package/link/modern/index.css +0 -3
- package/link/modern/inverted.css +0 -3
- package/list/esm/index.css +0 -3
- package/list/index.css +0 -3
- package/list/modern/index.css +0 -3
- package/list-header/esm/index.css +0 -3
- package/list-header/index.css +0 -3
- package/list-header/modern/index.css +0 -3
- package/masked-input/Component.d.ts +1 -1
- package/masked-input/esm/Component.d.ts +1 -1
- package/masked-input/modern/Component.d.ts +1 -1
- package/modal/Component.desktop.js +2 -2
- package/modal/Component.mobile.js +2 -2
- package/modal/Component.responsive.d.ts +3 -3
- package/modal/Component.responsive.js +2 -2
- package/modal/components/closer/Component.js +1 -1
- package/modal/components/closer/index.css +0 -5
- package/modal/components/content/Component.desktop.js +1 -1
- package/modal/components/content/Component.mobile.js +1 -1
- package/modal/components/content/desktop.css +20 -7
- package/modal/components/content/mobile.css +20 -7
- package/modal/components/footer/Component.desktop.js +1 -1
- package/modal/components/footer/Component.mobile.js +1 -1
- package/modal/components/footer/desktop.css +20 -7
- package/modal/components/footer/layout.css +0 -5
- package/modal/components/footer/mobile.css +20 -7
- package/modal/components/header/Component.desktop.js +1 -1
- package/modal/components/header/Component.js +1 -1
- package/modal/components/header/Component.mobile.js +1 -1
- package/modal/components/header/desktop.css +20 -7
- package/modal/components/header/mobile.css +20 -7
- package/modal/desktop.css +0 -5
- package/modal/desktop.js +2 -2
- package/modal/esm/Component.desktop.js +2 -2
- package/modal/esm/Component.mobile.js +2 -2
- package/modal/esm/Component.responsive.js +2 -2
- package/modal/esm/components/closer/Component.js +1 -1
- package/modal/esm/components/closer/index.css +0 -5
- package/modal/esm/components/content/Component.desktop.js +1 -1
- package/modal/esm/components/content/Component.mobile.js +1 -1
- package/modal/esm/components/content/desktop.css +20 -7
- package/modal/esm/components/content/mobile.css +20 -7
- package/modal/esm/components/footer/Component.desktop.js +1 -1
- package/modal/esm/components/footer/Component.mobile.js +1 -1
- package/modal/esm/components/footer/desktop.css +20 -7
- package/modal/esm/components/footer/layout.css +0 -5
- package/modal/esm/components/footer/mobile.css +20 -7
- package/modal/esm/components/header/Component.desktop.js +1 -1
- package/modal/esm/components/header/Component.js +1 -1
- package/modal/esm/components/header/Component.mobile.js +1 -1
- package/modal/esm/components/header/desktop.css +20 -7
- package/modal/esm/components/header/mobile.css +20 -7
- package/modal/esm/desktop.css +0 -5
- package/modal/esm/desktop.js +2 -2
- package/modal/esm/index.js +2 -2
- package/modal/esm/mobile.css +0 -5
- package/modal/esm/mobile.js +2 -2
- package/modal/esm/responsive.js +2 -2
- package/modal/esm/{transitions.module-1f138c91.js → transitions.module-1ef342f7.js} +0 -0
- package/{grid/esm/gutters.module-c9c70930.d.ts → modal/esm/tslib.es6-ebe3bc3b.d.ts} +0 -0
- package/modal/esm/{tslib.es6-f7ad96ab.js → tslib.es6-ebe3bc3b.js} +0 -0
- package/modal/index.js +2 -2
- package/modal/mobile.css +0 -5
- package/modal/mobile.js +2 -2
- package/modal/modern/Component.desktop.js +1 -1
- package/modal/modern/Component.mobile.js +1 -1
- package/modal/modern/Component.responsive.js +1 -1
- package/modal/modern/components/closer/index.css +0 -5
- package/modal/modern/components/content/desktop.css +20 -7
- package/modal/modern/components/content/mobile.css +20 -7
- package/modal/modern/components/footer/desktop.css +20 -7
- package/modal/modern/components/footer/layout.css +0 -5
- package/modal/modern/components/footer/mobile.css +20 -7
- package/modal/modern/components/header/desktop.css +20 -7
- package/modal/modern/components/header/mobile.css +20 -7
- package/modal/modern/desktop.css +0 -5
- package/modal/modern/desktop.js +1 -1
- package/modal/modern/index.js +1 -1
- package/modal/modern/mobile.css +0 -5
- package/modal/modern/mobile.js +1 -1
- package/modal/modern/responsive.js +1 -1
- package/modal/modern/{transitions.module-1f138c91.js → transitions.module-1ef342f7.js} +0 -0
- package/modal/responsive.js +2 -2
- package/modal/{transitions.module-886c7414.js → transitions.module-22352f4f.js} +0 -0
- package/{grid/gutters.module-ec984f94.d.ts → modal/tslib.es6-8c57e210.d.ts} +0 -0
- package/{calendar/tslib.es6-50162ba7.js → modal/tslib.es6-8c57e210.js} +0 -0
- package/notification/esm/index.css +0 -5
- package/notification/index.css +0 -5
- package/notification/modern/index.css +0 -5
- package/package.json +3 -3
- package/password-input/component.d.ts +1 -1
- package/password-input/component.js +8 -4
- package/password-input/esm/component.d.ts +1 -1
- package/password-input/esm/component.js +7 -4
- package/password-input/esm/index.css +10 -2
- package/password-input/esm/index.js +1 -0
- package/password-input/index.css +10 -2
- package/password-input/index.js +1 -0
- package/password-input/modern/component.d.ts +1 -1
- package/password-input/modern/component.js +6 -3
- package/password-input/modern/index.css +10 -2
- package/password-input/modern/index.js +1 -0
- package/picker-button/Component-952ada36.d.ts +812 -0
- package/picker-button/Component-952ada36.js +63 -0
- package/picker-button/Component.js +2 -2
- package/picker-button/esm/Component-9625a611.d.ts +812 -0
- package/picker-button/esm/Component-9625a611.js +57 -0
- package/picker-button/esm/Component.js +2 -2
- package/picker-button/esm/field/Component.js +1 -1
- package/picker-button/esm/field/index.css +3 -8
- package/picker-button/esm/field/index.d.ts +1 -1
- package/picker-button/esm/field/index.js +1 -1
- package/picker-button/esm/index.css +2 -2
- package/picker-button/esm/index.js +1 -1
- package/picker-button/field/Component.js +1 -1
- package/picker-button/field/index.css +3 -8
- package/picker-button/field/index.d.ts +1 -1
- package/picker-button/field/index.js +1 -1
- package/picker-button/index.css +2 -2
- package/picker-button/index.js +1 -1
- package/picker-button/modern/Component.js +1 -1
- package/picker-button/modern/field/Component.d.ts +7 -3
- package/picker-button/modern/field/Component.js +1 -1
- package/picker-button/modern/field/index.css +3 -8
- package/picker-button/modern/index.css +2 -2
- package/plate/esm/index.css +0 -3
- package/plate/index.css +0 -3
- package/plate/modern/index.css +0 -3
- package/popover/Component.d.ts +4 -0
- package/popover/Component.js +24 -2
- package/popover/esm/Component.d.ts +4 -0
- package/popover/esm/Component.js +25 -3
- package/popover/esm/index.css +0 -3
- package/popover/esm/index.js +1 -0
- package/popover/index.css +0 -3
- package/popover/index.js +1 -0
- package/popover/modern/Component.d.ts +4 -0
- package/popover/modern/Component.js +25 -2
- package/popover/modern/index.css +0 -3
- package/popover/modern/index.js +1 -0
- package/progress-bar/esm/index.css +0 -3
- package/progress-bar/index.css +0 -3
- package/progress-bar/modern/index.css +0 -3
- package/pure-input/esm/index.css +3 -3
- package/pure-input/index.css +3 -3
- package/pure-input/modern/index.css +3 -3
- package/radio/esm/index.css +0 -3
- package/radio/index.css +0 -3
- package/radio/modern/index.css +0 -3
- package/radio-group/Component.d.ts +1 -1
- package/radio-group/Component.js +1 -1
- package/radio-group/esm/Component.d.ts +1 -1
- package/radio-group/esm/Component.js +1 -1
- package/radio-group/esm/index.css +0 -3
- package/radio-group/index.css +0 -3
- package/radio-group/modern/Component.d.ts +1 -1
- package/radio-group/modern/Component.js +1 -1
- package/radio-group/modern/index.css +0 -3
- package/select/Component.d.ts +2 -2
- package/select/Component.js +1 -1
- package/select/components/arrow/Component.js +1 -1
- package/select/components/arrow/index.css +3 -8
- package/select/components/base-select/Component.js +2 -2
- package/select/components/base-select/index.css +7 -10
- package/select/components/base-select/index.js +1 -1
- package/select/components/checkmark/Component.js +1 -1
- package/select/components/checkmark/index.css +3 -6
- package/select/components/field/Component.d.ts +1 -1
- package/select/components/field/Component.js +2 -2
- package/select/components/field/index.css +9 -12
- package/select/components/field/index.js +1 -1
- package/select/components/index.js +1 -1
- package/select/components/native-select/Component.js +1 -1
- package/select/components/native-select/index.js +1 -1
- package/select/components/optgroup/Component.js +1 -1
- package/select/components/optgroup/index.css +6 -9
- package/select/components/option/Component.js +2 -2
- package/select/components/option/index.css +20 -23
- package/select/components/option/index.js +1 -1
- package/select/components/options-list/Component.js +1 -1
- package/select/components/options-list/index.css +5 -8
- package/select/components/virtual-options-list/Component.js +1 -1
- package/select/components/virtual-options-list/index.css +11 -14
- package/select/esm/Component.d.ts +2 -2
- package/select/esm/Component.js +1 -1
- package/select/esm/components/arrow/Component.js +1 -1
- package/select/esm/components/arrow/index.css +3 -8
- package/select/esm/components/base-select/Component.js +2 -2
- package/select/esm/components/base-select/index.css +7 -10
- package/select/esm/components/base-select/index.js +1 -1
- package/select/esm/components/checkmark/Component.js +1 -1
- package/select/esm/components/checkmark/index.css +3 -6
- package/select/esm/components/field/Component.d.ts +1 -1
- package/select/esm/components/field/Component.js +2 -2
- package/select/esm/components/field/index.css +9 -12
- package/select/esm/components/field/index.js +1 -1
- package/select/esm/components/index.js +1 -1
- package/select/esm/components/native-select/Component.js +1 -1
- package/select/esm/components/native-select/index.js +1 -1
- package/select/esm/components/optgroup/Component.js +1 -1
- package/select/esm/components/optgroup/index.css +6 -9
- package/select/esm/components/option/Component.js +2 -2
- package/select/esm/components/option/index.css +20 -23
- package/select/esm/components/option/index.js +1 -1
- package/select/esm/components/options-list/Component.js +1 -1
- package/select/esm/components/options-list/index.css +5 -8
- package/select/esm/components/virtual-options-list/Component.js +1 -1
- package/select/esm/components/virtual-options-list/index.css +11 -14
- package/select/esm/index.js +1 -1
- package/select/esm/presets/index.js +1 -1
- package/select/esm/presets/useLazyLoading/hook.js +2 -2
- package/select/esm/presets/useLazyLoading/index.css +2 -2
- package/select/esm/presets/useSelectWithLoading/hook.js +2 -2
- package/select/esm/presets/useSelectWithLoading/index.css +2 -2
- package/{modal/tslib.es6-942ff754.d.ts → select/esm/tslib.es6-8b45cf3d.d.ts} +0 -0
- package/select/esm/{tslib.es6-16156773.js → tslib.es6-8b45cf3d.js} +0 -0
- package/select/esm/typings.d.ts +2 -2
- package/select/index.js +1 -1
- package/select/modern/Component.d.ts +2 -2
- package/select/modern/components/arrow/Component.js +1 -1
- package/select/modern/components/arrow/index.css +3 -8
- package/select/modern/components/base-select/Component.js +1 -1
- package/select/modern/components/base-select/index.css +7 -10
- package/select/modern/components/checkmark/Component.js +1 -1
- package/select/modern/components/checkmark/index.css +3 -6
- package/select/modern/components/field/Component.d.ts +1 -1
- package/select/modern/components/field/Component.js +1 -1
- package/select/modern/components/field/index.css +9 -12
- package/select/modern/components/optgroup/Component.js +1 -1
- package/select/modern/components/optgroup/index.css +6 -9
- package/select/modern/components/option/Component.js +1 -1
- package/select/modern/components/option/index.css +20 -23
- package/select/modern/components/options-list/Component.js +1 -1
- package/select/modern/components/options-list/index.css +5 -8
- package/select/modern/components/virtual-options-list/Component.js +1 -1
- package/select/modern/components/virtual-options-list/index.css +11 -14
- package/select/modern/presets/useLazyLoading/hook.js +1 -1
- package/select/modern/presets/useLazyLoading/index.css +2 -2
- package/select/modern/presets/useSelectWithLoading/hook.js +1 -1
- package/select/modern/presets/useSelectWithLoading/index.css +2 -2
- package/select/modern/typings.d.ts +2 -2
- package/select/presets/index.js +1 -1
- package/select/presets/useLazyLoading/hook.js +2 -2
- package/select/presets/useLazyLoading/index.css +2 -2
- package/select/presets/useSelectWithLoading/hook.js +2 -2
- package/select/presets/useSelectWithLoading/index.css +2 -2
- package/{select-with-tags/cssm/tslib.es6-ce870b46.d.ts → select/tslib.es6-eca95c76.d.ts} +0 -0
- package/select/{cssm/tslib.es6-f8106a15.js → tslib.es6-eca95c76.js} +0 -0
- package/select/typings.d.ts +2 -2
- package/select-with-tags/component.js +1 -1
- package/select-with-tags/components/index.js +1 -1
- package/select-with-tags/components/tag/component.js +1 -1
- package/select-with-tags/components/tag/index.js +1 -1
- package/select-with-tags/components/tag-list/component.js +1 -1
- package/select-with-tags/components/tag-list/index.css +0 -3
- package/select-with-tags/components/tag-list/index.js +1 -1
- package/select-with-tags/esm/component.js +1 -1
- package/select-with-tags/esm/components/index.js +1 -1
- package/select-with-tags/esm/components/tag/component.js +1 -1
- package/select-with-tags/esm/components/tag/index.js +1 -1
- package/select-with-tags/esm/components/tag-list/component.js +1 -1
- package/select-with-tags/esm/components/tag-list/index.css +0 -3
- package/select-with-tags/esm/components/tag-list/index.js +1 -1
- package/select-with-tags/esm/index.js +1 -1
- package/{modal/cssm/tslib.es6-ce870b46.d.ts → select-with-tags/esm/tslib.es6-b33b0ccb.d.ts} +0 -0
- package/select-with-tags/esm/{tslib.es6-804a16a0.js → tslib.es6-b33b0ccb.js} +0 -0
- package/select-with-tags/esm/utils/index.js +1 -1
- package/select-with-tags/esm/utils/match.js +1 -1
- package/select-with-tags/index.js +1 -1
- package/select-with-tags/modern/components/tag-list/index.css +0 -3
- package/{modal/esm/tslib.es6-f7ad96ab.d.ts → select-with-tags/tslib.es6-f7cea14b.d.ts} +0 -0
- package/{modal/cssm/tslib.es6-ce870b46.js → select-with-tags/tslib.es6-f7cea14b.js} +0 -0
- package/select-with-tags/utils/index.js +1 -1
- package/select-with-tags/utils/match.js +1 -1
- package/skeleton/esm/index.css +0 -3
- package/skeleton/index.css +0 -3
- package/skeleton/modern/index.css +0 -3
- package/slider/esm/index.css +0 -3
- package/slider/index.css +0 -3
- package/slider/modern/index.css +0 -3
- package/slider-input/esm/index.css +0 -3
- package/slider-input/index.css +0 -3
- package/slider-input/modern/index.css +0 -3
- package/space/Component.js +1 -1
- package/space/{Item-25b63883.d.ts → Item-0663dca1.d.ts} +0 -0
- package/space/{Item-25b63883.js → Item-0663dca1.js} +0 -0
- package/space/Item.js +1 -1
- package/space/esm/Component.js +1 -1
- package/space/{cssm/Item-09e1c4dc.d.ts → esm/Item-2e3eb353.d.ts} +0 -0
- package/space/esm/{Item-e38f68be.js → Item-2e3eb353.js} +0 -0
- package/space/esm/Item.js +1 -1
- package/space/esm/index.css +0 -5
- package/space/esm/index.js +1 -1
- package/space/index.css +0 -5
- package/space/index.js +1 -1
- package/space/modern/index.css +0 -5
- package/status/esm/index.css +0 -3
- package/status/index.css +0 -3
- package/status/modern/index.css +0 -3
- package/stepped-progress-bar/esm/index.css +0 -3
- package/stepped-progress-bar/index.css +0 -3
- package/stepped-progress-bar/modern/index.css +0 -3
- package/switch/esm/index.css +0 -3
- package/switch/index.css +0 -3
- package/switch/modern/index.css +0 -3
- package/tabs/components/primary-tablist/Component.desktop.js +2 -2
- package/tabs/components/primary-tablist/Component.js +1 -1
- package/tabs/components/primary-tablist/Component.mobile.js +2 -2
- package/tabs/components/primary-tablist/Component.responsive.js +2 -2
- package/tabs/components/primary-tablist/index.css +0 -3
- package/tabs/components/primary-tablist/mobile.css +20 -7
- package/tabs/components/scrollable-container/index.css +0 -5
- package/tabs/components/secondary-tablist/Component.desktop.js +2 -2
- package/tabs/components/secondary-tablist/Component.js +1 -1
- package/tabs/components/secondary-tablist/Component.mobile.js +2 -2
- package/tabs/components/secondary-tablist/Component.responsive.js +2 -2
- package/tabs/components/secondary-tablist/index.css +0 -5
- package/tabs/components/secondary-tablist/mobile.css +20 -7
- package/tabs/components/tabs/Component.desktop.js +3 -3
- package/tabs/components/tabs/Component.mobile.js +3 -3
- package/tabs/components/tabs/Component.responsive.js +3 -3
- package/tabs/desktop.js +3 -3
- package/tabs/esm/components/primary-tablist/Component.desktop.js +2 -2
- package/tabs/esm/components/primary-tablist/Component.js +1 -1
- package/tabs/esm/components/primary-tablist/Component.mobile.js +2 -2
- package/tabs/esm/components/primary-tablist/Component.responsive.js +2 -2
- package/tabs/esm/components/primary-tablist/index.css +0 -3
- package/tabs/esm/components/primary-tablist/mobile.css +20 -7
- package/tabs/esm/components/scrollable-container/index.css +0 -5
- package/tabs/esm/components/secondary-tablist/Component.desktop.js +2 -2
- package/tabs/esm/components/secondary-tablist/Component.js +1 -1
- package/tabs/esm/components/secondary-tablist/Component.mobile.js +2 -2
- package/tabs/esm/components/secondary-tablist/Component.responsive.js +2 -2
- package/tabs/esm/components/secondary-tablist/index.css +0 -5
- package/tabs/esm/components/secondary-tablist/mobile.css +20 -7
- package/tabs/esm/components/tabs/Component.desktop.js +3 -3
- package/tabs/esm/components/tabs/Component.mobile.js +3 -3
- package/tabs/esm/components/tabs/Component.responsive.js +3 -3
- package/tabs/esm/desktop.js +3 -3
- package/tabs/esm/index.js +3 -3
- package/tabs/esm/{index.module-a937ba0c.js → index.module-4dc6bbaa.js} +0 -0
- package/tabs/esm/{index.module-bc41e7d6.js → index.module-936763a2.js} +0 -0
- package/tabs/esm/mobile.js +3 -3
- package/tabs/esm/responsive.js +3 -3
- package/{select-with-tags/esm/tslib.es6-804a16a0.d.ts → tabs/esm/tslib.es6-4c8e5e12.d.ts} +0 -0
- package/tabs/esm/{tslib.es6-76e00eac.js → tslib.es6-4c8e5e12.js} +0 -0
- package/tabs/index.js +3 -3
- package/tabs/{index.module-f954e53a.js → index.module-c431d803.js} +0 -0
- package/tabs/{index.module-a9002643.js → index.module-c4eddd2e.js} +0 -0
- package/tabs/mobile.js +3 -3
- package/tabs/modern/components/primary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.mobile.js +1 -1
- package/tabs/modern/components/primary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/primary-tablist/index.css +0 -3
- package/tabs/modern/components/primary-tablist/mobile.css +20 -7
- package/tabs/modern/components/scrollable-container/index.css +0 -5
- package/tabs/modern/components/secondary-tablist/Component.desktop.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.mobile.js +1 -1
- package/tabs/modern/components/secondary-tablist/Component.responsive.js +1 -1
- package/tabs/modern/components/secondary-tablist/index.css +0 -5
- package/tabs/modern/components/secondary-tablist/mobile.css +20 -7
- package/tabs/modern/components/tabs/Component.desktop.js +2 -2
- package/tabs/modern/components/tabs/Component.mobile.js +2 -2
- package/tabs/modern/components/tabs/Component.responsive.js +2 -2
- package/tabs/modern/desktop.js +2 -2
- package/tabs/modern/index.js +2 -2
- package/tabs/modern/{index.module-a937ba0c.js → index.module-4dc6bbaa.js} +0 -0
- package/tabs/modern/{index.module-bc41e7d6.js → index.module-936763a2.js} +0 -0
- package/tabs/modern/mobile.js +2 -2
- package/tabs/modern/responsive.js +2 -2
- package/tabs/responsive.js +3 -3
- package/{select-with-tags/tslib.es6-40228fff.d.ts → tabs/tslib.es6-32178775.d.ts} +0 -0
- package/{modal/tslib.es6-942ff754.js → tabs/tslib.es6-32178775.js} +0 -0
- package/tag/default.css +0 -3
- package/tag/esm/default.css +0 -3
- package/tag/esm/index.css +0 -3
- package/tag/esm/inverted.css +0 -3
- package/tag/index.css +0 -3
- package/tag/inverted.css +0 -3
- package/tag/modern/default.css +0 -3
- package/tag/modern/index.css +0 -3
- package/tag/modern/inverted.css +0 -3
- package/textarea/Component.d.ts +2 -2
- package/textarea/default.css +3 -3
- package/textarea/esm/Component.d.ts +2 -2
- package/textarea/esm/default.css +3 -3
- package/textarea/esm/index.css +0 -3
- package/textarea/esm/inverted.css +3 -3
- package/textarea/index.css +0 -3
- package/textarea/inverted.css +3 -3
- package/textarea/modern/Component.d.ts +2 -2
- package/textarea/modern/default.css +3 -3
- package/textarea/modern/index.css +0 -3
- package/textarea/modern/inverted.css +3 -3
- package/themes/backdrop/click.css +0 -3
- package/themes/button/click.css +0 -10
- package/themes/button/corp.css +4 -13
- package/themes/button/mobile.css +0 -9
- package/themes/calendar/click.css +0 -5
- package/themes/checkbox/click.css +0 -5
- package/themes/checkbox/mobile.css +0 -8
- package/themes/click.css +589 -302
- package/themes/compiled/mobile-dark-bluetint.css +723 -0
- package/themes/compiled/mobile-dark-bluetint.d.ts +2 -0
- package/themes/compiled/mobile-dark-bluetint.js +9 -0
- package/themes/confirmation/click.css +0 -5
- package/themes/corp.css +494 -27
- package/themes/dark.css +134 -0
- package/themes/dark.d.ts +2 -0
- package/themes/dark.js +10 -0
- package/themes/dist/amount/click.css +4 -0
- package/themes/dist/backdrop/click.css +4 -0
- package/themes/dist/button/click.css +13 -0
- package/themes/dist/button/corp.css +21 -0
- package/themes/dist/button/mobile.css +19 -0
- package/themes/dist/button/site.css +5 -0
- package/themes/dist/calendar/click.css +11 -0
- package/themes/dist/calendar-input/mobile.css +3 -0
- package/themes/dist/checkbox/click.css +9 -0
- package/themes/dist/checkbox/mobile.css +19 -0
- package/themes/dist/click.css +693 -0
- package/themes/dist/compiled/mobile-dark-bluetint.css +1752 -0
- package/themes/dist/compiled/mobile-dark-bluetint.d.ts +2 -0
- package/themes/dist/compiled/mobile-dark-bluetint.js +11 -0
- package/themes/dist/confirmation/click.css +12 -0
- package/themes/dist/confirmation/mobile.css +7 -0
- package/themes/dist/corp.css +517 -0
- package/themes/dist/dark.css +134 -0
- package/themes/dist/dark.d.ts +2 -0
- package/themes/dist/dark.js +12 -0
- package/themes/dist/dropzone/click.css +5 -0
- package/themes/dist/esm/compiled/mobile-dark-bluetint.d.ts +2 -0
- package/themes/dist/esm/compiled/mobile-dark-bluetint.js +4 -0
- package/themes/dist/esm/dark.d.ts +2 -0
- package/themes/dist/esm/dark.js +6 -0
- package/themes/dist/form-control/click.css +31 -0
- package/themes/dist/form-control/mobile.css +34 -0
- package/themes/dist/form-control/site.css +5 -0
- package/themes/dist/input/click.css +8 -0
- package/themes/dist/input/corp.css +3 -0
- package/themes/dist/input/mobile.css +13 -0
- package/themes/dist/input/site.css +4 -0
- package/themes/dist/link/click.css +25 -0
- package/themes/dist/list/click.css +4 -0
- package/themes/dist/mixins/amount/click.css +4 -0
- package/themes/dist/mixins/backdrop/click.css +4 -0
- package/themes/dist/mixins/button/click.css +13 -0
- package/themes/dist/mixins/button/corp.css +21 -0
- package/themes/dist/mixins/button/mobile.css +19 -0
- package/themes/dist/mixins/button/site.css +5 -0
- package/themes/dist/mixins/calendar/click.css +11 -0
- package/themes/dist/mixins/calendar-input/mobile.css +3 -0
- package/themes/dist/mixins/checkbox/click.css +9 -0
- package/themes/dist/mixins/checkbox/mobile.css +19 -0
- package/themes/dist/mixins/click.css +46 -0
- package/themes/dist/mixins/confirmation/click.css +12 -0
- package/themes/dist/mixins/confirmation/mobile.css +7 -0
- package/themes/dist/mixins/corp.css +9 -0
- package/themes/dist/mixins/dark.css +134 -0
- package/themes/dist/mixins/dropzone/click.css +5 -0
- package/themes/dist/mixins/form-control/click.css +31 -0
- package/themes/dist/mixins/form-control/mobile.css +34 -0
- package/themes/dist/mixins/form-control/site.css +5 -0
- package/themes/dist/mixins/input/click.css +8 -0
- package/themes/dist/mixins/input/corp.css +3 -0
- package/themes/dist/mixins/input/mobile.css +13 -0
- package/themes/dist/mixins/input/site.css +4 -0
- package/themes/dist/mixins/link/click.css +25 -0
- package/themes/dist/mixins/list/click.css +4 -0
- package/themes/dist/mixins/mobile.css +25 -0
- package/themes/dist/mixins/modal/click.css +29 -0
- package/themes/dist/mixins/radio/click.css +9 -0
- package/themes/dist/mixins/radio/mobile.css +19 -0
- package/themes/dist/mixins/select/click.css +18 -0
- package/themes/dist/mixins/site.css +11 -0
- package/themes/dist/mixins/skeleton/click.css +8 -0
- package/themes/dist/mixins/slider/click.css +16 -0
- package/themes/dist/mixins/slider/mobile.css +5 -0
- package/themes/dist/mixins/slider-input/mobile.css +3 -0
- package/themes/dist/mixins/switch/click.css +5 -0
- package/themes/dist/mixins/tabs/click.css +20 -0
- package/themes/dist/mixins/tabs/corp.css +4 -0
- package/themes/dist/mixins/tabs/site.css +8 -0
- package/themes/dist/mixins/tag/click.css +11 -0
- package/themes/dist/mixins/tag/mobile.css +14 -0
- package/themes/dist/mixins/toast-plate/click.css +8 -0
- package/themes/dist/mobile.css +594 -0
- package/themes/dist/modal/click.css +29 -0
- package/themes/dist/modern/compiled/mobile-dark-bluetint.d.ts +2 -0
- package/themes/dist/modern/compiled/mobile-dark-bluetint.js +4 -0
- package/themes/dist/modern/dark.d.ts +2 -0
- package/themes/dist/modern/dark.js +6 -0
- package/themes/dist/package.json +12 -0
- package/themes/dist/radio/click.css +9 -0
- package/themes/dist/radio/mobile.css +19 -0
- package/themes/dist/select/click.css +18 -0
- package/{dark-theme-styles-injector → themes/dist}/send-stats.js +0 -0
- package/themes/dist/site.css +511 -0
- package/themes/dist/skeleton/click.css +8 -0
- package/themes/dist/slider/click.css +16 -0
- package/themes/dist/slider/mobile.css +5 -0
- package/themes/dist/slider-input/mobile.css +3 -0
- package/themes/dist/switch/click.css +5 -0
- package/themes/dist/tabs/click.css +20 -0
- package/themes/dist/tabs/corp.css +4 -0
- package/themes/dist/tabs/site.css +8 -0
- package/themes/dist/tag/click.css +11 -0
- package/themes/dist/tag/mobile.css +14 -0
- package/themes/dist/toast-plate/click.css +8 -0
- package/themes/dropzone/click.css +5 -0
- package/themes/esm/compiled/mobile-dark-bluetint.d.ts +2 -0
- package/themes/esm/compiled/mobile-dark-bluetint.js +1 -0
- package/themes/esm/dark.d.ts +2 -0
- package/themes/esm/dark.js +6 -0
- package/themes/form-control/click.css +0 -8
- package/themes/form-control/mobile.css +0 -7
- package/themes/input/click.css +0 -4
- package/themes/input/mobile.css +0 -9
- package/themes/link/click.css +6 -19
- package/themes/list/click.css +0 -3
- package/themes/mixins/backdrop/click.css +0 -3
- package/themes/mixins/button/click.css +0 -10
- package/themes/mixins/button/corp.css +4 -13
- package/themes/mixins/button/mobile.css +0 -9
- package/themes/mixins/calendar/click.css +0 -5
- package/themes/mixins/checkbox/click.css +0 -5
- package/themes/mixins/checkbox/mobile.css +0 -8
- package/themes/mixins/click.css +2 -0
- package/themes/mixins/confirmation/click.css +0 -5
- package/themes/mixins/dark.css +134 -0
- package/themes/mixins/dropzone/click.css +5 -0
- package/themes/mixins/form-control/click.css +0 -8
- package/themes/mixins/form-control/mobile.css +0 -7
- package/themes/mixins/input/click.css +0 -4
- package/themes/mixins/input/mobile.css +0 -9
- package/themes/mixins/link/click.css +6 -19
- package/themes/mixins/list/click.css +0 -3
- package/themes/mixins/modal/click.css +0 -10
- package/themes/mixins/radio/click.css +0 -5
- package/themes/mixins/radio/mobile.css +0 -8
- package/themes/mixins/skeleton/click.css +0 -4
- package/themes/mixins/slider/click.css +0 -10
- package/themes/mixins/switch/click.css +0 -3
- package/themes/mixins/tabs/click.css +0 -6
- package/themes/mixins/tabs/corp.css +0 -3
- package/themes/mixins/tabs/site.css +0 -4
- package/themes/mixins/tag/click.css +0 -5
- package/themes/mixins/tag/mobile.css +0 -7
- package/themes/mixins/toast-plate/click.css +0 -4
- package/themes/mobile.css +512 -133
- package/themes/modal/click.css +0 -10
- package/themes/modern/compiled/mobile-dark-bluetint.d.ts +2 -0
- package/themes/modern/compiled/mobile-dark-bluetint.js +1 -0
- package/themes/modern/dark.d.ts +2 -0
- package/themes/modern/dark.js +6 -0
- package/themes/package.json +1 -10
- package/themes/radio/click.css +0 -5
- package/themes/radio/mobile.css +0 -8
- package/themes/send-stats.js +82 -0
- package/themes/site.css +496 -24
- package/themes/skeleton/click.css +0 -4
- package/themes/slider/click.css +0 -10
- package/themes/switch/click.css +0 -3
- package/themes/tabs/click.css +0 -6
- package/themes/tabs/corp.css +0 -3
- package/themes/tabs/site.css +0 -4
- package/themes/tag/click.css +0 -5
- package/themes/tag/mobile.css +0 -7
- package/themes/toast-plate/click.css +0 -4
- package/toast/esm/index.css +0 -5
- package/toast/index.css +0 -5
- package/toast/modern/index.css +0 -5
- package/toast-plate/esm/index.css +20 -4
- package/toast-plate/index.css +20 -4
- package/toast-plate/modern/index.css +20 -4
- package/tooltip/{Component-84e0384c.d.ts → Component-fd17e172.d.ts} +0 -0
- package/tooltip/{Component-84e0384c.js → Component-fd17e172.js} +0 -0
- package/tooltip/Component.js +1 -1
- package/tooltip/component.responsive.js +1 -1
- package/tooltip/{cssm/Component-1d6b7d3e.d.ts → esm/Component-d059ddd0.d.ts} +0 -0
- package/tooltip/esm/{Component-24cdba1a.js → Component-d059ddd0.js} +0 -0
- package/tooltip/esm/Component.js +1 -1
- package/tooltip/esm/component.responsive.js +1 -1
- package/tooltip/esm/index.css +0 -3
- package/tooltip/esm/index.d.ts +1 -1
- package/tooltip/esm/index.js +1 -1
- package/tooltip/esm/responsive.js +1 -1
- package/tooltip/index.css +0 -3
- package/tooltip/index.d.ts +1 -1
- package/tooltip/index.js +1 -1
- package/tooltip/modern/index.css +0 -3
- package/tooltip/responsive.js +1 -1
- package/typography/colors.css +0 -3
- package/{select/cssm/tslib.es6-f8106a15.d.ts → typography/colors.module-7d312c25.d.ts} +0 -0
- package/typography/{colors.module-420a9860.js → colors.module-7d312c25.js} +0 -0
- package/typography/{common.module-b0f51443.js → common.module-c6130e05.js} +0 -0
- package/typography/component.js +2 -2
- package/typography/esm/colors.css +0 -3
- package/{select/esm/tslib.es6-16156773.d.ts → typography/esm/colors.module-c988507f.d.ts} +0 -0
- package/typography/esm/{colors.module-d9df1b1f.js → colors.module-c988507f.js} +0 -0
- package/typography/esm/{common.module-a1e46866.js → common.module-15dfca9d.js} +0 -0
- package/typography/esm/component.js +2 -2
- package/typography/esm/index.js +2 -2
- package/typography/esm/text/component.d.ts +36 -2
- package/typography/esm/text/component.js +5 -5
- package/typography/esm/text/index.css +0 -5
- package/typography/esm/text/index.js +1 -1
- package/typography/esm/title/component.d.ts +39 -1
- package/typography/esm/title/component.js +5 -5
- package/typography/esm/title/index.css +0 -5
- package/typography/esm/title/index.js +2 -2
- package/typography/esm/title-responsive/component.js +2 -2
- package/typography/esm/title-responsive/index.css +0 -5
- package/typography/esm/title-responsive/index.js +2 -2
- package/typography/index.js +2 -2
- package/typography/modern/colors.css +0 -3
- package/typography/modern/{colors.module-e0852db7.js → colors.module-3f74b55a.js} +0 -0
- package/typography/modern/{common.module-a1e46866.js → common.module-15dfca9d.js} +0 -0
- package/typography/modern/component.js +2 -2
- package/typography/modern/index.js +2 -2
- package/typography/modern/text/component.d.ts +36 -2
- package/typography/modern/text/component.js +3 -3
- package/typography/modern/text/index.css +0 -5
- package/typography/modern/text/index.js +1 -1
- package/typography/modern/title/component.d.ts +39 -1
- package/typography/modern/title/component.js +3 -3
- package/typography/modern/title/index.css +0 -5
- package/typography/modern/title/index.js +2 -2
- package/typography/modern/title-responsive/component.js +2 -2
- package/typography/modern/title-responsive/index.css +0 -5
- package/typography/modern/title-responsive/index.js +2 -2
- package/typography/text/component.d.ts +36 -2
- package/typography/text/component.js +4 -4
- package/typography/text/index.css +0 -5
- package/typography/text/index.js +1 -1
- package/typography/title/component.d.ts +39 -1
- package/typography/title/component.js +4 -4
- package/typography/title/index.css +0 -5
- package/typography/title/index.js +2 -2
- package/typography/title-responsive/component.js +2 -2
- package/typography/title-responsive/index.css +0 -5
- package/typography/title-responsive/index.js +2 -2
- package/vars/colors-bluetint.css +41 -27
- package/vars/colors-bluetint.d.ts +2 -0
- package/vars/colors-bluetint.js +10 -0
- package/vars/colors-indigo.css +22 -4
- package/vars/colors-indigo.d.ts +2 -0
- package/vars/colors-indigo.js +10 -0
- package/vars/dist/border-radius.css +9 -0
- package/vars/dist/colors-addons.css +55 -0
- package/vars/dist/colors-bluetint.css +246 -0
- package/vars/dist/colors-bluetint.d.ts +2 -0
- package/vars/dist/colors-bluetint.js +12 -0
- package/vars/dist/colors-indigo.css +268 -0
- package/vars/dist/colors-indigo.d.ts +2 -0
- package/vars/dist/colors-indigo.js +12 -0
- package/vars/dist/colors-transparent.css +22 -0
- package/vars/dist/colors.css +71 -0
- package/vars/dist/cssm/border-radius.css +9 -0
- package/vars/dist/cssm/colors-addons.css +55 -0
- package/vars/dist/cssm/colors-bluetint.css +246 -0
- package/vars/dist/cssm/colors-bluetint.d.ts +2 -0
- package/vars/dist/cssm/colors-bluetint.js +12 -0
- package/vars/dist/cssm/colors-indigo.css +264 -0
- package/vars/dist/cssm/colors-indigo.d.ts +2 -0
- package/vars/dist/cssm/colors-indigo.js +12 -0
- package/vars/dist/cssm/colors-transparent.css +22 -0
- package/vars/dist/cssm/colors.css +71 -0
- package/vars/dist/cssm/gaps.css +30 -0
- package/vars/dist/cssm/index.css +495 -0
- package/{amount/cssm/types/amount-props.js → vars/dist/cssm/mixins.css} +0 -0
- package/vars/dist/cssm/shadows-indigo.css +38 -0
- package/vars/dist/cssm/typography.css +6 -0
- package/vars/dist/esm/colors-bluetint.d.ts +2 -0
- package/vars/dist/esm/colors-bluetint.js +6 -0
- package/vars/dist/esm/colors-indigo.d.ts +2 -0
- package/vars/dist/esm/colors-indigo.js +6 -0
- package/vars/dist/gaps.css +30 -0
- package/vars/dist/index.css +9 -0
- package/vars/dist/mixins.css +4 -0
- package/vars/dist/modern/colors-bluetint.d.ts +2 -0
- package/vars/dist/modern/colors-bluetint.js +6 -0
- package/vars/dist/modern/colors-indigo.d.ts +2 -0
- package/vars/dist/modern/colors-indigo.js +6 -0
- package/vars/dist/package.json +13 -0
- package/vars/dist/send-stats.js +82 -0
- package/vars/dist/shadows-indigo.css +38 -0
- package/vars/dist/typography.css +486 -0
- package/vars/esm/colors-bluetint.d.ts +2 -0
- package/vars/esm/colors-bluetint.js +6 -0
- package/vars/esm/colors-indigo.d.ts +2 -0
- package/vars/esm/colors-indigo.js +6 -0
- package/vars/modern/colors-bluetint.d.ts +2 -0
- package/vars/modern/colors-bluetint.js +6 -0
- package/vars/modern/colors-indigo.d.ts +2 -0
- package/vars/modern/colors-indigo.js +6 -0
- package/vars/package.json +1 -11
- package/vars/send-stats.js +82 -0
- package/vars/typography.css +36 -0
- package/with-suffix/Component.d.ts +2 -2
- package/with-suffix/esm/Component.d.ts +2 -2
- package/with-suffix/modern/Component.d.ts +2 -2
- package/alert/cssm/Component.d.ts +0 -5
- package/alert/cssm/Component.js +0 -58
- package/alert/cssm/index.js +0 -11
- package/alert/cssm/index.module.css +0 -42
- package/amount/cssm/component.d.ts +0 -9
- package/amount/cssm/component.js +0 -35
- package/amount/cssm/index.d.ts +0 -8
- package/amount/cssm/index.js +0 -14
- package/amount/cssm/index.module.css +0 -25
- package/amount/cssm/pure/component.d.ts +0 -10
- package/amount/cssm/pure/component.js +0 -30
- package/amount/cssm/pure/index.d.ts +0 -1
- package/amount/cssm/pure/index.js +0 -11
- package/amount/cssm/pure/index.module.css +0 -3
- package/amount/cssm/types/amount-props.d.ts +0 -29
- package/amount/cssm/types/index.d.ts +0 -2
- package/amount/cssm/types/index.js +0 -1
- package/amount-input/cssm/Component.d.ts +0 -98
- package/amount-input/cssm/Component.js +0 -168
- package/amount-input/cssm/default.module.css +0 -20
- package/amount-input/cssm/index.js +0 -16
- package/amount-input/cssm/index.module.css +0 -40
- package/amount-input/cssm/inverted.module.css +0 -21
- package/amount-input/cssm/utils/index.d.ts +0 -10
- package/amount-input/cssm/utils/index.js +0 -40
- package/attach/cssm/Component.d.ts +0 -133
- package/attach/cssm/Component.js +0 -145
- package/attach/cssm/index.js +0 -18
- package/attach/cssm/index.module.css +0 -108
- package/attach/cssm/utils/index.d.ts +0 -2
- package/attach/cssm/utils/index.js +0 -11
- package/backdrop/cssm/Component.d.ts +0 -36
- package/backdrop/cssm/Component.js +0 -62
- package/backdrop/cssm/index.d.ts +0 -1
- package/backdrop/cssm/index.js +0 -11
- package/backdrop/cssm/index.module.css +0 -49
- package/backdrop/cssm/vars.css +0 -13
- package/badge/cssm/Component.d.ts +0 -34
- package/badge/cssm/Component.js +0 -26
- package/badge/cssm/index.d.ts +0 -1
- package/badge/cssm/index.js +0 -10
- package/badge/cssm/index.module.css +0 -117
- package/bank-card/cssm/Component.d.ts +0 -41
- package/bank-card/cssm/Component.js +0 -70
- package/bank-card/cssm/index.d.ts +0 -1
- package/bank-card/cssm/index.js +0 -15
- package/bank-card/cssm/index.module.css +0 -617
- package/bank-card/cssm/utils.d.ts +0 -8
- package/bank-card/cssm/utils.js +0 -27
- package/base-modal/cssm/Component.d.ts +0 -125
- package/base-modal/cssm/Component.js +0 -236
- package/base-modal/cssm/index.d.ts +0 -2
- package/base-modal/cssm/index.js +0 -23
- package/base-modal/cssm/index.module.css +0 -64
- package/base-modal/cssm/utils.d.ts +0 -5
- package/base-modal/cssm/utils.js +0 -80
- package/bottom-sheet/Component-75c61faf.js +0 -56
- package/bottom-sheet/cssm/Component-3a3629ef.js +0 -56
- package/bottom-sheet/cssm/component.d.ts +0 -55
- package/bottom-sheet/cssm/component.js +0 -150
- package/bottom-sheet/cssm/components/footer/Component.d.ts +0 -13
- package/bottom-sheet/cssm/components/footer/Component.js +0 -26
- package/bottom-sheet/cssm/components/footer/index.module.css +0 -28
- package/bottom-sheet/cssm/components/swipeable-backdrop/Component.d.ts +0 -0
- package/bottom-sheet/cssm/components/swipeable-backdrop/Component.js +0 -9
- package/bottom-sheet/cssm/index.d.ts +0 -1
- package/bottom-sheet/cssm/index.js +0 -18
- package/bottom-sheet/cssm/index.module.css +0 -94
- package/bottom-sheet/esm/Component-00c8f157.d.ts +0 -50
- package/bottom-sheet/esm/Component-00c8f157.js +0 -52
- package/button/cssm/Component.d.ts +0 -63
- package/button/cssm/Component.js +0 -129
- package/button/cssm/default.module.css +0 -196
- package/button/cssm/index.d.ts +0 -1
- package/button/cssm/index.js +0 -16
- package/button/cssm/index.module.css +0 -190
- package/button/cssm/inverted.module.css +0 -184
- package/calendar/cssm/Component.d.ts +0 -67
- package/calendar/cssm/Component.js +0 -103
- package/calendar/cssm/components/days-table/Component.d.ts +0 -32
- package/calendar/cssm/components/days-table/Component.js +0 -77
- package/calendar/cssm/components/days-table/index.d.ts +0 -1
- package/calendar/cssm/components/days-table/index.js +0 -16
- package/calendar/cssm/components/days-table/index.module.css +0 -243
- package/calendar/cssm/components/header/Component.d.ts +0 -46
- package/calendar/cssm/components/header/Component.js +0 -38
- package/calendar/cssm/components/header/index.d.ts +0 -1
- package/calendar/cssm/components/header/index.js +0 -14
- package/calendar/cssm/components/header/index.module.css +0 -113
- package/calendar/cssm/components/months-table/Component.d.ts +0 -18
- package/calendar/cssm/components/months-table/Component.js +0 -30
- package/calendar/cssm/components/months-table/index.d.ts +0 -1
- package/calendar/cssm/components/months-table/index.js +0 -16
- package/calendar/cssm/components/months-table/index.module.css +0 -51
- package/calendar/cssm/components/select-button/Component.d.ts +0 -24
- package/calendar/cssm/components/select-button/Component.js +0 -20
- package/calendar/cssm/components/select-button/index.d.ts +0 -1
- package/calendar/cssm/components/select-button/index.js +0 -12
- package/calendar/cssm/components/select-button/index.module.css +0 -82
- package/calendar/cssm/components/years-table/Component.d.ts +0 -21
- package/calendar/cssm/components/years-table/Component.js +0 -44
- package/calendar/cssm/components/years-table/index.d.ts +0 -1
- package/calendar/cssm/components/years-table/index.js +0 -15
- package/calendar/cssm/components/years-table/index.module.css +0 -62
- package/calendar/cssm/index.d.ts +0 -4
- package/calendar/cssm/index.js +0 -40
- package/calendar/cssm/index.module.css +0 -58
- package/calendar/cssm/typings.d.ts +0 -15
- package/calendar/cssm/typings.js +0 -1
- package/calendar/cssm/useCalendar.d.ts +0 -89
- package/calendar/cssm/useCalendar.js +0 -283
- package/calendar/cssm/usePeriod.d.ts +0 -23
- package/calendar/cssm/usePeriod.js +0 -67
- package/calendar/cssm/utils.d.ts +0 -78
- package/calendar/cssm/utils.js +0 -191
- package/calendar/cssm/vars.css +0 -20
- package/calendar-input/cssm/Component.d.ts +0 -169
- package/calendar-input/cssm/Component.js +0 -161
- package/calendar-input/cssm/index.d.ts +0 -2
- package/calendar-input/cssm/index.js +0 -25
- package/calendar-input/cssm/index.module.css +0 -87
- package/calendar-input/cssm/stories.module.css +0 -33
- package/calendar-input/cssm/utils.d.ts +0 -13
- package/calendar-input/cssm/utils.js +0 -38
- package/calendar-range/cssm/Component.d.ts +0 -55
- package/calendar-range/cssm/Component.js +0 -196
- package/calendar-range/cssm/index.d.ts +0 -1
- package/calendar-range/cssm/index.js +0 -16
- package/calendar-range/cssm/index.module.css +0 -38
- package/calendar-range/cssm/useCalendarMaxMinDates.d.ts +0 -16
- package/calendar-range/cssm/useCalendarMaxMinDates.js +0 -20
- package/calendar-range/cssm/useCalendarMonthes.d.ts +0 -14
- package/calendar-range/cssm/useCalendarMonthes.js +0 -44
- package/calendar-range/cssm/utils.d.ts +0 -11
- package/calendar-range/cssm/utils.js +0 -22
- package/calendar-with-skeleton/cssm/Component.d.ts +0 -24
- package/calendar-with-skeleton/cssm/Component.js +0 -74
- package/calendar-with-skeleton/cssm/index.d.ts +0 -1
- package/calendar-with-skeleton/cssm/index.js +0 -13
- package/calendar-with-skeleton/cssm/index.module.css +0 -63
- package/card-image/cssm/Component.d.ts +0 -50
- package/card-image/cssm/Component.js +0 -38
- package/card-image/cssm/index.d.ts +0 -1
- package/card-image/cssm/index.js +0 -13
- package/card-image/cssm/index.module.css +0 -35
- package/cdn-icon/cssm/Component.d.ts +0 -18
- package/cdn-icon/cssm/Component.js +0 -30
- package/cdn-icon/cssm/index.d.ts +0 -1
- package/cdn-icon/cssm/index.js +0 -9
- package/cdn-icon/cssm/index.module.css +0 -19
- package/checkbox/cssm/Component.d.ts +0 -112
- package/checkbox/cssm/Component.js +0 -93
- package/checkbox/cssm/index.d.ts +0 -1
- package/checkbox/cssm/index.js +0 -13
- package/checkbox/cssm/index.module.css +0 -229
- package/checkbox-group/cssm/Component.d.ts +0 -50
- package/checkbox-group/cssm/Component.js +0 -79
- package/checkbox-group/cssm/index.d.ts +0 -1
- package/checkbox-group/cssm/index.js +0 -10
- package/checkbox-group/cssm/index.module.css +0 -94
- package/circular-progress-bar/cssm/Component.d.ts +0 -37
- package/circular-progress-bar/cssm/Component.js +0 -49
- package/circular-progress-bar/cssm/index.d.ts +0 -1
- package/circular-progress-bar/cssm/index.js +0 -11
- package/circular-progress-bar/cssm/index.module.css +0 -96
- package/collapse/cssm/Component.d.ts +0 -41
- package/collapse/cssm/Component.js +0 -63
- package/collapse/cssm/index.d.ts +0 -1
- package/collapse/cssm/index.js +0 -14
- package/collapse/cssm/index.module.css +0 -39
- package/confirmation/cssm/component.d.ts +0 -136
- package/confirmation/cssm/component.js +0 -110
- package/confirmation/cssm/components/code-input/component.d.ts +0 -16
- package/confirmation/cssm/components/code-input/component.js +0 -156
- package/confirmation/cssm/components/code-input/index.d.ts +0 -1
- package/confirmation/cssm/components/code-input/index.js +0 -12
- package/confirmation/cssm/components/code-input/index.module.css +0 -93
- package/confirmation/cssm/components/code-input/utils.d.ts +0 -10
- package/confirmation/cssm/components/code-input/utils.js +0 -19
- package/confirmation/cssm/components/countdown/component.d.ts +0 -23
- package/confirmation/cssm/components/countdown/component.js +0 -115
- package/confirmation/cssm/components/countdown/index.d.ts +0 -1
- package/confirmation/cssm/components/countdown/index.js +0 -16
- package/confirmation/cssm/components/countdown/index.module.css +0 -87
- package/confirmation/cssm/components/countdown-loader/component.d.ts +0 -7
- package/confirmation/cssm/components/countdown-loader/component.js +0 -26
- package/confirmation/cssm/components/countdown-loader/index.d.ts +0 -1
- package/confirmation/cssm/components/countdown-loader/index.js +0 -9
- package/confirmation/cssm/components/countdown-loader/index.module.css +0 -28
- package/confirmation/cssm/components/index.d.ts +0 -3
- package/confirmation/cssm/components/index.js +0 -25
- package/confirmation/cssm/components/sign-confirmation/component.d.ts +0 -37
- package/confirmation/cssm/components/sign-confirmation/component.js +0 -62
- package/confirmation/cssm/components/sign-confirmation/index.d.ts +0 -1
- package/confirmation/cssm/components/sign-confirmation/index.js +0 -22
- package/confirmation/cssm/components/sign-confirmation/index.module.css +0 -110
- package/confirmation/cssm/index.d.ts +0 -2
- package/confirmation/cssm/index.js +0 -28
- package/confirmation/cssm/index.module.css +0 -121
- package/confirmation/cssm/vars.css +0 -22
- package/dark-theme-styles-injector/component.d.ts +0 -17
- package/dark-theme-styles-injector/component.js +0 -22
- package/dark-theme-styles-injector/cssm/component.d.ts +0 -17
- package/dark-theme-styles-injector/cssm/component.js +0 -22
- package/dark-theme-styles-injector/cssm/index.d.ts +0 -1
- package/dark-theme-styles-injector/cssm/index.js +0 -10
- package/dark-theme-styles-injector/esm/component.d.ts +0 -17
- package/dark-theme-styles-injector/esm/component.js +0 -14
- package/dark-theme-styles-injector/esm/index.d.ts +0 -1
- package/dark-theme-styles-injector/esm/index.js +0 -4
- package/dark-theme-styles-injector/index.d.ts +0 -1
- package/dark-theme-styles-injector/index.js +0 -10
- package/dark-theme-styles-injector/modern/component.d.ts +0 -17
- package/dark-theme-styles-injector/modern/component.js +0 -19
- package/dark-theme-styles-injector/modern/index.d.ts +0 -1
- package/dark-theme-styles-injector/modern/index.js +0 -4
- package/dark-theme-styles-injector/package.json +0 -3
- package/date-input/cssm/Component.d.ts +0 -47
- package/date-input/cssm/Component.js +0 -90
- package/date-input/cssm/index.d.ts +0 -2
- package/date-input/cssm/index.js +0 -25
- package/date-input/cssm/index.module.css +0 -30
- package/date-input/cssm/utils/date-correction-pipe.d.ts +0 -9
- package/date-input/cssm/utils/date-correction-pipe.js +0 -57
- package/date-input/cssm/utils/format.d.ts +0 -7
- package/date-input/cssm/utils/format.js +0 -23
- package/date-input/cssm/utils/index.d.ts +0 -3
- package/date-input/cssm/utils/index.js +0 -20
- package/date-input/cssm/utils/native-supports.d.ts +0 -7
- package/date-input/cssm/utils/native-supports.js +0 -18
- package/divider/cssm/Component.d.ts +0 -14
- package/divider/cssm/Component.js +0 -18
- package/divider/cssm/index.d.ts +0 -1
- package/divider/cssm/index.js +0 -10
- package/divider/cssm/index.module.css +0 -22
- package/drawer/cssm/Component.d.ts +0 -20
- package/drawer/cssm/Component.js +0 -92
- package/drawer/cssm/index.d.ts +0 -1
- package/drawer/cssm/index.js +0 -14
- package/drawer/cssm/index.module.css +0 -84
- package/dropzone/cssm/Component.d.ts +0 -47
- package/dropzone/cssm/Component.js +0 -70
- package/dropzone/cssm/index.d.ts +0 -1
- package/dropzone/cssm/index.js +0 -12
- package/dropzone/cssm/index.module.css +0 -78
- package/dropzone/cssm/utils.d.ts +0 -3
- package/dropzone/cssm/utils.js +0 -8
- package/file-upload-item/cssm/Component.d.ts +0 -71
- package/file-upload-item/cssm/Component.js +0 -68
- package/file-upload-item/cssm/index.d.ts +0 -1
- package/file-upload-item/cssm/index.js +0 -18
- package/file-upload-item/cssm/index.module.css +0 -102
- package/file-upload-item/cssm/utils.d.ts +0 -5
- package/file-upload-item/cssm/utils.js +0 -46
- package/form-control/cssm/Component.d.ts +0 -152
- package/form-control/cssm/Component.js +0 -92
- package/form-control/cssm/default.module.css +0 -94
- package/form-control/cssm/index.d.ts +0 -1
- package/form-control/cssm/index.js +0 -12
- package/form-control/cssm/index.module.css +0 -233
- package/form-control/cssm/inverted.module.css +0 -99
- package/grid/cssm/Component.d.ts +0 -8
- package/grid/cssm/Component.js +0 -18
- package/grid/cssm/col/Component.d.ts +0 -54
- package/grid/cssm/col/Component.js +0 -29
- package/grid/cssm/col/index.d.ts +0 -1
- package/grid/cssm/col/index.js +0 -13
- package/grid/cssm/col/index.module.css +0 -1863
- package/grid/cssm/gutters.module.css +0 -607
- package/grid/cssm/index.d.ts +0 -1
- package/grid/cssm/index.js +0 -16
- package/grid/cssm/row/Component.d.ts +0 -43
- package/grid/cssm/row/Component.js +0 -33
- package/grid/cssm/row/index.d.ts +0 -1
- package/grid/cssm/row/index.js +0 -13
- package/grid/cssm/row/index.module.css +0 -39
- package/grid/cssm/tslib.es6-3084c748.js +0 -24
- package/grid/cssm/typings.d.ts +0 -16
- package/grid/cssm/typings.js +0 -1
- package/grid/cssm/utils/index.d.ts +0 -3
- package/grid/cssm/utils/index.js +0 -37
- package/icon-button/cssm/Component.d.ts +0 -61
- package/icon-button/cssm/Component.js +0 -67
- package/icon-button/cssm/default.module.css +0 -82
- package/icon-button/cssm/index.d.ts +0 -1
- package/icon-button/cssm/index.js +0 -13
- package/icon-button/cssm/index.module.css +0 -40
- package/icon-button/cssm/inverted.module.css +0 -73
- package/input/cssm/Component.d.ts +0 -236
- package/input/cssm/Component.js +0 -146
- package/input/cssm/default.module.css +0 -75
- package/input/cssm/index.d.ts +0 -1
- package/input/cssm/index.js +0 -16
- package/input/cssm/index.module.css +0 -162
- package/input/cssm/inverted.module.css +0 -75
- package/input-autocomplete/Component-d1c7e395.js +0 -81
- package/input-autocomplete/cssm/Component-a04a9434.js +0 -80
- package/input-autocomplete/cssm/Component.d.ts +0 -128
- package/input-autocomplete/cssm/Component.js +0 -27
- package/input-autocomplete/cssm/autocomplete-field/Component.d.ts +0 -0
- package/input-autocomplete/cssm/autocomplete-field/Component.js +0 -12
- package/input-autocomplete/cssm/autocomplete-field/index.d.ts +0 -1
- package/input-autocomplete/cssm/autocomplete-field/index.js +0 -12
- package/input-autocomplete/cssm/autocomplete-field/index.module.css +0 -3
- package/input-autocomplete/cssm/index.d.ts +0 -1
- package/input-autocomplete/cssm/index.js +0 -14
- package/input-autocomplete/esm/Component-f25078cf.d.ts +0 -37
- package/input-autocomplete/esm/Component-f25078cf.js +0 -74
- package/intl-phone-input/component-c769f9ab.js +0 -72
- package/intl-phone-input/cssm/component-88f82cfc.js +0 -71
- package/intl-phone-input/cssm/component.d.ts +0 -67
- package/intl-phone-input/cssm/component.js +0 -151
- package/intl-phone-input/cssm/components/flag-icon/component.d.ts +0 -20
- package/intl-phone-input/cssm/components/flag-icon/component.js +0 -21
- package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_l@1x.png +0 -0
- package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_l@2x.png +0 -0
- package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_m@1x.png +0 -0
- package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_m@2x.png +0 -0
- package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_s@1x.png +0 -0
- package/intl-phone-input/cssm/components/flag-icon/images/sprites/flag-icon_size_s@2x.png +0 -0
- package/intl-phone-input/cssm/components/flag-icon/index.d.ts +0 -1
- package/intl-phone-input/cssm/components/flag-icon/index.js +0 -10
- package/intl-phone-input/cssm/components/flag-icon/index.module.css +0 -4703
- package/intl-phone-input/cssm/components/index.d.ts +0 -3
- package/intl-phone-input/cssm/components/index.js +0 -19
- package/intl-phone-input/cssm/components/select/component.d.ts +0 -10
- package/intl-phone-input/cssm/components/select/component.js +0 -43
- package/intl-phone-input/cssm/components/select/index.d.ts +0 -1
- package/intl-phone-input/cssm/components/select/index.js +0 -17
- package/intl-phone-input/cssm/components/select/index.module.css +0 -43
- package/intl-phone-input/cssm/components/select-field/component.d.ts +0 -0
- package/intl-phone-input/cssm/components/select-field/component.js +0 -14
- package/intl-phone-input/cssm/components/select-field/index.d.ts +0 -1
- package/intl-phone-input/cssm/components/select-field/index.js +0 -14
- package/intl-phone-input/cssm/components/select-field/index.module.css +0 -56
- package/intl-phone-input/cssm/index.d.ts +0 -1
- package/intl-phone-input/cssm/index.js +0 -24
- package/intl-phone-input/cssm/index.module.css +0 -7
- package/intl-phone-input/cssm/useCaretAvoidCountryCode.d.ts +0 -8
- package/intl-phone-input/cssm/useCaretAvoidCountryCode.js +0 -39
- package/intl-phone-input/cssm/usePreventCaretReset.d.ts +0 -8
- package/intl-phone-input/cssm/usePreventCaretReset.js +0 -34
- package/intl-phone-input/cssm/utils/format-phone-with-unclearable-country-code.d.ts +0 -6
- package/intl-phone-input/cssm/utils/format-phone-with-unclearable-country-code.js +0 -22
- package/intl-phone-input/esm/component-92fd3e2a.d.ts +0 -35
- package/intl-phone-input/esm/component-92fd3e2a.js +0 -65
- package/intl-phone-input/modern/libphonenumber-js.min-5193d589.d.ts +0 -1
- package/intl-phone-input/modern/libphonenumber-js.min-5193d589.js +0 -1567
- package/keyboard-focusable/cssm/Component.d.ts +0 -12
- package/keyboard-focusable/cssm/Component.js +0 -14
- package/keyboard-focusable/cssm/index.d.ts +0 -1
- package/keyboard-focusable/cssm/index.js +0 -9
- package/link/cssm/Component.d.ts +0 -97
- package/link/cssm/Component.js +0 -94
- package/link/cssm/default.module.css +0 -68
- package/link/cssm/index.d.ts +0 -1
- package/link/cssm/index.js +0 -14
- package/link/cssm/index.module.css +0 -64
- package/link/cssm/inverted.module.css +0 -62
- package/list/cssm/Component.d.ts +0 -24
- package/list/cssm/Component.js +0 -31
- package/list/cssm/index.d.ts +0 -1
- package/list/cssm/index.js +0 -10
- package/list/cssm/index.module.css +0 -60
- package/list-header/cssm/Component.d.ts +0 -26
- package/list-header/cssm/Component.js +0 -22
- package/list-header/cssm/index.d.ts +0 -1
- package/list-header/cssm/index.js +0 -11
- package/list-header/cssm/index.module.css +0 -34
- package/loader/cssm/Component.d.ts +0 -14
- package/loader/cssm/Component.js +0 -21
- package/loader/cssm/index.d.ts +0 -1
- package/loader/cssm/index.js +0 -10
- package/loader/cssm/index.module.css +0 -40
- package/masked-input/cssm/Component.d.ts +0 -86
- package/masked-input/cssm/Component.js +0 -117
- package/masked-input/cssm/index.d.ts +0 -1
- package/masked-input/cssm/index.js +0 -14
- package/masked-input/cssm/index.module.css +0 -3
- package/modal/cssm/Component.desktop.d.ts +0 -51
- package/modal/cssm/Component.desktop.js +0 -66
- package/modal/cssm/Component.mobile.d.ts +0 -23
- package/modal/cssm/Component.mobile.js +0 -53
- package/modal/cssm/Component.responsive.d.ts +0 -19
- package/modal/cssm/Component.responsive.js +0 -68
- package/modal/cssm/Context.d.ts +0 -4
- package/modal/cssm/Context.js +0 -7
- package/modal/cssm/components/closer/Component.d.ts +0 -17
- package/modal/cssm/components/closer/Component.js +0 -26
- package/modal/cssm/components/closer/index.module.css +0 -56
- package/modal/cssm/components/content/Component.d.ts +0 -19
- package/modal/cssm/components/content/Component.desktop.d.ts +0 -14
- package/modal/cssm/components/content/Component.desktop.js +0 -22
- package/modal/cssm/components/content/Component.js +0 -22
- package/modal/cssm/components/content/Component.mobile.d.ts +0 -5
- package/modal/cssm/components/content/Component.mobile.js +0 -18
- package/modal/cssm/components/content/desktop.module.css +0 -52
- package/modal/cssm/components/content/index.module.css +0 -44
- package/modal/cssm/components/content/mobile.module.css +0 -36
- package/modal/cssm/components/footer/Component.d.ts +0 -27
- package/modal/cssm/components/footer/Component.desktop.d.ts +0 -14
- package/modal/cssm/components/footer/Component.desktop.js +0 -23
- package/modal/cssm/components/footer/Component.js +0 -28
- package/modal/cssm/components/footer/Component.mobile.d.ts +0 -5
- package/modal/cssm/components/footer/Component.mobile.js +0 -19
- package/modal/cssm/components/footer/desktop.module.css +0 -66
- package/modal/cssm/components/footer/index.module.css +0 -47
- package/modal/cssm/components/footer/layout.module.css +0 -88
- package/modal/cssm/components/footer/mobile.module.css +0 -42
- package/modal/cssm/components/header/Component.d.ts +0 -27
- package/modal/cssm/components/header/Component.desktop.d.ts +0 -14
- package/modal/cssm/components/header/Component.desktop.js +0 -25
- package/modal/cssm/components/header/Component.js +0 -35
- package/modal/cssm/components/header/Component.mobile.d.ts +0 -5
- package/modal/cssm/components/header/Component.mobile.js +0 -21
- package/modal/cssm/components/header/desktop.module.css +0 -75
- package/modal/cssm/components/header/index.module.css +0 -66
- package/modal/cssm/components/header/mobile.module.css +0 -51
- package/modal/cssm/desktop.d.ts +0 -1
- package/modal/cssm/desktop.js +0 -28
- package/modal/cssm/desktop.module.css +0 -62
- package/modal/cssm/index.d.ts +0 -2
- package/modal/cssm/index.js +0 -39
- package/modal/cssm/mobile.d.ts +0 -1
- package/modal/cssm/mobile.js +0 -28
- package/modal/cssm/mobile.module.css +0 -29
- package/modal/cssm/responsive.d.ts +0 -1
- package/modal/cssm/responsive.js +0 -38
- package/modal/cssm/transitions.module.css +0 -24
- package/modal/cssm/utils.d.ts +0 -5
- package/modal/cssm/utils.js +0 -80
- package/modal/cssm/vars.css +0 -25
- package/mq/cssm/Component.d.ts +0 -17
- package/mq/cssm/Component.js +0 -26
- package/mq/cssm/index.d.ts +0 -2
- package/mq/cssm/index.js +0 -11
- package/mq/cssm/useMatchMedia.d.ts +0 -6
- package/mq/cssm/useMatchMedia.js +0 -25
- package/mq/cssm/utils.d.ts +0 -21
- package/mq/cssm/utils.js +0 -69
- package/notification/cssm/Component.d.ts +0 -97
- package/notification/cssm/Component.js +0 -153
- package/notification/cssm/index.d.ts +0 -1
- package/notification/cssm/index.js +0 -17
- package/notification/cssm/index.module.css +0 -61
- package/notification/cssm/utils/index.d.ts +0 -4
- package/notification/cssm/utils/index.js +0 -32
- package/notification-manager/cssm/component-d28c47be.d.ts +0 -43
- package/notification-manager/cssm/component-d28c47be.js +0 -67
- package/notification-manager/cssm/component.d.ts +0 -51
- package/notification-manager/cssm/component.js +0 -31
- package/notification-manager/cssm/components/index.d.ts +0 -1
- package/notification-manager/cssm/components/index.js +0 -9
- package/notification-manager/cssm/components/notification/component.d.ts +0 -0
- package/notification-manager/cssm/components/notification/component.js +0 -9
- package/notification-manager/cssm/components/notification/index.d.ts +0 -1
- package/notification-manager/cssm/components/notification/index.js +0 -9
- package/notification-manager/cssm/index.d.ts +0 -1
- package/notification-manager/cssm/index.js +0 -14
- package/notification-manager/cssm/index.module.css +0 -59
- package/password-input/cssm/component.d.ts +0 -55
- package/password-input/cssm/component.js +0 -72
- package/password-input/cssm/index.d.ts +0 -1
- package/password-input/cssm/index.js +0 -13
- package/password-input/cssm/index.module.css +0 -7
- package/phone-input/cssm/Component.d.ts +0 -10
- package/phone-input/cssm/Component.js +0 -134
- package/phone-input/cssm/index.d.ts +0 -1
- package/phone-input/cssm/index.js +0 -11
- package/phone-input/cssm/utils/index.d.ts +0 -17
- package/phone-input/cssm/utils/index.js +0 -35
- package/picker-button/Component-a07d50b1.d.ts +0 -808
- package/picker-button/Component-a07d50b1.js +0 -63
- package/picker-button/cssm/Component-c7d52094.d.ts +0 -808
- package/picker-button/cssm/Component-c7d52094.js +0 -62
- package/picker-button/cssm/Component.d.ts +0 -18
- package/picker-button/cssm/Component.js +0 -30
- package/picker-button/cssm/field/Component.d.ts +0 -0
- package/picker-button/cssm/field/Component.js +0 -13
- package/picker-button/cssm/field/index.d.ts +0 -1
- package/picker-button/cssm/field/index.js +0 -13
- package/picker-button/cssm/field/index.module.css +0 -23
- package/picker-button/cssm/index.d.ts +0 -1
- package/picker-button/cssm/index.js +0 -16
- package/picker-button/cssm/index.module.css +0 -3
- package/picker-button/esm/Component-174802a0.d.ts +0 -808
- package/picker-button/esm/Component-174802a0.js +0 -57
- package/plate/cssm/Component.d.ts +0 -74
- package/plate/cssm/Component.js +0 -101
- package/plate/cssm/index.d.ts +0 -1
- package/plate/cssm/index.js +0 -13
- package/plate/cssm/index.module.css +0 -170
- package/popover/cssm/Component.d.ts +0 -93
- package/popover/cssm/Component.js +0 -105
- package/popover/cssm/index.d.ts +0 -1
- package/popover/cssm/index.js +0 -15
- package/popover/cssm/index.module.css +0 -124
- package/portal/cssm/Component.d.ts +0 -12
- package/portal/cssm/Component.js +0 -25
- package/portal/cssm/index.d.ts +0 -1
- package/portal/cssm/index.js +0 -10
- package/portal/cssm/utils.d.ts +0 -5
- package/portal/cssm/utils.js +0 -25
- package/progress-bar/cssm/Component.d.ts +0 -22
- package/progress-bar/cssm/Component.js +0 -19
- package/progress-bar/cssm/index.d.ts +0 -1
- package/progress-bar/cssm/index.js +0 -10
- package/progress-bar/cssm/index.module.css +0 -47
- package/pure-input/cssm/Component.d.ts +0 -48
- package/pure-input/cssm/Component.js +0 -74
- package/pure-input/cssm/index.d.ts +0 -1
- package/pure-input/cssm/index.js +0 -12
- package/pure-input/cssm/index.module.css +0 -155
- package/radio/cssm/Component.d.ts +0 -120
- package/radio/cssm/Component.js +0 -82
- package/radio/cssm/index.d.ts +0 -1
- package/radio/cssm/index.js +0 -12
- package/radio/cssm/index.module.css +0 -212
- package/radio-group/cssm/Component.d.ts +0 -60
- package/radio-group/cssm/Component.js +0 -93
- package/radio-group/cssm/index.d.ts +0 -1
- package/radio-group/cssm/index.js +0 -10
- package/radio-group/cssm/index.module.css +0 -94
- package/select/cssm/Component.d.ts +0 -110
- package/select/cssm/Component.js +0 -38
- package/select/cssm/components/arrow/Component.d.ts +0 -4
- package/select/cssm/components/arrow/Component.js +0 -19
- package/select/cssm/components/arrow/index.d.ts +0 -1
- package/select/cssm/components/arrow/index.js +0 -10
- package/select/cssm/components/arrow/index.module.css +0 -40
- package/select/cssm/components/base-select/Component.d.ts +0 -5
- package/select/cssm/components/base-select/Component.js +0 -227
- package/select/cssm/components/base-select/index.d.ts +0 -1
- package/select/cssm/components/base-select/index.js +0 -17
- package/select/cssm/components/base-select/index.module.css +0 -79
- package/select/cssm/components/checkmark/Component.d.ts +0 -4
- package/select/cssm/components/checkmark/Component.js +0 -21
- package/select/cssm/components/checkmark/index.d.ts +0 -1
- package/select/cssm/components/checkmark/index.js +0 -10
- package/select/cssm/components/checkmark/index.module.css +0 -54
- package/select/cssm/components/field/Component.d.ts +0 -24
- package/select/cssm/components/field/Component.js +0 -40
- package/select/cssm/components/field/index.d.ts +0 -1
- package/select/cssm/components/field/index.js +0 -14
- package/select/cssm/components/field/index.module.css +0 -66
- package/select/cssm/components/index.d.ts +0 -7
- package/select/cssm/components/index.js +0 -40
- package/select/cssm/components/native-select/Component.d.ts +0 -25
- package/select/cssm/components/native-select/Component.js +0 -29
- package/select/cssm/components/native-select/index.d.ts +0 -1
- package/select/cssm/components/native-select/index.js +0 -10
- package/select/cssm/components/optgroup/Component.d.ts +0 -4
- package/select/cssm/components/optgroup/Component.js +0 -21
- package/select/cssm/components/optgroup/index.d.ts +0 -1
- package/select/cssm/components/optgroup/index.js +0 -10
- package/select/cssm/components/optgroup/index.module.css +0 -65
- package/select/cssm/components/option/Component.d.ts +0 -4
- package/select/cssm/components/option/Component.js +0 -31
- package/select/cssm/components/option/index.d.ts +0 -1
- package/select/cssm/components/option/index.js +0 -13
- package/select/cssm/components/option/index.module.css +0 -147
- package/select/cssm/components/options-list/Component.d.ts +0 -5
- package/select/cssm/components/options-list/Component.js +0 -44
- package/select/cssm/components/options-list/index.d.ts +0 -1
- package/select/cssm/components/options-list/index.js +0 -14
- package/select/cssm/components/options-list/index.module.css +0 -44
- package/select/cssm/components/virtual-options-list/Component.d.ts +0 -10
- package/select/cssm/components/virtual-options-list/Component.js +0 -104
- package/select/cssm/components/virtual-options-list/index.d.ts +0 -1
- package/select/cssm/components/virtual-options-list/index.js +0 -14
- package/select/cssm/components/virtual-options-list/index.module.css +0 -79
- package/select/cssm/index.d.ts +0 -5
- package/select/cssm/index.js +0 -56
- package/select/cssm/presets/index.d.ts +0 -2
- package/select/cssm/presets/index.js +0 -19
- package/select/cssm/presets/useLazyLoading/hook.d.ts +0 -46
- package/select/cssm/presets/useLazyLoading/hook.js +0 -1098
- package/select/cssm/presets/useLazyLoading/index.module.css +0 -7
- package/select/cssm/presets/useSelectWithLoading/hook.d.ts +0 -11
- package/select/cssm/presets/useSelectWithLoading/hook.js +0 -36
- package/select/cssm/presets/useSelectWithLoading/index.module.css +0 -7
- package/select/cssm/typings.d.ts +0 -434
- package/select/cssm/typings.js +0 -1
- package/select/cssm/utils.d.ts +0 -38
- package/select/cssm/utils.js +0 -93
- package/select/cssm/vars.css +0 -10
- package/select/tslib.es6-e98a9028.d.ts +0 -32
- package/select/tslib.es6-e98a9028.js +0 -49
- package/select-with-tags/cssm/component.d.ts +0 -21
- package/select-with-tags/cssm/component.js +0 -88
- package/select-with-tags/cssm/components/index.d.ts +0 -2
- package/select-with-tags/cssm/components/index.js +0 -19
- package/select-with-tags/cssm/components/tag/component.d.ts +0 -3
- package/select-with-tags/cssm/components/tag/component.js +0 -33
- package/select-with-tags/cssm/components/tag/index.d.ts +0 -1
- package/select-with-tags/cssm/components/tag/index.js +0 -13
- package/select-with-tags/cssm/components/tag/index.module.css +0 -50
- package/select-with-tags/cssm/components/tag-list/component.d.ts +0 -20
- package/select-with-tags/cssm/components/tag-list/component.js +0 -133
- package/select-with-tags/cssm/components/tag-list/index.d.ts +0 -1
- package/select-with-tags/cssm/components/tag-list/index.js +0 -18
- package/select-with-tags/cssm/components/tag-list/index.module.css +0 -158
- package/select-with-tags/cssm/index.d.ts +0 -1
- package/select-with-tags/cssm/index.js +0 -21
- package/select-with-tags/cssm/tslib.es6-ce870b46.js +0 -40
- package/select-with-tags/cssm/types.d.ts +0 -63
- package/select-with-tags/cssm/types.js +0 -1
- package/select-with-tags/cssm/utils/calculate-collapse-size.d.ts +0 -2
- package/select-with-tags/cssm/utils/calculate-collapse-size.js +0 -47
- package/select-with-tags/cssm/utils/index.d.ts +0 -1
- package/select-with-tags/cssm/utils/index.js +0 -9
- package/select-with-tags/cssm/utils/match.d.ts +0 -4
- package/select-with-tags/cssm/utils/match.js +0 -31
- package/select-with-tags/tslib.es6-40228fff.js +0 -40
- package/skeleton/cssm/Component.d.ts +0 -22
- package/skeleton/cssm/Component.js +0 -22
- package/skeleton/cssm/index.d.ts +0 -1
- package/skeleton/cssm/index.js +0 -10
- package/skeleton/cssm/index.module.css +0 -107
- package/skeleton/cssm/stories.module.css +0 -4
- package/slider/cssm/Component.d.ts +0 -69
- package/slider/cssm/Component.js +0 -97
- package/slider/cssm/index.d.ts +0 -1
- package/slider/cssm/index.js +0 -12
- package/slider/cssm/index.module.css +0 -239
- package/slider-input/cssm/Component.d.ts +0 -149
- package/slider-input/cssm/Component.js +0 -102
- package/slider-input/cssm/index.d.ts +0 -1
- package/slider-input/cssm/index.js +0 -12
- package/slider-input/cssm/index.module.css +0 -96
- package/space/cssm/Component.d.ts +0 -47
- package/space/cssm/Component.js +0 -54
- package/space/cssm/Item-09e1c4dc.js +0 -49
- package/space/cssm/Item.d.ts +0 -0
- package/space/cssm/Item.js +0 -6
- package/space/cssm/index.d.ts +0 -1
- package/space/cssm/index.js +0 -11
- package/space/cssm/index.module.css +0 -37
- package/space/cssm/utils.d.ts +0 -11
- package/space/cssm/utils.js +0 -15
- package/space/esm/Item-e38f68be.d.ts +0 -47
- package/spinner/cssm/Component.d.ts +0 -25
- package/spinner/cssm/Component.js +0 -21
- package/spinner/cssm/index.d.ts +0 -1
- package/spinner/cssm/index.js +0 -10
- package/spinner/cssm/index.module.css +0 -39
- package/stack/cssm/component.d.ts +0 -15
- package/stack/cssm/component.js +0 -18
- package/stack/cssm/context.d.ts +0 -29
- package/stack/cssm/context.js +0 -34
- package/stack/cssm/index.d.ts +0 -2
- package/stack/cssm/index.js +0 -11
- package/status/cssm/Component.d.ts +0 -22
- package/status/cssm/Component.js +0 -20
- package/status/cssm/index.d.ts +0 -1
- package/status/cssm/index.js +0 -11
- package/status/cssm/index.module.css +0 -106
- package/stepped-progress-bar/cssm/Component.d.ts +0 -25
- package/stepped-progress-bar/cssm/Component.js +0 -30
- package/stepped-progress-bar/cssm/components/step-bar/Component.d.ts +0 -6
- package/stepped-progress-bar/cssm/components/step-bar/Component.js +0 -18
- package/stepped-progress-bar/cssm/components/step-bar/index.d.ts +0 -1
- package/stepped-progress-bar/cssm/components/step-bar/index.js +0 -10
- package/stepped-progress-bar/cssm/components/step-bar/index.module.css +0 -15
- package/stepped-progress-bar/cssm/index.d.ts +0 -1
- package/stepped-progress-bar/cssm/index.js +0 -13
- package/stepped-progress-bar/cssm/index.module.css +0 -30
- package/switch/cssm/Component.d.ts +0 -103
- package/switch/cssm/Component.js +0 -83
- package/switch/cssm/index.d.ts +0 -1
- package/switch/cssm/index.js +0 -12
- package/switch/cssm/index.module.css +0 -179
- package/tabs/cssm/components/primary-tablist/Component.d.ts +0 -13
- package/tabs/cssm/components/primary-tablist/Component.desktop.d.ts +0 -4
- package/tabs/cssm/components/primary-tablist/Component.desktop.js +0 -24
- package/tabs/cssm/components/primary-tablist/Component.js +0 -50
- package/tabs/cssm/components/primary-tablist/Component.mobile.d.ts +0 -5
- package/tabs/cssm/components/primary-tablist/Component.mobile.js +0 -28
- package/tabs/cssm/components/primary-tablist/Component.responsive.d.ts +0 -4
- package/tabs/cssm/components/primary-tablist/Component.responsive.js +0 -31
- package/tabs/cssm/components/primary-tablist/index.module.css +0 -187
- package/tabs/cssm/components/primary-tablist/mobile.module.css +0 -60
- package/tabs/cssm/components/scrollable-container/Component.d.ts +0 -18
- package/tabs/cssm/components/scrollable-container/Component.js +0 -36
- package/tabs/cssm/components/scrollable-container/index.d.ts +0 -1
- package/tabs/cssm/components/scrollable-container/index.js +0 -11
- package/tabs/cssm/components/scrollable-container/index.module.css +0 -52
- package/tabs/cssm/components/secondary-tablist/Component.d.ts +0 -15
- package/tabs/cssm/components/secondary-tablist/Component.desktop.d.ts +0 -5
- package/tabs/cssm/components/secondary-tablist/Component.desktop.js +0 -24
- package/tabs/cssm/components/secondary-tablist/Component.js +0 -32
- package/tabs/cssm/components/secondary-tablist/Component.mobile.d.ts +0 -5
- package/tabs/cssm/components/secondary-tablist/Component.mobile.js +0 -28
- package/tabs/cssm/components/secondary-tablist/Component.responsive.d.ts +0 -4
- package/tabs/cssm/components/secondary-tablist/Component.responsive.js +0 -31
- package/tabs/cssm/components/secondary-tablist/index.module.css +0 -85
- package/tabs/cssm/components/secondary-tablist/mobile.module.css +0 -48
- package/tabs/cssm/components/tab/Component.d.ts +0 -4
- package/tabs/cssm/components/tab/Component.js +0 -21
- package/tabs/cssm/components/tab/index.d.ts +0 -1
- package/tabs/cssm/components/tab/index.js +0 -10
- package/tabs/cssm/components/tab/index.module.css +0 -7
- package/tabs/cssm/components/tabs/Component.d.ts +0 -4
- package/tabs/cssm/components/tabs/Component.desktop.d.ts +0 -5
- package/tabs/cssm/components/tabs/Component.desktop.js +0 -33
- package/tabs/cssm/components/tabs/Component.js +0 -28
- package/tabs/cssm/components/tabs/Component.mobile.d.ts +0 -5
- package/tabs/cssm/components/tabs/Component.mobile.js +0 -35
- package/tabs/cssm/components/tabs/Component.responsive.d.ts +0 -5
- package/tabs/cssm/components/tabs/Component.responsive.js +0 -40
- package/tabs/cssm/desktop.d.ts +0 -7
- package/tabs/cssm/desktop.js +0 -30
- package/tabs/cssm/index.d.ts +0 -7
- package/tabs/cssm/index.js +0 -37
- package/tabs/cssm/mobile.d.ts +0 -7
- package/tabs/cssm/mobile.js +0 -32
- package/tabs/cssm/responsive.d.ts +0 -7
- package/tabs/cssm/responsive.js +0 -37
- package/tabs/cssm/tslib.es6-ce870b46.d.ts +0 -32
- package/tabs/cssm/tslib.es6-ce870b46.js +0 -40
- package/tabs/cssm/typings.d.ts +0 -116
- package/tabs/cssm/typings.js +0 -1
- package/tabs/cssm/useTabs.d.ts +0 -16
- package/tabs/cssm/useTabs.js +0 -95
- package/tabs/cssm/vars.css +0 -35
- package/tabs/esm/tslib.es6-76e00eac.d.ts +0 -32
- package/tabs/tslib.es6-1f7f7608.d.ts +0 -32
- package/tabs/tslib.es6-1f7f7608.js +0 -40
- package/tag/cssm/Component.d.ts +0 -71
- package/tag/cssm/Component.js +0 -89
- package/tag/cssm/default.module.css +0 -75
- package/tag/cssm/index.d.ts +0 -1
- package/tag/cssm/index.js +0 -14
- package/tag/cssm/index.module.css +0 -155
- package/tag/cssm/inverted.module.css +0 -76
- package/textarea/cssm/Component.d.ts +0 -214
- package/textarea/cssm/Component.js +0 -140
- package/textarea/cssm/default.module.css +0 -97
- package/textarea/cssm/index.d.ts +0 -1
- package/textarea/cssm/index.js +0 -17
- package/textarea/cssm/index.module.css +0 -149
- package/textarea/cssm/inverted.module.css +0 -97
- package/themes/colors/colors-bluetint.css +0 -112
- package/themes/colors/colors-bluetint.js +0 -112
- package/themes/colors/colors-indigo.css +0 -118
- package/themes/colors/colors-indigo.js +0 -118
- package/themes/mixins/colors/colors-bluetint.css +0 -112
- package/themes/mixins/colors/colors-indigo.css +0 -118
- package/toast/cssm/component.d.ts +0 -88
- package/toast/cssm/component.js +0 -125
- package/toast/cssm/index.d.ts +0 -1
- package/toast/cssm/index.js +0 -17
- package/toast/cssm/index.module.css +0 -53
- package/toast-plate/cssm/component.d.ts +0 -109
- package/toast-plate/cssm/component.js +0 -88
- package/toast-plate/cssm/index.d.ts +0 -1
- package/toast-plate/cssm/index.js +0 -16
- package/toast-plate/cssm/index.module.css +0 -582
- package/tooltip/cssm/Component-1d6b7d3e.js +0 -172
- package/tooltip/cssm/Component.d.ts +0 -0
- package/tooltip/cssm/Component.js +0 -12
- package/tooltip/cssm/component.responsive.d.ts +0 -28
- package/tooltip/cssm/component.responsive.js +0 -31
- package/tooltip/cssm/index.d.ts +0 -1
- package/tooltip/cssm/index.js +0 -12
- package/tooltip/cssm/index.module.css +0 -54
- package/tooltip/cssm/responsive.d.ts +0 -1
- package/tooltip/cssm/responsive.js +0 -15
- package/tooltip/esm/Component-24cdba1a.d.ts +0 -125
- package/typography/colors.module-420a9860.d.ts +0 -32
- package/typography/cssm/colors.d.ts +0 -3
- package/typography/cssm/colors.js +0 -18
- package/typography/cssm/colors.module.css +0 -62
- package/typography/cssm/component.d.ts +0 -9
- package/typography/cssm/component.js +0 -22
- package/typography/cssm/index.d.ts +0 -1
- package/typography/cssm/index.js +0 -19
- package/typography/cssm/margins.module.css +0 -1
- package/typography/cssm/text/component.d.ts +0 -41
- package/typography/cssm/text/component.js +0 -22
- package/typography/cssm/text/index.d.ts +0 -1
- package/typography/cssm/text/index.js +0 -12
- package/typography/cssm/text/index.module.css +0 -78
- package/typography/cssm/title/common.module.css +0 -16
- package/typography/cssm/title/component.d.ts +0 -50
- package/typography/cssm/title/component.js +0 -19
- package/typography/cssm/title/index.d.ts +0 -4
- package/typography/cssm/title/index.js +0 -25
- package/typography/cssm/title/index.module.css +0 -107
- package/typography/cssm/title-responsive/component.d.ts +0 -4
- package/typography/cssm/title-responsive/component.js +0 -25
- package/typography/cssm/title-responsive/index.d.ts +0 -1
- package/typography/cssm/title-responsive/index.js +0 -14
- package/typography/cssm/title-responsive/index.module.css +0 -281
- package/typography/cssm/tslib.es6-ce870b46.d.ts +0 -32
- package/typography/cssm/tslib.es6-ce870b46.js +0 -40
- package/typography/esm/colors.module-d9df1b1f.d.ts +0 -32
- package/with-suffix/cssm/Component.d.ts +0 -89
- package/with-suffix/cssm/Component.js +0 -97
- package/with-suffix/cssm/index.d.ts +0 -1
- package/with-suffix/cssm/index.js +0 -12
- package/with-suffix/cssm/index.module.css +0 -41
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import { OptionsListProps } from "../../typings";
|
|
3
|
-
type VirtualOptionsList = OptionsListProps & {
|
|
4
|
-
/**
|
|
5
|
-
* Число отрисованных пунктов до\после видимого окна
|
|
6
|
-
*/
|
|
7
|
-
overscan?: number;
|
|
8
|
-
};
|
|
9
|
-
declare const VirtualOptionsList: ({ size, flatOptions, highlightedIndex, className, Option, open, options, overscan, Optgroup, dataTestId, emptyPlaceholder, visibleOptions, onScroll, }: VirtualOptionsList) => JSX.Element;
|
|
10
|
-
export { VirtualOptionsList };
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
var React = require('react');
|
|
4
|
-
var cn = require('classnames');
|
|
5
|
-
var utils = require('../../utils.js');
|
|
6
|
-
require('../optgroup/index.module.css');
|
|
7
|
-
var components_optgroup_Component = require('../optgroup/Component.js');
|
|
8
|
-
var reactVirtual = require('react-virtual');
|
|
9
|
-
var styles = require('./index.module.css');
|
|
10
|
-
|
|
11
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
12
|
-
|
|
13
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
14
|
-
var cn__default = /*#__PURE__*/_interopDefaultLegacy(cn);
|
|
15
|
-
var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
|
|
16
|
-
|
|
17
|
-
/* eslint-disable react-hooks/exhaustive-deps */
|
|
18
|
-
var VirtualOptionsList = function (_a) {
|
|
19
|
-
var _b = _a.size, size = _b === void 0 ? 's' : _b, _c = _a.flatOptions, flatOptions = _c === void 0 ? [] : _c, _d = _a.highlightedIndex, highlightedIndex = _d === void 0 ? -1 : _d, className = _a.className, Option = _a.Option, open = _a.open, _e = _a.options, options = _e === void 0 ? [] : _e, _f = _a.overscan, overscan = _f === void 0 ? 10 : _f, _g = _a.Optgroup, Optgroup = _g === void 0 ? components_optgroup_Component.Optgroup : _g, dataTestId = _a.dataTestId, emptyPlaceholder = _a.emptyPlaceholder, _h = _a.visibleOptions, visibleOptions = _h === void 0 ? 5 : _h, onScroll = _a.onScroll;
|
|
20
|
-
var listRef = React.useRef(null);
|
|
21
|
-
var parentRef = React.useRef(null);
|
|
22
|
-
var _j = React.useState(0), visibleOptionsInvalidateKey = _j[0], setVisibleOptionsInvalidateKey = _j[1];
|
|
23
|
-
var prevHighlightedIndex = utils.usePrevious(highlightedIndex) || -1;
|
|
24
|
-
var rowVirtualizer = reactVirtual.useVirtual({
|
|
25
|
-
size: flatOptions.length,
|
|
26
|
-
parentRef: parentRef,
|
|
27
|
-
overscan: overscan,
|
|
28
|
-
});
|
|
29
|
-
// Сколл к выбранному пункту при открытии меню
|
|
30
|
-
React.useEffect(function () {
|
|
31
|
-
if (open) {
|
|
32
|
-
rowVirtualizer.scrollToIndex(highlightedIndex, { align: 'end' });
|
|
33
|
-
}
|
|
34
|
-
}, [open]);
|
|
35
|
-
// Скролл к пункту, которого нет на экране
|
|
36
|
-
React.useEffect(function () {
|
|
37
|
-
if (highlightedIndex === -1)
|
|
38
|
-
return;
|
|
39
|
-
if (!rowVirtualizer.virtualItems.some(function (option) { return option.index === highlightedIndex; })) {
|
|
40
|
-
rowVirtualizer.scrollToIndex(highlightedIndex, { align: 'end' });
|
|
41
|
-
}
|
|
42
|
-
}, [highlightedIndex]);
|
|
43
|
-
// Циклическая навигация
|
|
44
|
-
React.useEffect(function () {
|
|
45
|
-
var notDisabled = function (option) { return !option.disabled; };
|
|
46
|
-
var firstNonDisabled = flatOptions.findIndex(notDisabled);
|
|
47
|
-
var lastNonDisabled = utils.lastIndexOf(flatOptions, notDisabled);
|
|
48
|
-
if (prevHighlightedIndex <= firstNonDisabled &&
|
|
49
|
-
highlightedIndex === flatOptions.length - 1) {
|
|
50
|
-
rowVirtualizer.scrollToIndex(lastNonDisabled);
|
|
51
|
-
}
|
|
52
|
-
if (prevHighlightedIndex >= lastNonDisabled && highlightedIndex === 0) {
|
|
53
|
-
rowVirtualizer.scrollToIndex(0);
|
|
54
|
-
}
|
|
55
|
-
}, [prevHighlightedIndex, highlightedIndex]);
|
|
56
|
-
React.useEffect(function () {
|
|
57
|
-
setVisibleOptionsInvalidateKey(
|
|
58
|
-
/**
|
|
59
|
-
* react-virtual может несколько раз отрендерить список с одним элементом,
|
|
60
|
-
* поэтому нужно еще раз пересчитать высоту, когда список ВИДИМЫХ пунктов будет отрендерен полностью
|
|
61
|
-
* Также, высоту нужно пересчитывать при изменении ОБЩЕГО кол-ва пунктов меню
|
|
62
|
-
*/
|
|
63
|
-
rowVirtualizer.virtualItems.length > 1 ? flatOptions.length : 1);
|
|
64
|
-
}, [rowVirtualizer.virtualItems.length, flatOptions.length]);
|
|
65
|
-
utils.useVisibleOptions({
|
|
66
|
-
visibleOptions: visibleOptions,
|
|
67
|
-
invalidate: visibleOptionsInvalidateKey,
|
|
68
|
-
listRef: listRef,
|
|
69
|
-
styleTargetRef: parentRef,
|
|
70
|
-
open: open,
|
|
71
|
-
});
|
|
72
|
-
// Т.к. рендерится плоский список, необходимо знать индекс, когда начинается новая группа
|
|
73
|
-
var groupStartIndexes = React.useMemo(function () {
|
|
74
|
-
var currentIndex = 0;
|
|
75
|
-
return options.reduce(function (acc, option, index) {
|
|
76
|
-
if (utils.isGroup(option)) {
|
|
77
|
-
acc[currentIndex] = index;
|
|
78
|
-
currentIndex += option.options.length;
|
|
79
|
-
}
|
|
80
|
-
else {
|
|
81
|
-
currentIndex += 1;
|
|
82
|
-
}
|
|
83
|
-
return acc;
|
|
84
|
-
}, {});
|
|
85
|
-
}, [options]);
|
|
86
|
-
return (React__default['default'].createElement("div", { className: cn__default['default'](styles__default['default'].virtualOptionsList, styles__default['default'][size], className), ref: parentRef, "data-test-id": dataTestId, onScroll: onScroll },
|
|
87
|
-
React__default['default'].createElement("div", { className: styles__default['default'].inner, style: {
|
|
88
|
-
height: rowVirtualizer.totalSize + "px",
|
|
89
|
-
}, ref: listRef }, rowVirtualizer.virtualItems.map(function (virtualRow) {
|
|
90
|
-
var _a;
|
|
91
|
-
var option = flatOptions[virtualRow.index];
|
|
92
|
-
var group = options[groupStartIndexes[virtualRow.index]];
|
|
93
|
-
return (React__default['default'].createElement("div", { key: virtualRow.index, ref: virtualRow.measureRef, className: cn__default['default'](styles__default['default'].virtualRow, (_a = {},
|
|
94
|
-
_a[styles__default['default'].highlighted] = highlightedIndex === virtualRow.index,
|
|
95
|
-
_a)), style: {
|
|
96
|
-
transform: "translateY(" + virtualRow.start + "px)",
|
|
97
|
-
} },
|
|
98
|
-
group && React__default['default'].createElement(Optgroup, { label: group.label }),
|
|
99
|
-
!utils.isGroup(option) && Option({ option: option, index: virtualRow.index })));
|
|
100
|
-
})),
|
|
101
|
-
emptyPlaceholder && options.length === 0 && (React__default['default'].createElement("div", { className: styles__default['default'].emptyPlaceholder }, emptyPlaceholder))));
|
|
102
|
-
};
|
|
103
|
-
|
|
104
|
-
exports.VirtualOptionsList = VirtualOptionsList;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Component";
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
require('react');
|
|
4
|
-
require('classnames');
|
|
5
|
-
require('../../utils.js');
|
|
6
|
-
require('../optgroup/index.module.css');
|
|
7
|
-
require('../optgroup/Component.js');
|
|
8
|
-
require('react-virtual');
|
|
9
|
-
require('./index.module.css');
|
|
10
|
-
var components_virtualOptionsList_Component = require('./Component.js');
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
exports.VirtualOptionsList = components_virtualOptionsList_Component.VirtualOptionsList;
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
:root {
|
|
2
|
-
--color-light-border-primary: #dbdee1;
|
|
3
|
-
--color-light-text-secondary: #546272;
|
|
4
|
-
|
|
5
|
-
/* TODO: цвета добавлены руками. Обновить токены */
|
|
6
|
-
--color-light-text-secondary-inverted-transparent: rgba(255, 255, 255, 0.7);
|
|
7
|
-
}
|
|
8
|
-
:root {
|
|
9
|
-
|
|
10
|
-
/* Hard */
|
|
11
|
-
|
|
12
|
-
/* Up */
|
|
13
|
-
|
|
14
|
-
/* Hard up */
|
|
15
|
-
}
|
|
16
|
-
:root {
|
|
17
|
-
--gap-s: 12px;
|
|
18
|
-
--gap-m: 16px;
|
|
19
|
-
--gap-xl: 24px;
|
|
20
|
-
}
|
|
21
|
-
:root {
|
|
22
|
-
|
|
23
|
-
/* options list */
|
|
24
|
-
--select-options-list-empty-placeholder-color: var(--color-light-text-secondary);
|
|
25
|
-
--select-option-divider-display: none;
|
|
26
|
-
--select-option-divider-background: var(--color-light-border-primary);
|
|
27
|
-
|
|
28
|
-
/* option */
|
|
29
|
-
|
|
30
|
-
--select-option-left-padding: var(--gap-s);
|
|
31
|
-
--select-option-right-padding: var(--gap-s);
|
|
32
|
-
|
|
33
|
-
/* checkmark */
|
|
34
|
-
|
|
35
|
-
/* optgroup */
|
|
36
|
-
}
|
|
37
|
-
.virtualOptionsList {
|
|
38
|
-
overflow: auto;
|
|
39
|
-
width: 100%;
|
|
40
|
-
outline: none;
|
|
41
|
-
box-sizing: border-box;
|
|
42
|
-
position: relative;
|
|
43
|
-
}
|
|
44
|
-
.inner {
|
|
45
|
-
position: relative;
|
|
46
|
-
width: 100%;
|
|
47
|
-
}
|
|
48
|
-
.virtualRow {
|
|
49
|
-
position: absolute;
|
|
50
|
-
top: 0;
|
|
51
|
-
left: 0;
|
|
52
|
-
width: 100%
|
|
53
|
-
}
|
|
54
|
-
.virtualRow:before {
|
|
55
|
-
content: '';
|
|
56
|
-
position: absolute;
|
|
57
|
-
z-index: 1;
|
|
58
|
-
left: var(--select-option-left-padding);
|
|
59
|
-
right: var(--select-option-right-padding);
|
|
60
|
-
top: 0;
|
|
61
|
-
height: 1px;
|
|
62
|
-
background: var(--select-option-divider-background);
|
|
63
|
-
display: var(--select-option-divider-display);
|
|
64
|
-
}
|
|
65
|
-
.virtualRow:first-child:before {
|
|
66
|
-
display: none;
|
|
67
|
-
}
|
|
68
|
-
.highlighted:before,
|
|
69
|
-
.highlighted + .virtualRow:before {
|
|
70
|
-
display: none;
|
|
71
|
-
}
|
|
72
|
-
.emptyPlaceholder {
|
|
73
|
-
padding: var(--gap-m) var(--gap-s);
|
|
74
|
-
color: var(--select-options-list-empty-placeholder-color);
|
|
75
|
-
}
|
|
76
|
-
.l .emptyPlaceholder,
|
|
77
|
-
.xl .emptyPlaceholder {
|
|
78
|
-
padding: var(--gap-xl) var(--gap-m);
|
|
79
|
-
}
|
package/select/cssm/index.d.ts
DELETED
package/select/cssm/index.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
require('./tslib.es6-f8106a15.js');
|
|
4
|
-
require('react');
|
|
5
|
-
require('classnames');
|
|
6
|
-
require('@alfalab/hooks');
|
|
7
|
-
require('../../form-control/cssm');
|
|
8
|
-
var utils = require('./utils.js');
|
|
9
|
-
require('./components/field/index.module.css');
|
|
10
|
-
var components_field_Component = require('./components/field/Component.js');
|
|
11
|
-
require('./components/arrow/index.module.css');
|
|
12
|
-
var components_arrow_Component = require('./components/arrow/Component.js');
|
|
13
|
-
require('react-merge-refs');
|
|
14
|
-
require('./components/optgroup/index.module.css');
|
|
15
|
-
var components_optgroup_Component = require('./components/optgroup/Component.js');
|
|
16
|
-
require('./components/options-list/index.module.css');
|
|
17
|
-
var components_optionsList_Component = require('./components/options-list/Component.js');
|
|
18
|
-
require('./components/checkmark/index.module.css');
|
|
19
|
-
require('./components/checkmark/Component.js');
|
|
20
|
-
require('./components/option/index.module.css');
|
|
21
|
-
var components_option_Component = require('./components/option/Component.js');
|
|
22
|
-
require('resize-observer');
|
|
23
|
-
require('../../popover/cssm');
|
|
24
|
-
require('downshift');
|
|
25
|
-
require('./components/native-select/Component.js');
|
|
26
|
-
var components_baseSelect_Component = require('./components/base-select/Component.js');
|
|
27
|
-
require('./components/base-select/index.module.css');
|
|
28
|
-
var Component = require('./Component.js');
|
|
29
|
-
require('react-virtual');
|
|
30
|
-
require('./components/virtual-options-list/index.module.css');
|
|
31
|
-
var components_virtualOptionsList_Component = require('./components/virtual-options-list/Component.js');
|
|
32
|
-
require('../../skeleton/cssm');
|
|
33
|
-
require('./presets/useSelectWithLoading/index.module.css');
|
|
34
|
-
var presets_useSelectWithLoading_hook = require('./presets/useSelectWithLoading/hook.js');
|
|
35
|
-
var presets_useLazyLoading_hook = require('./presets/useLazyLoading/hook.js');
|
|
36
|
-
require('./presets/useLazyLoading/index.module.css');
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
exports.isGroup = utils.isGroup;
|
|
41
|
-
exports.isOptionShape = utils.isOptionShape;
|
|
42
|
-
exports.joinOptions = utils.joinOptions;
|
|
43
|
-
exports.lastIndexOf = utils.lastIndexOf;
|
|
44
|
-
exports.processOptions = utils.processOptions;
|
|
45
|
-
exports.usePrevious = utils.usePrevious;
|
|
46
|
-
exports.useVisibleOptions = utils.useVisibleOptions;
|
|
47
|
-
exports.Field = components_field_Component.Field;
|
|
48
|
-
exports.Arrow = components_arrow_Component.Arrow;
|
|
49
|
-
exports.Optgroup = components_optgroup_Component.Optgroup;
|
|
50
|
-
exports.OptionsList = components_optionsList_Component.OptionsList;
|
|
51
|
-
exports.Option = components_option_Component.Option;
|
|
52
|
-
exports.BaseSelect = components_baseSelect_Component.BaseSelect;
|
|
53
|
-
exports.Select = Component.Select;
|
|
54
|
-
exports.VirtualOptionsList = components_virtualOptionsList_Component.VirtualOptionsList;
|
|
55
|
-
exports.useSelectWithLoading = presets_useSelectWithLoading_hook.useSelectWithLoading;
|
|
56
|
-
exports.useLazyLoading = presets_useLazyLoading_hook.useLazyLoading;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
require('../tslib.es6-f8106a15.js');
|
|
4
|
-
require('react');
|
|
5
|
-
require('classnames');
|
|
6
|
-
require('../components/checkmark/index.module.css');
|
|
7
|
-
require('../components/checkmark/Component.js');
|
|
8
|
-
require('../components/option/index.module.css');
|
|
9
|
-
require('../components/option/Component.js');
|
|
10
|
-
require('../../../skeleton/cssm');
|
|
11
|
-
require('./useSelectWithLoading/index.module.css');
|
|
12
|
-
var presets_useSelectWithLoading_hook = require('./useSelectWithLoading/hook.js');
|
|
13
|
-
var presets_useLazyLoading_hook = require('./useLazyLoading/hook.js');
|
|
14
|
-
require('./useLazyLoading/index.module.css');
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
exports.useSelectWithLoading = presets_useSelectWithLoading_hook.useSelectWithLoading;
|
|
19
|
-
exports.useLazyLoading = presets_useLazyLoading_hook.useLazyLoading;
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { OptionShape } from "../../typings";
|
|
4
|
-
type OptionsFetcherResponse = {
|
|
5
|
-
options: OptionShape[];
|
|
6
|
-
hasMore: boolean;
|
|
7
|
-
};
|
|
8
|
-
type useLazyLoadingProps = {
|
|
9
|
-
/** Количество элементов на "странице" */
|
|
10
|
-
limit?: number;
|
|
11
|
-
/** Начальный номер "страницы" */
|
|
12
|
-
initialOffset?: number;
|
|
13
|
-
/** Скелетон загружаемых элементов */
|
|
14
|
-
skeleton?: React.ReactNode;
|
|
15
|
-
/**
|
|
16
|
-
* Функция-загрузчик опций.
|
|
17
|
-
* @param offset - текущая страница
|
|
18
|
-
* @param limit - количество элементов на странице
|
|
19
|
-
* @param queryString - строчные данные, пробрасываемые для поиска из кастомного инпута, расположенного в заголовке OptionsList
|
|
20
|
-
* @returns Promise<{
|
|
21
|
-
* options - список опций следующей "страницы". Они аппендятся к предыдущим
|
|
22
|
-
* hasMore - указывает, есть ли еще незагруженные элементы (в случае false перестает загружать "следующую страницу")
|
|
23
|
-
* }>
|
|
24
|
-
*/
|
|
25
|
-
optionsFetcher<T>(offset: number, limit: number, queryString?: string): Promise<OptionsFetcherResponse>;
|
|
26
|
-
};
|
|
27
|
-
declare function useLazyLoading({ limit, initialOffset, optionsFetcher, skeleton, }: useLazyLoadingProps): {
|
|
28
|
-
optionsProps: {
|
|
29
|
-
Option: (props: any) => JSX.Element;
|
|
30
|
-
options: OptionShape[];
|
|
31
|
-
optionsListProps: {
|
|
32
|
-
ref: React.RefObject<HTMLDivElement>;
|
|
33
|
-
inputProps: {
|
|
34
|
-
onChange: (event: React.ChangeEvent<HTMLInputElement>, payload: {
|
|
35
|
-
value: string;
|
|
36
|
-
}) => void;
|
|
37
|
-
value: string;
|
|
38
|
-
};
|
|
39
|
-
};
|
|
40
|
-
onOpen: (payload: {
|
|
41
|
-
open?: boolean | undefined;
|
|
42
|
-
}) => void;
|
|
43
|
-
};
|
|
44
|
-
reset: () => void;
|
|
45
|
-
};
|
|
46
|
-
export { useLazyLoading };
|
|
@@ -1,1098 +0,0 @@
|
|
|
1
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
2
|
-
|
|
3
|
-
var tslib_es6 = require('../../tslib.es6-f8106a15.js');
|
|
4
|
-
var React = require('react');
|
|
5
|
-
require('classnames');
|
|
6
|
-
require('../../components/checkmark/index.module.css');
|
|
7
|
-
require('../../components/checkmark/Component.js');
|
|
8
|
-
require('../../components/option/index.module.css');
|
|
9
|
-
var components_option_Component = require('../../components/option/Component.js');
|
|
10
|
-
var coreComponentsSkeleton = require('../../../../skeleton/cssm');
|
|
11
|
-
var styles = require('./index.module.css');
|
|
12
|
-
|
|
13
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
14
|
-
|
|
15
|
-
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
16
|
-
var styles__default = /*#__PURE__*/_interopDefaultLegacy(styles);
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Copyright 2016 Google Inc. All Rights Reserved.
|
|
20
|
-
*
|
|
21
|
-
* Licensed under the W3C SOFTWARE AND DOCUMENT NOTICE AND LICENSE.
|
|
22
|
-
*
|
|
23
|
-
* https://www.w3.org/Consortium/Legal/2015/copyright-software-and-document
|
|
24
|
-
*
|
|
25
|
-
*/
|
|
26
|
-
(function () {
|
|
27
|
-
// Exit early if we're not running in a browser.
|
|
28
|
-
if (typeof window !== 'object') {
|
|
29
|
-
return;
|
|
30
|
-
}
|
|
31
|
-
// Exit early if all IntersectionObserver and IntersectionObserverEntry
|
|
32
|
-
// features are natively supported.
|
|
33
|
-
if ('IntersectionObserver' in window &&
|
|
34
|
-
'IntersectionObserverEntry' in window &&
|
|
35
|
-
'intersectionRatio' in window.IntersectionObserverEntry.prototype) {
|
|
36
|
-
// Minimal polyfill for Edge 15's lack of `isIntersecting`
|
|
37
|
-
// See: https://github.com/w3c/IntersectionObserver/issues/211
|
|
38
|
-
if (!('isIntersecting' in window.IntersectionObserverEntry.prototype)) {
|
|
39
|
-
Object.defineProperty(window.IntersectionObserverEntry.prototype, 'isIntersecting', {
|
|
40
|
-
get: function () {
|
|
41
|
-
return this.intersectionRatio > 0;
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
return;
|
|
46
|
-
}
|
|
47
|
-
/**
|
|
48
|
-
* Returns the embedding frame element, if any.
|
|
49
|
-
* @param {!Document} doc
|
|
50
|
-
* @return {!Element}
|
|
51
|
-
*/
|
|
52
|
-
function getFrameElement(doc) {
|
|
53
|
-
try {
|
|
54
|
-
return doc.defaultView && doc.defaultView.frameElement || null;
|
|
55
|
-
}
|
|
56
|
-
catch (e) {
|
|
57
|
-
// Ignore the error.
|
|
58
|
-
return null;
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* A local reference to the root document.
|
|
63
|
-
*/
|
|
64
|
-
var document = (function (startDoc) {
|
|
65
|
-
var doc = startDoc;
|
|
66
|
-
var frame = getFrameElement(doc);
|
|
67
|
-
while (frame) {
|
|
68
|
-
doc = frame.ownerDocument;
|
|
69
|
-
frame = getFrameElement(doc);
|
|
70
|
-
}
|
|
71
|
-
return doc;
|
|
72
|
-
})(window.document);
|
|
73
|
-
/**
|
|
74
|
-
* An IntersectionObserver registry. This registry exists to hold a strong
|
|
75
|
-
* reference to IntersectionObserver instances currently observing a target
|
|
76
|
-
* element. Without this registry, instances without another reference may be
|
|
77
|
-
* garbage collected.
|
|
78
|
-
*/
|
|
79
|
-
var registry = [];
|
|
80
|
-
/**
|
|
81
|
-
* The signal updater for cross-origin intersection. When not null, it means
|
|
82
|
-
* that the polyfill is configured to work in a cross-origin mode.
|
|
83
|
-
* @type {function(DOMRect|ClientRect, DOMRect|ClientRect)}
|
|
84
|
-
*/
|
|
85
|
-
var crossOriginUpdater = null;
|
|
86
|
-
/**
|
|
87
|
-
* The current cross-origin intersection. Only used in the cross-origin mode.
|
|
88
|
-
* @type {DOMRect|ClientRect}
|
|
89
|
-
*/
|
|
90
|
-
var crossOriginRect = null;
|
|
91
|
-
/**
|
|
92
|
-
* Creates the global IntersectionObserverEntry constructor.
|
|
93
|
-
* https://w3c.github.io/IntersectionObserver/#intersection-observer-entry
|
|
94
|
-
* @param {Object} entry A dictionary of instance properties.
|
|
95
|
-
* @constructor
|
|
96
|
-
*/
|
|
97
|
-
function IntersectionObserverEntry(entry) {
|
|
98
|
-
this.time = entry.time;
|
|
99
|
-
this.target = entry.target;
|
|
100
|
-
this.rootBounds = ensureDOMRect(entry.rootBounds);
|
|
101
|
-
this.boundingClientRect = ensureDOMRect(entry.boundingClientRect);
|
|
102
|
-
this.intersectionRect = ensureDOMRect(entry.intersectionRect || getEmptyRect());
|
|
103
|
-
this.isIntersecting = !!entry.intersectionRect;
|
|
104
|
-
// Calculates the intersection ratio.
|
|
105
|
-
var targetRect = this.boundingClientRect;
|
|
106
|
-
var targetArea = targetRect.width * targetRect.height;
|
|
107
|
-
var intersectionRect = this.intersectionRect;
|
|
108
|
-
var intersectionArea = intersectionRect.width * intersectionRect.height;
|
|
109
|
-
// Sets intersection ratio.
|
|
110
|
-
if (targetArea) {
|
|
111
|
-
// Round the intersection ratio to avoid floating point math issues:
|
|
112
|
-
// https://github.com/w3c/IntersectionObserver/issues/324
|
|
113
|
-
this.intersectionRatio = Number((intersectionArea / targetArea).toFixed(4));
|
|
114
|
-
}
|
|
115
|
-
else {
|
|
116
|
-
// If area is zero and is intersecting, sets to 1, otherwise to 0
|
|
117
|
-
this.intersectionRatio = this.isIntersecting ? 1 : 0;
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Creates the global IntersectionObserver constructor.
|
|
122
|
-
* https://w3c.github.io/IntersectionObserver/#intersection-observer-interface
|
|
123
|
-
* @param {Function} callback The function to be invoked after intersection
|
|
124
|
-
* changes have queued. The function is not invoked if the queue has
|
|
125
|
-
* been emptied by calling the `takeRecords` method.
|
|
126
|
-
* @param {Object=} opt_options Optional configuration options.
|
|
127
|
-
* @constructor
|
|
128
|
-
*/
|
|
129
|
-
function IntersectionObserver(callback, opt_options) {
|
|
130
|
-
var options = opt_options || {};
|
|
131
|
-
if (typeof callback != 'function') {
|
|
132
|
-
throw new Error('callback must be a function');
|
|
133
|
-
}
|
|
134
|
-
if (options.root &&
|
|
135
|
-
options.root.nodeType != 1 &&
|
|
136
|
-
options.root.nodeType != 9) {
|
|
137
|
-
throw new Error('root must be a Document or Element');
|
|
138
|
-
}
|
|
139
|
-
// Binds and throttles `this._checkForIntersections`.
|
|
140
|
-
this._checkForIntersections = throttle(this._checkForIntersections.bind(this), this.THROTTLE_TIMEOUT);
|
|
141
|
-
// Private properties.
|
|
142
|
-
this._callback = callback;
|
|
143
|
-
this._observationTargets = [];
|
|
144
|
-
this._queuedEntries = [];
|
|
145
|
-
this._rootMarginValues = this._parseRootMargin(options.rootMargin);
|
|
146
|
-
// Public properties.
|
|
147
|
-
this.thresholds = this._initThresholds(options.threshold);
|
|
148
|
-
this.root = options.root || null;
|
|
149
|
-
this.rootMargin = this._rootMarginValues.map(function (margin) {
|
|
150
|
-
return margin.value + margin.unit;
|
|
151
|
-
}).join(' ');
|
|
152
|
-
/** @private @const {!Array<!Document>} */
|
|
153
|
-
this._monitoringDocuments = [];
|
|
154
|
-
/** @private @const {!Array<function()>} */
|
|
155
|
-
this._monitoringUnsubscribes = [];
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* The minimum interval within which the document will be checked for
|
|
159
|
-
* intersection changes.
|
|
160
|
-
*/
|
|
161
|
-
IntersectionObserver.prototype.THROTTLE_TIMEOUT = 100;
|
|
162
|
-
/**
|
|
163
|
-
* The frequency in which the polyfill polls for intersection changes.
|
|
164
|
-
* this can be updated on a per instance basis and must be set prior to
|
|
165
|
-
* calling `observe` on the first target.
|
|
166
|
-
*/
|
|
167
|
-
IntersectionObserver.prototype.POLL_INTERVAL = null;
|
|
168
|
-
/**
|
|
169
|
-
* Use a mutation observer on the root element
|
|
170
|
-
* to detect intersection changes.
|
|
171
|
-
*/
|
|
172
|
-
IntersectionObserver.prototype.USE_MUTATION_OBSERVER = true;
|
|
173
|
-
/**
|
|
174
|
-
* Sets up the polyfill in the cross-origin mode. The result is the
|
|
175
|
-
* updater function that accepts two arguments: `boundingClientRect` and
|
|
176
|
-
* `intersectionRect` - just as these fields would be available to the
|
|
177
|
-
* parent via `IntersectionObserverEntry`. This function should be called
|
|
178
|
-
* each time the iframe receives intersection information from the parent
|
|
179
|
-
* window, e.g. via messaging.
|
|
180
|
-
* @return {function(DOMRect|ClientRect, DOMRect|ClientRect)}
|
|
181
|
-
*/
|
|
182
|
-
IntersectionObserver._setupCrossOriginUpdater = function () {
|
|
183
|
-
if (!crossOriginUpdater) {
|
|
184
|
-
/**
|
|
185
|
-
* @param {DOMRect|ClientRect} boundingClientRect
|
|
186
|
-
* @param {DOMRect|ClientRect} intersectionRect
|
|
187
|
-
*/
|
|
188
|
-
crossOriginUpdater = function (boundingClientRect, intersectionRect) {
|
|
189
|
-
if (!boundingClientRect || !intersectionRect) {
|
|
190
|
-
crossOriginRect = getEmptyRect();
|
|
191
|
-
}
|
|
192
|
-
else {
|
|
193
|
-
crossOriginRect = convertFromParentRect(boundingClientRect, intersectionRect);
|
|
194
|
-
}
|
|
195
|
-
registry.forEach(function (observer) {
|
|
196
|
-
observer._checkForIntersections();
|
|
197
|
-
});
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
return crossOriginUpdater;
|
|
201
|
-
};
|
|
202
|
-
/**
|
|
203
|
-
* Resets the cross-origin mode.
|
|
204
|
-
*/
|
|
205
|
-
IntersectionObserver._resetCrossOriginUpdater = function () {
|
|
206
|
-
crossOriginUpdater = null;
|
|
207
|
-
crossOriginRect = null;
|
|
208
|
-
};
|
|
209
|
-
/**
|
|
210
|
-
* Starts observing a target element for intersection changes based on
|
|
211
|
-
* the thresholds values.
|
|
212
|
-
* @param {Element} target The DOM element to observe.
|
|
213
|
-
*/
|
|
214
|
-
IntersectionObserver.prototype.observe = function (target) {
|
|
215
|
-
var isTargetAlreadyObserved = this._observationTargets.some(function (item) {
|
|
216
|
-
return item.element == target;
|
|
217
|
-
});
|
|
218
|
-
if (isTargetAlreadyObserved) {
|
|
219
|
-
return;
|
|
220
|
-
}
|
|
221
|
-
if (!(target && target.nodeType == 1)) {
|
|
222
|
-
throw new Error('target must be an Element');
|
|
223
|
-
}
|
|
224
|
-
this._registerInstance();
|
|
225
|
-
this._observationTargets.push({ element: target, entry: null });
|
|
226
|
-
this._monitorIntersections(target.ownerDocument);
|
|
227
|
-
this._checkForIntersections();
|
|
228
|
-
};
|
|
229
|
-
/**
|
|
230
|
-
* Stops observing a target element for intersection changes.
|
|
231
|
-
* @param {Element} target The DOM element to observe.
|
|
232
|
-
*/
|
|
233
|
-
IntersectionObserver.prototype.unobserve = function (target) {
|
|
234
|
-
this._observationTargets =
|
|
235
|
-
this._observationTargets.filter(function (item) {
|
|
236
|
-
return item.element != target;
|
|
237
|
-
});
|
|
238
|
-
this._unmonitorIntersections(target.ownerDocument);
|
|
239
|
-
if (this._observationTargets.length == 0) {
|
|
240
|
-
this._unregisterInstance();
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
/**
|
|
244
|
-
* Stops observing all target elements for intersection changes.
|
|
245
|
-
*/
|
|
246
|
-
IntersectionObserver.prototype.disconnect = function () {
|
|
247
|
-
this._observationTargets = [];
|
|
248
|
-
this._unmonitorAllIntersections();
|
|
249
|
-
this._unregisterInstance();
|
|
250
|
-
};
|
|
251
|
-
/**
|
|
252
|
-
* Returns any queue entries that have not yet been reported to the
|
|
253
|
-
* callback and clears the queue. This can be used in conjunction with the
|
|
254
|
-
* callback to obtain the absolute most up-to-date intersection information.
|
|
255
|
-
* @return {Array} The currently queued entries.
|
|
256
|
-
*/
|
|
257
|
-
IntersectionObserver.prototype.takeRecords = function () {
|
|
258
|
-
var records = this._queuedEntries.slice();
|
|
259
|
-
this._queuedEntries = [];
|
|
260
|
-
return records;
|
|
261
|
-
};
|
|
262
|
-
/**
|
|
263
|
-
* Accepts the threshold value from the user configuration object and
|
|
264
|
-
* returns a sorted array of unique threshold values. If a value is not
|
|
265
|
-
* between 0 and 1 and error is thrown.
|
|
266
|
-
* @private
|
|
267
|
-
* @param {Array|number=} opt_threshold An optional threshold value or
|
|
268
|
-
* a list of threshold values, defaulting to [0].
|
|
269
|
-
* @return {Array} A sorted list of unique and valid threshold values.
|
|
270
|
-
*/
|
|
271
|
-
IntersectionObserver.prototype._initThresholds = function (opt_threshold) {
|
|
272
|
-
var threshold = opt_threshold || [0];
|
|
273
|
-
if (!Array.isArray(threshold))
|
|
274
|
-
threshold = [threshold];
|
|
275
|
-
return threshold.sort().filter(function (t, i, a) {
|
|
276
|
-
if (typeof t != 'number' || isNaN(t) || t < 0 || t > 1) {
|
|
277
|
-
throw new Error('threshold must be a number between 0 and 1 inclusively');
|
|
278
|
-
}
|
|
279
|
-
return t !== a[i - 1];
|
|
280
|
-
});
|
|
281
|
-
};
|
|
282
|
-
/**
|
|
283
|
-
* Accepts the rootMargin value from the user configuration object
|
|
284
|
-
* and returns an array of the four margin values as an object containing
|
|
285
|
-
* the value and unit properties. If any of the values are not properly
|
|
286
|
-
* formatted or use a unit other than px or %, and error is thrown.
|
|
287
|
-
* @private
|
|
288
|
-
* @param {string=} opt_rootMargin An optional rootMargin value,
|
|
289
|
-
* defaulting to '0px'.
|
|
290
|
-
* @return {Array<Object>} An array of margin objects with the keys
|
|
291
|
-
* value and unit.
|
|
292
|
-
*/
|
|
293
|
-
IntersectionObserver.prototype._parseRootMargin = function (opt_rootMargin) {
|
|
294
|
-
var marginString = opt_rootMargin || '0px';
|
|
295
|
-
var margins = marginString.split(/\s+/).map(function (margin) {
|
|
296
|
-
var parts = /^(-?\d*\.?\d+)(px|%)$/.exec(margin);
|
|
297
|
-
if (!parts) {
|
|
298
|
-
throw new Error('rootMargin must be specified in pixels or percent');
|
|
299
|
-
}
|
|
300
|
-
return { value: parseFloat(parts[1]), unit: parts[2] };
|
|
301
|
-
});
|
|
302
|
-
// Handles shorthand.
|
|
303
|
-
margins[1] = margins[1] || margins[0];
|
|
304
|
-
margins[2] = margins[2] || margins[0];
|
|
305
|
-
margins[3] = margins[3] || margins[1];
|
|
306
|
-
return margins;
|
|
307
|
-
};
|
|
308
|
-
/**
|
|
309
|
-
* Starts polling for intersection changes if the polling is not already
|
|
310
|
-
* happening, and if the page's visibility state is visible.
|
|
311
|
-
* @param {!Document} doc
|
|
312
|
-
* @private
|
|
313
|
-
*/
|
|
314
|
-
IntersectionObserver.prototype._monitorIntersections = function (doc) {
|
|
315
|
-
var win = doc.defaultView;
|
|
316
|
-
if (!win) {
|
|
317
|
-
// Already destroyed.
|
|
318
|
-
return;
|
|
319
|
-
}
|
|
320
|
-
if (this._monitoringDocuments.indexOf(doc) != -1) {
|
|
321
|
-
// Already monitoring.
|
|
322
|
-
return;
|
|
323
|
-
}
|
|
324
|
-
// Private state for monitoring.
|
|
325
|
-
var callback = this._checkForIntersections;
|
|
326
|
-
var monitoringInterval = null;
|
|
327
|
-
var domObserver = null;
|
|
328
|
-
// If a poll interval is set, use polling instead of listening to
|
|
329
|
-
// resize and scroll events or DOM mutations.
|
|
330
|
-
if (this.POLL_INTERVAL) {
|
|
331
|
-
monitoringInterval = win.setInterval(callback, this.POLL_INTERVAL);
|
|
332
|
-
}
|
|
333
|
-
else {
|
|
334
|
-
addEvent(win, 'resize', callback, true);
|
|
335
|
-
addEvent(doc, 'scroll', callback, true);
|
|
336
|
-
if (this.USE_MUTATION_OBSERVER && 'MutationObserver' in win) {
|
|
337
|
-
domObserver = new win.MutationObserver(callback);
|
|
338
|
-
domObserver.observe(doc, {
|
|
339
|
-
attributes: true,
|
|
340
|
-
childList: true,
|
|
341
|
-
characterData: true,
|
|
342
|
-
subtree: true
|
|
343
|
-
});
|
|
344
|
-
}
|
|
345
|
-
}
|
|
346
|
-
this._monitoringDocuments.push(doc);
|
|
347
|
-
this._monitoringUnsubscribes.push(function () {
|
|
348
|
-
// Get the window object again. When a friendly iframe is destroyed, it
|
|
349
|
-
// will be null.
|
|
350
|
-
var win = doc.defaultView;
|
|
351
|
-
if (win) {
|
|
352
|
-
if (monitoringInterval) {
|
|
353
|
-
win.clearInterval(monitoringInterval);
|
|
354
|
-
}
|
|
355
|
-
removeEvent(win, 'resize', callback, true);
|
|
356
|
-
}
|
|
357
|
-
removeEvent(doc, 'scroll', callback, true);
|
|
358
|
-
if (domObserver) {
|
|
359
|
-
domObserver.disconnect();
|
|
360
|
-
}
|
|
361
|
-
});
|
|
362
|
-
// Also monitor the parent.
|
|
363
|
-
var rootDoc = (this.root && (this.root.ownerDocument || this.root)) || document;
|
|
364
|
-
if (doc != rootDoc) {
|
|
365
|
-
var frame = getFrameElement(doc);
|
|
366
|
-
if (frame) {
|
|
367
|
-
this._monitorIntersections(frame.ownerDocument);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
};
|
|
371
|
-
/**
|
|
372
|
-
* Stops polling for intersection changes.
|
|
373
|
-
* @param {!Document} doc
|
|
374
|
-
* @private
|
|
375
|
-
*/
|
|
376
|
-
IntersectionObserver.prototype._unmonitorIntersections = function (doc) {
|
|
377
|
-
var index = this._monitoringDocuments.indexOf(doc);
|
|
378
|
-
if (index == -1) {
|
|
379
|
-
return;
|
|
380
|
-
}
|
|
381
|
-
var rootDoc = (this.root && (this.root.ownerDocument || this.root)) || document;
|
|
382
|
-
// Check if any dependent targets are still remaining.
|
|
383
|
-
var hasDependentTargets = this._observationTargets.some(function (item) {
|
|
384
|
-
var itemDoc = item.element.ownerDocument;
|
|
385
|
-
// Target is in this context.
|
|
386
|
-
if (itemDoc == doc) {
|
|
387
|
-
return true;
|
|
388
|
-
}
|
|
389
|
-
// Target is nested in this context.
|
|
390
|
-
while (itemDoc && itemDoc != rootDoc) {
|
|
391
|
-
var frame = getFrameElement(itemDoc);
|
|
392
|
-
itemDoc = frame && frame.ownerDocument;
|
|
393
|
-
if (itemDoc == doc) {
|
|
394
|
-
return true;
|
|
395
|
-
}
|
|
396
|
-
}
|
|
397
|
-
return false;
|
|
398
|
-
});
|
|
399
|
-
if (hasDependentTargets) {
|
|
400
|
-
return;
|
|
401
|
-
}
|
|
402
|
-
// Unsubscribe.
|
|
403
|
-
var unsubscribe = this._monitoringUnsubscribes[index];
|
|
404
|
-
this._monitoringDocuments.splice(index, 1);
|
|
405
|
-
this._monitoringUnsubscribes.splice(index, 1);
|
|
406
|
-
unsubscribe();
|
|
407
|
-
// Also unmonitor the parent.
|
|
408
|
-
if (doc != rootDoc) {
|
|
409
|
-
var frame = getFrameElement(doc);
|
|
410
|
-
if (frame) {
|
|
411
|
-
this._unmonitorIntersections(frame.ownerDocument);
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
};
|
|
415
|
-
/**
|
|
416
|
-
* Stops polling for intersection changes.
|
|
417
|
-
* @param {!Document} doc
|
|
418
|
-
* @private
|
|
419
|
-
*/
|
|
420
|
-
IntersectionObserver.prototype._unmonitorAllIntersections = function () {
|
|
421
|
-
var unsubscribes = this._monitoringUnsubscribes.slice(0);
|
|
422
|
-
this._monitoringDocuments.length = 0;
|
|
423
|
-
this._monitoringUnsubscribes.length = 0;
|
|
424
|
-
for (var i = 0; i < unsubscribes.length; i++) {
|
|
425
|
-
unsubscribes[i]();
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
/**
|
|
429
|
-
* Scans each observation target for intersection changes and adds them
|
|
430
|
-
* to the internal entries queue. If new entries are found, it
|
|
431
|
-
* schedules the callback to be invoked.
|
|
432
|
-
* @private
|
|
433
|
-
*/
|
|
434
|
-
IntersectionObserver.prototype._checkForIntersections = function () {
|
|
435
|
-
if (!this.root && crossOriginUpdater && !crossOriginRect) {
|
|
436
|
-
// Cross origin monitoring, but no initial data available yet.
|
|
437
|
-
return;
|
|
438
|
-
}
|
|
439
|
-
var rootIsInDom = this._rootIsInDom();
|
|
440
|
-
var rootRect = rootIsInDom ? this._getRootRect() : getEmptyRect();
|
|
441
|
-
this._observationTargets.forEach(function (item) {
|
|
442
|
-
var target = item.element;
|
|
443
|
-
var targetRect = getBoundingClientRect(target);
|
|
444
|
-
var rootContainsTarget = this._rootContainsTarget(target);
|
|
445
|
-
var oldEntry = item.entry;
|
|
446
|
-
var intersectionRect = rootIsInDom && rootContainsTarget &&
|
|
447
|
-
this._computeTargetAndRootIntersection(target, targetRect, rootRect);
|
|
448
|
-
var rootBounds = null;
|
|
449
|
-
if (!this._rootContainsTarget(target)) {
|
|
450
|
-
rootBounds = getEmptyRect();
|
|
451
|
-
}
|
|
452
|
-
else if (!crossOriginUpdater || this.root) {
|
|
453
|
-
rootBounds = rootRect;
|
|
454
|
-
}
|
|
455
|
-
var newEntry = item.entry = new IntersectionObserverEntry({
|
|
456
|
-
time: now(),
|
|
457
|
-
target: target,
|
|
458
|
-
boundingClientRect: targetRect,
|
|
459
|
-
rootBounds: rootBounds,
|
|
460
|
-
intersectionRect: intersectionRect
|
|
461
|
-
});
|
|
462
|
-
if (!oldEntry) {
|
|
463
|
-
this._queuedEntries.push(newEntry);
|
|
464
|
-
}
|
|
465
|
-
else if (rootIsInDom && rootContainsTarget) {
|
|
466
|
-
// If the new entry intersection ratio has crossed any of the
|
|
467
|
-
// thresholds, add a new entry.
|
|
468
|
-
if (this._hasCrossedThreshold(oldEntry, newEntry)) {
|
|
469
|
-
this._queuedEntries.push(newEntry);
|
|
470
|
-
}
|
|
471
|
-
}
|
|
472
|
-
else {
|
|
473
|
-
// If the root is not in the DOM or target is not contained within
|
|
474
|
-
// root but the previous entry for this target had an intersection,
|
|
475
|
-
// add a new record indicating removal.
|
|
476
|
-
if (oldEntry && oldEntry.isIntersecting) {
|
|
477
|
-
this._queuedEntries.push(newEntry);
|
|
478
|
-
}
|
|
479
|
-
}
|
|
480
|
-
}, this);
|
|
481
|
-
if (this._queuedEntries.length) {
|
|
482
|
-
this._callback(this.takeRecords(), this);
|
|
483
|
-
}
|
|
484
|
-
};
|
|
485
|
-
/**
|
|
486
|
-
* Accepts a target and root rect computes the intersection between then
|
|
487
|
-
* following the algorithm in the spec.
|
|
488
|
-
* TODO(philipwalton): at this time clip-path is not considered.
|
|
489
|
-
* https://w3c.github.io/IntersectionObserver/#calculate-intersection-rect-algo
|
|
490
|
-
* @param {Element} target The target DOM element
|
|
491
|
-
* @param {Object} targetRect The bounding rect of the target.
|
|
492
|
-
* @param {Object} rootRect The bounding rect of the root after being
|
|
493
|
-
* expanded by the rootMargin value.
|
|
494
|
-
* @return {?Object} The final intersection rect object or undefined if no
|
|
495
|
-
* intersection is found.
|
|
496
|
-
* @private
|
|
497
|
-
*/
|
|
498
|
-
IntersectionObserver.prototype._computeTargetAndRootIntersection =
|
|
499
|
-
function (target, targetRect, rootRect) {
|
|
500
|
-
// If the element isn't displayed, an intersection can't happen.
|
|
501
|
-
if (window.getComputedStyle(target).display == 'none')
|
|
502
|
-
return;
|
|
503
|
-
var intersectionRect = targetRect;
|
|
504
|
-
var parent = getParentNode(target);
|
|
505
|
-
var atRoot = false;
|
|
506
|
-
while (!atRoot && parent) {
|
|
507
|
-
var parentRect = null;
|
|
508
|
-
var parentComputedStyle = parent.nodeType == 1 ?
|
|
509
|
-
window.getComputedStyle(parent) : {};
|
|
510
|
-
// If the parent isn't displayed, an intersection can't happen.
|
|
511
|
-
if (parentComputedStyle.display == 'none')
|
|
512
|
-
return null;
|
|
513
|
-
if (parent == this.root || parent.nodeType == /* DOCUMENT */ 9) {
|
|
514
|
-
atRoot = true;
|
|
515
|
-
if (parent == this.root || parent == document) {
|
|
516
|
-
if (crossOriginUpdater && !this.root) {
|
|
517
|
-
if (!crossOriginRect ||
|
|
518
|
-
crossOriginRect.width == 0 && crossOriginRect.height == 0) {
|
|
519
|
-
// A 0-size cross-origin intersection means no-intersection.
|
|
520
|
-
parent = null;
|
|
521
|
-
parentRect = null;
|
|
522
|
-
intersectionRect = null;
|
|
523
|
-
}
|
|
524
|
-
else {
|
|
525
|
-
parentRect = crossOriginRect;
|
|
526
|
-
}
|
|
527
|
-
}
|
|
528
|
-
else {
|
|
529
|
-
parentRect = rootRect;
|
|
530
|
-
}
|
|
531
|
-
}
|
|
532
|
-
else {
|
|
533
|
-
// Check if there's a frame that can be navigated to.
|
|
534
|
-
var frame = getParentNode(parent);
|
|
535
|
-
var frameRect = frame && getBoundingClientRect(frame);
|
|
536
|
-
var frameIntersect = frame &&
|
|
537
|
-
this._computeTargetAndRootIntersection(frame, frameRect, rootRect);
|
|
538
|
-
if (frameRect && frameIntersect) {
|
|
539
|
-
parent = frame;
|
|
540
|
-
parentRect = convertFromParentRect(frameRect, frameIntersect);
|
|
541
|
-
}
|
|
542
|
-
else {
|
|
543
|
-
parent = null;
|
|
544
|
-
intersectionRect = null;
|
|
545
|
-
}
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
else {
|
|
549
|
-
// If the element has a non-visible overflow, and it's not the <body>
|
|
550
|
-
// or <html> element, update the intersection rect.
|
|
551
|
-
// Note: <body> and <html> cannot be clipped to a rect that's not also
|
|
552
|
-
// the document rect, so no need to compute a new intersection.
|
|
553
|
-
var doc = parent.ownerDocument;
|
|
554
|
-
if (parent != doc.body &&
|
|
555
|
-
parent != doc.documentElement &&
|
|
556
|
-
parentComputedStyle.overflow != 'visible') {
|
|
557
|
-
parentRect = getBoundingClientRect(parent);
|
|
558
|
-
}
|
|
559
|
-
}
|
|
560
|
-
// If either of the above conditionals set a new parentRect,
|
|
561
|
-
// calculate new intersection data.
|
|
562
|
-
if (parentRect) {
|
|
563
|
-
intersectionRect = computeRectIntersection(parentRect, intersectionRect);
|
|
564
|
-
}
|
|
565
|
-
if (!intersectionRect)
|
|
566
|
-
break;
|
|
567
|
-
parent = parent && getParentNode(parent);
|
|
568
|
-
}
|
|
569
|
-
return intersectionRect;
|
|
570
|
-
};
|
|
571
|
-
/**
|
|
572
|
-
* Returns the root rect after being expanded by the rootMargin value.
|
|
573
|
-
* @return {ClientRect} The expanded root rect.
|
|
574
|
-
* @private
|
|
575
|
-
*/
|
|
576
|
-
IntersectionObserver.prototype._getRootRect = function () {
|
|
577
|
-
var rootRect;
|
|
578
|
-
if (this.root && !isDoc(this.root)) {
|
|
579
|
-
rootRect = getBoundingClientRect(this.root);
|
|
580
|
-
}
|
|
581
|
-
else {
|
|
582
|
-
// Use <html>/<body> instead of window since scroll bars affect size.
|
|
583
|
-
var doc = isDoc(this.root) ? this.root : document;
|
|
584
|
-
var html = doc.documentElement;
|
|
585
|
-
var body = doc.body;
|
|
586
|
-
rootRect = {
|
|
587
|
-
top: 0,
|
|
588
|
-
left: 0,
|
|
589
|
-
right: html.clientWidth || body.clientWidth,
|
|
590
|
-
width: html.clientWidth || body.clientWidth,
|
|
591
|
-
bottom: html.clientHeight || body.clientHeight,
|
|
592
|
-
height: html.clientHeight || body.clientHeight
|
|
593
|
-
};
|
|
594
|
-
}
|
|
595
|
-
return this._expandRectByRootMargin(rootRect);
|
|
596
|
-
};
|
|
597
|
-
/**
|
|
598
|
-
* Accepts a rect and expands it by the rootMargin value.
|
|
599
|
-
* @param {DOMRect|ClientRect} rect The rect object to expand.
|
|
600
|
-
* @return {ClientRect} The expanded rect.
|
|
601
|
-
* @private
|
|
602
|
-
*/
|
|
603
|
-
IntersectionObserver.prototype._expandRectByRootMargin = function (rect) {
|
|
604
|
-
var margins = this._rootMarginValues.map(function (margin, i) {
|
|
605
|
-
return margin.unit == 'px' ? margin.value :
|
|
606
|
-
margin.value * (i % 2 ? rect.width : rect.height) / 100;
|
|
607
|
-
});
|
|
608
|
-
var newRect = {
|
|
609
|
-
top: rect.top - margins[0],
|
|
610
|
-
right: rect.right + margins[1],
|
|
611
|
-
bottom: rect.bottom + margins[2],
|
|
612
|
-
left: rect.left - margins[3]
|
|
613
|
-
};
|
|
614
|
-
newRect.width = newRect.right - newRect.left;
|
|
615
|
-
newRect.height = newRect.bottom - newRect.top;
|
|
616
|
-
return newRect;
|
|
617
|
-
};
|
|
618
|
-
/**
|
|
619
|
-
* Accepts an old and new entry and returns true if at least one of the
|
|
620
|
-
* threshold values has been crossed.
|
|
621
|
-
* @param {?IntersectionObserverEntry} oldEntry The previous entry for a
|
|
622
|
-
* particular target element or null if no previous entry exists.
|
|
623
|
-
* @param {IntersectionObserverEntry} newEntry The current entry for a
|
|
624
|
-
* particular target element.
|
|
625
|
-
* @return {boolean} Returns true if a any threshold has been crossed.
|
|
626
|
-
* @private
|
|
627
|
-
*/
|
|
628
|
-
IntersectionObserver.prototype._hasCrossedThreshold =
|
|
629
|
-
function (oldEntry, newEntry) {
|
|
630
|
-
// To make comparing easier, an entry that has a ratio of 0
|
|
631
|
-
// but does not actually intersect is given a value of -1
|
|
632
|
-
var oldRatio = oldEntry && oldEntry.isIntersecting ?
|
|
633
|
-
oldEntry.intersectionRatio || 0 : -1;
|
|
634
|
-
var newRatio = newEntry.isIntersecting ?
|
|
635
|
-
newEntry.intersectionRatio || 0 : -1;
|
|
636
|
-
// Ignore unchanged ratios
|
|
637
|
-
if (oldRatio === newRatio)
|
|
638
|
-
return;
|
|
639
|
-
for (var i = 0; i < this.thresholds.length; i++) {
|
|
640
|
-
var threshold = this.thresholds[i];
|
|
641
|
-
// Return true if an entry matches a threshold or if the new ratio
|
|
642
|
-
// and the old ratio are on the opposite sides of a threshold.
|
|
643
|
-
if (threshold == oldRatio || threshold == newRatio ||
|
|
644
|
-
threshold < oldRatio !== threshold < newRatio) {
|
|
645
|
-
return true;
|
|
646
|
-
}
|
|
647
|
-
}
|
|
648
|
-
};
|
|
649
|
-
/**
|
|
650
|
-
* Returns whether or not the root element is an element and is in the DOM.
|
|
651
|
-
* @return {boolean} True if the root element is an element and is in the DOM.
|
|
652
|
-
* @private
|
|
653
|
-
*/
|
|
654
|
-
IntersectionObserver.prototype._rootIsInDom = function () {
|
|
655
|
-
return !this.root || containsDeep(document, this.root);
|
|
656
|
-
};
|
|
657
|
-
/**
|
|
658
|
-
* Returns whether or not the target element is a child of root.
|
|
659
|
-
* @param {Element} target The target element to check.
|
|
660
|
-
* @return {boolean} True if the target element is a child of root.
|
|
661
|
-
* @private
|
|
662
|
-
*/
|
|
663
|
-
IntersectionObserver.prototype._rootContainsTarget = function (target) {
|
|
664
|
-
var rootDoc = (this.root && (this.root.ownerDocument || this.root)) || document;
|
|
665
|
-
return (containsDeep(rootDoc, target) &&
|
|
666
|
-
(!this.root || rootDoc == target.ownerDocument));
|
|
667
|
-
};
|
|
668
|
-
/**
|
|
669
|
-
* Adds the instance to the global IntersectionObserver registry if it isn't
|
|
670
|
-
* already present.
|
|
671
|
-
* @private
|
|
672
|
-
*/
|
|
673
|
-
IntersectionObserver.prototype._registerInstance = function () {
|
|
674
|
-
if (registry.indexOf(this) < 0) {
|
|
675
|
-
registry.push(this);
|
|
676
|
-
}
|
|
677
|
-
};
|
|
678
|
-
/**
|
|
679
|
-
* Removes the instance from the global IntersectionObserver registry.
|
|
680
|
-
* @private
|
|
681
|
-
*/
|
|
682
|
-
IntersectionObserver.prototype._unregisterInstance = function () {
|
|
683
|
-
var index = registry.indexOf(this);
|
|
684
|
-
if (index != -1)
|
|
685
|
-
registry.splice(index, 1);
|
|
686
|
-
};
|
|
687
|
-
/**
|
|
688
|
-
* Returns the result of the performance.now() method or null in browsers
|
|
689
|
-
* that don't support the API.
|
|
690
|
-
* @return {number} The elapsed time since the page was requested.
|
|
691
|
-
*/
|
|
692
|
-
function now() {
|
|
693
|
-
return window.performance && performance.now && performance.now();
|
|
694
|
-
}
|
|
695
|
-
/**
|
|
696
|
-
* Throttles a function and delays its execution, so it's only called at most
|
|
697
|
-
* once within a given time period.
|
|
698
|
-
* @param {Function} fn The function to throttle.
|
|
699
|
-
* @param {number} timeout The amount of time that must pass before the
|
|
700
|
-
* function can be called again.
|
|
701
|
-
* @return {Function} The throttled function.
|
|
702
|
-
*/
|
|
703
|
-
function throttle(fn, timeout) {
|
|
704
|
-
var timer = null;
|
|
705
|
-
return function () {
|
|
706
|
-
if (!timer) {
|
|
707
|
-
timer = setTimeout(function () {
|
|
708
|
-
fn();
|
|
709
|
-
timer = null;
|
|
710
|
-
}, timeout);
|
|
711
|
-
}
|
|
712
|
-
};
|
|
713
|
-
}
|
|
714
|
-
/**
|
|
715
|
-
* Adds an event handler to a DOM node ensuring cross-browser compatibility.
|
|
716
|
-
* @param {Node} node The DOM node to add the event handler to.
|
|
717
|
-
* @param {string} event The event name.
|
|
718
|
-
* @param {Function} fn The event handler to add.
|
|
719
|
-
* @param {boolean} opt_useCapture Optionally adds the even to the capture
|
|
720
|
-
* phase. Note: this only works in modern browsers.
|
|
721
|
-
*/
|
|
722
|
-
function addEvent(node, event, fn, opt_useCapture) {
|
|
723
|
-
if (typeof node.addEventListener == 'function') {
|
|
724
|
-
node.addEventListener(event, fn, opt_useCapture || false);
|
|
725
|
-
}
|
|
726
|
-
else if (typeof node.attachEvent == 'function') {
|
|
727
|
-
node.attachEvent('on' + event, fn);
|
|
728
|
-
}
|
|
729
|
-
}
|
|
730
|
-
/**
|
|
731
|
-
* Removes a previously added event handler from a DOM node.
|
|
732
|
-
* @param {Node} node The DOM node to remove the event handler from.
|
|
733
|
-
* @param {string} event The event name.
|
|
734
|
-
* @param {Function} fn The event handler to remove.
|
|
735
|
-
* @param {boolean} opt_useCapture If the event handler was added with this
|
|
736
|
-
* flag set to true, it should be set to true here in order to remove it.
|
|
737
|
-
*/
|
|
738
|
-
function removeEvent(node, event, fn, opt_useCapture) {
|
|
739
|
-
if (typeof node.removeEventListener == 'function') {
|
|
740
|
-
node.removeEventListener(event, fn, opt_useCapture || false);
|
|
741
|
-
}
|
|
742
|
-
else if (typeof node.detatchEvent == 'function') {
|
|
743
|
-
node.detatchEvent('on' + event, fn);
|
|
744
|
-
}
|
|
745
|
-
}
|
|
746
|
-
/**
|
|
747
|
-
* Returns the intersection between two rect objects.
|
|
748
|
-
* @param {Object} rect1 The first rect.
|
|
749
|
-
* @param {Object} rect2 The second rect.
|
|
750
|
-
* @return {?Object|?ClientRect} The intersection rect or undefined if no
|
|
751
|
-
* intersection is found.
|
|
752
|
-
*/
|
|
753
|
-
function computeRectIntersection(rect1, rect2) {
|
|
754
|
-
var top = Math.max(rect1.top, rect2.top);
|
|
755
|
-
var bottom = Math.min(rect1.bottom, rect2.bottom);
|
|
756
|
-
var left = Math.max(rect1.left, rect2.left);
|
|
757
|
-
var right = Math.min(rect1.right, rect2.right);
|
|
758
|
-
var width = right - left;
|
|
759
|
-
var height = bottom - top;
|
|
760
|
-
return (width >= 0 && height >= 0) && {
|
|
761
|
-
top: top,
|
|
762
|
-
bottom: bottom,
|
|
763
|
-
left: left,
|
|
764
|
-
right: right,
|
|
765
|
-
width: width,
|
|
766
|
-
height: height
|
|
767
|
-
} || null;
|
|
768
|
-
}
|
|
769
|
-
/**
|
|
770
|
-
* Shims the native getBoundingClientRect for compatibility with older IE.
|
|
771
|
-
* @param {Element} el The element whose bounding rect to get.
|
|
772
|
-
* @return {DOMRect|ClientRect} The (possibly shimmed) rect of the element.
|
|
773
|
-
*/
|
|
774
|
-
function getBoundingClientRect(el) {
|
|
775
|
-
var rect;
|
|
776
|
-
try {
|
|
777
|
-
rect = el.getBoundingClientRect();
|
|
778
|
-
}
|
|
779
|
-
catch (err) {
|
|
780
|
-
// Ignore Windows 7 IE11 "Unspecified error"
|
|
781
|
-
// https://github.com/w3c/IntersectionObserver/pull/205
|
|
782
|
-
}
|
|
783
|
-
if (!rect)
|
|
784
|
-
return getEmptyRect();
|
|
785
|
-
// Older IE
|
|
786
|
-
if (!(rect.width && rect.height)) {
|
|
787
|
-
rect = {
|
|
788
|
-
top: rect.top,
|
|
789
|
-
right: rect.right,
|
|
790
|
-
bottom: rect.bottom,
|
|
791
|
-
left: rect.left,
|
|
792
|
-
width: rect.right - rect.left,
|
|
793
|
-
height: rect.bottom - rect.top
|
|
794
|
-
};
|
|
795
|
-
}
|
|
796
|
-
return rect;
|
|
797
|
-
}
|
|
798
|
-
/**
|
|
799
|
-
* Returns an empty rect object. An empty rect is returned when an element
|
|
800
|
-
* is not in the DOM.
|
|
801
|
-
* @return {ClientRect} The empty rect.
|
|
802
|
-
*/
|
|
803
|
-
function getEmptyRect() {
|
|
804
|
-
return {
|
|
805
|
-
top: 0,
|
|
806
|
-
bottom: 0,
|
|
807
|
-
left: 0,
|
|
808
|
-
right: 0,
|
|
809
|
-
width: 0,
|
|
810
|
-
height: 0
|
|
811
|
-
};
|
|
812
|
-
}
|
|
813
|
-
/**
|
|
814
|
-
* Ensure that the result has all of the necessary fields of the DOMRect.
|
|
815
|
-
* Specifically this ensures that `x` and `y` fields are set.
|
|
816
|
-
*
|
|
817
|
-
* @param {?DOMRect|?ClientRect} rect
|
|
818
|
-
* @return {?DOMRect}
|
|
819
|
-
*/
|
|
820
|
-
function ensureDOMRect(rect) {
|
|
821
|
-
// A `DOMRect` object has `x` and `y` fields.
|
|
822
|
-
if (!rect || 'x' in rect) {
|
|
823
|
-
return rect;
|
|
824
|
-
}
|
|
825
|
-
// A IE's `ClientRect` type does not have `x` and `y`. The same is the case
|
|
826
|
-
// for internally calculated Rect objects. For the purposes of
|
|
827
|
-
// `IntersectionObserver`, it's sufficient to simply mirror `left` and `top`
|
|
828
|
-
// for these fields.
|
|
829
|
-
return {
|
|
830
|
-
top: rect.top,
|
|
831
|
-
y: rect.top,
|
|
832
|
-
bottom: rect.bottom,
|
|
833
|
-
left: rect.left,
|
|
834
|
-
x: rect.left,
|
|
835
|
-
right: rect.right,
|
|
836
|
-
width: rect.width,
|
|
837
|
-
height: rect.height
|
|
838
|
-
};
|
|
839
|
-
}
|
|
840
|
-
/**
|
|
841
|
-
* Inverts the intersection and bounding rect from the parent (frame) BCR to
|
|
842
|
-
* the local BCR space.
|
|
843
|
-
* @param {DOMRect|ClientRect} parentBoundingRect The parent's bound client rect.
|
|
844
|
-
* @param {DOMRect|ClientRect} parentIntersectionRect The parent's own intersection rect.
|
|
845
|
-
* @return {ClientRect} The local root bounding rect for the parent's children.
|
|
846
|
-
*/
|
|
847
|
-
function convertFromParentRect(parentBoundingRect, parentIntersectionRect) {
|
|
848
|
-
var top = parentIntersectionRect.top - parentBoundingRect.top;
|
|
849
|
-
var left = parentIntersectionRect.left - parentBoundingRect.left;
|
|
850
|
-
return {
|
|
851
|
-
top: top,
|
|
852
|
-
left: left,
|
|
853
|
-
height: parentIntersectionRect.height,
|
|
854
|
-
width: parentIntersectionRect.width,
|
|
855
|
-
bottom: top + parentIntersectionRect.height,
|
|
856
|
-
right: left + parentIntersectionRect.width
|
|
857
|
-
};
|
|
858
|
-
}
|
|
859
|
-
/**
|
|
860
|
-
* Checks to see if a parent element contains a child element (including inside
|
|
861
|
-
* shadow DOM).
|
|
862
|
-
* @param {Node} parent The parent element.
|
|
863
|
-
* @param {Node} child The child element.
|
|
864
|
-
* @return {boolean} True if the parent node contains the child node.
|
|
865
|
-
*/
|
|
866
|
-
function containsDeep(parent, child) {
|
|
867
|
-
var node = child;
|
|
868
|
-
while (node) {
|
|
869
|
-
if (node == parent)
|
|
870
|
-
return true;
|
|
871
|
-
node = getParentNode(node);
|
|
872
|
-
}
|
|
873
|
-
return false;
|
|
874
|
-
}
|
|
875
|
-
/**
|
|
876
|
-
* Gets the parent node of an element or its host element if the parent node
|
|
877
|
-
* is a shadow root.
|
|
878
|
-
* @param {Node} node The node whose parent to get.
|
|
879
|
-
* @return {Node|null} The parent node or null if no parent exists.
|
|
880
|
-
*/
|
|
881
|
-
function getParentNode(node) {
|
|
882
|
-
var parent = node.parentNode;
|
|
883
|
-
if (node.nodeType == /* DOCUMENT */ 9 && node != document) {
|
|
884
|
-
// If this node is a document node, look for the embedding frame.
|
|
885
|
-
return getFrameElement(node);
|
|
886
|
-
}
|
|
887
|
-
// If the parent has element that is assigned through shadow root slot
|
|
888
|
-
if (parent && parent.assignedSlot) {
|
|
889
|
-
parent = parent.assignedSlot.parentNode;
|
|
890
|
-
}
|
|
891
|
-
if (parent && parent.nodeType == 11 && parent.host) {
|
|
892
|
-
// If the parent is a shadow root, return the host element.
|
|
893
|
-
return parent.host;
|
|
894
|
-
}
|
|
895
|
-
return parent;
|
|
896
|
-
}
|
|
897
|
-
/**
|
|
898
|
-
* Returns true if `node` is a Document.
|
|
899
|
-
* @param {!Node} node
|
|
900
|
-
* @returns {boolean}
|
|
901
|
-
*/
|
|
902
|
-
function isDoc(node) {
|
|
903
|
-
return node && node.nodeType === 9;
|
|
904
|
-
}
|
|
905
|
-
// Exposes the constructors globally.
|
|
906
|
-
window.IntersectionObserver = IntersectionObserver;
|
|
907
|
-
window.IntersectionObserverEntry = IntersectionObserverEntry;
|
|
908
|
-
}());
|
|
909
|
-
|
|
910
|
-
var DEBOUNCE_TIMEOUT = 300;
|
|
911
|
-
var actions = {
|
|
912
|
-
fetchOptionsStart: function () {
|
|
913
|
-
return { type: 'FETCH_OPTIONS_START' };
|
|
914
|
-
},
|
|
915
|
-
fetchOptionsBreak: function () {
|
|
916
|
-
return { type: 'FETCH_OPTIONS_BREAK' };
|
|
917
|
-
},
|
|
918
|
-
fetchOptionsSuccess: function (payload) {
|
|
919
|
-
return { type: 'FETCH_OPTIONS_SUCCESS', payload: payload };
|
|
920
|
-
},
|
|
921
|
-
setIsOpened: function (opened) {
|
|
922
|
-
return { type: 'SET_IS_OPENED', payload: opened };
|
|
923
|
-
},
|
|
924
|
-
setQueryString: function (qs) {
|
|
925
|
-
return { type: 'SET_QUERY_STRING', payload: qs };
|
|
926
|
-
},
|
|
927
|
-
reset: function () {
|
|
928
|
-
return { type: 'RESET' };
|
|
929
|
-
},
|
|
930
|
-
};
|
|
931
|
-
function useLazyLoading(_a) {
|
|
932
|
-
var _b = _a.limit, limit = _b === void 0 ? 10 : _b, _c = _a.initialOffset, initialOffset = _c === void 0 ? 0 : _c, optionsFetcher = _a.optionsFetcher, _d = _a.skeleton, skeleton = _d === void 0 ? React__default['default'].createElement(coreComponentsSkeleton.Skeleton, { className: styles__default['default'].skeleton, visible: true }) : _d;
|
|
933
|
-
var initialOptions = [];
|
|
934
|
-
var initialLoading = false;
|
|
935
|
-
var lazyLoadingInitialState = {
|
|
936
|
-
opened: false,
|
|
937
|
-
offset: initialOffset,
|
|
938
|
-
options: initialOptions,
|
|
939
|
-
loading: initialLoading,
|
|
940
|
-
allOptionsLoaded: false,
|
|
941
|
-
queryString: '',
|
|
942
|
-
};
|
|
943
|
-
var lazyLoadingReducer = function (state, action) {
|
|
944
|
-
switch (action.type) {
|
|
945
|
-
case 'FETCH_OPTIONS_START': {
|
|
946
|
-
return tslib_es6.__assign(tslib_es6.__assign({}, state), { loading: true });
|
|
947
|
-
}
|
|
948
|
-
case 'FETCH_OPTIONS_BREAK': {
|
|
949
|
-
return tslib_es6.__assign(tslib_es6.__assign({}, state), { loading: false });
|
|
950
|
-
}
|
|
951
|
-
case 'FETCH_OPTIONS_SUCCESS': {
|
|
952
|
-
return tslib_es6.__assign(tslib_es6.__assign({}, state), { options: tslib_es6.__spreadArrays(state.options, action.payload.options), offset: state.offset + (action.payload.options.length ? 1 : 0), allOptionsLoaded: !action.payload.hasMore, loading: false });
|
|
953
|
-
}
|
|
954
|
-
case 'SET_IS_OPENED': {
|
|
955
|
-
return tslib_es6.__assign(tslib_es6.__assign({}, state), { opened: action.payload });
|
|
956
|
-
}
|
|
957
|
-
case 'SET_QUERY_STRING': {
|
|
958
|
-
return tslib_es6.__assign(tslib_es6.__assign({}, lazyLoadingInitialState), { opened: state.opened, loading: true, queryString: action.payload });
|
|
959
|
-
}
|
|
960
|
-
case 'RESET': {
|
|
961
|
-
return tslib_es6.__assign({}, lazyLoadingInitialState);
|
|
962
|
-
}
|
|
963
|
-
default: {
|
|
964
|
-
return state;
|
|
965
|
-
}
|
|
966
|
-
}
|
|
967
|
-
};
|
|
968
|
-
var _e = React.useReducer(lazyLoadingReducer, lazyLoadingInitialState), _f = _e[0], opened = _f.opened, offset = _f.offset, options = _f.options, loading = _f.loading, allOptionsLoaded = _f.allOptionsLoaded, queryString = _f.queryString, dispatch = _e[1];
|
|
969
|
-
var abortFetchingOptionsRef = React.useRef();
|
|
970
|
-
var fetchNextOffsetOptions = React.useCallback(function () {
|
|
971
|
-
dispatch(actions.fetchOptionsStart());
|
|
972
|
-
new Promise(function (resolve, reject) {
|
|
973
|
-
var _a;
|
|
974
|
-
// eslint-disable-next-line no-unused-expressions
|
|
975
|
-
(_a = abortFetchingOptionsRef.current) === null || _a === void 0 ? void 0 : _a.call(abortFetchingOptionsRef);
|
|
976
|
-
abortFetchingOptionsRef.current = reject;
|
|
977
|
-
optionsFetcher(offset, limit, queryString).then(function (res) {
|
|
978
|
-
resolve(res);
|
|
979
|
-
});
|
|
980
|
-
})
|
|
981
|
-
.then(function (res) {
|
|
982
|
-
dispatch(actions.fetchOptionsSuccess(res));
|
|
983
|
-
abortFetchingOptionsRef.current = undefined;
|
|
984
|
-
})
|
|
985
|
-
.catch(
|
|
986
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
987
|
-
function () { });
|
|
988
|
-
}, [optionsFetcher, offset, limit, queryString]);
|
|
989
|
-
var listRef = React.useRef(null);
|
|
990
|
-
React.useEffect(function () {
|
|
991
|
-
var _a;
|
|
992
|
-
var observer;
|
|
993
|
-
if (opened && !loading && !allOptionsLoaded) {
|
|
994
|
-
observer = new IntersectionObserver(function (_a) {
|
|
995
|
-
var entry = _a[0];
|
|
996
|
-
if (entry.isIntersecting) {
|
|
997
|
-
if (observer) {
|
|
998
|
-
observer.disconnect();
|
|
999
|
-
}
|
|
1000
|
-
fetchNextOffsetOptions();
|
|
1001
|
-
}
|
|
1002
|
-
}, {
|
|
1003
|
-
root: listRef.current,
|
|
1004
|
-
});
|
|
1005
|
-
/*
|
|
1006
|
-
* Обсервим пересечение последней опции с контейнером.
|
|
1007
|
-
* Таким образом, загрузка следующей "страницы" начнется когда юзер доскроллит список
|
|
1008
|
-
* до верхнего края последней опции, что обеспечивает плавность
|
|
1009
|
-
*/
|
|
1010
|
-
var options_1 = (_a = listRef.current) === null || _a === void 0 ? void 0 : _a.querySelectorAll('[role="option"]');
|
|
1011
|
-
var lastOption = options_1 === null || options_1 === void 0 ? void 0 : options_1[options_1.length - 1];
|
|
1012
|
-
if (lastOption) {
|
|
1013
|
-
observer.observe(lastOption);
|
|
1014
|
-
}
|
|
1015
|
-
}
|
|
1016
|
-
return function () {
|
|
1017
|
-
if (observer) {
|
|
1018
|
-
observer.disconnect();
|
|
1019
|
-
}
|
|
1020
|
-
};
|
|
1021
|
-
}, [offset, fetchNextOffsetOptions, opened, allOptionsLoaded, initialOffset, loading]);
|
|
1022
|
-
var onOpen = React.useCallback(function (payload) {
|
|
1023
|
-
var _a, _b;
|
|
1024
|
-
if (payload.open) {
|
|
1025
|
-
if (options.length === initialOptions.length) {
|
|
1026
|
-
fetchNextOffsetOptions();
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
else {
|
|
1030
|
-
// eslint-disable-next-line no-unused-expressions
|
|
1031
|
-
(_a = abortFetchingOptionsRef.current) === null || _a === void 0 ? void 0 : _a.call(abortFetchingOptionsRef);
|
|
1032
|
-
dispatch(actions.fetchOptionsBreak());
|
|
1033
|
-
}
|
|
1034
|
-
dispatch(actions.setIsOpened((_b = payload.open) !== null && _b !== void 0 ? _b : false));
|
|
1035
|
-
}, [initialOptions.length, fetchNextOffsetOptions, options.length]);
|
|
1036
|
-
var fetchNextOptionsRef = React.useRef();
|
|
1037
|
-
var fetchNextOptionsTimerRef = React.useRef();
|
|
1038
|
-
React.useEffect(function () {
|
|
1039
|
-
fetchNextOptionsRef.current = fetchNextOffsetOptions;
|
|
1040
|
-
}, [fetchNextOffsetOptions]);
|
|
1041
|
-
var onQueryStringChange = React.useCallback(function (_, payload) {
|
|
1042
|
-
var _a, _b;
|
|
1043
|
-
dispatch(actions.setQueryString(payload.value));
|
|
1044
|
-
/* eslint-disable no-unused-expressions */
|
|
1045
|
-
/*
|
|
1046
|
-
* Если во время загрузки опций юзер ввел новый текст в инпут,
|
|
1047
|
-
* нужно прервать текущую загрузку, чтобы неактуальные опции не попали в выдачу
|
|
1048
|
-
*/
|
|
1049
|
-
(_a = abortFetchingOptionsRef.current) === null || _a === void 0 ? void 0 : _a.call(abortFetchingOptionsRef);
|
|
1050
|
-
(_b = listRef.current) === null || _b === void 0 ? void 0 : _b.scrollTo({ top: 0 });
|
|
1051
|
-
/* Дебаунсим ввод текста, чтобы не отправлять запрос к новым опциям на каждый чих */
|
|
1052
|
-
if (fetchNextOptionsTimerRef.current) {
|
|
1053
|
-
clearTimeout(fetchNextOptionsTimerRef.current);
|
|
1054
|
-
}
|
|
1055
|
-
fetchNextOptionsTimerRef.current = setTimeout(function () {
|
|
1056
|
-
var _a;
|
|
1057
|
-
/*
|
|
1058
|
-
* После дебаунса необходимо вызвать функцию-загрузчик,
|
|
1059
|
-
* содержащую актуальные на данный момент данные оффсета и queryString.
|
|
1060
|
-
* Поэтому мы не можем обратиться напрямую к функции fetchNextOptions,
|
|
1061
|
-
* так как она будет замкнута на старые значения, актуальные на момент вызова хэндлера,
|
|
1062
|
-
* так что берем ее из обновляемого рефа
|
|
1063
|
-
*/
|
|
1064
|
-
(_a = fetchNextOptionsRef.current) === null || _a === void 0 ? void 0 : _a.call(fetchNextOptionsRef);
|
|
1065
|
-
}, DEBOUNCE_TIMEOUT);
|
|
1066
|
-
/* eslint-enable */
|
|
1067
|
-
}, []);
|
|
1068
|
-
var renderOption = React.useCallback(function (props) { return React__default['default'].createElement(components_option_Component.Option, tslib_es6.__assign({}, props, { highlighted: loading ? false : props.highlighted })); }, [loading]);
|
|
1069
|
-
var skeletonOptions = React.useMemo(function () {
|
|
1070
|
-
return Array(loading ? limit : 0)
|
|
1071
|
-
.fill(0)
|
|
1072
|
-
.map(function (_, key) { return ({
|
|
1073
|
-
key: "loading-" + key,
|
|
1074
|
-
disabled: true,
|
|
1075
|
-
content: skeleton,
|
|
1076
|
-
}); });
|
|
1077
|
-
}, [loading, limit, skeleton]);
|
|
1078
|
-
var reset = React.useCallback(function () {
|
|
1079
|
-
dispatch(actions.reset());
|
|
1080
|
-
}, []);
|
|
1081
|
-
return {
|
|
1082
|
-
optionsProps: {
|
|
1083
|
-
Option: renderOption,
|
|
1084
|
-
options: tslib_es6.__spreadArrays(options, skeletonOptions),
|
|
1085
|
-
optionsListProps: {
|
|
1086
|
-
ref: listRef,
|
|
1087
|
-
inputProps: {
|
|
1088
|
-
onChange: onQueryStringChange,
|
|
1089
|
-
value: queryString,
|
|
1090
|
-
},
|
|
1091
|
-
},
|
|
1092
|
-
onOpen: onOpen,
|
|
1093
|
-
},
|
|
1094
|
-
reset: reset,
|
|
1095
|
-
};
|
|
1096
|
-
}
|
|
1097
|
-
|
|
1098
|
-
exports.useLazyLoading = useLazyLoading;
|