@pingux/astro 2.142.1-alpha.1 → 2.143.0-alpha.1

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 (212) hide show
  1. package/lib/cjs/components/AccordionGridGroup/AccordionGrid.styles.js +1 -2
  2. package/lib/cjs/components/AccordionGridGroup/AccordionGridGroup.stories.js +86 -5
  3. package/lib/cjs/components/AccordionGridItem/AccordionGridItemHeader.js +7 -5
  4. package/lib/cjs/components/AccordionGroup/AccordionGroup.js +5 -3
  5. package/lib/cjs/components/AccordionGroup/AccordionGroup.stories.js +3 -6
  6. package/lib/cjs/components/AccordionItem/AccordionItem.js +8 -4
  7. package/lib/cjs/components/AstroProvider/AstroProvider.js +3 -3
  8. package/lib/cjs/components/Breadcrumbs/Breadcrumbs.js +6 -2
  9. package/lib/cjs/components/Button/Button.stories.js +6 -3
  10. package/lib/cjs/components/Button/Buttons.styles.d.ts +40 -0
  11. package/lib/cjs/components/Button/Buttons.styles.js +2 -0
  12. package/lib/cjs/components/Card/Card.styles.d.ts +3 -0
  13. package/lib/cjs/components/Card/Card.styles.js +4 -1
  14. package/lib/cjs/components/CollapsiblePanel/CollapsiblePanel.stories.js +5 -1
  15. package/lib/cjs/components/CopyText/CopyButton.js +4 -1
  16. package/lib/cjs/components/CopyText/CopyText.js +2 -1
  17. package/lib/cjs/components/GridList/GridList.stories.js +0 -1
  18. package/lib/cjs/components/Icon/Icon.js +2 -1
  19. package/lib/cjs/components/Icon/Icon.stories.js +1 -1
  20. package/lib/cjs/components/IconBadge/IconBadge.js +4 -4
  21. package/lib/cjs/components/IconBadge/IconBadge.stories.js +2 -2
  22. package/lib/cjs/components/Input/Input.styles.js +3 -0
  23. package/lib/cjs/components/ListView/ListView.stories.js +27 -10
  24. package/lib/cjs/components/ListView/ListViewItem.js +1 -1
  25. package/lib/cjs/components/Loader/Loader.js +71 -5
  26. package/lib/cjs/components/Loader/Loader.stories.js +17 -2
  27. package/lib/cjs/components/Loader/Loader.styles.d.ts +7 -0
  28. package/lib/cjs/components/Loader/Loader.styles.js +11 -1
  29. package/lib/cjs/components/MultivaluesField/CondensedMultivaluesField.js +6 -4
  30. package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +26 -15
  31. package/lib/cjs/components/PageHeader/PageHeader.js +5 -2
  32. package/lib/cjs/components/PanelHeader/PanelHeader.js +43 -10
  33. package/lib/cjs/components/PanelHeader/PanelHeader.stories.js +9 -4
  34. package/lib/cjs/components/PanelHeader/PanelHeader.styles.js +5 -0
  35. package/lib/cjs/components/PanelHeader/PanelHeader.test.js +22 -0
  36. package/lib/cjs/components/RequirementsList/RequirementsList.js +11 -8
  37. package/lib/cjs/components/Stepper/Step.js +1 -1
  38. package/lib/cjs/components/Stepper/Stepper.styles.js +1 -0
  39. package/lib/cjs/components/Switch/Switch.js +12 -2
  40. package/lib/cjs/components/Switch/Switch.styles.js +1 -1
  41. package/lib/cjs/components/SwitchField/SwitchField.js +7 -2
  42. package/lib/cjs/components/TableBase/TableBase.d.ts +1 -7
  43. package/lib/cjs/components/TableBase/TableBase.js +96 -74
  44. package/lib/cjs/components/TableBase/TableBase.stories.js +45 -36
  45. package/lib/cjs/components/TableBase/TableBase.styles.d.ts +5 -7
  46. package/lib/cjs/components/TableBase/TableBase.styles.js +8 -3
  47. package/lib/cjs/components/TableBase/stories/NextGenTableBase.js +5 -2
  48. package/lib/cjs/components/Tabs/Tabs.stories.js +23 -7
  49. package/lib/cjs/components/Text/Text.stories.d.ts +1 -0
  50. package/lib/cjs/components/Text/Text.stories.js +354 -1
  51. package/lib/cjs/components/Text/Text.styles.d.ts +10 -0
  52. package/lib/cjs/components/Text/Text.styles.js +5 -0
  53. package/lib/cjs/components/TextField/TextField.stories.js +12 -2
  54. package/lib/cjs/hooks/useCircularLoader/useCircularLoader.d.ts +23 -0
  55. package/lib/cjs/hooks/useCircularLoader/useCircularLoader.js +80 -0
  56. package/lib/cjs/hooks/useCircularLoader/useCircularLoader.test.d.ts +1 -0
  57. package/lib/cjs/hooks/useCircularLoader/useCircularLoader.test.js +136 -0
  58. package/lib/cjs/hooks/useField/useField.d.ts +6 -6
  59. package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +75 -0
  60. package/lib/cjs/hooks/usePagination/usePagination.d.ts +4 -4
  61. package/lib/cjs/styles/colors.d.ts +6 -0
  62. package/lib/cjs/styles/colors.js +4 -1
  63. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.d.ts +36 -0
  64. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/colors.js +23 -2
  65. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/icons.d.ts +5 -0
  66. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.d.ts +17 -0
  67. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +7 -1
  68. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.d.ts +66 -0
  69. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +18 -0
  70. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.d.ts +15 -0
  71. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/forms.js +18 -1
  72. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.d.ts +0 -8
  73. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/input.js +9 -9
  74. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.d.ts +14 -0
  75. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/links.js +15 -0
  76. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +10 -0
  77. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +11 -0
  78. package/lib/cjs/styles/themes/astro/customProperties/icons.d.ts +5 -0
  79. package/lib/cjs/styles/themes/astro/customProperties/icons.js +11 -4
  80. package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +18 -0
  81. package/lib/cjs/styles/themes/astro/customProperties/index.js +26 -1
  82. package/lib/cjs/styles/themes/next-gen/codeView/codeView.d.ts +2 -0
  83. package/lib/cjs/styles/themes/next-gen/codeView/codeView.js +4 -2
  84. package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +37 -0
  85. package/lib/cjs/styles/themes/next-gen/colors/colors.js +5 -2
  86. package/lib/cjs/styles/themes/next-gen/colors/iconWrapper.js +14 -35
  87. package/lib/cjs/styles/themes/next-gen/colors/twoTone.d.ts +37 -0
  88. package/lib/cjs/styles/themes/next-gen/colors/twoTone.js +46 -0
  89. package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +4 -1
  90. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +6 -3
  91. package/lib/cjs/styles/themes/next-gen/customProperties/customSizes.d.ts +10 -0
  92. package/lib/cjs/styles/themes/next-gen/customProperties/customSizes.js +22 -0
  93. package/lib/cjs/styles/themes/next-gen/customProperties/icons.d.ts +5 -0
  94. package/lib/cjs/styles/themes/next-gen/customProperties/icons.js +10 -3
  95. package/lib/cjs/styles/themes/next-gen/customProperties/index.d.ts +17 -0
  96. package/lib/cjs/styles/themes/next-gen/customProperties/index.js +26 -4
  97. package/lib/cjs/styles/themes/next-gen/customProperties/tShirtSizes.js +4 -4
  98. package/lib/cjs/styles/themes/next-gen/forms.d.ts +42 -0
  99. package/lib/cjs/styles/themes/next-gen/forms.js +5 -0
  100. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +1185 -881
  101. package/lib/cjs/styles/themes/next-gen/next-gen.js +1 -1
  102. package/lib/cjs/styles/themes/next-gen/text.js +2 -2
  103. package/lib/cjs/styles/themes/next-gen/variants/accordion.d.ts +16 -0
  104. package/lib/cjs/styles/themes/next-gen/variants/accordion.js +26 -0
  105. package/lib/cjs/styles/themes/next-gen/variants/badges.d.ts +0 -17
  106. package/lib/cjs/styles/themes/next-gen/variants/badges.js +1 -3
  107. package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +151 -105
  108. package/lib/cjs/styles/themes/next-gen/variants/button.js +38 -7
  109. package/lib/cjs/styles/themes/next-gen/variants/cards.js +1 -1
  110. package/lib/cjs/styles/themes/next-gen/variants/input.js +16 -5
  111. package/lib/cjs/styles/themes/next-gen/variants/label.js +5 -3
  112. package/lib/cjs/styles/themes/next-gen/variants/links.d.ts +4 -2
  113. package/lib/cjs/styles/themes/next-gen/variants/listview.js +1 -1
  114. package/lib/cjs/styles/themes/next-gen/variants/panelHeader.d.ts +16 -0
  115. package/lib/cjs/styles/themes/next-gen/variants/panelHeader.js +26 -0
  116. package/lib/cjs/styles/themes/next-gen/variants/stepper.d.ts +66 -0
  117. package/lib/cjs/styles/themes/next-gen/variants/stepper.js +74 -0
  118. package/lib/cjs/styles/themes/next-gen/variants/switch.d.ts +36 -0
  119. package/lib/cjs/styles/themes/next-gen/variants/switch.js +44 -0
  120. package/lib/cjs/styles/themes/next-gen/variants/tableBase.d.ts +32 -22
  121. package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +35 -23
  122. package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +62 -0
  123. package/lib/cjs/styles/themes/next-gen/variants/text.js +67 -7
  124. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +919 -752
  125. package/lib/cjs/styles/themes/next-gen/variants/variants.js +88 -38
  126. package/lib/cjs/types/loader.d.ts +5 -2
  127. package/lib/cjs/types/shared/style.d.ts +2 -0
  128. package/lib/cjs/types/tableBase.d.ts +4 -3
  129. package/lib/components/AccordionGridGroup/AccordionGrid.styles.js +1 -2
  130. package/lib/components/AccordionGridGroup/AccordionGridGroup.stories.js +86 -5
  131. package/lib/components/AccordionGridItem/AccordionGridItemHeader.js +6 -4
  132. package/lib/components/AccordionGroup/AccordionGroup.js +5 -3
  133. package/lib/components/AccordionGroup/AccordionGroup.stories.js +3 -6
  134. package/lib/components/AccordionItem/AccordionItem.js +8 -4
  135. package/lib/components/AstroProvider/AstroProvider.js +3 -3
  136. package/lib/components/Breadcrumbs/Breadcrumbs.js +7 -3
  137. package/lib/components/Button/Button.stories.js +4 -1
  138. package/lib/components/Button/Buttons.styles.js +2 -0
  139. package/lib/components/Card/Card.styles.js +4 -1
  140. package/lib/components/CollapsiblePanel/CollapsiblePanel.stories.js +5 -1
  141. package/lib/components/CopyText/CopyButton.js +4 -1
  142. package/lib/components/CopyText/CopyText.js +2 -1
  143. package/lib/components/GridList/GridList.stories.js +0 -1
  144. package/lib/components/Icon/Icon.js +2 -1
  145. package/lib/components/Icon/Icon.stories.js +1 -1
  146. package/lib/components/IconBadge/IconBadge.js +4 -4
  147. package/lib/components/IconBadge/IconBadge.stories.js +2 -2
  148. package/lib/components/Input/Input.styles.js +3 -0
  149. package/lib/components/ListView/ListView.stories.js +28 -11
  150. package/lib/components/ListView/ListViewItem.js +1 -1
  151. package/lib/components/Loader/Loader.js +71 -3
  152. package/lib/components/Loader/Loader.stories.js +13 -0
  153. package/lib/components/Loader/Loader.styles.js +11 -1
  154. package/lib/components/MultivaluesField/CondensedMultivaluesField.js +6 -4
  155. package/lib/components/MultivaluesField/DefaultMultivaluesField.js +27 -16
  156. package/lib/components/PageHeader/PageHeader.js +5 -2
  157. package/lib/components/PanelHeader/PanelHeader.js +44 -11
  158. package/lib/components/PanelHeader/PanelHeader.stories.js +9 -4
  159. package/lib/components/PanelHeader/PanelHeader.styles.js +5 -0
  160. package/lib/components/PanelHeader/PanelHeader.test.js +23 -1
  161. package/lib/components/RequirementsList/RequirementsList.js +7 -4
  162. package/lib/components/Stepper/Step.js +1 -1
  163. package/lib/components/Stepper/Stepper.styles.js +1 -0
  164. package/lib/components/Switch/Switch.js +12 -2
  165. package/lib/components/Switch/Switch.styles.js +1 -1
  166. package/lib/components/SwitchField/SwitchField.js +7 -2
  167. package/lib/components/TableBase/TableBase.js +100 -72
  168. package/lib/components/TableBase/TableBase.stories.js +46 -37
  169. package/lib/components/TableBase/TableBase.styles.js +8 -3
  170. package/lib/components/TableBase/stories/NextGenTableBase.js +6 -3
  171. package/lib/components/Tabs/Tabs.stories.js +23 -7
  172. package/lib/components/Text/Text.stories.js +352 -0
  173. package/lib/components/Text/Text.styles.js +5 -0
  174. package/lib/components/TextField/TextField.stories.js +12 -2
  175. package/lib/hooks/useCircularLoader/useCircularLoader.js +71 -0
  176. package/lib/hooks/useCircularLoader/useCircularLoader.test.js +129 -0
  177. package/lib/styles/colors.js +4 -1
  178. package/lib/styles/themeOverrides/nextGenDarkMode/colors.js +23 -2
  179. package/lib/styles/themeOverrides/nextGenDarkMode/customProperties/index.js +7 -1
  180. package/lib/styles/themeOverrides/nextGenDarkMode/variants/buttons.js +18 -0
  181. package/lib/styles/themeOverrides/nextGenDarkMode/variants/forms.js +18 -1
  182. package/lib/styles/themeOverrides/nextGenDarkMode/variants/input.js +9 -9
  183. package/lib/styles/themeOverrides/nextGenDarkMode/variants/links.js +15 -0
  184. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +11 -0
  185. package/lib/styles/themes/astro/customProperties/icons.js +12 -5
  186. package/lib/styles/themes/astro/customProperties/index.js +26 -1
  187. package/lib/styles/themes/next-gen/codeView/codeView.js +4 -2
  188. package/lib/styles/themes/next-gen/colors/colors.js +5 -2
  189. package/lib/styles/themes/next-gen/colors/iconWrapper.js +14 -35
  190. package/lib/styles/themes/next-gen/colors/twoTone.js +38 -0
  191. package/lib/styles/themes/next-gen/convertedComponentList.js +6 -3
  192. package/lib/styles/themes/next-gen/customProperties/customSizes.js +14 -0
  193. package/lib/styles/themes/next-gen/customProperties/icons.js +10 -3
  194. package/lib/styles/themes/next-gen/customProperties/index.js +26 -2
  195. package/lib/styles/themes/next-gen/customProperties/tShirtSizes.js +4 -4
  196. package/lib/styles/themes/next-gen/forms.js +5 -0
  197. package/lib/styles/themes/next-gen/next-gen.js +1 -1
  198. package/lib/styles/themes/next-gen/text.js +2 -2
  199. package/lib/styles/themes/next-gen/variants/accordion.js +18 -0
  200. package/lib/styles/themes/next-gen/variants/badges.js +1 -3
  201. package/lib/styles/themes/next-gen/variants/button.js +38 -7
  202. package/lib/styles/themes/next-gen/variants/cards.js +1 -1
  203. package/lib/styles/themes/next-gen/variants/input.js +16 -5
  204. package/lib/styles/themes/next-gen/variants/label.js +5 -3
  205. package/lib/styles/themes/next-gen/variants/listview.js +1 -1
  206. package/lib/styles/themes/next-gen/variants/panelHeader.js +18 -0
  207. package/lib/styles/themes/next-gen/variants/stepper.js +66 -0
  208. package/lib/styles/themes/next-gen/variants/switch.js +36 -0
  209. package/lib/styles/themes/next-gen/variants/tableBase.js +35 -23
  210. package/lib/styles/themes/next-gen/variants/text.js +67 -7
  211. package/lib/styles/themes/next-gen/variants/variants.js +82 -37
  212. package/package.json +1 -1
