@swc-react/swatch 0.35.1-rc.34 → 0.36.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.
Files changed (2) hide show
  1. package/next.d.ts +30 -30
  2. package/package.json +3 -3
package/next.d.ts CHANGED
@@ -8,6 +8,11 @@ export declare const Swatch: import("react").ComponentType<Partial<{
8
8
  tabIndex?: number | undefined;
9
9
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
10
10
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
11
+ color?: string | undefined;
12
+ role?: import("react").AriaRole | undefined;
13
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
14
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
15
+ 'aria-label'?: string | undefined;
11
16
  accessKey?: string | undefined;
12
17
  draggable?: (boolean | "true" | "false") | undefined;
13
18
  hidden?: boolean | undefined;
@@ -20,11 +25,6 @@ export declare const Swatch: import("react").ComponentType<Partial<{
20
25
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
21
26
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
22
27
  nonce?: string | undefined;
23
- color?: string | undefined;
24
- role?: import("react").AriaRole | undefined;
25
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
26
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
27
- 'aria-label'?: string | undefined;
28
28
  defaultChecked?: boolean | undefined;
29
29
  defaultValue?: string | number | readonly string[] | undefined;
30
30
  suppressContentEditableWarning?: boolean | undefined;
@@ -286,13 +286,21 @@ export declare const Swatch: import("react").ComponentType<Partial<{
286
286
  disabled: boolean;
287
287
  autofocus: boolean;
288
288
  normalize: () => void;
289
+ border: import("swatch/src").SwatchBorder;
290
+ mixedValue: boolean;
291
+ nothing: boolean;
292
+ rounding: import("swatch/src").SwatchRounding;
293
+ selected: boolean;
294
+ shape: import("swatch/src").SwatchShape;
295
+ value: string;
296
+ readonly renderOptions: import("lit-html").RenderOptions;
297
+ connectedCallback: () => void;
298
+ disconnectedCallback: () => void;
289
299
  readonly renderRoot: HTMLElement | ShadowRoot;
290
300
  isUpdatePending: boolean;
291
301
  hasUpdated: boolean;
292
302
  addController: (controller: import("lit").ReactiveController) => void;
293
303
  removeController: (controller: import("lit").ReactiveController) => void;
294
- connectedCallback: () => void;
295
- disconnectedCallback: () => void;
296
304
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
297
305
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
298
306
  readonly updateComplete: Promise<boolean>;
@@ -589,14 +597,6 @@ export declare const Swatch: import("react").ComponentType<Partial<{
589
597
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
590
598
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
591
599
  readonly dataset: DOMStringMap;
592
- border: import("swatch/src").SwatchBorder;
593
- mixedValue: boolean;
594
- nothing: boolean;
595
- rounding: import("swatch/src").SwatchRounding;
596
- selected: boolean;
597
- shape: import("swatch/src").SwatchShape;
598
- value: string;
599
- readonly renderOptions: import("lit-html").RenderOptions;
600
600
  isLTR: boolean;
601
601
  hasVisibleFocusInTree: () => boolean;
602
602
  readonly focusElement: HTMLElement;
@@ -611,6 +611,11 @@ export declare const SwatchGroup: import("react").ComponentType<Partial<{
611
611
  tabIndex?: number | undefined;
612
612
  'aria-disabled'?: (boolean | "true" | "false") | undefined;
613
613
  'aria-hidden'?: (boolean | "true" | "false") | undefined;
614
+ color?: string | undefined;
615
+ role?: import("react").AriaRole | undefined;
616
+ 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
617
+ 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
618
+ 'aria-label'?: string | undefined;
614
619
  accessKey?: string | undefined;
615
620
  draggable?: (boolean | "true" | "false") | undefined;
616
621
  hidden?: boolean | undefined;
@@ -623,11 +628,6 @@ export declare const SwatchGroup: import("react").ComponentType<Partial<{
623
628
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
624
629
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
625
630
  nonce?: string | undefined;
626
- color?: string | undefined;
627
- role?: import("react").AriaRole | undefined;
628
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
629
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
630
- 'aria-label'?: string | undefined;
631
631
  defaultChecked?: boolean | undefined;
632
632
  defaultValue?: string | number | readonly string[] | undefined;
633
633
  suppressContentEditableWarning?: boolean | undefined;
@@ -886,13 +886,21 @@ export declare const SwatchGroup: import("react").ComponentType<Partial<{
886
886
  };
887
887
  autofocus: boolean;
888
888
  normalize: () => void;
889
+ border: import("swatch/src").SwatchBorder;
890
+ rounding: import("swatch/src").SwatchRounding;
891
+ selected: string[];
892
+ shape: import("swatch/src").SwatchShape;
893
+ selects: import("swatch/src").SwatchSelects;
894
+ density: "compact" | "spacious" | undefined;
895
+ rovingTabindexController: import("@spectrum-web-components/reactive-controllers/src/RovingTabindex").RovingTabindexController<import("swatch/src").Swatch>;
896
+ readonly renderOptions: import("lit-html").RenderOptions;
897
+ connectedCallback: () => void;
898
+ disconnectedCallback: () => void;
889
899
  readonly renderRoot: HTMLElement | ShadowRoot;
890
900
  isUpdatePending: boolean;
891
901
  hasUpdated: boolean;
892
902
  addController: (controller: import("lit").ReactiveController) => void;
893
903
  removeController: (controller: import("lit").ReactiveController) => void;
894
- connectedCallback: () => void;
895
- disconnectedCallback: () => void;
896
904
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
897
905
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
898
906
  readonly updateComplete: Promise<boolean>;
@@ -1189,14 +1197,6 @@ export declare const SwatchGroup: import("react").ComponentType<Partial<{
1189
1197
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1190
1198
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1191
1199
  readonly dataset: DOMStringMap;
1192
- border: import("swatch/src").SwatchBorder;
1193
- rounding: import("swatch/src").SwatchRounding;
1194
- selected: string[];
1195
- shape: import("swatch/src").SwatchShape;
1196
- selects: import("swatch/src").SwatchSelects;
1197
- density: "compact" | "spacious" | undefined;
1198
- rovingTabindexController: import("@spectrum-web-components/reactive-controllers/src/RovingTabindex").RovingTabindexController<import("swatch/src").Swatch>;
1199
- readonly renderOptions: import("lit-html").RenderOptions;
1200
1200
  isLTR: boolean;
1201
1201
  hasVisibleFocusInTree: () => boolean;
1202
1202
  } & {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/swatch",
3
- "version": "0.35.1-rc.34+2cc53a49a",
3
+ "version": "0.36.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/swatch": "^0.35.1-rc.34+2cc53a49a"
33
+ "@spectrum-web-components/swatch": "^0.36.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": "a532ff8a410abeefb54d9638a2316ae82570566e"
44
44
  }