@pingux/astro 2.130.2 → 2.130.3-alpha.1

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 (53) hide show
  1. package/lib/cjs/components/Input/Input.styles.js +1 -1
  2. package/lib/cjs/components/RockerButton/RockerButton.d.ts +4 -0
  3. package/lib/cjs/components/RockerButton/RockerButton.js +31 -67
  4. package/lib/cjs/components/RockerButton/RockerButton.styles.d.ts +59 -0
  5. package/lib/cjs/components/RockerButton/RockerButton.styles.js +4 -0
  6. package/lib/cjs/components/RockerButton/index.d.ts +1 -0
  7. package/lib/cjs/components/RockerButton/index.js +2 -21
  8. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.js +43 -22
  9. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.stories.js +9 -4
  10. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.test.js +62 -17
  11. package/lib/cjs/context/RockerButtonGroupContext/index.d.ts +7 -1
  12. package/lib/cjs/hooks/index.d.ts +0 -1
  13. package/lib/cjs/hooks/index.js +0 -7
  14. package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +1 -0
  15. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +1 -0
  16. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +16 -0
  17. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +19 -3
  18. package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +1 -0
  19. package/lib/cjs/styles/themes/astro/customProperties/index.js +2 -1
  20. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +1 -1
  21. package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +1 -0
  22. package/lib/cjs/styles/themes/next-gen/customProperties/index.js +2 -1
  23. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +2 -0
  24. package/lib/cjs/styles/themes/next-gen/variants/input.js +8 -2
  25. package/lib/cjs/styles/themes/next-gen/variants/label.js +2 -1
  26. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +2 -0
  27. package/lib/cjs/styles/themes/next-gen/variants/variants.js +3 -1
  28. package/lib/cjs/types/rockerButton.d.ts +13 -0
  29. package/lib/cjs/types/rockerButton.js +6 -0
  30. package/lib/cjs/types/rockerButtonGroup.d.ts +7 -3
  31. package/lib/components/Input/Input.styles.js +1 -1
  32. package/lib/components/RockerButton/RockerButton.js +32 -68
  33. package/lib/components/RockerButton/RockerButton.styles.js +4 -0
  34. package/lib/components/RockerButton/index.js +1 -2
  35. package/lib/components/RockerButtonGroup/RockerButtonGroup.js +45 -22
  36. package/lib/components/RockerButtonGroup/RockerButtonGroup.stories.js +9 -4
  37. package/lib/components/RockerButtonGroup/RockerButtonGroup.test.js +61 -17
  38. package/lib/hooks/index.js +0 -1
  39. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +19 -3
  40. package/lib/styles/themes/astro/customProperties/index.js +2 -1
  41. package/lib/styles/themes/next-gen/convertedComponentList.js +1 -1
  42. package/lib/styles/themes/next-gen/customProperties/index.js +2 -1
  43. package/lib/styles/themes/next-gen/variants/input.js +8 -2
  44. package/lib/styles/themes/next-gen/variants/label.js +2 -1
  45. package/lib/styles/themes/next-gen/variants/variants.js +3 -1
  46. package/lib/types/rockerButton.js +1 -0
  47. package/package.json +4 -3
  48. package/lib/cjs/hooks/useRockerButton/index.d.ts +0 -1
  49. package/lib/cjs/hooks/useRockerButton/index.js +0 -14
  50. package/lib/cjs/hooks/useRockerButton/useRockerButton.d.ts +0 -241
  51. package/lib/cjs/hooks/useRockerButton/useRockerButton.js +0 -44
  52. package/lib/hooks/useRockerButton/index.js +0 -1
  53. package/lib/hooks/useRockerButton/useRockerButton.js +0 -36
@@ -1,6 +1,17 @@
1
+ import _typeof from "@babel/runtime-corejs3/helpers/esm/typeof";
2
+ import _asyncToGenerator from "@babel/runtime-corejs3/helpers/esm/asyncToGenerator";
1
3
  import _extends from "@babel/runtime-corejs3/helpers/esm/extends";
