@sesamehr/react-design-system 2.0.0-beta.1 → 2.0.0-beta.10

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 (132) hide show
  1. package/README.md +34 -0
  2. package/dist/Button/ActionItem/ActionItem.d.ts +40 -0
  3. package/dist/Button/ActionItem/index.d.ts +1 -0
  4. package/dist/Button/IconButton/IconButton.d.ts +32 -0
  5. package/dist/Button/IconButton/index.d.ts +27 -0
  6. package/dist/Data/Table/Table.d.ts +1 -1
  7. package/dist/Data/Table/TableBody/TableBody.d.ts +3 -0
  8. package/dist/Data/Table/TableHead/TableHead.d.ts +25 -1
  9. package/dist/Data/Table/TableScrollbar/TableScrollbar.d.ts +21 -0
  10. package/dist/Data/Table/TableSelectCell/TableSelectCell.d.ts +8 -0
  11. package/dist/Data/Table/TableVirtualized/TableVirtualized.d.ts +45 -0
  12. package/dist/Data/Table/TableVirtualized/index.d.ts +2 -0
  13. package/dist/Data/Table/hooks/index.d.ts +3 -0
  14. package/dist/Data/Table/hooks/useDragToScroll/useDragToScroll.d.ts +12 -2
  15. package/dist/Data/Table/hooks/useTableVirtual/context.d.ts +16 -0
  16. package/dist/Data/Table/hooks/useTableVirtual/index.d.ts +3 -0
  17. package/dist/Data/Table/hooks/useTableVirtual/useTableVirtual.d.ts +36 -0
  18. package/dist/Data/Table/hooks/useTableVirtual/useTableVirtual.types.d.ts +74 -0
  19. package/dist/Data/Table/index.d.ts +2 -2
  20. package/dist/Display/Avatar/AvatarSkeleton/AvatarSkeleton.d.ts +30 -0
  21. package/dist/Display/Avatar/index.d.ts +2 -0
  22. package/dist/Display/AvatarDetails/AvatarDetails.d.ts +68 -0
  23. package/dist/Display/AvatarDetails/index.d.ts +1 -0
  24. package/dist/Display/Badge/Badge.d.ts +3 -2
  25. package/dist/Display/Badge/index.d.ts +10 -1
  26. package/dist/Display/ChatBubble/ChatBubble.d.ts +28 -0
  27. package/dist/Display/ChatBubble/ChatBubbleStatus/ChatBubbleStatus.d.ts +8 -0
  28. package/dist/Display/ChatBubble/ChatBubbleStatus/index.d.ts +10 -0
  29. package/dist/Display/ChatBubble/index.d.ts +44 -0
  30. package/dist/Display/Chip/Chip.d.ts +21 -5
  31. package/dist/Display/Chip/index.d.ts +19 -10
  32. package/dist/Display/FileCard/FileCard.d.ts +66 -0
  33. package/dist/Display/FileCard/index.d.ts +1 -0
  34. package/dist/Display/FilePreviewCard/FilePreviewCard.d.ts +49 -0
  35. package/dist/Display/FilePreviewCard/index.d.ts +1 -0
  36. package/dist/Feedback/Alert/AlertIcon.d.ts +1 -1
  37. package/dist/Feedback/Dialog/DialogBody.d.ts +18 -0
  38. package/dist/Feedback/Dialog/index.d.ts +1 -0
  39. package/dist/Feedback/Loader/Loader.d.ts +16 -0
  40. package/dist/Feedback/Loader/index.d.ts +2 -0
  41. package/dist/Feedback/Popover/PopoverContent.d.ts +0 -1
  42. package/dist/Feedback/Progress/Progress.d.ts +3 -0
  43. package/dist/Feedback/Progress/index.d.ts +17 -0
  44. package/dist/Feedback/Skeleton/Skeleton.d.ts +20 -0
  45. package/dist/Feedback/Skeleton/index.d.ts +2 -0
  46. package/dist/Feedback/Tooltip/TooltipContent.d.ts +0 -1
  47. package/dist/Forms/Field/Counter/Counter.d.ts +9 -0
  48. package/dist/Forms/Field/Counter/index.d.ts +13 -0
  49. package/dist/Forms/Field/FieldGroup/FieldGroup.d.ts +16 -1
  50. package/dist/Forms/Field/FieldLabel/FieldLabel.d.ts +16 -0
  51. package/dist/Forms/Field/FieldMessage/FieldMessage.d.ts +22 -2
  52. package/dist/Forms/Field/index.d.ts +1 -0
  53. package/dist/Forms/Field/useFieldGroup.d.ts +108 -0
  54. package/dist/Forms/Inputs/Calendar/Calendar.d.ts +55 -0
  55. package/dist/Forms/Inputs/Calendar/CalendarDay.d.ts +37 -0
  56. package/dist/Forms/Inputs/Calendar/CalendarRange.d.ts +56 -0
  57. package/dist/Forms/Inputs/Calendar/constraints.d.ts +19 -0
  58. package/dist/Forms/Inputs/Calendar/date.d.ts +28 -0
  59. package/dist/Forms/Inputs/Calendar/index.d.ts +21 -0
  60. package/dist/Forms/Inputs/Calendar/nav.d.ts +34 -0
  61. package/dist/Forms/Inputs/Calendar/testids.d.ts +28 -0
  62. package/dist/Forms/Inputs/Calendar/useCalendarLocale.d.ts +40 -0
  63. package/dist/Forms/Inputs/ChatInput/ChatInput.d.ts +68 -0
  64. package/dist/Forms/Inputs/ChatInput/index.d.ts +46 -0
  65. package/dist/Forms/Inputs/Combobox/ComboboxCancel.d.ts +14 -0
  66. package/dist/Forms/Inputs/Combobox/ComboboxChipsInput.d.ts +4 -0
  67. package/dist/Forms/Inputs/Combobox/ComboboxContent.d.ts +0 -6
  68. package/dist/Forms/Inputs/Combobox/ComboboxGroup.d.ts +6 -2
  69. package/dist/Forms/Inputs/Combobox/ComboboxInput.d.ts +6 -1
  70. package/dist/Forms/Inputs/Combobox/ComboboxItem.d.ts +4 -0
  71. package/dist/Forms/Inputs/Combobox/ComboboxItemEdit.d.ts +124 -0
  72. package/dist/Forms/Inputs/Combobox/context.d.ts +15 -1
  73. package/dist/Forms/Inputs/Combobox/index.d.ts +2 -0
  74. package/dist/Forms/Inputs/Combobox/useChipOverflow.d.ts +30 -0
  75. package/dist/Forms/Inputs/Combobox/useComboboxEditing.d.ts +40 -0
  76. package/dist/Forms/Inputs/Combobox/useComboboxLabels.d.ts +21 -0
  77. package/dist/Forms/Inputs/DatePicker/DatePicker.d.ts +51 -0
  78. package/dist/Forms/Inputs/DatePicker/DatePickerHeader.d.ts +65 -0
  79. package/dist/Forms/Inputs/DatePicker/DatePickerMonthSelect.d.ts +27 -0
  80. package/dist/Forms/Inputs/DatePicker/DatePickerTrigger.d.ts +29 -0
  81. package/dist/Forms/Inputs/DatePicker/DatePickerYearSelect.d.ts +25 -0
  82. package/dist/Forms/Inputs/DatePicker/DateRangePicker.d.ts +61 -0
  83. package/dist/Forms/Inputs/DatePicker/format.d.ts +44 -0
  84. package/dist/Forms/Inputs/DatePicker/index.d.ts +6 -0
  85. package/dist/Forms/Inputs/DatePicker/month.d.ts +28 -0
  86. package/dist/Forms/Inputs/DatePicker/useDatePickerHeader.d.ts +23 -0
  87. package/dist/Forms/Inputs/InputOtp/InputOtp.d.ts +7 -0
  88. package/dist/Forms/Inputs/InputPassword/InputPassword.d.ts +9 -1
  89. package/dist/Forms/Inputs/InputText/InputText.d.ts +9 -0
  90. package/dist/Forms/Inputs/SearchBar/SearchBar.d.ts +35 -0
  91. package/dist/Forms/Inputs/SearchBar/index.d.ts +22 -0
  92. package/dist/Forms/Inputs/SearchBar/useSearchDelay.d.ts +24 -0
  93. package/dist/Forms/Inputs/SearchPanel/SearchPanel.d.ts +71 -0
  94. package/dist/Forms/Inputs/SearchPanel/SearchPanelEmpty.d.ts +16 -0
  95. package/dist/Forms/Inputs/SearchPanel/SearchPanelGroup.d.ts +14 -0
  96. package/dist/Forms/Inputs/SearchPanel/SearchPanelInput.d.ts +31 -0
  97. package/dist/Forms/Inputs/SearchPanel/SearchPanelItem.d.ts +20 -0
  98. package/dist/Forms/Inputs/SearchPanel/SearchPanelList.d.ts +11 -0
  99. package/dist/Forms/Inputs/SearchPanel/context.d.ts +11 -0
  100. package/dist/Forms/Inputs/SearchPanel/index.d.ts +6 -0
  101. package/dist/Forms/Inputs/Select/SelectContent.d.ts +0 -4
  102. package/dist/Forms/Inputs/Select/SelectGroup.d.ts +6 -2
  103. package/dist/Forms/Inputs/Select/SelectItem.d.ts +6 -0
  104. package/dist/Forms/Inputs/Textarea/Textarea.d.ts +69 -0
  105. package/dist/Forms/Inputs/Textarea/index.d.ts +21 -0
  106. package/dist/Forms/Inputs/Toggle/RadioButton/RadioGroup.d.ts +5 -0
  107. package/dist/Forms/Inputs/Toggle/ToggleLabel/ToggleLabel.d.ts +10 -1
  108. package/dist/Forms/Inputs/index.d.ts +6 -0
  109. package/dist/Layout/Scrollbar/Scrollbar.d.ts +46 -0
  110. package/dist/Layout/Scrollbar/index.d.ts +2 -0
  111. package/dist/Layout/Scrollbar/useScrollbar.d.ts +52 -0
  112. package/dist/hooks/index.d.ts +12 -0
  113. package/dist/hooks/useAutoGrow.d.ts +22 -0
  114. package/dist/internal/Listbox/ListboxEmpty.d.ts +3 -0
  115. package/dist/internal/Listbox/ListboxItem.d.ts +23 -0
  116. package/dist/internal/Listbox/ListboxLabel.d.ts +9 -0
  117. package/dist/internal/Listbox/ListboxSeparator.d.ts +3 -0
  118. package/dist/internal/Listbox/ListboxViewport.d.ts +9 -0
  119. package/dist/internal/Surface/Surface.d.ts +35 -0
  120. package/dist/internal/index.d.ts +13 -0
  121. package/dist/lib/cssModules.d.ts +13 -0
  122. package/dist/main.d.ts +18 -7
  123. package/dist/preflight.css +391 -0
  124. package/dist/react-design-system.css +1 -1
  125. package/dist/react-design-system.js +17345 -10589
  126. package/dist/react-design-system.umd.cjs +164 -117
  127. package/package.json +4 -2
  128. package/src/assets/styles/theme-v2.css +6 -6
  129. package/src/assets/styles/theme-v3.css +7 -4
  130. package/dist/Data/Table/TableAvatar/TableAvatar.d.ts +0 -14
  131. package/dist/Display/Tag/Tag.d.ts +0 -19
  132. package/dist/Display/Tag/index.d.ts +0 -2