@@ -89,14 +89,17 @@ var statusVariant = {
89
89
  Inactive: 'secondaryStatusBadge'
90
90
  };
91
91
  var Default = function Default() {
92
- return (0, _react2.jsx)(_.TableBase, {
92
+ return (0, _react2.jsx)(_.Card, {
93
+ variant: "cards.tableWrapper"
94
+ }, (0, _react2.jsx)(_.TableBase, {
93
95
  caption: "Lorem ipsum",
94
96
  "aria-label": "table"
95
97
  }, (0, _react2.jsx)(_.THead, {
96
98
  columns: headers
97
99
  }, function (column) {
98
100
  return (0, _react2.jsx)(_.Column, {
99
- key: column.key
101
+ key: column.key,
102
+ minWidth: 200
100
103
  }, column.name);
101
104
  }), (0, _react2.jsx)(_.TBody, {
102
105
  items: objects
@@ -106,7 +109,7 @@ var Default = function Default() {
106
109
  }, function (columnKey) {
107
110
  return (0, _react2.jsx)(_.Cell, null, item[columnKey]);
108
111
  });
109
- }));
112
+ })));
110
113
  };
111
114
  exports.Default = Default;
112
115
  var MultiSelection = function MultiSelection() {
@@ -114,7 +117,9 @@ var MultiSelection = function MultiSelection() {
114
117
  _React$useState2 = (0, _slicedToArray2["default"])(_React$useState, 2),
115
118
  selectedKeys = _React$useState2[0],
116
119
  setSelectedKeys = _React$useState2[1];
117
- return (0, _react2.jsx)(_.TableBase, {
120
+ return (0, _react2.jsx)(_.Card, {
121
+ variant: "cards.tableWrapper"
122
+ }, (0, _react2.jsx)(_.TableBase, {
118
123
  caption: "Lorem ipsum",
119
124
  "aria-label": "table",
120
125
  selectionMode: "multiple",
@@ -124,7 +129,8 @@ var MultiSelection = function MultiSelection() {
124
129
  columns: headers
125
130
  }, function (column) {
126
131
  return (0, _react2.jsx)(_.Column, {
127
- key: column.key
132
+ key: column.key,
133
+ minWidth: 200
128
134
  }, column.name);
129
135
  }), (0, _react2.jsx)(_.TBody, {
130
136
  items: objects
@@ -134,42 +140,38 @@ var MultiSelection = function MultiSelection() {
134
140
  }, function (columnKey) {
135
141
  return (0, _react2.jsx)(_.Cell, null, item[columnKey]);
136
142
  });
137
- }));
143
+ })));
138
144
  };
