@semcore/input 4.28.1 → 4.28.2
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/CHANGELOG.md +6 -0
- package/lib/cjs/Input.js +17 -17
- package/lib/cjs/index.d.js.map +1 -1
- package/lib/es6/Input.js +17 -17
- package/lib/es6/index.d.js.map +1 -1
- package/lib/types/index.d.ts +4 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/lib/cjs/Input.js
CHANGED
|
@@ -21,23 +21,23 @@ var _neighborLocation = _interopRequireDefault(require("@semcore/neighbor-locati
|
|
|
21
21
|
var _autoFocusEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/autoFocusEnhance"));
|
|
22
22
|
var _keyboardFocusEnhance = _interopRequireDefault(require("@semcore/utils/lib/enhances/keyboardFocusEnhance"));
|
|
23
23
|
/*__reshadow-styles__:"./style/input.shadow.css"*/
|
|
24
|
-
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".
|
|
25
|
-
"__SInput": "
|
|
26
|
-
"_disabled": "
|
|
27
|
-
"__SOutline": "
|
|
28
|
-
"__SValue": "
|
|
29
|
-
"__SAddon": "
|
|
30
|
-
"_size_m": "
|
|
31
|
-
"__SButton": "
|
|
32
|
-
"_size_l": "
|
|
33
|
-
"_focused": "
|
|
34
|
-
"_neighborLocation_right": "
|
|
35
|
-
"_neighborLocation_both": "
|
|
36
|
-
"_neighborLocation_left": "
|
|
37
|
-
"_interactive": "
|
|
38
|
-
"_state_normal": "
|
|
39
|
-
"_state_valid": "
|
|
40
|
-
"_state_invalid": "
|
|
24
|
+
var style = ( /*__reshadow_css_start__*/_index.sstyled.insert( /*__inner_css_start__*/".___SInput_hdm8o_gg_{display:inline-flex;width:100%;align-items:center;position:relative;z-index:0;vertical-align:middle;padding:1px;box-sizing:border-box}.___SInput_hdm8o_gg_ input:-webkit-autofill{border-radius:var(--intergalactic-control-rounded, 6px);-webkit-box-shadow:0 0 0 30px #faffbd inset}.___SInput_hdm8o_gg_ input:-webkit-autofill~.___SOutline_hdm8o_gg_{background-color:#faffbd}.___SValue_hdm8o_gg_{min-width:0;width:100%;height:100%;padding:0;border:0;box-sizing:border-box;color:var(--intergalactic-text-primary, #191b23);font-size:inherit;text-overflow:ellipsis;font-family:inherit;background:0 0}.___SValue_hdm8o_gg_:focus{outline:0}.___SValue_hdm8o_gg_::-moz-placeholder{color:var(--intergalactic-text-placeholder, #8a8e9b)}.___SValue_hdm8o_gg_::placeholder{color:var(--intergalactic-text-placeholder, #8a8e9b)}.___SValue_hdm8o_gg_:not(:disabled):-moz-read-only~.___SOutline_hdm8o_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SValue_hdm8o_gg_:not(:disabled):read-only~.___SOutline_hdm8o_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SValue_hdm8o_gg_:disabled{-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SInput_hdm8o_gg_.__disabled_hdm8o_gg_ .___SOutline_hdm8o_gg_,.___SValue_hdm8o_gg_:disabled~.___SOutline_hdm8o_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SOutline_hdm8o_gg_{position:absolute;top:0;right:0;bottom:0;left:0;border:1px solid;border-radius:var(--intergalactic-control-rounded, 6px);z-index:-1;background:var(--intergalactic-bg-primary-neutral, #ffffff)}.___SAddon_hdm8o_gg_{display:inline-flex;justify-content:center;align-items:center;flex:0 0 auto;padding:0 var(--intergalactic-spacing-2x, 8px);height:100%;color:var(--intergalactic-icon-secondary-neutral, #a9abb6)}.___SAddon_hdm8o_gg_.__interactive_hdm8o_gg_{cursor:pointer}@media (hover:hover){.___SAddon_hdm8o_gg_.__interactive_hdm8o_gg_:hover{color:var(--intergalactic-icon-secondary-neutral-hover-active, #878992)}}.___SAddon_hdm8o_gg_.__disabled_hdm8o_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SAddon_hdm8o_gg_._size_m_hdm8o_gg_:not(.___SButton_hdm8o_gg_){padding:0 var(--intergalactic-spacing-2x, 8px)}.___SAddon_hdm8o_gg_._size_l_hdm8o_gg_:not(.___SButton_hdm8o_gg_){padding:0 var(--intergalactic-spacing-2x, 8px)0 var(--intergalactic-spacing-3x, 12px)}.___SInput_hdm8o_gg_ .___SAddon_hdm8o_gg_:nth-last-child(2){margin-right:-1px}.___SValue_hdm8o_gg_._size_m_hdm8o_gg_{padding:0 var(--intergalactic-spacing-2x, 8px)}.___SValue_hdm8o_gg_._size_l_hdm8o_gg_{padding:0 var(--intergalactic-spacing-3x, 12px)}.___SInput_hdm8o_gg_._size_m_hdm8o_gg_{font-size:var(--intergalactic-fs-200, 14px);height:var(--intergalactic-form-control-m, 28px)}.___SInput_hdm8o_gg_._size_l_hdm8o_gg_{font-size:var(--intergalactic-fs-300, 16px);height:var(--intergalactic-form-control-l, 40px)}.___SInput_hdm8o_gg_.__focused_hdm8o_gg_{z-index:1}.___SInput_hdm8o_gg_._state_normal_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-color:var(--intergalactic-border-primary, #c4c7cf)}.___SInput_hdm8o_gg_._state_normal_hdm8o_gg_.__focused_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-color:var(--intergalactic-border-info-active, #006dca);box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SInput_hdm8o_gg_._state_valid_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-color:var(--intergalactic-border-success-active, #007c65)}.___SInput_hdm8o_gg_._state_valid_hdm8o_gg_.__focused_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-color:var(--intergalactic-border-success-active, #007c65);box-shadow:var(--intergalactic-keyboard-focus-valid, 0px 0px 0px 3px rgba(0, 159, 129, 0.5))}.___SInput_hdm8o_gg_._state_invalid_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-color:var(--intergalactic-border-critical-active, #d1002f)}.___SInput_hdm8o_gg_._state_invalid_hdm8o_gg_.__focused_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-color:var(--intergalactic-border-critical-active, #d1002f);box-shadow:var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.5))}.___SInput_hdm8o_gg_._neighborLocation_right_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SInput_hdm8o_gg_._neighborLocation_both_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-radius:0;border-left:none}.___SInput_hdm8o_gg_._neighborLocation_left_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-top-left-radius:0;border-bottom-left-radius:0;border-left:none}.___SValue_hdm8o_gg_._neighborLocation_right_hdm8o_gg_{padding-right:0}.___SValue_hdm8o_gg_._neighborLocation_both_hdm8o_gg_{padding-left:0;padding-right:0}.___SValue_hdm8o_gg_._neighborLocation_left_hdm8o_gg_{padding-left:0}" /*__inner_css_end__*/, "hdm8o_gg_") /*__reshadow_css_end__*/, {
|
|
25
|
+
"__SInput": "___SInput_hdm8o_gg_",
|
|
26
|
+
"_disabled": "__disabled_hdm8o_gg_",
|
|
27
|
+
"__SOutline": "___SOutline_hdm8o_gg_",
|
|
28
|
+
"__SValue": "___SValue_hdm8o_gg_",
|
|
29
|
+
"__SAddon": "___SAddon_hdm8o_gg_",
|
|
30
|
+
"_size_m": "_size_m_hdm8o_gg_",
|
|
31
|
+
"__SButton": "___SButton_hdm8o_gg_",
|
|
32
|
+
"_size_l": "_size_l_hdm8o_gg_",
|
|
33
|
+
"_focused": "__focused_hdm8o_gg_",
|
|
34
|
+
"_neighborLocation_right": "_neighborLocation_right_hdm8o_gg_",
|
|
35
|
+
"_neighborLocation_both": "_neighborLocation_both_hdm8o_gg_",
|
|
36
|
+
"_neighborLocation_left": "_neighborLocation_left_hdm8o_gg_",
|
|
37
|
+
"_interactive": "__interactive_hdm8o_gg_",
|
|
38
|
+
"_state_normal": "_state_normal_hdm8o_gg_",
|
|
39
|
+
"_state_valid": "_state_valid_hdm8o_gg_",
|
|
40
|
+
"_state_invalid": "_state_invalid_hdm8o_gg_"
|
|
41
41
|
});
|
|
42
42
|
var Input = /*#__PURE__*/function (_Component) {
|
|
43
43
|
(0, _inherits2["default"])(Input, _Component);
|
package/lib/cjs/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';\nimport { BoxProps } from '@semcore/flex-box';\nimport { NeighborItemProps, NeighborLocationProps } from '@semcore/neighbor-location';\nimport { WithAutoFocusEnhanceProps } from '@semcore/utils/lib/enhances/autoFocusEnhance';\n\nexport type InputSize = 'm' | 'l';\n\n/** @deprecated */\nexport interface IInputProps extends InputProps, UnknownProperties {}\nexport type InputProps = BoxProps &\n NeighborItemProps &\n NeighborLocationProps & {\n /**\n * Sets the input and addons to the disabled state\n * */\n disabled?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: InputSize;\n /**\n * Sets the input state\n * @default normal\n */\n state?: 'normal' | 'invalid' | 'valid';\n };\n\n/** @deprecated */\nexport interface IInputValueProps extends InputValueProps, UnknownProperties {}\nexport type InputValueProps = BoxProps &\n NeighborItemProps &\n WithAutoFocusEnhanceProps & {\n /**\n * Input value\n */\n value?: string;\n /**\n * Default value if `value` property is not provided\n */\n defaultValue?: string;\n /**\n * Handler for changing the value\n */\n onChange?: (value: string, event: React.SyntheticEvent<HTMLInputElement>) => void;\n /**\n * @deprecated Set `disabled` on `Input` instead.\n * */\n disabled?: boolean;\n /**\n * Sets the input to the read-only state\n * */\n readOnly?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: InputSize;\n };\n\n/** @deprecated */\nexport interface IInputAddonProps extends InputAddonProps, UnknownProperties {}\nexport type InputAddonProps = BoxProps &\n NeighborItemProps & {\n /**\n * Adds styles for interactive icons\n */\n interactive?: boolean;\n /**\n * Blocks the addon\n * */\n disabled?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: InputSize;\n };\n\n/** @deprecated */\nexport interface IInputCtx extends InputCtx, UnknownProperties {}\nexport type InputCtx = {\n getValueProps: PropGetterFn;\n getAddonProps: PropGetterFn;\n};\n\ndeclare const Input: Intergalactic.Component<'div', InputProps, InputCtx> & {\n Value: Intergalactic.Component<'input', InputValueProps>;\n Addon: Intergalactic.Component<'div', InputAddonProps>;\n};\nexport default Input;\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';\nimport { BoxProps } from '@semcore/flex-box';\nimport { NeighborItemProps, NeighborLocationProps } from '@semcore/neighbor-location';\nimport { WithAutoFocusEnhanceProps } from '@semcore/utils/lib/enhances/autoFocusEnhance';\n\nexport type InputSize = 'm' | 'l';\n\n/** @deprecated */\nexport interface IInputProps extends InputProps, UnknownProperties {}\nexport type InputProps = BoxProps &\n NeighborItemProps &\n NeighborLocationProps & {\n /**\n * Sets the input and addons to the disabled state\n * */\n disabled?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: InputSize;\n /**\n * Sets the input state\n * @default normal\n */\n state?: 'normal' | 'invalid' | 'valid';\n };\n\n/** @deprecated */\nexport interface IInputValueProps extends InputValueProps, UnknownProperties {}\nexport type InputValueProps = BoxProps &\n NeighborItemProps &\n WithAutoFocusEnhanceProps & {\n /**\n * Input value\n */\n value?: string;\n /**\n * Default value if `value` property is not provided\n */\n defaultValue?: string;\n /**\n * Handler for changing the value\n */\n onChange?: (value: string, event: React.SyntheticEvent<HTMLInputElement>) => void;\n /**\n * @deprecated Set `disabled` on `Input` instead.\n * */\n disabled?: boolean;\n /**\n * Sets the input to the read-only state\n * */\n readOnly?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: InputSize;\n /**\n * Placeholder for input\n */\n placeholder?: string;\n };\n\n/** @deprecated */\nexport interface IInputAddonProps extends InputAddonProps, UnknownProperties {}\nexport type InputAddonProps = BoxProps &\n NeighborItemProps & {\n /**\n * Adds styles for interactive icons\n */\n interactive?: boolean;\n /**\n * Blocks the addon\n * */\n disabled?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: InputSize;\n };\n\n/** @deprecated */\nexport interface IInputCtx extends InputCtx, UnknownProperties {}\nexport type InputCtx = {\n getValueProps: PropGetterFn;\n getAddonProps: PropGetterFn;\n};\n\ndeclare const Input: Intergalactic.Component<'div', InputProps, InputCtx> & {\n Value: Intergalactic.Component<'input', InputValueProps>;\n Addon: Intergalactic.Component<'div', InputAddonProps>;\n};\nexport default Input;\n"],"mappings":""}
|
package/lib/es6/Input.js
CHANGED
|
@@ -16,23 +16,23 @@ import NeighborLocation from '@semcore/neighbor-location';
|
|
|
16
16
|
import autoFocusEnhance from '@semcore/utils/lib/enhances/autoFocusEnhance';
|
|
17
17
|
import keyboardFocusEnhance from '@semcore/utils/lib/enhances/keyboardFocusEnhance';
|
|
18
18
|
/*__reshadow-styles__:"./style/input.shadow.css"*/
|
|
19
|
-
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".
|
|
20
|
-
"__SInput": "
|
|
21
|
-
"_disabled": "
|
|
22
|
-
"__SOutline": "
|
|
23
|
-
"__SValue": "
|
|
24
|
-
"__SAddon": "
|
|
25
|
-
"_size_m": "
|
|
26
|
-
"__SButton": "
|
|
27
|
-
"_size_l": "
|
|
28
|
-
"_focused": "
|
|
29
|
-
"_neighborLocation_right": "
|
|
30
|
-
"_neighborLocation_both": "
|
|
31
|
-
"_neighborLocation_left": "
|
|
32
|
-
"_interactive": "
|
|
33
|
-
"_state_normal": "
|
|
34
|
-
"_state_valid": "
|
|
35
|
-
"_state_invalid": "
|
|
19
|
+
var style = ( /*__reshadow_css_start__*/_sstyled.insert( /*__inner_css_start__*/".___SInput_hdm8o_gg_{display:inline-flex;width:100%;align-items:center;position:relative;z-index:0;vertical-align:middle;padding:1px;box-sizing:border-box}.___SInput_hdm8o_gg_ input:-webkit-autofill{border-radius:var(--intergalactic-control-rounded, 6px);-webkit-box-shadow:0 0 0 30px #faffbd inset}.___SInput_hdm8o_gg_ input:-webkit-autofill~.___SOutline_hdm8o_gg_{background-color:#faffbd}.___SValue_hdm8o_gg_{min-width:0;width:100%;height:100%;padding:0;border:0;box-sizing:border-box;color:var(--intergalactic-text-primary, #191b23);font-size:inherit;text-overflow:ellipsis;font-family:inherit;background:0 0}.___SValue_hdm8o_gg_:focus{outline:0}.___SValue_hdm8o_gg_::-moz-placeholder{color:var(--intergalactic-text-placeholder, #8a8e9b)}.___SValue_hdm8o_gg_::placeholder{color:var(--intergalactic-text-placeholder, #8a8e9b)}.___SValue_hdm8o_gg_:not(:disabled):-moz-read-only~.___SOutline_hdm8o_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SValue_hdm8o_gg_:not(:disabled):read-only~.___SOutline_hdm8o_gg_{background:var(--intergalactic-bg-secondary-neutral, #f4f5f9)}.___SValue_hdm8o_gg_:disabled{-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--intergalactic-disabled-opacity, 0.3)}.___SInput_hdm8o_gg_.__disabled_hdm8o_gg_ .___SOutline_hdm8o_gg_,.___SValue_hdm8o_gg_:disabled~.___SOutline_hdm8o_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SOutline_hdm8o_gg_{position:absolute;top:0;right:0;bottom:0;left:0;border:1px solid;border-radius:var(--intergalactic-control-rounded, 6px);z-index:-1;background:var(--intergalactic-bg-primary-neutral, #ffffff)}.___SAddon_hdm8o_gg_{display:inline-flex;justify-content:center;align-items:center;flex:0 0 auto;padding:0 var(--intergalactic-spacing-2x, 8px);height:100%;color:var(--intergalactic-icon-secondary-neutral, #a9abb6)}.___SAddon_hdm8o_gg_.__interactive_hdm8o_gg_{cursor:pointer}@media (hover:hover){.___SAddon_hdm8o_gg_.__interactive_hdm8o_gg_:hover{color:var(--intergalactic-icon-secondary-neutral-hover-active, #878992)}}.___SAddon_hdm8o_gg_.__disabled_hdm8o_gg_{opacity:var(--intergalactic-disabled-opacity, 0.3);cursor:default;pointer-events:none}.___SAddon_hdm8o_gg_._size_m_hdm8o_gg_:not(.___SButton_hdm8o_gg_){padding:0 var(--intergalactic-spacing-2x, 8px)}.___SAddon_hdm8o_gg_._size_l_hdm8o_gg_:not(.___SButton_hdm8o_gg_){padding:0 var(--intergalactic-spacing-2x, 8px)0 var(--intergalactic-spacing-3x, 12px)}.___SInput_hdm8o_gg_ .___SAddon_hdm8o_gg_:nth-last-child(2){margin-right:-1px}.___SValue_hdm8o_gg_._size_m_hdm8o_gg_{padding:0 var(--intergalactic-spacing-2x, 8px)}.___SValue_hdm8o_gg_._size_l_hdm8o_gg_{padding:0 var(--intergalactic-spacing-3x, 12px)}.___SInput_hdm8o_gg_._size_m_hdm8o_gg_{font-size:var(--intergalactic-fs-200, 14px);height:var(--intergalactic-form-control-m, 28px)}.___SInput_hdm8o_gg_._size_l_hdm8o_gg_{font-size:var(--intergalactic-fs-300, 16px);height:var(--intergalactic-form-control-l, 40px)}.___SInput_hdm8o_gg_.__focused_hdm8o_gg_{z-index:1}.___SInput_hdm8o_gg_._state_normal_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-color:var(--intergalactic-border-primary, #c4c7cf)}.___SInput_hdm8o_gg_._state_normal_hdm8o_gg_.__focused_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-color:var(--intergalactic-border-info-active, #006dca);box-shadow:var(--intergalactic-keyboard-focus, 0px 0px 0px 3px rgba(0, 143, 248, 0.5))}.___SInput_hdm8o_gg_._state_valid_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-color:var(--intergalactic-border-success-active, #007c65)}.___SInput_hdm8o_gg_._state_valid_hdm8o_gg_.__focused_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-color:var(--intergalactic-border-success-active, #007c65);box-shadow:var(--intergalactic-keyboard-focus-valid, 0px 0px 0px 3px rgba(0, 159, 129, 0.5))}.___SInput_hdm8o_gg_._state_invalid_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-color:var(--intergalactic-border-critical-active, #d1002f)}.___SInput_hdm8o_gg_._state_invalid_hdm8o_gg_.__focused_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-color:var(--intergalactic-border-critical-active, #d1002f);box-shadow:var(--intergalactic-keyboard-focus-invalid, 0px 0px 0px 3px rgba(255, 73, 83, 0.5))}.___SInput_hdm8o_gg_._neighborLocation_right_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-top-right-radius:0;border-bottom-right-radius:0}.___SInput_hdm8o_gg_._neighborLocation_both_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-radius:0;border-left:none}.___SInput_hdm8o_gg_._neighborLocation_left_hdm8o_gg_ .___SOutline_hdm8o_gg_{border-top-left-radius:0;border-bottom-left-radius:0;border-left:none}.___SValue_hdm8o_gg_._neighborLocation_right_hdm8o_gg_{padding-right:0}.___SValue_hdm8o_gg_._neighborLocation_both_hdm8o_gg_{padding-left:0;padding-right:0}.___SValue_hdm8o_gg_._neighborLocation_left_hdm8o_gg_{padding-left:0}" /*__inner_css_end__*/, "hdm8o_gg_") /*__reshadow_css_end__*/, {
|
|
20
|
+
"__SInput": "___SInput_hdm8o_gg_",
|
|
21
|
+
"_disabled": "__disabled_hdm8o_gg_",
|
|
22
|
+
"__SOutline": "___SOutline_hdm8o_gg_",
|
|
23
|
+
"__SValue": "___SValue_hdm8o_gg_",
|
|
24
|
+
"__SAddon": "___SAddon_hdm8o_gg_",
|
|
25
|
+
"_size_m": "_size_m_hdm8o_gg_",
|
|
26
|
+
"__SButton": "___SButton_hdm8o_gg_",
|
|
27
|
+
"_size_l": "_size_l_hdm8o_gg_",
|
|
28
|
+
"_focused": "__focused_hdm8o_gg_",
|
|
29
|
+
"_neighborLocation_right": "_neighborLocation_right_hdm8o_gg_",
|
|
30
|
+
"_neighborLocation_both": "_neighborLocation_both_hdm8o_gg_",
|
|
31
|
+
"_neighborLocation_left": "_neighborLocation_left_hdm8o_gg_",
|
|
32
|
+
"_interactive": "__interactive_hdm8o_gg_",
|
|
33
|
+
"_state_normal": "_state_normal_hdm8o_gg_",
|
|
34
|
+
"_state_valid": "_state_valid_hdm8o_gg_",
|
|
35
|
+
"_state_invalid": "_state_invalid_hdm8o_gg_"
|
|
36
36
|
});
|
|
37
37
|
var Input = /*#__PURE__*/function (_Component) {
|
|
38
38
|
_inherits(Input, _Component);
|
package/lib/es6/index.d.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';\nimport { BoxProps } from '@semcore/flex-box';\nimport { NeighborItemProps, NeighborLocationProps } from '@semcore/neighbor-location';\nimport { WithAutoFocusEnhanceProps } from '@semcore/utils/lib/enhances/autoFocusEnhance';\n\nexport type InputSize = 'm' | 'l';\n\n/** @deprecated */\nexport interface IInputProps extends InputProps, UnknownProperties {}\nexport type InputProps = BoxProps &\n NeighborItemProps &\n NeighborLocationProps & {\n /**\n * Sets the input and addons to the disabled state\n * */\n disabled?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: InputSize;\n /**\n * Sets the input state\n * @default normal\n */\n state?: 'normal' | 'invalid' | 'valid';\n };\n\n/** @deprecated */\nexport interface IInputValueProps extends InputValueProps, UnknownProperties {}\nexport type InputValueProps = BoxProps &\n NeighborItemProps &\n WithAutoFocusEnhanceProps & {\n /**\n * Input value\n */\n value?: string;\n /**\n * Default value if `value` property is not provided\n */\n defaultValue?: string;\n /**\n * Handler for changing the value\n */\n onChange?: (value: string, event: React.SyntheticEvent<HTMLInputElement>) => void;\n /**\n * @deprecated Set `disabled` on `Input` instead.\n * */\n disabled?: boolean;\n /**\n * Sets the input to the read-only state\n * */\n readOnly?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: InputSize;\n };\n\n/** @deprecated */\nexport interface IInputAddonProps extends InputAddonProps, UnknownProperties {}\nexport type InputAddonProps = BoxProps &\n NeighborItemProps & {\n /**\n * Adds styles for interactive icons\n */\n interactive?: boolean;\n /**\n * Blocks the addon\n * */\n disabled?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: InputSize;\n };\n\n/** @deprecated */\nexport interface IInputCtx extends InputCtx, UnknownProperties {}\nexport type InputCtx = {\n getValueProps: PropGetterFn;\n getAddonProps: PropGetterFn;\n};\n\ndeclare const Input: Intergalactic.Component<'div', InputProps, InputCtx> & {\n Value: Intergalactic.Component<'input', InputValueProps>;\n Addon: Intergalactic.Component<'div', InputAddonProps>;\n};\nexport default Input;\n"],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.js","names":[],"sources":["../../src/index.d.ts"],"sourcesContent":["import React from 'react';\nimport { Intergalactic, PropGetterFn, UnknownProperties } from '@semcore/core';\nimport { BoxProps } from '@semcore/flex-box';\nimport { NeighborItemProps, NeighborLocationProps } from '@semcore/neighbor-location';\nimport { WithAutoFocusEnhanceProps } from '@semcore/utils/lib/enhances/autoFocusEnhance';\n\nexport type InputSize = 'm' | 'l';\n\n/** @deprecated */\nexport interface IInputProps extends InputProps, UnknownProperties {}\nexport type InputProps = BoxProps &\n NeighborItemProps &\n NeighborLocationProps & {\n /**\n * Sets the input and addons to the disabled state\n * */\n disabled?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: InputSize;\n /**\n * Sets the input state\n * @default normal\n */\n state?: 'normal' | 'invalid' | 'valid';\n };\n\n/** @deprecated */\nexport interface IInputValueProps extends InputValueProps, UnknownProperties {}\nexport type InputValueProps = BoxProps &\n NeighborItemProps &\n WithAutoFocusEnhanceProps & {\n /**\n * Input value\n */\n value?: string;\n /**\n * Default value if `value` property is not provided\n */\n defaultValue?: string;\n /**\n * Handler for changing the value\n */\n onChange?: (value: string, event: React.SyntheticEvent<HTMLInputElement>) => void;\n /**\n * @deprecated Set `disabled` on `Input` instead.\n * */\n disabled?: boolean;\n /**\n * Sets the input to the read-only state\n * */\n readOnly?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: InputSize;\n /**\n * Placeholder for input\n */\n placeholder?: string;\n };\n\n/** @deprecated */\nexport interface IInputAddonProps extends InputAddonProps, UnknownProperties {}\nexport type InputAddonProps = BoxProps &\n NeighborItemProps & {\n /**\n * Adds styles for interactive icons\n */\n interactive?: boolean;\n /**\n * Blocks the addon\n * */\n disabled?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: InputSize;\n };\n\n/** @deprecated */\nexport interface IInputCtx extends InputCtx, UnknownProperties {}\nexport type InputCtx = {\n getValueProps: PropGetterFn;\n getAddonProps: PropGetterFn;\n};\n\ndeclare const Input: Intergalactic.Component<'div', InputProps, InputCtx> & {\n Value: Intergalactic.Component<'input', InputValueProps>;\n Addon: Intergalactic.Component<'div', InputAddonProps>;\n};\nexport default Input;\n"],"mappings":""}
|
package/lib/types/index.d.ts
CHANGED