@ainias42/react-bootstrap-mobile 0.1.28 → 0.1.30

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.
@@ -12,6 +12,8 @@ let pathsToProjects = [
12
12
  // '/home/silas/Projekte/web/cordova-sites',
13
13
  "/Users/sguenter/Projekte/Privat/games",
14
14
  "/Users/sguenter/Projekte/Privat/dnd",
15
+ "/Users/sguenter/Projekte/Privat/dndSave",
16
+ "/Users/sguenter/Projekte/Privat/bat",
15
17
  "/Users/sguenter/Projekte/Privat/react-windows",
16
18
  "/Users/sguenter/Projekte/Privat/cordova-sites"
17
19
  ];
@@ -1,6 +1,6 @@
1
1
  /*!
2
2
  *
3
- * @ainias42/react-bootstrap-mobile v0.1.27
3
+ * @ainias42/react-bootstrap-mobile v0.1.29
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
@@ -1366,7 +1366,7 @@ var ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = __webpack_require__(7537);
1366
1366
  var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3645);
1367
1367
  var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);
1368
1368
  // Module
1369
- ___CSS_LOADER_EXPORT___.push([module.id, `.dialogBackground__GkFEH{background-color:#fff;padding:.5rem}.dialogBackground__GkFEH .title__ThSfn{margin:0 0 .8rem}`, "",{"version":3,"sources":["webpack://./src/Components/Dialog/dialogBackground.scss"],"names":[],"mappings":"AAAA,yBACE,qBAAA,CACA,aAAA,CAEA,uCACE,gBAAA","sourcesContent":[".dialogBackground {\n background-color: white;\n padding: 0.5rem;\n\n .title {\n margin: 0 0 0.8rem;\n }\n}\n"],"sourceRoot":""}]);
1369
+ ___CSS_LOADER_EXPORT___.push([module.id, `.dialogBackground__GkFEH{background-color:#fff;padding:.5rem;max-height:80vh;overflow:auto}.dialogBackground__GkFEH .title__ThSfn{margin:0 0 .8rem}`, "",{"version":3,"sources":["webpack://./src/Components/Dialog/dialogBackground.scss"],"names":[],"mappings":"AAAA,yBACE,qBAAA,CACA,aAAA,CACA,eAAA,CACA,aAAA,CAEA,uCACE,gBAAA","sourcesContent":[".dialogBackground {\n background-color: white;\n padding: 0.5rem;\n max-height: 80vh;\n overflow: auto;\n\n .title {\n margin: 0 0 0.8rem;\n }\n}\n"],"sourceRoot":""}]);
1370
1370
  // Exports
1371
1371
  ___CSS_LOADER_EXPORT___.locals = {
1372
1372
  "dialogBackground": `dialogBackground__GkFEH`,
@@ -2270,7 +2270,7 @@ var ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = __webpack_require__(7537);
2270
2270
  var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3645);
2271
2271
  var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);
2272
2272
  // Module
2273
- ___CSS_LOADER_EXPORT___.push([module.id, `:root{--text-primary-default-color: #18181B;--text-prmary: #18181B;--text-secondary: #71717a;--text-tertiary: #A1A1AA}.text__i2YZm{display:inline}.text__i2YZm.block__DZ4JB{display:block}.text__i2YZm.heading__Nz99v{font-weight:bold}.text__i2YZm.primaryDefault__gAGTo{color:var(--text-primary-default-color)}.text__i2YZm.primary__SmPhq{color:var(--text-primary)}.text__i2YZm.secondary__XavRC{color:var(--text-secondary)}.text__i2YZm.tertiary__E1R6g{color:var(--text-tertiary)}.text__i2YZm.xsmall__sZEua{font-size:.75rem;line-height:1rem}.text__i2YZm.small__sMSX7{font-size:.875rem;line-height:1.25rem}.text__i2YZm.medium__LyGme{font-size:1rem;line-height:1.5rem}.text__i2YZm.large__AQ1i9{font-size:1.125rem;line-height:1.75}.text__i2YZm.xlarge__CkjbI{font-size:1.25rem;line-height:1.75rem}.text__i2YZm.xxlarge__VxTgH{font-size:1.5rem;line-height:2rem}`, "",{"version":3,"sources":["webpack://./src/Components/Text/text.scss"],"names":[],"mappings":"AAIA,MACE,qCAAA,CACA,sBAAA,CACA,yBAAA,CACA,wBAAA,CAGF,aACE,cAAA,CAEA,0BACE,aAAA,CAGF,4BACE,gBAAA,CAGF,mCACE,uCAAA,CAGF,4BACE,yBAAA,CAGF,8BACE,2BAAA,CAGF,6BACE,0BAAA,CAGF,2BACE,gBAAA,CACA,gBAAA,CAGF,0BACE,iBAAA,CACA,mBAAA,CAGF,2BACE,cAAA,CACA,kBAAA,CAGF,0BACE,kBAAA,CACA,gBAAA,CAGF,2BACE,iBAAA,CACA,mBAAA,CAGF,4BACE,gBAAA,CACA,gBAAA","sourcesContent":["$primaryColor: #18181B; // Gray-900\n$secondaryColor: #71717a; // Gray-500\n$tertiaryColor: #A1A1AA; // Gray-400\n\n:root {\n --text-primary-default-color: #{$primaryColor};\n --text-prmary: #{$primaryColor};\n --text-secondary: #{$secondaryColor};\n --text-tertiary: #{$tertiaryColor};\n}\n\n.text {\n display: inline;\n\n &.block {\n display: block;\n }\n\n &.heading {\n font-weight: bold;\n }\n\n &.primaryDefault {\n color: var(--text-primary-default-color)\n }\n\n &.primary {\n color: var(--text-primary)\n }\n\n &.secondary {\n color: var(--text-secondary);\n }\n\n &.tertiary {\n color: var(--text-tertiary);\n }\n\n &.xsmall {\n font-size: 0.75rem;\n line-height: 1rem;\n }\n\n &.small {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n\n &.medium {\n font-size: 1rem;\n line-height: 1.5rem;\n }\n\n &.large {\n font-size: 1.125rem;\n line-height: 1.75;\n }\n\n &.xlarge {\n font-size: 1.25rem;\n line-height: 1.75rem;\n }\n\n &.xxlarge {\n font-size: 1.5rem;\n line-height: 2rem;\n }\n}\n"],"sourceRoot":""}]);
2273
+ ___CSS_LOADER_EXPORT___.push([module.id, `:root{--text-primary-default-color: #18181B;--text-prmary: #18181B;--text-secondary: #71717a;--text-tertiary: #A1A1AA}.text__i2YZm{display:inline}.text__i2YZm.block__DZ4JB{display:block}.text__i2YZm.heading__Nz99v{font-weight:bold}.text__i2YZm.primaryDefault__gAGTo{color:var(--text-primary-default-color)}.text__i2YZm.primary__SmPhq{color:var(--text-primary)}.text__i2YZm.secondary__XavRC{color:var(--text-secondary)}.text__i2YZm.tertiary__E1R6g{color:var(--text-tertiary)}.text__i2YZm.xsmall__sZEua{font-size:.75rem;line-height:1rem}.text__i2YZm.small__sMSX7{font-size:.875rem;line-height:1.25rem}.text__i2YZm.medium__LyGme{font-size:1rem;line-height:1.5rem}.text__i2YZm.large__AQ1i9{font-size:1.125rem;line-height:1.75}.text__i2YZm.xlarge__CkjbI{font-size:1.25rem;line-height:1.75rem}.text__i2YZm.xxlarge__VxTgH{font-size:1.5rem;line-height:2rem}.text__i2YZm.emphasized__RdFBM{font-weight:bold}`, "",{"version":3,"sources":["webpack://./src/Components/Text/text.scss"],"names":[],"mappings":"AAIA,MACE,qCAAA,CACA,sBAAA,CACA,yBAAA,CACA,wBAAA,CAGF,aACE,cAAA,CAEA,0BACE,aAAA,CAGF,4BACE,gBAAA,CAGF,mCACE,uCAAA,CAGF,4BACE,yBAAA,CAGF,8BACE,2BAAA,CAGF,6BACE,0BAAA,CAGF,2BACE,gBAAA,CACA,gBAAA,CAGF,0BACE,iBAAA,CACA,mBAAA,CAGF,2BACE,cAAA,CACA,kBAAA,CAGF,0BACE,kBAAA,CACA,gBAAA,CAGF,2BACE,iBAAA,CACA,mBAAA,CAGF,4BACE,gBAAA,CACA,gBAAA,CAGF,+BACE,gBAAA","sourcesContent":["$primaryColor: #18181B; // Gray-900\n$secondaryColor: #71717a; // Gray-500\n$tertiaryColor: #A1A1AA; // Gray-400\n\n:root {\n --text-primary-default-color: #{$primaryColor};\n --text-prmary: #{$primaryColor};\n --text-secondary: #{$secondaryColor};\n --text-tertiary: #{$tertiaryColor};\n}\n\n.text {\n display: inline;\n\n &.block {\n display: block;\n }\n\n &.heading {\n font-weight: bold;\n }\n\n &.primaryDefault {\n color: var(--text-primary-default-color)\n }\n\n &.primary {\n color: var(--text-primary)\n }\n\n &.secondary {\n color: var(--text-secondary);\n }\n\n &.tertiary {\n color: var(--text-tertiary);\n }\n\n &.xsmall {\n font-size: 0.75rem;\n line-height: 1rem;\n }\n\n &.small {\n font-size: 0.875rem;\n line-height: 1.25rem;\n }\n\n &.medium {\n font-size: 1rem;\n line-height: 1.5rem;\n }\n\n &.large {\n font-size: 1.125rem;\n line-height: 1.75;\n }\n\n &.xlarge {\n font-size: 1.25rem;\n line-height: 1.75rem;\n }\n\n &.xxlarge {\n font-size: 1.5rem;\n line-height: 2rem;\n }\n\n &.emphasized {\n font-weight: bold;\n }\n}\n"],"sourceRoot":""}]);
2274
2274
  // Exports
2275
2275
  ___CSS_LOADER_EXPORT___.locals = {
2276
2276
  "text": `text__i2YZm`,
@@ -2285,7 +2285,8 @@ ___CSS_LOADER_EXPORT___.locals = {
2285
2285
  "medium": `medium__LyGme`,
2286
2286
  "large": `large__AQ1i9`,
2287
2287
  "xlarge": `xlarge__CkjbI`,
2288
- "xxlarge": `xxlarge__VxTgH`
2288
+ "xxlarge": `xxlarge__VxTgH`,
2289
+ "emphasized": `emphasized__RdFBM`
2289
2290
  };
2290
2291
  module.exports = ___CSS_LOADER_EXPORT___;
2291
2292
 
@@ -9627,7 +9628,7 @@ __webpack_require__.d(__webpack_exports__, {
9627
9628
  FileInput: () => (/* reexport */ FileInput),
