@cumulus-ui/components 0.5.2 → 0.5.4

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 (187) hide show
  1. package/dist/alert/interfaces.d.ts +30 -6
  2. package/dist/alert/interfaces.d.ts.map +1 -1
  3. package/dist/anchor-navigation/interfaces.d.ts +12 -0
  4. package/dist/anchor-navigation/interfaces.d.ts.map +1 -1
  5. package/dist/annotation-context/interfaces.d.ts +31 -5
  6. package/dist/annotation-context/interfaces.d.ts.map +1 -1
  7. package/dist/app-layout/interfaces.d.ts +59 -10
  8. package/dist/app-layout/interfaces.d.ts.map +1 -1
  9. package/dist/attribute-editor/interfaces.d.ts +22 -5
  10. package/dist/attribute-editor/interfaces.d.ts.map +1 -1
  11. package/dist/autosuggest/interfaces.d.ts +11 -3
  12. package/dist/autosuggest/interfaces.d.ts.map +1 -1
  13. package/dist/badge/interfaces.d.ts +5 -1
  14. package/dist/badge/interfaces.d.ts.map +1 -1
  15. package/dist/box/interfaces.d.ts +6 -0
  16. package/dist/box/interfaces.d.ts.map +1 -1
  17. package/dist/breadcrumb-group/interfaces.d.ts +18 -3
  18. package/dist/breadcrumb-group/interfaces.d.ts.map +1 -1
  19. package/dist/button/interfaces.d.ts +37 -5
  20. package/dist/button/interfaces.d.ts.map +1 -1
  21. package/dist/button-dropdown/interfaces.d.ts +15 -4
  22. package/dist/button-dropdown/interfaces.d.ts.map +1 -1
  23. package/dist/button-group/interfaces.d.ts +9 -2
  24. package/dist/button-group/interfaces.d.ts.map +1 -1
  25. package/dist/calendar/interfaces.d.ts +6 -1
  26. package/dist/calendar/interfaces.d.ts.map +1 -1
  27. package/dist/cards/interfaces.d.ts +26 -6
  28. package/dist/cards/interfaces.d.ts.map +1 -1
  29. package/dist/checkbox/base-checkbox.d.ts +14 -4
  30. package/dist/checkbox/base-checkbox.d.ts.map +1 -1
  31. package/dist/checkbox/interfaces.d.ts +10 -2
  32. package/dist/checkbox/interfaces.d.ts.map +1 -1
  33. package/dist/code-editor/interfaces.d.ts +33 -6
  34. package/dist/code-editor/interfaces.d.ts.map +1 -1
  35. package/dist/code-editor/styles.d.ts.map +1 -1
  36. package/dist/collection-preferences/interfaces.d.ts +25 -0
  37. package/dist/collection-preferences/interfaces.d.ts.map +1 -1
  38. package/dist/collection-preferences/styles.d.ts.map +1 -1
  39. package/dist/column-layout/interfaces.d.ts +5 -0
  40. package/dist/column-layout/interfaces.d.ts.map +1 -1
  41. package/dist/container/interfaces.d.ts +13 -3
  42. package/dist/container/interfaces.d.ts.map +1 -1
  43. package/dist/content-layout/interfaces.d.ts +31 -4
  44. package/dist/content-layout/interfaces.d.ts.map +1 -1
  45. package/dist/copy-to-clipboard/interfaces.d.ts +11 -0
  46. package/dist/copy-to-clipboard/interfaces.d.ts.map +1 -1
  47. package/dist/date-picker/interfaces.d.ts +9 -2
  48. package/dist/date-picker/interfaces.d.ts.map +1 -1
  49. package/dist/date-picker/internal.d.ts +1 -0
  50. package/dist/date-picker/internal.d.ts.map +1 -1
  51. package/dist/date-range-picker/interfaces.d.ts +14 -3
  52. package/dist/date-range-picker/interfaces.d.ts.map +1 -1
  53. package/dist/drawer/interfaces.d.ts +23 -2
  54. package/dist/drawer/interfaces.d.ts.map +1 -1
  55. package/dist/dropdown/interfaces.d.ts +56 -8
  56. package/dist/dropdown/interfaces.d.ts.map +1 -1
  57. package/dist/error-boundary/interfaces.d.ts +6 -1
  58. package/dist/error-boundary/interfaces.d.ts.map +1 -1
  59. package/dist/error-boundary/styles.d.ts +5 -0
  60. package/dist/error-boundary/styles.d.ts.map +1 -0
  61. package/dist/expandable-section/interfaces.d.ts +26 -3
  62. package/dist/expandable-section/interfaces.d.ts.map +1 -1
  63. package/dist/file-dropzone/interfaces.d.ts +10 -0
  64. package/dist/file-dropzone/interfaces.d.ts.map +1 -1
  65. package/dist/file-input/interfaces.d.ts +6 -1
  66. package/dist/file-input/interfaces.d.ts.map +1 -1
  67. package/dist/file-input/internal.d.ts +1 -0
  68. package/dist/file-input/internal.d.ts.map +1 -1
  69. package/dist/file-token-group/interfaces.d.ts +6 -1
  70. package/dist/file-token-group/interfaces.d.ts.map +1 -1
  71. package/dist/file-upload/interfaces.d.ts +18 -4
  72. package/dist/file-upload/interfaces.d.ts.map +1 -1
  73. package/dist/file-upload/internal.d.ts +1 -0
  74. package/dist/file-upload/internal.d.ts.map +1 -1
  75. package/dist/form/interfaces.d.ts +21 -5
  76. package/dist/form/interfaces.d.ts.map +1 -1
  77. package/dist/form-field/interfaces.d.ts +37 -8
  78. package/dist/form-field/interfaces.d.ts.map +1 -1
  79. package/dist/grid/interfaces.d.ts +9 -0
  80. package/dist/grid/interfaces.d.ts.map +1 -1
  81. package/dist/header/interfaces.d.ts +24 -1
  82. package/dist/header/interfaces.d.ts.map +1 -1
  83. package/dist/help-panel/interfaces.d.ts +18 -3
  84. package/dist/help-panel/interfaces.d.ts.map +1 -1
  85. package/dist/hotspot/interfaces.d.ts +15 -0
  86. package/dist/hotspot/interfaces.d.ts.map +1 -1
  87. package/dist/icon/interfaces.d.ts +23 -0
  88. package/dist/icon/interfaces.d.ts.map +1 -1
  89. package/dist/index.js +1542 -213
  90. package/dist/input/interfaces.d.ts +26 -1
  91. package/dist/input/interfaces.d.ts.map +1 -1
  92. package/dist/input/internal.d.ts +1 -0
  93. package/dist/input/internal.d.ts.map +1 -1
  94. package/dist/internal/generated/cloudscape-types.d.ts +2 -0
  95. package/dist/internal/generated/cloudscape-types.d.ts.map +1 -1
  96. package/dist/internal/generated/component-manifest.d.ts +54 -54
  97. package/dist/internal/styles/app-layout-visual-refresh.d.ts.map +1 -1
  98. package/dist/internal/types.d.ts +14 -0
  99. package/dist/internal/types.d.ts.map +1 -0
  100. package/dist/item-card/interfaces.d.ts +25 -6
  101. package/dist/item-card/interfaces.d.ts.map +1 -1
  102. package/dist/link/interfaces.d.ts +17 -4
  103. package/dist/link/interfaces.d.ts.map +1 -1
  104. package/dist/list/interfaces.d.ts +5 -1
  105. package/dist/list/interfaces.d.ts.map +1 -1
  106. package/dist/live-region/interfaces.d.ts +7 -0
  107. package/dist/live-region/interfaces.d.ts.map +1 -1
  108. package/dist/modal/interfaces.d.ts +20 -4
  109. package/dist/modal/interfaces.d.ts.map +1 -1
  110. package/dist/multiselect/interfaces.d.ts +6 -2
  111. package/dist/multiselect/interfaces.d.ts.map +1 -1
  112. package/dist/navigable-group/interfaces.d.ts +12 -1
  113. package/dist/navigable-group/interfaces.d.ts.map +1 -1
  114. package/dist/pagination/interfaces.d.ts +18 -0
  115. package/dist/pagination/interfaces.d.ts.map +1 -1
  116. package/dist/panel-layout/interfaces.d.ts +10 -0
  117. package/dist/panel-layout/interfaces.d.ts.map +1 -1
  118. package/dist/pie-chart/interfaces.d.ts +29 -6
  119. package/dist/pie-chart/interfaces.d.ts.map +1 -1
  120. package/dist/popover/interfaces.d.ts +10 -2
  121. package/dist/popover/interfaces.d.ts.map +1 -1
  122. package/dist/popover/styles.d.ts.map +1 -1
  123. package/dist/progress-bar/interfaces.d.ts +26 -5
  124. package/dist/progress-bar/interfaces.d.ts.map +1 -1
  125. package/dist/prompt-input/interfaces.d.ts +43 -6
  126. package/dist/prompt-input/interfaces.d.ts.map +1 -1
  127. package/dist/property-filter/interfaces.d.ts +35 -6
  128. package/dist/property-filter/interfaces.d.ts.map +1 -1
  129. package/dist/radio-group/interfaces.d.ts +5 -1
  130. package/dist/radio-group/interfaces.d.ts.map +1 -1
  131. package/dist/s3-resource-selector/interfaces.d.ts +18 -1
  132. package/dist/s3-resource-selector/interfaces.d.ts.map +1 -1
  133. package/dist/segmented-control/interfaces.d.ts +5 -1
  134. package/dist/segmented-control/interfaces.d.ts.map +1 -1
  135. package/dist/select/interfaces.d.ts +18 -5
  136. package/dist/select/interfaces.d.ts.map +1 -1
  137. package/dist/select/internal.d.ts +2 -0
  138. package/dist/select/internal.d.ts.map +1 -1
  139. package/dist/side-navigation/interfaces.d.ts +30 -2
  140. package/dist/side-navigation/interfaces.d.ts.map +1 -1
  141. package/dist/slider/interfaces.d.ts +6 -1
  142. package/dist/slider/interfaces.d.ts.map +1 -1
  143. package/dist/slider/internal.d.ts +1 -0
  144. package/dist/slider/internal.d.ts.map +1 -1
  145. package/dist/space-between/interfaces.d.ts +5 -1
  146. package/dist/space-between/interfaces.d.ts.map +1 -1
  147. package/dist/split-panel/interfaces.d.ts +21 -4
  148. package/dist/split-panel/interfaces.d.ts.map +1 -1
  149. package/dist/split-panel/internal.d.ts +1 -0
  150. package/dist/split-panel/internal.d.ts.map +1 -1
  151. package/dist/status-indicator/interfaces.d.ts +5 -1
  152. package/dist/status-indicator/interfaces.d.ts.map +1 -1
  153. package/dist/steps/interfaces.d.ts +6 -1
  154. package/dist/steps/interfaces.d.ts.map +1 -1
  155. package/dist/table/interfaces.d.ts +62 -13
  156. package/dist/table/interfaces.d.ts.map +1 -1
  157. package/dist/tabs/interfaces.d.ts +13 -2
  158. package/dist/tabs/interfaces.d.ts.map +1 -1
  159. package/dist/tabs/internal.d.ts +2 -0
  160. package/dist/tabs/internal.d.ts.map +1 -1
  161. package/dist/tag-editor/interfaces.d.ts +7 -0
  162. package/dist/tag-editor/interfaces.d.ts.map +1 -1
  163. package/dist/text-content/interfaces.d.ts +6 -0
  164. package/dist/text-content/interfaces.d.ts.map +1 -1
  165. package/dist/text-filter/interfaces.d.ts +10 -2
  166. package/dist/text-filter/interfaces.d.ts.map +1 -1
  167. package/dist/tiles/interfaces.d.ts +5 -1
  168. package/dist/tiles/interfaces.d.ts.map +1 -1
  169. package/dist/toggle/interfaces.d.ts +7 -2
  170. package/dist/toggle/interfaces.d.ts.map +1 -1
  171. package/dist/toggle-button/interfaces.d.ts +28 -1
  172. package/dist/toggle-button/interfaces.d.ts.map +1 -1
  173. package/dist/token/interfaces.d.ts +9 -3
  174. package/dist/token/interfaces.d.ts.map +1 -1
  175. package/dist/token-group/interfaces.d.ts +6 -1
  176. package/dist/token-group/interfaces.d.ts.map +1 -1
  177. package/dist/tooltip/interfaces.d.ts +9 -1
  178. package/dist/tooltip/interfaces.d.ts.map +1 -1
  179. package/dist/top-navigation/interfaces.d.ts +5 -1
  180. package/dist/top-navigation/interfaces.d.ts.map +1 -1
  181. package/dist/tree-view/interfaces.d.ts +5 -1
  182. package/dist/tree-view/interfaces.d.ts.map +1 -1
  183. package/dist/tutorial-panel/interfaces.d.ts +5 -0
  184. package/dist/tutorial-panel/interfaces.d.ts.map +1 -1
  185. package/dist/wizard/interfaces.d.ts +29 -0
  186. package/dist/wizard/interfaces.d.ts.map +1 -1
  187. package/package.json +1 -1
