@swc-react/action-bar 0.34.0 → 0.35.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,4 +1,7 @@
1
+ import type { EventName } from '@lit-labs/react';
1
2
  import { ActionBar as SpActionBar } from '@spectrum-web-components/action-bar';
2
3
  import '@spectrum-web-components/action-bar/sp-action-bar.js';
3
- export declare const ActionBar: import("@lit-labs/react").ReactWebComponent<SpActionBar, {}>;
4
+ export declare const ActionBar: import("@lit-labs/react").ReactWebComponent<SpActionBar, {
5
+ close: EventName<Event>;
6
+ }>;
4
7
  export declare type ActionBarType = EventTarget & SpActionBar;
package/index.dev.js CHANGED
@@ -8,6 +8,8 @@ export const ActionBar = createComponent({
8
8
  elementClass: SpActionBar,
9
9
  react: React,
10
10
  tagName: "sp-action-bar",
11
- events: {}
11
+ events: {
12
+ close: "close"
13
+ }
12
14
  });
13
15
  //# 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 { ActionBar as SpActionBar } from '@spectrum-web-components/action-bar';\n\nimport '@spectrum-web-components/action-bar/sp-action-bar.js';\n\nexport const ActionBar = createComponent({\n displayName: 'ActionBar',\n elementClass: SpActionBar,\n react: React,\n tagName: 'sp-action-bar',\n events: {},\n});\n\nexport type ActionBarType = EventTarget & SpActionBar;\n"],
5
- "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAChC,SAAS,aAAa,mBAAmB;AAEzC,OAAO;AAEA,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ,CAAC;AACb,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 type { EventName } from '@lit-labs/react';\nimport { ActionBar as SpActionBar } from '@spectrum-web-components/action-bar';\n\nimport '@spectrum-web-components/action-bar/sp-action-bar.js';\n\nexport const ActionBar = createComponent({\n displayName: 'ActionBar',\n elementClass: SpActionBar,\n react: React,\n tagName: 'sp-action-bar',\n events: {\n close: 'close' as EventName<Event>,\n },\n});\n\nexport type ActionBarType = EventTarget & SpActionBar;\n"],
5
+ "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,aAAa,mBAAmB;AAEzC,OAAO;AAEA,aAAM,YAAY,gBAAgB;AAAA,EACrC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,OAAO;AAAA,EACX;AACJ,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 a}from"@lit-labs/react";import{ActionBar as o}from"@spectrum-web-components/action-bar";import"@spectrum-web-components/action-bar/sp-action-bar.js";export const ActionBar=a({displayName:"ActionBar",elementClass:o,react:t,tagName:"sp-action-bar",events:{}});
1
+ "use strict";import*as t from"react";import{createComponent as e}from"@lit-labs/react";import{ActionBar as a}from"@spectrum-web-components/action-bar";import"@spectrum-web-components/action-bar/sp-action-bar.js";export const ActionBar=e({displayName:"ActionBar",elementClass:a,react:t,tagName:"sp-action-bar",events:{close:"close"}});
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 { ActionBar as SpActionBar } from '@spectrum-web-components/action-bar';\n\nimport '@spectrum-web-components/action-bar/sp-action-bar.js';\n\nexport const ActionBar = createComponent({\n displayName: 'ActionBar',\n elementClass: SpActionBar,\n react: React,\n tagName: 'sp-action-bar',\n events: {},\n});\n\nexport type ActionBarType = EventTarget & SpActionBar;\n"],
5
- "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAChC,OAAS,aAAaC,MAAmB,sCAEzC,MAAO,uDAEA,aAAM,UAAYD,EAAgB,CACrC,YAAa,YACb,aAAcC,EACd,MAAOF,EACP,QAAS,gBACT,OAAQ,CAAC,CACb,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 type { EventName } from '@lit-labs/react';\nimport { ActionBar as SpActionBar } from '@spectrum-web-components/action-bar';\n\nimport '@spectrum-web-components/action-bar/sp-action-bar.js';\n\nexport const ActionBar = createComponent({\n displayName: 'ActionBar',\n elementClass: SpActionBar,\n react: React,\n tagName: 'sp-action-bar',\n events: {\n close: 'close' as EventName<Event>,\n },\n});\n\nexport type ActionBarType = EventTarget & SpActionBar;\n"],
5
+ "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,aAAaC,MAAmB,sCAEzC,MAAO,uDAEA,aAAM,UAAYD,EAAgB,CACrC,YAAa,YACb,aAAcC,EACd,MAAOF,EACP,QAAS,gBACT,OAAQ,CACJ,MAAO,OACX,CACJ,CAAC",
6
6
  "names": ["React", "createComponent", "SpActionBar"]
