@bonprix-ds/react-email-field 1.0.1 → 1.0.3

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/dist/index.d.ts CHANGED
@@ -1,24 +1,2 @@
1
- import { default as default_2 } from 'react';
2
- import { TextFieldBaseProps } from '@bonprix-ds/react-text-field';
3
-
4
- declare interface ControlledInputProps extends TextFieldBaseProps {
5
- /** The current value of the input field. Should be used in conjunction with `onChange`, when controlling the input. Should be `undefined` otherwise. */
6
- value: string;
7
- defaultValue?: never;
8
- /** Callback that is triggered when the input value changes. Should be used in conjunction with `value`, when controlling the input. Optional otherwise. */
9
- onChange: (value: string) => void;
10
- }
11
-
12
- declare const EmailField: (props: EmailFieldProps) => default_2.JSX.Element;
13
- export default EmailField;
14
-
15
- export declare type EmailFieldProps = ControlledInputProps | UncontrolledInputProps;
16
-
17
- declare interface UncontrolledInputProps extends TextFieldBaseProps {
18
- value?: never;
19
- /** The default value of the input field. Should be used when the input is uncontrolled. */
20
- defaultValue: string;
21
- onChange?: (value: string) => void;
22
- }
23
-
24
- export { }
1
+ export { default } from "./src/EmailField";
2
+ export type { Props as EmailFieldProps } from "./src/EmailField";
@@ -0,0 +1,18 @@
1
+ import React from "react";
2
+ import type { TextFieldBaseProps } from "@bonprix-ds/react-text-field";
3
+ interface ControlledInputProps extends TextFieldBaseProps {
4
+ /** The current value of the input field. Should be used in conjunction with `onChange`, when controlling the input. Should be `undefined` otherwise. */
5
+ value: string;
6
+ defaultValue?: never;
7
+ /** Callback that is triggered when the input value changes. Should be used in conjunction with `value`, when controlling the input. Optional otherwise. */
8
+ onChange: (value: string) => void;
9
+ }
10
+ interface UncontrolledInputProps extends TextFieldBaseProps {
11
+ value?: never;
12
+ /** The default value of the input field. Should be used when the input is uncontrolled. */
13
+ defaultValue: string;
14
+ onChange?: (value: string) => void;
15
+ }
16
+ export type Props = ControlledInputProps | UncontrolledInputProps;
17
+ declare const EmailField: (props: Props) => React.JSX.Element;
18
+ export default EmailField;
@@ -1,6 +1,6 @@
1
1
  "use client";
2
- import e from "@bonprix-ds/react-base-input-field";
3
2
  import "react";
3
+ import e from "@bonprix-ds/react-base-input-field";
4
4
  import { jsx as t } from "react/jsx-runtime";
5
5
  //#region src/EmailField.tsx
