@pantograph/vue 0.34.16 → 0.34.18

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 (71) hide show
  1. package/dist/components/ActionButton/ActionButton.d.ts +1 -0
  2. package/dist/components/Alert/Alert.d.ts +2 -0
  3. package/dist/components/AlertDialog/ConfirmDialog.d.ts +1 -1
  4. package/dist/components/AlertDialog/useAlertDialog.d.ts +2 -1
  5. package/dist/components/AvatarGroup/AvatarGroup.d.ts +2 -0
  6. package/dist/components/Badge/Badge.d.ts +1 -1
  7. package/dist/components/Banner/Banner.d.ts +2 -1
  8. package/dist/components/Base/BaseBadge/BaseBadge.d.ts +2 -1
  9. package/dist/components/Base/BaseButton/BaseButton.d.ts +2 -1
  10. package/dist/components/Breadcrumb/Breadcrumb.d.ts +2 -0
  11. package/dist/components/Button/Button.d.ts +1 -0
  12. package/dist/components/ButtonGroup/ButtonGroup.d.ts +2 -0
  13. package/dist/components/Card/Card.d.ts +2 -0
  14. package/dist/components/Chip/Chip.d.ts +2 -0
  15. package/dist/components/ChipGroup/ChipGroup.d.ts +2 -0
  16. package/dist/components/CoachMark/CoachMark.d.ts +3 -1
  17. package/dist/components/ColorPicker/ColorPicker.d.ts +1 -1
  18. package/dist/components/ColorSwatch/ColorSwatch.d.ts +1 -1
  19. package/dist/components/ColorSwatchGroup/ColorSwatchGroup.d.ts +9 -4
  20. package/dist/components/ColorTrigger/ColorTrigger.d.ts +5 -0
  21. package/dist/components/Comment/Comment.d.ts +2 -0
  22. package/dist/components/Comment/CommentActions.d.ts +4 -0
  23. package/dist/components/Comment/CommentEditor.d.ts +4 -0
  24. package/dist/components/Comment/CommentMention.d.ts +1 -1
  25. package/dist/components/Comment/CommentReactionList.d.ts +2 -0
  26. package/dist/components/ConfigProvider/ConfigProvider.d.ts +2 -2
  27. package/dist/components/DataTable/DataTable.d.ts +5 -5
  28. package/dist/components/DataTable/components/DataTableHeaderCell.d.ts +2 -0
  29. package/dist/components/Dialog/Dialog.d.ts +2 -0
  30. package/dist/components/DropZone/DropZone.d.ts +2 -0
  31. package/dist/components/Empty/Empty.d.ts +6 -1
  32. package/dist/components/FloatButton/FloatButton.d.ts +1 -0
  33. package/dist/components/Form/Form.d.ts +7 -2
  34. package/dist/components/Form/FormItem.d.ts +8 -3
  35. package/dist/components/FormValidation/FormValidation.d.ts +5 -0
  36. package/dist/components/GOPicker/GOPicker.d.ts +11 -6
  37. package/dist/components/GraphicalObject/GraphicalObject.d.ts +1 -1
  38. package/dist/components/GraphicalObjectGroup/GraphicalObjectGroup.d.ts +2 -0
  39. package/dist/components/HoverCard/HoverCard.d.ts +3 -1
  40. package/dist/components/Icon/Icon.d.ts +3 -2
  41. package/dist/components/IconButton/IconButton.d.ts +1 -0
  42. package/dist/components/Indicator/Indicator.d.ts +1 -1
  43. package/dist/components/InputGroup/InputGroup.d.ts +2 -0
  44. package/dist/components/Kbd/Kbd.d.ts +5 -0
  45. package/dist/components/Label/Label.d.ts +6 -1
  46. package/dist/components/Link/Link.d.ts +6 -1
  47. package/dist/components/Menu/Menu.d.ts +9 -3
  48. package/dist/components/MenuItem/MenuItemContent.d.ts +12 -7
  49. package/dist/components/Pagination/Pagination.d.ts +6 -1
  50. package/dist/components/PinInput/PinInput.d.ts +7 -2
  51. package/dist/components/Popover/Popover.d.ts +3 -1
  52. package/dist/components/RadioGroup/RadioGroup.d.ts +7 -2
  53. package/dist/components/RadioGroup/RadioGroupItem.d.ts +6 -1
  54. package/dist/components/ScrollContainer/ScrollContainer.d.ts +3 -2
  55. package/dist/components/Select/context.d.ts +3 -0
  56. package/dist/components/Shortcut/Shortcut.d.ts +5 -0
  57. package/dist/components/Skeleton/Skeleton.d.ts +6 -1
  58. package/dist/components/Stepper/Stepper.d.ts +5 -0
  59. package/dist/components/Steps/Steps.d.ts +2 -0
  60. package/dist/components/Switch/Switch.d.ts +8 -3
  61. package/dist/components/Tabs/TabList.d.ts +4 -0
  62. package/dist/components/Textarea/Textarea.d.ts +6 -1
  63. package/dist/components/Toast/Toast.d.ts +5 -0
  64. package/dist/components/Tooltip/Tooltip.d.ts +10 -16
  65. package/dist/components/Tree/TreePlaceholder.d.ts +2 -0
  66. package/dist/components/Upload/Upload.d.ts +1 -0
  67. package/dist/components/Upload/UploadList.d.ts +1 -1
  68. package/dist/components/Upload/types.d.ts +9 -4
  69. package/dist/index.js +20253 -20135
  70. package/dist/index.umd.cjs +11 -11
  71. package/package.json +2 -2
