@xplortech/apollo-core 2.4.2 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (156) hide show
  1. package/.typings/apollo-components.html-data.json +1011 -3481
  2. package/build/style.css +7 -7
  3. package/dist/apollo-core/apollo-core.css +1 -1
  4. package/dist/apollo-core/apollo-core.esm.js +1 -1
  5. package/dist/apollo-core/{p-8c1f73ea.entry.js → p-0e1877a2.entry.js} +1 -1
  6. package/dist/apollo-core/{p-94209785.entry.js → p-1c2e4034.entry.js} +1 -1
  7. package/dist/apollo-core/p-77f0fd4a.entry.js +1 -0
  8. package/dist/apollo-core/p-7c22b842.entry.js +1 -0
  9. package/dist/apollo-core/p-7d245bf0.entry.js +1 -0
  10. package/dist/apollo-core/{p-b1f4604d.entry.js → p-f4c2626d.entry.js} +1 -1
  11. package/dist/cjs/xpl-avatar_41.cjs.entry.js +11732 -1165
  12. package/dist/cjs/xpl-dynamic-table-cell.cjs.entry.js +2 -2
  13. package/dist/cjs/xpl-dynamic-table-row.cjs.entry.js +2 -2
  14. package/dist/cjs/xpl-dynamic-table.cjs.entry.js +1 -1
  15. package/dist/cjs/xpl-grid-item.cjs.entry.js +1 -1
  16. package/dist/cjs/xpl-grid.cjs.entry.js +1 -1
  17. package/dist/collection/collection-manifest.json +1 -1
  18. package/dist/collection/components/xpl-data-card/xpl-data-card.js +11 -25
  19. package/dist/collection/components/xpl-divider/xpl-divider.js +1 -1
  20. package/dist/collection/components/xpl-dropdown/dropdown.stories.js +4 -0
  21. package/dist/collection/components/xpl-dropdown/xpl-dropdown-group/xpl-dropdown-group.js +1 -1
  22. package/dist/collection/components/xpl-dropdown/xpl-dropdown-heading/xpl-dropdown-heading.js +1 -1
  23. package/dist/collection/components/xpl-dropdown/xpl-dropdown-option/xpl-dropdown-option.js +2 -2
  24. package/dist/collection/components/xpl-dropdown/xpl-dropdown.js +2 -2
  25. package/dist/collection/components/xpl-dynamic-table/dynamic-table.stories.js +4 -0
  26. package/dist/collection/components/xpl-dynamic-table/xpl-dynamic-table.js +1 -1
  27. package/dist/collection/components/xpl-dynamic-table-cell/xpl-dynamic-table-cell.js +2 -2
  28. package/dist/collection/components/xpl-dynamic-table-row/xpl-dynamic-table-row.js +2 -2
  29. package/dist/collection/components/xpl-grid/xpl-grid.js +1 -1
  30. package/dist/collection/components/xpl-grid-item/xpl-grid-item.js +1 -1
  31. package/dist/collection/components/xpl-header-accordion/header-accordion.stories.js +4 -0
  32. package/dist/collection/components/xpl-header-accordion/xpl-header-accordion.js +1 -1
  33. package/dist/collection/components/xpl-icon/icon-types.js +1 -0
  34. package/dist/collection/components/xpl-icon/icons.stories.js +47 -12
  35. package/dist/collection/components/xpl-icon/xpl-icon.js +13 -15
  36. package/dist/collection/components/xpl-input/input.stories.js +4 -0
  37. package/dist/collection/components/xpl-input/xpl-input-color/xpl-input-color.js +3 -3
  38. package/dist/collection/components/xpl-input/xpl-input.js +5 -4
  39. package/dist/collection/components/xpl-list/list.stories.js +4 -0
  40. package/dist/collection/components/xpl-progress/progress.stories.js +4 -0
  41. package/dist/collection/components/xpl-radio/radio.stories.js +4 -0
  42. package/dist/collection/components/xpl-select/select.stories.js +4 -0
  43. package/dist/collection/components/xpl-select/xpl-select.js +13 -19
  44. package/dist/collection/components/xpl-skeleton/skeleton.stories.js +4 -0
  45. package/dist/collection/components/xpl-slideout/slideout.stories.js +6 -0
  46. package/dist/collection/components/xpl-table/table.stories.js +4 -0
  47. package/dist/collection/components/xpl-table-header/table-header.stories.js +4 -0
  48. package/dist/collection/components/xpl-table-header-cell/table-header-cell.stories.js +4 -0
  49. package/dist/collection/components/xpl-table-header-cell/xpl-table-header-cell.js +5 -15
  50. package/dist/collection/components/xpl-tabs/tabs.stories.js +4 -0
  51. package/dist/collection/components/xpl-toast/toast.stories.js +4 -0
  52. package/dist/collection/components/xpl-toggle/toggle.stories.js +4 -0
  53. package/dist/collection/components/xpl-tooltip/tooltip.stories.js +4 -0
  54. package/dist/components/xpl-data-card.js +1 -1
  55. package/dist/components/xpl-divider2.js +1 -1
  56. package/dist/components/xpl-dropdown-group2.js +1 -1
  57. package/dist/components/xpl-dropdown-heading2.js +1 -1
  58. package/dist/components/xpl-dropdown-option2.js +1 -1
  59. package/dist/components/xpl-dropdown2.js +1 -1
  60. package/dist/components/xpl-dynamic-table-cell.js +1 -1
  61. package/dist/components/xpl-dynamic-table-row.js +1 -1
  62. package/dist/components/xpl-dynamic-table.js +1 -1
  63. package/dist/components/xpl-grid-item.js +1 -1
  64. package/dist/components/xpl-grid.js +1 -1
  65. package/dist/components/xpl-header-accordion.js +1 -1
  66. package/dist/components/xpl-icon2.js +1 -6
  67. package/dist/components/xpl-input2.js +1 -1
  68. package/dist/components/xpl-select2.js +1 -1
  69. package/dist/docs/xpl-accordion/readme.md +62 -0
  70. package/dist/docs/xpl-application-shell/readme.md +33 -0
  71. package/dist/docs/xpl-avatar/readme.md +35 -0
  72. package/dist/docs/xpl-backdrop/readme.md +34 -0
  73. package/dist/docs/xpl-badge/readme.md +29 -0
  74. package/dist/docs/xpl-breadcrumbs/xpl-breadcrumb-item/readme.md +19 -0
  75. package/dist/docs/xpl-breadcrumbs/xpl-breadcrumbs/readme.md +22 -0
  76. package/dist/docs/xpl-button/readme.md +44 -0
  77. package/dist/docs/xpl-button-row/readme.md +41 -0
  78. package/dist/docs/xpl-calendar/readme.md +48 -0
  79. package/dist/docs/xpl-checkbox/readme.md +47 -0
  80. package/dist/docs/xpl-choicelist/readme.md +43 -0
  81. package/dist/docs/xpl-content-area/readme.md +17 -0
  82. package/dist/docs/xpl-dashboard/readme.md +10 -0
  83. package/dist/docs/xpl-data-card/readme.md +54 -0
  84. package/dist/docs/xpl-divider/readme.md +30 -0
  85. package/dist/docs/xpl-dropdown/readme.md +80 -0
  86. package/dist/docs/xpl-dropdown/xpl-dropdown-group/readme.md +39 -0
  87. package/dist/docs/xpl-dropdown/xpl-dropdown-heading/readme.md +30 -0
  88. package/dist/docs/xpl-dropdown/xpl-dropdown-option/readme.md +36 -0
  89. package/dist/docs/xpl-dynamic-table/readme.md +19 -0
  90. package/dist/docs/xpl-dynamic-table-cell/readme.md +18 -0
  91. package/dist/docs/xpl-dynamic-table-row/readme.md +19 -0
  92. package/dist/docs/xpl-grid/readme.md +10 -0
  93. package/dist/docs/xpl-grid-item/readme.md +20 -0
  94. package/dist/docs/xpl-header-accordion/readme.md +39 -0
  95. package/dist/docs/xpl-icon/readme.md +80 -0
  96. package/dist/docs/xpl-input/readme.md +90 -0
  97. package/dist/docs/xpl-input/xpl-input-color/readme.md +61 -0
  98. package/dist/docs/xpl-input/xpl-input-date/readme.md +56 -0
  99. package/dist/docs/xpl-input/xpl-input-file/readme.md +79 -0
  100. package/dist/docs/xpl-input/xpl-input-time/readme.md +69 -0
  101. package/dist/docs/xpl-large-card/readme.md +40 -0
  102. package/dist/docs/xpl-list/readme.md +34 -0
  103. package/dist/docs/xpl-main-nav/readme.md +28 -0
  104. package/dist/docs/xpl-modal/readme.md +55 -0
  105. package/dist/docs/xpl-nav-item/readme.md +24 -0
  106. package/dist/docs/xpl-pagination/readme.md +52 -0
  107. package/dist/docs/xpl-popover/readme.md +48 -0
  108. package/dist/docs/xpl-progress/readme.md +22 -0
  109. package/dist/docs/xpl-radio/readme.md +43 -0
  110. package/dist/docs/xpl-secondary-nav/readme.md +10 -0
  111. package/dist/docs/xpl-select/readme.md +88 -0
  112. package/dist/docs/xpl-skeleton/readme.md +31 -0
  113. package/dist/docs/xpl-slideout/readme.md +46 -0
  114. package/dist/docs/xpl-tab/readme.md +25 -0
  115. package/dist/docs/xpl-tab-panel/readme.md +18 -0
  116. package/dist/docs/xpl-table/readme.md +46 -0
  117. package/dist/docs/xpl-table-header/readme.md +13 -0
  118. package/dist/docs/xpl-table-header-cell/readme.md +47 -0
  119. package/dist/docs/xpl-tabs/readme.md +54 -0
  120. package/dist/docs/xpl-tag/readme.md +30 -0
  121. package/dist/docs/xpl-toast/readme.md +42 -0
  122. package/dist/docs/xpl-toggle/readme.md +23 -0
  123. package/dist/docs/xpl-toolbar/readme.md +18 -0
  124. package/dist/docs/xpl-tooltip/readme.md +35 -0
  125. package/dist/docs/xpl-utility-bar/readme.md +55 -0
  126. package/dist/esm/xpl-avatar_41.entry.js +11732 -1165
  127. package/dist/esm/xpl-dynamic-table-cell.entry.js +2 -2
  128. package/dist/esm/xpl-dynamic-table-row.entry.js +2 -2
  129. package/dist/esm/xpl-dynamic-table.entry.js +1 -1
  130. package/dist/esm/xpl-grid-item.entry.js +1 -1
  131. package/dist/esm/xpl-grid.entry.js +1 -1
  132. package/dist/types/components/xpl-data-card/xpl-data-card.d.ts +2 -3
  133. package/dist/types/components/xpl-dynamic-table/dynamic-table.stories.d.ts +4 -0
  134. package/dist/types/components/xpl-header-accordion/header-accordion.stories.d.ts +4 -0
  135. package/dist/types/components/xpl-icon/icon-types.d.ts +2 -0
  136. package/dist/types/components/xpl-icon/xpl-icon.d.ts +1 -3
  137. package/dist/types/components/xpl-input/input.stories.d.ts +4 -0
  138. package/dist/types/components/xpl-list/list.stories.d.ts +4 -0
  139. package/dist/types/components/xpl-progress/progress.stories.d.ts +4 -0
  140. package/dist/types/components/xpl-radio/radio.stories.d.ts +4 -0
  141. package/dist/types/components/xpl-select/select.stories.d.ts +4 -0
  142. package/dist/types/components/xpl-select/xpl-select.d.ts +1 -3
  143. package/dist/types/components/xpl-slideout/slideout.stories.d.ts +6 -0
  144. package/dist/types/components/xpl-table/table.stories.d.ts +4 -0
  145. package/dist/types/components/xpl-table-header/table-header.stories.d.ts +4 -0
  146. package/dist/types/components/xpl-table-header-cell/table-header-cell.stories.d.ts +4 -0
  147. package/dist/types/components/xpl-table-header-cell/xpl-table-header-cell.d.ts +1 -2
  148. package/dist/types/components/xpl-tabs/tabs.stories.d.ts +4 -0
  149. package/dist/types/components/xpl-toast/toast.stories.d.ts +4 -0
  150. package/dist/types/components/xpl-toggle/toggle.stories.d.ts +4 -0
  151. package/dist/types/components/xpl-tooltip/tooltip.stories.d.ts +4 -0
  152. package/dist/types/components.d.ts +24 -28
  153. package/package.json +7 -4
  154. package/dist/apollo-core/p-23ef2717.entry.js +0 -6
  155. package/dist/apollo-core/p-31461db7.entry.js +0 -1
  156. package/dist/apollo-core/p-7f8e5cd0.entry.js +0 -1
