sevago-library 1.6.47 → 1.6.49
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 +12 -0
- package/dist/index.cjs.js +69 -69
- package/dist/index.esm.js +5169 -5070
- package/dist/src/common/utils/array.util.stories.d.ts +5 -0
- package/dist/src/common/utils/delay.util.stories.d.ts +5 -0
- package/dist/src/common/utils/file.util.stories.d.ts +5 -0
- package/dist/src/common/utils/number.util.d.ts +11 -0
- package/dist/src/common/utils/number.util.stories.d.ts +5 -0
- package/dist/src/common/utils/object.util.stories.d.ts +5 -0
- package/dist/src/common/utils/other.util.stories.d.ts +5 -0
- package/dist/src/common/utils/provider.util.stories.d.ts +5 -0
- package/dist/src/common/utils/string.util.stories.d.ts +5 -0
- package/dist/src/common/utils/time.util.stories.d.ts +5 -0
- package/dist/src/common/utils/utils-docs.component.d.ts +17 -0
- package/dist/src/components/elements/text-field/index.d.ts +1 -0
- package/dist/src/components/elements/text-field/text-field-weight-number.argtypes.d.ts +3 -0
- package/dist/src/components/elements/text-field/text-field-weight-number.element.d.ts +9 -0
- package/dist/src/components/elements/text-field/text-field-weight-number.element.stories.d.ts +12 -0
- package/dist/src/components/pages/pages.stories.d.ts +3 -2
- package/package.json +1 -1
|
@@ -1,2 +1,13 @@
|
|
|
1
1
|
export declare const formatNumber: (value: any, decimalPlaces?: number) => any;
|
|
2
2
|
export declare const round5000: (number: number) => number;
|
|
3
|
+
export type NumberInputValue = number | string | null | undefined;
|
|
4
|
+
export declare const parseNumberValue: (value: NumberInputValue) => number | null;
|
|
5
|
+
export type FormatWeightValueOptions = {
|
|
6
|
+
fallback?: string;
|
|
7
|
+
fractionDigits?: number;
|
|
8
|
+
locale?: string;
|
|
9
|
+
maximumFractionDigits?: number;
|
|
10
|
+
minimumFractionDigits?: number;
|
|
11
|
+
suffix?: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const formatWeightValue: (value: NumberInputValue, options?: FormatWeightValueOptions) => string;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export interface UtilityDocItem {
|
|
2
|
+
description: string;
|
|
3
|
+
example?: string;
|
|
4
|
+
name: string;
|
|
5
|
+
signature: string;
|
|
6
|
+
}
|
|
7
|
+
export interface UtilityDocGroup {
|
|
8
|
+
importName: string;
|
|
9
|
+
items: UtilityDocItem[];
|
|
10
|
+
note?: string;
|
|
11
|
+
source: string;
|
|
12
|
+
summary: string;
|
|
13
|
+
title: string;
|
|
14
|
+
}
|
|
15
|
+
export declare const UtilityDocs: ({ group }: {
|
|
16
|
+
group: UtilityDocGroup;
|
|
17
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -16,3 +16,4 @@ export * from './text-field-upload-image/text-field-upload-image.element';
|
|
|
16
16
|
export * from './text-field-upload-images/text-field-upload-images.element';
|
|
17
17
|
export * from './text-field.element';
|
|
18
18
|
export * from './text-highlight/text-highlight.element';
|
|
19
|
+
export * from './text-field-weight-number.element';
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { TextFieldNumberElementProps } from './text-field-number/text-field-number.element';
|
|
3
|
+
export interface TextFieldWeightNumberElementProps extends TextFieldNumberElementProps {
|
|
4
|
+
enabled?: boolean;
|
|
5
|
+
showWeightAdornment?: boolean;
|
|
6
|
+
weightAdornmentLabel?: React.ReactNode;
|
|
7
|
+
onEnterConfirm?: (weight: number) => void | Promise<void>;
|
|
8
|
+
}
|
|
9
|
+
export declare const TextFieldWeightNumberElement: React.FC<TextFieldWeightNumberElementProps>;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/react';
|
|
2
|
+
import { TextFieldWeightNumberElement } from './text-field-weight-number.element';
|
|
3
|
+
declare const meta: Meta<typeof TextFieldWeightNumberElement>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof TextFieldWeightNumberElement>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const WithSharedScaleProvider: Story;
|
|
8
|
+
export declare const ScaleDisabled: Story;
|
|
9
|
+
export declare const Disabled: Story;
|
|
10
|
+
export declare const ErrorState: Story;
|
|
11
|
+
export declare const WithResetButton: Story;
|
|
12
|
+
export declare const WithoutWeightAdornment: Story;
|
|
@@ -2,5 +2,6 @@ import { Meta, StoryObj } from '@storybook/react';
|
|
|
2
2
|
declare const meta: Meta;
|
|
3
3
|
export default meta;
|
|
4
4
|
type Story = StoryObj;
|
|
5
|
-
export declare const
|
|
6
|
-
export declare const
|
|
5
|
+
export declare const OperationsDashboardPage: Story;
|
|
6
|
+
export declare const LoadingPage: Story;
|
|
7
|
+
export declare const EmptyPage: Story;
|
package/package.json
CHANGED