@swc-react/action-bar 0.34.1-rc.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;
@@ -6,30 +7,43 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
6
7
  slot?: string | undefined;
7
8
  style?: import("react").CSSProperties | undefined;
8
9
  title?: string | undefined;
10
+ 'aria-modal'?: (boolean | "true" | "false") | undefined;
11
+ accessKey?: string | undefined;
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;
9
25
  defaultChecked?: boolean | undefined;
10
26
  defaultValue?: string | number | readonly string[] | undefined;
11
27
  suppressContentEditableWarning?: boolean | undefined;
12
28
  suppressHydrationWarning?: boolean | undefined;
13
- accessKey?: string | undefined;
14
- className?: string | undefined;
29
+ autoFocus?: boolean | undefined;
15
30
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
16
31
  contextMenu?: string | undefined;
17
32
  draggable?: (boolean | "true" | "false") | undefined;
18
33
  hidden?: boolean | undefined;
19
- id?: string | undefined;
20
34
  nonce?: string | undefined;
21
35
  placeholder?: string | undefined;
22
36
  spellCheck?: (boolean | "true" | "false") | undefined;
23
- tabIndex?: number | undefined;
24
37
  translate?: "yes" | "no" | undefined;
25
38
  radioGroup?: string | undefined;
26
- role?: import("react").AriaRole | undefined;
27
39
  about?: string | undefined;
40
+ content?: string | undefined;
28
41
  datatype?: string | undefined;
29
42
  inlist?: any;
30
43
  prefix?: string | undefined;
31
44
  property?: string | undefined;
32
45
  resource?: string | undefined;
46
+ rev?: string | undefined;
33
47
  typeof?: string | undefined;
34
48
  vocab?: string | undefined;
35
49
  autoCapitalize?: string | undefined;
@@ -43,48 +57,44 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
43
57
  results?: number | undefined;
44
58
  security?: string | undefined;
45
59
  unselectable?: "on" | "off" | undefined;
46
- inputMode?: "search" | "text" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
60
+ inputMode?: "text" | "none" | "search" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
47
61
  is?: string | undefined;
48
62
  'aria-activedescendant'?: string | undefined;
49
63
  'aria-atomic'?: (boolean | "true" | "false") | undefined;
50
- 'aria-autocomplete'?: "inline" | "list" | "none" | "both" | undefined;
64
+ 'aria-autocomplete'?: "none" | "inline" | "both" | "list" | undefined;
65
+ 'aria-braillelabel'?: string | undefined;
66
+ 'aria-brailleroledescription'?: string | undefined;
51
67
  'aria-busy'?: (boolean | "true" | "false") | undefined;
52
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
53
68
  'aria-colcount'?: number | undefined;
54
69
  'aria-colindex'?: number | undefined;
70
+ 'aria-colindextext'?: string | undefined;
55
71
  'aria-colspan'?: number | undefined;
56
72
  'aria-controls'?: string | undefined;
57
- 'aria-current'?: boolean | "time" | "page" | "true" | "false" | "step" | "location" | "date" | undefined;
73
+ 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
58
74
  'aria-describedby'?: string | undefined;
75
+ 'aria-description'?: string | undefined;
59
76
  'aria-details'?: string | undefined;
60
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
61
77
  'aria-dropeffect'?: "link" | "copy" | "none" | "execute" | "move" | "popup" | undefined;
62
78
  'aria-errormessage'?: string | undefined;
63
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
64
79
  'aria-flowto'?: string | undefined;
65
80
  'aria-grabbed'?: (boolean | "true" | "false") | undefined;
66
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
67
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
68
81
  'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
69
82
  'aria-keyshortcuts'?: string | undefined;
70
- 'aria-label'?: string | undefined;
71
- 'aria-labelledby'?: string | undefined;
72
83
  'aria-level'?: number | undefined;
73
84
  'aria-live'?: "off" | "assertive" | "polite" | undefined;
74
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
75
85
  'aria-multiline'?: (boolean | "true" | "false") | undefined;
76
86
  'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
77
87
  'aria-orientation'?: "horizontal" | "vertical" | undefined;
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;
@@ -271,9 +281,16 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
271
281
  (options?: ScrollToOptions | undefined): void;
272
282
  (x: number, y: number): void;
273
283
  };
284
+ animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
285
+ readonly renderOptions: import("lit-html").RenderOptions;
286
+ remove: () => void;
274
287
  normalize: () => void;
275
- flexible: boolean;
288
+ ariaHidden: string | null;
289
+ autofocus: boolean;
290
+ readonly childNodes: NodeListOf<ChildNode>;
276
291
  variant: string;
292
+ emphasized: boolean;
293
+ flexible: boolean;
277
294
  readonly accessKeyLabel: string;
278
295
  autocapitalize: string;
279
296
  inert: boolean;
@@ -365,7 +382,6 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
365
382
  toggleAttribute: (qualifiedName: string, force?: boolean | undefined) => boolean;
366
383
  webkitMatchesSelector: (selectors: string) => boolean;
367
384
  readonly baseURI: string;
368
- readonly childNodes: NodeListOf<ChildNode>;
369
385
  readonly firstChild: ChildNode | null;
370
386
  readonly isConnected: boolean;
371
387
  readonly lastChild: ChildNode | null;
@@ -421,7 +437,6 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
421
437
  ariaDisabled: string | null;
422
438
  ariaExpanded: string | null;
423
439
  ariaHasPopup: string | null;
424
- ariaHidden: string | null;
425
440
  ariaKeyShortcuts: string | null;
426
441
  ariaLabel: string | null;
427
442
  ariaLevel: string | null;
@@ -446,11 +461,9 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
446
461
  ariaValueMin: string | null;
447
462
  ariaValueNow: string | null;
448
463
  ariaValueText: string | null;
449
- animate: (keyframes: Keyframe[] | PropertyIndexedKeyframes | null, options?: number | KeyframeAnimationOptions | undefined) => Animation;
450
464
  getAnimations: (options?: GetAnimationsOptions | undefined) => Animation[];
451
465
  after: (...nodes: (string | Node)[]) => void;
452
466
  before: (...nodes: (string | Node)[]) => void;
453
- remove: () => void;
454
467
  replaceWith: (...nodes: (string | Node)[]) => void;
455
468
  innerHTML: string;
456
469
  readonly nextElementSibling: Element | null;
@@ -566,10 +579,8 @@ export declare const ActionBar: import("react").ComponentType<Partial<{
566
579
  onwebkitanimationstart: ((this: GlobalEventHandlers, ev: Event) => any) | null;
567
580
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
568
581
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
569
- autofocus: boolean;
570
582
  readonly dataset: DOMStringMap;
571
583
  render: () => import("lit-html").TemplateResult<2 | 1>;
572
- readonly renderOptions: import("lit-html").RenderOptions;
573
584
  connectedCallback: () => void;
574
585
  disconnectedCallback: () => void;
575
586
  readonly renderRoot: HTMLElement | ShadowRoot;
@@ -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.1-rc.0+1647bfed5",
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.1-rc.0+1647bfed5"
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": "1647bfed54cb29f3513343cd0d2c2d9e73e1c508"
43
+ "gitHead": "1ee5a6c92838cdf48321276d97f61c20f8476ac1"
44
44
  }