@@ -21,9 +21,9 @@ const XplDynamicTableCell = class {
21
21
  }
22
22
  render() {
23
23
  const colIndex = Array.from(this.el.parentElement.children).indexOf(this.el) + 1;
24
- return (h(Host, { key: 'c48652542dadaa98dbfe8c1ca51c5be67c279091', role: "gridcell", "aria-colindex": colIndex, class: "xpl-dynamic-table-cell", ref: (el) => {
24
+ return (h(Host, { key: '639f0a42ea0189fb4c269de1b76c5491729f868c', role: "gridcell", "aria-colindex": colIndex, class: "xpl-dynamic-table-cell", ref: (el) => {
25
25
  this.hostElement = el;
26
- } }, h("slot", { key: '3b6b21c64807f8e7dca3b18def3bb373a3778506' })));
26
+ } }, h("slot", { key: '29864a738aa7d5e9498195ce0d22bb8d78e39989' })));
27
27
  }
28
28
  get el() { return getElement(this); }
29
29
  };
@@ -26,9 +26,9 @@ const XplDynamicTableRow = class {
26
26
  const classList = `xpl-dynamic-table-row
27
27
  ${this.isDisabled ? 'disabled' : ''}
28
28
  ${this.selected ? 'selected' : ''}`;
29
- return (h(Host, { key: '3f514b6ebd0c519329c1f88fd7a06681fd263c20', role: "row", class: classList, ref: (el) => {
29
+ return (h(Host, { key: '4969ae6223aa4f6604d20e657d390d8ec43eb9bd', role: "row", class: classList, ref: (el) => {
30
30
  this.hostElement = el;
31
- } }, h("slot", { key: 'acfe30cd4d852f2787ac18376b8b491731a736d4' })));
31
+ } }, h("slot", { key: '244d34612847408ddb9e0d718b1e5916b7e24b2d' })));
32
32
  }
