@kaizen/components 0.0.0-canary-unscrollable-20240221032028 → 0.0.0-canary-remove-tailwind-from-kaio-20240305223928

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 (59) hide show
  1. package/dist/cjs/Slider/Slider.cjs +1 -1
  2. package/dist/cjs/Slider/Slider.cjs.map +1 -1
  3. package/dist/cjs/Slider/Slider.module.scss.cjs +1 -0
  4. package/dist/cjs/Slider/Slider.module.scss.cjs.map +1 -1
  5. package/dist/cjs/Tile/MultiActionTile/MultiActionTile.cjs +1 -1
  6. package/dist/cjs/Tile/MultiActionTile/MultiActionTile.cjs.map +1 -1
  7. package/dist/cjs/Tile/MultiActionTile/MultiActionTile.module.scss.cjs +2 -1
  8. package/dist/cjs/Tile/MultiActionTile/MultiActionTile.module.scss.cjs.map +1 -1
  9. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +1 -1
  10. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs.map +1 -1
  11. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.module.scss.cjs +1 -0
  12. package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.module.scss.cjs.map +1 -1
  13. package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +2 -3
  14. package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs.map +1 -1
  15. package/dist/cjs/Workflow/subcomponents/Header/components/Titles/Titles.cjs +2 -3
  16. package/dist/cjs/Workflow/subcomponents/Header/components/Titles/Titles.cjs.map +1 -1
  17. package/dist/cjs/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +2 -3
  18. package/dist/cjs/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs.map +1 -1
  19. package/dist/cjs/__future__/Workflow/subcomponents/Header/components/Titles/Titles.cjs +2 -3
  20. package/dist/cjs/__future__/Workflow/subcomponents/Header/components/Titles/Titles.cjs.map +1 -1
  21. package/dist/cjs/index.css +6 -6
  22. package/dist/esm/Slider/Slider.mjs +1 -1
  23. package/dist/esm/Slider/Slider.mjs.map +1 -1
  24. package/dist/esm/Slider/Slider.module.scss.mjs +1 -0
  25. package/dist/esm/Slider/Slider.module.scss.mjs.map +1 -1
  26. package/dist/esm/Tile/MultiActionTile/MultiActionTile.mjs +1 -1
  27. package/dist/esm/Tile/MultiActionTile/MultiActionTile.mjs.map +1 -1
  28. package/dist/esm/Tile/MultiActionTile/MultiActionTile.module.scss.mjs +2 -1
  29. package/dist/esm/Tile/MultiActionTile/MultiActionTile.module.scss.mjs.map +1 -1
  30. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +1 -1
  31. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs.map +1 -1
  32. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.module.scss.mjs +1 -0
  33. package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.module.scss.mjs.map +1 -1
  34. package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +2 -3
  35. package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs.map +1 -1
  36. package/dist/esm/Workflow/subcomponents/Header/components/Titles/Titles.mjs +2 -3
  37. package/dist/esm/Workflow/subcomponents/Header/components/Titles/Titles.mjs.map +1 -1
  38. package/dist/esm/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +2 -3
  39. package/dist/esm/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs.map +1 -1
  40. package/dist/esm/__future__/Workflow/subcomponents/Header/components/Titles/Titles.mjs +2 -3
  41. package/dist/esm/__future__/Workflow/subcomponents/Header/components/Titles/Titles.mjs.map +1 -1
  42. package/dist/esm/index.css +4 -4
  43. package/dist/styles.css +1 -1
  44. package/locales/cy.json +2 -2
  45. package/package.json +26 -26
  46. package/src/BrandMoment/_docs/ExampleHeaders.scss +1 -0
  47. package/src/BrandMoment/_docs/ExampleHeaders.tsx +6 -8
  48. package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.mdx +35 -0
  49. package/src/MultiSelect/_docs/MultiSelect.mdx +1 -3
  50. package/src/Slider/Slider.module.scss +4 -0
  51. package/src/Slider/Slider.tsx +1 -1
  52. package/src/Tile/MultiActionTile/MultiActionTile.module.scss +6 -0
  53. package/src/Tile/MultiActionTile/MultiActionTile.tsx +1 -1
  54. package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +4 -0
  55. package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +1 -1
  56. package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +3 -2
  57. package/src/Workflow/subcomponents/Header/components/Titles/Titles.tsx +2 -1
  58. package/src/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +3 -2
  59. package/src/__future__/Workflow/subcomponents/Header/components/Titles/Titles.tsx +2 -1