@@ -1,3 +1,4 @@
1
+ import { SlotContent } from '../internal/generated/cloudscape-types.js';
1
2
  export interface GridProps {
2
3
  /**
3
4
  * An array of element definitions that specifies how the columns must be
@@ -21,6 +22,14 @@ export interface GridProps {
21
22
  * Determines whether horizontal and vertical gutters are hidden.
22
23
  */
23
24
  disableGutters?: boolean;
25
+ /**
26
+ * The elements to align in the grid.
27
+ *
28
+ * You can provide any elements here. The number of elements
29
+ * should match the number of objects defined in the `gridDefinition`
30
+ * property.
31
+ */
32
+ children?: SlotContent;
24
33
  }
25
34
  export declare namespace GridProps {
26
35
  type Breakpoint = _Breakpoint;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/grid/interfaces.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,SAAS;IACxB;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC5D;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;CAE1B;AACD,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,KAAK,UAAU,GAAG,WAAW,CAAC;IAC9B,KAAK,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9D,UAAU,iBAAiB;QACzB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,iBAAiB,CAAC;QAC/C;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,iBAAiB,CAAC;QAC9C;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,iBAAiB,CAAC;QAC5C;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,iBAAiB,CAAC;KAC7C;CACF"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/grid/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,MAAM,WAAW,SAAS;IACxB;;;;;;;;;;;;;;;;OAgBG;IACH,cAAc,CAAC,EAAE,aAAa,CAAC,SAAS,CAAC,iBAAiB,CAAC,CAAC;IAC5D;;OAEG;IACH,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB;;;;;;OAMG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;CACxB;AACD,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,KAAK,UAAU,GAAG,WAAW,CAAC;IAC9B,KAAK,iBAAiB,GAAG,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,MAAM,CAAC,CAAC,CAAC;IAC9D,UAAU,iBAAiB;QACzB;;WAEG;QACH,OAAO,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,iBAAiB,CAAC;QAC/C;;WAEG;QACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,iBAAiB,CAAC;QAC9C;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,iBAAiB,CAAC;QAC5C;;WAEG;QACH,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,iBAAiB,CAAC;KAC7C;CACF"}