139
145
  exports.MultiSelection = MultiSelection;
140
146
  var WithStickyHeader = function WithStickyHeader() {
141
- return (0, _react2.jsx)(_.TableBase, {
147
+ return (0, _react2.jsx)(_.Card, {
148
+ variant: "cards.tableWrapper",
149
+ height: "400px"
150
+ }, (0, _react2.jsx)(_.TableBase, {
142
151
  "aria-label": "table",
143
152
  isStickyHeader: true,
144
153
  selectionMode: "single",
145
154
  defaultSelectedKeys: ['2'],
146
- disabledKeys: ['3'],
147
- tableBodyProps: {
148
- style: {
149
- height: '300px'
150
- }
151
- }
155
+ disabledKeys: ['3']
152
156
  }, (0, _react2.jsx)(_.THead, null, (0, _react2.jsx)(_.Column, {
153
- width: 200
157
+ minWidth: 200
154
158
  }, "Name"), (0, _react2.jsx)(_.Column, {
155
- width: 300
159
+ minWidth: 300
156
160
  }, "Email"), (0, _react2.jsx)(_.Column, {
157
- width: 150
158
- }, "Status"), (0, _react2.jsx)(_.Column, {
159
- width: "1fr"
160
- }, "Bio")), (0, _react2.jsx)(_.TBody, {
161
+ minWidth: 150
162
+ }, "Status"), (0, _react2.jsx)(_.Column, null, "Bio")), (0, _react2.jsx)(_.TBody, {
161
163
  items: _items.items
162
164
  }, function (item) {
163
165
  var _context;
164
166
  return (0, _react2.jsx)(_.Row, {
165
167
  key: item.id
166
- }, (0, _react2.jsx)(_.Cell, null, (0, _concat["default"])(_context = "".concat(item.firstName, " ")).call(_context, item.lastName), ' ', item.id), (0, _react2.jsx)(_.Cell, null, item.email), (0, _react2.jsx)(_.Cell, null, (0, _react2.jsx)(_.Badge, {
168
+ }, (0, _react2.jsx)(_.Cell, null, (0, _concat["default"])(_context = "".concat(item.firstName, " ")).call(_context, item.lastName)), (0, _react2.jsx)(_.Cell, null, item.email), (0, _react2.jsx)(_.Cell, null, (0, _react2.jsx)(_.Badge, {
167
169
  variant: statusVariant[item.status],
168
170
  label: item.status
169
171
  })), (0, _react2.jsx)(_.Cell, null, (0, _react2.jsx)(_.Text, {
170
172
  variant: "textEllipsis"
171
- }, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Quo quidem accusantium architecto tempore facere!")));
172
- }));
173
+ }, "Lorem ipsum dolor sit amet.")));
174
+ })));
173
175
  };
