@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.
Files changed (29) hide show
  1. package/_virtual/index.es13.js +2 -2
  2. package/_virtual/index.es14.js +2 -2
  3. package/bundle-stats.html +1 -1
  4. package/external/react-is/index.cjs.js +1 -1
  5. package/external/react-is/index.es.js +1 -1
  6. package/external/toposort/index.cjs.js +1 -1
  7. package/external/toposort/index.es.js +1 -1
  8. package/index.css +1 -1
  9. package/package.json +1 -1
  10. package/src/community/components/map-components/button-group/button-group.cjs.js +1 -1
  11. package/src/community/components/map-components/button-group/button-group.es.js +18 -14
  12. package/src/community/components/map-components/map-button/map-button.cjs.js +1 -1
  13. package/src/community/components/map-components/map-button/map-button.es.js +34 -33
  14. package/src/tedi/components/content/list/list-item.cjs.js +1 -1
  15. package/src/tedi/components/content/list/list-item.d.ts +1 -1
  16. package/src/tedi/components/content/list/list-item.es.js +8 -8
  17. package/src/tedi/components/content/list/list.cjs.js +1 -1
  18. package/src/tedi/components/content/list/list.d.ts +1 -1
  19. package/src/tedi/components/content/list/list.es.js +29 -23
  20. package/src/tedi/components/content/list/list.module.scss.cjs.js +1 -1
  21. package/src/tedi/components/content/list/list.module.scss.es.js +3 -2
  22. package/src/tedi/components/layout/vertical-spacing/vertical-spacing-item.cjs.js +1 -1
  23. package/src/tedi/components/layout/vertical-spacing/vertical-spacing-item.d.ts +5 -0
  24. package/src/tedi/components/layout/vertical-spacing/vertical-spacing-item.es.js +14 -13
  25. package/src/tedi/components/layout/vertical-spacing/vertical-spacing.cjs.js +1 -1
  26. package/src/tedi/components/layout/vertical-spacing/vertical-spacing.d.ts +5 -0
  27. package/src/tedi/components/layout/vertical-spacing/vertical-spacing.es.js +18 -17
  28. package/src/tedi/components/overlays/overlay/overlay.cjs.js +1 -1
  29. package/src/tedi/components/overlays/overlay/overlay.es.js +29 -28
@@ -1,8 +1,8 @@
1
1
  import { jsx as K } from "react/jsx-runtime";
2
2
  import { useFloating as N, useInteractions as Q, useHover as X, safePolygon as Y, useClick as Z, useFocus as _, useRole as $, useDismiss as D } from "../../../../../external/@floating-ui/react/dist/floating-ui.react.es.js";
3
3
  import { useState as ee, useRef as te, useMemo as E, useCallback as oe, useId as ne, createContext as re } from "react";
4
- import { OverlayContent as se } from "./overlay-content.es.js";
5
- import { OverlayTrigger as ae } from "./overlay-trigger.es.js";
4
+ import { OverlayContent as ae } from "./overlay-content.es.js";
5
+ import { OverlayTrigger as se } from "./overlay-trigger.es.js";
6
6
  import { useIsTouchDevice as le } from "../../../helpers/hooks/use-is-touch-device.es.js";
7
7
  import { useIsMounted as ce } from "../../../helpers/hooks/use-is-mounted.es.js";
8
8
  import { autoUpdate as H } from "../../../../../external/@floating-ui/dom/dist/floating-ui.dom.es.js";
