@popsure/dirty-swan 0.62.3 → 0.63.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/dist/bin/util/index.js +1 -1
- package/dist/cjs/index.d.ts +2 -2
- package/dist/cjs/index.js +10132 -12565
- package/dist/cjs/index.js.map +1 -1
- package/dist/cjs/lib/components/accordion/index.d.ts +1 -2
- package/dist/cjs/lib/components/accordion/index.stories.d.ts +3 -7
- package/dist/cjs/lib/components/autocompleteAddress/index.d.ts +2 -3
- package/dist/cjs/lib/components/autocompleteAddress/index.stories.d.ts +6 -12
- package/dist/cjs/lib/components/autocompleteAddress/util/index.d.ts +1 -1
- package/dist/cjs/lib/components/badge/index.d.ts +3 -4
- package/dist/cjs/lib/components/badge/index.stories.d.ts +3 -9
- package/dist/cjs/lib/components/button/index.d.ts +9 -13
- package/dist/cjs/lib/components/button/index.stories.d.ts +63 -0
- package/dist/cjs/lib/components/cards/card/index.d.ts +2 -6
- package/dist/cjs/lib/components/cards/card/index.stories.d.ts +6 -16
- package/dist/cjs/lib/components/cards/cardButton/index.stories.d.ts +2 -2
- package/dist/cjs/lib/components/cards/infoCard/index.d.ts +7 -9
- package/dist/cjs/lib/components/cards/infoCard/index.stories.d.ts +18 -24
- package/dist/cjs/lib/components/chip/index.stories.d.ts +2 -2
- package/dist/cjs/lib/components/comparisonTable/components/AccordionItem/AccordionItem.d.ts +4 -1
- package/dist/cjs/lib/components/comparisonTable/index.stories.d.ts +2 -2
- package/dist/cjs/lib/components/dateSelector/index.d.ts +1 -1
- package/dist/cjs/lib/components/dateSelector/index.stories.d.ts +3 -5
- package/dist/cjs/lib/components/downloadButton/index.stories.d.ts +3 -5
- package/dist/cjs/lib/components/icon/icons/index.d.ts +0 -26
- package/dist/cjs/lib/components/icon/index.stories.d.ts +4 -4
- package/dist/cjs/lib/components/informationBox/index.stories.d.ts +2 -2
- package/dist/cjs/lib/components/input/autoSuggestInput/index.stories.d.ts +2 -2
- package/dist/cjs/lib/components/input/autoSuggestMultiSelect/index.stories.d.ts +2 -2
- package/dist/cjs/lib/components/input/checkbox/index.d.ts +1 -2
- package/dist/cjs/lib/components/input/checkbox/index.stories.d.ts +8 -22
- package/dist/cjs/lib/components/input/currency/input.stories.d.ts +2 -3
- package/dist/cjs/lib/components/input/input.stories.d.ts +2 -3
- package/dist/cjs/lib/components/input/radio/index.d.ts +1 -3
- package/dist/cjs/lib/components/input/radio/index.stories.d.ts +10 -32
- package/dist/cjs/lib/components/input/stories/config.d.ts +0 -1
- package/dist/cjs/lib/components/input/toggle/index.stories.d.ts +7 -17
- package/dist/cjs/lib/components/link/index.stories.d.ts +2 -2
- package/dist/cjs/lib/components/modal/bottomModal/index.d.ts +1 -1
- package/dist/cjs/lib/components/modal/genericModal/index.d.ts +15 -17
- package/dist/cjs/lib/components/modal/hooks/useOnClose.d.ts +1 -1
- package/dist/cjs/lib/components/modal/index.d.ts +1 -6
- package/dist/cjs/lib/components/modal/index.stories.d.ts +9 -49
- package/dist/cjs/lib/components/modal/regularModal/index.d.ts +1 -1
- package/dist/cjs/lib/components/multiDropzone/index.stories.d.ts +2 -11
- package/dist/cjs/lib/components/multiDropzone/types.d.ts +2 -3
- package/dist/cjs/lib/components/multiDropzone/utils/index.d.ts +2 -9
- package/dist/cjs/lib/components/segmentedControl/index.stories.d.ts +3 -5
- package/dist/cjs/lib/components/signaturePad/index.stories.d.ts +2 -2
- package/dist/cjs/lib/components/spinner/index.stories.d.ts +2 -2
- package/dist/cjs/lib/components/table/Table.d.ts +3 -10
- package/dist/cjs/lib/components/table/Table.stories.d.ts +4 -15
- package/dist/cjs/lib/components/table/components/TableCell/BaseCell/BaseCell.d.ts +3 -5
- package/dist/cjs/lib/components/table/components/TableCell/BaseCell/BaseCell.stories.d.ts +3 -3
- package/dist/cjs/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.stories.d.ts +2 -2
- package/dist/cjs/lib/components/table/components/TableCell/ButtonCell/ButtonCell.d.ts +2 -4
- package/dist/cjs/lib/components/table/components/TableCell/ButtonCell/ButtonCell.stories.d.ts +3 -3
- package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +2 -6
- package/dist/cjs/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +3 -3
- package/dist/cjs/lib/components/table/components/TableCell/TableCell.d.ts +1 -3
- package/dist/cjs/lib/components/table/components/TableContents/Collapsible.d.ts +2 -1
- package/dist/cjs/lib/components/table/components/TableContents/TableContents.d.ts +1 -4
- package/dist/cjs/lib/components/table/components/TableSection/TableSection.d.ts +3 -4
- package/dist/cjs/lib/components/table/types.d.ts +4 -13
- package/dist/cjs/lib/components/table/utils/useTableNavigation/useTableNavigation.d.ts +0 -1
- package/dist/cjs/lib/components/toast/index.stories.d.ts +4 -8
- package/dist/cjs/lib/index.d.ts +4 -16
- package/dist/cjs/lib/models/styles.d.ts +2 -2
- package/dist/cjs/lib/util/calendarDate/index.d.ts +1 -1
- package/dist/cjs/{mapStyle-Cf8tRlj8.js → mapStyle-a64f125f.js} +1 -1
- package/dist/cjs/mapStyle-a64f125f.js.map +1 -0
- package/dist/colors.scss +1 -1
- package/dist/esm/Calendar-8e595b56.js +2053 -0
- package/dist/esm/Calendar-8e595b56.js.map +1 -0
- package/dist/esm/{useMediaQuery-BlEUymPA.js → Collapsible-a355828b.js} +19 -14
- package/dist/esm/Collapsible-a355828b.js.map +1 -0
- package/dist/esm/{TableSection-CEhD4eoy.js → TableSection-e703f17f.js} +15 -15
- package/dist/esm/TableSection-e703f17f.js.map +1 -0
- package/dist/esm/_commonjsHelpers-4730bd53.js +27 -0
- package/dist/esm/_commonjsHelpers-4730bd53.js.map +1 -0
- package/dist/esm/components/accordion/index.js +10 -11
- package/dist/esm/components/accordion/index.js.map +1 -1
- package/dist/esm/components/accordion/index.stories.js +14 -20
- package/dist/esm/components/accordion/index.stories.js.map +1 -1
- package/dist/esm/components/autocompleteAddress/index.js +25 -25
- package/dist/esm/components/autocompleteAddress/index.js.map +1 -1
- package/dist/esm/components/autocompleteAddress/index.stories.js +42 -50
- package/dist/esm/components/autocompleteAddress/index.stories.js.map +1 -1
- package/dist/esm/components/autocompleteAddress/index.test.js +7 -9
- package/dist/esm/components/autocompleteAddress/index.test.js.map +1 -1
- package/dist/esm/components/badge/index.js +18 -10
- package/dist/esm/components/badge/index.js.map +1 -1
- package/dist/esm/components/badge/index.stories.js +11 -33
- package/dist/esm/components/badge/index.stories.js.map +1 -1
- package/dist/esm/components/badge/index.test.js +5 -6
- package/dist/esm/components/badge/index.test.js.map +1 -1
- package/dist/esm/components/button/index.js +11 -13
- package/dist/esm/components/button/index.js.map +1 -1
- package/dist/esm/components/button/index.stories.js +30 -51
- package/dist/esm/components/button/index.stories.js.map +1 -1
- package/dist/esm/components/button/index.test.js +4 -5
- package/dist/esm/components/button/index.test.js.map +1 -1
- package/dist/esm/components/cards/card/index.js +16 -21
- package/dist/esm/components/cards/card/index.js.map +1 -1
- package/dist/esm/components/cards/card/index.stories.js +39 -55
- package/dist/esm/components/cards/card/index.stories.js.map +1 -1
- package/dist/esm/components/cards/cardButton/index.js +8 -11
- package/dist/esm/components/cards/cardButton/index.js.map +1 -1
- package/dist/esm/components/cards/cardButton/index.stories.js +13 -15
- package/dist/esm/components/cards/cardButton/index.stories.js.map +1 -1
- package/dist/esm/components/cards/index.js +22 -9
- package/dist/esm/components/cards/index.js.map +1 -1
- package/dist/esm/components/cards/infoCard/index.js +8 -31
- package/dist/esm/components/cards/infoCard/index.js.map +1 -1
- package/dist/esm/components/cards/infoCard/index.stories.js +36 -51
- package/dist/esm/components/cards/infoCard/index.stories.js.map +1 -1
- package/dist/esm/components/chip/index.js +8 -9
- package/dist/esm/components/chip/index.js.map +1 -1
- package/dist/esm/components/chip/index.stories.js +13 -15
- package/dist/esm/components/chip/index.stories.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js +12 -9
- package/dist/esm/components/comparisonTable/components/AccordionItem/AccordionItem.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/AccordionItem/index.js +3 -4
- package/dist/esm/components/comparisonTable/components/AccordionItem/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/Chevron.js +2 -2
- package/dist/esm/components/comparisonTable/components/Chevron.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/Row/index.js +6 -7
- package/dist/esm/components/comparisonTable/components/Row/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableArrows/Arrow.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableArrows/Arrow.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableArrows/index.js +4 -5
- package/dist/esm/components/comparisonTable/components/TableArrows/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableButton/index.js +5 -6
- package/dist/esm/components/comparisonTable/components/TableButton/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableButton/index.test.js +8 -7
- package/dist/esm/components/comparisonTable/components/TableButton/index.test.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js +7 -8
- package/dist/esm/components/comparisonTable/components/TableInfoButton/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableRating/StarIcon.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableRating/StarIcon.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableRating/ZapIcon.js +1 -1
- package/dist/esm/components/comparisonTable/components/TableRating/ZapIcon.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableRating/index.js +4 -5
- package/dist/esm/components/comparisonTable/components/TableRating/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableRowHeader/index.js +6 -7
- package/dist/esm/components/comparisonTable/components/TableRowHeader/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableRowHeader/index.test.js +8 -7
- package/dist/esm/components/comparisonTable/components/TableRowHeader/index.test.js.map +1 -1
- package/dist/esm/components/comparisonTable/components/TableTrueFalse.js +3 -3
- package/dist/esm/components/comparisonTable/components/TableTrueFalse.js.map +1 -1
- package/dist/esm/components/comparisonTable/index.js +17 -17
- package/dist/esm/components/comparisonTable/index.js.map +1 -1
- package/dist/esm/components/comparisonTable/index.stories.js +20 -21
- package/dist/esm/components/comparisonTable/index.stories.js.map +1 -1
- package/dist/esm/components/dateSelector/components/Calendar.js +5 -5
- package/dist/esm/components/dateSelector/index.js +57 -64
- package/dist/esm/components/dateSelector/index.js.map +1 -1
- package/dist/esm/components/dateSelector/index.stories.js +37 -50
- package/dist/esm/components/dateSelector/index.stories.js.map +1 -1
- package/dist/esm/components/dateSelector/index.test.js +7 -8
- package/dist/esm/components/dateSelector/index.test.js.map +1 -1
- package/dist/esm/components/downloadButton/index.js +5 -6
- package/dist/esm/components/downloadButton/index.js.map +1 -1
- package/dist/esm/components/downloadButton/index.stories.js +13 -17
- package/dist/esm/components/downloadButton/index.stories.js.map +1 -1
- package/dist/esm/components/icon/IconWrapper/IconWrapper.js +3 -4
- package/dist/esm/components/icon/IconWrapper/IconWrapper.js.map +1 -1
- package/dist/esm/components/icon/icons/1.js +4 -5
- package/dist/esm/components/icon/icons/1.js.map +1 -1
- package/dist/esm/components/icon/icons/2.js +4 -5
- package/dist/esm/components/icon/icons/2.js.map +1 -1
- package/dist/esm/components/icon/icons/3.js +4 -5
- package/dist/esm/components/icon/icons/3.js.map +1 -1
- package/dist/esm/components/icon/icons/4.js +4 -5
- package/dist/esm/components/icon/icons/4.js.map +1 -1
- package/dist/esm/components/icon/icons/5.js +4 -5
- package/dist/esm/components/icon/icons/5.js.map +1 -1
- package/dist/esm/components/icon/icons/6.js +4 -5
- package/dist/esm/components/icon/icons/6.js.map +1 -1
- package/dist/esm/components/icon/icons/7.js +4 -5
- package/dist/esm/components/icon/icons/7.js.map +1 -1
- package/dist/esm/components/icon/icons/8.js +4 -5
- package/dist/esm/components/icon/icons/8.js.map +1 -1
- package/dist/esm/components/icon/icons/Activity.js +4 -5
- package/dist/esm/components/icon/icons/Activity.js.map +1 -1
- package/dist/esm/components/icon/icons/Adhd.js +4 -5
- package/dist/esm/components/icon/icons/Adhd.js.map +1 -1
- package/dist/esm/components/icon/icons/AdviceRecommendation.js +4 -5
- package/dist/esm/components/icon/icons/AdviceRecommendation.js.map +1 -1
- package/dist/esm/components/icon/icons/AlertCircle.js +4 -5
- package/dist/esm/components/icon/icons/AlertCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/AlertOctagon.js +4 -5
- package/dist/esm/components/icon/icons/AlertOctagon.js.map +1 -1
- package/dist/esm/components/icon/icons/AlertTriangle.js +4 -5
- package/dist/esm/components/icon/icons/AlertTriangle.js.map +1 -1
- package/dist/esm/components/icon/icons/AlertTriangleFilled.js +4 -5
- package/dist/esm/components/icon/icons/AlertTriangleFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/AlignCenter.js +4 -5
- package/dist/esm/components/icon/icons/AlignCenter.js.map +1 -1
- package/dist/esm/components/icon/icons/AlignJustify.js +4 -5
- package/dist/esm/components/icon/icons/AlignJustify.js.map +1 -1
- package/dist/esm/components/icon/icons/AlignLeft.js +4 -5
- package/dist/esm/components/icon/icons/AlignLeft.js.map +1 -1
- package/dist/esm/components/icon/icons/AlignRight.js +4 -5
- package/dist/esm/components/icon/icons/AlignRight.js.map +1 -1
- package/dist/esm/components/icon/icons/Anchor.js +4 -5
- package/dist/esm/components/icon/icons/Anchor.js.map +1 -1
- package/dist/esm/components/icon/icons/Aperture.js +4 -5
- package/dist/esm/components/icon/icons/Aperture.js.map +1 -1
- package/dist/esm/components/icon/icons/Archive.js +4 -5
- package/dist/esm/components/icon/icons/Archive.js.map +1 -1
- package/dist/esm/components/icon/icons/ArrowDown.js +4 -5
- package/dist/esm/components/icon/icons/ArrowDown.js.map +1 -1
- package/dist/esm/components/icon/icons/ArrowDownCircle.js +4 -5
- package/dist/esm/components/icon/icons/ArrowDownCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/ArrowDownLeft.js +4 -5
- package/dist/esm/components/icon/icons/ArrowDownLeft.js.map +1 -1
- package/dist/esm/components/icon/icons/ArrowDownRight.js +4 -5
- package/dist/esm/components/icon/icons/ArrowDownRight.js.map +1 -1
- package/dist/esm/components/icon/icons/ArrowLeft.js +4 -5
- package/dist/esm/components/icon/icons/ArrowLeft.js.map +1 -1
- package/dist/esm/components/icon/icons/ArrowLeftCircle.js +4 -5
- package/dist/esm/components/icon/icons/ArrowLeftCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/ArrowRight.js +4 -5
- package/dist/esm/components/icon/icons/ArrowRight.js.map +1 -1
- package/dist/esm/components/icon/icons/ArrowRightCircle.js +4 -5
- package/dist/esm/components/icon/icons/ArrowRightCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/ArrowRightFilled.js +4 -5
- package/dist/esm/components/icon/icons/ArrowRightFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/ArrowUp.js +4 -5
- package/dist/esm/components/icon/icons/ArrowUp.js.map +1 -1
- package/dist/esm/components/icon/icons/ArrowUpCircle.js +4 -5
- package/dist/esm/components/icon/icons/ArrowUpCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/ArrowUpLeft.js +4 -5
- package/dist/esm/components/icon/icons/ArrowUpLeft.js.map +1 -1
- package/dist/esm/components/icon/icons/ArrowUpRight.js +4 -5
- package/dist/esm/components/icon/icons/ArrowUpRight.js.map +1 -1
- package/dist/esm/components/icon/icons/Arthritis.js +4 -5
- package/dist/esm/components/icon/icons/Arthritis.js.map +1 -1
- package/dist/esm/components/icon/icons/AssistantFilled.js +4 -5
- package/dist/esm/components/icon/icons/AssistantFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/Asthma.js +4 -5
- package/dist/esm/components/icon/icons/Asthma.js.map +1 -1
- package/dist/esm/components/icon/icons/AtSign.js +4 -5
- package/dist/esm/components/icon/icons/AtSign.js.map +1 -1
- package/dist/esm/components/icon/icons/AwardMedal.js +4 -5
- package/dist/esm/components/icon/icons/AwardMedal.js.map +1 -1
- package/dist/esm/components/icon/icons/Bank.js +4 -5
- package/dist/esm/components/icon/icons/Bank.js.map +1 -1
- package/dist/esm/components/icon/icons/BarChart.js +4 -5
- package/dist/esm/components/icon/icons/BarChart.js.map +1 -1
- package/dist/esm/components/icon/icons/BarChart2.js +4 -5
- package/dist/esm/components/icon/icons/BarChart2.js.map +1 -1
- package/dist/esm/components/icon/icons/BasketballSports.js +5 -6
- package/dist/esm/components/icon/icons/BasketballSports.js.map +1 -1
- package/dist/esm/components/icon/icons/Battery.js +4 -5
- package/dist/esm/components/icon/icons/Battery.js.map +1 -1
- package/dist/esm/components/icon/icons/BatteryCharging.js +4 -5
- package/dist/esm/components/icon/icons/BatteryCharging.js.map +1 -1
- package/dist/esm/components/icon/icons/Bell.js +4 -5
- package/dist/esm/components/icon/icons/Bell.js.map +1 -1
- package/dist/esm/components/icon/icons/BellOff.js +4 -5
- package/dist/esm/components/icon/icons/BellOff.js.map +1 -1
- package/dist/esm/components/icon/icons/Bluetooth.js +4 -5
- package/dist/esm/components/icon/icons/Bluetooth.js.map +1 -1
- package/dist/esm/components/icon/icons/Bold.js +4 -5
- package/dist/esm/components/icon/icons/Bold.js.map +1 -1
- package/dist/esm/components/icon/icons/Book.js +4 -5
- package/dist/esm/components/icon/icons/Book.js.map +1 -1
- package/dist/esm/components/icon/icons/BookOpen.js +5 -6
- package/dist/esm/components/icon/icons/BookOpen.js.map +1 -1
- package/dist/esm/components/icon/icons/Bookmark.js +4 -5
- package/dist/esm/components/icon/icons/Bookmark.js.map +1 -1
- package/dist/esm/components/icon/icons/Box.js +4 -5
- package/dist/esm/components/icon/icons/Box.js.map +1 -1
- package/dist/esm/components/icon/icons/BoxesAdd.js +4 -5
- package/dist/esm/components/icon/icons/BoxesAdd.js.map +1 -1
- package/dist/esm/components/icon/icons/BoxesAdd2.js +4 -5
- package/dist/esm/components/icon/icons/BoxesAdd2.js.map +1 -1
- package/dist/esm/components/icon/icons/BoxesAddFilled.js +4 -5
- package/dist/esm/components/icon/icons/BoxesAddFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/BoxesMultiple.js +4 -5
- package/dist/esm/components/icon/icons/BoxesMultiple.js.map +1 -1
- package/dist/esm/components/icon/icons/BoxesMultipleFilled.js +4 -5
- package/dist/esm/components/icon/icons/BoxesMultipleFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/Briefcase.js +4 -5
- package/dist/esm/components/icon/icons/Briefcase.js.map +1 -1
- package/dist/esm/components/icon/icons/Calculator.js +4 -5
- package/dist/esm/components/icon/icons/Calculator.js.map +1 -1
- package/dist/esm/components/icon/icons/Calendar.js +4 -5
- package/dist/esm/components/icon/icons/Calendar.js.map +1 -1
- package/dist/esm/components/icon/icons/Camera.js +4 -5
- package/dist/esm/components/icon/icons/Camera.js.map +1 -1
- package/dist/esm/components/icon/icons/CameraOff.js +4 -5
- package/dist/esm/components/icon/icons/CameraOff.js.map +1 -1
- package/dist/esm/components/icon/icons/Cancer.js +4 -5
- package/dist/esm/components/icon/icons/Cancer.js.map +1 -1
- package/dist/esm/components/icon/icons/Cast.js +4 -5
- package/dist/esm/components/icon/icons/Cast.js.map +1 -1
- package/dist/esm/components/icon/icons/Check.js +4 -5
- package/dist/esm/components/icon/icons/Check.js.map +1 -1
- package/dist/esm/components/icon/icons/CheckCircle.js +4 -5
- package/dist/esm/components/icon/icons/CheckCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/CheckInCircle.js +4 -5
- package/dist/esm/components/icon/icons/CheckInCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/CheckInCircleFilled.js +4 -5
- package/dist/esm/components/icon/icons/CheckInCircleFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/CheckSquare.js +4 -5
- package/dist/esm/components/icon/icons/CheckSquare.js.map +1 -1
- package/dist/esm/components/icon/icons/CheckThick.js +5 -6
- package/dist/esm/components/icon/icons/CheckThick.js.map +1 -1
- package/dist/esm/components/icon/icons/CheckboxChecked.js +4 -5
- package/dist/esm/components/icon/icons/CheckboxChecked.js.map +1 -1
- package/dist/esm/components/icon/icons/CheckboxUnchecked.js +4 -5
- package/dist/esm/components/icon/icons/CheckboxUnchecked.js.map +1 -1
- package/dist/esm/components/icon/icons/ChevronDown.js +4 -5
- package/dist/esm/components/icon/icons/ChevronDown.js.map +1 -1
- package/dist/esm/components/icon/icons/ChevronLeft.js +4 -5
- package/dist/esm/components/icon/icons/ChevronLeft.js.map +1 -1
- package/dist/esm/components/icon/icons/ChevronRight.js +4 -5
- package/dist/esm/components/icon/icons/ChevronRight.js.map +1 -1
- package/dist/esm/components/icon/icons/ChevronUp.js +4 -5
- package/dist/esm/components/icon/icons/ChevronUp.js.map +1 -1
- package/dist/esm/components/icon/icons/ChevronsDown.js +4 -5
- package/dist/esm/components/icon/icons/ChevronsDown.js.map +1 -1
- package/dist/esm/components/icon/icons/ChevronsLeft.js +4 -5
- package/dist/esm/components/icon/icons/ChevronsLeft.js.map +1 -1
- package/dist/esm/components/icon/icons/ChevronsRight.js +4 -5
- package/dist/esm/components/icon/icons/ChevronsRight.js.map +1 -1
- package/dist/esm/components/icon/icons/ChevronsUp.js +4 -5
- package/dist/esm/components/icon/icons/ChevronsUp.js.map +1 -1
- package/dist/esm/components/icon/icons/Chrome.js +4 -5
- package/dist/esm/components/icon/icons/Chrome.js.map +1 -1
- package/dist/esm/components/icon/icons/Circle.js +4 -5
- package/dist/esm/components/icon/icons/Circle.js.map +1 -1
- package/dist/esm/components/icon/icons/CircleSelected.js +4 -5
- package/dist/esm/components/icon/icons/CircleSelected.js.map +1 -1
- package/dist/esm/components/icon/icons/CircleSmall.js +4 -5
- package/dist/esm/components/icon/icons/CircleSmall.js.map +1 -1
- package/dist/esm/components/icon/icons/CircleUnselected.js +4 -5
- package/dist/esm/components/icon/icons/CircleUnselected.js.map +1 -1
- package/dist/esm/components/icon/icons/Clipboard.js +4 -5
- package/dist/esm/components/icon/icons/Clipboard.js.map +1 -1
- package/dist/esm/components/icon/icons/ClockTime.js +4 -5
- package/dist/esm/components/icon/icons/ClockTime.js.map +1 -1
- package/dist/esm/components/icon/icons/Cloud.js +4 -5
- package/dist/esm/components/icon/icons/Cloud.js.map +1 -1
- package/dist/esm/components/icon/icons/CloudDrizzle.js +4 -5
- package/dist/esm/components/icon/icons/CloudDrizzle.js.map +1 -1
- package/dist/esm/components/icon/icons/CloudLightning.js +4 -5
- package/dist/esm/components/icon/icons/CloudLightning.js.map +1 -1
- package/dist/esm/components/icon/icons/CloudOff.js +4 -5
- package/dist/esm/components/icon/icons/CloudOff.js.map +1 -1
- package/dist/esm/components/icon/icons/CloudRain.js +4 -5
- package/dist/esm/components/icon/icons/CloudRain.js.map +1 -1
- package/dist/esm/components/icon/icons/CloudSnow.js +4 -5
- package/dist/esm/components/icon/icons/CloudSnow.js.map +1 -1
- package/dist/esm/components/icon/icons/Code.js +4 -5
- package/dist/esm/components/icon/icons/Code.js.map +1 -1
- package/dist/esm/components/icon/icons/Codepen.js +4 -5
- package/dist/esm/components/icon/icons/Codepen.js.map +1 -1
- package/dist/esm/components/icon/icons/Codesandbox.js +4 -5
- package/dist/esm/components/icon/icons/Codesandbox.js.map +1 -1
- package/dist/esm/components/icon/icons/Coffee.js +4 -5
- package/dist/esm/components/icon/icons/Coffee.js.map +1 -1
- package/dist/esm/components/icon/icons/Columns.js +4 -5
- package/dist/esm/components/icon/icons/Columns.js.map +1 -1
- package/dist/esm/components/icon/icons/Command.js +4 -5
- package/dist/esm/components/icon/icons/Command.js.map +1 -1
- package/dist/esm/components/icon/icons/Compass.js +4 -5
- package/dist/esm/components/icon/icons/Compass.js.map +1 -1
- package/dist/esm/components/icon/icons/Concierge.js +4 -5
- package/dist/esm/components/icon/icons/Concierge.js.map +1 -1
- package/dist/esm/components/icon/icons/Copy.js +4 -5
- package/dist/esm/components/icon/icons/Copy.js.map +1 -1
- package/dist/esm/components/icon/icons/CornerDownLeft.js +4 -5
- package/dist/esm/components/icon/icons/CornerDownLeft.js.map +1 -1
- package/dist/esm/components/icon/icons/CornerDownRight.js +4 -5
- package/dist/esm/components/icon/icons/CornerDownRight.js.map +1 -1
- package/dist/esm/components/icon/icons/CornerLeftDown.js +4 -5
- package/dist/esm/components/icon/icons/CornerLeftDown.js.map +1 -1
- package/dist/esm/components/icon/icons/CornerLeftUp.js +4 -5
- package/dist/esm/components/icon/icons/CornerLeftUp.js.map +1 -1
- package/dist/esm/components/icon/icons/CornerRightDown.js +4 -5
- package/dist/esm/components/icon/icons/CornerRightDown.js.map +1 -1
- package/dist/esm/components/icon/icons/CornerRightUp.js +4 -5
- package/dist/esm/components/icon/icons/CornerRightUp.js.map +1 -1
- package/dist/esm/components/icon/icons/CornerUpLeft.js +4 -5
- package/dist/esm/components/icon/icons/CornerUpLeft.js.map +1 -1
- package/dist/esm/components/icon/icons/CornerUpRight.js +4 -5
- package/dist/esm/components/icon/icons/CornerUpRight.js.map +1 -1
- package/dist/esm/components/icon/icons/Cpu.js +4 -5
- package/dist/esm/components/icon/icons/Cpu.js.map +1 -1
- package/dist/esm/components/icon/icons/CreditCard.js +4 -5
- package/dist/esm/components/icon/icons/CreditCard.js.map +1 -1
- package/dist/esm/components/icon/icons/Crop.js +4 -5
- package/dist/esm/components/icon/icons/Crop.js.map +1 -1
- package/dist/esm/components/icon/icons/Crosshair.js +4 -5
- package/dist/esm/components/icon/icons/Crosshair.js.map +1 -1
- package/dist/esm/components/icon/icons/Database.js +4 -5
- package/dist/esm/components/icon/icons/Database.js.map +1 -1
- package/dist/esm/components/icon/icons/Delete.js +4 -5
- package/dist/esm/components/icon/icons/Delete.js.map +1 -1
- package/dist/esm/components/icon/icons/DentalPlus.js +4 -5
- package/dist/esm/components/icon/icons/DentalPlus.js.map +1 -1
- package/dist/esm/components/icon/icons/DentalToothTeeth.js +4 -5
- package/dist/esm/components/icon/icons/DentalToothTeeth.js.map +1 -1
- package/dist/esm/components/icon/icons/DependentsFamily.js +4 -5
- package/dist/esm/components/icon/icons/DependentsFamily.js.map +1 -1
- package/dist/esm/components/icon/icons/DependentsFamilyAdd.js +4 -5
- package/dist/esm/components/icon/icons/DependentsFamilyAdd.js.map +1 -1
- package/dist/esm/components/icon/icons/Diabetes.js +4 -5
- package/dist/esm/components/icon/icons/Diabetes.js.map +1 -1
- package/dist/esm/components/icon/icons/Disc.js +4 -5
- package/dist/esm/components/icon/icons/Disc.js.map +1 -1
- package/dist/esm/components/icon/icons/Doctor.js +4 -5
- package/dist/esm/components/icon/icons/Doctor.js.map +1 -1
- package/dist/esm/components/icon/icons/DoctorStethoscope.js +4 -5
- package/dist/esm/components/icon/icons/DoctorStethoscope.js.map +1 -1
- package/dist/esm/components/icon/icons/DollarSign.js +4 -5
- package/dist/esm/components/icon/icons/DollarSign.js.map +1 -1
- package/dist/esm/components/icon/icons/Download.js +4 -5
- package/dist/esm/components/icon/icons/Download.js.map +1 -1
- package/dist/esm/components/icon/icons/DownloadCloud.js +4 -5
- package/dist/esm/components/icon/icons/DownloadCloud.js.map +1 -1
- package/dist/esm/components/icon/icons/DragCorner.js +4 -5
- package/dist/esm/components/icon/icons/DragCorner.js.map +1 -1
- package/dist/esm/components/icon/icons/Droplet.js +4 -5
- package/dist/esm/components/icon/icons/Droplet.js.map +1 -1
- package/dist/esm/components/icon/icons/Edit.js +4 -5
- package/dist/esm/components/icon/icons/Edit.js.map +1 -1
- package/dist/esm/components/icon/icons/Edit2.js +4 -5
- package/dist/esm/components/icon/icons/Edit2.js.map +1 -1
- package/dist/esm/components/icon/icons/Edit3.js +4 -5
- package/dist/esm/components/icon/icons/Edit3.js.map +1 -1
- package/dist/esm/components/icon/icons/Equal.js +4 -5
- package/dist/esm/components/icon/icons/Equal.js.map +1 -1
- package/dist/esm/components/icon/icons/Euro.js +4 -5
- package/dist/esm/components/icon/icons/Euro.js.map +1 -1
- package/dist/esm/components/icon/icons/EuroClaim.js +4 -5
- package/dist/esm/components/icon/icons/EuroClaim.js.map +1 -1
- package/dist/esm/components/icon/icons/EuroClaimFilled.js +4 -5
- package/dist/esm/components/icon/icons/EuroClaimFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/ExternalLink.js +4 -5
- package/dist/esm/components/icon/icons/ExternalLink.js.map +1 -1
- package/dist/esm/components/icon/icons/EyeOff.js +4 -5
- package/dist/esm/components/icon/icons/EyeOff.js.map +1 -1
- package/dist/esm/components/icon/icons/EyeVision.js +4 -5
- package/dist/esm/components/icon/icons/EyeVision.js.map +1 -1
- package/dist/esm/components/icon/icons/Facebook.js +4 -5
- package/dist/esm/components/icon/icons/Facebook.js.map +1 -1
- package/dist/esm/components/icon/icons/FastEasy.js +4 -5
- package/dist/esm/components/icon/icons/FastEasy.js.map +1 -1
- package/dist/esm/components/icon/icons/FastForward.js +4 -5
- package/dist/esm/components/icon/icons/FastForward.js.map +1 -1
- package/dist/esm/components/icon/icons/Feather.js +4 -5
- package/dist/esm/components/icon/icons/Feather.js.map +1 -1
- package/dist/esm/components/icon/icons/Female.js +4 -5
- package/dist/esm/components/icon/icons/Female.js.map +1 -1
- package/dist/esm/components/icon/icons/File.js +4 -5
- package/dist/esm/components/icon/icons/File.js.map +1 -1
- package/dist/esm/components/icon/icons/FileMinus.js +4 -5
- package/dist/esm/components/icon/icons/FileMinus.js.map +1 -1
- package/dist/esm/components/icon/icons/FilePlus.js +4 -5
- package/dist/esm/components/icon/icons/FilePlus.js.map +1 -1
- package/dist/esm/components/icon/icons/FileText.js +4 -5
- package/dist/esm/components/icon/icons/FileText.js.map +1 -1
- package/dist/esm/components/icon/icons/Film.js +4 -5
- package/dist/esm/components/icon/icons/Film.js.map +1 -1
- package/dist/esm/components/icon/icons/Filter.js +4 -5
- package/dist/esm/components/icon/icons/Filter.js.map +1 -1
- package/dist/esm/components/icon/icons/Flag.js +4 -5
- package/dist/esm/components/icon/icons/Flag.js.map +1 -1
- package/dist/esm/components/icon/icons/Folder.js +4 -5
- package/dist/esm/components/icon/icons/Folder.js.map +1 -1
- package/dist/esm/components/icon/icons/FolderMinus.js +4 -5
- package/dist/esm/components/icon/icons/FolderMinus.js.map +1 -1
- package/dist/esm/components/icon/icons/FolderPlus.js +4 -5
- package/dist/esm/components/icon/icons/FolderPlus.js.map +1 -1
- package/dist/esm/components/icon/icons/Framer.js +4 -5
- package/dist/esm/components/icon/icons/Framer.js.map +1 -1
- package/dist/esm/components/icon/icons/Frown.js +4 -5
- package/dist/esm/components/icon/icons/Frown.js.map +1 -1
- package/dist/esm/components/icon/icons/Gift.js +4 -5
- package/dist/esm/components/icon/icons/Gift.js.map +1 -1
- package/dist/esm/components/icon/icons/GitBranch.js +4 -5
- package/dist/esm/components/icon/icons/GitBranch.js.map +1 -1
- package/dist/esm/components/icon/icons/GitCommit.js +4 -5
- package/dist/esm/components/icon/icons/GitCommit.js.map +1 -1
- package/dist/esm/components/icon/icons/GitMerge.js +4 -5
- package/dist/esm/components/icon/icons/GitMerge.js.map +1 -1
- package/dist/esm/components/icon/icons/GitPullRequest.js +4 -5
- package/dist/esm/components/icon/icons/GitPullRequest.js.map +1 -1
- package/dist/esm/components/icon/icons/GlobeNetworkEarth.js +4 -5
- package/dist/esm/components/icon/icons/GlobeNetworkEarth.js.map +1 -1
- package/dist/esm/components/icon/icons/Hallesche.js +4 -5
- package/dist/esm/components/icon/icons/Hallesche.js.map +1 -1
- package/dist/esm/components/icon/icons/HandsMassageTherapeutic.js +4 -5
- package/dist/esm/components/icon/icons/HandsMassageTherapeutic.js.map +1 -1
- package/dist/esm/components/icon/icons/HardDrive.js +4 -5
- package/dist/esm/components/icon/icons/HardDrive.js.map +1 -1
- package/dist/esm/components/icon/icons/Hash.js +4 -5
- package/dist/esm/components/icon/icons/Hash.js.map +1 -1
- package/dist/esm/components/icon/icons/Headphones.js +4 -5
- package/dist/esm/components/icon/icons/Headphones.js.map +1 -1
- package/dist/esm/components/icon/icons/Heart.js +5 -6
- package/dist/esm/components/icon/icons/Heart.js.map +1 -1
- package/dist/esm/components/icon/icons/HeartHand.js +4 -5
- package/dist/esm/components/icon/icons/HeartHand.js.map +1 -1
- package/dist/esm/components/icon/icons/HeartPlus.js +4 -5
- package/dist/esm/components/icon/icons/HeartPlus.js.map +1 -1
- package/dist/esm/components/icon/icons/Hexagon.js +4 -5
- package/dist/esm/components/icon/icons/Hexagon.js.map +1 -1
- package/dist/esm/components/icon/icons/Home.js +4 -5
- package/dist/esm/components/icon/icons/Home.js.map +1 -1
- package/dist/esm/components/icon/icons/HospitalBuilding.js +4 -5
- package/dist/esm/components/icon/icons/HospitalBuilding.js.map +1 -1
- package/dist/esm/components/icon/icons/ImagePicture.js +4 -5
- package/dist/esm/components/icon/icons/ImagePicture.js.map +1 -1
- package/dist/esm/components/icon/icons/Inbox.js +4 -5
- package/dist/esm/components/icon/icons/Inbox.js.map +1 -1
- package/dist/esm/components/icon/icons/Info.js +5 -6
- package/dist/esm/components/icon/icons/Info.js.map +1 -1
- package/dist/esm/components/icon/icons/InfoFilled.js +4 -5
- package/dist/esm/components/icon/icons/InfoFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/Instagram.js +4 -5
- package/dist/esm/components/icon/icons/Instagram.js.map +1 -1
- package/dist/esm/components/icon/icons/Italic.js +4 -5
- package/dist/esm/components/icon/icons/Italic.js.map +1 -1
- package/dist/esm/components/icon/icons/Key.js +4 -5
- package/dist/esm/components/icon/icons/Key.js.map +1 -1
- package/dist/esm/components/icon/icons/LawyerLegal.js +4 -5
- package/dist/esm/components/icon/icons/LawyerLegal.js.map +1 -1
- package/dist/esm/components/icon/icons/Layers.js +4 -5
- package/dist/esm/components/icon/icons/Layers.js.map +1 -1
- package/dist/esm/components/icon/icons/Layout.js +4 -5
- package/dist/esm/components/icon/icons/Layout.js.map +1 -1
- package/dist/esm/components/icon/icons/LifeBuoy.js +4 -5
- package/dist/esm/components/icon/icons/LifeBuoy.js.map +1 -1
- package/dist/esm/components/icon/icons/Link.js +4 -5
- package/dist/esm/components/icon/icons/Link.js.map +1 -1
- package/dist/esm/components/icon/icons/Link2.js +4 -5
- package/dist/esm/components/icon/icons/Link2.js.map +1 -1
- package/dist/esm/components/icon/icons/Linkedin.js +4 -5
- package/dist/esm/components/icon/icons/Linkedin.js.map +1 -1
- package/dist/esm/components/icon/icons/List.js +4 -5
- package/dist/esm/components/icon/icons/List.js.map +1 -1
- package/dist/esm/components/icon/icons/Loader.js +4 -5
- package/dist/esm/components/icon/icons/Loader.js.map +1 -1
- package/dist/esm/components/icon/icons/Lock.js +4 -5
- package/dist/esm/components/icon/icons/Lock.js.map +1 -1
- package/dist/esm/components/icon/icons/LogIn.js +4 -5
- package/dist/esm/components/icon/icons/LogIn.js.map +1 -1
- package/dist/esm/components/icon/icons/LogOut.js +4 -5
- package/dist/esm/components/icon/icons/LogOut.js.map +1 -1
- package/dist/esm/components/icon/icons/Mail.js +4 -5
- package/dist/esm/components/icon/icons/Mail.js.map +1 -1
- package/dist/esm/components/icon/icons/Male.js +4 -5
- package/dist/esm/components/icon/icons/Male.js.map +1 -1
- package/dist/esm/components/icon/icons/Map.js +5 -6
- package/dist/esm/components/icon/icons/Map.js.map +1 -1
- package/dist/esm/components/icon/icons/MapPin.js +4 -5
- package/dist/esm/components/icon/icons/MapPin.js.map +1 -1
- package/dist/esm/components/icon/icons/Maximize.js +4 -5
- package/dist/esm/components/icon/icons/Maximize.js.map +1 -1
- package/dist/esm/components/icon/icons/Maximize2.js +4 -5
- package/dist/esm/components/icon/icons/Maximize2.js.map +1 -1
- package/dist/esm/components/icon/icons/MedicationPills.js +4 -5
- package/dist/esm/components/icon/icons/MedicationPills.js.map +1 -1
- package/dist/esm/components/icon/icons/Meh.js +4 -5
- package/dist/esm/components/icon/icons/Meh.js.map +1 -1
- package/dist/esm/components/icon/icons/MentalHealth.js +4 -5
- package/dist/esm/components/icon/icons/MentalHealth.js.map +1 -1
- package/dist/esm/components/icon/icons/Menu.js +4 -5
- package/dist/esm/components/icon/icons/Menu.js.map +1 -1
- package/dist/esm/components/icon/icons/MenuDotsMoreHorizontal.js +4 -5
- package/dist/esm/components/icon/icons/MenuDotsMoreHorizontal.js.map +1 -1
- package/dist/esm/components/icon/icons/MenuDotsMoreVertical.js +4 -5
- package/dist/esm/components/icon/icons/MenuDotsMoreVertical.js.map +1 -1
- package/dist/esm/components/icon/icons/MessageCircle.js +4 -5
- package/dist/esm/components/icon/icons/MessageCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/MessageSquare.js +4 -5
- package/dist/esm/components/icon/icons/MessageSquare.js.map +1 -1
- package/dist/esm/components/icon/icons/Mic.js +4 -5
- package/dist/esm/components/icon/icons/Mic.js.map +1 -1
- package/dist/esm/components/icon/icons/MicOff.js +4 -5
- package/dist/esm/components/icon/icons/MicOff.js.map +1 -1
- package/dist/esm/components/icon/icons/Minimize.js +4 -5
- package/dist/esm/components/icon/icons/Minimize.js.map +1 -1
- package/dist/esm/components/icon/icons/Minimize2.js +4 -5
- package/dist/esm/components/icon/icons/Minimize2.js.map +1 -1
- package/dist/esm/components/icon/icons/Minus.js +4 -5
- package/dist/esm/components/icon/icons/Minus.js.map +1 -1
- package/dist/esm/components/icon/icons/MinusCircle.js +4 -5
- package/dist/esm/components/icon/icons/MinusCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/MinusSquare.js +4 -5
- package/dist/esm/components/icon/icons/MinusSquare.js.map +1 -1
- package/dist/esm/components/icon/icons/MonitorScreen.js +4 -5
- package/dist/esm/components/icon/icons/MonitorScreen.js.map +1 -1
- package/dist/esm/components/icon/icons/MoonNight.js +4 -5
- package/dist/esm/components/icon/icons/MoonNight.js.map +1 -1
- package/dist/esm/components/icon/icons/MousePointer.js +4 -5
- package/dist/esm/components/icon/icons/MousePointer.js.map +1 -1
- package/dist/esm/components/icon/icons/Move.js +4 -5
- package/dist/esm/components/icon/icons/Move.js.map +1 -1
- package/dist/esm/components/icon/icons/Music.js +4 -5
- package/dist/esm/components/icon/icons/Music.js.map +1 -1
- package/dist/esm/components/icon/icons/Natural.js +4 -5
- package/dist/esm/components/icon/icons/Natural.js.map +1 -1
- package/dist/esm/components/icon/icons/Navigation.js +4 -5
- package/dist/esm/components/icon/icons/Navigation.js.map +1 -1
- package/dist/esm/components/icon/icons/Navigation2.js +4 -5
- package/dist/esm/components/icon/icons/Navigation2.js.map +1 -1
- package/dist/esm/components/icon/icons/NoDocument.js +4 -5
- package/dist/esm/components/icon/icons/NoDocument.js.map +1 -1
- package/dist/esm/components/icon/icons/Octagon.js +4 -5
- package/dist/esm/components/icon/icons/Octagon.js.map +1 -1
- package/dist/esm/components/icon/icons/Package.js +4 -5
- package/dist/esm/components/icon/icons/Package.js.map +1 -1
- package/dist/esm/components/icon/icons/Paperclip.js +4 -5
- package/dist/esm/components/icon/icons/Paperclip.js.map +1 -1
- package/dist/esm/components/icon/icons/Pause.js +4 -5
- package/dist/esm/components/icon/icons/Pause.js.map +1 -1
- package/dist/esm/components/icon/icons/PauseCircle.js +4 -5
- package/dist/esm/components/icon/icons/PauseCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/PenTool.js +4 -5
- package/dist/esm/components/icon/icons/PenTool.js.map +1 -1
- package/dist/esm/components/icon/icons/Percent.js +4 -5
- package/dist/esm/components/icon/icons/Percent.js.map +1 -1
- package/dist/esm/components/icon/icons/Phone.js +4 -5
- package/dist/esm/components/icon/icons/Phone.js.map +1 -1
- package/dist/esm/components/icon/icons/PhoneCall.js +4 -5
- package/dist/esm/components/icon/icons/PhoneCall.js.map +1 -1
- package/dist/esm/components/icon/icons/PhoneForwarded.js +4 -5
- package/dist/esm/components/icon/icons/PhoneForwarded.js.map +1 -1
- package/dist/esm/components/icon/icons/PhoneHealth.js +4 -5
- package/dist/esm/components/icon/icons/PhoneHealth.js.map +1 -1
- package/dist/esm/components/icon/icons/PhoneIncoming.js +4 -5
- package/dist/esm/components/icon/icons/PhoneIncoming.js.map +1 -1
- package/dist/esm/components/icon/icons/PhoneMissed.js +4 -5
- package/dist/esm/components/icon/icons/PhoneMissed.js.map +1 -1
- package/dist/esm/components/icon/icons/PhoneOff.js +4 -5
- package/dist/esm/components/icon/icons/PhoneOff.js.map +1 -1
- package/dist/esm/components/icon/icons/PhoneOutgoing.js +4 -5
- package/dist/esm/components/icon/icons/PhoneOutgoing.js.map +1 -1
- package/dist/esm/components/icon/icons/PieChart.js +4 -5
- package/dist/esm/components/icon/icons/PieChart.js.map +1 -1
- package/dist/esm/components/icon/icons/Plane.js +4 -5
- package/dist/esm/components/icon/icons/Plane.js.map +1 -1
- package/dist/esm/components/icon/icons/PlaneFilled.js +4 -5
- package/dist/esm/components/icon/icons/PlaneFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/PlaneRepatriation.js +4 -5
- package/dist/esm/components/icon/icons/PlaneRepatriation.js.map +1 -1
- package/dist/esm/components/icon/icons/PlaneRepatriationFilled.js +4 -5
- package/dist/esm/components/icon/icons/PlaneRepatriationFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/Play.js +4 -5
- package/dist/esm/components/icon/icons/Play.js.map +1 -1
- package/dist/esm/components/icon/icons/PlayCircle.js +4 -5
- package/dist/esm/components/icon/icons/PlayCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/Plus.js +4 -5
- package/dist/esm/components/icon/icons/Plus.js.map +1 -1
- package/dist/esm/components/icon/icons/PlusCircle.js +4 -5
- package/dist/esm/components/icon/icons/PlusCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/PlusSquare.js +4 -5
- package/dist/esm/components/icon/icons/PlusSquare.js.map +1 -1
- package/dist/esm/components/icon/icons/Pocket.js +4 -5
- package/dist/esm/components/icon/icons/Pocket.js.map +1 -1
- package/dist/esm/components/icon/icons/PoliciesShield.js +4 -5
- package/dist/esm/components/icon/icons/PoliciesShield.js.map +1 -1
- package/dist/esm/components/icon/icons/PoliciesShieldFilled.js +4 -5
- package/dist/esm/components/icon/icons/PoliciesShieldFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/Power.js +4 -5
- package/dist/esm/components/icon/icons/Power.js.map +1 -1
- package/dist/esm/components/icon/icons/Pregnacy.js +4 -5
- package/dist/esm/components/icon/icons/Pregnacy.js.map +1 -1
- package/dist/esm/components/icon/icons/Printer.js +4 -5
- package/dist/esm/components/icon/icons/Printer.js.map +1 -1
- package/dist/esm/components/icon/icons/Progress.js +4 -5
- package/dist/esm/components/icon/icons/Progress.js.map +1 -1
- package/dist/esm/components/icon/icons/QrCode.js +4 -5
- package/dist/esm/components/icon/icons/QrCode.js.map +1 -1
- package/dist/esm/components/icon/icons/QuestionmarkHelpCircle.js +4 -5
- package/dist/esm/components/icon/icons/QuestionmarkHelpCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/QuotationMarks.js +4 -5
- package/dist/esm/components/icon/icons/QuotationMarks.js.map +1 -1
- package/dist/esm/components/icon/icons/Radio.js +4 -5
- package/dist/esm/components/icon/icons/Radio.js.map +1 -1
- package/dist/esm/components/icon/icons/RefreshCcw.js +4 -5
- package/dist/esm/components/icon/icons/RefreshCcw.js.map +1 -1
- package/dist/esm/components/icon/icons/RefreshCw.js +4 -5
- package/dist/esm/components/icon/icons/RefreshCw.js.map +1 -1
- package/dist/esm/components/icon/icons/Repeat.js +4 -5
- package/dist/esm/components/icon/icons/Repeat.js.map +1 -1
- package/dist/esm/components/icon/icons/Restart.js +4 -5
- package/dist/esm/components/icon/icons/Restart.js.map +1 -1
- package/dist/esm/components/icon/icons/Rewind.js +4 -5
- package/dist/esm/components/icon/icons/Rewind.js.map +1 -1
- package/dist/esm/components/icon/icons/RotateCcw.js +4 -5
- package/dist/esm/components/icon/icons/RotateCcw.js.map +1 -1
- package/dist/esm/components/icon/icons/RotateCw.js +4 -5
- package/dist/esm/components/icon/icons/RotateCw.js.map +1 -1
- package/dist/esm/components/icon/icons/Rss.js +4 -5
- package/dist/esm/components/icon/icons/Rss.js.map +1 -1
- package/dist/esm/components/icon/icons/Save.js +4 -5
- package/dist/esm/components/icon/icons/Save.js.map +1 -1
- package/dist/esm/components/icon/icons/Scissors.js +4 -5
- package/dist/esm/components/icon/icons/Scissors.js.map +1 -1
- package/dist/esm/components/icon/icons/Search.js +4 -5
- package/dist/esm/components/icon/icons/Search.js.map +1 -1
- package/dist/esm/components/icon/icons/Send.js +4 -5
- package/dist/esm/components/icon/icons/Send.js.map +1 -1
- package/dist/esm/components/icon/icons/Server.js +4 -5
- package/dist/esm/components/icon/icons/Server.js.map +1 -1
- package/dist/esm/components/icon/icons/Settings.js +4 -5
- package/dist/esm/components/icon/icons/Settings.js.map +1 -1
- package/dist/esm/components/icon/icons/Share.js +4 -5
- package/dist/esm/components/icon/icons/Share.js.map +1 -1
- package/dist/esm/components/icon/icons/Share2.js +4 -5
- package/dist/esm/components/icon/icons/Share2.js.map +1 -1
- package/dist/esm/components/icon/icons/Shield.js +4 -5
- package/dist/esm/components/icon/icons/Shield.js.map +1 -1
- package/dist/esm/components/icon/icons/ShieldCover5Years.js +4 -5
- package/dist/esm/components/icon/icons/ShieldCover5Years.js.map +1 -1
- package/dist/esm/components/icon/icons/ShieldOff.js +4 -5
- package/dist/esm/components/icon/icons/ShieldOff.js.map +1 -1
- package/dist/esm/components/icon/icons/ShieldPlus.js +4 -5
- package/dist/esm/components/icon/icons/ShieldPlus.js.map +1 -1
- package/dist/esm/components/icon/icons/ShoppingBag.js +4 -5
- package/dist/esm/components/icon/icons/ShoppingBag.js.map +1 -1
- package/dist/esm/components/icon/icons/ShoppingBag2.js +4 -5
- package/dist/esm/components/icon/icons/ShoppingBag2.js.map +1 -1
- package/dist/esm/components/icon/icons/ShoppingCart.js +4 -5
- package/dist/esm/components/icon/icons/ShoppingCart.js.map +1 -1
- package/dist/esm/components/icon/icons/Shuffle.js +4 -5
- package/dist/esm/components/icon/icons/Shuffle.js.map +1 -1
- package/dist/esm/components/icon/icons/Sidebar.js +4 -5
- package/dist/esm/components/icon/icons/Sidebar.js.map +1 -1
- package/dist/esm/components/icon/icons/SkipBack.js +4 -5
- package/dist/esm/components/icon/icons/SkipBack.js.map +1 -1
- package/dist/esm/components/icon/icons/SkipForward.js +4 -5
- package/dist/esm/components/icon/icons/SkipForward.js.map +1 -1
- package/dist/esm/components/icon/icons/Slack.js +4 -5
- package/dist/esm/components/icon/icons/Slack.js.map +1 -1
- package/dist/esm/components/icon/icons/Slash.js +4 -5
- package/dist/esm/components/icon/icons/Slash.js.map +1 -1
- package/dist/esm/components/icon/icons/Sliders.js +4 -5
- package/dist/esm/components/icon/icons/Sliders.js.map +1 -1
- package/dist/esm/components/icon/icons/Smartphone.js +4 -5
- package/dist/esm/components/icon/icons/Smartphone.js.map +1 -1
- package/dist/esm/components/icon/icons/Smile.js +4 -5
- package/dist/esm/components/icon/icons/Smile.js.map +1 -1
- package/dist/esm/components/icon/icons/Sofa.js +4 -5
- package/dist/esm/components/icon/icons/Sofa.js.map +1 -1
- package/dist/esm/components/icon/icons/Speaker.js +4 -5
- package/dist/esm/components/icon/icons/Speaker.js.map +1 -1
- package/dist/esm/components/icon/icons/Square.js +4 -5
- package/dist/esm/components/icon/icons/Square.js.map +1 -1
- package/dist/esm/components/icon/icons/Star.js +5 -6
- package/dist/esm/components/icon/icons/Star.js.map +1 -1
- package/dist/esm/components/icon/icons/StarFilled.js +4 -5
- package/dist/esm/components/icon/icons/StarFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/StarHalf.js +4 -5
- package/dist/esm/components/icon/icons/StarHalf.js.map +1 -1
- package/dist/esm/components/icon/icons/StopCircle.js +4 -5
- package/dist/esm/components/icon/icons/StopCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/Subtract.js +4 -5
- package/dist/esm/components/icon/icons/Subtract.js.map +1 -1
- package/dist/esm/components/icon/icons/SunDay.js +4 -5
- package/dist/esm/components/icon/icons/SunDay.js.map +1 -1
- package/dist/esm/components/icon/icons/Sunrise.js +4 -5
- package/dist/esm/components/icon/icons/Sunrise.js.map +1 -1
- package/dist/esm/components/icon/icons/Sunset.js +4 -5
- package/dist/esm/components/icon/icons/Sunset.js.map +1 -1
- package/dist/esm/components/icon/icons/SyringeVaccination.js +4 -5
- package/dist/esm/components/icon/icons/SyringeVaccination.js.map +1 -1
- package/dist/esm/components/icon/icons/Tablet.js +4 -5
- package/dist/esm/components/icon/icons/Tablet.js.map +1 -1
- package/dist/esm/components/icon/icons/Tag.js +4 -5
- package/dist/esm/components/icon/icons/Tag.js.map +1 -1
- package/dist/esm/components/icon/icons/Target.js +4 -5
- package/dist/esm/components/icon/icons/Target.js.map +1 -1
- package/dist/esm/components/icon/icons/Terminal.js +4 -5
- package/dist/esm/components/icon/icons/Terminal.js.map +1 -1
- package/dist/esm/components/icon/icons/Thermometer.js +4 -5
- package/dist/esm/components/icon/icons/Thermometer.js.map +1 -1
- package/dist/esm/components/icon/icons/ThumbsDown.js +4 -5
- package/dist/esm/components/icon/icons/ThumbsDown.js.map +1 -1
- package/dist/esm/components/icon/icons/ThumbsUp.js +4 -5
- package/dist/esm/components/icon/icons/ThumbsUp.js.map +1 -1
- package/dist/esm/components/icon/icons/ToggleLeft.js +4 -5
- package/dist/esm/components/icon/icons/ToggleLeft.js.map +1 -1
- package/dist/esm/components/icon/icons/ToggleRight.js +4 -5
- package/dist/esm/components/icon/icons/ToggleRight.js.map +1 -1
- package/dist/esm/components/icon/icons/Tool.js +4 -5
- package/dist/esm/components/icon/icons/Tool.js.map +1 -1
- package/dist/esm/components/icon/icons/Trash.js +4 -5
- package/dist/esm/components/icon/icons/Trash.js.map +1 -1
- package/dist/esm/components/icon/icons/Trash2.js +4 -5
- package/dist/esm/components/icon/icons/Trash2.js.map +1 -1
- package/dist/esm/components/icon/icons/Trello.js +4 -5
- package/dist/esm/components/icon/icons/Trello.js.map +1 -1
- package/dist/esm/components/icon/icons/TrendingDown.js +4 -5
- package/dist/esm/components/icon/icons/TrendingDown.js.map +1 -1
- package/dist/esm/components/icon/icons/TrendingUp.js +4 -5
- package/dist/esm/components/icon/icons/TrendingUp.js.map +1 -1
- package/dist/esm/components/icon/icons/Triangle.js +4 -5
- package/dist/esm/components/icon/icons/Triangle.js.map +1 -1
- package/dist/esm/components/icon/icons/Truck.js +4 -5
- package/dist/esm/components/icon/icons/Truck.js.map +1 -1
- package/dist/esm/components/icon/icons/Tv.js +4 -5
- package/dist/esm/components/icon/icons/Tv.js.map +1 -1
- package/dist/esm/components/icon/icons/Twitch.js +4 -5
- package/dist/esm/components/icon/icons/Twitch.js.map +1 -1
- package/dist/esm/components/icon/icons/Twitter.js +4 -5
- package/dist/esm/components/icon/icons/Twitter.js.map +1 -1
- package/dist/esm/components/icon/icons/Type.js +4 -5
- package/dist/esm/components/icon/icons/Type.js.map +1 -1
- package/dist/esm/components/icon/icons/UltrasoundScan.js +4 -5
- package/dist/esm/components/icon/icons/UltrasoundScan.js.map +1 -1
- package/dist/esm/components/icon/icons/Umbrella.js +4 -5
- package/dist/esm/components/icon/icons/Umbrella.js.map +1 -1
- package/dist/esm/components/icon/icons/Underline.js +4 -5
- package/dist/esm/components/icon/icons/Underline.js.map +1 -1
- package/dist/esm/components/icon/icons/Unlock.js +4 -5
- package/dist/esm/components/icon/icons/Unlock.js.map +1 -1
- package/dist/esm/components/icon/icons/Upload.js +4 -5
- package/dist/esm/components/icon/icons/Upload.js.map +1 -1
- package/dist/esm/components/icon/icons/UploadCloud.js +4 -5
- package/dist/esm/components/icon/icons/UploadCloud.js.map +1 -1
- package/dist/esm/components/icon/icons/User.js +4 -5
- package/dist/esm/components/icon/icons/User.js.map +1 -1
- package/dist/esm/components/icon/icons/UserCheck.js +4 -5
- package/dist/esm/components/icon/icons/UserCheck.js.map +1 -1
- package/dist/esm/components/icon/icons/UserFilled.js +4 -5
- package/dist/esm/components/icon/icons/UserFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/UserMinus.js +4 -5
- package/dist/esm/components/icon/icons/UserMinus.js.map +1 -1
- package/dist/esm/components/icon/icons/UserPlus.js +4 -5
- package/dist/esm/components/icon/icons/UserPlus.js.map +1 -1
- package/dist/esm/components/icon/icons/UserX.js +4 -5
- package/dist/esm/components/icon/icons/UserX.js.map +1 -1
- package/dist/esm/components/icon/icons/Users.js +4 -5
- package/dist/esm/components/icon/icons/Users.js.map +1 -1
- package/dist/esm/components/icon/icons/Video.js +4 -5
- package/dist/esm/components/icon/icons/Video.js.map +1 -1
- package/dist/esm/components/icon/icons/VideoDoctor.js +4 -5
- package/dist/esm/components/icon/icons/VideoDoctor.js.map +1 -1
- package/dist/esm/components/icon/icons/VideoOff.js +4 -5
- package/dist/esm/components/icon/icons/VideoOff.js.map +1 -1
- package/dist/esm/components/icon/icons/VisaPassport.js +4 -5
- package/dist/esm/components/icon/icons/VisaPassport.js.map +1 -1
- package/dist/esm/components/icon/icons/VisaPassportFiled.js +4 -5
- package/dist/esm/components/icon/icons/VisaPassportFiled.js.map +1 -1
- package/dist/esm/components/icon/icons/Voicemail.js +4 -5
- package/dist/esm/components/icon/icons/Voicemail.js.map +1 -1
- package/dist/esm/components/icon/icons/Volume.js +4 -5
- package/dist/esm/components/icon/icons/Volume.js.map +1 -1
- package/dist/esm/components/icon/icons/Volume1.js +4 -5
- package/dist/esm/components/icon/icons/Volume1.js.map +1 -1
- package/dist/esm/components/icon/icons/Volume2.js +4 -5
- package/dist/esm/components/icon/icons/Volume2.js.map +1 -1
- package/dist/esm/components/icon/icons/VolumeX.js +4 -5
- package/dist/esm/components/icon/icons/VolumeX.js.map +1 -1
- package/dist/esm/components/icon/icons/Watch.js +4 -5
- package/dist/esm/components/icon/icons/Watch.js.map +1 -1
- package/dist/esm/components/icon/icons/Whatsapp.js +4 -5
- package/dist/esm/components/icon/icons/Whatsapp.js.map +1 -1
- package/dist/esm/components/icon/icons/Wifi.js +4 -5
- package/dist/esm/components/icon/icons/Wifi.js.map +1 -1
- package/dist/esm/components/icon/icons/WifiOff.js +4 -5
- package/dist/esm/components/icon/icons/WifiOff.js.map +1 -1
- package/dist/esm/components/icon/icons/Wind.js +4 -5
- package/dist/esm/components/icon/icons/Wind.js.map +1 -1
- package/dist/esm/components/icon/icons/WorldGlobeEarth.js +4 -5
- package/dist/esm/components/icon/icons/WorldGlobeEarth.js.map +1 -1
- package/dist/esm/components/icon/icons/X.js +4 -5
- package/dist/esm/components/icon/icons/X.js.map +1 -1
- package/dist/esm/components/icon/icons/XCircle.js +4 -5
- package/dist/esm/components/icon/icons/XCircle.js.map +1 -1
- package/dist/esm/components/icon/icons/XCircleFilled.js +4 -5
- package/dist/esm/components/icon/icons/XCircleFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/XOctagon.js +4 -5
- package/dist/esm/components/icon/icons/XOctagon.js.map +1 -1
- package/dist/esm/components/icon/icons/XSquare.js +4 -5
- package/dist/esm/components/icon/icons/XSquare.js.map +1 -1
- package/dist/esm/components/icon/icons/Youtube.js +4 -5
- package/dist/esm/components/icon/icons/Youtube.js.map +1 -1
- package/dist/esm/components/icon/icons/Zap.js +4 -5
- package/dist/esm/components/icon/icons/Zap.js.map +1 -1
- package/dist/esm/components/icon/icons/ZapFilled.js +4 -5
- package/dist/esm/components/icon/icons/ZapFilled.js.map +1 -1
- package/dist/esm/components/icon/icons/ZapOff.js +4 -5
- package/dist/esm/components/icon/icons/ZapOff.js.map +1 -1
- package/dist/esm/components/icon/icons/ZoomIn.js +4 -5
- package/dist/esm/components/icon/icons/ZoomIn.js.map +1 -1
- package/dist/esm/components/icon/icons/ZoomOut.js +4 -5
- package/dist/esm/components/icon/icons/ZoomOut.js.map +1 -1
- package/dist/esm/components/icon/icons.stories.js +12 -37
- package/dist/esm/components/icon/icons.stories.js.map +1 -1
- package/dist/esm/components/icon/index.stories.js +17 -45
- package/dist/esm/components/icon/index.stories.js.map +1 -1
- package/dist/esm/components/informationBox/index.js +6 -7
- package/dist/esm/components/informationBox/index.js.map +1 -1
- package/dist/esm/components/informationBox/index.stories.js +11 -13
- package/dist/esm/components/informationBox/index.stories.js.map +1 -1
- package/dist/esm/components/informationBox/index.test.js +5 -6
- package/dist/esm/components/informationBox/index.test.js.map +1 -1
- package/dist/esm/components/input/autoSuggestInput/index.js +3120 -11
- package/dist/esm/components/input/autoSuggestInput/index.js.map +1 -1
- package/dist/esm/components/input/autoSuggestInput/index.stories.js +39 -43
- package/dist/esm/components/input/autoSuggestInput/index.stories.js.map +1 -1
- package/dist/esm/components/input/autoSuggestMultiSelect/index.js +5 -8
- package/dist/esm/components/input/autoSuggestMultiSelect/index.js.map +1 -1
- package/dist/esm/components/input/autoSuggestMultiSelect/index.stories.js +23 -27
- package/dist/esm/components/input/autoSuggestMultiSelect/index.stories.js.map +1 -1
- package/dist/esm/components/input/checkbox/index.js +18 -22
- package/dist/esm/components/input/checkbox/index.js.map +1 -1
- package/dist/esm/components/input/checkbox/index.stories.js +98 -114
- package/dist/esm/components/input/checkbox/index.stories.js.map +1 -1
- package/dist/esm/components/input/checkbox/index.test.js +8 -9
- package/dist/esm/components/input/checkbox/index.test.js.map +1 -1
- package/dist/esm/components/input/currency/index.js +4 -5
- package/dist/esm/components/input/currency/index.js.map +1 -1
- package/dist/esm/components/input/currency/index.test.js +6 -7
- package/dist/esm/components/input/currency/index.test.js.map +1 -1
- package/dist/esm/components/input/currency/input.stories.js +17 -19
- package/dist/esm/components/input/currency/input.stories.js.map +1 -1
- package/dist/esm/components/input/iban/index.js +5 -6
- package/dist/esm/components/input/iban/index.js.map +1 -1
- package/dist/esm/components/input/index.js +12 -15
- package/dist/esm/components/input/index.js.map +1 -1
- package/dist/esm/components/input/input.stories.js +17 -19
- package/dist/esm/components/input/input.stories.js.map +1 -1
- package/dist/esm/components/input/radio/index.js +22 -25
- package/dist/esm/components/input/radio/index.js.map +1 -1
- package/dist/esm/components/input/radio/index.stories.js +114 -138
- package/dist/esm/components/input/radio/index.stories.js.map +1 -1
- package/dist/esm/components/input/radio/index.test.js +6 -8
- package/dist/esm/components/input/radio/index.test.js.map +1 -1
- package/dist/esm/components/input/toggle/index.js +5 -6
- package/dist/esm/components/input/toggle/index.js.map +1 -1
- package/dist/esm/components/input/toggle/index.stories.js +83 -95
- package/dist/esm/components/input/toggle/index.stories.js.map +1 -1
- package/dist/esm/components/input/toggle/index.test.js +9 -10
- package/dist/esm/components/input/toggle/index.test.js.map +1 -1
- package/dist/esm/components/link/index.js +2 -3
- package/dist/esm/components/link/index.js.map +1 -1
- package/dist/esm/components/link/index.stories.js +8 -10
- package/dist/esm/components/link/index.stories.js.map +1 -1
- package/dist/esm/components/modal/bottomModal/index.js +12 -11
- package/dist/esm/components/modal/bottomModal/index.js.map +1 -1
- package/dist/esm/components/modal/bottomOrRegularModal/index.js +4 -7
- package/dist/esm/components/modal/bottomOrRegularModal/index.js.map +1 -1
- package/dist/esm/components/modal/genericModal/index.js +22 -1787
- package/dist/esm/components/modal/genericModal/index.js.map +1 -1
- package/dist/esm/components/modal/index.stories.js +65 -122
- package/dist/esm/components/modal/index.stories.js.map +1 -1
- package/dist/esm/components/modal/regularModal/index.js +12 -12
- package/dist/esm/components/modal/regularModal/index.js.map +1 -1
- package/dist/esm/components/multiDropzone/UploadFileCell/index.js +14 -14
- package/dist/esm/components/multiDropzone/UploadFileCell/index.js.map +1 -1
- package/dist/esm/components/multiDropzone/index.js +1484 -1053
- package/dist/esm/components/multiDropzone/index.js.map +1 -1
- package/dist/esm/components/multiDropzone/index.stories.js +31 -278
- package/dist/esm/components/multiDropzone/index.stories.js.map +1 -1
- package/dist/esm/components/multiDropzone/index.test.js +12 -14
- package/dist/esm/components/multiDropzone/index.test.js.map +1 -1
- package/dist/esm/components/segmentedControl/index.js +6 -6
- package/dist/esm/components/segmentedControl/index.js.map +1 -1
- package/dist/esm/components/segmentedControl/index.stories.js +25 -28
- package/dist/esm/components/segmentedControl/index.stories.js.map +1 -1
- package/dist/esm/components/segmentedControl/index.test.js +4 -5
- package/dist/esm/components/segmentedControl/index.test.js.map +1 -1
- package/dist/esm/components/signaturePad/index.js +9 -9
- package/dist/esm/components/signaturePad/index.js.map +1 -1
- package/dist/esm/components/signaturePad/index.stories.js +12 -13
- package/dist/esm/components/signaturePad/index.stories.js.map +1 -1
- package/dist/esm/components/spinner/index.js +2 -3
- package/dist/esm/components/spinner/index.js.map +1 -1
- package/dist/esm/components/spinner/index.stories.js +9 -11
- package/dist/esm/components/spinner/index.stories.js.map +1 -1
- package/dist/esm/components/spinner/index.test.js +4 -5
- package/dist/esm/components/spinner/index.test.js.map +1 -1
- package/dist/esm/components/table/Table.js +39 -52
- package/dist/esm/components/table/Table.js.map +1 -1
- package/dist/esm/components/table/Table.stories.js +49 -95
- package/dist/esm/components/table/Table.stories.js.map +1 -1
- package/dist/esm/components/table/Table.test.js +20 -35
- package/dist/esm/components/table/Table.test.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js +19 -19
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.stories.js +13 -16
- package/dist/esm/components/table/components/TableCell/BaseCell/BaseCell.stories.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.js +3 -4
- package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.stories.js +8 -10
- package/dist/esm/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.stories.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js +7 -8
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.stories.js +9 -11
- package/dist/esm/components/table/components/TableCell/ButtonCell/ButtonCell.stories.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js +7 -18
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.stories.js +10 -14
- package/dist/esm/components/table/components/TableCell/CTACell/CTACell.stories.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/TableCell.js +17 -24
- package/dist/esm/components/table/components/TableCell/TableCell.js.map +1 -1
- package/dist/esm/components/table/components/TableCell/TableCell.test.js +9 -16
- package/dist/esm/components/table/components/TableCell/TableCell.test.js.map +1 -1
- package/dist/esm/components/table/components/TableContents/Collapsible.js +5 -46
- package/dist/esm/components/table/components/TableContents/Collapsible.js.map +1 -1
- package/dist/esm/components/table/components/TableContents/TableContents.js +20 -35
- package/dist/esm/components/table/components/TableContents/TableContents.js.map +1 -1
- package/dist/esm/components/table/components/TableContents/TableContents.test.js +34 -19
- package/dist/esm/components/table/components/TableContents/TableContents.test.js.map +1 -1
- package/dist/esm/components/table/components/TableControls/TableControls.js +7 -9
- package/dist/esm/components/table/components/TableControls/TableControls.js.map +1 -1
- package/dist/esm/components/table/components/TableControls/TableControls.test.js +5 -6
- package/dist/esm/components/table/components/TableControls/TableControls.test.js.map +1 -1
- package/dist/esm/components/table/components/TableSection/TableSection.js +10 -17
- package/dist/esm/components/table/components/TableSection/TableSection.js.map +1 -1
- package/dist/esm/components/table/components/TableSection/TableSection.test.js +10 -18
- package/dist/esm/components/table/components/TableSection/TableSection.test.js.map +1 -1
- package/dist/esm/components/table/utils/useScrollSync/useScrollSync.test.js +13 -12
- package/dist/esm/components/table/utils/useScrollSync/useScrollSync.test.js.map +1 -1
- package/dist/esm/components/table/utils/useTableNavigation/useTableNavigation.test.js +10 -10
- package/dist/esm/components/table/utils/useTableNavigation/useTableNavigation.test.js.map +1 -1
- package/dist/esm/components/toast/index.js +6 -7
- package/dist/esm/components/toast/index.js.map +1 -1
- package/dist/esm/components/toast/index.stories.js +29 -37
- package/dist/esm/components/toast/index.stories.js.map +1 -1
- package/dist/esm/components/toast/index.test.js +6 -8
- package/dist/esm/components/toast/index.test.js.map +1 -1
- package/dist/esm/{config-PagIydiG.js → config-4b5ffe4f.js} +5 -6
- package/dist/esm/config-4b5ffe4f.js.map +1 -0
- package/dist/esm/customRender-d03c10b6.js +26463 -0
- package/dist/esm/customRender-d03c10b6.js.map +1 -0
- package/dist/esm/{feather-logo-C_EfYEK5.js → feather-logo-a3f07990.js} +1 -1
- package/dist/esm/{feather-logo-C_EfYEK5.js.map → feather-logo-a3f07990.js.map} +1 -1
- package/dist/esm/{index-C4hs4X-e.js → index-29e6f39e.js} +2 -2
- package/dist/esm/index-29e6f39e.js.map +1 -0
- package/dist/esm/index-3aa7e697.js +224 -0
- package/dist/esm/index-3aa7e697.js.map +1 -0
- package/dist/esm/index-5e72c3d4.js +382 -0
- package/dist/esm/{index-BClARCFl.js.map → index-5e72c3d4.js.map} +1 -1
- package/dist/esm/{index-CNcEE5dn.js → index-69a46657.js} +1 -1
- package/dist/esm/index-69a46657.js.map +1 -0
- package/dist/esm/index-6ea95111.js +62 -0
- package/dist/esm/{index-DLQEsiym.js.map → index-6ea95111.js.map} +1 -1
- package/dist/esm/index-6f567b0b.js +7856 -0
- package/dist/esm/index-6f567b0b.js.map +1 -0
- package/dist/esm/{index-sVpmwnLl.js → index-7506ae25.js} +47 -99
- package/dist/esm/{index-sVpmwnLl.js.map → index-7506ae25.js.map} +1 -1
- package/dist/esm/{index-DYcCCrfR.js → index-a0ef2ab4.js} +5 -5
- package/dist/esm/{index-DYcCCrfR.js.map → index-a0ef2ab4.js.map} +1 -1
- package/dist/esm/index-c9a8ee2a.js +234 -0
- package/dist/esm/{index-CVgMNqD7.js.map → index-c9a8ee2a.js.map} +1 -1
- package/dist/esm/index-caeac7cd.js +1529 -0
- package/dist/esm/{index-CqsS0Elu.js.map → index-caeac7cd.js.map} +1 -1
- package/dist/esm/index-dd80248b.js +91 -0
- package/dist/esm/index-dd80248b.js.map +1 -0
- package/dist/esm/index.d.ts +2 -2
- package/dist/esm/index.js +22 -94
- package/dist/esm/index.js.map +1 -1
- package/dist/esm/lib/components/accordion/index.d.ts +1 -2
- package/dist/esm/lib/components/accordion/index.stories.d.ts +3 -7
- package/dist/esm/lib/components/autocompleteAddress/index.d.ts +2 -3
- package/dist/esm/lib/components/autocompleteAddress/index.stories.d.ts +6 -12
- package/dist/esm/lib/components/autocompleteAddress/util/index.d.ts +1 -1
- package/dist/esm/lib/components/badge/index.d.ts +3 -4
- package/dist/esm/lib/components/badge/index.stories.d.ts +3 -9
- package/dist/esm/lib/components/button/index.d.ts +9 -13
- package/dist/esm/lib/components/button/index.stories.d.ts +63 -0
- package/dist/esm/lib/components/cards/card/index.d.ts +2 -6
- package/dist/esm/lib/components/cards/card/index.stories.d.ts +6 -16
- package/dist/esm/lib/components/cards/cardButton/index.stories.d.ts +2 -2
- package/dist/esm/lib/components/cards/infoCard/index.d.ts +7 -9
- package/dist/esm/lib/components/cards/infoCard/index.stories.d.ts +18 -24
- package/dist/esm/lib/components/chip/index.stories.d.ts +2 -2
- package/dist/esm/lib/components/comparisonTable/components/AccordionItem/AccordionItem.d.ts +4 -1
- package/dist/esm/lib/components/comparisonTable/index.stories.d.ts +2 -2
- package/dist/esm/lib/components/dateSelector/index.d.ts +1 -1
- package/dist/esm/lib/components/dateSelector/index.stories.d.ts +3 -5
- package/dist/esm/lib/components/downloadButton/index.stories.d.ts +3 -5
- package/dist/esm/lib/components/icon/icons/index.d.ts +0 -26
- package/dist/esm/lib/components/icon/index.stories.d.ts +4 -4
- package/dist/esm/lib/components/informationBox/index.stories.d.ts +2 -2
- package/dist/esm/lib/components/input/autoSuggestInput/index.stories.d.ts +2 -2
- package/dist/esm/lib/components/input/autoSuggestMultiSelect/index.stories.d.ts +2 -2
- package/dist/esm/lib/components/input/checkbox/index.d.ts +1 -2
- package/dist/esm/lib/components/input/checkbox/index.stories.d.ts +8 -22
- package/dist/esm/lib/components/input/currency/input.stories.d.ts +2 -3
- package/dist/esm/lib/components/input/input.stories.d.ts +2 -3
- package/dist/esm/lib/components/input/radio/index.d.ts +1 -3
- package/dist/esm/lib/components/input/radio/index.stories.d.ts +10 -32
- package/dist/esm/lib/components/input/stories/config.d.ts +0 -1
- package/dist/esm/lib/components/input/toggle/index.stories.d.ts +7 -17
- package/dist/esm/lib/components/link/index.stories.d.ts +2 -2
- package/dist/esm/lib/components/modal/bottomModal/index.d.ts +1 -1
- package/dist/esm/lib/components/modal/genericModal/index.d.ts +15 -17
- package/dist/esm/lib/components/modal/hooks/useOnClose.d.ts +1 -1
- package/dist/esm/lib/components/modal/index.d.ts +1 -6
- package/dist/esm/lib/components/modal/index.stories.d.ts +9 -49
- package/dist/esm/lib/components/modal/regularModal/index.d.ts +1 -1
- package/dist/esm/lib/components/multiDropzone/index.stories.d.ts +2 -11
- package/dist/esm/lib/components/multiDropzone/types.d.ts +2 -3
- package/dist/esm/lib/components/multiDropzone/utils/index.d.ts +2 -9
- package/dist/esm/lib/components/segmentedControl/index.stories.d.ts +3 -5
- package/dist/esm/lib/components/signaturePad/index.stories.d.ts +2 -2
- package/dist/esm/lib/components/spinner/index.stories.d.ts +2 -2
- package/dist/esm/lib/components/table/Table.d.ts +3 -10
- package/dist/esm/lib/components/table/Table.stories.d.ts +4 -15
- package/dist/esm/lib/components/table/components/TableCell/BaseCell/BaseCell.d.ts +3 -5
- package/dist/esm/lib/components/table/components/TableCell/BaseCell/BaseCell.stories.d.ts +3 -3
- package/dist/esm/lib/components/table/components/TableCell/BaseCell/MiniProgressBar/MiniProgressBar.stories.d.ts +2 -2
- package/dist/esm/lib/components/table/components/TableCell/ButtonCell/ButtonCell.d.ts +2 -4
- package/dist/esm/lib/components/table/components/TableCell/ButtonCell/ButtonCell.stories.d.ts +3 -3
- package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.d.ts +2 -6
- package/dist/esm/lib/components/table/components/TableCell/CTACell/CTACell.stories.d.ts +3 -3
- package/dist/esm/lib/components/table/components/TableCell/TableCell.d.ts +1 -3
- package/dist/esm/lib/components/table/components/TableContents/Collapsible.d.ts +2 -1
- package/dist/esm/lib/components/table/components/TableContents/TableContents.d.ts +1 -4
- package/dist/esm/lib/components/table/components/TableSection/TableSection.d.ts +3 -4
- package/dist/esm/lib/components/table/types.d.ts +4 -13
- package/dist/esm/lib/components/table/utils/useTableNavigation/useTableNavigation.d.ts +0 -1
- package/dist/esm/lib/components/toast/index.stories.d.ts +4 -8
- package/dist/esm/lib/index.d.ts +4 -16
- package/dist/esm/lib/models/styles.d.ts +2 -2
- package/dist/esm/lib/util/calendarDate/index.d.ts +1 -1
- package/dist/esm/{mapStyle-C69a9tQ6.js → mapStyle-1288a869.js} +1 -1
- package/dist/esm/{mapStyle-C69a9tQ6.js.map → mapStyle-1288a869.js.map} +1 -1
- package/dist/esm/scss/private/base/demo.js +3 -3
- package/dist/esm/scss/private/base/demo.js.map +1 -1
- package/dist/esm/scss/public/demo.js +136 -156
- package/dist/esm/scss/public/demo.js.map +1 -1
- package/dist/esm/{style-inject.es-tgCJW-Cu.js → style-inject.es-1f59c1d0.js} +1 -1
- package/dist/esm/style-inject.es-1f59c1d0.js.map +1 -0
- package/dist/esm/{tslib.es6-CVlKGIvp.js → tslib.es6-a39f91fc.js} +3 -20
- package/dist/esm/{tslib.es6-CVlKGIvp.js.map → tslib.es6-a39f91fc.js.map} +1 -1
- package/dist/esm/{useScrollSync-C5UXYPIB.js → useScrollSync-b2d28bed.js} +1 -1
- package/dist/esm/{useScrollSync-C5UXYPIB.js.map → useScrollSync-b2d28bed.js.map} +1 -1
- package/dist/esm/{useTableNavigation-CrxoXTVd.js → useTableNavigation-2899712c.js} +4 -5
- package/dist/esm/useTableNavigation-2899712c.js.map +1 -0
- package/dist/esm/util/images/index.stories.js +12 -41
- package/dist/esm/util/images/index.stories.js.map +1 -1
- package/dist/esm/util/testUtils/customRender.js +3 -4
- package/dist/esm/util/testUtils/customRender.js.map +1 -1
- package/dist/font-weight.scss +1 -1
- package/dist/grid.scss +1 -1
- package/dist/index.css +481 -512
- package/dist/index.css.map +1 -1
- package/dist/lib/scss/index.scss +4 -5
- package/dist/lib/scss/private/base/_grid.scss +2 -3
- package/dist/lib/scss/private/base/_typography.scss +57 -25
- package/dist/lib/scss/private/base/flex/_flex.scss +2 -3
- package/dist/lib/scss/private/base/style.module.scss +3 -3
- package/dist/lib/scss/private/components/_badge.scss +3 -3
- package/dist/lib/scss/private/components/_buttons.scss +86 -128
- package/dist/lib/scss/private/components/_cards.scss +6 -8
- package/dist/lib/scss/private/components/_input.scss +35 -59
- package/dist/lib/scss/private/components/_notices.scss +4 -4
- package/dist/lib/scss/private/components/_spinner.scss +2 -2
- package/dist/lib/scss/public/colors/_index.scss +2 -2
- package/dist/lib/scss/public/colors/default.scss +91 -80
- package/dist/lib/scss/public/demo.tsx +139 -165
- package/dist/lib/scss/public/font/_index.scss +2 -2
- package/dist/lib/scss/public/font-weight.scss +1 -1
- package/dist/lib/scss/public/grid.stories.mdx.broken +1 -1
- package/dist/lib/scss/public/shadows.scss +5 -10
- package/dist/lib/scss/third-party/_google_places.scss +3 -3
- package/dist/lib/scss/third-party/_index.scss +1 -1
- package/dist/lib/scss/utils/_index.scss +2 -4
- package/dist/shadows.scss +1 -1
- package/package.json +1 -1
- package/src/index.tsx +1 -0
- package/src/lib/components/comparisonTable/components/AccordionItem/AccordionItem.tsx +42 -5
- package/src/lib/components/comparisonTable/hooks/useComparisonTable.ts +0 -3
- package/src/lib/components/comparisonTable/index.stories.tsx +15 -1
- package/src/lib/components/comparisonTable/index.tsx +21 -3
- package/src/lib/components/dateSelector/components/Calendar.tsx +38 -7
- package/src/lib/components/dateSelector/components/CalendarCaption.tsx +175 -0
- package/src/lib/components/dateSelector/components/calendarCaption.module.scss +168 -0
- package/src/lib/components/dateSelector/components/datepicker.scss +33 -77
- package/src/lib/components/dateSelector/index.stories.tsx +8 -2
- package/src/lib/components/dateSelector/index.tsx +3 -0
- package/src/lib/components/icon/assets/chevron-left.svg +1 -1
- package/src/lib/components/icon/assets/chevron-right.svg +1 -1
- package/src/lib/components/table/Table.stories.tsx +60 -1
- package/src/lib/components/table/Table.tsx +34 -21
- package/src/lib/components/table/components/TableContents/Collapsible.tsx +3 -1
- package/src/lib/components/table/components/TableContents/TableContents.tsx +31 -3
- package/src/lib/index.tsx +2 -1
- package/dist/cjs/lib/components/icon/icons/AccidentCar.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/BikeBicycle.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/Blog.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/Bone.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/Car.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/CarTraffic.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/ChainBikeBroken.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/CoinsMoney.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/DeathFuneral.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/DentalTreatmentTooth.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/Files.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/Fire.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/Glass.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/HatGraduation.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/Id.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/PaintCosmetic.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/PawPet.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/PigMoneySavings.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/PlaneFlight.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/Prohibit.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/Receipt.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/Signature.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/Stamp.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/ToothFillingCracked.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/TrailerParts.d.ts +0 -4
- package/dist/cjs/lib/components/icon/icons/Translation.d.ts +0 -4
- package/dist/cjs/lib/components/logo/LogoBlack.d.ts +0 -3
- package/dist/cjs/lib/components/logo/LogoColor.d.ts +0 -3
- package/dist/cjs/lib/components/logo/LogoInverted.d.ts +0 -368
- package/dist/cjs/lib/components/logo/LogoInvertedColor.d.ts +0 -368
- package/dist/cjs/lib/components/logo/LogoOrangeBox.d.ts +0 -3
- package/dist/cjs/lib/components/logo/LogoPositiveBlack.d.ts +0 -368
- package/dist/cjs/lib/components/logo/LogoPositiveColor.d.ts +0 -368
- package/dist/cjs/lib/components/logo/LogoWhite.d.ts +0 -3
- package/dist/cjs/lib/components/logo/LogoWrapper/LogoWrapper.d.ts +0 -9
- package/dist/cjs/lib/components/logo/logo.stories.d.ts +0 -10
- package/dist/cjs/lib/components/modal/fullScreenModal/index.d.ts +0 -3
- package/dist/cjs/lib/components/table/components/IconRenderer/IconRenderer.d.ts +0 -7
- package/dist/cjs/lib/components/table/components/TableCell/CardCell/CardCell.d.ts +0 -10
- package/dist/cjs/lib/components/table/components/TableCell/CardCell/CardCell.stories.d.ts +0 -17
- package/dist/cjs/lib/hooks/useEscapeKey.d.ts +0 -1
- package/dist/cjs/lib/hooks/useFocusWithin.d.ts +0 -1
- package/dist/cjs/lib/scss/public/borders.stories.d.ts +0 -13
- package/dist/cjs/mapStyle-Cf8tRlj8.js.map +0 -1
- package/dist/esm/Calendar-DnUl9SJx.js +0 -2189
- package/dist/esm/Calendar-DnUl9SJx.js.map +0 -1
- package/dist/esm/TableSection-CEhD4eoy.js.map +0 -1
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js +0 -8
- package/dist/esm/_commonjsHelpers-BFTU3MAI.js.map +0 -1
- package/dist/esm/components/icon/icons/AccidentCar.js +0 -14
- package/dist/esm/components/icon/icons/AccidentCar.js.map +0 -1
- package/dist/esm/components/icon/icons/BikeBicycle.js +0 -14
- package/dist/esm/components/icon/icons/BikeBicycle.js.map +0 -1
- package/dist/esm/components/icon/icons/Blog.js +0 -14
- package/dist/esm/components/icon/icons/Blog.js.map +0 -1
- package/dist/esm/components/icon/icons/Bone.js +0 -14
- package/dist/esm/components/icon/icons/Bone.js.map +0 -1
- package/dist/esm/components/icon/icons/Car.js +0 -14
- package/dist/esm/components/icon/icons/Car.js.map +0 -1
- package/dist/esm/components/icon/icons/CarTraffic.js +0 -14
- package/dist/esm/components/icon/icons/CarTraffic.js.map +0 -1
- package/dist/esm/components/icon/icons/ChainBikeBroken.js +0 -14
- package/dist/esm/components/icon/icons/ChainBikeBroken.js.map +0 -1
- package/dist/esm/components/icon/icons/CoinsMoney.js +0 -14
- package/dist/esm/components/icon/icons/CoinsMoney.js.map +0 -1
- package/dist/esm/components/icon/icons/DeathFuneral.js +0 -14
- package/dist/esm/components/icon/icons/DeathFuneral.js.map +0 -1
- package/dist/esm/components/icon/icons/DentalTreatmentTooth.js +0 -14
- package/dist/esm/components/icon/icons/DentalTreatmentTooth.js.map +0 -1
- package/dist/esm/components/icon/icons/Files.js +0 -14
- package/dist/esm/components/icon/icons/Files.js.map +0 -1
- package/dist/esm/components/icon/icons/Fire.js +0 -14
- package/dist/esm/components/icon/icons/Fire.js.map +0 -1
- package/dist/esm/components/icon/icons/Glass.js +0 -14
- package/dist/esm/components/icon/icons/Glass.js.map +0 -1
- package/dist/esm/components/icon/icons/HatGraduation.js +0 -14
- package/dist/esm/components/icon/icons/HatGraduation.js.map +0 -1
- package/dist/esm/components/icon/icons/Id.js +0 -14
- package/dist/esm/components/icon/icons/Id.js.map +0 -1
- package/dist/esm/components/icon/icons/PaintCosmetic.js +0 -14
- package/dist/esm/components/icon/icons/PaintCosmetic.js.map +0 -1
- package/dist/esm/components/icon/icons/PawPet.js +0 -14
- package/dist/esm/components/icon/icons/PawPet.js.map +0 -1
- package/dist/esm/components/icon/icons/PigMoneySavings.js +0 -14
- package/dist/esm/components/icon/icons/PigMoneySavings.js.map +0 -1
- package/dist/esm/components/icon/icons/PlaneFlight.js +0 -14
- package/dist/esm/components/icon/icons/PlaneFlight.js.map +0 -1
- package/dist/esm/components/icon/icons/Prohibit.js +0 -14
- package/dist/esm/components/icon/icons/Prohibit.js.map +0 -1
- package/dist/esm/components/icon/icons/Receipt.js +0 -14
- package/dist/esm/components/icon/icons/Receipt.js.map +0 -1
- package/dist/esm/components/icon/icons/Signature.js +0 -14
- package/dist/esm/components/icon/icons/Signature.js.map +0 -1
- package/dist/esm/components/icon/icons/Stamp.js +0 -14
- package/dist/esm/components/icon/icons/Stamp.js.map +0 -1
- package/dist/esm/components/icon/icons/ToothFillingCracked.js +0 -14
- package/dist/esm/components/icon/icons/ToothFillingCracked.js.map +0 -1
- package/dist/esm/components/icon/icons/TrailerParts.js +0 -14
- package/dist/esm/components/icon/icons/TrailerParts.js.map +0 -1
- package/dist/esm/components/icon/icons/Translation.js +0 -14
- package/dist/esm/components/icon/icons/Translation.js.map +0 -1
- package/dist/esm/components/logo/LogoBlack.js +0 -14
- package/dist/esm/components/logo/LogoBlack.js.map +0 -1
- package/dist/esm/components/logo/LogoColor.js +0 -14
- package/dist/esm/components/logo/LogoColor.js.map +0 -1
- package/dist/esm/components/logo/LogoInverted.js +0 -14
- package/dist/esm/components/logo/LogoInverted.js.map +0 -1
- package/dist/esm/components/logo/LogoInvertedColor.js +0 -14
- package/dist/esm/components/logo/LogoInvertedColor.js.map +0 -1
- package/dist/esm/components/logo/LogoOrangeBox.js +0 -14
- package/dist/esm/components/logo/LogoOrangeBox.js.map +0 -1
- package/dist/esm/components/logo/LogoPositiveBlack.js +0 -14
- package/dist/esm/components/logo/LogoPositiveBlack.js.map +0 -1
- package/dist/esm/components/logo/LogoPositiveColor.js +0 -14
- package/dist/esm/components/logo/LogoPositiveColor.js.map +0 -1
- package/dist/esm/components/logo/LogoWhite.js +0 -14
- package/dist/esm/components/logo/LogoWhite.js.map +0 -1
- package/dist/esm/components/logo/LogoWrapper/LogoWrapper.js +0 -17
- package/dist/esm/components/logo/LogoWrapper/LogoWrapper.js.map +0 -1
- package/dist/esm/components/logo/logo.stories.js +0 -28
- package/dist/esm/components/logo/logo.stories.js.map +0 -1
- package/dist/esm/components/modal/fullScreenModal/index.js +0 -30
- package/dist/esm/components/modal/fullScreenModal/index.js.map +0 -1
- package/dist/esm/components/table/components/IconRenderer/IconRenderer.js +0 -12
- package/dist/esm/components/table/components/IconRenderer/IconRenderer.js.map +0 -1
- package/dist/esm/components/table/components/TableCell/CardCell/CardCell.js +0 -19
- package/dist/esm/components/table/components/TableCell/CardCell/CardCell.js.map +0 -1
- package/dist/esm/components/table/components/TableCell/CardCell/CardCell.stories.js +0 -34
- package/dist/esm/components/table/components/TableCell/CardCell/CardCell.stories.js.map +0 -1
- package/dist/esm/config-PagIydiG.js.map +0 -1
- package/dist/esm/customRender-DzdqZxUd.js +0 -24363
- package/dist/esm/customRender-DzdqZxUd.js.map +0 -1
- package/dist/esm/index-BClARCFl.js +0 -393
- package/dist/esm/index-BCxawEMQ.js +0 -3947
- package/dist/esm/index-BCxawEMQ.js.map +0 -1
- package/dist/esm/index-BYyiyH6K.js +0 -4
- package/dist/esm/index-BYyiyH6K.js.map +0 -1
- package/dist/esm/index-BraF21Ae.js +0 -2222
- package/dist/esm/index-BraF21Ae.js.map +0 -1
- package/dist/esm/index-C4IAMlRE.js +0 -32
- package/dist/esm/index-C4IAMlRE.js.map +0 -1
- package/dist/esm/index-C4hs4X-e.js.map +0 -1
- package/dist/esm/index-CNcEE5dn.js.map +0 -1
- package/dist/esm/index-CVgMNqD7.js +0 -279
- package/dist/esm/index-CqsS0Elu.js +0 -1539
- package/dist/esm/index-DLQEsiym.js +0 -72
- package/dist/esm/index-DZVEBgCf.js +0 -488
- package/dist/esm/index-DZVEBgCf.js.map +0 -1
- package/dist/esm/index-D_8pWbzR.js +0 -185
- package/dist/esm/index-D_8pWbzR.js.map +0 -1
- package/dist/esm/index-DuaJiEiT.js +0 -1062
- package/dist/esm/index-DuaJiEiT.js.map +0 -1
- package/dist/esm/index-hWqCLhoS.js +0 -100
- package/dist/esm/index-hWqCLhoS.js.map +0 -1
- package/dist/esm/lib/components/icon/icons/AccidentCar.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/BikeBicycle.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/Blog.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/Bone.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/Car.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/CarTraffic.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/ChainBikeBroken.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/CoinsMoney.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/DeathFuneral.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/DentalTreatmentTooth.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/Files.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/Fire.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/Glass.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/HatGraduation.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/Id.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/PaintCosmetic.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/PawPet.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/PigMoneySavings.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/PlaneFlight.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/Prohibit.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/Receipt.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/Signature.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/Stamp.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/ToothFillingCracked.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/TrailerParts.d.ts +0 -4
- package/dist/esm/lib/components/icon/icons/Translation.d.ts +0 -4
- package/dist/esm/lib/components/logo/LogoBlack.d.ts +0 -3
- package/dist/esm/lib/components/logo/LogoColor.d.ts +0 -3
- package/dist/esm/lib/components/logo/LogoInverted.d.ts +0 -368
- package/dist/esm/lib/components/logo/LogoInvertedColor.d.ts +0 -368
- package/dist/esm/lib/components/logo/LogoOrangeBox.d.ts +0 -3
- package/dist/esm/lib/components/logo/LogoPositiveBlack.d.ts +0 -368
- package/dist/esm/lib/components/logo/LogoPositiveColor.d.ts +0 -368
- package/dist/esm/lib/components/logo/LogoWhite.d.ts +0 -3
- package/dist/esm/lib/components/logo/LogoWrapper/LogoWrapper.d.ts +0 -9
- package/dist/esm/lib/components/logo/logo.stories.d.ts +0 -10
- package/dist/esm/lib/components/modal/fullScreenModal/index.d.ts +0 -3
- package/dist/esm/lib/components/table/components/IconRenderer/IconRenderer.d.ts +0 -7
- package/dist/esm/lib/components/table/components/TableCell/CardCell/CardCell.d.ts +0 -10
- package/dist/esm/lib/components/table/components/TableCell/CardCell/CardCell.stories.d.ts +0 -17
- package/dist/esm/lib/hooks/useEscapeKey.d.ts +0 -1
- package/dist/esm/lib/hooks/useFocusWithin.d.ts +0 -1
- package/dist/esm/lib/scss/public/borders.stories.d.ts +0 -13
- package/dist/esm/scss/public/borders.stories.js +0 -86
- package/dist/esm/scss/public/borders.stories.js.map +0 -1
- package/dist/esm/style-inject.es-tgCJW-Cu.js.map +0 -1
- package/dist/esm/useMediaQuery-BlEUymPA.js.map +0 -1
- package/dist/esm/useTableNavigation-CrxoXTVd.js.map +0 -1
- package/dist/lib/scss/private/borders/_index.scss +0 -1
- package/dist/lib/scss/private/borders/default.scss +0 -61
- package/dist/lib/scss/public/borders.stories.tsx +0 -125
|
@@ -1,15 +1,11 @@
|
|
|
1
|
-
import { b as __assign, c as __rest } from '../../../tslib.es6-CVlKGIvp.js';
|
|
2
1
|
import { jsx, jsxs } from 'react/jsx-runtime';
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import { c as classNames } from '../../../index-DLQEsiym.js';
|
|
2
|
+
import { useState, useCallback, useEffect } from 'react';
|
|
3
|
+
import { s as styleInject } from '../../../style-inject.es-1f59c1d0.js';
|
|
4
|
+
import { c as classNames } from '../../../index-6ea95111.js';
|
|
7
5
|
import { Button } from '../../button/index.js';
|
|
8
6
|
import XIcon from '../../icon/icons/X.js';
|
|
9
|
-
import
|
|
10
|
-
import { r as requirePropTypes } from '../../../index-DuaJiEiT.js';
|
|
7
|
+
import '../../../tslib.es6-a39f91fc.js';
|
|
11
8
|
import '../../icon/IconWrapper/IconWrapper.js';
|
|
12
|
-
import '../../../index-hWqCLhoS.js';
|
|
13
9
|
|
|
14
10
|
var useOnClose = function (onClose, isOpen, dismissable) {
|
|
15
11
|
var _a = useState(false), isVisible = _a[0], setIsVisible = _a[1];
|
|
@@ -31,9 +27,12 @@ var useOnClose = function (onClose, isOpen, dismissable) {
|
|
|
31
27
|
handleOnClose();
|
|
32
28
|
}, [dismissable, handleOnClose]);
|
|
33
29
|
var handleEscKey = useCallback(function (e) {
|
|
34
|
-
if (e.code !== 'Escape'
|
|
30
|
+
if (e.code !== 'Escape')
|
|
31
|
+
return;
|
|
32
|
+
if (!dismissable)
|
|
33
|
+
return null;
|
|
34
|
+
if (!isOpen)
|
|
35
35
|
return null;
|
|
36
|
-
}
|
|
37
36
|
handleOnClose();
|
|
38
37
|
}, [isOpen, dismissable, handleOnClose]);
|
|
39
38
|
useEffect(function () {
|
|
@@ -63,1793 +62,29 @@ var useOnClose = function (onClose, isOpen, dismissable) {
|
|
|
63
62
|
handleContainerClick: handleContainerClick,
|
|
64
63
|
handleOnCloseAnimationEnded: handleOnCloseAnimationEnded,
|
|
65
64
|
handleOnClose: handleOnClose,
|
|
66
|
-
handleOnOverlayClick: handleOnOverlayClick
|
|
65
|
+
handleOnOverlayClick: handleOnOverlayClick
|
|
67
66
|
};
|
|
68
67
|
};
|
|
69
68
|
|
|
70
|
-
var css_248z = "@keyframes style-module_fade-in__f_VRg {\n 0% {\n background-color: rgba(0, 0, 0, 0);\n visibility: hidden;\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.3);\n visibility: visible;\n }\n}\n@keyframes style-module_fade-out__1tEwS {\n from {\n background-color: rgba(0, 0, 0, 0.3);\n visibility: visible;\n }\n to {\n background-color: rgba(0, 0, 0, 0);\n visibility: hidden;\n }\n}\n.style-module_overlay__2f00R {\n z-index: 1000;\n overflow:
|
|
71
|
-
var styles = {"overlay":"style-module_overlay__2f00R","overlayClose":"style-module_overlayClose__1p313","header":"style-module_header__284Rz","closeButton":"style-module_closeButton__1AbX8","body":"style-module_body__QtlTn","footer":"style-module_footer__Sh5bv"};
|
|
69
|
+
var css_248z = "@keyframes style-module_fade-in__f_VRg {\n 0% {\n background-color: rgba(0, 0, 0, 0);\n visibility: hidden;\n }\n 100% {\n background-color: rgba(0, 0, 0, 0.3);\n visibility: visible;\n }\n}\n@keyframes style-module_fade-out__1tEwS {\n from {\n background-color: rgba(0, 0, 0, 0.3);\n visibility: visible;\n }\n to {\n background-color: rgba(0, 0, 0, 0);\n visibility: hidden;\n }\n}\n.style-module_overlay__2f00R {\n z-index: 1000;\n overflow: auto;\n position: fixed;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n animation: style-module_fade-in__f_VRg 0.3s both;\n}\n.style-module_overlayClose__1p313 {\n animation-delay: 0.1s;\n animation: style-module_fade-out__1tEwS 0.3s both;\n}\n\n.style-module_header__284Rz {\n position: sticky;\n top: 0;\n}\n\n.style-module_closeButton__1AbX8 {\n width: 32px;\n height: 32px;\n padding: 0;\n}\n\n.style-module_body__QtlTn {\n flex-grow: 1;\n overflow: auto;\n background: linear-gradient(#fff 30%, #fff), linear-gradient(#fff, #fff 70%), linear-gradient(#ededf2 30%, #ededf2), linear-gradient(#ededf2, #ededf2 70%);\n background-repeat: no-repeat;\n background-size: 100% 1px;\n background-attachment: local, local, scroll, scroll;\n}\n\n.style-module_footer__Sh5bv {\n position: sticky;\n bottom: 0;\n border-top: 1px solid #ededf2;\n}";
|
|
70
|
+
var styles = {"overlay":"style-module_overlay__2f00R","fade-in":"style-module_fade-in__f_VRg","overlayClose":"style-module_overlayClose__1p313","fade-out":"style-module_fade-out__1tEwS","header":"style-module_header__284Rz","closeButton":"style-module_closeButton__1AbX8","body":"style-module_body__QtlTn","footer":"style-module_footer__Sh5bv"};
|
|
72
71
|
styleInject(css_248z);
|
|
73
72
|
|
|
74
|
-
function
|
|
75
|
-
if (null == r) return {};
|
|
76
|
-
var t = {};
|
|
77
|
-
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
78
|
-
if (e.includes(n)) continue;
|
|
79
|
-
t[n] = r[n];
|
|
80
|
-
}
|
|
81
|
-
return t;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
function _extends() {
|
|
85
|
-
return _extends = Object.assign ? Object.assign.bind() : function (n) {
|
|
86
|
-
for (var e = 1; e < arguments.length; e++) {
|
|
87
|
-
var t = arguments[e];
|
|
88
|
-
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
89
|
-
}
|
|
90
|
-
return n;
|
|
91
|
-
}, _extends.apply(null, arguments);
|
|
92
|
-
}
|
|
93
|
-
|
|
94
|
-
var propTypesExports = requirePropTypes();
|
|
95
|
-
var PropTypes = /*@__PURE__*/getDefaultExportFromCjs(propTypesExports);
|
|
96
|
-
|
|
97
|
-
/**
|
|
98
|
-
* defines a focus group
|
|
99
|
-
*/
|
|
100
|
-
var FOCUS_GROUP = 'data-focus-lock';
|
|
101
|
-
/**
|
|
102
|
-
* disables element discovery inside a group marked by key
|
|
103
|
-
*/
|
|
104
|
-
var FOCUS_DISABLED = 'data-focus-lock-disabled';
|
|
105
|
-
/**
|
|
106
|
-
* allows uncontrolled focus within the marked area, effectively disabling focus lock for it's content
|
|
107
|
-
*/
|
|
108
|
-
var FOCUS_ALLOW = 'data-no-focus-lock';
|
|
109
|
-
/**
|
|
110
|
-
* instructs autofocus engine to pick default autofocus inside a given node
|
|
111
|
-
* can be set on the element or container
|
|
112
|
-
*/
|
|
113
|
-
var FOCUS_AUTO = 'data-autofocus-inside';
|
|
114
|
-
/**
|
|
115
|
-
* instructs autofocus to ignore elements within a given node
|
|
116
|
-
* can be set on the element or container
|
|
117
|
-
*/
|
|
118
|
-
var FOCUS_NO_AUTOFOCUS = 'data-no-autofocus';
|
|
119
|
-
|
|
120
|
-
/**
|
|
121
|
-
* Assigns a value for a given ref, no matter of the ref format
|
|
122
|
-
* @param {RefObject} ref - a callback function or ref object
|
|
123
|
-
* @param value - a new value
|
|
124
|
-
*
|
|
125
|
-
* @see https://github.com/theKashey/use-callback-ref#assignref
|
|
126
|
-
* @example
|
|
127
|
-
* const refObject = useRef();
|
|
128
|
-
* const refFn = (ref) => {....}
|
|
129
|
-
*
|
|
130
|
-
* assignRef(refObject, "refValue");
|
|
131
|
-
* assignRef(refFn, "refValue");
|
|
132
|
-
*/
|
|
133
|
-
function assignRef(ref, value) {
|
|
134
|
-
if (typeof ref === 'function') {
|
|
135
|
-
ref(value);
|
|
136
|
-
}
|
|
137
|
-
else if (ref) {
|
|
138
|
-
ref.current = value;
|
|
139
|
-
}
|
|
140
|
-
return ref;
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
/**
|
|
144
|
-
* creates a MutableRef with ref change callback
|
|
145
|
-
* @param initialValue - initial ref value
|
|
146
|
-
* @param {Function} callback - a callback to run when value changes
|
|
147
|
-
*
|
|
148
|
-
* @example
|
|
149
|
-
* const ref = useCallbackRef(0, (newValue, oldValue) => console.log(oldValue, '->', newValue);
|
|
150
|
-
* ref.current = 1;
|
|
151
|
-
* // prints 0 -> 1
|
|
152
|
-
*
|
|
153
|
-
* @see https://reactjs.org/docs/hooks-reference.html#useref
|
|
154
|
-
* @see https://github.com/theKashey/use-callback-ref#usecallbackref---to-replace-reactuseref
|
|
155
|
-
* @returns {MutableRefObject}
|
|
156
|
-
*/
|
|
157
|
-
function useCallbackRef(initialValue, callback) {
|
|
158
|
-
var ref = useState(function () { return ({
|
|
159
|
-
// value
|
|
160
|
-
value: initialValue,
|
|
161
|
-
// last callback
|
|
162
|
-
callback: callback,
|
|
163
|
-
// "memoized" public interface
|
|
164
|
-
facade: {
|
|
165
|
-
get current() {
|
|
166
|
-
return ref.value;
|
|
167
|
-
},
|
|
168
|
-
set current(value) {
|
|
169
|
-
var last = ref.value;
|
|
170
|
-
if (last !== value) {
|
|
171
|
-
ref.value = value;
|
|
172
|
-
ref.callback(value, last);
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
},
|
|
176
|
-
}); })[0];
|
|
177
|
-
// update callback
|
|
178
|
-
ref.callback = callback;
|
|
179
|
-
return ref.facade;
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
var useIsomorphicLayoutEffect = typeof window !== 'undefined' ? React.useLayoutEffect : React.useEffect;
|
|
183
|
-
var currentValues = new WeakMap();
|
|
184
|
-
/**
|
|
185
|
-
* Merges two or more refs together providing a single interface to set their value
|
|
186
|
-
* @param {RefObject|Ref} refs
|
|
187
|
-
* @returns {MutableRefObject} - a new ref, which translates all changes to {refs}
|
|
188
|
-
*
|
|
189
|
-
* @see {@link mergeRefs} a version without buit-in memoization
|
|
190
|
-
* @see https://github.com/theKashey/use-callback-ref#usemergerefs
|
|
191
|
-
* @example
|
|
192
|
-
* const Component = React.forwardRef((props, ref) => {
|
|
193
|
-
* const ownRef = useRef();
|
|
194
|
-
* const domRef = useMergeRefs([ref, ownRef]); // 👈 merge together
|
|
195
|
-
* return <div ref={domRef}>...</div>
|
|
196
|
-
* }
|
|
197
|
-
*/
|
|
198
|
-
function useMergeRefs(refs, defaultValue) {
|
|
199
|
-
var callbackRef = useCallbackRef(null, function (newValue) {
|
|
200
|
-
return refs.forEach(function (ref) { return assignRef(ref, newValue); });
|
|
201
|
-
});
|
|
202
|
-
// handle refs changes - added or removed
|
|
203
|
-
useIsomorphicLayoutEffect(function () {
|
|
204
|
-
var oldValue = currentValues.get(callbackRef);
|
|
205
|
-
if (oldValue) {
|
|
206
|
-
var prevRefs_1 = new Set(oldValue);
|
|
207
|
-
var nextRefs_1 = new Set(refs);
|
|
208
|
-
var current_1 = callbackRef.current;
|
|
209
|
-
prevRefs_1.forEach(function (ref) {
|
|
210
|
-
if (!nextRefs_1.has(ref)) {
|
|
211
|
-
assignRef(ref, null);
|
|
212
|
-
}
|
|
213
|
-
});
|
|
214
|
-
nextRefs_1.forEach(function (ref) {
|
|
215
|
-
if (!prevRefs_1.has(ref)) {
|
|
216
|
-
assignRef(ref, current_1);
|
|
217
|
-
}
|
|
218
|
-
});
|
|
219
|
-
}
|
|
220
|
-
currentValues.set(callbackRef, refs);
|
|
221
|
-
}, [refs]);
|
|
222
|
-
return callbackRef;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
var hiddenGuard = {
|
|
226
|
-
width: '1px',
|
|
227
|
-
height: '0px',
|
|
228
|
-
padding: 0,
|
|
229
|
-
overflow: 'hidden',
|
|
230
|
-
position: 'fixed',
|
|
231
|
-
top: '1px',
|
|
232
|
-
left: '1px'
|
|
233
|
-
};
|
|
234
|
-
process.env.NODE_ENV !== "production" ? {
|
|
235
|
-
children: PropTypes.node
|
|
236
|
-
} : {};
|
|
237
|
-
|
|
238
|
-
function ItoI(a) {
|
|
239
|
-
return a;
|
|
240
|
-
}
|
|
241
|
-
function innerCreateMedium(defaults, middleware) {
|
|
242
|
-
if (middleware === void 0) { middleware = ItoI; }
|
|
243
|
-
var buffer = [];
|
|
244
|
-
var assigned = false;
|
|
245
|
-
var medium = {
|
|
246
|
-
read: function () {
|
|
247
|
-
if (assigned) {
|
|
248
|
-
throw new Error('Sidecar: could not `read` from an `assigned` medium. `read` could be used only with `useMedium`.');
|
|
249
|
-
}
|
|
250
|
-
if (buffer.length) {
|
|
251
|
-
return buffer[buffer.length - 1];
|
|
252
|
-
}
|
|
253
|
-
return defaults;
|
|
254
|
-
},
|
|
255
|
-
useMedium: function (data) {
|
|
256
|
-
var item = middleware(data, assigned);
|
|
257
|
-
buffer.push(item);
|
|
258
|
-
return function () {
|
|
259
|
-
buffer = buffer.filter(function (x) { return x !== item; });
|
|
260
|
-
};
|
|
261
|
-
},
|
|
262
|
-
assignSyncMedium: function (cb) {
|
|
263
|
-
assigned = true;
|
|
264
|
-
while (buffer.length) {
|
|
265
|
-
var cbs = buffer;
|
|
266
|
-
buffer = [];
|
|
267
|
-
cbs.forEach(cb);
|
|
268
|
-
}
|
|
269
|
-
buffer = {
|
|
270
|
-
push: function (x) { return cb(x); },
|
|
271
|
-
filter: function () { return buffer; },
|
|
272
|
-
};
|
|
273
|
-
},
|
|
274
|
-
assignMedium: function (cb) {
|
|
275
|
-
assigned = true;
|
|
276
|
-
var pendingQueue = [];
|
|
277
|
-
if (buffer.length) {
|
|
278
|
-
var cbs = buffer;
|
|
279
|
-
buffer = [];
|
|
280
|
-
cbs.forEach(cb);
|
|
281
|
-
pendingQueue = buffer;
|
|
282
|
-
}
|
|
283
|
-
var executeQueue = function () {
|
|
284
|
-
var cbs = pendingQueue;
|
|
285
|
-
pendingQueue = [];
|
|
286
|
-
cbs.forEach(cb);
|
|
287
|
-
};
|
|
288
|
-
var cycle = function () { return Promise.resolve().then(executeQueue); };
|
|
289
|
-
cycle();
|
|
290
|
-
buffer = {
|
|
291
|
-
push: function (x) {
|
|
292
|
-
pendingQueue.push(x);
|
|
293
|
-
cycle();
|
|
294
|
-
},
|
|
295
|
-
filter: function (filter) {
|
|
296
|
-
pendingQueue = pendingQueue.filter(filter);
|
|
297
|
-
return buffer;
|
|
298
|
-
},
|
|
299
|
-
};
|
|
300
|
-
},
|
|
301
|
-
};
|
|
302
|
-
return medium;
|
|
303
|
-
}
|
|
304
|
-
function createMedium(defaults, middleware) {
|
|
305
|
-
if (middleware === void 0) { middleware = ItoI; }
|
|
306
|
-
return innerCreateMedium(defaults, middleware);
|
|
307
|
-
}
|
|
308
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
309
|
-
function createSidecarMedium(options) {
|
|
310
|
-
if (options === void 0) { options = {}; }
|
|
311
|
-
var medium = innerCreateMedium(null);
|
|
312
|
-
medium.options = __assign({ async: true, ssr: false }, options);
|
|
313
|
-
return medium;
|
|
314
|
-
}
|
|
315
|
-
|
|
316
|
-
var mediumFocus = createMedium({}, function (_ref) {
|
|
317
|
-
var target = _ref.target,
|
|
318
|
-
currentTarget = _ref.currentTarget;
|
|
319
|
-
return {
|
|
320
|
-
target: target,
|
|
321
|
-
currentTarget: currentTarget
|
|
322
|
-
};
|
|
323
|
-
});
|
|
324
|
-
var mediumBlur = createMedium();
|
|
325
|
-
var mediumEffect = createMedium();
|
|
326
|
-
var mediumSidecar = createSidecarMedium({
|
|
327
|
-
async: true,
|
|
328
|
-
ssr: typeof document !== 'undefined'
|
|
329
|
-
});
|
|
330
|
-
|
|
331
|
-
var focusScope = /*#__PURE__*/createContext(undefined);
|
|
332
|
-
|
|
333
|
-
var emptyArray = [];
|
|
334
|
-
var FocusLock = /*#__PURE__*/React.forwardRef(function FocusLockUI(props, parentRef) {
|
|
335
|
-
var _extends2;
|
|
336
|
-
var _React$useState = React.useState(),
|
|
337
|
-
realObserved = _React$useState[0],
|
|
338
|
-
setObserved = _React$useState[1];
|
|
339
|
-
var observed = React.useRef();
|
|
340
|
-
var isActive = React.useRef(false);
|
|
341
|
-
var originalFocusedElement = React.useRef(null);
|
|
342
|
-
var _React$useState2 = React.useState({}),
|
|
343
|
-
update = _React$useState2[1];
|
|
344
|
-
var children = props.children,
|
|
345
|
-
_props$disabled = props.disabled,
|
|
346
|
-
disabled = _props$disabled === void 0 ? false : _props$disabled,
|
|
347
|
-
_props$noFocusGuards = props.noFocusGuards,
|
|
348
|
-
noFocusGuards = _props$noFocusGuards === void 0 ? false : _props$noFocusGuards,
|
|
349
|
-
_props$persistentFocu = props.persistentFocus,
|
|
350
|
-
persistentFocus = _props$persistentFocu === void 0 ? false : _props$persistentFocu,
|
|
351
|
-
_props$crossFrame = props.crossFrame,
|
|
352
|
-
crossFrame = _props$crossFrame === void 0 ? true : _props$crossFrame,
|
|
353
|
-
_props$autoFocus = props.autoFocus,
|
|
354
|
-
autoFocus = _props$autoFocus === void 0 ? true : _props$autoFocus,
|
|
355
|
-
allowTextSelection = props.allowTextSelection,
|
|
356
|
-
group = props.group,
|
|
357
|
-
className = props.className,
|
|
358
|
-
whiteList = props.whiteList,
|
|
359
|
-
hasPositiveIndices = props.hasPositiveIndices,
|
|
360
|
-
_props$shards = props.shards,
|
|
361
|
-
shards = _props$shards === void 0 ? emptyArray : _props$shards,
|
|
362
|
-
_props$as = props.as,
|
|
363
|
-
Container = _props$as === void 0 ? 'div' : _props$as,
|
|
364
|
-
_props$lockProps = props.lockProps,
|
|
365
|
-
containerProps = _props$lockProps === void 0 ? {} : _props$lockProps,
|
|
366
|
-
SideCar = props.sideCar,
|
|
367
|
-
_props$returnFocus = props.returnFocus,
|
|
368
|
-
shouldReturnFocus = _props$returnFocus === void 0 ? false : _props$returnFocus,
|
|
369
|
-
focusOptions = props.focusOptions,
|
|
370
|
-
onActivationCallback = props.onActivation,
|
|
371
|
-
onDeactivationCallback = props.onDeactivation;
|
|
372
|
-
var _React$useState3 = React.useState({}),
|
|
373
|
-
id = _React$useState3[0];
|
|
374
|
-
var onActivation = React.useCallback(function (_ref) {
|
|
375
|
-
var captureFocusRestore = _ref.captureFocusRestore;
|
|
376
|
-
if (!originalFocusedElement.current) {
|
|
377
|
-
var _document;
|
|
378
|
-
var activeElement = (_document = document) == null ? void 0 : _document.activeElement;
|
|
379
|
-
originalFocusedElement.current = activeElement;
|
|
380
|
-
if (activeElement !== document.body) {
|
|
381
|
-
originalFocusedElement.current = captureFocusRestore(activeElement);
|
|
382
|
-
}
|
|
383
|
-
}
|
|
384
|
-
if (observed.current && onActivationCallback) {
|
|
385
|
-
onActivationCallback(observed.current);
|
|
386
|
-
}
|
|
387
|
-
isActive.current = true;
|
|
388
|
-
update();
|
|
389
|
-
}, [onActivationCallback]);
|
|
390
|
-
var onDeactivation = React.useCallback(function () {
|
|
391
|
-
isActive.current = false;
|
|
392
|
-
if (onDeactivationCallback) {
|
|
393
|
-
onDeactivationCallback(observed.current);
|
|
394
|
-
}
|
|
395
|
-
update();
|
|
396
|
-
}, [onDeactivationCallback]);
|
|
397
|
-
var returnFocus = React.useCallback(function (allowDefer) {
|
|
398
|
-
var focusRestore = originalFocusedElement.current;
|
|
399
|
-
if (focusRestore) {
|
|
400
|
-
var returnFocusTo = (typeof focusRestore === 'function' ? focusRestore() : focusRestore) || document.body;
|
|
401
|
-
var howToReturnFocus = typeof shouldReturnFocus === 'function' ? shouldReturnFocus(returnFocusTo) : shouldReturnFocus;
|
|
402
|
-
if (howToReturnFocus) {
|
|
403
|
-
var returnFocusOptions = typeof howToReturnFocus === 'object' ? howToReturnFocus : undefined;
|
|
404
|
-
originalFocusedElement.current = null;
|
|
405
|
-
if (allowDefer) {
|
|
406
|
-
Promise.resolve().then(function () {
|
|
407
|
-
return returnFocusTo.focus(returnFocusOptions);
|
|
408
|
-
});
|
|
409
|
-
} else {
|
|
410
|
-
returnFocusTo.focus(returnFocusOptions);
|
|
411
|
-
}
|
|
412
|
-
}
|
|
413
|
-
}
|
|
414
|
-
}, [shouldReturnFocus]);
|
|
415
|
-
var onFocus = React.useCallback(function (event) {
|
|
416
|
-
if (isActive.current) {
|
|
417
|
-
mediumFocus.useMedium(event);
|
|
418
|
-
}
|
|
419
|
-
}, []);
|
|
420
|
-
var onBlur = mediumBlur.useMedium;
|
|
421
|
-
var setObserveNode = React.useCallback(function (newObserved) {
|
|
422
|
-
if (observed.current !== newObserved) {
|
|
423
|
-
observed.current = newObserved;
|
|
424
|
-
setObserved(newObserved);
|
|
425
|
-
}
|
|
426
|
-
}, []);
|
|
427
|
-
if (process.env.NODE_ENV !== 'production') {
|
|
428
|
-
if (typeof allowTextSelection !== 'undefined') {
|
|
429
|
-
console.warn('React-Focus-Lock: allowTextSelection is deprecated and enabled by default');
|
|
430
|
-
}
|
|
431
|
-
React.useEffect(function () {
|
|
432
|
-
if (!observed.current && typeof Container !== 'string') {
|
|
433
|
-
console.error('FocusLock: could not obtain ref to internal node');
|
|
434
|
-
}
|
|
435
|
-
}, []);
|
|
436
|
-
}
|
|
437
|
-
var lockProps = _extends((_extends2 = {}, _extends2[FOCUS_DISABLED] = disabled && 'disabled', _extends2[FOCUS_GROUP] = group, _extends2), containerProps);
|
|
438
|
-
var hasLeadingGuards = noFocusGuards !== true;
|
|
439
|
-
var hasTailingGuards = hasLeadingGuards && noFocusGuards !== 'tail';
|
|
440
|
-
var mergedRef = useMergeRefs([parentRef, setObserveNode]);
|
|
441
|
-
var focusScopeValue = React.useMemo(function () {
|
|
442
|
-
return {
|
|
443
|
-
observed: observed,
|
|
444
|
-
shards: shards,
|
|
445
|
-
enabled: !disabled,
|
|
446
|
-
active: isActive.current
|
|
447
|
-
};
|
|
448
|
-
}, [disabled, isActive.current, shards, realObserved]);
|
|
449
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, hasLeadingGuards && [
|
|
450
|
-
/*#__PURE__*/
|
|
451
|
-
React.createElement("div", {
|
|
452
|
-
key: "guard-first",
|
|
453
|
-
"data-focus-guard": true,
|
|
454
|
-
tabIndex: disabled ? -1 : 0,
|
|
455
|
-
style: hiddenGuard
|
|
456
|
-
}), hasPositiveIndices ? /*#__PURE__*/React.createElement("div", {
|
|
457
|
-
key: "guard-nearest",
|
|
458
|
-
"data-focus-guard": true,
|
|
459
|
-
tabIndex: disabled ? -1 : 1,
|
|
460
|
-
style: hiddenGuard
|
|
461
|
-
}) : null], !disabled && /*#__PURE__*/React.createElement(SideCar, {
|
|
462
|
-
id: id,
|
|
463
|
-
sideCar: mediumSidecar,
|
|
464
|
-
observed: realObserved,
|
|
465
|
-
disabled: disabled,
|
|
466
|
-
persistentFocus: persistentFocus,
|
|
467
|
-
crossFrame: crossFrame,
|
|
468
|
-
autoFocus: autoFocus,
|
|
469
|
-
whiteList: whiteList,
|
|
470
|
-
shards: shards,
|
|
471
|
-
onActivation: onActivation,
|
|
472
|
-
onDeactivation: onDeactivation,
|
|
473
|
-
returnFocus: returnFocus,
|
|
474
|
-
focusOptions: focusOptions,
|
|
475
|
-
noFocusGuards: noFocusGuards
|
|
476
|
-
}), /*#__PURE__*/React.createElement(Container, _extends({
|
|
477
|
-
ref: mergedRef
|
|
478
|
-
}, lockProps, {
|
|
479
|
-
className: className,
|
|
480
|
-
onBlur: onBlur,
|
|
481
|
-
onFocus: onFocus
|
|
482
|
-
}), /*#__PURE__*/React.createElement(focusScope.Provider, {
|
|
483
|
-
value: focusScopeValue
|
|
484
|
-
}, children)), hasTailingGuards && /*#__PURE__*/React.createElement("div", {
|
|
485
|
-
"data-focus-guard": true,
|
|
486
|
-
tabIndex: disabled ? -1 : 0,
|
|
487
|
-
style: hiddenGuard
|
|
488
|
-
}));
|
|
489
|
-
});
|
|
490
|
-
FocusLock.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
491
|
-
children: propTypesExports.node,
|
|
492
|
-
disabled: propTypesExports.bool,
|
|
493
|
-
returnFocus: propTypesExports.oneOfType([propTypesExports.bool, propTypesExports.object, propTypesExports.func]),
|
|
494
|
-
focusOptions: propTypesExports.object,
|
|
495
|
-
noFocusGuards: propTypesExports.bool,
|
|
496
|
-
hasPositiveIndices: propTypesExports.bool,
|
|
497
|
-
allowTextSelection: propTypesExports.bool,
|
|
498
|
-
autoFocus: propTypesExports.bool,
|
|
499
|
-
persistentFocus: propTypesExports.bool,
|
|
500
|
-
crossFrame: propTypesExports.bool,
|
|
501
|
-
group: propTypesExports.string,
|
|
502
|
-
className: propTypesExports.string,
|
|
503
|
-
whiteList: propTypesExports.func,
|
|
504
|
-
shards: propTypesExports.arrayOf(propTypesExports.any),
|
|
505
|
-
as: propTypesExports.oneOfType([propTypesExports.string, propTypesExports.func, propTypesExports.object]),
|
|
506
|
-
lockProps: propTypesExports.object,
|
|
507
|
-
onActivation: propTypesExports.func,
|
|
508
|
-
onDeactivation: propTypesExports.func,
|
|
509
|
-
sideCar: propTypesExports.any.isRequired
|
|
510
|
-
} : {};
|
|
511
|
-
|
|
512
|
-
function _setPrototypeOf(t, e) {
|
|
513
|
-
return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) {
|
|
514
|
-
return t.__proto__ = e, t;
|
|
515
|
-
}, _setPrototypeOf(t, e);
|
|
516
|
-
}
|
|
517
|
-
|
|
518
|
-
function _inheritsLoose(t, o) {
|
|
519
|
-
t.prototype = Object.create(o.prototype), t.prototype.constructor = t, _setPrototypeOf(t, o);
|
|
520
|
-
}
|
|
521
|
-
|
|
522
|
-
function _typeof(o) {
|
|
523
|
-
"@babel/helpers - typeof";
|
|
524
|
-
|
|
525
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
526
|
-
return typeof o;
|
|
527
|
-
} : function (o) {
|
|
528
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
529
|
-
}, _typeof(o);
|
|
530
|
-
}
|
|
531
|
-
|
|
532
|
-
function toPrimitive(t, r) {
|
|
533
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
534
|
-
var e = t[Symbol.toPrimitive];
|
|
535
|
-
if (void 0 !== e) {
|
|
536
|
-
var i = e.call(t, r);
|
|
537
|
-
if ("object" != _typeof(i)) return i;
|
|
538
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
539
|
-
}
|
|
540
|
-
return ("string" === r ? String : Number)(t);
|
|
541
|
-
}
|
|
542
|
-
|
|
543
|
-
function toPropertyKey(t) {
|
|
544
|
-
var i = toPrimitive(t, "string");
|
|
545
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
546
|
-
}
|
|
547
|
-
|
|
548
|
-
function _defineProperty(e, r, t) {
|
|
549
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
550
|
-
value: t,
|
|
551
|
-
enumerable: true,
|
|
552
|
-
configurable: true,
|
|
553
|
-
writable: true
|
|
554
|
-
}) : e[r] = t, e;
|
|
555
|
-
}
|
|
556
|
-
|
|
557
|
-
function withSideEffect(reducePropsToState, handleStateChangeOnClient) {
|
|
558
|
-
if (process.env.NODE_ENV !== "production") {
|
|
559
|
-
if (typeof reducePropsToState !== 'function') {
|
|
560
|
-
throw new Error('Expected reducePropsToState to be a function.');
|
|
561
|
-
}
|
|
562
|
-
|
|
563
|
-
if (typeof handleStateChangeOnClient !== 'function') {
|
|
564
|
-
throw new Error('Expected handleStateChangeOnClient to be a function.');
|
|
565
|
-
}
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
function getDisplayName(WrappedComponent) {
|
|
569
|
-
return WrappedComponent.displayName || WrappedComponent.name || 'Component';
|
|
570
|
-
}
|
|
571
|
-
|
|
572
|
-
return function wrap(WrappedComponent) {
|
|
573
|
-
if (process.env.NODE_ENV !== "production") {
|
|
574
|
-
if (typeof WrappedComponent !== 'function') {
|
|
575
|
-
throw new Error('Expected WrappedComponent to be a React component.');
|
|
576
|
-
}
|
|
577
|
-
}
|
|
578
|
-
|
|
579
|
-
var mountedInstances = [];
|
|
580
|
-
var state;
|
|
581
|
-
|
|
582
|
-
function emitChange() {
|
|
583
|
-
state = reducePropsToState(mountedInstances.map(function (instance) {
|
|
584
|
-
return instance.props;
|
|
585
|
-
}));
|
|
586
|
-
handleStateChangeOnClient(state);
|
|
587
|
-
}
|
|
588
|
-
|
|
589
|
-
var SideEffect = /*#__PURE__*/function (_PureComponent) {
|
|
590
|
-
_inheritsLoose(SideEffect, _PureComponent);
|
|
591
|
-
|
|
592
|
-
function SideEffect() {
|
|
593
|
-
return _PureComponent.apply(this, arguments) || this;
|
|
594
|
-
}
|
|
595
|
-
|
|
596
|
-
// Try to use displayName of wrapped component
|
|
597
|
-
SideEffect.peek = function peek() {
|
|
598
|
-
return state;
|
|
599
|
-
};
|
|
600
|
-
|
|
601
|
-
var _proto = SideEffect.prototype;
|
|
602
|
-
|
|
603
|
-
_proto.componentDidMount = function componentDidMount() {
|
|
604
|
-
mountedInstances.push(this);
|
|
605
|
-
emitChange();
|
|
606
|
-
};
|
|
607
|
-
|
|
608
|
-
_proto.componentDidUpdate = function componentDidUpdate() {
|
|
609
|
-
emitChange();
|
|
610
|
-
};
|
|
611
|
-
|
|
612
|
-
_proto.componentWillUnmount = function componentWillUnmount() {
|
|
613
|
-
var index = mountedInstances.indexOf(this);
|
|
614
|
-
mountedInstances.splice(index, 1);
|
|
615
|
-
emitChange();
|
|
616
|
-
};
|
|
617
|
-
|
|
618
|
-
_proto.render = function render() {
|
|
619
|
-
return /*#__PURE__*/React__default.createElement(WrappedComponent, this.props);
|
|
620
|
-
};
|
|
621
|
-
|
|
622
|
-
return SideEffect;
|
|
623
|
-
}(PureComponent);
|
|
624
|
-
|
|
625
|
-
_defineProperty(SideEffect, "displayName", "SideEffect(" + getDisplayName(WrappedComponent) + ")");
|
|
626
|
-
|
|
627
|
-
return SideEffect;
|
|
628
|
-
};
|
|
629
|
-
}
|
|
630
|
-
|
|
631
|
-
/*
|
|
632
|
-
IE11 support
|
|
633
|
-
*/
|
|
634
|
-
var toArray = function (a) {
|
|
635
|
-
var ret = Array(a.length);
|
|
636
|
-
for (var i = 0; i < a.length; ++i) {
|
|
637
|
-
ret[i] = a[i];
|
|
638
|
-
}
|
|
639
|
-
return ret;
|
|
640
|
-
};
|
|
641
|
-
var asArray = function (a) { return (Array.isArray(a) ? a : [a]); };
|
|
642
|
-
var getFirst = function (a) { return (Array.isArray(a) ? a[0] : a); };
|
|
643
|
-
|
|
644
|
-
var isElementHidden = function (node) {
|
|
645
|
-
// we can measure only "elements"
|
|
646
|
-
// consider others as "visible"
|
|
647
|
-
if (node.nodeType !== Node.ELEMENT_NODE) {
|
|
648
|
-
return false;
|
|
649
|
-
}
|
|
650
|
-
var computedStyle = window.getComputedStyle(node, null);
|
|
651
|
-
if (!computedStyle || !computedStyle.getPropertyValue) {
|
|
652
|
-
return false;
|
|
653
|
-
}
|
|
654
|
-
return (computedStyle.getPropertyValue('display') === 'none' || computedStyle.getPropertyValue('visibility') === 'hidden');
|
|
655
|
-
};
|
|
656
|
-
var getParentNode = function (node) {
|
|
657
|
-
// DOCUMENT_FRAGMENT_NODE can also point on ShadowRoot. In this case .host will point on the next node
|
|
658
|
-
return node.parentNode && node.parentNode.nodeType === Node.DOCUMENT_FRAGMENT_NODE
|
|
659
|
-
? // eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
660
|
-
node.parentNode.host
|
|
661
|
-
: node.parentNode;
|
|
662
|
-
};
|
|
663
|
-
var isTopNode = function (node) {
|
|
664
|
-
// @ts-ignore
|
|
665
|
-
return node === document || (node && node.nodeType === Node.DOCUMENT_NODE);
|
|
666
|
-
};
|
|
667
|
-
var isInert = function (node) { return node.hasAttribute('inert'); };
|
|
668
|
-
/**
|
|
669
|
-
* @see https://github.com/testing-library/jest-dom/blob/main/src/to-be-visible.js
|
|
670
|
-
*/
|
|
671
|
-
var isVisibleUncached = function (node, checkParent) {
|
|
672
|
-
return !node || isTopNode(node) || (!isElementHidden(node) && !isInert(node) && checkParent(getParentNode(node)));
|
|
673
|
-
};
|
|
674
|
-
var isVisibleCached = function (visibilityCache, node) {
|
|
675
|
-
var cached = visibilityCache.get(node);
|
|
676
|
-
if (cached !== undefined) {
|
|
677
|
-
return cached;
|
|
678
|
-
}
|
|
679
|
-
var result = isVisibleUncached(node, isVisibleCached.bind(undefined, visibilityCache));
|
|
680
|
-
visibilityCache.set(node, result);
|
|
681
|
-
return result;
|
|
682
|
-
};
|
|
683
|
-
var isAutoFocusAllowedUncached = function (node, checkParent) {
|
|
684
|
-
return node && !isTopNode(node) ? (isAutoFocusAllowed(node) ? checkParent(getParentNode(node)) : false) : true;
|
|
685
|
-
};
|
|
686
|
-
var isAutoFocusAllowedCached = function (cache, node) {
|
|
687
|
-
var cached = cache.get(node);
|
|
688
|
-
if (cached !== undefined) {
|
|
689
|
-
return cached;
|
|
690
|
-
}
|
|
691
|
-
var result = isAutoFocusAllowedUncached(node, isAutoFocusAllowedCached.bind(undefined, cache));
|
|
692
|
-
cache.set(node, result);
|
|
693
|
-
return result;
|
|
694
|
-
};
|
|
695
|
-
var getDataset = function (node) {
|
|
696
|
-
// @ts-ignore
|
|
697
|
-
return node.dataset;
|
|
698
|
-
};
|
|
699
|
-
var isHTMLButtonElement = function (node) { return node.tagName === 'BUTTON'; };
|
|
700
|
-
var isHTMLInputElement = function (node) { return node.tagName === 'INPUT'; };
|
|
701
|
-
var isRadioElement = function (node) {
|
|
702
|
-
return isHTMLInputElement(node) && node.type === 'radio';
|
|
703
|
-
};
|
|
704
|
-
var notHiddenInput = function (node) {
|
|
705
|
-
return !((isHTMLInputElement(node) || isHTMLButtonElement(node)) && (node.type === 'hidden' || node.disabled));
|
|
706
|
-
};
|
|
707
|
-
var isAutoFocusAllowed = function (node) {
|
|
708
|
-
var attribute = node.getAttribute(FOCUS_NO_AUTOFOCUS);
|
|
709
|
-
return ![true, 'true', ''].includes(attribute);
|
|
710
|
-
};
|
|
711
|
-
var isGuard = function (node) { var _a; return Boolean(node && ((_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.focusGuard)); };
|
|
712
|
-
var isNotAGuard = function (node) { return !isGuard(node); };
|
|
713
|
-
var isDefined = function (x) { return Boolean(x); };
|
|
714
|
-
|
|
715
|
-
var tabSort = function (a, b) {
|
|
716
|
-
var aTab = Math.max(0, a.tabIndex);
|
|
717
|
-
var bTab = Math.max(0, b.tabIndex);
|
|
718
|
-
var tabDiff = aTab - bTab;
|
|
719
|
-
var indexDiff = a.index - b.index;
|
|
720
|
-
if (tabDiff) {
|
|
721
|
-
if (!aTab) {
|
|
722
|
-
return 1;
|
|
723
|
-
}
|
|
724
|
-
if (!bTab) {
|
|
725
|
-
return -1;
|
|
726
|
-
}
|
|
727
|
-
}
|
|
728
|
-
return tabDiff || indexDiff;
|
|
729
|
-
};
|
|
730
|
-
var getTabIndex = function (node) {
|
|
731
|
-
if (node.tabIndex < 0) {
|
|
732
|
-
// all "focusable" elements are already preselected
|
|
733
|
-
// but some might have implicit negative tabIndex
|
|
734
|
-
// return 0 for <audio without tabIndex attribute - it is "tabbable"
|
|
735
|
-
if (!node.hasAttribute('tabindex')) {
|
|
736
|
-
return 0;
|
|
737
|
-
}
|
|
738
|
-
}
|
|
739
|
-
return node.tabIndex;
|
|
740
|
-
};
|
|
741
|
-
var orderByTabIndex = function (nodes, filterNegative, keepGuards) {
|
|
742
|
-
return toArray(nodes)
|
|
743
|
-
.map(function (node, index) {
|
|
744
|
-
var tabIndex = getTabIndex(node);
|
|
745
|
-
return {
|
|
746
|
-
node: node,
|
|
747
|
-
index: index,
|
|
748
|
-
tabIndex: keepGuards && tabIndex === -1 ? ((node.dataset || {}).focusGuard ? 0 : -1) : tabIndex,
|
|
749
|
-
};
|
|
750
|
-
})
|
|
751
|
-
.filter(function (data) { return !filterNegative || data.tabIndex >= 0; })
|
|
752
|
-
.sort(tabSort);
|
|
753
|
-
};
|
|
754
|
-
|
|
755
|
-
/**
|
|
756
|
-
* list of the object to be considered as focusable
|
|
757
|
-
*/
|
|
758
|
-
var tabbables = [
|
|
759
|
-
'button:enabled',
|
|
760
|
-
'select:enabled',
|
|
761
|
-
'textarea:enabled',
|
|
762
|
-
'input:enabled',
|
|
763
|
-
// elements with explicit roles will also use explicit tabindex
|
|
764
|
-
// '[role="button"]',
|
|
765
|
-
'a[href]',
|
|
766
|
-
'area[href]',
|
|
767
|
-
'summary',
|
|
768
|
-
'iframe',
|
|
769
|
-
'object',
|
|
770
|
-
'embed',
|
|
771
|
-
'audio[controls]',
|
|
772
|
-
'video[controls]',
|
|
773
|
-
'[tabindex]',
|
|
774
|
-
'[contenteditable]',
|
|
775
|
-
'[autofocus]',
|
|
776
|
-
];
|
|
777
|
-
|
|
778
|
-
var queryTabbables = tabbables.join(',');
|
|
779
|
-
var queryGuardTabbables = "".concat(queryTabbables, ", [data-focus-guard]");
|
|
780
|
-
var getFocusablesWithShadowDom = function (parent, withGuards) {
|
|
781
|
-
return toArray((parent.shadowRoot || parent).children).reduce(function (acc, child) {
|
|
782
|
-
return acc.concat(child.matches(withGuards ? queryGuardTabbables : queryTabbables) ? [child] : [], getFocusablesWithShadowDom(child));
|
|
783
|
-
}, []);
|
|
784
|
-
};
|
|
785
|
-
var getFocusablesWithIFrame = function (parent, withGuards) {
|
|
786
|
-
var _a;
|
|
787
|
-
// contentDocument of iframe will be null if current origin cannot access it
|
|
788
|
-
if (parent instanceof HTMLIFrameElement && ((_a = parent.contentDocument) === null || _a === void 0 ? void 0 : _a.body)) {
|
|
789
|
-
return getFocusables([parent.contentDocument.body], withGuards);
|
|
790
|
-
}
|
|
791
|
-
return [parent];
|
|
792
|
-
};
|
|
793
|
-
var getFocusables = function (parents, withGuards) {
|
|
794
|
-
return parents.reduce(function (acc, parent) {
|
|
795
|
-
var _a;
|
|
796
|
-
var focusableWithShadowDom = getFocusablesWithShadowDom(parent, withGuards);
|
|
797
|
-
var focusableWithIframes = (_a = []).concat.apply(_a, focusableWithShadowDom.map(function (node) { return getFocusablesWithIFrame(node, withGuards); }));
|
|
798
|
-
return acc.concat(
|
|
799
|
-
// add all tabbables inside and within shadow DOMs in DOM order
|
|
800
|
-
focusableWithIframes,
|
|
801
|
-
// add if node is tabbable itself
|
|
802
|
-
parent.parentNode
|
|
803
|
-
? toArray(parent.parentNode.querySelectorAll(queryTabbables)).filter(function (node) { return node === parent; })
|
|
804
|
-
: []);
|
|
805
|
-
}, []);
|
|
806
|
-
};
|
|
807
|
-
/**
|
|
808
|
-
* return a list of focusable nodes within an area marked as "auto-focusable"
|
|
809
|
-
* @param parent
|
|
810
|
-
*/
|
|
811
|
-
var getParentAutofocusables = function (parent) {
|
|
812
|
-
var parentFocus = parent.querySelectorAll("[".concat(FOCUS_AUTO, "]"));
|
|
813
|
-
return toArray(parentFocus)
|
|
814
|
-
.map(function (node) { return getFocusables([node]); })
|
|
815
|
-
.reduce(function (acc, nodes) { return acc.concat(nodes); }, []);
|
|
816
|
-
};
|
|
817
|
-
|
|
818
|
-
/**
|
|
819
|
-
* given list of focusable elements keeps the ones user can interact with
|
|
820
|
-
* @param nodes
|
|
821
|
-
* @param visibilityCache
|
|
822
|
-
*/
|
|
823
|
-
var filterFocusable = function (nodes, visibilityCache) {
|
|
824
|
-
return toArray(nodes)
|
|
825
|
-
.filter(function (node) { return isVisibleCached(visibilityCache, node); })
|
|
826
|
-
.filter(function (node) { return notHiddenInput(node); });
|
|
827
|
-
};
|
|
828
|
-
var filterAutoFocusable = function (nodes, cache) {
|
|
829
|
-
if (cache === void 0) { cache = new Map(); }
|
|
830
|
-
return toArray(nodes).filter(function (node) { return isAutoFocusAllowedCached(cache, node); });
|
|
831
|
-
};
|
|
832
|
-
/**
|
|
833
|
-
* !__WARNING__! Low level API.
|
|
834
|
-
* @returns all tabbable nodes
|
|
835
|
-
*
|
|
836
|
-
* @see {@link getFocusableNodes} to get any focusable element
|
|
837
|
-
*
|
|
838
|
-
* @param topNodes - array of top level HTMLElements to search inside
|
|
839
|
-
* @param visibilityCache - an cache to store intermediate measurements. Expected to be a fresh `new Map` on every call
|
|
840
|
-
*/
|
|
841
|
-
var getTabbableNodes = function (topNodes, visibilityCache, withGuards) {
|
|
842
|
-
return orderByTabIndex(filterFocusable(getFocusables(topNodes, withGuards), visibilityCache), true, withGuards);
|
|
843
|
-
};
|
|
844
|
-
/**
|
|
845
|
-
* !__WARNING__! Low level API.
|
|
846
|
-
*
|
|
847
|
-
* @returns anything "focusable", not only tabbable. The difference is in `tabIndex=-1`
|
|
848
|
-
* (without guards, as long as they are not expected to be ever focused)
|
|
849
|
-
*
|
|
850
|
-
* @see {@link getTabbableNodes} to get only tabble nodes element
|
|
851
|
-
*
|
|
852
|
-
* @param topNodes - array of top level HTMLElements to search inside
|
|
853
|
-
* @param visibilityCache - an cache to store intermediate measurements. Expected to be a fresh `new Map` on every call
|
|
854
|
-
*/
|
|
855
|
-
var getFocusableNodes = function (topNodes, visibilityCache) {
|
|
856
|
-
return orderByTabIndex(filterFocusable(getFocusables(topNodes), visibilityCache), false);
|
|
857
|
-
};
|
|
858
|
-
/**
|
|
859
|
-
* return list of nodes which are expected to be auto-focused
|
|
860
|
-
* @param topNode
|
|
861
|
-
* @param visibilityCache
|
|
862
|
-
*/
|
|
863
|
-
var parentAutofocusables = function (topNode, visibilityCache) {
|
|
864
|
-
return filterFocusable(getParentAutofocusables(topNode), visibilityCache);
|
|
865
|
-
};
|
|
866
|
-
/*
|
|
867
|
-
* Determines if element is contained in scope, including nested shadow DOMs
|
|
868
|
-
*/
|
|
869
|
-
var contains = function (scope, element) {
|
|
870
|
-
if (scope.shadowRoot) {
|
|
871
|
-
return contains(scope.shadowRoot, element);
|
|
872
|
-
}
|
|
873
|
-
else {
|
|
874
|
-
if (Object.getPrototypeOf(scope).contains !== undefined &&
|
|
875
|
-
Object.getPrototypeOf(scope).contains.call(scope, element)) {
|
|
876
|
-
return true;
|
|
877
|
-
}
|
|
878
|
-
return toArray(scope.children).some(function (child) {
|
|
879
|
-
var _a;
|
|
880
|
-
if (child instanceof HTMLIFrameElement) {
|
|
881
|
-
var iframeBody = (_a = child.contentDocument) === null || _a === void 0 ? void 0 : _a.body;
|
|
882
|
-
if (iframeBody) {
|
|
883
|
-
return contains(iframeBody, element);
|
|
884
|
-
}
|
|
885
|
-
return false;
|
|
886
|
-
}
|
|
887
|
-
return contains(child, element);
|
|
888
|
-
});
|
|
889
|
-
}
|
|
890
|
-
};
|
|
891
|
-
|
|
892
|
-
/**
|
|
893
|
-
* in case of multiple nodes nested inside each other
|
|
894
|
-
* keeps only top ones
|
|
895
|
-
* this is O(nlogn)
|
|
896
|
-
* @param nodes
|
|
897
|
-
* @returns {*}
|
|
898
|
-
*/
|
|
899
|
-
var filterNested = function (nodes) {
|
|
900
|
-
var contained = new Set();
|
|
901
|
-
var l = nodes.length;
|
|
902
|
-
for (var i = 0; i < l; i += 1) {
|
|
903
|
-
for (var j = i + 1; j < l; j += 1) {
|
|
904
|
-
var position = nodes[i].compareDocumentPosition(nodes[j]);
|
|
905
|
-
/* eslint-disable no-bitwise */
|
|
906
|
-
if ((position & Node.DOCUMENT_POSITION_CONTAINED_BY) > 0) {
|
|
907
|
-
contained.add(j);
|
|
908
|
-
}
|
|
909
|
-
if ((position & Node.DOCUMENT_POSITION_CONTAINS) > 0) {
|
|
910
|
-
contained.add(i);
|
|
911
|
-
}
|
|
912
|
-
/* eslint-enable */
|
|
913
|
-
}
|
|
914
|
-
}
|
|
915
|
-
return nodes.filter(function (_, index) { return !contained.has(index); });
|
|
916
|
-
};
|
|
917
|
-
/**
|
|
918
|
-
* finds top most parent for a node
|
|
919
|
-
* @param node
|
|
920
|
-
* @returns {*}
|
|
921
|
-
*/
|
|
922
|
-
var getTopParent = function (node) {
|
|
923
|
-
return node.parentNode ? getTopParent(node.parentNode) : node;
|
|
924
|
-
};
|
|
925
|
-
/**
|
|
926
|
-
* returns all "focus containers" inside a given node
|
|
927
|
-
* @param node - node or nodes to look inside
|
|
928
|
-
* @returns Element[]
|
|
929
|
-
*/
|
|
930
|
-
var getAllAffectedNodes = function (node) {
|
|
931
|
-
var nodes = asArray(node);
|
|
932
|
-
return nodes.filter(Boolean).reduce(function (acc, currentNode) {
|
|
933
|
-
var group = currentNode.getAttribute(FOCUS_GROUP);
|
|
934
|
-
acc.push.apply(acc, (group
|
|
935
|
-
? filterNested(toArray(getTopParent(currentNode).querySelectorAll("[".concat(FOCUS_GROUP, "=\"").concat(group, "\"]:not([").concat(FOCUS_DISABLED, "=\"disabled\"])"))))
|
|
936
|
-
: [currentNode]));
|
|
937
|
-
return acc;
|
|
938
|
-
}, []);
|
|
939
|
-
};
|
|
940
|
-
|
|
941
|
-
var safeProbe = function (cb) {
|
|
942
|
-
try {
|
|
943
|
-
return cb();
|
|
944
|
-
}
|
|
945
|
-
catch (e) {
|
|
946
|
-
return undefined;
|
|
947
|
-
}
|
|
948
|
-
};
|
|
949
|
-
|
|
950
|
-
/**
|
|
951
|
-
* returns active element from document or from nested shadowdoms
|
|
952
|
-
*/
|
|
953
|
-
/**
|
|
954
|
-
* returns current active element. If the active element is a "container" itself(shadowRoot or iframe) returns active element inside it
|
|
955
|
-
* @param [inDocument]
|
|
956
|
-
*/
|
|
957
|
-
var getActiveElement = function (inDocument) {
|
|
958
|
-
if (inDocument === void 0) { inDocument = document; }
|
|
959
|
-
if (!inDocument || !inDocument.activeElement) {
|
|
960
|
-
return undefined;
|
|
961
|
-
}
|
|
962
|
-
var activeElement = inDocument.activeElement;
|
|
963
|
-
return (activeElement.shadowRoot
|
|
964
|
-
? getActiveElement(activeElement.shadowRoot)
|
|
965
|
-
: activeElement instanceof HTMLIFrameElement && safeProbe(function () { return activeElement.contentWindow.document; })
|
|
966
|
-
? getActiveElement(activeElement.contentWindow.document)
|
|
967
|
-
: activeElement);
|
|
968
|
-
};
|
|
969
|
-
|
|
970
|
-
var focusInFrame = function (frame, activeElement) { return frame === activeElement; };
|
|
971
|
-
var focusInsideIframe = function (topNode, activeElement) {
|
|
972
|
-
return Boolean(toArray(topNode.querySelectorAll('iframe')).some(function (node) { return focusInFrame(node, activeElement); }));
|
|
973
|
-
};
|
|
974
|
-
/**
|
|
975
|
-
* @returns {Boolean} true, if the current focus is inside given node or nodes.
|
|
976
|
-
* Supports nodes hidden inside shadowDom
|
|
977
|
-
*/
|
|
978
|
-
var focusInside = function (topNode, activeElement) {
|
|
979
|
-
// const activeElement = document && getActiveElement();
|
|
980
|
-
if (activeElement === void 0) { activeElement = getActiveElement(getFirst(topNode).ownerDocument); }
|
|
981
|
-
if (!activeElement || (activeElement.dataset && activeElement.dataset.focusGuard)) {
|
|
982
|
-
return false;
|
|
983
|
-
}
|
|
984
|
-
return getAllAffectedNodes(topNode).some(function (node) {
|
|
985
|
-
return contains(node, activeElement) || focusInsideIframe(node, activeElement);
|
|
986
|
-
});
|
|
987
|
-
};
|
|
988
|
-
|
|
989
|
-
/**
|
|
990
|
-
* checks if focus is hidden FROM the focus-lock
|
|
991
|
-
* ie contained inside a node focus-lock shall ignore
|
|
992
|
-
*
|
|
993
|
-
* This is a utility function coupled with {@link FOCUS_ALLOW} constant
|
|
994
|
-
*
|
|
995
|
-
* @returns {boolean} focus is currently is in "allow" area
|
|
996
|
-
*/
|
|
997
|
-
var focusIsHidden = function (inDocument) {
|
|
998
|
-
if (inDocument === void 0) { inDocument = document; }
|
|
999
|
-
var activeElement = getActiveElement(inDocument);
|
|
1000
|
-
if (!activeElement) {
|
|
1001
|
-
return false;
|
|
1002
|
-
}
|
|
1003
|
-
// this does not support setting FOCUS_ALLOW within shadow dom
|
|
1004
|
-
return toArray(inDocument.querySelectorAll("[".concat(FOCUS_ALLOW, "]"))).some(function (node) { return contains(node, activeElement); });
|
|
1005
|
-
};
|
|
1006
|
-
|
|
1007
|
-
var findSelectedRadio = function (node, nodes) {
|
|
1008
|
-
return nodes
|
|
1009
|
-
.filter(isRadioElement)
|
|
1010
|
-
.filter(function (el) { return el.name === node.name; })
|
|
1011
|
-
.filter(function (el) { return el.checked; })[0] || node;
|
|
1012
|
-
};
|
|
1013
|
-
var correctNode = function (node, nodes) {
|
|
1014
|
-
if (isRadioElement(node) && node.name) {
|
|
1015
|
-
return findSelectedRadio(node, nodes);
|
|
1016
|
-
}
|
|
1017
|
-
return node;
|
|
1018
|
-
};
|
|
1019
|
-
/**
|
|
1020
|
-
* giving a set of radio inputs keeps only selected (tabbable) ones
|
|
1021
|
-
* @param nodes
|
|
1022
|
-
*/
|
|
1023
|
-
var correctNodes = function (nodes) {
|
|
1024
|
-
// IE11 has no Set(array) constructor
|
|
1025
|
-
var resultSet = new Set();
|
|
1026
|
-
nodes.forEach(function (node) { return resultSet.add(correctNode(node, nodes)); });
|
|
1027
|
-
// using filter to support IE11
|
|
1028
|
-
return nodes.filter(function (node) { return resultSet.has(node); });
|
|
1029
|
-
};
|
|
1030
|
-
|
|
1031
|
-
var pickFirstFocus = function (nodes) {
|
|
1032
|
-
if (nodes[0] && nodes.length > 1) {
|
|
1033
|
-
return correctNode(nodes[0], nodes);
|
|
1034
|
-
}
|
|
1035
|
-
return nodes[0];
|
|
1036
|
-
};
|
|
1037
|
-
var pickFocusable = function (nodes, node) {
|
|
1038
|
-
return nodes.indexOf(correctNode(node, nodes));
|
|
1039
|
-
};
|
|
1040
|
-
|
|
1041
|
-
var NEW_FOCUS = 'NEW_FOCUS';
|
|
1042
|
-
/**
|
|
1043
|
-
* Main solver for the "find next focus" question
|
|
1044
|
-
* @param innerNodes - used to control "return focus"
|
|
1045
|
-
* @param innerTabbables - used to control "autofocus"
|
|
1046
|
-
* @param outerNodes
|
|
1047
|
-
* @param activeElement
|
|
1048
|
-
* @param lastNode
|
|
1049
|
-
* @returns {number|string|undefined|*}
|
|
1050
|
-
*/
|
|
1051
|
-
var newFocus = function (innerNodes, innerTabbables, outerNodes, activeElement, lastNode) {
|
|
1052
|
-
var cnt = innerNodes.length;
|
|
1053
|
-
var firstFocus = innerNodes[0];
|
|
1054
|
-
var lastFocus = innerNodes[cnt - 1];
|
|
1055
|
-
var isOnGuard = isGuard(activeElement);
|
|
1056
|
-
// focus is inside
|
|
1057
|
-
if (activeElement && innerNodes.indexOf(activeElement) >= 0) {
|
|
1058
|
-
return undefined;
|
|
1059
|
-
}
|
|
1060
|
-
var activeIndex = activeElement !== undefined ? outerNodes.indexOf(activeElement) : -1;
|
|
1061
|
-
var lastIndex = lastNode ? outerNodes.indexOf(lastNode) : activeIndex;
|
|
1062
|
-
var lastNodeInside = lastNode ? innerNodes.indexOf(lastNode) : -1;
|
|
1063
|
-
// no active focus (or focus is on the body)
|
|
1064
|
-
if (activeIndex === -1) {
|
|
1065
|
-
// known fallback
|
|
1066
|
-
if (lastNodeInside !== -1) {
|
|
1067
|
-
return lastNodeInside;
|
|
1068
|
-
}
|
|
1069
|
-
return NEW_FOCUS;
|
|
1070
|
-
}
|
|
1071
|
-
// new focus, nothing to calculate
|
|
1072
|
-
if (lastNodeInside === -1) {
|
|
1073
|
-
return NEW_FOCUS;
|
|
1074
|
-
}
|
|
1075
|
-
var indexDiff = activeIndex - lastIndex;
|
|
1076
|
-
var firstNodeIndex = outerNodes.indexOf(firstFocus);
|
|
1077
|
-
var lastNodeIndex = outerNodes.indexOf(lastFocus);
|
|
1078
|
-
var correctedNodes = correctNodes(outerNodes);
|
|
1079
|
-
var correctedIndex = activeElement !== undefined ? correctedNodes.indexOf(activeElement) : -1;
|
|
1080
|
-
var correctedIndexDiff = correctedIndex - (lastNode ? correctedNodes.indexOf(lastNode) : activeIndex);
|
|
1081
|
-
// old focus
|
|
1082
|
-
if (!indexDiff && lastNodeInside >= 0) {
|
|
1083
|
-
return lastNodeInside;
|
|
1084
|
-
}
|
|
1085
|
-
// no tabbable elements, autofocus is not possible
|
|
1086
|
-
if (innerTabbables.length === 0) {
|
|
1087
|
-
// an edge case with no tabbable elements
|
|
1088
|
-
// return the last focusable one
|
|
1089
|
-
// with some probability this will prevent focus from cycling across the lock, but there is no tabbale elements to cycle to
|
|
1090
|
-
return lastNodeInside;
|
|
1091
|
-
}
|
|
1092
|
-
var returnFirstNode = pickFocusable(innerNodes, innerTabbables[0]);
|
|
1093
|
-
var returnLastNode = pickFocusable(innerNodes, innerTabbables[innerTabbables.length - 1]);
|
|
1094
|
-
// first element
|
|
1095
|
-
if (activeIndex <= firstNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {
|
|
1096
|
-
return returnLastNode;
|
|
1097
|
-
}
|
|
1098
|
-
// last element
|
|
1099
|
-
if (activeIndex >= lastNodeIndex && isOnGuard && Math.abs(indexDiff) > 1) {
|
|
1100
|
-
return returnFirstNode;
|
|
1101
|
-
}
|
|
1102
|
-
// jump out, but not on the guard
|
|
1103
|
-
if (indexDiff && Math.abs(correctedIndexDiff) > 1) {
|
|
1104
|
-
return lastNodeInside;
|
|
1105
|
-
}
|
|
1106
|
-
// focus above lock
|
|
1107
|
-
if (activeIndex <= firstNodeIndex) {
|
|
1108
|
-
return returnLastNode;
|
|
1109
|
-
}
|
|
1110
|
-
// focus below lock
|
|
1111
|
-
if (activeIndex > lastNodeIndex) {
|
|
1112
|
-
return returnFirstNode;
|
|
1113
|
-
}
|
|
1114
|
-
// index is inside tab order, but outside Lock
|
|
1115
|
-
if (indexDiff) {
|
|
1116
|
-
if (Math.abs(indexDiff) > 1) {
|
|
1117
|
-
return lastNodeInside;
|
|
1118
|
-
}
|
|
1119
|
-
return (cnt + lastNodeInside + indexDiff) % cnt;
|
|
1120
|
-
}
|
|
1121
|
-
// do nothing
|
|
1122
|
-
return undefined;
|
|
1123
|
-
};
|
|
1124
|
-
|
|
1125
|
-
var findAutoFocused = function (autoFocusables) {
|
|
1126
|
-
return function (node) {
|
|
1127
|
-
var _a;
|
|
1128
|
-
var autofocus = (_a = getDataset(node)) === null || _a === void 0 ? void 0 : _a.autofocus;
|
|
1129
|
-
return (
|
|
1130
|
-
// @ts-expect-error
|
|
1131
|
-
node.autofocus ||
|
|
1132
|
-
//
|
|
1133
|
-
(autofocus !== undefined && autofocus !== 'false') ||
|
|
1134
|
-
//
|
|
1135
|
-
autoFocusables.indexOf(node) >= 0);
|
|
1136
|
-
};
|
|
1137
|
-
};
|
|
1138
|
-
var pickAutofocus = function (nodesIndexes, orderedNodes, groups) {
|
|
1139
|
-
var nodes = nodesIndexes.map(function (_a) {
|
|
1140
|
-
var node = _a.node;
|
|
1141
|
-
return node;
|
|
1142
|
-
});
|
|
1143
|
-
var autoFocusable = filterAutoFocusable(nodes.filter(findAutoFocused(groups)));
|
|
1144
|
-
if (autoFocusable && autoFocusable.length) {
|
|
1145
|
-
return pickFirstFocus(autoFocusable);
|
|
1146
|
-
}
|
|
1147
|
-
return pickFirstFocus(filterAutoFocusable(orderedNodes));
|
|
1148
|
-
};
|
|
1149
|
-
|
|
1150
|
-
var getParents = function (node, parents) {
|
|
1151
|
-
if (parents === void 0) { parents = []; }
|
|
1152
|
-
parents.push(node);
|
|
1153
|
-
if (node.parentNode) {
|
|
1154
|
-
getParents(node.parentNode.host || node.parentNode, parents);
|
|
1155
|
-
}
|
|
1156
|
-
return parents;
|
|
1157
|
-
};
|
|
1158
|
-
/**
|
|
1159
|
-
* finds a parent for both nodeA and nodeB
|
|
1160
|
-
* @param nodeA
|
|
1161
|
-
* @param nodeB
|
|
1162
|
-
* @returns {boolean|*}
|
|
1163
|
-
*/
|
|
1164
|
-
var getCommonParent = function (nodeA, nodeB) {
|
|
1165
|
-
var parentsA = getParents(nodeA);
|
|
1166
|
-
var parentsB = getParents(nodeB);
|
|
1167
|
-
// tslint:disable-next-line:prefer-for-of
|
|
1168
|
-
for (var i = 0; i < parentsA.length; i += 1) {
|
|
1169
|
-
var currentParent = parentsA[i];
|
|
1170
|
-
if (parentsB.indexOf(currentParent) >= 0) {
|
|
1171
|
-
return currentParent;
|
|
1172
|
-
}
|
|
1173
|
-
}
|
|
1174
|
-
return false;
|
|
1175
|
-
};
|
|
1176
|
-
var getTopCommonParent = function (baseActiveElement, leftEntry, rightEntries) {
|
|
1177
|
-
var activeElements = asArray(baseActiveElement);
|
|
1178
|
-
var leftEntries = asArray(leftEntry);
|
|
1179
|
-
var activeElement = activeElements[0];
|
|
1180
|
-
var topCommon = false;
|
|
1181
|
-
leftEntries.filter(Boolean).forEach(function (entry) {
|
|
1182
|
-
topCommon = getCommonParent(topCommon || entry, entry) || topCommon;
|
|
1183
|
-
rightEntries.filter(Boolean).forEach(function (subEntry) {
|
|
1184
|
-
var common = getCommonParent(activeElement, subEntry);
|
|
1185
|
-
if (common) {
|
|
1186
|
-
if (!topCommon || contains(common, topCommon)) {
|
|
1187
|
-
topCommon = common;
|
|
1188
|
-
}
|
|
1189
|
-
else {
|
|
1190
|
-
topCommon = getCommonParent(common, topCommon);
|
|
1191
|
-
}
|
|
1192
|
-
}
|
|
1193
|
-
});
|
|
1194
|
-
});
|
|
1195
|
-
// TODO: add assert here?
|
|
1196
|
-
return topCommon;
|
|
1197
|
-
};
|
|
1198
|
-
/**
|
|
1199
|
-
* return list of nodes which are expected to be autofocused inside a given top nodes
|
|
1200
|
-
* @param entries
|
|
1201
|
-
* @param visibilityCache
|
|
1202
|
-
*/
|
|
1203
|
-
var allParentAutofocusables = function (entries, visibilityCache) {
|
|
1204
|
-
return entries.reduce(function (acc, node) { return acc.concat(parentAutofocusables(node, visibilityCache)); }, []);
|
|
1205
|
-
};
|
|
1206
|
-
|
|
1207
|
-
var reorderNodes = function (srcNodes, dstNodes) {
|
|
1208
|
-
var remap = new Map();
|
|
1209
|
-
// no Set(dstNodes) for IE11 :(
|
|
1210
|
-
dstNodes.forEach(function (entity) { return remap.set(entity.node, entity); });
|
|
1211
|
-
// remap to dstNodes
|
|
1212
|
-
return srcNodes.map(function (node) { return remap.get(node); }).filter(isDefined);
|
|
1213
|
-
};
|
|
1214
|
-
/**
|
|
1215
|
-
* contains the main logic of the `focus-lock` package.
|
|
1216
|
-
*
|
|
1217
|
-
* ! you probably dont need this function !
|
|
1218
|
-
*
|
|
1219
|
-
* given top node(s) and the last active element returns the element to be focused next
|
|
1220
|
-
* @returns element which should be focused to move focus inside
|
|
1221
|
-
* @param topNode
|
|
1222
|
-
* @param lastNode
|
|
1223
|
-
*/
|
|
1224
|
-
var focusSolver = function (topNode, lastNode) {
|
|
1225
|
-
var activeElement = getActiveElement(asArray(topNode).length > 0 ? document : getFirst(topNode).ownerDocument);
|
|
1226
|
-
var entries = getAllAffectedNodes(topNode).filter(isNotAGuard);
|
|
1227
|
-
var commonParent = getTopCommonParent(activeElement || topNode, topNode, entries);
|
|
1228
|
-
var visibilityCache = new Map();
|
|
1229
|
-
var anyFocusable = getFocusableNodes(entries, visibilityCache);
|
|
1230
|
-
var innerElements = anyFocusable.filter(function (_a) {
|
|
1231
|
-
var node = _a.node;
|
|
1232
|
-
return isNotAGuard(node);
|
|
1233
|
-
});
|
|
1234
|
-
if (!innerElements[0]) {
|
|
1235
|
-
return undefined;
|
|
1236
|
-
}
|
|
1237
|
-
var outerNodes = getFocusableNodes([commonParent], visibilityCache).map(function (_a) {
|
|
1238
|
-
var node = _a.node;
|
|
1239
|
-
return node;
|
|
1240
|
-
});
|
|
1241
|
-
var orderedInnerElements = reorderNodes(outerNodes, innerElements);
|
|
1242
|
-
// collect inner focusable and separately tabbables
|
|
1243
|
-
var innerFocusables = orderedInnerElements.map(function (_a) {
|
|
1244
|
-
var node = _a.node;
|
|
1245
|
-
return node;
|
|
1246
|
-
});
|
|
1247
|
-
var innerTabbable = orderedInnerElements.filter(function (_a) {
|
|
1248
|
-
var tabIndex = _a.tabIndex;
|
|
1249
|
-
return tabIndex >= 0;
|
|
1250
|
-
}).map(function (_a) {
|
|
1251
|
-
var node = _a.node;
|
|
1252
|
-
return node;
|
|
1253
|
-
});
|
|
1254
|
-
var newId = newFocus(innerFocusables, innerTabbable, outerNodes, activeElement, lastNode);
|
|
1255
|
-
if (newId === NEW_FOCUS) {
|
|
1256
|
-
var focusNode =
|
|
1257
|
-
// first try only tabbable, and the fallback to all focusable, as long as at least one element should be picked for focus
|
|
1258
|
-
pickAutofocus(anyFocusable, innerTabbable, allParentAutofocusables(entries, visibilityCache)) ||
|
|
1259
|
-
pickAutofocus(anyFocusable, innerFocusables, allParentAutofocusables(entries, visibilityCache));
|
|
1260
|
-
if (focusNode) {
|
|
1261
|
-
return { node: focusNode };
|
|
1262
|
-
}
|
|
1263
|
-
else {
|
|
1264
|
-
console.warn('focus-lock: cannot find any node to move focus into');
|
|
1265
|
-
return undefined;
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
if (newId === undefined) {
|
|
1269
|
-
return newId;
|
|
1270
|
-
}
|
|
1271
|
-
return orderedInnerElements[newId];
|
|
1272
|
-
};
|
|
1273
|
-
|
|
1274
|
-
/**
|
|
1275
|
-
* traverses all related nodes (including groups) returning a list of all nodes(outer and internal) with meta information
|
|
1276
|
-
* This is low-level API!
|
|
1277
|
-
* @returns list of focusable elements inside a given top(!) node.
|
|
1278
|
-
* @see {@link getFocusableNodes} providing a simpler API
|
|
1279
|
-
*/
|
|
1280
|
-
var expandFocusableNodes = function (topNode) {
|
|
1281
|
-
var entries = getAllAffectedNodes(topNode).filter(isNotAGuard);
|
|
1282
|
-
var commonParent = getTopCommonParent(topNode, topNode, entries);
|
|
1283
|
-
var outerNodes = orderByTabIndex(getFocusables([commonParent], true), true, true);
|
|
1284
|
-
var innerElements = getFocusables(entries, false);
|
|
1285
|
-
return outerNodes.map(function (_a) {
|
|
1286
|
-
var node = _a.node, index = _a.index;
|
|
1287
|
-
return ({
|
|
1288
|
-
node: node,
|
|
1289
|
-
index: index,
|
|
1290
|
-
lockItem: innerElements.indexOf(node) >= 0,
|
|
1291
|
-
guard: isGuard(node),
|
|
1292
|
-
});
|
|
1293
|
-
});
|
|
1294
|
-
};
|
|
1295
|
-
|
|
1296
|
-
var focusOn = function (target, focusOptions) {
|
|
1297
|
-
if (!target) {
|
|
1298
|
-
// not clear how, but is possible https://github.com/theKashey/focus-lock/issues/53
|
|
1299
|
-
return;
|
|
1300
|
-
}
|
|
1301
|
-
if ('focus' in target) {
|
|
1302
|
-
target.focus(focusOptions);
|
|
1303
|
-
}
|
|
1304
|
-
if ('contentWindow' in target && target.contentWindow) {
|
|
1305
|
-
target.contentWindow.focus();
|
|
1306
|
-
}
|
|
1307
|
-
};
|
|
1308
|
-
|
|
1309
|
-
var guardCount = 0;
|
|
1310
|
-
var lockDisabled = false;
|
|
1311
|
-
/**
|
|
1312
|
-
* The main functionality of the focus-lock package
|
|
1313
|
-
*
|
|
1314
|
-
* Contains focus at a given node.
|
|
1315
|
-
* The last focused element will help to determine which element(first or last) should be focused.
|
|
1316
|
-
* The found element will be focused.
|
|
1317
|
-
*
|
|
1318
|
-
* This is one time action (move), not a persistent focus-lock
|
|
1319
|
-
*
|
|
1320
|
-
* HTML markers (see {@link import('./constants').FOCUS_AUTO} constants) can control autofocus
|
|
1321
|
-
* @see {@link focusSolver} for the same functionality without autofocus
|
|
1322
|
-
*/
|
|
1323
|
-
var moveFocusInside = function (topNode, lastNode, options) {
|
|
1324
|
-
if (options === void 0) { options = {}; }
|
|
1325
|
-
var focusable = focusSolver(topNode, lastNode);
|
|
1326
|
-
// global local side effect to countain recursive lock activation and resolve focus-fighting
|
|
1327
|
-
if (lockDisabled) {
|
|
1328
|
-
return;
|
|
1329
|
-
}
|
|
1330
|
-
if (focusable) {
|
|
1331
|
-
/** +FOCUS-FIGHTING prevention **/
|
|
1332
|
-
if (guardCount > 2) {
|
|
1333
|
-
// we have recursive entered back the lock activation
|
|
1334
|
-
console.error('FocusLock: focus-fighting detected. Only one focus management system could be active. ' +
|
|
1335
|
-
'See https://github.com/theKashey/focus-lock/#focus-fighting');
|
|
1336
|
-
lockDisabled = true;
|
|
1337
|
-
setTimeout(function () {
|
|
1338
|
-
lockDisabled = false;
|
|
1339
|
-
}, 1);
|
|
1340
|
-
return;
|
|
1341
|
-
}
|
|
1342
|
-
guardCount++;
|
|
1343
|
-
focusOn(focusable.node, options.focusOptions);
|
|
1344
|
-
guardCount--;
|
|
1345
|
-
}
|
|
1346
|
-
};
|
|
1347
|
-
|
|
1348
|
-
function weakRef(value) {
|
|
1349
|
-
if (!value)
|
|
1350
|
-
return null;
|
|
1351
|
-
// #68 Safari 14.1 dont have it yet
|
|
1352
|
-
// FIXME: remove in 2025
|
|
1353
|
-
if (typeof WeakRef === 'undefined') {
|
|
1354
|
-
return function () { return value || null; };
|
|
1355
|
-
}
|
|
1356
|
-
var w = value ? new WeakRef(value) : null;
|
|
1357
|
-
return function () { return (w === null || w === void 0 ? void 0 : w.deref()) || null; };
|
|
1358
|
-
}
|
|
1359
|
-
var recordElementLocation = function (element) {
|
|
1360
|
-
if (!element) {
|
|
1361
|
-
return null;
|
|
1362
|
-
}
|
|
1363
|
-
var stack = [];
|
|
1364
|
-
var currentElement = element;
|
|
1365
|
-
while (currentElement && currentElement !== document.body) {
|
|
1366
|
-
stack.push({
|
|
1367
|
-
current: weakRef(currentElement),
|
|
1368
|
-
parent: weakRef(currentElement.parentElement),
|
|
1369
|
-
left: weakRef(currentElement.previousElementSibling),
|
|
1370
|
-
right: weakRef(currentElement.nextElementSibling),
|
|
1371
|
-
});
|
|
1372
|
-
currentElement = currentElement.parentElement;
|
|
1373
|
-
}
|
|
1374
|
-
return {
|
|
1375
|
-
element: weakRef(element),
|
|
1376
|
-
stack: stack,
|
|
1377
|
-
ownerDocument: element.ownerDocument,
|
|
1378
|
-
};
|
|
1379
|
-
};
|
|
1380
|
-
var restoreFocusTo = function (location) {
|
|
1381
|
-
var _a, _b, _c, _d, _e;
|
|
1382
|
-
if (!location) {
|
|
1383
|
-
return undefined;
|
|
1384
|
-
}
|
|
1385
|
-
var stack = location.stack, ownerDocument = location.ownerDocument;
|
|
1386
|
-
var visibilityCache = new Map();
|
|
1387
|
-
for (var _i = 0, stack_1 = stack; _i < stack_1.length; _i++) {
|
|
1388
|
-
var line = stack_1[_i];
|
|
1389
|
-
var parent_1 = (_a = line.parent) === null || _a === void 0 ? void 0 : _a.call(line);
|
|
1390
|
-
// is it still here?
|
|
1391
|
-
if (parent_1 && ownerDocument.contains(parent_1)) {
|
|
1392
|
-
var left = (_b = line.left) === null || _b === void 0 ? void 0 : _b.call(line);
|
|
1393
|
-
var savedCurrent = line.current();
|
|
1394
|
-
var current = parent_1.contains(savedCurrent) ? savedCurrent : undefined;
|
|
1395
|
-
var right = (_c = line.right) === null || _c === void 0 ? void 0 : _c.call(line);
|
|
1396
|
-
var focusables = getTabbableNodes([parent_1], visibilityCache);
|
|
1397
|
-
var aim =
|
|
1398
|
-
// that is element itself
|
|
1399
|
-
(_e = (_d = current !== null && current !== void 0 ? current :
|
|
1400
|
-
// or something in it's place
|
|
1401
|
-
left === null || left === void 0 ? void 0 : left.nextElementSibling) !== null && _d !== void 0 ? _d :
|
|
1402
|
-
// or somebody to the right, still close enough
|
|
1403
|
-
right) !== null && _e !== void 0 ? _e :
|
|
1404
|
-
// or somebody to the left, something?
|
|
1405
|
-
left;
|
|
1406
|
-
while (aim) {
|
|
1407
|
-
for (var _f = 0, focusables_1 = focusables; _f < focusables_1.length; _f++) {
|
|
1408
|
-
var focusable = focusables_1[_f];
|
|
1409
|
-
if (aim === null || aim === void 0 ? void 0 : aim.contains(focusable.node)) {
|
|
1410
|
-
return focusable.node;
|
|
1411
|
-
}
|
|
1412
|
-
}
|
|
1413
|
-
aim = aim.nextElementSibling;
|
|
1414
|
-
}
|
|
1415
|
-
if (focusables.length) {
|
|
1416
|
-
// if parent contains a focusable - move there
|
|
1417
|
-
return focusables[0].node;
|
|
1418
|
-
}
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
// nothing matched
|
|
1422
|
-
return undefined;
|
|
1423
|
-
};
|
|
1424
|
-
/**
|
|
1425
|
-
* Captures the current focused element to restore focus as close as possible in the future
|
|
1426
|
-
* Handles situations where the focused element is removed from the DOM or no longer focusable
|
|
1427
|
-
* moving focus to the closest focusable element
|
|
1428
|
-
* @param targetElement - element where focus should be restored
|
|
1429
|
-
* @returns a function returning a new element to focus
|
|
1430
|
-
*/
|
|
1431
|
-
var captureFocusRestore = function (targetElement) {
|
|
1432
|
-
var location = recordElementLocation(targetElement);
|
|
1433
|
-
return function () {
|
|
1434
|
-
return restoreFocusTo(location);
|
|
1435
|
-
};
|
|
1436
|
-
};
|
|
1437
|
-
|
|
1438
|
-
/**
|
|
1439
|
-
* for a given `element` in a given `scope` returns focusable siblings
|
|
1440
|
-
* @param element - base element
|
|
1441
|
-
* @param scope - common parent. Can be document, but better to narrow it down for performance reasons
|
|
1442
|
-
* @returns {prev,next} - references to a focusable element before and after
|
|
1443
|
-
* @returns undefined - if operation is not applicable
|
|
1444
|
-
*/
|
|
1445
|
-
var getRelativeFocusable = function (element, scope, useTabbables) {
|
|
1446
|
-
if (!element || !scope) {
|
|
1447
|
-
console.error('no element or scope given');
|
|
1448
|
-
return {};
|
|
1449
|
-
}
|
|
1450
|
-
var shards = asArray(scope);
|
|
1451
|
-
if (shards.every(function (shard) { return !contains(shard, element); })) {
|
|
1452
|
-
console.error('Active element is not contained in the scope');
|
|
1453
|
-
return {};
|
|
1454
|
-
}
|
|
1455
|
-
var focusables = useTabbables
|
|
1456
|
-
? getTabbableNodes(shards, new Map())
|
|
1457
|
-
: getFocusableNodes(shards, new Map());
|
|
1458
|
-
var current = focusables.findIndex(function (_a) {
|
|
1459
|
-
var node = _a.node;
|
|
1460
|
-
return node === element;
|
|
1461
|
-
});
|
|
1462
|
-
if (current === -1) {
|
|
1463
|
-
// an edge case, when anchor element is not found
|
|
1464
|
-
return undefined;
|
|
1465
|
-
}
|
|
1466
|
-
return {
|
|
1467
|
-
prev: focusables[current - 1],
|
|
1468
|
-
next: focusables[current + 1],
|
|
1469
|
-
first: focusables[0],
|
|
1470
|
-
last: focusables[focusables.length - 1],
|
|
1471
|
-
};
|
|
1472
|
-
};
|
|
1473
|
-
var getBoundary = function (shards, useTabbables) {
|
|
1474
|
-
var set = useTabbables
|
|
1475
|
-
? getTabbableNodes(asArray(shards), new Map())
|
|
1476
|
-
: getFocusableNodes(asArray(shards), new Map());
|
|
1477
|
-
return {
|
|
1478
|
-
first: set[0],
|
|
1479
|
-
last: set[set.length - 1],
|
|
1480
|
-
};
|
|
1481
|
-
};
|
|
1482
|
-
var defaultOptions = function (options) {
|
|
1483
|
-
return Object.assign({
|
|
1484
|
-
scope: document.body,
|
|
1485
|
-
cycle: true,
|
|
1486
|
-
onlyTabbable: true,
|
|
1487
|
-
}, options);
|
|
1488
|
-
};
|
|
1489
|
-
var moveFocus = function (fromElement, options, cb) {
|
|
1490
|
-
if (options === void 0) { options = {}; }
|
|
1491
|
-
var newOptions = defaultOptions(options);
|
|
1492
|
-
var solution = getRelativeFocusable(fromElement, newOptions.scope, newOptions.onlyTabbable);
|
|
1493
|
-
if (!solution) {
|
|
1494
|
-
return;
|
|
1495
|
-
}
|
|
1496
|
-
var target = cb(solution, newOptions.cycle);
|
|
1497
|
-
if (target) {
|
|
1498
|
-
focusOn(target.node, newOptions.focusOptions);
|
|
1499
|
-
}
|
|
1500
|
-
};
|
|
1501
|
-
/**
|
|
1502
|
-
* focuses next element in the tab-order
|
|
1503
|
-
* @param fromElement - common parent to scope active element search or tab cycle order
|
|
1504
|
-
* @param {FocusNextOptions} [options] - focus options
|
|
1505
|
-
*/
|
|
1506
|
-
var focusNextElement = function (fromElement, options) {
|
|
1507
|
-
if (options === void 0) { options = {}; }
|
|
1508
|
-
moveFocus(fromElement, options, function (_a, cycle) {
|
|
1509
|
-
var next = _a.next, first = _a.first;
|
|
1510
|
-
return next || (cycle && first);
|
|
1511
|
-
});
|
|
1512
|
-
};
|
|
1513
|
-
/**
|
|
1514
|
-
* focuses prev element in the tab order
|
|
1515
|
-
* @param fromElement - common parent to scope active element search or tab cycle order
|
|
1516
|
-
* @param {FocusNextOptions} [options] - focus options
|
|
1517
|
-
*/
|
|
1518
|
-
var focusPrevElement = function (fromElement, options) {
|
|
1519
|
-
if (options === void 0) { options = {}; }
|
|
1520
|
-
moveFocus(fromElement, options, function (_a, cycle) {
|
|
1521
|
-
var prev = _a.prev, last = _a.last;
|
|
1522
|
-
return prev || (cycle && last);
|
|
1523
|
-
});
|
|
1524
|
-
};
|
|
1525
|
-
var pickBoundary = function (scope, options, what) {
|
|
1526
|
-
var _a;
|
|
1527
|
-
var boundary = getBoundary(scope, (_a = options.onlyTabbable) !== null && _a !== void 0 ? _a : true);
|
|
1528
|
-
var node = boundary[what];
|
|
1529
|
-
if (node) {
|
|
1530
|
-
focusOn(node.node, options.focusOptions);
|
|
1531
|
-
}
|
|
1532
|
-
};
|
|
1533
|
-
/**
|
|
1534
|
-
* focuses first element in the tab-order
|
|
1535
|
-
* @param {FocusNextOptions} options - focus options
|
|
1536
|
-
*/
|
|
1537
|
-
var focusFirstElement = function (scope, options) {
|
|
1538
|
-
if (options === void 0) { options = {}; }
|
|
1539
|
-
pickBoundary(scope, options, 'first');
|
|
1540
|
-
};
|
|
1541
|
-
/**
|
|
1542
|
-
* focuses last element in the tab order
|
|
1543
|
-
* @param {FocusNextOptions} options - focus options
|
|
1544
|
-
*/
|
|
1545
|
-
var focusLastElement = function (scope, options) {
|
|
1546
|
-
if (options === void 0) { options = {}; }
|
|
1547
|
-
pickBoundary(scope, options, 'last');
|
|
1548
|
-
};
|
|
1549
|
-
|
|
1550
|
-
function deferAction(action) {
|
|
1551
|
-
setTimeout(action, 1);
|
|
1552
|
-
}
|
|
1553
|
-
var extractRef = function extractRef(ref) {
|
|
1554
|
-
return ref && 'current' in ref ? ref.current : ref;
|
|
1555
|
-
};
|
|
1556
|
-
|
|
1557
|
-
var focusOnBody = function focusOnBody() {
|
|
1558
|
-
return document && document.activeElement === document.body;
|
|
1559
|
-
};
|
|
1560
|
-
var isFreeFocus = function isFreeFocus() {
|
|
1561
|
-
return focusOnBody() || focusIsHidden();
|
|
1562
|
-
};
|
|
1563
|
-
var lastActiveTrap = null;
|
|
1564
|
-
var lastActiveFocus = null;
|
|
1565
|
-
var tryRestoreFocus = function tryRestoreFocus() {
|
|
1566
|
-
return null;
|
|
1567
|
-
};
|
|
1568
|
-
var lastPortaledElement = null;
|
|
1569
|
-
var focusWasOutsideWindow = false;
|
|
1570
|
-
var windowFocused = false;
|
|
1571
|
-
var defaultWhitelist = function defaultWhitelist() {
|
|
1572
|
-
return true;
|
|
1573
|
-
};
|
|
1574
|
-
var focusWhitelisted = function focusWhitelisted(activeElement) {
|
|
1575
|
-
return (lastActiveTrap.whiteList || defaultWhitelist)(activeElement);
|
|
1576
|
-
};
|
|
1577
|
-
var recordPortal = function recordPortal(observerNode, portaledElement) {
|
|
1578
|
-
lastPortaledElement = {
|
|
1579
|
-
observerNode: observerNode,
|
|
1580
|
-
portaledElement: portaledElement
|
|
1581
|
-
};
|
|
1582
|
-
};
|
|
1583
|
-
var focusIsPortaledPair = function focusIsPortaledPair(element) {
|
|
1584
|
-
return lastPortaledElement && lastPortaledElement.portaledElement === element;
|
|
1585
|
-
};
|
|
1586
|
-
function autoGuard(startIndex, end, step, allNodes) {
|
|
1587
|
-
var lastGuard = null;
|
|
1588
|
-
var i = startIndex;
|
|
1589
|
-
do {
|
|
1590
|
-
var item = allNodes[i];
|
|
1591
|
-
if (item.guard) {
|
|
1592
|
-
if (item.node.dataset.focusAutoGuard) {
|
|
1593
|
-
lastGuard = item;
|
|
1594
|
-
}
|
|
1595
|
-
} else if (item.lockItem) {
|
|
1596
|
-
if (i !== startIndex) {
|
|
1597
|
-
return;
|
|
1598
|
-
}
|
|
1599
|
-
lastGuard = null;
|
|
1600
|
-
} else {
|
|
1601
|
-
break;
|
|
1602
|
-
}
|
|
1603
|
-
} while ((i += step) !== end);
|
|
1604
|
-
if (lastGuard) {
|
|
1605
|
-
lastGuard.node.tabIndex = 0;
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
var focusWasOutside = function focusWasOutside(crossFrameOption) {
|
|
1609
|
-
if (crossFrameOption) {
|
|
1610
|
-
return Boolean(focusWasOutsideWindow);
|
|
1611
|
-
}
|
|
1612
|
-
return focusWasOutsideWindow === 'meanwhile';
|
|
1613
|
-
};
|
|
1614
|
-
var checkInHost = function checkInHost(check, el, boundary) {
|
|
1615
|
-
return el && (el.host === check && (!el.activeElement || boundary.contains(el.activeElement)) || el.parentNode && checkInHost(check, el.parentNode, boundary));
|
|
1616
|
-
};
|
|
1617
|
-
var withinHost = function withinHost(activeElement, workingArea) {
|
|
1618
|
-
return workingArea.some(function (area) {
|
|
1619
|
-
return checkInHost(activeElement, area, area);
|
|
1620
|
-
});
|
|
1621
|
-
};
|
|
1622
|
-
var getNodeFocusables = function getNodeFocusables(nodes) {
|
|
1623
|
-
return getFocusableNodes(nodes, new Map());
|
|
1624
|
-
};
|
|
1625
|
-
var isNotFocusable = function isNotFocusable(node) {
|
|
1626
|
-
return !getNodeFocusables([node.parentNode]).some(function (el) {
|
|
1627
|
-
return el.node === node;
|
|
1628
|
-
});
|
|
1629
|
-
};
|
|
1630
|
-
var activateTrap = function activateTrap() {
|
|
1631
|
-
var result = false;
|
|
1632
|
-
if (lastActiveTrap) {
|
|
1633
|
-
var _lastActiveTrap = lastActiveTrap,
|
|
1634
|
-
observed = _lastActiveTrap.observed,
|
|
1635
|
-
persistentFocus = _lastActiveTrap.persistentFocus,
|
|
1636
|
-
autoFocus = _lastActiveTrap.autoFocus,
|
|
1637
|
-
shards = _lastActiveTrap.shards,
|
|
1638
|
-
crossFrame = _lastActiveTrap.crossFrame,
|
|
1639
|
-
focusOptions = _lastActiveTrap.focusOptions,
|
|
1640
|
-
noFocusGuards = _lastActiveTrap.noFocusGuards;
|
|
1641
|
-
var workingNode = observed || lastPortaledElement && lastPortaledElement.portaledElement;
|
|
1642
|
-
if (focusOnBody() && lastActiveFocus) {
|
|
1643
|
-
if (!document.body.contains(lastActiveFocus) || isNotFocusable(lastActiveFocus)) {
|
|
1644
|
-
lastActiveFocus = null;
|
|
1645
|
-
var newTarget = tryRestoreFocus();
|
|
1646
|
-
if (newTarget) {
|
|
1647
|
-
newTarget.focus();
|
|
1648
|
-
}
|
|
1649
|
-
}
|
|
1650
|
-
}
|
|
1651
|
-
var activeElement = document && document.activeElement;
|
|
1652
|
-
if (workingNode) {
|
|
1653
|
-
var workingArea = [workingNode].concat(shards.map(extractRef).filter(Boolean));
|
|
1654
|
-
var shouldForceRestoreFocus = function shouldForceRestoreFocus() {
|
|
1655
|
-
if (!focusWasOutside(crossFrame) || !noFocusGuards || !lastActiveFocus || windowFocused) {
|
|
1656
|
-
return false;
|
|
1657
|
-
}
|
|
1658
|
-
var nodes = getNodeFocusables(workingArea);
|
|
1659
|
-
var lastIndex = nodes.findIndex(function (_ref) {
|
|
1660
|
-
var node = _ref.node;
|
|
1661
|
-
return node === lastActiveFocus;
|
|
1662
|
-
});
|
|
1663
|
-
return lastIndex === 0 || lastIndex === nodes.length - 1;
|
|
1664
|
-
};
|
|
1665
|
-
if (!activeElement || focusWhitelisted(activeElement)) {
|
|
1666
|
-
if (persistentFocus || shouldForceRestoreFocus() || !isFreeFocus() || !lastActiveFocus && autoFocus) {
|
|
1667
|
-
if (workingNode && !(focusInside(workingArea) || activeElement && withinHost(activeElement, workingArea) || focusIsPortaledPair(activeElement))) {
|
|
1668
|
-
if (document && !lastActiveFocus && activeElement && !autoFocus) {
|
|
1669
|
-
if (activeElement.blur) {
|
|
1670
|
-
activeElement.blur();
|
|
1671
|
-
}
|
|
1672
|
-
document.body.focus();
|
|
1673
|
-
} else {
|
|
1674
|
-
result = moveFocusInside(workingArea, lastActiveFocus, {
|
|
1675
|
-
focusOptions: focusOptions
|
|
1676
|
-
});
|
|
1677
|
-
lastPortaledElement = {};
|
|
1678
|
-
}
|
|
1679
|
-
}
|
|
1680
|
-
focusWasOutsideWindow = false;
|
|
1681
|
-
lastActiveFocus = document && document.activeElement;
|
|
1682
|
-
tryRestoreFocus = captureFocusRestore(lastActiveFocus);
|
|
1683
|
-
}
|
|
1684
|
-
}
|
|
1685
|
-
if (document && activeElement !== document.activeElement && document.querySelector('[data-focus-auto-guard]')) {
|
|
1686
|
-
var newActiveElement = document && document.activeElement;
|
|
1687
|
-
var allNodes = expandFocusableNodes(workingArea);
|
|
1688
|
-
var focusedIndex = allNodes.map(function (_ref2) {
|
|
1689
|
-
var node = _ref2.node;
|
|
1690
|
-
return node;
|
|
1691
|
-
}).indexOf(newActiveElement);
|
|
1692
|
-
if (focusedIndex > -1) {
|
|
1693
|
-
allNodes.filter(function (_ref3) {
|
|
1694
|
-
var guard = _ref3.guard,
|
|
1695
|
-
node = _ref3.node;
|
|
1696
|
-
return guard && node.dataset.focusAutoGuard;
|
|
1697
|
-
}).forEach(function (_ref4) {
|
|
1698
|
-
var node = _ref4.node;
|
|
1699
|
-
return node.removeAttribute('tabIndex');
|
|
1700
|
-
});
|
|
1701
|
-
autoGuard(focusedIndex, allNodes.length, 1, allNodes);
|
|
1702
|
-
autoGuard(focusedIndex, -1, -1, allNodes);
|
|
1703
|
-
}
|
|
1704
|
-
}
|
|
1705
|
-
}
|
|
1706
|
-
}
|
|
1707
|
-
return result;
|
|
1708
|
-
};
|
|
1709
|
-
var onTrap = function onTrap(event) {
|
|
1710
|
-
if (activateTrap() && event) {
|
|
1711
|
-
event.stopPropagation();
|
|
1712
|
-
event.preventDefault();
|
|
1713
|
-
}
|
|
1714
|
-
};
|
|
1715
|
-
var onBlur = function onBlur() {
|
|
1716
|
-
return deferAction(activateTrap);
|
|
1717
|
-
};
|
|
1718
|
-
var onFocus = function onFocus(event) {
|
|
1719
|
-
var source = event.target;
|
|
1720
|
-
var currentNode = event.currentTarget;
|
|
1721
|
-
if (!currentNode.contains(source)) {
|
|
1722
|
-
recordPortal(currentNode, source);
|
|
1723
|
-
}
|
|
1724
|
-
};
|
|
1725
|
-
var FocusWatcher = function FocusWatcher() {
|
|
1726
|
-
return null;
|
|
1727
|
-
};
|
|
1728
|
-
process.env.NODE_ENV !== "production" ? {
|
|
1729
|
-
children: PropTypes.node.isRequired
|
|
1730
|
-
} : {};
|
|
1731
|
-
var onWindowFocus = function onWindowFocus() {
|
|
1732
|
-
windowFocused = true;
|
|
1733
|
-
};
|
|
1734
|
-
var onWindowBlur = function onWindowBlur() {
|
|
1735
|
-
windowFocused = false;
|
|
1736
|
-
focusWasOutsideWindow = 'just';
|
|
1737
|
-
deferAction(function () {
|
|
1738
|
-
focusWasOutsideWindow = 'meanwhile';
|
|
1739
|
-
});
|
|
1740
|
-
};
|
|
1741
|
-
var attachHandler = function attachHandler() {
|
|
1742
|
-
document.addEventListener('focusin', onTrap);
|
|
1743
|
-
document.addEventListener('focusout', onBlur);
|
|
1744
|
-
window.addEventListener('focus', onWindowFocus);
|
|
1745
|
-
window.addEventListener('blur', onWindowBlur);
|
|
1746
|
-
};
|
|
1747
|
-
var detachHandler = function detachHandler() {
|
|
1748
|
-
document.removeEventListener('focusin', onTrap);
|
|
1749
|
-
document.removeEventListener('focusout', onBlur);
|
|
1750
|
-
window.removeEventListener('focus', onWindowFocus);
|
|
1751
|
-
window.removeEventListener('blur', onWindowBlur);
|
|
1752
|
-
};
|
|
1753
|
-
function reducePropsToState(propsList) {
|
|
1754
|
-
return propsList.filter(function (_ref6) {
|
|
1755
|
-
var disabled = _ref6.disabled;
|
|
1756
|
-
return !disabled;
|
|
1757
|
-
});
|
|
1758
|
-
}
|
|
1759
|
-
var focusLockAPI = {
|
|
1760
|
-
moveFocusInside: moveFocusInside,
|
|
1761
|
-
focusInside: focusInside,
|
|
1762
|
-
focusNextElement: focusNextElement,
|
|
1763
|
-
focusPrevElement: focusPrevElement,
|
|
1764
|
-
focusFirstElement: focusFirstElement,
|
|
1765
|
-
focusLastElement: focusLastElement,
|
|
1766
|
-
captureFocusRestore: captureFocusRestore
|
|
1767
|
-
};
|
|
1768
|
-
function handleStateChangeOnClient(traps) {
|
|
1769
|
-
var trap = traps.slice(-1)[0];
|
|
1770
|
-
if (trap && !lastActiveTrap) {
|
|
1771
|
-
attachHandler();
|
|
1772
|
-
}
|
|
1773
|
-
var lastTrap = lastActiveTrap;
|
|
1774
|
-
var sameTrap = lastTrap && trap && trap.id === lastTrap.id;
|
|
1775
|
-
lastActiveTrap = trap;
|
|
1776
|
-
if (lastTrap && !sameTrap) {
|
|
1777
|
-
lastTrap.onDeactivation();
|
|
1778
|
-
if (!traps.filter(function (_ref7) {
|
|
1779
|
-
var id = _ref7.id;
|
|
1780
|
-
return id === lastTrap.id;
|
|
1781
|
-
}).length) {
|
|
1782
|
-
lastTrap.returnFocus(!trap);
|
|
1783
|
-
}
|
|
1784
|
-
}
|
|
1785
|
-
if (trap) {
|
|
1786
|
-
lastActiveFocus = null;
|
|
1787
|
-
if (!sameTrap || lastTrap.observed !== trap.observed) {
|
|
1788
|
-
trap.onActivation(focusLockAPI);
|
|
1789
|
-
}
|
|
1790
|
-
activateTrap();
|
|
1791
|
-
deferAction(activateTrap);
|
|
1792
|
-
} else {
|
|
1793
|
-
detachHandler();
|
|
1794
|
-
lastActiveFocus = null;
|
|
1795
|
-
}
|
|
1796
|
-
}
|
|
1797
|
-
mediumFocus.assignSyncMedium(onFocus);
|
|
1798
|
-
mediumBlur.assignMedium(onBlur);
|
|
1799
|
-
mediumEffect.assignMedium(function (cb) {
|
|
1800
|
-
return cb(focusLockAPI);
|
|
1801
|
-
});
|
|
1802
|
-
var FocusTrap = withSideEffect(reducePropsToState, handleStateChangeOnClient)(FocusWatcher);
|
|
1803
|
-
|
|
1804
|
-
var FocusLockCombination = /*#__PURE__*/React.forwardRef(function FocusLockUICombination(props, ref) {
|
|
1805
|
-
return /*#__PURE__*/React.createElement(FocusLock, _extends({
|
|
1806
|
-
sideCar: FocusTrap,
|
|
1807
|
-
ref: ref
|
|
1808
|
-
}, props));
|
|
1809
|
-
});
|
|
1810
|
-
var _ref = FocusLock.propTypes || {};
|
|
1811
|
-
_ref.sideCar;
|
|
1812
|
-
var propTypes = _objectWithoutPropertiesLoose(_ref, ["sideCar"]);
|
|
1813
|
-
FocusLockCombination.propTypes = process.env.NODE_ENV !== "production" ? propTypes : {};
|
|
1814
|
-
|
|
1815
|
-
var InnerModal = function (_a) {
|
|
73
|
+
var GenericModal = function (_a) {
|
|
1816
74
|
var _b;
|
|
1817
75
|
var _c, _d;
|
|
1818
|
-
var title = _a.title, children = _a.children, classNames$1 = _a.classNames, _e = _a.dismissible, dismissible = _e === void 0 ? true : _e, footer = _a.footer, _f = _a.titleSize, titleSize = _f === void 0 ? 'default' : _f
|
|
1819
|
-
var
|
|
1820
|
-
|
|
1821
|
-
if (!modalBodyRef.current || !onModalScroll) {
|
|
1822
|
-
return;
|
|
1823
|
-
}
|
|
1824
|
-
var handleOnScroll = function () {
|
|
1825
|
-
if (modalBodyRef.current) {
|
|
1826
|
-
onModalScroll(modalBodyRef.current.scrollTop, modalBodyRef.current);
|
|
1827
|
-
}
|
|
1828
|
-
};
|
|
1829
|
-
modalBodyRef.current.addEventListener('scroll', handleOnScroll);
|
|
1830
|
-
return function () {
|
|
1831
|
-
var _a;
|
|
1832
|
-
(_a = modalBodyRef.current) === null || _a === void 0 ? void 0 : _a.removeEventListener('scroll', handleOnScroll);
|
|
1833
|
-
};
|
|
1834
|
-
}, []);
|
|
1835
|
-
return (jsx("div", { className: classNames(classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.overlay, styles.overlay, (_b = {},
|
|
76
|
+
var title = _a.title, isOpen = _a.isOpen, children = _a.children, onClose = _a.onClose, classNames$1 = _a.classNames, _e = _a.dismissible, dismissible = _e === void 0 ? true : _e, footer = _a.footer, _f = _a.titleSize, titleSize = _f === void 0 ? 'default' : _f;
|
|
77
|
+
var _g = useOnClose(onClose, isOpen, dismissible), isClosing = _g.isClosing, isVisible = _g.isVisible, handleContainerClick = _g.handleContainerClick, handleOnCloseAnimationEnded = _g.handleOnCloseAnimationEnded, handleOnClose = _g.handleOnClose, handleOnOverlayClick = _g.handleOnOverlayClick;
|
|
78
|
+
return !isVisible ? null : (jsx("div", { className: classNames(classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.overlay, styles.overlay, (_b = {},
|
|
1836
79
|
_b[styles.overlayClose] = isClosing,
|
|
1837
80
|
_b)), onAnimationEnd: handleOnCloseAnimationEnded, onClick: handleOnOverlayClick, children: jsx("div", { className: typeof (classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.wrapper) === 'string'
|
|
1838
81
|
? classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.wrapper
|
|
1839
|
-
: (_c = classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.wrapper) === null || _c === void 0 ? void 0 : _c.call(classNames$1, { isClosing: isClosing }), children:
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1843
|
-
|
|
1844
|
-
|
|
1845
|
-
};
|
|
1846
|
-
var GenericModal = function (props) {
|
|
1847
|
-
var isOpen = props.isOpen, onClose = props.onClose, _a = props.dismissible, dismissible = _a === void 0 ? true : _a;
|
|
1848
|
-
var _b = useOnClose(onClose, isOpen, dismissible), isVisible = _b.isVisible, rest = __rest(_b, ["isVisible"]);
|
|
1849
|
-
if (!isVisible) {
|
|
1850
|
-
return null;
|
|
1851
|
-
}
|
|
1852
|
-
return jsx(InnerModal, __assign({}, props, { isVisible: isVisible }, rest));
|
|
82
|
+
: (_c = classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.wrapper) === null || _c === void 0 ? void 0 : _c.call(classNames$1, { isClosing: isClosing }), children: jsxs("div", { className: typeof (classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.container) === 'string'
|
|
83
|
+
? classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.container
|
|
84
|
+
: (_d = classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.container) === null || _d === void 0 ? void 0 : _d.call(classNames$1, { isClosing: isClosing }), onClick: handleContainerClick, children: [jsxs("div", { className: classNames('bg-white d-flex ai-center w100 px24 pt24 pb16', styles.header, {
|
|
85
|
+
'jc-between': !!title,
|
|
86
|
+
'jc-end': !title,
|
|
87
|
+
}), children: [title && (jsx("div", { className: classNames(styles.title, titleSize === 'small' ? 'p-h4' : 'p-h2'), children: title })), dismissible && (jsx(Button, { hideLabel: true, leftIcon: jsx(XIcon, { color: "grey-700" }), onClick: handleOnClose, type: "button", variant: "textColor", className: classNames(classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.closeButton, 'p0', styles.closeButton), children: "Close modal" }))] }), jsx("div", { className: classNames('w100', classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.body, styles.body), children: children }), footer && (jsx("div", { className: classNames(classNames$1 === null || classNames$1 === void 0 ? void 0 : classNames$1.footer, 'w100 bg-white', styles.footer), children: jsx("div", { className: "px24 py16", children: footer }) }))] }) }) }));
|
|
1853
88
|
};
|
|
1854
89
|
|
|
1855
90
|
export { GenericModal };
|