@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,340 @@
|
|
|
1
|
+
import e from "../Icon/Icon.js";
|
|
2
|
+
import { css as t, styled as n } from "styled-components";
|
|
3
|
+
import { Button as r, Link as i } from "react-aria-components";
|
|
4
|
+
//#region packages/components/Button/Button.styled.ts
|
|
5
|
+
var a = n(e)`
|
|
6
|
+
// Icons font-sizes are not equal to the font-size of the text (see Figma file)
|
|
7
|
+
&[data-size="small"] {
|
|
8
|
+
font-size: var(--text-font-size-md);
|
|
9
|
+
}
|
|
10
|
+
&[data-size="medium"],
|
|
11
|
+
&[data-size="large"] {
|
|
12
|
+
font-size: var(--text-font-size-xl);
|
|
13
|
+
}
|
|
14
|
+
`, o = t`
|
|
15
|
+
// Core styles, here is the only place where CSS variables are *used*
|
|
16
|
+
appearance: none;
|
|
17
|
+
position: relative;
|
|
18
|
+
display: inline-flex;
|
|
19
|
+
align-items: center;
|
|
20
|
+
justify-content: center;
|
|
21
|
+
gap: var(--spacing-xs);
|
|
22
|
+
text-decoration: none;
|
|
23
|
+
// Little trick to manage the "border"
|
|
24
|
+
// this is needed to reflect the same behavior as in the Figma file (border have "inside" position)
|
|
25
|
+
border: none;
|
|
26
|
+
outline: var(--border-color) solid 1px;
|
|
27
|
+
outline-offset: -1px;
|
|
28
|
+
|
|
29
|
+
background: var(--background-color);
|
|
30
|
+
font-style: normal;
|
|
31
|
+
font-weight: 700;
|
|
32
|
+
color: var(--color);
|
|
33
|
+
text-align: center;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
white-space: nowrap;
|
|
36
|
+
|
|
37
|
+
&[data-fullwidth="true"] {
|
|
38
|
+
width: 100%;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
// Manage hover state
|
|
42
|
+
&[data-hovered],
|
|
43
|
+
&[data-force-hovered] {
|
|
44
|
+
color: var(--hover-color);
|
|
45
|
+
background: var(--hover-background-color);
|
|
46
|
+
outline-color: var(--hover-border-color);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
// Manage pressed state
|
|
50
|
+
&[data-pressed],
|
|
51
|
+
&[data-force-pressed] {
|
|
52
|
+
transform: scale(0.96);
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Manage the "hold to submit" state: hide the content without giving up its
|
|
56
|
+
// space so the button never changes size, and drop the pressed scale so the
|
|
57
|
+
// progress circle does not breathe. The text is a bare text node, hidden by
|
|
58
|
+
// its fill color: "color" must stay, the progress circle draws with currentColor.
|
|
59
|
+
&[data-holding="true"] {
|
|
60
|
+
transform: none;
|
|
61
|
+
-webkit-text-fill-color: transparent;
|
|
62
|
+
|
|
63
|
+
${a} {
|
|
64
|
+
visibility: hidden;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
// Manage keyboard focus state
|
|
69
|
+
&:not([data-disabled])[data-focus-visible],
|
|
70
|
+
&:not([data-disabled])[data-force-focus-visible] {
|
|
71
|
+
color: var(--hover-color);
|
|
72
|
+
background: var(--hover-background-color);
|
|
73
|
+
outline-color: var(--hover-border-color);
|
|
74
|
+
box-shadow:
|
|
75
|
+
#fff 0 0 0 2px,
|
|
76
|
+
var(--color-background-highlight-focus) 0 0 0 4px,
|
|
77
|
+
rgba(0, 0, 0, 0.05) 0px 1px 2px 0px;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
// Manage the main focus state
|
|
81
|
+
&:not([data-disabled])[data-focused],
|
|
82
|
+
&:not([data-disabled])[data-force-focused] {
|
|
83
|
+
outline: var(--border-color) solid 1px;
|
|
84
|
+
}
|
|
85
|
+
&:not([data-disabled])[data-focused][data-hovered],
|
|
86
|
+
&:not([data-disabled])[data-force-focused][data-hovered] {
|
|
87
|
+
outline: var(--hover-border-color) solid 1px;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
// Manage the size variations
|
|
91
|
+
&[data-size="small"] {
|
|
92
|
+
padding: var(--spacing-xs) var(--spacing-sm);
|
|
93
|
+
border-radius: var(--radius-minimal);
|
|
94
|
+
font-size: var(--text-font-size-xs);
|
|
95
|
+
line-height: var(--text-line-height-xs);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
&[data-size="medium"] {
|
|
99
|
+
padding: var(--spacing-xs) var(--spacing-sm);
|
|
100
|
+
border-radius: var(--radius-rounded);
|
|
101
|
+
font-size: var(--text-font-size-sm);
|
|
102
|
+
// The 4px reflect the little space between text and y-axis paddings (see Figma file)
|
|
103
|
+
line-height: calc(var(--text-line-height-sm) + 4px);
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
&[data-size="large"] {
|
|
107
|
+
padding: var(--spacing-sm);
|
|
108
|
+
border-radius: var(--radius-full);
|
|
109
|
+
font-size: var(--text-font-size-md);
|
|
110
|
+
line-height: var(--text-line-height-md);
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
// Adjust the paddings when there is an icon
|
|
114
|
+
&[data-has-icon-left="true"] {
|
|
115
|
+
padding-left: var(--spacing-xs);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
&[data-has-icon-right="true"] {
|
|
119
|
+
padding-right: var(--spacing-xs);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
&[data-has-no-text="true"] {
|
|
123
|
+
padding: var(--spacing-xs);
|
|
124
|
+
|
|
125
|
+
&[data-size="large"] {
|
|
126
|
+
padding: var(--spacing-sm);
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
/**
|
|
131
|
+
* Starting here, we are mainly just changing colors depending on the nature and mode of the button.
|
|
132
|
+
*/
|
|
133
|
+
&[data-nature="action"]:not([data-disabled]):not([data-is-loading="true"]) {
|
|
134
|
+
&[data-mode="primary"] {
|
|
135
|
+
--color: var(--color-content-neutral-primary-reversed);
|
|
136
|
+
--background-color: var(--color-content-action-action);
|
|
137
|
+
--border-color: transparent;
|
|
138
|
+
--hover-color: var(--color-content-neutral-primary-reversed);
|
|
139
|
+
--hover-background-color: var(--color-content-action-action-darker);
|
|
140
|
+
--hover-border-color: transparent;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
&[data-mode="secondary"] {
|
|
144
|
+
--color: var(--color-content-action-action);
|
|
145
|
+
--background-color: var(--color-content-neutral-primary-reversed);
|
|
146
|
+
--border-color: var(--color-content-action-action);
|
|
147
|
+
--hover-color: var(--color-content-action-action-darker);
|
|
148
|
+
--hover-background-color: var(--color-content-action-action-lighter);
|
|
149
|
+
--hover-border-color: var(--color-content-action-action-darker);
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
&[data-mode="tertiary"] {
|
|
153
|
+
--color: var(--color-content-action-action);
|
|
154
|
+
--background-color: transparent;
|
|
155
|
+
--border-color: transparent;
|
|
156
|
+
--hover-color: var(--color-content-action-action-darker);
|
|
157
|
+
--hover-background-color: var(--color-content-action-action-lighter);
|
|
158
|
+
--hover-border-color: transparent;
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
&[data-nature="informative"]:not([data-disabled]):not(
|
|
163
|
+
[data-is-loading="true"]
|
|
164
|
+
) {
|
|
165
|
+
&[data-mode="primary"] {
|
|
166
|
+
--color: var(--color-content-neutral-primary-reversed);
|
|
167
|
+
--background-color: var(--color-content-message-informative-darker);
|
|
168
|
+
--border-color: transparent;
|
|
169
|
+
--hover-color: var(--color-content-neutral-primary-reversed);
|
|
170
|
+
--hover-background-color: var(
|
|
171
|
+
--color-content-message-informative-darkest
|
|
172
|
+
);
|
|
173
|
+
--hover-border-color: transparent;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
&[data-mode="secondary"] {
|
|
177
|
+
--color: var(--color-content-message-informative-darkest);
|
|
178
|
+
--background-color: var(--color-content-message-informative-lighter);
|
|
179
|
+
--border-color: var(--color-content-neutral-stroke);
|
|
180
|
+
--hover-color: var(--color-content-message-informative-darkest);
|
|
181
|
+
--hover-background-color: var(
|
|
182
|
+
--color-content-message-informative-lighter
|
|
183
|
+
);
|
|
184
|
+
--hover-border-color: var(--color-content-message-informative-darker);
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
&[data-mode="tertiary"] {
|
|
188
|
+
--color: var(--color-content-message-informative-darker);
|
|
189
|
+
--background-color: transparent;
|
|
190
|
+
--border-color: transparent;
|
|
191
|
+
--hover-color: var(--color-content-message-informative-darker);
|
|
192
|
+
--hover-background-color: transparent;
|
|
193
|
+
--hover-border-color: transparent;
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
&[data-nature="negative"]:not([data-disabled]):not([data-is-loading="true"]) {
|
|
198
|
+
&[data-mode="primary"] {
|
|
199
|
+
--color: var(--color-content-neutral-primary-reversed);
|
|
200
|
+
--background-color: var(--color-content-message-negative-darker);
|
|
201
|
+
--border-color: transparent;
|
|
202
|
+
--hover-color: var(--color-content-neutral-primary-reversed);
|
|
203
|
+
--hover-background-color: var(--color-content-message-negative-darkest);
|
|
204
|
+
--hover-border-color: transparent;
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
&[data-mode="secondary"] {
|
|
208
|
+
--color: var(--color-content-message-negative-darker);
|
|
209
|
+
--background-color: var(--color-content-message-negative-lighter);
|
|
210
|
+
--border-color: var(--color-content-neutral-stroke);
|
|
211
|
+
--hover-color: var(--color-content-message-negative-darker);
|
|
212
|
+
--hover-background-color: var(--color-content-message-negative-lighter);
|
|
213
|
+
--hover-border-color: var(--color-content-message-negative-darker);
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
&[data-mode="tertiary"] {
|
|
217
|
+
--color: var(--color-content-message-negative-darker);
|
|
218
|
+
--background-color: transparent;
|
|
219
|
+
--border-color: transparent;
|
|
220
|
+
--hover-color: var(--color-content-message-negative-darker);
|
|
221
|
+
--hover-background-color: transparent;
|
|
222
|
+
--hover-border-color: transparent;
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
|
|
226
|
+
&[data-nature="positive"]:not([data-disabled]):not([data-is-loading="true"]) {
|
|
227
|
+
&[data-mode="primary"] {
|
|
228
|
+
--color: var(--color-content-neutral-primary-reversed);
|
|
229
|
+
--background-color: var(--color-content-message-positive-darker);
|
|
230
|
+
--border-color: transparent;
|
|
231
|
+
--hover-color: var(--color-content-neutral-primary-reversed);
|
|
232
|
+
--hover-background-color: var(--color-content-message-positive-darkest);
|
|
233
|
+
--hover-border-color: transparent;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
&[data-mode="secondary"] {
|
|
237
|
+
--color: var(--color-content-message-positive-darker);
|
|
238
|
+
--background-color: var(--color-content-message-positive-lighter);
|
|
239
|
+
--border-color: var(--color-content-neutral-stroke);
|
|
240
|
+
--hover-color: var(--color-content-message-positive-darker);
|
|
241
|
+
--hover-background-color: var(--color-content-message-positive-lighter);
|
|
242
|
+
--hover-border-color: var(--color-content-message-positive-darker);
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
&[data-mode="tertiary"] {
|
|
246
|
+
--color: var(--color-content-message-positive-darker);
|
|
247
|
+
--background-color: transparent;
|
|
248
|
+
--border-color: transparent;
|
|
249
|
+
--hover-color: var(--color-content-message-positive-darker);
|
|
250
|
+
--hover-background-color: transparent;
|
|
251
|
+
--hover-border-color: transparent;
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
&[data-nature="warning"]:not([data-disabled]):not([data-is-loading="true"]) {
|
|
256
|
+
&[data-mode="primary"] {
|
|
257
|
+
--color: var(--color-content-neutral-primary-reversed);
|
|
258
|
+
--background-color: var(--color-content-message-warning-darker);
|
|
259
|
+
--border-color: transparent;
|
|
260
|
+
--hover-color: var(--color-content-neutral-primary-reversed);
|
|
261
|
+
--hover-background-color: var(--color-content-message-warning-darkest);
|
|
262
|
+
--hover-border-color: transparent;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
&[data-mode="secondary"] {
|
|
266
|
+
--color: var(--color-content-message-warning-darker);
|
|
267
|
+
--background-color: var(--color-content-message-warning-lighter);
|
|
268
|
+
--border-color: var(--color-content-neutral-stroke);
|
|
269
|
+
--hover-color: var(--color-content-message-warning-darker);
|
|
270
|
+
--hover-background-color: var(--color-content-message-warning-lighter);
|
|
271
|
+
--hover-border-color: var(--color-content-message-warning-darker);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
&[data-mode="tertiary"] {
|
|
275
|
+
--color: var(--color-content-message-warning-darker);
|
|
276
|
+
--background-color: transparent;
|
|
277
|
+
--border-color: transparent;
|
|
278
|
+
--hover-color: var(--color-content-message-warning-darker);
|
|
279
|
+
--hover-background-color: transparent;
|
|
280
|
+
--hover-border-color: transparent;
|
|
281
|
+
}
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// Remove box-shadow and add text-decoration on hover/focus/active, but not for "action" buttons
|
|
285
|
+
// (nor while holding, where the text is hidden)
|
|
286
|
+
/* prettier-ignore */
|
|
287
|
+
&[data-mode="tertiary"]:not([data-disabled]):not([data-is-loading="true"]):not([data-nature="action"]):not([data-holding="true"])[data-hovered],
|
|
288
|
+
&[data-mode="tertiary"]:not([data-disabled]):not([data-is-loading="true"]):not([data-nature="action"]):not([data-holding="true"])[data-force-hovered],
|
|
289
|
+
&[data-mode="tertiary"]:not([data-disabled]):not([data-is-loading="true"]):not([data-nature="action"]):not([data-holding="true"])[data-focus-visible],
|
|
290
|
+
&[data-mode="tertiary"]:not([data-disabled]):not([data-is-loading="true"]):not([data-nature="action"]):not([data-holding="true"])[data-force-focus-visible],
|
|
291
|
+
&[data-mode="tertiary"]:not([data-disabled]):not([data-is-loading="true"]):not([data-nature="action"]):not([data-holding="true"])[data-pressed],
|
|
292
|
+
&[data-mode="tertiary"]:not([data-disabled]):not([data-is-loading="true"]):not([data-nature="action"]):not([data-holding="true"])[data-force-pressed] {
|
|
293
|
+
box-shadow: none;
|
|
294
|
+
text-decoration: underline;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
// The loading state shares the disabled palette. It needs its own selector
|
|
298
|
+
// because react-aria's "isPending" deliberately does not set data-disabled:
|
|
299
|
+
// the button stays focusable and keeps firing hover events, which the
|
|
300
|
+
// hover variables redefined below neutralise visually.
|
|
301
|
+
&[data-disabled],
|
|
302
|
+
&[data-is-loading="true"] {
|
|
303
|
+
cursor: not-allowed;
|
|
304
|
+
--color: var(--color-content-neutral-primary-reversed);
|
|
305
|
+
--hover-color: var(--color);
|
|
306
|
+
--hover-background-color: var(--background-color);
|
|
307
|
+
--hover-border-color: var(--border-color);
|
|
308
|
+
|
|
309
|
+
&[data-mode="primary"] {
|
|
310
|
+
--background-color: var(--color-content-neutral-tertiary);
|
|
311
|
+
--border-color: transparent;
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
&[data-mode="secondary"] {
|
|
315
|
+
--background-color: var(--color-content-neutral-tertiary);
|
|
316
|
+
--border-color: var(--color-content-neutral-primary);
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
&[data-mode="tertiary"] {
|
|
320
|
+
--background-color: transparent;
|
|
321
|
+
--hover-background-color: transparent;
|
|
322
|
+
--color: var(--color-content-neutral-tertiary);
|
|
323
|
+
}
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
&[data-is-loading="true"] {
|
|
327
|
+
--color: var(--color-content-neutral-primary);
|
|
328
|
+
}
|
|
329
|
+
`, s = n(r)`
|
|
330
|
+
${o}
|
|
331
|
+
`, c = n(i)`
|
|
332
|
+
${o}
|
|
333
|
+
`, l = n.div`
|
|
334
|
+
position: absolute;
|
|
335
|
+
top: 4px;
|
|
336
|
+
right: 4px;
|
|
337
|
+
transform: translate(50%, -50%);
|
|
338
|
+
`;
|
|
339
|
+
//#endregion
|
|
340
|
+
export { l as BadgeWrapper, s as CoreButton, c as CoreLink, a as IconWrapper, o as coreButtonStyles };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import e from "../../../../internal/usetranslations/usetranslations.js";
|
|
3
|
+
import { HoldProgressCircle as t, HoldProgressSvg as n } from "./HoldProgress.styled.js";
|
|
4
|
+
import { jsx as r } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/Button/components/HoldProgress/HoldProgress.tsx
|
|
6
|
+
function i({ size: i, duration: o }) {
|
|
7
|
+
let s = e(a);
|
|
8
|
+
return /* @__PURE__ */ r(n, {
|
|
9
|
+
viewBox: "0 0 24 24",
|
|
10
|
+
role: "progressbar",
|
|
11
|
+
"aria-label": s.label,
|
|
12
|
+
"aria-valuemin": 0,
|
|
13
|
+
"aria-valuemax": 100,
|
|
14
|
+
"aria-valuenow": 0,
|
|
15
|
+
"data-size": i,
|
|
16
|
+
style: { "--hold-to-submit-duration": `${o}ms` },
|
|
17
|
+
children: /* @__PURE__ */ r(t, {
|
|
18
|
+
cx: "12",
|
|
19
|
+
cy: "12",
|
|
20
|
+
r: "8"
|
|
21
|
+
})
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
var a = {
|
|
25
|
+
en: { label: "Keep holding to confirm" },
|
|
26
|
+
fr: { label: "Maintenez pour confirmer" }
|
|
27
|
+
};
|
|
28
|
+
//#endregion
|
|
29
|
+
export { i as default };
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { keyframes as e, styled as t } from "styled-components";
|
|
2
|
+
//#region packages/components/Button/components/HoldProgress/HoldProgress.styled.ts
|
|
3
|
+
var n = 50.27, r = e`
|
|
4
|
+
from {
|
|
5
|
+
stroke-dashoffset: ${n};
|
|
6
|
+
}
|
|
7
|
+
to {
|
|
8
|
+
stroke-dashoffset: 0;
|
|
9
|
+
}
|
|
10
|
+
`, i = t.svg`
|
|
11
|
+
position: absolute;
|
|
12
|
+
inset: 0;
|
|
13
|
+
margin: auto;
|
|
14
|
+
// Start filling at 12 o'clock instead of 3 o'clock
|
|
15
|
+
transform: rotate(-90deg);
|
|
16
|
+
|
|
17
|
+
&[data-size="small"] {
|
|
18
|
+
width: 14px;
|
|
19
|
+
height: 14px;
|
|
20
|
+
}
|
|
21
|
+
&[data-size="medium"] {
|
|
22
|
+
width: 18px;
|
|
23
|
+
height: 18px;
|
|
24
|
+
}
|
|
25
|
+
&[data-size="large"] {
|
|
26
|
+
width: 22px;
|
|
27
|
+
height: 22px;
|
|
28
|
+
}
|
|
29
|
+
`, a = t.circle`
|
|
30
|
+
fill: none;
|
|
31
|
+
stroke: currentColor;
|
|
32
|
+
// Deliberately thick (the hole is a third of the outer diameter) so the shape
|
|
33
|
+
// reads as a filling gauge and never as a pending spinner. With a stroke that
|
|
34
|
+
// thick, a round linecap would show up as a blob, hence the default butt one.
|
|
35
|
+
stroke-width: 8;
|
|
36
|
+
stroke-dasharray: ${n};
|
|
37
|
+
// No prefers-reduced-motion guard here on purpose: this animation is not
|
|
38
|
+
// decorative, it *is* the "how much longer" information.
|
|
39
|
+
animation: ${r} var(--hold-to-submit-duration) linear forwards;
|
|
40
|
+
`;
|
|
41
|
+
//#endregion
|
|
42
|
+
export { a as HoldProgressCircle, i as HoldProgressSvg };
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { IconWrapper as e } from "../../Button.styled.js";
|
|
3
|
+
import t from "../../../Loader/Loader.js";
|
|
4
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
|
+
//#region packages/components/Button/components/IconLeftElement/IconLeftElement.tsx
|
|
6
|
+
function r({ iconLeft: r, isLoading: i, size: a }) {
|
|
7
|
+
return i ? /* @__PURE__ */ n(t, { size: a === "small" ? "small" : "medium" }) : r ? /* @__PURE__ */ n(e, {
|
|
8
|
+
name: r,
|
|
9
|
+
"data-size": a
|
|
10
|
+
}) : null;
|
|
11
|
+
}
|
|
12
|
+
//#endregion
|
|
13
|
+
export { r as default };
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use client";
|
|
2
|
+
import { IconWrapper as e } from "../../Button.styled.js";
|
|
3
|
+
import { jsx as t } from "react/jsx-runtime";
|
|
4
|
+
//#region packages/components/Button/components/IconRightElement/IconRightElement.tsx
|
|
5
|
+
function n({ iconRight: n, text: r, isLoading: i, size: a }) {
|
|
6
|
+
return i && !r || !n ? null : /* @__PURE__ */ t(e, {
|
|
7
|
+
name: n,
|
|
8
|
+
"data-size": a
|
|
9
|
+
});
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
export { n as default };
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import e from "../Button/Button.js";
|
|
2
|
+
import { Calendar as t, CalendarCell as n, CalendarGrid as r, Header as i, Heading as a, RangeCalendar as o } from "./Calendar.styled.js";
|
|
3
|
+
import s from "../../internal/stringDateToValue/stringDateToValue.js";
|
|
4
|
+
import c from "../../internal/dateValueToString/dateValueToString.js";
|
|
5
|
+
import "react";
|
|
6
|
+
import { Fragment as l, jsx as u, jsxs as d } from "react/jsx-runtime";
|
|
7
|
+
//#region packages/components/Calendar/Calendar.tsx
|
|
8
|
+
function f({ mode: e, renderCalendarCell: n, visibleDuration: i, minValue: a, maxValue: f, isDateUnavailable: g, isDisabled: _, isReadOnly: v, autoFocus: y, focusedValue: b, defaultFocusedValue: x, pageBehavior: S, firstDayOfWeek: C, className: w, style: T, size: E = "default", noContainer: D, noHeading: O, onFocusChange: k, ...A }) {
|
|
9
|
+
let j = {
|
|
10
|
+
visibleDuration: i,
|
|
11
|
+
minValue: s(a) ?? void 0,
|
|
12
|
+
maxValue: s(f) ?? void 0,
|
|
13
|
+
isDateUnavailable: g ? (e) => g(c(e)) : void 0,
|
|
14
|
+
isDisabled: _,
|
|
15
|
+
isReadOnly: v,
|
|
16
|
+
autoFocus: y,
|
|
17
|
+
focusedValue: s(b) ?? void 0,
|
|
18
|
+
defaultFocusedValue: s(x) ?? void 0,
|
|
19
|
+
pageBehavior: S,
|
|
20
|
+
firstDayOfWeek: C,
|
|
21
|
+
className: w,
|
|
22
|
+
style: T,
|
|
23
|
+
"data-no-container": D,
|
|
24
|
+
onFocusChange: (e) => {
|
|
25
|
+
k && k(c(e));
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
if (e === "single") {
|
|
29
|
+
let e = A;
|
|
30
|
+
return /* @__PURE__ */ d(t, {
|
|
31
|
+
...j,
|
|
32
|
+
value: typeof e.value == "string" ? s(e.value) : e.value,
|
|
33
|
+
onChange: e.onChange ? (t) => e.onChange?.(c(t)) : void 0,
|
|
34
|
+
children: [!O && /* @__PURE__ */ u(m, {}), /* @__PURE__ */ u(r, {
|
|
35
|
+
"data-mode": "single",
|
|
36
|
+
"data-size": E,
|
|
37
|
+
children: (e) => n ? /* @__PURE__ */ u(l, { children: n(c(e)) }) : /* @__PURE__ */ u(h, {
|
|
38
|
+
date: c(e),
|
|
39
|
+
mode: "single"
|
|
40
|
+
})
|
|
41
|
+
})]
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
if (e === "range") {
|
|
45
|
+
let e = A;
|
|
46
|
+
return /* @__PURE__ */ d(o, {
|
|
47
|
+
...j,
|
|
48
|
+
onFocusChange: e.onFocusChange ? (t) => e.onFocusChange?.(c(t)) : void 0,
|
|
49
|
+
allowsNonContiguousRanges: e.allowsNonContiguousRanges,
|
|
50
|
+
onChange: (t) => e.onChange?.({
|
|
51
|
+
start: c(t?.start),
|
|
52
|
+
end: c(t?.end)
|
|
53
|
+
}),
|
|
54
|
+
value: e.value === null ? null : p(e.value),
|
|
55
|
+
children: [!O && /* @__PURE__ */ u(m, {}), /* @__PURE__ */ u(r, {
|
|
56
|
+
"data-mode": "range",
|
|
57
|
+
"data-size": E,
|
|
58
|
+
children: (e) => n ? /* @__PURE__ */ u(l, { children: n(c(e)) }) : /* @__PURE__ */ u(h, {
|
|
59
|
+
date: c(e),
|
|
60
|
+
mode: "range"
|
|
61
|
+
})
|
|
62
|
+
})]
|
|
63
|
+
});
|
|
64
|
+
}
|
|
65
|
+
if (e === "multiple") {
|
|
66
|
+
let e = A;
|
|
67
|
+
return /* @__PURE__ */ d(t, {
|
|
68
|
+
...j,
|
|
69
|
+
value: null,
|
|
70
|
+
onChange: e.onChange ? (t) => {
|
|
71
|
+
let n = e.value ?? [], r = c(t);
|
|
72
|
+
return n.includes(r) ? e.onChange?.(n.filter((e) => e !== r)) : e.onChange?.([...n, r]);
|
|
73
|
+
} : void 0,
|
|
74
|
+
children: [!O && /* @__PURE__ */ u(m, {}), /* @__PURE__ */ u(r, {
|
|
75
|
+
"data-mode": "single",
|
|
76
|
+
"data-size": E,
|
|
77
|
+
children: (t) => n ? /* @__PURE__ */ u(l, { children: n(c(t)) }) : /* @__PURE__ */ u(h, {
|
|
78
|
+
date: c(t),
|
|
79
|
+
mode: "single",
|
|
80
|
+
"data-multiple-selected": e.value?.includes(c(t))
|
|
81
|
+
})
|
|
82
|
+
})]
|
|
83
|
+
});
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
function p(e) {
|
|
87
|
+
if (e) return {
|
|
88
|
+
start: s(e.start),
|
|
89
|
+
end: s(e.end)
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
var m = () => /* @__PURE__ */ d(i, { children: [
|
|
93
|
+
/* @__PURE__ */ u(e, {
|
|
94
|
+
iconLeft: "chevron_left",
|
|
95
|
+
slot: "previous",
|
|
96
|
+
mode: "tertiary"
|
|
97
|
+
}),
|
|
98
|
+
/* @__PURE__ */ u(a, {}),
|
|
99
|
+
/* @__PURE__ */ u(e, {
|
|
100
|
+
iconLeft: "chevron_right",
|
|
101
|
+
slot: "next",
|
|
102
|
+
mode: "tertiary"
|
|
103
|
+
})
|
|
104
|
+
] }), h = ({ date: e, mode: t, ...r }) => {
|
|
105
|
+
let i = t === "multiple" ? "single" : t;
|
|
106
|
+
return /* @__PURE__ */ u(n, {
|
|
107
|
+
...r,
|
|
108
|
+
"data-mode": i,
|
|
109
|
+
date: s(e)
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
//#endregion
|
|
113
|
+
export { h as CalendarCell, f as default };
|