package/dist/main.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export * from './lib/utils.ts';
2
+ export * from './hooks/index.ts';
2
3
  export { TransitionBounce as OxTransitionBounce } from './Transitions/TransitionBounce/TransitionBounce.tsx';
3
4
  export { TransitionSlideX as OxTransitionSlideX } from './Transitions/TransitionSlideX/TransitionSlideX.tsx';
4
5
  export { TransitionFade as OxTransitionFade } from './Transitions/TransitionFade/TransitionFade.tsx';
@@ -6,33 +7,43 @@ export { TransitionSlideY as OxTransitionSlideY } from './Transitions/Transition
6
7
  export { TransitionExpand as OxTransitionExpand } from './Transitions/TransitionExpand/TransitionExpand.tsx';
7
8
  export { TransitionFlip as OxTransitionFlip } from './Transitions/TransitionFlip/TransitionFlip.tsx';
8
9
  export { Button as OxButton, buttonVariants, type ButtonVariants, } from './Button/index.ts';
10
+ export { IconButton as OxIconButton, iconButtonVariants, type IconButtonVariants, } from './Button/IconButton/index.ts';
11
+ export { ActionItem as OxActionItem, type ActionItemProps, } from './Button/ActionItem/index.ts';
9
12
  export { Card as OxCard, cardVariants, type CardVariants, } from './Layout/Card/index.ts';
