@planningcenter/tapestry 4.14.0 → 4.14.1-qa-1664.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 (140) hide show
  1. package/dist/components/DataTable/ActiveFilters.d.ts +6 -1
  2. package/dist/components/DataTable/ActiveFilters.d.ts.map +1 -1
  3. package/dist/components/DataTable/ActiveFilters.js +18 -10
  4. package/dist/components/DataTable/ActiveFilters.js.map +1 -1
  5. package/dist/components/DataTable/CollectionEditorsStatic.js +2 -2
  6. package/dist/components/DataTable/CollectionEditorsStatic.js.map +1 -1
  7. package/dist/components/DataTable/DataTable.d.ts +8 -5
  8. package/dist/components/DataTable/DataTable.d.ts.map +1 -1
  9. package/dist/components/DataTable/DataTable.js +26 -14
  10. package/dist/components/DataTable/DataTable.js.map +1 -1
  11. package/dist/components/DataTable/DataTableColumn.d.ts +12 -3
  12. package/dist/components/DataTable/DataTableColumn.d.ts.map +1 -1
  13. package/dist/components/DataTable/DataTableColumnTypes.js +4 -4
  14. package/dist/components/DataTable/DataTableColumnTypes.js.map +1 -1
  15. package/dist/components/DataTable/ResultsCount.d.ts +2 -2
  16. package/dist/components/DataTable/ResultsCount.d.ts.map +1 -1
  17. package/dist/components/DataTable/ResultsCount.js +8 -7
  18. package/dist/components/DataTable/ResultsCount.js.map +1 -1
  19. package/dist/components/DataTable/SelectAllBanner.d.ts.map +1 -1
  20. package/dist/components/DataTable/SelectAllBanner.js +5 -3
  21. package/dist/components/DataTable/SelectAllBanner.js.map +1 -1
  22. package/dist/components/DataTable/TableActions.d.ts.map +1 -1
  23. package/dist/components/DataTable/TableActions.js +5 -3
  24. package/dist/components/DataTable/TableActions.js.map +1 -1
  25. package/dist/components/DataTable/dateFilter.js +28 -10
  26. package/dist/components/DataTable/dateFilter.js.map +1 -1
  27. package/dist/components/DataTable/dayFilter.js +4 -3
  28. package/dist/components/DataTable/dayFilter.js.map +1 -1
  29. package/dist/components/DataTable/numberFilter.js +2 -2
  30. package/dist/components/DataTable/numberFilter.js.map +1 -1
  31. package/dist/components/DataTable/useIsNarrowViewport.d.ts.map +1 -1
  32. package/dist/components/DataTable/useIsNarrowViewport.js +3 -1
  33. package/dist/components/DataTable/useIsNarrowViewport.js.map +1 -1
  34. package/dist/components/DataTable/useResultsAnnouncement.d.ts.map +1 -1
  35. package/dist/components/DataTable/useResultsAnnouncement.js +3 -1
  36. package/dist/components/DataTable/useResultsAnnouncement.js.map +1 -1
  37. package/dist/components/DataTable/useSavedViewsClient.d.ts +9 -2
  38. package/dist/components/DataTable/useSavedViewsClient.d.ts.map +1 -1
  39. package/dist/components/DataTable/useSavedViewsClient.js +9 -2
  40. package/dist/components/DataTable/useSavedViewsClient.js.map +1 -1
  41. package/dist/components/DataTable/useShelfExpanded.d.ts +4 -3
  42. package/dist/components/DataTable/useShelfExpanded.d.ts.map +1 -1
  43. package/dist/components/DataTable/useShelfExpanded.js +21 -5
  44. package/dist/components/DataTable/useShelfExpanded.js.map +1 -1
  45. package/dist/components/DataTable/views.js +1 -4
  46. package/dist/components/DataTable/views.js.map +1 -1
  47. package/dist/components/button/ActionsDropdownIconButton.js +3 -3
  48. package/dist/components/button/ActionsDropdownIconButton.js.map +1 -1
  49. package/dist/components/button/BaseButton.js +4 -4
  50. package/dist/components/button/BaseButton.js.map +1 -1
  51. package/dist/components/button/Button.js +2 -2
  52. package/dist/components/button/Button.js.map +1 -1
  53. package/dist/components/button/DropdownButton.js +3 -3
  54. package/dist/components/button/DropdownButton.js.map +1 -1
  55. package/dist/components/button/DropdownIconButton.js +2 -2
  56. package/dist/components/button/DropdownIconButton.js.map +1 -1
  57. package/dist/components/button/IconButton.js +5 -5
  58. package/dist/components/button/IconButton.js.map +1 -1
  59. package/dist/components/button/LoadingButton.js +2 -2
  60. package/dist/components/button/LoadingButton.js.map +1 -1
  61. package/dist/components/button/PageHeaderActionsDropdownButton.js +3 -3
  62. package/dist/components/button/PageHeaderActionsDropdownButton.js.map +1 -1
  63. package/dist/components/combo-box/ComboBox.d.ts.map +1 -1
  64. package/dist/components/combo-box/ComboBox.js +46 -31
  65. package/dist/components/combo-box/ComboBox.js.map +1 -1
  66. package/dist/components/currency-input/CurrencyInput.d.ts +1 -1
  67. package/dist/components/currency-input/CurrencyInput.d.ts.map +1 -1
  68. package/dist/components/currency-input/CurrencyInput.js +4 -1
  69. package/dist/components/currency-input/CurrencyInput.js.map +1 -1
  70. package/dist/components/date-picker/DatePicker.d.ts +1 -1
  71. package/dist/components/date-picker/DatePicker.d.ts.map +1 -1
  72. package/dist/components/date-picker/DatePicker.js +99 -96
  73. package/dist/components/date-picker/DatePicker.js.map +1 -1
  74. package/dist/components/dropdown/Dropdown.js +13 -13
  75. package/dist/components/dropdown/Dropdown.js.map +1 -1
  76. package/dist/components/field/Field.js +5 -5
  77. package/dist/components/field/Field.js.map +1 -1
  78. package/dist/components/internal/LoadingSpinner.js +2 -2
  79. package/dist/components/internal/LoadingSpinner.js.map +1 -1
  80. package/dist/components/internal/tooltip/Tooltip.js +8 -8
  81. package/dist/components/internal/tooltip/Tooltip.js.map +1 -1
  82. package/dist/components/link/BaseLink.js +3 -3
  83. package/dist/components/link/BaseLink.js.map +1 -1
  84. package/dist/components/link/IconLink.js +5 -5
  85. package/dist/components/link/IconLink.js.map +1 -1
  86. package/dist/components/link/Link.js +2 -2
  87. package/dist/components/link/Link.js.map +1 -1
  88. package/dist/components/number-stepper/NumberStepper.js +11 -11
  89. package/dist/components/number-stepper/NumberStepper.js.map +1 -1
  90. package/dist/components/page-header/PageHeader.js +10 -10
  91. package/dist/components/page-header/PageHeader.js.map +1 -1
  92. package/dist/components/search-input/SearchInput.js +6 -6
  93. package/dist/components/search-input/SearchInput.js.map +1 -1
  94. package/dist/components/segmented-control/IconSegment.js +1 -1
  95. package/dist/components/segmented-control/IconSegment.js.map +1 -1
  96. package/dist/components/select/Select.js +6 -6
  97. package/dist/components/select/Select.js.map +1 -1
  98. package/dist/components/select/SelectNative.js +6 -6
  99. package/dist/components/select/SelectNative.js.map +1 -1
  100. package/dist/components/select/SelectOptions.js +9 -9
  101. package/dist/components/select/SelectOptions.js.map +1 -1
  102. package/dist/components/select/SelectPopover.js +14 -14
  103. package/dist/components/select/SelectPopover.js.map +1 -1
  104. package/dist/components/sidenav/Sidenav.js +6 -6
  105. package/dist/components/sidenav/Sidenav.js.map +1 -1
  106. package/dist/components/sidenav/SidenavItem.js +2 -2
  107. package/dist/components/sidenav/SidenavItem.js.map +1 -1
  108. package/dist/components/sidenav/SidenavSection.js +7 -7
  109. package/dist/components/sidenav/SidenavSection.js.map +1 -1
  110. package/dist/components/sidenav/private/SidenavResponsiveHeader.js +6 -6
  111. package/dist/components/sidenav/private/SidenavResponsiveHeader.js.map +1 -1
  112. package/dist/components/sidenav/private/withSlotChildrenAsActions.js +7 -7
  113. package/dist/components/sidenav/private/withSlotChildrenAsActions.js.map +1 -1
  114. package/dist/components/time-field/TimeField.d.ts.map +1 -1
  115. package/dist/components/time-field/TimeField.js +13 -10
  116. package/dist/components/time-field/TimeField.js.map +1 -1
  117. package/dist/packages/tapestry-render/dist/buildComponent-DzY2PDMT.js +4 -4
  118. package/dist/packages/tapestry-render/dist/buildComponent-DzY2PDMT.js.map +1 -1
  119. package/dist/reactRender.css +1463 -1460
  120. package/dist/reactRender.css.map +1 -1
  121. package/dist/reactRenderLegacy.css +1463 -1460
  122. package/dist/reactRenderLegacy.css.map +1 -1
  123. package/dist/tapestryMount.css +1463 -1460
  124. package/dist/tapestryMount.css.map +1 -1
  125. package/dist/tapestryMountLegacy.css +1463 -1460
  126. package/dist/tapestryMountLegacy.css.map +1 -1
  127. package/dist/unstable.css +3 -0
  128. package/dist/unstable.css.map +1 -1
  129. package/dist/utilities/Icon.js +2 -2
  130. package/dist/utilities/Icon.js.map +1 -1
  131. package/dist/utilities/buttonLinkShared.js +2 -2
  132. package/dist/utilities/buttonLinkShared.js.map +1 -1
  133. package/dist/utilities/locale.d.ts +4 -4
  134. package/dist/utilities/locale.js +5 -5
  135. package/dist/utilities/locale.js.map +1 -1
  136. package/dist/utilities/useDateFieldLocale.js +2 -2
  137. package/dist/utilities/useDateFieldLocale.js.map +1 -1
  138. package/docs/components/DataTable.md +158 -0
  139. package/docs/llms.txt +3 -0
  140. package/package.json +8 -6
@@ -1,8 +1,9 @@
1
1
  import type { FilterOpenRequest } from "./FilterOpenRequest";
2
2
  /**
3
3
  * Expands the filters shelf when the filter count leaves zero, a pending
4
- * filter is added, or a chip is asked to reopen, and collapses it when the
5
- * count returns to zero. Returns a toggle to control it.
4
+ * filter is added, a chip is asked to reopen, or the selected view becomes
5
+ * modified, and collapses it once it has no filters and the view isn't
6
+ * modified. Returns a toggle to control it.
6
7
  */
7
- export declare function useShelfExpanded(filterCount: number, pendingCount: number, filterOpenRequest: FilterOpenRequest | null): [boolean, () => void];
8
+ export declare function useShelfExpanded(filterCount: number, pendingCount: number, filterOpenRequest: FilterOpenRequest | null, isViewModified: boolean): [boolean, () => void];
8
9
  //# sourceMappingURL=useShelfExpanded.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"useShelfExpanded.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/useShelfExpanded.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D;;;;GAIG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,GAC1C,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC,CAwCvB"}
