powell-react 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. package/dist/cjs/index.js +312 -12
  2. package/dist/cjs/index.js.map +1 -1
  3. package/dist/cjs/types/api/primereact.d.ts +86 -85
  4. package/dist/cjs/types/components/CascadeSelect/index.d.ts +1 -1
  5. package/dist/cjs/types/components/Chips/Chips.d.ts +4 -5
  6. package/dist/cjs/types/components/Editor/index.d.ts +1 -1
  7. package/dist/cjs/types/components/InputPassword/InputPassword.d.ts +1 -2
  8. package/dist/cjs/types/components/Knob/Knob.d.ts +1 -2
  9. package/dist/cjs/types/components/ListBox/ListBox.d.ts +1 -2
  10. package/dist/cjs/types/components/ListBox/index.d.ts +1 -1
  11. package/dist/cjs/types/components/MultiStateCheckbox/MultiStateCheckbox.d.ts +1 -2
  12. package/dist/cjs/types/index.d.ts +1 -0
  13. package/dist/cjs/types/models/forms.d.ts +4 -4
  14. package/dist/esm/index.js +312 -13
  15. package/dist/esm/index.js.map +1 -1
  16. package/dist/esm/types/api/primereact.d.ts +86 -85
  17. package/dist/esm/types/components/CascadeSelect/index.d.ts +1 -1
  18. package/dist/esm/types/components/Chips/Chips.d.ts +4 -5
  19. package/dist/esm/types/components/Editor/index.d.ts +1 -1
  20. package/dist/esm/types/components/InputPassword/InputPassword.d.ts +1 -2
  21. package/dist/esm/types/components/Knob/Knob.d.ts +1 -2
  22. package/dist/esm/types/components/ListBox/ListBox.d.ts +1 -2
  23. package/dist/esm/types/components/ListBox/index.d.ts +1 -1
  24. package/dist/esm/types/components/MultiStateCheckbox/MultiStateCheckbox.d.ts +1 -2
  25. package/dist/esm/types/index.d.ts +1 -0
  26. package/dist/esm/types/models/forms.d.ts +4 -4
  27. package/dist/index.d.ts +7 -3
  28. package/package.json +2 -1
  29. package/dist/cjs/types/components22/Button/Button.d.ts +0 -7
  30. package/dist/cjs/types/components22/Button/index.d.ts +0 -2
  31. package/dist/cjs/types/components22/Input/Input.d.ts +0 -2
  32. package/dist/cjs/types/components22/Input/index.d.ts +0 -2
  33. package/dist/cjs/types/components22/index.d.ts +0 -2
  34. package/dist/esm/types/components22/Button/Button.d.ts +0 -7
  35. package/dist/esm/types/components22/Button/index.d.ts +0 -2
  36. package/dist/esm/types/components22/Input/Input.d.ts +0 -2
  37. package/dist/esm/types/components22/Input/index.d.ts +0 -2
  38. package/dist/esm/types/components22/index.d.ts +0 -2
