@sbb-esta/lyne-react 3.7.0 → 3.8.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.
- package/development/tooltip/tooltip.component.d.ts +14 -0
- package/development/tooltip/tooltip.component.d.ts.map +1 -0
- package/development/tooltip/tooltip.component.js +18 -0
- package/development/tooltip.d.ts +5 -0
- package/development/tooltip.d.ts.map +1 -0
- package/development/tooltip.js +4 -0
- package/package.json +12 -2
- package/tooltip/tooltip.component.d.ts +14 -0
- package/tooltip/tooltip.component.d.ts.map +1 -0
- package/tooltip/tooltip.component.js +17 -0
- package/tooltip.d.ts +5 -0
- package/tooltip.d.ts.map +1 -0
- package/tooltip.js +4 -0
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventName } from '../core.js';
|
|
2
|
+
import { SbbTooltipElement } from '@sbb-esta/lyne-elements/tooltip.js';
|
|
3
|
+
declare class SbbTooltipComponentType extends SbbTooltipElement {
|
|
4
|
+
set trigger(value: string | SbbTooltipElement['trigger']);
|
|
5
|
+
get trigger(): string | SbbTooltipElement['trigger'];
|
|
6
|
+
}
|
|
7
|
+
export declare const SbbTooltip: import('../core.js').ReactWebComponent<SbbTooltipComponentType, {
|
|
8
|
+
onBeforeopen: EventName<Event>;
|
|
9
|
+
onOpen: EventName<Event>;
|
|
10
|
+
onBeforeclose: EventName<Event>;
|
|
11
|
+
onClose: EventName<Event>;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=tooltip.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.component.d.ts","sourceRoot":"","sources":["../../../../src/react/tooltip/tooltip.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAGvE,OAAO,OAAO,uBAAwB,SAAQ,iBAAiB;IAE7D,IAAW,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,CAAC,SAAS,CAAC,EAE9D;IAED,IAAW,OAAO,IAAI,MAAM,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAE1D;CAEF;AAKD,eAAO,MAAM,UAAU;kBAKa,SAAS,CAAC,KAAK,CAAC;YAC5B,SAAS,CAAC,KAAK,CAAC;mBACF,SAAS,CAAC,KAAK,CAAC;aAC5B,SAAS,CAAC,KAAK,CAAC;EAGxC,CAAC"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { c as createComponent } from "../create-component-D2eL6dzj.js";
|
|
2
|
+
import { SbbTooltipElement } from "@sbb-esta/lyne-elements/tooltip.js";
|
|
3
|
+
import react from "react";
|
|
4
|
+
const SbbTooltipComponent = SbbTooltipElement;
|
|
5
|
+
const SbbTooltip = createComponent({
|
|
6
|
+
tagName: "sbb-tooltip",
|
|
7
|
+
elementClass: SbbTooltipComponent,
|
|
8
|
+
react,
|
|
9
|
+
events: {
|
|
10
|
+
"onBeforeopen": "beforeopen",
|
|
11
|
+
"onOpen": "open",
|
|
12
|
+
"onBeforeclose": "beforeclose",
|
|
13
|
+
"onClose": "close"
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
export {
|
|
17
|
+
SbbTooltip
|
|
18
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../../src/react/tooltip.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gCAAgC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sbb-esta/lyne-react",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.0",
|
|
4
4
|
"description": "Lyne Design System React Library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"design system",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
],
|
|
11
11
|
"type": "module",
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@sbb-esta/lyne-elements": "3.
|
|
13
|
+
"@sbb-esta/lyne-elements": "3.8.0",
|
|
14
14
|
"react": "^18.2.0 || ^19.0.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
@@ -1883,6 +1883,16 @@
|
|
|
1883
1883
|
"development": "./development/toggle/toggle-option.js",
|
|
1884
1884
|
"default": "./toggle/toggle-option.js"
|
|
1885
1885
|
},
|
|
1886
|
+
"./tooltip": {
|
|
1887
|
+
"types": "./development/tooltip.d.ts",
|
|
1888
|
+
"development": "./development/tooltip.js",
|
|
1889
|
+
"default": "./tooltip.js"
|
|
1890
|
+
},
|
|
1891
|
+
"./tooltip.js": {
|
|
1892
|
+
"types": "./development/tooltip.d.ts",
|
|
1893
|
+
"development": "./development/tooltip.js",
|
|
1894
|
+
"default": "./tooltip.js"
|
|
1895
|
+
},
|
|
1886
1896
|
"./train": {
|
|
1887
1897
|
"types": "./development/train.d.ts",
|
|
1888
1898
|
"development": "./development/train.js",
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { EventName } from '../core.js';
|
|
2
|
+
import { SbbTooltipElement } from '@sbb-esta/lyne-elements/tooltip.js';
|
|
3
|
+
declare class SbbTooltipComponentType extends SbbTooltipElement {
|
|
4
|
+
set trigger(value: string | SbbTooltipElement['trigger']);
|
|
5
|
+
get trigger(): string | SbbTooltipElement['trigger'];
|
|
6
|
+
}
|
|
7
|
+
export declare const SbbTooltip: import('../core.js').ReactWebComponent<SbbTooltipComponentType, {
|
|
8
|
+
onBeforeopen: EventName<Event>;
|
|
9
|
+
onOpen: EventName<Event>;
|
|
10
|
+
onBeforeclose: EventName<Event>;
|
|
11
|
+
onClose: EventName<Event>;
|
|
12
|
+
}>;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=tooltip.component.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.component.d.ts","sourceRoot":"","sources":["../../../src/react/tooltip/tooltip.component.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAoC,CAAC;AAGvE,OAAO,OAAO,uBAAwB,SAAQ,iBAAiB;IAE7D,IAAW,OAAO,CAAC,KAAK,EAAE,MAAM,GAAG,iBAAiB,CAAC,SAAS,CAAC,EAE9D;IAED,IAAW,OAAO,IAAI,MAAM,GAAG,iBAAiB,CAAC,SAAS,CAAC,CAE1D;CAEF;AAKD,eAAO,MAAM,UAAU;kBAKa,SAAS,CAAC,KAAK,CAAC;YAC5B,SAAS,CAAC,KAAK,CAAC;mBACF,SAAS,CAAC,KAAK,CAAC;aAC5B,SAAS,CAAC,KAAK,CAAC;EAGxC,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { c as o } from "../create-component-BzQJ4c_K.js";
|
|
2
|
+
import { SbbTooltipElement as e } from "@sbb-esta/lyne-elements/tooltip.js";
|
|
3
|
+
import t from "react";
|
|
4
|
+
const n = e, m = o({
|
|
5
|
+
tagName: "sbb-tooltip",
|
|
6
|
+
elementClass: n,
|
|
7
|
+
react: t,
|
|
8
|
+
events: {
|
|
9
|
+
onBeforeopen: "beforeopen",
|
|
10
|
+
onOpen: "open",
|
|
11
|
+
onBeforeclose: "beforeclose",
|
|
12
|
+
onClose: "close"
|
|
13
|
+
}
|
|
14
|
+
});
|
|
15
|
+
export {
|
|
16
|
+
m as SbbTooltip
|
|
17
|
+
};
|
package/tooltip.d.ts
ADDED
package/tooltip.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tooltip.d.ts","sourceRoot":"","sources":["../../src/react/tooltip.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,cAAc,gCAAgC,CAAC"}
|
package/tooltip.js
ADDED