174
176
  exports.WithStickyHeader = WithStickyHeader;
175
177
  WithStickyHeader.parameters = {
@@ -190,16 +192,15 @@ var ExampleTable = function ExampleTable() {
190
192
  paginationState = _usePaginationState.paginationState;
191
193
  var renderItems = (0, _slice["default"])(_items.items).call(_items.items, paginationState.firstRenderedIndex, paginationState.lastRenderedIndex + 1);
192
194
  return (0, _react2.jsx)(_.TableBase, {
193
- "aria-label": "table"
195
+ "aria-label": "table",
196
+ className: "has-pagination"
194
197
  }, (0, _react2.jsx)(_.THead, null, (0, _react2.jsx)(_.Column, {
195
- width: 200
198
+ minWidth: 200
196
199
  }, "Name"), (0, _react2.jsx)(_.Column, {
197
- width: 300
200
+ minWidth: 300
198
201
  }, "Email"), (0, _react2.jsx)(_.Column, {
199
- width: 150
200
- }, "Status"), (0, _react2.jsx)(_.Column, {
201
- width: "1fr"
202
- }, "Bio")), (0, _react2.jsx)(_.TBody, {
202
+ minWidth: 150
203
+ }, "Status"), (0, _react2.jsx)(_.Column, null, "Bio")), (0, _react2.jsx)(_.TBody, {
203
204
  items: renderItems
204
205
  }, function (item) {
205
206
  var _context2;
@@ -210,7 +211,7 @@ var ExampleTable = function ExampleTable() {
210
211
  label: item.status
211
212
  })), (0, _react2.jsx)(_.Cell, null, (0, _react2.jsx)(_.Text, {
212
213
  variant: "textEllipsis"
213
- }, "Lorem ipsum dolor sit amet consectetur adipisicing elit. Quo quidem accusantium architecto tempore facere!")));
214
+ }, "Lorem ipsum dolor sit amet.")));
214
215
  }));
