@sbb-esta/lyne-react 1.14.1 → 1.15.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.
- package/accordion.js +6 -7
- package/action-group.js +6 -7
- package/alert/alert-group.js +6 -7
- package/alert/alert.js +6 -7
- package/autocomplete-grid/autocomplete-grid-button.d.ts +1 -2
- package/autocomplete-grid/autocomplete-grid-button.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid-button.js +7 -8
- package/autocomplete-grid/autocomplete-grid-cell.js +4 -5
- package/autocomplete-grid/autocomplete-grid-optgroup.js +6 -7
- package/autocomplete-grid/autocomplete-grid-option.d.ts +5 -5
- package/autocomplete-grid/autocomplete-grid-option.d.ts.map +1 -1
- package/autocomplete-grid/autocomplete-grid-option.js +7 -8
- package/autocomplete-grid/autocomplete-grid-row.js +3 -4
- package/autocomplete-grid/autocomplete-grid.js +6 -7
- package/autocomplete.js +6 -7
- package/breadcrumb/breadcrumb-group.js +6 -7
- package/breadcrumb/breadcrumb.js +6 -7
- package/button/button-link.js +6 -7
- package/button/button-static.js +6 -7
- package/button/button.js +6 -7
- package/button/mini-button-group.js +6 -7
- package/button/mini-button.d.ts +1 -2
- package/button/mini-button.d.ts.map +1 -1
- package/button/mini-button.js +5 -6
- package/button/secondary-button-link.js +6 -7
- package/button/secondary-button-static.js +4 -5
- package/button/secondary-button.js +6 -7
- package/button/tertiary-button-link.js +4 -5
- package/button/tertiary-button-static.js +6 -7
- package/button/tertiary-button.js +6 -7
- package/button/transparent-button-link.js +6 -7
- package/button/transparent-button-static.js +3 -4
- package/button/transparent-button.js +6 -7
- package/calendar.js +6 -7
- package/card/card-badge.js +3 -4
- package/card/card-button.js +6 -7
- package/card/card-link.js +3 -4
- package/card/card.js +3 -4
- package/checkbox/checkbox-group.d.ts +1 -2
- package/checkbox/checkbox-group.d.ts.map +1 -1
- package/checkbox/checkbox-group.js +6 -7
- package/checkbox/checkbox-panel.d.ts +6 -6
- package/checkbox/checkbox-panel.d.ts.map +1 -1
- package/checkbox/checkbox-panel.js +5 -6
- package/checkbox/checkbox.d.ts +6 -6
- package/checkbox/checkbox.d.ts.map +1 -1
- package/checkbox/checkbox.js +5 -6
- package/chip.js +6 -7
- package/clock.js +3 -4
- package/container/container.d.ts +1 -2
- package/container/container.d.ts.map +1 -1
- package/container/container.js +8 -9
- package/container/sticky-bar.d.ts +7 -1
- package/container/sticky-bar.d.ts.map +1 -1
- package/container/sticky-bar.js +12 -7
- package/core.d.ts +0 -1
- package/core.d.ts.map +1 -1
- package/core.js +2 -5
- package/datepicker/datepicker-next-day.js +6 -7
- package/datepicker/datepicker-previous-day.js +6 -7
- package/datepicker/datepicker-toggle.js +6 -7
- package/datepicker/datepicker.js +6 -7
- package/development/accordion.js +1 -2
- package/development/action-group.js +1 -2
- package/development/alert/alert-group.js +1 -2
- package/development/alert/alert.js +1 -2
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts +1 -2
- package/development/autocomplete-grid/autocomplete-grid-button.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-button.js +2 -3
- package/development/autocomplete-grid/autocomplete-grid-cell.js +1 -2
- package/development/autocomplete-grid/autocomplete-grid-optgroup.js +1 -2
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts +5 -5
- package/development/autocomplete-grid/autocomplete-grid-option.d.ts.map +1 -1
- package/development/autocomplete-grid/autocomplete-grid-option.js +2 -3
- package/development/autocomplete-grid/autocomplete-grid-row.js +1 -2
- package/development/autocomplete-grid/autocomplete-grid.js +1 -2
- package/development/autocomplete.js +1 -2
- package/development/breadcrumb/breadcrumb-group.js +1 -2
- package/development/breadcrumb/breadcrumb.js +1 -2
- package/development/button/button-link.js +1 -2
- package/development/button/button-static.js +1 -2
- package/development/button/button.js +1 -2
- package/development/button/mini-button-group.js +1 -2
- package/development/button/mini-button.d.ts +1 -2
- package/development/button/mini-button.d.ts.map +1 -1
- package/development/button/mini-button.js +2 -3
- package/development/button/secondary-button-link.js +1 -2
- package/development/button/secondary-button-static.js +1 -2
- package/development/button/secondary-button.js +1 -2
- package/development/button/tertiary-button-link.js +1 -2
- package/development/button/tertiary-button-static.js +1 -2
- package/development/button/tertiary-button.js +1 -2
- package/development/button/transparent-button-link.js +1 -2
- package/development/button/transparent-button-static.js +1 -2
- package/development/button/transparent-button.js +1 -2
- package/development/calendar.js +1 -2
- package/development/card/card-badge.js +1 -2
- package/development/card/card-button.js +1 -2
- package/development/card/card-link.js +1 -2
- package/development/card/card.js +1 -2
- package/development/checkbox/checkbox-group.d.ts +1 -2
- package/development/checkbox/checkbox-group.d.ts.map +1 -1
- package/development/checkbox/checkbox-group.js +2 -3
- package/development/checkbox/checkbox-panel.d.ts +6 -6
- package/development/checkbox/checkbox-panel.d.ts.map +1 -1
- package/development/checkbox/checkbox-panel.js +2 -3
- package/development/checkbox/checkbox.d.ts +6 -6
- package/development/checkbox/checkbox.d.ts.map +1 -1
- package/development/checkbox/checkbox.js +2 -3
- package/development/chip.js +1 -2
- package/development/clock.js +1 -2
- package/development/container/container.d.ts +1 -2
- package/development/container/container.d.ts.map +1 -1
- package/development/container/container.js +2 -3
- package/development/container/sticky-bar.d.ts +7 -1
- package/development/container/sticky-bar.d.ts.map +1 -1
- package/development/container/sticky-bar.js +8 -3
- package/development/core.d.ts +0 -1
- package/development/core.d.ts.map +1 -1
- package/development/core.js +1 -4
- package/development/datepicker/datepicker-next-day.js +1 -2
- package/development/datepicker/datepicker-previous-day.js +1 -2
- package/development/datepicker/datepicker-toggle.js +1 -2
- package/development/datepicker/datepicker.js +1 -2
- package/development/dialog/dialog-actions.js +1 -2
- package/development/dialog/dialog-content.js +1 -2
- package/development/dialog/dialog-title.js +1 -2
- package/development/dialog/dialog.js +1 -2
- package/development/divider.js +1 -2
- package/development/expansion-panel/expansion-panel-content.js +1 -2
- package/development/expansion-panel/expansion-panel-header.d.ts +4 -4
- package/development/expansion-panel/expansion-panel-header.d.ts.map +1 -1
- package/development/expansion-panel/expansion-panel-header.js +2 -3
- package/development/expansion-panel/expansion-panel.js +1 -2
- package/development/file-selector.d.ts +6 -6
- package/development/file-selector.d.ts.map +1 -1
- package/development/file-selector.js +2 -3
- package/development/flip-card/flip-card-details.js +1 -2
- package/development/flip-card/flip-card-summary.js +1 -2
- package/development/flip-card/flip-card.js +1 -2
- package/development/footer.js +1 -2
- package/development/form-error.js +1 -2
- package/development/form-field/form-field-clear.js +1 -2
- package/development/form-field/form-field.d.ts +1 -2
- package/development/form-field/form-field.d.ts.map +1 -1
- package/development/form-field/form-field.js +2 -3
- package/development/header/header-button.js +1 -2
- package/development/header/header-link.js +1 -2
- package/development/header/header.js +1 -2
- package/development/icon.js +1 -2
- package/development/image.js +1 -2
- package/development/journey-header.js +1 -2
- package/development/lead-container.js +1 -2
- package/development/link/block-link-button.js +1 -2
- package/development/link/block-link-static.js +1 -2
- package/development/link/block-link.js +1 -2
- package/development/link/link-button.js +1 -2
- package/development/link/link-static.js +1 -2
- package/development/link/link.js +1 -2
- package/development/link-list/link-list-anchor.d.ts +1 -2
- package/development/link-list/link-list-anchor.d.ts.map +1 -1
- package/development/link-list/link-list-anchor.js +2 -3
- package/development/link-list/link-list.d.ts +1 -2
- package/development/link-list/link-list.d.ts.map +1 -1
- package/development/link-list/link-list.js +2 -3
- package/development/loading-indicator.js +1 -2
- package/development/logo.js +1 -2
- package/development/map-container.js +1 -2
- package/development/menu/menu-button.js +1 -2
- package/development/menu/menu-link.js +1 -2
- package/development/menu/menu.js +1 -2
- package/development/message.js +1 -2
- package/development/navigation/navigation-button.js +1 -2
- package/development/navigation/navigation-link.js +1 -2
- package/development/navigation/navigation-list.d.ts +1 -2
- package/development/navigation/navigation-list.d.ts.map +1 -1
- package/development/navigation/navigation-list.js +2 -3
- package/development/navigation/navigation-marker.js +1 -2
- package/development/navigation/navigation-section.d.ts +1 -2
- package/development/navigation/navigation-section.d.ts.map +1 -1
- package/development/navigation/navigation-section.js +2 -3
- package/development/navigation/navigation.js +1 -2
- package/development/notification.d.ts +7 -7
- package/development/notification.d.ts.map +1 -1
- package/development/notification.js +2 -3
- package/development/option/optgroup.js +1 -2
- package/development/option/option.d.ts +5 -5
- package/development/option/option.d.ts.map +1 -1
- package/development/option/option.js +2 -3
- package/development/overlay.js +1 -2
- package/development/paginator/compact-paginator.js +1 -2
- package/development/paginator/paginator.js +1 -2
- package/development/popover/popover-trigger.js +1 -2
- package/development/popover/popover.js +1 -2
- package/development/radio-button/radio-button-group.d.ts +6 -6
- package/development/radio-button/radio-button-group.d.ts.map +1 -1
- package/development/radio-button/radio-button-group.js +2 -3
- package/development/radio-button/radio-button-panel.d.ts +1 -2
- package/development/radio-button/radio-button-panel.d.ts.map +1 -1
- package/development/radio-button/radio-button-panel.js +2 -3
- package/development/radio-button/radio-button.d.ts +1 -2
- package/development/radio-button/radio-button.d.ts.map +1 -1
- package/development/radio-button/radio-button.js +2 -3
- package/development/screen-reader-only.js +1 -2
- package/development/select.js +1 -2
- package/development/selection-expansion-panel.d.ts +7 -7
- package/development/selection-expansion-panel.d.ts.map +1 -1
- package/development/selection-expansion-panel.js +2 -3
- package/development/signet.js +1 -2
- package/development/skiplink-list.d.ts +1 -2
- package/development/skiplink-list.d.ts.map +1 -1
- package/development/skiplink-list.js +2 -3
- package/development/slider.js +1 -2
- package/development/status.d.ts +1 -2
- package/development/status.d.ts.map +1 -1
- package/development/status.js +2 -3
- package/development/stepper/step-label.js +1 -2
- package/development/stepper/step.js +1 -2
- package/development/stepper/stepper.js +1 -2
- package/development/table/table-wrapper.js +1 -2
- package/development/tabs/tab-group.js +1 -2
- package/development/tabs/tab-label.d.ts +1 -2
- package/development/tabs/tab-label.d.ts.map +1 -1
- package/development/tabs/tab-label.js +2 -3
- package/development/tabs/tab.js +1 -2
- package/development/tag/tag-group.js +1 -2
- package/development/tag/tag.d.ts +6 -6
- package/development/tag/tag.d.ts.map +1 -1
- package/development/tag/tag.js +2 -3
- package/development/teaser-hero.d.ts +1 -2
- package/development/teaser-hero.d.ts.map +1 -1
- package/development/teaser-hero.js +2 -3
- package/development/teaser-product/teaser-product-static.js +1 -2
- package/development/teaser-product/teaser-product.js +1 -2
- package/development/teaser.d.ts +1 -2
- package/development/teaser.d.ts.map +1 -1
- package/development/teaser.js +2 -3
- package/development/time-input.js +1 -2
- package/development/timetable-occupancy-icon.js +1 -2
- package/development/timetable-occupancy.js +1 -2
- package/development/title.js +1 -2
- package/development/toast.d.ts +7 -7
- package/development/toast.d.ts.map +1 -1
- package/development/toast.js +2 -3
- package/development/toggle/toggle-option.d.ts +1 -2
- package/development/toggle/toggle-option.d.ts.map +1 -1
- package/development/toggle/toggle-option.js +2 -3
- package/development/toggle/toggle.js +1 -2
- package/development/toggle-check.d.ts +6 -6
- package/development/toggle-check.d.ts.map +1 -1
- package/development/toggle-check.js +2 -3
- package/development/train/train-blocked-passage.js +1 -2
- package/development/train/train-formation.js +1 -2
- package/development/train/train-wagon.js +1 -2
- package/development/train/train.js +1 -2
- package/development/visual-checkbox.js +1 -2
- package/dialog/dialog-actions.js +6 -7
- package/dialog/dialog-content.js +6 -7
- package/dialog/dialog-title.js +7 -8
- package/dialog/dialog.js +6 -7
- package/divider.js +6 -7
- package/expansion-panel/expansion-panel-content.js +6 -7
- package/expansion-panel/expansion-panel-header.d.ts +4 -4
- package/expansion-panel/expansion-panel-header.d.ts.map +1 -1
- package/expansion-panel/expansion-panel-header.js +7 -8
- package/expansion-panel/expansion-panel.js +6 -7
- package/file-selector.d.ts +6 -6
- package/file-selector.d.ts.map +1 -1
- package/file-selector.js +7 -8
- package/flip-card/flip-card-details.js +7 -8
- package/flip-card/flip-card-summary.js +6 -7
- package/flip-card/flip-card.js +6 -7
- package/footer.js +3 -4
- package/form-error.js +6 -7
- package/form-field/form-field-clear.js +6 -7
- package/form-field/form-field.d.ts +1 -2
- package/form-field/form-field.d.ts.map +1 -1
- package/form-field/form-field.js +8 -9
- package/header/header-button.js +7 -8
- package/header/header-link.js +6 -7
- package/header/header.js +6 -7
- package/icon.js +3 -4
- package/image.js +6 -7
- package/journey-header.js +6 -7
- package/lead-container.js +6 -7
- package/link/block-link-button.js +6 -7
- package/link/block-link-static.js +6 -7
- package/link/block-link.js +3 -4
- package/link/link-button.js +6 -7
- package/link/link-static.js +6 -7
- package/link/link.js +6 -7
- package/link-list/link-list-anchor.d.ts +1 -2
- package/link-list/link-list-anchor.d.ts.map +1 -1
- package/link-list/link-list-anchor.js +7 -8
- package/link-list/link-list.d.ts +1 -2
- package/link-list/link-list.d.ts.map +1 -1
- package/link-list/link-list.js +6 -7
- package/loading-indicator.js +6 -7
- package/logo.js +3 -4
- package/map-container.js +7 -8
- package/menu/menu-button.js +6 -7
- package/menu/menu-link.js +4 -5
- package/menu/menu.js +6 -7
- package/message.js +6 -7
- package/navigation/navigation-button.js +6 -7
- package/navigation/navigation-link.js +6 -7
- package/navigation/navigation-list.d.ts +1 -2
- package/navigation/navigation-list.d.ts.map +1 -1
- package/navigation/navigation-list.js +4 -5
- package/navigation/navigation-marker.js +7 -8
- package/navigation/navigation-section.d.ts +1 -2
- package/navigation/navigation-section.d.ts.map +1 -1
- package/navigation/navigation-section.js +5 -6
- package/navigation/navigation.js +7 -8
- package/notification.d.ts +7 -7
- package/notification.d.ts.map +1 -1
- package/notification.js +7 -8
- package/option/optgroup.js +6 -7
- package/option/option.d.ts +5 -5
- package/option/option.d.ts.map +1 -1
- package/option/option.js +8 -9
- package/overlay.js +4 -5
- package/package.json +2 -2
- package/paginator/compact-paginator.js +6 -7
- package/paginator/paginator.js +3 -4
- package/popover/popover-trigger.js +6 -7
- package/popover/popover.js +7 -8
- package/radio-button/radio-button-group.d.ts +6 -6
- package/radio-button/radio-button-group.d.ts.map +1 -1
- package/radio-button/radio-button-group.js +5 -6
- package/radio-button/radio-button-panel.d.ts +1 -2
- package/radio-button/radio-button-panel.d.ts.map +1 -1
- package/radio-button/radio-button-panel.js +5 -6
- package/radio-button/radio-button.d.ts +1 -2
- package/radio-button/radio-button.d.ts.map +1 -1
- package/radio-button/radio-button.js +7 -8
- package/screen-reader-only.js +6 -7
- package/select.js +6 -7
- package/selection-expansion-panel.d.ts +7 -7
- package/selection-expansion-panel.d.ts.map +1 -1
- package/selection-expansion-panel.js +5 -6
- package/signet.js +6 -7
- package/skiplink-list.d.ts +1 -2
- package/skiplink-list.d.ts.map +1 -1
- package/skiplink-list.js +7 -8
- package/slider.js +4 -5
- package/status.d.ts +1 -2
- package/status.d.ts.map +1 -1
- package/status.js +7 -8
- package/stepper/step-label.js +6 -7
- package/stepper/step.js +6 -7
- package/stepper/stepper.js +6 -7
- package/table/table-wrapper.js +6 -7
- package/tabs/tab-group.js +6 -7
- package/tabs/tab-label.d.ts +1 -2
- package/tabs/tab-label.d.ts.map +1 -1
- package/tabs/tab-label.js +8 -9
- package/tabs/tab.js +6 -7
- package/tag/tag-group.js +6 -7
- package/tag/tag.d.ts +6 -6
- package/tag/tag.d.ts.map +1 -1
- package/tag/tag.js +8 -9
- package/teaser-hero.d.ts +1 -2
- package/teaser-hero.d.ts.map +1 -1
- package/teaser-hero.js +7 -8
- package/teaser-product/teaser-product-static.js +6 -7
- package/teaser-product/teaser-product.js +6 -7
- package/teaser.d.ts +1 -2
- package/teaser.d.ts.map +1 -1
- package/teaser.js +5 -6
- package/time-input.js +6 -7
- package/timetable-occupancy-icon.js +6 -7
- package/timetable-occupancy.js +4 -5
- package/title.js +4 -5
- package/toast.d.ts +7 -7
- package/toast.d.ts.map +1 -1
- package/toast.js +8 -9
- package/toggle/toggle-option.d.ts +1 -2
- package/toggle/toggle-option.d.ts.map +1 -1
- package/toggle/toggle-option.js +7 -8
- package/toggle/toggle.js +6 -7
- package/toggle-check.d.ts +6 -6
- package/toggle-check.d.ts.map +1 -1
- package/toggle-check.js +5 -6
- package/train/train-blocked-passage.js +6 -7
- package/train/train-formation.js +6 -7
- package/train/train-wagon.js +4 -5
- package/train/train.js +6 -7
- package/visual-checkbox.js +6 -7
- package/core/ssr-extensions.d.ts +0 -23
- package/core/ssr-extensions.d.ts.map +0 -1
- package/development/core/ssr-extensions.d.ts +0 -23
- package/development/core/ssr-extensions.d.ts.map +0 -1
- package/development/ssr-extensions-CqgUbNPR.js +0 -49
- package/ssr-extensions-DNMI7L0q.js +0 -37
package/tag/tag.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { EventName } from '../core.js';
|
|
1
2
|
import { SbbTagElement } from '@sbb-esta/lyne-elements/tag/tag.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} & Partial<Omit<SbbTagElement, keyof HTMLElement>> & react.RefAttributes<SbbTagElement>>;
|
|
3
|
+
export declare const SbbTag: import('../core.js').ReactWebComponent<SbbTagElement, {
|
|
4
|
+
onInput: EventName<CustomEvent<void>>;
|
|
5
|
+
onDidChange: EventName<CustomEvent<void>>;
|
|
6
|
+
onChange: EventName<CustomEvent<void>>;
|
|
7
|
+
}>;
|
|
8
8
|
//# sourceMappingURL=tag.d.ts.map
|
package/tag/tag.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/react/tag/tag.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tag.d.ts","sourceRoot":"","sources":["../../../src/react/tag/tag.ts"],"names":[],"mappings":"AACE,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AAInE,eAAO,MAAM,MAAM;aAKK,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;iBACpB,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;cAClC,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;EAGpD,CAAC"}
|
package/tag/tag.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const g = e(t({
|
|
1
|
+
import { c as e } from "../create-component-DKl3-Au3.js";
|
|
2
|
+
import { SbbTagElement as n } from "@sbb-esta/lyne-elements/tag/tag.js";
|
|
3
|
+
import t from "react";
|
|
4
|
+
const r = e({
|
|
6
5
|
tagName: "sbb-tag",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
6
|
+
elementClass: n,
|
|
7
|
+
react: t,
|
|
9
8
|
events: {
|
|
10
9
|
onInput: "input",
|
|
11
10
|
onDidChange: "didChange",
|
|
12
11
|
onChange: "change"
|
|
13
12
|
}
|
|
14
|
-
})
|
|
13
|
+
});
|
|
15
14
|
export {
|
|
16
|
-
|
|
15
|
+
r as SbbTag
|
|
17
16
|
};
|
package/teaser-hero.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { SbbTeaserHeroElement } from '@sbb-esta/lyne-elements/teaser-hero.js';
|
|
2
|
-
|
|
3
|
-
export declare const SbbTeaserHero: react.ComponentType<Omit<react.HTMLAttributes<SbbTeaserHeroElement>, "rel" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "renderOptions" | "href" | "target" | "download" | "accessibilityLabel" | "imageSrc" | "linkContent" | "imageAlt"> & {} & Partial<Omit<SbbTeaserHeroElement, keyof HTMLElement>> & react.RefAttributes<SbbTeaserHeroElement>>;
|
|
2
|
+
export declare const SbbTeaserHero: import('./core.js').ReactWebComponent<SbbTeaserHeroElement, {}>;
|
|
4
3
|
//# sourceMappingURL=teaser-hero.d.ts.map
|
package/teaser-hero.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teaser-hero.d.ts","sourceRoot":"","sources":["../../src/react/teaser-hero.ts"],"names":[],"mappings":"AAEE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"teaser-hero.d.ts","sourceRoot":"","sources":["../../src/react/teaser-hero.ts"],"names":[],"mappings":"AAEE,OAAO,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAC;AAI9E,eAAO,MAAM,aAAa,iEAIxB,CAAC"}
|
package/teaser-hero.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { c as e } from "./create-component-DKl3-Au3.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const p = r(e({
|
|
2
|
+
import { SbbTeaserHeroElement as r } from "@sbb-esta/lyne-elements/teaser-hero.js";
|
|
3
|
+
import o from "react";
|
|
4
|
+
const s = e({
|
|
6
5
|
tagName: "sbb-teaser-hero",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
9
|
-
})
|
|
6
|
+
elementClass: r,
|
|
7
|
+
react: o
|
|
8
|
+
});
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
s as SbbTeaserHero
|
|
12
11
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { c as t } from "../create-component-DKl3-Au3.js";
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const s = t({
|
|
2
|
+
import { SbbTeaserProductStaticElement as e } from "@sbb-esta/lyne-elements/teaser-product/teaser-product-static.js";
|
|
3
|
+
import r from "react";
|
|
4
|
+
const m = t({
|
|
6
5
|
tagName: "sbb-teaser-product-static",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
6
|
+
elementClass: e,
|
|
7
|
+
react: r
|
|
9
8
|
});
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
m as SbbTeaserProductStatic
|
|
12
11
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { c as e } from "../create-component-DKl3-Au3.js";
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const c = e({
|
|
2
|
+
import { SbbTeaserProductElement as r } from "@sbb-esta/lyne-elements/teaser-product/teaser-product.js";
|
|
3
|
+
import t from "react";
|
|
4
|
+
const s = e({
|
|
6
5
|
tagName: "sbb-teaser-product",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
6
|
+
elementClass: r,
|
|
7
|
+
react: t
|
|
9
8
|
});
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
s as SbbTeaserProduct
|
|
12
11
|
};
|
package/teaser.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { SbbTeaserElement } from '@sbb-esta/lyne-elements/teaser.js';
|
|
2
|
-
|
|
3
|
-
export declare const SbbTeaser: react.ComponentType<Omit<react.HTMLAttributes<SbbTeaserElement>, "rel" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "renderOptions" | "href" | "target" | "download" | "accessibilityLabel" | "titleLevel" | "titleContent" | "alignment" | "chipContent"> & {} & Partial<Omit<SbbTeaserElement, keyof HTMLElement>> & react.RefAttributes<SbbTeaserElement>>;
|
|
2
|
+
export declare const SbbTeaser: import('./core.js').ReactWebComponent<SbbTeaserElement, {}>;
|
|
4
3
|
//# sourceMappingURL=teaser.d.ts.map
|
package/teaser.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"teaser.d.ts","sourceRoot":"","sources":["../../src/react/teaser.ts"],"names":[],"mappings":"AAEE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;
|
|
1
|
+
{"version":3,"file":"teaser.d.ts","sourceRoot":"","sources":["../../src/react/teaser.ts"],"names":[],"mappings":"AAEE,OAAO,EAAE,gBAAgB,EAAE,MAAM,mCAAmC,CAAC;AAIrE,eAAO,MAAM,SAAS,6DAIpB,CAAC"}
|
package/teaser.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { c as e } from "./create-component-DKl3-Au3.js";
|
|
2
|
-
import { w as t } from "./ssr-extensions-DNMI7L0q.js";
|
|
3
2
|
import { SbbTeaserElement as r } from "@sbb-esta/lyne-elements/teaser.js";
|
|
4
|
-
import
|
|
5
|
-
const
|
|
3
|
+
import t from "react";
|
|
4
|
+
const s = e({
|
|
6
5
|
tagName: "sbb-teaser",
|
|
7
6
|
elementClass: r,
|
|
8
|
-
react:
|
|
9
|
-
})
|
|
7
|
+
react: t
|
|
8
|
+
});
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
s as SbbTeaser
|
|
12
11
|
};
|
package/time-input.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { c as e } from "./create-component-DKl3-Au3.js";
|
|
2
|
-
import "
|
|
3
|
-
import t from "react";
|
|
4
|
-
import { SbbTimeInputElement as n } from "@sbb-esta/lyne-elements/time-input.js";
|
|
2
|
+
import { SbbTimeInputElement as t } from "@sbb-esta/lyne-elements/time-input.js";
|
|
5
3
|
import "@sbb-esta/lyne-elements/core/interfaces.js";
|
|
6
|
-
|
|
4
|
+
import n from "react";
|
|
5
|
+
const r = e({
|
|
7
6
|
tagName: "sbb-time-input",
|
|
8
|
-
elementClass:
|
|
9
|
-
react:
|
|
7
|
+
elementClass: t,
|
|
8
|
+
react: n,
|
|
10
9
|
events: {
|
|
11
10
|
onDidChange: "didChange",
|
|
12
11
|
onValidationChange: "validationChange"
|
|
13
12
|
}
|
|
14
13
|
});
|
|
15
14
|
export {
|
|
16
|
-
|
|
15
|
+
r as SbbTimeInput
|
|
17
16
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { c as e } from "./create-component-DKl3-Au3.js";
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const r = e({
|
|
2
|
+
import { SbbTimetableOccupancyIconElement as c } from "@sbb-esta/lyne-elements/timetable-occupancy-icon.js";
|
|
3
|
+
import t from "react";
|
|
4
|
+
const n = e({
|
|
6
5
|
tagName: "sbb-timetable-occupancy-icon",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
6
|
+
elementClass: c,
|
|
7
|
+
react: t
|
|
9
8
|
});
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
n as SbbTimetableOccupancyIcon
|
|
12
11
|
};
|
package/timetable-occupancy.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { c as e } from "./create-component-DKl3-Au3.js";
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
import { SbbTimetableOccupancyElement as m } from "@sbb-esta/lyne-elements/timetable-occupancy.js";
|
|
2
|
+
import { SbbTimetableOccupancyElement as t } from "@sbb-esta/lyne-elements/timetable-occupancy.js";
|
|
3
|
+
import c from "react";
|
|
5
4
|
const b = e({
|
|
6
5
|
tagName: "sbb-timetable-occupancy",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
6
|
+
elementClass: t,
|
|
7
|
+
react: c
|
|
9
8
|
});
|
|
10
9
|
export {
|
|
11
10
|
b as SbbTimetableOccupancy
|
package/title.js
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { c as t } from "./create-component-DKl3-Au3.js";
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
import { SbbTitleElement as m } from "@sbb-esta/lyne-elements/title.js";
|
|
2
|
+
import { SbbTitleElement as e } from "@sbb-esta/lyne-elements/title.js";
|
|
3
|
+
import m from "react";
|
|
5
4
|
const b = t({
|
|
6
5
|
tagName: "sbb-title",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
6
|
+
elementClass: e,
|
|
7
|
+
react: m
|
|
9
8
|
});
|
|
10
9
|
export {
|
|
11
10
|
b as SbbTitle
|
package/toast.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
+
import { EventName } from './core.js';
|
|
1
2
|
import { SbbToastElement } from '@sbb-esta/lyne-elements/toast.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} & Partial<Omit<SbbToastElement, keyof HTMLElement>> & react.RefAttributes<SbbToastElement>>;
|
|
3
|
+
export declare const SbbToast: import('./core.js').ReactWebComponent<SbbToastElement, {
|
|
4
|
+
onWillOpen: EventName<CustomEvent<void>>;
|
|
5
|
+
onDidOpen: EventName<CustomEvent<void>>;
|
|
6
|
+
onWillClose: EventName<CustomEvent<void>>;
|
|
7
|
+
onDidClose: EventName<CustomEvent<void>>;
|
|
8
|
+
}>;
|
|
9
9
|
//# sourceMappingURL=toast.d.ts.map
|
package/toast.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/react/toast.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toast.d.ts","sourceRoot":"","sources":["../../src/react/toast.ts"],"names":[],"mappings":"AACE,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAInE,eAAO,MAAM,QAAQ;gBAKS,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;eAC9B,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;iBACxB,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;gBAC9B,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;EAGxD,CAAC"}
|
package/toast.js
CHANGED
|
@@ -1,18 +1,17 @@
|
|
|
1
|
-
import { c as
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const m = e(o({
|
|
1
|
+
import { c as e } from "./create-component-DKl3-Au3.js";
|
|
2
|
+
import { SbbToastElement as o } from "@sbb-esta/lyne-elements/toast.js";
|
|
3
|
+
import t from "react";
|
|
4
|
+
const i = e({
|
|
6
5
|
tagName: "sbb-toast",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
6
|
+
elementClass: o,
|
|
7
|
+
react: t,
|
|
9
8
|
events: {
|
|
10
9
|
onWillOpen: "willOpen",
|
|
11
10
|
onDidOpen: "didOpen",
|
|
12
11
|
onWillClose: "willClose",
|
|
13
12
|
onDidClose: "didClose"
|
|
14
13
|
}
|
|
15
|
-
})
|
|
14
|
+
});
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
i as SbbToast
|
|
18
17
|
};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
1
|
import { SbbToggleOptionElement } from '@sbb-esta/lyne-elements/toggle/toggle-option.js';
|
|
2
|
-
|
|
3
|
-
export declare const SbbToggleOption: react.ComponentType<Omit<react.HTMLAttributes<SbbToggleOptionElement>, "value" | "checked" | "disabled" | "renderRoot" | "isUpdatePending" | "hasUpdated" | "addController" | "removeController" | "connectedCallback" | "disconnectedCallback" | "attributeChangedCallback" | "requestUpdate" | "updateComplete" | "renderOptions" | "iconName"> & {} & Partial<Omit<SbbToggleOptionElement, keyof HTMLElement>> & react.RefAttributes<SbbToggleOptionElement>>;
|
|
2
|
+
export declare const SbbToggleOption: import('../core.js').ReactWebComponent<SbbToggleOptionElement, {}>;
|
|
4
3
|
//# sourceMappingURL=toggle-option.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-option.d.ts","sourceRoot":"","sources":["../../../src/react/toggle/toggle-option.ts"],"names":[],"mappings":"AAEE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;
|
|
1
|
+
{"version":3,"file":"toggle-option.d.ts","sourceRoot":"","sources":["../../../src/react/toggle/toggle-option.ts"],"names":[],"mappings":"AAEE,OAAO,EAAE,sBAAsB,EAAE,MAAM,iDAAiD,CAAC;AAIzF,eAAO,MAAM,eAAe,oEAI1B,CAAC"}
|
package/toggle/toggle-option.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { c as o } from "../create-component-DKl3-Au3.js";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const n = t(o({
|
|
2
|
+
import { SbbToggleOptionElement as t } from "@sbb-esta/lyne-elements/toggle/toggle-option.js";
|
|
3
|
+
import e from "react";
|
|
4
|
+
const p = o({
|
|
6
5
|
tagName: "sbb-toggle-option",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
9
|
-
})
|
|
6
|
+
elementClass: t,
|
|
7
|
+
react: e
|
|
8
|
+
});
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
p as SbbToggleOption
|
|
12
11
|
};
|
package/toggle/toggle.js
CHANGED
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import { c as e } from "../create-component-DKl3-Au3.js";
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const r = e({
|
|
2
|
+
import { SbbToggleElement as o } from "@sbb-esta/lyne-elements/toggle/toggle.js";
|
|
3
|
+
import t from "react";
|
|
4
|
+
const m = e({
|
|
6
5
|
tagName: "sbb-toggle",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
6
|
+
elementClass: o,
|
|
7
|
+
react: t,
|
|
9
8
|
events: {
|
|
10
9
|
onDidChange: "didChange",
|
|
11
10
|
onChange: "change"
|
|
12
11
|
}
|
|
13
12
|
});
|
|
14
13
|
export {
|
|
15
|
-
|
|
14
|
+
m as SbbToggle
|
|
16
15
|
};
|
package/toggle-check.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { EventName } from './core.js';
|
|
1
2
|
import { SbbToggleCheckElement } from '@sbb-esta/lyne-elements/toggle-check.js';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} & Partial<Omit<SbbToggleCheckElement, keyof HTMLElement>> & react.RefAttributes<SbbToggleCheckElement>>;
|
|
3
|
+
export declare const SbbToggleCheck: import('./core.js').ReactWebComponent<SbbToggleCheckElement, {
|
|
4
|
+
onDidChange: EventName<CustomEvent<void>>;
|
|
5
|
+
onChange: EventName<Event>;
|
|
6
|
+
onInput: EventName<InputEvent>;
|
|
7
|
+
}>;
|
|
8
8
|
//# sourceMappingURL=toggle-check.d.ts.map
|
package/toggle-check.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toggle-check.d.ts","sourceRoot":"","sources":["../../src/react/toggle-check.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"toggle-check.d.ts","sourceRoot":"","sources":["../../src/react/toggle-check.ts"],"names":[],"mappings":"AACE,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,WAAW,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAIhF,eAAO,MAAM,cAAc;iBAKK,SAAS,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;cAClC,SAAS,CAAC,KAAK,CAAC;aAClB,SAAS,CAAC,UAAU,CAAC;EAG3C,CAAC"}
|
package/toggle-check.js
CHANGED
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import { c as e } from "./create-component-DKl3-Au3.js";
|
|
2
|
-
import {
|
|
3
|
-
import { SbbToggleCheckElement as t } from "@sbb-esta/lyne-elements/toggle-check.js";
|
|
2
|
+
import { SbbToggleCheckElement as o } from "@sbb-esta/lyne-elements/toggle-check.js";
|
|
4
3
|
import n from "react";
|
|
5
|
-
const
|
|
4
|
+
const m = e({
|
|
6
5
|
tagName: "sbb-toggle-check",
|
|
7
|
-
elementClass:
|
|
6
|
+
elementClass: o,
|
|
8
7
|
react: n,
|
|
9
8
|
events: {
|
|
10
9
|
onDidChange: "didChange",
|
|
11
10
|
onChange: "change",
|
|
12
11
|
onInput: "input"
|
|
13
12
|
}
|
|
14
|
-
})
|
|
13
|
+
});
|
|
15
14
|
export {
|
|
16
|
-
|
|
15
|
+
m as SbbToggleCheck
|
|
17
16
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { c as e } from "../create-component-DKl3-Au3.js";
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const n = e({
|
|
2
|
+
import { SbbTrainBlockedPassageElement as a } from "@sbb-esta/lyne-elements/train/train-blocked-passage.js";
|
|
3
|
+
import o from "react";
|
|
4
|
+
const m = e({
|
|
6
5
|
tagName: "sbb-train-blocked-passage",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
6
|
+
elementClass: a,
|
|
7
|
+
react: o
|
|
9
8
|
});
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
m as SbbTrainBlockedPassage
|
|
12
11
|
};
|
package/train/train-formation.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { c as o } from "../create-component-DKl3-Au3.js";
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const i = o({
|
|
2
|
+
import { SbbTrainFormationElement as r } from "@sbb-esta/lyne-elements/train/train-formation.js";
|
|
3
|
+
import t from "react";
|
|
4
|
+
const n = o({
|
|
6
5
|
tagName: "sbb-train-formation",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
6
|
+
elementClass: r,
|
|
7
|
+
react: t
|
|
9
8
|
});
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
n as SbbTrainFormation
|
|
12
11
|
};
|
package/train/train-wagon.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { c as o } from "../create-component-DKl3-Au3.js";
|
|
2
|
-
import "
|
|
2
|
+
import { SbbTrainWagonElement as a } from "@sbb-esta/lyne-elements/train/train-wagon.js";
|
|
3
3
|
import r from "react";
|
|
4
|
-
|
|
5
|
-
const i = o({
|
|
4
|
+
const m = o({
|
|
6
5
|
tagName: "sbb-train-wagon",
|
|
7
|
-
elementClass:
|
|
6
|
+
elementClass: a,
|
|
8
7
|
react: r
|
|
9
8
|
});
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
m as SbbTrainWagon
|
|
12
11
|
};
|
package/train/train.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { c as r } from "../create-component-DKl3-Au3.js";
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const i = r({
|
|
2
|
+
import { SbbTrainElement as t } from "@sbb-esta/lyne-elements/train/train.js";
|
|
3
|
+
import e from "react";
|
|
4
|
+
const n = r({
|
|
6
5
|
tagName: "sbb-train",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
6
|
+
elementClass: t,
|
|
7
|
+
react: e
|
|
9
8
|
});
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
n as SbbTrain
|
|
12
11
|
};
|
package/visual-checkbox.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import { c as e } from "./create-component-DKl3-Au3.js";
|
|
2
|
-
import "
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
const c = e({
|
|
2
|
+
import { SbbVisualCheckboxElement as o } from "@sbb-esta/lyne-elements/visual-checkbox.js";
|
|
3
|
+
import t from "react";
|
|
4
|
+
const r = e({
|
|
6
5
|
tagName: "sbb-visual-checkbox",
|
|
7
|
-
elementClass:
|
|
8
|
-
react:
|
|
6
|
+
elementClass: o,
|
|
7
|
+
react: t
|
|
9
8
|
});
|
|
10
9
|
export {
|
|
11
|
-
|
|
10
|
+
r as SbbVisualCheckbox
|
|
12
11
|
};
|
package/core/ssr-extensions.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Wraps a React wrapped Lit component with additional logic, to detect
|
|
4
|
-
* whether a component has children when rendered via SSR.
|
|
5
|
-
* If children are available, the attribute `data-named-slots` will be
|
|
6
|
-
* set with the detected slot names.
|
|
7
|
-
*
|
|
8
|
-
* @param component The React wrapped Lit component.
|
|
9
|
-
* @returns The React wrapped Lit component with SSR logic if rendered on server.
|
|
10
|
-
*/
|
|
11
|
-
export declare const withSsrDataSlotNames: <P extends object>(component: ComponentType<P>) => ComponentType<P>;
|
|
12
|
-
/**
|
|
13
|
-
* Wraps a React wrapped Lit component with additional logic, to detect
|
|
14
|
-
* whether a component has children when rendered via SSR.
|
|
15
|
-
* If children are available, the attribute `data-ssr-child-count` will be
|
|
16
|
-
* set with the detected amount of named children.
|
|
17
|
-
*
|
|
18
|
-
* @param component The React wrapped Lit component.
|
|
19
|
-
* @param childNames The child names to check against.
|
|
20
|
-
* @returns The React wrapped Lit component with SSR logic if rendered on server.
|
|
21
|
-
*/
|
|
22
|
-
export declare const withSsrDataChildCount: <P extends object>(childNames: string[], component: ComponentType<P>) => ComponentType<P>;
|
|
23
|
-
//# sourceMappingURL=ssr-extensions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ssr-extensions.d.ts","sourceRoot":"","sources":["../../../src/react/core/ssr-extensions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAoC,MAAM,OAAO,CAAC;AAK7E;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,MAAM,aACxC,aAAa,CAAC,CAAC,CAAC,KAC1B,aAAa,CAAC,CAAC,CA8BjB,CAAC;AASF;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,MAAM,cACxC,MAAM,EAAE,aACT,aAAa,CAAC,CAAC,CAAC,KAC1B,aAAa,CAAC,CAAC,CA6BjB,CAAC"}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { ComponentType } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Wraps a React wrapped Lit component with additional logic, to detect
|
|
4
|
-
* whether a component has children when rendered via SSR.
|
|
5
|
-
* If children are available, the attribute `data-named-slots` will be
|
|
6
|
-
* set with the detected slot names.
|
|
7
|
-
*
|
|
8
|
-
* @param component The React wrapped Lit component.
|
|
9
|
-
* @returns The React wrapped Lit component with SSR logic if rendered on server.
|
|
10
|
-
*/
|
|
11
|
-
export declare const withSsrDataSlotNames: <P extends object>(component: ComponentType<P>) => ComponentType<P>;
|
|
12
|
-
/**
|
|
13
|
-
* Wraps a React wrapped Lit component with additional logic, to detect
|
|
14
|
-
* whether a component has children when rendered via SSR.
|
|
15
|
-
* If children are available, the attribute `data-ssr-child-count` will be
|
|
16
|
-
* set with the detected amount of named children.
|
|
17
|
-
*
|
|
18
|
-
* @param component The React wrapped Lit component.
|
|
19
|
-
* @param childNames The child names to check against.
|
|
20
|
-
* @returns The React wrapped Lit component with SSR logic if rendered on server.
|
|
21
|
-
*/
|
|
22
|
-
export declare const withSsrDataChildCount: <P extends object>(childNames: string[], component: ComponentType<P>) => ComponentType<P>;
|
|
23
|
-
//# sourceMappingURL=ssr-extensions.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ssr-extensions.d.ts","sourceRoot":"","sources":["../../../../src/react/core/ssr-extensions.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,aAAa,EAAoC,MAAM,OAAO,CAAC;AAK7E;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,GAAI,CAAC,SAAS,MAAM,aACxC,aAAa,CAAC,CAAC,CAAC,KAC1B,aAAa,CAAC,CAAC,CA8BjB,CAAC;AASF;;;;;;;;;GASG;AACH,eAAO,MAAM,qBAAqB,GAAI,CAAC,SAAS,MAAM,cACxC,MAAM,EAAE,aACT,aAAa,CAAC,CAAC,CAAC,KAC1B,aAAa,CAAC,CAAC,CA6BjB,CAAC"}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { isServer } from "lit";
|
|
2
|
-
import react, { Children, isValidElement } from "react";
|
|
3
|
-
const withSsrDataSlotNames = (component) => {
|
|
4
|
-
return !isServer ? component : (originalProps) => {
|
|
5
|
-
const props = originalProps;
|
|
6
|
-
if (!props.children) {
|
|
7
|
-
return react.createElement(component, props);
|
|
8
|
-
}
|
|
9
|
-
const slots = /* @__PURE__ */ new Set();
|
|
10
|
-
Children.forEach(props.children, (child) => slots.add(typeof child === "object" && !!child && "props" in child && "slot" in child.props && child.props.slot || "unnamed"));
|
|
11
|
-
if (!slots.size) {
|
|
12
|
-
return react.createElement(component, props);
|
|
13
|
-
}
|
|
14
|
-
const innerProps = {
|
|
15
|
-
...props,
|
|
16
|
-
"data-named-slots": [...slots].sort().join(" ")
|
|
17
|
-
};
|
|
18
|
-
return react.createElement(component, innerProps);
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
function hasDisplayName(type) {
|
|
22
|
-
return typeof type.displayName === "string";
|
|
23
|
-
}
|
|
24
|
-
const withSsrDataChildCount = (childNames, component) => {
|
|
25
|
-
return !isServer ? component : (originalProps) => {
|
|
26
|
-
const props = originalProps;
|
|
27
|
-
if (!props.children) {
|
|
28
|
-
return react.createElement(component, props);
|
|
29
|
-
}
|
|
30
|
-
let counter = 0;
|
|
31
|
-
Children.forEach(props.children, (child) => {
|
|
32
|
-
if (isValidElement(child) && hasDisplayName(child.type) && childNames.includes(child.type.displayName)) {
|
|
33
|
-
counter += 1;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
if (!counter) {
|
|
37
|
-
return react.createElement(component, props);
|
|
38
|
-
}
|
|
39
|
-
const innerProps = {
|
|
40
|
-
...props,
|
|
41
|
-
"data-ssr-child-count": counter
|
|
42
|
-
};
|
|
43
|
-
return react.createElement(component, innerProps);
|
|
44
|
-
};
|
|
45
|
-
};
|
|
46
|
-
export {
|
|
47
|
-
withSsrDataChildCount as a,
|
|
48
|
-
withSsrDataSlotNames as w
|
|
49
|
-
};
|