package/dist/esm/index.js CHANGED
@@ -4168,6 +4168,64 @@ if (process.env.NODE_ENV === 'production') {
4168
4168
 
4169
4169
  var jsxRuntimeExports = jsxRuntime.exports;
4170
4170
 
4171
+ const useIsomorphicLayoutEffect = typeof window !== "undefined" || typeof document !== "undefined"
4172
+ ? reactExports.useLayoutEffect
4173
+ : reactExports.useEffect;
4174
+ const equ = (a, b) => a === b;
4175
+ const FR = {};
4176
+ function useComparator(v, c = equ) {
4177
+ const f = reactExports.useRef(FR);
4178
+ let nv = f.current;
4179
+ useIsomorphicLayoutEffect(() => {
4180
+ f.current = nv;
4181
+ });
4182
+ if (f.current === FR || !c(v, f.current)) {
4183
+ nv = v;
4184
+ }
4185
+ return nv;
4186
+ }
4187
+ function globalState(initialValue, options) {
4188
+ let sb = [];
4189
+ let v = initialValue;
4190
+ function set(newValue, callback) {
4191
+ const pv = v;
4192
+ v = newValue instanceof Function ? newValue(v) : newValue;
4193
+ setTimeout(() => {
4194
+ sb.forEach((c) => c(v, pv));
4195
+ callback?.(v, pv);
4196
+ });
4197
+ }
4198
+ function subscribe(subscriber) {
4199
+ sb.push(subscriber);
4200
+ return () => {
4201
+ sb = sb.filter((f) => f !== subscriber);
4202
+ };
4203
+ }
4204
+ function useSubscription(subscriber) {
4205
+ useIsomorphicLayoutEffect(() => subscribe(subscriber), [subscriber]);
4206
+ }
4207
+ function use() {
4208
+ const [l, s] = reactExports.useState(v);
4209
+ useSubscription(s);
4210
+ return [l, set];
4211
+ }
4212
+ function useSelector(selector, comparator = equ) {
4213
+ const [rv] = use();
4214
+ return useComparator(selector(rv), comparator);
4215
+ }
4216
+ return {
4217
+ use,
4218
+ useSelector,
4219
+ useValue: () => use()[0],
4220
+ get: () => v,
4221
+ set,
4222
+ reset: () => set(initialValue),
4223
+ subscribe,
4224
+ };
4225
+ }
4226
+
4227
+ const configService = globalState({});
4228
+
4171
4229
  /**
4172
4230
  * Based on Kendo UI Core expression code <https://github.com/telerik/kendo-ui-core#license-information>
4173
4231
  */
@@ -5628,11 +5686,49 @@ class DateSchema extends Schema {
5628
5686
  }
5629
5687
  DateSchema.INVALID_DATE = invalidDate;
5630
5688
 
5631
- function _arrayWithHoles$4(arr) {
5689
+ const powellDefaults = {
5690
+ theme: 'lara-light-cyan',
5691
+ rtl: false,
5692
+ showRequiredStar: true,
5693
+ ripple: true,
5694
+ inputSize: 'md',
5695
+ labelPosition: 'fix-top',
5696
+ fixLabelPosition: 'fix-side'
5697
+ };
5698
+
5699
+ const createThemeLink = () => {
5700
+ const headEl = document.head;
5701
+ const linkEl = document.createElement("link");
5702
+ linkEl.rel = "stylesheet";
5703
+ linkEl.type = "text/css";
5704
+ linkEl.id = "powell-theme-link";
5705
+ headEl.appendChild(linkEl);
5706
+ return linkEl;
5707
+ };
5708
+ const applyTheme = (theme) => {
5709
+ let themeEl = document.getElementById('powell-theme-link');
5710
+ if (!themeEl) {
5711
+ themeEl = createThemeLink();
5712
+ }
5713
+ const themeLink = `/src/powell/themes/${theme}.css`;
5714
+ themeEl.setAttribute('href', themeLink);
5715
+ };
5716
+ const PowellProvider = (props) => {
5717
+ const { children, config } = props;
5718
+ const defaultConfig = {
5719
+ ...powellDefaults,
5720
+ ...config
5721
+ };
5722
+ configService.set(defaultConfig);
5723
+ applyTheme(defaultConfig.theme);
5724
+ return (jsxRuntimeExports.jsx(PrimeReactProvider, { value: defaultConfig, children: children }));
5725
+ };
5726
+
5727
+ function _arrayWithHoles$5(arr) {
5632
5728
  if (Array.isArray(arr)) return arr;
5633
5729
  }
5634
5730
 
5635
- function _iterableToArrayLimit$4(r, l) {
5731
+ function _iterableToArrayLimit$5(r, l) {
5636
5732
  var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
5637
5733
  if (null != t) {
5638
5734
  var e,
@@ -5672,12 +5768,12 @@ function _unsupportedIterableToArray$2$1(o, minLen) {
5672
5768
  if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$2$1(o, minLen);
5673
5769
  }
5674
5770
 
5675
- function _nonIterableRest$4() {
5771
+ function _nonIterableRest$5() {
5676
5772
  throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
5677
5773
  }
5678
5774
 
5679
- function _slicedToArray$4(arr, i) {
5680
- return _arrayWithHoles$4(arr) || _iterableToArrayLimit$4(arr, i) || _unsupportedIterableToArray$2$1(arr, i) || _nonIterableRest$4();
5775
+ function _slicedToArray$5(arr, i) {
5776
+ return _arrayWithHoles$5(arr) || _iterableToArrayLimit$5(arr, i) || _unsupportedIterableToArray$2$1(arr, i) || _nonIterableRest$5();
5681
5777
  }
5682
5778
 
5683
5779
  function _typeof$5(o) {
@@ -5706,7 +5802,7 @@ function classNames() {
5706
5802
  classes.push(className);
5707
5803
  } else if (type === 'object') {
5708
5804
  var _classes = Array.isArray(className) ? className : Object.entries(className).map(function (_ref) {
5709
- var _ref2 = _slicedToArray$4(_ref, 2),
5805
+ var _ref2 = _slicedToArray$5(_ref, 2),
5710
5806
  key = _ref2[0],
5711
5807
  value = _ref2[1];
5712
5808
  return value ? key : null;
@@ -6008,7 +6104,7 @@ var DomHandler = /*#__PURE__*/function () {
6008
6104
  var styles = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
6009
6105
  if (element) {
6010
6106
  Object.entries(styles).forEach(function (_ref) {
6011
- var _ref2 = _slicedToArray$4(_ref, 2),
6107
+ var _ref2 = _slicedToArray$5(_ref, 2),
6012
6108
  key = _ref2[0],
6013
6109
  value = _ref2[1];
6014
6110
  return element.style[key] = value;
@@ -6044,7 +6140,7 @@ var DomHandler = /*#__PURE__*/function () {
6044
6140
  cv.push(v);
6045
6141
  } else if (type === 'object') {
6046
6142
  var _cv = Array.isArray(v) ? _computedStyles(rule, v) : Object.entries(v).map(function (_ref3) {
6047
- var _ref4 = _slicedToArray$4(_ref3, 2),
6143
+ var _ref4 = _slicedToArray$5(_ref3, 2),
6048
6144
  _k = _ref4[0],
6049
6145
  _v = _ref4[1];
6050
6146
  return rule === 'style' && (!!_v || _v === 0) ? "".concat(_k.replace(/([a-z])([A-Z])/g, '$1-$2').toLowerCase(), ":").concat(_v) : _v ? _k : undefined;
@@ -6058,7 +6154,7 @@ var DomHandler = /*#__PURE__*/function () {
6058
6154
  }, styles);
6059
6155
  };
6060
6156
  Object.entries(attributes).forEach(function (_ref5) {
6061
- var _ref6 = _slicedToArray$4(_ref5, 2),
6157
+ var _ref6 = _slicedToArray$5(_ref5, 2),
6062
6158
  key = _ref6[0],
6063
6159
  value = _ref6[1];
6064
6160
  if (value !== undefined && value !== null) {
@@ -7053,9 +7149,9 @@ function _extends$4() {
7053
7149
  return _extends$4.apply(this, arguments);
7054
7150
  }
7055
7151
 
7056
- function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$5(o)) || allowArrayLike) { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
7057
- function _unsupportedIterableToArray$5(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$5(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen); }
7058
- function _arrayLikeToArray$5(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7152
+ function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray$6(o)) || allowArrayLike) { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
7153
+ function _unsupportedIterableToArray$6(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray$6(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$6(o, minLen); }
7154
+ function _arrayLikeToArray$6(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
7059
7155
  var ObjectUtils = /*#__PURE__*/function () {
7060
7156
  function ObjectUtils() {
7061
7157
  _classCallCheck$1(this, ObjectUtils);
@@ -7846,7 +7942,210 @@ _defineProperty$4(PrimeReact$1, "changeTheme", function (currentTheme, newTheme,
7846
7942
  (_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.replaceChild(newLinkElement, linkElement);
7847
7943
  });
7848
7944
 
7945
+ function _arrayWithHoles$4(arr) {
7946
+ if (Array.isArray(arr)) return arr;
7947
+ }
7948
+
7949
+ function _iterableToArrayLimit$4(r, l) {
7950
+ var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
7951
+ if (null != t) {
7952
+ var e,
7953
+ n,
7954
+ i,
7955
+ u,
7956
+ a = [],
7957
+ f = !0,
7958
+ o = !1;
7959
+ try {
7960
+ if (i = (t = t.call(r)).next, 0 === l) ; else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0);
7961
+ } catch (r) {
7962
+ o = !0, n = r;
7963
+ } finally {
7964
+ try {
7965
+ if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return;
7966
+ } finally {
7967
+ if (o) throw n;
7968
+ }
7969
+ }
7970
+ return a;
7971
+ }
7972
+ }
7973
+
7974
+ function _arrayLikeToArray$5(arr, len) {
7975
+ if (len == null || len > arr.length) len = arr.length;
7976
+ for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i];
7977
+ return arr2;
7978
+ }
7979
+
7980
+ function _unsupportedIterableToArray$5(o, minLen) {
7981
+ if (!o) return;
7982
+ if (typeof o === "string") return _arrayLikeToArray$5(o, minLen);
7983
+ var n = Object.prototype.toString.call(o).slice(8, -1);
7984
+ if (n === "Object" && o.constructor) n = o.constructor.name;
7985
+ if (n === "Map" || n === "Set") return Array.from(o);
7986
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray$5(o, minLen);
7987
+ }
7988
+
7989
+ function _nonIterableRest$4() {
7990
+ throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
7991
+ }
7992
+
7993
+ function _slicedToArray$4(arr, i) {
7994
+ return _arrayWithHoles$4(arr) || _iterableToArrayLimit$4(arr, i) || _unsupportedIterableToArray$5(arr, i) || _nonIterableRest$4();
7995
+ }
7996
+
7849
7997
  var PrimeReactContext = /*#__PURE__*/React__default.createContext();
7998
+ var PrimeReactProvider = function PrimeReactProvider(props) {
7999
+ var propsValue = props.value || {};
8000
+ var _useState = reactExports.useState(propsValue.ripple || false),
8001
+ _useState2 = _slicedToArray$4(_useState, 2),
8002
+ ripple = _useState2[0],
8003
+ setRipple = _useState2[1];
8004
+ var _useState3 = reactExports.useState(propsValue.inputStyle || 'outlined'),
8005
+ _useState4 = _slicedToArray$4(_useState3, 2),
8006
+ inputStyle = _useState4[0],
8007
+ setInputStyle = _useState4[1];
8008
+ var _useState5 = reactExports.useState(propsValue.locale || 'en'),
8009
+ _useState6 = _slicedToArray$4(_useState5, 2),
8010
+ locale = _useState6[0],
8011
+ setLocale = _useState6[1];
8012
+ var _useState7 = reactExports.useState(propsValue.appendTo || null),
8013
+ _useState8 = _slicedToArray$4(_useState7, 2),
8014
+ appendTo = _useState8[0],
8015
+ setAppendTo = _useState8[1];
8016
+ var _useState9 = reactExports.useState(propsValue.styleContainer || null),
8017
+ _useState10 = _slicedToArray$4(_useState9, 2),
8018
+ styleContainer = _useState10[0],
8019
+ setStyleContainer = _useState10[1];
8020
+ var _useState11 = reactExports.useState(propsValue.cssTransition || true),
8021
+ _useState12 = _slicedToArray$4(_useState11, 2),
8022
+ cssTransition = _useState12[0],
8023
+ setCssTransition = _useState12[1];
8024
+ var _useState13 = reactExports.useState(propsValue.autoZIndex || true),
8025
+ _useState14 = _slicedToArray$4(_useState13, 2),
8026
+ autoZIndex = _useState14[0],
8027
+ setAutoZIndex = _useState14[1];
8028
+ var _useState15 = reactExports.useState(propsValue.hideOverlaysOnDocumentScrolling || false),
8029
+ _useState16 = _slicedToArray$4(_useState15, 2),
8030
+ hideOverlaysOnDocumentScrolling = _useState16[0],
8031
+ setHideOverlaysOnDocumentScrolling = _useState16[1];
8032
+ var _useState17 = reactExports.useState(propsValue.nonce || null),
8033
+ _useState18 = _slicedToArray$4(_useState17, 2),
8034
+ nonce = _useState18[0],
8035
+ setNonce = _useState18[1];
8036
+ var _useState19 = reactExports.useState(propsValue.nullSortOrder || 1),
8037
+ _useState20 = _slicedToArray$4(_useState19, 2),
8038
+ nullSortOrder = _useState20[0],
8039
+ setNullSortOrder = _useState20[1];
8040
+ var _useState21 = reactExports.useState(propsValue.zIndex || {
8041
+ modal: 1100,
8042
+ overlay: 1000,
8043
+ menu: 1000,
8044
+ tooltip: 1100,
8045
+ toast: 1200
8046
+ }),
8047
+ _useState22 = _slicedToArray$4(_useState21, 2),
8048
+ zIndex = _useState22[0],
8049
+ setZIndex = _useState22[1];
8050
+ var _useState23 = reactExports.useState(propsValue.ptOptions || {
8051
+ mergeSections: true,
8052
+ mergeProps: true
8053
+ }),
8054
+ _useState24 = _slicedToArray$4(_useState23, 2),
8055
+ ptOptions = _useState24[0],
8056
+ setPtOptions = _useState24[1];
8057
+ var _useState25 = reactExports.useState(propsValue.pt || undefined),
8058
+ _useState26 = _slicedToArray$4(_useState25, 2),
8059
+ pt = _useState26[0],
8060
+ setPt = _useState26[1];
8061
+ var _useState27 = reactExports.useState(propsValue.unstyled || false),
8062
+ _useState28 = _slicedToArray$4(_useState27, 2),
8063
+ unstyled = _useState28[0],
8064
+ setUnstyled = _useState28[1];
8065
+ var _useState29 = reactExports.useState(propsValue.filterMatchModeOptions || {
8066
+ text: [FilterMatchMode.STARTS_WITH, FilterMatchMode.CONTAINS, FilterMatchMode.NOT_CONTAINS, FilterMatchMode.ENDS_WITH, FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS],
8067
+ numeric: [FilterMatchMode.EQUALS, FilterMatchMode.NOT_EQUALS, FilterMatchMode.LESS_THAN, FilterMatchMode.LESS_THAN_OR_EQUAL_TO, FilterMatchMode.GREATER_THAN, FilterMatchMode.GREATER_THAN_OR_EQUAL_TO],
8068
+ date: [FilterMatchMode.DATE_IS, FilterMatchMode.DATE_IS_NOT, FilterMatchMode.DATE_BEFORE, FilterMatchMode.DATE_AFTER]
8069
+ }),
8070
+ _useState30 = _slicedToArray$4(_useState29, 2),
8071
+ filterMatchModeOptions = _useState30[0],
8072
+ setFilterMatchModeOptions = _useState30[1];
8073
+ var changeTheme = function changeTheme(currentTheme, newTheme, linkElementId, callback) {
8074
+ var _linkElement$parentNo;
8075
+ var linkElement = document.getElementById(linkElementId);
8076
+ if (!linkElement) {
8077
+ throw Error("Element with id ".concat(linkElementId, " not found."));
8078
+ }
8079
+ var newThemeUrl = linkElement.getAttribute('href').replace(currentTheme, newTheme);
8080
+ var newLinkElement = document.createElement('link');
8081
+ newLinkElement.setAttribute('rel', 'stylesheet');
8082
+ newLinkElement.setAttribute('id', linkElementId);
8083
+ newLinkElement.setAttribute('href', newThemeUrl);
8084
+ newLinkElement.addEventListener('load', function () {
8085
+ if (callback) {
8086
+ callback();
8087
+ }
8088
+ });
8089
+ (_linkElement$parentNo = linkElement.parentNode) === null || _linkElement$parentNo === void 0 || _linkElement$parentNo.replaceChild(newLinkElement, linkElement);
8090
+ };
8091
+
8092
+ /**
8093
+ * @deprecated
8094
+ */
8095
+ React__default.useEffect(function () {
8096
+ PrimeReact$1.ripple = ripple;
8097
+ }, [ripple]);
8098
+
8099
+ /**
8100
+ * @deprecated
8101
+ */
8102
+ React__default.useEffect(function () {
8103
+ PrimeReact$1.inputStyle = inputStyle;
8104
+ }, [inputStyle]);
8105
+
8106
+ /**
8107
+ * @deprecated
8108
+ */
8109
+ React__default.useEffect(function () {
8110
+ PrimeReact$1.locale = locale;
8111
+ }, [locale]);
8112
+ var value = {
8113
+ changeTheme: changeTheme,
8114
+ ripple: ripple,
8115
+ setRipple: setRipple,
8116
+ inputStyle: inputStyle,
8117
+ setInputStyle: setInputStyle,
8118
+ locale: locale,
8119
+ setLocale: setLocale,
8120
+ appendTo: appendTo,
8121
+ setAppendTo: setAppendTo,
8122
+ styleContainer: styleContainer,
8123
+ setStyleContainer: setStyleContainer,
8124
+ cssTransition: cssTransition,
8125
+ setCssTransition: setCssTransition,
8126
+ autoZIndex: autoZIndex,
8127
+ setAutoZIndex: setAutoZIndex,
8128
+ hideOverlaysOnDocumentScrolling: hideOverlaysOnDocumentScrolling,
8129
+ setHideOverlaysOnDocumentScrolling: setHideOverlaysOnDocumentScrolling,
8130
+ nonce: nonce,
8131
+ setNonce: setNonce,
8132
+ nullSortOrder: nullSortOrder,
8133
+ setNullSortOrder: setNullSortOrder,
8134
+ zIndex: zIndex,
8135
+ setZIndex: setZIndex,
8136
+ ptOptions: ptOptions,
8137
+ setPtOptions: setPtOptions,
8138
+ pt: pt,
8139
+ setPt: setPt,
8140
+ filterMatchModeOptions: filterMatchModeOptions,
8141
+ setFilterMatchModeOptions: setFilterMatchModeOptions,
8142
+ unstyled: unstyled,
8143
+ setUnstyled: setUnstyled
8144
+ };
8145
+ return /*#__PURE__*/React__default.createElement(PrimeReactContext.Provider, {
8146
+ value: value
8147
+ }, props.children);
8148
+ };
7850
8149
 
7851
8150
  var PrimeReact = PrimeReact$1;
7852
8151
 
@@ -41061,5 +41360,5 @@ const Button = reactExports.memo((props) => {
41061
41360
  return (jsxRuntimeExports.jsx(Button$1, { type: type, ...rest, onClick: handleClick, label: async ? tempProps.current.label : rest.label, icon: async ? tempProps.current.icon : rest.icon, severity: async ? tempProps.current.severity : rest.severity, raised: async ? tempProps.current.raised : rest.raised, text: async ? tempProps.current.appearance === 'text' : rest.appearance === 'text', outlined: async ? tempProps.current.appearance === 'outlined' : rest.appearance === 'outlined', link: async ? tempProps.current.appearance === 'link' : rest.appearance === 'link', loading: _state === 'loading', className: classNames(rest.className, `state-${_state}`) }));
41062
41361
  });
41063
41362
 
41064
- export { Button };
41363
+ export { Button, PowellProvider };
41065
41364
  //# sourceMappingURL=index.js.map