@@ -48,6 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Ac
48
48
  $: import('vue').ComponentInternalInstance;
49
49
  $data: {};
50
50
  $props: {
51
+ readonly dir?: import('../ConfigProvider').Direction | undefined;
51
52
  readonly as?: import('vue').Component | import('reka-ui').AsTag | undefined;
52
53
  readonly class?: import('clsx').ClassValue;
53
54
  readonly text?: string | number | undefined;
@@ -1,10 +1,12 @@
1
1
  import { AlertType } from './Alert.model';
2
2
  import { LinkProps } from '../Link';
3
3
  import { ClassValue } from 'clsx';
4
+ import { Direction } from '../ConfigProvider';
4
5
  /**
5
6
  * Props for the Alert component
6
7
  */
7
8
  export interface AlertProps {
9
+ dir?: Direction;
8
10
  /**
9
11
  * The type of alert which determines its color and icon
10
12
  * @default 'hint'
@@ -1,6 +1,6 @@
1
1
  import { AlertDialogProps, AlertDialogSlots } from './AlertDialog';
2
2
  import { ConfigProviderProps } from '../ConfigProvider';
3
- export interface ConfirmDialogProps extends Omit<AlertDialogProps, 'title' | 'description' | 'screen'>, Omit<AlertDialogSlots, 'title' | 'description'> {
3
+ export interface ConfirmDialogProps extends Omit<AlertDialogProps, 'title' | 'description' | 'screen' | 'to'>, Omit<AlertDialogSlots, 'title' | 'description'> {
4
4
  config?: ConfigProviderProps;
5
5
  title: AlertDialogProps['title'] | AlertDialogSlots['title'];
6
6
  description: AlertDialogProps['description'] | AlertDialogSlots['description'];
@@ -1,13 +1,14 @@
1
1
  import { ConfirmDialogProps } from './ConfirmDialog';
2
2
  import { AlertDialogEmits } from './AlertDialog';
3
3
  import { EmitToProp } from '@pantograph/utils-vue';
4
+ import { ConfigProviderProps } from '../ConfigProvider';
4
5
  type PropEmits = {
5
6
  [K in keyof AlertDialogEmits as EmitToProp<K>]?: (...params: AlertDialogEmits[K]) => void;
6
7
  };
7
8
  interface CreateAlertDialogParams extends ConfirmDialogProps, PropEmits {
8
9
  appContext?: any;
9
10
  }
10
- export declare function useAlertDialog(): {
11
+ export declare function useAlertDialog(rootConfig?: ConfigProviderProps): {
11
12
  info: (options: CreateAlertDialogParams) => {
12
13
  close: () => void;
13
14
  update: (updateConfig: Partial<CreateAlertDialogParams> | ((prams: CreateAlertDialogParams) => Partial<CreateAlertDialogParams>)) => void;
@@ -1,10 +1,12 @@
1
1
  import { AvatarShape, AvatarSize, AvatarStroke } from '../Avatar';
2
2
  import { HoverCardProps } from '../HoverCard';
3
3
  import { ClassValue } from 'clsx';
4
+ import { Direction } from '../ConfigProvider';
4
5
  /**
5
6
  * Props for the AvatarGroup component
6
7
  */
7
8
  export type AvatarGroupProps = {
9
+ dir?: Direction;
8
10
  /**
9
11
  * CSS classes to apply to the avatar group
10
12
  */
@@ -3,7 +3,7 @@ import { BadgeColor, BadgeColorSubtle } from '../Base/BaseBadge/BaseBadge.model'
3
3
  /**
4
4
  * Props for the Badge component
5
5
  */
6
- export type BadgeProps = Partial<Pick<BaseBadgeProps, 'class' | 'text' | 'icon' | 'flipOnDir' | 'customStroke'>> & {
6
+ export type BadgeProps = Partial<Pick<BaseBadgeProps, 'class' | 'text' | 'icon' | 'flipOnDir' | 'customStroke' | 'dir'>> & {
7
7
  /**
8
8
  * Size of the badge, excluding 'sm', 'tiny', and 'tinier' options
9
9
  */
@@ -5,6 +5,7 @@ import { IconButtonProps } from '../IconButton';
5
5
  import { LinkProps } from '../Link';
6
6
  import { PopoverBaseProps } from '../Popover';
7
7
  import { BannerColor, BannerPlacement, BannerPosition } from './Banner.model';
8
+ import { Direction } from '../ConfigProvider';
8
9
  /**
9
10
  * Props for the Banner component
10
11
  */
@@ -51,7 +52,7 @@ export interface BannerProps {
51
52
  /**
52
53
  * Text direction for the banner
53
54
  */
54
- dir?: 'ltr' | 'rtl' | 'auto';
55
+ dir?: Direction;
55
56
  /**
56
57
  * Whether the banner can be closed by the user
57
58
  * @default false
@@ -1,11 +1,12 @@
1
1
  import { BadgeColor, BadgeColorSubtle, BadgeSize, BadgeType } from './BaseBadge.model';
2
2
  import { IconSize } from '../../Icon';
3
- import { FlipOnDir } from '../../ConfigProvider';
3
+ import { Direction, FlipOnDir } from '../../ConfigProvider';
4
4
  import { ClassValue } from 'clsx';
5
5
  /**
6
6
  * Props for the BaseBadge component
7
7
  */
8
8
  export interface BaseBadgeProps {
9
+ dir?: Direction;
9
10
  /**
10
11
  * Size of the badge
11
12
  * @default 'md'
@@ -1,6 +1,6 @@
1
1
  import { ClassValue } from 'clsx';
2
2
  import { PrimitiveProps } from 'reka-ui';
3
- import { FlipOnDir } from '../../ConfigProvider';
3
+ import { Direction, FlipOnDir } from '../../ConfigProvider';
4
4
  import { BadgeSize } from '../BaseBadge/BaseBadge.model';
5
5
  import { BaseBadgeSlots } from '../BaseBadge/BaseBadge';
6
6
  import { ButtonColor, ButtonSize, ButtonType, ButtonVariant } from './BaseButton.model';
@@ -17,6 +17,7 @@ export declare const BASE_BUTTON_DEFAULT_PROPS: {
17
17
  * Props for the BaseButton component
18
18
  */
19
19
  export interface BaseButtonProps {
20
+ dir?: Direction;
20
21
  /**
21
22
  * The HTML element or component to render as
22
23
  */
@@ -3,11 +3,13 @@ import { HoverCardProps } from '../HoverCard';
3
3
  import { BreadcrumbSize } from './Breadcrumb.model';
4
4
  import { MenuItemLeadingProps } from '../MenuItem/MenuItemContent';
5
5
  import { BreadcrumbItemType } from './BreadcrumbItem';
6
+ import { Direction } from '../ConfigProvider';
6
7
  /**
7
8
  * Props for the Breadcrumb component
8
9
  * @interface BreadcrumbProps
9
10
  */
10
11
  export interface BreadcrumbProps {
12
+ dir?: Direction;
11
13
  /**
12
14
  * Array of breadcrumb items to display
13
15
  * @type {BreadcrumbItemType[]}
@@ -40,6 +40,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Pa
40
40
  $: import('vue').ComponentInternalInstance;
41
41
  $data: {};
42
42
  $props: {
43
+ readonly dir?: import('../ConfigProvider').Direction | undefined;
43
44
  readonly as?: import('vue').Component | import('reka-ui').AsTag | undefined;
44
45
  readonly class?: import('clsx').ClassValue;
45
46
  readonly text?: string | number | undefined;
@@ -1,5 +1,6 @@
1
1
  import { ButtonSize, ButtonVariant } from '../Base/BaseButton/BaseButton.model';
2
2
  import { ClassValue } from 'clsx';
3
+ import { Direction } from '../ConfigProvider';
3
4
  /**
4
5
  * Array of possible button group gaps
5
6
  */
@@ -8,6 +9,7 @@ declare const ButtonGroupGaps: readonly ["sm", "md", "lg", "none"];
8
9
  * Props for the ButtonGroup component
9
10
  */
10
11
  export type ButtonGroupProps = {
12
+ dir?: Direction;
11
13
  /**
12
14
  * Additional CSS classes to apply to the button group
13
15
  */
@@ -1,9 +1,11 @@
1
1
  import { ClassValue } from 'clsx';
2
2
  import { CardType, CarResponsiveBreakpoint } from './Card.model';
3
+ import { Direction } from '../ConfigProvider';
3
4
  /**
4
5
  * Props for the Card component
5
6
  */
6
7
  export interface CardProps {
8
+ dir?: Direction;
7
9
  /**
8
10
  * Type of card layout (vertical or horizontal)
9
11
  * @default 'vertical'
@@ -1,10 +1,12 @@
1
1
  import { ClassValue } from 'clsx';
2
2
  import { IconSize } from '../Icon';
3
3
  import { ChipColor, ChipSize } from './Chip.model';
4
+ import { Direction } from '../ConfigProvider';
4
5
  /**
5
6
  * Props for the Chip component
6
7
  */
7
8
  export interface ChipProps {
9
+ dir?: Direction;
8
10
  /**
9
11
  * Value of the chip
10
12
  */
@@ -2,10 +2,12 @@ import { ChipProps } from '../Chip/Chip';
2
2
  import { ChipColor, ChipSize } from '../Chip/Chip.model';
3
3
  import { ClassValue } from 'clsx';
4
4
  import { HoverCardProps } from '../HoverCard';
5
+ import { Direction } from '../ConfigProvider';
5
6
  /**
6
7
  * Props for the ChipGroup component
7
8
  */
8
9
  export interface ChipGroupProps {
10
+ dir?: Direction;
9
11
  /**
10
12
  * Color of the chips in the group
11
13
  * @default 'default'
@@ -72,9 +72,10 @@ export declare const COACH_MARK_DEFAULT_PROPS: {
72
72
  readonly avoidCollisions: true;
73
73
  readonly placement: "bottom";
74
74
  readonly zIndex: 1000;
75
+ readonly sideOffset: 4;
75
76
  readonly updatePositionStrategy: "optimized";
76
77
  readonly renderPopupsInContent: true;
77
- readonly asChild: true;
78
+ readonly asChild: false;
78
79
  };
79
80
  /**
80
81
  * Props for the CoachMark component
@@ -197,6 +198,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
197
198
  open: boolean;
198
199
  prioritizePosition: boolean;
199
200
  placement: "top" | "top-start" | "top-end" | "bottom" | "bottom-start" | "bottom-end" | "right" | "right-start" | "right-end" | "left" | "left-start" | "left-end";
201
+ sideOffset: number;
200
202
  sticky: "partial" | "always";
201
203
  avoidCollisions: boolean;
202
204
  updatePositionStrategy: "always" | "optimized";
@@ -1,5 +1,5 @@
1
- import { Color, ColorChangeDetail, LocalColorFormat, ColorMap, VisibleColorFormat } from './types';
2
1
  import { Ref } from 'vue';
2
+ import { Color, ColorChangeDetail, ColorMap, LocalColorFormat, VisibleColorFormat } from './types';
3
3
  import { ClassValue } from 'clsx';
4
4
  /**
5
5
  * Props for the ColorPicker component
@@ -1,5 +1,5 @@
1
1
  import { GraphicalObjectProps } from '../GraphicalObject/GraphicalObject';
2
- import { ColorSwatchType, ColorSwatchSize } from './ColorSwatch.model';
2
+ import { ColorSwatchSize, ColorSwatchType } from './ColorSwatch.model';
3
3
  /**
4
4
  * Props for the ColorSwatch component
5
5
  */
@@ -1,9 +1,10 @@
1
- import { ColorSwatchProps, ColorSwatchSlots } from '../ColorSwatch/ColorSwatch';
2
- import { ColorSwatchSize } from '../ColorSwatch/ColorSwatch.model';
1
+ import { ClassValue } from 'clsx';
2
+ import { ColorPickerProps } from '../ColorPicker';
3
3
  import { VisibleColorFormat } from '../ColorPicker/types';
4
+ import { ColorSwatchSize } from '../ColorSwatch/ColorSwatch.model';
5
+ import { ColorSwatchProps, ColorSwatchSlots } from '../ColorSwatch/ColorSwatch';
6
+ import { Direction } from '../ConfigProvider';
4
7
  import { PopoverProps } from '../Popover';
5
- import { ColorPickerProps } from '../ColorPicker';
6
- import { ClassValue } from 'clsx';
7
8
  /**
8
9
  * Object representing a color with optional styling properties
9
10
  */
@@ -25,6 +26,10 @@ type ColorMode = 'subtle' | 'bold';
25
26
  * Props for the ColorSwatchGroup component
26
27
  */
27
28
  export type ColorSwatchGroupProps = Omit<ColorPickerProps, 'class' | 'modelValue' | 'defaultColor'> & Partial<Pick<ColorSwatchProps, 'size' | 'customPickerIcon' | 'icon'>> & {
29
+ /**
30
+ * Text direction for the component
31
+ */
32
+ dir?: Direction;
28
33
  /**
29
34
  * Additional CSS classes to apply to the component
30
35
  */
@@ -1,9 +1,14 @@
1
+ import { Direction } from '../ConfigProvider';
1
2
  import { GraphicalObjectProps } from '../GraphicalObject/GraphicalObject';
2
3
  import { ColorTriggerSize } from './ColorTrigger.model';
3
4
  /**
4
5
  * Props for the ColorTrigger component
5
6
  */
6
7
  export type ColorTriggerProps = Partial<Pick<GraphicalObjectProps, 'icon' | 'bg' | 'br' | 'fg' | 'class'>> & {
8
+ /**
9
+ * Text direction for the component
10
+ */
11
+ dir?: Direction;
7
12
  /**
8
13
  * Size of the color trigger
9
14
  * @default 'md'
@@ -4,6 +4,7 @@ import { UploadList, UploadProps, UploadSlots } from '../Upload';
4
4
  import { Ref } from 'vue';
5
5
  import { EmitType } from '@pantograph/utils-vue';
6
6
  import { ReactionHoverCardSlots } from './CommentReactionHoverCard';
7
+ import { Direction } from '../ConfigProvider';
7
8
  export interface CommentReactionUser {
8
9
  id: string;
9
10
  avatar: AvatarProps;
@@ -162,6 +163,7 @@ export interface CommentProps {
162
163
  * @default 'people reacted with'
163
164
  */
164
165
  reactionUsersTitle?: string;
166
+ dir?: Direction;
165
167
  }
166
168
  /**
167
169
  * Base emits for the Comment component
@@ -3,6 +3,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
3
3
  $: import('vue').ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: {
6
+ readonly dir?: import('../ConfigProvider').Direction | undefined;
6
7
  readonly class?: import('clsx').ClassValue;
7
8
  readonly flipOnDir?: import('../ConfigProvider').FlipOnDir | undefined;
8
9
  readonly type?: "fill" | "outline" | "ghost" | undefined;
@@ -32,6 +33,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
32
33
  $: import('vue').ComponentInternalInstance;
33
34
  $data: {};
34
35
  $props: {
36
+ readonly dir?: import('../ConfigProvider').Direction | undefined;
35
37
  readonly as?: import('vue').Component | import('reka-ui').AsTag | undefined;
36
38
  readonly class?: import('clsx').ClassValue;
37
39
  readonly text?: string | number | undefined;
@@ -215,6 +217,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
215
217
  $: import('vue').ComponentInternalInstance;
216
218
  $data: {};
217
219
  $props: {
220
+ readonly dir?: import('../ConfigProvider').Direction | undefined;
218
221
  readonly class?: import('clsx').ClassValue;
219
222
  readonly flipOnDir?: import('../ConfigProvider').FlipOnDir | undefined;
220
223
  readonly type?: "fill" | "outline" | "ghost" | undefined;
@@ -244,6 +247,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
244
247
  $: import('vue').ComponentInternalInstance;
245
248
  $data: {};
246
249
  $props: {
250
+ readonly dir?: import('../ConfigProvider').Direction | undefined;
247
251
  readonly as?: import('vue').Component | import('reka-ui').AsTag | undefined;
248
252
  readonly class?: import('clsx').ClassValue;
249
253
  readonly text?: string | number | undefined;
@@ -158,6 +158,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
158
158
  $: import('vue').ComponentInternalInstance;
159
159
  $data: {};
160
160
  $props: {
161
+ readonly dir?: import('../ConfigProvider').Direction | undefined;
161
162
  readonly class?: ClassValue;
162
163
  readonly flipOnDir?: import('../ConfigProvider').FlipOnDir | undefined;
163
164
  readonly type?: "fill" | "outline" | "ghost" | undefined;
@@ -187,6 +188,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
187
188
  $: import('vue').ComponentInternalInstance;
188
189
  $data: {};
189
190
  $props: {
191
+ readonly dir?: import('../ConfigProvider').Direction | undefined;
190
192
  readonly as?: import('vue').Component | import('reka-ui').AsTag | undefined;
191
193
  readonly class?: ClassValue;
192
194
  readonly text?: string | number | undefined;
@@ -370,6 +372,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
370
372
  $: import('vue').ComponentInternalInstance;
371
373
  $data: {};
372
374
  $props: {
375
+ readonly dir?: import('../ConfigProvider').Direction | undefined;
373
376
  readonly class?: ClassValue;
374
377
  readonly flipOnDir?: import('../ConfigProvider').FlipOnDir | undefined;
375
378
  readonly type?: "fill" | "outline" | "ghost" | undefined;
@@ -399,6 +402,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
399
402
  $: import('vue').ComponentInternalInstance;
400
403
  $data: {};
401
404
  $props: {
405
+ readonly dir?: import('../ConfigProvider').Direction | undefined;
402
406
  readonly as?: import('vue').Component | import('reka-ui').AsTag | undefined;
403
407
  readonly class?: ClassValue;
404
408
  readonly text?: string | number | undefined;
@@ -535,7 +535,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Co
535
535
  onKeydownEscape?: ((event: import('../Combobox').ComboboxKeydownEvent, search?: string | undefined, isEmpty?: boolean | undefined) => any) | undefined;
536
536
  "onUpdate:search"?: ((value?: string | null | undefined) => any) | undefined;
537
537
  onFetch?: (() => any) | undefined;
538
- }>, "props" | "placeholder" | "slots" | "emit" | "getIconSize" | "getDisabled" | "getStatus" | "getSize" | "triggerRef" | "openModel" | "model" | "getItems" | "inputRef" | "onKeyDown" | "focusOnInput" | "getOptionDataset" | ("disabled" | "readonly" | "bordered" | "multiple" | "open" | "defaultOpen" | "prioritizePosition" | "placement" | "sideOffset" | "avoidCollisions" | "disableOutsidePointerEvents" | "zIndex" | "checkbox" | "trailingIcon" | "selectedItemIconAsTrailingIcon" | "indicatorIcon" | "loadingRowCount" | "clearOnChangeMultiple" | "samePopupWidth" | "popupHeight" | "resetSearchTermOnBlur" | "resetSearchTermOnSelect" | "noValueOnPlaceholder" | "tagRenderMode" | "showTreeTagStrategy") | "displaySelectedKeys" | "isOptionSelected" | "getOptionByValue" | "getLabelByValue" | "getSingleByValue" | "removeValue" | "getFlattenOption" | "getTagSize" | "comboboxInputBinding" | "comboboxTriggerBinding" | "searchModel" | "valuePlaceholder" | "selectOption" | "itemMap" | "highlightedOptionKey" | "comboboxInputFocused" | "triggerPrefix" | "triggerProps"> & import('vue').ShallowUnwrapRef<{
538
+ }>, "props" | "placeholder" | "slots" | "emit" | "getIconSize" | "getDisabled" | "getStatus" | "getSize" | "triggerRef" | "openModel" | "model" | "inputRef" | "onKeyDown" | "getItems" | "focusOnInput" | "getOptionDataset" | ("disabled" | "readonly" | "bordered" | "multiple" | "open" | "defaultOpen" | "prioritizePosition" | "placement" | "sideOffset" | "avoidCollisions" | "disableOutsidePointerEvents" | "zIndex" | "checkbox" | "trailingIcon" | "selectedItemIconAsTrailingIcon" | "indicatorIcon" | "loadingRowCount" | "clearOnChangeMultiple" | "samePopupWidth" | "popupHeight" | "resetSearchTermOnBlur" | "resetSearchTermOnSelect" | "noValueOnPlaceholder" | "tagRenderMode" | "showTreeTagStrategy") | "displaySelectedKeys" | "isOptionSelected" | "getOptionByValue" | "getLabelByValue" | "getSingleByValue" | "removeValue" | "getFlattenOption" | "getTagSize" | "comboboxInputBinding" | "comboboxTriggerBinding" | "searchModel" | "valuePlaceholder" | "selectOption" | "itemMap" | "highlightedOptionKey" | "comboboxInputFocused" | "triggerPrefix" | "triggerProps"> & import('vue').ShallowUnwrapRef<{
539
539
  displaySelectedKeys: import('vue').ComputedRef<string[]>;
540
540
  isOptionSelected: (value?: string | undefined) => boolean;
541
541
  getOptionByValue: (value: string) => import('../Combobox').ComboboxFlattenOptionType | undefined;
@@ -3,6 +3,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
3
3
  $: import('vue').ComponentInternalInstance;
4
4
  $data: {};
5
5
  $props: {
6
+ readonly dir?: import('../ConfigProvider').Direction | undefined;
6
7
  readonly class?: import('clsx').ClassValue;
7
8
  readonly flipOnDir?: import('../ConfigProvider').FlipOnDir | undefined;
8
9
  readonly type?: "fill" | "outline" | "ghost" | undefined;
@@ -32,6 +33,7 @@ declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import
32
33
  $: import('vue').ComponentInternalInstance;
33
34
  $data: {};
34
35
  $props: {
36
+ readonly dir?: import('../ConfigProvider').Direction | undefined;
35
37
  readonly as?: import('vue').Component | import('reka-ui').AsTag | undefined;
36
38
  readonly class?: import('clsx').ClassValue;
37
39
  readonly text?: string | number | undefined;
@@ -86,10 +86,10 @@ export type ConfigProviderSlots = {
86
86
  };
87
87
  declare const provideConfigContext: (contextValue: Context) => Context;
88
88
  declare const injectConfigContext: () => Context;
89
- declare const useConfig: () => {
89
+ declare const useConfig: (noDirProvider?: boolean) => {
90
90
  config: Context;
91
91
  getFlipOnDir: <T = object>(key: keyof T) => ComputedRef<FlipOnDir | undefined>;
92
- getDir: (getter?: () => Direction | undefined) => ComputedRef<Direction | undefined>;
92
+ dir: ComputedRef<Direction>;
93
93
  useCssInJs: (params: UseCssInJsParams) => void;
94
94
  };
95
95
  export { provideConfigContext, injectConfigContext, useConfig };
@@ -1,8 +1,8 @@
1
- import { DataTableProps, DataTableSlotProps, DataTableSlots, GetTableRowProps, TableCol, TableColExtra, TableColumn, DataTableEmits } from './types';
1
+ import { EmitType } from '@pantograph/utils-vue';
2
2
  import { Table } from '@tanstack/vue-table';
3
- import { CellActions, ColActions, ColumnWrapActions, SelectionState, SortActions, SelectionActions, FilterActions, ColumnSizeActions, ColumnFixActions, ColumnOrderActions, RowActions } from './utils';
4
3
  import { ComputedRef, Ref } from 'vue';
5
- import { EmitType } from '@pantograph/utils-vue';
4
+ import { DataTableEmits, DataTableProps, DataTableSlotProps, DataTableSlots, GetTableRowProps, TableCol, TableColExtra, TableColumn } from './types';
5
+ import { CellActions, ColActions, ColumnFixActions, ColumnOrderActions, ColumnSizeActions, ColumnWrapActions, FilterActions, RowActions, SelectionActions, SelectionState, SortActions } from './utils';
6
6
  export interface DataTableContext {
7
7
  props: DataTableProps;
8
8
  emit: EmitType<DataTableEmits>;
@@ -75,12 +75,12 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Da
75
75
  }>, {
76
76
  loadingRowCount: number;
77
77
  zebra: boolean;
78
+ paginateExpandedRows: boolean;
79
+ tableLayout: "fixed" | "auto";
78
80
  minVisibleAreaOnFixColumns: string | number;
79
81
  childrenRowName: string | ((row: any) => any);
80
82
  childrenColumnName: string | ((row: any) => any);
81
83
  batchActionsTitle: string;
82
- paginateExpandedRows: boolean;
83
- tableLayout: "fixed" | "auto";
84
84
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
85
85
  tableRootRef: HTMLDivElement;
86
86
  }, HTMLDivElement>, Readonly<DataTableSlots> & DataTableSlots>;
@@ -10,6 +10,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
10
10
  $data: {};
11
11
  $props: {
12
12
  readonly text?: string | number | undefined;
13
+ readonly dir?: import('../../ConfigProvider').Direction | undefined;
13
14
  readonly class?: import('clsx').ClassValue;
14
15
  readonly flipOnDir?: import('../../ConfigProvider').FlipOnDir | undefined;
15
16
  readonly target?: string | undefined;
@@ -47,6 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<__
47
48
  $: import('vue').ComponentInternalInstance;
48
49
  $data: {};
49
50
  $props: {
51
+ readonly dir?: import('../../ConfigProvider').Direction | undefined;
50
52
  readonly as?: import('vue').Component | import('reka-ui').AsTag | undefined;
51
53
  readonly class?: import('clsx').ClassValue;
52
54
  readonly text?: string | number | undefined;
@@ -4,6 +4,7 @@ import { PopoverBaseProps } from '../Popover/type';
4
4
  import { ClassValue } from 'clsx';
5
5
  import { DialogDrawerSide, DialogSize, DialogType } from './Dialog.model';
6
6
  import { StyleValue, VNode } from 'vue';
7
+ import { Direction } from '../ConfigProvider';
7
8
  export declare const DIALOG_OK_DEFAULT_PROPS: {
8
9
  readonly text: "Submit";
9
10
  };
@@ -336,6 +337,7 @@ export interface DialogSlots {
336
337
  * @extends Omit<DialogContentProps, 'as' | 'asChild' | 'onCloseAutoFocus'>
337
338
  */
338
339
  export interface DialogProps extends Omit<DialogPortalProps, 'to'>, Omit<DialogContentProps, 'as' | 'asChild' | 'onCloseAutoFocus'> {
340
+ dir?: Direction;
339
341
  /**
340
342
  * Custom styles for the dialog wrapper element.
341
343
  *
@@ -1,9 +1,11 @@
1
1
  import { DropZoneSize, DropZoneType } from './DropZone.model';
2
2
  import { ClassValue } from 'clsx';
3
+ import { Direction } from '../ConfigProvider';
3
4
  /**
4
5
  * Props for the DropZone component
5
6
  */
6
7
  export interface DropZoneProps {
8
+ dir?: Direction;
7
9
  /**
8
10
  * The type of drop zone to display
9
11
  * @default 'default'
@@ -1,9 +1,14 @@
1
- import { EmptyType } from './Empty.model';
2
1
  import { ClassValue } from 'clsx';
2
+ import { Direction } from '../ConfigProvider';
3
+ import { EmptyType } from './Empty.model';
3
4
  /**
4
5
  * Props for the Empty component
5
6
  */
6
7
  export interface EmptyProps {
8
+ /**
9
+ * Text direction for the component
10
+ */
11
+ dir?: Direction;
7
12
  /**
8
13
  * The type of empty state to display
9
14
  * @default 'simple'
@@ -48,6 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<Fl
48
48
  $: import('vue').ComponentInternalInstance;
49
49
  $data: {};
50
50
  $props: {
51
+ readonly dir?: import('../ConfigProvider').Direction | undefined;
51
52
  readonly as?: import('vue').Component | import('reka-ui').AsTag | undefined;
52
53
  readonly class?: import('clsx').ClassValue;
53
54
  readonly text?: string | number | undefined;
@@ -1,6 +1,7 @@
1
- import { RuleExpression, TypedSchema, YupSchema, FormOptions, FormContext as VeeValidateForm, GenericValidateFunction, InvalidSubmissionContext } from 'vee-validate';
2
- import { FormContext as _FormContext, FormItemSize } from '@pantograph/utils-vue';
1
+ import { FormItemSize, FormContext as _FormContext } from '@pantograph/utils-vue';
3
2
  import { ClassValue } from 'clsx';
3
+ import { FormOptions, GenericValidateFunction, InvalidSubmissionContext, RuleExpression, TypedSchema, FormContext as VeeValidateForm, YupSchema } from 'vee-validate';
4
+ import { Direction } from '../ConfigProvider';
4
5
  /**
5
6
  * Interface defining default validation rules available in the form
6
7
  */
@@ -174,6 +175,10 @@ type ValidationSchema = Record<string, FormRuleItem> | TypedSchema | YupSchema;
174
175
  * Props for the Form component
175
176
  */
176
177
  export interface FormProps extends Partial<Omit<FormOptions<any>, 'validationSchema'>> {
178
+ /**
179
+ * Text direction for the component
180
+ */
181
+ dir?: Direction;
177
182
  /**
178
183
  * The validation schema for the form
179
184
  */
@@ -1,13 +1,18 @@
1
+ import { FormItemSize, FormItemStatus, FormItemContext as _FormItemContext } from '@pantograph/utils-vue';
2
+ import { ClassValue } from 'clsx';
1
3
  import { FieldContext, FieldOptions } from 'vee-validate';
2
4
  import { Ref } from 'vue';
3
- import { FormType, FormRuleItem } from './Form';
5
+ import { Direction } from '../ConfigProvider';
4
6
  import { LabelProps } from '../Label';
5
- import { ClassValue } from 'clsx';
6
- import { FormItemContext as _FormItemContext, FormItemSize, FormItemStatus } from '@pantograph/utils-vue';
7
+ import { FormRuleItem, FormType } from './Form';
7
8
  /**
8
9
  * Props for the FormItem component
9
10
  */
10
11
  export type FormItemProps = Partial<Omit<FieldOptions, 'initialValue'>> & Omit<LabelProps, 'size'> & {
12
+ /**
13
+ * Text direction for the component
14
+ */
15
+ dir?: Direction;
11
16
  /**
12
17
  * CSS classes to apply to the form item
13
18
  */
@@ -1,9 +1,14 @@
1
1
  import { FormItemStatus } from '@pantograph/utils-vue';
2
2
  import { ClassValue } from 'clsx';
3
+ import { Direction } from '../ConfigProvider';
3
4
  /**
4
5
  * Props for the FormValidation component
5
6
  */
6
7
  export interface FormValidationProps {
8
+ /**
9
+ * Text direction for the component
10
+ */
11
+ dir?: Direction;
7
12
  /**
8
13
  * The validation message to display
9
14
  */
@@ -1,13 +1,14 @@
1
+ import { ClassValue } from 'clsx';
1
2
  import { ComputedRef, Ref } from 'vue';
2
- import { PopoverProps } from '../Popover';
3
+ import { BaseInputSlots } from '../Base/BaseInput/BaseInput';
4
+ import { ColorSwatchSlots } from '../ColorSwatch';
3
5
  import { ColorSwatchGroupProps } from '../ColorSwatchGroup';
4
- import { ClassValue } from 'clsx';
5
- import { ScrollContainerProps } from '../ScrollContainer';
6
6
  import { ColorTriggerSize } from '../ColorTrigger';
7
- import { InputProps } from '../Input';
8
- import { ColorSwatchSlots } from '../ColorSwatch';
9
- import { BaseInputSlots } from '../Base/BaseInput/BaseInput';
7
+ import { Direction } from '../ConfigProvider';
10
8
  import { GraphicalObjectBG, GraphicalObjectBR, GraphicalObjectFG } from '../GraphicalObject';
9
+ import { InputProps } from '../Input';
10
+ import { PopoverProps } from '../Popover';
11
+ import { ScrollContainerProps } from '../ScrollContainer';
11
12
  import { GoPickerColor, GoPickerGroup } from './GOPicker.model';
12
13
  /**
13
14
  * Represents a graphical object item (icon or emoji)
@@ -55,6 +56,10 @@ export interface GOPickerModel {
55
56
  * Props for the GOPicker component
56
57
  */
57
58
  export interface GOPickerProps {
59
+ /**
60
+ * Text direction for the component
61
+ */
62
+ dir?: Direction;
58
63
  /**
59
64
  * Array of icon items to display in the picker
60
65
  */
@@ -3,7 +3,7 @@ import { GraphicalObjectBG, GraphicalObjectBR, GraphicalObjectFG, GraphicalObjec
3
3
  /**
4
4
  * Props for the GraphicalObject component
5
5
  */
6
- export type GraphicalObjectProps = Partial<Pick<BaseBadgeProps, 'class' | 'icon' | 'flipOnDir' | 'customStroke'>> & {
6
+ export type GraphicalObjectProps = Partial<Pick<BaseBadgeProps, 'class' | 'icon' | 'flipOnDir' | 'customStroke' | 'dir'>> & {
7
7
  /**
8
8
  * Foreground color of the graphical object
9
9
  */
@@ -1,10 +1,12 @@
1
1
  import { BadgeSize } from '../Base/BaseBadge/BaseBadge.model';
2
2
  import { ClassValue } from 'clsx';
3
3
  import { HoverCardProps } from '../HoverCard';
4
+ import { Direction } from '../ConfigProvider';
4
5
  /**
5
6
  * Props for the GraphicalObjectGroup component
6
7
  */
7
8
  export type GraphicalObjectGroupProps = {
9
+ dir?: Direction;
8
10
  /**
9
11
  * The size of all graphical objects in the group
10
12
  * @default 'md'