@alfalab/core-components 20.2.0 → 20.4.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/cssm/Component.d.ts +5 -0
- package/alert/cssm/Component.js +58 -0
- package/alert/cssm/index.d.ts +1 -0
- package/alert/cssm/index.js +11 -0
- package/alert/cssm/index.module.css +37 -0
- package/amount/cssm/component.d.ts +9 -0
- package/amount/cssm/component.js +35 -0
- package/amount/cssm/index.d.ts +8 -0
- package/amount/cssm/index.js +14 -0
- package/amount/cssm/index.module.css +20 -0
- package/amount/cssm/pure/component.d.ts +10 -0
- package/amount/cssm/pure/component.js +30 -0
- package/amount/cssm/pure/index.d.ts +1 -0
- package/amount/cssm/pure/index.js +11 -0
- package/amount/cssm/pure/index.module.css +3 -0
- package/amount/cssm/types/amount-props.d.ts +29 -0
- package/amount/cssm/types/amount-props.js +1 -0
- package/amount/cssm/types/index.d.ts +2 -0
- package/amount/cssm/types/index.js +1 -0
- package/amount-input/cssm/Component.d.ts +98 -0
- package/amount-input/cssm/Component.js +168 -0
- package/amount-input/cssm/default.module.css +17 -0
- package/amount-input/cssm/index.d.ts +1 -0
- package/amount-input/cssm/index.js +16 -0
- package/amount-input/cssm/index.module.css +35 -0
- package/amount-input/cssm/inverted.module.css +16 -0
- package/amount-input/cssm/utils/index.d.ts +10 -0
- package/amount-input/cssm/utils/index.js +40 -0
- package/attach/cssm/Component.d.ts +133 -0
- package/attach/cssm/Component.js +145 -0
- package/attach/cssm/index.d.ts +1 -0
- package/attach/cssm/index.js +18 -0
- package/attach/cssm/index.module.css +105 -0
- package/attach/cssm/utils/index.d.ts +2 -0
- package/attach/cssm/utils/index.js +11 -0
- package/backdrop/cssm/Component.d.ts +36 -0
- package/backdrop/cssm/Component.js +62 -0
- package/backdrop/cssm/index.d.ts +1 -0
- package/backdrop/cssm/index.js +11 -0
- package/backdrop/cssm/index.module.css +46 -0
- package/backdrop/cssm/vars.css +8 -0
- package/badge/cssm/Component.d.ts +34 -0
- package/badge/cssm/Component.js +26 -0
- package/badge/cssm/index.d.ts +1 -0
- package/badge/cssm/index.js +10 -0
- package/badge/cssm/index.module.css +114 -0
- package/bank-card/cssm/Component.d.ts +41 -0
- package/bank-card/cssm/Component.js +70 -0
- package/bank-card/cssm/index.d.ts +1 -0
- package/bank-card/cssm/index.js +15 -0
- package/bank-card/cssm/index.module.css +634 -0
- package/bank-card/cssm/utils.d.ts +8 -0
- package/bank-card/cssm/utils.js +27 -0
- package/base-modal/cssm/Component.d.ts +125 -0
- package/base-modal/cssm/Component.js +243 -0
- package/base-modal/cssm/index.d.ts +2 -0
- package/base-modal/cssm/index.js +24 -0
- package/base-modal/cssm/index.module.css +61 -0
- package/base-modal/cssm/utils.d.ts +6 -0
- package/base-modal/cssm/utils.js +102 -0
- package/bottom-sheet/cssm/Component-24200d96.d.ts +50 -0
- package/bottom-sheet/cssm/Component-24200d96.js +53 -0
- package/bottom-sheet/cssm/component.d.ts +55 -0
- package/bottom-sheet/cssm/component.js +150 -0
- package/bottom-sheet/cssm/components/footer/Component.d.ts +13 -0
- package/bottom-sheet/cssm/components/footer/Component.js +26 -0
- package/bottom-sheet/cssm/components/footer/index.module.css +25 -0
- package/bottom-sheet/cssm/components/swipeable-backdrop/Component.d.ts +0 -0
- package/bottom-sheet/cssm/components/swipeable-backdrop/Component.js +9 -0
- package/bottom-sheet/cssm/index.d.ts +1 -0
- package/bottom-sheet/cssm/index.js +18 -0
- package/bottom-sheet/cssm/index.module.css +91 -0
- package/button/cssm/Component.d.ts +63 -0
- package/button/cssm/Component.js +129 -0
- package/button/cssm/default.module.css +193 -0
- package/button/cssm/index.d.ts +1 -0
- package/button/cssm/index.js +16 -0
- package/button/cssm/index.module.css +187 -0
- package/button/cssm/inverted.module.css +181 -0
- package/calendar/Component.js +1 -1
- package/calendar/components/days-table/Component.js +1 -1
- package/calendar/components/days-table/index.js +1 -1
- package/calendar/components/header/Component.js +1 -1
- package/calendar/components/header/index.js +1 -1
- package/calendar/components/months-table/Component.js +1 -1
- package/calendar/components/months-table/index.js +1 -1
- package/calendar/components/select-button/Component.js +1 -1
- package/calendar/components/select-button/index.js +1 -1
- package/calendar/components/years-table/Component.js +1 -1
- package/calendar/components/years-table/index.js +1 -1
- package/calendar/cssm/Component.d.ts +67 -0
- package/calendar/cssm/Component.js +103 -0
- package/calendar/cssm/components/days-table/Component.d.ts +32 -0
- package/calendar/cssm/components/days-table/Component.js +77 -0
- package/calendar/cssm/components/days-table/index.d.ts +1 -0
- package/calendar/cssm/components/days-table/index.js +16 -0
- package/calendar/cssm/components/days-table/index.module.css +240 -0
- package/calendar/cssm/components/header/Component.d.ts +46 -0
- package/calendar/cssm/components/header/Component.js +38 -0
- package/calendar/cssm/components/header/index.d.ts +1 -0
- package/calendar/cssm/components/header/index.js +14 -0
- package/calendar/cssm/components/header/index.module.css +108 -0
- package/calendar/cssm/components/months-table/Component.d.ts +18 -0
- package/calendar/cssm/components/months-table/Component.js +30 -0
- package/calendar/cssm/components/months-table/index.d.ts +1 -0
- package/calendar/cssm/components/months-table/index.js +16 -0
- package/calendar/cssm/components/months-table/index.module.css +46 -0
- package/calendar/cssm/components/select-button/Component.d.ts +24 -0
- package/calendar/cssm/components/select-button/Component.js +20 -0
- package/calendar/cssm/components/select-button/index.d.ts +1 -0
- package/calendar/cssm/components/select-button/index.js +12 -0
- package/calendar/cssm/components/select-button/index.module.css +79 -0
- package/calendar/cssm/components/years-table/Component.d.ts +21 -0
- package/calendar/cssm/components/years-table/Component.js +44 -0
- package/calendar/cssm/components/years-table/index.d.ts +1 -0
- package/calendar/cssm/components/years-table/index.js +15 -0
- package/calendar/cssm/components/years-table/index.module.css +57 -0
- package/calendar/cssm/index.d.ts +4 -0
- package/calendar/cssm/index.js +40 -0
- package/calendar/cssm/index.module.css +53 -0
- package/calendar/{esm/tslib.es6-4cdbe0cb.d.ts → cssm/tslib.es6-ce870b46.d.ts} +0 -0
- package/calendar/{tslib.es6-74210174.js → cssm/tslib.es6-ce870b46.js} +0 -0
- package/calendar/cssm/typings.d.ts +15 -0
- package/calendar/cssm/typings.js +1 -0
- package/calendar/cssm/useCalendar.d.ts +89 -0
- package/calendar/cssm/useCalendar.js +283 -0
- package/calendar/cssm/usePeriod.d.ts +23 -0
- package/calendar/cssm/usePeriod.js +67 -0
- package/calendar/cssm/utils.d.ts +78 -0
- package/calendar/cssm/utils.js +191 -0
- package/calendar/cssm/vars.css +20 -0
- package/calendar/esm/Component.js +1 -1
- package/calendar/esm/components/days-table/Component.js +1 -1
- 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.js +1 -1
- package/calendar/esm/components/months-table/Component.js +1 -1
- 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.js +1 -1
- package/calendar/esm/components/years-table/Component.js +1 -1
- package/calendar/esm/components/years-table/index.js +1 -1
- package/calendar/esm/index.js +1 -1
- package/calendar/{tslib.es6-74210174.d.ts → esm/tslib.es6-decc30d3.d.ts} +0 -0
- package/calendar/esm/{tslib.es6-4cdbe0cb.js → tslib.es6-decc30d3.js} +0 -0
- package/calendar/index.js +1 -1
- package/{gallery/esm/tslib.es6-5424b006.d.ts → calendar/tslib.es6-af3fab91.d.ts} +0 -0
- package/{gallery/tslib.es6-36496c07.js → calendar/tslib.es6-af3fab91.js} +0 -0
- package/calendar-input/cssm/Component.d.ts +169 -0
- package/calendar-input/cssm/Component.js +161 -0
- package/calendar-input/cssm/index.d.ts +2 -0
- package/calendar-input/cssm/index.js +25 -0
- package/calendar-input/cssm/index.module.css +84 -0
- package/calendar-input/cssm/stories.module.css +28 -0
- package/calendar-input/cssm/utils.d.ts +13 -0
- package/calendar-input/cssm/utils.js +38 -0
- package/calendar-range/cssm/Component.d.ts +55 -0
- package/calendar-range/cssm/Component.js +196 -0
- package/calendar-range/cssm/index.d.ts +1 -0
- package/calendar-range/cssm/index.js +16 -0
- package/calendar-range/cssm/index.module.css +35 -0
- package/calendar-range/cssm/useCalendarMaxMinDates.d.ts +16 -0
- package/calendar-range/cssm/useCalendarMaxMinDates.js +20 -0
- package/calendar-range/cssm/useCalendarMonthes.d.ts +14 -0
- package/calendar-range/cssm/useCalendarMonthes.js +44 -0
- package/calendar-range/cssm/utils.d.ts +11 -0
- package/calendar-range/cssm/utils.js +22 -0
- package/calendar-with-skeleton/cssm/Component.d.ts +24 -0
- package/calendar-with-skeleton/cssm/Component.js +74 -0
- package/calendar-with-skeleton/cssm/index.d.ts +1 -0
- package/calendar-with-skeleton/cssm/index.js +13 -0
- package/calendar-with-skeleton/cssm/index.module.css +60 -0
- package/card-image/cssm/Component.d.ts +50 -0
- package/card-image/cssm/Component.js +38 -0
- package/card-image/cssm/index.d.ts +1 -0
- package/card-image/cssm/index.js +13 -0
- package/card-image/cssm/index.module.css +35 -0
- package/cdn-icon/cssm/Component.d.ts +18 -0
- package/cdn-icon/cssm/Component.js +30 -0
- package/cdn-icon/cssm/index.d.ts +1 -0
- package/cdn-icon/cssm/index.js +9 -0
- package/cdn-icon/cssm/index.module.css +14 -0
- package/chart/Component.d.ts +5 -0
- package/chart/Component.js +269 -0
- package/chart/components/Dot/index.css +23 -0
- package/chart/components/Dot/index.d.ts +5 -0
- package/chart/components/Dot/index.js +53 -0
- package/chart/components/Legends/index.css +40 -0
- package/chart/components/Legends/index.d.ts +14 -0
- package/chart/components/Legends/index.js +46 -0
- package/chart/components/LinearGradient.d.ts +5 -0
- package/chart/components/LinearGradient.js +14 -0
- package/chart/components/Tick/index.css +27 -0
- package/chart/components/Tick/index.d.ts +4 -0
- package/chart/components/Tick/index.js +28 -0
- package/chart/components/TooltipContent/index.css +65 -0
- package/chart/components/TooltipContent/index.d.ts +10 -0
- package/chart/components/TooltipContent/index.js +36 -0
- package/chart/cssm/Component.d.ts +5 -0
- package/chart/cssm/Component.js +272 -0
- package/chart/cssm/components/Dot/index.d.ts +5 -0
- package/chart/cssm/components/Dot/index.js +52 -0
- package/chart/cssm/components/Dot/index.module.css +22 -0
- package/chart/cssm/components/Legends/index.d.ts +14 -0
- package/chart/cssm/components/Legends/index.js +45 -0
- package/chart/cssm/components/Legends/index.module.css +39 -0
- package/chart/cssm/components/LinearGradient.d.ts +5 -0
- package/chart/cssm/components/LinearGradient.js +14 -0
- package/chart/cssm/components/Tick/index.d.ts +4 -0
- package/chart/cssm/components/Tick/index.js +27 -0
- package/chart/cssm/components/Tick/index.module.css +26 -0
- package/chart/cssm/components/TooltipContent/index.d.ts +10 -0
- package/chart/cssm/components/TooltipContent/index.js +35 -0
- package/chart/cssm/components/TooltipContent/index.module.css +64 -0
- package/chart/cssm/hooks/useSettings/index.d.ts +16 -0
- package/chart/cssm/hooks/useSettings/index.js +47 -0
- package/chart/cssm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
- package/chart/cssm/hooks/useSettings/utils/setComposedChartsMargin.js +17 -0
- package/chart/cssm/hooks/useSettings/utils/setDatas.d.ts +6 -0
- package/chart/cssm/hooks/useSettings/utils/setDatas.js +39 -0
- package/chart/cssm/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
- package/chart/cssm/hooks/useSettings/utils/setGradientCharts.js +27 -0
- package/chart/cssm/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
- package/chart/cssm/hooks/useSettings/utils/setLegendMargin.js +16 -0
- package/chart/cssm/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
- package/chart/cssm/hooks/useSettings/utils/sortByIndex.js +12 -0
- package/chart/cssm/icons/Circle.d.ts +7 -0
- package/chart/cssm/icons/Circle.js +15 -0
- package/chart/cssm/icons/CircleLine.d.ts +8 -0
- package/chart/cssm/icons/CircleLine.js +16 -0
- package/chart/cssm/icons/FilledCircle.d.ts +7 -0
- package/chart/cssm/icons/FilledCircle.js +19 -0
- package/chart/cssm/icons/Point.d.ts +7 -0
- package/chart/cssm/icons/Point.js +16 -0
- package/chart/cssm/icons/StrokeCircle.d.ts +7 -0
- package/chart/cssm/icons/StrokeCircle.js +15 -0
- package/chart/cssm/index.d.ts +1 -0
- package/chart/cssm/index.js +27 -0
- package/chart/cssm/index.module.css +25 -0
- package/{gallery/tslib.es6-36496c07.d.ts → chart/cssm/tslib.es6-2be2aee7.d.ts} +0 -0
- package/chart/cssm/tslib.es6-2be2aee7.js +26 -0
- package/chart/cssm/types/brush.types.d.ts +41 -0
- package/chart/cssm/types/brush.types.js +1 -0
- package/chart/cssm/types/cartesianGrid.types.d.ts +23 -0
- package/chart/cssm/types/cartesianGrid.types.js +1 -0
- package/chart/cssm/types/chart.types.d.ts +61 -0
- package/chart/cssm/types/chart.types.js +1 -0
- package/chart/cssm/types/composedChart.types.d.ts +33 -0
- package/chart/cssm/types/composedChart.types.js +1 -0
- package/chart/cssm/types/legend.types.d.ts +30 -0
- package/chart/cssm/types/legend.types.js +1 -0
- package/chart/cssm/types/options.types.d.ts +59 -0
- package/chart/cssm/types/options.types.js +1 -0
- package/chart/cssm/types/payload.types.d.ts +29 -0
- package/chart/cssm/types/payload.types.js +1 -0
- package/chart/cssm/types/responsiveContainer.types.d.ts +10 -0
- package/chart/cssm/types/responsiveContainer.types.js +1 -0
- package/chart/cssm/types/seria.types.d.ts +59 -0
- package/chart/cssm/types/seria.types.js +1 -0
- package/chart/cssm/types/tooltip.types.d.ts +70 -0
- package/chart/cssm/types/tooltip.types.js +1 -0
- package/chart/cssm/types/utils/axis.types.d.ts +68 -0
- package/chart/cssm/types/utils/axis.types.js +1 -0
- package/chart/cssm/types/utils/coordinates.types.d.ts +11 -0
- package/chart/cssm/types/utils/coordinates.types.js +1 -0
- package/chart/cssm/types/utils/data.types.d.ts +17 -0
- package/chart/cssm/types/utils/data.types.js +1 -0
- package/chart/cssm/types/utils/dot.types.d.ts +73 -0
- package/chart/cssm/types/utils/dot.types.js +1 -0
- package/chart/cssm/types/utils/gradient.types.d.ts +29 -0
- package/chart/cssm/types/utils/gradient.types.js +1 -0
- package/chart/cssm/types/utils/tick.types.d.ts +19 -0
- package/chart/cssm/types/utils/tick.types.js +1 -0
- package/chart/cssm/types/xAxis.types.d.ts +16 -0
- package/chart/cssm/types/xAxis.types.js +1 -0
- package/chart/cssm/types/yAxis.types.d.ts +8 -0
- package/chart/cssm/types/yAxis.types.js +1 -0
- package/chart/esm/Component.d.ts +5 -0
- package/chart/esm/Component.js +264 -0
- package/chart/esm/components/Dot/index.css +23 -0
- package/chart/esm/components/Dot/index.d.ts +5 -0
- package/chart/esm/components/Dot/index.js +46 -0
- package/chart/esm/components/Legends/index.css +40 -0
- package/chart/esm/components/Legends/index.d.ts +14 -0
- package/chart/esm/components/Legends/index.js +39 -0
- package/chart/esm/components/LinearGradient.d.ts +5 -0
- package/chart/esm/components/LinearGradient.js +8 -0
- package/chart/esm/components/Tick/index.css +27 -0
- package/chart/esm/components/Tick/index.d.ts +4 -0
- package/chart/esm/components/Tick/index.js +21 -0
- package/chart/esm/components/TooltipContent/index.css +65 -0
- package/chart/esm/components/TooltipContent/index.d.ts +10 -0
- package/chart/esm/components/TooltipContent/index.js +29 -0
- package/chart/esm/hooks/useSettings/index.d.ts +16 -0
- package/chart/esm/hooks/useSettings/index.js +45 -0
- package/chart/esm/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
- package/chart/esm/hooks/useSettings/utils/setComposedChartsMargin.js +15 -0
- package/chart/esm/hooks/useSettings/utils/setDatas.d.ts +6 -0
- package/chart/esm/hooks/useSettings/utils/setDatas.js +37 -0
- package/chart/esm/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
- package/chart/esm/hooks/useSettings/utils/setGradientCharts.js +25 -0
- package/chart/esm/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
- package/chart/esm/hooks/useSettings/utils/setLegendMargin.js +14 -0
- package/chart/esm/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
- package/chart/esm/hooks/useSettings/utils/sortByIndex.js +10 -0
- package/chart/esm/icons/Circle.d.ts +7 -0
- package/chart/esm/icons/Circle.js +9 -0
- package/chart/esm/icons/CircleLine.d.ts +8 -0
- package/chart/esm/icons/CircleLine.js +10 -0
- package/chart/esm/icons/FilledCircle.d.ts +7 -0
- package/chart/esm/icons/FilledCircle.js +13 -0
- package/chart/esm/icons/Point.d.ts +7 -0
- package/chart/esm/icons/Point.js +10 -0
- package/chart/esm/icons/StrokeCircle.d.ts +7 -0
- package/chart/esm/icons/StrokeCircle.js +9 -0
- package/chart/esm/index.css +15 -0
- package/chart/esm/index.d.ts +1 -0
- package/chart/esm/index.js +22 -0
- package/{grid/esm/gutters.module-c9c70930.d.ts → chart/esm/tslib.es6-defbba9d.d.ts} +0 -0
- package/chart/esm/tslib.es6-defbba9d.js +28 -0
- package/chart/esm/types/brush.types.d.ts +41 -0
- package/chart/esm/types/brush.types.js +1 -0
- package/chart/esm/types/cartesianGrid.types.d.ts +23 -0
- package/chart/esm/types/cartesianGrid.types.js +1 -0
- package/chart/esm/types/chart.types.d.ts +61 -0
- package/chart/esm/types/chart.types.js +1 -0
- package/chart/esm/types/composedChart.types.d.ts +33 -0
- package/chart/esm/types/composedChart.types.js +1 -0
- package/chart/esm/types/legend.types.d.ts +30 -0
- package/chart/esm/types/legend.types.js +1 -0
- package/chart/esm/types/options.types.d.ts +59 -0
- package/chart/esm/types/options.types.js +1 -0
- package/chart/esm/types/payload.types.d.ts +29 -0
- package/chart/esm/types/payload.types.js +1 -0
- package/chart/esm/types/responsiveContainer.types.d.ts +10 -0
- package/chart/esm/types/responsiveContainer.types.js +1 -0
- package/chart/esm/types/seria.types.d.ts +59 -0
- package/chart/esm/types/seria.types.js +1 -0
- package/chart/esm/types/tooltip.types.d.ts +70 -0
- package/chart/esm/types/tooltip.types.js +1 -0
- package/chart/esm/types/utils/axis.types.d.ts +68 -0
- package/chart/esm/types/utils/axis.types.js +1 -0
- package/chart/esm/types/utils/coordinates.types.d.ts +11 -0
- package/chart/esm/types/utils/coordinates.types.js +1 -0
- package/chart/esm/types/utils/data.types.d.ts +17 -0
- package/chart/esm/types/utils/data.types.js +1 -0
- package/chart/esm/types/utils/dot.types.d.ts +73 -0
- package/chart/esm/types/utils/dot.types.js +1 -0
- package/chart/esm/types/utils/gradient.types.d.ts +29 -0
- package/chart/esm/types/utils/gradient.types.js +1 -0
- package/chart/esm/types/utils/tick.types.d.ts +19 -0
- package/chart/esm/types/utils/tick.types.js +1 -0
- package/chart/esm/types/xAxis.types.d.ts +16 -0
- package/chart/esm/types/xAxis.types.js +1 -0
- package/chart/esm/types/yAxis.types.d.ts +8 -0
- package/chart/esm/types/yAxis.types.js +1 -0
- package/chart/hooks/useSettings/index.d.ts +16 -0
- package/chart/hooks/useSettings/index.js +47 -0
- package/chart/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
- package/chart/hooks/useSettings/utils/setComposedChartsMargin.js +17 -0
- package/chart/hooks/useSettings/utils/setDatas.d.ts +6 -0
- package/chart/hooks/useSettings/utils/setDatas.js +39 -0
- package/chart/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
- package/chart/hooks/useSettings/utils/setGradientCharts.js +27 -0
- package/chart/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
- package/chart/hooks/useSettings/utils/setLegendMargin.js +16 -0
- package/chart/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
- package/chart/hooks/useSettings/utils/sortByIndex.js +12 -0
- package/chart/icons/Circle.d.ts +7 -0
- package/chart/icons/Circle.js +15 -0
- package/chart/icons/CircleLine.d.ts +8 -0
- package/chart/icons/CircleLine.js +16 -0
- package/chart/icons/FilledCircle.d.ts +7 -0
- package/chart/icons/FilledCircle.js +19 -0
- package/chart/icons/Point.d.ts +7 -0
- package/chart/icons/Point.js +16 -0
- package/chart/icons/StrokeCircle.d.ts +7 -0
- package/chart/icons/StrokeCircle.js +15 -0
- package/chart/index.css +15 -0
- package/chart/index.d.ts +1 -0
- package/chart/index.js +22 -0
- package/chart/modern/Component.d.ts +5 -0
- package/chart/modern/Component.js +258 -0
- package/chart/modern/components/Dot/index.css +23 -0
- package/chart/modern/components/Dot/index.d.ts +5 -0
- package/chart/modern/components/Dot/index.js +45 -0
- package/chart/modern/components/Legends/index.css +40 -0
- package/chart/modern/components/Legends/index.d.ts +14 -0
- package/chart/modern/components/Legends/index.js +38 -0
- package/chart/modern/components/LinearGradient.d.ts +5 -0
- package/chart/modern/components/LinearGradient.js +7 -0
- package/chart/modern/components/Tick/index.css +27 -0
- package/chart/modern/components/Tick/index.d.ts +4 -0
- package/chart/modern/components/Tick/index.js +20 -0
- package/chart/modern/components/TooltipContent/index.css +65 -0
- package/chart/modern/components/TooltipContent/index.d.ts +10 -0
- package/chart/modern/components/TooltipContent/index.js +28 -0
- package/chart/modern/hooks/useSettings/index.d.ts +16 -0
- package/chart/modern/hooks/useSettings/index.js +43 -0
- package/chart/modern/hooks/useSettings/utils/setComposedChartsMargin.d.ts +12 -0
- package/chart/modern/hooks/useSettings/utils/setComposedChartsMargin.js +14 -0
- package/chart/modern/hooks/useSettings/utils/setDatas.d.ts +6 -0
- package/chart/modern/hooks/useSettings/utils/setDatas.js +32 -0
- package/chart/modern/hooks/useSettings/utils/setGradientCharts.d.ts +3 -0
- package/chart/modern/hooks/useSettings/utils/setGradientCharts.js +35 -0
- package/chart/modern/hooks/useSettings/utils/setLegendMargin.d.ts +4 -0
- package/chart/modern/hooks/useSettings/utils/setLegendMargin.js +14 -0
- package/chart/modern/hooks/useSettings/utils/sortByIndex.d.ts +3 -0
- package/chart/modern/hooks/useSettings/utils/sortByIndex.js +10 -0
- package/chart/modern/icons/Circle.d.ts +7 -0
- package/chart/modern/icons/Circle.js +8 -0
- package/chart/modern/icons/CircleLine.d.ts +8 -0
- package/chart/modern/icons/CircleLine.js +9 -0
- package/chart/modern/icons/FilledCircle.d.ts +7 -0
- package/chart/modern/icons/FilledCircle.js +12 -0
- package/chart/modern/icons/Point.d.ts +7 -0
- package/chart/modern/icons/Point.js +7 -0
- package/chart/modern/icons/StrokeCircle.d.ts +7 -0
- package/chart/modern/icons/StrokeCircle.js +8 -0
- package/chart/modern/index.css +15 -0
- package/chart/modern/index.d.ts +1 -0
- package/chart/modern/index.js +21 -0
- package/chart/modern/types/brush.types.d.ts +41 -0
- package/chart/modern/types/brush.types.js +1 -0
- package/chart/modern/types/cartesianGrid.types.d.ts +23 -0
- package/chart/modern/types/cartesianGrid.types.js +1 -0
- package/chart/modern/types/chart.types.d.ts +61 -0
- package/chart/modern/types/chart.types.js +1 -0
- package/chart/modern/types/composedChart.types.d.ts +33 -0
- package/chart/modern/types/composedChart.types.js +1 -0
- package/chart/modern/types/legend.types.d.ts +30 -0
- package/chart/modern/types/legend.types.js +1 -0
- package/chart/modern/types/options.types.d.ts +59 -0
- package/chart/modern/types/options.types.js +1 -0
- package/chart/modern/types/payload.types.d.ts +29 -0
- package/chart/modern/types/payload.types.js +1 -0
- package/chart/modern/types/responsiveContainer.types.d.ts +10 -0
- package/chart/modern/types/responsiveContainer.types.js +1 -0
- package/chart/modern/types/seria.types.d.ts +59 -0
- package/chart/modern/types/seria.types.js +1 -0
- package/chart/modern/types/tooltip.types.d.ts +70 -0
- package/chart/modern/types/tooltip.types.js +1 -0
- package/chart/modern/types/utils/axis.types.d.ts +68 -0
- package/chart/modern/types/utils/axis.types.js +1 -0
- package/chart/modern/types/utils/coordinates.types.d.ts +11 -0
- package/chart/modern/types/utils/coordinates.types.js +1 -0
- package/chart/modern/types/utils/data.types.d.ts +17 -0
- package/chart/modern/types/utils/data.types.js +1 -0
- package/chart/modern/types/utils/dot.types.d.ts +73 -0
- package/chart/modern/types/utils/dot.types.js +1 -0
- package/chart/modern/types/utils/gradient.types.d.ts +29 -0
- package/chart/modern/types/utils/gradient.types.js +1 -0
- package/chart/modern/types/utils/tick.types.d.ts +19 -0
- package/chart/modern/types/utils/tick.types.js +1 -0
- package/chart/modern/types/xAxis.types.d.ts +16 -0
- package/chart/modern/types/xAxis.types.js +1 -0
- package/chart/modern/types/yAxis.types.d.ts +8 -0
- package/chart/modern/types/yAxis.types.js +1 -0
- package/chart/package.json +3 -0
- package/chart/send-stats.js +82 -0
- package/{grid/gutters.module-ec984f94.d.ts → chart/tslib.es6-62c2b032.d.ts} +0 -0
- package/chart/tslib.es6-62c2b032.js +26 -0
- package/chart/types/brush.types.d.ts +41 -0
- package/chart/types/brush.types.js +1 -0
- package/chart/types/cartesianGrid.types.d.ts +23 -0
- package/chart/types/cartesianGrid.types.js +1 -0
- package/chart/types/chart.types.d.ts +61 -0
- package/chart/types/chart.types.js +1 -0
- package/chart/types/composedChart.types.d.ts +33 -0
- package/chart/types/composedChart.types.js +1 -0
- package/chart/types/legend.types.d.ts +30 -0
- package/chart/types/legend.types.js +1 -0
- package/chart/types/options.types.d.ts +59 -0
- package/chart/types/options.types.js +1 -0
- package/chart/types/payload.types.d.ts +29 -0
- package/chart/types/payload.types.js +1 -0
- package/chart/types/responsiveContainer.types.d.ts +10 -0
- package/chart/types/responsiveContainer.types.js +1 -0
- package/chart/types/seria.types.d.ts +59 -0
- package/chart/types/seria.types.js +1 -0
- package/chart/types/tooltip.types.d.ts +70 -0
- package/chart/types/tooltip.types.js +1 -0
- package/chart/types/utils/axis.types.d.ts +68 -0
- package/chart/types/utils/axis.types.js +1 -0
- package/chart/types/utils/coordinates.types.d.ts +11 -0
- package/chart/types/utils/coordinates.types.js +1 -0
- package/chart/types/utils/data.types.d.ts +17 -0
- package/chart/types/utils/data.types.js +1 -0
- package/chart/types/utils/dot.types.d.ts +73 -0
- package/chart/types/utils/dot.types.js +1 -0
- package/chart/types/utils/gradient.types.d.ts +29 -0
- package/chart/types/utils/gradient.types.js +1 -0
- package/chart/types/utils/tick.types.d.ts +19 -0
- package/chart/types/utils/tick.types.js +1 -0
- package/chart/types/xAxis.types.d.ts +16 -0
- package/chart/types/xAxis.types.js +1 -0
- package/chart/types/yAxis.types.d.ts +8 -0
- package/chart/types/yAxis.types.js +1 -0
- package/checkbox/cssm/Component.d.ts +112 -0
- package/checkbox/cssm/Component.js +93 -0
- package/checkbox/cssm/index.d.ts +1 -0
- package/checkbox/cssm/index.js +13 -0
- package/checkbox/cssm/index.module.css +226 -0
- package/checkbox-group/cssm/Component.d.ts +50 -0
- package/checkbox-group/cssm/Component.js +79 -0
- package/checkbox-group/cssm/index.d.ts +1 -0
- package/checkbox-group/cssm/index.js +10 -0
- package/checkbox-group/cssm/index.module.css +91 -0
- package/circular-progress-bar/cssm/Component.d.ts +37 -0
- package/circular-progress-bar/cssm/Component.js +49 -0
- package/circular-progress-bar/cssm/index.d.ts +1 -0
- package/circular-progress-bar/cssm/index.js +11 -0
- package/circular-progress-bar/cssm/index.module.css +93 -0
- package/collapse/cssm/Component.d.ts +41 -0
- package/collapse/cssm/Component.js +63 -0
- package/collapse/cssm/index.d.ts +1 -0
- package/collapse/cssm/index.js +14 -0
- package/collapse/cssm/index.module.css +34 -0
- package/confirmation/component.d.ts +28 -0
- package/confirmation/component.js +21 -7
- package/confirmation/components/code-input/component.js +1 -1
- package/confirmation/components/code-input/index.css +11 -8
- package/confirmation/components/countdown/component.js +1 -1
- package/confirmation/components/countdown/index.css +13 -13
- package/confirmation/components/countdown-loader/component.js +1 -1
- package/confirmation/components/countdown-loader/index.css +2 -2
- package/confirmation/components/index.d.ts +1 -0
- package/confirmation/components/index.js +3 -0
- package/confirmation/components/overlimit/component.d.ts +12 -0
- package/confirmation/components/overlimit/component.js +71 -0
- package/confirmation/components/overlimit/index.css +90 -0
- package/confirmation/components/overlimit/index.d.ts +1 -0
- package/confirmation/components/overlimit/index.js +15 -0
- package/confirmation/components/sign-confirmation/component.js +1 -1
- package/confirmation/components/sign-confirmation/index.css +13 -13
- package/confirmation/cssm/component.d.ts +164 -0
- package/confirmation/cssm/component.js +125 -0
- package/confirmation/cssm/components/code-input/component.d.ts +16 -0
- package/confirmation/cssm/components/code-input/component.js +156 -0
- package/confirmation/cssm/components/code-input/index.d.ts +1 -0
- package/confirmation/cssm/components/code-input/index.js +12 -0
- package/confirmation/cssm/components/code-input/index.module.css +94 -0
- package/confirmation/cssm/components/code-input/utils.d.ts +10 -0
- package/confirmation/cssm/components/code-input/utils.js +19 -0
- package/confirmation/cssm/components/countdown/component.d.ts +23 -0
- package/confirmation/cssm/components/countdown/component.js +115 -0
- package/confirmation/cssm/components/countdown/index.d.ts +1 -0
- package/confirmation/cssm/components/countdown/index.js +16 -0
- package/confirmation/cssm/components/countdown/index.module.css +84 -0
- package/confirmation/cssm/components/countdown-loader/component.d.ts +7 -0
- package/confirmation/cssm/components/countdown-loader/component.js +26 -0
- package/confirmation/cssm/components/countdown-loader/index.d.ts +1 -0
- package/confirmation/cssm/components/countdown-loader/index.js +9 -0
- package/confirmation/cssm/components/countdown-loader/index.module.css +25 -0
- package/confirmation/cssm/components/index.d.ts +4 -0
- package/confirmation/cssm/components/index.js +29 -0
- package/confirmation/cssm/components/overlimit/component.d.ts +12 -0
- package/confirmation/cssm/components/overlimit/component.js +72 -0
- package/confirmation/cssm/components/overlimit/index.d.ts +1 -0
- package/confirmation/cssm/components/overlimit/index.js +18 -0
- package/confirmation/cssm/components/overlimit/index.module.css +89 -0
- package/confirmation/cssm/components/sign-confirmation/component.d.ts +37 -0
- package/confirmation/cssm/components/sign-confirmation/component.js +62 -0
- package/confirmation/cssm/components/sign-confirmation/index.d.ts +1 -0
- package/confirmation/cssm/components/sign-confirmation/index.js +22 -0
- package/confirmation/cssm/components/sign-confirmation/index.module.css +107 -0
- package/confirmation/cssm/index.d.ts +2 -0
- package/confirmation/cssm/index.js +32 -0
- package/confirmation/cssm/index.module.css +118 -0
- package/confirmation/cssm/vars.css +17 -0
- package/confirmation/esm/component.d.ts +28 -0
- package/confirmation/esm/component.js +21 -7
- package/confirmation/esm/components/code-input/component.js +1 -1
- package/confirmation/esm/components/code-input/index.css +11 -8
- package/confirmation/esm/components/countdown/component.js +1 -1
- package/confirmation/esm/components/countdown/index.css +13 -13
- package/confirmation/esm/components/countdown-loader/component.js +1 -1
- package/confirmation/esm/components/countdown-loader/index.css +2 -2
- package/confirmation/esm/components/index.d.ts +1 -0
- package/confirmation/esm/components/index.js +2 -0
- package/confirmation/esm/components/overlimit/component.d.ts +12 -0
- package/confirmation/esm/components/overlimit/component.js +65 -0
- package/confirmation/esm/components/overlimit/index.css +90 -0
- package/confirmation/esm/components/overlimit/index.d.ts +1 -0
- package/confirmation/esm/components/overlimit/index.js +9 -0
- package/confirmation/esm/components/sign-confirmation/component.js +1 -1
- package/confirmation/esm/components/sign-confirmation/index.css +13 -13
- package/confirmation/esm/index.css +14 -14
- package/confirmation/esm/index.js +2 -0
- package/confirmation/index.css +14 -14
- package/confirmation/index.js +3 -0
- package/confirmation/modern/component.d.ts +28 -0
- package/confirmation/modern/component.js +20 -6
- package/confirmation/modern/components/code-input/component.js +1 -1
- package/confirmation/modern/components/code-input/index.css +11 -8
- package/confirmation/modern/components/countdown/component.js +1 -1
- package/confirmation/modern/components/countdown/index.css +13 -13
- package/confirmation/modern/components/countdown-loader/component.js +1 -1
- package/confirmation/modern/components/countdown-loader/index.css +2 -2
- package/confirmation/modern/components/index.d.ts +1 -0
- package/confirmation/modern/components/index.js +2 -0
- package/confirmation/modern/components/overlimit/component.d.ts +12 -0
- package/confirmation/modern/components/overlimit/component.js +64 -0
- package/confirmation/modern/components/overlimit/index.css +90 -0
- package/confirmation/modern/components/overlimit/index.d.ts +1 -0
- package/confirmation/modern/components/overlimit/index.js +9 -0
- package/confirmation/modern/components/sign-confirmation/component.js +1 -1
- package/confirmation/modern/components/sign-confirmation/index.css +13 -13
- package/confirmation/modern/index.css +14 -14
- package/confirmation/modern/index.js +2 -0
- package/date-input/cssm/Component.d.ts +47 -0
- package/date-input/cssm/Component.js +90 -0
- package/date-input/cssm/index.d.ts +2 -0
- package/date-input/cssm/index.js +25 -0
- package/date-input/cssm/index.module.css +25 -0
- package/date-input/cssm/utils/date-correction-pipe.d.ts +9 -0
- package/date-input/cssm/utils/date-correction-pipe.js +57 -0
- package/date-input/cssm/utils/format.d.ts +7 -0
- package/date-input/cssm/utils/format.js +23 -0
- package/date-input/cssm/utils/index.d.ts +3 -0
- package/date-input/cssm/utils/index.js +20 -0
- package/date-input/cssm/utils/native-supports.d.ts +7 -0
- package/date-input/cssm/utils/native-supports.js +18 -0
- package/divider/cssm/Component.d.ts +14 -0
- package/divider/cssm/Component.js +18 -0
- package/divider/cssm/index.d.ts +1 -0
- package/divider/cssm/index.js +10 -0
- package/divider/cssm/index.module.css +19 -0
- package/drawer/cssm/Component.d.ts +20 -0
- package/drawer/cssm/Component.js +92 -0
- package/drawer/cssm/index.d.ts +1 -0
- package/drawer/cssm/index.js +14 -0
- package/drawer/cssm/index.module.css +81 -0
- package/dropzone/cssm/Component.d.ts +57 -0
- package/dropzone/cssm/Component.js +79 -0
- package/dropzone/cssm/components/index.d.ts +1 -0
- package/dropzone/cssm/components/index.js +11 -0
- package/dropzone/cssm/components/overlay/Component.d.ts +13 -0
- package/dropzone/cssm/components/overlay/Component.js +24 -0
- package/dropzone/cssm/components/overlay/index.d.ts +1 -0
- package/dropzone/cssm/components/overlay/index.js +11 -0
- package/dropzone/cssm/components/overlay/index.module.css +49 -0
- package/dropzone/cssm/index.d.ts +1 -0
- package/dropzone/cssm/index.js +14 -0
- package/dropzone/cssm/index.module.css +44 -0
- package/dropzone/cssm/utils.d.ts +3 -0
- package/dropzone/cssm/utils.js +8 -0
- package/file-upload-item/Component.d.ts +1 -1
- package/file-upload-item/Component.js +1 -1
- package/file-upload-item/cssm/Component.d.ts +72 -0
- package/file-upload-item/cssm/Component.js +68 -0
- package/file-upload-item/cssm/index.d.ts +1 -0
- package/file-upload-item/cssm/index.js +18 -0
- package/file-upload-item/cssm/index.module.css +99 -0
- package/file-upload-item/cssm/utils.d.ts +5 -0
- package/file-upload-item/cssm/utils.js +46 -0
- package/file-upload-item/esm/Component.d.ts +1 -1
- package/file-upload-item/esm/Component.js +1 -1
- package/file-upload-item/esm/index.css +16 -16
- package/file-upload-item/index.css +16 -16
- package/file-upload-item/modern/Component.d.ts +1 -1
- package/file-upload-item/modern/Component.js +1 -1
- package/file-upload-item/modern/index.css +16 -16
- package/form-control/cssm/Component.d.ts +152 -0
- package/form-control/cssm/Component.js +92 -0
- package/form-control/cssm/default.module.css +91 -0
- package/form-control/cssm/index.d.ts +1 -0
- package/form-control/cssm/index.js +12 -0
- package/form-control/cssm/index.module.css +228 -0
- package/form-control/cssm/inverted.module.css +96 -0
- package/gallery/Component.js +3 -3
- package/gallery/components/header/Component.js +2 -2
- package/gallery/components/header/buttons.js +1 -1
- package/gallery/components/header/index.css +3 -3
- package/gallery/components/header/index.js +1 -1
- package/gallery/components/header-info-block/Component.js +1 -1
- package/gallery/components/header-info-block/index.css +5 -5
- package/gallery/components/image-preview/Component.js +1 -1
- package/gallery/components/image-preview/index.css +12 -12
- package/gallery/components/image-viewer/component.js +2 -2
- package/gallery/components/image-viewer/index.css +19 -19
- package/gallery/components/image-viewer/index.js +2 -2
- package/gallery/components/image-viewer/slide.js +1 -1
- package/gallery/components/index.js +2 -2
- package/gallery/components/navigation-bar/Component.js +1 -1
- package/gallery/components/navigation-bar/index.css +6 -6
- package/gallery/cssm/Component.d.ts +26 -0
- package/gallery/cssm/Component.js +139 -0
- package/gallery/cssm/components/header/Component.d.ts +3 -0
- package/gallery/cssm/components/header/Component.js +60 -0
- package/gallery/cssm/components/header/buttons.d.ts +11 -0
- package/gallery/cssm/components/header/buttons.js +33 -0
- package/gallery/cssm/components/header/index.d.ts +1 -0
- package/gallery/cssm/components/header/index.js +23 -0
- package/gallery/cssm/components/header/index.module.css +29 -0
- package/gallery/cssm/components/header-info-block/Component.d.ts +7 -0
- package/gallery/cssm/components/header-info-block/Component.js +23 -0
- package/gallery/cssm/components/header-info-block/index.d.ts +1 -0
- package/gallery/cssm/components/header-info-block/index.js +11 -0
- package/gallery/cssm/components/header-info-block/index.module.css +35 -0
- package/gallery/cssm/components/image-preview/Component.d.ts +11 -0
- package/gallery/cssm/components/image-preview/Component.js +38 -0
- package/gallery/cssm/components/image-preview/index.d.ts +1 -0
- package/gallery/cssm/components/image-preview/index.js +12 -0
- package/gallery/cssm/components/image-preview/index.module.css +84 -0
- package/gallery/cssm/components/image-viewer/component.d.ts +3 -0
- package/gallery/cssm/components/image-viewer/component.js +129 -0
- package/gallery/cssm/components/image-viewer/index.d.ts +1 -0
- package/gallery/cssm/components/image-viewer/index.js +22 -0
- package/gallery/cssm/components/image-viewer/index.module.css +144 -0
- package/gallery/cssm/components/image-viewer/slide.d.ts +15 -0
- package/gallery/cssm/components/image-viewer/slide.js +41 -0
- package/gallery/cssm/components/index.d.ts +4 -0
- package/gallery/cssm/components/index.js +41 -0
- package/gallery/cssm/components/navigation-bar/Component.d.ts +3 -0
- package/gallery/cssm/components/navigation-bar/Component.js +70 -0
- package/gallery/cssm/components/navigation-bar/index.d.ts +1 -0
- package/gallery/cssm/components/navigation-bar/index.js +15 -0
- package/gallery/cssm/components/navigation-bar/index.module.css +41 -0
- package/gallery/cssm/context.d.ts +24 -0
- package/gallery/cssm/context.js +26 -0
- package/gallery/cssm/index.d.ts +1 -0
- package/gallery/cssm/index.js +41 -0
- package/gallery/cssm/index.module.css +20 -0
- package/{modal/esm/tslib.es6-5fa93a0c.d.ts → gallery/cssm/tslib.es6-ce870b46.d.ts} +0 -0
- package/{modal/tslib.es6-6063ff78.js → gallery/cssm/tslib.es6-ce870b46.js} +0 -0
- package/gallery/cssm/types.d.ts +13 -0
- package/gallery/cssm/types.js +1 -0
- package/gallery/cssm/utils/index.d.ts +2 -0
- package/gallery/cssm/utils/index.js +13 -0
- package/gallery/cssm/utils/split-filename.d.ts +2 -0
- package/gallery/cssm/utils/split-filename.js +16 -0
- package/gallery/cssm/utils/utils.d.ts +7 -0
- package/gallery/cssm/utils/utils.js +24 -0
- package/gallery/cssm/vars.css +0 -0
- package/gallery/esm/Component.js +3 -3
- package/gallery/esm/components/header/Component.js +2 -2
- package/gallery/esm/components/header/buttons.js +1 -1
- package/gallery/esm/components/header/index.css +3 -3
- package/gallery/esm/components/header/index.js +1 -1
- package/gallery/esm/components/header-info-block/Component.js +1 -1
- package/gallery/esm/components/header-info-block/index.css +5 -5
- package/gallery/esm/components/image-preview/Component.js +1 -1
- package/gallery/esm/components/image-preview/index.css +12 -12
- package/gallery/esm/components/image-viewer/component.js +2 -2
- package/gallery/esm/components/image-viewer/index.css +19 -19
- package/gallery/esm/components/image-viewer/index.js +2 -2
- package/gallery/esm/components/image-viewer/slide.js +1 -1
- package/gallery/esm/components/index.js +2 -2
- package/gallery/esm/components/navigation-bar/Component.js +1 -1
- package/gallery/esm/components/navigation-bar/index.css +6 -6
- package/gallery/esm/index.css +3 -3
- package/gallery/esm/index.js +2 -2
- package/gallery/esm/{slide-c6c2a8da.d.ts → slide-2c5303bf.d.ts} +0 -0
- package/gallery/esm/{slide-c6c2a8da.js → slide-2c5303bf.js} +1 -1
- package/{modal/tslib.es6-6063ff78.d.ts → gallery/esm/tslib.es6-e5bfa024.d.ts} +0 -0
- package/gallery/esm/{tslib.es6-5424b006.js → tslib.es6-e5bfa024.js} +0 -0
- package/gallery/index.css +3 -3
- package/gallery/index.js +2 -2
- package/gallery/modern/Component.js +2 -2
- package/gallery/modern/components/header/Component.js +1 -1
- package/gallery/modern/components/header/index.css +3 -3
- package/gallery/modern/components/header-info-block/Component.js +1 -1
- package/gallery/modern/components/header-info-block/index.css +5 -5
- package/gallery/modern/components/image-preview/Component.js +1 -1
- package/gallery/modern/components/image-preview/index.css +12 -12
- package/gallery/modern/components/image-viewer/component.js +1 -1
- package/gallery/modern/components/image-viewer/index.css +19 -19
- package/gallery/modern/components/image-viewer/index.js +1 -1
- package/gallery/modern/components/image-viewer/slide.js +1 -1
- package/gallery/modern/components/index.js +1 -1
- package/gallery/modern/components/navigation-bar/Component.js +1 -1
- package/gallery/modern/components/navigation-bar/index.css +6 -6
- package/gallery/modern/index.css +3 -3
- package/gallery/modern/index.js +1 -1
- package/gallery/modern/{slide-cbb4ff18.d.ts → slide-31efe610.d.ts} +0 -0
- package/gallery/modern/{slide-cbb4ff18.js → slide-31efe610.js} +1 -1
- package/gallery/{slide-a45fd2cc.d.ts → slide-5f9593b7.d.ts} +0 -0
- package/gallery/{slide-a45fd2cc.js → slide-5f9593b7.js} +1 -1
- package/{select/esm/tslib.es6-3d459325.d.ts → gallery/tslib.es6-d5e3524f.d.ts} +0 -0
- package/{tabs/tslib.es6-7a15cf39.js → gallery/tslib.es6-d5e3524f.js} +0 -0
- package/grid/Component.js +1 -1
- package/grid/col/Component.js +1 -1
- package/grid/col/index.js +1 -1
- package/grid/cssm/Component.d.ts +8 -0
- package/grid/cssm/Component.js +18 -0
- package/grid/cssm/col/Component.d.ts +54 -0
- package/grid/cssm/col/Component.js +29 -0
- package/grid/cssm/col/index.d.ts +1 -0
- package/grid/cssm/col/index.js +13 -0
- package/grid/cssm/col/index.module.css +1863 -0
- package/grid/cssm/gutters.module.css +607 -0
- package/grid/cssm/index.d.ts +1 -0
- package/grid/cssm/index.js +16 -0
- package/grid/cssm/row/Component.d.ts +43 -0
- package/grid/cssm/row/Component.js +33 -0
- package/grid/cssm/row/index.d.ts +1 -0
- package/grid/cssm/row/index.js +13 -0
- package/grid/cssm/row/index.module.css +39 -0
- package/{select/tslib.es6-2a25a340.d.ts → grid/cssm/tslib.es6-3084c748.d.ts} +0 -0
- package/grid/cssm/tslib.es6-3084c748.js +24 -0
- package/grid/cssm/typings.d.ts +16 -0
- package/grid/cssm/typings.js +1 -0
- package/grid/cssm/utils/index.d.ts +3 -0
- package/grid/cssm/utils/index.js +37 -0
- package/grid/esm/Component.js +1 -1
- package/grid/esm/col/Component.js +1 -1
- package/grid/esm/col/index.js +1 -1
- package/{tabs/esm/tslib.es6-417b0fd8.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/{tabs/tslib.es6-7a15cf39.d.ts → grid/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/cssm/Component.d.ts +61 -0
- package/icon-button/cssm/Component.js +67 -0
- package/icon-button/cssm/default.module.css +79 -0
- package/icon-button/cssm/index.d.ts +1 -0
- package/icon-button/cssm/index.js +13 -0
- package/icon-button/cssm/index.module.css +35 -0
- package/icon-button/cssm/inverted.module.css +70 -0
- package/input/cssm/Component.d.ts +236 -0
- package/input/cssm/Component.js +146 -0
- package/input/cssm/default.module.css +75 -0
- package/input/cssm/index.d.ts +1 -0
- package/input/cssm/index.js +16 -0
- package/input/cssm/index.module.css +159 -0
- package/input/cssm/inverted.module.css +75 -0
- package/input-autocomplete/{Component-d64387ad.d.ts → Component-658ecc84.d.ts} +0 -0
- package/input-autocomplete/{Component-d64387ad.js → Component-658ecc84.js} +1 -1
- package/input-autocomplete/Component.d.ts +1 -1
- 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/{esm/Component-c71c7025.d.ts → cssm/Component-a04a9434.d.ts} +0 -0
- package/input-autocomplete/cssm/Component-a04a9434.js +80 -0
- package/input-autocomplete/cssm/Component.d.ts +128 -0
- package/input-autocomplete/cssm/Component.js +27 -0
- package/input-autocomplete/cssm/autocomplete-field/Component.d.ts +0 -0
- package/input-autocomplete/cssm/autocomplete-field/Component.js +12 -0
- package/input-autocomplete/cssm/autocomplete-field/index.d.ts +1 -0
- package/input-autocomplete/cssm/autocomplete-field/index.js +12 -0
- package/input-autocomplete/cssm/autocomplete-field/index.module.css +3 -0
- package/input-autocomplete/cssm/index.d.ts +1 -0
- package/input-autocomplete/cssm/index.js +14 -0
- package/input-autocomplete/esm/Component-35cb3144.d.ts +37 -0
- package/input-autocomplete/esm/{Component-c71c7025.js → Component-35cb3144.js} +1 -1
- package/input-autocomplete/esm/Component.d.ts +1 -1
- 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 +1 -1
- 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-49c310ce.d.ts → component-2901b48c.d.ts} +0 -0
- package/intl-phone-input/{component-49c310ce.js → component-2901b48c.js} +1 -1
- package/intl-phone-input/component.d.ts +1 -1
- 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 -6
- 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 -8
- 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/{esm/component-5dd5159a.d.ts → cssm/component-88f82cfc.d.ts} +0 -0
- package/intl-phone-input/cssm/component-88f82cfc.js +71 -0
- package/intl-phone-input/cssm/component.d.ts +67 -0
- package/intl-phone-input/cssm/component.js +151 -0
- package/intl-phone-input/cssm/components/flag-icon/component.d.ts +20 -0
- package/intl-phone-input/cssm/components/flag-icon/component.js +21 -0
- 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 +1 -0
- package/intl-phone-input/cssm/components/flag-icon/index.js +10 -0
- package/intl-phone-input/cssm/components/flag-icon/index.module.css +4703 -0
- package/intl-phone-input/cssm/components/index.d.ts +3 -0
- package/intl-phone-input/cssm/components/index.js +19 -0
- package/intl-phone-input/cssm/components/select/component.d.ts +10 -0
- package/intl-phone-input/cssm/components/select/component.js +43 -0
- package/intl-phone-input/cssm/components/select/index.d.ts +1 -0
- package/intl-phone-input/cssm/components/select/index.js +17 -0
- package/intl-phone-input/cssm/components/select/index.module.css +40 -0
- package/intl-phone-input/cssm/components/select-field/component.d.ts +0 -0
- package/intl-phone-input/cssm/components/select-field/component.js +14 -0
- package/intl-phone-input/cssm/components/select-field/index.d.ts +1 -0
- package/intl-phone-input/cssm/components/select-field/index.js +14 -0
- package/intl-phone-input/cssm/components/select-field/index.module.css +53 -0
- package/intl-phone-input/cssm/index.d.ts +1 -0
- package/intl-phone-input/cssm/index.js +24 -0
- package/intl-phone-input/cssm/index.module.css +7 -0
- package/intl-phone-input/{esm/libphonenumber-js.min-22dfe739.d.ts → cssm/libphonenumber-js.min-d3a9d490.d.ts} +0 -0
- package/intl-phone-input/{esm/libphonenumber-js.min-22dfe739.js → cssm/libphonenumber-js.min-d3a9d490.js} +0 -0
- package/intl-phone-input/cssm/useCaretAvoidCountryCode.d.ts +8 -0
- package/intl-phone-input/cssm/useCaretAvoidCountryCode.js +39 -0
- package/intl-phone-input/cssm/usePreventCaretReset.d.ts +8 -0
- package/intl-phone-input/cssm/usePreventCaretReset.js +34 -0
- package/intl-phone-input/cssm/utils/format-phone-with-unclearable-country-code.d.ts +6 -0
- package/intl-phone-input/cssm/utils/format-phone-with-unclearable-country-code.js +22 -0
- package/intl-phone-input/esm/component-b0494269.d.ts +35 -0
- package/intl-phone-input/esm/{component-5dd5159a.js → component-b0494269.js} +1 -1
- package/intl-phone-input/esm/component.d.ts +1 -1
- 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 -6
- 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 -8
- 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/{libphonenumber-js.min-a9c5caaf.d.ts → esm/libphonenumber-js.min-4d9b997b.d.ts} +0 -0
- package/intl-phone-input/{libphonenumber-js.min-a9c5caaf.js → esm/libphonenumber-js.min-4d9b997b.js} +0 -0
- package/intl-phone-input/index.css +3 -3
- package/intl-phone-input/index.js +1 -1
- package/intl-phone-input/{modern/libphonenumber-js.min-22dfe739.d.ts → libphonenumber-js.min-893b6a4c.d.ts} +0 -0
- package/intl-phone-input/{modern/libphonenumber-js.min-22dfe739.js → libphonenumber-js.min-893b6a4c.js} +0 -0
- package/intl-phone-input/modern/component.d.ts +1 -1
- 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 -6
- package/intl-phone-input/modern/components/select-field/component.js +1 -1
- package/intl-phone-input/modern/components/select-field/index.css +8 -8
- package/intl-phone-input/modern/index.css +3 -3
- package/intl-phone-input/modern/libphonenumber-js.min-4d9b997b.d.ts +1 -0
- package/intl-phone-input/modern/libphonenumber-js.min-4d9b997b.js +1567 -0
- package/keyboard-focusable/cssm/Component.d.ts +12 -0
- package/keyboard-focusable/cssm/Component.js +14 -0
- package/keyboard-focusable/cssm/index.d.ts +1 -0
- package/keyboard-focusable/cssm/index.js +9 -0
- package/link/cssm/Component.d.ts +97 -0
- package/link/cssm/Component.js +94 -0
- package/link/cssm/default.module.css +65 -0
- package/link/cssm/index.d.ts +1 -0
- package/link/cssm/index.js +14 -0
- package/link/cssm/index.module.css +61 -0
- package/link/cssm/inverted.module.css +59 -0
- package/list/cssm/Component.d.ts +24 -0
- package/list/cssm/Component.js +31 -0
- package/list/cssm/index.d.ts +1 -0
- package/list/cssm/index.js +10 -0
- package/list/cssm/index.module.css +57 -0
- package/list-header/cssm/Component.d.ts +26 -0
- package/list-header/cssm/Component.js +22 -0
- package/list-header/cssm/index.d.ts +1 -0
- package/list-header/cssm/index.js +11 -0
- package/list-header/cssm/index.module.css +31 -0
- package/loader/cssm/Component.d.ts +14 -0
- package/loader/cssm/Component.js +21 -0
- package/loader/cssm/index.d.ts +1 -0
- package/loader/cssm/index.js +10 -0
- package/loader/cssm/index.module.css +40 -0
- package/masked-input/cssm/Component.d.ts +86 -0
- package/masked-input/cssm/Component.js +117 -0
- package/masked-input/cssm/index.d.ts +1 -0
- package/masked-input/cssm/index.js +14 -0
- package/masked-input/cssm/index.module.css +3 -0
- 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/content/Component.desktop.js +1 -1
- package/modal/components/content/Component.mobile.js +1 -1
- package/modal/components/footer/Component.desktop.js +1 -1
- package/modal/components/footer/Component.mobile.js +1 -1
- 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/cssm/Component.desktop.d.ts +51 -0
- package/modal/cssm/Component.desktop.js +66 -0
- package/modal/cssm/Component.mobile.d.ts +23 -0
- package/modal/cssm/Component.mobile.js +53 -0
- package/modal/cssm/Component.responsive.d.ts +19 -0
- package/modal/cssm/Component.responsive.js +68 -0
- package/modal/cssm/Context.d.ts +4 -0
- package/modal/cssm/Context.js +7 -0
- package/modal/cssm/components/closer/Component.d.ts +17 -0
- package/modal/cssm/components/closer/Component.js +26 -0
- package/modal/cssm/components/closer/index.module.css +51 -0
- package/modal/cssm/components/content/Component.d.ts +19 -0
- package/modal/cssm/components/content/Component.desktop.d.ts +14 -0
- package/modal/cssm/components/content/Component.desktop.js +22 -0
- package/modal/cssm/components/content/Component.js +22 -0
- package/modal/cssm/components/content/Component.mobile.d.ts +5 -0
- package/modal/cssm/components/content/Component.mobile.js +18 -0
- package/modal/cssm/components/content/desktop.module.css +47 -0
- package/modal/cssm/components/content/index.module.css +39 -0
- package/modal/cssm/components/content/mobile.module.css +31 -0
- package/modal/cssm/components/footer/Component.d.ts +27 -0
- package/modal/cssm/components/footer/Component.desktop.d.ts +14 -0
- package/modal/cssm/components/footer/Component.desktop.js +23 -0
- package/modal/cssm/components/footer/Component.js +28 -0
- package/modal/cssm/components/footer/Component.mobile.d.ts +5 -0
- package/modal/cssm/components/footer/Component.mobile.js +19 -0
- package/modal/cssm/components/footer/desktop.module.css +61 -0
- package/modal/cssm/components/footer/index.module.css +44 -0
- package/modal/cssm/components/footer/layout.module.css +83 -0
- package/modal/cssm/components/footer/mobile.module.css +37 -0
- package/modal/cssm/components/header/Component.d.ts +27 -0
- package/modal/cssm/components/header/Component.desktop.d.ts +14 -0
- package/modal/cssm/components/header/Component.desktop.js +25 -0
- package/modal/cssm/components/header/Component.js +35 -0
- package/modal/cssm/components/header/Component.mobile.d.ts +5 -0
- package/modal/cssm/components/header/Component.mobile.js +21 -0
- package/modal/cssm/components/header/desktop.module.css +70 -0
- package/modal/cssm/components/header/index.module.css +63 -0
- package/modal/cssm/components/header/mobile.module.css +46 -0
- package/modal/cssm/desktop.d.ts +1 -0
- package/modal/cssm/desktop.js +28 -0
- package/modal/cssm/desktop.module.css +57 -0
- package/modal/cssm/index.d.ts +2 -0
- package/modal/cssm/index.js +39 -0
- package/modal/cssm/mobile.d.ts +1 -0
- package/modal/cssm/mobile.js +28 -0
- package/modal/cssm/mobile.module.css +24 -0
- package/modal/cssm/responsive.d.ts +1 -0
- package/modal/cssm/responsive.js +38 -0
- package/modal/cssm/transitions.module.css +24 -0
- package/{typography/colors.module-ded492e1.d.ts → modal/cssm/tslib.es6-ce870b46.d.ts} +0 -0
- package/modal/cssm/tslib.es6-ce870b46.js +40 -0
- package/modal/cssm/utils.d.ts +5 -0
- package/modal/cssm/utils.js +80 -0
- package/modal/cssm/vars.css +20 -0
- 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/content/Component.desktop.js +1 -1
- package/modal/esm/components/content/Component.mobile.js +1 -1
- package/modal/esm/components/footer/Component.desktop.js +1 -1
- package/modal/esm/components/footer/Component.mobile.js +1 -1
- 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/desktop.js +2 -2
- package/modal/esm/index.js +2 -2
- package/modal/esm/mobile.js +2 -2
- package/modal/esm/responsive.js +2 -2
- package/modal/esm/{transitions.module-06135f59.js → transitions.module-45fbb621.js} +0 -0
- package/{typography/esm/colors.module-d21f47ee.d.ts → modal/esm/tslib.es6-4214739e.d.ts} +0 -0
- package/modal/esm/{tslib.es6-5fa93a0c.js → tslib.es6-4214739e.js} +0 -0
- package/modal/index.js +2 -2
- 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/desktop.js +1 -1
- package/modal/modern/index.js +1 -1
- package/modal/modern/mobile.js +1 -1
- package/modal/modern/responsive.js +1 -1
- package/modal/modern/{transitions.module-06135f59.js → transitions.module-45fbb621.js} +0 -0
- package/modal/responsive.js +2 -2
- package/modal/{transitions.module-b05e467d.js → transitions.module-b67d0f1c.js} +0 -0
- package/modal/tslib.es6-ccd35f7f.d.ts +32 -0
- package/modal/tslib.es6-ccd35f7f.js +40 -0
- package/mq/cssm/Component.d.ts +17 -0
- package/mq/cssm/Component.js +26 -0
- package/mq/cssm/index.d.ts +2 -0
- package/mq/cssm/index.js +11 -0
- package/mq/cssm/useMatchMedia.d.ts +6 -0
- package/mq/cssm/useMatchMedia.js +25 -0
- package/mq/cssm/utils.d.ts +21 -0
- package/mq/cssm/utils.js +69 -0
- package/notification/cssm/Component.d.ts +97 -0
- package/notification/cssm/Component.js +153 -0
- package/notification/cssm/index.d.ts +1 -0
- package/notification/cssm/index.js +17 -0
- package/notification/cssm/index.module.css +56 -0
- package/notification/cssm/utils/index.d.ts +4 -0
- package/notification/cssm/utils/index.js +32 -0
- package/notification-manager/cssm/component-d28c47be.d.ts +43 -0
- package/notification-manager/cssm/component-d28c47be.js +67 -0
- package/notification-manager/cssm/component.d.ts +51 -0
- package/notification-manager/cssm/component.js +31 -0
- package/notification-manager/cssm/components/index.d.ts +1 -0
- package/notification-manager/cssm/components/index.js +9 -0
- package/notification-manager/cssm/components/notification/component.d.ts +0 -0
- package/notification-manager/cssm/components/notification/component.js +9 -0
- package/notification-manager/cssm/components/notification/index.d.ts +1 -0
- package/notification-manager/cssm/components/notification/index.js +9 -0
- package/notification-manager/cssm/index.d.ts +1 -0
- package/notification-manager/cssm/index.js +14 -0
- package/notification-manager/cssm/index.module.css +59 -0
- package/package.json +13 -1
- package/password-input/cssm/component.d.ts +55 -0
- package/password-input/cssm/component.js +76 -0
- package/password-input/cssm/index.d.ts +1 -0
- package/password-input/cssm/index.js +14 -0
- package/password-input/cssm/index.module.css +15 -0
- package/phone-input/cssm/Component.d.ts +10 -0
- package/phone-input/cssm/Component.js +134 -0
- package/phone-input/cssm/index.d.ts +1 -0
- package/phone-input/cssm/index.js +11 -0
- package/phone-input/cssm/utils/index.d.ts +17 -0
- package/phone-input/cssm/utils/index.js +35 -0
- package/picker-button/{Component-a2e04b2b.d.ts → Component-cb99627b.d.ts} +4 -0
- package/picker-button/{Component-a2e04b2b.js → Component-cb99627b.js} +1 -1
- package/picker-button/Component.d.ts +1 -1
- package/picker-button/Component.js +2 -2
- package/picker-button/{esm/Component-69cca889.d.ts → cssm/Component-c7d52094.d.ts} +4 -0
- package/picker-button/cssm/Component-c7d52094.js +62 -0
- package/picker-button/cssm/Component.d.ts +18 -0
- package/picker-button/cssm/Component.js +30 -0
- package/picker-button/cssm/field/Component.d.ts +0 -0
- package/picker-button/cssm/field/Component.js +13 -0
- package/picker-button/cssm/field/index.d.ts +1 -0
- package/picker-button/cssm/field/index.js +13 -0
- package/picker-button/cssm/field/index.module.css +18 -0
- package/picker-button/cssm/index.d.ts +1 -0
- package/picker-button/cssm/index.js +16 -0
- package/picker-button/cssm/index.module.css +3 -0
- package/picker-button/esm/Component-94ad1b6c.d.ts +816 -0
- package/picker-button/esm/{Component-69cca889.js → Component-94ad1b6c.js} +1 -1
- package/picker-button/esm/Component.d.ts +1 -1
- 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 -3
- 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 -3
- 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.d.ts +1 -1
- package/picker-button/modern/Component.js +1 -1
- package/picker-button/modern/field/Component.d.ts +4 -0
- package/picker-button/modern/field/Component.js +1 -1
- package/picker-button/modern/field/index.css +3 -3
- package/picker-button/modern/index.css +2 -2
- package/plate/cssm/Component.d.ts +74 -0
- package/plate/cssm/Component.js +101 -0
- package/plate/cssm/index.d.ts +1 -0
- package/plate/cssm/index.js +13 -0
- package/plate/cssm/index.module.css +167 -0
- package/popover/cssm/Component.d.ts +97 -0
- package/popover/cssm/Component.js +127 -0
- package/popover/cssm/index.d.ts +1 -0
- package/popover/cssm/index.js +16 -0
- package/popover/cssm/index.module.css +121 -0
- package/portal/cssm/Component.d.ts +12 -0
- package/portal/cssm/Component.js +25 -0
- package/portal/cssm/index.d.ts +1 -0
- package/portal/cssm/index.js +10 -0
- package/portal/cssm/utils.d.ts +5 -0
- package/portal/cssm/utils.js +25 -0
- package/progress-bar/cssm/Component.d.ts +22 -0
- package/progress-bar/cssm/Component.js +19 -0
- package/progress-bar/cssm/index.d.ts +1 -0
- package/progress-bar/cssm/index.js +10 -0
- package/progress-bar/cssm/index.module.css +44 -0
- package/pure-input/cssm/Component.d.ts +48 -0
- package/pure-input/cssm/Component.js +74 -0
- package/pure-input/cssm/index.d.ts +1 -0
- package/pure-input/cssm/index.js +12 -0
- package/pure-input/cssm/index.module.css +155 -0
- package/radio/cssm/Component.d.ts +120 -0
- package/radio/cssm/Component.js +82 -0
- package/radio/cssm/index.d.ts +1 -0
- package/radio/cssm/index.js +12 -0
- package/radio/cssm/index.module.css +209 -0
- package/radio-group/cssm/Component.d.ts +60 -0
- package/radio-group/cssm/Component.js +93 -0
- package/radio-group/cssm/index.d.ts +1 -0
- package/radio-group/cssm/index.js +10 -0
- package/radio-group/cssm/index.module.css +91 -0
- package/select/Component.d.ts +1 -1
- package/select/Component.js +1 -1
- package/select/components/arrow/Component.js +1 -1
- package/select/components/arrow/index.css +3 -3
- package/select/components/base-select/Component.js +22 -7
- package/select/components/base-select/index.css +7 -7
- package/select/components/base-select/index.js +1 -1
- package/select/components/checkmark/Component.js +1 -1
- package/select/components/checkmark/index.css +3 -3
- package/select/components/field/Component.js +2 -2
- package/select/components/field/index.css +9 -9
- 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 -6
- package/select/components/option/Component.js +2 -2
- package/select/components/option/index.css +20 -20
- 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 -5
- package/select/components/virtual-options-list/Component.js +1 -1
- package/select/components/virtual-options-list/index.css +11 -11
- package/select/cssm/Component.d.ts +110 -0
- package/select/cssm/Component.js +38 -0
- package/select/cssm/components/arrow/Component.d.ts +4 -0
- package/select/cssm/components/arrow/Component.js +19 -0
- package/select/cssm/components/arrow/index.d.ts +1 -0
- package/select/cssm/components/arrow/index.js +10 -0
- package/select/cssm/components/arrow/index.module.css +35 -0
- package/select/cssm/components/base-select/Component.d.ts +5 -0
- package/select/cssm/components/base-select/Component.js +242 -0
- package/select/cssm/components/base-select/index.d.ts +1 -0
- package/select/cssm/components/base-select/index.js +17 -0
- package/select/cssm/components/base-select/index.module.css +76 -0
- package/select/cssm/components/checkmark/Component.d.ts +4 -0
- package/select/cssm/components/checkmark/Component.js +21 -0
- package/select/cssm/components/checkmark/index.d.ts +1 -0
- package/select/cssm/components/checkmark/index.js +10 -0
- package/select/cssm/components/checkmark/index.module.css +51 -0
- package/select/cssm/components/field/Component.d.ts +24 -0
- package/select/cssm/components/field/Component.js +40 -0
- package/select/cssm/components/field/index.d.ts +1 -0
- package/select/cssm/components/field/index.js +14 -0
- package/select/cssm/components/field/index.module.css +63 -0
- package/select/cssm/components/index.d.ts +7 -0
- package/select/cssm/components/index.js +40 -0
- package/select/cssm/components/native-select/Component.d.ts +25 -0
- package/select/cssm/components/native-select/Component.js +29 -0
- package/select/cssm/components/native-select/index.d.ts +1 -0
- package/select/cssm/components/native-select/index.js +10 -0
- package/select/cssm/components/optgroup/Component.d.ts +4 -0
- package/select/cssm/components/optgroup/Component.js +21 -0
- package/select/cssm/components/optgroup/index.d.ts +1 -0
- package/select/cssm/components/optgroup/index.js +10 -0
- package/select/cssm/components/optgroup/index.module.css +62 -0
- package/select/cssm/components/option/Component.d.ts +4 -0
- package/select/cssm/components/option/Component.js +31 -0
- package/select/cssm/components/option/index.d.ts +1 -0
- package/select/cssm/components/option/index.js +13 -0
- package/select/cssm/components/option/index.module.css +144 -0
- package/select/cssm/components/options-list/Component.d.ts +5 -0
- package/select/cssm/components/options-list/Component.js +44 -0
- package/select/cssm/components/options-list/index.d.ts +1 -0
- package/select/cssm/components/options-list/index.js +14 -0
- package/select/cssm/components/options-list/index.module.css +41 -0
- package/select/cssm/components/virtual-options-list/Component.d.ts +10 -0
- package/select/cssm/components/virtual-options-list/Component.js +104 -0
- package/select/cssm/components/virtual-options-list/index.d.ts +1 -0
- package/select/cssm/components/virtual-options-list/index.js +14 -0
- package/select/cssm/components/virtual-options-list/index.module.css +76 -0
- package/select/cssm/index.d.ts +5 -0
- package/select/cssm/index.js +56 -0
- package/select/cssm/presets/index.d.ts +2 -0
- package/select/cssm/presets/index.js +19 -0
- package/select/cssm/presets/useLazyLoading/hook.d.ts +46 -0
- package/select/cssm/presets/useLazyLoading/hook.js +1098 -0
- package/select/cssm/presets/useLazyLoading/index.module.css +7 -0
- package/select/cssm/presets/useSelectWithLoading/hook.d.ts +11 -0
- package/select/cssm/presets/useSelectWithLoading/hook.js +36 -0
- package/select/cssm/presets/useSelectWithLoading/index.module.css +7 -0
- package/select/cssm/tslib.es6-f8106a15.d.ts +32 -0
- package/select/{tslib.es6-2a25a340.js → cssm/tslib.es6-f8106a15.js} +0 -0
- package/select/cssm/typings.d.ts +438 -0
- package/select/cssm/typings.js +1 -0
- package/select/cssm/utils.d.ts +38 -0
- package/select/cssm/utils.js +93 -0
- package/select/cssm/vars.css +10 -0
- package/select/esm/Component.d.ts +1 -1
- package/select/esm/Component.js +1 -1
- package/select/esm/components/arrow/Component.js +1 -1
- package/select/esm/components/arrow/index.css +3 -3
- package/select/esm/components/base-select/Component.js +22 -7
- package/select/esm/components/base-select/index.css +7 -7
- 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 -3
- package/select/esm/components/field/Component.js +2 -2
- package/select/esm/components/field/index.css +9 -9
- 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 -6
- package/select/esm/components/option/Component.js +2 -2
- package/select/esm/components/option/index.css +20 -20
- 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 -5
- package/select/esm/components/virtual-options-list/Component.js +1 -1
- package/select/esm/components/virtual-options-list/index.css +11 -11
- 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/select/esm/tslib.es6-abde084a.d.ts +32 -0
- package/select/esm/{tslib.es6-3d459325.js → tslib.es6-abde084a.js} +0 -0
- package/select/esm/typings.d.ts +4 -0
- package/select/index.js +1 -1
- package/select/modern/Component.d.ts +1 -1
- package/select/modern/components/arrow/Component.js +1 -1
- package/select/modern/components/arrow/index.css +3 -3
- package/select/modern/components/base-select/Component.js +21 -6
- package/select/modern/components/base-select/index.css +7 -7
- package/select/modern/components/checkmark/Component.js +1 -1
- package/select/modern/components/checkmark/index.css +3 -3
- package/select/modern/components/field/Component.js +1 -1
- package/select/modern/components/field/index.css +9 -9
- package/select/modern/components/optgroup/Component.js +1 -1
- package/select/modern/components/optgroup/index.css +6 -6
- package/select/modern/components/option/Component.js +1 -1
- package/select/modern/components/option/index.css +20 -20
- package/select/modern/components/options-list/Component.js +1 -1
- package/select/modern/components/options-list/index.css +5 -5
- package/select/modern/components/virtual-options-list/Component.js +1 -1
- package/select/modern/components/virtual-options-list/index.css +11 -11
- 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 +4 -0
- 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/tslib.es6-0f234b35.d.ts +32 -0
- package/select/tslib.es6-0f234b35.js +49 -0
- package/select/typings.d.ts +4 -0
- package/select-with-tags/component.d.ts +1 -1
- package/select-with-tags/cssm/component.d.ts +21 -0
- package/select-with-tags/cssm/component.js +88 -0
- package/select-with-tags/cssm/components/index.d.ts +2 -0
- package/select-with-tags/cssm/components/index.js +19 -0
- package/select-with-tags/cssm/components/tag/component.d.ts +3 -0
- package/select-with-tags/cssm/components/tag/component.js +33 -0
- package/select-with-tags/cssm/components/tag/index.d.ts +1 -0
- package/select-with-tags/cssm/components/tag/index.js +13 -0
- package/select-with-tags/cssm/components/tag/index.module.css +50 -0
- package/select-with-tags/cssm/components/tag-list/component.d.ts +20 -0
- package/select-with-tags/cssm/components/tag-list/component.js +133 -0
- package/select-with-tags/cssm/components/tag-list/index.d.ts +1 -0
- package/select-with-tags/cssm/components/tag-list/index.js +18 -0
- package/select-with-tags/cssm/components/tag-list/index.module.css +155 -0
- package/select-with-tags/cssm/index.d.ts +1 -0
- package/select-with-tags/cssm/index.js +21 -0
- package/select-with-tags/cssm/tslib.es6-ce870b46.d.ts +32 -0
- package/select-with-tags/cssm/tslib.es6-ce870b46.js +40 -0
- package/select-with-tags/cssm/types.d.ts +63 -0
- package/select-with-tags/cssm/types.js +1 -0
- package/select-with-tags/cssm/utils/calculate-collapse-size.d.ts +2 -0
- package/select-with-tags/cssm/utils/calculate-collapse-size.js +47 -0
- package/select-with-tags/cssm/utils/index.d.ts +1 -0
- package/select-with-tags/cssm/utils/index.js +9 -0
- package/select-with-tags/cssm/utils/match.d.ts +4 -0
- package/select-with-tags/cssm/utils/match.js +31 -0
- package/select-with-tags/esm/component.d.ts +1 -1
- package/select-with-tags/modern/component.d.ts +1 -1
- package/skeleton/cssm/Component.d.ts +22 -0
- package/skeleton/cssm/Component.js +22 -0
- package/skeleton/cssm/index.d.ts +1 -0
- package/skeleton/cssm/index.js +10 -0
- package/skeleton/cssm/index.module.css +104 -0
- package/skeleton/cssm/stories.module.css +4 -0
- package/slider/cssm/Component.d.ts +69 -0
- package/slider/cssm/Component.js +97 -0
- package/slider/cssm/index.d.ts +1 -0
- package/slider/cssm/index.js +12 -0
- package/slider/cssm/index.module.css +236 -0
- package/slider-input/cssm/Component.d.ts +149 -0
- package/slider-input/cssm/Component.js +102 -0
- package/slider-input/cssm/index.d.ts +1 -0
- package/slider-input/cssm/index.js +12 -0
- package/slider-input/cssm/index.module.css +93 -0
- package/space/cssm/Component.d.ts +47 -0
- package/space/cssm/Component.js +54 -0
- package/space/cssm/Item-09e1c4dc.d.ts +47 -0
- package/space/cssm/Item-09e1c4dc.js +49 -0
- package/space/cssm/Item.d.ts +0 -0
- package/space/cssm/Item.js +6 -0
- package/space/cssm/index.d.ts +1 -0
- package/space/cssm/index.js +11 -0
- package/space/cssm/index.module.css +32 -0
- package/space/cssm/utils.d.ts +11 -0
- package/space/cssm/utils.js +15 -0
- package/spinner/cssm/Component.d.ts +25 -0
- package/spinner/cssm/Component.js +21 -0
- package/spinner/cssm/index.d.ts +1 -0
- package/spinner/cssm/index.js +10 -0
- package/spinner/cssm/index.module.css +39 -0
- package/stack/cssm/component.d.ts +15 -0
- package/stack/cssm/component.js +18 -0
- package/stack/cssm/context.d.ts +29 -0
- package/stack/cssm/context.js +34 -0
- package/stack/cssm/index.d.ts +2 -0
- package/stack/cssm/index.js +11 -0
- package/status/cssm/Component.d.ts +22 -0
- package/status/cssm/Component.js +20 -0
- package/status/cssm/index.d.ts +1 -0
- package/status/cssm/index.js +11 -0
- package/status/cssm/index.module.css +103 -0
- package/stepped-progress-bar/cssm/Component.d.ts +25 -0
- package/stepped-progress-bar/cssm/Component.js +30 -0
- package/stepped-progress-bar/cssm/components/step-bar/Component.d.ts +6 -0
- package/stepped-progress-bar/cssm/components/step-bar/Component.js +18 -0
- package/stepped-progress-bar/cssm/components/step-bar/index.d.ts +1 -0
- package/stepped-progress-bar/cssm/components/step-bar/index.js +10 -0
- package/stepped-progress-bar/cssm/components/step-bar/index.module.css +15 -0
- package/stepped-progress-bar/cssm/index.d.ts +1 -0
- package/stepped-progress-bar/cssm/index.js +13 -0
- package/stepped-progress-bar/cssm/index.module.css +27 -0
- package/switch/cssm/Component.d.ts +103 -0
- package/switch/cssm/Component.js +83 -0
- package/switch/cssm/index.d.ts +1 -0
- package/switch/cssm/index.js +12 -0
- package/switch/cssm/index.module.css +176 -0
- 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/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/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/cssm/components/primary-tablist/Component.d.ts +13 -0
- package/tabs/cssm/components/primary-tablist/Component.desktop.d.ts +4 -0
- package/tabs/cssm/components/primary-tablist/Component.desktop.js +24 -0
- package/tabs/cssm/components/primary-tablist/Component.js +50 -0
- package/tabs/cssm/components/primary-tablist/Component.mobile.d.ts +5 -0
- package/tabs/cssm/components/primary-tablist/Component.mobile.js +28 -0
- package/tabs/cssm/components/primary-tablist/Component.responsive.d.ts +4 -0
- package/tabs/cssm/components/primary-tablist/Component.responsive.js +31 -0
- package/tabs/cssm/components/primary-tablist/index.module.css +184 -0
- package/tabs/cssm/components/primary-tablist/mobile.module.css +55 -0
- package/tabs/cssm/components/scrollable-container/Component.d.ts +18 -0
- package/tabs/cssm/components/scrollable-container/Component.js +36 -0
- package/tabs/cssm/components/scrollable-container/index.d.ts +1 -0
- package/tabs/cssm/components/scrollable-container/index.js +11 -0
- package/tabs/cssm/components/scrollable-container/index.module.css +47 -0
- package/tabs/cssm/components/secondary-tablist/Component.d.ts +15 -0
- package/tabs/cssm/components/secondary-tablist/Component.desktop.d.ts +5 -0
- package/tabs/cssm/components/secondary-tablist/Component.desktop.js +24 -0
- package/tabs/cssm/components/secondary-tablist/Component.js +32 -0
- package/tabs/cssm/components/secondary-tablist/Component.mobile.d.ts +5 -0
- package/tabs/cssm/components/secondary-tablist/Component.mobile.js +28 -0
- package/tabs/cssm/components/secondary-tablist/Component.responsive.d.ts +4 -0
- package/tabs/cssm/components/secondary-tablist/Component.responsive.js +31 -0
- package/tabs/cssm/components/secondary-tablist/index.module.css +80 -0
- package/tabs/cssm/components/secondary-tablist/mobile.module.css +43 -0
- package/tabs/cssm/components/tab/Component.d.ts +4 -0
- package/tabs/cssm/components/tab/Component.js +21 -0
- package/tabs/cssm/components/tab/index.d.ts +1 -0
- package/tabs/cssm/components/tab/index.js +10 -0
- package/tabs/cssm/components/tab/index.module.css +7 -0
- package/tabs/cssm/components/tabs/Component.d.ts +4 -0
- package/tabs/cssm/components/tabs/Component.desktop.d.ts +5 -0
- package/tabs/cssm/components/tabs/Component.desktop.js +33 -0
- package/tabs/cssm/components/tabs/Component.js +28 -0
- package/tabs/cssm/components/tabs/Component.mobile.d.ts +5 -0
- package/tabs/cssm/components/tabs/Component.mobile.js +35 -0
- package/tabs/cssm/components/tabs/Component.responsive.d.ts +5 -0
- package/tabs/cssm/components/tabs/Component.responsive.js +40 -0
- package/tabs/cssm/desktop.d.ts +7 -0
- package/tabs/cssm/desktop.js +30 -0
- package/tabs/cssm/index.d.ts +7 -0
- package/tabs/cssm/index.js +37 -0
- package/tabs/cssm/mobile.d.ts +7 -0
- package/tabs/cssm/mobile.js +32 -0
- package/tabs/cssm/responsive.d.ts +7 -0
- package/tabs/cssm/responsive.js +37 -0
- package/tabs/cssm/tslib.es6-ce870b46.d.ts +32 -0
- package/tabs/cssm/tslib.es6-ce870b46.js +40 -0
- package/tabs/cssm/typings.d.ts +116 -0
- package/tabs/cssm/typings.js +1 -0
- package/tabs/cssm/useTabs.d.ts +16 -0
- package/tabs/cssm/useTabs.js +95 -0
- package/tabs/cssm/vars.css +30 -0
- 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/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/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-95ac737a.js → index.module-c8448fef.js} +0 -0
- package/tabs/esm/{index.module-1dc9f24d.js → index.module-fbbc84ff.js} +0 -0
- package/tabs/esm/mobile.js +3 -3
- package/tabs/esm/responsive.js +3 -3
- package/tabs/esm/tslib.es6-787ef7a5.d.ts +32 -0
- package/tabs/esm/{tslib.es6-417b0fd8.js → tslib.es6-787ef7a5.js} +0 -0
- package/tabs/index.js +3 -3
- package/tabs/{index.module-0ed2b345.js → index.module-91539407.js} +0 -0
- package/tabs/{index.module-23528269.js → index.module-95d8761b.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/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/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-95ac737a.js → index.module-c8448fef.js} +0 -0
- package/tabs/modern/{index.module-1dc9f24d.js → index.module-fbbc84ff.js} +0 -0
- package/tabs/modern/mobile.js +2 -2
- package/tabs/modern/responsive.js +2 -2
- package/tabs/responsive.js +3 -3
- package/tabs/tslib.es6-da6ab86a.d.ts +32 -0
- package/tabs/tslib.es6-da6ab86a.js +40 -0
- package/tag/cssm/Component.d.ts +71 -0
- package/tag/cssm/Component.js +89 -0
- package/tag/cssm/default.module.css +72 -0
- package/tag/cssm/index.d.ts +1 -0
- package/tag/cssm/index.js +14 -0
- package/tag/cssm/index.module.css +152 -0
- package/tag/cssm/inverted.module.css +73 -0
- package/textarea/cssm/Component.d.ts +214 -0
- package/textarea/cssm/Component.js +140 -0
- package/textarea/cssm/default.module.css +97 -0
- package/textarea/cssm/index.d.ts +1 -0
- package/textarea/cssm/index.js +17 -0
- package/textarea/cssm/index.module.css +146 -0
- package/textarea/cssm/inverted.module.css +97 -0
- package/themes/compiled/mobile-dark-bluetint.css +8 -8
- package/themes/dist/compiled/mobile-dark-bluetint.css +133 -98
- package/toast/cssm/component.d.ts +88 -0
- package/toast/cssm/component.js +125 -0
- package/toast/cssm/index.d.ts +1 -0
- package/toast/cssm/index.js +17 -0
- package/toast/cssm/index.module.css +48 -0
- package/toast-plate/cssm/component.d.ts +109 -0
- package/toast-plate/cssm/component.js +88 -0
- package/toast-plate/cssm/index.d.ts +1 -0
- package/toast-plate/cssm/index.js +16 -0
- package/toast-plate/cssm/index.module.css +599 -0
- package/tooltip/cssm/Component-1d6b7d3e.d.ts +125 -0
- package/tooltip/cssm/Component-1d6b7d3e.js +172 -0
- package/tooltip/cssm/Component.d.ts +0 -0
- package/tooltip/cssm/Component.js +12 -0
- package/tooltip/cssm/component.responsive.d.ts +28 -0
- package/tooltip/cssm/component.responsive.js +31 -0
- package/tooltip/cssm/index.d.ts +1 -0
- package/tooltip/cssm/index.js +12 -0
- package/tooltip/cssm/index.module.css +51 -0
- package/tooltip/cssm/responsive.d.ts +1 -0
- package/tooltip/cssm/responsive.js +15 -0
- package/typography/colors.module-b49182a7.d.ts +32 -0
- package/typography/{colors.module-ded492e1.js → colors.module-b49182a7.js} +0 -0
- package/typography/{common.module-1de331b9.js → common.module-263677ac.js} +0 -0
- package/typography/component.js +2 -2
- package/typography/cssm/colors.d.ts +3 -0
- package/typography/cssm/colors.js +18 -0
- package/typography/cssm/colors.module.css +59 -0
- package/typography/cssm/component.d.ts +9 -0
- package/typography/cssm/component.js +22 -0
- package/typography/cssm/index.d.ts +1 -0
- package/typography/cssm/index.js +19 -0
- package/typography/cssm/margins.module.css +1 -0
- package/typography/cssm/text/component.d.ts +75 -0
- package/typography/cssm/text/component.js +22 -0
- package/typography/cssm/text/index.d.ts +1 -0
- package/typography/cssm/text/index.js +12 -0
- package/typography/cssm/text/index.module.css +73 -0
- package/typography/cssm/title/common.module.css +16 -0
- package/typography/cssm/title/component.d.ts +88 -0
- package/typography/cssm/title/component.js +19 -0
- package/typography/cssm/title/index.d.ts +4 -0
- package/typography/cssm/title/index.js +25 -0
- package/typography/cssm/title/index.module.css +102 -0
- package/typography/cssm/title-responsive/component.d.ts +4 -0
- package/typography/cssm/title-responsive/component.js +25 -0
- package/typography/cssm/title-responsive/index.d.ts +1 -0
- package/typography/cssm/title-responsive/index.js +14 -0
- package/typography/cssm/title-responsive/index.module.css +276 -0
- package/typography/cssm/tslib.es6-ce870b46.d.ts +32 -0
- package/typography/cssm/tslib.es6-ce870b46.js +40 -0
- package/typography/esm/colors.module-509f4855.d.ts +32 -0
- package/typography/esm/{colors.module-d21f47ee.js → colors.module-509f4855.js} +0 -0
- package/typography/esm/{common.module-9782b936.js → common.module-961ee2a7.js} +0 -0
- package/typography/esm/component.js +2 -2
- package/typography/esm/index.js +2 -2
- package/typography/esm/text/component.js +1 -1
- package/typography/esm/text/index.js +1 -1
- package/typography/esm/title/component.js +1 -1
- package/typography/esm/title/index.js +2 -2
- package/typography/esm/title-responsive/component.js +2 -2
- package/typography/esm/title-responsive/index.js +2 -2
- package/typography/index.js +2 -2
- package/typography/modern/{colors.module-5a6490a8.js → colors.module-07a98532.js} +0 -0
- package/typography/modern/{common.module-9782b936.js → common.module-961ee2a7.js} +0 -0
- package/typography/modern/component.js +2 -2
- package/typography/modern/index.js +2 -2
- package/typography/modern/text/component.js +1 -1
- package/typography/modern/text/index.js +1 -1
- package/typography/modern/title/component.js +1 -1
- package/typography/modern/title/index.js +2 -2
- package/typography/modern/title-responsive/component.js +2 -2
- package/typography/modern/title-responsive/index.js +2 -2
- package/typography/text/component.js +1 -1
- package/typography/text/index.js +1 -1
- package/typography/title/component.js +1 -1
- package/typography/title/index.js +2 -2
- package/typography/title-responsive/component.js +2 -2
- package/typography/title-responsive/index.js +2 -2
- package/vars/cssm/border-radius.css +9 -0
- package/vars/cssm/colors-addons.css +55 -0
- package/vars/cssm/colors-bluetint.css +247 -0
- package/vars/cssm/colors-bluetint.d.ts +2 -0
- package/vars/cssm/colors-bluetint.js +10 -0
- package/vars/cssm/colors-indigo.css +265 -0
- package/vars/cssm/colors-indigo.d.ts +2 -0
- package/vars/cssm/colors-indigo.js +10 -0
- package/vars/cssm/colors-transparent.css +22 -0
- package/vars/cssm/colors.css +71 -0
- package/vars/cssm/gaps.css +30 -0
- package/vars/cssm/index.css +496 -0
- package/vars/cssm/mixins.css +1 -0
- package/vars/cssm/shadows-indigo.css +38 -0
- package/vars/cssm/typography.css +6 -0
- package/with-suffix/cssm/Component.d.ts +89 -0
- package/with-suffix/cssm/Component.js +97 -0
- package/with-suffix/cssm/index.d.ts +1 -0
- package/with-suffix/cssm/index.js +12 -0
- package/with-suffix/cssm/index.module.css +41 -0
|
@@ -0,0 +1,1098 @@
|
|
|
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;
|