@instructure/ui-number-input 11.7.3-snapshot-4 → 11.7.3-snapshot-7
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 +1 -1
- package/package.json +12 -12
- package/src/NumberInput/v2/props.ts +6 -5
- package/tsconfig.build.tsbuildinfo +1 -1
- package/types/NumberInput/v2/index.d.ts +1 -3
- package/types/NumberInput/v2/index.d.ts.map +1 -1
- package/types/NumberInput/v2/props.d.ts +3 -4
- package/types/NumberInput/v2/props.d.ts.map +1 -1
|
@@ -34,9 +34,7 @@ declare const NumberInput: import("react").ForwardRefExoticComponent<import("@in
|
|
|
34
34
|
decrease: Renderable;
|
|
35
35
|
};
|
|
36
36
|
margin?: import("@instructure/emotion").Spacing;
|
|
37
|
-
} & {
|
|
38
|
-
themeOverride?: import("@instructure/emotion").ThemeOverrideValue;
|
|
39
|
-
} & Omit<import("react").InputHTMLAttributes<{
|
|
37
|
+
} & import("@instructure/emotion").NewThemeOverrideProp<import("@instructure/ui-themes/types/themes/newThemeTokens/componentTypes/textInput.js").TextInput> & Omit<import("react").InputHTMLAttributes<{
|
|
40
38
|
renderLabel: Renderable;
|
|
41
39
|
id?: string;
|
|
42
40
|
interaction?: import("@instructure/ui-react-utils").InteractionType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/NumberInput/v2/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAQd,OAAO,EAGL,cAAc,EAGf,MAAM,6BAA6B,CAAA;AAOpC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD;;;;;GAKG;AACH,QAAA,MAAM,WAAW
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/NumberInput/v2/index.tsx"],"names":[],"mappings":"AAwBA,OAAO,EAOL,KAAK,SAAS,EACf,MAAM,OAAO,CAAA;AAQd,OAAO,EAGL,cAAc,EAGf,MAAM,6BAA6B,CAAA;AAOpC,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AAEtD;;;;;GAKG;AACH,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sHAqThB,CAAA;AAID,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,IAAI,CAAA;IACjB,QAAQ,CAAC,EAAE,EAAE,MAAM,GAAG,SAAS,CAAA;IAC/B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,WAAW,EAAE,UAAU,CAAC,OAAO,cAAc,CAAC,CAAA;IACvD,QAAQ,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;IAClC,QAAQ,CAAC,GAAG,EAAE,SAAS,CAAC,OAAO,GAAG,IAAI,CAAC,CAAA;CACxC;AAED,eAAe,WAAW,CAAA;AAC1B,OAAO,EAAE,WAAW,EAAE,CAAA"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import type { InputHTMLAttributes } from 'react';
|
|
3
3
|
import type { OtherHTMLAttributes, PickPropsWithExceptions } from '@instructure/shared-types';
|
|
4
|
-
import type { ComponentStyle,
|
|
4
|
+
import type { ComponentStyle, NewThemeOverrideProp, Spacing } from '@instructure/emotion';
|
|
5
5
|
import type { FormFieldOwnProps, FormMessage } from '@instructure/ui-form-field/latest';
|
|
6
6
|
import type { InteractionType, WithDeterministicIdProps } from '@instructure/ui-react-utils';
|
|
7
7
|
import { Renderable } from '@instructure/shared-types';
|
|
8
|
+
import type { NewComponentTypes } from '@instructure/ui-themes';
|
|
8
9
|
type NumberInputOwnProps = {
|
|
9
10
|
/**
|
|
10
11
|
* The form field label.
|
|
@@ -117,9 +118,7 @@ type NumberInputOwnProps = {
|
|
|
117
118
|
};
|
|
118
119
|
type PropKeys = keyof NumberInputOwnProps;
|
|
119
120
|
type AllowedPropKeys = Readonly<Array<PropKeys>>;
|
|
120
|
-
type NumberInputProps = PickPropsWithExceptions<FormFieldOwnProps, 'label' | 'inline' | 'id' | 'elementRef'> & NumberInputOwnProps &
|
|
121
|
-
themeOverride?: ThemeOverrideValue;
|
|
122
|
-
} & OtherHTMLAttributes<NumberInputOwnProps, InputHTMLAttributes<NumberInputOwnProps & Element>> & WithDeterministicIdProps;
|
|
121
|
+
type NumberInputProps = PickPropsWithExceptions<FormFieldOwnProps, 'label' | 'inline' | 'id' | 'elementRef'> & NumberInputOwnProps & NewThemeOverrideProp<ReturnType<NewComponentTypes['TextInput']>> & OtherHTMLAttributes<NumberInputOwnProps, InputHTMLAttributes<NumberInputOwnProps & Element>> & WithDeterministicIdProps;
|
|
123
122
|
type NumberInputStyle = ComponentStyle<'numberInput' | 'arrowContainer' | 'arrow' | 'inputWidth' | 'inputContainer' | 'input'>;
|
|
124
123
|
declare const allowedProps: AllowedPropKeys;
|
|
125
124
|
export type { NumberInputProps, NumberInputStyle };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/NumberInput/v2/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,KAAK,EACV,mBAAmB,EACnB,uBAAuB,EACxB,MAAM,2BAA2B,CAAA;AAClC,OAAO,KAAK,EACV,cAAc,EACd,
|
|
1
|
+
{"version":3,"file":"props.d.ts","sourceRoot":"","sources":["../../../src/NumberInput/v2/props.ts"],"names":[],"mappings":"AAwBA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAA;AAEhD,OAAO,KAAK,EACV,mBAAmB,EACnB,uB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