@ainias42/react-bootstrap-mobile 0.1.20 → 0.1.22

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.19
3
+ * @ainias42/react-bootstrap-mobile v0.1.21
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
@@ -271,7 +271,7 @@ class DateHelper {
271
271
  exports.DateHelper = DateHelper;
272
272
  DateHelper.FORMAT = {
273
273
  ISO_TIME: "%Y-%m-%dT%H:%M:%S",
274
- GERMAN: "%d.%m-%y %H:%M:%S"
274
+ GERMAN: "%d.%m.%y %H:%M:%S"
275
275
  };
276
276
  //# sourceMappingURL=DateHelper.js.map
277
277
 
@@ -1496,10 +1496,11 @@ var ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = __webpack_require__(7537);
1496
1496
  var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(3645);
1497
1497
  var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);
1498
1498
  // Module
1499
- ___CSS_LOADER_EXPORT___.push([module.id, `.input__ylsuY{width:100%}.input__ylsuY .label__Uty0i{display:block;font-weight:bold}.input__ylsuY .text__OJDZ5{width:100%;background-color:rgba(0,0,0,0);border:0;outline:none;padding:0;font-size:1rem}.material-design .input__ylsuY .text__OJDZ5{color:#212121;background-image:linear-gradient(to top, transparent 1px, #afafaf 1px);background-size:100% 2px;background-repeat:no-repeat;background-position:center bottom;padding-bottom:2px}.material-design .input__ylsuY .text__OJDZ5:read-only,.material-design .input__ylsuY .text__OJDZ5:read-only:focus{background-image:none;border-bottom:1px solid rgba(0,0,0,0)}.material-design .input__ylsuY .text__OJDZ5:focus{background-image:linear-gradient(var(--flavor-accent), var(--flavor-accent)),linear-gradient(to top, transparent 1px, #afafaf 1px)}.flat-design .input__ylsuY .text__OJDZ5{color:#1f1f21}.flat-design .input__ylsuY .text__OJDZ5,.flat-design .input__ylsuY .text__OJDZ5:focus{border-bottom:1px solid var(--border-light)}.input__ylsuY.hiddenInput__KSMQB .text__OJDZ5{background-image:none;border-bottom:1px solid rgba(0,0,0,0)}.input__ylsuY.hiddenInput__KSMQB.noFocusHint__bBtc8 .text__OJDZ5:focus{background-image:none;border-bottom:1px solid rgba(0,0,0,0)}`, "",{"version":3,"sources":["webpack://./src/Components/FormElements/Input/input.scss","webpack://./src/scss/_designMixin.scss"],"names":[],"mappings":"AAGA,cACE,UAAA,CAEA,4BACE,aAAA,CACA,gBAAA,CAGF,2BACE,UAAA,CACA,8BAAA,CACA,QAAA,CACA,YAAA,CACA,SAAA,CACA,cAAA,CCbS,4CDgBP,aAAA,CACA,sEAAA,CACA,wBAAA,CACA,2BAAA,CACA,iCAAA,CACA,kBAAA,CAEA,kHACE,qBAAA,CACA,qCAAA,CAGF,kDACE,kIAAA,CC7BK,wCDmCP,aAAA,CACA,sFACE,2CAAA,CAMJ,8CACE,qBAAA,CACA,qCAAA,CAKE,uEACE,qBAAA,CACA,qCAAA","sourcesContent":["@import \"../../../scss/variables\";\n@import \"../../../scss/designMixin\";\n\n.input {\n width: 100%;\n\n .label {\n display: block;\n font-weight: bold;\n }\n\n .text {\n width: 100%;\n background-color: transparent;\n border: 0;\n outline: none;\n padding: 0;\n font-size: 1rem;\n\n @include design($material) {\n color: #212121;\n background-image: linear-gradient(to top, transparent 1px, #afafaf 1px);\n background-size: 100% 2px;\n background-repeat: no-repeat;\n background-position: center bottom;\n padding-bottom: 2px;\n\n &:read-only, &:read-only:focus {\n background-image: none;\n border-bottom: 1px solid transparent;\n }\n\n &:focus {\n background-image: linear-gradient(var(--flavor-accent), var(--flavor-accent)),\n linear-gradient(to top, transparent 1px, #afafaf 1px);\n }\n }\n\n @include design($flat) {\n color: #1f1f21;\n &, &:focus {\n border-bottom: 1px solid var(--border-light);\n }\n }\n }\n\n &.hiddenInput {\n .text {\n background-image: none;\n border-bottom: 1px solid transparent;\n }\n\n &.noFocusHint {\n .text {\n &:focus {\n background-image: none;\n border-bottom: 1px solid transparent;\n }\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":""}]);
1499
+ ___CSS_LOADER_EXPORT___.push([module.id, `.input__ylsuY{width:100%}.input__ylsuY.inline__CuO0B{--basis: 50%;display:flex}.input__ylsuY.inline__CuO0B .label__Uty0i{display:inline-block;flex-grow:1;flex-shrink:0;flex-basis:var(--basis);font-weight:normal}.input__ylsuY.inline__CuO0B .text__OJDZ5{min-width:41px}.input__ylsuY .label__Uty0i{display:block;font-weight:bold}.input__ylsuY .text__OJDZ5{width:100%;background-color:rgba(0,0,0,0);border:0;outline:none;padding:0;font-size:1rem}.material-design .input__ylsuY .text__OJDZ5{color:#212121;background-image:linear-gradient(to top, transparent 1px, #afafaf 1px);background-size:100% 2px;background-repeat:no-repeat;background-position:center bottom;padding-bottom:2px}.material-design .input__ylsuY .text__OJDZ5:read-only,.material-design .input__ylsuY .text__OJDZ5:read-only:focus{background-image:none;border-bottom:1px solid rgba(0,0,0,0)}.material-design .input__ylsuY .text__OJDZ5:focus{background-image:linear-gradient(var(--flavor-accent), var(--flavor-accent)),linear-gradient(to top, transparent 1px, #afafaf 1px)}.flat-design .input__ylsuY .text__OJDZ5{color:#1f1f21}.flat-design .input__ylsuY .text__OJDZ5,.flat-design .input__ylsuY .text__OJDZ5:focus{border-bottom:1px solid var(--border-light)}.input__ylsuY.hiddenInput__KSMQB .text__OJDZ5{background-image:none;border-bottom:1px solid rgba(0,0,0,0)}.input__ylsuY.hiddenInput__KSMQB.noFocusHint__bBtc8 .text__OJDZ5:focus{background-image:none;border-bottom:1px solid rgba(0,0,0,0)}`, "",{"version":3,"sources":["webpack://./src/Components/FormElements/Input/input.scss","webpack://./src/scss/_designMixin.scss"],"names":[],"mappings":"AAGA,cACE,UAAA,CAEA,4BACE,YAAA,CACA,YAAA,CACA,0CACE,oBAAA,CACA,WAAA,CACA,aAAA,CACA,uBAAA,CACA,kBAAA,CAEF,yCAEE,cAAA,CAIJ,4BACE,aAAA,CACA,gBAAA,CAGF,2BACE,UAAA,CACA,8BAAA,CACA,QAAA,CACA,YAAA,CACA,SAAA,CACA,cAAA,CC7BS,4CDgCP,aAAA,CACA,sEAAA,CACA,wBAAA,CACA,2BAAA,CACA,iCAAA,CACA,kBAAA,CAEA,kHACE,qBAAA,CACA,qCAAA,CAGF,kDACE,kIAAA,CC7CK,wCDmDP,aAAA,CACA,sFACE,2CAAA,CAMJ,8CACE,qBAAA,CACA,qCAAA,CAKE,uEACE,qBAAA,CACA,qCAAA","sourcesContent":["@import \"../../../scss/variables\";\n@import \"../../../scss/designMixin\";\n\n.input {\n width: 100%;\n\n &.inline {\n --basis: 50%;\n display: flex;\n .label {\n display: inline-block;\n flex-grow: 1;\n flex-shrink: 0;\n flex-basis: var(--basis);\n font-weight: normal;\n }\n .text {\n // 3 numbers\n min-width: 41px;\n }\n }\n\n .label {\n display: block;\n font-weight: bold;\n }\n\n .text {\n width: 100%;\n background-color: transparent;\n border: 0;\n outline: none;\n padding: 0;\n font-size: 1rem;\n\n @include design($material) {\n color: #212121;\n background-image: linear-gradient(to top, transparent 1px, #afafaf 1px);\n background-size: 100% 2px;\n background-repeat: no-repeat;\n background-position: center bottom;\n padding-bottom: 2px;\n\n &:read-only, &:read-only:focus {\n background-image: none;\n border-bottom: 1px solid transparent;\n }\n\n &:focus {\n background-image: linear-gradient(var(--flavor-accent), var(--flavor-accent)),\n linear-gradient(to top, transparent 1px, #afafaf 1px);\n }\n }\n\n @include design($flat) {\n color: #1f1f21;\n &, &:focus {\n border-bottom: 1px solid var(--border-light);\n }\n }\n }\n\n &.hiddenInput {\n .text {\n background-image: none;\n border-bottom: 1px solid transparent;\n }\n\n &.noFocusHint {\n .text {\n &:focus {\n background-image: none;\n border-bottom: 1px solid transparent;\n }\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":""}]);
1500
1500
  // Exports
1501
1501
  ___CSS_LOADER_EXPORT___.locals = {
1502
1502
  "input": `input__ylsuY`,
1503
+ "inline": `inline__CuO0B`,
1503
1504
  "label": `label__Uty0i`,
1504
1505
  "text": `text__OJDZ5`,
1505
1506
  "hiddenInput": `hiddenInput__KSMQB`,
@@ -9669,7 +9670,7 @@ __webpack_require__.d(__webpack_exports__, {
9669
9670
  TabBarButton: () => (/* reexport */ TabBarButtonMemo),
9670
9671
  Table: () => (/* reexport */ Table_tmp),
9671
9672
  Text: () => (/* reexport */ tmp),
9672
- Textarea: () => (/* reexport */ TextareaMemo),
9673
+ Textarea: () => (/* reexport */ Textarea),
9673
9674
  Toast: () => (/* reexport */ ToastMemo),
9674
9675
  ToastContainer: () => (/* reexport */ ToastContainerMemo),
9675
9676
  TopBar: () => (/* reexport */ TopBarMemo),
@@ -9894,12 +9895,13 @@ function Clickable(_a, ref) {
9894
9895
  children,
9895
9896
  style,
9896
9897
  href,
9898
+ target,
9897
9899
  interactable = true,
9898
9900
  preventDefault = false,
9899
9901
  stopPropagation = true,
9900
9902
  useReactOnMouseLeave = false
9901
9903
  } = _a,
9902
- clickData = Clickable_rest(_a, ["className", "children", "style", "href", "interactable", "preventDefault", "stopPropagation", "useReactOnMouseLeave"]);
9904
+ clickData = Clickable_rest(_a, ["className", "children", "style", "href", "target", "interactable", "preventDefault", "stopPropagation", "useReactOnMouseLeave"]);
9903
9905
  // States
9904
9906
  // Refs
9905
9907
  const clickableRef = useComposedRef(ref);
@@ -10039,6 +10041,7 @@ function Clickable(_a, ref) {
10039
10041
  // Render Functions
10040
10042
  const props = {
10041
10043
  style,
10044
+ target,
10042
10045
  role: interactable ? 'button' : undefined,
10043
10046
  'aria-hidden': interactable ? undefined : true,
10044
10047
  className: classnames_default()((clickable_default()).clickable, className),
@@ -22915,10 +22918,11 @@ const MultipleFileInput = withMemo(function MultipleImageInput(_a) {
22915
22918
  }), [onNewFiles]);
22916
22919
  const onDragOver = (0,external_react_.useCallback)(e => e.preventDefault(), []);
22917
22920
  const clickOnFile = (0,external_react_.useCallback)((_, index) => {
22918
- if (!allowOverride || !inputRef.current) {
22921
+ if (index !== undefined && !allowOverride || !inputRef.current) {
22919
22922
  return;
22920
22923
  }
22921
22924
  indexRef.current = index;
22925
+ console.log("LOG-d inputRef dispatch", inputRef.current);
22922
22926
  inputRef.current.dispatchEvent(new MouseEvent("click"));
22923
22927
  }, [allowOverride]);
22924
22928
  // Effects
@@ -23080,9 +23084,10 @@ const Input = withForwardRef(function Input(_a, ref) {
23080
23084
  style,
23081
23085
  onEnter,
23082
23086
  onKeyDown,
23087
+ inline = false,
23083
23088
  onChangeText
23084
23089
  } = _a,
23085
- otherProps = Input_rest(_a, ["label", "className", "style", "onEnter", "onKeyDown", "onChangeText"]);
23090
+ otherProps = Input_rest(_a, ["label", "className", "style", "onEnter", "onKeyDown", "inline", "onChangeText"]);
23086
23091
  // States
23087
23092
  // Refs
23088
23093
  const innerRef = useComposedRef(ref);
@@ -23110,7 +23115,9 @@ const Input = withForwardRef(function Input(_a, ref) {
23110
23115
  /*#__PURE__*/
23111
23116
  // eslint-disable-next-line jsx-a11y/label-has-associated-control
23112
23117
  external_react_.createElement("label", {
23113
- className: classnames_default()((input_default()).input, className),
23118
+ className: classnames_default()((input_default()).input, {
23119
+ [(input_default()).inline]: inline
23120
+ }, className),
23114
23121
  style: style
23115
23122
  }, label ? /*#__PURE__*/external_react_.createElement("span", {
23116
23123
  className: (input_default()).label
@@ -23582,21 +23589,28 @@ var Textarea_rest = undefined && undefined.__rest || function (s, e) {
23582
23589
 
23583
23590
 
23584
23591
 
23585
- function Textarea(_a) {
23586
- // Variables
23592
+
23593
+
23594
+ const Textarea = withForwardRef(function Textarea(_a, ref) {
23587
23595
  var {
23588
23596
  label,
23589
23597
  className,
23590
23598
  style,
23591
23599
  onKeyUp,
23592
23600
  onChangeText,
23593
- onEnter
23601
+ onEnter,
23602
+ onEscape,
23603
+ textareaStyles,
23604
+ containerRef
23594
23605
  } = _a,
23595
- otherProps = Textarea_rest(_a, ["label", "className", "style", "onKeyUp", "onChangeText", "onEnter"]);
23596
- // States
23606
+ otherProps = Textarea_rest(_a, ["label", "className", "style", "onKeyUp", "onChangeText", "onEnter", "onEscape", "textareaStyles", "containerRef"]);
23597
23607
  // Refs
23608
+ const innerRef = useComposedRef(ref);
23609
+ // Variables
23610
+ // States
23598
23611
  // Callbacks
23599
- const onChangeWithData = useListener('onChange', otherProps);
23612
+ const [onChangeWithData, otherPropsWithoutOnchange] = useListenerWithExtractedProps('onChange', otherProps);
23613
+ const [onChangeDone, otherPropsWithoutData] = useListenerWithExtractedProps('onChangeDone', otherPropsWithoutOnchange);
23600
23614
  const onChange = (0,external_react_.useCallback)(e => {
23601
23615
  if (onChangeText) {
23602
23616
  onChangeText(e.target.value);
@@ -23610,24 +23624,28 @@ function Textarea(_a) {
23610
23624
  if (onEnter && e.key === 'Enter' && !e.defaultPrevented) {
23611
23625
  onEnter(e.target.value);
23612
23626
  }
23613
- }, [onEnter, onKeyUp]);
23627
+ if (onEscape && e.key === 'Escape' && !e.defaultPrevented) {
23628
+ onEscape(e.target.value);
23629
+ }
23630
+ }, [onEnter, onEscape, onKeyUp]);
23614
23631
  // Effects
23632
+ useOnChangeDone(onChangeDone, innerRef);
23615
23633
  // Other
23616
23634
  // Render Functions
23617
23635
  return /*#__PURE__*/external_react_.createElement("label", {
23618
23636
  className: classnames_default()((textarea_default()).container, className),
23619
- style: style
23637
+ style: style,
23638
+ ref: containerRef
23620
23639
  }, label ? /*#__PURE__*/external_react_.createElement("span", {
23621
23640
  className: (textarea_default()).label
23622
- }, label) : null, /*#__PURE__*/external_react_.createElement("textarea", Textarea_extends({}, otherProps, {
23641
+ }, label) : null, /*#__PURE__*/external_react_.createElement("textarea", Textarea_extends({}, otherPropsWithoutData, {
23642
+ style: textareaStyles,
23623
23643
  onKeyUp: realOnKeyPress,
23624
23644
  className: (textarea_default()).textarea,
23625
- onChange: onChange
23645
+ onChange: onChange,
23646
+ ref: innerRef
23626
23647
  })));
23627
- }
23628
- // Need TextareaMemo for autocompletion of phpstorm
23629
- const TextareaMemo = withMemo(Textarea, (textarea_default()));
23630
-
23648
+ }, (textarea_default()));
23631
23649
  ;// CONCATENATED MODULE: ./src/Components/FullScreen/FullScreen.tsx
23632
23650
  var FullScreen_rest = undefined && undefined.__rest || function (s, e) {
23633
23651
  var t = {};