@ainias42/react-bootstrap-mobile 0.1.24 → 0.1.26

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.
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @ainias42/react-bootstrap-mobile v0.1.23
3
+ * @ainias42/react-bootstrap-mobile v0.1.25
4
4
  * git+https://github.com/Ainias/Bootstrap-React-Mobile.git
5
5
  * Copyright (c) Silas Günther and project contributors.
6
6
  * This source code is licensed under the MIT license found in the
@@ -2301,7 +2301,7 @@ var ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = __webpack_require__(7537);
2301
2301
  var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3645);
2302
2302
  var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);
2303
2303
  // Module
2304
- ___CSS_LOADER_EXPORT___.push([module.id, `.toastContainer__Cr4Pc{position:fixed;left:0;right:0;bottom:3rem;margin:auto;max-width:576px;z-index:1;display:flex;align-items:center;flex-direction:column}.toast__sXrim{background-color:rgba(0,0,0,.8);min-height:48px;line-height:1.5;--text-primary-default-color: white;color:#fff;font-size:.77rem;letter-spacing:normal;transition-duration:.25s;margin:8px}.toast__sXrim.hiding__VMWIu{opacity:0}.material-design .toast__sXrim{padding:16px 24px}.flat-design .toast__sXrim{border-radius:.5rem;padding:16px}.toast__sXrim .action__WbNF_{text-transform:uppercase;margin-left:24px}.material-design .toast__sXrim .action__WbNF_{color:#bbdefb}.flat-design .toast__sXrim .action__WbNF_{color:#fff}`, "",{"version":3,"sources":["webpack://./src/Components/Toast/toast.scss","webpack://./src/scss/_designMixin.scss"],"names":[],"mappings":"AAGA,uBACE,cAAA,CACA,MAAA,CACA,OAAA,CACA,WAAA,CACA,WAAA,CACA,eAAA,CACA,SAAA,CACA,YAAA,CACA,kBAAA,CACA,qBAAA,CAGF,cACE,+BAAA,CACA,eAAA,CACA,eAAA,CACA,mCAAA,CACA,UAAA,CACA,gBAAA,CACA,qBAAA,CACA,wBAAA,CACA,UAAA,CAEA,4BACE,SAAA,CCxBS,+BD4BT,iBAAA,CC5BS,2BDgCT,mBAAA,CACA,YAAA,CAGF,6BACE,wBAAA,CACA,gBAAA,CCtCS,8CDyCP,aAAA,CCzCO,0CD4CP,UAAA","sourcesContent":["@import \"../../scss/variables\";\n@import \"../../scss/designMixin\";\n\n.toastContainer {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 3rem;\n margin: auto;\n max-width: map-get($grid-breakpoints, \"sm\");\n z-index: 1;\n display: flex;\n align-items: center;\n flex-direction: column;\n}\n\n.toast {\n background-color: rgba(0, 0, 0, 0.8);\n min-height: 48px;\n line-height: 1.5;\n --text-primary-default-color: white;\n color: white;\n font-size: 0.77rem;\n letter-spacing: normal;\n transition-duration: 0.25s;\n margin: 8px;\n\n &.hiding {\n opacity: 0;\n }\n\n @include design($material) {\n padding: 16px 24px;\n }\n\n @include design($flat) {\n border-radius: 0.5rem;\n padding: 16px;\n }\n\n .action {\n text-transform: uppercase;\n margin-left: 24px;\n\n @include design($material) {\n color: #bbdefb\n }\n @include design($flat) {\n color: #ffffff;\n }\n }\n\n}\n","@use 'sass:selector';\n\n@mixin design($designName) {\n @if & {\n @at-root #{selector.nest(':global(.'+$designName+\")\", &)} {\n @content\n }\n } @else {\n :global(.#{$designName}) {\n @content\n }\n }\n}\n"],"sourceRoot":""}]);
2304
+ ___CSS_LOADER_EXPORT___.push([module.id, `.toastContainer__Cr4Pc{position:fixed;left:0;right:0;bottom:3rem;margin:auto;max-width:576px;z-index:1001;display:flex;align-items:center;flex-direction:column}.toast__sXrim{background-color:rgba(0,0,0,.8);min-height:48px;line-height:1.5;--text-primary-default-color: white;color:#fff;font-size:.77rem;letter-spacing:normal;transition-duration:.25s;margin:8px}.toast__sXrim.hiding__VMWIu{opacity:0}.material-design .toast__sXrim{padding:16px 24px}.flat-design .toast__sXrim{border-radius:.5rem;padding:16px}.toast__sXrim .action__WbNF_{text-transform:uppercase;margin-left:24px}.material-design .toast__sXrim .action__WbNF_{color:#bbdefb}.flat-design .toast__sXrim .action__WbNF_{color:#fff}`, "",{"version":3,"sources":["webpack://./src/Components/Toast/toast.scss","webpack://./src/scss/_designMixin.scss"],"names":[],"mappings":"AAGA,uBACE,cAAA,CACA,MAAA,CACA,OAAA,CACA,WAAA,CACA,WAAA,CACA,eAAA,CACA,YAAA,CACA,YAAA,CACA,kBAAA,CACA,qBAAA,CAGF,cACE,+BAAA,CACA,eAAA,CACA,eAAA,CACA,mCAAA,CACA,UAAA,CACA,gBAAA,CACA,qBAAA,CACA,wBAAA,CACA,UAAA,CAEA,4BACE,SAAA,CCxBS,+BD4BT,iBAAA,CC5BS,2BDgCT,mBAAA,CACA,YAAA,CAGF,6BACE,wBAAA,CACA,gBAAA,CCtCS,8CDyCP,aAAA,CCzCO,0CD4CP,UAAA","sourcesContent":["@import \"../../scss/variables\";\n@import \"../../scss/designMixin\";\n\n.toastContainer {\n position: fixed;\n left: 0;\n right: 0;\n bottom: 3rem;\n margin: auto;\n max-width: map-get($grid-breakpoints, \"sm\");\n z-index: 1001;\n display: flex;\n align-items: center;\n flex-direction: column;\n}\n\n.toast {\n background-color: rgba(0, 0, 0, 0.8);\n min-height: 48px;\n line-height: 1.5;\n --text-primary-default-color: white;\n color: white;\n font-size: 0.77rem;\n letter-spacing: normal;\n transition-duration: 0.25s;\n margin: 8px;\n\n &.hiding {\n opacity: 0;\n }\n\n @include design($material) {\n padding: 16px 24px;\n }\n\n @include design($flat) {\n border-radius: 0.5rem;\n padding: 16px;\n }\n\n .action {\n text-transform: uppercase;\n margin-left: 24px;\n\n @include design($material) {\n color: #bbdefb\n }\n @include design($flat) {\n color: #ffffff;\n }\n }\n\n}\n","@use 'sass:selector';\n\n@mixin design($designName) {\n @if & {\n @at-root #{selector.nest(':global(.'+$designName+\")\", &)} {\n @content\n }\n } @else {\n :global(.#{$designName}) {\n @content\n }\n }\n}\n"],"sourceRoot":""}]);
2305
2305
  // Exports
