@maxio-com/react-ui-components 9.22.1 → 9.24.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.
Files changed (28) hide show
  1. package/dist/index.esm.js +1 -1
  2. package/dist/index.js +1 -1
  3. package/dist/index.js.map +1 -1
  4. package/dist/skills/maxio-react/SKILL.md +2 -0
  5. package/dist/skills/maxio-react/references/components-calendar.md +193 -0
  6. package/dist/skills/maxio-react/references/components-copy-to-clipboard.md +6 -4
  7. package/dist/skills/maxio-react/references/components-flex.md +2 -2
  8. package/dist/skills/maxio-react/references/components-grid.md +2 -2
  9. package/dist/skills/maxio-react/references/components-rangecalendar.md +254 -0
  10. package/dist/temporary-typings/src/components/Calendar/Calendar.d.ts +6 -0
  11. package/dist/temporary-typings/src/components/Calendar/Calendar.d.ts.map +1 -0
  12. package/dist/temporary-typings/src/components/Calendar/index.d.ts +3 -0
  13. package/dist/temporary-typings/src/components/Calendar/index.d.ts.map +1 -0
  14. package/dist/temporary-typings/src/components/Calendar/types.d.ts +5 -0
  15. package/dist/temporary-typings/src/components/Calendar/types.d.ts.map +1 -0
  16. package/dist/temporary-typings/src/components/CopyToClipboard/CopyToClipboard.d.ts.map +1 -1
  17. package/dist/temporary-typings/src/components/CopyToClipboard/CopyToClipboard.types.d.ts +2 -2
  18. package/dist/temporary-typings/src/components/CopyToClipboard/CopyToClipboard.types.d.ts.map +1 -1
  19. package/dist/temporary-typings/src/components/RangeCalendar/RangeCalendar.d.ts +6 -0
  20. package/dist/temporary-typings/src/components/RangeCalendar/RangeCalendar.d.ts.map +1 -0
  21. package/dist/temporary-typings/src/components/RangeCalendar/index.d.ts +3 -0
  22. package/dist/temporary-typings/src/components/RangeCalendar/index.d.ts.map +1 -0
  23. package/dist/temporary-typings/src/components/RangeCalendar/types.d.ts +5 -0
  24. package/dist/temporary-typings/src/components/RangeCalendar/types.d.ts.map +1 -0
  25. package/dist/temporary-typings/src/components/index.d.ts +4 -0
  26. package/dist/temporary-typings/src/components/index.d.ts.map +1 -1
  27. package/package.json +3 -2
  28. package/typings/index.d.ts +17 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxio-com/react-ui-components",
3
- "version": "9.22.1",
3
+ "version": "9.24.0",
4
4
  "description": "React UI components",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -48,6 +48,7 @@
48
48
  "@atlaskit/pragmatic-drag-and-drop-hitbox": "^2.1.0",
49
49
  "@floating-ui/react-dom": "^2.1.9",
50
50
  "@floating-ui/react-dom-interactions": "^0.13.3",
51
+ "@internationalized/date": "^3.12.3",
51
52
  "@maxio-com/design-tokens": "^4.2.3",
52
53
  "@react-aria/toast": "3.1.1",
53
54
  "@react-aria/utils": "^3.34.1",
@@ -64,5 +65,5 @@
64
65
  "publishConfig": {
65
66
  "access": "public"
66
67
  },
67
- "gitHead": "a1c37be60bfef4a528c72c36cdd648d3c53330f1"
68
+ "gitHead": "e70f1aeeb6e52345ca86e70f1e8dc74918f3f0ae"
68
69
  }
@@ -1,7 +1,7 @@
1
1
  import React$1, { ReactNode, HTMLAttributes, LiHTMLAttributes, ButtonHTMLAttributes, AnchorHTMLAttributes, RefObject, FC, ElementType, InputHTMLAttributes } from 'react';
2
2
  import { RowData, Row, Table, ExpandedState, RowSelectionState, SortingState, TableOptions } from '@tanstack/react-table';
3
3
  export { createColumnHelper } from '@tanstack/react-table';
4
- import { PopoverProps as PopoverProps$1, ToggleButtonGroupProps, ToggleButtonProps, ListBoxProps as ListBoxProps$1, ListBoxItemProps as ListBoxItemProps$1, ListBoxSectionProps as ListBoxSectionProps$1, HeaderProps, ComboBoxProps as ComboBoxProps$1, ValidationResult, TextFieldProps as TextFieldProps$1 } from 'react-aria-components';
4
+ import { PopoverProps as PopoverProps$1, ToggleButtonGroupProps, ToggleButtonProps, ListBoxProps as ListBoxProps$1, ListBoxItemProps as ListBoxItemProps$1, ListBoxSectionProps as ListBoxSectionProps$1, HeaderProps, ComboBoxProps as ComboBoxProps$1, ValidationResult, TextFieldProps as TextFieldProps$1, DateValue, CalendarProps as CalendarProps$1, RangeCalendarProps as RangeCalendarProps$1 } from 'react-aria-components';
5
5
  export { DialogTrigger, Pressable } from 'react-aria-components';
6
6
  import * as _floating_ui_react_dom_interactions from '@floating-ui/react-dom-interactions';
