@pingux/astro 2.129.0 → 2.130.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 (108) hide show
  1. package/lib/cjs/components/Button/Button.stories.d.ts +1 -0
  2. package/lib/cjs/components/Button/Button.stories.js +8 -2
  3. package/lib/cjs/components/Button/Buttons.styles.d.ts +48 -0
  4. package/lib/cjs/components/Button/Buttons.styles.js +9 -1
  5. package/lib/cjs/components/Callout/Callout.js +14 -16
  6. package/lib/cjs/components/Callout/Callout.stories.d.ts +9 -0
  7. package/lib/cjs/components/Callout/Callout.stories.js +24 -1
  8. package/lib/cjs/components/Callout/Callout.styles.d.ts +14 -22
  9. package/lib/cjs/components/Callout/Callout.styles.js +19 -23
  10. package/lib/cjs/components/Callout/stories/CalloutNextGenComponent.d.ts +2 -0
  11. package/lib/cjs/components/Callout/stories/CalloutNextGenComponent.js +33 -0
  12. package/lib/cjs/components/Callout/stories/NextGenCallout.chromatic.stories.d.ts +6 -0
  13. package/lib/cjs/components/Callout/stories/NextGenCallout.chromatic.stories.js +22 -0
  14. package/lib/cjs/components/Callout/stories/NextGenDarkCallout.chomatic.stories.d.ts +6 -0
  15. package/lib/cjs/components/Callout/stories/NextGenDarkCallout.chomatic.stories.js +22 -0
  16. package/lib/cjs/components/Card/Card.styles.d.ts +11 -0
  17. package/lib/cjs/components/Card/Card.styles.js +6 -1
  18. package/lib/cjs/components/RockerButtonGroup/RockerButtonGroup.mdx +1 -1
  19. package/lib/cjs/components/Table/Table.stories.js +4 -5
  20. package/lib/cjs/components/Table/Table.styles.d.ts +5 -3
  21. package/lib/cjs/components/Table/Table.styles.js +8 -6
  22. package/lib/cjs/components/TableBase/TableBase.d.ts +9 -0
  23. package/lib/cjs/components/TableBase/TableBase.js +238 -0
  24. package/lib/cjs/components/TableBase/TableBase.mdx +30 -0
  25. package/lib/cjs/components/TableBase/TableBase.stories.d.ts +6 -0
  26. package/lib/cjs/components/TableBase/TableBase.stories.js +111 -0
  27. package/lib/cjs/components/TableBase/TableBase.styles.d.ts +76 -0
  28. package/lib/cjs/components/TableBase/TableBase.styles.js +80 -0
  29. package/lib/cjs/components/TableBase/TableBase.test.d.ts +1 -0
  30. package/lib/cjs/components/TableBase/TableBase.test.js +122 -0
  31. package/lib/cjs/components/TableBase/index.d.ts +1 -0
  32. package/lib/cjs/components/TableBase/index.js +14 -0
  33. package/lib/cjs/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.d.ts +6 -0
  34. package/lib/cjs/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.js +22 -0
  35. package/lib/cjs/components/TableBase/stories/NextGenTableBase.chromatic.stories.d.ts +6 -0
  36. package/lib/cjs/components/TableBase/stories/NextGenTableBase.chromatic.stories.js +22 -0
  37. package/lib/cjs/components/TableBase/stories/NextGenTableBase.d.ts +3 -0
  38. package/lib/cjs/components/TableBase/stories/NextGenTableBase.js +67 -0
  39. package/lib/cjs/hooks/useGetTheme/useGetTheme.d.ts +3 -41
  40. package/lib/cjs/index.d.ts +3 -2
  41. package/lib/cjs/index.js +74 -20
  42. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/callout.d.ts +27 -0
  43. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/callout.js +35 -0
  44. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.d.ts +48 -0
  45. package/lib/cjs/styles/themeOverrides/nextGenDarkMode/variants/variants.js +24 -0
  46. package/lib/cjs/styles/themes/astro/customProperties/index.d.ts +4 -4
  47. package/lib/cjs/styles/themes/astro/customProperties/tShirtSizes.d.ts +4 -4
  48. package/lib/cjs/styles/themes/astro/customProperties/tShirtSizes.js +4 -4
  49. package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +1 -0
  50. package/lib/cjs/styles/themes/next-gen/colors/colors.js +2 -1
  51. package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +1 -0
  52. package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +3 -2
  53. package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +179 -1
  54. package/lib/cjs/styles/themes/next-gen/variants/callout.d.ts +34 -0
  55. package/lib/cjs/styles/themes/next-gen/variants/callout.js +45 -0
  56. package/lib/cjs/styles/themes/next-gen/variants/cards.d.ts +14 -1
  57. package/lib/cjs/styles/themes/next-gen/variants/cards.js +7 -2
  58. package/lib/cjs/styles/themes/next-gen/variants/table.d.ts +45 -0
  59. package/lib/cjs/styles/themes/next-gen/variants/table.js +65 -0
  60. package/lib/cjs/styles/themes/next-gen/variants/tableBase.d.ts +86 -0
  61. package/lib/cjs/styles/themes/next-gen/variants/tableBase.js +99 -0
  62. package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +164 -0
  63. package/lib/cjs/styles/themes/next-gen/variants/variants.js +7 -1
  64. package/lib/cjs/styles/variants/variants.js +5 -2
  65. package/lib/cjs/types/callout.d.ts +2 -0
  66. package/lib/cjs/types/cell.d.ts +12 -0
  67. package/lib/cjs/types/cell.js +6 -0
  68. package/lib/cjs/types/tableBase.d.ts +45 -0
  69. package/lib/cjs/types/tableBase.js +6 -0
  70. package/lib/cjs/utils/devUtils/constants/items.d.ts +10 -0
  71. package/lib/cjs/utils/devUtils/constants/items.js +87 -0
  72. package/lib/components/Button/Button.stories.js +5 -0
  73. package/lib/components/Button/Buttons.styles.js +9 -1
  74. package/lib/components/Callout/Callout.js +14 -16
  75. package/lib/components/Callout/Callout.stories.js +22 -0
  76. package/lib/components/Callout/Callout.styles.js +19 -24
  77. package/lib/components/Callout/stories/CalloutNextGenComponent.js +24 -0
  78. package/lib/components/Callout/stories/NextGenCallout.chromatic.stories.js +12 -0
  79. package/lib/components/Callout/stories/NextGenDarkCallout.chomatic.stories.js +12 -0
  80. package/lib/components/Card/Card.styles.js +6 -1
  81. package/lib/components/RockerButtonGroup/RockerButtonGroup.mdx +1 -1
  82. package/lib/components/Table/Table.stories.js +5 -6
  83. package/lib/components/Table/Table.styles.js +8 -6
  84. package/lib/components/TableBase/TableBase.js +221 -0
  85. package/lib/components/TableBase/TableBase.mdx +30 -0
  86. package/lib/components/TableBase/TableBase.stories.js +100 -0
  87. package/lib/components/TableBase/TableBase.styles.js +72 -0
  88. package/lib/components/TableBase/TableBase.test.js +119 -0
  89. package/lib/components/TableBase/index.js +1 -0
  90. package/lib/components/TableBase/stories/NextGenDarkTableBase.chromatic.stories.js +12 -0
  91. package/lib/components/TableBase/stories/NextGenTableBase.chromatic.stories.js +12 -0
  92. package/lib/components/TableBase/stories/NextGenTableBase.js +58 -0
  93. package/lib/index.js +3 -2
  94. package/lib/styles/themeOverrides/nextGenDarkMode/variants/callout.js +27 -0
  95. package/lib/styles/themeOverrides/nextGenDarkMode/variants/variants.js +24 -0
  96. package/lib/styles/themes/astro/customProperties/tShirtSizes.js +4 -4
  97. package/lib/styles/themes/next-gen/colors/colors.js +2 -1
  98. package/lib/styles/themes/next-gen/convertedComponentList.js +3 -2
  99. package/lib/styles/themes/next-gen/variants/callout.js +36 -0
  100. package/lib/styles/themes/next-gen/variants/cards.js +7 -2
  101. package/lib/styles/themes/next-gen/variants/table.js +57 -0
  102. package/lib/styles/themes/next-gen/variants/tableBase.js +91 -0
  103. package/lib/styles/themes/next-gen/variants/variants.js +7 -1
  104. package/lib/styles/variants/variants.js +5 -2
  105. package/lib/types/cell.js +1 -0
  106. package/lib/types/tableBase.js +1 -0
  107. package/lib/utils/devUtils/constants/items.js +79 -0
  108. package/package.json +1 -1
