frontile 0.18.10 → 0.18.12

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 (228) hide show
  1. package/declarations/components/buttons/button-group.d.ts +1 -1
  2. package/declarations/components/buttons/button-group.d.ts.map +1 -1
  3. package/declarations/components/buttons/button.d.ts +4 -2
  4. package/declarations/components/buttons/button.d.ts.map +1 -1
  5. package/declarations/components/buttons/chip.d.ts +4 -3
  6. package/declarations/components/buttons/chip.d.ts.map +1 -1
  7. package/declarations/components/buttons/icon-button.d.ts +50 -0
  8. package/declarations/components/buttons/icon-button.d.ts.map +1 -0
  9. package/declarations/components/buttons/index.d.ts +1 -0
  10. package/declarations/components/buttons/index.d.ts.map +1 -1
  11. package/declarations/components/buttons/segmented-control/segmented-control.d.ts +21 -23
  12. package/declarations/components/buttons/segmented-control/segmented-control.d.ts.map +1 -1
  13. package/declarations/components/buttons/toggle-button.d.ts +1 -1
  14. package/declarations/components/buttons/toggle-button.d.ts.map +1 -1
  15. package/declarations/components/collections/calendar/calendar.d.ts +168 -103
  16. package/declarations/components/collections/calendar/calendar.d.ts.map +1 -1
  17. package/declarations/components/collections/command/input.d.ts +70 -46
  18. package/declarations/components/collections/command/input.d.ts.map +1 -1
  19. package/declarations/components/collections/command/list.d.ts +70 -33
  20. package/declarations/components/collections/command/list.d.ts.map +1 -1
  21. package/declarations/components/collections/simple-table/body.d.ts +137 -72
  22. package/declarations/components/collections/simple-table/body.d.ts.map +1 -1
  23. package/declarations/components/collections/simple-table/cell.d.ts +137 -72
  24. package/declarations/components/collections/simple-table/cell.d.ts.map +1 -1
  25. package/declarations/components/collections/simple-table/column.d.ts +137 -72
  26. package/declarations/components/collections/simple-table/column.d.ts.map +1 -1
  27. package/declarations/components/collections/simple-table/footer.d.ts +137 -72
  28. package/declarations/components/collections/simple-table/footer.d.ts.map +1 -1
  29. package/declarations/components/collections/simple-table/header.d.ts +137 -72
  30. package/declarations/components/collections/simple-table/header.d.ts.map +1 -1
  31. package/declarations/components/collections/simple-table/index.d.ts +137 -72
  32. package/declarations/components/collections/simple-table/index.d.ts.map +1 -1
  33. package/declarations/components/collections/simple-table/row.d.ts +137 -72
  34. package/declarations/components/collections/simple-table/row.d.ts.map +1 -1
  35. package/declarations/components/collections/table/checkbox.d.ts +30 -14
  36. package/declarations/components/collections/table/checkbox.d.ts.map +1 -1
  37. package/declarations/components/collections/table/column-visibility.d.ts +137 -72
  38. package/declarations/components/collections/table/column-visibility.d.ts.map +1 -1
  39. package/declarations/components/collections/table/sort-button.d.ts +137 -72
  40. package/declarations/components/collections/table/sort-button.d.ts.map +1 -1
  41. package/declarations/components/collections/table/table.d.ts +137 -72
  42. package/declarations/components/collections/table/table.d.ts.map +1 -1
  43. package/declarations/components/disclosure/accordion/accordion.d.ts +77 -51
  44. package/declarations/components/disclosure/accordion/accordion.d.ts.map +1 -1
  45. package/declarations/components/forms/autocomplete.d.ts +112 -28
  46. package/declarations/components/forms/autocomplete.d.ts.map +1 -1
  47. package/declarations/components/forms/checkbox-group.d.ts +21 -15
  48. package/declarations/components/forms/checkbox-group.d.ts.map +1 -1
  49. package/declarations/components/forms/checkbox.d.ts +30 -14
  50. package/declarations/components/forms/checkbox.d.ts.map +1 -1
  51. package/declarations/components/forms/date-picker/date-picker.d.ts +307 -56
  52. package/declarations/components/forms/date-picker/date-picker.d.ts.map +1 -1
  53. package/declarations/components/forms/input-otp.d.ts +56 -40
  54. package/declarations/components/forms/input-otp.d.ts.map +1 -1
  55. package/declarations/components/forms/input.d.ts +35 -30
  56. package/declarations/components/forms/input.d.ts.map +1 -1
  57. package/declarations/components/forms/label.d.ts +14 -13
  58. package/declarations/components/forms/label.d.ts.map +1 -1
  59. package/declarations/components/forms/native-select.d.ts +66 -18
  60. package/declarations/components/forms/native-select.d.ts.map +1 -1
  61. package/declarations/components/forms/radio-group.d.ts +21 -15
  62. package/declarations/components/forms/radio-group.d.ts.map +1 -1
  63. package/declarations/components/forms/radio.d.ts +30 -14
  64. package/declarations/components/forms/radio.d.ts.map +1 -1
  65. package/declarations/components/forms/select/select.d.ts +186 -36
  66. package/declarations/components/forms/select/select.d.ts.map +1 -1
  67. package/declarations/components/forms/select/types.d.ts +1 -1
  68. package/declarations/components/forms/switch.d.ts +56 -39
  69. package/declarations/components/forms/switch.d.ts.map +1 -1
  70. package/declarations/components/forms/textarea.d.ts +53 -16
  71. package/declarations/components/forms/textarea.d.ts.map +1 -1
  72. package/declarations/components/layout/app-layout.d.ts +168 -118
  73. package/declarations/components/layout/app-layout.d.ts.map +1 -1
  74. package/declarations/components/layout/aside.d.ts +168 -118
  75. package/declarations/components/layout/aside.d.ts.map +1 -1
  76. package/declarations/components/layout/navbar.d.ts +168 -118
  77. package/declarations/components/layout/navbar.d.ts.map +1 -1
  78. package/declarations/components/layout/sidebar.d.ts +168 -118
  79. package/declarations/components/layout/sidebar.d.ts.map +1 -1
  80. package/declarations/components/navigation/breadcrumbs/breadcrumbs.d.ts +42 -31
  81. package/declarations/components/navigation/breadcrumbs/breadcrumbs.d.ts.map +1 -1
  82. package/declarations/components/navigation/pagination/pagination.d.ts +56 -39
  83. package/declarations/components/navigation/pagination/pagination.d.ts.map +1 -1
  84. package/declarations/components/navigation/stepper/stepper.d.ts +294 -188
  85. package/declarations/components/navigation/stepper/stepper.d.ts.map +1 -1
  86. package/declarations/components/navigation/tab-nav/tab-nav.d.ts +35 -30
  87. package/declarations/components/navigation/tab-nav/tab-nav.d.ts.map +1 -1
  88. package/declarations/components/navigation/tabs/tabs.d.ts +35 -30
  89. package/declarations/components/navigation/tabs/tabs.d.ts.map +1 -1
  90. package/declarations/components/overlays/drawer.d.ts +91 -60
  91. package/declarations/components/overlays/drawer.d.ts.map +1 -1
  92. package/declarations/components/overlays/modal.d.ts +35 -26
  93. package/declarations/components/overlays/modal.d.ts.map +1 -1
  94. package/declarations/components/overlays/popover.d.ts +2 -0
  95. package/declarations/components/overlays/popover.d.ts.map +1 -1
  96. package/declarations/components/status/badge.d.ts +8 -3
  97. package/declarations/components/status/badge.d.ts.map +1 -1
  98. package/declarations/components/utilities/avatar.d.ts +21 -20
  99. package/declarations/components/utilities/avatar.d.ts.map +1 -1
  100. package/declarations/components/utilities/card.d.ts +94 -0
  101. package/declarations/components/utilities/card.d.ts.map +1 -0
  102. package/declarations/components/utilities/icon.d.ts +57 -0
  103. package/declarations/components/utilities/icon.d.ts.map +1 -0
  104. package/declarations/components/utilities/index.d.ts +2 -0
  105. package/declarations/components/utilities/index.d.ts.map +1 -1
  106. package/dist/buttons.js +1 -0
  107. package/dist/buttons.js.map +1 -1
  108. package/dist/components/buttons/button-group.js +1 -1
  109. package/dist/components/buttons/button.js +2 -2
  110. package/dist/components/buttons/button.js.map +1 -1
  111. package/dist/components/buttons/chip.js +1 -1
  112. package/dist/components/buttons/chip.js.map +1 -1
  113. package/dist/components/buttons/close-button.js +1 -1
  114. package/dist/components/buttons/icon-button.js +33 -0
  115. package/dist/components/buttons/icon-button.js.map +1 -0
  116. package/dist/components/buttons/index.js +1 -0
  117. package/dist/components/buttons/index.js.map +1 -1
  118. package/dist/components/buttons/segmented-control/segmented-control.js +1 -1
  119. package/dist/components/buttons/toggle-button.js +1 -1
  120. package/dist/components/collections/calendar/calendar.js +1 -1
  121. package/dist/components/collections/calendar/header.js +1 -1
  122. package/dist/components/collections/calendar/year-grid.js +1 -1
  123. package/dist/components/collections/command/command.js +1 -1
  124. package/dist/components/collections/command/list.js +1 -1
  125. package/dist/components/collections/dropdown/dropdown.js +2 -2
  126. package/dist/components/collections/dropdown/sub.js +1 -1
  127. package/dist/components/collections/listbox/item.js +2 -2
  128. package/dist/components/collections/listbox/listbox.js +2 -2
  129. package/dist/components/collections/table/column-visibility.js +1 -1
  130. package/dist/components/collections/table/sort-button.js +1 -1
  131. package/dist/components/collections/table/table.js +1 -1
  132. package/dist/components/disclosure/accordion/accordion.js +1 -1
  133. package/dist/components/disclosure/accordion/item.js +1 -1
  134. package/dist/components/forms/autocomplete.js +4 -4
  135. package/dist/components/forms/date-input/date-input.js +1 -1
  136. package/dist/components/forms/date-input/segment-group.js +1 -1
  137. package/dist/components/forms/date-picker/date-picker.js +2 -2
  138. package/dist/components/forms/date-picker/end-content.js +1 -1
  139. package/dist/components/forms/date-picker/time-columns.js +2 -2
  140. package/dist/components/forms/form-feedback.js +2 -2
  141. package/dist/components/forms/form.js +1 -1
  142. package/dist/components/forms/input-otp.js +1 -1
  143. package/dist/components/forms/input.js +1 -1
  144. package/dist/components/forms/native-select.js +2 -2
  145. package/dist/components/forms/select/end-content.js +1 -1
  146. package/dist/components/forms/select/select.js +4 -4
  147. package/dist/components/forms/select/select.js.map +1 -1
  148. package/dist/components/forms/switch.js +2 -2
  149. package/dist/components/layout/app-layout-state.js +1 -1
  150. package/dist/components/layout/app-layout.js +1 -1
  151. package/dist/components/layout/aside-toggle.js +1 -1
  152. package/dist/components/layout/aside.js +1 -1
  153. package/dist/components/layout/bottom-nav-more.js +2 -2
  154. package/dist/components/layout/bottom-nav.js +1 -1
  155. package/dist/components/layout/main.js +1 -1
  156. package/dist/components/layout/menu-toggle.js +1 -1
  157. package/dist/components/layout/nav-context.js +1 -1
  158. package/dist/components/layout/nav-folder.js +2 -2
  159. package/dist/components/layout/nav-item.js +1 -1
  160. package/dist/components/layout/nav-link.js +1 -1
  161. package/dist/components/layout/navbar.js +1 -1
  162. package/dist/components/layout/page-header.js +1 -1
  163. package/dist/components/layout/sidebar-group.js +1 -1
  164. package/dist/components/layout/sidebar-toggle.js +1 -1
  165. package/dist/components/layout/sidebar.js +1 -1
  166. package/dist/components/navigation/breadcrumbs/breadcrumbs.js +1 -1
  167. package/dist/components/navigation/breadcrumbs/item.js +1 -1
  168. package/dist/components/navigation/breadcrumbs/separator.js +1 -1
  169. package/dist/components/navigation/external-link.js +1 -1
  170. package/dist/components/navigation/pagination/pagination.js +2 -2
  171. package/dist/components/navigation/stepper/collapse-menu.js +1 -1
  172. package/dist/components/navigation/stepper/stepper.js +1 -1
  173. package/dist/components/navigation/tab-nav/item.js +1 -1
  174. package/dist/components/navigation/tab-nav/tab-nav.js +1 -1
  175. package/dist/components/navigation/tabs/tabs.js +1 -1
  176. package/dist/components/notifications/index.js +2 -2
  177. package/dist/components/notifications/notification-card.js +3 -3
  178. package/dist/components/notifications/notifications-container.js +2 -2
  179. package/dist/components/overlays/drawer.js +2 -2
  180. package/dist/components/overlays/modal.js +2 -2
  181. package/dist/components/overlays/overlay.js +1 -1
  182. package/dist/components/overlays/popover.js +44 -5
  183. package/dist/components/overlays/popover.js.map +1 -1
  184. package/dist/components/overlays/portal.js +1 -1
  185. package/dist/components/status/alert.js +1 -1
  186. package/dist/components/status/badge.js +4 -0
  187. package/dist/components/status/badge.js.map +1 -1
  188. package/dist/components/status/progress-bar.js +1 -1
  189. package/dist/components/utilities/avatar.js +1 -1
  190. package/dist/components/utilities/card.js +38 -0
  191. package/dist/components/utilities/card.js.map +1 -0
  192. package/dist/components/utilities/icon.js +33 -0
  193. package/dist/components/utilities/icon.js.map +1 -0
  194. package/dist/components/utilities/index.js +2 -0
  195. package/dist/components/utilities/index.js.map +1 -1
  196. package/dist/components/utilities/kbd.js +1 -1
  197. package/dist/components/utilities/spinner.js +1 -1
  198. package/dist/{control-blur-C8OnSQR5.js → control-blur-ByDW39Z2.js} +1 -1
  199. package/dist/{control-blur-C8OnSQR5.js.map → control-blur-ByDW39Z2.js.map} +1 -1
  200. package/dist/{deprecated-args-BIUjLA8y.js → deprecated-args-D6KS2fwp.js} +1 -1
  201. package/dist/{deprecated-args-BIUjLA8y.js.map → deprecated-args-D6KS2fwp.js.map} +1 -1
  202. package/dist/{dialog-CreV7aPQ.js → dialog-C5sLU1yl.js} +1 -1
  203. package/dist/{dialog-CreV7aPQ.js.map → dialog-C5sLU1yl.js.map} +1 -1
  204. package/dist/{dom-cKWVvtkd.js → dom-CbIZhRH4.js} +1 -1
  205. package/dist/{dom-cKWVvtkd.js.map → dom-CbIZhRH4.js.map} +1 -1
  206. package/dist/{icons-55dthVFk.js → icons-DqlDWFrr.js} +1 -1
  207. package/dist/{icons-55dthVFk.js.map → icons-DqlDWFrr.js.map} +1 -1
  208. package/dist/index.js +5 -2
  209. package/dist/index.js.map +1 -1
  210. package/dist/{manager-Dge4r8Vn.js → manager-DFO_x6Jr.js} +2 -2
  211. package/dist/{manager-Dge4r8Vn.js.map → manager-DFO_x6Jr.js.map} +1 -1
  212. package/dist/{notification-card-BPfDo-Gf.js → notification-card-C4mlc9Ac.js} +3 -3
  213. package/dist/{notification-card-BPfDo-Gf.js.map → notification-card-C4mlc9Ac.js.map} +1 -1
  214. package/dist/notifications.js +2 -2
  215. package/dist/{reveal-within-BcqpOmSI.js → reveal-within-BbeisIjK.js} +1 -1
  216. package/dist/{reveal-within-BcqpOmSI.js.map → reveal-within-BbeisIjK.js.map} +1 -1
  217. package/dist/{runtime--fcdnjmJ-BOdRhmsS.js → runtime--fcdnjmJ-DOFHQ2m8.js} +1 -1
  218. package/dist/{runtime--fcdnjmJ-BOdRhmsS.js.map → runtime--fcdnjmJ-DOFHQ2m8.js.map} +1 -1
  219. package/dist/services/notifications.js +1 -1
  220. package/dist/test-support.js +3 -51
  221. package/dist/test-support.js.map +1 -1
  222. package/dist/utilities.js +2 -0
  223. package/dist/utilities.js.map +1 -1
  224. package/dist/utils/keys.js +1 -1
  225. package/dist/utils/listManager.js +2 -2
  226. package/dist/utils/ref.js +1 -1
  227. package/dist/utils/toggle.js +1 -1
  228. package/package.json +16 -16