6
6
  var n = (n) => /* @__PURE__ */ t(e, {
@@ -1 +1 @@
1
- {"version":3,"file":"EmailField.js","names":[],"sources":["../../src/EmailField.tsx"],"sourcesContent":["\"use client\";\n\nimport BaseInputField from \"@bonprix-ds/react-base-input-field\";\nimport type { TextFieldBaseProps } from \"@bonprix-ds/react-text-field\";\nimport React from \"react\";\n\ninterface ControlledInputProps extends TextFieldBaseProps {\n /** The current value of the input field. Should be used in conjunction with `onChange`, when controlling the input. Should be `undefined` otherwise. */\n value: string;\n defaultValue?: never;\n /** Callback that is triggered when the input value changes. Should be used in conjunction with `value`, when controlling the input. Optional otherwise. */\n onChange: (value: string) => void;\n}\n\ninterface UncontrolledInputProps extends TextFieldBaseProps {\n value?: never;\n /** The default value of the input field. Should be used when the input is uncontrolled. */\n defaultValue: string;\n onChange?: (value: string) => void;\n}\n\nexport type Props = ControlledInputProps | UncontrolledInputProps;\n\nconst EmailField = (props: Props) => {\n return <BaseInputField {...props} type=\"email\" componentName=\"email-field\" />;\n};\nexport default EmailField;\n"],"mappings":";;;;;AAuBA,IAAM,KAAc,MACX,kBAAC,GAAD;CAAgB,GAAI;CAAO,MAAK;CAAQ,eAAc;AAAe,CAAA"}
1
+ {"version":3,"file":"EmailField.js","names":["BaseInputField","EmailField","props"],"sources":["../../src/EmailField.tsx"],"sourcesContent":["\"use client\";\n\nimport React from \"react\";\n\nimport BaseInputField from \"@bonprix-ds/react-base-input-field\";\nimport type { TextFieldBaseProps } from \"@bonprix-ds/react-text-field\";\n\ninterface ControlledInputProps extends TextFieldBaseProps {\n /** The current value of the input field. Should be used in conjunction with `onChange`, when controlling the input. Should be `undefined` otherwise. */\n value: string;\n defaultValue?: never;\n /** Callback that is triggered when the input value changes. Should be used in conjunction with `value`, when controlling the input. Optional otherwise. */\n onChange: (value: string) => void;\n}\n\ninterface UncontrolledInputProps extends TextFieldBaseProps {\n value?: never;\n /** The default value of the input field. Should be used when the input is uncontrolled. */\n defaultValue: string;\n onChange?: (value: string) => void;\n}\n\nexport type Props = ControlledInputProps | UncontrolledInputProps;\n\nconst EmailField = (props: Props) => {\n return <BaseInputField {...props} type=\"email\" componentName=\"email-field\" />;\n};\nexport default EmailField;\n"],"mappings":";;;;;AAwBA,IAAMC,KAAc,MACX,kBAACD,GAAD;CAAgB,GAAIE;CAAO,MAAK;CAAQ,eAAc;AAAe,CAAA"}
package/package.json CHANGED
@@ -1,14 +1,25 @@
1
1
  {
2
2
  "name": "@bonprix-ds/react-email-field",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "EmailField component, implemented in React, for the Bonprix Design System.",
5
- "type": "module",
6
- "publishConfig": {
7
- "access": "public",
8
- "provenance": true
5
+ "keywords": [],
6
+ "license": "UNLICENSED",
7
+ "author": "",
8
+ "repository": {
9
+ "type": "git",
10
+ "url": "git+https://github.com/bonprix/design-system.git",
11
+ "directory": "packages/react/email-field"
9
12
  },
10
- "module": "./dist/index.js",
13
+ "files": [
14
+ "dist",
15
+ "!dist/tsconfig.tsbuildinfo",
16
+ "!dist/vite.config.d.ts",
17
+ "!dist/**/*.test.d.ts"
18
+ ],
19
+ "type": "module",
11
20
  "sideEffects": false,
21
+ "module": "./dist/index.js",
22
+ "types": "./dist/index.d.ts",
12
23
  "exports": {
13
24
  ".": {
14
25
  "import": "./dist/index.js",
@@ -16,36 +27,25 @@
16
27
  "default": "./dist/index.js"
17
28
  }
18
29
  },
19
- "types": "./dist/index.d.ts",
20
- "files": [
21
- "dist"
22
- ],
23
- "keywords": [],
24
- "author": "",
25
- "license": "UNLICENSED",
26
- "repository": {
27
- "type": "git",
28
- "url": "git+https://github.com/bonprix/design-system.git",
29
- "directory": "packages/react/email-field"
30
+ "publishConfig": {
31
+ "access": "public",
32
+ "provenance": true
30
33
  },
31
34
  "dependencies": {
32
- "@bonprix-ds/react-base-input-field": "1.0.1",
33
- "@bonprix-ds/react-text-field": "1.0.1",
34
- "@bonprix-ds/utils": "0.2.2"
35
+ "@bonprix-ds/react-base-input-field": "1.0.3",
36
+ "@bonprix-ds/react-text-field": "1.1.0",
37
+ "@bonprix-ds/utils": "0.3.0"
38
+ },
39
+ "devDependencies": {
40
+ "@types/react": "19.3.0",
41
+ "vite": "8.3.2",
42
+ "@bonprix-ds/vite-config": "0.0.0"
35
43
  },
36
44
  "peerDependencies": {
37
- "react": "^19.0.0",
38
- "react-dom": "^19.0.0",
45
+ "react": "^19",
46
+ "react-dom": "^19",
39
47
  "tailwind-variants": "0.3.1"
40
48
  },
41
- "devDependencies": {
42
- "vite": "8.2.2",
43
- "@types/react": "19.2.18",
44
- "@vitejs/plugin-react": "6.1.1",
45
- "rollup-preserve-directives": "1.1.3",
46
- "unplugin-dts": "1.1.0",
47
- "@microsoft/api-extractor": "7.59.1"
48
- },
49
49
  "scripts": {
50
50
  "build": "vite build"
51
51
  }