9628
9629
  Flavor: () => (/* reexport */ Flavor),
9629
9630
  Flex: () => (/* reexport */ Flex_tmp),
9630
- FullScreen: () => (/* reexport */ FullScreenMemo),
9631
+ FullScreen: () => (/* reexport */ FullScreen),
9631
9632
  Grid: () => (/* reexport */ GridMemo),
9632
9633
  GridItem: () => (/* reexport */ GridItemMemo),
9633
9634
  Grow: () => (/* reexport */ Grow),
@@ -10372,10 +10373,11 @@ function Text(_a) {
10372
10373
  children,
10373
10374
  block = false,
10374
10375
  prio,
10376
+ emphasized = false,
10375
10377
  size = TEXT_SIZE.medium,
10376
10378
  as = 'span'
10377
10379
  } = _a,
10378
- props = Text_rest(_a, ["className", "children", "block", "prio", "size", "as"]);
10380
+ props = Text_rest(_a, ["className", "children", "block", "prio", "emphasized", "size", "as"]);
10379
10381
  // Variables
10380
10382
  prio = prio !== null && prio !== void 0 ? prio : (text_default()).primaryDefault;
10381
10383
  // States
@@ -10395,7 +10397,8 @@ function Text(_a) {
10395
10397
  as: as
10396
10398
  }, props, {
10397
10399
  className: classnames_default()((text_default()).text, {
10398
- [(text_default()).block]: block
10400
+ [(text_default()).block]: block,
10401
+ [(text_default()).emphasized]: emphasized
10399
10402
  }, prio, size, className)
10400
10403
  }), children);
