@intlayer/design-system 5.7.8 → 5.8.1-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/.vite/manifest.json +127 -91
- package/dist/{better-auth.8zoxzg-F-D8e0X4ys.js → better-auth.CMQ3rA-I-7umXOENE.js} +1 -7
- package/dist/better-auth.CMQ3rA-I-7umXOENE.js.map +1 -0
- package/dist/{better-auth.8zoxzg-F-BEBqzpjz.cjs → better-auth.CMQ3rA-I-C2nBKRMa.cjs} +1 -7
- package/dist/better-auth.CMQ3rA-I-C2nBKRMa.cjs.map +1 -0
- package/dist/components/Accordion/Accordion.cjs +2 -2
- package/dist/components/Accordion/Accordion.cjs.map +1 -1
- package/dist/components/Accordion/Accordion.d.ts.map +1 -1
- package/dist/components/Accordion/Accordion.mjs +3 -3
- package/dist/components/Accordion/Accordion.mjs.map +1 -1
- package/dist/components/Badge/index.cjs +69 -12
- package/dist/components/Badge/index.cjs.map +1 -1
- package/dist/components/Badge/index.d.ts +18 -2
- package/dist/components/Badge/index.d.ts.map +1 -1
- package/dist/components/Badge/index.mjs +69 -12
- package/dist/components/Badge/index.mjs.map +1 -1
- package/dist/components/Breadcrumb/index.cjs +4 -5
- package/dist/components/Breadcrumb/index.cjs.map +1 -1
- package/dist/components/Breadcrumb/index.d.ts +2 -1
- package/dist/components/Breadcrumb/index.d.ts.map +1 -1
- package/dist/components/Breadcrumb/index.mjs +7 -8
- package/dist/components/Breadcrumb/index.mjs.map +1 -1
- package/dist/components/Button/Button.cjs +95 -40
- package/dist/components/Button/Button.cjs.map +1 -1
- package/dist/components/Button/Button.d.ts +42 -1
- package/dist/components/Button/Button.d.ts.map +1 -1
- package/dist/components/Button/Button.mjs +96 -41
- package/dist/components/Button/Button.mjs.map +1 -1
- package/dist/components/Button/index.cjs +5 -0
- package/dist/components/Button/index.cjs.map +1 -1
- package/dist/components/Button/index.mjs +7 -2
- package/dist/components/Container/index.cjs +67 -0
- package/dist/components/Container/index.cjs.map +1 -1
- package/dist/components/Container/index.d.ts +53 -0
- package/dist/components/Container/index.d.ts.map +1 -1
- package/dist/components/Container/index.mjs +67 -0
- package/dist/components/Container/index.mjs.map +1 -1
- package/dist/components/ContentEditor/ContentEditor.cjs +3 -1
- package/dist/components/ContentEditor/ContentEditor.cjs.map +1 -1
- package/dist/components/ContentEditor/ContentEditor.d.ts.map +1 -1
- package/dist/components/ContentEditor/ContentEditor.mjs +3 -1
- package/dist/components/ContentEditor/ContentEditor.mjs.map +1 -1
- package/dist/components/ContentEditor/ContentEditorInput.cjs +7 -7
- package/dist/components/ContentEditor/ContentEditorInput.cjs.map +1 -1
- package/dist/components/ContentEditor/ContentEditorInput.d.ts +1 -1
- package/dist/components/ContentEditor/ContentEditorInput.d.ts.map +1 -1
- package/dist/components/ContentEditor/ContentEditorInput.mjs +9 -9
- package/dist/components/ContentEditor/ContentEditorInput.mjs.map +1 -1
- package/dist/components/CopyButton/CopyButton.content.cjs.map +1 -0
- package/dist/components/CopyButton/CopyButton.content.d.ts.map +1 -0
- package/dist/components/CopyButton/CopyButton.content.mjs.map +1 -0
- package/dist/components/CopyButton/index.cjs +4 -5
- package/dist/components/CopyButton/index.cjs.map +1 -1
- package/dist/components/CopyButton/index.d.ts.map +1 -1
- package/dist/components/CopyButton/index.mjs +6 -7
- package/dist/components/CopyButton/index.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs +29 -33
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs +32 -36
- package/dist/components/DictionaryFieldEditor/ContentEditorView/TextEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs +4 -6
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs +5 -7
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/DictionaryCreationForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/dictionaryCreationForm.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs +2 -3
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs +3 -4
- package/dist/components/DictionaryFieldEditor/DictionaryCreationForm/useDictionaryFormSchema.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs +5 -5
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs +6 -6
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/DictionaryDetailsForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts +3 -24
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/dictionaryDetails.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs +2 -3
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs +3 -4
- package/dist/components/DictionaryFieldEditor/DictionaryDetails/useDictionaryDetailsSchema.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs +6 -10
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs +9 -13
- package/dist/components/DictionaryFieldEditor/DictionaryFieldEditor.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs +8 -9
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs +10 -11
- package/dist/components/DictionaryFieldEditor/NavigationView/NavigationViewNode.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/NavigationView/navigationViewNode.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs +1 -2
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs +2 -3
- package/dist/components/DictionaryFieldEditor/NodeTypeSelector.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs +14 -14
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs +16 -16
- package/dist/components/DictionaryFieldEditor/SaveForm/SaveForm.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts +3 -24
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/SaveForm/saveForm.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs +11 -12
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs +13 -14
- package/dist/components/DictionaryFieldEditor/StructureView/StructureView.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs +3 -2
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts +1 -0
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs +2 -1
- package/dist/components/DictionaryFieldEditor/StructureView/structureView.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs +5 -8
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs +7 -10
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcher.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.cjs +1 -1
- package/dist/components/DictionaryFieldEditor/VersionSwitcherDropDown/VersionSwitcherContext.mjs +1 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts +1 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/dictionaryFieldEditor.content.mjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs +2 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.cjs.map +1 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts +1 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.d.ts.map +1 -1
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs +1 -0
- package/dist/components/DictionaryFieldEditor/nodeTypeSelector.content.mjs.map +1 -1
- package/dist/components/DropDown/index.cjs +11 -2
- package/dist/components/DropDown/index.cjs.map +1 -1
- package/dist/components/DropDown/index.d.ts +7 -2
- package/dist/components/DropDown/index.d.ts.map +1 -1
- package/dist/components/DropDown/index.mjs +12 -3
- package/dist/components/DropDown/index.mjs.map +1 -1
- package/dist/components/EditableField/EditableFieldLayout.cjs +9 -9
- package/dist/components/EditableField/EditableFieldLayout.cjs.map +1 -1
- package/dist/components/EditableField/EditableFieldLayout.d.ts +1 -1
- package/dist/components/EditableField/EditableFieldLayout.d.ts.map +1 -1
- package/dist/components/EditableField/EditableFieldLayout.mjs +10 -10
- package/dist/components/EditableField/EditableFieldLayout.mjs.map +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.cjs +1 -1
- package/dist/components/EditableField/EditableFieldTextArea.mjs +1 -1
- package/dist/components/ExpandCollapse/ExpandCollapse.cjs +56 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.cjs.map +1 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.d.ts +9 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.d.ts.map +1 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.mjs +56 -0
- package/dist/components/ExpandCollapse/ExpandCollapse.mjs.map +1 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.cjs +41 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.cjs.map +1 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.d.ts +40 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.d.ts.map +1 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.mjs +42 -0
- package/dist/components/ExpandCollapse/expandCollapse.content.mjs.map +1 -0
- package/dist/components/ExpandCollapse/index.cjs +5 -0
- package/dist/components/ExpandCollapse/index.cjs.map +1 -0
- package/dist/components/ExpandCollapse/index.d.ts +2 -0
- package/dist/components/ExpandCollapse/index.d.ts.map +1 -0
- package/dist/components/ExpandCollapse/index.mjs +5 -0
- package/dist/components/ExpandCollapse/index.mjs.map +1 -0
- package/dist/components/Form/FormBase.cjs +1 -1
- package/dist/components/Form/FormBase.mjs +1 -1
- package/dist/components/Form/elements/FormElementWrapper.cjs +2 -2
- package/dist/components/Form/elements/FormElementWrapper.mjs +2 -2
- package/dist/components/IDE/Code.cjs +12 -1
- package/dist/components/IDE/Code.cjs.map +1 -1
- package/dist/components/IDE/Code.d.ts +1 -0
- package/dist/components/IDE/Code.d.ts.map +1 -1
- package/dist/components/IDE/Code.mjs +12 -1
- package/dist/components/IDE/Code.mjs.map +1 -1
- package/dist/components/IDE/CodeBlockClient.cjs +2 -2
- package/dist/components/IDE/CodeBlockClient.cjs.map +1 -1
- package/dist/components/IDE/CodeBlockClient.mjs +2 -2
- package/dist/components/IDE/CodeBlockClient.mjs.map +1 -1
- package/dist/components/IDE/CodeBlockServer.cjs +2 -2
- package/dist/components/IDE/CodeBlockServer.cjs.map +1 -1
- package/dist/components/IDE/CodeBlockServer.mjs +2 -2
- package/dist/components/IDE/CodeBlockServer.mjs.map +1 -1
- package/dist/components/IDE/CodeContext.cjs +1 -1
- package/dist/components/IDE/CodeContext.mjs +1 -1
- package/dist/components/IDE/CopyCode.cjs +2 -3
- package/dist/components/IDE/CopyCode.cjs.map +1 -1
- package/dist/components/IDE/CopyCode.d.ts.map +1 -1
- package/dist/components/IDE/CopyCode.mjs +4 -5
- package/dist/components/IDE/CopyCode.mjs.map +1 -1
- package/dist/components/Input/Checkbox.cjs +21 -0
- package/dist/components/Input/Checkbox.cjs.map +1 -1
- package/dist/components/Input/Checkbox.d.ts +21 -1
- package/dist/components/Input/Checkbox.d.ts.map +1 -1
- package/dist/components/Input/Checkbox.mjs +21 -0
- package/dist/components/Input/Checkbox.mjs.map +1 -1
- package/dist/components/Input/Input.cjs +12 -0
- package/dist/components/Input/Input.cjs.map +1 -1
- package/dist/components/Input/Input.d.ts +13 -2
- package/dist/components/Input/Input.d.ts.map +1 -1
- package/dist/components/Input/Input.mjs +12 -0
- package/dist/components/Input/Input.mjs.map +1 -1
- package/dist/components/Input/index.cjs +4 -0
- package/dist/components/Input/index.cjs.map +1 -1
- package/dist/components/Input/index.mjs +6 -2
- package/dist/components/Link/Link.cjs +60 -19
- package/dist/components/Link/Link.cjs.map +1 -1
- package/dist/components/Link/Link.d.ts +27 -2
- package/dist/components/Link/Link.d.ts.map +1 -1
- package/dist/components/Link/Link.mjs +60 -19
- package/dist/components/Link/Link.mjs.map +1 -1
- package/dist/components/Link/index.cjs +3 -0
- package/dist/components/Link/index.cjs.map +1 -1
- package/dist/components/Link/index.mjs +4 -1
- package/dist/components/Loader/index.content.d.ts +2 -24
- package/dist/components/Loader/index.content.d.ts.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs +8 -9
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.cjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.d.ts.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs +11 -12
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContent.mjs.map +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.cjs +1 -1
- package/dist/components/LocaleSwitcherContentDropDown/LocaleSwitcherContentContext.mjs +1 -1
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs +4 -5
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.cjs.map +1 -1
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.d.ts.map +1 -1
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs +6 -7
- package/dist/components/LocaleSwitcherDropDown/LocaleSwitcher.mjs.map +1 -1
- package/dist/components/MarkDownRender/index.cjs +17 -23
- package/dist/components/MarkDownRender/index.cjs.map +1 -1
- package/dist/components/MarkDownRender/index.d.ts.map +1 -1
- package/dist/components/MarkDownRender/index.mjs +18 -24
- package/dist/components/MarkDownRender/index.mjs.map +1 -1
- package/dist/components/Modal/Modal.cjs +14 -5
- package/dist/components/Modal/Modal.cjs.map +1 -1
- package/dist/components/Modal/Modal.d.ts +10 -4
- package/dist/components/Modal/Modal.d.ts.map +1 -1
- package/dist/components/Modal/Modal.mjs +16 -7
- package/dist/components/Modal/Modal.mjs.map +1 -1
- package/dist/components/Modal/index.cjs +1 -0
- package/dist/components/Modal/index.cjs.map +1 -1
- package/dist/components/Modal/index.mjs +3 -2
- package/dist/components/Navbar/DesktopNavbar.cjs +2 -2
- package/dist/components/Navbar/DesktopNavbar.cjs.map +1 -1
- package/dist/components/Navbar/DesktopNavbar.d.ts.map +1 -1
- package/dist/components/Navbar/DesktopNavbar.mjs +3 -3
- package/dist/components/Navbar/DesktopNavbar.mjs.map +1 -1
- package/dist/components/Navbar/MobileNavbar.cjs +1 -1
- package/dist/components/Navbar/MobileNavbar.mjs +1 -1
- package/dist/components/Navbar/index.cjs +2 -2
- package/dist/components/Navbar/index.cjs.map +1 -1
- package/dist/components/Navbar/index.mjs +2 -2
- package/dist/components/Navbar/index.mjs.map +1 -1
- package/dist/components/Popover/index.cjs +12 -0
- package/dist/components/Popover/index.cjs.map +1 -1
- package/dist/components/Popover/index.d.ts +10 -2
- package/dist/components/Popover/index.d.ts.map +1 -1
- package/dist/components/Popover/index.mjs +13 -1
- package/dist/components/Popover/index.mjs.map +1 -1
- package/dist/components/RightDrawer/RightDrawer.cjs +5 -5
- package/dist/components/RightDrawer/RightDrawer.cjs.map +1 -1
- package/dist/components/RightDrawer/RightDrawer.mjs +6 -6
- package/dist/components/RightDrawer/RightDrawer.mjs.map +1 -1
- package/dist/components/Select/Multiselect.cjs +1 -1
- package/dist/components/Select/Multiselect.cjs.map +1 -1
- package/dist/components/Select/Multiselect.mjs +2 -2
- package/dist/components/Select/Multiselect.mjs.map +1 -1
- package/dist/components/Select/Select.cjs +12 -1
- package/dist/components/Select/Select.cjs.map +1 -1
- package/dist/components/Select/Select.d.ts +5 -1
- package/dist/components/Select/Select.d.ts.map +1 -1
- package/dist/components/Select/Select.mjs +12 -1
- package/dist/components/Select/Select.mjs.map +1 -1
- package/dist/components/Select/index.cjs +1 -0
- package/dist/components/Select/index.cjs.map +1 -1
- package/dist/components/Select/index.mjs +2 -1
- package/dist/components/SocialNetworks/index.cjs +1 -1
- package/dist/components/SocialNetworks/index.cjs.map +1 -1
- package/dist/components/SocialNetworks/index.mjs +1 -1
- package/dist/components/SocialNetworks/index.mjs.map +1 -1
- package/dist/components/SwitchSelector/index.cjs +89 -18
- package/dist/components/SwitchSelector/index.cjs.map +1 -1
- package/dist/components/SwitchSelector/index.d.ts +16 -2
- package/dist/components/SwitchSelector/index.d.ts.map +1 -1
- package/dist/components/SwitchSelector/index.mjs +90 -19
- package/dist/components/SwitchSelector/index.mjs.map +1 -1
- package/dist/components/TabSelector/TabSelector.cjs +12 -1
- package/dist/components/TabSelector/TabSelector.cjs.map +1 -1
- package/dist/components/TabSelector/TabSelector.d.ts +12 -1
- package/dist/components/TabSelector/TabSelector.d.ts.map +1 -1
- package/dist/components/TabSelector/TabSelector.mjs +13 -2
- package/dist/components/TabSelector/TabSelector.mjs.map +1 -1
- package/dist/components/TabSelector/index.cjs +1 -0
- package/dist/components/TabSelector/index.cjs.map +1 -1
- package/dist/components/TabSelector/index.d.ts +1 -0
- package/dist/components/TabSelector/index.d.ts.map +1 -1
- package/dist/components/TabSelector/index.mjs +3 -2
- package/dist/components/Table/Table.cjs +58 -0
- package/dist/components/Table/Table.cjs.map +1 -0
- package/dist/components/Table/Table.d.ts +7 -0
- package/dist/components/Table/Table.d.ts.map +1 -0
- package/dist/components/Table/Table.mjs +58 -0
- package/dist/components/Table/Table.mjs.map +1 -0
- package/dist/components/Table/index.cjs +5 -0
- package/dist/components/Table/index.cjs.map +1 -0
- package/dist/components/Table/index.d.ts +2 -0
- package/dist/components/Table/index.d.ts.map +1 -0
- package/dist/components/Table/index.mjs +5 -0
- package/dist/components/Table/index.mjs.map +1 -0
- package/dist/components/Table/table.content.cjs +24 -0
- package/dist/components/Table/table.content.cjs.map +1 -0
- package/dist/components/Table/table.content.d.ts +40 -0
- package/dist/components/Table/table.content.d.ts.map +1 -0
- package/dist/components/Table/table.content.mjs +25 -0
- package/dist/components/Table/table.content.mjs.map +1 -0
- package/dist/components/Tag/index.cjs +131 -22
- package/dist/components/Tag/index.cjs.map +1 -1
- package/dist/components/Tag/index.d.ts +37 -5
- package/dist/components/Tag/index.d.ts.map +1 -1
- package/dist/components/Tag/index.mjs +132 -23
- package/dist/components/Tag/index.mjs.map +1 -1
- package/dist/components/TextArea/AutocompleteTextArea.cjs +1 -1
- package/dist/components/TextArea/AutocompleteTextArea.mjs +1 -1
- package/dist/components/TextArea/TextArea.cjs.map +1 -1
- package/dist/components/TextArea/TextArea.d.ts +5 -3
- package/dist/components/TextArea/TextArea.d.ts.map +1 -1
- package/dist/components/TextArea/TextArea.mjs.map +1 -1
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs +1 -1
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.cjs.map +1 -1
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs +2 -2
- package/dist/components/ThemeSwitcherDropDown/DesktopThemeSwitcher.mjs.map +1 -1
- package/dist/components/index.cjs +36 -0
- package/dist/components/index.cjs.map +1 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.mjs +49 -13
- package/dist/components/index.mjs.map +1 -1
- package/dist/hooks/auth.cjs +2 -2
- package/dist/hooks/auth.cjs.map +1 -1
- package/dist/hooks/auth.mjs +1 -1
- package/dist/hooks/auth.mjs.map +1 -1
- package/dist/hooks/intlayerAPIHooks.cjs +1 -1
- package/dist/hooks/intlayerAPIHooks.d.ts +1 -1
- package/dist/hooks/intlayerAPIHooks.d.ts.map +1 -1
- package/dist/hooks/intlayerAPIHooks.mjs +1 -1
- package/dist/hooks/useAsync/useAsync.cjs +6 -6
- package/dist/hooks/useAsync/useAsync.cjs.map +1 -1
- package/dist/hooks/useAsync/useAsync.mjs +6 -6
- package/dist/hooks/useAsync/useAsync.mjs.map +1 -1
- package/dist/hooks/useUser/index.cjs +1 -1
- package/dist/hooks/useUser/index.mjs +1 -1
- package/dist/index-BCuMWKyy.js.map +1 -1
- package/dist/index-BYzBot7l.cjs.map +1 -1
- package/dist/{parse-BJVwmz92.cjs → parse-Ltyyb1op.cjs} +9 -11
- package/dist/parse-Ltyyb1op.cjs.map +1 -0
- package/dist/{parse-pnJgclyf.js → parse-Vrm0h1r9.js} +30 -32
- package/dist/parse-Vrm0h1r9.js.map +1 -0
- package/dist/{schemas-BIuxHDyZ.js → schemas-DEXdAbCK.js} +75 -46
- package/dist/schemas-DEXdAbCK.js.map +1 -0
- package/dist/{schemas-Q6C7ZNs3.cjs → schemas-lh5OFOvX.cjs} +75 -46
- package/dist/schemas-lh5OFOvX.cjs.map +1 -0
- package/dist/{zod-K7y5gPX4.cjs → zod-BvUVjPTw.cjs} +11 -11
- package/dist/zod-BvUVjPTw.cjs.map +1 -0
- package/dist/{zod-D4WapgbL.js → zod-CJrbzxwg.js} +11 -11
- package/dist/zod-CJrbzxwg.js.map +1 -0
- package/package.json +42 -35
- package/dist/better-auth.8zoxzg-F-BEBqzpjz.cjs.map +0 -1
- package/dist/better-auth.8zoxzg-F-D8e0X4ys.js.map +0 -1
- package/dist/components/Headers/SectionScroller.cjs +0 -29
- package/dist/components/Headers/SectionScroller.cjs.map +0 -1
- package/dist/components/Headers/SectionScroller.d.ts +0 -2
- package/dist/components/Headers/SectionScroller.d.ts.map +0 -1
- package/dist/components/Headers/SectionScroller.mjs +0 -29
- package/dist/components/Headers/SectionScroller.mjs.map +0 -1
- package/dist/components/IDE/CopyButton.content.cjs.map +0 -1
- package/dist/components/IDE/CopyButton.content.d.ts.map +0 -1
- package/dist/components/IDE/CopyButton.content.mjs.map +0 -1
- package/dist/parse-BJVwmz92.cjs.map +0 -1
- package/dist/parse-pnJgclyf.js.map +0 -1
- package/dist/schemas-BIuxHDyZ.js.map +0 -1
- package/dist/schemas-Q6C7ZNs3.cjs.map +0 -1
- package/dist/zod-D4WapgbL.js.map +0 -1
- package/dist/zod-K7y5gPX4.cjs.map +0 -1
- /package/dist/components/{IDE → CopyButton}/CopyButton.content.cjs +0 -0
- /package/dist/components/{IDE → CopyButton}/CopyButton.content.d.ts +0 -0
- /package/dist/components/{IDE → CopyButton}/CopyButton.content.mjs +0 -0
|
@@ -3,62 +3,109 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
|
3
3
|
const jsxRuntime = require("react/jsx-runtime");
|
|
4
4
|
const classVarianceAuthority = require("class-variance-authority");
|
|
5
5
|
const components_Loader_index = require("../Loader/index.cjs");
|
|
6
|
+
var ButtonSize = /* @__PURE__ */ ((ButtonSize2) => {
|
|
7
|
+
ButtonSize2["SM"] = "sm";
|
|
8
|
+
ButtonSize2["MD"] = "md";
|
|
9
|
+
ButtonSize2["LG"] = "lg";
|
|
10
|
+
ButtonSize2["XL"] = "xl";
|
|
11
|
+
ButtonSize2["ICON_SM"] = "icon-sm";
|
|
12
|
+
ButtonSize2["ICON_MD"] = "icon-md";
|
|
13
|
+
ButtonSize2["ICON_LG"] = "icon-lg";
|
|
14
|
+
ButtonSize2["ICON_XL"] = "icon-xl";
|
|
15
|
+
return ButtonSize2;
|
|
16
|
+
})(ButtonSize || {});
|
|
17
|
+
var ButtonIconPosition = /* @__PURE__ */ ((ButtonIconPosition2) => {
|
|
18
|
+
ButtonIconPosition2["LEFT"] = "left";
|
|
19
|
+
ButtonIconPosition2["RIGHT"] = "right";
|
|
20
|
+
return ButtonIconPosition2;
|
|
21
|
+
})(ButtonIconPosition || {});
|
|
6
22
|
const buttonIconVariants = classVarianceAuthority.cva("", {
|
|
7
23
|
variants: {
|
|
8
24
|
size: {
|
|
9
|
-
sm: "size-3 absolute top-1/2 -translate-y-1/2",
|
|
10
|
-
md: "size-4 absolute top-1/2 -translate-y-1/2",
|
|
11
|
-
lg: "size-5 absolute top-1/2 -translate-y-1/2",
|
|
12
|
-
xl: "size-6 absolute top-1/2 -translate-y-1/2",
|
|
13
|
-
"icon-sm": "size-3",
|
|
14
|
-
"icon-md": "size-4",
|
|
15
|
-
"icon-lg": "size-5",
|
|
16
|
-
"icon-xl": "size-6"
|
|
25
|
+
[`${"sm"}`]: "size-3 absolute top-1/2 -translate-y-1/2",
|
|
26
|
+
[`${"md"}`]: "size-4 absolute top-1/2 -translate-y-1/2",
|
|
27
|
+
[`${"lg"}`]: "size-5 absolute top-1/2 -translate-y-1/2",
|
|
28
|
+
[`${"xl"}`]: "size-6 absolute top-1/2 -translate-y-1/2",
|
|
29
|
+
[`${"icon-sm"}`]: "size-3",
|
|
30
|
+
[`${"icon-md"}`]: "size-4",
|
|
31
|
+
[`${"icon-lg"}`]: "size-5",
|
|
32
|
+
[`${"icon-xl"}`]: "size-6"
|
|
17
33
|
},
|
|
18
34
|
position: {
|
|
19
|
-
left: "left-3",
|
|
20
|
-
right: "right-3"
|
|
35
|
+
[`${"left"}`]: "left-3",
|
|
36
|
+
[`${"right"}`]: "right-3"
|
|
21
37
|
}
|
|
22
38
|
},
|
|
23
39
|
defaultVariants: {
|
|
24
40
|
size: "md"
|
|
41
|
+
/* MD */
|
|
25
42
|
}
|
|
26
43
|
});
|
|
44
|
+
var ButtonVariant = /* @__PURE__ */ ((ButtonVariant2) => {
|
|
45
|
+
ButtonVariant2["DEFAULT"] = "default";
|
|
46
|
+
ButtonVariant2["NONE"] = "none";
|
|
47
|
+
ButtonVariant2["OUTLINE"] = "outline";
|
|
48
|
+
ButtonVariant2["LINK"] = "link";
|
|
49
|
+
ButtonVariant2["INVISIBLE_LINK"] = "invisible-link";
|
|
50
|
+
ButtonVariant2["HOVERABLE"] = "hoverable";
|
|
51
|
+
ButtonVariant2["INPUT"] = "input";
|
|
52
|
+
return ButtonVariant2;
|
|
53
|
+
})(ButtonVariant || {});
|
|
54
|
+
var ButtonColor = /* @__PURE__ */ ((ButtonColor2) => {
|
|
55
|
+
ButtonColor2["PRIMARY"] = "primary";
|
|
56
|
+
ButtonColor2["SECONDARY"] = "secondary";
|
|
57
|
+
ButtonColor2["DESTRUCTIVE"] = "destructive";
|
|
58
|
+
ButtonColor2["NEUTRAL"] = "neutral";
|
|
59
|
+
ButtonColor2["LIGHT"] = "light";
|
|
60
|
+
ButtonColor2["DARK"] = "dark";
|
|
61
|
+
ButtonColor2["TEXT"] = "text";
|
|
62
|
+
ButtonColor2["TEXT_INVERSE"] = "text-inverse";
|
|
63
|
+
ButtonColor2["ERROR"] = "error";
|
|
64
|
+
ButtonColor2["SUCCESS"] = "success";
|
|
65
|
+
ButtonColor2["CUSTOM"] = "custom";
|
|
66
|
+
return ButtonColor2;
|
|
67
|
+
})(ButtonColor || {});
|
|
68
|
+
var ButtonTextAlign = /* @__PURE__ */ ((ButtonTextAlign2) => {
|
|
69
|
+
ButtonTextAlign2["LEFT"] = "left";
|
|
70
|
+
ButtonTextAlign2["CENTER"] = "center";
|
|
71
|
+
ButtonTextAlign2["RIGHT"] = "right";
|
|
72
|
+
return ButtonTextAlign2;
|
|
73
|
+
})(ButtonTextAlign || {});
|
|
27
74
|
const buttonVariants = classVarianceAuthority.cva(
|
|
28
75
|
"relative cursor-pointer truncate whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",
|
|
29
76
|
{
|
|
30
77
|
variants: {
|
|
31
78
|
size: {
|
|
32
|
-
sm: "min-h-7 px-3 max-md:py-1 text-xs",
|
|
33
|
-
md: "min-h-8 px-6 max-md:py-2 text-sm",
|
|
34
|
-
lg: "min-h-10 px-8 max-md:py-3 text-lg",
|
|
35
|
-
xl: "min-h-11 px-10 max-md:py-4 text-xl",
|
|
36
|
-
"icon-sm": "p-1.5",
|
|
37
|
-
"icon-md": "p-1.5",
|
|
38
|
-
"icon-lg": "p-2",
|
|
39
|
-
"icon-xl": "p-3"
|
|
79
|
+
[`${"sm"}`]: "min-h-7 px-3 max-md:py-1 text-xs",
|
|
80
|
+
[`${"md"}`]: "min-h-8 px-6 max-md:py-2 text-sm",
|
|
81
|
+
[`${"lg"}`]: "min-h-10 px-8 max-md:py-3 text-lg",
|
|
82
|
+
[`${"xl"}`]: "min-h-11 px-10 max-md:py-4 text-xl",
|
|
83
|
+
[`${"icon-sm"}`]: "p-1.5",
|
|
84
|
+
[`${"icon-md"}`]: "p-1.5",
|
|
85
|
+
[`${"icon-lg"}`]: "p-2",
|
|
86
|
+
[`${"icon-xl"}`]: "p-3"
|
|
40
87
|
},
|
|
41
88
|
color: {
|
|
42
|
-
primary: "text-primary *:text-text-light",
|
|
43
|
-
secondary: "text-secondary *:text-text-light",
|
|
44
|
-
destructive: "text-destructive *:text-text-light",
|
|
45
|
-
neutral: "text-neutral *:text-text-light",
|
|
46
|
-
light: "text-white *:text-text-light",
|
|
47
|
-
dark: "text-neutral-800 *:text-text-light",
|
|
48
|
-
text: "text-text *:text-text-opposite",
|
|
49
|
-
"text-inverse": "text-text-opposite *:text-text",
|
|
50
|
-
error: "text-error *:text-text-light",
|
|
51
|
-
success: "text-success *:text-text-light",
|
|
52
|
-
custom: ""
|
|
89
|
+
[`${"primary"}`]: "text-primary *:text-text-light",
|
|
90
|
+
[`${"secondary"}`]: "text-secondary *:text-text-light",
|
|
91
|
+
[`${"destructive"}`]: "text-destructive *:text-text-light",
|
|
92
|
+
[`${"neutral"}`]: "text-neutral *:text-text-light",
|
|
93
|
+
[`${"light"}`]: "text-white *:text-text-light",
|
|
94
|
+
[`${"dark"}`]: "text-neutral-800 *:text-text-light",
|
|
95
|
+
[`${"text"}`]: "text-text *:text-text-opposite",
|
|
96
|
+
[`${"text-inverse"}`]: "text-text-opposite *:text-text",
|
|
97
|
+
[`${"error"}`]: "text-error *:text-text-light",
|
|
98
|
+
[`${"success"}`]: "text-success *:text-text-light",
|
|
99
|
+
[`${"custom"}`]: ""
|
|
53
100
|
},
|
|
54
101
|
variant: {
|
|
55
|
-
default: "rounded-lg bg-current",
|
|
56
|
-
none: "border-none bg-current/0 text-inherit hover:bg-current/0",
|
|
57
|
-
outline: "*:!text-current rounded-lg border-[1.5px] bg-current/0 hover:bg-current/30",
|
|
58
|
-
link: "*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline",
|
|
59
|
-
"invisible-link": "*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent",
|
|
60
|
-
hoverable: "*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5",
|
|
61
|
-
input: [
|
|
102
|
+
[`${"default"}`]: "rounded-lg bg-current",
|
|
103
|
+
[`${"none"}`]: "border-none bg-current/0 text-inherit hover:bg-current/0",
|
|
104
|
+
[`${"outline"}`]: "*:!text-current rounded-lg border-[1.5px] bg-current/0 hover:bg-current/30",
|
|
105
|
+
[`${"link"}`]: "*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline",
|
|
106
|
+
[`${"invisible-link"}`]: "*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent",
|
|
107
|
+
[`${"hoverable"}`]: "*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5",
|
|
108
|
+
[`${"input"}`]: [
|
|
62
109
|
"*:!text-current w-full select-text resize-none rounded-xl border-2 bg-input-background text-sm text-input-text shadow-none outline-0 transition-all",
|
|
63
110
|
"border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]",
|
|
64
111
|
"aria-[invalid=true]:border-error",
|
|
@@ -66,9 +113,9 @@ const buttonVariants = classVarianceAuthority.cva(
|
|
|
66
113
|
]
|
|
67
114
|
},
|
|
68
115
|
textAlign: {
|
|
69
|
-
left: "text-left",
|
|
70
|
-
center: "text-center",
|
|
71
|
-
right: "text-right"
|
|
116
|
+
[`${"left"}`]: "text-left",
|
|
117
|
+
[`${"center"}`]: "text-center",
|
|
118
|
+
[`${"right"}`]: "text-right"
|
|
72
119
|
},
|
|
73
120
|
isFullWidth: {
|
|
74
121
|
true: "w-full",
|
|
@@ -86,7 +133,7 @@ const buttonVariants = classVarianceAuthority.cva(
|
|
|
86
133
|
defaultVariants: {
|
|
87
134
|
variant: "default",
|
|
88
135
|
size: "md",
|
|
89
|
-
color: "
|
|
136
|
+
color: "custom",
|
|
90
137
|
textAlign: "center",
|
|
91
138
|
isFullWidth: false,
|
|
92
139
|
hasIconRight: false,
|
|
@@ -145,6 +192,7 @@ const Button = ({
|
|
|
145
192
|
size,
|
|
146
193
|
className: iconClassName,
|
|
147
194
|
position: "left"
|
|
195
|
+
/* LEFT */
|
|
148
196
|
})
|
|
149
197
|
}
|
|
150
198
|
),
|
|
@@ -155,6 +203,7 @@ const Button = ({
|
|
|
155
203
|
size,
|
|
156
204
|
className: iconClassName,
|
|
157
205
|
position: "left"
|
|
206
|
+
/* LEFT */
|
|
158
207
|
}),
|
|
159
208
|
isLoading: isLoading ?? false
|
|
160
209
|
}
|
|
@@ -167,6 +216,7 @@ const Button = ({
|
|
|
167
216
|
size,
|
|
168
217
|
className: iconClassName,
|
|
169
218
|
position: "right"
|
|
219
|
+
/* RIGHT */
|
|
170
220
|
})
|
|
171
221
|
}
|
|
172
222
|
)
|
|
@@ -175,4 +225,9 @@ const Button = ({
|
|
|
175
225
|
);
|
|
176
226
|
};
|
|
177
227
|
exports.Button = Button;
|
|
228
|
+
exports.ButtonColor = ButtonColor;
|
|
229
|
+
exports.ButtonIconPosition = ButtonIconPosition;
|
|
230
|
+
exports.ButtonSize = ButtonSize;
|
|
231
|
+
exports.ButtonTextAlign = ButtonTextAlign;
|
|
232
|
+
exports.ButtonVariant = ButtonVariant;
|
|
178
233
|
//# sourceMappingURL=Button.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.cjs","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport type { LucideIcon } from 'lucide-react';\nimport {\n type ButtonHTMLAttributes,\n type DetailedHTMLProps,\n type FC,\n} from 'react';\nimport { Loader } from '../Loader';\n\nconst buttonIconVariants = cva('', {\n variants: {\n size: {\n sm: 'size-3 absolute top-1/2 -translate-y-1/2',\n md: 'size-4 absolute top-1/2 -translate-y-1/2',\n lg: 'size-5 absolute top-1/2 -translate-y-1/2',\n xl: 'size-6 absolute top-1/2 -translate-y-1/2',\n 'icon-sm': 'size-3',\n 'icon-md': 'size-4',\n 'icon-lg': 'size-5',\n 'icon-xl': 'size-6',\n },\n position: {\n left: 'left-3',\n right: 'right-3',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\nconst buttonVariants = cva(\n 'relative cursor-pointer truncate whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50',\n {\n variants: {\n size: {\n sm: 'min-h-7 px-3 max-md:py-1 text-xs',\n md: 'min-h-8 px-6 max-md:py-2 text-sm',\n lg: 'min-h-10 px-8 max-md:py-3 text-lg',\n xl: 'min-h-11 px-10 max-md:py-4 text-xl',\n 'icon-sm': 'p-1.5',\n 'icon-md': 'p-1.5',\n 'icon-lg': 'p-2',\n 'icon-xl': 'p-3',\n },\n color: {\n primary: 'text-primary *:text-text-light',\n secondary: 'text-secondary *:text-text-light',\n destructive: 'text-destructive *:text-text-light',\n neutral: 'text-neutral *:text-text-light',\n light: 'text-white *:text-text-light',\n dark: 'text-neutral-800 *:text-text-light',\n text: 'text-text *:text-text-opposite',\n 'text-inverse': 'text-text-opposite *:text-text',\n error: 'text-error *:text-text-light',\n success: 'text-success *:text-text-light',\n custom: '',\n },\n variant: {\n default: 'rounded-lg bg-current',\n none: 'border-none bg-current/0 text-inherit hover:bg-current/0',\n outline:\n '*:!text-current rounded-lg border-[1.5px] bg-current/0 hover:bg-current/30',\n link: '*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline',\n 'invisible-link':\n '*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent',\n hoverable:\n '*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5',\n input: [\n '*:!text-current w-full select-text resize-none rounded-xl border-2 bg-input-background text-sm text-input-text shadow-none outline-0 transition-all',\n 'border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]',\n 'aria-[invalid=true]:border-error',\n 'disabled:opacity-50',\n ],\n },\n\n textAlign: {\n left: 'text-left',\n center: 'text-center',\n right: 'text-right',\n },\n\n isFullWidth: {\n true: 'w-full',\n false: '',\n },\n\n hasIconLeft: {\n true: 'px-12',\n false: '',\n },\n hasIconRight: {\n true: 'pr-8',\n false: '',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'md',\n color: 'primary',\n textAlign: 'center',\n isFullWidth: false,\n hasIconRight: false,\n hasIconLeft: false,\n },\n }\n);\n\nexport type ButtonProps = DetailedHTMLProps<\n ButtonHTMLAttributes<HTMLButtonElement>,\n HTMLButtonElement\n> &\n VariantProps<typeof buttonVariants> & {\n /**\n * Optional icon to be displayed on the button\n */\n label: string;\n Icon?: FC | LucideIcon;\n IconRight?: FC | LucideIcon;\n iconClassName?: string;\n isLoading?: boolean;\n isActive?: boolean;\n isFullWidth?: boolean;\n };\n\nexport const Button: FC<ButtonProps> = ({\n variant,\n size,\n color,\n children,\n Icon,\n IconRight,\n iconClassName,\n isLoading,\n isActive,\n isFullWidth = false,\n textAlign,\n disabled,\n label,\n className,\n type = 'button',\n ...props\n}) => {\n const isLink = variant === 'link' || variant === 'invisible-link';\n\n return (\n <button\n disabled={isLoading || disabled}\n aria-current={isActive ? 'page' : undefined}\n aria-label={label}\n aria-busy={isLoading}\n role={isLink ? 'link' : undefined}\n type={type}\n className={buttonVariants({\n variant,\n size,\n color,\n isFullWidth,\n textAlign: textAlign ?? (IconRight ? 'left' : 'center'),\n hasIconLeft: Boolean(\n typeof children !== 'undefined' &&\n (typeof Icon !== 'undefined' || typeof isLoading !== 'undefined')\n ),\n hasIconRight: Boolean(\n typeof children !== 'undefined' && typeof IconRight !== 'undefined'\n ),\n className,\n })}\n {...props}\n >\n {Icon && !isLoading && (\n <Icon\n className={buttonIconVariants({\n size,\n className: iconClassName,\n position: 'left',\n })}\n />\n )}\n\n <Loader\n className={buttonIconVariants({\n size,\n className: iconClassName,\n position: 'left',\n })}\n isLoading={isLoading ?? false}\n />\n\n <span>{children}</span>\n\n {IconRight && (\n <IconRight\n className={buttonIconVariants({\n size,\n className: iconClassName,\n position: 'right',\n })}\n />\n )}\n </button>\n );\n};\n"],"names":["cva","jsxs","jsx","Loader"],"mappings":";;;;;AASA,MAAM,qBAAqBA,uBAAAA,IAAI,IAAI;AAAA,EACjC,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,WAAW;AAAA,MACX,W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,UAAM,UAAS;AAAA,QAEf,aACCA,2BAAAA;AAAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,mBAAmB;AAAA,cAC5B;AAAA,cACA,WAAW;AAAA,cACX,UAAU;AAAA,YAAA,CACX;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAIR;;"}
|
|
1
|
+
{"version":3,"file":"Button.cjs","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport type { LucideIcon } from 'lucide-react';\nimport {\n type ButtonHTMLAttributes,\n type DetailedHTMLProps,\n type FC,\n} from 'react';\nimport { Loader } from '../Loader';\n\nexport enum ButtonSize {\n SM = 'sm',\n MD = 'md',\n LG = 'lg',\n XL = 'xl',\n ICON_SM = 'icon-sm',\n ICON_MD = 'icon-md',\n ICON_LG = 'icon-lg',\n ICON_XL = 'icon-xl',\n}\n\nexport enum ButtonIconPosition {\n LEFT = 'left',\n RIGHT = 'right',\n}\n\nconst buttonIconVariants = cva('', {\n variants: {\n size: {\n [`${ButtonSize.SM}`]: 'size-3 absolute top-1/2 -translate-y-1/2',\n [`${ButtonSize.MD}`]: 'size-4 absolute top-1/2 -translate-y-1/2',\n [`${ButtonSize.LG}`]: 'size-5 absolute top-1/2 -translate-y-1/2',\n [`${ButtonSize.XL}`]: 'size-6 absolute top-1/2 -translate-y-1/2',\n [`${ButtonSize.ICON_SM}`]: 'size-3',\n [`${ButtonSize.ICON_MD}`]: 'size-4',\n [`${ButtonSize.ICON_LG}`]: 'size-5',\n [`${ButtonSize.ICON_XL}`]: 'size-6',\n },\n position: {\n [`${ButtonIconPosition.LEFT}`]: 'left-3',\n [`${ButtonIconPosition.RIGHT}`]: 'right-3',\n },\n },\n defaultVariants: {\n size: ButtonSize.MD,\n },\n});\n\nexport enum ButtonVariant {\n DEFAULT = 'default',\n NONE = 'none',\n OUTLINE = 'outline',\n LINK = 'link',\n INVISIBLE_LINK = 'invisible-link',\n HOVERABLE = 'hoverable',\n INPUT = 'input',\n}\n\nexport enum ButtonColor {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n DESTRUCTIVE = 'destructive',\n NEUTRAL = 'neutral',\n LIGHT = 'light',\n DARK = 'dark',\n TEXT = 'text',\n TEXT_INVERSE = 'text-inverse',\n ERROR = 'error',\n SUCCESS = 'success',\n CUSTOM = 'custom',\n}\n\nexport enum ButtonTextAlign {\n LEFT = 'left',\n CENTER = 'center',\n RIGHT = 'right',\n}\n\nconst buttonVariants = cva(\n 'relative cursor-pointer truncate whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50',\n {\n variants: {\n size: {\n [`${ButtonSize.SM}`]: 'min-h-7 px-3 max-md:py-1 text-xs',\n [`${ButtonSize.MD}`]: 'min-h-8 px-6 max-md:py-2 text-sm',\n [`${ButtonSize.LG}`]: 'min-h-10 px-8 max-md:py-3 text-lg',\n [`${ButtonSize.XL}`]: 'min-h-11 px-10 max-md:py-4 text-xl',\n [`${ButtonSize.ICON_SM}`]: 'p-1.5',\n [`${ButtonSize.ICON_MD}`]: 'p-1.5',\n [`${ButtonSize.ICON_LG}`]: 'p-2',\n [`${ButtonSize.ICON_XL}`]: 'p-3',\n },\n color: {\n [`${ButtonColor.PRIMARY}`]: 'text-primary *:text-text-light',\n [`${ButtonColor.SECONDARY}`]: 'text-secondary *:text-text-light',\n [`${ButtonColor.DESTRUCTIVE}`]: 'text-destructive *:text-text-light',\n [`${ButtonColor.NEUTRAL}`]: 'text-neutral *:text-text-light',\n [`${ButtonColor.LIGHT}`]: 'text-white *:text-text-light',\n [`${ButtonColor.DARK}`]: 'text-neutral-800 *:text-text-light',\n [`${ButtonColor.TEXT}`]: 'text-text *:text-text-opposite',\n [`${ButtonColor.TEXT_INVERSE}`]: 'text-text-opposite *:text-text',\n [`${ButtonColor.ERROR}`]: 'text-error *:text-text-light',\n [`${ButtonColor.SUCCESS}`]: 'text-success *:text-text-light',\n [`${ButtonColor.CUSTOM}`]: '',\n },\n variant: {\n [`${ButtonVariant.DEFAULT}`]: 'rounded-lg bg-current',\n [`${ButtonVariant.NONE}`]:\n 'border-none bg-current/0 text-inherit hover:bg-current/0',\n [`${ButtonVariant.OUTLINE}`]:\n '*:!text-current rounded-lg border-[1.5px] bg-current/0 hover:bg-current/30',\n [`${ButtonVariant.LINK}`]:\n '*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline',\n [`${ButtonVariant.INVISIBLE_LINK}`]:\n '*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent',\n [`${ButtonVariant.HOVERABLE}`]:\n '*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5',\n [`${ButtonVariant.INPUT}`]: [\n '*:!text-current w-full select-text resize-none rounded-xl border-2 bg-input-background text-sm text-input-text shadow-none outline-0 transition-all',\n 'border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]',\n 'aria-[invalid=true]:border-error',\n 'disabled:opacity-50',\n ],\n },\n\n textAlign: {\n [`${ButtonTextAlign.LEFT}`]: 'text-left',\n [`${ButtonTextAlign.CENTER}`]: 'text-center',\n [`${ButtonTextAlign.RIGHT}`]: 'text-right',\n },\n\n isFullWidth: {\n true: 'w-full',\n false: '',\n },\n\n hasIconLeft: {\n true: 'px-12',\n false: '',\n },\n hasIconRight: {\n true: 'pr-8',\n false: '',\n },\n },\n defaultVariants: {\n variant: ButtonVariant.DEFAULT,\n size: ButtonSize.MD,\n color: ButtonColor.CUSTOM,\n textAlign: ButtonTextAlign.CENTER,\n isFullWidth: false,\n hasIconRight: false,\n hasIconLeft: false,\n },\n }\n);\n\nexport type ButtonProps = DetailedHTMLProps<\n ButtonHTMLAttributes<HTMLButtonElement>,\n HTMLButtonElement\n> &\n VariantProps<typeof buttonVariants> & {\n /**\n * Optional icon to be displayed on the button\n */\n label: string;\n Icon?: FC | LucideIcon;\n IconRight?: FC | LucideIcon;\n iconClassName?: string;\n isLoading?: boolean;\n isActive?: boolean;\n isFullWidth?: boolean;\n };\n\nexport const Button: FC<ButtonProps> = ({\n variant,\n size,\n color,\n children,\n Icon,\n IconRight,\n iconClassName,\n isLoading,\n isActive,\n isFullWidth = false,\n textAlign,\n disabled,\n label,\n className,\n type = 'button',\n ...props\n}) => {\n const isLink = variant === 'link' || variant === 'invisible-link';\n\n return (\n <button\n disabled={isLoading || disabled}\n aria-current={isActive ? 'page' : undefined}\n aria-label={label}\n aria-busy={isLoading}\n role={isLink ? 'link' : undefined}\n type={type}\n className={buttonVariants({\n variant,\n size,\n color,\n isFullWidth,\n textAlign:\n textAlign ??\n (IconRight ? ButtonTextAlign.LEFT : ButtonTextAlign.CENTER),\n hasIconLeft: Boolean(\n typeof children !== 'undefined' &&\n (typeof Icon !== 'undefined' || typeof isLoading !== 'undefined')\n ),\n hasIconRight: Boolean(\n typeof children !== 'undefined' && typeof IconRight !== 'undefined'\n ),\n className,\n })}\n {...props}\n >\n {Icon && !isLoading && (\n <Icon\n className={buttonIconVariants({\n size,\n className: iconClassName,\n position: ButtonIconPosition.LEFT,\n })}\n />\n )}\n\n <Loader\n className={buttonIconVariants({\n size,\n className: iconClassName,\n position: ButtonIconPosition.LEFT,\n })}\n isLoading={isLoading ?? false}\n />\n\n <span>{children}</span>\n\n {IconRight && (\n <IconRight\n className={buttonIconVariants({\n size,\n className: iconClassName,\n position: ButtonIconPosition.RIGHT,\n })}\n />\n )}\n </button>\n );\n};\n"],"names":["ButtonSize","ButtonIconPosition","cva","ButtonVariant","ButtonColor","ButtonTextAlign","jsxs","jsx","Loader"],"mappings":";;;;;AASO,IAAK,+BAAAA,gBAAL;AACLA,cAAA,IAAA,IAAK;AACLA,cAAA,IAAA,IAAK;AACLA,cAAA,IAAA,IAAK;AACLA,cAAA,IAAA,IAAK;AACLA,cAAA,SAAA,IAAU;AACVA,cAAA,SAAA,IAAU;AACVA,cAAA,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
|
|
2
2
|
import { LucideIcon } from 'lucide-react';
|
|
3
3
|
import { ButtonHTMLAttributes, DetailedHTMLProps, FC } from 'react';
|
|
4
|
+
export declare enum ButtonSize {
|
|
5
|
+
SM = "sm",
|
|
6
|
+
MD = "md",
|
|
7
|
+
LG = "lg",
|
|
8
|
+
XL = "xl",
|
|
9
|
+
ICON_SM = "icon-sm",
|
|
10
|
+
ICON_MD = "icon-md",
|
|
11
|
+
ICON_LG = "icon-lg",
|
|
12
|
+
ICON_XL = "icon-xl"
|
|
13
|
+
}
|
|
14
|
+
export declare enum ButtonIconPosition {
|
|
15
|
+
LEFT = "left",
|
|
16
|
+
RIGHT = "right"
|
|
17
|
+
}
|
|
18
|
+
export declare enum ButtonVariant {
|
|
19
|
+
DEFAULT = "default",
|
|
20
|
+
NONE = "none",
|
|
21
|
+
OUTLINE = "outline",
|
|
22
|
+
LINK = "link",
|
|
23
|
+
INVISIBLE_LINK = "invisible-link",
|
|
24
|
+
HOVERABLE = "hoverable",
|
|
25
|
+
INPUT = "input"
|
|
26
|
+
}
|
|
27
|
+
export declare enum ButtonColor {
|
|
28
|
+
PRIMARY = "primary",
|
|
29
|
+
SECONDARY = "secondary",
|
|
30
|
+
DESTRUCTIVE = "destructive",
|
|
31
|
+
NEUTRAL = "neutral",
|
|
32
|
+
LIGHT = "light",
|
|
33
|
+
DARK = "dark",
|
|
34
|
+
TEXT = "text",
|
|
35
|
+
TEXT_INVERSE = "text-inverse",
|
|
36
|
+
ERROR = "error",
|
|
37
|
+
SUCCESS = "success",
|
|
38
|
+
CUSTOM = "custom"
|
|
39
|
+
}
|
|
40
|
+
export declare enum ButtonTextAlign {
|
|
41
|
+
LEFT = "left",
|
|
42
|
+
CENTER = "center",
|
|
43
|
+
RIGHT = "right"
|
|
44
|
+
}
|
|
4
45
|
declare const buttonVariants: (props?: ({
|
|
5
46
|
size?: "sm" | "md" | "lg" | "xl" | "icon-sm" | "icon-md" | "icon-lg" | "icon-xl" | null | undefined;
|
|
6
47
|
color?: "text" | "primary" | "secondary" | "destructive" | "neutral" | "light" | "dark" | "text-inverse" | "error" | "success" | "custom" | null | undefined;
|
|
7
|
-
variant?: "
|
|
48
|
+
variant?: "none" | "link" | "default" | "outline" | "invisible-link" | "hoverable" | "input" | null | undefined;
|
|
8
49
|
textAlign?: "left" | "right" | "center" | null | undefined;
|
|
9
50
|
isFullWidth?: boolean | null | undefined;
|
|
10
51
|
hasIconLeft?: boolean | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"Button.d.ts","sourceRoot":"","sources":["../../../src/components/Button/Button.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAO,KAAK,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,EACL,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,EAAE,EACR,MAAM,OAAO,CAAC;AAGf,oBAAY,UAAU;IACpB,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,EAAE,OAAO;IACT,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;IACnB,OAAO,YAAY;CACpB;AAED,oBAAY,kBAAkB;IAC5B,IAAI,SAAS;IACb,KAAK,UAAU;CAChB;AAwBD,oBAAY,aAAa;IACvB,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,IAAI,SAAS;IACb,cAAc,mBAAmB;IACjC,SAAS,cAAc;IACvB,KAAK,UAAU;CAChB;AAED,oBAAY,WAAW;IACrB,OAAO,YAAY;IACnB,SAAS,cAAc;IACvB,WAAW,gBAAgB;IAC3B,OAAO,YAAY;IACnB,KAAK,UAAU;IACf,IAAI,SAAS;IACb,IAAI,SAAS;IACb,YAAY,iBAAiB;IAC7B,KAAK,UAAU;IACf,OAAO,YAAY;IACnB,MAAM,WAAW;CAClB;AAED,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;CAChB;AAED,QAAA,MAAM,cAAc;;;;;;;;8EA6EnB,CAAC;AAEF,MAAM,MAAM,WAAW,GAAG,iBAAiB,CACzC,oBAAoB,CAAC,iBAAiB,CAAC,EACvC,iBAAiB,CAClB,GACC,YAAY,CAAC,OAAO,cAAc,CAAC,GAAG;IACpC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,EAAE,GAAG,UAAU,CAAC;IACvB,SAAS,CAAC,EAAE,EAAE,GAAG,UAAU,CAAC;IAC5B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEJ,eAAO,MAAM,MAAM,EAAE,EAAE,CAAC,WAAW,CA+ElC,CAAC"}
|
|
@@ -1,62 +1,109 @@
|
|
|
1
1
|
import { jsxs, jsx } from "react/jsx-runtime";
|
|
2
2
|
import { cva } from "class-variance-authority";
|
|
3
3
|
import { Loader } from "../Loader/index.mjs";
|
|
4
|
+
var ButtonSize = /* @__PURE__ */ ((ButtonSize2) => {
|
|
5
|
+
ButtonSize2["SM"] = "sm";
|
|
6
|
+
ButtonSize2["MD"] = "md";
|
|
7
|
+
ButtonSize2["LG"] = "lg";
|
|
8
|
+
ButtonSize2["XL"] = "xl";
|
|
9
|
+
ButtonSize2["ICON_SM"] = "icon-sm";
|
|
10
|
+
ButtonSize2["ICON_MD"] = "icon-md";
|
|
11
|
+
ButtonSize2["ICON_LG"] = "icon-lg";
|
|
12
|
+
ButtonSize2["ICON_XL"] = "icon-xl";
|
|
13
|
+
return ButtonSize2;
|
|
14
|
+
})(ButtonSize || {});
|
|
15
|
+
var ButtonIconPosition = /* @__PURE__ */ ((ButtonIconPosition2) => {
|
|
16
|
+
ButtonIconPosition2["LEFT"] = "left";
|
|
17
|
+
ButtonIconPosition2["RIGHT"] = "right";
|
|
18
|
+
return ButtonIconPosition2;
|
|
19
|
+
})(ButtonIconPosition || {});
|
|
4
20
|
const buttonIconVariants = cva("", {
|
|
5
21
|
variants: {
|
|
6
22
|
size: {
|
|
7
|
-
sm: "size-3 absolute top-1/2 -translate-y-1/2",
|
|
8
|
-
md: "size-4 absolute top-1/2 -translate-y-1/2",
|
|
9
|
-
lg: "size-5 absolute top-1/2 -translate-y-1/2",
|
|
10
|
-
xl: "size-6 absolute top-1/2 -translate-y-1/2",
|
|
11
|
-
"icon-sm": "size-3",
|
|
12
|
-
"icon-md": "size-4",
|
|
13
|
-
"icon-lg": "size-5",
|
|
14
|
-
"icon-xl": "size-6"
|
|
23
|
+
[`${"sm"}`]: "size-3 absolute top-1/2 -translate-y-1/2",
|
|
24
|
+
[`${"md"}`]: "size-4 absolute top-1/2 -translate-y-1/2",
|
|
25
|
+
[`${"lg"}`]: "size-5 absolute top-1/2 -translate-y-1/2",
|
|
26
|
+
[`${"xl"}`]: "size-6 absolute top-1/2 -translate-y-1/2",
|
|
27
|
+
[`${"icon-sm"}`]: "size-3",
|
|
28
|
+
[`${"icon-md"}`]: "size-4",
|
|
29
|
+
[`${"icon-lg"}`]: "size-5",
|
|
30
|
+
[`${"icon-xl"}`]: "size-6"
|
|
15
31
|
},
|
|
16
32
|
position: {
|
|
17
|
-
left: "left-3",
|
|
18
|
-
right: "right-3"
|
|
33
|
+
[`${"left"}`]: "left-3",
|
|
34
|
+
[`${"right"}`]: "right-3"
|
|
19
35
|
}
|
|
20
36
|
},
|
|
21
37
|
defaultVariants: {
|
|
22
38
|
size: "md"
|
|
39
|
+
/* MD */
|
|
23
40
|
}
|
|
24
41
|
});
|
|
42
|
+
var ButtonVariant = /* @__PURE__ */ ((ButtonVariant2) => {
|
|
43
|
+
ButtonVariant2["DEFAULT"] = "default";
|
|
44
|
+
ButtonVariant2["NONE"] = "none";
|
|
45
|
+
ButtonVariant2["OUTLINE"] = "outline";
|
|
46
|
+
ButtonVariant2["LINK"] = "link";
|
|
47
|
+
ButtonVariant2["INVISIBLE_LINK"] = "invisible-link";
|
|
48
|
+
ButtonVariant2["HOVERABLE"] = "hoverable";
|
|
49
|
+
ButtonVariant2["INPUT"] = "input";
|
|
50
|
+
return ButtonVariant2;
|
|
51
|
+
})(ButtonVariant || {});
|
|
52
|
+
var ButtonColor = /* @__PURE__ */ ((ButtonColor2) => {
|
|
53
|
+
ButtonColor2["PRIMARY"] = "primary";
|
|
54
|
+
ButtonColor2["SECONDARY"] = "secondary";
|
|
55
|
+
ButtonColor2["DESTRUCTIVE"] = "destructive";
|
|
56
|
+
ButtonColor2["NEUTRAL"] = "neutral";
|
|
57
|
+
ButtonColor2["LIGHT"] = "light";
|
|
58
|
+
ButtonColor2["DARK"] = "dark";
|
|
59
|
+
ButtonColor2["TEXT"] = "text";
|
|
60
|
+
ButtonColor2["TEXT_INVERSE"] = "text-inverse";
|
|
61
|
+
ButtonColor2["ERROR"] = "error";
|
|
62
|
+
ButtonColor2["SUCCESS"] = "success";
|
|
63
|
+
ButtonColor2["CUSTOM"] = "custom";
|
|
64
|
+
return ButtonColor2;
|
|
65
|
+
})(ButtonColor || {});
|
|
66
|
+
var ButtonTextAlign = /* @__PURE__ */ ((ButtonTextAlign2) => {
|
|
67
|
+
ButtonTextAlign2["LEFT"] = "left";
|
|
68
|
+
ButtonTextAlign2["CENTER"] = "center";
|
|
69
|
+
ButtonTextAlign2["RIGHT"] = "right";
|
|
70
|
+
return ButtonTextAlign2;
|
|
71
|
+
})(ButtonTextAlign || {});
|
|
25
72
|
const buttonVariants = cva(
|
|
26
73
|
"relative cursor-pointer truncate whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50",
|
|
27
74
|
{
|
|
28
75
|
variants: {
|
|
29
76
|
size: {
|
|
30
|
-
sm: "min-h-7 px-3 max-md:py-1 text-xs",
|
|
31
|
-
md: "min-h-8 px-6 max-md:py-2 text-sm",
|
|
32
|
-
lg: "min-h-10 px-8 max-md:py-3 text-lg",
|
|
33
|
-
xl: "min-h-11 px-10 max-md:py-4 text-xl",
|
|
34
|
-
"icon-sm": "p-1.5",
|
|
35
|
-
"icon-md": "p-1.5",
|
|
36
|
-
"icon-lg": "p-2",
|
|
37
|
-
"icon-xl": "p-3"
|
|
77
|
+
[`${"sm"}`]: "min-h-7 px-3 max-md:py-1 text-xs",
|
|
78
|
+
[`${"md"}`]: "min-h-8 px-6 max-md:py-2 text-sm",
|
|
79
|
+
[`${"lg"}`]: "min-h-10 px-8 max-md:py-3 text-lg",
|
|
80
|
+
[`${"xl"}`]: "min-h-11 px-10 max-md:py-4 text-xl",
|
|
81
|
+
[`${"icon-sm"}`]: "p-1.5",
|
|
82
|
+
[`${"icon-md"}`]: "p-1.5",
|
|
83
|
+
[`${"icon-lg"}`]: "p-2",
|
|
84
|
+
[`${"icon-xl"}`]: "p-3"
|
|
38
85
|
},
|
|
39
86
|
color: {
|
|
40
|
-
primary: "text-primary *:text-text-light",
|
|
41
|
-
secondary: "text-secondary *:text-text-light",
|
|
42
|
-
destructive: "text-destructive *:text-text-light",
|
|
43
|
-
neutral: "text-neutral *:text-text-light",
|
|
44
|
-
light: "text-white *:text-text-light",
|
|
45
|
-
dark: "text-neutral-800 *:text-text-light",
|
|
46
|
-
text: "text-text *:text-text-opposite",
|
|
47
|
-
"text-inverse": "text-text-opposite *:text-text",
|
|
48
|
-
error: "text-error *:text-text-light",
|
|
49
|
-
success: "text-success *:text-text-light",
|
|
50
|
-
custom: ""
|
|
87
|
+
[`${"primary"}`]: "text-primary *:text-text-light",
|
|
88
|
+
[`${"secondary"}`]: "text-secondary *:text-text-light",
|
|
89
|
+
[`${"destructive"}`]: "text-destructive *:text-text-light",
|
|
90
|
+
[`${"neutral"}`]: "text-neutral *:text-text-light",
|
|
91
|
+
[`${"light"}`]: "text-white *:text-text-light",
|
|
92
|
+
[`${"dark"}`]: "text-neutral-800 *:text-text-light",
|
|
93
|
+
[`${"text"}`]: "text-text *:text-text-opposite",
|
|
94
|
+
[`${"text-inverse"}`]: "text-text-opposite *:text-text",
|
|
95
|
+
[`${"error"}`]: "text-error *:text-text-light",
|
|
96
|
+
[`${"success"}`]: "text-success *:text-text-light",
|
|
97
|
+
[`${"custom"}`]: ""
|
|
51
98
|
},
|
|
52
99
|
variant: {
|
|
53
|
-
default: "rounded-lg bg-current",
|
|
54
|
-
none: "border-none bg-current/0 text-inherit hover:bg-current/0",
|
|
55
|
-
outline: "*:!text-current rounded-lg border-[1.5px] bg-current/0 hover:bg-current/30",
|
|
56
|
-
link: "*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline",
|
|
57
|
-
"invisible-link": "*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent",
|
|
58
|
-
hoverable: "*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5",
|
|
59
|
-
input: [
|
|
100
|
+
[`${"default"}`]: "rounded-lg bg-current",
|
|
101
|
+
[`${"none"}`]: "border-none bg-current/0 text-inherit hover:bg-current/0",
|
|
102
|
+
[`${"outline"}`]: "*:!text-current rounded-lg border-[1.5px] bg-current/0 hover:bg-current/30",
|
|
103
|
+
[`${"link"}`]: "*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline",
|
|
104
|
+
[`${"invisible-link"}`]: "*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent",
|
|
105
|
+
[`${"hoverable"}`]: "*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5",
|
|
106
|
+
[`${"input"}`]: [
|
|
60
107
|
"*:!text-current w-full select-text resize-none rounded-xl border-2 bg-input-background text-sm text-input-text shadow-none outline-0 transition-all",
|
|
61
108
|
"border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]",
|
|
62
109
|
"aria-[invalid=true]:border-error",
|
|
@@ -64,9 +111,9 @@ const buttonVariants = cva(
|
|
|
64
111
|
]
|
|
65
112
|
},
|
|
66
113
|
textAlign: {
|
|
67
|
-
left: "text-left",
|
|
68
|
-
center: "text-center",
|
|
69
|
-
right: "text-right"
|
|
114
|
+
[`${"left"}`]: "text-left",
|
|
115
|
+
[`${"center"}`]: "text-center",
|
|
116
|
+
[`${"right"}`]: "text-right"
|
|
70
117
|
},
|
|
71
118
|
isFullWidth: {
|
|
72
119
|
true: "w-full",
|
|
@@ -84,7 +131,7 @@ const buttonVariants = cva(
|
|
|
84
131
|
defaultVariants: {
|
|
85
132
|
variant: "default",
|
|
86
133
|
size: "md",
|
|
87
|
-
color: "
|
|
134
|
+
color: "custom",
|
|
88
135
|
textAlign: "center",
|
|
89
136
|
isFullWidth: false,
|
|
90
137
|
hasIconRight: false,
|
|
@@ -143,6 +190,7 @@ const Button = ({
|
|
|
143
190
|
size,
|
|
144
191
|
className: iconClassName,
|
|
145
192
|
position: "left"
|
|
193
|
+
/* LEFT */
|
|
146
194
|
})
|
|
147
195
|
}
|
|
148
196
|
),
|
|
@@ -153,6 +201,7 @@ const Button = ({
|
|
|
153
201
|
size,
|
|
154
202
|
className: iconClassName,
|
|
155
203
|
position: "left"
|
|
204
|
+
/* LEFT */
|
|
156
205
|
}),
|
|
157
206
|
isLoading: isLoading ?? false
|
|
158
207
|
}
|
|
@@ -165,6 +214,7 @@ const Button = ({
|
|
|
165
214
|
size,
|
|
166
215
|
className: iconClassName,
|
|
167
216
|
position: "right"
|
|
217
|
+
/* RIGHT */
|
|
168
218
|
})
|
|
169
219
|
}
|
|
170
220
|
)
|
|
@@ -173,6 +223,11 @@ const Button = ({
|
|
|
173
223
|
);
|
|
174
224
|
};
|
|
175
225
|
export {
|
|
176
|
-
Button
|
|
226
|
+
Button,
|
|
227
|
+
ButtonColor,
|
|
228
|
+
ButtonIconPosition,
|
|
229
|
+
ButtonSize,
|
|
230
|
+
ButtonTextAlign,
|
|
231
|
+
ButtonVariant
|
|
177
232
|
};
|
|
178
233
|
//# sourceMappingURL=Button.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Button.mjs","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport type { LucideIcon } from 'lucide-react';\nimport {\n type ButtonHTMLAttributes,\n type DetailedHTMLProps,\n type FC,\n} from 'react';\nimport { Loader } from '../Loader';\n\nconst buttonIconVariants = cva('', {\n variants: {\n size: {\n sm: 'size-3 absolute top-1/2 -translate-y-1/2',\n md: 'size-4 absolute top-1/2 -translate-y-1/2',\n lg: 'size-5 absolute top-1/2 -translate-y-1/2',\n xl: 'size-6 absolute top-1/2 -translate-y-1/2',\n 'icon-sm': 'size-3',\n 'icon-md': 'size-4',\n 'icon-lg': 'size-5',\n 'icon-xl': 'size-6',\n },\n position: {\n left: 'left-3',\n right: 'right-3',\n },\n },\n defaultVariants: {\n size: 'md',\n },\n});\n\nconst buttonVariants = cva(\n 'relative cursor-pointer truncate whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50',\n {\n variants: {\n size: {\n sm: 'min-h-7 px-3 max-md:py-1 text-xs',\n md: 'min-h-8 px-6 max-md:py-2 text-sm',\n lg: 'min-h-10 px-8 max-md:py-3 text-lg',\n xl: 'min-h-11 px-10 max-md:py-4 text-xl',\n 'icon-sm': 'p-1.5',\n 'icon-md': 'p-1.5',\n 'icon-lg': 'p-2',\n 'icon-xl': 'p-3',\n },\n color: {\n primary: 'text-primary *:text-text-light',\n secondary: 'text-secondary *:text-text-light',\n destructive: 'text-destructive *:text-text-light',\n neutral: 'text-neutral *:text-text-light',\n light: 'text-white *:text-text-light',\n dark: 'text-neutral-800 *:text-text-light',\n text: 'text-text *:text-text-opposite',\n 'text-inverse': 'text-text-opposite *:text-text',\n error: 'text-error *:text-text-light',\n success: 'text-success *:text-text-light',\n custom: '',\n },\n variant: {\n default: 'rounded-lg bg-current',\n none: 'border-none bg-current/0 text-inherit hover:bg-current/0',\n outline:\n '*:!text-current rounded-lg border-[1.5px] bg-current/0 hover:bg-current/30',\n link: '*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline',\n 'invisible-link':\n '*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent',\n hoverable:\n '*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5',\n input: [\n '*:!text-current w-full select-text resize-none rounded-xl border-2 bg-input-background text-sm text-input-text shadow-none outline-0 transition-all',\n 'border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]',\n 'aria-[invalid=true]:border-error',\n 'disabled:opacity-50',\n ],\n },\n\n textAlign: {\n left: 'text-left',\n center: 'text-center',\n right: 'text-right',\n },\n\n isFullWidth: {\n true: 'w-full',\n false: '',\n },\n\n hasIconLeft: {\n true: 'px-12',\n false: '',\n },\n hasIconRight: {\n true: 'pr-8',\n false: '',\n },\n },\n defaultVariants: {\n variant: 'default',\n size: 'md',\n color: 'primary',\n textAlign: 'center',\n isFullWidth: false,\n hasIconRight: false,\n hasIconLeft: false,\n },\n }\n);\n\nexport type ButtonProps = DetailedHTMLProps<\n ButtonHTMLAttributes<HTMLButtonElement>,\n HTMLButtonElement\n> &\n VariantProps<typeof buttonVariants> & {\n /**\n * Optional icon to be displayed on the button\n */\n label: string;\n Icon?: FC | LucideIcon;\n IconRight?: FC | LucideIcon;\n iconClassName?: string;\n isLoading?: boolean;\n isActive?: boolean;\n isFullWidth?: boolean;\n };\n\nexport const Button: FC<ButtonProps> = ({\n variant,\n size,\n color,\n children,\n Icon,\n IconRight,\n iconClassName,\n isLoading,\n isActive,\n isFullWidth = false,\n textAlign,\n disabled,\n label,\n className,\n type = 'button',\n ...props\n}) => {\n const isLink = variant === 'link' || variant === 'invisible-link';\n\n return (\n <button\n disabled={isLoading || disabled}\n aria-current={isActive ? 'page' : undefined}\n aria-label={label}\n aria-busy={isLoading}\n role={isLink ? 'link' : undefined}\n type={type}\n className={buttonVariants({\n variant,\n size,\n color,\n isFullWidth,\n textAlign: textAlign ?? (IconRight ? 'left' : 'center'),\n hasIconLeft: Boolean(\n typeof children !== 'undefined' &&\n (typeof Icon !== 'undefined' || typeof isLoading !== 'undefined')\n ),\n hasIconRight: Boolean(\n typeof children !== 'undefined' && typeof IconRight !== 'undefined'\n ),\n className,\n })}\n {...props}\n >\n {Icon && !isLoading && (\n <Icon\n className={buttonIconVariants({\n size,\n className: iconClassName,\n position: 'left',\n })}\n />\n )}\n\n <Loader\n className={buttonIconVariants({\n size,\n className: iconClassName,\n position: 'left',\n })}\n isLoading={isLoading ?? false}\n />\n\n <span>{children}</span>\n\n {IconRight && (\n <IconRight\n className={buttonIconVariants({\n size,\n className: iconClassName,\n position: 'right',\n })}\n />\n )}\n </button>\n );\n};\n"],"names":[],"mappings":";;;AASA,MAAM,qBAAqB,IAAI,IAAI;AAAA,EACjC,UAAU;AAAA,IACR,MAAM;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,IAAI;AAAA,MACJ,WAAW;AAAA,MACX,WAAW;AAAA,MACX,WAAW;AAAA,MACX,WAAW;AAAA,IAAA;AAAA,IAEb,UAAU;AAAA,MACR,MAAM;AAAA,MACN,OAAO;AAAA,IAAA;AAAA,EACT;AAAA,EAEF,iBAAiB;AAAA,IACf,M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
|
|
1
|
+
{"version":3,"file":"Button.mjs","sources":["../../../src/components/Button/Button.tsx"],"sourcesContent":["import { cva, type VariantProps } from 'class-variance-authority';\nimport type { LucideIcon } from 'lucide-react';\nimport {\n type ButtonHTMLAttributes,\n type DetailedHTMLProps,\n type FC,\n} from 'react';\nimport { Loader } from '../Loader';\n\nexport enum ButtonSize {\n SM = 'sm',\n MD = 'md',\n LG = 'lg',\n XL = 'xl',\n ICON_SM = 'icon-sm',\n ICON_MD = 'icon-md',\n ICON_LG = 'icon-lg',\n ICON_XL = 'icon-xl',\n}\n\nexport enum ButtonIconPosition {\n LEFT = 'left',\n RIGHT = 'right',\n}\n\nconst buttonIconVariants = cva('', {\n variants: {\n size: {\n [`${ButtonSize.SM}`]: 'size-3 absolute top-1/2 -translate-y-1/2',\n [`${ButtonSize.MD}`]: 'size-4 absolute top-1/2 -translate-y-1/2',\n [`${ButtonSize.LG}`]: 'size-5 absolute top-1/2 -translate-y-1/2',\n [`${ButtonSize.XL}`]: 'size-6 absolute top-1/2 -translate-y-1/2',\n [`${ButtonSize.ICON_SM}`]: 'size-3',\n [`${ButtonSize.ICON_MD}`]: 'size-4',\n [`${ButtonSize.ICON_LG}`]: 'size-5',\n [`${ButtonSize.ICON_XL}`]: 'size-6',\n },\n position: {\n [`${ButtonIconPosition.LEFT}`]: 'left-3',\n [`${ButtonIconPosition.RIGHT}`]: 'right-3',\n },\n },\n defaultVariants: {\n size: ButtonSize.MD,\n },\n});\n\nexport enum ButtonVariant {\n DEFAULT = 'default',\n NONE = 'none',\n OUTLINE = 'outline',\n LINK = 'link',\n INVISIBLE_LINK = 'invisible-link',\n HOVERABLE = 'hoverable',\n INPUT = 'input',\n}\n\nexport enum ButtonColor {\n PRIMARY = 'primary',\n SECONDARY = 'secondary',\n DESTRUCTIVE = 'destructive',\n NEUTRAL = 'neutral',\n LIGHT = 'light',\n DARK = 'dark',\n TEXT = 'text',\n TEXT_INVERSE = 'text-inverse',\n ERROR = 'error',\n SUCCESS = 'success',\n CUSTOM = 'custom',\n}\n\nexport enum ButtonTextAlign {\n LEFT = 'left',\n CENTER = 'center',\n RIGHT = 'right',\n}\n\nconst buttonVariants = cva(\n 'relative cursor-pointer truncate whitespace-nowrap font-medium transition focus-visible:outline-hidden disabled:pointer-events-none disabled:opacity-50',\n {\n variants: {\n size: {\n [`${ButtonSize.SM}`]: 'min-h-7 px-3 max-md:py-1 text-xs',\n [`${ButtonSize.MD}`]: 'min-h-8 px-6 max-md:py-2 text-sm',\n [`${ButtonSize.LG}`]: 'min-h-10 px-8 max-md:py-3 text-lg',\n [`${ButtonSize.XL}`]: 'min-h-11 px-10 max-md:py-4 text-xl',\n [`${ButtonSize.ICON_SM}`]: 'p-1.5',\n [`${ButtonSize.ICON_MD}`]: 'p-1.5',\n [`${ButtonSize.ICON_LG}`]: 'p-2',\n [`${ButtonSize.ICON_XL}`]: 'p-3',\n },\n color: {\n [`${ButtonColor.PRIMARY}`]: 'text-primary *:text-text-light',\n [`${ButtonColor.SECONDARY}`]: 'text-secondary *:text-text-light',\n [`${ButtonColor.DESTRUCTIVE}`]: 'text-destructive *:text-text-light',\n [`${ButtonColor.NEUTRAL}`]: 'text-neutral *:text-text-light',\n [`${ButtonColor.LIGHT}`]: 'text-white *:text-text-light',\n [`${ButtonColor.DARK}`]: 'text-neutral-800 *:text-text-light',\n [`${ButtonColor.TEXT}`]: 'text-text *:text-text-opposite',\n [`${ButtonColor.TEXT_INVERSE}`]: 'text-text-opposite *:text-text',\n [`${ButtonColor.ERROR}`]: 'text-error *:text-text-light',\n [`${ButtonColor.SUCCESS}`]: 'text-success *:text-text-light',\n [`${ButtonColor.CUSTOM}`]: '',\n },\n variant: {\n [`${ButtonVariant.DEFAULT}`]: 'rounded-lg bg-current',\n [`${ButtonVariant.NONE}`]:\n 'border-none bg-current/0 text-inherit hover:bg-current/0',\n [`${ButtonVariant.OUTLINE}`]:\n '*:!text-current rounded-lg border-[1.5px] bg-current/0 hover:bg-current/30',\n [`${ButtonVariant.LINK}`]:\n '*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent hover:underline',\n [`${ButtonVariant.INVISIBLE_LINK}`]:\n '*:!text-current h-auto justify-start border-inherit bg-transparent px-1 underline-offset-4 hover:bg-transparent',\n [`${ButtonVariant.HOVERABLE}`]:\n '*:!text-current rounded-lg border-none bg-current/0 transition hover:bg-current/10 aria-[current]:bg-current/5',\n [`${ButtonVariant.INPUT}`]: [\n '*:!text-current w-full select-text resize-none rounded-xl border-2 bg-input-background text-sm text-input-text shadow-none outline-0 transition-all',\n 'border-input-border hover:border-input-border-hover focus:border-input-border-focus focus:outline-0 focus:[box-shadow:none]',\n 'aria-[invalid=true]:border-error',\n 'disabled:opacity-50',\n ],\n },\n\n textAlign: {\n [`${ButtonTextAlign.LEFT}`]: 'text-left',\n [`${ButtonTextAlign.CENTER}`]: 'text-center',\n [`${ButtonTextAlign.RIGHT}`]: 'text-right',\n },\n\n isFullWidth: {\n true: 'w-full',\n false: '',\n },\n\n hasIconLeft: {\n true: 'px-12',\n false: '',\n },\n hasIconRight: {\n true: 'pr-8',\n false: '',\n },\n },\n defaultVariants: {\n variant: ButtonVariant.DEFAULT,\n size: ButtonSize.MD,\n color: ButtonColor.CUSTOM,\n textAlign: ButtonTextAlign.CENTER,\n isFullWidth: false,\n hasIconRight: false,\n hasIconLeft: false,\n },\n }\n);\n\nexport type ButtonProps = DetailedHTMLProps<\n ButtonHTMLAttributes<HTMLButtonElement>,\n HTMLButtonElement\n> &\n VariantProps<typeof buttonVariants> & {\n /**\n * Optional icon to be displayed on the button\n */\n label: string;\n Icon?: FC | LucideIcon;\n IconRight?: FC | LucideIcon;\n iconClassName?: string;\n isLoading?: boolean;\n isActive?: boolean;\n isFullWidth?: boolean;\n };\n\nexport const Button: FC<ButtonProps> = ({\n variant,\n size,\n color,\n children,\n Icon,\n IconRight,\n iconClassName,\n isLoading,\n isActive,\n isFullWidth = false,\n textAlign,\n disabled,\n label,\n className,\n type = 'button',\n ...props\n}) => {\n const isLink = variant === 'link' || variant === 'invisible-link';\n\n return (\n <button\n disabled={isLoading || disabled}\n aria-current={isActive ? 'page' : undefined}\n aria-label={label}\n aria-busy={isLoading}\n role={isLink ? 'link' : undefined}\n type={type}\n className={buttonVariants({\n variant,\n size,\n color,\n isFullWidth,\n textAlign:\n textAlign ??\n (IconRight ? ButtonTextAlign.LEFT : ButtonTextAlign.CENTER),\n hasIconLeft: Boolean(\n typeof children !== 'undefined' &&\n (typeof Icon !== 'undefined' || typeof isLoading !== 'undefined')\n ),\n hasIconRight: Boolean(\n typeof children !== 'undefined' && typeof IconRight !== 'undefined'\n ),\n className,\n })}\n {...props}\n >\n {Icon && !isLoading && (\n <Icon\n className={buttonIconVariants({\n size,\n className: iconClassName,\n position: ButtonIconPosition.LEFT,\n })}\n />\n )}\n\n <Loader\n className={buttonIconVariants({\n size,\n className: iconClassName,\n position: ButtonIconPosition.LEFT,\n })}\n isLoading={isLoading ?? false}\n />\n\n <span>{children}</span>\n\n {IconRight && (\n <IconRight\n className={buttonIconVariants({\n size,\n className: iconClassName,\n position: ButtonIconPosition.RIGHT,\n })}\n />\n )}\n </button>\n );\n};\n"],"names":["ButtonSize","ButtonIconPosition","ButtonVariant","ButtonColor","ButtonTextAlign"],"mappings":";;;AASO,IAAK,+BAAAA,gBAAL;AACLA,cAAA,IAAA,IAAK;AACLA,cAAA,IAAA,IAAK;AACLA,cAAA,IAAA,IAAK;AACLA,cAAA,IAAA,IAAK;AACLA,cAAA,SAAA,IAAU;AACVA,cAAA,SAAA,IAAU;AACVA,cAAA,SAAA,IAAU;AACVA,cAAA,SAAA,IAAU;AARA,SAAAA;AAAA,GAAA,cAAA,CAAA,CAAA;AAWL,IAAK,uCAAAC,wBAAL;AACLA,sBAAA,MAAA,IAAO;AACPA,sBAAA,OAAA,IAAQ;AAFE,SAAAA;AAAA,GAAA,sBAAA,CAAA,CAAA;AAKZ,MAAM,qBAAqB,IAAI,IAAI;AAAA,EAC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,QACA,WACE,cACC,YAAY,SAAuB;AAAA,QACtC,aAAa;AAAA,UACX,OAAO,aAAa,gBACjB,OAAO,SAAS,eAAe,OAAO,cAAc;AAAA,QAAA;AAAA,QAEzD,cAAc;AAAA,UACZ,OAAO,aAAa,eAAe,OAAO,cAAc;AAAA,QAAA;AAAA,QAE1D;AAAA,MAAA,CACD;AAAA,MACA,GAAG;AAAA,MAEH,UAAA;AAAA,QAAA,QAAQ,CAAC,aACR;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,mBAAmB;AAAA,cAC5B;AAAA,cACA,WAAW;AAAA,cACX,UAAU;AAAA;AAAA,YAAA,CACX;AAAA,UAAA;AAAA,QAAA;AAAA,QAIL;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,mBAAmB;AAAA,cAC5B;AAAA,cACA,WAAW;AAAA,cACX,UAAU;AAAA;AAAA,YAAA,CACX;AAAA,YACD,WAAW,aAAa;AAAA,UAAA;AAAA,QAAA;AAAA,QAG1B,oBAAC,UAAM,UAAS;AAAA,QAEf,aACC;AAAA,UAAC;AAAA,UAAA;AAAA,YACC,WAAW,mBAAmB;AAAA,cAC5B;AAAA,cACA,WAAW;AAAA,cACX,UAAU;AAAA;AAAA,YAAA,CACX;AAAA,UAAA;AAAA,QAAA;AAAA,MACH;AAAA,IAAA;AAAA,EAAA;AAIR;"}
|
|
@@ -2,4 +2,9 @@
|
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
3
|
const components_Button_Button = require("./Button.cjs");
|
|
4
4
|
exports.Button = components_Button_Button.Button;
|
|
5
|
+
exports.ButtonColor = components_Button_Button.ButtonColor;
|
|
6
|
+
exports.ButtonIconPosition = components_Button_Button.ButtonIconPosition;
|
|
7
|
+
exports.ButtonSize = components_Button_Button.ButtonSize;
|
|
8
|
+
exports.ButtonTextAlign = components_Button_Button.ButtonTextAlign;
|
|
9
|
+
exports.ButtonVariant = components_Button_Button.ButtonVariant;
|
|
5
10
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
|
-
import { Button } from "./Button.mjs";
|
|
1
|
+
import { Button, ButtonColor, ButtonIconPosition, ButtonSize, ButtonTextAlign, ButtonVariant } from "./Button.mjs";
|
|
2
2
|
export {
|
|
3
|
-
Button
|
|
3
|
+
Button,
|
|
4
|
+
ButtonColor,
|
|
5
|
+
ButtonIconPosition,
|
|
6
|
+
ButtonSize,
|
|
7
|
+
ButtonTextAlign,
|
|
8
|
+
ButtonVariant
|
|
4
9
|
};
|
|
5
10
|
//# sourceMappingURL=index.mjs.map
|