@semcore/inline-input 17.0.0-prerelease.27 → 17.0.0-prerelease.30

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 CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  CHANGELOG.md standards are inspired by [keepachangelog.com](https://keepachangelog.com/en/1.0.0/).
4
4
 
5
- ## [17.0.0] - 2026-02-23
5
+ ## [17.0.0] - 2026-03-09
6
6
 
7
7
  ### BREAK
8
8
 
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["_InlineInput","_interopRequireDefault","require","_default","exports","default","InlineInputBase"],"sources":["../../src/index.ts"],"sourcesContent":["import type { InlineInputProps } from './index.type';\nimport InlineInputBase from './InlineInput';\n\nexport default InlineInputBase;\n\nexport type { InlineInputProps };\n"],"mappings":";;;;;;;AACA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4C,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE7BC,oBAAe","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["_InlineInput","_interopRequireDefault","require","_default","exports","default","InlineInputBase"],"sources":["../../src/index.ts"],"sourcesContent":["import type { InlineInputProps, InlineInputValueProps } from './index.type';\nimport InlineInputBase from './InlineInput';\n\nexport default InlineInputBase;\n\nexport type { InlineInputProps, InlineInputValueProps };\n"],"mappings":";;;;;;;AACA,IAAAA,YAAA,GAAAC,sBAAA,CAAAC,OAAA;AAA4C,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAE7BC,oBAAe","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.type.js","names":[],"sources":["../../src/index.type.ts"],"sourcesContent":["import type { BoxProps } from '@semcore/base-components';\nimport type { ButtonLinkComponent } from '@semcore/button';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { InputNumberControlsProps } from '@semcore/input-number';\nimport type React from 'react';\n\nexport type InlineInputProps = BoxProps & {\n /**\n * Visual state of inline input\n * @default normal\n */\n state?: 'normal' | 'valid' | 'invalid';\n /**\n * Disabled input and shows spinner instead of confirm control\n * @default false\n */\n loading?: boolean;\n /**\n * Disabled input and controls\n * @default false\n */\n disabled?: boolean;\n /**\n * Fired with entered value when user clicks confirm control or hits `Enter` or `Space`\n */\n onConfirm?: (\n value: string,\n event: React.MouseEvent | React.FocusEvent | React.KeyboardEvent,\n ) => void;\n /**\n * Fired with value (or defaultValue) that was provided during component mount when user clicks cancel control or hits `Escape`\n */\n onCancel?: (\n prevValue: string,\n event: React.MouseEvent | React.FocusEvent | React.KeyboardEvent,\n ) => void;\n /**\n * Text value of input. Should be used with `onChange` property together\n */\n value?: string;\n /**\n * Initial text value of input\n */\n defaultValue?: string;\n /**\n * Makes component to catch browser focus on component mount\n * @default false\n */\n autoFocus?: boolean;\n /**\n * Gray text displayed in empty input\n */\n placeholder?: string;\n /**\n * defines callback (`onCancel` or `onConfirm`) triggered when `blur` event out of container fired\n * Triggered after all previous macrotasks completed (internally called inside of `setTimeout`)\n */\n onBlurBehavior?: 'cancel' | 'confirm' | 'none';\n /** Specifies the locale for i18n support */\n locale?: string;\n};\n\nexport type InlineInputAddonProps = BoxProps & {};\n\nexport type InlineInputValueProps = BoxProps & {\n /**\n * id attribute of input tag\n */\n id?: string;\n /**\n * when `true`, element is focused immediately after mount\n */\n autoFocus?: boolean;\n /**\n * value of input tag\n */\n value?: string;\n /**\n * uncontrolled value of input tag\n */\n defaultValue?: string;\n /**\n * callback invoked on every change of input tag value\n */\n onChange?: (value: string, event: React.ChangeEvent) => void;\n /**\n * visual state of component\n */\n state?: 'normal' | 'valid' | 'invalid';\n /**\n * shows spinner in `InlineInput.ConfirmControl` and disables other interactive elements\n */\n loading?: boolean;\n /**\n * disables interactive elements\n */\n disabled?: boolean;\n /**\n * gray text in empty input tag\n */\n placeholder?: string;\n};\n\nexport type InlineInputConfirmControlProps = BoxProps & {\n /**\n * Text of tooltip\n * @default Confirm\n */\n title?: string;\n /**\n * Icon component\n * @default CheckM\n */\n icon?: React.FC;\n};\n\nexport type InlineInputCancelControlProps = BoxProps & {\n /**\n * Text of tooltip\n * @default Cancel\n */\n title?: string;\n /**\n * Icon component\n * @default CloseM\n */\n icon?: React.FC;\n};\n\ntype InlineInputCtx = {\n getAddonProps: PropGetterFn;\n getConfirmControlProps: PropGetterFn;\n getCancelControlProps: PropGetterFn;\n getValueProps: PropGetterFn;\n};\n\nexport type InlineInputComponent = Intergalactic.Component<'div', InlineInputProps, InlineInputCtx> & {\n Addon: Intergalactic.Component<'div', InlineInputAddonProps, InlineInputProps>;\n Value: Intergalactic.Component<'input', InlineInputValueProps, InlineInputProps>;\n ConfirmControl: Intergalactic.Component<\n ButtonLinkComponent,\n InlineInputConfirmControlProps,\n InlineInputProps\n >;\n CancelControl: Intergalactic.Component<\n ButtonLinkComponent,\n InlineInputCancelControlProps,\n InlineInputProps\n >;\n NumberValue: Intergalactic.Component<'div', {}, InlineInputProps>;\n NumberControls: Intergalactic.Component<'div', InputNumberControlsProps, InlineInputProps>;\n};\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"index.type.js","names":[],"sources":["../../src/index.type.ts"],"sourcesContent":["import type { BoxProps } from '@semcore/base-components';\nimport type { ButtonLinkComponent } from '@semcore/button';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { InputNumberControlsProps } from '@semcore/input-number';\nimport type React from 'react';\n\nexport type InlineInputProps = BoxProps & {\n /**\n * Visual state of inline input\n * @default normal\n */\n state?: 'normal' | 'valid' | 'invalid';\n /**\n * Disabled input and shows spinner instead of confirm control\n * @default false\n */\n loading?: boolean;\n /**\n * Disabled input and controls\n * @default false\n */\n disabled?: boolean;\n /**\n * Fired with entered value when user clicks confirm control or hits `Enter` or `Space`\n */\n onConfirm?: (\n value: string,\n event: React.MouseEvent | React.FocusEvent | React.KeyboardEvent,\n ) => void;\n /**\n * Fired with value (or defaultValue) that was provided during component mount when user clicks cancel control or hits `Escape`\n */\n onCancel?: (\n prevValue: string,\n event: React.MouseEvent | React.FocusEvent | React.KeyboardEvent,\n ) => void;\n /**\n * defines callback (`onCancel` or `onConfirm`) triggered when `blur` event out of container fired\n * Triggered after all previous macrotasks completed (internally called inside of `setTimeout`)\n */\n onBlurBehavior?: 'cancel' | 'confirm' | 'none';\n /** Specifies the locale for i18n support */\n locale?: string;\n};\n\nexport type InlineInputAddonProps = BoxProps & {};\n\nexport type InlineInputValueProps = BoxProps & {\n /**\n * id attribute of input tag\n */\n id?: string;\n /**\n * when `true`, element is focused immediately after mount\n */\n autoFocus?: boolean;\n /**\n * value of input tag\n */\n value?: string;\n /**\n * uncontrolled value of input tag\n */\n defaultValue?: string;\n /**\n * callback invoked on every change of input tag value\n */\n onChange?: (value: string, event: React.ChangeEvent) => void;\n /**\n * disables interactive elements\n */\n disabled?: boolean;\n /**\n * gray text in empty input tag\n */\n placeholder?: string;\n};\n\nexport type InlineInputConfirmControlProps = BoxProps & {\n /**\n * Text of tooltip\n * @default Confirm\n */\n title?: string;\n /**\n * Icon component\n * @default CheckM\n */\n icon?: React.FC;\n};\n\nexport type InlineInputCancelControlProps = BoxProps & {\n /**\n * Text of tooltip\n * @default Cancel\n */\n title?: string;\n /**\n * Icon component\n * @default CloseM\n */\n icon?: React.FC;\n};\n\ntype InlineInputCtx = {\n getAddonProps: PropGetterFn;\n getConfirmControlProps: PropGetterFn;\n getCancelControlProps: PropGetterFn;\n getValueProps: PropGetterFn;\n};\n\nexport type InlineInputComponent = Intergalactic.Component<'div', InlineInputProps, InlineInputCtx> & {\n Addon: Intergalactic.Component<'div', InlineInputAddonProps, InlineInputProps>;\n Value: Intergalactic.Component<'input', InlineInputValueProps, InlineInputProps>;\n ConfirmControl: Intergalactic.Component<\n ButtonLinkComponent,\n InlineInputConfirmControlProps,\n InlineInputProps\n >;\n CancelControl: Intergalactic.Component<\n ButtonLinkComponent,\n InlineInputCancelControlProps,\n InlineInputProps\n >;\n NumberValue: Intergalactic.Component<'div', {}, InlineInputProps>;\n NumberControls: Intergalactic.Component<'div', InputNumberControlsProps, InlineInputProps>;\n};\n"],"mappings":"","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["InlineInputBase"],"sources":["../../src/index.ts"],"sourcesContent":["import type { InlineInputProps } from './index.type';\nimport InlineInputBase from './InlineInput';\n\nexport default InlineInputBase;\n\nexport type { InlineInputProps };\n"],"mappings":"AACA,OAAOA,eAAe,MAAM,eAAe;AAE3C,eAAeA,eAAe","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["InlineInputBase"],"sources":["../../src/index.ts"],"sourcesContent":["import type { InlineInputProps, InlineInputValueProps } from './index.type';\nimport InlineInputBase from './InlineInput';\n\nexport default InlineInputBase;\n\nexport type { InlineInputProps, InlineInputValueProps };\n"],"mappings":"AACA,OAAOA,eAAe,MAAM,eAAe;AAE3C,eAAeA,eAAe","ignoreList":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"index.type.js","names":[],"sources":["../../src/index.type.ts"],"sourcesContent":["import type { BoxProps } from '@semcore/base-components';\nimport type { ButtonLinkComponent } from '@semcore/button';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { InputNumberControlsProps } from '@semcore/input-number';\nimport type React from 'react';\n\nexport type InlineInputProps = BoxProps & {\n /**\n * Visual state of inline input\n * @default normal\n */\n state?: 'normal' | 'valid' | 'invalid';\n /**\n * Disabled input and shows spinner instead of confirm control\n * @default false\n */\n loading?: boolean;\n /**\n * Disabled input and controls\n * @default false\n */\n disabled?: boolean;\n /**\n * Fired with entered value when user clicks confirm control or hits `Enter` or `Space`\n */\n onConfirm?: (\n value: string,\n event: React.MouseEvent | React.FocusEvent | React.KeyboardEvent,\n ) => void;\n /**\n * Fired with value (or defaultValue) that was provided during component mount when user clicks cancel control or hits `Escape`\n */\n onCancel?: (\n prevValue: string,\n event: React.MouseEvent | React.FocusEvent | React.KeyboardEvent,\n ) => void;\n /**\n * Text value of input. Should be used with `onChange` property together\n */\n value?: string;\n /**\n * Initial text value of input\n */\n defaultValue?: string;\n /**\n * Makes component to catch browser focus on component mount\n * @default false\n */\n autoFocus?: boolean;\n /**\n * Gray text displayed in empty input\n */\n placeholder?: string;\n /**\n * defines callback (`onCancel` or `onConfirm`) triggered when `blur` event out of container fired\n * Triggered after all previous macrotasks completed (internally called inside of `setTimeout`)\n */\n onBlurBehavior?: 'cancel' | 'confirm' | 'none';\n /** Specifies the locale for i18n support */\n locale?: string;\n};\n\nexport type InlineInputAddonProps = BoxProps & {};\n\nexport type InlineInputValueProps = BoxProps & {\n /**\n * id attribute of input tag\n */\n id?: string;\n /**\n * when `true`, element is focused immediately after mount\n */\n autoFocus?: boolean;\n /**\n * value of input tag\n */\n value?: string;\n /**\n * uncontrolled value of input tag\n */\n defaultValue?: string;\n /**\n * callback invoked on every change of input tag value\n */\n onChange?: (value: string, event: React.ChangeEvent) => void;\n /**\n * visual state of component\n */\n state?: 'normal' | 'valid' | 'invalid';\n /**\n * shows spinner in `InlineInput.ConfirmControl` and disables other interactive elements\n */\n loading?: boolean;\n /**\n * disables interactive elements\n */\n disabled?: boolean;\n /**\n * gray text in empty input tag\n */\n placeholder?: string;\n};\n\nexport type InlineInputConfirmControlProps = BoxProps & {\n /**\n * Text of tooltip\n * @default Confirm\n */\n title?: string;\n /**\n * Icon component\n * @default CheckM\n */\n icon?: React.FC;\n};\n\nexport type InlineInputCancelControlProps = BoxProps & {\n /**\n * Text of tooltip\n * @default Cancel\n */\n title?: string;\n /**\n * Icon component\n * @default CloseM\n */\n icon?: React.FC;\n};\n\ntype InlineInputCtx = {\n getAddonProps: PropGetterFn;\n getConfirmControlProps: PropGetterFn;\n getCancelControlProps: PropGetterFn;\n getValueProps: PropGetterFn;\n};\n\nexport type InlineInputComponent = Intergalactic.Component<'div', InlineInputProps, InlineInputCtx> & {\n Addon: Intergalactic.Component<'div', InlineInputAddonProps, InlineInputProps>;\n Value: Intergalactic.Component<'input', InlineInputValueProps, InlineInputProps>;\n ConfirmControl: Intergalactic.Component<\n ButtonLinkComponent,\n InlineInputConfirmControlProps,\n InlineInputProps\n >;\n CancelControl: Intergalactic.Component<\n ButtonLinkComponent,\n InlineInputCancelControlProps,\n InlineInputProps\n >;\n NumberValue: Intergalactic.Component<'div', {}, InlineInputProps>;\n NumberControls: Intergalactic.Component<'div', InputNumberControlsProps, InlineInputProps>;\n};\n"],"mappings":"","ignoreList":[]}
1
+ {"version":3,"file":"index.type.js","names":[],"sources":["../../src/index.type.ts"],"sourcesContent":["import type { BoxProps } from '@semcore/base-components';\nimport type { ButtonLinkComponent } from '@semcore/button';\nimport type { PropGetterFn, Intergalactic } from '@semcore/core';\nimport type { InputNumberControlsProps } from '@semcore/input-number';\nimport type React from 'react';\n\nexport type InlineInputProps = BoxProps & {\n /**\n * Visual state of inline input\n * @default normal\n */\n state?: 'normal' | 'valid' | 'invalid';\n /**\n * Disabled input and shows spinner instead of confirm control\n * @default false\n */\n loading?: boolean;\n /**\n * Disabled input and controls\n * @default false\n */\n disabled?: boolean;\n /**\n * Fired with entered value when user clicks confirm control or hits `Enter` or `Space`\n */\n onConfirm?: (\n value: string,\n event: React.MouseEvent | React.FocusEvent | React.KeyboardEvent,\n ) => void;\n /**\n * Fired with value (or defaultValue) that was provided during component mount when user clicks cancel control or hits `Escape`\n */\n onCancel?: (\n prevValue: string,\n event: React.MouseEvent | React.FocusEvent | React.KeyboardEvent,\n ) => void;\n /**\n * defines callback (`onCancel` or `onConfirm`) triggered when `blur` event out of container fired\n * Triggered after all previous macrotasks completed (internally called inside of `setTimeout`)\n */\n onBlurBehavior?: 'cancel' | 'confirm' | 'none';\n /** Specifies the locale for i18n support */\n locale?: string;\n};\n\nexport type InlineInputAddonProps = BoxProps & {};\n\nexport type InlineInputValueProps = BoxProps & {\n /**\n * id attribute of input tag\n */\n id?: string;\n /**\n * when `true`, element is focused immediately after mount\n */\n autoFocus?: boolean;\n /**\n * value of input tag\n */\n value?: string;\n /**\n * uncontrolled value of input tag\n */\n defaultValue?: string;\n /**\n * callback invoked on every change of input tag value\n */\n onChange?: (value: string, event: React.ChangeEvent) => void;\n /**\n * disables interactive elements\n */\n disabled?: boolean;\n /**\n * gray text in empty input tag\n */\n placeholder?: string;\n};\n\nexport type InlineInputConfirmControlProps = BoxProps & {\n /**\n * Text of tooltip\n * @default Confirm\n */\n title?: string;\n /**\n * Icon component\n * @default CheckM\n */\n icon?: React.FC;\n};\n\nexport type InlineInputCancelControlProps = BoxProps & {\n /**\n * Text of tooltip\n * @default Cancel\n */\n title?: string;\n /**\n * Icon component\n * @default CloseM\n */\n icon?: React.FC;\n};\n\ntype InlineInputCtx = {\n getAddonProps: PropGetterFn;\n getConfirmControlProps: PropGetterFn;\n getCancelControlProps: PropGetterFn;\n getValueProps: PropGetterFn;\n};\n\nexport type InlineInputComponent = Intergalactic.Component<'div', InlineInputProps, InlineInputCtx> & {\n Addon: Intergalactic.Component<'div', InlineInputAddonProps, InlineInputProps>;\n Value: Intergalactic.Component<'input', InlineInputValueProps, InlineInputProps>;\n ConfirmControl: Intergalactic.Component<\n ButtonLinkComponent,\n InlineInputConfirmControlProps,\n InlineInputProps\n >;\n CancelControl: Intergalactic.Component<\n ButtonLinkComponent,\n InlineInputCancelControlProps,\n InlineInputProps\n >;\n NumberValue: Intergalactic.Component<'div', {}, InlineInputProps>;\n NumberControls: Intergalactic.Component<'div', InputNumberControlsProps, InlineInputProps>;\n};\n"],"mappings":"","ignoreList":[]}
@@ -1,4 +1,4 @@
1
- import type { InlineInputProps } from './index.type';
1
+ import type { InlineInputProps, InlineInputValueProps } from './index.type';
2
2
  import InlineInputBase from './InlineInput';
