@wallarm-org/design-system 0.37.0 → 0.38.0-rc-feature-AS-962.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.
Files changed (40) hide show
  1. package/dist/components/Accordion/Accordion.d.ts +34 -0
  2. package/dist/components/Accordion/Accordion.js +27 -0
  3. package/dist/components/Accordion/AccordionActions.d.ts +11 -0
  4. package/dist/components/Accordion/AccordionActions.js +17 -0
  5. package/dist/components/Accordion/AccordionContent.d.ts +7 -0
  6. package/dist/components/Accordion/AccordionContent.js +25 -0
  7. package/dist/components/Accordion/AccordionContext/AccordionContext.d.ts +5 -0
  8. package/dist/components/Accordion/AccordionContext/AccordionContext.js +3 -0
  9. package/dist/components/Accordion/AccordionContext/AccordionContextProvider.d.ts +7 -0
  10. package/dist/components/Accordion/AccordionContext/AccordionContextProvider.js +9 -0
  11. package/dist/components/Accordion/AccordionContext/index.d.ts +3 -0
  12. package/dist/components/Accordion/AccordionContext/index.js +4 -0
  13. package/dist/components/Accordion/AccordionContext/useAccordionContext.d.ts +2 -0
  14. package/dist/components/Accordion/AccordionContext/useAccordionContext.js +8 -0
  15. package/dist/components/Accordion/AccordionItem.d.ts +7 -0
  16. package/dist/components/Accordion/AccordionItem.js +26 -0
  17. package/dist/components/Accordion/AccordionTrigger.d.ts +7 -0
  18. package/dist/components/Accordion/AccordionTrigger.js +50 -0
  19. package/dist/components/Accordion/classes.d.ts +18 -0
  20. package/dist/components/Accordion/classes.js +66 -0
  21. package/dist/components/Accordion/index.d.ts +6 -0
  22. package/dist/components/Accordion/index.js +6 -0
  23. package/dist/components/Badge/classes.d.ts +1 -1
  24. package/dist/components/Code/Code.d.ts +1 -1
  25. package/dist/components/FilterInput/FilterInputField/FilterInputChip/classes.d.ts +1 -1
  26. package/dist/components/Flex/Flex.d.ts +2 -2
  27. package/dist/components/Heading/Heading.d.ts +2 -2
  28. package/dist/components/SimpleCharts/BarList/classes.d.ts +2 -2
  29. package/dist/components/SimpleCharts/LineChart/classes.d.ts +1 -1
  30. package/dist/components/SimpleCharts/PieChart/classes.d.ts +2 -2
  31. package/dist/components/Skeleton/Skeleton.d.ts +1 -1
  32. package/dist/components/Stack/Stack.d.ts +2 -2
  33. package/dist/components/Text/Text.d.ts +2 -2
  34. package/dist/components/Tour/TourSpotlight.d.ts +1 -1
  35. package/dist/index.d.ts +1 -0
  36. package/dist/index.js +2 -1
  37. package/dist/metadata/components.json +1270 -2
  38. package/dist/theme/components/accordion.css +24 -0
  39. package/dist/theme/index.css +1 -0
  40. package/package.json +1 -1
