design-react-kit 5.6.0 → 5.7.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/CHANGELOG.md +27 -0
- package/dist/Accordion/AccordionBody.cjs +1 -1
- package/dist/Accordion/AccordionBody.cjs.map +1 -1
- package/dist/Accordion/AccordionBody.js +31 -21
- package/dist/Accordion/AccordionBody.js.map +1 -1
- package/dist/Accordion/AccordionHeader.cjs +1 -1
- package/dist/Accordion/AccordionHeader.cjs.map +1 -1
- package/dist/Accordion/AccordionHeader.js +1 -1
- package/dist/Accordion/AccordionHeader.js.map +1 -1
- package/dist/Autocomplete/Autocomplete.cjs +1 -3
- package/dist/Autocomplete/Autocomplete.cjs.map +1 -1
- package/dist/Autocomplete/Autocomplete.js +27 -4
- package/dist/Autocomplete/Autocomplete.js.map +1 -1
- package/dist/Carousel/Carousel.cjs +2 -0
- package/dist/Carousel/Carousel.cjs.map +1 -0
- package/dist/Carousel/Carousel.js +193 -0
- package/dist/Carousel/Carousel.js.map +1 -0
- package/dist/Carousel/CarouselSlide.cjs +2 -0
- package/dist/Carousel/CarouselSlide.cjs.map +1 -0
- package/dist/Carousel/CarouselSlide.js +8 -0
- package/dist/Carousel/CarouselSlide.js.map +1 -0
- package/dist/Input/Input.cjs +1 -1
- package/dist/Input/Input.cjs.map +1 -1
- package/dist/Input/Input.js +3 -9
- package/dist/Input/Input.js.map +1 -1
- package/dist/Input/TextArea.cjs +1 -1
- package/dist/Input/TextArea.cjs.map +1 -1
- package/dist/Input/utils.cjs +1 -1
- package/dist/Input/utils.cjs.map +1 -1
- package/dist/Input/utils.js +2 -4
- package/dist/Input/utils.js.map +1 -1
- package/dist/Rating/Rating.cjs +1 -1
- package/dist/Rating/Rating.cjs.map +1 -1
- package/dist/Transfer/BacktransferButton.cjs +2 -0
- package/dist/Transfer/BacktransferButton.cjs.map +1 -0
- package/dist/Transfer/BacktransferButton.js +20 -0
- package/dist/Transfer/BacktransferButton.js.map +1 -0
- package/dist/Transfer/Item.cjs +2 -0
- package/dist/Transfer/Item.cjs.map +1 -0
- package/dist/Transfer/Item.js +15 -0
- package/dist/Transfer/Item.js.map +1 -0
- package/dist/Transfer/ResetButton.cjs +2 -0
- package/dist/Transfer/ResetButton.cjs.map +1 -0
- package/dist/Transfer/ResetButton.js +16 -0
- package/dist/Transfer/ResetButton.js.map +1 -0
- package/dist/Transfer/SelectAllCheckbox.cjs +2 -0
- package/dist/Transfer/SelectAllCheckbox.cjs.map +1 -0
- package/dist/Transfer/SelectAllCheckbox.js +11 -0
- package/dist/Transfer/SelectAllCheckbox.js.map +1 -0
- package/dist/Transfer/Source.cjs +2 -0
- package/dist/Transfer/Source.cjs.map +1 -0
- package/dist/Transfer/Source.js +61 -0
- package/dist/Transfer/Source.js.map +1 -0
- package/dist/Transfer/Target.cjs +2 -0
- package/dist/Transfer/Target.cjs.map +1 -0
- package/dist/Transfer/Target.js +60 -0
- package/dist/Transfer/Target.js.map +1 -0
- package/dist/Transfer/Transfer.cjs +2 -0
- package/dist/Transfer/Transfer.cjs.map +1 -0
- package/dist/Transfer/Transfer.js +21 -0
- package/dist/Transfer/Transfer.js.map +1 -0
- package/dist/Transfer/TransferButton.cjs +2 -0
- package/dist/Transfer/TransferButton.cjs.map +1 -0
- package/dist/Transfer/TransferButton.js +20 -0
- package/dist/Transfer/TransferButton.js.map +1 -0
- package/dist/Transfer/useTransferContext.cjs +2 -0
- package/dist/Transfer/useTransferContext.cjs.map +1 -0
- package/dist/Transfer/useTransferContext.js +63 -0
- package/dist/Transfer/useTransferContext.js.map +1 -0
- package/dist/Video/Video.cjs +2 -0
- package/dist/Video/Video.cjs.map +1 -0
- package/dist/Video/Video.js +99 -0
- package/dist/Video/Video.js.map +1 -0
- package/dist/index.cjs +1 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/types/Autocomplete/Autocomplete.d.ts +10 -5
- package/dist/types/Carousel/Carousel.d.ts +7 -0
- package/dist/types/Carousel/CarouselSlide.d.ts +2 -0
- package/dist/types/Input/Input.d.ts +2 -4
- package/dist/types/Input/utils.d.ts +1 -1
- package/dist/types/Transfer/BacktransferButton.d.ts +3 -0
- package/dist/types/Transfer/Item.d.ts +12 -0
- package/dist/types/Transfer/ResetButton.d.ts +3 -0
- package/dist/types/Transfer/SelectAllCheckbox.d.ts +10 -0
- package/dist/types/Transfer/Source.d.ts +9 -0
- package/dist/types/Transfer/Target.d.ts +9 -0
- package/dist/types/Transfer/Transfer.d.ts +40 -0
- package/dist/types/Transfer/TransferButton.d.ts +3 -0
- package/dist/types/Transfer/useTransferContext.d.ts +49 -0
- package/dist/types/Video/Video.d.ts +58 -0
- package/dist/types/index.d.ts +6 -0
- package/package.json +6 -3
- package/src/Accordion/AccordionBody.tsx +32 -22
- package/src/Accordion/AccordionHeader.tsx +0 -1
- package/src/Autocomplete/Autocomplete.tsx +69 -18
- package/src/Carousel/Carousel.tsx +210 -0
- package/src/Carousel/CarouselSlide.tsx +14 -0
- package/src/Input/Input.tsx +10 -19
- package/src/Input/utils.tsx +3 -5
- package/src/Transfer/BacktransferButton.tsx +33 -0
- package/src/Transfer/Item.tsx +33 -0
- package/src/Transfer/ResetButton.tsx +28 -0
- package/src/Transfer/SelectAllCheckbox.tsx +30 -0
- package/src/Transfer/Source.tsx +89 -0
- package/src/Transfer/Target.tsx +87 -0
- package/src/Transfer/Transfer.tsx +31 -0
- package/src/Transfer/TransferButton.tsx +33 -0
- package/src/Transfer/useTransferContext.tsx +110 -0
- package/src/Video/Video.tsx +205 -0
- package/src/index.ts +6 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import React, { useEffect } from 'react';
|
|
2
2
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
3
3
|
// @ts-ignore non ci sono i types
|
|
4
|
-
import BaseAutocomplete from 'accessible-autocomplete/react';
|
|
4
|
+
import BaseAutocomplete from 'accessible-autocomplete/react';
|
|
5
5
|
const tAssistiveHintDefault = () => 'Quando i risultati del completamento automatico sono disponibili, usa le frecce su e giù per rivedere e Invio per selezionare. Utenti di dispositivi touch, esplora tramite tocco o con gesti di scorrimento';
|
|
6
6
|
const tNoResultsDefault = () => 'Nessun risultato trovato';
|
|
7
7
|
const tStatusQueryTooShortDefault = (minQueryLength) => `Digita ${minQueryLength} o più caratteri per mostrare le opzioni di ricerca`;
|
|
@@ -15,7 +15,30 @@ const tStatusResultsDefault = (length, contentSelectedOption) => {
|
|
|
15
15
|
};
|
|
16
16
|
return `${length} ${words.result} ${words.is} ${words.available}. ${contentSelectedOption}`;
|
|
17
17
|
};
|
|
18
|
-
export const Autocomplete = ({ tAssistiveHint = tAssistiveHintDefault, tNoResults = tNoResultsDefault, tStatusQueryTooShort = tStatusQueryTooShortDefault, tStatusNoResults = tStatusNoResultsDefault, tStatusSelectedOption = tStatusSelectedOptionDefault, tStatusResults = tStatusResultsDefault, placeholder = '', defaultValue = '', displayMenu = 'inline', source, ...attributes }) => {
|
|
19
|
-
|
|
18
|
+
export const Autocomplete = ({ tAssistiveHint = tAssistiveHintDefault, tNoResults = tNoResultsDefault, tStatusQueryTooShort = tStatusQueryTooShortDefault, tStatusNoResults = tStatusNoResultsDefault, tStatusSelectedOption = tStatusSelectedOptionDefault, tStatusResults = tStatusResultsDefault, placeholder = '', defaultValue = '', displayMenu = 'inline', source, validationText, onConfirm, ...attributes }) => {
|
|
19
|
+
const { id, valid } = attributes;
|
|
20
|
+
const validityCheck = valid === true || valid === false;
|
|
21
|
+
useEffect(() => {
|
|
22
|
+
const inputElement = document.getElementById(id);
|
|
23
|
+
const labelElement = inputElement?.parentElement?.parentElement?.getElementsByTagName('label')[0];
|
|
24
|
+
if (inputElement.value !== '') {
|
|
25
|
+
labelElement?.classList.add('active');
|
|
26
|
+
}
|
|
27
|
+
inputElement?.addEventListener('focus', () => {
|
|
28
|
+
labelElement?.classList.add('active');
|
|
29
|
+
});
|
|
30
|
+
inputElement?.addEventListener('blur', () => {
|
|
31
|
+
if (inputElement.value === '') {
|
|
32
|
+
labelElement?.classList.remove('active');
|
|
33
|
+
}
|
|
34
|
+
if (onConfirm) {
|
|
35
|
+
onConfirm(inputElement.value);
|
|
36
|
+
}
|
|
37
|
+
});
|
|
38
|
+
}, [id]);
|
|
39
|
+
return (React.createElement(React.Fragment, null,
|
|
40
|
+
React.createElement("label", { htmlFor: attributes.id }, attributes.label),
|
|
41
|
+
React.createElement(BaseAutocomplete, { source: source, placeholder: placeholder, defaultValue: defaultValue, displayMenu: displayMenu, tAssistiveHint: tAssistiveHint, tNoResults: tNoResults, tStatusQueryTooShort: tStatusQueryTooShort, tStatusNoResults: tStatusNoResults, tStatusSelectedOption: tStatusSelectedOption, tStatusResults: tStatusResults, onConfirm: onConfirm, inputClasses: `form-control ${validityCheck && (valid === false ? 'is-invalid' : 'just-validate-success-field')}`, showNoOptionsFound: true, hintClasses: 'app-hint', autoselect: false, showAllValues: false, templates: undefined, confirmOnBlur: false, menuAttributes: null, menuClasses: null, ...attributes }),
|
|
42
|
+
React.createElement("div", { className: 'form-feedback just-validate-error-label form-text form-feedback just-validate-error-label' }, !valid && validationText)));
|
|
20
43
|
};
|
|
21
44
|
//# sourceMappingURL=Autocomplete.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Autocomplete.js","sourceRoot":"","sources":["../../src/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"Autocomplete.js","sourceRoot":"","sources":["../../src/Autocomplete/Autocomplete.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAM,SAAS,EAAE,MAAM,OAAO,CAAC;AAC7C,6DAA6D;AAC7D,iCAAiC;AACjC,OAAO,gBAAgB,MAAM,+BAA+B,CAAC;AAwC7D,MAAM,qBAAqB,GAAG,GAAG,EAAE,CACjC,8MAA8M,CAAC;AACjN,MAAM,iBAAiB,GAA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AAE,qBAAqB,EAC5C,cAAc,EAAE,cAAc,EAC9B,SAAS,EAAE,SAAS,EACpB,YAAY,EAAE,gBAAgB,aAAa,IAAI,CAAC,KAAK,KAAK,KAAK,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,6BAA6B,CAAC,EAAE,EACjH,kBAAkB,EAAE,IAAI,EACxB,WAAW,EAAC,UAAU,EACtB,UAAU,EAAE,KAAK,EACjB,aAAa,EAAE,KAAK,EACpB,SAAS,EAAE,SAAS,EACpB,aAAa,EAAE,KAAK,EACpB,cAAc,EAAE,IAAI,EACpB,WAAW,EAAE,IAAI,KACb,UAAU,GACd;QACF,6BAAK,SAAS,EAAC,2FAA2F,IACvG,CAAC,KAAK,IAAI,cAAc,CACrB,CACL,CACJ,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var c=Object.create;var t=Object.defineProperty;var f=Object.getOwnPropertyDescriptor;var h=Object.getOwnPropertyNames;var u=Object.getPrototypeOf,w=Object.prototype.hasOwnProperty;var P=(a,e)=>{for(var s in e)t(a,s,{get:e[s],enumerable:!0})},i=(a,e,s,l)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of h(e))!w.call(a,r)&&r!==s&&t(a,r,{get:()=>e[r],enumerable:!(l=f(e,r))||l.enumerable});return a};var p=(a,e,s)=>(s=a!=null?c(u(a)):{},i(e||!a||!a.__esModule?t(s,"default",{value:a,enumerable:!0}):s,a)),b=a=>i(t({},"__esModule",{value:!0}),a);var C={};P(C,{Carousel:()=>S});module.exports=b(C);var d=p(require("react"),1),o=p(require("classnames"),1),n=require("@splidejs/react-splide"),m={slideFocus:!1,rewind:!0,perMove:1,i18n:{prev:"Slide precedente",next:"Slide successiva",first:"Vai alla prima slide",last:"Vai all\u2019ultima slide",slideX:"Vai alla slide %s",pageX:"Vai a pagina %s",play:"Attiva autoplay",pause:"Pausa autoplay",carousel:"Carosello",select:"Seleziona una slide da mostrare",slide:"slide",slideLabel:"%s di %s"}},g={"landscape-three-cols":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!1}}},"landscape-three-cols-arrows":{type:"slide",perPage:3,gap:24,padding:{left:0,right:0},arrows:!0,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!0},992:{perPage:2,gap:24,padding:{left:40,right:40},arrows:!0}}},"big-image":{type:"loop",perPage:1,gap:48,padding:{left:320,right:320},arrows:!1,breakpoints:{768:{perPage:1,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:160,right:160},arrows:!1}}},"standard-image":{type:"loop",perPage:3,gap:24,padding:{left:48,right:48},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:40,right:40},arrows:!1},992:{perPage:2,gap:24,padding:{left:48,right:48},arrows:!1}}},landscape:{type:"slide",perPage:1,gap:24,padding:{left:0,right:0},arrows:!1,breakpoints:{768:{perPage:1,gap:24,padding:{left:0,right:0},arrows:!1},992:{perPage:1,gap:24,padding:{left:24,right:24},arrows:!1}}},"calendar-wrapper":{type:"slide",perPage:4,gap:0,padding:{left:0,right:0},arrows:!1,breakpoints:{560:{perPage:1,gap:0,padding:{left:24,right:24},arrows:!1},768:{perPage:2,gap:0,padding:{left:0,right:0},arrows:!1},992:{perPage:3,gap:0,padding:{left:0,right:0},arrows:!1}}}},y={"landscape-three-cols":["it-carousel-landscape-abstract-three-cols"],"landscape-three-cols-arrows":["it-carousel-landscape-abstract-three-cols-arrow-visible"],"big-image":["it-carousel-landscape-abstract-three-cols","it-full-carousel","it-big-img"],"standard-image":["it-carousel-landscape-abstract-three-cols","it-full-carousel","it-standard-image"],landscape:["it-carousel-landscape-abstract"],"calendar-wrapper":["it-calendar-wrapper"]},S=({className:a="",type:e,children:s,...l})=>{let r=Object.assign({},m);return["big-image","standard-image"].includes(e)&&(r=Object.assign({},r,g["landscape-three-cols"])),r=Object.assign({},r,g[e]),d.default.createElement(n.Splide,{...l,className:(0,o.default)("it-carousel-wrapper",a,...y[e]),options:r},s)};0&&(module.exports={Carousel});
|
|
2
|
+
//# sourceMappingURL=Carousel.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Carousel/Carousel.tsx"],"sourcesContent":["import React, { FC } from 'react';\nimport classNames from 'classnames';\n\nimport {Splide, SplideProps} from '@splidejs/react-splide'\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst CONFIG_DEFAULT: any = {\n slideFocus: false,\n rewind: true,\n perMove: 1,\n i18n: {\n prev: 'Slide precedente',\n next: 'Slide successiva',\n first: 'Vai alla prima slide',\n last: 'Vai all’ultima slide',\n slideX: 'Vai alla slide %s',\n pageX: 'Vai a pagina %s',\n play: 'Attiva autoplay',\n pause: 'Pausa autoplay',\n carousel: 'Carosello',\n select: 'Seleziona una slide da mostrare',\n slide: 'slide',\n slideLabel: '%s di %s',\n },\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst CONFIGS: any= {\n 'landscape-three-cols': {\n type: 'slide',\n perPage: 3,\n gap: 24,\n padding: { left: 0, right: 0 },\n arrows: false,\n breakpoints: {\n 768: {\n perPage: 1,\n gap: 24,\n padding: { left: 0, right: 0 },\n arrows: false,\n },\n 992: {\n perPage: 2,\n gap: 24,\n padding: { left: 40, right: 40 },\n arrows: false,\n },\n },\n },\n 'landscape-three-cols-arrows': {\n type: 'slide',\n perPage: 3,\n gap: 24,\n padding: { left: 0, right: 0 },\n arrows: true,\n breakpoints: {\n 768: {\n perPage: 1,\n gap: 24,\n padding: { left: 40, right: 40 },\n arrows: true,\n },\n 992: {\n perPage: 2,\n gap: 24,\n padding: { left: 40, right: 40 },\n arrows: true,\n },\n },\n },\n 'big-image': {\n type: 'loop',\n perPage: 1,\n gap: 48,\n padding: { left: 320, right: 320 },\n arrows: false,\n breakpoints: {\n 768: {\n perPage: 1,\n gap: 0,\n padding: { left: 0, right: 0 },\n arrows: false,\n },\n 992: {\n perPage: 1,\n gap: 24,\n padding: { left: 160, right: 160 },\n arrows: false,\n },\n },\n },\n 'standard-image': {\n type: 'loop',\n perPage: 3,\n gap: 24,\n padding: { left: 48, right: 48 },\n arrows: false,\n breakpoints: {\n 768: {\n perPage: 1,\n gap: 24,\n padding: { left: 40, right: 40 },\n arrows: false,\n },\n 992: {\n perPage: 2,\n gap: 24,\n padding: { left: 48, right: 48 },\n arrows: false,\n },\n },\n },\n 'landscape': {\n type: 'slide',\n perPage: 1,\n gap: 24,\n padding: { left: 0, right: 0 },\n arrows: false,\n breakpoints: {\n 768: {\n perPage: 1,\n gap: 24,\n padding: { left: 0, right: 0 },\n arrows: false,\n },\n 992: {\n perPage: 1,\n gap: 24,\n padding: { left: 24, right: 24 },\n arrows: false,\n },\n },\n },\n 'calendar-wrapper': {\n type: 'slide',\n perPage: 4,\n gap: 0,\n padding: { left: 0, right: 0 },\n arrows: false,\n breakpoints: {\n 560: {\n perPage: 1,\n gap: 0,\n padding: { left: 24, right: 24 },\n arrows: false,\n },\n 768: {\n perPage: 2,\n gap: 0,\n padding: { left: 0, right: 0 },\n arrows: false,\n },\n 992: {\n perPage: 3,\n gap: 0,\n padding: { left: 0, right: 0 },\n arrows: false,\n },\n },\n },\n}\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nconst EXTRA_CLASSES: any= {\n 'landscape-three-cols': [\n 'it-carousel-landscape-abstract-three-cols'\n ],\n 'landscape-three-cols-arrows': [\n 'it-carousel-landscape-abstract-three-cols-arrow-visible'\n ],\n 'big-image': [\n 'it-carousel-landscape-abstract-three-cols',\n 'it-full-carousel',\n 'it-big-img'\n ],\n 'standard-image': [\n 'it-carousel-landscape-abstract-three-cols',\n 'it-full-carousel',\n 'it-standard-image'\n ],\n 'landscape': [\n 'it-carousel-landscape-abstract'\n ],\n 'calendar-wrapper': [\n 'it-calendar-wrapper'\n ]\n}\n\nexport interface CarouselProps extends SplideProps {\n type: string;\n children?: React.ReactNode;\n}\n\n// Splide wrapper\nexport const Carousel: FC<CarouselProps> = ({\n className = '',\n type,\n children,\n ...attributes\n}) => {\n let conf = Object.assign({}, CONFIG_DEFAULT)\n if (['big-image', 'standard-image'].includes(type)){\n conf = Object.assign({}, conf, CONFIGS['landscape-three-cols'])\n }\n conf = Object.assign({}, conf, CONFIGS[type])\n return <Splide\n {...attributes}\n className={classNames('it-carousel-wrapper', className, ...EXTRA_CLASSES[type])}\n options={conf}>{children}</Splide>;\n};\n"],"mappings":"0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,cAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAA0B,sBAC1BC,EAAuB,2BAEvBC,EAAkC,kCAG5BC,EAAsB,CAC1B,WAAY,GACZ,OAAQ,GACR,QAAS,EACT,KAAM,CACJ,KAAM,mBACN,KAAM,mBACN,MAAO,uBACP,KAAM,4BACN,OAAQ,oBACR,MAAO,kBACP,KAAM,kBACN,MAAO,iBACP,SAAU,YACV,OAAQ,kCACR,MAAO,QACP,WAAY,UACd,CACF,EAGMC,EAAc,CAClB,uBAAwB,CACtB,KAAM,QACN,QAAS,EACT,IAAK,GACL,QAAS,CAAE,KAAM,EAAG,MAAO,CAAE,EAC7B,OAAQ,GACR,YAAa,CACX,IAAK,CACH,QAAS,EACT,IAAK,GACL,QAAS,CAAE,KAAM,EAAG,MAAO,CAAE,EAC7B,OAAQ,EACV,EACA,IAAK,CACH,QAAS,EACT,IAAK,GACL,QAAS,CAAE,KAAM,GAAI,MAAO,EAAG,EAC/B,OAAQ,EACV,CACF,CACF,EACA,8BAA+B,CAC7B,KAAM,QACN,QAAS,EACT,IAAK,GACL,QAAS,CAAE,KAAM,EAAG,MAAO,CAAE,EAC7B,OAAQ,GACR,YAAa,CACX,IAAK,CACH,QAAS,EACT,IAAK,GACL,QAAS,CAAE,KAAM,GAAI,MAAO,EAAG,EAC/B,OAA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ACA,IAAK,CACH,QAAS,EACT,IAAK,EACL,QAAS,CAAE,KAAM,EAAG,MAAO,CAAE,EAC7B,OAAQ,EACV,EACA,IAAK,CACH,QAAS,EACT,IAAK,EACL,QAAS,CAAE,KAAM,EAAG,MAAO,CAAE,EAC7B,OAAQ,EACV,CACF,CACF,CACF,EAGMC,EAAoB,CACxB,uBAAwB,CACtB,2CACF,EACA,8BAA+B,CAC7B,yDACF,EACA,YAAa,CACX,4CACA,mBACA,YACF,EACA,iBAAkB,CAChB,4CACA,mBACA,mBACF,EACA,UAAa,CACX,gCACF,EACA,mBAAoB,CAClB,qBACF,CACF,EAQaP,EAA8B,CAAC,CAC1C,UAAAQ,EAAY,GACZ,KAAAC,EACA,SAAAC,EACA,GAAGC,CACL,IAAM,CACJ,IAAIC,EAAO,OAAO,OAAO,CAAC,EAAGP,CAAc,EAC3C,MAAI,CAAC,YAAa,gBAAgB,EAAE,SAASI,CAAI,IAC/CG,EAAO,OAAO,OAAO,CAAC,EAAGA,EAAMN,EAAQ,sBAAsB,CAAC,GAEhEM,EAAO,OAAO,OAAO,CAAC,EAAGA,EAAMN,EAAQG,CAAI,CAAC,EACrC,EAAAI,QAAA,cAAC,UACL,GAAGF,EACJ,aAAW,EAAAG,SAAW,sBAAuBN,EAAW,GAAGD,EAAcE,CAAI,CAAC,EAC9E,QAASG,GAAOF,CAAS,CAC7B","names":["Carousel_exports","__export","Carousel","__toCommonJS","import_react","import_classnames","import_react_splide","CONFIG_DEFAULT","CONFIGS","EXTRA_CLASSES","className","type","children","attributes","conf","React","classNames"]}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import classNames from 'classnames';
|
|
3
|
+
import { Splide } from '@splidejs/react-splide';
|
|
4
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
5
|
+
const CONFIG_DEFAULT = {
|
|
6
|
+
slideFocus: false,
|
|
7
|
+
rewind: true,
|
|
8
|
+
perMove: 1,
|
|
9
|
+
i18n: {
|
|
10
|
+
prev: 'Slide precedente',
|
|
11
|
+
next: 'Slide successiva',
|
|
12
|
+
first: 'Vai alla prima slide',
|
|
13
|
+
last: 'Vai all’ultima slide',
|
|
14
|
+
slideX: 'Vai alla slide %s',
|
|
15
|
+
pageX: 'Vai a pagina %s',
|
|
16
|
+
play: 'Attiva autoplay',
|
|
17
|
+
pause: 'Pausa autoplay',
|
|
18
|
+
carousel: 'Carosello',
|
|
19
|
+
select: 'Seleziona una slide da mostrare',
|
|
20
|
+
slide: 'slide',
|
|
21
|
+
slideLabel: '%s di %s',
|
|
22
|
+
},
|
|
23
|
+
};
|
|
24
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
25
|
+
const CONFIGS = {
|
|
26
|
+
'landscape-three-cols': {
|
|
27
|
+
type: 'slide',
|
|
28
|
+
perPage: 3,
|
|
29
|
+
gap: 24,
|
|
30
|
+
padding: { left: 0, right: 0 },
|
|
31
|
+
arrows: false,
|
|
32
|
+
breakpoints: {
|
|
33
|
+
768: {
|
|
34
|
+
perPage: 1,
|
|
35
|
+
gap: 24,
|
|
36
|
+
padding: { left: 0, right: 0 },
|
|
37
|
+
arrows: false,
|
|
38
|
+
},
|
|
39
|
+
992: {
|
|
40
|
+
perPage: 2,
|
|
41
|
+
gap: 24,
|
|
42
|
+
padding: { left: 40, right: 40 },
|
|
43
|
+
arrows: false,
|
|
44
|
+
},
|
|
45
|
+
},
|
|
46
|
+
},
|
|
47
|
+
'landscape-three-cols-arrows': {
|
|
48
|
+
type: 'slide',
|
|
49
|
+
perPage: 3,
|
|
50
|
+
gap: 24,
|
|
51
|
+
padding: { left: 0, right: 0 },
|
|
52
|
+
arrows: true,
|
|
53
|
+
breakpoints: {
|
|
54
|
+
768: {
|
|
55
|
+
perPage: 1,
|
|
56
|
+
gap: 24,
|
|
57
|
+
padding: { left: 40, right: 40 },
|
|
58
|
+
arrows: true,
|
|
59
|
+
},
|
|
60
|
+
992: {
|
|
61
|
+
perPage: 2,
|
|
62
|
+
gap: 24,
|
|
63
|
+
padding: { left: 40, right: 40 },
|
|
64
|
+
arrows: true,
|
|
65
|
+
},
|
|
66
|
+
},
|
|
67
|
+
},
|
|
68
|
+
'big-image': {
|
|
69
|
+
type: 'loop',
|
|
70
|
+
perPage: 1,
|
|
71
|
+
gap: 48,
|
|
72
|
+
padding: { left: 320, right: 320 },
|
|
73
|
+
arrows: false,
|
|
74
|
+
breakpoints: {
|
|
75
|
+
768: {
|
|
76
|
+
perPage: 1,
|
|
77
|
+
gap: 0,
|
|
78
|
+
padding: { left: 0, right: 0 },
|
|
79
|
+
arrows: false,
|
|
80
|
+
},
|
|
81
|
+
992: {
|
|
82
|
+
perPage: 1,
|
|
83
|
+
gap: 24,
|
|
84
|
+
padding: { left: 160, right: 160 },
|
|
85
|
+
arrows: false,
|
|
86
|
+
},
|
|
87
|
+
},
|
|
88
|
+
},
|
|
89
|
+
'standard-image': {
|
|
90
|
+
type: 'loop',
|
|
91
|
+
perPage: 3,
|
|
92
|
+
gap: 24,
|
|
93
|
+
padding: { left: 48, right: 48 },
|
|
94
|
+
arrows: false,
|
|
95
|
+
breakpoints: {
|
|
96
|
+
768: {
|
|
97
|
+
perPage: 1,
|
|
98
|
+
gap: 24,
|
|
99
|
+
padding: { left: 40, right: 40 },
|
|
100
|
+
arrows: false,
|
|
101
|
+
},
|
|
102
|
+
992: {
|
|
103
|
+
perPage: 2,
|
|
104
|
+
gap: 24,
|
|
105
|
+
padding: { left: 48, right: 48 },
|
|
106
|
+
arrows: false,
|
|
107
|
+
},
|
|
108
|
+
},
|
|
109
|
+
},
|
|
110
|
+
'landscape': {
|
|
111
|
+
type: 'slide',
|
|
112
|
+
perPage: 1,
|
|
113
|
+
gap: 24,
|
|
114
|
+
padding: { left: 0, right: 0 },
|
|
115
|
+
arrows: false,
|
|
116
|
+
breakpoints: {
|
|
117
|
+
768: {
|
|
118
|
+
perPage: 1,
|
|
119
|
+
gap: 24,
|
|
120
|
+
padding: { left: 0, right: 0 },
|
|
121
|
+
arrows: false,
|
|
122
|
+
},
|
|
123
|
+
992: {
|
|
124
|
+
perPage: 1,
|
|
125
|
+
gap: 24,
|
|
126
|
+
padding: { left: 24, right: 24 },
|
|
127
|
+
arrows: false,
|
|
128
|
+
},
|
|
129
|
+
},
|
|
130
|
+
},
|
|
131
|
+
'calendar-wrapper': {
|
|
132
|
+
type: 'slide',
|
|
133
|
+
perPage: 4,
|
|
134
|
+
gap: 0,
|
|
135
|
+
padding: { left: 0, right: 0 },
|
|
136
|
+
arrows: false,
|
|
137
|
+
breakpoints: {
|
|
138
|
+
560: {
|
|
139
|
+
perPage: 1,
|
|
140
|
+
gap: 0,
|
|
141
|
+
padding: { left: 24, right: 24 },
|
|
142
|
+
arrows: false,
|
|
143
|
+
},
|
|
144
|
+
768: {
|
|
145
|
+
perPage: 2,
|
|
146
|
+
gap: 0,
|
|
147
|
+
padding: { left: 0, right: 0 },
|
|
148
|
+
arrows: false,
|
|
149
|
+
},
|
|
150
|
+
992: {
|
|
151
|
+
perPage: 3,
|
|
152
|
+
gap: 0,
|
|
153
|
+
padding: { left: 0, right: 0 },
|
|
154
|
+
arrows: false,
|
|
155
|
+
},
|
|
156
|
+
},
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
160
|
+
const EXTRA_CLASSES = {
|
|
161
|
+
'landscape-three-cols': [
|
|
162
|
+
'it-carousel-landscape-abstract-three-cols'
|
|
163
|
+
],
|
|
164
|
+
'landscape-three-cols-arrows': [
|
|
165
|
+
'it-carousel-landscape-abstract-three-cols-arrow-visible'
|
|
166
|
+
],
|
|
167
|
+
'big-image': [
|
|
168
|
+
'it-carousel-landscape-abstract-three-cols',
|
|
169
|
+
'it-full-carousel',
|
|
170
|
+
'it-big-img'
|
|
171
|
+
],
|
|
172
|
+
'standard-image': [
|
|
173
|
+
'it-carousel-landscape-abstract-three-cols',
|
|
174
|
+
'it-full-carousel',
|
|
175
|
+
'it-standard-image'
|
|
176
|
+
],
|
|
177
|
+
'landscape': [
|
|
178
|
+
'it-carousel-landscape-abstract'
|
|
179
|
+
],
|
|
180
|
+
'calendar-wrapper': [
|
|
181
|
+
'it-calendar-wrapper'
|
|
182
|
+
]
|
|
183
|
+
};
|
|
184
|
+
// Splide wrapper
|
|
185
|
+
export const Carousel = ({ className = '', type, children, ...attributes }) => {
|
|
186
|
+
let conf = Object.assign({}, CONFIG_DEFAULT);
|
|
187
|
+
if (['big-image', 'standard-image'].includes(type)) {
|
|
188
|
+
conf = Object.assign({}, conf, CONFIGS['landscape-three-cols']);
|
|
189
|
+
}
|
|
190
|
+
conf = Object.assign({}, conf, CONFIGS[type]);
|
|
191
|
+
return React.createElement(Splide, { ...attributes, className: classNames('it-carousel-wrapper', className, ...EXTRA_CLASSES[type]), options: conf }, children);
|
|
192
|
+
};
|
|
193
|
+
//# sourceMappingURL=Carousel.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Carousel.js","sourceRoot":"","sources":["../../src/Carousel/Carousel.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAa,MAAM,OAAO,CAAC;AAClC,OAAO,UAAU,MAAM,YAAY,CAAC;AAEpC,OAAO,EAAC,MAAM,EAAc,MAAM,wBAAwB,CAAA;AAE1D,8DAA8D;AAC9D,MAAM,cAAc,GAAQ;IAC1B,UAAU,EAAE,KAAK;IACjB,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,CAAC;IACV,IAAI,EAAE;QACJ,IAAI,EAAE,kBAAkB;QACxB,IAAI,EAAE,kBAAkB;QACxB,KAAK,EAAE,sBAAsB;QAC7B,IAAI,EAAE,sBAAsB;QAC5B,MAAM,EAAE,mBAAmB;QAC3B,KAAK,EAAE,iBAAiB;QACxB,IAAI,EAAE,iBAAiB;QACvB,KAAK,EAAE,gBAAgB;QACvB,QAAQ,EAAE,WAAW;QACrB,MAAM,EAAE,iCAAiC;QACzC,KAAK,EAAE,OA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3C,kBAAkB;QAClB,YAAY;KACb;IACD,gBAAgB,EAAE;QAChB,2CAA2C;QAC3C,kBAAkB;QAClB,mBAAmB;KACpB;IACD,WAAW,EAAE;QACX,gCAAgC;KACjC;IACD,kBAAkB,EAAE;QAClB,qBAAqB;KACtB;CACF,CAAA;AAOD,iBAAiB;AACjB,MAAM,CAAC,MAAM,QAAQ,GAAsB,CAAC,EAC1C,SAAS,GAAG,EAAE,EACd,IAAI,EACJ,QAAQ,EACR,GAAG,UAAU,EACd,EAAE,EAAE;IACH,IAAI,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,cAAc,CAAC,CAAA;IAC5C,IAAI,CAAC,WAAW,EAAE,gBAAgB,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAC,CAAC;QAClD,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,sBAAsB,CAAC,CAAC,CAAA;IACjE,CAAC;IACD,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAA;IAC7C,OAAO,oBAAC,MAAM,OACR,UAAU,EACd,SAAS,EAAE,UAAU,CAAC,qBAAqB,EAAE,SAAS,EAAE,GAAG,aAAa,CAAC,IAAI,CAAC,CAAC,EAC/E,OAAO,EAAE,IAAI,IAAG,QAAQ,CAAU,CAAC;AACvC,CAAC,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";var m=Object.create;var d=Object.defineProperty;var n=Object.getOwnPropertyDescriptor;var S=Object.getOwnPropertyNames;var a=Object.getPrototypeOf,c=Object.prototype.hasOwnProperty;var f=(i,e)=>{for(var l in e)d(i,l,{get:e[l],enumerable:!0})},o=(i,e,l,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of S(e))!c.call(i,r)&&r!==l&&d(i,r,{get:()=>e[r],enumerable:!(t=n(e,r))||t.enumerable});return i};var u=(i,e,l)=>(l=i!=null?m(a(i)):{},o(e||!i||!i.__esModule?d(l,"default",{value:i,enumerable:!0}):l,i)),v=i=>o(d({},"__esModule",{value:!0}),i);var g={};f(g,{CarouselSlide:()=>C});module.exports=v(g);var s=u(require("react"),1),p=require("@splidejs/react-splide"),C=({children:i})=>s.default.createElement(p.SplideSlide,null,s.default.createElement("div",{className:"it-single-slide-wrapper"},i));0&&(module.exports={CarouselSlide});
|
|
2
|
+
//# sourceMappingURL=CarouselSlide.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/Carousel/CarouselSlide.tsx"],"sourcesContent":["import React from 'react';\nimport {SplideSlide} from '@splidejs/react-splide'\n\n// Splide wrapper\nexport const CarouselSlide: React.FC<JSX.IntrinsicElements['li']> = ({\n children,\n}) => {\n\n return <SplideSlide>\n <div className='it-single-slide-wrapper'>\n {children}\n </div>\n </SplideSlide>;\n};\n"],"mappings":"0jBAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,mBAAAE,IAAA,eAAAC,EAAAH,GAAA,IAAAI,EAAkB,sBAClBC,EAA0B,kCAGbH,EAAuD,CAAC,CACnE,SAAAI,CACF,IAES,EAAAC,QAAA,cAAC,mBACN,EAAAA,QAAA,cAAC,OAAI,UAAU,2BACZD,CACH,CACF","names":["CarouselSlide_exports","__export","CarouselSlide","__toCommonJS","import_react","import_react_splide","children","React"]}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { SplideSlide } from '@splidejs/react-splide';
|
|
3
|
+
// Splide wrapper
|
|
4
|
+
export const CarouselSlide = ({ children, }) => {
|
|
5
|
+
return React.createElement(SplideSlide, null,
|
|
6
|
+
React.createElement("div", { className: 'it-single-slide-wrapper' }, children));
|
|
7
|
+
};
|
|
8
|
+
//# sourceMappingURL=CarouselSlide.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CarouselSlide.js","sourceRoot":"","sources":["../../src/Carousel/CarouselSlide.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,WAAW,EAAC,MAAM,wBAAwB,CAAA;AAElD,iBAAiB;AACjB,MAAM,CAAC,MAAM,aAAa,GAA0C,CAAC,EACnE,QAAQ,GACT,EAAE,EAAE;IAEH,OAAO,oBAAC,WAAW;QACjB,6BAAK,SAAS,EAAC,yBAAyB,IACrC,QAAQ,CACL,CACM,CAAC;AACjB,CAAC,CAAC"}
|