@swc-react/tooltip 0.35.1-rc.34 → 0.37.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/index.d.ts CHANGED
@@ -1,8 +1,4 @@
1
- import type { EventName } from '@lit-labs/react';
2
1
  import { Tooltip as SpTooltip } from '@spectrum-web-components/tooltip';
3
2
  import '@spectrum-web-components/tooltip/sp-tooltip.js';
4
- export declare const Tooltip: import("@lit-labs/react").ReactWebComponent<SpTooltip, {
5
- transitionrun: EventName<TransitionEvent>;
6
- transitionend: EventName<TransitionEvent>;
7
- }>;
3
+ export declare const Tooltip: import("@lit-labs/react").ReactWebComponent<SpTooltip, {}>;
8
4
  export declare type TooltipType = EventTarget & SpTooltip;
package/index.dev.js CHANGED
@@ -8,9 +8,6 @@ export const Tooltip = createComponent({
8
8
  elementClass: SpTooltip,
9
9
  react: React,
10
10
  tagName: "sp-tooltip",
11
- events: {
12
- transitionrun: "transitionrun",
13
- transitionend: "transitionend"
14
- }
11
+ events: {}
15
12
  });
16
13
  //# sourceMappingURL=index.dev.js.map
package/index.dev.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["index.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Tooltip as SpTooltip } from '@spectrum-web-components/tooltip';\n\nimport '@spectrum-web-components/tooltip/sp-tooltip.js';\n\nexport const Tooltip = createComponent({\n displayName: 'Tooltip',\n elementClass: SpTooltip,\n react: React,\n tagName: 'sp-tooltip',\n events: {\n transitionrun: 'transitionrun' as EventName<TransitionEvent>,\n transitionend: 'transitionend' as EventName<TransitionEvent>,\n },\n});\n\nexport type TooltipType = EventTarget & SpTooltip;\n"],
5
- "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,WAAW,iBAAiB;AAErC,OAAO;AAEA,aAAM,UAAU,gBAAgB;AAAA,EACnC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,eAAe;AAAA,IACf,eAAe;AAAA,EACnB;AACJ,CAAC;",
4
+ "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport { Tooltip as SpTooltip } from '@spectrum-web-components/tooltip';\n\nimport '@spectrum-web-components/tooltip/sp-tooltip.js';\n\nexport const Tooltip = createComponent({\n displayName: 'Tooltip',\n elementClass: SpTooltip,\n react: React,\n tagName: 'sp-tooltip',\n events: {},\n});\n\nexport type TooltipType = EventTarget & SpTooltip;\n"],
5
+ "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,SAAS,WAAW,iBAAiB;AAErC,OAAO;AAEA,aAAM,UAAU,gBAAgB;AAAA,EACnC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,CAAC;",
6
6
  "names": []
7
7
  }
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";import*as t from"react";import{createComponent as o}from"@lit-labs/react";import{Tooltip as e}from"@spectrum-web-components/tooltip";import"@spectrum-web-components/tooltip/sp-tooltip.js";export const Tooltip=o({displayName:"Tooltip",elementClass:e,react:t,tagName:"sp-tooltip",events:{transitionrun:"transitionrun",transitionend:"transitionend"}});
1
+ "use strict";import*as o from"react";import{createComponent as t}from"@lit-labs/react";import{Tooltip as p}from"@spectrum-web-components/tooltip";import"@spectrum-web-components/tooltip/sp-tooltip.js";export const Tooltip=t({displayName:"Tooltip",elementClass:p,react:o,tagName:"sp-tooltip",events:{}});
2
2
  //# sourceMappingURL=index.js.map
