@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,118 @@
|
|
|
1
|
+
import e from "../Badge/Badge.js";
|
|
2
|
+
import t from "../../internal-components/MultiLineEllipsis/MultiLineEllipsis.js";
|
|
3
|
+
import { styled as n } from "styled-components";
|
|
4
|
+
//#region packages/components/NotificationCard/NotificationCard.styled.ts
|
|
5
|
+
var r = n.div`
|
|
6
|
+
position: relative;
|
|
7
|
+
display: flex;
|
|
8
|
+
flex-direction: column;
|
|
9
|
+
padding: var(--spacing-sm);
|
|
10
|
+
border-radius: var(--radius-full);
|
|
11
|
+
border: var(--stroke-default) solid var(--color-content-neutral-stroke);
|
|
12
|
+
background-color: var(--color-background-neutral-ground);
|
|
13
|
+
|
|
14
|
+
&[data-read="false"] {
|
|
15
|
+
background: var(--color-background-neutral-underground-1);
|
|
16
|
+
}
|
|
17
|
+
`, i = n.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: flex-start;
|
|
20
|
+
gap: var(--spacing-sm);
|
|
21
|
+
width: 100%;
|
|
22
|
+
`, a = n.div`
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
width: 32px;
|
|
27
|
+
height: 32px;
|
|
28
|
+
border-radius: 50%;
|
|
29
|
+
flex-shrink: 0;
|
|
30
|
+
font-size: 24px;
|
|
31
|
+
|
|
32
|
+
&[data-icon-type="informative"] {
|
|
33
|
+
background: var(--color-content-message-informative-lighter);
|
|
34
|
+
color: var(--color-content-message-informative);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
&[data-icon-type="negative"] {
|
|
38
|
+
background: var(--color-content-message-negative-lighter);
|
|
39
|
+
color: var(--color-content-message-negative);
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
&[data-icon-type="warning"] {
|
|
43
|
+
background: var(--color-content-message-warning-lighter);
|
|
44
|
+
color: var(--color-content-message-warning);
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[data-icon-type="positive"] {
|
|
48
|
+
background: var(--color-content-message-positive-lighter);
|
|
49
|
+
color: var(--color-content-message-positive);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
&[data-icon-type="default"] {
|
|
53
|
+
background-color: var(--color-background-neutral-underground-2);
|
|
54
|
+
color: var(--color-content-neutral-secondary);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[data-read="false"] {
|
|
58
|
+
background-color: var(--color-background-neutral-overground);
|
|
59
|
+
}
|
|
60
|
+
`, o = n.img`
|
|
61
|
+
width: 32px;
|
|
62
|
+
height: 32px;
|
|
63
|
+
border-radius: 50%;
|
|
64
|
+
object-fit: cover;
|
|
65
|
+
`, s = n.div`
|
|
66
|
+
display: flex;
|
|
67
|
+
flex-direction: column;
|
|
68
|
+
gap: var(--spacing-sm);
|
|
69
|
+
flex: 1;
|
|
70
|
+
min-width: 0;
|
|
71
|
+
`, c = n.div`
|
|
72
|
+
display: flex;
|
|
73
|
+
align-items: flex-start;
|
|
74
|
+
gap: var(--spacing-sm);
|
|
75
|
+
width: 100%;
|
|
76
|
+
`, l = n.div`
|
|
77
|
+
display: flex;
|
|
78
|
+
flex-direction: column;
|
|
79
|
+
flex: 1;
|
|
80
|
+
min-width: 0;
|
|
81
|
+
`, u = n(t)`
|
|
82
|
+
margin: 0;
|
|
83
|
+
color: var(--color-content-neutral-primary);
|
|
84
|
+
font-size: var(--text-font-size-sm);
|
|
85
|
+
line-height: var(--text-line-height-sm);
|
|
86
|
+
font-weight: 700;
|
|
87
|
+
`, d = n(t)`
|
|
88
|
+
margin: 0;
|
|
89
|
+
color: var(--color-content-neutral-primary);
|
|
90
|
+
font-size: var(--text-font-size-sm);
|
|
91
|
+
line-height: var(--text-line-height-sm);
|
|
92
|
+
font-weight: 400;
|
|
93
|
+
`, f = n.div`
|
|
94
|
+
display: flex;
|
|
95
|
+
align-items: center;
|
|
96
|
+
gap: var(--spacing-xxs);
|
|
97
|
+
margin-top: var(--spacing-xxs);
|
|
98
|
+
`, p = n.span`
|
|
99
|
+
color: var(--color-content-neutral-secondary);
|
|
100
|
+
font-size: var(--text-font-size-xs);
|
|
101
|
+
line-height: var(--text-line-height-xs);
|
|
102
|
+
font-weight: 400;
|
|
103
|
+
white-space: nowrap;
|
|
104
|
+
overflow: hidden;
|
|
105
|
+
text-overflow: ellipsis;
|
|
106
|
+
max-width: 100%;
|
|
107
|
+
`, m = n.div`
|
|
108
|
+
display: flex;
|
|
109
|
+
align-items: center;
|
|
110
|
+
gap: var(--spacing-xs);
|
|
111
|
+
flex-wrap: wrap;
|
|
112
|
+
`, h = n(e)`
|
|
113
|
+
position: absolute;
|
|
114
|
+
top: var(--spacing-xs);
|
|
115
|
+
right: var(--spacing-xs);
|
|
116
|
+
`;
|
|
117
|
+
//#endregion
|
|
118
|
+
export { m as ActionsContainer, o as AvatarImage, r as CardContainer, c as ContentHeader, i as ContentWrapper, l as Description, a as IconContainer, s as MainContent, d as Subtitle, f as TimestampContainer, p as TimestampText, u as Title, h as UnreadBadge };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import e from "../../internal/usetranslations/usetranslations.js";
|
|
2
|
+
import t from "../Loader/Loader.js";
|
|
3
|
+
import n from "../Badge/Badge.js";
|
|
4
|
+
import r from "../Button/Button.js";
|
|
5
|
+
import { Content as i, Dialog as a, DialogTrigger as o, Footer as s, Header as c, Heading as l, HeadingCloseButton as u, MarkAllAsReadButton as d, Popover as f, SpinnerContainer as p } from "./Notifications.styled.js";
|
|
6
|
+
import m from "./components/EmptyNotifications/EmptyNotifications.js";
|
|
7
|
+
import "react";
|
|
8
|
+
import { jsx as h, jsxs as g } from "react/jsx-runtime";
|
|
9
|
+
//#region packages/components/Notifications/Notifications.tsx
|
|
10
|
+
function _({ children: _, triggerProps: y, nbOfReadNotifications: b, nbOfUnreadNotifications: x, onParametersClick: S, onMarkAllAsReadClick: C, isLoading: w, placement: T = "bottom" }) {
|
|
11
|
+
let E = e(v), D = b === 0 && x === 0, O = !!S, k = !D && !!C, A = O || k, j = "content";
|
|
12
|
+
return D && (j = "empty"), w && (j = "loading"), /* @__PURE__ */ g(o, { children: [/* @__PURE__ */ h(r, { ...y }), /* @__PURE__ */ h(f, {
|
|
13
|
+
offset: 16,
|
|
14
|
+
placement: T,
|
|
15
|
+
children: /* @__PURE__ */ g(a, { children: [
|
|
16
|
+
/* @__PURE__ */ g(c, { children: [
|
|
17
|
+
/* @__PURE__ */ h(l, {
|
|
18
|
+
slot: "title",
|
|
19
|
+
children: E.title
|
|
20
|
+
}),
|
|
21
|
+
!!x && /* @__PURE__ */ h(n, {
|
|
22
|
+
value: x,
|
|
23
|
+
nature: "negative"
|
|
24
|
+
}),
|
|
25
|
+
/* @__PURE__ */ h(u, {
|
|
26
|
+
mode: "tertiary",
|
|
27
|
+
size: "small",
|
|
28
|
+
iconLeft: "close",
|
|
29
|
+
slot: "close",
|
|
30
|
+
"aria-label": E.close
|
|
31
|
+
})
|
|
32
|
+
] }),
|
|
33
|
+
/* @__PURE__ */ g(i, { children: [
|
|
34
|
+
j === "loading" && /* @__PURE__ */ h(p, { children: /* @__PURE__ */ h(t, { size: "large" }) }),
|
|
35
|
+
j === "empty" && /* @__PURE__ */ h(m, {
|
|
36
|
+
title: E.emptyTitle,
|
|
37
|
+
description: E.emptyDescription
|
|
38
|
+
}),
|
|
39
|
+
j === "content" && _
|
|
40
|
+
] }),
|
|
41
|
+
A && /* @__PURE__ */ g(s, { children: [O && /* @__PURE__ */ h(r, {
|
|
42
|
+
iconLeft: "settings",
|
|
43
|
+
onClick: S,
|
|
44
|
+
mode: "tertiary",
|
|
45
|
+
size: "small",
|
|
46
|
+
"aria-label": E.parameters
|
|
47
|
+
}), k && /* @__PURE__ */ h(d, {
|
|
48
|
+
text: E.markAllAsRead,
|
|
49
|
+
mode: "tertiary",
|
|
50
|
+
size: "small",
|
|
51
|
+
onClick: C
|
|
52
|
+
})] })
|
|
53
|
+
] })
|
|
54
|
+
})] });
|
|
55
|
+
}
|
|
56
|
+
var v = {
|
|
57
|
+
en: {
|
|
58
|
+
title: "Notifications",
|
|
59
|
+
markAllAsRead: "Mark all as read",
|
|
60
|
+
parameters: "Parameters",
|
|
61
|
+
close: "Close",
|
|
62
|
+
loading: "Loading...",
|
|
63
|
+
emptyTitle: "You have no notifications",
|
|
64
|
+
emptyDescription: "When an activity is detected, you will see it here."
|
|
65
|
+
},
|
|
66
|
+
fr: {
|
|
67
|
+
title: "Notifications",
|
|
68
|
+
markAllAsRead: "Marquer tout comme lu",
|
|
69
|
+
parameters: "Paramètres",
|
|
70
|
+
close: "Fermer",
|
|
71
|
+
loading: "Chargement...",
|
|
72
|
+
emptyTitle: "Vous n’avez aucune notification",
|
|
73
|
+
emptyDescription: "Lorsque qu’une activité est détecté, vous le verrez ici."
|
|
74
|
+
}
|
|
75
|
+
};
|
|
76
|
+
//#endregion
|
|
77
|
+
export { _ as default };
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import e from "../Button/Button.js";
|
|
2
|
+
import { styled as t } from "styled-components";
|
|
3
|
+
import { Dialog as n, DialogTrigger as r, Heading as i, Popover as a } from "react-aria-components";
|
|
4
|
+
//#region packages/components/Notifications/Notifications.styled.ts
|
|
5
|
+
var o = t(r)``, s = t(a)`
|
|
6
|
+
width: min(calc(100vw - var(--spacing-sm) * 2), 448px);
|
|
7
|
+
outline: none;
|
|
8
|
+
`, c = t(n)`
|
|
9
|
+
/* react-aria sizes the Popover to the available space; mirror that bound so the
|
|
10
|
+
Content can scroll instead of overflowing */
|
|
11
|
+
max-height: inherit;
|
|
12
|
+
outline: none;
|
|
13
|
+
padding: var(--spacing-sm);
|
|
14
|
+
display: flex;
|
|
15
|
+
flex-direction: column;
|
|
16
|
+
align-items: flex-start;
|
|
17
|
+
gap: var(--spacing-sm);
|
|
18
|
+
flex-shrink: 0;
|
|
19
|
+
border-radius: var(--radius-full);
|
|
20
|
+
background: var(--color-background-neutral-overground);
|
|
21
|
+
|
|
22
|
+
box-shadow: var(--shadow-strong);
|
|
23
|
+
`, l = t.header`
|
|
24
|
+
display: flex;
|
|
25
|
+
align-items: center;
|
|
26
|
+
gap: var(--spacing-xs);
|
|
27
|
+
width: 100%;
|
|
28
|
+
`, u = t(i)`
|
|
29
|
+
padding: 0;
|
|
30
|
+
margin: 0;
|
|
31
|
+
color: var(--color-content-neutral-primary);
|
|
32
|
+
font-size: var(--text-font-size-xl);
|
|
33
|
+
font-style: normal;
|
|
34
|
+
font-weight: 700;
|
|
35
|
+
line-height: var(--text-line-height-xl);
|
|
36
|
+
`, d = t(e)`
|
|
37
|
+
margin-left: auto;
|
|
38
|
+
`, f = t.div`
|
|
39
|
+
display: flex;
|
|
40
|
+
flex-direction: column;
|
|
41
|
+
gap: var(--spacing-xxs);
|
|
42
|
+
flex: 1;
|
|
43
|
+
overflow-y: auto;
|
|
44
|
+
width: 100%;
|
|
45
|
+
`, p = t.div`
|
|
46
|
+
display: flex;
|
|
47
|
+
justify-content: center;
|
|
48
|
+
align-items: center;
|
|
49
|
+
flex: 1;
|
|
50
|
+
padding: var(--spacing-sm);
|
|
51
|
+
`, m = t.footer`
|
|
52
|
+
display: flex;
|
|
53
|
+
padding-top: var(--spacing-sm);
|
|
54
|
+
justify-content: space-between;
|
|
55
|
+
align-items: center;
|
|
56
|
+
align-self: stretch;
|
|
57
|
+
border-top: 1px solid var(--color-content-neutral-stroke);
|
|
58
|
+
`, h = t(e)`
|
|
59
|
+
margin-left: auto;
|
|
60
|
+
`;
|
|
61
|
+
//#endregion
|
|
62
|
+
export { f as Content, c as Dialog, o as DialogTrigger, m as Footer, l as Header, u as Heading, d as HeadingCloseButton, h as MarkAllAsReadButton, s as Popover, p as SpinnerContainer };
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Container as e, Description as t, Title as n } from "./EmptyNotifications.styled.js";
|
|
2
|
+
import { jsx as r, jsxs as i } from "react/jsx-runtime";
|
|
3
|
+
//#region packages/components/Notifications/components/EmptyNotifications/EmptyNotifications.tsx
|
|
4
|
+
function a({ title: a, description: o }) {
|
|
5
|
+
return /* @__PURE__ */ i(e, { children: [/* @__PURE__ */ r("svg", {
|
|
6
|
+
width: "40",
|
|
7
|
+
height: "40",
|
|
8
|
+
viewBox: "0 0 40 40",
|
|
9
|
+
fill: "none",
|
|
10
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
11
|
+
children: /* @__PURE__ */ r("path", {
|
|
12
|
+
d: "M30.0065 26.25V17.9167C30.0065 12.8 27.2732 8.51667 22.5065 7.38333V6.25C22.5065 4.86667 21.3732 3.75 19.9899 3.75C18.6065 3.75 17.5065 4.86667 17.5065 6.25V7.38333C12.7232 8.51667 10.0065 12.7833 10.0065 17.9167V26.25L7.83987 28.4C6.78987 29.45 7.5232 31.25 9.00653 31.25H30.9565C32.4399 31.25 33.1899 29.45 32.1399 28.4L30.0065 26.25ZM19.9899 36.25C21.8232 36.25 23.3232 34.75 23.3232 32.9167H16.6565C16.6565 34.75 18.1399 36.25 19.9899 36.25ZM11.2899 7.46667C11.9899 6.83333 12.0065 5.75 11.3399 5.08333C10.7065 4.45 9.6732 4.43333 9.0232 5.05C6.1732 7.65 4.20653 11.1833 3.5732 15.15C3.4232 16.1667 4.20653 17.0833 5.23987 17.0833C6.03987 17.0833 6.73987 16.5 6.8732 15.7C7.3732 12.4667 8.9732 9.58333 11.2899 7.46667ZM31.0065 5.05C30.3399 4.43333 29.3065 4.45 28.6732 5.08333C28.0065 5.75 28.0399 6.81667 28.7232 7.45C31.0232 9.56667 32.6399 12.45 33.1399 15.6833C33.2565 16.4833 33.9565 17.0667 34.7732 17.0667C35.7899 17.0667 36.5899 16.15 36.4232 15.1333C35.7899 11.1833 33.8399 7.66667 31.0065 5.05Z",
|
|
13
|
+
fill: "var(--color-content-brand-brand-3)"
|
|
14
|
+
})
|
|
15
|
+
}), /* @__PURE__ */ i("div", { children: [/* @__PURE__ */ r(n, { children: a }), /* @__PURE__ */ r(t, { children: o })] })] });
|
|
16
|
+
}
|
|
17
|
+
//#endregion
|
|
18
|
+
export { a as default };
|
package/dist/components/Notifications/components/EmptyNotifications/EmptyNotifications.styled.js
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { styled as e } from "styled-components";
|
|
2
|
+
//#region packages/components/Notifications/components/EmptyNotifications/EmptyNotifications.styled.ts
|
|
3
|
+
var t = e.div`
|
|
4
|
+
display: flex;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: center;
|
|
7
|
+
justify-content: center;
|
|
8
|
+
gap: var(--spacing-sm);
|
|
9
|
+
padding: var(--spacing-sm);
|
|
10
|
+
`, n = e.h3`
|
|
11
|
+
margin: 0;
|
|
12
|
+
color: var(--color-content-neutral-primary);
|
|
13
|
+
text-align: center;
|
|
14
|
+
font-size: var(--text-font-size-lg);
|
|
15
|
+
font-style: normal;
|
|
16
|
+
font-weight: 700;
|
|
17
|
+
line-height: var(--text-line-height-lg);
|
|
18
|
+
`, r = e.p`
|
|
19
|
+
margin: 0;
|
|
20
|
+
margin-bottom: 100px;
|
|
21
|
+
color: var(--color-content-neutral-secondary);
|
|
22
|
+
text-align: center;
|
|
23
|
+
font-size: var(--text-font-size-md);
|
|
24
|
+
font-style: normal;
|
|
25
|
+
font-weight: 400;
|
|
26
|
+
line-height: var(--text-line-height-md);
|
|
27
|
+
`;
|
|
28
|
+
//#endregion
|
|
29
|
+
export { t as Container, r as Description, n as Title };
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "../Icon/Icon.js";
|
|
3
|
+
import t from "../../internal/usetranslations/usetranslations.js";
|
|
4
|
+
import n from "../../internal-components/FormGroupWrapper/FormGroupWrapper.js";
|
|
5
|
+
import r from "../../internal/getNatureFromMessages/getNatureFromMessages.js";
|
|
6
|
+
import { Button as i, Group as a, Input as o, NumberField as s, Stepper as c, ValueDisplay as l } from "./NumberField.styled.js";
|
|
7
|
+
import u, { useId as d, useMemo as f } from "react";
|
|
8
|
+
import { useLocale as p } from "react-aria-components";
|
|
9
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
10
|
+
//#region packages/components/NumberField/NumberField.tsx
|
|
11
|
+
var g = u.forwardRef(({ label: u, labelIconRight: g, labelIconRightTooltip: v, helperText: y, helperTextIcon: b, errorHelperText: x, errorHelperTextIcon: S, successHelperText: C, successHelperTextIcon: w, warningHelperText: T, warningHelperTextIcon: E, orientation: D, required: O, nature: k, wrapperProps: A, fullWidth: j, isDisplayOnly: M, advancedReactAriaOptions: N, ...P }, F) => {
|
|
12
|
+
let I = d(), L = N?.id ?? I, R = t(_), { locale: z } = p(), B = f(() => {
|
|
13
|
+
if (!M) return "";
|
|
14
|
+
let e = P.value ?? P.defaultValue;
|
|
15
|
+
return e === void 0 || Number.isNaN(e) ? "" : new Intl.NumberFormat(z, P.formatOptions).format(e);
|
|
16
|
+
}, [
|
|
17
|
+
M,
|
|
18
|
+
P.value,
|
|
19
|
+
P.defaultValue,
|
|
20
|
+
P.formatOptions,
|
|
21
|
+
z
|
|
22
|
+
]), V = r({
|
|
23
|
+
nature: k,
|
|
24
|
+
errorHelperText: x,
|
|
25
|
+
successHelperText: C,
|
|
26
|
+
warningHelperText: T
|
|
27
|
+
}), H = P["aria-label"] ?? N?.["aria-label"] ?? (typeof u == "string" && u.trim().length > 0 ? u : void 0), U = H ? `${R.increment} : ${H}` : R.increment, W = H ? `${R.decrement} : ${H}` : R.decrement;
|
|
28
|
+
return /* @__PURE__ */ m(n, {
|
|
29
|
+
...A,
|
|
30
|
+
htmlForId: L,
|
|
31
|
+
label: u,
|
|
32
|
+
labelIconRight: g,
|
|
33
|
+
labelIconRightTooltip: v,
|
|
34
|
+
helperText: y,
|
|
35
|
+
helperTextIcon: b,
|
|
36
|
+
errorHelperText: x,
|
|
37
|
+
errorHelperTextIcon: S,
|
|
38
|
+
successHelperText: C,
|
|
39
|
+
successHelperTextIcon: w,
|
|
40
|
+
warningHelperText: T,
|
|
41
|
+
warningHelperTextIcon: E,
|
|
42
|
+
orientation: D,
|
|
43
|
+
required: O,
|
|
44
|
+
children: /* @__PURE__ */ m(s, {
|
|
45
|
+
...N,
|
|
46
|
+
...P,
|
|
47
|
+
ref: F,
|
|
48
|
+
isRequired: O,
|
|
49
|
+
incrementAriaLabel: U,
|
|
50
|
+
decrementAriaLabel: W,
|
|
51
|
+
"data-design-system-component": "NumberField",
|
|
52
|
+
"data-nature": V,
|
|
53
|
+
"data-fullwidth": j,
|
|
54
|
+
children: M ? /* @__PURE__ */ m(l, {
|
|
55
|
+
id: L,
|
|
56
|
+
"data-fullwidth": j,
|
|
57
|
+
children: B
|
|
58
|
+
}) : /* @__PURE__ */ h(a, {
|
|
59
|
+
"data-fullwidth": j,
|
|
60
|
+
children: [
|
|
61
|
+
/* @__PURE__ */ m(i, {
|
|
62
|
+
slot: "decrement",
|
|
63
|
+
"data-viewport": "mobile",
|
|
64
|
+
children: /* @__PURE__ */ m(e, { name: "remove" })
|
|
65
|
+
}),
|
|
66
|
+
/* @__PURE__ */ m(o, { id: L }),
|
|
67
|
+
/* @__PURE__ */ h(c, {
|
|
68
|
+
"data-slot": "stepper",
|
|
69
|
+
children: [/* @__PURE__ */ m(i, {
|
|
70
|
+
slot: "increment",
|
|
71
|
+
children: /* @__PURE__ */ m(e, { name: "expand_less" })
|
|
72
|
+
}), /* @__PURE__ */ m(i, {
|
|
73
|
+
slot: "decrement",
|
|
74
|
+
children: /* @__PURE__ */ m(e, { name: "expand_more" })
|
|
75
|
+
})]
|
|
76
|
+
}),
|
|
77
|
+
/* @__PURE__ */ m(i, {
|
|
78
|
+
slot: "increment",
|
|
79
|
+
"data-viewport": "mobile",
|
|
80
|
+
children: /* @__PURE__ */ m(e, { name: "add" })
|
|
81
|
+
})
|
|
82
|
+
]
|
|
83
|
+
})
|
|
84
|
+
})
|
|
85
|
+
});
|
|
86
|
+
});
|
|
87
|
+
g.displayName = "NumberField";
|
|
88
|
+
var _ = {
|
|
89
|
+
en: {
|
|
90
|
+
increment: "Increment",
|
|
91
|
+
decrement: "Decrement"
|
|
92
|
+
},
|
|
93
|
+
fr: {
|
|
94
|
+
increment: "Augmenter",
|
|
95
|
+
decrement: "Diminuer"
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
//#endregion
|
|
99
|
+
export { g as default };
|
|
@@ -0,0 +1,263 @@
|
|
|
1
|
+
import { styled as e } from "styled-components";
|
|
2
|
+
import { Button as t, Group as n, Input as r, NumberField as i } from "react-aria-components";
|
|
3
|
+
//#region packages/components/NumberField/NumberField.styled.ts
|
|
4
|
+
var a = e(i)`
|
|
5
|
+
display: inline-block;
|
|
6
|
+
|
|
7
|
+
&[data-fullwidth="true"] {
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
`, o = e(n)`
|
|
11
|
+
align-items: stretch;
|
|
12
|
+
--stepper-disabled-color: var(--color-content-neutral-primary-reversed);
|
|
13
|
+
border-radius: var(--radius-rounded);
|
|
14
|
+
display: inline-flex;
|
|
15
|
+
min-height: 40px;
|
|
16
|
+
position: relative;
|
|
17
|
+
transition: box-shadow 120ms ease;
|
|
18
|
+
|
|
19
|
+
&[data-fullwidth="true"] {
|
|
20
|
+
width: 100%;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
&[data-focus-within]:not(:has(input[readonly])),
|
|
24
|
+
&:has(input:focus):not(:has(input[readonly])) {
|
|
25
|
+
box-shadow:
|
|
26
|
+
#fff 0 0 0 2px,
|
|
27
|
+
var(--color-background-highlight-focus) 0 0 0 4px,
|
|
28
|
+
rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&:has(input[readonly]) {
|
|
32
|
+
--stepper-disabled-color: var(--color-content-neutral-tertiary);
|
|
33
|
+
|
|
34
|
+
input {
|
|
35
|
+
cursor: default;
|
|
36
|
+
padding-inline: 0;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
[data-slot="stepper"],
|
|
40
|
+
[data-viewport="mobile"] {
|
|
41
|
+
display: none;
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
[data-nature] &:has(input[readonly]):not([data-disabled]) {
|
|
46
|
+
--input-border-color: transparent;
|
|
47
|
+
--background-color: transparent;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* Nature mapping (mirrors CoreTextInput) */
|
|
51
|
+
[data-nature="default"] &:not([data-disabled]) {
|
|
52
|
+
--background-color: var(--color-content-neutral-primary-reversed);
|
|
53
|
+
--input-border-color: var(--color-content-neutral-stroke);
|
|
54
|
+
--stepper-border-color: var(--color-content-neutral-stroke);
|
|
55
|
+
--stepper-button-color: var(--color-content-action-action);
|
|
56
|
+
--stepper-button-color-hover: var(--color-content-action-action-darker);
|
|
57
|
+
--stepper-button-background-hover: var(
|
|
58
|
+
--color-content-action-action-lighter
|
|
59
|
+
);
|
|
60
|
+
--color: var(--color-content-neutral-secondary);
|
|
61
|
+
--placeholder-color: var(--color-content-neutral-tertiary);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
[data-nature="negative"] &:not([data-disabled]) {
|
|
65
|
+
--background-color: var(--color-content-neutral-primary-reversed);
|
|
66
|
+
--input-border-color: var(--color-content-message-negative);
|
|
67
|
+
--stepper-border-color: var(--color-content-neutral-stroke);
|
|
68
|
+
--stepper-button-color: var(--color-content-message-negative);
|
|
69
|
+
--stepper-button-color-hover: var(--color-content-message-negative-darker);
|
|
70
|
+
--stepper-button-background-hover: var(
|
|
71
|
+
--color-content-message-negative-lighter
|
|
72
|
+
);
|
|
73
|
+
--color: var(--color-content-neutral-secondary);
|
|
74
|
+
--placeholder-color: var(--color-content-neutral-tertiary);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
[data-nature="positive"] &:not([data-disabled]) {
|
|
78
|
+
--background-color: var(--color-content-neutral-primary-reversed);
|
|
79
|
+
--input-border-color: var(--color-content-message-positive-darker);
|
|
80
|
+
--stepper-border-color: var(--color-content-neutral-stroke);
|
|
81
|
+
--stepper-button-color: var(--color-content-message-positive-darker);
|
|
82
|
+
--stepper-button-color-hover: var(--color-content-message-positive-darker);
|
|
83
|
+
--stepper-button-background-hover: var(
|
|
84
|
+
--color-content-message-positive-lighter
|
|
85
|
+
);
|
|
86
|
+
--color: var(--color-content-neutral-secondary);
|
|
87
|
+
--placeholder-color: var(--color-content-neutral-tertiary);
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
[data-nature="warning"] &:not([data-disabled]) {
|
|
91
|
+
--background-color: var(--color-content-neutral-primary-reversed);
|
|
92
|
+
--input-border-color: var(--color-content-message-warning-darker);
|
|
93
|
+
--stepper-border-color: var(--color-content-neutral-stroke);
|
|
94
|
+
--stepper-button-color: var(--color-content-message-warning-darker);
|
|
95
|
+
--stepper-button-color-hover: var(--color-content-message-warning-darker);
|
|
96
|
+
--stepper-button-background-hover: var(
|
|
97
|
+
--color-content-message-warning-lighter
|
|
98
|
+
);
|
|
99
|
+
--color: var(--color-content-neutral-secondary);
|
|
100
|
+
--placeholder-color: var(--color-content-neutral-tertiary);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
&[data-disabled] {
|
|
104
|
+
cursor: not-allowed;
|
|
105
|
+
--background-color: var(--color-content-neutral-tertiary);
|
|
106
|
+
--input-border-color: var(--color-content-neutral-stroke);
|
|
107
|
+
--stepper-border-color: var(--color-content-neutral-stroke);
|
|
108
|
+
--color: var(--color-content-neutral-primary-reversed);
|
|
109
|
+
--placeholder-color: var(--color-content-neutral-primary-reversed);
|
|
110
|
+
}
|
|
111
|
+
`, s = e.span`
|
|
112
|
+
align-items: center;
|
|
113
|
+
color: var(--color);
|
|
114
|
+
display: inline-flex;
|
|
115
|
+
font-size: var(--text-font-size-md);
|
|
116
|
+
font-weight: 400;
|
|
117
|
+
line-height: var(--text-line-height-md);
|
|
118
|
+
|
|
119
|
+
&[data-fullwidth="true"] {
|
|
120
|
+
width: 100%;
|
|
121
|
+
}
|
|
122
|
+
`, c = e(r)`
|
|
123
|
+
appearance: none;
|
|
124
|
+
background: var(--background-color);
|
|
125
|
+
border: 1px solid var(--input-border-color);
|
|
126
|
+
border-end-end-radius: 0;
|
|
127
|
+
border-start-end-radius: 0;
|
|
128
|
+
border-start-start-radius: var(--radius-rounded);
|
|
129
|
+
border-end-start-radius: var(--radius-rounded);
|
|
130
|
+
color: var(--color);
|
|
131
|
+
cursor: text;
|
|
132
|
+
display: block;
|
|
133
|
+
flex: 1 1 auto;
|
|
134
|
+
font-size: var(--text-font-size-md);
|
|
135
|
+
font-weight: 400;
|
|
136
|
+
line-height: var(--text-line-height-md);
|
|
137
|
+
min-width: 0;
|
|
138
|
+
outline: none;
|
|
139
|
+
padding: var(--spacing-xs);
|
|
140
|
+
width: 100%;
|
|
141
|
+
|
|
142
|
+
&::-webkit-outer-spin-button,
|
|
143
|
+
&::-webkit-inner-spin-button {
|
|
144
|
+
appearance: none;
|
|
145
|
+
-webkit-appearance: none;
|
|
146
|
+
margin: 0;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
&[type="number"] {
|
|
150
|
+
appearance: textfield;
|
|
151
|
+
-moz-appearance: textfield;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
&::placeholder {
|
|
155
|
+
color: var(--placeholder-color);
|
|
156
|
+
opacity: 1;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
&:disabled {
|
|
160
|
+
cursor: not-allowed;
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
@media screen and (max-width: 767px) {
|
|
164
|
+
border-radius: 0;
|
|
165
|
+
order: 1;
|
|
166
|
+
text-align: center;
|
|
167
|
+
}
|
|
168
|
+
`, l = e.div`
|
|
169
|
+
background: var(--background-color);
|
|
170
|
+
border: 1px solid var(--stepper-border-color);
|
|
171
|
+
border-inline-start: 0;
|
|
172
|
+
border-end-end-radius: var(--radius-rounded);
|
|
173
|
+
border-start-end-radius: var(--radius-rounded);
|
|
174
|
+
display: inline-flex;
|
|
175
|
+
flex: 0 0 36px;
|
|
176
|
+
flex-direction: column;
|
|
177
|
+
overflow: hidden;
|
|
178
|
+
|
|
179
|
+
@media screen and (max-width: 767px) {
|
|
180
|
+
display: none;
|
|
181
|
+
}
|
|
182
|
+
`, u = e(t)`
|
|
183
|
+
align-items: center;
|
|
184
|
+
background: transparent;
|
|
185
|
+
border: 0;
|
|
186
|
+
color: var(--stepper-button-color);
|
|
187
|
+
cursor: pointer;
|
|
188
|
+
display: inline-flex;
|
|
189
|
+
flex: 1 1 50%;
|
|
190
|
+
justify-content: center;
|
|
191
|
+
outline: none;
|
|
192
|
+
padding: 0;
|
|
193
|
+
transition: background-color 120ms ease;
|
|
194
|
+
width: 100%;
|
|
195
|
+
|
|
196
|
+
/* Vertical stack on the right: increment on top, decrement on bottom. */
|
|
197
|
+
&[slot="increment"]:not([data-viewport="mobile"]) {
|
|
198
|
+
border-block-end: 1px solid var(--stepper-border-color);
|
|
199
|
+
order: 0;
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
&[slot="decrement"]:not([data-viewport="mobile"]) {
|
|
203
|
+
order: 1;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
&[data-viewport="mobile"] {
|
|
207
|
+
display: none;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
&[data-hovered]:not(:disabled) {
|
|
211
|
+
background-color: var(--stepper-button-background-hover);
|
|
212
|
+
color: var(--stepper-button-color-hover);
|
|
213
|
+
}
|
|
214
|
+
|
|
215
|
+
&[data-pressed]:not(:disabled) {
|
|
216
|
+
background-color: var(--stepper-button-background-hover);
|
|
217
|
+
color: var(--stepper-button-color-hover);
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
&[data-focus-visible] {
|
|
221
|
+
outline: 2px solid var(--color-background-highlight-focus);
|
|
222
|
+
outline-offset: -2px;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
&:disabled {
|
|
226
|
+
cursor: not-allowed;
|
|
227
|
+
color: var(--stepper-disabled-color);
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
svg {
|
|
231
|
+
font-size: 16px;
|
|
232
|
+
}
|
|
233
|
+
|
|
234
|
+
@media screen and (max-width: 767px) {
|
|
235
|
+
&[data-viewport="mobile"] {
|
|
236
|
+
background: var(--background-color);
|
|
237
|
+
border: 1px solid var(--stepper-border-color);
|
|
238
|
+
display: inline-flex;
|
|
239
|
+
flex: 0 0 40px;
|
|
240
|
+
width: 40px;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
&[data-viewport="mobile"] svg {
|
|
244
|
+
font-size: 24px;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
&[slot="decrement"][data-viewport="mobile"] {
|
|
248
|
+
border-inline-end: 0;
|
|
249
|
+
border-start-start-radius: var(--radius-rounded);
|
|
250
|
+
border-end-start-radius: var(--radius-rounded);
|
|
251
|
+
order: 0;
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
&[slot="increment"][data-viewport="mobile"] {
|
|
255
|
+
border-inline-start: 0;
|
|
256
|
+
border-start-end-radius: var(--radius-rounded);
|
|
257
|
+
border-end-end-radius: var(--radius-rounded);
|
|
258
|
+
order: 2;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
`;
|
|
262
|
+
//#endregion
|
|
263
|
+
export { u as Button, o as Group, c as Input, a as NumberField, l as Stepper, s as ValueDisplay };
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { PageLayoutProvider as e, usePageLayoutContext as t } from "./context.js";
|
|
3
|
+
import { GlobalStyle as n, Main as r, NavigationComponent as i, NavigationOverlay as a, Root as o } from "./PageLayout.styled.js";
|
|
4
|
+
import { jsx as s, jsxs as c } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/PageLayout/PageLayout.tsx
|
|
6
|
+
function l({ navigationComponent: e, children: l }) {
|
|
7
|
+
let u = t();
|
|
8
|
+
return /* @__PURE__ */ c(o, { children: [
|
|
9
|
+
/* @__PURE__ */ s(n, {}),
|
|
10
|
+
/* @__PURE__ */ s(a, {
|
|
11
|
+
"data-navigation-overlay-collapsed": u?.isCollapsed,
|
|
12
|
+
onClick: () => u?.setIsCollapsed((e) => !e)
|
|
13
|
+
}),
|
|
14
|
+
/* @__PURE__ */ s(i, {
|
|
15
|
+
"data-page-layout-collapsed": u?.isCollapsed,
|
|
16
|
+
children: e
|
|
17
|
+
}),
|
|
18
|
+
/* @__PURE__ */ s(r, { children: l })
|
|
19
|
+
] });
|
|
20
|
+
}
|
|
21
|
+
function u(t) {
|
|
22
|
+
return /* @__PURE__ */ s(e, { children: /* @__PURE__ */ s(l, { ...t }) });
|
|
23
|
+
}
|
|
24
|
+
//#endregion
|
|
25
|
+
export { u as default };
|