react-input-material 0.0.785 → 0.0.786

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.
@@ -9,7 +9,7 @@ import { ChainedCommands, type EditorOptions, Extensions } from '@tiptap/core';
9
9
  import { EditorEvents } from '@tiptap/react';
10
10
  import { StarterKitOptions } from '@tiptap/starter-kit';
11
11
  import { IconProperties, InputReference, SelectProperties, TextAreaProperties, TextFieldProperties } from '../../implementations/type';
12
- import { BaseModel, CursorState, NormalizedSelection, ModelState as BaseModelState, Properties as BaseProperties, Selection, State as BaseState, StaticWebComponent, ValueState as BaseValueState } from '../../type';
12
+ import { BaseModel, CursorState, NormalizedSelection, ModelState as BaseModelState, Properties as BaseProperties, SelectionDefinition, State as BaseState, StaticWebComponent, ValueState as BaseValueState } from '../../type';
13
13
  import { Reference as InputEventMapperReference } from './InputEventMapperWrapper';
14
14
  export type Transformer<T = unknown> = (value: T, transformer: DataTransformation, configuration: DefaultProperties<T>) => string;
15
15
  export interface FormatSpecification<T = unknown> {
@@ -134,7 +134,7 @@ export interface Properties<Type = unknown> extends ModelState, BaseProperties<T
134
134
  attributes?: Mapping<boolean | number | string>;
135
135
  invertedPattern: Array<RegExp | string> | null | RegExp | string;
136
136
  invertedPatternText: string;
137
- labels: Selection;
137
+ labels: SelectionDefinition;
138
138
  maximumLengthText: string;
139
139
  minimumLengthText: string;
140
140
  maximumText: string;
package/dist/helper.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { Mapping } from 'clientnode';
2
2
  import { NullSymbol, UndefinedSymbol } from 'clientnode/property-types';
3
3
  import { ReactNode, useState } from 'react';
4
- import { BaseProperties, BaseProps, DefaultBaseProperties, DefaultProperties, ModelState, NormalizedSelection, Selection, ValueState } from './type';
4
+ import { BaseProperties, BaseProps, DefaultBaseProperties, DefaultProperties, ModelState, NormalizedSelection, SelectionDefinition, ValueState } from './type';
5
5
  import { DateTimeRepresentation } from './components/Interval/type';
6
6
  import { DefaultProperties as TextInputDefaultProperties, DataTransformation as TextInputDataTransformation, Props as TextInputProps } from './components/TextInput/type';
7
7
  /**
@@ -142,7 +142,7 @@ export declare function getValueFromSelection<T>(label: ReactNode | string, sele
142
142
  * via a content management system).
143
143
  * @returns Determined normalized sorted selection configuration.
144
144
  */
145
- export declare function normalizeSelection(selection?: Selection | null, labels?: Selection | null): NormalizedSelection | null | undefined;
145
+ export declare function normalizeSelection(selection?: SelectionDefinition | null, labels?: SelectionDefinition | null): NormalizedSelection | null | undefined;
146
146
  /**
147
147
  * Applies configured value transformations.
148
148
  * @param configuration - Input configuration.
package/dist/type.d.ts CHANGED
@@ -10,15 +10,15 @@ export interface CursorState {
10
10
  }
11
11
  export declare const PrimitiveTypes: readonly ["boolean", "DateTime", "integer", "number", "string"];
12
12
  export type PrimitiveType = typeof PrimitiveTypes[number];
13
- export type Type = boolean | number | string;
13
+ export type Type = boolean | number | string | object;
14
14
  export type TypeDefinition = Array<TypeDefinition> | Type;
15
15
  export interface SelectionOption {
16
16
  label: string;
17
17
  value: Primitive;
18
18
  }
19
19
  export type NormalizedSelection = Array<SelectionOption>;
20
- export type ModelSelection = Array<Primitive> | Mapping | NormalizedSelection;
21
- export type Selection = Array<[Primitive, string]> | ModelSelection;
20
+ export type BaseSelectionDefinition = Array<Primitive> | Mapping | NormalizedSelection;
21
+ export type SelectionDefinition = Array<[Primitive, string]> | BaseSelectionDefinition;
22
22
  export interface CommonBaseModel<Type = unknown> {
23
23
  declaration: string;
24
24
  description: string;
@@ -47,7 +47,7 @@ export type Pattern = Array<RegExp | string> | RegExp | string;
47
47
  export interface BaseModel<T = unknown> extends CommonBaseModel<T> {
48
48
  pattern?: Pattern;
49
49
  invertedPattern?: Pattern;
50
- selection?: ModelSelection;
50
+ selection?: BaseSelectionDefinition;
51
51
  mutable: boolean;
52
52
  writable: boolean;
53
53
  nullable: boolean;
@@ -68,7 +68,7 @@ export interface BaseProperties<T = unknown> extends CommonBaseModel<T>, ModelSt
68
68
  requiredText: string;
69
69
  componentProperties: Mapping<unknown>;
70
70
  domNodeProperties: Mapping<unknown>;
71
- selection?: Selection;
71
+ selection?: SelectionDefinition;
72
72
  showDeclaration: boolean;
73
73
  showInitialValidationState: boolean;
74
74
  showValidationState: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "react-input-material",
3
- "version": "0.0.785",
3
+ "version": "0.0.786",
4
4
  "description": "Reusable material design based input field with support for (richt-)text, code, selections, numbers, dates and so on.",
5
5
  "keywords": [
6
6
  "form-field",
@@ -150,7 +150,7 @@
150
150
  "@types/html-minifier": "^4.0.6",
151
151
  "@types/jquery": "^4.0.0",
152
152
  "@types/jsdom": "^28.0.0",
153
- "@types/node": "^25.3.2",
153
+ "@types/node": "^25.3.3",
154
154
  "@types/react": "^18.3.28",
155
155
  "@types/react-dom": "^18.3.7",
156
156
  "@types/react-transition-group": "^4.4.12",
@@ -177,12 +177,13 @@
177
177
  "postcss-loader": "^8.2.1",
178
178
  "postcss-nested": "^7.0.2",
179
179
  "postcss-preset-env": "^11.2.0",
180
+ "postcss-scss": "^4.0.9",
180
181
  "prop-types": "^15.8.1",
181
182
  "react": "^18.3.1",
182
183
  "react-dom": "^18.3.1",
183
- "react-generic-animate": "^0.0.106",
184
- "react-generic-dummy": "^0.0.118",
185
- "react-generic-tools": "^0.0.94",
184
+ "react-generic-animate": "^0.0.108",
185
+ "react-generic-dummy": "^0.0.119",
186
+ "react-generic-tools": "^0.0.95",
186
187
  "react-transition-group": "^4.4.5",
187
188
  "react-useanimations": "^2.10.0",
188
189
  "spark-md5": "^3.0.2",
@@ -192,8 +193,8 @@
192
193
  "tslib": "^2.8.1",
193
194
  "typescript-eslint": "^8.56.1",
194
195
  "typescript-plugin-css-modules": "^5.2.0",
195
- "web-component-wrapper": "^0.0.543",
196
- "weboptimizer": "^3.0.0",
196
+ "web-component-wrapper": "^0.0.544",
197
+ "weboptimizer": "^3.0.2",
197
198
  "webpack-dev-server": "^5.2.3"
198
199
  },
199
200
  "peerDependencies": {