@pega/cosmos-react-core 5.0.0-dev.1.0 → 5.0.0-dev.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/components/AIButton/AIButton.d.ts +3 -3
- package/lib/components/AIButton/AIButton.d.ts.map +1 -1
- package/lib/components/AIButton/AIButton.js.map +1 -1
- package/lib/components/Actions/Actions.d.ts +5 -7
- package/lib/components/Actions/Actions.d.ts.map +1 -1
- package/lib/components/Actions/Actions.js +1 -2
- package/lib/components/Actions/Actions.js.map +1 -1
- package/lib/components/AdditionalInfo/AdditionalInfo.d.ts +6 -7
- package/lib/components/AdditionalInfo/AdditionalInfo.d.ts.map +1 -1
- package/lib/components/AdditionalInfo/AdditionalInfo.js +1 -2
- package/lib/components/AdditionalInfo/AdditionalInfo.js.map +1 -1
- package/lib/components/AppShell/AppShell.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.js +1 -2
- package/lib/components/AppShell/AppShell.js.map +1 -1
- package/lib/components/AppShell/AppShell.styles.d.ts +1 -1
- package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.styles.js +2 -1
- package/lib/components/AppShell/AppShell.styles.js.map +1 -1
- package/lib/components/Avatar/Avatar.d.ts +1 -1
- package/lib/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/components/Avatar/Avatar.js +21 -21
- package/lib/components/Avatar/Avatar.js.map +1 -1
- package/lib/components/Backdrop/Backdrop.d.ts +6 -13
- package/lib/components/Backdrop/Backdrop.d.ts.map +1 -1
- package/lib/components/Backdrop/Backdrop.js +24 -25
- package/lib/components/Backdrop/Backdrop.js.map +1 -1
- package/lib/components/Badges/Alert.d.ts +9 -7
- package/lib/components/Badges/Alert.d.ts.map +1 -1
- package/lib/components/Badges/Alert.js +1 -3
- package/lib/components/Badges/Alert.js.map +1 -1
- package/lib/components/Badges/Count.d.ts +5 -6
- package/lib/components/Badges/Count.d.ts.map +1 -1
- package/lib/components/Badges/Count.js +1 -3
- package/lib/components/Badges/Count.js.map +1 -1
- package/lib/components/Badges/Keyboard.d.ts +5 -6
- package/lib/components/Badges/Keyboard.d.ts.map +1 -1
- package/lib/components/Badges/Keyboard.js +4 -4
- package/lib/components/Badges/Keyboard.js.map +1 -1
- package/lib/components/Badges/Status.d.ts +12 -7
- package/lib/components/Badges/Status.d.ts.map +1 -1
- package/lib/components/Badges/Status.js +1 -5
- package/lib/components/Badges/Status.js.map +1 -1
- package/lib/components/Banner/Banner.d.ts +8 -12
- package/lib/components/Banner/Banner.d.ts.map +1 -1
- package/lib/components/Banner/Banner.js +1 -2
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Boolean/BooleanDisplay.d.ts +6 -10
- package/lib/components/Boolean/BooleanDisplay.d.ts.map +1 -1
- package/lib/components/Boolean/BooleanDisplay.js +1 -2
- package/lib/components/Boolean/BooleanDisplay.js.map +1 -1
- package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.d.ts.map +1 -1
- package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js +7 -3
- package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js.map +1 -1
- package/lib/components/Currency/CurrencyInput.d.ts.map +1 -1
- package/lib/components/Currency/CurrencyInput.js +4 -2
- package/lib/components/Currency/CurrencyInput.js.map +1 -1
- package/lib/components/DangerButton/DangerButton.d.ts +5 -5
- package/lib/components/DangerButton/DangerButton.d.ts.map +1 -1
- package/lib/components/DangerButton/DangerButton.js +1 -2
- package/lib/components/DangerButton/DangerButton.js.map +1 -1
- package/lib/components/DateTime/Input/DateInput.js +2 -3
- package/lib/components/DateTime/Input/DateInput.js.map +1 -1
- package/lib/components/DateTime/Input/DateTime.styles.d.ts +4 -0
- package/lib/components/DateTime/Input/DateTime.styles.d.ts.map +1 -1
- package/lib/components/DateTime/Input/DateTime.styles.js +5 -0
- package/lib/components/DateTime/Input/DateTime.styles.js.map +1 -1
- package/lib/components/DateTime/Input/DateTimeInput.js +2 -3
- package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
- package/lib/components/DateTime/Input/WeekInput.js +2 -3
- package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
- package/lib/components/Dialog/InfoDialog.d.ts.map +1 -1
- package/lib/components/Dialog/InfoDialog.js +1 -1
- package/lib/components/Dialog/InfoDialog.js.map +1 -1
- package/lib/components/File/FileInput.d.ts +2 -0
- package/lib/components/File/FileInput.d.ts.map +1 -1
- package/lib/components/File/FileInput.js +3 -2
- package/lib/components/File/FileInput.js.map +1 -1
- package/lib/components/FormField/FormField.d.ts +4 -1
- package/lib/components/FormField/FormField.d.ts.map +1 -1
- package/lib/components/FormField/FormField.js +50 -15
- package/lib/components/FormField/FormField.js.map +1 -1
- package/lib/components/HTML/HTML.d.ts.map +1 -1
- package/lib/components/HTML/HTML.js +5 -4
- package/lib/components/HTML/HTML.js.map +1 -1
- package/lib/components/Icon/streamline-icons/ai-assist.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/ai-assist.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/ai-assist.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/ai-assist.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/alexa.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/alexa.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/alexa.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/alexa.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/align-center.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/align-center.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/align-center.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/align-center.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/align-left.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/align-left.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/align-left.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/align-left.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/align-right.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/align-right.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/align-right.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/align-right.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/amazon.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/amazon.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/amazon.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/amazon.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/api.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/api.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/api.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/api.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/app.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/app.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/app.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/app.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/arrow-above-row-right.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/arrow-above-row-right.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/arrow-above-row-right.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/arrow-above-row-right.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/arrow-bend-left.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/arrow-bend-left.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/arrow-bend-left.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/arrow-bend-left.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/arrow-down.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/arrow-down.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-down.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/arrow-down.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-left-column.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/arrow-left-column.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-left-column.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/arrow-left-column.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-left.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/arrow-left.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/arrow-left.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/arrow-left.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/arrow-micro-down.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-down.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-down.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-down.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-left.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-left.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-left.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-left.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-right.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-right.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-right.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-right.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-up.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-up.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-up.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/arrow-micro-up.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-out.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/arrow-out.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/arrow-out.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/arrow-out.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/arrow-right-column.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/arrow-right-column.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-right-column.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/arrow-right-column.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-right.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/arrow-right.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-right.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/arrow-right.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-up-down.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/arrow-up-down.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/arrow-up-down.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/arrow-up-down.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/arrow-up.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/arrow-up.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/arrow-up.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/arrow-up.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/bank.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/bank.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/bank.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/bank.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/bars.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/bars.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/bars.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/bars.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/bell-push-notification.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/bell-push-notification.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/bell-push-notification.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/bell-push-notification.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/bell.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/bell.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/bell.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/bell.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/bluetooth.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/bluetooth.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/bluetooth.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/bluetooth.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/book-open.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/book-open.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/book-open.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/book-open.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/bookmark.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/bookmark.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/bookmark.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/bookmark.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/box-4.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/box-4.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/box-4.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/box-4.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/box.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/box.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/box.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/box.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/browser-code.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/browser-code.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/browser-code.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/browser-code.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/browser.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/browser.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/browser.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/browser.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/bug.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/bug.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/bug.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/bug.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/building-2.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/building-2.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/building-2.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/building-2.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/building-3.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/building-3.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/building-3.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/bulb.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/bulb.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/bulb.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/bulb.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/calendar-empty.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/calendar-empty.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/calendar-empty.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/calendar-empty.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/calendar-range.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/calendar-range.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/calendar-range.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/calendar-range.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/calendar.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/calendar.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/calendar.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/calendar.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/car.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/car.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/car.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/car.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/caret-down.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/caret-down.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/caret-down.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/caret-down.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/caret-left.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/caret-left.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/caret-left.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/caret-left.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/caret-right.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/caret-right.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/caret-right.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/caret-right.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/caret-up.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/caret-up.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/caret-up.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/caret-up.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/case-medical.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/case-medical.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/case-medical.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/case-medical.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/case-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/case-solid.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/case-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/case.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/case.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/case.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/case.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/chain.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/chain.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/chain.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/chain.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/chart-line.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/chart-line.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/chart-line.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/chart-line.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/chart-pie.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/chart-pie.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/chart-pie.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/chart-pie.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/chat-check.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/chat-check.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/chat-check.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/chat-check.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/chat-exclamation-mark.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/chat-exclamation-mark.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/chat-exclamation-mark.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/chat-exclamation-mark.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/chat-help.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/chat-help.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/chat-help.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/chat-help.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/chat-quote.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/chat-quote.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/chat-quote.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/chat-quote.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/chat-transfer.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/chat-transfer.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/chat-transfer.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/chat-transfer.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/chat-typing.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/chat-typing.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/chat-typing.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/chat-typing.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/chat-unavailable.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/chat-unavailable.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/chat-unavailable.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/chat-unavailable.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/chat.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/chat.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/chat.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/chat.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/chats.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/chats.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/chats.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/chats.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/check-badge.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/check-badge.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/check-badge.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/check-badge.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/check.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/check.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/check.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/check.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/chevron-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/chevron-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/chevron-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/chevron.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/chevron.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/chevron.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/chevron.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/circle-mixed-left.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/circle-mixed-left.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/circle-mixed-left.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/circle-mixed-left.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/circle.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/circle.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/circle.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/circle.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-check.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-check.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-check.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/clipboard-check.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-medical.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-medical.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-medical.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/clipboard-medical.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-pencil-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-pencil-solid.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-pencil-solid.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/clipboard-pencil-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-pencil.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-pencil.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-pencil.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/clipboard-pencil.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-plus.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-plus.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/clipboard-plus.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/clipboard-plus.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/clipboard.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/clipboard.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/clipboard.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/clipboard.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/clock-solid.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/clock-solid.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/clock-solid.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/clock-solid.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/clock.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/clock.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/clock.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/clock.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/cloud.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/cloud.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/cloud.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/cloud.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/code-search.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/code-search.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/code-search.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/code-search.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/code.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/code.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/code.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/code.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/column-delete.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/column-delete.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/column-delete.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/column-delete.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/conversation.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/conversation.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/conversation.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/conversation.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/copy.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/copy.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/copy.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/copy.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/credit.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/credit.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/credit.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/credit.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/csr-agent.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/csr-agent.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/csr-agent.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/csr-agent.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/currency.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/currency.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/currency.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/currency.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/custom-column.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/custom-column.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/custom-column.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/custom-column.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/database-search.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/database-search.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/database-search.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/database-search.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-area-multi.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-area-multi.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-area-multi.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/dataviz-area-multi.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-area-stacked.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-area-stacked.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-area-stacked.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/dataviz-area-stacked.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-area.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-area.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-area.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/dataviz-area.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-bar-clustered.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-bar-clustered.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-bar-clustered.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-bar-clustered.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-bar-stacked.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-bar-stacked.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-bar-stacked.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-bar-stacked.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-bar.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-bar.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-bar.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-bar.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-bell-curve.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/dataviz-bell-curve.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-bell-curve.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/dataviz-bell-curve.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-bubble.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-bubble.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-bubble.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-bubble.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-column-clustered.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-column-clustered.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-column-clustered.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-column-clustered.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-column-stacked.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-column-stacked.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-column-stacked.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-column-stacked.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-column.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-column.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-column.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-column.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-combo.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-combo.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-combo.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/dataviz-combo.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-datetime-field.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-datetime-field.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-datetime-field.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-datetime-field.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-donut.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-donut.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-donut.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-donut.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-flip-counter.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/dataviz-flip-counter.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-flip-counter.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/dataviz-flip-counter.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-forecast.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-forecast.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-forecast.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-forecast.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-funnel.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-funnel.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-funnel.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/dataviz-funnel.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-gauge-linear.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-gauge-linear.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-gauge-linear.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-gauge-linear.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-gauge-progress.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/dataviz-gauge-progress.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-gauge-progress.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/dataviz-gauge-progress.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-gauge.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-gauge.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-gauge.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-gauge.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-geo-choropleth.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-geo-choropleth.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-geo-choropleth.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-geo-choropleth.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-heatmap.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-heatmap.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-heatmap.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-heatmap.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-histogram.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/dataviz-histogram.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-histogram.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/dataviz-histogram.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-line-horizontal.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/dataviz-line-horizontal.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-line-horizontal.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/dataviz-line-horizontal.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-line-multi.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-line-multi.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-line-multi.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-line-multi.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-line-stepped.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/dataviz-line-stepped.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-line-stepped.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/dataviz-line-stepped.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-line.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-line.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-line.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-line.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-numeric-field.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/dataviz-numeric-field.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-numeric-field.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/dataviz-numeric-field.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-pareto.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-pareto.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-pareto.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-pareto.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-pie.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-pie.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-pie.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-pie.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-pivot-table.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-pivot-table.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-pivot-table.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-pivot-table.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-radar.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-radar.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-radar.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-radar.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-scatter.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-scatter.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-scatter.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-scatter.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-spark.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/dataviz-spark.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-spark.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/dataviz-spark.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-area.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-area.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-area.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-area.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-columns.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-columns.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-columns.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-columns.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-line.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-line.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-line.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-line.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-pies.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-pies.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-pies.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/dataviz-sparklines-pies.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-spline.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/dataviz-spline.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-spline.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/dataviz-spline.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dataviz-string-field.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-string-field.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-string-field.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-string-field.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-table-with-bars.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-table-with-bars.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-table-with-bars.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-table-with-bars.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-trend-down.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-trend-down.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-trend-down.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-trend-down.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-trend-up.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-trend-up.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-trend-up.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-trend-up.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-waterfall.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dataviz-waterfall.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dataviz-waterfall.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/desktop.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/desktop.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/desktop.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/desktop.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/diamond.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/diamond.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/diamond.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/diamond.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/disc-stack-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/disc-stack-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/disc-stack-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/disc-stack.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/disc-stack.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/disc-stack.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/disc-stack.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/doctor-female.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/doctor-female.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/doctor-female.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/doctor-female.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/doctor-male.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/doctor-male.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/doctor-male.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/doctor-male.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/document-pdf.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/document-pdf.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/document-pdf.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/document-pdf.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/document.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/document.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/document.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/document.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/docusign.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/docusign.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/docusign.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/docusign.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/dot-9-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/dot-9-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/dot-9-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/download.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/download.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/download.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/download.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/drag.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/drag.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/drag.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/email-open.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/email-open.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/email-open.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/email-open.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/exchange.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/exchange.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/exchange.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/exchange.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/eye-off.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/eye-off.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/eye-off.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/eye-off.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/face-blank.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/face-blank.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/face-blank.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/face-blank.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/face-happy.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/face-happy.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/face-happy.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/face-happy.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/face-sad.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/face-sad.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/face-sad.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/face-sad.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/facebook.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/facebook.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/facebook.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/facebook.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/farming-wheat.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/farming-wheat.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/farming-wheat.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/farming-wheat.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/fast-forward.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/fast-forward.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/fast-forward.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/fast-forward.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/field-cursor.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/field-cursor.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/field-cursor.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/field-cursor.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/filetype-text.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/filetype-text.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/filetype-text.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/filetype-text.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/filter.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/filter.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/filter.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/filter.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/fingerprint-search.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/fingerprint-search.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/fingerprint-search.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/fingerprint-search.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/flag-check.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/flag-check.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/flag-check.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/flag-check.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/flag-finish.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/flag-finish.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/flag-finish.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/flag-finish.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/flag-solid.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/flag-solid.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/flag-solid.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/flag-solid.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/flag.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/flag.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/flag.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/flag.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/flashlight.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/flashlight.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/flashlight.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/flashlight.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/flow-process.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/flow-process.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/flow-process.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/flow-process.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/folder-closed.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/folder-closed.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/folder-closed.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/folder-closed.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/folder-empty.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/folder-empty.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/folder-empty.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/folder-empty.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/folder-hierarchy.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/folder-hierarchy.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/folder-hierarchy.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/folder-hierarchy.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/folder-nested.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/folder-nested.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/folder-nested.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/folder-nested.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/folder-search.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/folder-search.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/folder-search.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/folder-search.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/folder.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/folder.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/folder.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/folder.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/folders.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/folders.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/folders.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/folders.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/forward-all.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/forward-all.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/forward-all.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/forward-all.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/forward.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/forward.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/forward.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/forward.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/function.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/function.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/function.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/function.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/gear-play.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/gear-play.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/gear-play.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/gear-play.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/gear-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/gear-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/gear-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/gear.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/gear.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/gear.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/gear.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/globe.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/globe.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/globe.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/globe.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/google.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/google.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/google.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/google.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/government.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/government.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/government.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/government.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/graduate.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/graduate.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/graduate.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/graduate.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/hand-book-open.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/hand-book-open.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/hand-book-open.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/hand-book-open.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/hand-over-paper.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/hand-over-paper.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/hand-over-paper.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/hand-over-paper.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/hand.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/hand.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/hand.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/hand.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/handshake.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/handshake.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/handshake.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/handshake.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/header.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/header.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/header.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/header.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/headset.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/headset.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/headset.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/headset.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/home-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/home-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/home-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/home.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/home.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/home.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/home.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/house-bed.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/house-bed.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/house-bed.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/house-bed.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/house-person.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/house-person.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/house-person.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/house-person.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/infinity.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/infinity.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/infinity.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/infinity.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/information.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/information.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/information.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/information.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/ios-face-id.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/ios-face-id.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/ios-face-id.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/ios-face-id.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/ios-finger-id.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/ios-finger-id.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/ios-finger-id.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/ios-finger-id.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/layers.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/layers.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/layers.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/layers.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/letter.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/letter.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/letter.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/letter.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/linkedin.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/linkedin.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/linkedin.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/linkedin.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/list.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/list.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/list.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/list.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/location-solid.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/location-solid.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/location-solid.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/location-solid.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/mail-warning.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/mail-warning.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/mail-warning.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/mail-warning.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/mail.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/mail.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/mail.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/mail.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/megaphone.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/megaphone.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/megaphone.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/megaphone.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/merge.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/merge.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/merge.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/merge.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/messages-to-chat.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/messages-to-chat.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/messages-to-chat.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/messages-to-chat.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/mic-off.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/mic-off.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/mic-off.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/mic-off.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/mic.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/mic.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/mic.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/mic.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/minus.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/minus.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/minus.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/minus.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/mobile-phone.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/mobile-phone.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/mobile-phone.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/mobile-phone.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/module.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/module.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/module.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/module.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/money-atm.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/money-atm.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/money-atm.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/money-atm.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/money.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/money.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/money.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/money.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/monitor-lock.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/monitor-lock.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/monitor-lock.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/monitor-lock.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/more.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/more.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/more.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/more.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/mountain-top.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/mountain-top.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/mountain-top.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/mountain-top.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/multi-device.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/multi-device.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/multi-device.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/multi-device.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/navigation.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/navigation.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/navigation.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/navigation.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/newspaper-fold.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/newspaper-fold.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/newspaper-fold.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/newspaper-fold.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/newspaper.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/newspaper.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/newspaper.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/newspaper.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/nodes-down.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/nodes-down.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/nodes-down.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/nodes-down.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/note-pin.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/note-pin.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/note-pin.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/note-pin.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/notepad.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/notepad.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/notepad.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/notepad.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/number-decimal.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/number-decimal.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/number-decimal.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/number-decimal.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/offer-list.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/offer-list.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/offer-list.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/offer-list.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/offer-table.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/offer-table.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/offer-table.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/offer-table.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/offer.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/offer.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/offer.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/offer.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/open-new-tab.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/open-new-tab.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/open-new-tab.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/open-new-tab.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/open.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/open.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/open.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/open.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/opportunity-refresh.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/opportunity-refresh.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/opportunity-refresh.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/opportunity-refresh.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/opportunity.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/opportunity.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/opportunity.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/opportunity.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/os-apple.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/os-apple.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/os-apple.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/os-apple.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/paper-clip.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/paper-clip.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/paper-clip.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/paper-clip.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/paper-search.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/paper-search.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/paper-search.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/paper-search.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/password-lock.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/password-lock.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/password-lock.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/password-lock.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/pause.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/pause.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/pause.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/pause.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/paypal.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/paypal.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/paypal.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/paypal.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/pega.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/pega.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/pega.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/pega.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/pegasus.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/pegasus.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/pegasus.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/pegasus.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/pencil.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/pencil.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/pencil.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/pencil.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/percentage.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/percentage.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/percentage.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/percentage.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/person-connection.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/person-connection.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/person-connection.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/person-connection.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/person-hierarchy-check.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/person-hierarchy-check.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/person-hierarchy-check.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/person-hierarchy-check.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/person-stars.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/person-stars.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/person-stars.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/person-stars.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/person.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/person.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/person.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/person.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/persons-group.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/persons-group.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/persons-group.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/persons-group.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-call.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/phone-call.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-call.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/phone-call.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-dial.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/phone-dial.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-dial.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/phone-dial.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-hangup.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/phone-hangup.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-hangup.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/phone-hangup.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-in.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/phone-in.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-in.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/phone-in.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-ivr.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/phone-ivr.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-ivr.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/phone-ivr.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-off.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/phone-off.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-off.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/phone-off.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-out.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/phone-out.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-out.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/phone-out.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-split.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/phone-split.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/phone-split.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/phone-split.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/phone-transfer.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/phone-transfer.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/phone-transfer.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/phone-transfer.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/phone.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/phone.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/phone.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/phone.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/phonebook.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/phonebook.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/phonebook.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/phonebook.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/picture.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/picture.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/picture.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/picture.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/play-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/play-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/play-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/play.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/play.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/play.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/play.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/plug-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/plug-solid.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/plug-solid.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/plug-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/plug.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/plug.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/plug.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/plug.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/plus.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/plus.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/plus.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/plus.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/polaris-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/polaris-solid.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/polaris-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/polaris-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/polaris.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/polaris.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/polaris.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/polaris.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/presentation.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/presentation.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/presentation.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/presentation.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/product.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/product.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/product.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/product.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/project-plan.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/project-plan.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/project-plan.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/project-plan.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/project.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/project.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/project.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/project.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/qr.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/qr.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/qr.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/qr.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/receipt.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/receipt.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/receipt.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/receipt.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/reply-all.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/reply-all.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/reply-all.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/reply-all.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/reply.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/reply.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/reply.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/reply.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/reset.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/reset.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/reset.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/reset.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/robot-happy.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/robot-happy.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/robot-happy.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/robot-happy.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/robot-sad.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/robot-sad.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/robot-sad.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/robot-sad.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/robot.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/robot.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/robot.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/robot.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/roof-people.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/roof-people.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/roof-people.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/roof-people.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/row-delete.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/row-delete.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/row-delete.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/row-delete.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/row-insert.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/row-insert.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/row-insert.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/row-insert.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/row.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/row.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/row.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/row.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/rule-library-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/rule-library-solid.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/rule-library-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/rule-library-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/rule-library.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/rule-library.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/rule-library.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/rule-library.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/rule.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/rule.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/rule.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/rule.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/scale-down.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/scale-down.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/scale-down.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/scale-down.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/scale-up.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/scale-up.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/scale-up.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/scale-up.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/script.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/script.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/script.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/script.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/search-analytics-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/search-analytics-solid.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/search-analytics-solid.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/search-analytics-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/search-analytics.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/search-analytics.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/search-analytics.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/search-analytics.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/search.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/search.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/search.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/search.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/send.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/send.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/send.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/send.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/server.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/server.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/server.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/server.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/set.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/set.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/set.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/set.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/share.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/share.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/share.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/share.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/shield-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/shield-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/shield-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/shield.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/shield.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/shield.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/shield.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/shipment-box.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/shipment-box.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/shipment-box.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/shipment-box.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/shop.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/shop.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/shop.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/shop.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/shuffle.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/shuffle.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/shuffle.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/shuffle.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/sigma.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/sigma.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/sigma.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/sigma.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/slideshow.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/slideshow.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/slideshow.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/slideshow.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/snow.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/snow.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/snow.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/snow.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/speaker.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/speaker.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/speaker.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/speaker.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/split.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/split.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/split.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/split.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/stakeholders.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/stakeholders.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/stakeholders.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/stakeholders.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/star-mixed.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/star-mixed.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/star-mixed.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/star-mixed.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/star-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/star-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/star-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/star.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/star.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/star.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/star.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/sub-step.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/sub-step.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/sub-step.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/sub-step.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/table-bolt-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/table-bolt-solid.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/table-bolt-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/table-bolt-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/table-bolt.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/table-bolt.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/table-bolt.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/table-bolt.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/table.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/table.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/table.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/table.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/tag.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/tag.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/tag.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/tag.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/target-path.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/target-path.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/target-path.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/target-path.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/team.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/team.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/team.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/team.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/thumbs-down-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/thumbs-down-solid.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/thumbs-down-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/thumbs-down-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/thumbs-down.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/thumbs-down.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/thumbs-down.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/thumbs-down.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/thumbs-up-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/thumbs-up-solid.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/thumbs-up-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/thumbs-up-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/thumbs-up.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/thumbs-up.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/thumbs-up.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/thumbs-up.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/times.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/times.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/times.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/times.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/todo.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/todo.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/todo.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/todo.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/toolbox-open.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/toolbox-open.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/toolbox-open.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/toolbox-open.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/toolbox-wrench.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/toolbox-wrench.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/toolbox-wrench.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/toolbox-wrench.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/transform.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/transform.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/transform.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/transform.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/trash.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/trash.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/trash.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/trash.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/tribox.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/tribox.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/tribox.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/tribox.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/twitter.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/twitter.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/twitter.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/twitter.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/two-disk-stacks.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/two-disk-stacks.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/two-disk-stacks.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/two-disk-stacks.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/type-cursor.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/type-cursor.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/type-cursor.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/type-cursor.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/umbrella.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/umbrella.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/umbrella.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/umbrella.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/user-check.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/user-check.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/user-check.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/user-check.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/user-document.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/user-document.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/user-document.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/user-document.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/user-information.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/user-information.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/user-information.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/user-information.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/user-pencil.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/user-pencil.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/user-pencil.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/user-pencil.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/user-solid.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/user-solid.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/user-solid.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/user-star.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/user-star.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/user-star.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/user-star.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/user-unavailable.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/user-unavailable.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/user-unavailable.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/user-unavailable.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/user.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/user.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/user.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/user.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/variable.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/variable.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/variable.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/variable.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/voice.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/voice.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/voice.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/voice.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/wand.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/wand.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/wand.icon.js +2 -2
- package/lib/components/Icon/streamline-icons/wand.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/warn-solid.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/warn-solid.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/warn-solid.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/warn-solid.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/warn.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/warn.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/warn.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/warn.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/widget.icon.d.ts +1 -1
- package/lib/components/Icon/streamline-icons/widget.icon.d.ts.map +1 -1
- package/lib/components/Icon/streamline-icons/widget.icon.js +3 -3
- package/lib/components/Icon/streamline-icons/widget.icon.js.map +1 -1
- package/lib/components/Icon/streamline-icons/wifi.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/wifi.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/wifi.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/wifi.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/youtube.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/youtube.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/youtube.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/youtube.icon.js.map +1 -0
- package/lib/components/Icon/streamlineIconNames.d.ts +1 -1
- package/lib/components/Icon/streamlineIconNames.d.ts.map +1 -1
- package/lib/components/Icon/streamlineIconNames.js +66 -11
- package/lib/components/Icon/streamlineIconNames.js.map +1 -1
- package/lib/components/Lightbox/Lightbox.d.ts.map +1 -1
- package/lib/components/Lightbox/Lightbox.js +12 -7
- package/lib/components/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/Lightbox/Lightbox.styles.d.ts +1 -1
- package/lib/components/Lightbox/Lightbox.styles.d.ts.map +1 -1
- package/lib/components/Lightbox/Lightbox.types.d.ts +3 -3
- package/lib/components/Lightbox/Lightbox.types.d.ts.map +1 -1
- package/lib/components/Lightbox/Lightbox.types.js.map +1 -1
- package/lib/components/Location/LocationView.d.ts +1 -1
- package/lib/components/Location/LocationView.d.ts.map +1 -1
- package/lib/components/Location/LocationView.js +2 -2
- package/lib/components/Location/LocationView.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.d.ts.map +1 -1
- package/lib/components/MenuButton/MenuButton.js +2 -2
- package/lib/components/MenuButton/MenuButton.js.map +1 -1
- package/lib/components/Progress/Progress.styles.d.ts +1 -1
- package/lib/components/Progress/Progress.styles.d.ts.map +1 -1
- package/lib/components/Slider/Slider.d.ts.map +1 -1
- package/lib/components/Slider/Slider.js +12 -2
- package/lib/components/Slider/Slider.js.map +1 -1
- package/lib/components/Slider/Slider.types.d.ts +2 -0
- package/lib/components/Slider/Slider.types.d.ts.map +1 -1
- package/lib/components/Slider/Slider.types.js.map +1 -1
- package/lib/components/SummaryList/SummaryList.d.ts +1 -0
- package/lib/components/SummaryList/SummaryList.d.ts.map +1 -1
- package/lib/components/SummaryList/SummaryList.js +20 -5
- package/lib/components/SummaryList/SummaryList.js.map +1 -1
- package/lib/hooks/useBreakpoint.d.ts.map +1 -1
- package/lib/hooks/useBreakpoint.js +3 -2
- package/lib/hooks/useBreakpoint.js.map +1 -1
- package/lib/hooks/useI18n.d.ts +1 -0
- package/lib/hooks/useI18n.d.ts.map +1 -1
- package/lib/hooks/useScrollStick.js +73 -96
- package/lib/hooks/useScrollStick.js.map +1 -1
- package/lib/i18n/default.d.ts +1 -0
- package/lib/i18n/default.d.ts.map +1 -1
- package/lib/i18n/default.js +1 -0
- package/lib/i18n/default.js.map +1 -1
- package/lib/i18n/i18n.d.ts +1 -0
- package/lib/i18n/i18n.d.ts.map +1 -1
- package/lib/theme/ThemeMachine.js +4 -24
- package/lib/theme/ThemeMachine.js.map +1 -1
- package/lib/types/types.d.ts +2 -0
- package/lib/types/types.d.ts.map +1 -1
- package/lib/types/types.js.map +1 -1
- package/package.json +7 -7
- package/lib/components/Icon/streamline-icons/ai-assist-solid.icon.d.ts +0 -5
- package/lib/components/Icon/streamline-icons/ai-assist-solid.icon.d.ts.map +0 -1
- package/lib/components/Icon/streamline-icons/ai-assist-solid.icon.js +0 -7
- package/lib/components/Icon/streamline-icons/ai-assist-solid.icon.js.map +0 -1
- package/lib/components/Icon/streamline-icons/arrow-micro-down-solid.icon.d.ts +0 -5
- package/lib/components/Icon/streamline-icons/arrow-micro-down-solid.icon.d.ts.map +0 -1
- package/lib/components/Icon/streamline-icons/arrow-micro-down-solid.icon.js +0 -7
- package/lib/components/Icon/streamline-icons/arrow-micro-down-solid.icon.js.map +0 -1
- package/lib/components/Icon/streamline-icons/arrow-micro-left-solid.icon.d.ts +0 -5
- package/lib/components/Icon/streamline-icons/arrow-micro-left-solid.icon.d.ts.map +0 -1
- package/lib/components/Icon/streamline-icons/arrow-micro-left-solid.icon.js +0 -7
- package/lib/components/Icon/streamline-icons/arrow-micro-left-solid.icon.js.map +0 -1
- package/lib/components/Icon/streamline-icons/arrow-micro-right-solid.icon.d.ts +0 -5
- package/lib/components/Icon/streamline-icons/arrow-micro-right-solid.icon.d.ts.map +0 -1
- package/lib/components/Icon/streamline-icons/arrow-micro-right-solid.icon.js +0 -7
- package/lib/components/Icon/streamline-icons/arrow-micro-right-solid.icon.js.map +0 -1
- package/lib/components/Icon/streamline-icons/bookmarks.icon.d.ts +0 -5
- package/lib/components/Icon/streamline-icons/bookmarks.icon.d.ts.map +0 -1
- package/lib/components/Icon/streamline-icons/bookmarks.icon.js +0 -7
- package/lib/components/Icon/streamline-icons/bookmarks.icon.js.map +0 -1
- package/lib/components/Icon/streamline-icons/dataviz-table.icon.d.ts +0 -5
- package/lib/components/Icon/streamline-icons/dataviz-table.icon.d.ts.map +0 -1
- package/lib/components/Icon/streamline-icons/dataviz-table.icon.js +0 -7
- package/lib/components/Icon/streamline-icons/dataviz-table.icon.js.map +0 -1
- package/lib/components/Icon/streamline-icons/doctor-female.svg.icon.d.ts +0 -5
- package/lib/components/Icon/streamline-icons/doctor-female.svg.icon.d.ts.map +0 -1
- package/lib/components/Icon/streamline-icons/doctor-female.svg.icon.js +0 -7
- package/lib/components/Icon/streamline-icons/doctor-female.svg.icon.js.map +0 -1
- package/lib/components/Icon/streamline-icons/followers.icon.d.ts +0 -5
- package/lib/components/Icon/streamline-icons/followers.icon.d.ts.map +0 -1
- package/lib/components/Icon/streamline-icons/followers.icon.js +0 -7
- package/lib/components/Icon/streamline-icons/followers.icon.js.map +0 -1
- package/lib/components/Icon/streamline-icons/more-solid.icon.d.ts +0 -5
- package/lib/components/Icon/streamline-icons/more-solid.icon.d.ts.map +0 -1
- package/lib/components/Icon/streamline-icons/more-solid.icon.js +0 -7
- package/lib/components/Icon/streamline-icons/more-solid.icon.js.map +0 -1
- package/lib/components/Icon/streamline-icons/transfer-chat.icon.d.ts +0 -5
- package/lib/components/Icon/streamline-icons/transfer-chat.icon.d.ts.map +0 -1
- package/lib/components/Icon/streamline-icons/transfer-chat.icon.js +0 -7
- package/lib/components/Icon/streamline-icons/transfer-chat.icon.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LocationView.js","sourceRoot":"","sources":["../../../src/components/Location/LocationView.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAM,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAO,MAAM,OAAO,CAAC;AACzE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE/F,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,GAAG,CAAA;;;;;CAK5C,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAsB,KAAK,CAAC,EAAE;IACxE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAEhC,OAAO,GAAG,CAAA;cACE,MAAM;;;qBAGC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;;;GAG7C,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,kBAAkB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEnD,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAM1B,CAAC,EACC,MAAM,EACN,QAAQ,EACR,MA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aAC9D;QACH,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAY,EAAE,EAAE;YACtB,IAAI,MAAM,KAAK,UAAU,CAAC,KAAK;gBAAE,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAC7D,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;YAClC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC3B,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;QACnB,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC,CAAC;IAExE,OAAO,CACL,MAAC,kBAAkB,IAAC,MAAM,EAAE,MAAM,aAChC,KAAC,SAAS,IACR,GAAG,EAAE,UAAiC,EACtC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,KACd,SAAS,GACb,EACD,MAAM,KAAK,UAAU,CAAC,IAAI,IAAI,KAAC,QAAQ,IAAC,SAAS,EAAC,OAAO,GAAG,EAC5D,MAAM,KAAK,UAAU,CAAC,KAAK,IAAI,QAAQ,IAAI,CAC1C,KAAC,MAAM,IAAC,EAAE,EAAE,mBAAmB,gBAAc,QAAQ,EAAE,OAAO,EAAC,MAAM,YAClE,QAAQ,GACF,CACV,IACkB,CACtB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import { FC, useContext, useRef, useState, useEffect, Ref } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { BaseProps } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport { hasProp } from '../../utils';\nimport Progress from '../Progress';\nimport { Status } from '../Badges';\n\nimport { LatLng } from './types';\nimport { loadMapsAPI, getCoords, toGoogleLatLng, getPlaceById, isLatLngObject } from './utils';\nimport BaseLocationProps from './Location.types';\nimport MapsContext from './MapsContext';\n\nexport const StyledLocationError = styled.div`\n position: absolute;\n top: 40%;\n left: 50%;\n transform: translate(-50%, -50%);\n`;\n\nStyledLocationError.defaultProps = defaultThemeProp;\n\nexport const StyledLocationView = styled.div<{ height?: string }>(props => {\n const { height, theme } = props;\n\n return css`\n height: ${height};\n position: relative;\n flex: auto;\n border-radius: ${theme.base['border-radius']};\n mask-image: radial-gradient(white, black);\n -webkit-mask-image: radial-gradient(white, black);\n `;\n});\n\nStyledLocationView.defaultProps = defaultThemeProp;\n\nconst StyledMap = styled.div<{\n height?: string;\n status: string;\n disabled: boolean;\n eMessage: string;\n}>(\n ({\n height,\n disabled,\n status,\n eMessage,\n theme: {\n base: { 'disabled-opacity': disabledOpacity }\n }\n }) => {\n return css`\n height: ${height};\n ${disabled &&\n css`\n opacity: ${disabledOpacity};\n `}\n ${status === 'error' &&\n eMessage &&\n css`\n opacity: ${disabledOpacity};\n `}\n `;\n }\n);\n\nStyledMap.defaultProps = defaultThemeProp;\n\nexport interface LocationViewProps extends BaseLocationProps, BaseProps {\n /**\n * Location string as either coordinates, name of a place, or 'current' for the current location.\n * @default 'current'\n */\n location?: LatLng | string | 'current';\n /**\n * Set to true to always center the map when the selected location changes. Toggling this from false to true will re-center map on the last pinned location.\n * @default false\n */\n centerMapOnChange?: boolean;\n /**\n * Height of the map container.\n * @default '25rem'\n */\n height?: string;\n /**\n * How much the map should zoom.\n * @default 13\n */\n zoomLevel?: number;\n /** Callback fired when user clicks on a location on the map. This function will be passed the coordinates of the location that was clicked. */\n onClick?: (coords: {\n latitude: number;\n longitude: number;\n name?: string;\n address?: string;\n }) => void;\n}\n\nenum LoadStatus {\n Init = 'init',\n Ready = 'ready',\n Error = 'error'\n}\n\nconst hasPlaceId = (obj: any): obj is google.maps.IconMouseEvent & { placeId: string } => {\n return typeof obj === 'object' && obj.placeId && typeof obj.placeId === 'string';\n};\n\nconst LocationView: FC<LocationViewProps> = (props: LocationViewProps) => {\n const {\n location = 'current',\n zoomLevel = 13,\n height = '25rem',\n centerMapOnChange = false,\n onClick,\n onError,\n disabled = false,\n ...restProps\n } = props;\n const { name, ...providerOpts } = useContext(MapsContext);\n const [status, setStatus] = useState<LoadStatus>(LoadStatus.Init);\n const [eMessage, setEMessage] = useState('');\n const mapElemRef = useRef<HTMLDivElement>();\n const map = useRef<google.maps.Map>();\n const marker = useRef<google.maps.Marker>();\n\n function initialize(): void {\n if (mapElemRef.current) {\n const position = toGoogleLatLng({ latitude: 0, longitude: 0 });\n map.current = new google.maps.Map(mapElemRef.current, {\n center: position,\n zoom: 2,\n draggable: !disabled\n });\n marker.current = new google.maps.Marker({\n map: map.current,\n position\n });\n marker.current?.setVisible(false);\n if (onClick)\n map.current.addListener('click', (event: unknown) => {\n if (event && hasPlaceId(event)) {\n getPlaceById(event.placeId).then(placeInfo => {\n if (hasProp(event, 'latLng') && isLatLngObject(event.latLng))\n onClick?.({\n ...placeInfo,\n latitude: event.latLng.lat(),\n longitude: event.latLng.lng()\n });\n });\n }\n });\n }\n }\n\n useEffect(() => {\n let unMounted = false;\n loadMapsAPI(name, providerOpts)\n .then(() => {\n if (!unMounted) {\n initialize();\n setStatus(LoadStatus.Ready);\n }\n })\n .catch((error: Error) => {\n setStatus(LoadStatus.Error);\n setEMessage(error.message);\n onError?.(error);\n });\n\n return () => {\n unMounted = true;\n if (map.current) google.maps.event.clearInstanceListeners(map.current);\n };\n }, []);\n\n useEffect(() => {\n getCoords(location!)\n .then(coords => {\n if (map.current) {\n map.current.setOptions({\n zoom: zoomLevel,\n draggable: !disabled\n });\n marker.current?.setPosition(toGoogleLatLng(coords));\n marker.current?.setVisible(true);\n if (centerMapOnChange) map.current.setCenter(toGoogleLatLng(coords));\n if (status !== LoadStatus.Ready) setStatus(LoadStatus.Ready);\n }\n })\n .catch((error: Error) => {\n if (status !== LoadStatus.Error) setStatus(LoadStatus.Error);\n marker.current?.setVisible(false);\n setEMessage(error.message);\n onError?.(error);\n });\n }, [location, status, zoomLevel, disabled, centerMapOnChange, onError]);\n\n return (\n <StyledLocationView height={height}>\n <StyledMap\n ref={mapElemRef as Ref<HTMLDivElement>}\n height={height}\n disabled={disabled}\n status={status}\n eMessage={eMessage}\n {...restProps}\n />\n {status === LoadStatus.Init && <Progress placement='local' />}\n {status === LoadStatus.Error && eMessage && (\n <Status as={StyledLocationError} aria-label={eMessage} variant='info'>\n {eMessage}\n </Status>\n )}\n </StyledLocationView>\n );\n};\n\nexport default LocationView;\n"]}
|
|
1
|
+
{"version":3,"file":"LocationView.js","sourceRoot":"","sources":["../../../src/components/Location/LocationView.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAM,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAO,MAAM,OAAO,CAAC;AACzE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AACtC,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AAGnC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,cAAc,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AAE/F,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,MAAM,CAAC,MAAM,mBAAmB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA;;;;;CAKhD,CAAC;AAEF,mBAAmB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEpD,MAAM,CAAC,MAAM,kBAAkB,GAAG,MAAM,CAAC,GAAG,CAAsB,KAAK,CAAC,EAAE;IACxE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,KAAK,CAAC;IAEhC,OAAO,GAAG,CAAA;cACE,MAAM;;;qBAGC,KAAK,CAAC,IAAI,CAAC,eAAe,CAAC;;;GAG7C,CAA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,CAAC,OAAO,CAAC,SAAS,CAAC,cAAc,CAAC,MAAM,CAAC,CAAC,CAAC;gBACrE,IAAI,MAAM,KAAK,UAAU,CAAC,KAAK;oBAAE,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;aAC9D;QACH,CAAC,CAAC;aACD,KAAK,CAAC,CAAC,KAAY,EAAE,EAAE;YACtB,IAAI,MAAM,KAAK,UAAU,CAAC,KAAK;gBAAE,SAAS,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;YAC7D,MAAM,CAAC,OAAO,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC;YAClC,WAAW,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;YAC3B,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;QACnB,CAAC,CAAC,CAAC;IACP,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,QAAQ,EAAE,iBAAiB,EAAE,OAAO,CAAC,CAAC,CAAC;IAExE,OAAO,CACL,MAAC,kBAAkB,IAAC,MAAM,EAAE,MAAM,aAChC,KAAC,SAAS,IACR,GAAG,EAAE,UAAiC,EACtC,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,EAClB,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,QAAQ,KACd,SAAS,GACb,EACD,MAAM,KAAK,UAAU,CAAC,IAAI,IAAI,KAAC,QAAQ,IAAC,SAAS,EAAC,OAAO,GAAG,EAC5D,MAAM,KAAK,UAAU,CAAC,KAAK,IAAI,QAAQ,IAAI,CAC1C,KAAC,mBAAmB,kBAAa,QAAQ,EAAE,OAAO,EAAC,MAAM,YACtD,QAAQ,GACW,CACvB,IACkB,CACtB,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,YAAY,CAAC","sourcesContent":["import { FC, useContext, useRef, useState, useEffect, Ref } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport { BaseProps } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport { hasProp } from '../../utils';\nimport Progress from '../Progress';\nimport { Status } from '../Badges';\n\nimport { LatLng } from './types';\nimport { loadMapsAPI, getCoords, toGoogleLatLng, getPlaceById, isLatLngObject } from './utils';\nimport BaseLocationProps from './Location.types';\nimport MapsContext from './MapsContext';\n\nexport const StyledLocationError = styled(Status)`\n position: absolute;\n top: 40%;\n left: 50%;\n transform: translate(-50%, -50%);\n`;\n\nStyledLocationError.defaultProps = defaultThemeProp;\n\nexport const StyledLocationView = styled.div<{ height?: string }>(props => {\n const { height, theme } = props;\n\n return css`\n height: ${height};\n position: relative;\n flex: auto;\n border-radius: ${theme.base['border-radius']};\n mask-image: radial-gradient(white, black);\n -webkit-mask-image: radial-gradient(white, black);\n `;\n});\n\nStyledLocationView.defaultProps = defaultThemeProp;\n\nconst StyledMap = styled.div<{\n height?: string;\n status: string;\n disabled: boolean;\n eMessage: string;\n}>(\n ({\n height,\n disabled,\n status,\n eMessage,\n theme: {\n base: { 'disabled-opacity': disabledOpacity }\n }\n }) => {\n return css`\n height: ${height};\n ${disabled &&\n css`\n opacity: ${disabledOpacity};\n `}\n ${status === 'error' &&\n eMessage &&\n css`\n opacity: ${disabledOpacity};\n `}\n `;\n }\n);\n\nStyledMap.defaultProps = defaultThemeProp;\n\nexport interface LocationViewProps extends BaseLocationProps, BaseProps {\n /**\n * Location string as either coordinates, name of a place, or 'current' for the current location.\n * @default 'current'\n */\n location?: LatLng | string | 'current';\n /**\n * Set to true to always center the map when the selected location changes. Toggling this from false to true will re-center map on the last pinned location.\n * @default false\n */\n centerMapOnChange?: boolean;\n /**\n * Height of the map container.\n * @default '25rem'\n */\n height?: string;\n /**\n * How much the map should zoom.\n * @default 13\n */\n zoomLevel?: number;\n /** Callback fired when user clicks on a location on the map. This function will be passed the coordinates of the location that was clicked. */\n onClick?: (coords: {\n latitude: number;\n longitude: number;\n name?: string;\n address?: string;\n }) => void;\n}\n\nenum LoadStatus {\n Init = 'init',\n Ready = 'ready',\n Error = 'error'\n}\n\nconst hasPlaceId = (obj: any): obj is google.maps.IconMouseEvent & { placeId: string } => {\n return typeof obj === 'object' && obj.placeId && typeof obj.placeId === 'string';\n};\n\nconst LocationView: FC<LocationViewProps> = (props: LocationViewProps) => {\n const {\n location = 'current',\n zoomLevel = 13,\n height = '25rem',\n centerMapOnChange = false,\n onClick,\n onError,\n disabled = false,\n ...restProps\n } = props;\n const { name, ...providerOpts } = useContext(MapsContext);\n const [status, setStatus] = useState<LoadStatus>(LoadStatus.Init);\n const [eMessage, setEMessage] = useState('');\n const mapElemRef = useRef<HTMLDivElement>();\n const map = useRef<google.maps.Map>();\n const marker = useRef<google.maps.Marker>();\n\n function initialize(): void {\n if (mapElemRef.current) {\n const position = toGoogleLatLng({ latitude: 0, longitude: 0 });\n map.current = new google.maps.Map(mapElemRef.current, {\n center: position,\n zoom: 2,\n draggable: !disabled\n });\n marker.current = new google.maps.Marker({\n map: map.current,\n position\n });\n marker.current?.setVisible(false);\n if (onClick)\n map.current.addListener('click', (event: unknown) => {\n if (event && hasPlaceId(event)) {\n getPlaceById(event.placeId).then(placeInfo => {\n if (hasProp(event, 'latLng') && isLatLngObject(event.latLng))\n onClick?.({\n ...placeInfo,\n latitude: event.latLng.lat(),\n longitude: event.latLng.lng()\n });\n });\n }\n });\n }\n }\n\n useEffect(() => {\n let unMounted = false;\n loadMapsAPI(name, providerOpts)\n .then(() => {\n if (!unMounted) {\n initialize();\n setStatus(LoadStatus.Ready);\n }\n })\n .catch((error: Error) => {\n setStatus(LoadStatus.Error);\n setEMessage(error.message);\n onError?.(error);\n });\n\n return () => {\n unMounted = true;\n if (map.current) google.maps.event.clearInstanceListeners(map.current);\n };\n }, []);\n\n useEffect(() => {\n getCoords(location!)\n .then(coords => {\n if (map.current) {\n map.current.setOptions({\n zoom: zoomLevel,\n draggable: !disabled\n });\n marker.current?.setPosition(toGoogleLatLng(coords));\n marker.current?.setVisible(true);\n if (centerMapOnChange) map.current.setCenter(toGoogleLatLng(coords));\n if (status !== LoadStatus.Ready) setStatus(LoadStatus.Ready);\n }\n })\n .catch((error: Error) => {\n if (status !== LoadStatus.Error) setStatus(LoadStatus.Error);\n marker.current?.setVisible(false);\n setEMessage(error.message);\n onError?.(error);\n });\n }, [location, status, zoomLevel, disabled, centerMapOnChange, onError]);\n\n return (\n <StyledLocationView height={height}>\n <StyledMap\n ref={mapElemRef as Ref<HTMLDivElement>}\n height={height}\n disabled={disabled}\n status={status}\n eMessage={eMessage}\n {...restProps}\n />\n {status === LoadStatus.Init && <Progress placement='local' />}\n {status === LoadStatus.Error && eMessage && (\n <StyledLocationError aria-label={eMessage} variant='info'>\n {eMessage}\n </StyledLocationError>\n )}\n </StyledLocationView>\n );\n};\n\nexport default LocationView;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuButton.d.ts","sourceRoot":"","sources":["../../../src/components/MenuButton/MenuButton.tsx"],"names":[],"mappings":"AAAA,OAAO,EAGL,iBAAiB,EACjB,iBAAiB,EAKjB,oBAAoB,EACrB,MAAM,OAAO,CAAC;AAGf,OAAO,KAAK,EAAE,SAAS,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAUnG,OAAe,EAAE,WAAW,EAAgB,MAAM,WAAW,CAAC;AAC9D,OAAgB,EAAE,YAAY,EAAiB,MAAM,YAAY,CAAC;AAQlE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AACpD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAOlD,MAAM,WAAW,eAAgB,SAAQ,SAAS,EAAE,cAAc,EAAE,UAAU;IAC5E,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,SAAS,CAAC,CAAC;IACjC,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2EAA2E;IAC3E,QAAQ,CAAC,EAAE,WAA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AC3E,QAAQ,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;IAC/B,qEAAqE;IACrE,KAAK,CAAC,EAAE,UAAU,CAAC,UAAU,CAAC,CAAC;IAC/B,4CAA4C;IAC5C,OAAO,CAAC,EAAE,iBAAiB,CAAC;IAC5B,0BAA0B;IAC1B,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,UAAU,CAAC,YAAY,EAAE,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC,CAAC;IACnE,qCAAqC;IACrC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,kCAAkC;IAClC,GAAG,CAAC,EAAE,WAAW,CAAC,KAAK,CAAC,CAAC;IACzB,8CAA8C;IAC9C,SAAS,CAAC,EAAE,oBAAoB,CAAC;CAClC;;;;AA6JD,wBAA6D"}
|
|
@@ -27,7 +27,7 @@ const StyledMenuButton = styled.button(({ theme: { base: { spacing } } }) => {
|
|
|
27
27
|
`;
|
|
28
28
|
});
|
|
29
29
|
StyledMenuButton.defaultProps = defaultThemeProp;
|
|
30
|
-
const StyledMenuButtonChildren = styled.
|
|
30
|
+
const StyledMenuButtonChildren = styled.span(({ theme }) => {
|
|
31
31
|
return css `
|
|
32
32
|
max-width: 100%;
|
|
33
33
|
|
|
@@ -47,7 +47,7 @@ const StyledMenuButtonPopover = styled(Popover) `
|
|
|
47
47
|
`;
|
|
48
48
|
const MenuButton = forwardRef(function MenuButton(props, ref) {
|
|
49
49
|
const uid = useUID();
|
|
50
|
-
const { testId, id = uid, text, menu, popover, onClick,
|
|
50
|
+
const { testId, id = uid, text, menu, popover, onClick, icon, count, iconOnly = false, ...restProps } = props;
|
|
51
51
|
const testIds = useTestIds(testId, getMenuButtonTestIds);
|
|
52
52
|
const [isOpen, setIsOpen] = useState(false);
|
|
53
53
|
const buttonRef = useConsolidatedRef(ref);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MenuButton.js","sour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AAkB,GAAG,IACxC,CACJ,IACI,GACA,EACT,KAAC,uBAAuB,IACtB,SAAS,EAAE,GAAG,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,cAAc,EAC9C,kBAAkB,WACd,OAAO,EACX,EAAE,EAAE,GAAG,EAAE,UAAU,EACnB,IAAI,EAAE,CAAC,CAAC,IAAI,IAAI,MAAM,EACtB,MAAM,EAAE,SAAS,CAAC,OAAO,EACzB,GAAG,EAAE,UAAU,YAEd,IAAI,IAAI,CACP,KAAC,IAAI,IACH,MAAM,EAAE,OAAO,CAAC,IAAI,KAChB,IAAI,EACR,GAAG,EAAE,OAAO,EACZ,KAAK,EAAE,IAAI,CAAC,KAAK,EACjB,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;wBACzB,IACE,IAAI,CAAC,IAAI,KAAK,cAAc;4BAC3B,CAAgF;iCAC9E,MAAM,GAAG,CAAC,EACb;4BACA,SAAS,CAAC,KAAK,CAAC,CAAC;yBAClB;wBACD,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;oBAChC,CAAC,EACD,cAAc,EAAE,SAAS,CAAC,OAAO,IAAI,SAAS,GAC9C,CACH,GACuB,IACzB,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAC","sourcesContent":["import {\n forwardRef,\n useState,\n FunctionComponent,\n MouseEventHandler,\n MouseEvent,\n UIEvent,\n PropsWithoutRef,\n useCallback,\n KeyboardEventHandler\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport type { BaseProps, ForwardProps, NoChildrenProp, OmitStrict, TestIdProp } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport {\n useConsolidatedRef,\n useUID,\n useFocusWithin,\n useDirection,\n useTestIds,\n useEscape\n} from '../../hooks';\nimport Button, { ButtonProps, StyledButton } from '../Button';\nimport Popover, { PopoverProps, StyledPopover } from '../Popover';\nimport Menu from '../Menu';\nimport { AcceptedMouseEventElement } from '../Menu/Menu.types';\nimport Icon, { registerIcon, StyledIcon } from '../Icon';\nimport * as arrowMicroDownIcon from '../Icon/icons/arrow-micro-down.icon';\nimport Text, { StyledText } from '../Text';\nimport Flex from '../Flex';\nimport { Count } from '../Badges';\nimport type { MenuProps } from '../Menu/Menu.types';\nimport type { CountProps } from '../Badges/Count';\nimport { withTestIds } from '../../utils';\n\nimport { getMenuButtonTestIds } from './MenuButton.test-ids';\n\nregisterIcon(arrowMicroDownIcon);\n\nexport interface MenuButtonProps extends BaseProps, NoChildrenProp, TestIdProp {\n /** The text for the MenuButton also used to set the aria-label. */\n text: string;\n /**\n * Determines the Button variant for the MenuButton.\n * @default 'secondary'\n */\n variant?: ButtonProps['variant'];\n /** The name of the icon for the MenuButton. */\n icon?: string;\n /** Only display the icon. The text prop will be forwarded to a tooltip. */\n iconOnly?: ButtonProps['icon'];\n /** The total count representing the list data which was selected. */\n count?: CountProps['children'];\n /** The click handler for the MenuButton. */\n onClick?: MouseEventHandler;\n /** Menu related props. */\n menu?: MenuProps;\n /** Popover related props. */\n popover?: OmitStrict<PopoverProps, 'show' | 'target' | 'children'>;\n /** DOM id for the button element. */\n id?: string;\n /** Ref for the button element. */\n ref?: ButtonProps['ref'];\n /** The keydown handler for the MenuButton. */\n onKeyDown?: KeyboardEventHandler;\n}\n\nconst StyledMenuButton = styled.button(\n ({\n theme: {\n base: { spacing }\n }\n }) => {\n return css`\n gap: ${spacing};\n flex-shrink: 0;\n white-space: nowrap;\n max-width: 100%;\n\n & + ${StyledPopover} + ${StyledButton} {\n margin-inline-start: ${spacing};\n }\n `;\n }\n);\n\nStyledMenuButton.defaultProps = defaultThemeProp;\n\nconst StyledMenuButtonChildren = styled.div(({ theme }) => {\n return css`\n max-width: 100%;\n\n ${StyledText} {\n text-overflow: ellipsis;\n overflow: hidden;\n }\n\n ${StyledIcon}:last-child:not(:first-child) {\n /* Offsets the flex gap to make the down arrow appear to trail the text. */\n margin-inline-start: -${theme.base.spacing};\n }\n `;\n});\n\nconst StyledMenuButtonPopover = styled(Popover)`\n min-width: 20ch;\n`;\n\nconst MenuButton: FunctionComponent<ForwardProps & MenuButtonProps> = forwardRef(\n function MenuButton(props: PropsWithoutRef<MenuButtonProps>, ref: MenuButtonProps['ref']) {\n const uid = useUID();\n const {\n testId,\n id = uid,\n text,\n menu,\n popover,\n onClick,\n onKeyDown,\n icon,\n count,\n iconOnly = false,\n ...restProps\n } = props;\n const testIds = useTestIds(testId, getMenuButtonTestIds);\n const [isOpen, setIsOpen] = useState(false);\n\n const buttonRef = useConsolidatedRef(ref);\n const popoverRef = useConsolidatedRef<HTMLDivElement>(popover?.ref);\n const menuRef = useConsolidatedRef<HTMLDivElement>(menu?.ref);\n\n // FIXME: Type assertion required for issue in useFocusWithin generic\n useFocusWithin<HTMLElement>(\n [popoverRef, buttonRef],\n useCallback(isFocused => {\n if (!isFocused) setIsOpen(false);\n }, [])\n );\n\n useEscape(e => {\n if (isOpen) {\n setIsOpen(false);\n e.stopPropagation();\n }\n }, buttonRef);\n\n const { rtl } = useDirection();\n\n return (\n <>\n <Button\n data-testid={testIds.root}\n as={StyledMenuButton}\n aria-label={text}\n {...restProps}\n id={id}\n ref={buttonRef}\n aria-expanded={isOpen}\n aria-haspopup='menu'\n aria-controls={`${id}-popover`}\n label={iconOnly && !isOpen ? text : undefined}\n onClick={(e: MouseEvent<HTMLButtonElement> & UIEvent<HTMLButtonElement>) => {\n // clickCount is 0 when triggered by keyboard.\n const clickCount = e.detail;\n\n // Close the menu if it is open and either:\n // It is a *mouse* click on the button.\n // Or, the menu mode is not multiselect.\n if (isOpen && (clickCount > 0 || menu?.mode !== 'multi-select')) {\n setIsOpen(false);\n } else {\n setIsOpen(true);\n }\n\n onClick?.(e);\n }}\n icon={iconOnly}\n >\n <Flex as={StyledMenuButtonChildren} container={{ alignItems: 'center', gap: 1 }}>\n {icon && <Icon name={icon} />}\n {!iconOnly && (\n <>\n {text && <Text>{text}</Text>}\n {typeof count === 'number' && <Count>{count}</Count>}\n {text && <Icon name='arrow-micro-down' />}\n </>\n )}\n </Flex>\n </Button>\n <StyledMenuButtonPopover\n placement={rtl ? 'bottom-end' : 'bottom-start'}\n hideOnTargetHidden\n {...popover}\n id={`${id}-popover`}\n show={!!menu && isOpen}\n target={buttonRef.current}\n ref={popoverRef}\n >\n {menu && (\n <Menu\n testId={testIds.root}\n {...menu}\n ref={menuRef}\n items={menu.items}\n onItemClick={(itemId, e) => {\n if (\n menu.mode !== 'multi-select' &&\n (e as MouseEvent<AcceptedMouseEventElement> & UIEvent<AcceptedMouseEventElement>)\n .detail > 0\n ) {\n setIsOpen(false);\n }\n menu.onItemClick?.(itemId, e);\n }}\n focusControlEl={buttonRef.current || undefined}\n />\n )}\n </StyledMenuButtonPopover>\n </>\n );\n }\n);\n\nexport default withTestIds(MenuButton, getMenuButtonTestIds);\n"]}
|
|
1
|
+
{"version":3,"file":"MenuButton.js","sourceRoot":"","sources":["../../../src/components/MenuButton/MenuButton.tsx"],"names":[],"mappings":";AAAA,OAAO,EACL,UAAU,EACV,QAAQ,EAMR,WAAW,EAEZ,MAAM,OAAO,CAAC;AACf,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAGhD,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EACL,kBAAkB,EAClB,MAAM,EACN,cAAc,EACd,YAAY,EACZ,UAAU,EACV,SAAS,EACV,MAAM,aAAa,CAAC;AACrB,OAAO,MAAM,EAAE,EAAe,YAAY,EAAE,MAAM,WAAW,CAAC;AAC9D,OAAO,OAAO,EAAE,EAAgB,aAAa,EAAE,MAAM,YAAY,CAAC;AAClE,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,IAAI,EAAE,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,kBAAkB,MAAM,qCAAqC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AAI,CAAC,WAAW,EAAE,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;oBAChC,CAAC,EACD,cAAc,EAAE,SAAS,CAAC,OAAO,IAAI,SAAS,GAC9C,CACH,GACuB,IACzB,CACJ,CAAC;AACJ,CAAC,CACF,CAAC;AAEF,eAAe,WAAW,CAAC,UAAU,EAAE,oBAAoB,CAAC,CAAC","sourcesContent":["import {\n forwardRef,\n useState,\n FunctionComponent,\n MouseEventHandler,\n MouseEvent,\n UIEvent,\n PropsWithoutRef,\n useCallback,\n KeyboardEventHandler\n} from 'react';\nimport styled, { css } from 'styled-components';\n\nimport type { BaseProps, ForwardProps, NoChildrenProp, OmitStrict, TestIdProp } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport {\n useConsolidatedRef,\n useUID,\n useFocusWithin,\n useDirection,\n useTestIds,\n useEscape\n} from '../../hooks';\nimport Button, { ButtonProps, StyledButton } from '../Button';\nimport Popover, { PopoverProps, StyledPopover } from '../Popover';\nimport Menu from '../Menu';\nimport { AcceptedMouseEventElement } from '../Menu/Menu.types';\nimport Icon, { registerIcon, StyledIcon } from '../Icon';\nimport * as arrowMicroDownIcon from '../Icon/icons/arrow-micro-down.icon';\nimport Text, { StyledText } from '../Text';\nimport Flex from '../Flex';\nimport { Count } from '../Badges';\nimport type { MenuProps } from '../Menu/Menu.types';\nimport type { CountProps } from '../Badges/Count';\nimport { withTestIds } from '../../utils';\n\nimport { getMenuButtonTestIds } from './MenuButton.test-ids';\n\nregisterIcon(arrowMicroDownIcon);\n\nexport interface MenuButtonProps extends BaseProps, NoChildrenProp, TestIdProp {\n /** The text for the MenuButton also used to set the aria-label. */\n text: string;\n /**\n * Determines the Button variant for the MenuButton.\n * @default 'secondary'\n */\n variant?: ButtonProps['variant'];\n /** The name of the icon for the MenuButton. */\n icon?: string;\n /** Only display the icon. The text prop will be forwarded to a tooltip. */\n iconOnly?: ButtonProps['icon'];\n /** The total count representing the list data which was selected. */\n count?: CountProps['children'];\n /** The click handler for the MenuButton. */\n onClick?: MouseEventHandler;\n /** Menu related props. */\n menu?: MenuProps;\n /** Popover related props. */\n popover?: OmitStrict<PopoverProps, 'show' | 'target' | 'children'>;\n /** DOM id for the button element. */\n id?: string;\n /** Ref for the button element. */\n ref?: ButtonProps['ref'];\n /** The keydown handler for the MenuButton. */\n onKeyDown?: KeyboardEventHandler;\n}\n\nconst StyledMenuButton = styled.button(\n ({\n theme: {\n base: { spacing }\n }\n }) => {\n return css`\n gap: ${spacing};\n flex-shrink: 0;\n white-space: nowrap;\n max-width: 100%;\n\n & + ${StyledPopover} + ${StyledButton} {\n margin-inline-start: ${spacing};\n }\n `;\n }\n);\n\nStyledMenuButton.defaultProps = defaultThemeProp;\n\nconst StyledMenuButtonChildren = styled.span(({ theme }) => {\n return css`\n max-width: 100%;\n\n ${StyledText} {\n text-overflow: ellipsis;\n overflow: hidden;\n }\n\n ${StyledIcon}:last-child:not(:first-child) {\n /* Offsets the flex gap to make the down arrow appear to trail the text. */\n margin-inline-start: -${theme.base.spacing};\n }\n `;\n});\n\nconst StyledMenuButtonPopover = styled(Popover)`\n min-width: 20ch;\n`;\n\nconst MenuButton: FunctionComponent<ForwardProps & MenuButtonProps> = forwardRef(\n function MenuButton(props: PropsWithoutRef<MenuButtonProps>, ref: MenuButtonProps['ref']) {\n const uid = useUID();\n const {\n testId,\n id = uid,\n text,\n menu,\n popover,\n onClick,\n icon,\n count,\n iconOnly = false,\n ...restProps\n } = props;\n const testIds = useTestIds(testId, getMenuButtonTestIds);\n const [isOpen, setIsOpen] = useState(false);\n\n const buttonRef = useConsolidatedRef(ref);\n const popoverRef = useConsolidatedRef<HTMLDivElement>(popover?.ref);\n const menuRef = useConsolidatedRef<HTMLDivElement>(menu?.ref);\n\n // FIXME: Type assertion required for issue in useFocusWithin generic\n useFocusWithin<HTMLElement>(\n [popoverRef, buttonRef],\n useCallback(isFocused => {\n if (!isFocused) setIsOpen(false);\n }, [])\n );\n\n useEscape(e => {\n if (isOpen) {\n setIsOpen(false);\n e.stopPropagation();\n }\n }, buttonRef);\n\n const { rtl } = useDirection();\n\n return (\n <>\n <Button\n data-testid={testIds.root}\n as={StyledMenuButton}\n aria-label={text}\n {...restProps}\n id={id}\n ref={buttonRef}\n aria-expanded={isOpen}\n aria-haspopup='menu'\n aria-controls={`${id}-popover`}\n label={iconOnly && !isOpen ? text : undefined}\n onClick={(e: MouseEvent<HTMLButtonElement> & UIEvent<HTMLButtonElement>) => {\n // clickCount is 0 when triggered by keyboard.\n const clickCount = e.detail;\n\n // Close the menu if it is open and either:\n // It is a *mouse* click on the button.\n // Or, the menu mode is not multiselect.\n if (isOpen && (clickCount > 0 || menu?.mode !== 'multi-select')) {\n setIsOpen(false);\n } else {\n setIsOpen(true);\n }\n\n onClick?.(e);\n }}\n icon={iconOnly}\n >\n <Flex as={StyledMenuButtonChildren} container={{ alignItems: 'center', gap: 1 }}>\n {icon && <Icon name={icon} />}\n {!iconOnly && (\n <>\n {text && <Text>{text}</Text>}\n {typeof count === 'number' && <Count>{count}</Count>}\n {text && <Icon name='arrow-micro-down' />}\n </>\n )}\n </Flex>\n </Button>\n <StyledMenuButtonPopover\n placement={rtl ? 'bottom-end' : 'bottom-start'}\n hideOnTargetHidden\n {...popover}\n id={`${id}-popover`}\n show={!!menu && isOpen}\n target={buttonRef.current}\n ref={popoverRef}\n >\n {menu && (\n <Menu\n testId={testIds.root}\n {...menu}\n ref={menuRef}\n items={menu.items}\n onItemClick={(itemId, e) => {\n if (\n menu.mode !== 'multi-select' &&\n (e as MouseEvent<AcceptedMouseEventElement> & UIEvent<AcceptedMouseEventElement>)\n .detail > 0\n ) {\n setIsOpen(false);\n }\n menu.onItemClick?.(itemId, e);\n }}\n focusControlEl={buttonRef.current || undefined}\n />\n )}\n </StyledMenuButtonPopover>\n </>\n );\n }\n);\n\nexport default withTestIds(MenuButton, getMenuButtonTestIds);\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ProgressProps } from './Progress.types';
|
|
2
|
-
export declare const StyledProgressBackdrop: import("styled-components").StyledComponent<import("react").
|
|
2
|
+
export declare const StyledProgressBackdrop: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Pick<import("../Backdrop").BackdropProps, "hidden" | "color" | "style" | "alpha" | "open" | "position" | "translate" | "prefix" | "slot" | "title" | "children" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "role" | "about" | "datatype" | "inlist" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "variant" | "container" | "transitionSpeed" | "onBeforeTransitionIn" | "onAfterTransitionIn" | "onBeforeTransitionOut" | "onAfterTransitionOut"> & import("react").RefAttributes<HTMLDivElement>>, import("styled-components").DefaultTheme, {}, never>;
|
|
3
3
|
export declare const StyledProgressRing: import("styled-components").StyledComponent<"div", import("styled-components").DefaultTheme, Pick<ProgressProps, "placement"> & {
|
|
4
4
|
determinate: boolean;
|
|
5
5
|
}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Progress.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/Progress.styles.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,eAAO,MAAM,sBAAsB,
|
|
1
|
+
{"version":3,"file":"Progress.styles.d.ts","sourceRoot":"","sources":["../../../src/components/Progress/Progress.styles.ts"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAEjD,eAAO,MAAM,sBAAsB,o3JAAqB,CAAC;AAczD,eAAO,MAAM,kBAAkB;iBACqB,OAAO;SAkDzD,CAAC;AAIH,eAAO,MAAM,iBAAiB;iBACG,OAAO;SAwDtC,CAAC;AAIH,eAAO,MAAM,sBAAsB,uIAsEjC,CAAC;AAIH,eAAO,MAAM,aAAa,0GAexB,CAAC;AAIH,eAAO,MAAM,cAAc,+NAc1B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAUlB,MAAM,OAAO,CAAC;AAOf,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,WAAW,MAAM,gBAAgB,CAAC;;;;
|
|
1
|
+
{"version":3,"file":"Slider.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,EAUlB,MAAM,OAAO,CAAC;AAOf,OAAO,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAG3C,OAAO,WAAW,MAAM,gBAAgB,CAAC;;;;AAuQzC,wBAAqD"}
|
|
@@ -12,7 +12,7 @@ import SliderTicks from './SliderTicks';
|
|
|
12
12
|
import { getSliderTestIds } from './Slider.test-ids';
|
|
13
13
|
const Slider = forwardRef(function Slider(props, ref) {
|
|
14
14
|
const uid = useUID();
|
|
15
|
-
const { testId, id = uid, required, status, info, label, labelHidden, min = 0, max = 100, step = 1, value = min, orientation = 'horizontal', preview, disabled = false, readOnly = false, showInput = true, showProgress, ticks = {}, onChange, autoFocus, onDragStart, onDragEnd: onDragEndProp, ...restProps } = props;
|
|
15
|
+
const { testId, id = uid, required, status, info, label, labelHidden, min = 0, max = 100, step = 1, value = min, orientation = 'horizontal', preview, disabled = false, readOnly = false, showInput = true, showProgress, ticks = {}, additionalInfo, onChange, autoFocus, onDragStart, onDragEnd: onDragEndProp, ...restProps } = props;
|
|
16
16
|
const testIds = useTestIds(testId, getSliderTestIds);
|
|
17
17
|
const thumbRef = useConsolidatedRef(ref);
|
|
18
18
|
const trackRef = useRef(null);
|
|
@@ -117,7 +117,17 @@ const Slider = forwardRef(function Slider(props, ref) {
|
|
|
117
117
|
e.preventDefault(); // Prevent dispatching mouse events as some browser may do that
|
|
118
118
|
onDragStart?.();
|
|
119
119
|
}, "aria-valuemin": min, "aria-valuemax": max, "aria-valuenow": value, "aria-orientation": orientation, "aria-readonly": readOnly || undefined, "aria-disabled": disabled || undefined, id: id, "aria-label": label?.toString(), "aria-describedby": `${id}-info`, "aria-controls": `${id}-value` })] }), Object.keys(ticks).length > 0 && (_jsx(SliderTicks, { ticks: ticks, min: min, max: max, step: step, orientation: orientation, onClick: setValue }))] }), showInput && !preview && (_jsx(NumberInput, { "data-testid": testIds.control, id: `${id}-value`, status: status, min: min, max: max, step: step, value: inputValue, showGroupSeparators: false, onChange: setInputValue, onBlur: v => setValue(getNearestValue(Number(v), min, max, step)), size: size, readOnly: readOnly, disabled: disabled, "aria-label": label?.toString() })), preview && _jsx(StyledPreview, { id: `${id}-value`, value: value.toString(), size: size })] }));
|
|
120
|
-
return label ? (_jsx(FormField, { ...{
|
|
120
|
+
return label ? (_jsx(FormField, { ...{
|
|
121
|
+
testId: testIds,
|
|
122
|
+
label,
|
|
123
|
+
labelHidden,
|
|
124
|
+
id,
|
|
125
|
+
info,
|
|
126
|
+
status,
|
|
127
|
+
required,
|
|
128
|
+
disabled,
|
|
129
|
+
additionalInfo
|
|
130
|
+
}, children: Comp })) : (Comp);
|
|
121
131
|
});
|
|
122
132
|
export default withTestIds(Slider, getSliderTestIds);
|
|
123
133
|
//# sourceMappingURL=Slider.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAIL,WAAW,EACX,SAAS,EACT,MAAM,EACN,QAAQ,EAER,UAAU,EAGX,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,W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E,IAAI,EACV,QAAQ,EAAE,QAAQ,EAClB,QAAQ,EAAE,QAAQ,gBACN,KAAK,EAAE,QAAQ,EAAE,GAC7B,CACH,EACA,OAAO,IAAI,KAAC,aAAa,IAAC,EAAE,EAAE,GAAG,EAAE,QAAQ,EAAE,KAAK,EAAE,KAAK,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,GAAI,IAChF,CACR,CAAC;IAEF,OAAO,KAAK,CAAC,CAAC,CAAC,CACb,KAAC,SAAS,OAAK,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,WAAW,EAAE,EAAE,EAAE,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,YACzF,IAAI,GACK,CACb,CAAC,CAAC,CAAC,CACF,IAAI,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC","sourcesContent":["import {\n KeyboardEvent,\n FunctionComponent,\n PropsWithoutRef,\n useCallback,\n useEffect,\n useRef,\n useState,\n CSSProperties,\n forwardRef,\n Ref,\n TouchEvent as ReactTouchEvent\n} from 'react';\n\nimport { NumberInput } from '../Number';\nimport { useConsolidatedRef, useDirection, useTestIds, useUID } from '../../hooks';\nimport FormField from '../FormField';\nimport Flex from '../Flex';\nimport Grid from '../Grid';\nimport { ForwardProps } from '../../types';\nimport { cap, withTestIds } from '../../utils';\n\nimport SliderProps from './Slider.types';\nimport {\n StyledSlider,\n StyledTrack,\n StyledThumb,\n StyledSliderTrackWrapper,\n StyledBar,\n StyledPreview\n} from './Slider.styles';\nimport { calculateValueLength, getNearestValue } from './utils';\nimport SliderTicks from './SliderTicks';\nimport { getSliderTestIds } from './Slider.test-ids';\n\nconst Slider: FunctionComponent<SliderProps & ForwardProps> = forwardRef(function Slider(\n props: PropsWithoutRef<SliderProps>,\n ref: Ref<HTMLDivElement>\n) {\n const uid = useUID();\n const {\n testId,\n id = uid,\n required,\n status,\n info,\n label,\n labelHidden,\n min = 0,\n max = 100,\n step = 1,\n value = min,\n orientation = 'horizontal',\n preview,\n disabled = false,\n readOnly = false,\n showInput = true,\n showProgress,\n ticks = {},\n onChange,\n autoFocus,\n onDragStart,\n onDragEnd: onDragEndProp,\n ...restProps\n } = props;\n\n const testIds = useTestIds(testId, getSliderTestIds);\n\n const thumbRef = useConsolidatedRef<HTMLDivElement>(ref);\n const trackRef = useRef<HTMLDivElement>(null);\n const [inDrag, setInDrag] = useState(false);\n const [inputValue, setInputValue] = useState(value.toString());\n\n const setValue = useCallback(\n (newValue: number) => {\n if (disabled || readOnly) return;\n const normalizedValue = Math.min(Math.max(newValue, min), max);\n\n setInputValue(normalizedValue.toString());\n onChange(normalizedValue);\n },\n [disabled, readOnly, onChange]\n );\n\n const { start, end } = useDirection();\n\n const moveThumb = useCallback(\n (e: MouseEvent | TouchEvent) => {\n if (disabled || readOnly) return;\n if (trackRef.current) {\n const track = trackRef.current.getBoundingClientRect();\n const { clientX, clientY } = 'touches' in e ? e.touches[0] : e;\n const newPosition =\n orientation === 'horizontal'\n ? (clientX - track[start]) / (track[end] - track[start])\n : (clientY - track.bottom) / (track.top - track.bottom);\n\n const normalizedValue = Math.min(Math.max(min + (max - min) * newPosition, min), max);\n setValue(getNearestValue(normalizedValue, min, max, step));\n }\n thumbRef.current?.focus();\n },\n [disabled, readOnly, step, min, max, setValue, start, end]\n );\n\n const onThumbKeyDown = useCallback(\n (e: KeyboardEvent<HTMLDivElement>) => {\n if (\n [\n 'ArrowDown',\n 'ArrowUp',\n 'ArrowLeft',\n 'ArrowRight',\n 'PageUp',\n 'PageDown',\n 'Home',\n 'End'\n ].includes(e.key)\n )\n e.preventDefault();\n\n switch (e.key) {\n case 'ArrowDown':\n case `Arrow${cap(start)}`:\n setValue(value - step);\n break;\n case 'ArrowUp':\n case `Arrow${cap(end)}`:\n setValue(value + step);\n break;\n case 'PageUp':\n setValue(value + 10 * step);\n break;\n case 'PageDown':\n setValue(value - 10 * step);\n break;\n case 'Home':\n setValue(min);\n break;\n case 'End':\n setValue(max);\n break;\n default:\n }\n },\n [setValue, value, step, start, end]\n );\n\n useEffect(() => {\n const onDragEnd = () => {\n setInDrag(false);\n if (inDrag) onDragEndProp?.();\n };\n\n document.addEventListener('mouseup', onDragEnd);\n document.addEventListener('touchend', onDragEnd);\n document.addEventListener('touchcancel', onDragEnd);\n if (inDrag) {\n document.addEventListener('mousemove', moveThumb);\n document.addEventListener('touchmove', moveThumb);\n }\n\n return () => {\n document.removeEventListener('mouseup', onDragEnd);\n document.removeEventListener('touchend', onDragEnd);\n document.removeEventListener('touchcancel', onDragEnd);\n document.removeEventListener('mousemove', moveThumb);\n document.removeEventListener('touchmove', moveThumb);\n };\n }, [inDrag, moveThumb, onDragEndProp]);\n\n useEffect(() => {\n if (autoFocus) thumbRef.current?.focus();\n }, [autoFocus]);\n\n const percentage = ((Number(value) - min) / (max - min)) * 100;\n const size = calculateValueLength(min, max, step);\n\n const Comp = (\n <Flex\n data-testid={testIds.root}\n {...restProps}\n as={StyledSlider}\n container={{\n alignItems: 'start',\n direction: orientation === 'horizontal' ? 'row' : 'column'\n }}\n orientation={orientation}\n {...{ status, disabled, readOnly, size }}\n style={\n {\n '--slider-value': `${percentage}%`,\n userSelect: inDrag ? 'none' : 'auto'\n } as CSSProperties\n }\n >\n <Grid as={StyledSliderTrackWrapper} container>\n <Flex\n as={StyledTrack}\n ref={trackRef}\n onMouseDown={moveThumb}\n container={{ alignItems: 'center', justify: 'center' }}\n >\n <StyledBar showProgress={showProgress} />\n <StyledThumb\n ref={thumbRef}\n role='slider'\n tabIndex={0}\n onKeyDown={onThumbKeyDown}\n onMouseDown={() => {\n setInDrag(true);\n onDragStart?.();\n }}\n onTouchStart={(e: ReactTouchEvent<HTMLDivElement>) => {\n setInDrag(true);\n e.preventDefault(); // Prevent dispatching mouse events as some browser may do that\n onDragStart?.();\n }}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-valuenow={value}\n aria-orientation={orientation}\n aria-readonly={readOnly || undefined}\n aria-disabled={disabled || undefined}\n id={id}\n aria-label={label?.toString()}\n aria-describedby={`${id}-info`}\n aria-controls={`${id}-value`}\n />\n </Flex>\n {Object.keys(ticks).length > 0 && (\n <SliderTicks\n ticks={ticks}\n min={min}\n max={max}\n step={step}\n orientation={orientation}\n onClick={setValue}\n />\n )}\n </Grid>\n {showInput && !preview && (\n <NumberInput\n data-testid={testIds.control}\n id={`${id}-value`}\n status={status}\n min={min}\n max={max}\n step={step}\n value={inputValue}\n showGroupSeparators={false}\n onChange={setInputValue}\n onBlur={v => setValue(getNearestValue(Number(v), min, max, step))}\n size={size}\n readOnly={readOnly}\n disabled={disabled}\n aria-label={label?.toString()}\n />\n )}\n {preview && <StyledPreview id={`${id}-value`} value={value.toString()} size={size} />}\n </Flex>\n );\n\n return label ? (\n <FormField {...{ testId: testIds, label, labelHidden, id, info, status, required, disabled }}>\n {Comp}\n </FormField>\n ) : (\n Comp\n );\n});\n\nexport default withTestIds(Slider, getSliderTestIds);\n"]}
|
|
1
|
+
{"version":3,"file":"Slider.js","sourceRoot":"","sources":["../../../src/components/Slider/Slider.tsx"],"names":[],"mappings":";AAAA,OAAO,EAIL,WAAW,EACX,SAAS,EACT,MAAM,EACN,QAAQ,EAER,UAAU,EAGX,MAAM,OAAO,CAAC;AAEf,OAAO,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAAE,kBAAkB,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACnF,OAAO,SAAS,MAAM,cAAc,CAAC;AACrC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAC;AAE3B,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAG/C,OAAO,EACL,YAAY,EACZ,WAAW,EACX,WAAW,EACX,wBAAwB,EACxB,SAAS,EACT,aAAa,EACd,MAAM,iBAAiB,CAAC;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;YACJ,MAAM;YACN,QAAQ;YACR,QAAQ;YACR,cAAc;SACf,YAEA,IAAI,GACK,CACb,CAAC,CAAC,CAAC,CACF,IAAI,CACL,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC","sourcesContent":["import {\n KeyboardEvent,\n FunctionComponent,\n PropsWithoutRef,\n useCallback,\n useEffect,\n useRef,\n useState,\n CSSProperties,\n forwardRef,\n Ref,\n TouchEvent as ReactTouchEvent\n} from 'react';\n\nimport { NumberInput } from '../Number';\nimport { useConsolidatedRef, useDirection, useTestIds, useUID } from '../../hooks';\nimport FormField from '../FormField';\nimport Flex from '../Flex';\nimport Grid from '../Grid';\nimport { ForwardProps } from '../../types';\nimport { cap, withTestIds } from '../../utils';\n\nimport SliderProps from './Slider.types';\nimport {\n StyledSlider,\n StyledTrack,\n StyledThumb,\n StyledSliderTrackWrapper,\n StyledBar,\n StyledPreview\n} from './Slider.styles';\nimport { calculateValueLength, getNearestValue } from './utils';\nimport SliderTicks from './SliderTicks';\nimport { getSliderTestIds } from './Slider.test-ids';\n\nconst Slider: FunctionComponent<SliderProps & ForwardProps> = forwardRef(function Slider(\n props: PropsWithoutRef<SliderProps>,\n ref: Ref<HTMLDivElement>\n) {\n const uid = useUID();\n const {\n testId,\n id = uid,\n required,\n status,\n info,\n label,\n labelHidden,\n min = 0,\n max = 100,\n step = 1,\n value = min,\n orientation = 'horizontal',\n preview,\n disabled = false,\n readOnly = false,\n showInput = true,\n showProgress,\n ticks = {},\n additionalInfo,\n onChange,\n autoFocus,\n onDragStart,\n onDragEnd: onDragEndProp,\n ...restProps\n } = props;\n\n const testIds = useTestIds(testId, getSliderTestIds);\n\n const thumbRef = useConsolidatedRef<HTMLDivElement>(ref);\n const trackRef = useRef<HTMLDivElement>(null);\n const [inDrag, setInDrag] = useState(false);\n const [inputValue, setInputValue] = useState(value.toString());\n\n const setValue = useCallback(\n (newValue: number) => {\n if (disabled || readOnly) return;\n const normalizedValue = Math.min(Math.max(newValue, min), max);\n\n setInputValue(normalizedValue.toString());\n onChange(normalizedValue);\n },\n [disabled, readOnly, onChange]\n );\n\n const { start, end } = useDirection();\n\n const moveThumb = useCallback(\n (e: MouseEvent | TouchEvent) => {\n if (disabled || readOnly) return;\n if (trackRef.current) {\n const track = trackRef.current.getBoundingClientRect();\n const { clientX, clientY } = 'touches' in e ? e.touches[0] : e;\n const newPosition =\n orientation === 'horizontal'\n ? (clientX - track[start]) / (track[end] - track[start])\n : (clientY - track.bottom) / (track.top - track.bottom);\n\n const normalizedValue = Math.min(Math.max(min + (max - min) * newPosition, min), max);\n setValue(getNearestValue(normalizedValue, min, max, step));\n }\n thumbRef.current?.focus();\n },\n [disabled, readOnly, step, min, max, setValue, start, end]\n );\n\n const onThumbKeyDown = useCallback(\n (e: KeyboardEvent<HTMLDivElement>) => {\n if (\n [\n 'ArrowDown',\n 'ArrowUp',\n 'ArrowLeft',\n 'ArrowRight',\n 'PageUp',\n 'PageDown',\n 'Home',\n 'End'\n ].includes(e.key)\n )\n e.preventDefault();\n\n switch (e.key) {\n case 'ArrowDown':\n case `Arrow${cap(start)}`:\n setValue(value - step);\n break;\n case 'ArrowUp':\n case `Arrow${cap(end)}`:\n setValue(value + step);\n break;\n case 'PageUp':\n setValue(value + 10 * step);\n break;\n case 'PageDown':\n setValue(value - 10 * step);\n break;\n case 'Home':\n setValue(min);\n break;\n case 'End':\n setValue(max);\n break;\n default:\n }\n },\n [setValue, value, step, start, end]\n );\n\n useEffect(() => {\n const onDragEnd = () => {\n setInDrag(false);\n if (inDrag) onDragEndProp?.();\n };\n\n document.addEventListener('mouseup', onDragEnd);\n document.addEventListener('touchend', onDragEnd);\n document.addEventListener('touchcancel', onDragEnd);\n if (inDrag) {\n document.addEventListener('mousemove', moveThumb);\n document.addEventListener('touchmove', moveThumb);\n }\n\n return () => {\n document.removeEventListener('mouseup', onDragEnd);\n document.removeEventListener('touchend', onDragEnd);\n document.removeEventListener('touchcancel', onDragEnd);\n document.removeEventListener('mousemove', moveThumb);\n document.removeEventListener('touchmove', moveThumb);\n };\n }, [inDrag, moveThumb, onDragEndProp]);\n\n useEffect(() => {\n if (autoFocus) thumbRef.current?.focus();\n }, [autoFocus]);\n\n const percentage = ((Number(value) - min) / (max - min)) * 100;\n const size = calculateValueLength(min, max, step);\n\n const Comp = (\n <Flex\n data-testid={testIds.root}\n {...restProps}\n as={StyledSlider}\n container={{\n alignItems: 'start',\n direction: orientation === 'horizontal' ? 'row' : 'column'\n }}\n orientation={orientation}\n {...{ status, disabled, readOnly, size }}\n style={\n {\n '--slider-value': `${percentage}%`,\n userSelect: inDrag ? 'none' : 'auto'\n } as CSSProperties\n }\n >\n <Grid as={StyledSliderTrackWrapper} container>\n <Flex\n as={StyledTrack}\n ref={trackRef}\n onMouseDown={moveThumb}\n container={{ alignItems: 'center', justify: 'center' }}\n >\n <StyledBar showProgress={showProgress} />\n <StyledThumb\n ref={thumbRef}\n role='slider'\n tabIndex={0}\n onKeyDown={onThumbKeyDown}\n onMouseDown={() => {\n setInDrag(true);\n onDragStart?.();\n }}\n onTouchStart={(e: ReactTouchEvent<HTMLDivElement>) => {\n setInDrag(true);\n e.preventDefault(); // Prevent dispatching mouse events as some browser may do that\n onDragStart?.();\n }}\n aria-valuemin={min}\n aria-valuemax={max}\n aria-valuenow={value}\n aria-orientation={orientation}\n aria-readonly={readOnly || undefined}\n aria-disabled={disabled || undefined}\n id={id}\n aria-label={label?.toString()}\n aria-describedby={`${id}-info`}\n aria-controls={`${id}-value`}\n />\n </Flex>\n {Object.keys(ticks).length > 0 && (\n <SliderTicks\n ticks={ticks}\n min={min}\n max={max}\n step={step}\n orientation={orientation}\n onClick={setValue}\n />\n )}\n </Grid>\n {showInput && !preview && (\n <NumberInput\n data-testid={testIds.control}\n id={`${id}-value`}\n status={status}\n min={min}\n max={max}\n step={step}\n value={inputValue}\n showGroupSeparators={false}\n onChange={setInputValue}\n onBlur={v => setValue(getNearestValue(Number(v), min, max, step))}\n size={size}\n readOnly={readOnly}\n disabled={disabled}\n aria-label={label?.toString()}\n />\n )}\n {preview && <StyledPreview id={`${id}-value`} value={value.toString()} size={size} />}\n </Flex>\n );\n\n return label ? (\n <FormField\n {...{\n testId: testIds,\n label,\n labelHidden,\n id,\n info,\n status,\n required,\n disabled,\n additionalInfo\n }}\n >\n {Comp}\n </FormField>\n ) : (\n Comp\n );\n});\n\nexport default withTestIds(Slider, getSliderTestIds);\n"]}
|
|
@@ -68,6 +68,8 @@ export default interface SliderProps extends BaseProps, NoChildrenProp, TestIdPr
|
|
|
68
68
|
ticks?: {
|
|
69
69
|
[key: number]: string;
|
|
70
70
|
};
|
|
71
|
+
/** Pass a heading and content to show additional information on the field. */
|
|
72
|
+
additionalInfo?: FormControlProps['additionalInfo'];
|
|
71
73
|
/**
|
|
72
74
|
* On change callback.
|
|
73
75
|
* @param value new input value
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.types.d.ts","sourceRoot":"","sources":["../../../src/components/Slider/Slider.types.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,MAAM,CAAC,OAAO,WAAW,WAAY,SAAQ,SAAS,EAAE,cAAc,EAAE,UAAU;IAChF;;;OAGG;IACH,EAAE,CAAC,EAAE,gBAAgB,CAAC,IAAI,CAAC,CAAC;IAC5B,oDAAoD;IACpD,MAAM,CAAC,EAAE,gBAAgB,CAAC,QAAQ,CAAC,CAAC;IACpC,2DAA2D;IAC3D,KAAK,CAAC,EAAE,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAClC,uCAAuC;IACvC,WAAW,CAAC,EAAE,gBAAgB,CAAC,aAAa,CAAC,CAAC;IAC9C,6GAA6G;IAC7G,IAAI,CAAC,EAAE,gBAAgB,CAAC,MAAM,CAAC,C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OAAO,CAAC;IACvB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,6BAA6B;IAC7B,KAAK,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IAClC,8EAA8E;IAC9E,cAAc,CAAC,EAAE,gBAAgB,CAAC,gBAAgB,CAAC,CAAC;IACpD;;;OAGG;IACH,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAClC,6DAA6D;IAC7D,WAAW,CAAC,EAAE,MAAM,IAAI,CAAC;IACzB,4DAA4D;IAC5D,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.types.js","sourceRoot":"","sources":["../../../src/components/Slider/Slider.types.ts"],"names":[],"mappings":"","sourcesContent":["import { BaseProps, NoChildrenProp, TestIdProp } from '../../types';\nimport { FormControlProps } from '../FormControl';\n\nexport default interface SliderProps extends BaseProps, NoChildrenProp, TestIdProp {\n /**\n * Sets DOM id for the control and associates label element via 'for' attribute.\n * If an id is not pass, a random id will be generated for any render.\n */\n id?: FormControlProps['id'];\n /** Set visual state based on a validation state. */\n status?: FormControlProps['status'];\n /** Pass a string or a fragment with an Icon and string. */\n label?: FormControlProps['label'];\n /** Visually hides the label region. */\n labelHidden?: FormControlProps['labelHidden'];\n /** It is recommended to pass a simple string to offer guidance. Text will be styled based on status prop. */\n info?: FormControlProps['info'];\n /** Indicate if the field is required. The browser defaults to false. */\n required?: FormControlProps['required'];\n /**\n * Creates a controlled input and sets the value. Requires an onChange handler to update value.\n * value + onChange is the recommended method per React team.\n */\n value: number;\n /** Disable the control. The browser defaults to false. */\n disabled?: FormControlProps['disabled'];\n /** Makes the input non editable and non clickable. The browser defaults to false. */\n readOnly?: FormControlProps['readOnly'];\n /** Sets html name attribute for the underlying control. Useful for mapping to a data field. */\n name?: FormControlProps['name'];\n /** Will automatically focus the thumb on render if true */\n autoFocus?: boolean;\n /**\n * Minimum value.\n * @default 0\n */\n min?: number;\n /**\n * Maximum value.\n * @default 100\n */\n max?: number;\n /**\n * Step value.\n * @default 1\n */\n step?: number;\n /**\n * Slider orientation.\n * @default 'horizontal'\n */\n orientation?: 'vertical' | 'horizontal';\n /**\n * Show slider color progress bar.\n * @default false\n */\n showProgress?: boolean;\n /**\n * Show current value.\n * @default false\n */\n preview?: boolean;\n /**\n * Display input to provide value.\n * @default true\n */\n showInput?: boolean;\n /** Display defined ticks. */\n ticks?: { [key: number]: string };\n /**\n * On change callback.\n * @param value new input value\n */\n onChange: (value: number) => void;\n /** Called when the user starts dragging the slider thumb. */\n onDragStart?: () => void;\n /** Called when the user stops dragging the slider thumb. */\n onDragEnd?: () => void;\n}\n\nexport interface TickDefinition {\n start: number;\n end: number;\n value: number;\n label: string;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"Slider.types.js","sourceRoot":"","sources":["../../../src/components/Slider/Slider.types.ts"],"names":[],"mappings":"","sourcesContent":["import { BaseProps, NoChildrenProp, TestIdProp } from '../../types';\nimport { FormControlProps } from '../FormControl';\n\nexport default interface SliderProps extends BaseProps, NoChildrenProp, TestIdProp {\n /**\n * Sets DOM id for the control and associates label element via 'for' attribute.\n * If an id is not pass, a random id will be generated for any render.\n */\n id?: FormControlProps['id'];\n /** Set visual state based on a validation state. */\n status?: FormControlProps['status'];\n /** Pass a string or a fragment with an Icon and string. */\n label?: FormControlProps['label'];\n /** Visually hides the label region. */\n labelHidden?: FormControlProps['labelHidden'];\n /** It is recommended to pass a simple string to offer guidance. Text will be styled based on status prop. */\n info?: FormControlProps['info'];\n /** Indicate if the field is required. The browser defaults to false. */\n required?: FormControlProps['required'];\n /**\n * Creates a controlled input and sets the value. Requires an onChange handler to update value.\n * value + onChange is the recommended method per React team.\n */\n value: number;\n /** Disable the control. The browser defaults to false. */\n disabled?: FormControlProps['disabled'];\n /** Makes the input non editable and non clickable. The browser defaults to false. */\n readOnly?: FormControlProps['readOnly'];\n /** Sets html name attribute for the underlying control. Useful for mapping to a data field. */\n name?: FormControlProps['name'];\n /** Will automatically focus the thumb on render if true */\n autoFocus?: boolean;\n /**\n * Minimum value.\n * @default 0\n */\n min?: number;\n /**\n * Maximum value.\n * @default 100\n */\n max?: number;\n /**\n * Step value.\n * @default 1\n */\n step?: number;\n /**\n * Slider orientation.\n * @default 'horizontal'\n */\n orientation?: 'vertical' | 'horizontal';\n /**\n * Show slider color progress bar.\n * @default false\n */\n showProgress?: boolean;\n /**\n * Show current value.\n * @default false\n */\n preview?: boolean;\n /**\n * Display input to provide value.\n * @default true\n */\n showInput?: boolean;\n /** Display defined ticks. */\n ticks?: { [key: number]: string };\n /** Pass a heading and content to show additional information on the field. */\n additionalInfo?: FormControlProps['additionalInfo'];\n /**\n * On change callback.\n * @param value new input value\n */\n onChange: (value: number) => void;\n /** Called when the user starts dragging the slider thumb. */\n onDragStart?: () => void;\n /** Called when the user stops dragging the slider thumb. */\n onDragEnd?: () => void;\n}\n\nexport interface TickDefinition {\n start: number;\n end: number;\n value: number;\n label: string;\n}\n"]}
|
|
@@ -40,6 +40,7 @@ export interface SummaryListItem extends OmitStrict<SummaryItemProps, 'actions'>
|
|
|
40
40
|
/** A set of Actions to render alongside the item. If more than one action is passed a consolidated ActionMenu will be generated. */
|
|
41
41
|
actions?: Action[];
|
|
42
42
|
}
|
|
43
|
+
export declare const StyledSummaryListHeader: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Card").CardHeaderProps & ForwardProps>, import("styled-components").DefaultTheme, {}, never>;
|
|
43
44
|
export declare const StyledSummaryListContent: import("styled-components").StyledComponent<import("react").FunctionComponent<import("../Card").CardContentProps & ForwardProps>, import("styled-components").DefaultTheme, {
|
|
44
45
|
loading?: boolean | undefined;
|
|
45
46
|
}, never>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SummaryList.d.ts","sourceRoot":"","sources":["../../../src/components/SummaryList/SummaryList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,GAAG,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAGtE,OAAgB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAMnD,OAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI3F,OAAO,WAAW,EAAE,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"SummaryList.d.ts","sourceRoot":"","sources":["../../../src/components/SummaryList/SummaryList.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA+B,GAAG,EAAE,EAAE,EAAW,MAAM,OAAO,CAAC;AAGtE,OAAgB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAMnD,OAAmB,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAC5D,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAI3F,OAAO,WAAW,EAAE,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAI/D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrD,MAAM,WAAW,gBAAiB,SAAQ,cAAc;IACtD,uGAAuG;IACvG,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,UAAU,CAAC,EAAE,UAAU,CAAC;IACxB,iDAAiD;IACjD,IA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import Card, { CardHeader, CardContent, CardFooter } from '../Card';
|
|
9
|
+
import Card, { CardHeader, CardContent, CardFooter, StyledCard } from '../Card';
|
|
10
10
|
import EmptyState from '../EmptyState';
|
|
11
11
|
import { omitProps } from '../../styles';
|
|
12
12
|
import { useI18n } from '../../hooks';
|
|
@@ -15,6 +15,13 @@ import SummaryItem from '../SummaryItem';
|
|
|
15
15
|
import Progress from '../Progress';
|
|
16
16
|
import Button from '../Button';
|
|
17
17
|
import ErrorState from '../ErrorState';
|
|
18
|
+
import { StyledCardFooter } from '../Card/CardFooter';
|
|
19
|
+
export const StyledSummaryListHeader = styled(CardHeader)(({ theme }) => css `
|
|
20
|
+
&:not(${StyledCard} ${StyledCard} > &) {
|
|
21
|
+
padding-block-end: calc(${theme.base.spacing} / 2);
|
|
22
|
+
}
|
|
23
|
+
`);
|
|
24
|
+
StyledSummaryListHeader.defaultProps = defaultThemeProp;
|
|
18
25
|
export const StyledSummaryListContent = styled(CardContent).withConfig(omitProps('loading'))(({ theme, loading }) => css `
|
|
19
26
|
${loading &&
|
|
20
27
|
css `
|
|
@@ -22,15 +29,23 @@ export const StyledSummaryListContent = styled(CardContent).withConfig(omitProps
|
|
|
22
29
|
`}
|
|
23
30
|
|
|
24
31
|
&:not(:last-child) > ul > li:last-child {
|
|
25
|
-
border-
|
|
32
|
+
border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:not(${StyledCard} ${StyledCard} > &) {
|
|
36
|
+
padding-block-end: calc(${theme.base.spacing} / 2);
|
|
37
|
+
|
|
38
|
+
& + ${StyledCardFooter} {
|
|
39
|
+
padding-block-start: ${theme.base.spacing};
|
|
40
|
+
}
|
|
26
41
|
}
|
|
27
42
|
`);
|
|
28
43
|
StyledSummaryListContent.defaultProps = defaultThemeProp;
|
|
29
44
|
export const StyledSummaryListItem = styled(SummaryItem)(({ theme }) => css `
|
|
30
|
-
padding: ${theme.base.spacing}
|
|
45
|
+
padding-block: ${theme.base.spacing};
|
|
31
46
|
|
|
32
47
|
&:not(:last-child) {
|
|
33
|
-
border-
|
|
48
|
+
border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};
|
|
34
49
|
}
|
|
35
50
|
`);
|
|
36
51
|
StyledSummaryListItem.defaultProps = defaultThemeProp;
|
|
@@ -53,7 +68,7 @@ const SummaryList = forwardRef(function SummaryList({ icon, name, headingTag = '
|
|
|
53
68
|
}
|
|
54
69
|
return items.length > 0 ? (_jsx(SummaryListItems, { name: name, items: items })) : (_jsx(EmptyState, { message: noItemsText }));
|
|
55
70
|
}, [loading, items, noItemsText, error]);
|
|
56
|
-
return (_jsxs(Card, { ref: ref, ...restProps, children: [(icon || name || typeof count === 'number' || actions) && (_jsxs(
|
|
71
|
+
return (_jsxs(Card, { ref: ref, ...restProps, children: [(icon || name || typeof count === 'number' || actions) && (_jsxs(StyledSummaryListHeader, { children: [_jsxs(Flex, { container: { alignItems: 'center', gap: 1 }, children: [icon && _jsx(Icon, { name: icon }), name && _jsx(Text, { variant: headingTag, children: name }), typeof count === 'number' && _jsx(Count, { children: count })] }), actions && _jsx(Actions, { items: actions, contextualLabel: name })] })), _jsx(StyledSummaryListContent, { loading: loading, children: content }), !error && typeof count === 'number' && count > items.length && onViewAll && (_jsx(CardFooter, { justify: 'center', children: _jsx(Button, { variant: 'link', "aria-label": name ? t('view_all_noun', [name.toLowerCase()]) : t('view_all'), onClick: onViewAll, children: t('view_all') }) }))] }));
|
|
57
72
|
});
|
|
58
73
|
export default SummaryList;
|
|
59
74
|
//# sourceMappingURL=SummaryList.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SummaryList.js","sourceRoot":"","sources":["../../../src/components/SummaryList/SummaryList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAA4B,OAAO,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEh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Ae,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,EAC3E,OAAO,EAAE,SAAS,YAEjB,CAAC,CAAC,UAAU,CAAC,GACP,GACE,CACd,IACI,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC","sourcesContent":["import { forwardRef, PropsWithoutRef, Ref, FC, useMemo } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport Actions, { ActionsProps } from '../Actions';\nimport Flex from '../Flex';\nimport Text from '../Text';\nimport Count from '../Badges/Count';\nimport Icon from '../Icon';\nimport Card, { CardHeader, CardContent, CardFooter } from '../Card';\nimport EmptyState, { EmptyStateProps } from '../EmptyState';\nimport { ForwardProps, NoChildrenProp, OmitStrict, Action, HeadingTag } from '../../types';\nimport { omitProps } from '../../styles';\nimport { useI18n } from '../../hooks';\nimport { defaultThemeProp } from '../../theme';\nimport SummaryItem, { SummaryItemProps } from '../SummaryItem';\nimport Progress from '../Progress';\nimport Button from '../Button';\nimport ErrorState from '../ErrorState';\nimport type { ErrorStateProps } from '../ErrorState';\n\nexport interface SummaryListProps extends NoChildrenProp {\n /** Name of the utility to be used as its heading along with associated actions and aria attributes. */\n name?: string;\n /**\n * The heading tag to render the provided name as with.\n * @default 'h2'\n */\n headingTag?: HeadingTag;\n /** Identifier for the icon within Pega icons. */\n icon?: string;\n /** Integer representing the total count of items for a list utility dataset. */\n count?: number;\n /** Top level actions for the utility. If more than one action is passed a consolidated ActionMenu will be generated. */\n actions?: Action[];\n /** If the utility is in a state of fetching data. */\n loading?: boolean | string;\n /** An array of SummaryListItem objects to render. Pass an appropriately limited length array with a desired sort order based on design system defaults or config. */\n items: SummaryListItem[];\n /** User click initiated callback for when to show view all modal. List lengths less than the count prop will display a \"View all\" button with this function is bound to. */\n onViewAll?: (callback: Function) => void;\n /** A simple message to display when there are no items. */\n noItemsText?: EmptyStateProps['message'];\n /**\n * Indicate an error occurred while acquiring data for the list.\n * The default error state may be overridden with custom props.\n */\n error?: boolean | ErrorStateProps;\n /** Ref for the SummaryList's root element. */\n ref?: Ref<HTMLElement>;\n}\n\nexport interface SummaryListItem\n extends OmitStrict<SummaryItemProps, 'actions'>,\n Pick<ActionsProps, 'contextualLabel'>,\n ForwardProps {\n /** A unique id to represent the item. */\n id: string;\n /** A set of Actions to render alongside the item. If more than one action is passed a consolidated ActionMenu will be generated. */\n actions?: Action[];\n}\n\nexport const StyledSummaryListContent = styled(CardContent).withConfig<{ loading?: boolean }>(\n omitProps('loading')\n)(\n ({ theme, loading }) => css`\n ${loading &&\n css`\n min-height: 4rem;\n `}\n\n &:not(:last-child) > ul > li:last-child {\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n `\n);\n\nStyledSummaryListContent.defaultProps = defaultThemeProp;\n\nexport const StyledSummaryListItem: typeof SummaryItem = styled(SummaryItem)(\n ({ theme }) =>\n css`\n padding: ${theme.base.spacing} 0;\n\n &:not(:last-child) {\n border-bottom: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n `\n);\n\nStyledSummaryListItem.defaultProps = defaultThemeProp;\n\nexport const SummaryListItems = ({ name, items }: Pick<SummaryListProps, 'items' | 'name'>) => {\n const t = useI18n();\n return (\n <ul>\n {items.map(({ id, actions: itemActions, contextualLabel, ...restItemProps }) => {\n return (\n <StyledSummaryListItem\n key={id}\n {...restItemProps}\n forwardedAs='li'\n actions={\n itemActions && (\n <Actions\n items={itemActions}\n contextualLabel={\n name && contextualLabel\n ? t('action_from_summarylist_heading', [contextualLabel, name])\n : contextualLabel\n }\n />\n )\n }\n />\n );\n })}\n </ul>\n );\n};\n\nconst SummaryList: FC<SummaryListProps & ForwardProps> = forwardRef(function SummaryList(\n {\n icon,\n name,\n headingTag = 'h2',\n count,\n actions,\n items,\n onViewAll,\n loading,\n noItemsText,\n error,\n ...restProps\n }: PropsWithoutRef<SummaryListProps>,\n ref: SummaryListProps['ref']\n) {\n const t = useI18n();\n\n const content = useMemo(() => {\n if (loading) {\n return (\n <Progress placement='local' message={typeof loading === 'string' ? loading : undefined} />\n );\n }\n\n if (error) {\n return <ErrorState {...(error === true ? {} : error)} />;\n }\n\n return items.length > 0 ? (\n <SummaryListItems name={name} items={items} />\n ) : (\n <EmptyState message={noItemsText} />\n );\n }, [loading, items, noItemsText, error]);\n\n return (\n <Card ref={ref} {...restProps}>\n {(icon || name || typeof count === 'number' || actions) && (\n <CardHeader>\n <Flex container={{ alignItems: 'center', gap: 1 }}>\n {icon && <Icon name={icon} />}\n {name && <Text variant={headingTag}>{name}</Text>}\n {typeof count === 'number' && <Count>{count}</Count>}\n </Flex>\n {actions && <Actions items={actions} contextualLabel={name} />}\n </CardHeader>\n )}\n\n <StyledSummaryListContent loading={loading}>{content}</StyledSummaryListContent>\n\n {!error && typeof count === 'number' && count > items.length && onViewAll && (\n <CardFooter justify='center'>\n <Button\n variant='link'\n aria-label={name ? t('view_all_noun', [name.toLowerCase()]) : t('view_all')}\n onClick={onViewAll}\n >\n {t('view_all')}\n </Button>\n </CardFooter>\n )}\n </Card>\n );\n});\n\nexport default SummaryList;\n"]}
|
|
1
|
+
{"version":3,"file":"SummaryList.js","sourceRoot":"","sources":["../../../src/components/SummaryList/SummaryList.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,UAAU,EAA4B,OAAO,EAAE,MAAM,OAAO,CAAC;AACtE,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,OAAyB,MAAM,YAAY,CAAC;AACnD,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,KAAK,MAAM,iBAAiB,CAAC;AACpC,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,EAAE,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAChF,OAAO,UAA+B,M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SAAS,IAAI,CAC3E,KAAC,UAAU,IAAC,OAAO,EAAC,QAAQ,YAC1B,KAAC,MAAM,IACL,OAAO,EAAC,MAAM,gBACF,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,eAAe,EAAE,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,EAC3E,OAAO,EAAE,SAAS,YAEjB,CAAC,CAAC,UAAU,CAAC,GACP,GACE,CACd,IACI,CACR,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,WAAW,CAAC","sourcesContent":["import { forwardRef, PropsWithoutRef, Ref, FC, useMemo } from 'react';\nimport styled, { css } from 'styled-components';\n\nimport Actions, { ActionsProps } from '../Actions';\nimport Flex from '../Flex';\nimport Text from '../Text';\nimport Count from '../Badges/Count';\nimport Icon from '../Icon';\nimport Card, { CardHeader, CardContent, CardFooter, StyledCard } from '../Card';\nimport EmptyState, { EmptyStateProps } from '../EmptyState';\nimport { ForwardProps, NoChildrenProp, OmitStrict, Action, HeadingTag } from '../../types';\nimport { omitProps } from '../../styles';\nimport { useI18n } from '../../hooks';\nimport { defaultThemeProp } from '../../theme';\nimport SummaryItem, { SummaryItemProps } from '../SummaryItem';\nimport Progress from '../Progress';\nimport Button from '../Button';\nimport ErrorState from '../ErrorState';\nimport type { ErrorStateProps } from '../ErrorState';\nimport { StyledCardFooter } from '../Card/CardFooter';\n\nexport interface SummaryListProps extends NoChildrenProp {\n /** Name of the utility to be used as its heading along with associated actions and aria attributes. */\n name?: string;\n /**\n * The heading tag to render the provided name as with.\n * @default 'h2'\n */\n headingTag?: HeadingTag;\n /** Identifier for the icon within Pega icons. */\n icon?: string;\n /** Integer representing the total count of items for a list utility dataset. */\n count?: number;\n /** Top level actions for the utility. If more than one action is passed a consolidated ActionMenu will be generated. */\n actions?: Action[];\n /** If the utility is in a state of fetching data. */\n loading?: boolean | string;\n /** An array of SummaryListItem objects to render. Pass an appropriately limited length array with a desired sort order based on design system defaults or config. */\n items: SummaryListItem[];\n /** User click initiated callback for when to show view all modal. List lengths less than the count prop will display a \"View all\" button with this function is bound to. */\n onViewAll?: (callback: Function) => void;\n /** A simple message to display when there are no items. */\n noItemsText?: EmptyStateProps['message'];\n /**\n * Indicate an error occurred while acquiring data for the list.\n * The default error state may be overridden with custom props.\n */\n error?: boolean | ErrorStateProps;\n /** Ref for the SummaryList's root element. */\n ref?: Ref<HTMLElement>;\n}\n\nexport interface SummaryListItem\n extends OmitStrict<SummaryItemProps, 'actions'>,\n Pick<ActionsProps, 'contextualLabel'>,\n ForwardProps {\n /** A unique id to represent the item. */\n id: string;\n /** A set of Actions to render alongside the item. If more than one action is passed a consolidated ActionMenu will be generated. */\n actions?: Action[];\n}\n\nexport const StyledSummaryListHeader = styled(CardHeader)(\n ({ theme }) =>\n css`\n &:not(${StyledCard} ${StyledCard} > &) {\n padding-block-end: calc(${theme.base.spacing} / 2);\n }\n `\n);\n\nStyledSummaryListHeader.defaultProps = defaultThemeProp;\n\nexport const StyledSummaryListContent = styled(CardContent).withConfig<{ loading?: boolean }>(\n omitProps('loading')\n)(\n ({ theme, loading }) => css`\n ${loading &&\n css`\n min-height: 4rem;\n `}\n\n &:not(:last-child) > ul > li:last-child {\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n\n &:not(${StyledCard} ${StyledCard} > &) {\n padding-block-end: calc(${theme.base.spacing} / 2);\n\n & + ${StyledCardFooter} {\n padding-block-start: ${theme.base.spacing};\n }\n }\n `\n);\n\nStyledSummaryListContent.defaultProps = defaultThemeProp;\n\nexport const StyledSummaryListItem: typeof SummaryItem = styled(SummaryItem)(\n ({ theme }) =>\n css`\n padding-block: ${theme.base.spacing};\n\n &:not(:last-child) {\n border-block-end: 0.0625rem solid ${theme.base.palette['border-line']};\n }\n `\n);\n\nStyledSummaryListItem.defaultProps = defaultThemeProp;\n\nexport const SummaryListItems = ({ name, items }: Pick<SummaryListProps, 'items' | 'name'>) => {\n const t = useI18n();\n return (\n <ul>\n {items.map(({ id, actions: itemActions, contextualLabel, ...restItemProps }) => {\n return (\n <StyledSummaryListItem\n key={id}\n {...restItemProps}\n forwardedAs='li'\n actions={\n itemActions && (\n <Actions\n items={itemActions}\n contextualLabel={\n name && contextualLabel\n ? t('action_from_summarylist_heading', [contextualLabel, name])\n : contextualLabel\n }\n />\n )\n }\n />\n );\n })}\n </ul>\n );\n};\n\nconst SummaryList: FC<SummaryListProps & ForwardProps> = forwardRef(function SummaryList(\n {\n icon,\n name,\n headingTag = 'h2',\n count,\n actions,\n items,\n onViewAll,\n loading,\n noItemsText,\n error,\n ...restProps\n }: PropsWithoutRef<SummaryListProps>,\n ref: SummaryListProps['ref']\n) {\n const t = useI18n();\n\n const content = useMemo(() => {\n if (loading) {\n return (\n <Progress placement='local' message={typeof loading === 'string' ? loading : undefined} />\n );\n }\n\n if (error) {\n return <ErrorState {...(error === true ? {} : error)} />;\n }\n\n return items.length > 0 ? (\n <SummaryListItems name={name} items={items} />\n ) : (\n <EmptyState message={noItemsText} />\n );\n }, [loading, items, noItemsText, error]);\n\n return (\n <Card ref={ref} {...restProps}>\n {(icon || name || typeof count === 'number' || actions) && (\n <StyledSummaryListHeader>\n <Flex container={{ alignItems: 'center', gap: 1 }}>\n {icon && <Icon name={icon} />}\n {name && <Text variant={headingTag}>{name}</Text>}\n {typeof count === 'number' && <Count>{count}</Count>}\n </Flex>\n {actions && <Actions items={actions} contextualLabel={name} />}\n </StyledSummaryListHeader>\n )}\n\n <StyledSummaryListContent loading={loading}>{content}</StyledSummaryListContent>\n\n {!error && typeof count === 'number' && count > items.length && onViewAll && (\n <CardFooter justify='center'>\n <Button\n variant='link'\n aria-label={name ? t('view_all_noun', [name.toLowerCase()]) : t('view_all')}\n onClick={onViewAll}\n >\n {t('view_all')}\n </Button>\n </CardFooter>\n )}\n </Card>\n );\n});\n\nexport default SummaryList;\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,SAAS,EAAE,MAAM,OAAO,CAAC;AAY1E;;;;;GAKG;AACH,QAAA,MAAM,aAAa,eACL,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI;oBAM1B,UAAU,OAAO,CAAC,GAAG,SAAS;;;
|
|
1
|
+
{"version":3,"file":"useBreakpoint.d.ts","sourceRoot":"","sources":["../../src/hooks/useBreakpoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0C,SAAS,EAAE,MAAM,OAAO,CAAC;AAY1E;;;;;GAKG;AACH,QAAA,MAAM,aAAa,eACL,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI;oBAM1B,UAAU,OAAO,CAAC,GAAG,SAAS;;;aAyEjD,CAAC;AAEF,eAAe,aAAa,CAAC"}
|
|
@@ -23,7 +23,7 @@ const useBreakpoint = (breakpoint, { breakpointRef, defaultValue = false, themeP
|
|
|
23
23
|
useLayoutEffect(() => {
|
|
24
24
|
// Breakpoint handling for contained elements
|
|
25
25
|
if (breakpointRef && breakpointRef.current) {
|
|
26
|
-
const
|
|
26
|
+
const debouncedResize = debounce((entries) => {
|
|
27
27
|
const matchesBreakpoint = entries.some(({ target, contentRect }) => {
|
|
28
28
|
if (target !== breakpointRef.current)
|
|
29
29
|
return;
|
|
@@ -31,7 +31,8 @@ const useBreakpoint = (breakpoint, { breakpointRef, defaultValue = false, themeP
|
|
|
31
31
|
return contentRect.width >= parseFloat(breakpointVal) * multiplier;
|
|
32
32
|
});
|
|
33
33
|
setMatches(matchesBreakpoint);
|
|
34
|
-
});
|
|
34
|
+
}, 100);
|
|
35
|
+
const observer = new ResizeObserver(debouncedResize);
|
|
35
36
|
observer.observe(breakpointRef.current);
|
|
36
37
|
return () => {
|
|
37
38
|
observer.disconnect();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3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D,CAAC,EAAE,GAAG,CAAC,CAAC;YAER,+DAA+D;YAC/D,IAAI,mBAAmB,EAAE;gBACvB,UAAU,CAAC,gBAAgB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;gBAChD,UAAU,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;aAChC;iBAAM;gBACL,MAAM,CAAC,gBAAgB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;gBACjD,UAAU,CAAC,MAAM,CAAC,UAAU,IAAI,QAAQ,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,CAAC;aAC9D;YAED,OAAO,GAAG,EAAE;gBACV,+DAA+D;gBAC/D,IAAI,mBAAmB;oBAAE,UAAU,CAAC,mBAAmB,CAAC,QAAQ,EAAE,QAAQ,CAAC,CAAC;qBACvE;oBACH,MAAM,CAAC,mBAAmB,CAAC,QAAQ,EAAE,aAAa,CAAC,CAAC;iBACrD;YACH,CAAC,CAAC;SACH;IACH,CAAC,EAAE,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC;IAE7B,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC;AAEF,eAAe,aAAa,CAAC","sourcesContent":["import { useState, useLayoutEffect, useCallback, RefObject } from 'react';\n\nimport { windowIsAvailable, debounce } from '../utils';\n\nimport useChToPxConversionFactor from './useChToPxConversionFactor';\nimport useTheme from './useTheme';\n\n// We should be able to safely capture once as the computed root font size is unlikely to change during normal runtime.\nconst rootFontSize = windowIsAvailable\n ? window.getComputedStyle(document.documentElement).fontSize\n : '16px';\n\n/**\n * @example const breakpointActive = useBreakpoint(breakpoint);\n * @param breakpoint The string indicator for the breakpoint that should be checked for validity.\n * @param options\n * @returns breakpointActive:: A boolean indicating if the given breakpoint is active or not. If false, the breakpoint is too big for the screen size.\n */\nconst useBreakpoint = (\n breakpoint: 'xs' | 'sm' | 'md' | 'lg' | 'xl',\n {\n breakpointRef,\n defaultValue = false,\n themeProp = 'breakpoints'\n }: {\n breakpointRef?: RefObject<Element> | undefined;\n defaultValue?: boolean;\n themeProp?: 'breakpoints' | 'content-width';\n } = {}\n) => {\n const {\n base: { breakpoints, 'content-width': contentWidth }\n } = useTheme();\n const breakpointVal =\n themeProp === 'content-width' ? contentWidth[breakpoint] : breakpoints[breakpoint];\n\n const [matches, setMatches] = useState(\n windowIsAvailable ? window.matchMedia(`(min-width: ${breakpointVal})`).matches : !!defaultValue\n );\n\n const chToPxConversionFactor = useChToPxConversionFactor();\n\n const onResize = useCallback((e: MediaQueryListEvent) => {\n setMatches(e.matches);\n }, []);\n\n useLayoutEffect(() => {\n // Breakpoint handling for contained elements\n if (breakpointRef && breakpointRef.current) {\n const debouncedResize = debounce((entries: ResizeObserverEntry[]) => {\n const matchesBreakpoint = entries.some(({ target, contentRect }) => {\n if (target !== breakpointRef.current) return;\n\n const multiplier =\n themeProp === 'breakpoints' ? parseFloat(rootFontSize) : chToPxConversionFactor;\n return contentRect.width >= parseFloat(breakpointVal) * multiplier;\n });\n\n setMatches(matchesBreakpoint);\n }, 100);\n\n const observer = new ResizeObserver(debouncedResize);\n\n observer.observe(breakpointRef.current);\n\n return () => {\n observer.disconnect();\n };\n }\n\n // Breakpoint handling for viewport\n if (windowIsAvailable) {\n const mediaMatch = window.matchMedia(`(min-width: ${breakpointVal})`);\n const mediaMatchAvailable = 'addEventListener' in mediaMatch;\n const resizeHandler = debounce(() => {\n setMatches(window.innerWidth >= parseInt(breakpointVal, 10));\n }, 100);\n\n // Need to check useMatchMedia in order to support unit testing\n if (mediaMatchAvailable) {\n mediaMatch.addEventListener('change', onResize);\n setMatches(mediaMatch.matches);\n } else {\n window.addEventListener('resize', resizeHandler);\n setMatches(window.innerWidth >= parseInt(breakpointVal, 10));\n }\n\n return () => {\n // Need to check useMatchMedia in order to support unit testing\n if (mediaMatchAvailable) mediaMatch.removeEventListener('change', onResize);\n else {\n window.removeEventListener('resize', resizeHandler);\n }\n };\n }\n }, [breakpointRef?.current]);\n\n return matches;\n};\n\nexport default useBreakpoint;\n"]}
|
package/lib/hooks/useI18n.d.ts
CHANGED
|
@@ -616,6 +616,7 @@ declare const useI18n: () => import("../i18n/translate").TranslationFunction<Rea
|
|
|
616
616
|
open_live_transcript: string;
|
|
617
617
|
close_live_transcript: string;
|
|
618
618
|
download_live_transcript: string;
|
|
619
|
+
transcripts: string;
|
|
619
620
|
verbatim: string;
|
|
620
621
|
dialog: string;
|
|
621
622
|
sentiment_positive: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,QAAA,MAAM,OAAO
|
|
1
|
+
{"version":3,"file":"useI18n.d.ts","sourceRoot":"","sources":["../../src/hooks/useI18n.ts"],"names":[],"mappings":"AAMA;;;GAGG;AACH,QAAA,MAAM,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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