@ainias42/react-bootstrap-mobile 0.1.28 → 0.1.29
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.
- package/bin/updateCopies.js +2 -0
- package/dist/bootstrapReactMobile.js +59 -42
- package/dist/bootstrapReactMobile.js.map +1 -1
- package/dist/src/Components/FormElements/Input/Input.d.ts +11 -3
- package/dist/src/Components/FormElements/Input/PasswordInput/PasswordInput.d.ts +4 -1
- package/dist/src/Components/FullScreen/FullScreen.d.ts +1 -3
- package/dist/src/Components/Text/Text.d.ts +2 -1
- package/package.json +1 -1
- package/src/Components/Dialog/dialogBackground.scss +2 -0
- package/src/Components/FormElements/CheckBox/Checkbox.tsx +0 -1
- package/src/Components/FormElements/Input/FileInput/MultipleFileInput.tsx +4 -3
- package/src/Components/FormElements/Input/Input.tsx +121 -73
- package/src/Components/FormElements/Input/PasswordInput/PasswordInput.tsx +5 -6
- package/src/Components/FullScreen/FullScreen.tsx +2 -5
- package/src/Components/Layout/Grid/Grid.tsx +0 -1
- package/src/Components/Text/Text.tsx +3 -2
- package/src/Components/Text/text.scss +4 -0
package/bin/updateCopies.js
CHANGED
|
@@ -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.
|
|
3
|
+
* @ainias42/react-bootstrap-mobile v0.1.28
|
|
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 */
|
|
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) =>
|
|
22969
|
-
|
|
22970
|
-
|
|
22971
|
-
|
|
22972
|
-
|
|
22973
|
-
|
|
22974
|
-
|
|
22975
|
-
|
|
22976
|
-
|
|
22977
|
-
|
|
22978
|
-
|
|
22979
|
-
|
|
22980
|
-
|
|
22981
|
-
|
|
22982
|
-
|
|
22983
|
-
|
|
22984
|
-
|
|
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,48 @@ const Input = withForwardRef(function Input(_a, ref) {
|
|
|
23094
23100
|
label,
|
|
23095
23101
|
className,
|
|
23096
23102
|
style,
|
|
23097
|
-
onEnter,
|
|
23098
23103
|
onKeyDown,
|
|
23099
|
-
inline = false
|
|
23100
|
-
onChangeText
|
|
23104
|
+
inline = false
|
|
23101
23105
|
} = _a,
|
|
23102
|
-
otherProps = Input_rest(_a, ["label", "className", "style", "
|
|
23106
|
+
otherProps = Input_rest(_a, ["label", "className", "style", "onKeyDown", "inline"]);
|
|
23103
23107
|
// States
|
|
23104
23108
|
// Refs
|
|
23105
23109
|
const innerRef = useComposedRef(ref);
|
|
23110
|
+
const lastValueRef = (0,external_react_.useRef)(NaN);
|
|
23106
23111
|
// Callbacks
|
|
23107
23112
|
const [onChangeWithData, otherPropsWithoutOnchange] = useListenerWithExtractedProps('onChange', otherProps);
|
|
23108
23113
|
const onChange = (0,external_react_.useCallback)(e => {
|
|
23109
|
-
if (onChangeText) {
|
|
23110
|
-
|
|
23114
|
+
if (otherProps.onChangeText) {
|
|
23115
|
+
if (otherProps.type === "number") {
|
|
23116
|
+
if (Number.isNaN(e.target.valueAsNumber)) {
|
|
23117
|
+
otherProps.onChangeText(lastValueRef.current);
|
|
23118
|
+
} else {
|
|
23119
|
+
otherProps.onChangeText(e.target.valueAsNumber);
|
|
23120
|
+
lastValueRef.current = e.target.valueAsNumber;
|
|
23121
|
+
}
|
|
23122
|
+
} else {
|
|
23123
|
+
otherProps.onChangeText(e.target.value);
|
|
23124
|
+
}
|
|
23111
23125
|
}
|
|
23112
23126
|
onChangeWithData(e);
|
|
23113
|
-
}, [onChangeWithData, onChangeText]);
|
|
23127
|
+
}, [onChangeWithData, otherProps.onChangeText, otherProps.type]);
|
|
23114
23128
|
const [onBlur, otherPropsWithoutBlur] = useListenerWithExtractedProps('onBlur', otherPropsWithoutOnchange);
|
|
23115
23129
|
const [onChangeDone, otherPropsWithoutData] = useListenerWithExtractedProps('onChangeDone', otherPropsWithoutBlur);
|
|
23116
23130
|
const realOnKeyDown = (0,external_react_.useCallback)(e => {
|
|
23117
23131
|
onKeyDown === null || onKeyDown === void 0 ? void 0 : onKeyDown(e);
|
|
23118
|
-
if (onEnter && e.key === 'Enter' && !e.defaultPrevented) {
|
|
23119
|
-
|
|
23132
|
+
if (otherProps.onEnter && e.key === 'Enter' && !e.defaultPrevented) {
|
|
23133
|
+
if (otherProps.type === "number") {
|
|
23134
|
+
if (Number.isNaN(e.target.valueAsNumber)) {
|
|
23135
|
+
otherProps.onEnter(lastValueRef.current);
|
|
23136
|
+
} else {
|
|
23137
|
+
otherProps.onEnter(e.target.valueAsNumber);
|
|
23138
|
+
lastValueRef.current = e.target.valueAsNumber;
|
|
23139
|
+
}
|
|
23140
|
+
} else {
|
|
23141
|
+
otherProps.onEnter(e.target.value);
|
|
23142
|
+
}
|
|
23120
23143
|
}
|
|
23121
|
-
}, [onEnter, onKeyDown]);
|
|
23144
|
+
}, [otherProps.onEnter, onKeyDown, otherProps.type]);
|
|
23122
23145
|
// Effects
|
|
23123
23146
|
useOnChangeDone(onChangeDone, innerRef);
|
|
23124
23147
|
// Other
|
|
@@ -23231,9 +23254,6 @@ const PasswordInput = withForwardRef(function PasswordInput(_a, ref) {
|
|
|
23231
23254
|
icon: isVisible ? free_solid_svg_icons_namespaceObject.faEye : free_solid_svg_icons_namespaceObject.faEyeSlash
|
|
23232
23255
|
})));
|
|
23233
23256
|
}, (passwordInput_default()));
|
|
23234
|
-
// // Need PasswordInputMemo for autocompletion of phpstorm
|
|
23235
|
-
// const PasswordInputMemo = withMemo(PasswordInput);
|
|
23236
|
-
// export { PasswordInputMemo as PasswordInput };
|
|
23237
23257
|
// EXTERNAL MODULE: ./src/Components/FormElements/SearchSelectInput/seachSelectInput.scss
|
|
23238
23258
|
var seachSelectInput = __webpack_require__(2399);
|
|
23239
23259
|
var seachSelectInput_default = /*#__PURE__*/__webpack_require__.n(seachSelectInput);
|
|
@@ -23671,7 +23691,7 @@ var FullScreen_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
23671
23691
|
|
|
23672
23692
|
|
|
23673
23693
|
|
|
23674
|
-
function FullScreen(_a) {
|
|
23694
|
+
const FullScreen = withMemo(function FullScreen(_a) {
|
|
23675
23695
|
// Variables
|
|
23676
23696
|
var {
|
|
23677
23697
|
children,
|
|
@@ -23733,10 +23753,7 @@ function FullScreen(_a) {
|
|
|
23733
23753
|
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
23734
23754
|
// @ts-ignore
|
|
23735
23755
|
return /*#__PURE__*/external_react_.createElement(element, props, children);
|
|
23736
|
-
}
|
|
23737
|
-
// Need FullScreenMemo for autocompletion of phpstorm
|
|
23738
|
-
const FullScreenMemo = withMemo(FullScreen);
|
|
23739
|
-
|
|
23756
|
+
});
|
|
23740
23757
|
;// CONCATENATED MODULE: ./src/Components/Hooks/useBreakpoint.ts
|
|
23741
23758
|
|
|
23742
23759
|
|