@sbb-esta/lyne-react 2.2.0 → 2.4.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 (145) hide show
  1. package/accordion.js +1 -1
  2. package/action-group.js +1 -1
  3. package/alert/alert-group.js +1 -1
  4. package/alert/alert.js +1 -1
  5. package/autocomplete-grid/autocomplete-grid-button.js +1 -1
  6. package/autocomplete-grid/autocomplete-grid-cell.js +1 -1
  7. package/autocomplete-grid/autocomplete-grid-optgroup.js +1 -1
  8. package/autocomplete-grid/autocomplete-grid-option.js +1 -1
  9. package/autocomplete-grid/autocomplete-grid-row.js +1 -1
  10. package/autocomplete-grid/autocomplete-grid.js +1 -1
  11. package/autocomplete.js +1 -1
  12. package/breadcrumb/breadcrumb-group.js +1 -1
  13. package/breadcrumb/breadcrumb.js +1 -1
  14. package/button/accent-button-link.js +1 -1
  15. package/button/accent-button-static.js +1 -1
  16. package/button/accent-button.js +1 -1
  17. package/button/button-link.js +1 -1
  18. package/button/button-static.js +1 -1
  19. package/button/button.js +1 -1
  20. package/button/mini-button-group.js +1 -1
  21. package/button/mini-button.js +1 -1
  22. package/button/secondary-button-link.js +1 -1
  23. package/button/secondary-button-static.js +1 -1
  24. package/button/secondary-button.js +1 -1
  25. package/button/transparent-button-link.js +1 -1
  26. package/button/transparent-button-static.js +1 -1
  27. package/button/transparent-button.js +1 -1
  28. package/calendar.js +1 -1
  29. package/card/card-badge.js +1 -1
  30. package/card/card-button.js +1 -1
  31. package/card/card-link.js +1 -1
  32. package/card/card.js +1 -1
  33. package/checkbox/checkbox-group.js +1 -1
  34. package/checkbox/checkbox-panel.js +1 -1
  35. package/checkbox/checkbox.js +1 -1
  36. package/chip-label.js +1 -1
  37. package/clock.js +1 -1
  38. package/container/container.js +1 -1
  39. package/container/sticky-bar.js +1 -1
  40. package/core/create-component.d.ts.map +1 -1
  41. package/core.js +1 -1
  42. package/create-component-DKl3-Au3.js +72 -0
  43. package/date-input.d.ts +7 -0
  44. package/date-input.d.ts.map +1 -0
  45. package/date-input.js +15 -0
  46. package/datepicker/datepicker-next-day.js +1 -1
  47. package/datepicker/datepicker-previous-day.js +1 -1
  48. package/datepicker/datepicker-toggle.js +1 -1
  49. package/datepicker/datepicker.js +1 -1
  50. package/development/core/create-component.d.ts.map +1 -1
  51. package/development/date-input.d.ts +7 -0
  52. package/development/date-input.d.ts.map +1 -0
  53. package/development/date-input.js +15 -0
  54. package/dialog/dialog-actions.js +1 -1
  55. package/dialog/dialog-content.js +1 -1
  56. package/dialog/dialog-title.js +1 -1
  57. package/dialog/dialog.js +1 -1
  58. package/divider.js +1 -1
  59. package/expansion-panel/expansion-panel-content.js +1 -1
  60. package/expansion-panel/expansion-panel-header.js +1 -1
  61. package/expansion-panel/expansion-panel.js +1 -1
  62. package/file-selector/file-selector-dropzone.js +1 -1
  63. package/file-selector/file-selector.js +1 -1
  64. package/flip-card/flip-card-details.js +1 -1
  65. package/flip-card/flip-card-summary.js +1 -1
  66. package/flip-card/flip-card.js +1 -1
  67. package/footer.js +1 -1
  68. package/form-error.js +1 -1
  69. package/form-field/form-field-clear.js +1 -1
  70. package/form-field/form-field.js +1 -1
  71. package/header/header-button.js +1 -1
  72. package/header/header-link.js +1 -1
  73. package/header/header.js +1 -1
  74. package/icon.js +1 -1
  75. package/image.js +1 -1
  76. package/journey-header.js +1 -1
  77. package/lead-container.js +1 -1
  78. package/link/block-link-button.js +1 -1
  79. package/link/block-link-static.js +1 -1
  80. package/link/block-link.js +1 -1
  81. package/link/link-button.js +1 -1
  82. package/link/link-static.js +1 -1
  83. package/link/link.js +1 -1
  84. package/link-list/link-list-anchor.js +1 -1
  85. package/link-list/link-list.js +1 -1
  86. package/loading-indicator-circle.js +1 -1
  87. package/loading-indicator.js +1 -1
  88. package/logo.js +1 -1
  89. package/map-container.js +1 -1
  90. package/menu/menu-button.js +1 -1
  91. package/menu/menu-link.js +1 -1
  92. package/menu/menu.js +1 -1
  93. package/message.js +1 -1
  94. package/navigation/navigation-button.js +1 -1
  95. package/navigation/navigation-link.js +1 -1
  96. package/navigation/navigation-list.js +1 -1
  97. package/navigation/navigation-marker.js +1 -1
  98. package/navigation/navigation-section.js +1 -1
  99. package/navigation/navigation.js +1 -1
  100. package/notification.js +1 -1
  101. package/option/optgroup.js +1 -1
  102. package/option/option.js +1 -1
  103. package/overlay.js +1 -1
  104. package/package.json +12 -2
  105. package/paginator/compact-paginator.js +1 -1
  106. package/paginator/paginator.js +1 -1
  107. package/popover/popover-trigger.js +1 -1
  108. package/popover/popover.js +1 -1
  109. package/radio-button/radio-button-group.js +1 -1
  110. package/radio-button/radio-button-panel.js +1 -1
  111. package/radio-button/radio-button.js +1 -1
  112. package/screen-reader-only.js +1 -1
  113. package/select.js +1 -1
  114. package/selection-expansion-panel.js +1 -1
  115. package/signet.js +1 -1
  116. package/skiplink-list.js +1 -1
  117. package/slider.js +1 -1
  118. package/status.js +1 -1
  119. package/stepper/step-label.js +1 -1
  120. package/stepper/step.js +1 -1
  121. package/stepper/stepper.js +1 -1
  122. package/table/table-wrapper.js +1 -1
  123. package/tabs/tab-group.js +1 -1
  124. package/tabs/tab-label.js +1 -1
  125. package/tabs/tab.js +1 -1
  126. package/tag/tag-group.js +1 -1
  127. package/tag/tag.js +1 -1
  128. package/teaser-hero.js +1 -1
  129. package/teaser-product/teaser-product-static.js +1 -1
  130. package/teaser-product/teaser-product.js +1 -1
  131. package/teaser.js +1 -1
  132. package/time-input.js +1 -1
  133. package/timetable-occupancy-icon.js +1 -1
  134. package/timetable-occupancy.js +1 -1
  135. package/title.js +1 -1
  136. package/toast.js +1 -1
  137. package/toggle/toggle-option.js +1 -1
  138. package/toggle/toggle.js +1 -1
  139. package/toggle-check.js +1 -1
  140. package/train/train-blocked-passage.js +1 -1
  141. package/train/train-formation.js +1 -1
  142. package/train/train-wagon.js +1 -1
  143. package/train/train.js +1 -1
  144. package/visual-checkbox.js +1 -1
  145. package/create-component-as6VKs1g.js +0 -72
