chop-logic-components 4.1.1 → 4.3.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.
Files changed (100) hide show
  1. package/dist/components/atoms/avatar/Avatar.css +1 -0
  2. package/dist/components/atoms/avatar/Avatar.d.ts +7 -0
  3. package/dist/components/atoms/avatar/Avatar2.js +44 -0
  4. package/dist/components/atoms/button/Button2.js +11 -11
  5. package/dist/components/atoms/button/icon-button/IconButton2.js +4 -4
  6. package/dist/components/atoms/button/inner-button/InnerButton2.js +4 -4
  7. package/dist/components/atoms/button/primary-button/PrimaryButton2.js +4 -4
  8. package/dist/components/atoms/button/secondary-button/SecondaryButton2.js +4 -4
  9. package/dist/components/atoms/editable-text/EditView.js +4 -4
  10. package/dist/components/atoms/editable-text/EditableText2.js +8 -8
  11. package/dist/components/atoms/icon/Icon2.js +10 -10
  12. package/dist/components/atoms/image/BasicImage.d.ts +2 -0
  13. package/dist/components/atoms/image/BasicImage.js +4 -9
  14. package/dist/components/atoms/image/Image.css +1 -1
  15. package/dist/components/atoms/image/Image2.js +16 -16
  16. package/dist/components/atoms/image/ResponsivePicture.d.ts +1 -0
  17. package/dist/components/atoms/image/ResponsivePicture.js +16 -9
  18. package/dist/components/atoms/index.d.ts +2 -0
  19. package/dist/components/atoms/input/Input2.js +5 -5
  20. package/dist/components/atoms/label/Label2.js +4 -4
  21. package/dist/components/atoms/link/Link2.js +4 -4
  22. package/dist/components/atoms/tag/Tag.css +1 -0
  23. package/dist/components/atoms/tag/Tag.d.ts +7 -0
  24. package/dist/components/atoms/tag/Tag2.js +15 -0
  25. package/dist/components/atoms/tooltip/Tooltip2.js +9 -8
  26. package/dist/components/contexts/theme/ThemeProvider.js +8 -8
  27. package/dist/components/hocs/with-error-boundary/with-error-boundary.js +8 -8
  28. package/dist/components/hocs/with-figure-caption/Figure.css +1 -1
  29. package/dist/components/molecules/alert/Alert2.js +19 -19
  30. package/dist/components/molecules/checkbox/CheckboxStateful.js +6 -6
  31. package/dist/components/molecules/checkbox/CheckboxStateless.js +6 -6
  32. package/dist/components/molecules/multi-select/MultiSelect.Combobox.js +6 -6
  33. package/dist/components/molecules/multi-select/MultiSelect.js +7 -7
  34. package/dist/components/molecules/multi-select/Option.js +8 -8
  35. package/dist/components/molecules/numeric-input/NumericInputStateful.js +8 -8
  36. package/dist/components/molecules/numeric-input/NumericInputStateless.js +8 -8
  37. package/dist/components/molecules/search/Search2.js +16 -16
  38. package/dist/components/molecules/select/Select2.js +7 -7
  39. package/dist/components/molecules/select/combobox/Combobox2.js +6 -6
  40. package/dist/components/molecules/select/option/Option2.js +6 -6
  41. package/dist/components/molecules/text-input/TextInputStateless.js +8 -8
  42. package/dist/components/organisms/dialog/Dialog2.js +14 -14
  43. package/dist/components/organisms/form/Form2.js +14 -14
  44. package/dist/components/organisms/gallery/Gallery.css +1 -0
  45. package/dist/components/organisms/gallery/Gallery.d.ts +4 -0
  46. package/dist/components/organisms/gallery/Gallery.helpers.d.ts +3 -0
  47. package/dist/components/organisms/gallery/Gallery.helpers.js +29 -0
  48. package/dist/components/organisms/gallery/Gallery2.js +57 -0
  49. package/dist/components/organisms/gallery/carousel-navigation/CarouselNavigation.css +1 -0
  50. package/dist/components/organisms/gallery/carousel-navigation/CarouselNavigation.d.ts +9 -0
  51. package/dist/components/organisms/gallery/carousel-navigation/CarouselNavigation2.js +25 -0
  52. package/dist/components/organisms/gallery/full-screen-viewer/FullscreenViewer.css +1 -0
  53. package/dist/components/organisms/gallery/full-screen-viewer/FullscreenViewer.d.ts +11 -0
  54. package/dist/components/organisms/gallery/full-screen-viewer/FullscreenViewer2.js +48 -0
  55. package/dist/components/organisms/gallery/gallery-image-item/GalleryImageItem.css +1 -0
  56. package/dist/components/organisms/gallery/gallery-image-item/GalleryImageItem.d.ts +10 -0
  57. package/dist/components/organisms/gallery/gallery-image-item/GalleryImageItem2.js +17 -0
  58. package/dist/components/organisms/gallery/hooks/use-carousel-scroll.d.ts +10 -0
  59. package/dist/components/organisms/gallery/hooks/use-carousel-scroll.js +50 -0
  60. package/dist/components/organisms/gallery/hooks/use-fullscreen-viewer.d.ts +11 -0
  61. package/dist/components/organisms/gallery/hooks/use-fullscreen-viewer.js +23 -0
  62. package/dist/components/organisms/gallery/viewer-close-button/ViewerCloseButton.css +1 -0
  63. package/dist/components/organisms/gallery/viewer-close-button/ViewerCloseButton.d.ts +6 -0
  64. package/dist/components/organisms/gallery/viewer-close-button/ViewerCloseButton2.js +15 -0
  65. package/dist/components/organisms/gallery/viewer-counter/ViewerCounter.css +1 -0
  66. package/dist/components/organisms/gallery/viewer-counter/ViewerCounter.d.ts +7 -0
  67. package/dist/components/organisms/gallery/viewer-counter/ViewerCounter2.js +14 -0
  68. package/dist/components/organisms/gallery/viewer-image-container/ViewerImageContainer.css +1 -0
  69. package/dist/components/organisms/gallery/viewer-image-container/ViewerImageContainer.d.ts +8 -0
  70. package/dist/components/organisms/gallery/viewer-image-container/ViewerImageContainer2.js +14 -0
  71. package/dist/components/organisms/gallery/viewer-navigation/ViewerNavigation.css +1 -0
  72. package/dist/components/organisms/gallery/viewer-navigation/ViewerNavigation.d.ts +8 -0
  73. package/dist/components/organisms/gallery/viewer-navigation/ViewerNavigation2.js +29 -0
  74. package/dist/components/organisms/gallery/viewer-overlay/ViewerOverlay.css +1 -0
  75. package/dist/components/organisms/gallery/viewer-overlay/ViewerOverlay.d.ts +12 -0
  76. package/dist/components/organisms/gallery/viewer-overlay/ViewerOverlay2.js +33 -0
  77. package/dist/components/organisms/grid/checkbox/GridCheckbox2.js +4 -4
  78. package/dist/components/organisms/index.d.ts +2 -0
  79. package/dist/components/organisms/menu/Menu2.js +5 -5
  80. package/dist/components/organisms/menu/list-item/MenuListItem2.js +8 -8
  81. package/dist/components/organisms/menu/sub-menu/SubMenu2.js +17 -17
  82. package/dist/components/organisms/preview-card/PreviewCard.css +1 -0
  83. package/dist/components/organisms/preview-card/PreviewCard.d.ts +4 -0
  84. package/dist/components/organisms/preview-card/PreviewCard2.js +57 -0
  85. package/dist/components/organisms/tabs/Tabs2.js +11 -11
  86. package/dist/components/organisms/tabs/button/TabButton2.js +23 -23
  87. package/dist/components/organisms/tabs/edit-input/TabEditInput2.js +9 -9
  88. package/dist/components/organisms/tabs/list/TabList2.js +12 -12
  89. package/dist/enums/index.d.ts +1 -0
  90. package/dist/enums/index.js +1 -0
  91. package/dist/enums/link-target.d.ts +6 -0
  92. package/dist/enums/link-target.js +6 -0
  93. package/dist/index.d.ts +1 -1
  94. package/dist/index.es.js +61 -56
  95. package/dist/styles/main.css +1 -1
  96. package/dist/types/gallery.d.ts +13 -0
  97. package/dist/types/image.d.ts +16 -3
  98. package/dist/types/index.d.ts +3 -1
  99. package/dist/types/preview-card.d.ts +38 -0
  100. package/package.json +18 -18
