@pingux/astro 2.142.1-alpha.1 → 2.143.0-alpha.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.
@@ -9,11 +9,42 @@ import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object
9
9
  import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
10
10
  function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
11
11
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
12
+ import colors from '../colors/colors';
12
13
  import { defaultFocus as baseFocus } from './button';
13
14
  var borderRadius = '16px';
14
15
  var defaultFocus = _objectSpread(_objectSpread({}, baseFocus), {}, {
15
16
  outlineOffset: '-2px'
16
17
  });
18
+ var container = {
19
+ '& > thead > tr': {
20
+ '& > th:first-of-type': {
21
+ borderTopLeftRadius: borderRadius
22
+ },
23
+ '& > th:last-of-type': {
24
+ borderTopRightRadius: borderRadius
25
+ }
26
+ },
27
+ '& > tbody > tr:last-child': {
28
+ borderBottom: 'unset',
29
+ borderBottomLeftRadius: borderRadius,
30
+ borderBottomRightRadius: borderRadius,
31
+ '& > td:first-of-type': {
32
+ borderBottomLeftRadius: borderRadius
33
+ },
34
+ '& > td:last-of-type': {
35
+ borderBottomRightRadius: borderRadius
36
+ }
37
+ },
38
+ '&.has-caption > thead > tr:first-of-type > th': {
39
+ borderRadius: '0'
40
+ },
41
+ '&.has-pagination > tbody > tr:last-child': {
42
+ borderRadius: 0,
43
+ '& > td': {
44
+ borderRadius: 0
45
+ }
46
+ }
47
+ };
17
48
  var caption = {
18
49
  backgroundColor: 'background.base',
19
50
  px: 'lg',
@@ -40,17 +71,8 @@ var row = {
40
71
  var thead = {
41
72
  borderBottomColor: 'border.base',
42
73
  backgroundColor: 'background.base',
43
- '&:not(.has-caption)': {
44
- borderTopLeftRadius: borderRadius,
45
- borderTopRightRadius: borderRadius,
46
- '& > tr:first-child': {
47
- '& > th:first-of-type': {
48
- borderTopLeftRadius: borderRadius
49
- },
50
- '& > th:last-of-type': {
51
- borderTopRightRadius: borderRadius
52
- }
53
- }
74
+ '&.is-sticky': {
75
+ boxShadow: "0 1px 0 ".concat(colors.border.base)
54
76
  }
55
77
  };
56
78
  var head = {
@@ -67,24 +89,14 @@ var tbody = {
67
89
  borderBottom: 'unset',
68
90
  backgroundColor: 'background.base',
69
91
  borderBottomLeftRadius: borderRadius,
70
- borderBottomRightRadius: borderRadius,
71
- '& > tr:last-child': {
72
- borderBottom: 'unset',
73
- borderBottomLeftRadius: borderRadius,
74
- borderBottomRightRadius: borderRadius,
75
- '& > td:first-of-type': {
76
- borderBottomLeftRadius: borderRadius
77
- },
78
- '& > td:last-of-type': {
79
- borderBottomRightRadius: borderRadius
80
- }
81
- }
92
+ borderBottomRightRadius: borderRadius
82
93
  };
83
94
  var data = _objectSpread(_objectSpread({}, head), {}, {
84
95
  py: 'md',
85
96
  fontWeight: '1'
86
97
  });
87
98
  export var tableBase = {
99
+ container: container,
88
100
  caption: caption,
89
101
  row: row,
90
102
  thead: thead,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pingux/astro",
3
- "version": "2.142.1-alpha.1",
3
+ "version": "2.143.0-alpha.0",
4
4
  "description": "React component library for Ping Identity's design system",
5
5
  "repository": {
6
6
  "type": "git",