@tedi-design-system/react 19.0.0-rc.13 → 19.0.0-rc.15
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/_virtual/index.es13.js +2 -2
- package/_virtual/index.es14.js +2 -2
- package/bundle-stats.html +1 -1
- package/external/react-is/index.cjs.js +1 -1
- package/external/react-is/index.es.js +1 -1
- package/external/toposort/index.cjs.js +1 -1
- package/external/toposort/index.es.js +1 -1
- package/index.css +1 -1
- package/package.json +1 -1
- package/src/community/components/map-components/button-group/button-group.cjs.js +1 -1
- package/src/community/components/map-components/button-group/button-group.es.js +18 -14
- package/src/community/components/map-components/map-button/map-button.cjs.js +1 -1
- package/src/community/components/map-components/map-button/map-button.es.js +34 -33
- package/src/tedi/components/content/list/list-item.cjs.js +1 -1
- package/src/tedi/components/content/list/list-item.d.ts +1 -1
- package/src/tedi/components/content/list/list-item.es.js +8 -8
- package/src/tedi/components/content/list/list.cjs.js +1 -1
- package/src/tedi/components/content/list/list.d.ts +1 -1
- package/src/tedi/components/content/list/list.es.js +29 -23
- package/src/tedi/components/content/list/list.module.scss.cjs.js +1 -1
- package/src/tedi/components/content/list/list.module.scss.es.js +3 -2
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing-item.cjs.js +1 -1
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing-item.d.ts +5 -0
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing-item.es.js +14 -13
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing.cjs.js +1 -1
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing.d.ts +5 -0
- package/src/tedi/components/layout/vertical-spacing/vertical-spacing.es.js +18 -17
- package/src/tedi/components/overlays/overlay/overlay.cjs.js +1 -1
- package/src/tedi/components/overlays/overlay/overlay.es.js +29 -28
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tedi-design-system/react",
|
|
3
|
-
"version": "19.0.0-rc.
|
|
3
|
+
"version": "19.0.0-rc.15",
|
|
4
4
|
"description": "TEDI Design System React component library — accessible, reusable UI components. Docs & live examples: https://storybook.tedi.ee/react/rc/",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("../../../../../external/classnames/index.cjs.js"),o=require("react"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("react/jsx-runtime"),i=require("../../../../../external/classnames/index.cjs.js"),o=require("react"),h=require("../map-button/map-button.cjs.js"),e=require("./button-group.module.scss.cjs.js"),j=p=>{const{children:c,className:f,direction:m="horizontal",onSelectionChange:s,stretch:b=!1,ariaLabel:x,prefix:a,suffix:l,prefixClassName:_,suffixClassName:g}=p;return r.jsxs("div",{className:i.default(e.default["tedi-button-group"],e.default[`tedi-button-group--${m}`],{[e.default["tedi-button-group--stretch"]]:b},f),role:"group","aria-label":x,children:[a&&r.jsx("div",{className:i.default(e.default["tedi-button-group__prefix"],_),children:r.jsx("span",{children:a})}),o.Children.map(c,u=>{if(o.isValidElement(u)&&u.type===h.MapButton){const t=u;return o.cloneElement(t,{className:i.default(e.default["tedi-button-group__item"],{[e.default["tedi-button-group__item--active"]]:t.props.isActive,[e.default["tedi-button-group__item--disabled"]]:t.props.disabled},t.props.className),onClick:N=>{var d,n;t.props.disabled||((n=(d=t.props).onClick)==null||n.call(d,N),s==null||s(t.props.id))}})}return u}),l&&r.jsx("div",{className:i.default(e.default["tedi-button-group__suffix"],g),children:r.jsx("span",{children:l})})]})};exports.ButtonGroup=j;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { jsxs as
|
|
2
|
-
import
|
|
1
|
+
import { jsxs as g, jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import s from "../../../../../external/classnames/index.es.js";
|
|
3
3
|
import { Children as h, isValidElement as v, cloneElement as C } from "react";
|
|
4
4
|
import { MapButton as y } from "../map-button/map-button.es.js";
|
|
5
5
|
import t from "./button-group.module.scss.es.js";
|
|
@@ -8,7 +8,7 @@ const A = (d) => {
|
|
|
8
8
|
children: u,
|
|
9
9
|
className: m,
|
|
10
10
|
direction: c = "horizontal",
|
|
11
|
-
onSelectionChange:
|
|
11
|
+
onSelectionChange: o,
|
|
12
12
|
stretch: f = !1,
|
|
13
13
|
ariaLabel: b,
|
|
14
14
|
prefix: p,
|
|
@@ -16,10 +16,10 @@ const A = (d) => {
|
|
|
16
16
|
prefixClassName: _,
|
|
17
17
|
suffixClassName: x
|
|
18
18
|
} = d;
|
|
19
|
-
return /* @__PURE__ */
|
|
19
|
+
return /* @__PURE__ */ g(
|
|
20
20
|
"div",
|
|
21
21
|
{
|
|
22
|
-
className:
|
|
22
|
+
className: s(
|
|
23
23
|
t["tedi-button-group"],
|
|
24
24
|
t[`tedi-button-group--${c}`],
|
|
25
25
|
{
|
|
@@ -30,24 +30,28 @@ const A = (d) => {
|
|
|
30
30
|
role: "group",
|
|
31
31
|
"aria-label": b,
|
|
32
32
|
children: [
|
|
33
|
-
p && /* @__PURE__ */ i("div", { className:
|
|
33
|
+
p && /* @__PURE__ */ i("div", { className: s(t["tedi-button-group__prefix"], _), children: /* @__PURE__ */ i("span", { children: p }) }),
|
|
34
34
|
h.map(u, (r) => {
|
|
35
35
|
if (v(r) && r.type === y) {
|
|
36
36
|
const e = r;
|
|
37
37
|
return C(e, {
|
|
38
|
-
className:
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
e.props.
|
|
38
|
+
className: s(
|
|
39
|
+
t["tedi-button-group__item"],
|
|
40
|
+
{
|
|
41
|
+
[t["tedi-button-group__item--active"]]: e.props.isActive,
|
|
42
|
+
[t["tedi-button-group__item--disabled"]]: e.props.disabled
|
|
43
|
+
},
|
|
44
|
+
e.props.className
|
|
45
|
+
),
|
|
46
|
+
onClick: (N) => {
|
|
47
|
+
var l, n;
|
|
48
|
+
e.props.disabled || ((n = (l = e.props).onClick) == null || n.call(l, N), o == null || o(e.props.id));
|
|
45
49
|
}
|
|
46
50
|
});
|
|
47
51
|
}
|
|
48
52
|
return r;
|
|
49
53
|
}),
|
|
50
|
-
a && /* @__PURE__ */ i("div", { className:
|
|
54
|
+
a && /* @__PURE__ */ i("div", { className: s(t["tedi-button-group__suffix"], x), children: /* @__PURE__ */ i("span", { children: a }) })
|
|
51
55
|
]
|
|
52
56
|
}
|
|
53
57
|
);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),m=require("../../../../../external/classnames/index.cjs.js"),B=require("react"),S=require("../../../../tedi/components/base/icon/icon.cjs.js"),N=require("../../../../tedi/components/loaders/spinner/spinner.cjs.js"),O=require("../../../../tedi/components/buttons/button/button.cjs.js"),d=require("../map-dropdown/map-dropdown.cjs.js"),t=require("./map-button.module.scss.cjs.js"),l=require("../../../../tedi/components/overlays/tooltip/tooltip.cjs.js"),b=f=>{const{size:n="default",icon:r,selected:h=!1,className:x,children:u,hideLabel:c=!1,tooltipContent:p=u,dropdownItems:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("react/jsx-runtime"),m=require("../../../../../external/classnames/index.cjs.js"),B=require("react"),S=require("../../../../tedi/components/base/icon/icon.cjs.js"),N=require("../../../../tedi/components/loaders/spinner/spinner.cjs.js"),O=require("../../../../tedi/components/buttons/button/button.cjs.js"),d=require("../map-dropdown/map-dropdown.cjs.js"),t=require("./map-button.module.scss.cjs.js"),l=require("../../../../tedi/components/overlays/tooltip/tooltip.cjs.js"),b=f=>{const{size:n="default",icon:r,selected:h=!1,className:x,children:u,hideLabel:c=!1,tooltipContent:p=u,dropdownItems:i,isActive:j,isHovered:g,underline:q,isLoading:s,...v}=f,[_,w]=B.useState(!1),D=h||_,M=m.default(t.default["tedi-map-button"],t.default[`tedi-map-button--${n}`],D&&t.default["tedi-map-button--selected"],i&&t.default["tedi-map-button--dropdown"],j&&t.default["tedi-map-button--is-active"],g&&t.default["tedi-map-button--is-hovered"],q&&t.default["tedi-map-button--underline"],s&&t.default["tedi-map-button--loading"],x),C=e.jsxs(e.Fragment,{children:[s?e.jsx(N.Spinner,{size:n==="small"?16:18,className:t.default["tedi-map-button__icon"]}):r&&e.jsx(S.Icon,{name:r,className:t.default["tedi-map-button__icon"],size:n==="small"?24:18}),!c&&e.jsx("div",{className:m.default(t.default["tedi-map-button__text"]),children:u})]}),a=e.jsx(O.Button,{noStyle:!0,isLoading:s,className:M,size:n,...v,children:C}),T=c&&p?e.jsxs(l.Tooltip,{placement:"right",children:[e.jsx(l.Tooltip.Trigger,{children:a}),e.jsx(l.Tooltip.Content,{children:p})]}):a;return i?e.jsxs(d.MapDropdown,{onOpenChange:w,placement:"right-start",children:[e.jsx(d.MapDropdown.Trigger,{children:a}),e.jsx(d.MapDropdown.Content,{items:i.map(o=>({children:o.children,onClick:o.onClick,isActive:o.isActive,isDisabled:o.isDisabled}))})]}):T};exports.MapButton=b;exports.default=b;
|
|
@@ -1,53 +1,54 @@
|
|
|
1
1
|
import { jsxs as a, Fragment as z, jsx as e } from "react/jsx-runtime";
|
|
2
2
|
import b from "../../../../../external/classnames/index.es.js";
|
|
3
|
-
import { useState as
|
|
4
|
-
import { Icon as
|
|
5
|
-
import { Spinner as
|
|
6
|
-
import { Button as
|
|
3
|
+
import { useState as A } from "react";
|
|
4
|
+
import { Icon as I } from "../../../../tedi/components/base/icon/icon.es.js";
|
|
5
|
+
import { Spinner as M } from "../../../../tedi/components/loaders/spinner/spinner.es.js";
|
|
6
|
+
import { Button as O } from "../../../../tedi/components/buttons/button/button.es.js";
|
|
7
7
|
import { MapDropdown as l } from "../map-dropdown/map-dropdown.es.js";
|
|
8
8
|
import t from "./map-button.module.scss.es.js";
|
|
9
|
-
import { Tooltip as
|
|
9
|
+
import { Tooltip as d } from "../../../../tedi/components/overlays/tooltip/tooltip.es.js";
|
|
10
10
|
const q = (h) => {
|
|
11
11
|
const {
|
|
12
12
|
size: o = "default",
|
|
13
|
-
icon:
|
|
13
|
+
icon: m,
|
|
14
14
|
selected: f = !1,
|
|
15
15
|
className: g,
|
|
16
|
-
children:
|
|
17
|
-
hideLabel:
|
|
18
|
-
tooltipContent: u =
|
|
19
|
-
dropdownItems:
|
|
20
|
-
isActive:
|
|
21
|
-
isHovered:
|
|
22
|
-
underline:
|
|
23
|
-
isLoading:
|
|
24
|
-
...
|
|
25
|
-
} = h, [w, D] =
|
|
16
|
+
children: c,
|
|
17
|
+
hideLabel: p = !1,
|
|
18
|
+
tooltipContent: u = c,
|
|
19
|
+
dropdownItems: i,
|
|
20
|
+
isActive: v,
|
|
21
|
+
isHovered: C,
|
|
22
|
+
underline: N,
|
|
23
|
+
isLoading: s,
|
|
24
|
+
..._
|
|
25
|
+
} = h, [w, D] = A(!1), x = f || w, B = b(
|
|
26
26
|
t["tedi-map-button"],
|
|
27
27
|
t[`tedi-map-button--${o}`],
|
|
28
28
|
x && t["tedi-map-button--selected"],
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
i && t["tedi-map-button--dropdown"],
|
|
30
|
+
v && t["tedi-map-button--is-active"],
|
|
31
|
+
C && t["tedi-map-button--is-hovered"],
|
|
32
|
+
N && t["tedi-map-button--underline"],
|
|
33
|
+
s && t["tedi-map-button--loading"],
|
|
34
34
|
g
|
|
35
35
|
), S = /* @__PURE__ */ a(z, { children: [
|
|
36
|
-
|
|
37
|
-
!
|
|
38
|
-
] }),
|
|
39
|
-
/* @__PURE__ */ e(
|
|
40
|
-
/* @__PURE__ */ e(
|
|
41
|
-
] }) :
|
|
42
|
-
return
|
|
43
|
-
/* @__PURE__ */ e(l.Trigger, { children:
|
|
36
|
+
s ? /* @__PURE__ */ e(M, { size: o === "small" ? 16 : 18, className: t["tedi-map-button__icon"] }) : m && /* @__PURE__ */ e(I, { name: m, className: t["tedi-map-button__icon"], size: o === "small" ? 24 : 18 }),
|
|
37
|
+
!p && /* @__PURE__ */ e("div", { className: b(t["tedi-map-button__text"]), children: c })
|
|
38
|
+
] }), r = /* @__PURE__ */ e(O, { noStyle: !0, isLoading: s, className: B, size: o, ..._, children: S }), T = p && u ? /* @__PURE__ */ a(d, { placement: "right", children: [
|
|
39
|
+
/* @__PURE__ */ e(d.Trigger, { children: r }),
|
|
40
|
+
/* @__PURE__ */ e(d.Content, { children: u })
|
|
41
|
+
] }) : r;
|
|
42
|
+
return i ? /* @__PURE__ */ a(l, { onOpenChange: D, placement: "right-start", children: [
|
|
43
|
+
/* @__PURE__ */ e(l.Trigger, { children: r }),
|
|
44
44
|
/* @__PURE__ */ e(
|
|
45
45
|
l.Content,
|
|
46
46
|
{
|
|
47
|
-
items:
|
|
48
|
-
children:
|
|
49
|
-
onClick:
|
|
50
|
-
|
|
47
|
+
items: i.map((n) => ({
|
|
48
|
+
children: n.children,
|
|
49
|
+
onClick: n.onClick,
|
|
50
|
+
isActive: n.isActive,
|
|
51
|
+
isDisabled: n.isDisabled
|
|
51
52
|
}))
|
|
52
53
|
}
|
|
53
54
|
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const l=require("react/jsx-runtime"),o=require("../../../../../external/classnames/index.cjs.js"),m=require("./list.module.scss.cjs.js"),d=require("../../../helpers/hooks/use-breakpoint-props.cjs.js"),p=require("../../layout/vertical-spacing/vertical-spacing-item.cjs.js"),a=r=>{const{getCurrentBreakpointProps:u}=d.useBreakpointProps(r.defaultServerBreakpoint),{children:s,verticalSpacingItem:e,className:c,...t}=u(r),i=o.default(m.default["tedi-list__item"],e==null?void 0:e.className,c),n=typeof t.value=="number"?{counterIncrement:"none",counterSet:`item ${t.value}`}:void 0;return r.verticalSpacingItem?l.jsx(p.VerticalSpacingItem,{...e,...t,element:"li",className:i,style:n,children:s}):l.jsx("li",{className:i,...t,style:n,children:s})};exports.ListItem=a;exports.default=a;
|
|
@@ -7,7 +7,7 @@ type ListItemBreakpointProps = {
|
|
|
7
7
|
*/
|
|
8
8
|
verticalSpacingItem?: Omit<VerticalSpacingItemProps, 'element' | 'children'>;
|
|
9
9
|
};
|
|
10
|
-
export interface ListItemProps extends BreakpointSupport<ListItemBreakpointProps> {
|
|
10
|
+
export interface ListItemProps extends BreakpointSupport<ListItemBreakpointProps>, Omit<React.LiHTMLAttributes<HTMLLIElement>, 'style' | 'children'> {
|
|
11
11
|
/**
|
|
12
12
|
* List children should be ListItem components
|
|
13
13
|
*/
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { useBreakpointProps as
|
|
5
|
-
import { VerticalSpacingItem as
|
|
6
|
-
const B = (
|
|
7
|
-
const { getCurrentBreakpointProps:
|
|
8
|
-
return
|
|
1
|
+
import { jsx as i } from "react/jsx-runtime";
|
|
2
|
+
import l from "../../../../../external/classnames/index.es.js";
|
|
3
|
+
import c from "./list.module.scss.es.js";
|
|
4
|
+
import { useBreakpointProps as u } from "../../../helpers/hooks/use-breakpoint-props.es.js";
|
|
5
|
+
import { VerticalSpacingItem as f } from "../../layout/vertical-spacing/vertical-spacing-item.es.js";
|
|
6
|
+
const B = (r) => {
|
|
7
|
+
const { getCurrentBreakpointProps: n } = u(r.defaultServerBreakpoint), { children: s, verticalSpacingItem: e, className: a, ...t } = n(r), m = l(c["tedi-list__item"], e == null ? void 0 : e.className, a), o = typeof t.value == "number" ? { counterIncrement: "none", counterSet: `item ${t.value}` } : void 0;
|
|
8
|
+
return r.verticalSpacingItem ? /* @__PURE__ */ i(f, { ...e, ...t, element: "li", className: m, style: o, children: s }) : /* @__PURE__ */ i("li", { className: m, ...t, style: o, children: s });
|
|
9
9
|
};
|
|
10
10
|
export {
|
|
11
11
|
B as ListItem,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("react/jsx-runtime"),v=require("../../../../../external/classnames/index.cjs.js"),q=require("react"),s=require("./list.module.scss.cjs.js"),b=require("./list-item.cjs.js"),S=require("../../../helpers/hooks/use-breakpoint-props.cjs.js"),g=require("../../layout/vertical-spacing/vertical-spacing.cjs.js"),d=n=>{const{getCurrentBreakpointProps:a}=S.useBreakpointProps(n.defaultServerBreakpoint),{children:i,element:t="ul",style:m="none",verticalSpacing:r,className:f,color:p="brand",...e}=a(n),o=t==="ol"&&e.reversed===!0,l=v.default(s.default["tedi-list"],s.default[`tedi-list--${t==="ul"?"unordered":"ordered"}`],s.default[`tedi-list--style-${m}`],s.default[`tedi-list--bullet-color-${p}`],o&&s.default["tedi-list--reversed"],r==null?void 0:r.className,f),y=t,u=(()=>{if(t==="ol")return o?{counterReset:`item ${(typeof e.start=="number"?e.start:q.Children.count(i))+1}`}:typeof e.start=="number"?{counterReset:`item ${e.start-1}`}:void 0})();return r?c.jsx(g.VerticalSpacing,{...r,...e,element:t,className:l,style:u,children:i}):c.jsx(y,{className:l,...e,style:u,children:i})};d.Item=b.ListItem;exports.List=d;
|
|
@@ -16,7 +16,7 @@ type ListBreakpointProps = {
|
|
|
16
16
|
*/
|
|
17
17
|
style?: 'styled' | 'none';
|
|
18
18
|
};
|
|
19
|
-
export interface ListProps extends BreakpointSupport<ListBreakpointProps> {
|
|
19
|
+
export interface ListProps extends BreakpointSupport<ListBreakpointProps>, Omit<React.OlHTMLAttributes<HTMLOListElement>, 'style' | 'children'> {
|
|
20
20
|
/**
|
|
21
21
|
* List children should be ListItem components
|
|
22
22
|
*/
|
|
@@ -1,28 +1,34 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
import { jsx as d } from "react/jsx-runtime";
|
|
2
|
+
import y from "../../../../../external/classnames/index.es.js";
|
|
3
|
+
import { Children as v } from "react";
|
|
4
|
+
import s from "./list.module.scss.es.js";
|
|
5
|
+
import { ListItem as N } from "./list-item.es.js";
|
|
6
|
+
import { useBreakpointProps as $ } from "../../../helpers/hooks/use-breakpoint-props.es.js";
|
|
7
|
+
import { VerticalSpacing as b } from "../../layout/vertical-spacing/vertical-spacing.es.js";
|
|
8
|
+
const B = (i) => {
|
|
9
|
+
const { getCurrentBreakpointProps: a } = $(i.defaultServerBreakpoint), {
|
|
9
10
|
children: o,
|
|
10
|
-
element:
|
|
11
|
-
style:
|
|
12
|
-
verticalSpacing:
|
|
13
|
-
className:
|
|
14
|
-
color:
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
11
|
+
element: t = "ul",
|
|
12
|
+
style: c = "none",
|
|
13
|
+
verticalSpacing: r,
|
|
14
|
+
className: u,
|
|
15
|
+
color: f = "brand",
|
|
16
|
+
...e
|
|
17
|
+
} = a(i), l = t === "ol" && e.reversed === !0, n = y(
|
|
18
|
+
s["tedi-list"],
|
|
19
|
+
s[`tedi-list--${t === "ul" ? "unordered" : "ordered"}`],
|
|
20
|
+
s[`tedi-list--style-${c}`],
|
|
21
|
+
s[`tedi-list--bullet-color-${f}`],
|
|
22
|
+
l && s["tedi-list--reversed"],
|
|
23
|
+
r == null ? void 0 : r.className,
|
|
24
|
+
u
|
|
25
|
+
), p = t, m = (() => {
|
|
26
|
+
if (t === "ol")
|
|
27
|
+
return l ? { counterReset: `item ${(typeof e.start == "number" ? e.start : v.count(o)) + 1}` } : typeof e.start == "number" ? { counterReset: `item ${e.start - 1}` } : void 0;
|
|
28
|
+
})();
|
|
29
|
+
return r ? /* @__PURE__ */ d(b, { ...r, ...e, element: t, className: n, style: m, children: o }) : /* @__PURE__ */ d(p, { className: n, ...e, style: m, children: o });
|
|
24
30
|
};
|
|
25
|
-
B.Item =
|
|
31
|
+
B.Item = N;
|
|
26
32
|
export {
|
|
27
33
|
B as List
|
|
28
34
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e={"tedi-list":"tedi-list-71701cf9","tedi-list__item":"tedi-list__item-2a714ed1","tedi-list--unordered":"tedi-list--unordered-60115136","tedi-list--bullet-color-primary":"tedi-list--bullet-color-primary-afabfe71","tedi-list--bullet-color-secondary":"tedi-list--bullet-color-secondary-25f0c3e3","tedi-list--bullet-color-tertiary":"tedi-list--bullet-color-tertiary-fbd2b53f","tedi-list--bullet-color-brand":"tedi-list--bullet-color-brand-de9348a6","tedi-list--bullet-color-brand-dark":"tedi-list--bullet-color-brand-dark-948cec45","tedi-list--bullet-color-success":"tedi-list--bullet-color-success-1c3189cf","tedi-list--bullet-color-warning":"tedi-list--bullet-color-warning-0ec8b981","tedi-list--bullet-color-warning-dark":"tedi-list--bullet-color-warning-dark-ecaf5ef7","tedi-list--bullet-color-danger":"tedi-list--bullet-color-danger-4457905e","tedi-list--bullet-color-white":"tedi-list--bullet-color-white-a25c101f","tedi-list--ordered":"tedi-list--ordered-cd38b627","tedi-list--reversed":"tedi-list--reversed-a403096a","tedi-list--style-none":"tedi-list--style-none-14fa69aa"};exports.default=e;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
1
|
+
const t = {
|
|
2
2
|
"tedi-list": "tedi-list-71701cf9",
|
|
3
3
|
"tedi-list__item": "tedi-list__item-2a714ed1",
|
|
4
4
|
"tedi-list--unordered": "tedi-list--unordered-60115136",
|
|
@@ -13,8 +13,9 @@ const l = {
|
|
|
13
13
|
"tedi-list--bullet-color-danger": "tedi-list--bullet-color-danger-4457905e",
|
|
14
14
|
"tedi-list--bullet-color-white": "tedi-list--bullet-color-white-a25c101f",
|
|
15
15
|
"tedi-list--ordered": "tedi-list--ordered-cd38b627",
|
|
16
|
+
"tedi-list--reversed": "tedi-list--reversed-a403096a",
|
|
16
17
|
"tedi-list--style-none": "tedi-list--style-none-14fa69aa"
|
|
17
18
|
};
|
|
18
19
|
export {
|
|
19
|
-
|
|
20
|
+
t as default
|
|
20
21
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const u=require("react/jsx-runtime"),m=require("../../../../../external/classnames/index.cjs.js"),d=require("./vertical-spacing.module.scss.cjs.js"),p=require("../../../helpers/hooks/use-breakpoint-props.cjs.js"),i=e=>{const{getCurrentBreakpointProps:r}=p.useBreakpointProps(e.defaultServerBreakpoint),{children:a,className:n,element:s="div",size:t=1,style:c,...l}=r(e),o=m.default(d.default["tedi-vertical-spacing__item"],n);return u.jsx(s,{"data-name":"vertical-spacing-item",...l,style:{"--vertical-spacing-internal":`${t}${t!==0?"em":""}`,...c},className:o,children:a})};exports.VerticalSpacingItem=i;exports.default=i;
|
|
@@ -21,6 +21,11 @@ export interface VerticalSpacingItemProps extends BreakpointSupport<VerticalSpac
|
|
|
21
21
|
* Additional class name(s) to apply to the element
|
|
22
22
|
*/
|
|
23
23
|
className?: string;
|
|
24
|
+
/**
|
|
25
|
+
* Additional inline styles, merged with the internal spacing custom property
|
|
26
|
+
* (rather than replacing it).
|
|
27
|
+
*/
|
|
28
|
+
style?: React.CSSProperties;
|
|
24
29
|
}
|
|
25
30
|
export declare const VerticalSpacingItem: (props: VerticalSpacingItemProps) => JSX.Element;
|
|
26
31
|
export default VerticalSpacingItem;
|
|
@@ -1,27 +1,28 @@
|
|
|
1
|
-
import { jsx as
|
|
1
|
+
import { jsx as l } from "react/jsx-runtime";
|
|
2
2
|
import o from "../../../../../external/classnames/index.es.js";
|
|
3
|
-
import
|
|
4
|
-
import { useBreakpointProps as
|
|
5
|
-
const
|
|
6
|
-
const { getCurrentBreakpointProps: r } =
|
|
3
|
+
import p from "./vertical-spacing.module.scss.es.js";
|
|
4
|
+
import { useBreakpointProps as d } from "../../../helpers/hooks/use-breakpoint-props.es.js";
|
|
5
|
+
const B = (e) => {
|
|
6
|
+
const { getCurrentBreakpointProps: r } = d(e.defaultServerBreakpoint), {
|
|
7
7
|
children: a,
|
|
8
8
|
className: i,
|
|
9
9
|
element: s = "div",
|
|
10
10
|
size: t = 1,
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
11
|
+
style: n,
|
|
12
|
+
...m
|
|
13
|
+
} = r(e), c = o(p["tedi-vertical-spacing__item"], i);
|
|
14
|
+
return /* @__PURE__ */ l(
|
|
14
15
|
s,
|
|
15
16
|
{
|
|
16
17
|
"data-name": "vertical-spacing-item",
|
|
17
|
-
...
|
|
18
|
-
style: { "--vertical-spacing-internal": `${t}${t !== 0 ? "em" : ""}
|
|
19
|
-
className:
|
|
18
|
+
...m,
|
|
19
|
+
style: { "--vertical-spacing-internal": `${t}${t !== 0 ? "em" : ""}`, ...n },
|
|
20
|
+
className: c,
|
|
20
21
|
children: a
|
|
21
22
|
}
|
|
22
23
|
);
|
|
23
24
|
};
|
|
24
25
|
export {
|
|
25
|
-
|
|
26
|
-
|
|
26
|
+
B as VerticalSpacingItem,
|
|
27
|
+
B as default
|
|
27
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("react/jsx-runtime"),p=require("../../../../../external/classnames/index.cjs.js"),g=require("./vertical-spacing.module.scss.cjs.js"),m=require("./vertical-spacing-item.cjs.js"),d=require("../../../helpers/hooks/use-breakpoint-props.cjs.js"),r=e=>{const{getCurrentBreakpointProps:i}=d.useBreakpointProps(e.defaultServerBreakpoint),{children:a,className:n,element:c="div",size:t=1,style:s,...l}=i(e),o=p.default(g.default["tedi-vertical-spacing"],n);return u.jsx(c,{"data-name":"vertical-spacing",role:"presentation",...l,className:o,style:{"--vertical-spacing-internal":t!==0?`${t}em`:"0",...s},children:a})};r.Item=m.VerticalSpacingItem;exports.VerticalSpacing=r;
|
|
@@ -22,6 +22,11 @@ export interface VerticalSpacingProps extends BreakpointSupport<VerticalSpacingB
|
|
|
22
22
|
* Additional class name(s) to apply to the element
|
|
23
23
|
*/
|
|
24
24
|
className?: string;
|
|
25
|
+
/**
|
|
26
|
+
* Additional inline styles, merged with the internal spacing custom property
|
|
27
|
+
* (rather than replacing it).
|
|
28
|
+
*/
|
|
29
|
+
style?: React.CSSProperties;
|
|
25
30
|
}
|
|
26
31
|
export declare const VerticalSpacing: {
|
|
27
32
|
(props: VerticalSpacingProps): JSX.Element;
|
|
@@ -1,29 +1,30 @@
|
|
|
1
|
-
import { jsx as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import { VerticalSpacingItem as
|
|
5
|
-
import { useBreakpointProps as
|
|
6
|
-
const
|
|
7
|
-
const { getCurrentBreakpointProps: r } =
|
|
1
|
+
import { jsx as m } from "react/jsx-runtime";
|
|
2
|
+
import l from "../../../../../external/classnames/index.es.js";
|
|
3
|
+
import p from "./vertical-spacing.module.scss.es.js";
|
|
4
|
+
import { VerticalSpacingItem as g } from "./vertical-spacing-item.es.js";
|
|
5
|
+
import { useBreakpointProps as f } from "../../../helpers/hooks/use-breakpoint-props.es.js";
|
|
6
|
+
const d = (e) => {
|
|
7
|
+
const { getCurrentBreakpointProps: r } = f(e.defaultServerBreakpoint), {
|
|
8
8
|
children: a,
|
|
9
9
|
className: i,
|
|
10
|
-
element:
|
|
10
|
+
element: s = "div",
|
|
11
11
|
size: t = 1,
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
style: n,
|
|
13
|
+
...o
|
|
14
|
+
} = r(e), c = l(p["tedi-vertical-spacing"], i);
|
|
15
|
+
return /* @__PURE__ */ m(
|
|
16
|
+
s,
|
|
16
17
|
{
|
|
17
18
|
"data-name": "vertical-spacing",
|
|
18
19
|
role: "presentation",
|
|
19
|
-
...
|
|
20
|
-
className:
|
|
21
|
-
style: { "--vertical-spacing-internal": t !== 0 ? `${t}em` : "0" },
|
|
20
|
+
...o,
|
|
21
|
+
className: c,
|
|
22
|
+
style: { "--vertical-spacing-internal": t !== 0 ? `${t}em` : "0", ...n },
|
|
22
23
|
children: a
|
|
23
24
|
}
|
|
24
25
|
);
|
|
25
26
|
};
|
|
26
|
-
|
|
27
|
+
d.Item = g;
|
|
27
28
|
export {
|
|
28
|
-
|
|
29
|
+
d as VerticalSpacing
|
|
29
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Q=require("react/jsx-runtime"),t=require("../../../../../external/@floating-ui/react/dist/floating-ui.react.cjs.js"),n=require("react"),X=require("./overlay-content.cjs.js"),Y=require("./overlay-trigger.cjs.js"),Z=require("../../../helpers/hooks/use-is-touch-device.cjs.js"),$=require("../../../helpers/hooks/use-is-mounted.cjs.js"),S=require("../../../../../external/@floating-ui/dom/dist/floating-ui.dom.cjs.js"),i=require("../../../../../external/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.js"),D=3,E=n.createContext({open:!1,onOpenChange:()=>{},isMounted:!1,openWith:"hover",reference:()=>{},floating:()=>{},focusManager:{},arrowRef:{current:null},x:0,y:0,strategy:"absolute",getReferenceProps:()=>({}),getFloatingProps:()=>({}),arrow:{width:0,height:0,x:0,y:0,centerOffset:0},placement:"top",context:{},scrollLock:void 0,contentId:""}),u=H=>{const L=Z.useIsTouchDevice(),{children:W,placement:A="top",openWith:
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const Q=require("react/jsx-runtime"),t=require("../../../../../external/@floating-ui/react/dist/floating-ui.react.cjs.js"),n=require("react"),X=require("./overlay-content.cjs.js"),Y=require("./overlay-trigger.cjs.js"),Z=require("../../../helpers/hooks/use-is-touch-device.cjs.js"),$=require("../../../helpers/hooks/use-is-mounted.cjs.js"),S=require("../../../../../external/@floating-ui/dom/dist/floating-ui.dom.cjs.js"),i=require("../../../../../external/@floating-ui/react-dom/dist/floating-ui.react-dom.cjs.js"),D=3,E=n.createContext({open:!1,onOpenChange:()=>{},isMounted:!1,openWith:"hover",reference:()=>{},floating:()=>{},focusManager:{},arrowRef:{current:null},x:0,y:0,strategy:"absolute",getReferenceProps:()=>({}),getFloatingProps:()=>({}),arrow:{width:0,height:0,x:0,y:0,centerOffset:0},placement:"top",context:{},scrollLock:void 0,contentId:""}),u=H=>{const L=Z.useIsTouchDevice(),{children:W,placement:A="top",openWith:r=L?"click":"hover",defaultOpen:G=!1,open:a,onToggle:s,role:d="tooltip",ariaHidden:f=!1,arrowDimensions:e,offset:V=D+((e==null?void 0:e.height)??0),arrowPadding:z=4,focusManager:g,dismissible:O,scrollLock:M,trackReferencePosition:B=!1}=H,{order:m=["reference","content"],initialFocus:x,modal:p,...C}=g??{},F=x!==void 0?x:p?0:void 0,[P,R]=n.useState(G),h=n.useRef(null),b=$.useIsMounted(),v=n.useMemo(()=>s&&typeof a<"u"?a:P,[s,a,P]),y=n.useCallback(l=>{typeof a>"u"&&R(l),s==null||s(l)},[a,R,s]),{x:q,y:I,refs:c,strategy:k,context:o,middlewareData:w,placement:T}=t.useFloating({placement:A,open:v,onOpenChange:y,middleware:[i.offset(V),i.flip(),i.shift({padding:8}),i.arrow({element:h,padding:z})],whileElementsMounted:B?(l,K,N)=>S.autoUpdate(l,K,N,{animationFrame:!0}):S.autoUpdate}),{getReferenceProps:U,getFloatingProps:_}=t.useInteractions([t.useHover(o,{enabled:r==="hover",handleClose:t.safePolygon()}),t.useClick(o,{enabled:r==="click",toggle:O}),t.useFocus(o,{enabled:r==="hover"}),t.useRole(o,{role:d,enabled:!f}),t.useDismiss(o,{enabled:O,outsidePressEvent:r==="click"?"mousedown":"pointerdown"})]),j=n.useId(),J=n.useMemo(()=>({open:v,onOpenChange:y,isMounted:b,openWith:r,focusManager:g?{order:m,modal:p,initialFocus:F,...C}:void 0,reference:c.setReference,floating:c.setFloating,arrowRef:h,x:q,y:I,strategy:k,getReferenceProps:U,getFloatingProps:_,arrow:{width:e==null?void 0:e.width,height:e==null?void 0:e.height,...w.arrow},context:o,placement:T,scrollLock:M,role:d,ariaHidden:f,contentId:j}),[v,y,b,r,g,c.setReference,c.setFloating,h,q,I,k,U,_,e==null?void 0:e.width,e==null?void 0:e.height,w.arrow,o,T,M,d,f,j,p,m,F,C]);return Q.jsx(E.Provider,{value:J,children:W})};u.Trigger=Y.OverlayTrigger;u.Content=X.OverlayContent;exports.Overlay=u;exports.OverlayContext=E;exports.default=u;
|