10
13
  export { CardStack as OxCardStack, CARD_STACK_DECK, } from './Layout/CardStack/index.ts';
11
14
  export { Divider as OxDivider, type DividerProps, } from './Layout/Divider/index.ts';
12
15
  export { Resizable as OxResizable, ResizablePanel as OxResizablePanel, ResizableHandle as OxResizableHandle, } from './Layout/Resizable/index.ts';
16
+ export { Scrollbar as OxScrollbar, useScrollbar, SCROLLBAR_THICKNESS, type ScrollbarProps, type UseScrollbarReturn, } from './Layout/Scrollbar/index.ts';
13
17
  export { LocaleProvider as OxLocaleProvider } from './Locale/index.ts';
14
18
  export { normalizeLocale, useLocale } from './Locale/index.ts';
15
- export { AvatarRounded as OxAvatarRounded, AvatarSquare as OxAvatarSquare, avatarRoundedVariants, avatarSquareVariants, type AvatarRoundedVariants, type AvatarSize, type AvatarSquareVariants, type AvatarTone, } from './Display/Avatar/index.ts';
19
+ export { AvatarRounded as OxAvatarRounded, AvatarSkeleton as OxAvatarSkeleton, AvatarSquare as OxAvatarSquare, avatarRoundedVariants, avatarSquareVariants, type AvatarRoundedVariants, type AvatarSize, type AvatarSquareVariants, type AvatarTone, } from './Display/Avatar/index.ts';
20
+ export { AvatarDetails as OxAvatarDetails, type AvatarDetailsAvatar, } from './Display/AvatarDetails/index.ts';
16
21
  export { AvatarGroup as OxAvatarGroup, type AvatarItem, } from './Display/AvatarGroup/index.ts';
17
22
  export { Badge as OxBadge, badgeVariants, type BadgeVariants, } from './Display/Badge/index.ts';
18
23
  export { CalendarDate as OxCalendarDate, calendarDateVariants, type CalendarDateVariants, } from './Display/CalendarDate/index.ts';
19
24
  export { NumberFlow as OxNumberFlow, resolveNumberFlowPreset, NUMBER_FLOW_PRESETS, type NumberFlowConfig, type NumberFlowPreset, } from './Display/NumberFlow/index.ts';
20
25
  export { PaymentCard as OxPaymentCard, paymentCardVariants, type PaymentCardVariants, type BadgeType, type CardData, } from './Display/PaymentCard/index.ts';
21
- export { Tag as OxTag } from './Display/Tag/index.ts';
26
+ export { FileCard as OxFileCard } from './Display/FileCard/index.ts';
27
+ export { FilePreviewCard as OxFilePreviewCard } from './Display/FilePreviewCard/index.ts';
28
+ export { ChatBubble as OxChatBubble, chatBubbleVariants, type ChatBubbleDelivery, type ChatBubbleVariants, } from './Display/ChatBubble/index.ts';
29
+ export { ChatBubbleStatus as OxChatBubbleStatus, chatBubbleStatusVariants, type ChatBubbleStatusVariants, } from './Display/ChatBubble/ChatBubbleStatus/index.ts';
22
30
  export { Chip as OxChip, chipVariants, type ChipVariants, } from './Display/Chip/index.ts';