@@ -1,5 +1,11 @@
1
+ import { SlotContent } from '../internal/generated/cloudscape-types.js';
1
2
  export interface HeaderProps {
2
- /** @slot default — The heading text */
3
+ /**
4
+ * The heading text. Plain text is recommended. The component renders the
5
+ * HTML heading tag based on the specified `variant` or `headingTagOverride`.
6
+ * @displayname title
7
+ */
8
+ children?: SlotContent;
3
9
  /**
4
10
  * Specifies the variant of the header:
5
11
  * * `h1` - Use this for page level headers.
@@ -14,6 +20,23 @@ export interface HeaderProps {
14
20
  * provided by the variant. Using this property does not change the visual appearance of the component.
15
21
  */
16
22
  headingTagOverride?: HeaderProps.HeadingTag;
23
+ /**
24
+ * Supplementary text below the heading.
25
+ */
26
+ description?: SlotContent;
27
+ /**
28
+ * Actions for the container.
29
+ */
30
+ actions?: SlotContent;
31
+ /**
32
+ * Specifies secondary content that's displayed to the right of the heading title. This is commonly used
33
+ * to display resource counters in table and cards components.
34
+ */
35
+ counter?: SlotContent;
36
+ /**
37
+ * Area next to the heading to display an Info link.
38
+ */
39
+ info?: SlotContent;
17
40
  }
