@wallarm-org/design-system 0.22.0-rc-feature-WDS-74-attribute.1 → 0.22.0
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/Flex/Flex.d.ts +1 -1
- package/dist/components/SegmentedControl/SegmentedControlSeparator.d.ts +1 -1
- package/dist/components/Separator/Separator.d.ts +1 -1
- package/dist/components/Skeleton/Skeleton.d.ts +1 -1
- package/dist/components/SplitButton/SplitButton.d.ts +6 -0
- package/dist/components/SplitButton/SplitButton.js +18 -0
- package/dist/components/SplitButton/classes.d.ts +1 -0
- package/dist/components/SplitButton/classes.js +7 -0
- package/dist/components/SplitButton/index.d.ts +1 -0
- package/dist/components/SplitButton/index.js +2 -0
- package/dist/components/Stack/Stack.d.ts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/metadata/components.json +644 -1263
- package/package.json +1 -1
- package/dist/components/Attribute/Attribute.d.ts +0 -9
- package/dist/components/Attribute/Attribute.js +0 -33
- package/dist/components/Attribute/AttributeLabel.d.ts +0 -15
- package/dist/components/Attribute/AttributeLabel.js +0 -60
- package/dist/components/Attribute/AttributeValue.d.ts +0 -6
- package/dist/components/Attribute/AttributeValue.js +0 -25
- package/dist/components/Attribute/index.d.ts +0 -3
- package/dist/components/Attribute/index.js +0 -4
|
@@ -7,7 +7,7 @@ declare const flexVariants: (props?: ({
|
|
|
7
7
|
align?: "end" | "baseline" | "start" | "center" | "stretch" | null | undefined;
|
|
8
8
|
justify?: "end" | "start" | "center" | "between" | "around" | "evenly" | null | undefined;
|
|
9
9
|
wrap?: "reverse" | "wrap" | "nowrap" | null | undefined;
|
|
10
|
-
gap?: 1 | 2 | 4 | 6 | 8 | 12 | 16 |
|
|
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;
|
|
@@ -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 | 12 | 16 |
|
|
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
|
/**
|
|
@@ -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 | 12 | 16 |
|
|
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>;
|
|
@@ -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?: "none" | 2 | 4 | 6 | 8 |
|
|
6
|
+
rounded?: "none" | 2 | 4 | 6 | 8 | 12 | 16 | 24 | 32 | "full" | null | undefined;
|
|
7
7
|
withDimensions?: boolean | null | undefined;
|
|
8
8
|
withChildren?: boolean | null | undefined;
|
|
9
9
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { ComponentPropsWithRef, FC, ReactNode } from 'react';
|
|
2
|
+
import { type TestableProps } from '../../utils/testId';
|
|
3
|
+
export interface SplitButtonProps extends ComponentPropsWithRef<'div'>, TestableProps {
|
|
4
|
+
children: ReactNode;
|
|
5
|
+
}
|
|
6
|
+
export declare const SplitButton: FC<SplitButtonProps>;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { jsx } from "react/jsx-runtime";
|
|
2
|
+
import { cn } from "../../utils/cn.js";
|
|
3
|
+
import { TestIdProvider } from "../../utils/testId.js";
|
|
4
|
+
import { splitButtonVariants } from "./classes.js";
|
|
5
|
+
const SplitButton = ({ 'data-testid': testId, className, children, ref, ...props })=>/*#__PURE__*/ jsx(TestIdProvider, {
|
|
6
|
+
value: testId,
|
|
7
|
+
children: /*#__PURE__*/ jsx("div", {
|
|
8
|
+
...props,
|
|
9
|
+
ref: ref,
|
|
10
|
+
role: "group",
|
|
11
|
+
"data-slot": "split-button",
|
|
12
|
+
"data-testid": testId,
|
|
13
|
+
className: cn(splitButtonVariants(), className),
|
|
14
|
+
children: children
|
|
15
|
+
})
|
|
16
|
+
});
|
|
17
|
+
SplitButton.displayName = 'SplitButton';
|
|
18
|
+
export { SplitButton };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const splitButtonVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SplitButton, type SplitButtonProps } from './SplitButton';
|
|
@@ -10,7 +10,7 @@ declare const stackVariants: (props?: ({
|
|
|
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 | 12 | 16 |
|
|
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 = Omit<HTMLAttributes<HTMLDivElement>, 'className'>;
|
|
16
16
|
type StackVariantProps = VariantProps<typeof stackVariants>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { Alert, AlertClose, type AlertCloseProps, type AlertColor, AlertContent, type AlertContentProps, AlertControls, type AlertControlsProps, AlertDescription, type AlertDescriptionProps, AlertIcon, type AlertIconProps, type AlertProps, AlertTitle, type AlertTitleProps, } from './components/Alert';
|
|
2
|
-
export { Attribute, AttributeLabel, type AttributeLabelProps, type AttributeProps, AttributeValue, type AttributeValueProps, } from './components/Attribute';
|
|
3
2
|
export { Badge, type BadgeProps } from './components/Badge';
|
|
4
3
|
export { Button, type ButtonProps } from './components/Button';
|
|
5
4
|
export { Calendar, CalendarApplyButton, type CalendarApplyButtonProps, CalendarBody, type CalendarBodyProps, CalendarContent, type CalendarContentProps, type CalendarContextValue, CalendarDayName, CalendarFooter, CalendarFooterControls, type CalendarFooterControlsProps, type CalendarFooterProps, CalendarGrid, CalendarGrids, type CalendarGridsProps, CalendarHeader, CalendarInputHeader, type CalendarInputHeaderProps, CalendarKeyboardHints, type CalendarKeyboardHintsProps, CalendarPresetItem, CalendarPresets, type CalendarPresetsProps, type CalendarProps, CalendarProvider, CalendarResetButton, type CalendarResetButtonProps, CalendarTrigger, type CalendarTriggerProps, type CalendarType, DAY_NAMES, type DateRangePreset, type DateValue, DEFAULT_RANGE_PRESETS, DEFAULT_SINGLE_PRESETS, MONTH_NAMES, type PresetConfig, type PresetValue, useCalendarContext, } from './components/Calendar';
|
|
@@ -33,6 +32,7 @@ export { SegmentedTabs, SegmentedTabsButton, SegmentedTabsContent, SegmentedTabs
|
|
|
33
32
|
export { Select, SelectButton, SelectClearTrigger, SelectContent, SelectFooter, SelectGroup, SelectGroupLabel, SelectHeader, SelectInput, SelectOption, SelectOptionDescription, SelectOptionIndicator, SelectOptionText, SelectPositioner, SelectSearchInput, SelectSeparator, } from './components/Select';
|
|
34
33
|
export { Separator, type SeparatorProps } from './components/Separator';
|
|
35
34
|
export { Skeleton, type SkeletonProps } from './components/Skeleton';
|
|
35
|
+
export { SplitButton, type SplitButtonProps } from './components/SplitButton';
|
|
36
36
|
export { HStack, type HStackProps, Stack, type StackProps, VStack, type VStackProps, } from './components/Stack';
|
|
37
37
|
export { Switch, SwitchControl, SwitchDescription, type SwitchDescriptionProps, SwitchLabel, type SwitchLabelProps, type SwitchProps, } from './components/Switch';
|
|
38
38
|
export { createTableColumnHelper, Table, type TableAccessorColumnDef, TableActionBar, type TableCellContext, type TableColumnBase, type TableColumnDef, type TableColumnHelper, type TableColumnMeta, type TableColumnPinningState, type TableColumnSizingState, type TableDisplayColumnDef, TableEmptyState, type TableExpandedState, type TableGroupingState, type TableOnChangeFn, type TableProps, type TableRow, type TableRowSelectionState, TableSettingsMenu, type TableSortingState, type TableUpdater, type TableVisibilityState, } from './components/Table';
|
package/dist/index.js
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { Alert, AlertClose, AlertContent, AlertControls, AlertDescription, AlertIcon, AlertTitle } from "./components/Alert/index.js";
|
|
2
|
-
import { Attribute, AttributeLabel, AttributeValue } from "./components/Attribute/index.js";
|
|
3
2
|
import { Badge } from "./components/Badge/index.js";
|
|
4
3
|
import { Button } from "./components/Button/index.js";
|
|
5
4
|
import { Calendar, CalendarApplyButton, CalendarBody, CalendarContent, CalendarDayName, CalendarFooter, CalendarFooterControls, CalendarGrid, CalendarGrids, CalendarHeader, CalendarInputHeader, CalendarKeyboardHints, CalendarPresetItem, CalendarPresets, CalendarProvider, CalendarResetButton, CalendarTrigger, DAY_NAMES, DEFAULT_RANGE_PRESETS, DEFAULT_SINGLE_PRESETS, MONTH_NAMES, useCalendarContext } from "./components/Calendar/index.js";
|
|
@@ -33,6 +32,7 @@ import { SegmentedTabs, SegmentedTabsButton, SegmentedTabsContent, SegmentedTabs
|
|
|
33
32
|
import { Select, SelectButton, SelectClearTrigger, SelectContent, SelectFooter, SelectGroup, SelectGroupLabel, SelectHeader, SelectInput, SelectOption, SelectOptionDescription, SelectOptionIndicator, SelectOptionText, SelectPositioner, SelectSearchInput, SelectSeparator } from "./components/Select/index.js";
|
|
34
33
|
import { Separator } from "./components/Separator/index.js";
|
|
35
34
|
import { Skeleton } from "./components/Skeleton/index.js";
|
|
35
|
+
import { SplitButton } from "./components/SplitButton/index.js";
|
|
36
36
|
import { HStack, Stack, VStack } from "./components/Stack/index.js";
|
|
37
37
|
import { Switch, SwitchControl, SwitchDescription, SwitchLabel } from "./components/Switch/index.js";
|
|
38
38
|
import { Table, TableActionBar, TableEmptyState, TableSettingsMenu, createTableColumnHelper } from "./components/Table/index.js";
|
|
@@ -47,4 +47,4 @@ import { ToggleButton } from "./components/ToggleButton/index.js";
|
|
|
47
47
|
import { Tooltip, TooltipContent, TooltipTrigger } from "./components/Tooltip/index.js";
|
|
48
48
|
import { Tour, beaconStepEffect, useTour, waitForStepEvent } from "./components/Tour/index.js";
|
|
49
49
|
import { TestIdProvider, useTestId } from "./utils/testId.js";
|
|
50
|
-
export { Alert, AlertClose, AlertContent, AlertControls, AlertDescription, AlertIcon, AlertTitle,
|
|
50
|
+
export { Alert, AlertClose, AlertContent, AlertControls, AlertDescription, AlertIcon, AlertTitle, Badge, Button, Calendar, CalendarApplyButton, CalendarBody, CalendarContent, CalendarDayName, CalendarFooter, CalendarFooterControls, CalendarGrid, CalendarGrids, CalendarHeader, CalendarInputHeader, CalendarKeyboardHints, CalendarPresetItem, CalendarPresets, CalendarProvider, CalendarResetButton, CalendarTrigger, Card, CardContent, CardFooter, CardHeader, CardTitle, Checkbox, CheckboxDescription, CheckboxGroup, CheckboxIndicator, CheckboxLabel, Code, Country, CountryFlag, CountryName, DAY_NAMES, DEFAULT_RANGE_PRESETS, DEFAULT_SINGLE_PRESETS, DateInput, DateRangeEndValue, DateRangeInput, DateRangeProvider, DateRangeSeparator, DateRangeStartValue, Drawer, DrawerBody, DrawerClose, DrawerContent, DrawerFooter, DrawerFooterControls, DrawerHeader, DrawerPositioner, DrawerResizeHandle, DrawerTitle, DrawerTrigger, DropdownMenu, DropdownMenuContent, DropdownMenuContextTrigger, DropdownMenuFooter, DropdownMenuGroup, DropdownMenuInput, DropdownMenuItem, DropdownMenuItemContent, DropdownMenuItemDescription, DropdownMenuItemIcon, DropdownMenuItemText, DropdownMenuLabel, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuTrigger, DropdownMenuTriggerItem, Field, FieldContent, FieldDescription, FieldError, FieldGroup, FieldLabel, FieldLegend, FieldSeparator, FieldSet, FieldTitle, FilterInput, FilterInputChip, FilterInputFieldMenu, FilterInputOperatorMenu, Flex, FormatDateTime, HStack, Heading, Input, InputGroup, InputGroupAddon, InputGroupText, Ip, IpAddress, IpCountry, IpList, IpPort, IpProvider, Kbd, KbdGroup, Link, Loader, MONTH_NAMES, NumberInput, NumericBadge, OverflowTooltip, OverflowTooltipContent, Popover, PopoverContent, PopoverTrigger, Radio, RadioDescription, RadioGroup, RadioIndicator, RadioLabel, ScrollArea, ScrollAreaContent, ScrollAreaCorner, ScrollAreaScrollbar, ScrollAreaViewport, SegmentedControl, SegmentedControlButton, SegmentedControlItem, SegmentedControlSeparator, SegmentedTabs, SegmentedTabsButton, SegmentedTabsContent, SegmentedTabsList, SegmentedTabsSeparator, SegmentedTabsTrigger, SegmentedTabsTriggerButton, Select, SelectButton, SelectClearTrigger, SelectContent, SelectFooter, SelectGroup, SelectGroupLabel, SelectHeader, SelectInput, SelectOption, SelectOptionDescription, SelectOptionIndicator, SelectOptionText, SelectPositioner, SelectSearchInput, SelectSeparator, Separator, Skeleton, SplitButton, Stack, Switch, SwitchControl, SwitchDescription, SwitchLabel, Table, TableActionBar, TableEmptyState, TableSettingsMenu, Tabs, TabsButton, TabsContent, TabsLineActions, TabsList, TabsSeparator, TabsTrigger, Tag, TagClose, TestIdProvider, Text, Textarea, ThemeProvider, TimeInput, Toast, ToastActions, Toaster, ToggleButton, Tooltip, TooltipContent, TooltipTrigger, Tour, VStack, beaconStepEffect, cardVariants, createTableColumnHelper, datacenters, drawerContentVariants, drawerPositionerVariants, proxyTypes, sourceLabels, toaster, useCalendarContext, useDateRangeContext, useDrawerContext, useTestId, useTheme, useTour, waitForStepEvent };
|