7
7
  }
package/next.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  /// <reference types="react" />
2
+ /// <reference types="react" />
2
3
  export declare const ActionBar: import("react").ComponentType<Partial<{
3
4
  dir?: string | undefined;
4
5
  color?: string | undefined;
@@ -9,29 +10,40 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
9
10
  'aria-modal'?: (boolean | "true" | "false") | undefined;
10
11
  accessKey?: string | undefined;
11
12
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
13
+ rel?: string | undefined;
14
+ id?: string | undefined;
15
+ className?: string | undefined;
16
+ tabIndex?: number | undefined;
17
+ 'aria-disabled'?: (boolean | "true" | "false") | undefined;
18
+ role?: import("react").AriaRole | undefined;
19
+ 'aria-label'?: string | undefined;
20
+ 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
21
+ 'aria-expanded'?: (boolean | "true" | "false") | undefined;
22
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
23
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
24
+ 'aria-labelledby'?: string | undefined;
12
25
  defaultChecked?: boolean | undefined;
13
26
  defaultValue?: string | number | readonly string[] | undefined;
14
27
  suppressContentEditableWarning?: boolean | undefined;
15
28
  suppressHydrationWarning?: boolean | undefined;
16
- className?: string | undefined;
29
+ autoFocus?: boolean | undefined;
17
30
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
18
31
  contextMenu?: string | undefined;
19
32
  draggable?: (boolean | "true" | "false") | undefined;
20
33
  hidden?: boolean | undefined;
21
- id?: string | undefined;
22
34
  nonce?: string | undefined;
23
35
  placeholder?: string | undefined;
24
36
  spellCheck?: (boolean | "true" | "false") | undefined;
25
- tabIndex?: number | undefined;
26
37
  translate?: "yes" | "no" | undefined;
27
38
  radioGroup?: string | undefined;
28
- role?: import("react").AriaRole | undefined;
29
39
  about?: string | undefined;
40
+ content?: string | undefined;
30
41
  datatype?: string | undefined;
31
42
  inlist?: any;
32
43
  prefix?: string | undefined;
33
44
  property?: string | undefined;
34
45
  resource?: string | undefined;
46
+ rev?: string | undefined;
35
47
  typeof?: string | undefined;
36
48
  vocab?: string | undefined;
37
49
  autoCapitalize?: string | undefined;
@@ -49,27 +61,25 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
49
61
  is?: string | undefined;
50
62
  'aria-activedescendant'?: string | undefined;
51
63
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
52
- 'aria-autocomplete'?: "none" | "inline" | "list" | "both" | undefined;
64
+ 'aria-autocomplete'?: "none" | "inline" | "both" | "list" | undefined;
65
+ 'aria-braillelabel'?: string | undefined;
66
+ 'aria-brailleroledescription'?: string | undefined;
53
67
  'aria-busy'?: (boolean | "true" | "false") | undefined;
54
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
55
68
  'aria-colcount'?: number | undefined;
56
69
  'aria-colindex'?: number | undefined;
70
+ 'aria-colindextext'?: string | undefined;
57
71
  'aria-colspan'?: number | undefined;
58
72
  'aria-controls'?: string | undefined;
59
73
  'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
60
74
  'aria-describedby'?: string | undefined;
75
+ 'aria-description'?: string | undefined;
61
76
  'aria-details'?: string | undefined;
62
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
63
77
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
64
78
  'aria-errormessage'?: string | undefined;
65
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
66
79
  'aria-flowto'?: string | undefined;
67
80
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
68
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
69
81
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
70
82
  'aria-keyshortcuts'?: string | undefined;
71
- 'aria-label'?: string | undefined;
72
- 'aria-labelledby'?: string | undefined;
73
83
  'aria-level'?: number | undefined;
74
84
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
75
85
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
@@ -78,13 +88,13 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
78
88
  'aria-owns'?: string | undefined;
79
89
  'aria-placeholder'?: string | undefined;
80
90
  'aria-posinset'?: number | undefined;
81
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
82
91
  'aria-readonly'?: (boolean | "true" | "false") | undefined;
83
92
  'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
84
93
  'aria-required'?: (boolean | "true" | "false") | undefined;
85
94
  'aria-roledescription'?: string | undefined;
86
95
  'aria-rowcount'?: number | undefined;
87
96
  'aria-rowindex'?: number | undefined;
97
+ 'aria-rowindextext'?: string | undefined;
88
98
  'aria-rowspan'?: number | undefined;
89
99
  'aria-selected'?: (boolean | "true" | "false") | undefined;
90
100
  'aria-setsize'?: number | undefined;
@@ -95,7 +105,7 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
95
105
  'aria-valuetext'?: string | undefined;
96
106
  children?: import("react").ReactNode;
97
107
  dangerouslySetInnerHTML?: {
98
- __html: string;
108
+ __html: string | TrustedHTML;
99
109
  } | undefined;
100
110
  onCopy?: import("react").ClipboardEventHandler<import("action-bar/src").ActionBar> | undefined;
101
111
  onCopyCapture?: import("react").ClipboardEventHandler<import("action-bar/src").ActionBar> | undefined;
@@ -275,8 +285,12 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
275
285
  readonly renderOptions: import("lit-html").RenderOptions;
276
286
  remove: () => void;
277
287
  normalize: () => void;
278
- flexible: boolean;
288
+ ariaHidden: string | null;
289
+ autofocus: boolean;
290
+ readonly childNodes: NodeListOf<ChildNode>;
279
291
  variant: string;
292
+ emphasized: boolean;
293
+ flexible: boolean;
280
294
  readonly accessKeyLabel: string;
281
295
  autocapitalize: string;
282
296
  inert: boolean;
@@ -368,7 +382,6 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
368
382
  toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
369
383
  webkitMatchesSelector: (selectors: string) => boolean;
370
384
  readonly baseURI: string;
371
- readonly childNodes: NodeListOf<ChildNode>;
372
385
  readonly firstChild: ChildNode | null;
373
386
  readonly isConnected: boolean;
374
387
  readonly lastChild: ChildNode | null;
@@ -424,7 +437,6 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
424
437
  ariaDisabled: string | null;
425
438
  ariaExpanded: string | null;
426
439
  ariaHasPopup: string | null;
427
- ariaHidden: string | null;
428
440
  ariaKeyShortcuts: string | null;
429
441
  ariaLabel: string | null;
430
442
  ariaLevel: string | null;
@@ -567,7 +579,6 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
567
579
  onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
568
580
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
569
581
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
570
- autofocus: boolean;
571
582
  readonly dataset: DOMStringMap;
572
583
  render: () => import("lit-html").TemplateResult<2 | 1>;
573
584
  connectedCallback: () => void;
@@ -582,4 +593,6 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
582
593
  readonly updateComplete: Promise<boolean>;
583
594
  isLTR: boolean;
584
595
  hasVisibleFocusInTree: () => boolean;
585
- } & {}> & import("react").RefAttributes<import("action-bar/src").ActionBar>>;
596
+ } & {
597
+ close: (e: Event) => void;
598
+ }> & import("react").RefAttributes<import("action-bar/src").ActionBar>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/action-bar",
3
- "version": "0.34.0",
3
+ "version": "0.35.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/action-bar": "^0.34.0"
33
+ "@spectrum-web-components/action-bar": "^0.35.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": "f9b3294d67cdd52b2c36897cdc1c20ceaeb019cf"
43
+ "gitHead": "1ee5a6c92838cdf48321276d97f61c20f8476ac1"
44
44
  }