@councilbox/councilbox-ui 2.0.53 → 2.0.55
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/Accordion.js +3 -0
- package/Alert.js +3 -0
- package/Avatar.js +3 -0
- package/AvatarGroup.js +3 -0
- package/Block.js +3 -0
- package/Button.js +3 -0
- package/ButtonBasic.js +3 -0
- package/Checkbox.js +3 -0
- package/DatePicker.js +3 -0
- package/DateRangePicker.js +3 -0
- package/DateTimePicker.js +3 -0
- package/DragDrop.js +3 -0
- package/DrawerPanel.js +3 -0
- package/DropDown.js +3 -0
- package/EnhancedTable.js +3 -0
- package/FabButton.js +3 -0
- package/Grid.js +3 -0
- package/Header.js +3 -0
- package/IconButton.js +3 -0
- package/IconButtonSquare.js +3 -0
- package/IconFont.js +3 -0
- package/InputAutocomplete.js +3 -0
- package/InputPassword.js +3 -0
- package/InputText.js +3 -0
- package/InputTextArea.js +3 -0
- package/LoadingSection.js +3 -0
- package/MenuItem.js +3 -0
- package/MenuLateralLeft.js +3 -0
- package/MenuLateralRight.js +3 -0
- package/Modal.js +3 -0
- package/Radio.js +3 -0
- package/RichTextInput.js +3 -0
- package/Scrollbar.js +3 -0
- package/ScrollbarNew.js +3 -0
- package/SelectInput.js +3 -0
- package/Slider.js +3 -0
- package/Spacing.js +3 -0
- package/Stars.js +3 -0
- package/Stepper.js +3 -0
- package/Table.js +3 -0
- package/TableBody.js +3 -0
- package/TableCell.js +3 -0
- package/TableContainer.js +3 -0
- package/TableHead.js +3 -0
- package/TableRow.js +3 -0
- package/TableSortLabel.js +3 -0
- package/Tabs.js +3 -0
- package/Tag.js +3 -0
- package/TextInput.js +3 -0
- package/ThemeProvider.js +3 -0
- package/TimePicker.js +3 -0
- package/Timeline.js +3 -0
- package/ToastProvider.js +3 -0
- package/Toggle.js +3 -0
- package/Tooltip.js +3 -0
- package/Typography.js +3 -0
- package/dist/HOCs/overlayA11yStack.js +47 -0
- package/dist/HOCs/useA11yGuard.js +38 -0
- package/dist/HOCs/useDynamicStyles.js +41 -60
- package/dist/HOCs/useMenuNavigation.js +110 -0
- package/dist/HOCs/useOverlay.js +87 -0
- package/dist/HOCs/usePopoverPosition.js +228 -0
- package/dist/HOCs/useRipple.js +17 -35
- package/dist/HOCs/useWindowSize.js +24 -42
- package/dist/build-index.js +119 -99
- package/dist/components/1.Introduction.stories.mdx +4 -1
- package/dist/components/2.Changelog.stories.mdx +54 -0
- package/dist/components/3.Guide.stories.mdx +1 -1
- package/dist/components/Accordion/Accordion.css +7 -0
- package/dist/components/Accordion/Accordion.js +97 -102
- package/dist/components/Accordion/Accordion.stories.js +10 -12
- package/dist/components/Accordion/DesignAccordion.stories.js +10 -21
- package/dist/components/Alert/Alert.js +55 -55
- package/dist/components/Alert/Alert.stories.js +10 -11
- package/dist/components/Avatar/Avatar.js +82 -74
- package/dist/components/Avatar/Avatar.stories.js +19 -23
- package/dist/components/Avatar/DesignAvatar.stories.js +18 -26
- package/dist/components/Avatar/DesignAvatarText.stories.js +31 -40
- package/dist/components/AvatarGroup/AvatarGroup.js +7 -14
- package/dist/components/AvatarGroup/AvatarGroup.stories.js +6 -13
- package/dist/components/AvatarGroup/DesignAvatarGroup.stories.js +34 -45
- package/dist/components/Block/Block.css +3 -3
- package/dist/components/Block/Block.js +31 -45
- package/dist/components/Block/Block.stories.js +5 -12
- package/dist/components/Block/DesignBlock.stories.js +7 -13
- package/dist/components/Button/Button.js +44 -66
- package/dist/components/Button/Button.stories.js +8 -14
- package/dist/components/Button/button.css +1 -1
- package/dist/components/ButtonBasic/ButtonBasic.css +6 -1
- package/dist/components/ButtonBasic/ButtonBasic.js +96 -118
- package/dist/components/ButtonBasic/ButtonBasic.stories.js +14 -15
- package/dist/components/Checkbox/Checkbox.css +6 -0
- package/dist/components/Checkbox/Checkbox.js +81 -100
- package/dist/components/Checkbox/Checkbox.stories.js +10 -11
- package/dist/components/DatePicker/Calendar.js +243 -0
- package/dist/components/DatePicker/DatePicker.css +197 -0
- package/dist/components/DatePicker/DatePicker.js +384 -0
- package/dist/components/DatePicker/DatePicker.stories.js +180 -0
- package/dist/components/DatePicker/dateUtils.js +478 -0
- package/dist/components/DateRangePicker/DateRangePicker.css +41 -0
- package/dist/components/DateRangePicker/DateRangePicker.js +435 -0
- package/dist/components/DateRangePicker/DateRangePicker.stories.js +147 -0
- package/dist/components/DateRangePicker/RangeCalendar.js +188 -0
- package/dist/components/DateTimePicker/DateTimePicker.css +4 -0
- package/dist/components/DateTimePicker/DateTimePicker.js +481 -0
- package/dist/components/DateTimePicker/DateTimePicker.stories.js +144 -0
- package/dist/components/DateTimePicker/TimeColumns.css +46 -0
- package/dist/components/DateTimePicker/TimeColumns.js +175 -0
- package/dist/components/DragDrop/DragDrop.css +20 -9
- package/dist/components/DragDrop/DragDrop.js +83 -76
- package/dist/components/DragDrop/DragDrop.stories.js +9 -16
- package/dist/components/DrawerPanel/DesignDrawerPanel.js +35 -53
- package/dist/components/DrawerPanel/DrawerPanel.js +157 -146
- package/dist/components/DrawerPanel/DrawerPanel.stories.js +10 -12
- package/dist/components/DropDown/DesignDropDown.stories.js +87 -97
- package/dist/components/DropDown/DropDown.js +179 -343
- package/dist/components/DropDown/DropDown.stories.js +6 -12
- package/dist/components/DropDown/PopoverPlayground.js +68 -98
- package/dist/components/EnhancedTable/DesignEnhancedTable.stories.js +26 -36
- package/dist/components/EnhancedTable/EnhancedMyTable.js +16 -19
- package/dist/components/EnhancedTable/EnhancedTable.js +77 -136
- package/dist/components/EnhancedTable/EnhancedTable.stories.js +5 -12
- package/dist/components/EnhancedTable/EnhancedTableBody.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableCell.js +25 -34
- package/dist/components/EnhancedTable/EnhancedTableContainer.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableHead.js +11 -14
- package/dist/components/EnhancedTable/EnhancedTableRow.js +15 -18
- package/dist/components/EnhancedTable/EnhancedTableSortLabel.js +15 -18
- package/dist/components/FabButton/DesignFabButton.stories.js +9 -16
- package/dist/components/FabButton/FabButton.js +51 -54
- package/dist/components/FabButton/FabButton.stories.js +10 -12
- package/dist/components/Grid/DesignGrid.stories.js +7 -14
- package/dist/components/Grid/Grid.js +38 -46
- package/dist/components/Grid/Grid.stories.js +6 -13
- package/dist/components/Grid/GridItem.js +37 -39
- package/dist/components/Header/DesignHeader.stories.js +20 -24
- package/dist/components/Header/Header.js +227 -246
- package/dist/components/Header/Header.stories.js +9 -21
- package/dist/components/Header/header.css +10 -5
- package/dist/components/IconButton/DesignIconButton.stories.js +31 -36
- package/dist/components/IconButton/IconButton.css +6 -1
- package/dist/components/IconButton/IconButton.js +135 -140
- package/dist/components/IconButton/IconButton.stories.js +12 -13
- package/dist/components/IconButtonSquare/DesignIconButtonSquare.stories.js +5 -11
- package/dist/components/IconButtonSquare/IconButtonSquare.js +14 -28
- package/dist/components/IconButtonSquare/IconButtonSquare.stories.js +7 -13
- package/dist/components/IconFont/IconFont.js +27 -48
- package/dist/components/IconFont/IconFont.stories.js +5 -11
- package/dist/components/InputAutocomplete/InputAutocomplete.css +6 -0
- package/dist/components/InputAutocomplete/InputAutocomplete.js +184 -260
- package/dist/components/InputAutocomplete/InputAutocomplete.stories.js +5 -11
- package/dist/components/InputPassword/InputPassword.css +0 -6
- package/dist/components/InputPassword/InputPassword.js +58 -73
- package/dist/components/InputPassword/InputPassword.stories.js +5 -11
- package/dist/components/InputText/InputText.css +96 -83
- package/dist/components/InputText/InputText.js +211 -215
- package/dist/components/InputText/InputText.stories.js +11 -11
- package/dist/components/InputTextArea/DesignInputTextArea.stories.js +38 -51
- package/dist/components/InputTextArea/InputTextArea.js +84 -93
- package/dist/components/InputTextArea/InputTextArea.stories.js +5 -12
- package/dist/components/LoadingSection/LoadingSection.js +44 -51
- package/dist/components/LoadingSection/LoadingSection.stories.js +5 -11
- package/dist/components/MenuItem/DesignMenuItem.stories.js +20 -34
- package/dist/components/MenuItem/MenuItem.css +7 -2
- package/dist/components/MenuItem/MenuItem.js +131 -140
- package/dist/components/MenuItem/MenuItem.stories.js +6 -15
- package/dist/components/MenuLateralLeft/MenuLateralLeft.css +24 -0
- package/dist/components/MenuLateralLeft/MenuLateralLeft.js +120 -157
- package/dist/components/MenuLateralLeft/MenuLateralLeft.stories.js +5 -12
- package/dist/components/MenuLateralRight/MenuLateralRight.css +2 -2
- package/dist/components/MenuLateralRight/MenuLateralRight.js +91 -79
- package/dist/components/MenuLateralRight/MenuLateralRight.stories.js +5 -12
- package/dist/components/Modal/DesignModal.stories.js +15 -30
- package/dist/components/Modal/Modal.css +35 -15
- package/dist/components/Modal/Modal.js +156 -145
- package/dist/components/Modal/Modal.stories.js +7 -16
- package/dist/components/PaginationFooter/DesignPaginationFooter.stories.js +4 -10
- package/dist/components/PaginationFooter/PaginationFooter.css +10 -0
- package/dist/components/PaginationFooter/PaginationFooter.js +99 -91
- package/dist/components/PaginationFooter/PaginationFooter.stories.js +5 -12
- package/dist/components/RadioButton/Radio.css +19 -18
- package/dist/components/RadioButton/Radio.js +65 -83
- package/dist/components/RadioButton/Radio.stories.js +27 -36
- package/dist/components/RichTextInput/DesignRichTextInput.stories.js +119 -0
- package/dist/components/RichTextInput/RichTextInput.css +309 -0
- package/dist/components/RichTextInput/RichTextInput.js +851 -0
- package/dist/components/RichTextInput/RichTextInput.stories.js +33 -0
- package/dist/components/Ripple/DesignRipple.js +42 -41
- package/dist/components/Ripple/Ripple.stories.js +5 -11
- package/dist/components/Scrollbar/DesignScrollbar.js +5 -10
- package/dist/components/Scrollbar/Scrollbar.js +37 -56
- package/dist/components/Scrollbar/Scrollbar.stories.js +5 -12
- package/dist/components/ScrollbarNew/DesignScrollbarNew.js +24 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.css +79 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.js +426 -0
- package/dist/components/ScrollbarNew/ScrollbarNew.stories.js +37 -0
- package/dist/components/SelectInput/DesignSelectInput.js +22 -45
- package/dist/components/SelectInput/SelectInput.js +171 -218
- package/dist/components/SelectInput/SelectInput.stories.js +6 -15
- package/dist/components/Slider/DesignSlider.js +8 -14
- package/dist/components/Slider/Slider.css +57 -37
- package/dist/components/Slider/Slider.js +85 -84
- package/dist/components/Slider/Slider.stories.js +5 -12
- package/dist/components/Spacing/Spacing.js +38 -45
- package/dist/components/Spacing/Spacing.stories.js +5 -11
- package/dist/components/Stars/DesignStars.js +17 -30
- package/dist/components/Stars/Stars.css +55 -104
- package/dist/components/Stars/Stars.js +89 -73
- package/dist/components/Stars/Stars.stories.js +5 -12
- package/dist/components/Stepper/DesignStepper.stories.js +16 -30
- package/dist/components/Stepper/Stepper.css +46 -10
- package/dist/components/Stepper/Stepper.js +118 -134
- package/dist/components/Stepper/Stepper.stories.js +5 -12
- package/dist/components/Table/DesignTable.stories.js +200 -211
- package/dist/components/Table/Table.css +33 -2
- package/dist/components/Table/Table.js +30 -38
- package/dist/components/Table/Table.stories.js +5 -12
- package/dist/components/Table/TableBody.js +22 -34
- package/dist/components/Table/TableCell.js +71 -61
- package/dist/components/Table/TableContainer.js +22 -34
- package/dist/components/Table/TableHead.js +22 -34
- package/dist/components/Table/TableRow.js +33 -37
- package/dist/components/Table/TableSortLabel.js +42 -52
- package/dist/components/Tabs/DesignTabs.js +14 -28
- package/dist/components/Tabs/Tabs.css +30 -11
- package/dist/components/Tabs/Tabs.js +151 -138
- package/dist/components/Tabs/Tabs.stories.js +5 -12
- package/dist/components/Tag/DesignTags.stories.js +24 -39
- package/dist/components/Tag/Tag.css +61 -42
- package/dist/components/Tag/Tag.js +93 -91
- package/dist/components/Tag/Tag.stories.js +5 -12
- package/dist/components/TextInput/TextInput.js +38 -54
- package/dist/components/TextInput/TextInput.stories.js +5 -11
- package/dist/components/ThemeProvider/Colors.js +2 -2
- package/dist/components/ThemeProvider/CouncilboxThemeContext.js +7 -10
- package/dist/components/ThemeProvider/ThemeProvider.js +34 -52
- package/dist/components/TimePicker/TimePicker.css +3 -0
- package/dist/components/TimePicker/TimePicker.js +359 -0
- package/dist/components/TimePicker/TimePicker.stories.js +132 -0
- package/dist/components/Timeline/DesignTimeline.stories.js +4 -10
- package/dist/components/Timeline/Timeline.js +66 -46
- package/dist/components/Timeline/Timeline.stories.js +5 -12
- package/dist/components/Toast/DesignToast.stories.js +174 -0
- package/dist/components/Toast/Toast.css +154 -0
- package/dist/components/Toast/Toast.js +165 -0
- package/dist/components/Toast/Toast.stories.js +33 -0
- package/dist/components/Toast/ToastProvider.js +33 -0
- package/dist/components/Toast/ToastRoot.js +89 -0
- package/dist/components/Toast/toastStore.js +127 -0
- package/dist/components/Toast/useToast.js +42 -0
- package/dist/components/Toggle/Toggle.css +10 -0
- package/dist/components/Toggle/Toggle.js +123 -100
- package/dist/components/Toggle/Toggle.stories.js +10 -11
- package/dist/components/Tooltip/DesignTooltip.stories.js +10 -16
- package/dist/components/Tooltip/Tooltip.css +17 -1
- package/dist/components/Tooltip/Tooltip.js +195 -366
- package/dist/components/Tooltip/Tooltip.stories.js +5 -12
- package/dist/components/Typography/Typography.css +57 -6
- package/dist/components/Typography/Typography.js +44 -97
- package/dist/components/Typography/Typography.stories.js +5 -11
- package/dist/index.js +2 -6
- package/dist/reportWebVitals.js +8 -14
- package/dist/storybook.test.js +2 -4
- package/dist/styles/colorConsts.css +4 -4
- package/dist/styles/main.css +16 -0
- package/dist/styles/styleFont.css +1 -1
- package/dist/styles/stylesheet.js +10 -22
- package/dist/styles/zIndexConsts.css +2 -0
- package/dist/testing/TestAutocomplete.js +74 -97
- package/dist/testing/TestComponents.js +5 -10
- package/dist/testing/TestDropdown.js +33 -41
- package/dist/utils/autoDetectScroll.js +12 -35
- package/dist/utils/index.js +37 -63
- package/dist/utils/useFallbackId.js +19 -0
- package/package.json +67 -4
- package/toast.js +7 -0
- package/useCouncilboxTheme.js +7 -0
- package/useToast.js +7 -0
- package/dist/components/Accordion/AccordionOld.css +0 -16
- package/dist/components/Accordion/AccordionOld.js +0 -115
- package/dist/components/Avatar/AvatarOld.js +0 -138
- package/dist/components/ButtonBasic/ButtonBasicOld.css +0 -41
- package/dist/components/ButtonBasic/ButtonBasicOld.js +0 -231
- package/dist/components/Checkbox/CheckboxOld.css +0 -31
- package/dist/components/Checkbox/CheckboxOld.js +0 -112
- package/dist/components/DrawerPanel/DrawerPanelOld.css +0 -56
- package/dist/components/DrawerPanel/DrawerPanelOld.js +0 -233
- package/dist/components/DropDown/DropDownOld.css +0 -3
- package/dist/components/DropDown/DropDownOld.js +0 -186
- package/dist/components/Grid/GridItemOld.js +0 -43
- package/dist/components/Grid/GridOld.css +0 -0
- package/dist/components/Grid/GridOld.js +0 -53
- package/dist/components/IconButton/IconButtonOld.css +0 -0
- package/dist/components/IconButton/IconButtonOld.js +0 -138
- package/dist/components/IconButtonSquare/IconButtonSquareOld.css +0 -43
- package/dist/components/IconButtonSquare/IconButtonSquareOld.js +0 -133
- package/dist/components/InputAutocomplete/InputAutocompleteOld.css +0 -5
- package/dist/components/InputAutocomplete/InputAutocompleteOld.js +0 -178
- package/dist/components/InputText/InputTextOld.css +0 -10
- package/dist/components/InputText/InputTextOld.js +0 -340
- package/dist/components/MenuItem/MenuItemOld.js +0 -139
- package/dist/components/Modal/ModalOld.css +0 -3
- package/dist/components/Modal/ModalOld.js +0 -230
- package/dist/components/RadioButton/RadioOld.css +0 -31
- package/dist/components/RadioButton/RadioOld.js +0 -142
- package/dist/components/SelectInput/SelectInputOld.css +0 -17
- package/dist/components/SelectInput/SelectInputOld.js +0 -325
- package/dist/components/Table/TableOld.css +0 -79
- package/dist/components/Table/TableOld.js +0 -165
- package/dist/components/Tabs/TabsOld.js +0 -92
- package/dist/components/Typography/TypographyOld.js +0 -132
|
@@ -3,17 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
6
|
+
exports["default"] = exports.Success = exports.Helper = exports.ErrorTemplate = exports.Disabled = exports.Default = void 0;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _InputAutocomplete = _interopRequireDefault(require("./InputAutocomplete"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
10
|
var _default = {
|
|
15
11
|
title: 'Components/Input Autocomplete',
|
|
16
|
-
component: _InputAutocomplete
|
|
12
|
+
component: _InputAutocomplete["default"],
|
|
17
13
|
argTypes: {
|
|
18
14
|
variant: {
|
|
19
15
|
options: ['outlined', 'filled', 'standard'],
|
|
@@ -39,12 +35,10 @@ var _default = {
|
|
|
39
35
|
}
|
|
40
36
|
}
|
|
41
37
|
};
|
|
42
|
-
exports
|
|
43
|
-
|
|
38
|
+
exports["default"] = _default;
|
|
44
39
|
var Template = function Template(args) {
|
|
45
|
-
return /*#__PURE__*/_react
|
|
40
|
+
return /*#__PURE__*/_react["default"].createElement(_InputAutocomplete["default"], args);
|
|
46
41
|
};
|
|
47
|
-
|
|
48
42
|
Template.displayName = "Template";
|
|
49
43
|
var Default = Template.bind({});
|
|
50
44
|
exports.Default = Default;
|
|
@@ -3,83 +3,62 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
6
|
+
exports["default"] = void 0;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
|
-
|
|
12
9
|
var _IconButton = _interopRequireDefault(require("../IconButton/IconButton"));
|
|
13
|
-
|
|
14
10
|
require("../../styles/main.css");
|
|
15
|
-
|
|
16
11
|
require("./InputPassword.css");
|
|
17
|
-
|
|
18
12
|
var _CouncilboxThemeContext = require("../ThemeProvider/CouncilboxThemeContext");
|
|
19
|
-
|
|
20
13
|
var _InputText = _interopRequireDefault(require("../InputText/InputText"));
|
|
21
|
-
|
|
22
14
|
var _excluded = ["id", "className", "onChange", "onKeyUp", "onClick", "label", "disabled", "error", "helper", "width", "validation", "percentageError", "helperText", "fullWidth"];
|
|
23
|
-
|
|
24
|
-
function
|
|
25
|
-
|
|
26
|
-
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
|
-
|
|
28
|
-
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
29
|
-
|
|
15
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
16
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) { ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } } return n; }, _extends.apply(null, arguments); }
|
|
17
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
30
18
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
31
|
-
|
|
32
|
-
function
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
|
|
36
|
-
function
|
|
37
|
-
|
|
38
|
-
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
39
|
-
|
|
40
|
-
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
41
|
-
|
|
42
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
|
|
43
|
-
|
|
19
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
20
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) { n[e] = r[e]; } return n; }
|
|
21
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0) { ; } } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
22
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
23
|
+
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) { o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } } return i; }
|
|
24
|
+
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) { if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } } return t; }
|
|
44
25
|
var InputPassword = function InputPassword(_ref) {
|
|
45
26
|
var id = _ref.id,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
setShowPassword = _React$useState2[1];
|
|
65
|
-
|
|
27
|
+
className = _ref.className,
|
|
28
|
+
onChange = _ref.onChange,
|
|
29
|
+
onKeyUp = _ref.onKeyUp,
|
|
30
|
+
onClick = _ref.onClick,
|
|
31
|
+
label = _ref.label,
|
|
32
|
+
disabled = _ref.disabled,
|
|
33
|
+
error = _ref.error,
|
|
34
|
+
helper = _ref.helper,
|
|
35
|
+
width = _ref.width,
|
|
36
|
+
validation = _ref.validation,
|
|
37
|
+
percentageError = _ref.percentageError,
|
|
38
|
+
helperText = _ref.helperText,
|
|
39
|
+
fullWidth = _ref.fullWidth,
|
|
40
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
41
|
+
var _React$useState = _react["default"].useState(false),
|
|
42
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
43
|
+
showPassword = _React$useState2[0],
|
|
44
|
+
setShowPassword = _React$useState2[1];
|
|
66
45
|
var themeData = (0, _CouncilboxThemeContext.useCouncilboxTheme)();
|
|
67
|
-
|
|
68
46
|
var getColorPercent = function getColorPercent(percent) {
|
|
69
47
|
var color = themeData.theme.colors.error;
|
|
70
|
-
|
|
71
48
|
if (percent > 30 && percent < 90) {
|
|
72
49
|
color = 'var(--warning)';
|
|
73
50
|
}
|
|
74
|
-
|
|
75
51
|
if (percent >= 90) {
|
|
76
52
|
color = themeData.theme.colors.success;
|
|
77
53
|
}
|
|
78
|
-
|
|
79
54
|
return color;
|
|
80
55
|
};
|
|
81
|
-
|
|
82
|
-
|
|
56
|
+
var getStrengthLabel = function getStrengthLabel(percent) {
|
|
57
|
+
if (percent >= 90) return 'Segura';
|
|
58
|
+
if (percent > 30) return 'Media';
|
|
59
|
+
return 'Débil';
|
|
60
|
+
};
|
|
61
|
+
return /*#__PURE__*/_react["default"].createElement(_InputText["default"], _extends({
|
|
83
62
|
id: id,
|
|
84
63
|
fullWidth: fullWidth,
|
|
85
64
|
className: "".concat(className, " cbx-inputPassword-button-spacing"),
|
|
@@ -90,43 +69,49 @@ var InputPassword = function InputPassword(_ref) {
|
|
|
90
69
|
onKeyUp: onKeyUp,
|
|
91
70
|
helper: helper,
|
|
92
71
|
type: showPassword ? 'text' : 'password',
|
|
93
|
-
helperText: validation && /*#__PURE__*/_react
|
|
94
|
-
className: "cbx-inputPassword-validation"
|
|
95
|
-
|
|
72
|
+
helperText: validation && /*#__PURE__*/_react["default"].createElement("div", {
|
|
73
|
+
className: "cbx-inputPassword-validation",
|
|
74
|
+
role: "progressbar",
|
|
75
|
+
"aria-valuenow": percentageError,
|
|
76
|
+
"aria-valuemin": 0,
|
|
77
|
+
"aria-valuemax": 100,
|
|
78
|
+
"aria-label": "Seguridad de la contrase\xF1a: ".concat(getStrengthLabel(percentageError))
|
|
79
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
96
80
|
style: {
|
|
97
81
|
width: "".concat(percentageError, "%"),
|
|
98
82
|
background: getColorPercent(percentageError)
|
|
99
83
|
}
|
|
100
84
|
})),
|
|
101
85
|
InputProps: {
|
|
102
|
-
endAdornment: /*#__PURE__*/_react
|
|
86
|
+
endAdornment: /*#__PURE__*/_react["default"].createElement(_IconButton["default"], {
|
|
103
87
|
disabled: disabled,
|
|
104
88
|
onClick: function onClick() {
|
|
105
89
|
return !disabled && setShowPassword(!showPassword);
|
|
106
90
|
},
|
|
107
|
-
icon: /*#__PURE__*/_react
|
|
91
|
+
icon: /*#__PURE__*/_react["default"].createElement("i", {
|
|
108
92
|
style: {
|
|
109
93
|
color: 'black'
|
|
110
94
|
},
|
|
111
95
|
className: showPassword ? 'ri-eye-off-fill' : 'ri-eye-fill'
|
|
112
|
-
})
|
|
96
|
+
}),
|
|
97
|
+
"aria-label": showPassword ? 'Ocultar contraseña' : 'Mostrar contraseña',
|
|
98
|
+
"aria-pressed": showPassword
|
|
113
99
|
})
|
|
114
100
|
}
|
|
115
101
|
}, props));
|
|
116
102
|
};
|
|
117
|
-
|
|
118
103
|
InputPassword.displayName = "InputPassword";
|
|
119
104
|
InputPassword.propTypes = {
|
|
120
|
-
label: _propTypes
|
|
121
|
-
helper: _propTypes
|
|
122
|
-
width: _propTypes
|
|
123
|
-
id: _propTypes
|
|
124
|
-
className: _propTypes
|
|
125
|
-
onChange: _propTypes
|
|
126
|
-
disabled: _propTypes
|
|
127
|
-
error: _propTypes
|
|
128
|
-
validation: _propTypes
|
|
129
|
-
percentageError: _propTypes
|
|
105
|
+
label: _propTypes["default"].string,
|
|
106
|
+
helper: _propTypes["default"].string,
|
|
107
|
+
width: _propTypes["default"].string,
|
|
108
|
+
id: _propTypes["default"].string,
|
|
109
|
+
className: _propTypes["default"].string,
|
|
110
|
+
onChange: _propTypes["default"].func,
|
|
111
|
+
disabled: _propTypes["default"].bool,
|
|
112
|
+
error: _propTypes["default"].node,
|
|
113
|
+
validation: _propTypes["default"].bool,
|
|
114
|
+
percentageError: _propTypes["default"].number
|
|
130
115
|
};
|
|
131
116
|
InputPassword.defaultProps = {
|
|
132
117
|
label: 'Caption',
|
|
@@ -141,4 +126,4 @@ InputPassword.defaultProps = {
|
|
|
141
126
|
percentageError: 0
|
|
142
127
|
};
|
|
143
128
|
var _default = InputPassword;
|
|
144
|
-
exports
|
|
129
|
+
exports["default"] = _default;
|
|
@@ -3,17 +3,13 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports
|
|
7
|
-
|
|
6
|
+
exports["default"] = exports.Validation = exports.Helper = exports.ErrorTemplate = exports.Disabled = exports.Default = void 0;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
|
|
10
8
|
var _InputPassword = _interopRequireDefault(require("./InputPassword"));
|
|
11
|
-
|
|
12
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
|
-
|
|
9
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
10
|
var _default = {
|
|
15
11
|
title: 'Components/Input Password',
|
|
16
|
-
component: _InputPassword
|
|
12
|
+
component: _InputPassword["default"],
|
|
17
13
|
argTypes: {
|
|
18
14
|
variant: {
|
|
19
15
|
options: ['outlined', 'filled', 'standard'],
|
|
@@ -37,12 +33,10 @@ var _default = {
|
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
35
|
};
|
|
40
|
-
exports
|
|
41
|
-
|
|
36
|
+
exports["default"] = _default;
|
|
42
37
|
var Template = function Template(args) {
|
|
43
|
-
return /*#__PURE__*/_react
|
|
38
|
+
return /*#__PURE__*/_react["default"].createElement(_InputPassword["default"], args);
|
|
44
39
|
};
|
|
45
|
-
|
|
46
40
|
Template.displayName = "Template";
|
|
47
41
|
var Default = Template.bind({});
|
|
48
42
|
exports.Default = Default;
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.cbx-inputText-allContainer {
|
|
2
|
+
font-size: 1rem;
|
|
2
3
|
display: inline-flex;
|
|
3
4
|
flex-direction: column;
|
|
4
5
|
position: relative;
|
|
@@ -20,28 +21,37 @@
|
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
.cbx-inputText-label {
|
|
23
|
-
transition: all 0.1s ease-in-out;
|
|
24
|
-
color: var(--gray5);
|
|
25
24
|
position: absolute;
|
|
26
|
-
top:
|
|
27
|
-
left:
|
|
28
|
-
|
|
29
|
-
|
|
25
|
+
top: 0;
|
|
26
|
+
left: 0;
|
|
27
|
+
z-index: 1;
|
|
28
|
+
display: inline-flex;
|
|
29
|
+
align-items: center;
|
|
30
30
|
max-width: calc(100% - 28px);
|
|
31
|
+
font-size: 1rem;
|
|
32
|
+
line-height: 1.4375em;
|
|
33
|
+
font-family: var(--font-primary);
|
|
34
|
+
font-weight: 400;
|
|
35
|
+
color: var(--gray5);
|
|
31
36
|
white-space: nowrap;
|
|
32
37
|
overflow: hidden;
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
38
|
+
text-overflow: ellipsis;
|
|
39
|
+
pointer-events: none;
|
|
40
|
+
user-select: none;
|
|
41
|
+
transform: translate(12px, 13px) scale(1);
|
|
42
|
+
transform-origin: top left;
|
|
43
|
+
transition: color 200ms cubic-bezier(0, 0, 0.2, 1) 0ms,
|
|
44
|
+
transform 200ms cubic-bezier(0, 0, 0.2, 1) 0ms,
|
|
45
|
+
max-width 200ms cubic-bezier(0, 0, 0.2, 1) 0ms;
|
|
36
46
|
}
|
|
37
47
|
|
|
38
48
|
.cbx-inputText-label-standard {
|
|
39
|
-
|
|
49
|
+
transform: translate(0px, 13px) scale(1);
|
|
40
50
|
}
|
|
41
51
|
|
|
42
52
|
.cbx-inputText-required {
|
|
43
53
|
padding-left: 0.2rem;
|
|
44
|
-
flex-shrink: 0
|
|
54
|
+
flex-shrink: 0;
|
|
45
55
|
}
|
|
46
56
|
|
|
47
57
|
.cbx-inputText-label-text {
|
|
@@ -50,56 +60,34 @@
|
|
|
50
60
|
white-space: nowrap;
|
|
51
61
|
}
|
|
52
62
|
|
|
53
|
-
.cbx-inputText.cbx-inputText-outlined {
|
|
54
|
-
border-radius: 4px;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
.cbx-inputText-container-fullWidth {
|
|
58
|
-
width: 100%;
|
|
59
|
-
}
|
|
60
|
-
|
|
61
63
|
.cbx-input:focus~label.cbx-inputText-label,
|
|
62
|
-
.cbx-input.shrink~label.cbx-inputText-label
|
|
63
|
-
|
|
64
|
-
left: 13px !important;
|
|
65
|
-
transform: translate(3px, -2px) scale(0.75) !important;
|
|
66
|
-
padding: 0 6px;
|
|
67
|
-
opacity: 1;
|
|
64
|
+
.cbx-input.shrink~label.cbx-inputText-label,
|
|
65
|
+
.cbx-input:not(:placeholder-shown)~label.cbx-inputText-label {
|
|
68
66
|
color: var(--primary);
|
|
69
|
-
font-size: 1rem;
|
|
70
|
-
line-height: 1.4375em;
|
|
71
|
-
font-family: var(--font-primary);
|
|
72
|
-
font-weight: 400;
|
|
73
|
-
padding: 0;
|
|
74
|
-
position: relative;
|
|
75
|
-
display: flex;
|
|
76
|
-
align-items: center;
|
|
77
|
-
transform-origin: top left;
|
|
78
|
-
white-space: nowrap;
|
|
79
|
-
overflow: hidden;
|
|
80
|
-
text-overflow: ellipsis;
|
|
81
67
|
max-width: calc(133% - 32px);
|
|
82
|
-
position: absolute;
|
|
83
|
-
left: 0;
|
|
84
|
-
top: 0;
|
|
85
68
|
transform: translate(14px, -9px) scale(0.75);
|
|
86
|
-
transition: color 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms, transform 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms, max-width 200ms cubic-bezier(0.0, 0, 0.2, 1) 0ms;
|
|
87
|
-
z-index: 1;
|
|
88
69
|
pointer-events: auto;
|
|
89
|
-
user-select: none;
|
|
90
70
|
}
|
|
91
71
|
|
|
92
72
|
.cbx-inputText-standard:focus~label.cbx-inputText-label,
|
|
93
73
|
.cbx-inputText-standard.shrink~label.cbx-inputText-label,
|
|
94
|
-
.cbx-inputText-standard:not(:placeholder-shown)
|
|
95
|
-
|
|
74
|
+
.cbx-inputText-standard:not(:placeholder-shown)~label.cbx-inputText-label {
|
|
75
|
+
transform: translate(0px, -9px) scale(0.75);
|
|
96
76
|
}
|
|
97
77
|
|
|
98
|
-
.cbx-input:not(:placeholder-shown)
|
|
99
|
-
.cbx-input.shrink~label.cbx-inputText-label {
|
|
78
|
+
.cbx-input:not(:focus):not(:placeholder-shown)~label.cbx-inputText-label,
|
|
79
|
+
.cbx-input.shrink:not(:focus)~label.cbx-inputText-label {
|
|
100
80
|
color: var(--gray3);
|
|
101
81
|
}
|
|
102
82
|
|
|
83
|
+
.cbx-inputText.cbx-inputText-outlined {
|
|
84
|
+
border-radius: 4px;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.cbx-inputText-container-fullWidth {
|
|
88
|
+
width: 100%;
|
|
89
|
+
}
|
|
90
|
+
|
|
103
91
|
.cbx-inputText::placeholder {
|
|
104
92
|
transition: 0.2s;
|
|
105
93
|
opacity: 0;
|
|
@@ -138,6 +126,8 @@
|
|
|
138
126
|
max-height: 48px;
|
|
139
127
|
background: transparent;
|
|
140
128
|
color: var(--gray5);
|
|
129
|
+
position: relative;
|
|
130
|
+
z-index: 1;
|
|
141
131
|
}
|
|
142
132
|
|
|
143
133
|
.cbx-input.cbx-inputText-standard {
|
|
@@ -162,7 +152,8 @@
|
|
|
162
152
|
}
|
|
163
153
|
|
|
164
154
|
.cbx-inputText-fieldset {
|
|
165
|
-
|
|
155
|
+
font-size: 1rem;
|
|
156
|
+
transition: border-color 0.2s;
|
|
166
157
|
color: var(--gray5);
|
|
167
158
|
padding-right: var(--spacing8);
|
|
168
159
|
text-align: left;
|
|
@@ -179,6 +170,7 @@
|
|
|
179
170
|
border: none;
|
|
180
171
|
height: 53px;
|
|
181
172
|
max-height: 53px;
|
|
173
|
+
z-index: 0;
|
|
182
174
|
}
|
|
183
175
|
|
|
184
176
|
.cbx-inputText-fieldset-outlined {
|
|
@@ -201,12 +193,11 @@
|
|
|
201
193
|
}
|
|
202
194
|
|
|
203
195
|
.cbx-inputText-fieldset-outlined.hover {
|
|
204
|
-
border:
|
|
196
|
+
border-color: black;
|
|
205
197
|
}
|
|
206
198
|
|
|
207
199
|
.cbx-inputText-fieldset-outlined.focused {
|
|
208
200
|
border-radius: inherit;
|
|
209
|
-
border-style: solid;
|
|
210
201
|
border: 2px solid var(--primary);
|
|
211
202
|
border-radius: 4px;
|
|
212
203
|
height: 53px;
|
|
@@ -215,7 +206,7 @@
|
|
|
215
206
|
}
|
|
216
207
|
|
|
217
208
|
.cbx-inputText-fieldset-outlined.focusedNo.value {
|
|
218
|
-
border:
|
|
209
|
+
border-color: #bbbbbb;
|
|
219
210
|
}
|
|
220
211
|
|
|
221
212
|
.cbx-inputText-fieldset.focused legend,
|
|
@@ -226,12 +217,12 @@
|
|
|
226
217
|
display: block;
|
|
227
218
|
padding: 0;
|
|
228
219
|
height: 11px;
|
|
229
|
-
font-size: 0.75em;
|
|
230
220
|
visibility: hidden;
|
|
231
221
|
max-width: 100%;
|
|
232
222
|
transition: max-width 100ms cubic-bezier(0.0, 0, 0.2, 1) 50ms;
|
|
233
223
|
white-space: nowrap;
|
|
234
224
|
padding-left: 4px;
|
|
225
|
+
font-size: 1rem;
|
|
235
226
|
}
|
|
236
227
|
|
|
237
228
|
.cbx-inputText-fieldset legend,
|
|
@@ -245,7 +236,7 @@
|
|
|
245
236
|
visibility: hidden;
|
|
246
237
|
max-width: 0%;
|
|
247
238
|
height: 11px;
|
|
248
|
-
font-size:
|
|
239
|
+
font-size: 1rem;
|
|
249
240
|
transition: max-width 100ms cubic-bezier(0.0, 0, 0.2, 1) 50ms;
|
|
250
241
|
}
|
|
251
242
|
|
|
@@ -255,8 +246,8 @@
|
|
|
255
246
|
padding-right: 8px;
|
|
256
247
|
display: inline-block;
|
|
257
248
|
opacity: 0;
|
|
258
|
-
visibility:
|
|
259
|
-
font-size:
|
|
249
|
+
visibility: hidden;
|
|
250
|
+
font-size: 1rem;
|
|
260
251
|
white-space: nowrap;
|
|
261
252
|
}
|
|
262
253
|
|
|
@@ -301,8 +292,6 @@
|
|
|
301
292
|
position: absolute;
|
|
302
293
|
background: var(--primary);
|
|
303
294
|
transition: 0.2s ease all;
|
|
304
|
-
-moz-transition: 0.2s ease all;
|
|
305
|
-
-webkit-transition: 0.2s ease all;
|
|
306
295
|
}
|
|
307
296
|
|
|
308
297
|
.cbx-inputText-bar:before {
|
|
@@ -314,7 +303,9 @@
|
|
|
314
303
|
}
|
|
315
304
|
|
|
316
305
|
.cbx-input:focus~.cbx-inputText-bar:before,
|
|
317
|
-
.cbx-input:focus~.cbx-inputText-bar:after
|
|
306
|
+
.cbx-input:focus~.cbx-inputText-bar:after,
|
|
307
|
+
.cbx-inputText-bar.focused:before,
|
|
308
|
+
.cbx-inputText-bar.focused:after {
|
|
318
309
|
width: 50%;
|
|
319
310
|
}
|
|
320
311
|
|
|
@@ -354,38 +345,32 @@ textarea.cbx-inputText.cbx-inputText-standard~.cbx-inputText-fieldset-standard {
|
|
|
354
345
|
.cbx-inputText-label-hidden {
|
|
355
346
|
top: -10px !important;
|
|
356
347
|
left: 12px !important;
|
|
357
|
-
padding: 0
|
|
348
|
+
padding: 0;
|
|
358
349
|
opacity: 1;
|
|
359
|
-
font-size:
|
|
350
|
+
font-size: 12px;
|
|
360
351
|
line-height: 1.4375em;
|
|
361
352
|
font-family: var(--font-primary);
|
|
362
353
|
font-weight: 400;
|
|
363
|
-
padding: 0;
|
|
364
|
-
position: relative;
|
|
365
|
-
display: block;
|
|
366
|
-
transform-origin: top left;
|
|
367
|
-
white-space: nowrap;
|
|
368
|
-
overflow: hidden;
|
|
369
|
-
text-overflow: ellipsis;
|
|
370
|
-
max-width: calc(133% - 32px);
|
|
371
354
|
position: absolute;
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
z-index: 1;
|
|
375
|
-
pointer-events: auto;
|
|
376
|
-
-webkit-user-select: none;
|
|
355
|
+
display: inline-block;
|
|
356
|
+
white-space: nowrap;
|
|
377
357
|
visibility: hidden;
|
|
358
|
+
pointer-events: none;
|
|
378
359
|
user-select: none;
|
|
379
|
-
|
|
360
|
+
box-sizing: border-box;
|
|
380
361
|
}
|
|
381
362
|
|
|
382
363
|
.cbx-inputText-renderValue {
|
|
383
|
-
bottom: 0px;
|
|
384
|
-
left: 0px;
|
|
385
364
|
position: absolute;
|
|
386
|
-
|
|
365
|
+
width: 1px;
|
|
366
|
+
height: 1px;
|
|
367
|
+
padding: 0;
|
|
368
|
+
margin: -1px;
|
|
369
|
+
overflow: hidden;
|
|
370
|
+
clip: rect(0, 0, 0, 0);
|
|
371
|
+
white-space: nowrap;
|
|
372
|
+
border: 0;
|
|
387
373
|
pointer-events: none;
|
|
388
|
-
width: 100%;
|
|
389
374
|
box-sizing: border-box;
|
|
390
375
|
}
|
|
391
376
|
|
|
@@ -406,6 +391,8 @@ textarea.cbx-inputText.cbx-inputText-standard~.cbx-inputText-fieldset-standard {
|
|
|
406
391
|
}
|
|
407
392
|
|
|
408
393
|
.cbx-inputText-renderValue-block {
|
|
394
|
+
position: relative;
|
|
395
|
+
z-index: 1;
|
|
409
396
|
height: auto;
|
|
410
397
|
min-height: 1.4375em;
|
|
411
398
|
text-overflow: ellipsis;
|
|
@@ -420,10 +407,6 @@ textarea.cbx-inputText.cbx-inputText-standard~.cbx-inputText-fieldset-standard {
|
|
|
420
407
|
user-select: none;
|
|
421
408
|
}
|
|
422
409
|
|
|
423
|
-
.cbx-inputText-allContainer-standard .cbx-inputText-standard:not(:placeholder-shown)~.cbx-inputText-label {
|
|
424
|
-
left: -3px !important;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
410
|
.cbx-inputText-allContainer-standard .cbx-inputText-renderValue-block {
|
|
428
411
|
padding: 0px;
|
|
429
412
|
}
|
|
@@ -446,7 +429,17 @@ textarea.cbx-inputText.cbx-inputText-standard~.cbx-inputText-fieldset-standard {
|
|
|
446
429
|
}
|
|
447
430
|
|
|
448
431
|
.cbx-inputText-icon-startAdornment .cbx-inputText-label {
|
|
449
|
-
|
|
432
|
+
transform: translate(40px, 13px) scale(1);
|
|
433
|
+
}
|
|
434
|
+
|
|
435
|
+
.cbx-inputText-icon-startAdornment .cbx-input:focus~.cbx-inputText-label,
|
|
436
|
+
.cbx-inputText-icon-startAdornment .cbx-input.shrink~.cbx-inputText-label,
|
|
437
|
+
.cbx-inputText-icon-startAdornment .cbx-input:not(:placeholder-shown)~.cbx-inputText-label {
|
|
438
|
+
transform: translate(40px, -9px) scale(0.75);
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.cbx-inputText-icon-startAdornment .cbx-inputText-fieldset legend {
|
|
442
|
+
margin-left: 1.625rem;
|
|
450
443
|
}
|
|
451
444
|
|
|
452
445
|
.cbx-inputText-autocomplete-button-open {
|
|
@@ -455,4 +448,24 @@ textarea.cbx-inputText.cbx-inputText-standard~.cbx-inputText-fieldset-standard {
|
|
|
455
448
|
width: 1.25rem;
|
|
456
449
|
height: 2.125rem;
|
|
457
450
|
cursor: pointer;
|
|
451
|
+
background: transparent;
|
|
452
|
+
border: 0;
|
|
453
|
+
}
|
|
454
|
+
|
|
455
|
+
.cbx-inputText-allContainer-standard .cbx-inputText-label {
|
|
456
|
+
font-size: 16px;
|
|
457
|
+
transform: translate(0px, 13px) scale(1);
|
|
458
|
+
}
|
|
459
|
+
|
|
460
|
+
.cbx-inputText-standard:focus~label.cbx-inputText-label,
|
|
461
|
+
.cbx-inputText-standard.shrink~label.cbx-inputText-label,
|
|
462
|
+
.cbx-inputText-standard:not(:placeholder-shown)~label.cbx-inputText-label {
|
|
463
|
+
transform: translate(0px, -9px) scale(0.75);
|
|
464
|
+
max-width: calc(133% - 16px);
|
|
465
|
+
color: var(--primary);
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.cbx-inputText-standard:not(:focus):not(:placeholder-shown)~label.cbx-inputText-label,
|
|
469
|
+
.cbx-inputText-standard.shrink:not(:focus)~label.cbx-inputText-label {
|
|
470
|
+
color: var(--gray3);
|
|
458
471
|
}
|