@@ -1,72 +0,0 @@
1
- import { isServer as L } from "lit";
2
- /**
3
- * Copied from https://github.com/lit/lit/blob/main/packages/react/src/create-component.ts
4
- * TODO: Can be removed once https://github.com/lit/lit/issues/4023 or https://github.com/lit/lit/pull/4476 is solved.
5
- *
6
- * @license
7
- * Copyright 2018 Google LLC
8
- * SPDX-License-Identifier: BSD-3-Clause
9
- */
10
- const P = L, M = /* @__PURE__ */ new Set([
11
- "children",
12
- "localName",
13
- "ref",
14
- "style",
15
- "className",
16
- "id"
17
- ]), g = /* @__PURE__ */ new WeakMap(), N = (t, s, r) => {
18
- let i = g.get(t);
19
- i === void 0 && g.set(t, i = /* @__PURE__ */ new Map());
20
- let o = i.get(s);
21
- r !== void 0 ? o === void 0 ? (i.set(s, o = { handleEvent: r }), t.addEventListener(s, o)) : o.handleEvent = r : o !== void 0 && (i.delete(s), t.removeEventListener(s, o));
22
- }, k = (t, s, r, i, o) => {
23
- const d = o == null ? void 0 : o[s];
24
- if (d !== void 0) {
25
- r !== i && N(t, d, r);
26
- return;
27
- }
28
- t[s] = r, r == null && s in HTMLElement.prototype && t.removeAttribute(s);
29
- }, j = ({ react: t, tagName: s, elementClass: r, events: i, displayName: o }) => {
30
- const d = new Set(Object.keys(i ?? {})), y = t.forwardRef((E, l) => {
31
- var h;
32
- const p = t.useRef(/* @__PURE__ */ new Map()), a = t.useRef(null), f = {}, u = {}, m = r.elementProperties;
33
- for (const [e, n] of Object.entries(E)) {
34
- if (M.has(e)) {
35
- f[e === "className" ? "class" : e] = n;
36
- continue;
37
- } else if (d.has(e) || e in r.prototype) {
38
- const c = m == null ? void 0 : m.get(e), b = (h = c == null ? void 0 : c.converter) == null ? void 0 : h.toAttribute;
39
- if (!c || c.attribute === !1 || typeof n == "object" && !b) {
40
- u[e] = n;
41
- continue;
42
- }
43
- const w = c.attribute === !0 ? e : c.attribute || e;
44
- c.type !== Boolean ? f[w] = b ? b(n) : n : n ? (f[w] = "", u[e] = n) : u[e] = !1;
45
- continue;
46
- }
47
- f[e] = n;
48
- }
49
- return P || (t.useLayoutEffect(() => {
50
- if (a.current === null)
51
- return;
52
- const e = /* @__PURE__ */ new Map();
53
- for (const n in u)
54
- k(a.current, n, E[n], p.current.get(n), i), p.current.delete(n), e.set(n, E[n]);
55
- for (const [n, c] of p.current)
56
- k(a.current, n, void 0, c, i);
57
- p.current = e;
58
- }), t.useLayoutEffect(() => {
59
- var e;
60
- (e = a.current) == null || e.removeAttribute("defer-hydration");
61
- }, [])), P ? (t.createElement.name === "litPatchedCreateElement" || globalThis.litSsrReactEnabled) && Object.keys(u).length && (f._$litProps$ = u) : f.suppressHydrationWarning = !0, t.createElement(s, {
62
- ...f,
63
- ref: t.useCallback((e) => {
64
- a.current = e, typeof l == "function" ? l(e) : l !== null && (l.current = e);
65
- }, [l])
66
- });
67
- });
68
- return y.displayName = o ?? r.name, y;
69
- };
70
- export {
71
- j as c
72
- };