@react-spectrum/button 3.17.6 → 3.18.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 (228) hide show
  1. package/dist/import.mjs +7 -7
  2. package/dist/main.js +12 -12
  3. package/dist/main.js.map +1 -1
  4. package/dist/module.js +7 -7
  5. package/dist/module.js.map +1 -1
  6. package/dist/types/src/index.d.ts +10 -0
  7. package/package.json +12 -35
  8. package/src/index.ts +11 -7
  9. package/dist/ActionButton.main.js +0 -93
  10. package/dist/ActionButton.main.js.map +0 -1
  11. package/dist/ActionButton.mjs +0 -88
  12. package/dist/ActionButton.module.js +0 -88
  13. package/dist/ActionButton.module.js.map +0 -1
  14. package/dist/Button.main.js +0 -181
  15. package/dist/Button.main.js.map +0 -1
  16. package/dist/Button.mjs +0 -176
  17. package/dist/Button.module.js +0 -176
  18. package/dist/Button.module.js.map +0 -1
  19. package/dist/ClearButton.main.js +0 -75
  20. package/dist/ClearButton.main.js.map +0 -1
  21. package/dist/ClearButton.mjs +0 -70
  22. package/dist/ClearButton.module.js +0 -70
  23. package/dist/ClearButton.module.js.map +0 -1
  24. package/dist/FieldButton.main.js +0 -70
  25. package/dist/FieldButton.main.js.map +0 -1
  26. package/dist/FieldButton.mjs +0 -65
  27. package/dist/FieldButton.module.js +0 -65
  28. package/dist/FieldButton.module.js.map +0 -1
  29. package/dist/LogicButton.main.js +0 -67
  30. package/dist/LogicButton.main.js.map +0 -1
  31. package/dist/LogicButton.mjs +0 -62
  32. package/dist/LogicButton.module.js +0 -62
  33. package/dist/LogicButton.module.js.map +0 -1
  34. package/dist/ToggleButton.main.js +0 -86
  35. package/dist/ToggleButton.main.js.map +0 -1
  36. package/dist/ToggleButton.mjs +0 -81
  37. package/dist/ToggleButton.module.js +0 -81
  38. package/dist/ToggleButton.module.js.map +0 -1
  39. package/dist/ar-AE.main.js +0 -6
  40. package/dist/ar-AE.main.js.map +0 -1
  41. package/dist/ar-AE.mjs +0 -8
  42. package/dist/ar-AE.module.js +0 -8
  43. package/dist/ar-AE.module.js.map +0 -1
  44. package/dist/bg-BG.main.js +0 -6
  45. package/dist/bg-BG.main.js.map +0 -1
  46. package/dist/bg-BG.mjs +0 -8
  47. package/dist/bg-BG.module.js +0 -8
  48. package/dist/bg-BG.module.js.map +0 -1
  49. package/dist/button.c18453ac.css +0 -1669
  50. package/dist/button.c18453ac.css.map +0 -1
  51. package/dist/button_vars_css.main.js +0 -125
  52. package/dist/button_vars_css.main.js.map +0 -1
  53. package/dist/button_vars_css.mjs +0 -127
  54. package/dist/button_vars_css.module.js +0 -127
  55. package/dist/button_vars_css.module.js.map +0 -1
  56. package/dist/cs-CZ.main.js +0 -6
  57. package/dist/cs-CZ.main.js.map +0 -1
  58. package/dist/cs-CZ.mjs +0 -8
  59. package/dist/cs-CZ.module.js +0 -8
  60. package/dist/cs-CZ.module.js.map +0 -1
  61. package/dist/da-DK.main.js +0 -6
  62. package/dist/da-DK.main.js.map +0 -1
  63. package/dist/da-DK.mjs +0 -8
  64. package/dist/da-DK.module.js +0 -8
  65. package/dist/da-DK.module.js.map +0 -1
  66. package/dist/de-DE.main.js +0 -6
  67. package/dist/de-DE.main.js.map +0 -1
  68. package/dist/de-DE.mjs +0 -8
  69. package/dist/de-DE.module.js +0 -8
  70. package/dist/de-DE.module.js.map +0 -1
  71. package/dist/el-GR.main.js +0 -6
  72. package/dist/el-GR.main.js.map +0 -1
  73. package/dist/el-GR.mjs +0 -8
  74. package/dist/el-GR.module.js +0 -8
  75. package/dist/el-GR.module.js.map +0 -1
  76. package/dist/en-US.main.js +0 -6
  77. package/dist/en-US.main.js.map +0 -1
  78. package/dist/en-US.mjs +0 -8
  79. package/dist/en-US.module.js +0 -8
  80. package/dist/en-US.module.js.map +0 -1
  81. package/dist/es-ES.main.js +0 -6
  82. package/dist/es-ES.main.js.map +0 -1
  83. package/dist/es-ES.mjs +0 -8
  84. package/dist/es-ES.module.js +0 -8
  85. package/dist/es-ES.module.js.map +0 -1
  86. package/dist/et-EE.main.js +0 -6
  87. package/dist/et-EE.main.js.map +0 -1
  88. package/dist/et-EE.mjs +0 -8
  89. package/dist/et-EE.module.js +0 -8
  90. package/dist/et-EE.module.js.map +0 -1
  91. package/dist/fi-FI.main.js +0 -6
  92. package/dist/fi-FI.main.js.map +0 -1
  93. package/dist/fi-FI.mjs +0 -8
  94. package/dist/fi-FI.module.js +0 -8
  95. package/dist/fi-FI.module.js.map +0 -1
  96. package/dist/fr-FR.main.js +0 -6
  97. package/dist/fr-FR.main.js.map +0 -1
  98. package/dist/fr-FR.mjs +0 -8
  99. package/dist/fr-FR.module.js +0 -8
  100. package/dist/fr-FR.module.js.map +0 -1
  101. package/dist/he-IL.main.js +0 -6
  102. package/dist/he-IL.main.js.map +0 -1
  103. package/dist/he-IL.mjs +0 -8
  104. package/dist/he-IL.module.js +0 -8
  105. package/dist/he-IL.module.js.map +0 -1
  106. package/dist/hr-HR.main.js +0 -6
  107. package/dist/hr-HR.main.js.map +0 -1
  108. package/dist/hr-HR.mjs +0 -8
  109. package/dist/hr-HR.module.js +0 -8
  110. package/dist/hr-HR.module.js.map +0 -1
  111. package/dist/hu-HU.main.js +0 -6
  112. package/dist/hu-HU.main.js.map +0 -1
  113. package/dist/hu-HU.mjs +0 -8
  114. package/dist/hu-HU.module.js +0 -8
  115. package/dist/hu-HU.module.js.map +0 -1
  116. package/dist/intlStrings.main.js +0 -108
  117. package/dist/intlStrings.main.js.map +0 -1
  118. package/dist/intlStrings.mjs +0 -110
  119. package/dist/intlStrings.module.js +0 -110
  120. package/dist/intlStrings.module.js.map +0 -1
  121. package/dist/it-IT.main.js +0 -6
  122. package/dist/it-IT.main.js.map +0 -1
  123. package/dist/it-IT.mjs +0 -8
  124. package/dist/it-IT.module.js +0 -8
  125. package/dist/it-IT.module.js.map +0 -1
  126. package/dist/ja-JP.main.js +0 -6
  127. package/dist/ja-JP.main.js.map +0 -1
  128. package/dist/ja-JP.mjs +0 -8
  129. package/dist/ja-JP.module.js +0 -8
  130. package/dist/ja-JP.module.js.map +0 -1
  131. package/dist/ko-KR.main.js +0 -6
  132. package/dist/ko-KR.main.js.map +0 -1
  133. package/dist/ko-KR.mjs +0 -8
  134. package/dist/ko-KR.module.js +0 -8
  135. package/dist/ko-KR.module.js.map +0 -1
  136. package/dist/lt-LT.main.js +0 -6
  137. package/dist/lt-LT.main.js.map +0 -1
  138. package/dist/lt-LT.mjs +0 -8
  139. package/dist/lt-LT.module.js +0 -8
  140. package/dist/lt-LT.module.js.map +0 -1
  141. package/dist/lv-LV.main.js +0 -6
  142. package/dist/lv-LV.main.js.map +0 -1
  143. package/dist/lv-LV.mjs +0 -8
  144. package/dist/lv-LV.module.js +0 -8
  145. package/dist/lv-LV.module.js.map +0 -1
  146. package/dist/nb-NO.main.js +0 -6
  147. package/dist/nb-NO.main.js.map +0 -1
  148. package/dist/nb-NO.mjs +0 -8
  149. package/dist/nb-NO.module.js +0 -8
  150. package/dist/nb-NO.module.js.map +0 -1
  151. package/dist/nl-NL.main.js +0 -6
  152. package/dist/nl-NL.main.js.map +0 -1
  153. package/dist/nl-NL.mjs +0 -8
  154. package/dist/nl-NL.module.js +0 -8
  155. package/dist/nl-NL.module.js.map +0 -1
  156. package/dist/pl-PL.main.js +0 -6
  157. package/dist/pl-PL.main.js.map +0 -1
  158. package/dist/pl-PL.mjs +0 -8
  159. package/dist/pl-PL.module.js +0 -8
  160. package/dist/pl-PL.module.js.map +0 -1
  161. package/dist/pt-BR.main.js +0 -6
  162. package/dist/pt-BR.main.js.map +0 -1
  163. package/dist/pt-BR.mjs +0 -8
  164. package/dist/pt-BR.module.js +0 -8
  165. package/dist/pt-BR.module.js.map +0 -1
  166. package/dist/pt-PT.main.js +0 -6
  167. package/dist/pt-PT.main.js.map +0 -1
  168. package/dist/pt-PT.mjs +0 -8
  169. package/dist/pt-PT.module.js +0 -8
  170. package/dist/pt-PT.module.js.map +0 -1
  171. package/dist/ro-RO.main.js +0 -6
  172. package/dist/ro-RO.main.js.map +0 -1
  173. package/dist/ro-RO.mjs +0 -8
  174. package/dist/ro-RO.module.js +0 -8
  175. package/dist/ro-RO.module.js.map +0 -1
  176. package/dist/ru-RU.main.js +0 -6
  177. package/dist/ru-RU.main.js.map +0 -1
  178. package/dist/ru-RU.mjs +0 -8
  179. package/dist/ru-RU.module.js +0 -8
  180. package/dist/ru-RU.module.js.map +0 -1
  181. package/dist/sk-SK.main.js +0 -6
  182. package/dist/sk-SK.main.js.map +0 -1
  183. package/dist/sk-SK.mjs +0 -8
  184. package/dist/sk-SK.module.js +0 -8
  185. package/dist/sk-SK.module.js.map +0 -1
  186. package/dist/sl-SI.main.js +0 -6
  187. package/dist/sl-SI.main.js.map +0 -1
  188. package/dist/sl-SI.mjs +0 -8
  189. package/dist/sl-SI.module.js +0 -8
  190. package/dist/sl-SI.module.js.map +0 -1
  191. package/dist/sr-SP.main.js +0 -6
  192. package/dist/sr-SP.main.js.map +0 -1
  193. package/dist/sr-SP.mjs +0 -8
  194. package/dist/sr-SP.module.js +0 -8
  195. package/dist/sr-SP.module.js.map +0 -1
  196. package/dist/sv-SE.main.js +0 -6
  197. package/dist/sv-SE.main.js.map +0 -1
  198. package/dist/sv-SE.mjs +0 -8
  199. package/dist/sv-SE.module.js +0 -8
  200. package/dist/sv-SE.module.js.map +0 -1
  201. package/dist/tr-TR.main.js +0 -6
  202. package/dist/tr-TR.main.js.map +0 -1
  203. package/dist/tr-TR.mjs +0 -8
  204. package/dist/tr-TR.module.js +0 -8
  205. package/dist/tr-TR.module.js.map +0 -1
  206. package/dist/types.d.ts +0 -44
  207. package/dist/types.d.ts.map +0 -1
  208. package/dist/uk-UA.main.js +0 -6
  209. package/dist/uk-UA.main.js.map +0 -1
  210. package/dist/uk-UA.mjs +0 -8
  211. package/dist/uk-UA.module.js +0 -8
  212. package/dist/uk-UA.module.js.map +0 -1
  213. package/dist/zh-CN.main.js +0 -6
  214. package/dist/zh-CN.main.js.map +0 -1
  215. package/dist/zh-CN.mjs +0 -8
  216. package/dist/zh-CN.module.js +0 -8
  217. package/dist/zh-CN.module.js.map +0 -1
  218. package/dist/zh-TW.main.js +0 -6
  219. package/dist/zh-TW.main.js.map +0 -1
  220. package/dist/zh-TW.mjs +0 -8
  221. package/dist/zh-TW.module.js +0 -8
  222. package/dist/zh-TW.module.js.map +0 -1
  223. package/src/ActionButton.tsx +0 -104
  224. package/src/Button.tsx +0 -207
  225. package/src/ClearButton.tsx +0 -81
  226. package/src/FieldButton.tsx +0 -81
  227. package/src/LogicButton.tsx +0 -64
  228. package/src/ToggleButton.tsx +0 -90
