@julseb-lib/react 1.0.57 → 1.0.59
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-LDLZTDYA.js +1 -0
- package/dist/index.cjs +153 -54
- package/dist/index.cjs.map +1 -1
- package/dist/index.css +9 -0
- package/dist/index.d.cts +35 -2
- package/dist/index.d.ts +35 -2
- package/dist/index.js +101 -3
- package/dist/index.js.map +1 -1
- package/dist/types/components-props.cjs.map +1 -1
- package/dist/types/components-props.d.cts +16 -1
- package/dist/types/components-props.d.ts +16 -1
- package/dist/types/components-props.js +1 -1
- package/dist/types/index.d.cts +1 -1
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.js +1 -1
- package/package.json +26 -26
- package/dist/chunk-O7DX4LLW.js +0 -1
- /package/dist/{chunk-O7DX4LLW.js.map → chunk-LDLZTDYA.js.map} +0 -0
package/dist/index.css
CHANGED
package/dist/index.d.cts
CHANGED
|
@@ -7,7 +7,7 @@ import { LibMdEditorOptions } from './types/components-items-props.cjs';
|
|
|
7
7
|
export { addDay, addMonth, addYear, calculateAverage, calculateTotalSum, capitalize, convertDate, convertDateShort, convertPrice, convertTime, convertToEmail, convertYoutube, decrypt, deleteDuplicates, emailRegex, encrypt, filterObject, formatDate, formatHour, generateNumbers, getFirstName, getInitials, getLastName, getNextDay, getPercentage, getRandom, getRandomAvatar, getRandomDate, getRandomNumber, getRandomString, getRandomTime, getTimeNow, getToday, getTomorrow, getYesterday, hexToRgb, passwordRegex, rgbToHex, slugify, sortByFrequency, stringifyPx, toCamelCase, toConstantCase, toDotCase, toKebabCase, toPascalCase, toPathCase, toSentenceCase, toSnakeCase, toTitleCase, unslugify, uuid } from '@julseb-lib/utils';
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
import { RefObject, ChangeEvent, RefCallback, Ref, FC as FC$1 } from 'react';
|
|
10
|
-
import { ILibText, ILibWrapper, ILibMain, ILibAside, ILibSection, ILibGrid, ILibFlexbox, ILibKey, ILibHighlight, ILibLinkify, ILibHr, ILibSkeleton, ILibSkeletonCard, ILibTooltip, ILibImage, ILibMasonry, ILibBadge, ILibAvatar, ILibLoader, ILibBurger, ILibButton, ILibButtonIcon, ILibButtonGroup, ILibTag, ILibInputContainer, ILibInput, ILibInputImage, ILibInputCheck, ILibInputPhone, ILibInputCounter, ILibInputSlider, ILibSelect, ILibAutocomplete, ILibRating, ILibInputPin, ILibFieldset, ILibForm, ILibListGroup, ILibListGroupTitle, ILibListGroupItem, ILibBreadcrumbs, ILibAccordion, ILibAccordionItem, ILibDropdown, ILibDropdownItem, ILibToast, ILibAlert, ILibModal, ILibDragList, ILibDragListItem, ILibPagination, ILibPaginationButton, ILibPaginator, ILibProgressBar, ILibProgressCircle, ILibTabs, ILibTabsContainer, ILibTabsButtonsContainer, ILibTabsButton, ILibTabContent, ILibSlideshow, ILibCover, ILibTable, ILibPageLoading, ILibSticky, ILibMarkdownEditor, ILibMarkdownContainer, ILibFade, ILibBackToTop, ILibDrawer, ILibHeader, ILibFooter, ILibMeta, ILibPageLayout, ILibSrOnly, ILibCodeContainer } from './types/components-props.cjs';
|
|
10
|
+
import { ILibText, ILibWrapper, ILibMain, ILibAside, ILibSection, ILibGrid, ILibFlexbox, ILibKey, ILibHighlight, ILibLinkify, ILibHr, ILibSkeleton, ILibSkeletonCard, ILibTooltip, ILibImage, ILibMasonry, ILibBadge, ILibAvatar, ILibLoader, ILibBurger, ILibButton, ILibButtonIcon, ILibButtonGroup, ILibTag, ILibInputContainer, ILibInput, ILibInputImage, ILibInputCheck, ILibInputPhone, ILibInputCounter, ILibInputSlider, ILibSelect, ILibAutocomplete, ILibRating, ILibInputPin, ILibFieldset, ILibForm, ILibListGroup, ILibListGroupTitle, ILibListGroupItem, ILibBreadcrumbs, ILibAccordion, ILibAccordionItem, ILibDropdown, ILibDropdownItem, ILibToast, ILibAlert, ILibModal, ILibDragList, ILibDragListItem, ILibPagination, ILibPaginationButton, ILibPaginator, ILibProgressBar, ILibProgressCircle, ILibTabs, ILibTabsContainer, ILibTabsButtonsContainer, ILibTabsButton, ILibTabContent, ILibSlideshow, ILibCover, ILibTable, ILibPageLoading, ILibSticky, ILibMarkdownEditor, ILibMarkdownContainer, ILibFade, ILibBackToTop, ILibDrawer, ILibHeader, ILibFooter, ILibMeta, ILibPageLayout, ILibSrOnly, ILibCodeContainer, ILibCarousel } from './types/components-props.cjs';
|
|
11
11
|
import * as react_toastify from 'react-toastify';
|
|
12
12
|
import { ToastContainerProps, ToastOptions } from 'react-toastify';
|
|
13
13
|
import 'csstype';
|
|
@@ -3359,4 +3359,37 @@ declare const SrOnly: FC$1<ILibSrOnly>;
|
|
|
3359
3359
|
*/
|
|
3360
3360
|
declare const CodeContainer: FC$1<ILibCodeContainer>;
|
|
3361
3361
|
|
|
3362
|
-
|
|
3362
|
+
/**
|
|
3363
|
+
* A carousel component that displays a continuous scrolling animation of items (images or custom content).
|
|
3364
|
+
*
|
|
3365
|
+
* @component
|
|
3366
|
+
*
|
|
3367
|
+
* @example
|
|
3368
|
+
* // Basic image carousel
|
|
3369
|
+
* <Carousel items={["image1.jpg", "image2.jpg", "image3.jpg"]} showItems={3} />
|
|
3370
|
+
*
|
|
3371
|
+
* // Carousel with custom content
|
|
3372
|
+
* <Carousel
|
|
3373
|
+
* items={[<div>Custom content 1</div>, <div>Custom content 2</div>]}
|
|
3374
|
+
* stopOnHover
|
|
3375
|
+
* speed={15}
|
|
3376
|
+
* />
|
|
3377
|
+
*
|
|
3378
|
+
* @extends ILibCarousel
|
|
3379
|
+
*
|
|
3380
|
+
* @prop {string} [props.className] - Additional CSS classes to apply to the component
|
|
3381
|
+
* @prop {keyof JSX.IntrinsicElements} [props.element="div"] - HTML element type to render as the root element
|
|
3382
|
+
* @prop {Ref<HTMLDivElement>} [props.ref] - React ref for the root element
|
|
3383
|
+
* @prop {Array<string> | Array<ReactChildren>} props.items - Array of image URLs (strings) or custom React elements to display in the carousel
|
|
3384
|
+
* @prop {boolean} [props.stopOnHover] - Whether to pause the animation when hovering over the carousel
|
|
3385
|
+
* @prop {2 | 3 | 4 | 5 | 6} [props.showItems=4] - Number of items to show simultaneously in the carousel viewport
|
|
3386
|
+
* @prop {"cover" | "contain"} [props.imgFit="cover"] - CSS object-fit property for images (only applies when items are strings)
|
|
3387
|
+
* @prop {number} [props.speed=20] - Animation duration in seconds for one complete scroll cycle
|
|
3388
|
+
*
|
|
3389
|
+
* @returns A carousel component with continuous scrolling animation and optional gradient overlays
|
|
3390
|
+
*
|
|
3391
|
+
* @see https://doc-julseb-lib-react.vercel.app/components/carousel
|
|
3392
|
+
*/
|
|
3393
|
+
declare const Carousel: FC$1<ILibCarousel>;
|
|
3394
|
+
|
|
3395
|
+
export { Accordion, AccordionItem, Alert, Aside, Autocomplete, Avatar, BackToTop, Badge, Breadcrumbs, Burger, Button, ButtonGroup, ButtonIcon, COLORS, Carousel, CodeContainer, Cover, DROP_SHADOWS, DragList, DragListItem, Drawer, Dropdown, DropdownItem, FONT_FAMILIES, FONT_SIZES, FONT_WEIGHTS, Fade, Fieldset, Flexbox, Footer, Form, Grid, Header, Highlight, Hr, ICON_MULTIPLIER, INPUT_HEIGHT, INSET_SHADOWS, Image, Input, InputCheck, InputContainer, InputCounter, InputImage, InputPhone, InputPin, InputSlider, Key, LAYOUTS, LINE_HEIGHTS, Linkify, ListGroup, ListGroupItem, ListGroupTitle, Loader, MEDIA, Main, MarkdownContainer, MarkdownEditor, Masonry, Meta, Modal, OVERLAYS, PageLayout, PageLoading, Pagination, PaginationButton, Paginator, ProgressBar, ProgressCircle, RADIUSES, Rating, SHADOWS, SPACERS, Section, Select, Skeleton, SkeletonCard, Slideshow, SrOnly, Sticky, TEXT_BASE_CLASSES, TEXT_SHADOWS, TRANSITIONS, Table, Tabs, TabsButton, TabsButtonsContainer, TabsContainer, TabsContent, Tag, Text, ThemeProviderWrapper, Toast, ToastContainer, Tooltip, URL_REGEX, Wrapper, clsx, countries, detectLanguage, disableScroll, enableScroll, genAlignContent, genAlignItems, genBgAllColors, genBgAllColorsAndOverlays, genBgColor, genBgColor50, genBgColorGhostHover, genBgColorHover, genBgColorShort, genBgOverlay, genBorderAllColors, genBorderColor, genBorderColorHover, genBorderColorShort, genBorderRadius, genBoxShadow, genButtonColor, genButtonDisabled, genColGap, genGap, genJustifyContent, genJustifyItems, genLinkColor, genMaxWidth, genObjectFit, genRingColor, genRingColorChildren, genRowGap, genTextAlign, genTextAllColor, genTextColor, genTextColorHover, genTextColorShort, genVAlign, libMarkdownEditorOptions, libOptionsMarkdown, linkifyText, scrollToTop, toast, useClickOutside, useCopyToClipboard, useDebounce, useExportData, useFetch, useForm, useIsOverflow, useKeyPress, useLibTheme, useMaxWidth, useMergeRefs, useMinWidth, usePaginatedData, usePagination, useTextLineCount, useTouchScreen, useTranslation };
|
package/dist/index.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import { LibMdEditorOptions } from './types/components-items-props.js';
|
|
|
7
7
|
export { addDay, addMonth, addYear, calculateAverage, calculateTotalSum, capitalize, convertDate, convertDateShort, convertPrice, convertTime, convertToEmail, convertYoutube, decrypt, deleteDuplicates, emailRegex, encrypt, filterObject, formatDate, formatHour, generateNumbers, getFirstName, getInitials, getLastName, getNextDay, getPercentage, getRandom, getRandomAvatar, getRandomDate, getRandomNumber, getRandomString, getRandomTime, getTimeNow, getToday, getTomorrow, getYesterday, hexToRgb, passwordRegex, rgbToHex, slugify, sortByFrequency, stringifyPx, toCamelCase, toConstantCase, toDotCase, toKebabCase, toPascalCase, toPathCase, toSentenceCase, toSnakeCase, toTitleCase, unslugify, uuid } from '@julseb-lib/utils';
|
|
8
8
|
import * as react from 'react';
|
|
9
9
|
import { RefObject, ChangeEvent, RefCallback, Ref, FC as FC$1 } from 'react';
|
|
10
|
-
import { ILibText, ILibWrapper, ILibMain, ILibAside, ILibSection, ILibGrid, ILibFlexbox, ILibKey, ILibHighlight, ILibLinkify, ILibHr, ILibSkeleton, ILibSkeletonCard, ILibTooltip, ILibImage, ILibMasonry, ILibBadge, ILibAvatar, ILibLoader, ILibBurger, ILibButton, ILibButtonIcon, ILibButtonGroup, ILibTag, ILibInputContainer, ILibInput, ILibInputImage, ILibInputCheck, ILibInputPhone, ILibInputCounter, ILibInputSlider, ILibSelect, ILibAutocomplete, ILibRating, ILibInputPin, ILibFieldset, ILibForm, ILibListGroup, ILibListGroupTitle, ILibListGroupItem, ILibBreadcrumbs, ILibAccordion, ILibAccordionItem, ILibDropdown, ILibDropdownItem, ILibToast, ILibAlert, ILibModal, ILibDragList, ILibDragListItem, ILibPagination, ILibPaginationButton, ILibPaginator, ILibProgressBar, ILibProgressCircle, ILibTabs, ILibTabsContainer, ILibTabsButtonsContainer, ILibTabsButton, ILibTabContent, ILibSlideshow, ILibCover, ILibTable, ILibPageLoading, ILibSticky, ILibMarkdownEditor, ILibMarkdownContainer, ILibFade, ILibBackToTop, ILibDrawer, ILibHeader, ILibFooter, ILibMeta, ILibPageLayout, ILibSrOnly, ILibCodeContainer } from './types/components-props.js';
|
|
10
|
+
import { ILibText, ILibWrapper, ILibMain, ILibAside, ILibSection, ILibGrid, ILibFlexbox, ILibKey, ILibHighlight, ILibLinkify, ILibHr, ILibSkeleton, ILibSkeletonCard, ILibTooltip, ILibImage, ILibMasonry, ILibBadge, ILibAvatar, ILibLoader, ILibBurger, ILibButton, ILibButtonIcon, ILibButtonGroup, ILibTag, ILibInputContainer, ILibInput, ILibInputImage, ILibInputCheck, ILibInputPhone, ILibInputCounter, ILibInputSlider, ILibSelect, ILibAutocomplete, ILibRating, ILibInputPin, ILibFieldset, ILibForm, ILibListGroup, ILibListGroupTitle, ILibListGroupItem, ILibBreadcrumbs, ILibAccordion, ILibAccordionItem, ILibDropdown, ILibDropdownItem, ILibToast, ILibAlert, ILibModal, ILibDragList, ILibDragListItem, ILibPagination, ILibPaginationButton, ILibPaginator, ILibProgressBar, ILibProgressCircle, ILibTabs, ILibTabsContainer, ILibTabsButtonsContainer, ILibTabsButton, ILibTabContent, ILibSlideshow, ILibCover, ILibTable, ILibPageLoading, ILibSticky, ILibMarkdownEditor, ILibMarkdownContainer, ILibFade, ILibBackToTop, ILibDrawer, ILibHeader, ILibFooter, ILibMeta, ILibPageLayout, ILibSrOnly, ILibCodeContainer, ILibCarousel } from './types/components-props.js';
|
|
11
11
|
import * as react_toastify from 'react-toastify';
|
|
12
12
|
import { ToastContainerProps, ToastOptions } from 'react-toastify';
|
|
13
13
|
import 'csstype';
|
|
@@ -3359,4 +3359,37 @@ declare const SrOnly: FC$1<ILibSrOnly>;
|
|
|
3359
3359
|
*/
|
|
3360
3360
|
declare const CodeContainer: FC$1<ILibCodeContainer>;
|
|
3361
3361
|
|
|
3362
|
-
|
|
3362
|
+
/**
|
|
3363
|
+
* A carousel component that displays a continuous scrolling animation of items (images or custom content).
|
|
3364
|
+
*
|
|
3365
|
+
* @component
|
|
3366
|
+
*
|
|
3367
|
+
* @example
|
|
3368
|
+
* // Basic image carousel
|
|
3369
|
+
* <Carousel items={["image1.jpg", "image2.jpg", "image3.jpg"]} showItems={3} />
|
|
3370
|
+
*
|
|
3371
|
+
* // Carousel with custom content
|
|
3372
|
+
* <Carousel
|
|
3373
|
+
* items={[<div>Custom content 1</div>, <div>Custom content 2</div>]}
|
|
3374
|
+
* stopOnHover
|
|
3375
|
+
* speed={15}
|
|
3376
|
+
* />
|
|
3377
|
+
*
|
|
3378
|
+
* @extends ILibCarousel
|
|
3379
|
+
*
|
|
3380
|
+
* @prop {string} [props.className] - Additional CSS classes to apply to the component
|
|
3381
|
+
* @prop {keyof JSX.IntrinsicElements} [props.element="div"] - HTML element type to render as the root element
|
|
3382
|
+
* @prop {Ref<HTMLDivElement>} [props.ref] - React ref for the root element
|
|
3383
|
+
* @prop {Array<string> | Array<ReactChildren>} props.items - Array of image URLs (strings) or custom React elements to display in the carousel
|
|
3384
|
+
* @prop {boolean} [props.stopOnHover] - Whether to pause the animation when hovering over the carousel
|
|
3385
|
+
* @prop {2 | 3 | 4 | 5 | 6} [props.showItems=4] - Number of items to show simultaneously in the carousel viewport
|
|
3386
|
+
* @prop {"cover" | "contain"} [props.imgFit="cover"] - CSS object-fit property for images (only applies when items are strings)
|
|
3387
|
+
* @prop {number} [props.speed=20] - Animation duration in seconds for one complete scroll cycle
|
|
3388
|
+
*
|
|
3389
|
+
* @returns A carousel component with continuous scrolling animation and optional gradient overlays
|
|
3390
|
+
*
|
|
3391
|
+
* @see https://doc-julseb-lib-react.vercel.app/components/carousel
|
|
3392
|
+
*/
|
|
3393
|
+
declare const Carousel: FC$1<ILibCarousel>;
|
|
3394
|
+
|
|
3395
|
+
export { Accordion, AccordionItem, Alert, Aside, Autocomplete, Avatar, BackToTop, Badge, Breadcrumbs, Burger, Button, ButtonGroup, ButtonIcon, COLORS, Carousel, CodeContainer, Cover, DROP_SHADOWS, DragList, DragListItem, Drawer, Dropdown, DropdownItem, FONT_FAMILIES, FONT_SIZES, FONT_WEIGHTS, Fade, Fieldset, Flexbox, Footer, Form, Grid, Header, Highlight, Hr, ICON_MULTIPLIER, INPUT_HEIGHT, INSET_SHADOWS, Image, Input, InputCheck, InputContainer, InputCounter, InputImage, InputPhone, InputPin, InputSlider, Key, LAYOUTS, LINE_HEIGHTS, Linkify, ListGroup, ListGroupItem, ListGroupTitle, Loader, MEDIA, Main, MarkdownContainer, MarkdownEditor, Masonry, Meta, Modal, OVERLAYS, PageLayout, PageLoading, Pagination, PaginationButton, Paginator, ProgressBar, ProgressCircle, RADIUSES, Rating, SHADOWS, SPACERS, Section, Select, Skeleton, SkeletonCard, Slideshow, SrOnly, Sticky, TEXT_BASE_CLASSES, TEXT_SHADOWS, TRANSITIONS, Table, Tabs, TabsButton, TabsButtonsContainer, TabsContainer, TabsContent, Tag, Text, ThemeProviderWrapper, Toast, ToastContainer, Tooltip, URL_REGEX, Wrapper, clsx, countries, detectLanguage, disableScroll, enableScroll, genAlignContent, genAlignItems, genBgAllColors, genBgAllColorsAndOverlays, genBgColor, genBgColor50, genBgColorGhostHover, genBgColorHover, genBgColorShort, genBgOverlay, genBorderAllColors, genBorderColor, genBorderColorHover, genBorderColorShort, genBorderRadius, genBoxShadow, genButtonColor, genButtonDisabled, genColGap, genGap, genJustifyContent, genJustifyItems, genLinkColor, genMaxWidth, genObjectFit, genRingColor, genRingColorChildren, genRowGap, genTextAlign, genTextAllColor, genTextColor, genTextColorHover, genTextColorShort, genVAlign, libMarkdownEditorOptions, libOptionsMarkdown, linkifyText, scrollToTop, toast, useClickOutside, useCopyToClipboard, useDebounce, useExportData, useFetch, useForm, useIsOverflow, useKeyPress, useLibTheme, useMaxWidth, useMergeRefs, useMinWidth, usePaginatedData, usePagination, useTextLineCount, useTouchScreen, useTranslation };
|