@@ -6,10 +6,10 @@ _Object$defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.iconWrapperSizes = exports["default"] = void 0;
8
8
  var _default = {
9
- xxs: 9,
10
- xs: 15,
11
- sm: 20,
12
- md: 25
9
+ xxs: '9px',
10
+ xs: '15px',
11
+ sm: '20px',
12
+ md: '25px'
13
13
  };
14
14
  exports["default"] = _default;
15
15
  var iconWrapperSizes = {
@@ -55,6 +55,7 @@ declare const colors: {
55
55
  secondary: string;
56
56
  card: string;
57
57
  suggestion: string;
58
+ hover: string;
58
59
  };
59
60
  iconWrapper: {
60
61
  wrapper: {
@@ -109,7 +109,8 @@ var background = {
109
109
  base: 'white',
110
110
  secondary: _colorTokens.nextGenColors['gray-100'],
111
111
  card: _colorTokens.nextGenColors['blue-100'],
112
- suggestion: '#ecf0f5'
112
+ suggestion: '#ecf0f5',
113
+ hover: _colorTokens.nextGenColors['gray-100']
113
114
  };
114
115
  var card = {
115
116
  blue: _colorTokens.nextGenColors['blue-100'],
@@ -13,6 +13,7 @@ export declare const astroBlacklistStory: {
13
13
  DataTable: string[];
14
14
  NavBar: string[];
15
15
  SearchField: string[];
16
+ Callout: string[];
16
17
  };
17
18
  export declare const nextGenOnlyComponents: string[];
18
19
  export default nextGenConvertedComponents;
@@ -5,7 +5,7 @@ _Object$defineProperty(exports, "__esModule", {
5
5
  value: true
6
6
  });
7
7
  exports.nextGenOnlyComponents = exports["default"] = exports.componentSpecificNextGenBlacklist = exports.astroBlacklistStory = void 0;
8
- var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'RockerButtonGroup', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'IconWrapper', 'ComboBoxField', 'CodeView', 'Sticker Sheet', 'NextGen ListViewItem', 'Skeleton', 'TooltipTrigger', 'ListViewItem', 'Pagination'];
8
+ var nextGenConvertedComponents = ['DataTable', 'Message', 'Button', 'Badge', 'IconButton', 'CheckboxField', 'Messages', 'PopoverMenu', 'TextField', 'PasswordField', 'SearchField', 'SelectField', 'Modal', 'RadioField', 'MultiValuesField', 'TextAreaField', 'RadioGroupField', 'RockerButtonGroup', 'Tabs', 'ProgressBar', 'NavBar', 'OverlayPanel', 'AstroProvider', 'ListView', 'NavigationHeader', 'Avatar', 'MultivaluesField', 'Text', 'Link', 'Card', 'IconWrapper', 'ComboBoxField', 'CodeView', 'Sticker Sheet', 'NextGen ListViewItem', 'Skeleton', 'TooltipTrigger', 'ListViewItem', 'Pagination', 'Callout', 'Table', 'TableBase'];
9
9
  var componentSpecificNextGenBlacklist = {
10
10
  AstroProvider: ['Default', 'With Custom Theme Override'],
11
11
  Badge: ['Status Badge Variants', 'Badge With Left Slot And Icon', 'Callout Badges', 'Removable'],
@@ -20,7 +20,8 @@ exports.componentSpecificNextGenBlacklist = componentSpecificNextGenBlacklist;
20
20
  var astroBlacklistStory = {
21
21
  DataTable: ['Onyx Default'],
22
22
  NavBar: ['Onyx Default'],
23
- SearchField: ['Onyx With Filter']
23
+ SearchField: ['Onyx With Filter'],
24
+ Callout: ['Customizations']
24
25
  };
25
26
  exports.astroBlacklistStory = astroBlacklistStory;
26
27
  var nextGenOnlyComponents = ['NavigationHeader', 'Prompt', 'AI Panel', 'Response', 'Suggestions', 'Prompt Input', 'Footer'];
@@ -43,6 +43,7 @@ declare const _default: {
43
43
  secondary: string;
44
44
  card: string;
45
45
  suggestion: string;
46
+ hover: string;
46
47
  };
47
48
  iconWrapper: {
48
49
  wrapper: {
@@ -2543,9 +2544,9 @@ declare const _default: {
2543
2544
  };
2544
2545
  container: {
2545
2546
  p: string;
2547
+ borderColor: string;
2546
2548
  boxShadow: string;
2547
2549
  border: string;
2548
- borderColor: string;
2549
2550
  borderRadius: string;
2550
2551
  display: string;
2551
2552
  color: string;
@@ -2591,6 +2592,19 @@ declare const _default: {
2591
2592
  backgroundColor: string;
2592
2593
  };
2593
2594
  };
2595
+ tableWrapper: {
2596
+ overflowY: string;
2597
+ p: string;
2598
+ borderColor: string;
2599
+ boxShadow: string;
2600
+ border: string;
2601
+ borderRadius: string;
2602
+ display: string;
2603
+ color: string;
2604
+ fontSize: string;
2605
+ fontWeight: number;
2606
+ flex: string;
2607
+ };
2594
2608
  };
2595
2609
  variants: {
2596
2610
  attachment: {
@@ -3714,6 +3728,170 @@ declare const _default: {
3714
3728
  color: string;
3715
3729
  };
3716
3730
  };
3731
+ callout: {
3732
+ base: {
3733
+ width: string;
3734
+ backgroundColor: string;
3735
+ lineHeight: string;
3736
+ p: string;
3737
+ border: string;
3738
+ borderLeft: string;
3739
+ borderLeftColor: string;
3740
+ borderRadius: string;
3741
+ alignItems: string;
3742
+ color: string;
3743
+ '&.is-success, > .is-success': {
3744
+ borderColor: string;
3745
+ borderLeftColor: string;
3746
+ };
3747
+ '&.is-warning, > .is-warning': {
3748
+ borderColor: string;
3749
+ borderLeftColor: string;
3750
+ };
3751
+ '&.is-error, > .is-error': {
3752
+ borderColor: string;
3753
+ borderLeftColor: string;
3754
+ };
3755
+ };
3756
+ icon: {
3757
+ ml: string;
3758
+ mr: string;
3759
+ minWidth: string;
3760
+ width: string;
3761
+ height: string;
3762
+ };
3763
+ };
3764
+ table: {
3765
+ container: {
3766
+ overflow: string;
3767
+ };
3768
+ caption: {
3769
+ px: string;
3770
+ color: string;
3771
+ borderBottom: string;
3772
+ borderBottomColor: string;
3773
+ };
3774
+ head: {
3775
+ px: string;
3776
+ py: string;
3777
+ fontSize: string;
3778
+ fontWeight: string;
3779
+ color: string;
3780
+ lineHeight: string;
3781
+ };
3782
+ body: {
3783
+ borderTopColor: string;
3784
+ borderBottom: string;
3785
+ backgroundColor: string;
3786
+ borderBottomLeftRadius: string;
3787
+ borderBottomRightRadius: string;
3788
+ '&& > tr:not(:last-child)': {
3789
+ borderBottom: string;
3790
+ borderBottomColor: string;
3791
+ };
3792
+ '&& > tr:nth-of-type(odd) ': {
3793
+ backgroundColor: string;
3794
+ };
3795
+ '&& > tr:last-child': {
3796
+ borderBottomLeftRadius: string;
3797
+ borderBottomRightRadius: string;
3798
+ };
3799
+ };
3800
+ data: {
3801
+ py: string;
3802
+ fontWeight: string;
3803
+ px: string;
3804
+ fontSize: string;
3805
+ color: string;
3806
+ lineHeight: string;
3807
+ };
3808
+ };
3809
+ tableBase: {
3810
+ caption: {
3811
+ backgroundColor: string;
3812
+ px: string;
3813
+ color: string;
3814
+ borderBottom: string;
3815
+ borderBottomColor: string;
3816
+ borderTopLeftRadius: string;
3817
+ borderTopRightRadius: string;
3818
+ };
3819
+ row: {
3820
+ borderBottom: string;
3821
+ borderBottomColor: string;
3822
+ '&.is-focused': {
3823
+ outlineOffset: string;
3824
+ outline: string;
3825
+ outlineColor: string;
3826
+ };
3827
+ '&.is-hovered': {
3828
+ bg: string;
3829
+ };
3830
+ '&:nth-of-type(odd)': {
3831
+ bg: string;
3832
+ '&.is-hovered': {
3833
+ bg: string;
3834
+ };
3835
+ };
3836
+ };
3837
+ thead: {
3838
+ backgroundColor: string;
3839
+ '&:not(.has-caption)': {
3840
+ '& > tr:first-child': {
3841
+ borderTopLeftRadius: string;
3842
+ borderTopRightRadius: string;
3843
+ '& > th:first-of-type': {
3844
+ borderTopLeftRadius: string;
3845
+ };
3846
+ '& > th:last-of-type': {
3847
+ borderTopRightRadius: string;
3848
+ };
3849
+ };
3850
+ };
3851
+ };
3852
+ head: {
3853
+ px: string;
3854
+ py: string;
3855
+ fontSize: string;
3856
+ fontWeight: string;
3857
+ color: string;
3858
+ lineHeight: string;
3859
+ '&.is-focused': {
3860
+ outlineOffset: string;
3861
+ outline: string;
3862
+ outlineColor: string;
3863
+ };
3864
+ };
3865
+ tbody: {
3866
+ borderTopColor: string;
3867
+ borderBottom: string;
3868
+ backgroundColor: string;
3869
+ '& > tr:last-child': {
3870
+ borderBottom: string;
3871
+ borderBottomLeftRadius: string;
3872
+ borderBottomRightRadius: string;
3873
+ '& > td:first-of-type': {
3874
+ borderBottomLeftRadius: string;
3875
+ };
3876
+ '& > td:last-of-type': {
3877
+ borderBottomRightRadius: string;
3878
+ };
3879
+ };
3880
+ };
3881
+ data: {
3882
+ py: string;
3883
+ fontWeight: string;
3884
+ px: string;
3885
+ fontSize: string;
3886
+ color: string;
3887
+ lineHeight: string;
3888
+ '&.is-focused': {
3889
+ outlineOffset: string;
3890
+ outline: string;
3891
+ outlineColor: string;
3892
+ };
3893
+ };
3894
+ };
3717
3895
  };
3718
3896
  images: {
3719
3897
  avatar: {};
@@ -0,0 +1,34 @@
1
+ declare const _default: {
2
+ base: {
3
+ width: string;
4
+ backgroundColor: string;
5
+ lineHeight: string;
6
+ p: string;
7
+ border: string;
8
+ borderLeft: string;
9
+ borderLeftColor: string;
10
+ borderRadius: string;
11
+ alignItems: string;
12
+ color: string;
13
+ '&.is-success, > .is-success': {
14
+ borderColor: string;
15
+ borderLeftColor: string;
16
+ };
17
+ '&.is-warning, > .is-warning': {
18
+ borderColor: string;
19
+ borderLeftColor: string;
20
+ };
21
+ '&.is-error, > .is-error': {
22
+ borderColor: string;
23
+ borderLeftColor: string;
24
+ };
25
+ };
26
+ icon: {
27
+ ml: string;
28
+ mr: string;
29
+ minWidth: string;
30
+ width: string;
31
+ height: string;
32
+ };
33
+ };
34
+ export default _default;
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+
3
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
4
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
5
+ _Object$defineProperty(exports, "__esModule", {
6
+ value: true
7
+ });
8
+ exports["default"] = void 0;
9
+ var _tShirtSizes = _interopRequireDefault(require("../customProperties/tShirtSizes"));
10
+ var base = {
11
+ width: '100%',
12
+ backgroundColor: 'background.secondary',
13
+ lineHeight: 'md',
14
+ p: 'md',
15
+ border: 'none',
16
+ borderLeft: '5px solid',
17
+ borderLeftColor: 'active',
18
+ borderRadius: '.25rem',
19
+ alignItems: 'flex-start',
20
+ color: 'text.primary',
21
+ '&.is-success, > .is-success': {
22
+ borderColor: 'unset',
23
+ borderLeftColor: 'success.bright'
24
+ },
25
+ '&.is-warning, > .is-warning': {
26
+ borderColor: 'unset',
27
+ borderLeftColor: 'warning.bright'
28
+ },
29
+ '&.is-error, > .is-error': {
30
+ borderColor: 'unset',
31
+ borderLeftColor: 'critical.bright'
32
+ }
33
+ };
34
+ var icon = {
35
+ ml: '0',
36
+ mr: 'md',
37
+ minWidth: "".concat(_tShirtSizes["default"].sm, " !important"),
38
+ width: "".concat(_tShirtSizes["default"].sm, " !important"),
39
+ height: "".concat(_tShirtSizes["default"].sm, " !important")
40
+ };
41
+ var _default = {
42
+ base: base,
43
+ icon: icon
44
+ };
45
+ exports["default"] = _default;
@@ -62,9 +62,9 @@ declare const _default: {
62
62
  };
63
63
  container: {
64
64
  p: string;
65
+ borderColor: string;
65
66
  boxShadow: string;
66
67
  border: string;
67
- borderColor: string;
68
68
  borderRadius: string;
69
69
  display: string;
70
70
  color: string;
@@ -110,5 +110,18 @@ declare const _default: {
110
110
  backgroundColor: string;
111
111
  };
112
112
  };
113
+ tableWrapper: {
114
+ overflowY: string;
115
+ p: string;
116
+ borderColor: string;
117
+ boxShadow: string;
118
+ border: string;
119
+ borderRadius: string;
120
+ display: string;
121
+ color: string;
122
+ fontSize: string;
123
+ fontWeight: number;
124
+ flex: string;
125
+ };
113
126
  };
114
127
  export default _default;
@@ -36,7 +36,8 @@ var interactive = {
36
36
  }
37
37
  };
38
38
  var container = _objectSpread(_objectSpread({}, _flatInstanceProperty(_Card)), {}, {
39
- p: 'lg'
39
+ p: 'lg',
40
+ borderColor: 'border.base'
40
41
  });
41
42
  var dark = _objectSpread(_objectSpread({}, _flatInstanceProperty(_Card)), {}, {
42
43
  border: 'none',
@@ -81,6 +82,9 @@ var suggestionRow = _objectSpread(_objectSpread({}, baseSuggestion), {}, {
81
82
  var suggestionColumn = _objectSpread(_objectSpread({}, baseSuggestion), {}, {
82
83
  display: 'flex'
83
84
  });
85
+ var tableWrapper = _objectSpread(_objectSpread({}, container), {}, {
86
+ overflowY: 'hidden'
87
+ });
84
88
  var _default = {
85
89
  interactive: interactive,
86
90
  dark: dark,
@@ -88,6 +92,7 @@ var _default = {
88
92
  activeCard: activeCard,
89
93
  container: container,
90
94
  suggestionColumn: suggestionColumn,
91
- suggestionRow: suggestionRow
95
+ suggestionRow: suggestionRow,
96
+ tableWrapper: tableWrapper
92
97
  };
93
98
  exports["default"] = _default;
@@ -0,0 +1,45 @@
1
+ export declare const table: {
2
+ container: {
3
+ overflow: string;
4
+ };
5
+ caption: {
6
+ px: string;
7
+ color: string;
8
+ borderBottom: string;
9
+ borderBottomColor: string;
10
+ };
11
+ head: {
12
+ px: string;
13
+ py: string;
14
+ fontSize: string;
15
+ fontWeight: string;
16
+ color: string;
17
+ lineHeight: string;
18
+ };
19
+ body: {
20
+ borderTopColor: string;
21
+ borderBottom: string;
22
+ backgroundColor: string;
23
+ borderBottomLeftRadius: string;
24
+ borderBottomRightRadius: string;
25
+ '&& > tr:not(:last-child)': {
26
+ borderBottom: string;
27
+ borderBottomColor: string;
28
+ };
29
+ '&& > tr:nth-of-type(odd) ': {
30
+ backgroundColor: string;
31
+ };
32
+ '&& > tr:last-child': {
33
+ borderBottomLeftRadius: string;
34
+ borderBottomRightRadius: string;
35
+ };
36
+ };
37
+ data: {
38
+ py: string;
39
+ fontWeight: string;
40
+ px: string;
41
+ fontSize: string;
42
+ color: string;
43
+ lineHeight: string;
44
+ };
45
+ };
@@ -0,0 +1,65 @@
1
+ "use strict";
2
+
3
+ var _Object$keys = require("@babel/runtime-corejs3/core-js-stable/object/keys");
4
+ var _Object$getOwnPropertySymbols = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols");
5
+ var _filterInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/filter");
6
+ var _Object$getOwnPropertyDescriptor = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor");
7
+ var _forEachInstanceProperty = require("@babel/runtime-corejs3/core-js-stable/instance/for-each");
8
+ var _Object$getOwnPropertyDescriptors = require("@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors");
9
+ var _Object$defineProperties = require("@babel/runtime-corejs3/core-js-stable/object/define-properties");
10
+ var _Object$defineProperty = require("@babel/runtime-corejs3/core-js-stable/object/define-property");
11
+ var _interopRequireDefault = require("@babel/runtime-corejs3/helpers/interopRequireDefault");
12
+ _Object$defineProperty(exports, "__esModule", {
13
+ value: true
14
+ });
15
+ exports.table = void 0;
16
+ var _defineProperty2 = _interopRequireDefault(require("@babel/runtime-corejs3/helpers/defineProperty"));
17
+ 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; }
18
+ 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) { (0, _defineProperty2["default"])(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; }
19
+ var container = {
20
+ overflow: 'hidden'
21
+ };
22
+ var caption = {
23
+ px: 'lg',
24
+ color: 'text.primary',
25
+ borderBottom: '1px solid',
26
+ borderBottomColor: 'border.base'
27
+ };
28
+ var head = {
29
+ px: 'lg',
30
+ py: 'sm',
31
+ fontSize: 'md',
32
+ fontWeight: '2',
33
+ color: 'text.primary',
34
+ lineHeight: 'body'
35
+ };
36
+ var body = {
37
+ borderTopColor: 'border.base',
38
+ borderBottom: 'unset',
39
+ backgroundColor: 'background.base',
40
+ borderBottomLeftRadius: '16px',
41
+ borderBottomRightRadius: '16px',
42
+ '&& > tr:not(:last-child)': {
43
+ borderBottom: '1px solid',
44
+ borderBottomColor: 'border.base'
45
+ },
46
+ '&& > tr:nth-of-type(odd) ': {
47
+ backgroundColor: 'background.base'
48
+ },
49
+ '&& > tr:last-child': {
50
+ borderBottomLeftRadius: '16px',
51
+ borderBottomRightRadius: '16px'
52
+ }
53
+ };
54
+ var data = _objectSpread(_objectSpread({}, head), {}, {
55
+ py: 'md',
56
+ fontWeight: '1'
57
+ });
58
+ var table = {
59
+ container: container,
60
+ caption: caption,
61
+ head: head,
62
+ body: body,
63
+ data: data
64
+ };
65
+ exports.table = table;
@@ -0,0 +1,86 @@
1
+ export declare const tableBase: {
2
+ caption: {
3
+ backgroundColor: string;
4
+ px: string;
5
+ color: string;
6
+ borderBottom: string;
7
+ borderBottomColor: string;
8
+ borderTopLeftRadius: string;
9
+ borderTopRightRadius: string;
10
+ };
11
+ row: {
12
+ borderBottom: string;
13
+ borderBottomColor: string;
14
+ '&.is-focused': {
15
+ outlineOffset: string;
16
+ outline: string;
17
+ outlineColor: string;
18
+ };
19
+ '&.is-hovered': {
20
+ bg: string;
21
+ };
22
+ '&:nth-of-type(odd)': {
23
+ bg: string;
24
+ '&.is-hovered': {
25
+ bg: string;
26
+ };
27
+ };
28
+ };
29
+ thead: {
30
+ backgroundColor: string;
31
+ '&:not(.has-caption)': {
32
+ '& > tr:first-child': {
33
+ borderTopLeftRadius: string;
34
+ borderTopRightRadius: string;
35
+ '& > th:first-of-type': {
36
+ borderTopLeftRadius: string;
37
+ };
38
+ '& > th:last-of-type': {
39
+ borderTopRightRadius: string;
40
+ };
41
+ };
42
+ };
43
+ };
44
+ head: {
45
+ px: string;
46
+ py: string;
47
+ fontSize: string;
48
+ fontWeight: string;
49
+ color: string;
50
+ lineHeight: string;
51
+ '&.is-focused': {
52
+ outlineOffset: string;
53
+ outline: string;
54
+ outlineColor: string;
55
+ };
56
+ };
57
+ tbody: {
58
+ borderTopColor: string;
59
+ borderBottom: string;
60
+ backgroundColor: string;
61
+ '& > tr:last-child': {
62
+ borderBottom: string;
63
+ borderBottomLeftRadius: string;
64
+ borderBottomRightRadius: string;
65
+ '& > td:first-of-type': {
66
+ borderBottomLeftRadius: string;
67
+ };
68
+ '& > td:last-of-type': {
69
+ borderBottomRightRadius: string;
70
+ };
71
+ };
72
+ };
73
+ data: {
74
+ py: string;
75
+ fontWeight: string;
76
+ px: string;
77
+ fontSize: string;
78
+ color: string;
79
+ lineHeight: string;
80
+ '&.is-focused': {
81
+ outlineOffset: string;
82
+ outline: string;
83
+ outlineColor: string;
84
+ };
85
+ };
86
+ };