@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,65 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { CloseButtonWrapper as e, Description as t, Disclosure as n, DisclosurePanel as r, Heading as i, IconWrapper as a, OpenButton as o, RightContentWrapper as s, Title as c, TitleGroup as l, TopHeading as u } from "./Accordion.styled.js";
|
|
3
|
+
import d from "../../internal/usetranslations/usetranslations.js";
|
|
4
|
+
import f from "../Button/Button.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { Fragment as p, jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
7
|
+
//#region packages/components/Accordion/Accordion.tsx
|
|
8
|
+
function g({ children: g, title: v, titleContentLeft: y, titleContentRight: b, description: x, unmountOnExit: S = !1, defaultExpanded: C = !1, isExpanded: w, onExpandedChange: T, isDisabled: E = !1, className: D, style: O, nature: k = "default", noPadding: A = !1, withBottomCloseButton: j = !1 }) {
|
|
9
|
+
let M = d(_);
|
|
10
|
+
return /* @__PURE__ */ m(n, {
|
|
11
|
+
defaultExpanded: C,
|
|
12
|
+
isExpanded: w,
|
|
13
|
+
onExpandedChange: T,
|
|
14
|
+
isDisabled: E,
|
|
15
|
+
className: D,
|
|
16
|
+
style: O,
|
|
17
|
+
"data-nature": k,
|
|
18
|
+
"data-no-padding": A,
|
|
19
|
+
children: ({ isExpanded: n }) => /* @__PURE__ */ h(p, { children: [
|
|
20
|
+
/* @__PURE__ */ h(i, { children: [/* @__PURE__ */ h(u, { children: [/* @__PURE__ */ h(l, { children: [
|
|
21
|
+
y,
|
|
22
|
+
/* @__PURE__ */ m(o, {
|
|
23
|
+
slot: "trigger",
|
|
24
|
+
"data-open": n,
|
|
25
|
+
"data-disabled": E,
|
|
26
|
+
"data-nature": k,
|
|
27
|
+
"data-full-width": !b,
|
|
28
|
+
children: /* @__PURE__ */ m(c, {
|
|
29
|
+
slot: "trigger",
|
|
30
|
+
children: v
|
|
31
|
+
})
|
|
32
|
+
}),
|
|
33
|
+
!!b && /* @__PURE__ */ m(s, { children: b })
|
|
34
|
+
] }), /* @__PURE__ */ m(o, {
|
|
35
|
+
slot: "trigger",
|
|
36
|
+
"data-open": n,
|
|
37
|
+
"data-disabled": E,
|
|
38
|
+
"data-nature": k,
|
|
39
|
+
excludeFromTabOrder: !0,
|
|
40
|
+
"data-close-button": !0,
|
|
41
|
+
children: /* @__PURE__ */ m(a, { name: n ? "minimize" : "add" })
|
|
42
|
+
})] }), x && /* @__PURE__ */ m(t, {
|
|
43
|
+
"data-disabled": E,
|
|
44
|
+
children: x
|
|
45
|
+
})] }),
|
|
46
|
+
/* @__PURE__ */ m(r, {
|
|
47
|
+
"data-padding": !A,
|
|
48
|
+
children: S && !n ? null : /* @__PURE__ */ m(p, { children: g })
|
|
49
|
+
}),
|
|
50
|
+
n && j && /* @__PURE__ */ m(e, { children: /* @__PURE__ */ m(f, {
|
|
51
|
+
slot: "trigger",
|
|
52
|
+
text: M.close,
|
|
53
|
+
mode: "tertiary",
|
|
54
|
+
size: "small",
|
|
55
|
+
iconLeft: "expand_less"
|
|
56
|
+
}) })
|
|
57
|
+
] })
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
var _ = {
|
|
61
|
+
en: { close: "Close" },
|
|
62
|
+
fr: { close: "Fermer" }
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
export { g as default };
|
|
@@ -0,0 +1,130 @@
|
|
|
1
|
+
import e from "../Icon/Icon.js";
|
|
2
|
+
import { styled as t } from "styled-components";
|
|
3
|
+
import { Button as n, Disclosure as r, DisclosurePanel as i, Heading as a } from "react-aria-components";
|
|
4
|
+
//#region packages/components/Accordion/Accordion.styled.ts
|
|
5
|
+
var o = t(r)`
|
|
6
|
+
border-bottom: 1px solid var(--color-content-neutral-stroke);
|
|
7
|
+
background: var(--color-background-neutral-ground);
|
|
8
|
+
word-break: break-word;
|
|
9
|
+
|
|
10
|
+
&[data-nature="positive"] {
|
|
11
|
+
background: var(--color-content-message-positive-lighter);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
&[data-nature="negative"] {
|
|
15
|
+
background: var(--color-content-message-negative-lighter);
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
&[data-nature="informative"] {
|
|
19
|
+
background: var(--color-content-message-informative-lighter);
|
|
20
|
+
}
|
|
21
|
+
`, s = t(a)`
|
|
22
|
+
margin: 0;
|
|
23
|
+
padding: var(--spacing-sm);
|
|
24
|
+
`, c = t.div`
|
|
25
|
+
display: flex;
|
|
26
|
+
align-items: flex-start;
|
|
27
|
+
column-gap: var(--spacing-xs);
|
|
28
|
+
`, l = t.div`
|
|
29
|
+
flex: 1;
|
|
30
|
+
display: flex;
|
|
31
|
+
align-items: flex-start;
|
|
32
|
+
flex-wrap: wrap;
|
|
33
|
+
column-gap: var(--spacing-xs);
|
|
34
|
+
row-gap: var(--spacing-xxs);
|
|
35
|
+
`, u = t(n)`
|
|
36
|
+
all: unset;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
font-size: var(--text-font-size-xl);
|
|
39
|
+
line-height: var(--text-font-size-xl);
|
|
40
|
+
color: var(--color-content-action-action);
|
|
41
|
+
|
|
42
|
+
&[data-full-width="true"] {
|
|
43
|
+
flex: 1;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
&[data-close-button="true"] {
|
|
47
|
+
height: 24px;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
&[data-nature="positive"] {
|
|
51
|
+
color: var(--color-content-message-positive-darker);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
&[data-nature="negative"] {
|
|
55
|
+
color: var(--color-content-message-negative-darker);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
&[data-nature="informative"] {
|
|
59
|
+
color: var(--color-content-message-informative-darkest);
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
&[data-hovered="true"],
|
|
63
|
+
&[data-focus-visible] {
|
|
64
|
+
color: var(--color-content-action-action-darker);
|
|
65
|
+
|
|
66
|
+
&[data-nature="positive"] {
|
|
67
|
+
color: var(--color-content-message-positive-darkest);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&[data-nature="negative"] {
|
|
71
|
+
color: var(--color-content-message-negative-darkest);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
&[data-nature="informative"] {
|
|
75
|
+
color: var(--color-content-action-action-darker);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
&[data-disabled="true"] {
|
|
80
|
+
color: var(--color-content-neutral-secondary);
|
|
81
|
+
cursor: not-allowed;
|
|
82
|
+
opacity: 0.5;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
&:focus,
|
|
86
|
+
&:focus-visible {
|
|
87
|
+
outline: none;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
&[data-focus-visible="true"] {
|
|
91
|
+
outline: 2px solid var(--color-background-highlight-focus);
|
|
92
|
+
outline-offset: 2px;
|
|
93
|
+
border-radius: var(--radius-rounded);
|
|
94
|
+
}
|
|
95
|
+
`, d = t.div`
|
|
96
|
+
font-size: var(--text-font-size-md);
|
|
97
|
+
line-height: var(--text-line-height-md);
|
|
98
|
+
font-weight: 700;
|
|
99
|
+
font-style: normal;
|
|
100
|
+
`, f = t(e)``, p = t.div`
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
gap: var(--spacing-xs);
|
|
104
|
+
`, m = t.div`
|
|
105
|
+
color: var(--color-content-neutral-secondary);
|
|
106
|
+
font-size: var(--text-font-size-sm);
|
|
107
|
+
line-height: var(--text-line-height-sm);
|
|
108
|
+
font-style: normal;
|
|
109
|
+
font-weight: 400;
|
|
110
|
+
|
|
111
|
+
&[data-disabled="true"] {
|
|
112
|
+
color: var(--color-content-neutral-secondary);
|
|
113
|
+
opacity: 0.5;
|
|
114
|
+
}
|
|
115
|
+
`, h = t(i)`
|
|
116
|
+
color: var(--color-content-neutral-primary);
|
|
117
|
+
font-size: var(--text-font-size-md);
|
|
118
|
+
line-height: var(--text-line-height-md);
|
|
119
|
+
font-style: normal;
|
|
120
|
+
font-weight: 400;
|
|
121
|
+
|
|
122
|
+
&[data-padding="true"] {
|
|
123
|
+
padding: 0 var(--spacing-sm) var(--spacing-sm) var(--spacing-sm);
|
|
124
|
+
}
|
|
125
|
+
`, g = t.div`
|
|
126
|
+
padding: var(--spacing-xs) var(--spacing-md) var(--spacing-md)
|
|
127
|
+
var(--spacing-md);
|
|
128
|
+
`;
|
|
129
|
+
//#endregion
|
|
130
|
+
export { g as CloseButtonWrapper, m as Description, o as Disclosure, h as DisclosurePanel, s as Heading, f as IconWrapper, u as OpenButton, p as RightContentWrapper, d as Title, l as TitleGroup, c as TopHeading };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Core as e } from "./Badge.styled.js";
|
|
3
|
+
import t from "react";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/Badge/Badge.tsx
|
|
6
|
+
var r = t.forwardRef(({ value: t, nature: r = "default", max: a, showZero: o, invisible: s, variant: c = "standard", ...l }, u) => {
|
|
7
|
+
if (i({
|
|
8
|
+
value: t,
|
|
9
|
+
variant: c,
|
|
10
|
+
showZero: o
|
|
11
|
+
})) return null;
|
|
12
|
+
let d = t;
|
|
13
|
+
return t && a && typeof t == "number" && t > a && (d = `${a}+`), c === "dot" && (d = ""), /* @__PURE__ */ n(e, {
|
|
14
|
+
ref: u,
|
|
15
|
+
"data-nature": r,
|
|
16
|
+
"data-invisible": s,
|
|
17
|
+
"data-variant": c,
|
|
18
|
+
$value: t,
|
|
19
|
+
$max: a,
|
|
20
|
+
...l,
|
|
21
|
+
children: d
|
|
22
|
+
});
|
|
23
|
+
}), i = ({ value: e, variant: t, showZero: n }) => t === "dot" ? !1 : e == null || e === 0 && !n;
|
|
24
|
+
//#endregion
|
|
25
|
+
export { r as default };
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { styled as e } from "styled-components";
|
|
2
|
+
//#region packages/components/Badge/Badge.styled.ts
|
|
3
|
+
var t = e.span`
|
|
4
|
+
display: flex;
|
|
5
|
+
align-items: center;
|
|
6
|
+
justify-content: center;
|
|
7
|
+
flex: none;
|
|
8
|
+
// Small hack to make sure the badge remains perfectly rounded when the value is less than 10
|
|
9
|
+
${({ $value: e, $max: t }) => typeof e == "number" && e <= 9 && e <= (t || Infinity) ? "width: 24px;" : ""}
|
|
10
|
+
padding: 2px var(--spacing-xs);
|
|
11
|
+
border-radius: 9999px;
|
|
12
|
+
background: var(--color-background-neutral-underground-2);
|
|
13
|
+
font-size: var(--text-font-size-sm);
|
|
14
|
+
line-height: var(--text-line-height-sm);
|
|
15
|
+
font-weight: bold;
|
|
16
|
+
color: var(--color-content-neutral-secondary);
|
|
17
|
+
|
|
18
|
+
&[data-nature="negative"] {
|
|
19
|
+
background: var(--color-content-message-negative-darker);
|
|
20
|
+
color: var(--color-content-neutral-primary-reversed);
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&[data-nature="positive"] {
|
|
24
|
+
background: var(--color-content-message-positive-darker);
|
|
25
|
+
color: var(--color-content-neutral-primary-reversed);
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
&[data-nature="warning"] {
|
|
29
|
+
background: var(--color-content-message-warning-darker);
|
|
30
|
+
color: var(--color-content-neutral-primary-reversed);
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
&[data-nature="informative"] {
|
|
34
|
+
background: var(--color-content-message-informative-darker);
|
|
35
|
+
color: var(--color-content-neutral-primary-reversed);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[data-variant="dot"] {
|
|
39
|
+
width: 10px;
|
|
40
|
+
height: 10px;
|
|
41
|
+
padding: 0;
|
|
42
|
+
border: 1px solid var(--color-content-neutral-primary-reversed);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&[data-invisible="true"] {
|
|
46
|
+
visibility: hidden;
|
|
47
|
+
}
|
|
48
|
+
`;
|
|
49
|
+
//#endregion
|
|
50
|
+
export { t as Core };
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "../../internal/usetranslations/usetranslations.js";
|
|
3
|
+
import t from "../Dropdown/Dropdown.js";
|
|
4
|
+
import n from "../SelectItem/SelectItem.js";
|
|
5
|
+
import { Breadcrumb as r, BreadcrumbsContainer as i, ChevronIcon as a, HomeIcon as o, ShowMoreButton as s } from "./Breadcrumbs.styled.js";
|
|
6
|
+
import "react";
|
|
7
|
+
import { Link as c, ListBox as l, Popover as u, Select as d } from "react-aria-components";
|
|
8
|
+
import { jsx as f, jsxs as p } from "react/jsx-runtime";
|
|
9
|
+
//#region packages/components/Breadcrumbs/Breadcrumbs.tsx
|
|
10
|
+
var m = ({ links: m, ...g }) => {
|
|
11
|
+
let _ = e(h);
|
|
12
|
+
if (!m.length || m.length < 2) return null;
|
|
13
|
+
let v = m[0], y = m.length > 1 ? m[m.length - 1] : null, b = m.slice(1, -1);
|
|
14
|
+
return /* @__PURE__ */ f("nav", {
|
|
15
|
+
...g,
|
|
16
|
+
"aria-label": _.breadcrumbs,
|
|
17
|
+
children: /* @__PURE__ */ p(i, { children: [
|
|
18
|
+
/* @__PURE__ */ p(r, {
|
|
19
|
+
"data-last-link": m.length === 1 ? "true" : void 0,
|
|
20
|
+
children: [/* @__PURE__ */ f(o, {
|
|
21
|
+
name: "home",
|
|
22
|
+
"aria-hidden": !0
|
|
23
|
+
}), /* @__PURE__ */ f(c, {
|
|
24
|
+
href: v.href,
|
|
25
|
+
"aria-current": m.length === 1 ? "page" : void 0,
|
|
26
|
+
routerOptions: v.routerOptions,
|
|
27
|
+
children: v.text || _.home
|
|
28
|
+
})]
|
|
29
|
+
}),
|
|
30
|
+
m.length > 4 ? /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ p(r, { children: [/* @__PURE__ */ f(a, {
|
|
31
|
+
name: "chevron_right",
|
|
32
|
+
"aria-hidden": !0
|
|
33
|
+
}), /* @__PURE__ */ f(s, {
|
|
34
|
+
type: "button",
|
|
35
|
+
"aria-label": _.showMore,
|
|
36
|
+
children: "..."
|
|
37
|
+
})] }), /* @__PURE__ */ f(u, { children: /* @__PURE__ */ f(t, { children: /* @__PURE__ */ f(l, { children: b.map((e, t) => /* @__PURE__ */ f(n, {
|
|
38
|
+
id: e.text,
|
|
39
|
+
text: e.text,
|
|
40
|
+
href: e.href,
|
|
41
|
+
routerOptions: e.routerOptions
|
|
42
|
+
}, t)) }) }) })] }) : b.map((e, t) => /* @__PURE__ */ p(r, { children: [/* @__PURE__ */ f(a, {
|
|
43
|
+
name: "chevron_right",
|
|
44
|
+
"aria-hidden": !0
|
|
45
|
+
}), /* @__PURE__ */ f(c, {
|
|
46
|
+
href: e.href,
|
|
47
|
+
"aria-current": t === m.length - 1 ? "page" : void 0,
|
|
48
|
+
routerOptions: e.routerOptions,
|
|
49
|
+
children: e.text
|
|
50
|
+
})] }, t)),
|
|
51
|
+
y && /* @__PURE__ */ p(r, {
|
|
52
|
+
"data-last-link": !0,
|
|
53
|
+
children: [/* @__PURE__ */ f(a, {
|
|
54
|
+
name: "chevron_right",
|
|
55
|
+
"aria-hidden": !0
|
|
56
|
+
}), /* @__PURE__ */ f(c, {
|
|
57
|
+
href: y.href,
|
|
58
|
+
"aria-current": "page",
|
|
59
|
+
routerOptions: y.routerOptions,
|
|
60
|
+
children: y.text
|
|
61
|
+
})]
|
|
62
|
+
})
|
|
63
|
+
] })
|
|
64
|
+
});
|
|
65
|
+
}, h = {
|
|
66
|
+
en: {
|
|
67
|
+
home: "Home",
|
|
68
|
+
showMore: "Show more",
|
|
69
|
+
breadcrumbs: "Breadcrumbs"
|
|
70
|
+
},
|
|
71
|
+
fr: {
|
|
72
|
+
home: "Accueil",
|
|
73
|
+
showMore: "Afficher plus",
|
|
74
|
+
breadcrumbs: "Fil d'Ariane"
|
|
75
|
+
}
|
|
76
|
+
};
|
|
77
|
+
//#endregion
|
|
78
|
+
export { m as default };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import e from "../Icon/Icon.js";
|
|
2
|
+
import { styled as t } from "styled-components";
|
|
3
|
+
import { Button as n } from "react-aria-components";
|
|
4
|
+
//#region packages/components/Breadcrumbs/Breadcrumbs.styled.ts
|
|
5
|
+
var r = t.ol`
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-wrap: wrap;
|
|
8
|
+
align-items: center;
|
|
9
|
+
list-style: none;
|
|
10
|
+
column-gap: var(--spacing-xxs);
|
|
11
|
+
row-gap: var(--spacing-xxs);
|
|
12
|
+
padding: 0;
|
|
13
|
+
`, i = t.li`
|
|
14
|
+
display: flex;
|
|
15
|
+
align-items: end;
|
|
16
|
+
column-gap: var(--spacing-xxs);
|
|
17
|
+
font-size: var(--text-font-size-sm);
|
|
18
|
+
line-height: var(--text-line-height-sm);
|
|
19
|
+
font-style: normal;
|
|
20
|
+
font-weight: 700;
|
|
21
|
+
|
|
22
|
+
&:not([data-last-link]) {
|
|
23
|
+
a,
|
|
24
|
+
button {
|
|
25
|
+
text-decoration: none;
|
|
26
|
+
color: var(--color-content-neutral-secondary);
|
|
27
|
+
border-bottom: 1px solid transparent;
|
|
28
|
+
|
|
29
|
+
&:hover,
|
|
30
|
+
&:focus-visible {
|
|
31
|
+
border-color: var(--color-content-action-action);
|
|
32
|
+
background: var(--color-content-action-action-lighter);
|
|
33
|
+
color: var(--color-content-action-action);
|
|
34
|
+
outline: none;
|
|
35
|
+
border-radius: 0;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
&[data-last-link] {
|
|
41
|
+
a,
|
|
42
|
+
button,
|
|
43
|
+
span {
|
|
44
|
+
text-decoration: none;
|
|
45
|
+
border-bottom: 1px solid transparent;
|
|
46
|
+
color: var(--color-content-neutral-tertiary);
|
|
47
|
+
cursor: none;
|
|
48
|
+
pointer-events: none;
|
|
49
|
+
outline: none;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
`, a = t(n)`
|
|
53
|
+
all: unset;
|
|
54
|
+
cursor: pointer;
|
|
55
|
+
align-self: stretch;
|
|
56
|
+
padding: 0 var(--spacing-xs);
|
|
57
|
+
margin-left: calc(var(--spacing-xs) * -1);
|
|
58
|
+
margin-right: calc(var(--spacing-xs) * -1);
|
|
59
|
+
border-radius: 0;
|
|
60
|
+
|
|
61
|
+
&:focus-visible {
|
|
62
|
+
outline: 2px solid var(--color-background-highlight-focus);
|
|
63
|
+
border-radius: var(--radius-rounded);
|
|
64
|
+
}
|
|
65
|
+
`, o = t(e)`
|
|
66
|
+
color: var(--color-content-neutral-secondary);
|
|
67
|
+
font-size: 24px;
|
|
68
|
+
`, s = t(e)`
|
|
69
|
+
color: var(--color-content-neutral-tertiary);
|
|
70
|
+
font-size: 24px;
|
|
71
|
+
`;
|
|
72
|
+
//#endregion
|
|
73
|
+
export { i as Breadcrumb, r as BreadcrumbsContainer, s as ChevronIcon, o as HomeIcon, a as ShowMoreButton };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { useHoldToSubmit as e } from "../../internal/useHoldToSubmit/useHoldToSubmit.js";
|
|
3
|
+
import { BadgeWrapper as t, CoreButton as n, CoreLink as r } from "./Button.styled.js";
|
|
4
|
+
import i from "./components/HoldProgress/HoldProgress.js";
|
|
5
|
+
import a from "./components/IconLeftElement/IconLeftElement.js";
|
|
6
|
+
import o from "./components/IconRightElement/IconRightElement.js";
|
|
7
|
+
import s from "../Tooltip/Tooltip.js";
|
|
8
|
+
import c from "../Badge/Badge.js";
|
|
9
|
+
import { forwardRef as l } from "react";
|
|
10
|
+
import { jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
11
|
+
//#region packages/components/Button/Button.tsx
|
|
12
|
+
var f = l(({ text: l, mode: f = "primary", size: p = "medium", nature: m = "action", iconLeft: h, iconRight: g, type: _, onClick: v, disabled: y, fullWidth: b, isLoading: x, href: S, target: C, tooltip: w, tooltipProps: T, badgeProps: E, holdToSubmitDuration: D, onPressStart: O, onPressEnd: k, ...A }, j) => {
|
|
13
|
+
let { requiresHold: M, isHolding: N, pressProps: P } = e({
|
|
14
|
+
duration: D,
|
|
15
|
+
onComplete: (e) => {
|
|
16
|
+
if (v?.(), _ !== "submit") return;
|
|
17
|
+
let t = e;
|
|
18
|
+
t.type = "submit", t.form?.requestSubmit(t), t.type = "button";
|
|
19
|
+
},
|
|
20
|
+
onPressStart: O,
|
|
21
|
+
onPressEnd: k
|
|
22
|
+
}), F = l == null || l === "";
|
|
23
|
+
if (F && !h && !g) throw Error("You must provide a text or an icon");
|
|
24
|
+
if (h && g) throw Error("You can't provide both an iconLeft and an iconRight");
|
|
25
|
+
let I = !!S, L = I ? r : n, R = I ? { isDisabled: y || x } : {
|
|
26
|
+
isDisabled: y,
|
|
27
|
+
isPending: x
|
|
28
|
+
}, z = /* @__PURE__ */ d(L, {
|
|
29
|
+
...A,
|
|
30
|
+
ref: j,
|
|
31
|
+
type: M ? "button" : _ || "button",
|
|
32
|
+
"data-size": p,
|
|
33
|
+
"data-nature": m,
|
|
34
|
+
"data-mode": f,
|
|
35
|
+
"data-has-icon-left": !!h || x,
|
|
36
|
+
"data-has-icon-right": !!g,
|
|
37
|
+
"data-has-no-text": F,
|
|
38
|
+
"data-fullwidth": b,
|
|
39
|
+
"data-holding": N,
|
|
40
|
+
onPress: M ? void 0 : v,
|
|
41
|
+
...P,
|
|
42
|
+
...R,
|
|
43
|
+
href: S,
|
|
44
|
+
target: C,
|
|
45
|
+
"data-is-loading": x,
|
|
46
|
+
children: [
|
|
47
|
+
/* @__PURE__ */ u(a, {
|
|
48
|
+
iconLeft: h,
|
|
49
|
+
isLoading: x,
|
|
50
|
+
size: p
|
|
51
|
+
}),
|
|
52
|
+
!F && l,
|
|
53
|
+
/* @__PURE__ */ u(o, {
|
|
54
|
+
iconRight: g,
|
|
55
|
+
text: l,
|
|
56
|
+
isLoading: x,
|
|
57
|
+
size: p
|
|
58
|
+
}),
|
|
59
|
+
!!E && /* @__PURE__ */ u(t, { children: /* @__PURE__ */ u(c, { ...E }) }),
|
|
60
|
+
N && !!D && /* @__PURE__ */ u(i, {
|
|
61
|
+
size: p,
|
|
62
|
+
duration: D
|
|
63
|
+
})
|
|
64
|
+
]
|
|
65
|
+
});
|
|
66
|
+
return w ? /* @__PURE__ */ u(s, {
|
|
67
|
+
label: w,
|
|
68
|
+
...T,
|
|
69
|
+
children: z
|
|
70
|
+
}) : z;
|
|
71
|
+
});
|
|
72
|
+
//#endregion
|
|
73
|
+
export { f as default };
|