33
33
  };
34
34
 
@@ -54,7 +54,7 @@ const XplDynamicTable = class {
54
54
  this.updateColumnCount();
55
55
  }
56
56
  render() {
57
- return (h("div", { key: '56ec7b395ff5f4dc42970e042ca8771b6fc2095a', role: "grid", class: "xpl-dynamic-table", "aria-colcount": this.colCount }, h("slot", { key: '38877bbaeaa319a9c876478f09dadf06248ab8ae', name: "header" }), h("slot", { key: '9c241ad399ac3e4e58a913d24174fe581bfab1bc', name: "body" })));
57
+ return (h("div", { key: 'f49634b51fd6fb49bcb75cc4247f683ff99d6b99', role: "grid", class: "xpl-dynamic-table", "aria-colcount": this.colCount }, h("slot", { key: 'e5cd66e212a41ce26dfaccae634ab7ee22ba9910', name: "header" }), h("slot", { key: '07e1fbec46f08e46f728340291510992d21f71a4', name: "body" })));
58
58
  }
59
59
  get el() { return getElement(this); }
60
60
  };
@@ -14,7 +14,7 @@ const XplGridItem = class {
14
14
  className += ` xpl-grid-item-sm-${this.sm}`;
15
15
  className += ` xpl-grid-item-md-${this.md}`;
16
16
  className += ` xpl-grid-item-lg-${this.lg}`;
17
- return (h(Host, { key: 'e88447c2042c92809a00464c721ffccbe3f421f7', class: className }, h("slot", { key: 'ba97ddd92e967cc9c883bcd462a4303015015160' })));
17
+ return (h(Host, { key: '4a3a254b51eae0907baf74c383b0d2b60017b69b', class: className }, h("slot", { key: 'b23f50ff733b9f3009eda4a3569a28b0636e76f4' })));
18
18
  }