1
+ {"version":3,"file":"useShelfExpanded.d.ts","sourceRoot":"","sources":["../../../src/components/DataTable/useShelfExpanded.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAE5D;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,WAAW,EAAE,MAAM,EACnB,YAAY,EAAE,MAAM,EACpB,iBAAiB,EAAE,iBAAiB,GAAG,IAAI,EAC3C,cAAc,EAAE,OAAO,GACtB,CAAC,OAAO,EAAE,MAAM,IAAI,CAAC,CA2DvB"}
@@ -2,18 +2,22 @@ import { useState, useCallback } from 'react';
2
2
 
3
3
  /**
4
4
  * Expands the filters shelf when the filter count leaves zero, a pending
5
- * filter is added, or a chip is asked to reopen, and collapses it when the
6
- * count returns to zero. Returns a toggle to control it.
5
+ * filter is added, a chip is asked to reopen, or the selected view becomes
6
+ * modified, and collapses it once it has no filters and the view isn't
7
+ * modified. Returns a toggle to control it.
7
8
  */
8
- function useShelfExpanded(filterCount, pendingCount, filterOpenRequest) {
9
- const [isShelfExpanded, setIsShelfExpanded] = useState(() => filterCount > 0);
9
+ function useShelfExpanded(filterCount, pendingCount, filterOpenRequest, isViewModified) {
10
+ const [isShelfExpanded, setIsShelfExpanded] = useState(() => filterCount > 0 || isViewModified);
10
11
  const [previousCount, setPreviousCount] = useState(filterCount);
11
12
  const [previousPendingCount, setPreviousPendingCount] = useState(pendingCount);
12
13
  const [previousOpenRequest, setPreviousOpenRequest] = useState(filterOpenRequest);
14
+ const [previousIsViewModified, setPreviousIsViewModified] = useState(isViewModified);
13
15
  if (filterCount !== previousCount) {
14
16
  setPreviousCount(filterCount);
17
+ // A modified view's actions stay in the shelf, and its toggle goes with
18
+ // the last filter, so it stays open to keep them reachable.
15
19
  if (filterCount === 0) {
16
- setIsShelfExpanded(false);
20
+ setIsShelfExpanded(isViewModified);
17
21
  }
18
22
  else if (previousCount === 0) {
19
23
  setIsShelfExpanded(true);
@@ -33,6 +37,18 @@ function useShelfExpanded(filterCount, pendingCount, filterOpenRequest) {
33
37
  setIsShelfExpanded(true);
34
38
  }
35
39
  }
40
+ // The shelf holds a modified view's actions, and a column or sort change
41
+ // modifies a view without touching the filters, so a shelf the user
42
+ // collapsed opens to show them.
43
+ if (isViewModified !== previousIsViewModified) {
44
+ setPreviousIsViewModified(isViewModified);
45
+ if (isViewModified) {
46
+ setIsShelfExpanded(true);
47
+ }
48
+ else if (filterCount === 0) {
49
+ setIsShelfExpanded(false);
50
+ }
51
+ }
36
52
  const toggleShelf = useCallback(() => {
37
53
  setIsShelfExpanded((expanded) => !expanded);
38
54
  }, []);
@@ -1 +1 @@
1
- {"version":3,"file":"useShelfExpanded.js","sources":["../../../src/components/DataTable/useShelfExpanded.ts"],"sourcesContent":["import { useCallback, useState } from \"react\"\n\nimport type { FilterOpenRequest } from \"./FilterOpenRequest\"\n\n/**\n * Expands the filters shelf when the filter count leaves zero, a pending\n * filter is added, or a chip is asked to reopen, and collapses it when the\n * count returns to zero. Returns a toggle to control it.\n */\nexport function useShelfExpanded(\n filterCount: number,\n pendingCount: number,\n filterOpenRequest: FilterOpenRequest | null\n): [boolean, () => void] {\n const [isShelfExpanded, setIsShelfExpanded] = useState(() => filterCount > 0)\n const [previousCount, setPreviousCount] = useState(filterCount)\n const [previousPendingCount, setPreviousPendingCount] = useState(pendingCount)\n const [previousOpenRequest, setPreviousOpenRequest] =\n useState(filterOpenRequest)\n\n if (filterCount !== previousCount) {\n setPreviousCount(filterCount)\n\n if (filterCount === 0) {\n setIsShelfExpanded(false)\n } else if (previousCount === 0) {\n setIsShelfExpanded(true)\n }\n }\n\n if (pendingCount !== previousPendingCount) {\n setPreviousPendingCount(pendingCount)\n\n if (pendingCount > previousPendingCount) {\n setIsShelfExpanded(true)\n }\n }\n\n // A reopened chip holds focus and anchors its popover, so a shelf the user\n // collapsed has to come back before the chip can do either.\n if (filterOpenRequest !== previousOpenRequest) {\n setPreviousOpenRequest(filterOpenRequest)\n\n if (filterOpenRequest !== null) {\n setIsShelfExpanded(true)\n }\n }\n\n const toggleShelf = useCallback(() => {\n setIsShelfExpanded((expanded) => !expanded)\n }, [])\n\n return [isShelfExpanded, toggleShelf]\n}\n"],"names":[],"mappings":";;AAIA;;;;AAIG;SACa,gBAAgB,CAC9B,WAAmB,EACnB,YAAoB,EACpB,iBAA2C,EAAA;AAE3C,IAAA,MAAM,CAAC,eAAe,EAAE,kBAAkB,CAAC,GAAG,QAAQ,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC;IAC7E,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,QAAQ,CAAC,WAAW,CAAC;IAC/D,MAAM,CAAC,oBAAoB,EAAE,uBAAuB,CAAC,GAAG,QAAQ,CAAC,YAAY,CAAC;IAC9E,MAAM,CAAC,mBAAmB,EAAE,sBAAsB,CAAC,GACjD,QAAQ,CAAC,iBAAiB,CAAC;AAE7B,IAAA,IAAI,WAAW,KAAK,aAAa,EAAE;QACjC,gBAAgB,CAAC,WAAW,CAAC;AAE7B,QAAA,IAAI,WAAW,KAAK,CAAC,EAAE;YACrB,kBAAkB,CAAC,KAAK,CAAC;QAC3B;AAAO,aAAA,IAAI,aAAa,KAAK,CAAC,EAAE;YAC9B,kBAAkB,CAAC,IAAI,CAAC;QAC1B;IACF;AAEA,IAAA,IAAI,YAAY,KAAK,oBAAoB,EAAE;QACzC,uBAAuB,CAAC,YAAY,CAAC;AAErC,QAAA,IAAI,YAAY,GAAG,oBAAoB,EAAE;YACvC,kBAAkB,CAAC,IAAI,CAAC;QAC1B;IACF;;;AAIA,IAAA,IAAI,iBAAiB,KAAK,mBAAmB,EAAE;QAC7C,sBAAsB,CAAC,iBAAiB,CAAC;AAEzC,QAAA,IAAI,iBAAiB,KAAK,IAAI,EAAE;YAC9B,kBAAkB,CAAC,IAAI,CAAC;QAC1B;IACF;AAEA,IAAA,MAAM,WAAW,GAAG,WAAW,CAAC,MAAK;QACnC,kBAAkB,CAAC,CAAC,QAAQ,KAAK,CAAC,QAAQ,CAAC;IAC7C,CAAC,EAAE,EAAE,CAAC;AAEN,IAAA,OAAO,CAAC,eAAe,EAAE,WAAW,CAAC;AACvC;;;;"}
1
+ {"version":3,"file":"useShelfExpanded.js","sources":["../../../src/components/DataTable/useShelfExpanded.ts"],"sourcesContent":["import { useCallback, useState } from \"react\"\n\nimport type { FilterOpenRequest } from \"./FilterOpenRequest\"\n\n/**\n * Expands the filters shelf when the filter count leaves zero, a pending\n * filter is added, a chip is asked to reopen, or the selected view becomes\n * modified, and collapses it once it has no filters and the view isn't\n * modified. Returns a toggle to control it.\n */\nexport function useShelfExpanded(\n filterCount: number,\n pendingCount: number,\n filterOpenRequest: FilterOpenRequest | null,\n isViewModified: boolean\n): [boolean, () => void] {\n const [isShelfExpanded, setIsShelfExpanded] = useState(\n () => filterCount > 0 || isViewModified\n )\n const [previousCount, setPreviousCount] = useState(filterCount)\n const [previousPendingCount, setPreviousPendingCount] = useState(pendingCount)\n const [previousOpenRequest, setPreviousOpenRequest] =\n useState(filterOpenRequest)\n const [previousIsViewModified, setPreviousIsViewModified] =\n useState(isViewModified)\n\n if (filterCount !== previousCount) {\n setPreviousCount(filterCount)\n\n // A modified view's actions stay in the shelf, and its toggle goes with\n // the last filter, so it stays open to keep them reachable.\n if (filterCount === 0) {\n setIsShelfExpanded(isViewModified)\n } else if (previousCount === 0) {\n setIsShelfExpanded(true)\n }\n }\n\n if (pendingCount !== previousPendingCount) {\n setPreviousPendingCount(pendingCount)\n\n if (pendingCount > previousPendingCount) {\n setIsShelfExpanded(true)\n }\n }\n\n // A reopened chip holds focus and anchors its popover, so a shelf the user\n // collapsed has to come back before the chip can do either.\n if (filterOpenRequest !== previousOpenRequest) {\n setPreviousOpenRequest(filterOpenRequest)\n\n if (filterOpenRequest !== null) {\n setIsShelfExpanded(true)\n }\n }\n\n // The shelf holds a modified view's actions, and a column or sort change\n // modifies a view without touching the filters, so a shelf the user\n // collapsed opens to show them.\n if (isViewModified !== previousIsViewModified) {\n setPreviousIsViewModified(isViewModified)\n\n if (isViewModified) {\n setIsShelfExpanded(true)\n } else if (filterCount === 0) {\n setIsShelfExpanded(false)\n }\n }\n\n const toggleShelf = useCallback(() => {\n setIsShelfExpanded((expanded) => !expanded)\n }, [])\n\n return [isShelfExpanded, toggleShelf]\n}\n"],"names":[],"mappings":";;AAIA;;;;;AAKG;AACG,SAAU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AC1B;AAAO,aAAA,IAAI,WAAW,KAAK,CAAC,EAAE;YAC5B,kBAAkB,CAAC,KAAK,CAAC;QAC3B;IACF;AAEA,IAAA,MAAM,WAAW,GAAG,WAAW,CAAC,MAAK;QACnC,kBAAkB,CAAC,CAAC,QAAQ,KAAK,CAAC,QAAQ,CAAC;IAC7C,CAAC,EAAE,EAAE,CAAC;AAEN,IAAA,OAAO,CAAC,eAAe,EAAE,WAAW,CAAC;AACvC;;;;"}
@@ -43,7 +43,7 @@ function isViewEditable(view, savedViews) {
43
43
  * against the table's columns first to ignore ones that are gone.
44
44
  */
45
45
  function isViewModified(view, { activeFilters, sort, visibleColumnNames }) {
46
- if (view.sort && sort && !isSameSort(view.sort, sort))
46
+ if (view.sort && sort && view.sort !== sort)
47
47
  return true;
48
48
  if (view.visibleColumnNames &&
49
49
  visibleColumnNames &&
@@ -73,9 +73,6 @@ function isSameValue(a, b) {
73
73
  return a === b;
74
74
  return a.length === b.length && a.every((item, index) => item === b[index]);
75
75
  }
76
- function isSameSort(a, b) {
77
- return a.column === b.column && a.direction === b.direction;
78
- }
79
76
  function isSameNames(a, b) {
80
77
  return a.length === b.length && a.every((name) => b.includes(name));
81
78
  }
@@ -1 +1 @@
1
- {"version":3,"file":"views.js","sources":["../../../src/components/DataTable/views.ts"],"sourcesContent":["import type { Sort } from \"./DataTable\"\nimport type { ActiveFilter } from \"./FilterTypes\"\nimport { isSearchFilter } from \"./useSearchFilter\"\n\n/** A static or saved view. */\nexport interface View {\n /** A search (`q`) filter is ignored; applying a view keeps the search. */\n activeFilters: ActiveFilter[]\n /**\n * Required on a static view. A saved view gets one from the consumer once\n * it's saved.\n */\n id?: number | string\n name: string\n /** Omit to leave the current sort unchanged when applied. */\n sort?: Sort\n /**\n * The columns the view shows. A hideable column it doesn't name is hidden,\n * so a column added later stays out of the view until it's saved with it.\n * Omit to leave the current column visibility unchanged when applied.\n */\n visibleColumnNames?: string[]\n}\n\n/** A user-created view, stored by the consumer. */\nexport type SavedView = View\n\n/** An app-provided view. Read-only. */\nexport type StaticView = View & { id: number | string }\n\n/**\n * Always listed, so there's a view to fall back to. Added before the static\n * views unless one of them uses its id, which replaces it.\n */\nexport const initialView: StaticView = {\n activeFilters: [],\n id: \"initial\",\n name: \"All\",\n}\n\n/**\n * A view from the app, without any search. Search isn't part of a view, so\n * views enter the table without it. A view without one is returned as is.\n */\nexport function withoutSearch<T extends View>(view: T): T {\n if (!view.activeFilters.some(isSearchFilter)) return view\n return {\n ...view,\n activeFilters: view.activeFilters.filter(\n (filter) => !isSearchFilter(filter)\n ),\n }\n}\n\n/**\n * A duplicate of a view under a new name. It's a new view, so it doesn't keep\n * the original's id.\n */\nexport function viewDuplicate(\n { id: _id, ...view }: View,\n name: string\n): Omit<SavedView, \"id\"> {\n return { ...view, name }\n}\n\n/**\n * Whether a view can be renamed, deleted, or saved over. Static views can't,\n * and neither can a view that isn't saved yet, since updates are matched by id.\n */\nexport function isViewEditable(view: View, savedViews: SavedView[]) {\n return view.id !== undefined && savedViews.includes(view)\n}\n\n/**\n * Whether the table's filters, sort, or visible columns differ from a view.\n * Filters match by name, operator, scope, and value, in any order; labels are\n * display-only. Sort and visible columns count only when both the view and the\n * table have them. Column names match as given, in any order, so resolve them\n * against the table's columns first to ignore ones that are gone.\n */\nexport function isViewModified(\n view: View,\n { activeFilters, sort, visibleColumnNames }: Omit<View, \"id\" | \"name\">\n) {\n if (view.sort && sort && !isSameSort(view.sort, sort)) return true\n if (\n view.visibleColumnNames &&\n visibleColumnNames &&\n !isSameNames(view.visibleColumnNames, visibleColumnNames)\n )\n return true\n // Each saved filter matches one current filter, so repeats count.\n const unmatched = [...view.activeFilters]\n return (\n activeFilters.length !== unmatched.length ||\n !activeFilters.every((filter) => {\n const index = unmatched.findIndex((saved) => isSameFilter(saved, filter))\n if (index === -1) return false\n unmatched.splice(index, 1)\n return true\n })\n )\n}\n\nfunction isSameFilter(a: ActiveFilter, b: ActiveFilter) {\n return (\n a.name === b.name &&\n a.operator === b.operator &&\n a.scope === b.scope &&\n isSameValue(a.value, b.value)\n )\n}\n\n// Filter values are primitives or flat arrays, such as ranges. Arrays match\n// only in the same order.\nfunction isSameValue(a: unknown, b: unknown) {\n if (!Array.isArray(a) || !Array.isArray(b)) return a === b\n return a.length === b.length && a.every((item, index) => item === b[index])\n}\n\nfunction isSameSort(a: Sort, b: Sort) {\n return a.column === b.column && a.direction === b.direction\n}\n\nfunction isSameNames(a: string[], b: string[]) {\n return a.length === b.length && a.every((name) => b.includes(name))\n}\n"],"names":[],"mappings":";;AA8BA;;;AAGG;AACI,MAAM,WAAW,GAAe;AACrC,IAAA,aAAa,EAAE,EAAE;AACjB,IAAA,EAAE,EAAE,SAAS;AACb,IAAA,IAAI,EAAE,KAAK;;AAGb;;;AAGG;AACG,SAAU,aAAa,CAAiB,IAAO,EAAA;IACnD,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,cAAc,CAAC;AAAE,QAAA,OAAO,IAAI;IACzD,OAAO;AACL,QAAA,GAAG,IAAI;AACP,QAAA,aAAa,EAAE,IAAI,CAAC,aAAa,CAAC,MAAM,CACtC,CAAC,MAAM,KAAK,CAAC,cAAc,CAAC,MAAM,CAAC,CACpC;KACF;AACH;AAEA;;;AAGG;AACG,SAAU,aAAa,CAC3B,EAAE,EAAE,EAAE,GAAG,EAAE,GAAG,IAAI,EAAQ,EAC1B,IAAY,EAAA;AAEZ,IAAA,OAAO,EAAE,GAAG,IAAI,EAAE,IAAI,EAAE;AAC1B;AAEA;;;AAGG;AACG,SAAU,cAAc,CAAC,IAAU,EAAE,UAAuB,EAAA;AAChE,IAAA,OAAO,IAAI,CAAC,EAAE,KAAK,SAAS,IAAI,UAAU,CAAC,QAAQ,CAAC,IAAI,CAAC;AAC3D;AAEA;;;;;;AAMG;AACG,SAAU,cAAc,CAC5B,IAAU,EACV,EAAE,aAAa,EAAE,IAAI,EAAE,kBAAkB,EAA6B,EAAA;AAEtE,IAAA,IAAI,IAAI,CA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,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,EAAE,KAAK,KAAK,IAAI,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC;AAC7E;AAEA,SAAS,UAAU,CAAC,CAAO,EAAE,CAAO,EAAA;AAClC,IAAA,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,CAAC,SAAS;AAC7D;AAEA,SAAS,WAAW,CAAC,CAAW,EAAE,CAAW,EAAA;IAC3C,OAAO,CAAC,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,IAAI,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;AACrE;;;;"}
1
+ {"version":3,"file":"views.js","sources":["../../../src/components/DataTable/views.ts"],"sourcesContent":["import type { Sort } from \"./DataTable\"\nimport type { ActiveFilter } from \"./FilterTypes\"\nimport { isSearchFilter } from \"./useSearchFilter\"\n\n/** A static or saved view. */\nexport interface View {\n /** A search (`q`) filter is ignored; applying a view keeps the search. */\n activeFilters: ActiveFilter[]\n /**\n * Required on a static view. A saved view gets one from the consumer once\n * it's saved.\n */\n id?: number | string\n name: string\n /** Omit to leave the current sort unchanged when applied. */\n sort?: Sort\n /**\n * The columns the view shows. A hideable column it doesn't name is hidden,\n * so a column added later stays out of the view until it's saved with it.\n * Omit to leave the current column visibility unchanged when applied.\n */\n visibleColumnNames?: string[]\n}\n\n/** A user-created view, stored by the consumer. */\nexport type SavedView = View\n\n/** An app-provided view. Read-only. */\nexport type StaticView = View & { id: number | string }\n\n/**\n * Always listed, so there's a view to fall back to. Added before the static\n * views unless one of them uses its id, which replaces it.\n */\nexport const initialView: StaticView = {\n activeFilters: [],\n id: \"initial\",\n name: \"All\",\n}\n\n/**\n * A view from the app, without any search. Search isn't part of a view, so\n * views enter the table without it. A view without one is returned as is.\n */\nexport function withoutSearch<T extends View>(view: T): T {\n if (!view.activeFilters.some(isSearchFilter)) return view\n return {\n ...view,\n activeFilters: view.activeFilters.filter(\n (filter) => !isSearchFilter(filter)\n ),\n }\n}\n\n/**\n * A duplicate of a view under a new name. It's a new view, so it doesn't keep\n * the original's id.\n */\nexport function viewDuplicate(\n { id: _id, ...view }: View,\n name: string\n): Omit<SavedView, \"id\"> {\n return { ...view, name }\n}\n\n/**\n * Whether a view can be renamed, deleted, or saved over. Static views can't,\n * and neither can a view that isn't saved yet, since updates are matched by id.\n */\nexport function isViewEditable(view: View, savedViews: SavedView[]) {\n return view.id !== undefined && savedViews.includes(view)\n}\n\n/**\n * Whether the table's filters, sort, or visible columns differ from a view.\n * Filters match by name, operator, scope, and value, in any order; labels are\n * display-only. Sort and visible columns count only when both the view and the\n * table have them. Column names match as given, in any order, so resolve them\n * against the table's columns first to ignore ones that are gone.\n */\nexport function isViewModified(\n view: View,\n { activeFilters, sort, visibleColumnNames }: Omit<View, \"id\" | \"name\">\n) {\n if (view.sort && sort && view.sort !== sort) return true\n if (\n view.visibleColumnNames &&\n visibleColumnNames &&\n !isSameNames(view.visibleColumnNames, visibleColumnNames)\n )\n return true\n // Each saved filter matches one current filter, so repeats count.\n const unmatched = [...view.activeFilters]\n return (\n activeFilters.length !== unmatched.length ||\n !activeFilters.every((filter) => {\n const index = unmatched.findIndex((saved) => isSameFilter(saved, filter))\n if (index === -1) return false\n unmatched.splice(index, 1)\n return true\n })\n )\n}\n\nfunction isSameFilter(a: ActiveFilter, b: ActiveFilter) {\n return (\n a.name === b.name &&\n a.operator === b.operator &&\n a.scope === b.scope &&\n isSameValue(a.value, b.value)\n )\n}\n\n// Filter values are primitives or flat arrays, such as ranges. Arrays match\n// only in the same order.\nfunction isSameValue(a: unknown, b: unknown) {\n if (!Array.isArray(a) || !Array.isArray(b)) return a === b\n return a.length === b.length && a.every((item, index) => item === b[index])\n}\n\nfunction isSameNames(a: string[], b: string[]) {\n return a.length === b.length && a.every((name) => b.includes(name))\n}\n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
1
1
  import { DropdownTriggerContext } from '../dropdown/DropdownTriggerContext.js';
2
2
  import Icon from '../../utilities/Icon.js';
3
3
  import classNames from 'classnames';
4
- import React, { forwardRef, useContext } from 'react';
4
+ import React__default, { forwardRef, useContext } from 'react';
5
5
  import { IconButton } from './IconButton.js';
6
6
 
7
7
  /**
@@ -12,10 +12,10 @@ import { IconButton } from './IconButton.js';
12
12
  */
13
13
  const ActionsDropdownIconButton = forwardRef(({ "aria-label": ariaLabel, className, kind = "ghost", tooltip, ...restProps }, ref) => {
14
14
  const contextProps = useContext(DropdownTriggerContext);
15
- const nameProps = tooltip
15
+ const nameProps = tooltip?.trim()
16
16
  ? { "aria-label": ariaLabel, tooltip }
17
17
  : { "aria-label": ariaLabel ?? "Actions" };
18
- return (React.createElement(IconButton, { ref: ref, ...restProps, ...contextProps, ...nameProps, className: classNames(className, "tds-btn--actions-dropdown"), fullWidth: false, icon: React.createElement(Icon, { className: "actions-icon", symbol: "general#three-dots", "aria-hidden": true }), kind: kind, loading: undefined, prefix: undefined, suffix: undefined }));
18
+ return (React__default.createElement(IconButton, { ref: ref, ...restProps, ...contextProps, ...nameProps, className: classNames(className, "tds-btn--actions-dropdown"), fullWidth: false, icon: React__default.createElement(Icon, { className: "actions-icon", symbol: "general#three-dots", "aria-hidden": true }), kind: kind, loading: undefined, prefix: undefined, suffix: undefined }));
19
19
  });
20
20
  ActionsDropdownIconButton.displayName = "ActionsDropdownIconButton";
21
21
 
@@ -1 +1 @@
1
- {"version":3,"file":"ActionsDropdownIconButton.js","sources":["../../../src/components/button/ActionsDropdownIconButton.tsx"],"sourcesContent":["import { DropdownTriggerContext } from \"@components/dropdown/DropdownTriggerContext\"\nimport { type TooltipPlacement } from \"@components/internal/tooltip\"\nimport { ComponentSize } from \"@utilities/buttonLinkShared\"\nimport Icon from \"@utilities/Icon\"\nimport classNames from \"classnames\"\nimport React, { forwardRef, useContext } from \"react\"\n\nimport { IconButton, IconButtonBaseProps } from \"./IconButton\"\n\nexport type ActionsDropdownIconButtonProps = Omit<\n IconButtonBaseProps,\n \"aria-label\" | \"icon\" | \"kind\" | \"loading\" | \"size\"\n> & {\n /**\n * Accessible name. Defaults to `\"Actions\"` when `tooltip` is not set.\n * Override when a page has several actions menus that need\n * distinguishing (e.g. `\"Actions for Jane Doe\"`).\n */\n \"aria-label\"?: string\n /**\n * Not supported — an actions trigger is a fixed-size icon button and\n * shouldn't stretch to fill a container. Always rendered as `false`.\n */\n fullWidth?: never\n /** Not supported — the vertical ellipsis is the component's identity. */\n icon?: never\n /**\n * Only `\"ghost\"` and `\"neutral\"` are supported treatments for an actions\n * trigger. Defaults to `\"ghost\"`.\n */\n kind?: \"ghost\" | \"neutral\"\n /**\n * Not supported — `.tds-btn--loading` hides every non-spinner child, so a\n * loading actions button would render a bare spinner with no glyph.\n */\n loading?: never\n /**\n * Not supported — same reasoning as `suffix`: total control over the\n * button's contents, and no slot besides the fixed ellipsis icon.\n */\n prefix?: never\n /**\n * `xs` is excluded — at 20px effective height it falls below the WCAG 2.2\n * AA 24×24 minimum target size, and an icon-only button has no text\n * content to widen it past the minimum.\n */\n size?: Exclude<ComponentSize, \"xs\">\n /** Not supported — no caret, and nothing else in the suffix slot. */\n suffix?: never\n /** Text shown on hover and focus. Without `aria-label`, it is also used as the `aria-label`. With `aria-label`, start the `aria-label` with the same text (e.g. tooltip `\"Delete\"`, aria-label `\"Delete, 3 selected\"`). The tooltip itself is hidden from screen readers. Ignores `aria-labelledby`. Never opens on hover while `disabled`, and opens on keyboard focus only with `focusableWhenDisabled`, so don't rely on it to explain why the button is disabled. */\n tooltip?: string\n /** Where the tooltip renders relative to the button. Default `\"bottom\"`. Has no effect without `tooltip`. */\n tooltipPlacement?: TooltipPlacement\n}\n\n/**\n * An icon-only dropdown trigger with a vertical-ellipsis glyph and no\n * caret, for action menus where a caret is visually redundant.\n *\n * @component\n */\nexport const ActionsDropdownIconButton = forwardRef<\n HTMLButtonElement,\n ActionsDropdownIconButtonProps\n>(\n (\n {\n \"aria-label\": ariaLabel,\n className,\n kind = \"ghost\",\n tooltip,\n ...restProps\n }: ActionsDropdownIconButtonProps,\n ref\n ) => {\n const contextProps = useContext(DropdownTriggerContext)\n const nameProps = tooltip\n ? { \"aria-label\": ariaLabel, tooltip }\n : { \"aria-label\": ariaLabel ?? \"Actions\" }\n return (\n <IconButton\n ref={ref}\n {...restProps}\n {...contextProps}\n {...nameProps}\n className={classNames(className, \"tds-btn--actions-dropdown\")}\n fullWidth={false}\n icon={\n <Icon\n className=\"actions-icon\"\n symbol=\"general#three-dots\"\n aria-hidden\n />\n }\n kind={kind}\n loading={undefined}\n prefix={undefined}\n suffix={undefined}\n />\n )\n }\n)\n\nActionsDropdownIconButton.displayName = \"ActionsDropdownIconButton\"\n"],"names":[],"mappings":";;;;;;AAuDA;;;;;AAKG;AACI,MAAM,yBAAyB,GAAG,UAAU,CAIjD,CACE,EACE,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,IAAI,GAAG,OAAO,EACd,OAAO,EACP,GAAG,SAAS,EACmB,EACjC,GAAG,KACD;AACF,IAAA,MAAM,YAAY,GAAG,UAAU,CAAC,sBAAsB,CAAC;IACvD,MAAM,SAAS,GAAG;AAChB,UAAE,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO;UAClC,EAAE,YAAY,EAAE,SAAS,IAAI,SAAS,EAAE;IAC5C,QACE,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EACT,GAAG,EAAE,GAAG,EAAA,GACJ,SAAS,EAAA,GACT,YAAY,EAAA,GACZ,SAAS,EACb,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,2BAA2B,CAAC,EAC7D,SAAS,EAAE,KAAK,EAChB,IAAI,EACF,oBAAC,IAAI,EAAA,EACH,SAAS,EAAC,cAAc,EACxB,MAAM,EAAC,oBAAoB,EAAA,aAAA,EAAA,IAAA,EAAA,CAE3B,EAEJ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,EAAA,CACjB;AAEN,CAAC;AAGH,yBAAyB,CAAC,WAAW,GAAG,2BAA2B;;;;"}
1
+ {"version":3,"file":"ActionsDropdownIconButton.js","sources":["../../../src/components/button/ActionsDropdownIconButton.tsx"],"sourcesContent":["import { DropdownTriggerContext } from \"@components/dropdown/DropdownTriggerContext\"\nimport { type TooltipPlacement } from \"@components/internal/tooltip\"\nimport { ComponentSize } from \"@utilities/buttonLinkShared\"\nimport Icon from \"@utilities/Icon\"\nimport classNames from \"classnames\"\nimport React, { forwardRef, useContext } from \"react\"\n\nimport { IconButton, IconButtonBaseProps } from \"./IconButton\"\n\nexport type ActionsDropdownIconButtonProps = Omit<\n IconButtonBaseProps,\n \"aria-label\" | \"icon\" | \"kind\" | \"loading\" | \"size\"\n> & {\n /**\n * Accessible name. Defaults to `\"Actions\"` when `tooltip` is not set.\n * Override when a page has several actions menus that need\n * distinguishing (e.g. `\"Actions for Jane Doe\"`).\n */\n \"aria-label\"?: string\n /**\n * Not supported — an actions trigger is a fixed-size icon button and\n * shouldn't stretch to fill a container. Always rendered as `false`.\n */\n fullWidth?: never\n /** Not supported — the vertical ellipsis is the component's identity. */\n icon?: never\n /**\n * Only `\"ghost\"` and `\"neutral\"` are supported treatments for an actions\n * trigger. Defaults to `\"ghost\"`.\n */\n kind?: \"ghost\" | \"neutral\"\n /**\n * Not supported — `.tds-btn--loading` hides every non-spinner child, so a\n * loading actions button would render a bare spinner with no glyph.\n */\n loading?: never\n /**\n * Not supported — same reasoning as `suffix`: total control over the\n * button's contents, and no slot besides the fixed ellipsis icon.\n */\n prefix?: never\n /**\n * `xs` is excluded — at 20px effective height it falls below the WCAG 2.2\n * AA 24×24 minimum target size, and an icon-only button has no text\n * content to widen it past the minimum.\n */\n size?: Exclude<ComponentSize, \"xs\">\n /** Not supported — no caret, and nothing else in the suffix slot. */\n suffix?: never\n /** Text shown on hover and focus. Without `aria-label`, it is also used as the `aria-label`. With `aria-label`, start the `aria-label` with the same text (e.g. tooltip `\"Delete\"`, aria-label `\"Delete, 3 selected\"`). The tooltip itself is hidden from screen readers. Ignores `aria-labelledby`. Never opens on hover while `disabled`, and opens on keyboard focus only with `focusableWhenDisabled`, so don't rely on it to explain why the button is disabled. */\n tooltip?: string\n /** Where the tooltip renders relative to the button. Default `\"bottom\"`. Has no effect without `tooltip`. */\n tooltipPlacement?: TooltipPlacement\n}\n\n/**\n * An icon-only dropdown trigger with a vertical-ellipsis glyph and no\n * caret, for action menus where a caret is visually redundant.\n *\n * @component\n */\nexport const ActionsDropdownIconButton = forwardRef<\n HTMLButtonElement,\n ActionsDropdownIconButtonProps\n>(\n (\n {\n \"aria-label\": ariaLabel,\n className,\n kind = \"ghost\",\n tooltip,\n ...restProps\n }: ActionsDropdownIconButtonProps,\n ref\n ) => {\n const contextProps = useContext(DropdownTriggerContext)\n const nameProps = tooltip?.trim()\n ? { \"aria-label\": ariaLabel, tooltip }\n : { \"aria-label\": ariaLabel ?? \"Actions\" }\n return (\n <IconButton\n ref={ref}\n {...restProps}\n {...contextProps}\n {...nameProps}\n className={classNames(className, \"tds-btn--actions-dropdown\")}\n fullWidth={false}\n icon={\n <Icon\n className=\"actions-icon\"\n symbol=\"general#three-dots\"\n aria-hidden\n />\n }\n kind={kind}\n loading={undefined}\n prefix={undefined}\n suffix={undefined}\n />\n )\n }\n)\n\nActionsDropdownIconButton.displayName = \"ActionsDropdownIconButton\"\n"],"names":["React"],"mappings":";;;;;;AAuDA;;;;;AAKG;AACI,MAAM,yBAAyB,GAAG,UAAU,CAIjD,CACE,EACE,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,IAAI,GAAG,OAAO,EACd,OAAO,EACP,GAAG,SAAS,EACmB,EACjC,GAAG,KACD;AACF,IAAA,MAAM,YAAY,GAAG,UAAU,CAAC,sBAAsB,CAAC;AACvD,IAAA,MAAM,SAAS,GAAG,OAAO,EAAE,IAAI;AAC7B,UAAE,EAAE,YAAY,EAAE,SAAS,EAAE,OAAO;UAClC,EAAE,YAAY,EAAE,SAAS,IAAI,SAAS,EAAE;IAC5C,QACEA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EACT,GAAG,EAAE,GAAG,EAAA,GACJ,SAAS,EAAA,GACT,YAAY,EAAA,GACZ,SAAS,EACb,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,2BAA2B,CAAC,EAC7D,SAAS,EAAE,KAAK,EAChB,IAAI,EACFA,6BAAC,IAAI,EAAA,EACH,SAAS,EAAC,cAAc,EACxB,MAAM,EAAC,oBAAoB,EAAA,aAAA,EAAA,IAAA,EAAA,CAE3B,EAEJ,IAAI,EAAE,IAAI,EACV,OAAO,EAAE,SAAS,EAClB,MAAM,EAAE,SAAS,EACjB,MAAM,EAAE,SAAS,EAAA,CACjB;AAEN,CAAC;AAGH,yBAAyB,CAAC,WAAW,GAAG,2BAA2B;;;;"}
@@ -4,17 +4,17 @@ import '../internal/tooltip/Tooltip.js';
4
4
  import { useTooltipTriggerProps } from '../internal/tooltip/useTooltipTriggerProps.js';
5
5
  import { COMPONENT_SIZE_CLASS_MAP, COMPONENT_KIND_CLASS_MAP, wrapStringWithSpan } from '../../utilities/buttonLinkShared.js';
6
6
  import classNames from 'classnames';
7
- import React, { forwardRef } from 'react';
7
+ import React__default, { forwardRef } from 'react';
8
8
 
9
9
  const BaseButton = forwardRef(({ "aria-describedby": ariaDescribedBy, "aria-label": ariaLabel, className, disabled = false, focusableWhenDisabled = false, fullWidth, kind = "secondary", label, loading = false, loadingAriaLabel = "Loading...", prefix, size, suffix, ...restProps }, ref) => {
10
10
  const { describedBy, mergedProps, mergedRef } = useTooltipTriggerProps(restProps, ref, ariaDescribedBy);
11
11
  const isDisabled = disabled || loading;
12
12
  const isFocusableDisabled = isDisabled && focusableWhenDisabled;
13
13
  const combinedClassName = classNames(kind && "tds-btn", size && size !== "md" && COMPONENT_SIZE_CLASS_MAP[size], kind && COMPONENT_KIND_CLASS_MAP[kind], fullWidth && "tds-btn--full-width", loading && "tds-btn--loading", isFocusableDisabled && "disabled", className, { "tds-btn--prefix": prefix, "tds-btn--suffix": suffix });
14
- return (React.createElement("button", { type: "button", className: combinedClassName, ref: mergedRef, ...mergedProps, "aria-busy": loading || undefined, "aria-describedby": describedBy, "aria-disabled": isDisabled || undefined, disabled: isDisabled && !focusableWhenDisabled, onClick: isFocusableDisabled ? undefined : mergedProps.onClick, "aria-label": loading ? loadingAriaLabel : ariaLabel },
15
- loading && React.createElement(LoadingSpinner, null),
14
+ return (React__default.createElement("button", { type: "button", className: combinedClassName, ref: mergedRef, ...mergedProps, "aria-busy": loading || undefined, "aria-describedby": describedBy, "aria-disabled": isDisabled || undefined, disabled: isDisabled && !focusableWhenDisabled, onClick: isFocusableDisabled ? undefined : mergedProps.onClick, "aria-label": loading ? loadingAriaLabel : ariaLabel },
15
+ loading && React__default.createElement(LoadingSpinner, null),
16
16
  wrapStringWithSpan(prefix),
17
- loading ? React.createElement("span", null, label) : label,
17
+ loading ? React__default.createElement("span", null, label) : label,
18
18
  wrapStringWithSpan(suffix)));
19
19
  });
20
20
  BaseButton.displayName = "BaseButton";
@@ -1 +1 @@
1
- {"version":3,"file":"BaseButton.js","sources":["../../../src/components/button/BaseButton.tsx"],"sourcesContent":["import \"./btn.css\"\n\nimport { LoadingSpinner } from \"@components/internal\"\nimport { useTooltipTriggerProps } from \"@components/internal/tooltip/useTooltipTriggerProps\"\nimport {\n BaseComponentProps,\n COMPONENT_KIND_CLASS_MAP,\n COMPONENT_SIZE_CLASS_MAP,\n ComponentKind,\n wrapStringWithSpan,\n} from \"@utilities/buttonLinkShared\"\nimport classNames from \"classnames\"\nimport React, { ButtonHTMLAttributes, forwardRef } from \"react\"\n\nexport interface BaseButtonProps extends Omit<BaseComponentProps, \"kind\"> {\n /** Keeps a disabled button focusable, using `aria-disabled` without the native `disabled` attribute. Use when focus would otherwise be lost, such as a button that disables itself while focused. */\n focusableWhenDisabled?: boolean\n /** The visual style of the button. */\n kind?: ComponentKind\n /** The text content of the button. */\n label: React.ReactNode\n /** Whether the button is in a loading state. When true, the button is disabled and shows a loading spinner. */\n loading?: boolean\n /** Accessible label to use when the button is in loading state. */\n loadingAriaLabel?: string\n}\n\nexport type BaseButtonElementProps = Omit<\n ButtonHTMLAttributes<HTMLButtonElement>,\n keyof BaseButtonProps | \"children\"\n> &\n BaseButtonProps\n\nexport const BaseButton = forwardRef<HTMLButtonElement, BaseButtonElementProps>(\n (\n {\n \"aria-describedby\": ariaDescribedBy,\n \"aria-label\": ariaLabel,\n className,\n disabled = false,\n focusableWhenDisabled = false,\n fullWidth,\n kind = \"secondary\",\n label,\n loading = false,\n loadingAriaLabel = \"Loading...\",\n prefix,\n size,\n suffix,\n ...restProps\n }: BaseButtonElementProps,\n ref\n ) => {\n const { describedBy, mergedProps, mergedRef } = useTooltipTriggerProps(\n restProps,\n ref,\n ariaDescribedBy\n )\n\n const isDisabled = disabled || loading\n const isFocusableDisabled = isDisabled && focusableWhenDisabled\n\n const combinedClassName = classNames(\n kind && \"tds-btn\",\n size && size !== \"md\" && COMPONENT_SIZE_CLASS_MAP[size],\n kind && COMPONENT_KIND_CLASS_MAP[kind],\n fullWidth && \"tds-btn--full-width\",\n loading && \"tds-btn--loading\",\n isFocusableDisabled && \"disabled\",\n className,\n { \"tds-btn--prefix\": prefix, \"tds-btn--suffix\": suffix }\n )\n\n return (\n <button\n type=\"button\"\n className={combinedClassName}\n ref={mergedRef}\n {...mergedProps}\n aria-busy={loading || undefined}\n aria-describedby={describedBy}\n aria-disabled={isDisabled || undefined}\n disabled={isDisabled && !focusableWhenDisabled}\n onClick={isFocusableDisabled ? undefined : mergedProps.onClick}\n aria-label={loading ? loadingAriaLabel : ariaLabel}\n >\n {loading && <LoadingSpinner />}\n {wrapStringWithSpan(prefix)}\n {loading ? <span>{label}</span> : label}\n {wrapStringWithSpan(suffix)}\n </button>\n )\n }\n)\n\nBaseButton.displayName = \"BaseButton\"\n"],"names":[],"mappings":";;;;;;;;AAiCO,MA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G,gBAAgB,GAAG,SAAS,EAAA;QAEjD,OAAO,IAAI,KAAA,CAAA,aAAA,CAAC,cAAc,EAAA,IAAA,CAAG;QAC7B,kBAAkB,CAAC,MAAM,CAAC;QAC1B,OAAO,GAAG,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,IAAA,EAAO,KAAK,CAAQ,GAAG,KAAK;AACtC,QAAA,kBAAkB,CAAC,MAAM,CAAC,CACpB;AAEb,CAAC;AAGH,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}
1
+ {"version":3,"file":"BaseButton.js","sources":["../../../src/components/button/BaseButton.tsx"],"sourcesContent":["import \"./btn.css\"\n\nimport { LoadingSpinner } from \"@components/internal\"\nimport { useTooltipTriggerProps } from \"@components/internal/tooltip/useTooltipTriggerProps\"\nimport {\n BaseComponentProps,\n COMPONENT_KIND_CLASS_MAP,\n COMPONENT_SIZE_CLASS_MAP,\n ComponentKind,\n wrapStringWithSpan,\n} from \"@utilities/buttonLinkShared\"\nimport classNames from \"classnames\"\nimport React, { ButtonHTMLAttributes, forwardRef } from \"react\"\n\nexport interface BaseButtonProps extends Omit<BaseComponentProps, \"kind\"> {\n /** Keeps a disabled button focusable, using `aria-disabled` without the native `disabled` attribute. Use when focus would otherwise be lost, such as a button that disables itself while focused. */\n focusableWhenDisabled?: boolean\n /** The visual style of the button. */\n kind?: ComponentKind\n /** The text content of the button. */\n label: React.ReactNode\n /** Whether the button is in a loading state. When true, the button is disabled and shows a loading spinner. */\n loading?: boolean\n /** Accessible label to use when the button is in loading state. */\n loadingAriaLabel?: string\n}\n\nexport type BaseButtonElementProps = Omit<\n ButtonHTMLAttributes<HTMLButtonElement>,\n keyof BaseButtonProps | \"children\"\n> &\n BaseButtonProps\n\nexport const BaseButton = forwardRef<HTMLButtonElement, BaseButtonElementProps>(\n (\n {\n \"aria-describedby\": ariaDescribedBy,\n \"aria-label\": ariaLabel,\n className,\n disabled = false,\n focusableWhenDisabled = false,\n fullWidth,\n kind = \"secondary\",\n label,\n loading = false,\n loadingAriaLabel = \"Loading...\",\n prefix,\n size,\n suffix,\n ...restProps\n }: BaseButtonElementProps,\n ref\n ) => {\n const { describedBy, mergedProps, mergedRef } = useTooltipTriggerProps(\n restProps,\n ref,\n ariaDescribedBy\n )\n\n const isDisabled = disabled || loading\n const isFocusableDisabled = isDisabled && focusableWhenDisabled\n\n const combinedClassName = classNames(\n kind && \"tds-btn\",\n size && size !== \"md\" && COMPONENT_SIZE_CLASS_MAP[size],\n kind && COMPONENT_KIND_CLASS_MAP[kind],\n fullWidth && \"tds-btn--full-width\",\n loading && \"tds-btn--loading\",\n isFocusableDisabled && \"disabled\",\n className,\n { \"tds-btn--prefix\": prefix, \"tds-btn--suffix\": suffix }\n )\n\n return (\n <button\n type=\"button\"\n className={combinedClassName}\n ref={mergedRef}\n {...mergedProps}\n aria-busy={loading || undefined}\n aria-describedby={describedBy}\n aria-disabled={isDisabled || undefined}\n disabled={isDisabled && !focusableWhenDisabled}\n onClick={isFocusableDisabled ? undefined : mergedProps.onClick}\n aria-label={loading ? loadingAriaLabel : ariaLabel}\n >\n {loading && <LoadingSpinner />}\n {wrapStringWithSpan(prefix)}\n {loading ? <span>{label}</span> : label}\n {wrapStringWithSpan(suffix)}\n </button>\n )\n }\n)\n\nBaseButton.displayName = \"BaseButton\"\n"],"names":["React"],"mappings":";;;;;;;;AAiCO,MAAM,UAAU,GAAG,UAAU,CAClC,CACE,EACE,kBAAkB,EAAE,eAAe,EACnC,YAAY,EAAE,SAAS,EACvB,SAAS,EACT,QAAQ,GAAG,KAAK,EAChB,qBAAqB,GAAG,KAAK,EAC7B,SAAS,EACT,IAAI,GAAG,WAAW,EAClB,KAAK,EACL,OAAO,GAAG,KAAK,EACf,gBAAgB,GAAG,YAAY,EAC/B,MAAM,EACN,IAAI,EACJ,MAAM,EACN,GAAG,SAAS,EACW,EACzB,GAAG,KACD;AACF,IAAA,MAAM,EAAE,WAAW,EAAE,WAAW,EAAE,SAAS,EAAE,GAAG,sBAA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ef } from 'react';
2
2
  import { BaseButton } from './BaseButton.js';
3
3
 
4
4
  /**
@@ -10,7 +10,7 @@ import { BaseButton } from './BaseButton.js';
10
10
  * @see {@link https://github.com/planningcenter/tapestry/tree/main/packages/tapestry-migration-cli | Migration CLI: Available}
11
11
  */
12
12
  const Button = forwardRef((props, ref) => {
13
- return React.createElement(BaseButton, { ...props, ref: ref });
13
+ return React__default.createElement(BaseButton, { ...props, ref: ref });
14
14
  });
15
15
  Button.displayName = "Button";
16
16
 
@@ -1 +1 @@
1
- {"version":3,"file":"Button.js","sources":["../../../src/components/button/Button.tsx"],"sourcesContent":["import \"./btn.css\"\n\nimport React, { forwardRef } from \"react\"\n\nimport { BaseButton, BaseButtonElementProps } from \"./BaseButton\"\n\nexport type ButtonElementProps = Omit<BaseButtonElementProps, \"label\"> & {\n /**\n * Label content for the button. When using non-string content (e.g. JSX),\n * it must not contain interactive elements — `label` renders inside a\n * `<button>`, and nested interactive elements are invalid there.\n */\n label: React.ReactNode\n}\n\n/**\n * A button component that renders as a button element.\n * Supports various sizes, styles, and content types.\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/buttons-button--docs | Storybook Documentation}\n * @see {@link https://github.com/planningcenter/tapestry/tree/main/packages/tapestry-migration-cli | Migration CLI: Available}\n */\nexport const Button = forwardRef<HTMLButtonElement, ButtonElementProps>(\n (props, ref) => {\n return <BaseButton {...props} ref={ref} />\n }\n)\n\nButton.displayName = \"Button\"\n"],"names":[],"mappings":";;;AAeA;;;;;;;AAOG;AACI,MAAM,MAAM,GAAG,UAAU,CAC9B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,OAAO,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAA,GAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAA,CAAI;AAC5C,CAAC;AAGH,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}
1
+ {"version":3,"file":"Button.js","sources":["../../../src/components/button/Button.tsx"],"sourcesContent":["import \"./btn.css\"\n\nimport React, { forwardRef } from \"react\"\n\nimport { BaseButton, BaseButtonElementProps } from \"./BaseButton\"\n\nexport type ButtonElementProps = Omit<BaseButtonElementProps, \"label\"> & {\n /**\n * Label content for the button. When using non-string content (e.g. JSX),\n * it must not contain interactive elements — `label` renders inside a\n * `<button>`, and nested interactive elements are invalid there.\n */\n label: React.ReactNode\n}\n\n/**\n * A button component that renders as a button element.\n * Supports various sizes, styles, and content types.\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/buttons-button--docs | Storybook Documentation}\n * @see {@link https://github.com/planningcenter/tapestry/tree/main/packages/tapestry-migration-cli | Migration CLI: Available}\n */\nexport const Button = forwardRef<HTMLButtonElement, ButtonElementProps>(\n (props, ref) => {\n return <BaseButton {...props} ref={ref} />\n }\n)\n\nButton.displayName = \"Button\"\n"],"names":["React"],"mappings":";;;AAeA;;;;;;;AAOG;AACI,MAAM,MAAM,GAAG,UAAU,CAC9B,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,OAAOA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAA,GAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAA,CAAI;AAC5C,CAAC;AAGH,MAAM,CAAC,WAAW,GAAG,QAAQ;;;;"}
@@ -1,13 +1,13 @@
1
1
  import { DropdownTriggerContext } from '../dropdown/DropdownTriggerContext.js';
2
2
  import Icon from '../../utilities/Icon.js';
3
3
  import classNames from 'classnames';
4
- import React, { forwardRef, useContext } from 'react';
4
+ import React__default, { forwardRef, useContext } from 'react';
5
5
  import { BaseButton } from './BaseButton.js';
6
6
 
7
7
  function dropdownProps({ className }) {
8
8
  return {
9
9
  className: classNames(className, "tds-btn--dropdown"),
10
- suffix: React.createElement(Icon, { className: "suffix", symbol: "general#down-caret", "aria-hidden": true }),
10
+ suffix: React__default.createElement(Icon, { className: "suffix", symbol: "general#down-caret", "aria-hidden": true }),
11
11
  };
12
12
  }
13
13
  /**
@@ -20,7 +20,7 @@ function dropdownProps({ className }) {
20
20
  */
21
21
  const DropdownButton = forwardRef((props, ref) => {
22
22
  const contextProps = useContext(DropdownTriggerContext);
23
- return (React.createElement(BaseButton, { ref: ref, ...props, ...contextProps, ...dropdownProps(props) }));
23
+ return (React__default.createElement(BaseButton, { ref: ref, ...props, ...contextProps, ...dropdownProps(props) }));
24
24
  });
25
25
  DropdownButton.displayName = "DropdownButton";
26
26
 
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownButton.js","sources":["../../../src/components/button/DropdownButton.tsx"],"sourcesContent":["import \"./btn.css\"\n\nimport { DropdownTriggerContext } from \"@components/dropdown/DropdownTriggerContext\"\nimport Icon from \"@utilities/Icon\"\nimport classNames from \"classnames\"\nimport React, { forwardRef, useContext } from \"react\"\n\nimport { BaseButton, BaseButtonElementProps } from \"./BaseButton\"\n\nexport type DropdownButtonProps = {\n /**\n * ID of the element controlled by this dropdown button. Optional when wrapped\n * in `<DropdownTrigger>` (RA's `<Pressable>` injects it from\n * `PressResponderContext`); required when used standalone to drive a custom popover.\n */\n \"aria-controls\"?: string\n /**\n * Whether the dropdown is expanded or not. Optional when wrapped in\n * `<DropdownTrigger>`; required when used standalone.\n */\n \"aria-expanded\"?: boolean\n suffix?: never\n}\n\nexport function dropdownProps({ className }: { className?: string }) {\n return {\n className: classNames(className, \"tds-btn--dropdown\"),\n suffix: <Icon className=\"suffix\" symbol=\"general#down-caret\" aria-hidden />,\n }\n}\n\n/**\n * A button that toggles a dropdown menu or popover. Appends a caret suffix\n * and wires up `aria-controls` and `aria-expanded` to the controlled element.\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/buttons-dropdown-button--docs | Storybook Documentation}\n * @see {@link https://github.com/planningcenter/tapestry/tree/main/packages/tapestry-migration-cli | Migration CLI: Available}\n */\nexport const DropdownButton = forwardRef<\n HTMLButtonElement,\n BaseButtonElementProps & DropdownButtonProps\n>((props, ref) => {\n const contextProps = useContext(DropdownTriggerContext)\n return (\n <BaseButton\n ref={ref}\n {...props}\n {...contextProps}\n {...dropdownProps(props)}\n />\n )\n})\n\nDropdownButton.displayName = \"DropdownButton\"\n"],"names":[],"mappings":";;;;;;AAwBM,SAAU,aAAa,CAAC,EAAE,SAAS,EAA0B,EAAA;IACjE,OAAO;AACL,QAAA,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,mBAAmB,CAAC;QACrD,MAAM,EAAE,KAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAC,SAAS,EAAC,QAAQ,EAAC,MAAM,EAAC,oBAAoB,EAAA,aAAA,EAAA,IAAA,EAAA,CAAe;KAC5E;AACH;AAEA;;;;;;;AAOG;AACI,MAAM,cAAc,GAAG,UAAU,CAGtC,CAAC,KAAK,EAAE,GAAG,KAAI;AACf,IAAA,MAAM,YAAY,GAAG,UAAU,CAAC,sBAAsB,CAAC;AACvD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,UAAU,IACT,GAAG,EAAE,GAAG,EAAA,GACJ,KAAK,EAAA,GACL,YAAY,KACZ,aAAa,CAAC,KAAK,CAAC,EAAA,CACxB;AAEN,CAAC;AAED,cAAc,CAAC,WAAW,GAAG,gBAAgB;;;;"}
1
+ {"version":3,"file":"DropdownButton.js","sources":["../../../src/components/button/DropdownButton.tsx"],"sourcesContent":["import \"./btn.css\"\n\nimport { DropdownTriggerContext } from \"@components/dropdown/DropdownTriggerContext\"\nimport Icon from \"@utilities/Icon\"\nimport classNames from \"classnames\"\nimport React, { forwardRef, useContext } from \"react\"\n\nimport { BaseButton, BaseButtonElementProps } from \"./BaseButton\"\n\nexport type DropdownButtonProps = {\n /**\n * ID of the element controlled by this dropdown button. Optional when wrapped\n * in `<DropdownTrigger>` (RA's `<Pressable>` injects it from\n * `PressResponderContext`); required when used standalone to drive a custom popover.\n */\n \"aria-controls\"?: string\n /**\n * Whether the dropdown is expanded or not. Optional when wrapped in\n * `<DropdownTrigger>`; required when used standalone.\n */\n \"aria-expanded\"?: boolean\n suffix?: never\n}\n\nexport function dropdownProps({ className }: { className?: string }) {\n return {\n className: classNames(className, \"tds-btn--dropdown\"),\n suffix: <Icon className=\"suffix\" symbol=\"general#down-caret\" aria-hidden />,\n }\n}\n\n/**\n * A button that toggles a dropdown menu or popover. Appends a caret suffix\n * and wires up `aria-controls` and `aria-expanded` to the controlled element.\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/buttons-dropdown-button--docs | Storybook Documentation}\n * @see {@link https://github.com/planningcenter/tapestry/tree/main/packages/tapestry-migration-cli | Migration CLI: Available}\n */\nexport const DropdownButton = forwardRef<\n HTMLButtonElement,\n BaseButtonElementProps & DropdownButtonProps\n>((props, ref) => {\n const contextProps = useContext(DropdownTriggerContext)\n return (\n <BaseButton\n ref={ref}\n {...props}\n {...contextProps}\n {...dropdownProps(props)}\n />\n )\n})\n\nDropdownButton.displayName = \"DropdownButton\"\n"],"names":["React"],"mappings":";;;;;;AAwBM,SAAU,aAAa,CAAC,EAAE,SAAS,EAA0B,EAAA;IACjE,OAAO;AACL,QAAA,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,mBAAmB,CAAC;QACrD,MAAM,EAAEA,cAAA,CAAA,aAAA,CAAC,IAAI,EAAA,EAAC,SAAS,EAAC,QAAQ,EAAC,MAAM,EAAC,oBAAoB,EAAA,aAAA,EAAA,IAAA,EAAA,CAAe;KAC5E;AACH;AAEA;;;;;;;AAOG;AACI,MAAM,cAAc,GAAG,UAAU,CAGtC,CAAC,KAAK,EAAE,GAAG,KAAI;AACf,IAAA,MAAM,YAAY,GAAG,UAAU,CAAC,sBAAsB,CAAC;AACvD,IAAA,QACEA,cAAA,CAAA,aAAA,CAAC,UAAU,IACT,GAAG,EAAE,GAAG,EAAA,GACJ,KAAK,EAAA,GACL,YAAY,KACZ,aAAa,CAAC,KAAK,CAAC,EAAA,CACxB;AAEN,CAAC;AAED,cAAc,CAAC,WAAW,GAAG,gBAAgB;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { DropdownTriggerContext } from '../dropdown/DropdownTriggerContext.js';
2
- import React, { forwardRef, useContext } from 'react';
2
+ import React__default, { forwardRef, useContext } from 'react';
3
3
  import { dropdownProps } from './DropdownButton.js';
4
4
  import { IconButton } from './IconButton.js';
5
5
 
@@ -15,7 +15,7 @@ import { IconButton } from './IconButton.js';
15
15
  */
16
16
  const DropdownIconButton = forwardRef((props, ref) => {
17
17
  const contextProps = useContext(DropdownTriggerContext);
18
- return (React.createElement(IconButton, { ref: ref, ...props, ...contextProps, ...dropdownProps(props) }));
18
+ return (React__default.createElement(IconButton, { ref: ref, ...props, ...contextProps, ...dropdownProps(props) }));
19
19
  });
20
20
  DropdownIconButton.displayName = "DropdownIconButton";
21
21
 
@@ -1 +1 @@
1
- {"version":3,"file":"DropdownIconButton.js","sources":["../../../src/components/button/DropdownIconButton.tsx"],"sourcesContent":["import { DropdownTriggerContext } from \"@components/dropdown/DropdownTriggerContext\"\nimport React, { forwardRef, useContext } from \"react\"\n\nimport { DropdownButtonProps, dropdownProps } from \"./DropdownButton\"\nimport { IconButton, IconButtonProps } from \"./IconButton\"\n\n/**\n * An icon-only button that toggles a dropdown menu or popover. Appends a\n * caret suffix to the icon and wires up `aria-controls` and `aria-expanded`\n * to the controlled element. Requires an `aria-label` or `tooltip` for\n * accessibility.\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/buttons-dropdown-icon-button--docs | Storybook Documentation}\n * @see {@link https://github.com/planningcenter/tapestry/tree/main/packages/tapestry-migration-cli | Migration CLI: Available}\n */\nexport const DropdownIconButton = forwardRef<\n HTMLButtonElement,\n IconButtonProps & DropdownButtonProps\n>((props, ref) => {\n const contextProps = useContext(DropdownTriggerContext)\n return (\n <IconButton\n ref={ref}\n {...props}\n {...contextProps}\n {...dropdownProps(props)}\n />\n )\n})\n\nDropdownIconButton.displayName = \"DropdownIconButton\"\n"],"names":[],"mappings":";;;;;AAMA;;;;;;;;;AASG;AACI,MAAM,kBAAkB,GAAG,UAAU,CAG1C,CAAC,KAAK,EAAE,GAAG,KAAI;AACf,IAAA,MAAM,YAAY,GAAG,UAAU,CAAC,sBAAsB,CAAC;AACvD,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,UAAU,IACT,GAAG,EAAE,GAAG,EAAA,GACJ,KAAK,EAAA,GACL,YAAY,KACZ,aAAa,CAAC,KAAK,CAAC,EAAA,CACxB;AAEN,CAAC;AAED,kBAAkB,CAAC,WAAW,GAAG,oBAAoB;;;;"}
1
+ {"version":3,"file":"DropdownIconButton.js","sources":["../../../src/components/button/DropdownIconButton.tsx"],"sourcesContent":["import { DropdownTriggerContext } from \"@components/dropdown/DropdownTriggerContext\"\nimport React, { forwardRef, useContext } from \"react\"\n\nimport { DropdownButtonProps, dropdownProps } from \"./DropdownButton\"\nimport { IconButton, IconButtonProps } from \"./IconButton\"\n\n/**\n * An icon-only button that toggles a dropdown menu or popover. Appends a\n * caret suffix to the icon and wires up `aria-controls` and `aria-expanded`\n * to the controlled element. Requires an `aria-label` or `tooltip` for\n * accessibility.\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/buttons-dropdown-icon-button--docs | Storybook Documentation}\n * @see {@link https://github.com/planningcenter/tapestry/tree/main/packages/tapestry-migration-cli | Migration CLI: Available}\n */\nexport const DropdownIconButton = forwardRef<\n HTMLButtonElement,\n IconButtonProps & DropdownButtonProps\n>((props, ref) => {\n const contextProps = useContext(DropdownTriggerContext)\n return (\n <IconButton\n ref={ref}\n {...props}\n {...contextProps}\n {...dropdownProps(props)}\n />\n )\n})\n\nDropdownIconButton.displayName = \"DropdownIconButton\"\n"],"names":["React"],"mappings":";;;;;AAMA;;;;;;;;;AASG;AACI,MAAM,kBAAkB,GAAG,UAAU,CAG1C,CAAC,KAAK,EAAE,GAAG,KAAI;AACf,IAAA,MAAM,YAAY,GAAG,UAAU,CAAC,sBAAsB,CAAC;AACvD,IAAA,QACEA,cAAA,CAAA,aAAA,CAAC,UAAU,IACT,GAAG,EAAE,GAAG,EAAA,GACJ,KAAK,EAAA,GACL,YAAY,KACZ,aAAa,CAAC,KAAK,CAAC,EAAA,CACxB;AAEN,CAAC;AAED,kBAAkB,CAAC,WAAW,GAAG,oBAAoB;;;;"}
@@ -1,6 +1,6 @@
1
1
  import { Tooltip } from '../internal/tooltip/Tooltip.js';
2
2
  import classNames from 'classnames';
3
- import React, { forwardRef } from 'react';
3
+ import React__default, { forwardRef } from 'react';
4
4
  import { BaseButton } from './BaseButton.js';
5
5
 
6
6
  /**
@@ -13,12 +13,12 @@ import { BaseButton } from './BaseButton.js';
13
13
  */
14
14
  const IconButton = forwardRef(({ className, icon, tooltip, tooltipPlacement = "bottom", ...restProps }, ref) => {
15
15
  const iconOnlyClassName = classNames("tds-btn--icononly", className);
16
- if (tooltip) {
16
+ if (tooltip?.trim()) {
17
17
  const { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, ...buttonProps } = restProps;
18
- return (React.createElement(Tooltip, { content: tooltip, placement: tooltipPlacement, visualOnly: true },
19
- React.createElement(BaseButton, { ...buttonProps, "aria-label": ariaLabel || tooltip, label: icon, className: iconOnlyClassName, ref: ref })));
18
+ return (React__default.createElement(Tooltip, { content: tooltip, placement: tooltipPlacement, visualOnly: true },
19
+ React__default.createElement(BaseButton, { ...buttonProps, "aria-label": ariaLabel || tooltip, label: icon, className: iconOnlyClassName, ref: ref })));
20
20
  }
21
- return (React.createElement(BaseButton, { ...restProps, label: icon, className: iconOnlyClassName, ref: ref }));
21
+ return (React__default.createElement(BaseButton, { ...restProps, label: icon, className: iconOnlyClassName, ref: ref }));
22
22
  });
23
23
  IconButton.displayName = "IconButton";
24
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"IconButton.js","sources":["../../../src/components/button/IconButton.tsx"],"sourcesContent":["import \"./btn.css\"\n\nimport { Tooltip, type TooltipPlacement } from \"@components/internal/tooltip\"\nimport classNames from \"classnames\"\nimport React, { forwardRef } from \"react\"\n\nimport { BaseButton, BaseButtonElementProps } from \"./BaseButton\"\n\ntype IconButtonSharedProps = Omit<BaseButtonElementProps, \"label\"> & {\n /** The icon to display in the button. Set via story args for non-primitive values. */\n icon: React.ReactNode\n}\n\nexport type IconButtonBaseProps = IconButtonSharedProps & {\n /** Accessible label. Required for icon-only buttons to provide context about the button's purpose. */\n \"aria-label\": string\n}\n\ntype IconButtonTooltipProps = {\n /** Accessible label. Required for icon-only buttons to provide context about the button's purpose. Not required when `tooltip` is set. When both are set, this is the name and the tooltip is visual only. */\n \"aria-label\"?: string\n /** Text shown on hover and focus. Without `aria-label`, it is also used as the `aria-label`. With `aria-label`, start the `aria-label` with the same text (e.g. tooltip `\"Delete\"`, aria-label `\"Delete, 3 selected\"`). The tooltip itself is hidden from screen readers. Ignores `aria-labelledby`. Never opens on hover while `disabled` or `loading`, and opens on keyboard focus only with `focusableWhenDisabled`, so don't rely on it to explain why the button is disabled. */\n tooltip: string\n}\n\ntype IconButtonAriaLabelProps = {\n /** Accessible label. Required for icon-only buttons to provide context about the button's purpose. Not required when `tooltip` is set. When both are set, this is the name and the tooltip is visual only. */\n \"aria-label\": string\n /** Text shown on hover and focus. Without `aria-label`, it is also used as the `aria-label`. With `aria-label`, start the `aria-label` with the same text (e.g. tooltip `\"Delete\"`, aria-label `\"Delete, 3 selected\"`). The tooltip itself is hidden from screen readers. Ignores `aria-labelledby`. Never opens on hover while `disabled` or `loading`, and opens on keyboard focus only with `focusableWhenDisabled`, so don't rely on it to explain why the button is disabled. */\n tooltip?: string\n}\n\n/**\n * An icon-only button needs a name: `aria-label`, `tooltip`, or both.\n * `IconButtonAriaLabelProps` is declared last so that a missing name\n * reports \"aria-label is missing\", not \"tooltip is missing\".\n */\ntype IconButtonNameProps = IconButtonAriaLabelProps | IconButtonTooltipProps\n\nexport type IconButtonProps = IconButtonSharedProps &\n IconButtonNameProps & {\n /** Where the tooltip renders relative to the button. Default `\"bottom\"`. Has no effect without `tooltip`. */\n tooltipPlacement?: TooltipPlacement\n }\n\n/**\n * An icon-only button component that renders as a button element.\n * Requires an icon, and an aria-label or tooltip for accessibility.\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/buttons-icon-button--docs | Storybook Documentation}\n * @see {@link https://github.com/planningcenter/tapestry/tree/main/packages/tapestry-migration-cli | Migration CLI: Available}\n */\nexport const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(\n (\n {\n className,\n icon,\n tooltip,\n tooltipPlacement = \"bottom\",\n ...restProps\n }: IconButtonProps,\n ref\n ) => {\n const iconOnlyClassName = classNames(\"tds-btn--icononly\", className)\n\n if (tooltip) {\n const {\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n ...buttonProps\n } = restProps\n\n return (\n <Tooltip content={tooltip} placement={tooltipPlacement} visualOnly>\n <BaseButton\n {...buttonProps}\n aria-label={ariaLabel || tooltip}\n label={icon}\n className={iconOnlyClassName}\n ref={ref}\n />\n </Tooltip>\n )\n }\n\n return (\n <BaseButton\n {...restProps}\n label={icon}\n className={iconOnlyClassName}\n ref={ref}\n />\n )\n }\n)\n\nIconButton.displayName = \"IconButton\"\n"],"names":[],"mappings":";;;;;AA6CA;;;;;;;AAOG;AACI,MAAM,UAAU,GAAG,UAAU,CAClC,CACE,EACE,SAAS,EACT,IAAI,EACJ,OAAO,EACP,gBAAgB,GAAG,QAAQ,EAC3B,GAAG,SAAS,EACI,EAClB,GAAG,KACD;IACF,MAAM,iBAAiB,GAAG,UAAU,CAAC,mBAAmB,EAAE,SAAS,CAAC;IAEpE,IAAI,OAAO,EAAE;AACX,QAAA,MAAM,EACJ,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,GAAG,WAAW,EACf,GAAG,SAAS;AAEb,QAAA,QACE,KAAA,CAAA,aAAA,CAAC,OAAO,EAAA,EAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAA,IAAA,EAAA;YAChE,KAAA,CAAA,aAAA,CAAC,UAAU,OACL,WAAW,EAAA,YAAA,EACH,SAAS,IAAI,OAAO,EAChC,KAAK,EAAE,IAAI,EACX,SAAS,EAAE,iBAAiB,EAC5B,GAAG,EAAE,GAAG,EAAA,CACR,CACM;IAEd;AAEA,IAAA,QACE,KAAA,CAAA,aAAA,CAAC,UAAU,OACL,SAAS,EACb,KAAK,EAAE,IAAI,EACX,SAAS,EAAE,iBAAiB,EAC5B,GAAG,EAAE,GAAG,EAAA,CACR;AAEN,CAAC;AAGH,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}
1
+ {"version":3,"file":"IconButton.js","sources":["../../../src/components/button/IconButton.tsx"],"sourcesContent":["import \"./btn.css\"\n\nimport { Tooltip, type TooltipPlacement } from \"@components/internal/tooltip\"\nimport classNames from \"classnames\"\nimport React, { forwardRef } from \"react\"\n\nimport { BaseButton, BaseButtonElementProps } from \"./BaseButton\"\n\ntype IconButtonSharedProps = Omit<BaseButtonElementProps, \"label\"> & {\n /** The icon to display in the button. Set via story args for non-primitive values. */\n icon: React.ReactNode\n}\n\nexport type IconButtonBaseProps = IconButtonSharedProps & {\n /** Accessible label. Required for icon-only buttons to provide context about the button's purpose. */\n \"aria-label\": string\n}\n\ntype IconButtonTooltipProps = {\n /** Accessible label. Required for icon-only buttons to provide context about the button's purpose. Not required when `tooltip` is set. When both are set, this is the name and the tooltip is visual only. */\n \"aria-label\"?: string\n /** Text shown on hover and focus. Without `aria-label`, it is also used as the `aria-label`. With `aria-label`, start the `aria-label` with the same text (e.g. tooltip `\"Delete\"`, aria-label `\"Delete, 3 selected\"`). The tooltip itself is hidden from screen readers. Ignores `aria-labelledby`. Never opens on hover while `disabled` or `loading`, and opens on keyboard focus only with `focusableWhenDisabled`, so don't rely on it to explain why the button is disabled. */\n tooltip: string\n}\n\ntype IconButtonAriaLabelProps = {\n /** Accessible label. Required for icon-only buttons to provide context about the button's purpose. Not required when `tooltip` is set. When both are set, this is the name and the tooltip is visual only. */\n \"aria-label\": string\n /** Text shown on hover and focus. Without `aria-label`, it is also used as the `aria-label`. With `aria-label`, start the `aria-label` with the same text (e.g. tooltip `\"Delete\"`, aria-label `\"Delete, 3 selected\"`). The tooltip itself is hidden from screen readers. Ignores `aria-labelledby`. Never opens on hover while `disabled` or `loading`, and opens on keyboard focus only with `focusableWhenDisabled`, so don't rely on it to explain why the button is disabled. */\n tooltip?: string\n}\n\n/**\n * An icon-only button needs a name: `aria-label`, `tooltip`, or both.\n * `IconButtonAriaLabelProps` is declared last so that a missing name\n * reports \"aria-label is missing\", not \"tooltip is missing\".\n */\ntype IconButtonNameProps = IconButtonAriaLabelProps | IconButtonTooltipProps\n\nexport type IconButtonProps = IconButtonSharedProps &\n IconButtonNameProps & {\n /** Where the tooltip renders relative to the button. Default `\"bottom\"`. Has no effect without `tooltip`. */\n tooltipPlacement?: TooltipPlacement\n }\n\n/**\n * An icon-only button component that renders as a button element.\n * Requires an icon, and an aria-label or tooltip for accessibility.\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/buttons-icon-button--docs | Storybook Documentation}\n * @see {@link https://github.com/planningcenter/tapestry/tree/main/packages/tapestry-migration-cli | Migration CLI: Available}\n */\nexport const IconButton = forwardRef<HTMLButtonElement, IconButtonProps>(\n (\n {\n className,\n icon,\n tooltip,\n tooltipPlacement = \"bottom\",\n ...restProps\n }: IconButtonProps,\n ref\n ) => {\n const iconOnlyClassName = classNames(\"tds-btn--icononly\", className)\n\n if (tooltip?.trim()) {\n const {\n \"aria-label\": ariaLabel,\n \"aria-labelledby\": ariaLabelledBy,\n ...buttonProps\n } = restProps\n\n return (\n <Tooltip content={tooltip} placement={tooltipPlacement} visualOnly>\n <BaseButton\n {...buttonProps}\n aria-label={ariaLabel || tooltip}\n label={icon}\n className={iconOnlyClassName}\n ref={ref}\n />\n </Tooltip>\n )\n }\n\n return (\n <BaseButton\n {...restProps}\n label={icon}\n className={iconOnlyClassName}\n ref={ref}\n />\n )\n }\n)\n\nIconButton.displayName = \"IconButton\"\n"],"names":["React"],"mappings":";;;;;AA6CA;;;;;;;AAOG;AACI,MAAM,UAAU,GAAG,UAAU,CAClC,CACE,EACE,SAAS,EACT,IAAI,EACJ,OAAO,EACP,gBAAgB,GAAG,QAAQ,EAC3B,GAAG,SAAS,EACI,EAClB,GAAG,KACD;IACF,MAAM,iBAAiB,GAAG,UAAU,CAAC,mBAAmB,EAAE,SAAS,CAAC;AAEpE,IAAA,IAAI,OAAO,EAAE,IAAI,EAAE,EAAE;AACnB,QAAA,MAAM,EACJ,YAAY,EAAE,SAAS,EACvB,iBAAiB,EAAE,cAAc,EACjC,GAAG,WAAW,EACf,GAAG,SAAS;AAEb,QAAA,QACEA,cAAA,CAAA,aAAA,CAAC,OAAO,EAAA,EAAC,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,UAAU,EAAA,IAAA,EAAA;YAChEA,cAAA,CAAA,aAAA,CAAC,UAAU,OACL,WAAW,EAAA,YAAA,EACH,SAAS,IAAI,OAAO,EAChC,KAAK,EAAE,IAAI,EACX,SAAS,EAAE,iBAAiB,EAC5B,GAAG,EAAE,GAAG,EAAA,CACR,CACM;IAEd;AAEA,IAAA,QACEA,cAAA,CAAA,aAAA,CAAC,UAAU,OACL,SAAS,EACb,KAAK,EAAE,IAAI,EACX,SAAS,EAAE,iBAAiB,EAC5B,GAAG,EAAE,GAAG,EAAA,CACR;AAEN,CAAC;AAGH,UAAU,CAAC,WAAW,GAAG,YAAY;;;;"}
@@ -1,4 +1,4 @@
1
- import React, { forwardRef } from 'react';
1
+ import React__default, { forwardRef } from 'react';
2
2
  import { BaseButton } from './BaseButton.js';
3
3
 
4
4
  /**
@@ -19,7 +19,7 @@ import { BaseButton } from './BaseButton.js';
19
19
  * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/deprecated-loadingbutton--docs | Storybook Documentation}
20
20
  */
21
21
  const LoadingButton = forwardRef((props, ref) => {
22
- return React.createElement(BaseButton, { ...props, ref: ref });
22
+ return React__default.createElement(BaseButton, { ...props, ref: ref });
23
23
  });
24
24
  LoadingButton.displayName = "LoadingButton";
25
25
 
@@ -1 +1 @@
1
- {"version":3,"file":"LoadingButton.js","sources":["../../../src/components/button/LoadingButton.tsx"],"sourcesContent":["import \"./btn.css\"\n\nimport React, { forwardRef } from \"react\"\n\nimport { BaseButton, BaseButtonElementProps } from \"./BaseButton\"\n\n/**\n * @deprecated Use ButtonElementProps with loading prop instead. LoadingButton will be removed in a future version.\n */\nexport interface LoadingButtonProps extends BaseButtonElementProps {\n /** Whether the button is in a loading state. When true, the button is disabled and shows a loading spinner. */\n loading?: boolean\n /** Accessible label to use when the button is in loading state. */\n loadingAriaLabel?: string\n}\n\n/**\n * @deprecated Use Button with loading prop instead. LoadingButton will be removed in a future version.\n *\n * A loading button component that shows a loading indicator when the loading prop is true.\n * When loading, the button is automatically disabled and shows a spinner.\n * Supports all BaseButton props including prefix and suffix.\n *\n * @example\n * // Deprecated\n * <LoadingButton loading={true} label=\"Submit\" />\n *\n * // Use this instead:\n * <Button loading={true} label=\"Submit\" />\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/deprecated-loadingbutton--docs | Storybook Documentation}\n */\nexport const LoadingButton = forwardRef<HTMLButtonElement, LoadingButtonProps>(\n (props, ref) => {\n return <BaseButton {...props} ref={ref} />\n }\n)\n\nLoadingButton.displayName = \"LoadingButton\"\n"],"names":[],"mappings":";;;AAgBA;;;;;;;;;;;;;;;;AAgBG;AACI,MAAM,aAAa,GAAG,UAAU,CACrC,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,OAAO,KAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAA,GAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAA,CAAI;AAC5C,CAAC;AAGH,aAAa,CAAC,WAAW,GAAG,eAAe;;;;"}
1
+ {"version":3,"file":"LoadingButton.js","sources":["../../../src/components/button/LoadingButton.tsx"],"sourcesContent":["import \"./btn.css\"\n\nimport React, { forwardRef } from \"react\"\n\nimport { BaseButton, BaseButtonElementProps } from \"./BaseButton\"\n\n/**\n * @deprecated Use ButtonElementProps with loading prop instead. LoadingButton will be removed in a future version.\n */\nexport interface LoadingButtonProps extends BaseButtonElementProps {\n /** Whether the button is in a loading state. When true, the button is disabled and shows a loading spinner. */\n loading?: boolean\n /** Accessible label to use when the button is in loading state. */\n loadingAriaLabel?: string\n}\n\n/**\n * @deprecated Use Button with loading prop instead. LoadingButton will be removed in a future version.\n *\n * A loading button component that shows a loading indicator when the loading prop is true.\n * When loading, the button is automatically disabled and shows a spinner.\n * Supports all BaseButton props including prefix and suffix.\n *\n * @example\n * // Deprecated\n * <LoadingButton loading={true} label=\"Submit\" />\n *\n * // Use this instead:\n * <Button loading={true} label=\"Submit\" />\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/deprecated-loadingbutton--docs | Storybook Documentation}\n */\nexport const LoadingButton = forwardRef<HTMLButtonElement, LoadingButtonProps>(\n (props, ref) => {\n return <BaseButton {...props} ref={ref} />\n }\n)\n\nLoadingButton.displayName = \"LoadingButton\"\n"],"names":["React"],"mappings":";;;AAgBA;;;;;;;;;;;;;;;;AAgBG;AACI,MAAM,aAAa,GAAG,UAAU,CACrC,CAAC,KAAK,EAAE,GAAG,KAAI;IACb,OAAOA,cAAA,CAAA,aAAA,CAAC,UAAU,EAAA,EAAA,GAAK,KAAK,EAAE,GAAG,EAAE,GAAG,EAAA,CAAI;AAC5C,CAAC;AAGH,aAAa,CAAC,WAAW,GAAG,eAAe;;;;"}
@@ -1,12 +1,12 @@
1
1
  import classNames from 'classnames';
2
- import React, { forwardRef } from 'react';
2
+ import React__default, { forwardRef } from 'react';
3
3
  import { DropdownButton } from './DropdownButton.js';
4
4
 
5
5
  function needsAttentionProps({ className, needsAttention, }) {
6
6
  return needsAttention
7
7
  ? {
8
8
  className: classNames(className, "tds-btn--attention"),
9
- prefix: (React.createElement("span", { className: "attention-icon", "aria-label": "Needs attention!" })),
9
+ prefix: (React__default.createElement("span", { className: "attention-icon", "aria-label": "Needs attention!" })),
10
10
  }
11
11
  : {
12
12
  className,
@@ -21,7 +21,7 @@ function needsAttentionProps({ className, needsAttention, }) {
21
21
  * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/application-admin-page-header-actions-dropdown-button--docs | Storybook Documentation}
22
22
  */
23
23
  const PageHeaderActionsDropdownButton = forwardRef(({ className, needsAttention, ...props }, ref) => {
24
- return (React.createElement(DropdownButton, { ref: ref, ...props, kind: "secondary-page-header", ...needsAttentionProps({ className, needsAttention }) }));
24
+ return (React__default.createElement(DropdownButton, { ref: ref, ...props, kind: "secondary-page-header", ...needsAttentionProps({ className, needsAttention }) }));
25
25
  });
26
26
  PageHeaderActionsDropdownButton.displayName = "PageHeaderActionsDropdownButton";
27
27
 
@@ -1 +1 @@
1
- {"version":3,"file":"PageHeaderActionsDropdownButton.js","sources":["../../../src/components/button/PageHeaderActionsDropdownButton.tsx"],"sourcesContent":["import \"./btn.css\"\n\nimport classNames from \"classnames\"\nimport React, { forwardRef } from \"react\"\n\nimport { BaseButtonElementProps } from \"./BaseButton\"\nimport { DropdownButton, DropdownButtonProps } from \"./DropdownButton\"\n\nexport type PageHeaderActionsDropdownButtonProps = Omit<\n BaseButtonElementProps,\n \"kind\"\n> &\n DropdownButtonProps & {\n /** Whether the button needs attention. Adds warning styling and attention icon when true. */\n needsAttention?: boolean\n }\n\nexport function needsAttentionProps({\n className,\n needsAttention,\n}: {\n className?: string\n needsAttention?: boolean\n}) {\n return needsAttention\n ? {\n className: classNames(className, \"tds-btn--attention\"),\n prefix: (\n <span className=\"attention-icon\" aria-label=\"Needs attention!\" />\n ),\n }\n : {\n className,\n }\n}\n\n/**\n * A dropdown button styled for the page header actions area. Renders with\n * the `secondary-page-header` kind and supports an optional `needsAttention`\n * state that adds warning styling and an attention icon.\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/application-admin-page-header-actions-dropdown-button--docs | Storybook Documentation}\n */\nexport const PageHeaderActionsDropdownButton = forwardRef<\n HTMLButtonElement,\n PageHeaderActionsDropdownButtonProps\n>(\n (\n {\n className,\n needsAttention,\n ...props\n }: PageHeaderActionsDropdownButtonProps,\n ref\n ) => {\n return (\n <DropdownButton\n ref={ref}\n {...props}\n kind=\"secondary-page-header\"\n {...needsAttentionProps({ className, needsAttention })}\n />\n )\n }\n)\n\nPageHeaderActionsDropdownButton.displayName = \"PageHeaderActionsDropdownButton\"\n"],"names":[],"mappings":";;;;SAiBgB,mBAAmB,CAAC,EAClC,SAAS,EACT,cAAc,GAIf,EAAA;AACC,IAAA,OAAO;AACL,UAAE;AACE,YAAA,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,oBAAoB,CAAC;YACtD,MAAM,GACJ,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,gBAAgB,EAAA,YAAA,EAAY,kBAAkB,EAAA,CAAG,CAClE;AACF;AACH,UAAE;YACE,SAAS;SACV;AACP;AAEA;;;;;;;AAOG;AACI,MAAM,+BAA+B,GAAG,UAAU,CAIvD,CACE,EACE,SAAS,EACT,cAAc,EACd,GAAG,KAAK,EAC6B,EACvC,GAAG,KACD;IACF,QACE,KAAA,CAAA,aAAA,CAAC,cAAc,EAAA,EACb,GAAG,EAAE,GAAG,EAAA,GACJ,KAAK,EACT,IAAI,EAAC,uBAAuB,EAAA,GACxB,mBAAmB,CAAC,EAAE,SAAS,EAAE,cAAc,EAAE,CAAC,EAAA,CACtD;AAEN,CAAC;AAGH,+BAA+B,CAAC,WAAW,GAAG,iCAAiC;;;;"}
1
+ {"version":3,"file":"PageHeaderActionsDropdownButton.js","sources":["../../../src/components/button/PageHeaderActionsDropdownButton.tsx"],"sourcesContent":["import \"./btn.css\"\n\nimport classNames from \"classnames\"\nimport React, { forwardRef } from \"react\"\n\nimport { BaseButtonElementProps } from \"./BaseButton\"\nimport { DropdownButton, DropdownButtonProps } from \"./DropdownButton\"\n\nexport type PageHeaderActionsDropdownButtonProps = Omit<\n BaseButtonElementProps,\n \"kind\"\n> &\n DropdownButtonProps & {\n /** Whether the button needs attention. Adds warning styling and attention icon when true. */\n needsAttention?: boolean\n }\n\nexport function needsAttentionProps({\n className,\n needsAttention,\n}: {\n className?: string\n needsAttention?: boolean\n}) {\n return needsAttention\n ? {\n className: classNames(className, \"tds-btn--attention\"),\n prefix: (\n <span className=\"attention-icon\" aria-label=\"Needs attention!\" />\n ),\n }\n : {\n className,\n }\n}\n\n/**\n * A dropdown button styled for the page header actions area. Renders with\n * the `secondary-page-header` kind and supports an optional `needsAttention`\n * state that adds warning styling and an attention icon.\n *\n * @component\n * @see {@link https://planningcenter.github.io/tapestry/?path=/docs/application-admin-page-header-actions-dropdown-button--docs | Storybook Documentation}\n */\nexport const PageHeaderActionsDropdownButton = forwardRef<\n HTMLButtonElement,\n PageHeaderActionsDropdownButtonProps\n>(\n (\n {\n className,\n needsAttention,\n ...props\n }: PageHeaderActionsDropdownButtonProps,\n ref\n ) => {\n return (\n <DropdownButton\n ref={ref}\n {...props}\n kind=\"secondary-page-header\"\n {...needsAttentionProps({ className, needsAttention })}\n />\n )\n }\n)\n\nPageHeaderActionsDropdownButton.displayName = \"PageHeaderActionsDropdownButton\"\n"],"names":["React"],"mappings":";;;;SAiBgB,mBAAmB,CAAC,EAClC,SAAS,EACT,cAAc,GAIf,EAAA;AACC,IAAA,OAAO;AACL,UAAE;AACE,YAAA,SAAS,EAAE,UAAU,CAAC,SAAS,EAAE,oBAAoB,CAAC;YACtD,MAAM,GACJA,cAAA,CAAA,aAAA,CAAA,MAAA,EAAA,EAAM,SAAS,EAAC,gBAAgB,EAAA,YAAA,EAAY,kBAAkB,EAAA,CAAG,CAClE;AACF;AACH,UAAE;YACE,SAAS;SACV;AACP;AAEA;;;;;;;AAOG;AACI,MAAM,+BAA+B,GAAG,UAAU,CAIvD,CACE,EACE,SAAS,EACT,cAAc,EACd,GAAG,KAAK,EAC6B,EACvC,GAAG,KACD;IACF,QACEA,cAAA,CAAA,aAAA,CAAC,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