@intlayer/design-system 7.0.8 → 7.0.9-canary.2
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/README.md +4 -4
- package/dist/esm/components/Accordion/Accordion.mjs +1 -1
- package/dist/esm/components/Accordion/Accordion.mjs.map +1 -1
- package/dist/esm/components/Avatar/index.mjs +2 -2
- package/dist/esm/components/Avatar/index.mjs.map +1 -1
- package/dist/esm/components/Badge/index.mjs +1 -1
- package/dist/esm/components/Badge/index.mjs.map +1 -1
- package/dist/esm/components/Breadcrumb/index.mjs +4 -4
- package/dist/esm/components/Breadcrumb/index.mjs.map +1 -1
- package/dist/esm/components/Button/Button.mjs +99 -88
- package/dist/esm/components/Button/Button.mjs.map +1 -1
- package/dist/esm/components/Button/index.mjs +2 -2
- package/dist/esm/components/ClickOutsideDiv/index.mjs +1 -1
- package/dist/esm/components/ClickOutsideDiv/index.mjs.map +1 -1
- package/dist/esm/components/CollapsibleTable/CollapsibleTable.mjs +1 -1
- package/dist/esm/components/CollapsibleTable/CollapsibleTable.mjs.map +1 -1
- package/dist/esm/components/Command/index.mjs +8 -8
- package/dist/esm/components/Command/index.mjs.map +1 -1
- package/dist/esm/components/Container/index.mjs +14 -13
- package/dist/esm/components/Container/index.mjs.map +1 -1
- package/dist/esm/components/ContentEditor/ContentEditor.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditor.mjs.map +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorInput.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorInput.mjs.map +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs +1 -1
- package/dist/esm/components/ContentEditor/ContentEditorTextArea.mjs.map +1 -1
- package/dist/esm/components/CopyButton/index.mjs +1 -1
- package/dist/esm/components/CopyButton/index.mjs.map +1 -1
- package/dist/esm/components/CopyToClipboard/index.mjs +29 -27
- package/dist/esm/components/CopyToClipboard/index.mjs.map +1 -1
- package/dist/esm/components/DictionaryEditor/DictionaryEditor.mjs +1 -1
- package/dist/esm/components/DictionaryEditor/DictionaryEditor.mjs.map +1 -1
- package/dist/esm/components/DictionaryEditor/ItemLayout.mjs +6 -3
- package/dist/esm/components/DictionaryEditor/ItemLayout.mjs.map +1 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs +2 -1
- package/dist/esm/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +40 -22
- package/dist/esm/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs +2 -1
- package/dist/esm/components/DictionaryFieldEditor/KeyPathBreadcrumb.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +1 -1
- package/dist/esm/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs +2 -2
- package/dist/esm/components/DictionaryFieldEditor/StructureView/StructureView.mjs.map +1 -1
- package/dist/esm/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs +1 -1
- package/dist/esm/components/DropDown/index.mjs +3 -3
- package/dist/esm/components/DropDown/index.mjs.map +1 -1
- package/dist/esm/components/EditableField/EditableFieldInput.mjs +1 -1
- package/dist/esm/components/EditableField/EditableFieldInput.mjs.map +1 -1
- package/dist/esm/components/EditableField/EditableFieldLayout.mjs +1 -1
- package/dist/esm/components/EditableField/EditableFieldLayout.mjs.map +1 -1
- package/dist/esm/components/EditableField/EditableFieldTextArea.mjs +1 -1
- package/dist/esm/components/EditableField/EditableFieldTextArea.mjs.map +1 -1
- package/dist/esm/components/Flags/Flag.mjs +1 -1
- package/dist/esm/components/Flags/Flag.mjs.map +1 -1
- package/dist/esm/components/Form/Form.mjs +4 -0
- package/dist/esm/components/Form/Form.mjs.map +1 -1
- package/dist/esm/components/Form/FormBase.mjs +1 -1
- package/dist/esm/components/Form/FormBase.mjs.map +1 -1
- package/dist/esm/components/Form/FormItem.mjs +1 -1
- package/dist/esm/components/Form/FormItem.mjs.map +1 -1
- package/dist/esm/components/Form/FormLabel.mjs +1 -1
- package/dist/esm/components/Form/FormLabel.mjs.map +1 -1
- package/dist/esm/components/Form/FormMessage.mjs +1 -1
- package/dist/esm/components/Form/FormMessage.mjs.map +1 -1
- package/dist/esm/components/Form/elements/AutoSizeTextAreaElement.mjs.map +1 -1
- package/dist/esm/components/Form/elements/CheckboxElement.mjs +2 -2
- package/dist/esm/components/Form/elements/CheckboxElement.mjs.map +1 -1
- package/dist/esm/components/Form/elements/CodeInputElement.mjs +40 -0
- package/dist/esm/components/Form/elements/CodeInputElement.mjs.map +1 -0
- package/dist/esm/components/Form/elements/FormElement.mjs +2 -2
- package/dist/esm/components/Form/elements/FormElement.mjs.map +1 -1
- package/dist/esm/components/Form/elements/FormElementWrapper.mjs +1 -1
- package/dist/esm/components/Form/elements/FormElementWrapper.mjs.map +1 -1
- package/dist/esm/components/Form/elements/InputPasswordElement.mjs +1 -1
- package/dist/esm/components/Form/elements/InputPasswordElement.mjs.map +1 -1
- package/dist/esm/components/Form/elements/MultiselectElement.mjs +30 -19
- package/dist/esm/components/Form/elements/MultiselectElement.mjs.map +1 -1
- package/dist/esm/components/Form/elements/OTPElement.mjs +114 -0
- package/dist/esm/components/Form/elements/OTPElement.mjs.map +1 -0
- package/dist/esm/components/Form/elements/SearchInputElement.mjs +17 -0
- package/dist/esm/components/Form/elements/SearchInputElement.mjs.map +1 -0
- package/dist/esm/components/Form/elements/SelectElement.mjs +30 -19
- package/dist/esm/components/Form/elements/SelectElement.mjs.map +1 -1
- package/dist/esm/components/Form/elements/SwitchSelectorElement.mjs +29 -18
- package/dist/esm/components/Form/elements/SwitchSelectorElement.mjs.map +1 -1
- package/dist/esm/components/Form/elements/index.mjs +3 -1
- package/dist/esm/components/Form/layout/FormItemLayout.mjs +1 -2
- package/dist/esm/components/Form/layout/FormItemLayout.mjs.map +1 -1
- package/dist/esm/components/Headers/index.mjs +19 -19
- package/dist/esm/components/Headers/index.mjs.map +1 -1
- package/dist/esm/components/HeightResizer/index.mjs +1 -1
- package/dist/esm/components/HeightResizer/index.mjs.map +1 -1
- package/dist/esm/components/HideShow/index.mjs +2 -1
- package/dist/esm/components/HideShow/index.mjs.map +1 -1
- package/dist/esm/components/IDE/Code.mjs +1 -1
- package/dist/esm/components/IDE/Code.mjs.map +1 -1
- package/dist/esm/components/IDE/CodeBlockClient.mjs +1 -1
- package/dist/esm/components/IDE/CodeBlockClient.mjs.map +1 -1
- package/dist/esm/components/IDE/CodeBlockServer.mjs +3 -3
- package/dist/esm/components/IDE/CodeBlockServer.mjs.map +1 -1
- package/dist/esm/components/IDE/CodeConditionalRenderer.mjs +1 -1
- package/dist/esm/components/IDE/CodeConditionalRenderer.mjs.map +1 -1
- package/dist/esm/components/IDE/CodeFormatSelector.mjs +4 -1
- package/dist/esm/components/IDE/CodeFormatSelector.mjs.map +1 -1
- package/dist/esm/components/IDE/ContentDeclarationFormatSelector.mjs +4 -1
- package/dist/esm/components/IDE/ContentDeclarationFormatSelector.mjs.map +1 -1
- package/dist/esm/components/IDE/FileList.mjs +1 -1
- package/dist/esm/components/IDE/FileList.mjs.map +1 -1
- package/dist/esm/components/IDE/IDE.mjs +1 -1
- package/dist/esm/components/IDE/IDE.mjs.map +1 -1
- package/dist/esm/components/IDE/PackageManagerSelector.mjs +4 -1
- package/dist/esm/components/IDE/PackageManagerSelector.mjs.map +1 -1
- package/dist/esm/components/InformationTag/index.mjs +1 -1
- package/dist/esm/components/InformationTag/index.mjs.map +1 -1
- package/dist/esm/components/Input/Checkbox.mjs +22 -15
- package/dist/esm/components/Input/Checkbox.mjs.map +1 -1
- package/dist/esm/components/Input/CodeInput.mjs +84 -0
- package/dist/esm/components/Input/CodeInput.mjs.map +1 -0
- package/dist/esm/components/Input/Input.mjs +25 -14
- package/dist/esm/components/Input/Input.mjs.map +1 -1
- package/dist/esm/components/Input/InputPassword.mjs +1 -1
- package/dist/esm/components/Input/InputPassword.mjs.map +1 -1
- package/dist/esm/components/Input/OTPInput/Input.mjs +426 -0
- package/dist/esm/components/Input/OTPInput/Input.mjs.map +1 -0
- package/dist/esm/components/Input/OTPInput/index.mjs +495 -0
- package/dist/esm/components/Input/OTPInput/index.mjs.map +1 -0
- package/dist/esm/components/Input/OTPInput.mjs +495 -0
- package/dist/esm/components/Input/OTPInput.mjs.map +1 -0
- package/dist/esm/components/Input/SearchInput.mjs +1 -1
- package/dist/esm/components/Input/SearchInput.mjs.map +1 -1
- package/dist/esm/components/Input/index.mjs +2 -1
- package/dist/esm/components/KeyboardScreenAdapter/index.mjs +1 -1
- package/dist/esm/components/KeyboardScreenAdapter/index.mjs.map +1 -1
- package/dist/esm/components/Label/index.mjs +1 -1
- package/dist/esm/components/Label/index.mjs.map +1 -1
- package/dist/esm/components/Link/Link.mjs +1 -1
- package/dist/esm/components/Link/Link.mjs.map +1 -1
- package/dist/esm/components/Loader/index.mjs +1 -1
- package/dist/esm/components/Loader/index.mjs.map +1 -1
- package/dist/esm/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +1 -1
- package/dist/esm/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +1 -1
- package/dist/esm/components/Logo/Logo.mjs +1 -1
- package/dist/esm/components/Logo/Logo.mjs.map +1 -1
- package/dist/esm/components/Logo/LogoWithTextBelow.mjs +1 -1
- package/dist/esm/components/Logo/LogoWithTextBelow.mjs.map +1 -1
- package/dist/esm/components/MarkDownRender/MarkDownRender.mjs +16 -11
- package/dist/esm/components/MarkDownRender/MarkDownRender.mjs.map +1 -1
- package/dist/esm/components/MarkDownRender/processor.mjs +1 -1
- package/dist/esm/components/MarkDownRender/processor.mjs.map +1 -1
- package/dist/esm/components/MaxHeightSmoother/index.mjs +1 -1
- package/dist/esm/components/MaxHeightSmoother/index.mjs.map +1 -1
- package/dist/esm/components/MaxWidthSmoother/index.mjs +1 -1
- package/dist/esm/components/MaxWidthSmoother/index.mjs.map +1 -1
- package/dist/esm/components/Modal/Modal.mjs +48 -41
- package/dist/esm/components/Modal/Modal.mjs.map +1 -1
- package/dist/esm/components/Navbar/Burger.mjs +1 -1
- package/dist/esm/components/Navbar/Burger.mjs.map +1 -1
- package/dist/esm/components/Pagination/Pagination.mjs +1 -1
- package/dist/esm/components/Pagination/Pagination.mjs.map +1 -1
- package/dist/esm/components/Pagination/ShowingResultsNumberItems.mjs +5 -2
- package/dist/esm/components/Pagination/ShowingResultsNumberItems.mjs.map +1 -1
- package/dist/esm/components/Pattern/DotPattern.mjs +1 -1
- package/dist/esm/components/Pattern/DotPattern.mjs.map +1 -1
- package/dist/esm/components/Pattern/GridPattern.mjs +1 -1
- package/dist/esm/components/Pattern/GridPattern.mjs.map +1 -1
- package/dist/esm/components/Pattern/SpotLight.mjs +1 -1
- package/dist/esm/components/Pattern/SpotLight.mjs.map +1 -1
- package/dist/esm/components/Popover/dynamic.mjs +1 -1
- package/dist/esm/components/Popover/dynamic.mjs.map +1 -1
- package/dist/esm/components/Popover/static.mjs +2 -2
- package/dist/esm/components/Popover/static.mjs.map +1 -1
- package/dist/esm/components/PressableSpan/PressableSpan.mjs +1 -1
- package/dist/esm/components/PressableSpan/PressableSpan.mjs.map +1 -1
- package/dist/esm/components/RightDrawer/RightDrawer.mjs +1 -1
- package/dist/esm/components/Select/Multiselect.mjs +7 -7
- package/dist/esm/components/Select/Multiselect.mjs.map +1 -1
- package/dist/esm/components/Select/Select.mjs +12 -12
- package/dist/esm/components/Select/Select.mjs.map +1 -1
- package/dist/esm/components/SocialNetworks/index.mjs +3 -8
- package/dist/esm/components/SocialNetworks/index.mjs.map +1 -1
- package/dist/esm/components/SwitchSelector/index.mjs +35 -27
- package/dist/esm/components/SwitchSelector/index.mjs.map +1 -1
- package/dist/esm/components/Tab/Tab.mjs +2 -2
- package/dist/esm/components/Tab/Tab.mjs.map +1 -1
- package/dist/esm/components/TabSelector/TabSelector.mjs +1 -1
- package/dist/esm/components/TabSelector/TabSelector.mjs.map +1 -1
- package/dist/esm/components/Table/Table.mjs +1 -1
- package/dist/esm/components/Table/Table.mjs.map +1 -1
- package/dist/esm/components/Tag/index.mjs +1 -1
- package/dist/esm/components/Tag/index.mjs.map +1 -1
- package/dist/esm/components/TextArea/AutoSizeTextArea.mjs +1 -1
- package/dist/esm/components/TextArea/AutoSizeTextArea.mjs.map +1 -1
- package/dist/esm/components/TextArea/AutocompleteTextArea.mjs +1 -1
- package/dist/esm/components/TextArea/AutocompleteTextArea.mjs.map +1 -1
- package/dist/esm/components/TextArea/TextArea.mjs +1 -1
- package/dist/esm/components/TextArea/TextArea.mjs.map +1 -1
- package/dist/esm/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs +2 -2
- package/dist/esm/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs.map +1 -1
- package/dist/esm/components/Toaster/Toast.mjs +7 -7
- package/dist/esm/components/Toaster/Toast.mjs.map +1 -1
- package/dist/esm/components/Toaster/Toaster.mjs +1 -1
- package/dist/esm/components/Toaster/Toaster.mjs.map +1 -1
- package/dist/esm/components/index.mjs +6 -5
- package/dist/esm/hooks/index.mjs +4 -3
- package/dist/esm/hooks/reactQuery.mjs +66 -3
- package/dist/esm/hooks/reactQuery.mjs.map +1 -1
- package/dist/esm/hooks/useAuth/useSession.mjs +5 -3
- package/dist/esm/hooks/useAuth/useSession.mjs.map +1 -1
- package/dist/esm/hooks/useDevice.mjs +16 -2
- package/dist/esm/hooks/useDevice.mjs.map +1 -1
- package/dist/esm/hooks/useItemSelector.mjs +4 -1
- package/dist/esm/hooks/useItemSelector.mjs.map +1 -1
- package/dist/esm/libs/auth.mjs +77 -32
- package/dist/esm/libs/auth.mjs.map +1 -1
- package/dist/types/Checkbox.d.ts +2 -0
- package/dist/types/Input.d.ts +16 -0
- package/dist/types/Input.d.ts.map +1 -0
- package/dist/types/InputPassword.d.ts +2 -0
- package/dist/types/OTPElement.d.ts +30 -0
- package/dist/types/OTPElement.d.ts.map +1 -0
- package/dist/types/OTPInput.d.ts +3 -0
- package/dist/types/SearchInput.d.ts +1 -0
- package/dist/types/components/Badge/index.d.ts +2 -2
- package/dist/types/components/Breadcrumb/breadcrumb.content.d.ts +3 -3
- package/dist/types/components/Breadcrumb/index.d.ts +2 -2
- package/dist/types/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/types/components/Browser/Browser.content.d.ts +11 -11
- package/dist/types/components/Button/Button.d.ts +10 -18
- package/dist/types/components/Button/Button.d.ts.map +1 -1
- package/dist/types/components/Button/index.d.ts +2 -2
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts +5 -5
- package/dist/types/components/CollapsibleTable/CollapsibleTable.d.ts.map +1 -1
- package/dist/types/components/Command/index.d.ts +13 -13
- package/dist/types/components/Container/index.d.ts +9 -9
- package/dist/types/components/Container/index.d.ts.map +1 -1
- package/dist/types/components/CopyToClipboard/index.d.ts +7 -3
- package/dist/types/components/CopyToClipboard/index.d.ts.map +1 -1
- package/dist/types/components/DictionaryEditor/NodeWrapper/NestedObjectWrapper.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +25 -25
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts +9 -9
- package/dist/types/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.content.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +33 -33
- package/dist/types/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +25 -25
- package/dist/types/components/DictionaryFieldEditor/KeyPathBreadcrumb.d.ts.map +1 -1
- package/dist/types/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +25 -25
- package/dist/types/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +33 -33
- package/dist/types/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts +9 -9
- package/dist/types/components/DictionaryFieldEditor/VersionSwitcherDropDown/versionSwitcherDropDown.content.d.ts +7 -7
- package/dist/types/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +5 -5
- package/dist/types/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +31 -31
- package/dist/types/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
- package/dist/types/components/ExpandCollapse/expandCollapse.content.d.ts +3 -3
- package/dist/types/components/Form/Form.d.ts +4 -0
- package/dist/types/components/Form/Form.d.ts.map +1 -1
- package/dist/types/components/Form/FormBase.d.ts +2 -2
- package/dist/types/components/Form/FormBase.d.ts.map +1 -1
- package/dist/types/components/Form/FormField.d.ts +2 -2
- package/dist/types/components/Form/FormField.d.ts.map +1 -1
- package/dist/types/components/Form/FormItem.d.ts +2 -2
- package/dist/types/components/Form/FormItem.d.ts.map +1 -1
- package/dist/types/components/Form/elements/AutoSizeTextAreaElement.d.ts +2 -2
- package/dist/types/components/Form/elements/AutoSizeTextAreaElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/EditableFieldInputElement.d.ts +2 -2
- package/dist/types/components/Form/elements/EditableFieldInputElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/FormElement.d.ts +2 -2
- package/dist/types/components/Form/elements/MultiselectElement.d.ts +2 -2
- package/dist/types/components/Form/elements/MultiselectElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/OTPElement.d.ts +30 -0
- package/dist/types/components/Form/elements/OTPElement.d.ts.map +1 -0
- package/dist/types/components/Form/elements/SearchInputElement.d.ts +13 -0
- package/dist/types/components/Form/elements/SearchInputElement.d.ts.map +1 -0
- package/dist/types/components/Form/elements/SelectElement.d.ts +2 -2
- package/dist/types/components/Form/elements/SelectElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/SwitchSelectorElement.d.ts +2 -2
- package/dist/types/components/Form/elements/SwitchSelectorElement.d.ts.map +1 -1
- package/dist/types/components/Form/elements/index.d.ts +3 -1
- package/dist/types/components/HideShow/index.d.ts.map +1 -1
- package/dist/types/components/IDE/FileTree.d.ts.map +1 -1
- package/dist/types/components/IDE/code.content.d.ts +5 -5
- package/dist/types/components/IDE/code.content.d.ts.map +1 -1
- package/dist/types/components/IDE/copyCode.content.d.ts +5 -5
- package/dist/types/components/IDE/copyCode.content.d.ts.map +1 -1
- package/dist/types/components/Input/Checkbox.d.ts +5 -5
- package/dist/types/components/Input/Checkbox.d.ts.map +1 -1
- package/dist/types/components/Input/Input.d.ts +3 -3
- package/dist/types/components/Input/Input.d.ts.map +1 -1
- package/dist/types/components/Input/OTPInput/Input.d.ts +57 -0
- package/dist/types/components/Input/OTPInput/Input.d.ts.map +1 -0
- package/dist/types/components/Input/OTPInput/index.d.ts +78 -0
- package/dist/types/components/Input/OTPInput/index.d.ts.map +1 -0
- package/dist/types/components/Input/OTPInput.d.ts +78 -0
- package/dist/types/components/Input/OTPInput.d.ts.map +1 -0
- package/dist/types/components/Input/SearchInput.d.ts +2 -2
- package/dist/types/components/Input/index.d.ts +2 -1
- package/dist/types/components/Link/Link.d.ts +4 -4
- package/dist/types/components/Loader/index.content.d.ts +3 -3
- package/dist/types/components/Loader/spinner.d.ts +2 -2
- package/dist/types/components/LocaleSwitcherContentDropDown/localeSwitcher.content.d.ts +17 -17
- package/dist/types/components/LocaleSwitcherDropDown/localeSwitcher.content.d.ts +13 -13
- package/dist/types/components/MaxWidthSmoother/index.d.ts +2 -2
- package/dist/types/components/MaxWidthSmoother/index.d.ts.map +1 -1
- package/dist/types/components/Modal/Modal.d.ts.map +1 -1
- package/dist/types/components/Navbar/Burger.d.ts +2 -2
- package/dist/types/components/Navbar/Burger.d.ts.map +1 -1
- package/dist/types/components/Navbar/DesktopNavbar.d.ts +2 -2
- package/dist/types/components/Navbar/DesktopNavbar.d.ts.map +1 -1
- package/dist/types/components/Navbar/MobileNavbar.d.ts +2 -2
- package/dist/types/components/Navbar/MobileNavbar.d.ts.map +1 -1
- package/dist/types/components/Navbar/index.d.ts +2 -2
- package/dist/types/components/Navbar/index.d.ts.map +1 -1
- package/dist/types/components/Pagination/Pagination.d.ts +4 -4
- package/dist/types/components/Pagination/pagination.content.d.ts +11 -11
- package/dist/types/components/Popover/static.d.ts +3 -3
- package/dist/types/components/RightDrawer/useRightDrawerStore.d.ts +2 -2
- package/dist/types/components/Select/Multiselect.d.ts.map +1 -1
- package/dist/types/components/Select/Select.d.ts +3 -3
- package/dist/types/components/Select/Select.d.ts.map +1 -1
- package/dist/types/components/SocialNetworks/index.d.ts +2 -2
- package/dist/types/components/SocialNetworks/index.d.ts.map +1 -1
- package/dist/types/components/SwitchSelector/index.d.ts +10 -8
- package/dist/types/components/SwitchSelector/index.d.ts.map +1 -1
- package/dist/types/components/Tab/Tab.d.ts +5 -5
- package/dist/types/components/Tab/Tab.d.ts.map +1 -1
- package/dist/types/components/Tab/TabContext.d.ts +2 -2
- package/dist/types/components/TabSelector/TabSelector.d.ts +5 -5
- package/dist/types/components/TabSelector/TabSelector.d.ts.map +1 -1
- package/dist/types/components/Table/table.content.d.ts +3 -3
- package/dist/types/components/Table/table.content.d.ts.map +1 -1
- package/dist/types/components/Tag/index.d.ts +5 -5
- package/dist/types/components/Toaster/Toast.d.ts +2 -2
- package/dist/types/components/Toaster/Toaster.d.ts +2 -2
- package/dist/types/components/index.d.ts +4 -3
- package/dist/types/hooks/index.d.ts +5 -4
- package/dist/types/hooks/reactQuery.d.ts +1258 -65
- package/dist/types/hooks/reactQuery.d.ts.map +1 -1
- package/dist/types/hooks/useAuth/index.d.ts +2 -2
- package/dist/types/hooks/useAuth/useOAuth2.d.ts +2 -1
- package/dist/types/hooks/useAuth/useOAuth2.d.ts.map +1 -1
- package/dist/types/hooks/useAuth/useSession.d.ts +9 -4
- package/dist/types/hooks/useAuth/useSession.d.ts.map +1 -1
- package/dist/types/hooks/useDevice.d.ts +7 -1
- package/dist/types/hooks/useDevice.d.ts.map +1 -1
- package/dist/types/hooks/useItemSelector.d.ts +8 -1
- package/dist/types/hooks/useItemSelector.d.ts.map +1 -1
- package/dist/types/hooks/useScrollBlockage/useScrollBlockageStore.d.ts +2 -2
- package/dist/types/hooks/useUser/index.d.ts +18 -1
- package/dist/types/hooks/useUser/index.d.ts.map +1 -1
- package/dist/types/index.d.ts +5 -0
- package/dist/types/libs/auth.d.ts +3375 -2
- package/dist/types/libs/auth.d.ts.map +1 -1
- package/package.json +51 -45
- package/tailwind.css +55 -34
- package/dist/esm/components/Popover/index.mjs.map +0 -1
- package/dist/esm/utils/camelCase.mjs +0 -12
- package/dist/esm/utils/camelCase.mjs.map +0 -1
- package/dist/types/components/Popover/index.d.ts.map +0 -1
- package/dist/types/utils/camelCase.d.ts +0 -6
- package/dist/types/utils/camelCase.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Label: FC<LabelProps>"],"sources":["../../../../src/components/Label/index.tsx"],"sourcesContent":["import type { FC, LabelHTMLAttributes } from 'react';\nimport { cn } from '../../utils/cn';\n\n/**\n * Props for the Label component\n */\nexport interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {\n /**\n * The ID of the form control this label is associated with.\n * This creates the accessible relationship between the label and its control.\n * @example \"email-input\"\n * @example \"password-field\"\n */\n htmlFor?: string;\n\n /**\n * Whether the associated form control is required.\n * Adds visual indicator and updates ARIA attributes.\n * @default false\n */\n required?: boolean;\n\n /**\n * Whether the associated form control is disabled.\n * Updates styling to indicate disabled state.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Additional CSS classes for custom styling\n * @example \"text-red-600 font-bold\"\n */\n className?: string;\n}\n\n/**\n * Label Component\n *\n * A form label component that provides accessible labeling for form controls.\n * Establishes proper relationships between labels and their associated form elements\n * with visual indicators for required and disabled states.\n *\n * @example\n * ```tsx\n * // Basic usage\n * <Label htmlFor=\"email\">Email Address</Label>\n * <input id=\"email\" type=\"email\" />\n *\n * // Required field\n * <Label htmlFor=\"password\" required>Password</Label>\n * <input id=\"password\" type=\"password\" required />\n *\n * // Disabled field\n * <Label htmlFor=\"disabled-field\" disabled>Disabled Field</Label>\n * <input id=\"disabled-field\" type=\"text\" disabled />\n *\n * // With custom styling\n * <Label htmlFor=\"custom\" className=\"text-blue-600 font-semibold\">\n * Custom Styled Label\n * </Label>\n * ```\n *\n * @component\n * @accessibility\n * - Uses semantic HTML <label> element\n * - Properly associates with form controls via htmlFor/id relationship\n * - Supports click-to-focus behavior automatically\n * - Visual indicators for required and disabled states\n * - Screen reader compatible with proper ARIA relationships\n */\nexport const Label: FC<LabelProps> = ({\n htmlFor,\n required = false,\n disabled = false,\n className,\n children,\n ...props\n}) => (\n <label\n className={cn(\n 'select-none font-medium text-sm leading-none',\n 'peer-disabled:cursor-not-allowed peer-disabled:opacity-70',\n disabled && 'cursor-not-allowed text-muted-foreground opacity-70',\n className\n )}\n htmlFor={htmlFor}\n {...props}\n >\n {children}\n {required && (\n <span\n className=\"ml-1 text-destructive\"\n aria-label=\"required\"\n title=\"This field is required\"\n >\n *\n </span>\n )}\n </label>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,MAAaA,SAAyB,EACpC,SACA,WAAW,OACX,WAAW,OACX,WACA,
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Label: FC<LabelProps>"],"sources":["../../../../src/components/Label/index.tsx"],"sourcesContent":["import type { FC, LabelHTMLAttributes } from 'react';\nimport { cn } from '../../utils/cn';\n\n/**\n * Props for the Label component\n */\nexport interface LabelProps extends LabelHTMLAttributes<HTMLLabelElement> {\n /**\n * The ID of the form control this label is associated with.\n * This creates the accessible relationship between the label and its control.\n * @example \"email-input\"\n * @example \"password-field\"\n */\n htmlFor?: string;\n\n /**\n * Whether the associated form control is required.\n * Adds visual indicator and updates ARIA attributes.\n * @default false\n */\n required?: boolean;\n\n /**\n * Whether the associated form control is disabled.\n * Updates styling to indicate disabled state.\n * @default false\n */\n disabled?: boolean;\n\n /**\n * Additional CSS classes for custom styling\n * @example \"text-red-600 font-bold\"\n */\n className?: string;\n}\n\n/**\n * Label Component\n *\n * A form label component that provides accessible labeling for form controls.\n * Establishes proper relationships between labels and their associated form elements\n * with visual indicators for required and disabled states.\n *\n * @example\n * ```tsx\n * // Basic usage\n * <Label htmlFor=\"email\">Email Address</Label>\n * <input id=\"email\" type=\"email\" />\n *\n * // Required field\n * <Label htmlFor=\"password\" required>Password</Label>\n * <input id=\"password\" type=\"password\" required />\n *\n * // Disabled field\n * <Label htmlFor=\"disabled-field\" disabled>Disabled Field</Label>\n * <input id=\"disabled-field\" type=\"text\" disabled />\n *\n * // With custom styling\n * <Label htmlFor=\"custom\" className=\"text-blue-600 font-semibold\">\n * Custom Styled Label\n * </Label>\n * ```\n *\n * @component\n * @accessibility\n * - Uses semantic HTML <label> element\n * - Properly associates with form controls via htmlFor/id relationship\n * - Supports click-to-focus behavior automatically\n * - Visual indicators for required and disabled states\n * - Screen reader compatible with proper ARIA relationships\n */\nexport const Label: FC<LabelProps> = ({\n htmlFor,\n required = false,\n disabled = false,\n className,\n children,\n ...props\n}) => (\n <label\n className={cn(\n 'select-none font-medium text-sm leading-none',\n 'peer-disabled:cursor-not-allowed peer-disabled:opacity-70',\n disabled && 'cursor-not-allowed text-muted-foreground opacity-70',\n className\n )}\n htmlFor={htmlFor}\n {...props}\n >\n {children}\n {required && (\n <span\n className=\"ml-1 text-destructive\"\n aria-label=\"required\"\n title=\"This field is required\"\n >\n *\n </span>\n )}\n </label>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAuEA,MAAaA,SAAyB,EACpC,SACA,WAAW,OACX,WAAW,OACX,WACA,UACA,GAAG,YAEH,qBAAC;CACC,WAAW,GACT,gDACA,6DACA,YAAY,uDACZ,UACD;CACQ;CACT,GAAI;YAEH,UACA,YACC,oBAAC;EACC,WAAU;EACV,cAAW;EACX,OAAM;YACP;GAEM;EAEH"}
|
|
@@ -213,7 +213,7 @@ const checkIsExternalLink = ({ href, isExternalLink: isExternalLinkProp }) => {
|
|
|
213
213
|
* @returns Accessible and internationalized link component
|
|
214
214
|
*/
|
|
215
215
|
const Link = (props) => {
|
|
216
|
-
const { variant = LinkVariant.DEFAULT, color = LinkColor.PRIMARY, children, label, className, isActive, underlined, locale, isExternalLink: isExternalLinkProp, isPageSection: isPageSectionProp, href: hrefProp
|
|
216
|
+
const { variant = LinkVariant.DEFAULT, color = LinkColor.PRIMARY, children, label, className, isActive, underlined, locale, isExternalLink: isExternalLinkProp, isPageSection: isPageSectionProp, href: hrefProp, ...otherProps } = props;
|
|
217
217
|
const isExternalLink = isExternalLinkProp ?? checkIsExternalLink(props);
|
|
218
218
|
const isPageSection = isPageSectionProp ?? hrefProp?.startsWith("#") ?? false;
|
|
219
219
|
const isChildrenString = typeof children === "string";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Link.mjs","names":["Link: FC<LinkProps>"],"sources":["../../../../src/components/Link/Link.tsx"],"sourcesContent":["import { getLocalizedUrl } from '@intlayer/core';\nimport type { LocalesValues } from '@intlayer/types';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { ExternalLink, MoveRight } from 'lucide-react';\nimport type { AnchorHTMLAttributes, DetailedHTMLProps, FC } from 'react';\nimport { cn } from '../../utils/cn';\n\n/**\n * Visual style variants for Link component\n *\n * @enum {string}\n */\nexport enum LinkVariant {\n /** Default underlined link with hover effects */\n DEFAULT = 'default',\n /** Link without visible underline or hover effects */\n INVISIBLE_LINK = 'invisible-link',\n /** Button-styled link with solid background */\n BUTTON = 'button',\n /** Button-styled link with outlined border */\n BUTTON_OUTLINED = 'button-outlined',\n /** Link with subtle hover background effect */\n HOVERABLE = 'hoverable',\n}\n\n/**\n * Color theme variants for Link component\n *\n * @enum {string}\n */\nexport enum LinkColor {\n /** Primary brand color */\n PRIMARY = 'primary',\n /** Secondary brand color */\n SECONDARY = 'secondary',\n /** Destructive/danger color for critical actions */\n DESTRUCTIVE = 'destructive',\n /** Neutral/muted color for less prominent links */\n NEUTRAL = 'neutral',\n /** Light color for dark backgrounds */\n LIGHT = 'light',\n /** Dark color for light backgrounds */\n DARK = 'dark',\n /** Default text color */\n TEXT = 'text',\n /** Inverse text color for opposite backgrounds */\n TEXT_INVERSE = 'text-inverse',\n /** Error/red color for error states */\n ERROR = 'error',\n /** Success/green color for positive actions */\n SUCCESS = 'success',\n /** Custom color - no default styling applied */\n CUSTOM = 'custom',\n}\n\n/**\n * Underline style options for Link component\n *\n * @enum {string}\n */\nexport enum LinkUnderlined {\n /** Default underline behavior based on variant */\n DEFAULT = 'default',\n /** Always show underline */\n TRUE = 'true',\n /** Never show underline */\n FALSE = 'false',\n}\n\n/**\n * Class variance authority configuration for Link component styling\n * Defines the visual appearance based on variant, color, and underline options\n */\nexport const linkVariants = cva(\n 'gap-3 transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50',\n {\n variants: {\n variant: {\n [`${LinkVariant.DEFAULT}`]:\n 'h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0 hover:underline',\n [`${LinkVariant.INVISIBLE_LINK}`]:\n 'h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0',\n [`${LinkVariant.BUTTON}`]:\n 'flex min-h-8 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-current px-6 font-medium text-sm transition *:text-text-opposite focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 max-md:py-2',\n [`${LinkVariant.BUTTON_OUTLINED}`]:\n 'flex min-h-8 items-center justify-center gap-2 whitespace-nowrap rounded-lg border-[1.5px] px-6 font-medium text-sm transition hover:bg-current/30 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 max-md:py-2',\n [`${LinkVariant.HOVERABLE}`]:\n 'block rounded-lg border-none bg-current/0 transition hover:bg-current/20 aria-[current]:bg-current/5',\n },\n color: {\n [`${LinkColor.PRIMARY}`]: 'text-primary',\n [`${LinkColor.SECONDARY}`]: 'text-secondary',\n [`${LinkColor.DESTRUCTIVE}`]: 'text-destructive',\n [`${LinkColor.NEUTRAL}`]: 'text-neutral',\n [`${LinkColor.LIGHT}`]: 'text-white',\n [`${LinkColor.DARK}`]: 'text-neutral-800',\n [`${LinkColor.TEXT}`]: 'text-text',\n [`${LinkColor.TEXT_INVERSE}`]: 'text-text-opposite',\n [`${LinkColor.ERROR}`]: 'text-error',\n [`${LinkColor.SUCCESS}`]: 'text-success',\n [`${LinkColor.CUSTOM}`]: '',\n },\n underlined: {\n [LinkUnderlined.DEFAULT]: '',\n [LinkUnderlined.TRUE]: 'underline',\n [LinkUnderlined.FALSE]: 'no-underline',\n },\n },\n\n defaultVariants: {\n variant: LinkVariant.DEFAULT,\n color: LinkColor.PRIMARY,\n underlined: LinkUnderlined.DEFAULT,\n },\n }\n);\n\n/**\n * Props interface for the Link component\n *\n * @interface LinkProps\n * @extends {DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>}\n * @extends {VariantProps<typeof linkVariants>}\n */\nexport type LinkProps = DetailedHTMLProps<\n AnchorHTMLAttributes<HTMLAnchorElement>,\n HTMLAnchorElement\n> &\n VariantProps<typeof linkVariants> & {\n /**\n * Accessible label for screen readers (required)\n * Provides context about what the link does or where it leads\n * @example \"Navigate to home page\"\n */\n label: string;\n\n /**\n * Whether this link opens in a new tab/window\n * When true, adds target=\"_blank\" and security attributes\n * Auto-detected for URLs starting with http/https when undefined\n * @default undefined (auto-detect based on href)\n */\n isExternalLink?: boolean;\n\n /**\n * If a link is a page section as '#id'\n * @default false\n */\n isPageSection?: boolean;\n\n /**\n * Whether this link represents the current page/active state\n * Adds aria-current=\"page\" for accessibility\n * @default false\n */\n isActive?: boolean;\n\n /**\n * Locale for internationalized URLs\n * When provided, URLs are automatically localized using Intlayer\n * @example 'fr', 'es', 'en'\n */\n locale?: LocalesValues;\n };\n\n/**\n * Utility function to determine if a link should be treated as external\n *\n * @param props - Link component props containing href and isExternalLink\n * @returns {boolean} True if the link should open externally\n *\n * @example\n * ```tsx\n * checkIsExternalLink({ href: 'https://example.com' }) // true\n * checkIsExternalLink({ href: '/internal-page' }) // false\n * checkIsExternalLink({ href: '/page', isExternalLink: true }) // true\n * ```\n */\nexport const checkIsExternalLink = ({\n href,\n isExternalLink: isExternalLinkProp,\n}: LinkProps): boolean => {\n const isValidHref = typeof href === 'string' && href.trim() !== '';\n const isExternalLink =\n isExternalLinkProp === true ||\n (typeof isExternalLinkProp === 'undefined' &&\n isValidHref &&\n /^https?:\\/\\//.test(href));\n\n return isExternalLink;\n};\n\n/**\n * Link Component\n *\n * A versatile link component that handles both internal and external navigation\n * with comprehensive internationalization support and multiple visual variants.\n *\n * ## Key Features\n * - **Multiple Variants**: Default, invisible, button, outlined button, and hoverable styles\n * - **Color Themes**: Comprehensive color palette for different contexts and meanings\n * - **External Link Detection**: Automatic detection and handling of external URLs\n * - **Internationalization**: Built-in support for localized URLs via Intlayer\n * - **Security**: Automatic security attributes for external links (noopener, noreferrer)\n * - **Accessibility**: Full ARIA support with proper labels and current page indication\n * - **Visual Feedback**: Hover effects, underline options, and active states\n *\n * ## Use Cases\n * - Navigation within applications (internal links)\n * - External links to other websites with security measures\n * - Button-styled links for call-to-action scenarios\n * - Subtle hoverable links for navigation menus\n * - Multi-language website navigation with automatic URL localization\n *\n * ## Security Features\n * External links automatically receive security attributes:\n * - `rel=\"noopener noreferrer nofollow\"` - Prevents security vulnerabilities\n * - `target=\"_blank\"` - Opens in new tab/window\n * - External link icon indication for user clarity\n *\n * ## Internationalization\n * When used with Intlayer, the component automatically:\n * - Localizes internal URLs based on the current or specified locale\n * - Sets appropriate `hrefLang` attributes for SEO\n * - Maintains proper URL structure for multi-language sites\n *\n * @component\n * @example\n * ```tsx\n * // Basic internal link\n * <Link href=\"/about\" label=\"Go to about page\">\n * About Us\n * </Link>\n *\n * // External link with auto-detection\n * <Link href=\"https://example.com\" label=\"Visit external site\">\n * External Site\n * </Link>\n *\n * // Button-styled link\n * <Link\n * href=\"/signup\"\n * variant={LinkVariant.BUTTON}\n * color={LinkColor.PRIMARY}\n * label=\"Sign up for account\"\n * >\n * Get Started\n * </Link>\n *\n * // Localized link\n * <Link\n * href=\"/products\"\n * locale=\"fr\"\n * label=\"Voir les produits\"\n * >\n * Produits\n * </Link>\n *\n * // Active navigation link\n * <Link\n * href=\"/dashboard\"\n * isActive={true}\n * variant={LinkVariant.HOVERABLE}\n * label=\"Current page: Dashboard\"\n * >\n * Dashboard\n * </Link>\n * ```\n *\n * @param props - Link component props\n * @param props.children - Content to display inside the link\n * @param props.href - URL or path to navigate to\n * @param props.label - Accessible label describing the link's purpose\n * @param props.variant - Visual style variant\n * @param props.color - Color theme for the link\n * @param props.underlined - Underline visibility option\n * @param props.isExternalLink - Override external link detection\n * @param props.isActive - Whether this link represents the current page\n * @param props.locale - Locale for URL internationalization\n * @param props.className - Additional CSS classes\n * @returns Accessible and internationalized link component\n */\nexport const Link: FC<LinkProps> = (props) => {\n const {\n variant = LinkVariant.DEFAULT,\n color = LinkColor.PRIMARY,\n children,\n label,\n className,\n isActive,\n underlined,\n locale,\n isExternalLink: isExternalLinkProp,\n isPageSection: isPageSectionProp,\n href: hrefProp,\n ...otherProps\n } = props;\n\n const isExternalLink = isExternalLinkProp ?? checkIsExternalLink(props);\n const isPageSection = isPageSectionProp ?? hrefProp?.startsWith('#') ?? false;\n\n const isChildrenString = typeof children === 'string';\n\n const rel = isExternalLink ? 'noopener noreferrer nofollow' : undefined;\n\n const target = isExternalLink ? '_blank' : '_self';\n\n const href =\n locale && hrefProp && !isExternalLink && !isPageSection\n ? getLocalizedUrl(hrefProp, locale)\n : hrefProp;\n\n return (\n <a\n href={href}\n aria-label={label}\n rel={rel}\n target={target}\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n linkVariants({\n variant,\n color,\n underlined,\n className,\n })\n )}\n {...otherProps}\n >\n {variant === 'button' ? <span>{children}</span> : children}\n {isExternalLink && isChildrenString && (\n <ExternalLink className=\"ml-2 inline-block size-4\" />\n )}\n {isPageSection && <MoveRight className=\"ml-2 inline-block size-4\" />}\n </a>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAYA,IAAY,sDAAL;;AAEL;;AAEA;;AAEA;;AAEA;;AAEA;;;;;;;;AAQF,IAAY,kDAAL;;AAEL;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;;;;;;;AAQF,IAAY,4DAAL;;AAEL;;AAEA;;AAEA;;;;;;;AAOF,MAAa,eAAe,IAC1B,kGACA;CACE,UAAU;EACR,SAAS;IACN,GAAG,YAAY,YACd;IACD,GAAG,YAAY,mBACd;IACD,GAAG,YAAY,WACd;IACD,GAAG,YAAY,oBACd;IACD,GAAG,YAAY,cACd;GACH;EACD,OAAO;IACJ,GAAG,UAAU,YAAY;IACzB,GAAG,UAAU,cAAc;IAC3B,GAAG,UAAU,gBAAgB;IAC7B,GAAG,UAAU,YAAY;IACzB,GAAG,UAAU,UAAU;IACvB,GAAG,UAAU,SAAS;IACtB,GAAG,UAAU,SAAS;IACtB,GAAG,UAAU,iBAAiB;IAC9B,GAAG,UAAU,UAAU;IACvB,GAAG,UAAU,YAAY;IACzB,GAAG,UAAU,WAAW;GAC1B;EACD,YAAY;IACT,eAAe,UAAU;IACzB,eAAe,OAAO;IACtB,eAAe,QAAQ;GACzB;EACF;CAED,iBAAiB;EACf,SAAS,YAAY;EACrB,OAAO,UAAU;EACjB,YAAY,eAAe;EAC5B;CACF,CACF;;;;;;;;;;;;;;AA+DD,MAAa,uBAAuB,EAClC,MACA,gBAAgB,yBACQ;CACxB,MAAM,cAAc,OAAO,SAAS,YAAY,KAAK,MAAM,KAAK;AAOhE,QALE,uBAAuB,QACtB,OAAO,uBAAuB,eAC7B,eACA,eAAe,KAAK,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+F/B,MAAaA,QAAuB,UAAU;CAC5C,MAAM,EACJ,UAAU,YAAY,SACtB,QAAQ,UAAU,SAClB,UACA,OACA,WACA,UACA,YACA,QACA,gBAAgB,oBAChB,eAAe,mBACf,MAAM,SACN,GAAG,eACD;CAEJ,MAAM,iBAAiB,sBAAsB,oBAAoB,MAAM;CACvE,MAAM,gBAAgB,qBAAqB,UAAU,WAAW,IAAI,IAAI;CAExE,MAAM,mBAAmB,OAAO,aAAa;CAE7C,MAAM,MAAM,iBAAiB,iCAAiC;CAE9D,MAAM,SAAS,iBAAiB,WAAW;AAO3C,QACE,qBAAC;EACC,MANF,UAAU,YAAY,CAAC,kBAAkB,CAAC,gBACtC,gBAAgB,UAAU,OAAO,GACjC;EAKF,cAAY;EACP;EACG;EACR,gBAAc,WAAW,SAAS;EAClC,WAAW,GACT,aAAa;GACX;GACA;GACA;GACA;GACD,CAAC,CACH;EACD,GAAI;;GAEH,YAAY,WAAW,oBAAC,UAAM,WAAgB,GAAG;GACjD,kBAAkB,oBACjB,oBAAC,gBAAa,WAAU,6BAA6B;GAEtD,iBAAiB,oBAAC,aAAU,WAAU,6BAA6B;;GAClE"}
|
|
1
|
+
{"version":3,"file":"Link.mjs","names":["Link: FC<LinkProps>"],"sources":["../../../../src/components/Link/Link.tsx"],"sourcesContent":["import { getLocalizedUrl } from '@intlayer/core';\nimport type { LocalesValues } from '@intlayer/types';\nimport { cva, type VariantProps } from 'class-variance-authority';\nimport { ExternalLink, MoveRight } from 'lucide-react';\nimport type { AnchorHTMLAttributes, DetailedHTMLProps, FC } from 'react';\nimport { cn } from '../../utils/cn';\n\n/**\n * Visual style variants for Link component\n *\n * @enum {string}\n */\nexport enum LinkVariant {\n /** Default underlined link with hover effects */\n DEFAULT = 'default',\n /** Link without visible underline or hover effects */\n INVISIBLE_LINK = 'invisible-link',\n /** Button-styled link with solid background */\n BUTTON = 'button',\n /** Button-styled link with outlined border */\n BUTTON_OUTLINED = 'button-outlined',\n /** Link with subtle hover background effect */\n HOVERABLE = 'hoverable',\n}\n\n/**\n * Color theme variants for Link component\n *\n * @enum {string}\n */\nexport enum LinkColor {\n /** Primary brand color */\n PRIMARY = 'primary',\n /** Secondary brand color */\n SECONDARY = 'secondary',\n /** Destructive/danger color for critical actions */\n DESTRUCTIVE = 'destructive',\n /** Neutral/muted color for less prominent links */\n NEUTRAL = 'neutral',\n /** Light color for dark backgrounds */\n LIGHT = 'light',\n /** Dark color for light backgrounds */\n DARK = 'dark',\n /** Default text color */\n TEXT = 'text',\n /** Inverse text color for opposite backgrounds */\n TEXT_INVERSE = 'text-inverse',\n /** Error/red color for error states */\n ERROR = 'error',\n /** Success/green color for positive actions */\n SUCCESS = 'success',\n /** Custom color - no default styling applied */\n CUSTOM = 'custom',\n}\n\n/**\n * Underline style options for Link component\n *\n * @enum {string}\n */\nexport enum LinkUnderlined {\n /** Default underline behavior based on variant */\n DEFAULT = 'default',\n /** Always show underline */\n TRUE = 'true',\n /** Never show underline */\n FALSE = 'false',\n}\n\n/**\n * Class variance authority configuration for Link component styling\n * Defines the visual appearance based on variant, color, and underline options\n */\nexport const linkVariants = cva(\n 'gap-3 transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50',\n {\n variants: {\n variant: {\n [`${LinkVariant.DEFAULT}`]:\n 'h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0 hover:underline',\n [`${LinkVariant.INVISIBLE_LINK}`]:\n 'h-auto justify-start border-inherit bg-current/0 px-1 underline-offset-4 hover:bg-current/0',\n [`${LinkVariant.BUTTON}`]:\n 'flex min-h-8 items-center justify-center gap-2 whitespace-nowrap rounded-lg bg-current px-6 font-medium text-sm transition *:text-text-opposite focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 max-md:py-2',\n [`${LinkVariant.BUTTON_OUTLINED}`]:\n 'flex min-h-8 items-center justify-center gap-2 whitespace-nowrap rounded-lg border-[1.5px] px-6 font-medium text-sm transition hover:bg-current/30 focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50 max-md:py-2',\n [`${LinkVariant.HOVERABLE}`]:\n 'block rounded-lg border-none bg-current/0 transition hover:bg-current/20 aria-[current]:bg-current/5',\n },\n color: {\n [`${LinkColor.PRIMARY}`]: 'text-primary',\n [`${LinkColor.SECONDARY}`]: 'text-secondary',\n [`${LinkColor.DESTRUCTIVE}`]: 'text-destructive',\n [`${LinkColor.NEUTRAL}`]: 'text-neutral',\n [`${LinkColor.LIGHT}`]: 'text-white',\n [`${LinkColor.DARK}`]: 'text-neutral-800',\n [`${LinkColor.TEXT}`]: 'text-text',\n [`${LinkColor.TEXT_INVERSE}`]: 'text-text-opposite',\n [`${LinkColor.ERROR}`]: 'text-error',\n [`${LinkColor.SUCCESS}`]: 'text-success',\n [`${LinkColor.CUSTOM}`]: '',\n },\n underlined: {\n [LinkUnderlined.DEFAULT]: '',\n [LinkUnderlined.TRUE]: 'underline',\n [LinkUnderlined.FALSE]: 'no-underline',\n },\n },\n\n defaultVariants: {\n variant: LinkVariant.DEFAULT,\n color: LinkColor.PRIMARY,\n underlined: LinkUnderlined.DEFAULT,\n },\n }\n);\n\n/**\n * Props interface for the Link component\n *\n * @interface LinkProps\n * @extends {DetailedHTMLProps<AnchorHTMLAttributes<HTMLAnchorElement>, HTMLAnchorElement>}\n * @extends {VariantProps<typeof linkVariants>}\n */\nexport type LinkProps = DetailedHTMLProps<\n AnchorHTMLAttributes<HTMLAnchorElement>,\n HTMLAnchorElement\n> &\n VariantProps<typeof linkVariants> & {\n /**\n * Accessible label for screen readers (required)\n * Provides context about what the link does or where it leads\n * @example \"Navigate to home page\"\n */\n label: string;\n\n /**\n * Whether this link opens in a new tab/window\n * When true, adds target=\"_blank\" and security attributes\n * Auto-detected for URLs starting with http/https when undefined\n * @default undefined (auto-detect based on href)\n */\n isExternalLink?: boolean;\n\n /**\n * If a link is a page section as '#id'\n * @default false\n */\n isPageSection?: boolean;\n\n /**\n * Whether this link represents the current page/active state\n * Adds aria-current=\"page\" for accessibility\n * @default false\n */\n isActive?: boolean;\n\n /**\n * Locale for internationalized URLs\n * When provided, URLs are automatically localized using Intlayer\n * @example 'fr', 'es', 'en'\n */\n locale?: LocalesValues;\n };\n\n/**\n * Utility function to determine if a link should be treated as external\n *\n * @param props - Link component props containing href and isExternalLink\n * @returns {boolean} True if the link should open externally\n *\n * @example\n * ```tsx\n * checkIsExternalLink({ href: 'https://example.com' }) // true\n * checkIsExternalLink({ href: '/internal-page' }) // false\n * checkIsExternalLink({ href: '/page', isExternalLink: true }) // true\n * ```\n */\nexport const checkIsExternalLink = ({\n href,\n isExternalLink: isExternalLinkProp,\n}: LinkProps): boolean => {\n const isValidHref = typeof href === 'string' && href.trim() !== '';\n const isExternalLink =\n isExternalLinkProp === true ||\n (typeof isExternalLinkProp === 'undefined' &&\n isValidHref &&\n /^https?:\\/\\//.test(href));\n\n return isExternalLink;\n};\n\n/**\n * Link Component\n *\n * A versatile link component that handles both internal and external navigation\n * with comprehensive internationalization support and multiple visual variants.\n *\n * ## Key Features\n * - **Multiple Variants**: Default, invisible, button, outlined button, and hoverable styles\n * - **Color Themes**: Comprehensive color palette for different contexts and meanings\n * - **External Link Detection**: Automatic detection and handling of external URLs\n * - **Internationalization**: Built-in support for localized URLs via Intlayer\n * - **Security**: Automatic security attributes for external links (noopener, noreferrer)\n * - **Accessibility**: Full ARIA support with proper labels and current page indication\n * - **Visual Feedback**: Hover effects, underline options, and active states\n *\n * ## Use Cases\n * - Navigation within applications (internal links)\n * - External links to other websites with security measures\n * - Button-styled links for call-to-action scenarios\n * - Subtle hoverable links for navigation menus\n * - Multi-language website navigation with automatic URL localization\n *\n * ## Security Features\n * External links automatically receive security attributes:\n * - `rel=\"noopener noreferrer nofollow\"` - Prevents security vulnerabilities\n * - `target=\"_blank\"` - Opens in new tab/window\n * - External link icon indication for user clarity\n *\n * ## Internationalization\n * When used with Intlayer, the component automatically:\n * - Localizes internal URLs based on the current or specified locale\n * - Sets appropriate `hrefLang` attributes for SEO\n * - Maintains proper URL structure for multi-language sites\n *\n * @component\n * @example\n * ```tsx\n * // Basic internal link\n * <Link href=\"/about\" label=\"Go to about page\">\n * About Us\n * </Link>\n *\n * // External link with auto-detection\n * <Link href=\"https://example.com\" label=\"Visit external site\">\n * External Site\n * </Link>\n *\n * // Button-styled link\n * <Link\n * href=\"/signup\"\n * variant={LinkVariant.BUTTON}\n * color={LinkColor.PRIMARY}\n * label=\"Sign up for account\"\n * >\n * Get Started\n * </Link>\n *\n * // Localized link\n * <Link\n * href=\"/products\"\n * locale=\"fr\"\n * label=\"Voir les produits\"\n * >\n * Produits\n * </Link>\n *\n * // Active navigation link\n * <Link\n * href=\"/dashboard\"\n * isActive={true}\n * variant={LinkVariant.HOVERABLE}\n * label=\"Current page: Dashboard\"\n * >\n * Dashboard\n * </Link>\n * ```\n *\n * @param props - Link component props\n * @param props.children - Content to display inside the link\n * @param props.href - URL or path to navigate to\n * @param props.label - Accessible label describing the link's purpose\n * @param props.variant - Visual style variant\n * @param props.color - Color theme for the link\n * @param props.underlined - Underline visibility option\n * @param props.isExternalLink - Override external link detection\n * @param props.isActive - Whether this link represents the current page\n * @param props.locale - Locale for URL internationalization\n * @param props.className - Additional CSS classes\n * @returns Accessible and internationalized link component\n */\nexport const Link: FC<LinkProps> = (props) => {\n const {\n variant = LinkVariant.DEFAULT,\n color = LinkColor.PRIMARY,\n children,\n label,\n className,\n isActive,\n underlined,\n locale,\n isExternalLink: isExternalLinkProp,\n isPageSection: isPageSectionProp,\n href: hrefProp,\n ...otherProps\n } = props;\n\n const isExternalLink = isExternalLinkProp ?? checkIsExternalLink(props);\n const isPageSection = isPageSectionProp ?? hrefProp?.startsWith('#') ?? false;\n\n const isChildrenString = typeof children === 'string';\n\n const rel = isExternalLink ? 'noopener noreferrer nofollow' : undefined;\n\n const target = isExternalLink ? '_blank' : '_self';\n\n const href =\n locale && hrefProp && !isExternalLink && !isPageSection\n ? getLocalizedUrl(hrefProp, locale)\n : hrefProp;\n\n return (\n <a\n href={href}\n aria-label={label}\n rel={rel}\n target={target}\n aria-current={isActive ? 'page' : undefined}\n className={cn(\n linkVariants({\n variant,\n color,\n underlined,\n className,\n })\n )}\n {...otherProps}\n >\n {variant === 'button' ? <span>{children}</span> : children}\n {isExternalLink && isChildrenString && (\n <ExternalLink className=\"ml-2 inline-block size-4\" />\n )}\n {isPageSection && <MoveRight className=\"ml-2 inline-block size-4\" />}\n </a>\n );\n};\n"],"mappings":";;;;;;;;;;;;AAYA,IAAY,sDAAL;;AAEL;;AAEA;;AAEA;;AAEA;;AAEA;;;;;;;;AAQF,IAAY,kDAAL;;AAEL;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;AAEA;;;;;;;;AAQF,IAAY,4DAAL;;AAEL;;AAEA;;AAEA;;;;;;;AAOF,MAAa,eAAe,IAC1B,kGACA;CACE,UAAU;EACR,SAAS;IACN,GAAG,YAAY,YACd;IACD,GAAG,YAAY,mBACd;IACD,GAAG,YAAY,WACd;IACD,GAAG,YAAY,oBACd;IACD,GAAG,YAAY,cACd;GACH;EACD,OAAO;IACJ,GAAG,UAAU,YAAY;IACzB,GAAG,UAAU,cAAc;IAC3B,GAAG,UAAU,gBAAgB;IAC7B,GAAG,UAAU,YAAY;IACzB,GAAG,UAAU,UAAU;IACvB,GAAG,UAAU,SAAS;IACtB,GAAG,UAAU,SAAS;IACtB,GAAG,UAAU,iBAAiB;IAC9B,GAAG,UAAU,UAAU;IACvB,GAAG,UAAU,YAAY;IACzB,GAAG,UAAU,WAAW;GAC1B;EACD,YAAY;IACT,eAAe,UAAU;IACzB,eAAe,OAAO;IACtB,eAAe,QAAQ;GACzB;EACF;CAED,iBAAiB;EACf,SAAS,YAAY;EACrB,OAAO,UAAU;EACjB,YAAY,eAAe;EAC5B;CACF,CACF;;;;;;;;;;;;;;AA+DD,MAAa,uBAAuB,EAClC,MACA,gBAAgB,yBACQ;CACxB,MAAM,cAAc,OAAO,SAAS,YAAY,KAAK,MAAM,KAAK;AAOhE,QALE,uBAAuB,QACtB,OAAO,uBAAuB,eAC7B,eACA,eAAe,KAAK,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA+F/B,MAAaA,QAAuB,UAAU;CAC5C,MAAM,EACJ,UAAU,YAAY,SACtB,QAAQ,UAAU,SAClB,UACA,OACA,WACA,UACA,YACA,QACA,gBAAgB,oBAChB,eAAe,mBACf,MAAM,UACN,GAAG,eACD;CAEJ,MAAM,iBAAiB,sBAAsB,oBAAoB,MAAM;CACvE,MAAM,gBAAgB,qBAAqB,UAAU,WAAW,IAAI,IAAI;CAExE,MAAM,mBAAmB,OAAO,aAAa;CAE7C,MAAM,MAAM,iBAAiB,iCAAiC;CAE9D,MAAM,SAAS,iBAAiB,WAAW;AAO3C,QACE,qBAAC;EACC,MANF,UAAU,YAAY,CAAC,kBAAkB,CAAC,gBACtC,gBAAgB,UAAU,OAAO,GACjC;EAKF,cAAY;EACP;EACG;EACR,gBAAc,WAAW,SAAS;EAClC,WAAW,GACT,aAAa;GACX;GACA;GACA;GACA;GACD,CAAC,CACH;EACD,GAAI;;GAEH,YAAY,WAAW,oBAAC,UAAM,WAAgB,GAAG;GACjD,kBAAkB,oBACjB,oBAAC,gBAAa,WAAU,6BAA6B;GAEtD,iBAAiB,oBAAC,aAAU,WAAU,6BAA6B;;GAClE"}
|
|
@@ -90,7 +90,7 @@ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
|
90
90
|
*
|
|
91
91
|
* @returns A loading spinner when isLoading is true, otherwise renders children
|
|
92
92
|
*/
|
|
93
|
-
const Loader = ({ children, isLoading = true, keepChildren = false, className
|
|
93
|
+
const Loader = ({ children, isLoading = true, keepChildren = false, className, ...props }) => /* @__PURE__ */ jsx(Fragment, { children: isLoading && keepChildren ? /* @__PURE__ */ jsxs("div", {
|
|
94
94
|
className: "relative size-full",
|
|
95
95
|
children: [/* @__PURE__ */ jsx("div", {
|
|
96
96
|
className: cn("absolute top-0 left-0 flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center", className),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","names":["Loader: FC<LoaderProps>"],"sources":["../../../../src/components/Loader/index.tsx"],"sourcesContent":["import type { FC, HTMLAttributes } from 'react';\nimport { cn } from '../../utils/cn';\nimport { Spinner } from './spinner';\n\n/**\n * Props for the Loader component\n */\nexport type LoaderProps = HTMLAttributes<HTMLDivElement> & {\n /** Controls whether the loading spinner is displayed. Defaults to true when undefined */\n isLoading?: boolean;\n /** Controls whether the children are kept when loading is false. Defaults to false */\n keepChildren?: boolean;\n};\n\n/**\n * Loader Component\n *\n * A versatile loading component that can function as both a standalone loader\n * and a wrapper for content. When loading is true, displays an animated spinner.\n * When loading is false, renders the wrapped content.\n *\n * @component\n * @example\n * Standalone usage:\n * ```tsx\n * <Loader isLoading={true} />\n * ```\n *\n * @example\n * As a content wrapper:\n * ```tsx\n * <Loader isLoading={isDataLoading}>\n * <div>Your content here</div>\n * </Loader>\n * ```\n *\n * @example\n * Default behavior (loading = true):\n * ```tsx\n * <Loader />\n * ```\n *\n * @example\n * With custom styling:\n * ```tsx\n * <Loader\n * isLoading={true}\n * className=\"min-h-[200px] bg-gray-50\"\n * aria-label=\"Loading user data\"\n * />\n * ```\n *\n * @example\n * Conditional content loading:\n * ```tsx\n * <Loader isLoading={!data}>\n * {data && (\n * <div>\n * <h2>{data.title}</h2>\n * <p>{data.content}</p>\n * </div>\n * )}\n * </Loader>\n * ```\n *\n * Features:\n * - Dual-mode operation: standalone spinner or content wrapper\n * - Responsive design with flexible sizing\n * - Accessible with proper ARIA attributes and role\n * - Smooth animated spinner using SVG\n * - Customizable styling through className prop\n * - Supports all standard HTML div attributes\n * - Screen constraints (max-height/width) to prevent overflow\n * - Internationalization ready with aria-label support\n *\n * Accessibility:\n * - Uses role=\"status\" for screen reader announcements\n * - Includes descriptive aria-label for the loading state\n * - Maintains focus management when transitioning between states\n * - Supports custom aria-label through props for specific contexts\n * - Compatible with keyboard navigation patterns\n *\n * Performance:\n * - Lightweight SVG spinner with CSS animations\n * - Conditional rendering prevents unnecessary DOM updates\n * - Optimized for frequent loading state changes\n * - No external dependencies beyond internal utilities\n *\n * @param props - Component props extending HTML div attributes\n * @param props.children - Content to display when not loading\n * @param props.isLoading - Loading state control (defaults to true)\n * @param props.className - Additional CSS classes for the loader container\n * @param props.role - ARIA role (defaults to \"status\")\n * @param props.aria-label - Custom accessibility label\n * @param props.id - Unique identifier for the loader\n * @param props.style - Inline styles object\n * @param props.data-* - Data attributes for testing or tracking\n * @param props...rest - All other standard HTML div attributes\n *\n * @returns A loading spinner when isLoading is true, otherwise renders children\n */\nexport const Loader: FC<LoaderProps> = ({\n children,\n isLoading = true,\n keepChildren = false,\n className,\n ...props\n}) => (\n <>\n {isLoading && keepChildren ? (\n <div className=\"relative size-full\">\n <div\n className={cn(\n 'absolute top-0 left-0 flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center',\n className\n )}\n role=\"status\"\n aria-label=\"Animated icon, meaning that the website is processing\"\n {...props}\n >\n <Spinner className=\"size-10 max-h-full max-w-full\" />\n </div>\n {children}\n </div>\n ) : isLoading ? (\n <div\n className={cn(\n 'flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center',\n className\n )}\n role=\"status\"\n aria-label=\"Animated icon, meaning that the website is processing\"\n {...props}\n >\n <Spinner className=\"size-10 max-h-full max-w-full\" />\n </div>\n ) : (\n (children ?? <></>)\n )}\n </>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGA,MAAaA,UAA2B,EACtC,UACA,YAAY,MACZ,eAAe,OACf,
|
|
1
|
+
{"version":3,"file":"index.mjs","names":["Loader: FC<LoaderProps>"],"sources":["../../../../src/components/Loader/index.tsx"],"sourcesContent":["import type { FC, HTMLAttributes } from 'react';\nimport { cn } from '../../utils/cn';\nimport { Spinner } from './spinner';\n\n/**\n * Props for the Loader component\n */\nexport type LoaderProps = HTMLAttributes<HTMLDivElement> & {\n /** Controls whether the loading spinner is displayed. Defaults to true when undefined */\n isLoading?: boolean;\n /** Controls whether the children are kept when loading is false. Defaults to false */\n keepChildren?: boolean;\n};\n\n/**\n * Loader Component\n *\n * A versatile loading component that can function as both a standalone loader\n * and a wrapper for content. When loading is true, displays an animated spinner.\n * When loading is false, renders the wrapped content.\n *\n * @component\n * @example\n * Standalone usage:\n * ```tsx\n * <Loader isLoading={true} />\n * ```\n *\n * @example\n * As a content wrapper:\n * ```tsx\n * <Loader isLoading={isDataLoading}>\n * <div>Your content here</div>\n * </Loader>\n * ```\n *\n * @example\n * Default behavior (loading = true):\n * ```tsx\n * <Loader />\n * ```\n *\n * @example\n * With custom styling:\n * ```tsx\n * <Loader\n * isLoading={true}\n * className=\"min-h-[200px] bg-gray-50\"\n * aria-label=\"Loading user data\"\n * />\n * ```\n *\n * @example\n * Conditional content loading:\n * ```tsx\n * <Loader isLoading={!data}>\n * {data && (\n * <div>\n * <h2>{data.title}</h2>\n * <p>{data.content}</p>\n * </div>\n * )}\n * </Loader>\n * ```\n *\n * Features:\n * - Dual-mode operation: standalone spinner or content wrapper\n * - Responsive design with flexible sizing\n * - Accessible with proper ARIA attributes and role\n * - Smooth animated spinner using SVG\n * - Customizable styling through className prop\n * - Supports all standard HTML div attributes\n * - Screen constraints (max-height/width) to prevent overflow\n * - Internationalization ready with aria-label support\n *\n * Accessibility:\n * - Uses role=\"status\" for screen reader announcements\n * - Includes descriptive aria-label for the loading state\n * - Maintains focus management when transitioning between states\n * - Supports custom aria-label through props for specific contexts\n * - Compatible with keyboard navigation patterns\n *\n * Performance:\n * - Lightweight SVG spinner with CSS animations\n * - Conditional rendering prevents unnecessary DOM updates\n * - Optimized for frequent loading state changes\n * - No external dependencies beyond internal utilities\n *\n * @param props - Component props extending HTML div attributes\n * @param props.children - Content to display when not loading\n * @param props.isLoading - Loading state control (defaults to true)\n * @param props.className - Additional CSS classes for the loader container\n * @param props.role - ARIA role (defaults to \"status\")\n * @param props.aria-label - Custom accessibility label\n * @param props.id - Unique identifier for the loader\n * @param props.style - Inline styles object\n * @param props.data-* - Data attributes for testing or tracking\n * @param props...rest - All other standard HTML div attributes\n *\n * @returns A loading spinner when isLoading is true, otherwise renders children\n */\nexport const Loader: FC<LoaderProps> = ({\n children,\n isLoading = true,\n keepChildren = false,\n className,\n ...props\n}) => (\n <>\n {isLoading && keepChildren ? (\n <div className=\"relative size-full\">\n <div\n className={cn(\n 'absolute top-0 left-0 flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center',\n className\n )}\n role=\"status\"\n aria-label=\"Animated icon, meaning that the website is processing\"\n {...props}\n >\n <Spinner className=\"size-10 max-h-full max-w-full\" />\n </div>\n {children}\n </div>\n ) : isLoading ? (\n <div\n className={cn(\n 'flex size-full max-h-screen max-w-[100vw] flex-1 items-center justify-center',\n className\n )}\n role=\"status\"\n aria-label=\"Animated icon, meaning that the website is processing\"\n {...props}\n >\n <Spinner className=\"size-10 max-h-full max-w-full\" />\n </div>\n ) : (\n (children ?? <></>)\n )}\n </>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqGA,MAAaA,UAA2B,EACtC,UACA,YAAY,MACZ,eAAe,OACf,WACA,GAAG,YAEH,0CACG,aAAa,eACZ,qBAAC;CAAI,WAAU;YACb,oBAAC;EACC,WAAW,GACT,sGACA,UACD;EACD,MAAK;EACL,cAAW;EACX,GAAI;YAEJ,oBAAC,WAAQ,WAAU,kCAAkC;GACjD,EACL;EACG,GACJ,YACF,oBAAC;CACC,WAAW,GACT,gFACA,UACD;CACD,MAAK;CACL,cAAW;CACX,GAAI;WAEJ,oBAAC,WAAQ,WAAU,kCAAkC;EACjD,GAEL,YAAY,iCAAK,GAEnB"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import { Button, ButtonColor, ButtonSize, ButtonTextAlign, ButtonVariant } from "../Button/Button.mjs";
|
|
5
4
|
import { Container } from "../Container/index.mjs";
|
|
5
|
+
import { Button, ButtonColor, ButtonSize, ButtonTextAlign, ButtonVariant } from "../Button/Button.mjs";
|
|
6
6
|
import { usePersistedStore } from "../../hooks/usePersistedStore.mjs";
|
|
7
7
|
import { Input } from "../Input/Input.mjs";
|
|
8
8
|
import { SwitchSelector, SwitchSelectorColor, SwitchSelectorSize } from "../SwitchSelector/index.mjs";
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
|
|
4
|
-
import { Button, ButtonColor, ButtonTextAlign, ButtonVariant } from "../Button/Button.mjs";
|
|
5
4
|
import { Container } from "../Container/index.mjs";
|
|
5
|
+
import { Button, ButtonColor, ButtonTextAlign, ButtonVariant } from "../Button/Button.mjs";
|
|
6
6
|
import { Input } from "../Input/Input.mjs";
|
|
7
7
|
import { DropDown } from "../DropDown/index.mjs";
|
|
8
8
|
import { MoveVertical } from "lucide-react";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Logo/Logo.tsx
|
|
4
|
-
const Logo = ({ bgColor
|
|
4
|
+
const Logo = ({ bgColor, ...props }) => /* @__PURE__ */ jsxs("svg", {
|
|
5
5
|
width: "480",
|
|
6
6
|
height: "448",
|
|
7
7
|
viewBox: "0 0 480 448",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.mjs","names":["Logo: FC<LogoBaseProps>"],"sources":["../../../../src/components/Logo/Logo.tsx"],"sourcesContent":["import type { FC, SVGProps } from 'react';\n\nexport type LogoBaseProps = SVGProps<SVGSVGElement> & {\n bgColor?: string;\n};\n\nexport const Logo: FC<LogoBaseProps> = ({ bgColor, ...props }) => (\n <svg\n width=\"480\"\n height=\"448\"\n viewBox=\"0 0 480 448\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n preserveAspectRatio=\"xMidYMid\"\n role=\"img\"\n aria-label=\"Intlayer logo\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M50 1C25.1472 1 5 21.1472 5 46C5 70.8528 25.1472 91 50 91H295C319.853 91 340 70.8528 340 46C340 21.1472 319.853 1 295 1H50ZM5 221C5 196.147 25.1472 176 50 176H430C454.853 176 475 196.147 475 221C475 245.853 454.853 266 430 266H50C25.1472 266 5 245.853 5 221ZM5 394C5 369.147 25.1472 349 50 349H230C254.853 349 275 369.147 275 394C275 418.853 254.853 439 230 439H50C25.1472 439 5 418.853 5 394Z\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M50 1C25.1472 1 5 21.1472 5 46C5 70.8528 25.1472 91 50 91H295C319.853 91 340 70.8528 340 46C340 21.1472 319.853 1 295 1H50ZM5 221C5 196.147 25.1472 176 50 176H430C454.853 176 475 196.147 475 221C475 245.853 454.853 266 430 266H50C25.1472 266 5 245.853 5 221ZM5 394C5 369.147 25.1472 349 50 349H230C254.853 349 275 369.147 275 394C275 418.853 254.853 439 230 439H50C25.1472 439 5 418.853 5 394Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M6 46C6 21.6995 25.6995 2 50 2V0C24.5949 0 4 20.5949 4 46H6ZM50 90C25.6995 90 6 70.3005 6 46H4C4 71.4051 24.5949 92 50 92V90ZM295 90H50V92H295V90ZM339 46C339 70.3005 319.301 90 295 90V92C320.405 92 341 71.4051 341 46H339ZM295 2C319.301 2 339 21.6995 339 46H341C341 20.5949 320.405 0 295 0V2ZM50 2H295V0H50V2ZM50 175C24.5949 175 4 195.595 4 221H6C6 196.699 25.6995 177 50 177V175ZM430 175H50V177H430V175ZM476 221C476 195.595 455.405 175 430 175V177C454.301 177 474 196.699 474 221H476ZM430 267C455.405 267 476 246.405 476 221H474C474 245.301 454.301 265 430 265V267ZM50 267H430V265H50V267ZM4 221C4 246.405 24.5949 267 50 267V265C25.6995 265 6 245.301 6 221H4ZM50 348C24.5949 348 4 368.595 4 394H6C6 369.699 25.6995 350 50 350V348ZM230 348H50V350H230V348ZM276 394C276 368.595 255.405 348 230 348V350C254.301 350 274 369.699 274 394H276ZM230 440C255.405 440 276 419.405 276 394H274C274 418.3 254.301 438 230 438V440ZM50 440H230V438H50V440ZM4 394C4 419.405 24.5949 440 50 440V438C25.6995 438 6 418.3 6 394H4Z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n"],"mappings":";;;AAMA,MAAaA,QAA2B,EAAE,
|
|
1
|
+
{"version":3,"file":"Logo.mjs","names":["Logo: FC<LogoBaseProps>"],"sources":["../../../../src/components/Logo/Logo.tsx"],"sourcesContent":["import type { FC, SVGProps } from 'react';\n\nexport type LogoBaseProps = SVGProps<SVGSVGElement> & {\n bgColor?: string;\n};\n\nexport const Logo: FC<LogoBaseProps> = ({ bgColor, ...props }) => (\n <svg\n width=\"480\"\n height=\"448\"\n viewBox=\"0 0 480 448\"\n fill=\"currentColor\"\n xmlns=\"http://www.w3.org/2000/svg\"\n preserveAspectRatio=\"xMidYMid\"\n role=\"img\"\n aria-label=\"Intlayer logo\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M50 1C25.1472 1 5 21.1472 5 46C5 70.8528 25.1472 91 50 91H295C319.853 91 340 70.8528 340 46C340 21.1472 319.853 1 295 1H50ZM5 221C5 196.147 25.1472 176 50 176H430C454.853 176 475 196.147 475 221C475 245.853 454.853 266 430 266H50C25.1472 266 5 245.853 5 221ZM5 394C5 369.147 25.1472 349 50 349H230C254.853 349 275 369.147 275 394C275 418.853 254.853 439 230 439H50C25.1472 439 5 418.853 5 394Z\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M50 1C25.1472 1 5 21.1472 5 46C5 70.8528 25.1472 91 50 91H295C319.853 91 340 70.8528 340 46C340 21.1472 319.853 1 295 1H50ZM5 221C5 196.147 25.1472 176 50 176H430C454.853 176 475 196.147 475 221C475 245.853 454.853 266 430 266H50C25.1472 266 5 245.853 5 221ZM5 394C5 369.147 25.1472 349 50 349H230C254.853 349 275 369.147 275 394C275 418.853 254.853 439 230 439H50C25.1472 439 5 418.853 5 394Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M6 46C6 21.6995 25.6995 2 50 2V0C24.5949 0 4 20.5949 4 46H6ZM50 90C25.6995 90 6 70.3005 6 46H4C4 71.4051 24.5949 92 50 92V90ZM295 90H50V92H295V90ZM339 46C339 70.3005 319.301 90 295 90V92C320.405 92 341 71.4051 341 46H339ZM295 2C319.301 2 339 21.6995 339 46H341C341 20.5949 320.405 0 295 0V2ZM50 2H295V0H50V2ZM50 175C24.5949 175 4 195.595 4 221H6C6 196.699 25.6995 177 50 177V175ZM430 175H50V177H430V175ZM476 221C476 195.595 455.405 175 430 175V177C454.301 177 474 196.699 474 221H476ZM430 267C455.405 267 476 246.405 476 221H474C474 245.301 454.301 265 430 265V267ZM50 267H430V265H50V267ZM4 221C4 246.405 24.5949 267 50 267V265C25.6995 265 6 245.301 6 221H4ZM50 348C24.5949 348 4 368.595 4 394H6C6 369.699 25.6995 350 50 350V348ZM230 348H50V350H230V348ZM276 394C276 368.595 255.405 348 230 348V350C254.301 350 274 369.699 274 394H276ZM230 440C255.405 440 276 419.405 276 394H274C274 418.3 254.301 438 230 438V440ZM50 440H230V438H50V440ZM4 394C4 419.405 24.5949 440 50 440V438C25.6995 438 6 418.3 6 394H4Z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n"],"mappings":";;;AAMA,MAAaA,QAA2B,EAAE,SAAS,GAAG,YACpD,qBAAC;CACC,OAAM;CACN,QAAO;CACP,SAAQ;CACR,MAAK;CACL,OAAM;CACN,qBAAoB;CACpB,MAAK;CACL,cAAW;CACX,GAAI;;EAEJ,oBAAC;GACC,UAAS;GACT,UAAS;GACT,GAAE;IACF;EACF,oBAAC;GACC,UAAS;GACT,UAAS;GACT,GAAE;GACF,MAAK;IACL;EACF,oBAAC;GACC,GAAE;GACF,MAAK;IACL;;EACE"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
2
2
|
|
|
3
3
|
//#region src/components/Logo/LogoWithTextBelow.tsx
|
|
4
|
-
const LogoWithTextBelow = ({ bgColor
|
|
4
|
+
const LogoWithTextBelow = ({ bgColor, ...props }) => /* @__PURE__ */ jsxs("svg", {
|
|
5
5
|
width: "1868",
|
|
6
6
|
height: "1215",
|
|
7
7
|
viewBox: "0 0 1868 1215",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"LogoWithTextBelow.mjs","names":["LogoWithTextBelow: FC<LogoBaseProps>"],"sources":["../../../../src/components/Logo/LogoWithTextBelow.tsx"],"sourcesContent":["import type { FC, SVGProps } from 'react';\n\nexport type LogoBaseProps = SVGProps<SVGSVGElement> & {\n bgColor?: string;\n};\n\nexport const LogoWithTextBelow: FC<LogoBaseProps> = ({ bgColor, ...props }) => (\n <svg\n width=\"1868\"\n height=\"1215\"\n viewBox=\"0 0 1868 1215\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n role=\"img\"\n aria-label=\"Intlayer logo\"\n preserveAspectRatio=\"xMidYMid\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M697 46C697 21.1472 717.147 1 742 1H987C1011.85 1 1032 21.1472 1032 46C1032 70.8528 1011.85 91 987 91H742C717.147 91 697 70.8528 697 46ZM742 176C717.147 176 697 196.147 697 221C697 245.853 717.147 266 742 266H1122C1146.85 266 1167 245.853 1167 221C1167 196.147 1146.85 176 1122 176H742ZM742 349C717.147 349 697 369.147 697 394C697 418.853 717.147 439 742 439H922C946.853 439 967 418.853 967 394C967 369.147 946.853 349 922 349H742ZM5 736V1101H78V736H5ZM154.715 841V1101H223.715V948C223.715 937 226.215 927.5 231.215 919.5C236.548 911.167 243.882 904.667 253.215 900C262.548 895 273.215 892.5 285.215 892.5C301.215 892.5 312.882 897.5 320.215 907.5C327.548 917.167 331.215 932.833 331.215 954.5V1101H399.715V941C399.715 904.667 392.215 878.167 377.215 861.5C362.548 844.5 339.548 836 308.215 836C289.548 836 273.048 839 258.715 845C244.715 850.667 232.382 859.5 221.715 871.5H220.715L220.215 841H154.715ZM505.02 1087C519.02 1099.67 541.686 1106 573.02 1106C584.02 1106 594.686 1105.17 605.02 1103.5C615.353 1102.17 626.186 1099.83 637.52 1096.5L632.02 1042C625.353 1044.33 618.02 1046.17 610.02 1047.5C602.353 1048.83 595.02 1049.5 588.02 1049.5C575.02 1049.5 566.02 1046.5 561.02 1040.5C556.02 1034.17 553.52 1023.17 553.52 1007.5V894.5H638.02V841H553.52V756H484.52V841H428.02V894.5H484.52V1024.5C484.52 1053.5 491.353 1074.33 505.02 1087ZM700.207 736V1101H770.207V736H700.207ZM844.691 1084.5C859.691 1098.83 880.025 1106 905.691 1106C922.691 1106 939.358 1102.83 955.691 1096.5C972.025 1090.17 984.858 1081.67 994.191 1071H994.691L995.691 1101H1061.19V937C1061.19 912 1057.69 892.167 1050.69 877.5C1043.69 862.5 1032.52 851.833 1017.19 845.5C1001.86 839.167 980.858 836 954.191 836C933.191 836 912.025 837.833 890.691 841.5C869.691 844.833 850.525 849.667 833.191 856L841.691 909C857.691 902.667 874.691 897.833 892.691 894.5C910.691 890.833 928.025 889 944.691 889C957.358 889 967.025 890.333 973.691 893C980.691 895.333 985.525 899.667 988.191 906C991.191 912.333 992.691 921.333 992.691 933H958.191C914.858 933 881.358 941.167 857.691 957.5C834.358 973.833 822.691 997 822.691 1027C822.691 1051 830.025 1070.17 844.691 1084.5ZM962.191 1048C952.858 1052 942.358 1054 930.691 1054C917.025 1054 906.358 1051 898.691 1045C891.358 1039 887.691 1030.67 887.691 1020C887.691 1005.67 894.358 995.167 907.691 988.5C921.025 981.5 941.191 978 968.191 978H992.691V1007.5C992.691 1016.17 989.858 1024.17 984.191 1031.5C978.858 1038.5 971.525 1044 962.191 1048ZM1188.61 1099.5L1145.61 1206H1218.11L1361.11 841H1287.11L1223.61 1033.5H1222.61L1159.61 841L1086.11 841.5L1188.61 1099.5ZM1414.96 1071C1440.29 1094.33 1476.29 1106 1522.96 1106C1539.63 1106 1556.13 1104.5 1572.46 1101.5C1589.13 1098.83 1603.63 1095 1615.96 1090L1607.96 1037.5C1595.63 1042.17 1581.46 1045.83 1565.46 1048.5C1549.46 1051.17 1534.29 1052.5 1519.96 1052.5C1494.63 1052.5 1475.79 1047 1463.46 1036C1453.25 1026.89 1447.27 1013.56 1445.51 996H1627.96C1628.29 993 1628.46 988.5 1628.46 982.5C1628.79 976.5 1628.96 971.167 1628.96 966.5C1628.96 924.833 1618.29 892.667 1596.96 870C1575.96 847.333 1545.96 836 1506.96 836C1466.63 836 1434.96 848 1411.96 872C1388.96 896 1377.46 929 1377.46 971C1377.46 1014.33 1389.96 1047.67 1414.96 1071ZM1445.69 948.5C1447.45 930.347 1452.37 916.18 1460.46 906C1470.79 892.667 1486.29 886 1506.96 886C1526.63 886 1541.13 892.333 1550.46 905C1558.24 915.188 1562.88 929.688 1564.41 948.5H1445.69ZM1746.59 841H1680.59V1101H1750.09V981C1750.09 965 1755.09 950.5 1765.09 937.5C1775.09 924.167 1788.59 913.667 1805.59 906C1822.59 898.333 1841.43 894.5 1862.09 894.5V836C1847.09 836 1832.43 838.167 1818.09 842.5C1804.09 846.5 1791.09 852.5 1779.09 860.5C1767.43 868.167 1757.26 877.833 1748.59 889.5H1747.09L1746.59 841Z\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M697 46C697 21.1472 717.147 1 742 1H987C1011.85 1 1032 21.1472 1032 46C1032 70.8528 1011.85 91 987 91H742C717.147 91 697 70.8528 697 46ZM742 176C717.147 176 697 196.147 697 221C697 245.853 717.147 266 742 266H1122C1146.85 266 1167 245.853 1167 221C1167 196.147 1146.85 176 1122 176H742ZM742 349C717.147 349 697 369.147 697 394C697 418.853 717.147 439 742 439H922C946.853 439 967 418.853 967 394C967 369.147 946.853 349 922 349H742ZM5 736V1101H78V736H5ZM154.715 841V1101H223.715V948C223.715 937 226.215 927.5 231.215 919.5C236.548 911.167 243.882 904.667 253.215 900C262.548 895 273.215 892.5 285.215 892.5C301.215 892.5 312.882 897.5 320.215 907.5C327.548 917.167 331.215 932.833 331.215 954.5V1101H399.715V941C399.715 904.667 392.215 878.167 377.215 861.5C362.548 844.5 339.548 836 308.215 836C289.548 836 273.048 839 258.715 845C244.715 850.667 232.382 859.5 221.715 871.5H220.715L220.215 841H154.715ZM505.02 1087C519.02 1099.67 541.686 1106 573.02 1106C584.02 1106 594.686 1105.17 605.02 1103.5C615.353 1102.17 626.186 1099.83 637.52 1096.5L632.02 1042C625.353 1044.33 618.02 1046.17 610.02 1047.5C602.353 1048.83 595.02 1049.5 588.02 1049.5C575.02 1049.5 566.02 1046.5 561.02 1040.5C556.02 1034.17 553.52 1023.17 553.52 1007.5V894.5H638.02V841H553.52V756H484.52V841H428.02V894.5H484.52V1024.5C484.52 1053.5 491.353 1074.33 505.02 1087ZM700.207 736V1101H770.207V736H700.207ZM844.691 1084.5C859.691 1098.83 880.025 1106 905.691 1106C922.691 1106 939.358 1102.83 955.691 1096.5C972.025 1090.17 984.858 1081.67 994.191 1071H994.691L995.691 1101H1061.19V937C1061.19 912 1057.69 892.167 1050.69 877.5C1043.69 862.5 1032.52 851.833 1017.19 845.5C1001.86 839.167 980.858 836 954.191 836C933.191 836 912.025 837.833 890.691 841.5C869.691 844.833 850.525 849.667 833.191 856L841.691 909C857.691 902.667 874.691 897.833 892.691 894.5C910.691 890.833 928.025 889 944.691 889C957.358 889 967.025 890.333 973.691 893C980.691 895.333 985.525 899.667 988.191 906C991.191 912.333 992.691 921.333 992.691 933H958.191C914.858 933 881.358 941.167 857.691 957.5C834.358 973.833 822.691 997 822.691 1027C822.691 1051 830.025 1070.17 844.691 1084.5ZM962.191 1048C952.858 1052 942.358 1054 930.691 1054C917.025 1054 906.358 1051 898.691 1045C891.358 1039 887.691 1030.67 887.691 1020C887.691 1005.67 894.358 995.167 907.691 988.5C921.025 981.5 941.191 978 968.191 978H992.691V1007.5C992.691 1016.17 989.858 1024.17 984.191 1031.5C978.858 1038.5 971.525 1044 962.191 1048ZM1188.61 1099.5L1145.61 1206H1218.11L1361.11 841H1287.11L1223.61 1033.5H1222.61L1159.61 841L1086.11 841.5L1188.61 1099.5ZM1414.96 1071C1440.29 1094.33 1476.29 1106 1522.96 1106C1539.63 1106 1556.13 1104.5 1572.46 1101.5C1589.13 1098.83 1603.63 1095 1615.96 1090L1607.96 1037.5C1595.63 1042.17 1581.46 1045.83 1565.46 1048.5C1549.46 1051.17 1534.29 1052.5 1519.96 1052.5C1494.63 1052.5 1475.79 1047 1463.46 1036C1453.25 1026.89 1447.27 1013.56 1445.51 996H1627.96C1628.29 993 1628.46 988.5 1628.46 982.5C1628.79 976.5 1628.96 971.167 1628.96 966.5C1628.96 924.833 1618.29 892.667 1596.96 870C1575.96 847.333 1545.96 836 1506.96 836C1466.63 836 1434.96 848 1411.96 872C1388.96 896 1377.46 929 1377.46 971C1377.46 1014.33 1389.96 1047.67 1414.96 1071ZM1445.69 948.5C1447.45 930.347 1452.37 916.18 1460.46 906C1470.79 892.667 1486.29 886 1506.96 886C1526.63 886 1541.13 892.333 1550.46 905C1558.24 915.188 1562.88 929.688 1564.41 948.5H1445.69ZM1746.59 841H1680.59V1101H1750.09V981C1750.09 965 1755.09 950.5 1765.09 937.5C1775.09 924.167 1788.59 913.667 1805.59 906C1822.59 898.333 1841.43 894.5 1862.09 894.5V836C1847.09 836 1832.43 838.167 1818.09 842.5C1804.09 846.5 1791.09 852.5 1779.09 860.5C1767.43 868.167 1757.26 877.833 1748.59 889.5H1747.09L1746.59 841Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M5 1101H4V1102H5V1101ZM5 736V735H4V736H5ZM78 1101V1102H79V1101H78ZM78 736H79V735H78V736ZM154.715 1101H153.715V1102H154.715V1101ZM154.715 841V840H153.715V841H154.715ZM223.715 1101V1102H224.715V1101H223.715ZM231.215 919.5L230.373 918.961L230.367 918.97L231.215 919.5ZM253.215 900L253.662 900.894L253.675 900.888L253.687 900.881L253.215 900ZM320.215 907.5L319.408 908.091L319.413 908.098L319.418 908.104L320.215 907.5ZM331.215 1101H330.215V1102H331.215V1101ZM399.715 1101V1102H400.715V1101H399.715ZM377.215 861.5L376.458 862.153L376.465 862.161L376.472 862.169L377.215 861.5ZM258.715 845L259.09 845.927L259.101 845.922L258.715 845ZM221.715 871.5V872.5H222.164L222.462 872.164L221.715 871.5ZM220.715 871.5L219.715 871.516L219.731 872.5H220.715V871.5ZM220.215 841L221.215 840.984L221.199 840H220.215V841ZM505.02 1087L504.34 1087.73L504.349 1087.74L505.02 1087ZM605.02 1103.5L604.892 1102.51L604.876 1102.51L604.86 1102.51L605.02 1103.5ZM637.52 1096.5L637.802 1097.46L638.598 1097.23L638.514 1096.4L637.52 1096.5ZM632.02 1042L633.014 1041.9L632.887 1040.64L631.689 1041.06L632.02 1042ZM610.02 1047.5L609.855 1046.51L609.848 1046.51L610.02 1047.5ZM561.02 1040.5L560.235 1041.12L560.243 1041.13L560.251 1041.14L561.02 1040.5ZM553.52 894.5V893.5H552.52V894.5H553.52ZM638.02 894.5V895.5H639.02V894.5H638.02ZM638.02 841H639.02V840H638.02V841ZM553.52 841H552.52V842H553.52V841ZM553.52 756H554.52V755H553.52V756ZM484.52 756V755H483.52V756H484.52ZM484.52 841V842H485.52V841H484.52ZM428.02 841V840H427.02V841H428.02ZM428.02 894.5H427.02V895.5H428.02V894.5ZM484.52 894.5H485.52V893.5H484.52V894.5ZM700.207 1101H699.207V1102H700.207V1101ZM700.207 736V735H699.207V736H700.207ZM770.207 1101V1102H771.207V1101H770.207ZM770.207 736H771.207V735H770.207V736ZM844.691 1084.5L843.992 1085.22L844.001 1085.22L844.691 1084.5ZM994.191 1071V1070H993.738L993.439 1070.34L994.191 1071ZM994.691 1071L995.691 1070.97L995.659 1070H994.691V1071ZM995.691 1101L994.692 1101.03L994.724 1102H995.691V1101ZM1061.19 1101V1102H1062.19V1101H1061.19ZM1050.69 877.5L1049.79 877.923L1049.79 877.931L1050.69 877.5ZM1017.19 845.5L1016.81 846.424L1016.81 846.424L1017.19 845.5ZM890.691 841.5L890.848 842.488L890.861 842.486L890.691 841.5ZM833.191 856L832.848 855.061L832.073 855.344L832.204 856.158L833.191 856ZM841.691 909L840.704 909.158L840.901 910.388L842.059 909.93L841.691 909ZM892.691 894.5L892.873 895.483L892.882 895.482L892.891 895.48L892.691 894.5ZM973.691 893L973.32 893.928L973.347 893.939L973.375 893.949L973.691 893ZM988.191 906L987.27 906.388L987.278 906.408L987.288 906.428L988.191 906ZM992.691 933V934H993.691V933H992.691ZM857.691 957.5L857.123 956.677L857.118 956.681L857.691 957.5ZM898.691 1045L898.058 1045.77L898.067 1045.78L898.075 1045.79L898.691 1045ZM907.691 988.5L908.139 989.394L908.147 989.39L908.156 989.385L907.691 988.5ZM992.691 978H993.691V977H992.691V978ZM984.191 1031.5L983.4 1030.89L983.396 1030.89L984.191 1031.5ZM1145.61 1206L1144.68 1205.63L1144.12 1207H1145.61V1206ZM1188.61 1099.5L1189.53 1099.87L1189.68 1099.5L1189.53 1099.13L1188.61 1099.5ZM1218.11 1206V1207H1218.79L1219.04 1206.36L1218.11 1206ZM1361.11 841L1362.04 841.365L1362.57 840H1361.11V841ZM1287.11 841V840H1286.38L1286.16 840.687L1287.11 841ZM1223.61 1033.5V1034.5H1224.33L1224.56 1033.81L1223.61 1033.5ZM1222.61 1033.5L1221.66 1033.81L1221.88 1034.5H1222.61V1033.5ZM1159.61 841L1160.56 840.689L1160.33 839.995L1159.6 840L1159.61 841ZM1086.11 841.5L1086.1 840.5L1084.64 840.51L1085.18 841.869L1086.11 841.5ZM1414.96 1071L1414.28 1071.73L1414.28 1071.74L1414.96 1071ZM1572.46 1101.5L1572.3 1100.51L1572.29 1100.51L1572.28 1100.52L1572.46 1101.5ZM1615.96 1090L1616.34 1090.93L1617.07 1090.63L1616.95 1089.85L1615.96 1090ZM1607.96 1037.5L1608.95 1037.35L1608.76 1036.13L1607.61 1036.56L1607.96 1037.5ZM1463.46 1036L1464.13 1035.25L1464.13 1035.25L1463.46 1036ZM1445.51 996V995H1444.4L1444.51 996.1L1445.51 996ZM1627.96 996V997H1628.86L1628.95 996.11L1627.96 996ZM1628.46 982.5L1627.46 982.445L1627.46 982.472V982.5H1628.46ZM1596.96 870L1596.23 870.68L1596.23 870.685L1596.96 870ZM1460.46 906L1461.24 906.622L1461.25 906.613L1460.46 906ZM1445.69 948.5L1444.69 948.404L1444.59 949.5H1445.69V948.5ZM1550.46 905L1549.66 905.593L1549.66 905.6L1549.67 905.607L1550.46 905ZM1564.41 948.5V949.5H1565.49L1565.4 948.419L1564.41 948.5ZM1680.59 841V840H1679.59V841H1680.59ZM1746.59 841L1747.59 840.99L1747.58 840H1746.59V841ZM1680.59 1101H1679.59V1102H1680.59V1101ZM1750.09 1101V1102H1751.09V1101H1750.09ZM1765.09 937.5L1765.89 938.11L1765.89 938.1L1765.09 937.5ZM1862.09 894.5V895.5H1863.09V894.5H1862.09ZM1862.09 836H1863.09V835H1862.09V836ZM1818.09 842.5L1818.37 843.462L1818.38 843.459L1818.38 843.457L1818.09 842.5ZM1779.09 860.5L1779.64 861.336L1779.65 861.332L1779.09 860.5ZM1748.59 889.5V890.5H1749.1L1749.4 890.096L1748.59 889.5ZM1747.09 889.5L1746.09 889.51L1746.1 890.5H1747.09V889.5ZM742 0C716.595 0 696 20.5949 696 46H698C698 21.6995 717.7 2 742 2V0ZM987 0H742V2H987V0ZM1033 46C1033 20.5949 1012.41 0 987 0V2C1011.3 2 1031 21.6995 1031 46H1033ZM987 92C1012.41 92 1033 71.4051 1033 46H1031C1031 70.3005 1011.3 90 987 90V92ZM742 92H987V90H742V92ZM696 46C696 71.4051 716.595 92 742 92V90C717.7 90 698 70.3005 698 46H696ZM698 221C698 196.699 717.699 177 742 177V175C716.595 175 696 195.595 696 221H698ZM742 265C717.699 265 698 245.301 698 221H696C696 246.405 716.595 267 742 267V265ZM1122 265H742V267H1122V265ZM1166 221C1166 245.301 1146.3 265 1122 265V267C1147.41 267 1168 246.405 1168 221H1166ZM1122 177C1146.3 177 1166 196.699 1166 221H1168C1168 195.595 1147.41 175 1122 175V177ZM742 177H1122V175H742V177ZM698 394C698 369.699 717.7 350 742 350V348C716.595 348 696 368.595 696 394H698ZM742 438C717.7 438 698 418.3 698 394H696C696 419.405 716.595 440 742 440V438ZM922 438H742V440H922V438ZM966 394C966 418.3 946.3 438 922 438V440C947.405 440 968 419.405 968 394H966ZM922 350C946.3 350 966 369.699 966 394H968C968 368.595 947.405 348 922 348V350ZM742 350H922V348H742V350ZM6 1101V736H4V1101H6ZM78 1100H5V1102H78V1100ZM77 736V1101H79V736H77ZM5 737H78V735H5V737ZM155.715 1101V841H153.715V1101H155.715ZM223.715 1100H154.715V1102H223.715V1100ZM222.715 948V1101H224.715V948H222.715ZM230.367 918.97C225.252 927.154 222.715 936.844 222.715 948H224.715C224.715 937.156 227.178 927.846 232.063 920.03L230.367 918.97ZM252.768 899.106C243.282 903.848 235.809 910.467 230.373 918.961L232.057 920.039C237.288 911.866 244.481 905.485 253.662 900.894L252.768 899.106ZM285.215 891.5C273.072 891.5 262.24 894.031 252.743 899.119L253.687 900.881C262.857 895.969 273.357 893.5 285.215 893.5V891.5ZM321.021 906.909C313.446 896.579 301.432 891.5 285.215 891.5V893.5C300.998 893.5 312.317 898.421 319.408 908.091L321.021 906.909ZM332.215 954.5C332.215 932.767 328.546 916.827 321.012 906.896L319.418 908.104C326.551 917.506 330.215 932.9 330.215 954.5H332.215ZM332.215 1101V954.5H330.215V1101H332.215ZM399.715 1100H331.215V1102H399.715V1100ZM398.715 941V1101H400.715V941H398.715ZM376.472 862.169C391.23 878.567 398.715 904.769 398.715 941H400.715C400.715 904.564 393.2 877.766 377.958 860.831L376.472 862.169ZM308.215 837C339.377 837 362.047 845.45 376.458 862.153L377.972 860.847C363.049 843.55 339.719 835 308.215 835V837ZM259.101 845.922C273.29 839.983 289.655 837 308.215 837V835C289.442 835 272.806 838.017 258.329 844.078L259.101 845.922ZM222.462 872.164C233.033 860.272 245.242 851.532 259.09 845.927L258.34 844.073C244.188 849.801 231.73 858.728 220.967 870.836L222.462 872.164ZM220.715 872.5H221.715V870.5H220.715V872.5ZM219.215 841.016L219.715 871.516L221.715 871.484L221.215 840.984L219.215 841.016ZM154.715 842H220.215V840H154.715V842ZM573.02 1105C541.781 1105 519.418 1098.68 505.69 1086.26L504.349 1087.74C518.621 1100.65 541.591 1107 573.02 1107V1105ZM604.86 1102.51C594.582 1104.17 583.969 1105 573.02 1105V1107C584.07 1107 594.79 1106.16 605.179 1104.49L604.86 1102.51ZM637.237 1095.54C625.948 1098.86 615.166 1101.18 604.892 1102.51L605.148 1104.49C615.539 1103.15 626.424 1100.81 637.802 1097.46L637.237 1095.54ZM631.025 1042.1L636.525 1096.6L638.514 1096.4L633.014 1041.9L631.025 1042.1ZM610.184 1048.49C618.232 1047.14 625.622 1045.3 632.35 1042.94L631.689 1041.06C625.084 1043.37 617.807 1045.19 609.855 1046.51L610.184 1048.49ZM588.02 1050.5C595.083 1050.5 602.474 1049.83 610.191 1048.49L609.848 1046.51C602.232 1047.84 594.956 1048.5 588.02 1048.5V1050.5ZM560.251 1041.14C565.537 1047.48 574.915 1050.5 588.02 1050.5V1048.5C575.124 1048.5 566.502 1045.52 561.788 1039.86L560.251 1041.14ZM552.52 1007.5C552.52 1023.21 555.014 1034.51 560.235 1041.12L561.804 1039.88C557.025 1033.83 554.52 1023.12 554.52 1007.5H552.52ZM552.52 894.5V1007.5H554.52V894.5H552.52ZM638.02 893.5H553.52V895.5H638.02V893.5ZM637.02 841V894.5H639.02V841H637.02ZM553.52 842H638.02V840H553.52V842ZM552.52 756V841H554.52V756H552.52ZM484.52 757H553.52V755H484.52V757ZM485.52 841V756H483.52V841H485.52ZM428.02 842H484.52V840H428.02V842ZM429.02 894.5V841H427.02V894.5H429.02ZM484.52 893.5H428.02V895.5H484.52V893.5ZM485.52 1024.5V894.5H483.52V1024.5H485.52ZM505.699 1086.27C492.327 1073.87 485.52 1053.37 485.52 1024.5H483.52C483.52 1053.63 490.379 1074.79 504.34 1087.73L505.699 1086.27ZM701.207 1101V736H699.207V1101H701.207ZM770.207 1100H700.207V1102H770.207V1100ZM769.207 736V1101H771.207V736H769.207ZM700.207 737H770.207V735H700.207V737ZM905.691 1105C880.218 1105 860.154 1097.89 845.382 1083.78L844.001 1085.22C859.228 1099.77 879.832 1107 905.691 1107V1105ZM955.33 1095.57C939.108 1101.86 922.564 1105 905.691 1105V1107C922.819 1107 939.608 1103.81 956.053 1097.43L955.33 1095.57ZM993.439 1070.34C984.234 1080.86 971.548 1089.28 955.33 1095.57L956.053 1097.43C972.502 1091.05 985.482 1082.47 994.944 1071.66L993.439 1070.34ZM994.691 1070H994.191V1072H994.691V1070ZM996.691 1100.97L995.691 1070.97L993.692 1071.03L994.692 1101.03L996.691 1100.97ZM1061.19 1100H995.691V1102H1061.19V1100ZM1060.19 937V1101H1062.19V937H1060.19ZM1049.79 877.931C1056.7 892.41 1060.19 912.077 1060.19 937H1062.19C1062.19 911.923 1058.68 891.923 1051.59 877.069L1049.79 877.931ZM1016.81 846.424C1031.91 852.662 1042.89 863.15 1049.79 877.923L1051.6 877.077C1044.49 861.85 1033.14 851.004 1017.57 844.576L1016.81 846.424ZM954.191 837C980.797 837 1001.65 840.162 1016.81 846.424L1017.57 844.576C1002.07 838.171 980.919 835 954.191 835V837ZM890.861 842.486C912.14 838.828 933.25 837 954.191 837V835C933.133 835 911.91 836.838 890.522 840.514L890.861 842.486ZM833.535 856.939C850.799 850.631 869.902 845.812 890.848 842.488L890.535 840.512C869.48 843.854 850.25 848.702 832.848 855.061L833.535 856.939ZM842.679 908.842L834.179 855.842L832.204 856.158L840.704 909.158L842.679 908.842ZM892.509 893.517C874.45 896.861 857.387 901.712 841.323 908.07L842.059 909.93C857.996 903.622 874.933 898.806 892.873 895.483L892.509 893.517ZM944.691 888C927.951 888 910.551 889.841 892.492 893.52L892.891 895.48C910.832 891.825 928.098 890 944.691 890V888ZM974.063 892.072C967.22 889.334 957.403 888 944.691 888V890C957.313 890 966.829 891.332 973.32 893.928L974.063 892.072ZM989.113 905.612C986.326 898.992 981.258 894.468 974.008 892.051L973.375 893.949C980.125 896.199 984.724 900.341 987.27 906.388L989.113 905.612ZM993.691 933C993.691 921.271 992.187 912.1 989.095 905.572L987.288 906.428C990.196 912.567 991.691 921.395 991.691 933H993.691ZM958.191 934H992.691V932H958.191V934ZM858.259 958.323C881.694 942.15 914.964 934 958.191 934V932C914.752 932 881.022 940.184 857.123 956.677L858.259 958.323ZM823.691 1027C823.691 997.306 835.215 974.454 858.265 958.319L857.118 956.681C833.501 973.213 821.691 996.694 821.691 1027H823.691ZM845.39 1083.78C830.949 1069.67 823.691 1050.78 823.691 1027H821.691C821.691 1051.22 829.1 1070.66 843.992 1085.22L845.39 1083.78ZM930.691 1055C942.473 1055 953.11 1052.98 962.585 1048.92L961.797 1047.08C952.606 1051.02 942.243 1053 930.691 1053V1055ZM898.075 1045.79C905.977 1051.97 916.89 1055 930.691 1055V1053C917.16 1053 906.74 1050.03 899.308 1044.21L898.075 1045.79ZM886.691 1020C886.691 1030.92 890.462 1039.56 898.058 1045.77L899.325 1044.23C892.255 1038.44 888.691 1030.41 888.691 1020H886.691ZM907.244 987.606C900.448 991.004 895.296 995.408 891.847 1000.84C888.397 1006.27 886.691 1012.67 886.691 1020H888.691C888.691 1012.99 890.319 1006.98 893.536 1001.91C896.754 996.842 901.602 992.663 908.139 989.394L907.244 987.606ZM968.191 977C941.139 977 920.776 980.501 907.227 987.615L908.156 989.385C921.273 982.499 941.244 979 968.191 979V977ZM992.691 977H968.191V979H992.691V977ZM993.691 1007.5V978H991.691V1007.5H993.691ZM984.983 1032.11C990.775 1024.62 993.691 1016.4 993.691 1007.5H991.691C991.691 1015.93 988.942 1023.72 983.4 1030.89L984.983 1032.11ZM962.585 1048.92C972.053 1044.86 979.534 1039.26 984.987 1032.11L983.396 1030.89C978.182 1037.74 970.997 1043.14 961.797 1047.08L962.585 1048.92ZM1146.53 1206.37L1189.53 1099.87L1187.68 1099.13L1144.68 1205.63L1146.53 1206.37ZM1218.11 1205H1145.61V1207H1218.11V1205ZM1360.17 840.635L1217.17 1205.64L1219.04 1206.36L1362.04 841.365L1360.17 840.635ZM1287.11 842H1361.11V840H1287.11V842ZM1224.56 1033.81L1288.06 841.313L1286.16 840.687L1222.66 1033.19L1224.56 1033.81ZM1222.61 1034.5H1223.61V1032.5H1222.61V1034.5ZM1158.66 841.311L1221.66 1033.81L1223.56 1033.19L1160.56 840.689L1158.66 841.311ZM1086.11 842.5L1159.61 842L1159.6 840L1086.1 840.5L1086.11 842.5ZM1189.53 1099.13L1087.03 841.131L1085.18 841.869L1187.68 1099.87L1189.53 1099.13ZM1522.96 1105C1476.45 1105 1440.73 1093.38 1415.64 1070.26L1414.28 1071.74C1439.86 1095.29 1476.13 1107 1522.96 1107V1105ZM1572.28 1100.52C1556.01 1103.51 1539.57 1105 1522.96 1105V1107C1539.69 1107 1556.25 1105.49 1572.64 1102.48L1572.28 1100.52ZM1615.59 1089.07C1603.34 1094.04 1588.91 1097.85 1572.3 1100.51L1572.62 1102.49C1589.34 1099.81 1603.92 1095.96 1616.34 1090.93L1615.59 1089.07ZM1606.97 1037.65L1614.97 1090.15L1616.95 1089.85L1608.95 1037.35L1606.97 1037.65ZM1565.63 1049.49C1581.68 1046.81 1595.91 1043.13 1608.31 1038.44L1607.61 1036.56C1595.35 1041.2 1581.25 1044.86 1565.3 1047.51L1565.63 1049.49ZM1519.96 1053.5C1534.36 1053.5 1549.58 1052.16 1565.63 1049.49L1565.3 1047.51C1549.34 1050.17 1534.23 1051.5 1519.96 1051.5V1053.5ZM1462.8 1036.75C1475.39 1047.98 1494.51 1053.5 1519.96 1053.5V1051.5C1494.75 1051.5 1476.2 1046.02 1464.13 1035.25L1462.8 1036.75ZM1444.51 996.1C1446.29 1013.83 1452.35 1027.43 1462.8 1036.75L1464.13 1035.25C1454.15 1026.36 1448.24 1013.29 1446.5 995.9L1444.51 996.1ZM1627.96 995H1445.51V997H1627.96V995ZM1627.46 982.5C1627.46 988.492 1627.29 992.947 1626.97 995.89L1628.95 996.11C1629.29 993.053 1629.46 988.508 1629.46 982.5H1627.46ZM1627.96 966.5C1627.96 971.144 1627.8 976.458 1627.46 982.445L1629.46 982.555C1629.79 976.542 1629.96 971.189 1629.96 966.5H1627.96ZM1596.23 870.685C1617.34 893.111 1627.96 925 1627.96 966.5H1629.96C1629.96 924.667 1619.25 892.222 1597.69 869.315L1596.23 870.685ZM1506.96 837C1545.76 837 1575.46 848.268 1596.23 870.68L1597.69 869.32C1576.46 846.399 1546.16 835 1506.96 835V837ZM1412.68 872.692C1435.46 848.93 1466.84 837 1506.96 837V835C1466.42 835 1434.47 847.07 1411.24 871.308L1412.68 872.692ZM1378.46 971C1378.46 929.187 1389.91 896.46 1412.68 872.692L1411.24 871.308C1388.02 895.54 1376.46 928.813 1376.46 971H1378.46ZM1415.64 1070.27C1390.9 1047.17 1378.46 1014.13 1378.46 971H1376.46C1376.46 1014.53 1389.02 1048.16 1414.28 1071.73L1415.64 1070.27ZM1459.68 905.378C1451.43 915.759 1446.46 930.133 1444.69 948.404L1446.69 948.596C1448.43 930.561 1453.31 916.602 1461.24 906.622L1459.68 905.378ZM1506.96 885C1486.06 885 1470.24 891.755 1459.67 905.387L1461.25 906.613C1471.35 893.579 1486.53 887 1506.96 887V885ZM1551.27 904.407C1541.7 891.421 1526.86 885 1506.96 885V887C1526.4 887 1540.56 893.246 1549.66 905.593L1551.27 904.407ZM1565.4 948.419C1563.87 929.501 1559.19 914.789 1551.26 904.393L1549.67 905.607C1557.28 915.586 1561.9 929.874 1563.41 948.581L1565.4 948.419ZM1445.69 949.5H1564.41V947.5H1445.69V949.5ZM1680.59 842H1746.59V840H1680.59V842ZM1681.59 1101V841H1679.59V1101H1681.59ZM1750.09 1100H1680.59V1102H1750.09V1100ZM1749.09 981V1101H1751.09V981H1749.09ZM1764.3 936.89C1754.17 950.06 1749.09 964.774 1749.09 981H1751.09C1751.09 965.226 1756.02 950.94 1765.89 938.11L1764.3 936.89ZM1805.18 905.088C1788.05 912.816 1774.41 923.416 1764.29 936.9L1765.89 938.1C1775.78 924.917 1789.14 914.517 1806 906.912L1805.18 905.088ZM1862.09 893.5C1841.3 893.5 1822.33 897.357 1805.18 905.088L1806 906.912C1822.86 899.309 1841.55 895.5 1862.09 895.5V893.5ZM1861.09 836V894.5H1863.09V836H1861.09ZM1818.38 843.457C1832.62 839.152 1847.19 837 1862.09 837V835C1847 835 1832.23 837.181 1817.8 841.543L1818.38 843.457ZM1779.65 861.332C1791.56 853.39 1804.47 847.433 1818.37 843.462L1817.82 841.538C1803.72 845.567 1790.63 851.61 1778.54 859.668L1779.65 861.332ZM1749.4 890.096C1758 878.52 1768.08 868.935 1779.64 861.336L1778.54 859.664C1766.78 867.398 1756.52 877.147 1747.79 888.904L1749.4 890.096ZM1747.09 890.5H1748.59V888.5H1747.09V890.5ZM1745.59 841.01L1746.09 889.51L1748.09 889.49L1747.59 840.99L1745.59 841.01Z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n"],"mappings":";;;AAMA,MAAaA,qBAAwC,EAAE,QAAS,GAAG,YACjE,qBAAC;CACC,OAAM;CACN,QAAO;CACP,SAAQ;CACR,MAAK;CACL,OAAM;CACN,MAAK;CACL,cAAW;CACX,qBAAoB;CACpB,GAAI;;EAEJ,oBAAC;GACC,UAAS;GACT,UAAS;GACT,GAAE;IACF;EACF,oBAAC;GACC,UAAS;GACT,UAAS;GACT,GAAE;GACF,MAAK;IACL;EACF,oBAAC;GACC,GAAE;GACF,MAAK;IACL;;EACE"}
|
|
1
|
+
{"version":3,"file":"LogoWithTextBelow.mjs","names":["LogoWithTextBelow: FC<LogoBaseProps>"],"sources":["../../../../src/components/Logo/LogoWithTextBelow.tsx"],"sourcesContent":["import type { FC, SVGProps } from 'react';\n\nexport type LogoBaseProps = SVGProps<SVGSVGElement> & {\n bgColor?: string;\n};\n\nexport const LogoWithTextBelow: FC<LogoBaseProps> = ({ bgColor, ...props }) => (\n <svg\n width=\"1868\"\n height=\"1215\"\n viewBox=\"0 0 1868 1215\"\n fill=\"none\"\n xmlns=\"http://www.w3.org/2000/svg\"\n role=\"img\"\n aria-label=\"Intlayer logo\"\n preserveAspectRatio=\"xMidYMid\"\n {...props}\n >\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M697 46C697 21.1472 717.147 1 742 1H987C1011.85 1 1032 21.1472 1032 46C1032 70.8528 1011.85 91 987 91H742C717.147 91 697 70.8528 697 46ZM742 176C717.147 176 697 196.147 697 221C697 245.853 717.147 266 742 266H1122C1146.85 266 1167 245.853 1167 221C1167 196.147 1146.85 176 1122 176H742ZM742 349C717.147 349 697 369.147 697 394C697 418.853 717.147 439 742 439H922C946.853 439 967 418.853 967 394C967 369.147 946.853 349 922 349H742ZM5 736V1101H78V736H5ZM154.715 841V1101H223.715V948C223.715 937 226.215 927.5 231.215 919.5C236.548 911.167 243.882 904.667 253.215 900C262.548 895 273.215 892.5 285.215 892.5C301.215 892.5 312.882 897.5 320.215 907.5C327.548 917.167 331.215 932.833 331.215 954.5V1101H399.715V941C399.715 904.667 392.215 878.167 377.215 861.5C362.548 844.5 339.548 836 308.215 836C289.548 836 273.048 839 258.715 845C244.715 850.667 232.382 859.5 221.715 871.5H220.715L220.215 841H154.715ZM505.02 1087C519.02 1099.67 541.686 1106 573.02 1106C584.02 1106 594.686 1105.17 605.02 1103.5C615.353 1102.17 626.186 1099.83 637.52 1096.5L632.02 1042C625.353 1044.33 618.02 1046.17 610.02 1047.5C602.353 1048.83 595.02 1049.5 588.02 1049.5C575.02 1049.5 566.02 1046.5 561.02 1040.5C556.02 1034.17 553.52 1023.17 553.52 1007.5V894.5H638.02V841H553.52V756H484.52V841H428.02V894.5H484.52V1024.5C484.52 1053.5 491.353 1074.33 505.02 1087ZM700.207 736V1101H770.207V736H700.207ZM844.691 1084.5C859.691 1098.83 880.025 1106 905.691 1106C922.691 1106 939.358 1102.83 955.691 1096.5C972.025 1090.17 984.858 1081.67 994.191 1071H994.691L995.691 1101H1061.19V937C1061.19 912 1057.69 892.167 1050.69 877.5C1043.69 862.5 1032.52 851.833 1017.19 845.5C1001.86 839.167 980.858 836 954.191 836C933.191 836 912.025 837.833 890.691 841.5C869.691 844.833 850.525 849.667 833.191 856L841.691 909C857.691 902.667 874.691 897.833 892.691 894.5C910.691 890.833 928.025 889 944.691 889C957.358 889 967.025 890.333 973.691 893C980.691 895.333 985.525 899.667 988.191 906C991.191 912.333 992.691 921.333 992.691 933H958.191C914.858 933 881.358 941.167 857.691 957.5C834.358 973.833 822.691 997 822.691 1027C822.691 1051 830.025 1070.17 844.691 1084.5ZM962.191 1048C952.858 1052 942.358 1054 930.691 1054C917.025 1054 906.358 1051 898.691 1045C891.358 1039 887.691 1030.67 887.691 1020C887.691 1005.67 894.358 995.167 907.691 988.5C921.025 981.5 941.191 978 968.191 978H992.691V1007.5C992.691 1016.17 989.858 1024.17 984.191 1031.5C978.858 1038.5 971.525 1044 962.191 1048ZM1188.61 1099.5L1145.61 1206H1218.11L1361.11 841H1287.11L1223.61 1033.5H1222.61L1159.61 841L1086.11 841.5L1188.61 1099.5ZM1414.96 1071C1440.29 1094.33 1476.29 1106 1522.96 1106C1539.63 1106 1556.13 1104.5 1572.46 1101.5C1589.13 1098.83 1603.63 1095 1615.96 1090L1607.96 1037.5C1595.63 1042.17 1581.46 1045.83 1565.46 1048.5C1549.46 1051.17 1534.29 1052.5 1519.96 1052.5C1494.63 1052.5 1475.79 1047 1463.46 1036C1453.25 1026.89 1447.27 1013.56 1445.51 996H1627.96C1628.29 993 1628.46 988.5 1628.46 982.5C1628.79 976.5 1628.96 971.167 1628.96 966.5C1628.96 924.833 1618.29 892.667 1596.96 870C1575.96 847.333 1545.96 836 1506.96 836C1466.63 836 1434.96 848 1411.96 872C1388.96 896 1377.46 929 1377.46 971C1377.46 1014.33 1389.96 1047.67 1414.96 1071ZM1445.69 948.5C1447.45 930.347 1452.37 916.18 1460.46 906C1470.79 892.667 1486.29 886 1506.96 886C1526.63 886 1541.13 892.333 1550.46 905C1558.24 915.188 1562.88 929.688 1564.41 948.5H1445.69ZM1746.59 841H1680.59V1101H1750.09V981C1750.09 965 1755.09 950.5 1765.09 937.5C1775.09 924.167 1788.59 913.667 1805.59 906C1822.59 898.333 1841.43 894.5 1862.09 894.5V836C1847.09 836 1832.43 838.167 1818.09 842.5C1804.09 846.5 1791.09 852.5 1779.09 860.5C1767.43 868.167 1757.26 877.833 1748.59 889.5H1747.09L1746.59 841Z\"\n />\n <path\n fillRule=\"evenodd\"\n clipRule=\"evenodd\"\n d=\"M697 46C697 21.1472 717.147 1 742 1H987C1011.85 1 1032 21.1472 1032 46C1032 70.8528 1011.85 91 987 91H742C717.147 91 697 70.8528 697 46ZM742 176C717.147 176 697 196.147 697 221C697 245.853 717.147 266 742 266H1122C1146.85 266 1167 245.853 1167 221C1167 196.147 1146.85 176 1122 176H742ZM742 349C717.147 349 697 369.147 697 394C697 418.853 717.147 439 742 439H922C946.853 439 967 418.853 967 394C967 369.147 946.853 349 922 349H742ZM5 736V1101H78V736H5ZM154.715 841V1101H223.715V948C223.715 937 226.215 927.5 231.215 919.5C236.548 911.167 243.882 904.667 253.215 900C262.548 895 273.215 892.5 285.215 892.5C301.215 892.5 312.882 897.5 320.215 907.5C327.548 917.167 331.215 932.833 331.215 954.5V1101H399.715V941C399.715 904.667 392.215 878.167 377.215 861.5C362.548 844.5 339.548 836 308.215 836C289.548 836 273.048 839 258.715 845C244.715 850.667 232.382 859.5 221.715 871.5H220.715L220.215 841H154.715ZM505.02 1087C519.02 1099.67 541.686 1106 573.02 1106C584.02 1106 594.686 1105.17 605.02 1103.5C615.353 1102.17 626.186 1099.83 637.52 1096.5L632.02 1042C625.353 1044.33 618.02 1046.17 610.02 1047.5C602.353 1048.83 595.02 1049.5 588.02 1049.5C575.02 1049.5 566.02 1046.5 561.02 1040.5C556.02 1034.17 553.52 1023.17 553.52 1007.5V894.5H638.02V841H553.52V756H484.52V841H428.02V894.5H484.52V1024.5C484.52 1053.5 491.353 1074.33 505.02 1087ZM700.207 736V1101H770.207V736H700.207ZM844.691 1084.5C859.691 1098.83 880.025 1106 905.691 1106C922.691 1106 939.358 1102.83 955.691 1096.5C972.025 1090.17 984.858 1081.67 994.191 1071H994.691L995.691 1101H1061.19V937C1061.19 912 1057.69 892.167 1050.69 877.5C1043.69 862.5 1032.52 851.833 1017.19 845.5C1001.86 839.167 980.858 836 954.191 836C933.191 836 912.025 837.833 890.691 841.5C869.691 844.833 850.525 849.667 833.191 856L841.691 909C857.691 902.667 874.691 897.833 892.691 894.5C910.691 890.833 928.025 889 944.691 889C957.358 889 967.025 890.333 973.691 893C980.691 895.333 985.525 899.667 988.191 906C991.191 912.333 992.691 921.333 992.691 933H958.191C914.858 933 881.358 941.167 857.691 957.5C834.358 973.833 822.691 997 822.691 1027C822.691 1051 830.025 1070.17 844.691 1084.5ZM962.191 1048C952.858 1052 942.358 1054 930.691 1054C917.025 1054 906.358 1051 898.691 1045C891.358 1039 887.691 1030.67 887.691 1020C887.691 1005.67 894.358 995.167 907.691 988.5C921.025 981.5 941.191 978 968.191 978H992.691V1007.5C992.691 1016.17 989.858 1024.17 984.191 1031.5C978.858 1038.5 971.525 1044 962.191 1048ZM1188.61 1099.5L1145.61 1206H1218.11L1361.11 841H1287.11L1223.61 1033.5H1222.61L1159.61 841L1086.11 841.5L1188.61 1099.5ZM1414.96 1071C1440.29 1094.33 1476.29 1106 1522.96 1106C1539.63 1106 1556.13 1104.5 1572.46 1101.5C1589.13 1098.83 1603.63 1095 1615.96 1090L1607.96 1037.5C1595.63 1042.17 1581.46 1045.83 1565.46 1048.5C1549.46 1051.17 1534.29 1052.5 1519.96 1052.5C1494.63 1052.5 1475.79 1047 1463.46 1036C1453.25 1026.89 1447.27 1013.56 1445.51 996H1627.96C1628.29 993 1628.46 988.5 1628.46 982.5C1628.79 976.5 1628.96 971.167 1628.96 966.5C1628.96 924.833 1618.29 892.667 1596.96 870C1575.96 847.333 1545.96 836 1506.96 836C1466.63 836 1434.96 848 1411.96 872C1388.96 896 1377.46 929 1377.46 971C1377.46 1014.33 1389.96 1047.67 1414.96 1071ZM1445.69 948.5C1447.45 930.347 1452.37 916.18 1460.46 906C1470.79 892.667 1486.29 886 1506.96 886C1526.63 886 1541.13 892.333 1550.46 905C1558.24 915.188 1562.88 929.688 1564.41 948.5H1445.69ZM1746.59 841H1680.59V1101H1750.09V981C1750.09 965 1755.09 950.5 1765.09 937.5C1775.09 924.167 1788.59 913.667 1805.59 906C1822.59 898.333 1841.43 894.5 1862.09 894.5V836C1847.09 836 1832.43 838.167 1818.09 842.5C1804.09 846.5 1791.09 852.5 1779.09 860.5C1767.43 868.167 1757.26 877.833 1748.59 889.5H1747.09L1746.59 841Z\"\n fill=\"currentColor\"\n />\n <path\n d=\"M5 1101H4V1102H5V1101ZM5 736V735H4V736H5ZM78 1101V1102H79V1101H78ZM78 736H79V735H78V736ZM154.715 1101H153.715V1102H154.715V1101ZM154.715 841V840H153.715V841H154.715ZM223.715 1101V1102H224.715V1101H223.715ZM231.215 919.5L230.373 918.961L230.367 918.97L231.215 919.5ZM253.215 900L253.662 900.894L253.675 900.888L253.687 900.881L253.215 900ZM320.215 907.5L319.408 908.091L319.413 908.098L319.418 908.104L320.215 907.5ZM331.215 1101H330.215V1102H331.215V1101ZM399.715 1101V1102H400.715V1101H399.715ZM377.215 861.5L376.458 862.153L376.465 862.161L376.472 862.169L377.215 861.5ZM258.715 845L259.09 845.927L259.101 845.922L258.715 845ZM221.715 871.5V872.5H222.164L222.462 872.164L221.715 871.5ZM220.715 871.5L219.715 871.516L219.731 872.5H220.715V871.5ZM220.215 841L221.215 840.984L221.199 840H220.215V841ZM505.02 1087L504.34 1087.73L504.349 1087.74L505.02 1087ZM605.02 1103.5L604.892 1102.51L604.876 1102.51L604.86 1102.51L605.02 1103.5ZM637.52 1096.5L637.802 1097.46L638.598 1097.23L638.514 1096.4L637.52 1096.5ZM632.02 1042L633.014 1041.9L632.887 1040.64L631.689 1041.06L632.02 1042ZM610.02 1047.5L609.855 1046.51L609.848 1046.51L610.02 1047.5ZM561.02 1040.5L560.235 1041.12L560.243 1041.13L560.251 1041.14L561.02 1040.5ZM553.52 894.5V893.5H552.52V894.5H553.52ZM638.02 894.5V895.5H639.02V894.5H638.02ZM638.02 841H639.02V840H638.02V841ZM553.52 841H552.52V842H553.52V841ZM553.52 756H554.52V755H553.52V756ZM484.52 756V755H483.52V756H484.52ZM484.52 841V842H485.52V841H484.52ZM428.02 841V840H427.02V841H428.02ZM428.02 894.5H427.02V895.5H428.02V894.5ZM484.52 894.5H485.52V893.5H484.52V894.5ZM700.207 1101H699.207V1102H700.207V1101ZM700.207 736V735H699.207V736H700.207ZM770.207 1101V1102H771.207V1101H770.207ZM770.207 736H771.207V735H770.207V736ZM844.691 1084.5L843.992 1085.22L844.001 1085.22L844.691 1084.5ZM994.191 1071V1070H993.738L993.439 1070.34L994.191 1071ZM994.691 1071L995.691 1070.97L995.659 1070H994.691V1071ZM995.691 1101L994.692 1101.03L994.724 1102H995.691V1101ZM1061.19 1101V1102H1062.19V1101H1061.19ZM1050.69 877.5L1049.79 877.923L1049.79 877.931L1050.69 877.5ZM1017.19 845.5L1016.81 846.424L1016.81 846.424L1017.19 845.5ZM890.691 841.5L890.848 842.488L890.861 842.486L890.691 841.5ZM833.191 856L832.848 855.061L832.073 855.344L832.204 856.158L833.191 856ZM841.691 909L840.704 909.158L840.901 910.388L842.059 909.93L841.691 909ZM892.691 894.5L892.873 895.483L892.882 895.482L892.891 895.48L892.691 894.5ZM973.691 893L973.32 893.928L973.347 893.939L973.375 893.949L973.691 893ZM988.191 906L987.27 906.388L987.278 906.408L987.288 906.428L988.191 906ZM992.691 933V934H993.691V933H992.691ZM857.691 957.5L857.123 956.677L857.118 956.681L857.691 957.5ZM898.691 1045L898.058 1045.77L898.067 1045.78L898.075 1045.79L898.691 1045ZM907.691 988.5L908.139 989.394L908.147 989.39L908.156 989.385L907.691 988.5ZM992.691 978H993.691V977H992.691V978ZM984.191 1031.5L983.4 1030.89L983.396 1030.89L984.191 1031.5ZM1145.61 1206L1144.68 1205.63L1144.12 1207H1145.61V1206ZM1188.61 1099.5L1189.53 1099.87L1189.68 1099.5L1189.53 1099.13L1188.61 1099.5ZM1218.11 1206V1207H1218.79L1219.04 1206.36L1218.11 1206ZM1361.11 841L1362.04 841.365L1362.57 840H1361.11V841ZM1287.11 841V840H1286.38L1286.16 840.687L1287.11 841ZM1223.61 1033.5V1034.5H1224.33L1224.56 1033.81L1223.61 1033.5ZM1222.61 1033.5L1221.66 1033.81L1221.88 1034.5H1222.61V1033.5ZM1159.61 841L1160.56 840.689L1160.33 839.995L1159.6 840L1159.61 841ZM1086.11 841.5L1086.1 840.5L1084.64 840.51L1085.18 841.869L1086.11 841.5ZM1414.96 1071L1414.28 1071.73L1414.28 1071.74L1414.96 1071ZM1572.46 1101.5L1572.3 1100.51L1572.29 1100.51L1572.28 1100.52L1572.46 1101.5ZM1615.96 1090L1616.34 1090.93L1617.07 1090.63L1616.95 1089.85L1615.96 1090ZM1607.96 1037.5L1608.95 1037.35L1608.76 1036.13L1607.61 1036.56L1607.96 1037.5ZM1463.46 1036L1464.13 1035.25L1464.13 1035.25L1463.46 1036ZM1445.51 996V995H1444.4L1444.51 996.1L1445.51 996ZM1627.96 996V997H1628.86L1628.95 996.11L1627.96 996ZM1628.46 982.5L1627.46 982.445L1627.46 982.472V982.5H1628.46ZM1596.96 870L1596.23 870.68L1596.23 870.685L1596.96 870ZM1460.46 906L1461.24 906.622L1461.25 906.613L1460.46 906ZM1445.69 948.5L1444.69 948.404L1444.59 949.5H1445.69V948.5ZM1550.46 905L1549.66 905.593L1549.66 905.6L1549.67 905.607L1550.46 905ZM1564.41 948.5V949.5H1565.49L1565.4 948.419L1564.41 948.5ZM1680.59 841V840H1679.59V841H1680.59ZM1746.59 841L1747.59 840.99L1747.58 840H1746.59V841ZM1680.59 1101H1679.59V1102H1680.59V1101ZM1750.09 1101V1102H1751.09V1101H1750.09ZM1765.09 937.5L1765.89 938.11L1765.89 938.1L1765.09 937.5ZM1862.09 894.5V895.5H1863.09V894.5H1862.09ZM1862.09 836H1863.09V835H1862.09V836ZM1818.09 842.5L1818.37 843.462L1818.38 843.459L1818.38 843.457L1818.09 842.5ZM1779.09 860.5L1779.64 861.336L1779.65 861.332L1779.09 860.5ZM1748.59 889.5V890.5H1749.1L1749.4 890.096L1748.59 889.5ZM1747.09 889.5L1746.09 889.51L1746.1 890.5H1747.09V889.5ZM742 0C716.595 0 696 20.5949 696 46H698C698 21.6995 717.7 2 742 2V0ZM987 0H742V2H987V0ZM1033 46C1033 20.5949 1012.41 0 987 0V2C1011.3 2 1031 21.6995 1031 46H1033ZM987 92C1012.41 92 1033 71.4051 1033 46H1031C1031 70.3005 1011.3 90 987 90V92ZM742 92H987V90H742V92ZM696 46C696 71.4051 716.595 92 742 92V90C717.7 90 698 70.3005 698 46H696ZM698 221C698 196.699 717.699 177 742 177V175C716.595 175 696 195.595 696 221H698ZM742 265C717.699 265 698 245.301 698 221H696C696 246.405 716.595 267 742 267V265ZM1122 265H742V267H1122V265ZM1166 221C1166 245.301 1146.3 265 1122 265V267C1147.41 267 1168 246.405 1168 221H1166ZM1122 177C1146.3 177 1166 196.699 1166 221H1168C1168 195.595 1147.41 175 1122 175V177ZM742 177H1122V175H742V177ZM698 394C698 369.699 717.7 350 742 350V348C716.595 348 696 368.595 696 394H698ZM742 438C717.7 438 698 418.3 698 394H696C696 419.405 716.595 440 742 440V438ZM922 438H742V440H922V438ZM966 394C966 418.3 946.3 438 922 438V440C947.405 440 968 419.405 968 394H966ZM922 350C946.3 350 966 369.699 966 394H968C968 368.595 947.405 348 922 348V350ZM742 350H922V348H742V350ZM6 1101V736H4V1101H6ZM78 1100H5V1102H78V1100ZM77 736V1101H79V736H77ZM5 737H78V735H5V737ZM155.715 1101V841H153.715V1101H155.715ZM223.715 1100H154.715V1102H223.715V1100ZM222.715 948V1101H224.715V948H222.715ZM230.367 918.97C225.252 927.154 222.715 936.844 222.715 948H224.715C224.715 937.156 227.178 927.846 232.063 920.03L230.367 918.97ZM252.768 899.106C243.282 903.848 235.809 910.467 230.373 918.961L232.057 920.039C237.288 911.866 244.481 905.485 253.662 900.894L252.768 899.106ZM285.215 891.5C273.072 891.5 262.24 894.031 252.743 899.119L253.687 900.881C262.857 895.969 273.357 893.5 285.215 893.5V891.5ZM321.021 906.909C313.446 896.579 301.432 891.5 285.215 891.5V893.5C300.998 893.5 312.317 898.421 319.408 908.091L321.021 906.909ZM332.215 954.5C332.215 932.767 328.546 916.827 321.012 906.896L319.418 908.104C326.551 917.506 330.215 932.9 330.215 954.5H332.215ZM332.215 1101V954.5H330.215V1101H332.215ZM399.715 1100H331.215V1102H399.715V1100ZM398.715 941V1101H400.715V941H398.715ZM376.472 862.169C391.23 878.567 398.715 904.769 398.715 941H400.715C400.715 904.564 393.2 877.766 377.958 860.831L376.472 862.169ZM308.215 837C339.377 837 362.047 845.45 376.458 862.153L377.972 860.847C363.049 843.55 339.719 835 308.215 835V837ZM259.101 845.922C273.29 839.983 289.655 837 308.215 837V835C289.442 835 272.806 838.017 258.329 844.078L259.101 845.922ZM222.462 872.164C233.033 860.272 245.242 851.532 259.09 845.927L258.34 844.073C244.188 849.801 231.73 858.728 220.967 870.836L222.462 872.164ZM220.715 872.5H221.715V870.5H220.715V872.5ZM219.215 841.016L219.715 871.516L221.715 871.484L221.215 840.984L219.215 841.016ZM154.715 842H220.215V840H154.715V842ZM573.02 1105C541.781 1105 519.418 1098.68 505.69 1086.26L504.349 1087.74C518.621 1100.65 541.591 1107 573.02 1107V1105ZM604.86 1102.51C594.582 1104.17 583.969 1105 573.02 1105V1107C584.07 1107 594.79 1106.16 605.179 1104.49L604.86 1102.51ZM637.237 1095.54C625.948 1098.86 615.166 1101.18 604.892 1102.51L605.148 1104.49C615.539 1103.15 626.424 1100.81 637.802 1097.46L637.237 1095.54ZM631.025 1042.1L636.525 1096.6L638.514 1096.4L633.014 1041.9L631.025 1042.1ZM610.184 1048.49C618.232 1047.14 625.622 1045.3 632.35 1042.94L631.689 1041.06C625.084 1043.37 617.807 1045.19 609.855 1046.51L610.184 1048.49ZM588.02 1050.5C595.083 1050.5 602.474 1049.83 610.191 1048.49L609.848 1046.51C602.232 1047.84 594.956 1048.5 588.02 1048.5V1050.5ZM560.251 1041.14C565.537 1047.48 574.915 1050.5 588.02 1050.5V1048.5C575.124 1048.5 566.502 1045.52 561.788 1039.86L560.251 1041.14ZM552.52 1007.5C552.52 1023.21 555.014 1034.51 560.235 1041.12L561.804 1039.88C557.025 1033.83 554.52 1023.12 554.52 1007.5H552.52ZM552.52 894.5V1007.5H554.52V894.5H552.52ZM638.02 893.5H553.52V895.5H638.02V893.5ZM637.02 841V894.5H639.02V841H637.02ZM553.52 842H638.02V840H553.52V842ZM552.52 756V841H554.52V756H552.52ZM484.52 757H553.52V755H484.52V757ZM485.52 841V756H483.52V841H485.52ZM428.02 842H484.52V840H428.02V842ZM429.02 894.5V841H427.02V894.5H429.02ZM484.52 893.5H428.02V895.5H484.52V893.5ZM485.52 1024.5V894.5H483.52V1024.5H485.52ZM505.699 1086.27C492.327 1073.87 485.52 1053.37 485.52 1024.5H483.52C483.52 1053.63 490.379 1074.79 504.34 1087.73L505.699 1086.27ZM701.207 1101V736H699.207V1101H701.207ZM770.207 1100H700.207V1102H770.207V1100ZM769.207 736V1101H771.207V736H769.207ZM700.207 737H770.207V735H700.207V737ZM905.691 1105C880.218 1105 860.154 1097.89 845.382 1083.78L844.001 1085.22C859.228 1099.77 879.832 1107 905.691 1107V1105ZM955.33 1095.57C939.108 1101.86 922.564 1105 905.691 1105V1107C922.819 1107 939.608 1103.81 956.053 1097.43L955.33 1095.57ZM993.439 1070.34C984.234 1080.86 971.548 1089.28 955.33 1095.57L956.053 1097.43C972.502 1091.05 985.482 1082.47 994.944 1071.66L993.439 1070.34ZM994.691 1070H994.191V1072H994.691V1070ZM996.691 1100.97L995.691 1070.97L993.692 1071.03L994.692 1101.03L996.691 1100.97ZM1061.19 1100H995.691V1102H1061.19V1100ZM1060.19 937V1101H1062.19V937H1060.19ZM1049.79 877.931C1056.7 892.41 1060.19 912.077 1060.19 937H1062.19C1062.19 911.923 1058.68 891.923 1051.59 877.069L1049.79 877.931ZM1016.81 846.424C1031.91 852.662 1042.89 863.15 1049.79 877.923L1051.6 877.077C1044.49 861.85 1033.14 851.004 1017.57 844.576L1016.81 846.424ZM954.191 837C980.797 837 1001.65 840.162 1016.81 846.424L1017.57 844.576C1002.07 838.171 980.919 835 954.191 835V837ZM890.861 842.486C912.14 838.828 933.25 837 954.191 837V835C933.133 835 911.91 836.838 890.522 840.514L890.861 842.486ZM833.535 856.939C850.799 850.631 869.902 845.812 890.848 842.488L890.535 840.512C869.48 843.854 850.25 848.702 832.848 855.061L833.535 856.939ZM842.679 908.842L834.179 855.842L832.204 856.158L840.704 909.158L842.679 908.842ZM892.509 893.517C874.45 896.861 857.387 901.712 841.323 908.07L842.059 909.93C857.996 903.622 874.933 898.806 892.873 895.483L892.509 893.517ZM944.691 888C927.951 888 910.551 889.841 892.492 893.52L892.891 895.48C910.832 891.825 928.098 890 944.691 890V888ZM974.063 892.072C967.22 889.334 957.403 888 944.691 888V890C957.313 890 966.829 891.332 973.32 893.928L974.063 892.072ZM989.113 905.612C986.326 898.992 981.258 894.468 974.008 892.051L973.375 893.949C980.125 896.199 984.724 900.341 987.27 906.388L989.113 905.612ZM993.691 933C993.691 921.271 992.187 912.1 989.095 905.572L987.288 906.428C990.196 912.567 991.691 921.395 991.691 933H993.691ZM958.191 934H992.691V932H958.191V934ZM858.259 958.323C881.694 942.15 914.964 934 958.191 934V932C914.752 932 881.022 940.184 857.123 956.677L858.259 958.323ZM823.691 1027C823.691 997.306 835.215 974.454 858.265 958.319L857.118 956.681C833.501 973.213 821.691 996.694 821.691 1027H823.691ZM845.39 1083.78C830.949 1069.67 823.691 1050.78 823.691 1027H821.691C821.691 1051.22 829.1 1070.66 843.992 1085.22L845.39 1083.78ZM930.691 1055C942.473 1055 953.11 1052.98 962.585 1048.92L961.797 1047.08C952.606 1051.02 942.243 1053 930.691 1053V1055ZM898.075 1045.79C905.977 1051.97 916.89 1055 930.691 1055V1053C917.16 1053 906.74 1050.03 899.308 1044.21L898.075 1045.79ZM886.691 1020C886.691 1030.92 890.462 1039.56 898.058 1045.77L899.325 1044.23C892.255 1038.44 888.691 1030.41 888.691 1020H886.691ZM907.244 987.606C900.448 991.004 895.296 995.408 891.847 1000.84C888.397 1006.27 886.691 1012.67 886.691 1020H888.691C888.691 1012.99 890.319 1006.98 893.536 1001.91C896.754 996.842 901.602 992.663 908.139 989.394L907.244 987.606ZM968.191 977C941.139 977 920.776 980.501 907.227 987.615L908.156 989.385C921.273 982.499 941.244 979 968.191 979V977ZM992.691 977H968.191V979H992.691V977ZM993.691 1007.5V978H991.691V1007.5H993.691ZM984.983 1032.11C990.775 1024.62 993.691 1016.4 993.691 1007.5H991.691C991.691 1015.93 988.942 1023.72 983.4 1030.89L984.983 1032.11ZM962.585 1048.92C972.053 1044.86 979.534 1039.26 984.987 1032.11L983.396 1030.89C978.182 1037.74 970.997 1043.14 961.797 1047.08L962.585 1048.92ZM1146.53 1206.37L1189.53 1099.87L1187.68 1099.13L1144.68 1205.63L1146.53 1206.37ZM1218.11 1205H1145.61V1207H1218.11V1205ZM1360.17 840.635L1217.17 1205.64L1219.04 1206.36L1362.04 841.365L1360.17 840.635ZM1287.11 842H1361.11V840H1287.11V842ZM1224.56 1033.81L1288.06 841.313L1286.16 840.687L1222.66 1033.19L1224.56 1033.81ZM1222.61 1034.5H1223.61V1032.5H1222.61V1034.5ZM1158.66 841.311L1221.66 1033.81L1223.56 1033.19L1160.56 840.689L1158.66 841.311ZM1086.11 842.5L1159.61 842L1159.6 840L1086.1 840.5L1086.11 842.5ZM1189.53 1099.13L1087.03 841.131L1085.18 841.869L1187.68 1099.87L1189.53 1099.13ZM1522.96 1105C1476.45 1105 1440.73 1093.38 1415.64 1070.26L1414.28 1071.74C1439.86 1095.29 1476.13 1107 1522.96 1107V1105ZM1572.28 1100.52C1556.01 1103.51 1539.57 1105 1522.96 1105V1107C1539.69 1107 1556.25 1105.49 1572.64 1102.48L1572.28 1100.52ZM1615.59 1089.07C1603.34 1094.04 1588.91 1097.85 1572.3 1100.51L1572.62 1102.49C1589.34 1099.81 1603.92 1095.96 1616.34 1090.93L1615.59 1089.07ZM1606.97 1037.65L1614.97 1090.15L1616.95 1089.85L1608.95 1037.35L1606.97 1037.65ZM1565.63 1049.49C1581.68 1046.81 1595.91 1043.13 1608.31 1038.44L1607.61 1036.56C1595.35 1041.2 1581.25 1044.86 1565.3 1047.51L1565.63 1049.49ZM1519.96 1053.5C1534.36 1053.5 1549.58 1052.16 1565.63 1049.49L1565.3 1047.51C1549.34 1050.17 1534.23 1051.5 1519.96 1051.5V1053.5ZM1462.8 1036.75C1475.39 1047.98 1494.51 1053.5 1519.96 1053.5V1051.5C1494.75 1051.5 1476.2 1046.02 1464.13 1035.25L1462.8 1036.75ZM1444.51 996.1C1446.29 1013.83 1452.35 1027.43 1462.8 1036.75L1464.13 1035.25C1454.15 1026.36 1448.24 1013.29 1446.5 995.9L1444.51 996.1ZM1627.96 995H1445.51V997H1627.96V995ZM1627.46 982.5C1627.46 988.492 1627.29 992.947 1626.97 995.89L1628.95 996.11C1629.29 993.053 1629.46 988.508 1629.46 982.5H1627.46ZM1627.96 966.5C1627.96 971.144 1627.8 976.458 1627.46 982.445L1629.46 982.555C1629.79 976.542 1629.96 971.189 1629.96 966.5H1627.96ZM1596.23 870.685C1617.34 893.111 1627.96 925 1627.96 966.5H1629.96C1629.96 924.667 1619.25 892.222 1597.69 869.315L1596.23 870.685ZM1506.96 837C1545.76 837 1575.46 848.268 1596.23 870.68L1597.69 869.32C1576.46 846.399 1546.16 835 1506.96 835V837ZM1412.68 872.692C1435.46 848.93 1466.84 837 1506.96 837V835C1466.42 835 1434.47 847.07 1411.24 871.308L1412.68 872.692ZM1378.46 971C1378.46 929.187 1389.91 896.46 1412.68 872.692L1411.24 871.308C1388.02 895.54 1376.46 928.813 1376.46 971H1378.46ZM1415.64 1070.27C1390.9 1047.17 1378.46 1014.13 1378.46 971H1376.46C1376.46 1014.53 1389.02 1048.16 1414.28 1071.73L1415.64 1070.27ZM1459.68 905.378C1451.43 915.759 1446.46 930.133 1444.69 948.404L1446.69 948.596C1448.43 930.561 1453.31 916.602 1461.24 906.622L1459.68 905.378ZM1506.96 885C1486.06 885 1470.24 891.755 1459.67 905.387L1461.25 906.613C1471.35 893.579 1486.53 887 1506.96 887V885ZM1551.27 904.407C1541.7 891.421 1526.86 885 1506.96 885V887C1526.4 887 1540.56 893.246 1549.66 905.593L1551.27 904.407ZM1565.4 948.419C1563.87 929.501 1559.19 914.789 1551.26 904.393L1549.67 905.607C1557.28 915.586 1561.9 929.874 1563.41 948.581L1565.4 948.419ZM1445.69 949.5H1564.41V947.5H1445.69V949.5ZM1680.59 842H1746.59V840H1680.59V842ZM1681.59 1101V841H1679.59V1101H1681.59ZM1750.09 1100H1680.59V1102H1750.09V1100ZM1749.09 981V1101H1751.09V981H1749.09ZM1764.3 936.89C1754.17 950.06 1749.09 964.774 1749.09 981H1751.09C1751.09 965.226 1756.02 950.94 1765.89 938.11L1764.3 936.89ZM1805.18 905.088C1788.05 912.816 1774.41 923.416 1764.29 936.9L1765.89 938.1C1775.78 924.917 1789.14 914.517 1806 906.912L1805.18 905.088ZM1862.09 893.5C1841.3 893.5 1822.33 897.357 1805.18 905.088L1806 906.912C1822.86 899.309 1841.55 895.5 1862.09 895.5V893.5ZM1861.09 836V894.5H1863.09V836H1861.09ZM1818.38 843.457C1832.62 839.152 1847.19 837 1862.09 837V835C1847 835 1832.23 837.181 1817.8 841.543L1818.38 843.457ZM1779.65 861.332C1791.56 853.39 1804.47 847.433 1818.37 843.462L1817.82 841.538C1803.72 845.567 1790.63 851.61 1778.54 859.668L1779.65 861.332ZM1749.4 890.096C1758 878.52 1768.08 868.935 1779.64 861.336L1778.54 859.664C1766.78 867.398 1756.52 877.147 1747.79 888.904L1749.4 890.096ZM1747.09 890.5H1748.59V888.5H1747.09V890.5ZM1745.59 841.01L1746.09 889.51L1748.09 889.49L1747.59 840.99L1745.59 841.01Z\"\n fill=\"currentColor\"\n />\n </svg>\n);\n"],"mappings":";;;AAMA,MAAaA,qBAAwC,EAAE,SAAS,GAAG,YACjE,qBAAC;CACC,OAAM;CACN,QAAO;CACP,SAAQ;CACR,MAAK;CACL,OAAM;CACN,MAAK;CACL,cAAW;CACX,qBAAoB;CACpB,GAAI;;EAEJ,oBAAC;GACC,UAAS;GACT,UAAS;GACT,GAAE;IACF;EACF,oBAAC;GACC,UAAS;GACT,UAAS;GACT,GAAE;GACF,MAAK;IACL;EACF,oBAAC;GACC,GAAE;GACF,MAAK;IACL;;EACE"}
|
|
@@ -177,7 +177,7 @@ const stripFrontmatter = (markdown) => {
|
|
|
177
177
|
* @returns Rendered markdown content with custom styling and functionality
|
|
178
178
|
*/
|
|
179
179
|
const MarkdownRenderer = ({ children, isDarkMode, locale, options }) => {
|
|
180
|
-
const { overrides
|
|
180
|
+
const { overrides, ...restOptions } = options ?? {};
|
|
181
181
|
const cleanMarkdown = stripFrontmatter(children);
|
|
182
182
|
return /* @__PURE__ */ jsx(CodeProvider, { children: /* @__PURE__ */ jsx(TabProvider, { children: /* @__PURE__ */ jsx(MarkdownProcessor, {
|
|
183
183
|
options: {
|
|
@@ -188,22 +188,27 @@ const MarkdownRenderer = ({ children, isDarkMode, locale, options }) => {
|
|
|
188
188
|
}),
|
|
189
189
|
h2: (props) => /* @__PURE__ */ jsx(H2, {
|
|
190
190
|
isClickable: true,
|
|
191
|
+
className: "mt-16",
|
|
191
192
|
...props
|
|
192
193
|
}),
|
|
193
194
|
h3: (props) => /* @__PURE__ */ jsx(H3, {
|
|
194
195
|
isClickable: true,
|
|
196
|
+
className: "mt-5",
|
|
195
197
|
...props
|
|
196
198
|
}),
|
|
197
199
|
h4: (props) => /* @__PURE__ */ jsx(H4, {
|
|
198
200
|
isClickable: true,
|
|
201
|
+
className: "mt-3",
|
|
199
202
|
...props
|
|
200
203
|
}),
|
|
201
204
|
h5: (props) => /* @__PURE__ */ jsx(H5, {
|
|
202
205
|
isClickable: true,
|
|
206
|
+
className: "mt-3",
|
|
203
207
|
...props
|
|
204
208
|
}),
|
|
205
209
|
h6: (props) => /* @__PURE__ */ jsx(H6, {
|
|
206
210
|
isClickable: true,
|
|
211
|
+
className: "mt-3",
|
|
207
212
|
...props
|
|
208
213
|
}),
|
|
209
214
|
code: (props) => !props.className ? /* @__PURE__ */ jsx("strong", {
|
|
@@ -216,19 +221,19 @@ const MarkdownRenderer = ({ children, isDarkMode, locale, options }) => {
|
|
|
216
221
|
fileName: props.fileName,
|
|
217
222
|
showHeader: Boolean(props.fileName)
|
|
218
223
|
}),
|
|
219
|
-
blockquote: ({ className
|
|
224
|
+
blockquote: ({ className, ...props }) => /* @__PURE__ */ jsx("blockquote", {
|
|
220
225
|
className: cn("mt-5 gap-3 border-card border-l-4 pl-5 text-neutral", className),
|
|
221
226
|
...props
|
|
222
227
|
}),
|
|
223
|
-
ul: ({ className
|
|
228
|
+
ul: ({ className, ...props }) => /* @__PURE__ */ jsx("ul", {
|
|
224
229
|
className: cn("mt-5 flex list-disc flex-col gap-3 pl-5", className),
|
|
225
230
|
...props
|
|
226
231
|
}),
|
|
227
|
-
ol: ({ className
|
|
232
|
+
ol: ({ className, ...props }) => /* @__PURE__ */ jsx("ol", {
|
|
228
233
|
className: cn("mt-5 flex list-decimal flex-col gap-3 pl-5", className),
|
|
229
234
|
...props
|
|
230
235
|
}),
|
|
231
|
-
img: ({ className
|
|
236
|
+
img: ({ className, ...props }) => /* @__PURE__ */ jsx("img", {
|
|
232
237
|
...props,
|
|
233
238
|
loading: "lazy",
|
|
234
239
|
className: cn("max-h-[80vh] max-w-full rounded-md", className),
|
|
@@ -246,30 +251,30 @@ const MarkdownRenderer = ({ children, isDarkMode, locale, options }) => {
|
|
|
246
251
|
isRollable: true,
|
|
247
252
|
...props
|
|
248
253
|
}),
|
|
249
|
-
th: ({ className
|
|
254
|
+
th: ({ className, ...props }) => /* @__PURE__ */ jsx("th", {
|
|
250
255
|
className: cn("border-neutral border-b bg-neutral/10 p-4", className),
|
|
251
256
|
...props
|
|
252
257
|
}),
|
|
253
|
-
tr: ({ className
|
|
258
|
+
tr: ({ className, ...props }) => /* @__PURE__ */ jsx("tr", {
|
|
254
259
|
className: cn("hover:/10 hover:bg-neutral/10", className),
|
|
255
260
|
...props
|
|
256
261
|
}),
|
|
257
|
-
td: ({ className
|
|
262
|
+
td: ({ className, ...props }) => /* @__PURE__ */ jsx("td", {
|
|
258
263
|
className: cn("border-neutral-500/50 border-b p-4", className),
|
|
259
264
|
...props
|
|
260
265
|
}),
|
|
261
|
-
hr: ({ className
|
|
266
|
+
hr: ({ className, ...props }) => /* @__PURE__ */ jsx("hr", {
|
|
262
267
|
className: cn("mx-6 mt-16 text-neutral", className),
|
|
263
268
|
...props
|
|
264
269
|
}),
|
|
265
270
|
Tabs: (props) => /* @__PURE__ */ jsx(Tab, { ...props }),
|
|
266
271
|
Tab: (props) => /* @__PURE__ */ jsx(Tab, { ...props }),
|
|
267
272
|
TabItem: (props) => /* @__PURE__ */ jsx(Tab.Item, { ...props }),
|
|
268
|
-
Columns: ({ className
|
|
273
|
+
Columns: ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
269
274
|
className: cn("flex gap-4 max-md:flex-col", className),
|
|
270
275
|
...props
|
|
271
276
|
}),
|
|
272
|
-
Column: ({ className
|
|
277
|
+
Column: ({ className, ...props }) => /* @__PURE__ */ jsx("div", {
|
|
273
278
|
className: cn("flex-1", className),
|
|
274
279
|
...props
|
|
275
280
|
}),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MarkDownRender.mjs","names":["MarkdownRenderer: FC<MarkdownRendererProps>"],"sources":["../../../../src/components/MarkDownRender/MarkDownRender.tsx"],"sourcesContent":["import type { LocalesValues } from '@intlayer/types';\nimport type { ComponentProps, ComponentPropsWithoutRef, FC } from 'react';\nimport type { BundledLanguage } from 'shiki/bundle/web';\nimport { cn } from '../../utils/cn';\nimport { H1, H2, H3, H4, H5, H6 } from '../Headers';\nimport type { CodeCompAttributes } from '../IDE/Code';\nimport { Code } from '../IDE/Code';\nimport { CodeProvider } from '../IDE/CodeContext';\nimport { Link } from '../Link';\nimport { Tab } from '../Tab';\nimport { TabProvider } from '../Tab/TabContext';\nimport { Table } from '../Table';\nimport { MarkdownProcessor, type MarkdownProcessorOptions } from './processor';\n\ntype MarkdownRendererProps = {\n children: string;\n isDarkMode?: boolean;\n locale?: LocalesValues;\n options?: MarkdownProcessorOptions;\n};\n\n/**\n * Removes frontmatter from markdown content\n * Frontmatter is the YAML metadata block at the beginning of markdown files\n * delimited by --- at the start and end\n */\nconst stripFrontmatter = (markdown: string): string => {\n const lines = markdown.split(/\\r?\\n/);\n\n // Check if the very first non-empty line is the metadata start delimiter\n const firstNonEmptyLine = lines.find((line) => line.trim() !== '');\n\n if (!firstNonEmptyLine || firstNonEmptyLine.trim() !== '---') {\n // No frontmatter, return original content\n return markdown;\n }\n\n let inMetadataBlock = false;\n let endOfMetadataIndex = -1;\n\n for (let i = 0; i < lines.length; i++) {\n const trimmedLine = lines[i].trim();\n\n // Toggle metadata block on encountering the delimiter\n if (trimmedLine === '---') {\n if (!inMetadataBlock) {\n // Begin metadata block\n inMetadataBlock = true;\n } else {\n // End of metadata block\n endOfMetadataIndex = i;\n break;\n }\n }\n }\n\n if (endOfMetadataIndex > -1) {\n // Return content after the frontmatter\n return lines.slice(endOfMetadataIndex + 1).join('\\n');\n }\n\n // If we couldn't find the end delimiter, return original content\n return markdown;\n};\n\n/**\n * MarkdownRenderer Component\n *\n * A comprehensive markdown renderer that transforms markdown text into rich,\n * interactive HTML with custom styling and Intlayer integration. Supports\n * code syntax highlighting, responsive tables, internationalized links,\n * and automatic frontmatter stripping.\n *\n * @component\n * @example\n * Basic usage:\n * ```tsx\n * const markdownContent = `\n * # Hello World\n * This is **bold** and *italic* text.\n * `;\n *\n * <MarkdownRenderer>{markdownContent}</MarkdownRenderer>\n * ```\n *\n * @example\n * With dark mode:\n * ```tsx\n * const codeExample = `\n * # API Documentation\n * \\`\\`\\`javascript\n * const response = await fetch('/api/data');\n * const data = await response.json();\n * \\`\\`\\`\n * `;\n *\n * <MarkdownRenderer isDarkMode={true}>\n * {codeExample}\n * </MarkdownRenderer>\n * ```\n *\n * @example\n * With internationalized links:\n * ```tsx\n * const content = `\n * Visit our [documentation](/docs) for more information.\n * External link: [Google](https://google.com)\n * `;\n *\n * <MarkdownRenderer locale=\"fr\">\n * {content}\n * </MarkdownRenderer>\n * ```\n *\n * @example\n * With custom overrides:\n * ```tsx\n * const customOptions = {\n * overrides: {\n * h1: ({ children }) => (\n * <h1 className=\"custom-title\">{children}</h1>\n * ),\n * },\n * };\n *\n * <MarkdownRenderer options={customOptions}>\n * {markdownContent}\n * </MarkdownRenderer>\n * ```\n *\n * @example\n * With frontmatter (automatically stripped):\n * ```tsx\n * const blogPost = `\n * ---\n * title: \"My Blog Post\"\n * date: \"2023-12-01\"\n * author: \"John Doe\"\n * ---\n * # My Blog Post\n * This content will be rendered without the frontmatter.\n * `;\n *\n * <MarkdownRenderer>{blogPost}</MarkdownRenderer>\n * ```\n *\n * Features:\n * - Automatic frontmatter detection and removal\n * - Syntax-highlighted code blocks with theme support\n * - Clickable headers with anchor links\n * - Internationalized link handling with locale awareness\n * - Responsive tables with hover effects\n * - Custom blockquote, list, and image styling\n * - External link detection and security attributes\n * - Inline code with distinctive styling\n * - Lazy-loaded images with GitHub raw URL support\n * - Horizontal rules with custom styling\n *\n * Supported Markdown Elements:\n * - Headers (h1-h4) with click-to-anchor functionality\n * - Code blocks with language-specific syntax highlighting\n * - Inline code with background styling\n * - Blockquotes with custom border and padding\n * - Ordered and unordered lists with custom spacing\n * - Links (internal and external) with security attributes\n * - Images with lazy loading and responsive sizing\n * - Tables with hover effects and proper styling\n * - Horizontal rules with custom appearance\n * - All standard markdown formatting (bold, italic, etc.)\n *\n * Code Block Support:\n * - Language detection from code fence info\n * - Syntax highlighting through Code component\n * - Dark/light mode theme switching\n * - Line numbers and copy functionality (via Code component)\n * - Support for popular languages (JS, TS, Python, etc.)\n *\n * Link Handling:\n * - Automatic external link detection (starts with 'http')\n * - Security attributes for external links (rel=\"noopener noreferrer\")\n * - Locale-aware internal link routing\n * - Custom Link component integration\n * - Underlined styling for better visibility\n *\n * Image Processing:\n * - Automatic lazy loading for performance\n * - GitHub raw URL transformation for repository images\n * - Responsive sizing with max-width constraints\n * - Rounded corners for visual appeal\n *\n * Accessibility:\n * - Semantic HTML structure with proper heading hierarchy\n * - ARIA attributes through component integration\n * - Screen reader friendly link descriptions\n * - Keyboard navigation support\n * - High contrast styling options\n *\n * Performance:\n * - Lazy loading for images\n * - Efficient re-rendering with React memo patterns\n * - Code syntax highlighting with minimal bundle impact\n * - Optimized markdown parsing with markdown-to-jsx\n *\n * @param props - Component props\n * @param props.children - Raw markdown content to render\n * @param props.isDarkMode - Enable dark mode styling for code blocks\n * @param props.locale - Current locale for link internationalization\n * @param props.options - Additional markdown-to-jsx options\n * @param props.options.overrides - Custom component overrides for markdown elements\n *\n * @returns Rendered markdown content with custom styling and functionality\n */\nexport const MarkdownRenderer: FC<MarkdownRendererProps> = ({\n children,\n isDarkMode,\n locale,\n options,\n}) => {\n const { overrides, ...restOptions } = options ?? {};\n\n // Strip frontmatter from the markdown content before rendering\n const cleanMarkdown = stripFrontmatter(children);\n\n return (\n <CodeProvider>\n <TabProvider>\n <MarkdownProcessor\n options={{\n overrides: {\n h1: (props: ComponentProps<typeof H1>) => (\n <H1 isClickable={true} {...props} />\n ),\n h2: (props: ComponentProps<typeof H2>) => (\n <H2 isClickable={true} {...props} />\n ),\n h3: (props: ComponentProps<typeof H3>) => (\n <H3 isClickable={true} {...props} />\n ),\n h4: (props: ComponentProps<typeof H4>) => (\n <H4 isClickable={true} {...props} />\n ),\n h5: (props: ComponentProps<typeof H5>) => (\n <H5 isClickable={true} {...props} />\n ),\n h6: (props: ComponentProps<typeof H6>) => (\n <H6 isClickable={true} {...props} />\n ),\n\n code: (\n props: Omit<ComponentPropsWithoutRef<'code'>, 'children'> &\n Partial<CodeCompAttributes> & { children: string }\n ) =>\n !props.className ? (\n <strong className=\"rounded bg-card/60 box-decoration-clone px-1 py-0.5\">\n {props.children}\n </strong>\n ) : (\n <Code\n {...props}\n isDarkMode={isDarkMode}\n language={\n (props.className?.replace('lang-', '') ||\n 'plaintext') as BundledLanguage\n }\n fileName={props.fileName}\n showHeader={Boolean(props.fileName)}\n />\n ),\n\n blockquote: ({\n className,\n ...props\n }: ComponentPropsWithoutRef<'blockquote'>) => (\n <blockquote\n className={cn(\n 'mt-5 gap-3 border-card border-l-4 pl-5 text-neutral',\n className\n )}\n {...props}\n />\n ),\n ul: ({ className, ...props }: ComponentPropsWithoutRef<'ul'>) => (\n <ul\n className={cn(\n 'mt-5 flex list-disc flex-col gap-3 pl-5',\n className\n )}\n {...props}\n />\n ),\n ol: ({ className, ...props }: ComponentPropsWithoutRef<'ol'>) => (\n <ol\n className={cn(\n 'mt-5 flex list-decimal flex-col gap-3 pl-5',\n className\n )}\n {...props}\n />\n ),\n img: ({\n className,\n ...props\n }: ComponentPropsWithoutRef<'img'>) => (\n <img\n {...props}\n loading=\"lazy\"\n className={cn(\n 'max-h-[80vh] max-w-full rounded-md',\n className\n )}\n src={`${props.src}?raw=true`}\n />\n ),\n a: (props: ComponentProps<typeof Link>) => (\n <Link\n color=\"neutral\"\n isExternalLink={props.href?.startsWith('http')}\n underlined={true}\n locale={locale}\n {...props}\n />\n ),\n pre: (props: ComponentPropsWithoutRef<'pre'>) => props.children,\n\n table: (props: ComponentProps<typeof Table>) => (\n <Table isRollable={true} {...props} />\n ),\n th: ({ className, ...props }: ComponentPropsWithoutRef<'th'>) => (\n <th\n className={cn(\n 'border-neutral border-b bg-neutral/10 p-4',\n className\n )}\n {...props}\n />\n ),\n tr: ({ className, ...props }: ComponentPropsWithoutRef<'tr'>) => (\n <tr\n className={cn('hover:/10 hover:bg-neutral/10', className)}\n {...props}\n />\n ),\n td: ({ className, ...props }: ComponentPropsWithoutRef<'td'>) => (\n <td\n className={cn(\n 'border-neutral-500/50 border-b p-4',\n className\n )}\n {...props}\n />\n ),\n hr: ({ className, ...props }: ComponentPropsWithoutRef<'hr'>) => (\n <hr\n className={cn('mx-6 mt-16 text-neutral', className)}\n {...props}\n />\n ),\n // Support both <Tab> and <Tabs> in markdown\n Tabs: (props: ComponentProps<typeof Tab>) => <Tab {...props} />,\n Tab: (props: ComponentProps<typeof Tab>) => <Tab {...props} />,\n TabItem: (props: ComponentProps<typeof Tab.Item>) => (\n <Tab.Item {...props} />\n ),\n Columns: ({\n className,\n ...props\n }: ComponentPropsWithoutRef<'div'>) => (\n <div\n className={cn('flex gap-4 max-md:flex-col', className)}\n {...props}\n />\n ),\n Column: ({\n className,\n ...props\n }: ComponentPropsWithoutRef<'div'>) => (\n <div className={cn('flex-1', className)} {...props} />\n ),\n ...overrides,\n },\n ...restOptions,\n }}\n >\n {cleanMarkdown ?? ''}\n </MarkdownProcessor>\n </TabProvider>\n </CodeProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AA0BA,MAAM,oBAAoB,aAA6B;CACrD,MAAM,QAAQ,SAAS,MAAM,QAAQ;CAGrC,MAAM,oBAAoB,MAAM,MAAM,SAAS,KAAK,MAAM,KAAK,GAAG;AAElE,KAAI,CAAC,qBAAqB,kBAAkB,MAAM,KAAK,MAErD,QAAO;CAGT,IAAI,kBAAkB;CACtB,IAAI,qBAAqB;AAEzB,MAAK,IAAI,IAAI,GAAG,IAAI,MAAM,QAAQ,IAIhC,KAHoB,MAAM,GAAG,MAAM,KAGf,MAClB,KAAI,CAAC,gBAEH,mBAAkB;MACb;AAEL,uBAAqB;AACrB;;AAKN,KAAI,qBAAqB,GAEvB,QAAO,MAAM,MAAM,qBAAqB,EAAE,CAAC,KAAK,KAAK;AAIvD,QAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsJT,MAAaA,oBAA+C,EAC1D,UACA,YACA,QACA,cACI;CACJ,MAAM,EAAE,UAAW,GAAG,gBAAgB,WAAW,EAAE;CAGnD,MAAM,gBAAgB,iBAAiB,SAAS;AAEhD,QACE,oBAAC,0BACC,oBAAC,yBACC,oBAAC;EACC,SAAS;GACP,WAAW;IACT,KAAK,UACH,oBAAC;KAAG,aAAa;KAAM,GAAI;MAAS;IAEtC,KAAK,UACH,oBAAC;KAAG,aAAa;KAAM,GAAI;MAAS;IAEtC,KAAK,UACH,oBAAC;KAAG,aAAa;KAAM,GAAI;MAAS;IAEtC,KAAK,UACH,oBAAC;KAAG,aAAa;KAAM,GAAI;MAAS;IAEtC,KAAK,UACH,oBAAC;KAAG,aAAa;KAAM,GAAI;MAAS;IAEtC,KAAK,UACH,oBAAC;KAAG,aAAa;KAAM,GAAI;MAAS;IAGtC,OACE,UAGA,CAAC,MAAM,YACL,oBAAC;KAAO,WAAU;eACf,MAAM;MACA,GAET,oBAAC;KACC,GAAI;KACQ;KACZ,UACG,MAAM,WAAW,QAAQ,SAAS,GAAG,IACpC;KAEJ,UAAU,MAAM;KAChB,YAAY,QAAQ,MAAM,SAAS;MACnC;IAGN,aAAa,EACX,UACA,GAAG,YAEH,oBAAC;KACC,WAAW,GACT,uDACA,UACD;KACD,GAAI;MACJ;IAEJ,KAAK,EAAE,UAAW,GAAG,YACnB,oBAAC;KACC,WAAW,GACT,2CACA,UACD;KACD,GAAI;MACJ;IAEJ,KAAK,EAAE,UAAW,GAAG,YACnB,oBAAC;KACC,WAAW,GACT,8CACA,UACD;KACD,GAAI;MACJ;IAEJ,MAAM,EACJ,UACA,GAAG,YAEH,oBAAC;KACC,GAAI;KACJ,SAAQ;KACR,WAAW,GACT,sCACA,UACD;KACD,KAAK,GAAG,MAAM,IAAI;MAClB;IAEJ,IAAI,UACF,oBAAC;KACC,OAAM;KACN,gBAAgB,MAAM,MAAM,WAAW,OAAO;KAC9C,YAAY;KACJ;KACR,GAAI;MACJ;IAEJ,MAAM,UAA2C,MAAM;IAEvD,QAAQ,UACN,oBAAC;KAAM,YAAY;KAAM,GAAI;MAAS;IAExC,KAAK,EAAE,UAAW,GAAG,YACnB,oBAAC;KACC,WAAW,GACT,6CACA,UACD;KACD,GAAI;MACJ;IAEJ,KAAK,EAAE,UAAW,GAAG,YACnB,oBAAC;KACC,WAAW,GAAG,iCAAiC,UAAU;KACzD,GAAI;MACJ;IAEJ,KAAK,EAAE,UAAW,GAAG,YACnB,oBAAC;KACC,WAAW,GACT,sCACA,UACD;KACD,GAAI;MACJ;IAEJ,KAAK,EAAE,UAAW,GAAG,YACnB,oBAAC;KACC,WAAW,GAAG,2BAA2B,UAAU;KACnD,GAAI;MACJ;IAGJ,OAAO,UAAsC,oBAAC,OAAI,GAAI,QAAS;IAC/D,MAAM,UAAsC,oBAAC,OAAI,GAAI,QAAS;IAC9D,UAAU,UACR,oBAAC,IAAI,QAAK,GAAI,QAAS;IAEzB,UAAU,EACR,UACA,GAAG,YAEH,oBAAC;KACC,WAAW,GAAG,8BAA8B,UAAU;KACtD,GAAI;MACJ;IAEJ,SAAS,EACP,UACA,GAAG,YAEH,oBAAC;KAAI,WAAW,GAAG,UAAU,UAAU;KAAE,GAAI;MAAS;IAExD,GAAG;IACJ;GACD,GAAG;GACJ;YAEA,iBAAiB;GACA,GACR,GACD"}
|
|
1
|
+
{"version":3,"file":"MarkDownRender.mjs","names":["MarkdownRenderer: FC<MarkdownRendererProps>"],"sources":["../../../../src/components/MarkDownRender/MarkDownRender.tsx"],"sourcesContent":["import type { LocalesValues } from '@intlayer/types';\nimport type { ComponentProps, ComponentPropsWithoutRef, FC } from 'react';\nimport type { BundledLanguage } from 'shiki/bundle/web';\nimport { cn } from '../../utils/cn';\nimport { H1, H2, H3, H4, H5, H6 } from '../Headers';\nimport type { CodeCompAttributes } from '../IDE/Code';\nimport { Code } from '../IDE/Code';\nimport { CodeProvider } from '../IDE/CodeContext';\nimport { Link } from '../Link';\nimport { Tab } from '../Tab';\nimport { TabProvider } from '../Tab/TabContext';\nimport { Table } from '../Table';\nimport { MarkdownProcessor, type MarkdownProcessorOptions } from './processor';\n\ntype MarkdownRendererProps = {\n children: string;\n isDarkMode?: boolean;\n locale?: LocalesValues;\n options?: MarkdownProcessorOptions;\n};\n\n/**\n * Removes frontmatter from markdown content\n * Frontmatter is the YAML metadata block at the beginning of markdown files\n * delimited by --- at the start and end\n */\nconst stripFrontmatter = (markdown: string): string => {\n const lines = markdown.split(/\\r?\\n/);\n\n // Check if the very first non-empty line is the metadata start delimiter\n const firstNonEmptyLine = lines.find((line) => line.trim() !== '');\n\n if (!firstNonEmptyLine || firstNonEmptyLine.trim() !== '---') {\n // No frontmatter, return original content\n return markdown;\n }\n\n let inMetadataBlock = false;\n let endOfMetadataIndex = -1;\n\n for (let i = 0; i < lines.length; i++) {\n const trimmedLine = lines[i].trim();\n\n // Toggle metadata block on encountering the delimiter\n if (trimmedLine === '---') {\n if (!inMetadataBlock) {\n // Begin metadata block\n inMetadataBlock = true;\n } else {\n // End of metadata block\n endOfMetadataIndex = i;\n break;\n }\n }\n }\n\n if (endOfMetadataIndex > -1) {\n // Return content after the frontmatter\n return lines.slice(endOfMetadataIndex + 1).join('\\n');\n }\n\n // If we couldn't find the end delimiter, return original content\n return markdown;\n};\n\n/**\n * MarkdownRenderer Component\n *\n * A comprehensive markdown renderer that transforms markdown text into rich,\n * interactive HTML with custom styling and Intlayer integration. Supports\n * code syntax highlighting, responsive tables, internationalized links,\n * and automatic frontmatter stripping.\n *\n * @component\n * @example\n * Basic usage:\n * ```tsx\n * const markdownContent = `\n * # Hello World\n * This is **bold** and *italic* text.\n * `;\n *\n * <MarkdownRenderer>{markdownContent}</MarkdownRenderer>\n * ```\n *\n * @example\n * With dark mode:\n * ```tsx\n * const codeExample = `\n * # API Documentation\n * \\`\\`\\`javascript\n * const response = await fetch('/api/data');\n * const data = await response.json();\n * \\`\\`\\`\n * `;\n *\n * <MarkdownRenderer isDarkMode={true}>\n * {codeExample}\n * </MarkdownRenderer>\n * ```\n *\n * @example\n * With internationalized links:\n * ```tsx\n * const content = `\n * Visit our [documentation](/docs) for more information.\n * External link: [Google](https://google.com)\n * `;\n *\n * <MarkdownRenderer locale=\"fr\">\n * {content}\n * </MarkdownRenderer>\n * ```\n *\n * @example\n * With custom overrides:\n * ```tsx\n * const customOptions = {\n * overrides: {\n * h1: ({ children }) => (\n * <h1 className=\"custom-title\">{children}</h1>\n * ),\n * },\n * };\n *\n * <MarkdownRenderer options={customOptions}>\n * {markdownContent}\n * </MarkdownRenderer>\n * ```\n *\n * @example\n * With frontmatter (automatically stripped):\n * ```tsx\n * const blogPost = `\n * ---\n * title: \"My Blog Post\"\n * date: \"2023-12-01\"\n * author: \"John Doe\"\n * ---\n * # My Blog Post\n * This content will be rendered without the frontmatter.\n * `;\n *\n * <MarkdownRenderer>{blogPost}</MarkdownRenderer>\n * ```\n *\n * Features:\n * - Automatic frontmatter detection and removal\n * - Syntax-highlighted code blocks with theme support\n * - Clickable headers with anchor links\n * - Internationalized link handling with locale awareness\n * - Responsive tables with hover effects\n * - Custom blockquote, list, and image styling\n * - External link detection and security attributes\n * - Inline code with distinctive styling\n * - Lazy-loaded images with GitHub raw URL support\n * - Horizontal rules with custom styling\n *\n * Supported Markdown Elements:\n * - Headers (h1-h4) with click-to-anchor functionality\n * - Code blocks with language-specific syntax highlighting\n * - Inline code with background styling\n * - Blockquotes with custom border and padding\n * - Ordered and unordered lists with custom spacing\n * - Links (internal and external) with security attributes\n * - Images with lazy loading and responsive sizing\n * - Tables with hover effects and proper styling\n * - Horizontal rules with custom appearance\n * - All standard markdown formatting (bold, italic, etc.)\n *\n * Code Block Support:\n * - Language detection from code fence info\n * - Syntax highlighting through Code component\n * - Dark/light mode theme switching\n * - Line numbers and copy functionality (via Code component)\n * - Support for popular languages (JS, TS, Python, etc.)\n *\n * Link Handling:\n * - Automatic external link detection (starts with 'http')\n * - Security attributes for external links (rel=\"noopener noreferrer\")\n * - Locale-aware internal link routing\n * - Custom Link component integration\n * - Underlined styling for better visibility\n *\n * Image Processing:\n * - Automatic lazy loading for performance\n * - GitHub raw URL transformation for repository images\n * - Responsive sizing with max-width constraints\n * - Rounded corners for visual appeal\n *\n * Accessibility:\n * - Semantic HTML structure with proper heading hierarchy\n * - ARIA attributes through component integration\n * - Screen reader friendly link descriptions\n * - Keyboard navigation support\n * - High contrast styling options\n *\n * Performance:\n * - Lazy loading for images\n * - Efficient re-rendering with React memo patterns\n * - Code syntax highlighting with minimal bundle impact\n * - Optimized markdown parsing with markdown-to-jsx\n *\n * @param props - Component props\n * @param props.children - Raw markdown content to render\n * @param props.isDarkMode - Enable dark mode styling for code blocks\n * @param props.locale - Current locale for link internationalization\n * @param props.options - Additional markdown-to-jsx options\n * @param props.options.overrides - Custom component overrides for markdown elements\n *\n * @returns Rendered markdown content with custom styling and functionality\n */\nexport const MarkdownRenderer: FC<MarkdownRendererProps> = ({\n children,\n isDarkMode,\n locale,\n options,\n}) => {\n const { overrides, ...restOptions } = options ?? {};\n\n // Strip frontmatter from the markdown content before rendering\n const cleanMarkdown = stripFrontmatter(children);\n\n return (\n <CodeProvider>\n <TabProvider>\n <MarkdownProcessor\n options={{\n overrides: {\n h1: (props: ComponentProps<typeof H1>) => (\n <H1 isClickable={true} {...props} />\n ),\n h2: (props: ComponentProps<typeof H2>) => (\n <H2 isClickable={true} className=\"mt-16\" {...props} />\n ),\n h3: (props: ComponentProps<typeof H3>) => (\n <H3 isClickable={true} className=\"mt-5\" {...props} />\n ),\n h4: (props: ComponentProps<typeof H4>) => (\n <H4 isClickable={true} className=\"mt-3\" {...props} />\n ),\n h5: (props: ComponentProps<typeof H5>) => (\n <H5 isClickable={true} className=\"mt-3\" {...props} />\n ),\n h6: (props: ComponentProps<typeof H6>) => (\n <H6 isClickable={true} className=\"mt-3\" {...props} />\n ),\n\n code: (\n props: Omit<ComponentPropsWithoutRef<'code'>, 'children'> &\n Partial<CodeCompAttributes> & { children: string }\n ) =>\n !props.className ? (\n <strong className=\"rounded bg-card/60 box-decoration-clone px-1 py-0.5\">\n {props.children}\n </strong>\n ) : (\n <Code\n {...props}\n isDarkMode={isDarkMode}\n language={\n (props.className?.replace('lang-', '') ||\n 'plaintext') as BundledLanguage\n }\n fileName={props.fileName}\n showHeader={Boolean(props.fileName)}\n />\n ),\n\n blockquote: ({\n className,\n ...props\n }: ComponentPropsWithoutRef<'blockquote'>) => (\n <blockquote\n className={cn(\n 'mt-5 gap-3 border-card border-l-4 pl-5 text-neutral',\n className\n )}\n {...props}\n />\n ),\n ul: ({ className, ...props }: ComponentPropsWithoutRef<'ul'>) => (\n <ul\n className={cn(\n 'mt-5 flex list-disc flex-col gap-3 pl-5',\n className\n )}\n {...props}\n />\n ),\n ol: ({ className, ...props }: ComponentPropsWithoutRef<'ol'>) => (\n <ol\n className={cn(\n 'mt-5 flex list-decimal flex-col gap-3 pl-5',\n className\n )}\n {...props}\n />\n ),\n img: ({\n className,\n ...props\n }: ComponentPropsWithoutRef<'img'>) => (\n <img\n {...props}\n loading=\"lazy\"\n className={cn(\n 'max-h-[80vh] max-w-full rounded-md',\n className\n )}\n src={`${props.src}?raw=true`}\n />\n ),\n a: (props: ComponentProps<typeof Link>) => (\n <Link\n color=\"neutral\"\n isExternalLink={props.href?.startsWith('http')}\n underlined={true}\n locale={locale}\n {...props}\n />\n ),\n pre: (props: ComponentPropsWithoutRef<'pre'>) => props.children,\n\n table: (props: ComponentProps<typeof Table>) => (\n <Table isRollable={true} {...props} />\n ),\n th: ({ className, ...props }: ComponentPropsWithoutRef<'th'>) => (\n <th\n className={cn(\n 'border-neutral border-b bg-neutral/10 p-4',\n className\n )}\n {...props}\n />\n ),\n tr: ({ className, ...props }: ComponentPropsWithoutRef<'tr'>) => (\n <tr\n className={cn('hover:/10 hover:bg-neutral/10', className)}\n {...props}\n />\n ),\n td: ({ className, ...props }: ComponentPropsWithoutRef<'td'>) => (\n <td\n className={cn(\n 'border-neutral-500/50 border-b p-4',\n className\n )}\n {...props}\n />\n ),\n hr: ({ className, ...props }: ComponentPropsWithoutRef<'hr'>) => (\n <hr\n className={cn('mx-6 mt-16 text-neutral', className)}\n {...props}\n />\n ),\n // Support both <Tab> and <Tabs> in markdown\n Tabs: (props: ComponentProps<typeof Tab>) => <Tab {...props} />,\n Tab: (props: ComponentProps<typeof Tab>) => <Tab {...props} />,\n TabItem: (props: ComponentProps<typeof Tab.Item>) => (\n <Tab.Item {...props} />\n ),\n Columns: ({\n className,\n ...props\n }: ComponentPropsWithoutRef<'div'>) => (\n <div\n className={cn('flex gap-4 max-md:flex-col', className)}\n {...props}\n />\n ),\n Column: ({\n className,\n ...props\n }: ComponentPropsWithoutRef<'div'>) => (\n <div className={cn('flex-1', className)} {...props} />\n ),\n ...overrides,\n },\n ...restOptions,\n }}\n >\n {cleanMarkdown ?? ''}\n </MarkdownProcessor>\n </TabProvider>\n </CodeProvider>\n );\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AA0BA,MAAM,oBAAoB,aAA6B;CACrD,MAAM,QAAQ,SAAS,MAAM,QAAQ;CAGrC,MAAM,oBAAoB,MAAM,MAAM,SAAS,KAAK,MAAM,KAAK,GAAG;AAElE,KAAI,CAAC,qBAAqB,kBAAkB,MAAM,KAAK,MAErD,QAAO;CAGT,IAAI,kBAAkB;CACtB,IAAI,qBAAqB;AAEzB,MAAK,IAAI,IAAI,GAAG,IAAI,MAAM,QAAQ,IAIhC,KAHoB,MAAM,GAAG,MAAM,KAGf,MAClB,KAAI,CAAC,gBAEH,mBAAkB;MACb;AAEL,uBAAqB;AACrB;;AAKN,KAAI,qBAAqB,GAEvB,QAAO,MAAM,MAAM,qBAAqB,EAAE,CAAC,KAAK,KAAK;AAIvD,QAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsJT,MAAaA,oBAA+C,EAC1D,UACA,YACA,QACA,cACI;CACJ,MAAM,EAAE,WAAW,GAAG,gBAAgB,WAAW,EAAE;CAGnD,MAAM,gBAAgB,iBAAiB,SAAS;AAEhD,QACE,oBAAC,0BACC,oBAAC,yBACC,oBAAC;EACC,SAAS;GACP,WAAW;IACT,KAAK,UACH,oBAAC;KAAG,aAAa;KAAM,GAAI;MAAS;IAEtC,KAAK,UACH,oBAAC;KAAG,aAAa;KAAM,WAAU;KAAQ,GAAI;MAAS;IAExD,KAAK,UACH,oBAAC;KAAG,aAAa;KAAM,WAAU;KAAO,GAAI;MAAS;IAEvD,KAAK,UACH,oBAAC;KAAG,aAAa;KAAM,WAAU;KAAO,GAAI;MAAS;IAEvD,KAAK,UACH,oBAAC;KAAG,aAAa;KAAM,WAAU;KAAO,GAAI;MAAS;IAEvD,KAAK,UACH,oBAAC;KAAG,aAAa;KAAM,WAAU;KAAO,GAAI;MAAS;IAGvD,OACE,UAGA,CAAC,MAAM,YACL,oBAAC;KAAO,WAAU;eACf,MAAM;MACA,GAET,oBAAC;KACC,GAAI;KACQ;KACZ,UACG,MAAM,WAAW,QAAQ,SAAS,GAAG,IACpC;KAEJ,UAAU,MAAM;KAChB,YAAY,QAAQ,MAAM,SAAS;MACnC;IAGN,aAAa,EACX,WACA,GAAG,YAEH,oBAAC;KACC,WAAW,GACT,uDACA,UACD;KACD,GAAI;MACJ;IAEJ,KAAK,EAAE,WAAW,GAAG,YACnB,oBAAC;KACC,WAAW,GACT,2CACA,UACD;KACD,GAAI;MACJ;IAEJ,KAAK,EAAE,WAAW,GAAG,YACnB,oBAAC;KACC,WAAW,GACT,8CACA,UACD;KACD,GAAI;MACJ;IAEJ,MAAM,EACJ,WACA,GAAG,YAEH,oBAAC;KACC,GAAI;KACJ,SAAQ;KACR,WAAW,GACT,sCACA,UACD;KACD,KAAK,GAAG,MAAM,IAAI;MAClB;IAEJ,IAAI,UACF,oBAAC;KACC,OAAM;KACN,gBAAgB,MAAM,MAAM,WAAW,OAAO;KAC9C,YAAY;KACJ;KACR,GAAI;MACJ;IAEJ,MAAM,UAA2C,MAAM;IAEvD,QAAQ,UACN,oBAAC;KAAM,YAAY;KAAM,GAAI;MAAS;IAExC,KAAK,EAAE,WAAW,GAAG,YACnB,oBAAC;KACC,WAAW,GACT,6CACA,UACD;KACD,GAAI;MACJ;IAEJ,KAAK,EAAE,WAAW,GAAG,YACnB,oBAAC;KACC,WAAW,GAAG,iCAAiC,UAAU;KACzD,GAAI;MACJ;IAEJ,KAAK,EAAE,WAAW,GAAG,YACnB,oBAAC;KACC,WAAW,GACT,sCACA,UACD;KACD,GAAI;MACJ;IAEJ,KAAK,EAAE,WAAW,GAAG,YACnB,oBAAC;KACC,WAAW,GAAG,2BAA2B,UAAU;KACnD,GAAI;MACJ;IAGJ,OAAO,UAAsC,oBAAC,OAAI,GAAI,QAAS;IAC/D,MAAM,UAAsC,oBAAC,OAAI,GAAI,QAAS;IAC9D,UAAU,UACR,oBAAC,IAAI,QAAK,GAAI,QAAS;IAEzB,UAAU,EACR,WACA,GAAG,YAEH,oBAAC;KACC,WAAW,GAAG,8BAA8B,UAAU;KACtD,GAAI;MACJ;IAEJ,SAAS,EACP,WACA,GAAG,YAEH,oBAAC;KAAI,WAAW,GAAG,UAAU,UAAU;KAAE,GAAI;MAAS;IAExD,GAAG;IACJ;GACD,GAAG;GACJ;YAEA,iBAAiB;GACA,GACR,GACD"}
|
|
@@ -1558,7 +1558,7 @@ const compiler = (markdown = "", options = {}) => {
|
|
|
1558
1558
|
* A simple HOC for easy React use. Feed the markdown content as a direct child
|
|
1559
1559
|
* and the rest is taken care of automatically.
|
|
1560
1560
|
*/
|
|
1561
|
-
const MarkdownProcessor = ({ children = "", options
|
|
1561
|
+
const MarkdownProcessor = ({ children = "", options, ...props }) => {
|
|
1562
1562
|
if (process.env.NODE_ENV !== "production" && typeof children !== "string") console.error("intlayer: <Markdown> component only accepts a single string as a child, received:", children);
|
|
1563
1563
|
return cloneElement(compiler(children, options), props);
|
|
1564
1564
|
};
|