19
19
  };
20
20
 
@@ -26,7 +26,7 @@ const XplGrid = class {
26
26
  });
27
27
  }
28
28
  render() {
29
- return h(Host, { key: 'ebca0f4cd2335a920d6e070a5ea8e6ca32e06fb2', class: "xpl-grid" });
29
+ return h(Host, { key: 'b7adecdd36342641869726ffa094578c1272dc1e', class: "xpl-grid" });
30
30
  }
31
31
  get container() { return getElement(this); }
32
32
  };
@@ -1,4 +1,3 @@
1
- import { IconName } from '../xpl-icon/xpl-icon';
2
1
  export declare class XplDataCard {
3
2
  el: HTMLXplDataCardElement;
4
3
  link?: boolean;
@@ -7,9 +6,9 @@ export declare class XplDataCard {
7
6
  shortStat?: string;
8
7
  variant?: 'primary' | 'secondary';
9
8
  leadingIcon?: boolean;
10
- icon?: IconName;
9
+ icon?: string;
11
10
  smallStat?: string;
12
- smallStatIcon?: IconName;
11
+ smallStatIcon?: string;
13
12
  detail?: string;
14
13
  smallStatVariant?: 'positive' | 'negative' | 'neutral';
15
14
  tooltipTextSmallStat?: string;
@@ -37,5 +37,9 @@ export declare const DynamicTable: {
37
37
  html: {
38
38
  render: string;
39
39
  };
40
+ design: {
41
+ type: string;
42
+ url: string;
43
+ };
40
44
  };
41
45
  };
@@ -40,5 +40,9 @@ export declare const HeaderAccordion: {
40
40
  html: {
41
41
  render: string;
42
42
  };
43
+ design: {
44
+ type: string;
45
+ url: string;
46
+ };
43
47
  };
44
48
  };
