@seeqdev/qomponents 0.0.7 → 0.0.9
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/Select/Select.types.d.ts +1 -1
- package/dist/TextArea/TextArea.types.d.ts +2 -1
- package/dist/TextField/TextField.types.d.ts +3 -1
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4 -4
- package/dist/index.js.map +1 -1
- package/dist/styles.css +16 -0
- package/dist/types.d.ts +0 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
type FormControlElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
2
2
|
export interface TextAreaProps {
|
|
3
3
|
/** extra class names to be placed on the TextArea component */
|
|
4
4
|
extraClassNames?: string;
|
|
@@ -25,3 +25,4 @@ export interface TextAreaProps {
|
|
|
25
25
|
/** value of the TextArea */
|
|
26
26
|
value?: string | string[] | number;
|
|
27
27
|
}
|
|
28
|
+
export {};
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { InputGroupPlacement } from '../types';
|
|
2
|
+
type FormControlElement = HTMLInputElement | HTMLSelectElement | HTMLTextAreaElement;
|
|
2
3
|
export interface TextFieldProps {
|
|
3
4
|
readonly?: boolean;
|
|
4
5
|
onChange?: React.ChangeEventHandler<FormControlElement>;
|
|
@@ -15,3 +16,4 @@ export interface TextFieldProps {
|
|
|
15
16
|
inputGroup?: InputGroupPlacement;
|
|
16
17
|
step?: number | string;
|
|
17
18
|
}
|
|
19
|
+
export {};
|
package/dist/index.esm.js
CHANGED
|
@@ -7293,7 +7293,7 @@ var CreatableSelect = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
7293
7293
|
});
|
|
7294
7294
|
var CreatableSelect$1 = CreatableSelect;
|
|
7295
7295
|
|
|
7296
|
-
const baseClasses = ['
|
|
7296
|
+
const baseClasses = ['focus:tw-ring-0', 'disabled:tw-cursor-not-allowed'].join(' ');
|
|
7297
7297
|
const containerStyles = ['tw-bg-white', 'dark:tw-bg-sq-dark-background'].join(' ');
|
|
7298
7298
|
const errorClasses = 'tw-border-sq-danger-color';
|
|
7299
7299
|
const borderColorClasses = ['tw-border-sq-disabled-gray', 'dark:tw-border-sq-dark-disabled-gray'].join(' ');
|
|
@@ -7369,7 +7369,7 @@ const multiValueStyles = [
|
|
|
7369
7369
|
* For ease of testing most of the elements of this select can be identified by classNames prefixed with "spec".
|
|
7370
7370
|
*
|
|
7371
7371
|
*/
|
|
7372
|
-
const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no matching options', isSearchable = false, creatable = false, isMulti = false, isClearable = false, closeMenuOnSelect = true, id, inputId, menuPortalTarget, getOptionLabel, getSelectedValueLabel, getOptionValue, onChange, menuIsOpen, menuPlacement = 'auto', extraClassNames, inputGroup, filterConfig, filterOption, small = false, isDisabled = false, showError = false, isLoading = false, formatGroupLabel, onRemove, defaultValue, }) => {
|
|
7372
|
+
const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no matching options', isSearchable = false, creatable = false, isMulti = false, isClearable = false, closeMenuOnSelect = true, id, inputId, menuPortalTarget = document.body, getOptionLabel, getSelectedValueLabel, getOptionValue, onChange, menuIsOpen, menuPlacement = 'auto', extraClassNames, inputGroup, filterConfig, filterOption, small = false, isDisabled = false, showError = false, isLoading = false, formatGroupLabel, onRemove, defaultValue, }) => {
|
|
7373
7373
|
const getOptionOrSelectedLabel = (option, { context }) => {
|
|
7374
7374
|
const getSelectedOptionLabel = getSelectedValueLabel ? getSelectedValueLabel : getOptionLabel;
|
|
7375
7375
|
if (getOptionLabel || getSelectedValueLabel) {
|
|
@@ -7427,7 +7427,7 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
|
|
|
7427
7427
|
border = menuIsOpen ? 'tw-rounded-tr-sm' : 'tw-rounded-r-sm';
|
|
7428
7428
|
}
|
|
7429
7429
|
const appliedClasses = `${borderStyles} ${border} ${showError ? errorClasses : borderColorClasses} ${small ? 'reactSelectMinHeightSmall' : 'reactSelectMinHeight'} `;
|
|
7430
|
-
return `${appliedClasses} ${baseClasses} specSelectControl ${isDisabled ? disabledClasses : ''}`;
|
|
7430
|
+
return `${appliedClasses} ${baseClasses} specSelectControl ${isDisabled ? disabledClasses : ''} ${small ? 'tw-pl-2 tw-pr-1' : 'tw-pl-2.5 tw-pr-1.5'}`;
|
|
7431
7431
|
},
|
|
7432
7432
|
placeholder: () => placeholderStyles,
|
|
7433
7433
|
container: () => `${textStyles} ${containerStyles} ${extraClassNames}`,
|
|
@@ -7446,7 +7446,7 @@ const Select = ({ options, value, placeholder = 'select', noOptionsMessage = 'no
|
|
|
7446
7446
|
singleValue: () => 'specOpenSelect',
|
|
7447
7447
|
multiValue: () => multiValueStyles,
|
|
7448
7448
|
multiValueRemove: () => 'hover:tw-text-sq-danger-color specSelectMultiValueRemove',
|
|
7449
|
-
clearIndicator: () => 'hover:tw-text-sq-danger-color specClearSelect',
|
|
7449
|
+
clearIndicator: () => 'tw-text-sq-disabled-gray hover:tw-text-sq-danger-color specClearSelect',
|
|
7450
7450
|
group: () => 'specSelectGroup',
|
|
7451
7451
|
groupHeading: () => groupHeadingStyles,
|
|
7452
7452
|
},
|