design-react-kit 5.0.0-0 → 5.0.0-1

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.
Files changed (43) hide show
  1. package/dist/cjs/ItFilePpt-416433f2.js +2 -0
  2. package/dist/cjs/ItFilePpt-416433f2.js.map +1 -0
  3. package/dist/cjs/ItMoodle-49b00c1d.js +2 -0
  4. package/dist/cjs/ItMoodle-49b00c1d.js.map +1 -0
  5. package/dist/cjs/ItMoodleSquare-4a712f4d.js +2 -0
  6. package/dist/cjs/ItMoodleSquare-4a712f4d.js.map +1 -0
  7. package/dist/cjs/index.js +1 -1
  8. package/dist/cjs/index.js.map +1 -1
  9. package/dist/esm/ItFilePpt-c49636d1.js +27 -0
  10. package/dist/esm/ItFilePpt-c49636d1.js.map +1 -0
  11. package/dist/esm/ItMoodle-e5b95396.js +27 -0
  12. package/dist/esm/ItMoodle-e5b95396.js.map +1 -0
  13. package/dist/esm/ItMoodleSquare-e8bd4c5a.js +30 -0
  14. package/dist/esm/ItMoodleSquare-e8bd4c5a.js.map +1 -0
  15. package/dist/esm/index.js +321 -210
  16. package/dist/esm/index.js.map +1 -1
  17. package/dist/types/BackToTop/BackToTop.d.ts +23 -0
  18. package/dist/types/Callout/CalloutMoreFooter.d.ts +10 -0
  19. package/dist/types/Card/Card.d.ts +2 -0
  20. package/dist/types/Icon/assets/ItFilePpt.d.ts +7 -0
  21. package/dist/types/Icon/assets/ItMoodle.d.ts +7 -0
  22. package/dist/types/Icon/assets/ItMoodleSquare.d.ts +7 -0
  23. package/dist/types/ItFilePpt-416433f2.js +32 -0
  24. package/dist/types/ItFilePpt-416433f2.js.map +1 -0
  25. package/dist/types/ItMoodle-49b00c1d.js +32 -0
  26. package/dist/types/ItMoodle-49b00c1d.js.map +1 -0
  27. package/dist/types/ItMoodleSquare-4a712f4d.js +35 -0
  28. package/dist/types/ItMoodleSquare-4a712f4d.js.map +1 -0
  29. package/dist/types/index.d.ts +2 -0
  30. package/dist/types/index.js +320 -207
  31. package/dist/types/index.js.map +1 -1
  32. package/package.json +2 -2
  33. package/src/Accordion/AccordionHeader.tsx +1 -1
  34. package/src/BackToTop/BackToTop.tsx +76 -0
  35. package/src/Breadcrumb/Breadcrumb.tsx +2 -2
  36. package/src/Callout/Callout.tsx +5 -1
  37. package/src/Callout/CalloutMoreFooter.tsx +65 -0
  38. package/src/Card/Card.tsx +10 -1
  39. package/src/Icon/assets/ItFilePpt.tsx +30 -0
  40. package/src/Icon/assets/ItMoodle.tsx +31 -0
  41. package/src/Icon/assets/ItMoodleSquare.tsx +32 -0
  42. package/src/Icon/assets/index.ts +12 -0
  43. package/src/index.tsx +2 -0