@@ -0,0 +1,2 @@
1
+ import data from '@xplortech/apollo-icons/build/data.json';
2
+ export type IconName = keyof typeof data;
@@ -1,7 +1,5 @@
1
- import data from '@xplortech/apollo-icons/build/data.json';
2
- export type IconName = keyof typeof data;
3
1
  export declare class XplIcon {
4
- icon: IconName;
2
+ icon: string;
5
3
  size: number;
6
4
  backgroundColor?: string;
7
5
  render(): any;
@@ -78,6 +78,10 @@ export declare const Input: {
78
78
  html: {
79
79
  render: any[];
80
80
  };
81
+ design: {
82
+ type: string;
83
+ url: string;
84
+ };
81
85
  };
82
86
  };
83
87
  export declare const Multiline: {
@@ -59,5 +59,9 @@ export declare const List: {
59
59
  html: {
60
60
  render: void;
61
61
  };
62
+ design: {
63
+ type: string;
64
+ url: string;
65
+ };
62
66
  };
63
67
  };
@@ -30,5 +30,9 @@ export declare const Progress: {
30
30
  html: {
31
31
  render: string;
32
32
  };
33
+ design: {
34
+ type: string;
35
+ url: string;
36
+ };
33
37
  };
34
38
  };
@@ -75,5 +75,9 @@ export declare const Radio: {
75
75
  html: {
76
76
  render: string;
77
77
  };
78
+ design: {
79
+ type: string;
80
+ url: string;
81
+ };
78
82
  };
79
83
  };
@@ -121,6 +121,10 @@ export declare const Select: {
121
121
  html: {
122
122
  render: void;
123
123
  };
124
+ design: {
125
+ type: string;
126
+ url: string;
127
+ };
124
128
  };
125
129
  };
126
130
  export declare const SelectWValues: {
@@ -1,10 +1,8 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import data from '@xplortech/apollo-icons/build/data.json';
3
2
  import type { DropdownItem } from '../xpl-dropdown/dropdown-option';
4
- export type IconName = keyof typeof data;
5
3
  export declare class XplSelect {
6
4
  choices?: DropdownItem[];
7
- selectIcon?: IconName;
5
+ selectIcon?: string;
8
6
  description?: string;
9
7
  disabled?: boolean;
10
8
  error?: string;
@@ -111,4 +111,10 @@ export declare const Slideout: {
111
111
  tertiaryButtonText: string;
112
112
  variant: string;
113
113
  };
114
+ parameters: {
115
+ design: {
116
+ type: string;
117
+ url: string;
118
+ };
119
+ };
114
120
  };
@@ -80,5 +80,9 @@ export declare const Table: {
80
80
  html: {
81
81
  render: string[];
82
82
  };
83
+ design: {
84
+ type: string;
85
+ url: string;
86
+ };
83
87
  };
84
88
  };