@@ -0,0 +1,34 @@
1
+ import type { FC, ReactNode } from 'react';
2
+ import { Accordion as ArkUiAccordion } from '@ark-ui/react/accordion';
3
+ import { type TestableProps } from '../../utils/testId';
4
+ import { type AccordionVariant } from './AccordionContext';
5
+ export type AccordionValueChangeDetails = ArkUiAccordion.ValueChangeDetails;
6
+ export interface AccordionProps extends TestableProps {
7
+ children: ReactNode;
8
+ /** Visual variant of the accordion */
9
+ variant?: AccordionVariant;
10
+ /** Whether multiple items can be expanded at the same time */
11
+ multiple?: boolean;
12
+ /** Whether an expanded item can be collapsed (when `multiple` is false) */
13
+ collapsible?: boolean;
14
+ /** Controlled expanded item values */
15
+ value?: string[];
16
+ /** Initial expanded item values for uncontrolled usage */
17
+ defaultValue?: string[];
18
+ /** Callback fired when expanded items change */
19
+ onValueChange?: (details: AccordionValueChangeDetails) => void;
20
+ /** Disable all interaction */
21
+ disabled?: boolean;
22
+ className?: string;
23
+ }
24
+ /**
25
+ * Accordion component for progressive disclosure of content.
26
+ *
27
+ * Three variants:
28
+ * - `primary` — lightweight row, 40px height, base font.
29
+ * - `secondary` — compact row, 24px height, small muted text.
30
+ * - `section` — bordered panel with title, optional `AccordionActions` and content area.
31
+ *
32
+ * Compose with `AccordionItem`, `AccordionTrigger`, `AccordionActions`, and `AccordionContent`.
33
+ */
34
+ export declare const Accordion: FC<AccordionProps>;
@@ -0,0 +1,27 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Accordion } from "@ark-ui/react/accordion";
3
+ import { cn } from "../../utils/cn.js";
4
+ import { TestIdProvider } from "../../utils/testId.js";
5
+ import { AccordionContextProvider } from "./AccordionContext/index.js";
6
+ import { accordionRootVariants } from "./classes.js";
7
+ const Accordion_Accordion = ({ children, variant = 'primary', multiple = false, collapsible = true, value, defaultValue, onValueChange, disabled, className, 'data-testid': testId })=>/*#__PURE__*/ jsx(AccordionContextProvider, {
8
+ variant: variant,
9
+ children: /*#__PURE__*/ jsx(Accordion.Root, {
10
+ "data-slot": "accordion",
11
+ "data-testid": testId,
12
+ "data-variant": variant,
13
+ className: cn(accordionRootVariants(), className),
14
+ multiple: multiple,
15
+ collapsible: collapsible,
16
+ value: value,
17
+ defaultValue: defaultValue,
18
+ onValueChange: onValueChange,
19
+ disabled: disabled,
20
+ children: /*#__PURE__*/ jsx(TestIdProvider, {
21
+ value: testId,
22
+ children: children
23
+ })
24
+ })
25
+ });
26
+ Accordion_Accordion.displayName = 'Accordion';
27
+ export { Accordion_Accordion as Accordion };
@@ -0,0 +1,11 @@
1
+ import type { FC, HTMLAttributes, ReactNode, Ref } from 'react';
2
+ export interface AccordionActionsProps extends HTMLAttributes<HTMLDivElement> {
3
+ ref?: Ref<HTMLDivElement>;
4
+ children: ReactNode;
5
+ }
6
+ /**
7
+ * Action slot for the `section` variant — renders as a sibling of
8
+ * `AccordionTrigger` (not nested inside the trigger `<button>`), so clicks
9
+ * on its children do not toggle the accordion.
10
+ */
11
+ export declare const AccordionActions: FC<AccordionActionsProps>;
@@ -0,0 +1,17 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { cn } from "../../utils/cn.js";
3
+ import { useTestId } from "../../utils/testId.js";
4
+ import { accordionActionsVariants } from "./classes.js";
5
+ const AccordionActions = ({ ref, children, className, ...rest })=>{
6
+ const testId = useTestId('actions');
7
+ return /*#__PURE__*/ jsx("div", {
8
+ ref: ref,
9
+ "data-slot": "accordion-actions",
10
+ "data-testid": testId,
11
+ className: cn(accordionActionsVariants(), className),
12
+ ...rest,
13
+ children: children
14
+ });
15
+ };
16
+ AccordionActions.displayName = 'AccordionActions';
17
+ export { AccordionActions };
@@ -0,0 +1,7 @@
1
+ import type { FC, ReactNode, Ref } from 'react';
2
+ import { Accordion as ArkUiAccordion } from '@ark-ui/react/accordion';
3
+ export interface AccordionContentProps extends ArkUiAccordion.ItemContentProps {
4
+ ref?: Ref<HTMLDivElement>;
5
+ children: ReactNode;
6
+ }
7
+ export declare const AccordionContent: FC<AccordionContentProps>;
@@ -0,0 +1,25 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Accordion } from "@ark-ui/react/accordion";
3
+ import { cn } from "../../utils/cn.js";
4
+ import { useTestId } from "../../utils/testId.js";
5
+ import { useAccordionContext } from "./AccordionContext/index.js";
6
+ import { accordionContentInnerVariants, accordionContentVariants } from "./classes.js";
7
+ const AccordionContent = ({ ref, children, className, ...rest })=>{
8
+ const { variant } = useAccordionContext();
9
+ const testId = useTestId('content');
10
+ return /*#__PURE__*/ jsx(Accordion.ItemContent, {
11
+ ref: ref,
12
+ "data-slot": "accordion-content",
13
+ "data-testid": testId,
14
+ className: cn(accordionContentVariants({
15
+ variant
16
+ }), className),
17
+ ...rest,
18
+ children: /*#__PURE__*/ jsx("div", {
19
+ className: cn(accordionContentInnerVariants()),
20
+ children: children
21
+ })
22
+ });
23
+ };
24
+ AccordionContent.displayName = 'AccordionContent';
25
+ export { AccordionContent };
@@ -0,0 +1,5 @@
1
+ export type AccordionVariant = 'primary' | 'secondary' | 'section';
2
+ export interface AccordionContextValue {
3
+ variant: AccordionVariant;
4
+ }
5
+ export declare const AccordionContext: import("react").Context<AccordionContextValue | null>;
@@ -0,0 +1,3 @@
1
+ import { createContext } from "react";
2
+ const AccordionContext = createContext(null);
3
+ export { AccordionContext };
@@ -0,0 +1,7 @@
1
+ import type { FC, PropsWithChildren } from 'react';
2
+ import { type AccordionVariant } from './AccordionContext';
3
+ interface AccordionContextProviderProps extends PropsWithChildren {
4
+ variant: AccordionVariant;
5
+ }
6
+ export declare const AccordionContextProvider: FC<AccordionContextProviderProps>;
7
+ export {};
@@ -0,0 +1,9 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { AccordionContext } from "./AccordionContext.js";
3
+ const AccordionContextProvider = ({ children, variant })=>/*#__PURE__*/ jsx(AccordionContext.Provider, {
4
+ value: {
5
+ variant
6
+ },
7
+ children: children
8
+ });
9
+ export { AccordionContextProvider };
@@ -0,0 +1,3 @@
1
+ export { AccordionContext, type AccordionContextValue, type AccordionVariant, } from './AccordionContext';
2
+ export { AccordionContextProvider } from './AccordionContextProvider';
3
+ export { useAccordionContext } from './useAccordionContext';
@@ -0,0 +1,4 @@
1
+ import { AccordionContext } from "./AccordionContext.js";
2
+ import { AccordionContextProvider } from "./AccordionContextProvider.js";
3
+ import { useAccordionContext } from "./useAccordionContext.js";
4
+ export { AccordionContext, AccordionContextProvider, useAccordionContext };
@@ -0,0 +1,2 @@
1
+ import { type AccordionContextValue } from './AccordionContext';
2
+ export declare const useAccordionContext: () => AccordionContextValue;
@@ -0,0 +1,8 @@
1
+ import { useContext } from "react";
2
+ import { AccordionContext } from "./AccordionContext.js";
3
+ const useAccordionContext = ()=>{
4
+ const ctx = useContext(AccordionContext);
5
+ if (!ctx) throw new Error('Accordion sub-components must be rendered inside an <Accordion> root');
6
+ return ctx;
7
+ };
8
+ export { useAccordionContext };
@@ -0,0 +1,7 @@
1
+ import type { FC, ReactNode, Ref } from 'react';
2
+ import { Accordion as ArkUiAccordion } from '@ark-ui/react/accordion';
3
+ export interface AccordionItemProps extends ArkUiAccordion.ItemProps {
4
+ ref?: Ref<HTMLDivElement>;
5
+ children: ReactNode;
6
+ }
7
+ export declare const AccordionItem: FC<AccordionItemProps>;
@@ -0,0 +1,26 @@
1
+ import { jsx } from "react/jsx-runtime";
2
+ import { Accordion } from "@ark-ui/react/accordion";
3
+ import { cn } from "../../utils/cn.js";
4
+ import { TestIdProvider, useTestId } from "../../utils/testId.js";
5
+ import { useAccordionContext } from "./AccordionContext/index.js";
6
+ import { accordionItemVariants } from "./classes.js";
7
+ const AccordionItem = ({ ref, children, value, className, ...rest })=>{
8
+ const { variant } = useAccordionContext();
9
+ const testId = useTestId(`item-${value}`);
10
+ return /*#__PURE__*/ jsx(Accordion.Item, {
11
+ ref: ref,
12
+ value: value,
13
+ "data-slot": "accordion-item",
14
+ "data-testid": testId,
15
+ className: cn(accordionItemVariants({
16
+ variant
17
+ }), className),
18
+ ...rest,
19
+ children: /*#__PURE__*/ jsx(TestIdProvider, {
20
+ value: testId,
21
+ children: children
22
+ })
23
+ });
24
+ };
25
+ AccordionItem.displayName = 'AccordionItem';
26
+ export { AccordionItem };
@@ -0,0 +1,7 @@
1
+ import type { FC, ReactNode, Ref } from 'react';
2
+ import { Accordion as ArkUiAccordion } from '@ark-ui/react/accordion';
3
+ export interface AccordionTriggerProps extends Omit<ArkUiAccordion.ItemTriggerProps, 'type'> {
4
+ ref?: Ref<HTMLButtonElement>;
5
+ children: ReactNode;
6
+ }
7
+ export declare const AccordionTrigger: FC<AccordionTriggerProps>;
@@ -0,0 +1,50 @@
1
+ import { Fragment, jsx, jsxs } from "react/jsx-runtime";
2
+ import { Accordion } from "@ark-ui/react/accordion";
3
+ import { ChevronDown, ChevronRight } from "../../icons/index.js";
4
+ import { cn } from "../../utils/cn.js";
5
+ import { useTestId } from "../../utils/testId.js";
6
+ import { useAccordionContext } from "./AccordionContext/index.js";
7
+ import { accordionIndicatorVariants, accordionTriggerTitleVariants, accordionTriggerVariants } from "./classes.js";
8
+ const AccordionTrigger = ({ ref, children, className, ...rest })=>{
9
+ const { variant } = useAccordionContext();
10
+ const testId = useTestId('trigger');
11
+ const indicator = /*#__PURE__*/ jsx(Accordion.ItemIndicator, {
12
+ className: cn(accordionIndicatorVariants({
13
+ variant
14
+ })),
15
+ "data-slot": "accordion-indicator",
16
+ children: 'section' === variant ? /*#__PURE__*/ jsx(ChevronDown, {}) : /*#__PURE__*/ jsx(ChevronRight, {})
17
+ });
18
+ return /*#__PURE__*/ jsx(Accordion.ItemTrigger, {
19
+ ref: ref,
20
+ "data-slot": "accordion-trigger",
21
+ "data-testid": testId,
22
+ className: cn(accordionTriggerVariants({
23
+ variant
24
+ }), className),
25
+ ...rest,
26
+ children: 'section' === variant ? /*#__PURE__*/ jsxs(Fragment, {
27
+ children: [
28
+ /*#__PURE__*/ jsx("span", {
29
+ className: cn(accordionTriggerTitleVariants({
30
+ variant
31
+ })),
32
+ children: children
33
+ }),
34
+ indicator
35
+ ]
36
+ }) : /*#__PURE__*/ jsxs(Fragment, {
37
+ children: [
38
+ indicator,
39
+ /*#__PURE__*/ jsx("span", {
40
+ className: cn(accordionTriggerTitleVariants({
41
+ variant
42
+ })),
43
+ children: children
44
+ })
45
+ ]
46
+ })
47
+ });
48
+ };
49
+ AccordionTrigger.displayName = 'AccordionTrigger';
50
+ export { AccordionTrigger };
@@ -0,0 +1,18 @@
1
+ export declare const accordionRootVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
2
+ export declare const accordionItemVariants: (props?: ({
3
+ variant?: "primary" | "secondary" | "section" | null | undefined;
4
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
+ export declare const accordionTriggerVariants: (props?: ({
6
+ variant?: "primary" | "secondary" | "section" | null | undefined;
7
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
8
+ export declare const accordionActionsVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
9
+ export declare const accordionTriggerTitleVariants: (props?: ({
10
+ variant?: "primary" | "secondary" | "section" | null | undefined;
11
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
12
+ export declare const accordionIndicatorVariants: (props?: ({
13
+ variant?: "primary" | "secondary" | "section" | null | undefined;
14
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
15
+ export declare const accordionContentVariants: (props?: ({
16
+ variant?: "primary" | "secondary" | "section" | null | undefined;
17
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
18
+ export declare const accordionContentInnerVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
@@ -0,0 +1,66 @@
1
+ import { cva } from "class-variance-authority";
2
+ import { cn } from "../../utils/cn.js";
3
+ const accordionRootVariants = cva('flex flex-col w-full');
4
+ const accordionItemVariants = cva('w-full', {
5
+ variants: {
6
+ variant: {
7
+ primary: 'flex flex-col',
8
+ secondary: 'flex flex-col',
9
+ section: cn('grid grid-cols-[minmax(0,1fr)_auto] items-center', 'border-b-1 border-border-primary last:border-b-0', 'pl-16 pr-8 py-8')
10
+ }
11
+ },
12
+ defaultVariants: {
13
+ variant: 'primary'
14
+ }
15
+ });
16
+ const accordionTriggerVariants = cva(cn('group/accordion-trigger flex items-center w-full cursor-pointer min-w-0', 'transition-[background-color,opacity] duration-150 ease-out motion-reduce:transition-none', 'rounded-12 bg-transparent', 'hover:bg-states-primary-hover', 'active:bg-states-primary-pressed', 'focus-visible:outline-none focus-visible:ring-3 focus-visible:ring-focus-primary', 'disabled:opacity-50 disabled:cursor-not-allowed disabled:hover:bg-transparent', 'font-sans text-text-primary'), {
17
+ variants: {
18
+ variant: {
19
+ primary: 'h-40 gap-4 px-12 text-base font-normal',
20
+ secondary: cn('h-24 gap-4 px-0 text-sm font-medium text-text-secondary', 'hover:bg-transparent active:bg-transparent'),
21
+ section: cn('col-start-1 row-start-1 justify-between gap-8 px-0 py-0 text-sm font-medium', 'hover:bg-transparent active:bg-transparent')
22
+ }
23
+ },
24
+ defaultVariants: {
25
+ variant: 'primary'
26
+ }
27
+ });
28
+ const accordionActionsVariants = cva(cn('flex items-center gap-4 col-start-2 row-start-1 pl-8 shrink-0'));
29
+ const accordionTriggerTitleVariants = cva('block flex-1 min-w-0 truncate text-left', {
30
+ variants: {
31
+ variant: {
32
+ primary: '',
33
+ secondary: '',
34
+ section: '[&>*]:align-middle [&>*+*]:ms-8'
35
+ }
36
+ },
37
+ defaultVariants: {
38
+ variant: 'primary'
39
+ }
40
+ });
41
+ const accordionIndicatorVariants = cva(cn('inline-flex items-center justify-center shrink-0', 'rounded-8 size-24', 'transition-transform duration-[220ms] ease-[cubic-bezier(0.4,0,0.2,1)] motion-reduce:transition-none'), {
42
+ variants: {
43
+ variant: {
44
+ primary: 'text-text-primary data-[state=open]:rotate-90',
45
+ secondary: 'text-text-secondary data-[state=open]:rotate-90',
46
+ section: 'text-text-primary data-[state=open]:rotate-180'
47
+ }
48
+ },
49
+ defaultVariants: {
50
+ variant: 'primary'
51
+ }
52
+ });
53
+ const accordionContentVariants = cva(cn('overflow-hidden', 'data-[state=open]:animate-[ds-accordion-down_220ms_cubic-bezier(0.4,0,0.2,1)]', 'data-[state=closed]:animate-[ds-accordion-up_220ms_cubic-bezier(0.4,0,0.2,1)]', 'motion-reduce:animate-none'), {
54
+ variants: {
55
+ variant: {
56
+ primary: '',
57
+ secondary: '',
58
+ section: 'col-span-2 row-start-2'
59
+ }
60
+ },
61
+ defaultVariants: {
62
+ variant: 'primary'
63
+ }
64
+ });
65
+ const accordionContentInnerVariants = cva('pt-8');
66
+ export { accordionActionsVariants, accordionContentInnerVariants, accordionContentVariants, accordionIndicatorVariants, accordionItemVariants, accordionRootVariants, accordionTriggerTitleVariants, accordionTriggerVariants };
@@ -0,0 +1,6 @@
1
+ export { Accordion, type AccordionProps, type AccordionValueChangeDetails, } from './Accordion';
2
+ export { AccordionActions, type AccordionActionsProps } from './AccordionActions';
3
+ export { AccordionContent, type AccordionContentProps } from './AccordionContent';
4
+ export type { AccordionVariant } from './AccordionContext';
5
+ export { AccordionItem, type AccordionItemProps } from './AccordionItem';
6
+ export { AccordionTrigger, type AccordionTriggerProps } from './AccordionTrigger';
@@ -0,0 +1,6 @@
1
+ import { Accordion } from "./Accordion.js";
2
+ import { AccordionActions } from "./AccordionActions.js";
3
+ import { AccordionContent } from "./AccordionContent.js";
4
+ import { AccordionItem } from "./AccordionItem.js";
5
+ import { AccordionTrigger } from "./AccordionTrigger.js";
6
+ export { Accordion, AccordionActions, AccordionContent, AccordionItem, AccordionTrigger };
@@ -3,7 +3,7 @@ export declare const badgeVariants: (props?: ({
3
3
  variant?: "default" | "dotted" | null | undefined;
4
4
  size?: "medium" | "large" | null | undefined;
5
5
  isIconOnly?: boolean | null | undefined;
6
- type?: "text" | "secondary" | "outline" | "solid" | "text-color" | null | undefined;
6
+ type?: "secondary" | "text" | "outline" | "solid" | "text-color" | null | undefined;
7
7
  color?: BadgeColor | null | undefined;
8
8
  muted?: boolean | null | undefined;
9
9
  textVariant?: "code" | "default" | null | undefined;
@@ -4,7 +4,7 @@ import type { TestableProps } from '../../utils/testId';
4
4
  declare const codeVariants: (props?: ({
5
5
  size?: "s" | "m" | "l" | null | undefined;
6
6
  weight?: "bold" | "light" | "regular" | "medium" | null | undefined;
7
- color?: "primary" | "destructive" | "secondary" | null | undefined;
7
+ color?: "primary" | "secondary" | "destructive" | null | undefined;
8
8
  italic?: boolean | null | undefined;
9
9
  truncate?: boolean | null | undefined;
10
10
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -9,7 +9,7 @@ export declare const chipVariants: (props?: ({
9
9
  export declare const segmentContainer = "flex flex-col justify-center overflow-hidden leading-none";
10
10
  /** Segment text styles by variant */
11
11
  export declare const segmentTextVariants: (props?: ({
12
- variant?: "operator" | "value" | "attribute" | null | undefined;
12
+ variant?: "value" | "operator" | "attribute" | null | undefined;
13
13
  error?: boolean | null | undefined;
14
14
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
15
15
  /** Remove button styles — hidden by default, shown on chip hover or button focus */
@@ -4,8 +4,8 @@ import type { TestableProps } from '../../utils/testId';
4
4
  declare const flexVariants: (props?: ({
5
5
  inline?: boolean | null | undefined;
6
6
  direction?: "row" | "column" | "column-reverse" | "row-reverse" | null | undefined;
7
- align?: "end" | "baseline" | "start" | "center" | "stretch" | null | undefined;
8
- justify?: "end" | "start" | "center" | "between" | "around" | "evenly" | null | undefined;
7
+ align?: "center" | "end" | "baseline" | "start" | "stretch" | null | undefined;
8
+ justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
9
9
  wrap?: "reverse" | "nowrap" | "wrap" | null | undefined;
10
10
  gap?: 1 | 2 | 4 | 6 | 8 | 12 | 16 | 24 | 32 | 20 | 28 | 36 | 40 | 44 | 48 | 56 | 64 | 80 | 96 | 112 | 128 | 144 | null | undefined;
11
11
  grow?: boolean | null | undefined;
@@ -5,8 +5,8 @@ import type { PolymorphicComponentProps } from '../Polymorphic';
5
5
  declare const headingVariants: (props?: ({
6
6
  size?: "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl" | "7xl" | null | undefined;
7
7
  weight?: "bold" | "light" | "regular" | "medium" | null | undefined;
8
- color?: "inherit" | "primary" | "primary-alt" | "secondary" | "secondary-alt" | null | undefined;
9
- align?: "left" | "center" | "right" | null | undefined;
8
+ color?: "primary" | "secondary" | "inherit" | "primary-alt" | "secondary-alt" | null | undefined;
9
+ align?: "center" | "left" | "right" | null | undefined;
10
10
  grow?: boolean | null | undefined;
11
11
  truncate?: boolean | null | undefined;
12
12
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
@@ -22,9 +22,9 @@ export declare const barListBarVariants: (props?: ({
22
22
  export declare const barListLabelClasses: string;
23
23
  export declare const barListValueClasses: string;
24
24
  export declare const barListPercentVariants: (props?: ({
25
- variant?: "inherit" | "split" | "muted" | null | undefined;
25
+ variant?: "split" | "inherit" | "muted" | null | undefined;
26
26
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
27
27
  export declare const barListPercentSymbolVariants: (props?: ({
28
- variant?: "inherit" | "split" | "muted" | null | undefined;
28
+ variant?: "split" | "inherit" | "muted" | null | undefined;
29
29
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
30
30
  export declare const barListSkeletonRowClasses: string;
@@ -4,7 +4,7 @@ export declare const lineChartBodyZoomEnabledClasses: string;
4
4
  export declare const lineChartZoomCursorPopoverClasses: string;
5
5
  export declare const lineChartLegendVariants: (props?: ({
6
6
  orientation?: "horizontal" | "vertical" | null | undefined;
7
- align?: "end" | "start" | "center" | null | undefined;
7
+ align?: "center" | "end" | "start" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  export declare const lineChartLegendItemVariants: (props?: ({
10
10
  interactive?: boolean | null | undefined;
@@ -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?: "inherit" | "split" | "muted" | null | undefined;
17
+ variant?: "split" | "inherit" | "muted" | null | undefined;
18
18
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
19
19
  export declare const pieChartLegendPercentSymbolVariants: (props?: ({
20
- variant?: "inherit" | "split" | "muted" | null | undefined;
20
+ variant?: "split" | "inherit" | "muted" | 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?: "none" | 2 | 4 | 6 | 8 | "full" | 12 | 16 | 24 | 32 | null | undefined;
6
+ rounded?: 2 | 4 | 6 | "none" | 8 | "full" | 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;
@@ -4,8 +4,8 @@ import type { TestableProps } from '../../utils/testId';
4
4
  declare const stackVariants: (props?: ({
5
5
  inline?: boolean | null | undefined;
6
6
  direction?: "row" | "column" | "column-reverse" | "row-reverse" | null | undefined;
7
- align?: "end" | "baseline" | "start" | "center" | "stretch" | null | undefined;
8
- justify?: "end" | "start" | "center" | "between" | "around" | "evenly" | null | undefined;
7
+ align?: "center" | "end" | "baseline" | "start" | "stretch" | null | undefined;
8
+ justify?: "center" | "end" | "start" | "between" | "around" | "evenly" | null | undefined;
9
9
  wrap?: "reverse" | "nowrap" | "wrap" | null | undefined;
10
10
  fullWidth?: boolean | null | undefined;
11
11
  flexGrow?: boolean | null | undefined;
@@ -4,8 +4,8 @@ import type { TestableProps } from '../../utils/testId';
4
4
  declare const textVariants: (props?: ({
5
5
  size?: "xs" | "sm" | "md" | "lg" | "xl" | null | undefined;
6
6
  weight?: "bold" | "light" | "regular" | "medium" | null | undefined;
7
- color?: "inherit" | "primary" | "primary-alt" | "secondary" | "secondary-alt" | "tertiary-alt" | "danger" | null | undefined;
8
- align?: "left" | "center" | "right" | null | undefined;
7
+ color?: "primary" | "secondary" | "inherit" | "primary-alt" | "secondary-alt" | "tertiary-alt" | "danger" | null | undefined;
8
+ align?: "center" | "left" | "right" | null | undefined;
9
9
  grow?: boolean | null | undefined;
10
10
  truncate?: boolean | null | undefined;
11
11
  decoration?: "dashed" | null | undefined;
@@ -1,5 +1,5 @@
1
1
  import type { FC } from 'react';
2
2
  export declare const tourSpotlightVariants: (props?: ({
3
- shape?: "rect" | "circle" | null | undefined;
3
+ shape?: "circle" | "rect" | null | undefined;
4
4
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
5
5
  export declare const TourSpotlight: FC;
package/dist/index.d.ts CHANGED
@@ -10,6 +10,7 @@
10
10
  * narrows the union automatically.
11
11
  */
12
12
  export { CalendarDate, CalendarDateTime, getLocalTimeZone, parseDate, parseDateTime, parseTime, parseZonedDateTime, Time, today, ZonedDateTime, } from '@internationalized/date';
13
+ export { Accordion, AccordionActions, type AccordionActionsProps, AccordionContent, type AccordionContentProps, AccordionItem, type AccordionItemProps, type AccordionProps, AccordionTrigger, type AccordionTriggerProps, type AccordionValueChangeDetails, type AccordionVariant, } from './components/Accordion';
13
14
  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';
14
15
  export { AppShell, AppShellHeader, type AppShellHeaderProps, type AppShellProps, AppShellRail, type AppShellRailProps, AppShellRemote, type AppShellRemoteProps, } from './components/AppShell';
15
16
  export { Attribute, AttributeActions, AttributeActionsContent, type AttributeActionsContentProps, AttributeActionsItem, type AttributeActionsItemProps, type AttributeActionsProps, AttributeActionsTarget, type AttributeActionsTargetProps, AttributeLabel, AttributeLabelDescription, type AttributeLabelDescriptionProps, AttributeLabelInfo, type AttributeLabelInfoProps, type AttributeLabelProps, type AttributeProps, AttributeValue, type AttributeValueProps, } from './components/Attribute';
package/dist/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { CalendarDate, CalendarDateTime, Time, ZonedDateTime, getLocalTimeZone, parseDate, parseDateTime, parseTime, parseZonedDateTime, today } from "@internationalized/date";
2
+ import { Accordion, AccordionActions, AccordionContent, AccordionItem, AccordionTrigger } from "./components/Accordion/index.js";
2
3
  import { Alert, AlertClose, AlertContent, AlertControls, AlertDescription, AlertIcon, AlertTitle } from "./components/Alert/index.js";
3
4
  import { AppShell, AppShellHeader, AppShellRail, AppShellRemote } from "./components/AppShell/index.js";
4
5
  import { Attribute, AttributeActions, AttributeActionsContent, AttributeActionsItem, AttributeActionsTarget, AttributeLabel, AttributeLabelDescription, AttributeLabelInfo, AttributeValue } from "./components/Attribute/index.js";
@@ -57,4 +58,4 @@ import { Tooltip, TooltipContent, TooltipTrigger } from "./components/Tooltip/in
57
58
  import { TopHeader, TopHeaderActions, TopHeaderLogo } from "./components/TopHeader/index.js";
58
59
  import { Tour, beaconStepEffect, useTour, waitForStepEvent } from "./components/Tour/index.js";
59
60
  import { TestIdProvider, useTestId } from "./utils/testId.js";
60
- export { Alert, AlertClose, AlertContent, AlertControls, AlertDescription, AlertIcon, AlertTitle, AppShell, AppShellHeader, AppShellRail, AppShellRemote, Attribute, AttributeActions, AttributeActionsContent, AttributeActionsItem, AttributeActionsTarget, AttributeLabel, AttributeLabelDescription, AttributeLabelInfo, AttributeValue, Badge, Button, Calendar, CalendarApplyButton, CalendarBody, CalendarContent, CalendarDate, CalendarDateTime, 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, DateFormatProvider, 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, HTTP_METHODS, HTTP_METHOD_COLOR, Heading, HttpMethod, Input, InputGroup, InputGroupAddon, InputGroupText, Ip, IpAddress, IpCountry, IpList, IpPort, IpProvider, Kbd, KbdGroup, Link, Loader, MONTH_NAMES, NavRail, NavRailBody, NavRailFooter, NavRailItem, NavRailSeparator, NumberInput, NumericBadge, OverflowTooltip, OverflowTooltipContent, ParameterPath, Popover, PopoverContent, PopoverTrigger, RESPONSE_CODE_COLOR, Radio, RadioDescription, RadioGroup, RadioIndicator, RadioLabel, ResponseCode, 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, Selection, SelectionAll, SelectionBulkBar, SelectionItem, 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, Time, TimeInput, Toast, ToastActions, Toaster, ToggleButton, Tooltip, TooltipContent, TooltipTrigger, TopHeader, TopHeaderActions, TopHeaderLogo, Tour, VStack, ZonedDateTime, beaconStepEffect, cardVariants, createTableColumnHelper, datacenters, drawerContentVariants, drawerPositionerVariants, formatAsFilter, getLocalTimeZone, getResponseCodeCategory, parseDate, parseDateTime, parseTime, parseZonedDateTime, proxyTypes, sourceLabels, toaster, today, useCalendarContext, useDateFormat, useDateRangeContext, useDrawerContext, useTestId, useTheme, useTour, waitForStepEvent };
61
+ export { Accordion, AccordionActions, AccordionContent, AccordionItem, AccordionTrigger, Alert, AlertClose, AlertContent, AlertControls, AlertDescription, AlertIcon, AlertTitle, AppShell, AppShellHeader, AppShellRail, AppShellRemote, Attribute, AttributeActions, AttributeActionsContent, AttributeActionsItem, AttributeActionsTarget, AttributeLabel, AttributeLabelDescription, AttributeLabelInfo, AttributeValue, Badge, Button, Calendar, CalendarApplyButton, CalendarBody, CalendarContent, CalendarDate, CalendarDateTime, 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, DateFormatProvider, 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, HTTP_METHODS, HTTP_METHOD_COLOR, Heading, HttpMethod, Input, InputGroup, InputGroupAddon, InputGroupText, Ip, IpAddress, IpCountry, IpList, IpPort, IpProvider, Kbd, KbdGroup, Link, Loader, MONTH_NAMES, NavRail, NavRailBody, NavRailFooter, NavRailItem, NavRailSeparator, NumberInput, NumericBadge, OverflowTooltip, OverflowTooltipContent, ParameterPath, Popover, PopoverContent, PopoverTrigger, RESPONSE_CODE_COLOR, Radio, RadioDescription, RadioGroup, RadioIndicator, RadioLabel, ResponseCode, 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, Selection, SelectionAll, SelectionBulkBar, SelectionItem, 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, Time, TimeInput, Toast, ToastActions, Toaster, ToggleButton, Tooltip, TooltipContent, TooltipTrigger, TopHeader, TopHeaderActions, TopHeaderLogo, Tour, VStack, ZonedDateTime, beaconStepEffect, cardVariants, createTableColumnHelper, datacenters, drawerContentVariants, drawerPositionerVariants, formatAsFilter, getLocalTimeZone, getResponseCodeCategory, parseDate, parseDateTime, parseTime, parseZonedDateTime, proxyTypes, sourceLabels, toaster, today, useCalendarContext, useDateFormat, useDateRangeContext, useDrawerContext, useTestId, useTheme, useTour, waitForStepEvent };