@studiolxd/brand 49.28.0 → 51.0.0
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/LICENSE +61 -0
- package/README.md +26 -4
- package/dist/_shared/alert.js +98 -0
- package/dist/_shared/assign-ref.js +6 -0
- package/dist/_shared/asyncmultiselect.js +133 -0
- package/dist/_shared/asyncselect.js +122 -0
- package/dist/_shared/brandmessagescontext.js +27 -11
- package/dist/_shared/{calendargrid.js → calendar.js} +67 -57
- package/dist/_shared/closebutton.js +34 -0
- package/dist/_shared/colorpicker.js +141 -122
- package/dist/_shared/connectorrequestsummary.js +46 -0
- package/dist/_shared/{copy-to-clipboard.js → copy.js} +8 -1
- package/dist/_shared/datepicker.js +98 -83
- package/dist/_shared/default-render-link.js +12 -0
- package/dist/_shared/dialogsurface.js +1 -1
- package/dist/_shared/dotsbutton.js +31 -0
- package/dist/_shared/dropdownitems.js +14 -20
- package/dist/_shared/env.js +13 -2
- package/dist/_shared/field-optional.js +9 -0
- package/dist/_shared/fieldshell.js +85 -0
- package/dist/_shared/fileupload.js +237 -0
- package/dist/_shared/focusable-when-disabled.js +10 -0
- package/dist/_shared/imagecropdialog.js +65 -460
- package/dist/_shared/inputfield.js +92 -0
- package/dist/_shared/inputphone.js +91 -0
- package/dist/_shared/legalfooter.js +42 -0
- package/dist/_shared/logo.js +10 -9
- package/dist/_shared/menubutton.js +31 -0
- package/dist/_shared/modal.js +69 -0
- package/dist/_shared/multiselect.js +128 -0
- package/dist/_shared/notificationbutton.js +35 -0
- package/dist/_shared/numberinput.js +104 -0
- package/dist/_shared/otpinput.js +119 -0
- package/dist/_shared/overflow-focusable.js +15 -0
- package/dist/_shared/pagination.js +198 -0
- package/dist/_shared/prevnextnav.js +93 -0
- package/dist/_shared/progressbar.js +25 -23
- package/dist/_shared/publicpageshell.js +39 -0
- package/dist/_shared/requiredinput.js +23 -0
- package/dist/_shared/searchform.js +65 -0
- package/dist/_shared/select.js +163 -0
- package/dist/_shared/sheet.js +58 -0
- package/dist/_shared/side-offset.js +13 -0
- package/dist/_shared/slider.js +43 -0
- package/dist/_shared/spinner.js +5 -0
- package/dist/_shared/table.js +140 -0
- package/dist/_shared/timeselect.js +91 -0
- package/dist/_shared/tokens.js +147 -140
- package/dist/_shared/typingindicator.js +32 -0
- package/dist/_shared/untrustedtext.js +27 -23
- package/dist/_shared/useasyncoptions.js +30 -0
- package/dist/_types/atoms/Accordion/Accordion.d.ts +7 -1
- package/dist/_types/atoms/AsyncMultiSelect/AsyncMultiSelect.d.ts +14 -5
- package/dist/_types/atoms/AsyncSelect/AsyncSelect.d.ts +14 -5
- package/dist/_types/atoms/Autocomplete/Autocomplete.d.ts +16 -7
- package/dist/_types/atoms/Button/Button.d.ts +13 -0
- package/dist/_types/atoms/CloseButton/CloseButton.d.ts +22 -3
- package/dist/_types/atoms/DescriptionList/DescriptionList.d.ts +4 -4
- package/dist/_types/atoms/EmbedFrame/EmbedFrame.d.ts +13 -1
- package/dist/_types/atoms/Fieldset/Fieldset.d.ts +12 -6
- package/dist/_types/atoms/FileUpload/FileUpload.d.ts +7 -2
- package/dist/_types/atoms/Input/Input.d.ts +1 -1
- package/dist/_types/atoms/InputPhone/InputPhone.d.ts +7 -0
- package/dist/_types/atoms/Link/Link.d.ts +7 -3
- package/dist/_types/atoms/List/List.d.ts +4 -2
- package/dist/_types/atoms/Logo/Logo.d.ts +11 -5
- package/dist/_types/atoms/Logo/index.d.ts +1 -1
- package/dist/_types/atoms/MultiSelect/MultiSelect.d.ts +22 -11
- package/dist/_types/atoms/NumberBadge/NumberBadge.d.ts +14 -2
- package/dist/_types/atoms/NumberInput/NumberInput.d.ts +1 -1
- package/dist/_types/atoms/OtpInput/OtpInput.d.ts +2 -0
- package/dist/_types/atoms/Paragraph/Paragraph.d.ts +14 -2
- package/dist/_types/atoms/Popover/Popover.d.ts +5 -1
- package/dist/_types/atoms/ProgressBar/ProgressBar.d.ts +12 -4
- package/dist/_types/atoms/Select/Select.d.ts +6 -0
- package/dist/_types/atoms/Skeleton/Skeleton.d.ts +1 -1
- package/dist/_types/atoms/Sparkline/Sparkline.d.ts +2 -0
- package/dist/_types/atoms/Spinner/Spinner.d.ts +3 -1
- package/dist/_types/atoms/StepMarker/StepMarker.d.ts +9 -4
- package/dist/_types/atoms/Tag/Tag.d.ts +13 -2
- package/dist/_types/atoms/Text/Text.d.ts +11 -5
- package/dist/_types/atoms/TimeSelect/TimeSelect.d.ts +6 -1
- package/dist/_types/atoms/Toggle/Toggle.d.ts +9 -0
- package/dist/_types/atoms/Tooltip/Tooltip.d.ts +11 -13
- package/dist/_types/atoms/TypingIndicator/TypingIndicator.d.ts +3 -1
- package/dist/_types/atoms/_shared/useAsyncOptions.d.ts +36 -0
- package/dist/_types/constants/assign-ref.d.ts +12 -0
- package/dist/_types/constants/default-render-link.d.ts +20 -0
- package/dist/_types/constants/env.d.ts +9 -5
- package/dist/_types/constants/field-optional.d.ts +14 -0
- package/dist/_types/constants/focusable-when-disabled.d.ts +2 -0
- package/dist/_types/constants/overflow-focusable.d.ts +15 -0
- package/dist/_types/constants/side-offset.d.ts +18 -0
- package/dist/_types/email/EmailLayout.d.ts +38 -21
- package/dist/_types/messages/BrandMessages.d.ts +60 -15
- package/dist/_types/messages/BrandMessagesContext.d.ts +534 -12
- package/dist/_types/messages/BrandMessagesProvider.d.ts +33 -11
- package/dist/_types/messages/brandMessagesEs.d.ts +18 -0
- package/dist/_types/messages/es/alert.d.ts +3 -0
- package/dist/_types/messages/es/annotationThread.d.ts +3 -0
- package/dist/_types/messages/es/appHeader.d.ts +3 -0
- package/dist/_types/messages/es/appLauncher.d.ts +3 -0
- package/dist/_types/messages/es/appRoot.d.ts +3 -0
- package/dist/_types/messages/es/appShell.d.ts +3 -0
- package/dist/_types/messages/es/asyncMultiSelect.d.ts +3 -0
- package/dist/_types/messages/es/asyncSelect.d.ts +3 -0
- package/dist/_types/messages/es/avatarUpload.d.ts +3 -0
- package/dist/_types/messages/es/banner.d.ts +3 -0
- package/dist/_types/messages/es/breadcrumb.d.ts +3 -0
- package/dist/_types/messages/es/calendar.d.ts +3 -0
- package/dist/_types/messages/es/calendarPlanner.d.ts +3 -0
- package/dist/_types/messages/es/calendarRoster.d.ts +3 -0
- package/dist/_types/messages/es/carousel.d.ts +3 -0
- package/dist/_types/messages/es/chart.d.ts +3 -0
- package/dist/_types/messages/es/chatShell.d.ts +3 -0
- package/dist/_types/messages/es/clockWidget.d.ts +3 -0
- package/dist/_types/messages/es/closeButton.d.ts +3 -0
- package/dist/_types/messages/es/codeBlock.d.ts +3 -0
- package/dist/_types/messages/es/colorPicker.d.ts +3 -0
- package/dist/_types/messages/es/commandPalette.d.ts +3 -0
- package/dist/_types/messages/es/confirmDialog.d.ts +3 -0
- package/dist/_types/messages/es/connectorConsent.d.ts +3 -0
- package/dist/_types/messages/es/connectorExternalSignIn.d.ts +3 -0
- package/dist/_types/messages/es/connectorRejection.d.ts +3 -0
- package/dist/_types/messages/es/connectorRequestSummary.d.ts +3 -0
- package/dist/_types/messages/es/connectorSignIn.d.ts +3 -0
- package/dist/_types/messages/es/consent.d.ts +3 -0
- package/dist/_types/messages/es/conversationList.d.ts +3 -0
- package/dist/_types/messages/es/conversationThread.d.ts +3 -0
- package/dist/_types/messages/es/copy.d.ts +3 -0
- package/dist/_types/messages/es/dataTable.d.ts +3 -0
- package/dist/_types/messages/es/datePicker.d.ts +3 -0
- package/dist/_types/messages/es/docsSearch.d.ts +3 -0
- package/dist/_types/messages/es/dotsButton.d.ts +3 -0
- package/dist/_types/messages/es/field.d.ts +3 -0
- package/dist/_types/messages/es/fileUpload.d.ts +3 -0
- package/dist/_types/messages/es/filterBar.d.ts +3 -0
- package/dist/_types/messages/es/floatingDock.d.ts +3 -0
- package/dist/_types/messages/es/heatmap.d.ts +3 -0
- package/dist/_types/messages/es/imageCropDialog.d.ts +3 -0
- package/dist/_types/messages/es/inputField.d.ts +3 -0
- package/dist/_types/messages/es/inputPhone.d.ts +3 -0
- package/dist/_types/messages/es/languageSwitcher.d.ts +3 -0
- package/dist/_types/messages/es/legalFooter.d.ts +3 -0
- package/dist/_types/messages/es/menuButton.d.ts +3 -0
- package/dist/_types/messages/es/messageComposer.d.ts +3 -0
- package/dist/_types/messages/es/modal.d.ts +3 -0
- package/dist/_types/messages/es/multiSelect.d.ts +3 -0
- package/dist/_types/messages/es/notificationButton.d.ts +3 -0
- package/dist/_types/messages/es/notificationList.d.ts +3 -0
- package/dist/_types/messages/es/notificationPanel.d.ts +3 -0
- package/dist/_types/messages/es/numberInput.d.ts +3 -0
- package/dist/_types/messages/es/onboardingShell.d.ts +3 -0
- package/dist/_types/messages/es/orgChart.d.ts +3 -0
- package/dist/_types/messages/es/orgSwitcher.d.ts +3 -0
- package/dist/_types/messages/es/otpInput.d.ts +3 -0
- package/dist/_types/messages/es/pagination.d.ts +3 -0
- package/dist/_types/messages/es/passwordField.d.ts +3 -0
- package/dist/_types/messages/es/planningGrid.d.ts +3 -0
- package/dist/_types/messages/es/prevNextNav.d.ts +3 -0
- package/dist/_types/messages/es/progressBar.d.ts +3 -0
- package/dist/_types/messages/es/projectCard.d.ts +3 -0
- package/dist/_types/messages/es/publicPageShell.d.ts +3 -0
- package/dist/_types/messages/es/recurrenceField.d.ts +3 -0
- package/dist/_types/messages/es/searchForm.d.ts +3 -0
- package/dist/_types/messages/es/select.d.ts +3 -0
- package/dist/_types/messages/es/sheet.d.ts +3 -0
- package/dist/_types/messages/es/sidebar.d.ts +3 -0
- package/dist/_types/messages/es/sidebarNav.d.ts +3 -0
- package/dist/_types/messages/es/siteHeader.d.ts +3 -0
- package/dist/_types/messages/es/siteNav.d.ts +3 -0
- package/dist/_types/messages/es/siteSearch.d.ts +3 -0
- package/dist/_types/messages/es/slider.d.ts +3 -0
- package/dist/_types/messages/es/spinner.d.ts +3 -0
- package/dist/_types/messages/es/statTile.d.ts +3 -0
- package/dist/_types/messages/es/stepper.d.ts +3 -0
- package/dist/_types/messages/es/table.d.ts +3 -0
- package/dist/_types/messages/es/tableOfContents.d.ts +3 -0
- package/dist/_types/messages/es/themeSwitcher.d.ts +3 -0
- package/dist/_types/messages/es/timeSelect.d.ts +3 -0
- package/dist/_types/messages/es/timeline.d.ts +3 -0
- package/dist/_types/messages/es/toaster.d.ts +3 -0
- package/dist/_types/messages/es/treeView.d.ts +3 -0
- package/dist/_types/messages/es/typingIndicator.d.ts +3 -0
- package/dist/_types/messages/es/untrustedText.d.ts +3 -0
- package/dist/_types/messages/es/uptimeBars.d.ts +3 -0
- package/dist/_types/messages/es/userMenu.d.ts +3 -0
- package/dist/_types/messages/index.d.ts +1 -1
- package/dist/_types/molecules/Alert/Alert.d.ts +11 -2
- package/dist/_types/molecules/AppLauncher/AppLauncher.d.ts +9 -3
- package/dist/_types/molecules/AsyncMultiSelectField/AsyncMultiSelectField.d.ts +2 -1
- package/dist/_types/molecules/AsyncSelectField/AsyncSelectField.d.ts +2 -1
- package/dist/_types/molecules/AutocompleteField/AutocompleteField.d.ts +2 -1
- package/dist/_types/molecules/Banner/Banner.d.ts +11 -3
- package/dist/_types/molecules/Breadcrumb/Breadcrumb.d.ts +3 -1
- package/dist/_types/molecules/Calendar/Calendar.d.ts +10 -1
- package/dist/_types/molecules/CalendarPlanner/CalendarPlanner.d.ts +50 -14
- package/dist/_types/molecules/CalendarRoster/CalendarRoster.d.ts +23 -3
- package/dist/_types/molecules/Card/Card.d.ts +10 -2
- package/dist/_types/molecules/CheckboxField/CheckboxField.d.ts +8 -1
- package/dist/_types/molecules/ColorPicker/ColorPicker.d.ts +15 -1
- package/dist/_types/molecules/ColorPickerField/ColorPickerField.d.ts +10 -1
- package/dist/_types/molecules/CommandPalette/CommandPalette.d.ts +5 -0
- package/dist/_types/molecules/ConfirmDialog/ConfirmDialog.d.ts +6 -1
- package/dist/_types/molecules/ContextMenu/ContextMenu.d.ts +8 -1
- package/dist/_types/molecules/CopyButton/CopyButton.d.ts +8 -0
- package/dist/_types/molecules/DatePicker/DatePicker.d.ts +18 -1
- package/dist/_types/molecules/DatePickerField/DatePickerField.d.ts +2 -1
- package/dist/_types/molecules/DateTimeField/DateTimeField.d.ts +10 -1
- package/dist/_types/molecules/DocsSearch/DocsSearch.d.ts +2 -2
- package/dist/_types/molecules/DropdownField/DropdownField.d.ts +11 -1
- package/dist/_types/molecules/FileUploadField/FileUploadField.d.ts +2 -1
- package/dist/_types/molecules/FilterBar/FilterBar.d.ts +3 -1
- package/dist/_types/molecules/FloatingToolbar/FloatingToolbar.d.ts +101 -0
- package/dist/_types/molecules/Form/Form.d.ts +8 -0
- package/dist/_types/molecules/FormField/FormField.d.ts +5 -6
- package/dist/_types/molecules/Heatmap/Heatmap.d.ts +42 -5
- package/dist/_types/molecules/Heatmap/heatmapScale.d.ts +50 -0
- package/dist/_types/molecules/ImageCropDialog/ImageCropDialog.d.ts +18 -2
- package/dist/_types/molecules/InputField/InputField.d.ts +2 -1
- package/dist/_types/molecules/InputPhoneField/InputPhoneField.d.ts +2 -1
- package/dist/_types/molecules/LanguageSwitcher/LanguageSwitcher.d.ts +7 -3
- package/dist/_types/molecules/LoadingRegion/LoadingRegion.d.ts +12 -4
- package/dist/_types/molecules/Menu/Menu.d.ts +5 -0
- package/dist/_types/molecules/Modal/Modal.d.ts +23 -5
- package/dist/_types/molecules/MultiSelectField/MultiSelectField.d.ts +4 -1
- package/dist/_types/molecules/NotificationPanel/NotificationPanel.d.ts +6 -1
- package/dist/_types/molecules/NumberInputField/NumberInputField.d.ts +2 -1
- package/dist/_types/molecules/OrgSwitcher/OrgSwitcher.d.ts +8 -1
- package/dist/_types/molecules/OtpField/OtpField.d.ts +4 -1
- package/dist/_types/molecules/PageIntro/PageIntro.d.ts +1 -1
- package/dist/_types/molecules/Pagination/Pagination.d.ts +26 -5
- package/dist/_types/molecules/PasswordField/PasswordField.d.ts +13 -5
- package/dist/_types/molecules/PrevNextNav/PrevNextNav.d.ts +22 -4
- package/dist/_types/molecules/ProjectCard/ProjectCard.d.ts +8 -2
- package/dist/_types/molecules/RadioField/RadioField.d.ts +8 -0
- package/dist/_types/molecules/RecoveryCodes/RecoveryCodes.d.ts +1 -1
- package/dist/_types/molecules/RecurrenceField/RecurrenceField.d.ts +24 -1
- package/dist/_types/molecules/SelectField/SelectField.d.ts +2 -1
- package/dist/_types/molecules/Sheet/Sheet.d.ts +5 -0
- package/dist/_types/molecules/SidebarNav/SidebarNav.d.ts +18 -2
- package/dist/_types/molecules/SiteNav/SiteNav.d.ts +4 -1
- package/dist/_types/molecules/StatTile/StatTile.d.ts +15 -1
- package/dist/_types/molecules/Table/Table.d.ts +7 -2
- package/dist/_types/molecules/TableOfContents/TableOfContents.d.ts +3 -1
- package/dist/_types/molecules/TextareaField/TextareaField.d.ts +2 -1
- package/dist/_types/molecules/ThemeSwitcher/ThemeSwitcher.d.ts +38 -3
- package/dist/_types/molecules/TimeField/TimeField.d.ts +2 -1
- package/dist/_types/molecules/Timeline/Timeline.d.ts +6 -3
- package/dist/_types/molecules/Toast/Toaster.d.ts +8 -0
- package/dist/_types/molecules/UserMenu/UserMenu.d.ts +8 -1
- package/dist/_types/molecules/_shared/FieldShell.d.ts +130 -0
- package/dist/_types/molecules/_shared/calendarGrid.d.ts +15 -2
- package/dist/_types/molecules/_shared/dialogSurface.d.ts +6 -1
- package/dist/_types/molecules/_shared/dropdownItems.d.ts +0 -2
- package/dist/_types/molecules/_shared/requiredInput.d.ts +8 -0
- package/dist/_types/organisms/AnnotationThread/AnnotationThread.d.ts +3 -2
- package/dist/_types/organisms/DataTable/DataTable.d.ts +1 -1
- package/dist/_types/organisms/PlanningGrid/PlanningGrid.d.ts +12 -1
- package/dist/_types/organisms/Steps/Steps.d.ts +3 -3
- package/dist/_types/sections/AppHeader/AppHeader.d.ts +3 -1
- package/dist/_types/sections/AppShell/AppShell.d.ts +6 -1
- package/dist/_types/sections/Hero/Hero.d.ts +1 -1
- package/dist/_types/sections/LegalFooter/LegalFooter.d.ts +7 -1
- package/dist/_types/sections/Sidebar/Sidebar.d.ts +3 -1
- package/dist/_types/sections/SiteFooter/SiteFooter.d.ts +6 -2
- package/dist/_types/sections/SiteHeader/SiteHeader.d.ts +5 -5
- package/dist/_types/templates/ConnectorAuth/ConnectorAuthShell.d.ts +5 -2
- package/dist/_types/templates/ConnectorAuth/ConnectorConsentPage.d.ts +1 -1
- package/dist/_types/templates/ConnectorAuth/ConnectorExternalSignInPage.d.ts +1 -1
- package/dist/_types/templates/ConnectorAuth/ConnectorRejectionPage.d.ts +1 -1
- package/dist/_types/templates/ConnectorAuth/ConnectorSignInPage.d.ts +1 -1
- package/dist/_types/templates/ErrorPage/ErrorPage.d.ts +7 -1
- package/dist/_types/templates/NotFoundPage/NotFoundPage.d.ts +7 -1
- package/dist/_types/templates/PublicPageShell/PublicPageShell.d.ts +6 -0
- package/dist/accordion.css +1 -1
- package/dist/accordion.js +6 -5
- package/dist/alert.css +1 -1
- package/dist/alert.js +2 -94
- package/dist/annotation-thread.css +1 -1
- package/dist/annotation-thread.js +38 -31
- package/dist/app-header.css +1 -1
- package/dist/app-header.js +31 -33
- package/dist/app-launcher.css +1 -1
- package/dist/app-launcher.js +48 -33
- package/dist/app-root.js +9 -6
- package/dist/app-shell.js +52 -52
- package/dist/assistant-message.js +1 -1
- package/dist/async-multi-select-field.js +46 -51
- package/dist/async-multi-select.js +2 -197
- package/dist/async-select-field.js +45 -50
- package/dist/async-select.js +2 -173
- package/dist/asyncmultiselect.css +1 -0
- package/dist/asyncselect.css +1 -0
- package/dist/autocomplete-field.js +45 -50
- package/dist/autocomplete.css +1 -1
- package/dist/autocomplete.js +76 -115
- package/dist/avatar-upload.js +82 -69
- package/dist/banner.js +33 -30
- package/dist/brand.css +538 -1207
- package/dist/breadcrumb.css +1 -1
- package/dist/breadcrumb.js +26 -26
- package/dist/button.css +1 -1
- package/dist/button.js +44 -41
- package/dist/calendar-planner.css +1 -1
- package/dist/calendar-planner.js +130 -107
- package/dist/calendar-roster.css +1 -1
- package/dist/calendar-roster.js +90 -67
- package/dist/calendar.css +1 -1
- package/dist/calendar.js +66 -65
- package/dist/card.css +1 -1
- package/dist/card.js +76 -73
- package/dist/carousel.css +1 -1
- package/dist/carousel.js +66 -52
- package/dist/chart.css +1 -1
- package/dist/chart.js +213 -206
- package/dist/chat-shell.css +1 -1
- package/dist/chat-shell.js +53 -49
- package/dist/checkbox-field.js +40 -49
- package/dist/checkbox.css +1 -1
- package/dist/clock-widget.js +49 -33
- package/dist/close-button.js +2 -21
- package/dist/code-block.js +45 -39
- package/dist/collapsible.css +1 -1
- package/dist/color-picker-field.js +38 -39
- package/dist/colorpicker.css +1 -1
- package/dist/command-palette.css +1 -1
- package/dist/command-palette.js +39 -31
- package/dist/confirm-dialog.js +29 -22
- package/dist/connector-auth-shell.js +1 -1
- package/dist/connector-consent-page.js +56 -49
- package/dist/connector-external-sign-in-page.js +40 -32
- package/dist/connector-rejection-page.js +28 -24
- package/dist/connector-request-summary.js +2 -37
- package/dist/connector-sign-in-page.js +44 -36
- package/dist/consent.css +1 -1
- package/dist/consent.js +55 -44
- package/dist/container.css +1 -1
- package/dist/context-menu.js +4 -3
- package/dist/conversation-list.css +1 -1
- package/dist/conversation-list.js +42 -33
- package/dist/conversation-thread.css +1 -1
- package/dist/conversation-thread.js +24 -20
- package/dist/copy-button.js +35 -33
- package/dist/copyable-value.js +40 -40
- package/dist/data-table.js +82 -1627
- package/dist/date-picker-field.js +32 -37
- package/dist/date-time-field.js +78 -79
- package/dist/datepicker.css +1 -1
- package/dist/description-list.js +5 -5
- package/dist/docs-search.css +1 -1
- package/dist/docs-search.js +46 -39
- package/dist/dots-button.js +2 -29
- package/dist/dropdown-field.css +1 -1
- package/dist/dropdown-field.js +52 -51
- package/dist/email.js +10 -7
- package/dist/embed-frame.css +1 -1
- package/dist/embed-frame.js +5 -4
- package/dist/error-page.js +4 -4
- package/dist/fieldset.css +1 -1
- package/dist/fieldset.js +6 -6
- package/dist/figure.js +1 -0
- package/dist/file-upload-field.js +31 -36
- package/dist/file-upload.js +2 -225
- package/dist/fileupload.css +1 -0
- package/dist/filter-bar.css +1 -1
- package/dist/filter-bar.js +22 -17
- package/dist/floating-dock.css +1 -1
- package/dist/floating-dock.js +35 -29
- package/dist/floating-toolbar.css +1 -0
- package/dist/floating-toolbar.js +71 -0
- package/dist/form-field.js +55 -53
- package/dist/form.js +56 -52
- package/dist/heatmap.css +1 -1
- package/dist/heatmap.js +96 -36
- package/dist/hero.js +1 -1
- package/dist/highlight.js +1 -1
- package/dist/imagecropdialog.css +1 -1
- package/dist/input-field.js +2 -100
- package/dist/input-phone-field.js +43 -48
- package/dist/input-phone.js +2 -89
- package/dist/input.css +1 -1
- package/dist/input.js +14 -13
- package/dist/inputphone.css +1 -0
- package/dist/label.css +1 -1
- package/dist/language-switcher.css +1 -1
- package/dist/language-switcher.js +41 -45
- package/dist/legal-footer.js +2 -44
- package/dist/link.css +1 -1
- package/dist/list.js +8 -8
- package/dist/loading-region.css +1 -1
- package/dist/loading-region.js +37 -36
- package/dist/loading-state.css +1 -1
- package/dist/loading-state.js +29 -28
- package/dist/logo.css +1 -1
- package/dist/menu-button.js +2 -28
- package/dist/menu.css +1 -1
- package/dist/menu.js +4 -3
- package/dist/message-bubble.css +1 -1
- package/dist/message-composer.css +1 -1
- package/dist/message-composer.js +32 -29
- package/dist/messages.js +10 -7
- package/dist/modal.css +1 -1
- package/dist/modal.js +2 -61
- package/dist/multi-select-field.js +43 -47
- package/dist/multi-select.js +2 -192
- package/dist/multiselect.css +1 -0
- package/dist/not-found-page.js +9 -6
- package/dist/notification-button.js +2 -32
- package/dist/notification-list.js +33 -31
- package/dist/notification-panel.css +1 -1
- package/dist/notification-panel.js +79 -83
- package/dist/notificationbutton.css +1 -0
- package/dist/number-badge.css +1 -1
- package/dist/number-badge.js +15 -11
- package/dist/number-input-field.js +44 -48
- package/dist/number-input.js +2 -99
- package/dist/numberinput.css +1 -0
- package/dist/onboarding-shell.css +1 -1
- package/dist/onboarding-shell.js +37 -34
- package/dist/org-chart.css +1 -1
- package/dist/org-chart.js +46 -35
- package/dist/org-switcher.css +1 -1
- package/dist/org-switcher.js +28 -23
- package/dist/otp-field.js +44 -47
- package/dist/otp-input.js +2 -115
- package/dist/otpinput.css +1 -0
- package/dist/page-intro.js +1 -1
- package/dist/pagination.css +1 -1
- package/dist/pagination.js +2 -179
- package/dist/paragraph.css +1 -1
- package/dist/paragraph.js +16 -10
- package/dist/password-field.css +1 -1
- package/dist/password-field.js +57 -57
- package/dist/planning-grid.css +1 -1
- package/dist/planning-grid.js +89 -75
- package/dist/popover.css +1 -1
- package/dist/popover.js +9 -15
- package/dist/prev-next-nav.js +2 -83
- package/dist/prevnextnav.css +1 -0
- package/dist/project-card.css +1 -1
- package/dist/project-card.js +41 -32
- package/dist/public-page-shell.js +2 -38
- package/dist/radio-field.js +29 -39
- package/dist/radio.css +1 -1
- package/dist/recurrence-field.css +1 -1
- package/dist/recurrence-field.js +129 -93
- package/dist/search-form.js +2 -61
- package/dist/searchform.css +1 -0
- package/dist/select-field.js +49 -54
- package/dist/select.css +1 -1
- package/dist/select.js +2 -158
- package/dist/sheet.css +1 -1
- package/dist/sheet.js +2 -54
- package/dist/sidebar-nav.css +1 -1
- package/dist/sidebar-nav.js +83 -71
- package/dist/sidebar.css +1 -1
- package/dist/sidebar.js +68 -57
- package/dist/site-footer.js +29 -29
- package/dist/site-header.css +1 -1
- package/dist/site-header.js +44 -46
- package/dist/site-nav.css +1 -1
- package/dist/site-nav.js +25 -31
- package/dist/site-search.css +1 -1
- package/dist/site-search.js +88 -74
- package/dist/site-shell.js +17 -16
- package/dist/skeleton.js +8 -6
- package/dist/skip-link.css +1 -1
- package/dist/slider.css +1 -1
- package/dist/slider.js +2 -34
- package/dist/sortable.js +20 -19
- package/dist/sparkline.js +37 -35
- package/dist/spinner.js +21 -16
- package/dist/star-rating.js +2 -2
- package/dist/stat-tile.js +39 -37
- package/dist/step-marker.css +1 -1
- package/dist/step-marker.js +19 -16
- package/dist/stepper.css +1 -1
- package/dist/stepper.js +25 -16
- package/dist/switcher-field.js +39 -55
- package/dist/switcher.css +1 -1
- package/dist/table-of-contents.css +1 -1
- package/dist/table-of-contents.js +33 -28
- package/dist/table.css +1 -1
- package/dist/table.js +2 -121
- package/dist/tabs.css +1 -1
- package/dist/tag.css +1 -1
- package/dist/tag.js +16 -10
- package/dist/text.css +1 -1
- package/dist/textarea-field.js +41 -45
- package/dist/textarea.css +1 -1
- package/dist/theme-switcher.css +1 -1
- package/dist/theme-switcher.js +64 -57
- package/dist/time-field.js +42 -47
- package/dist/time-select.js +2 -84
- package/dist/timeline.js +14 -11
- package/dist/toaster.css +1 -1
- package/dist/toaster.js +32 -29
- package/dist/toggle.css +1 -1
- package/dist/toggle.js +33 -13
- package/dist/tokens.css +450 -1179
- package/dist/tooltip.css +1 -1
- package/dist/tooltip.js +48 -41
- package/dist/tree-view.css +1 -1
- package/dist/tree-view.js +60 -60
- package/dist/typing-indicator.js +2 -29
- package/dist/typingindicator.css +1 -0
- package/dist/uptime-bars.js +36 -33
- package/dist/user-menu.css +1 -1
- package/dist/user-menu.js +55 -59
- package/dist/visuallyhidden.css +1 -1
- package/package.json +27 -15
- package/src/tokens/colors.ts +6 -6
- package/src/tokens/components/accordion.css +1 -1
- package/src/tokens/components/app-header.css +2 -2
- package/src/tokens/components/async-multi-select.css +4 -0
- package/src/tokens/components/async-select.css +3 -0
- package/src/tokens/components/autocomplete.css +1 -0
- package/src/tokens/components/breadcrumb.css +2 -4
- package/src/tokens/components/button.css +9 -25
- package/src/tokens/components/card.css +3 -3
- package/src/tokens/components/checkbox.css +5 -5
- package/src/tokens/components/collapsible.css +1 -0
- package/src/tokens/components/control.css +0 -4
- package/src/tokens/components/embed-frame.css +8 -0
- package/src/tokens/components/file-upload.css +5 -9
- package/src/tokens/components/floating-dock.css +2 -2
- package/src/tokens/components/floating-panel.css +2 -2
- package/src/tokens/components/input.css +2 -2
- package/src/tokens/components/kbd.css +1 -1
- package/src/tokens/components/label.css +2 -0
- package/src/tokens/components/link.css +20 -6
- package/src/tokens/components/logo.css +1 -1
- package/src/tokens/components/message-bubble.css +2 -2
- package/src/tokens/components/multi-select.css +2 -2
- package/src/tokens/components/number-badge.css +3 -3
- package/src/tokens/components/otp-input.css +1 -1
- package/src/tokens/components/radio.css +2 -0
- package/src/tokens/components/select.css +2 -2
- package/src/tokens/components/sidebar.css +2 -2
- package/src/tokens/components/site-header.css +5 -6
- package/src/tokens/components/slider.css +1 -1
- package/src/tokens/components/spinner.css +3 -3
- package/src/tokens/components/step.css +4 -4
- package/src/tokens/components/switcher.css +3 -3
- package/src/tokens/components/tabs.css +5 -4
- package/src/tokens/components/tag.css +4 -4
- package/src/tokens/components/text-inline.css +3 -1
- package/src/tokens/components/text.css +2 -2
- package/src/tokens/components/textarea.css +2 -2
- package/src/tokens/components/tooltip.css +2 -2
- package/src/tokens/components/typing-indicator.css +1 -1
- package/src/tokens/deprecated-aliases.css +74 -0
- package/src/tokens/global/colors.css +2 -2
- package/src/tokens/global/shadow.css +4 -4
- package/src/tokens/index.css +11 -7
- package/src/tokens/molecules/alert.css +1 -0
- package/src/tokens/molecules/annotation-thread.css +0 -2
- package/src/tokens/molecules/app-launcher.css +1 -1
- package/src/tokens/molecules/async-multi-select-field.css +0 -6
- package/src/tokens/molecules/async-select-field.css +0 -6
- package/src/tokens/molecules/autocomplete-field.css +0 -5
- package/src/tokens/molecules/avatar-upload.css +0 -6
- package/src/tokens/molecules/calendar-planner.css +2 -1
- package/src/tokens/molecules/calendar-roster.css +14 -9
- package/src/tokens/molecules/calendar.css +5 -4
- package/src/tokens/molecules/carousel.css +3 -3
- package/src/tokens/molecules/chart.css +3 -6
- package/src/tokens/molecules/chat-shell.css +2 -2
- package/src/tokens/molecules/checkbox-field.css +0 -6
- package/src/tokens/molecules/color-picker.css +2 -2
- package/src/tokens/molecules/command-palette.css +1 -0
- package/src/tokens/molecules/consent.css +4 -3
- package/src/tokens/molecules/conversation-list.css +1 -0
- package/src/tokens/molecules/conversation-thread.css +10 -0
- package/src/tokens/molecules/date-picker-field.css +0 -6
- package/src/tokens/molecules/date-picker.css +1 -1
- package/src/tokens/molecules/date-time-field.css +0 -6
- package/src/tokens/molecules/docs-search.css +1 -1
- package/src/tokens/molecules/dropdown-field.css +2 -7
- package/src/tokens/molecules/file-upload-field.css +0 -6
- package/src/tokens/molecules/filter-bar.css +1 -1
- package/src/tokens/molecules/floating-toolbar.css +18 -0
- package/src/tokens/molecules/floating-toolbar.ts +4 -0
- package/src/tokens/molecules/heatmap.css +33 -6
- package/src/tokens/molecules/input-field.css +0 -1
- package/src/tokens/molecules/input-phone-field.css +0 -6
- package/src/tokens/molecules/loading-state.css +2 -2
- package/src/tokens/molecules/menu.css +2 -1
- package/src/tokens/molecules/message-composer.css +1 -1
- package/src/tokens/molecules/modal.css +5 -4
- package/src/tokens/molecules/multi-select-field.css +0 -6
- package/src/tokens/molecules/notification-panel.css +2 -2
- package/src/tokens/molecules/number-input-field.css +0 -6
- package/src/tokens/molecules/org-chart.css +4 -4
- package/src/tokens/molecules/otp-field.css +0 -6
- package/src/tokens/molecules/pagination.css +1 -0
- package/src/tokens/molecules/password-field.css +2 -2
- package/src/tokens/molecules/planning-grid.css +7 -7
- package/src/tokens/molecules/radio-field.css +0 -6
- package/src/tokens/molecules/recurrence-field.css +6 -0
- package/src/tokens/molecules/search-form.css +1 -1
- package/src/tokens/molecules/select-field.css +0 -6
- package/src/tokens/molecules/sheet.css +2 -2
- package/src/tokens/molecules/sidebar-nav.css +0 -6
- package/src/tokens/molecules/site-nav.css +3 -1
- package/src/tokens/molecules/site-search.css +4 -6
- package/src/tokens/molecules/switcher-field.css +0 -1
- package/src/tokens/molecules/table-of-contents.css +1 -1
- package/src/tokens/molecules/table.css +3 -2
- package/src/tokens/molecules/textarea-field.css +0 -6
- package/src/tokens/molecules/time-field.css +0 -6
- package/src/tokens/molecules/toast.css +1 -0
- package/src/tokens/scss/_index.legacy.scss +2 -0
- package/src/tokens/scss/_index.scss +2 -0
- package/src/tokens/scss/components/_accordion.scss +4 -1
- package/src/tokens/scss/components/_async-multi-select.scss +7 -0
- package/src/tokens/scss/components/_async-select.scss +3 -0
- package/src/tokens/scss/components/_autocomplete.scss +1 -0
- package/src/tokens/scss/components/_breadcrumb.scss +4 -3
- package/src/tokens/scss/components/_button.scss +7 -25
- package/src/tokens/scss/components/_card.scss +1 -1
- package/src/tokens/scss/components/_checkbox.scss +6 -2
- package/src/tokens/scss/components/_collapsible.scss +1 -0
- package/src/tokens/scss/components/_control.scss +0 -4
- package/src/tokens/scss/components/_embed-frame.scss +9 -0
- package/src/tokens/scss/components/_file-upload.scss +4 -5
- package/src/tokens/scss/components/_floating-dock.scss +6 -2
- package/src/tokens/scss/components/_label.scss +1 -0
- package/src/tokens/scss/components/_link.scss +16 -6
- package/src/tokens/scss/components/_logo.scss +4 -1
- package/src/tokens/scss/components/_number-badge.scss +6 -2
- package/src/tokens/scss/components/_otp-input.scss +4 -1
- package/src/tokens/scss/components/_site-header.scss +1 -2
- package/src/tokens/scss/components/_slider.scss +4 -1
- package/src/tokens/scss/components/_spinner.scss +3 -3
- package/src/tokens/scss/components/_step.scss +6 -2
- package/src/tokens/scss/components/_switcher.scss +5 -2
- package/src/tokens/scss/components/_tabs.scss +7 -2
- package/src/tokens/scss/components/_tag.scss +6 -2
- package/src/tokens/scss/components/_text-inline.scss +2 -1
- package/src/tokens/scss/components/_text.scss +4 -1
- package/src/tokens/scss/components/_typing-indicator.scss +4 -1
- package/src/tokens/scss/global/_colors.scss +6 -2
- package/src/tokens/scss/global/_shadow.scss +4 -4
- package/src/tokens/scss/molecules/_alert.scss +1 -0
- package/src/tokens/scss/molecules/_annotation-thread.scss +0 -2
- package/src/tokens/scss/molecules/_app-launcher.scss +4 -1
- package/src/tokens/scss/molecules/_async-multi-select-field.scss +0 -5
- package/src/tokens/scss/molecules/_async-select-field.scss +0 -5
- package/src/tokens/scss/molecules/_autocomplete-field.scss +0 -5
- package/src/tokens/scss/molecules/_avatar-upload.scss +0 -5
- package/src/tokens/scss/molecules/_calendar-planner.scss +1 -0
- package/src/tokens/scss/molecules/_calendar-roster.scss +4 -0
- package/src/tokens/scss/molecules/_calendar.scss +9 -3
- package/src/tokens/scss/molecules/_carousel.scss +8 -3
- package/src/tokens/scss/molecules/_chart.scss +1 -3
- package/src/tokens/scss/molecules/_checkbox-field.scss +0 -5
- package/src/tokens/scss/molecules/_color-picker.scss +6 -2
- package/src/tokens/scss/molecules/_command-palette.scss +1 -0
- package/src/tokens/scss/molecules/_consent.scss +5 -1
- package/src/tokens/scss/molecules/_conversation-list.scss +1 -0
- package/src/tokens/scss/molecules/_conversation-thread.scss +3 -0
- package/src/tokens/scss/molecules/_date-picker-field.scss +0 -5
- package/src/tokens/scss/molecules/_date-picker.scss +4 -1
- package/src/tokens/scss/molecules/_date-time-field.scss +0 -5
- package/src/tokens/scss/molecules/_docs-search.scss +4 -1
- package/src/tokens/scss/molecules/_dropdown-field.scss +1 -5
- package/src/tokens/scss/molecules/_file-upload-field.scss +0 -5
- package/src/tokens/scss/molecules/_filter-bar.scss +4 -1
- package/src/tokens/scss/molecules/_floating-toolbar.scss +15 -0
- package/src/tokens/scss/molecules/_heatmap.scss +15 -2
- package/src/tokens/scss/molecules/_input-field.scss +0 -1
- package/src/tokens/scss/molecules/_input-phone-field.scss +0 -5
- package/src/tokens/scss/molecules/_loading-state.scss +6 -2
- package/src/tokens/scss/molecules/_menu.scss +2 -1
- package/src/tokens/scss/molecules/_modal.scss +7 -2
- package/src/tokens/scss/molecules/_multi-select-field.scss +0 -5
- package/src/tokens/scss/molecules/_notification-panel.scss +6 -2
- package/src/tokens/scss/molecules/_number-input-field.scss +0 -5
- package/src/tokens/scss/molecules/_org-chart.scss +6 -2
- package/src/tokens/scss/molecules/_otp-field.scss +0 -5
- package/src/tokens/scss/molecules/_pagination.scss +1 -0
- package/src/tokens/scss/molecules/_password-field.scss +4 -1
- package/src/tokens/scss/molecules/_planning-grid.scss +3 -2
- package/src/tokens/scss/molecules/_radio-field.scss +0 -5
- package/src/tokens/scss/molecules/_recurrence-field.scss +6 -0
- package/src/tokens/scss/molecules/_search-form.scss +4 -1
- package/src/tokens/scss/molecules/_select-field.scss +0 -5
- package/src/tokens/scss/molecules/_sheet.scss +6 -2
- package/src/tokens/scss/molecules/_sidebar-nav.scss +0 -4
- package/src/tokens/scss/molecules/_site-nav.scss +2 -1
- package/src/tokens/scss/molecules/_site-search.scss +10 -6
- package/src/tokens/scss/molecules/_switcher-field.scss +0 -1
- package/src/tokens/scss/molecules/_table-of-contents.scss +4 -1
- package/src/tokens/scss/molecules/_table.scss +4 -0
- package/src/tokens/scss/molecules/_textarea-field.scss +0 -5
- package/src/tokens/scss/molecules/_time-field.scss +0 -5
- package/src/tokens/scss/molecules/_toast.scss +1 -0
- package/src/tokens/surface-dark-derived.css +3 -1
- package/src/tokens/surface-invert.css +72 -55
- package/src/tokens/surface-public.css +4 -21
- package/src/tokens/tokens.json +147 -140
- package/CHANGELOG.md +0 -8154
- package/dist/_types/data/home.d.ts +0 -83
- package/dist/_types/pages/Auth/AuthPage.d.ts +0 -24
- package/dist/_types/pages/Onboarding/OnboardingPage.d.ts +0 -37
- package/dist/_types/pages/Status/StatusPage.d.ts +0 -37
- package/dist/_types/pages/Status/_datos.d.ts +0 -47
- package/dist/async-multi-select.css +0 -1
- package/dist/async-select.css +0 -1
- package/dist/file-upload.css +0 -1
- package/dist/input-phone.css +0 -1
- package/dist/multi-select.css +0 -1
- package/dist/notification-button.css +0 -1
- package/dist/number-input.css +0 -1
- package/dist/otp-input.css +0 -1
- package/dist/prev-next-nav.css +0 -1
- package/dist/search-form.css +0 -1
- package/dist/typing-indicator.css +0 -1
- package/src/tokens/surface-light.css +0 -782
- package/src/tokens/utils.test.ts +0 -86
- /package/dist/{close-button.css → closebutton.css} +0 -0
- /package/dist/{connector-request-summary.css → connectorrequestsummary.css} +0 -0
- /package/dist/{dots-button.css → dotsbutton.css} +0 -0
- /package/dist/{input-field.css → inputfield.css} +0 -0
- /package/dist/{legal-footer.css → legalfooter.css} +0 -0
- /package/dist/{menu-button.css → menubutton.css} +0 -0
- /package/dist/{public-page-shell.css → publicpageshell.css} +0 -0
- /package/dist/{time-select.css → timeselect.css} +0 -0
package/dist/heatmap.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import './heatmap.css';
|
|
3
|
-
import {
|
|
3
|
+
import { r as e } from "./_shared/brandmessagescontext.js";
|
|
4
4
|
import { VisuallyHidden as t } from "./visually-hidden.js";
|
|
5
5
|
import { forwardRef as n, useMemo as r } from "react";
|
|
6
6
|
import { jsx as i, jsxs as a } from "react/jsx-runtime";
|
|
@@ -15,28 +15,72 @@ function s(e, t) {
|
|
|
15
15
|
let n = Math.max(2, Math.min(6, Math.round(t)));
|
|
16
16
|
return Math.round((Math.max(1, Math.min(n, Math.round(e))) - 1) * 5 / (n - 1)) + 1;
|
|
17
17
|
}
|
|
18
|
+
function c(e, t) {
|
|
19
|
+
if (e == null || !Number.isFinite(e)) return null;
|
|
20
|
+
let n = e - t.midpoint;
|
|
21
|
+
if (n === 0) return "neutral";
|
|
22
|
+
let r = t.radius > 0 ? Math.min(1, Math.abs(n) / t.radius) : 1, i = Math.min(3, Math.floor(r * 3.5 + .5));
|
|
23
|
+
return i === 0 ? "neutral" : `${n < 0 == ((t.direction ?? "warm-below") === "warm-below") ? "warm" : "cool"}-${i}`;
|
|
24
|
+
}
|
|
25
|
+
function l(e = "warm-below") {
|
|
26
|
+
let t = e === "warm-below" ? "warm" : "cool", n = e === "warm-below" ? "cool" : "warm";
|
|
27
|
+
return [
|
|
28
|
+
`${t}-3`,
|
|
29
|
+
`${t}-2`,
|
|
30
|
+
`${t}-1`,
|
|
31
|
+
"neutral",
|
|
32
|
+
`${n}-1`,
|
|
33
|
+
`${n}-2`,
|
|
34
|
+
`${n}-3`
|
|
35
|
+
];
|
|
36
|
+
}
|
|
37
|
+
function u(e, t, n, r) {
|
|
38
|
+
let i = [n, r].filter((e) => e !== void 0 && Number.isFinite(e));
|
|
39
|
+
return (i.length > 0 ? i : t.filter((e) => e !== null && Number.isFinite(e))).reduce((t, n) => Math.max(t, Math.abs(n - e)), 0);
|
|
40
|
+
}
|
|
18
41
|
//#endregion
|
|
19
|
-
//#region src/stories/
|
|
20
|
-
var
|
|
21
|
-
|
|
42
|
+
//#region src/stories/messages/es/heatmap.ts
|
|
43
|
+
var d = {
|
|
44
|
+
label: "Matriz",
|
|
45
|
+
empty: "sin dato",
|
|
46
|
+
scale: "Escala de color",
|
|
47
|
+
midpoint: (e) => `Centro: ${e}`
|
|
48
|
+
}, f = (e, t) => `${e}\u0000${t}`, p = n(function({ rows: n, columns: p, cells: m, scale: h = "sequential", min: g, max: _, steps: v = 5, midpoint: y = 0, divergingDirection: b = "warm-below", rowHeader: x, showValues: S = !0, formatValue: C, locale: w = "es-ES", showLegend: T = !0, minLabel: E, maxLabel: D, midpointLabel: O, label: k, emptyLabel: A, scaleLabel: j, className: M, ...N }, P) {
|
|
49
|
+
let F = e("heatmap", d), I = h === "diverging", L = g ?? 0, R = r(() => {
|
|
22
50
|
let e = /* @__PURE__ */ new Map();
|
|
23
|
-
for (let t of
|
|
51
|
+
for (let t of m) e.set(f(t.rowId, t.columnKey), t.value);
|
|
24
52
|
return e;
|
|
25
|
-
}, [
|
|
26
|
-
if (
|
|
27
|
-
let e =
|
|
28
|
-
return e.length > 0 ? Math.max(...e) :
|
|
53
|
+
}, [m]), z = r(() => {
|
|
54
|
+
if (_ !== void 0) return _;
|
|
55
|
+
let e = m.map((e) => e.value).filter((e) => e !== null && Number.isFinite(e));
|
|
56
|
+
return e.length > 0 ? Math.max(...e) : L + 1;
|
|
29
57
|
}, [
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
]),
|
|
34
|
-
min:
|
|
35
|
-
max:
|
|
36
|
-
steps:
|
|
37
|
-
},
|
|
58
|
+
m,
|
|
59
|
+
_,
|
|
60
|
+
L
|
|
61
|
+
]), B = Math.max(2, Math.min(6, Math.round(v))), V = {
|
|
62
|
+
min: L,
|
|
63
|
+
max: z,
|
|
64
|
+
steps: B
|
|
65
|
+
}, H = r(() => u(y, m.map((e) => e.value), g, _), [
|
|
66
|
+
m,
|
|
67
|
+
y,
|
|
68
|
+
g,
|
|
69
|
+
_
|
|
70
|
+
]), U = {
|
|
71
|
+
midpoint: y,
|
|
72
|
+
radius: H,
|
|
73
|
+
direction: b
|
|
74
|
+
}, W = (e) => {
|
|
75
|
+
if (I) {
|
|
76
|
+
let t = c(e, U);
|
|
77
|
+
return t === null ? "heatmap__cell--empty" : `heatmap__cell--diverging-${t}`;
|
|
78
|
+
}
|
|
79
|
+
let t = o(e, V);
|
|
80
|
+
return t === null ? "heatmap__cell--empty" : `heatmap__cell--step-${s(t, B)}`;
|
|
81
|
+
}, G = r(() => new Intl.NumberFormat(w, { maximumFractionDigits: 1 }), [w]), K = C ?? ((e) => G.format(e)), q = r(() => {
|
|
38
82
|
let e = [];
|
|
39
|
-
for (let t of
|
|
83
|
+
for (let t of p) {
|
|
40
84
|
let n = e[e.length - 1];
|
|
41
85
|
n && n.group === t.group ? n.span += 1 : e.push({
|
|
42
86
|
group: t.group,
|
|
@@ -44,11 +88,11 @@ var c = (e, t) => `${e}\u0000${t}`, l = n(function({ rows: n, columns: l, cells:
|
|
|
44
88
|
});
|
|
45
89
|
}
|
|
46
90
|
return e;
|
|
47
|
-
}, [
|
|
91
|
+
}, [p]), J = p.some((e) => e.group !== void 0);
|
|
48
92
|
return /* @__PURE__ */ a("div", {
|
|
49
|
-
ref:
|
|
50
|
-
className: ["heatmap",
|
|
51
|
-
...
|
|
93
|
+
ref: P,
|
|
94
|
+
className: ["heatmap", M].filter(Boolean).join(" "),
|
|
95
|
+
...N,
|
|
52
96
|
children: [/* @__PURE__ */ i("div", {
|
|
53
97
|
className: "heatmap__wrap",
|
|
54
98
|
children: /* @__PURE__ */ a("table", {
|
|
@@ -56,9 +100,9 @@ var c = (e, t) => `${e}\u0000${t}`, l = n(function({ rows: n, columns: l, cells:
|
|
|
56
100
|
children: [
|
|
57
101
|
/* @__PURE__ */ i("caption", {
|
|
58
102
|
className: "visually-hidden",
|
|
59
|
-
children:
|
|
103
|
+
children: F("label", k)
|
|
60
104
|
}),
|
|
61
|
-
/* @__PURE__ */ a("thead", { children: [
|
|
105
|
+
/* @__PURE__ */ a("thead", { children: [J ? /* @__PURE__ */ a("tr", { children: [/* @__PURE__ */ i("td", { className: "heatmap__corner" }), q.map((e, t) => /* @__PURE__ */ i("th", {
|
|
62
106
|
className: "heatmap__group",
|
|
63
107
|
scope: "colgroup",
|
|
64
108
|
colSpan: e.span,
|
|
@@ -66,8 +110,8 @@ var c = (e, t) => `${e}\u0000${t}`, l = n(function({ rows: n, columns: l, cells:
|
|
|
66
110
|
}, `${e.group ?? ""}-${t}`))] }) : null, /* @__PURE__ */ a("tr", { children: [/* @__PURE__ */ i("th", {
|
|
67
111
|
className: "heatmap__corner",
|
|
68
112
|
scope: "col",
|
|
69
|
-
children:
|
|
70
|
-
}),
|
|
113
|
+
children: x
|
|
114
|
+
}), p.map((e) => /* @__PURE__ */ i("th", {
|
|
71
115
|
className: "heatmap__column-header",
|
|
72
116
|
scope: "col",
|
|
73
117
|
children: e.label
|
|
@@ -76,29 +120,45 @@ var c = (e, t) => `${e}\u0000${t}`, l = n(function({ rows: n, columns: l, cells:
|
|
|
76
120
|
className: "heatmap__row-header",
|
|
77
121
|
scope: "row",
|
|
78
122
|
children: e.label
|
|
79
|
-
}),
|
|
80
|
-
let r =
|
|
123
|
+
}), p.map((n) => {
|
|
124
|
+
let r = R.get(f(e.id, n.key)) ?? null, a = `heatmap__cell ${W(r)}`, o = r === null ? F("empty", A) : K(r);
|
|
81
125
|
return /* @__PURE__ */ i("td", {
|
|
82
|
-
className:
|
|
83
|
-
children:
|
|
126
|
+
className: a,
|
|
127
|
+
children: S && r !== null ? o : /* @__PURE__ */ i(t, { children: o })
|
|
84
128
|
}, n.key);
|
|
85
129
|
})] }, e.id)) })
|
|
86
130
|
]
|
|
87
131
|
})
|
|
88
|
-
}),
|
|
132
|
+
}), T && I ? /* @__PURE__ */ a("p", {
|
|
133
|
+
className: "heatmap__legend",
|
|
134
|
+
children: [
|
|
135
|
+
/* @__PURE__ */ i("span", { children: E ?? K(y - H) }),
|
|
136
|
+
/* @__PURE__ */ i("span", {
|
|
137
|
+
className: "heatmap__ramp",
|
|
138
|
+
role: "img",
|
|
139
|
+
"aria-label": F("scale", j),
|
|
140
|
+
children: l(b).map((e) => /* @__PURE__ */ i("span", { className: `heatmap__swatch heatmap__swatch--diverging-${e}` }, e))
|
|
141
|
+
}),
|
|
142
|
+
/* @__PURE__ */ i("span", { children: D ?? K(y + H) }),
|
|
143
|
+
/* @__PURE__ */ i("span", {
|
|
144
|
+
className: "heatmap__midpoint",
|
|
145
|
+
children: O ?? F("midpoint")(K(y))
|
|
146
|
+
})
|
|
147
|
+
]
|
|
148
|
+
}) : T ? /* @__PURE__ */ a("p", {
|
|
89
149
|
className: "heatmap__legend",
|
|
90
150
|
children: [
|
|
91
|
-
/* @__PURE__ */ i("span", { children:
|
|
151
|
+
/* @__PURE__ */ i("span", { children: E ?? K(L) }),
|
|
92
152
|
/* @__PURE__ */ i("span", {
|
|
93
153
|
className: "heatmap__ramp",
|
|
94
154
|
role: "img",
|
|
95
|
-
"aria-label":
|
|
96
|
-
children: Array.from({ length:
|
|
155
|
+
"aria-label": F("scale", j),
|
|
156
|
+
children: Array.from({ length: B }, (e, t) => /* @__PURE__ */ i("span", { className: `heatmap__swatch heatmap__swatch--step-${s(t + 1, B)}` }, t))
|
|
97
157
|
}),
|
|
98
|
-
/* @__PURE__ */ i("span", { children:
|
|
158
|
+
/* @__PURE__ */ i("span", { children: D ?? K(z) })
|
|
99
159
|
]
|
|
100
160
|
}) : null]
|
|
101
161
|
});
|
|
102
162
|
});
|
|
103
163
|
//#endregion
|
|
104
|
-
export {
|
|
164
|
+
export { p as Heatmap };
|
package/dist/hero.js
CHANGED
package/dist/highlight.js
CHANGED
package/dist/imagecropdialog.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
@keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}:root{--rc-drag-handle-size:12px;--rc-drag-handle-mobile-size:24px;--rc-drag-handle-bg-colour:#0003;--rc-drag-bar-size:6px;--rc-border-color:#ffffffb3;--rc-focus-color:#08f}.ReactCrop{cursor:crosshair;max-width:100%;display:inline-block;position:relative}.ReactCrop *,.ReactCrop :before,.ReactCrop :after{box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{max-height:inherit;overflow:hidden}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{max-width:100%;max-height:inherit;display:block}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>video,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection{touch-action:none}.ReactCrop__crop-mask{pointer-events:none;width:calc(100% + .5px);height:calc(100% + .5px);position:absolute;inset:0}.ReactCrop__crop-selection{cursor:move;position:absolute;top:0;left:0;transform:translate(0)}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%}.ReactCrop--circular-crop .ReactCrop__crop-selection:after{pointer-events:none;content:"";border:1px solid var(--rc-border-color);opacity:.3;position:absolute;inset:-1px}.ReactCrop--no-animate .ReactCrop__crop-selection{outline:1px dashed #fff}.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection){color:#fff;background-image:linear-gradient(90deg,#fff 50%,#444 50%),linear-gradient(90deg,#fff 50%,#444 50%),linear-gradient(#fff 50%,#444 50%),linear-gradient(#fff 50%,#444 50%);background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;background-size:10px 1px,10px 1px,1px 10px,1px 10px;animation:1s linear infinite marching-ants}.ReactCrop__crop-selection:focus{outline:2px solid var(--rc-focus-color);outline-offset:-1px}.ReactCrop--invisible-crop .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{content:"";background-color:#fff6;display:block;position:absolute}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt:before{left:33.3333%}.ReactCrop__rule-of-thirds-vt:after{left:66.6667%}.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz:before{top:33.3333%}.ReactCrop__rule-of-thirds-hz:after{top:66.6667%}.ReactCrop__drag-handle{width:var(--rc-drag-handle-size);height:var(--rc-drag-handle-size);background-color:var(--rc-drag-handle-bg-colour);border:1px solid var(--rc-border-color);position:absolute}.ReactCrop__drag-handle:focus{background:var(--rc-focus-color)}.ReactCrop .ord-nw{cursor:nw-resize;top:0;left:0;transform:translate(-50%,-50%)}.ReactCrop .ord-n{cursor:n-resize;top:0;left:50%;transform:translate(-50%,-50%)}.ReactCrop .ord-ne{cursor:ne-resize;top:0;right:0;transform:translate(50%,-50%)}.ReactCrop .ord-e{cursor:e-resize;top:50%;right:0;transform:translate(50%,-50%)}.ReactCrop .ord-se{cursor:se-resize;bottom:0;right:0;transform:translate(50%,50%)}.ReactCrop .ord-s{cursor:s-resize;bottom:0;left:50%;transform:translate(-50%,50%)}.ReactCrop .ord-sw{cursor:sw-resize;bottom:0;left:0;transform:translate(-50%,50%)}.ReactCrop .ord-w{cursor:w-resize;top:50%;left:0;transform:translate(-50%,-50%)}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{width:100%;height:var(--rc-drag-bar-size);top:0;left:0;transform:translateY(-50%)}.ReactCrop__drag-bar.ord-e{width:var(--rc-drag-bar-size);height:100%;top:0;right:0;transform:translate(50%)}.ReactCrop__drag-bar.ord-s{width:100%;height:var(--rc-drag-bar-size);bottom:0;left:0;transform:translateY(50%)}.ReactCrop__drag-bar.ord-w{width:var(--rc-drag-bar-size);height:100%;top:0;left:0;transform:translate(-50%)}.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle,.ReactCrop--fixed-aspect .ReactCrop__drag-bar,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w{display:none}@media (pointer:coarse){.ReactCrop .ord-n,.ReactCrop .ord-e,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:var(--rc-drag-handle-mobile-size);height:var(--rc-drag-handle-mobile-size)}}.image-crop-dialog{gap:var(--image-crop-dialog-gap);flex-direction:column;display:flex}.image-crop-dialog__area{min-block-size:var(--image-crop-dialog-area-min-height);background-color:var(--image-crop-dialog-area-bg);border-radius:var(--image-crop-dialog-area-border-radius);place-items:center;display:grid;overflow:hidden}.image-crop-dialog__area>*{grid-area:1/1}.image-crop-dialog__error{max-inline-size:100%}.image-crop-dialog__area .ReactCrop{max-
|
|
1
|
+
@keyframes marching-ants{0%{background-position:0 0,0 100%,0 0,100% 0}to{background-position:20px 0,-20px 100%,0 -20px,100% 20px}}:root{--rc-drag-handle-size:12px;--rc-drag-handle-mobile-size:24px;--rc-drag-handle-bg-colour:#0003;--rc-drag-bar-size:6px;--rc-border-color:#ffffffb3;--rc-focus-color:#08f}.ReactCrop{cursor:crosshair;max-width:100%;display:inline-block;position:relative}.ReactCrop *,.ReactCrop :before,.ReactCrop :after{box-sizing:border-box}.ReactCrop--disabled,.ReactCrop--locked{cursor:inherit}.ReactCrop__child-wrapper{max-height:inherit;overflow:hidden}.ReactCrop__child-wrapper>img,.ReactCrop__child-wrapper>video{max-width:100%;max-height:inherit;display:block}.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>img,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__child-wrapper>video,.ReactCrop:not(.ReactCrop--disabled) .ReactCrop__crop-selection{touch-action:none}.ReactCrop__crop-mask{pointer-events:none;width:calc(100% + .5px);height:calc(100% + .5px);position:absolute;inset:0}.ReactCrop__crop-selection{cursor:move;position:absolute;top:0;left:0;transform:translate(0)}.ReactCrop--disabled .ReactCrop__crop-selection{cursor:inherit}.ReactCrop--circular-crop .ReactCrop__crop-selection{border-radius:50%}.ReactCrop--circular-crop .ReactCrop__crop-selection:after{pointer-events:none;content:"";border:1px solid var(--rc-border-color);opacity:.3;position:absolute;inset:-1px}.ReactCrop--no-animate .ReactCrop__crop-selection{outline:1px dashed #fff}.ReactCrop__crop-selection:not(.ReactCrop--no-animate .ReactCrop__crop-selection){color:#fff;background-image:linear-gradient(90deg,#fff 50%,#444 50%),linear-gradient(90deg,#fff 50%,#444 50%),linear-gradient(#fff 50%,#444 50%),linear-gradient(#fff 50%,#444 50%);background-position:0 0,0 100%,0 0,100% 0;background-repeat:repeat-x,repeat-x,repeat-y,repeat-y;background-size:10px 1px,10px 1px,1px 10px,1px 10px;animation:1s linear infinite marching-ants}.ReactCrop__crop-selection:focus{outline:2px solid var(--rc-focus-color);outline-offset:-1px}.ReactCrop--invisible-crop .ReactCrop__crop-mask,.ReactCrop--invisible-crop .ReactCrop__crop-selection{display:none}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after,.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{content:"";background-color:#fff6;display:block;position:absolute}.ReactCrop__rule-of-thirds-vt:before,.ReactCrop__rule-of-thirds-vt:after{width:1px;height:100%}.ReactCrop__rule-of-thirds-vt:before{left:33.3333%}.ReactCrop__rule-of-thirds-vt:after{left:66.6667%}.ReactCrop__rule-of-thirds-hz:before,.ReactCrop__rule-of-thirds-hz:after{width:100%;height:1px}.ReactCrop__rule-of-thirds-hz:before{top:33.3333%}.ReactCrop__rule-of-thirds-hz:after{top:66.6667%}.ReactCrop__drag-handle{width:var(--rc-drag-handle-size);height:var(--rc-drag-handle-size);background-color:var(--rc-drag-handle-bg-colour);border:1px solid var(--rc-border-color);position:absolute}.ReactCrop__drag-handle:focus{background:var(--rc-focus-color)}.ReactCrop .ord-nw{cursor:nw-resize;top:0;left:0;transform:translate(-50%,-50%)}.ReactCrop .ord-n{cursor:n-resize;top:0;left:50%;transform:translate(-50%,-50%)}.ReactCrop .ord-ne{cursor:ne-resize;top:0;right:0;transform:translate(50%,-50%)}.ReactCrop .ord-e{cursor:e-resize;top:50%;right:0;transform:translate(50%,-50%)}.ReactCrop .ord-se{cursor:se-resize;bottom:0;right:0;transform:translate(50%,50%)}.ReactCrop .ord-s{cursor:s-resize;bottom:0;left:50%;transform:translate(-50%,50%)}.ReactCrop .ord-sw{cursor:sw-resize;bottom:0;left:0;transform:translate(-50%,50%)}.ReactCrop .ord-w{cursor:w-resize;top:50%;left:0;transform:translate(-50%,-50%)}.ReactCrop__disabled .ReactCrop__drag-handle{cursor:inherit}.ReactCrop__drag-bar{position:absolute}.ReactCrop__drag-bar.ord-n{width:100%;height:var(--rc-drag-bar-size);top:0;left:0;transform:translateY(-50%)}.ReactCrop__drag-bar.ord-e{width:var(--rc-drag-bar-size);height:100%;top:0;right:0;transform:translate(50%)}.ReactCrop__drag-bar.ord-s{width:100%;height:var(--rc-drag-bar-size);bottom:0;left:0;transform:translateY(50%)}.ReactCrop__drag-bar.ord-w{width:var(--rc-drag-bar-size);height:100%;top:0;left:0;transform:translate(-50%)}.ReactCrop--new-crop .ReactCrop__drag-bar,.ReactCrop--new-crop .ReactCrop__drag-handle,.ReactCrop--fixed-aspect .ReactCrop__drag-bar,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-n,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-e,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-s,.ReactCrop--fixed-aspect .ReactCrop__drag-handle.ord-w{display:none}@media (pointer:coarse){.ReactCrop .ord-n,.ReactCrop .ord-e,.ReactCrop .ord-s,.ReactCrop .ord-w{display:none}.ReactCrop__drag-handle{width:var(--rc-drag-handle-mobile-size);height:var(--rc-drag-handle-mobile-size)}}.image-crop-dialog{gap:var(--image-crop-dialog-gap);flex-direction:column;display:flex}.image-crop-dialog__area{min-block-size:var(--image-crop-dialog-area-min-height);background-color:var(--image-crop-dialog-area-bg);border-radius:var(--image-crop-dialog-area-border-radius);place-items:center;display:grid;overflow:hidden}.image-crop-dialog__area>*{grid-area:1/1}.image-crop-dialog__error{max-inline-size:100%}.image-crop-dialog__area .ReactCrop{max-block-size:var(--image-crop-dialog-area-max-height)}.image-crop-dialog__area img{max-block-size:var(--image-crop-dialog-area-max-height);max-inline-size:100%;display:block}.image-crop-dialog__actions.modal__footer{gap:var(--image-crop-dialog-actions-gap)}
|
package/dist/input-field.js
CHANGED
|
@@ -1,101 +1,3 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import { Icon as t } from "./icon.js";
|
|
5
|
-
import { n } from "./_shared/form-size.js";
|
|
6
|
-
import { ErrorText as r } from "./error-text.js";
|
|
7
|
-
import { Input as i } from "./input.js";
|
|
8
|
-
import { Label as a } from "./label.js";
|
|
9
|
-
import { n as o } from "./_shared/field-labels.js";
|
|
10
|
-
import { forwardRef as s, useImperativeHandle as c, useRef as l, useState as u } from "react";
|
|
11
|
-
import { jsx as d, jsxs as f } from "react/jsx-runtime";
|
|
12
|
-
//#region src/stories/molecules/InputField/InputField.tsx
|
|
13
|
-
var p = s(function({ id: s, label: p, labelHidden: m, name: h, type: g, kind: _ = "text", clearable: v = !1, clearLabel: y, onClear: b, placeholder: x, value: S, defaultValue: C, disabled: w, readOnly: T, size: E, error: D = !1, errorMessage: O, helperText: k, onChange: A, onBlur: j, onFocus: M, className: N, ...P }, F) {
|
|
14
|
-
let I = e("inputField"), L = o(m), R = n(E), z = O ? `${s}-error` : void 0, B = k ? `${s}-helper` : void 0, V = [
|
|
15
|
-
z,
|
|
16
|
-
B,
|
|
17
|
-
P["aria-describedby"]
|
|
18
|
-
].filter(Boolean).join(" ") || void 0, H = D || !!O, U = _ === "search", W = l(null);
|
|
19
|
-
c(F, () => W.current);
|
|
20
|
-
let [G, K] = u(() => (C ?? "") !== ""), q = U && v && (S === void 0 ? G : S !== "") && !w && !T;
|
|
21
|
-
function J(e) {
|
|
22
|
-
S === void 0 && K(e.target.value !== ""), A?.(e);
|
|
23
|
-
}
|
|
24
|
-
function Y() {
|
|
25
|
-
let e = W.current;
|
|
26
|
-
e && ((Object.getOwnPropertyDescriptor(window.HTMLInputElement.prototype, "value")?.set)?.call(e, ""), e.dispatchEvent(new Event("input", { bubbles: !0 })), K(!1), e.focus(), b?.());
|
|
27
|
-
}
|
|
28
|
-
let X = /* @__PURE__ */ d(i, {
|
|
29
|
-
ref: W,
|
|
30
|
-
...U ? {
|
|
31
|
-
type: "text",
|
|
32
|
-
autoComplete: "off",
|
|
33
|
-
enterKeyHint: "search"
|
|
34
|
-
} : { type: g },
|
|
35
|
-
...P,
|
|
36
|
-
id: s,
|
|
37
|
-
name: h,
|
|
38
|
-
placeholder: x ?? (L ? p : void 0),
|
|
39
|
-
value: S,
|
|
40
|
-
defaultValue: C,
|
|
41
|
-
disabled: w,
|
|
42
|
-
readOnly: T,
|
|
43
|
-
size: R,
|
|
44
|
-
error: H,
|
|
45
|
-
"aria-describedby": V,
|
|
46
|
-
onChange: J,
|
|
47
|
-
onBlur: j,
|
|
48
|
-
onFocus: M
|
|
49
|
-
});
|
|
50
|
-
return /* @__PURE__ */ f("div", {
|
|
51
|
-
className: ["input-field", N].filter(Boolean).join(" "),
|
|
52
|
-
children: [
|
|
53
|
-
/* @__PURE__ */ d(a, {
|
|
54
|
-
htmlFor: s,
|
|
55
|
-
hidden: L,
|
|
56
|
-
size: R,
|
|
57
|
-
children: p
|
|
58
|
-
}),
|
|
59
|
-
U ? /* @__PURE__ */ f("div", {
|
|
60
|
-
className: [
|
|
61
|
-
"input-field__search",
|
|
62
|
-
R === "md" ? "" : `input-field__search--${R}`,
|
|
63
|
-
v ? "input-field__search--clearable" : ""
|
|
64
|
-
].filter(Boolean).join(" "),
|
|
65
|
-
children: [
|
|
66
|
-
/* @__PURE__ */ d("span", {
|
|
67
|
-
className: "input-field__search-icon",
|
|
68
|
-
"aria-hidden": "true",
|
|
69
|
-
children: /* @__PURE__ */ d(t, {
|
|
70
|
-
name: "search",
|
|
71
|
-
className: "input-field__search-glyph"
|
|
72
|
-
})
|
|
73
|
-
}),
|
|
74
|
-
X,
|
|
75
|
-
q && /* @__PURE__ */ d("button", {
|
|
76
|
-
type: "button",
|
|
77
|
-
className: "input-field__clear",
|
|
78
|
-
"aria-label": I("clear", y),
|
|
79
|
-
"aria-controls": s,
|
|
80
|
-
onClick: Y,
|
|
81
|
-
children: /* @__PURE__ */ d(t, {
|
|
82
|
-
name: "close",
|
|
83
|
-
className: "input-field__search-glyph"
|
|
84
|
-
})
|
|
85
|
-
})
|
|
86
|
-
]
|
|
87
|
-
}) : X,
|
|
88
|
-
O && /* @__PURE__ */ d(r, {
|
|
89
|
-
id: z,
|
|
90
|
-
children: O
|
|
91
|
-
}),
|
|
92
|
-
k && /* @__PURE__ */ d("span", {
|
|
93
|
-
id: B,
|
|
94
|
-
className: "input-field__helper",
|
|
95
|
-
children: k
|
|
96
|
-
})
|
|
97
|
-
]
|
|
98
|
-
});
|
|
99
|
-
});
|
|
100
|
-
//#endregion
|
|
101
|
-
export { p as InputField };
|
|
2
|
+
import { t as e } from "./_shared/inputfield.js";
|
|
3
|
+
export { e as InputField };
|
|
@@ -1,55 +1,50 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import './input-phone-field.css';
|
|
3
3
|
import { n as e } from "./_shared/form-size.js";
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import { forwardRef as
|
|
9
|
-
import { jsx as s
|
|
4
|
+
import { t } from "./_shared/inputphone.js";
|
|
5
|
+
import { n } from "./_shared/field-optional.js";
|
|
6
|
+
import { n as r } from "./_shared/field-labels.js";
|
|
7
|
+
import { a as i, n as a } from "./_shared/fieldshell.js";
|
|
8
|
+
import { forwardRef as o } from "react";
|
|
9
|
+
import { jsx as s } from "react/jsx-runtime";
|
|
10
10
|
//#region src/stories/molecules/InputPhoneField/InputPhoneField.tsx
|
|
11
|
-
var
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
id: F,
|
|
48
|
-
className: "input-phone-field__helper",
|
|
49
|
-
children: x
|
|
50
|
-
})
|
|
51
|
-
]
|
|
11
|
+
var c = o(function({ id: o, label: c, optional: l, optionalLabel: u, labelHidden: d, value: f, defaultCountry: p, placeholder: m, disabled: h, readOnly: g, required: _, name: v, autoComplete: y, error: b = !1, errorMessage: x, helperText: S, size: C, className: w, countryLabel: T, internationalLabel: E, onChange: D, onBlur: O, onFocus: k }, A) {
|
|
12
|
+
let j = r(d), M = e(C), N = n(l, _), P = i({
|
|
13
|
+
id: o,
|
|
14
|
+
error: b,
|
|
15
|
+
errorMessage: x,
|
|
16
|
+
helperText: S
|
|
17
|
+
}), { id: F } = P;
|
|
18
|
+
return /* @__PURE__ */ s(a, {
|
|
19
|
+
field: P,
|
|
20
|
+
block: "input-phone-field",
|
|
21
|
+
className: w,
|
|
22
|
+
label: c,
|
|
23
|
+
optional: N,
|
|
24
|
+
optionalLabel: u,
|
|
25
|
+
labelHidden: j,
|
|
26
|
+
size: M,
|
|
27
|
+
children: /* @__PURE__ */ s(t, {
|
|
28
|
+
ref: A,
|
|
29
|
+
id: F,
|
|
30
|
+
name: v,
|
|
31
|
+
value: f,
|
|
32
|
+
defaultCountry: p,
|
|
33
|
+
placeholder: m,
|
|
34
|
+
disabled: h,
|
|
35
|
+
readOnly: g,
|
|
36
|
+
required: _,
|
|
37
|
+
autoComplete: y,
|
|
38
|
+
countryLabel: T,
|
|
39
|
+
internationalLabel: E,
|
|
40
|
+
error: P.hasError,
|
|
41
|
+
size: M,
|
|
42
|
+
"aria-describedby": P.describedBy,
|
|
43
|
+
onChange: D,
|
|
44
|
+
onBlur: O,
|
|
45
|
+
onFocus: k
|
|
46
|
+
})
|
|
52
47
|
});
|
|
53
48
|
});
|
|
54
49
|
//#endregion
|
|
55
|
-
export {
|
|
50
|
+
export { c as InputPhoneField };
|
package/dist/input-phone.js
CHANGED
|
@@ -1,90 +1,3 @@
|
|
|
1
1
|
'use client';
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
import { Icon as t } from "./icon.js";
|
|
5
|
-
import { n } from "./_shared/portal-container.js";
|
|
6
|
-
import { forwardRef as r, useMemo as i } from "react";
|
|
7
|
-
import { jsx as a, jsxs as o } from "react/jsx-runtime";
|
|
8
|
-
import { Select as s } from "@base-ui/react/select";
|
|
9
|
-
import c, { getCountryCallingCode as l } from "react-phone-number-input";
|
|
10
|
-
//#region src/stories/atoms/InputPhone/InputPhone.tsx
|
|
11
|
-
function u({ value: r, onChange: i, options: c, disabled: u, size: d = "md", countryLabel: f, internationalLabel: p = "🌐", container: m }) {
|
|
12
|
-
let h = e("inputPhone"), g = n(m), _ = "__intl__", v = (e) => e ?? _, y = (e) => e === _ ? void 0 : e, b = d === "lg" ? "md" : "sm", x = ["input-phone__country-content", d === "md" ? "" : `input-phone__country-content--${d}`].filter(Boolean).join(" ");
|
|
13
|
-
return /* @__PURE__ */ o(s.Root, {
|
|
14
|
-
value: v(r),
|
|
15
|
-
onValueChange: (e) => i(y(e)),
|
|
16
|
-
disabled: u,
|
|
17
|
-
children: [/* @__PURE__ */ o(s.Trigger, {
|
|
18
|
-
className: "input-phone__country",
|
|
19
|
-
"aria-label": h("country", f),
|
|
20
|
-
children: [/* @__PURE__ */ a(s.Value, { children: r ? `+${l(r)}` : p }), /* @__PURE__ */ a(t, {
|
|
21
|
-
name: "chevron",
|
|
22
|
-
className: "input-phone__country-icon",
|
|
23
|
-
size: b
|
|
24
|
-
})]
|
|
25
|
-
}), /* @__PURE__ */ a(s.Portal, {
|
|
26
|
-
container: g,
|
|
27
|
-
children: /* @__PURE__ */ a(s.Positioner, {
|
|
28
|
-
className: "input-phone__country-positioner",
|
|
29
|
-
side: "bottom",
|
|
30
|
-
align: "start",
|
|
31
|
-
alignItemWithTrigger: !1,
|
|
32
|
-
children: /* @__PURE__ */ a(s.Popup, {
|
|
33
|
-
className: x,
|
|
34
|
-
children: c.map(({ value: e, label: t }) => /* @__PURE__ */ a(s.Item, {
|
|
35
|
-
value: v(e),
|
|
36
|
-
className: "input-phone__country-item",
|
|
37
|
-
children: /* @__PURE__ */ a(s.ItemText, { children: t })
|
|
38
|
-
}, v(e)))
|
|
39
|
-
})
|
|
40
|
-
})
|
|
41
|
-
})]
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
var d = r(function({ value: e, defaultCountry: t = "ES", placeholder: n, disabled: o, error: s = !1, size: l = "md", id: d, name: p, describedBy: m, "aria-describedby": h, "aria-label": g, autoComplete: _, required: v, readOnly: y, onChange: b, onBlur: x, onFocus: S, countryLabel: C, internationalLabel: w, container: T }, E) {
|
|
45
|
-
return /* @__PURE__ */ a(c, {
|
|
46
|
-
className: [
|
|
47
|
-
"input-phone",
|
|
48
|
-
s ? "input-phone--error" : "",
|
|
49
|
-
l === "md" ? "" : `input-phone--${l}`
|
|
50
|
-
].filter(Boolean).join(" "),
|
|
51
|
-
value: e,
|
|
52
|
-
defaultCountry: t,
|
|
53
|
-
placeholder: n,
|
|
54
|
-
disabled: o,
|
|
55
|
-
readOnly: y,
|
|
56
|
-
required: v,
|
|
57
|
-
autoComplete: _,
|
|
58
|
-
id: d,
|
|
59
|
-
name: p,
|
|
60
|
-
inputComponent: i(() => r(function(e, t) {
|
|
61
|
-
return /* @__PURE__ */ a("input", {
|
|
62
|
-
...e,
|
|
63
|
-
ref: (e) => {
|
|
64
|
-
f(t, e), f(E, e);
|
|
65
|
-
},
|
|
66
|
-
className: "input-phone__number"
|
|
67
|
-
});
|
|
68
|
-
}), [E]),
|
|
69
|
-
countrySelectComponent: u,
|
|
70
|
-
countrySelectProps: {
|
|
71
|
-
size: l,
|
|
72
|
-
countryLabel: C,
|
|
73
|
-
internationalLabel: w,
|
|
74
|
-
container: T
|
|
75
|
-
},
|
|
76
|
-
onChange: (e) => b?.(e),
|
|
77
|
-
onBlur: x,
|
|
78
|
-
onFocus: S,
|
|
79
|
-
numberInputProps: {
|
|
80
|
-
"aria-describedby": h ?? m,
|
|
81
|
-
"aria-label": g,
|
|
82
|
-
"aria-invalid": s || void 0
|
|
83
|
-
}
|
|
84
|
-
});
|
|
85
|
-
});
|
|
86
|
-
function f(e, t) {
|
|
87
|
-
typeof e == "function" ? e(t) : e && (e.current = t);
|
|
88
|
-
}
|
|
89
|
-
//#endregion
|
|
90
|
-
export { d as InputPhone };
|
|
2
|
+
import { t as e } from "./_shared/inputphone.js";
|
|
3
|
+
export { e as InputPhone };
|
package/dist/input.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.input{
|
|
1
|
+
.input{inline-size:var(--input-width);block-size:var(--input-height);padding-block:0;padding-inline:var(--input-padding-inline);border-radius:var(--input-border-radius);border-width:var(--input-border-width);border-style:var(--input-border-style);border-color:var(--input-border-color);background-color:var(--input-bg);color:var(--input-color);font-family:var(--input-font-family);font-size:var(--input-font-size);font-weight:var(--input-font-weight);line-height:var(--input-line-height);cursor:var(--input-cursor);box-sizing:border-box;transition:border-color var(--input-transition-duration) var(--input-transition-easing)}.input::placeholder{color:var(--input-placeholder-color)}.input:focus-visible{box-shadow:inset 0 0 0 calc(var(--input-focus-ring-width) + var(--input-focus-ring-inset-offset)) var(--input-focus-ring-color), inset 0 0 0 var(--input-focus-ring-inset-offset) var(--input-bg);border-color:var(--input-focus-border-color);outline:none}.input:disabled{cursor:var(--input-disabled-cursor);background-color:var(--input-disabled-bg);color:var(--input-disabled-color);border-color:var(--input-disabled-border-color);pointer-events:none}.input.input--error{background-color:var(--input-error-bg);color:var(--input-error-color);border-color:var(--input-error-border-color)}.input.input--error::placeholder{color:var(--input-error-placeholder-color)}.input.input--error:focus-visible{box-shadow:inset 0 0 0 calc(var(--input-focus-ring-width) + var(--input-focus-ring-inset-offset)) var(--input-error-focus-ring-color), inset 0 0 0 var(--input-focus-ring-inset-offset) var(--input-error-bg);border-color:var(--input-error-focus-border-color);outline:none}.input.input--sm{--input-height:var(--input-sm-height);--input-padding-inline:var(--input-sm-padding-inline);--input-font-size:var(--input-sm-font-size)}.input.input--lg{--input-height:var(--input-lg-height);--input-padding-inline:var(--input-lg-padding-inline);--input-font-size:var(--input-lg-font-size)}.input:autofill{-webkit-text-fill-color:var(--input-color);caret-color:var(--input-color);box-shadow:inset 0 0 0 1000px var(--input-bg);transition:background-color 9999s ease-out}.input:autofill:hover{-webkit-text-fill-color:var(--input-color);caret-color:var(--input-color);box-shadow:inset 0 0 0 1000px var(--input-bg);transition:background-color 9999s ease-out}.input:autofill:focus{-webkit-text-fill-color:var(--input-color);caret-color:var(--input-color);box-shadow:inset 0 0 0 1000px var(--input-bg);transition:background-color 9999s ease-out}.input:-webkit-autofill{-webkit-text-fill-color:var(--input-color);caret-color:var(--input-color);box-shadow:inset 0 0 0 1000px var(--input-bg);transition:background-color 9999s ease-out}.input:-webkit-autofill:hover{-webkit-text-fill-color:var(--input-color);caret-color:var(--input-color);box-shadow:inset 0 0 0 1000px var(--input-bg);transition:background-color 9999s ease-out}.input:-webkit-autofill:focus{-webkit-text-fill-color:var(--input-color);caret-color:var(--input-color);box-shadow:inset 0 0 0 1000px var(--input-bg);transition:background-color 9999s ease-out}:-webkit-any(.input.input--error:-webkit-autofill,.input.input--error:autofill){-webkit-text-fill-color:var(--input-error-color);box-shadow:inset 0 0 0 1000px var(--input-error-bg)}:is(.input.input--error:autofill,.input.input--error:autofill){-webkit-text-fill-color:var(--input-error-color);box-shadow:inset 0 0 0 1000px var(--input-error-bg)}:-webkit-any(.input.input--error:-webkit-autofill:focus-visible,.input.input--error:autofill:focus-visible){box-shadow:inset 0 0 0 calc(var(--input-focus-ring-width) + var(--input-focus-ring-inset-offset)) var(--input-error-focus-ring-color), inset 0 0 0 var(--input-focus-ring-inset-offset) var(--input-error-bg), inset 0 0 0 1000px var(--input-error-bg)}:is(.input.input--error:autofill:focus-visible,.input.input--error:autofill:focus-visible){box-shadow:inset 0 0 0 calc(var(--input-focus-ring-width) + var(--input-focus-ring-inset-offset)) var(--input-error-focus-ring-color), inset 0 0 0 var(--input-focus-ring-inset-offset) var(--input-error-bg), inset 0 0 0 1000px var(--input-error-bg)}
|
package/dist/input.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import './input.css';
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
3
|
+
import { n as e } from "./_shared/env.js";
|
|
4
|
+
import { forwardRef as t } from "react";
|
|
5
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
5
6
|
//#region src/stories/atoms/Input/Input.tsx
|
|
6
|
-
var
|
|
7
|
-
return /* @__PURE__ */
|
|
8
|
-
ref:
|
|
7
|
+
var r = t(function({ size: t = "md", error: r = !1, className: i, describedBy: a, ariaLabel: o, ...s }, c) {
|
|
8
|
+
return o !== void 0 && e("Input", "ariaLabel", "`aria-label`"), /* @__PURE__ */ n("input", {
|
|
9
|
+
ref: c,
|
|
9
10
|
className: [
|
|
10
11
|
"input",
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
t === "md" ? "" : `input--${t}`,
|
|
13
|
+
r ? "input--error" : "",
|
|
14
|
+
i ?? ""
|
|
14
15
|
].filter(Boolean).join(" "),
|
|
15
|
-
"aria-invalid":
|
|
16
|
-
"aria-describedby":
|
|
17
|
-
"aria-label":
|
|
18
|
-
...
|
|
16
|
+
"aria-invalid": r || void 0,
|
|
17
|
+
"aria-describedby": a,
|
|
18
|
+
"aria-label": o,
|
|
19
|
+
...s
|
|
19
20
|
});
|
|
20
21
|
});
|
|
21
22
|
//#endregion
|
|
22
|
-
export {
|
|
23
|
+
export { r as Input };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.input-phone__country{all:unset;box-sizing:border-box}.input-phone__country:hover,.input-phone__country:active{color:var(--input-color);border-color:inherit;background-color:#0000}.input-phone{inline-size:var(--input-width);block-size:var(--input-height);border-radius:var(--input-border-radius);border-width:var(--input-border-width);border-style:var(--input-border-style);border-color:var(--input-border-color);background-color:var(--input-bg);box-sizing:border-box;transition:border-color var(--input-transition-duration) var(--input-transition-easing);align-items:stretch;display:flex}.input-phone:has(:focus-visible){border-color:var(--input-focus-border-color);box-shadow:inset 0 0 0 calc(var(--input-focus-ring-width) + var(--input-focus-ring-inset-offset)) var(--input-focus-ring-color), inset 0 0 0 var(--input-focus-ring-inset-offset) var(--input-bg)}.input-phone__country{justify-content:space-between;align-items:center;gap:var(--input-phone-country-gap);inline-size:var(--input-phone-country-width);padding-block:0;padding-inline:var(--input-padding-inline);font-family:var(--input-font-family);font-size:var(--input-font-size);font-weight:var(--input-font-weight);line-height:var(--input-line-height);color:var(--input-color);border:none;border-inline-end-width:var(--input-phone-country-border-width);border-inline-end-style:var(--input-phone-country-border-style);border-inline-end-color:var(--input-phone-country-border-color);cursor:pointer;box-sizing:border-box;background:0 0;flex-shrink:0;display:inline-flex}.input-phone__country:focus,.input-phone__country[data-popup-open]{outline:none}.input-phone__country-icon{width:var(--input-phone-country-icon-size);transition:transform var(--input-transition-duration) var(--input-phone-country-icon-transition-easing);flex-shrink:0;transform:rotate(90deg)}.input-phone__country[data-popup-open] .input-phone__country-icon{transform:rotate(-90deg)}.input-phone__country-positioner{z-index:var(--input-phone-content-z-index)}.input-phone__country-content{background-color:var(--input-bg);border-width:var(--input-border-width);border-style:var(--input-border-style);border-color:var(--input-border-color);min-inline-size:var(--anchor-width);max-block-size:var(--input-phone-content-max-height);overscroll-behavior:contain;overflow-y:auto}.input-phone__country-item{padding-block:var(--input-phone-country-item-padding-block);padding-inline:var(--input-padding-inline);font-family:var(--input-font-family);font-size:var(--input-font-size);cursor:pointer;align-items:center;display:flex}.input-phone__country-item[data-highlighted]{background-color:var(--input-phone-country-item-highlighted-bg);color:var(--input-phone-country-item-highlighted-color)}.input-phone .PhoneInputCountry{flex-shrink:0;align-items:stretch;display:flex}.input-phone .input-phone__number{min-inline-size:0;padding-block:0;padding-inline:var(--input-padding-inline);font-family:var(--input-font-family);font-size:var(--input-font-size);font-weight:var(--input-font-weight);line-height:var(--input-line-height);color:var(--input-color);box-sizing:border-box;background:0 0;border:none;outline:none;flex:1}.input-phone__number::placeholder{color:var(--input-placeholder-color)}.input-phone.input-phone--error{border-color:var(--input-error-border-color)}.input-phone.input-phone--error:has(:focus-visible){box-shadow:inset 0 0 0 calc(var(--input-focus-ring-width) + var(--input-focus-ring-inset-offset)) var(--input-error-focus-ring-color), inset 0 0 0 var(--input-focus-ring-inset-offset) var(--input-error-bg);border-color:var(--input-error-focus-border-color)}.input-phone.input-phone--error .input-phone__number::placeholder{color:var(--input-error-placeholder-color)}.input-phone:has(.input-phone__number:disabled){background-color:var(--input-disabled-bg);border-color:var(--input-disabled-border-color);pointer-events:none}.input-phone.input-phone--sm{--input-height:var(--input-sm-height);--input-padding-inline:var(--input-sm-padding-inline);--input-font-size:var(--input-sm-font-size);--input-phone-country-width:var(--input-phone-sm-country-width);--input-phone-country-icon-size:var(--input-phone-sm-country-icon-size)}.input-phone.input-phone--lg{--input-height:var(--input-lg-height);--input-padding-inline:var(--input-lg-padding-inline);--input-font-size:var(--input-lg-font-size);--input-phone-country-width:var(--input-phone-lg-country-width)}.input-phone__country-content--sm .input-phone__country-item{font-size:var(--input-sm-font-size)}.input-phone__country-content--lg .input-phone__country-item{font-size:var(--input-lg-font-size)}
|
package/dist/label.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.visually-hidden{clip-path:inset(50%);white-space:nowrap;border-width:0;
|
|
1
|
+
.visually-hidden{clip-path:inset(50%);white-space:nowrap;border-width:0;block-size:1px;inline-size:1px;margin:-1px;padding:0;position:absolute;overflow:hidden}.label{font-family:var(--label-font-family);font-size:var(--label-font-size);font-weight:var(--label-font-weight);line-height:var(--label-line-height);color:var(--label-color);letter-spacing:var(--label-letter-spacing)}.label--sm{font-size:var(--label-sm-font-size)}.label--lg{font-size:var(--label-lg-font-size)}.label__optional{color:var(--label-optional-color)}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.language-switcher__list{gap:var(--language-switcher-list-gap);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.language-switcher__option{font:inherit;font-size:var(--language-switcher-list-font-size);color:inherit;padding:0;
|
|
1
|
+
.language-switcher__list{gap:var(--language-switcher-list-gap);flex-wrap:wrap;margin:0;padding:0;list-style:none;display:flex}.language-switcher__option{font:inherit;font-size:var(--language-switcher-list-font-size);color:inherit;padding:0;cursor:pointer;background:0 0;border:0;padding-block-end:0;text-decoration:none}.language-switcher__option:hover{-webkit-text-decoration-line:var(--link-decoration-line);text-decoration-line:var(--link-decoration-line);text-decoration-thickness:var(--link-underline-width);-webkit-text-decoration-skip-ink:auto;text-decoration-skip-ink:auto;text-underline-position:under;text-underline-offset:calc(var(--link-underline-offset) - var(--link-underline-width));padding-block-end:var(--link-underline-offset)}.language-switcher__option.language-switcher__option--current{font-weight:var(--language-switcher-list-current-font-weight);cursor:default;padding-block-end:0;text-decoration:none}.language-switcher__option:focus-visible{outline:var(--language-switcher-focus-ring-width) solid var(--language-switcher-focus-ring-color);outline-offset:var(--language-switcher-focus-ring-offset)}
|