@@ -99,5 +99,9 @@ export declare const TableHeader: {
99
99
  html: {
100
100
  render: string;
101
101
  };
102
+ design: {
103
+ type: string;
104
+ url: string;
105
+ };
102
106
  };
103
107
  };
@@ -51,5 +51,9 @@ export declare const TableHeaderCell: {
51
51
  sortable: any;
52
52
  }) => string;
53
53
  };
54
+ design: {
55
+ type: string;
56
+ url: string;
57
+ };
54
58
  };
55
59
  };
@@ -1,8 +1,7 @@
1
1
  import { EventEmitter } from '../../stencil-public-runtime';
2
- import { IconName } from '../xpl-icon/xpl-icon';
3
2
  export declare class XplTableHeaderCell {
4
3
  el: HTMLXplTableHeaderCellElement;
5
- icon?: IconName;
4
+ icon?: string;
6
5
  sortable?: boolean;
7
6
  label?: string;
8
7
  type: 'label' | 'checkbox' | 'icon';
@@ -36,5 +36,9 @@ export declare const Tabs: {
36
36
  html: {
37
37
  render: string[];
38
38
  };
39
+ design: {
40
+ type: string;
41
+ url: string;
42
+ };
39
43
  };
40
44
  };
@@ -58,5 +58,9 @@ export declare const Toast: {
58
58
  html: {
59
59
  render: string;
60
60
  };
61
+ design: {
62
+ type: string;
63
+ url: string;
64
+ };
61
65
  };
62
66
  };
@@ -63,5 +63,9 @@ export declare const Toggle: {
63
63
  html: {
64
64
  render: string;
65
65
  };
66
+ design: {
67
+ type: string;
68
+ url: string;
69
+ };
66
70
  };
67
71
  };
@@ -35,5 +35,9 @@ export declare const Tooltip: {
35
35
  html: {
36
36
  render: string;
37
37
  };
38
+ design: {
39
+ type: string;
40
+ url: string;
41
+ };
38
42
  };
39
43
  };
@@ -6,19 +6,13 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { Choice } from "./components/xpl-choicelist/choice";
9
- import { IconName } from "./components/xpl-icon/xpl-icon";
10
9
  import { DropdownItem, DropdownOptionGroup } from "./components/xpl-dropdown/dropdown-option";
11
- import { IconName as IconName1 } from "./components/xpl-icon/xpl-icon";
12
10
  import { ListItem } from "./components/xpl-list/listitem";
13
11
  import { PopoverPosition } from "./components/xpl-popover/xpl-popover";
14
- import { IconName as IconName2 } from "./components/xpl-select/xpl-select";
15
12
  export { Choice } from "./components/xpl-choicelist/choice";
16
- export { IconName } from "./components/xpl-icon/xpl-icon";
17
13
  export { DropdownItem, DropdownOptionGroup } from "./components/xpl-dropdown/dropdown-option";
18
- export { IconName as IconName1 } from "./components/xpl-icon/xpl-icon";
19
14
  export { ListItem } from "./components/xpl-list/listitem";
20
15
  export { PopoverPosition } from "./components/xpl-popover/xpl-popover";
