@rh-support/components 2.0.11 → 2.0.12-beta.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/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts +4 -1
- package/lib/cjs/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
- package/lib/cjs/ConfirmationModal/ConfirmationDialog.js +2 -1
- package/lib/cjs/LoadingDots/LoadingDots.js +1 -1
- package/lib/cjs/PhoneInput/CountryData.d.ts +3 -0
- package/lib/cjs/PhoneInput/CountryData.d.ts.map +1 -0
- package/lib/cjs/PhoneInput/CountryData.js +590 -0
- package/lib/cjs/PhoneInput/PhoneInput.d.ts +14 -0
- package/lib/cjs/PhoneInput/PhoneInput.d.ts.map +1 -0
- package/lib/cjs/PhoneInput/PhoneInput.js +199 -0
- package/lib/cjs/PhoneInput/PhoneInput.scss +744 -0
- package/lib/cjs/PhoneInput/flags.png +0 -0
- package/lib/cjs/PhoneInput/index.d.ts +2 -0
- package/lib/cjs/PhoneInput/index.d.ts.map +1 -0
- package/lib/cjs/PhoneInput/index.js +13 -0
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.d.ts.map +1 -1
- package/lib/cjs/index.js +1 -0
- package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts +4 -1
- package/lib/esm/ConfirmationModal/ConfirmationDialog.d.ts.map +1 -1
- package/lib/esm/ConfirmationModal/ConfirmationDialog.js +3 -2
- package/lib/esm/LoadingDots/LoadingDots.js +1 -1
- package/lib/esm/PhoneInput/CountryData.d.ts +3 -0
- package/lib/esm/PhoneInput/CountryData.d.ts.map +1 -0
- package/lib/esm/PhoneInput/CountryData.js +588 -0
- package/lib/esm/PhoneInput/PhoneInput.d.ts +14 -0
- package/lib/esm/PhoneInput/PhoneInput.d.ts.map +1 -0
- package/lib/esm/PhoneInput/PhoneInput.js +173 -0
- package/lib/esm/PhoneInput/PhoneInput.scss +744 -0
- package/lib/esm/PhoneInput/flags.png +0 -0
- package/lib/esm/PhoneInput/index.d.ts +2 -0
- package/lib/esm/PhoneInput/index.d.ts.map +1 -0
- package/lib/esm/PhoneInput/index.js +1 -0
- package/lib/esm/index.d.ts +1 -0
- package/lib/esm/index.d.ts.map +1 -1
- package/lib/esm/index.js +1 -0
- package/package.json +12 -9
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
__exportStar(require("./PhoneInput"), exports);
|
package/lib/cjs/index.d.ts
CHANGED
package/lib/cjs/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,eAAe,CAAC;AAC9B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,SAAS,CAAC;AACxB,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAA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;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC"}
|
package/lib/cjs/index.js
CHANGED
|
@@ -42,3 +42,4 @@ __exportStar(require("./SubscriptionAbuse"), exports);
|
|
|
42
42
|
__exportStar(require("./TermsAndConditions"), exports);
|
|
43
43
|
__exportStar(require("./TextAreaResizable"), exports);
|
|
44
44
|
__exportStar(require("./CustomTextInput"), exports);
|
|
45
|
+
__exportStar(require("./PhoneInput"), exports);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { ButtonVariant } from '@patternfly/react-core';
|
|
2
|
+
import { ButtonVariant, ModalVariant } from '@patternfly/react-core';
|
|
3
3
|
export interface ConfirmationOptions {
|
|
4
4
|
catchOnCancel?: boolean;
|
|
5
5
|
title?: string;
|
|
@@ -8,11 +8,13 @@ export interface ConfirmationOptions {
|
|
|
8
8
|
confirmButtonVariant?: ButtonVariant;
|
|
9
9
|
cancelText?: string;
|
|
10
10
|
cancelButtonVariant?: ButtonVariant;
|
|
11
|
+
modalVariant?: ModalVariant;
|
|
11
12
|
}
|
|
12
13
|
interface IProps extends ConfirmationOptions {
|
|
13
14
|
open: boolean;
|
|
14
15
|
onConfirm: () => void;
|
|
15
16
|
onClose: () => void;
|
|
17
|
+
modalVariant?: ModalVariant;
|
|
16
18
|
}
|
|
17
19
|
declare function ConfirmationDialog(props: IProps): JSX.Element;
|
|
18
20
|
declare namespace ConfirmationDialog {
|
|
@@ -21,6 +23,7 @@ declare namespace ConfirmationDialog {
|
|
|
21
23
|
cancelText: string;
|
|
22
24
|
confirmButtonVariant: ButtonVariant;
|
|
23
25
|
cancelButtonVariant: ButtonVariant;
|
|
26
|
+
modalVariant: ModalVariant;
|
|
24
27
|
};
|
|
25
28
|
}
|
|
26
29
|
export { ConfirmationDialog };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfirmationDialog.d.ts","sourceRoot":"","sources":["../../../src/ConfirmationModal/ConfirmationDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAU,aAAa,EAAS,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"ConfirmationDialog.d.ts","sourceRoot":"","sources":["../../../src/ConfirmationModal/ConfirmationDialog.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAU,aAAa,EAAS,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAIpF,MAAM,WAAW,mBAAmB;IAChC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,EAAE,MAAM,GAAG,GAAG,CAAC,OAAO,CAAC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,aAAa,CAAC;IACrC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,mBAAmB,CAAC,EAAE,aAAa,CAAC;IACpC,YAAY,CAAC,EAAE,YAAY,CAAC;CAC/B;AAED,UAAU,MAAO,SAAQ,mBAAmB;IACxC,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,MAAM,IAAI,CAAC;IACtB,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,YAAY,CAAC,EAAE,YAAY,CAAC;CAC/B;AAUD,iBAAS,kBAAkB,CAAC,KAAK,EAAE,MAAM,eAsBxC;kBAtBQ,kBAAkB;;;;;;;;;AAwB3B,OAAO,EAAE,kBAAkB,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Button, ButtonVariant, Modal } from '@patternfly/react-core';
|
|
1
|
+
import { Button, ButtonVariant, Modal, ModalVariant } from '@patternfly/react-core';
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Trans, useTranslation } from 'react-i18next';
|
|
4
4
|
const defaultProps = {
|
|
@@ -6,10 +6,11 @@ const defaultProps = {
|
|
|
6
6
|
cancelText: 'Cancel',
|
|
7
7
|
confirmButtonVariant: ButtonVariant.primary,
|
|
8
8
|
cancelButtonVariant: ButtonVariant.link,
|
|
9
|
+
modalVariant: ModalVariant.medium,
|
|
9
10
|
};
|
|
10
11
|
function ConfirmationDialog(props) {
|
|
11
12
|
const { t } = useTranslation();
|
|
12
|
-
return (React.createElement(Modal, {
|
|
13
|
+
return (React.createElement(Modal, { variant: props.modalVariant, "aria-describedby": "se-confirm-dialog", "aria-label": t('confirmation modal'), title: props.title || '', isOpen: props.open, onClose: props.onClose, actions: [
|
|
13
14
|
React.createElement(Button, { key: "confirm", onClick: props.onConfirm, variant: props.confirmButtonVariant },
|
|
14
15
|
React.createElement(Trans, null, props.confirmText)),
|
|
15
16
|
React.createElement(Button, { key: "cancel", onClick: props.onClose, variant: props.cancelButtonVariant },
|
|
@@ -13,7 +13,7 @@ function LoadingDots(props) {
|
|
|
13
13
|
React.createElement("span", null, ".")),
|
|
14
14
|
React.createElement("p", { className: "sr-only" },
|
|
15
15
|
React.createElement(Trans, null, "Loading...")))),
|
|
16
|
-
props.message && props.show && React.createElement("
|
|
16
|
+
props.message && props.show && React.createElement("p", { className: "pf-u-text-align-center pf-u-my-md" }, props.message)));
|
|
17
17
|
}
|
|
18
18
|
LoadingDots.defaultProps = defaultProps;
|
|
19
19
|
export { LoadingDots };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"CountryData.d.ts","sourceRoot":"","sources":["../../../src/PhoneInput/CountryData.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,WAAW,kCAyjBhB,CAAC;AAEF,eAAe,WAAW,CAAC"}
|