215
216
  };
216
217
  var WithPagination = function WithPagination() {
@@ -218,14 +219,20 @@ var WithPagination = function WithPagination() {
218
219
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
219
220
  offsetCount = _useState2[0],
220
221
  setOffsetCount = _useState2[1];
221
- return (0, _react2.jsx)(_.PaginationProvider, null, (0, _react2.jsx)(_.Box, {
222
- gap: "sm"
223
- }, (0, _react2.jsx)(ExampleTable, null), (0, _react2.jsx)(_.Pagination, {
222
+ return (0, _react2.jsx)(_.Card, {
223
+ variant: "cards.tableWrapper"
224
+ }, (0, _react2.jsx)(_.PaginationProvider, null, (0, _react2.jsx)(_.Box, {
225
+ variant: "cards.body",
226
+ overflow: "auto",
227
+ p: "0"
228
+ }, (0, _react2.jsx)(ExampleTable, null)), (0, _react2.jsx)(_.Box, {
229
+ variant: "cards.footer"
230
+ }, (0, _react2.jsx)(_.Pagination, {
224
231
  totalCount: _items.items.length,
225
232
  offsetCount: offsetCount,
226
233
  onOffsetCountChange: setOffsetCount,
227
234
  offsetOptions: [10, 20, 50, 100]
228
- })));
235
+ }))));
229
236
  };
230
237
  exports.WithPagination = WithPagination;
231
238
  WithPagination.parameters = {
@@ -342,7 +349,9 @@ var DynamicWithSorting = function DynamicWithSorting() {
342
349
  direction: 'ascending'
343
350
  }
344
351
  });