package/index.js.map CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["index.ts"],
4
- "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport type { EventName } from '@lit-labs/react';\nimport { Tooltip as SpTooltip } from '@spectrum-web-components/tooltip';\n\nimport '@spectrum-web-components/tooltip/sp-tooltip.js';\n\nexport const Tooltip = createComponent({\n displayName: 'Tooltip',\n elementClass: SpTooltip,\n react: React,\n tagName: 'sp-tooltip',\n events: {\n transitionrun: 'transitionrun' as EventName<TransitionEvent>,\n transitionend: 'transitionend' as EventName<TransitionEvent>,\n },\n});\n\nexport type TooltipType = EventTarget & SpTooltip;\n"],
5
- "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,WAAWC,MAAiB,mCAErC,MAAO,iDAEA,aAAM,QAAUD,EAAgB,CACnC,YAAa,UACb,aAAcC,EACd,MAAOF,EACP,QAAS,aACT,OAAQ,CACJ,cAAe,gBACf,cAAe,eACnB,CACJ,CAAC",
4
+ "sourcesContent": ["/*\nCopyright 2022 Adobe. All rights reserved.\nThis file is licensed to you under the Apache License, Version 2.0 (the \"License\");\nyou may not use this file except in compliance with the License. You may obtain a copy\nof the License at http://www.apache.org/licenses/LICENSE-2.0\n\nUnless required by applicable law or agreed to in writing, software distributed under\nthe License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\nOF ANY KIND, either express or implied. See the License for the specific language\ngoverning permissions and limitations under the License.\n*/\n\nimport * as React from 'react';\nimport { createComponent } from '@lit-labs/react';\nimport { Tooltip as SpTooltip } from '@spectrum-web-components/tooltip';\n\nimport '@spectrum-web-components/tooltip/sp-tooltip.js';\n\nexport const Tooltip = createComponent({\n displayName: 'Tooltip',\n elementClass: SpTooltip,\n react: React,\n tagName: 'sp-tooltip',\n events: {},\n});\n\nexport type TooltipType = EventTarget & SpTooltip;\n"],
5
+ "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAChC,OAAS,WAAWC,MAAiB,mCAErC,MAAO,iDAEA,aAAM,QAAUD,EAAgB,CACnC,YAAa,UACb,aAAcC,EACd,MAAOF,EACP,QAAS,aACT,OAAQ,CAAC,CACb,CAAC",
6
6
  "names": ["React", "createComponent", "SpTooltip"]
7
7
  }
package/next.d.ts CHANGED
@@ -19,6 +19,7 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
19
19
  nonce?: string | undefined;
20
20
  tabIndex?: number | undefined;
21
21
  'aria-describedby'?: string | undefined;
22
+ content?: string | undefined;
22
23
  defaultChecked?: boolean | undefined;
23
24
  defaultValue?: string | number | readonly string[] | undefined;
24
25
  suppressContentEditableWarning?: boolean | undefined;
@@ -30,7 +31,6 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
30
31
  radioGroup?: string | undefined;
31
32
  role?: import("react").AriaRole | undefined;
32
33
  about?: string | undefined;
33
- content?: string | undefined;
34
34
  datatype?: string | undefined;
35
35
  inlist?: any;
36
36
  property?: string | undefined;
@@ -597,7 +597,4 @@ export declare const Tooltip: import("react").ComponentType<Partial<{
597
597
  render: () => import("lit-html").TemplateResult<2 | 1>;
598
598
  isLTR: boolean;
599
599
  hasVisibleFocusInTree: () => boolean;
600
- } & {
601
- transitionrun: (e: TransitionEvent) => void;
602
- transitionend: (e: TransitionEvent) => void;
603
- }> & import("react").RefAttributes<import("tooltip/src").Tooltip>>;
600
+ } & {}> & import("react").RefAttributes<import("tooltip/src").Tooltip>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/tooltip",
3
- "version": "0.35.1-rc.34+2cc53a49a",
3
+ "version": "0.37.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -30,7 +30,7 @@
30
30
  ],
31
31
  "dependencies": {
32
32
  "@lit-labs/react": "^1.1.1",
33
- "@spectrum-web-components/tooltip": "^0.35.1-rc.34+2cc53a49a"
33
+ "@spectrum-web-components/tooltip": "^0.37.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "next": "~13.4"
@@ -40,5 +40,5 @@
40
40
  "optional": true
41
41
  }
42
42
  },
43
- "gitHead": "2cc53a49a9491e4d86ed3c39ab430fda8a7a5b96"
43
+ "gitHead": "d771f62f0d8063070af43283bb0fd5e3400bad06"
44
44
  }