21
- export { IconName as IconName2 } from "./components/xpl-select/xpl-select";
22
16
  export namespace Components {
23
17
  interface XplAccordion {
24
18
  /**
@@ -308,9 +302,9 @@ export namespace Components {
308
302
  */
309
303
  "detail"?: string;
310
304
  /**
311
- * An optional icon leading the header. Uses <xpl-icon /> components and should reinforce the understanding of the smallStat metric shown.
305
+ * An optional icon leading the header. Uses <xpl-icon /> components and should reinforce the understanding of the smallStat metric shown. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
312
306
  */
313
- "icon"?: IconName;
307
+ "icon"?: string;
314
308
  /**
315
309
  * Whether to display the icon or not.
316
310
  * @default true
@@ -333,11 +327,11 @@ export namespace Components {
333
327
  */
334
328
  "smallStat"?: string;
335
329
  /**
336
- * An optional icon leading the small stat. Uses <xpl-icon> components and should reinforce the understanding of the smallStat metric shown.
330
+ * An optional icon leading the small stat. Uses <xpl-icon> components and should reinforce the understanding of the smallStat metric shown. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
337
331
  */
338
- "smallStatIcon"?: IconName;
332
+ "smallStatIcon"?: string;
339
333
  /**
340
- * set a variant that changes the color of the small stat based on the following rules: If trend is positive and greater than 0.5% color is green and up-right arrow is used If the trend is between -0.5% and 0.5% then its neutral the color is gray If the trend is negative less than -0.5% the color is red and down right arrow is used
334
+ * set a variant that changes the color of the small stat based on the following rules: If trend is positive and greater than 0.5% color is green and up-right arrow is used If the trend is between -0.5% and 0.5% then its neutral the color is gray If the trend is negative less than -0.5% the color is red and down right arrow is used
341
335
  */
342
336
  "smallStatVariant"?: 'positive' | 'negative' | 'neutral';
343
337
  /**
@@ -527,9 +521,10 @@ export namespace Components {
527
521
  */
528
522
  "backgroundColor"?: string;
529
523
  /**
530
- * Name of icon
524
+ * Name of icon.
525
+ * @property {string} See [available icons](./ICONS.md) for the complete list, or view the [Storybook icon gallery](?path=/story/components-icons--icons).
531
526
  */
532
- "icon": IconName1;
527
+ "icon": string;
533
528
  /**
534
529
  * Size of icon
535
530
  */
@@ -1042,10 +1037,10 @@ export namespace Components {
1042
1037
  */
1043
1038
  "reset": () => Promise<void>;
1044
1039
  /**
1045
- * The icon to display in the select trigger button.
1040
+ * The icon to display in the select trigger button. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
1046
1041
  * @default 'chevron-down'
1047
1042
  */
1048
- "selectIcon"?: IconName2;
1043
+ "selectIcon"?: string;
1049
1044
  /**
1050
1045
  * The value(s) currently selected in the select component.
1051
1046
  */
@@ -1184,9 +1179,9 @@ export namespace Components {
1184
1179
  }
1185
1180
  interface XplTableHeaderCell {
1186
1181
  /**
1187
- * @property {IconName} - Icon to display in the cell
1182
+ * Icon to display in the cell. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
1188
1183
  */
1189
- "icon"?: IconName;
1184
+ "icon"?: string;
1190
1185
  /**
1191
1186
  * @property {string} - Text to display in the cell
1192
1187
  * @default ''
@@ -2432,9 +2427,9 @@ declare namespace LocalJSX {
2432
2427
  */
2433
2428
  "detail"?: string;
2434
2429
  /**
2435
- * An optional icon leading the header. Uses <xpl-icon /> components and should reinforce the understanding of the smallStat metric shown.
2430
+ * An optional icon leading the header. Uses <xpl-icon /> components and should reinforce the understanding of the smallStat metric shown. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
2436
2431
  */
2437
- "icon"?: IconName;
2432
+ "icon"?: string;
2438
2433
  /**
2439
2434
  * Whether to display the icon or not.
2440
2435
  * @default true
@@ -2457,11 +2452,11 @@ declare namespace LocalJSX {
2457
2452
  */
2458
2453
  "smallStat"?: string;
2459
2454
  /**
2460
- * An optional icon leading the small stat. Uses <xpl-icon> components and should reinforce the understanding of the smallStat metric shown.
2455
+ * An optional icon leading the small stat. Uses <xpl-icon> components and should reinforce the understanding of the smallStat metric shown. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
2461
2456
  */
2462
- "smallStatIcon"?: IconName;
2457
+ "smallStatIcon"?: string;
2463
2458
  /**
2464
- * set a variant that changes the color of the small stat based on the following rules: If trend is positive and greater than 0.5% color is green and up-right arrow is used If the trend is between -0.5% and 0.5% then its neutral the color is gray If the trend is negative less than -0.5% the color is red and down right arrow is used
2459
+ * set a variant that changes the color of the small stat based on the following rules: If trend is positive and greater than 0.5% color is green and up-right arrow is used If the trend is between -0.5% and 0.5% then its neutral the color is gray If the trend is negative less than -0.5% the color is red and down right arrow is used
2465
2460
  */
2466
2461
  "smallStatVariant"?: 'positive' | 'negative' | 'neutral';
2467
2462
  /**
@@ -2655,9 +2650,10 @@ declare namespace LocalJSX {
2655
2650
  */
2656
2651
  "backgroundColor"?: string;
2657
2652
  /**
2658
- * Name of icon
2653
+ * Name of icon.
2654
+ * @property {string} See [available icons](./ICONS.md) for the complete list, or view the [Storybook icon gallery](?path=/story/components-icons--icons).
2659
2655
  */
2660
- "icon"?: IconName1;
2656
+ "icon": string;
2661
2657
  /**
2662
2658
  * Size of icon
2663
2659
  */
@@ -3259,10 +3255,10 @@ declare namespace LocalJSX {
3259
3255
  */
3260
3256
  "placeholder"?: string;
3261
3257
  /**
3262
- * The icon to display in the select trigger button.
3258
+ * The icon to display in the select trigger button. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
3263
3259
  * @default 'chevron-down'
3264
3260
  */
3265
- "selectIcon"?: IconName2;
3261
+ "selectIcon"?: string;
3266
3262
  /**
3267
3263
  * The value(s) currently selected in the select component.
3268
3264
  */
@@ -3421,9 +3417,9 @@ declare namespace LocalJSX {
3421
3417
  }
3422
3418
  interface XplTableHeaderCell {
3423
3419
  /**
3424
- * @property {IconName} - Icon to display in the cell
3420
+ * Icon to display in the cell. See [xpl-icon available icons](../xpl-icon/ICONS.md) for valid icon names.
3425
3421
  */
3426
- "icon"?: IconName;
3422
+ "icon"?: string;
3427
3423
  /**
3428
3424
  * @property {string} - Text to display in the cell
3429
3425
  * @default ''
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xplortech/apollo-core",
3
- "version": "2.4.2",
3
+ "version": "2.5.0",
4
4
  "main": "dist/index.cjs.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/types/components.d.ts",
@@ -35,7 +35,8 @@
35
35
  "build:css": "cross-env NODE_ENV=production postcss src/style.css -o build/style.css && npm-run-all build-partial:css.*",
36
36
  "build-partial:css.react": "cp build/style.css ../apollo-react/css/apollo.css",
37
37
  "build-partial:css.storybook": "cp -r build/ .storybook/build",
38
- "build:stencil": "stencil build --docs --prod && cp -r dist .storybook && cp -r loader .storybook && node .storybook/patch-stencil-sourcemaps.mjs",
38
+ "build:stencil": "node ../../scripts/generate-icon-docs.mjs && stencil build --docs --prod && cp -r dist .storybook && cp -r loader .storybook && node .storybook/patch-stencil-sourcemaps.mjs",
39
+ "postbuild": "node ../../scripts/copy-readmes-to-dist.mjs",
39
40
  "clean": "rm -rf dist/ loader/ storybook-static/ www/ build/ src/components/components.d.ts",
40
41
  "dev": "run-p dev:*",
41
42
  "dev:css": "postcss src/style.css -o build/style.css -w",
@@ -46,11 +47,13 @@
46
47
  "lint:html": "prettier --write src/**/*.html",
47
48
  "lint:js": "prettier --write *{.js,.json}",
48
49
  "format": "npm run lint:css -- --fix && npm run lint:ts -- --fix && npm run lint:js && npm run lint:html",
50
+ "generate:icons": "node ../../scripts/generate-icon-docs.mjs",
49
51
  "test": "stencil test --spec",
50
52
  "test.watch": "stencil test --spec --watch",
51
53
  "test.e2e": "stencil test --e2e --runInBand",
52
54
  "release": "release-it",
53
- "storybook": "npm-run-all build:css build:stencil storybook:start",
55
+ "prestorybook": "npm run build",
56
+ "storybook": "npm run storybook:start",
54
57
  "storybook:start": "storybook dev -p 9009",
55
58
  "stencil-generate": "stencil generate"
56
59
  },
@@ -86,7 +89,7 @@
86
89
  "@vitest/coverage-v8": "^4.0.13",
87
90
  "@vueless/storybook-dark-mode": "^10.0.3",
88
91
  "@xplortech/apollo-foundation": "0.1.0",
89
- "@xplortech/apollo-icons": "^0.2.2",
92
+ "@xplortech/apollo-icons": "^0.3.1",
90
93
  "auto-changelog": "^2.3.0",
91
94
  "autoprefixer": "^10.4.16",
92
95
  "cross-env": "^7.0.3",