@sproutsocial/racine 25.1.0 → 25.2.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.
package/CHANGELOG.md
CHANGED
package/commonjs/Modal/Modal.js
CHANGED
|
@@ -15,7 +15,7 @@ var _styles = require("./styles");
|
|
|
15
15
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
16
16
|
var _excluded = ["title", "subtitle", "children", "bordered"],
|
|
17
17
|
_excluded2 = ["children"],
|
|
18
|
-
_excluded3 = ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex"];
|
|
18
|
+
_excluded3 = ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex", "data"];
|
|
19
19
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
20
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
21
21
|
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
@@ -108,6 +108,8 @@ var Modal = function Modal(props) {
|
|
|
108
108
|
closeButtonLabel = props.closeButtonLabel,
|
|
109
109
|
width = props.width,
|
|
110
110
|
zIndex = props.zIndex,
|
|
111
|
+
_props$data = props.data,
|
|
112
|
+
data = _props$data === void 0 ? {} : _props$data,
|
|
111
113
|
rest = _objectWithoutProperties(props, _excluded3);
|
|
112
114
|
var isCloseable = Boolean(onClose);
|
|
113
115
|
var appElement = appElementSelector && document ? document.querySelector(appElementSelector) : undefined;
|
|
@@ -127,10 +129,10 @@ var Modal = function Modal(props) {
|
|
|
127
129
|
role: "dialog",
|
|
128
130
|
width: width,
|
|
129
131
|
zIndex: zIndex,
|
|
130
|
-
data: {
|
|
132
|
+
data: _objectSpread({
|
|
131
133
|
"qa-modal": "",
|
|
132
134
|
"qa-modal-isopen": isOpen
|
|
133
|
-
}
|
|
135
|
+
}, data)
|
|
134
136
|
}, rest), {}, {
|
|
135
137
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(React.Fragment, {
|
|
136
138
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Body, {}), /*#__PURE__*/(0, _jsxRuntime.jsx)(ModalContext.Provider, {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EACV,cAAc,EACd,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,cAAc,CAAC;AAoEtB;;GAEG;AACH,QAAA,MAAM,KAAK;YAAW,cAAc;;;;;;gBA7DR,oBAAoB;;;;gBAuCpB,oBAAoB;;;;;;;;gBAVf,yBAAyB;;;
|
|
1
|
+
{"version":3,"file":"Modal.d.ts","sourceRoot":"","sources":["../../../src/Modal/Modal.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAO/B,OAAO,KAAK,EACV,cAAc,EACd,yBAAyB,EACzB,qBAAqB,EACrB,oBAAoB,EACpB,oBAAoB,EACrB,MAAM,cAAc,CAAC;AAoEtB;;GAEG;AACH,QAAA,MAAM,KAAK;YAAW,cAAc;;;;;;gBA7DR,oBAAoB;;;;gBAuCpB,oBAAoB;;;;;;;;gBAVf,yBAAyB;;;CA0FzD,CAAC;AAiBF,eAAe,KAAK,CAAC"}
|
|
@@ -37,5 +37,10 @@ export interface TypeModalProps extends TypeContainerProps, Omit<ReactModal.Prop
|
|
|
37
37
|
zIndex?: number;
|
|
38
38
|
/** The max width of the modal container */
|
|
39
39
|
width?: string | number;
|
|
40
|
+
/**
|
|
41
|
+
* Custom attributes to be added to the modals container
|
|
42
|
+
* Each key will be prepended with "data-" when rendered in the DOM
|
|
43
|
+
*/
|
|
44
|
+
data?: Record<string, string | boolean | number>;
|
|
40
45
|
}
|
|
41
46
|
//# sourceMappingURL=ModalTypes.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModalTypes.d.ts","sourceRoot":"","sources":["../../../src/Modal/ModalTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,KAAK,EAAE,YAAY,EAAE,kBAAkB,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AAEnD,MAAM,WAAW,yBACf,SAAQ,IAAI,CAAC,eAAe,EAAE,UAAU,CAAC;IACzC,QAAQ,CAAC,EAAE,IAAI,GAAG,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAElB,8DAA8D;IAC9D,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;IAE3B,wFAAwF;IACxF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAsB,SAAQ,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AAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,oBAAqB,SAAQ,YAAY;IACxD,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;CAC3B;AAED,MAAM,WAAW,qBAAsB,SAAQ,YAAY;IACzD,QAAQ,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC;CAC5B;AAED,MAAM,WAAW,cACf,SAAQ,kBAAkB,EAExB,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,MAAM,kBAAkB,GAAG,gBAAgB,CAAC;IACrE,gDAAgD;IAChD,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAE5B,yCAAyC;IACzC,MAAM,EAAE,OAAO,CAAC;IAEhB,qDAAqD;IACrD,KAAK,EAAE,MAAM,CAAC;IAEd,gCAAgC;IAChC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAE1B,yBAAyB;IACzB,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IAErB,6BAA6B;IAC7B,gBAAgB,EAAE,MAAM,CAAC;IAEzB,wCAAwC;IACxC,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB,2CAA2C;IAC3C,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAExB;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,CAAC,CAAC;CAClD"}
|
package/lib/Modal/Modal.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
2
|
var _excluded = ["title", "subtitle", "children", "bordered"],
|
|
3
3
|
_excluded2 = ["children"],
|
|
4
|
-
_excluded3 = ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex"];
|
|
4
|
+
_excluded3 = ["appElementSelector", "children", "isOpen", "label", "onClose", "closeButtonLabel", "width", "zIndex", "data"];
|
|
5
5
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
6
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
7
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -100,6 +100,8 @@ var Modal = function Modal(props) {
|
|
|
100
100
|
closeButtonLabel = props.closeButtonLabel,
|
|
101
101
|
width = props.width,
|
|
102
102
|
zIndex = props.zIndex,
|
|
103
|
+
_props$data = props.data,
|
|
104
|
+
data = _props$data === void 0 ? {} : _props$data,
|
|
103
105
|
rest = _objectWithoutProperties(props, _excluded3);
|
|
104
106
|
var isCloseable = Boolean(onClose);
|
|
105
107
|
var appElement = appElementSelector && document ? document.querySelector(appElementSelector) : undefined;
|
|
@@ -119,10 +121,10 @@ var Modal = function Modal(props) {
|
|
|
119
121
|
role: "dialog",
|
|
120
122
|
width: width,
|
|
121
123
|
zIndex: zIndex,
|
|
122
|
-
data: {
|
|
124
|
+
data: _objectSpread({
|
|
123
125
|
"qa-modal": "",
|
|
124
126
|
"qa-modal-isopen": isOpen
|
|
125
|
-
}
|
|
127
|
+
}, data)
|
|
126
128
|
}, rest), {}, {
|
|
127
129
|
children: /*#__PURE__*/_jsxs(React.Fragment, {
|
|
128
130
|
children: [/*#__PURE__*/_jsx(Body, {}), /*#__PURE__*/_jsx(ModalContext.Provider, {
|