10401
10404
  }
@@ -22965,23 +22968,26 @@ const MultipleFileInput = withMemo(function MultipleImageInput(_a) {
22965
22968
  }, !!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, {
22966
22969
  horizontal: true,
22967
22970
  className: (fileInput_default()).previewContainer
22968
- }, value === null || value === void 0 ? void 0 : value.map((file, index) => /*#__PURE__*/external_react_.createElement(Grow, {
22969
- className: (fileInput_default()).preview,
22970
- center: true,
22971
- key: file.data
22972
- }, /*#__PURE__*/external_react_.createElement(ClickableMemo, {
22973
- onDrop: onDrop,
22974
- onDragOver: onDragOver,
22975
- onDropData: index,
22976
- onClick: clickOnFile,
22977
- onClickData: index
22978
- }, renderFile(file), showDeleteButton && /*#__PURE__*/external_react_.createElement(ClickableMemo, {
22979
- className: (fileInput_default()).previewRemove,
22980
- onClick: removeFile,
22981
- onClickData: index
22982
- }, /*#__PURE__*/external_react_.createElement(Icon, {
22983
- icon: free_solid_svg_icons_namespaceObject.faTimesCircle
22984
- }))))), /*#__PURE__*/external_react_.createElement(Grow, {
22971
+ }, value === null || value === void 0 ? void 0 : value.map((file, index) => {
22972
+ console.log("LOG-d file", file);
22973
+ return /*#__PURE__*/external_react_.createElement(Grow, {
22974
+ className: (fileInput_default()).preview,
22975
+ center: true,
22976
+ key: file.data
22977
+ }, /*#__PURE__*/external_react_.createElement(ClickableMemo, {
22978
+ onDrop: onDrop,
22979
+ onDragOver: onDragOver,
22980
+ onDropData: index,
22981
+ onClick: clickOnFile,
22982
+ onClickData: index
22983
+ }, renderFile(file), showDeleteButton && /*#__PURE__*/external_react_.createElement(ClickableMemo, {
22984
+ className: (fileInput_default()).previewRemove,
22985
+ onClick: removeFile,
22986
+ onClickData: index
22987
+ }, /*#__PURE__*/external_react_.createElement(Icon, {
22988
+ icon: free_solid_svg_icons_namespaceObject.faTimesCircle
22989
+ }))));
22990
+ }), /*#__PURE__*/external_react_.createElement(Grow, {
22985
22991
  className: classnames_default()((fileInput_default()).addFile, {
22986
22992
  [(fileInput_default()).hidden]: value.length >= maxFiles
22987
22993
  }),
@@ -23094,31 +23100,56 @@ const Input = withForwardRef(function Input(_a, ref) {
23094
23100
  label,
23095
23101
  className,
23096
23102
  style,
23097
- onEnter,
23098
23103
  onKeyDown,
23099
23104
  inline = false,
23100
- onChangeText
23105
+ value
23101
23106
  } = _a,
23102
- otherProps = Input_rest(_a, ["label", "className", "style", "onEnter", "onKeyDown", "inline", "onChangeText"]);
23107
+ otherProps = Input_rest(_a, ["label", "className", "style", "onKeyDown", "inline", "value"]);
23103
23108
  // States
23109
+ const usedValue = (0,external_react_.useMemo)(() => {
23110
+ if (otherProps.type !== "number" || typeof value === "number") {
23111
+ return value;
23112
+ }
23113
+ if (typeof value === "string") {
23114
+ if (!Number.isNaN(Number(value))) {
23115
+ // Do not parse to allow ., and so on
23116
+ return value;
23117
+ }
23118
+ if (!Number.isNaN(parseFloat(value))) {
23119
+ return parseFloat(value);
23120
+ }
23121
+ }
23122
+ return "";
23123
+ }, [value]);
23104
23124
  // Refs
23105
23125
  const innerRef = useComposedRef(ref);
23106
23126
  // Callbacks
23107
23127
  const [onChangeWithData, otherPropsWithoutOnchange] = useListenerWithExtractedProps('onChange', otherProps);
23108
23128
  const onChange = (0,external_react_.useCallback)(e => {
23109
- if (onChangeText) {
23110
- onChangeText(e.target.value);
23129
+ if (otherProps.onChangeText) {
23130
+ if (otherProps.type === "number") {
23131
+ const val = !Number.isNaN(Number(e.target.value)) ? e.target.value : !Number.isNaN(parseFloat(e.target.value)) ? String(parseFloat(e.target.value)) : "";
23132
+ otherProps.onChangeText(val);
23133
+ } else {
23134
+ otherProps.onChangeText(e.target.value);
23135
+ }
23111
23136
  }
23112
23137
  onChangeWithData(e);
23113
- }, [onChangeWithData, onChangeText]);
23138
+ }, [onChangeWithData, otherProps.onChangeText, otherProps.type]);
23114
23139
  const [onBlur, otherPropsWithoutBlur] = useListenerWithExtractedProps('onBlur', otherPropsWithoutOnchange);
23115
23140
  const [onChangeDone, otherPropsWithoutData] = useListenerWithExtractedProps('onChangeDone', otherPropsWithoutBlur);
23116
23141
  const realOnKeyDown = (0,external_react_.useCallback)(e => {
23117
23142
  onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
23118
- if (onEnter && e.key === 'Enter' && !e.defaultPrevented) {
23119
- onEnter(e.target.value);
23143
+ if (otherProps.onEnter && e.key === 'Enter' && !e.defaultPrevented) {
23144
+ if (otherProps.type === "number") {
23145
+ const stringValue = e.target.value;
23146
+ const val = !Number.isNaN(Number(stringValue)) ? stringValue : !Number.isNaN(parseFloat(stringValue)) ? String(parseFloat(stringValue)) : "";
23147
+ otherProps.onEnter(val);
23148
+ } else {
23149
+ otherProps.onEnter(e.target.value);
23150
+ }
23120
23151
  }
23121
- }, [onEnter, onKeyDown]);
23152
+ }, [otherProps.onEnter, onKeyDown, otherProps.type]);
23122
23153
  // Effects
23123
23154
  useOnChangeDone(onChangeDone, innerRef);
23124
23155
  // Other
@@ -23133,7 +23164,11 @@ const Input = withForwardRef(function Input(_a, ref) {
23133
23164
  style: style
23134
23165
  }, label ? /*#__PURE__*/external_react_.createElement("span", {
23135
23166
  className: (input_default()).label
23136
- }, label) : null, /*#__PURE__*/external_react_.createElement("input", Input_extends({}, otherPropsWithoutData, {
23167
+ }, label) : null, /*#__PURE__*/external_react_.createElement("input", Input_extends({
23168
+ inputMode: otherProps.type === "number" ? "numeric" : undefined
23169
+ }, otherPropsWithoutData, {
23170
+ value: usedValue,
23171
+ type: otherProps.type === "number" ? "text" : otherProps.type,
23137
23172
  ref: innerRef,
23138
23173
  className: (input_default()).text,
23139
23174
  onBlur: onBlur,
@@ -23231,9 +23266,6 @@ const PasswordInput = withForwardRef(function PasswordInput(_a, ref) {
23231
23266
  icon: isVisible ? free_solid_svg_icons_namespaceObject.faEye : free_solid_svg_icons_namespaceObject.faEyeSlash
23232
23267
  })));
23233
23268
  }, (passwordInput_default()));
23234
- // // Need PasswordInputMemo for autocompletion of phpstorm
23235
- // const PasswordInputMemo = withMemo(PasswordInput);
23236
- // export { PasswordInputMemo as PasswordInput };
23237
23269
  // EXTERNAL MODULE: ./src/Components/FormElements/SearchSelectInput/seachSelectInput.scss
23238
23270
  var seachSelectInput = __webpack_require__(2399);
23239
23271
  var seachSelectInput_default = /*#__PURE__*/__webpack_require__.n(seachSelectInput);
@@ -23671,7 +23703,7 @@ var FullScreen_rest = undefined && undefined.__rest || function (s, e) {
23671
23703
 
23672
23704
 
23673
23705
 
23674
- function FullScreen(_a) {
23706
+ const FullScreen = withMemo(function FullScreen(_a) {
23675
23707
  // Variables
23676
23708
  var {
23677
23709
  children,
@@ -23733,10 +23765,7 @@ function FullScreen(_a) {
23733
23765
  // eslint-disable-next-line @typescript-eslint/ban-ts-comment
23734
23766
  // @ts-ignore
23735
23767
  return /*#__PURE__*/external_react_.createElement(element, props, children);
23736
- }
23737
- // Need FullScreenMemo for autocompletion of phpstorm
23738
- const FullScreenMemo = withMemo(FullScreen);
23739
-
23768
+ });
23740
23769
  ;// CONCATENATED MODULE: ./src/Components/Hooks/useBreakpoint.ts
23741
23770
 
23742
23771