23
31
  export { PointMarker as OxPointMarker, pointMarkerVariants, type PointMarkerVariants, } from './Display/PointMarker/index.ts';
24
32
  export { StatusBadge as OxStatusBadge, statusBadgeVariants, indicatorVariants, type StatusBadgeVariants, } from './Feedback/StatusBadge/index.ts';
25
33
  export { Bullet as OxBullet, bulletVariants, type BulletVariants, } from './Feedback/Bullet/index.ts';
34
+ export { Loader as OxLoader } from './Feedback/Loader/index.ts';
26
35
  export { Progress as OxProgress } from './Feedback/Progress/index.ts';
36
+ export { Skeleton as OxSkeleton } from './Feedback/Skeleton/index.ts';
27
37
  export { Alert as OxAlert, AlertClose as OxAlertClose, AlertDescription as OxAlertDescription, AlertIcon as OxAlertIcon, AlertTitle as OxAlertTitle, AlertToggle as OxAlertToggle, } from './Feedback/Alert/index.ts';
28
- export { Dialog as OxDialog, DialogContent as OxDialogContent, DialogTitle as OxDialogTitle, DialogDescription as OxDialogDescription, DialogOverlay as OxDialogOverlay, DialogTwoPanelContent as OxDialogTwoPanelContent, DialogTrigger as OxDialogTrigger, DialogClose as OxDialogClose, } from './Feedback/Dialog/index.ts';
38
+ export { Dialog as OxDialog, DialogContent as OxDialogContent, DialogBody as OxDialogBody, DialogTitle as OxDialogTitle, DialogDescription as OxDialogDescription, DialogOverlay as OxDialogOverlay, DialogTwoPanelContent as OxDialogTwoPanelContent, DialogTrigger as OxDialogTrigger, DialogClose as OxDialogClose, } from './Feedback/Dialog/index.ts';
29
39
  export { Tooltip as OxTooltip, TooltipContent as OxTooltipContent, } from './Feedback/Tooltip/index.ts';
30
40
  export { Popover as OxPopover, PopoverContent as OxPopoverContent, PopoverClose as OxPopoverClose, } from './Feedback/Popover/index.ts';
31
41
  export { Accordion as OxAccordion, AccordionItem as OxAccordionItem, AccordionTrigger as OxAccordionTrigger, AccordionContent as OxAccordionContent, } from './Navigation/Accordion/index.ts';
32
42
  export { ToggleTabs as OxToggleTabs, ToggleTabsList as OxToggleTabsList, ToggleTabsTrigger as OxToggleTabsTrigger, ToggleTabsContent as OxToggleTabsContent, } from './Navigation/ToggleTabs/index.ts';
33
43
  export { PageControl as OxPageControl, pageControlDots, PAGE_CONTROL_WINDOW, type PageControlDot, type PageControlDotSize, } from './Navigation/PageControl/index.ts';
34
44
  export { Breadcrumb as OxBreadcrumb, BreadcrumbList as OxBreadcrumbList, BreadcrumbItem as OxBreadcrumbItem, BreadcrumbLink as OxBreadcrumbLink, BreadcrumbPage as OxBreadcrumbPage, BreadcrumbSeparator as OxBreadcrumbSeparator, BreadcrumbEllipsis as OxBreadcrumbEllipsis, } from './Navigation/Breadcrumb/index.ts';