@@ -0,0 +1,27 @@
1
+ import { createElement } from 'react';
2
+
3
+ const component = _ref => {
4
+ let {
5
+ title,
6
+ titleId,
7
+ ...props
8
+ } = _ref;
9
+ return createElement("svg", Object.assign({
10
+ width: 24,
11
+ height: 24,
12
+ viewBox: '0 0 24 24',
13
+ fill: 'none',
14
+ xmlns: 'http://www.w3.org/2000/svg',
15
+ "aria-labelledby": titleId
16
+ }, props), title ? createElement("title", {
17
+ id: titleId
18
+ }, title) : null, createElement("path", {
19
+ clipRule: 'evenodd',
20
+ d: 'M14.7 2H6.5A1.5 1.5 0 0 0 5 3.5V16h1V3.5a.5.5 0 0 1 .5-.5H14v2.5A1.5 1.5 0 0 0 15.5 7H18v13.5a.5.5 0 0 1-.5.5H15v1h2.5a1.5 1.5 0 0 0 1.5-1.5V6.3L14.7 2Zm.3 1.7L17.3 6h-1.8a.5.5 0 0 1-.5-.5V3.7Z'
21
+ }), createElement("path", {
22
+ d: 'M4.825 20.519h-.818v1.445H3V17h1.825c1.178 0 1.767.574 1.767 1.723 0 .579-.151 1.024-.453 1.336-.297.306-.735.46-1.314.46Zm-.818-.862h.81c.502 0 .753-.311.753-.934 0-.307-.061-.526-.183-.657-.122-.136-.311-.205-.57-.205h-.81v1.796ZM9.124 20.519h-.818v1.445H7.3V17h1.825c1.178 0 1.766.574 1.766 1.723 0 .579-.15 1.024-.452 1.336-.297.306-.735.46-1.314.46Zm-.818-.862h.81c.502 0 .752-.311.752-.934 0-.307-.06-.526-.182-.657-.122-.136-.312-.205-.57-.205h-.81v1.796ZM11.152 17.89V17h3.65v.89h-1.314v4.074h-1.007v-4.073h-1.329Z'
23
+ }));
24
+ };
25
+
26
+ export { component };
27
+ //# sourceMappingURL=ItFilePpt-c49636d1.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItFilePpt-c49636d1.js","sources":["../../src/Icon/assets/ItFilePpt.tsx"],"sourcesContent":["import * as React from 'react';\nimport { SVGProps } from 'react';\ninterface SVGRProps {\n title?: string;\n titleId?: string;\n}\nexport const component = ({\n title,\n titleId,\n ...props\n}: SVGProps<SVGSVGElement> & SVGRProps) => {\n return (\n <svg\n width={24}\n height={24}\n viewBox='0 0 24 24'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby={titleId}\n {...props}\n >\n {title ? <title id={titleId}>{title}</title> : null}\n <path\n clipRule='evenodd'\n d='M14.7 2H6.5A1.5 1.5 0 0 0 5 3.5V16h1V3.5a.5.5 0 0 1 .5-.5H14v2.5A1.5 1.5 0 0 0 15.5 7H18v13.5a.5.5 0 0 1-.5.5H15v1h2.5a1.5 1.5 0 0 0 1.5-1.5V6.3L14.7 2Zm.3 1.7L17.3 6h-1.8a.5.5 0 0 1-.5-.5V3.7Z'\n />\n <path d='M4.825 20.519h-.818v1.445H3V17h1.825c1.178 0 1.767.574 1.767 1.723 0 .579-.151 1.024-.453 1.336-.297.306-.735.46-1.314.46Zm-.818-.862h.81c.502 0 .753-.311.753-.934 0-.307-.061-.526-.183-.657-.122-.136-.311-.205-.57-.205h-.81v1.796ZM9.124 20.519h-.818v1.445H7.3V17h1.825c1.178 0 1.766.574 1.766 1.723 0 .579-.15 1.024-.452 1.336-.297.306-.735.46-1.314.46Zm-.818-.862h.81c.502 0 .752-.311.752-.934 0-.307-.06-.526-.182-.657-.122-.136-.312-.205-.57-.205h-.81v1.796ZM11.152 17.89V17h3.65v.89h-1.314v4.074h-1.007v-4.073h-1.329Z' />\n </svg>\n );\n};\n"],"names":["component","title","titleId","props","React","width","height","viewBox","fill","xmlns","id","clipRule","d"],"mappings":";;MAMaA,SAAS,GAAG;MAAC;IACxBC,KAAK;IACLC,OAAO;IACP,GAAGC;GACiC;EACpC,OACEC;IACEC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,OAAO,EAAC,WAAW;IACnBC,IAAI,EAAC,MAAM;IACXC,KAAK,EAAC,4BAA4B;uBACjBP;KACbC,KAAK,GAERF,KAAK,GAAGG;IAAOM,EAAE,EAAER;KAAUD,KAAK,CAAS,GAAG,IAAI,EACnDG;IACEO,QAAQ,EAAC,SAAS;IAClBC,CAAC,EAAC;IACF,EACFR;IAAMQ,CAAC,EAAC;IAA+gB,CACnhB;AAEV;;;;"}
@@ -0,0 +1,27 @@
1
+ import { createElement } from 'react';
2
+
3
+ const component = _ref => {
4
+ let {
5
+ title,
6
+ titleId,
7
+ ...props
8
+ } = _ref;
9
+ return createElement("svg", Object.assign({
10
+ width: 24,
11
+ height: 24,
12
+ viewBox: '0 0 24 24',
13
+ fill: 'none',
14
+ xmlns: 'http://www.w3.org/2000/svg',
15
+ "aria-labelledby": titleId
16
+ }, props), title ? createElement("title", {
17
+ id: titleId
18
+ }, title) : null, createElement("path", {
19
+ fillRule: 'evenodd',
20
+ clipRule: 'evenodd',
21
+ d: 'm14.556 6-6.223.444L3 9.556h1.333v4.095c-.258.214-.444.784-.444 1.46 0 .86.299 1.556.667 1.556.368 0 .666-.475.666-1.334 0-.676-.186-1.382-.444-1.655V9.556h4.889L14.556 6ZM12.11 8.222 9.89 10H6.333c-.043.216-.055.208-.055.436 0 .23.023.457.068.674.124-.004 2.654-.221 3.996.89.26-.788.982-1.8 2.007-2.72.094-.085.112-.09.207-.169 0-.444-.205-.632-.445-.889Zm3.778.445a3.977 3.977 0 0 0-2.667 1.03c-.134-.12-.28-.228-.43-.33-.055.047-.11.094-.165.143-.723.648-1.29 1.342-1.656 1.972.539.244.918.78.918 1.407V18h2.667v-5.111c0-.856.7-1.556 1.555-1.556.856 0 1.556.7 1.556 1.556V18h2.666v-5.333c0-2.2-1.8-4-4-4h-.444ZM6.346 11.34a3.938 3.938 0 0 0-.235 1.327V18h2.667v-5.111c0-.385.148-.732.383-1.003-.685-.315-1.686-.52-2.815-.546Z',
22
+ fill: '#000'
23
+ }));
24
+ };
25
+
26
+ export { component };
27
+ //# sourceMappingURL=ItMoodle-e5b95396.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItMoodle-e5b95396.js","sources":["../../src/Icon/assets/ItMoodle.tsx"],"sourcesContent":["import * as React from 'react';\nimport { SVGProps } from 'react';\ninterface SVGRProps {\n title?: string;\n titleId?: string;\n}\nexport const component = ({\n title,\n titleId,\n ...props\n}: SVGProps<SVGSVGElement> & SVGRProps) => {\n return (\n <svg\n width={24}\n height={24}\n viewBox='0 0 24 24'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby={titleId}\n {...props}\n >\n {title ? <title id={titleId}>{title}</title> : null}\n <path\n fillRule='evenodd'\n clipRule='evenodd'\n d='m14.556 6-6.223.444L3 9.556h1.333v4.095c-.258.214-.444.784-.444 1.46 0 .86.299 1.556.667 1.556.368 0 .666-.475.666-1.334 0-.676-.186-1.382-.444-1.655V9.556h4.889L14.556 6ZM12.11 8.222 9.89 10H6.333c-.043.216-.055.208-.055.436 0 .23.023.457.068.674.124-.004 2.654-.221 3.996.89.26-.788.982-1.8 2.007-2.72.094-.085.112-.09.207-.169 0-.444-.205-.632-.445-.889Zm3.778.445a3.977 3.977 0 0 0-2.667 1.03c-.134-.12-.28-.228-.43-.33-.055.047-.11.094-.165.143-.723.648-1.29 1.342-1.656 1.972.539.244.918.78.918 1.407V18h2.667v-5.111c0-.856.7-1.556 1.555-1.556.856 0 1.556.7 1.556 1.556V18h2.666v-5.333c0-2.2-1.8-4-4-4h-.444ZM6.346 11.34a3.938 3.938 0 0 0-.235 1.327V18h2.667v-5.111c0-.385.148-.732.383-1.003-.685-.315-1.686-.52-2.815-.546Z'\n fill='#000'\n />\n </svg>\n );\n};\n"],"names":["component","title","titleId","props","React","width","height","viewBox","fill","xmlns","id","fillRule","clipRule","d"],"mappings":";;MAMaA,SAAS,GAAG;MAAC;IACxBC,KAAK;IACLC,OAAO;IACP,GAAGC;GACiC;EACpC,OACEC;IACEC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,OAAO,EAAC,WAAW;IACnBC,IAAI,EAAC,MAAM;IACXC,KAAK,EAAC,4BAA4B;uBACjBP;KACbC,KAAK,GAERF,KAAK,GAAGG;IAAOM,EAAE,EAAER;KAAUD,KAAK,CAAS,GAAG,IAAI,EACnDG;IACEO,QAAQ,EAAC,SAAS;IAClBC,QAAQ,EAAC,SAAS;IAClBC,CAAC,EAAC,2tBAA2tB;IAC7tBL,IAAI,EAAC;IACL,CACE;AAEV;;;;"}
@@ -0,0 +1,30 @@
1
+ import { createElement } from 'react';
2
+
3
+ const component = _ref => {
4
+ let {
5
+ title,
6
+ titleId,
7
+ ...props
8
+ } = _ref;
9
+ return createElement("svg", Object.assign({
10
+ width: 24,
11
+ height: 24,
12
+ viewBox: '0 0 24 24',
13
+ fill: 'none',
14
+ xmlns: 'http://www.w3.org/2000/svg',
15
+ "aria-labelledby": titleId
16
+ }, props), title ? createElement("title", {
17
+ id: titleId
18
+ }, title) : null, createElement("path", {
19
+ fill: '#fff',
20
+ d: 'M0 0h24v24H0z'
21
+ }), createElement("path", {
22
+ fillRule: 'evenodd',
23
+ clipRule: 'evenodd',
24
+ d: 'M3.566 1.33h16.761a2.286 2.286 0 0 1 2.286 2.286v16.762a2.286 2.286 0 0 1-2.286 2.285H3.565a2.286 2.286 0 0 1-2.285-2.285V3.616A2.286 2.286 0 0 1 3.565 1.33Zm4.767 5.444 6.222-.444-4.889 3.556H4.778v4.122c.258.273.444.979.444 1.655 0 .86-.299 1.334-.667 1.334-.368 0-.666-.697-.666-1.556 0-.676.186-1.246.444-1.46V9.886H3l5.333-3.112ZM9.89 10.33l2.222-1.778.045.049c.22.233.4.424.4.84l-.09.072c-.034.025-.063.047-.117.097-1.025.92-1.747 1.932-2.007 2.72-1.277-1.057-3.627-.912-3.96-.892l-.036.002a3.337 3.337 0 0 1-.068-.674c0-.18.007-.213.031-.323l.024-.113H9.89Zm3.333-.302a3.977 3.977 0 0 1 2.667-1.031h.444c2.2 0 4 1.8 4 4v5.333h-2.666v-5.111c0-.856-.7-1.556-1.556-1.556-.856 0-1.556.7-1.556 1.556v5.111H11.89v-5.111c0-.627-.38-1.163-.918-1.407.366-.63.933-1.324 1.655-1.972l.113-.098.052-.045c.15.102.296.21.431.33Zm-7.111 2.969c0-.466.087-.91.235-1.327 1.129.026 2.13.23 2.814.546-.234.271-.382.618-.382 1.003v5.111H6.11v-5.333Z',
25
+ fill: '#1E1E1E'
26
+ }));
27
+ };
28
+
29
+ export { component };
30
+ //# sourceMappingURL=ItMoodleSquare-e8bd4c5a.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ItMoodleSquare-e8bd4c5a.js","sources":["../../src/Icon/assets/ItMoodleSquare.tsx"],"sourcesContent":["import * as React from 'react';\nimport { SVGProps } from 'react';\ninterface SVGRProps {\n title?: string;\n titleId?: string;\n}\nexport const component = ({\n title,\n titleId,\n ...props\n}: SVGProps<SVGSVGElement> & SVGRProps) => {\n return (\n <svg\n width={24}\n height={24}\n viewBox='0 0 24 24'\n fill='none'\n xmlns='http://www.w3.org/2000/svg'\n aria-labelledby={titleId}\n {...props}\n >\n {title ? <title id={titleId}>{title}</title> : null}\n <path fill='#fff' d='M0 0h24v24H0z' />\n <path\n fillRule='evenodd'\n clipRule='evenodd'\n d='M3.566 1.33h16.761a2.286 2.286 0 0 1 2.286 2.286v16.762a2.286 2.286 0 0 1-2.286 2.285H3.565a2.286 2.286 0 0 1-2.285-2.285V3.616A2.286 2.286 0 0 1 3.565 1.33Zm4.767 5.444 6.222-.444-4.889 3.556H4.778v4.122c.258.273.444.979.444 1.655 0 .86-.299 1.334-.667 1.334-.368 0-.666-.697-.666-1.556 0-.676.186-1.246.444-1.46V9.886H3l5.333-3.112ZM9.89 10.33l2.222-1.778.045.049c.22.233.4.424.4.84l-.09.072c-.034.025-.063.047-.117.097-1.025.92-1.747 1.932-2.007 2.72-1.277-1.057-3.627-.912-3.96-.892l-.036.002a3.337 3.337 0 0 1-.068-.674c0-.18.007-.213.031-.323l.024-.113H9.89Zm3.333-.302a3.977 3.977 0 0 1 2.667-1.031h.444c2.2 0 4 1.8 4 4v5.333h-2.666v-5.111c0-.856-.7-1.556-1.556-1.556-.856 0-1.556.7-1.556 1.556v5.111H11.89v-5.111c0-.627-.38-1.163-.918-1.407.366-.63.933-1.324 1.655-1.972l.113-.098.052-.045c.15.102.296.21.431.33Zm-7.111 2.969c0-.466.087-.91.235-1.327 1.129.026 2.13.23 2.814.546-.234.271-.382.618-.382 1.003v5.111H6.11v-5.333Z'\n fill='#1E1E1E'\n />\n </svg>\n );\n};\n"],"names":["component","title","titleId","props","React","width","height","viewBox","fill","xmlns","id","d","fillRule","clipRule"],"mappings":";;MAMaA,SAAS,GAAG;MAAC;IACxBC,KAAK;IACLC,OAAO;IACP,GAAGC;GACiC;EACpC,OACEC;IACEC,KAAK,EAAE,EAAE;IACTC,MAAM,EAAE,EAAE;IACVC,OAAO,EAAC,WAAW;IACnBC,IAAI,EAAC,MAAM;IACXC,KAAK,EAAC,4BAA4B;uBACjBP;KACbC,KAAK,GAERF,KAAK,GAAGG;IAAOM,EAAE,EAAER;KAAUD,KAAK,CAAS,GAAG,IAAI,EACnDG;IAAMI,IAAI,EAAC,MAAM;IAACG,CAAC,EAAC;IAAkB,EACtCP;IACEQ,QAAQ,EAAC,SAAS;IAClBC,QAAQ,EAAC,SAAS;IAClBF,CAAC,EAAC,w6BAAw6B;IAC16BH,IAAI,EAAC;IACL,CACE;AAEV;;;;"}
package/dist/esm/index.js CHANGED
@@ -1,7 +1,7 @@
1
- import { Alert as Alert$1, Badge as Badge$1, Breadcrumb as Breadcrumb$1, Button as Button$1, Card as Card$1, CardBody as CardBody$1, CardTitle as CardTitle$1, CardText as CardText$1, Collapse as Collapse$1, NavbarBrand, Navbar, Container, Row, Col, NavbarToggler, Nav as Nav$1, UncontrolledDropdown, DropdownToggle, DropdownMenu, Modal as Modal$1, ModalBody as ModalBody$1, ModalFooter as ModalFooter$1, FormGroup, Label, Input as Input$1, Dropdown } from 'reactstrap';
1
+ import { Alert as Alert$1, Button as Button$1, Badge as Badge$1, Breadcrumb as Breadcrumb$1, Card as Card$1, CardBody as CardBody$1, CardTitle as CardTitle$1, CardText as CardText$1, Collapse as Collapse$1, NavbarBrand, Navbar, Container, Row, Col, NavbarToggler, Nav as Nav$1, UncontrolledDropdown, DropdownToggle, DropdownMenu, Modal as Modal$1, ModalBody as ModalBody$1, ModalFooter as ModalFooter$1, FormGroup, Label, Input as Input$1, Dropdown } from 'reactstrap';
2
2
  export { BreadcrumbItem, ButtonDropdown, ButtonGroup, ButtonToolbar, CardColumns, CardDeck, CardFooter, CardGroup, CardHeader, CardImg, CardImgOverlay, CardLink, CardSubtitle, Col, Container, Dropdown, DropdownItem, DropdownMenu, DropdownToggle, Fade, Form, FormFeedback, FormGroup, FormText, InputGroup, InputGroupText, Label, ListGroup, ListGroupItem, ListGroupItemHeading, ListGroupItemText, Media, NavItem, NavLink, Navbar, NavbarBrand, NavbarToggler, PaginationItem as PagerItem, PaginationLink as PagerLink, Popover, PopoverBody, PopoverHeader, Row, TabContent, TabPane, Table, Tooltip, UncontrolledAlert, UncontrolledButtonDropdown, UncontrolledCollapse, UncontrolledDropdown, UncontrolledTooltip, Util } from 'reactstrap';
