@pega/cosmos-react-core 10.0.0-build.1.8 → 10.0.0-build.10.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 +2 -1
- package/lib/components/AIButton/AIButton.js.map +1 -1
- package/lib/components/AIRewrite/AIRewrite.d.ts +1 -1
- package/lib/components/AIRewrite/AIRewrite.d.ts.map +1 -1
- package/lib/components/AIRewrite/AIRewrite.js +7 -3
- package/lib/components/AIRewrite/AIRewrite.js.map +1 -1
- package/lib/components/AIRewrite/AIRewrite.styles.d.ts +43 -7
- package/lib/components/AIRewrite/AIRewrite.styles.d.ts.map +1 -1
- package/lib/components/AIRewrite/AIRewrite.styles.js +5 -2
- package/lib/components/AIRewrite/AIRewrite.styles.js.map +1 -1
- package/lib/components/AIRewrite/AIRewrite.types.d.ts +2 -0
- package/lib/components/AIRewrite/AIRewrite.types.d.ts.map +1 -1
- package/lib/components/AIRewrite/AIRewrite.types.js.map +1 -1
- package/lib/components/AppShell/AppHeader.d.ts.map +1 -1
- package/lib/components/AppShell/AppHeader.js +90 -9
- package/lib/components/AppShell/AppHeader.js.map +1 -1
- package/lib/components/AppShell/AppHeader.styles.d.ts +6 -2
- package/lib/components/AppShell/AppHeader.styles.d.ts.map +1 -1
- package/lib/components/AppShell/AppHeader.styles.js +89 -56
- package/lib/components/AppShell/AppHeader.styles.js.map +1 -1
- package/lib/components/AppShell/AppNavigationPanel.d.ts.map +1 -1
- package/lib/components/AppShell/AppNavigationPanel.js +16 -7
- package/lib/components/AppShell/AppNavigationPanel.js.map +1 -1
- package/lib/components/AppShell/AppShell.d.ts +3 -2
- package/lib/components/AppShell/AppShell.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.js +134 -177
- package/lib/components/AppShell/AppShell.js.map +1 -1
- package/lib/components/AppShell/AppShell.styles.d.ts +20 -15
- package/lib/components/AppShell/AppShell.styles.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.styles.js +145 -211
- package/lib/components/AppShell/AppShell.styles.js.map +1 -1
- package/lib/components/AppShell/AppShell.types.d.ts +117 -2
- package/lib/components/AppShell/AppShell.types.d.ts.map +1 -1
- package/lib/components/AppShell/AppShell.types.js.map +1 -1
- package/lib/components/AppShell/AppShellContext.d.ts +3 -0
- package/lib/components/AppShell/AppShellContext.d.ts.map +1 -1
- package/lib/components/AppShell/AppShellContext.js +1 -0
- package/lib/components/AppShell/AppShellContext.js.map +1 -1
- package/lib/components/AppShell/AppShellList.d.ts +2 -0
- package/lib/components/AppShell/AppShellList.d.ts.map +1 -1
- package/lib/components/AppShell/AppShellList.js +8 -4
- package/lib/components/AppShell/AppShellList.js.map +1 -1
- package/lib/components/AppShell/AppShellList.styles.d.ts +1 -1
- package/lib/components/AppShell/AppShellList.styles.d.ts.map +1 -1
- package/lib/components/AppShell/AppShellList.styles.js +63 -23
- package/lib/components/AppShell/AppShellList.styles.js.map +1 -1
- package/lib/components/AppShell/AppTopNav.styles.d.ts.map +1 -1
- package/lib/components/AppShell/AppTopNav.styles.js +6 -2
- package/lib/components/AppShell/AppTopNav.styles.js.map +1 -1
- package/lib/components/AppShell/DocumentTabs.d.ts +6 -0
- package/lib/components/AppShell/DocumentTabs.d.ts.map +1 -0
- package/lib/components/AppShell/DocumentTabs.js +409 -0
- package/lib/components/AppShell/DocumentTabs.js.map +1 -0
- package/lib/components/AppShell/DocumentTabs.styles.d.ts +231 -0
- package/lib/components/AppShell/DocumentTabs.styles.d.ts.map +1 -0
- package/lib/components/AppShell/DocumentTabs.styles.js +564 -0
- package/lib/components/AppShell/DocumentTabs.styles.js.map +1 -0
- package/lib/components/AppShell/Drawer.d.ts +1 -2
- package/lib/components/AppShell/Drawer.d.ts.map +1 -1
- package/lib/components/AppShell/Drawer.js +4 -4
- package/lib/components/AppShell/Drawer.js.map +1 -1
- package/lib/components/AppShell/Drawer.styles.d.ts +1 -13
- package/lib/components/AppShell/Drawer.styles.d.ts.map +1 -1
- package/lib/components/AppShell/Drawer.styles.js +15 -31
- package/lib/components/AppShell/Drawer.styles.js.map +1 -1
- package/lib/components/AppShell/HeaderActionButton.d.ts +20 -0
- package/lib/components/AppShell/HeaderActionButton.d.ts.map +1 -0
- package/lib/components/AppShell/HeaderActionButton.js +78 -0
- package/lib/components/AppShell/HeaderActionButton.js.map +1 -0
- package/lib/components/AppShell/NavigationList.d.ts.map +1 -1
- package/lib/components/AppShell/NavigationList.js +4 -5
- package/lib/components/AppShell/NavigationList.js.map +1 -1
- package/lib/components/AppShell/NavigationListItemWrapper.d.ts.map +1 -1
- package/lib/components/AppShell/NavigationListItemWrapper.js +101 -58
- package/lib/components/AppShell/NavigationListItemWrapper.js.map +1 -1
- package/lib/components/AppShell/Notifications.d.ts +28 -0
- package/lib/components/AppShell/Notifications.d.ts.map +1 -0
- package/lib/components/AppShell/Notifications.js +145 -0
- package/lib/components/AppShell/Notifications.js.map +1 -0
- package/lib/components/AppShell/Operator.d.ts.map +1 -1
- package/lib/components/AppShell/Operator.js +8 -5
- package/lib/components/AppShell/Operator.js.map +1 -1
- package/lib/components/AppShell/Panel/Panel.d.ts +15 -0
- package/lib/components/AppShell/Panel/Panel.d.ts.map +1 -0
- package/lib/components/AppShell/Panel/Panel.js +80 -0
- package/lib/components/AppShell/Panel/Panel.js.map +1 -0
- package/lib/components/AppShell/Panel/Panel.styles.d.ts +188 -0
- package/lib/components/AppShell/Panel/Panel.styles.d.ts.map +1 -0
- package/lib/components/AppShell/Panel/Panel.styles.js +85 -0
- package/lib/components/AppShell/Panel/Panel.styles.js.map +1 -0
- package/lib/components/AppShell/Panel/Panel.test-ids.d.ts +2 -0
- package/lib/components/AppShell/Panel/Panel.test-ids.d.ts.map +1 -0
- package/lib/components/AppShell/Panel/Panel.test-ids.js +3 -0
- package/lib/components/AppShell/Panel/Panel.test-ids.js.map +1 -0
- package/lib/components/AppShell/Panel/Panel.types.d.ts +33 -0
- package/lib/components/AppShell/Panel/Panel.types.d.ts.map +1 -0
- package/lib/components/AppShell/Panel/Panel.types.js +2 -0
- package/lib/components/AppShell/Panel/Panel.types.js.map +1 -0
- package/lib/components/AppShell/Panel/PanelHeaderActions.d.ts +8 -0
- package/lib/components/AppShell/Panel/PanelHeaderActions.d.ts.map +1 -0
- package/lib/components/AppShell/Panel/PanelHeaderActions.js +17 -0
- package/lib/components/AppShell/Panel/PanelHeaderActions.js.map +1 -0
- package/lib/components/AppShell/Panel/index.d.ts +4 -0
- package/lib/components/AppShell/Panel/index.d.ts.map +1 -0
- package/lib/components/AppShell/Panel/index.js +4 -0
- package/lib/components/AppShell/Panel/index.js.map +1 -0
- package/lib/components/AppShell/Panel/usePanel.d.ts +12 -0
- package/lib/components/AppShell/Panel/usePanel.d.ts.map +1 -0
- package/lib/components/AppShell/Panel/usePanel.js +30 -0
- package/lib/components/AppShell/Panel/usePanel.js.map +1 -0
- package/lib/components/AppShell/ThemeSwitcher.d.ts +1 -1
- package/lib/components/AppShell/ThemeSwitcher.d.ts.map +1 -1
- package/lib/components/AppShell/ThemeSwitcher.js +1 -0
- package/lib/components/AppShell/ThemeSwitcher.js.map +1 -1
- package/lib/components/AppShell/TopNavDrawerProvider.d.ts +11 -0
- package/lib/components/AppShell/TopNavDrawerProvider.d.ts.map +1 -0
- package/lib/components/AppShell/TopNavDrawerProvider.js +43 -0
- package/lib/components/AppShell/TopNavDrawerProvider.js.map +1 -0
- package/lib/components/AppShell/TouchAppShell.d.ts +16 -0
- package/lib/components/AppShell/TouchAppShell.d.ts.map +1 -0
- package/lib/components/AppShell/TouchAppShell.js +161 -0
- package/lib/components/AppShell/TouchAppShell.js.map +1 -0
- package/lib/components/AppShell/TouchAppShell.styles.d.ts +209 -0
- package/lib/components/AppShell/TouchAppShell.styles.d.ts.map +1 -0
- package/lib/components/AppShell/TouchAppShell.styles.js +188 -0
- package/lib/components/AppShell/TouchAppShell.styles.js.map +1 -0
- package/lib/components/AppShell/headerActionUtils.d.ts +12 -0
- package/lib/components/AppShell/headerActionUtils.d.ts.map +1 -0
- package/lib/components/AppShell/headerActionUtils.js +69 -0
- package/lib/components/AppShell/headerActionUtils.js.map +1 -0
- package/lib/components/AppShell/index.d.ts +2 -1
- package/lib/components/AppShell/index.d.ts.map +1 -1
- package/lib/components/AppShell/index.js.map +1 -1
- package/lib/components/AppShell/style-utils.d.ts.map +1 -1
- package/lib/components/AppShell/style-utils.js +22 -9
- package/lib/components/AppShell/style-utils.js.map +1 -1
- package/lib/components/Avatar/Avatar.d.ts +4 -4
- package/lib/components/Avatar/Avatar.d.ts.map +1 -1
- package/lib/components/Avatar/Avatar.js +45 -41
- package/lib/components/Avatar/Avatar.js.map +1 -1
- package/lib/components/Backdrop/Backdrop.d.ts +30 -30
- package/lib/components/Backdrop/Backdrop.d.ts.map +1 -1
- package/lib/components/Backdrop/Backdrop.js +3 -2
- package/lib/components/Backdrop/Backdrop.js.map +1 -1
- package/lib/components/Badges/Alert.d.ts +1 -1
- package/lib/components/Badges/Count.d.ts +1 -1
- package/lib/components/Badges/Keyboard.d.ts +1 -1
- package/lib/components/Badges/Selection.d.ts +1 -1
- package/lib/components/Badges/Selection.js +1 -1
- package/lib/components/Badges/Selection.js.map +1 -1
- package/lib/components/Badges/Status.d.ts +1 -1
- package/lib/components/Badges/Tag.d.ts +1 -1
- package/lib/components/Banner/Banner.d.ts +1 -1
- package/lib/components/Banner/Banner.js +1 -5
- package/lib/components/Banner/Banner.js.map +1 -1
- package/lib/components/Banner/Banner.styles.d.ts +2 -2
- package/lib/components/Banner/Banner.styles.d.ts.map +1 -1
- package/lib/components/Button/BareRoleButton.d.ts.map +1 -1
- package/lib/components/Button/BareRoleButton.js +4 -1
- package/lib/components/Button/BareRoleButton.js.map +1 -1
- package/lib/components/Button/Button.d.ts.map +1 -1
- package/lib/components/Button/Button.js +67 -25
- package/lib/components/Button/Button.js.map +1 -1
- package/lib/components/Checkbox/Checkbox.d.ts +1 -1
- package/lib/components/Checkbox/CheckboxCard.d.ts +1 -1
- package/lib/components/CheckboxGroup/CheckboxGroup.d.ts +1 -1
- package/lib/components/ClassificationMarking/ClassificationMarking.styles.d.ts.map +1 -1
- package/lib/components/ClassificationMarking/ClassificationMarking.styles.js +5 -32
- package/lib/components/ClassificationMarking/ClassificationMarking.styles.js.map +1 -1
- package/lib/components/ColorPicker/ColorPicker.d.ts +1 -1
- package/lib/components/ComboBox/ComboBox.d.ts +1 -1
- package/lib/components/ComboBox/ComboBox.d.ts.map +1 -1
- package/lib/components/ComboBox/ComboBox.js +5 -8
- package/lib/components/ComboBox/ComboBox.js.map +1 -1
- package/lib/components/ComboBox/ComboBox.styles.d.ts.map +1 -1
- package/lib/components/ComboBox/ComboBox.styles.js +11 -6
- package/lib/components/ComboBox/ComboBox.styles.js.map +1 -1
- package/lib/components/ComboBox/ComboBox.types.d.ts +3 -3
- package/lib/components/ComboBox/ComboBox.types.d.ts.map +1 -1
- package/lib/components/ComboBox/ComboBox.types.js.map +1 -1
- package/lib/components/ComboBox/ComboBoxInput.d.ts +1 -2
- package/lib/components/ComboBox/ComboBoxInput.d.ts.map +1 -1
- package/lib/components/ComboBox/ComboBoxInput.js +2 -2
- package/lib/components/ComboBox/ComboBoxInput.js.map +1 -1
- package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.d.ts +4 -6
- package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.d.ts.map +1 -1
- package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js +99 -188
- package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.js.map +1 -1
- package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.styles.d.ts +190 -0
- package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.styles.d.ts.map +1 -0
- package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.styles.js +72 -0
- package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.styles.js.map +1 -0
- package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts +5 -7
- package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.d.ts.map +1 -1
- package/lib/components/ComboBox/MultiSelectInput/MultiSelectInput.types.js.map +1 -1
- package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.d.ts.map +1 -1
- package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js +29 -10
- package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.js.map +1 -1
- package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts +5 -5
- package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.d.ts.map +1 -1
- package/lib/components/ComboBox/SingleSelectInput/SingleSelectInput.types.js.map +1 -1
- package/lib/components/CompositeInput/CompositeInput.d.ts +1 -1
- package/lib/components/CompositeInput/CompositeInput.d.ts.map +1 -1
- package/lib/components/CompositeInput/CompositeInput.js +18 -3
- package/lib/components/CompositeInput/CompositeInput.js.map +1 -1
- package/lib/components/Configuration/Configuration.d.ts.map +1 -1
- package/lib/components/Configuration/Configuration.js +3 -1
- package/lib/components/Configuration/Configuration.js.map +1 -1
- package/lib/components/CreditCard/CreditCardInput.d.ts +1 -1
- package/lib/components/Currency/CurrencyDisplay.d.ts.map +1 -1
- package/lib/components/Currency/CurrencyDisplay.js +13 -5
- package/lib/components/Currency/CurrencyDisplay.js.map +1 -1
- package/lib/components/Currency/CurrencyInput.d.ts +1 -1
- package/lib/components/Currency/CurrencyInput.d.ts.map +1 -1
- package/lib/components/Currency/CurrencyInput.js +21 -14
- package/lib/components/Currency/CurrencyInput.js.map +1 -1
- package/lib/components/Currency/utils.d.ts +8 -0
- package/lib/components/Currency/utils.d.ts.map +1 -1
- package/lib/components/Currency/utils.js +34 -4
- package/lib/components/Currency/utils.js.map +1 -1
- package/lib/components/DangerButton/DangerButton.d.ts +2 -2
- package/lib/components/DangerButton/DangerButton.d.ts.map +1 -1
- package/lib/components/DangerButton/DangerButton.js +8 -1
- package/lib/components/DangerButton/DangerButton.js.map +1 -1
- package/lib/components/DateTime/DateTime.types.d.ts +2 -4
- package/lib/components/DateTime/DateTime.types.d.ts.map +1 -1
- package/lib/components/DateTime/DateTime.types.js.map +1 -1
- package/lib/components/DateTime/DateTimeDisplay.d.ts +9 -2
- package/lib/components/DateTime/DateTimeDisplay.d.ts.map +1 -1
- package/lib/components/DateTime/DateTimeDisplay.js +34 -8
- package/lib/components/DateTime/DateTimeDisplay.js.map +1 -1
- package/lib/components/DateTime/Input/DateInput.d.ts +3 -1
- package/lib/components/DateTime/Input/DateInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/DateInput.js +36 -21
- package/lib/components/DateTime/Input/DateInput.js.map +1 -1
- package/lib/components/DateTime/Input/DateRangeInput.d.ts +12 -4
- package/lib/components/DateTime/Input/DateRangeInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/DateRangeInput.js +28 -7
- package/lib/components/DateTime/Input/DateRangeInput.js.map +1 -1
- package/lib/components/DateTime/Input/DateTime.styles.d.ts +3 -0
- package/lib/components/DateTime/Input/DateTime.styles.d.ts.map +1 -1
- package/lib/components/DateTime/Input/DateTime.styles.js +26 -2
- package/lib/components/DateTime/Input/DateTime.styles.js.map +1 -1
- package/lib/components/DateTime/Input/DateTimeInput.d.ts +15 -3
- package/lib/components/DateTime/Input/DateTimeInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/DateTimeInput.js +164 -53
- package/lib/components/DateTime/Input/DateTimeInput.js.map +1 -1
- package/lib/components/DateTime/Input/DayOfWeekInput.d.ts +1 -1
- package/lib/components/DateTime/Input/Duration/DurationInput.d.ts +1 -1
- package/lib/components/DateTime/Input/MonthInput.d.ts +1 -1
- package/lib/components/DateTime/Input/MonthInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/MonthInput.js +4 -3
- package/lib/components/DateTime/Input/MonthInput.js.map +1 -1
- package/lib/components/DateTime/Input/PartInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/PartInput.js +3 -2
- package/lib/components/DateTime/Input/PartInput.js.map +1 -1
- package/lib/components/DateTime/Input/QuarterInput.d.ts +1 -1
- package/lib/components/DateTime/Input/QuarterInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/QuarterInput.js +4 -4
- package/lib/components/DateTime/Input/QuarterInput.js.map +1 -1
- package/lib/components/DateTime/Input/TimeInput.d.ts +13 -4
- package/lib/components/DateTime/Input/TimeInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/TimeInput.js +67 -33
- package/lib/components/DateTime/Input/TimeInput.js.map +1 -1
- package/lib/components/DateTime/Input/TimeRangeInput.d.ts +12 -4
- package/lib/components/DateTime/Input/TimeRangeInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/TimeRangeInput.js +28 -10
- package/lib/components/DateTime/Input/TimeRangeInput.js.map +1 -1
- package/lib/components/DateTime/Input/WeekInput.d.ts +7 -4
- package/lib/components/DateTime/Input/WeekInput.d.ts.map +1 -1
- package/lib/components/DateTime/Input/WeekInput.js +31 -18
- package/lib/components/DateTime/Input/WeekInput.js.map +1 -1
- package/lib/components/DateTime/Input/utils.d.ts +10 -1
- package/lib/components/DateTime/Input/utils.d.ts.map +1 -1
- package/lib/components/DateTime/Input/utils.js +115 -5
- package/lib/components/DateTime/Input/utils.js.map +1 -1
- package/lib/components/DateTime/Picker/Calendar.js +2 -6
- package/lib/components/DateTime/Picker/Calendar.js.map +1 -1
- package/lib/components/DateTime/Picker/Calendar.styles.d.ts.map +1 -1
- package/lib/components/DateTime/Picker/Calendar.styles.js +5 -0
- package/lib/components/DateTime/Picker/Calendar.styles.js.map +1 -1
- package/lib/components/DateTime/Picker/DatePicker.styles.d.ts.map +1 -1
- package/lib/components/DateTime/Picker/DatePicker.styles.js +37 -7
- package/lib/components/DateTime/Picker/DatePicker.styles.js.map +1 -1
- package/lib/components/DateTime/Picker/TimePicker.d.ts.map +1 -1
- package/lib/components/DateTime/Picker/TimePicker.js +25 -47
- package/lib/components/DateTime/Picker/TimePicker.js.map +1 -1
- package/lib/components/DateTime/utils.d.ts +15 -4
- package/lib/components/DateTime/utils.d.ts.map +1 -1
- package/lib/components/DateTime/utils.js +24 -3
- package/lib/components/DateTime/utils.js.map +1 -1
- package/lib/components/Dialog/Dialog.types.d.ts +60 -20
- package/lib/components/Dialog/Dialog.types.d.ts.map +1 -1
- package/lib/components/Dialog/Dialog.types.js.map +1 -1
- package/lib/components/Dialog/FormDialog.d.ts.map +1 -1
- package/lib/components/Dialog/FormDialog.js +76 -42
- package/lib/components/Dialog/FormDialog.js.map +1 -1
- package/lib/components/Dialog/FormDialogWrapper.d.ts +5 -0
- package/lib/components/Dialog/FormDialogWrapper.d.ts.map +1 -0
- package/lib/components/Dialog/FormDialogWrapper.js +13 -0
- package/lib/components/Dialog/FormDialogWrapper.js.map +1 -0
- package/lib/components/Dialog/InfoDialog.d.ts.map +1 -1
- package/lib/components/Dialog/InfoDialog.js +6 -4
- package/lib/components/Dialog/InfoDialog.js.map +1 -1
- package/lib/components/Dialog/InfoDialogWrapper.d.ts +4 -0
- package/lib/components/Dialog/InfoDialogWrapper.d.ts.map +1 -0
- package/lib/components/Dialog/InfoDialogWrapper.js +13 -0
- package/lib/components/Dialog/InfoDialogWrapper.js.map +1 -0
- package/lib/components/Dialog/TouchDialog.d.ts +5 -0
- package/lib/components/Dialog/TouchDialog.d.ts.map +1 -0
- package/lib/components/Dialog/TouchDialog.js +120 -0
- package/lib/components/Dialog/TouchDialog.js.map +1 -0
- package/lib/components/Dialog/TouchDialog.styles.d.ts +14 -0
- package/lib/components/Dialog/TouchDialog.styles.d.ts.map +1 -0
- package/lib/components/Dialog/TouchDialog.styles.js +79 -0
- package/lib/components/Dialog/TouchDialog.styles.js.map +1 -0
- package/lib/components/Dialog/TouchDialog.test-ids.d.ts +2 -0
- package/lib/components/Dialog/TouchDialog.test-ids.d.ts.map +1 -0
- package/lib/components/Dialog/TouchDialog.test-ids.js +3 -0
- package/lib/components/Dialog/TouchDialog.test-ids.js.map +1 -0
- package/lib/components/Dialog/TouchDialog.types.d.ts +57 -0
- package/lib/components/Dialog/TouchDialog.types.d.ts.map +1 -0
- package/lib/components/Dialog/TouchDialog.types.js +2 -0
- package/lib/components/Dialog/TouchDialog.types.js.map +1 -0
- package/lib/components/Dialog/TouchFormDialog.d.ts +5 -0
- package/lib/components/Dialog/TouchFormDialog.d.ts.map +1 -0
- package/lib/components/Dialog/TouchFormDialog.js +53 -0
- package/lib/components/Dialog/TouchFormDialog.js.map +1 -0
- package/lib/components/Dialog/TouchFormDialog.styles.d.ts +7 -0
- package/lib/components/Dialog/TouchFormDialog.styles.d.ts.map +1 -0
- package/lib/components/Dialog/TouchFormDialog.styles.js +39 -0
- package/lib/components/Dialog/TouchFormDialog.styles.js.map +1 -0
- package/lib/components/Dialog/TouchInfoDialog.d.ts +4 -0
- package/lib/components/Dialog/TouchInfoDialog.d.ts.map +1 -0
- package/lib/components/Dialog/TouchInfoDialog.js +21 -0
- package/lib/components/Dialog/TouchInfoDialog.js.map +1 -0
- package/lib/components/Dialog/index.d.ts +6 -2
- package/lib/components/Dialog/index.d.ts.map +1 -1
- package/lib/components/Dialog/index.js +5 -2
- package/lib/components/Dialog/index.js.map +1 -1
- package/lib/components/Drawer/Drawer.d.ts +12 -1
- package/lib/components/Drawer/Drawer.d.ts.map +1 -1
- package/lib/components/Drawer/Drawer.js +22 -23
- package/lib/components/Drawer/Drawer.js.map +1 -1
- package/lib/components/Drawer/ResizeHandle.d.ts +9 -2
- package/lib/components/Drawer/ResizeHandle.d.ts.map +1 -1
- package/lib/components/Drawer/ResizeHandle.js +44 -20
- package/lib/components/Drawer/ResizeHandle.js.map +1 -1
- package/lib/components/EmojiPicker/EmojiPicker.styles.d.ts.map +1 -1
- package/lib/components/EmojiPicker/EmojiPicker.styles.js +2 -2
- package/lib/components/EmojiPicker/EmojiPicker.styles.js.map +1 -1
- package/lib/components/EmptyState/EmptyState.d.ts +7 -2
- package/lib/components/EmptyState/EmptyState.d.ts.map +1 -1
- package/lib/components/EmptyState/EmptyState.js +18 -11
- package/lib/components/EmptyState/EmptyState.js.map +1 -1
- package/lib/components/ExpandCollapse/ExpandCollapseButton.d.ts +2 -2
- package/lib/components/ExpandCollapse/ExpandCollapseButton.d.ts.map +1 -1
- package/lib/components/FieldGroup/FieldGroup.d.ts +69 -64
- package/lib/components/FieldGroup/FieldGroup.d.ts.map +1 -1
- package/lib/components/FieldGroup/FieldGroup.js +41 -41
- package/lib/components/FieldGroup/FieldGroup.js.map +1 -1
- package/lib/components/FieldGroup/FieldGroupList.js +2 -2
- package/lib/components/FieldGroup/FieldGroupList.js.map +1 -1
- package/lib/components/FieldValueList/FieldValueList.d.ts +5 -3
- package/lib/components/FieldValueList/FieldValueList.d.ts.map +1 -1
- package/lib/components/FieldValueList/FieldValueList.js +17 -8
- package/lib/components/FieldValueList/FieldValueList.js.map +1 -1
- package/lib/components/File/CompactList.js +1 -1
- package/lib/components/File/CompactList.js.map +1 -1
- package/lib/components/File/FileInput.d.ts +1 -1
- package/lib/components/File/FileInput.styles.js +1 -1
- package/lib/components/File/FileInput.styles.js.map +1 -1
- package/lib/components/File/FileItem.d.ts +40 -2
- package/lib/components/File/FileItem.d.ts.map +1 -1
- package/lib/components/File/FileItem.js +167 -23
- package/lib/components/File/FileItem.js.map +1 -1
- package/lib/components/File/FileList.d.ts +29 -29
- package/lib/components/File/FileList.d.ts.map +1 -1
- package/lib/components/File/FileList.js +6 -2
- package/lib/components/File/FileList.js.map +1 -1
- package/lib/components/File/FileUploadItem.js +1 -3
- package/lib/components/File/FileUploadItem.js.map +1 -1
- package/lib/components/File/FileVisual.js +1 -1
- package/lib/components/File/FileVisual.js.map +1 -1
- package/lib/components/File/index.d.ts +1 -1
- package/lib/components/File/index.d.ts.map +1 -1
- package/lib/components/File/index.js.map +1 -1
- package/lib/components/File/mimeTypes.json +1 -0
- package/lib/components/Form/Form.d.ts +1 -1
- package/lib/components/FormControl/FormControl.d.ts +10 -3
- package/lib/components/FormControl/FormControl.d.ts.map +1 -1
- package/lib/components/FormControl/FormControl.js +2 -11
- package/lib/components/FormControl/FormControl.js.map +1 -1
- package/lib/components/FormField/FormField.d.ts +10 -2
- package/lib/components/FormField/FormField.d.ts.map +1 -1
- package/lib/components/FormField/FormField.js +57 -58
- package/lib/components/FormField/FormField.js.map +1 -1
- package/lib/components/Fullscreen/Fullscreen.d.ts +1 -1
- package/lib/components/Fullscreen/Fullscreen.js +2 -2
- package/lib/components/Fullscreen/Fullscreen.js.map +1 -1
- package/lib/components/Fullscreen/FullscreenButton.d.ts +2 -2
- package/lib/components/Fullscreen/FullscreenButton.d.ts.map +1 -1
- package/lib/components/HTML/HTML.d.ts +1 -1
- package/lib/components/Icon/Icon.d.ts +5 -0
- package/lib/components/Icon/Icon.d.ts.map +1 -1
- package/lib/components/Icon/Icon.js +46 -4
- package/lib/components/Icon/Icon.js.map +1 -1
- package/lib/components/Icon/iconNames.d.ts +2 -1
- package/lib/components/Icon/iconNames.d.ts.map +1 -1
- package/lib/components/Icon/iconNames.js +3 -0
- package/lib/components/Icon/iconNames.js.map +1 -1
- package/lib/components/Icon/icons/search-solid.icon.d.ts +1 -1
- package/lib/components/Icon/icons/search-solid.icon.js +3 -3
- package/lib/components/Icon/icons/search-solid.icon.js.map +1 -1
- package/lib/components/Icon/icons/share-external-solid.icon.d.ts +5 -0
- package/lib/components/Icon/icons/share-external-solid.icon.d.ts.map +1 -0
- package/lib/components/Icon/icons/share-external-solid.icon.js +7 -0
- package/lib/components/Icon/icons/share-external-solid.icon.js.map +1 -0
- package/lib/components/Icon/icons/share-external.icon.d.ts +5 -0
- package/lib/components/Icon/icons/share-external.icon.d.ts.map +1 -0
- package/lib/components/Icon/icons/share-external.icon.js +7 -0
- package/lib/components/Icon/icons/share-external.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/share-external-solid.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/share-external-solid.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/share-external-solid.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/share-external-solid.icon.js.map +1 -0
- package/lib/components/Icon/streamline-icons/share-external.icon.d.ts +5 -0
- package/lib/components/Icon/streamline-icons/share-external.icon.d.ts.map +1 -0
- package/lib/components/Icon/streamline-icons/share-external.icon.js +7 -0
- package/lib/components/Icon/streamline-icons/share-external.icon.js.map +1 -0
- package/lib/components/Icon/streamlineIconNames.d.ts +2 -1
- package/lib/components/Icon/streamlineIconNames.d.ts.map +1 -1
- package/lib/components/Icon/streamlineIconNames.js +3 -0
- package/lib/components/Icon/streamlineIconNames.js.map +1 -1
- package/lib/components/InlineEdit/InlineEdit.d.ts +19 -4
- package/lib/components/InlineEdit/InlineEdit.d.ts.map +1 -1
- package/lib/components/InlineEdit/InlineEdit.js +45 -4
- package/lib/components/InlineEdit/InlineEdit.js.map +1 -1
- package/lib/components/InlineEdit/InlineEdit.styles.d.ts +43 -7
- package/lib/components/InlineEdit/InlineEdit.styles.d.ts.map +1 -1
- package/lib/components/InlineEdit/InlineEdit.styles.js +38 -20
- package/lib/components/InlineEdit/InlineEdit.styles.js.map +1 -1
- package/lib/components/Input/Input.d.ts +1 -1
- package/lib/components/Input/Input.js +3 -3
- package/lib/components/Input/Input.js.map +1 -1
- package/lib/components/Lightbox/Lightbox.d.ts +1 -1
- package/lib/components/Lightbox/Lightbox.js +2 -6
- package/lib/components/Lightbox/Lightbox.js.map +1 -1
- package/lib/components/Lightbox/Lightbox.styles.d.ts.map +1 -1
- package/lib/components/Lightbox/Lightbox.styles.js +1 -0
- package/lib/components/Lightbox/Lightbox.styles.js.map +1 -1
- package/lib/components/Link/Link.d.ts +20 -17
- package/lib/components/Link/Link.d.ts.map +1 -1
- package/lib/components/Link/Link.js +89 -9
- package/lib/components/Link/Link.js.map +1 -1
- package/lib/components/Link/Link.test-ids.d.ts +1 -1
- package/lib/components/Link/Link.test-ids.d.ts.map +1 -1
- package/lib/components/Link/Link.test-ids.js +2 -1
- package/lib/components/Link/Link.test-ids.js.map +1 -1
- package/lib/components/List/CommaSeparatedList.js +1 -3
- package/lib/components/List/CommaSeparatedList.js.map +1 -1
- package/lib/components/List/List.js +1 -5
- package/lib/components/List/List.js.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.d.ts +1 -1
- package/lib/components/ListToolbar/ListToolbar.d.ts.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.js +93 -81
- package/lib/components/ListToolbar/ListToolbar.js.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.styles.d.ts +821 -40
- package/lib/components/ListToolbar/ListToolbar.styles.d.ts.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.styles.js +341 -83
- package/lib/components/ListToolbar/ListToolbar.styles.js.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.types.d.ts +2 -1
- package/lib/components/ListToolbar/ListToolbar.types.d.ts.map +1 -1
- package/lib/components/ListToolbar/ListToolbar.types.js.map +1 -1
- package/lib/components/ListToolbar/PresetMenuPopover.d.ts.map +1 -1
- package/lib/components/ListToolbar/PresetMenuPopover.js +16 -5
- package/lib/components/ListToolbar/PresetMenuPopover.js.map +1 -1
- package/lib/components/Location/LocationInput.d.ts +2 -2
- package/lib/components/Location/LocationInput.d.ts.map +1 -1
- package/lib/components/Location/LocationInput.js.map +1 -1
- package/lib/components/Menu/FlyoutMenuList.d.ts.map +1 -1
- package/lib/components/Menu/FlyoutMenuList.js +1 -1
- package/lib/components/Menu/FlyoutMenuList.js.map +1 -1
- package/lib/components/Menu/Menu.d.ts +1 -1
- package/lib/components/Menu/Menu.d.ts.map +1 -1
- package/lib/components/Menu/Menu.js +12 -4
- package/lib/components/Menu/Menu.js.map +1 -1
- package/lib/components/Menu/Menu.styles.d.ts.map +1 -1
- package/lib/components/Menu/Menu.styles.js +6 -0
- package/lib/components/Menu/Menu.styles.js.map +1 -1
- package/lib/components/Menu/Menu.test-ids.d.ts +1 -1
- package/lib/components/Menu/Menu.test-ids.d.ts.map +1 -1
- package/lib/components/Menu/Menu.test-ids.js +1 -1
- package/lib/components/Menu/Menu.test-ids.js.map +1 -1
- package/lib/components/Menu/Menu.types.d.ts +9 -0
- package/lib/components/Menu/Menu.types.d.ts.map +1 -1
- package/lib/components/Menu/Menu.types.js.map +1 -1
- package/lib/components/Menu/MenuItem.d.ts +1 -1
- package/lib/components/Menu/helpers.d.ts +14 -0
- package/lib/components/Menu/helpers.d.ts.map +1 -1
- package/lib/components/Menu/helpers.js +26 -0
- package/lib/components/Menu/helpers.js.map +1 -1
- package/lib/components/MenuButton/MenuButton.d.ts +1 -1
- package/lib/components/MenuButton/MenuButton.d.ts.map +1 -1
- package/lib/components/MenuButton/MenuButton.js +47 -7
- package/lib/components/MenuButton/MenuButton.js.map +1 -1
- package/lib/components/MetaList/MetaList.d.ts +1 -1
- package/lib/components/Modal/DockedModals.d.ts.map +1 -1
- package/lib/components/Modal/DockedModals.js +4 -3
- package/lib/components/Modal/DockedModals.js.map +1 -1
- package/lib/components/Modal/MinimizedModal.d.ts.map +1 -1
- package/lib/components/Modal/MinimizedModal.js +4 -0
- package/lib/components/Modal/MinimizedModal.js.map +1 -1
- package/lib/components/Modal/Modal.styles.d.ts.map +1 -1
- package/lib/components/Modal/Modal.styles.js +7 -3
- package/lib/components/Modal/Modal.styles.js.map +1 -1
- package/lib/components/MultiStepForm/FormProgress.styles.d.ts +25 -1
- package/lib/components/MultiStepForm/FormProgress.styles.d.ts.map +1 -1
- package/lib/components/MultiStepForm/FormProgress.styles.js +168 -5
- package/lib/components/MultiStepForm/FormProgress.styles.js.map +1 -1
- package/lib/components/MultiStepForm/HorizontalFormProgress.d.ts +2 -2
- package/lib/components/MultiStepForm/HorizontalFormProgress.d.ts.map +1 -1
- package/lib/components/MultiStepForm/HorizontalFormProgress.js +48 -22
- package/lib/components/MultiStepForm/HorizontalFormProgress.js.map +1 -1
- package/lib/components/MultiStepForm/MultiStepForm.d.ts +29 -29
- package/lib/components/MultiStepForm/MultiStepForm.d.ts.map +1 -1
- package/lib/components/MultiStepForm/MultiStepForm.js +2 -2
- package/lib/components/MultiStepForm/MultiStepForm.js.map +1 -1
- package/lib/components/MultiStepForm/MultiStepForm.types.d.ts +5 -0
- package/lib/components/MultiStepForm/MultiStepForm.types.d.ts.map +1 -1
- package/lib/components/MultiStepForm/MultiStepForm.types.js.map +1 -1
- package/lib/components/MultiStepForm/VerticalFormProgress.d.ts +2 -2
- package/lib/components/MultiStepForm/VerticalFormProgress.d.ts.map +1 -1
- package/lib/components/MultiStepForm/VerticalFormProgress.js +45 -20
- package/lib/components/MultiStepForm/VerticalFormProgress.js.map +1 -1
- package/lib/components/MultiStepForm/useFormProgressOverflow.d.ts +1 -1
- package/lib/components/MultiStepForm/useFormProgressOverflow.d.ts.map +1 -1
- package/lib/components/MultiStepForm/useFormProgressOverflow.js +17 -9
- package/lib/components/MultiStepForm/useFormProgressOverflow.js.map +1 -1
- package/lib/components/Number/NumberDisplay.d.ts +5 -0
- package/lib/components/Number/NumberDisplay.d.ts.map +1 -1
- package/lib/components/Number/NumberDisplay.js +3 -2
- package/lib/components/Number/NumberDisplay.js.map +1 -1
- package/lib/components/Number/NumberInput.d.ts +1 -1
- package/lib/components/Number/NumberInput.d.ts.map +1 -1
- package/lib/components/Number/NumberInput.js +10 -5
- package/lib/components/Number/NumberInput.js.map +1 -1
- package/lib/components/Number/NumberInput.types.d.ts +11 -3
- package/lib/components/Number/NumberInput.types.d.ts.map +1 -1
- package/lib/components/Number/NumberInput.types.js.map +1 -1
- package/lib/components/Number/NumberRangeInput.d.ts +1 -1
- package/lib/components/Number/NumberRangeInput.d.ts.map +1 -1
- package/lib/components/Number/NumberRangeInput.js +2 -2
- package/lib/components/Number/NumberRangeInput.js.map +1 -1
- package/lib/components/Number/utils.d.ts +3 -1
- package/lib/components/Number/utils.d.ts.map +1 -1
- package/lib/components/Number/utils.js +11 -9
- package/lib/components/Number/utils.js.map +1 -1
- package/lib/components/PageTemplates/CategorySubPage.styles.js +2 -2
- package/lib/components/PageTemplates/CategorySubPage.styles.js.map +1 -1
- package/lib/components/PageTemplates/DashboardPage.js +1 -1
- package/lib/components/PageTemplates/DashboardPage.js.map +1 -1
- package/lib/components/PageTemplates/GridLayout/EditorBackground.js +1 -1
- package/lib/components/PageTemplates/GridLayout/EditorBackground.js.map +1 -1
- package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.d.ts.map +1 -1
- package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.js +44 -10
- package/lib/components/PageTemplates/GridLayout/GridLayoutEditor.js.map +1 -1
- package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.js +2 -9
- package/lib/components/PageTemplates/GridLayout/GridLayoutViewer.js.map +1 -1
- package/lib/components/PageTemplates/PageTemplates.d.ts +7 -7
- package/lib/components/PageTemplates/PageTemplates.js +1 -1
- package/lib/components/PageTemplates/PageTemplates.js.map +1 -1
- package/lib/components/Phone/PhoneDisplay.d.ts +10 -0
- package/lib/components/Phone/PhoneDisplay.d.ts.map +1 -1
- package/lib/components/Phone/PhoneDisplay.js +7 -2
- package/lib/components/Phone/PhoneDisplay.js.map +1 -1
- package/lib/components/Phone/PhoneInput.d.ts +11 -1
- package/lib/components/Phone/PhoneInput.d.ts.map +1 -1
- package/lib/components/Phone/PhoneInput.js +21 -8
- package/lib/components/Phone/PhoneInput.js.map +1 -1
- package/lib/components/Phone/utils.d.ts +4 -2
- package/lib/components/Phone/utils.d.ts.map +1 -1
- package/lib/components/Phone/utils.js +17 -6
- package/lib/components/Phone/utils.js.map +1 -1
- package/lib/components/Popover/getResolvedTarget.d.ts +11 -0
- package/lib/components/Popover/getResolvedTarget.d.ts.map +1 -0
- package/lib/components/Popover/getResolvedTarget.js +13 -0
- package/lib/components/Popover/getResolvedTarget.js.map +1 -0
- package/lib/components/Popover/index.d.ts +1 -0
- package/lib/components/Popover/index.d.ts.map +1 -1
- package/lib/components/Popover/index.js +1 -0
- package/lib/components/Popover/index.js.map +1 -1
- package/lib/components/Preview/Preview.types.d.ts +1 -0
- package/lib/components/Preview/Preview.types.d.ts.map +1 -1
- package/lib/components/Preview/Preview.types.js.map +1 -1
- package/lib/components/Preview/PreviewManager.d.ts.map +1 -1
- package/lib/components/Preview/PreviewManager.js +10 -1
- package/lib/components/Preview/PreviewManager.js.map +1 -1
- package/lib/components/Preview/PreviewPanel.d.ts.map +1 -1
- package/lib/components/Preview/PreviewPanel.js +8 -3
- package/lib/components/Preview/PreviewPanel.js.map +1 -1
- package/lib/components/Progress/Progress.d.ts.map +1 -1
- package/lib/components/Progress/Progress.js +39 -7
- package/lib/components/Progress/Progress.js.map +1 -1
- package/lib/components/Progress/Progress.types.d.ts +10 -4
- package/lib/components/Progress/Progress.types.d.ts.map +1 -1
- package/lib/components/Progress/Progress.types.js.map +1 -1
- package/lib/components/QRCode/QRCode.d.ts +6 -1
- package/lib/components/QRCode/QRCode.d.ts.map +1 -1
- package/lib/components/QRCode/QRCode.js +17 -9
- package/lib/components/QRCode/QRCode.js.map +1 -1
- package/lib/components/QRCode/index.d.ts +1 -1
- package/lib/components/QRCode/index.d.ts.map +1 -1
- package/lib/components/QRCode/index.js.map +1 -1
- package/lib/components/RadioButton/RadioButton.d.ts +1 -1
- package/lib/components/RadioButton/RadioButtonCard.d.ts +1 -1
- package/lib/components/RadioButtonGroup/RadioButtonGroup.d.ts +1 -1
- package/lib/components/RadioCheck/RadioCheck.d.ts +5 -3
- package/lib/components/RadioCheck/RadioCheck.d.ts.map +1 -1
- package/lib/components/RadioCheck/RadioCheck.js +63 -27
- package/lib/components/RadioCheck/RadioCheck.js.map +1 -1
- package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts +3 -3
- package/lib/components/RadioCheckGroup/RadioCheckGroup.d.ts.map +1 -1
- package/lib/components/RadioCheckGroup/RadioCheckGroup.js +46 -25
- package/lib/components/RadioCheckGroup/RadioCheckGroup.js.map +1 -1
- package/lib/components/ResponsiveActions/ResponsiveActions.d.ts.map +1 -1
- package/lib/components/ResponsiveActions/ResponsiveActions.js +1 -0
- package/lib/components/ResponsiveActions/ResponsiveActions.js.map +1 -1
- package/lib/components/Scanner/Scanner.d.ts +21 -0
- package/lib/components/Scanner/Scanner.d.ts.map +1 -0
- package/lib/components/Scanner/Scanner.js +177 -0
- package/lib/components/Scanner/Scanner.js.map +1 -0
- package/lib/components/Scanner/Scanner.styles.d.ts +4 -0
- package/lib/components/Scanner/Scanner.styles.d.ts.map +1 -0
- package/lib/components/Scanner/Scanner.styles.js +17 -0
- package/lib/components/Scanner/Scanner.styles.js.map +1 -0
- package/lib/components/Scanner/Scanner.test-ids.d.ts +2 -0
- package/lib/components/Scanner/Scanner.test-ids.d.ts.map +1 -0
- package/lib/components/Scanner/Scanner.test-ids.js +3 -0
- package/lib/components/Scanner/Scanner.test-ids.js.map +1 -0
- package/lib/components/Scanner/index.d.ts +3 -0
- package/lib/components/Scanner/index.d.ts.map +1 -0
- package/lib/components/Scanner/index.js +2 -0
- package/lib/components/Scanner/index.js.map +1 -0
- package/lib/components/Select/Select.d.ts +3 -4
- package/lib/components/Select/Select.d.ts.map +1 -1
- package/lib/components/Select/Select.js +11 -6
- package/lib/components/Select/Select.js.map +1 -1
- package/lib/components/SelectionCard/SelectionCard.d.ts +2 -2
- package/lib/components/SelectionCard/SelectionCard.d.ts.map +1 -1
- package/lib/components/SelectionCard/SelectionCard.js +3 -3
- package/lib/components/SelectionCard/SelectionCard.js.map +1 -1
- package/lib/components/SelectionCard/SelectionCard.styles.js +1 -1
- package/lib/components/SelectionCard/SelectionCard.styles.js.map +1 -1
- package/lib/components/SelectionCard/SelectionCardDisplay.d.ts +6 -1
- package/lib/components/SelectionCard/SelectionCardDisplay.d.ts.map +1 -1
- package/lib/components/SelectionCard/SelectionCardDisplay.js +4 -2
- package/lib/components/SelectionCard/SelectionCardDisplay.js.map +1 -1
- package/lib/components/ShortcutManager/Store.d.ts +1 -1
- package/lib/components/ShortcutManager/Store.d.ts.map +1 -1
- package/lib/components/Signature/Signature.d.ts +28 -0
- package/lib/components/Signature/Signature.d.ts.map +1 -0
- package/lib/components/Signature/Signature.js +397 -0
- package/lib/components/Signature/Signature.js.map +1 -0
- package/lib/components/Signature/Signature.styles.d.ts +197 -0
- package/lib/components/Signature/Signature.styles.d.ts.map +1 -0
- package/lib/components/Signature/Signature.styles.js +119 -0
- package/lib/components/Signature/Signature.styles.js.map +1 -0
- package/lib/components/Signature/Signature.test-ids.d.ts +2 -0
- package/lib/components/Signature/Signature.test-ids.d.ts.map +1 -0
- package/lib/components/Signature/Signature.test-ids.js +3 -0
- package/lib/components/Signature/Signature.test-ids.js.map +1 -0
- package/lib/components/Signature/index.d.ts +4 -0
- package/lib/components/Signature/index.d.ts.map +1 -0
- package/lib/components/Signature/index.js +3 -0
- package/lib/components/Signature/index.js.map +1 -0
- package/lib/components/SkipLinks/SkipLinks.d.ts +1 -1
- package/lib/components/SkipLinks/SkipLinks.d.ts.map +1 -1
- package/lib/components/Slider/Slider.d.ts +1 -1
- package/lib/components/SpeechToTextButton/SpeechToTextButton.d.ts +1 -1
- package/lib/components/SpeechToTextButton/SpeechToTextButton.js +1 -1
- package/lib/components/SpeechToTextButton/SpeechToTextButton.js.map +1 -1
- package/lib/components/SummaryItem/SummaryItem.d.ts +57 -57
- package/lib/components/SummaryList/SummaryList.d.ts +1 -1
- package/lib/components/SummaryList/SummaryList.d.ts.map +1 -1
- package/lib/components/SummaryList/SummaryList.js +8 -4
- package/lib/components/SummaryList/SummaryList.js.map +1 -1
- package/lib/components/Switch/Switch.js +2 -2
- package/lib/components/Switch/Switch.js.map +1 -1
- package/lib/components/Tabs/Tab.d.ts +1 -1
- package/lib/components/Tabs/Tab.d.ts.map +1 -1
- package/lib/components/Tabs/Tab.js +24 -8
- package/lib/components/Tabs/Tab.js.map +1 -1
- package/lib/components/Tabs/TabPanel.d.ts +28 -28
- package/lib/components/Text/Text.d.ts.map +1 -1
- package/lib/components/Text/Text.js +2 -0
- package/lib/components/Text/Text.js.map +1 -1
- package/lib/components/TextArea/TextArea.d.ts +1 -1
- package/lib/components/TextArea/TextArea.d.ts.map +1 -1
- package/lib/components/TextArea/TextArea.js +10 -24
- package/lib/components/TextArea/TextArea.js.map +1 -1
- package/lib/components/TextArea/TextArea.styles.d.ts +0 -1
- package/lib/components/TextArea/TextArea.styles.d.ts.map +1 -1
- package/lib/components/TextArea/TextArea.styles.js +1 -2
- package/lib/components/TextArea/TextArea.styles.js.map +1 -1
- package/lib/components/Toaster/Toaster.js +2 -6
- package/lib/components/Toaster/Toaster.js.map +1 -1
- package/lib/components/Tooltip/Tooltip.d.ts +1 -1
- package/lib/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/lib/components/Tooltip/Tooltip.js +8 -2
- package/lib/components/Tooltip/Tooltip.js.map +1 -1
- package/lib/components/Tree/StandardTree.js +1 -3
- package/lib/components/Tree/StandardTree.js.map +1 -1
- package/lib/components/Tree/StandardTree.styles.d.ts +2 -2
- package/lib/components/Tree/Tree.d.ts +1 -1
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.d.ts.map +1 -1
- package/lib/hooks/index.js +1 -0
- package/lib/hooks/index.js.map +1 -1
- package/lib/hooks/useAnimatedText.d.ts.map +1 -1
- package/lib/hooks/useAnimatedText.js +12 -1
- package/lib/hooks/useAnimatedText.js.map +1 -1
- package/lib/hooks/useBreakpoint.d.ts.map +1 -1
- package/lib/hooks/useBreakpoint.js +3 -1
- package/lib/hooks/useBreakpoint.js.map +1 -1
- package/lib/hooks/useComputedLengthPx.d.ts +10 -0
- package/lib/hooks/useComputedLengthPx.d.ts.map +1 -0
- package/lib/hooks/useComputedLengthPx.js +46 -0
- package/lib/hooks/useComputedLengthPx.js.map +1 -0
- package/lib/hooks/useI18n.d.ts +137 -14
- package/lib/hooks/useI18n.d.ts.map +1 -1
- package/lib/hooks/useScrollToggle.d.ts +2 -1
- package/lib/hooks/useScrollToggle.d.ts.map +1 -1
- package/lib/hooks/useScrollToggle.js +26 -8
- package/lib/hooks/useScrollToggle.js.map +1 -1
- package/lib/i18n/default.d.ts +136 -14
- package/lib/i18n/default.d.ts.map +1 -1
- package/lib/i18n/default.js +153 -22
- package/lib/i18n/default.js.map +1 -1
- package/lib/i18n/i18n.d.ts +136 -13
- package/lib/i18n/i18n.d.ts.map +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +4 -0
- package/lib/index.js.map +1 -1
- package/lib/styles/GlobalStyle.d.ts.map +1 -1
- package/lib/styles/GlobalStyle.js +3 -3
- package/lib/styles/GlobalStyle.js.map +1 -1
- package/lib/styles/utils.d.ts +24 -4
- package/lib/styles/utils.d.ts.map +1 -1
- package/lib/styles/utils.js +59 -13
- package/lib/styles/utils.js.map +1 -1
- package/lib/theme/index.d.ts +4 -0
- package/lib/theme/index.d.ts.map +1 -1
- package/lib/theme/index.js +4 -0
- package/lib/theme/index.js.map +1 -1
- package/lib/theme/theme.d.ts +321 -0
- package/lib/theme/theme.d.ts.map +1 -1
- package/lib/theme/themeDefinition.json +193 -5
- package/lib/theme/themeOverrides.schema.json +188 -1
- package/lib/theme/themes/aurigaDarkTheme.json +159 -0
- package/lib/theme/themes/aurigaTheme.json +150 -0
- package/lib/theme/themes/orionDarkTheme.json +3 -1
- package/lib/theme/themes/orionTheme.json +3 -3
- package/lib/theme/themes/velaDarkTheme.json +175 -0
- package/lib/theme/themes/velaTheme.json +169 -0
- package/lib/theme/themes/virgoDarkTheme.json +4 -4
- package/lib/theme/themes/virgoTheme.json +5 -5
- package/lib/utils/index.d.ts +1 -0
- package/lib/utils/index.d.ts.map +1 -1
- package/lib/utils/index.js +1 -0
- package/lib/utils/index.js.map +1 -1
- package/lib/utils/isTouchDevice.d.ts +3 -0
- package/lib/utils/isTouchDevice.d.ts.map +1 -0
- package/lib/utils/isTouchDevice.js +4 -0
- package/lib/utils/isTouchDevice.js.map +1 -0
- package/package.json +6 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListToolbar.styles.d.ts","sourceRoot":"","sources":["../../../src/components/ListToolbar/ListToolbar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,eAAO,MAAM,eAAe;;;;mBAM1B,CAAC;AAIH,eAAO,MAAM,UAAU,qQAuBtB,CAAC"}
|
|
@@ -9,19 +9,79 @@ import { StyledText } from '../Text';
|
|
|
9
9
|
import { defaultThemeProp } from '../../theme';
|
|
10
10
|
import { calculateFontSize } from '../../styles';
|
|
11
11
|
import Button, { StyledButton } from '../Button';
|
|
12
|
-
import FormDialog from '../Dialog
|
|
12
|
+
import { FormDialog } from '../Dialog';
|
|
13
13
|
import { ellipsisOverflow } from '../../styles/mixins';
|
|
14
|
+
import { StyledTouchDialog } from '../Dialog/TouchDialog.styles';
|
|
15
|
+
// Container queries resolve `em` against the toolbar font size; `rem` matches the root-based useBreakpoint switch point.
|
|
16
|
+
const toRemBreakpoint = (breakpoint) => breakpoint.replace(/(\d)em$/, '$1rem');
|
|
17
|
+
const getSmallBreakpoint = (theme) => toRemBreakpoint(theme.base.breakpoints.sm);
|
|
18
|
+
const getSearchWidth = (theme) => theme.base['content-width'].sm;
|
|
19
|
+
const getSearchMinWidth = (theme) => theme.base['content-width'].xs;
|
|
20
|
+
// Below this toolbar width the expanded search no longer fits next to the heading and controls, even shrunk.
|
|
21
|
+
const getSearchOwnRowBreakpoint = (theme) => `calc(${getSmallBreakpoint(theme)} + ${getSearchMinWidth(theme)})`;
|
|
14
22
|
export const StyledExpandSearchButton = styled(Button) ``;
|
|
15
23
|
StyledExpandSearchButton.defaultProps = defaultThemeProp;
|
|
16
|
-
export const
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
24
|
+
export const StyledPrimaryAction = styled(Button)(({ theme }) => css `
|
|
25
|
+
@container list-toolbar (width < ${getSmallBreakpoint(theme)}) {
|
|
26
|
+
display: none;
|
|
27
|
+
}
|
|
28
|
+
`);
|
|
29
|
+
StyledPrimaryAction.defaultProps = defaultThemeProp;
|
|
30
|
+
export const StyledToolbarMenu = styled.div(({ theme, $primaryOnly }) => css `
|
|
31
|
+
display: ${$primaryOnly ? 'none' : 'contents'};
|
|
32
|
+
|
|
33
|
+
@container list-toolbar (width < ${getSmallBreakpoint(theme)}) {
|
|
34
|
+
display: contents;
|
|
35
|
+
}
|
|
36
|
+
`);
|
|
37
|
+
StyledToolbarMenu.defaultProps = defaultThemeProp;
|
|
38
|
+
export const StyledSearchContent = styled.div `
|
|
39
|
+
flex-direction: column;
|
|
40
|
+
min-width: 0;
|
|
41
|
+
width: 100%;
|
|
42
|
+
max-width: 100%;
|
|
21
43
|
`;
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
44
|
+
StyledSearchContent.defaultProps = defaultThemeProp;
|
|
45
|
+
export const StyledSearchContainer = styled(Flex)(({ theme, $isSearchOpen }) => css `
|
|
46
|
+
min-width: ${$isSearchOpen ? getSearchMinWidth(theme) : 'max-content'};
|
|
47
|
+
|
|
48
|
+
${StyledExpandSearchButton} {
|
|
49
|
+
${$isSearchOpen && 'display: none;'}
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
${StyledSearchContent} {
|
|
53
|
+
display: ${$isSearchOpen ? 'flex' : 'none'};
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
${StyledSearchInput} {
|
|
57
|
+
width: ${getSearchWidth(theme)};
|
|
58
|
+
max-width: 100%;
|
|
59
|
+
|
|
60
|
+
input {
|
|
61
|
+
min-width: 0;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@container list-toolbar (width < ${getSearchOwnRowBreakpoint(theme)}) {
|
|
66
|
+
${StyledSearchInput} {
|
|
67
|
+
width: 100%;
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
@container list-toolbar (width < ${getSmallBreakpoint(theme)}) {
|
|
72
|
+
min-width: 0;
|
|
73
|
+
|
|
74
|
+
${StyledExpandSearchButton} {
|
|
75
|
+
display: none;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
${StyledSearchContent} {
|
|
79
|
+
display: flex;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
`);
|
|
83
|
+
StyledSearchContainer.defaultProps = defaultThemeProp;
|
|
84
|
+
export const StyledViewSelector = styled.button(({ theme }) => {
|
|
25
85
|
const hitAreaMouse = theme.base['hit-area']['mouse-min'];
|
|
26
86
|
const hitAreaFinger = theme.base['hit-area']['finger-min'];
|
|
27
87
|
return css `
|
|
@@ -31,59 +91,99 @@ export const StyledViewSelector = styled.button(({ theme, required }) => {
|
|
|
31
91
|
|
|
32
92
|
${StyledText} {
|
|
33
93
|
white-space: nowrap;
|
|
34
|
-
font-size: ${fontSizes[theme.components.text.h2['font-size']]};
|
|
35
94
|
line-height: ${hitAreaMouse};
|
|
36
95
|
word-break: break-word;
|
|
37
96
|
@media (pointer: coarse) {
|
|
38
97
|
line-height: ${hitAreaFinger};
|
|
39
98
|
}
|
|
40
99
|
}
|
|
41
|
-
|
|
42
|
-
${StyledText}::after {
|
|
43
|
-
display: ${required ? 'inline-block' : 'none'};
|
|
44
|
-
content: '\\00a0*';
|
|
45
|
-
vertical-align: top;
|
|
46
|
-
color: ${urgent};
|
|
47
|
-
}
|
|
48
100
|
`;
|
|
49
101
|
});
|
|
50
102
|
StyledViewSelector.defaultProps = defaultThemeProp;
|
|
51
|
-
export const
|
|
103
|
+
export const StyledViewSelectorGroup = styled.div(({ theme }) => {
|
|
52
104
|
return css `
|
|
53
|
-
|
|
54
|
-
|
|
105
|
+
display: flex;
|
|
106
|
+
align-items: center;
|
|
107
|
+
gap: calc(0.5 * ${theme.base.spacing});
|
|
108
|
+
min-width: 0;
|
|
55
109
|
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
110
|
+
> :not(${StyledViewSelector}) {
|
|
111
|
+
flex-shrink: 0;
|
|
112
|
+
}
|
|
113
|
+
`;
|
|
114
|
+
});
|
|
115
|
+
StyledViewSelectorGroup.defaultProps = defaultThemeProp;
|
|
116
|
+
export const StyledAdditionalActions = styled.div(({ theme }) => css `
|
|
117
|
+
min-width: 4rem;
|
|
118
|
+
max-width: 100%;
|
|
119
|
+
width: max-content;
|
|
61
120
|
|
|
62
|
-
|
|
63
|
-
|
|
121
|
+
> * {
|
|
122
|
+
max-width: 100%;
|
|
123
|
+
min-width: 0;
|
|
124
|
+
}
|
|
64
125
|
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
126
|
+
@container list-toolbar (width < ${getSmallBreakpoint(theme)}) {
|
|
127
|
+
min-width: 0;
|
|
128
|
+
max-width: 100%;
|
|
129
|
+
width: 100%;
|
|
130
|
+
|
|
131
|
+
> * {
|
|
132
|
+
width: 100%;
|
|
133
|
+
}
|
|
134
|
+
}
|
|
135
|
+
`);
|
|
136
|
+
StyledAdditionalActions.defaultProps = defaultThemeProp;
|
|
137
|
+
export const StyledToolbarHeading = styled(Flex) `
|
|
138
|
+
flex: 1 1 0;
|
|
139
|
+
min-width: 0;
|
|
140
|
+
width: max-content;
|
|
141
|
+
max-width: max-content;
|
|
142
|
+
`;
|
|
143
|
+
StyledToolbarHeading.defaultProps = defaultThemeProp;
|
|
144
|
+
export const StyledToolbarControls = styled(Flex) `
|
|
145
|
+
display: grid;
|
|
146
|
+
grid-auto-flow: column;
|
|
147
|
+
grid-auto-columns: auto;
|
|
148
|
+
flex: 1 1 0;
|
|
149
|
+
min-width: min-content;
|
|
150
|
+
max-width: max-content;
|
|
151
|
+
margin-inline-start: auto;
|
|
152
|
+
|
|
153
|
+
&:has(${StyledAdditionalActions}) {
|
|
154
|
+
grid-template-columns: minmax(4rem, max-content);
|
|
155
|
+
}
|
|
156
|
+
`;
|
|
157
|
+
StyledToolbarControls.defaultProps = defaultThemeProp;
|
|
158
|
+
export const StyledToolbarActions = styled(Flex) `
|
|
159
|
+
min-width: max-content;
|
|
160
|
+
max-width: 100%;
|
|
161
|
+
`;
|
|
162
|
+
StyledToolbarActions.defaultProps = defaultThemeProp;
|
|
163
|
+
export const StyledListToolbar = styled(Flex)(({ theme }) => {
|
|
164
|
+
return css `
|
|
165
|
+
width: 100%;
|
|
166
|
+
margin-block-end: calc(0.5 * ${theme.base.spacing});
|
|
167
|
+
container: list-toolbar / inline-size;
|
|
168
|
+
`;
|
|
71
169
|
});
|
|
72
170
|
StyledListToolbar.defaultProps = defaultThemeProp;
|
|
73
171
|
export const StyledListToolbarDialog = styled(FormDialog)(({ theme }) => {
|
|
74
172
|
return css `
|
|
75
|
-
|
|
76
|
-
|
|
173
|
+
&:not(${StyledTouchDialog}) {
|
|
174
|
+
min-width: min(${theme.base['content-width'].lg}, calc(100% - 2rem));
|
|
175
|
+
max-width: calc(100vw - 4 * ${theme.base.spacing});
|
|
77
176
|
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
177
|
+
${StyledDialogContent} {
|
|
178
|
+
@media (height >= 31.25rem) {
|
|
179
|
+
min-height: 2rem;
|
|
180
|
+
}
|
|
81
181
|
}
|
|
82
182
|
}
|
|
83
183
|
`;
|
|
84
184
|
});
|
|
85
185
|
StyledListToolbarDialog.defaultProps = defaultThemeProp;
|
|
86
|
-
export const StyledListToolbarContent = styled(Flex)(({ theme }) => {
|
|
186
|
+
export const StyledListToolbarContent = styled(Flex)(({ theme, $isSearchOpen, $inlineSearchResults }) => {
|
|
87
187
|
return css `
|
|
88
188
|
border-radius: calc(0.25 * ${theme.base['border-radius']});
|
|
89
189
|
|
|
@@ -94,6 +194,133 @@ export const StyledListToolbarContent = styled(Flex)(({ theme }) => {
|
|
|
94
194
|
${StyledButton}:focus {
|
|
95
195
|
z-index: 1;
|
|
96
196
|
}
|
|
197
|
+
|
|
198
|
+
${$isSearchOpen &&
|
|
199
|
+
css `
|
|
200
|
+
@container list-toolbar (${getSmallBreakpoint(theme)} <= width < ${getSearchOwnRowBreakpoint(theme)}) {
|
|
201
|
+
align-items: stretch;
|
|
202
|
+
|
|
203
|
+
${StyledToolbarHeading} {
|
|
204
|
+
align-self: center;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
${StyledAdditionalActions} {
|
|
208
|
+
grid-row: 1;
|
|
209
|
+
max-width: 100%;
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
${StyledToolbarActions} {
|
|
213
|
+
grid-row: 1;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
${StyledSearchContainer} {
|
|
217
|
+
grid-column: 1 / -1;
|
|
218
|
+
grid-row: 2;
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
${!$inlineSearchResults &&
|
|
222
|
+
css `
|
|
223
|
+
position: relative;
|
|
224
|
+
|
|
225
|
+
${StyledToolbarHeading}, ${StyledToolbarControls} {
|
|
226
|
+
/* Reserve the themed search-row height; the search container is pinned into it below. */
|
|
227
|
+
margin-block-end: calc(${theme.components.input.height} + ${theme.base.spacing});
|
|
228
|
+
|
|
229
|
+
@media (pointer: coarse) {
|
|
230
|
+
margin-block-end: calc(
|
|
231
|
+
max(${theme.components.input.height}, ${theme.base['hit-area']['finger-min']}) +
|
|
232
|
+
${theme.base.spacing}
|
|
233
|
+
);
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
${StyledAdditionalActions} {
|
|
238
|
+
grid-column: 1;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
${StyledToolbarActions} {
|
|
242
|
+
grid-column: 2;
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
${StyledSearchContainer} {
|
|
246
|
+
position: absolute;
|
|
247
|
+
inset-inline: 0;
|
|
248
|
+
inset-block-end: 0;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
${StyledToolbarControls} {
|
|
252
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
253
|
+
|
|
254
|
+
&:has(${StyledAdditionalActions}) {
|
|
255
|
+
grid-template-columns: minmax(4rem, 1fr) auto;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
`}
|
|
259
|
+
|
|
260
|
+
${$inlineSearchResults &&
|
|
261
|
+
css `
|
|
262
|
+
display: grid;
|
|
263
|
+
grid-template-columns: minmax(0, max-content) auto;
|
|
264
|
+
justify-content: space-between;
|
|
265
|
+
|
|
266
|
+
&:has(${StyledAdditionalActions}) {
|
|
267
|
+
grid-template-columns: minmax(0, max-content) minmax(4rem, max-content) auto;
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
${StyledToolbarHeading} {
|
|
271
|
+
grid-column: 1;
|
|
272
|
+
grid-row: 1;
|
|
273
|
+
width: auto;
|
|
274
|
+
max-width: 100%;
|
|
275
|
+
margin-block-end: 0;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
${StyledToolbarControls} {
|
|
279
|
+
display: contents;
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
${StyledAdditionalActions} {
|
|
283
|
+
grid-column: 2;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
${StyledToolbarActions} {
|
|
287
|
+
grid-column: -2 / -1;
|
|
288
|
+
}
|
|
289
|
+
`}
|
|
290
|
+
}
|
|
291
|
+
`}
|
|
292
|
+
|
|
293
|
+
@container list-toolbar (width < ${getSmallBreakpoint(theme)}) {
|
|
294
|
+
display: grid;
|
|
295
|
+
grid-template-columns: minmax(0, 1fr) auto;
|
|
296
|
+
|
|
297
|
+
${StyledToolbarControls} {
|
|
298
|
+
display: contents;
|
|
299
|
+
}
|
|
300
|
+
|
|
301
|
+
${StyledToolbarHeading} {
|
|
302
|
+
grid-column: 1;
|
|
303
|
+
grid-row: 1;
|
|
304
|
+
min-width: 0;
|
|
305
|
+
width: auto;
|
|
306
|
+
max-width: none;
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
${StyledToolbarActions} {
|
|
310
|
+
grid-column: 2;
|
|
311
|
+
grid-row: 1;
|
|
312
|
+
align-self: start;
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
${StyledAdditionalActions},
|
|
316
|
+
${StyledSearchContainer} {
|
|
317
|
+
grid-column: 1 / -1;
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
${StyledAdditionalActions} {
|
|
321
|
+
order: 1;
|
|
322
|
+
}
|
|
323
|
+
}
|
|
97
324
|
`;
|
|
98
325
|
});
|
|
99
326
|
StyledListToolbarContent.defaultProps = defaultThemeProp;
|
|
@@ -102,54 +329,84 @@ export const StyledErrorIcon = styled(Icon)(({ theme }) => css `
|
|
|
102
329
|
margin-inline-end: ${theme.base.spacing};
|
|
103
330
|
`);
|
|
104
331
|
StyledErrorIcon.defaultProps = defaultThemeProp;
|
|
105
|
-
export const
|
|
106
|
-
|
|
332
|
+
export const StyledRequiredIndicator = styled.span(({ theme }) => css `
|
|
333
|
+
color: ${theme.base.palette.urgent};
|
|
334
|
+
line-height: ${theme.base['hit-area'].compact};
|
|
335
|
+
|
|
336
|
+
&::before {
|
|
337
|
+
content: '*';
|
|
338
|
+
}
|
|
339
|
+
`);
|
|
340
|
+
StyledRequiredIndicator.defaultProps = defaultThemeProp;
|
|
341
|
+
export const StyledHeading = styled.div(({ theme, $required, showName, headingTag, $iconOnlyViewSelector }) => {
|
|
107
342
|
const hitAreaCompact = theme.base['hit-area'].compact;
|
|
343
|
+
const fontSizes = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);
|
|
344
|
+
const fontSizeKeys = ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'];
|
|
345
|
+
const headingFontSizeKey = theme.components.text[headingTag]['font-size'];
|
|
346
|
+
const headingFontSize = fontSizes[fontSizeKeys.find(k => k === headingFontSizeKey) ?? 'm'];
|
|
347
|
+
const gap = `calc(0.5 * ${theme.base.spacing})`;
|
|
108
348
|
return css `
|
|
109
|
-
|
|
349
|
+
min-width: 0;
|
|
350
|
+
line-height: ${hitAreaCompact};
|
|
351
|
+
word-break: break-word;
|
|
352
|
+
display: flex;
|
|
353
|
+
flex: 1 1 auto;
|
|
354
|
+
flex-wrap: wrap;
|
|
355
|
+
align-items: center;
|
|
356
|
+
gap: ${gap};
|
|
357
|
+
|
|
358
|
+
> ${StyledText} {
|
|
110
359
|
position: relative;
|
|
360
|
+
flex: 1 1 max-content;
|
|
361
|
+
min-width: 0;
|
|
362
|
+
max-width: max-content;
|
|
111
363
|
line-height: ${hitAreaCompact};
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
align-items: center;
|
|
364
|
+
${ellipsisOverflow};
|
|
365
|
+
}
|
|
115
366
|
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
padding-inline-end: calc(1.5 * ${theme.base.spacing});
|
|
119
|
-
`}
|
|
120
|
-
&::after {
|
|
121
|
-
display: ${required ? 'inline' : 'none'};
|
|
122
|
-
content: '\\00a0*';
|
|
123
|
-
vertical-align: top;
|
|
124
|
-
color: ${urgent};
|
|
125
|
-
position: absolute;
|
|
126
|
-
inset-inline-end: 0;
|
|
127
|
-
inset-block-start: 0;
|
|
128
|
-
}
|
|
367
|
+
${StyledViewSelector} {
|
|
368
|
+
font-size: ${headingFontSize};
|
|
129
369
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
370
|
+
/* Wraps the selected view name instead of truncating it. */
|
|
371
|
+
> span {
|
|
372
|
+
min-width: 0;
|
|
373
|
+
${$iconOnlyViewSelector &&
|
|
374
|
+
css `
|
|
375
|
+
padding-inline-start: 0;
|
|
376
|
+
`}
|
|
133
377
|
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
378
|
+
> span:first-child {
|
|
379
|
+
overflow: visible;
|
|
380
|
+
}
|
|
137
381
|
}
|
|
382
|
+
}
|
|
138
383
|
|
|
139
|
-
|
|
384
|
+
${!$required &&
|
|
140
385
|
!showName &&
|
|
141
386
|
css `
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
margin-inline-end: -${theme.base.spacing};
|
|
148
|
-
}
|
|
149
|
-
`}
|
|
150
|
-
`;
|
|
387
|
+
> ${StyledText} {
|
|
388
|
+
${hideVisually}
|
|
389
|
+
}
|
|
390
|
+
`}
|
|
391
|
+
`;
|
|
151
392
|
});
|
|
152
393
|
StyledHeading.defaultProps = defaultThemeProp;
|
|
394
|
+
export const StyledHeadingRow = styled.div(({ theme }) => {
|
|
395
|
+
const gap = `calc(0.5 * ${theme.base.spacing})`;
|
|
396
|
+
return css `
|
|
397
|
+
min-width: 0;
|
|
398
|
+
display: flex;
|
|
399
|
+
flex-wrap: wrap;
|
|
400
|
+
align-items: center;
|
|
401
|
+
gap: ${gap};
|
|
402
|
+
|
|
403
|
+
> ${StyledHeading} {
|
|
404
|
+
flex: 0 1 auto;
|
|
405
|
+
max-width: 100%;
|
|
406
|
+
}
|
|
407
|
+
`;
|
|
408
|
+
});
|
|
409
|
+
StyledHeadingRow.defaultProps = defaultThemeProp;
|
|
153
410
|
export const StyledCountMeta = styled(StyledCount)(({ theme }) => {
|
|
154
411
|
return css `
|
|
155
412
|
white-space: nowrap;
|
|
@@ -158,7 +415,16 @@ export const StyledCountMeta = styled(StyledCount)(({ theme }) => {
|
|
|
158
415
|
`;
|
|
159
416
|
});
|
|
160
417
|
StyledCountMeta.defaultProps = defaultThemeProp;
|
|
161
|
-
export const StyledInfo = styled.div(({ status, theme: { components: { 'form-field': formField } } }) => css `
|
|
418
|
+
export const StyledInfo = styled.div(({ status, theme: { base: { spacing }, components: { 'form-field': formField } } }) => css `
|
|
419
|
+
margin-block-end: calc(0.5 * ${spacing});
|
|
420
|
+
overflow-wrap: anywhere;
|
|
421
|
+
|
|
422
|
+
${status === 'error' &&
|
|
423
|
+
css `
|
|
424
|
+
display: flex;
|
|
425
|
+
align-items: center;
|
|
426
|
+
`}
|
|
427
|
+
|
|
162
428
|
${status &&
|
|
163
429
|
formField[status] &&
|
|
164
430
|
css `
|
|
@@ -166,12 +432,4 @@ export const StyledInfo = styled.div(({ status, theme: { components: { 'form-fie
|
|
|
166
432
|
`}
|
|
167
433
|
`);
|
|
168
434
|
StyledInfo.defaultProps = defaultThemeProp;
|
|
169
|
-
export const StyledSearchContainer = styled(Flex)(({ theme }) => css `
|
|
170
|
-
margin-block: calc(0.5 * ${theme.base.spacing});
|
|
171
|
-
|
|
172
|
-
${StyledSearchInput} {
|
|
173
|
-
max-width: 100%;
|
|
174
|
-
}
|
|
175
|
-
`);
|
|
176
|
-
StyledSearchContainer.defaultProps = defaultThemeProp;
|
|
177
435
|
//# sourceMappingURL=ListToolbar.styles.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListToolbar.styles.js","sourceRoot":"","sources":["../../../src/components/ListToolbar/ListToolbar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAC;AAEjD,OAAO,MAAM,EAAE,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACjD,OAAO,UAAU,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAEvD,MAAM,CAAC,MAAM,wBAAwB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA,EAAE,CAAC;AACzD,wBAAwB,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEzD,MAAM,CAAC,MAAM,gBAAgB,GAAG,MAAM,CAAC,GAAG,CAAA;IACtC,iBAAiB;;;;CAIpB,CAAC;AAEF,MA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pB,CACF,CAAC;AAEF,qBAAqB,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\nimport { hideVisually } from 'polished';\n\nimport { StyledDialogContent } from '../Dialog/Dialog.styles';\nimport { StyledCount } from '../Badges/Count';\nimport type { FormControlProps } from '../FormControl';\nimport Icon from '../Icon';\nimport Flex from '../Flex';\nimport { StyledSearchInput } from '../SearchInput';\nimport { StyledText } from '../Text';\nimport { defaultThemeProp } from '../../theme';\nimport { calculateFontSize } from '../../styles';\nimport type { FontSize } from '../../styles';\nimport Button, { StyledButton } from '../Button';\nimport FormDialog from '../Dialog/FormDialog';\nimport { ellipsisOverflow } from '../../styles/mixins';\n\nexport const StyledExpandSearchButton = styled(Button)``;\nStyledExpandSearchButton.defaultProps = defaultThemeProp;\n\nexport const StyledSearchForm = styled.div`\n ${StyledSearchInput} {\n flex-grow: 1;\n max-width: min(100%, 40ch);\n }\n`;\n\nexport const StyledViewSelector = styled.button<{ required: boolean }>(({ theme, required }) => {\n const fontSizes = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n const { urgent } = theme.base.palette;\n const hitAreaMouse = theme.base['hit-area']['mouse-min'];\n const hitAreaFinger = theme.base['hit-area']['finger-min'];\n\n return css`\n flex-shrink: initial;\n white-space: initial;\n max-width: 100%;\n\n ${StyledText} {\n white-space: nowrap;\n font-size: ${fontSizes[theme.components.text.h2['font-size'] as FontSize]};\n line-height: ${hitAreaMouse};\n word-break: break-word;\n @media (pointer: coarse) {\n line-height: ${hitAreaFinger};\n }\n }\n\n ${StyledText}::after {\n display: ${required ? 'inline-block' : 'none'};\n content: '\\\\00a0*';\n vertical-align: top;\n color: ${urgent};\n }\n `;\n});\n\nStyledViewSelector.defaultProps = defaultThemeProp;\n\nexport const StyledListToolbar = styled.div<{ isSmallOrAbove: boolean }>(\n ({ theme, isSmallOrAbove }) => {\n return css`\n width: 100%;\n margin-block-end: calc(0.5 * ${theme.base.spacing});\n\n ${isSmallOrAbove &&\n css`\n ${StyledExpandSearchButton} {\n margin-inline-start: calc(0.5 * ${theme.base.spacing});\n }\n\n ${StyledSearchInput} {\n margin-inline-start: ${theme.base.spacing};\n\n input {\n min-width: 20ch;\n }\n }\n `}\n `;\n }\n);\n\nStyledListToolbar.defaultProps = defaultThemeProp;\n\nexport const StyledListToolbarDialog = styled(FormDialog)(({ theme }) => {\n return css`\n min-width: min(${theme.base['content-width'].lg}, calc(100% - 2rem));\n max-width: calc(100vw - 4 * ${theme.base.spacing});\n\n ${StyledDialogContent} {\n @media (height >= 31.25rem) {\n min-height: 2rem;\n }\n }\n `;\n});\n\nStyledListToolbarDialog.defaultProps = defaultThemeProp;\n\nexport const StyledListToolbarContent = styled(Flex)(({ theme }) => {\n return css`\n border-radius: calc(0.25 * ${theme.base['border-radius']});\n\n ${StyledButton} + ${StyledButton} {\n margin-inline-start: 0;\n }\n\n ${StyledButton}:focus {\n z-index: 1;\n }\n `;\n});\n\nStyledListToolbarContent.defaultProps = defaultThemeProp;\n\nexport const StyledErrorIcon = styled(Icon)(\n ({ theme }) => css`\n color: ${theme.base.palette.urgent};\n margin-inline-end: ${theme.base.spacing};\n `\n);\n\nStyledErrorIcon.defaultProps = defaultThemeProp;\n\nexport const StyledHeading = styled.div<{ required?: boolean; showName: boolean }>(\n ({ theme, required, showName }) => {\n const { urgent } = theme.base.palette;\n const hitAreaCompact = theme.base['hit-area'].compact;\n\n return css`\n min-width: 0;\n position: relative;\n line-height: ${hitAreaCompact};\n word-break: break-word;\n display: flex;\n align-items: center;\n\n ${required &&\n css`\n padding-inline-end: calc(1.5 * ${theme.base.spacing});\n `}\n &::after {\n display: ${required ? 'inline' : 'none'};\n content: '\\\\00a0*';\n vertical-align: top;\n color: ${urgent};\n position: absolute;\n inset-inline-end: 0;\n inset-block-start: 0;\n }\n\n ${StyledErrorIcon} {\n margin-inline-end: calc(0.5 * ${theme.base.spacing});\n }\n\n ${StyledText} {\n line-height: ${hitAreaCompact};\n ${ellipsisOverflow};\n }\n\n ${!required &&\n !showName &&\n css`\n > ${StyledText} {\n ${hideVisually}\n }\n\n &:not(:has(${StyledViewSelector})) {\n margin-inline-end: -${theme.base.spacing};\n }\n `}\n `;\n }\n);\n\nStyledHeading.defaultProps = defaultThemeProp;\n\nexport const StyledCountMeta = styled(StyledCount)(({ theme }) => {\n return css`\n white-space: nowrap;\n margin-inline-end: ${theme.base.spacing};\n width: fit-content;\n `;\n});\n\nStyledCountMeta.defaultProps = defaultThemeProp;\n\nexport const StyledInfo = styled.div<Pick<FormControlProps, 'status'>>(\n ({\n status,\n theme: {\n components: { 'form-field': formField }\n }\n }) => css`\n ${status &&\n formField[status] &&\n css`\n color: ${formField[status]['status-color']};\n `}\n `\n);\n\nStyledInfo.defaultProps = defaultThemeProp;\n\nexport const StyledSearchContainer = styled(Flex)(\n ({ theme }) => css`\n margin-block: calc(0.5 * ${theme.base.spacing});\n\n ${StyledSearchInput} {\n max-width: 100%;\n }\n `\n);\n\nStyledSearchContainer.defaultProps = defaultThemeProp;\n"]}
|
|
1
|
+
{"version":3,"file":"ListToolbar.styles.js","sourceRoot":"","sources":["../../../src/components/ListToolbar/ListToolbar.styles.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,EAAE,EAAE,GAAG,EAAE,MAAM,mBAAmB,CAAC;AAEhD,OAAO,EAAE,YAAY,EAAE,MAAM,UAAU,CAAC;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAE9C,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,IAAI,MAAM,SAAS,CAAC;AAC3B,OAAO,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AACnD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAErC,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,C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G,gBAAgB,CAAC;AAEjD,MAAM,CAAC,MAAM,eAAe,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE;IAC/D,OAAO,GAAG,CAAA;;yBAEa,KAAK,CAAC,IAAI,CAAC,OAAO;;GAExC,CAAC;AACJ,CAAC,CAAC,CAAC;AAEH,eAAe,CAAC,YAAY,GAAG,gBAAgB,CAAC;AAEhD,MAAM,CAAC,MAAM,UAAU,GAAG,MAAM,CAAC,GAAG,CAClC,CAAC,EACC,MAAM,EACN,KAAK,EAAE,EACL,IAAI,EAAE,EAAE,OAAO,EAAE,EACjB,UAAU,EAAE,EAAE,YAAY,EAAE,SAAS,EAAE,EACxC,EACF,EAAE,EAAE,CAAC,GAAG,CAAA;mCACwB,OAAO;;;MAGpC,MAAM,KAAK,OAAO;IACpB,GAAG,CAAA;;;KAGF;;MAEC,MAAM;IACR,SAAS,CAAC,MAAM,CAAC;IACjB,GAAG,CAAA;eACQ,SAAS,CAAC,MAAM,CAAC,CAAC,cAAc,CAAC;KAC3C;GACF,CACF,CAAC;AAEF,UAAU,CAAC,YAAY,GAAG,gBAAgB,CAAC","sourcesContent":["import styled, { css } from 'styled-components';\nimport type { DefaultTheme } from 'styled-components';\nimport { hideVisually } from 'polished';\n\nimport { StyledDialogContent } from '../Dialog/Dialog.styles';\nimport { StyledCount } from '../Badges/Count';\nimport type { FormControlProps } from '../FormControl';\nimport Icon from '../Icon';\nimport Flex from '../Flex';\nimport { StyledSearchInput } from '../SearchInput';\nimport { StyledText } from '../Text';\nimport type { HeadingTag } from '../../types';\nimport { defaultThemeProp } from '../../theme';\nimport { calculateFontSize } from '../../styles';\nimport type { FontSize } from '../../styles';\nimport Button, { StyledButton } from '../Button';\nimport { FormDialog } from '../Dialog';\nimport { ellipsisOverflow } from '../../styles/mixins';\nimport { StyledTouchDialog } from '../Dialog/TouchDialog.styles';\n\n// Container queries resolve `em` against the toolbar font size; `rem` matches the root-based useBreakpoint switch point.\nconst toRemBreakpoint = (breakpoint: string) => breakpoint.replace(/(\\d)em$/, '$1rem');\nconst getSmallBreakpoint = (theme: DefaultTheme) => toRemBreakpoint(theme.base.breakpoints.sm);\n\nconst getSearchWidth = (theme: DefaultTheme) => theme.base['content-width'].sm;\nconst getSearchMinWidth = (theme: DefaultTheme) => theme.base['content-width'].xs;\n// Below this toolbar width the expanded search no longer fits next to the heading and controls, even shrunk.\nconst getSearchOwnRowBreakpoint = (theme: DefaultTheme) =>\n `calc(${getSmallBreakpoint(theme)} + ${getSearchMinWidth(theme)})`;\n\nexport const StyledExpandSearchButton = styled(Button)``;\nStyledExpandSearchButton.defaultProps = defaultThemeProp;\n\nexport const StyledPrimaryAction = styled(Button)(\n ({ theme }) => css`\n @container list-toolbar (width < ${getSmallBreakpoint(theme)}) {\n display: none;\n }\n `\n);\n\nStyledPrimaryAction.defaultProps = defaultThemeProp;\n\nexport const StyledToolbarMenu = styled.div<{ $primaryOnly: boolean }>(\n ({ theme, $primaryOnly }) => css`\n display: ${$primaryOnly ? 'none' : 'contents'};\n\n @container list-toolbar (width < ${getSmallBreakpoint(theme)}) {\n display: contents;\n }\n `\n);\n\nStyledToolbarMenu.defaultProps = defaultThemeProp;\n\nexport const StyledSearchContent = styled.div`\n flex-direction: column;\n min-width: 0;\n width: 100%;\n max-width: 100%;\n`;\n\nStyledSearchContent.defaultProps = defaultThemeProp;\n\nexport const StyledSearchContainer = styled(Flex)<{ $isSearchOpen: boolean }>(\n ({ theme, $isSearchOpen }) => css`\n min-width: ${$isSearchOpen ? getSearchMinWidth(theme) : 'max-content'};\n\n ${StyledExpandSearchButton} {\n ${$isSearchOpen && 'display: none;'}\n }\n\n ${StyledSearchContent} {\n display: ${$isSearchOpen ? 'flex' : 'none'};\n }\n\n ${StyledSearchInput} {\n width: ${getSearchWidth(theme)};\n max-width: 100%;\n\n input {\n min-width: 0;\n }\n }\n\n @container list-toolbar (width < ${getSearchOwnRowBreakpoint(theme)}) {\n ${StyledSearchInput} {\n width: 100%;\n }\n }\n\n @container list-toolbar (width < ${getSmallBreakpoint(theme)}) {\n min-width: 0;\n\n ${StyledExpandSearchButton} {\n display: none;\n }\n\n ${StyledSearchContent} {\n display: flex;\n }\n }\n `\n);\n\nStyledSearchContainer.defaultProps = defaultThemeProp;\n\nexport const StyledViewSelector = styled.button(({ theme }) => {\n const hitAreaMouse = theme.base['hit-area']['mouse-min'];\n const hitAreaFinger = theme.base['hit-area']['finger-min'];\n\n return css`\n flex-shrink: initial;\n white-space: initial;\n max-width: 100%;\n\n ${StyledText} {\n white-space: nowrap;\n line-height: ${hitAreaMouse};\n word-break: break-word;\n @media (pointer: coarse) {\n line-height: ${hitAreaFinger};\n }\n }\n `;\n});\n\nStyledViewSelector.defaultProps = defaultThemeProp;\n\nexport const StyledViewSelectorGroup = styled.div(({ theme }) => {\n return css`\n display: flex;\n align-items: center;\n gap: calc(0.5 * ${theme.base.spacing});\n min-width: 0;\n\n > :not(${StyledViewSelector}) {\n flex-shrink: 0;\n }\n `;\n});\n\nStyledViewSelectorGroup.defaultProps = defaultThemeProp;\n\nexport const StyledAdditionalActions = styled.div(\n ({ theme }) => css`\n min-width: 4rem;\n max-width: 100%;\n width: max-content;\n\n > * {\n max-width: 100%;\n min-width: 0;\n }\n\n @container list-toolbar (width < ${getSmallBreakpoint(theme)}) {\n min-width: 0;\n max-width: 100%;\n width: 100%;\n\n > * {\n width: 100%;\n }\n }\n `\n);\n\nStyledAdditionalActions.defaultProps = defaultThemeProp;\n\nexport const StyledToolbarHeading = styled(Flex)`\n flex: 1 1 0;\n min-width: 0;\n width: max-content;\n max-width: max-content;\n`;\n\nStyledToolbarHeading.defaultProps = defaultThemeProp;\n\nexport const StyledToolbarControls = styled(Flex)`\n display: grid;\n grid-auto-flow: column;\n grid-auto-columns: auto;\n flex: 1 1 0;\n min-width: min-content;\n max-width: max-content;\n margin-inline-start: auto;\n\n &:has(${StyledAdditionalActions}) {\n grid-template-columns: minmax(4rem, max-content);\n }\n`;\n\nStyledToolbarControls.defaultProps = defaultThemeProp;\n\nexport const StyledToolbarActions = styled(Flex)`\n min-width: max-content;\n max-width: 100%;\n`;\n\nStyledToolbarActions.defaultProps = defaultThemeProp;\n\nexport const StyledListToolbar = styled(Flex)(({ theme }) => {\n return css`\n width: 100%;\n margin-block-end: calc(0.5 * ${theme.base.spacing});\n container: list-toolbar / inline-size;\n `;\n});\n\nStyledListToolbar.defaultProps = defaultThemeProp;\n\nexport const StyledListToolbarDialog = styled(FormDialog)(({ theme }) => {\n return css`\n &:not(${StyledTouchDialog}) {\n min-width: min(${theme.base['content-width'].lg}, calc(100% - 2rem));\n max-width: calc(100vw - 4 * ${theme.base.spacing});\n\n ${StyledDialogContent} {\n @media (height >= 31.25rem) {\n min-height: 2rem;\n }\n }\n }\n `;\n});\n\nStyledListToolbarDialog.defaultProps = defaultThemeProp;\n\nexport const StyledListToolbarContent = styled(Flex)<{\n $isSearchOpen: boolean;\n $inlineSearchResults: boolean;\n}>(({ theme, $isSearchOpen, $inlineSearchResults }) => {\n return css`\n border-radius: calc(0.25 * ${theme.base['border-radius']});\n\n ${StyledButton} + ${StyledButton} {\n margin-inline-start: 0;\n }\n\n ${StyledButton}:focus {\n z-index: 1;\n }\n\n ${$isSearchOpen &&\n css`\n @container list-toolbar (${getSmallBreakpoint(theme)} <= width < ${getSearchOwnRowBreakpoint(\n theme\n )}) {\n align-items: stretch;\n\n ${StyledToolbarHeading} {\n align-self: center;\n }\n\n ${StyledAdditionalActions} {\n grid-row: 1;\n max-width: 100%;\n }\n\n ${StyledToolbarActions} {\n grid-row: 1;\n }\n\n ${StyledSearchContainer} {\n grid-column: 1 / -1;\n grid-row: 2;\n }\n\n ${!$inlineSearchResults &&\n css`\n position: relative;\n\n ${StyledToolbarHeading}, ${StyledToolbarControls} {\n /* Reserve the themed search-row height; the search container is pinned into it below. */\n margin-block-end: calc(${theme.components.input.height} + ${theme.base.spacing});\n\n @media (pointer: coarse) {\n margin-block-end: calc(\n max(${theme.components.input.height}, ${theme.base['hit-area']['finger-min']}) +\n ${theme.base.spacing}\n );\n }\n }\n\n ${StyledAdditionalActions} {\n grid-column: 1;\n }\n\n ${StyledToolbarActions} {\n grid-column: 2;\n }\n\n ${StyledSearchContainer} {\n position: absolute;\n inset-inline: 0;\n inset-block-end: 0;\n }\n\n ${StyledToolbarControls} {\n grid-template-columns: minmax(0, 1fr) auto;\n\n &:has(${StyledAdditionalActions}) {\n grid-template-columns: minmax(4rem, 1fr) auto;\n }\n }\n `}\n\n ${$inlineSearchResults &&\n css`\n display: grid;\n grid-template-columns: minmax(0, max-content) auto;\n justify-content: space-between;\n\n &:has(${StyledAdditionalActions}) {\n grid-template-columns: minmax(0, max-content) minmax(4rem, max-content) auto;\n }\n\n ${StyledToolbarHeading} {\n grid-column: 1;\n grid-row: 1;\n width: auto;\n max-width: 100%;\n margin-block-end: 0;\n }\n\n ${StyledToolbarControls} {\n display: contents;\n }\n\n ${StyledAdditionalActions} {\n grid-column: 2;\n }\n\n ${StyledToolbarActions} {\n grid-column: -2 / -1;\n }\n `}\n }\n `}\n\n @container list-toolbar (width < ${getSmallBreakpoint(theme)}) {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n\n ${StyledToolbarControls} {\n display: contents;\n }\n\n ${StyledToolbarHeading} {\n grid-column: 1;\n grid-row: 1;\n min-width: 0;\n width: auto;\n max-width: none;\n }\n\n ${StyledToolbarActions} {\n grid-column: 2;\n grid-row: 1;\n align-self: start;\n }\n\n ${StyledAdditionalActions},\n ${StyledSearchContainer} {\n grid-column: 1 / -1;\n }\n\n ${StyledAdditionalActions} {\n order: 1;\n }\n }\n `;\n});\n\nStyledListToolbarContent.defaultProps = defaultThemeProp;\n\nexport const StyledErrorIcon = styled(Icon)(\n ({ theme }) => css`\n color: ${theme.base.palette.urgent};\n margin-inline-end: ${theme.base.spacing};\n `\n);\n\nStyledErrorIcon.defaultProps = defaultThemeProp;\n\nexport const StyledRequiredIndicator = styled.span(\n ({ theme }) => css`\n color: ${theme.base.palette.urgent};\n line-height: ${theme.base['hit-area'].compact};\n\n &::before {\n content: '*';\n }\n `\n);\n\nStyledRequiredIndicator.defaultProps = defaultThemeProp;\n\nexport const StyledHeading = styled.div<{\n $required?: boolean;\n showName: boolean;\n headingTag: HeadingTag;\n $iconOnlyViewSelector: boolean;\n}>(({ theme, $required, showName, headingTag, $iconOnlyViewSelector }) => {\n const hitAreaCompact = theme.base['hit-area'].compact;\n const fontSizes = calculateFontSize(theme.base['font-size'], theme.base['font-scale']);\n const fontSizeKeys: FontSize[] = ['xxs', 'xs', 's', 'm', 'l', 'xl', 'xxl'];\n const headingFontSizeKey = theme.components.text[headingTag]['font-size'];\n const headingFontSize = fontSizes[fontSizeKeys.find(k => k === headingFontSizeKey) ?? 'm'];\n const gap = `calc(0.5 * ${theme.base.spacing})`;\n\n return css`\n min-width: 0;\n line-height: ${hitAreaCompact};\n word-break: break-word;\n display: flex;\n flex: 1 1 auto;\n flex-wrap: wrap;\n align-items: center;\n gap: ${gap};\n\n > ${StyledText} {\n position: relative;\n flex: 1 1 max-content;\n min-width: 0;\n max-width: max-content;\n line-height: ${hitAreaCompact};\n ${ellipsisOverflow};\n }\n\n ${StyledViewSelector} {\n font-size: ${headingFontSize};\n\n /* Wraps the selected view name instead of truncating it. */\n > span {\n min-width: 0;\n ${$iconOnlyViewSelector &&\n css`\n padding-inline-start: 0;\n `}\n\n > span:first-child {\n overflow: visible;\n }\n }\n }\n\n ${!$required &&\n !showName &&\n css`\n > ${StyledText} {\n ${hideVisually}\n }\n `}\n `;\n});\n\nStyledHeading.defaultProps = defaultThemeProp;\n\nexport const StyledHeadingRow = styled.div(({ theme }) => {\n const gap = `calc(0.5 * ${theme.base.spacing})`;\n\n return css`\n min-width: 0;\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: ${gap};\n\n > ${StyledHeading} {\n flex: 0 1 auto;\n max-width: 100%;\n }\n `;\n});\n\nStyledHeadingRow.defaultProps = defaultThemeProp;\n\nexport const StyledCountMeta = styled(StyledCount)(({ theme }) => {\n return css`\n white-space: nowrap;\n margin-inline-end: ${theme.base.spacing};\n width: fit-content;\n `;\n});\n\nStyledCountMeta.defaultProps = defaultThemeProp;\n\nexport const StyledInfo = styled.div<Pick<FormControlProps, 'status'>>(\n ({\n status,\n theme: {\n base: { spacing },\n components: { 'form-field': formField }\n }\n }) => css`\n margin-block-end: calc(0.5 * ${spacing});\n overflow-wrap: anywhere;\n\n ${status === 'error' &&\n css`\n display: flex;\n align-items: center;\n `}\n\n ${status &&\n formField[status] &&\n css`\n color: ${formField[status]['status-color']};\n `}\n `\n);\n\nStyledInfo.defaultProps = defaultThemeProp;\n"]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import type { MouseEvent, Ref, ComponentType, ReactNode } from 'react';
|
|
2
|
+
import type { MenuButtonProps } from '../MenuButton';
|
|
2
3
|
import type { SearchInputProps } from '../SearchInput';
|
|
3
4
|
import type { MenuGroupProps, MenuProps } from '../Menu';
|
|
4
5
|
import type { Action, BaseProps, DeferInfer, ExcludeStrict, HeadingTag, TestIdProp } from '../../types';
|
|
@@ -22,7 +23,7 @@ export interface ViewGroupProps {
|
|
|
22
23
|
/** Array of items belonging to the group. */
|
|
23
24
|
items: ViewProps[];
|
|
24
25
|
}
|
|
25
|
-
export interface ViewSelectorProps {
|
|
26
|
+
export interface ViewSelectorProps extends Pick<MenuButtonProps, 'iconOnly'> {
|
|
26
27
|
/** A list of pre-defined data views. */
|
|
27
28
|
views: (ViewProps | ViewGroupProps)[];
|
|
28
29
|
/** Called when a view is selected. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListToolbar.types.d.ts","sourceRoot":"","sources":["../../../src/components/ListToolbar/ListToolbar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EACT,UAAU,EACV,aAAa,EACb,UAAU,EACV,UAAU,EACX,MAAM,aAAa,CAAC;AACrB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAEvD,MAAM,WAAW,SAAS;IACxB,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,+DAA+D;IAC/D,QAAQ,EAAE,OAAO,CAAC;IAClB,yDAAyD;IACzD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,8CAA8C;IAC9C,MAAM,CAAC,EAAE,IAAI,CAAC,WAAW,EAAE,MAAM,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC,CAAC;CACrE;AAED,MAAM,WAAW,cAAc;IAC7B,+BAA+B;IAC/B,IAAI,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;IAC9B,6CAA6C;IAC7C,KAAK,EAAE,SAAS,EAAE,CAAC;CACpB;AAED,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"ListToolbar.types.d.ts","sourceRoot":"","sources":["../../../src/components/ListToolbar/ListToolbar.types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACrD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AACvD,OAAO,KAAK,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,SAAS,CAAC;AACzD,OAAO,KAAK,EACV,MAAM,EACN,SAAS,EAC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;KAClC,CAAC;IACF,oCAAoC;IACpC,IAAI,CAAC,EAAE;QACL,+CAA+C;QAC/C,OAAO,CAAC,EAAE,OAAO,CAAC;QAClB,+EAA+E;QAC/E,OAAO,EAAE,CAAC,CAAC,EAAE,UAAU,KAAK,IAAI,CAAC;KAClC,CAAC;IACF,yCAAyC;IACzC,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B,uGAAuG;IACvG,KAAK,CAAC,EACF;QACE,KAAK,EAAE,MAAM,CAAC;QACd;;;WAGG;QACH,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACnB,GACD;QACE,QAAQ,EAAE,MAAM,CAAC;QACjB,KAAK,CAAC,EAAE,KAAK,CAAC;QACd,YAAY,CAAC,EAAE,KAAK,CAAC;KACtB,CAAC;IACN,gCAAgC;IAChC,iBAAiB,CAAC,EAAE,SAAS,CAAC;IAC9B,2DAA2D;IAC3D,MAAM,CAAC,EAAE,sBAAsB,GAAG,eAAe,CAAC;IAClD,yDAAyD;IACzD,IAAI,CAAC,EAAE,sBAAsB,GAAG,eAAe,CAAC;IAChD,0DAA0D;IAC1D,KAAK,CAAC,EAAE,sBAAsB,GAAG,eAAe,CAAC;IACjD,iCAAiC;IACjC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;IACnB,0CAA0C;IAC1C,gBAAgB,CAAC,EAAE,GAAG,CAAC,iBAAiB,CAAC,CAAC;IAC1C,oCAAoC;IACpC,GAAG,CAAC,EAAE,GAAG,CAAC,cAAc,CAAC,CAAC;CAC3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ListToolbar.types.js","sourceRoot":"","sources":["../../../src/components/ListToolbar/ListToolbar.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { MouseEvent, Ref, ComponentType, ReactNode } from 'react';\n\nimport type { SearchInputProps } from '../SearchInput';\nimport type { MenuGroupProps, MenuProps } from '../Menu';\nimport type {\n Action,\n BaseProps,\n DeferInfer,\n ExcludeStrict,\n HeadingTag,\n TestIdProp\n} from '../../types';\nimport type { AvatarProps } from '../Avatar';\nimport type { FormControlProps } from '../FormControl';\n\nexport interface ViewProps {\n /** Unique, stable identifier of this view. */\n id: string;\n /** Label text of this view. */\n text: string;\n /** Flag indicating whether this view is currently selected. */\n selected: boolean;\n /** A count to assist with number of associated items. */\n count?: number;\n /** A visual to assist identifying an item. */\n visual?: Pick<AvatarProps, 'name' | 'icon' | 'imageSrc' | 'status'>;\n}\n\nexport interface ViewGroupProps {\n /** Label text of the group. */\n text: MenuGroupProps['label'];\n /** Array of items belonging to the group. */\n items: ViewProps[];\n}\n\nexport interface ViewSelectorProps {\n /** A list of pre-defined data views. */\n views: (ViewProps | ViewGroupProps)[];\n /** Called when a view is selected. */\n onViewSelect: MenuProps['onItemClick'];\n /** Called when Create view is clicked. */\n onCreateView?: (target: HTMLButtonElement) => void;\n /** Renders a filter input inside the view selector menu to search through views. */\n filterInputProps?: MenuProps['filterInputProps'];\n}\n\nexport interface QueryOption {\n /** A count representing the number of applied conditions within the query option. */\n count?: number;\n}\n\nexport interface QueryOptionDialogProps<P extends object = any> extends QueryOption {\n /** A component to render the content portion of the query option dialog. */\n renderer: ComponentType<P>;\n /**\n * A props object that will be passed to the content renderer.\n */\n rendererProps?: DeferInfer<P>;\n /**\n * Called when the user explicitly or implicitly cancels(closes) the query dialog.\n * Returning false will block the dialog from closing.\n */\n onCancel: () => boolean | void;\n /**\n * Called when the user explicitly applies the query option conditions.\n * Returning false will block the dialog from closing.\n */\n onSubmit: () => boolean | void;\n}\n\n/** Optionally provide query option presets. */\nexport interface PresetMenuProps extends QueryOption {\n /** Mode defining whether menu selection is single or multi mode. */\n mode?: ExcludeStrict<MenuProps['mode'], 'action'>;\n /** Items of the menu. */\n items: { id: string; text: string; selected: boolean; icon?: string }[];\n /** Callback invoked on item selection. Passes the item id as an argument. */\n onItemClick: MenuProps['onItemClick'];\n}\n\nexport type QueryOptionId = 'filter' | 'sort' | 'group';\n\nexport interface ListToolbarProps extends BaseProps, TestIdProp {\n /** Renders a simple text name of table */\n name: string;\n /**\n * Show the name of the table.\n * @default true\n */\n showName?: boolean;\n /**\n * Uses specific heading tag for header.\n * @default h3\n */\n headingTag?: HeadingTag;\n /** Renders a simple view heading text or view selection menu. */\n viewSelector?: ViewSelectorProps;\n /** Props related to list used as a form control. */\n formControlProps?: Pick<FormControlProps, 'required' | 'additionalInfo' | 'info' | 'status'>;\n /** Props related to new item creation button. */\n createNew?: {\n /** Label of the new item creation button. */\n label?: string;\n /** Callback that will render a Create new button and is fired when that button is clicked. */\n onClick: (e: MouseEvent) => void;\n };\n /** Props related to wrap button. */\n wrap?: {\n /** value which holds the status of the wrap */\n enabled?: boolean;\n /** Callback that will fire to wrap the content when that button is clicked. */\n onClick: (e: MouseEvent) => void;\n };\n /** Props related to the Search Input. */\n search?: SearchInputProps;\n /** Total returned results related for a given search. Optional indication of a selected item count. */\n count?:\n | {\n total: number;\n /**\n * If true renders + next to total number.\n * @default false\n */\n totalHasMore?: boolean;\n selected?: number;\n }\n | {\n selected: number;\n total?: never;\n totalHasMore?: never;\n };\n /** Additional actions region */\n additionalActions?: ReactNode;\n /** Custom Rendering or available presets for filtering. */\n filter?: QueryOptionDialogProps | PresetMenuProps;\n /** Custom Rendering or available presets for sorting. */\n sort?: QueryOptionDialogProps | PresetMenuProps;\n /** Custom Rendering or available presets for grouping. */\n group?: QueryOptionDialogProps | PresetMenuProps;\n /** Top level dataset actions. */\n actions?: Action[];\n /** Ref for the actions button element. */\n actionsButtonRef?: Ref<HTMLButtonElement>;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement>;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ListToolbar.types.js","sourceRoot":"","sources":["../../../src/components/ListToolbar/ListToolbar.types.ts"],"names":[],"mappings":"","sourcesContent":["import type { MouseEvent, Ref, ComponentType, ReactNode } from 'react';\n\nimport type { MenuButtonProps } from '../MenuButton';\nimport type { SearchInputProps } from '../SearchInput';\nimport type { MenuGroupProps, MenuProps } from '../Menu';\nimport type {\n Action,\n BaseProps,\n DeferInfer,\n ExcludeStrict,\n HeadingTag,\n TestIdProp\n} from '../../types';\nimport type { AvatarProps } from '../Avatar';\nimport type { FormControlProps } from '../FormControl';\n\nexport interface ViewProps {\n /** Unique, stable identifier of this view. */\n id: string;\n /** Label text of this view. */\n text: string;\n /** Flag indicating whether this view is currently selected. */\n selected: boolean;\n /** A count to assist with number of associated items. */\n count?: number;\n /** A visual to assist identifying an item. */\n visual?: Pick<AvatarProps, 'name' | 'icon' | 'imageSrc' | 'status'>;\n}\n\nexport interface ViewGroupProps {\n /** Label text of the group. */\n text: MenuGroupProps['label'];\n /** Array of items belonging to the group. */\n items: ViewProps[];\n}\n\nexport interface ViewSelectorProps extends Pick<MenuButtonProps, 'iconOnly'> {\n /** A list of pre-defined data views. */\n views: (ViewProps | ViewGroupProps)[];\n /** Called when a view is selected. */\n onViewSelect: MenuProps['onItemClick'];\n /** Called when Create view is clicked. */\n onCreateView?: (target: HTMLButtonElement) => void;\n /** Renders a filter input inside the view selector menu to search through views. */\n filterInputProps?: MenuProps['filterInputProps'];\n}\n\nexport interface QueryOption {\n /** A count representing the number of applied conditions within the query option. */\n count?: number;\n}\n\nexport interface QueryOptionDialogProps<P extends object = any> extends QueryOption {\n /** A component to render the content portion of the query option dialog. */\n renderer: ComponentType<P>;\n /**\n * A props object that will be passed to the content renderer.\n */\n rendererProps?: DeferInfer<P>;\n /**\n * Called when the user explicitly or implicitly cancels(closes) the query dialog.\n * Returning false will block the dialog from closing.\n */\n onCancel: () => boolean | void;\n /**\n * Called when the user explicitly applies the query option conditions.\n * Returning false will block the dialog from closing.\n */\n onSubmit: () => boolean | void;\n}\n\n/** Optionally provide query option presets. */\nexport interface PresetMenuProps extends QueryOption {\n /** Mode defining whether menu selection is single or multi mode. */\n mode?: ExcludeStrict<MenuProps['mode'], 'action'>;\n /** Items of the menu. */\n items: { id: string; text: string; selected: boolean; icon?: string }[];\n /** Callback invoked on item selection. Passes the item id as an argument. */\n onItemClick: MenuProps['onItemClick'];\n}\n\nexport type QueryOptionId = 'filter' | 'sort' | 'group';\n\nexport interface ListToolbarProps extends BaseProps, TestIdProp {\n /** Renders a simple text name of table */\n name: string;\n /**\n * Show the name of the table.\n * @default true\n */\n showName?: boolean;\n /**\n * Uses specific heading tag for header.\n * @default h3\n */\n headingTag?: HeadingTag;\n /** Renders a simple view heading text or view selection menu. */\n viewSelector?: ViewSelectorProps;\n /** Props related to list used as a form control. */\n formControlProps?: Pick<FormControlProps, 'required' | 'additionalInfo' | 'info' | 'status'>;\n /** Props related to new item creation button. */\n createNew?: {\n /** Label of the new item creation button. */\n label?: string;\n /** Callback that will render a Create new button and is fired when that button is clicked. */\n onClick: (e: MouseEvent) => void;\n };\n /** Props related to wrap button. */\n wrap?: {\n /** value which holds the status of the wrap */\n enabled?: boolean;\n /** Callback that will fire to wrap the content when that button is clicked. */\n onClick: (e: MouseEvent) => void;\n };\n /** Props related to the Search Input. */\n search?: SearchInputProps;\n /** Total returned results related for a given search. Optional indication of a selected item count. */\n count?:\n | {\n total: number;\n /**\n * If true renders + next to total number.\n * @default false\n */\n totalHasMore?: boolean;\n selected?: number;\n }\n | {\n selected: number;\n total?: never;\n totalHasMore?: never;\n };\n /** Additional actions region */\n additionalActions?: ReactNode;\n /** Custom Rendering or available presets for filtering. */\n filter?: QueryOptionDialogProps | PresetMenuProps;\n /** Custom Rendering or available presets for sorting. */\n sort?: QueryOptionDialogProps | PresetMenuProps;\n /** Custom Rendering or available presets for grouping. */\n group?: QueryOptionDialogProps | PresetMenuProps;\n /** Top level dataset actions. */\n actions?: Action[];\n /** Ref for the actions button element. */\n actionsButtonRef?: Ref<HTMLButtonElement>;\n /** Ref for the wrapping element. */\n ref?: Ref<HTMLDivElement>;\n}\n"]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PresetMenuPopover.d.ts","sourceRoot":"","sources":["../../../src/components/ListToolbar/PresetMenuPopover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAc,SAAS,EAAW,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"PresetMenuPopover.d.ts","sourceRoot":"","sources":["../../../src/components/ListToolbar/PresetMenuPopover.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,iBAAiB,EAAc,SAAS,EAAW,MAAM,OAAO,CAAC;AAa/E,OAAO,KAAK,EAAE,SAAS,EAA6B,MAAM,oBAAoB,CAAC;AAO/E,MAAM,WAAW,sBAAsB;IACrC,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC,iBAAiB,CAAC,CAAC;IACxC,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,MAAM,EAAE,OAAO,CAAC;IAChB,OAAO,EAAE,MAAM,IAAI,CAAC;CACrB;AAcD,QAAA,MAAM,iBAAiB,EAAE,iBAAiB,CAAC,sBAAsB,CA2FhE,CAAC;AACF,eAAe,iBAAiB,CAAC"}
|