4
+ function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return exports; }; var exports = {}, Op = Object.prototype, hasOwn = Op.hasOwnProperty, defineProperty = _Object$defineProperty || function (obj, key, desc) { obj[key] = desc.value; }, $Symbol = "function" == typeof _Symbol ? _Symbol : {}, iteratorSymbol = $Symbol.iterator || "@@iterator", asyncIteratorSymbol = $Symbol.asyncIterator || "@@asyncIterator", toStringTagSymbol = $Symbol.toStringTag || "@@toStringTag"; function define(obj, key, value) { return _Object$defineProperty(obj, key, { value: value, enumerable: !0, configurable: !0, writable: !0 }), obj[key]; } try { define({}, ""); } catch (err) { define = function define(obj, key, value) { return obj[key] = value; }; } function wrap(innerFn, outerFn, self, tryLocsList) { var protoGenerator = outerFn && outerFn.prototype instanceof Generator ? outerFn : Generator, generator = _Object$create(protoGenerator.prototype), context = new Context(tryLocsList || []); return defineProperty(generator, "_invoke", { value: makeInvokeMethod(innerFn, self, context) }), generator; } function tryCatch(fn, obj, arg) { try { return { type: "normal", arg: fn.call(obj, arg) }; } catch (err) { return { type: "throw", arg: err }; } } exports.wrap = wrap; var ContinueSentinel = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var IteratorPrototype = {}; define(IteratorPrototype, iteratorSymbol, function () { return this; }); var getProto = _Object$getPrototypeOf, NativeIteratorPrototype = getProto && getProto(getProto(values([]))); NativeIteratorPrototype && NativeIteratorPrototype !== Op && hasOwn.call(NativeIteratorPrototype, iteratorSymbol) && (IteratorPrototype = NativeIteratorPrototype); var Gp = GeneratorFunctionPrototype.prototype = Generator.prototype = _Object$create(IteratorPrototype); function defineIteratorMethods(prototype) { var _context2; _forEachInstanceProperty(_context2 = ["next", "throw", "return"]).call(_context2, function (method) { define(prototype, method, function (arg) { return this._invoke(method, arg); }); }); } function AsyncIterator(generator, PromiseImpl) { function invoke(method, arg, resolve, reject) { var record = tryCatch(generator[method], generator, arg); if ("throw" !== record.type) { var result = record.arg, value = result.value; return value && "object" == _typeof(value) && hasOwn.call(value, "__await") ? PromiseImpl.resolve(value.__await).then(function (value) { invoke("next", value, resolve, reject); }, function (err) { invoke("throw", err, resolve, reject); }) : PromiseImpl.resolve(value).then(function (unwrapped) { result.value = unwrapped, resolve(result); }, function (error) { return invoke("throw", error, resolve, reject); }); } reject(record.arg); } var previousPromise; defineProperty(this, "_invoke", { value: function value(method, arg) { function callInvokeWithMethodAndArg() { return new PromiseImpl(function (resolve, reject) { invoke(method, arg, resolve, reject); }); } return previousPromise = previousPromise ? previousPromise.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(innerFn, self, context) { var state = "suspendedStart"; return function (method, arg) { if ("executing" === state) throw new Error("Generator is already running"); if ("completed" === state) { if ("throw" === method) throw arg; return doneResult(); } for (context.method = method, context.arg = arg;;) { var delegate = context.delegate; if (delegate) { var delegateResult = maybeInvokeDelegate(delegate, context); if (delegateResult) { if (delegateResult === ContinueSentinel) continue; return delegateResult; } } if ("next" === context.method) context.sent = context._sent = context.arg;else if ("throw" === context.method) { if ("suspendedStart" === state) throw state = "completed", context.arg; context.dispatchException(context.arg); } else "return" === context.method && context.abrupt("return", context.arg); state = "executing"; var record = tryCatch(innerFn, self, context); if ("normal" === record.type) { if (state = context.done ? "completed" : "suspendedYield", record.arg === ContinueSentinel) continue; return { value: record.arg, done: context.done }; } "throw" === record.type && (state = "completed", context.method = "throw", context.arg = record.arg); } }; } function maybeInvokeDelegate(delegate, context) { var methodName = context.method, method = delegate.iterator[methodName]; if (undefined === method) return context.delegate = null, "throw" === methodName && delegate.iterator["return"] && (context.method = "return", context.arg = undefined, maybeInvokeDelegate(delegate, context), "throw" === context.method) || "return" !== methodName && (context.method = "throw", context.arg = new TypeError("The iterator does not provide a '" + methodName + "' method")), ContinueSentinel; var record = tryCatch(method, delegate.iterator, context.arg); if ("throw" === record.type) return context.method = "throw", context.arg = record.arg, context.delegate = null, ContinueSentinel; var info = record.arg; return info ? info.done ? (context[delegate.resultName] = info.value, context.next = delegate.nextLoc, "return" !== context.method && (context.method = "next", context.arg = undefined), context.delegate = null, ContinueSentinel) : info : (context.method = "throw", context.arg = new TypeError("iterator result is not an object"), context.delegate = null, ContinueSentinel); } function pushTryEntry(locs) { var entry = { tryLoc: locs[0] }; 1 in locs && (entry.catchLoc = locs[1]), 2 in locs && (entry.finallyLoc = locs[2], entry.afterLoc = locs[3]), this.tryEntries.push(entry); } function resetTryEntry(entry) { var record = entry.completion || {}; record.type = "normal", delete record.arg, entry.completion = record; } function Context(tryLocsList) { this.tryEntries = [{ tryLoc: "root" }], _forEachInstanceProperty(tryLocsList).call(tryLocsList, pushTryEntry, this), this.reset(!0); } function values(iterable) { if (iterable) { var iteratorMethod = iterable[iteratorSymbol]; if (iteratorMethod) return iteratorMethod.call(iterable); if ("function" == typeof iterable.next) return iterable; if (!isNaN(iterable.length)) { var i = -1, next = function next() { for (; ++i < iterable.length;) if (hasOwn.call(iterable, i)) return next.value = iterable[i], next.done = !1, next; return next.value = undefined, next.done = !0, next; }; return next.next = next; } } return { next: doneResult }; } function doneResult() { return { value: undefined, done: !0 }; } return GeneratorFunction.prototype = GeneratorFunctionPrototype, defineProperty(Gp, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), defineProperty(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, toStringTagSymbol, "GeneratorFunction"), exports.isGeneratorFunction = function (genFun) { var ctor = "function" == typeof genFun && genFun.constructor; return !!ctor && (ctor === GeneratorFunction || "GeneratorFunction" === (ctor.displayName || ctor.name)); }, exports.mark = function (genFun) { return _Object$setPrototypeOf ? _Object$setPrototypeOf(genFun, GeneratorFunctionPrototype) : (genFun.__proto__ = GeneratorFunctionPrototype, define(genFun, toStringTagSymbol, "GeneratorFunction")), genFun.prototype = _Object$create(Gp), genFun; }, exports.awrap = function (arg) { return { __await: arg }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, asyncIteratorSymbol, function () { return this; }), exports.AsyncIterator = AsyncIterator, exports.async = function (innerFn, outerFn, self, tryLocsList, PromiseImpl) { void 0 === PromiseImpl && (PromiseImpl = _Promise); var iter = new AsyncIterator(wrap(innerFn, outerFn, self, tryLocsList), PromiseImpl); return exports.isGeneratorFunction(outerFn) ? iter : iter.next().then(function (result) { return result.done ? result.value : iter.next(); }); }, defineIteratorMethods(Gp), define(Gp, toStringTagSymbol, "Generator"), define(Gp, iteratorSymbol, function () { return this; }), define(Gp, "toString", function () { return "[object Generator]"; }), exports.keys = function (val) { var object = Object(val), keys = []; for (var key in object) keys.push(key); return _reverseInstanceProperty(keys).call(keys), function next() { for (; keys.length;) { var key = keys.pop(); if (key in object) return next.value = key, next.done = !1, next; } return next.done = !0, next; }; }, exports.values = values, Context.prototype = { constructor: Context, reset: function reset(skipTempReset) { var _context3; if (this.prev = 0, this.next = 0, this.sent = this._sent = undefined, this.done = !1, this.delegate = null, this.method = "next", this.arg = undefined, _forEachInstanceProperty(_context3 = this.tryEntries).call(_context3, resetTryEntry), !skipTempReset) for (var name in this) "t" === name.charAt(0) && hasOwn.call(this, name) && !isNaN(+_sliceInstanceProperty(name).call(name, 1)) && (this[name] = undefined); }, stop: function stop() { this.done = !0; var rootRecord = this.tryEntries[0].completion; if ("throw" === rootRecord.type) throw rootRecord.arg; return this.rval; }, dispatchException: function dispatchException(exception) { if (this.done) throw exception; var context = this; function handle(loc, caught) { return record.type = "throw", record.arg = exception, context.next = loc, caught && (context.method = "next", context.arg = undefined), !!caught; } for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i], record = entry.completion; if ("root" === entry.tryLoc) return handle("end"); if (entry.tryLoc <= this.prev) { var hasCatch = hasOwn.call(entry, "catchLoc"), hasFinally = hasOwn.call(entry, "finallyLoc"); if (hasCatch && hasFinally) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } else if (hasCatch) { if (this.prev < entry.catchLoc) return handle(entry.catchLoc, !0); } else { if (!hasFinally) throw new Error("try statement without catch or finally"); if (this.prev < entry.finallyLoc) return handle(entry.finallyLoc); } } } }, abrupt: function abrupt(type, arg) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc <= this.prev && hasOwn.call(entry, "finallyLoc") && this.prev < entry.finallyLoc) { var finallyEntry = entry; break; } } finallyEntry && ("break" === type || "continue" === type) && finallyEntry.tryLoc <= arg && arg <= finallyEntry.finallyLoc && (finallyEntry = null); var record = finallyEntry ? finallyEntry.completion : {}; return record.type = type, record.arg = arg, finallyEntry ? (this.method = "next", this.next = finallyEntry.finallyLoc, ContinueSentinel) : this.complete(record); }, complete: function complete(record, afterLoc) { if ("throw" === record.type) throw record.arg; return "break" === record.type || "continue" === record.type ? this.next = record.arg : "return" === record.type ? (this.rval = this.arg = record.arg, this.method = "return", this.next = "end") : "normal" === record.type && afterLoc && (this.next = afterLoc), ContinueSentinel; }, finish: function finish(finallyLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.finallyLoc === finallyLoc) return this.complete(entry.completion, entry.afterLoc), resetTryEntry(entry), ContinueSentinel; } }, "catch": function _catch(tryLoc) { for (var i = this.tryEntries.length - 1; i >= 0; --i) { var entry = this.tryEntries[i]; if (entry.tryLoc === tryLoc) { var record = entry.completion; if ("throw" === record.type) { var thrown = record.arg; resetTryEntry(entry); } return thrown; } } throw new Error("illegal catch attempt"); }, delegateYield: function delegateYield(iterable, resultName, nextLoc) { return this.delegate = { iterator: values(iterable), resultName: resultName, nextLoc: nextLoc }, "next" === this.method && (this.arg = undefined), ContinueSentinel; } }, exports; }
2
5
  import _mapInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/map";
