@ainias42/react-bootstrap-mobile 0.2.8 → 0.2.10
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/dist/bootstrapReactMobile.js +69 -48
- package/dist/bootstrapReactMobile.js.map +1 -1
- package/dist/src/Components/Clickable/Clickable.d.ts +1 -0
- package/dist/src/Components/Dialog/DialogBackground.d.ts +2 -1
- package/dist/src/Components/FormElements/ColorInput/ColorInput.d.ts +2 -1
- package/dist/src/Components/FormElements/Controller/ColorInputController.d.ts +1 -1
- package/dist/src/Components/FormElements/Controller/InputController.d.ts +1 -1
- package/dist/src/Components/FormElements/Controller/MultipleFileInputController.d.ts +1 -1
- package/dist/src/Components/FormElements/Controller/PasswordInputController.d.ts +1 -1
- package/dist/src/Components/FormElements/Controller/SelectController.d.ts +1 -1
- package/dist/src/Components/FormElements/Controller/SwitchController.d.ts +1 -1
- package/dist/src/Components/FormElements/Controller/TextareaController.d.ts +1 -1
- package/dist/src/Components/FormElements/Controller/withHookController.d.ts +1 -1
- package/dist/src/Components/FormElements/Select/Select.d.ts +12 -6
- package/dist/src/Components/Layout/Block.d.ts +1 -1
- package/dist/src/Components/Layout/Flex.d.ts +1 -1
- package/dist/src/Components/Layout/Inline.d.ts +1 -1
- package/dist/src/Components/Layout/InlineBlock.d.ts +1 -1
- package/dist/src/Components/Layout/View.d.ts +1 -1
- package/dist/src/Components/Layout/ViewWithoutListeners.d.ts +1 -1
- package/package.json +1 -1
- package/src/Components/Clickable/Clickable.tsx +4 -1
- package/src/Components/Dialog/DialogBackground.tsx +19 -7
- package/src/Components/FormElements/ColorInput/ColorInput.tsx +4 -1
- package/src/Components/FormElements/ColorInput/colorInput.scss +0 -2
- package/src/Components/FormElements/Select/Select.tsx +17 -6
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
*
|
|
3
|
-
* @ainias42/react-bootstrap-mobile v0.2.
|
|
3
|
+
* @ainias42/react-bootstrap-mobile v0.2.9
|
|
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
|
|
@@ -1373,7 +1373,7 @@ var ___CSS_LOADER_API_SOURCEMAP_IMPORT___ = __webpack_require__(1354);
|
|
|
1373
1373
|
var ___CSS_LOADER_API_IMPORT___ = __webpack_require__(6314);
|
|
1374
1374
|
var ___CSS_LOADER_EXPORT___ = ___CSS_LOADER_API_IMPORT___(___CSS_LOADER_API_SOURCEMAP_IMPORT___);
|
|
1375
1375
|
// Module
|
|
1376
|
-
___CSS_LOADER_EXPORT___.push([module.id, `.colorInput__7LDDj{
|
|
1376
|
+
___CSS_LOADER_EXPORT___.push([module.id, `.colorInput__7LDDj{display:flex}.colorInput__7LDDj .preview__U27kg{margin-left:.4rem;width:1rem;height:1rem;display:inline-block;border:1px solid #000}.colorInput__7LDDj .modalContainer__DJAC0{z-index:9999;position:fixed;top:0;left:0;right:0;bottom:0;width:100vw;height:100vh;overflow:auto}.colorInput__7LDDj .modalContainer__DJAC0 .modal__HgPzb{position:absolute;background-color:#fff}.colorInput__7LDDj .label__kakvy{flex:1;margin-right:.2rem}`, "",{"version":3,"sources":["webpack://./src/Components/FormElements/ColorInput/colorInput.scss"],"names":[],"mappings":"AAAA,mBACE,YAAA,CAEA,mCACE,iBAAA,CACA,UAAA,CACA,WAAA,CACA,oBAAA,CACA,qBAAA,CAGF,0CACE,YAAA,CACA,cAAA,CACA,KAAA,CACA,MAAA,CACA,OAAA,CACA,QAAA,CACA,WAAA,CACA,YAAA,CACA,aAAA,CAEA,wDACE,iBAAA,CACA,qBAAA,CAIJ,iCACE,MAAA,CACA,kBAAA","sourcesContent":[".colorInput {\n display: flex;\n\n .preview {\n margin-left: 0.4rem;\n width: 1rem;\n height: 1rem;\n display: inline-block;\n border: 1px solid black;\n }\n\n .modalContainer {\n z-index: 9999;\n position: fixed;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n width: 100vw;\n height: 100vh;\n overflow: auto;\n\n .modal {\n position: absolute;\n background-color: white;\n }\n }\n\n .label {\n flex: 1;\n margin-right: 0.2rem;\n }\n}\n"],"sourceRoot":""}]);
|
|
1377
1377
|
// Exports
|
|
1378
1378
|
___CSS_LOADER_EXPORT___.locals = {
|
|
1379
1379
|
"colorInput": `colorInput__7LDDj`,
|
|
@@ -10355,9 +10355,10 @@ function Clickable(_a, ref) {
|
|
|
10355
10355
|
stopPropagation = true,
|
|
10356
10356
|
useReactOnMouseLeave = false,
|
|
10357
10357
|
tabIndex,
|
|
10358
|
-
draggable
|
|
10358
|
+
draggable,
|
|
10359
|
+
title
|
|
10359
10360
|
} = _a,
|
|
10360
|
-
clickData = Clickable_rest(_a, ["className", "children", "style", "href", "target", "id", "interactable", "preventDefault", "stopPropagation", "useReactOnMouseLeave", "tabIndex", "draggable"]);
|
|
10361
|
+
clickData = Clickable_rest(_a, ["className", "children", "style", "href", "target", "id", "interactable", "preventDefault", "stopPropagation", "useReactOnMouseLeave", "tabIndex", "draggable", "title"]);
|
|
10361
10362
|
// States
|
|
10362
10363
|
// Refs
|
|
10363
10364
|
const clickableRef = (0,external_react_.useRef)(null);
|
|
@@ -10527,7 +10528,8 @@ function Clickable(_a, ref) {
|
|
|
10527
10528
|
onDoubleClick: realOnDoubleClick,
|
|
10528
10529
|
tabIndex: interactable ? 0 : tabIndex,
|
|
10529
10530
|
draggable,
|
|
10530
|
-
onDragStart: realOnDragStartListener
|
|
10531
|
+
onDragStart: realOnDragStartListener,
|
|
10532
|
+
title
|
|
10531
10533
|
};
|
|
10532
10534
|
if (typeof href === 'string') {
|
|
10533
10535
|
return /*#__PURE__*/external_react_.createElement("a", _extends({}, props, {
|
|
@@ -11309,6 +11311,40 @@ function Heading({
|
|
|
11309
11311
|
// Need HeadingMemo for autocompletion of phpstorm
|
|
11310
11312
|
const HeadingMemo = withMemo(Heading, (heading_default()), 'text');
|
|
11311
11313
|
|
|
11314
|
+
;// CONCATENATED MODULE: ./src/Components/Layout/Grow.tsx
|
|
11315
|
+
|
|
11316
|
+
|
|
11317
|
+
|
|
11318
|
+
|
|
11319
|
+
const Grow = withForwardRef(function Grow({
|
|
11320
|
+
className,
|
|
11321
|
+
children,
|
|
11322
|
+
center = false,
|
|
11323
|
+
style,
|
|
11324
|
+
weight = 1
|
|
11325
|
+
}, ref) {
|
|
11326
|
+
// Variables
|
|
11327
|
+
// States
|
|
11328
|
+
// Refs
|
|
11329
|
+
// Callbacks
|
|
11330
|
+
// Effects
|
|
11331
|
+
// Other
|
|
11332
|
+
// Render Functions
|
|
11333
|
+
return /*#__PURE__*/external_react_.createElement("div", {
|
|
11334
|
+
ref: ref,
|
|
11335
|
+
className: classnames_default()((layout_default()).grow, {
|
|
11336
|
+
[(layout_default()).center]: center,
|
|
11337
|
+
[(layout_default()).weight0]: weight === 0,
|
|
11338
|
+
[(layout_default()).weight1]: weight === 1,
|
|
11339
|
+
[(layout_default()).weight2]: weight === 2,
|
|
11340
|
+
[(layout_default()).weight3]: weight === 3,
|
|
11341
|
+
[(layout_default()).weight4]: weight === 4,
|
|
11342
|
+
[(layout_default()).weight5]: weight === 5,
|
|
11343
|
+
[(layout_default()).weight6]: weight === 6
|
|
11344
|
+
}, className),
|
|
11345
|
+
style: style
|
|
11346
|
+
}, children);
|
|
11347
|
+
}, (layout_default()));
|
|
11312
11348
|
;// CONCATENATED MODULE: ./src/Components/Dialog/DialogBackground.tsx
|
|
11313
11349
|
|
|
11314
11350
|
|
|
@@ -11316,11 +11352,17 @@ const HeadingMemo = withMemo(Heading, (heading_default()), 'text');
|
|
|
11316
11352
|
|
|
11317
11353
|
|
|
11318
11354
|
|
|
11355
|
+
|
|
11356
|
+
|
|
11357
|
+
|
|
11358
|
+
|
|
11359
|
+
|
|
11319
11360
|
const DialogBackground = withMemo(function DialogBackground({
|
|
11320
11361
|
children,
|
|
11321
11362
|
className,
|
|
11322
11363
|
style,
|
|
11323
|
-
title
|
|
11364
|
+
title,
|
|
11365
|
+
onClose
|
|
11324
11366
|
}) {
|
|
11325
11367
|
// Variables
|
|
11326
11368
|
// Refs
|
|
@@ -11334,9 +11376,15 @@ const DialogBackground = withMemo(function DialogBackground({
|
|
|
11334
11376
|
__allowChildren: "all",
|
|
11335
11377
|
className: classnames_default()((dialogBackground_default()).dialogBackground, className),
|
|
11336
11378
|
style: style
|
|
11337
|
-
}, !!title && /*#__PURE__*/external_react_.createElement(
|
|
11379
|
+
}, (!!title || !!onClose) && /*#__PURE__*/external_react_.createElement(Flex_tmp, {
|
|
11380
|
+
horizontal: true,
|
|
11338
11381
|
className: (dialogBackground_default()).title
|
|
11339
|
-
}, title),
|
|
11382
|
+
}, !!title && /*#__PURE__*/external_react_.createElement(Grow, null, /*#__PURE__*/external_react_.createElement(HeadingMemo, null, title)), !!onClose && /*#__PURE__*/external_react_.createElement(ClickableMemo, {
|
|
11383
|
+
onClick: onClose
|
|
11384
|
+
}, /*#__PURE__*/external_react_.createElement(Icon, {
|
|
11385
|
+
size: "lg",
|
|
11386
|
+
icon: free_solid_svg_icons_namespaceObject.faCircleXmark
|
|
11387
|
+
}))), children);
|
|
11340
11388
|
}, (dialogBackground_default()));
|
|
11341
11389
|
;// CONCATENATED MODULE: ./src/Components/Dialog/DialogContext.ts
|
|
11342
11390
|
|
|
@@ -23111,6 +23159,7 @@ var ColorInput_rest = undefined && undefined.__rest || function (s, e) {
|
|
|
23111
23159
|
|
|
23112
23160
|
|
|
23113
23161
|
|
|
23162
|
+
|
|
23114
23163
|
function convertToHex(color, disableAlpha) {
|
|
23115
23164
|
let newColor = `#${color.r.toString(16).padStart(2, '0')}${color.g.toString(16).padStart(2, '0')}${color.b.toString(16).padStart(2, '0')}`;
|
|
23116
23165
|
if (color.a !== undefined && !disableAlpha) {
|
|
@@ -23134,9 +23183,10 @@ function ColorInput(_a) {
|
|
|
23134
23183
|
presetColors,
|
|
23135
23184
|
error,
|
|
23136
23185
|
sharedColorKey = "default",
|
|
23137
|
-
disabled
|
|
23186
|
+
disabled,
|
|
23187
|
+
className
|
|
23138
23188
|
} = _a,
|
|
23139
|
-
otherProps = ColorInput_rest(_a, ["defaultValue", "value", "label", "onChangeColor", "onChangeColorComplete", "onOpen", "onClose", "disableAlpha", "presetColors", "error", "sharedColorKey", "disabled"]);
|
|
23189
|
+
otherProps = ColorInput_rest(_a, ["defaultValue", "value", "label", "onChangeColor", "onChangeColorComplete", "onOpen", "onClose", "disableAlpha", "presetColors", "error", "sharedColorKey", "disabled", "className"]);
|
|
23140
23190
|
// Refs
|
|
23141
23191
|
const modalRef = (0,external_react_.useRef)(null);
|
|
23142
23192
|
// States
|
|
@@ -23205,7 +23255,7 @@ function ColorInput(_a) {
|
|
|
23205
23255
|
// Other
|
|
23206
23256
|
// Render Functions
|
|
23207
23257
|
return /*#__PURE__*/external_react_.createElement(external_react_.Fragment, null, /*#__PURE__*/external_react_.createElement("span", {
|
|
23208
|
-
className: (colorInput_default()).colorInput
|
|
23258
|
+
className: classnames_default()((colorInput_default()).colorInput, className)
|
|
23209
23259
|
}, /*#__PURE__*/external_react_.createElement(Menu, {
|
|
23210
23260
|
x: position.x,
|
|
23211
23261
|
y: position.y,
|
|
@@ -23299,40 +23349,6 @@ const ColorInputController = withHookController(ColorInputMemo, "onChangeColor")
|
|
|
23299
23349
|
// EXTERNAL MODULE: ./src/Components/FormElements/Input/FileInput/fileInput.scss
|
|
23300
23350
|
var fileInput = __webpack_require__(4372);
|
|
23301
23351
|
var fileInput_default = /*#__PURE__*/__webpack_require__.n(fileInput);
|
|
23302
|
-
;// CONCATENATED MODULE: ./src/Components/Layout/Grow.tsx
|
|
23303
|
-
|
|
23304
|
-
|
|
23305
|
-
|
|
23306
|
-
|
|
23307
|
-
const Grow = withForwardRef(function Grow({
|
|
23308
|
-
className,
|
|
23309
|
-
children,
|
|
23310
|
-
center = false,
|
|
23311
|
-
style,
|
|
23312
|
-
weight = 1
|
|
23313
|
-
}, ref) {
|
|
23314
|
-
// Variables
|
|
23315
|
-
// States
|
|
23316
|
-
// Refs
|
|
23317
|
-
// Callbacks
|
|
23318
|
-
// Effects
|
|
23319
|
-
// Other
|
|
23320
|
-
// Render Functions
|
|
23321
|
-
return /*#__PURE__*/external_react_.createElement("div", {
|
|
23322
|
-
ref: ref,
|
|
23323
|
-
className: classnames_default()((layout_default()).grow, {
|
|
23324
|
-
[(layout_default()).center]: center,
|
|
23325
|
-
[(layout_default()).weight0]: weight === 0,
|
|
23326
|
-
[(layout_default()).weight1]: weight === 1,
|
|
23327
|
-
[(layout_default()).weight2]: weight === 2,
|
|
23328
|
-
[(layout_default()).weight3]: weight === 3,
|
|
23329
|
-
[(layout_default()).weight4]: weight === 4,
|
|
23330
|
-
[(layout_default()).weight5]: weight === 5,
|
|
23331
|
-
[(layout_default()).weight6]: weight === 6
|
|
23332
|
-
}, className),
|
|
23333
|
-
style: style
|
|
23334
|
-
}, children);
|
|
23335
|
-
}, (layout_default()));
|
|
23336
23352
|
// EXTERNAL MODULE: ./src/Components/Image/image.scss
|
|
23337
23353
|
var Image_image = __webpack_require__(6435);
|
|
23338
23354
|
var image_default = /*#__PURE__*/__webpack_require__.n(Image_image);
|
|
@@ -24123,16 +24139,21 @@ const Select = withMemo(function Select(_a) {
|
|
|
24123
24139
|
onChangeValue,
|
|
24124
24140
|
inline = false,
|
|
24125
24141
|
small = false,
|
|
24126
|
-
error
|
|
24142
|
+
error,
|
|
24143
|
+
useNumericValues
|
|
24127
24144
|
} = _a,
|
|
24128
|
-
otherProps = Select_rest(_a, ["label", "options", "className", "style", "onChangeValue", "inline", "small", "error"]);
|
|
24145
|
+
otherProps = Select_rest(_a, ["label", "options", "className", "style", "onChangeValue", "inline", "small", "error", "useNumericValues"]);
|
|
24129
24146
|
// Refs
|
|
24130
24147
|
// States
|
|
24131
24148
|
// Selectors
|
|
24132
24149
|
// Callbacks
|
|
24133
24150
|
const [onChangeWithData, propsWithoutData] = useListenerWithExtractedProps('onChange', otherProps);
|
|
24134
24151
|
const onChange = (0,external_react_.useCallback)(e => {
|
|
24135
|
-
|
|
24152
|
+
if (useNumericValues) {
|
|
24153
|
+
onChangeValue === null || onChangeValue === void 0 ? void 0 : onChangeValue(Number(e.target.value));
|
|
24154
|
+
} else {
|
|
24155
|
+
onChangeValue === null || onChangeValue === void 0 ? void 0 : onChangeValue(e.target.value);
|
|
24156
|
+
}
|
|
24136
24157
|
onChangeWithData(e);
|
|
24137
24158
|
}, [onChangeWithData, onChangeValue]);
|
|
24138
24159
|
// Effects
|