@swc-react/swatch 0.36.0 → 0.38.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,11 +8,6 @@ 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;
16
11
  accessKey?: string | undefined;
17
12
  draggable?: (boolean | "true" | "false") | undefined;
18
13
  hidden?: boolean | undefined;
@@ -25,6 +20,11 @@ export declare const Swatch: import("react").ComponentType<Partial<{
25
20
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
26
21
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
27
22
  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,21 +286,13 @@ 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;
299
289
  readonly renderRoot: HTMLElement | ShadowRoot;
300
290
  isUpdatePending: boolean;
301
291
  hasUpdated: boolean;
302
292
  addController: (controller: import("lit").ReactiveController) => void;
303
293
  removeController: (controller: import("lit").ReactiveController) => void;
294
+ connectedCallback: () => void;
295
+ disconnectedCallback: () => void;
304
296
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
305
297
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
306
298
  readonly updateComplete: Promise<boolean>;
@@ -597,6 +589,14 @@ export declare const Swatch: import("react").ComponentType<Partial<{
597
589
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
598
590
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
599
591
  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,11 +611,6 @@ 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;
619
614
  accessKey?: string | undefined;
620
615
  draggable?: (boolean | "true" | "false") | undefined;
621
616
  hidden?: boolean | undefined;
@@ -628,6 +623,11 @@ export declare const SwatchGroup: import("react").ComponentType<Partial<{
628
623
  contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
629
624
  inputMode?: "text" | "search" | "none" | "tel" | "url" | "email" | "numeric" | "decimal" | undefined;
630
625
  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,21 +886,13 @@ 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;
899
889
  readonly renderRoot: HTMLElement | ShadowRoot;
900
890
  isUpdatePending: boolean;
901
891
  hasUpdated: boolean;
902
892
  addController: (controller: import("lit").ReactiveController) => void;
903
893
  removeController: (controller: import("lit").ReactiveController) => void;
894
+ connectedCallback: () => void;
895
+ disconnectedCallback: () => void;
904
896
  attributeChangedCallback: (name: string, _old: string | null, value: string | null) => void;
905
897
  requestUpdate: (name?: PropertyKey | undefined, oldValue?: unknown, options?: import("lit").PropertyDeclaration<unknown, unknown> | undefined) => void;
906
898
  readonly updateComplete: Promise<boolean>;
@@ -1197,6 +1189,14 @@ export declare const SwatchGroup: import("react").ComponentType<Partial<{
1197
1189
  onwebkittransitionend: ((this: GlobalEventHandlers, ev: Event) => any) | null;
1198
1190
  onwheel: ((this: GlobalEventHandlers, ev: WheelEvent) => any) | null;
1199
1191
  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.36.0",
3
+ "version": "0.38.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.36.0"
33
+ "@spectrum-web-components/swatch": "^0.38.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": "a532ff8a410abeefb54d9638a2316ae82570566e"
43
+ "gitHead": "9a099b7543672f2fd4030833ab813b16c2cad62e"
44
44
  }