@julseb-lib/react 0.1.19 → 0.1.21
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/chunk-AOKNHBEF.js +1 -0
- package/dist/chunk-AOKNHBEF.js.map +1 -0
- package/dist/chunk-F55MXC3Z.js +1 -0
- package/dist/chunk-F55MXC3Z.js.map +1 -0
- package/dist/chunk-IH6ET7Q6.js +1 -0
- package/dist/chunk-IH6ET7Q6.js.map +1 -0
- package/dist/chunk-OOIPIHXS.js +1 -0
- package/dist/chunk-OOIPIHXS.js.map +1 -0
- package/dist/chunk-ZL3Z7QC7.js +1 -0
- package/dist/chunk-ZL3Z7QC7.js.map +1 -0
- package/dist/global-Bck2LNL3.d.cts +1472 -0
- package/dist/global-Bck2LNL3.d.ts +1472 -0
- package/dist/index.cjs +11892 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +3231 -0
- package/dist/index.d.ts +3231 -1
- package/dist/index.js +11732 -0
- package/dist/index.js.map +1 -0
- package/dist/types/components-items-props.cjs +19 -0
- package/dist/types/components-items-props.cjs.map +1 -0
- package/dist/types/components-items-props.d.cts +175 -0
- package/dist/{lib/types/components-items-props.ts → types/components-items-props.d.ts} +56 -65
- package/dist/types/components-items-props.js +2 -0
- package/dist/types/components-items-props.js.map +1 -0
- package/dist/types/components-props.cjs +19 -0
- package/dist/types/components-props.cjs.map +1 -0
- package/dist/types/components-props.d.cts +1119 -0
- package/dist/types/components-props.d.ts +1119 -0
- package/dist/types/components-props.js +2 -0
- package/dist/types/components-props.js.map +1 -0
- package/dist/types/global.cjs +19 -0
- package/dist/types/global.cjs.map +1 -0
- package/dist/types/global.d.cts +3 -0
- package/dist/types/global.d.ts +3 -0
- package/dist/types/global.js +2 -0
- package/dist/types/global.js.map +1 -0
- package/dist/types/index.cjs +19 -0
- package/dist/types/index.cjs.map +1 -0
- package/dist/types/index.d.cts +10 -0
- package/dist/types/index.d.ts +10 -0
- package/dist/types/index.js +6 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/require-at-least-one.cjs +19 -0
- package/dist/types/require-at-least-one.cjs.map +1 -0
- package/dist/types/require-at-least-one.d.cts +5 -0
- package/dist/types/require-at-least-one.d.ts +5 -0
- package/dist/types/require-at-least-one.js +2 -0
- package/dist/types/require-at-least-one.js.map +1 -0
- package/dist/types/tailwind.cjs +19 -0
- package/dist/types/tailwind.cjs.map +1 -0
- package/dist/types/tailwind.d.cts +3259 -0
- package/dist/types/tailwind.d.ts +3259 -0
- package/dist/types/tailwind.js +2 -0
- package/dist/types/tailwind.js.map +1 -0
- package/package.json +35 -51
- package/LICENSE +0 -21
- package/README.md +0 -206
- package/dist/julseb-lib-react.cjs.js +0 -17
- package/dist/julseb-lib-react.es.js +0 -8977
- package/dist/lib/Variables.ts +0 -202
- package/dist/lib/components/Accordion/Accordion.tsx +0 -73
- package/dist/lib/components/Accordion/AccordionContent.tsx +0 -55
- package/dist/lib/components/Accordion/AccordionItem.tsx +0 -66
- package/dist/lib/components/Accordion/AccordionTitle.tsx +0 -80
- package/dist/lib/components/Accordion/index.ts +0 -2
- package/dist/lib/components/Accordion/subtypes.ts +0 -26
- package/dist/lib/components/Accordion/types.ts +0 -37
- package/dist/lib/components/Alert/Alert.tsx +0 -57
- package/dist/lib/components/Alert/index.ts +0 -1
- package/dist/lib/components/Alert/types.ts +0 -8
- package/dist/lib/components/Aside/Aside.tsx +0 -58
- package/dist/lib/components/Aside/index.ts +0 -1
- package/dist/lib/components/Aside/types.ts +0 -6
- package/dist/lib/components/Autocomplete/Autocomplete.tsx +0 -222
- package/dist/lib/components/Autocomplete/index.ts +0 -1
- package/dist/lib/components/Autocomplete/types.ts +0 -35
- package/dist/lib/components/Avatar/Avatar.tsx +0 -93
- package/dist/lib/components/Avatar/AvatarFn.tsx +0 -44
- package/dist/lib/components/Avatar/index.ts +0 -1
- package/dist/lib/components/Avatar/types.ts +0 -37
- package/dist/lib/components/BackToTop/BackToTop.tsx +0 -96
- package/dist/lib/components/BackToTop/index.ts +0 -1
- package/dist/lib/components/BackToTop/types.ts +0 -9
- package/dist/lib/components/Badge/Badge.tsx +0 -61
- package/dist/lib/components/Badge/index.ts +0 -1
- package/dist/lib/components/Badge/types.ts +0 -7
- package/dist/lib/components/Breadcrumbs/Breadcrumbs.tsx +0 -72
- package/dist/lib/components/Breadcrumbs/index.ts +0 -1
- package/dist/lib/components/Breadcrumbs/types.ts +0 -5
- package/dist/lib/components/Burger/Burger.tsx +0 -110
- package/dist/lib/components/Burger/index.ts +0 -1
- package/dist/lib/components/Burger/types.ts +0 -11
- package/dist/lib/components/Button/Button.tsx +0 -109
- package/dist/lib/components/Button/index.ts +0 -1
- package/dist/lib/components/Button/types.ts +0 -30
- package/dist/lib/components/ButtonGroup/ButtonGroup.tsx +0 -126
- package/dist/lib/components/ButtonGroup/index.ts +0 -1
- package/dist/lib/components/ButtonGroup/types.ts +0 -28
- package/dist/lib/components/ButtonIcon/ButtonFn.tsx +0 -76
- package/dist/lib/components/ButtonIcon/ButtonIcon.tsx +0 -134
- package/dist/lib/components/ButtonIcon/index.ts +0 -1
- package/dist/lib/components/ButtonIcon/types.ts +0 -52
- package/dist/lib/components/CodeContainer/CodeContainer.tsx +0 -108
- package/dist/lib/components/CodeContainer/index.ts +0 -1
- package/dist/lib/components/CodeContainer/types.ts +0 -230
- package/dist/lib/components/Cover/Cover.tsx +0 -91
- package/dist/lib/components/Cover/index.ts +0 -1
- package/dist/lib/components/Cover/types.ts +0 -10
- package/dist/lib/components/DragList/DragList.tsx +0 -111
- package/dist/lib/components/DragList/DragListItem.tsx +0 -114
- package/dist/lib/components/DragList/index.ts +0 -2
- package/dist/lib/components/DragList/types.ts +0 -55
- package/dist/lib/components/Drawer/Drawer.tsx +0 -145
- package/dist/lib/components/Drawer/index.ts +0 -1
- package/dist/lib/components/Drawer/types.ts +0 -24
- package/dist/lib/components/Dropdown/Dropdown.tsx +0 -89
- package/dist/lib/components/Dropdown/DropdownItem.tsx +0 -49
- package/dist/lib/components/Dropdown/index.ts +0 -2
- package/dist/lib/components/Dropdown/types.ts +0 -35
- package/dist/lib/components/Fade/Fade.tsx +0 -62
- package/dist/lib/components/Fade/index.ts +0 -1
- package/dist/lib/components/Fade/types.ts +0 -3
- package/dist/lib/components/Fieldset/Fieldset.tsx +0 -85
- package/dist/lib/components/Fieldset/index.ts +0 -1
- package/dist/lib/components/Fieldset/types.ts +0 -15
- package/dist/lib/components/Flexbox/Flexbox.tsx +0 -99
- package/dist/lib/components/Flexbox/index.ts +0 -1
- package/dist/lib/components/Flexbox/types.ts +0 -23
- package/dist/lib/components/Footer/Footer.tsx +0 -103
- package/dist/lib/components/Footer/index.ts +0 -1
- package/dist/lib/components/Footer/types.ts +0 -54
- package/dist/lib/components/Form/Form.tsx +0 -83
- package/dist/lib/components/Form/index.ts +0 -1
- package/dist/lib/components/Form/types.ts +0 -32
- package/dist/lib/components/Grid/Grid.tsx +0 -98
- package/dist/lib/components/Grid/index.ts +0 -1
- package/dist/lib/components/Grid/types.ts +0 -20
- package/dist/lib/components/Header/Header.tsx +0 -241
- package/dist/lib/components/Header/HeaderSearch.tsx +0 -50
- package/dist/lib/components/Header/index.ts +0 -1
- package/dist/lib/components/Header/subtypes.ts +0 -28
- package/dist/lib/components/Header/types.ts +0 -57
- package/dist/lib/components/Highlight/Highlight.tsx +0 -45
- package/dist/lib/components/Highlight/index.ts +0 -1
- package/dist/lib/components/Highlight/types.ts +0 -9
- package/dist/lib/components/Hr/Hr.tsx +0 -48
- package/dist/lib/components/Hr/index.ts +0 -1
- package/dist/lib/components/Hr/types.ts +0 -8
- package/dist/lib/components/Image/Image.tsx +0 -92
- package/dist/lib/components/Image/index.ts +0 -1
- package/dist/lib/components/Image/types.ts +0 -25
- package/dist/lib/components/Input/Input.tsx +0 -130
- package/dist/lib/components/Input/classes.ts +0 -1
- package/dist/lib/components/Input/index.ts +0 -1
- package/dist/lib/components/Input/subtypes.ts +0 -173
- package/dist/lib/components/Input/templates/ColorInput.tsx +0 -44
- package/dist/lib/components/Input/templates/DateInput.tsx +0 -63
- package/dist/lib/components/Input/templates/FileInput.tsx +0 -42
- package/dist/lib/components/Input/templates/PasswordInput.tsx +0 -73
- package/dist/lib/components/Input/templates/SearchInput.tsx +0 -89
- package/dist/lib/components/Input/templates/SelectInput.tsx +0 -79
- package/dist/lib/components/Input/templates/TextInput.tsx +0 -58
- package/dist/lib/components/Input/templates/TextareaInput.tsx +0 -27
- package/dist/lib/components/Input/templates/TimeInput.tsx +0 -67
- package/dist/lib/components/Input/types.ts +0 -22
- package/dist/lib/components/InputCheck/InputCheck.tsx +0 -161
- package/dist/lib/components/InputCheck/index.ts +0 -1
- package/dist/lib/components/InputCheck/types.ts +0 -27
- package/dist/lib/components/InputComponents/InputButton.tsx +0 -31
- package/dist/lib/components/InputComponents/InputIcon.tsx +0 -28
- package/dist/lib/components/InputComponents/InputList.tsx +0 -53
- package/dist/lib/components/InputComponents/InputListItem.tsx +0 -68
- package/dist/lib/components/InputComponents/InputPrefix.tsx +0 -15
- package/dist/lib/components/InputComponents/InputSuffix.tsx +0 -15
- package/dist/lib/components/InputComponents/InputValidation.tsx +0 -32
- package/dist/lib/components/InputComponents/InputWithListWrapper.tsx +0 -29
- package/dist/lib/components/InputComponents/InputWrapper.tsx +0 -45
- package/dist/lib/components/InputComponents/classes.ts +0 -101
- package/dist/lib/components/InputComponents/index.ts +0 -11
- package/dist/lib/components/InputComponents/types.ts +0 -63
- package/dist/lib/components/InputContainer/InputContainer.tsx +0 -149
- package/dist/lib/components/InputContainer/index.ts +0 -1
- package/dist/lib/components/InputContainer/types.ts +0 -11
- package/dist/lib/components/InputCounter/InputCounter.tsx +0 -141
- package/dist/lib/components/InputCounter/index.ts +0 -1
- package/dist/lib/components/InputCounter/types.ts +0 -45
- package/dist/lib/components/InputImage/EmptyContainer.tsx +0 -17
- package/dist/lib/components/InputImage/HoverContainer.tsx +0 -21
- package/dist/lib/components/InputImage/InputImage.tsx +0 -104
- package/dist/lib/components/InputImage/index.ts +0 -1
- package/dist/lib/components/InputImage/subtypes.ts +0 -7
- package/dist/lib/components/InputImage/types.ts +0 -24
- package/dist/lib/components/InputPhone/InputPhone.tsx +0 -256
- package/dist/lib/components/InputPhone/index.ts +0 -1
- package/dist/lib/components/InputPhone/types.ts +0 -32
- package/dist/lib/components/InputPhone/utils/countries.ts +0 -646
- package/dist/lib/components/InputPhone/utils/flags/ac.svg +0 -76
- package/dist/lib/components/InputPhone/utils/flags/bq.svg +0 -5
- package/dist/lib/components/InputPhone/utils/flags/bv.svg +0 -13
- package/dist/lib/components/InputPhone/utils/flags/cefta.svg +0 -13
- package/dist/lib/components/InputPhone/utils/flags/cp.svg +0 -7
- package/dist/lib/components/InputPhone/utils/flags/cw.svg +0 -14
- package/dist/lib/components/InputPhone/utils/flags/dg.svg +0 -129
- package/dist/lib/components/InputPhone/utils/flags/ea.svg +0 -544
- package/dist/lib/components/InputPhone/utils/flags/eh.svg +0 -16
- package/dist/lib/components/InputPhone/utils/flags/es-ct.svg +0 -4
- package/dist/lib/components/InputPhone/utils/flags/es-ga.svg +0 -187
- package/dist/lib/components/InputPhone/utils/flags/eu.svg +0 -28
- package/dist/lib/components/InputPhone/utils/flags/gb-eng.svg +0 -5
- package/dist/lib/components/InputPhone/utils/flags/gb-nir.svg +0 -132
- package/dist/lib/components/InputPhone/utils/flags/gb-sct.svg +0 -4
- package/dist/lib/components/InputPhone/utils/flags/gb-wls.svg +0 -9
- package/dist/lib/components/InputPhone/utils/flags/hm.svg +0 -8
- package/dist/lib/components/InputPhone/utils/flags/ic.svg +0 -7
- package/dist/lib/components/InputPhone/utils/flags/sx.svg +0 -56
- package/dist/lib/components/InputPhone/utils/flags/ta.svg +0 -76
- package/dist/lib/components/InputPhone/utils/flags/tf.svg +0 -15
- package/dist/lib/components/InputPhone/utils/flags/um.svg +0 -15
- package/dist/lib/components/InputPhone/utils/flags/un.svg +0 -16
- package/dist/lib/components/InputPhone/utils/flags/xk.svg +0 -8
- package/dist/lib/components/InputPhone/utils/flags/xx.svg +0 -4
- package/dist/lib/components/InputPin/InputPin.tsx +0 -121
- package/dist/lib/components/InputPin/index.ts +0 -1
- package/dist/lib/components/InputPin/types.ts +0 -22
- package/dist/lib/components/InputSlider/InputSlider.tsx +0 -176
- package/dist/lib/components/InputSlider/index.ts +0 -1
- package/dist/lib/components/InputSlider/types.ts +0 -22
- package/dist/lib/components/Key/Key.tsx +0 -84
- package/dist/lib/components/Key/index.ts +0 -1
- package/dist/lib/components/Key/types.ts +0 -16
- package/dist/lib/components/Linkify/Linkify.tsx +0 -67
- package/dist/lib/components/Linkify/index.ts +0 -1
- package/dist/lib/components/Linkify/types.ts +0 -8
- package/dist/lib/components/ListGroup/ListGroup.tsx +0 -96
- package/dist/lib/components/ListGroup/ListGroupItem.tsx +0 -86
- package/dist/lib/components/ListGroup/ListGroupTitle.tsx +0 -84
- package/dist/lib/components/ListGroup/index.ts +0 -3
- package/dist/lib/components/ListGroup/types.ts +0 -69
- package/dist/lib/components/Loader/Loader.tsx +0 -38
- package/dist/lib/components/Loader/index.ts +0 -1
- package/dist/lib/components/Loader/templates/LoaderOne.tsx +0 -27
- package/dist/lib/components/Loader/templates/LoaderThree.tsx +0 -47
- package/dist/lib/components/Loader/templates/LoaderTwo.tsx +0 -61
- package/dist/lib/components/Loader/types.ts +0 -13
- package/dist/lib/components/Loader/utils/gen-border-bottom.ts +0 -95
- package/dist/lib/components/Main/Main.tsx +0 -63
- package/dist/lib/components/Main/index.ts +0 -1
- package/dist/lib/components/Main/types.ts +0 -12
- package/dist/lib/components/MarkdownContainer/MarkdownContainer.tsx +0 -50
- package/dist/lib/components/MarkdownContainer/index.ts +0 -1
- package/dist/lib/components/MarkdownContainer/types.ts +0 -8
- package/dist/lib/components/MarkdownEditor/MarkdownButtons.tsx +0 -42
- package/dist/lib/components/MarkdownEditor/MarkdownEditor.tsx +0 -186
- package/dist/lib/components/MarkdownEditor/MarkdownEditorTitles.tsx +0 -86
- package/dist/lib/components/MarkdownEditor/MarkdownViewButtons.tsx +0 -48
- package/dist/lib/components/MarkdownEditor/buttons/icons.tsx +0 -85
- package/dist/lib/components/MarkdownEditor/buttons/markdown-buttons.tsx +0 -176
- package/dist/lib/components/MarkdownEditor/index.ts +0 -1
- package/dist/lib/components/MarkdownEditor/types.ts +0 -42
- package/dist/lib/components/Masonry/Masonry.tsx +0 -83
- package/dist/lib/components/Masonry/index.ts +0 -1
- package/dist/lib/components/Masonry/types.ts +0 -8
- package/dist/lib/components/Masonry/utils.tsx +0 -28
- package/dist/lib/components/Meta/Meta.tsx +0 -125
- package/dist/lib/components/Meta/index.ts +0 -1
- package/dist/lib/components/Meta/types.ts +0 -35
- package/dist/lib/components/Modal/Modal.tsx +0 -107
- package/dist/lib/components/Modal/index.ts +0 -1
- package/dist/lib/components/Modal/types.ts +0 -21
- package/dist/lib/components/PageLayout/PageLayout.tsx +0 -64
- package/dist/lib/components/PageLayout/index.ts +0 -1
- package/dist/lib/components/PageLayout/types.ts +0 -29
- package/dist/lib/components/PageLoading/PageLoading.tsx +0 -64
- package/dist/lib/components/PageLoading/index.ts +0 -1
- package/dist/lib/components/PageLoading/types.ts +0 -13
- package/dist/lib/components/Pagination/Pagination.tsx +0 -163
- package/dist/lib/components/Pagination/PaginationButton.tsx +0 -65
- package/dist/lib/components/Pagination/index.ts +0 -2
- package/dist/lib/components/Pagination/types.ts +0 -56
- package/dist/lib/components/Paginator/Paginator.tsx +0 -136
- package/dist/lib/components/Paginator/index.ts +0 -1
- package/dist/lib/components/Paginator/types.ts +0 -16
- package/dist/lib/components/ProgressBar/ProgressBar.tsx +0 -87
- package/dist/lib/components/ProgressBar/index.ts +0 -1
- package/dist/lib/components/ProgressBar/types.ts +0 -14
- package/dist/lib/components/ProgressCircle/ProgressCircle.tsx +0 -146
- package/dist/lib/components/ProgressCircle/index.ts +0 -1
- package/dist/lib/components/ProgressCircle/types.ts +0 -31
- package/dist/lib/components/Rating/Rating.tsx +0 -116
- package/dist/lib/components/Rating/index.ts +0 -1
- package/dist/lib/components/Rating/types.ts +0 -25
- package/dist/lib/components/Section/Section.tsx +0 -51
- package/dist/lib/components/Section/index.ts +0 -1
- package/dist/lib/components/Section/types.ts +0 -5
- package/dist/lib/components/Select/Select.tsx +0 -191
- package/dist/lib/components/Select/index.ts +0 -1
- package/dist/lib/components/Select/types.ts +0 -23
- package/dist/lib/components/Skeleton/Skeleton.tsx +0 -57
- package/dist/lib/components/Skeleton/SkeletonCard.tsx +0 -60
- package/dist/lib/components/Skeleton/index.ts +0 -2
- package/dist/lib/components/Skeleton/types.ts +0 -27
- package/dist/lib/components/Slideshow/Slideshow.tsx +0 -324
- package/dist/lib/components/Slideshow/SlideshowButton.tsx +0 -63
- package/dist/lib/components/Slideshow/SlideshowPagination.tsx +0 -111
- package/dist/lib/components/Slideshow/index.ts +0 -1
- package/dist/lib/components/Slideshow/subtypes.ts +0 -62
- package/dist/lib/components/Slideshow/types.ts +0 -41
- package/dist/lib/components/SrOnly/SrOnly.tsx +0 -33
- package/dist/lib/components/SrOnly/index.ts +0 -1
- package/dist/lib/components/SrOnly/types.ts +0 -7
- package/dist/lib/components/Sticky/Sticky.tsx +0 -58
- package/dist/lib/components/Sticky/index.ts +0 -1
- package/dist/lib/components/Sticky/types.ts +0 -5
- package/dist/lib/components/Table/Table.tsx +0 -141
- package/dist/lib/components/Table/index.ts +0 -1
- package/dist/lib/components/Table/types.ts +0 -43
- package/dist/lib/components/Tabs/Tabs.tsx +0 -88
- package/dist/lib/components/Tabs/TabsButton.tsx +0 -73
- package/dist/lib/components/Tabs/TabsButtonsContainer.tsx +0 -58
- package/dist/lib/components/Tabs/TabsContainer.tsx +0 -49
- package/dist/lib/components/Tabs/TabsContent.tsx +0 -52
- package/dist/lib/components/Tabs/index.ts +0 -5
- package/dist/lib/components/Tabs/types.ts +0 -46
- package/dist/lib/components/Tag/Tag.tsx +0 -77
- package/dist/lib/components/Tag/index.ts +0 -1
- package/dist/lib/components/Tag/types.ts +0 -13
- package/dist/lib/components/Text/Text.tsx +0 -88
- package/dist/lib/components/Text/index.ts +0 -1
- package/dist/lib/components/Text/templates/Blockquote.tsx +0 -41
- package/dist/lib/components/Text/templates/Dl.tsx +0 -42
- package/dist/lib/components/Text/templates/Em.tsx +0 -40
- package/dist/lib/components/Text/templates/H1.tsx +0 -44
- package/dist/lib/components/Text/templates/H2.tsx +0 -44
- package/dist/lib/components/Text/templates/H3.tsx +0 -44
- package/dist/lib/components/Text/templates/H4.tsx +0 -44
- package/dist/lib/components/Text/templates/H5.tsx +0 -44
- package/dist/lib/components/Text/templates/H6.tsx +0 -41
- package/dist/lib/components/Text/templates/Ol.tsx +0 -41
- package/dist/lib/components/Text/templates/P.tsx +0 -40
- package/dist/lib/components/Text/templates/Small.tsx +0 -40
- package/dist/lib/components/Text/templates/Strong.tsx +0 -40
- package/dist/lib/components/Text/templates/Ul.tsx +0 -41
- package/dist/lib/components/Text/types.ts +0 -36
- package/dist/lib/components/Toast/Toast.tsx +0 -113
- package/dist/lib/components/Toast/ToastContainer.tsx +0 -43
- package/dist/lib/components/Toast/ToastFn.tsx +0 -236
- package/dist/lib/components/Toast/index.ts +0 -3
- package/dist/lib/components/Toast/types.ts +0 -18
- package/dist/lib/components/Toast/utils.ts +0 -9
- package/dist/lib/components/Tooltip/Tooltip.tsx +0 -197
- package/dist/lib/components/Tooltip/index.ts +0 -1
- package/dist/lib/components/Tooltip/types.ts +0 -23
- package/dist/lib/components/Wrapper/Wrapper.tsx +0 -75
- package/dist/lib/components/Wrapper/index.ts +0 -1
- package/dist/lib/components/Wrapper/types.ts +0 -12
- package/dist/lib/context/Theme.context.tsx +0 -66
- package/dist/lib/context/index.ts +0 -1
- package/dist/lib/hooks/index.ts +0 -15
- package/dist/lib/hooks/useClickOutside.tsx +0 -50
- package/dist/lib/hooks/useCopyToClipboard.tsx +0 -50
- package/dist/lib/hooks/useDebounce.tsx +0 -37
- package/dist/lib/hooks/useExportData.tsx +0 -78
- package/dist/lib/hooks/useFetch.tsx +0 -42
- package/dist/lib/hooks/useForm.tsx +0 -51
- package/dist/lib/hooks/useIsOverflow.ts +0 -61
- package/dist/lib/hooks/useKeyPress.tsx +0 -110
- package/dist/lib/hooks/useMaxWidth.tsx +0 -40
- package/dist/lib/hooks/useMergeRefs.ts +0 -45
- package/dist/lib/hooks/useMinWidth.tsx +0 -40
- package/dist/lib/hooks/usePaginatedData.tsx +0 -52
- package/dist/lib/hooks/usePagination.tsx +0 -75
- package/dist/lib/hooks/useTouchScreen.tsx +0 -34
- package/dist/lib/hooks/useTranslation.tsx +0 -58
- package/dist/lib/index.css +0 -539
- package/dist/lib/index.ts +0 -129
- package/dist/lib/lib-utils/get-highlighted-text.tsx +0 -30
- package/dist/lib/lib-utils/index.ts +0 -3
- package/dist/lib/lib-utils/transfom-search-keys.ts +0 -13
- package/dist/lib/lib-utils/use-keyboard-navigation.tsx +0 -79
- package/dist/lib/types/components-props.ts +0 -66
- package/dist/lib/types/global.ts +0 -853
- package/dist/lib/types/index.ts +0 -4
- package/dist/lib/types/require-at-least-one.ts +0 -7
- package/dist/lib/types/tailwind.ts +0 -9041
- package/dist/lib/utils/clsx.tsx +0 -6
- package/dist/lib/utils/design-tokens.ts +0 -784
- package/dist/lib/utils/gen-align.ts +0 -24
- package/dist/lib/utils/gen-bg-color.ts +0 -158
- package/dist/lib/utils/gen-border-color.ts +0 -110
- package/dist/lib/utils/gen-border-radius.ts +0 -13
- package/dist/lib/utils/gen-border.ts +0 -30
- package/dist/lib/utils/gen-box-shadow.ts +0 -12
- package/dist/lib/utils/gen-button-color.ts +0 -9
- package/dist/lib/utils/gen-gap.ts +0 -34
- package/dist/lib/utils/gen-justify.ts +0 -25
- package/dist/lib/utils/gen-link-color.ts +0 -29
- package/dist/lib/utils/gen-max-width.ts +0 -30
- package/dist/lib/utils/gen-object-fit.ts +0 -9
- package/dist/lib/utils/gen-ring-color.ts +0 -21
- package/dist/lib/utils/gen-text-align.ts +0 -10
- package/dist/lib/utils/gen-text-color.ts +0 -111
- package/dist/lib/utils/gen-vertical-align.ts +0 -12
- package/dist/lib/utils/index.ts +0 -19
- package/dist/lib/utils/linkify-text.tsx +0 -26
- package/dist/lib/utils/options-markdown.ts +0 -60
- package/dist/lib/utils/tools.ts +0 -15
- package/dist/react.css +0 -1
- package/dist/style.css +0 -539
- /package/dist/{lib/components/InputPhone/utils/flags/ad.svg → ad-HTL7GHRB.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ae.svg → ae-ICAMTCAR.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/af.svg → af-MHFH5L72.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ag.svg → ag-M7PMJTNC.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ai.svg → ai-ETDR2GEU.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/al.svg → al-RBPPZBOR.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/am.svg → am-P5ZIE6XV.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ao.svg → ao-IDQ66LVW.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/aq.svg → aq-M762DUH3.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ar.svg → ar-DHRVFD4E.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/as.svg → as-ICEYFBWP.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/at.svg → at-P53PFVFI.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/au.svg → au-OMD4QESS.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/aw.svg → aw-P7SRGNOX.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ax.svg → ax-V7XPB664.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/az.svg → az-JZV3NJUP.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ba.svg → ba-POV77HGO.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bb.svg → bb-WTDUG7VT.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bd.svg → bd-HMCXBQD3.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/be.svg → be-Y7RGT6WN.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bf.svg → bf-IFOTMWPV.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bg.svg → bg-QKOWF4RG.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bh.svg → bh-F7YG7A6Z.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bi.svg → bi-HWA2SSM7.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bj.svg → bj-SVZPUB6C.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bl.svg → bl-QXYAF6ZV.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bm.svg → bm-VAEN3IKJ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bn.svg → bn-CK5FI4T5.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bo.svg → bo-HY4TLIQH.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/br.svg → br-E7SKW6QV.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bs.svg → bs-5UC4R4TW.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bt.svg → bt-ILNGCG6V.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bw.svg → bw-GTCF3QZV.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/by.svg → by-I2PKD7MG.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/bz.svg → bz-ZSRW2FFJ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ca.svg → ca-WZPQPA7E.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/cc.svg → cc-F56DXRNZ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/cd.svg → cd-WTKKN7EX.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/cf.svg → cf-TPKKXILK.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/cg.svg → cg-CKR7RUC4.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ch.svg → ch-USJZZOGC.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ci.svg → ci-KFEINJVJ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ck.svg → ck-ATMQHHMA.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/cl.svg → cl-WMTRWE2W.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/cm.svg → cm-2BN3OVZK.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/cn.svg → cn-GFQJIK3L.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/co.svg → co-NN4OA66V.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/cr.svg → cr-ZQEISEUX.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/cu.svg → cu-5GWMND5O.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/cv.svg → cv-LWSGBQVT.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/cx.svg → cx-XOUJ6BDY.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/cy.svg → cy-ELWYQW3B.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/cz.svg → cz-PSDLWGGB.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/de.svg → de-UZ33VXB7.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/dj.svg → dj-6OAOTLZI.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/dk.svg → dk-JMBRHM34.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/dm.svg → dm-VNRMBZBS.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/do.svg → do-BKI25VAP.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/dz.svg → dz-5TGC2F6O.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ec.svg → ec-RVY2TDQY.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ee.svg → ee-ESNNK5FI.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/eg.svg → eg-33P6HVEE.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/er.svg → er-24JCI44Y.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/es.svg → es-W6LDJAST.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/et.svg → et-3S4LEFBY.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/fi.svg → fi-S5EH7BG6.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/fj.svg → fj-YBL3EYQL.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/fk.svg → fk-GOTRGUW5.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/fm.svg → fm-W22Q42MJ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/fo.svg → fo-XAEBEWGY.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/fr.svg → fr-ZVO4L2CN.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ga.svg → ga-YVFEOFTR.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gb.svg → gb-SC7363TA.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gd.svg → gd-DFU7DED6.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ge.svg → ge-YE7BR7QF.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gf.svg → gf-NI4GFY3X.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gg.svg → gg-7VUU64IM.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gh.svg → gh-SZBUUZXW.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gi.svg → gi-CXD7K7GM.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gl.svg → gl-PA2YIJP7.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gm.svg → gm-7ZOEQWBQ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gn.svg → gn-MSN2M353.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gp.svg → gp-JP5TO4OX.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gq.svg → gq-EYN2DF4Z.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gr.svg → gr-YRG5TXUI.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gs.svg → gs-EDOECKEF.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gt.svg → gt-VFMRVU7E.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gu.svg → gu-AXDHACWU.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gw.svg → gw-F747MFB6.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/gy.svg → gy-C6UGO63R.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/hk.svg → hk-PPVUELHH.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/hn.svg → hn-IXKFBHL3.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/hr.svg → hr-7ORLAYLN.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ht.svg → ht-HCNXZLPJ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/hu.svg → hu-C3DDGX7P.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/id.svg → id-JSWZPKEB.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ie.svg → ie-QFERZM3U.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/il.svg → il-4AZPYABU.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/im.svg → im-TRGBU2MA.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/in.svg → in-QNJVAXMN.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/io.svg → io-ZTEO44HB.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/iq.svg → iq-7FWRTP5Y.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ir.svg → ir-7QU34OGP.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/is.svg → is-VFU3W27Q.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/it.svg → it-SGJZRZTG.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/je.svg → je-ASNHCFDM.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/jm.svg → jm-WELCOSBK.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/jo.svg → jo-4N4SRXFU.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/jp.svg → jp-IJJOLX65.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ke.svg → ke-ZX6MQKG6.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/kg.svg → kg-RCELGYWY.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/kh.svg → kh-Z4TCRAR5.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ki.svg → ki-4XP6EOEF.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/km.svg → km-UWFN6S3G.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/kn.svg → kn-QZWT5L2Z.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/kp.svg → kp-UEJKAESN.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/kr.svg → kr-37HGZWST.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/kw.svg → kw-DW7MW6JR.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ky.svg → ky-UE77ZKNR.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/kz.svg → kz-235M425O.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/la.svg → la-RJEPE22E.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/lb.svg → lb-EWVZKLTE.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/lc.svg → lc-SHXL3I23.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/li.svg → li-FRDARPUJ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/lk.svg → lk-24DJYERD.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/lr.svg → lr-NOV6G2QP.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ls.svg → ls-DQYSLKA4.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/lt.svg → lt-X5H273BZ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/lu.svg → lu-Y7CETSZZ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/lv.svg → lv-UD2OKAKZ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ly.svg → ly-HXZ3F2PC.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ma.svg → ma-VSPIMR33.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mc.svg → mc-IV2TK64Y.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/md.svg → md-Z2KRCTSL.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/me.svg → me-GJ5HAC7T.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mf.svg → mf-PY7OO34H.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mg.svg → mg-7XGP7WEH.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mh.svg → mh-7N2SSCJ3.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mk.svg → mk-4CGYETXE.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ml.svg → ml-REJ3NIH6.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mm.svg → mm-G72WDHIA.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mn.svg → mn-QUEB3DP2.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mo.svg → mo-7RMY33IW.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mp.svg → mp-QLHHVVHP.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mq.svg → mq-S4653T2D.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mr.svg → mr-ZBDE3KJQ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ms.svg → ms-HE6BUCKD.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mt.svg → mt-DUA34F2Z.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mu.svg → mu-ZHDOJ3TI.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mv.svg → mv-6NYHRQLF.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mw.svg → mw-AXRAJH26.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mx.svg → mx-MSPV6RQM.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/my.svg → my-AIY7QQBP.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/mz.svg → mz-3322L3KQ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/na.svg → na-EASCPZHA.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/nc.svg → nc-JJHA6YCG.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ne.svg → ne-NIQVZJOH.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/nf.svg → nf-6GXJMQE5.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ng.svg → ng-5QXHJYS4.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ni.svg → ni-HNZBL5LK.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/nl.svg → nl-QVISKFUO.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/no.svg → no-JTVUCTCT.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/np.svg → np-UCBDZ5AR.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/nr.svg → nr-LG6XA46Y.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/nu.svg → nu-4OUEUAXX.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/nz.svg → nz-T2NE6YVO.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/om.svg → om-6JFK3PR4.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/pa.svg → pa-AT6O5EL5.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/pe.svg → pe-WVRRE6RF.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/pf.svg → pf-DLKFAUUG.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/pg.svg → pg-R7GWNRSB.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ph.svg → ph-QSRFK225.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/pk.svg → pk-FR3SZ2RO.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/pl.svg → pl-JSSZW3KY.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/pm.svg → pm-HA37R6HR.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/pn.svg → pn-4N36OSZ7.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/pr.svg → pr-NNQH4LK7.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ps.svg → ps-OYLD266F.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/pt.svg → pt-EJEEXNOR.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/pw.svg → pw-AJH6MUWT.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/py.svg → py-BBGVETQS.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/qa.svg → qa-O6NUQ5WE.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/re.svg → re-UHLBILVM.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ro.svg → ro-YBPUPSYC.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/rs.svg → rs-RTTQJKCP.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ru.svg → ru-NVSR5C27.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/rw.svg → rw-L6HQTLZM.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sa.svg → sa-5NCCG3JM.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sb.svg → sb-ESFASP4O.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sc.svg → sc-V2MOTRIU.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sd.svg → sd-ALVTXIOB.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/se.svg → se-3UJAVTP2.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sg.svg → sg-PNK4IWVH.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sh.svg → sh-LSKBPKHJ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/si.svg → si-DU3RWKLO.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sj.svg → sj-EOPZSLCL.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sk.svg → sk-Z5T3FAV3.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sl.svg → sl-DE7XOWOL.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sm.svg → sm-OSI7YZKX.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sn.svg → sn-KYWABXNT.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/so.svg → so-TUA5RNVD.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sr.svg → sr-HMODPFV5.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ss.svg → ss-R7O73JRT.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/st.svg → st-NPWJIGHE.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sv.svg → sv-NIXV2SRX.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sy.svg → sy-HTLBFL4F.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/sz.svg → sz-FMNXHOEQ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/tc.svg → tc-P6VEJX7T.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/td.svg → td-DN372MP5.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/tg.svg → tg-5ZT7ZDBZ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/th.svg → th-WAHAQKQK.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/tj.svg → tj-MG5ALKXM.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/tk.svg → tk-G765JUVP.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/tl.svg → tl-UF7AWZC6.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/tm.svg → tm-LGSUDTBO.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/tn.svg → tn-MJPTN7EW.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/to.svg → to-4IPHWATD.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/tr.svg → tr-KC7PK4TT.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/tt.svg → tt-IVVKXXFH.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/tv.svg → tv-HASL2ZPX.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/tw.svg → tw-Z2QVHLNU.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/tz.svg → tz-FVI6D4BP.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ua.svg → ua-6L6MVDVK.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ug.svg → ug-F73JMZTS.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/us.svg → us-VPPAAERF.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/uy.svg → uy-FJ6XTJUV.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/uz.svg → uz-FR2J6ZTX.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/va.svg → va-ZQHHJQ33.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/vc.svg → vc-F4EKLJYW.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ve.svg → ve-TXPQADML.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/vg.svg → vg-R3B6II5K.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/vi.svg → vi-7RSQ7357.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/vn.svg → vn-BMRRXIMR.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/vu.svg → vu-FZQPUNU3.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/wf.svg → wf-EYVXQET4.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ws.svg → ws-PVUKQ4PE.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/ye.svg → ye-NQNPF5YD.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/yt.svg → yt-TGBAMUTW.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/za.svg → za-HZOQXCXO.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/zm.svg → zm-NM4WJ5NQ.svg} +0 -0
- /package/dist/{lib/components/InputPhone/utils/flags/zw.svg → zw-MIQGG7RP.svg} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Modal"
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import type { DispatchState, LibComponentBase, ReactElement } from "../../types"
|
|
2
|
-
|
|
3
|
-
interface ILibModalBase extends LibComponentBase<HTMLDivElement> {
|
|
4
|
-
isOpen: boolean
|
|
5
|
-
setIsOpen: DispatchState<boolean>
|
|
6
|
-
disableEsc?: boolean
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
interface ModalWithCloseButton extends ILibModalBase {
|
|
10
|
-
hideCloseButton?: false | undefined
|
|
11
|
-
closeIcon?: ReactElement
|
|
12
|
-
labelClose?: string
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface ModalWithoutCloseButton extends ILibModalBase {
|
|
16
|
-
hideCloseButton?: true
|
|
17
|
-
closeIcon?: never
|
|
18
|
-
labelClose?: never
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
export type ILibModal = ModalWithCloseButton | ModalWithoutCloseButton
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { type FC } from "react"
|
|
2
|
-
import { Meta } from "../Meta"
|
|
3
|
-
import { Header } from "../Header"
|
|
4
|
-
import { Wrapper } from "../Wrapper"
|
|
5
|
-
import { Main } from "../Main"
|
|
6
|
-
import { Footer } from "../Footer"
|
|
7
|
-
import type { ILibPageLayout } from "./types"
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* PageLayout component for creating a complete page structure with optional header, footer, wrapper, and meta tags.
|
|
11
|
-
*
|
|
12
|
-
* @component
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* <PageLayout
|
|
16
|
-
* meta={{ title: "My Page", description: "Page description" }}
|
|
17
|
-
* header={{ logo: <Logo />, nav: <Nav /> }}
|
|
18
|
-
* footer={{ logo: <Logo />, items: [<Link href="/privacy">Privacy</Link>] }}
|
|
19
|
-
* wrapperProps={{ maxWidth: "px" }}
|
|
20
|
-
* mainProps={{ className: "large" }}
|
|
21
|
-
* >
|
|
22
|
-
* <h1>Page Content</h1>
|
|
23
|
-
* </PageLayout>
|
|
24
|
-
*
|
|
25
|
-
* @prop {React.ReactNode} [props.children] - The main content to be rendered inside the page layout.
|
|
26
|
-
* @prop {ILibMeta} [props.meta] - Meta component props for HTML head metadata including SEO and social media tags.
|
|
27
|
-
* @prop {ILibHeader} [props.header] - Header component props for displaying the page header with logo and navigation.
|
|
28
|
-
* @prop {ILibWrapper} [props.wrapperProps] - Wrapper component props for controlling the page container styling and layout.
|
|
29
|
-
* @prop {ILibMain} [props.mainProps] - Main component props for styling the main content area.
|
|
30
|
-
* @prop {ILibFooter} [props.footer] - Footer component props for displaying the page footer with links and logo.
|
|
31
|
-
* @prop {boolean} [props.noWrapper] - Whether to skip rendering the Wrapper component around the main content.
|
|
32
|
-
* @prop {boolean} [props.noMain] - Whether to skip rendering the Main component wrapper around children.
|
|
33
|
-
*
|
|
34
|
-
* @returns {JSX.Element} The rendered PageLayout component with complete page structure.
|
|
35
|
-
*
|
|
36
|
-
* @see https://doc-julseb-lib-react.vercel.app/components/page-layout
|
|
37
|
-
*/
|
|
38
|
-
export const PageLayout: FC<ILibPageLayout> = ({
|
|
39
|
-
children,
|
|
40
|
-
meta,
|
|
41
|
-
header,
|
|
42
|
-
wrapperProps,
|
|
43
|
-
mainProps,
|
|
44
|
-
footer,
|
|
45
|
-
noWrapper,
|
|
46
|
-
noMain,
|
|
47
|
-
}) => {
|
|
48
|
-
return (
|
|
49
|
-
<>
|
|
50
|
-
{meta && <Meta {...meta} />}
|
|
51
|
-
{header && <Header {...header} />}
|
|
52
|
-
{!noWrapper && (
|
|
53
|
-
<Wrapper {...wrapperProps}>
|
|
54
|
-
{!noMain ? (
|
|
55
|
-
<Main {...mainProps}>{children}</Main>
|
|
56
|
-
) : (
|
|
57
|
-
children
|
|
58
|
-
)}
|
|
59
|
-
</Wrapper>
|
|
60
|
-
)}
|
|
61
|
-
{footer && <Footer {...footer} />}
|
|
62
|
-
</>
|
|
63
|
-
)
|
|
64
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./PageLayout"
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import type { ReactChildren } from "../../types"
|
|
2
|
-
import type { ILibMeta } from "../Meta/types"
|
|
3
|
-
import type { ILibHeader } from "../Header/types"
|
|
4
|
-
import type { ILibWrapper } from "../Wrapper/types"
|
|
5
|
-
import type { ILibMain } from "../Main/types"
|
|
6
|
-
import type { ILibFooter } from "../Footer/types"
|
|
7
|
-
|
|
8
|
-
interface ILibPageLayoutBase {
|
|
9
|
-
children?: ReactChildren
|
|
10
|
-
meta?: ILibMeta
|
|
11
|
-
header?: ILibHeader
|
|
12
|
-
footer?: ILibFooter
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
interface PageLayoutWithWrapper extends ILibPageLayoutBase {
|
|
16
|
-
noWrapper?: false | undefined
|
|
17
|
-
wrapperProps?: Omit<ILibWrapper, "children">
|
|
18
|
-
noMain?: boolean
|
|
19
|
-
mainProps?: Omit<ILibMain, "children">
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
interface PageLayoutWithoutWrapper extends ILibPageLayoutBase {
|
|
23
|
-
noWrapper?: true
|
|
24
|
-
wrapperProps?: never
|
|
25
|
-
noMain?: never
|
|
26
|
-
mainProps?: never
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type ILibPageLayout = PageLayoutWithWrapper | PageLayoutWithoutWrapper
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { useEffect, type FC } from "react"
|
|
2
|
-
import { disableScroll } from "@julseb-lib/utils"
|
|
3
|
-
import { Loader } from "../Loader"
|
|
4
|
-
import { clsx, genBgAllColors } from "../../utils"
|
|
5
|
-
import type { ILibPageLoading } from "./types"
|
|
6
|
-
|
|
7
|
-
/**
|
|
8
|
-
* PageLoading component for displaying a full-screen loading overlay with customizable background and loader.
|
|
9
|
-
*
|
|
10
|
-
* @component
|
|
11
|
-
*
|
|
12
|
-
* @example
|
|
13
|
-
* <PageLoading
|
|
14
|
-
* backgroundColor="primary-500"
|
|
15
|
-
* loaderColor="white"
|
|
16
|
-
* loaderVariant={2}
|
|
17
|
-
* stopScrolling
|
|
18
|
-
* />
|
|
19
|
-
*
|
|
20
|
-
* @extends HTMLDivElement
|
|
21
|
-
*
|
|
22
|
-
* @prop {string} [props.className] - Additional CSS classes to apply to the page loading container.
|
|
23
|
-
* @prop {React.ElementType} [props.element="div"] - HTML element type to render as the container.
|
|
24
|
-
* @prop {React.Ref<HTMLDivElement>} [props.ref] - Ref to the page loading element.
|
|
25
|
-
* @prop {LibColors} [props.backgroundColor="primary-500"] - Background color for the loading overlay.
|
|
26
|
-
* @prop {LibColorsShort} [props.loaderColor="white"] - Color of the loading spinner.
|
|
27
|
-
* @prop {1 | 2 | 3} [props.loaderVariant=1] - Visual variant of the loading spinner.
|
|
28
|
-
* @prop {boolean} [props.stopScrolling] - Whether to disable page scrolling while loading is visible.
|
|
29
|
-
*
|
|
30
|
-
* @returns {JSX.Element} The rendered PageLoading component.
|
|
31
|
-
*
|
|
32
|
-
* @see https://doc-julseb-lib-react.vercel.app/components/page-loading
|
|
33
|
-
*/
|
|
34
|
-
export const PageLoading: FC<ILibPageLoading> = ({
|
|
35
|
-
className,
|
|
36
|
-
element = "div",
|
|
37
|
-
ref,
|
|
38
|
-
backgroundColor = "primary-500",
|
|
39
|
-
loaderColor = "white",
|
|
40
|
-
loaderVariant = 1,
|
|
41
|
-
stopScrolling,
|
|
42
|
-
...rest
|
|
43
|
-
}) => {
|
|
44
|
-
const Element = element
|
|
45
|
-
|
|
46
|
-
useEffect(() => {
|
|
47
|
-
if (stopScrolling) disableScroll()
|
|
48
|
-
}, [stopScrolling])
|
|
49
|
-
|
|
50
|
-
return (
|
|
51
|
-
<Element
|
|
52
|
-
ref={ref}
|
|
53
|
-
className={clsx(
|
|
54
|
-
"top-0 left-0 z-999 fixed flex justify-center items-center w-full h-svh",
|
|
55
|
-
genBgAllColors[backgroundColor],
|
|
56
|
-
"page-loading",
|
|
57
|
-
className,
|
|
58
|
-
)}
|
|
59
|
-
{...rest}
|
|
60
|
-
>
|
|
61
|
-
<Loader variant={loaderVariant} color={loaderColor} />
|
|
62
|
-
</Element>
|
|
63
|
-
)
|
|
64
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./PageLoading"
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import type {
|
|
2
|
-
LibAllColors,
|
|
3
|
-
LibComponentBase,
|
|
4
|
-
LibLoaderVariant,
|
|
5
|
-
} from "../../types"
|
|
6
|
-
|
|
7
|
-
export interface ILibPageLoading extends LibComponentBase<HTMLDivElement> {
|
|
8
|
-
backgroundColor?: LibAllColors
|
|
9
|
-
loaderColor?: LibAllColors
|
|
10
|
-
loaderVariant?: LibLoaderVariant
|
|
11
|
-
stopScrolling?: boolean
|
|
12
|
-
children?: never
|
|
13
|
-
}
|
|
@@ -1,163 +0,0 @@
|
|
|
1
|
-
import { type FC } from "react"
|
|
2
|
-
import { BiLeftArrowAlt, BiRightArrowAlt } from "react-icons/bi"
|
|
3
|
-
import { usePagination, useMaxWidth } from "../../hooks"
|
|
4
|
-
import { PaginationButton } from "./PaginationButton"
|
|
5
|
-
import { clsx } from "../../utils"
|
|
6
|
-
import type { ILibPagination } from "./types"
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* Pagination component for navigating through multiple pages of content with customizable styling and navigation controls.
|
|
10
|
-
*
|
|
11
|
-
* @component
|
|
12
|
-
*
|
|
13
|
-
* @example
|
|
14
|
-
* <Pagination
|
|
15
|
-
* currentPage={currentPage}
|
|
16
|
-
* setCurrentPage={setCurrentPage}
|
|
17
|
-
* totalPages={20}
|
|
18
|
-
* accentColor="primary"
|
|
19
|
-
* pageLimit={5}
|
|
20
|
-
* />
|
|
21
|
-
*
|
|
22
|
-
* @extends HTMLDivElement
|
|
23
|
-
*
|
|
24
|
-
* @prop {string} [props.className] - Additional CSS classes to apply to the pagination container.
|
|
25
|
-
* @prop {React.ElementType} [props.element="div"] - HTML element type to render as the container.
|
|
26
|
-
* @prop {React.Ref<HTMLDivElement>} [props.ref] - Ref to the pagination element.
|
|
27
|
-
* @prop {React.ReactNode} [props.children] - Child components to render when not using totalPages prop.
|
|
28
|
-
* @prop {LibAllColors} [props.accentColor="primary"] - Color theme for active page and hover states.
|
|
29
|
-
* @prop {number} [props.totalPages] - Total number of pages available for navigation.
|
|
30
|
-
* @prop {object} [props.icons] - Custom icons for previous and next navigation buttons.
|
|
31
|
-
* @prop {React.ReactNode} [props.icons.prev] - Custom icon for the previous page button.
|
|
32
|
-
* @prop {React.ReactNode} [props.icons.next] - Custom icon for the next page button.
|
|
33
|
-
* @prop {number} [props.pageLimit=5] - Maximum number of page buttons to display at once.
|
|
34
|
-
* @prop {number} [props.currentPage] - Current active page number.
|
|
35
|
-
* @prop {function} [props.setCurrentPage] - Function to update the current page state.
|
|
36
|
-
*
|
|
37
|
-
* @returns {JSX.Element} The rendered Pagination component.
|
|
38
|
-
*
|
|
39
|
-
* @see https://doc-julseb-lib-react.vercel.app/components/pagination
|
|
40
|
-
*/
|
|
41
|
-
export const Pagination: FC<ILibPagination> = ({
|
|
42
|
-
className,
|
|
43
|
-
element = "div",
|
|
44
|
-
ref,
|
|
45
|
-
children,
|
|
46
|
-
accentColor = "primary",
|
|
47
|
-
totalPages,
|
|
48
|
-
icons,
|
|
49
|
-
pageLimit = 5,
|
|
50
|
-
currentPage,
|
|
51
|
-
setCurrentPage,
|
|
52
|
-
...rest
|
|
53
|
-
}) => {
|
|
54
|
-
const Element = element
|
|
55
|
-
|
|
56
|
-
const { handlePrev, handlePage, handleNext } = usePagination({
|
|
57
|
-
currentPage: currentPage!,
|
|
58
|
-
setCurrentPage: setCurrentPage!,
|
|
59
|
-
totalPages,
|
|
60
|
-
})
|
|
61
|
-
|
|
62
|
-
const getPaginationGroup = () => {
|
|
63
|
-
const start = Math.floor((currentPage! - 1) / pageLimit) * pageLimit
|
|
64
|
-
|
|
65
|
-
return new Array(pageLimit)
|
|
66
|
-
.fill(totalPages)
|
|
67
|
-
.map((_, i) => start + i + 1)
|
|
68
|
-
.filter(item => item <= (totalPages || 0))
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const paginationGroup = getPaginationGroup()
|
|
72
|
-
|
|
73
|
-
const isMobile = useMaxWidth(600)
|
|
74
|
-
|
|
75
|
-
if (totalPages && totalPages <= 1) return null
|
|
76
|
-
|
|
77
|
-
return (
|
|
78
|
-
<Element
|
|
79
|
-
ref={ref}
|
|
80
|
-
className={clsx(
|
|
81
|
-
"flex justify-center w-full",
|
|
82
|
-
isMobile ? "gap-1" : "gap-2",
|
|
83
|
-
"pagination",
|
|
84
|
-
className,
|
|
85
|
-
)}
|
|
86
|
-
{...rest}
|
|
87
|
-
>
|
|
88
|
-
{totalPages ? (
|
|
89
|
-
<>
|
|
90
|
-
<PaginationButton
|
|
91
|
-
onClick={handlePrev}
|
|
92
|
-
isActive={false}
|
|
93
|
-
disabled={currentPage === 1}
|
|
94
|
-
accentColor={accentColor}
|
|
95
|
-
>
|
|
96
|
-
{icons?.prev ?? <BiLeftArrowAlt size={24} />}
|
|
97
|
-
</PaginationButton>
|
|
98
|
-
|
|
99
|
-
{paginationGroup[0] !== 1 && (
|
|
100
|
-
<>
|
|
101
|
-
<PaginationButton
|
|
102
|
-
isActive={currentPage === 1}
|
|
103
|
-
onClick={() => handlePage(1)}
|
|
104
|
-
accentColor={accentColor}
|
|
105
|
-
>
|
|
106
|
-
1
|
|
107
|
-
</PaginationButton>
|
|
108
|
-
|
|
109
|
-
<PaginationButton
|
|
110
|
-
accentColor={accentColor}
|
|
111
|
-
readOnly
|
|
112
|
-
>
|
|
113
|
-
...
|
|
114
|
-
</PaginationButton>
|
|
115
|
-
</>
|
|
116
|
-
)}
|
|
117
|
-
|
|
118
|
-
{paginationGroup.map(n => (
|
|
119
|
-
<PaginationButton
|
|
120
|
-
isActive={n === currentPage}
|
|
121
|
-
onClick={() => handlePage(n)}
|
|
122
|
-
accentColor={accentColor}
|
|
123
|
-
key={n}
|
|
124
|
-
>
|
|
125
|
-
{n}
|
|
126
|
-
</PaginationButton>
|
|
127
|
-
))}
|
|
128
|
-
|
|
129
|
-
{paginationGroup[paginationGroup.length - 1] !==
|
|
130
|
-
totalPages && (
|
|
131
|
-
<>
|
|
132
|
-
<PaginationButton
|
|
133
|
-
accentColor={accentColor}
|
|
134
|
-
readOnly
|
|
135
|
-
>
|
|
136
|
-
...
|
|
137
|
-
</PaginationButton>
|
|
138
|
-
|
|
139
|
-
<PaginationButton
|
|
140
|
-
isActive={currentPage === totalPages}
|
|
141
|
-
onClick={() => handlePage(totalPages)}
|
|
142
|
-
accentColor={accentColor}
|
|
143
|
-
>
|
|
144
|
-
{totalPages}
|
|
145
|
-
</PaginationButton>
|
|
146
|
-
</>
|
|
147
|
-
)}
|
|
148
|
-
|
|
149
|
-
<PaginationButton
|
|
150
|
-
onClick={handleNext}
|
|
151
|
-
isActive={false}
|
|
152
|
-
disabled={currentPage === totalPages}
|
|
153
|
-
accentColor={accentColor}
|
|
154
|
-
>
|
|
155
|
-
{icons?.next ?? <BiRightArrowAlt size={24} />}
|
|
156
|
-
</PaginationButton>
|
|
157
|
-
</>
|
|
158
|
-
) : (
|
|
159
|
-
children
|
|
160
|
-
)}
|
|
161
|
-
</Element>
|
|
162
|
-
)
|
|
163
|
-
}
|
|
@@ -1,65 +0,0 @@
|
|
|
1
|
-
import { type FC } from "react"
|
|
2
|
-
import { clsx, genBgColorHover, genTextColorHover } from "../../utils"
|
|
3
|
-
import type { ILibPaginationButton } from "./types"
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* PaginationButton component for rendering individual page navigation buttons with active states and styling.
|
|
7
|
-
*
|
|
8
|
-
* @component
|
|
9
|
-
*
|
|
10
|
-
* @example
|
|
11
|
-
* <PaginationButton
|
|
12
|
-
* accentColor="primary"
|
|
13
|
-
* isActive={currentPage === 5}
|
|
14
|
-
* onClick={() => handlePage(5)}
|
|
15
|
-
* >
|
|
16
|
-
* 5
|
|
17
|
-
* </PaginationButton>
|
|
18
|
-
*
|
|
19
|
-
* @extends HTMLButtonElement
|
|
20
|
-
*
|
|
21
|
-
* @prop {string} [props.className] - Additional CSS classes to apply to the pagination button.
|
|
22
|
-
* @prop {React.ElementType} [props.element="button"] - HTML element type to render as the container.
|
|
23
|
-
* @prop {React.Ref<HTMLButtonElement>} [props.ref] - Ref to the pagination button element.
|
|
24
|
-
* @prop {React.ReactNode} [props.children] - Content to display inside the button (usually page number).
|
|
25
|
-
* @prop {LibAllColors} [props.accentColor="primary"] - Color theme for active and hover states.
|
|
26
|
-
* @prop {boolean} [props.isActive] - Whether this button represents the current active page.
|
|
27
|
-
* @prop {boolean} [props.readOnly] - Whether the button is in read-only mode (non-interactive).
|
|
28
|
-
*
|
|
29
|
-
* @returns {JSX.Element} The rendered PaginationButton component.
|
|
30
|
-
*
|
|
31
|
-
* @see https://doc-julseb-lib-react.vercel.app/components/pagination
|
|
32
|
-
*/
|
|
33
|
-
export const PaginationButton: FC<ILibPaginationButton> = ({
|
|
34
|
-
className,
|
|
35
|
-
element = "button",
|
|
36
|
-
ref,
|
|
37
|
-
children,
|
|
38
|
-
accentColor = "primary",
|
|
39
|
-
isActive,
|
|
40
|
-
readOnly,
|
|
41
|
-
...rest
|
|
42
|
-
}) => {
|
|
43
|
-
const Element = element
|
|
44
|
-
|
|
45
|
-
return (
|
|
46
|
-
<Element
|
|
47
|
-
ref={ref}
|
|
48
|
-
className={clsx(
|
|
49
|
-
"inline-flex justify-center items-center rounded-full size-8 font-bold",
|
|
50
|
-
"disabled:text-gray-500",
|
|
51
|
-
readOnly && "readOnly",
|
|
52
|
-
isActive && "active",
|
|
53
|
-
!readOnly && !isActive && genTextColorHover[accentColor],
|
|
54
|
-
!readOnly &&
|
|
55
|
-
isActive && [genBgColorHover[accentColor], "text-white"],
|
|
56
|
-
"[&.readOnly]:cursor-default!",
|
|
57
|
-
"pagination-button",
|
|
58
|
-
className,
|
|
59
|
-
)}
|
|
60
|
-
{...rest}
|
|
61
|
-
>
|
|
62
|
-
{children}
|
|
63
|
-
</Element>
|
|
64
|
-
)
|
|
65
|
-
}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import type { ButtonHTMLAttributes } from "react"
|
|
2
|
-
import type {
|
|
3
|
-
DispatchState,
|
|
4
|
-
LibColorsHover,
|
|
5
|
-
LibComponentBase,
|
|
6
|
-
ReactChildren,
|
|
7
|
-
ReactElement,
|
|
8
|
-
} from "../../types"
|
|
9
|
-
|
|
10
|
-
/*====================== Pagination ======================*/
|
|
11
|
-
|
|
12
|
-
interface ILibPaginationBase extends LibComponentBase<HTMLDivElement> {
|
|
13
|
-
accentColor?: LibColorsHover
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
interface PaginationWithItems extends ILibPaginationBase {
|
|
17
|
-
currentPage: number
|
|
18
|
-
setCurrentPage: DispatchState<number>
|
|
19
|
-
totalPages: number
|
|
20
|
-
pageLimit?: number
|
|
21
|
-
icons?: { prev?: ReactElement; next?: ReactElement }
|
|
22
|
-
children?: never
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
interface PaginationWithChildren extends ILibPaginationBase {
|
|
26
|
-
currentPage?: never
|
|
27
|
-
setCurrentPage?: never
|
|
28
|
-
totalPages?: never
|
|
29
|
-
pageLimit?: never
|
|
30
|
-
icons?: never
|
|
31
|
-
children: ReactChildren
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
export type ILibPagination = PaginationWithItems | PaginationWithChildren
|
|
35
|
-
|
|
36
|
-
/*====================== PaginationButton ======================*/
|
|
37
|
-
|
|
38
|
-
interface ILibPaginationButtonBase
|
|
39
|
-
extends LibComponentBase<HTMLButtonElement>,
|
|
40
|
-
ButtonHTMLAttributes<HTMLButtonElement> {
|
|
41
|
-
accentColor?: LibColorsHover
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
interface PaginationButtonActive extends ILibPaginationButtonBase {
|
|
45
|
-
isActive: boolean
|
|
46
|
-
readOnly?: never
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
interface PaginationButtonReadOnly extends ILibPaginationButtonBase {
|
|
50
|
-
isActive?: never
|
|
51
|
-
readOnly: true
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
export type ILibPaginationButton =
|
|
55
|
-
| PaginationButtonActive
|
|
56
|
-
| PaginationButtonReadOnly
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { type FC, type ChangeEvent } from "react"
|
|
2
|
-
import { BiLeftArrowAlt, BiRightArrowAlt } from "react-icons/bi"
|
|
3
|
-
import { ButtonIcon } from "../ButtonIcon"
|
|
4
|
-
import { Text } from "../Text"
|
|
5
|
-
import { usePagination } from "../../hooks"
|
|
6
|
-
import { clsx } from "../../utils"
|
|
7
|
-
import type { ILibPaginator } from "./types"
|
|
8
|
-
|
|
9
|
-
/**
|
|
10
|
-
* Paginator component for simple page navigation with input field and next/previous buttons.
|
|
11
|
-
*
|
|
12
|
-
* @component
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* <Paginator
|
|
16
|
-
* currentPage={currentPage}
|
|
17
|
-
* setCurrentPage={setCurrentPage}
|
|
18
|
-
* totalPages={20}
|
|
19
|
-
* texts={{ page: "Page", of: "of" }}
|
|
20
|
-
* labels={{ prev: "Previous", next: "Next" }}
|
|
21
|
-
* />
|
|
22
|
-
*
|
|
23
|
-
* @extends HTMLDivElement
|
|
24
|
-
*
|
|
25
|
-
* @prop {string} [props.className] - Additional CSS classes to apply to the paginator container.
|
|
26
|
-
* @prop {React.ElementType} [props.element="div"] - HTML element type to render as the container.
|
|
27
|
-
* @prop {React.Ref<HTMLDivElement>} [props.ref] - Ref to the paginator element.
|
|
28
|
-
* @prop {number} [props.totalPages] - Total number of pages available for navigation.
|
|
29
|
-
* @prop {number} [props.currentPage] - Current active page number.
|
|
30
|
-
* @prop {function} [props.setCurrentPage] - Function to update the current page state.
|
|
31
|
-
* @prop {boolean} [props.noInput] - Whether to hide the page input field and show read-only text.
|
|
32
|
-
* @prop {object} [props.texts] - Custom text labels for page display.
|
|
33
|
-
* @prop {string} [props.texts.page="Page"] - Text label for "Page".
|
|
34
|
-
* @prop {string} [props.texts.of="of"] - Text label for "of".
|
|
35
|
-
* @prop {object} [props.icons] - Custom icons for navigation buttons.
|
|
36
|
-
* @prop {React.ReactNode} [props.icons.prev] - Custom icon for the previous page button.
|
|
37
|
-
* @prop {React.ReactNode} [props.icons.next] - Custom icon for the next page button.
|
|
38
|
-
* @prop {object} [props.labels] - Custom aria labels and tooltips for navigation buttons.
|
|
39
|
-
* @prop {string} [props.labels.prev="Previous"] - Label for the previous page button.
|
|
40
|
-
* @prop {string} [props.labels.next="Next"] - Label for the next page button.
|
|
41
|
-
* @prop {boolean} [props.hideButtonsTooltip] - Whether to hide tooltips on navigation buttons.
|
|
42
|
-
* @prop {function} [props.handlePrev] - Custom handler for previous page navigation.
|
|
43
|
-
* @prop {function} [props.handleNext] - Custom handler for next page navigation.
|
|
44
|
-
* @prop {function} [props.handlePage] - Custom handler for direct page navigation.
|
|
45
|
-
*
|
|
46
|
-
* @returns {JSX.Element} The rendered Paginator component.
|
|
47
|
-
*
|
|
48
|
-
* @see https://doc-julseb-lib-react.vercel.app/components/paginator
|
|
49
|
-
*/
|
|
50
|
-
export const Paginator: FC<ILibPaginator> = ({
|
|
51
|
-
className,
|
|
52
|
-
element = "div",
|
|
53
|
-
ref,
|
|
54
|
-
totalPages,
|
|
55
|
-
currentPage,
|
|
56
|
-
setCurrentPage,
|
|
57
|
-
noInput,
|
|
58
|
-
texts,
|
|
59
|
-
icons,
|
|
60
|
-
labels,
|
|
61
|
-
hideButtonsTooltip,
|
|
62
|
-
handlePrev,
|
|
63
|
-
handleNext,
|
|
64
|
-
handlePage,
|
|
65
|
-
...rest
|
|
66
|
-
}) => {
|
|
67
|
-
const Element = element
|
|
68
|
-
|
|
69
|
-
const {
|
|
70
|
-
handlePrev: handlePrevPage,
|
|
71
|
-
handlePage: handleNewPage,
|
|
72
|
-
handleNext: handleNextPage,
|
|
73
|
-
} = usePagination({ currentPage, setCurrentPage, totalPages })
|
|
74
|
-
|
|
75
|
-
const handleChange = (e: ChangeEvent<HTMLInputElement>) =>
|
|
76
|
-
handlePage
|
|
77
|
-
? handlePage(Number(e.target.value))
|
|
78
|
-
: handleNewPage(Number(e.target.value))
|
|
79
|
-
|
|
80
|
-
if (totalPages && totalPages <= 1) return null
|
|
81
|
-
|
|
82
|
-
return (
|
|
83
|
-
<Element
|
|
84
|
-
ref={ref}
|
|
85
|
-
className={clsx("flex gap-2", "paginator", className)}
|
|
86
|
-
{...rest}
|
|
87
|
-
>
|
|
88
|
-
{noInput ? (
|
|
89
|
-
<Text className="paginator-text">
|
|
90
|
-
{texts?.page ?? "Page"} {currentPage} {texts?.of ?? "of"}{" "}
|
|
91
|
-
{totalPages}
|
|
92
|
-
</Text>
|
|
93
|
-
) : (
|
|
94
|
-
<span className="paginator-text-wrapper">
|
|
95
|
-
{texts?.page ?? "Page"}{" "}
|
|
96
|
-
<input
|
|
97
|
-
value={currentPage}
|
|
98
|
-
onChange={handleChange}
|
|
99
|
-
type="number"
|
|
100
|
-
step={1}
|
|
101
|
-
min={1}
|
|
102
|
-
max={totalPages}
|
|
103
|
-
className={clsx(
|
|
104
|
-
"px-2 border border-gray-200 rounded-md outline-none w-[calc(2ch+20px)]",
|
|
105
|
-
"focus:border-primary-500",
|
|
106
|
-
"[&::-webkit-outer-spin-button]:appearance-none [&::-webkit-inner-spin-button]:appearance-none [&::-webkit-inner-spin-button]:m-0 [appearance:textfield]",
|
|
107
|
-
"paginator-input",
|
|
108
|
-
)}
|
|
109
|
-
size={currentPage.toString().length + 1}
|
|
110
|
-
/>{" "}
|
|
111
|
-
{texts?.of ?? "of"} {totalPages}
|
|
112
|
-
</span>
|
|
113
|
-
)}
|
|
114
|
-
|
|
115
|
-
<ButtonIcon
|
|
116
|
-
icon={icons?.prev ?? <BiLeftArrowAlt />}
|
|
117
|
-
className="size-6 paginator-button"
|
|
118
|
-
disabled={currentPage === 1}
|
|
119
|
-
onClick={handlePrev ?? handlePrevPage}
|
|
120
|
-
aria-label={labels?.prev ?? "Previous"}
|
|
121
|
-
tooltip={labels?.prev ?? "Previous"}
|
|
122
|
-
showTooltip={!hideButtonsTooltip && { offset: "xs" }}
|
|
123
|
-
/>
|
|
124
|
-
|
|
125
|
-
<ButtonIcon
|
|
126
|
-
icon={icons?.next ?? <BiRightArrowAlt />}
|
|
127
|
-
className="size-6 paginator-button"
|
|
128
|
-
disabled={currentPage === totalPages}
|
|
129
|
-
onClick={handleNext ?? handleNextPage}
|
|
130
|
-
aria-label={labels?.next ?? "Next"}
|
|
131
|
-
tooltip={labels?.next ?? "Next"}
|
|
132
|
-
showTooltip={!hideButtonsTooltip && { offset: "xs" }}
|
|
133
|
-
/>
|
|
134
|
-
</Element>
|
|
135
|
-
)
|
|
136
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from "./Paginator"
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { DispatchState, LibComponentBase, ReactElement } from "../../types"
|
|
2
|
-
|
|
3
|
-
export interface ILibPaginator extends LibComponentBase<HTMLDivElement> {
|
|
4
|
-
totalPages: number
|
|
5
|
-
currentPage: number
|
|
6
|
-
setCurrentPage: DispatchState<number>
|
|
7
|
-
noInput?: boolean
|
|
8
|
-
texts?: { page?: string; of?: string }
|
|
9
|
-
icons?: { prev?: ReactElement; next?: ReactElement }
|
|
10
|
-
labels?: { prev?: string; next?: string }
|
|
11
|
-
hideButtonsTooltip?: boolean
|
|
12
|
-
handlePrev?: () => void
|
|
13
|
-
handleNext?: () => void
|
|
14
|
-
handlePage?: (n: number) => void
|
|
15
|
-
children?: never
|
|
16
|
-
}
|