18
41
  export declare namespace HeaderProps {
19
42
  type Variant = 'h1' | 'h2' | 'h3' | 'awsui-h1-sticky';
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/header/interfaces.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,WAAW;IAC1B,uCAAuC;IACvC;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAC9B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC;CAK7C;AACD,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,KAAK,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,iBAAiB,CAAC;IACtD,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACpD"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/header/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,MAAM,WAAW,WAAW;IAC1B;;;;OAIG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;;;;;;OAOG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAC9B;;;OAGG;IACH,kBAAkB,CAAC,EAAE,WAAW,CAAC,UAAU,CAAC;IAC5C;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;;OAGG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC;IACtB;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,CAAC;CACpB;AACD,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,KAAK,OAAO,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,iBAAiB,CAAC;IACtD,KAAK,UAAU,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;CACpD"}
@@ -1,7 +1,22 @@
1
+ import { SlotContent } from '../internal/generated/cloudscape-types.js';
1
2
  export interface HelpPanelProps {
2
- /** @slot header — Header of the help panel */
3
- /** @slot default — Main content of the help panel */
4
- /** @slot footer — Footer of the help panel */
3
+ /**
4
+ * Header of the help panel.
5
+ *
6
+ * It should contain the only `h2` used in the help panel.
7
+ */
8
+ header?: SlotContent;
9
+ /**
10
+ * Main content of the help panel.
11
+ *
12
+ * Use `p, a, h3, h4, h5, span, div, ul, ol, li, code, pre, dl, dt, dd, hr, br, i, em, b, strong` tags to format the content.
13
+ * Use `code` for inline code or `pre` for code blocks.
14
+ */
15
+ children?: SlotContent;
16
+ /**
17
+ * Footer of the help panel.
18
+ */
19
+ footer?: SlotContent;
5
20
  /**
6
21
  * Renders the panel in a loading state. We recommend that you also set a `loadingText`.
7
22
  */
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/help-panel/interfaces.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,cAAc;IAC7B,8CAA8C;IAC9C,qDAAqD;IACrD,8CAA8C;IAC9C;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/help-panel/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,MAAM,WAAW,cAAc;IAC7B;;;;OAIG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;;;;OAKG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;IACvB;;OAEG;IACH,MAAM,CAAC,EAAE,WAAW,CAAC;IACrB;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB;;;OAGG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB"}
@@ -1,3 +1,4 @@
1
+ import { SlotContent } from '../internal/generated/cloudscape-types.js';
1
2
  export interface HotspotProps {
2
3
  /**
3
4
  * ID of this hotspot. Use this ID in your tutorial data to refer to this
@@ -15,5 +16,19 @@ export interface HotspotProps {
15
16
  * overlaps too much with other content on the page.
16
17
  */
17
18
  direction?: 'top' | 'right' | 'bottom' | 'left';
19
+ /**
20
+ * Content that should be wrapped by the hotspot icon. Optional.
21
+ *
22
+ * If you supply this property, the hotspot will wrap it in an element with
23
+ * `flex: 1`, in order to give the children the maximum available space. The
24
+ * hotspot icon will be placed floating next to the children. Use
25
+ * this if you are wrapping e.g. an input field that should use the full
26
+ * available width, or a button.
27
+ *
28
+ * If you do not supply this property, the hotspot icon will behave as an inline
29
+ * element. Use this if you want to place the hotspot icon on a label, e.g. a
30
+ * checkbox's label.
31
+ */
32
+ children?: SlotContent;
18
33
  }
19
34
  //# sourceMappingURL=interfaces.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/hotspot/interfaces.ts"],"names":[],"mappings":"AAGA,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;CAEjD"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/hotspot/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,MAAM,WAAW,YAAY;IAC3B;;;;OAIG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IACxB;;;;OAIG;IACH,SAAS,CAAC,EAAE,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAChD;;;;;;;;;;;;OAYG;IACH,QAAQ,CAAC,EAAE,WAAW,CAAC;CACxB"}
@@ -1,4 +1,5 @@
1
1
  import { BuiltInIconName, IconRegistryIconName } from '../icon-provider/interfaces.js';
2
+ import { SlotContent } from '../internal/generated/cloudscape-types.js';
2
3
  export interface IconProps {
3
4
  /**
4
5
  * Specifies the icon to be displayed.
@@ -36,6 +37,28 @@ export interface IconProps {
36
37
  * Specifies alternate text for the icon. We recommend that you provide this for accessibility.
37
38
  */
38
39
  ariaLabel?: string;
40
+ /**
41
+ * Specifies the SVG of a custom icon.
42
+ *
43
+ * Use this property if the icon you want isn't available, and you want your custom icon to inherit colors dictated by variant or hover states.
44
+ * When this property is set, the component will be decorated with `aria-hidden="true"`. Ensure that the `svg` element:
45
+ * - has attribute `focusable="false"`.
46
+ * - has `viewBox="0 0 16 16"`.
47
+ *
48
+ * If you set the `svg` element as the root node of the slot, the component will automatically
49
+ * - set `stroke="currentColor"`, `fill="none"`, and `vertical-align="top"`.
50
+ * - set the stroke width based on the size of the icon.
51
+ * - set the width and height of the SVG element based on the size of the icon.
52
+ *
53
+ * If you don't want these styles to be automatically set, wrap the `svg` element into a `span` and ensure icon `size` is not set to `inherit`.
54
+ * You can still set the stroke to `currentColor` to inherit the color of the surrounding elements.
55
+ *
56
+ * If you set both `url` and `svg`, `svg` will take precedence.
57
+ *
58
+ * *Note:* Remember to remove any additional elements (for example: `defs`) and related CSS classes from SVG files exported from design software.
59
+ * In most cases, they aren't needed, as the `svg` element inherits styles from the icon component.
60
+ */
61
+ svg?: SlotContent;
39
62
  }
40
63
  export declare namespace IconProps {
41
64
  type Name = BuiltInIconName | IconRegistryIconName;
@@ -1 +1 @@
1
- {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/icon/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACvF,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;IACtB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC;IAC5B;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;CAEpB;AACD,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,KAAK,IAAI,GAAG,eAAe,GAAG,oBAAoB,CAAC;IACnD,KAAK,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IACxG,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,CAAC;CACzE"}
1
+ {"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../src/icon/interfaces.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,eAAe,EAAE,oBAAoB,EAAE,MAAM,gCAAgC,CAAC;AACvF,OAAO,EAAE,WAAW,EAAE,MAAM,2CAA2C,CAAC;AACxE,MAAM,WAAW,SAAS;IACxB;;OAEG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;IACtB;;;;;;;;OAQG;IACH,IAAI,CAAC,EAAE,SAAS,CAAC,IAAI,CAAC;IACtB;;OAEG;IACH,OAAO,CAAC,EAAE,SAAS,CAAC,OAAO,CAAC;IAC5B;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;;;;OAKG;IACH,GAAG,CAAC,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,GAAG,CAAC,EAAE,WAAW,CAAC;CACnB;AACD,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,KAAK,IAAI,GAAG,eAAe,GAAG,oBAAoB,CAAC;IACnD,KAAK,OAAO,GAAG,QAAQ,GAAG,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,GAAG,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC;IACxG,KAAK,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,SAAS,CAAC;CACzE"}