funda-ui 4.5.677 → 4.5.680
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/ColorPicker/index.js +3 -1
- package/LICENSE +21 -0
- package/lib/cjs/ColorPicker/index.js +3 -1
- package/lib/esm/ColorPicker/index.tsx +53 -49
- package/lib/esm/Tabs/Tabs.tsx +1 -1
- package/package.json +1 -1
package/ColorPicker/index.js
CHANGED
|
@@ -603,6 +603,8 @@ var ColorPicker = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
|
603
603
|
htmlFor: idRes,
|
|
604
604
|
className: "form-label"
|
|
605
605
|
}, label)) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
606
|
+
className: "position-relative"
|
|
607
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
606
608
|
className: "input-group"
|
|
607
609
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", _extends({
|
|
608
610
|
ref: function ref(node) {
|
|
@@ -649,7 +651,7 @@ var ColorPicker = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
|
649
651
|
className: "text-danger"
|
|
650
652
|
}, "*"))) : '', changedVal === '' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
651
653
|
className: "custom-colorpicker__transparent-placeholder"
|
|
652
|
-
})) : null));
|
|
654
|
+
})) : null)));
|
|
653
655
|
});
|
|
654
656
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ColorPicker);
|
|
655
657
|
})();
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 UIUX Lab
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAM AGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -603,6 +603,8 @@ var ColorPicker = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
|
603
603
|
htmlFor: idRes,
|
|
604
604
|
className: "form-label"
|
|
605
605
|
}, label)) : null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
606
|
+
className: "position-relative"
|
|
607
|
+
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
606
608
|
className: "input-group"
|
|
607
609
|
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("input", _extends({
|
|
608
610
|
ref: function ref(node) {
|
|
@@ -649,7 +651,7 @@ var ColorPicker = /*#__PURE__*/(0,react__WEBPACK_IMPORTED_MODULE_0__.forwardRef)
|
|
|
649
651
|
className: "text-danger"
|
|
650
652
|
}, "*"))) : '', changedVal === '' ? /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement((react__WEBPACK_IMPORTED_MODULE_0___default().Fragment), null, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("div", {
|
|
651
653
|
className: "custom-colorpicker__transparent-placeholder"
|
|
652
|
-
})) : null));
|
|
654
|
+
})) : null)));
|
|
653
655
|
});
|
|
654
656
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (ColorPicker);
|
|
655
657
|
})();
|
|
@@ -137,59 +137,63 @@ const ColorPicker = forwardRef((props: ColorPickerProps, externalRef: any) => {
|
|
|
137
137
|
)} ref={rootRef}>
|
|
138
138
|
{label ? <>{typeof label === 'string' ? <label htmlFor={idRes} className="form-label" dangerouslySetInnerHTML={{ __html: `${label}` }}></label> : <label htmlFor={idRes} className="form-label">{label}</label>}</> : null}
|
|
139
139
|
|
|
140
|
+
<div className="position-relative">
|
|
140
141
|
<div className="input-group">
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
142
|
+
<input
|
|
143
|
+
ref={(node) => {
|
|
144
|
+
valRef.current = node;
|
|
145
|
+
if (typeof externalRef === 'function') {
|
|
146
|
+
externalRef(node);
|
|
147
|
+
} else if (externalRef) {
|
|
148
|
+
externalRef.current = node;
|
|
149
|
+
}
|
|
150
|
+
}}
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
tabIndex={tabIndex || 0}
|
|
154
|
+
type='color'
|
|
155
|
+
className={combinedCls(
|
|
156
|
+
clsWrite(controlClassName, 'form-control custom-colorpicker-control flex-grow-0'),
|
|
157
|
+
controlExClassName
|
|
158
|
+
)}
|
|
159
|
+
value={changedVal}
|
|
160
|
+
onFocus={handleFocus}
|
|
161
|
+
onBlur={handleBlur}
|
|
162
|
+
onChange={handleChange}
|
|
163
|
+
disabled={disabled || null}
|
|
164
|
+
readOnly={readOnly || null}
|
|
165
|
+
style={style}
|
|
166
|
+
{...attributes}
|
|
167
|
+
/>
|
|
168
|
+
|
|
169
|
+
{/* Prevents the color from automatically becoming #000000 when it is empty */}
|
|
170
|
+
<input
|
|
171
|
+
tabIndex={-1}
|
|
172
|
+
type="hidden"
|
|
173
|
+
id={idRes}
|
|
174
|
+
name={name}
|
|
175
|
+
value={changedVal} // do not use `defaultValue`
|
|
176
|
+
onChange={() => void(0)}
|
|
177
|
+
required={required || null}
|
|
178
|
+
{...attributes}
|
|
179
|
+
/>
|
|
180
|
+
|
|
181
|
+
{changedVal !== '' ? <><button tabIndex={-1} type="button" className={clearBtnClassName || 'btn btn-link btn-sm'} onClick={(e: React.MouseEvent) => {
|
|
182
|
+
setChangedVal('');
|
|
183
|
+
onChange?.(e);
|
|
184
|
+
onClear?.(e);
|
|
185
|
+
}}>{clearBtnLabel || 'clear'}
|
|
186
|
+
</button></> : null}
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
</div>
|
|
190
|
+
{required ? <>{requiredLabel || requiredLabel === '' ? requiredLabel : <span className="position-absolute end-0 top-0 my-2 mx-2"><span className="text-danger">*</span></span>}</> : ''}
|
|
191
|
+
|
|
192
|
+
{changedVal === '' ? <><div className="custom-colorpicker__transparent-placeholder"></div></> : null}
|
|
187
193
|
|
|
188
194
|
</div>
|
|
189
|
-
{required ? <>{requiredLabel || requiredLabel === '' ? requiredLabel : <span className="position-absolute end-0 top-0 my-2 mx-2"><span className="text-danger">*</span></span>}</> : ''}
|
|
190
|
-
|
|
191
|
-
{changedVal === '' ? <><div className="custom-colorpicker__transparent-placeholder"></div></> : null}
|
|
192
195
|
|
|
196
|
+
|
|
193
197
|
</div>
|
|
194
198
|
|
|
195
199
|
|
package/lib/esm/Tabs/Tabs.tsx
CHANGED
|
@@ -18,7 +18,7 @@ export type TabsProps = {
|
|
|
18
18
|
animTransitionDuration?: number;
|
|
19
19
|
/** -- */
|
|
20
20
|
style?: React.CSSProperties;
|
|
21
|
-
onChange?: (nav:
|
|
21
|
+
onChange?: (nav: HTMLElement, targetId: string, index: number, persistentIndex: number) => void;
|
|
22
22
|
onLoad?: (func: Function) => void;
|
|
23
23
|
children: React.ReactNode | React.ReactNode[];
|
|
24
24
|
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"author": "UIUX Lab",
|
|
3
3
|
"email": "uiuxlab@gmail.com",
|
|
4
4
|
"name": "funda-ui",
|
|
5
|
-
"version": "4.5.
|
|
5
|
+
"version": "4.5.680",
|
|
6
6
|
"description": "React components using pure Bootstrap 5+ which does not contain any external style and script libraries.",
|
|
7
7
|
"repository": {
|
|
8
8
|
"type": "git",
|