@swc-react/radio 0.11.14 → 0.30.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,6 @@
1
1
  import type { EventName } from '@lit-labs/react';
2
2
  import { Radio as SpRadio } from '@spectrum-web-components/radio';
3
3
  import { RadioGroup as SpRadioGroup } from '@spectrum-web-components/radio';
4
- import '@spectrum-web-components/radio/sp-radio-group.js';
5
- import '@spectrum-web-components/radio/sp-radio.js';
6
4
  export declare const Radio: import("@lit-labs/react").ReactWebComponent<SpRadio, {
7
5
  keydown: EventName<KeyboardEvent>;
8
6
  change: EventName<Event>;
package/index.dev.js CHANGED
@@ -3,8 +3,6 @@ import * as React from "react";
3
3
  import { createComponent } from "@lit-labs/react";
4
4
  import { Radio as SpRadio } from "@spectrum-web-components/radio";
5
5
  import { RadioGroup as SpRadioGroup } from "@spectrum-web-components/radio";
6
- import "@spectrum-web-components/radio/sp-radio-group.js";
7
- import "@spectrum-web-components/radio/sp-radio.js";
8
6
  export const Radio = createComponent({
9
7
  displayName: "Radio",
10
8
  elementClass: SpRadio,
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 { Radio as SpRadio } from '@spectrum-web-components/radio';\nimport { RadioGroup as SpRadioGroup } from '@spectrum-web-components/radio';\n\nimport '@spectrum-web-components/radio/sp-radio-group.js';\nimport '@spectrum-web-components/radio/sp-radio.js';\n\nexport const Radio = createComponent({\n displayName: 'Radio',\n elementClass: SpRadio,\n react: React,\n tagName: 'sp-radio',\n events: {\n keydown: 'keydown' as EventName<KeyboardEvent>, // Trick :focus-visible polyfill into thinking keyboard based focus\n change: 'change' as EventName<Event>, // When the input is interacted with and its state is changed\n },\n});\nexport const RadioGroup = createComponent({\n displayName: 'RadioGroup',\n elementClass: SpRadioGroup,\n react: React,\n tagName: 'sp-radio-group',\n events: {\n change: 'change' as EventName<Event>, // An alteration to the value of the element has been committed by the user.\n },\n});\n\nexport type RadioType = EventTarget & SpRadio;\nexport type RadioGroupType = EventTarget & SpRadioGroup;\n"],
5
- "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,SAAS,eAAe;AACjC,SAAS,cAAc,oBAAoB;AAE3C,OAAO;AACP,OAAO;AAEA,aAAM,QAAQ,gBAAgB;AAAA,EACjC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,SAAS;AAAA;AAAA,IACT,QAAQ;AAAA;AAAA,EACZ;AACJ,CAAC;AACM,aAAM,aAAa,gBAAgB;AAAA,EACtC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,EACZ;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 type { EventName } from '@lit-labs/react';\nimport { Radio as SpRadio } from '@spectrum-web-components/radio';\nimport { RadioGroup as SpRadioGroup } from '@spectrum-web-components/radio';\n\nexport const Radio = createComponent({\n displayName: 'Radio',\n elementClass: SpRadio,\n react: React,\n tagName: 'sp-radio',\n events: {\n keydown: 'keydown' as EventName<KeyboardEvent>, // Trick :focus-visible polyfill into thinking keyboard based focus\n change: 'change' as EventName<Event>, // When the input is interacted with and its state is changed\n },\n});\nexport const RadioGroup = createComponent({\n displayName: 'RadioGroup',\n elementClass: SpRadioGroup,\n react: React,\n tagName: 'sp-radio-group',\n events: {\n change: 'change' as EventName<Event>, // An alteration to the value of the element has been committed by the user.\n },\n});\n\nexport type RadioType = EventTarget & SpRadio;\nexport type RadioGroupType = EventTarget & SpRadioGroup;\n"],
5
+ "mappings": ";AAYA,YAAY,WAAW;AACvB,SAAS,uBAAuB;AAEhC,SAAS,SAAS,eAAe;AACjC,SAAS,cAAc,oBAAoB;AAEpC,aAAM,QAAQ,gBAAgB;AAAA,EACjC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,SAAS;AAAA;AAAA,IACT,QAAQ;AAAA;AAAA,EACZ;AACJ,CAAC;AACM,aAAM,aAAa,gBAAgB;AAAA,EACtC,aAAa;AAAA,EACb,cAAc;AAAA,EACd,OAAO;AAAA,EACP,SAAS;AAAA,EACT,QAAQ;AAAA,IACJ,QAAQ;AAAA;AAAA,EACZ;AACJ,CAAC;",
6
6
  "names": []
7
7
  }
package/index.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";import*as e from"react";import{createComponent as a}from"@lit-labs/react";import{Radio as o}from"@spectrum-web-components/radio";import{RadioGroup as t}from"@spectrum-web-components/radio";import"@spectrum-web-components/radio/sp-radio-group.js";import"@spectrum-web-components/radio/sp-radio.js";export const Radio=a({displayName:"Radio",elementClass:o,react:e,tagName:"sp-radio",events:{keydown:"keydown",change:"change"}}),RadioGroup=a({displayName:"RadioGroup",elementClass:t,react:e,tagName:"sp-radio-group",events:{change:"change"}});
1
+ "use strict";import*as e from"react";import{createComponent as a}from"@lit-labs/react";import{Radio as o}from"@spectrum-web-components/radio";import{RadioGroup as t}from"@spectrum-web-components/radio";export const Radio=a({displayName:"Radio",elementClass:o,react:e,tagName:"sp-radio",events:{keydown:"keydown",change:"change"}}),RadioGroup=a({displayName:"RadioGroup",elementClass:t,react:e,tagName:"sp-radio-group",events:{change:"change"}});
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 { Radio as SpRadio } from '@spectrum-web-components/radio';\nimport { RadioGroup as SpRadioGroup } from '@spectrum-web-components/radio';\n\nimport '@spectrum-web-components/radio/sp-radio-group.js';\nimport '@spectrum-web-components/radio/sp-radio.js';\n\nexport const Radio = createComponent({\n displayName: 'Radio',\n elementClass: SpRadio,\n react: React,\n tagName: 'sp-radio',\n events: {\n keydown: 'keydown' as EventName<KeyboardEvent>, // Trick :focus-visible polyfill into thinking keyboard based focus\n change: 'change' as EventName<Event>, // When the input is interacted with and its state is changed\n },\n});\nexport const RadioGroup = createComponent({\n displayName: 'RadioGroup',\n elementClass: SpRadioGroup,\n react: React,\n tagName: 'sp-radio-group',\n events: {\n change: 'change' as EventName<Event>, // An alteration to the value of the element has been committed by the user.\n },\n});\n\nexport type RadioType = EventTarget & SpRadio;\nexport type RadioGroupType = EventTarget & SpRadioGroup;\n"],
5
- "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,SAASC,MAAe,iCACjC,OAAS,cAAcC,MAAoB,iCAE3C,MAAO,mDACP,MAAO,6CAEA,aAAM,MAAQF,EAAgB,CACjC,YAAa,QACb,aAAcC,EACd,MAAOF,EACP,QAAS,WACT,OAAQ,CACJ,QAAS,UACT,OAAQ,QACZ,CACJ,CAAC,EACY,WAAaC,EAAgB,CACtC,YAAa,aACb,aAAcE,EACd,MAAOH,EACP,QAAS,iBACT,OAAQ,CACJ,OAAQ,QACZ,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 type { EventName } from '@lit-labs/react';\nimport { Radio as SpRadio } from '@spectrum-web-components/radio';\nimport { RadioGroup as SpRadioGroup } from '@spectrum-web-components/radio';\n\nexport const Radio = createComponent({\n displayName: 'Radio',\n elementClass: SpRadio,\n react: React,\n tagName: 'sp-radio',\n events: {\n keydown: 'keydown' as EventName<KeyboardEvent>, // Trick :focus-visible polyfill into thinking keyboard based focus\n change: 'change' as EventName<Event>, // When the input is interacted with and its state is changed\n },\n});\nexport const RadioGroup = createComponent({\n displayName: 'RadioGroup',\n elementClass: SpRadioGroup,\n react: React,\n tagName: 'sp-radio-group',\n events: {\n change: 'change' as EventName<Event>, // An alteration to the value of the element has been committed by the user.\n },\n});\n\nexport type RadioType = EventTarget & SpRadio;\nexport type RadioGroupType = EventTarget & SpRadioGroup;\n"],
5
+ "mappings": "aAYA,UAAYA,MAAW,QACvB,OAAS,mBAAAC,MAAuB,kBAEhC,OAAS,SAASC,MAAe,iCACjC,OAAS,cAAcC,MAAoB,iCAEpC,aAAM,MAAQF,EAAgB,CACjC,YAAa,QACb,aAAcC,EACd,MAAOF,EACP,QAAS,WACT,OAAQ,CACJ,QAAS,UACT,OAAQ,QACZ,CACJ,CAAC,EACY,WAAaC,EAAgB,CACtC,YAAa,aACb,aAAcE,EACd,MAAOH,EACP,QAAS,iBACT,OAAQ,CACJ,OAAQ,QACZ,CACJ,CAAC",
6
6
  "names": ["React", "createComponent", "SpRadio", "SpRadioGroup"]
7
7
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@swc-react/radio",
3
- "version": "0.11.14",
3
+ "version": "0.30.0",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -20,7 +20,7 @@
20
20
  ],
21
21
  "dependencies": {
22
22
  "@lit-labs/react": "^1.1.1",
23
- "@spectrum-web-components/radio": "0.11.14"
23
+ "@spectrum-web-components/radio": "0.30.0"
24
24
  },
25
- "gitHead": "277bf58bb0fe4c2efaf0fc49391b3fe35af1890b"
25
+ "gitHead": "25acadb3cbf24300ae962de211c0bfdb7b1c809d"
26
26
  }