@agregio-solutions/design-system 2.2.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 +442 -521
- 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/DataTable/DataTable.d.ts +10 -1
- package/dist/packages/components/DataTable/DataTableRoot/DataTableRoot.d.ts +4 -0
- package/dist/packages/components/DataTable/DataTableSkeletonRows/DataTableSkeletonRows.d.ts +11 -0
- package/dist/packages/components/DataTable/doc.md +112 -11
- package/dist/packages/components/Header/doc.md +2 -2
- package/package.json +6 -2
- package/dist/design-system.js +0 -14148
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "../../internal/usetranslations/usetranslations.js";
|
|
3
|
+
import { Dialog as t, Modal as n, ModalOverlay as r, ResultsCount as i, ScrollZone as a } from "./SearchBar.styled.js";
|
|
4
|
+
import o from "./components/SearchBarInput/SearchBarInput.js";
|
|
5
|
+
import s from "./components/SearchBarLegend/SearchBarLegend.js";
|
|
6
|
+
import { useEffect as c } from "react";
|
|
7
|
+
import { Autocomplete as l } from "react-aria-components";
|
|
8
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
9
|
+
//#region packages/components/SearchBar/SearchBar.tsx
|
|
10
|
+
function f({ children: f, isOpen: m, onOpenChange: h, onClear: g, resultsCount: _, width: v, inputProps: y }) {
|
|
11
|
+
let b = e(p), { value: x, onChange: S, ...C } = y;
|
|
12
|
+
c(() => {
|
|
13
|
+
let e = (e) => {
|
|
14
|
+
(e.metaKey || e.ctrlKey) && e.key.toLowerCase() === "k" && (e.preventDefault(), m || h(!0));
|
|
15
|
+
};
|
|
16
|
+
return window.addEventListener("keydown", e), () => window.removeEventListener("keydown", e);
|
|
17
|
+
}, [m, h]);
|
|
18
|
+
let w = b.noResults;
|
|
19
|
+
return _ === 1 ? w = `1 ${b.result}` : _ > 1 && (w = `${_} ${b.results}`), /* @__PURE__ */ u(r, {
|
|
20
|
+
isOpen: m,
|
|
21
|
+
onOpenChange: h,
|
|
22
|
+
isDismissable: !0,
|
|
23
|
+
children: /* @__PURE__ */ u(n, {
|
|
24
|
+
style: { "--modal-width": v || "800px" },
|
|
25
|
+
children: /* @__PURE__ */ u(t, {
|
|
26
|
+
"aria-label": b.title,
|
|
27
|
+
children: /* @__PURE__ */ d(l, {
|
|
28
|
+
inputValue: x,
|
|
29
|
+
onInputChange: S,
|
|
30
|
+
children: [
|
|
31
|
+
/* @__PURE__ */ u(o, {
|
|
32
|
+
...C,
|
|
33
|
+
onClear: g,
|
|
34
|
+
withResults: !!_,
|
|
35
|
+
autoFocus: !0
|
|
36
|
+
}),
|
|
37
|
+
!!x && /* @__PURE__ */ u(i, { children: /* @__PURE__ */ u("div", { children: w }) }),
|
|
38
|
+
/* @__PURE__ */ u(a, { children: f }),
|
|
39
|
+
!!_ && /* @__PURE__ */ u(s, {})
|
|
40
|
+
]
|
|
41
|
+
})
|
|
42
|
+
})
|
|
43
|
+
})
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
var p = {
|
|
47
|
+
en: {
|
|
48
|
+
title: "Search",
|
|
49
|
+
result: "result",
|
|
50
|
+
results: "results",
|
|
51
|
+
noResults: "No results found"
|
|
52
|
+
},
|
|
53
|
+
fr: {
|
|
54
|
+
title: "Rechercher",
|
|
55
|
+
result: "résultat",
|
|
56
|
+
results: "résultats",
|
|
57
|
+
noResults: "Aucun résultat trouvé"
|
|
58
|
+
}
|
|
59
|
+
};
|
|
60
|
+
//#endregion
|
|
61
|
+
export { f as default };
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
import { keyframes as e, styled as t } from "styled-components";
|
|
2
|
+
import { Dialog as n, Modal as r, ModalOverlay as i } from "react-aria-components";
|
|
3
|
+
//#region packages/components/SearchBar/SearchBar.styled.ts
|
|
4
|
+
var a = e`
|
|
5
|
+
from {
|
|
6
|
+
transform: translate(-50%, 50px) scale(0.9);
|
|
7
|
+
opacity: 0;
|
|
8
|
+
}
|
|
9
|
+
to {
|
|
10
|
+
transform: translate(-50%, 0) scale(1);
|
|
11
|
+
opacity: 1;
|
|
12
|
+
}
|
|
13
|
+
`, o = e`
|
|
14
|
+
from { background: rgba(0 0 0 / 0); }
|
|
15
|
+
to { background: rgba(0 12 51 / 0.7); }
|
|
16
|
+
`, s = t(i)`
|
|
17
|
+
position: fixed;
|
|
18
|
+
z-index: var(--z-index-modal);
|
|
19
|
+
top: 0;
|
|
20
|
+
left: 0;
|
|
21
|
+
right: 0;
|
|
22
|
+
height: var(--visual-viewport-height);
|
|
23
|
+
background: rgba(0 12 51 / 0.7);
|
|
24
|
+
|
|
25
|
+
&[data-entering] {
|
|
26
|
+
animation: ${o} 100ms;
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@media (prefers-reduced-motion: reduce) {
|
|
30
|
+
&[data-entering],
|
|
31
|
+
&[data-exiting] {
|
|
32
|
+
animation: none;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
`, c = t(r)`
|
|
36
|
+
position: fixed;
|
|
37
|
+
top: 12vh;
|
|
38
|
+
left: 50%;
|
|
39
|
+
transform: translate(-50%, 0);
|
|
40
|
+
width: min(var(--modal-width), calc(100vw - var(--spacing-md)));
|
|
41
|
+
background: var(--color-content-neutral-primary-reversed);
|
|
42
|
+
outline: none;
|
|
43
|
+
border-radius: var(--radius-full);
|
|
44
|
+
overflow: hidden;
|
|
45
|
+
|
|
46
|
+
&[data-entering] {
|
|
47
|
+
animation: ${a} 100ms;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
@media (prefers-reduced-motion: reduce) {
|
|
51
|
+
&[data-entering],
|
|
52
|
+
&[data-exiting] {
|
|
53
|
+
animation: none;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
`, l = t(n)`
|
|
57
|
+
outline: none;
|
|
58
|
+
max-height: min(calc(100vh - 12vh - var(--spacing-md)), 632px);
|
|
59
|
+
display: flex;
|
|
60
|
+
flex-direction: column;
|
|
61
|
+
`, u = t.div`
|
|
62
|
+
padding: var(--spacing-xxs);
|
|
63
|
+
|
|
64
|
+
div {
|
|
65
|
+
padding: var(--spacing-xs) var(--spacing-sm);
|
|
66
|
+
border-radius: var(--radius-rounded);
|
|
67
|
+
background: var(--color-content-action-action-lighter);
|
|
68
|
+
color: var(--color-content-neutral-primary);
|
|
69
|
+
font-size: var(--text-font-size-md);
|
|
70
|
+
font-style: normal;
|
|
71
|
+
font-weight: 400;
|
|
72
|
+
line-height: var(--text-line-height-md);
|
|
73
|
+
}
|
|
74
|
+
`, d = t.div`
|
|
75
|
+
flex: 1;
|
|
76
|
+
overflow-y: auto;
|
|
77
|
+
display: inline;
|
|
78
|
+
position: relative;
|
|
79
|
+
|
|
80
|
+
[data-component="tab-list"] {
|
|
81
|
+
margin-top: var(--spacing-xs);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.react-aria-ListBox > section > header {
|
|
85
|
+
padding: var(--spacing-md) var(--spacing-sm) var(--spacing-xs)
|
|
86
|
+
var(--spacing-sm) !important;
|
|
87
|
+
}
|
|
88
|
+
`;
|
|
89
|
+
//#endregion
|
|
90
|
+
export { l as Dialog, c as Modal, s as ModalOverlay, u as ResultsCount, d as ScrollZone };
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import e from "../../../../internal/usetranslations/usetranslations.js";
|
|
2
|
+
import { ClearButton as t, ClearButtonIcon as n, SearchBarInputContainer as r, SearchBarInputField as i, SearchBarInputIcon as a } from "./SearchBarInput.styled.js";
|
|
3
|
+
import o, { forwardRef as s } from "react";
|
|
4
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/SearchBar/components/SearchBarInput/SearchBarInput.tsx
|
|
6
|
+
var u = s(({ value: o, onChange: s, onClear: u, withResults: f, ...p }, m) => {
|
|
7
|
+
let h = e(d);
|
|
8
|
+
return /* @__PURE__ */ l(r, {
|
|
9
|
+
...o !== void 0 && { value: o },
|
|
10
|
+
...s && { onChange: s },
|
|
11
|
+
onClear: u,
|
|
12
|
+
"aria-label": p["aria-label"] || h.placeholder,
|
|
13
|
+
"data-with-results": f,
|
|
14
|
+
children: [
|
|
15
|
+
/* @__PURE__ */ c(a, {
|
|
16
|
+
name: "search",
|
|
17
|
+
"aria-hidden": "true"
|
|
18
|
+
}),
|
|
19
|
+
/* @__PURE__ */ c(i, {
|
|
20
|
+
...p,
|
|
21
|
+
ref: m,
|
|
22
|
+
placeholder: p.placeholder || h.placeholder
|
|
23
|
+
}),
|
|
24
|
+
/* @__PURE__ */ c(t, {
|
|
25
|
+
"aria-label": h.clearButton,
|
|
26
|
+
children: /* @__PURE__ */ c(n, {
|
|
27
|
+
name: "close",
|
|
28
|
+
"aria-hidden": "true"
|
|
29
|
+
})
|
|
30
|
+
})
|
|
31
|
+
]
|
|
32
|
+
});
|
|
33
|
+
}), d = {
|
|
34
|
+
en: {
|
|
35
|
+
placeholder: "Search",
|
|
36
|
+
clearButton: "Clear"
|
|
37
|
+
},
|
|
38
|
+
fr: {
|
|
39
|
+
placeholder: "Rechercher",
|
|
40
|
+
clearButton: "Effacer"
|
|
41
|
+
}
|
|
42
|
+
}, f = o.memo(u);
|
|
43
|
+
//#endregion
|
|
44
|
+
export { f as default };
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import e from "../../../Icon/Icon.js";
|
|
2
|
+
import { styled as t } from "styled-components";
|
|
3
|
+
import { Button as n, Input as r, SearchField as i } from "react-aria-components";
|
|
4
|
+
//#region packages/components/SearchBar/components/SearchBarInput/SearchBarInput.styled.ts
|
|
5
|
+
var a = t(i)`
|
|
6
|
+
width: 100%;
|
|
7
|
+
height: 56px;
|
|
8
|
+
display: flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
gap: var(--spacing-sm);
|
|
11
|
+
background: var(--color-background-neutral-overground);
|
|
12
|
+
padding: var(--spacing-sm);
|
|
13
|
+
border-bottom: 1px solid var(--color-content-neutral-stroke);
|
|
14
|
+
|
|
15
|
+
&:focus-within {
|
|
16
|
+
background: var(--color-background-neutral-underground-1);
|
|
17
|
+
}
|
|
18
|
+
`, o = t(e)`
|
|
19
|
+
width: 24px;
|
|
20
|
+
height: 24px;
|
|
21
|
+
color: var(--color-content-neutral-primary);
|
|
22
|
+
flex-shrink: 0;
|
|
23
|
+
|
|
24
|
+
${a}:focus-within & {
|
|
25
|
+
color: var(--color-content-action-action);
|
|
26
|
+
}
|
|
27
|
+
`, s = t(r)`
|
|
28
|
+
flex: 1;
|
|
29
|
+
border: none;
|
|
30
|
+
outline: none;
|
|
31
|
+
background: transparent;
|
|
32
|
+
font-family: inherit;
|
|
33
|
+
font-size: var(--text-font-size-md);
|
|
34
|
+
line-height: var(--text-line-height-md);
|
|
35
|
+
color: var(--color-content-neutral-secondary);
|
|
36
|
+
font-weight: 700;
|
|
37
|
+
font-style: normal;
|
|
38
|
+
|
|
39
|
+
&::placeholder {
|
|
40
|
+
color: var(--color-content-neutral-secondary);
|
|
41
|
+
font-weight: 400;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&:focus {
|
|
45
|
+
outline: none;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Safari adds its own clear button on a search input
|
|
49
|
+
&::-webkit-search-cancel-button {
|
|
50
|
+
display: none;
|
|
51
|
+
}
|
|
52
|
+
`, c = t(n)`
|
|
53
|
+
all: unset;
|
|
54
|
+
display: flex;
|
|
55
|
+
align-items: center;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
cursor: pointer;
|
|
58
|
+
|
|
59
|
+
// react-aria keeps the clear button mounted
|
|
60
|
+
${a}[data-empty] & {
|
|
61
|
+
display: none;
|
|
62
|
+
}
|
|
63
|
+
`, l = t(e)`
|
|
64
|
+
width: 24px;
|
|
65
|
+
height: 24px;
|
|
66
|
+
color: var(--color-content-action-action);
|
|
67
|
+
flex-shrink: 0;
|
|
68
|
+
`;
|
|
69
|
+
//#endregion
|
|
70
|
+
export { c as ClearButton, l as ClearButtonIcon, a as SearchBarInputContainer, s as SearchBarInputField, o as SearchBarInputIcon };
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import e from "../../../Icon/Icon.js";
|
|
2
|
+
import t from "../../../../internal/usetranslations/usetranslations.js";
|
|
3
|
+
import { KeyFrame as n, KeySection as r, KeyText as i, LabelText as a, LegendItem as o, SearchBarLegendContainer as s } from "./SearchBarLegend.styled.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
6
|
+
//#region packages/components/SearchBar/components/SearchBarLegend/SearchBarLegend.tsx
|
|
7
|
+
function u({ className: u, style: f }) {
|
|
8
|
+
let p = t(d);
|
|
9
|
+
return /* @__PURE__ */ l(s, {
|
|
10
|
+
className: u,
|
|
11
|
+
style: f,
|
|
12
|
+
children: [
|
|
13
|
+
/* @__PURE__ */ l(o, { children: [/* @__PURE__ */ l(r, { children: [/* @__PURE__ */ c(n, {
|
|
14
|
+
"data-type": "icon",
|
|
15
|
+
children: /* @__PURE__ */ c(e, { name: "arrow_upward" })
|
|
16
|
+
}), /* @__PURE__ */ c(n, {
|
|
17
|
+
"data-type": "icon",
|
|
18
|
+
children: /* @__PURE__ */ c(e, { name: "arrow_downward" })
|
|
19
|
+
})] }), /* @__PURE__ */ c(a, { children: p.navigation })] }),
|
|
20
|
+
/* @__PURE__ */ l(o, { children: [/* @__PURE__ */ c(r, { children: /* @__PURE__ */ c(n, {
|
|
21
|
+
"data-type": "icon",
|
|
22
|
+
children: /* @__PURE__ */ c(e, { name: "arrow_enter" })
|
|
23
|
+
}) }), /* @__PURE__ */ c(a, { children: p.choose })] }),
|
|
24
|
+
/* @__PURE__ */ l(o, { children: [/* @__PURE__ */ c(r, { children: /* @__PURE__ */ c(n, {
|
|
25
|
+
"data-type": "text",
|
|
26
|
+
children: /* @__PURE__ */ c(i, { children: p.esc })
|
|
27
|
+
}) }), /* @__PURE__ */ c(a, { children: p.close })] })
|
|
28
|
+
]
|
|
29
|
+
});
|
|
30
|
+
}
|
|
31
|
+
var d = {
|
|
32
|
+
en: {
|
|
33
|
+
navigation: "Navigation",
|
|
34
|
+
choose: "Choose",
|
|
35
|
+
close: "Close",
|
|
36
|
+
esc: "esc"
|
|
37
|
+
},
|
|
38
|
+
fr: {
|
|
39
|
+
navigation: "Navigation",
|
|
40
|
+
choose: "Choisir",
|
|
41
|
+
close: "Fermer",
|
|
42
|
+
esc: "ech"
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
//#endregion
|
|
46
|
+
export { u as default };
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { styled as e } from "styled-components";
|
|
2
|
+
//#region packages/components/SearchBar/components/SearchBarLegend/SearchBarLegend.styled.ts
|
|
3
|
+
var t = e.div`
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
width: 100%;
|
|
7
|
+
gap: var(--spacing-lg);
|
|
8
|
+
padding: var(--spacing-sm);
|
|
9
|
+
background: var(--color-background-neutral-overground);
|
|
10
|
+
`, n = e.div`
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
gap: var(--spacing-xs);
|
|
14
|
+
`, r = e.div`
|
|
15
|
+
display: flex;
|
|
16
|
+
align-items: center;
|
|
17
|
+
gap: var(--spacing-xxs);
|
|
18
|
+
`, i = e.div`
|
|
19
|
+
display: flex;
|
|
20
|
+
align-items: center;
|
|
21
|
+
justify-content: flex-start;
|
|
22
|
+
padding: var(--spacing-xs);
|
|
23
|
+
border: var(--stroke-default) solid var(--color-content-neutral-stroke);
|
|
24
|
+
border-radius: var(--radius-full);
|
|
25
|
+
min-width: 32px;
|
|
26
|
+
height: 32px;
|
|
27
|
+
|
|
28
|
+
&[data-type="text"] {
|
|
29
|
+
padding: var(--spacing-xs);
|
|
30
|
+
min-width: auto;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
/* Icon styling */
|
|
34
|
+
svg {
|
|
35
|
+
width: 16px;
|
|
36
|
+
height: 16px;
|
|
37
|
+
color: var(--color-content-neutral-secondary);
|
|
38
|
+
}
|
|
39
|
+
`, a = e.span`
|
|
40
|
+
font-size: 12px;
|
|
41
|
+
line-height: 16px;
|
|
42
|
+
font-weight: 700;
|
|
43
|
+
color: var(--color-content-neutral-secondary);
|
|
44
|
+
text-align: center;
|
|
45
|
+
`, o = e.span`
|
|
46
|
+
font-size: var(--text-font-size-md);
|
|
47
|
+
line-height: var(--text-line-height-md);
|
|
48
|
+
font-weight: 700;
|
|
49
|
+
color: var(--color-content-neutral-secondary);
|
|
50
|
+
`;
|
|
51
|
+
//#endregion
|
|
52
|
+
export { i as KeyFrame, r as KeySection, a as KeyText, o as LabelText, n as LegendItem, t as SearchBarLegendContainer };
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { Tabs as t } from "react-aria-components";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/SegmentedControl/SegmentedControl.tsx
|
|
6
|
+
var r = e.forwardRef((e, r) => {
|
|
7
|
+
let { children: i, isDisabled: a, selectedKey: o, onSelectionChange: s, defaultSelectedKey: c, className: l, style: u } = e;
|
|
8
|
+
return /* @__PURE__ */ n(t, {
|
|
9
|
+
ref: r,
|
|
10
|
+
isDisabled: a,
|
|
11
|
+
selectedKey: o,
|
|
12
|
+
onSelectionChange: (e) => s?.(String(e)),
|
|
13
|
+
defaultSelectedKey: c,
|
|
14
|
+
className: l,
|
|
15
|
+
style: u,
|
|
16
|
+
children: i
|
|
17
|
+
});
|
|
18
|
+
});
|
|
19
|
+
//#endregion
|
|
20
|
+
export { r as default };
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { AriaTab as e, IconWrapper as t, Label as n } from "./SegmentedControlButton.styled.js";
|
|
3
|
+
import r from "react";
|
|
4
|
+
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/SegmentedControl/SegmentedControlButton/SegmentedControlButton.tsx
|
|
6
|
+
var o = r.forwardRef((r, o) => {
|
|
7
|
+
let { id: s, href: c, target: l, text: u, icon: d, style: f, className: p, isDisabled: m, routerOptions: h, ...g } = r;
|
|
8
|
+
return !u && !d ? null : /* @__PURE__ */ a(e, {
|
|
9
|
+
...g,
|
|
10
|
+
ref: o,
|
|
11
|
+
id: s,
|
|
12
|
+
href: c,
|
|
13
|
+
style: f,
|
|
14
|
+
className: p,
|
|
15
|
+
isDisabled: m,
|
|
16
|
+
routerOptions: h,
|
|
17
|
+
target: l,
|
|
18
|
+
children: [!!d && /* @__PURE__ */ i(t, { name: d }), !!u && /* @__PURE__ */ i(n, { children: u })]
|
|
19
|
+
});
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { o as default };
|
package/dist/components/SegmentedControl/SegmentedControlButton/SegmentedControlButton.styled.js
ADDED
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import e from "../../Icon/Icon.js";
|
|
2
|
+
import { styled as t } from "styled-components";
|
|
3
|
+
import { Tab as n } from "react-aria-components";
|
|
4
|
+
//#region packages/components/SegmentedControl/SegmentedControlButton/SegmentedControlButton.styled.ts
|
|
5
|
+
var r = t.div``, i = t(n)`
|
|
6
|
+
appearance: none;
|
|
7
|
+
position: relative;
|
|
8
|
+
display: inline-flex;
|
|
9
|
+
align-items: center;
|
|
10
|
+
justify-content: center;
|
|
11
|
+
gap: var(--spacing-xs);
|
|
12
|
+
padding: calc(var(--spacing-xs) - 1px) var(--spacing-sm);
|
|
13
|
+
border: var(--color-content-neutral-stroke) solid 1px;
|
|
14
|
+
background: var(--color-background-neutral-ground);
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-weight: 700;
|
|
17
|
+
color: var(--color-content-action-action);
|
|
18
|
+
text-align: center;
|
|
19
|
+
cursor: pointer;
|
|
20
|
+
white-space: nowrap;
|
|
21
|
+
text-decoration: none;
|
|
22
|
+
font-size: var(--text-font-size-sm);
|
|
23
|
+
line-height: var(--text-line-height-md);
|
|
24
|
+
outline: none;
|
|
25
|
+
|
|
26
|
+
// Manage rounded corners
|
|
27
|
+
&:first-child {
|
|
28
|
+
border-radius: var(--radius-rounded) 0px 0px var(--radius-rounded);
|
|
29
|
+
}
|
|
30
|
+
&:last-child {
|
|
31
|
+
border-radius: 0px var(--radius-rounded) var(--radius-rounded) 0px;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Manage border-between
|
|
35
|
+
&:not(:last-child) {
|
|
36
|
+
border-right: none;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Manage hover state
|
|
40
|
+
&:not([data-disabled])[data-hovered],
|
|
41
|
+
&:not([data-disabled])[data-force-hovered] {
|
|
42
|
+
background: var(--color-content-action-action-lighter);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
// Manage selected state
|
|
46
|
+
&:not([data-disabled])[data-selected] {
|
|
47
|
+
color: var(--color-content-neutral-primary-reversed);
|
|
48
|
+
background: var(--color-content-action-action);
|
|
49
|
+
}
|
|
50
|
+
&:not([data-disabled])[data-selected][data-hovered],
|
|
51
|
+
&:not([data-disabled])[data-selected][data-force-hovered] {
|
|
52
|
+
color: var(--color-content-neutral-primary-reversed);
|
|
53
|
+
background: var(--color-content-action-action-darker);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
// Manage keyboard focus state (and temporary active state as well)
|
|
57
|
+
&:not([data-disabled])[data-focus-visible],
|
|
58
|
+
&:not([data-disabled])[data-force-focus-visible] {
|
|
59
|
+
&::before {
|
|
60
|
+
content: "";
|
|
61
|
+
position: absolute;
|
|
62
|
+
inset: 0;
|
|
63
|
+
z-index: 1;
|
|
64
|
+
border-radius: inherit;
|
|
65
|
+
box-shadow:
|
|
66
|
+
#fff 0 0 0 2px,
|
|
67
|
+
var(--color-background-highlight-focus) 0 0 0 4px,
|
|
68
|
+
rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&[data-disabled] {
|
|
73
|
+
cursor: not-allowed;
|
|
74
|
+
background: var(--color-content-neutral-tertiary);
|
|
75
|
+
color: var(--color-content-neutral-primary-reversed);
|
|
76
|
+
}
|
|
77
|
+
`, a = t(e)`
|
|
78
|
+
font-size: var(--text-font-size-xl);
|
|
79
|
+
`;
|
|
80
|
+
//#endregion
|
|
81
|
+
export { i as AriaTab, a as IconWrapper, r as Label };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { AriaTabList as e } from "./SegmentedControlList.styled.js";
|
|
3
|
+
import t from "react";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/SegmentedControl/SegmentedControlList/SegmentedControlList.tsx
|
|
6
|
+
var r = t.forwardRef((t, r) => {
|
|
7
|
+
let { children: i, className: a, style: o } = t;
|
|
8
|
+
return /* @__PURE__ */ n(e, {
|
|
9
|
+
ref: r,
|
|
10
|
+
className: a,
|
|
11
|
+
style: o,
|
|
12
|
+
children: i
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
//#endregion
|
|
16
|
+
export { r as default };
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { styled as e } from "styled-components";
|
|
2
|
+
import { TabList as t } from "react-aria-components";
|
|
3
|
+
//#region packages/components/SegmentedControl/SegmentedControlList/SegmentedControlList.styled.ts
|
|
4
|
+
var n = e(t)`
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
`;
|
|
8
|
+
//#endregion
|
|
9
|
+
export { n as AriaTabList };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "react";
|
|
3
|
+
import { TabPanel as t } from "react-aria-components";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/SegmentedControl/SegmentedControlPanel/SegmentedControlPanel.tsx
|
|
6
|
+
var r = e.forwardRef((e, r) => /* @__PURE__ */ n(t, {
|
|
7
|
+
ref: r,
|
|
8
|
+
...e
|
|
9
|
+
}));
|
|
10
|
+
//#endregion
|
|
11
|
+
export { r as default };
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "../../internal/usetranslations/usetranslations.js";
|
|
3
|
+
import t from "../Badge/Badge.js";
|
|
4
|
+
import n from "../../internal-components/FormGroupWrapper/FormGroupWrapper.js";
|
|
5
|
+
import r from "../../internal/getNatureFromMessages/getNatureFromMessages.js";
|
|
6
|
+
import { ArrowIcon as i, Button as a, ListBox as o, MultipleSelectValue as s, Popover as c, RootSelect as l, SelectValue as u, TriggerContentRight as d } from "./Select.styled.js";
|
|
7
|
+
import f from "react";
|
|
8
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
9
|
+
//#region packages/components/Select/Select.tsx
|
|
10
|
+
var g = f.forwardRef((f, g) => {
|
|
11
|
+
let v = e(_), y = f["aria-label"] ?? String(f.label), b = r({
|
|
12
|
+
nature: f.nature,
|
|
13
|
+
successHelperText: f.successHelperText,
|
|
14
|
+
errorHelperText: f.errorHelperText,
|
|
15
|
+
warningHelperText: f.warningHelperText
|
|
16
|
+
}), x = {
|
|
17
|
+
...f.wrapperProps,
|
|
18
|
+
htmlForId: f.id,
|
|
19
|
+
label: f.label,
|
|
20
|
+
labelIconRight: f.labelIconRight,
|
|
21
|
+
labelIconRightTooltip: f.labelIconRightTooltip,
|
|
22
|
+
helperTextIcon: f.helperTextIcon,
|
|
23
|
+
helperText: f.helperText,
|
|
24
|
+
errorHelperText: f.errorHelperText,
|
|
25
|
+
errorHelperTextIcon: f.errorHelperTextIcon,
|
|
26
|
+
successHelperText: f.successHelperText,
|
|
27
|
+
successHelperTextIcon: f.successHelperTextIcon,
|
|
28
|
+
warningHelperText: f.warningHelperText,
|
|
29
|
+
warningHelperTextIcon: f.warningHelperTextIcon,
|
|
30
|
+
orientation: f.orientation,
|
|
31
|
+
required: f.required
|
|
32
|
+
}, S = f.mode === "multiple" ? {
|
|
33
|
+
selectionMode: "multiple",
|
|
34
|
+
value: f.selectedKeys,
|
|
35
|
+
onChange: (e) => {
|
|
36
|
+
Array.isArray(e) && f.onSelectionChange(e.map(String));
|
|
37
|
+
}
|
|
38
|
+
} : {
|
|
39
|
+
selectionMode: "single",
|
|
40
|
+
value: f.value,
|
|
41
|
+
onChange: (e) => {
|
|
42
|
+
Array.isArray(e) || f.onChange(String(e));
|
|
43
|
+
},
|
|
44
|
+
name: f.name
|
|
45
|
+
};
|
|
46
|
+
return /* @__PURE__ */ m(n, {
|
|
47
|
+
...x,
|
|
48
|
+
children: /* @__PURE__ */ h(l, {
|
|
49
|
+
ref: g,
|
|
50
|
+
id: f.id,
|
|
51
|
+
isDisabled: f.disabled,
|
|
52
|
+
isRequired: f.required,
|
|
53
|
+
disabledKeys: f.disabledIds,
|
|
54
|
+
defaultOpen: f.defaultOpen,
|
|
55
|
+
isOpen: f.open,
|
|
56
|
+
onOpenChange: f.onOpenChange,
|
|
57
|
+
"data-fullwidth": f.fullWidth,
|
|
58
|
+
"aria-label": y,
|
|
59
|
+
...S,
|
|
60
|
+
children: [/* @__PURE__ */ h(a, {
|
|
61
|
+
...f.buttonProps,
|
|
62
|
+
type: "button",
|
|
63
|
+
"data-nature": b,
|
|
64
|
+
"data-fullwidth": f.fullWidth,
|
|
65
|
+
children: [f.mode === "multiple" ? /* @__PURE__ */ h(p, { children: [!f.selectedKeys?.length && /* @__PURE__ */ m("span", {
|
|
66
|
+
"data-placeholder": !0,
|
|
67
|
+
children: f.placeholder || ""
|
|
68
|
+
}), !!f.selectedKeys?.length && /* @__PURE__ */ h(s, { children: [/* @__PURE__ */ m(t, {
|
|
69
|
+
value: f.selectedKeys.length,
|
|
70
|
+
nature: "informative"
|
|
71
|
+
}), f.selectedKeys.length === 1 ? ` ${v.itemSelected}` : ` ${v.itemsSelected}`] })] }) : /* @__PURE__ */ m(u, { children: (e) => e.isPlaceholder ? f.placeholder || "" : e.selectedText }), /* @__PURE__ */ h(d, { children: [f.triggerContentRight, /* @__PURE__ */ m(i, {
|
|
72
|
+
name: "expand_more",
|
|
73
|
+
"data-disabled": f.disabled
|
|
74
|
+
})] })]
|
|
75
|
+
}), /* @__PURE__ */ m(c, {
|
|
76
|
+
offset: 4,
|
|
77
|
+
placement: "bottom",
|
|
78
|
+
children: /* @__PURE__ */ m(o, {
|
|
79
|
+
"data-tall": f.tallDropdown || void 0,
|
|
80
|
+
children: f.children
|
|
81
|
+
})
|
|
82
|
+
})]
|
|
83
|
+
})
|
|
84
|
+
});
|
|
85
|
+
}), _ = {
|
|
86
|
+
en: {
|
|
87
|
+
itemsSelected: " items selected",
|
|
88
|
+
itemSelected: " item selected"
|
|
89
|
+
},
|
|
90
|
+
fr: {
|
|
91
|
+
itemsSelected: " éléments sélectionnés",
|
|
92
|
+
itemSelected: " élément sélectionné"
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
//#endregion
|
|
96
|
+
export { g as default };
|