@agregio-solutions/design-system 2.2.0 → 2.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Accordion/Accordion.js +65 -0
- package/dist/components/Accordion/Accordion.styled.js +130 -0
- package/dist/components/Badge/Badge.js +25 -0
- package/dist/components/Badge/Badge.styled.js +50 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.js +78 -0
- package/dist/components/Breadcrumbs/Breadcrumbs.styled.js +73 -0
- package/dist/components/Button/Button.js +73 -0
- package/dist/components/Button/Button.styled.js +340 -0
- package/dist/components/Button/components/HoldProgress/HoldProgress.js +29 -0
- package/dist/components/Button/components/HoldProgress/HoldProgress.styled.js +42 -0
- package/dist/components/Button/components/IconLeftElement/IconLeftElement.js +13 -0
- package/dist/components/Button/components/IconRightElement/IconRightElement.js +12 -0
- package/dist/components/Calendar/Calendar.js +113 -0
- package/dist/components/Calendar/Calendar.styled.js +159 -0
- package/dist/components/Card/Card.js +16 -0
- package/dist/components/Card/Card.styled.js +35 -0
- package/dist/components/ChartLegend/ChartLegend.js +21 -0
- package/dist/components/ChartLegend/ChartLegend.styled.js +77 -0
- package/dist/components/ChartTooltip/ChartTooltip.js +32 -0
- package/dist/components/ChartTooltip/ChartTooltip.styled.js +57 -0
- package/dist/components/Checkbox/Checkbox.js +50 -0
- package/dist/components/Checkbox/Checkbox.styled.js +111 -0
- package/dist/components/CheckboxGroup/CheckboxGroup.js +12 -0
- package/dist/components/Chip/Chip.js +26 -0
- package/dist/components/Chip/Chip.styled.js +49 -0
- package/dist/components/Combobox/Combobox.js +98 -0
- package/dist/components/Combobox/Combobox.styled.js +90 -0
- package/dist/components/DataTable/DataTable.js +53 -0
- package/dist/components/DataTable/DataTable.styled.js +11 -0
- package/dist/components/DataTable/DataTableCell/DataTableCell.js +21 -0
- package/dist/components/DataTable/DataTableCell/DataTableCell.styled.js +78 -0
- package/dist/components/DataTable/DataTableContext.js +9 -0
- package/dist/components/DataTable/DataTableEmptyPlaceholder/DataTableEmptyPlaceholder.js +25 -0
- package/dist/components/DataTable/DataTableEmptyPlaceholder/DataTableEmptyPlaceholder.styled.js +10 -0
- package/dist/components/DataTable/DataTableHeader/DataTableHeader.js +44 -0
- package/dist/components/DataTable/DataTableHeader/DataTableHeader.styled.js +110 -0
- package/dist/components/DataTable/DataTableRoot/DataTableRoot.js +13 -0
- package/dist/components/DataTable/DataTableRoot/DataTableRoot.styled.js +22 -0
- package/dist/components/DataTable/DataTableRow/DataTableRow.js +13 -0
- package/dist/components/DataTable/DataTableRow/DataTableRow.styled.js +11 -0
- package/dist/components/DataTable/DataTableSkeletonRows/DataTableSkeletonRows.js +19 -0
- package/dist/components/DatePicker/DatePicker.js +75 -0
- package/dist/components/DatePicker/DatePicker.styled.js +66 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +100 -0
- package/dist/components/DateRangePicker/DateRangePicker.styled.js +86 -0
- package/dist/components/Drawer/Drawer.js +30 -0
- package/dist/components/Drawer/Drawer.styled.js +65 -0
- package/dist/components/Dropdown/Dropdown.js +13 -0
- package/dist/components/Dropdown/Dropdown.styled.js +19 -0
- package/dist/components/Dropdown/components/DropdownListItem/DropdownListItem.js +28 -0
- package/dist/components/Dropdown/components/DropdownListItem/DropdownListItem.styled.js +60 -0
- package/dist/components/EmptyState/EmptyState.js +16 -0
- package/dist/components/EmptyState/EmptyState.styled.js +63 -0
- package/dist/components/FileUpload/FileUpload.js +79 -0
- package/dist/components/FileUpload/FileUpload.styled.js +39 -0
- package/dist/components/FileUpload/components/FileDetails/FileDetails.js +43 -0
- package/dist/components/FileUpload/components/FileDetails/FileDetails.styled.js +43 -0
- package/dist/components/Filter/Filter.js +105 -0
- package/dist/components/Filter/Filter.styled.js +24 -0
- package/dist/components/Header/Header.js +52 -0
- package/dist/components/Header/Header.styled.js +131 -0
- package/dist/components/Icon/Icon.js +400 -0
- package/dist/components/Icon/components/access_time.js +15 -0
- package/dist/components/Icon/components/add.js +15 -0
- package/dist/components/Icon/components/add_box.js +15 -0
- package/dist/components/Icon/components/arrow_back.js +15 -0
- package/dist/components/Icon/components/arrow_downward.js +15 -0
- package/dist/components/Icon/components/arrow_enter.js +16 -0
- package/dist/components/Icon/components/arrow_forward.js +15 -0
- package/dist/components/Icon/components/arrow_upward.js +15 -0
- package/dist/components/Icon/components/back_time.js +15 -0
- package/dist/components/Icon/components/bar_chart.js +15 -0
- package/dist/components/Icon/components/bar_chart_2.js +16 -0
- package/dist/components/Icon/components/battery.js +16 -0
- package/dist/components/Icon/components/battery_alert.js +16 -0
- package/dist/components/Icon/components/battery_empty.js +16 -0
- package/dist/components/Icon/components/battery_full.js +16 -0
- package/dist/components/Icon/components/battery_half.js +16 -0
- package/dist/components/Icon/components/bolt.js +15 -0
- package/dist/components/Icon/components/book.js +16 -0
- package/dist/components/Icon/components/business.js +15 -0
- package/dist/components/Icon/components/calculator.js +15 -0
- package/dist/components/Icon/components/calendar.js +16 -0
- package/dist/components/Icon/components/calendar_today.js +15 -0
- package/dist/components/Icon/components/calibration.js +15 -0
- package/dist/components/Icon/components/cancel.js +15 -0
- package/dist/components/Icon/components/caret.js +14 -0
- package/dist/components/Icon/components/change_circle.js +15 -0
- package/dist/components/Icon/components/change_ok.js +15 -0
- package/dist/components/Icon/components/chart_curves.js +16 -0
- package/dist/components/Icon/components/chart_curves_rounded.js +16 -0
- package/dist/components/Icon/components/chart_plus.js +16 -0
- package/dist/components/Icon/components/chart_simple.js +16 -0
- package/dist/components/Icon/components/chart_up.js +16 -0
- package/dist/components/Icon/components/check.js +15 -0
- package/dist/components/Icon/components/check_circle_outline.js +15 -0
- package/dist/components/Icon/components/chevron_left.js +15 -0
- package/dist/components/Icon/components/chevron_right.js +15 -0
- package/dist/components/Icon/components/clear.js +15 -0
- package/dist/components/Icon/components/close.js +15 -0
- package/dist/components/Icon/components/cloud.js +16 -0
- package/dist/components/Icon/components/cloud_full.js +16 -0
- package/dist/components/Icon/components/collapse_menu.js +17 -0
- package/dist/components/Icon/components/content_copy.js +15 -0
- package/dist/components/Icon/components/cycle.js +15 -0
- package/dist/components/Icon/components/delete_outline.js +15 -0
- package/dist/components/Icon/components/dice.js +16 -0
- package/dist/components/Icon/components/disconnect.js +15 -0
- package/dist/components/Icon/components/download.js +15 -0
- package/dist/components/Icon/components/drag_indicator.js +15 -0
- package/dist/components/Icon/components/driver.js +15 -0
- package/dist/components/Icon/components/edit.js +15 -0
- package/dist/components/Icon/components/error_outline.js +15 -0
- package/dist/components/Icon/components/euro.js +16 -0
- package/dist/components/Icon/components/exit.js +16 -0
- package/dist/components/Icon/components/exit_to_app.js +15 -0
- package/dist/components/Icon/components/expand_less.js +15 -0
- package/dist/components/Icon/components/expand_more.js +15 -0
- package/dist/components/Icon/components/eye.js +16 -0
- package/dist/components/Icon/components/eye_off.js +15 -0
- package/dist/components/Icon/components/fiber_new.js +15 -0
- package/dist/components/Icon/components/file_download.js +15 -0
- package/dist/components/Icon/components/file_export.js +15 -0
- package/dist/components/Icon/components/file_plus.js +16 -0
- package/dist/components/Icon/components/filter_alt.js +15 -0
- package/dist/components/Icon/components/filter_list.js +15 -0
- package/dist/components/Icon/components/first_page.js +15 -0
- package/dist/components/Icon/components/flame.js +16 -0
- package/dist/components/Icon/components/flex.js +16 -0
- package/dist/components/Icon/components/folder_open.js +15 -0
- package/dist/components/Icon/components/gaz.js +16 -0
- package/dist/components/Icon/components/grid_view.js +15 -0
- package/dist/components/Icon/components/hand.js +15 -0
- package/dist/components/Icon/components/help_outline.js +15 -0
- package/dist/components/Icon/components/home.js +15 -0
- package/dist/components/Icon/components/hydraulic.js +16 -0
- package/dist/components/Icon/components/id.js +15 -0
- package/dist/components/Icon/components/industry.js +16 -0
- package/dist/components/Icon/components/insert_emoticon.js +15 -0
- package/dist/components/Icon/components/invoice.js +16 -0
- package/dist/components/Icon/components/invoice_full.js +16 -0
- package/dist/components/Icon/components/joystick.js +15 -0
- package/dist/components/Icon/components/language.js +15 -0
- package/dist/components/Icon/components/laptop.js +15 -0
- package/dist/components/Icon/components/last_page.js +15 -0
- package/dist/components/Icon/components/leaf.js +16 -0
- package/dist/components/Icon/components/lines_ok.js +16 -0
- package/dist/components/Icon/components/lines_plus.js +16 -0
- package/dist/components/Icon/components/link.js +15 -0
- package/dist/components/Icon/components/list.js +15 -0
- package/dist/components/Icon/components/location.js +16 -0
- package/dist/components/Icon/components/location_full.js +16 -0
- package/dist/components/Icon/components/location_searching.js +15 -0
- package/dist/components/Icon/components/logout.js +18 -0
- package/dist/components/Icon/components/logs.js +15 -0
- package/dist/components/Icon/components/magic_wand.js +15 -0
- package/dist/components/Icon/components/mail_empty.js +16 -0
- package/dist/components/Icon/components/mail_full.js +16 -0
- package/dist/components/Icon/components/mail_off.js +16 -0
- package/dist/components/Icon/components/mail_ok.js +16 -0
- package/dist/components/Icon/components/mail_open.js +16 -0
- package/dist/components/Icon/components/mail_open_full.js +16 -0
- package/dist/components/Icon/components/menu.js +15 -0
- package/dist/components/Icon/components/minimize.js +15 -0
- package/dist/components/Icon/components/modbus.js +15 -0
- package/dist/components/Icon/components/money_pig.js +16 -0
- package/dist/components/Icon/components/money_pig_full.js +16 -0
- package/dist/components/Icon/components/monitor_heart.js +18 -0
- package/dist/components/Icon/components/monitoring.js +16 -0
- package/dist/components/Icon/components/moon.js +16 -0
- package/dist/components/Icon/components/more_horiz.js +15 -0
- package/dist/components/Icon/components/more_vert.js +15 -0
- package/dist/components/Icon/components/moving.js +15 -0
- package/dist/components/Icon/components/notifications_active.js +15 -0
- package/dist/components/Icon/components/notifications_none.js +15 -0
- package/dist/components/Icon/components/notifications_off.js +15 -0
- package/dist/components/Icon/components/one_single.js +16 -0
- package/dist/components/Icon/components/pause.js +16 -0
- package/dist/components/Icon/components/pause_empty.js +16 -0
- package/dist/components/Icon/components/payments.js +16 -0
- package/dist/components/Icon/components/pdf.js +16 -0
- package/dist/components/Icon/components/phone_1_empty.js +16 -0
- package/dist/components/Icon/components/phone_1_full.js +16 -0
- package/dist/components/Icon/components/phone_2_empty.js +16 -0
- package/dist/components/Icon/components/phone_2_full.js +16 -0
- package/dist/components/Icon/components/play.js +16 -0
- package/dist/components/Icon/components/play_empty.js +16 -0
- package/dist/components/Icon/components/play_full.js +15 -0
- package/dist/components/Icon/components/power_off.js +16 -0
- package/dist/components/Icon/components/profile.js +16 -0
- package/dist/components/Icon/components/profile_full.js +16 -0
- package/dist/components/Icon/components/progress.js +15 -0
- package/dist/components/Icon/components/question.js +16 -0
- package/dist/components/Icon/components/rain.js +16 -0
- package/dist/components/Icon/components/receipt_long.js +16 -0
- package/dist/components/Icon/components/record.js +16 -0
- package/dist/components/Icon/components/record_full.js +16 -0
- package/dist/components/Icon/components/refresh.js +15 -0
- package/dist/components/Icon/components/remove.js +15 -0
- package/dist/components/Icon/components/remove_red_eye.js +15 -0
- package/dist/components/Icon/components/rename.js +15 -0
- package/dist/components/Icon/components/return.js +15 -0
- package/dist/components/Icon/components/save.js +15 -0
- package/dist/components/Icon/components/scan.js +15 -0
- package/dist/components/Icon/components/science.js +16 -0
- package/dist/components/Icon/components/science_2.js +15 -0
- package/dist/components/Icon/components/search.js +15 -0
- package/dist/components/Icon/components/sell.js +16 -0
- package/dist/components/Icon/components/sell_full.js +16 -0
- package/dist/components/Icon/components/send.js +15 -0
- package/dist/components/Icon/components/settings.js +15 -0
- package/dist/components/Icon/components/sms_empty.js +16 -0
- package/dist/components/Icon/components/sms_full.js +16 -0
- package/dist/components/Icon/components/square_plus.js +16 -0
- package/dist/components/Icon/components/ssid_chart.js +16 -0
- package/dist/components/Icon/components/stack_batch.js +16 -0
- package/dist/components/Icon/components/stacked_line_chart.js +15 -0
- package/dist/components/Icon/components/star.js +15 -0
- package/dist/components/Icon/components/star_outline.js +15 -0
- package/dist/components/Icon/components/storm.js +16 -0
- package/dist/components/Icon/components/sun.js +16 -0
- package/dist/components/Icon/components/sun_2.js +16 -0
- package/dist/components/Icon/components/sun_full.js +16 -0
- package/dist/components/Icon/components/swap_horiz.js +15 -0
- package/dist/components/Icon/components/tag.js +16 -0
- package/dist/components/Icon/components/tag_add.js +16 -0
- package/dist/components/Icon/components/tag_ok.js +16 -0
- package/dist/components/Icon/components/tag_remove.js +15 -0
- package/dist/components/Icon/components/team.js +15 -0
- package/dist/components/Icon/components/text_snippet.js +15 -0
- package/dist/components/Icon/components/ticket.js +16 -0
- package/dist/components/Icon/components/ticket_full.js +16 -0
- package/dist/components/Icon/components/tools.js +15 -0
- package/dist/components/Icon/components/tree_item.js +18 -0
- package/dist/components/Icon/components/undo.js +15 -0
- package/dist/components/Icon/components/update.js +15 -0
- package/dist/components/Icon/components/update_circle.js +15 -0
- package/dist/components/Icon/components/upload.js +16 -0
- package/dist/components/Icon/components/wallet.js +16 -0
- package/dist/components/Icon/components/warehouse.js +15 -0
- package/dist/components/Icon/components/warning_amber.js +15 -0
- package/dist/components/Icon/components/warning_badge.js +16 -0
- package/dist/components/Icon/components/warning_octogone.js +16 -0
- package/dist/components/Icon/components/warning_shield.js +16 -0
- package/dist/components/Icon/components/wifi.js +16 -0
- package/dist/components/Icon/components/wifi_level.js +16 -0
- package/dist/components/Icon/components/wifi_rounded.js +16 -0
- package/dist/components/Icon/components/wifi_rounded_alert.js +16 -0
- package/dist/components/Icon/components/wifi_settings.js +16 -0
- package/dist/components/Icon/components/wind_turbine.js +16 -0
- package/dist/components/Label/Label.js +33 -0
- package/dist/components/Label/Label.styled.js +28 -0
- package/dist/components/LinearProgressBar/LinearProgressBar.js +30 -0
- package/dist/components/LinearProgressBar/LinearProgressBar.styled.js +73 -0
- package/dist/components/Link/Link.js +13 -0
- package/dist/components/Link/Link.styled.js +49 -0
- package/dist/components/List/List.js +25 -0
- package/dist/components/List/List.styled.js +32 -0
- package/dist/components/List/components/ListItem/ListItem.js +30 -0
- package/dist/components/List/components/ListItem/ListItem.styled.js +67 -0
- package/dist/components/Loader/Loader.js +41 -0
- package/dist/components/Loader/Loader.styled.js +30 -0
- package/dist/components/Menu/Menu.js +23 -0
- package/dist/components/Menu/Menu.styled.js +11 -0
- package/dist/components/MenuItem/MenuItem.js +33 -0
- package/dist/components/Message/Message.js +61 -0
- package/dist/components/Message/Message.styled.js +95 -0
- package/dist/components/Modal/Modal.js +33 -0
- package/dist/components/Modal/Modal.styled.js +69 -0
- package/dist/components/Navigation/Navigation.js +85 -0
- package/dist/components/Navigation/Navigation.styled.js +98 -0
- package/dist/components/Navigation/components/AgregioSolutionsLogo.js +118 -0
- package/dist/components/Navigation/components/ConnectionManagementLogo.js +19 -0
- package/dist/components/Navigation/components/IrisLogo.js +64 -0
- package/dist/components/Navigation/components/OBILogo.js +88 -0
- package/dist/components/Navigation/components/VPPLogo.js +60 -0
- package/dist/components/Navigation/context.js +20 -0
- package/dist/components/NavigationItem/NavigationItem.js +79 -0
- package/dist/components/NavigationItem/NavigationItem.styled.js +98 -0
- package/dist/components/NotificationCard/NotificationCard.js +75 -0
- package/dist/components/NotificationCard/NotificationCard.styled.js +118 -0
- package/dist/components/Notifications/Notifications.js +77 -0
- package/dist/components/Notifications/Notifications.styled.js +62 -0
- package/dist/components/Notifications/components/EmptyNotifications/EmptyNotifications.js +18 -0
- package/dist/components/Notifications/components/EmptyNotifications/EmptyNotifications.styled.js +29 -0
- package/dist/components/NumberField/NumberField.js +99 -0
- package/dist/components/NumberField/NumberField.styled.js +263 -0
- package/dist/components/PageLayout/PageLayout.js +25 -0
- package/dist/components/PageLayout/PageLayout.styled.js +47 -0
- package/dist/components/PageLayout/context.js +15 -0
- package/dist/components/Pagination/Pagination.js +138 -0
- package/dist/components/Pagination/Pagination.styled.js +63 -0
- package/dist/components/Popover/Popover.js +39 -0
- package/dist/components/Popover/Popover.styled.js +108 -0
- package/dist/components/Radio/Radio.js +23 -0
- package/dist/components/Radio/Radio.styled.js +51 -0
- package/dist/components/RadioGroup/RadioGroup.js +37 -0
- package/dist/components/RadioGroup/RadioGroup.styled.js +15 -0
- package/dist/components/RadioGroupItem/RadioGroupItem.js +25 -0
- package/dist/components/RadioGroupItem/RadioGroupItem.styled.js +76 -0
- package/dist/components/RouterProvider/RouterProvider.js +10 -0
- package/dist/components/SearchBar/SearchBar.js +61 -0
- package/dist/components/SearchBar/SearchBar.styled.js +90 -0
- package/dist/components/SearchBar/components/SearchBarInput/SearchBarInput.js +44 -0
- package/dist/components/SearchBar/components/SearchBarInput/SearchBarInput.styled.js +70 -0
- package/dist/components/SearchBar/components/SearchBarLegend/SearchBarLegend.js +46 -0
- package/dist/components/SearchBar/components/SearchBarLegend/SearchBarLegend.styled.js +52 -0
- package/dist/components/SegmentedControl/SegmentedControl.js +20 -0
- package/dist/components/SegmentedControl/SegmentedControlButton/SegmentedControlButton.js +22 -0
- package/dist/components/SegmentedControl/SegmentedControlButton/SegmentedControlButton.styled.js +81 -0
- package/dist/components/SegmentedControl/SegmentedControlList/SegmentedControlList.js +16 -0
- package/dist/components/SegmentedControl/SegmentedControlList/SegmentedControlList.styled.js +9 -0
- package/dist/components/SegmentedControl/SegmentedControlPanel/SegmentedControlPanel.js +11 -0
- package/dist/components/Select/Select.js +96 -0
- package/dist/components/Select/Select.styled.js +102 -0
- package/dist/components/SelectItem/SelectItem.js +34 -0
- package/dist/components/Skeleton/Skeleton.js +21 -0
- package/dist/components/Skeleton/Skeleton.styled.js +42 -0
- package/dist/components/Slider/Slider.js +118 -0
- package/dist/components/Slider/Slider.styled.js +125 -0
- package/dist/components/Stepper/Step/Step.js +65 -0
- package/dist/components/Stepper/Step/Step.styled.js +167 -0
- package/dist/components/Stepper/Stepper.js +17 -0
- package/dist/components/Stepper/Stepper.styled.js +19 -0
- package/dist/components/Stepper/utils/stepperContext.js +9 -0
- package/dist/components/Switch/Switch.js +24 -0
- package/dist/components/Switch/Switch.styled.js +143 -0
- package/dist/components/Tabs/Tab/Tab.js +21 -0
- package/dist/components/Tabs/Tab/Tab.styled.js +51 -0
- package/dist/components/Tabs/TabList/TabList.js +19 -0
- package/dist/components/Tabs/TabList/TabList.styled.js +13 -0
- package/dist/components/Tabs/TabPanel/TabPanel.js +11 -0
- package/dist/components/Tabs/Tabs/Tabs.js +21 -0
- package/dist/components/Tabs/Tabs/Tabs.styled.js +6 -0
- package/dist/components/Tag/Tag.js +16 -0
- package/dist/components/Tag/Tag.styled.js +169 -0
- package/dist/components/TextInput/TextInput.js +66 -0
- package/dist/components/TextInput/TextInput.styled.js +85 -0
- package/dist/components/TimeField/TimeField.js +58 -0
- package/dist/components/TimeField/TimeField.styled.js +55 -0
- package/dist/components/TimePicker/TimePicker.js +93 -0
- package/dist/components/TimePicker/TimePicker.styled.js +11 -0
- package/dist/components/TimePicker/utils/buildOptions/buildOptions.js +9 -0
- package/dist/components/TimePicker/utils/getSegment/getSegment.js +7 -0
- package/dist/components/Timeline/Timeline.js +57 -0
- package/dist/components/Timeline/Timeline.styled.js +35 -0
- package/dist/components/Timeline/components/BlockLineContainer/BlockLineContainer.js +100 -0
- package/dist/components/Timeline/components/BlockLineContainer/BlockLineContainer.styled.js +72 -0
- package/dist/components/Timeline/components/BlockLineContainer/components/ExpandButton/ExpandButton.js +43 -0
- package/dist/components/Timeline/components/BlockLineContainer/components/ExpandButton/ExpandButton.styled.js +15 -0
- package/dist/components/Timeline/components/BlockLineContainer/components/NameBlock/NameBlock.js +32 -0
- package/dist/components/Timeline/components/BlockLineContainer/components/NameBlock/NameBlock.styled.js +55 -0
- package/dist/components/Timeline/components/BlockLineContainer/utils/assignBlocksToLanes/assignBlocksToLanes.js +26 -0
- package/dist/components/Timeline/components/BlockLineContainer/utils/computeItemPosition/computeItemPosition.js +10 -0
- package/dist/components/Timeline/components/BlockLineContainer/utils/getBlockStyles/getBlockStyles.js +25 -0
- package/dist/components/Timeline/components/BlockLineContainer/utils/getLineHeight/getLineHeight.js +8 -0
- package/dist/components/Timeline/components/BlockLineContainer/utils/groupOverlappingBlocks/groupOverlappingBlocks.js +27 -0
- package/dist/components/Timeline/components/BlockLineContainer/utils/isBlockInBoundaries/isBlockInBoundaries.js +6 -0
- package/dist/components/Timeline/components/GroupLineContainer/GroupLineContainer.js +32 -0
- package/dist/components/Timeline/components/GroupLineContainer/GroupLineContainer.styled.js +13 -0
- package/dist/components/Timeline/components/TimelineRange/TimelineRange.js +34 -0
- package/dist/components/Timeline/components/TimelineRange/TimelineRange.styled.js +50 -0
- package/dist/components/Timeline/utils/Timeline.types.js +7 -0
- package/dist/components/Timeline/utils/getGridLineDates/getGridLineDates.js +11 -0
- package/dist/components/Timeline/utils/getUnitMode/getUnitMode.js +7 -0
- package/dist/components/Timeline/utils/mergeBlocksByColor/mergeBlocksByColor.js +41 -0
- package/dist/components/Toaster/Toaster.js +24 -0
- package/dist/components/Toaster/Toaster.styles.js +59 -0
- package/dist/components/ToggleButton/ToggleButton.js +26 -0
- package/dist/components/ToggleButton/ToggleButton.styled.js +61 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.js +36 -0
- package/dist/components/ToggleButtonGroup/ToggleButtonGroup.styled.js +10 -0
- package/dist/components/Tooltip/Tooltip.js +36 -0
- package/dist/components/Tooltip/Tooltip.styled.js +90 -0
- package/dist/components/YearMonthPicker/YearMonthPicker.js +210 -0
- package/dist/components/YearMonthPicker/YearMonthPicker.styled.js +91 -0
- package/dist/design-system.cjs +442 -521
- package/dist/ds-design-tokens/src/tokens.style.js +159 -0
- package/dist/index.js +84 -0
- package/dist/internal/arrayOfLength/arrayOfLength.js +6 -0
- package/dist/internal/composeRefs/composeRefs.js +21 -0
- package/dist/internal/dateValueToString/dateValueToString.js +7 -0
- package/dist/internal/generateYearsArray/generateYearsArray.js +7 -0
- package/dist/internal/getAriaLabel/getAriaLabel.js +6 -0
- package/dist/internal/getNatureFromMessages/getNatureFromMessages.js +6 -0
- package/dist/internal/stringDateToValue/stringDateToValue.js +7 -0
- package/dist/internal/useHoldToSubmit/useHoldToSubmit.js +26 -0
- package/dist/internal/useResizeObserver/useResizeObserver.js +26 -0
- package/dist/internal/usetranslations/usetranslations.js +8 -0
- package/dist/internal-components/ChartIcon/ChartIcon.js +142 -0
- package/dist/internal-components/ChartIcon/ChartIcon.styled.js +21 -0
- package/dist/internal-components/CoreTextInput/CoreTextInput.styled.js +98 -0
- package/dist/internal-components/DialogLayout/DialogLayout.styled.js +43 -0
- package/dist/internal-components/FormGroupHelper/FormGroupHelper.js +17 -0
- package/dist/internal-components/FormGroupHelper/FormGroupHelper.styled.js +36 -0
- package/dist/internal-components/FormGroupWrapper/FormGroupWrapper.js +59 -0
- package/dist/internal-components/FormGroupWrapper/FormGroupWrapper.styled.js +38 -0
- package/dist/internal-components/Logo/Logo.js +18 -0
- package/dist/internal-components/MultiLineEllipsis/MultiLineEllipsis.js +22 -0
- package/dist/internal-components/MultiLineEllipsis/MultiLineEllipsis.styled.js +12 -0
- package/dist/packages/components/Calendar/doc.md +1 -1
- package/dist/packages/components/DataTable/DataTable.d.ts +10 -1
- package/dist/packages/components/DataTable/DataTableRoot/DataTableRoot.d.ts +4 -0
- package/dist/packages/components/DataTable/DataTableSkeletonRows/DataTableSkeletonRows.d.ts +11 -0
- package/dist/packages/components/DataTable/doc.md +112 -11
- package/dist/packages/components/Header/doc.md +2 -2
- package/package.json +6 -2
- package/dist/design-system.js +0 -14148
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "../../internal/usetranslations/usetranslations.js";
|
|
3
|
+
import t from "../Button/Button.js";
|
|
4
|
+
import n from "../../internal/stringDateToValue/stringDateToValue.js";
|
|
5
|
+
import r from "../../internal/dateValueToString/dateValueToString.js";
|
|
6
|
+
import i from "../Calendar/Calendar.js";
|
|
7
|
+
import a from "../../internal-components/FormGroupWrapper/FormGroupWrapper.js";
|
|
8
|
+
import o from "../../internal/getNatureFromMessages/getNatureFromMessages.js";
|
|
9
|
+
import { DateInput as s, DatePicker as c, Group as l } from "./DatePicker.styled.js";
|
|
10
|
+
import u from "react";
|
|
11
|
+
import { DateSegment as d, Dialog as f, Popover as p } from "react-aria-components";
|
|
12
|
+
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
13
|
+
//#region packages/components/DatePicker/DatePicker.tsx
|
|
14
|
+
var g = u.forwardRef(({ wrapperProps: u, id: g, label: v, labelIconRight: y, labelIconRightTooltip: b, helperTextIcon: x, helperText: S, errorHelperText: C, errorHelperTextIcon: w, successHelperText: T, successHelperTextIcon: E, warningHelperText: D, warningHelperTextIcon: O, orientation: k, required: A, nature: j, fullWidth: M, isDisabled: N, defaultValue: P, onChange: F, value: I, minValue: L, maxValue: R, isDateUnavailable: z, timeZone: B, ampm: V, ...H }, U) => {
|
|
15
|
+
let W = e(_), G = H["aria-label"] ?? String(v), K = o({
|
|
16
|
+
nature: j,
|
|
17
|
+
successHelperText: T,
|
|
18
|
+
errorHelperText: C,
|
|
19
|
+
warningHelperText: D
|
|
20
|
+
}), q = {
|
|
21
|
+
...u,
|
|
22
|
+
htmlForId: g,
|
|
23
|
+
label: v,
|
|
24
|
+
labelIconRight: y,
|
|
25
|
+
labelIconRightTooltip: b,
|
|
26
|
+
helperTextIcon: x,
|
|
27
|
+
helperText: S,
|
|
28
|
+
errorHelperText: C,
|
|
29
|
+
errorHelperTextIcon: w,
|
|
30
|
+
successHelperText: T,
|
|
31
|
+
successHelperTextIcon: E,
|
|
32
|
+
warningHelperText: D,
|
|
33
|
+
warningHelperTextIcon: O,
|
|
34
|
+
orientation: k,
|
|
35
|
+
required: A
|
|
36
|
+
}, J = B ? n("2000-01-01T00:00:00", B) : void 0, Y;
|
|
37
|
+
return V === !0 && (Y = 12), V === !1 && (Y = 24), /* @__PURE__ */ m(a, {
|
|
38
|
+
...q,
|
|
39
|
+
ref: U,
|
|
40
|
+
children: /* @__PURE__ */ h(c, {
|
|
41
|
+
...H,
|
|
42
|
+
id: g,
|
|
43
|
+
isDisabled: N,
|
|
44
|
+
"aria-label": G,
|
|
45
|
+
isRequired: A,
|
|
46
|
+
"data-fullwidth": M,
|
|
47
|
+
hourCycle: Y,
|
|
48
|
+
placeholderValue: J,
|
|
49
|
+
defaultValue: n(P, B),
|
|
50
|
+
onChange: (e) => F?.(r(e)),
|
|
51
|
+
value: typeof I == "string" ? n(I, B) : I,
|
|
52
|
+
minValue: n(L, B) ?? void 0,
|
|
53
|
+
maxValue: n(R, B) ?? void 0,
|
|
54
|
+
isDateUnavailable: z ? (e) => z(r(e)) : void 0,
|
|
55
|
+
children: [/* @__PURE__ */ h(l, {
|
|
56
|
+
"data-fullwidth": M,
|
|
57
|
+
children: [/* @__PURE__ */ m(s, {
|
|
58
|
+
"data-fullwidth": M,
|
|
59
|
+
"aria-disabled": N,
|
|
60
|
+
"data-nature": K,
|
|
61
|
+
children: (e) => /* @__PURE__ */ m(d, { segment: e })
|
|
62
|
+
}), /* @__PURE__ */ m(t, {
|
|
63
|
+
"aria-label": W.openCalendar + v,
|
|
64
|
+
iconLeft: "calendar_today",
|
|
65
|
+
mode: "tertiary"
|
|
66
|
+
})]
|
|
67
|
+
}), /* @__PURE__ */ m(p, { children: /* @__PURE__ */ m(f, { children: /* @__PURE__ */ m(i, { mode: "single" }) }) })]
|
|
68
|
+
})
|
|
69
|
+
});
|
|
70
|
+
}), _ = {
|
|
71
|
+
en: { openCalendar: "Open calendar " },
|
|
72
|
+
fr: { openCalendar: "Ouvrir le calendrier " }
|
|
73
|
+
};
|
|
74
|
+
//#endregion
|
|
75
|
+
export { g as default };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import { styled as e } from "styled-components";
|
|
2
|
+
import { DateInput as t, DatePicker as n, Group as r } from "react-aria-components";
|
|
3
|
+
//#region packages/components/DatePicker/DatePicker.styled.ts
|
|
4
|
+
var i = e(n)`
|
|
5
|
+
display: flex;
|
|
6
|
+
|
|
7
|
+
&[data-fullwidth="true"] {
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
`, a = e(r)`
|
|
11
|
+
display: flex;
|
|
12
|
+
column-gap: var(--spacing-xxs);
|
|
13
|
+
|
|
14
|
+
&[data-fullwidth="true"] {
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
`, o = e(t)`
|
|
18
|
+
position: relative;
|
|
19
|
+
display: inline-flex;
|
|
20
|
+
justify-content: flex-start;
|
|
21
|
+
align-items: center;
|
|
22
|
+
background-color: var(--color-content-neutral-primary-reversed);
|
|
23
|
+
outline: 1px solid var(--color-content-neutral-stroke);
|
|
24
|
+
outline-offset: -1px;
|
|
25
|
+
border-radius: var(--radius-rounded);
|
|
26
|
+
padding: var(--spacing-xs);
|
|
27
|
+
font-size: var(--text-font-size-md);
|
|
28
|
+
line-height: var(--text-line-height-md);
|
|
29
|
+
color: var(--color-content-neutral-primary);
|
|
30
|
+
|
|
31
|
+
.react-aria-DateSegment {
|
|
32
|
+
padding: 0 var(--spacing-xxs);
|
|
33
|
+
|
|
34
|
+
&[data-type="literal"] {
|
|
35
|
+
padding: 0;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&[data-placeholder="true"] {
|
|
39
|
+
color: var(--color-content-neutral-tertiary);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-fullwidth="true"] {
|
|
44
|
+
width: 100%;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
&[aria-disabled="true"] {
|
|
48
|
+
background: var(--color-content-neutral-tertiary);
|
|
49
|
+
color: var(--color-content-neutral-primary-reversed);
|
|
50
|
+
cursor: not-allowed;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
&[data-nature="negative"] {
|
|
54
|
+
outline-color: var(--color-content-message-negative);
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
&[data-nature="positive"] {
|
|
58
|
+
outline-color: var(--color-content-message-positive-darker);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
&[data-nature="warning"] {
|
|
62
|
+
outline-color: var(--color-content-message-warning-darker);
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
//#endregion
|
|
66
|
+
export { o as DateInput, i as DatePicker, a as Group };
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "../../internal/usetranslations/usetranslations.js";
|
|
3
|
+
import t from "../Button/Button.js";
|
|
4
|
+
import n from "../../internal/stringDateToValue/stringDateToValue.js";
|
|
5
|
+
import r from "../../internal/dateValueToString/dateValueToString.js";
|
|
6
|
+
import i from "../Calendar/Calendar.js";
|
|
7
|
+
import a from "../../internal-components/FormGroupWrapper/FormGroupWrapper.js";
|
|
8
|
+
import o from "../../internal/getNatureFromMessages/getNatureFromMessages.js";
|
|
9
|
+
import { DateInput as s, DateRangePicker as c, Group as l, Inputs as u, Separator as d } from "./DateRangePicker.styled.js";
|
|
10
|
+
import f from "react";
|
|
11
|
+
import { DateSegment as p, Dialog as m, Popover as h } from "react-aria-components";
|
|
12
|
+
import { jsx as g, jsxs as _ } from "react/jsx-runtime";
|
|
13
|
+
//#region packages/components/DateRangePicker/DateRangePicker.tsx
|
|
14
|
+
var v = f.forwardRef(({ wrapperProps: f, id: v, label: x, labelIconRight: S, labelIconRightTooltip: C, helperTextIcon: w, helperText: T, errorHelperText: E, errorHelperTextIcon: D, successHelperText: O, successHelperTextIcon: k, warningHelperText: A, warningHelperTextIcon: j, orientation: M, required: N, nature: P, fullWidth: F, isDisabled: I, defaultValue: L, onChange: R, value: z, minValue: B, maxValue: V, isDateUnavailable: H, timeZone: U, ampm: W, ...G }, K) => {
|
|
15
|
+
let q = e(y), J = G["aria-label"] ?? String(x), Y = o({
|
|
16
|
+
nature: P,
|
|
17
|
+
successHelperText: O,
|
|
18
|
+
errorHelperText: E,
|
|
19
|
+
warningHelperText: A
|
|
20
|
+
}), X = {
|
|
21
|
+
...f,
|
|
22
|
+
htmlForId: v,
|
|
23
|
+
label: x,
|
|
24
|
+
labelIconRight: S,
|
|
25
|
+
labelIconRightTooltip: C,
|
|
26
|
+
helperTextIcon: w,
|
|
27
|
+
helperText: T,
|
|
28
|
+
errorHelperText: E,
|
|
29
|
+
errorHelperTextIcon: D,
|
|
30
|
+
successHelperText: O,
|
|
31
|
+
successHelperTextIcon: k,
|
|
32
|
+
warningHelperText: A,
|
|
33
|
+
warningHelperTextIcon: j,
|
|
34
|
+
orientation: M,
|
|
35
|
+
required: N
|
|
36
|
+
}, Z = U && n("2000-01-01T00:00:00", U) || void 0, Q;
|
|
37
|
+
return W === !0 && (Q = 12), W === !1 && (Q = 24), /* @__PURE__ */ g(a, {
|
|
38
|
+
...X,
|
|
39
|
+
ref: K,
|
|
40
|
+
children: /* @__PURE__ */ _(c, {
|
|
41
|
+
...G,
|
|
42
|
+
id: v,
|
|
43
|
+
isDisabled: I,
|
|
44
|
+
"aria-label": J,
|
|
45
|
+
isRequired: N,
|
|
46
|
+
"data-fullwidth": F,
|
|
47
|
+
hourCycle: Q,
|
|
48
|
+
placeholderValue: Z,
|
|
49
|
+
defaultValue: b(L, U),
|
|
50
|
+
onChange: (e) => R?.({
|
|
51
|
+
start: r(e?.start),
|
|
52
|
+
end: r(e?.end)
|
|
53
|
+
}),
|
|
54
|
+
value: z === null ? null : b(z, U),
|
|
55
|
+
minValue: B ? n(B, U) : void 0,
|
|
56
|
+
maxValue: V ? n(V, U) : void 0,
|
|
57
|
+
isDateUnavailable: H ? (e) => H(r(e)) : void 0,
|
|
58
|
+
children: [/* @__PURE__ */ _(l, {
|
|
59
|
+
"data-fullwidth": F,
|
|
60
|
+
children: [/* @__PURE__ */ _(u, {
|
|
61
|
+
"data-disabled": I,
|
|
62
|
+
"data-nature": Y,
|
|
63
|
+
"data-fullwidth": F,
|
|
64
|
+
children: [
|
|
65
|
+
/* @__PURE__ */ g(s, {
|
|
66
|
+
slot: "start",
|
|
67
|
+
"aria-disabled": I,
|
|
68
|
+
children: (e) => /* @__PURE__ */ g(p, { segment: e })
|
|
69
|
+
}),
|
|
70
|
+
/* @__PURE__ */ g(d, {
|
|
71
|
+
"aria-hidden": "true",
|
|
72
|
+
"data-disabled": I,
|
|
73
|
+
children: "–"
|
|
74
|
+
}),
|
|
75
|
+
/* @__PURE__ */ g(s, {
|
|
76
|
+
slot: "end",
|
|
77
|
+
"aria-disabled": I,
|
|
78
|
+
children: (e) => /* @__PURE__ */ g(p, { segment: e })
|
|
79
|
+
})
|
|
80
|
+
]
|
|
81
|
+
}), /* @__PURE__ */ g(t, {
|
|
82
|
+
"aria-label": q.openCalendar + x,
|
|
83
|
+
iconLeft: "calendar_today",
|
|
84
|
+
mode: "tertiary"
|
|
85
|
+
})]
|
|
86
|
+
}), /* @__PURE__ */ g(h, { children: /* @__PURE__ */ g(m, { children: /* @__PURE__ */ g(i, { mode: "range" }) }) })]
|
|
87
|
+
})
|
|
88
|
+
});
|
|
89
|
+
}), y = {
|
|
90
|
+
en: { openCalendar: "Open calendar " },
|
|
91
|
+
fr: { openCalendar: "Ouvrir le calendrier " }
|
|
92
|
+
};
|
|
93
|
+
function b(e, t) {
|
|
94
|
+
if (e) return {
|
|
95
|
+
start: n(e.start, t),
|
|
96
|
+
end: n(e.end, t)
|
|
97
|
+
};
|
|
98
|
+
}
|
|
99
|
+
//#endregion
|
|
100
|
+
export { v as default };
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import { styled as e } from "styled-components";
|
|
2
|
+
import { DateInput as t, DateRangePicker as n, Group as r } from "react-aria-components";
|
|
3
|
+
//#region packages/components/DateRangePicker/DateRangePicker.styled.ts
|
|
4
|
+
var i = e(n)`
|
|
5
|
+
display: flex;
|
|
6
|
+
|
|
7
|
+
&[data-fullwidth="true"] {
|
|
8
|
+
width: 100%;
|
|
9
|
+
}
|
|
10
|
+
`, a = e(r)`
|
|
11
|
+
display: flex;
|
|
12
|
+
column-gap: var(--spacing-xxs);
|
|
13
|
+
|
|
14
|
+
&[data-fullwidth="true"] {
|
|
15
|
+
width: 100%;
|
|
16
|
+
}
|
|
17
|
+
`, o = e.div`
|
|
18
|
+
display: flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
outline: 1px solid var(--color-content-neutral-stroke);
|
|
21
|
+
outline-offset: -1px;
|
|
22
|
+
border-radius: var(--radius-rounded);
|
|
23
|
+
padding: var(--spacing-xs);
|
|
24
|
+
background-color: var(--color-content-neutral-primary-reversed);
|
|
25
|
+
|
|
26
|
+
&[data-fullwidth="true"] {
|
|
27
|
+
width: 100%;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
&[data-disabled="true"] {
|
|
31
|
+
background: var(--color-content-neutral-tertiary);
|
|
32
|
+
cursor: not-allowed;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&[data-nature="negative"] {
|
|
36
|
+
outline-color: var(--color-content-message-negative);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
&[data-nature="positive"] {
|
|
40
|
+
outline-color: var(--color-content-message-positive-darker);
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
&[data-nature="warning"] {
|
|
44
|
+
outline-color: var(--color-content-message-warning-darker);
|
|
45
|
+
}
|
|
46
|
+
`, s = e.span`
|
|
47
|
+
display: inline-block;
|
|
48
|
+
margin: 0 var(--spacing-xxs);
|
|
49
|
+
|
|
50
|
+
&[data-disabled="true"] {
|
|
51
|
+
color: var(--color-content-neutral-primary-reversed);
|
|
52
|
+
}
|
|
53
|
+
`, c = e(t)`
|
|
54
|
+
position: relative;
|
|
55
|
+
display: inline-flex;
|
|
56
|
+
justify-content: flex-start;
|
|
57
|
+
align-items: center;
|
|
58
|
+
background-color: var(--color-content-neutral-primary-reversed);
|
|
59
|
+
|
|
60
|
+
font-size: var(--text-font-size-md);
|
|
61
|
+
line-height: var(--text-line-height-md);
|
|
62
|
+
color: var(--color-content-neutral-primary);
|
|
63
|
+
|
|
64
|
+
.react-aria-DateSegment {
|
|
65
|
+
padding: 0 var(--spacing-xxs);
|
|
66
|
+
|
|
67
|
+
&[data-type="literal"] {
|
|
68
|
+
padding: 0;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
&[data-placeholder="true"] {
|
|
72
|
+
color: var(--color-content-neutral-tertiary);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
&[data-fullwidth="true"] {
|
|
77
|
+
width: 100%;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
&[aria-disabled="true"] {
|
|
81
|
+
background: var(--color-content-neutral-tertiary);
|
|
82
|
+
color: var(--color-content-neutral-primary-reversed);
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
//#endregion
|
|
86
|
+
export { c as DateInput, i as DateRangePicker, a as Group, o as Inputs, s as Separator };
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { CloseButton as e, DialogActions as t, DialogContent as n, DialogForm as r, Title as i, TitleSection as a } from "../../internal-components/DialogLayout/DialogLayout.styled.js";
|
|
3
|
+
import { Dialog as o, Modal as s, ModalOverlay as c } from "./Drawer.styled.js";
|
|
4
|
+
import "react";
|
|
5
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
6
|
+
//#region packages/components/Drawer/Drawer.tsx
|
|
7
|
+
function f({ children: t, isOpen: n, onOpenChange: r, title: f, isDismissable: p = !0 }) {
|
|
8
|
+
return /* @__PURE__ */ u(c, {
|
|
9
|
+
"data-design-system-component": "Drawer",
|
|
10
|
+
isOpen: n,
|
|
11
|
+
onOpenChange: r,
|
|
12
|
+
isDismissable: p,
|
|
13
|
+
isKeyboardDismissDisabled: !p,
|
|
14
|
+
children: /* @__PURE__ */ u(s, { children: /* @__PURE__ */ u(o, {
|
|
15
|
+
"aria-label": f,
|
|
16
|
+
children: ({ close: n }) => /* @__PURE__ */ d(l, { children: [/* @__PURE__ */ d(a, { children: [/* @__PURE__ */ u(i, {
|
|
17
|
+
slot: "title",
|
|
18
|
+
children: f
|
|
19
|
+
}), /* @__PURE__ */ u(e, {
|
|
20
|
+
type: "button",
|
|
21
|
+
onClick: n,
|
|
22
|
+
"aria-label": "Close",
|
|
23
|
+
iconLeft: "clear",
|
|
24
|
+
mode: "tertiary"
|
|
25
|
+
})] }), t] })
|
|
26
|
+
}) })
|
|
27
|
+
});
|
|
28
|
+
}
|
|
29
|
+
//#endregion
|
|
30
|
+
export { t as DrawerActions, n as DrawerContent, r as DrawerForm, f as default };
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
import { CloseButton as e, DialogActions as t, DialogContent as n, DialogForm as r, Title as i, TitleSection as a, blur as o } from "../../internal-components/DialogLayout/DialogLayout.styled.js";
|
|
2
|
+
import { keyframes as s, styled as c } from "styled-components";
|
|
3
|
+
import { Dialog as l, Modal as u, ModalOverlay as d } from "react-aria-components";
|
|
4
|
+
//#region packages/components/Drawer/Drawer.styled.ts
|
|
5
|
+
var f = s`
|
|
6
|
+
from { transform: translateX(100%); }
|
|
7
|
+
to { transform: translateX(0); }
|
|
8
|
+
`, p = c(d)`
|
|
9
|
+
position: fixed;
|
|
10
|
+
z-index: var(--z-index-modal);
|
|
11
|
+
top: 0;
|
|
12
|
+
left: 0;
|
|
13
|
+
right: 0;
|
|
14
|
+
height: var(--visual-viewport-height);
|
|
15
|
+
background: rgba(0 12 51 / 0.7);
|
|
16
|
+
|
|
17
|
+
&[data-entering] {
|
|
18
|
+
animation: ${o} 300ms;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
&[data-exiting] {
|
|
22
|
+
animation: ${o} 300ms reverse ease-in;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
@media (prefers-reduced-motion: reduce) {
|
|
26
|
+
&[data-entering],
|
|
27
|
+
&[data-exiting] {
|
|
28
|
+
animation: none;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
`, m = c(u)`
|
|
32
|
+
position: fixed;
|
|
33
|
+
top: 0;
|
|
34
|
+
right: 0;
|
|
35
|
+
height: var(--visual-viewport-height);
|
|
36
|
+
width: 448px;
|
|
37
|
+
background: var(--color-content-neutral-primary-reversed);
|
|
38
|
+
outline: none;
|
|
39
|
+
|
|
40
|
+
&[data-entering] {
|
|
41
|
+
animation: ${f} 300ms;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
&[data-exiting] {
|
|
45
|
+
animation: ${f} 300ms reverse ease-in;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
@media (prefers-reduced-motion: reduce) {
|
|
49
|
+
&[data-entering],
|
|
50
|
+
&[data-exiting] {
|
|
51
|
+
animation: none;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
@media screen and (max-width: 767px) {
|
|
56
|
+
width: 100vw;
|
|
57
|
+
}
|
|
58
|
+
`, h = c(l)`
|
|
59
|
+
outline: none;
|
|
60
|
+
height: 100%;
|
|
61
|
+
display: flex;
|
|
62
|
+
flex-direction: column;
|
|
63
|
+
`;
|
|
64
|
+
//#endregion
|
|
65
|
+
export { e as CloseButton, h as Dialog, t as DrawerActions, n as DrawerContent, r as DrawerForm, m as Modal, p as ModalOverlay, i as Title, a as TitleSection };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { Core as e } from "./Dropdown.styled.js";
|
|
3
|
+
import t from "react";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/Dropdown/Dropdown.tsx
|
|
6
|
+
var r = t.forwardRef(({ children: t, tallDropdown: r, ...i }, a) => /* @__PURE__ */ n(e, {
|
|
7
|
+
...i,
|
|
8
|
+
ref: a,
|
|
9
|
+
"data-tall": r || void 0,
|
|
10
|
+
children: t
|
|
11
|
+
}));
|
|
12
|
+
//#endregion
|
|
13
|
+
export { r as default };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { css as e, styled as t } from "styled-components";
|
|
2
|
+
//#region packages/components/Dropdown/Dropdown.styled.ts
|
|
3
|
+
var n = e`
|
|
4
|
+
margin: 0;
|
|
5
|
+
max-height: 200px; /* 5 items of 40px height */
|
|
6
|
+
overflow-y: auto;
|
|
7
|
+
border-radius: var(--radius-rounded);
|
|
8
|
+
background: var(--color-content-neutral-primary-reversed);
|
|
9
|
+
box-shadow: var(--shadow-medium);
|
|
10
|
+
list-style: none;
|
|
11
|
+
|
|
12
|
+
&[data-tall="true"] {
|
|
13
|
+
max-height: 400px;
|
|
14
|
+
}
|
|
15
|
+
`, r = t.div`
|
|
16
|
+
${n}
|
|
17
|
+
`;
|
|
18
|
+
//#endregion
|
|
19
|
+
export { r as Core, n as baseDropdownStyles };
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Core as e, IconWrapper as t, Text as n } from "./DropdownListItem.styled.js";
|
|
2
|
+
import r from "../../../Checkbox/Checkbox.js";
|
|
3
|
+
import i from "react";
|
|
4
|
+
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/Dropdown/components/DropdownListItem/DropdownListItem.tsx
|
|
6
|
+
var s = i.forwardRef(({ text: i, iconLeft: s, iconRight: c, selected: l, disabled: u, isMultipleSelection: d, ...f }, p) => /* @__PURE__ */ o(e, {
|
|
7
|
+
...f,
|
|
8
|
+
ref: p,
|
|
9
|
+
"data-selected": !!l,
|
|
10
|
+
"data-disabled": u,
|
|
11
|
+
children: [
|
|
12
|
+
d && /* @__PURE__ */ a(r, {
|
|
13
|
+
label: `item ${i} ${l ? "selected" : "not selected"}`,
|
|
14
|
+
hideLabel: !0,
|
|
15
|
+
isSelected: l,
|
|
16
|
+
readOnly: !0,
|
|
17
|
+
disabled: u
|
|
18
|
+
}),
|
|
19
|
+
!!s && /* @__PURE__ */ a(t, { name: s }),
|
|
20
|
+
!!i && /* @__PURE__ */ a(n, {
|
|
21
|
+
"aria-label": `DropdownItem ${i}`,
|
|
22
|
+
children: i
|
|
23
|
+
}),
|
|
24
|
+
!!c && /* @__PURE__ */ a(t, { name: c })
|
|
25
|
+
]
|
|
26
|
+
}));
|
|
27
|
+
//#endregion
|
|
28
|
+
export { s as default };
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import e from "../../../Icon/Icon.js";
|
|
2
|
+
import { styled as t } from "styled-components";
|
|
3
|
+
//#region packages/components/Dropdown/components/DropdownListItem/DropdownListItem.styled.ts
|
|
4
|
+
var n = t(e)`
|
|
5
|
+
font-size: var(--text-font-size-xl);
|
|
6
|
+
color: var(--color-content-neutral-primary);
|
|
7
|
+
`, r = t.div`
|
|
8
|
+
position: relative;
|
|
9
|
+
z-index: var(--z-index-base);
|
|
10
|
+
width: 100%;
|
|
11
|
+
display: flex;
|
|
12
|
+
align-items: center;
|
|
13
|
+
column-gap: var(--spacing-sm);
|
|
14
|
+
padding: var(--spacing-xs) var(--spacing-sm);
|
|
15
|
+
border: none;
|
|
16
|
+
outline: none;
|
|
17
|
+
background-color: var(--color-content-neutral-primary-reversed);
|
|
18
|
+
color: var(--color-content-neutral-secondary);
|
|
19
|
+
text-align: left;
|
|
20
|
+
appearance: none;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
|
|
23
|
+
&:hover,
|
|
24
|
+
&:active,
|
|
25
|
+
&[data-hovered="true"],
|
|
26
|
+
&[data-pressed="true"],
|
|
27
|
+
&[data-force-hover="true"] {
|
|
28
|
+
background-color: var(--color-background-neutral-underground-1);
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
&[data-selected="true"] {
|
|
32
|
+
background-color: var(--color-content-action-action-lighter);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&:focus-visible,
|
|
36
|
+
&[data-focus-visible="true"],
|
|
37
|
+
&[data-force-focus="true"] {
|
|
38
|
+
// Just above its siblings, so the outline is not hidden by them
|
|
39
|
+
z-index: calc(var(--z-index-base) + 1);
|
|
40
|
+
outline: 2px solid var(--color-background-highlight-focus);
|
|
41
|
+
outline-offset: -2px;
|
|
42
|
+
border-radius: var(--radius-rounded);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
&[data-disabled="true"] {
|
|
46
|
+
background-color: var(--color-content-neutral-primary-reversed);
|
|
47
|
+
color: var(--color-content-neutral-tertiary);
|
|
48
|
+
cursor: not-allowed;
|
|
49
|
+
|
|
50
|
+
${n} {
|
|
51
|
+
color: var(--color-content-neutral-tertiary);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
`, i = t.span`
|
|
55
|
+
flex-grow: 1;
|
|
56
|
+
font-size: var(--text-font-size-md);
|
|
57
|
+
line-height: var(--text-line-height-md);
|
|
58
|
+
`;
|
|
59
|
+
//#endregion
|
|
60
|
+
export { r as Core, n as IconWrapper, i as Text };
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import e from "../Icon/Icon.js";
|
|
2
|
+
import { Actions as t, Content as n, Description as r, IconSlot as i, Main as a, Root as o, Title as s } from "./EmptyState.styled.js";
|
|
3
|
+
import "react";
|
|
4
|
+
import { jsx as c, jsxs as l } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/EmptyState/EmptyState.tsx
|
|
6
|
+
function u({ icon: u, title: d, description: f, children: p, variant: m = "default", className: h, style: g, ..._ }) {
|
|
7
|
+
return /* @__PURE__ */ l(o, {
|
|
8
|
+
className: h,
|
|
9
|
+
style: g,
|
|
10
|
+
"data-variant": m,
|
|
11
|
+
..._,
|
|
12
|
+
children: [/* @__PURE__ */ l(a, { children: [u && /* @__PURE__ */ c(i, { children: /* @__PURE__ */ c(e, { name: u }) }), /* @__PURE__ */ l(n, { children: [/* @__PURE__ */ c(s, { children: d }), f && /* @__PURE__ */ c(r, { children: f })] })] }), p && /* @__PURE__ */ c(t, { children: p })]
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
//#endregion
|
|
16
|
+
export { u as default };
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import { styled as e } from "styled-components";
|
|
2
|
+
//#region packages/components/EmptyState/EmptyState.styled.ts
|
|
3
|
+
var t = e.div`
|
|
4
|
+
width: 100%;
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
align-items: center;
|
|
8
|
+
justify-content: center;
|
|
9
|
+
padding: var(--spacing-lg);
|
|
10
|
+
gap: var(--spacing-lg);
|
|
11
|
+
background-color: var(--color-background-neutral-overground);
|
|
12
|
+
|
|
13
|
+
&[data-variant="gray"] {
|
|
14
|
+
background: var(--color-background-neutral-underground-1);
|
|
15
|
+
}
|
|
16
|
+
`, n = e.div`
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: column;
|
|
19
|
+
align-items: center;
|
|
20
|
+
width: 100%;
|
|
21
|
+
gap: var(--spacing-sm);
|
|
22
|
+
`, r = e.div`
|
|
23
|
+
display: flex;
|
|
24
|
+
align-items: center;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
padding: var(--spacing-xs);
|
|
27
|
+
width: 40px;
|
|
28
|
+
height: 40px;
|
|
29
|
+
border: var(--stroke-default) solid var(--color-content-neutral-stroke);
|
|
30
|
+
border-radius: var(--radius-full);
|
|
31
|
+
background-color: transparent;
|
|
32
|
+
|
|
33
|
+
svg {
|
|
34
|
+
width: 24px;
|
|
35
|
+
height: 24px;
|
|
36
|
+
color: var(--color-content-neutral-secondary);
|
|
37
|
+
}
|
|
38
|
+
`, i = e.div`
|
|
39
|
+
width: 100%;
|
|
40
|
+
text-align: center;
|
|
41
|
+
`, a = e.h2`
|
|
42
|
+
margin: 0;
|
|
43
|
+
color: var(--color-content-neutral-secondary);
|
|
44
|
+
font-size: var(--text-font-size-lg);
|
|
45
|
+
line-height: var(--text-line-height-lg);
|
|
46
|
+
font-weight: 700;
|
|
47
|
+
text-align: center;
|
|
48
|
+
`, o = e.div`
|
|
49
|
+
color: var(--color-content-neutral-secondary);
|
|
50
|
+
font-size: var(--text-font-size-md);
|
|
51
|
+
line-height: var(--text-line-height-md);
|
|
52
|
+
font-weight: 400;
|
|
53
|
+
text-align: center;
|
|
54
|
+
`, s = e.div`
|
|
55
|
+
display: flex;
|
|
56
|
+
justify-content: center;
|
|
57
|
+
align-items: center;
|
|
58
|
+
width: 100%;
|
|
59
|
+
gap: var(--spacing-xs);
|
|
60
|
+
flex-wrap: wrap;
|
|
61
|
+
`;
|
|
62
|
+
//#endregion
|
|
63
|
+
export { s as Actions, i as Content, o as Description, r as IconSlot, n as Main, t as Root, a as Title };
|