@agregio-solutions/design-system 2.3.0 → 2.3.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/Accordion/Accordion.js +65 -0
- package/dist/components/Accordion/Accordion.styled.js +130 -0
- package/dist/components/Badge/Badge.js +25 -0
- package/dist/components/Badge/Badge.styled.js +50 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +78 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.styled.js +73 -0
- package/dist/components/Button/Button.js +73 -0
- package/dist/components/Button/Button.styled.js +340 -0
- package/dist/components/Button/components/HoldProgress/HoldProgress.js +29 -0
- package/dist/components/Button/components/HoldProgress/HoldProgress.styled.js +42 -0
- package/dist/components/Button/components/IconLeftElement/IconLeftElement.js +13 -0
- package/dist/components/Button/components/IconRightElement/IconRightElement.js +12 -0
- package/dist/components/Calendar/Calendar.js +113 -0
- package/dist/components/Calendar/Calendar.styled.js +159 -0
- package/dist/components/Card/Card.js +16 -0
- package/dist/components/Card/Card.styled.js +35 -0
- package/dist/components/ChartLegend/ChartLegend.js +21 -0
- package/dist/components/ChartLegend/ChartLegend.styled.js +77 -0
- package/dist/components/ChartTooltip/ChartTooltip.js +32 -0
- package/dist/components/ChartTooltip/ChartTooltip.styled.js +57 -0
- package/dist/components/Checkbox/Checkbox.js +50 -0
- package/dist/components/Checkbox/Checkbox.styled.js +111 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js +12 -0
- package/dist/components/Chip/Chip.js +26 -0
- package/dist/components/Chip/Chip.styled.js +49 -0
- package/dist/components/Combobox/Combobox.js +98 -0
- package/dist/components/Combobox/Combobox.styled.js +90 -0
- package/dist/components/DataTable/DataTable.js +53 -0
- package/dist/components/DataTable/DataTable.styled.js +11 -0
- package/dist/components/DataTable/DataTableCell/DataTableCell.js +21 -0
- package/dist/components/DataTable/DataTableCell/DataTableCell.styled.js +78 -0
- package/dist/components/DataTable/DataTableContext.js +9 -0
- package/dist/components/DataTable/DataTableEmptyPlaceholder/DataTableEmptyPlaceholder.js +25 -0
- package/dist/components/DataTable/DataTableEmptyPlaceholder/DataTableEmptyPlaceholder.styled.js +10 -0
- package/dist/components/DataTable/DataTableHeader/DataTableHeader.js +44 -0
- package/dist/components/DataTable/DataTableHeader/DataTableHeader.styled.js +110 -0
- package/dist/components/DataTable/DataTableRoot/DataTableRoot.js +13 -0
- package/dist/components/DataTable/DataTableRoot/DataTableRoot.styled.js +22 -0
- package/dist/components/DataTable/DataTableRow/DataTableRow.js +13 -0
- package/dist/components/DataTable/DataTableRow/DataTableRow.styled.js +11 -0
- package/dist/components/DataTable/DataTableSkeletonRows/DataTableSkeletonRows.js +19 -0
- package/dist/components/DatePicker/DatePicker.js +75 -0
- package/dist/components/DatePicker/DatePicker.styled.js +66 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +100 -0
- package/dist/components/DateRangePicker/DateRangePicker.styled.js +86 -0
- package/dist/components/Drawer/Drawer.js +30 -0
- package/dist/components/Drawer/Drawer.styled.js +65 -0
- package/dist/components/Dropdown/Dropdown.js +13 -0
- package/dist/components/Dropdown/Dropdown.styled.js +19 -0
- package/dist/components/Dropdown/components/DropdownListItem/DropdownListItem.js +28 -0
- package/dist/components/Dropdown/components/DropdownListItem/DropdownListItem.styled.js +60 -0
- package/dist/components/EmptyState/EmptyState.js +16 -0
- package/dist/components/EmptyState/EmptyState.styled.js +63 -0
- package/dist/components/FileUpload/FileUpload.js +79 -0
- package/dist/components/FileUpload/FileUpload.styled.js +39 -0
- package/dist/components/FileUpload/components/FileDetails/FileDetails.js +43 -0
- package/dist/components/FileUpload/components/FileDetails/FileDetails.styled.js +43 -0
- package/dist/components/Filter/Filter.js +105 -0
- package/dist/components/Filter/Filter.styled.js +24 -0
- package/dist/components/Header/Header.js +52 -0
- package/dist/components/Header/Header.styled.js +131 -0
- package/dist/components/Icon/Icon.js +400 -0
- package/dist/components/Icon/components/access_time.js +15 -0
- package/dist/components/Icon/components/add.js +15 -0
- package/dist/components/Icon/components/add_box.js +15 -0
- package/dist/components/Icon/components/arrow_back.js +15 -0
- package/dist/components/Icon/components/arrow_downward.js +15 -0
- package/dist/components/Icon/components/arrow_enter.js +16 -0
- package/dist/components/Icon/components/arrow_forward.js +15 -0
- package/dist/components/Icon/components/arrow_upward.js +15 -0
- package/dist/components/Icon/components/back_time.js +15 -0
- package/dist/components/Icon/components/bar_chart.js +15 -0
- package/dist/components/Icon/components/bar_chart_2.js +16 -0
- package/dist/components/Icon/components/battery.js +16 -0
- package/dist/components/Icon/components/battery_alert.js +16 -0
- package/dist/components/Icon/components/battery_empty.js +16 -0
- package/dist/components/Icon/components/battery_full.js +16 -0
- package/dist/components/Icon/components/battery_half.js +16 -0
- package/dist/components/Icon/components/bolt.js +15 -0
- package/dist/components/Icon/components/book.js +16 -0
- package/dist/components/Icon/components/business.js +15 -0
- package/dist/components/Icon/components/calculator.js +15 -0
- package/dist/components/Icon/components/calendar.js +16 -0
- package/dist/components/Icon/components/calendar_today.js +15 -0
- package/dist/components/Icon/components/calibration.js +15 -0
- package/dist/components/Icon/components/cancel.js +15 -0
- package/dist/components/Icon/components/caret.js +14 -0
- package/dist/components/Icon/components/change_circle.js +15 -0
- package/dist/components/Icon/components/change_ok.js +15 -0
- package/dist/components/Icon/components/chart_curves.js +16 -0
- package/dist/components/Icon/components/chart_curves_rounded.js +16 -0
- package/dist/components/Icon/components/chart_plus.js +16 -0
- package/dist/components/Icon/components/chart_simple.js +16 -0
- package/dist/components/Icon/components/chart_up.js +16 -0
- package/dist/components/Icon/components/check.js +15 -0
- package/dist/components/Icon/components/check_circle_outline.js +15 -0
- package/dist/components/Icon/components/chevron_left.js +15 -0
- package/dist/components/Icon/components/chevron_right.js +15 -0
- package/dist/components/Icon/components/clear.js +15 -0
- package/dist/components/Icon/components/close.js +15 -0
- package/dist/components/Icon/components/cloud.js +16 -0
- package/dist/components/Icon/components/cloud_full.js +16 -0
- package/dist/components/Icon/components/collapse_menu.js +17 -0
- package/dist/components/Icon/components/content_copy.js +15 -0
- package/dist/components/Icon/components/cycle.js +15 -0
- package/dist/components/Icon/components/delete_outline.js +15 -0
- package/dist/components/Icon/components/dice.js +16 -0
- package/dist/components/Icon/components/disconnect.js +15 -0
- package/dist/components/Icon/components/download.js +15 -0
- package/dist/components/Icon/components/drag_indicator.js +15 -0
- package/dist/components/Icon/components/driver.js +15 -0
- package/dist/components/Icon/components/edit.js +15 -0
- package/dist/components/Icon/components/error_outline.js +15 -0
- package/dist/components/Icon/components/euro.js +16 -0
- package/dist/components/Icon/components/exit.js +16 -0
- package/dist/components/Icon/components/exit_to_app.js +15 -0
- package/dist/components/Icon/components/expand_less.js +15 -0
- package/dist/components/Icon/components/expand_more.js +15 -0
- package/dist/components/Icon/components/eye.js +16 -0
- package/dist/components/Icon/components/eye_off.js +15 -0
- package/dist/components/Icon/components/fiber_new.js +15 -0
- package/dist/components/Icon/components/file_download.js +15 -0
- package/dist/components/Icon/components/file_export.js +15 -0
- package/dist/components/Icon/components/file_plus.js +16 -0
- package/dist/components/Icon/components/filter_alt.js +15 -0
- package/dist/components/Icon/components/filter_list.js +15 -0
- package/dist/components/Icon/components/first_page.js +15 -0
- package/dist/components/Icon/components/flame.js +16 -0
- package/dist/components/Icon/components/flex.js +16 -0
- package/dist/components/Icon/components/folder_open.js +15 -0
- package/dist/components/Icon/components/gaz.js +16 -0
- package/dist/components/Icon/components/grid_view.js +15 -0
- package/dist/components/Icon/components/hand.js +15 -0
- package/dist/components/Icon/components/help_outline.js +15 -0
- package/dist/components/Icon/components/home.js +15 -0
- package/dist/components/Icon/components/hydraulic.js +16 -0
- package/dist/components/Icon/components/id.js +15 -0
- package/dist/components/Icon/components/industry.js +16 -0
- package/dist/components/Icon/components/insert_emoticon.js +15 -0
- package/dist/components/Icon/components/invoice.js +16 -0
- package/dist/components/Icon/components/invoice_full.js +16 -0
- package/dist/components/Icon/components/joystick.js +15 -0
- package/dist/components/Icon/components/language.js +15 -0
- package/dist/components/Icon/components/laptop.js +15 -0
- package/dist/components/Icon/components/last_page.js +15 -0
- package/dist/components/Icon/components/leaf.js +16 -0
- package/dist/components/Icon/components/lines_ok.js +16 -0
- package/dist/components/Icon/components/lines_plus.js +16 -0
- package/dist/components/Icon/components/link.js +15 -0
- package/dist/components/Icon/components/list.js +15 -0
- package/dist/components/Icon/components/location.js +16 -0
- package/dist/components/Icon/components/location_full.js +16 -0
- package/dist/components/Icon/components/location_searching.js +15 -0
- package/dist/components/Icon/components/logout.js +18 -0
- package/dist/components/Icon/components/logs.js +15 -0
- package/dist/components/Icon/components/magic_wand.js +15 -0
- package/dist/components/Icon/components/mail_empty.js +16 -0
- package/dist/components/Icon/components/mail_full.js +16 -0
- package/dist/components/Icon/components/mail_off.js +16 -0
- package/dist/components/Icon/components/mail_ok.js +16 -0
- package/dist/components/Icon/components/mail_open.js +16 -0
- package/dist/components/Icon/components/mail_open_full.js +16 -0
- package/dist/components/Icon/components/menu.js +15 -0
- package/dist/components/Icon/components/minimize.js +15 -0
- package/dist/components/Icon/components/modbus.js +15 -0
- package/dist/components/Icon/components/money_pig.js +16 -0
- package/dist/components/Icon/components/money_pig_full.js +16 -0
- package/dist/components/Icon/components/monitor_heart.js +18 -0
- package/dist/components/Icon/components/monitoring.js +16 -0
- package/dist/components/Icon/components/moon.js +16 -0
- package/dist/components/Icon/components/more_horiz.js +15 -0
- package/dist/components/Icon/components/more_vert.js +15 -0
- package/dist/components/Icon/components/moving.js +15 -0
- package/dist/components/Icon/components/notifications_active.js +15 -0
- package/dist/components/Icon/components/notifications_none.js +15 -0
- package/dist/components/Icon/components/notifications_off.js +15 -0
- package/dist/components/Icon/components/one_single.js +16 -0
- package/dist/components/Icon/components/pause.js +16 -0
- package/dist/components/Icon/components/pause_empty.js +16 -0
- package/dist/components/Icon/components/payments.js +16 -0
- package/dist/components/Icon/components/pdf.js +16 -0
- package/dist/components/Icon/components/phone_1_empty.js +16 -0
- package/dist/components/Icon/components/phone_1_full.js +16 -0
- package/dist/components/Icon/components/phone_2_empty.js +16 -0
- package/dist/components/Icon/components/phone_2_full.js +16 -0
- package/dist/components/Icon/components/play.js +16 -0
- package/dist/components/Icon/components/play_empty.js +16 -0
- package/dist/components/Icon/components/play_full.js +15 -0
- package/dist/components/Icon/components/power_off.js +16 -0
- package/dist/components/Icon/components/profile.js +16 -0
- package/dist/components/Icon/components/profile_full.js +16 -0
- package/dist/components/Icon/components/progress.js +15 -0
- package/dist/components/Icon/components/question.js +16 -0
- package/dist/components/Icon/components/rain.js +16 -0
- package/dist/components/Icon/components/receipt_long.js +16 -0
- package/dist/components/Icon/components/record.js +16 -0
- package/dist/components/Icon/components/record_full.js +16 -0
- package/dist/components/Icon/components/refresh.js +15 -0
- package/dist/components/Icon/components/remove.js +15 -0
- package/dist/components/Icon/components/remove_red_eye.js +15 -0
- package/dist/components/Icon/components/rename.js +15 -0
- package/dist/components/Icon/components/return.js +15 -0
- package/dist/components/Icon/components/save.js +15 -0
- package/dist/components/Icon/components/scan.js +15 -0
- package/dist/components/Icon/components/science.js +16 -0
- package/dist/components/Icon/components/science_2.js +15 -0
- package/dist/components/Icon/components/search.js +15 -0
- package/dist/components/Icon/components/sell.js +16 -0
- package/dist/components/Icon/components/sell_full.js +16 -0
- package/dist/components/Icon/components/send.js +15 -0
- package/dist/components/Icon/components/settings.js +15 -0
- package/dist/components/Icon/components/sms_empty.js +16 -0
- package/dist/components/Icon/components/sms_full.js +16 -0
- package/dist/components/Icon/components/square_plus.js +16 -0
- package/dist/components/Icon/components/ssid_chart.js +16 -0
- package/dist/components/Icon/components/stack_batch.js +16 -0
- package/dist/components/Icon/components/stacked_line_chart.js +15 -0
- package/dist/components/Icon/components/star.js +15 -0
- package/dist/components/Icon/components/star_outline.js +15 -0
- package/dist/components/Icon/components/storm.js +16 -0
- package/dist/components/Icon/components/sun.js +16 -0
- package/dist/components/Icon/components/sun_2.js +16 -0
- package/dist/components/Icon/components/sun_full.js +16 -0
- package/dist/components/Icon/components/swap_horiz.js +15 -0
- package/dist/components/Icon/components/tag.js +16 -0
- package/dist/components/Icon/components/tag_add.js +16 -0
- package/dist/components/Icon/components/tag_ok.js +16 -0
- package/dist/components/Icon/components/tag_remove.js +15 -0
- package/dist/components/Icon/components/team.js +15 -0
- package/dist/components/Icon/components/text_snippet.js +15 -0
- package/dist/components/Icon/components/ticket.js +16 -0
- package/dist/components/Icon/components/ticket_full.js +16 -0
- package/dist/components/Icon/components/tools.js +15 -0
- package/dist/components/Icon/components/tree_item.js +18 -0
- package/dist/components/Icon/components/undo.js +15 -0
- package/dist/components/Icon/components/update.js +15 -0
- package/dist/components/Icon/components/update_circle.js +15 -0
- package/dist/components/Icon/components/upload.js +16 -0
- package/dist/components/Icon/components/wallet.js +16 -0
- package/dist/components/Icon/components/warehouse.js +15 -0
- package/dist/components/Icon/components/warning_amber.js +15 -0
- package/dist/components/Icon/components/warning_badge.js +16 -0
- package/dist/components/Icon/components/warning_octogone.js +16 -0
- package/dist/components/Icon/components/warning_shield.js +16 -0
- package/dist/components/Icon/components/wifi.js +16 -0
- package/dist/components/Icon/components/wifi_level.js +16 -0
- package/dist/components/Icon/components/wifi_rounded.js +16 -0
- package/dist/components/Icon/components/wifi_rounded_alert.js +16 -0
- package/dist/components/Icon/components/wifi_settings.js +16 -0
- package/dist/components/Icon/components/wind_turbine.js +16 -0
- package/dist/components/Label/Label.js +33 -0
- package/dist/components/Label/Label.styled.js +28 -0
- package/dist/components/LinearProgressBar/LinearProgressBar.js +30 -0
- package/dist/components/LinearProgressBar/LinearProgressBar.styled.js +73 -0
- package/dist/components/Link/Link.js +13 -0
- package/dist/components/Link/Link.styled.js +49 -0
- package/dist/components/List/List.js +25 -0
- package/dist/components/List/List.styled.js +32 -0
- package/dist/components/List/components/ListItem/ListItem.js +30 -0
- package/dist/components/List/components/ListItem/ListItem.styled.js +67 -0
- package/dist/components/Loader/Loader.js +41 -0
- package/dist/components/Loader/Loader.styled.js +30 -0
- package/dist/components/Menu/Menu.js +23 -0
- package/dist/components/Menu/Menu.styled.js +11 -0
- package/dist/components/MenuItem/MenuItem.js +33 -0
- package/dist/components/Message/Message.js +61 -0
- package/dist/components/Message/Message.styled.js +95 -0
- package/dist/components/Modal/Modal.js +33 -0
- package/dist/components/Modal/Modal.styled.js +69 -0
- package/dist/components/Navigation/Navigation.js +85 -0
- package/dist/components/Navigation/Navigation.styled.js +98 -0
- package/dist/components/Navigation/components/AgregioSolutionsLogo.js +118 -0
- package/dist/components/Navigation/components/ConnectionManagementLogo.js +19 -0
- package/dist/components/Navigation/components/IrisLogo.js +64 -0
- package/dist/components/Navigation/components/OBILogo.js +88 -0
- package/dist/components/Navigation/components/VPPLogo.js +60 -0
- package/dist/components/Navigation/context.js +20 -0
- package/dist/components/NavigationItem/NavigationItem.js +79 -0
- package/dist/components/NavigationItem/NavigationItem.styled.js +98 -0
- package/dist/components/NotificationCard/NotificationCard.js +75 -0
- package/dist/components/NotificationCard/NotificationCard.styled.js +118 -0
- package/dist/components/Notifications/Notifications.js +77 -0
- package/dist/components/Notifications/Notifications.styled.js +62 -0
- package/dist/components/Notifications/components/EmptyNotifications/EmptyNotifications.js +18 -0
- package/dist/components/Notifications/components/EmptyNotifications/EmptyNotifications.styled.js +29 -0
- package/dist/components/NumberField/NumberField.js +99 -0
- package/dist/components/NumberField/NumberField.styled.js +263 -0
- package/dist/components/PageLayout/PageLayout.js +25 -0
- package/dist/components/PageLayout/PageLayout.styled.js +47 -0
- package/dist/components/PageLayout/context.js +15 -0
- package/dist/components/Pagination/Pagination.js +138 -0
- package/dist/components/Pagination/Pagination.styled.js +63 -0
- package/dist/components/Popover/Popover.js +39 -0
- package/dist/components/Popover/Popover.styled.js +108 -0
- package/dist/components/Radio/Radio.js +23 -0
- package/dist/components/Radio/Radio.styled.js +51 -0
- package/dist/components/RadioGroup/RadioGroup.js +37 -0
- package/dist/components/RadioGroup/RadioGroup.styled.js +15 -0
- package/dist/components/RadioGroupItem/RadioGroupItem.js +25 -0
- package/dist/components/RadioGroupItem/RadioGroupItem.styled.js +76 -0
- package/dist/components/RouterProvider/RouterProvider.js +10 -0
- package/dist/components/SearchBar/SearchBar.js +61 -0
- package/dist/components/SearchBar/SearchBar.styled.js +90 -0
- package/dist/components/SearchBar/components/SearchBarInput/SearchBarInput.js +44 -0
- package/dist/components/SearchBar/components/SearchBarInput/SearchBarInput.styled.js +70 -0
- package/dist/components/SearchBar/components/SearchBarLegend/SearchBarLegend.js +46 -0
- package/dist/components/SearchBar/components/SearchBarLegend/SearchBarLegend.styled.js +52 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +20 -0
- package/dist/components/SegmentedControl/SegmentedControlButton/SegmentedControlButton.js +22 -0
- package/dist/components/SegmentedControl/SegmentedControlButton/SegmentedControlButton.styled.js +81 -0
- package/dist/components/SegmentedControl/SegmentedControlList/SegmentedControlList.js +16 -0
- package/dist/components/SegmentedControl/SegmentedControlList/SegmentedControlList.styled.js +9 -0
- package/dist/components/SegmentedControl/SegmentedControlPanel/SegmentedControlPanel.js +11 -0
- package/dist/components/Select/Select.js +96 -0
- package/dist/components/Select/Select.styled.js +102 -0
- package/dist/components/SelectItem/SelectItem.js +34 -0
- package/dist/components/Skeleton/Skeleton.js +21 -0
- package/dist/components/Skeleton/Skeleton.styled.js +42 -0
- package/dist/components/Slider/Slider.js +118 -0
- package/dist/components/Slider/Slider.styled.js +125 -0
- package/dist/components/Stepper/Step/Step.js +65 -0
- package/dist/components/Stepper/Step/Step.styled.js +167 -0
- package/dist/components/Stepper/Stepper.js +17 -0
- package/dist/components/Stepper/Stepper.styled.js +19 -0
- package/dist/components/Stepper/utils/stepperContext.js +9 -0
- package/dist/components/Switch/Switch.js +24 -0
- package/dist/components/Switch/Switch.styled.js +143 -0
- package/dist/components/Tabs/Tab/Tab.js +21 -0
- package/dist/components/Tabs/Tab/Tab.styled.js +51 -0
- package/dist/components/Tabs/TabList/TabList.js +19 -0
- package/dist/components/Tabs/TabList/TabList.styled.js +13 -0
- package/dist/components/Tabs/TabPanel/TabPanel.js +11 -0
- package/dist/components/Tabs/Tabs/Tabs.js +21 -0
- package/dist/components/Tabs/Tabs/Tabs.styled.js +6 -0
- package/dist/components/Tag/Tag.js +16 -0
- package/dist/components/Tag/Tag.styled.js +169 -0
- package/dist/components/TextInput/TextInput.js +66 -0
- package/dist/components/TextInput/TextInput.styled.js +85 -0
- package/dist/components/TimeField/TimeField.js +58 -0
- package/dist/components/TimeField/TimeField.styled.js +55 -0
- package/dist/components/TimePicker/TimePicker.js +93 -0
- package/dist/components/TimePicker/TimePicker.styled.js +11 -0
- package/dist/components/TimePicker/utils/buildOptions/buildOptions.js +9 -0
- package/dist/components/TimePicker/utils/getSegment/getSegment.js +7 -0
- package/dist/components/Timeline/Timeline.js +57 -0
- package/dist/components/Timeline/Timeline.styled.js +35 -0
- package/dist/components/Timeline/components/BlockLineContainer/BlockLineContainer.js +100 -0
- package/dist/components/Timeline/components/BlockLineContainer/BlockLineContainer.styled.js +72 -0
- package/dist/components/Timeline/components/BlockLineContainer/components/ExpandButton/ExpandButton.js +43 -0
- package/dist/components/Timeline/components/BlockLineContainer/components/ExpandButton/ExpandButton.styled.js +15 -0
- package/dist/components/Timeline/components/BlockLineContainer/components/NameBlock/NameBlock.js +32 -0
- package/dist/components/Timeline/components/BlockLineContainer/components/NameBlock/NameBlock.styled.js +55 -0
- package/dist/components/Timeline/components/BlockLineContainer/utils/assignBlocksToLanes/assignBlocksToLanes.js +26 -0
- package/dist/components/Timeline/components/BlockLineContainer/utils/computeItemPosition/computeItemPosition.js +10 -0
- package/dist/components/Timeline/components/BlockLineContainer/utils/getBlockStyles/getBlockStyles.js +25 -0
- package/dist/components/Timeline/components/BlockLineContainer/utils/getLineHeight/getLineHeight.js +8 -0
- package/dist/components/Timeline/components/BlockLineContainer/utils/groupOverlappingBlocks/groupOverlappingBlocks.js +27 -0
- package/dist/components/Timeline/components/BlockLineContainer/utils/isBlockInBoundaries/isBlockInBoundaries.js +6 -0
- package/dist/components/Timeline/components/GroupLineContainer/GroupLineContainer.js +32 -0
- package/dist/components/Timeline/components/GroupLineContainer/GroupLineContainer.styled.js +13 -0
- package/dist/components/Timeline/components/TimelineRange/TimelineRange.js +34 -0
- package/dist/components/Timeline/components/TimelineRange/TimelineRange.styled.js +50 -0
- package/dist/components/Timeline/utils/Timeline.types.js +7 -0
- package/dist/components/Timeline/utils/getGridLineDates/getGridLineDates.js +11 -0
- package/dist/components/Timeline/utils/getUnitMode/getUnitMode.js +7 -0
- package/dist/components/Timeline/utils/mergeBlocksByColor/mergeBlocksByColor.js +41 -0
- package/dist/components/Toaster/Toaster.js +24 -0
- package/dist/components/Toaster/Toaster.styles.js +59 -0
- package/dist/components/ToggleButton/ToggleButton.js +26 -0
- package/dist/components/ToggleButton/ToggleButton.styled.js +61 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js +36 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.styled.js +10 -0
- package/dist/components/Tooltip/Tooltip.js +36 -0
- package/dist/components/Tooltip/Tooltip.styled.js +90 -0
- package/dist/components/YearMonthPicker/YearMonthPicker.js +210 -0
- package/dist/components/YearMonthPicker/YearMonthPicker.styled.js +91 -0
- package/dist/design-system.cjs +404 -483
- package/dist/ds-design-tokens/src/tokens.style.js +159 -0
- package/dist/index.js +84 -0
- package/dist/internal/arrayOfLength/arrayOfLength.js +6 -0
- package/dist/internal/composeRefs/composeRefs.js +21 -0
- package/dist/internal/dateValueToString/dateValueToString.js +7 -0
- package/dist/internal/generateYearsArray/generateYearsArray.js +7 -0
- package/dist/internal/getAriaLabel/getAriaLabel.js +6 -0
- package/dist/internal/getNatureFromMessages/getNatureFromMessages.js +6 -0
- package/dist/internal/stringDateToValue/stringDateToValue.js +7 -0
- package/dist/internal/useHoldToSubmit/useHoldToSubmit.js +26 -0
- package/dist/internal/useResizeObserver/useResizeObserver.js +26 -0
- package/dist/internal/usetranslations/usetranslations.js +8 -0
- package/dist/internal-components/ChartIcon/ChartIcon.js +142 -0
- package/dist/internal-components/ChartIcon/ChartIcon.styled.js +21 -0
- package/dist/internal-components/CoreTextInput/CoreTextInput.styled.js +98 -0
- package/dist/internal-components/DialogLayout/DialogLayout.styled.js +43 -0
- package/dist/internal-components/FormGroupHelper/FormGroupHelper.js +17 -0
- package/dist/internal-components/FormGroupHelper/FormGroupHelper.styled.js +36 -0
- package/dist/internal-components/FormGroupWrapper/FormGroupWrapper.js +59 -0
- package/dist/internal-components/FormGroupWrapper/FormGroupWrapper.styled.js +38 -0
- package/dist/internal-components/Logo/Logo.js +18 -0
- package/dist/internal-components/MultiLineEllipsis/MultiLineEllipsis.js +22 -0
- package/dist/internal-components/MultiLineEllipsis/MultiLineEllipsis.styled.js +12 -0
- package/dist/packages/components/Calendar/doc.md +1 -1
- package/dist/packages/components/Header/doc.md +2 -2
- package/package.json +6 -2
- package/dist/design-system.js +0 -14165
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "../SelectItem/SelectItem.js";
|
|
3
|
+
import t from "../../internal-components/FormGroupWrapper/FormGroupWrapper.js";
|
|
4
|
+
import { Input as n, InputAndTrigger as r, ListBox as i, Popover as a, RootCombobox as o, Trigger as s } from "./Combobox.styled.js";
|
|
5
|
+
import c from "../../internal/getNatureFromMessages/getNatureFromMessages.js";
|
|
6
|
+
import l from "react";
|
|
7
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
8
|
+
//#region packages/components/Combobox/Combobox.tsx
|
|
9
|
+
var f = (e) => {
|
|
10
|
+
if (!("selectedKeys" in e)) return !1;
|
|
11
|
+
let { id: t, selectionMode: n, selectedKeys: r } = e;
|
|
12
|
+
if (n !== "multiple") throw Error(`Combobox "${t}": \`selectedKeys\` requires \`selectionMode="multiple"\``);
|
|
13
|
+
if (!Array.isArray(r)) throw Error(`Combobox "${t}": \`selectedKeys\` must be an array, use \`[]\` when nothing is selected`);
|
|
14
|
+
return !0;
|
|
15
|
+
}, p = (e) => f(e) ? {
|
|
16
|
+
selectionMode: "multiple",
|
|
17
|
+
value: e.selectedKeys,
|
|
18
|
+
onChange: (t) => {
|
|
19
|
+
Array.isArray(t) && e.onSelectionChange(t.map(String));
|
|
20
|
+
}
|
|
21
|
+
} : {
|
|
22
|
+
selectedKey: e.value,
|
|
23
|
+
onSelectionChange: (t) => e.onChange?.(String(t || ""))
|
|
24
|
+
}, m = l.forwardRef((f, m) => {
|
|
25
|
+
let h = f["aria-label"] ?? String(f.label), g = l.useRef(null), _ = c({
|
|
26
|
+
nature: f.nature,
|
|
27
|
+
successHelperText: f.successHelperText,
|
|
28
|
+
errorHelperText: f.errorHelperText,
|
|
29
|
+
warningHelperText: f.warningHelperText
|
|
30
|
+
}), v = {
|
|
31
|
+
...f.wrapperProps,
|
|
32
|
+
htmlForId: f.id,
|
|
33
|
+
label: f.label,
|
|
34
|
+
labelIconRight: f.labelIconRight,
|
|
35
|
+
labelIconRightTooltip: f.labelIconRightTooltip,
|
|
36
|
+
helperTextIcon: f.helperTextIcon,
|
|
37
|
+
helperText: f.helperText,
|
|
38
|
+
errorHelperText: f.errorHelperText,
|
|
39
|
+
errorHelperTextIcon: f.errorHelperTextIcon,
|
|
40
|
+
successHelperText: f.successHelperText,
|
|
41
|
+
successHelperTextIcon: f.successHelperTextIcon,
|
|
42
|
+
warningHelperText: f.warningHelperText,
|
|
43
|
+
warningHelperTextIcon: f.warningHelperTextIcon,
|
|
44
|
+
orientation: f.orientation,
|
|
45
|
+
required: f.required
|
|
46
|
+
};
|
|
47
|
+
return /* @__PURE__ */ u(t, {
|
|
48
|
+
...v,
|
|
49
|
+
children: /* @__PURE__ */ d(o, {
|
|
50
|
+
id: f.id,
|
|
51
|
+
isDisabled: f.disabled,
|
|
52
|
+
isRequired: f.required,
|
|
53
|
+
...p(f),
|
|
54
|
+
disabledKeys: f.disabledIds,
|
|
55
|
+
"data-fullwidth": f.fullWidth,
|
|
56
|
+
"aria-label": h,
|
|
57
|
+
defaultFilter: f.defaultFilter,
|
|
58
|
+
inputValue: f.inputValue,
|
|
59
|
+
defaultInputValue: f.defaultInputValue,
|
|
60
|
+
onInputChange: f.onInputChange,
|
|
61
|
+
items: f.items,
|
|
62
|
+
defaultItems: f.defaultItems,
|
|
63
|
+
children: [/* @__PURE__ */ d(r, {
|
|
64
|
+
ref: g,
|
|
65
|
+
"data-nature": _,
|
|
66
|
+
"data-fullwidth": f.fullWidth,
|
|
67
|
+
children: [
|
|
68
|
+
/* @__PURE__ */ u(n, {
|
|
69
|
+
...f.inputProps,
|
|
70
|
+
placeholder: f.placeholder || f.inputProps?.placeholder,
|
|
71
|
+
ref: m,
|
|
72
|
+
"data-nature": _,
|
|
73
|
+
"data-fullwidth": f.fullWidth,
|
|
74
|
+
hasIcon: !1
|
|
75
|
+
}),
|
|
76
|
+
f.triggerContentRight,
|
|
77
|
+
/* @__PURE__ */ u(s, {
|
|
78
|
+
iconLeft: "expand_more",
|
|
79
|
+
mode: "tertiary"
|
|
80
|
+
})
|
|
81
|
+
]
|
|
82
|
+
}), /* @__PURE__ */ u(a, {
|
|
83
|
+
offset: 4,
|
|
84
|
+
placement: "bottom",
|
|
85
|
+
triggerRef: g,
|
|
86
|
+
children: /* @__PURE__ */ u(i, {
|
|
87
|
+
"data-tall": f.tallDropdown || void 0,
|
|
88
|
+
children: (t) => /* @__PURE__ */ u(e, {
|
|
89
|
+
...t,
|
|
90
|
+
selectionMode: f.selectionMode ?? "single"
|
|
91
|
+
})
|
|
92
|
+
})
|
|
93
|
+
})]
|
|
94
|
+
})
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
//#endregion
|
|
98
|
+
export { m as default };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import e from "../Button/Button.js";
|
|
2
|
+
import { baseDropdownStyles as t } from "../Dropdown/Dropdown.styled.js";
|
|
3
|
+
import { CoreTextInput as n } from "../../internal-components/CoreTextInput/CoreTextInput.styled.js";
|
|
4
|
+
import { styled as r } from "styled-components";
|
|
5
|
+
import { ComboBox as i, Group as a, ListBox as o, Popover as s } from "react-aria-components";
|
|
6
|
+
//#region packages/components/Combobox/Combobox.styled.ts
|
|
7
|
+
var c = r(i)`
|
|
8
|
+
&[data-fullwidth="true"] {
|
|
9
|
+
width: 100%;
|
|
10
|
+
}
|
|
11
|
+
`, l = r(a)`
|
|
12
|
+
display: inline-flex;
|
|
13
|
+
align-items: center;
|
|
14
|
+
min-height: 40px;
|
|
15
|
+
border-radius: var(--radius-rounded);
|
|
16
|
+
background: var(--background-color);
|
|
17
|
+
outline: var(--border-color) solid 1px;
|
|
18
|
+
outline-offset: -1px;
|
|
19
|
+
|
|
20
|
+
&[data-fullwidth="true"] {
|
|
21
|
+
width: 100%;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
&:has(input:focus),
|
|
25
|
+
&:has(input[data-force-focus]) {
|
|
26
|
+
box-shadow:
|
|
27
|
+
#fff 0 0 0 2px,
|
|
28
|
+
var(--color-background-highlight-focus) 0 0 0 4px,
|
|
29
|
+
rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
/* Border and background only: the text and placeholder colors stay on the input, which keeps its own data-nature */
|
|
33
|
+
&[data-disabled] {
|
|
34
|
+
--background-color: var(--color-content-neutral-tertiary);
|
|
35
|
+
--border-color: var(--color-content-neutral-stroke);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[data-nature="default"]:not([data-disabled]) {
|
|
39
|
+
--background-color: var(--color-content-neutral-primary-reversed);
|
|
40
|
+
--border-color: var(--color-content-neutral-stroke);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-nature="negative"]:not([data-disabled]) {
|
|
44
|
+
--background-color: var(--color-content-neutral-primary-reversed);
|
|
45
|
+
--border-color: var(--color-content-message-negative);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
&[data-nature="positive"]:not([data-disabled]) {
|
|
49
|
+
--background-color: var(--color-content-neutral-primary-reversed);
|
|
50
|
+
--border-color: var(--color-content-message-positive-darker);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&[data-nature="warning"]:not([data-disabled]) {
|
|
54
|
+
--background-color: var(--color-content-neutral-primary-reversed);
|
|
55
|
+
--border-color: var(--color-content-message-warning-darker);
|
|
56
|
+
}
|
|
57
|
+
`, u = r(n)`
|
|
58
|
+
flex: 1;
|
|
59
|
+
min-width: 0;
|
|
60
|
+
background: transparent;
|
|
61
|
+
border-radius: 0;
|
|
62
|
+
outline: none;
|
|
63
|
+
|
|
64
|
+
&:focus,
|
|
65
|
+
&[data-force-focus] {
|
|
66
|
+
box-shadow: none;
|
|
67
|
+
}
|
|
68
|
+
`, d = r(e)`
|
|
69
|
+
/* Tighten the gap with whatever sits on the trigger's left (doubled selector to beat the Button's own icon-only padding) */
|
|
70
|
+
&&[data-has-no-text="true"] {
|
|
71
|
+
padding-left: calc(var(--spacing-xs) / 2);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Remove outline/background color because those styles are applied to the field shell instead */
|
|
75
|
+
background-color: transparent !important;
|
|
76
|
+
outline: none !important;
|
|
77
|
+
box-shadow: none !important;
|
|
78
|
+
color: var(--color-content-neutral-tertiary) !important;
|
|
79
|
+
|
|
80
|
+
&:disabled {
|
|
81
|
+
color: var(--color-content-neutral-primary-reversed) !important;
|
|
82
|
+
}
|
|
83
|
+
`, f = r(s)``, p = r(o)`
|
|
84
|
+
${t};
|
|
85
|
+
z-index: var(--z-index-dropdown);
|
|
86
|
+
outline: none;
|
|
87
|
+
width: var(--trigger-width);
|
|
88
|
+
`;
|
|
89
|
+
//#endregion
|
|
90
|
+
export { u as Input, l as InputAndTrigger, p as ListBox, f as Popover, c as RootCombobox, d as Trigger };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "./DataTableRow/DataTableRow.js";
|
|
3
|
+
import t from "../Pagination/Pagination.js";
|
|
4
|
+
import n from "./DataTableRoot/DataTableRoot.js";
|
|
5
|
+
import r from "./DataTableEmptyPlaceholder/DataTableEmptyPlaceholder.js";
|
|
6
|
+
import i from "./DataTableContext.js";
|
|
7
|
+
import a from "./DataTableSkeletonRows/DataTableSkeletonRows.js";
|
|
8
|
+
import { DataTableExpandedRow as o, DataTableOverflowWrapper as s } from "./DataTable.styled.js";
|
|
9
|
+
import { Fragment as c } from "react";
|
|
10
|
+
import { jsx as l, jsxs as u } from "react/jsx-runtime";
|
|
11
|
+
//#region packages/components/DataTable/DataTable.tsx
|
|
12
|
+
var d = 10;
|
|
13
|
+
function f({ table: f, pagination: p, renderSubComponent: m, itemsPerPageOptions: h, size: g = "default", isLoading: _ = !1, ...v }) {
|
|
14
|
+
let y = (f.state.columnFilters?.length ?? 0) > 0 || (f.state.globalFilter?.length ?? 0) > 0, b = f.getHeaderGroups(), x = f.getRowModel().rows, S = f.getRowCount?.() ?? x.length;
|
|
15
|
+
return /* @__PURE__ */ u("div", {
|
|
16
|
+
...v,
|
|
17
|
+
"data-design-system-component": "DataTable",
|
|
18
|
+
children: [
|
|
19
|
+
/* @__PURE__ */ l(i.Provider, {
|
|
20
|
+
value: { size: g },
|
|
21
|
+
children: /* @__PURE__ */ l(s, { children: /* @__PURE__ */ u(n, {
|
|
22
|
+
"aria-busy": _,
|
|
23
|
+
children: [/* @__PURE__ */ l("thead", { children: b.map((e) => /* @__PURE__ */ l("tr", { children: e.headers.map((e) => /* @__PURE__ */ l(f.FlexRender, { header: e }, e.id)) }, e.id)) }), /* @__PURE__ */ u("tbody", { children: [_ && /* @__PURE__ */ l(a, {
|
|
24
|
+
rowCount: p?.pageSize ?? f.state.pagination?.pageSize ?? d,
|
|
25
|
+
columnCount: b[b.length - 1]?.headers.length ?? 0
|
|
26
|
+
}), !_ && x.map((t) => {
|
|
27
|
+
let n = t, r = n.getVisibleCells?.() ?? t.getAllCells(), i = n.getIsExpanded?.() ?? !1;
|
|
28
|
+
return /* @__PURE__ */ u(c, { children: [/* @__PURE__ */ l(e, {
|
|
29
|
+
"data-sub-row-expanded": i,
|
|
30
|
+
"data-is-sub-row": !!t.getParentRow(),
|
|
31
|
+
children: r.map((e) => /* @__PURE__ */ l(f.FlexRender, { cell: e }, e.id))
|
|
32
|
+
}), i && !!m && /* @__PURE__ */ l("tr", { children: /* @__PURE__ */ l(o, {
|
|
33
|
+
colSpan: r.length,
|
|
34
|
+
children: m({ row: t })
|
|
35
|
+
}) })] }, t.id);
|
|
36
|
+
})] })]
|
|
37
|
+
}) })
|
|
38
|
+
}),
|
|
39
|
+
!_ && S === 0 && /* @__PURE__ */ l(r, { withFilters: y }),
|
|
40
|
+
!!p && /* @__PURE__ */ l(t, {
|
|
41
|
+
count: S,
|
|
42
|
+
onPageChange: (e) => f.setPageIndex?.(e),
|
|
43
|
+
pageIndex: p.pageIndex,
|
|
44
|
+
onItemsPerPageChange: (e) => f.setPageSize?.(e),
|
|
45
|
+
itemsPerPage: p.pageSize,
|
|
46
|
+
itemsPerPageOptions: h,
|
|
47
|
+
style: { marginTop: "16px" }
|
|
48
|
+
})
|
|
49
|
+
]
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
//#endregion
|
|
53
|
+
export { f as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled as e } from "styled-components";
|
|
2
|
+
//#region packages/components/DataTable/DataTable.styled.ts
|
|
3
|
+
var t = e.div`
|
|
4
|
+
overflow-x: auto;
|
|
5
|
+
overflow-y: hidden;
|
|
6
|
+
width: 100%;
|
|
7
|
+
`, n = e.td`
|
|
8
|
+
padding: var(--spacing-sm);
|
|
9
|
+
`;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { n as DataTableExpandedRow, t as DataTableOverflowWrapper };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useDataTableContext as e } from "../DataTableContext.js";
|
|
3
|
+
import { IconWrapper as t, TableCell as n, Wrapper as r } from "./DataTableCell.styled.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
6
|
+
//#region packages/components/DataTable/DataTableCell/DataTableCell.tsx
|
|
7
|
+
function o({ children: o, iconLeft: s, border: c, align: l = "left", size: u, compact: d, ...f }) {
|
|
8
|
+
let { size: p } = e();
|
|
9
|
+
return /* @__PURE__ */ i(n, {
|
|
10
|
+
...f,
|
|
11
|
+
"data-border": c,
|
|
12
|
+
children: /* @__PURE__ */ a(r, {
|
|
13
|
+
"data-align": l,
|
|
14
|
+
"data-size": u || p,
|
|
15
|
+
"data-compact": d,
|
|
16
|
+
children: [!!s && /* @__PURE__ */ i(t, { name: s }), o]
|
|
17
|
+
})
|
|
18
|
+
});
|
|
19
|
+
}
|
|
20
|
+
//#endregion
|
|
21
|
+
export { o as default };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import e from "../../Icon/Icon.js";
|
|
2
|
+
import { styled as t } from "styled-components";
|
|
3
|
+
//#region packages/components/DataTable/DataTableCell/DataTableCell.styled.ts
|
|
4
|
+
var n = t.td`
|
|
5
|
+
padding: 0;
|
|
6
|
+
|
|
7
|
+
&[data-border="left"],
|
|
8
|
+
&[data-border="both"] {
|
|
9
|
+
border-left: 1px solid var(--color-content-neutral-stroke);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
&[data-border="right"],
|
|
13
|
+
&[data-border="both"] {
|
|
14
|
+
border-right: 1px solid var(--color-content-neutral-stroke);
|
|
15
|
+
}
|
|
16
|
+
`, r = t.div`
|
|
17
|
+
display: flex;
|
|
18
|
+
align-items: center;
|
|
19
|
+
column-gap: var(--spacing-xs);
|
|
20
|
+
padding: var(--spacing-sm);
|
|
21
|
+
color: var(--color-content-neutral-secondary);
|
|
22
|
+
font-size: var(--text-font-size-md);
|
|
23
|
+
line-height: var(--text-line-height-md);
|
|
24
|
+
font-weight: normal;
|
|
25
|
+
|
|
26
|
+
&[data-compact="true"] {
|
|
27
|
+
padding-block: var(--spacing-xs);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&[data-size="small"] {
|
|
31
|
+
column-gap: var(--spacing-xxs);
|
|
32
|
+
padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-xs)
|
|
33
|
+
var(--spacing-xs);
|
|
34
|
+
font-size: var(--text-font-size-sm);
|
|
35
|
+
line-height: var(--text-line-height-sm);
|
|
36
|
+
|
|
37
|
+
&[data-compact="true"] {
|
|
38
|
+
padding-block: var(--spacing-xxs);
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&[data-size="large"] {
|
|
43
|
+
column-gap: var(--spacing-sm);
|
|
44
|
+
padding: var(--spacing-md);
|
|
45
|
+
font-size: var(--text-font-size-lg);
|
|
46
|
+
line-height: var(--text-line-height-lg);
|
|
47
|
+
|
|
48
|
+
&[data-compact="true"] {
|
|
49
|
+
padding-block: var(--spacing-sm);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&[data-align="center"] {
|
|
54
|
+
justify-content: center;
|
|
55
|
+
text-align: center;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&[data-align="right"] {
|
|
59
|
+
justify-content: flex-end;
|
|
60
|
+
text-align: right;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// Remove padding for specific components to avoid double padding that can make the Cell too tall
|
|
64
|
+
& [data-design-system-component="Radio"] {
|
|
65
|
+
padding: 0 !important;
|
|
66
|
+
}
|
|
67
|
+
& [data-design-system-component="RadioGroupItem"] {
|
|
68
|
+
padding: 0 !important;
|
|
69
|
+
}
|
|
70
|
+
& [data-design-system-component="Checkbox"] {
|
|
71
|
+
padding: 0 !important;
|
|
72
|
+
}
|
|
73
|
+
`, i = t(e)`
|
|
74
|
+
display: inline-block;
|
|
75
|
+
font-size: var(--text-font-size-xl);
|
|
76
|
+
`;
|
|
77
|
+
//#endregion
|
|
78
|
+
export { i as IconWrapper, n as TableCell, r as Wrapper };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { createContext as e, useContext as t } from "react";
|
|
3
|
+
//#region packages/components/DataTable/DataTableContext.tsx
|
|
4
|
+
var n = e({ size: "default" });
|
|
5
|
+
function r() {
|
|
6
|
+
return t(n) || { size: "default" };
|
|
7
|
+
}
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as default, r as useDataTableContext };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import e from "../../../internal/usetranslations/usetranslations.js";
|
|
2
|
+
import { Root as t } from "./DataTableEmptyPlaceholder.styled.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsxs as n } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/DataTable/DataTableEmptyPlaceholder/DataTableEmptyPlaceholder.tsx
|
|
6
|
+
function r({ withFilters: r }) {
|
|
7
|
+
let a = e(i);
|
|
8
|
+
return /* @__PURE__ */ n(t, { children: [
|
|
9
|
+
a.noData,
|
|
10
|
+
r && /* @__PURE__ */ n("b", { children: [" ", a.withFilters] }),
|
|
11
|
+
"."
|
|
12
|
+
] });
|
|
13
|
+
}
|
|
14
|
+
var i = {
|
|
15
|
+
en: {
|
|
16
|
+
noData: "Sorry, there is currently no data to display",
|
|
17
|
+
withFilters: "with the active filters"
|
|
18
|
+
},
|
|
19
|
+
fr: {
|
|
20
|
+
noData: "Désolé, il n'y a actuellement aucune donnée à afficher",
|
|
21
|
+
withFilters: "avec les filtres actifs"
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as default };
|
package/dist/components/DataTable/DataTableEmptyPlaceholder/DataTableEmptyPlaceholder.styled.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { styled as e } from "styled-components";
|
|
2
|
+
//#region packages/components/DataTable/DataTableEmptyPlaceholder/DataTableEmptyPlaceholder.styled.ts
|
|
3
|
+
var t = e.div`
|
|
4
|
+
padding: var(--spacing-md);
|
|
5
|
+
text-align: center;
|
|
6
|
+
color: var(--color-content-message-warning);
|
|
7
|
+
background-color: var(--color-content-neutral-primary-reversed);
|
|
8
|
+
`;
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as Root };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useDataTableContext as e } from "../DataTableContext.js";
|
|
3
|
+
import { IconSortWrapper as t, IconWrapper as n, SortButton as r, SortIcon as i, TableHead as a, Wrapper as o } from "./DataTableHeader.styled.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
6
|
+
//#region packages/components/DataTable/DataTableHeader/DataTableHeader.tsx
|
|
7
|
+
var l = {
|
|
8
|
+
asc: "ascending",
|
|
9
|
+
desc: "descending",
|
|
10
|
+
none: "none"
|
|
11
|
+
};
|
|
12
|
+
function u({ text: u, iconLeft: d, sortDirection: f = "none", onSortClick: p, border: m, align: h = "left", size: g, ..._ }) {
|
|
13
|
+
let { size: v } = e(), y = !!p;
|
|
14
|
+
return /* @__PURE__ */ s(a, {
|
|
15
|
+
..._,
|
|
16
|
+
"data-design-system-component": "DataTableHeader",
|
|
17
|
+
"data-border": m,
|
|
18
|
+
"data-sortable": y ? "true" : void 0,
|
|
19
|
+
"aria-sort": y ? l[f] : void 0,
|
|
20
|
+
onClick: p,
|
|
21
|
+
children: /* @__PURE__ */ c(o, {
|
|
22
|
+
"data-align": h,
|
|
23
|
+
"data-size": g || v,
|
|
24
|
+
children: [
|
|
25
|
+
!!d && /* @__PURE__ */ s(n, { name: d }),
|
|
26
|
+
/* @__PURE__ */ s(r, {
|
|
27
|
+
as: y ? "button" : "span",
|
|
28
|
+
type: y ? "button" : void 0,
|
|
29
|
+
"data-sort-direction": f,
|
|
30
|
+
children: u
|
|
31
|
+
}),
|
|
32
|
+
y && /* @__PURE__ */ c(t, { children: [/* @__PURE__ */ s(i, {
|
|
33
|
+
name: "expand_less",
|
|
34
|
+
"data-active": f === "asc"
|
|
35
|
+
}), /* @__PURE__ */ s(i, {
|
|
36
|
+
name: "expand_more",
|
|
37
|
+
"data-active": f === "desc"
|
|
38
|
+
})] })
|
|
39
|
+
]
|
|
40
|
+
})
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
//#endregion
|
|
44
|
+
export { u as default };
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import e from "../../Icon/Icon.js";
|
|
2
|
+
import { css as t, styled as n } from "styled-components";
|
|
3
|
+
//#region packages/components/DataTable/DataTableHeader/DataTableHeader.styled.ts
|
|
4
|
+
var r = n.th`
|
|
5
|
+
padding: 0;
|
|
6
|
+
vertical-align: bottom;
|
|
7
|
+
background: var(--color-background-neutral-underground-1);
|
|
8
|
+
|
|
9
|
+
&[data-border="left"],
|
|
10
|
+
&[data-border="both"] {
|
|
11
|
+
border-left: 1px solid var(--color-content-neutral-stroke);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&[data-border="right"],
|
|
15
|
+
&[data-border="both"] {
|
|
16
|
+
border-right: 1px solid var(--color-content-neutral-stroke);
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
&[data-sortable="true"]:hover {
|
|
20
|
+
background: var(--color-content-action-action-lighter);
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
}
|
|
23
|
+
`, i = t`
|
|
24
|
+
${r}[data-sortable="true"]:hover & {
|
|
25
|
+
color: var(--color-content-action-action);
|
|
26
|
+
}
|
|
27
|
+
`, a = n.div`
|
|
28
|
+
display: flex;
|
|
29
|
+
align-items: center;
|
|
30
|
+
width: 100%;
|
|
31
|
+
column-gap: var(--spacing-xs);
|
|
32
|
+
padding: var(--spacing-sm);
|
|
33
|
+
border-bottom: 1px solid var(--color-content-neutral-stroke);
|
|
34
|
+
font-size: var(--text-font-size-md);
|
|
35
|
+
line-height: var(--text-line-height-md);
|
|
36
|
+
|
|
37
|
+
&[data-size="small"] {
|
|
38
|
+
column-gap: var(--spacing-xxs);
|
|
39
|
+
padding: var(--spacing-xs) var(--spacing-sm) var(--spacing-xs)
|
|
40
|
+
var(--spacing-xs);
|
|
41
|
+
font-size: var(--text-font-size-sm);
|
|
42
|
+
line-height: var(--text-line-height-sm);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&[data-size="large"] {
|
|
46
|
+
column-gap: var(--spacing-sm);
|
|
47
|
+
padding: var(--spacing-md);
|
|
48
|
+
font-size: var(--text-font-size-lg);
|
|
49
|
+
line-height: var(--text-line-height-lg);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[data-align="center"] {
|
|
53
|
+
justify-content: center;
|
|
54
|
+
text-align: center;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[data-align="right"] {
|
|
58
|
+
justify-content: flex-end;
|
|
59
|
+
text-align: right;
|
|
60
|
+
}
|
|
61
|
+
`, o = n(e)`
|
|
62
|
+
display: inline-block;
|
|
63
|
+
font-size: var(--text-font-size-xl);
|
|
64
|
+
color: var(--color-content-neutral-secondary);
|
|
65
|
+
|
|
66
|
+
${i}
|
|
67
|
+
`, s = n.button`
|
|
68
|
+
padding: 0;
|
|
69
|
+
border: none;
|
|
70
|
+
background: none;
|
|
71
|
+
font-weight: bold;
|
|
72
|
+
font-family: inherit;
|
|
73
|
+
font-size: inherit;
|
|
74
|
+
line-height: inherit;
|
|
75
|
+
color: var(--color-content-neutral-primary);
|
|
76
|
+
appearance: none;
|
|
77
|
+
white-space: nowrap;
|
|
78
|
+
|
|
79
|
+
${r}[data-sortable="true"] & {
|
|
80
|
+
cursor: pointer;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
&[data-sort-direction="asc"],
|
|
84
|
+
&[data-sort-direction="desc"] {
|
|
85
|
+
color: var(--color-content-action-action);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
${o} {
|
|
89
|
+
color: var(--color-content-neutral-primary);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
${i}
|
|
93
|
+
`, c = n(e)`
|
|
94
|
+
font-size: var(--text-font-size-md);
|
|
95
|
+
color: var(--color-content-neutral-tertiary);
|
|
96
|
+
|
|
97
|
+
&:first-child {
|
|
98
|
+
margin-bottom: -8px;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
&[data-active="true"] {
|
|
102
|
+
color: var(--color-content-action-action);
|
|
103
|
+
}
|
|
104
|
+
`, l = n.div`
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
align-items: center;
|
|
108
|
+
`;
|
|
109
|
+
//#endregion
|
|
110
|
+
export { l as IconSortWrapper, o as IconWrapper, s as SortButton, c as SortIcon, r as TableHead, a as Wrapper };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Table as e } from "./DataTableRoot.styled.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/DataTable/DataTableRoot/DataTableRoot.tsx
|
|
6
|
+
function n({ children: n, ...r }) {
|
|
7
|
+
return /* @__PURE__ */ t(e, {
|
|
8
|
+
...r,
|
|
9
|
+
children: n
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { styled as e } from "styled-components";
|
|
2
|
+
//#region packages/components/DataTable/DataTableRoot/DataTableRoot.styled.ts
|
|
3
|
+
var t = e.table`
|
|
4
|
+
width: 100%;
|
|
5
|
+
border-collapse: collapse;
|
|
6
|
+
border-spacing: 0;
|
|
7
|
+
background-color: var(--color-content-neutral-primary-reversed);
|
|
8
|
+
|
|
9
|
+
tbody {
|
|
10
|
+
border-top: 1px solid var(--color-content-neutral-stroke);
|
|
11
|
+
|
|
12
|
+
tr {
|
|
13
|
+
border-bottom: 1px solid var(--color-content-neutral-stroke);
|
|
14
|
+
|
|
15
|
+
&[data-is-sub-row="true"]:has(~ [data-is-sub-row="true"]) {
|
|
16
|
+
border-bottom: none;
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
//#endregion
|
|
22
|
+
export { t as Table };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { TableRow as e } from "./DataTableRow.styled.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/DataTable/DataTableRow/DataTableRow.tsx
|
|
6
|
+
function n({ children: n, ...r }) {
|
|
7
|
+
return /* @__PURE__ */ t(e, {
|
|
8
|
+
...r,
|
|
9
|
+
children: n
|
|
10
|
+
});
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { n as default };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { styled as e } from "styled-components";
|
|
2
|
+
//#region packages/components/DataTable/DataTableRow/DataTableRow.styled.ts
|
|
3
|
+
var t = e.tr`
|
|
4
|
+
background-color: var(--color-content-neutral-primary-reversed);
|
|
5
|
+
|
|
6
|
+
&[data-sub-row-expanded="true"] {
|
|
7
|
+
background-color: var(--color-content-message-informative-lighter);
|
|
8
|
+
}
|
|
9
|
+
`;
|
|
10
|
+
//#endregion
|
|
11
|
+
export { t as TableRow };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "../DataTableRow/DataTableRow.js";
|
|
3
|
+
import t from "../../../internal/arrayOfLength/arrayOfLength.js";
|
|
4
|
+
import n from "../../Skeleton/Skeleton.js";
|
|
5
|
+
import r from "../DataTableCell/DataTableCell.js";
|
|
6
|
+
import { Fragment as i, jsx as a } from "react/jsx-runtime";
|
|
7
|
+
//#region packages/components/DataTable/DataTableSkeletonRows/DataTableSkeletonRows.tsx
|
|
8
|
+
function o({ rowCount: o, columnCount: s }) {
|
|
9
|
+
return /* @__PURE__ */ a(i, { children: t(o).map((i) => /* @__PURE__ */ a(e, {
|
|
10
|
+
"data-design-system-component": "DataTableSkeletonRows",
|
|
11
|
+
"aria-hidden": "true",
|
|
12
|
+
children: t(s).map((e) => /* @__PURE__ */ a(r, { children: /* @__PURE__ */ a(n, {
|
|
13
|
+
variant: "text",
|
|
14
|
+
width: "100%"
|
|
15
|
+
}) }, e))
|
|
16
|
+
}, i)) });
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
19
|
+
export { o as default };
|