@@ -39,10 +39,10 @@ const pe = 3, ge = re({
39
39
  const j = le(), {
40
40
  children: A,
41
41
  placement: G = "top",
42
- openWith: n = j ? "click" : "hover",
42
+ openWith: o = j ? "click" : "hover",
43
43
  defaultOpen: S = !1,
44
44
  open: r,
45
- onToggle: o,
45
+ onToggle: n,
46
46
  role: l = "tooltip",
47
47
  ariaHidden: c = !1,
48
48
  arrowDimensions: e,
@@ -52,12 +52,12 @@ const pe = 3, ge = re({
52
52
  dismissible: g,
53
53
  scrollLock: h,
54
54
  trackReferencePosition: q = !1
55
- } = W, { order: m = ["reference", "content"], initialFocus: v, modal: f, ...y } = i ?? {}, O = v !== void 0 ? v : f ? 0 : void 0, [x, F] = ee(S), d = te(null), P = ce(), u = E(() => o && typeof r < "u" ? r : x, [o, r, x]), p = oe(
56
- (a) => {
57
- typeof r > "u" && F(a), o == null || o(a);
55
+ } = W, { order: m = ["reference", "content"], initialFocus: v, modal: f, ...y } = i ?? {}, O = v !== void 0 ? v : f ? 0 : void 0, [x, F] = ee(S), d = te(null), P = ce(), u = E(() => n && typeof r < "u" ? r : x, [n, r, x]), p = oe(
56
+ (s) => {
57
+ typeof r > "u" && F(s), n == null || n(s);
58
58
  },
59
- [r, F, o]
60
- ), { x: C, y: M, refs: s, strategy: R, context: t, middlewareData: w, placement: b } = N({
59
+ [r, F, n]
60
+ ), { x: C, y: M, refs: a, strategy: R, context: t, middlewareData: b, placement: k } = N({
61
61
  placement: G,
62
62
  open: u,
63
63
  onOpenChange: p,
@@ -70,50 +70,51 @@ const pe = 3, ge = re({
70
70
  padding: V
71
71
  })
72
72
  ],
73
- whileElementsMounted: q ? (a, B, J) => H(a, B, J, { animationFrame: !0 }) : H
74
- }), { getReferenceProps: k, getFloatingProps: I } = Q([
73
+ whileElementsMounted: q ? (s, B, J) => H(s, B, J, { animationFrame: !0 }) : H
74
+ }), { getReferenceProps: w, getFloatingProps: I } = Q([
75
75
  X(t, {
76
- enabled: n === "hover",
76
+ enabled: o === "hover",
77
77
  handleClose: Y()
78
78
  }),
79
79
  Z(t, {
80
+ enabled: o === "click",
80
81
  toggle: g
81
82
  }),
82
83
  _(t, {
83
- enabled: n === "hover"
84
+ enabled: o === "hover"
84
85
  }),
85
86
  $(t, { role: l, enabled: !c }),
86
87
  D(t, {
87
88
  enabled: g,
88
- outsidePressEvent: n === "click" ? "mousedown" : "pointerdown"
89
+ outsidePressEvent: o === "click" ? "mousedown" : "pointerdown"
89
90
  })
90
91
  ]), T = ne(), z = E(
91
92
  () => ({
92
93
  open: u,
93
94
  onOpenChange: p,
94
95
  isMounted: P,
95
- openWith: n,
96
+ openWith: o,
96
97
  focusManager: i ? {
97
98
  order: m,
98
99
  modal: f,
99
100
  initialFocus: O,
100
101
  ...y
101
102
  } : void 0,
102
- reference: s.setReference,
103
- floating: s.setFloating,
103
+ reference: a.setReference,
104
+ floating: a.setFloating,
104
105
  arrowRef: d,
105
106
  x: C,
106
107
  y: M,
107
108
  strategy: R,
108
- getReferenceProps: k,
109
+ getReferenceProps: w,
109
110
  getFloatingProps: I,
110
111
  arrow: {
111
112
  width: e == null ? void 0 : e.width,
112
113
  height: e == null ? void 0 : e.height,
113
- ...w.arrow
114
+ ...b.arrow
114
115
  },
115
116
  context: t,
116
- placement: b,
117
+ placement: k,
117
118
  scrollLock: h,
118
119
  role: l,
119
120
  ariaHidden: c,
@@ -123,21 +124,21 @@ const pe = 3, ge = re({
123
124
  u,
124
125
  p,
125
126
  P,
126
- n,
127
+ o,
127
128
  i,
128
- s.setReference,
129
- s.setFloating,
129
+ a.setReference,
130
+ a.setFloating,
130
131
  d,
131
132
  C,
132
133
  M,
133
134
  R,
134
- k,
135
+ w,
135
136
  I,
136
137
  e == null ? void 0 : e.width,
137
138
  e == null ? void 0 : e.height,
138
- w.arrow,
139
+ b.arrow,
139
140
  t,
140
- b,
141
+ k,
141
142
  h,
142
143
  l,
143
144
  c,
@@ -150,8 +151,8 @@ const pe = 3, ge = re({
150
151
  );
151
152
  return /* @__PURE__ */ K(ge.Provider, { value: z, children: A });
152
153
  };
153
- L.Trigger = ae;
154
- L.Content = se;
154
+ L.Trigger = se;
155
+ L.Content = ae;
155
156
  export {
156
157
  L as Overlay,
157
158
  ge as OverlayContext,