7
7
  import { MotionProps } from 'framer-motion';
@@ -157,8 +157,8 @@ type Placement = Side | AlignedPlacement;
157
157
  type Interactions = 'click' | 'hover' | 'focus' | 'dismiss';
158
158
  type OverlayAriaRole = 'tooltip' | 'dialog' | 'alertdialog' | 'menu' | 'listbox' | 'grid' | 'tree';
159
159
 
160
- type CopyToClipboardSize = 'sm' | 'md' | 'lg';
161
- type CopyToClipboardVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost';
160
+ type CopyToClipboardSize = 'xs' | 'sm' | 'md' | 'lg';
161
+ type CopyToClipboardVariant = 'primary' | 'secondary' | 'tertiary' | 'ghost' | 'subtle';
162
162
  type CopyToClipboardProps = {
163
163
  value: string;
164
164
  copyLabel?: string;
@@ -894,6 +894,18 @@ type GridProps = {
894
894
 
895
895
  declare const Grid: ({ children, templateColumns, templateRows, autoColumns, autoRows, inline, column, columnStart, columnEnd, row, rowStart, rowEnd, gap, gapX, gapY, className, justifyContent, alignItems, ...props }: GridProps) => React$1.JSX.Element;
896
896
 
897
+ interface CalendarProps<T extends DateValue = DateValue> extends Omit<CalendarProps$1<T>, 'children' | 'visibleDuration'> {
898
+ errorMessage?: string;
899
+ }
900
+
901
+ declare const Calendar: <T extends DateValue>({ className, errorMessage, ...props }: CalendarProps<T>) => React$1.JSX.Element;
902
+
903
+ interface RangeCalendarProps<T extends DateValue = DateValue> extends Omit<RangeCalendarProps$1<T>, 'children' | 'visibleDuration'> {
904
+ errorMessage?: string;
905
+ }
906
+
907
+ declare const RangeCalendar: <T extends DateValue>({ className, errorMessage, ...props }: RangeCalendarProps<T>) => React$1.JSX.Element;
908
+
897
909
  type Sentiment = 'success' | 'danger';
898
910
  type AuthLayoutProps = {
899
911
  children: React.ReactNode;
@@ -908,5 +920,5 @@ type AuthLayoutProps = {
908
920
 
909
921
  declare const AuthLayout: ({ children, heading, description, sentiment, leadingElement, alert, topAddon, footer, }: AuthLayoutProps) => React$1.JSX.Element;
910
922
 
911
- export { ActionList, Alert, AuthLayout, Avatar, Banner, Body, Breadcrumbs, BreadcrumbsItem, Button, Card, Checkbox, CheckboxGroup, Chip, Code, ComboBox, CopyToClipboard, DataTable, Display, Drawer, EmptyState, Flex, FormErrorMessage, FormHelperText, GlobalToastProvider, Grid, Heading, Icon, IconButton, Label, Link, ListBox, LoadingSpinner, Logo, Menu, MenuButton, MenuList, OverlayTrigger, Pagination, Popover, ProgressBar, Radio, RadioGroup, SegmentedControl, Select, SideNavWrapper as SideNav, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, TextArea, TextField, TextInput, Tile, ToastProvider, ToastQueue, Toggle, Tooltip, TooltipTrigger, TopBar, useElementResizeObserver, useHover, useOverlayTrigger, useToast, useWindowSize };
912
- export type { ComboBoxProps, CopyToClipboardProps, CopyToClipboardSize, CopyToClipboardVariant, DrawerProps, EmptyStateHeadingLevel, EmptyStateProps, Interactions, OverlayAriaRole, Placement, PopoverProps, SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, TextAreaProps, TextFieldProps, TextInputProps };
923
+ export { ActionList, Alert, AuthLayout, Avatar, Banner, Body, Breadcrumbs, BreadcrumbsItem, Button, Calendar, Card, Checkbox, CheckboxGroup, Chip, Code, ComboBox, CopyToClipboard, DataTable, Display, Drawer, EmptyState, Flex, FormErrorMessage, FormHelperText, GlobalToastProvider, Grid, Heading, Icon, IconButton, Label, Link, ListBox, LoadingSpinner, Logo, Menu, MenuButton, MenuList, OverlayTrigger, Pagination, Popover, ProgressBar, Radio, RadioGroup, RangeCalendar, SegmentedControl, Select, SideNavWrapper as SideNav, Tab, TabList, TabPanel, TabPanels, Tabs, Tag, TextArea, TextField, TextInput, Tile, ToastProvider, ToastQueue, Toggle, Tooltip, TooltipTrigger, TopBar, useElementResizeObserver, useHover, useOverlayTrigger, useToast, useWindowSize };
924
+ export type { CalendarProps, ComboBoxProps, CopyToClipboardProps, CopyToClipboardSize, CopyToClipboardVariant, DrawerProps, EmptyStateHeadingLevel, EmptyStateProps, Interactions, OverlayAriaRole, Placement, PopoverProps, RangeCalendarProps, SegmentedControlItemProps, SegmentedControlProps, SegmentedControlSize, TextAreaProps, TextFieldProps, TextInputProps };