@semcore/input 17.2.2-prerelease.1 → 17.2.2-prerelease.11
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/cjs/Input.type.js.map +1 -1
- package/lib/es6/Input.type.js.map +1 -1
- package/lib/types/Input.d.ts +1 -0
- package/lib/types/Input.d.ts.map +1 -0
- package/lib/types/Input.type.d.ts +7 -6
- package/lib/types/Input.type.d.ts.map +1 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/index.d.ts.map +1 -0
- package/package.json +5 -5
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.type.js","names":[],"sources":["../../src/Input.type.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"Input.type.js","names":[],"sources":["../../src/Input.type.ts"],"sourcesContent":["import type { NSBox, NSNeighborLocation } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type React from 'react';\n\ndeclare namespace NSInput {\n type Size = 'm' | 'l';\n type Props = NSBox.Props &\n NSNeighborLocation.Detect.Props &\n NSNeighborLocation.Props & {\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?: NSInput.Size;\n /**\n * Sets the input state\n * @default normal\n */\n state?: 'normal' | 'invalid' | 'valid';\n };\n type DefaultProps = {\n size: 'm';\n state: 'normal';\n };\n type Ctx = {\n getValueProps: PropGetterFn;\n getAddonProps: PropGetterFn;\n };\n\n namespace Value {\n type Props = NSBox.Props &\n NSNeighborLocation.Detect.Props & {\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 * Sets the input to the read-only state\n * */\n readOnly?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: NSInput.Size;\n /**\n * Placeholder for input\n */\n placeholder?: string;\n /**\n * Flag to enable autofocusing after component mounting\n * @default false\n */\n autoFocus?: boolean;\n };\n type DefaultProps = {\n defaultValue: '';\n };\n type Handlers = {\n value: (e: React.ChangeEvent<HTMLInputElement>) => string;\n };\n\n type Component = Intergalactic.Component<'input', Props>;\n }\n\n namespace Addon {\n type Props = NSBox.Props & NSNeighborLocation.Detect.Props;\n\n type Component = Intergalactic.Component<'div', Props>;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Value: Value.Component;\n Addon: Addon.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type InputSize = NSInput.Size;\n/** @deprecated It will be removed in v18. */\nexport type InputProps = NSInput.Props;\n/** @deprecated It will be removed in v18. */\nexport type InputValueProps = NSInput.Value.Props;\n/** @deprecated It will be removed in v18. */\nexport type InputAddonProps = NSInput.Addon.Props;\n/** @deprecated It will be removed in v18. */\nexport type InputCtx = NSInput.Ctx;\n\nexport type { NSInput };\n"],"mappings":"","ignoreList":[]}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Input.type.js","names":[],"sources":["../../src/Input.type.ts"],"sourcesContent":["import type {
|
|
1
|
+
{"version":3,"file":"Input.type.js","names":[],"sources":["../../src/Input.type.ts"],"sourcesContent":["import type { NSBox, NSNeighborLocation } from '@semcore/base-components';\nimport type { Intergalactic, PropGetterFn } from '@semcore/core';\nimport type React from 'react';\n\ndeclare namespace NSInput {\n type Size = 'm' | 'l';\n type Props = NSBox.Props &\n NSNeighborLocation.Detect.Props &\n NSNeighborLocation.Props & {\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?: NSInput.Size;\n /**\n * Sets the input state\n * @default normal\n */\n state?: 'normal' | 'invalid' | 'valid';\n };\n type DefaultProps = {\n size: 'm';\n state: 'normal';\n };\n type Ctx = {\n getValueProps: PropGetterFn;\n getAddonProps: PropGetterFn;\n };\n\n namespace Value {\n type Props = NSBox.Props &\n NSNeighborLocation.Detect.Props & {\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 * Sets the input to the read-only state\n * */\n readOnly?: boolean;\n /**\n * Input size\n * @default m\n */\n size?: NSInput.Size;\n /**\n * Placeholder for input\n */\n placeholder?: string;\n /**\n * Flag to enable autofocusing after component mounting\n * @default false\n */\n autoFocus?: boolean;\n };\n type DefaultProps = {\n defaultValue: '';\n };\n type Handlers = {\n value: (e: React.ChangeEvent<HTMLInputElement>) => string;\n };\n\n type Component = Intergalactic.Component<'input', Props>;\n }\n\n namespace Addon {\n type Props = NSBox.Props & NSNeighborLocation.Detect.Props;\n\n type Component = Intergalactic.Component<'div', Props>;\n }\n\n type Component = Intergalactic.Component<'div', Props, Ctx> & {\n Value: Value.Component;\n Addon: Addon.Component;\n };\n}\n\n/** @deprecated It will be removed in v18. */\nexport type InputSize = NSInput.Size;\n/** @deprecated It will be removed in v18. */\nexport type InputProps = NSInput.Props;\n/** @deprecated It will be removed in v18. */\nexport type InputValueProps = NSInput.Value.Props;\n/** @deprecated It will be removed in v18. */\nexport type InputAddonProps = NSInput.Addon.Props;\n/** @deprecated It will be removed in v18. */\nexport type InputCtx = NSInput.Ctx;\n\nexport type { NSInput };\n"],"mappings":"","ignoreList":[]}
|
package/lib/types/Input.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.d.ts","sourceRoot":"","sources":["../../src/Input.tsx"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAqL5C;;;;GAIG;;AACH,wBAMG"}
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import type {
|
|
1
|
+
import type { NSBox, NSNeighborLocation } from '@semcore/base-components';
|
|
2
2
|
import type { Intergalactic, PropGetterFn } from '@semcore/core';
|
|
3
3
|
import type React from 'react';
|
|
4
4
|
declare namespace NSInput {
|
|
5
5
|
type Size = 'm' | 'l';
|
|
6
|
-
type Props =
|
|
6
|
+
type Props = NSBox.Props & NSNeighborLocation.Detect.Props & NSNeighborLocation.Props & {
|
|
7
7
|
/**
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
* Sets the input and addons to the disabled state
|
|
9
|
+
* */
|
|
10
10
|
disabled?: boolean;
|
|
11
11
|
/**
|
|
12
12
|
* Input size
|
|
@@ -28,7 +28,7 @@ declare namespace NSInput {
|
|
|
28
28
|
getAddonProps: PropGetterFn;
|
|
29
29
|
};
|
|
30
30
|
namespace Value {
|
|
31
|
-
type Props =
|
|
31
|
+
type Props = NSBox.Props & NSNeighborLocation.Detect.Props & {
|
|
32
32
|
/**
|
|
33
33
|
* Input value
|
|
34
34
|
*/
|
|
@@ -69,7 +69,7 @@ declare namespace NSInput {
|
|
|
69
69
|
type Component = Intergalactic.Component<'input', Props>;
|
|
70
70
|
}
|
|
71
71
|
namespace Addon {
|
|
72
|
-
type Props =
|
|
72
|
+
type Props = NSBox.Props & NSNeighborLocation.Detect.Props;
|
|
73
73
|
type Component = Intergalactic.Component<'div', Props>;
|
|
74
74
|
}
|
|
75
75
|
type Component = Intergalactic.Component<'div', Props, Ctx> & {
|
|
@@ -88,3 +88,4 @@ export type InputAddonProps = NSInput.Addon.Props;
|
|
|
88
88
|
/** @deprecated It will be removed in v18. */
|
|
89
89
|
export type InputCtx = NSInput.Ctx;
|
|
90
90
|
export type { NSInput };
|
|
91
|
+
//# sourceMappingURL=Input.type.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Input.type.d.ts","sourceRoot":"","sources":["../../src/Input.type.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,kBAAkB,EAAE,MAAM,0BAA0B,CAAC;AAC1E,OAAO,KAAK,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,K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ED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semcore/input",
|
|
3
3
|
"description": "Semrush Input Component",
|
|
4
|
-
"version": "17.2.2-prerelease.
|
|
4
|
+
"version": "17.2.2-prerelease.11",
|
|
5
5
|
"main": "lib/cjs/index.js",
|
|
6
6
|
"module": "lib/es6/index.js",
|
|
7
7
|
"typings": "lib/types/index.d.ts",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"require": "./lib/cjs/index.js"
|
|
15
15
|
},
|
|
16
16
|
"peerDependencies": {
|
|
17
|
-
"@semcore/base-components": "^17.2.
|
|
17
|
+
"@semcore/base-components": "^17.2.2-prerelease.11"
|
|
18
18
|
},
|
|
19
19
|
"repository": {
|
|
20
20
|
"type": "git",
|
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"directory": "semcore/input"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@semcore/core": "17.
|
|
26
|
-
"@semcore/base-components": "17.2.1",
|
|
25
|
+
"@semcore/core": "17.3.1-prerelease.11",
|
|
27
26
|
"@semcore/testing-utils": "1.0.0",
|
|
28
|
-
"@semcore/
|
|
27
|
+
"@semcore/base-components": "17.2.2-prerelease.11",
|
|
28
|
+
"@semcore/icon": "17.3.0-prerelease.11"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "pnpm semcore-builder && pnpm vite build"
|