@wallarm-org/design-system 0.87.1 → 0.88.1-rc-fix-status-code-zero-value.1
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/components/Alert/Alert.d.ts +1 -1
- package/dist/components/AnimatedBackground/pixel/module/celebration.d.ts +2 -2
- package/dist/components/AnimatedBackground/pixel/module/game-logic.d.ts +1 -1
- package/dist/components/AppShell/story-content/_storyLib.d.ts +1 -1
- package/dist/components/Badge/classes.d.ts +2 -2
- package/dist/components/Badge/constants.d.ts +26 -26
- package/dist/components/Banner/classes.d.ts +4 -4
- package/dist/components/Button/Button.d.ts +2 -2
- package/dist/components/ButtonBase/classes.d.ts +1 -1
- package/dist/components/Calendar/CalendarContext.d.ts +4 -4
- package/dist/components/Calendar/CalendarTrigger.d.ts +4 -12
- package/dist/components/Calendar/const.d.ts +2 -2
- package/dist/components/Checkbox/CheckboxGroup.d.ts +1 -1
- package/dist/components/Code/Code.d.ts +3 -3
- package/dist/components/CodeSnippet/CodeSnippetRoot.d.ts +5 -8
- package/dist/components/CodeSnippet/lib/httpFolds.d.ts +2 -2
- package/dist/components/Country/Country.d.ts +1 -1
- package/dist/components/Country/CountryFlag.d.ts +1 -1
- package/dist/components/Country/countries.d.ts +497 -497
- package/dist/components/DropdownMenu/classes.d.ts +1 -1
- package/dist/components/DropdownMenu/classes.js +1 -1
- package/dist/components/Field/Field.d.ts +1 -1
- package/dist/components/FilterInput/FilterInputField/FilterInputChip/classes.d.ts +1 -1
- package/dist/components/FilterInput/FilterInputField/FilterInputChip/segmentVariant.d.ts +3 -3
- package/dist/components/FilterInput/FilterInputMenu/FilterInputValueMenu/FlatValueMenu.js +1 -0
- package/dist/components/FilterInput/FilterInputMenu/FilterInputValueMenu/NestedValueMenuItem.js +1 -26
- package/dist/components/FilterInput/FilterInputMenu/FilterInputValueMenu/ValueMenuItem.d.ts +2 -0
- package/dist/components/FilterInput/FilterInputMenu/FilterInputValueMenu/ValueMenuItem.js +4 -3
- package/dist/components/FilterInput/FilterInputMenu/FilterInputValueMenu/highlightMatch.d.ts +11 -0
- package/dist/components/FilterInput/FilterInputMenu/FilterInputValueMenu/highlightMatch.js +28 -0
- package/dist/components/FilterInput/FilterInputMenu/FilterInputValueMenu/useNestedValueMenuState.js +2 -2
- package/dist/components/FilterInput/FilterInputMenu/FilterInputValueMenu/valueOptionSearchText.d.ts +1 -1
- package/dist/components/FilterInput/hooks/useFilterInputAutocomplete/lib/valueResolution.d.ts +1 -1
- package/dist/components/FilterInput/hooks/useFilterInputAutocomplete/useChipCascade.d.ts +1 -1
- package/dist/components/FilterInput/hooks/useFilterInputAutocomplete/useFilterInputAutocomplete.d.ts +2 -2
- package/dist/components/FilterInput/hooks/useFilterInputAutocomplete/useMenuPositioning.d.ts +1 -1
- package/dist/components/FilterInput/hooks/useFilterInputExpression/buildChips.d.ts +1 -1
- package/dist/components/FilterInput/hooks/useFilterInputExpression/buildChips.js +1 -1
- package/dist/components/FilterInput/hooks/useFilterInputExpression/expression.d.ts +2 -2
- package/dist/components/FilterInput/hooks/useFilterInputExpression/useFilterInputExpression.d.ts +2 -2
- package/dist/components/FilterInput/hooks/useFilterInputPositioning.d.ts +1 -1
- package/dist/components/FilterInput/hooks/useFilterInputSelection/lib/serialize.d.ts +1 -1
- package/dist/components/FilterInput/lib/applyKnownFieldHelpers.d.ts +1 -1
- package/dist/components/FilterInput/lib/collapseValuesToLabels.d.ts +20 -18
- package/dist/components/FilterInput/lib/collapseValuesToLabels.js +12 -19
- package/dist/components/FilterInput/lib/conditions.d.ts +2 -2
- package/dist/components/FilterInput/lib/constants.d.ts +6 -3
- package/dist/components/FilterInput/lib/constants.js +1 -1
- package/dist/components/FilterInput/lib/index.d.ts +1 -1
- package/dist/components/FilterInput/lib/index.js +1 -1
- package/dist/components/FilterInput/lib/statusCode/createStatusCodeNormalizer.d.ts +3 -1
- package/dist/components/FilterInput/lib/statusCode/createStatusCodeNormalizer.js +2 -0
- package/dist/components/FilterInput/lib/statusCode/createStatusCodeSerializer.d.ts +3 -1
- package/dist/components/FilterInput/lib/statusCode/createStatusCodeSerializer.js +2 -0
- package/dist/components/FilterInput/lib/statusCode/createStatusCodeSuggestions.js +2 -2
- package/dist/components/FilterInput/lib/statusCode/createStatusCodeValidator.d.ts +4 -0
- package/dist/components/FilterInput/lib/statusCode/createStatusCodeValidator.js +2 -1
- package/dist/components/FilterInput/lib/statusCode/utils/constants.d.ts +6 -0
- package/dist/components/FilterInput/lib/statusCode/utils/constants.js +2 -1
- package/dist/components/FilterInput/lib/statusCode/utils/index.d.ts +1 -1
- package/dist/components/FilterInput/lib/statusCode/utils/index.js +1 -1
- package/dist/components/FilterInput/lib/statusCode/utils/makeMask.d.ts +3 -1
- package/dist/components/FilterInput/lib/statusCode/utils/makeMask.js +12 -1
- package/dist/components/FilterInput/lib/validation.d.ts +1 -1
- package/dist/components/Flex/Flex.d.ts +6 -6
- package/dist/components/Heading/Heading.d.ts +3 -3
- package/dist/components/InlineEdit/InlineEditSelect.d.ts +4 -4
- package/dist/components/Input/classes.d.ts +1 -1
- package/dist/components/InputGroup/InputGroup.d.ts +1 -1
- package/dist/components/InputGroup/InputGroupAddon.d.ts +2 -2
- package/dist/components/Ip/constants.d.ts +21 -21
- package/dist/components/Kbd/Kbd.d.ts +1 -1
- package/dist/components/Link/classes.d.ts +3 -3
- package/dist/components/Loader/Loader.d.ts +2 -2
- package/dist/components/Logo/classes.d.ts +1 -1
- package/dist/components/NumberInput/classes.d.ts +4 -4
- package/dist/components/NumericBadge/classes.d.ts +2 -2
- package/dist/components/OverflowTooltip/OverflowTooltip.d.ts +4 -8
- package/dist/components/OverflowTooltip/OverflowTooltipContent.d.ts +4 -7
- package/dist/components/Pagination/classes.d.ts +2 -2
- package/dist/components/ParameterPath/constants.d.ts +7 -7
- package/dist/components/Progress/classes.d.ts +2 -2
- package/dist/components/Progress/constants.d.ts +22 -22
- package/dist/components/Radio/RadioGroup.d.ts +1 -1
- package/dist/components/SegmentedControl/SegmentedControlSeparator.d.ts +1 -1
- package/dist/components/Select/Select.d.ts +4 -4
- package/dist/components/Select/SelectInput/SelectInputOverflowRenderer.d.ts +1 -1
- package/dist/components/Selection/Selection.d.ts +4 -4
- package/dist/components/Separator/Separator.d.ts +1 -1
- package/dist/components/SimpleCharts/BarList/classes.d.ts +3 -3
- package/dist/components/SimpleCharts/LineChart/constants.d.ts +2 -2
- package/dist/components/SimpleCharts/PieChart/classes.d.ts +2 -2
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/SplashScreen/classes.d.ts +4 -4
- package/dist/components/Stack/Stack.d.ts +5 -5
- package/dist/components/Table/EditableCell/EditableSelectCell.d.ts +28 -0
- package/dist/components/Table/EditableCell/EditableSelectCell.js +66 -0
- package/dist/components/Table/EditableCell/EditableTextCell.d.ts +22 -0
- package/dist/components/Table/EditableCell/EditableTextCell.js +78 -0
- package/dist/components/Table/EditableCell/classes.d.ts +11 -0
- package/dist/components/Table/EditableCell/classes.js +17 -0
- package/dist/components/Table/EditableCell/constants.d.ts +19 -0
- package/dist/components/Table/EditableCell/constants.js +4 -0
- package/dist/components/Table/EditableCell/index.d.ts +4 -0
- package/dist/components/Table/EditableCell/index.js +4 -0
- package/dist/components/Table/Table.d.ts +4 -4
- package/dist/components/Table/TableBody/TableBodyCell.d.ts +4 -4
- package/dist/components/Table/TableColumnMenu/TableColumnMenu.d.ts +4 -16
- package/dist/components/Table/TableHeadCell.d.ts +4 -4
- package/dist/components/Table/TableImperativeBridge.d.ts +4 -9
- package/dist/components/Table/TableMasterCellActions.d.ts +4 -4
- package/dist/components/Table/TableResizeHandler.d.ts +4 -4
- package/dist/components/Table/TableRow.d.ts +1 -1
- package/dist/components/Table/TableRowExpanded.d.ts +4 -4
- package/dist/components/Table/TableSettingsMenu/TableSettingsMenuItem.d.ts +4 -4
- package/dist/components/Table/TableSortHandler.d.ts +4 -4
- package/dist/components/Table/TableSortTrigger.d.ts +4 -19
- package/dist/components/Table/index.d.ts +1 -0
- package/dist/components/Table/index.js +1 -0
- package/dist/components/Table/lib/detectDataChange.d.ts +1 -1
- package/dist/components/Table/lib/isLastPinnedLeft.d.ts +2 -2
- package/dist/components/Tabs/classes.d.ts +1 -1
- package/dist/components/Text/Text.d.ts +5 -5
- package/dist/components/Textarea/classes.d.ts +2 -2
- package/dist/components/Toast/Toast.d.ts +4 -4
- package/dist/components/Toast/ToastClose.d.ts +4 -4
- package/dist/components/Toast/useToast.d.ts +4 -4
- package/dist/components/ToggleButton/ToggleButton.d.ts +1 -1
- package/dist/components/Tour/lib/waitForStepEvent.d.ts +1 -1
- package/dist/components/WallyIcon/classes.d.ts +1 -1
- package/dist/icons/SvgIcon.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/metadata/components.json +627 -13
- package/dist/utils/hasNonTextEnd.d.ts +1 -1
- package/dist/utils/isIconOnly.d.ts +1 -1
- package/package.json +15 -17
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { canonicalizeStatusCodeInput } from "./canonicalize.js";
|
|
2
|
-
export { MASK_PLACEHOLDER, MASK_ROOTS, STATUS_CODE_LENGTH } from "./constants.js";
|
|
2
|
+
export { MASK_PLACEHOLDER, MASK_ROOTS, NO_RESPONSE_CODE, STATUS_CODE_LENGTH } from "./constants.js";
|
|
3
3
|
export { makeMask } from "./makeMask.js";
|
|
@@ -4,5 +4,7 @@ import type { FieldValueOption } from '../../../types';
|
|
|
4
4
|
* in sync. Throws if the input falls outside the 1XX–5XX classes — this is
|
|
5
5
|
* unreachable in practice because callers gate on `maskRoots`, but the check
|
|
6
6
|
* is kept as a safety net so a future refactor can't silently emit a
|
|
7
|
-
* colorless pill.
|
|
7
|
+
* colorless pill. The one deliberate exception is the `NO_RESPONSE_CODE`
|
|
8
|
+
* sentinel, which is a legitimate value with no HTTP class and renders as a
|
|
9
|
+
* neutral slate pill. */
|
|
8
10
|
export declare const makeMask: (label: string) => FieldValueOption;
|
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
import { RESPONSE_CODE_COLOR, getResponseCodeCategory } from "../../../../ResponseCode/index.js";
|
|
2
|
+
import { NO_RESPONSE_CODE } from "./constants.js";
|
|
2
3
|
const makeMask = (label)=>{
|
|
3
4
|
const category = getResponseCodeCategory(label);
|
|
4
|
-
if ('unknown' === category)
|
|
5
|
+
if ('unknown' === category) {
|
|
6
|
+
if (label === NO_RESPONSE_CODE) return {
|
|
7
|
+
value: label,
|
|
8
|
+
label,
|
|
9
|
+
badge: {
|
|
10
|
+
color: RESPONSE_CODE_COLOR.unknown,
|
|
11
|
+
text: label
|
|
12
|
+
}
|
|
13
|
+
};
|
|
14
|
+
throw new Error(`statusCode: no badge color for mask "${label}"`);
|
|
15
|
+
}
|
|
5
16
|
return {
|
|
6
17
|
value: label,
|
|
7
18
|
label,
|
|
@@ -40,4 +40,4 @@ export declare const isValidFieldValue: (fieldValues: FieldValueOption[], v: str
|
|
|
40
40
|
*/
|
|
41
41
|
export declare const getInvalidValueIndices: (field: FieldMetadata, values: Array<string | number | boolean>) => number[];
|
|
42
42
|
/** Check if condition value(s) are valid for the given field. Returns true if error. */
|
|
43
|
-
export declare const validateValueForField: (field: FieldMetadata, value: Condition[
|
|
43
|
+
export declare const validateValueForField: (field: FieldMetadata, value: Condition['value']) => boolean;
|
|
@@ -3,15 +3,15 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import type { TestableProps } from '../../utils/testId';
|
|
4
4
|
declare const flexVariants: (props?: ({
|
|
5
5
|
inline?: boolean | null | undefined;
|
|
6
|
-
direction?: "
|
|
7
|
-
align?: "
|
|
8
|
-
justify?: "
|
|
9
|
-
wrap?: "
|
|
10
|
-
gap?: 1 | 2 | 4 | 6 | 8 |
|
|
6
|
+
direction?: "column" | "column-reverse" | "row" | "row-reverse" | null | undefined;
|
|
7
|
+
align?: "baseline" | "center" | "end" | "start" | "stretch" | null | undefined;
|
|
8
|
+
justify?: "around" | "between" | "center" | "end" | "evenly" | "start" | null | undefined;
|
|
9
|
+
wrap?: "nowrap" | "reverse" | "wrap" | null | undefined;
|
|
10
|
+
gap?: 1 | 2 | 4 | 6 | 8 | 12 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 56 | 64 | 80 | 96 | 112 | 128 | 144 | null | undefined;
|
|
11
11
|
grow?: boolean | null | undefined;
|
|
12
12
|
shrink?: boolean | null | undefined;
|
|
13
13
|
fullWidth?: boolean | null | undefined;
|
|
14
|
-
basis?:
|
|
14
|
+
basis?: "1/12" | "1/2" | "1/3" | "1/4" | "1/5" | "1/6" | "10/12" | "11/12" | "2/12" | "2/3" | "2/4" | "2/5" | "2/6" | "3/12" | "3/4" | "3/5" | "3/6" | "4/12" | "4/5" | "4/6" | "5/12" | "5/6" | "6/12" | "7/12" | "8/12" | "9/12" | "auto" | "full" | 0 | null | undefined;
|
|
15
15
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
16
|
type FlexNativeProps = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
17
17
|
type FlexVariantProps = VariantProps<typeof flexVariants>;
|
|
@@ -3,9 +3,9 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import type { TestableProps } from '../../utils/testId';
|
|
4
4
|
import type { PolymorphicComponentProps } from '../Polymorphic';
|
|
5
5
|
declare const headingVariants: (props?: ({
|
|
6
|
-
size?: "
|
|
7
|
-
weight?: "bold" | "light" | "
|
|
8
|
-
color?: "
|
|
6
|
+
size?: "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | "lg" | "md" | "sm" | "xl" | null | undefined;
|
|
7
|
+
weight?: "bold" | "light" | "medium" | "regular" | null | undefined;
|
|
8
|
+
color?: "inherit" | "primary" | "primary-alt" | "secondary" | "secondary-alt" | null | undefined;
|
|
9
9
|
align?: "center" | "left" | "right" | null | undefined;
|
|
10
10
|
grow?: boolean | null | undefined;
|
|
11
11
|
truncate?: boolean | null | undefined;
|
|
@@ -33,7 +33,7 @@ export interface InlineEditSelectProps {
|
|
|
33
33
|
*/
|
|
34
34
|
children: ReactNode;
|
|
35
35
|
}
|
|
36
|
-
export declare
|
|
37
|
-
|
|
38
|
-
displayName: string;
|
|
39
|
-
}
|
|
36
|
+
export declare function InlineEditSelect({ items, collection, multiple, children, }: InlineEditSelectProps): import("react").JSX.Element;
|
|
37
|
+
export declare namespace InlineEditSelect {
|
|
38
|
+
var displayName: string;
|
|
39
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const inputVariants: (props?: ({
|
|
2
2
|
error?: boolean | null | undefined;
|
|
3
|
-
size?: "
|
|
3
|
+
size?: "default" | "inline-edit" | "medium" | "small" | null | undefined;
|
|
4
4
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -2,7 +2,7 @@ import type { FC, HTMLAttributes } from 'react';
|
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { type TestableProps } from '../../utils/testId';
|
|
4
4
|
export declare const inputGroupVariants: (props?: ({
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "default" | "inline-edit" | "medium" | "small" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export type InputGroupSize = NonNullable<VariantProps<typeof inputGroupVariants>['size']>;
|
|
8
8
|
type InputGroupProps = HTMLAttributes<HTMLDivElement> & VariantProps<typeof inputGroupVariants> & TestableProps;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import type { ComponentProps, FC } from 'react';
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
declare const inputGroupAddonVariants: (props?: ({
|
|
4
|
-
align?: "
|
|
5
|
-
variant?: "
|
|
4
|
+
align?: "block-end" | "inline-end" | "inline-start" | null | undefined;
|
|
5
|
+
variant?: "ghost" | "outline" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export declare const InputGroupAddon: FC<ComponentProps<'div'> & VariantProps<typeof inputGroupAddonVariants>>;
|
|
8
8
|
export {};
|
|
@@ -1,27 +1,27 @@
|
|
|
1
1
|
export declare const datacenters: {
|
|
2
|
-
readonly alibaba:
|
|
3
|
-
readonly aws:
|
|
4
|
-
readonly azure:
|
|
5
|
-
readonly docean:
|
|
6
|
-
readonly gce:
|
|
7
|
-
readonly hetzner:
|
|
8
|
-
readonly huawei:
|
|
9
|
-
readonly ibm:
|
|
10
|
-
readonly linode:
|
|
11
|
-
readonly oracle:
|
|
12
|
-
readonly ovh:
|
|
13
|
-
readonly plusserver:
|
|
14
|
-
readonly rackspace:
|
|
15
|
-
readonly tencent:
|
|
2
|
+
readonly alibaba: 'Alibaba Cloud';
|
|
3
|
+
readonly aws: 'AWS';
|
|
4
|
+
readonly azure: 'Azure';
|
|
5
|
+
readonly docean: 'Digital Ocean';
|
|
6
|
+
readonly gce: 'GCP';
|
|
7
|
+
readonly hetzner: 'Hetzner';
|
|
8
|
+
readonly huawei: 'Huawei Cloud';
|
|
9
|
+
readonly ibm: 'IBM Cloud';
|
|
10
|
+
readonly linode: 'Linode';
|
|
11
|
+
readonly oracle: 'Oracle Cloud';
|
|
12
|
+
readonly ovh: 'OVHcloud';
|
|
13
|
+
readonly plusserver: 'PlusServer';
|
|
14
|
+
readonly rackspace: 'Rackspace';
|
|
15
|
+
readonly tencent: 'Tencent';
|
|
16
16
|
};
|
|
17
17
|
export declare const proxyTypes: {
|
|
18
|
-
readonly TOR:
|
|
19
|
-
readonly VPN:
|
|
20
|
-
readonly DCH:
|
|
21
|
-
readonly SES:
|
|
22
|
-
readonly MIP:
|
|
23
|
-
readonly WEB:
|
|
24
|
-
readonly PUB:
|
|
18
|
+
readonly TOR: 'Tor';
|
|
19
|
+
readonly VPN: 'VPN';
|
|
20
|
+
readonly DCH: 'DC';
|
|
21
|
+
readonly SES: 'Search engine spiders';
|
|
22
|
+
readonly MIP: 'Malicious IPs';
|
|
23
|
+
readonly WEB: 'Web proxy';
|
|
24
|
+
readonly PUB: 'Public proxy';
|
|
25
25
|
};
|
|
26
26
|
export type DatacenterKey = keyof typeof datacenters;
|
|
27
27
|
export type ProxyTypeKey = keyof typeof proxyTypes;
|
|
@@ -2,7 +2,7 @@ import type { ComponentProps, FC } from 'react';
|
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
import type { TestableProps } from '../../utils/testId';
|
|
4
4
|
declare const kbdVariants: (props?: ({
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "medium" | "small" | "xsmall" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
type KbdVariantsProps = VariantProps<typeof kbdVariants>;
|
|
8
8
|
type KbdProps = ComponentProps<'kbd'> & KbdVariantsProps & TestableProps;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export declare const linkVariants: (props?: ({
|
|
2
|
-
type?: "
|
|
3
|
-
size?: "
|
|
4
|
-
weight?: "
|
|
2
|
+
type?: "alt" | "default" | "muted" | "table" | null | undefined;
|
|
3
|
+
size?: "lg" | "md" | "sm" | "xl" | "xs" | null | undefined;
|
|
4
|
+
weight?: "medium" | "regular" | null | undefined;
|
|
5
5
|
disabled?: boolean | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -2,8 +2,8 @@ import type { FC } from 'react';
|
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
import type { TestableProps } from '../../utils/testId';
|
|
4
4
|
declare const loaderVariants: (props?: ({
|
|
5
|
-
size?: "
|
|
6
|
-
color?: "
|
|
5
|
+
size?: "2xl" | "3xl" | "lg" | "md" | "sm" | "xl" | null | undefined;
|
|
6
|
+
color?: "brand" | "danger" | "primary" | "primary-alt" | "primary-alt-fixed" | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
type LoaderType = 'circle' | 'sonner';
|
|
9
9
|
type LoaderVariantsProps = VariantProps<typeof loaderVariants>;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const numberInputRootVariants: (props?: ({
|
|
2
|
-
size?: "
|
|
2
|
+
size?: "default" | "inline-edit" | "medium" | "small" | null | undefined;
|
|
3
3
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4
4
|
export declare const numberInputFieldVariants: (props?: ({
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "default" | "inline-edit" | "medium" | "small" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export declare const numberInputControlVariants: (props?: ({
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "default" | "inline-edit" | "medium" | "small" | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
10
|
export declare const numberInputTriggerVariants: (props?: ({
|
|
11
|
-
size?: "
|
|
11
|
+
size?: "default" | "inline-edit" | "medium" | "small" | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export declare const numericBadgeVariants: (props?: ({
|
|
2
|
-
type?: "
|
|
3
|
-
size?: "
|
|
2
|
+
type?: "brand" | "destructive" | "info" | "outline" | "primary" | "primary-alt" | null | undefined;
|
|
3
|
+
size?: "default" | "small" | null | undefined;
|
|
4
4
|
clickable?: boolean | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -5,11 +5,7 @@ export interface OverflowTooltipProps {
|
|
|
5
5
|
forceTooltip?: boolean;
|
|
6
6
|
positioning?: TooltipProps['positioning'];
|
|
7
7
|
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
export declare const OverflowTooltip: {
|
|
13
|
-
({ children, forceTooltip, positioning, }: OverflowTooltipProps): import("react").JSX.Element;
|
|
14
|
-
displayName: string;
|
|
15
|
-
};
|
|
8
|
+
export declare function OverflowTooltip({ children, forceTooltip, positioning, }: OverflowTooltipProps): import("react").JSX.Element;
|
|
9
|
+
export declare namespace OverflowTooltip {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
@@ -4,10 +4,7 @@ export interface OverflowTooltipContentProps {
|
|
|
4
4
|
className?: string;
|
|
5
5
|
maxWidth?: number;
|
|
6
6
|
}
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
({ children, className, maxWidth, }: OverflowTooltipContentProps): import("react").JSX.Element;
|
|
12
|
-
displayName: string;
|
|
13
|
-
};
|
|
7
|
+
export declare function OverflowTooltipContent({ children, className, maxWidth, }: OverflowTooltipContentProps): import("react").JSX.Element;
|
|
8
|
+
export declare namespace OverflowTooltipContent {
|
|
9
|
+
var displayName: string;
|
|
10
|
+
}
|
|
@@ -2,8 +2,8 @@ export declare const paginationVariants: (props?: ({
|
|
|
2
2
|
align?: "center" | "left" | "right" | null | undefined;
|
|
3
3
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4
4
|
export declare const paginationItemVariants: (props?: ({
|
|
5
|
-
size?: "
|
|
5
|
+
size?: "medium" | "small" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export declare const paginationEllipsisVariants: (props?: ({
|
|
8
|
-
size?: "
|
|
8
|
+
size?: "medium" | "small" | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const MEASURE: {
|
|
2
|
-
readonly method:
|
|
3
|
-
readonly joint:
|
|
4
|
-
readonly segment:
|
|
5
|
-
readonly encoding:
|
|
6
|
-
readonly ellipsis:
|
|
2
|
+
readonly method: 'method';
|
|
3
|
+
readonly joint: 'joint';
|
|
4
|
+
readonly segment: 'segment';
|
|
5
|
+
readonly encoding: 'encoding';
|
|
6
|
+
readonly ellipsis: 'ellipsis';
|
|
7
7
|
};
|
|
8
8
|
export declare const ROW: {
|
|
9
|
-
readonly visible:
|
|
10
|
-
readonly measure:
|
|
9
|
+
readonly visible: 'visible';
|
|
10
|
+
readonly measure: 'measure';
|
|
11
11
|
};
|
|
12
12
|
export declare const EXPAND_KEYS: readonly string[];
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ProgressColor } from './types';
|
|
2
2
|
export declare const progressTrackVariants: (props?: ({
|
|
3
|
-
size?: "
|
|
3
|
+
size?: "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
4
4
|
color?: ProgressColor | null | undefined;
|
|
5
5
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
6
6
|
export declare const progressRangeVariants: (props?: ({
|
|
7
|
-
size?: "
|
|
7
|
+
size?: "lg" | "md" | "sm" | "xs" | null | undefined;
|
|
8
8
|
color?: ProgressColor | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,24 +1,24 @@
|
|
|
1
1
|
export declare const ProgressColorEnum: {
|
|
2
|
-
readonly Brand:
|
|
3
|
-
readonly Slate:
|
|
4
|
-
readonly Red:
|
|
5
|
-
readonly WOrange:
|
|
6
|
-
readonly Amber:
|
|
7
|
-
readonly Yellow:
|
|
8
|
-
readonly Lime:
|
|
9
|
-
readonly Green:
|
|
10
|
-
readonly Emerald:
|
|
11
|
-
readonly Teal:
|
|
12
|
-
readonly Cyan:
|
|
13
|
-
readonly Sky:
|
|
14
|
-
readonly Blue:
|
|
15
|
-
readonly Indigo:
|
|
16
|
-
readonly Violet:
|
|
17
|
-
readonly Fuchsia:
|
|
18
|
-
readonly Pink:
|
|
19
|
-
readonly Rose:
|
|
20
|
-
readonly Gray:
|
|
21
|
-
readonly Zinc:
|
|
22
|
-
readonly Neutral:
|
|
23
|
-
readonly Stone:
|
|
2
|
+
readonly Brand: 'brand';
|
|
3
|
+
readonly Slate: 'slate';
|
|
4
|
+
readonly Red: 'red';
|
|
5
|
+
readonly WOrange: 'w-orange';
|
|
6
|
+
readonly Amber: 'amber';
|
|
7
|
+
readonly Yellow: 'yellow';
|
|
8
|
+
readonly Lime: 'lime';
|
|
9
|
+
readonly Green: 'green';
|
|
10
|
+
readonly Emerald: 'emerald';
|
|
11
|
+
readonly Teal: 'teal';
|
|
12
|
+
readonly Cyan: 'cyan';
|
|
13
|
+
readonly Sky: 'sky';
|
|
14
|
+
readonly Blue: 'blue';
|
|
15
|
+
readonly Indigo: 'indigo';
|
|
16
|
+
readonly Violet: 'violet';
|
|
17
|
+
readonly Fuchsia: 'fuchsia';
|
|
18
|
+
readonly Pink: 'pink';
|
|
19
|
+
readonly Rose: 'rose';
|
|
20
|
+
readonly Gray: 'gray';
|
|
21
|
+
readonly Zinc: 'zinc';
|
|
22
|
+
readonly Neutral: 'neutral';
|
|
23
|
+
readonly Stone: 'stone';
|
|
24
24
|
};
|
|
@@ -2,7 +2,7 @@ import type { FC } from 'react';
|
|
|
2
2
|
import { RadioGroup as ArkUiRadioGroup } from '@ark-ui/react/radio-group';
|
|
3
3
|
import { type VariantProps } from 'class-variance-authority';
|
|
4
4
|
declare const radioGroupVariants: (props?: ({
|
|
5
|
-
variant?: "
|
|
5
|
+
variant?: "card" | "default" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export type RadioGroupNativeProps = Omit<ArkUiRadioGroup.RootProps, 'className'>;
|
|
8
8
|
export type RadioGroupVariantsProps = VariantProps<typeof radioGroupVariants>;
|
|
@@ -2,7 +2,7 @@ import type { ComponentRef, FC, Ref } from 'react';
|
|
|
2
2
|
import { type VariantProps } from 'class-variance-authority';
|
|
3
3
|
import { Separator, type SeparatorProps } from '../Separator';
|
|
4
4
|
declare const segmentedControlSeparatorVariants: (props?: ({
|
|
5
|
-
mx?: 1 | 2 | 4 | 6 | 8 |
|
|
5
|
+
mx?: 1 | 2 | 4 | 6 | 8 | 12 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 56 | 64 | 80 | 96 | 112 | 128 | 144 | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
type SegmentedControlSeparatorVariants = VariantProps<typeof segmentedControlSeparatorVariants>;
|
|
8
8
|
/**
|
|
@@ -5,8 +5,8 @@ export interface SelectBaseProps {
|
|
|
5
5
|
loading?: boolean;
|
|
6
6
|
}
|
|
7
7
|
type SelectProps<T extends CollectionItem> = SelectNativeProps<T> & SelectBaseProps & TestableProps;
|
|
8
|
-
export declare
|
|
9
|
-
|
|
10
|
-
displayName: string;
|
|
11
|
-
}
|
|
8
|
+
export declare function Select<T extends CollectionItem>({ children, loading, disabled, 'data-testid': testId, ...props }: SelectProps<T>): import("react").JSX.Element;
|
|
9
|
+
export declare namespace Select {
|
|
10
|
+
var displayName: string;
|
|
11
|
+
}
|
|
12
12
|
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import type { SelectDataItem } from '../types';
|
|
2
|
-
export declare const createSelectInputOverflowRenderer: (size:
|
|
2
|
+
export declare const createSelectInputOverflowRenderer: (size: 'small' | 'medium' | 'default' | 'inline-edit') => (items: SelectDataItem[]) => import("react").JSX.Element;
|
|
@@ -12,7 +12,7 @@ export interface SelectionProps<T> extends TestableProps {
|
|
|
12
12
|
className?: string;
|
|
13
13
|
children?: ReactNode;
|
|
14
14
|
}
|
|
15
|
-
export declare
|
|
16
|
-
|
|
17
|
-
displayName: string;
|
|
18
|
-
}
|
|
15
|
+
export declare function Selection<T>({ items, getItemId, value, onChange, className, 'data-testid': testId, children, }: SelectionProps<T>): import("react").JSX.Element;
|
|
16
|
+
export declare namespace Selection {
|
|
17
|
+
var displayName: string;
|
|
18
|
+
}
|
|
@@ -3,7 +3,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import type { TestableProps } from '../../utils/testId';
|
|
4
4
|
declare const separatorVariants: (props?: ({
|
|
5
5
|
orientation?: "horizontal" | "vertical" | null | undefined;
|
|
6
|
-
spacing?: 1 | 2 | 4 | 6 | 8 |
|
|
6
|
+
spacing?: 1 | 2 | 4 | 6 | 8 | 12 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 56 | 64 | 80 | 96 | 112 | 128 | 144 | null | undefined;
|
|
7
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
8
8
|
export type SeparatorProps = ComponentPropsWithoutRef<'div'> & VariantProps<typeof separatorVariants> & TestableProps & {
|
|
9
9
|
ref?: Ref<HTMLDivElement>;
|
|
@@ -17,14 +17,14 @@ export declare const barListItemVariants: (props?: ({
|
|
|
17
17
|
* `<BarListBar className='bg-sky-500/16' />`.
|
|
18
18
|
*/
|
|
19
19
|
export declare const barListBarVariants: (props?: ({
|
|
20
|
-
color?: "
|
|
20
|
+
color?: "amber" | "blue" | "brand" | "cyan" | "green" | "indigo" | "pink" | "purple" | "red" | "rose" | "slate" | "teal" | null | undefined;
|
|
21
21
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
22
|
export declare const barListLabelClasses: string;
|
|
23
23
|
export declare const barListValueClasses: string;
|
|
24
24
|
export declare const barListPercentVariants: (props?: ({
|
|
25
|
-
variant?: "
|
|
25
|
+
variant?: "inherit" | "muted" | "split" | null | undefined;
|
|
26
26
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
27
27
|
export declare const barListPercentSymbolVariants: (props?: ({
|
|
28
|
-
variant?: "
|
|
28
|
+
variant?: "inherit" | "muted" | "split" | null | undefined;
|
|
29
29
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
30
30
|
export declare const barListSkeletonRowClasses: string;
|
|
@@ -18,8 +18,8 @@ export declare const LINE_DEFAULT_BODY_MARGIN: {
|
|
|
18
18
|
};
|
|
19
19
|
export declare const HOVER_POPOVER_TOP = 8;
|
|
20
20
|
export declare const LINE_AXIS_TICK_TEXT_PROPS: {
|
|
21
|
-
readonly fill:
|
|
21
|
+
readonly fill: 'var(--color-text-secondary)';
|
|
22
22
|
readonly fontSize: 10;
|
|
23
|
-
readonly fontFamily:
|
|
23
|
+
readonly fontFamily: 'var(--font-sans)';
|
|
24
24
|
readonly fontWeight: 400;
|
|
25
25
|
};
|
|
@@ -14,9 +14,9 @@ export declare const pieChartLegendValueClasses: string;
|
|
|
14
14
|
export declare const pieChartLegendPercentClasses: string;
|
|
15
15
|
export declare const legendDotClasses: string;
|
|
16
16
|
export declare const pieChartLegendPercentValueVariants: (props?: ({
|
|
17
|
-
variant?: "
|
|
17
|
+
variant?: "inherit" | "muted" | "split" | null | undefined;
|
|
18
18
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
19
19
|
export declare const pieChartLegendPercentSymbolVariants: (props?: ({
|
|
20
|
-
variant?: "
|
|
20
|
+
variant?: "inherit" | "muted" | "split" | null | undefined;
|
|
21
21
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
22
|
export declare const pieChartSkeletonRowClasses: string;
|
|
@@ -3,7 +3,7 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import type { TestableProps } from '../../utils/testId';
|
|
4
4
|
declare const skeletonVariants: (props?: ({
|
|
5
5
|
transparent?: boolean | null | undefined;
|
|
6
|
-
rounded?:
|
|
6
|
+
rounded?: "full" | "none" | 2 | 4 | 6 | 8 | 12 | 16 | 24 | 32 | null | undefined;
|
|
7
7
|
withDimensions?: boolean | null | undefined;
|
|
8
8
|
withChildren?: boolean | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
export declare const splashContainerVariants: (props?: ({
|
|
2
|
-
phase?: "
|
|
2
|
+
phase?: "content-fading" | "enter-start" | "entered" | "exiting" | "settled" | "shrinking" | null | undefined;
|
|
3
3
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
4
4
|
export declare const splashContentVariants: (props?: ({
|
|
5
|
-
phase?: "
|
|
5
|
+
phase?: "content-fading" | "enter-start" | "entered" | "exiting" | null | undefined;
|
|
6
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
7
7
|
export declare const splashLogoVariants: (props?: ({
|
|
8
|
-
phase?: "
|
|
8
|
+
phase?: "content-fading" | "enter-start" | "entered" | "exiting" | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
10
10
|
export declare const splashProgressVariants: (props?: ({
|
|
11
|
-
phase?: "
|
|
11
|
+
phase?: "content-fading" | "enter-start" | "entered" | "exiting" | null | undefined;
|
|
12
12
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -3,14 +3,14 @@ import { type VariantProps } from 'class-variance-authority';
|
|
|
3
3
|
import type { TestableProps } from '../../utils/testId';
|
|
4
4
|
declare const stackVariants: (props?: ({
|
|
5
5
|
inline?: boolean | null | undefined;
|
|
6
|
-
direction?: "
|
|
7
|
-
align?: "
|
|
8
|
-
justify?: "
|
|
9
|
-
wrap?: "
|
|
6
|
+
direction?: "column" | "column-reverse" | "row" | "row-reverse" | null | undefined;
|
|
7
|
+
align?: "baseline" | "center" | "end" | "start" | "stretch" | null | undefined;
|
|
8
|
+
justify?: "around" | "between" | "center" | "end" | "evenly" | "start" | null | undefined;
|
|
9
|
+
wrap?: "nowrap" | "reverse" | "wrap" | null | undefined;
|
|
10
10
|
fullWidth?: boolean | null | undefined;
|
|
11
11
|
flexGrow?: boolean | null | undefined;
|
|
12
12
|
flexShrink?: boolean | null | undefined;
|
|
13
|
-
gap?: 0 | 1 | 2 | 4 | 6 | 8 |
|
|
13
|
+
gap?: 0 | 1 | 2 | 4 | 6 | 8 | 12 | 16 | 20 | 24 | 28 | 32 | 36 | 40 | 44 | 48 | 56 | 64 | 80 | 96 | 112 | 128 | 144 | null | undefined;
|
|
14
14
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
15
|
type StackNativeProps = HTMLAttributes<HTMLDivElement>;
|
|
16
16
|
type StackVariantProps = VariantProps<typeof stackVariants>;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { FC, HTMLAttributes, ReactNode, Ref } from 'react';
|
|
2
|
+
import { type TestableProps } from '../../../utils/testId';
|
|
3
|
+
import { type SelectDataItem } from '../../Select';
|
|
4
|
+
type NativeProps = Omit<HTMLAttributes<HTMLDivElement>, 'children' | 'onChange'>;
|
|
5
|
+
export interface EditableSelectCellProps extends NativeProps, TestableProps {
|
|
6
|
+
/** Current committed value; `null` / `''` renders the placeholder. */
|
|
7
|
+
value: string | null;
|
|
8
|
+
/** Called with the picked value when the selection changes. */
|
|
9
|
+
onCommit: (value: string) => void;
|
|
10
|
+
/** Options for the dropdown. */
|
|
11
|
+
items: SelectDataItem[];
|
|
12
|
+
/** Read-mode rendering of the selected value (e.g. a `Badge`). */
|
|
13
|
+
children?: ReactNode;
|
|
14
|
+
/** Shown when nothing is selected. Defaults to `'Select…'`. */
|
|
15
|
+
placeholder?: ReactNode;
|
|
16
|
+
ref?: Ref<HTMLDivElement>;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* Inline-editable, fixed-option cell for the DataTable. The cell IS the select
|
|
20
|
+
* trigger, so the read view is never swapped out — opening the menu only paints
|
|
21
|
+
* the brand-orange border and drops the dropdown below (zero layout shift).
|
|
22
|
+
* When nothing is selected it renders `placeholder`.
|
|
23
|
+
*
|
|
24
|
+
* Analytics-ready: arbitrary `data-*` / `aria-*` / `id` / event props land on
|
|
25
|
+
* the trigger element, which is the real interactive node.
|
|
26
|
+
*/
|
|
27
|
+
export declare const EditableSelectCell: FC<EditableSelectCellProps>;
|
|
28
|
+
export {};
|