345
- return (0, _react2.jsx)(_.TableBase, {
352
+ return (0, _react2.jsx)(_.Card, {
353
+ variant: "cards.tableWrapper"
354
+ }, (0, _react2.jsx)(_.TableBase, {
346
355
  "aria-label": "Dynamic table",
347
356
  onSortChange: function onSortChange(descriptor) {
348
357
  if (descriptor.column) {
@@ -367,7 +376,7 @@ var DynamicWithSorting = function DynamicWithSorting() {
367
376
  }, function (columnKey) {
368
377
  return (0, _react2.jsx)(_.Cell, null, item[columnKey]);
369
378
  });
370
- }));
379
+ })));
371
380
  };
372
381
 
373
382
  // Added to bypass color contrast issue due to virtualizer
@@ -7,12 +7,14 @@ declare const _default: {
7
7
  position: string;
8
8
  top: number;
9
9
  zIndex: number;
10
+ boxShadow: string;
10
11
  };
11
12
  };
12
13
  tbody: {
13
14
  borderBottom: string;
14
15
  borderBottomColor: string;
15
- overflow: string;
16
+ overflowX: string;
17
+ scrollPaddingBottom: string;
16
18
  };
17
19
  caption: {
18
20
  fontFamily: string;
@@ -23,6 +25,7 @@ declare const _default: {
23
25
  };
24
26
  container: {
25
27
  width: string;
28
+ height: string;
26
29
  borderSpacing: string;
27
30
  borderCollapse: string;
28
31
  position: string;
@@ -82,12 +85,7 @@ declare const _default: {
82
85
  outlineOffset: string;
83
86
  };
84
87
  '&.is-hovered': {};
85
- '&.is-selected': {
86
- outline: string;
87
- outlineStyle: string;
88
- outlineColor: string;
89
- outlineOffset: string;
90
- };
88
+ '&.is-selected': {};
91
89
  '&.is-disabled': {
92
90
  bg: string;
93
91
  opacity: number;
@@ -25,6 +25,7 @@ var defaultFocus = {
25
25
  };
26
26
  var container = {
27
27
  width: '100%',
28
+ height: '100%',
28
29
  borderSpacing: '0',
29
30
  borderCollapse: 'collapse',
30
31
  position: 'relative'
@@ -43,7 +44,8 @@ var thead = {
43
44
  '&.is-sticky': {
44
45
  position: 'sticky',
45
46
  top: 0,
46
- zIndex: 1
47
+ zIndex: 1,
48
+ boxShadow: '0 1px 0 #68747f'
47
49
  }
48
50
  };
49
51
  var head = _objectSpread(_objectSpread({}, _Text.text.label), {}, {
@@ -59,7 +61,8 @@ var head = _objectSpread(_objectSpread({}, _Text.text.label), {}, {
59
61
  var tbody = {
60
62
  borderBottom: '1px solid',
61
63
  borderBottomColor: 'neutral.80',
62
- overflow: 'auto'
64
+ overflowX: 'auto',
65
+ scrollPaddingBottom: '20px'
63
66
  };
64
67
  var row = {
65
68
  '&:nth-of-type(odd) ': {
@@ -72,7 +75,9 @@ var row = {
72
75
  '&.is-hovered': {
73
76
  // This is the hover state for the row
74
77
  },
75
- '&.is-selected': _objectSpread({}, defaultFocus),
78
+ '&.is-selected': {
79
+ // This is the selected state for the row
80
+ },
76
81
  '&.is-disabled': {
77
82
  bg: 'neutral.90',
78
83
  opacity: 0.5,
@@ -42,7 +42,10 @@ var NextGenTableBase = function NextGenTableBase() {
42
42
  additional_grant: '+25,000',
43
43
  total_grant: '75,000'
44
44
  }];
45
- return (0, _react2.jsx)(_.TableBase, {
45
+ return (0, _react2.jsx)(_.Card, {
46
+ variant: "cards.tableWrapper",
47
+ overflow: "unset"
48
+ }, (0, _react2.jsx)(_.TableBase, {
46
49
  caption: "Lorem ipsum",
47
50
  "aria-label": "table"
48
51
  }, (0, _react2.jsx)(_.THead, {
@@ -59,7 +62,7 @@ var NextGenTableBase = function NextGenTableBase() {
59
62
  }, function (columnKey) {
60
63
  return (0, _react2.jsx)(_.Cell, null, item[columnKey]);
61
64
  });
62
- }));
65
+ })));
63
66
  };
64
67
  var _default = NextGenTableBase;
65
68
  exports["default"] = _default;
@@ -59,13 +59,25 @@ var _default = {
59
59
  };
60
60
  exports["default"] = _default;
61
61
  var tabs = [{
62
- name: 'Tab 1',
63
- children: (0, _react2.jsx)(_index.Text, null, "Tab 1 body")
62
+ name: 'Overview',
63
+ children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
64
64
  }, {
65
- name: 'Tab 2',
66
- children: (0, _react2.jsx)(_index.Text, null, "Tab 2 body")
65
+ name: 'Configuration',
66
+ children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
67
+ }, {
68
+ name: 'Resources',
69
+ children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
70
+ }, {
71
+ name: 'Policies',
72
+ children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
73
+ }, {
74
+ name: 'Attribute Mappings',
75
+ children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
76
+ }, {
77
+ name: 'Access',
78
+ children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
67
79
  }, {
68
- name: 'Tab 3',
80
+ name: 'Integration',
69
81
  children: (0, _react2.jsx)(_index.Text, null, "Tab 3 body")
70
82
  }];
71
83
  var customTabs = [{
@@ -96,7 +108,11 @@ var Controlled = function Controlled() {
96
108
  _useState2 = (0, _slicedToArray2["default"])(_useState, 2),
97
109
  currentTab = _useState2[0],
98
110
  setCurrentTab = _useState2[1];
99
- return (0, _react2.jsx)(_index.Tabs, {
111
+ return (0, _react2.jsx)(_index.Box, {
112
+ sx: {
113
+ maxWidth: '500px'
114
+ }
115
+ }, (0, _react2.jsx)(_index.Tabs, {
100
116
  selectedKey: currentTab,
101
117
  onSelectionChange: setCurrentTab,
102
118
  items: tabs
@@ -106,7 +122,7 @@ var Controlled = function Controlled() {
106
122
  title: item.name,
107
123
  textValue: item.name
108
124
  }, item.children);
109
- });
125
+ }));
110
126
  };
111
127
  exports.Controlled = Controlled;
112
128
  var Centered = function Centered() {
@@ -3,5 +3,6 @@ import { TextProps } from '../../types';
3
3
  declare const _default: import("@storybook/types").ComponentAnnotations<import("@storybook/react/dist/types-0a347bb9").R, import("@storybook/types").Args>;
4
4
  export default _default;
5
5
  export declare const Default: StoryFn<TextProps>;
6
+ export declare const Onyx: StoryFn<TextProps>;
6
7
  export declare const CustomWidth: StoryFn;
7
8
  export declare const CustomStyle: StoryFn;