@@ -88,52 +88,61 @@ export default class Modal extends Component<ModalSignature> {
88
88
  get showCloseButton(): boolean;
89
89
  get size(): "xs" | "sm" | "md" | "lg" | "xl" | "full";
90
90
  get classes(): {
91
- base: (slotProps?: ({
91
+ base: (slotProps?: {
92
92
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
93
93
  isCentered?: boolean | undefined;
94
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
95
- closeButton: (slotProps?: ({
94
+ class?: import("tailwind-variants").ClassNameValue;
95
+ className?: never | undefined;
96
+ } | {
96
97
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
97
98
  isCentered?: boolean | undefined;
98
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
99
- header: (slotProps?: ({
99
+ class?: never | undefined;
100
+ className?: import("tailwind-variants").ClassNameValue;
101
+ } | undefined) => string;
102
+ closeButton: (slotProps?: {
100
103
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
101
104
  isCentered?: boolean | undefined;
102
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
103
- body: (slotProps?: ({
105
+ class?: import("tailwind-variants").ClassNameValue;
106
+ className?: never | undefined;
107
+ } | {
104
108
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
105
109
  isCentered?: boolean | undefined;
106
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
107
- footer: (slotProps?: ({
110
+ class?: never | undefined;
111
+ className?: import("tailwind-variants").ClassNameValue;
112
+ } | undefined) => string;
113
+ header: (slotProps?: {
108
114
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
109
115
  isCentered?: boolean | undefined;
110
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
111
- } & {
112
- base: (slotProps?: ({
116
+ class?: import("tailwind-variants").ClassNameValue;
117
+ className?: never | undefined;
118
+ } | {
113
119
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
114
120
  isCentered?: boolean | undefined;
115
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
116
- closeButton: (slotProps?: ({
121
+ class?: never | undefined;
122
+ className?: import("tailwind-variants").ClassNameValue;
123
+ } | undefined) => string;
124
+ body: (slotProps?: {
117
125
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
118
126
  isCentered?: boolean | undefined;
119
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
120
- header: (slotProps?: ({
127
+ class?: import("tailwind-variants").ClassNameValue;
128
+ className?: never | undefined;
129
+ } | {
121
130
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
122
131
  isCentered?: boolean | undefined;
123
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
124
- body: (slotProps?: ({
132
+ class?: never | undefined;
133
+ className?: import("tailwind-variants").ClassNameValue;
134
+ } | undefined) => string;
135
+ footer: (slotProps?: {
125
136
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
126
137
  isCentered?: boolean | undefined;
127
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
128
- footer: (slotProps?: ({
138
+ class?: import("tailwind-variants").ClassNameValue;
139
+ className?: never | undefined;
140
+ } | {
129
141
  size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
130
142
  isCentered?: boolean | undefined;
131
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
132
- } & {
133
- base: (slotProps?: ({
134
- size?: "xs" | "sm" | "md" | "lg" | "xl" | "full" | undefined;
135
- isCentered?: boolean | undefined;
136
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
143
+ class?: never | undefined;
144
+ className?: import("tailwind-variants").ClassNameValue;
145
+ } | undefined) => string;
137
146
  };
138
147
  get transition(): {
139
148
  didTransitionIn?: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"modal.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/modal.gts"],"names":[],"mappings":"AAgSA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAM3C,OAAgB,EAAE,KAAK,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAoB,EAAE,KAAK,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AACxE,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C,SAAS,GAAG,OAAO,CACpB,CAAC;gBACF,MAAM,EAAE,aAAa,CACnB,aAAa,CAAC,oBAAoB,CAAC,EACnC,cAAc,GAAG,iBAAiB,GAAG,cAAc,CACpD,CAAC;gBACF,IAAI,EAAE,aAAa,CACjB,aAAa,CAAC,kBAAkB,CAAC,EACjC,iBAAiB,CAClB,CAAC;gBACF,MAAM,EAAE,aAAa,CACnB,aAAa,CAAC,oBAAoB,CAAC,EACnC,iBAAiB,CAClB,CAAC;gBACF,QAAQ,EAAE,MAAM,CAAC;aAClB;SACF,CAAC;KACH,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,OAAO,KAAM,SAAQ,SAAS,CAAC,cAAc,CAAC;IAC1D,QAAQ,SAA6B;IAqBrC,eAAe,SAAK;IACX,SAAS,UAAS;IAE3B,cAAc,GAAI,YAAY,OAAO,KAAG,IAAI,CAO1C;IAEF,IAAI,YAAY,IAAI,MAAM,GAAG,SAAS,CAErC;IAiBD,aAAa;;;;;;OAEV;IAEH;;;;;;OAMG;IACH,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAElC;IAED,IAAI,cAAc,IAAI,OAAO,CAE5B;IAED,IAAI,eAAe,IAAI,OAAO,CAI7B;IAED,IAAI,IAAI,8CAEP;IAED,IAAI,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOV;IAED,IAAI,UAAU;;;;;;;;;;;;MAUb;CA2EF"}
@@ -26,6 +26,8 @@ interface PopoverSignature {
26
26
  /**
27
27
  * Options for the floating-ui shift middleware, which nudges the content
28
28
  * along its axis to keep it in view.
29
+ *
30
+ * @defaultValue { padding: 16 }
29
31
  */
30
32
  shiftOptions?: VelcroSignature['Args']['Named']['shiftOptions'];
31
33
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"popover.d.ts","sourceRoot":"","sources":["../../../src/components/overlays/popover.gts"],"names":[],"mappings":"AA8i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;QAAE,OAAO,EAAE,EAAE,CAAA;KAAE,CAAC;CACzB;AAED;;GAEG;AACH,cAAM,OAAQ,SAAQ,SAAS,CAAC,gBAAgB,CAAC;IAC/C,IAAI,IAAI;iBApHsB,WAAW;OA0HxC;IAED,IAAI,UAAU,WAab;IAED,IAAI,QAAQ,IAAI,gBAAgB,CAAC,MAAM,CAAC,CAAC,UAAU,CAAC,CAEnD;IAED,IAAI,UAAU;;;;;;;;;;;;MAUb;IAED,IAAI,WAAW,YAKd;IAED,IAAI,gBAAgB,YAKnB;IAED,QAAQ,aAQN;IAEF,kBAAkB;;;;;;OAIf;IAEH;;;;;;;;;;;;;;OAcG;IACH,iBAAiB;;;;;;OAsBd;IAEH,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAElC;IAED,IAAI,UAAU,IAAI,MAAM,CAGvB;IAED;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACH,aAAa;;;;;;OAyDV;CA0DJ;AAED,OAAO,EACL,OAAO,EACP,OAAO,IAAI,cAAc,EACzB,KAAK,gBAAgB,EACrB,KAAK,gBAAgB,EACtB,CAAC;AACF,eAAe,OAAO,CAAC"}
@@ -15,11 +15,12 @@ interface BadgeSignature {
15
15
  */
16
16
  color?: 'neutral' | 'primary' | 'secondary' | 'tertiary' | 'success' | 'danger';
17
17
  /**
18
- * The size of the badge
18
+ * The size of the badge. Uses Button's size names and text size: the same
19
+ * `@size` gives the same label text size on Badge, Chip and Button.
19
20
  *
20
- * @defaultValue 'md'
21
+ * @defaultValue 'xs'
21
22
  */
22
- size?: 'xs' | 'sm' | 'md' | 'lg';
23
+ size?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';
23
24
  /**
24
25
  * Adds a dot before the content, colored by `@color`.
25
26
  *
@@ -67,6 +68,10 @@ interface BadgeSignature {
67
68
  * When you pass a named block (`<:startIcon>` or `<:endIcon>`), Glimmer no
68
69
  * longer treats loose content as the default block, so put the label in
69
70
  * `<:default>`.
71
+ *
72
+ * Facet 2.0 content parts map one-to-one onto this API, so there are no extra
73
+ * slots: `leading` is the default block, `price` is `@value`, `unit` is
74
+ * `@unit`, `startGlyph` is `<:startIcon>` and `endGlyph` is `<:endIcon>`.
70
75
  */
71
76
  declare class Badge extends Component<BadgeSignature> {
72
77
  get hasValue(): boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/status/badge.gts"],"names":[],"mappings":"AAsJA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,UAAU,cAAc;IACtB,IAAI,EAAE;QACJ;;;;;WAKG;QACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAE7B;;;;WAIG;QACH,KAAK,CAAC,EACJ,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;QAE1E;;;;WAIG;QACH,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;QAEjC;;;;WAIG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;;;WAKG;QACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAExB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,EAAE;QACN;;WAEG;QACH,OAAO,EAAE,EAAE,CAAC;QAEZ;;;WAGG;QACH,SAAS,CAAC,EAAE,EAAE,CAAC;QAEf;;;WAGG;QACH,OAAO,CAAC,EAAE,EAAE,CAAC;KACd,CAAC;IACF,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED;;;;;;;GAOG;AACH,cAAM,KAAM,SAAQ,SAAS,CAAC,cAAc,CAAC;IAE3C,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,UAAU;;;;;;MAgBb;CAgGF;AAED,OAAO,EAAE,KAAK,EAAE,KAAK,cAAc,EAAE,CAAC;AACtC,eAAe,KAAK,CAAC"}
1
+ {"version":3,"file":"badge.d.ts","sourceRoot":"","sources":["../../../src/components/status/badge.gts"],"names":[],"mappings":"AA2JA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,UAAU,cAAc;IACtB,IAAI,EAAE;QACJ;;;;;WAKG;QACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;QAE7B;;;;WAIG;QACH,KAAK,CAAC,EACJ,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,CAAC;QAE1E;;;;;WAKG;QACH,IAAI,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,CAAC;QAExD;;;;WAIG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;WAEG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;;;;WAKG;QACH,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;QAExB;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;KACf,CAAC;IACF,MAAM,EAAE;QACN;;WAEG;QACH,OAAO,EAAE,EAAE,CAAC;QAEZ;;;WAGG;QACH,SAAS,CAAC,EAAE,EAAE,CAAC;QAEf;;;WAGG;QACH,OAAO,CAAC,EAAE,EAAE,CAAC;KACd,CAAC;IACF,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED;;;;;;;;;;;GAWG;AACH,cAAM,KAAM,SAAQ,SAAS,CAAC,cAAc,CAAC;IAE3C,IAAI,QAAQ,IAAI,OAAO,CAEtB;IAED,IAAI,UAAU;;;;;;MAgBb;CAgGF;AAED,OAAO,EAAE,KAAK,EAAE,KAAK,cAAc,EAAE,CAAC;AACtC,eAAe,KAAK,CAAC"}
@@ -74,50 +74,51 @@ interface AvatarSignature {
74
74
  declare class Avatar extends Component<AvatarSignature> {
75
75
  failedSrc?: string | null;
76
76
  get classes(): {
77
- base: (slotProps?: ({
77
+ base: (slotProps?: {
78
78
  size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
79
79
  shape?: "circle" | "square" | undefined;
80
80
  isBordered?: boolean | undefined;
81
81
  fit?: "cover" | "contain" | undefined;
82
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
83
- img: (slotProps?: ({
82
+ class?: import("tailwind-variants").ClassNameValue;
83
+ className?: never | undefined;
84
+ } | {
84
85
  size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
85
86
  shape?: "circle" | "square" | undefined;
86
87
  isBordered?: boolean | undefined;
87
88
  fit?: "cover" | "contain" | undefined;
88
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
89
- name: (slotProps?: ({
89
+ class?: never | undefined;
90
+ className?: import("tailwind-variants").ClassNameValue;
91
+ } | undefined) => string;
92
+ img: (slotProps?: {
90
93
  size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
91
94
  shape?: "circle" | "square" | undefined;
92
95
  isBordered?: boolean | undefined;
93
96
  fit?: "cover" | "contain" | undefined;
94
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
95
- } & {
96
- base: (slotProps?: ({
97
+ class?: import("tailwind-variants").ClassNameValue;
98
+ className?: never | undefined;
99
+ } | {
97
100
  size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
98
101
  shape?: "circle" | "square" | undefined;
99
102
  isBordered?: boolean | undefined;
100
103
  fit?: "cover" | "contain" | undefined;
101
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
102
- img: (slotProps?: ({
104
+ class?: never | undefined;
105
+ className?: import("tailwind-variants").ClassNameValue;
106
+ } | undefined) => string;
107
+ name: (slotProps?: {
103
108
  size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
104
109
  shape?: "circle" | "square" | undefined;
105
110
  isBordered?: boolean | undefined;
106
111
  fit?: "cover" | "contain" | undefined;
107
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
108
- name: (slotProps?: ({
112
+ class?: import("tailwind-variants").ClassNameValue;
113
+ className?: never | undefined;
114
+ } | {
109
115
  size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
110
116
  shape?: "circle" | "square" | undefined;
111
117
  isBordered?: boolean | undefined;
112
118
  fit?: "cover" | "contain" | undefined;
113
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
114
- } & {
115
- base: (slotProps?: ({
116
- size?: "xs" | "sm" | "md" | "lg" | "xl" | undefined;
117
- shape?: "circle" | "square" | undefined;
118
- isBordered?: boolean | undefined;
119
- fit?: "cover" | "contain" | undefined;
120
- } & import("tailwind-variants").ClassProp<import("tailwind-variants").ClassValue>) | undefined) => string;
119
+ class?: never | undefined;
120
+ className?: import("tailwind-variants").ClassNameValue;
121
+ } | undefined) => string;
121
122
  };
122
123
  get hasImage(): boolean;
123
124
  handleImageError: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"avatar.d.ts","sourceRoot":"","sources":["../../../src/components/utilities/avatar.gts"],"names":[],"mappings":"AAuLA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,OAAO,EAEL,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,cAAc,EACpB,MAAM,iBAAiB,CAAC;AAEzB,UAAU,eAAe;IACvB,IAAI,EAAE;QACJ;;;;WAIG;QACH,IAAI,CAAC,EAAE,cAAc,CAAC,MAAM,CAAC,CAAC;QAE9B;;;;WAIG;QACH,KAAK,CAAC,EAAE,cAAc,CAAC,OAAO,CAAC,CAAC;QAEhC;;;;;;WAMG;QACH,GAAG,CAAC,EAAE,cAAc,CAAC,KAAK,CAAC,CAAC;QAE5B;;;;;WAKG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;QAErB;;;;;WAKG;QACH,GAAG,CAAC,EA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;QACH,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;QAEpB;;;;WAIG;QACH,IAAI,CAAC,EAAE,MAAM,CAAC;QAEd;;;;WAIG;QACH,SAAS,CAAC,EAAE,MAAM,CAAC;QAEnB;;;;WAIG;QACH,QAAQ,CAAC,EAAE,MAAM,CAAC;QAElB;;;;;WAKG;QACH,GAAG,CAAC,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,OAAO,CAAC,EAAE,cAAc,CAAC,WAAW,CAAC,CAAC;KACvC,CAAC;IAEF;;OAEG;IACH,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,cAAM,MAAO,SAAQ,SAAS,CAAC,eAAe,CAAC;IAGpC,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAEnC,IAAI,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQV;IAED,IAAI,QAAQ,YAGX;IAED,gBAAgB,aAEd;IAEF,IAAI,QAAQ,WAmBX;IAED,IAAI,kBAAkB,YAOrB;CA4DF;AAED,OAAO,EAAE,MAAM,EAAE,CAAC;AAClB,eAAe,MAAM,CAAC"}
@@ -0,0 +1,94 @@
1
+ import Component from '@glimmer/component';
2
+ interface CardSignature {
3
+ Args: {
4
+ /**
5
+ * The surface treatment. `outline` is a bordered card, `flat` has no
6
+ * visible border, and `soft` swaps the fill for a faint tint with no
7
+ * border.
8
+ *
9
+ * @defaultValue 'outline'
10
+ */
11
+ variant?: 'outline' | 'flat' | 'soft';
12
+ /**
13
+ * Colours the hover and selected border. The resting border is neutral
14
+ * either way. The border is 1px in every state; hover and selected add a
15
+ * second 1px inset layer in the same colour so they read as 2px without a
16
+ * layout shift.
17
+ *
18
+ * @defaultValue 'neutral'
19
+ */
20
+ color?: 'neutral' | 'primary';
21
+ /**
22
+ * How much padding surrounds the contents.
23
+ *
24
+ * @defaultValue 'comfortable'
25
+ */
26
+ density?: 'compact' | 'comfortable' | 'spacious';
27
+ /**
28
+ * `raised` gives an `outline` card its shadow, and lifts it on hover when
29
+ * the card is interactive. `none` removes both. `flat` and `soft` never
30
+ * have a shadow, so this changes nothing for them.
31
+ *
32
+ * @defaultValue 'raised'
33
+ */
34
+ elevation?: 'raised' | 'none';
35
+ /**
36
+ * Shows the card as selected. This is appearance only: Card holds no
37
+ * selection state, and does not set `role` or `aria-*` for you. Pair it
38
+ * with whatever provides the selection behaviour and semantics. A selected
39
+ * card also shows the `indicator` block, if one is passed.
40
+ *
41
+ * @defaultValue false
42
+ */
43
+ isSelected?: boolean;
44
+ /**
45
+ * Adds the hover, pressed, focus-visible and pointer styles for a card
46
+ * that can be clicked. It does not make the card focusable or add an
47
+ * event handler; use a `button`, a link, or `role` and `tabindex` through
48
+ * `...attributes` for that.
49
+ *
50
+ * @defaultValue false
51
+ */
52
+ isInteractive?: boolean;
53
+ /**
54
+ * Dims the card and removes its hover and pressed styles. Disabled and
55
+ * selected can be combined: the selected border and its inset layer stay
56
+ * visible.
57
+ *
58
+ * @defaultValue false
59
+ */
60
+ isDisabled?: boolean;
61
+ /**
62
+ * Custom class name, it will override the default ones using Tailwind
63
+ * Merge library.
64
+ */
65
+ class?: string;
66
+ };
67
+ Blocks: {
68
+ /**
69
+ * The card's contents. Card has no regions of its own; lay them out here.
70
+ * When the `indicator` block is also used, the contents go in
71
+ * `<:default>`, because named blocks cannot sit beside loose content.
72
+ */
73
+ default: [];
74
+ /**
75
+ * Opts in to a selection indicator: a small circle at the card's top-right
76
+ * corner holding whatever you pass, usually a check icon from your own
77
+ * icon library. It is shown only while the card is selected, is hidden
78
+ * from assistive technology, and takes its fill from `@color`. Card never
79
+ * supplies the icon, so it depends on no icon set.
80
+ *
81
+ * A parent with `overflow: hidden` clips the part that overhangs the
82
+ * corner.
83
+ */
84
+ indicator?: [];
85
+ };
86
+ Element: HTMLDivElement;
87
+ }
88
+ declare class Card extends Component<CardSignature> {
89
+ get classNames(): string;
90
+ get indicatorClassNames(): string;
91
+ }
92
+ export { Card };
93
+ export default Card;
94
+ //# sourceMappingURL=card.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"card.d.ts","sourceRoot":"","sources":["../../../src/components/utilities/card.gts"],"names":[],"mappings":"AAmJA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAG3C,UAAU,aAAa;IACrB,IAAI,EAAE;QACJ;;;;;;WAMG;QACH,OAAO,CAAC,EAAE,SAAS,GAAG,MAAM,GAAG,MAAM,CAAC;QAEtC;;;;;;;WAOG;QACH,KAAK,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;QAE9B;;;;WAIG;QACH,OAAO,CAAC,EAAE,SAAS,GAAG,aAAa,GAAG,UAAU,CAAC;QAEjD;;;;;;WAMG;QACH,SAAS,CAAC,EAAE,QAAQ,GAAG,MAAM,CAAC;QAE9B;;;;;;;WAOG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;QAErB;;;;;;;WAOG;QACH,aAAa,CAAC,EAAE,OAAO,CAAC;QAExB;;;;;;WAMG;QACH,UAAU,CAAC,EAAE,OAAO,CAAC;QAErB;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,MAAM,EAAE;QACN;;;;WAIG;QACH,OAAO,EAAE,EAAE,CAAC;QAEZ;;;;;;;;;WASG;QACH,SAAS,CAAC,EAAE,EAAE,CAAC;KAChB,CAAC;IACF,OAAO,EAAE,cAAc,CAAC;CACzB;AAED,cAAM,IAAK,SAAQ,SAAS,CAAC,aAAa,CAAC;IACzC,IAAI,UAAU,WAab;IAED,IAAI,mBAAmB,WAItB;CA8CF;AAED,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,eAAe,IAAI,CAAC"}
@@ -0,0 +1,57 @@
1
+ import Component from '@glimmer/component';
2
+ import { type IconVariants } from '@frontile/theme';
3
+ export interface IconSignature {
4
+ Args: {
5
+ /**
6
+ * The size of the circle. The icon inside scales with it.
7
+ *
8
+ * @defaultValue 'md'
9
+ */
10
+ size?: IconVariants['size'];
11
+ /**
12
+ * The color role. A `plain` icon without a color takes the color of the
13
+ * surrounding text; every other variant defaults to `neutral`.
14
+ */
15
+ color?: IconVariants['color'];
16
+ /**
17
+ * How the circle is drawn. `plain` has no circle, only the icon. `solid`,
18
+ * `soft` and `subtle` fill it at decreasing strength, and `outline` draws
19
+ * a ring. A plain icon's box is tighter than the circle of the other
20
+ * variants at the same size.
21
+ *
22
+ * @defaultValue 'plain'
23
+ */
24
+ variant?: IconVariants['variant'];
25
+ /**
26
+ * Draws the icon, its fill and its ring in the opposite light or dark
27
+ * scheme, for an icon on a surface of the other scheme. An inverse plain
28
+ * icon with no `@color` is neutral.
29
+ *
30
+ * @defaultValue false
31
+ */
32
+ inverse?: boolean;
33
+ /**
34
+ * The accessible name. Without it the icon is decorative and hidden from
35
+ * screen readers; set it when the icon carries meaning on its own.
36
+ */
37
+ label?: string;
38
+ /**
39
+ * Custom classes for the root element, merged over the defaults.
40
+ */
41
+ classes?: {
42
+ base?: string;
43
+ };
44
+ };
45
+ Blocks: {
46
+ /** The icon, for example an inline `<svg>` or a `FaIcon`. */
47
+ default: [];
48
+ };
49
+ Element: HTMLSpanElement;
50
+ }
51
+ declare class Icon extends Component<IconSignature> {
52
+ defaultColor(variant: string): 'neutral' | undefined;
53
+ get classNames(): string;
54
+ }
55
+ export { Icon };
56
+ export default Icon;
57
+ //# sourceMappingURL=icon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"icon.d.ts","sourceRoot":"","sources":["../../../src/components/utilities/icon.gts"],"names":[],"mappings":"AAwFA,OAAO,SAAS,MAAM,oBAAoB,CAAC;AAC3C,OAAO,EAAa,KAAK,YAAY,EAAE,MAAM,iBAAiB,CAAC;AAE/D,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE;QACJ;;;;WAIG;QACH,IAAI,CAAC,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;QAE5B;;;WAGG;QACH,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;QAE9B;;;;;;;WAOG;QACH,OAAO,CAAC,EAAE,YAAY,CAAC,SAAS,CAAC,CAAC;QAElC;;;;;;WAMG;QACH,OAAO,CAAC,EAAE,OAAO,CAAC;QAElB;;;WAGG;QACH,KAAK,CAAC,EAAE,MAAM,CAAC;QAEf;;WAEG;QACH,OAAO,CAAC,EAAE;YAAE,IAAI,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;KAC7B,CAAC;IACF,MAAM,EAAE;QACN,6DAA6D;QAC7D,OAAO,EAAE,EAAE,CAAC;KACb,CAAC;IACF,OAAO,EAAE,eAAe,CAAC;CAC1B;AAED,cAAM,IAAK,SAAQ,SAAS,CAAC,aAAa,CAAC;IAGzC,YAAY,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;IAIpD,IAAI,UAAU,IAAI,MAAM,CAWvB;CAwBF;AAED,OAAO,EAAE,IAAI,EAAE,CAAC;AAChB,eAAe,IAAI,CAAC"}
@@ -1,8 +1,10 @@
1
1
  import 'focus-visible/dist/focus-visible.js';
2
2
  export * from './avatar';
3
+ export * from './icon';
3
4
  export * from './visually-hidden';
4
5
  export * from './collapsible';
5
6
  export * from './divider';
7
+ export * from './card';
6
8
  export * from './kbd';
7
9
  export * from '../../utils/keys';
8
10
  export * from './skeleton';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/utilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC;AAE7C,cAAc,UAAU,CAAC;AACzB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/utilities/index.ts"],"names":[],"mappings":"AAAA,OAAO,qCAAqC,CAAC;AAE7C,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,QAAQ,CAAC;AACvB,cAAc,OAAO,CAAC;AACtB,cAAc,kBAAkB,CAAC;AACjC,cAAc,YAAY,CAAC;AAC3B,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,0BAA0B,CAAC;AACzC,cAAc,uBAAuB,CAAC;AACtC,cAAc,iCAAiC,CAAC"}
package/dist/buttons.js CHANGED
@@ -1,5 +1,6 @@
1
1
  export { Button } from './components/buttons/button.js';
2
2
  export { CloseButton } from './components/buttons/close-button.js';
3
+ export { IconButton } from './components/buttons/icon-button.js';
3
4
  export { ToggleButton } from './components/buttons/toggle-button.js';
4
5
  export { ButtonGroup } from './components/buttons/button-group.js';
5
6
  export { Chip } from './components/buttons/chip.js';
@@ -1 +1 @@
1
- {"version":3,"file":"buttons.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
1
+ {"version":3,"file":"buttons.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
@@ -3,7 +3,7 @@ import { hash } from '@ember/helper';
3
3
  import { useStyles } from '@frontile/theme';
4
4
  import { Button } from './button.js';
5
5
  import { ToggleButton } from './toggle-button.js';
6
- import { r as renamedArgValue } from '../../deprecated-args-BIUjLA8y.js';
6
+ import { r as renamedArgValue } from '../../deprecated-args-D6KS2fwp.js';
7
7
  import { precompileTemplate } from '@ember/template-compilation';
8
8
  import { setComponentTemplate } from '@ember/component';
9
9
 
@@ -4,11 +4,11 @@ import { modifier } from 'ember-modifier';
4
4
  import { useStyles } from '@frontile/theme';
5
5
  import press from '../../modifiers/press.js';
6
6
  import { Spinner } from '../utilities/spinner.js';
7
- import { r as renamedArgValue } from '../../deprecated-args-BIUjLA8y.js';
7
+ import { r as renamedArgValue } from '../../deprecated-args-D6KS2fwp.js';
8
8
  import { precompileTemplate } from '@ember/template-compilation';
9
9
  import { setComponentTemplate } from '@ember/component';
10
10
  import templateOnly from '@ember/component/template-only';
11
- import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-BOdRhmsS.js';
11
+ import { d as decorateFieldV2, i as initializeDeferredDecorator, a as decorateMethodV2 } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
12
12
 
13
13
  const disableWhile = modifier((el, [loading]) => {
14
14
  if (!loading) {
@@ -1 +1 @@
1
- {"version":3,"file":"button.js","sources":["../../../src/components/buttons/button.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { cached, tracked } from '@glimmer/tracking';\nimport { modifier } from 'ember-modifier';\nimport type { TOC } from '@ember/component/template-only';\nimport { useStyles } from '@frontile/theme';\nimport { press, type PressEvent } from '../../modifiers/press';\nimport { Spinner } from '../utilities/spinner';\nimport { renamedArgValue } from '../../-private/deprecated-args';\n\n/**\n * Sets `disabled` on the element while `loading` is true, restoring whatever\n * the consumer had before. This is a modifier rather than a plain attribute\n * because splattributes are applied last: `disabled={{@isLoading}}` written\n * before `...attributes` is clobbered by a consumer's own `disabled`, and\n * written after it a consumer's `disabled={{false}}` would erase ours.\n * Modifiers run after attributes, so neither ordering problem applies.\n *\n * Known limitation: this re-runs only when `loading` changes, so `previous`\n * is a snapshot taken once at install time — it goes stale if the consumer's\n * own `disabled` binding changes while loading is already in flight, in\n * either direction:\n *\n * - true → false: Glimmer rewrites the attribute to `false`, we do not\n * re-run, so the button stays disabled (from our own `el.disabled = true`)\n * until loading ends and teardown restores the stale `previous` (`false`),\n * which happens to match — net: the button goes live at the same moment,\n * with the disabling outliving the intent for no visible reason.\n * - false → true: Glimmer rewrites the attribute to `true`, we do not\n * re-run, so `previous` is left holding the stale `false`. When loading\n * ends, teardown restores `previous` and sets `disabled = false` — the\n * button ends up enabled even though the consumer's binding says\n * `disabled={{true}}`. This is a fail-open: the consumer's disable is\n * silently and indefinitely lost. See the\n * `'known limitation: a consumer disable applied mid-load is lost when\n * loading ends'` test in buttons-test.gts, which pins this exact case.\n *\n * Closing this would need a MutationObserver watching `disabled` for a case\n * nobody has hit; the project has decided not to add one.\n */\nconst disableWhile = modifier((el: HTMLButtonElement, [loading]: [boolean]) => {\n if (!loading) {\n return;\n }\n\n const previous = el.disabled;\n el.disabled = true;\n\n return () => {\n el.disabled = previous;\n };\n});\n\n/**\n * The spinner stands in for the icon while loading, on whichever side\n * `@iconPlacement` puts it. Extracted so the spinner-or-icon choice is written\n * once; the caller passes the icon through as this component's default block.\n *\n * The invocation below is still written twice, once per side, and that is\n * deliberate: the block contains `{{yield to=\"icon\"}}`, and Glimmer has no way\n * to hoist a block-yielding invocation into a `{{#let}}` or a helper. Only the\n * choice was deduplicated, not the two call sites.\n */\nconst SpinnerOrIcon: TOC<{\n Args: {\n isLoading: boolean;\n spinnerClass: string;\n };\n Blocks: {\n default: [];\n };\n}> = <template>\n {{#if @isLoading}}\n <Spinner @class={{@spinnerClass}} />\n {{else}}\n {{yield}}\n {{/if}}\n</template>;\n\nexport interface ButtonArgs {\n /**\n * The HTML type of the button\n *\n * @defaultValue 'button'\n */\n type?: 'button' | 'submit' | 'reset';\n\n /**\n * The button variant.\n *\n * @defaultValue 'solid'\n */\n variant?:\n 'solid' | 'soft' | 'subtle' | 'outline' | 'ghost' | 'plain' | 'custom';\n\n /**\n * @deprecated Use `variant`. `default` is now `solid`, `outlined` is\n * `outline`, and `minimal` is `plain`.\n */\n appearance?: 'default' | 'soft' | 'outlined' | 'minimal' | 'tonal' | 'custom';\n\n /**\n * The color of the button\n */\n color?:\n | 'neutral'\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'success'\n | 'warning'\n | 'danger';\n\n /**\n * @deprecated Use `color`. `default` is now `neutral`.\n */\n intent?:\n | 'default'\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'success'\n | 'warning'\n | 'danger';\n\n /**\n * The size of the button\n */\n size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n /**\n * Disable rendering the button element. It yields an object with classNames instead.\n */\n isRenderless?: boolean;\n\n /**\n * Custom class name, it will override the default ones using Tailwind Merge library.\n */\n class?: string;\n\n /**\n * If button is part of a group. Most of the time, this is automatically set\n * when using the ButtonGroup component.\n */\n isInGroup?: boolean;\n\n /**\n * Renders a spinner in place of the icon and disables the button.\n *\n * @defaultValue false\n */\n isLoading?: boolean;\n\n /**\n * Which side the `icon` block — and the loading spinner that replaces it —\n * sits on.\n *\n * @defaultValue 'start'\n */\n iconPlacement?: 'start' | 'end';\n\n /**\n * Callback for when the button is pressed.\n */\n onPress?: (event: PressEvent) => void;\n}\n\ninterface ButtonSignature {\n Args: ButtonArgs;\n Blocks: {\n default: [{ classNames: string; isLoading: boolean }];\n icon?: [];\n loading?: [];\n };\n Element: HTMLButtonElement;\n}\n\nclass Button extends Component<ButtonSignature> {\n @tracked isPressed = false;\n\n get type(): string {\n if (this.args.type) {\n return this.args.type;\n }\n return 'button';\n }\n\n get isLoading(): boolean {\n return this.args.isLoading === true;\n }\n\n get isIconAtEnd(): boolean {\n return this.args.iconPlacement === 'end';\n }\n\n get isIconAtStart(): boolean {\n return !this.isIconAtEnd;\n }\n\n @cached\n get classNames(): string {\n const { button } = useStyles();\n\n return button({\n color:\n renamedArgValue(\n this.args.color,\n this.args.intent,\n { default: 'neutral' } as const,\n {\n component: 'Button',\n from: 'intent',\n to: 'color',\n id: 'frontile.button.intent'\n }\n ) || 'neutral',\n size: this.args.size,\n variant:\n renamedArgValue(\n this.args.variant,\n this.args.appearance,\n {\n default: 'solid',\n outlined: 'outline',\n minimal: 'plain',\n soft: 'subtle',\n tonal: 'soft'\n } as const,\n {\n component: 'Button',\n from: 'appearance',\n to: 'variant',\n id: 'frontile.button.appearance'\n }\n ) || 'solid',\n isInGroup: this.args.isInGroup,\n isLoading: this.isLoading,\n class: this.args.class\n });\n }\n\n @cached\n get spinnerClassNames(): string {\n const { buttonSpinner } = useStyles();\n\n return buttonSpinner();\n }\n\n /**\n * The object yielded to the default block (and, when `@isRenderless`, in\n * place of rendering). Hoisted so the shape is written once — it's part of\n * this component's public contract, asserted on directly by tests.\n */\n @cached\n get yieldedHash(): { classNames: string; isLoading: boolean } {\n return { classNames: this.classNames, isLoading: this.isLoading };\n }\n\n handlePressChange = (isPressed: boolean): void => {\n this.isPressed = isPressed;\n };\n\n onPress = (event: PressEvent) => {\n if (typeof this.args.onPress === 'function') {\n this.args.onPress(event);\n }\n };\n\n <template>\n {{#if @isRenderless}}\n {{yield this.yieldedHash}}\n {{else}}\n <button\n type={{this.type}}\n class={{this.classNames}}\n aria-busy={{if this.isLoading \"true\"}}\n data-loading={{if this.isLoading \"true\"}}\n data-pressed={{if this.isPressed \"true\"}}\n data-component=\"button\"\n data-part=\"base\"\n {{press this.onPress onPressChange=this.handlePressChange}}\n ...attributes\n {{disableWhile this.isLoading}}\n >\n {{#if this.isIconAtStart}}\n <SpinnerOrIcon\n @isLoading={{this.isLoading}}\n @spinnerClass={{this.spinnerClassNames}}\n >\n {{yield to=\"icon\"}}\n </SpinnerOrIcon>\n {{/if}}\n\n {{#if this.isLoading}}\n {{#if (has-block \"loading\")}}\n {{yield to=\"loading\"}}\n {{else}}\n {{yield this.yieldedHash}}\n {{/if}}\n {{else}}\n {{yield this.yieldedHash}}\n {{/if}}\n\n {{#if this.isIconAtEnd}}\n <SpinnerOrIcon\n @isLoading={{this.isLoading}}\n @spinnerClass={{this.spinnerClassNames}}\n >\n {{yield to=\"icon\"}}\n </SpinnerOrIcon>\n {{/if}}\n </button>\n {{/if}}\n </template>\n}\n\nexport { Button, type ButtonSignature };\nexport default Button;\n"],"names":["disableWhile","modifier","el","loading","previous","disabled","SpinnerOrIcon","setComponentTemplate","precompileTemplate","strictMode","scope","Spinner","templateOnly","Button","Component","g","prototype","tracked","i","type","args","isLoading","isIconAtEnd","iconPlacement","isIconAtStart","classNames","button","useStyles","color","renamedArgValue","intent","default","component","from","to","id","size","variant","appearance","outlined","minimal","soft","tonal","isInGroup","class","n","cached","spinnerClassNames","buttonSpinner","yieldedHash","handlePressChange","isPressed","onPress","event","press"],"mappings":";;;;;;;;;;;;AAuCA,MAAMA,eAAeC,QAAA,CAAS,CAACC,EAAI,EAAmB,CAACC,OAAA,CAAmB,KAAA;EACxE,IAAI,CAACA,OAAA,EAAS;AACZ,IAAA;AACF,EAAA;AAEA,EAAA,MAAMC,QAAA,GAAWF,GAAGG,QAAQ;EAC5BH,EAAA,CAAGG,QAAQ,GAAG,IAAA;AAEd,EAAA,OAAO,MAAA;IACLH,EAAA,CAAGG,QAAQ,GAAGD,QAAA;EAChB,CAAA;AACF,CAAA,CAAA;AAEA;;;;;;;;;AASC;AACD,MAAME,aAQD,GAAAC,oBAAA,CAAAC,kBAAA,CAAA,4FAAA,EAML;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA,CAAA;AAoGV,MAAMC,eAAeC,SAAA,CAAU;AAAA,EAAA;IAAAC,eAAA,CAAA,IAAA,CAAAC,SAAA,EAAA,WAAA,EAAA,CAC5BC,OAAA,CAAA,EAAA,YAAA;AAAA,MAAA,OAAoB,KAAA;AAAA,IAAA,CAAA,CAAA;AAAA;EAAA,UAAA,IAAAC,2BAAA,CAAA,IAAA,EAAA,WAAA,CAAA,EAAA,MAAA;EAErB,IAAIC,IAAAA,GAAe;AACjB,IAAA,IAAI,IAAI,CAACC,IAAI,CAACD,IAAI,EAAE;AAClB,MAAA,OAAO,IAAI,CAAC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CAAA;AAAD;AACZ;;"}
1
+ {"version":3,"file":"button.js","sources":["../../../src/components/buttons/button.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { cached, tracked } from '@glimmer/tracking';\nimport { modifier } from 'ember-modifier';\nimport type { TOC } from '@ember/component/template-only';\nimport { useStyles } from '@frontile/theme';\nimport { press, type PressEvent } from '../../modifiers/press';\nimport { Spinner } from '../utilities/spinner';\nimport { renamedArgValue } from '../../-private/deprecated-args';\n\n/**\n * Sets `disabled` on the element while `loading` is true, restoring whatever\n * the consumer had before. This is a modifier rather than a plain attribute\n * because splattributes are applied last: `disabled={{@isLoading}}` written\n * before `...attributes` is clobbered by a consumer's own `disabled`, and\n * written after it a consumer's `disabled={{false}}` would erase ours.\n * Modifiers run after attributes, so neither ordering problem applies.\n *\n * Known limitation: this re-runs only when `loading` changes, so `previous`\n * is a snapshot taken once at install time — it goes stale if the consumer's\n * own `disabled` binding changes while loading is already in flight, in\n * either direction:\n *\n * - true → false: Glimmer rewrites the attribute to `false`, we do not\n * re-run, so the button stays disabled (from our own `el.disabled = true`)\n * until loading ends and teardown restores the stale `previous` (`false`),\n * which happens to match — net: the button goes live at the same moment,\n * with the disabling outliving the intent for no visible reason.\n * - false → true: Glimmer rewrites the attribute to `true`, we do not\n * re-run, so `previous` is left holding the stale `false`. When loading\n * ends, teardown restores `previous` and sets `disabled = false` — the\n * button ends up enabled even though the consumer's binding says\n * `disabled={{true}}`. This is a fail-open: the consumer's disable is\n * silently and indefinitely lost. See the\n * `'known limitation: a consumer disable applied mid-load is lost when\n * loading ends'` test in buttons-test.gts, which pins this exact case.\n *\n * Closing this would need a MutationObserver watching `disabled` for a case\n * nobody has hit; the project has decided not to add one.\n */\nconst disableWhile = modifier((el: HTMLButtonElement, [loading]: [boolean]) => {\n if (!loading) {\n return;\n }\n\n const previous = el.disabled;\n el.disabled = true;\n\n return () => {\n el.disabled = previous;\n };\n});\n\n/**\n * The spinner stands in for the icon while loading, on whichever side\n * `@iconPlacement` puts it. Extracted so the spinner-or-icon choice is written\n * once; the caller passes the icon through as this component's default block.\n *\n * The invocation below is still written twice, once per side, and that is\n * deliberate: the block contains `{{yield to=\"icon\"}}`, and Glimmer has no way\n * to hoist a block-yielding invocation into a `{{#let}}` or a helper. Only the\n * choice was deduplicated, not the two call sites.\n */\nconst SpinnerOrIcon: TOC<{\n Args: {\n isLoading: boolean;\n spinnerClass: string;\n };\n Blocks: {\n default: [];\n };\n}> = <template>\n {{#if @isLoading}}\n <Spinner @class={{@spinnerClass}} />\n {{else}}\n {{yield}}\n {{/if}}\n</template>;\n\nexport interface ButtonArgs {\n /**\n * The HTML type of the button\n *\n * @defaultValue 'button'\n */\n type?: 'button' | 'submit' | 'reset';\n\n /**\n * The button variant. `glass` is a translucent, color-less fill (it ignores\n * `color`) for use over a colored or imaged surface. `link` is inline, with\n * no fill or side padding, and underlines on hover.\n *\n * @defaultValue 'solid'\n */\n variant?:\n | 'solid'\n | 'soft'\n | 'subtle'\n | 'outline'\n | 'ghost'\n | 'plain'\n | 'custom'\n | 'glass'\n | 'link';\n\n /**\n * @deprecated Use `variant`. `default` is now `solid`, `outlined` is\n * `outline`, and `minimal` is `plain`.\n */\n appearance?: 'default' | 'soft' | 'outlined' | 'minimal' | 'tonal' | 'custom';\n\n /**\n * The color of the button\n */\n color?:\n | 'neutral'\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'success'\n | 'warning'\n | 'danger';\n\n /**\n * @deprecated Use `color`. `default` is now `neutral`.\n */\n intent?:\n | 'default'\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'success'\n | 'warning'\n | 'danger';\n\n /**\n * The size of the button\n */\n size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n /**\n * Disable rendering the button element. It yields an object with classNames instead.\n */\n isRenderless?: boolean;\n\n /**\n * Custom class name, it will override the default ones using Tailwind Merge library.\n */\n class?: string;\n\n /**\n * If button is part of a group. Most of the time, this is automatically set\n * when using the ButtonGroup component.\n */\n isInGroup?: boolean;\n\n /**\n * Renders a spinner in place of the icon and disables the button.\n *\n * @defaultValue false\n */\n isLoading?: boolean;\n\n /**\n * Which side the `icon` block — and the loading spinner that replaces it —\n * sits on.\n *\n * @defaultValue 'start'\n */\n iconPlacement?: 'start' | 'end';\n\n /**\n * Callback for when the button is pressed.\n */\n onPress?: (event: PressEvent) => void;\n}\n\ninterface ButtonSignature {\n Args: ButtonArgs;\n Blocks: {\n default: [{ classNames: string; isLoading: boolean }];\n icon?: [];\n loading?: [];\n };\n Element: HTMLButtonElement;\n}\n\nclass Button extends Component<ButtonSignature> {\n @tracked isPressed = false;\n\n get type(): string {\n if (this.args.type) {\n return this.args.type;\n }\n return 'button';\n }\n\n get isLoading(): boolean {\n return this.args.isLoading === true;\n }\n\n get isIconAtEnd(): boolean {\n return this.args.iconPlacement === 'end';\n }\n\n get isIconAtStart(): boolean {\n return !this.isIconAtEnd;\n }\n\n @cached\n get classNames(): string {\n const { button } = useStyles();\n\n return button({\n color:\n renamedArgValue(\n this.args.color,\n this.args.intent,\n { default: 'neutral' } as const,\n {\n component: 'Button',\n from: 'intent',\n to: 'color',\n id: 'frontile.button.intent'\n }\n ) || 'neutral',\n size: this.args.size,\n variant:\n renamedArgValue(\n this.args.variant,\n this.args.appearance,\n {\n default: 'solid',\n outlined: 'outline',\n minimal: 'plain',\n soft: 'subtle',\n tonal: 'soft'\n } as const,\n {\n component: 'Button',\n from: 'appearance',\n to: 'variant',\n id: 'frontile.button.appearance'\n }\n ) || 'solid',\n isInGroup: this.args.isInGroup,\n isLoading: this.isLoading,\n class: this.args.class\n });\n }\n\n @cached\n get spinnerClassNames(): string {\n const { buttonSpinner } = useStyles();\n\n return buttonSpinner();\n }\n\n /**\n * The object yielded to the default block (and, when `@isRenderless`, in\n * place of rendering). Hoisted so the shape is written once — it's part of\n * this component's public contract, asserted on directly by tests.\n */\n @cached\n get yieldedHash(): { classNames: string; isLoading: boolean } {\n return { classNames: this.classNames, isLoading: this.isLoading };\n }\n\n handlePressChange = (isPressed: boolean): void => {\n this.isPressed = isPressed;\n };\n\n onPress = (event: PressEvent) => {\n if (typeof this.args.onPress === 'function') {\n this.args.onPress(event);\n }\n };\n\n <template>\n {{#if @isRenderless}}\n {{yield this.yieldedHash}}\n {{else}}\n <button\n type={{this.type}}\n class={{this.classNames}}\n aria-busy={{if this.isLoading \"true\"}}\n data-loading={{if this.isLoading \"true\"}}\n data-pressed={{if this.isPressed \"true\"}}\n data-component=\"button\"\n data-part=\"base\"\n {{press this.onPress onPressChange=this.handlePressChange}}\n ...attributes\n {{disableWhile this.isLoading}}\n >\n {{#if this.isIconAtStart}}\n <SpinnerOrIcon\n @isLoading={{this.isLoading}}\n @spinnerClass={{this.spinnerClassNames}}\n >\n {{yield to=\"icon\"}}\n </SpinnerOrIcon>\n {{/if}}\n\n {{#if this.isLoading}}\n {{#if (has-block \"loading\")}}\n {{yield to=\"loading\"}}\n {{else}}\n {{yield this.yieldedHash}}\n {{/if}}\n {{else}}\n {{yield this.yieldedHash}}\n {{/if}}\n\n {{#if this.isIconAtEnd}}\n <SpinnerOrIcon\n @isLoading={{this.isLoading}}\n @spinnerClass={{this.spinnerClassNames}}\n >\n {{yield to=\"icon\"}}\n </SpinnerOrIcon>\n {{/if}}\n </button>\n {{/if}}\n </template>\n}\n\nexport { Button, type ButtonSignature };\nexport default Button;\n"],"names":["disableWhile","modifier","el","loading","previous","disabled","SpinnerOrIcon","setComponentTemplate","precompileTemplate","strictMode","scope","Spinner","templateOnly","Button","Component","g","prototype","tracked","i","type","args","isLoading","isIconAtEnd","iconPlacement","isIconAtStart","classNames","button","useStyles","color","renamedArgValue","intent","default","component","from","to","id","size","variant","appearance","outlined","minimal","soft","tonal","isInGroup","class","n","cached","spinnerClassNames","buttonSpinner","yieldedHash","handlePressChange","isPressed","onPress","event","press"],"mappings":";;;;;;;;;;;;AAuCA,MAAMA,eAAeC,QAAA,CAAS,CAACC,EAAI,EAAmB,CAACC,OAAA,CAAmB,KAAA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;AAJD,EAAA;IAAAH,gBAAA,CAAA,IAAA,CAAA7B,SAAA,EAAA,mBAAA,EAAA,CAPC8B,MAAA,CAAA,CAAA;AAAA;EAYD,IACIG,WAAAA,GAA0D;IAC5D,OAAO;MAAExB,UAAA,EAAY,IAAI,CAACA,UAAU;MAAEJ,SAAA,EAAW,IAAI,CAACA;KAAU;AAClE,EAAA;AAAA,EAAA;IAAAwB,gBAAA,CAAA,IAAA,CAAA7B,SAAA,EAAA,aAAA,EAAA,CAHC8B,MAAA,CAAA,CAAA;AAAA;EAKDI,iBAAA,GAAqBC,SAAkB,IAAO;IAC5C,IAAI,CAACA,SAAS,GAAGA,SAAA;EACnB,CAAA;EAEAC,OAAA,GAAWC,KAAO,IAAA;IAChB,IAAI,OAAO,IAAI,CAACjC,IAAI,CAACgC,OAAO,KAAK,UAAA,EAAY;AAC3C,MAAA,IAAI,CAAChC,IAAI,CAACgC,OAAO,CAACC,KAAA,CAAA;AACpB,IAAA;EACF,CAAA;AAEA,EAAA;IAAA9C,oBAAA,CAAAC,kBAAA,CAAA,ihCAAA,EA6CA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAA4C,KAAA;QAAAtD,YAAA;AAAAM,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;"}
@@ -2,7 +2,7 @@ import Component from '@glimmer/component';
2
2
  import { deprecate } from '@ember/debug';
3
3
  import { useStyles } from '@frontile/theme';
4
4
  import { CloseButton } from './close-button.js';
5
- import { r as renamedArgValue } from '../../deprecated-args-BIUjLA8y.js';
5
+ import { r as renamedArgValue } from '../../deprecated-args-D6KS2fwp.js';
6
6
  import { precompileTemplate } from '@ember/template-compilation';
7
7
  import { setComponentTemplate } from '@ember/component';
8
8
 
@@ -1 +1 @@
1
- {"version":3,"file":"chip.js","sources":["../../../src/components/buttons/chip.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { deprecate } from '@ember/debug';\nimport { useStyles } from '@frontile/theme';\nimport { CloseButton } from './close-button';\nimport { renamedArgValue } from '../../-private/deprecated-args';\n\ninterface ChipSignature {\n Args: {\n /**\n * The chip variant.\n *\n * @defaultValue 'solid'\n */\n variant?: 'solid' | 'outline' | 'soft';\n\n /**\n * @deprecated Use `variant`. `default` is now `solid`, `outlined` is\n * `outline`, and `faded` is `soft`.\n */\n appearance?: 'default' | 'outlined' | 'faded';\n\n /**\n * The color of the chip.\n */\n color?:\n | 'neutral'\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'success'\n | 'warning'\n | 'danger';\n\n /**\n * @deprecated Use `color`. `default` is now `neutral`.\n */\n intent?:\n | 'default'\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'success'\n | 'warning'\n | 'danger';\n\n /**\n * The size of the chip\n *\n * @defaultValue 'md'\n */\n size?: 'xs' | 'sm' | 'md' | 'lg';\n\n /**\n * @deprecated Ignored. Chip is always a pill; use `Badge` for a squared\n * label.\n */\n radius?: 'none' | 'sm' | 'lg' | 'full';\n\n /**\n * Adds a dot before the content, colored by `@color`. On the `solid`\n * variant the dot takes the chip's text color, since the chip's\n * background is already the chip's color.\n *\n * @defaultValue false\n */\n withDot?: boolean;\n\n /**\n * Function to be called when clicking on the close button.\n * If you pass this argument, the close button will be visible.\n */\n onClose?: () => void;\n\n /**\n * The accessible name of the close button. Every close button would\n * otherwise be announced as just \"Close\", which does not say *what* is\n * being removed — worth setting when several chips sit together.\n *\n * @defaultValue 'Close'\n */\n closeButtonTitle?: string;\n\n /**\n * `tabindex` for the close button.\n *\n * Set to `-1` when chips sit inside another control (a multi-select field,\n * say) and the close button should stay a pointer affordance: every chip\n * would otherwise cost a Tab stop before the control itself is reached.\n * Whoever does this owes keyboard users another way to remove a chip.\n *\n * @defaultValue undefined (the close button is a normal tab stop)\n */\n closeButtonTabIndex?: number | string;\n\n /**\n * Dims the chip and disables its close button, if any.\n *\n * @defaultValue false\n */\n isDisabled?: boolean;\n\n /**\n * Custom class name, it will override the default ones using Tailwind Merge library.\n */\n class?: string;\n };\n Blocks: {\n default: [];\n };\n Element: HTMLDivElement;\n}\n\nclass Chip extends Component<ChipSignature> {\n get classNames() {\n const { chip } = useStyles();\n\n if (this.args.radius !== undefined) {\n deprecate(\n 'Chip: `@radius` is deprecated and ignored. Chip is always a pill; use `Badge` for a squared label.',\n false,\n {\n id: 'frontile.chip.radius',\n until: '0.19.0',\n for: 'frontile',\n since: { available: '0.18.0', enabled: '0.18.0' }\n }\n );\n }\n\n const { base, content, dot, closeButton } = chip({\n color:\n renamedArgValue(\n this.args.color,\n this.args.intent,\n { default: 'neutral' } as const,\n {\n component: 'Chip',\n from: 'intent',\n to: 'color',\n id: 'frontile.chip.intent'\n }\n ) || 'neutral',\n size: this.args.size,\n variant:\n renamedArgValue(\n this.args.variant,\n this.args.appearance,\n { default: 'solid', outlined: 'outline', faded: 'soft' } as const,\n {\n component: 'Chip',\n from: 'appearance',\n to: 'variant',\n id: 'frontile.chip.appearance'\n }\n ) || 'solid',\n isDisabled: this.args.isDisabled\n });\n\n return {\n base: base({ class: this.args.class }),\n content: content(),\n dot: dot(),\n closeButton: closeButton()\n };\n }\n\n <template>\n <div\n class={{this.classNames.base}}\n data-component=\"chip\"\n data-part=\"base\"\n ...attributes\n >\n {{#if @withDot}}\n <span class={{this.classNames.dot}} data-part=\"dot\"></span>\n {{/if}}\n <span class={{this.classNames.content}} data-part=\"content\">\n {{yield}}\n </span>\n {{#if @onClose}}\n <CloseButton\n @class={{this.classNames.closeButton}}\n @title={{@closeButtonTitle}}\n @onPress={{@onClose}}\n tabindex={{@closeButtonTabIndex}}\n disabled={{@isDisabled}}\n data-part=\"close-button\"\n />\n {{/if}}\n </div>\n </template>\n}\n\nexport { Chip, type ChipSignature };\nexport default Chip;\n"],"names":["Chip","Component","classNames","chip","useStyles","args","radius","undefined","deprecate","id","until","for","since","available","enabled","base","content","dot","closeButton","color","renamedArgValue","intent","default","component","from","to","size","variant","appearance","outlined","faded","isDisabled","class","setComponentTemplate","precompileTemplate","strictMode","scope","CloseButton"],"mappings":";;;;;;;;AAgHA,MAAMA,aAAaC,SAAA,CAAU;EAC3B,IAAIC,UAAAA,GAAa;IACf,MAAM;AAAEC,MAAAA;KAAM,GAAGC,SAAA,EAAA;AAEjB,IAAA,IAAI,IAAI,CAACC,IAAI,CAACC,MAAM,KAAKC,SAAA,EAAW;AAClCC,MAAAA,SAAA,CACE,sGACA,KAAA,EACA;AACEC,QAAAA,EAAA,EAAI,sBAAA;AACJC,QAAAA,KAAA,EAAO,QAAA;AACPC,QAAAA,GAAA,EAAK,UAAA;AACLC,QAAAA,KAAA,EAAO;AAAEC,UAAAA,SAAA,EAAW,QAAA;AAAUC,UAAAA,OAAA,EAAS;AAAS;AAClD,OAAA,CAAA;AAEJ,IAAA;IAEA,MAAM;MAAEC,IAAI;MAAEC,OAAO;MAAEC,GAAG;AAAEC,MAAAA;KAAa,GAAGf,IAAA,CAAK;AAC/CgB,MAAAA,KAAA,EACEC,eAAA,CACE,IAAI,CAACf,IAAI,CAACc,KAAK,EACf,IAAI,CAACd,IAAI,CAACgB,MAAM,EAChB;AAAEC,QAAAA,OAAA,EAAS;AAAU,OAAA,EACrB;AACEC,QAAAA,SAAA,EAAW,MAAA;AACXC,QAAAA,IAAA,EAAM,QAAA;AACNC,QAAAA,EAAA,EAAI,OAAA;AACJhB,QAAAA,EAAA,EAAI;OACN,CAAA,IACG,SAAA;AACPiB,MAAAA,IAAA,EAAM,IAAI,CAACrB,IAAI,CAACqB,IAAI;AACpBC,MAAAA,OAAA,EACEP,eAAA,CACE,IAAI,CAACf,IAAI,CAACsB,OAAO,EACjB,IAAI,CAACtB,IAAI,CAACuB,UAAU,EACpB;AAAEN,QAAAA,OAAA,EAAS,OAAA;AAASO,QAAAA,QAAA,EAAU,SAAA;AAAWC,QAAAA,KAAA,EAAO;AAAO,OAAA,EACvD;AACEP,QAAAA,SAAA,EAAW,MAAA;AACXC,QAAAA,IAAA,EAAM,YAAA;AACNC,QAAAA,EAAA,EAAI,SAAA;AACJhB,QAAAA,EAAA,EAAI;OACN,CAAA,IACG,OAAA;AACPsB,MAAAA,UAAA,EAAY,IAAI,CAAC1B,IAAI,CAAC0B;AACxB,KAAA,CAAA;IAEA,OAAO;MACLhB,IAAA,EAAMA,IAAA,CAAK;AAAEiB,QAAAA,KAAA,EAAO,IAAI,CAAC3B,IAAI,CAAC2B;AAAM,OAAA,CAAA;MACpChB,OAAA,EAASA,OAAA,EAAA;MACTC,GAAA,EAAKA,GAAA,EAAA;MACLC,WAAA,EAAaA,WAAA;KACf;AACF,EAAA;AAEA,EAAA;IAAAe,oBAAA,CAAAC,kBAAA,CAAA,ygBAAA,EAwBA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;"}
1
+ {"version":3,"file":"chip.js","sources":["../../../src/components/buttons/chip.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { deprecate } from '@ember/debug';\nimport { useStyles } from '@frontile/theme';\nimport { CloseButton } from './close-button';\nimport { renamedArgValue } from '../../-private/deprecated-args';\n\ninterface ChipSignature {\n Args: {\n /**\n * The chip variant.\n *\n * @defaultValue 'solid'\n */\n variant?: 'solid' | 'outline' | 'soft';\n\n /**\n * @deprecated Use `variant`. `default` is now `solid`, `outlined` is\n * `outline`, and `faded` is `soft`.\n */\n appearance?: 'default' | 'outlined' | 'faded';\n\n /**\n * The color of the chip.\n */\n color?:\n | 'neutral'\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'success'\n | 'warning'\n | 'danger';\n\n /**\n * @deprecated Use `color`. `default` is now `neutral`.\n */\n intent?:\n | 'default'\n | 'primary'\n | 'secondary'\n | 'tertiary'\n | 'success'\n | 'warning'\n | 'danger';\n\n /**\n * The size of the chip. Uses Button's size names and text size: the same\n * `@size` gives the same label text size on Chip, Badge and Button.\n *\n * @defaultValue 'xs'\n */\n size?: '2xs' | 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl';\n\n /**\n * @deprecated Ignored. Chip is always a pill; use `Badge` for a squared\n * label.\n */\n radius?: 'none' | 'sm' | 'lg' | 'full';\n\n /**\n * Adds a dot before the content, colored by `@color`. On the `solid`\n * variant the dot takes the chip's text color, since the chip's\n * background is already the chip's color.\n *\n * @defaultValue false\n */\n withDot?: boolean;\n\n /**\n * Function to be called when clicking on the close button.\n * If you pass this argument, the close button will be visible.\n */\n onClose?: () => void;\n\n /**\n * The accessible name of the close button. Every close button would\n * otherwise be announced as just \"Close\", which does not say *what* is\n * being removed — worth setting when several chips sit together.\n *\n * @defaultValue 'Close'\n */\n closeButtonTitle?: string;\n\n /**\n * `tabindex` for the close button.\n *\n * Set to `-1` when chips sit inside another control (a multi-select field,\n * say) and the close button should stay a pointer affordance: every chip\n * would otherwise cost a Tab stop before the control itself is reached.\n * Whoever does this owes keyboard users another way to remove a chip.\n *\n * @defaultValue undefined (the close button is a normal tab stop)\n */\n closeButtonTabIndex?: number | string;\n\n /**\n * Dims the chip and disables its close button, if any.\n *\n * @defaultValue false\n */\n isDisabled?: boolean;\n\n /**\n * Custom class name, it will override the default ones using Tailwind Merge library.\n */\n class?: string;\n };\n Blocks: {\n default: [];\n };\n Element: HTMLDivElement;\n}\n\nclass Chip extends Component<ChipSignature> {\n get classNames() {\n const { chip } = useStyles();\n\n if (this.args.radius !== undefined) {\n deprecate(\n 'Chip: `@radius` is deprecated and ignored. Chip is always a pill; use `Badge` for a squared label.',\n false,\n {\n id: 'frontile.chip.radius',\n until: '0.19.0',\n for: 'frontile',\n since: { available: '0.18.0', enabled: '0.18.0' }\n }\n );\n }\n\n const { base, content, dot, closeButton } = chip({\n color:\n renamedArgValue(\n this.args.color,\n this.args.intent,\n { default: 'neutral' } as const,\n {\n component: 'Chip',\n from: 'intent',\n to: 'color',\n id: 'frontile.chip.intent'\n }\n ) || 'neutral',\n size: this.args.size,\n variant:\n renamedArgValue(\n this.args.variant,\n this.args.appearance,\n { default: 'solid', outlined: 'outline', faded: 'soft' } as const,\n {\n component: 'Chip',\n from: 'appearance',\n to: 'variant',\n id: 'frontile.chip.appearance'\n }\n ) || 'solid',\n isDisabled: this.args.isDisabled\n });\n\n return {\n base: base({ class: this.args.class }),\n content: content(),\n dot: dot(),\n closeButton: closeButton()\n };\n }\n\n <template>\n <div\n class={{this.classNames.base}}\n data-component=\"chip\"\n data-part=\"base\"\n ...attributes\n >\n {{#if @withDot}}\n <span class={{this.classNames.dot}} data-part=\"dot\"></span>\n {{/if}}\n <span class={{this.classNames.content}} data-part=\"content\">\n {{yield}}\n </span>\n {{#if @onClose}}\n <CloseButton\n @class={{this.classNames.closeButton}}\n @title={{@closeButtonTitle}}\n @onPress={{@onClose}}\n tabindex={{@closeButtonTabIndex}}\n disabled={{@isDisabled}}\n data-part=\"close-button\"\n />\n {{/if}}\n </div>\n </template>\n}\n\nexport { Chip, type ChipSignature };\nexport default Chip;\n"],"names":["Chip","Component","classNames","chip","useStyles","args","radius","undefined","deprecate","id","until","for","since","available","enabled","base","content","dot","closeButton","color","renamedArgValue","intent","default","component","from","to","size","variant","appearance","outlined","faded","isDisabled","class","setComponentTemplate","precompileTemplate","strictMode","scope","CloseButton"],"mappings":";;;;;;;;AAiHA,MAAMA,aAAaC,SAAA,CAAU;EAC3B,IAAIC,UAAAA,GAAa;IACf,MAAM;AAAEC,MAAAA;KAAM,GAAGC,SAAA,EAAA;AAEjB,IAAA,IAAI,IAAI,CAACC,IAAI,CAACC,MAAM,KAAKC,SAAA,EAAW;AAClCC,MAAAA,SAAA,CACE,sGACA,KAAA,EACA;AACEC,QAAAA,EAAA,EAAI,sBAAA;AACJC,QAAAA,KAAA,EAAO,QAAA;AACPC,QAAAA,GAAA,EAAK,UAAA;AACLC,QAAAA,KAAA,EAAO;AAAEC,UAAAA,SAAA,EAAW,QAAA;AAAUC,UAAAA,OAAA,EAAS;AAAS;AAClD,OAAA,C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A,EAAAA,OAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;"}
@@ -7,7 +7,7 @@ import press from '../../modifiers/press.js';
7
7
  import { useStyles } from '@frontile/theme';
8
8
  import { precompileTemplate } from '@ember/template-compilation';
9
9
  import { setComponentTemplate } from '@ember/component';
10
- import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-BOdRhmsS.js';
10
+ import { d as decorateFieldV2, i as initializeDeferredDecorator } from '../../runtime--fcdnjmJ-DOFHQ2m8.js';
11
11
 
12
12
  class CloseButton extends Component {
13
13
  static {