@assure-one/design-system 1.47.1 → 1.48.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.
@@ -483,7 +483,14 @@ var tableAnatomy = defineAnatomy("table", [
483
483
  "group-row",
484
484
  "group-row-toggle",
485
485
  "group-row-label",
486
- "group-row-trailing"
486
+ "group-row-trailing",
487
+ "sort-rank",
488
+ "resize-handle",
489
+ "head-menu",
490
+ "cell-secondary",
491
+ "spacer-row",
492
+ "group-row-count",
493
+ "group-row-subtotal"
487
494
  ]);
488
495
  var dataTableAnatomy = defineAnatomy("data-table", [
489
496
  "root",
@@ -503,7 +510,10 @@ var dataTableAnatomy = defineAnatomy("data-table", [
503
510
  "columns-menu",
504
511
  "content",
505
512
  "bulk-actions",
506
- "pagination"
513
+ "pagination",
514
+ "head-menu",
515
+ "cell-secondary",
516
+ "load-more"
507
517
  ]);
508
518
  var paginationAnatomy = defineAnatomy("pagination", [
509
519
  "root",
@@ -541,7 +551,8 @@ var sidebarAnatomy = defineAnatomy("sidebar", [
541
551
  var sidebarBrandSwitcherAnatomy = defineAnatomy("sidebar-brand-switcher", [
542
552
  "root",
543
553
  "trigger",
544
- "icon"
554
+ "icon",
555
+ "mark"
545
556
  ]);
546
557
  var textAnatomy = defineAnatomy("text", ["root"]);
547
558
  var headingAnatomy = defineAnatomy("heading", ["root"]);
@@ -597,6 +608,38 @@ var comboboxAnatomy = defineAnatomy("combobox", [
597
608
  "loading",
598
609
  "footer"
599
610
  ]);
611
+ var statStripAnatomy = defineAnatomy("stat-strip", [
612
+ "root",
613
+ "content",
614
+ "toggle",
615
+ "item",
616
+ "label",
617
+ "value",
618
+ "caption"
619
+ ]);
620
+ var filterChipsAnatomy = defineAnatomy("filter-chips", [
621
+ "root",
622
+ "chip",
623
+ "overflow",
624
+ "overflow-panel",
625
+ "overflow-facet",
626
+ "overflow-value",
627
+ "clear"
628
+ ]);
629
+ var listPageAnatomy = defineAnatomy("list-page", [
630
+ "root",
631
+ "stats",
632
+ "toolbar",
633
+ "search",
634
+ "chips",
635
+ "count",
636
+ "actions",
637
+ "table",
638
+ "scroll",
639
+ "footer",
640
+ "bulk-bar",
641
+ "result-count"
642
+ ]);
600
643
 
601
644
  // src/foundation/anatomy/slot.ts
602
645
  function slot(anatomy, part) {
@@ -907,7 +950,16 @@ var EN_MESSAGES = {
907
950
  expand: (name) => `Expand ${name}`
908
951
  },
909
952
  appHeader: { search: "Search\u2026" },
910
- bulkActionBar: { clearSelection: "Clear selection" },
953
+ bulkActionBar: {
954
+ clearSelection: "Clear selection",
955
+ toolbar: "Bulk actions",
956
+ selected: (count) => `${count} selected`,
957
+ cleared: "Selection cleared",
958
+ clear: "Clear",
959
+ escapeKey: "Esc",
960
+ more: "More",
961
+ eligible: (eligible, total) => `${eligible} of ${total}`
962
+ },
911
963
  errorState: {
912
964
  title: "Something went wrong",
913
965
  retry: "Try again",
@@ -921,20 +973,169 @@ var EN_MESSAGES = {
921
973
  columns: "Columns",
922
974
  filterAll: "All",
923
975
  selectAll: "Select all rows",
924
- selectRow: "Select row"
976
+ selectRow: "Select row",
977
+ columnOptions: (label) => `Column options for ${label}`,
978
+ sortAscending: "Sort ascending",
979
+ sortDescending: "Sort descending",
980
+ clearSort: "Clear sort",
981
+ moveLeft: "Move left",
982
+ moveRight: "Move right",
983
+ hideColumn: "Hide column",
984
+ pinColumn: "Pin column",
985
+ unpinColumn: "Unpin column",
986
+ autosizeColumn: "Autosize column",
987
+ resetColumns: "Reset columns",
988
+ loadMore: "Load more",
989
+ loadingMore: "Loading more\u2026",
990
+ allLoaded: (count) => `All ${count} loaded`,
991
+ loadedOf: (loaded, total) => `${loaded} of ${total} loaded`
925
992
  },
926
993
  tableStates: { loading: "Loading", empty: "No results" },
927
994
  table: {
928
995
  region: "Scrollable table",
929
996
  collapseSection: "Collapse section",
930
- expandSection: "Expand section"
997
+ expandSection: "Expand section",
998
+ sortedAscending: (rank) => `Sorted ascending, priority ${rank}`,
999
+ sortedDescending: (rank) => `Sorted descending, priority ${rank}`,
1000
+ resizeColumn: "Resize column",
1001
+ resizeColumnNamed: (label) => `Resize ${label}`,
1002
+ groupLoadedOf: (loaded, total) => `${loaded} of ${total} loaded`
931
1003
  },
932
1004
  tableDensity: { label: "Row density", comfortable: "Detailed view", compact: "Compact view" },
933
1005
  stackedBarChart: { region: "Scrollable chart" },
934
1006
  pdfPreview: { region: "PDF preview" },
935
1007
  spreadsheetPreview: { region: "Spreadsheet preview" },
936
1008
  peoplePicker: { assignToMe: "Assign to me" },
937
- comingSoon: { eyebrow: "Coming soon", badge: "In Development" }
1009
+ comingSoon: { eyebrow: "Coming soon", badge: "In Development" },
1010
+ statStrip: { region: "Summary", collapse: "Collapse summary", expand: "Expand summary" },
1011
+ displayMenu: {
1012
+ trigger: "Display",
1013
+ tooltip: "Filters, grouping, ordering, columns",
1014
+ triggerCustomised: (label) => `${label} (customised)`,
1015
+ rootSearchPlaceholder: "Filter\u2026",
1016
+ rootSearchLabel: "Filter options and values",
1017
+ reset: "Reset to default",
1018
+ noMatches: "No matches",
1019
+ nothingToFilter: "Nothing to filter by",
1020
+ sectionSearchPlaceholder: (section) => `Filter ${section.toLowerCase()}\u2026`,
1021
+ sectionSearchLabel: (section) => `Filter ${section}`,
1022
+ clearSelected: (count) => `Clear ${count} selected`,
1023
+ groupFilter: "Filter",
1024
+ groupArrange: "Arrange",
1025
+ activeFilters: (label, count) => `${label}, ${count} active`,
1026
+ matchLabel: "Match",
1027
+ matchAll: "All filters",
1028
+ matchAny: "Any filter",
1029
+ views: "Views",
1030
+ noView: "Custom view",
1031
+ saveView: "Save view",
1032
+ unsavedChanges: "unsaved changes",
1033
+ announceSelected: (section, option) => `${section}: ${option} selected`,
1034
+ announceDeselected: (section, option) => `${section}: ${option} removed`,
1035
+ announceCleared: (section) => `${section} cleared`,
1036
+ announceReset: "Display reset to default",
1037
+ announceView: (view) => `${view} view applied`
1038
+ },
1039
+ displayMenuFilters: {
1040
+ operator: "Operator",
1041
+ operatorIs: "is",
1042
+ operatorIsNot: "is not",
1043
+ operatorIsAnyOf: "is any of",
1044
+ operatorIsNoneOf: "is none of",
1045
+ operatorIsEmpty: "is empty",
1046
+ operatorIsNotEmpty: "is not empty",
1047
+ more: (count) => `+${count}`,
1048
+ search: (section) => `Search ${section}`,
1049
+ searchPlaceholder: "Search\u2026",
1050
+ noMatches: "No matches",
1051
+ clear: "Clear",
1052
+ me: "Me",
1053
+ unassigned: "Unassigned",
1054
+ tagMatch: "Match",
1055
+ tagMatchAny: "Any of these",
1056
+ tagMatchAll: "All of these",
1057
+ tagMatchAllSummary: (labels) => `all of ${labels}`,
1058
+ dateDue: "Due",
1059
+ dateCalendar: "Date",
1060
+ datePresets: "Date presets",
1061
+ overdue: "Overdue",
1062
+ dueToday: "Due today",
1063
+ dueNext7: "Due in 7 days",
1064
+ dueThisMonth: "Due this month",
1065
+ noDate: "No date",
1066
+ today: "Today",
1067
+ last7: "Last 7 days",
1068
+ last30: "Last 30 days",
1069
+ thisMonth: "This month",
1070
+ lastMonth: "Last month",
1071
+ thisQuarter: "This quarter",
1072
+ lastQuarter: "Last quarter",
1073
+ ytd: "Year to date",
1074
+ custom: "Custom range",
1075
+ dateFrom: "From",
1076
+ dateTo: "To",
1077
+ dateBetween: (from, to) => `${from} \u2013 ${to}`,
1078
+ dateOnOrAfter: (from) => `from ${from}`,
1079
+ dateOnOrBefore: (to) => `until ${to}`,
1080
+ numberEq: "Equals",
1081
+ numberNe: "Does not equal",
1082
+ numberLt: "Less than",
1083
+ numberLte: "At most",
1084
+ numberGt: "Greater than",
1085
+ numberGte: "At least",
1086
+ numberBetween: "Between",
1087
+ numberValue: "Value",
1088
+ numberMin: "Minimum",
1089
+ numberMax: "Maximum",
1090
+ numberInvalid: "Enter a number",
1091
+ numberBetweenSummary: (from, to) => `between ${from} and ${to}`,
1092
+ textContains: "Contains",
1093
+ textStartsWith: "Starts with",
1094
+ textValue: "Text",
1095
+ textContainsSummary: (text2) => `contains \u201C${text2}\u201D`,
1096
+ textStartsWithSummary: (text2) => `starts with \u201C${text2}\u201D`,
1097
+ booleanAny: "Any",
1098
+ booleanTrue: "Yes",
1099
+ booleanFalse: "No",
1100
+ sortBy: "Sort by",
1101
+ sortThenBy: "Then by",
1102
+ sortField: (position) => `${position} field`,
1103
+ sortDirection: (field) => `${field} direction`,
1104
+ ascending: "Ascending",
1105
+ descending: "Descending",
1106
+ addSort: "Add sort",
1107
+ chooseField: "Choose a field",
1108
+ removeSort: (field) => `Remove ${field} sort`,
1109
+ makePrimary: (field) => `Sort by ${field} first`,
1110
+ sortSummary: (fields) => fields,
1111
+ columnsList: "Columns",
1112
+ showColumn: (column) => `Show ${column}`,
1113
+ moveUp: (column) => `Move ${column} up`,
1114
+ moveDown: (column) => `Move ${column} down`,
1115
+ locked: "Locked",
1116
+ resetColumns: "Reset columns",
1117
+ columnMoved: (column, position, total) => `${column} moved to position ${position} of ${total}`,
1118
+ columnShown: (column) => `${column} shown`,
1119
+ columnHidden: (column) => `${column} hidden`,
1120
+ sortChanged: (summary) => `Sorted by ${summary}`
1121
+ },
1122
+ filterChips: {
1123
+ region: "Active filters",
1124
+ facet: (label, summary) => `${label}: ${summary}`,
1125
+ remove: (label) => `Remove ${label} filter`,
1126
+ removeValue: (label, value) => `Remove ${value} from ${label}`,
1127
+ more: (count) => `+${count}`,
1128
+ moreLabel: (count) => `${count} more filters`,
1129
+ panelTitle: (count) => `Active filters (${count})`,
1130
+ clearFilters: "Clear filters",
1131
+ clearAll: "Clear all"
1132
+ },
1133
+ listPage: {
1134
+ tableRegion: "Results",
1135
+ range: (start, end, total) => `${start}\u2013${end} of ${total}`,
1136
+ loaded: (loaded, total) => `${loaded} of ${total} loaded`,
1137
+ total: (total) => `${total} results`
1138
+ }
938
1139
  };
939
1140
 
940
1141
  // src/foundation/provider/context.tsx
@@ -964,6 +1165,9 @@ var TOOLTIP_DEFAULT_DELAY_MS = 300;
964
1165
  function useSharedTooltipProvider() {
965
1166
  return useContext(DesignSystemContext)?.sharedTooltipProvider ?? false;
966
1167
  }
1168
+ function useDsDirection() {
1169
+ return useContext(DesignSystemContext)?.dir;
1170
+ }
967
1171
 
968
1172
  // src/foundation/anatomy/class-names.ts
969
1173
  function slotClassName(classNames, part) {
@@ -1385,6 +1589,7 @@ var TooltipContent = React7.forwardRef(({ className, sideOffset = 6, maxWidth =
1385
1589
  }
1386
1590
  ) }));
1387
1591
  TooltipContent.displayName = TooltipPrimitive.Content.displayName;
1592
+ var TooltipRoot = TooltipPrimitive.Root;
1388
1593
 
1389
1594
  // src/primitives/behavior/control-size.ts
1390
1595
  var CONTROL_SIZE_CLASSES = {
@@ -3809,6 +4014,6 @@ var DocumentRow = forwardRef(function DocumentRow2({ fileName, meta, icon, appro
3809
4014
  });
3810
4015
  DocumentRow.displayName = "DocumentRow";
3811
4016
 
3812
- export { Avatar, Backdrop, Button, CONTROL_GAP_CLASSES, CONTROL_LABEL_TEXT, CONTROL_SIZE_CLASSES, Checkbox, DEFAULT_OVERLAY_MESSAGES, DISABLED_LOOK_CLASSES, DISMISS_GLYPH_CLASSES, DesignSystemContext, DismissButton, DocumentDetailActions, DocumentDetailBody, DocumentDetailHeader, DocumentDetailMetaRow, DocumentDetailPanel, DocumentDetailRequester, DocumentDetailTitle, DocumentList, DocumentListSection, DocumentRow, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EN_MESSAGES, FIELD_PARTS, FLOATING_PADDING, FLOATING_WIDTH, FieldContext, FieldsetContext, FileChip, FileUpload, FormBridge, INERT_ATTRIBUTES, INERT_CLASSES, IconButton, Input, LIST_ITEM_INDICATOR_WELL, LIST_SEPARATOR, MENU_CHECK_GLYPH, MENU_INDICATOR_WELL, MENU_INSET, MENU_ITEM_DANGER, MENU_RADIO_GLYPH, MENU_SUB_TRIGGER_CHEVRON, ModalContent, ModalDescription, ModalOverlay, ModalPortal, ModalRoot, ModalTitle, OverlayBody, OverlayDescription, OverlayFooter, OverlayHeader, OverlaySurface, OverlayTitle, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Portal, PortalContainerContext, Pressable, SPINNER_TONE_TO_INTENT, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Spinner, TOOLTIP_DEFAULT_DELAY_MS, Textarea, ThemeScope, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipTrigger, alertDialogAnatomy, badgeAnatomy, buttonBase, buttonVariants, cardAnatomy, chipAnatomy, codeAnatomy, comboboxAnatomy, commandAnatomy, contextMenuAnatomy, controlChrome, dataTableAnatomy, deprecate, dialogAnatomy, errorOnce, fieldAnatomy, fieldsetAnatomy, floatingSurfaceClasses, groupHeadingClasses, headingAnatomy, iconButtonVariants, inertHandlers, inlineAnatomy, inputVariants, isLabelable, joinIds, kbdAnatomy, labelAnatomy, linkButtonAnatomy, listItemAttributes, listItemClasses, menuIndicatorItemClasses, menuItemClasses, menuLabelClasses, menuSeparatorClasses, menuShortcutClasses, menuSubTriggerClasses, mergeRefs, microInteractions, numberInputAnatomy, optionElementId, paginationAnatomy, partId, phoneFieldAnatomy, presence, radioGroupAnatomy, resolveButtonIcons, resolveButtonStyle, searchInputAnatomy, sheetAnatomy, shellAnatomy, sideDrawerAnatomy, sidebarAnatomy, sidebarBrandSwitcherAnatomy, slot, spinnerVariants, stackAnatomy, stateAttributes, statusBadgeAnatomy, surfaceAnatomy, switchAnatomy, tableAnatomy, textAnatomy, textareaVariants, toastAnatomy, useControllableState, useDsMessages, useExitPresence, useFieldContext, useFieldControl, useFieldsetContext, useFieldsetLegend, useFieldsetState, useFormReset, useFormReset2, useId, useImageComponent, useLinkComponent, useMergedRefs, warnLegacyButtonProps, withPortalContainer };
3813
- //# sourceMappingURL=chunk-IIBDSTOG.js.map
3814
- //# sourceMappingURL=chunk-IIBDSTOG.js.map
4017
+ export { Avatar, Backdrop, Button, CONTROL_GAP_CLASSES, CONTROL_LABEL_TEXT, CONTROL_SIZE_CLASSES, Checkbox, DEFAULT_OVERLAY_MESSAGES, DISABLED_LOOK_CLASSES, DISMISS_GLYPH_CLASSES, DesignSystemContext, DismissButton, DocumentDetailActions, DocumentDetailBody, DocumentDetailHeader, DocumentDetailMetaRow, DocumentDetailPanel, DocumentDetailRequester, DocumentDetailTitle, DocumentList, DocumentListSection, DocumentRow, DropdownMenu, DropdownMenuCheckboxItem, DropdownMenuContent, DropdownMenuGroup, DropdownMenuItem, DropdownMenuLabel, DropdownMenuPortal, DropdownMenuRadioGroup, DropdownMenuRadioItem, DropdownMenuSeparator, DropdownMenuShortcut, DropdownMenuSub, DropdownMenuSubContent, DropdownMenuSubTrigger, DropdownMenuTrigger, EN_MESSAGES, FIELD_PARTS, FLOATING_PADDING, FLOATING_WIDTH, FieldContext, FieldsetContext, FileChip, FileUpload, FormBridge, INERT_ATTRIBUTES, INERT_CLASSES, IconButton, Input, LIST_ITEM_INDICATOR_WELL, LIST_SEPARATOR, MENU_CHECK_GLYPH, MENU_INDICATOR_WELL, MENU_INSET, MENU_ITEM_DANGER, MENU_RADIO_GLYPH, MENU_SUB_TRIGGER_CHEVRON, ModalContent, ModalDescription, ModalOverlay, ModalPortal, ModalRoot, ModalTitle, OverlayBody, OverlayDescription, OverlayFooter, OverlayHeader, OverlaySurface, OverlayTitle, Popover, PopoverAnchor, PopoverClose, PopoverContent, PopoverPortal, PopoverTrigger, Portal, PortalContainerContext, Pressable, SPINNER_TONE_TO_INTENT, Select, SelectContent, SelectGroup, SelectItem, SelectLabel, SelectRoot, SelectScrollDownButton, SelectScrollUpButton, SelectSeparator, SelectTrigger, SelectValue, Spinner, TOOLTIP_DEFAULT_DELAY_MS, Textarea, ThemeScope, Tooltip, TooltipContent, TooltipPortal, TooltipProvider, TooltipRoot, TooltipTrigger, alertDialogAnatomy, badgeAnatomy, buttonBase, buttonVariants, cardAnatomy, chipAnatomy, codeAnatomy, comboboxAnatomy, commandAnatomy, contextMenuAnatomy, controlChrome, dataTableAnatomy, deprecate, dialogAnatomy, errorOnce, fieldAnatomy, fieldsetAnatomy, filterChipsAnatomy, floatingSurfaceClasses, groupHeadingClasses, headingAnatomy, iconButtonVariants, inertHandlers, inlineAnatomy, inputVariants, isLabelable, joinIds, kbdAnatomy, labelAnatomy, linkButtonAnatomy, listItemAttributes, listItemClasses, listPageAnatomy, menuIndicatorItemClasses, menuItemClasses, menuLabelClasses, menuSeparatorClasses, menuShortcutClasses, menuSubTriggerClasses, mergeRefs, microInteractions, numberInputAnatomy, optionElementId, paginationAnatomy, partId, phoneFieldAnatomy, presence, radioGroupAnatomy, resolveButtonIcons, resolveButtonStyle, searchInputAnatomy, sheetAnatomy, shellAnatomy, sideDrawerAnatomy, sidebarAnatomy, sidebarBrandSwitcherAnatomy, slot, spinnerVariants, stackAnatomy, statStripAnatomy, stateAttributes, statusBadgeAnatomy, surfaceAnatomy, switchAnatomy, tableAnatomy, textAnatomy, textareaVariants, toastAnatomy, useControllableState, useDsDirection, useDsMessages, useExitPresence, useFieldContext, useFieldControl, useFieldsetContext, useFieldsetLegend, useFieldsetState, useFormReset, useFormReset2, useId, useImageComponent, useLinkComponent, useMergedRefs, warnLegacyButtonProps, withPortalContainer };
4018
+ //# sourceMappingURL=chunk-HV24JSRN.js.map
4019
+ //# sourceMappingURL=chunk-HV24JSRN.js.map