linear-react-components-ui 1.1.24-beta.4 → 1.1.25-rc.1
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/lib/@types/ColorStyles.d.ts +1 -2
- package/lib/@types/Position.d.ts +1 -2
- package/lib/assets/styles/calendar.scss +137 -32
- package/lib/assets/styles/colorpicker.scss +6 -1
- package/lib/assets/styles/colors.scss +12 -48
- package/lib/assets/styles/file.scss +8 -0
- package/lib/assets/styles/table.scss +6 -0
- package/lib/buttons/ActivateButton.d.ts +0 -1
- package/lib/buttons/AddButton.d.ts +0 -1
- package/lib/buttons/Button.d.ts +0 -1
- package/lib/buttons/CancelButton.d.ts +0 -1
- package/lib/buttons/DangerButton.d.ts +0 -1
- package/lib/buttons/DefaultButton.d.ts +0 -1
- package/lib/buttons/DefaultButton.js +17 -32
- package/lib/buttons/DestroyButton.d.ts +0 -1
- package/lib/buttons/EditButton.d.ts +0 -1
- package/lib/buttons/InactivateButton.d.ts +0 -1
- package/lib/buttons/InfoButton.d.ts +0 -1
- package/lib/buttons/PrimaryButton.d.ts +0 -1
- package/lib/buttons/RestoreButton.d.ts +0 -1
- package/lib/buttons/SaveButton.d.ts +0 -1
- package/lib/buttons/SuccessButton.d.ts +0 -1
- package/lib/buttons/WarningButton.d.ts +0 -1
- package/lib/buttons/index.d.ts +0 -1
- package/lib/buttons/split_button/index.d.ts +0 -1
- package/lib/buttons/types.d.ts +5 -2
- package/lib/calendar/base/index.js +113 -40
- package/lib/dialog/base/index.js +2 -2
- package/lib/form/Field.d.ts +1 -1
- package/lib/form/FieldArray.d.ts +1 -1
- package/lib/form/FieldNumber.d.ts +1 -1
- package/lib/form/FieldPeriod.d.ts +1 -1
- package/lib/form/helpers.d.ts +1 -1
- package/lib/form/index.d.ts +1 -1
- package/lib/form/types.d.ts +1 -1
- package/lib/form/withFieldHOC.d.ts +1 -1
- package/lib/form/withFormSecurity.d.ts +1 -1
- package/lib/icons/helper.d.ts +0 -20
- package/lib/icons/helper.js +0 -20
- package/lib/icons/index.d.ts +6 -4
- package/lib/icons/index.js +9 -14
- package/lib/icons/types.d.ts +6 -3
- package/lib/index.d.ts +0 -1
- package/lib/inputs/base/InputTextBase.d.ts +1 -1
- package/lib/inputs/base/InputTextBase.js +8 -18
- package/lib/inputs/base/Label.d.ts +14 -0
- package/lib/inputs/base/Label.js +35 -0
- package/lib/inputs/base/helpers.d.ts +1 -1
- package/lib/inputs/base/types.d.ts +17 -6
- package/lib/inputs/color/index.js +1 -1
- package/lib/inputs/color/types.d.ts +1 -1
- package/lib/inputs/date/Dialog.d.ts +1 -1
- package/lib/inputs/date/Dropdown.d.ts +1 -1
- package/lib/inputs/date/index.d.ts +1 -1
- package/lib/inputs/date/types.d.ts +2 -2
- package/lib/inputs/errorMessage/index.d.ts +1 -1
- package/lib/inputs/file/DefaultFile.d.ts +1 -1
- package/lib/inputs/file/DefaultFile.js +27 -27
- package/lib/inputs/file/DragDropFile.d.ts +1 -1
- package/lib/inputs/file/File.d.ts +1 -1
- package/lib/inputs/file/File.js +1 -0
- package/lib/inputs/file/FileButtonSettings.d.ts +1 -1
- package/lib/inputs/file/FileButtonSettings.js +0 -1
- package/lib/inputs/file/helpers.d.ts +1 -1
- package/lib/inputs/file/index.d.ts +1 -1
- package/lib/inputs/file/types.d.ts +1 -1
- package/lib/inputs/inputHOC.d.ts +1 -1
- package/lib/inputs/mask/BaseMask.d.ts +1 -1
- package/lib/inputs/mask/Cnpj.d.ts +1 -1
- package/lib/inputs/mask/Cpf.d.ts +1 -1
- package/lib/inputs/mask/Phone.d.ts +1 -1
- package/lib/inputs/mask/ZipCode.d.ts +1 -1
- package/lib/inputs/mask/helpers.d.ts +1 -1
- package/lib/inputs/mask/index.d.ts +1 -1
- package/lib/inputs/mask/types.d.ts +2 -2
- package/lib/inputs/multiSelect/ActionButtons.d.ts +1 -1
- package/lib/inputs/multiSelect/Dropdown.d.ts +1 -1
- package/lib/inputs/multiSelect/helper.d.ts +1 -1
- package/lib/inputs/multiSelect/index.d.ts +1 -1
- package/lib/inputs/multiSelect/types.d.ts +2 -2
- package/lib/inputs/number/BaseNumber.d.ts +1 -1
- package/lib/inputs/number/Currency.d.ts +1 -1
- package/lib/inputs/number/Decimal.d.ts +1 -1
- package/lib/inputs/number/index.d.ts +1 -1
- package/lib/inputs/number/types.d.ts +3 -3
- package/lib/inputs/period/Dialog.d.ts +1 -1
- package/lib/inputs/period/Dropdown.d.ts +1 -1
- package/lib/inputs/period/PeriodList.d.ts +1 -1
- package/lib/inputs/period/helper.d.ts +1 -1
- package/lib/inputs/period/index.d.ts +1 -1
- package/lib/inputs/period/index.js +10 -8
- package/lib/inputs/period/types.d.ts +5 -2
- package/lib/inputs/search/index.d.ts +1 -1
- package/lib/inputs/search/index.js +6 -2
- package/lib/inputs/select/ActionButtons.d.ts +1 -1
- package/lib/inputs/select/Dropdown.d.ts +1 -1
- package/lib/inputs/select/helper.d.ts +1 -1
- package/lib/inputs/select/index.d.ts +1 -1
- package/lib/inputs/select/multiple/Selecteds.d.ts +1 -1
- package/lib/inputs/select/multiple/index.d.ts +1 -1
- package/lib/inputs/select/simple/index.d.ts +1 -1
- package/lib/inputs/select/types.d.ts +1 -1
- package/lib/inputs/text/index.d.ts +1 -1
- package/lib/inputs/text/types.d.ts +3 -2
- package/lib/inputs/textarea/index.d.ts +1 -1
- package/lib/inputs/textarea/types.d.ts +1 -1
- package/lib/inputs/types.d.ts +2 -1
- package/lib/internals/types.d.ts +17 -1
- package/lib/internals/withTooltip.d.ts +12 -0
- package/lib/internals/withTooltip.js +172 -0
- package/lib/labels/DangerLabel.d.ts +0 -1
- package/lib/labels/DefaultLabel.d.ts +5 -3
- package/lib/labels/DefaultLabel.js +7 -15
- package/lib/labels/InfoLabel.d.ts +0 -1
- package/lib/labels/PrimaryLabel.d.ts +0 -1
- package/lib/labels/SuccessLabel.d.ts +0 -1
- package/lib/labels/WarningLabel.d.ts +0 -1
- package/lib/labels/index.d.ts +2 -3
- package/lib/labels/types.d.ts +5 -2
- package/lib/list/Header.d.ts +0 -1
- package/lib/list/Item.d.ts +5 -3
- package/lib/list/Item.js +12 -17
- package/lib/list/helpers.d.ts +0 -1
- package/lib/list/index.d.ts +0 -1
- package/lib/list/types.d.ts +6 -4
- package/lib/menus/sidenav/ExpandMenu.d.ts +2 -2
- package/lib/menus/sidenav/MenuLink.d.ts +7 -4
- package/lib/menus/sidenav/MenuLink.js +11 -20
- package/lib/menus/sidenav/NavMenuGroup.d.ts +2 -2
- package/lib/menus/sidenav/NavMenuItem.d.ts +7 -4
- package/lib/menus/sidenav/NavMenuItem.js +12 -16
- package/lib/menus/sidenav/NavSubMenuItem.d.ts +2 -2
- package/lib/menus/sidenav/helpers.d.ts +2 -2
- package/lib/menus/sidenav/index.d.ts +2 -2
- package/lib/menus/sidenav/popup_menu_search/EmptyList.d.ts +2 -2
- package/lib/menus/sidenav/popup_menu_search/index.d.ts +2 -2
- package/lib/menus/sidenav/types.d.ts +6 -6
- package/lib/popover/PopoverText.js +2 -11
- package/lib/popover/index.js +0 -1
- package/lib/popover/types.d.ts +0 -1
- package/lib/table/index.js +18 -8
- package/lib/table/types.d.ts +1 -0
- package/lib/textContent/index.d.ts +11 -6
- package/lib/textContent/index.js +11 -20
- package/lib/tooltip/index.d.ts +3 -4
- package/lib/tooltip/index.js +53 -36
- package/lib/tooltip/types.d.ts +3 -25
- package/package.json +2 -3
- package/lib/BaseMask-0c14ef51.d.ts +0 -24
- package/lib/Cnpj-bde01dd0.d.ts +0 -18
- package/lib/Cpf-3fa496ad.d.ts +0 -18
- package/lib/Phone-2bb0b397.d.ts +0 -18
- package/lib/ZipCode-09460e18.d.ts +0 -13
- package/lib/assets/styles/checkbox2.scss +0 -199
- package/lib/assets/styles/datepicker2.scss +0 -338
- package/lib/assets/styles/numberfield.scss +0 -18
- package/lib/assets/styles/radiofield.scss +0 -185
- package/lib/assets/styles/selectfield.scss +0 -409
- package/lib/assets/styles/slot.scss +0 -34
- package/lib/assets/styles/textfield.scss +0 -147
- package/lib/calendar/base/Day.d.ts +0 -8
- package/lib/calendar/base/Day.js +0 -36
- package/lib/calendar/base/Month.d.ts +0 -8
- package/lib/calendar/base/Month.js +0 -39
- package/lib/calendar/base/Week.d.ts +0 -8
- package/lib/calendar/base/Week.js +0 -35
- package/lib/form2/helpers.d.ts +0 -8
- package/lib/form2/helpers.js +0 -41
- package/lib/form2/index.d.ts +0 -9
- package/lib/form2/index.js +0 -36
- package/lib/form2/types.d.ts +0 -125
- package/lib/form2/types.js +0 -5
- package/lib/form2/useForm/index.d.ts +0 -5
- package/lib/form2/useForm/index.js +0 -202
- package/lib/index-368f781f.d.ts +0 -15
- package/lib/index-3b70931d.d.ts +0 -44
- package/lib/index-789dd9a5.d.ts +0 -41
- package/lib/index-7ad68789.d.ts +0 -15
- package/lib/index-9e576346.d.ts +0 -23
- package/lib/index-c512803d.d.ts +0 -23
- package/lib/index-c9247c1f.d.ts +0 -15
- package/lib/index-ecafc8c6.d.ts +0 -30
- package/lib/inputs2/checkboxfield/index.d.ts +0 -7
- package/lib/inputs2/checkboxfield/index.js +0 -146
- package/lib/inputs2/colorfield/index.d.ts +0 -9
- package/lib/inputs2/colorfield/index.js +0 -119
- package/lib/inputs2/date/base/constants.d.ts +0 -7
- package/lib/inputs2/date/base/constants.js +0 -43
- package/lib/inputs2/date/base/index.d.ts +0 -12
- package/lib/inputs2/date/base/index.js +0 -179
- package/lib/inputs2/date/datefield/calendarbox.d.ts +0 -7
- package/lib/inputs2/date/datefield/calendarbox.js +0 -115
- package/lib/inputs2/date/datefield/context.d.ts +0 -14
- package/lib/inputs2/date/datefield/context.js +0 -15
- package/lib/inputs2/date/datefield/index.d.ts +0 -10
- package/lib/inputs2/date/datefield/index.js +0 -336
- package/lib/inputs2/date/datefield/triggers.d.ts +0 -8
- package/lib/inputs2/date/datefield/triggers.js +0 -47
- package/lib/inputs2/date/datefield/types.d.ts +0 -63
- package/lib/inputs2/date/datefield/types.js +0 -5
- package/lib/inputs2/date/dateperiodfield/calendarbox.d.ts +0 -7
- package/lib/inputs2/date/dateperiodfield/calendarbox.js +0 -136
- package/lib/inputs2/date/dateperiodfield/context.d.ts +0 -14
- package/lib/inputs2/date/dateperiodfield/context.js +0 -17
- package/lib/inputs2/date/dateperiodfield/index.d.ts +0 -10
- package/lib/inputs2/date/dateperiodfield/index.js +0 -593
- package/lib/inputs2/date/dateperiodfield/triggers.d.ts +0 -6
- package/lib/inputs2/date/dateperiodfield/triggers.js +0 -120
- package/lib/inputs2/date/dateperiodfield/types.d.ts +0 -101
- package/lib/inputs2/date/dateperiodfield/types.js +0 -19
- package/lib/inputs2/date/helpers.d.ts +0 -21
- package/lib/inputs2/date/helpers.js +0 -62
- package/lib/inputs2/date/types.d.ts +0 -60
- package/lib/inputs2/date/types.js +0 -19
- package/lib/inputs2/index.d.ts +0 -32
- package/lib/inputs2/index.js +0 -34
- package/lib/inputs2/mask/BaseMask.d.ts +0 -10
- package/lib/inputs2/mask/BaseMask.js +0 -95
- package/lib/inputs2/mask/Cnpj.d.ts +0 -11
- package/lib/inputs2/mask/Cnpj.js +0 -57
- package/lib/inputs2/mask/Cpf.d.ts +0 -11
- package/lib/inputs2/mask/Cpf.js +0 -53
- package/lib/inputs2/mask/Phone.d.ts +0 -11
- package/lib/inputs2/mask/Phone.js +0 -26
- package/lib/inputs2/mask/ZipCode.d.ts +0 -11
- package/lib/inputs2/mask/ZipCode.js +0 -23
- package/lib/inputs2/mask/helpers.d.ts +0 -4
- package/lib/inputs2/mask/helpers.js +0 -57
- package/lib/inputs2/numberfield/currency.d.ts +0 -13
- package/lib/inputs2/numberfield/currency.js +0 -91
- package/lib/inputs2/numberfield/decimal.d.ts +0 -13
- package/lib/inputs2/numberfield/decimal.js +0 -85
- package/lib/inputs2/numberfield/helpers.d.ts +0 -30
- package/lib/inputs2/numberfield/helpers.js +0 -53
- package/lib/inputs2/numberfield/index.d.ts +0 -12
- package/lib/inputs2/numberfield/index.js +0 -104
- package/lib/inputs2/numberfield/types.d.ts +0 -36
- package/lib/inputs2/numberfield/types.js +0 -5
- package/lib/inputs2/radiofield/index.d.ts +0 -9
- package/lib/inputs2/radiofield/index.js +0 -143
- package/lib/inputs2/radiofield/types.d.ts +0 -33
- package/lib/inputs2/radiofield/types.js +0 -5
- package/lib/inputs2/selectfield/context.d.ts +0 -38
- package/lib/inputs2/selectfield/context.js +0 -15
- package/lib/inputs2/selectfield/helpers.d.ts +0 -6
- package/lib/inputs2/selectfield/helpers.js +0 -25
- package/lib/inputs2/selectfield/index.d.ts +0 -10
- package/lib/inputs2/selectfield/index.js +0 -491
- package/lib/inputs2/selectfield/item.d.ts +0 -11
- package/lib/inputs2/selectfield/item.js +0 -85
- package/lib/inputs2/selectfield/listbox.d.ts +0 -7
- package/lib/inputs2/selectfield/listbox.js +0 -103
- package/lib/inputs2/selectfield/search.d.ts +0 -7
- package/lib/inputs2/selectfield/search.js +0 -71
- package/lib/inputs2/selectfield/selections.d.ts +0 -10
- package/lib/inputs2/selectfield/selections.js +0 -86
- package/lib/inputs2/selectfield/triggers.d.ts +0 -8
- package/lib/inputs2/selectfield/triggers.js +0 -100
- package/lib/inputs2/selectfield/types.d.ts +0 -54
- package/lib/inputs2/selectfield/types.js +0 -21
- package/lib/inputs2/slot/index.d.ts +0 -14
- package/lib/inputs2/slot/index.js +0 -47
- package/lib/inputs2/textfield/index.d.ts +0 -8
- package/lib/inputs2/textfield/index.js +0 -159
- package/lib/tooltip/TooltipContent.d.ts +0 -7
- package/lib/tooltip/TooltipContent.js +0 -65
- package/lib/tooltip/useTooltip.d.ts +0 -30
- package/lib/tooltip/useTooltip.js +0 -128
package/lib/index-9e576346.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
|
|
3
|
-
import { T as TextFieldInputProps } from './index-3b70931d.js';
|
|
4
|
-
|
|
5
|
-
interface ColorFieldInputProps extends TextFieldInputProps {
|
|
6
|
-
isTypeText?: boolean;
|
|
7
|
-
}
|
|
8
|
-
declare const Input: React__default.ForwardRefExoticComponent<ColorFieldInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
9
|
-
|
|
10
|
-
type index_ColorFieldInputProps = ColorFieldInputProps;
|
|
11
|
-
declare const index_Input: typeof Input;
|
|
12
|
-
declare const index_LeftSlot: typeof LeftSlot;
|
|
13
|
-
declare const index_RightSlot: typeof RightSlot;
|
|
14
|
-
declare namespace index {
|
|
15
|
-
export {
|
|
16
|
-
index_ColorFieldInputProps as ColorFieldInputProps,
|
|
17
|
-
index_Input as Input,
|
|
18
|
-
index_LeftSlot as LeftSlot,
|
|
19
|
-
index_RightSlot as RightSlot,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { ColorFieldInputProps as C, Input as I, index as i };
|
package/lib/index-c512803d.d.ts
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
|
|
3
|
-
import { Item } from './inputs2/selectfield/item.js';
|
|
4
|
-
import { SelectFieldInputProps } from './inputs2/selectfield/types.js';
|
|
5
|
-
|
|
6
|
-
declare const Input: React__default.ForwardRefExoticComponent<Pick<SelectFieldInputProps, "className" | "disabled" | "size" | "onClick" | "width" | "height" | "color" | "src" | "children" | "customClass" | "label" | "style" | "id" | "key" | "form" | "slot" | "title" | "pattern" | "name" | "tooltip" | "tooltipPosition" | "tooltipWidth" | "list" | "hidden" | "multiple" | "onKeyPress" | "role" | "tabIndex" | "alt" | "align" | "value" | "readOnly" | "permissionAttr" | "skeletonize" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "lang" | "nonce" | "placeholder" | "spellCheck" | "translate" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "property" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onResize" | "onResizeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "step" | "maxLength" | "required" | "hint" | "hintPosition" | "textAlign" | "onDeniedActions" | "gridLayout" | "accept" | "autoComplete" | "themePopover" | "popoverAlign" | "checked" | "showClearButton" | "searchOnDropdown" | "undigitable" | "openDropdownOnFocus" | "onSearch" | "striped" | "max" | "min" | "errors" | "capture" | "crossOrigin" | "enterKeyHint" | "minLength" | "customClassLabel" | "customClassWrapper" | "customClassInputContainer" | "externalSearch" | "notFoundFilterLabel" | "searchInputPlaceholder" | "multipleInputLabelEmpty" | "multipleInputLabelManySelection" | "dropdownAlignButton"> & React__default.RefAttributes<HTMLInputElement>>;
|
|
7
|
-
|
|
8
|
-
declare const index_Input: typeof Input;
|
|
9
|
-
declare const index_Item: typeof Item;
|
|
10
|
-
declare const index_LeftSlot: typeof LeftSlot;
|
|
11
|
-
declare const index_RightSlot: typeof RightSlot;
|
|
12
|
-
declare const index_SelectFieldInputProps: typeof SelectFieldInputProps;
|
|
13
|
-
declare namespace index {
|
|
14
|
-
export {
|
|
15
|
-
index_Input as Input,
|
|
16
|
-
index_Item as Item,
|
|
17
|
-
index_LeftSlot as LeftSlot,
|
|
18
|
-
index_RightSlot as RightSlot,
|
|
19
|
-
index_SelectFieldInputProps as SelectFieldInputProps,
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
export { Input as I, index as i };
|
package/lib/index-c9247c1f.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { DatePeriodFieldProps } from './inputs2/date/dateperiodfield/types.js';
|
|
3
|
-
|
|
4
|
-
declare const Input: React__default.ForwardRefExoticComponent<DatePeriodFieldProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
5
|
-
|
|
6
|
-
declare const index_DatePeriodFieldProps: typeof DatePeriodFieldProps;
|
|
7
|
-
declare const index_Input: typeof Input;
|
|
8
|
-
declare namespace index {
|
|
9
|
-
export {
|
|
10
|
-
index_DatePeriodFieldProps as DatePeriodFieldProps,
|
|
11
|
-
index_Input as Input,
|
|
12
|
-
};
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export { Input as I, index as i };
|
package/lib/index-ecafc8c6.d.ts
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { LeftSlot, RightSlot } from './inputs2/slot/index.js';
|
|
3
|
-
import { Decimal } from './inputs2/numberfield/decimal.js';
|
|
4
|
-
import { Currency } from './inputs2/numberfield/currency.js';
|
|
5
|
-
import { NumberFieldInputProps, CurrencyFieldInputProps, DecimalFieldInputProps } from './inputs2/numberfield/types.js';
|
|
6
|
-
|
|
7
|
-
declare const Input: React__default.ForwardRefExoticComponent<NumberFieldInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
8
|
-
|
|
9
|
-
declare const index_Currency: typeof Currency;
|
|
10
|
-
declare const index_CurrencyFieldInputProps: typeof CurrencyFieldInputProps;
|
|
11
|
-
declare const index_Decimal: typeof Decimal;
|
|
12
|
-
declare const index_DecimalFieldInputProps: typeof DecimalFieldInputProps;
|
|
13
|
-
declare const index_Input: typeof Input;
|
|
14
|
-
declare const index_LeftSlot: typeof LeftSlot;
|
|
15
|
-
declare const index_NumberFieldInputProps: typeof NumberFieldInputProps;
|
|
16
|
-
declare const index_RightSlot: typeof RightSlot;
|
|
17
|
-
declare namespace index {
|
|
18
|
-
export {
|
|
19
|
-
index_Currency as Currency,
|
|
20
|
-
index_CurrencyFieldInputProps as CurrencyFieldInputProps,
|
|
21
|
-
index_Decimal as Decimal,
|
|
22
|
-
index_DecimalFieldInputProps as DecimalFieldInputProps,
|
|
23
|
-
index_Input as Input,
|
|
24
|
-
index_LeftSlot as LeftSlot,
|
|
25
|
-
index_NumberFieldInputProps as NumberFieldInputProps,
|
|
26
|
-
index_RightSlot as RightSlot,
|
|
27
|
-
};
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
export { Input as I, index as i };
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
import '../../@types/Size.js';
|
|
3
|
-
import '../../@types/ColorStyles.js';
|
|
4
|
-
import '../../tooltip/types.js';
|
|
5
|
-
import '../../@types/Position.js';
|
|
6
|
-
import '../../@types/PermissionAttr.js';
|
|
7
|
-
export { C as CheckboxFieldInputProps, I as Input } from '../../index-789dd9a5.js';
|
|
@@ -1,146 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Input = void 0;
|
|
7
|
-
require("../../assets/styles/checkbox2.scss");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _lodash = _interopRequireDefault(require("lodash"));
|
|
10
|
-
var _hint = _interopRequireDefault(require("../../hint"));
|
|
11
|
-
var _icons = _interopRequireDefault(require("../../icons"));
|
|
12
|
-
var _gridlayout = _interopRequireDefault(require("../../gridlayout"));
|
|
13
|
-
var _popover = _interopRequireWildcard(require("../../popover"));
|
|
14
|
-
var _tooltip = require("../../tooltip");
|
|
15
|
-
var _permissionValidations = require("../../permissionValidations");
|
|
16
|
-
const _excluded = ["name", "label", "errors", "onChange", "size", "onDeniedActions", "permissionAttr", "variant", "customClass", "customClassLabel", "customClassWrapper", "labelUppercase", "rounded", "customClassInputContainer", "skeletonize", "hintPosition", "gridLayout", "themePopover", "popoverAlign", "tooltip", "tooltipPosition", "tooltipWidth"];
|
|
17
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
18
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
20
|
-
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); }
|
|
21
|
-
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; }
|
|
22
|
-
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; }
|
|
23
|
-
const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible, _permissionValidations.OPTIONS_ON_DENIED.readOnly, _permissionValidations.OPTIONS_ON_DENIED.hideContent];
|
|
24
|
-
const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
25
|
-
const {
|
|
26
|
-
name,
|
|
27
|
-
label,
|
|
28
|
-
errors,
|
|
29
|
-
onChange,
|
|
30
|
-
size = 'default',
|
|
31
|
-
onDeniedActions = undefined,
|
|
32
|
-
permissionAttr = undefined,
|
|
33
|
-
variant = 'default',
|
|
34
|
-
customClass = '',
|
|
35
|
-
customClassLabel = '',
|
|
36
|
-
customClassWrapper = '',
|
|
37
|
-
labelUppercase = false,
|
|
38
|
-
rounded = false,
|
|
39
|
-
customClassInputContainer = '',
|
|
40
|
-
skeletonize = false,
|
|
41
|
-
hintPosition = 'below',
|
|
42
|
-
gridLayout = undefined,
|
|
43
|
-
themePopover = 'light',
|
|
44
|
-
popoverAlign = 'left',
|
|
45
|
-
tooltip,
|
|
46
|
-
tooltipPosition,
|
|
47
|
-
tooltipWidth
|
|
48
|
-
} = props,
|
|
49
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
50
|
-
const onDenied = _react.default.useMemo(() => {
|
|
51
|
-
return onDeniedActions || (0, _permissionValidations.actionsOnPermissionDenied)(options, permissionAttr);
|
|
52
|
-
}, [onDeniedActions, permissionAttr]);
|
|
53
|
-
const {
|
|
54
|
-
hideContent,
|
|
55
|
-
unvisible
|
|
56
|
-
} = onDenied;
|
|
57
|
-
const inputId = _react.default.useMemo(() => props.id || `checkboxfield-${name}`, [props.id, name]);
|
|
58
|
-
const inputRootRef = _react.default.useRef(null);
|
|
59
|
-
const isChecked = props.checked ?? Boolean(props.value);
|
|
60
|
-
const hasLabel = !_lodash.default.isEmpty(props?.label);
|
|
61
|
-
const isReadOnly = Boolean(props.readOnly || onDenied.readOnly);
|
|
62
|
-
const isDisabled = Boolean(props.disabled || onDenied.disabled);
|
|
63
|
-
const hasHintMessages = Boolean(props.hint?.length);
|
|
64
|
-
const hasValidationErrors = Boolean(errors?.length);
|
|
65
|
-
const handleOnChange = _react.default.useCallback(event => {
|
|
66
|
-
if (isReadOnly || isDisabled) return;
|
|
67
|
-
Object.defineProperty(event.target, 'value', {
|
|
68
|
-
value: event.target.checked,
|
|
69
|
-
writable: true,
|
|
70
|
-
enumerable: true,
|
|
71
|
-
configurable: true
|
|
72
|
-
});
|
|
73
|
-
onChange?.(event);
|
|
74
|
-
}, [isReadOnly, isDisabled, onChange]);
|
|
75
|
-
if (unvisible || hideContent) return null;
|
|
76
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_gridlayout.default, {
|
|
77
|
-
cols: gridLayout
|
|
78
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
79
|
-
ref: inputRootRef,
|
|
80
|
-
className: `checkbox-field-root ${customClassWrapper}`,
|
|
81
|
-
"data-state-error": hasValidationErrors
|
|
82
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
83
|
-
"data-state-skeletonize": skeletonize,
|
|
84
|
-
className: `container ${customClassInputContainer}`
|
|
85
|
-
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
86
|
-
className: "input-root"
|
|
87
|
-
}, /*#__PURE__*/_react.default.createElement("input", _extends({
|
|
88
|
-
ref: ref,
|
|
89
|
-
id: inputId,
|
|
90
|
-
name: name,
|
|
91
|
-
readOnly: isReadOnly,
|
|
92
|
-
disabled: isDisabled,
|
|
93
|
-
className: `input ${customClass}`,
|
|
94
|
-
tabIndex: !isReadOnly ? 0 : -1,
|
|
95
|
-
"data-state-size": size,
|
|
96
|
-
"data-state-error": hasValidationErrors,
|
|
97
|
-
"data-state-variant": variant,
|
|
98
|
-
"data-state-rounded": rounded,
|
|
99
|
-
"data-state-read-only": isReadOnly,
|
|
100
|
-
"data-state-skeletonize": skeletonize
|
|
101
|
-
}, rest, {
|
|
102
|
-
type: "checkbox",
|
|
103
|
-
checked: isChecked,
|
|
104
|
-
onChange: handleOnChange
|
|
105
|
-
})), /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
106
|
-
customClass: "checkmark",
|
|
107
|
-
name: "checkmark",
|
|
108
|
-
colorStyle: "default"
|
|
109
|
-
})), hasLabel && /*#__PURE__*/_react.default.createElement("label", {
|
|
110
|
-
className: `label ${customClassLabel}`,
|
|
111
|
-
title: label,
|
|
112
|
-
htmlFor: inputId,
|
|
113
|
-
"aria-readonly": isReadOnly,
|
|
114
|
-
"aria-disabled": isDisabled,
|
|
115
|
-
"data-state-skeletonize": skeletonize,
|
|
116
|
-
"data-state-disabled": isDisabled,
|
|
117
|
-
"data-state-read-only": isReadOnly,
|
|
118
|
-
"data-state-uppercase": labelUppercase,
|
|
119
|
-
"data-state-input-required": props.required
|
|
120
|
-
}, label), hasLabel && hasHintMessages && hintPosition === 'onLabelRight' && !skeletonize && /*#__PURE__*/_react.default.createElement(_popover.default, {
|
|
121
|
-
customClass: "label-popover",
|
|
122
|
-
theme: themePopover,
|
|
123
|
-
align: popoverAlign,
|
|
124
|
-
iconColor: "#03bde2"
|
|
125
|
-
}, /*#__PURE__*/_react.default.createElement(_popover.PopoverText, {
|
|
126
|
-
text: props?.hint
|
|
127
|
-
}))), hintPosition === 'below' && /*#__PURE__*/_react.default.createElement(_hint.default, {
|
|
128
|
-
customClass: "hint",
|
|
129
|
-
description: props.hint,
|
|
130
|
-
disabled: isDisabled,
|
|
131
|
-
skeletonize: skeletonize,
|
|
132
|
-
visible: hasHintMessages
|
|
133
|
-
}), hasValidationErrors && /*#__PURE__*/_react.default.createElement("span", {
|
|
134
|
-
className: "error",
|
|
135
|
-
"data-state-skeletonize": skeletonize,
|
|
136
|
-
"aria-describedby": String(name).concat('-errors')
|
|
137
|
-
}, errors?.map((error, index) => /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
138
|
-
key: `${index + 1}-${error}`
|
|
139
|
-
}, error, "\xA0"))))), /*#__PURE__*/_react.default.createElement(_tooltip.Tooltip, {
|
|
140
|
-
targetRef: inputRootRef,
|
|
141
|
-
text: tooltip,
|
|
142
|
-
width: tooltipWidth,
|
|
143
|
-
position: tooltipPosition
|
|
144
|
-
}));
|
|
145
|
-
});
|
|
146
|
-
Input.displayName = 'CheckboxFieldInput';
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import 'react';
|
|
2
|
-
export { LeftSlot, RightSlot } from '../slot/index.js';
|
|
3
|
-
import '../../index-3b70931d.js';
|
|
4
|
-
export { C as ColorFieldInputProps, I as Input } from '../../index-9e576346.js';
|
|
5
|
-
import '../../@types/Align.js';
|
|
6
|
-
import '../../@types/ColorStyles.js';
|
|
7
|
-
import '../../@types/Position.js';
|
|
8
|
-
import '../../@types/PermissionAttr.js';
|
|
9
|
-
import '../../tooltip/types.js';
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Input = void 0;
|
|
7
|
-
Object.defineProperty(exports, "LeftSlot", {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: function () {
|
|
10
|
-
return _slot.LeftSlot;
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
Object.defineProperty(exports, "RightSlot", {
|
|
14
|
-
enumerable: true,
|
|
15
|
-
get: function () {
|
|
16
|
-
return _slot.RightSlot;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
require("../../assets/styles/colorpicker.scss");
|
|
20
|
-
var _react = _interopRequireDefault(require("react"));
|
|
21
|
-
var _slot = require("../slot");
|
|
22
|
-
var TextField = _interopRequireWildcard(require("../textfield"));
|
|
23
|
-
var _buttons = _interopRequireDefault(require("../../../lib/buttons"));
|
|
24
|
-
var _permissionValidations = require("../../../lib/permissionValidations");
|
|
25
|
-
const _excluded = ["name", "isTypeText", "defaultValue", "onChange", "permissionAttr", "onDeniedActions"];
|
|
26
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
27
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
28
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
29
|
-
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); }
|
|
30
|
-
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; }
|
|
31
|
-
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; }
|
|
32
|
-
const options = [_permissionValidations.OPTIONS_ON_DENIED.disabled, _permissionValidations.OPTIONS_ON_DENIED.unvisible, _permissionValidations.OPTIONS_ON_DENIED.readOnly, _permissionValidations.OPTIONS_ON_DENIED.hideContent];
|
|
33
|
-
const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
34
|
-
const {
|
|
35
|
-
name,
|
|
36
|
-
isTypeText = true,
|
|
37
|
-
defaultValue = '',
|
|
38
|
-
onChange,
|
|
39
|
-
permissionAttr = undefined,
|
|
40
|
-
onDeniedActions = undefined
|
|
41
|
-
} = props,
|
|
42
|
-
restProps = _objectWithoutProperties(props, _excluded);
|
|
43
|
-
const inputRefText = _react.default.useRef(null);
|
|
44
|
-
const inputRefColor = _react.default.useRef(null);
|
|
45
|
-
const mirrorRef = _react.default.useRef(null);
|
|
46
|
-
const onDenied = _react.default.useMemo(() => {
|
|
47
|
-
return onDeniedActions || (0, _permissionValidations.actionsOnPermissionDenied)(options, permissionAttr);
|
|
48
|
-
}, [onDeniedActions, permissionAttr]);
|
|
49
|
-
const {
|
|
50
|
-
hideContent,
|
|
51
|
-
unvisible
|
|
52
|
-
} = onDenied;
|
|
53
|
-
const syncColorValues = _react.default.useCallback(value => {
|
|
54
|
-
if (mirrorRef.current) {
|
|
55
|
-
mirrorRef.current.style.backgroundColor = value;
|
|
56
|
-
}
|
|
57
|
-
if (inputRefText.current && inputRefText.current.value !== value) {
|
|
58
|
-
inputRefText.current.value = value;
|
|
59
|
-
}
|
|
60
|
-
if (inputRefColor.current && inputRefColor.current.value !== value) {
|
|
61
|
-
inputRefColor.current.value = value;
|
|
62
|
-
}
|
|
63
|
-
}, []);
|
|
64
|
-
const handleTextInputChange = e => {
|
|
65
|
-
const newValue = e.target.value;
|
|
66
|
-
syncColorValues(newValue);
|
|
67
|
-
onChange?.(e);
|
|
68
|
-
};
|
|
69
|
-
const handleColorInputChange = e => {
|
|
70
|
-
const newValue = e.target.value;
|
|
71
|
-
syncColorValues(newValue);
|
|
72
|
-
onChange?.(e);
|
|
73
|
-
};
|
|
74
|
-
const onPaletteButtonClick = () => {
|
|
75
|
-
inputRefColor.current?.click();
|
|
76
|
-
};
|
|
77
|
-
_react.default.useLayoutEffect(() => {
|
|
78
|
-
syncColorValues(String(defaultValue));
|
|
79
|
-
}, [defaultValue, syncColorValues]);
|
|
80
|
-
if (unvisible || hideContent) return null;
|
|
81
|
-
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(TextField.Input, _extends({}, restProps, {
|
|
82
|
-
ref: ref,
|
|
83
|
-
name: name,
|
|
84
|
-
type: isTypeText ? 'text' : 'color',
|
|
85
|
-
defaultValue: String(defaultValue),
|
|
86
|
-
style: {
|
|
87
|
-
borderLeft: '1px solid #eeee'
|
|
88
|
-
},
|
|
89
|
-
onChange: handleTextInputChange
|
|
90
|
-
}), isTypeText && /*#__PURE__*/_react.default.createElement(_slot.LeftSlot, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
91
|
-
style: {
|
|
92
|
-
backgroundColor: String(defaultValue)
|
|
93
|
-
},
|
|
94
|
-
ref: mirrorRef,
|
|
95
|
-
className: "colorpicker-colormirror"
|
|
96
|
-
})), isTypeText && /*#__PURE__*/_react.default.createElement(_slot.RightSlot, null, /*#__PURE__*/_react.default.createElement(_buttons.default, {
|
|
97
|
-
className: "colorpicker-palettebutton",
|
|
98
|
-
onClick: onPaletteButtonClick,
|
|
99
|
-
onKeyDown: e => {
|
|
100
|
-
if (e.code === 'Space' || e.key === ' ') {
|
|
101
|
-
e.preventDefault();
|
|
102
|
-
onPaletteButtonClick();
|
|
103
|
-
}
|
|
104
|
-
},
|
|
105
|
-
iconName: "pallete"
|
|
106
|
-
}))), isTypeText && /*#__PURE__*/_react.default.createElement("input", {
|
|
107
|
-
ref: inputRefColor,
|
|
108
|
-
type: "color",
|
|
109
|
-
style: {
|
|
110
|
-
position: 'absolute',
|
|
111
|
-
opacity: 0,
|
|
112
|
-
pointerEvents: 'none'
|
|
113
|
-
},
|
|
114
|
-
defaultValue: String(defaultValue),
|
|
115
|
-
onChange: handleColorInputChange,
|
|
116
|
-
tabIndex: -1
|
|
117
|
-
}));
|
|
118
|
-
});
|
|
119
|
-
Input.displayName = 'ColorFieldInput';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.useCalendarPosition = void 0;
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
9
|
-
const useCalendarPosition = (calendarBoxOpen, containerRef) => {
|
|
10
|
-
const [calendarBoxStyles, setCalendarBoxStyles] = _react.default.useState({});
|
|
11
|
-
_react.default.useEffect(() => {
|
|
12
|
-
const updatePosition = () => {
|
|
13
|
-
const selectPositionOnScreen = containerRef.current?.getBoundingClientRect();
|
|
14
|
-
if (selectPositionOnScreen) {
|
|
15
|
-
const {
|
|
16
|
-
top,
|
|
17
|
-
left,
|
|
18
|
-
width,
|
|
19
|
-
height
|
|
20
|
-
} = selectPositionOnScreen;
|
|
21
|
-
setCalendarBoxStyles({
|
|
22
|
-
top: top + height + window.scrollY,
|
|
23
|
-
left: left + window.scrollX,
|
|
24
|
-
width: width,
|
|
25
|
-
position: 'absolute'
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
if (calendarBoxOpen) {
|
|
30
|
-
updatePosition();
|
|
31
|
-
window.addEventListener('resize', updatePosition);
|
|
32
|
-
window.addEventListener('scroll', updatePosition, true);
|
|
33
|
-
}
|
|
34
|
-
return () => {
|
|
35
|
-
window.removeEventListener('resize', updatePosition);
|
|
36
|
-
window.removeEventListener('scroll', updatePosition, true);
|
|
37
|
-
};
|
|
38
|
-
}, [calendarBoxOpen, containerRef]);
|
|
39
|
-
return {
|
|
40
|
-
calendarBoxStyles
|
|
41
|
-
};
|
|
42
|
-
};
|
|
43
|
-
exports.useCalendarPosition = useCalendarPosition;
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React__default from 'react';
|
|
2
|
-
import { BaseDateInputRootProps, BaseDateInputLabelProps, BaseDateInputContainerProps, BaseDateInputProps, BaseDateInputTriggersProps } from '../types.js';
|
|
3
|
-
import '../../../@types/ColorStyles.js';
|
|
4
|
-
import '../../../@types/Position.js';
|
|
5
|
-
|
|
6
|
-
declare const Root: React__default.ForwardRefExoticComponent<BaseDateInputRootProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
7
|
-
declare const Label: React__default.ForwardRefExoticComponent<BaseDateInputLabelProps & React__default.RefAttributes<HTMLSpanElement>>;
|
|
8
|
-
declare const Container: React__default.ForwardRefExoticComponent<BaseDateInputContainerProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
9
|
-
declare const Input: React__default.ForwardRefExoticComponent<BaseDateInputProps & React__default.RefAttributes<HTMLInputElement>>;
|
|
10
|
-
declare const Triggers: React__default.ForwardRefExoticComponent<BaseDateInputTriggersProps & React__default.RefAttributes<HTMLDivElement>>;
|
|
11
|
-
|
|
12
|
-
export { Container, Input, Label, Root, Triggers };
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.Triggers = exports.Root = exports.Label = exports.Input = exports.Container = void 0;
|
|
7
|
-
require("../../../assets/styles/datepicker2.scss");
|
|
8
|
-
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var _icons = _interopRequireDefault(require("../../../icons"));
|
|
10
|
-
var _popover = _interopRequireWildcard(require("../../../popover"));
|
|
11
|
-
const _excluded = ["children", "customClassWrapper", "hasValidationErrors"],
|
|
12
|
-
_excluded2 = ["hint", "label", "inputId", "isDisabled", "isReadOnly", "required", "hasHintMessages", "labelUppercase", "skeletonize", "hintPosition", "themePopover", "popoverAlign", "customClassLabel"],
|
|
13
|
-
_excluded3 = ["children", "skeletonize", "customClassInputContainer"],
|
|
14
|
-
_excluded4 = ["customClass"],
|
|
15
|
-
_excluded5 = ["children", "isReadOnly", "isDisabled", "skeletonize", "inputFieldId", "calendarBoxOpen", "showCalendarButton", "showClearButton", "onClearSelectedDate", "onClickTriggerCalendar", "hasValidDateSelection", "hasValidPeriodSelected", "clearButtonTestId", "calendarButtonTestId"];
|
|
16
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
17
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
-
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); }
|
|
20
|
-
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; }
|
|
21
|
-
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; }
|
|
22
|
-
const Root = exports.Root = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
23
|
-
const {
|
|
24
|
-
children,
|
|
25
|
-
customClassWrapper = '',
|
|
26
|
-
hasValidationErrors = false
|
|
27
|
-
} = props,
|
|
28
|
-
rest = _objectWithoutProperties(props, _excluded);
|
|
29
|
-
return /*#__PURE__*/_react.default.createElement("div", _extends({}, rest, {
|
|
30
|
-
ref: ref,
|
|
31
|
-
"data-state-error": hasValidationErrors,
|
|
32
|
-
className: `date-field-root ${customClassWrapper}`
|
|
33
|
-
}), children);
|
|
34
|
-
});
|
|
35
|
-
Root.displayName = 'BaseDateRoot';
|
|
36
|
-
const Label = exports.Label = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
37
|
-
const {
|
|
38
|
-
hint,
|
|
39
|
-
label,
|
|
40
|
-
inputId,
|
|
41
|
-
isDisabled = false,
|
|
42
|
-
isReadOnly = false,
|
|
43
|
-
required = false,
|
|
44
|
-
hasHintMessages = false,
|
|
45
|
-
labelUppercase = false,
|
|
46
|
-
skeletonize = false,
|
|
47
|
-
hintPosition = 'below',
|
|
48
|
-
themePopover = 'light',
|
|
49
|
-
popoverAlign = 'left',
|
|
50
|
-
customClassLabel = ''
|
|
51
|
-
} = props,
|
|
52
|
-
rest = _objectWithoutProperties(props, _excluded2);
|
|
53
|
-
return /*#__PURE__*/_react.default.createElement("span", _extends({}, rest, {
|
|
54
|
-
ref: ref,
|
|
55
|
-
className: `root-label ${customClassLabel}`,
|
|
56
|
-
"data-state-skeletonize": skeletonize
|
|
57
|
-
}), /*#__PURE__*/_react.default.createElement("label", {
|
|
58
|
-
className: "label",
|
|
59
|
-
title: label,
|
|
60
|
-
htmlFor: inputId,
|
|
61
|
-
"aria-disabled": isDisabled,
|
|
62
|
-
"data-state-disabled": isDisabled,
|
|
63
|
-
"data-state-read-only": isReadOnly,
|
|
64
|
-
"data-state-input-required": required,
|
|
65
|
-
"data-state-label-uppercase": labelUppercase
|
|
66
|
-
}, label), hasHintMessages && hintPosition === 'onLabelRight' && !skeletonize && /*#__PURE__*/_react.default.createElement(_popover.default, {
|
|
67
|
-
customClass: "label-popover",
|
|
68
|
-
theme: themePopover,
|
|
69
|
-
align: popoverAlign,
|
|
70
|
-
iconColor: "#03bde2"
|
|
71
|
-
}, /*#__PURE__*/_react.default.createElement(_popover.PopoverText, {
|
|
72
|
-
text: hint
|
|
73
|
-
})));
|
|
74
|
-
});
|
|
75
|
-
Label.displayName = 'BaseDateLabel';
|
|
76
|
-
const Container = exports.Container = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
77
|
-
const {
|
|
78
|
-
children,
|
|
79
|
-
skeletonize = false,
|
|
80
|
-
customClassInputContainer = ''
|
|
81
|
-
} = props,
|
|
82
|
-
rest = _objectWithoutProperties(props, _excluded3);
|
|
83
|
-
return /*#__PURE__*/_react.default.createElement("div", _extends({}, rest, {
|
|
84
|
-
ref: ref,
|
|
85
|
-
"data-state-skeletonize": skeletonize,
|
|
86
|
-
className: `container ${customClassInputContainer}`
|
|
87
|
-
}), children);
|
|
88
|
-
});
|
|
89
|
-
Container.displayName = 'BaseDateContainer';
|
|
90
|
-
const Input = exports.Input = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
91
|
-
const {
|
|
92
|
-
customClass = ''
|
|
93
|
-
} = props,
|
|
94
|
-
rest = _objectWithoutProperties(props, _excluded4);
|
|
95
|
-
return /*#__PURE__*/_react.default.createElement("input", _extends({}, rest, {
|
|
96
|
-
ref: ref,
|
|
97
|
-
multiple: false,
|
|
98
|
-
type: "text",
|
|
99
|
-
role: "combobox",
|
|
100
|
-
"aria-haspopup": "true",
|
|
101
|
-
className: `input ${customClass}`,
|
|
102
|
-
"aria-autocomplete": "list"
|
|
103
|
-
}));
|
|
104
|
-
});
|
|
105
|
-
Input.displayName = 'BaseDateInput';
|
|
106
|
-
const Triggers = exports.Triggers = /*#__PURE__*/_react.default.forwardRef((props, ref) => {
|
|
107
|
-
const {
|
|
108
|
-
children,
|
|
109
|
-
isReadOnly,
|
|
110
|
-
isDisabled,
|
|
111
|
-
skeletonize,
|
|
112
|
-
inputFieldId,
|
|
113
|
-
calendarBoxOpen,
|
|
114
|
-
showCalendarButton,
|
|
115
|
-
showClearButton,
|
|
116
|
-
onClearSelectedDate,
|
|
117
|
-
onClickTriggerCalendar,
|
|
118
|
-
hasValidDateSelection = false,
|
|
119
|
-
hasValidPeriodSelected = false,
|
|
120
|
-
clearButtonTestId = 'test-date-trigger-clear',
|
|
121
|
-
calendarButtonTestId = 'test-date-trigger-open-calendar'
|
|
122
|
-
} = props,
|
|
123
|
-
rest = _objectWithoutProperties(props, _excluded5);
|
|
124
|
-
const ariaLabel = !calendarBoxOpen ? 'Abrir Calendário' : 'Fechar Calendário';
|
|
125
|
-
const shouldHavePermitClickOnTrigger = !isReadOnly && !isDisabled;
|
|
126
|
-
const handleOnClickClear = event => {
|
|
127
|
-
if (!shouldHavePermitClickOnTrigger) {
|
|
128
|
-
event.preventDefault();
|
|
129
|
-
} else {
|
|
130
|
-
onClearSelectedDate();
|
|
131
|
-
}
|
|
132
|
-
};
|
|
133
|
-
return /*#__PURE__*/_react.default.createElement("div", _extends({}, rest, {
|
|
134
|
-
ref: ref,
|
|
135
|
-
className: "triggers",
|
|
136
|
-
"data-state-disabled": isDisabled,
|
|
137
|
-
"data-state-read-only": isReadOnly,
|
|
138
|
-
"data-state-skeletonize": skeletonize
|
|
139
|
-
}), /*#__PURE__*/_react.default.createElement("button", {
|
|
140
|
-
"data-testid": clearButtonTestId,
|
|
141
|
-
className: "clear-selected-date",
|
|
142
|
-
type: "button",
|
|
143
|
-
title: "Limpar Data Selecionada",
|
|
144
|
-
tabIndex: -1,
|
|
145
|
-
disabled: isDisabled,
|
|
146
|
-
"aria-readonly": isReadOnly,
|
|
147
|
-
"aria-label": "Limpar Data Selecionada",
|
|
148
|
-
"aria-controls": inputFieldId,
|
|
149
|
-
"data-state-read-only": isReadOnly,
|
|
150
|
-
"data-state-visible": showClearButton,
|
|
151
|
-
"data-state-valid-date-selected": hasValidDateSelection,
|
|
152
|
-
"data-state-valid-period-selected": hasValidPeriodSelected,
|
|
153
|
-
onClick: handleOnClickClear,
|
|
154
|
-
onMouseDown: event => {
|
|
155
|
-
event.preventDefault();
|
|
156
|
-
}
|
|
157
|
-
}, /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
158
|
-
name: "cancel"
|
|
159
|
-
})), /*#__PURE__*/_react.default.createElement("button", {
|
|
160
|
-
"data-testid": calendarButtonTestId,
|
|
161
|
-
className: "open-calendar",
|
|
162
|
-
type: "button",
|
|
163
|
-
title: ariaLabel,
|
|
164
|
-
tabIndex: -1,
|
|
165
|
-
disabled: isDisabled,
|
|
166
|
-
"aria-readonly": isReadOnly,
|
|
167
|
-
"aria-label": ariaLabel,
|
|
168
|
-
"aria-controls": inputFieldId,
|
|
169
|
-
"data-state-visible": showCalendarButton,
|
|
170
|
-
"data-state-read-only": isReadOnly,
|
|
171
|
-
onClick: onClickTriggerCalendar,
|
|
172
|
-
onMouseDown: event => {
|
|
173
|
-
event.preventDefault();
|
|
174
|
-
}
|
|
175
|
-
}, /*#__PURE__*/_react.default.createElement(_icons.default, {
|
|
176
|
-
name: "calendar"
|
|
177
|
-
})), children);
|
|
178
|
-
});
|
|
179
|
-
Triggers.displayName = 'BaseDateTriggers';
|