@veeqo/ui 14.11.1 → 14.12.0-beta-1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Action/styles/button.module.scss.cjs +2 -2
- package/dist/components/Action/styles/button.module.scss.cjs.map +1 -1
- package/dist/components/Action/styles/button.module.scss.js +2 -2
- package/dist/components/Action/styles/button.module.scss.js.map +1 -1
- package/dist/components/Action/styles/link.module.scss.cjs +2 -2
- package/dist/components/Action/styles/link.module.scss.cjs.map +1 -1
- package/dist/components/Action/styles/link.module.scss.js +2 -2
- package/dist/components/Action/styles/link.module.scss.js.map +1 -1
- package/dist/components/Action/utils.cjs +18 -13
- package/dist/components/Action/utils.cjs.map +1 -1
- package/dist/components/Action/utils.js +18 -13
- package/dist/components/Action/utils.js.map +1 -1
- package/dist/components/ActionMenu/ActionMenu.cjs +4 -8
- package/dist/components/ActionMenu/ActionMenu.cjs.map +1 -1
- package/dist/components/ActionMenu/ActionMenu.d.ts +3 -3
- package/dist/components/ActionMenu/ActionMenu.js +2 -6
- package/dist/components/ActionMenu/ActionMenu.js.map +1 -1
- package/dist/components/ActionMenu/styled.cjs +17 -0
- package/dist/components/ActionMenu/styled.cjs.map +1 -0
- package/dist/components/ActionMenu/styled.d.ts +3 -0
- package/dist/components/ActionMenu/styled.js +10 -0
- package/dist/components/ActionMenu/styled.js.map +1 -0
- package/dist/components/Badge/Badge.cjs +8 -8
- package/dist/components/Badge/Badge.cjs.map +1 -1
- package/dist/components/Badge/Badge.js +8 -8
- package/dist/components/Badge/Badge.js.map +1 -1
- package/dist/components/Badge/styled.cjs +44 -0
- package/dist/components/Badge/styled.cjs.map +1 -0
- package/dist/components/Badge/styled.d.ts +8 -0
- package/dist/components/Badge/styled.js +36 -0
- package/dist/components/Badge/styled.js.map +1 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.cjs.map +1 -1
- package/dist/components/Breadcrumbs/Breadcrumbs.js +2 -2
- package/dist/components/Breadcrumbs/Breadcrumbs.js.map +1 -1
- package/dist/components/Breadcrumbs/components/Breadcrumb.cjs +3 -3
- package/dist/components/Breadcrumbs/components/Breadcrumb.cjs.map +1 -1
- package/dist/components/Breadcrumbs/components/Breadcrumb.js +3 -3
- package/dist/components/Breadcrumbs/components/Breadcrumb.js.map +1 -1
- package/dist/components/Breadcrumbs/components/styled.cjs +15 -0
- package/dist/components/Breadcrumbs/components/styled.cjs.map +1 -0
- package/dist/components/Breadcrumbs/components/styled.d.ts +2 -0
- package/dist/components/Breadcrumbs/components/styled.js +8 -0
- package/dist/components/Breadcrumbs/components/styled.js.map +1 -0
- package/dist/components/Button/Button.cjs +35 -39
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.ts +7 -15
- package/dist/components/Button/Button.js +35 -39
- package/dist/components/Button/Button.js.map +1 -1
- package/dist/components/Button/types.d.ts +7 -16
- package/dist/components/Calendars/components/Calendar/Calendar.cjs +2 -3
- package/dist/components/Calendars/components/Calendar/Calendar.cjs.map +1 -1
- package/dist/components/Calendars/components/Calendar/Calendar.js +2 -3
- package/dist/components/Calendars/components/Calendar/Calendar.js.map +1 -1
- package/dist/components/Calendars/components/Calendar/styled.cjs +14 -0
- package/dist/components/Calendars/components/Calendar/styled.cjs.map +1 -0
- package/dist/components/Calendars/components/Calendar/styled.d.ts +2 -0
- package/dist/components/Calendars/components/Calendar/styled.js +8 -0
- package/dist/components/Calendars/components/Calendar/styled.js.map +1 -0
- package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.cjs +2 -3
- package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.cjs.map +1 -1
- package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.js +2 -3
- package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.js.map +1 -1
- package/dist/components/Calendars/components/RangeCalendar/styled.cjs +14 -0
- package/dist/components/Calendars/components/RangeCalendar/styled.cjs.map +1 -0
- package/dist/components/Calendars/components/RangeCalendar/styled.d.ts +2 -0
- package/dist/components/Calendars/components/RangeCalendar/styled.js +8 -0
- package/dist/components/Calendars/components/RangeCalendar/styled.js.map +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/DodecadeCalendar.cjs +2 -2
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/DodecadeCalendar.cjs.map +1 -1
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/DodecadeCalendar.js +2 -2
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/DodecadeCalendar.js.map +1 -1
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/YearCalendar.cjs +2 -2
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/YearCalendar.cjs.map +1 -1
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/YearCalendar.js +2 -2
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/YearCalendar.js.map +1 -1
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/styled.cjs +14 -0
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/styled.cjs.map +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/styled.d.ts +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/styled.js +8 -0
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/styled.js.map +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/CalendarStyles.cjs +12 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/CalendarStyles.cjs.map +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/CalendarStyles.d.ts +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/CalendarStyles.js +10 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/CalendarStyles.js.map +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/buttonStyles.cjs +9 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/buttonStyles.cjs.map +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/buttonStyles.d.ts +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/buttonStyles.js +7 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/buttonStyles.js.map +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/calendarCellStyles.cjs +9 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/calendarCellStyles.cjs.map +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/calendarCellStyles.d.ts +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/calendarCellStyles.js +7 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/calendarCellStyles.js.map +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/headerStyles.cjs +10 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/headerStyles.cjs.map +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/headerStyles.d.ts +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/headerStyles.js +8 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/headerStyles.js.map +1 -0
- package/dist/components/Calendars/components/subcomponents/CalendarStyles/index.d.ts +1 -0
- package/dist/components/CardHeader/CardHeader.cjs +1 -1
- package/dist/components/CardHeader/CardHeader.cjs.map +1 -1
- package/dist/components/CardHeader/CardHeader.js +1 -1
- package/dist/components/CardHeader/CardHeader.js.map +1 -1
- package/dist/components/CardHeader/CardHeader.module.scss.cjs +2 -2
- package/dist/components/CardHeader/CardHeader.module.scss.cjs.map +1 -1
- package/dist/components/CardHeader/CardHeader.module.scss.js +2 -2
- package/dist/components/CardHeader/CardHeader.module.scss.js.map +1 -1
- package/dist/components/CopyToClipboard/CopyToClipboard.cjs +8 -3
- package/dist/components/CopyToClipboard/CopyToClipboard.cjs.map +1 -1
- package/dist/components/CopyToClipboard/CopyToClipboard.js +7 -3
- package/dist/components/CopyToClipboard/CopyToClipboard.js.map +1 -1
- package/dist/components/DateInputField/DateInputField.cjs +5 -3
- package/dist/components/DateInputField/DateInputField.cjs.map +1 -1
- package/dist/components/DateInputField/DateInputField.js +6 -4
- package/dist/components/DateInputField/DateInputField.js.map +1 -1
- package/dist/components/DateInputField/styled.cjs +15 -0
- package/dist/components/DateInputField/styled.cjs.map +1 -0
- package/dist/components/DateInputField/styled.d.ts +3 -0
- package/dist/components/DateInputField/styled.js +9 -0
- package/dist/components/DateInputField/styled.js.map +1 -0
- package/dist/components/DateInputField/types.d.ts +3 -3
- package/dist/components/DatePicker/DatePicker.cjs +5 -3
- package/dist/components/DatePicker/DatePicker.cjs.map +1 -1
- package/dist/components/DatePicker/DatePicker.js +5 -3
- package/dist/components/DatePicker/DatePicker.js.map +1 -1
- package/dist/components/DatePicker/styled.cjs +14 -0
- package/dist/components/DatePicker/styled.cjs.map +1 -0
- package/dist/components/DatePicker/styled.d.ts +1 -0
- package/dist/components/DatePicker/styled.js +8 -0
- package/dist/components/DatePicker/styled.js.map +1 -0
- package/dist/components/DateRangePicker/DateRangePicker.cjs +3 -3
- package/dist/components/DateRangePicker/DateRangePicker.cjs.map +1 -1
- package/dist/components/DateRangePicker/DateRangePicker.js +3 -3
- package/dist/components/DateRangePicker/DateRangePicker.js.map +1 -1
- package/dist/components/DateRangePicker/components/Divider.cjs +4 -4
- package/dist/components/DateRangePicker/components/Divider.cjs.map +1 -1
- package/dist/components/DateRangePicker/components/Divider.d.ts +1 -2
- package/dist/components/DateRangePicker/components/Divider.js +3 -3
- package/dist/components/DateRangePicker/components/Divider.js.map +1 -1
- package/dist/components/DescriptionList/DescriptionList.cjs +17 -9
- package/dist/components/DescriptionList/DescriptionList.cjs.map +1 -1
- package/dist/components/DescriptionList/DescriptionList.js +16 -9
- package/dist/components/DescriptionList/DescriptionList.js.map +1 -1
- package/dist/components/DetailPage/DetailPage.cjs +3 -7
- package/dist/components/DetailPage/DetailPage.cjs.map +1 -1
- package/dist/components/DetailPage/DetailPage.js +3 -7
- package/dist/components/DetailPage/DetailPage.js.map +1 -1
- package/dist/components/DetailPage/styled.cjs +16 -0
- package/dist/components/DetailPage/styled.cjs.map +1 -0
- package/dist/components/DetailPage/styled.d.ts +2 -0
- package/dist/components/DetailPage/styled.js +9 -0
- package/dist/components/DetailPage/styled.js.map +1 -0
- package/dist/components/FilterTag/FilterTag.cjs +9 -16
- package/dist/components/FilterTag/FilterTag.cjs.map +1 -1
- package/dist/components/FilterTag/FilterTag.js +9 -16
- package/dist/components/FilterTag/FilterTag.js.map +1 -1
- package/dist/components/FilterTag/styled.cjs +37 -0
- package/dist/components/FilterTag/styled.cjs.map +1 -0
- package/dist/components/FilterTag/styled.d.ts +20 -0
- package/dist/components/FilterTag/styled.js +25 -0
- package/dist/components/FilterTag/styled.js.map +1 -0
- package/dist/components/Indicator/Indicator.cjs +5 -12
- package/dist/components/Indicator/Indicator.cjs.map +1 -1
- package/dist/components/Indicator/Indicator.d.ts +1 -1
- package/dist/components/Indicator/Indicator.js +5 -12
- package/dist/components/Indicator/Indicator.js.map +1 -1
- package/dist/components/Indicator/styled.cjs +28 -0
- package/dist/components/Indicator/styled.cjs.map +1 -0
- package/dist/components/Indicator/styled.d.ts +3 -0
- package/dist/components/Indicator/styled.js +22 -0
- package/dist/components/Indicator/styled.js.map +1 -0
- package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.cjs +2 -2
- package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.cjs.map +1 -1
- package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.js +2 -2
- package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.js.map +1 -1
- package/dist/components/LoginWithAmazonButton/styled.cjs +12 -0
- package/dist/components/LoginWithAmazonButton/styled.cjs.map +1 -0
- package/dist/components/LoginWithAmazonButton/styled.d.ts +1 -0
- package/dist/components/LoginWithAmazonButton/styled.js +6 -0
- package/dist/components/LoginWithAmazonButton/styled.js.map +1 -0
- package/dist/components/Pagination/Pagination.cjs +6 -8
- package/dist/components/Pagination/Pagination.cjs.map +1 -1
- package/dist/components/Pagination/Pagination.js +6 -8
- package/dist/components/Pagination/Pagination.js.map +1 -1
- package/dist/components/Pagination/components.cjs +2 -3
- package/dist/components/Pagination/components.cjs.map +1 -1
- package/dist/components/Pagination/components.js +2 -3
- package/dist/components/Pagination/components.js.map +1 -1
- package/dist/components/Pagination/styled.cjs +20 -0
- package/dist/components/Pagination/styled.cjs.map +1 -0
- package/dist/components/Pagination/styled.d.ts +317 -0
- package/dist/components/Pagination/styled.js +12 -0
- package/dist/components/Pagination/styled.js.map +1 -0
- package/dist/components/SegmentedControl/SegmentedControl.cjs +2 -3
- package/dist/components/SegmentedControl/SegmentedControl.cjs.map +1 -1
- package/dist/components/SegmentedControl/SegmentedControl.js +2 -3
- package/dist/components/SegmentedControl/SegmentedControl.js.map +1 -1
- package/dist/components/SegmentedControl/styled.cjs +17 -0
- package/dist/components/SegmentedControl/styled.cjs.map +1 -0
- package/dist/components/SegmentedControl/styled.d.ts +2 -0
- package/dist/components/SegmentedControl/styled.js +11 -0
- package/dist/components/SegmentedControl/styled.js.map +1 -0
- package/dist/components/SelectDropdown/SelectDropdown.cjs.map +1 -1
- package/dist/components/SelectDropdown/SelectDropdown.js.map +1 -1
- package/dist/components/ShortcutKeys/ShortcutKeys.cjs +5 -6
- package/dist/components/ShortcutKeys/ShortcutKeys.cjs.map +1 -1
- package/dist/components/ShortcutKeys/ShortcutKeys.js +5 -6
- package/dist/components/ShortcutKeys/ShortcutKeys.js.map +1 -1
- package/dist/components/ShortcutKeys/styled.cjs +15 -0
- package/dist/components/ShortcutKeys/styled.cjs.map +1 -0
- package/dist/components/ShortcutKeys/styled.d.ts +3 -0
- package/dist/components/ShortcutKeys/styled.js +8 -0
- package/dist/components/ShortcutKeys/styled.js.map +1 -0
- package/dist/components/VideoModal/styled.d.ts +1 -6
- package/dist/utils/forms/inputStyles.cjs +34 -0
- package/dist/utils/forms/inputStyles.cjs.map +1 -0
- package/dist/utils/forms/inputStyles.js +30 -0
- package/dist/utils/forms/inputStyles.js.map +1 -0
- package/dist/utils/forms/variables.cjs +16 -0
- package/dist/utils/forms/variables.cjs.map +1 -0
- package/dist/utils/forms/variables.js +14 -0
- package/dist/utils/forms/variables.js.map +1 -0
- package/package.json +1 -1
- package/dist/components/ActionMenu/ActionMenu.module.scss.cjs +0 -9
- package/dist/components/ActionMenu/ActionMenu.module.scss.cjs.map +0 -1
- package/dist/components/ActionMenu/ActionMenu.module.scss.js +0 -7
- package/dist/components/ActionMenu/ActionMenu.module.scss.js.map +0 -1
- package/dist/components/Badge/Badge.module.scss.cjs +0 -9
- package/dist/components/Badge/Badge.module.scss.cjs.map +0 -1
- package/dist/components/Badge/Badge.module.scss.js +0 -7
- package/dist/components/Badge/Badge.module.scss.js.map +0 -1
- package/dist/components/Breadcrumbs/components/Breadcrumbs.module.scss.cjs +0 -9
- package/dist/components/Breadcrumbs/components/Breadcrumbs.module.scss.cjs.map +0 -1
- package/dist/components/Breadcrumbs/components/Breadcrumbs.module.scss.js +0 -7
- package/dist/components/Breadcrumbs/components/Breadcrumbs.module.scss.js.map +0 -1
- package/dist/components/Button/Button.module.scss.cjs +0 -9
- package/dist/components/Button/Button.module.scss.cjs.map +0 -1
- package/dist/components/Button/Button.module.scss.js +0 -7
- package/dist/components/Button/Button.module.scss.js.map +0 -1
- package/dist/components/Calendars/components/Calendar/Calendar.module.scss.cjs +0 -9
- package/dist/components/Calendars/components/Calendar/Calendar.module.scss.cjs.map +0 -1
- package/dist/components/Calendars/components/Calendar/Calendar.module.scss.js +0 -7
- package/dist/components/Calendars/components/Calendar/Calendar.module.scss.js.map +0 -1
- package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.module.scss.cjs +0 -9
- package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.module.scss.cjs.map +0 -1
- package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.module.scss.js +0 -7
- package/dist/components/Calendars/components/RangeCalendar/RangeCalendar.module.scss.js.map +0 -1
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/SubCalendarOption.module.scss.cjs +0 -9
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/SubCalendarOption.module.scss.cjs.map +0 -1
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/SubCalendarOption.module.scss.js +0 -7
- package/dist/components/Calendars/components/subcomponents/CalendarGrid/subCalendars/SubCalendarOption.module.scss.js.map +0 -1
- package/dist/components/CopyToClipboard/CopyToClipboard.module.scss.cjs +0 -9
- package/dist/components/CopyToClipboard/CopyToClipboard.module.scss.cjs.map +0 -1
- package/dist/components/CopyToClipboard/CopyToClipboard.module.scss.js +0 -7
- package/dist/components/CopyToClipboard/CopyToClipboard.module.scss.js.map +0 -1
- package/dist/components/DateInputField/DateInputField.module.scss.cjs +0 -9
- package/dist/components/DateInputField/DateInputField.module.scss.cjs.map +0 -1
- package/dist/components/DateInputField/DateInputField.module.scss.js +0 -7
- package/dist/components/DateInputField/DateInputField.module.scss.js.map +0 -1
- package/dist/components/DatePicker/DatePicker.module.scss.cjs +0 -9
- package/dist/components/DatePicker/DatePicker.module.scss.cjs.map +0 -1
- package/dist/components/DatePicker/DatePicker.module.scss.js +0 -7
- package/dist/components/DatePicker/DatePicker.module.scss.js.map +0 -1
- package/dist/components/DateRangePicker/components/Divider.module.scss.cjs +0 -9
- package/dist/components/DateRangePicker/components/Divider.module.scss.cjs.map +0 -1
- package/dist/components/DateRangePicker/components/Divider.module.scss.js +0 -7
- package/dist/components/DateRangePicker/components/Divider.module.scss.js.map +0 -1
- package/dist/components/DescriptionList/DescriptionList.module.scss.cjs +0 -9
- package/dist/components/DescriptionList/DescriptionList.module.scss.cjs.map +0 -1
- package/dist/components/DescriptionList/DescriptionList.module.scss.js +0 -7
- package/dist/components/DescriptionList/DescriptionList.module.scss.js.map +0 -1
- package/dist/components/DetailPage/DetailPage.module.scss.cjs +0 -9
- package/dist/components/DetailPage/DetailPage.module.scss.cjs.map +0 -1
- package/dist/components/DetailPage/DetailPage.module.scss.js +0 -7
- package/dist/components/DetailPage/DetailPage.module.scss.js.map +0 -1
- package/dist/components/FilterTag/FilterTag.module.scss.cjs +0 -9
- package/dist/components/FilterTag/FilterTag.module.scss.cjs.map +0 -1
- package/dist/components/FilterTag/FilterTag.module.scss.js +0 -7
- package/dist/components/FilterTag/FilterTag.module.scss.js.map +0 -1
- package/dist/components/Indicator/Indicator.module.scss.cjs +0 -9
- package/dist/components/Indicator/Indicator.module.scss.cjs.map +0 -1
- package/dist/components/Indicator/Indicator.module.scss.js +0 -7
- package/dist/components/Indicator/Indicator.module.scss.js.map +0 -1
- package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.module.scss.cjs +0 -9
- package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.module.scss.cjs.map +0 -1
- package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.module.scss.js +0 -7
- package/dist/components/LoginWithAmazonButton/LoginWithAmazonButton.module.scss.js.map +0 -1
- package/dist/components/Pagination/Pagination.module.scss.cjs +0 -9
- package/dist/components/Pagination/Pagination.module.scss.cjs.map +0 -1
- package/dist/components/Pagination/Pagination.module.scss.js +0 -7
- package/dist/components/Pagination/Pagination.module.scss.js.map +0 -1
- package/dist/components/SegmentedControl/SegmentedControl.module.scss.cjs +0 -9
- package/dist/components/SegmentedControl/SegmentedControl.module.scss.cjs.map +0 -1
- package/dist/components/SegmentedControl/SegmentedControl.module.scss.js +0 -7
- package/dist/components/SegmentedControl/SegmentedControl.module.scss.js.map +0 -1
- package/dist/components/ShortcutKeys/ShortcutKeys.module.scss.cjs +0 -9
- package/dist/components/ShortcutKeys/ShortcutKeys.module.scss.cjs.map +0 -1
- package/dist/components/ShortcutKeys/ShortcutKeys.module.scss.js +0 -7
- package/dist/components/ShortcutKeys/ShortcutKeys.module.scss.js.map +0 -1
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styled = require('styled-components');
|
|
4
|
+
var index = require('../../theme/index.cjs');
|
|
5
|
+
var FlexRow = require('../Flex/FlexRow/FlexRow.cjs');
|
|
6
|
+
var Button = require('../Button/Button.cjs');
|
|
7
|
+
var index$1 = require('../TextField/index.cjs');
|
|
8
|
+
|
|
9
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
10
|
+
|
|
11
|
+
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
12
|
+
|
|
13
|
+
const PageLimitContainer = styled__default.default(FlexRow.FlexRow).withConfig({ displayName: "vui--PageLimitContainer", componentId: "vui--11yg0z2" }) `box-sizing:border-box;min-width:${index.theme.sizes[10]};height:${index.theme.sizes.lg};padding:0 ${index.theme.sizes[3]};background-color:${index.theme.colors.neutral.grey.light};border:1px solid ${index.theme.colors.neutral.grey.dark};border-radius:${index.theme.sizes.xs};`;
|
|
14
|
+
const PaginationButton = styled__default.default(Button.Button).withConfig({ displayName: "vui--PaginationButton", componentId: "vui--1xoa6c5" }) `color:${index.theme.colors.neutral.ink.base};width:${index.theme.sizes.lg};height:${index.theme.sizes.lg};svg{width:${index.theme.sizes.md};height:${index.theme.sizes.md};}`;
|
|
15
|
+
const PageInput = styled__default.default(index$1.TextField).withConfig({ displayName: "vui--PageInput", componentId: "vui--vpfeol" }) `&[type='number']{min-width:auto;}`;
|
|
16
|
+
|
|
17
|
+
exports.PageInput = PageInput;
|
|
18
|
+
exports.PageLimitContainer = PageLimitContainer;
|
|
19
|
+
exports.PaginationButton = PaginationButton;
|
|
20
|
+
//# sourceMappingURL=styled.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.cjs","sources":["../../../src/components/Pagination/styled.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { theme } from '../../theme';\nimport { FlexRow } from '../Flex/FlexRow';\nimport { Button } from '../Button';\nimport { TextField } from '../TextField';\n\nexport const PageLimitContainer = styled(FlexRow)`\n box-sizing: border-box;\n min-width: ${theme.sizes[10]};\n height: ${theme.sizes.lg};\n padding: 0 ${theme.sizes[3]};\n background-color: ${theme.colors.neutral.grey.light};\n border: 1px solid ${theme.colors.neutral.grey.dark};\n border-radius: ${theme.sizes.xs};\n`;\n\nexport const PaginationButton = styled(Button)`\n color: ${theme.colors.neutral.ink.base};\n // TODO: Remove these style overrides when the Button component is updated match the design system\n width: ${theme.sizes.lg};\n height: ${theme.sizes.lg};\n\n svg {\n width: ${theme.sizes.md};\n height: ${theme.sizes.md};\n }\n`;\n\nexport const PageInput = styled(TextField)`\n &[type='number'] {\n min-width: auto;\n }\n`;\n"],"names":["styled","FlexRow","theme","Button","TextField"],"mappings":";;;;;;;;;;;;AAMO,MAAM,kBAAkB,GAAGA,uBAAM,CAACC,eAAO,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,yBAAA,EAAA,WAAA,EAAA,cAAA,EAAA,CAAA,CAAA,CAAA,gCAAA,EAElCC,WAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA,QAAA,EAClBA,WAAK,CAAC,KAAK,CAAC,EAAE,CAAA,WAAA,EACXA,WAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA,kBAAA,EACPA,WAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAA,kBAAA,EAC/BA,WAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAA,EACjCA,WAAK,CAAC,KAAK,CAAC,EAAE,CAAA,CAAA;AAG1B,MAAM,gBAAgB,GAAGF,uBAAM,CAACG,aAAM,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,uBAAA,EAAA,WAAA,EAAA,cAAA,EAAA,CAAA,CAAA,CAAA,MAAA,EACnCD,WAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,UAE7BA,WAAK,CAAC,KAAK,CAAC,EAAE,WACbA,WAAK,CAAC,KAAK,CAAC,EAAE,cAGbA,WAAK,CAAC,KAAK,CAAC,EAAE,WACbA,WAAK,CAAC,KAAK,CAAC,EAAE;MAIf,SAAS,GAAGF,uBAAM,CAACI,iBAAS,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,iCAAA;;;;;;"}
|
|
@@ -0,0 +1,317 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const PageLimitContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<{
|
|
3
|
+
alignItems?: ("baseline" | "center" | "flex-start" | "flex-end" | "stretch") | undefined;
|
|
4
|
+
justifyContent?: ("center" | "flex-start" | "flex-end" | "space-between" | "space-around" | "space-evenly") | undefined;
|
|
5
|
+
gap?: keyof import("../../theme/modules/sizes").SizeScale | undefined;
|
|
6
|
+
flexWrap?: ("nowrap" | "wrap" | "wrap-reverse") | undefined;
|
|
7
|
+
flexGrow?: import("csstype").Property.FlexGrow | undefined;
|
|
8
|
+
} & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
9
|
+
export declare const PaginationButton: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<import("react").ButtonHTMLAttributes<HTMLButtonElement> & import("../../hoc/withTokens").WithTokensProps & {
|
|
10
|
+
children?: import("react").ReactNode;
|
|
11
|
+
variant?: import("../Button/types").ButtonVariant | undefined;
|
|
12
|
+
size?: import("../Button/types").ButtonSize | undefined;
|
|
13
|
+
iconSlot?: import("react").ReactElement<any, string | import("react").JSXElementConstructor<any>> | undefined;
|
|
14
|
+
dropdown?: boolean | undefined;
|
|
15
|
+
loading?: boolean | undefined;
|
|
16
|
+
} & import("react").RefAttributes<HTMLButtonElement>, "ref"> & import("../../hoc/withTokens").WithTokensProps & import("react").RefAttributes<HTMLButtonElement>>, any, {}, never>;
|
|
17
|
+
export declare const PageInput: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<Omit<{
|
|
18
|
+
rel?: string | undefined;
|
|
19
|
+
placeholder?: string | undefined;
|
|
20
|
+
form?: string | undefined;
|
|
21
|
+
slot?: string | undefined;
|
|
22
|
+
style?: import("react").CSSProperties | undefined;
|
|
23
|
+
title?: string | undefined;
|
|
24
|
+
pattern?: string | undefined;
|
|
25
|
+
list?: string | undefined;
|
|
26
|
+
className?: string | undefined;
|
|
27
|
+
children?: import("react").ReactNode;
|
|
28
|
+
defaultChecked?: boolean | undefined;
|
|
29
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
30
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
31
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
32
|
+
accessKey?: string | undefined;
|
|
33
|
+
autoFocus?: boolean | undefined;
|
|
34
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
35
|
+
contextMenu?: string | undefined;
|
|
36
|
+
dir?: string | undefined;
|
|
37
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
38
|
+
hidden?: boolean | undefined;
|
|
39
|
+
id?: string | undefined;
|
|
40
|
+
lang?: string | undefined;
|
|
41
|
+
nonce?: string | undefined;
|
|
42
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
43
|
+
tabIndex?: number | undefined;
|
|
44
|
+
translate?: "yes" | "no" | undefined;
|
|
45
|
+
radioGroup?: string | undefined;
|
|
46
|
+
role?: import("react").AriaRole | undefined;
|
|
47
|
+
about?: string | undefined;
|
|
48
|
+
content?: string | undefined;
|
|
49
|
+
datatype?: string | undefined;
|
|
50
|
+
inlist?: any;
|
|
51
|
+
prefix?: string | undefined;
|
|
52
|
+
property?: string | undefined;
|
|
53
|
+
resource?: string | undefined;
|
|
54
|
+
rev?: string | undefined;
|
|
55
|
+
typeof?: string | undefined;
|
|
56
|
+
vocab?: string | undefined;
|
|
57
|
+
autoCapitalize?: string | undefined;
|
|
58
|
+
autoCorrect?: string | undefined;
|
|
59
|
+
autoSave?: string | undefined;
|
|
60
|
+
color?: string | undefined;
|
|
61
|
+
itemProp?: string | undefined;
|
|
62
|
+
itemScope?: boolean | undefined;
|
|
63
|
+
itemType?: string | undefined;
|
|
64
|
+
itemID?: string | undefined;
|
|
65
|
+
itemRef?: string | undefined;
|
|
66
|
+
results?: number | undefined;
|
|
67
|
+
security?: string | undefined;
|
|
68
|
+
unselectable?: "on" | "off" | undefined;
|
|
69
|
+
inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
|
|
70
|
+
is?: string | undefined;
|
|
71
|
+
'aria-activedescendant'?: string | undefined;
|
|
72
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
73
|
+
'aria-autocomplete'?: "list" | "none" | "inline" | "both" | undefined;
|
|
74
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
75
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
76
|
+
'aria-colcount'?: number | undefined;
|
|
77
|
+
'aria-colindex'?: number | undefined;
|
|
78
|
+
'aria-colspan'?: number | undefined;
|
|
79
|
+
'aria-controls'?: string | undefined;
|
|
80
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
81
|
+
'aria-describedby'?: string | undefined;
|
|
82
|
+
'aria-details'?: string | undefined;
|
|
83
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
84
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
|
|
85
|
+
'aria-errormessage'?: string | undefined;
|
|
86
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
87
|
+
'aria-flowto'?: string | undefined;
|
|
88
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
89
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
90
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
91
|
+
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
92
|
+
'aria-keyshortcuts'?: string | undefined;
|
|
93
|
+
'aria-label'?: string | undefined;
|
|
94
|
+
'aria-labelledby'?: string | undefined;
|
|
95
|
+
'aria-level'?: number | undefined;
|
|
96
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
97
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
98
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
99
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
100
|
+
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
101
|
+
'aria-owns'?: string | undefined;
|
|
102
|
+
'aria-placeholder'?: string | undefined;
|
|
103
|
+
'aria-posinset'?: number | undefined;
|
|
104
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
105
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
106
|
+
'aria-relevant'?: "text" | "all" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
107
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
108
|
+
'aria-roledescription'?: string | undefined;
|
|
109
|
+
'aria-rowcount'?: number | undefined;
|
|
110
|
+
'aria-rowindex'?: number | undefined;
|
|
111
|
+
'aria-rowspan'?: number | undefined;
|
|
112
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
113
|
+
'aria-setsize'?: number | undefined;
|
|
114
|
+
'aria-sort'?: "other" | "none" | "ascending" | "descending" | undefined;
|
|
115
|
+
'aria-valuemax'?: number | undefined;
|
|
116
|
+
'aria-valuemin'?: number | undefined;
|
|
117
|
+
'aria-valuenow'?: number | undefined;
|
|
118
|
+
'aria-valuetext'?: string | undefined;
|
|
119
|
+
dangerouslySetInnerHTML?: {
|
|
120
|
+
__html: string | TrustedHTML;
|
|
121
|
+
} | undefined;
|
|
122
|
+
onCopy?: (import("react").ClipboardEventHandler<HTMLInputElement> & import("react").ClipboardEventHandler<HTMLTextAreaElement>) | undefined;
|
|
123
|
+
onCopyCapture?: (import("react").ClipboardEventHandler<HTMLInputElement> & import("react").ClipboardEventHandler<HTMLTextAreaElement>) | undefined;
|
|
124
|
+
onCut?: (import("react").ClipboardEventHandler<HTMLInputElement> & import("react").ClipboardEventHandler<HTMLTextAreaElement>) | undefined;
|
|
125
|
+
onCutCapture?: (import("react").ClipboardEventHandler<HTMLInputElement> & import("react").ClipboardEventHandler<HTMLTextAreaElement>) | undefined;
|
|
126
|
+
onPaste?: (import("react").ClipboardEventHandler<HTMLInputElement> & import("react").ClipboardEventHandler<HTMLTextAreaElement>) | undefined;
|
|
127
|
+
onPasteCapture?: (import("react").ClipboardEventHandler<HTMLInputElement> & import("react").ClipboardEventHandler<HTMLTextAreaElement>) | undefined;
|
|
128
|
+
onCompositionEnd?: (import("react").CompositionEventHandler<HTMLInputElement> & import("react").CompositionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
129
|
+
onCompositionEndCapture?: (import("react").CompositionEventHandler<HTMLInputElement> & import("react").CompositionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
130
|
+
onCompositionStart?: (import("react").CompositionEventHandler<HTMLInputElement> & import("react").CompositionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
131
|
+
onCompositionStartCapture?: (import("react").CompositionEventHandler<HTMLInputElement> & import("react").CompositionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
132
|
+
onCompositionUpdate?: (import("react").CompositionEventHandler<HTMLInputElement> & import("react").CompositionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
133
|
+
onCompositionUpdateCapture?: (import("react").CompositionEventHandler<HTMLInputElement> & import("react").CompositionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
134
|
+
onFocus?: (import("react").FocusEventHandler<HTMLInputElement> & import("react").FocusEventHandler<HTMLTextAreaElement>) | undefined;
|
|
135
|
+
onFocusCapture?: (import("react").FocusEventHandler<HTMLInputElement> & import("react").FocusEventHandler<HTMLTextAreaElement>) | undefined;
|
|
136
|
+
onBlur?: (import("react").FocusEventHandler<HTMLInputElement> & import("react").FocusEventHandler<HTMLTextAreaElement>) | undefined;
|
|
137
|
+
onBlurCapture?: (import("react").FocusEventHandler<HTMLInputElement> & import("react").FocusEventHandler<HTMLTextAreaElement>) | undefined;
|
|
138
|
+
onChangeCapture?: (import("react").FormEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLTextAreaElement>) | undefined;
|
|
139
|
+
onBeforeInput?: (import("react").FormEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLTextAreaElement>) | undefined;
|
|
140
|
+
onBeforeInputCapture?: (import("react").FormEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLTextAreaElement>) | undefined;
|
|
141
|
+
onInput?: (import("react").FormEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLTextAreaElement>) | undefined;
|
|
142
|
+
onInputCapture?: (import("react").FormEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLTextAreaElement>) | undefined;
|
|
143
|
+
onReset?: (import("react").FormEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLTextAreaElement>) | undefined;
|
|
144
|
+
onResetCapture?: (import("react").FormEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLTextAreaElement>) | undefined;
|
|
145
|
+
onSubmit?: (import("react").FormEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLTextAreaElement>) | undefined;
|
|
146
|
+
onSubmitCapture?: (import("react").FormEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLTextAreaElement>) | undefined;
|
|
147
|
+
onInvalid?: (import("react").FormEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLTextAreaElement>) | undefined;
|
|
148
|
+
onInvalidCapture?: (import("react").FormEventHandler<HTMLInputElement> & import("react").FormEventHandler<HTMLTextAreaElement>) | undefined;
|
|
149
|
+
onLoad?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
150
|
+
onLoadCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
151
|
+
onError?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
152
|
+
onErrorCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
153
|
+
onKeyDown?: (import("react").KeyboardEventHandler<HTMLInputElement> & import("react").KeyboardEventHandler<HTMLTextAreaElement>) | undefined;
|
|
154
|
+
onKeyDownCapture?: (import("react").KeyboardEventHandler<HTMLInputElement> & import("react").KeyboardEventHandler<HTMLTextAreaElement>) | undefined;
|
|
155
|
+
onKeyPress?: (import("react").KeyboardEventHandler<HTMLInputElement> & import("react").KeyboardEventHandler<HTMLTextAreaElement>) | undefined;
|
|
156
|
+
onKeyPressCapture?: (import("react").KeyboardEventHandler<HTMLInputElement> & import("react").KeyboardEventHandler<HTMLTextAreaElement>) | undefined;
|
|
157
|
+
onKeyUp?: (import("react").KeyboardEventHandler<HTMLInputElement> & import("react").KeyboardEventHandler<HTMLTextAreaElement>) | undefined;
|
|
158
|
+
onKeyUpCapture?: (import("react").KeyboardEventHandler<HTMLInputElement> & import("react").KeyboardEventHandler<HTMLTextAreaElement>) | undefined;
|
|
159
|
+
onAbort?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
160
|
+
onAbortCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
161
|
+
onCanPlay?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
162
|
+
onCanPlayCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
163
|
+
onCanPlayThrough?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
164
|
+
onCanPlayThroughCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
165
|
+
onDurationChange?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
166
|
+
onDurationChangeCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
167
|
+
onEmptied?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
168
|
+
onEmptiedCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
169
|
+
onEncrypted?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
170
|
+
onEncryptedCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
171
|
+
onEnded?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
172
|
+
onEndedCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
173
|
+
onLoadedData?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
174
|
+
onLoadedDataCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
175
|
+
onLoadedMetadata?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
176
|
+
onLoadedMetadataCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
177
|
+
onLoadStart?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
178
|
+
onLoadStartCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
179
|
+
onPause?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
180
|
+
onPauseCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
181
|
+
onPlay?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
182
|
+
onPlayCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
183
|
+
onPlaying?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
184
|
+
onPlayingCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
185
|
+
onProgress?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
186
|
+
onProgressCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
187
|
+
onRateChange?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
188
|
+
onRateChangeCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
189
|
+
onSeeked?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
190
|
+
onSeekedCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
191
|
+
onSeeking?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
192
|
+
onSeekingCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
193
|
+
onStalled?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
194
|
+
onStalledCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
195
|
+
onSuspend?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
196
|
+
onSuspendCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
197
|
+
onTimeUpdate?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
198
|
+
onTimeUpdateCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
199
|
+
onVolumeChange?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
200
|
+
onVolumeChangeCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
201
|
+
onWaiting?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
202
|
+
onWaitingCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
203
|
+
onAuxClick?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
204
|
+
onAuxClickCapture?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
205
|
+
onClick?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
206
|
+
onClickCapture?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
207
|
+
onContextMenu?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
208
|
+
onContextMenuCapture?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
209
|
+
onDoubleClick?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
210
|
+
onDoubleClickCapture?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
211
|
+
onDrag?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
212
|
+
onDragCapture?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
213
|
+
onDragEnd?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
214
|
+
onDragEndCapture?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
215
|
+
onDragEnter?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
216
|
+
onDragEnterCapture?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
217
|
+
onDragExit?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
218
|
+
onDragExitCapture?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
219
|
+
onDragLeave?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
220
|
+
onDragLeaveCapture?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
221
|
+
onDragOver?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
222
|
+
onDragOverCapture?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
223
|
+
onDragStart?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
224
|
+
onDragStartCapture?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
225
|
+
onDrop?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
226
|
+
onDropCapture?: (import("react").DragEventHandler<HTMLInputElement> & import("react").DragEventHandler<HTMLTextAreaElement>) | undefined;
|
|
227
|
+
onMouseDown?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
228
|
+
onMouseDownCapture?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
229
|
+
onMouseEnter?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
230
|
+
onMouseLeave?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
231
|
+
onMouseMove?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
232
|
+
onMouseMoveCapture?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
233
|
+
onMouseOut?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
234
|
+
onMouseOutCapture?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
235
|
+
onMouseOver?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
236
|
+
onMouseOverCapture?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
237
|
+
onMouseUp?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
238
|
+
onMouseUpCapture?: (import("react").MouseEventHandler<HTMLInputElement> & import("react").MouseEventHandler<HTMLTextAreaElement>) | undefined;
|
|
239
|
+
onSelect?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
240
|
+
onSelectCapture?: (import("react").ReactEventHandler<HTMLInputElement> & import("react").ReactEventHandler<HTMLTextAreaElement>) | undefined;
|
|
241
|
+
onTouchCancel?: (import("react").TouchEventHandler<HTMLInputElement> & import("react").TouchEventHandler<HTMLTextAreaElement>) | undefined;
|
|
242
|
+
onTouchCancelCapture?: (import("react").TouchEventHandler<HTMLInputElement> & import("react").TouchEventHandler<HTMLTextAreaElement>) | undefined;
|
|
243
|
+
onTouchEnd?: (import("react").TouchEventHandler<HTMLInputElement> & import("react").TouchEventHandler<HTMLTextAreaElement>) | undefined;
|
|
244
|
+
onTouchEndCapture?: (import("react").TouchEventHandler<HTMLInputElement> & import("react").TouchEventHandler<HTMLTextAreaElement>) | undefined;
|
|
245
|
+
onTouchMove?: (import("react").TouchEventHandler<HTMLInputElement> & import("react").TouchEventHandler<HTMLTextAreaElement>) | undefined;
|
|
246
|
+
onTouchMoveCapture?: (import("react").TouchEventHandler<HTMLInputElement> & import("react").TouchEventHandler<HTMLTextAreaElement>) | undefined;
|
|
247
|
+
onTouchStart?: (import("react").TouchEventHandler<HTMLInputElement> & import("react").TouchEventHandler<HTMLTextAreaElement>) | undefined;
|
|
248
|
+
onTouchStartCapture?: (import("react").TouchEventHandler<HTMLInputElement> & import("react").TouchEventHandler<HTMLTextAreaElement>) | undefined;
|
|
249
|
+
onPointerDown?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
250
|
+
onPointerDownCapture?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
251
|
+
onPointerMove?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
252
|
+
onPointerMoveCapture?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
253
|
+
onPointerUp?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
254
|
+
onPointerUpCapture?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
255
|
+
onPointerCancel?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
256
|
+
onPointerCancelCapture?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
257
|
+
onPointerEnter?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
258
|
+
onPointerEnterCapture?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
259
|
+
onPointerLeave?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
260
|
+
onPointerLeaveCapture?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
261
|
+
onPointerOver?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
262
|
+
onPointerOverCapture?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
263
|
+
onPointerOut?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
264
|
+
onPointerOutCapture?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
265
|
+
onGotPointerCapture?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
266
|
+
onGotPointerCaptureCapture?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
267
|
+
onLostPointerCapture?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
268
|
+
onLostPointerCaptureCapture?: (import("react").PointerEventHandler<HTMLInputElement> & import("react").PointerEventHandler<HTMLTextAreaElement>) | undefined;
|
|
269
|
+
onScroll?: (import("react").UIEventHandler<HTMLInputElement> & import("react").UIEventHandler<HTMLTextAreaElement>) | undefined;
|
|
270
|
+
onScrollCapture?: (import("react").UIEventHandler<HTMLInputElement> & import("react").UIEventHandler<HTMLTextAreaElement>) | undefined;
|
|
271
|
+
onWheel?: (import("react").WheelEventHandler<HTMLInputElement> & import("react").WheelEventHandler<HTMLTextAreaElement>) | undefined;
|
|
272
|
+
onWheelCapture?: (import("react").WheelEventHandler<HTMLInputElement> & import("react").WheelEventHandler<HTMLTextAreaElement>) | undefined;
|
|
273
|
+
onAnimationStart?: (import("react").AnimationEventHandler<HTMLInputElement> & import("react").AnimationEventHandler<HTMLTextAreaElement>) | undefined;
|
|
274
|
+
onAnimationStartCapture?: (import("react").AnimationEventHandler<HTMLInputElement> & import("react").AnimationEventHandler<HTMLTextAreaElement>) | undefined;
|
|
275
|
+
onAnimationEnd?: (import("react").AnimationEventHandler<HTMLInputElement> & import("react").AnimationEventHandler<HTMLTextAreaElement>) | undefined;
|
|
276
|
+
onAnimationEndCapture?: (import("react").AnimationEventHandler<HTMLInputElement> & import("react").AnimationEventHandler<HTMLTextAreaElement>) | undefined;
|
|
277
|
+
onAnimationIteration?: (import("react").AnimationEventHandler<HTMLInputElement> & import("react").AnimationEventHandler<HTMLTextAreaElement>) | undefined;
|
|
278
|
+
onAnimationIterationCapture?: (import("react").AnimationEventHandler<HTMLInputElement> & import("react").AnimationEventHandler<HTMLTextAreaElement>) | undefined;
|
|
279
|
+
onTransitionEnd?: (import("react").TransitionEventHandler<HTMLInputElement> & import("react").TransitionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
280
|
+
onTransitionEndCapture?: (import("react").TransitionEventHandler<HTMLInputElement> & import("react").TransitionEventHandler<HTMLTextAreaElement>) | undefined;
|
|
281
|
+
disabled?: boolean | undefined;
|
|
282
|
+
formAction?: string | undefined;
|
|
283
|
+
formEncType?: string | undefined;
|
|
284
|
+
formMethod?: string | undefined;
|
|
285
|
+
formNoValidate?: boolean | undefined;
|
|
286
|
+
formTarget?: string | undefined;
|
|
287
|
+
alt?: string | undefined;
|
|
288
|
+
autoComplete?: string | undefined;
|
|
289
|
+
accept?: string | undefined;
|
|
290
|
+
capture?: boolean | "user" | "environment" | undefined;
|
|
291
|
+
checked?: boolean | undefined;
|
|
292
|
+
enterKeyHint?: "search" | "previous" | "next" | "enter" | "done" | "go" | "send" | undefined;
|
|
293
|
+
multiple?: boolean | undefined;
|
|
294
|
+
cols?: number | undefined;
|
|
295
|
+
dirName?: string | undefined;
|
|
296
|
+
maxLength?: number | undefined;
|
|
297
|
+
minLength?: number | undefined;
|
|
298
|
+
src?: string | undefined;
|
|
299
|
+
height?: string | number | undefined;
|
|
300
|
+
max?: string | number | undefined;
|
|
301
|
+
min?: string | number | undefined;
|
|
302
|
+
name?: string | undefined;
|
|
303
|
+
width?: string | number | undefined;
|
|
304
|
+
wrap?: string | undefined;
|
|
305
|
+
step?: string | number | undefined;
|
|
306
|
+
readOnly?: boolean | undefined;
|
|
307
|
+
required?: boolean | undefined;
|
|
308
|
+
rows?: number | undefined;
|
|
309
|
+
} & {
|
|
310
|
+
value?: string | undefined;
|
|
311
|
+
type?: import("../TextField").TextFieldType | undefined;
|
|
312
|
+
onChange?: ((value: string) => void) | undefined;
|
|
313
|
+
hasError?: boolean | undefined;
|
|
314
|
+
disabledMessage?: import("react").ReactNode;
|
|
315
|
+
size?: "base" | "sm" | undefined;
|
|
316
|
+
multiline?: boolean | undefined;
|
|
317
|
+
} & import("react").RefAttributes<HTMLInputElement> & import("../../hoc/withLabels/withLabels").WithLabelsProps, "ref"> & import("react").RefAttributes<unknown>>, any, {}, never>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { theme } from '../../theme/index.js';
|
|
3
|
+
import { FlexRow } from '../Flex/FlexRow/FlexRow.js';
|
|
4
|
+
import { Button } from '../Button/Button.js';
|
|
5
|
+
import { TextField } from '../TextField/index.js';
|
|
6
|
+
|
|
7
|
+
const PageLimitContainer = styled(FlexRow).withConfig({ displayName: "vui--PageLimitContainer", componentId: "vui--11yg0z2" }) `box-sizing:border-box;min-width:${theme.sizes[10]};height:${theme.sizes.lg};padding:0 ${theme.sizes[3]};background-color:${theme.colors.neutral.grey.light};border:1px solid ${theme.colors.neutral.grey.dark};border-radius:${theme.sizes.xs};`;
|
|
8
|
+
const PaginationButton = styled(Button).withConfig({ displayName: "vui--PaginationButton", componentId: "vui--1xoa6c5" }) `color:${theme.colors.neutral.ink.base};width:${theme.sizes.lg};height:${theme.sizes.lg};svg{width:${theme.sizes.md};height:${theme.sizes.md};}`;
|
|
9
|
+
const PageInput = styled(TextField).withConfig({ displayName: "vui--PageInput", componentId: "vui--vpfeol" }) `&[type='number']{min-width:auto;}`;
|
|
10
|
+
|
|
11
|
+
export { PageInput, PageLimitContainer, PaginationButton };
|
|
12
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.js","sources":["../../../src/components/Pagination/styled.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { theme } from '../../theme';\nimport { FlexRow } from '../Flex/FlexRow';\nimport { Button } from '../Button';\nimport { TextField } from '../TextField';\n\nexport const PageLimitContainer = styled(FlexRow)`\n box-sizing: border-box;\n min-width: ${theme.sizes[10]};\n height: ${theme.sizes.lg};\n padding: 0 ${theme.sizes[3]};\n background-color: ${theme.colors.neutral.grey.light};\n border: 1px solid ${theme.colors.neutral.grey.dark};\n border-radius: ${theme.sizes.xs};\n`;\n\nexport const PaginationButton = styled(Button)`\n color: ${theme.colors.neutral.ink.base};\n // TODO: Remove these style overrides when the Button component is updated match the design system\n width: ${theme.sizes.lg};\n height: ${theme.sizes.lg};\n\n svg {\n width: ${theme.sizes.md};\n height: ${theme.sizes.md};\n }\n`;\n\nexport const PageInput = styled(TextField)`\n &[type='number'] {\n min-width: auto;\n }\n`;\n"],"names":[],"mappings":";;;;;;AAMO,MAAM,kBAAkB,GAAG,MAAM,CAAC,OAAO,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,yBAAA,EAAA,WAAA,EAAA,cAAA,EAAA,CAAA,CAAA,CAAA,gCAAA,EAElC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAC,CAAA,QAAA,EAClB,KAAK,CAAC,KAAK,CAAC,EAAE,CAAA,WAAA,EACX,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA,kBAAA,EACP,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAA,kBAAA,EAC/B,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,eAAA,EACjC,KAAK,CAAC,KAAK,CAAC,EAAE,CAAA,CAAA;AAG1B,MAAM,gBAAgB,GAAG,MAAM,CAAC,MAAM,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,uBAAA,EAAA,WAAA,EAAA,cAAA,EAAA,CAAA,CAAA,CAAA,MAAA,EACnC,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,UAE7B,KAAK,CAAC,KAAK,CAAC,EAAE,WACb,KAAK,CAAC,KAAK,CAAC,EAAE,cAGb,KAAK,CAAC,KAAK,CAAC,EAAE,WACb,KAAK,CAAC,KAAK,CAAC,EAAE;MAIf,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,gBAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,iCAAA;;;;"}
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
|
|
3
3
|
var React = require('react');
|
|
4
4
|
var Button = require('../Button/Button.cjs');
|
|
5
|
-
var
|
|
6
|
-
var SegmentedControl_module = require('./SegmentedControl.module.scss.cjs');
|
|
5
|
+
var styled = require('./styled.cjs');
|
|
7
6
|
|
|
8
7
|
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
9
8
|
|
|
10
9
|
var React__default = /*#__PURE__*/_interopDefaultCompat(React);
|
|
11
10
|
|
|
12
|
-
const SegmentedControl = ({ options, selected, className, onChange, }) => (React__default.default.createElement(
|
|
11
|
+
const SegmentedControl = ({ options, selected, className, onChange, }) => (React__default.default.createElement(styled.SegmentedControlContainer, { className: className ? `${className}-container` : undefined }, options.map((option) => (React__default.default.createElement(Button.Button, { type: "button", "aria-pressed": option.value === selected, variant: option.value === selected ? 'primary' : 'default', key: option.key, onClick: () => onChange(option.value), disabled: option.disabled, className: option.value === selected ? 'veeqo-components-active-button' : '' }, option.label)))));
|
|
13
12
|
|
|
14
13
|
exports.SegmentedControl = SegmentedControl;
|
|
15
14
|
//# sourceMappingURL=SegmentedControl.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControl.cjs","sources":["../../../src/components/SegmentedControl/SegmentedControl.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Button } from '../Button';\nimport {
|
|
1
|
+
{"version":3,"file":"SegmentedControl.cjs","sources":["../../../src/components/SegmentedControl/SegmentedControl.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Button } from '../Button';\nimport { SegmentedControlContainer } from './styled';\n\nimport { SegmentedControlProps } from './types';\n\nexport const SegmentedControl = ({\n options,\n selected,\n className,\n onChange,\n}: SegmentedControlProps) => (\n <SegmentedControlContainer className={className ? `${className}-container` : undefined}>\n {options.map((option) => (\n <Button\n type=\"button\"\n aria-pressed={option.value === selected}\n variant={option.value === selected ? 'primary' : 'default'}\n key={option.key}\n onClick={() => onChange(option.value)}\n disabled={option.disabled}\n className={option.value === selected ? 'veeqo-components-active-button' : ''}\n >\n {option.label}\n </Button>\n ))}\n </SegmentedControlContainer>\n);\n"],"names":["React","SegmentedControlContainer","Button"],"mappings":";;;;;;;;;;AAOO,MAAM,gBAAgB,GAAG,CAAC,EAC/B,OAAO,EACP,QAAQ,EACR,SAAS,EACT,QAAQ,GACc,MACtBA,sBAAA,CAAA,aAAA,CAACC,gCAAyB,EAAA,EAAC,SAAS,EAAE,SAAS,GAAG,CAAA,EAAG,SAAS,CAAA,UAAA,CAAY,GAAG,SAAS,EAAA,EACnF,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,MAClBD,sBAAA,CAAA,aAAA,CAACE,aAAM,EAAA,EACL,IAAI,EAAC,QAAQ,EAAA,cAAA,EACC,MAAM,CAAC,KAAK,KAAK,QAAQ,EACvC,OAAO,EAAE,MAAM,CAAC,KAAK,KAAK,QAAQ,GAAG,SAAS,GAAG,SAAS,EAC1D,GAAG,EAAE,MAAM,CAAC,GAAG,EACf,OAAO,EAAE,MAAM,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,EACrC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EACzB,SAAS,EAAE,MAAM,CAAC,KAAK,KAAK,QAAQ,GAAG,gCAAgC,GAAG,EAAE,EAAA,EAE3E,MAAM,CAAC,KAAK,CACN,CACV,CAAC,CACwB;;;;"}
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
import React__default from 'react';
|
|
2
2
|
import { Button } from '../Button/Button.js';
|
|
3
|
-
import {
|
|
4
|
-
import styles from './SegmentedControl.module.scss.js';
|
|
3
|
+
import { SegmentedControlContainer } from './styled.js';
|
|
5
4
|
|
|
6
|
-
const SegmentedControl = ({ options, selected, className, onChange, }) => (React__default.createElement(
|
|
5
|
+
const SegmentedControl = ({ options, selected, className, onChange, }) => (React__default.createElement(SegmentedControlContainer, { className: className ? `${className}-container` : undefined }, options.map((option) => (React__default.createElement(Button, { type: "button", "aria-pressed": option.value === selected, variant: option.value === selected ? 'primary' : 'default', key: option.key, onClick: () => onChange(option.value), disabled: option.disabled, className: option.value === selected ? 'veeqo-components-active-button' : '' }, option.label)))));
|
|
7
6
|
|
|
8
7
|
export { SegmentedControl };
|
|
9
8
|
//# sourceMappingURL=SegmentedControl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SegmentedControl.js","sources":["../../../src/components/SegmentedControl/SegmentedControl.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Button } from '../Button';\nimport {
|
|
1
|
+
{"version":3,"file":"SegmentedControl.js","sources":["../../../src/components/SegmentedControl/SegmentedControl.tsx"],"sourcesContent":["import React from 'react';\n\nimport { Button } from '../Button';\nimport { SegmentedControlContainer } from './styled';\n\nimport { SegmentedControlProps } from './types';\n\nexport const SegmentedControl = ({\n options,\n selected,\n className,\n onChange,\n}: SegmentedControlProps) => (\n <SegmentedControlContainer className={className ? `${className}-container` : undefined}>\n {options.map((option) => (\n <Button\n type=\"button\"\n aria-pressed={option.value === selected}\n variant={option.value === selected ? 'primary' : 'default'}\n key={option.key}\n onClick={() => onChange(option.value)}\n disabled={option.disabled}\n className={option.value === selected ? 'veeqo-components-active-button' : ''}\n >\n {option.label}\n </Button>\n ))}\n </SegmentedControlContainer>\n);\n"],"names":["React"],"mappings":";;;;AAOO,MAAM,gBAAgB,GAAG,CAAC,EAC/B,OAAO,EACP,QAAQ,EACR,SAAS,EACT,QAAQ,GACc,MACtBA,cAAA,CAAA,aAAA,CAAC,yBAAyB,EAAA,EAAC,SAAS,EAAE,SAAS,GAAG,CAAA,EAAG,SAAS,CAAA,UAAA,CAAY,GAAG,SAAS,EAAA,EACnF,OAAO,CAAC,GAAG,CAAC,CAAC,MAAM,MAClBA,cAAA,CAAA,aAAA,CAAC,MAAM,EAAA,EACL,IAAI,EAAC,QAAQ,EAAA,cAAA,EACC,MAAM,CAAC,KAAK,KAAK,QAAQ,EACvC,OAAO,EAAE,MAAM,CAAC,KAAK,KAAK,QAAQ,GAAG,SAAS,GAAG,SAAS,EAC1D,GAAG,EAAE,MAAM,CAAC,GAAG,EACf,OAAO,EAAE,MAAM,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,EACrC,QAAQ,EAAE,MAAM,CAAC,QAAQ,EACzB,SAAS,EAAE,MAAM,CAAC,KAAK,KAAK,QAAQ,GAAG,gCAAgC,GAAG,EAAE,EAAA,EAE3E,MAAM,CAAC,KAAK,CACN,CACV,CAAC,CACwB;;;;"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var styled = require('styled-components');
|
|
4
|
+
var index = require('../../theme/index.cjs');
|
|
5
|
+
var BaseContainer = require('../BaseContainer/BaseContainer.cjs');
|
|
6
|
+
|
|
7
|
+
function _interopDefaultCompat (e) { return e && typeof e === 'object' && 'default' in e ? e : { default: e }; }
|
|
8
|
+
|
|
9
|
+
var styled__default = /*#__PURE__*/_interopDefaultCompat(styled);
|
|
10
|
+
|
|
11
|
+
const buttonBackgroundColor = index.theme.colors.neutral.grey.lightest;
|
|
12
|
+
const buttonBorderColor = index.theme.colors.neutral.grey.dark;
|
|
13
|
+
const activeButtonColor = index.theme.colors.secondary.blue.dark;
|
|
14
|
+
const SegmentedControlContainer = styled__default.default(BaseContainer.BaseContainer).withConfig({ displayName: "vui--SegmentedControlContainer", componentId: "vui--s4yyqq" }) `display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:active{background-color:${buttonBackgroundColor};border-color:${buttonBorderColor};box-shadow:none;}:focus{box-shadow:0 0 0 4px ${index.theme.colors.secondary.blue.light};outline:0;z-index:1;}}> .veeqo-components-active-button{:active{background-color:${activeButtonColor};border-color:${activeButtonColor};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${index.theme.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`;
|
|
15
|
+
|
|
16
|
+
exports.SegmentedControlContainer = SegmentedControlContainer;
|
|
17
|
+
//# sourceMappingURL=styled.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.cjs","sources":["../../../src/components/SegmentedControl/styled.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { theme } from '../../theme';\n\nimport { BaseContainer } from '../BaseContainer';\n\nconst buttonBackgroundColor = theme.colors.neutral.grey.lightest;\nconst buttonBorderColor = theme.colors.neutral.grey.dark;\n\nconst activeButtonColor = theme.colors.secondary.blue.dark;\n\nexport const SegmentedControlContainer = styled(BaseContainer)`\n display: flex;\n flex-direction: row;\n\n > button {\n border-radius: 0;\n box-shadow: none;\n\n :active {\n background-color: ${buttonBackgroundColor};\n border-color: ${buttonBorderColor};\n box-shadow: none;\n }\n\n :focus {\n box-shadow: 0 0 0 4px ${theme.colors.secondary.blue.light};\n outline: 0;\n z-index: 1;\n }\n }\n\n > .veeqo-components-active-button {\n :active {\n background-color: ${activeButtonColor};\n border-color: ${activeButtonColor};\n }\n }\n\n > button:not(:first-child) {\n border-left: none;\n }\n\n > .veeqo-components-active-button + button {\n border-left: 1px solid ${theme.colors.neutral.grey.dark};\n }\n\n > button:first-child {\n border-radius: 20px 0px 0px 20px;\n }\n\n > button:last-child {\n border-radius: 0px 20px 20px 0px;\n }\n`;\n"],"names":["theme","styled","BaseContainer"],"mappings":";;;;;;;;;;AAKA,MAAM,qBAAqB,GAAGA,WAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ;AAChE,MAAM,iBAAiB,GAAGA,WAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI;AAExD,MAAM,iBAAiB,GAAGA,WAAK,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI;AAEnD,MAAM,yBAAyB,GAAGC,uBAAM,CAACC,2BAAa,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,gCAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,kGAAA,EASpC,qBAAqB,iBACzB,iBAAiB,CAAA,8CAAA,EAKTF,WAAK,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAA,kFAAA,EAQrC,iBAAiB,CAAA,cAAA,EACrB,iBAAiB,CAAA,iHAAA,EASVA,WAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI;;;;"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare const SegmentedControlContainer: import("styled-components").StyledComponent<import("react").ForwardRefExoticComponent<import("../BaseContainer").BaseContainerProps & import("react").HTMLAttributes<HTMLDivElement> & import("react").RefAttributes<HTMLDivElement>>, any, {}, never>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { theme } from '../../theme/index.js';
|
|
3
|
+
import { BaseContainer } from '../BaseContainer/BaseContainer.js';
|
|
4
|
+
|
|
5
|
+
const buttonBackgroundColor = theme.colors.neutral.grey.lightest;
|
|
6
|
+
const buttonBorderColor = theme.colors.neutral.grey.dark;
|
|
7
|
+
const activeButtonColor = theme.colors.secondary.blue.dark;
|
|
8
|
+
const SegmentedControlContainer = styled(BaseContainer).withConfig({ displayName: "vui--SegmentedControlContainer", componentId: "vui--s4yyqq" }) `display:flex;flex-direction:row;> button{border-radius:0;box-shadow:none;:active{background-color:${buttonBackgroundColor};border-color:${buttonBorderColor};box-shadow:none;}:focus{box-shadow:0 0 0 4px ${theme.colors.secondary.blue.light};outline:0;z-index:1;}}> .veeqo-components-active-button{:active{background-color:${activeButtonColor};border-color:${activeButtonColor};}}> button:not(:first-child){border-left:none;}> .veeqo-components-active-button + button{border-left:1px solid ${theme.colors.neutral.grey.dark};}> button:first-child{border-radius:20px 0px 0px 20px;}> button:last-child{border-radius:0px 20px 20px 0px;}`;
|
|
9
|
+
|
|
10
|
+
export { SegmentedControlContainer };
|
|
11
|
+
//# sourceMappingURL=styled.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styled.js","sources":["../../../src/components/SegmentedControl/styled.ts"],"sourcesContent":["import styled from 'styled-components';\nimport { theme } from '../../theme';\n\nimport { BaseContainer } from '../BaseContainer';\n\nconst buttonBackgroundColor = theme.colors.neutral.grey.lightest;\nconst buttonBorderColor = theme.colors.neutral.grey.dark;\n\nconst activeButtonColor = theme.colors.secondary.blue.dark;\n\nexport const SegmentedControlContainer = styled(BaseContainer)`\n display: flex;\n flex-direction: row;\n\n > button {\n border-radius: 0;\n box-shadow: none;\n\n :active {\n background-color: ${buttonBackgroundColor};\n border-color: ${buttonBorderColor};\n box-shadow: none;\n }\n\n :focus {\n box-shadow: 0 0 0 4px ${theme.colors.secondary.blue.light};\n outline: 0;\n z-index: 1;\n }\n }\n\n > .veeqo-components-active-button {\n :active {\n background-color: ${activeButtonColor};\n border-color: ${activeButtonColor};\n }\n }\n\n > button:not(:first-child) {\n border-left: none;\n }\n\n > .veeqo-components-active-button + button {\n border-left: 1px solid ${theme.colors.neutral.grey.dark};\n }\n\n > button:first-child {\n border-radius: 20px 0px 0px 20px;\n }\n\n > button:last-child {\n border-radius: 0px 20px 20px 0px;\n }\n`;\n"],"names":[],"mappings":";;;;AAKA,MAAM,qBAAqB,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,QAAQ;AAChE,MAAM,iBAAiB,GAAG,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI;AAExD,MAAM,iBAAiB,GAAG,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,IAAI;AAEnD,MAAM,yBAAyB,GAAG,MAAM,CAAC,aAAa,CAAC,CAAA,UAAA,CAAA,EAAA,WAAA,EAAA,gCAAA,EAAA,WAAA,EAAA,aAAA,EAAA,CAAA,CAAA,CAAA,kGAAA,EASpC,qBAAqB,iBACzB,iBAAiB,CAAA,8CAAA,EAKT,KAAK,CAAC,MAAM,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAA,kFAAA,EAQrC,iBAAiB,CAAA,cAAA,EACrB,iBAAiB,CAAA,iHAAA,EASV,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectDropdown.cjs","sources":["../../../src/components/SelectDropdown/SelectDropdown.tsx"],"sourcesContent":["import React, { Fragment } from 'react';\nimport { Selection } from 'react-aria-components';\nimport { Search } from '../Search';\nimport { Button } from '../Button';\n\nimport { GridList } from './components/OptionsContainers/GridList';\nimport { GridItemProps } from './components/GridItem/types';\nimport { SelectDropdownProps } from './types';\nimport { ListBox } from './components/OptionsContainers/ListBox';\nimport {
|
|
1
|
+
{"version":3,"file":"SelectDropdown.cjs","sources":["../../../src/components/SelectDropdown/SelectDropdown.tsx"],"sourcesContent":["import React, { Fragment } from 'react';\nimport { Selection } from 'react-aria-components';\nimport { Search } from '../Search';\nimport { Button } from '../Button';\n\nimport { GridList } from './components/OptionsContainers/GridList';\nimport { GridItemProps } from './components/GridItem/types';\nimport { SelectDropdownProps } from './types';\nimport { ListBox } from './components/OptionsContainers/ListBox';\nimport { Dropdown } from '../Dropdown';\nimport { buildClassnames } from '../../utils';\nimport { generateClassNames, getSelectedValues } from './utils';\nimport { SelectedOption } from './components/SelectedOption';\n\nimport styles from './SelectDropdown.module.scss';\nimport formStyles from '../../utils/forms/form.module.scss';\n\ntype SelectDropdownElementProps = Omit<SelectDropdownProps, 'onChange'> & {\n isSelectOpen: boolean;\n setIsSelectOpen: (isOpen: boolean) => void;\n onSelectionChange: (keys: Selection) => void;\n hasSection: boolean;\n};\n\nexport const SelectDropdown = ({\n id,\n className,\n placeholder = 'Select item',\n multiple = false,\n compact = false,\n hasError = false,\n disabled,\n options,\n value,\n actions,\n isLoading = false,\n searchValue,\n headerSlot,\n emptyStateSlot,\n selectedSlot,\n onSearchChange,\n onSelectionChange,\n topAction,\n isSelectOpen,\n setIsSelectOpen,\n hasSection,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-describedby': ariaDescribedBy,\n ...otherProps\n}: SelectDropdownElementProps) => {\n const classNames = generateClassNames(className);\n\n const selectedValues = getSelectedValues(options, hasSection, value);\n const selectionMode = multiple ? 'multiple' : 'single';\n\n const hasRowAction = options.some(\n (option) => 'onClickRowAction' in option && option.onClickRowAction,\n );\n\n return (\n <Dropdown\n id={`select-dropdown-${id}`}\n className={buildClassnames([classNames?.popover, styles.dropdown, className])}\n shouldShow={isSelectOpen}\n setShouldShow={setIsSelectOpen}\n useAnchorWidth\n disabled={disabled}\n renderCta={(buttonProps, anchorRef) => {\n return (\n <button\n {...buttonProps}\n type=\"button\"\n ref={anchorRef}\n className={buildClassnames([\n className,\n styles.dropdownTrigger,\n formStyles.fullStyles,\n formStyles.base,\n hasError && formStyles.error,\n compact && formStyles.compact,\n ])}\n >\n {selectedSlot || (\n <SelectedOption\n placeholder={placeholder}\n options={selectedValues}\n selectionMode={selectionMode}\n />\n )}\n </button>\n );\n }}\n >\n {headerSlot && <div className={styles.headerContainer}>{headerSlot}</div>}\n {onSearchChange && (\n <>\n <Search className={styles.search} value={searchValue} onChange={onSearchChange} />\n <hr className={styles.separator} />\n </>\n )}\n {topAction && (\n <Fragment key={topAction.label}>\n <Button\n className={styles.ctaButton}\n key={topAction.label}\n variant=\"flat\"\n {...topAction}\n />\n <hr className={styles.separator} key={`separator-${topAction.label}`} />\n </Fragment>\n )}\n {hasRowAction ? (\n <GridList\n id={id}\n className={classNames.optionsContainer}\n ariaLabelledBy={ariaLabelledBy}\n ariaDescribedBy={ariaDescribedBy}\n selectionMode={selectionMode}\n options={options as GridItemProps[]}\n onSelectionChange={onSelectionChange}\n selectedValues={selectedValues as GridItemProps[]}\n isLoading={isLoading}\n emptyStateSlot={emptyStateSlot}\n {...otherProps}\n />\n ) : (\n <ListBox\n id={id}\n className={classNames.optionsContainer}\n ariaLabelledBy={ariaLabelledBy}\n ariaDescribedBy={ariaDescribedBy}\n selectionMode={selectionMode}\n options={options}\n onSelectionChange={onSelectionChange}\n selectedValues={selectedValues}\n isLoading={isLoading}\n emptyStateSlot={emptyStateSlot}\n hasSection={hasSection}\n {...otherProps}\n />\n )}\n {actions?.map(({ label, ...actionProps }) => (\n <Fragment key={label}>\n <hr className={styles.separator} key={`separator-${label}`} />\n <Button className={styles.ctaButton} variant=\"flat\" key={label} {...actionProps} />\n </Fragment>\n ))}\n </Dropdown>\n );\n};\n"],"names":["generateClassNames","getSelectedValues","React","Dropd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AC9DH,sBAAA,CAAA,aAAA,CAACQ,aAAM,IAAC,SAAS,EAAEL,qBAAM,CAAC,SAAS,EAAE,OAAO,EAAC,MAAM,EAAC,GAAG,EAAE,KAAK,EAAA,GAAM,WAAW,EAAA,CAAI,CAC1E,CACZ,CAAC,CACO;AAEf;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectDropdown.js","sources":["../../../src/components/SelectDropdown/SelectDropdown.tsx"],"sourcesContent":["import React, { Fragment } from 'react';\nimport { Selection } from 'react-aria-components';\nimport { Search } from '../Search';\nimport { Button } from '../Button';\n\nimport { GridList } from './components/OptionsContainers/GridList';\nimport { GridItemProps } from './components/GridItem/types';\nimport { SelectDropdownProps } from './types';\nimport { ListBox } from './components/OptionsContainers/ListBox';\nimport {
|
|
1
|
+
{"version":3,"file":"SelectDropdown.js","sources":["../../../src/components/SelectDropdown/SelectDropdown.tsx"],"sourcesContent":["import React, { Fragment } from 'react';\nimport { Selection } from 'react-aria-components';\nimport { Search } from '../Search';\nimport { Button } from '../Button';\n\nimport { GridList } from './components/OptionsContainers/GridList';\nimport { GridItemProps } from './components/GridItem/types';\nimport { SelectDropdownProps } from './types';\nimport { ListBox } from './components/OptionsContainers/ListBox';\nimport { Dropdown } from '../Dropdown';\nimport { buildClassnames } from '../../utils';\nimport { generateClassNames, getSelectedValues } from './utils';\nimport { SelectedOption } from './components/SelectedOption';\n\nimport styles from './SelectDropdown.module.scss';\nimport formStyles from '../../utils/forms/form.module.scss';\n\ntype SelectDropdownElementProps = Omit<SelectDropdownProps, 'onChange'> & {\n isSelectOpen: boolean;\n setIsSelectOpen: (isOpen: boolean) => void;\n onSelectionChange: (keys: Selection) => void;\n hasSection: boolean;\n};\n\nexport const SelectDropdown = ({\n id,\n className,\n placeholder = 'Select item',\n multiple = false,\n compact = false,\n hasError = false,\n disabled,\n options,\n value,\n actions,\n isLoading = false,\n searchValue,\n headerSlot,\n emptyStateSlot,\n selectedSlot,\n onSearchChange,\n onSelectionChange,\n topAction,\n isSelectOpen,\n setIsSelectOpen,\n hasSection,\n 'aria-labelledby': ariaLabelledBy,\n 'aria-describedby': ariaDescribedBy,\n ...otherProps\n}: SelectDropdownElementProps) => {\n const classNames = generateClassNames(className);\n\n const selectedValues = getSelectedValues(options, hasSection, value);\n const selectionMode = multiple ? 'multiple' : 'single';\n\n const hasRowAction = options.some(\n (option) => 'onClickRowAction' in option && option.onClickRowAction,\n );\n\n return (\n <Dropdown\n id={`select-dropdown-${id}`}\n className={buildClassnames([classNames?.popover, styles.dropdown, className])}\n shouldShow={isSelectOpen}\n setShouldShow={setIsSelectOpen}\n useAnchorWidth\n disabled={disabled}\n renderCta={(buttonProps, anchorRef) => {\n return (\n <button\n {...buttonProps}\n type=\"button\"\n ref={anchorRef}\n className={buildClassnames([\n className,\n styles.dropdownTrigger,\n formStyles.fullStyles,\n formStyles.base,\n hasError && formStyles.error,\n compact && formStyles.compact,\n ])}\n >\n {selectedSlot || (\n <SelectedOption\n placeholder={placeholder}\n options={selectedValues}\n selectionMode={selectionMode}\n />\n )}\n </button>\n );\n }}\n >\n {headerSlot && <div className={styles.headerContainer}>{headerSlot}</div>}\n {onSearchChange && (\n <>\n <Search className={styles.search} value={searchValue} onChange={onSearchChange} />\n <hr className={styles.separator} />\n </>\n )}\n {topAction && (\n <Fragment key={topAction.label}>\n <Button\n className={styles.ctaButton}\n key={topAction.label}\n variant=\"flat\"\n {...topAction}\n />\n <hr className={styles.separator} key={`separator-${topAction.label}`} />\n </Fragment>\n )}\n {hasRowAction ? (\n <GridList\n id={id}\n className={classNames.optionsContainer}\n ariaLabelledBy={ariaLabelledBy}\n ariaDescribedBy={ariaDescribedBy}\n selectionMode={selectionMode}\n options={options as GridItemProps[]}\n onSelectionChange={onSelectionChange}\n selectedValues={selectedValues as GridItemProps[]}\n isLoading={isLoading}\n emptyStateSlot={emptyStateSlot}\n {...otherProps}\n />\n ) : (\n <ListBox\n id={id}\n className={classNames.optionsContainer}\n ariaLabelledBy={ariaLabelledBy}\n ariaDescribedBy={ariaDescribedBy}\n selectionMode={selectionMode}\n options={options}\n onSelectionChange={onSelectionChange}\n selectedValues={selectedValues}\n isLoading={isLoading}\n emptyStateSlot={emptyStateSlot}\n hasSection={hasSection}\n {...otherProps}\n />\n )}\n {actions?.map(({ label, ...actionProps }) => (\n <Fragment key={label}>\n <hr className={styles.separator} key={`separator-${label}`} />\n <Button className={styles.ctaButton} variant=\"flat\" key={label} {...actionProps} />\n </Fragment>\n ))}\n </Dropdown>\n );\n};\n"],"names":["React"],"mappings":";;;;;;;;;;;;;AAwBO,MAAM,cAAc,GAAG,CAAC,EAC7B,EAAE,EACF,SAAS,EACT,WAAW,GAAG,aAAa,EAC3B,QAAQ,GAAG,KAAK,EAChB,OAAO,GAAG,KAAK,EACf,QAAQ,GAAG,KAAK,EAChB,QAAQ,EACR,OAAO,EACP,KAAK,EACL,OAAO,EACP,SAAS,GAAG,KAAK,EACjB,WAAW,EACX,UAAU,EACV,cAAc,EACd,YAAY,EACZ,cAAc,EACd,iBAAiB,EACjB,SAAS,EACT,YAAY,EACZ,eAAe,EACf,UAAU,EACV,iBAAiB,EAAE,cAAc,EACjC,kBAAkB,EAAE,eAAe,EACnC,GAAG,UAAU,EACc,KAAI;AAC/B,IAAA,MAAM,UAAU,GAAG,kBAAkB,CAAC,SAAS,CAAC;IAEhD,MAAM,cAAc,GAAG,iBAAiB,CAAC,OAAO,EAAE,UAAU,EAAE,KAAK,CAAC;IACpE,MAAM,aAAa,GAAG,QAAQ,GAAG,UAAU,GAAG,QAAQ;AAEtD,IAAA,MAAM,YAAY,GAAG,OAAO,CAAC,IAAI,CAC/B,CAAC,MAAM,KAAK,kBAAkB,IAAI,MAAM,IAAI,MAAM,CAAC,gBAAgB,CACpE;IAED,QACEA,cAAA,CAAA,aAAA,CAAC,QAAQ,EAAA,EACP,EAAE,EAAE,CAAA,gBAAA,EAAmB,EAAE,CAAA,CAAE,EAC3B,SAAS,EAAE,eAAe,CA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