@@ -34,7 +34,7 @@ const Slider = /*#__PURE__*/function () {
34
34
  }, React.createElement("div", {
35
35
  className: Slider_module.labelWrapper
36
36
  }, React.createElement("div", {
37
- className: "mb-4"
37
+ className: Slider_module.label
38
38
  }, React.createElement(Label.Label, {
39
39
  htmlFor: id,
40
40
  labelText: labelText,
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.cjs","sources":["../../../src/Slider/Slider.tsx"],"sourcesContent":["import React, { ReactNode, useId } from \"react\"\nimport classnames from \"classnames\"\nimport { FieldGroup } from \"~components/FieldGroup\"\nimport { InputRange, InputRangeProps } from \"~components/Input/InputRange\"\nimport { Label } from \"~components/Label\"\nimport { Text } from \"~components/Text\"\nimport styles from \"./Slider.module.scss\"\n\nexport type SliderFieldProps = {\n id?: string\n labelText: ReactNode\n description?: ReactNode\n labelPosition?: \"inline\" | \"block\"\n variant?: \"default\" | \"prominent\"\n disabled?: boolean\n readOnlyMessage?: ReactNode\n} & Omit<InputRangeProps, \"id\">\n\n/**\n * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896335/Slider Guidance} |\n * {@link https://cultureamp.design/?path=/docs/components-slider--docs Storybook}\n */\nexport const Slider = ({\n id: propsId,\n labelText,\n description,\n labelPosition = \"inline\",\n variant = \"default\",\n disabled,\n readOnlyMessage,\n ...restProps\n}: SliderFieldProps): JSX.Element => {\n const id = propsId ?? useId()\n const descriptionId = `${id}-description`\n\n return (\n <FieldGroup inline>\n <div\n className={classnames(\n styles.wrapper,\n labelPosition === \"inline\" && styles.labelInline\n )}\n >\n <div className={styles.labelWrapper}>\n <div className=\"mb-4\">\n <Label\n htmlFor={id}\n labelText={labelText}\n variant={variant}\n disabled={disabled}\n />\n </div>\n {description && (\n <Text\n variant=\"small\"\n id={descriptionId}\n classNameOverride={\n disabled ? styles.descriptionDisabled : undefined\n }\n >\n {description}\n </Text>\n )}\n </div>\n <div className={styles.inputWrapper}>\n <InputRange\n id={id}\n aria-describedby={descriptionId}\n disabled={disabled}\n {...restProps}\n />\n {readOnlyMessage && (\n <div className={styles.readOnlyMessage}>{readOnlyMessage}</div>\n )}\n </div>\n </div>\n </FieldGroup>\n )\n}\n\nSlider.displayName = \"Slider\"\n"],"names":["Slider","_a","propsId","id","labelText","description","_b","labelPosition","_c","variant","disabled","readOnlyMessage","restProps","__rest","useId","descriptionId","concat","React","createElement","FieldGroup","inline","className","classnames","styles","wrapper","labelInline","labelWrapper","Label","htmlFor","Text","classNameOverride","descriptionDisabled","undefined","inputWrapper","InputRange","__assign","displayName"],"mappings":";;;;;;;;;;;AAkBA;;;AAGG;AAHH,MAIaA,MAAM;EAAA,MAANA,MAAM,GAAG,SAAAA,CAACC,EASJ,EAAA;IARjB,IAAIC,OAAO,GAAAD,EAAA,CAAAE,EAAA;MACXC,SAAS,eAAA;MACTC,WAAW,GAAAJ,EAAA,CAAAI,WAAA;MACXC,EAAwB,GAAAL,EAAA,CAAAM,aAAA;MAAxBA,aAAa,GAA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a,aAAM,CAACQ,mBAAmB,GAAGC;IAAS,CAAA,EAGlD3B,WAAW,CAEf,CACG,EACNY,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;MAAKG,SAAS,EAAEE,aAAM,CAACU;IAAY,CAAA,EACjChB,KAAA,CAAAC,aAAA,CAACgB,UAAAA,CAAAA,UAAU,EAAAC,KAAA,CAAAA,QAAA,CAAA;MACThC,EAAE,EAAEA,EAAE;MAAA,kBAAA,EACYY,aAAa;MAC/BL,QAAQ,EAAEA;IAAQ,CAAA,EACdE,SAAS,CACb,CAAA,EACDD,eAAe,IACdM,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;MAAKG,SAAS,EAAEE,aAAM,CAACZ;KAAkB,EAAAA,eAAe,CACzD,CACG,CACF,CACK;EAEjB,CAAC;EAEDX,MAAM,CAACoC,WAAW,GAAG,QAAQ;EAAA,OA1DhBpC,MAAM;AAAA;"}
1
+ {"version":3,"file":"Slider.cjs","sources":["../../../src/Slider/Slider.tsx"],"sourcesContent":["import React, { ReactNode, useId } from \"react\"\nimport classnames from \"classnames\"\nimport { FieldGroup } from \"~components/FieldGroup\"\nimport { InputRange, InputRangeProps } from \"~components/Input/InputRange\"\nimport { Label } from \"~components/Label\"\nimport { Text } from \"~components/Text\"\nimport styles from \"./Slider.module.scss\"\n\nexport type SliderFieldProps = {\n id?: string\n labelText: ReactNode\n description?: ReactNode\n labelPosition?: \"inline\" | \"block\"\n variant?: \"default\" | \"prominent\"\n disabled?: boolean\n readOnlyMessage?: ReactNode\n} & Omit<InputRangeProps, \"id\">\n\n/**\n * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896335/Slider Guidance} |\n * {@link https://cultureamp.design/?path=/docs/components-slider--docs Storybook}\n */\nexport const Slider = ({\n id: propsId,\n labelText,\n description,\n labelPosition = \"inline\",\n variant = \"default\",\n disabled,\n readOnlyMessage,\n ...restProps\n}: SliderFieldProps): JSX.Element => {\n const id = propsId ?? useId()\n const descriptionId = `${id}-description`\n\n return (\n <FieldGroup inline>\n <div\n className={classnames(\n styles.wrapper,\n labelPosition === \"inline\" && styles.labelInline\n )}\n >\n <div className={styles.labelWrapper}>\n <div className={styles.label}>\n <Label\n htmlFor={id}\n labelText={labelText}\n variant={variant}\n disabled={disabled}\n />\n </div>\n {description && (\n <Text\n variant=\"small\"\n id={descriptionId}\n classNameOverride={\n disabled ? styles.descriptionDisabled : undefined\n }\n >\n {description}\n </Text>\n )}\n </div>\n <div className={styles.inputWrapper}>\n <InputRange\n id={id}\n aria-describedby={descriptionId}\n disabled={disabled}\n {...restProps}\n />\n {readOnlyMessage && (\n <div className={styles.readOnlyMessage}>{readOnlyMessage}</div>\n )}\n </div>\n </div>\n </FieldGroup>\n )\n}\n\nSlider.displayName = \"Slider\"\n"],"names":["Slider","_a","propsId","id","labelText","description","_b","labelPosition","_c","variant","disabled","readOnlyMessage","restProps","__rest","useId","descriptionId","concat","React","createElement","FieldGroup","inline","className","classnames","styles","wrapper","labelInline","labelWrapper","label","Label","htmlFor","Text","classNameOverride","descriptionDisabled","undefined","inputWrapper","InputRange","__assign","displayName"],"mappings":";;;;;;;;;;;AAkBA;;;AAGG;AAHH,MAIaA,MAAM;EAAA,MAANA,MAAM,GAAG,SAAAA,CAACC,EASJ,EAAA;IARjB,IAAIC,OAAO,GAAAD,EAAA,CAAAE,EAAA;MACXC,SAAS,eAAA;MACTC,WAAW,GAAAJ,EAAA,CAAAI,WAAA;MACXC,EAAwB,GAAAL,EAAA,CAAAM,aAAA;MAAxBA,aAAa,GAAAD,EAAA,KAAA,KAAA,CAAA,GAAG,QAAQ,GAAAA,EAAA;MACxBE,EAAmB,GAAAP,EAAA,CAAAQ,OAAA;MAAnBA,OAAO,GAAAD,EAAA,KAAA,KAAA,CAAA,GAAG,SAAS,GAAAA,EAAA;MACnBE,QAAQ,GAAAT,EAAA,CAAAS,QAAA;MACRC,eAAe,GAAAV,EAAA,CAAAU,eAAA;MACZC,SAAS,GAAAC,KAAAA,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AAEA,EAAE;MAAA,kBAAA,EACYY,aAAa;MAC/BL,QAAQ,EAAEA;IAAQ,CAAA,EACdE,SAAS,CACb,CAAA,EACDD,eAAe,IACdM,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;MAAKG,SAAS,EAAEE,aAAM,CAACZ;KAAkB,EAAAA,eAAe,CACzD,CACG,CACF,CACK;EAEjB,CAAC;EAEDX,MAAM,CAACqC,WAAW,GAAG,QAAQ;EAAA,OA1DhBrC,MAAM;AAAA;"}
@@ -3,6 +3,7 @@
3
3
  var styles = {
4
4
  "wrapper": "Slider-module_wrapper__zVX6g",
5
5
  "labelWrapper": "Slider-module_labelWrapper__WuUIw",
6
+ "label": "Slider-module_label__CfIjh",
6
7
  "labelInline": "Slider-module_labelInline__zjINd",
7
8
  "inputWrapper": "Slider-module_inputWrapper__n16yj",
8
9
  "descriptionDisabled": "Slider-module_descriptionDisabled__8GwiS",
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.module.scss.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;"}
1
+ {"version":3,"file":"Slider.module.scss.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;"}
@@ -9,7 +9,7 @@ var renderActions = function (primaryAction, secondaryAction) {
9
9
  return React.createElement("div", {
10
10
  className: MultiActionTile_module.actions
11
11
  }, secondaryAction && React.createElement("div", {
12
- className: "mr-8"
12
+ className: MultiActionTile_module.secondaryAction
13
13
  }, React.createElement(Action, {
14
14
  action: secondaryAction,
15
15
  secondary: true
@@ -1 +1 @@
1
- {"version":3,"file":"MultiActionTile.cjs","sources":["../../../../src/Tile/MultiActionTile/MultiActionTile.tsx"],"sourcesContent":["import React from \"react\"\nimport {\n GenericTile,\n GenericTileProps,\n TileAction,\n} from \"../subcomponents/GenericTile\"\nimport Action from \"../subcomponents/GenericTile/Action\"\nimport styles from \"./MultiActionTile.module.scss\"\n\nexport type MultiActionTileProps = {\n primaryAction: TileAction\n secondaryAction?: TileAction\n} & Omit<GenericTileProps, \"footer\">\n\nconst renderActions = (\n primaryAction: TileAction,\n secondaryAction?: TileAction\n): JSX.Element => (\n <div className={styles.actions}>\n {secondaryAction && (\n <div className=\"mr-8\">\n <Action action={secondaryAction} secondary />\n </div>\n )}\n <Action action={primaryAction} />\n </div>\n)\n\n/**\n * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3079077889/Tile#MultiActionTile.1 Guidance} |\n * {@link https://cultureamp.design/?path=/docs/components-tiles-multiactiontile--docs Storybook}\n */\nexport const MultiActionTile = ({\n children,\n primaryAction,\n secondaryAction,\n ...restProps\n}: MultiActionTileProps): JSX.Element => (\n <GenericTile\n footer={renderActions(primaryAction, secondaryAction)}\n {...restProps}\n >\n {children}\n </GenericTile>\n)\n\nMultiActionTile.displayName = \"MultiActionTile\"\n"],"names":["renderActions","primaryAction","secondaryAction","React","createElement","className","styles","actions","Action","action","secondary","MultiActionTile","_a","children","restProps","__rest","GenericTile","footer","displayName"],"mappings":";;;;;;;AAcA,IAAMA,aAAa,GAAG,SAAAA,CACpBC,aAAyB,EACzBC,eAA4B,EAAA;EACZ,OAChBC,KAAK,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAAC,SAAS,EAAEC,sBAAM,CAACC;EAAO,CAAA,EAC3BL,eAAe,IACdC,KAAK,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAAC,SAAS,EAAC;EAAM,CAAA,EACnBF,KAAC,CAAAC,aAAA,CAAAI,MAAM;IAACC,MAAM,EAAEP,eAAe;IAAEQ,SAAS,EAAG;EAAA,CAAA,CAAA,CAEhD,EACDP,KAAC,CAAAC,aAAA,CAAAI,MAAM,EAAC;IAAAC,MAAM,EAAER;IAAiB,CAC7B;CACP;AAED;;;AAGG;AAHH,MAIaU,eAAe;EAAA,MAAfA,eAAe,GAAG,SAAAA,CAACC,EAKT,EAAA;IAJrB,IAAAC,QAAQ,GAAAD,EAAA,CAAAC,QAAA;MACRZ,aAAa,GAAAW,EAAA,CAAAX,aAAA;MACbC,eAAe,GAAAU,EAAA,CAAAV,eAAA;MACZY,SAAS,GAJkBC,KAAAA,CAAAA,MAAA,CAAAH,EAAA,EAAA,CAAA,UAAA,EAAA,eAAA,EAAA,iBAAA,CAK/B,CADa;IAC2B,OACvCT,KAAC,CAAAC,aAAA,CAAAY,uBAAW;MACVC,MAAM,EAAEjB,aAAa,CAACC,aAAa,EAAEC,eAAe;IAAC,CACjD,EAAAY,SAAS,GAEZD,QAAQ,CACG;GACf;EAEDF,eAAe,CAACO,WAAW,GAAG,iBAAiB;EAAA,OAdlCP,eAAe;AAAA;"}
1
+ {"version":3,"file":"MultiActionTile.cjs","sources":["../../../../src/Tile/MultiActionTile/MultiActionTile.tsx"],"sourcesContent":["import React from \"react\"\nimport {\n GenericTile,\n GenericTileProps,\n TileAction,\n} from \"../subcomponents/GenericTile\"\nimport Action from \"../subcomponents/GenericTile/Action\"\nimport styles from \"./MultiActionTile.module.scss\"\n\nexport type MultiActionTileProps = {\n primaryAction: TileAction\n secondaryAction?: TileAction\n} & Omit<GenericTileProps, \"footer\">\n\nconst renderActions = (\n primaryAction: TileAction,\n secondaryAction?: TileAction\n): JSX.Element => (\n <div className={styles.actions}>\n {secondaryAction && (\n <div className={styles.secondaryAction}>\n <Action action={secondaryAction} secondary />\n </div>\n )}\n <Action action={primaryAction} />\n </div>\n)\n\n/**\n * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3079077889/Tile#MultiActionTile.1 Guidance} |\n * {@link https://cultureamp.design/?path=/docs/components-tiles-multiactiontile--docs Storybook}\n */\nexport const MultiActionTile = ({\n children,\n primaryAction,\n secondaryAction,\n ...restProps\n}: MultiActionTileProps): JSX.Element => (\n <GenericTile\n footer={renderActions(primaryAction, secondaryAction)}\n {...restProps}\n >\n {children}\n </GenericTile>\n)\n\nMultiActionTile.displayName = \"MultiActionTile\"\n"],"names":["renderActions","primaryAction","secondaryAction","React","createElement","className","styles","actions","Action","action","secondary","MultiActionTile","_a","children","restProps","__rest","GenericTile","footer","displayName"],"mappings":";;;;;;;AAcA,IAAMA,aAAa,GAAG,SAAAA,CACpBC,aAAyB,EACzBC,eAA4B,EAAA;EACZ,OAChBC,KAAK,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAAC,SAAS,EAAEC,sBAAM,CAACC;EAAO,CAAA,EAC3BL,eAAe,IACdC,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAKC,SAAS,EAAEC,sBAAM,CAACJ;EAAe,CAAA,EACpCC,KAAC,CAAAC,aAAA,CAAAI,MAAM;IAACC,MAAM,EAAEP,eAAe;IAAEQ,SAAS,EAAG;EAAA,CAAA,CAAA,CAEhD,EACDP,KAAC,CAAAC,aAAA,CAAAI,MAAM,EAAC;IAAAC,MAAM,EAAER;IAAiB,CAC7B;CACP;AAED;;;AAGG;AAHH,MAIaU,eAAe;EAAA,MAAfA,eAAe,GAAG,SAAAA,CAACC,EAKT,EAAA;IAJrB,IAAAC,QAAQ,GAAAD,EAAA,CAAAC,QAAA;MACRZ,aAAa,GAAAW,EAAA,CAAAX,aAAA;MACbC,eAAe,GAAAU,EAAA,CAAAV,eAAA;MACZY,SAAS,GAJkBC,KAAAA,CAAAA,MAAA,CAAAH,EAAA,EAAA,CAAA,UAAA,EAAA,eAAA,EAAA,iBAAA,CAK/B,CADa;IAC2B,OACvCT,KAAC,CAAAC,aAAA,CAAAY,uBAAW;MACVC,MAAM,EAAEjB,aAAa,CAACC,aAAa,EAAEC,eAAe;IAAC,CACjD,EAAAY,SAAS,GAEZD,QAAQ,CACG;GACf;EAEDF,eAAe,CAACO,WAAW,GAAG,iBAAiB;EAAA,OAdlCP,eAAe;AAAA;"}
@@ -1,7 +1,8 @@
1
1
  'use strict';
2
2
 
3
3
  var styles = {
4
- "actions": "MultiActionTile-module_actions__mntsC"
4
+ "actions": "MultiActionTile-module_actions__mntsC",
5
+ "secondaryAction": "MultiActionTile-module_secondaryAction__DuXdD"
5
6
  };
6
7
  module.exports = styles;
7
8
  //# sourceMappingURL=MultiActionTile.module.scss.cjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"MultiActionTile.module.scss.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
1
+ {"version":3,"file":"MultiActionTile.module.scss.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
@@ -34,7 +34,7 @@ const GenericTile = /*#__PURE__*/function () {
34
34
  variant: "heading-3",
35
35
  tag: titleTag
36
36
  }, title), metadata && React.createElement("div", {
37
- className: "pt-4"
37
+ className: GenericTile_module.titleMeta
38
38
  }, React.createElement(Text.Text, {
39
39
  variant: "small",
40
40
  color: "dark-reduced-opacity"
@@ -1 +1 @@
1
- {"version":3,"file":"GenericTile.cjs","sources":["../../../../../src/Tile/subcomponents/GenericTile/GenericTile.tsx"],"sourcesContent":["import React, { HTMLAttributes, useState } from \"react\"\nimport classnames from \"classnames\"\nimport { IconButton } from \"~components/Button\"\nimport { GenericButtonProps } from \"~components/Button/GenericButton\"\nimport { AllowedHeadingTags, Heading } from \"~components/Heading\"\nimport { ArrowBackwardIcon, InformationIcon } from \"~components/Icon\"\nimport { Text } from \"~components/Text\"\nimport { OverrideClassName } from \"~types/OverrideClassName\"\nimport Action from \"./Action\"\nimport { Moods } from \"./types\"\nimport styles from \"./GenericTile.module.scss\"\n\nexport type TileAction = {\n label: string\n onClick?: GenericButtonProps[\"onClick\"]\n href?: string\n icon?: JSX.Element\n /**\n * @deprecated use data-testid instead\n */\n automationId?: string\n newTabAndIUnderstandTheAccessibilityImplications?: boolean\n} & HTMLAttributes<HTMLButtonElement>\n\nexport type TileInformation = {\n text: string\n primaryAction?: TileAction\n secondaryAction?: TileAction\n}\n\nexport type GenericTileProps = {\n children?: React.ReactNode\n title: React.ReactNode\n titleTag?: AllowedHeadingTags\n metadata?: string\n information?: TileInformation | React.ReactNode\n mood?: Moods\n footer: React.ReactNode\n} & OverrideClassName<Omit<HTMLAttributes<HTMLDivElement>, \"title\">>\n\nexport const GenericTile = ({\n children,\n title,\n titleTag = \"h3\",\n metadata,\n information,\n mood,\n footer,\n classNameOverride,\n ...restProps\n}: GenericTileProps): JSX.Element => {\n const [isFlipped, setIsFlipped] = useState<boolean>(false)\n\n const renderTitle = (): JSX.Element => (\n <div className={styles.title}>\n <Heading variant=\"heading-3\" tag={titleTag}>\n {title}\n </Heading>\n {metadata && (\n <div className=\"pt-4\">\n <Text variant=\"small\" color=\"dark-reduced-opacity\">\n {metadata}\n </Text>\n </div>\n )}\n </div>\n )\n\n const renderActions = (\n primaryAction?: TileAction,\n secondaryAction?: TileAction,\n disabled?: boolean\n ): JSX.Element => (\n <div className={styles.actions}>\n {secondaryAction && (\n <Action action={secondaryAction} secondary disabled={disabled} />\n )}\n {primaryAction && <Action action={primaryAction} disabled={disabled} />}\n </div>\n )\n\n const renderFront = (): JSX.Element => (\n <div\n className={classnames(\n styles.face,\n styles.faceFront,\n mood === \"positive\" && styles.faceMoodPositive,\n mood === \"informative\" && styles.faceMoodInformative,\n mood === \"cautionary\" && styles.faceMoodCautionary,\n mood === \"assertive\" && styles.faceMoodAssertive,\n mood === \"negative\" && styles.faceMoodNegative,\n mood === \"prominent\" && styles.faceMoodProminent\n )}\n >\n {information && (\n <div className={styles.informationBtn}>\n <IconButton\n label=\"Information\"\n icon={<InformationIcon role=\"presentation\" />}\n onClick={(): void => setIsFlipped(true)}\n disabled={isFlipped}\n aria-hidden={isFlipped}\n />\n </div>\n )}\n {renderTitle()}\n <div className={styles.children}>{children && children}</div>\n {footer && <div className={styles.footer}>{footer}</div>}\n </div>\n )\n\n const renderInformation = (\n informationProp: GenericTileProps[\"information\"] | undefined\n ): JSX.Element | React.ReactNode => {\n if (\n informationProp &&\n typeof informationProp === \"object\" &&\n \"text\" in informationProp\n ) {\n return (\n <>\n <Text variant=\"body\">{informationProp.text}</Text>\n {(informationProp.primaryAction ||\n informationProp.secondaryAction) && (\n <div className={styles.footer}>\n {renderActions(\n informationProp.primaryAction,\n informationProp.secondaryAction,\n !isFlipped\n )}\n </div>\n )}\n </>\n )\n }\n\n return informationProp\n }\n\n const renderBack = (): JSX.Element | void => {\n if (!information) return\n\n return (\n <div className={classnames(styles.face, styles.faceBack)}>\n <div className={styles.informationBtn}>\n <IconButton\n label=\"Information\"\n icon={<ArrowBackwardIcon role=\"presentation\" />}\n onClick={(): void => setIsFlipped(false)}\n disabled={!isFlipped}\n aria-hidden={!isFlipped}\n />\n </div>\n <div className={styles.information}>\n {renderInformation(information)}\n </div>\n </div>\n )\n }\n\n return (\n <div className={classnames(styles.root, classNameOverride)} {...restProps}>\n <div className={classnames(styles.tile, isFlipped && styles.isFlipped)}>\n <>\n {renderFront()}\n {renderBack()}\n </>\n </div>\n </div>\n )\n}\n\nGenericTile.displayName = \"GenericTile\"\n"],"names":["GenericTile","_a","children","title","_b","titleTag","metadata","information","mood","footer","classNameOverride","restProps","__rest","_c","useState","isFlipped","setIsFlipped","renderTitle","React","className","styles","createElement","Heading","variant","tag","Text","color","renderActions","primaryAction","secondaryAction","disabled","actions","Action","action","secondary","renderFront","classnames","face","faceFront","faceMoodPositive","faceMoodInformative","faceMoodCautionary","faceMoodAssertive","faceMoodNegative","faceMoodProminent","informationBtn","IconButton","label","icon","InformationIcon","role","onClick","renderInformation","informationProp","Fragment","text","renderBack","faceBack","ArrowBackwardIcon","__assign","root","tile","displayName"],"mappings":";;;;;;;;;;;;;;MAwCaA,WAAW;EAAA,MAAXA,WAAW,GAAG,SAAAA,CAACC,EAUT,EAAA;IATjB,IAAAC,QAAQ,GAAAD,EAAA,CAAAC,QAAA;MACRC,KAAK,GAAAF,EAAA,CAAAE,KAAA;MACLC,EAAe,GAAAH,EAAA,CAAAI,QAAA;MAAfA,QAAQ,GAAAD,EAAA,KAAA,KAAA,CAAA,GAAG,IAAI,GAAAA,EAAA;MACfE,QAAQ,GAAAL,EAAA,CAAAK,QAAA;MACRC,WAAW,GAAAN,EAAA,CAAAM,WAAA;MACXC,IAAI,GAAAP,EAAA,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E,CAACf,SAAS;QAAA,aAAA,EACP,CAACA;QACd,CACE,EACNG,KAAA,CAAAG,aAAA,CAAA,KAAA,EAAA;QAAKF,SAAS,EAAEC,kBAAM,CAACb;MAAW,CAAA,EAC/B6C,iBAAiB,CAAC7C,WAAW,CAAC,CAC3B,CACF;IAEV,CAAC;IAED,OACEW,KAAA,CAAAG,aAAA,CAAA,KAAA,EAAAsC,KAAA,CAAAA,QAAA,CAAA;MAAKxC,SAAS,EAAEiB,UAAU,CAAChB,kBAAM,CAACwC,IAAI,EAAElD,iBAAiB;IAAC,GAAMC,SAAS,CAAA,EACvEO,KAAA,CAAAG,aAAA,CAAA,KAAA,EAAA;MAAKF,SAAS,EAAEiB,UAAU,CAAChB,kBAAM,CAACyC,IAAI,EAAE9C,SAAS,IAAIK,kBAAM,CAACL,SAAS;IAAC,CAAA,EACpEG,KAAA,CAAAG,aAAA,CAAAH,KAAA,CAAAoC,QAAA,EAAA,IAAA,EACGnB,WAAW,CAAE,CAAA,EACbqB,UAAU,CAAA,CAAE,CACZ,CACC,CACF;EAEV,CAAC;EAEDxD,WAAW,CAAC8D,WAAW,GAAG,aAAa;EAAA,OApI1B9D,WAAW;AAAA;"}
1
+ {"version":3,"file":"GenericTile.cjs","sources":["../../../../../src/Tile/subcomponents/GenericTile/GenericTile.tsx"],"sourcesContent":["import React, { HTMLAttributes, useState } from \"react\"\nimport classnames from \"classnames\"\nimport { IconButton } from \"~components/Button\"\nimport { GenericButtonProps } from \"~components/Button/GenericButton\"\nimport { AllowedHeadingTags, Heading } from \"~components/Heading\"\nimport { ArrowBackwardIcon, InformationIcon } from \"~components/Icon\"\nimport { Text } from \"~components/Text\"\nimport { OverrideClassName } from \"~types/OverrideClassName\"\nimport Action from \"./Action\"\nimport { Moods } from \"./types\"\nimport styles from \"./GenericTile.module.scss\"\n\nexport type TileAction = {\n label: string\n onClick?: GenericButtonProps[\"onClick\"]\n href?: string\n icon?: JSX.Element\n /**\n * @deprecated use data-testid instead\n */\n automationId?: string\n newTabAndIUnderstandTheAccessibilityImplications?: boolean\n} & HTMLAttributes<HTMLButtonElement>\n\nexport type TileInformation = {\n text: string\n primaryAction?: TileAction\n secondaryAction?: TileAction\n}\n\nexport type GenericTileProps = {\n children?: React.ReactNode\n title: React.ReactNode\n titleTag?: AllowedHeadingTags\n metadata?: string\n information?: TileInformation | React.ReactNode\n mood?: Moods\n footer: React.ReactNode\n} & OverrideClassName<Omit<HTMLAttributes<HTMLDivElement>, \"title\">>\n\nexport const GenericTile = ({\n children,\n title,\n titleTag = \"h3\",\n metadata,\n information,\n mood,\n footer,\n classNameOverride,\n ...restProps\n}: GenericTileProps): JSX.Element => {\n const [isFlipped, setIsFlipped] = useState<boolean>(false)\n\n const renderTitle = (): JSX.Element => (\n <div className={styles.title}>\n <Heading variant=\"heading-3\" tag={titleTag}>\n {title}\n </Heading>\n {metadata && (\n <div className={styles.titleMeta}>\n <Text variant=\"small\" color=\"dark-reduced-opacity\">\n {metadata}\n </Text>\n </div>\n )}\n </div>\n )\n\n const renderActions = (\n primaryAction?: TileAction,\n secondaryAction?: TileAction,\n disabled?: boolean\n ): JSX.Element => (\n <div className={styles.actions}>\n {secondaryAction && (\n <Action action={secondaryAction} secondary disabled={disabled} />\n )}\n {primaryAction && <Action action={primaryAction} disabled={disabled} />}\n </div>\n )\n\n const renderFront = (): JSX.Element => (\n <div\n className={classnames(\n styles.face,\n styles.faceFront,\n mood === \"positive\" && styles.faceMoodPositive,\n mood === \"informative\" && styles.faceMoodInformative,\n mood === \"cautionary\" && styles.faceMoodCautionary,\n mood === \"assertive\" && styles.faceMoodAssertive,\n mood === \"negative\" && styles.faceMoodNegative,\n mood === \"prominent\" && styles.faceMoodProminent\n )}\n >\n {information && (\n <div className={styles.informationBtn}>\n <IconButton\n label=\"Information\"\n icon={<InformationIcon role=\"presentation\" />}\n onClick={(): void => setIsFlipped(true)}\n disabled={isFlipped}\n aria-hidden={isFlipped}\n />\n </div>\n )}\n {renderTitle()}\n <div className={styles.children}>{children && children}</div>\n {footer && <div className={styles.footer}>{footer}</div>}\n </div>\n )\n\n const renderInformation = (\n informationProp: GenericTileProps[\"information\"] | undefined\n ): JSX.Element | React.ReactNode => {\n if (\n informationProp &&\n typeof informationProp === \"object\" &&\n \"text\" in informationProp\n ) {\n return (\n <>\n <Text variant=\"body\">{informationProp.text}</Text>\n {(informationProp.primaryAction ||\n informationProp.secondaryAction) && (\n <div className={styles.footer}>\n {renderActions(\n informationProp.primaryAction,\n informationProp.secondaryAction,\n !isFlipped\n )}\n </div>\n )}\n </>\n )\n }\n\n return informationProp\n }\n\n const renderBack = (): JSX.Element | void => {\n if (!information) return\n\n return (\n <div className={classnames(styles.face, styles.faceBack)}>\n <div className={styles.informationBtn}>\n <IconButton\n label=\"Information\"\n icon={<ArrowBackwardIcon role=\"presentation\" />}\n onClick={(): void => setIsFlipped(false)}\n disabled={!isFlipped}\n aria-hidden={!isFlipped}\n />\n </div>\n <div className={styles.information}>\n {renderInformation(information)}\n </div>\n </div>\n )\n }\n\n return (\n <div className={classnames(styles.root, classNameOverride)} {...restProps}>\n <div className={classnames(styles.tile, isFlipped && styles.isFlipped)}>\n <>\n {renderFront()}\n {renderBack()}\n </>\n </div>\n </div>\n )\n}\n\nGenericTile.displayName = \"GenericTile\"\n"],"names":["GenericTile","_a","children","title","_b","titleTag","metadata","information","mood","footer","classNameOverride","restProps","__rest","_c","useState","isFlipped","setIsFlipped","renderTitle","React","className","styles","createElement","Heading","variant","tag","titleMeta","Text","color","renderActions","primaryAction","secondaryAction","disabled","actions","Action","action","secondary","renderFront","classnames","face","faceFront","faceMoodPositive","faceMoodInformative","faceMoodCautionary","faceMoodAssertive","faceMoodNegative","faceMoodProminent","informationBtn","IconButton","label","icon","InformationIcon","role","onClick","renderInformation","informationProp","Fragment","text","renderBack","faceBack","ArrowBackwardIcon","__assign","root","tile","displayName"],"mappings":";;;;;;;;;;;;;;MAwCaA,WAAW;EAAA,MAAXA,WAAW,GAAG,SAAAA,CAACC,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KAAA,EAAA;QAAKF,SAAS,EAAEC,kBAAM,CAAC0B;MAAc,CAAA,EACnC5B,KAAA,CAAAG,aAAA,CAAC0B,qBAAU,EAAA;QACTC,KAAK,EAAC,aAAa;QACnBC,IAAI,EAAE/B,KAAA,CAAAG,aAAA,CAACsC,mCAAiB,EAAC;UAAAR,IAAI,EAAC;QAAc,EAAG;QAC/CC,OAAO,EAAE,SAAAA,CAAA,EAAA;UAAY,OAAApC,YAAY,CAAC,KAAK,CAAC;SAAA;QACxCe,QAAQ,EAAE,CAAChB,SAAS;QAAA,aAAA,EACP,CAACA;QACd,CACE,EACNG,KAAA,CAAAG,aAAA,CAAA,KAAA,EAAA;QAAKF,SAAS,EAAEC,kBAAM,CAACb;MAAW,CAAA,EAC/B8C,iBAAiB,CAAC9C,WAAW,CAAC,CAC3B,CACF;IAEV,CAAC;IAED,OACEW,KAAA,CAAAG,aAAA,CAAA,KAAA,EAAAuC,KAAA,CAAAA,QAAA,CAAA;MAAKzC,SAAS,EAAEkB,UAAU,CAACjB,kBAAM,CAACyC,IAAI,EAAEnD,iBAAiB;IAAC,GAAMC,SAAS,CAAA,EACvEO,KAAA,CAAAG,aAAA,CAAA,KAAA,EAAA;MAAKF,SAAS,EAAEkB,UAAU,CAACjB,kBAAM,CAAC0C,IAAI,EAAE/C,SAAS,IAAIK,kBAAM,CAACL,SAAS;IAAC,CAAA,EACpEG,KAAA,CAAAG,aAAA,CAAAH,KAAA,CAAAqC,QAAA,EAAA,IAAA,EACGnB,WAAW,CAAE,CAAA,EACbqB,UAAU,CAAA,CAAE,CACZ,CACC,CACF;EAEV,CAAC;EAEDzD,WAAW,CAAC+D,WAAW,GAAG,aAAa;EAAA,OApI1B/D,WAAW;AAAA;"}
@@ -3,6 +3,7 @@
3
3
  var styles = {
4
4
  "root": "GenericTile-module_root__9ZHdH",
5
5
  "tile": "GenericTile-module_tile__mgFhk",
6
+ "titleMeta": "GenericTile-module_titleMeta__EREc9",
6
7
  "face": "GenericTile-module_face__-KLVi",
7
8
  "faceFront": "GenericTile-module_faceFront__HywHi",
8
9
  "faceBack": "GenericTile-module_faceBack__NDCQ8",
@@ -1 +1 @@
1
- {"version":3,"file":"GenericTile.module.scss.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"GenericTile.module.scss.cjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;"}
@@ -8,6 +8,7 @@ var IndicatorActiveIcon = require('../../../../../Icon/IndicatorActiveIcon.cjs')
8
8
  var IndicatorInactiveIcon = require('../../../../../Icon/IndicatorInactiveIcon.cjs');
9
9
  var SuccessIcon = require('../../../../../Icon/SuccessIcon.cjs');
10
10
  var Text = require('../../../../../Text/Text.cjs');
11
+ var VisuallyHidden = require('../../../../../VisuallyHidden/VisuallyHidden.cjs');
11
12
  var ProgressStepper_module = require('./ProgressStepper.module.scss.cjs');
12
13
  var getStepStatus = function (isComplete, isCurrentStep, step, index) {
13
14
  if (isComplete) {
@@ -68,9 +69,7 @@ const ProgressStepper = /*#__PURE__*/function () {
68
69
  "aria-current": isCurrentStep
69
70
  }, React.createElement("div", {
70
71
  className: ProgressStepper_module.stepContent
71
- }, React.createElement("span", {
72
- className: "sr-only"
73
- }, accessibleName), React.createElement(Text.Text, {
72
+ }, React.createElement(VisuallyHidden.VisuallyHidden, null, accessibleName), React.createElement(Text.Text, {
74
73
  classNameOverride: ProgressStepper_module.stepName,
75
74
  variant: "small",
76
75
  color: "white",
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressStepper.cjs","sources":["../../../../../../../src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx"],"sourcesContent":["import React from \"react\"\nimport classnames from \"classnames\"\nimport {\n IndicatorActiveIcon,\n IndicatorInactiveIcon,\n SuccessIcon,\n} from \"~components/Icon\"\nimport { Text } from \"~components/Text\"\nimport styles from \"./ProgressStepper.module.scss\"\n\nexport type ProgressStepperProps = {\n stepName: string\n steps: [string, ...string[]]\n isComplete?: boolean\n}\n\nconst getStepStatus = (\n isComplete: boolean,\n isCurrentStep: boolean,\n step: string,\n index: number\n): {\n icon: JSX.Element\n accessibleName: string\n} => {\n if (isComplete) {\n return {\n icon: (\n <SuccessIcon\n key={index}\n inheritSize\n role=\"presentation\"\n classNameOverride=\"success\"\n />\n ),\n accessibleName: `Completed: ${step}`,\n }\n }\n if (isCurrentStep) {\n return {\n icon: (\n <IndicatorActiveIcon\n key={index}\n inheritSize\n role=\"presentation\"\n classNameOverride=\"active\"\n />\n ),\n accessibleName: `Current: ${step}`,\n }\n }\n return {\n icon: (\n <IndicatorInactiveIcon\n key={index}\n inheritSize\n classNameOverride=\"incomplete\"\n role=\"presentation\"\n />\n ),\n accessibleName: `Not started: ${step}`,\n }\n}\n\nexport const ProgressStepper = ({\n stepName,\n steps,\n isComplete = false,\n ...restprops\n}: ProgressStepperProps): JSX.Element => {\n const currentStepIndex = steps.indexOf(stepName)\n\n return (\n <div className={styles.stepsContainer}>\n <ol\n className={styles.stepList}\n {...restprops}\n aria-labelledby=\"stepper-description\"\n >\n {steps.map((step: string, index: number) => {\n const isCurrentStep = currentStepIndex === index\n const isCompletedStep = index < currentStepIndex || isComplete\n const { accessibleName, icon: Icon } = getStepStatus(\n isCompletedStep,\n isCurrentStep,\n step,\n index\n )\n return (\n <li\n className={styles.step}\n key={`${index}-${step}`}\n aria-current={isCurrentStep}\n >\n <div className={styles.stepContent}>\n <span className=\"sr-only\">\n {/* will need to be translated */}\n {accessibleName}\n </span>\n <Text\n classNameOverride={styles.stepName}\n variant=\"small\"\n color=\"white\"\n aria-hidden\n >\n {step}\n </Text>\n <div className={styles.stepIndicator}>\n <span className={styles.stepIcon}>{Icon}</span>\n </div>\n {index < steps.length - 1 && (\n <div\n className={classnames([\n styles.stepDivider,\n isCompletedStep && styles.completedStep,\n ])}\n />\n )}\n </div>\n </li>\n )\n })}\n </ol>\n <Text\n classNameOverride={styles.stepperDescription}\n variant=\"small\"\n color=\"white\"\n id=\"stepper-description\"\n >\n Step {currentStepIndex + 1} of {steps.length}\n </Text>\n </div>\n )\n}\n\nProgressStepper.displayName = \"Workflow.ProgressStepper\"\n"],"names":["getStepStatus","isComplete","isCurrentStep","step","index","icon","React","createElement","SuccessIcon","key","inheritSize","role","classNameOverride","accessibleName","concat","IndicatorActiveIcon","IndicatorInactiveIcon","ProgressStepper","_a","stepName","steps","_b","restprops","__rest","currentStepIndex","indexOf","className","styles","stepsContainer","__assign","stepList","map","isCompletedStep","Icon","stepContent","Text","variant","color","stepIndicator","stepIcon","length","classnames","stepDivider","completedStep","stepperDescription","id","displayName"],"mappings":";;;;;;;;;;;AAgBA,IAAMA,aAAa,GAAG,SAAAA,CACpBC,UAAmB,EACnBC,aAAsB,EACtBC,IAAY,EACZC,KAAa,EAAA;EAKb,IAAIH,UAAU,EAAE;IACd,OAAO;MACLI,IAAI,EACFC,KAAA,CAAAC,aAAA,CAACC,WAAAA,CAAAA,WAAW,EACV;QAAAC,GAAG,EAAEL,KAAK;QACVM,WAAW,EACX,IAAA;QAAAC,IAAI,EAAC,cAAc;QACnBC,iBAAiB,EAAC;QAErB;MACDC,cAAc,EAAE,aAAc,CAAAC,MAAA,CAAAX,IAAI;KACnC;EACF;EACD,IAAID,aAAa,EAAE;IACjB,OAAO;MACLG,IAAI,EACFC,KAAA,CAAAC,aAAA,CAACQ,mBAAAA,CAAAA,mBAAmB,EAClB;QAAAN,GAAG,EAAEL,KAAK;QACVM,WAAW,EACX,IAAA;QAAAC,IAAI,EAAC,cAAc;QACnBC,iBAAiB,EAAC;QAErB;MACDC,cAAc,EAAE,WAAY,CAAAC,MAAA,CAAAX,IAAI;KACjC;EACF;EACD,OAAO;IACLE,IAAI,EACFC,KAAA,CAAAC,aAAA,CAACS,qBAAAA,CAAAA,qBAAqB,EACpB;MAAAP,GAAG,EAAEL,KAAK;MACVM,WAAW,EACX,IAAA;MAAAE,iBAAiB,EAAC,YAAY;MAC9B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3,"file":"ProgressStepper.cjs","sources":["../../../../../../../src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx"],"sourcesContent":["import React from \"react\"\nimport classnames from \"classnames\"\nimport {\n IndicatorActiveIcon,\n IndicatorInactiveIcon,\n SuccessIcon,\n} from \"~components/Icon\"\nimport { Text } from \"~components/Text\"\nimport { VisuallyHidden } from \"~components/VisuallyHidden\"\nimport styles from \"./ProgressStepper.module.scss\"\n\nexport type ProgressStepperProps = {\n stepName: string\n steps: [string, ...string[]]\n isComplete?: boolean\n}\n\nconst getStepStatus = (\n isComplete: boolean,\n isCurrentStep: boolean,\n step: string,\n index: number\n): {\n icon: JSX.Element\n accessibleName: string\n} => {\n if (isComplete) {\n return {\n icon: (\n <SuccessIcon\n key={index}\n inheritSize\n role=\"presentation\"\n classNameOverride=\"success\"\n />\n ),\n accessibleName: `Completed: ${step}`,\n }\n }\n if (isCurrentStep) {\n return {\n icon: (\n <IndicatorActiveIcon\n key={index}\n inheritSize\n role=\"presentation\"\n classNameOverride=\"active\"\n />\n ),\n accessibleName: `Current: ${step}`,\n }\n }\n return {\n icon: (\n <IndicatorInactiveIcon\n key={index}\n inheritSize\n classNameOverride=\"incomplete\"\n role=\"presentation\"\n />\n ),\n accessibleName: `Not started: ${step}`,\n }\n}\n\nexport const ProgressStepper = ({\n stepName,\n steps,\n isComplete = false,\n ...restprops\n}: ProgressStepperProps): JSX.Element => {\n const currentStepIndex = steps.indexOf(stepName)\n\n return (\n <div className={styles.stepsContainer}>\n <ol\n className={styles.stepList}\n {...restprops}\n aria-labelledby=\"stepper-description\"\n >\n {steps.map((step: string, index: number) => {\n const isCurrentStep = currentStepIndex === index\n const isCompletedStep = index < currentStepIndex || isComplete\n const { accessibleName, icon: Icon } = getStepStatus(\n isCompletedStep,\n isCurrentStep,\n step,\n index\n )\n return (\n <li\n className={styles.step}\n key={`${index}-${step}`}\n aria-current={isCurrentStep}\n >\n <div className={styles.stepContent}>\n <VisuallyHidden>\n {/* will need to be translated */}\n {accessibleName}\n </VisuallyHidden>\n <Text\n classNameOverride={styles.stepName}\n variant=\"small\"\n color=\"white\"\n aria-hidden\n >\n {step}\n </Text>\n <div className={styles.stepIndicator}>\n <span className={styles.stepIcon}>{Icon}</span>\n </div>\n {index < steps.length - 1 && (\n <div\n className={classnames([\n styles.stepDivider,\n isCompletedStep && styles.completedStep,\n ])}\n />\n )}\n </div>\n </li>\n )\n })}\n </ol>\n <Text\n classNameOverride={styles.stepperDescription}\n variant=\"small\"\n color=\"white\"\n id=\"stepper-description\"\n >\n Step {currentStepIndex + 1} of {steps.length}\n </Text>\n </div>\n )\n}\n\nProgressStepper.displayName = \"Workflow.ProgressStepper\"\n"],"names":["getStepStatus","isComplete","isCurrentStep","step","index","icon","React","createElement","SuccessIcon","key","inheritSize","role","classNameOverride","accessibleName","concat","IndicatorActiveIcon","IndicatorInactiveIcon","ProgressStepper","_a","stepName","steps","_b","restprops","__rest","currentStepIndex","indexOf","className","styles","stepsContainer","__assign","stepList","map","isCompletedStep","Icon","stepContent","VisuallyHidden","Text","variant","color","stepIndicator","stepIcon","length","classnames","stepDivider","completedStep","stepperDescription","id","displayName"],"mappings":";;;;;;;;;;;;AAiBA,IAAMA,aAAa,GAAG,SAAAA,CACpBC,UAAmB,EACnBC,aAAsB,EACtBC,IAAY,EACZC,KAAa,EAAA;EAKb,IAAIH,UAAU,EAAE;IACd,OAAO;MACLI,IAAI,EACFC,KAAA,CAAAC,aAAA,CAACC,WAAAA,CAAAA,WAAW,EACV;QAAAC,GAAG,EAAEL,KAAK;QACVM,WAAW,EACX,IAAA;QAAAC,IAAI,EAAC,cAAc;QACnBC,iBAAiB,EAAC;QAErB;MACDC,cAAc,EAAE,aAAc,CAAAC,MAAA,CAAAX,IAAI;KACnC;EACF;EACD,IAAID,aAAa,EAAE;IACjB,OAAO;MACLG,IAAI,EACFC,KAAA,CAAAC,aAAA,CAACQ,mBAAAA,CAAAA,mBAAmB,EAClB;QAAAN,GAAG,EAAE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;MAAAxB,iBAAiB,EAAEe,sBAAM,CAACkB,kBAAkB;MAC5CR,OAAO,EAAC,OAAO;MACfC,KAAK,EAAC,OAAO;MACbQ,EAAE,EAAC;IAAqB,CAAA,WAElBtB,gBAAgB,GAAG,CAAC,UAAMJ,KAAK,CAACqB,MAAM,CACvC,CACH;EAEV,CAAC;EAEDxB,eAAe,CAAC8B,WAAW,GAAG,0BAA0B;EAAA,OAvE3C9B,eAAe;AAAA;"}
@@ -4,6 +4,7 @@ var tslib = require('tslib');
4
4
  var React = require('react');
5
5
  var Heading = require('../../../../../Heading/Heading.cjs');
6
6
  var Tag = require('../../../../../Tag/Tag.cjs');
7
+ var VisuallyHidden = require('../../../../../VisuallyHidden/VisuallyHidden.cjs');
7
8
  var Titles_module = require('./Titles.module.scss.cjs');
8
9
  const Titles = /*#__PURE__*/function () {
9
10
  const Titles = function (_a) {
@@ -23,9 +24,7 @@ const Titles = /*#__PURE__*/function () {
23
24
  variant: "heading-6",
24
25
  tag: "span",
25
26
  color: "dark-reduced-opacity"
26
- }, workflowName, React.createElement("span", {
27
- className: "sr-only"
28
- }, ":")), React.createElement("span", null, stepName)), status &&
27
+ }, workflowName, React.createElement(VisuallyHidden.VisuallyHidden, null, ":")), React.createElement("span", null, stepName)), status &&
29
28
  // status may need to be update by a fetch
30
29
  React.createElement("div", {
31
30
  className: Titles_module.status
@@ -1 +1 @@
1
- {"version":3,"file":"Titles.cjs","sources":["../../../../../../../src/Workflow/subcomponents/Header/components/Titles/Titles.tsx"],"sourcesContent":["import React, { HTMLAttributes } from \"react\"\nimport { Heading } from \"~components/Heading\"\nimport { Tag, DefaultTagProps } from \"~components/Tag\"\nimport { OverrideClassName } from \"~types/OverrideClassName\"\nimport styles from \"./Titles.module.scss\"\n\nexport type WorkflowStatus = {\n /** @default: \"statusDraft\" */\n variant?: DefaultTagProps[\"variant\"]\n content?: string\n}\n\nexport type WorkflowTitlesProps = {\n workflowName: string\n stepName: string\n status?: WorkflowStatus\n} & OverrideClassName<HTMLAttributes<HTMLDivElement>>\n\nexport const Titles = ({\n workflowName,\n stepName,\n status,\n ...restProps\n}: WorkflowTitlesProps): JSX.Element => (\n <div className={styles.titles} {...restProps}>\n <Heading\n variant=\"heading-1\"\n tag=\"h1\"\n color=\"dark\"\n classNameOverride={styles.pageTitle}\n >\n <Heading\n classNameOverride={styles.prefix}\n variant=\"heading-6\"\n tag=\"span\"\n color=\"dark-reduced-opacity\"\n >\n {workflowName}\n <span className=\"sr-only\">:</span>\n </Heading>\n <span>{stepName}</span>\n </Heading>\n {status && (\n // status may need to be update by a fetch\n <div className={styles.status}>\n <Tag inline variant={status?.variant || \"statusDraft\"}>\n {status?.content}\n </Tag>\n </div>\n )}\n </div>\n)\n\nTitles.displayName = \"Workflow.Titles\"\n"],"names":["Titles","_a","workflowName","stepName","status","restProps","__rest","React","className","styles","titles","createElement","Heading","variant","tag","color","classNameOverride","pageTitle","prefix","Tag","inline","content","displayName"],"mappings":";;;;;;;MAkBaA,MAAM;EAAA,MAANA,MAAM,GAAG,SAAAA,CAACC,EAKD,EAAA;IAJpB,IAAAC,YAAY,GAAAD,EAAA,CAAAC,YAAA;MACZC,QAAQ,GAAAF,EAAA,CAAAE,QAAA;MACRC,MAAM,GAAAH,EAAA,CAAAG,MAAA;MACHC,SAAS,GAJSC,KAAAA,CAAAA,MAAA,CAAAL,EAAA,EAAA,CAAA,cAAA,EAAA,UAAA,EAAA,QAAA,CAKtB,CADa;IAC0B,OACtCM;MAAKC,SAAS,EAAEC,aAAM,CAACC;OAAYL,SAAS,CAAA,EAC1CE,KAAA,CAAAI,aAAA,CAACC,OAAAA,CAAAA,OAAO,EACN;MAAAC,OAAO,EAAC,WAAW;MACnBC,GAAG,EAAC,IAAI;MACRC,KAAK,EAAC,MAAM;MACZC,iBAAiB,EAAEP,aAAM,CAACQ;IAAS,CAAA,EAEnCV,KAAA,CAAAI,aAAA,CAACC,OAAAA,CAAAA,OAAO,EACN;MAAAI,iBAAiB,EAAEP,aAAM,CAACS,MAAM;MAChCL,OAAO,EAAC,WAAW;MACnBC,GAAG,EAAC,MAAM;MACVC,KAAK,EAAC;IAAsB,CAAA,EAE3Bb,YAAY,EACbK,KAAA,CAAAI,aAAA,CAAA,MAAA,EAAA;MAAMH,SAAS,EAAC;IAAS,CAAA,EAAA,GAAA,CAAS,CAC1B,EACVD,KAAO,CAAAI,aAAA,CAAA,MAAA,EAAA,IAAA,EAAAR,QAAQ,CAAQ,CACf,EACTC,MAAM;;IAELG,KAAA,CAAAI,aAAA,CAAA,KAAA,EAAA;MAAKH,SAAS,EAAEC,aAAM,CAACL;IAAM,CAAA,EAC3BG,KAAA,CAAAI,aAAA,CAACQ,GAAAA,CAAAA,GAAG,EAAA;MAACC,MAAM,EAAA,IAAA;MAACP,OAAO,EAAE,CAAAT,MAAM,KAAN,IAAA,IAAAA,MAAM,KAAN,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,MAAM,CAAES,OAAO,KAAI;IACrC,CAAA,EAAAT,MAAM,KAAN,IAAA,IAAAA,MAAM,KAAN,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,MAAM,CAAEiB,OAAO,CACZ,CAET,CACG;GACP;EAEDrB,MAAM,CAACsB,WAAW,GAAG,iBAAiB;EAAA,OAnCzBtB,MAAM;AAAA;"}
1
+ {"version":3,"file":"Titles.cjs","sources":["../../../../../../../src/Workflow/subcomponents/Header/components/Titles/Titles.tsx"],"sourcesContent":["import React, { HTMLAttributes } from \"react\"\nimport { Heading } from \"~components/Heading\"\nimport { Tag, DefaultTagProps } from \"~components/Tag\"\nimport { VisuallyHidden } from \"~components/VisuallyHidden\"\nimport { OverrideClassName } from \"~types/OverrideClassName\"\nimport styles from \"./Titles.module.scss\"\n\nexport type WorkflowStatus = {\n /** @default: \"statusDraft\" */\n variant?: DefaultTagProps[\"variant\"]\n content?: string\n}\n\nexport type WorkflowTitlesProps = {\n workflowName: string\n stepName: string\n status?: WorkflowStatus\n} & OverrideClassName<HTMLAttributes<HTMLDivElement>>\n\nexport const Titles = ({\n workflowName,\n stepName,\n status,\n ...restProps\n}: WorkflowTitlesProps): JSX.Element => (\n <div className={styles.titles} {...restProps}>\n <Heading\n variant=\"heading-1\"\n tag=\"h1\"\n color=\"dark\"\n classNameOverride={styles.pageTitle}\n >\n <Heading\n classNameOverride={styles.prefix}\n variant=\"heading-6\"\n tag=\"span\"\n color=\"dark-reduced-opacity\"\n >\n {workflowName}\n <VisuallyHidden>:</VisuallyHidden>\n </Heading>\n <span>{stepName}</span>\n </Heading>\n {status && (\n // status may need to be update by a fetch\n <div className={styles.status}>\n <Tag inline variant={status?.variant || \"statusDraft\"}>\n {status?.content}\n </Tag>\n </div>\n )}\n </div>\n)\n\nTitles.displayName = \"Workflow.Titles\"\n"],"names":["Titles","_a","workflowName","stepName","status","restProps","__rest","React","className","styles","titles","createElement","Heading","variant","tag","color","classNameOverride","pageTitle","prefix","VisuallyHidden","Tag","inline","content","displayName"],"mappings":";;;;;;;;MAmBaA,MAAM;EAAA,MAANA,MAAM,GAAG,SAAAA,CAACC,EAKD,EAAA;IAJpB,IAAAC,YAAY,GAAAD,EAAA,CAAAC,YAAA;MACZC,QAAQ,GAAAF,EAAA,CAAAE,QAAA;MACRC,MAAM,GAAAH,EAAA,CAAAG,MAAA;MACHC,SAAS,GAJSC,KAAAA,CAAAA,MAAA,CAAAL,EAAA,EAAA,CAAA,cAAA,EAAA,UAAA,EAAA,QAAA,CAKtB,CADa;IAC0B,OACtCM;MAAKC,SAAS,EAAEC,aAAM,CAACC;OAAYL,SAAS,CAAA,EAC1CE,KAAA,CAAAI,aAAA,CAACC,OAAAA,CAAAA,OAAO,EACN;MAAAC,OAAO,EAAC,WAAW;MACnBC,GAAG,EAAC,IAAI;MACRC,KAAK,EAAC,MAAM;MACZC,iBAAiB,EAAEP,aAAM,CAACQ;IAAS,CAAA,EAEnCV,KAAA,CAAAI,aAAA,CAACC,OAAAA,CAAAA,OAAO,EACN;MAAAI,iBAAiB,EAAEP,aAAM,CAACS,MAAM;MAChCL,OAAO,EAAC,WAAW;MACnBC,GAAG,EAAC,MAAM;MACVC,KAAK,EAAC;IAAsB,CAAA,EAE3Bb,YAAY,EACbK,KAAC,CAAAI,aAAA,CAAAQ,cAAAA,CAAAA,cAAc,YAAmB,CAC1B,EACVZ,KAAO,CAAAI,aAAA,CAAA,MAAA,EAAA,IAAA,EAAAR,QAAQ,CAAQ,CACf,EACTC,MAAM;;IAELG,KAAA,CAAAI,aAAA,CAAA,KAAA,EAAA;MAAKH,SAAS,EAAEC,aAAM,CAACL;IAAM,CAAA,EAC3BG,KAAA,CAAAI,aAAA,CAACS,GAAAA,CAAAA,GAAG,EAAA;MAACC,MAAM,EAAA,IAAA;MAACR,OAAO,EAAE,CAAAT,MAAM,KAAN,IAAA,IAAAA,MAAM,KAAN,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,MAAM,CAAES,OAAO,KAAI;IACrC,CAAA,EAAAT,MAAM,KAAN,IAAA,IAAAA,MAAM,KAAN,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,MAAM,CAAEkB,OAAO,CACZ,CAET,CACG;GACP;EAEDtB,MAAM,CAACuB,WAAW,GAAG,iBAAiB;EAAA,OAnCzBvB,MAAM;AAAA;"}
@@ -8,6 +8,7 @@ var IndicatorActiveIcon = require('../../../../../../Icon/IndicatorActiveIcon.cj
8
8
  var IndicatorInactiveIcon = require('../../../../../../Icon/IndicatorInactiveIcon.cjs');
9
9
  var SuccessIcon = require('../../../../../../Icon/SuccessIcon.cjs');
10
10
  var Text = require('../../../../../../Text/Text.cjs');
11
+ var VisuallyHidden = require('../../../../../../VisuallyHidden/VisuallyHidden.cjs');
11
12
  var ProgressStepper_module = require('./ProgressStepper.module.scss.cjs');
12
13
  var getStepStatus = function (isComplete, isCurrentStep, step, index) {
13
14
  if (isComplete) {
@@ -70,9 +71,7 @@ const ProgressStepper = /*#__PURE__*/function () {
70
71
  "aria-current": isCurrentStep
71
72
  }, React.createElement("div", {
72
73
  className: ProgressStepper_module.stepContent
73
- }, React.createElement("span", {
74
- className: "sr-only"
75
- }, accessibleName), React.createElement(Text.Text, {
74
+ }, React.createElement(VisuallyHidden.VisuallyHidden, null, accessibleName), React.createElement(Text.Text, {
76
75
  classNameOverride: ProgressStepper_module.stepName,
77
76
  variant: "small",
78
77
  color: "white",
@@ -1 +1 @@
1
- {"version":3,"file":"ProgressStepper.cjs","sources":["../../../../../../../../src/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx"],"sourcesContent":["import React from \"react\"\nimport classnames from \"classnames\"\nimport {\n IndicatorActiveIcon,\n IndicatorInactiveIcon,\n SuccessIcon,\n} from \"~components/Icon\"\nimport { Text } from \"~components/Text\"\nimport styles from \"./ProgressStepper.module.scss\"\n\nexport type Step = {\n id: string\n label: string\n}\n\nexport type Steps = [Step, ...Step[]]\n\nexport type ProgressStepperProps = {\n /** The id reference to within a Step object */\n currentStepId: Step[\"id\"]\n /** A non-empty array of Steps */\n steps: Steps\n isComplete?: boolean\n}\n\nconst getStepStatus = (\n isComplete: boolean,\n isCurrentStep: boolean,\n step: Step,\n index: number\n): {\n icon: JSX.Element\n accessibleName: string\n} => {\n if (isComplete) {\n return {\n icon: (\n <SuccessIcon\n key={index}\n inheritSize\n role=\"presentation\"\n classNameOverride=\"success\"\n />\n ),\n accessibleName: `Completed: ${step.label}`,\n }\n }\n if (isCurrentStep) {\n return {\n icon: (\n <IndicatorActiveIcon\n key={index}\n inheritSize\n role=\"presentation\"\n classNameOverride=\"active\"\n />\n ),\n accessibleName: `Current: ${step.label}`,\n }\n }\n return {\n icon: (\n <IndicatorInactiveIcon\n key={index}\n inheritSize\n classNameOverride=\"incomplete\"\n role=\"presentation\"\n />\n ),\n accessibleName: `Not started: ${step.label}`,\n }\n}\n\nexport const ProgressStepper = ({\n currentStepId,\n steps,\n isComplete = false,\n ...restprops\n}: ProgressStepperProps): JSX.Element => {\n const currentStepIndex = steps.findIndex(\n stepItem => stepItem.id === currentStepId\n )\n\n return (\n <div className={styles.stepsContainer}>\n <ol\n className={styles.stepList}\n {...restprops}\n aria-labelledby=\"stepper-description\"\n >\n {steps.map((step, index: number) => {\n const isCurrentStep = currentStepIndex === index\n const isCompletedStep = index < currentStepIndex || isComplete\n const { accessibleName, icon: Icon } = getStepStatus(\n isCompletedStep,\n isCurrentStep,\n step,\n index\n )\n return (\n <li\n className={styles.step}\n key={`${step.id}`}\n aria-current={isCurrentStep}\n >\n <div className={styles.stepContent}>\n <span className=\"sr-only\">\n {/* will need to be translated */}\n {accessibleName}\n </span>\n <Text\n classNameOverride={styles.stepName}\n variant=\"small\"\n color=\"white\"\n aria-hidden\n >\n {step.label}\n </Text>\n <div className={styles.stepIndicator}>\n <span className={styles.stepIcon}>{Icon}</span>\n </div>\n {index < steps.length - 1 && (\n <div\n className={classnames([\n styles.stepDivider,\n isCompletedStep && styles.completedStep,\n ])}\n />\n )}\n </div>\n </li>\n )\n })}\n </ol>\n <Text\n classNameOverride={styles.stepperDescription}\n variant=\"small\"\n color=\"white\"\n id=\"stepper-description\"\n >\n Step {currentStepIndex + 1} of {steps.length}\n </Text>\n </div>\n )\n}\n\nProgressStepper.displayName = \"Workflow.ProgressStepper\"\n"],"names":["getStepStatus","isComplete","isCurrentStep","step","index","icon","React","createElement","SuccessIcon","key","inheritSize","role","classNameOverride","accessibleName","concat","label","IndicatorActiveIcon","IndicatorInactiveIcon","ProgressStepper","_a","currentStepId","steps","_b","restprops","__rest","currentStepIndex","findIndex","stepItem","id","className","styles","stepsContainer","__assign","stepList","map","isCompletedStep","Icon","stepContent","Text","stepName","variant","color","stepIndicator","stepIcon","length","classnames","stepDivider","completedStep","stepperDescription","displayName"],"mappings":";;;;;;;;;;;AAyBA,IAAMA,aAAa,GAAG,SAAAA,CACpBC,UAAmB,EACnBC,aAAsB,EACtBC,IAAU,EACVC,KAAa,EAAA;EAKb,IAAIH,UAAU,EAAE;IACd,OAAO;MACLI,IAAI,EACFC,KAAA,CAAAC,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,aAAA,CAAA,MAAA,EAAA;QAAAsB,SAAS,EAAEC,sBAAM,CAACa;MAAQ,CAAG,EAAAP,IAAI,CAAQ,CAC3C,EACLhC,KAAK,GAAGiB,KAAK,CAACuB,MAAM,GAAG,CAAC,IACvBtC,KACE,CAAAC,aAAA,CAAA,KAAA,EAAA;QAAAsB,SAAS,EAAEgB,UAAU,CAAC,CACpBf,sBAAM,CAACgB,WAAW,EAClBX,eAAe,IAAIL,sBAAM,CAACiB,aAAa,CACxC;MACD,CAAA,CACH,CACG,CACH;IAET,CAAC,CAAC,CACC,EACLzC,KAAA,CAAAC,aAAA,CAAC+B,IAAAA,CAAAA,IAAI,EACH;MAAA1B,iBAAiB,EAAEkB,sBAAM,CAACkB,kBAAkB;MAC5CR,OAAO,EAAC,OAAO;MACfC,KAAK,EAAC,OAAO;MACbb,EAAE,EAAC;IAAqB,CAAA,WAElBH,gBAAgB,GAAG,CAAC,UAAMJ,KAAK,CAACuB,MAAM,CACvC,CACH;EAEV,CAAC;EAED1B,eAAe,CAAC+B,WAAW,GAAG,0BAA0B;EAAA,OAzE3C/B,eAAe;AAAA;"}
1
+ {"version":3,"file":"ProgressStepper.cjs","sources":["../../../../../../../../src/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx"],"sourcesContent":["import React from \"react\"\nimport classnames from \"classnames\"\nimport {\n IndicatorActiveIcon,\n IndicatorInactiveIcon,\n SuccessIcon,\n} from \"~components/Icon\"\nimport { Text } from \"~components/Text\"\nimport { VisuallyHidden } from \"~components/VisuallyHidden\"\nimport styles from \"./ProgressStepper.module.scss\"\n\nexport type Step = {\n id: string\n label: string\n}\n\nexport type Steps = [Step, ...Step[]]\n\nexport type ProgressStepperProps = {\n /** The id reference to within a Step object */\n currentStepId: Step[\"id\"]\n /** A non-empty array of Steps */\n steps: Steps\n isComplete?: boolean\n}\n\nconst getStepStatus = (\n isComplete: boolean,\n isCurrentStep: boolean,\n step: Step,\n index: number\n): {\n icon: JSX.Element\n accessibleName: string\n} => {\n if (isComplete) {\n return {\n icon: (\n <SuccessIcon\n key={index}\n inheritSize\n role=\"presentation\"\n classNameOverride=\"success\"\n />\n ),\n accessibleName: `Completed: ${step.label}`,\n }\n }\n if (isCurrentStep) {\n return {\n icon: (\n <IndicatorActiveIcon\n key={index}\n inheritSize\n role=\"presentation\"\n classNameOverride=\"active\"\n />\n ),\n accessibleName: `Current: ${step.label}`,\n }\n }\n return {\n icon: (\n <IndicatorInactiveIcon\n key={index}\n inheritSize\n classNameOverride=\"incomplete\"\n role=\"presentation\"\n />\n ),\n accessibleName: `Not started: ${step.label}`,\n }\n}\n\nexport const ProgressStepper = ({\n currentStepId,\n steps,\n isComplete = false,\n ...restprops\n}: ProgressStepperProps): JSX.Element => {\n const currentStepIndex = steps.findIndex(\n stepItem => stepItem.id === currentStepId\n )\n\n return (\n <div className={styles.stepsContainer}>\n <ol\n className={styles.stepList}\n {...restprops}\n aria-labelledby=\"stepper-description\"\n >\n {steps.map((step, index: number) => {\n const isCurrentStep = currentStepIndex === index\n const isCompletedStep = index < currentStepIndex || isComplete\n const { accessibleName, icon: Icon } = getStepStatus(\n isCompletedStep,\n isCurrentStep,\n step,\n index\n )\n return (\n <li\n className={styles.step}\n key={`${step.id}`}\n aria-current={isCurrentStep}\n >\n <div className={styles.stepContent}>\n <VisuallyHidden>\n {/* will need to be translated */}\n {accessibleName}\n </VisuallyHidden>\n <Text\n classNameOverride={styles.stepName}\n variant=\"small\"\n color=\"white\"\n aria-hidden\n >\n {step.label}\n </Text>\n <div className={styles.stepIndicator}>\n <span className={styles.stepIcon}>{Icon}</span>\n </div>\n {index < steps.length - 1 && (\n <div\n className={classnames([\n styles.stepDivider,\n isCompletedStep && styles.completedStep,\n ])}\n />\n )}\n </div>\n </li>\n )\n })}\n </ol>\n <Text\n classNameOverride={styles.stepperDescription}\n variant=\"small\"\n color=\"white\"\n id=\"stepper-description\"\n >\n Step {currentStepIndex + 1} of {steps.length}\n </Text>\n </div>\n )\n}\n\nProgressStepper.displayName = \"Workflow.ProgressStepper\"\n"],"names":["getStepStatus","isComplete","isCurrentStep","step","index","icon","React","createElement","SuccessIcon","key","inheritSize","role","classNameOverride","accessibleName","concat","label","IndicatorActiveIcon","IndicatorInactiveIcon","ProgressStepper","_a","currentStepId","steps","_b","restprops","__rest","currentStepIndex","findIndex","stepItem","id","className","styles","stepsContainer","__assign","stepList","map","isCompletedStep","Icon","stepContent","VisuallyHidden","Text","stepName","variant","color","stepIndicator","stepIcon","length","classnames","stepDivider","completedStep","stepperDescription","displayName"],"mappings":";;;;;;;;;;;;AA0BA,IAAMA,aAAa,GAAG,SAAAA,CACpBC,UAAmB,EACnBC,aAAsB,EACtBC,IAAU,EACVC,KAAa,EAAA;EAKb,IAAIH,UAAU,EAAE;IACd,OAAO;MACLI,IAAI,EACFC,KAAA,CAAAC,aAAA,CAACC,WAAAA,CAAAA,WAAW,EACV;QAAAC,GAAG,EAAEL,KAAK;QACVM,WAAW,EACX,IAAA;QAAAC,IAAI,EAAC,cAAc;QACnBC,iBAAiB,EAAC;QAErB;MACDC,cAAc,EAAE,aAAA,CAAAC,MAAA,CAAcX,IAAI,CAACY,KAAK;KACzC;EACF;EACD,IAAIb,aAAa,EAAE;IACjB,OAAO;MACLG,IAAI,EACFC,KAAA,CAAAC,aAAA,CAACS,mBAAAA,CAAAA,mBAAmB,EAClB;QAAAP,GAAG,EAAEL,KAAK;QACVM,WAAW,EACX,IAAA;QAAAC,IAAI,EAAC,cAAc;QACnBC,iBAAiB,EAAC;QAErB;MACDC,cAAc,EAAE,WAAA,CAAAC,MAAA,CAAYX,IAAI,CAACY,KAAK;KACvC;EACF;EACD,OAAO;IACLV,IAAI,EACFC,KAAA,CAAAC,aAAA,CAACU,qBAAAA,CAAAA,qBAAqB,EACpB;MAAAR,GAAG,EAAEL,KAAK;MACVM,WAAW,EACX,IAAA;MAAAE,iBAAiB,EAAC,YAAY;MAC9BD,IAAI,EAAC;MAER;IACDE,cAAc,EAAE,eA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ib');
4
4
  var React = require('react');
5
5
  var Heading = require('../../../../../../Heading/Heading.cjs');
6
6
  var Tag = require('../../../../../../Tag/Tag.cjs');
7
+ var VisuallyHidden = require('../../../../../../VisuallyHidden/VisuallyHidden.cjs');
7
8
  var Titles_module = require('./Titles.module.scss.cjs');
8
9
  const Titles = /*#__PURE__*/function () {
9
10
  const Titles = function (_a) {
@@ -23,9 +24,7 @@ const Titles = /*#__PURE__*/function () {
23
24
  variant: "heading-6",
24
25
  tag: "span",
25
26
  color: "dark-reduced-opacity"
26
- }, workflowName, React.createElement("span", {
27
- className: "sr-only"
28
- }, ":")), React.createElement("span", null, stepName)), status &&
27
+ }, workflowName, React.createElement(VisuallyHidden.VisuallyHidden, null, ":")), React.createElement("span", null, stepName)), status &&
29
28
  // status may need to be update by a fetch
30
29
  React.createElement("div", {
31
30
  className: Titles_module.status
@@ -1 +1 @@
1
- {"version":3,"file":"Titles.cjs","sources":["../../../../../../../../src/__future__/Workflow/subcomponents/Header/components/Titles/Titles.tsx"],"sourcesContent":["import React, { HTMLAttributes } from \"react\"\nimport { Heading } from \"~components/Heading\"\nimport { Tag, DefaultTagProps } from \"~components/Tag\"\nimport { OverrideClassName } from \"~types/OverrideClassName\"\nimport styles from \"./Titles.module.scss\"\n\nexport type WorkflowStatus = {\n /** @default: \"statusDraft\" */\n variant?: DefaultTagProps[\"variant\"]\n content?: string\n}\n\nexport type WorkflowTitlesProps = {\n workflowName: string\n stepName: string\n status?: WorkflowStatus\n} & OverrideClassName<HTMLAttributes<HTMLDivElement>>\n\nexport const Titles = ({\n workflowName,\n stepName,\n status,\n ...restProps\n}: WorkflowTitlesProps): JSX.Element => (\n <div className={styles.titles} {...restProps}>\n <Heading\n variant=\"heading-1\"\n tag=\"h1\"\n color=\"dark\"\n classNameOverride={styles.pageTitle}\n >\n <Heading\n classNameOverride={styles.prefix}\n variant=\"heading-6\"\n tag=\"span\"\n color=\"dark-reduced-opacity\"\n >\n {workflowName}\n <span className=\"sr-only\">:</span>\n </Heading>\n <span>{stepName}</span>\n </Heading>\n {status && (\n // status may need to be update by a fetch\n <div className={styles.status}>\n <Tag inline variant={status?.variant || \"statusDraft\"}>\n {status?.content}\n </Tag>\n </div>\n )}\n </div>\n)\n\nTitles.displayName = \"Workflow.Titles\"\n"],"names":["Titles","_a","workflowName","stepName","status","restProps","__rest","React","className","styles","titles","createElement","Heading","variant","tag","color","classNameOverride","pageTitle","prefix","Tag","inline","content","displayName"],"mappings":";;;;;;;MAkBaA,MAAM;EAAA,MAANA,MAAM,GAAG,SAAAA,CAACC,EAKD,EAAA;IAJpB,IAAAC,YAAY,GAAAD,EAAA,CAAAC,YAAA;MACZC,QAAQ,GAAAF,EAAA,CAAAE,QAAA;MACRC,MAAM,GAAAH,EAAA,CAAAG,MAAA;MACHC,SAAS,GAJSC,KAAAA,CAAAA,MAAA,CAAAL,EAAA,EAAA,CAAA,cAAA,EAAA,UAAA,EAAA,QAAA,CAKtB,CADa;IAC0B,OACtCM;MAAKC,SAAS,EAAEC,aAAM,CAACC;OAAYL,SAAS,CAAA,EAC1CE,KAAA,CAAAI,aAAA,CAACC,OAAAA,CAAAA,OAAO,EACN;MAAAC,OAAO,EAAC,WAAW;MACnBC,GAAG,EAAC,IAAI;MACRC,KAAK,EAAC,MAAM;MACZC,iBAAiB,EAAEP,aAAM,CAACQ;IAAS,CAAA,EAEnCV,KAAA,CAAAI,aAAA,CAACC,OAAAA,CAAAA,OAAO,EACN;MAAAI,iBAAiB,EAAEP,aAAM,CAACS,MAAM;MAChCL,OAAO,EAAC,WAAW;MACnBC,GAAG,EAAC,MAAM;MACVC,KAAK,EAAC;IAAsB,CAAA,EAE3Bb,YAAY,EACbK,KAAA,CAAAI,aAAA,CAAA,MAAA,EAAA;MAAMH,SAAS,EAAC;IAAS,CAAA,EAAA,GAAA,CAAS,CAC1B,EACVD,KAAO,CAAAI,aAAA,CAAA,MAAA,EAAA,IAAA,EAAAR,QAAQ,CAAQ,CACf,EACTC,MAAM;;IAELG,KAAA,CAAAI,aAAA,CAAA,KAAA,EAAA;MAAKH,SAAS,EAAEC,aAAM,CAACL;IAAM,CAAA,EAC3BG,KAAA,CAAAI,aAAA,CAACQ,GAAAA,CAAAA,GAAG,EAAA;MAACC,MAAM,EAAA,IAAA;MAACP,OAAO,EAAE,CAAAT,MAAM,KAAN,IAAA,IAAAA,MAAM,KAAN,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,MAAM,CAAES,OAAO,KAAI;IACrC,CAAA,EAAAT,MAAM,KAAN,IAAA,IAAAA,MAAM,KAAN,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,MAAM,CAAEiB,OAAO,CACZ,CAET,CACG;GACP;EAEDrB,MAAM,CAACsB,WAAW,GAAG,iBAAiB;EAAA,OAnCzBtB,MAAM;AAAA;"}
1
+ {"version":3,"file":"Titles.cjs","sources":["../../../../../../../../src/__future__/Workflow/subcomponents/Header/components/Titles/Titles.tsx"],"sourcesContent":["import React, { HTMLAttributes } from \"react\"\nimport { Heading } from \"~components/Heading\"\nimport { Tag, DefaultTagProps } from \"~components/Tag\"\nimport { VisuallyHidden } from \"~components/VisuallyHidden\"\nimport { OverrideClassName } from \"~types/OverrideClassName\"\nimport styles from \"./Titles.module.scss\"\n\nexport type WorkflowStatus = {\n /** @default: \"statusDraft\" */\n variant?: DefaultTagProps[\"variant\"]\n content?: string\n}\n\nexport type WorkflowTitlesProps = {\n workflowName: string\n stepName: string\n status?: WorkflowStatus\n} & OverrideClassName<HTMLAttributes<HTMLDivElement>>\n\nexport const Titles = ({\n workflowName,\n stepName,\n status,\n ...restProps\n}: WorkflowTitlesProps): JSX.Element => (\n <div className={styles.titles} {...restProps}>\n <Heading\n variant=\"heading-1\"\n tag=\"h1\"\n color=\"dark\"\n classNameOverride={styles.pageTitle}\n >\n <Heading\n classNameOverride={styles.prefix}\n variant=\"heading-6\"\n tag=\"span\"\n color=\"dark-reduced-opacity\"\n >\n {workflowName}\n <VisuallyHidden>:</VisuallyHidden>\n </Heading>\n <span>{stepName}</span>\n </Heading>\n {status && (\n // status may need to be update by a fetch\n <div className={styles.status}>\n <Tag inline variant={status?.variant || \"statusDraft\"}>\n {status?.content}\n </Tag>\n </div>\n )}\n </div>\n)\n\nTitles.displayName = \"Workflow.Titles\"\n"],"names":["Titles","_a","workflowName","stepName","status","restProps","__rest","React","className","styles","titles","createElement","Heading","variant","tag","color","classNameOverride","pageTitle","prefix","VisuallyHidden","Tag","inline","content","displayName"],"mappings":";;;;;;;;MAmBaA,MAAM;EAAA,MAANA,MAAM,GAAG,SAAAA,CAACC,EAKD,EAAA;IAJpB,IAAAC,YAAY,GAAAD,EAAA,CAAAC,YAAA;MACZC,QAAQ,GAAAF,EAAA,CAAAE,QAAA;MACRC,MAAM,GAAAH,EAAA,CAAAG,MAAA;MACHC,SAAS,GAJSC,KAAAA,CAAAA,MAAA,CAAAL,EAAA,EAAA,CAAA,cAAA,EAAA,UAAA,EAAA,QAAA,CAKtB,CADa;IAC0B,OACtCM;MAAKC,SAAS,EAAEC,aAAM,CAACC;OAAYL,SAAS,CAAA,EAC1CE,KAAA,CAAAI,aAAA,CAACC,OAAAA,CAAAA,OAAO,EACN;MAAAC,OAAO,EAAC,WAAW;MACnBC,GAAG,EAAC,IAAI;MACRC,KAAK,EAAC,MAAM;MACZC,iBAAiB,EAAEP,aAAM,CAACQ;IAAS,CAAA,EAEnCV,KAAA,CAAAI,aAAA,CAACC,OAAAA,CAAAA,OAAO,EACN;MAAAI,iBAAiB,EAAEP,aAAM,CAACS,MAAM;MAChCL,OAAO,EAAC,WAAW;MACnBC,GAAG,EAAC,MAAM;MACVC,KAAK,EAAC;IAAsB,CAAA,EAE3Bb,YAAY,EACbK,KAAC,CAAAI,aAAA,CAAAQ,cAAAA,CAAAA,cAAc,YAAmB,CAC1B,EACVZ,KAAO,CAAAI,aAAA,CAAA,MAAA,EAAA,IAAA,EAAAR,QAAQ,CAAQ,CACf,EACTC,MAAM;;IAELG,KAAA,CAAAI,aAAA,CAAA,KAAA,EAAA;MAAKH,SAAS,EAAEC,aAAM,CAACL;IAAM,CAAA,EAC3BG,KAAA,CAAAI,aAAA,CAACS,GAAAA,CAAAA,GAAG,EAAA;MAACC,MAAM,EAAA,IAAA;MAACR,OAAO,EAAE,CAAAT,MAAM,KAAN,IAAA,IAAAA,MAAM,KAAN,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,MAAM,CAAES,OAAO,KAAI;IACrC,CAAA,EAAAT,MAAM,KAAN,IAAA,IAAAA,MAAM,KAAN,KAAA,CAAA,GAAA,KAAA,CAAA,GAAAA,MAAM,CAAEkB,OAAO,CACZ,CAET,CACG;GACP;EAEDtB,MAAM,CAACuB,WAAW,GAAG,iBAAiB;EAAA,OAnCzBvB,MAAM;AAAA;"}
@@ -1,13 +1,13 @@
1
1
  .Select-module_container__TaMKg{position:relative;width:100%}.Select-module_notFullWidth__Mr-3G{width:180px}
2
2
  .Main-module_main__hMyB1{z-index:0}
3
3
  .Wrapper-module_wrapper__89WmC{background:var(--color-gray-100,#f9f9f9);display:grid;grid-template-rows:min-content 1fr min-content;min-height:100vh;position:relative}
4
+ .FooterActions-module_footerAction__v7eL-{display:flex;flex-basis:auto;flex-grow:1}.FooterActions-module_footerActionPrevious__2XByZ{grid-area:"prev";justify-content:start}.FooterActions-module_footerActionNext__IKRta{grid-area:"next";justify-content:end}
4
5
  .Titles-module_titles__JYwU0{align-items:center;flex-grow:1;grid-area:titles;justify-content:center}.Titles-module_pageTitle__YDp9S,.Titles-module_titles__JYwU0{display:flex;flex-direction:column}.Titles-module_prefix__40x8n{margin-bottom:var(--spacing-4,.25rem)}.Titles-module_status__huuP7{margin-top:var(--spacing-8,.5rem)}
5
6
  .FooterRoot-module_footerRoot__N-6nQ{align-items:center;background:var(--color-blue-500,#0168b3);display:grid;flex-grow:1;gap:var(--spacing-16,1rem);grid-template-areas:"prev stepper next";grid-template-columns:1fr 2fr 1fr;justify-content:center;padding:var(--spacing-24,1.5rem) var(--spacing-12,.75rem)}@media (min-width:768px){.FooterRoot-module_footerRoot__N-6nQ{bottom:0;grid-template-columns:1fr 5fr 1fr;padding:var(--spacing-24,1.5rem) var(--spacing-32,2rem);position:sticky;z-index:1}}
6
- .FooterActions-module_footerAction__v7eL-{display:flex;flex-basis:auto;flex-grow:1}.FooterActions-module_footerActionPrevious__2XByZ{grid-area:"prev";justify-content:start}.FooterActions-module_footerActionNext__IKRta{grid-area:"next";justify-content:end}
7
- .Actions-module_actions__Prrp0{align-items:center;display:flex;flex-direction:column;flex-grow:1;grid-area:actions;justify-content:center}@media (min-width:768px){.Actions-module_actions__Prrp0{align-items:flex-start;flex-direction:row;justify-content:flex-end;margin-top:calc(var(--spacing-12, .75rem)*-1)}}
8
7
  .Branding-module_branding__4h-rD{display:flex;flex-grow:1;grid-area:branding;justify-content:center;padding-top:var(--spacing-4,.25rem)}@media (min-width:768px){.Branding-module_branding__4h-rD{justify-content:unset}}.Branding-module_logo__vqqec{flex-basis:7.5rem}
9
- .ProgressStepper-module_stepsContainer__WMxXN{grid-area:stepper;width:100%}.ProgressStepper-module_stepList__b1wWX{align-items:flex-end;display:none;justify-content:center;list-style:none;margin:0;padding:0}@media (min-width:768px){.ProgressStepper-module_stepList__b1wWX{display:flex}}.ProgressStepper-module_step__-Ep19{container:step/inline-size;display:flex;flex-basis:100%;flex-grow:1;justify-content:center;max-width:var(--spacing-96,6rem);overflow-wrap:break-word;position:relative}.ProgressStepper-module_stepContent__B4uFS{align-items:center;display:flex;flex-direction:column}.ProgressStepper-module_stepIndicator__-qEWT{height:1.25rem;position:relative;width:1.25rem}.ProgressStepper-module_stepName__hS4lp{display:none;font-weight:var(--typography-paragraph-bold-font-weight,600);margin-bottom:var(--spacing-12,.75rem);text-align:center}.ProgressStepper-module_stepIcon__0Kh4y{color:var(--color-white,#fff);height:1.25rem;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:1.25rem}.ProgressStepper-module_stepDivider__KEZPU{border:var(--spacing-1,.0625rem) solid var(--color-white,#fff);border-radius:var(--border-solid-border-radius,7px);display:flex;flex-grow:1;height:0;left:100%;margin:0;min-width:calc(100% - var(--spacing-24, 1.5rem));position:absolute;top:calc(100% - .625rem);transform:translateX(-50%)}[dir=rtl] .ProgressStepper-module_stepDivider__KEZPU{left:unset;right:100%;transform:translateX(50%)}.ProgressStepper-module_stepperDescription__B00hX{display:flex;justify-content:center}@media (min-width:768px){.ProgressStepper-module_stepperDescription__B00hX{height:0;overflow:hidden;position:absolute;width:0}}@container step (min-width: 4.5rem){.ProgressStepper-module_stepName__hS4lp{display:inline}}
8
+ .Actions-module_actions__Prrp0{align-items:center;display:flex;flex-direction:column;flex-grow:1;grid-area:actions;justify-content:center}@media (min-width:768px){.Actions-module_actions__Prrp0{align-items:flex-start;flex-direction:row;justify-content:flex-end;margin-top:calc(var(--spacing-12, .75rem)*-1)}}
10
9
  .Root-module_root__7DVw5{align-items:center;background-color:var(--color-white,#fff);box-shadow:var(--shadow-small-box-shadow,0 3px 16px rgba(0,0,0,.06),0 1px 3px rgba(0,0,0,.1));display:grid;flex-grow:1;gap:var(--spacing-16,1rem);grid-template:"branding" min-content "titles" max-content "actions" min-content/1fr;justify-content:center;padding:var(--spacing-24,1.5rem);text-align:center}@media (min-width:768px){.Root-module_root__7DVw5{align-items:start;grid-template:"branding titles actions" min-content/1fr max-content 1fr;position:sticky;top:0;z-index:1}}
10
+ .ProgressStepper-module_stepsContainer__WMxXN{grid-area:stepper;width:100%}.ProgressStepper-module_stepList__b1wWX{align-items:flex-end;display:none;justify-content:center;list-style:none;margin:0;padding:0}@media (min-width:768px){.ProgressStepper-module_stepList__b1wWX{display:flex}}.ProgressStepper-module_step__-Ep19{container:step/inline-size;display:flex;flex-basis:100%;flex-grow:1;justify-content:center;max-width:var(--spacing-96,6rem);overflow-wrap:break-word;position:relative}.ProgressStepper-module_stepContent__B4uFS{align-items:center;display:flex;flex-direction:column}.ProgressStepper-module_stepIndicator__-qEWT{height:1.25rem;position:relative;width:1.25rem}.ProgressStepper-module_stepName__hS4lp{display:none;font-weight:var(--typography-paragraph-bold-font-weight,600);margin-bottom:var(--spacing-12,.75rem);text-align:center}.ProgressStepper-module_stepIcon__0Kh4y{color:var(--color-white,#fff);height:1.25rem;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%);width:1.25rem}.ProgressStepper-module_stepDivider__KEZPU{border:var(--spacing-1,.0625rem) solid var(--color-white,#fff);border-radius:var(--border-solid-border-radius,7px);display:flex;flex-grow:1;height:0;left:100%;margin:0;min-width:calc(100% - var(--spacing-24, 1.5rem));position:absolute;top:calc(100% - .625rem);transform:translateX(-50%)}[dir=rtl] .ProgressStepper-module_stepDivider__KEZPU{left:unset;right:100%;transform:translateX(50%)}.ProgressStepper-module_stepperDescription__B00hX{display:flex;justify-content:center}@media (min-width:768px){.ProgressStepper-module_stepperDescription__B00hX{height:0;overflow:hidden;position:absolute;width:0}}@container step (min-width: 4.5rem){.ProgressStepper-module_stepName__hS4lp{display:inline}}
11
11
  .SVG-module_icon__8J5Ev{display:inline-block;height:20px;width:20px}.SVG-module_icon__8J5Ev>use{pointer-events:none}@media screen and (-ms-high-contrast:active){.SVG-module_icon__8J5Ev{color:#000}}@media screen and (-ms-high-contrast:white-on-black){.SVG-module_icon__8J5Ev{color:#fff}}@media screen and (-ms-high-contrast:black-on-white){.SVG-module_icon__8J5Ev{color:#000}}.SVG-module_inheritSize__Q8iam{display:block;height:inherit;width:inherit}
12
12
  .Avatar-module_wrapper__LY2q2{align-items:center;background:var(--color-gray-300,#eaeaec);border-radius:100%;box-sizing:border-box;display:flex;justify-content:center;overflow:hidden}.Avatar-module_wrapper__LY2q2:not(.Avatar-module_small__PeksS){border:3px solid var(--color-white,#fff);box-shadow:var(--shadow-small-box-shadow,0 3px 16px rgba(0,0,0,.06),0 1px 3px rgba(0,0,0,.1))}.Avatar-module_wrapper__LY2q2.Avatar-module_personal__2U7--{background:var(--color-orange-100,#fff0e8)}.Avatar-module_wrapper__LY2q2.Avatar-module_otherUser__b-drl{background:var(--color-gray-300,#eaeaec)}.Avatar-module_wrapper__LY2q2.Avatar-module_company__2qtJE{background:var(--color-white,#fff);border:0;border-radius:var(--border-solid-border-radius,7px);padding:6px}.Avatar-module_wrapper__LY2q2.Avatar-module_small__PeksS{height:1.25rem;width:1.25rem}.Avatar-module_wrapper__LY2q2.Avatar-module_small__PeksS .Avatar-module_initials__VDY2Q{margin-bottom:-1px}.Avatar-module_wrapper__LY2q2.Avatar-module_small__PeksS.Avatar-module_company__2qtJE{padding:0}.Avatar-module_wrapper__LY2q2.Avatar-module_medium__Vy3V8{height:3rem;width:3rem}.Avatar-module_wrapper__LY2q2.Avatar-module_medium__Vy3V8 .Avatar-module_initials__VDY2Q{margin-bottom:-1px}.Avatar-module_wrapper__LY2q2.Avatar-module_large__qiNWs{height:4.5rem;width:4.5rem}.Avatar-module_wrapper__LY2q2.Avatar-module_xlarge__Vx4IG{height:6rem;width:6rem}.Avatar-module_wrapper__LY2q2.Avatar-module_xxlarge__oOoGq{height:7.75rem;width:7.75rem}.Avatar-module_wrapper__LY2q2 .Avatar-module_initials__VDY2Q{speak-as:spell-out;border-bottom:none;text-decoration:none}.Avatar-module_avatarImage__FuULy{height:100%;-o-object-fit:cover;object-fit:cover;width:100%}.Avatar-module_loading__i9V-D .Avatar-module_avatarImage__FuULy{display:none}.Avatar-module_companyAvatarImage__7rlfG{border-radius:4px;box-sizing:border-box;-o-object-fit:contain;object-fit:contain}.Avatar-module_fallbackIcon__MPWxq{color:rgba(var(--color-purple-800-rgb,47,36,56),.7);width:28px}.Avatar-module_xxlarge__oOoGq .Avatar-module_fallbackIcon__MPWxq{width:75px}.Avatar-module_xlarge__Vx4IG .Avatar-module_fallbackIcon__MPWxq{width:60px}.Avatar-module_large__qiNWs .Avatar-module_fallbackIcon__MPWxq{width:35px}.Avatar-module_medium__Vy3V8 .Avatar-module_fallbackIcon__MPWxq{margin-bottom:-1px;width:25px}.Avatar-module_small__PeksS .Avatar-module_fallbackIcon__MPWxq{margin-bottom:-1px;width:10px}.Avatar-module_initials__VDY2Q{box-sizing:border-box;color:var(--color-purple-800,#2f2438);font-family:var(--typography-heading-1-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:22px;font-weight:var(--typography-heading-1-font-weight,700);letter-spacing:var(--typography-heading-3-letter-spacing,normal);padding-left:5px;padding-right:5px;text-align:center;width:100%}.Avatar-module_initials__VDY2Q:not(.Avatar-module_longName__31Yuf):before{content:"";display:block;margin-top:-.001em}.Avatar-module_xlarge__Vx4IG .Avatar-module_initials__VDY2Q,.Avatar-module_xxlarge__oOoGq .Avatar-module_initials__VDY2Q{font-size:34px;letter-spacing:var(--typography-heading-1-letter-spacing,normal)}.Avatar-module_medium__Vy3V8 .Avatar-module_initials__VDY2Q{font-size:16px}.Avatar-module_medium__Vy3V8 .Avatar-module_initials__VDY2Q,.Avatar-module_small__PeksS .Avatar-module_initials__VDY2Q{font-weight:var(--typography-heading-5-font-weight,600);letter-spacing:var(--typography-heading-5-letter-spacing,normal)}.Avatar-module_small__PeksS .Avatar-module_initials__VDY2Q{font-size:8px}
13
13
  .AvatarGroup-module_AvatarGroup__bdL0o{display:inline-flex;list-style:none;margin:0;padding:0}.AvatarGroup-module_small__7uv8k .AvatarGroup-module_AvatarGroupItem__xQol-+.AvatarGroup-module_AvatarGroupItem__xQol-{margin-inline-start:-.625rem}[dir=rtl] .AvatarGroup-module_small__7uv8k .AvatarGroup-module_AvatarGroupItem__xQol-+.AvatarGroup-module_AvatarGroupItem__xQol-{margin-left:0}.AvatarGroup-module_medium__af52y .AvatarGroup-module_AvatarGroupItem__xQol-+.AvatarGroup-module_AvatarGroupItem__xQol-{margin-inline-start:-1.5rem}[dir=rtl] .AvatarGroup-module_medium__af52y .AvatarGroup-module_AvatarGroupItem__xQol-+.AvatarGroup-module_AvatarGroupItem__xQol-{margin-left:0}.AvatarGroup-module_large__HN9Yy .AvatarGroup-module_AvatarGroupItem__xQol-+.AvatarGroup-module_AvatarGroupItem__xQol-{margin-inline-start:-2.25rem}[dir=rtl] .AvatarGroup-module_large__HN9Yy .AvatarGroup-module_AvatarGroupItem__xQol-+.AvatarGroup-module_AvatarGroupItem__xQol-{margin-left:0}.AvatarGroup-module_AvatarCounter__PKFzl{align-items:center;background:var(--color-gray-300,#eaeaec);border:3px solid var(--color-white,#fff);border-radius:100%;box-shadow:var(--shadow-small-box-shadow,0 3px 16px rgba(0,0,0,.06),0 1px 3px rgba(0,0,0,.1));box-sizing:border-box;display:flex;justify-content:center;overflow:hidden}.AvatarGroup-module_small__7uv8k .AvatarGroup-module_AvatarCounter__PKFzl{border:none;box-shadow:none;font-size:.5rem;height:1.25rem;width:1.25rem}.AvatarGroup-module_medium__af52y .AvatarGroup-module_AvatarCounter__PKFzl,.AvatarGroup-module_small__7uv8k .AvatarGroup-module_AvatarCounter__PKFzl{font-family:var(--typography-heading-5-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-weight:var(--typography-heading-5-font-weight,600);letter-spacing:var(--typography-heading-5-letter-spacing,normal)}.AvatarGroup-module_medium__af52y .AvatarGroup-module_AvatarCounter__PKFzl{font-size:var(--typography-heading-5-font-size,1rem);height:3rem;width:3rem}.AvatarGroup-module_large__HN9Yy .AvatarGroup-module_AvatarCounter__PKFzl{font-family:var(--typography-heading-3-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-heading-3-font-size,1.375rem);font-weight:var(--typography-heading-3-font-weight,700);height:4.5rem;letter-spacing:var(--typography-heading-3-letter-spacing,normal);width:4.5rem}[dir=rtl] .AvatarGroup-module_AvatarCounter__PKFzl{direction:ltr;margin-left:0}
@@ -134,7 +134,7 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs{all:unset;-webkit-ap
134
134
  .Select-module_specificityIncreaser__cZtQV .Select-module_control__ehUuP:focus-within:after,.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_default__hKuCo .Select-module_control__ehUuP.Select-module_focusedControl__3AwhP:after,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_default__hKuCo .Select-module_control__ehUuP.Select-module_focusedControl__3AwhP:after{background:transparent;border-color:var(--color-blue-500,#0168b3);border-radius:var(--border-focus-ring-border-radius,10px);border-style:var(--border-focus-ring-border-style,solid);border-width:var(--border-focus-ring-border-width,2px);content:"";inset:calc(var(--border-focus-ring-border-width, 2px)*-2 - 1px);position:absolute}.Select-module_specificityIncreaser__cZtQV .Select-module_multiValue__9XkYX{margin:.2375rem;z-index:1}.Select-module_specificityIncreaser__cZtQV .Select-module_dropdownIndicator__NUopQ,.Select-module_specificityIncreaser__cZtQV .Select-module_dropdownIndicator__NUopQ:hover{color:rgba(var(--color-purple-800-rgb,47,36,56),.7)}.Select-module_specificityIncreaser__cZtQV .Select-module_control__ehUuP{border:var(--border-solid-border-width,2px) var(--border-solid-border-style,solid) var(--color-gray-500,#8c8c97);border-radius:var(--border-solid-border-radius,7px);min-height:48px}.Select-module_specificityIncreaser__cZtQV .Select-module_control__ehUuP.Select-module_disabled__-iG97{opacity:30%}.Select-module_specificityIncreaser__cZtQV .Select-module_control__ehUuP:hover{background-color:var(--color-gray-100,#f9f9f9);border-color:var(--color-gray-600,#524e56);cursor:pointer}.Select-module_specificityIncreaser__cZtQV .Select-module_valueContainer__MGkpr{font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem)}.Select-module_specificityIncreaser__cZtQV .Select-module_indicatorsContainer__2xCsm{z-index:1}.Select-module_specificityIncreaser__cZtQV .Select-module_loadingMessage__4Ej9T{color:var(--color-purple-800,#2f2438);font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:var(--typography-paragraph-body-line-height,1.5rem)}.Select-module_specificityIncreaser__cZtQV .Select-module_focusedControl__3AwhP,.Select-module_specificityIncreaser__cZtQV .Select-module_focusedControl__3AwhP:hover{box-shadow:none}.Select-module_specificityIncreaser__cZtQV .Select-module_placeholder__OAeGA{color:var(--color-purple-800,#2f2438);font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:var(--typography-paragraph-body-line-height,1.5rem);opacity:.7}.Select-module_specificityIncreaser__cZtQV .Select-module_menu__axmUL{border:6px var(--border-solid-border-style,solid) transparent;border-radius:var(--border-solid-border-radius,7px);box-shadow:var(--shadow-large-box-shadow,0 8px 40px rgba(0,0,0,.08),0 3px 9px rgba(0,0,0,.1));z-index:3}.Select-module_specificityIncreaser__cZtQV .Select-module_menu__axmUL>div{padding-bottom:0;padding-top:0}.Select-module_specificityIncreaser__cZtQV .Select-module_groupHeading__eNw6U{color:rgba(var(--color-purple-800-rgb,47,36,56),.7);font-family:var(--typography-heading-6-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-heading-6-font-size,.875rem);font-weight:var(--typography-heading-6-font-weight,700);letter-spacing:var(--typography-heading-6-letter-spacing,normal);line-height:var(--typography-heading-6-line-height,1.5rem);text-transform:capitalize}.Select-module_specificityIncreaser__cZtQV .Select-module_option__EdP-F{border-color:transparent;border-radius:var(--border-focus-ring-border-radius,10px);border-style:var(--border-focus-ring-border-style,solid);border-width:var(--border-focus-ring-border-width,2px);color:var(--color-purple-800,#2f2438);cursor:pointer;font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:var(--typography-paragraph-body-line-height,1.5rem)}.Select-module_specificityIncreaser__cZtQV .Select-module_focusedOption__uwQwp{background-color:var(--color-blue-100,#e6f6ff);border-color:var(--color-blue-500,#0168b3);color:var(--color-blue-500,#0168b3)}.Select-module_specificityIncreaser__cZtQV .Select-module_focusedOption__uwQwp.Select-module_disabledOption__TWVun{background:transparent;border-color:var(--color-gray-500,#8c8c97);border-style:var(--border-dashed-border-style,dashed);border-width:var(--border-focus-ring-border-width,2px);color:var(--color-purple-800,#2f2438)}.Select-module_specificityIncreaser__cZtQV .Select-module_focusedOption__uwQwp:active{background-color:var(--color-blue-100,#e6f6ff)}.Select-module_specificityIncreaser__cZtQV .Select-module_selectedOption__xhYOz{color:var(--color-blue-500,#0168b3);font-weight:var(--typography-paragraph-bold-font-weight,600)}.Select-module_specificityIncreaser__cZtQV .Select-module_selectedOption__xhYOz:not(.Select-module_focusedOption__uwQwp){background-color:transparent}.Select-module_specificityIncreaser__cZtQV .Select-module_disabledOption__TWVun{cursor:not-allowed;opacity:30%}.Select-module_specificityIncreaser__cZtQV .Select-module_noOptionsMessage__DG5zw,.Select-module_specificityIncreaser__cZtQV .Select-module_singleValue__-cc8w{color:var(--color-purple-800,#2f2438);font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:var(--typography-paragraph-body-line-height,1.5rem)}.Select-module_specificityIncreaser__cZtQV.Select-module_reversed__-jCGs .Select-module_input__HAhy-,.Select-module_specificityIncreaser__cZtQV.Select-module_reversed__-jCGs .Select-module_singleValueOverrides__44Gby,.Select-module_specificityIncreaser__cZtQV.Select-module_reversed__-jCGs .Select-module_singleValue__-cc8w{color:var(--color-white,#fff)}.Select-module_specificityIncreaser__cZtQV.Select-module_error__GpAw6 .Select-module_control__ehUuP{border:var(--border-solid-border-width,2px) var(--border-solid-border-style,solid) var(--color-red-500,#c93b55)}.Select-module_specificityIncreaser__cZtQV.Select-module_default__hKuCo.Select-module_reversed__-jCGs .Select-module_control__ehUuP{background:transparent;border-color:var(--color-white,#fff);border-radius:var(--border-borderless-border-radius,7px);color:var(--color-white,#fff)}.Select-module_specificityIncreaser__cZtQV.Select-module_default__hKuCo.Select-module_reversed__-jCGs .Select-module_control__ehUuP:hover{background:rgba(var(--color-white-rgb,255,255,255),.2)}.Select-module_specificityIncreaser__cZtQV.Select-module_default__hKuCo.Select-module_reversed__-jCGs .Select-module_control__ehUuP.Select-module_disabled__-iG97{opacity:30%}.Select-module_specificityIncreaser__cZtQV.Select-module_default__hKuCo.Select-module_reversed__-jCGs .Select-module_clearIndicator__O6EuX,.Select-module_specificityIncreaser__cZtQV.Select-module_default__hKuCo.Select-module_reversed__-jCGs .Select-module_dropdownIndicator__NUopQ,.Select-module_specificityIncreaser__cZtQV.Select-module_default__hKuCo.Select-module_reversed__-jCGs .Select-module_placeholder__OAeGA{color:var(--color-white,#fff)}.Select-module_specificityIncreaser__cZtQV.Select-module_default__hKuCo.Select-module_reversed__-jCGs.Select-module_error__GpAw6 .Select-module_control__ehUuP{border:var(--border-solid-border-width,2px) var(--border-solid-border-style,solid) var(--color-red-300,#f597a8)}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_default__hKuCo .Select-module_control__ehUuP,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_default__hKuCo .Select-module_control__ehUuP{background:transparent;border:var(--border-borderless-border-width,2px) var(--border-borderless-border-style,solid) var(--border-borderless-border-color,transparent);border-radius:var(--border-borderless-border-radius,7px)}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_default__hKuCo .Select-module_control__ehUuP .Select-module_singleValue__-cc8w,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_default__hKuCo .Select-module_control__ehUuP .Select-module_singleValue__-cc8w{color:var(--color-blue-500,#0168b3)}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_default__hKuCo .Select-module_control__ehUuP:hover,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_default__hKuCo .Select-module_control__ehUuP:hover{background:var(--color-blue-100,#e6f6ff)}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_default__hKuCo .Select-module_control__ehUuP.Select-module_disabled__-iG97,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_default__hKuCo .Select-module_control__ehUuP.Select-module_disabled__-iG97{opacity:30%}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_default__hKuCo .Select-module_control__ehUuP.Select-module_focusedControl__3AwhP,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_default__hKuCo .Select-module_control__ehUuP.Select-module_focusedControl__3AwhP{background:var(--color-blue-100,#e6f6ff)}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_default__hKuCo .Select-module_dropdownIndicator__NUopQ,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_default__hKuCo .Select-module_dropdownIndicator__NUopQ{color:var(--color-blue-500,#0168b3)}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_reversed__-jCGs .Select-module_control__ehUuP,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_reversed__-jCGs .Select-module_control__ehUuP{background:rgba(var(--color-white-rgb,255,255,255),.1);border:var(--border-borderless-border-width,2px) var(--border-borderless-border-style,solid) var(--border-borderless-border-color,transparent);border-radius:var(--border-borderless-border-radius,7px);color:var(--color-white,#fff)}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_reversed__-jCGs .Select-module_control__ehUuP:hover,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_reversed__-jCGs .Select-module_control__ehUuP:hover{background:rgba(var(--color-white-rgb,255,255,255),.2)}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_reversed__-jCGs .Select-module_control__ehUuP.Select-module_disabled__-iG97,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_reversed__-jCGs .Select-module_control__ehUuP.Select-module_disabled__-iG97{opacity:30%}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_reversed__-jCGs .Select-module_dropdownIndicator__NUopQ,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_reversed__-jCGs .Select-module_dropdownIndicator__NUopQ{color:var(--color-white,#fff)}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_reversed__-jCGs .Select-module_focusedControl__3AwhP,.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_reversed__-jCGs .Select-module_focusedControl__3AwhP:hover,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_reversed__-jCGs .Select-module_focusedControl__3AwhP,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_reversed__-jCGs .Select-module_focusedControl__3AwhP:hover{border-color:var(--color-blue-300,#73c0e8)}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_reversed__-jCGs .Select-module_placeholder__OAeGA,.Select-module_specificityIncreaser__cZtQV.Select-module_secondary__0RpOQ.Select-module_reversed__-jCGs .Select-module_placeholder__OAeGA{color:var(--color-white,#fff)}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_secondarySmall__6yNEL.Select-module_reversed__-jCGs .Select-module_control__ehUuP{background:transparent;border:0}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_secondarySmall__6yNEL.Select-module_reversed__-jCGs .Select-module_control__ehUuP:hover{background:transparent}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_secondarySmall__6yNEL .Select-module_control__ehUuP{height:auto;min-height:0}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_secondarySmall__6yNEL .Select-module_control__ehUuP>div{height:24px;padding-left:0;padding-right:0}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_secondarySmall__6yNEL .Select-module_control__ehUuP .Select-module_valueContainer__MGkpr{height:24px}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_secondarySmall__6yNEL .Select-module_control__ehUuP .Select-module_singleValue__-cc8w{font-family:var(--typography-paragraph-extra-small-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-extra-small-font-size,.75rem);font-weight:var(--typography-paragraph-extra-small-font-weight,400);letter-spacing:var(--typography-paragraph-extra-small-letter-spacing,normal);line-height:var(--typography-paragraph-extra-small-line-height,1.125rem)}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_secondarySmall__6yNEL .Select-module_control__ehUuP .Select-module_singleValueOverrides__44Gby{margin-left:0;margin-right:0}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_secondarySmall__6yNEL .Select-module_indicatorsContainer__2xCsm{z-index:1}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_secondarySmall__6yNEL .Select-module_dropdownIndicator__NUopQ{padding-bottom:0;padding-top:0;transform:translateY(1px)}.Select-module_specificityIncreaser__cZtQV.Select-module_secondarySmall__6yNEL.Select-module_secondarySmall__6yNEL .Select-module_dropdownIndicator__NUopQ>svg{height:14px;width:14px}.Select-module_specificityIncreaser__cZtQV.Select-module_notFullWidth__LO-xV .Select-module_control__ehUuP{display:inline-flex;max-width:100%}.Select-module_specificityIncreaser__cZtQV.Select-module_notFullWidth__LO-xV .Select-module_control__ehUuP>div{display:flex;flex-wrap:nowrap;height:44px}.Select-module_specificityIncreaser__cZtQV.Select-module_notFullWidth__LO-xV .Select-module_singleValueOverrides__44Gby{max-width:100%;overflow:hidden;position:static;top:0;transform:none;white-space:nowrap}.Select-module_specificityIncreaser__cZtQV.Select-module_notFullWidth__LO-xV .Select-module_singleValue__-cc8w{max-width:100%}
135
135
  .Skirt-module_container__h4J-J{position:relative}.Skirt-module_underlay__isMuP{box-sizing:content-box;height:100%;left:0;position:absolute;right:0;top:0;z-index:1}.Skirt-module_defaultVariant__VLaHK{background-color:var(--color-purple-600,#5f3361)}.Skirt-module_educationVariant__12yxk{background-color:var(--color-blue-100,#e6f6ff)}.Skirt-module_content__218H1{position:relative;z-index:2}
136
136
  @media (max-width:1080px){.SkirtCard-module_wrapper__05vkl{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-left:-12px;margin-right:-12px}}@media (max-width:768px){.SkirtCard-module_wrapper__05vkl{border-radius:0;margin-left:-12px;margin-right:-12px}}
137
- .Slider-module_wrapper__zVX6g{display:flex;flex-direction:column}.Slider-module_labelWrapper__WuUIw{margin-bottom:var(--spacing-sm,.75rem)}@media (min-width:768px){.Slider-module_labelInline__zjINd.Slider-module_wrapper__zVX6g{align-items:center;flex-direction:row}.Slider-module_labelInline__zjINd .Slider-module_labelWrapper__WuUIw{flex:1}.Slider-module_labelInline__zjINd .Slider-module_inputWrapper__n16yj{flex-basis:50%}}.Slider-module_descriptionDisabled__8GwiS{opacity:30%}.Slider-module_readOnlyMessage__Zscoa{font-family:var(--typography-paragraph-small-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-small-font-size,.875rem);font-weight:var(--typography-paragraph-bold-font-weight,600);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:var(--typography-paragraph-body-line-height,1.5rem);text-align:center}
137
+ .Slider-module_wrapper__zVX6g{display:flex;flex-direction:column}.Slider-module_labelWrapper__WuUIw{margin-bottom:var(--spacing-sm,.75rem)}.Slider-module_label__CfIjh{margin-bottom:var(--spacing-4,.25rem)}@media (min-width:768px){.Slider-module_labelInline__zjINd.Slider-module_wrapper__zVX6g{align-items:center;flex-direction:row}.Slider-module_labelInline__zjINd .Slider-module_labelWrapper__WuUIw{flex:1}.Slider-module_labelInline__zjINd .Slider-module_inputWrapper__n16yj{flex-basis:50%}}.Slider-module_descriptionDisabled__8GwiS{opacity:30%}.Slider-module_readOnlyMessage__Zscoa{font-family:var(--typography-paragraph-small-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-small-font-size,.875rem);font-weight:var(--typography-paragraph-bold-font-weight,600);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:var(--typography-paragraph-body-line-height,1.5rem);text-align:center}
138
138
  .BaseButton-module_baseButton__0XYh4{border-style:var(--border-solid-border-style,solid);border-width:var(--border-solid-border-width,2px);cursor:default;font-family:var(--typography-button-primary-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-button-primary-font-size,1.125rem);font-weight:var(--typography-button-primary-font-weight,700);letter-spacing:var(--typography-button-primary-letter-spacing,normal);line-height:var(--typography-button-primary-line-height,1.5rem);padding:calc(var(--spacing-sm, .75rem) - var(--border-borderless-border-width, 2px)) calc(var(--spacing-md, 1.5rem) - var(--border-borderless-border-width, 2px));text-decoration:unset;white-space:nowrap}.BaseButton-module_baseButton__0XYh4:active,.BaseButton-module_baseButton__0XYh4:hover{text-decoration:unset;z-index:2}.BaseButton-module_baseButton__0XYh4:active{transform:translateY(1px)}.BaseButton-module_baseButton__0XYh4:focus{outline:none}.BaseButton-module_baseButton__0XYh4:focus-visible{outline-offset:1px;outline-style:var(--border-solid-border-style,solid);outline-width:var(--border-solid-border-width,2px);z-index:3}.BaseButton-module_baseButton__0XYh4:disabled{opacity:30%;pointer-events:none}.BaseButton-module_default__6JNZx{background-color:var(--color-white,#fff);border-color:var(--color-gray-500,#8c8c97);color:var(--color-purple-800,#2f2438)}.BaseButton-module_default__6JNZx:active,.BaseButton-module_default__6JNZx:focus-visible,.BaseButton-module_default__6JNZx:hover{background-color:var(--color-gray-200,#f4f4f5);border-color:var(--color-gray-600,#524e56);color:var(--color-purple-800,#2f2438)}.BaseButton-module_default__6JNZx:focus-visible{outline-color:var(--color-blue-500,#0168b3)}.BaseButton-module_isReversed__j8nyW{background-color:transparent;border-color:rgba(var(--color-white-rgb,255,255,255),.65);color:var(--color-white,#fff)}.BaseButton-module_isReversed__j8nyW:active,.BaseButton-module_isReversed__j8nyW:focus-visible,.BaseButton-module_isReversed__j8nyW:hover{background-color:rgba(var(--color-white-rgb,255,255,255),.1);border-color:var(--color-white,#fff);color:var(--color-white,#fff)}.BaseButton-module_isReversed__j8nyW:focus-visible{outline-color:var(--color-blue-300,#73c0e8)}
139
139
  .ActionButton-module_actionButton__mJRl4{border-end-end-radius:0;border-end-start-radius:var(--border-solid-border-radius,7px);border-start-end-radius:0;border-start-start-radius:var(--border-solid-border-radius,7px)}
140
140
  .DropdownButton-module_dropdownButton__PqQH6{border-end-end-radius:var(--border-solid-border-radius,7px);border-end-start-radius:0;border-inline-start-width:0;border-start-end-radius:var(--border-solid-border-radius,7px);border-start-start-radius:0;display:inline-flex;inset-inline-start:calc(var(--border-solid-border-width, 2px)*-1);margin-inline-start:var(--border-solid-border-width,2px);padding:var(--spacing-12,.75rem);position:relative}.DropdownButton-module_dropdownButton__PqQH6:active,.DropdownButton-module_dropdownButton__PqQH6:focus-visible,.DropdownButton-module_dropdownButton__PqQH6:hover{border-inline-start-width:var(--border-solid-border-width,2px);inset-inline-start:calc(var(--border-solid-border-width, 2px)*-1);margin-inline-start:unset}
@@ -145,8 +145,8 @@ input[type=range].InputRange-module_ratingScaleRange__gI-rs{all:unset;-webkit-ap
145
145
  .TabPanel-module_tabPanel__I7hEK{border:2px solid transparent}.TabPanel-module_tabPanel__I7hEK:focus{outline:none}.TabPanel-module_tabPanel__I7hEK:focus-visible{border-color:var(--color-blue-500,#0168b3);border-radius:var(--border-focus-ring-border-radius,10px)}
146
146
  .TextArea-module_wrapper__ytS6M{position:relative}.TextArea-module_textarea__GeHn4{border:var(--border-solid-border-width,2px) var(--border-solid-border-style,solid) var(--color-gray-500,#8c8c97);border-radius:var(--border-solid-border-radius,7px);box-sizing:border-box;color:var(--color-purple-800-rgb,47,36,56);display:block;font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:var(--typography-paragraph-body-line-height,1.5rem);outline:0;padding:var(--spacing-sm,.75rem);position:static;resize:vertical;width:100%}.TextArea-module_textarea__GeHn4::-webkit-input-placeholder{color:rgba(var(--color-purple-800-rgb,47,36,56),.7);font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:var(--typography-paragraph-body-line-height,1.5rem);line-height:1.5;position:static}.TextArea-module_textarea__GeHn4:-moz-placeholder,.TextArea-module_textarea__GeHn4::-moz-placeholder{color:rgba(var(--color-purple-800-rgb,47,36,56),.7);font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:2.9rem;line-height:1.5;position:static}.TextArea-module_textarea__GeHn4:-ms-input-placeholder{color:rgba(var(--color-purple-800-rgb,47,36,56),.7);font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:2.9rem;line-height:1.5;position:static}.TextArea-module_textarea__GeHn4:disabled{resize:none}.TextArea-module_textarea__GeHn4:focus+.TextArea-module_focusRing__kECqH{background:transparent;border-color:transparent;border-radius:var(--border-focus-ring-border-radius,10px);border-style:var(--border-focus-ring-border-style,solid);border-width:var(--border-focus-ring-border-width,2px);inset:-3px;pointer-events:none;position:absolute}.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR:focus:not([disabled]),.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR:hover:focus:not([disabled]),.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR:hover:not([disabled]){background-color:var(--color-gray-200,#f4f4f5);border-color:var(--color-gray-600,#524e56)}.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR:focus+.TextArea-module_focusRing__kECqH{border-color:var(--color-blue-500,#0168b3)}.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR:not(.TextArea-module_error__XOQRm,.TextArea-module_caution__9BGd0):disabled{border-color:rgba(var(--color-gray-500-rgb,140,140,151),.3)}.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR.TextArea-module_error__XOQRm,.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR.TextArea-module_error__XOQRm:focus:not([disabled]),.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR.TextArea-module_error__XOQRm:hover:focus:not([disabled]),.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR.TextArea-module_error__XOQRm:hover:not([disabled]){border-color:var(--color-red-500,#c93b55)}.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR.TextArea-module_caution__9BGd0,.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR.TextArea-module_caution__9BGd0:focus:not([disabled]),.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR.TextArea-module_caution__9BGd0:hover:focus:not([disabled]),.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR.TextArea-module_caution__9BGd0:hover:not([disabled]){border-color:var(--color-yellow-600,#c68600)}.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR.TextArea-module_disabled__N09tP{background-color:var(--color-white,#fff);border-color:rgba(var(--color-gray-500-rgb,140,140,151),.3);color:rgba(var(--color-purple-800-rgb,47,36,56),.3)}.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR.TextArea-module_disabled__N09tP::-webkit-input-placeholder{font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:var(--typography-paragraph-body-line-height,1.5rem);opacity:.3;position:static}.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR.TextArea-module_disabled__N09tP:-moz-placeholder,.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR.TextArea-module_disabled__N09tP::-moz-placeholder{font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:2.9rem;opacity:.3;position:static}.TextArea-module_textarea__GeHn4.TextArea-module_default__Z8jvR.TextArea-module_disabled__N09tP:-ms-input-placeholder{font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:2.9rem;opacity:.3;position:static}.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq{background:transparent;border-color:rgba(var(--color-white-rgb,255,255,255),.65);color:var(--color-white,#fff)}.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq:focus:not([disabled]),.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq:hover:focus:not([disabled]),.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq:hover:not([disabled]){background:rgba(var(--color-white-rgb,255,255,255),.1);border-color:var(--color-white,#fff)}.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq::-webkit-input-placeholder{color:var(--color-white,#fff);font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:var(--typography-paragraph-body-line-height,1.5rem);line-height:1.5;position:static}.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq:-moz-placeholder,.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq::-moz-placeholder{color:var(--color-white,#fff);font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:2.9rem;line-height:1.5;position:static}.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq:-ms-input-placeholder{color:var(--color-white,#fff);font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:2.9rem;line-height:1.5;position:static}.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq:focus+.TextArea-module_focusRing__kECqH{border-color:var(--color-blue-300,#73c0e8)}.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq.TextArea-module_error__XOQRm,.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq.TextArea-module_error__XOQRm:focus:not([disabled]),.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq.TextArea-module_error__XOQRm:hover:focus:not([disabled]),.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq.TextArea-module_error__XOQRm:hover:not([disabled]){border-color:var(--color-red-300,#f597a8)}.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq.TextArea-module_caution__9BGd0,.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq.TextArea-module_caution__9BGd0:focus:not([disabled]),.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq.TextArea-module_caution__9BGd0:hover:focus:not([disabled]),.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq.TextArea-module_caution__9BGd0:hover:not([disabled]){border-color:var(--color-yellow-400,#ffca4d)}.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq.TextArea-module_disabled__N09tP{background:transparent;border-color:rgba(var(--color-white-rgb,255,255,255),.3);color:rgba(var(--color-white-rgb,255,255,255),.3)}.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq.TextArea-module_disabled__N09tP::-webkit-input-placeholder{font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:var(--typography-paragraph-body-line-height,1.5rem);opacity:.3;position:static}.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq.TextArea-module_disabled__N09tP:-moz-placeholder,.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq.TextArea-module_disabled__N09tP::-moz-placeholder{font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:2.9rem;opacity:.3;position:static}.TextArea-module_textarea__GeHn4.TextArea-module_reversed__-SoNq.TextArea-module_disabled__N09tP:-ms-input-placeholder{font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:2.9rem;opacity:.3;position:static}
147
147
  .TextAreaField-module_message__hlao7.TextAreaField-module_disabled__twCef{opacity:.3}.TextAreaField-module_textareaLabel__sOTRj{margin-bottom:var(--spacing-xs,.375rem)}.TextAreaField-module_textareaLabelProminent__xqcY4{margin-bottom:0}
148
- .GenericTile-module_root__9ZHdH{perspective:800px}.GenericTile-module_tile__mgFhk{background-color:var(--color-white,#fff);border-radius:7px;box-shadow:var(--shadow-small-box-shadow,0 3px 16px rgba(0,0,0,.06),0 1px 3px rgba(0,0,0,.1));height:370px;position:relative;transform-style:preserve-3d;transition:transform var(--animation-duration-slow,.4s) var(--animation-easing-function-ease-in-out,cubic-bezier(.455,.03,.515,.955));width:330px}[data-tile-grid] .GenericTile-module_tile__mgFhk{width:auto}@media (max-width:767px){.GenericTile-module_tile__mgFhk{max-width:370px;min-width:226px;width:100%}}@media (max-width:480px){.GenericTile-module_tile__mgFhk{max-width:100%}}.GenericTile-module_face__-KLVi{align-items:center;backface-visibility:hidden;background-color:var(--color-white,#fff);border-radius:7px;box-sizing:border-box;display:flex;flex-direction:column;height:100%;position:absolute;width:100%}.GenericTile-module_face__-KLVi *{backface-visibility:hidden}.GenericTile-module_faceFront__HywHi{justify-content:space-between;padding:var(--spacing-xl,3rem) var(--spacing-md,1.5rem) var(--spacing-md,1.5rem)}.GenericTile-module_faceBack__NDCQ8{background-color:var(--color-blue-100,#e6f6ff);padding-top:var(--spacing-xl,3rem);transform:rotateY(180deg)}.GenericTile-module_faceMoodPositive__3MEBl{background-color:var(--color-green-100,#e8f8f4)}.GenericTile-module_faceMoodInformative__D0QsW{background-color:var(--color-blue-100,#e6f6ff)}.GenericTile-module_faceMoodCautionary__oUZXT{background-color:var(--color-yellow-100,#fff9e4)}.GenericTile-module_faceMoodAssertive__PaUZ-{background-color:var(--color-orange-100,#fff0e8)}.GenericTile-module_faceMoodNegative__DmcZH{background-color:var(--color-red-100,#fdeaee)}.GenericTile-module_faceMoodProminent__VmMmv{background-color:var(--color-purple-100,#f4edf8)}.GenericTile-module_isFlipped__K18mo{transform:rotateY(179deg)}.GenericTile-module_title__zC6Qv{backface-visibility:hidden;padding-bottom:var(--spacing-sm,.75rem);text-align:center}.GenericTile-module_actions__l8vXl{display:flex}.GenericTile-module_informationBtn__LY3SW{color:rgba(var(--color-purple-800-rgb,47,36,56),.5);inset-block-start:0;inset-inline-end:0;position:absolute}.GenericTile-module_information__wKXBp{align-items:center;border-radius:0 0 7px 7px;box-sizing:border-box;display:flex;flex-direction:column;height:100%;justify-content:space-between;padding-bottom:var(--spacing-md,1.5rem);padding-left:var(--spacing-md,1.5rem);padding-right:var(--spacing-md,1.5rem);text-align:left;width:100%}.GenericTile-module_footer__u2Pei{align-items:center;display:flex;height:var(--spacing-xl,3rem);justify-content:center;margin-top:var(--spacing-sm,.75rem)}
149
- .MultiActionTile-module_actions__mntsC{display:flex}
148
+ .GenericTile-module_root__9ZHdH{perspective:800px}.GenericTile-module_tile__mgFhk{background-color:var(--color-white,#fff);border-radius:7px;box-shadow:var(--shadow-small-box-shadow,0 3px 16px rgba(0,0,0,.06),0 1px 3px rgba(0,0,0,.1));height:370px;position:relative;transform-style:preserve-3d;transition:transform var(--animation-duration-slow,.4s) var(--animation-easing-function-ease-in-out,cubic-bezier(.455,.03,.515,.955));width:330px}[data-tile-grid] .GenericTile-module_tile__mgFhk{width:auto}@media (max-width:767px){.GenericTile-module_tile__mgFhk{max-width:370px;min-width:226px;width:100%}}@media (max-width:480px){.GenericTile-module_tile__mgFhk{max-width:100%}}.GenericTile-module_titleMeta__EREc9{padding-top:var(--spacing-4,.25rem)}.GenericTile-module_face__-KLVi{align-items:center;backface-visibility:hidden;background-color:var(--color-white,#fff);border-radius:7px;box-sizing:border-box;display:flex;flex-direction:column;height:100%;position:absolute;width:100%}.GenericTile-module_face__-KLVi *{backface-visibility:hidden}.GenericTile-module_faceFront__HywHi{justify-content:space-between;padding:var(--spacing-xl,3rem) var(--spacing-md,1.5rem) var(--spacing-md,1.5rem)}.GenericTile-module_faceBack__NDCQ8{background-color:var(--color-blue-100,#e6f6ff);padding-top:var(--spacing-xl,3rem);transform:rotateY(180deg)}.GenericTile-module_faceMoodPositive__3MEBl{background-color:var(--color-green-100,#e8f8f4)}.GenericTile-module_faceMoodInformative__D0QsW{background-color:var(--color-blue-100,#e6f6ff)}.GenericTile-module_faceMoodCautionary__oUZXT{background-color:var(--color-yellow-100,#fff9e4)}.GenericTile-module_faceMoodAssertive__PaUZ-{background-color:var(--color-orange-100,#fff0e8)}.GenericTile-module_faceMoodNegative__DmcZH{background-color:var(--color-red-100,#fdeaee)}.GenericTile-module_faceMoodProminent__VmMmv{background-color:var(--color-purple-100,#f4edf8)}.GenericTile-module_isFlipped__K18mo{transform:rotateY(179deg)}.GenericTile-module_title__zC6Qv{backface-visibility:hidden;padding-bottom:var(--spacing-sm,.75rem);text-align:center}.GenericTile-module_actions__l8vXl{display:flex}.GenericTile-module_informationBtn__LY3SW{color:rgba(var(--color-purple-800-rgb,47,36,56),.5);inset-block-start:0;inset-inline-end:0;position:absolute}.GenericTile-module_information__wKXBp{align-items:center;border-radius:0 0 7px 7px;box-sizing:border-box;display:flex;flex-direction:column;height:100%;justify-content:space-between;padding-bottom:var(--spacing-md,1.5rem);padding-left:var(--spacing-md,1.5rem);padding-right:var(--spacing-md,1.5rem);text-align:left;width:100%}.GenericTile-module_footer__u2Pei{align-items:center;display:flex;height:var(--spacing-xl,3rem);justify-content:center;margin-top:var(--spacing-sm,.75rem)}
149
+ .MultiActionTile-module_actions__mntsC{display:flex}.MultiActionTile-module_secondaryAction__DuXdD{margin-inline-end:var(--spacing-8,.5rem)}
150
150
  .TileGrid-module_grid__1WCNc{grid-gap:var(--spacing-md,1.5rem);display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr))}@media (max-width:767px){.TileGrid-module_grid__1WCNc{grid-template-columns:repeat(2,minmax(226px,370px))}.TileGrid-module_grid__1WCNc>*{width:100%}}@media (max-width:480px){.TileGrid-module_grid__1WCNc{grid-template-columns:repeat(1,100%)}}
151
151
  .TimeSegment-module_timeSegmentWrapper__WYD6y{white-space:nowrap}.TimeSegment-module_timeSegment__eXb0c{background-color:var(--color-gray-300,#eaeaec);border-radius:3px;color:var(--color-purple-800,#2f2438);display:block;padding:0 4px;text-align:end}.TimeSegment-module_timeSegment__eXb0c:hover{background-color:var(--color-white,#fff)}.TimeSegment-module_timeSegment__eXb0c:focus-visible{background:var(--color-blue-500,#0168b3);color:#fff;outline:none}.TimeSegment-module_placeholder__j1-gK{color:rgba(var(--color-purple-800-rgb,47,36,56),.7)}.TimeSegment-module_literal__mOkqz,.TimeSegment-module_literal__mOkqz:hover{background:none}.TimeSegment-module_dayPeriod__fzT5I{margin-right:4px}
152
152
  .TimeField-module_wrapper__YuSI3{align-items:flex-start;color:var(--color-purple-800,#2f2438);display:flex;flex-direction:column;font-family:var(--typography-paragraph-body-font-family,"Inter","Noto Sans",Helvetica,Arial,sans-serif);font-size:var(--typography-paragraph-body-font-size,1rem);font-weight:var(--typography-paragraph-body-font-weight,400);letter-spacing:var(--typography-paragraph-body-letter-spacing,normal);line-height:var(--typography-paragraph-body-line-height,1.5rem);position:relative}.TimeField-module_label__kjKyK{display:block;margin-bottom:var(--spacing-6,.375rem)}.TimeField-module_input__Hxjcu{align-items:center;background-clip:padding-box;background-color:var(--color-white,#fff);border:var(--border-solid-border-width,2px) var(--border-solid-border-style,solid) var(--color-gray-500,#8c8c97);border-radius:var(--border-solid-border-radius,7px);box-sizing:border-box;display:inline-flex;font-size:var(--typography-paragraph-body-font-size,1rem);height:48px;line-height:var(--typography-paragraph-body-line-height,1.5rem);padding:0 var(--spacing-sm,.75rem);width:100%}.TimeField-module_input__Hxjcu:focus-within,.TimeField-module_input__Hxjcu:hover{background-color:var(--color-gray-200,#f4f4f5);border-color:var(--color-gray-600,#524e56)}.TimeField-module_input__Hxjcu:focus-within .TimeField-module_focusRing__7hgWG{background:transparent;border-color:var(--color-blue-500,#0168b3);border-radius:var(--border-focus-ring-border-radius,10px);border-style:var(--border-focus-ring-border-style,solid);border-width:var(--border-focus-ring-border-width,2px);inset:-3px;pointer-events:none;position:absolute}.TimeField-module_isDisabled__rpEc8{background-color:transparent;border-color:var(--color-gray-500,#8c8c97);opacity:30%;pointer-events:none}.TimeField-module_error__tK2QY{border:var(--border-solid-border-width,2px) var(--border-solid-border-style,solid) var(--color-red-500,#c93b55)}
@@ -32,7 +32,7 @@ const Slider = /*#__PURE__*/function () {
32
32
  }, /*#__PURE__*/React.createElement("div", {
33
33
  className: styles.labelWrapper
34
34
  }, /*#__PURE__*/React.createElement("div", {
35
- className: "mb-4"
35
+ className: styles.label
36
36
  }, /*#__PURE__*/React.createElement(Label, {
37
37
  htmlFor: id,
38
38
  labelText: labelText,
@@ -1 +1 @@
1
- {"version":3,"file":"Slider.mjs","sources":["../../../src/Slider/Slider.tsx"],"sourcesContent":["import React, { ReactNode, useId } from \"react\"\nimport classnames from \"classnames\"\nimport { FieldGroup } from \"~components/FieldGroup\"\nimport { InputRange, InputRangeProps } from \"~components/Input/InputRange\"\nimport { Label } from \"~components/Label\"\nimport { Text } from \"~components/Text\"\nimport styles from \"./Slider.module.scss\"\n\nexport type SliderFieldProps = {\n id?: string\n labelText: ReactNode\n description?: ReactNode\n labelPosition?: \"inline\" | \"block\"\n variant?: \"default\" | \"prominent\"\n disabled?: boolean\n readOnlyMessage?: ReactNode\n} & Omit<InputRangeProps, \"id\">\n\n/**\n * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896335/Slider Guidance} |\n * {@link https://cultureamp.design/?path=/docs/components-slider--docs Storybook}\n */\nexport const Slider = ({\n id: propsId,\n labelText,\n description,\n labelPosition = \"inline\",\n variant = \"default\",\n disabled,\n readOnlyMessage,\n ...restProps\n}: SliderFieldProps): JSX.Element => {\n const id = propsId ?? useId()\n const descriptionId = `${id}-description`\n\n return (\n <FieldGroup inline>\n <div\n className={classnames(\n styles.wrapper,\n labelPosition === \"inline\" && styles.labelInline\n )}\n >\n <div className={styles.labelWrapper}>\n <div className=\"mb-4\">\n <Label\n htmlFor={id}\n labelText={labelText}\n variant={variant}\n disabled={disabled}\n />\n </div>\n {description && (\n <Text\n variant=\"small\"\n id={descriptionId}\n classNameOverride={\n disabled ? styles.descriptionDisabled : undefined\n }\n >\n {description}\n </Text>\n )}\n </div>\n <div className={styles.inputWrapper}>\n <InputRange\n id={id}\n aria-describedby={descriptionId}\n disabled={disabled}\n {...restProps}\n />\n {readOnlyMessage && (\n <div className={styles.readOnlyMessage}>{readOnlyMessage}</div>\n )}\n </div>\n </div>\n </FieldGroup>\n )\n}\n\nSlider.displayName = \"Slider\"\n"],"names":["Slider","_a","propsId","id","labelText","description","_b","labelPosition","_c","variant","disabled","readOnlyMessage","restProps","__rest","useId","descriptionId","concat","React","createElement","FieldGroup","inline","className","classnames","styles","wrapper","labelInline","labelWrapper","Label","htmlFor","Text","classNameOverride","descriptionDisabled","undefined","inputWrapper","InputRange","__assign","displayName"],"mappings":";;;;;;;;;AAkBA;;;AAGG;AAHH,MAIaA,MAAM;EAAA,MAANA,MAAM,GAAG,SAAAA,CAACC,EASJ,EAAA;IARjB,IAAIC,OAAO,GAAAD,EAAA,CAAAE,EAAA;MACXC,SAAS,eAAA;MACTC,WAAW,GAAAJ,EAAA,CAAAI,WAAA;MACXC,EAAwB,GAAAL,EAAA,CAAAM,aAAA;MAAxBA,aAAa,GAAAD,EAAA,KAAA,KAAA,CAAA,GAAG,QAAQ,GAAAA,EAAA;MACxBE,EAAmB,GAAAP,EAAA,CAAAQ,OAAA;MAAnBA,OAAO,GAAAD,EAAA,KAAA,KAAA,CAAA,GAAG,SAAS,GAAAA,EAAA;MACnBE,QAAQ,GAAAT,EAAA,CAAAS,QAAA;M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L,QAAQ,EAAEA;IAAQ,CAAA,EACdE,SAAS,CACb,CAAA,EACDD,eAAe,mBACdM,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;MAAKG,SAAS,EAAEE,MAAM,CAACZ;KAAkB,EAAAA,eAAe,CAAO,CAChE,CACG,CACF,CACK;EAEjB,CAAC;EAEDX,MAAM,CAACoC,WAAW,GAAG,QAAQ;EAAA,OA1DhBpC,MAAM;AAAA;"}
1
+ {"version":3,"file":"Slider.mjs","sources":["../../../src/Slider/Slider.tsx"],"sourcesContent":["import React, { ReactNode, useId } from \"react\"\nimport classnames from \"classnames\"\nimport { FieldGroup } from \"~components/FieldGroup\"\nimport { InputRange, InputRangeProps } from \"~components/Input/InputRange\"\nimport { Label } from \"~components/Label\"\nimport { Text } from \"~components/Text\"\nimport styles from \"./Slider.module.scss\"\n\nexport type SliderFieldProps = {\n id?: string\n labelText: ReactNode\n description?: ReactNode\n labelPosition?: \"inline\" | \"block\"\n variant?: \"default\" | \"prominent\"\n disabled?: boolean\n readOnlyMessage?: ReactNode\n} & Omit<InputRangeProps, \"id\">\n\n/**\n * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3081896335/Slider Guidance} |\n * {@link https://cultureamp.design/?path=/docs/components-slider--docs Storybook}\n */\nexport const Slider = ({\n id: propsId,\n labelText,\n description,\n labelPosition = \"inline\",\n variant = \"default\",\n disabled,\n readOnlyMessage,\n ...restProps\n}: SliderFieldProps): JSX.Element => {\n const id = propsId ?? useId()\n const descriptionId = `${id}-description`\n\n return (\n <FieldGroup inline>\n <div\n className={classnames(\n styles.wrapper,\n labelPosition === \"inline\" && styles.labelInline\n )}\n >\n <div className={styles.labelWrapper}>\n <div className={styles.label}>\n <Label\n htmlFor={id}\n labelText={labelText}\n variant={variant}\n disabled={disabled}\n />\n </div>\n {description && (\n <Text\n variant=\"small\"\n id={descriptionId}\n classNameOverride={\n disabled ? styles.descriptionDisabled : undefined\n }\n >\n {description}\n </Text>\n )}\n </div>\n <div className={styles.inputWrapper}>\n <InputRange\n id={id}\n aria-describedby={descriptionId}\n disabled={disabled}\n {...restProps}\n />\n {readOnlyMessage && (\n <div className={styles.readOnlyMessage}>{readOnlyMessage}</div>\n )}\n </div>\n </div>\n </FieldGroup>\n )\n}\n\nSlider.displayName = \"Slider\"\n"],"names":["Slider","_a","propsId","id","labelText","description","_b","labelPosition","_c","variant","disabled","readOnlyMessage","restProps","__rest","useId","descriptionId","concat","React","createElement","FieldGroup","inline","className","classnames","styles","wrapper","labelInline","labelWrapper","label","Label","htmlFor","Text","classNameOverride","descriptionDisabled","undefined","inputWrapper","InputRange","__assign","displayName"],"mappings":";;;;;;;;;AAkBA;;;AAGG;AAHH,MAIaA,MAAM;EAAA,MAANA,MAAM,GAAG,SAAAA,CAACC,EASJ,EAAA;IARjB,IAAIC,OAAO,GAAAD,EAAA,CAAAE,EAAA;MACXC,SAAS,eAAA;MACTC,WAAW,GAAAJ,EAAA,CAAAI,WAAA;MACXC,EAAwB,GAAAL,EAAA,CAAAM,aAAA;MAAxBA,aAAa,GAAAD,EAAA,KAAA,KAAA,CAAA,GAAG,QAAQ,GAAAA,EAAA;MACxBE,EAAmB,GAAAP,EAAA,CAAAQ,OAAA;MAAnBA,OAAO,GAAAD,EAAA,KAAA,KAAA,CAAA,GAAG,SAAS,GAAAA,EAAA;MACnBE,QAAQ,GAAAT,EAAA,CAAAS,QAAA;MACRC,eAAe,GAAAV,EAAA,CAAAU,eAAA;MACZC,SAAS,GAAAC,MAAA,CAAAZ,EAAA,EARS,6FAStB,CADa;IAEZ,IAAME,EAAE,GAAGD,OAAO,KAAP,IAAA,IAAAA,OAAO,cAAPA,OAAO,GAAIY,KAAK,EAAE;IAC7B,IAAMC,aAAa,GAAG,EAAG,CAAAC,MAAA,CAAAb,EAAE,iBAAc;IAEzC,oBACEc,KAAA,CAAAC,aAAA,CAACC,UAAU,EAAA;MAACC,MAAM,EAAA;IAAA,CAAA,eAChBH,KAAA,CAAAC,aAAA,C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