@@ -1,14 +1,14 @@
1
- import { getClassName as e } from "../../../../utils/get-class-name.js";
2
- import { OrientationMode as t } from "../../../../enums/orientation-mode.js";
1
+ import { OrientationMode as e } from "../../../../enums/orientation-mode.js";
2
+ import { getClassName as t } from "../../../../utils/get-class-name.js";
3
3
  import { MenuLeaf as n } from "../leaf/MenuLeaf2.js";
4
4
  import { SubMenu as r } from "../sub-menu/SubMenu2.js";
5
5
  import './MenuListItem.css';/* empty css */
6
- import { jsx as i } from "react/jsx-runtime";
7
- import { useState as a } from "react";
6
+ import { useState as i } from "react";
7
+ import { jsx as a } from "react/jsx-runtime";
8
8
  //#region src/components/organisms/menu/list-item/MenuListItem.tsx
9
9
  var o = ({ item: s, mode: c, openedOn: l }) => {
10
- let u = !s?.nestedItems?.length, [d, f] = a(!1), p = e(["cl-sub-menu-bar", { "cl-sub-menu-bar_horizontal": c === t.Horizontal }]);
11
- return u ? /* @__PURE__ */ i(n, { item: s }) : /* @__PURE__ */ i(r, {
10
+ let u = !s?.nestedItems?.length, [d, f] = i(!1), p = t(["cl-sub-menu-bar", { "cl-sub-menu-bar_horizontal": c === e.Horizontal }]);
11
+ return u ? /* @__PURE__ */ a(n, { item: s }) : /* @__PURE__ */ a(r, {
12
12
  item: s,
13
13
  isSubMenuOpened: d,
14
14
  toggleSubMenu: () => {
@@ -22,11 +22,11 @@ var o = ({ item: s, mode: c, openedOn: l }) => {
22
22
  },
23
23
  mode: c,
24
24
  openedOn: l,
25
- children: /* @__PURE__ */ i("ul", {
25
+ children: /* @__PURE__ */ a("ul", {
26
26
  className: p,
27
27
  role: "menu",
28
28
  "aria-label": s.label,
29
- children: s?.nestedItems?.map((e) => /* @__PURE__ */ i(o, {
29
+ children: s?.nestedItems?.map((e) => /* @__PURE__ */ a(o, {
30
30
  item: e,
31
31
  mode: c,
32
32
  openedOn: l
@@ -1,25 +1,25 @@
1
- import { getClassName as e } from "../../../../utils/get-class-name.js";
2
- import { ElementSize as t } from "../../../../enums/element-size.js";
3
- import { IconName as n } from "../../../../enums/icon-name.js";
4
- import { OrientationMode as r } from "../../../../enums/orientation-mode.js";
1
+ import { ElementSize as e } from "../../../../enums/element-size.js";
2
+ import { IconName as t } from "../../../../enums/icon-name.js";
3
+ import { OrientationMode as n } from "../../../../enums/orientation-mode.js";
4
+ import { getClassName as r } from "../../../../utils/get-class-name.js";
5
5
  import i from "../../../atoms/icon/Icon2.js";
6
6
  import { useClickOutside as a } from "../../../../hooks/use-click-outside/use-click-outside.js";
7
7
  import './SubMenu.css';/* empty css */
8
- import { jsx as o, jsxs as s } from "react/jsx-runtime";
9
- import { useRef as c } from "react";
8
+ import { useRef as o } from "react";
9
+ import { jsx as s, jsxs as c } from "react/jsx-runtime";
10
10
  //#region src/components/organisms/menu/sub-menu/SubMenu.tsx
11
11
  var l = ({ item: l, isSubMenuOpened: u, toggleSubMenu: d, closeSubMenu: f, openSubMenu: p, openedOn: m, mode: h, children: g }) => {
12
- let { icon: _, link: v, label: y } = l, b = c(null), x = c(null), S = e(["cl-sub-menu__icon", { "cl-sub-menu__icon_opened": u }]), C = v ? /* @__PURE__ */ s("a", {
12
+ let { icon: _, link: v, label: y } = l, b = o(null), x = o(null), S = r(["cl-sub-menu__icon", { "cl-sub-menu__icon_opened": u }]), C = v ? /* @__PURE__ */ c("a", {
13
13
  href: v,
14
14
  target: "_blank",
15
15
  rel: "noreferrer",
16
- children: [/* @__PURE__ */ o(i, {
16
+ children: [/* @__PURE__ */ s(i, {
17
17
  name: _,
18
- size: t.Small
18
+ size: e.Small
19
19
  }), y]
20
- }) : /* @__PURE__ */ s("span", { children: [/* @__PURE__ */ o(i, {
20
+ }) : /* @__PURE__ */ c("span", { children: [/* @__PURE__ */ s(i, {
21
21
  name: _,
22
- size: t.Small
22
+ size: e.Small
23
23
  }), y] }), w = (e) => {
24
24
  e.stopPropagation(), e.key === " " && d();
25
25
  };
@@ -27,9 +27,9 @@ var l = ({ item: l, isSubMenuOpened: u, toggleSubMenu: d, closeSubMenu: f, openS
27
27
  ref: b,
28
28
  dependentRef: x,
29
29
  onClickOutsideHandler: () => {
30
- h !== r.Vertical && f();
30
+ h !== n.Vertical && f();
31
31
  }
32
- }), /* @__PURE__ */ s("li", {
32
+ }), /* @__PURE__ */ c("li", {
33
33
  className: "cl-sub-menu",
34
34
  tabIndex: 0,
35
35
  role: "menuitem",
@@ -39,15 +39,15 @@ var l = ({ item: l, isSubMenuOpened: u, toggleSubMenu: d, closeSubMenu: f, openS
39
39
  onMouseEnter: m === "hover" ? p : void 0,
40
40
  onMouseLeave: m === "hover" ? f : void 0,
41
41
  ref: b,
42
- children: [/* @__PURE__ */ s("span", {
42
+ children: [/* @__PURE__ */ c("span", {
43
43
  className: "cl-sub-menu__text",
44
44
  ref: x,
45
45
  onClick: d,
46
46
  onKeyDown: w,
47
- children: [C, /* @__PURE__ */ o(i, {
48
- name: n.ChevronDown,
47
+ children: [C, /* @__PURE__ */ s(i, {
48
+ name: t.ChevronDown,
49
49
  className: S,
50
- size: t.Small
50
+ size: e.Small
51
51
  })]
52
52
  }), u && g]
53
53
  });
@@ -0,0 +1 @@
1
+ .cl-preview-card{border:var(--cl-light-border);border-radius:var(--cl-border-radius);background-color:var(--cl-surface-a0);color:var(--cl-base-font-color);font-family:var(--cl-core-font);box-shadow:var(--cl-box-shadow);flex-direction:column;width:30rem;display:flex;overflow:hidden}.cl-preview-card__image{border-bottom:var(--cl-light-border);border-radius:0!important}.cl-preview-card__image-link{line-height:0;text-decoration:none;display:block}.cl-preview-card__image-link:focus{outline:2px solid var(--cl-accent-a0);outline-offset:-2px}.cl-preview-card__title{padding:var(--cl-l-gap) var(--cl-l-gap) var(--cl-s-gap);margin:0}.cl-preview-card__summary{padding:0 var(--cl-l-gap) var(--cl-m-gap);margin:0}.cl-preview-card__authors{gap:var(--cl-m-gap);padding:var(--cl-m-gap) var(--cl-l-gap);flex-wrap:wrap;margin:0;list-style:none;display:flex}.cl-preview-card__author-item{align-items:center;gap:var(--cl-s-gap);font-style:italic;display:inline-flex}.cl-preview-card__tags{gap:var(--cl-s-gap);padding:var(--cl-m-gap) var(--cl-l-gap) var(--cl-l-gap);flex-wrap:wrap;margin:0;list-style:none;display:flex}.cl-preview-card__tag-item{display:inline-flex}.cl-preview-card__summary,.cl-preview-card__author-item{font-family:var(--cl-core-font);font-size:var(--cl-typography-base-mobile);letter-spacing:normal;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;line-height:1.2}@media (width>=640px){.cl-preview-card__summary,.cl-preview-card__author-item{font-size:var(--cl-typography-base-tablet)}}@media (width>=1024px){.cl-preview-card__summary,.cl-preview-card__author-item{font-size:var(--cl-typography-base-desktop)}}
@@ -0,0 +1,4 @@
1
+ import { PreviewCardProps } from '../../../types';
2
+ import { FC } from 'react';
3
+ declare const PreviewCard: FC<PreviewCardProps>;
4
+ export default PreviewCard;
@@ -0,0 +1,57 @@
1
+ import { LinkTarget as e } from "../../../enums/link-target.js";
2
+ import { getClassName as t } from "../../../utils/get-class-name.js";
3
+ import n from "../../atoms/avatar/Avatar2.js";
4
+ import r from "../../atoms/header/Header2.js";
5
+ import i from "../../atoms/image/Image2.js";
6
+ import a from "../../atoms/tag/Tag2.js";
7
+ import './PreviewCard.css';/* empty css */
8
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
9
+ //#region src/components/organisms/preview-card/PreviewCard.tsx
10
+ var c = ({ link: c, linkTarget: l = e.Self, image: u, title: d, summary: f, authors: p = [], tags: m = [], className: h, ...g }) => {
11
+ let _ = t(["cl-preview-card", h]), v = l === e.Blank, y = d || "Preview card", b = `View article: ${d}`;
12
+ return /* @__PURE__ */ s("article", {
13
+ className: _,
14
+ "aria-label": y,
15
+ ...g,
16
+ children: [
17
+ /* @__PURE__ */ o("a", {
18
+ href: c,
19
+ target: l,
20
+ rel: v ? "noopener noreferrer" : void 0,
21
+ "aria-label": b,
22
+ className: "cl-preview-card__image-link",
23
+ children: /* @__PURE__ */ o(i, {
24
+ ...u,
25
+ className: "cl-preview-card__image"
26
+ })
27
+ }),
28
+ /* @__PURE__ */ o(r, {
29
+ as: "h6",
30
+ className: "cl-preview-card__title",
31
+ children: d
32
+ }),
33
+ f && /* @__PURE__ */ o("p", {
34
+ className: "cl-preview-card__summary",
35
+ children: f
36
+ }),
37
+ p.length > 0 && /* @__PURE__ */ o("ul", {
38
+ className: "cl-preview-card__authors",
39
+ "aria-label": "Authors",
40
+ children: p.map((e) => /* @__PURE__ */ s("li", {
41
+ className: "cl-preview-card__author-item",
42
+ children: [/* @__PURE__ */ o(n, { ...e }), /* @__PURE__ */ o("span", { children: e.name })]
43
+ }, e.id))
44
+ }),
45
+ m.length > 0 && /* @__PURE__ */ o("ul", {
46
+ className: "cl-preview-card__tags",
47
+ "aria-label": "Tags",
48
+ children: m.map((e) => /* @__PURE__ */ o("li", {
49
+ className: "cl-preview-card__tag-item",
50
+ children: /* @__PURE__ */ o(a, { ...e })
51
+ }, e.id))
52
+ })
53
+ ]
54
+ });
55
+ };
56
+ //#endregion
57
+ export { c as default };
@@ -1,16 +1,16 @@
1
- import { getClassName as e } from "../../../utils/get-class-name.js";
2
- import { OrientationMode as t } from "../../../enums/orientation-mode.js";
1
+ import { OrientationMode as e } from "../../../enums/orientation-mode.js";
2
+ import { getClassName as t } from "../../../utils/get-class-name.js";
3
3
  import { TabContent as n } from "./content/TabContent2.js";
4
4
  import { TabList as r } from "./list/TabList2.js";
5
5
  import './Tabs.css';/* empty css */
6
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
- import { useState as o } from "react";
6
+ import { useState as i } from "react";
7
+ import { jsx as a, jsxs as o } from "react/jsx-runtime";
8
8
  //#region src/components/organisms/tabs/Tabs.tsx
9
- var s = ({ tabs: s, defaultTabId: c, className: l, mode: u = t.Horizontal, stretched: d = !1, editable: f = !1, extendable: p = !1, extendedTabLabel: m = "New Tab", extendedTabContent: h, onTabTitleChange: g, onTabAdd: _, onTabSelect: v, onTabDelete: y, ...b }) => {
10
- let [x, S] = o(s), C = s.length, [w, T] = o(C + 1), E = x.map((e) => e.id), D = E.map((e) => `tabpanel_${e}`), [O, k] = o(c && E.includes(c) ? c : E[0]), A = e([
9
+ var s = ({ tabs: s, defaultTabId: c, className: l, mode: u = e.Horizontal, stretched: d = !1, editable: f = !1, extendable: p = !1, extendedTabLabel: m = "New Tab", extendedTabContent: h, onTabTitleChange: g, onTabAdd: _, onTabSelect: v, onTabDelete: y, ...b }) => {
10
+ let [x, S] = i(s), C = s.length, [w, T] = i(C + 1), E = x.map((e) => e.id), D = E.map((e) => `tabpanel_${e}`), [O, k] = i(c && E.includes(c) ? c : E[0]), A = t([
11
11
  "cl-tabs",
12
12
  l,
13
- { "cl-tabs_vertical": u === t.Vertical }
13
+ { "cl-tabs_vertical": u === e.Vertical }
14
14
  ]), j = (e) => {
15
15
  k(e), v?.(e);
16
16
  }, M = (e, t) => {
@@ -22,7 +22,7 @@ var s = ({ tabs: s, defaultTabId: c, className: l, mode: u = t.Horizontal, stret
22
22
  let e = `added-tab-${w}`, t = {
23
23
  id: e,
24
24
  title: m || `Tab ${w}`,
25
- content: h || /* @__PURE__ */ i("div", {})
25
+ content: h || /* @__PURE__ */ a("div", {})
26
26
  };
27
27
  S((e) => [...e, t]), T((e) => e + 1), _?.(), j(e);
28
28
  }, P = (e) => {
@@ -32,10 +32,10 @@ var s = ({ tabs: s, defaultTabId: c, className: l, mode: u = t.Horizontal, stret
32
32
  }
33
33
  y?.(e);
34
34
  };
35
- return /* @__PURE__ */ a("div", {
35
+ return /* @__PURE__ */ o("div", {
36
36
  ...b,
37
37
  className: A,
38
- children: [/* @__PURE__ */ i(r, {
38
+ children: [/* @__PURE__ */ a(r, {
39
39
  tabs: x,
40
40
  selectedTabId: O,
41
41
  tabPanelIds: D,
@@ -48,7 +48,7 @@ var s = ({ tabs: s, defaultTabId: c, className: l, mode: u = t.Horizontal, stret
48
48
  extendable: p,
49
49
  onTabAdd: N,
50
50
  onTabDelete: P
51
- }), /* @__PURE__ */ i(n, {
51
+ }), /* @__PURE__ */ a(n, {
52
52
  tabs: x,
53
53
  selectedTabId: O,
54
54
  extendedTabContent: h,
@@ -1,26 +1,26 @@
1
- import { getClassName as e } from "../../../../utils/get-class-name.js";
2
- import { ButtonView as t } from "../../../../enums/button-view.js";
3
- import { ElementSize as n } from "../../../../enums/element-size.js";
4
- import { IconName as r } from "../../../../enums/icon-name.js";
5
- import { OrientationMode as i } from "../../../../enums/orientation-mode.js";
1
+ import { ButtonView as e } from "../../../../enums/button-view.js";
2
+ import { ElementSize as t } from "../../../../enums/element-size.js";
3
+ import { IconName as n } from "../../../../enums/icon-name.js";
4
+ import { OrientationMode as r } from "../../../../enums/orientation-mode.js";
5
+ import { getClassName as i } from "../../../../utils/get-class-name.js";
6
6
  import a from "../../../atoms/button/Button2.js";
7
7
  import { TabEditInput as o } from "../edit-input/TabEditInput2.js";
8
8
  import './TabButton.css';/* empty css */
9
- import { Fragment as s, jsx as c, jsxs as l } from "react/jsx-runtime";
10
- import { useEffect as u, useId as d, useRef as f, useState as p } from "react";
9
+ import { useEffect as s, useId as c, useRef as l, useState as u } from "react";
10
+ import { Fragment as d, jsx as f, jsxs as p } from "react/jsx-runtime";
11
11
  //#region src/components/organisms/tabs/button/TabButton.tsx
12
12
  var m = ({ title: m, onTabSelect: h, onTabTitleChange: g, onTabDelete: _, tabId: v, isSelected: y, isDisabled: b = !1, stretched: x = !1, editable: S = !1, extendable: C = !1, tabPanelId: w, mode: T }) => {
13
- let [E, D] = p(!1), [O, k] = p(m), A = f(null), j = d(), M = S && !b && y, N = C && !b && !!_ && y, P = M || N, F = e(["cl-tab__wrapper", {
13
+ let [E, D] = u(!1), [O, k] = u(m), A = l(null), j = c(), M = S && !b && y, N = C && !b && !!_ && y, P = M || N, F = i(["cl-tab__wrapper", {
14
14
  "cl-tab__wrapper_disabled": b,
15
- "cl-tab__wrapper_vertical": T === i.Vertical,
15
+ "cl-tab__wrapper_vertical": T === r.Vertical,
16
16
  "cl-tab__wrapper_selected": y,
17
17
  "cl-tab__wrapper_stretched": x,
18
18
  "cl-tab__wrapper_editable": S,
19
19
  "cl-tab__wrapper_inactive": !y
20
20
  }]);
21
- u(() => {
21
+ s(() => {
22
22
  E && A.current && (A.current.focus(), A.current.select());
23
- }, [E]), u(() => {
23
+ }, [E]), s(() => {
24
24
  k(m);
25
25
  }, [m]);
26
26
  let I = () => {
@@ -38,9 +38,9 @@ var m = ({ title: m, onTabSelect: h, onTabTitleChange: g, onTabDelete: _, tabId:
38
38
  }, H = () => {
39
39
  k(m), D(!1);
40
40
  };
41
- return /* @__PURE__ */ c("span", {
41
+ return /* @__PURE__ */ f("span", {
42
42
  className: F,
43
- children: E ? /* @__PURE__ */ c(o, {
43
+ children: E ? /* @__PURE__ */ f(o, {
44
44
  tabId: v,
45
45
  editValue: O,
46
46
  isEditMode: E,
@@ -50,7 +50,7 @@ var m = ({ title: m, onTabSelect: h, onTabTitleChange: g, onTabDelete: _, tabId:
50
50
  onSave: V,
51
51
  onCancel: H,
52
52
  cancelButtonId: j
53
- }) : /* @__PURE__ */ l(s, { children: [/* @__PURE__ */ c("button", {
53
+ }) : /* @__PURE__ */ p(d, { children: [/* @__PURE__ */ f("button", {
54
54
  role: "tab",
55
55
  id: v,
56
56
  onClick: L,
@@ -59,22 +59,22 @@ var m = ({ title: m, onTabSelect: h, onTabTitleChange: g, onTabDelete: _, tabId:
59
59
  className: "cl-tab",
60
60
  disabled: b,
61
61
  children: O
62
- }), P && /* @__PURE__ */ l("span", {
62
+ }), P && /* @__PURE__ */ p("span", {
63
63
  className: "cl-tab__buttons",
64
- children: [M && /* @__PURE__ */ c(a, {
65
- view: t.Icon,
66
- icon: r.Edit3,
64
+ children: [M && /* @__PURE__ */ f(a, {
65
+ view: e.Icon,
66
+ icon: n.Edit3,
67
67
  onClick: I,
68
68
  label: "Edit tab",
69
69
  tooltip: "Edit tab",
70
- iconSize: n.Small
71
- }), N && /* @__PURE__ */ c(a, {
72
- view: t.Icon,
73
- icon: r.Trash2,
70
+ iconSize: t.Small
71
+ }), N && /* @__PURE__ */ f(a, {
72
+ view: e.Icon,
73
+ icon: n.Trash2,
74
74
  onClick: () => _?.(v),
75
75
  label: "Delete tab",
76
76
  tooltip: "Delete tab",
77
- iconSize: n.Small
77
+ iconSize: t.Small
78
78
  })]
79
79
  })] })
80
80
  });
@@ -3,16 +3,16 @@ import { ElementSize as t } from "../../../../enums/element-size.js";
3
3
  import { IconName as n } from "../../../../enums/icon-name.js";
4
4
  import r from "../../../atoms/button/Button2.js";
5
5
  import './TabEditInput.css';/* empty css */
6
- import { jsx as i, jsxs as a } from "react/jsx-runtime";
7
- import { useEffect as o, useRef as s } from "react";
6
+ import { useEffect as i, useRef as a } from "react";
7
+ import { jsx as o, jsxs as s } from "react/jsx-runtime";
8
8
  //#region src/components/organisms/tabs/edit-input/TabEditInput.tsx
9
9
  var c = ({ tabId: c, isEditMode: l, editValue: u, onInputChange: d, onInputBlur: f, onInputKeyDown: p, onSave: m, onCancel: h, cancelButtonId: g }) => {
10
- let _ = s(null);
11
- return o(() => {
10
+ let _ = a(null);
11
+ return i(() => {
12
12
  l && _.current && (_.current.focus(), _.current.select());
13
- }, [l]), /* @__PURE__ */ a("div", {
13
+ }, [l]), /* @__PURE__ */ s("div", {
14
14
  className: "cl-tab-edit-container",
15
- children: [/* @__PURE__ */ i("input", {
15
+ children: [/* @__PURE__ */ o("input", {
16
16
  ref: _,
17
17
  id: `${c}-input`,
18
18
  type: "text",
@@ -22,15 +22,15 @@ var c = ({ tabId: c, isEditMode: l, editValue: u, onInputChange: d, onInputBlur:
22
22
  onKeyDown: p,
23
23
  className: "cl-tab-edit-container__input",
24
24
  maxLength: 50
25
- }), /* @__PURE__ */ a("span", {
25
+ }), /* @__PURE__ */ s("span", {
26
26
  className: "cl-tab-edit-container__buttons",
27
- children: [/* @__PURE__ */ i(r, {
27
+ children: [/* @__PURE__ */ o(r, {
28
28
  view: e.Icon,
29
29
  icon: n.Check,
30
30
  onClick: m,
31
31
  label: "Save tab title",
32
32
  iconSize: t.Small
33
- }), /* @__PURE__ */ i(r, {
33
+ }), /* @__PURE__ */ o(r, {
34
34
  view: e.Icon,
35
35
  icon: n.X,
36
36
  onClick: h,
@@ -1,24 +1,24 @@
1
- import { getClassName as e } from "../../../../utils/get-class-name.js";
2
- import { moveFocusOnElementById as t } from "../../../../utils/move-focus-on-element-by-id.js";
3
- import { ButtonView as n } from "../../../../enums/button-view.js";
4
- import { IconName as r } from "../../../../enums/icon-name.js";
5
- import { OrientationMode as i } from "../../../../enums/orientation-mode.js";
1
+ import { ButtonView as e } from "../../../../enums/button-view.js";
2
+ import { IconName as t } from "../../../../enums/icon-name.js";
3
+ import { OrientationMode as n } from "../../../../enums/orientation-mode.js";
4
+ import { getClassName as r } from "../../../../utils/get-class-name.js";
5
+ import { moveFocusOnElementById as i } from "../../../../utils/move-focus-on-element-by-id.js";
6
6
  import a from "../../../atoms/button/Button2.js";
7
7
  import { TabButton as o } from "../button/TabButton2.js";
8
8
  import './TabList.css';/* empty css */
9
9
  import { jsx as s, jsxs as c } from "react/jsx-runtime";
10
10
  //#region src/components/organisms/tabs/list/TabList.tsx
11
11
  var l = ({ tabs: l, onTabSelect: u, onTabTitleChange: d, selectedTabId: f, tabPanelIds: p, mode: m, tabIds: h, stretched: g, editable: _ = !1, extendable: v = !1, onTabAdd: y, onTabDelete: b }) => {
12
- let x = e(["cl-tab-list", { "cl-tab-list_vertical": m === i.Vertical }]), S = (e) => {
13
- let n = h.indexOf(f);
12
+ let x = r(["cl-tab-list", { "cl-tab-list_vertical": m === n.Vertical }]), S = (e) => {
13
+ let t = h.indexOf(f);
14
14
  if (![
15
15
  "ArrowLeft",
16
16
  "ArrowUp",
17
17
  "ArrowRight",
18
18
  "ArrowDown"
19
- ].includes(e.key) || (e.preventDefault(), e.key === "ArrowUp" && m === i.Horizontal || e.key === "ArrowLeft" && m === i.Vertical)) return;
20
- let r = h[e.key === "ArrowLeft" || e.key === "ArrowUp" ? C(n, h.length) : w(n, h.length)];
21
- r && (t(r), u(r));
19
+ ].includes(e.key) || (e.preventDefault(), e.key === "ArrowUp" && m === n.Horizontal || e.key === "ArrowLeft" && m === n.Vertical)) return;
20
+ let r = h[e.key === "ArrowLeft" || e.key === "ArrowUp" ? C(t, h.length) : w(t, h.length)];
21
+ r && (i(r), u(r));
22
22
  }, C = (e, t) => e - 1 >= 0 ? e - 1 : t - 1, w = (e, t) => e === t - 1 ? 0 : e + 1;
23
23
  return /* @__PURE__ */ c("div", {
24
24
  role: "tablist",
@@ -41,8 +41,8 @@ var l = ({ tabs: l, onTabSelect: u, onTabTitleChange: d, selectedTabId: f, tabPa
41
41
  }, e)), v && /* @__PURE__ */ s(a, {
42
42
  label: "Add Tab",
43
43
  tooltip: "Add Tab",
44
- view: n.Icon,
45
- icon: r.PlusCircle,
44
+ view: e.Icon,
45
+ icon: t.PlusCircle,
46
46
  onClick: y
47
47
  })]
48
48
  });
@@ -2,6 +2,7 @@ export { AlertMode } from './alert-mode';
2
2
  export { ButtonView } from './button-view';
3
3
  export { ElementSize } from './element-size';
4
4
  export { IconName } from './icon-name';
5
+ export { LinkTarget } from './link-target';
5
6
  export { LoaderView } from './loader-view';
6
7
  export { OrientationMode } from './orientation-mode';
7
8
  export { SemanticColor } from './semantic-color';
@@ -2,6 +2,7 @@ export * from './alert-mode.js';
2
2
  export * from './button-view.js';
3
3
  export * from './element-size.js';
4
4
  export * from './icon-name.js';
5
+ export * from './link-target.js';
5
6
  export * from './loader-view.js';
6
7
  export * from './orientation-mode.js';
7
8
  export * from './semantic-color.js';
@@ -0,0 +1,6 @@
1
+ export declare enum LinkTarget {
2
+ Self = "_self",
3
+ Blank = "_blank",
4
+ Parent = "_parent",
5
+ Top = "_top"
6
+ }
@@ -0,0 +1,6 @@
1
+ //#region src/enums/link-target.ts
2
+ var e = /* @__PURE__ */ function(e) {
3
+ return e.Self = "_self", e.Blank = "_blank", e.Parent = "_parent", e.Top = "_top", e;
4
+ }({});
5
+ //#endregion
6
+ export { e as LinkTarget };
package/dist/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export * from './main'
1
+ export * from './main.js'
2
2
  export {}
package/dist/index.es.js CHANGED
@@ -1,56 +1,61 @@
1
- import { withTooltip as e } from "./components/hocs/with-tooltip/with-tooltip.js";
2
- import { AlertMode as t } from "./enums/alert-mode.js";
3
- import { ButtonView as n } from "./enums/button-view.js";
4
- import { ElementSize as r } from "./enums/element-size.js";
5
- import { IconName as i } from "./enums/icon-name.js";
6
- import { LoaderView as a } from "./enums/loader-view.js";
7
- import { OrientationMode as o } from "./enums/orientation-mode.js";
8
- import { SemanticColor as s } from "./enums/semantic-color.js";
9
- import { TooltipContainer as c } from "./enums/tooltip-container.js";
10
- import l from "./components/atoms/button/Button2.js";
11
- import u from "./components/atoms/editable-text/EditableText2.js";
12
- import d from "./components/atoms/error-message/ErrorMessage2.js";
13
- import f from "./components/atoms/header/Header2.js";
14
- import p from "./components/atoms/icon/Icon2.js";
15
- import { withErrorBoundary as m } from "./components/hocs/with-error-boundary/with-error-boundary.js";
16
- import { withFigureCaption as h } from "./components/hocs/with-figure-caption/with-figure-caption.js";
17
- import g from "./components/atoms/image/Image2.js";
18
- import _ from "./components/atoms/input/Input2.js";
19
- import v from "./components/atoms/label/Label2.js";
20
- import y from "./components/atoms/link/Link2.js";
21
- import b from "./components/atoms/portal/Portal.js";
22
- import { useAutoClose as x } from "./hooks/use-auto-close/use-auto-close.js";
23
- import { useClickOutside as S } from "./hooks/use-click-outside/use-click-outside.js";
24
- import { useContainerDimensions as C } from "./hooks/use-container-dimensions/use-container-dimensions.js";
25
- import { useDebounce as w } from "./hooks/use-debounce/use-debounce.js";
26
- import { useElementIds as T } from "./hooks/use-element-ids/use-element-ids.js";
27
- import { useIsHovered as E } from "./hooks/use-is-hovered/use-is-hovered.js";
28
- import { useIsMounted as D } from "./hooks/use-is-mounted/use-is-mounted.js";
29
- import { useIsOverflow as O } from "./hooks/use-is-overflow/use-is-overflow.js";
30
- import { useKeyPress as k } from "./hooks/use-key-press/use-key-press.js";
31
- import { useModalFocusTrap as A } from "./hooks/use-modal-focus-trap/use-modal-focus-trap.js";
32
- import { useRemainingTimer as j } from "./hooks/use-remaining-timer/use-remaining-timer.js";
33
- import { FormContext as M } from "./components/contexts/form/FormContext.js";
34
- import { CL_DARK_THEME_CLASS as N, CL_LIGHT_THEME_CLASS as P, ThemeContext as F } from "./components/contexts/theme/ThemeContext.js";
35
- import { ThemeProvider as I } from "./components/contexts/theme/ThemeProvider.js";
36
- import { useResetFormInput as L } from "./hooks/use-reset-form-input/use-reset-form-input.js";
37
- import { useTheme as R } from "./hooks/use-theme/use-theme.js";
38
- import { useTooltipPosition as z } from "./hooks/use-tooltip-position/use-tooltip-position.js";
39
- import { useWindowDimensions as B } from "./hooks/use-window-dimensions/use-window-dimensions.js";
40
- import V from "./components/atoms/tooltip/Tooltip2.js";
41
- import H from "./components/molecules/accordion/Accordion2.js";
42
- import U from "./components/molecules/alert/Alert2.js";
43
- import W from "./components/molecules/breadcrumbs/Breadcrumbs2.js";
44
- import G from "./components/molecules/checkbox/Checkbox2.js";
45
- import K from "./components/molecules/multi-select/MultiSelect.js";
46
- import q from "./components/molecules/numeric-input/NumericInput2.js";
47
- import J from "./components/molecules/search/Search2.js";
48
- import Y from "./components/molecules/select/Select2.js";
49
- import X from "./components/molecules/switch/Switch2.js";
50
- import Z from "./components/molecules/text-input/TextInput2.js";
51
- import Q from "./components/organisms/dialog/Dialog2.js";
52
- import $ from "./components/organisms/form/Form2.js";
53
- import ee from "./components/organisms/grid/Grid2.js";
54
- import te from "./components/organisms/menu/Menu2.js";
55
- import ne from "./components/organisms/tabs/Tabs2.js";
56
- export { H as Accordion, U as Alert, t as AlertMode, W as Breadcrumbs, l as Button, n as ButtonView, N as CL_DARK_THEME_CLASS, P as CL_LIGHT_THEME_CLASS, G as Checkbox, Q as Dialog, u as EditableText, r as ElementSize, d as ErrorMessage, $ as Form, M as FormContext, ee as Grid, f as Header, p as Icon, i as IconName, g as Image, _ as Input, v as Label, y as Link, a as LoaderView, te as Menu, K as MultiSelect, q as NumericInput, o as OrientationMode, b as Portal, J as Search, Y as Select, s as SemanticColor, X as Switch, ne as Tabs, Z as TextInput, F as ThemeContext, I as ThemeProvider, V as Tooltip, c as TooltipContainer, x as useAutoClose, S as useClickOutside, C as useContainerDimensions, w as useDebounce, T as useElementIds, E as useIsHovered, D as useIsMounted, O as useIsOverflow, k as useKeyPress, A as useModalFocusTrap, j as useRemainingTimer, L as useResetFormInput, R as useTheme, z as useTooltipPosition, B as useWindowDimensions, m as withErrorBoundary, h as withFigureCaption, e as withTooltip };
1
+ import { withErrorBoundary as e } from "./components/hocs/with-error-boundary/with-error-boundary.js";
2
+ import { withFigureCaption as t } from "./components/hocs/with-figure-caption/with-figure-caption.js";
3
+ import { withTooltip as n } from "./components/hocs/with-tooltip/with-tooltip.js";
4
+ import { AlertMode as r } from "./enums/alert-mode.js";
5
+ import { ButtonView as i } from "./enums/button-view.js";
6
+ import { ElementSize as a } from "./enums/element-size.js";
7
+ import { IconName as o } from "./enums/icon-name.js";
8
+ import { LinkTarget as s } from "./enums/link-target.js";
9
+ import { LoaderView as c } from "./enums/loader-view.js";
10
+ import { OrientationMode as l } from "./enums/orientation-mode.js";
11
+ import { SemanticColor as u } from "./enums/semantic-color.js";
12
+ import { TooltipContainer as d } from "./enums/tooltip-container.js";
13
+ import f from "./components/atoms/avatar/Avatar2.js";
14
+ import p from "./components/atoms/button/Button2.js";
15
+ import m from "./components/atoms/editable-text/EditableText2.js";
16
+ import h from "./components/atoms/error-message/ErrorMessage2.js";
17
+ import g from "./components/atoms/header/Header2.js";
18
+ import _ from "./components/atoms/icon/Icon2.js";
19
+ import v from "./components/atoms/image/Image2.js";
20
+ import y from "./components/atoms/input/Input2.js";
21
+ import b from "./components/atoms/label/Label2.js";
22
+ import x from "./components/atoms/link/Link2.js";
23
+ import S from "./components/atoms/portal/Portal.js";
24
+ import C from "./components/atoms/tag/Tag2.js";
25
+ import { useAutoClose as w } from "./hooks/use-auto-close/use-auto-close.js";
26
+ import { useClickOutside as T } from "./hooks/use-click-outside/use-click-outside.js";
27
+ import { useContainerDimensions as E } from "./hooks/use-container-dimensions/use-container-dimensions.js";
28
+ import { useDebounce as D } from "./hooks/use-debounce/use-debounce.js";
29
+ import { useElementIds as O } from "./hooks/use-element-ids/use-element-ids.js";
30
+ import { useIsHovered as k } from "./hooks/use-is-hovered/use-is-hovered.js";
31
+ import { useIsMounted as A } from "./hooks/use-is-mounted/use-is-mounted.js";
32
+ import { useIsOverflow as j } from "./hooks/use-is-overflow/use-is-overflow.js";
33
+ import { useKeyPress as M } from "./hooks/use-key-press/use-key-press.js";
34
+ import { useModalFocusTrap as N } from "./hooks/use-modal-focus-trap/use-modal-focus-trap.js";
35
+ import { useRemainingTimer as P } from "./hooks/use-remaining-timer/use-remaining-timer.js";
36
+ import { FormContext as F } from "./components/contexts/form/FormContext.js";
37
+ import { CL_DARK_THEME_CLASS as I, CL_LIGHT_THEME_CLASS as L, ThemeContext as R } from "./components/contexts/theme/ThemeContext.js";
38
+ import { ThemeProvider as z } from "./components/contexts/theme/ThemeProvider.js";
39
+ import { useResetFormInput as B } from "./hooks/use-reset-form-input/use-reset-form-input.js";
40
+ import { useTheme as V } from "./hooks/use-theme/use-theme.js";
41
+ import { useTooltipPosition as H } from "./hooks/use-tooltip-position/use-tooltip-position.js";
42
+ import { useWindowDimensions as U } from "./hooks/use-window-dimensions/use-window-dimensions.js";
43
+ import W from "./components/atoms/tooltip/Tooltip2.js";
44
+ import G from "./components/molecules/accordion/Accordion2.js";
45
+ import K from "./components/molecules/alert/Alert2.js";
46
+ import q from "./components/molecules/breadcrumbs/Breadcrumbs2.js";
47
+ import J from "./components/molecules/checkbox/Checkbox2.js";
48
+ import Y from "./components/molecules/multi-select/MultiSelect.js";
49
+ import X from "./components/molecules/numeric-input/NumericInput2.js";
50
+ import Z from "./components/molecules/search/Search2.js";
51
+ import Q from "./components/molecules/select/Select2.js";
52
+ import $ from "./components/molecules/switch/Switch2.js";
53
+ import ee from "./components/molecules/text-input/TextInput2.js";
54
+ import te from "./components/organisms/dialog/Dialog2.js";
55
+ import ne from "./components/organisms/form/Form2.js";
56
+ import re from "./components/organisms/gallery/Gallery2.js";
57
+ import ie from "./components/organisms/grid/Grid2.js";
58
+ import ae from "./components/organisms/menu/Menu2.js";
59
+ import oe from "./components/organisms/preview-card/PreviewCard2.js";
60
+ import se from "./components/organisms/tabs/Tabs2.js";
61
+ export { G as Accordion, K as Alert, r as AlertMode, f as Avatar, q as Breadcrumbs, p as Button, i as ButtonView, I as CL_DARK_THEME_CLASS, L as CL_LIGHT_THEME_CLASS, J as Checkbox, te as Dialog, m as EditableText, a as ElementSize, h as ErrorMessage, ne as Form, F as FormContext, re as Gallery, ie as Grid, g as Header, _ as Icon, o as IconName, v as Image, y as Input, b as Label, x as Link, s as LinkTarget, c as LoaderView, ae as Menu, Y as MultiSelect, X as NumericInput, l as OrientationMode, S as Portal, oe as PreviewCard, Z as Search, Q as Select, u as SemanticColor, $ as Switch, se as Tabs, C as Tag, ee as TextInput, R as ThemeContext, z as ThemeProvider, W as Tooltip, d as TooltipContainer, w as useAutoClose, T as useClickOutside, E as useContainerDimensions, D as useDebounce, O as useElementIds, k as useIsHovered, A as useIsMounted, j as useIsOverflow, M as useKeyPress, N as useModalFocusTrap, P as useRemainingTimer, B as useResetFormInput, V as useTheme, H as useTooltipPosition, U as useWindowDimensions, e as withErrorBoundary, t as withFigureCaption, n as withTooltip };
@@ -1 +1 @@
1
- :root{--cl-core-font:Arial, Helvetica, sans-serif;--cl-monospace-font:"Courier New", Courier, monospace;--cl-fancy-font:Georgia, "Times New Roman", Times, serif;--cl-xs-gap:2px;--cl-s-gap:4px;--cl-m-gap:8px;--cl-l-gap:16px;--cl-xl-gap:32px;--cl-xxl-gap:64px;--cl-icon-size:20px;--cl-thumb-size:24px;--cl-border-radius:4px;--cl-z-index-base:1;--cl-z-index-menu:5;--cl-z-index-popup:10;--cl-z-index-modal:20;--cl-typography-h1-mobile:2.25rem;--cl-typography-h1-tablet:2.5rem;--cl-typography-h1-desktop:3rem;--cl-typography-h2-mobile:2rem;--cl-typography-h2-tablet:2.25rem;--cl-typography-h2-desktop:2.5rem;--cl-typography-h3-mobile:1.75rem;--cl-typography-h3-tablet:2rem;--cl-typography-h3-desktop:2.25rem;--cl-typography-h4-mobile:1.5rem;--cl-typography-h4-tablet:1.75rem;--cl-typography-h4-desktop:2rem;--cl-typography-h5-mobile:1.25rem;--cl-typography-h5-tablet:1.5rem;--cl-typography-h5-desktop:1.75rem;--cl-typography-h6-mobile:1rem;--cl-typography-h6-tablet:1.125rem;--cl-typography-h6-desktop:1.25rem;--cl-typography-base-mobile:1rem;--cl-typography-base-tablet:1.125rem;--cl-typography-base-desktop:1.25rem;--cl-typography-small-mobile:.875rem;--cl-typography-small-tablet:1rem;--cl-typography-small-desktop:1.125rem;--cl-breakpoint-sm:640px;--cl-breakpoint-md:768px;--cl-breakpoint-lg:1024px;--cl-breakpoint-xl:1280px;--cl-breakpoint-xxl:1536px;--cl-base-font-color:#000;--cl-base-background-color:#fff;--cl-accent-a0:#8d1c12;--cl-accent-a10:#7d1c11;--cl-accent-a20:#6d1b10;--cl-accent-a30:#5e190f;--cl-surface-a0:#fff;--cl-surface-a10:#f0f0f0;--cl-surface-a20:#e1e1e1;--cl-surface-a30:#d3d3d3;--cl-surface-tonal-a0:#f7e8e4;--cl-surface-tonal-a10:#e9dcd8;--cl-surface-tonal-a20:#dbd0cd;--cl-surface-tonal-a30:#cec4c2;--cl-success-a0:#1b7f5c;--cl-success-a10:#28be8a;--cl-success-a20:#58dbad;--cl-warning-a0:#b8871f;--cl-warning-a10:#dfae44;--cl-warning-a20:#ebca85;--cl-danger-a0:#b13535;--cl-danger-a10:#d06262;--cl-danger-a20:#e29d9d;--cl-info-a0:#1e56a3;--cl-info-a10:#347ada;--cl-info-a20:#74a4e6;--cl-accent-gradient:linear-gradient(135deg, #8d1c12 0%, #7d1c11 50%, #6d1b10 100%);--cl-box-shadow:#0003 2.4px 2.4px 3.2px;--cl-box-shadow-extended:#0003 4.8px 4.8px 6.4px;--cl-text-shadow:2.4px 2.4px 3.2px #00000026;--cl-drop-shadow:drop-shadow(2.4px 2.4px 3.2px #00000026);--cl-shadow-background:#0000004d;--cl-accent-border:1px solid #8d1c12;--cl-danger-border:1px solid #d06262;--cl-success-border:1px solid #28be8a;--cl-warning-border:1px solid #dfae44;--cl-info-border:1px solid #347ada;--cl-light-border:1px solid #c0b8b6;--cl-outline-border:1px solid #000}.cl-components-dark-theme{--cl-base-background-color:#000;--cl-base-font-color:#fff;--cl-accent-a0:#eb5cbe;--cl-accent-a10:#ef71c5;--cl-accent-a20:#f385cc;--cl-accent-a30:#f697d4;--cl-surface-a0:#121212;--cl-surface-a10:#282828;--cl-surface-a20:#3f3f3f;--cl-surface-a30:#575757;--cl-surface-tonal-a0:#251a21;--cl-surface-tonal-a10:#3a2f36;--cl-surface-tonal-a20:#4f464c;--cl-surface-tonal-a30:#665d63;--cl-success-a0:#9ae8ce;--cl-success-a10:#47d5a6;--cl-success-a20:#22946e;--cl-warning-a0:#a87a2a;--cl-warning-a10:#d7ac61;--cl-warning-a20:#ecd7b2;--cl-danger-a0:#eb9e9e;--cl-danger-a10:#d94a4a;--cl-danger-a20:#9c2121;--cl-info-a0:#92b2e5;--cl-info-a10:#4077d1;--cl-info-a20:#21498a;--cl-accent-gradient:linear-gradient(135deg, #eb5cbe 0%, #ef71c5 50%, #f385cc 100%);--cl-box-shadow:#ffffff4d 2.4px 2.4px 3.2px;--cl-box-shadow-extended:#ffffff4d 4px 4px 5px;--cl-text-shadow:2.4px 2.4px 3.2px #ffffff80;--cl-drop-shadow:drop-shadow(2.4px 2.4px 3.2px #ffffff4d);--cl-shadow-background:#ffffff4d;--cl-accent-border:1px solid #eb5cbe;--cl-danger-border:1px solid #d94a4a;--cl-success-border:1px solid #47d5a6;--cl-warning-border:1px solid #d7ac61;--cl-info-border:1px solid #4077d1;--cl-light-border:1px solid #665d63;--cl-outline-border:1px solid #fff}@keyframes cl-fade-in{0%{opacity:0}to{opacity:1}}@keyframes cl-fade-out{0%{opacity:1}to{opacity:0}}.cl-fade-in{animation:.4s cl-fade-in}.cl-fade-out{animation:.4s cl-fade-out}
1
+ :root{--cl-core-font:Arial, Helvetica, sans-serif;--cl-monospace-font:"Courier New", Courier, monospace;--cl-fancy-font:Georgia, "Times New Roman", Times, serif;--cl-xs-gap:2px;--cl-s-gap:4px;--cl-m-gap:8px;--cl-l-gap:16px;--cl-xl-gap:32px;--cl-xxl-gap:64px;--cl-icon-size:20px;--cl-thumb-size:24px;--cl-border-radius:4px;--cl-z-index-base:1;--cl-z-index-menu:5;--cl-z-index-popup:10;--cl-z-index-modal:20;--cl-typography-h1-mobile:2.25rem;--cl-typography-h1-tablet:2.5rem;--cl-typography-h1-desktop:3rem;--cl-typography-h2-mobile:2rem;--cl-typography-h2-tablet:2.25rem;--cl-typography-h2-desktop:2.5rem;--cl-typography-h3-mobile:1.75rem;--cl-typography-h3-tablet:2rem;--cl-typography-h3-desktop:2.25rem;--cl-typography-h4-mobile:1.5rem;--cl-typography-h4-tablet:1.75rem;--cl-typography-h4-desktop:2rem;--cl-typography-h5-mobile:1.25rem;--cl-typography-h5-tablet:1.5rem;--cl-typography-h5-desktop:1.75rem;--cl-typography-h6-mobile:1rem;--cl-typography-h6-tablet:1.125rem;--cl-typography-h6-desktop:1.25rem;--cl-typography-base-mobile:1rem;--cl-typography-base-tablet:1.125rem;--cl-typography-base-desktop:1.25rem;--cl-typography-small-mobile:.875rem;--cl-typography-small-tablet:1rem;--cl-typography-small-desktop:1.125rem;--cl-breakpoint-sm:640px;--cl-breakpoint-md:768px;--cl-breakpoint-lg:1024px;--cl-breakpoint-xl:1280px;--cl-breakpoint-xxl:1536px;--cl-base-font-color:#000;--cl-base-background-color:#fff;--cl-accent-a0:#8d1c12;--cl-accent-a10:#7d1c11;--cl-accent-a20:#6d1b10;--cl-accent-a30:#5e190f;--cl-surface-a0:#fff;--cl-surface-a10:#f0f0f0;--cl-surface-a20:#e1e1e1;--cl-surface-a30:#d3d3d3;--cl-surface-tonal-a0:#f7e8e4;--cl-surface-tonal-a10:#e9dcd8;--cl-surface-tonal-a20:#dbd0cd;--cl-surface-tonal-a30:#cec4c2;--cl-success-a0:#1b7f5c;--cl-success-a10:#28be8a;--cl-success-a20:#58dbad;--cl-warning-a0:#b8871f;--cl-warning-a10:#dfae44;--cl-warning-a20:#ebca85;--cl-danger-a0:#b13535;--cl-danger-a10:#d06262;--cl-danger-a20:#e29d9d;--cl-info-a0:#1e56a3;--cl-info-a10:#347ada;--cl-info-a20:#74a4e6;--cl-accent-gradient:linear-gradient(135deg, #8d1c12 0%, #7d1c11 50%, #6d1b10 100%);--cl-box-shadow:#0003 2.4px 2.4px 3.2px;--cl-box-shadow-extended:#0003 4.8px 4.8px 6.4px;--cl-text-shadow:2.4px 2.4px 3.2px #00000026;--cl-drop-shadow:drop-shadow(2.4px 2.4px 3.2px #00000026);--cl-shadow-background:#0000004d;--cl-shadow-background-deep:#000000e6;--cl-accent-border:1px solid #8d1c12;--cl-danger-border:1px solid #d06262;--cl-success-border:1px solid #28be8a;--cl-warning-border:1px solid #dfae44;--cl-info-border:1px solid #347ada;--cl-light-border:1px solid #c0b8b6;--cl-outline-border:1px solid #000}.cl-components-dark-theme{--cl-base-background-color:#000;--cl-base-font-color:#fff;--cl-accent-a0:#eb5cbe;--cl-accent-a10:#ef71c5;--cl-accent-a20:#f385cc;--cl-accent-a30:#f697d4;--cl-surface-a0:#121212;--cl-surface-a10:#282828;--cl-surface-a20:#3f3f3f;--cl-surface-a30:#575757;--cl-surface-tonal-a0:#251a21;--cl-surface-tonal-a10:#3a2f36;--cl-surface-tonal-a20:#4f464c;--cl-surface-tonal-a30:#665d63;--cl-success-a0:#9ae8ce;--cl-success-a10:#47d5a6;--cl-success-a20:#22946e;--cl-warning-a0:#a87a2a;--cl-warning-a10:#d7ac61;--cl-warning-a20:#ecd7b2;--cl-danger-a0:#eb9e9e;--cl-danger-a10:#d94a4a;--cl-danger-a20:#9c2121;--cl-info-a0:#92b2e5;--cl-info-a10:#4077d1;--cl-info-a20:#21498a;--cl-accent-gradient:linear-gradient(135deg, #eb5cbe 0%, #ef71c5 50%, #f385cc 100%);--cl-box-shadow:#ffffff4d 2.4px 2.4px 3.2px;--cl-box-shadow-extended:#ffffff4d 4px 4px 5px;--cl-text-shadow:2.4px 2.4px 3.2px #ffffff80;--cl-drop-shadow:drop-shadow(2.4px 2.4px 3.2px #ffffff4d);--cl-shadow-background:#ffffff4d;--cl-shadow-background-deep:#000000e6;--cl-accent-border:1px solid #eb5cbe;--cl-danger-border:1px solid #d94a4a;--cl-success-border:1px solid #47d5a6;--cl-warning-border:1px solid #d7ac61;--cl-info-border:1px solid #4077d1;--cl-light-border:1px solid #665d63;--cl-outline-border:1px solid #fff}@keyframes cl-fade-in{0%{opacity:0}to{opacity:1}}@keyframes cl-fade-out{0%{opacity:1}to{opacity:0}}.cl-fade-in{animation:.4s cl-fade-in}.cl-fade-out{animation:.4s cl-fade-out}
@@ -0,0 +1,13 @@
1
+ import { ChopLogicComponentProps } from './_common';
2
+ import { ImageProps } from './image';
3
+ export type GalleryItem = ImageProps;
4
+ export type GalleryMode = 'grid' | 'masonry' | 'carousel';
5
+ export interface GalleryProps extends ChopLogicComponentProps {
6
+ images?: GalleryItem[];
7
+ layout?: GalleryMode;
8
+ columns?: number;
9
+ rows?: number;
10
+ gap?: string;
11
+ label?: string;
12
+ enableFullscreen?: boolean;
13
+ }