@elliemae/ds-header 2.0.2 → 2.1.0-rc.3

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.
package/cjs/Header.js CHANGED
@@ -12,7 +12,7 @@ var _objectWithoutProperties = require('@babel/runtime/helpers/objectWithoutProp
12
12
  require('react');
13
13
  var reactDesc = require('react-desc');
14
14
  var styled = require('styled-components');
15
- var styledSystem = require('styled-system');
15
+ var styledComponents = require('@xstyled/styled-components');
16
16
  var jsxRuntime = require('react/jsx-runtime');
17
17
 
18
18
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
@@ -28,7 +28,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
28
28
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty__default["default"](target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
29
29
  const H = /*#__PURE__*/styled__default["default"].h3.withConfig({
30
30
  componentId: "sc-hpgkwz-0"
31
- })(["font-weight:unset;font-size:unset;line-height:unset;margin:0;padding:0;", " ", " ", " ", " ", ""], styledSystem.space, styledSystem.width, styledSystem.height, styledSystem.typography, styledSystem.color);
31
+ })(["font-weight:unset;font-size:unset;line-height:unset;margin:0;padding:0;", " ", " ", ""], styledComponents.space, styledComponents.sizing, styledComponents.typography);
32
32
 
33
33
  const DSHeader = _ref => {
34
34
  let {
@@ -50,9 +50,9 @@ const DSHeader = _ref => {
50
50
  fontFamily: fontFamily,
51
51
  fontSize: fontSize,
52
52
  fontWeight: fontWeight,
53
- height: height,
53
+ h: height,
54
54
  lineHeight: lineHeight,
55
- width: width,
55
+ w: width,
56
56
  "data-testid": "em-ds-header"
57
57
  }, rest), {}, {
58
58
  children: text
package/esm/Header.js CHANGED
@@ -8,7 +8,7 @@ import _objectWithoutProperties from '@babel/runtime/helpers/esm/objectWithoutPr
8
8
  import 'react';
9
9
  import { PropTypes, describe } from 'react-desc';
10
10
  import styled from 'styled-components';
11
- import { space, width, height, typography, color } from 'styled-system';
11
+ import { space, sizing, typography } from '@xstyled/styled-components';
12
12
  import { jsx } from 'react/jsx-runtime';
13
13
 
14
14
  const _excluded = ["color", "fontFamily", "fontSize", "fontWeight", "height", "level", "lineHeight", "text", "width"];
@@ -18,7 +18,7 @@ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (O
18
18
  function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
19
19
  const H = /*#__PURE__*/styled.h3.withConfig({
20
20
  componentId: "sc-hpgkwz-0"
21
- })(["font-weight:unset;font-size:unset;line-height:unset;margin:0;padding:0;", " ", " ", " ", " ", ""], space, width, height, typography, color);
21
+ })(["font-weight:unset;font-size:unset;line-height:unset;margin:0;padding:0;", " ", " ", ""], space, sizing, typography);
22
22
 
23
23
  const DSHeader = _ref => {
24
24
  let {
@@ -40,9 +40,9 @@ const DSHeader = _ref => {
40
40
  fontFamily: fontFamily,
41
41
  fontSize: fontSize,
42
42
  fontWeight: fontWeight,
43
- height: height,
43
+ h: height,
44
44
  lineHeight: lineHeight,
45
- width: width,
45
+ w: width,
46
46
  "data-testid": "em-ds-header"
47
47
  }, rest), {}, {
48
48
  children: text
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elliemae/ds-header",
3
- "version": "2.0.2",
3
+ "version": "2.1.0-rc.3",
4
4
  "license": "MIT",
5
5
  "description": "ICE MT - Dimsum - Header",
6
6
  "module": "./esm/index.js",
@@ -36,6 +36,7 @@
36
36
  "build": "node ../../scripts/build/build.js"
37
37
  },
38
38
  "dependencies": {
39
+ "@xstyled/styled-components": "~3.1.1",
39
40
  "react-desc": "~4.1.3"
40
41
  },
41
42
  "devDependencies": {
package/types/Header.d.ts CHANGED
@@ -19,34 +19,34 @@ declare const DSHeader: {
19
19
  };
20
20
  propTypes: {
21
21
  color: {
22
- defaultValue<T = unknown>(arg: T): {
22
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
23
23
  deprecated: import("react-desc").PropTypesDescValidator;
24
24
  };
25
- isRequired: import("react-desc").PropTypesDescValidator;
25
+ isRequired: import("react-desc").PropTypesDescValue;
26
26
  };
27
27
  fontFamily: {
28
- defaultValue<T = unknown>(arg: T): {
28
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
29
29
  deprecated: import("react-desc").PropTypesDescValidator;
30
30
  };
31
- isRequired: import("react-desc").PropTypesDescValidator;
31
+ isRequired: import("react-desc").PropTypesDescValue;
32
32
  };
33
33
  fontSize: {
34
- defaultValue<T = unknown>(arg: T): {
34
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
35
35
  deprecated: import("react-desc").PropTypesDescValidator;
36
36
  };
37
- isRequired: import("react-desc").PropTypesDescValidator;
37
+ isRequired: import("react-desc").PropTypesDescValue;
38
38
  };
39
39
  fontWeight: {
40
- defaultValue<T = unknown>(arg: T): {
40
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
41
41
  deprecated: import("react-desc").PropTypesDescValidator;
42
42
  };
43
- isRequired: import("react-desc").PropTypesDescValidator;
43
+ isRequired: import("react-desc").PropTypesDescValue;
44
44
  };
45
45
  height: {
46
- defaultValue<T = unknown>(arg: T): {
46
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
47
47
  deprecated: import("react-desc").PropTypesDescValidator;
48
48
  };
49
- isRequired: import("react-desc").PropTypesDescValidator;
49
+ isRequired: import("react-desc").PropTypesDescValue;
50
50
  };
51
51
  level: {
52
52
  deprecated: import("react-desc").PropTypesDescValidator;
@@ -55,95 +55,95 @@ declare const DSHeader: {
55
55
  deprecated: import("react-desc").PropTypesDescValidator;
56
56
  };
57
57
  m: {
58
- defaultValue<T = unknown>(arg: T): {
58
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
59
59
  deprecated: import("react-desc").PropTypesDescValidator;
60
60
  };
61
- isRequired: import("react-desc").PropTypesDescValidator;
61
+ isRequired: import("react-desc").PropTypesDescValue;
62
62
  };
63
63
  mb: {
64
- defaultValue<T = unknown>(arg: T): {
64
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
65
65
  deprecated: import("react-desc").PropTypesDescValidator;
66
66
  };
67
- isRequired: import("react-desc").PropTypesDescValidator;
67
+ isRequired: import("react-desc").PropTypesDescValue;
68
68
  };
69
69
  ml: {
70
- defaultValue<T = unknown>(arg: T): {
70
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
71
71
  deprecated: import("react-desc").PropTypesDescValidator;
72
72
  };
73
- isRequired: import("react-desc").PropTypesDescValidator;
73
+ isRequired: import("react-desc").PropTypesDescValue;
74
74
  };
75
75
  mr: {
76
- defaultValue<T = unknown>(arg: T): {
76
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
77
77
  deprecated: import("react-desc").PropTypesDescValidator;
78
78
  };
79
- isRequired: import("react-desc").PropTypesDescValidator;
79
+ isRequired: import("react-desc").PropTypesDescValue;
80
80
  };
81
81
  mt: {
82
- defaultValue<T = unknown>(arg: T): {
82
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
83
83
  deprecated: import("react-desc").PropTypesDescValidator;
84
84
  };
85
- isRequired: import("react-desc").PropTypesDescValidator;
85
+ isRequired: import("react-desc").PropTypesDescValue;
86
86
  };
87
87
  mx: {
88
- defaultValue<T = unknown>(arg: T): {
88
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
89
89
  deprecated: import("react-desc").PropTypesDescValidator;
90
90
  };
91
- isRequired: import("react-desc").PropTypesDescValidator;
91
+ isRequired: import("react-desc").PropTypesDescValue;
92
92
  };
93
93
  my: {
94
- defaultValue<T = unknown>(arg: T): {
94
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
95
95
  deprecated: import("react-desc").PropTypesDescValidator;
96
96
  };
97
- isRequired: import("react-desc").PropTypesDescValidator;
97
+ isRequired: import("react-desc").PropTypesDescValue;
98
98
  };
99
99
  p: {
100
- defaultValue<T = unknown>(arg: T): {
100
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
101
101
  deprecated: import("react-desc").PropTypesDescValidator;
102
102
  };
103
- isRequired: import("react-desc").PropTypesDescValidator;
103
+ isRequired: import("react-desc").PropTypesDescValue;
104
104
  };
105
105
  pb: {
106
- defaultValue<T = unknown>(arg: T): {
106
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
107
107
  deprecated: import("react-desc").PropTypesDescValidator;
108
108
  };
109
- isRequired: import("react-desc").PropTypesDescValidator;
109
+ isRequired: import("react-desc").PropTypesDescValue;
110
110
  };
111
111
  pl: {
112
- defaultValue<T = unknown>(arg: T): {
112
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
113
113
  deprecated: import("react-desc").PropTypesDescValidator;
114
114
  };
115
- isRequired: import("react-desc").PropTypesDescValidator;
115
+ isRequired: import("react-desc").PropTypesDescValue;
116
116
  };
117
117
  pr: {
118
- defaultValue<T = unknown>(arg: T): {
118
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
119
119
  deprecated: import("react-desc").PropTypesDescValidator;
120
120
  };
121
- isRequired: import("react-desc").PropTypesDescValidator;
121
+ isRequired: import("react-desc").PropTypesDescValue;
122
122
  };
123
123
  pt: {
124
- defaultValue<T = unknown>(arg: T): {
124
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
125
125
  deprecated: import("react-desc").PropTypesDescValidator;
126
126
  };
127
- isRequired: import("react-desc").PropTypesDescValidator;
127
+ isRequired: import("react-desc").PropTypesDescValue;
128
128
  };
129
129
  px: {
130
- defaultValue<T = unknown>(arg: T): {
130
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
131
131
  deprecated: import("react-desc").PropTypesDescValidator;
132
132
  };
133
- isRequired: import("react-desc").PropTypesDescValidator;
133
+ isRequired: import("react-desc").PropTypesDescValue;
134
134
  };
135
135
  py: {
136
- defaultValue<T = unknown>(arg: T): {
136
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
137
137
  deprecated: import("react-desc").PropTypesDescValidator;
138
138
  };
139
- isRequired: import("react-desc").PropTypesDescValidator;
139
+ isRequired: import("react-desc").PropTypesDescValue;
140
140
  };
141
- text: import("react-desc").PropTypesDescValidator;
141
+ text: import("react-desc").PropTypesDescValue;
142
142
  width: {
143
- defaultValue<T = unknown>(arg: T): {
143
+ defaultValue(arg: import("react-desc").ReactDescPossibleDefaultValues): {
144
144
  deprecated: import("react-desc").PropTypesDescValidator;
145
145
  };
146
- isRequired: import("react-desc").PropTypesDescValidator;
146
+ isRequired: import("react-desc").PropTypesDescValue;
147
147
  };
148
148
  };
149
149
  };