2306
2306
  ___CSS_LOADER_EXPORT___.locals = {
2307
2307
  "toastContainer": `toastContainer__Cr4Pc`,
@@ -9631,7 +9631,7 @@ __webpack_require__.d(__webpack_exports__, {
9631
9631
  FullScreen: () => (/* reexport */ FullScreenMemo),
9632
9632
  Grid: () => (/* reexport */ GridMemo),
9633
9633
  GridItem: () => (/* reexport */ GridItemMemo),
9634
- Grow: () => (/* reexport */ Grow_tmp),
9634
+ Grow: () => (/* reexport */ Grow),
9635
9635
  Heading: () => (/* reexport */ HeadingMemo),
9636
9636
  HiddenInput: () => (/* reexport */ HiddenInput_tmp),
9637
9637
  HoverMenu: () => (/* reexport */ HoverMenu),
@@ -9896,12 +9896,13 @@ function Clickable(_a, ref) {
9896
9896
  style,
9897
9897
  href,
9898
9898
  target,
9899
+ id,
9899
9900
  interactable = true,
9900
9901
  preventDefault = false,
9901
9902
  stopPropagation = true,
9902
9903
  useReactOnMouseLeave = false
9903
9904
  } = _a,
9904
- clickData = Clickable_rest(_a, ["className", "children", "style", "href", "target", "interactable", "preventDefault", "stopPropagation", "useReactOnMouseLeave"]);
9905
+ clickData = Clickable_rest(_a, ["className", "children", "style", "href", "target", "id", "interactable", "preventDefault", "stopPropagation", "useReactOnMouseLeave"]);
9905
9906
  // States
9906
9907
  // Refs
9907
9908
  const clickableRef = useComposedRef(ref);
@@ -10042,6 +10043,7 @@ function Clickable(_a, ref) {
10042
10043
  const props = {
10043
10044
  style,
10044
10045
  target,
10046
+ id,
10045
10047
  role: interactable ? 'button' : undefined,
10046
10048
  'aria-hidden': interactable ? undefined : true,
10047
10049
  className: classnames_default()((clickable_default()).clickable, className),
@@ -22692,13 +22694,13 @@ var fileInput_default = /*#__PURE__*/__webpack_require__.n(fileInput);
22692
22694
 
22693
22695
 
22694
22696
 
22695
- function Grow({
22697
+ const Grow = withForwardRef(function Grow({
22696
22698
  className,
22697
22699
  children,
22698
22700
  center = false,
22699
22701
  style,
22700
22702
  weight = 1
22701
- }) {
22703
+ }, ref) {
22702
22704
  // Variables
22703
22705
  // States
22704
22706
  // Refs
@@ -22707,6 +22709,7 @@ function Grow({
22707
22709
  // Other
22708
22710
  // Render Functions
22709
22711
  return /*#__PURE__*/external_react_.createElement("div", {
22712
+ ref: ref,
22710
22713
  className: classnames_default()((layout_default()).grow, {
22711
22714
  [(layout_default()).center]: center,
22712
22715
  [(layout_default()).weight0]: weight === 0,
@@ -22719,9 +22722,7 @@ function Grow({
22719
22722
  }, className),
22720
22723
  style: style
22721
22724
  }, children);
22722
- }
22723
- const Grow_tmp = withMemo(Grow, (layout_default()));
22724
-
22725
+ }, (layout_default()));
22725
22726
  // EXTERNAL MODULE: ./src/Components/Image/image.scss
22726
22727
  var Image_image = __webpack_require__(9782);
22727
22728
  var image_default = /*#__PURE__*/__webpack_require__.n(Image_image);
@@ -22958,10 +22959,10 @@ const MultipleFileInput = withMemo(function MultipleImageInput(_a) {
22958
22959
  style: style
22959
22960
  }, /*#__PURE__*/external_react_.createElement(Flex_tmp, {
22960
22961
  horizontal: true
22961
- }, !!label && /*#__PURE__*/external_react_.createElement(Grow_tmp, null, /*#__PURE__*/external_react_.createElement(tmp, null, label)), maxFiles > 1 && /*#__PURE__*/external_react_.createElement(InlineMemo, null, /*#__PURE__*/external_react_.createElement(tmp, null, value.length, "/", maxFiles))), /*#__PURE__*/external_react_.createElement(Flex_tmp, {
22962
+ }, !!label && /*#__PURE__*/external_react_.createElement(Grow, null, /*#__PURE__*/external_react_.createElement(tmp, null, label)), maxFiles > 1 && /*#__PURE__*/external_react_.createElement(InlineMemo, null, /*#__PURE__*/external_react_.createElement(tmp, null, value.length, "/", maxFiles))), /*#__PURE__*/external_react_.createElement(Flex_tmp, {
22962
22963
  horizontal: true,
22963
22964
  className: (fileInput_default()).previewContainer
22964
- }, value === null || value === void 0 ? void 0 : value.map((file, index) => /*#__PURE__*/external_react_.createElement(Grow_tmp, {
22965
+ }, value === null || value === void 0 ? void 0 : value.map((file, index) => /*#__PURE__*/external_react_.createElement(Grow, {
22965
22966
  className: (fileInput_default()).preview,
22966
22967
  center: true,
22967
22968
  key: file.data
@@ -22977,7 +22978,7 @@ const MultipleFileInput = withMemo(function MultipleImageInput(_a) {
22977
22978
  onClickData: index
22978
22979
  }, /*#__PURE__*/external_react_.createElement(Icon, {
22979
22980
  icon: free_solid_svg_icons_namespaceObject.faTimesCircle
22980
- }))))), /*#__PURE__*/external_react_.createElement(Grow_tmp, {
22981
+ }))))), /*#__PURE__*/external_react_.createElement(Grow, {
22981
22982
  className: classnames_default()((fileInput_default()).addFile, {
22982
22983
  [(fileInput_default()).hidden]: value.length >= maxFiles
22983
22984
  }),
@@ -23217,7 +23218,7 @@ const PasswordInput = withForwardRef(function PasswordInput(_a, ref) {
23217
23218
  horizontal: true,
23218
23219
  className: classnames_default()((passwordInput_default()).passwordInput, className),
23219
23220
  style: style
23220
- }, /*#__PURE__*/external_react_default().createElement(Grow_tmp, null, /*#__PURE__*/external_react_default().createElement(Input, PasswordInput_extends({}, props, {
23221
+ }, /*#__PURE__*/external_react_default().createElement(Grow, null, /*#__PURE__*/external_react_default().createElement(Input, PasswordInput_extends({}, props, {
23221
23222
  type: isVisible ? 'text' : 'password',
23222
23223
  ref: ref
23223
23224
  }))), /*#__PURE__*/external_react_default().createElement(ClickableMemo, {
@@ -23366,7 +23367,7 @@ const SearchSelectInput = withMemo(function SearchSelectInput({
23366
23367
  }, label) : null, /*#__PURE__*/external_react_.createElement(Flex_tmp, {
23367
23368
  className: (seachSelectInput_default()).inputContainer,
23368
23369
  horizontal: true
23369
- }, /*#__PURE__*/external_react_.createElement(InlineBlockMemo, null, values.map(renderOption)), /*#__PURE__*/external_react_.createElement(Grow_tmp, {
23370
+ }, /*#__PURE__*/external_react_.createElement(InlineBlockMemo, null, values.map(renderOption)), /*#__PURE__*/external_react_.createElement(Grow, {
23370
23371
  __allowChildren: "html"
23371
23372
  }, /*#__PURE__*/external_react_.createElement("input", {
23372
23373
  className: (seachSelectInput_default()).text,
@@ -27104,7 +27105,7 @@ const Submenu = withMemo(function Submenu({
27104
27105
  icon: icon,
27105
27106
  color: iconColor,
27106
27107
  className: (menu_default()).icon
27107
- }), /*#__PURE__*/external_react_default().createElement(Grow_tmp, null, /*#__PURE__*/external_react_default().createElement(tmp, null, label)), /*#__PURE__*/external_react_default().createElement(Icon, {
27108
+ }), /*#__PURE__*/external_react_default().createElement(Grow, null, /*#__PURE__*/external_react_default().createElement(tmp, null, label)), /*#__PURE__*/external_react_default().createElement(Icon, {
27108
27109
  icon: free_solid_svg_icons_namespaceObject.faChevronRight
27109
27110
  })), /*#__PURE__*/external_react_default().createElement(BlockMemo, {
27110
27111
  className: (menu_default()).container,
@@ -27215,7 +27216,9 @@ function Spoiler(_a) {
27215
27216
  style: style
27216
27217
  }, /*#__PURE__*/external_react_.createElement(Flex_tmp, {
27217
27218
  horizontal: true
27218
- }, /*#__PURE__*/external_react_.createElement(Grow_tmp, null, titleComponent), icon ? /*#__PURE__*/external_react_.createElement(Icon, {
27219
+ }, /*#__PURE__*/external_react_.createElement(Grow, {
27220
+ __allowChildren: "all"
27221
+ }, titleComponent), icon ? /*#__PURE__*/external_react_.createElement(Icon, {
27219
27222
  icon: icon,
27220
27223
  className: (spoiler_default()).icon
27221
27224
  }) : null), /*#__PURE__*/external_react_.createElement(BlockMemo, {
@@ -27226,7 +27229,7 @@ function Spoiler(_a) {
27226
27229
  }, children)));
27227
27230
  }
27228
27231
  // Need SpoilerMemo for autocompletion of phpstorm
27229
- const SpoilerMemo = withMemo(Spoiler, (spoiler_default()));
27232
+ const SpoilerMemo = withMemo(Spoiler, (spoiler_default()), "all");
27230
27233
 
27231
27234
  ;// CONCATENATED MODULE: ./src/Components/SpoilerList/useSpoilerGroup.ts
27232
27235