3
6
  import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
7
+ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
8
+ import _Symbol from "@babel/runtime-corejs3/core-js-stable/symbol";
9
+ import _Object$create from "@babel/runtime-corejs3/core-js-stable/object/create";
10
+ import _Object$getPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/get-prototype-of";
11
+ import _Object$setPrototypeOf from "@babel/runtime-corejs3/core-js-stable/object/set-prototype-of";
12
+ import _Promise from "@babel/runtime-corejs3/core-js-stable/promise";
13
+ import _reverseInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/reverse";
14
+ import _sliceInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/slice";
4
15
  import React from 'react';
5
16
  import userEvent from '@testing-library/user-event';
6
17
  import { RockerButton, RockerButtonGroup } from '../../index';
@@ -39,7 +50,7 @@ var getComponent = function getComponent() {
39
50
  "data-id": "test-container"
40
51
  }), _mapInstanceProperty(buttons).call(buttons, function (button) {
41
52
  return ___EmotionJSX(RockerButton, {
42
- title: button.name,
53
+ name: button.name,
43
54
  key: button.key,
44
55
  selectedStyles: button.selectedStyles
45
56
  });
@@ -50,7 +61,7 @@ var getComponent = function getComponent() {
50
61
  universalComponentTests({
51
62
  renderComponent: function renderComponent(props) {
52
63
  return ___EmotionJSX(RockerButtonGroup, props, ___EmotionJSX(RockerButton, {
53
- title: testButtons[0].name,
64
+ name: testButtons[0].name,
54
65
  key: testButtons[0].key,
55
66
  selectedStyles: testButtons[0].selectedStyles
56
67
  }));
@@ -60,7 +71,7 @@ test('renders rocker container with buttons', function () {
60
71
  getComponent();
61
72
  var rockerContainer = screen.getByTestId(testId);
62
73
  expect(rockerContainer).toBeInTheDocument();
63
- var buttons = screen.getAllByRole('button');
74
+ var buttons = screen.getAllByRole('radio');
64
75
  expect(buttons).toHaveLength(3);
65
76
  });
66
77
  test('buttonGroup is not disabled by default', function () {
@@ -88,20 +99,45 @@ test('rockerButton renders selectedStyles prop when selected', function () {
88
99
  var buttonColorKey = screen.getByText(testButtons[0].key);
89
100
  expect(buttonColorKey).toHaveClass('is-selected');
90
101
  });
91
- test('selected button can be changed by keyboard interaction', function () {
92
- getComponent();
93
- userEvent.tab();
94
- var button0 = screen.getByText(testButtons[0].key);
95
- expect(button0).toHaveClass('is-selected');
96
- var button1 = screen.getByText(testButtons[1].key);
97
- expect(button1).not.toHaveClass('is-selected');
98
- fireEvent.keyDown(screen.getByText(testButtons[0].key), {
99
- key: 'ArrowRight',
100
- code: 'ArrowRight'
101
- });
102
- expect(screen.getByText(testButtons[1].key)).toHaveClass('is-selected');
103
- expect(screen.getByText(testButtons[0].key)).not.toHaveClass('is-selected');
104
- });
102
+ test('selected button can be changed by keyboard interaction', /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
103
+ var button0, button1, updatedButton0, updatedButton1;
104
+ return _regeneratorRuntime().wrap(function _callee$(_context) {
105
+ while (1) switch (_context.prev = _context.next) {
106
+ case 0:
107
+ getComponent();
108
+ userEvent.tab();
109
+ button0 = screen.getByText(testButtons[0].key);
110
+ expect(button0).toHaveClass('is-selected');
111
+ button1 = screen.getByText(testButtons[1].key);
112
+ expect(button1).not.toHaveClass('is-selected');
113
+ fireEvent.keyDown(screen.getByText(testButtons[0].key), {
114
+ key: 'ArrowRight',
115
+ code: 'ArrowRight'
116
+ });
117
+ fireEvent.keyDown(screen.getByText(testButtons[1].key), {
118
+ key: 'Enter',
119
+ code: 'Enter'
120
+ });
121
+ fireEvent.keyUp(screen.getByText(testButtons[1].key), {
122
+ key: 'Enter',
123
+ code: 'Enter'
124
+ });
125
+ _context.next = 11;
126
+ return screen.findByText(testButtons[0].key);
127
+ case 11:
128
+ updatedButton0 = _context.sent;
129
+ _context.next = 14;
130
+ return screen.findByText(testButtons[1].key);
131
+ case 14:
132
+ updatedButton1 = _context.sent;
133
+ expect(updatedButton1).toHaveClass('is-selected');
134
+ expect(updatedButton0).not.toHaveClass('is-selected');
135
+ case 17:
136
+ case "end":
137
+ return _context.stop();
138
+ }
139
+ }, _callee);
140
+ })));
105
141
  test('rockerButton renders correct darker bg when selectedStyles prop is passed', function () {
106
142
  getComponent();
107
143
  var button0 = screen.getByText(testButtons[0].key);
@@ -126,6 +162,14 @@ test('rockerButton renders correct bg when selectedStyles prop is css variable',
126
162
  key: 'ArrowRight',
127
163
  code: 'ArrowRight'
128
164
  });
165
+ fireEvent.keyDown(screen.getByText(testButtons[1].key), {
166
+ key: 'Enter',
167
+ code: 'Enter'
168
+ });
169
+ fireEvent.keyUp(screen.getByText(testButtons[1].key), {
170
+ key: 'Enter',
171
+ code: 'Enter'
172
+ });
129
173
  userEvent.hover(button1);
130
174
  expect(button1).toHaveClass('is-selected');
131
175
  expect(button1).toHaveClass('is-hovered');
@@ -20,7 +20,6 @@ export { default as usePagination } from './usePagination';
20
20
  export { default as usePaginationState } from './usePaginationState';
21
21
  export { default as useProgressiveState } from './useProgressiveState';
22
22
  export { default as usePropWarning } from './usePropWarning';
23
- export { default as useRockerButton } from './useRockerButton';
24
23
  export { default as useSelectField } from './useSelectField';
25
24
  export { default as useSliderField } from './useSliderField';
26
25
  export { default as useStatusClasses } from './useStatusClasses';
@@ -65,13 +65,13 @@ var rockerButton = {
65
65
  backgroundColor: 'gray-900',
66
66
  color: 'blue-400',
67
67
  '&.is-selected': {
68
- color: 'gray-900'
68
+ color: 'black'
69
69
  },
70
70
  '&.is-hovered': {
71
- color: 'gray-900'
71
+ color: 'black'
72
72
  },
73
73
  '&.is-pressed': {
74
- color: 'gray-900'
74
+ color: 'black'
75
75
  }
76
76
  }
77
77
  }
@@ -140,5 +140,21 @@ export default {
140
140
  data: {
141
141
  color: 'text.secondary'
142
142
  }
143
+ },
144
+ fieldHelperText: {
145
+ title: {
146
+ '&.is-default': {
147
+ color: 'text.fieldHelper'
148
+ },
149
+ '&.is-error': {
150
+ color: 'critical.bright'
151
+ },
152
+ '&.is-warning': {
153
+ color: 'warning.bright'
154
+ },
155
+ '&.is-success': {
156
+ color: 'success.bright'
157
+ }
158
+ }
143
159
  }
144
160
  };
@@ -5,5 +5,6 @@ export var astroThemeValues = {
5
5
  icons: icons,
6
6
  styles: styles,
7
7
  tShirtSizes: tShirtSizes,
8
- iconWrapperSizes: iconWrapperSizes
8
+ iconWrapperSizes: iconWrapperSizes,
9
+ rockerButtonGap: '3px'
9
10
  };
@@ -1,4 +1,4 @@
1
- var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'RockerButtonGroup', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'IconWrapper', 'ComboBoxField', 'CodeView', 'Sticker Sheet', 'NextGen ListViewItem', 'Skeleton', 'TooltipTrigger', 'ListViewItem', 'Pagination', 'Callout', 'Table', 'TableBase'];
1
+ var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'RockerButtonGroup', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'IconWrapper', 'ComboBoxField', 'CodeView', 'Sticker Sheet', 'NextGen ListViewItem', 'Skeleton', 'TooltipTrigger', 'ListViewItem', 'Pagination', 'Callout', 'Table', 'TableBase', 'ArrayField', 'ColorField', 'LinkSelectField', 'NumberField', 'SwitchField', 'Base Components', 'SliderField'];
2
2
  export var componentSpecificNextGenBlacklist = {
3
3
  AstroProvider: ['Default', 'With Custom Theme Override'],
4
4
  Badge: ['Status Badge Variants', 'Badge With Left Slot And Icon', 'Callout Badges', 'Removable'],
@@ -5,5 +5,6 @@ export var nextGenThemeValues = {
5
5
  styles: styles,
6
6
  icons: icons,
7
7
  tShirtSizes: tShirtSizes,
8
- iconWrapperSizes: iconWrapperSizes
8
+ iconWrapperSizes: iconWrapperSizes,
9
+ rockerButtonGap: '0px'
9
10
  };
@@ -20,6 +20,7 @@ var readOnlyandDisabledStyles = {
20
20
  opacity: 1
21
21
  };
22
22
  export var input = {
23
+ height: '50px',
23
24
  fontSize: 'md',
24
25
  fontFamily: 'standard',
25
26
  p: '0.75rem',
@@ -28,8 +29,14 @@ export var input = {
28
29
  '&.is-focused': _objectSpread({}, defaultFocus),
29
30
  borderRadius: '4px',
30
31
  fontWeight: 1,
31
- '&::placeholder': text.placeholder
32
+ '&::placeholder': text.placeholder,
33
+ '.is-float-label &': {
34
+ height: '50px'
35
+ }
32
36
  };
37
+ input.large = _objectSpread(_objectSpread({}, input), {}, {
38
+ height: '4em'
39
+ });
33
40
  input.promptInput = _objectSpread(_objectSpread({}, input), {}, {
34
41
  position: 'absolute',
35
42
  pl: '0px',
@@ -47,7 +54,6 @@ input.promptInput = _objectSpread(_objectSpread({}, input), {}, {
47
54
  }
48
55
  });
49
56
  input.search = _objectSpread(_objectSpread({}, input), {}, {
50
- height: '50px',
51
57
  pl: '4em !important',
52
58
  pr: 'xl',
53
59
  color: 'font.base',
@@ -3,7 +3,8 @@ export var label = {
3
3
  fontSize: '.9375rem',
4
4
  '&.is-float-label': {
5
5
  fontSize: 'md',
6
- fontWeight: 1
6
+ fontWeight: 1,
7
+ top: '15px'
7
8
  },
8
9
  '.is-float-label-active &.is-float-label': {
9
10
  fontSize: 'sm',
@@ -328,7 +328,9 @@ var rockerButton = {
328
328
  '&.is-focused': {
329
329
  outline: '2px solid',
330
330
  outlineColor: 'focus',
331
- outlineOffset: '2px'
331
+ outlineOffset: '2px',
332
+ position: 'relative',
333
+ zIndex: '1000'
332
334
  }
333
335
  },
334
336
  'button:not(:first-child)': {
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.130.2",
3
+ "version": "2.130.3-alpha.1",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",
@@ -53,7 +53,7 @@
53
53
  "@pingux/mdi-react": "^1.2.0",
54
54
  "@react-aria/accordion": "~3.0.0-alpha.11",
55
55
  "@react-aria/breadcrumbs": "^3.1.4",
56
- "@react-aria/button": "^3.2.1",
56
+ "@react-aria/button": "^3.13.2",
57
57
  "@react-aria/calendar": "^3.5.7",
58
58
  "@react-aria/checkbox": "^3.2.0",
59
59
  "@react-aria/color": "~3.0.0",
@@ -77,6 +77,7 @@
77
77
  "@react-aria/selection": "~3.10.1",
78
78
  "@react-aria/table": "^3.9.0",
79
79
  "@react-aria/tabs": "^3.8.3",
80
+ "@react-aria/toggle": "^3.11.5",
80
81
  "@react-aria/utils": "^3.16.0",
81
82
  "@react-aria/virtualizer": "~3.8.0",
82
83
  "@react-aria/visually-hidden": "~3.6.0",
@@ -94,7 +95,7 @@
94
95
  "@react-stately/selection": "^3.15.0",
95
96
  "@react-stately/table": "^3.9.0",
96
97
  "@react-stately/tabs": "^3.6.3",
97
- "@react-stately/toggle": "^3.7.3",
98
+ "@react-stately/toggle": "^3.8.5",
98
99
  "@react-stately/tree": "^3.7.4",
99
100
  "@react-stately/virtualizer": "~3.6.5",
100
101
  "@react-types/slider": "^3.7.9",
@@ -1 +0,0 @@
1
- export { default } from './useRockerButton';
@@ -1,14 +0,0 @@
1
- "use strict";
2
-
3
- var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
- var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
5
- _Object$defineProperty(exports, "__esModule", {
6
- value: true
7
- });
8
- _Object$defineProperty(exports, "default", {
9
- enumerable: true,
10
- get: function get() {
11
- return _useRockerButton["default"];
12
- }
13
- });
14
- var _useRockerButton = _interopRequireDefault(require("./useRockerButton"));
@@ -1,241 +0,0 @@
1
- import React from 'react';
2
- import { MultipleSelectionManager } from 'react-stately';
3
- import { FocusableElement } from '../../types';
4
- interface RockerButtonProps {
5
- item: {
6
- key: string;
7
- };
8
- isDisabled: boolean;
9
- isSelected: boolean;
10
- }
11
- declare const useRockerButton: (props: RockerButtonProps, state: {
12
- selectionManager: MultipleSelectionManager;
13
- }, ref: React.RefObject<FocusableElement>) => {
14
- rockerButtonProps: {
15
- id: string;
16
- 'aria-pressed': boolean;
17
- 'aria-disabled': true | undefined;
18
- role?: React.AriaRole | undefined;
19
- tabIndex?: number | undefined;
20
- style?: React.CSSProperties | undefined;
21
- className?: string | undefined;
22
- 'aria-activedescendant'?: string | undefined;
23
- 'aria-atomic'?: (boolean | "false" | "true") | undefined;
24
- 'aria-autocomplete'?: "list" | "none" | "both" | "inline" | undefined;
25
- 'aria-braillelabel'?: string | undefined;
26
- 'aria-brailleroledescription'?: string | undefined;
27
- 'aria-busy'?: (boolean | "false" | "true") | undefined;
28
- 'aria-checked'?: boolean | "mixed" | "false" | "true" | undefined;
29
- 'aria-colcount'?: number | undefined;
30
- 'aria-colindex'?: number | undefined;
31
- 'aria-colindextext'?: string | undefined;
32
- 'aria-colspan'?: number | undefined;
33
- 'aria-controls'?: string | undefined;
34
- 'aria-current'?: boolean | "time" | "date" | "page" | "false" | "true" | "step" | "location" | undefined;
35
- 'aria-describedby'?: string | undefined;
36
- 'aria-description'?: string | undefined;
37
- 'aria-details'?: string | undefined;
38
- 'aria-dropeffect'?: "link" | "none" | "copy" | "move" | "execute" | "popup" | undefined;
39
- 'aria-errormessage'?: string | undefined;
40
- 'aria-expanded'?: (boolean | "false" | "true") | undefined;
41
- 'aria-flowto'?: string | undefined;
42
- 'aria-grabbed'?: (boolean | "false" | "true") | undefined;
43
- 'aria-haspopup'?: boolean | "dialog" | "grid" | "listbox" | "menu" | "tree" | "false" | "true" | undefined;
44
- 'aria-hidden'?: (boolean | "false" | "true") | undefined;
45
- 'aria-invalid'?: boolean | "false" | "true" | "grammar" | "spelling" | undefined;
46
- 'aria-keyshortcuts'?: string | undefined;
47
- 'aria-label'?: string | undefined;
48
- 'aria-labelledby'?: string | undefined;
49
- 'aria-level'?: number | undefined;
50
- 'aria-live'?: "off" | "assertive" | "polite" | undefined;
51
- 'aria-modal'?: (boolean | "false" | "true") | undefined;
52
- 'aria-multiline'?: (boolean | "false" | "true") | undefined;
53
- 'aria-multiselectable'?: (boolean | "false" | "true") | undefined;
54
- 'aria-orientation'?: "vertical" | "horizontal" | undefined;
55
- 'aria-owns'?: string | undefined;
56
- 'aria-placeholder'?: string | undefined;
57
- 'aria-posinset'?: number | undefined;
58
- 'aria-readonly'?: (boolean | "false" | "true") | undefined;
59
- 'aria-relevant'?: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
60
- 'aria-required'?: (boolean | "false" | "true") | undefined;
61
- 'aria-roledescription'?: string | undefined;
62
- 'aria-rowcount'?: number | undefined;
63
- 'aria-rowindex'?: number | undefined;
64
- 'aria-rowindextext'?: string | undefined;
65
- 'aria-rowspan'?: number | undefined;
66
- 'aria-selected'?: (boolean | "false" | "true") | undefined;
67
- 'aria-setsize'?: number | undefined;
68
- 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
69
- 'aria-valuemax'?: number | undefined;
70
- 'aria-valuemin'?: number | undefined;
71
- 'aria-valuenow'?: number | undefined;
72
- 'aria-valuetext'?: string | undefined;
73
- children?: React.ReactNode;
74
- dangerouslySetInnerHTML?: {
75
- __html: string | TrustedHTML;
76
- } | undefined;
77
- onCopy?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
78
- onCopyCapture?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
79
- onCut?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
80
- onCutCapture?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
81
- onPaste?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
82
- onPasteCapture?: React.ClipboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
83
- onCompositionEnd?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
84
- onCompositionEndCapture?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
85
- onCompositionStart?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
86
- onCompositionStartCapture?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
87
- onCompositionUpdate?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
88
- onCompositionUpdateCapture?: React.CompositionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
89
- onFocus?: React.FocusEventHandler<import("@react-types/shared").FocusableElement> | undefined;
90
- onFocusCapture?: React.FocusEventHandler<import("@react-types/shared").FocusableElement> | undefined;
91
- onBlur?: React.FocusEventHandler<import("@react-types/shared").FocusableElement> | undefined;
92
- onBlurCapture?: React.FocusEventHandler<import("@react-types/shared").FocusableElement> | undefined;
93
- onChange?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
94
- onChangeCapture?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
95
- onBeforeInput?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
96
- onBeforeInputCapture?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
97
- onInput?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
98
- onInputCapture?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
99
- onReset?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
100
- onResetCapture?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
101
- onSubmit?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
102
- onSubmitCapture?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
103
- onInvalid?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
104
- onInvalidCapture?: React.FormEventHandler<import("@react-types/shared").FocusableElement> | undefined;
105
- onLoad?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
106
- onLoadCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
107
- onError?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
108
- onErrorCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
109
- onKeyDown?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
110
- onKeyDownCapture?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
111
- onKeyPress?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
112
- onKeyPressCapture?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
113
- onKeyUp?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
114
- onKeyUpCapture?: React.KeyboardEventHandler<import("@react-types/shared").FocusableElement> | undefined;
115
- onAbort?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
116
- onAbortCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
117
- onCanPlay?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
118
- onCanPlayCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
119
- onCanPlayThrough?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
120
- onCanPlayThroughCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
121
- onDurationChange?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
122
- onDurationChangeCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
123
- onEmptied?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
124
- onEmptiedCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
125
- onEncrypted?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
126
- onEncryptedCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
127
- onEnded?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
128
- onEndedCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
129
- onLoadedData?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
130
- onLoadedDataCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
131
- onLoadedMetadata?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
132
- onLoadedMetadataCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
133
- onLoadStart?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
134
- onLoadStartCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
135
- onPause?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
136
- onPauseCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
137
- onPlay?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
138
- onPlayCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
139
- onPlaying?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
140
- onPlayingCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
141
- onProgress?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
142
- onProgressCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
143
- onRateChange?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
144
- onRateChangeCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
145
- onResize?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
146
- onResizeCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
147
- onSeeked?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
148
- onSeekedCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
149
- onSeeking?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
150
- onSeekingCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
151
- onStalled?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
152
- onStalledCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
153
- onSuspend?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
154
- onSuspendCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
155
- onTimeUpdate?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
156
- onTimeUpdateCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
157
- onVolumeChange?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
158
- onVolumeChangeCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
159
- onWaiting?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
160
- onWaitingCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
161
- onAuxClick?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
162
- onAuxClickCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
163
- onClick?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
164
- onClickCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
165
- onContextMenu?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
166
- onContextMenuCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
167
- onDoubleClick?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
168
- onDoubleClickCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
169
- onDrag?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
170
- onDragCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
171
- onDragEnd?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
172
- onDragEndCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
173
- onDragEnter?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
174
- onDragEnterCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
175
- onDragExit?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
176
- onDragExitCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
177
- onDragLeave?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
178
- onDragLeaveCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
179
- onDragOver?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
180
- onDragOverCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
181
- onDragStart?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
182
- onDragStartCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
183
- onDrop?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
184
- onDropCapture?: React.DragEventHandler<import("@react-types/shared").FocusableElement> | undefined;
185
- onMouseDown?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
186
- onMouseDownCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
187
- onMouseEnter?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
188
- onMouseLeave?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
189
- onMouseMove?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
190
- onMouseMoveCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
191
- onMouseOut?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
192
- onMouseOutCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
193
- onMouseOver?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
194
- onMouseOverCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
195
- onMouseUp?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
196
- onMouseUpCapture?: React.MouseEventHandler<import("@react-types/shared").FocusableElement> | undefined;
197
- onSelect?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
198
- onSelectCapture?: React.ReactEventHandler<import("@react-types/shared").FocusableElement> | undefined;
199
- onTouchCancel?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
200
- onTouchCancelCapture?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
201
- onTouchEnd?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
202
- onTouchEndCapture?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
203
- onTouchMove?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
204
- onTouchMoveCapture?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
205
- onTouchStart?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
206
- onTouchStartCapture?: React.TouchEventHandler<import("@react-types/shared").FocusableElement> | undefined;
207
- onPointerDown?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
208
- onPointerDownCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
209
- onPointerMove?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
210
- onPointerMoveCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
211
- onPointerUp?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
212
- onPointerUpCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
213
- onPointerCancel?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
214
- onPointerCancelCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
215
- onPointerEnter?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
216
- onPointerEnterCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
217
- onPointerLeave?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
218
- onPointerLeaveCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
219
- onPointerOver?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
220
- onPointerOverCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
221
- onPointerOut?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
222
- onPointerOutCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
223
- onGotPointerCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
224
- onGotPointerCaptureCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
225
- onLostPointerCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
226
- onLostPointerCaptureCapture?: React.PointerEventHandler<import("@react-types/shared").FocusableElement> | undefined;
227
- onScroll?: React.UIEventHandler<import("@react-types/shared").FocusableElement> | undefined;
228
- onScrollCapture?: React.UIEventHandler<import("@react-types/shared").FocusableElement> | undefined;
229
- onWheel?: React.WheelEventHandler<import("@react-types/shared").FocusableElement> | undefined;
230
- onWheelCapture?: React.WheelEventHandler<import("@react-types/shared").FocusableElement> | undefined;
231
- onAnimationStart?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
232
- onAnimationStartCapture?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
233
- onAnimationEnd?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
234
- onAnimationEndCapture?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
235
- onAnimationIteration?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
236
- onAnimationIterationCapture?: React.AnimationEventHandler<import("@react-types/shared").FocusableElement> | undefined;
237
- onTransitionEnd?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
238
- onTransitionEndCapture?: React.TransitionEventHandler<import("@react-types/shared").FocusableElement> | undefined;
239
- };
240
- };
241
- export default useRockerButton;