@openfin/ui-library 0.21.0 → 0.23.0-alpha.1694620338
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/README.md +1 -1
- package/dist/components/controls/CollapsibleCard/collapsibleCard.d.ts +14 -5
- package/dist/components/elements/Calendar/calendar.d.ts +5 -4
- package/dist/components/elements/DropdownMenu/dropdownButton.d.ts +5 -2
- package/dist/components/elements/DropdownMenu/dropdownMenu.d.ts +1 -1
- package/dist/components/elements/Label/label.d.ts +11 -0
- package/dist/components/input/BaseInput/baseInput.d.ts +6 -6
- package/dist/components/input/Checkbox/checkbox.d.ts +1 -1
- package/dist/components/input/CheckboxGroup/checkboxGroup.d.ts +9 -1
- package/dist/components/input/NumberInput/numberInput.d.ts +6 -2
- package/dist/components/input/RadioGroup/radioGroup.d.ts +3 -0
- package/dist/components/input/TextArea/textArea.d.ts +6 -4
- package/dist/components/input/TextInput/textInput.d.ts +1 -1
- package/dist/components/typography/Heading/heading.d.ts +42 -42
- package/dist/components/typography/Text/text.d.ts +1 -1
- package/dist/hooks/useTheme.d.ts +2 -1
- package/dist/hooks/useTheme.spec.d.ts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +115 -52
- package/dist/lib/math.d.ts +1 -1
- package/dist/testUtils.d.ts +9 -0
- package/dist/types/index.d.ts +5 -0
- package/package.json +1 -1
package/dist/lib/math.d.ts
CHANGED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* @returns A number in the range [min, max]
|
|
7
7
|
* @type Number
|
|
8
8
|
*/
|
|
9
|
-
export declare const clamp: (num: number, min
|
|
9
|
+
export declare const clamp: (num: number, min: number | undefined, max: number | undefined) => number;
|
|
10
10
|
/**
|
|
11
11
|
* Generates a random integer.
|
|
12
12
|
*/
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { RenderOptions } from '@testing-library/react';
|
|
2
|
+
import { ReactElement } from 'react';
|
|
3
|
+
/**
|
|
4
|
+
* Extending `render` to include the ThemeProvider ThemeProvider
|
|
5
|
+
* This helps test runs rendering components find the corresponding theme values
|
|
6
|
+
*/
|
|
7
|
+
declare const customRender: (ui: ReactElement, options?: Omit<RenderOptions, 'queries'>) => import("@testing-library/react").RenderResult<typeof import("@testing-library/dom/types/queries"), HTMLElement, HTMLElement>;
|
|
8
|
+
export * from '@testing-library/react';
|
|
9
|
+
export { customRender as render };
|
package/package.json
CHANGED