3
3
  export default InlineInputBase;
4
- export type { InlineInputProps };
4
+ export type { InlineInputProps, InlineInputValueProps };
@@ -27,23 +27,6 @@ export type InlineInputProps = BoxProps & {
27
27
  * Fired with value (or defaultValue) that was provided during component mount when user clicks cancel control or hits `Escape`
28
28
  */
29
29
  onCancel?: (prevValue: string, event: React.MouseEvent | React.FocusEvent | React.KeyboardEvent) => void;
30
- /**
31
- * Text value of input. Should be used with `onChange` property together
32
- */
33
- value?: string;
34
- /**
35
- * Initial text value of input
36
- */
37
- defaultValue?: string;
38
- /**
39
- * Makes component to catch browser focus on component mount
40
- * @default false
41
- */
42
- autoFocus?: boolean;
43
- /**
44
- * Gray text displayed in empty input
45
- */
46
- placeholder?: string;
47
30
  /**
48
31
  * defines callback (`onCancel` or `onConfirm`) triggered when `blur` event out of container fired
49
32
  * Triggered after all previous macrotasks completed (internally called inside of `setTimeout`)
@@ -74,14 +57,6 @@ export type InlineInputValueProps = BoxProps & {
74
57
  * callback invoked on every change of input tag value
75
58
  */
76
59
  onChange?: (value: string, event: React.ChangeEvent) => void;
77
- /**
78
- * visual state of component
79
- */
80
- state?: 'normal' | 'valid' | 'invalid';
81
- /**
82
- * shows spinner in `InlineInput.ConfirmControl` and disables other interactive elements
83
- */
84
- loading?: boolean;
85
60
  /**
86
61
  * disables interactive elements
87
62
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@semcore/inline-input",
3
3
  "description": "Semrush Input Component",
4
- "version": "17.0.0-prerelease.27",
4
+ "version": "17.0.0-prerelease.30",
5
5
  "main": "lib/cjs/index.js",
6
6
  "module": "lib/es6/index.js",
7
7
  "typings": "lib/types/index.d.ts",
@@ -14,19 +14,19 @@
14
14
  "types": "./lib/types/index.d.ts"
15
15
  },
16
16
  "dependencies": {
17
- "@semcore/spin": "^17.0.0-prerelease.27",
18
- "@semcore/tooltip": "^17.0.0-prerelease.27",
19
- "@semcore/input-number": "^17.0.0-prerelease.27",
20
- "@semcore/input": "^17.0.0-prerelease.27",
21
- "@semcore/button": "^17.0.0-prerelease.27"
17
+ "@semcore/spin": "^17.0.0-prerelease.30",
18
+ "@semcore/tooltip": "^17.0.0-prerelease.30",
19
+ "@semcore/input-number": "^17.0.0-prerelease.30",
20
+ "@semcore/input": "^17.0.0-prerelease.30",
21
+ "@semcore/button": "^17.0.0-prerelease.30"
22
22
  },
23
23
  "devDependencies": {
24
- "@semcore/core": "17.0.0-prerelease.27",
25
- "@semcore/base-components": "17.0.0-prerelease.27",
24
+ "@semcore/core": "17.0.0-prerelease.30",
25
+ "@semcore/base-components": "17.0.0-prerelease.30",
26
26
  "@semcore/testing-utils": "1.0.0",
27
- "@semcore/spin": "17.0.0-prerelease.27",
28
- "@semcore/tooltip": "17.0.0-prerelease.27",
29
- "@semcore/icon": "16.7.2-prerelease.27"
27
+ "@semcore/spin": "17.0.0-prerelease.30",
28
+ "@semcore/tooltip": "17.0.0-prerelease.30",
29
+ "@semcore/icon": "16.7.2-prerelease.30"
30
30
  },
31
31
  "peerDependencies": {
32
32
  "@semcore/base-components": "^17.0.0 || ^17.0.0-0",