@@ -1,75 +0,0 @@
1
- require("./button.c18453ac.css");
2
- var $afc5a4514aca2340$exports = require("./button_vars_css.main.js");
3
- var $3cv9y$reactspectrumutils = require("@react-spectrum/utils");
4
- var $3cv9y$spectrumiconsuiCrossSmall = require("@spectrum-icons/ui/CrossSmall");
5
- var $3cv9y$reactariafocus = require("@react-aria/focus");
6
- var $3cv9y$reactariautils = require("@react-aria/utils");
7
- var $3cv9y$react = require("react");
8
- var $3cv9y$reactariabutton = require("@react-aria/button");
9
- var $3cv9y$reactariainteractions = require("@react-aria/interactions");
10
-
11
-
12
- function $parcel$interopDefault(a) {
13
- return a && a.__esModule ? a.default : a;
14
- }
15
-
16
- function $parcel$export(e, n, v, s) {
17
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
18
- }
19
-
20
- $parcel$export(module.exports, "ClearButton", () => $9c84a434f1c9da63$export$13ec83e50bf04290);
21
- /*
22
- * Copyright 2020 Adobe. All rights reserved.
23
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
24
- * you may not use this file except in compliance with the License. You may obtain a copy
25
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
26
- *
27
- * Unless required by applicable law or agreed to in writing, software distributed under
28
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
29
- * OF ANY KIND, either express or implied. See the License for the specific language
30
- * governing permissions and limitations under the License.
31
- */
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
- const $9c84a434f1c9da63$export$13ec83e50bf04290 = /*#__PURE__*/ (0, ($parcel$interopDefault($3cv9y$react))).forwardRef(function ClearButton(props, ref) {
40
- let { children: children = /*#__PURE__*/ (0, ($parcel$interopDefault($3cv9y$react))).createElement((0, ($parcel$interopDefault($3cv9y$spectrumiconsuiCrossSmall))), {
41
- UNSAFE_className: (0, ($parcel$interopDefault($afc5a4514aca2340$exports)))['spectrum-Icon']
42
- }), focusClassName: focusClassName, variant: variant, autoFocus: autoFocus, isDisabled: isDisabled, preventFocus: preventFocus, elementType: elementType = preventFocus ? 'div' : 'button', inset: inset = false, ...otherProps } = props;
43
- let domRef = (0, $3cv9y$reactspectrumutils.useFocusableRef)(ref);
44
- let { buttonProps: buttonProps, isPressed: isPressed } = (0, $3cv9y$reactariabutton.useButton)({
45
- ...props,
46
- elementType: elementType
47
- }, domRef);
48
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $3cv9y$reactariainteractions.useHover)({
49
- isDisabled: isDisabled
50
- });
51
- let { styleProps: styleProps } = (0, $3cv9y$reactspectrumutils.useStyleProps)(otherProps);
52
- // For cases like the clear button in a search field, remove the tabIndex so
53
- // iOS 14 with VoiceOver doesn't focus the button and hide the keyboard when
54
- // moving the cursor over the clear button.
55
- if (preventFocus) delete buttonProps.tabIndex;
56
- let ElementType = elementType;
57
- return /*#__PURE__*/ (0, ($parcel$interopDefault($3cv9y$react))).createElement((0, $3cv9y$reactariafocus.FocusRing), {
58
- focusRingClass: (0, $3cv9y$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'focus-ring', focusClassName),
59
- autoFocus: autoFocus
60
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($3cv9y$react))).createElement(ElementType, {
61
- ...styleProps,
62
- ...(0, $3cv9y$reactariautils.mergeProps)(buttonProps, hoverProps),
63
- ref: domRef,
64
- className: (0, $3cv9y$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'spectrum-ClearButton', {
65
- [`spectrum-ClearButton--${variant}`]: variant,
66
- 'is-disabled': isDisabled,
67
- 'is-active': isPressed,
68
- 'is-hovered': isHovered,
69
- 'spectrum-ClearButton--inset': inset
70
- }, styleProps.className)
71
- }, children));
72
- });
73
-
74
-
75
- //# sourceMappingURL=ClearButton.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AAqBM,MAAM,0DAAc,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC,SAAS,YAAY,KAAuB,EAAE,GAAoC;IAC5H,IAAI,YACF,yBAAW,0DAAC,CAAA,GAAA,0DAAS;QAAE,kBAAkB,CAAA,GAAA,mDAAK,CAAC,CAAC,gBAAgB;wBAChE,cAAc,WACd,OAAO,aACP,SAAS,cACT,UAAU,gBACV,YAAY,eACZ,cAAc,eAAe,QAAQ,iBACrC,QAAQ,OACR,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,yCAAc,EAAE;IAC7B,IAAI,eAAC,WAAW,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,gCAAQ,EAAE;QAAC,GAAG,KAAK;qBAAE;IAAW,GAAG;IAClE,IAAI,cAAC,UAAU,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,qCAAO,EAAE;oBAAC;IAAU;IAClD,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IAEjC,4EAA4E;IAC5E,4EAA4E;IAC5E,2CAA2C;IAC3C,IAAI,cACF,OAAO,YAAY,QAAQ;IAG7B,IAAI,cAAc;IAClB,qBACE,0DAAC,CAAA,GAAA,+BAAQ;QAAE,gBAAgB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG,cAAc;QAAiB,WAAW;qBACtF,0DAAC;QACE,GAAG,UAAU;QACb,GAAG,CAAA,GAAA,gCAAS,EAAE,aAAa,WAAW;QACvC,KAAK;QACL,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,wBACA;YACE,CAAC,CAAC,sBAAsB,EAAE,SAAS,CAAC,EAAE;YACtC,eAAe;YACf,aAAa;YACb,cAAc;YACd,+BAA+B;QACjC,GACA,WAAW,SAAS;OAGvB;AAIT","sources":["packages/@react-spectrum/button/src/ClearButton.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonElementTypeProps, ButtonProps} from '@react-types/button';\nimport {classNames, useFocusableRef, useStyleProps} from '@react-spectrum/utils';\nimport CrossSmall from '@spectrum-icons/ui/CrossSmall';\nimport {DOMProps, FocusableRef, StyleProps} from '@react-types/shared';\nimport {FocusRing} from '@react-aria/focus';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {ElementType} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/button/vars.css';\nimport {useButton} from '@react-aria/button';\nimport {useHover} from '@react-aria/interactions';\n\ninterface ClearButtonProps<T extends ElementType = 'button'> extends ButtonProps, AriaButtonElementTypeProps<T>, DOMProps, StyleProps {\n focusClassName?: string,\n variant?: 'overBackground',\n excludeFromTabOrder?: boolean,\n preventFocus?: boolean,\n inset?: boolean\n}\n\nexport const ClearButton = React.forwardRef(function ClearButton(props: ClearButtonProps, ref: FocusableRef<HTMLButtonElement>) {\n let {\n children = <CrossSmall UNSAFE_className={styles['spectrum-Icon']} />,\n focusClassName,\n variant,\n autoFocus,\n isDisabled,\n preventFocus,\n elementType = preventFocus ? 'div' : 'button' as ElementType,\n inset = false,\n ...otherProps\n } = props;\n let domRef = useFocusableRef(ref);\n let {buttonProps, isPressed} = useButton({...props, elementType}, domRef);\n let {hoverProps, isHovered} = useHover({isDisabled});\n let {styleProps} = useStyleProps(otherProps);\n\n // For cases like the clear button in a search field, remove the tabIndex so\n // iOS 14 with VoiceOver doesn't focus the button and hide the keyboard when\n // moving the cursor over the clear button.\n if (preventFocus) {\n delete buttonProps.tabIndex;\n }\n\n let ElementType = elementType;\n return (\n <FocusRing focusRingClass={classNames(styles, 'focus-ring', focusClassName)} autoFocus={autoFocus}>\n <ElementType\n {...styleProps}\n {...mergeProps(buttonProps, hoverProps)}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-ClearButton',\n {\n [`spectrum-ClearButton--${variant}`]: variant,\n 'is-disabled': isDisabled,\n 'is-active': isPressed,\n 'is-hovered': isHovered,\n 'spectrum-ClearButton--inset': inset\n },\n styleProps.className\n )\n }>\n {children}\n </ElementType>\n </FocusRing>\n );\n});\n"],"names":[],"version":3,"file":"ClearButton.main.js.map"}
@@ -1,70 +0,0 @@
1
- import "./button.c18453ac.css";
2
- import $d0kJV$button_vars_cssmodulejs from "./button_vars_css.mjs";
3
- import {useFocusableRef as $d0kJV$useFocusableRef, useStyleProps as $d0kJV$useStyleProps, classNames as $d0kJV$classNames} from "@react-spectrum/utils";
4
- import $d0kJV$spectrumiconsuiCrossSmall from "@spectrum-icons/ui/CrossSmall";
5
- import {FocusRing as $d0kJV$FocusRing} from "@react-aria/focus";
6
- import {mergeProps as $d0kJV$mergeProps} from "@react-aria/utils";
7
- import $d0kJV$react from "react";
8
- import {useButton as $d0kJV$useButton} from "@react-aria/button";
9
- import {useHover as $d0kJV$useHover} from "@react-aria/interactions";
10
-
11
-
12
- function $parcel$interopDefault(a) {
13
- return a && a.__esModule ? a.default : a;
14
- }
15
- /*
16
- * Copyright 2020 Adobe. All rights reserved.
17
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
18
- * you may not use this file except in compliance with the License. You may obtain a copy
19
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
20
- *
21
- * Unless required by applicable law or agreed to in writing, software distributed under
22
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
23
- * OF ANY KIND, either express or implied. See the License for the specific language
24
- * governing permissions and limitations under the License.
25
- */
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
- const $dd24e555a16de2ae$export$13ec83e50bf04290 = /*#__PURE__*/ (0, $d0kJV$react).forwardRef(function ClearButton(props, ref) {
34
- let { children: children = /*#__PURE__*/ (0, $d0kJV$react).createElement((0, $d0kJV$spectrumiconsuiCrossSmall), {
35
- UNSAFE_className: (0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs)))['spectrum-Icon']
36
- }), focusClassName: focusClassName, variant: variant, autoFocus: autoFocus, isDisabled: isDisabled, preventFocus: preventFocus, elementType: elementType = preventFocus ? 'div' : 'button', inset: inset = false, ...otherProps } = props;
37
- let domRef = (0, $d0kJV$useFocusableRef)(ref);
38
- let { buttonProps: buttonProps, isPressed: isPressed } = (0, $d0kJV$useButton)({
39
- ...props,
40
- elementType: elementType
41
- }, domRef);
42
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $d0kJV$useHover)({
43
- isDisabled: isDisabled
44
- });
45
- let { styleProps: styleProps } = (0, $d0kJV$useStyleProps)(otherProps);
46
- // For cases like the clear button in a search field, remove the tabIndex so
47
- // iOS 14 with VoiceOver doesn't focus the button and hide the keyboard when
48
- // moving the cursor over the clear button.
49
- if (preventFocus) delete buttonProps.tabIndex;
50
- let ElementType = elementType;
51
- return /*#__PURE__*/ (0, $d0kJV$react).createElement((0, $d0kJV$FocusRing), {
52
- focusRingClass: (0, $d0kJV$classNames)((0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs))), 'focus-ring', focusClassName),
53
- autoFocus: autoFocus
54
- }, /*#__PURE__*/ (0, $d0kJV$react).createElement(ElementType, {
55
- ...styleProps,
56
- ...(0, $d0kJV$mergeProps)(buttonProps, hoverProps),
57
- ref: domRef,
58
- className: (0, $d0kJV$classNames)((0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs))), 'spectrum-ClearButton', {
59
- [`spectrum-ClearButton--${variant}`]: variant,
60
- 'is-disabled': isDisabled,
61
- 'is-active': isPressed,
62
- 'is-hovered': isHovered,
63
- 'spectrum-ClearButton--inset': inset
64
- }, styleProps.className)
65
- }, children));
66
- });
67
-
68
-
69
- export {$dd24e555a16de2ae$export$13ec83e50bf04290 as ClearButton};
70
- //# sourceMappingURL=ClearButton.module.js.map
@@ -1,70 +0,0 @@
1
- import "./button.c18453ac.css";
2
- import $d0kJV$button_vars_cssmodulejs from "./button_vars_css.module.js";
3
- import {useFocusableRef as $d0kJV$useFocusableRef, useStyleProps as $d0kJV$useStyleProps, classNames as $d0kJV$classNames} from "@react-spectrum/utils";
4
- import $d0kJV$spectrumiconsuiCrossSmall from "@spectrum-icons/ui/CrossSmall";
5
- import {FocusRing as $d0kJV$FocusRing} from "@react-aria/focus";
6
- import {mergeProps as $d0kJV$mergeProps} from "@react-aria/utils";
7
- import $d0kJV$react from "react";
8
- import {useButton as $d0kJV$useButton} from "@react-aria/button";
9
- import {useHover as $d0kJV$useHover} from "@react-aria/interactions";
10
-
11
-
12
- function $parcel$interopDefault(a) {
13
- return a && a.__esModule ? a.default : a;
14
- }
15
- /*
16
- * Copyright 2020 Adobe. All rights reserved.
17
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
18
- * you may not use this file except in compliance with the License. You may obtain a copy
19
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
20
- *
21
- * Unless required by applicable law or agreed to in writing, software distributed under
22
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
23
- * OF ANY KIND, either express or implied. See the License for the specific language
24
- * governing permissions and limitations under the License.
25
- */
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
- const $dd24e555a16de2ae$export$13ec83e50bf04290 = /*#__PURE__*/ (0, $d0kJV$react).forwardRef(function ClearButton(props, ref) {
34
- let { children: children = /*#__PURE__*/ (0, $d0kJV$react).createElement((0, $d0kJV$spectrumiconsuiCrossSmall), {
35
- UNSAFE_className: (0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs)))['spectrum-Icon']
36
- }), focusClassName: focusClassName, variant: variant, autoFocus: autoFocus, isDisabled: isDisabled, preventFocus: preventFocus, elementType: elementType = preventFocus ? 'div' : 'button', inset: inset = false, ...otherProps } = props;
37
- let domRef = (0, $d0kJV$useFocusableRef)(ref);
38
- let { buttonProps: buttonProps, isPressed: isPressed } = (0, $d0kJV$useButton)({
39
- ...props,
40
- elementType: elementType
41
- }, domRef);
42
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $d0kJV$useHover)({
43
- isDisabled: isDisabled
44
- });
45
- let { styleProps: styleProps } = (0, $d0kJV$useStyleProps)(otherProps);
46
- // For cases like the clear button in a search field, remove the tabIndex so
47
- // iOS 14 with VoiceOver doesn't focus the button and hide the keyboard when
48
- // moving the cursor over the clear button.
49
- if (preventFocus) delete buttonProps.tabIndex;
50
- let ElementType = elementType;
51
- return /*#__PURE__*/ (0, $d0kJV$react).createElement((0, $d0kJV$FocusRing), {
52
- focusRingClass: (0, $d0kJV$classNames)((0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs))), 'focus-ring', focusClassName),
53
- autoFocus: autoFocus
54
- }, /*#__PURE__*/ (0, $d0kJV$react).createElement(ElementType, {
55
- ...styleProps,
56
- ...(0, $d0kJV$mergeProps)(buttonProps, hoverProps),
57
- ref: domRef,
58
- className: (0, $d0kJV$classNames)((0, ($parcel$interopDefault($d0kJV$button_vars_cssmodulejs))), 'spectrum-ClearButton', {
59
- [`spectrum-ClearButton--${variant}`]: variant,
60
- 'is-disabled': isDisabled,
61
- 'is-active': isPressed,
62
- 'is-hovered': isHovered,
63
- 'spectrum-ClearButton--inset': inset
64
- }, styleProps.className)
65
- }, children));
66
- });
67
-
68
-
69
- export {$dd24e555a16de2ae$export$13ec83e50bf04290 as ClearButton};
70
- //# sourceMappingURL=ClearButton.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AAqBM,MAAM,0DAAc,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC,SAAS,YAAY,KAAuB,EAAE,GAAoC;IAC5H,IAAI,YACF,yBAAW,gCAAC,CAAA,GAAA,gCAAS;QAAE,kBAAkB,CAAA,GAAA,wDAAK,CAAC,CAAC,gBAAgB;wBAChE,cAAc,WACd,OAAO,aACP,SAAS,cACT,UAAU,gBACV,YAAY,eACZ,cAAc,eAAe,QAAQ,iBACrC,QAAQ,OACR,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,sBAAc,EAAE;IAC7B,IAAI,eAAC,WAAW,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,gBAAQ,EAAE;QAAC,GAAG,KAAK;qBAAE;IAAW,GAAG;IAClE,IAAI,cAAC,UAAU,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;oBAAC;IAAU;IAClD,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IAEjC,4EAA4E;IAC5E,4EAA4E;IAC5E,2CAA2C;IAC3C,IAAI,cACF,OAAO,YAAY,QAAQ;IAG7B,IAAI,cAAc;IAClB,qBACE,gCAAC,CAAA,GAAA,gBAAQ;QAAE,gBAAgB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,wDAAK,GAAG,cAAc;QAAiB,WAAW;qBACtF,gCAAC;QACE,GAAG,UAAU;QACb,GAAG,CAAA,GAAA,iBAAS,EAAE,aAAa,WAAW;QACvC,KAAK;QACL,WACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,wDAAK,GACL,wBACA;YACE,CAAC,CAAC,sBAAsB,EAAE,SAAS,CAAC,EAAE;YACtC,eAAe;YACf,aAAa;YACb,cAAc;YACd,+BAA+B;QACjC,GACA,WAAW,SAAS;OAGvB;AAIT","sources":["packages/@react-spectrum/button/src/ClearButton.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {AriaButtonElementTypeProps, ButtonProps} from '@react-types/button';\nimport {classNames, useFocusableRef, useStyleProps} from '@react-spectrum/utils';\nimport CrossSmall from '@spectrum-icons/ui/CrossSmall';\nimport {DOMProps, FocusableRef, StyleProps} from '@react-types/shared';\nimport {FocusRing} from '@react-aria/focus';\nimport {mergeProps} from '@react-aria/utils';\nimport React, {ElementType} from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/button/vars.css';\nimport {useButton} from '@react-aria/button';\nimport {useHover} from '@react-aria/interactions';\n\ninterface ClearButtonProps<T extends ElementType = 'button'> extends ButtonProps, AriaButtonElementTypeProps<T>, DOMProps, StyleProps {\n focusClassName?: string,\n variant?: 'overBackground',\n excludeFromTabOrder?: boolean,\n preventFocus?: boolean,\n inset?: boolean\n}\n\nexport const ClearButton = React.forwardRef(function ClearButton(props: ClearButtonProps, ref: FocusableRef<HTMLButtonElement>) {\n let {\n children = <CrossSmall UNSAFE_className={styles['spectrum-Icon']} />,\n focusClassName,\n variant,\n autoFocus,\n isDisabled,\n preventFocus,\n elementType = preventFocus ? 'div' : 'button' as ElementType,\n inset = false,\n ...otherProps\n } = props;\n let domRef = useFocusableRef(ref);\n let {buttonProps, isPressed} = useButton({...props, elementType}, domRef);\n let {hoverProps, isHovered} = useHover({isDisabled});\n let {styleProps} = useStyleProps(otherProps);\n\n // For cases like the clear button in a search field, remove the tabIndex so\n // iOS 14 with VoiceOver doesn't focus the button and hide the keyboard when\n // moving the cursor over the clear button.\n if (preventFocus) {\n delete buttonProps.tabIndex;\n }\n\n let ElementType = elementType;\n return (\n <FocusRing focusRingClass={classNames(styles, 'focus-ring', focusClassName)} autoFocus={autoFocus}>\n <ElementType\n {...styleProps}\n {...mergeProps(buttonProps, hoverProps)}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-ClearButton',\n {\n [`spectrum-ClearButton--${variant}`]: variant,\n 'is-disabled': isDisabled,\n 'is-active': isPressed,\n 'is-hovered': isHovered,\n 'spectrum-ClearButton--inset': inset\n },\n styleProps.className\n )\n }>\n {children}\n </ElementType>\n </FocusRing>\n );\n});\n"],"names":[],"version":3,"file":"ClearButton.module.js.map"}
@@ -1,70 +0,0 @@
1
- require("./button.c18453ac.css");
2
- var $afc5a4514aca2340$exports = require("./button_vars_css.main.js");
3
- var $7mUYa$reactspectrumutils = require("@react-spectrum/utils");
4
- var $7mUYa$reactariafocus = require("@react-aria/focus");
5
- var $7mUYa$reactariautils = require("@react-aria/utils");
6
- var $7mUYa$react = require("react");
7
- var $7mUYa$reactariabutton = require("@react-aria/button");
8
- var $7mUYa$reactariainteractions = require("@react-aria/interactions");
9
-
10
-
11
- function $parcel$interopDefault(a) {
12
- return a && a.__esModule ? a.default : a;
13
- }
14
-
15
- function $parcel$export(e, n, v, s) {
16
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
17
- }
18
-
19
- $parcel$export(module.exports, "FieldButton", () => $5931ec1ea1ec1b0d$export$47dc48f595b075da);
20
- /*
21
- * Copyright 2020 Adobe. All rights reserved.
22
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
23
- * you may not use this file except in compliance with the License. You may obtain a copy
24
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
25
- *
26
- * Unless required by applicable law or agreed to in writing, software distributed under
27
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
28
- * OF ANY KIND, either express or implied. See the License for the specific language
29
- * governing permissions and limitations under the License.
30
- */
31
-
32
-
33
-
34
-
35
-
36
-
37
- const $5931ec1ea1ec1b0d$export$47dc48f595b075da = /*#__PURE__*/ (0, ($parcel$interopDefault($7mUYa$react))).forwardRef(function FieldButton(props, ref) {
38
- props = (0, $7mUYa$reactspectrumutils.useSlotProps)(props, 'button');
39
- let { isQuiet: isQuiet, isDisabled: isDisabled, validationState: validationState, isInvalid: isInvalid, children: children, autoFocus: autoFocus, isActive: isActive, focusRingClass: focusRingClass, ...otherProps } = props;
40
- let domRef = (0, $7mUYa$reactspectrumutils.useFocusableRef)(ref);
41
- let { buttonProps: buttonProps, isPressed: isPressed } = (0, $7mUYa$reactariabutton.useButton)(props, domRef);
42
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $7mUYa$reactariainteractions.useHover)({
43
- isDisabled: isDisabled
44
- });
45
- let { styleProps: styleProps } = (0, $7mUYa$reactspectrumutils.useStyleProps)(otherProps);
46
- return /*#__PURE__*/ (0, ($parcel$interopDefault($7mUYa$react))).createElement((0, $7mUYa$reactariafocus.FocusRing), {
47
- focusRingClass: (0, $7mUYa$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'focus-ring', focusRingClass),
48
- autoFocus: autoFocus
49
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($7mUYa$react))).createElement("button", {
50
- ...(0, $7mUYa$reactariautils.mergeProps)(buttonProps, hoverProps),
51
- ref: domRef,
52
- className: (0, $7mUYa$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'spectrum-FieldButton', {
53
- 'spectrum-FieldButton--quiet': isQuiet,
54
- 'is-active': isActive || isPressed,
55
- 'is-disabled': isDisabled,
56
- 'spectrum-FieldButton--invalid': isInvalid || validationState === 'invalid',
57
- 'is-hovered': isHovered
58
- }, styleProps.className)
59
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($7mUYa$react))).createElement((0, $7mUYa$reactspectrumutils.SlotProvider), {
60
- slots: {
61
- icon: {
62
- size: 'S',
63
- UNSAFE_className: (0, $7mUYa$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'spectrum-Icon')
64
- }
65
- }
66
- }, children)));
67
- });
68
-
69
-
70
- //# sourceMappingURL=FieldButton.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAqBM,MAAM,0DAAc,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC,SAAS,YAAY,KAAuB,EAAE,GAAiB;IACzG,QAAQ,CAAA,GAAA,sCAAW,EAAE,OAAO;IAC5B,IAAI,WACF,OAAO,cACP,UAAU,mBACV,eAAe,aACf,SAAS,YACT,QAAQ,aACR,SAAS,YACT,QAAQ,kBACR,cAAc,EACd,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,yCAAc,EAAE;IAC7B,IAAI,eAAC,WAAW,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,gCAAQ,EAAE,OAAO;IAChD,IAAI,cAAC,UAAU,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,qCAAO,EAAE;oBAAC;IAAU;IAClD,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IAEjC,qBACE,0DAAC,CAAA,GAAA,+BAAQ;QAAE,gBAAgB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG,cAAc;QAAiB,WAAW;qBACtF,0DAAC;QACE,GAAG,CAAA,GAAA,gCAAS,EAAE,aAAa,WAAW;QACvC,KAAK;QACL,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,wBACA;YACE,+BAA+B;YAC/B,aAAa,YAAY;YACzB,eAAe;YACf,iCAAiC,aAAa,oBAAoB;YAClE,cAAc;QAChB,GACA,WAAW,SAAS;qBAGxB,0DAAC,CAAA,GAAA,sCAAW;QACV,OAAO;YACL,MAAM;gBACJ,MAAM;gBACN,kBAAkB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;YACvC;QACF;OACC;AAKX","sources":["packages/@react-spectrum/button/src/FieldButton.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ButtonProps} from '@react-types/button';\nimport {classNames, SlotProvider, useFocusableRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, FocusableRef, RefObject, StyleProps} from '@react-types/shared';\nimport {FocusRing} from '@react-aria/focus';\nimport {mergeProps} from '@react-aria/utils';\nimport React from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/button/vars.css';\nimport {useButton} from '@react-aria/button';\nimport {useHover} from '@react-aria/interactions';\n\ninterface FieldButtonProps extends ButtonProps, DOMProps, StyleProps {\n isQuiet?: boolean,\n isActive?: boolean,\n validationState?: 'valid' | 'invalid',\n isInvalid?: boolean,\n focusRingClass?: string\n}\n\n// @private\nexport const FieldButton = React.forwardRef(function FieldButton(props: FieldButtonProps, ref: FocusableRef) {\n props = useSlotProps(props, 'button');\n let {\n isQuiet,\n isDisabled,\n validationState,\n isInvalid,\n children,\n autoFocus,\n isActive,\n focusRingClass,\n ...otherProps\n } = props;\n let domRef = useFocusableRef(ref) as RefObject<HTMLButtonElement | null>;\n let {buttonProps, isPressed} = useButton(props, domRef);\n let {hoverProps, isHovered} = useHover({isDisabled});\n let {styleProps} = useStyleProps(otherProps);\n\n return (\n <FocusRing focusRingClass={classNames(styles, 'focus-ring', focusRingClass)} autoFocus={autoFocus}>\n <button\n {...mergeProps(buttonProps, hoverProps)}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-FieldButton',\n {\n 'spectrum-FieldButton--quiet': isQuiet,\n 'is-active': isActive || isPressed,\n 'is-disabled': isDisabled,\n 'spectrum-FieldButton--invalid': isInvalid || validationState === 'invalid',\n 'is-hovered': isHovered\n },\n styleProps.className\n )\n }>\n <SlotProvider\n slots={{\n icon: {\n size: 'S',\n UNSAFE_className: classNames(styles, 'spectrum-Icon')\n }\n }}>\n {children}\n </SlotProvider>\n </button>\n </FocusRing>\n );\n});\n"],"names":[],"version":3,"file":"FieldButton.main.js.map"}
@@ -1,65 +0,0 @@
1
- import "./button.c18453ac.css";
2
- import $b8ZoF$button_vars_cssmodulejs from "./button_vars_css.mjs";
3
- import {useSlotProps as $b8ZoF$useSlotProps, useFocusableRef as $b8ZoF$useFocusableRef, useStyleProps as $b8ZoF$useStyleProps, classNames as $b8ZoF$classNames, SlotProvider as $b8ZoF$SlotProvider} from "@react-spectrum/utils";
4
- import {FocusRing as $b8ZoF$FocusRing} from "@react-aria/focus";
5
- import {mergeProps as $b8ZoF$mergeProps} from "@react-aria/utils";
6
- import $b8ZoF$react from "react";
7
- import {useButton as $b8ZoF$useButton} from "@react-aria/button";
8
- import {useHover as $b8ZoF$useHover} from "@react-aria/interactions";
9
-
10
-
11
- function $parcel$interopDefault(a) {
12
- return a && a.__esModule ? a.default : a;
13
- }
14
- /*
15
- * Copyright 2020 Adobe. All rights reserved.
16
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
17
- * you may not use this file except in compliance with the License. You may obtain a copy
18
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
19
- *
20
- * Unless required by applicable law or agreed to in writing, software distributed under
21
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
22
- * OF ANY KIND, either express or implied. See the License for the specific language
23
- * governing permissions and limitations under the License.
24
- */
25
-
26
-
27
-
28
-
29
-
30
-
31
- const $b43bd559b476d0c4$export$47dc48f595b075da = /*#__PURE__*/ (0, $b8ZoF$react).forwardRef(function FieldButton(props, ref) {
32
- props = (0, $b8ZoF$useSlotProps)(props, 'button');
33
- let { isQuiet: isQuiet, isDisabled: isDisabled, validationState: validationState, isInvalid: isInvalid, children: children, autoFocus: autoFocus, isActive: isActive, focusRingClass: focusRingClass, ...otherProps } = props;
34
- let domRef = (0, $b8ZoF$useFocusableRef)(ref);
35
- let { buttonProps: buttonProps, isPressed: isPressed } = (0, $b8ZoF$useButton)(props, domRef);
36
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $b8ZoF$useHover)({
37
- isDisabled: isDisabled
38
- });
39
- let { styleProps: styleProps } = (0, $b8ZoF$useStyleProps)(otherProps);
40
- return /*#__PURE__*/ (0, $b8ZoF$react).createElement((0, $b8ZoF$FocusRing), {
41
- focusRingClass: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))), 'focus-ring', focusRingClass),
42
- autoFocus: autoFocus
43
- }, /*#__PURE__*/ (0, $b8ZoF$react).createElement("button", {
44
- ...(0, $b8ZoF$mergeProps)(buttonProps, hoverProps),
45
- ref: domRef,
46
- className: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))), 'spectrum-FieldButton', {
47
- 'spectrum-FieldButton--quiet': isQuiet,
48
- 'is-active': isActive || isPressed,
49
- 'is-disabled': isDisabled,
50
- 'spectrum-FieldButton--invalid': isInvalid || validationState === 'invalid',
51
- 'is-hovered': isHovered
52
- }, styleProps.className)
53
- }, /*#__PURE__*/ (0, $b8ZoF$react).createElement((0, $b8ZoF$SlotProvider), {
54
- slots: {
55
- icon: {
56
- size: 'S',
57
- UNSAFE_className: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))), 'spectrum-Icon')
58
- }
59
- }
60
- }, children)));
61
- });
62
-
63
-
64
- export {$b43bd559b476d0c4$export$47dc48f595b075da as FieldButton};
65
- //# sourceMappingURL=FieldButton.module.js.map
@@ -1,65 +0,0 @@
1
- import "./button.c18453ac.css";
2
- import $b8ZoF$button_vars_cssmodulejs from "./button_vars_css.module.js";
3
- import {useSlotProps as $b8ZoF$useSlotProps, useFocusableRef as $b8ZoF$useFocusableRef, useStyleProps as $b8ZoF$useStyleProps, classNames as $b8ZoF$classNames, SlotProvider as $b8ZoF$SlotProvider} from "@react-spectrum/utils";
4
- import {FocusRing as $b8ZoF$FocusRing} from "@react-aria/focus";
5
- import {mergeProps as $b8ZoF$mergeProps} from "@react-aria/utils";
6
- import $b8ZoF$react from "react";
7
- import {useButton as $b8ZoF$useButton} from "@react-aria/button";
8
- import {useHover as $b8ZoF$useHover} from "@react-aria/interactions";
9
-
10
-
11
- function $parcel$interopDefault(a) {
12
- return a && a.__esModule ? a.default : a;
13
- }
14
- /*
15
- * Copyright 2020 Adobe. All rights reserved.
16
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
17
- * you may not use this file except in compliance with the License. You may obtain a copy
18
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
19
- *
20
- * Unless required by applicable law or agreed to in writing, software distributed under
21
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
22
- * OF ANY KIND, either express or implied. See the License for the specific language
23
- * governing permissions and limitations under the License.
24
- */
25
-
26
-
27
-
28
-
29
-
30
-
31
- const $b43bd559b476d0c4$export$47dc48f595b075da = /*#__PURE__*/ (0, $b8ZoF$react).forwardRef(function FieldButton(props, ref) {
32
- props = (0, $b8ZoF$useSlotProps)(props, 'button');
33
- let { isQuiet: isQuiet, isDisabled: isDisabled, validationState: validationState, isInvalid: isInvalid, children: children, autoFocus: autoFocus, isActive: isActive, focusRingClass: focusRingClass, ...otherProps } = props;
34
- let domRef = (0, $b8ZoF$useFocusableRef)(ref);
35
- let { buttonProps: buttonProps, isPressed: isPressed } = (0, $b8ZoF$useButton)(props, domRef);
36
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $b8ZoF$useHover)({
37
- isDisabled: isDisabled
38
- });
39
- let { styleProps: styleProps } = (0, $b8ZoF$useStyleProps)(otherProps);
40
- return /*#__PURE__*/ (0, $b8ZoF$react).createElement((0, $b8ZoF$FocusRing), {
41
- focusRingClass: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))), 'focus-ring', focusRingClass),
42
- autoFocus: autoFocus
43
- }, /*#__PURE__*/ (0, $b8ZoF$react).createElement("button", {
44
- ...(0, $b8ZoF$mergeProps)(buttonProps, hoverProps),
45
- ref: domRef,
46
- className: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))), 'spectrum-FieldButton', {
47
- 'spectrum-FieldButton--quiet': isQuiet,
48
- 'is-active': isActive || isPressed,
49
- 'is-disabled': isDisabled,
50
- 'spectrum-FieldButton--invalid': isInvalid || validationState === 'invalid',
51
- 'is-hovered': isHovered
52
- }, styleProps.className)
53
- }, /*#__PURE__*/ (0, $b8ZoF$react).createElement((0, $b8ZoF$SlotProvider), {
54
- slots: {
55
- icon: {
56
- size: 'S',
57
- UNSAFE_className: (0, $b8ZoF$classNames)((0, ($parcel$interopDefault($b8ZoF$button_vars_cssmodulejs))), 'spectrum-Icon')
58
- }
59
- }
60
- }, children)));
61
- });
62
-
63
-
64
- export {$b43bd559b476d0c4$export$47dc48f595b075da as FieldButton};
65
- //# sourceMappingURL=FieldButton.module.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;AAqBM,MAAM,0DAAc,CAAA,GAAA,YAAI,EAAE,UAAU,CAAC,SAAS,YAAY,KAAuB,EAAE,GAAiB;IACzG,QAAQ,CAAA,GAAA,mBAAW,EAAE,OAAO;IAC5B,IAAI,WACF,OAAO,cACP,UAAU,mBACV,eAAe,aACf,SAAS,YACT,QAAQ,aACR,SAAS,YACT,QAAQ,kBACR,cAAc,EACd,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,sBAAc,EAAE;IAC7B,IAAI,eAAC,WAAW,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,gBAAQ,EAAE,OAAO;IAChD,IAAI,cAAC,UAAU,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,eAAO,EAAE;oBAAC;IAAU;IAClD,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,oBAAY,EAAE;IAEjC,qBACE,gCAAC,CAAA,GAAA,gBAAQ;QAAE,gBAAgB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,wDAAK,GAAG,cAAc;QAAiB,WAAW;qBACtF,gCAAC;QACE,GAAG,CAAA,GAAA,iBAAS,EAAE,aAAa,WAAW;QACvC,KAAK;QACL,WACE,CAAA,GAAA,iBAAS,EACP,CAAA,GAAA,wDAAK,GACL,wBACA;YACE,+BAA+B;YAC/B,aAAa,YAAY;YACzB,eAAe;YACf,iCAAiC,aAAa,oBAAoB;YAClE,cAAc;QAChB,GACA,WAAW,SAAS;qBAGxB,gCAAC,CAAA,GAAA,mBAAW;QACV,OAAO;YACL,MAAM;gBACJ,MAAM;gBACN,kBAAkB,CAAA,GAAA,iBAAS,EAAE,CAAA,GAAA,wDAAK,GAAG;YACvC;QACF;OACC;AAKX","sources":["packages/@react-spectrum/button/src/FieldButton.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {ButtonProps} from '@react-types/button';\nimport {classNames, SlotProvider, useFocusableRef, useSlotProps, useStyleProps} from '@react-spectrum/utils';\nimport {DOMProps, FocusableRef, RefObject, StyleProps} from '@react-types/shared';\nimport {FocusRing} from '@react-aria/focus';\nimport {mergeProps} from '@react-aria/utils';\nimport React from 'react';\nimport styles from '@adobe/spectrum-css-temp/components/button/vars.css';\nimport {useButton} from '@react-aria/button';\nimport {useHover} from '@react-aria/interactions';\n\ninterface FieldButtonProps extends ButtonProps, DOMProps, StyleProps {\n isQuiet?: boolean,\n isActive?: boolean,\n validationState?: 'valid' | 'invalid',\n isInvalid?: boolean,\n focusRingClass?: string\n}\n\n// @private\nexport const FieldButton = React.forwardRef(function FieldButton(props: FieldButtonProps, ref: FocusableRef) {\n props = useSlotProps(props, 'button');\n let {\n isQuiet,\n isDisabled,\n validationState,\n isInvalid,\n children,\n autoFocus,\n isActive,\n focusRingClass,\n ...otherProps\n } = props;\n let domRef = useFocusableRef(ref) as RefObject<HTMLButtonElement | null>;\n let {buttonProps, isPressed} = useButton(props, domRef);\n let {hoverProps, isHovered} = useHover({isDisabled});\n let {styleProps} = useStyleProps(otherProps);\n\n return (\n <FocusRing focusRingClass={classNames(styles, 'focus-ring', focusRingClass)} autoFocus={autoFocus}>\n <button\n {...mergeProps(buttonProps, hoverProps)}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-FieldButton',\n {\n 'spectrum-FieldButton--quiet': isQuiet,\n 'is-active': isActive || isPressed,\n 'is-disabled': isDisabled,\n 'spectrum-FieldButton--invalid': isInvalid || validationState === 'invalid',\n 'is-hovered': isHovered\n },\n styleProps.className\n )\n }>\n <SlotProvider\n slots={{\n icon: {\n size: 'S',\n UNSAFE_className: classNames(styles, 'spectrum-Icon')\n }\n }}>\n {children}\n </SlotProvider>\n </button>\n </FocusRing>\n );\n});\n"],"names":[],"version":3,"file":"FieldButton.module.js.map"}
@@ -1,67 +0,0 @@
1
- require("./button.c18453ac.css");
2
- var $afc5a4514aca2340$exports = require("./button_vars_css.main.js");
3
- var $adWKT$reactspectrumutils = require("@react-spectrum/utils");
4
- var $adWKT$reactariafocus = require("@react-aria/focus");
5
- var $adWKT$reactariautils = require("@react-aria/utils");
6
- var $adWKT$react = require("react");
7
- var $adWKT$reactariabutton = require("@react-aria/button");
8
- var $adWKT$reactariainteractions = require("@react-aria/interactions");
9
- var $adWKT$reactspectrumprovider = require("@react-spectrum/provider");
10
-
11
-
12
- function $parcel$interopDefault(a) {
13
- return a && a.__esModule ? a.default : a;
14
- }
15
-
16
- function $parcel$export(e, n, v, s) {
17
- Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
18
- }
19
-
20
- $parcel$export(module.exports, "LogicButton", () => $3bd294eda342b0c4$export$9b0b80fed00ba8b1);
21
- /*
22
- * Copyright 2020 Adobe. All rights reserved.
23
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
24
- * you may not use this file except in compliance with the License. You may obtain a copy
25
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
26
- *
27
- * Unless required by applicable law or agreed to in writing, software distributed under
28
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
29
- * OF ANY KIND, either express or implied. See the License for the specific language
30
- * governing permissions and limitations under the License.
31
- */
32
-
33
-
34
-
35
-
36
-
37
-
38
-
39
- const $3bd294eda342b0c4$export$9b0b80fed00ba8b1 = /*#__PURE__*/ (0, ($parcel$interopDefault($adWKT$react))).forwardRef(function LogicButton(props, ref) {
40
- props = (0, $adWKT$reactspectrumprovider.useProviderProps)(props);
41
- let { variant: variant, children: children, isDisabled: isDisabled, autoFocus: autoFocus, ...otherProps } = props;
42
- let domRef = (0, $adWKT$reactspectrumutils.useFocusableRef)(ref);
43
- let { buttonProps: buttonProps, isPressed: isPressed } = (0, $adWKT$reactariabutton.useButton)(props, domRef);
44
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $adWKT$reactariainteractions.useHover)({
45
- isDisabled: isDisabled
46
- });
47
- let { styleProps: styleProps } = (0, $adWKT$reactspectrumutils.useStyleProps)(otherProps);
48
- return /*#__PURE__*/ (0, ($parcel$interopDefault($adWKT$react))).createElement((0, $adWKT$reactariafocus.FocusRing), {
49
- focusRingClass: (0, $adWKT$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'focus-ring'),
50
- autoFocus: autoFocus
51
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($adWKT$react))).createElement("button", {
52
- ...styleProps,
53
- ...(0, $adWKT$reactariautils.mergeProps)(buttonProps, hoverProps),
54
- ref: domRef,
55
- className: (0, $adWKT$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'spectrum-LogicButton', {
56
- [`spectrum-LogicButton--${variant}`]: variant,
57
- 'is-disabled': isDisabled,
58
- 'is-active': isPressed,
59
- 'is-hovered': isHovered
60
- }, styleProps.className)
61
- }, /*#__PURE__*/ (0, ($parcel$interopDefault($adWKT$react))).createElement("span", {
62
- className: (0, $adWKT$reactspectrumutils.classNames)((0, ($parcel$interopDefault($afc5a4514aca2340$exports))), 'spectrum-Button-label')
63
- }, children)));
64
- });
65
-
66
-
67
- //# sourceMappingURL=LogicButton.main.js.map
@@ -1 +0,0 @@
1
- {"mappings":";;;;;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;CAUC;;;;;;;;AAgBM,MAAM,0DAAc,CAAA,GAAA,sCAAI,EAAE,UAAU,CAAC,SAAS,YAAY,KAA+B,EAAE,GAAoC;IACpI,QAAQ,CAAA,GAAA,6CAAe,EAAE;IACzB,IAAI,WACF,OAAO,YACP,QAAQ,cACR,UAAU,aACV,SAAS,EACT,GAAG,YACJ,GAAG;IACJ,IAAI,SAAS,CAAA,GAAA,yCAAc,EAAE;IAC7B,IAAI,eAAC,WAAW,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,gCAAQ,EAAE,OAAO;IAChD,IAAI,cAAC,UAAU,aAAE,SAAS,EAAC,GAAG,CAAA,GAAA,qCAAO,EAAE;oBAAC;IAAU;IAClD,IAAI,cAAC,UAAU,EAAC,GAAG,CAAA,GAAA,uCAAY,EAAE;IAEjC,qBACE,0DAAC,CAAA,GAAA,+BAAQ;QAAE,gBAAgB,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;QAAe,WAAW;qBACtE,0DAAC;QACE,GAAG,UAAU;QACb,GAAG,CAAA,GAAA,gCAAS,EAAE,aAAa,WAAW;QACvC,KAAK;QACL,WACE,CAAA,GAAA,oCAAS,EACP,CAAA,GAAA,mDAAK,GACL,wBACA;YACE,CAAC,CAAC,sBAAsB,EAAE,SAAS,CAAC,EAAE;YACtC,eAAe;YACf,aAAa;YACb,cAAc;QAChB,GACA,WAAW,SAAS;qBAGxB,0DAAC;QAAK,WAAW,CAAA,GAAA,oCAAS,EAAE,CAAA,GAAA,mDAAK,GAAG;OAA2B;AAIvE","sources":["packages/@react-spectrum/button/src/LogicButton.tsx"],"sourcesContent":["/*\n * Copyright 2020 Adobe. All rights reserved.\n * This file is licensed to you under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License. You may obtain a copy\n * of the License at http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software distributed under\n * the License is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS\n * OF ANY KIND, either express or implied. See the License for the specific language\n * governing permissions and limitations under the License.\n */\n\nimport {classNames, useFocusableRef, useStyleProps} from '@react-spectrum/utils';\nimport {FocusableRef} from '@react-types/shared';\nimport {FocusRing} from '@react-aria/focus';\nimport {mergeProps} from '@react-aria/utils';\nimport React from 'react';\nimport {SpectrumLogicButtonProps} from '@react-types/button';\nimport styles from '@adobe/spectrum-css-temp/components/button/vars.css';\nimport {useButton} from '@react-aria/button';\nimport {useHover} from '@react-aria/interactions';\nimport {useProviderProps} from '@react-spectrum/provider';\n\n/**\n * A LogicButton displays an operator within a boolean logic sequence.\n */\nexport const LogicButton = React.forwardRef(function LogicButton(props: SpectrumLogicButtonProps, ref: FocusableRef<HTMLButtonElement>) {\n props = useProviderProps(props);\n let {\n variant,\n children,\n isDisabled,\n autoFocus,\n ...otherProps\n } = props;\n let domRef = useFocusableRef(ref);\n let {buttonProps, isPressed} = useButton(props, domRef);\n let {hoverProps, isHovered} = useHover({isDisabled});\n let {styleProps} = useStyleProps(otherProps);\n\n return (\n <FocusRing focusRingClass={classNames(styles, 'focus-ring')} autoFocus={autoFocus}>\n <button\n {...styleProps}\n {...mergeProps(buttonProps, hoverProps)}\n ref={domRef}\n className={\n classNames(\n styles,\n 'spectrum-LogicButton',\n {\n [`spectrum-LogicButton--${variant}`]: variant,\n 'is-disabled': isDisabled,\n 'is-active': isPressed,\n 'is-hovered': isHovered\n },\n styleProps.className\n )\n }>\n <span className={classNames(styles, 'spectrum-Button-label')}>{children}</span>\n </button>\n </FocusRing>\n );\n});\n"],"names":[],"version":3,"file":"LogicButton.main.js.map"}
@@ -1,62 +0,0 @@
1
- import "./button.c18453ac.css";
2
- import $g8O0d$button_vars_cssmodulejs from "./button_vars_css.mjs";
3
- import {useFocusableRef as $g8O0d$useFocusableRef, useStyleProps as $g8O0d$useStyleProps, classNames as $g8O0d$classNames} from "@react-spectrum/utils";
4
- import {FocusRing as $g8O0d$FocusRing} from "@react-aria/focus";
5
- import {mergeProps as $g8O0d$mergeProps} from "@react-aria/utils";
6
- import $g8O0d$react from "react";
7
- import {useButton as $g8O0d$useButton} from "@react-aria/button";
8
- import {useHover as $g8O0d$useHover} from "@react-aria/interactions";
9
- import {useProviderProps as $g8O0d$useProviderProps} from "@react-spectrum/provider";
10
-
11
-
12
- function $parcel$interopDefault(a) {
13
- return a && a.__esModule ? a.default : a;
14
- }
15
- /*
16
- * Copyright 2020 Adobe. All rights reserved.
17
- * This file is licensed to you under the Apache License, Version 2.0 (the "License");
18
- * you may not use this file except in compliance with the License. You may obtain a copy
19
- * of the License at http://www.apache.org/licenses/LICENSE-2.0
20
- *
21
- * Unless required by applicable law or agreed to in writing, software distributed under
22
- * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
23
- * OF ANY KIND, either express or implied. See the License for the specific language
24
- * governing permissions and limitations under the License.
25
- */
26
-
27
-
28
-
29
-
30
-
31
-
32
-
33
- const $45108e3c482ee88b$export$9b0b80fed00ba8b1 = /*#__PURE__*/ (0, $g8O0d$react).forwardRef(function LogicButton(props, ref) {
34
- props = (0, $g8O0d$useProviderProps)(props);
35
- let { variant: variant, children: children, isDisabled: isDisabled, autoFocus: autoFocus, ...otherProps } = props;
36
- let domRef = (0, $g8O0d$useFocusableRef)(ref);
37
- let { buttonProps: buttonProps, isPressed: isPressed } = (0, $g8O0d$useButton)(props, domRef);
38
- let { hoverProps: hoverProps, isHovered: isHovered } = (0, $g8O0d$useHover)({
39
- isDisabled: isDisabled
40
- });
41
- let { styleProps: styleProps } = (0, $g8O0d$useStyleProps)(otherProps);
42
- return /*#__PURE__*/ (0, $g8O0d$react).createElement((0, $g8O0d$FocusRing), {
43
- focusRingClass: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))), 'focus-ring'),
44
- autoFocus: autoFocus
45
- }, /*#__PURE__*/ (0, $g8O0d$react).createElement("button", {
46
- ...styleProps,
47
- ...(0, $g8O0d$mergeProps)(buttonProps, hoverProps),
48
- ref: domRef,
49
- className: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))), 'spectrum-LogicButton', {
50
- [`spectrum-LogicButton--${variant}`]: variant,
51
- 'is-disabled': isDisabled,
52
- 'is-active': isPressed,
53
- 'is-hovered': isHovered
54
- }, styleProps.className)
55
- }, /*#__PURE__*/ (0, $g8O0d$react).createElement("span", {
56
- className: (0, $g8O0d$classNames)((0, ($parcel$interopDefault($g8O0d$button_vars_cssmodulejs))), 'spectrum-Button-label')
57
- }, children)));
58
- });
59
-
60
-
61
- export {$45108e3c482ee88b$export$9b0b80fed00ba8b1 as LogicButton};
62
- //# sourceMappingURL=LogicButton.module.js.map