@openedx/paragon 23.12.1 → 23.13.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.
@@ -2,7 +2,7 @@ import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import ActionRow from '../ActionRow';
4
4
  import Button from '../Button';
5
- const CheckpointActionRow = /*#__PURE__*/React.forwardRef(_ref => {
5
+ const CheckpointActionRow = /*#__PURE__*/React.forwardRef((_ref, ref) => {
6
6
  let {
7
7
  advanceButtonText,
8
8
  backButtonText,
@@ -15,7 +15,8 @@ const CheckpointActionRow = /*#__PURE__*/React.forwardRef(_ref => {
15
15
  } = _ref;
16
16
  const isFirstCheckpoint = index === 0;
17
17
  return /*#__PURE__*/React.createElement(ActionRow, {
18
- className: "pgn__checkpoint-action-row"
18
+ className: "pgn__checkpoint-action-row",
19
+ ref: ref
19
20
  }, !isFirstCheckpoint && /*#__PURE__*/React.createElement(Button, {
20
21
  className: "pgn__checkpoint-button-back",
21
22
  variant: "tertiary",
@@ -1 +1 @@
1
- {"version":3,"file":"CheckpointActionRow.js","names":["React","PropTypes","ActionRow","Button","CheckpointActionRow","forwardRef","_ref","advanceButtonText","backButtonText","endButtonText","isLastCheckpoint","onAdvance","onBack","onEnd","index","isFirstCheckpoint","createElement","className","variant","onClick","autoFocus","defaultProps","propTypes","node","string","bool","func","number"],"sources":["../../src/ProductTour/CheckpointActionRow.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport ActionRow from '../ActionRow';\nimport Button from '../Button';\n\nconst CheckpointActionRow = React.forwardRef(({\n advanceButtonText,\n backButtonText,\n endButtonText,\n isLastCheckpoint,\n onAdvance,\n onBack,\n onEnd,\n index,\n}) => {\n const isFirstCheckpoint = index === 0;\n return (\n <ActionRow className=\"pgn__checkpoint-action-row\">\n {!isFirstCheckpoint && (\n <Button\n className=\"pgn__checkpoint-button-back\"\n variant=\"tertiary\"\n onClick={onBack}\n >\n {backButtonText}\n </Button>\n )}\n <Button\n autoFocus\n className=\"pgn__checkpoint-button_advance\"\n onClick={isLastCheckpoint ? () => onEnd(index) : () => onAdvance(index)}\n >\n {isLastCheckpoint ? endButtonText : advanceButtonText}\n </Button>\n </ActionRow>\n );\n});\n\nCheckpointActionRow.defaultProps = {\n advanceButtonText: '',\n backButtonText: '',\n endButtonText: '',\n isLastCheckpoint: false,\n onAdvance: () => { },\n onBack: () => { },\n onEnd: () => { },\n index: 0,\n};\n\nCheckpointActionRow.propTypes = {\n /** The text displayed on the button used to advance the tour. */\n advanceButtonText: PropTypes.node,\n /** The text displayed on the button used to go back on the tour */\n backButtonText: PropTypes.string,\n /** The text displayed on the button used to end the tour. */\n endButtonText: PropTypes.node,\n /** Whether the parent Checkpoint is the last in the tour. */\n isLastCheckpoint: PropTypes.bool,\n /** A function that runs when triggering the `onClick` event of the advance button. */\n onAdvance: PropTypes.func,\n /** A function that runs when triggering the `onClick` event of the back button. */\n onBack: PropTypes.func,\n /** A function that runs when triggering the `onClick` event of the advance button if isLastCheckpoint is true. */\n onEnd: PropTypes.func,\n /** Allows visibility of last index value for onEnd checkpoint compatibility */\n index: PropTypes.number,\n};\n\nexport default CheckpointActionRow;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,SAAS,MAAM,cAAc;AACpC,OAAOC,MAAM,MAAM,WAAW;AAE9B,MAAMC,mBAAmB,gBAAGJ,KAAK,CAACK,UAAU,CAACC,IAAA,IASvC;EAAA,IATwC;IAC5CC,iBAAiB;IACjBC,cAAc;IACdC,aAAa;IACbC,gBAAgB;IAChBC,SAAS;IACTC,MAAM;IACNC,KAAK;IACLC;EACF,CAAC,GAAAR,IAAA;EACC,MAAMS,iBAAiB,GAAGD,KAAK,KAAK,CAAC;EACrC,oBACEd,KAAA,CAAAgB,aAAA,CAACd,SAAS;IAACe,SAAS,EAAC;EAA4B,GAC9C,CAACF,iBAAiB,iBACjBf,KAAA,CAAAgB,aAAA,CAACb,MAAM;IACLc,SAAS,EAAC,6BAA6B;IACvCC,OAAO,EAAC,UAAU;IAClBC,OAAO,EAAEP;EAAO,GAEfJ,cACK,CACT,eACDR,KAAA,CAAAgB,aAAA,CAACb,MAAM;IACLiB,SAAS;IACTH,SAAS,EAAC,gCAAgC;IAC1CE,OAAO,EAAET,gBAAgB,GAAG,MAAMG,KAAK,CAACC,KAAK,CAAC,GAAG,MAAMH,SAAS,CAACG,KAAK;EAAE,GAEvEJ,gBAAgB,GAAGD,aAAa,GAAGF,iBAC9B,CACC,CAAC;AAEhB,CAAC,CAAC;AAEFH,mBAAmB,CAACiB,YAAY,GAAG;EACjCd,iBAAiB,EAAE,EAAE;EACrBC,cAAc,EAAE,EAAE;EAClBC,aAAa,EAAE,EAAE;EACjBC,gBAAgB,EAAE,KAAK;EACvBC,SAAS,EAAEA,CAAA,KAAM,CAAE,CAAC;EACpBC,MAAM,EAAEA,CAAA,KAAM,CAAE,CAAC;EACjBC,KAAK,EAAEA,CAAA,KAAM,CAAE,CAAC;EAChBC,KAAK,EAAE;AACT,CAAC;AAEDV,mBAAmB,CAACkB,SAAS,GAAG;EAC9B;EACAf,iBAAiB,EAAEN,SAAS,CAACsB,IAAI;EACjC;EACAf,cAAc,EAAEP,SAAS,CAACuB,MAAM;EAChC;EACAf,aAAa,EAAER,SAAS,CAACsB,IAAI;EAC7B;EACAb,gBAAgB,EAAET,SAAS,CAACwB,IAAI;EAChC;EACAd,SAAS,EAAEV,SAAS,CAACyB,IAAI;EACzB;EACAd,MAAM,EAAEX,SAAS,CAACyB,IAAI;EACtB;EACAb,KAAK,EAAEZ,SAAS,CAACyB,IAAI;EACrB;EACAZ,KAAK,EAAEb,SAAS,CAAC0B;AACnB,CAAC;AAED,eAAevB,mBAAmB","ignoreList":[]}
1
+ {"version":3,"file":"CheckpointActionRow.js","names":["React","PropTypes","ActionRow","Button","CheckpointActionRow","forwardRef","_ref","ref","advanceButtonText","backButtonText","endButtonText","isLastCheckpoint","onAdvance","onBack","onEnd","index","isFirstCheckpoint","createElement","className","variant","onClick","autoFocus","defaultProps","propTypes","node","string","bool","func","number"],"sources":["../../src/ProductTour/CheckpointActionRow.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport ActionRow from '../ActionRow';\nimport Button from '../Button';\n\nconst CheckpointActionRow = React.forwardRef(({\n advanceButtonText,\n backButtonText,\n endButtonText,\n isLastCheckpoint,\n onAdvance,\n onBack,\n onEnd,\n index,\n}, ref) => {\n const isFirstCheckpoint = index === 0;\n return (\n <ActionRow className=\"pgn__checkpoint-action-row\" ref={ref}>\n {!isFirstCheckpoint && (\n <Button\n className=\"pgn__checkpoint-button-back\"\n variant=\"tertiary\"\n onClick={onBack}\n >\n {backButtonText}\n </Button>\n )}\n <Button\n autoFocus\n className=\"pgn__checkpoint-button_advance\"\n onClick={isLastCheckpoint ? () => onEnd(index) : () => onAdvance(index)}\n >\n {isLastCheckpoint ? endButtonText : advanceButtonText}\n </Button>\n </ActionRow>\n );\n});\n\nCheckpointActionRow.defaultProps = {\n advanceButtonText: '',\n backButtonText: '',\n endButtonText: '',\n isLastCheckpoint: false,\n onAdvance: () => { },\n onBack: () => { },\n onEnd: () => { },\n index: 0,\n};\n\nCheckpointActionRow.propTypes = {\n /** The text displayed on the button used to advance the tour. */\n advanceButtonText: PropTypes.node,\n /** The text displayed on the button used to go back on the tour */\n backButtonText: PropTypes.string,\n /** The text displayed on the button used to end the tour. */\n endButtonText: PropTypes.node,\n /** Whether the parent Checkpoint is the last in the tour. */\n isLastCheckpoint: PropTypes.bool,\n /** A function that runs when triggering the `onClick` event of the advance button. */\n onAdvance: PropTypes.func,\n /** A function that runs when triggering the `onClick` event of the back button. */\n onBack: PropTypes.func,\n /** A function that runs when triggering the `onClick` event of the advance button if isLastCheckpoint is true. */\n onEnd: PropTypes.func,\n /** Allows visibility of last index value for onEnd checkpoint compatibility */\n index: PropTypes.number,\n};\n\nexport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;AACT,CAAC;AAEDX,mBAAmB,CAACmB,SAAS,GAAG;EAC9B;EACAf,iBAAiB,EAAEP,SAAS,CAACuB,IAAI;EACjC;EACAf,cAAc,EAAER,SAAS,CAACwB,MAAM;EAChC;EACAf,aAAa,EAAET,SAAS,CAACuB,IAAI;EAC7B;EACAb,gBAAgB,EAAEV,SAAS,CAACyB,IAAI;EAChC;EACAd,SAAS,EAAEX,SAAS,CAAC0B,IAAI;EACzB;EACAd,MAAM,EAAEZ,SAAS,CAAC0B,IAAI;EACtB;EACAb,KAAK,EAAEb,SAAS,CAAC0B,IAAI;EACrB;EACAZ,KAAK,EAAEd,SAAS,CAAC2B;AACnB,CAAC;AAED,eAAexB,mBAAmB","ignoreList":[]}
@@ -6,7 +6,7 @@ import IconButton from '../IconButton';
6
6
  import { Close } from '../../icons';
7
7
  import CheckpointTitle from './CheckpointTitle';
8
8
  import messages from './messages';
9
- const CheckpointHeader = /*#__PURE__*/React.forwardRef(_ref => {
9
+ const CheckpointHeader = /*#__PURE__*/React.forwardRef((_ref, ref) => {
10
10
  let {
11
11
  dismissAltText,
12
12
  index,
@@ -18,7 +18,8 @@ const CheckpointHeader = /*#__PURE__*/React.forwardRef(_ref => {
18
18
  const oneBasedIndex = index + 1;
19
19
  const altText = dismissAltText && typeof dismissAltText === 'string' ? dismissAltText : intl.formatMessage(messages.closeAltText);
20
20
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("header", {
21
- className: "pgn__checkpoint-header"
21
+ className: "pgn__checkpoint-header",
22
+ ref: ref
22
23
  }, /*#__PURE__*/React.createElement("span", {
23
24
  className: "pgn__checkpoint-page-index"
24
25
  }, /*#__PURE__*/React.createElement(FormattedMessage, {
@@ -1 +1 @@
1
- {"version":3,"file":"CheckpointHeader.js","names":["React","PropTypes","FormattedMessage","useIntl","Icon","IconButton","Close","CheckpointTitle","messages","CheckpointHeader","forwardRef","_ref","dismissAltText","index","onDismiss","title","totalCheckpoints","intl","oneBasedIndex","altText","formatMessage","closeAltText","createElement","Fragment","className","pageIndexText","values","step","totalSteps","size","iconAs","src","alt","onClick","defaultProps","propTypes","string","number","isRequired","func","node"],"sources":["../../src/ProductTour/CheckpointHeader.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormattedMessage, useIntl } from 'react-intl';\n\nimport Icon from '../Icon';\nimport IconButton from '../IconButton';\nimport { Close } from '../../icons';\nimport CheckpointTitle from './CheckpointTitle';\nimport messages from './messages';\n\nconst CheckpointHeader = React.forwardRef(({\n dismissAltText, index, onDismiss, title, totalCheckpoints,\n}) => {\n const intl = useIntl();\n const oneBasedIndex = index + 1;\n const altText = (dismissAltText && typeof dismissAltText === 'string') ? dismissAltText : intl.formatMessage(messages.closeAltText);\n\n return (\n <>\n <header className=\"pgn__checkpoint-header\">\n <span className=\"pgn__checkpoint-page-index\">\n <FormattedMessage\n {...messages.pageIndexText}\n values={{ step: oneBasedIndex, totalSteps: totalCheckpoints }}\n />\n </span>\n <IconButton\n size=\"sm\"\n iconAs={Icon}\n src={Close}\n alt={altText}\n onClick={onDismiss}\n data-testid=\"dismiss-tour\"\n />\n </header>\n {title && (<CheckpointTitle>{title}</CheckpointTitle>)}\n </>\n );\n});\n\nCheckpointHeader.defaultProps = {\n dismissAltText: null,\n title: '',\n};\n\nCheckpointHeader.propTypes = {\n /** The text used in the alt for the icon used to dismiss the tour for the given Checkpoint */\n dismissAltText: PropTypes.string,\n /** The current index of the given Checkpoint */\n index: PropTypes.number.isRequired,\n /** A function that runs when triggering the `onClick` event of the dismiss\n * button for the given Checkpoint. */\n onDismiss: PropTypes.func.isRequired,\n /** The text displayed in the title of the Checkpoint */\n title: PropTypes.node,\n /** The total number of Checkpoints in a tour */\n totalCheckpoints: PropTypes.number.isRequired,\n};\n\nexport default CheckpointHeader;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,gBAAgB,EAAEC,O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AAC;AAEFN,gBAAgB,CAACyB,YAAY,GAAG;EAC9BtB,cAAc,EAAE,IAAI;EACpBG,KAAK,EAAE;AACT,CAAC;AAEDN,gBAAgB,CAAC0B,SAAS,GAAG;EAC3B;EACAvB,cAAc,EAAEX,SAAS,CAACmC,MAAM;EAChC;EACAvB,KAAK,EAAEZ,SAAS,CAACoC,MAAM,CAACC,UAAU;EAClC;AACF;EACExB,SAAS,EAAEb,SAAS,CAACsC,IAAI,CAACD,UAAU;EACpC;EACAvB,KAAK,EAAEd,SAAS,CAACuC,IAAI;EACrB;EACAxB,gBAAgB,EAAEf,SAAS,CAACoC,MAAM,CAACC;AACrC,CAAC;AAED,eAAe7B,gBAAgB","ignoreList":[]}
1
+ {"version":3,"file":"CheckpointHeader.js","names":["React","PropTypes","FormattedMessage","useIntl","Icon","IconButton","Close","CheckpointTitle","messages","CheckpointHeader","forwardRef","_ref","ref","dismissAltText","index","onDismiss","title","totalCheckpoints","intl","oneBasedIndex","altText","formatMessage","closeAltText","createElement","Fragment","className","pageIndexText","values","step","totalSteps","size","iconAs","src","alt","onClick","defaultProps","propTypes","string","number","isRequired","func","node"],"sources":["../../src/ProductTour/CheckpointHeader.jsx"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport { FormattedMessage, useIntl } from 'react-intl';\n\nimport Icon from '../Icon';\nimport IconButton from '../IconButton';\nimport { Close } from '../../icons';\nimport CheckpointTitle from './CheckpointTitle';\nimport messages from './messages';\n\nconst CheckpointHeader = React.forwardRef(({\n dismissAltText, index, onDismiss, title, totalCheckpoints,\n}, ref) => {\n const intl = useIntl();\n const oneBasedIndex = index + 1;\n const altText = (dismissAltText && typeof dismissAltText === 'string') ? dismissAltText : intl.formatMessage(messages.closeAltText);\n\n return (\n <>\n <header className=\"pgn__checkpoint-header\" ref={ref}>\n <span className=\"pgn__checkpoint-page-index\">\n <FormattedMessage\n {...messages.pageIndexText}\n values={{ step: oneBasedIndex, totalSteps: totalCheckpoints }}\n />\n </span>\n <IconButton\n size=\"sm\"\n iconAs={Icon}\n src={Close}\n alt={altText}\n onClick={onDismiss}\n data-testid=\"dismiss-tour\"\n />\n </header>\n {title && (<CheckpointTitle>{title}</CheckpointTitle>)}\n </>\n );\n});\n\nCheckpointHeader.defaultProps = {\n dismissAltText: null,\n title: '',\n};\n\nCheckpointHeader.propTypes = {\n /** The text used in the alt for the icon used to dismiss the tour for the given Checkpoint */\n dismissAltText: PropTypes.string,\n /** The current index of the given Checkpoint */\n index: PropTypes.number.isRequired,\n /** A function that runs when triggering the `onClick` event of the dismiss\n * button for the given Checkpoint. */\n onDismiss: PropTypes.func.isRequired,\n /** The text displayed in the title of the Checkpoint */\n title: PropTypes.node,\n /** The total number of Checkpoints in a tour */\n totalCheckpoints: PropTypes.number.isRequired,\n};\n\nexport default CheckpointHeader;\n"],"mappings":"AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAClC,SAASC,gBAAgB,EAAEC,OAAO,QAAQ,YAAY;AAEtD,OAAOC,IAAI,MAAM,SAAS;AAC1B,OAAOC,UAAU,MAAM,eAAe;AACtC,SAASC,KAAK,QAAQ,aAAa;AACnC,OAAOC,eAAe,MAAM,mBAAmB;AAC/C,OAAOC,QAAQ,MAAM,YAAY;AAEjC,MAAMC,gBAAgB,gBAAGT,KAAK,CAACU,UAAU,CAAC,CAAAC,IAAA,EAEvCC,GAAG,KAAK;EAAA,IAFgC;IACzCC,cAAc;IAAEC,KAAK;IAAEC,SAAS;IAAEC,KAAK;IAAEC;EAC3C,CAAC,GAAAN,IAAA;EACC,MAAMO,IAAI,GAAGf,OAAO,CAAC,CAAC;EACtB,MAAMgB,aAAa,GAAGL,KAAK,GAAG,CAAC;EAC/B,MAAMM,OAAO,GAAIP,cAAc,IAAI,OAAOA,cAAc,KAAK,QAAQ,GAAIA,cAAc,GAAGK,IAAI,CAACG,aAAa,CAACb,QAAQ,CAACc,YAAY,CAAC;EAEnI,oBACEtB,KAAA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
9
  "defaults": {
4
10
  "light": "light"
5
11
  },
@@ -10,12 +16,6 @@
10
16
  "minified": "./light.min.css"
11
17
  }
12
18
  }
13
- },
14
- "core": {
15
- "paths": {
16
- "default": "./core.css",
17
- "minified": "./core.min.css"
18
- }
19
19
  }
20
20
  }
21
21
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openedx/paragon",
3
- "version": "23.12.1",
3
+ "version": "23.13.0",
4
4
  "description": "Accessible, responsive UI component library based on Bootstrap.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -13,10 +13,10 @@ const CheckpointActionRow = React.forwardRef(({
13
13
  onBack,
14
14
  onEnd,
15
15
  index,
16
- }) => {
16
+ }, ref) => {
17
17
  const isFirstCheckpoint = index === 0;
18
18
  return (
19
- <ActionRow className="pgn__checkpoint-action-row">
19
+ <ActionRow className="pgn__checkpoint-action-row" ref={ref}>
20
20
  {!isFirstCheckpoint && (
21
21
  <Button
22
22
  className="pgn__checkpoint-button-back"
@@ -10,14 +10,14 @@ import messages from './messages';
10
10
 
11
11
  const CheckpointHeader = React.forwardRef(({
12
12
  dismissAltText, index, onDismiss, title, totalCheckpoints,
13
- }) => {
13
+ }, ref) => {
14
14
  const intl = useIntl();
15
15
  const oneBasedIndex = index + 1;
16
16
  const altText = (dismissAltText && typeof dismissAltText === 'string') ? dismissAltText : intl.formatMessage(messages.closeAltText);
17
17
 
18
18
  return (
19
19
  <>
20
- <header className="pgn__checkpoint-header">
20
+ <header className="pgn__checkpoint-header" ref={ref}>
21
21
  <span className="pgn__checkpoint-page-index">
22
22
  <FormattedMessage
23
23
  {...messages.pageIndexText}