3
3
  export { useNavScroll } from 'react-use-navscroll';
4
- import React__default, { useState, useCallback, useEffect, createContext, useContext, Fragment } from 'react';
4
+ import React__default, { useState, useCallback, useEffect, useLayoutEffect, createContext, useContext, Fragment } from 'react';
5
5
  import classNames from 'classnames';
6
6
  import { Transition } from 'react-transition-group';
7
7
  import { StickyProvider, Sticky } from 'react-stickup';
@@ -71,7 +71,7 @@ const AccordionHeader = _ref => {
71
71
  } = _ref;
72
72
  const Tag = tag;
73
73
  const toggleClasses = classNames(className, 'accordion-button', {
74
- collapsed: active
74
+ collapsed: !active
75
75
  });
76
76
  return React__default.createElement("div", {
77
77
  className: 'accordion-header',
@@ -362,212 +362,6 @@ const AvatarWrapper = _ref => {
362
362
  }));
363
363
  };
364
364
 
365
- const Badge = _ref => {
366
- let {
367
- color = 'secondary',
368
- pill = false,
369
- tag = 'span',
370
- children,
371
- testId,
372
- ...attributes
373
- } = _ref;
374
- return React__default.createElement(Badge$1, Object.assign({
375
- color: color,
376
- pill: pill,
377
- tag: tag
378
- }, attributes, {
379
- "data-testid": testId
380
- }), children);
381
- };
382
-
383
- const Breadcrumb = _ref => {
384
- let {
385
- className,
386
- listClassName,
387
- dark,
388
- 'aria-label': label,
389
- testId,
390
- ...attributes
391
- } = _ref;
392
- const classes = classNames(className, 'breadcrumb-container');
393
- const listClasses = classNames(listClassName, {
394
- dark
395
- });
396
- const ariaLabel = label ?? 'breadcrumb';
397
- return React__default.createElement(Breadcrumb$1, Object.assign({
398
- className: classes,
399
- listClassName: listClasses,
400
- "aria-label": ariaLabel,
401
- "data-testid": testId
402
- }, attributes));
403
- };
404
-
405
- const Button = _ref => {
406
- let {
407
- tag = 'button',
408
- icon = false,
409
- color = '',
410
- className,
411
- testId,
412
- ...attributes
413
- } = _ref;
414
- const classes = classNames(className, {
415
- 'btn-icon': icon
416
- });
417
- const ariaAttributes = {
418
- ...(attributes.disabled && {
419
- 'aria-disabled': true
420
- })
421
- };
422
- const baseProps = {
423
- color,
424
- tag
425
- };
426
- return React__default.createElement(Button$1, Object.assign({
427
- className: classes,
428
- "data-testid": testId
429
- }, baseProps, attributes, ariaAttributes));
430
- };
431
-
432
- const Forward = _ref => {
433
- let {
434
- className,
435
- scrollToRef,
436
- children,
437
- testId,
438
- ...attributes
439
- } = _ref;
440
- const classes = classNames(className, 'forward');
441
- return React__default.createElement("a", Object.assign({
442
- className: classes,
443
- onClick: () => {
444
- var _scrollToRef$current;
445
- return (_scrollToRef$current = scrollToRef.current) == null ? void 0 : _scrollToRef$current.scrollIntoView({
446
- behavior: 'smooth',
447
- block: 'start'
448
- });
449
- },
450
- "data-testid": testId
451
- }, attributes), children);
452
- };
453
-
454
- const Callout = _ref => {
455
- let {
456
- children,
457
- color = '',
458
- highlight = false,
459
- className,
460
- detailed,
461
- tag = 'div',
462
- testId,
463
- ...attributes
464
- } = _ref;
465
- const Tag = tag;
466
- const classes = classNames(className, color, 'callout', {
467
- 'callout-highlight': highlight,
468
- 'callout-more': detailed
469
- });
470
- return React__default.createElement(Tag, Object.assign({
471
- className: classes
472
- }, attributes, {
473
- "data-testid": testId
474
- }), children);
475
- };
476
-
477
- const CalloutText = _ref => {
478
- let {
479
- bigText = false,
480
- children,
481
- className,
482
- tag = 'p',
483
- testId,
484
- ...attributes
485
- } = _ref;
486
- const Tag = tag;
487
- const classes = classNames(className, {
488
- 'callout-big-text': bigText
489
- });
490
- return React__default.createElement(Tag, Object.assign({
491
- className: classes
492
- }, attributes, {
493
- "data-testid": testId
494
- }), children);
495
- };
496
-
497
- const CalloutTitle = _ref => {
498
- let {
499
- children,
500
- className,
501
- tag = 'div',
502
- testId,
503
- ...attributes
504
- } = _ref;
505
- const Tag = tag;
506
- const classes = classNames(className, 'callout-title');
507
- return React__default.createElement(Tag, Object.assign({
508
- className: classes
509
- }, attributes, {
510
- "data-testid": testId
511
- }), children);
512
- };
513
-
514
- const Card = _ref => {
515
- let {
516
- tag = 'div',
517
- teaser,
518
- spacing,
519
- noWrapper = false,
520
- wrapperClassName,
521
- testId,
522
- ...attributes
523
- } = _ref;
524
- const wrapperClasses = classNames('card-wrapper', wrapperClassName, {
525
- 'card-space': spacing,
526
- 'card-teaser-wrapper': teaser
527
- });
528
- const cardClasses = classNames(attributes.className, {
529
- 'card-teaser': teaser
530
- });
531
- if (noWrapper) {
532
- return React__default.createElement(Card$1, Object.assign({}, attributes, {
533
- className: cardClasses,
534
- tag: tag,
535
- "data-testid": testId
536
- }));
537
- }
538
- return React__default.createElement("div", {
539
- className: wrapperClasses,
540
- "data-testid": testId
541
- }, React__default.createElement(Card$1, Object.assign({}, attributes, {
542
- className: cardClasses,
543
- tag: tag
544
- })));
545
- };
546
-
547
- const CardBody = _ref => {
548
- let {
549
- tag = 'div',
550
- testId,
551
- ...props
552
- } = _ref;
553
- return React__default.createElement(CardBody$1, Object.assign({}, props, {
554
- tag: tag,
555
- "data-testid": testId
556
- }));
557
- };
558
-
559
- const CardTitle = props => {
560
- return React__default.createElement(CardTitle$1, Object.assign({}, props, {
561
- "data-testid": props.testId
562
- }));
563
- };
564
-
565
- const CardText = props => {
566
- return React__default.createElement(CardText$1, Object.assign({}, props, {
567
- "data-testid": props.testId
568
- }));
569
- };
570
-
571
365
  const iconList = {
572
366
  'it-arrow-down-circle': true,
573
367
  'it-arrow-down-triangle': true,
@@ -623,6 +417,7 @@ const iconList = {
623
417
  'it-file-odt': true,
624
418
  'it-file-pdf-ext': true,
625
419
  'it-file-pdf': true,
420
+ 'it-file-ppt': true,
626
421
  'it-file-sheet': true,
627
422
  'it-file-slides': true,
628
423
  'it-file-txt': true,
@@ -669,6 +464,8 @@ const iconList = {
669
464
  'it-minimize': true,
670
465
  'it-minus-circle': true,
671
466
  'it-minus': true,
467
+ 'it-moodle-square': true,
468
+ 'it-moodle': true,
672
469
  'it-more-actions': true,
673
470
  'it-more-items': true,
674
471
  'it-note': true,
@@ -949,6 +746,10 @@ const loadIcon = name => {
949
746
  {
950
747
  return import('./ItFilePdf-92aa9158.js');
951
748
  }
749
+ case 'it-file-ppt':
750
+ {
751
+ return import('./ItFilePpt-c49636d1.js');
752
+ }
952
753
  case 'it-file-sheet':
953
754
  {
954
755
  return import('./ItFileSheet-06e138cd.js');
@@ -1133,6 +934,14 @@ const loadIcon = name => {
1133
934
  {
1134
935
  return import('./ItMinus-ce118cf3.js');
1135
936
  }
937
+ case 'it-moodle-square':
938
+ {
939
+ return import('./ItMoodleSquare-e8bd4c5a.js');
940
+ }
941
+ case 'it-moodle':
942
+ {
943
+ return import('./ItMoodle-e5b95396.js');
944
+ }
1136
945
  case 'it-more-actions':
1137
946
  {
1138
947
  return import('./ItMoreActions-0273bbe8.js');
@@ -1501,6 +1310,308 @@ const Icon = _ref2 => {
1501
1310
  }, attributes));
1502
1311
  };
1503
1312
 
1313
+ const Button = _ref => {
1314
+ let {
1315
+ tag = 'button',
1316
+ icon = false,
1317
+ color = '',
1318
+ className,
1319
+ testId,
1320
+ ...attributes
1321
+ } = _ref;
1322
+ const classes = classNames(className, {
1323
+ 'btn-icon': icon
1324
+ });
1325
+ const ariaAttributes = {
1326
+ ...(attributes.disabled && {
1327
+ 'aria-disabled': true
1328
+ })
1329
+ };
1330
+ const baseProps = {
1331
+ color,
1332
+ tag
1333
+ };
1334
+ return React__default.createElement(Button$1, Object.assign({
1335
+ className: classes,
1336
+ "data-testid": testId
1337
+ }, baseProps, attributes, ariaAttributes));
1338
+ };
1339
+
1340
+ const backToTop = () => {
1341
+ window.scrollTo({
1342
+ top: 0,
1343
+ behavior: 'smooth'
1344
+ });
1345
+ };
1346
+ const BackToTop = _ref => {
1347
+ let {
1348
+ className,
1349
+ dark = false,
1350
+ small = false,
1351
+ shadow = false,
1352
+ showOffset = 200
1353
+ } = _ref;
1354
+ const [showBtn, setShowBtn] = useState(false);
1355
+ useLayoutEffect(() => {
1356
+ window.addEventListener('scroll', () => {
1357
+ if (window.scrollY > showOffset) {
1358
+ setShowBtn(true);
1359
+ } else {
1360
+ setShowBtn(false);
1361
+ }
1362
+ });
1363
+ }, [showOffset]);
1364
+ return React__default.createElement(Button, {
1365
+ "aria-hidden": 'true',
1366
+ tabIndex: -1,
1367
+ className: classNames(className, 'back-to-top', small && 'back-to-top-small', showBtn && 'back-to-top-show', dark && 'dark', shadow && 'shadow'),
1368
+ id: 'back-to-top-btn',
1369
+ onClick: backToTop,
1370
+ style: {
1371
+ padding: 0
1372
+ },
1373
+ color: !dark ? 'primary' : ''
1374
+ }, React__default.createElement(Icon, {
1375
+ color: dark ? 'secondary' : 'white',
1376
+ icon: 'it-arrow-up',
1377
+ style: {
1378
+ top: 0
1379
+ }
1380
+ }));
1381
+ };
1382
+
1383
+ const Badge = _ref => {
1384
+ let {
1385
+ color = 'secondary',
1386
+ pill = false,
1387
+ tag = 'span',
1388
+ children,
1389
+ testId,
1390
+ ...attributes
1391
+ } = _ref;
1392
+ return React__default.createElement(Badge$1, Object.assign({
1393
+ color: color,
1394
+ pill: pill,
1395
+ tag: tag
1396
+ }, attributes, {
1397
+ "data-testid": testId
1398
+ }), children);
1399
+ };
1400
+
1401
+ const Breadcrumb = _ref => {
1402
+ let {
1403
+ className,
1404
+ listClassName,
1405
+ dark,
1406
+ 'aria-label': label,
1407
+ testId,
1408
+ ...attributes
1409
+ } = _ref;
1410
+ const classes = classNames(className, 'breadcrumb-container');
1411
+ const listClasses = classNames(listClassName, {
1412
+ dark
1413
+ }, dark && 'px-3');
1414
+ const ariaLabel = label ?? 'Percorso di navigazione';
1415
+ return React__default.createElement(Breadcrumb$1, Object.assign({
1416
+ className: classes,
1417
+ listClassName: listClasses,
1418
+ "aria-label": ariaLabel,
1419
+ "data-testid": testId
1420
+ }, attributes));
1421
+ };
1422
+
1423
+ const Forward = _ref => {
1424
+ let {
1425
+ className,
1426
+ scrollToRef,
1427
+ children,
1428
+ testId,
1429
+ ...attributes
1430
+ } = _ref;
1431
+ const classes = classNames(className, 'forward');
1432
+ return React__default.createElement("a", Object.assign({
1433
+ className: classes,
1434
+ onClick: () => {
1435
+ var _scrollToRef$current;
1436
+ return (_scrollToRef$current = scrollToRef.current) == null ? void 0 : _scrollToRef$current.scrollIntoView({
1437
+ behavior: 'smooth',
1438
+ block: 'start'
1439
+ });
1440
+ },
1441
+ "data-testid": testId
1442
+ }, attributes), children);
1443
+ };
1444
+
1445
+ const Callout = _ref => {
1446
+ let {
1447
+ children,
1448
+ color = '',
1449
+ highlight = false,
1450
+ className,
1451
+ detailed,
1452
+ tag = 'div',
1453
+ testId,
1454
+ ...attributes
1455
+ } = _ref;
1456
+ const Tag = tag;
1457
+ const classes = classNames(className, color, 'callout', {
1458
+ 'callout-highlight': highlight,
1459
+ 'callout-more': detailed
1460
+ });
1461
+ return React__default.createElement(Tag, Object.assign({
1462
+ className: classes
1463
+ }, attributes, {
1464
+ "data-testid": testId
1465
+ }), !highlight && !detailed ? React__default.createElement("div", {
1466
+ className: 'callout-inner'
1467
+ }, children) : children);
1468
+ };
1469
+
1470
+ const CalloutText = _ref => {
1471
+ let {
1472
+ bigText = false,
1473
+ children,
1474
+ className,
1475
+ tag = 'p',
1476
+ testId,
1477
+ ...attributes
1478
+ } = _ref;
1479
+ const Tag = tag;
1480
+ const classes = classNames(className, {
1481
+ 'callout-big-text': bigText
1482
+ });
1483
+ return React__default.createElement(Tag, Object.assign({
1484
+ className: classes
1485
+ }, attributes, {
1486
+ "data-testid": testId
1487
+ }), children);
1488
+ };
1489
+
1490
+ const CalloutTitle = _ref => {
1491
+ let {
1492
+ children,
1493
+ className,
1494
+ tag = 'div',
1495
+ testId,
1496
+ ...attributes
1497
+ } = _ref;
1498
+ const Tag = tag;
1499
+ const classes = classNames(className, 'callout-title');
1500
+ return React__default.createElement(Tag, Object.assign({
1501
+ className: classes
1502
+ }, attributes, {
1503
+ "data-testid": testId
1504
+ }), children);
1505
+ };
1506
+
1507
+ const CalloutMoreFooter = _ref => {
1508
+ let {
1509
+ id = 'cm-footer',
1510
+ tag = 'div',
1511
+ className,
1512
+ fileUrl,
1513
+ children,
1514
+ ...attributes
1515
+ } = _ref;
1516
+ const Tag = tag;
1517
+ const classes = classNames('collapse-div', className);
1518
+ const [isOpen, setOpen] = useState(false);
1519
+ return React__default.createElement(Tag, Object.assign({}, attributes, {
1520
+ className: classes
1521
+ }), React__default.createElement("div", {
1522
+ className: 'collapse-header',
1523
+ id: `${id}-heading`
1524
+ }, React__default.createElement(Button, {
1525
+ color: 'primary',
1526
+ className: 'callout-more-toggle',
1527
+ onClick: () => setOpen(!isOpen),
1528
+ "aria-controls": `${id}-collapse`,
1529
+ "aria-expanded": isOpen,
1530
+ style: {
1531
+ fontFamily: 'var(--bs-font-sans-serif)',
1532
+ fontSize: '1rem'
1533
+ }
1534
+ }, "Leggi tutto ", React__default.createElement("span", null)), fileUrl && React__default.createElement("a", {
1535
+ className: 'callout-more-download',
1536
+ href: fileUrl,
1537
+ style: {
1538
+ fontFamily: 'var(--bs-font-sans-serif)',
1539
+ fontSize: '1rem'
1540
+ }
1541
+ }, React__default.createElement(Icon, {
1542
+ icon: 'it-download'
1543
+ }), React__default.createElement("span", {
1544
+ className: 'visually-hidden'
1545
+ }, "PDF"), "Download")), React__default.createElement("div", {
1546
+ className: `collapse ${isOpen ? 'show' : ''}`,
1547
+ role: 'tabpanel',
1548
+ id: `${id}-collapse`,
1549
+ "aria-labelledby": `${id}-heading`
1550
+ }, React__default.createElement("div", {
1551
+ className: 'collapse-body'
1552
+ }, children)));
1553
+ };
1554
+
1555
+ const Card = _ref => {
1556
+ let {
1557
+ tag = 'div',
1558
+ href = undefined,
1559
+ teaser,
1560
+ spacing,
1561
+ noWrapper = false,
1562
+ wrapperClassName,
1563
+ testId,
1564
+ ...attributes
1565
+ } = _ref;
1566
+ const wrapperClasses = classNames('card-wrapper', wrapperClassName, {
1567
+ 'card-space': spacing,
1568
+ 'card-teaser-wrapper': teaser
1569
+ });
1570
+ const cardClasses = classNames(attributes.className, {
1571
+ 'card-teaser': teaser
1572
+ });
1573
+ if (noWrapper) {
1574
+ return React__default.createElement(Card$1, Object.assign({}, attributes, {
1575
+ className: cardClasses,
1576
+ tag: tag,
1577
+ href: tag === 'a' ? href : undefined,
1578
+ "data-testid": testId
1579
+ }));
1580
+ }
1581
+ return React__default.createElement("div", {
1582
+ className: wrapperClasses,
1583
+ "data-testid": testId
1584
+ }, React__default.createElement(Card$1, Object.assign({}, attributes, {
1585
+ className: cardClasses,
1586
+ tag: tag,
1587
+ href: tag === 'a' ? href : undefined
1588
+ })));
1589
+ };
1590
+
1591
+ const CardBody = _ref => {
1592
+ let {
1593
+ tag = 'div',
1594
+ testId,
1595
+ ...props
1596
+ } = _ref;
1597
+ return React__default.createElement(CardBody$1, Object.assign({}, props, {
1598
+ tag: tag,
1599
+ "data-testid": testId
1600
+ }));
1601
+ };
1602
+
1603
+ const CardTitle = props => {
1604
+ return React__default.createElement(CardTitle$1, Object.assign({}, props, {
1605
+ "data-testid": props.testId
1606
+ }));
1607
+ };
1608
+
1609
+ const CardText = props => {
1610
+ return React__default.createElement(CardText$1, Object.assign({}, props, {
1611
+ "data-testid": props.testId
1612
+ }));
1613
+ };
1614
+
1504
1615
  const CardCategory = _ref => {
1505
1616
  let {
1506
1617
  iconName,
@@ -4324,5 +4435,5 @@ const ToolbarDividerItem = () => React__default.createElement("li", {
4324
4435
  "aria-hidden": true
4325
4436
  });
4326
4437
 
4327
- export { Accordion, AccordionBody, AccordionHeader, AccordionItem, Alert, AvatarContainer, AvatarExtraText, AvatarGroupContainer, AvatarIcon, AvatarPresence, AvatarStatus, AvatarWrapper, Badge, BottomNav, BottomNavItem, Breadcrumb, Button, Callout, CalloutText, CalloutTitle, Card, CardBody, CardCategory, CardFooterCTA, CardReadMore, CardSignature, CardTag, CardTagsHeader, CardText, CardTitle, Chip, ChipLabel, Collapse, CookieBar, CookieBarButton, CookieBarButtons, Dimmer, DimmerButtons, FontLoader, Forward, GridItem, GridItemText, GridItemTextWrapper, GridList, GridRow, Header, HeaderBrand, HeaderContent, HeaderLinkZone, HeaderRightZone, HeaderSearch, HeaderSocialsZone, HeaderToggler, Headers, Hero, HeroBackground, HeroBody, HeroButton, HeroCategory, HeroTitle, Icon, Input, InputContainer, LinkList, LinkListItem, Megamenu, MegamenuFooter, MegamenuHighlightColumn, MegamenuItem, Modal, ModalBody, ModalFooter, ModalHeader, Nav, NotificationManager, Pager, Progress, Rating, ResponsiveImage, Section, Select, Sidebar, Skiplink, SkiplinkItem, Spinner, StepperContainer, StepperContent, StepperDots, StepperHeader, StepperHeaderElement, StepperNav, TextArea, ThumbNav, ThumbNavItem, TimeInput, Timeline, TimelinePin, Toggle, Toolbar, ToolbarDividerItem, ToolbarItem, clearIconCache, createNotification, iconsList as icons, notify, preloadIcons, useFontLoader };
4438
+ export { Accordion, AccordionBody, AccordionHeader, AccordionItem, Alert, AvatarContainer, AvatarExtraText, AvatarGroupContainer, AvatarIcon, AvatarPresence, AvatarStatus, AvatarWrapper, BackToTop, Badge, BottomNav, BottomNavItem, Breadcrumb, Button, Callout, CalloutMoreFooter, CalloutText, CalloutTitle, Card, CardBody, CardCategory, CardFooterCTA, CardReadMore, CardSignature, CardTag, CardTagsHeader, CardText, CardTitle, Chip, ChipLabel, Collapse, CookieBar, CookieBarButton, CookieBarButtons, Dimmer, DimmerButtons, FontLoader, Forward, GridItem, GridItemText, GridItemTextWrapper, GridList, GridRow, Header, HeaderBrand, HeaderContent, HeaderLinkZone, HeaderRightZone, HeaderSearch, HeaderSocialsZone, HeaderToggler, Headers, Hero, HeroBackground, HeroBody, HeroButton, HeroCategory, HeroTitle, Icon, Input, InputContainer, LinkList, LinkListItem, Megamenu, MegamenuFooter, MegamenuHighlightColumn, MegamenuItem, Modal, ModalBody, ModalFooter, ModalHeader, Nav, NotificationManager, Pager, Progress, Rating, ResponsiveImage, Section, Select, Sidebar, Skiplink, SkiplinkItem, Spinner, StepperContainer, StepperContent, StepperDots, StepperHeader, StepperHeaderElement, StepperNav, TextArea, ThumbNav, ThumbNavItem, TimeInput, Timeline, TimelinePin, Toggle, Toolbar, ToolbarDividerItem, ToolbarItem, clearIconCache, createNotification, iconsList as icons, notify, preloadIcons, useFontLoader };
4328
4439
  //# sourceMappingURL=index.js.map