35
- export { FieldGroup as OxFieldGroup, FieldLabel as OxFieldLabel, FieldMessage as OxFieldMessage, type FieldGroupProps, } from './Forms/Field/index.ts';
36
- export { InputGroup as OxInputGroup, InputText as OxInputText, InputNumber as OxInputNumber, InputNumberContent as OxInputNumberContent, InputNumberDecrement as OxInputNumberDecrement, InputNumberIncrement as OxInputNumberIncrement, InputNumberInput as OxInputNumberInput, InputPassword as OxInputPassword, InputPasswordInput as OxInputPasswordInput, InputPasswordToggle as OxInputPasswordToggle, useInputPassword, InputOtp as OxInputOtp, InputOtpGroup as OxInputOtpGroup, InputOtpSlot as OxInputOtpSlot, InputOtpSeparator as OxInputOtpSeparator, useInputOtp, Combobox as OxCombobox, ComboboxInput as OxComboboxInput, ComboboxChipsInput as OxComboboxChipsInput, ComboboxContent as OxComboboxContent, ComboboxItem as OxComboboxItem, ComboboxEmpty as OxComboboxEmpty, ComboboxGroup as OxComboboxGroup, ComboboxSeparator as OxComboboxSeparator, Select as OxSelect, SelectTrigger as OxSelectTrigger, SelectContent as OxSelectContent, SelectItem as OxSelectItem, SelectGroup as OxSelectGroup, SelectSeparator as OxSelectSeparator, Switch as OxSwitch, Checkbox as OxCheckbox, RadioButton as OxRadioButton, RadioGroup as OxRadioGroup, ToggleGroup as OxToggleGroup, ToggleLabel as OxToggleLabel, ToggleDescription as OxToggleDescription, SWITCH_SIZES, type InputNumberProps, type InputPasswordProps, type InputPasswordContext, type InputOtpProps, type InputOtpSlotProps, type InputOtpContext, type ComboboxProps, type SelectProps, type RadioGroupProps, type ToggleGroupProps, type ToggleLabelProps, type ToggleDescriptionProps, } from './Forms/Inputs/index.ts';
37
- export { Table as OxTable, TableHead as OxTableHead, TableBody as OxTableBody, TableRow as OxTableRow, TableCell as OxTableCell, TableHeaderCell as OxTableHeaderCell, TableSelectCell as OxTableSelectCell, TableDragCell as OxTableDragCell, TableBulkHeader as OxTableBulkHeader, TablePagination as OxTablePagination, TableEmpty as OxTableEmpty, TableAvatar as OxTableAvatar, TableRowExpanded as OxTableRowExpanded, TableExpandCell as OxTableExpandCell, TableColumnVisibility as OxTableColumnVisibility, useTable, useTableSelection, useTableSorting, useTablePagination, useTableDetailRow, useTablePinning, useTableColumns, useScrollShadow, useDragToScroll, useFixedColumns, } from './Data/Table/index.ts';
38
- export type { UseTableOptions, UseTableReturn, UseTableSelectionReturn, UseTableSortingReturn, UseTablePaginationOptions, UseTablePaginationReturn, DetailRowInstance, DetailRowOptions, DetailRowPluginDef, UseTablePinningOptions, UseTablePinningReturn, CellInfo, HeaderInfo, UseTableColumnsOptions, UseTableColumnsReturn, UseScrollShadowOptions, UseScrollShadowReturn, UseDragToScrollOptions, UseDragToScrollReturn, UseFixedColumnsOptions, TableProps, TableMode, ColumnDef, ColumnAlign, CellContext, SortingState, PaginationState, PaginationChangePayload, SortingChangePayload, SelectionChangePayload, FilterChangePayload, ColumnResizeMode, ColumnVisibilityState, ColumnOrderState, ExpandedState, ColumnVisibilityChangePayload, ColumnOrderChangePayload, RowExpandChangePayload, ColumnResizePayload, ColumnPinningState, } from './Data/Table/index.ts';
45
+ export { Counter as OxCounter, counterVariants, type CounterVariants, } from './Forms/Field/Counter/index.ts';
46
+ export { FieldGroup as OxFieldGroup, FieldLabel as OxFieldLabel, FieldMessage as OxFieldMessage, useFieldControl, useFieldControlGroup, type FieldControlAttrs, type FieldControlGroupAttrs, type FieldGroupProps, type FieldVariant, } from './Forms/Field/index.ts';
47
+ export { InputGroup as OxInputGroup, InputText as OxInputText, InputNumber as OxInputNumber, InputNumberContent as OxInputNumberContent, InputNumberDecrement as OxInputNumberDecrement, InputNumberIncrement as OxInputNumberIncrement, InputNumberInput as OxInputNumberInput, InputPassword as OxInputPassword, InputPasswordInput as OxInputPasswordInput, InputPasswordToggle as OxInputPasswordToggle, useInputPassword, InputOtp as OxInputOtp, InputOtpGroup as OxInputOtpGroup, InputOtpSlot as OxInputOtpSlot, InputOtpSeparator as OxInputOtpSeparator, useInputOtp, Calendar as OxCalendar, CalendarRange as OxCalendarRange, CalendarDay as OxCalendarDay, calendarDayVariants, Combobox as OxCombobox, ComboboxCancel as OxComboboxCancel, ComboboxInput as OxComboboxInput, ComboboxChipsInput as OxComboboxChipsInput, ComboboxContent as OxComboboxContent, ComboboxItem as OxComboboxItem, ComboboxItemEdit as OxComboboxItemEdit, ComboboxEmpty as OxComboboxEmpty, ComboboxGroup as OxComboboxGroup, ComboboxSeparator as OxComboboxSeparator, ChatInput as OxChatInput, DatePicker as OxDatePicker, DateRangePicker as OxDateRangePicker, DatePickerTrigger as OxDatePickerTrigger, DatePickerHeader as OxDatePickerHeader, DatePickerMonthSelect as OxDatePickerMonthSelect, DatePickerYearSelect as OxDatePickerYearSelect, SearchBar as OxSearchBar, searchBarVariants, useSearchDelay, SearchPanel as OxSearchPanel, SearchPanelInput as OxSearchPanelInput, SearchPanelList as OxSearchPanelList, SearchPanelGroup as OxSearchPanelGroup, SearchPanelItem as OxSearchPanelItem, SearchPanelEmpty as OxSearchPanelEmpty, Select as OxSelect, SelectTrigger as OxSelectTrigger, SelectContent as OxSelectContent, SelectItem as OxSelectItem, SelectGroup as OxSelectGroup, SelectSeparator as OxSelectSeparator, Textarea as OxTextarea, Switch as OxSwitch, Checkbox as OxCheckbox, RadioButton as OxRadioButton, RadioGroup as OxRadioGroup, ToggleGroup as OxToggleGroup, ToggleLabel as OxToggleLabel, ToggleDescription as OxToggleDescription, SWITCH_SIZES, type InputNumberProps, type InputPasswordProps, type InputPasswordContext, type InputOtpProps, type InputOtpSlotProps, type InputOtpContext, type CalendarProps, type CalendarRangeProps, type CalendarDateRange, type CalendarDayProps, type CalendarDayState, type CalendarDayVariants, type CalendarConstraints, type CalendarNav, type ComboboxProps, type ChatInputActionLabels, type ChatInputState, type DatePickerProps, type DateRangePickerProps, type DatePickerTriggerProps, type DatePickerHeaderProps, type DatePickerMonthSelectProps, type DatePickerYearSelectProps, type SearchBarVariants, type UseSearchDelayReturn, type SelectProps, type TextareaCounterState, type RadioGroupProps, type ToggleGroupProps, type ToggleLabelProps, type ToggleDescriptionProps, } from './Forms/Inputs/index.ts';
48
+ export { Table as OxTable, TableVirtualized as OxTableVirtualized, TableHead as OxTableHead, TableBody as OxTableBody, TableRow as OxTableRow, TableCell as OxTableCell, TableHeaderCell as OxTableHeaderCell, TableSelectCell as OxTableSelectCell, TableDragCell as OxTableDragCell, TableBulkHeader as OxTableBulkHeader, TablePagination as OxTablePagination, TableEmpty as OxTableEmpty, TableRowExpanded as OxTableRowExpanded, TableExpandCell as OxTableExpandCell, TableColumnVisibility as OxTableColumnVisibility, useTable, useTableSelection, useTableSorting, useTablePagination, useTableDetailRow, useTablePinning, useTableColumns, useScrollShadow, useDragToScroll, useFixedColumns, useTableVirtual, } from './Data/Table/index.ts';
49
+ export type { UseTableOptions, UseTableReturn, UseTableSelectionReturn, UseTableSortingReturn, UseTablePaginationOptions, UseTablePaginationReturn, DetailRowInstance, DetailRowOptions, DetailRowPluginDef, UseTablePinningOptions, UseTablePinningReturn, CellInfo, HeaderInfo, UseTableVirtualOptions, UseTableVirtualReturn, UseTableColumnsOptions, UseTableColumnsReturn, UseScrollShadowOptions, UseScrollShadowReturn, UseDragToScrollOptions, UseDragToScrollReturn, UseFixedColumnsOptions, TableProps, TableMode, ColumnDef, ColumnAlign, CellContext, SortingState, PaginationState, PaginationChangePayload, SortingChangePayload, SelectionChangePayload, FilterChangePayload, ColumnResizeMode, ColumnVisibilityState, ColumnOrderState, ExpandedState, ColumnVisibilityChangePayload, ColumnOrderChangePayload, RowExpandChangePayload, ColumnResizePayload, ColumnPinningState, } from './Data/Table/index.ts';
@@ -0,0 +1,391 @@
1
+ @layer base{
2
+ /*
3
+ 1. Prevent padding and border from affecting element width. (https://github.com/mozdevs/cssremedy/issues/4)
4
+ 2. Remove default margins and padding
5
+ 3. Reset all borders.
6
+ */
7
+
8
+ *,
9
+ ::after,
10
+ ::before,
11
+ ::backdrop,
12
+ ::file-selector-button {
13
+ box-sizing: border-box; /* 1 */
14
+ margin: 0; /* 2 */
15
+ padding: 0; /* 2 */
16
+ border: 0 solid; /* 3 */
17
+ }
18
+
19
+ /*
20
+ 1. Use a consistent sensible line-height in all browsers.
21
+ 2. Prevent adjustments of font size after orientation changes in iOS.
22
+ 3. Use a more readable tab size.
23
+ 4. Use the user's configured `sans` font-family by default.
24
+ 5. Use the user's configured `sans` font-feature-settings by default.
25
+ 6. Use the user's configured `sans` font-variation-settings by default.
26
+ 7. Disable tap highlights on iOS.
27
+ */
28
+
29
+ html,
30
+ :host {
31
+ line-height: 1.5; /* 1 */
32
+ -webkit-text-size-adjust: 100%; /* 2 */
33
+ tab-size: 4; /* 3 */
34
+ font-family: var(--ox-default-font-family, ui-sans-serif,
35
+ system-ui,
36
+ sans-serif,
37
+ 'Apple Color Emoji',
38
+ 'Segoe UI Emoji',
39
+ 'Segoe UI Symbol',
40
+ 'Noto Color Emoji'
41
+ ); /* 4 */
42
+ font-feature-settings: var(--ox-default-font-feature-settings, normal); /* 5 */
43
+ font-variation-settings: var(--ox-default-font-variation-settings, normal); /* 6 */
44
+ -webkit-tap-highlight-color: transparent; /* 7 */
45
+ }
46
+
47
+ /*
48
+ 1. Add the correct height in Firefox.
49
+ 2. Correct the inheritance of border color in Firefox. (https://bugzilla.mozilla.org/show_bug.cgi?id=190655)
50
+ 3. Reset the default border style to a 1px solid border.
51
+ */
52
+
53
+ hr {
54
+ height: 0; /* 1 */
55
+ color: inherit; /* 2 */
56
+ border-top-width: 1px; /* 3 */
57
+ }
58
+
59
+ /*
60
+ Add the correct text decoration in Chrome, Edge, and Safari.
61
+ */
62
+
63
+ abbr:where([title]) {
64
+ -webkit-text-decoration: underline dotted;
65
+ text-decoration: underline dotted;
66
+ }
67
+
68
+ /*
69
+ Remove the default font size and weight for headings.
70
+ */
71
+
72
+ h1,
73
+ h2,
74
+ h3,
75
+ h4,
76
+ h5,
77
+ h6 {
78
+ font-size: inherit;
79
+ font-weight: inherit;
80
+ }
81
+
82
+ /*
83
+ Reset links to optimize for opt-in styling instead of opt-out.
84
+ */
85
+
86
+ a {
87
+ color: inherit;
88
+ -webkit-text-decoration: inherit;
89
+ text-decoration: inherit;
90
+ }
91
+
92
+ /*
93
+ Add the correct font weight in Edge and Safari.
94
+ */
95
+
96
+ b,
97
+ strong {
98
+ font-weight: bolder;
99
+ }
100
+
101
+ /*
102
+ 1. Use the user's configured `mono` font-family by default.
103
+ 2. Use the user's configured `mono` font-feature-settings by default.
104
+ 3. Use the user's configured `mono` font-variation-settings by default.
105
+ 4. Correct the odd `em` font sizing in all browsers.
106
+ */
107
+
108
+ code,
109
+ kbd,
110
+ samp,
111
+ pre {
112
+ font-family: var(--ox-default-mono-font-family, ui-monospace,
113
+ SFMono-Regular,
114
+ Menlo,
115
+ Monaco,
116
+ Consolas,
117
+ 'Liberation Mono',
118
+ 'Courier New',
119
+ monospace
120
+ ); /* 1 */
121
+ font-feature-settings: var(--ox-default-mono-font-feature-settings, normal); /* 2 */
122
+ font-variation-settings: var(--ox-default-mono-font-variation-settings, normal); /* 3 */
123
+ font-size: 1em; /* 4 */
124
+ }
125
+
126
+ /*
127
+ Add the correct font size in all browsers.
128
+ */
129
+
130
+ small {
131
+ font-size: 80%;
132
+ }
133
+
134
+ /*
135
+ Prevent `sub` and `sup` elements from affecting the line height in all browsers.
136
+ */
137
+
138
+ sub,
139
+ sup {
140
+ font-size: 75%;
141
+ line-height: 0;
142
+ position: relative;
143
+ vertical-align: baseline;
144
+ }
145
+
146
+ sub {
147
+ bottom: -0.25em;
148
+ }
149
+
150
+ sup {
151
+ top: -0.5em;
152
+ }
153
+
154
+ /*
155
+ 1. Remove text indentation from table contents in Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=999088, https://bugs.webkit.org/show_bug.cgi?id=201297)
156
+ 2. Correct table border color inheritance in all Chrome and Safari. (https://bugs.chromium.org/p/chromium/issues/detail?id=935729, https://bugs.webkit.org/show_bug.cgi?id=195016)
157
+ 3. Remove gaps between table borders by default.
158
+ */
159
+
160
+ table {
161
+ text-indent: 0; /* 1 */
162
+ border-color: inherit; /* 2 */
163
+ border-collapse: collapse; /* 3 */
164
+ }
165
+
166
+ /*
167
+ Use the modern Firefox focus style for all focusable elements.
168
+ */
169
+
170
+ :-moz-focusring {
171
+ outline: auto;
172
+ }
173
+
174
+ /*
175
+ Add the correct vertical alignment in Chrome and Firefox.
176
+ */
177
+
178
+ progress {
179
+ vertical-align: baseline;
180
+ }
181
+
182
+ /*
183
+ Add the correct display in Chrome and Safari.
184
+ */
185
+
186
+ summary {
187
+ display: list-item;
188
+ }
189
+
190
+ /*
191
+ Make lists unstyled by default.
192
+ */
193
+
194
+ ol,
195
+ ul,
196
+ menu {
197
+ list-style: none;
198
+ }
199
+
200
+ /*
201
+ 1. Make replaced elements `display: block` by default. (https://github.com/mozdevs/cssremedy/issues/14)
202
+ 2. Add `vertical-align: middle` to align replaced elements more sensibly by default. (https://github.com/jensimmons/cssremedy/issues/14#issuecomment-634934210)
203
+ This can trigger a poorly considered lint error in some tools but is included by design.
204
+ */
205
+
206
+ img,
207
+ svg,
208
+ video,
209
+ canvas,
210
+ audio,
211
+ iframe,
212
+ embed,
213
+ object {
214
+ display: block; /* 1 */
215
+ vertical-align: middle; /* 2 */
216
+ }
217
+
218
+ /*
219
+ Constrain images and videos to the parent width and preserve their intrinsic aspect ratio. (https://github.com/mozdevs/cssremedy/issues/14)
220
+ */
221
+
222
+ img,
223
+ video {
224
+ max-width: 100%;
225
+ height: auto;
226
+ }
227
+
228
+ /*
229
+ 1. Inherit font styles in all browsers.
230
+ 2. Remove border radius in all browsers.
231
+ 3. Remove background color in all browsers.
232
+ 4. Ensure consistent opacity for disabled states in all browsers.
233
+ */
234
+
235
+ button,
236
+ input,
237
+ select,
238
+ optgroup,
239
+ textarea,
240
+ ::file-selector-button {
241
+ font: inherit; /* 1 */
242
+ font-feature-settings: inherit; /* 1 */
243
+ font-variation-settings: inherit; /* 1 */
244
+ letter-spacing: inherit; /* 1 */
245
+ color: inherit; /* 1 */
246
+ border-radius: 0; /* 2 */
247
+ background-color: transparent; /* 3 */
248
+ opacity: 1; /* 4 */
249
+ }
250
+
251
+ /*
252
+ Restore default font weight.
253
+ */
254
+
255
+ :where(select:is([multiple], [size])) optgroup {
256
+ font-weight: bolder;
257
+ }
258
+
259
+ /*
260
+ Restore indentation.
261
+ */
262
+
263
+ :where(select:is([multiple], [size])) optgroup option {
264
+ padding-inline-start: 20px;
265
+ }
266
+
267
+ /*
268
+ Restore space after button.
269
+ */
270
+
271
+ ::file-selector-button {
272
+ margin-inline-end: 4px;
273
+ }
274
+
275
+ /*
276
+ Reset the default placeholder opacity in Firefox. (https://github.com/tailwindlabs/tailwindcss/issues/3300)
277
+ */
278
+
279
+ ::placeholder {
280
+ opacity: 1;
281
+ }
282
+
283
+ /*
284
+ Set the default placeholder color to a semi-transparent version of the current text color in browsers that do not
285
+ crash when using `color-mix(…)` with `currentcolor`. (https://github.com/tailwindlabs/tailwindcss/issues/17194)
286
+ */
287
+
288
+ @supports (not (-webkit-appearance: -apple-pay-button)) /* Not Safari */ or
289
+ (contain-intrinsic-size: 1px) /* Safari 17+ */ {
290
+ ::placeholder {
291
+ color: color-mix(in oklab, currentcolor 50%, transparent);
292
+ }
293
+ }
294
+
295
+ /*
296
+ Prevent resizing textareas horizontally by default.
297
+ */
298
+
299
+ textarea {
300
+ resize: vertical;
301
+ }
302
+
303
+ /*
304
+ Remove the inner padding in Chrome and Safari on macOS.
305
+ */
306
+
307
+ ::-webkit-search-decoration {
308
+ -webkit-appearance: none;
309
+ }
310
+
311
+ /*
312
+ 1. Ensure date/time inputs have the same height when empty in iOS Safari.
313
+ 2. Ensure text alignment can be changed on date/time inputs in iOS Safari.
314
+ */
315
+
316
+ ::-webkit-date-and-time-value {
317
+ min-height: 1lh; /* 1 */
318
+ text-align: inherit; /* 2 */
319
+ }
320
+
321
+ /*
322
+ Prevent height from changing on date/time inputs in macOS Safari when the input is set to `display: block`.
323
+ */
324
+
325
+ ::-webkit-datetime-edit {
326
+ display: inline-flex;
327
+ }
328
+
329
+ /*
330
+ Remove excess padding from pseudo-elements in date/time inputs to ensure consistent height across browsers.
331
+ */
332
+
333
+ ::-webkit-datetime-edit-fields-wrapper {
334
+ padding: 0;
335
+ }
336
+
337
+ ::-webkit-datetime-edit,
338
+ ::-webkit-datetime-edit-year-field,
339
+ ::-webkit-datetime-edit-month-field,
340
+ ::-webkit-datetime-edit-day-field,
341
+ ::-webkit-datetime-edit-hour-field,
342
+ ::-webkit-datetime-edit-minute-field,
343
+ ::-webkit-datetime-edit-second-field,
344
+ ::-webkit-datetime-edit-millisecond-field,
345
+ ::-webkit-datetime-edit-meridiem-field {
346
+ padding-block: 0;
347
+ }
348
+
349
+ /*
350
+ Center dropdown marker shown on inputs with paired `<datalist>`s in Chrome. (https://github.com/tailwindlabs/tailwindcss/issues/18499)
351
+ */
352
+
353
+ ::-webkit-calendar-picker-indicator {
354
+ line-height: 1;
355
+ }
356
+
357
+ /*
358
+ Remove the additional `:invalid` styles in Firefox. (https://github.com/mozilla/gecko-dev/blob/2f9eacd9d3d995c937b4251a5557d95d494c9be1/layout/style/res/forms.css#L728-L737)
359
+ */
360
+
361
+ :-moz-ui-invalid {
362
+ box-shadow: none;
363
+ }
364
+
365
+ /*
366
+ Correct the inability to style the border radius in iOS Safari.
367
+ */
368
+
369
+ button,
370
+ input:where([type='button'], [type='reset'], [type='submit']),
371
+ ::file-selector-button {
372
+ appearance: button;
373
+ }
374
+
375
+ /*
376
+ Correct the cursor style of increment and decrement buttons in Safari.
377
+ */
378
+
379
+ ::-webkit-inner-spin-button,
380
+ ::-webkit-outer-spin-button {
381
+ height: auto;
382
+ }
383
+
384
+ /*
385
+ Make elements with the HTML hidden attribute stay hidden by default.
386
+ */
387
+
388
+ [hidden]:where(:not([hidden='until-found'])) {
389
+ display: none !important;
390
+ }
391
+ }