@kaizen/components 1.40.4 → 1.40.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/DatePicker/DatePicker.cjs +1 -0
- package/dist/cjs/DatePicker/DatePicker.cjs.map +1 -1
- package/dist/cjs/Slider/Slider.cjs +1 -1
- package/dist/cjs/Slider/Slider.cjs.map +1 -1
- package/dist/cjs/Slider/Slider.module.scss.cjs +1 -0
- package/dist/cjs/Slider/Slider.module.scss.cjs.map +1 -1
- package/dist/cjs/Tile/MultiActionTile/MultiActionTile.cjs +1 -1
- package/dist/cjs/Tile/MultiActionTile/MultiActionTile.cjs.map +1 -1
- package/dist/cjs/Tile/MultiActionTile/MultiActionTile.module.scss.cjs +2 -1
- package/dist/cjs/Tile/MultiActionTile/MultiActionTile.module.scss.cjs.map +1 -1
- package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs +1 -1
- package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.cjs.map +1 -1
- package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.module.scss.cjs +1 -0
- package/dist/cjs/Tile/subcomponents/GenericTile/GenericTile.module.scss.cjs.map +1 -1
- package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +2 -3
- package/dist/cjs/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs.map +1 -1
- package/dist/cjs/Workflow/subcomponents/Header/components/Titles/Titles.cjs +2 -3
- package/dist/cjs/Workflow/subcomponents/Header/components/Titles/Titles.cjs.map +1 -1
- package/dist/cjs/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs +2 -3
- package/dist/cjs/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.cjs.map +1 -1
- package/dist/cjs/__future__/Workflow/subcomponents/Header/components/Titles/Titles.cjs +2 -3
- package/dist/cjs/__future__/Workflow/subcomponents/Header/components/Titles/Titles.cjs.map +1 -1
- package/dist/cjs/index.css +5 -5
- package/dist/esm/DatePicker/DatePicker.mjs +1 -0
- package/dist/esm/DatePicker/DatePicker.mjs.map +1 -1
- package/dist/esm/Slider/Slider.mjs +1 -1
- package/dist/esm/Slider/Slider.mjs.map +1 -1
- package/dist/esm/Slider/Slider.module.scss.mjs +1 -0
- package/dist/esm/Slider/Slider.module.scss.mjs.map +1 -1
- package/dist/esm/Tile/MultiActionTile/MultiActionTile.mjs +1 -1
- package/dist/esm/Tile/MultiActionTile/MultiActionTile.mjs.map +1 -1
- package/dist/esm/Tile/MultiActionTile/MultiActionTile.module.scss.mjs +2 -1
- package/dist/esm/Tile/MultiActionTile/MultiActionTile.module.scss.mjs.map +1 -1
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs +1 -1
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.mjs.map +1 -1
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.module.scss.mjs +1 -0
- package/dist/esm/Tile/subcomponents/GenericTile/GenericTile.module.scss.mjs.map +1 -1
- package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +2 -3
- package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs.map +1 -1
- package/dist/esm/Workflow/subcomponents/Header/components/Titles/Titles.mjs +2 -3
- package/dist/esm/Workflow/subcomponents/Header/components/Titles/Titles.mjs.map +1 -1
- package/dist/esm/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs +2 -3
- package/dist/esm/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs.map +1 -1
- package/dist/esm/__future__/Workflow/subcomponents/Header/components/Titles/Titles.mjs +2 -3
- package/dist/esm/__future__/Workflow/subcomponents/Header/components/Titles/Titles.mjs.map +1 -1
- package/dist/esm/index.css +6 -6
- package/dist/styles.css +1 -1
- package/locales/cy.json +2 -2
- package/package.json +6 -6
- package/src/BrandMoment/_docs/ExampleHeaders.scss +1 -0
- package/src/BrandMoment/_docs/ExampleHeaders.tsx +6 -8
- package/src/DatePicker/DatePicker.tsx +1 -0
- package/src/Filter/FilterMultiSelect/_docs/FilterMultiSelect.mdx +35 -0
- package/src/MultiSelect/_docs/MultiSelect.mdx +1 -3
- package/src/Slider/Slider.module.scss +4 -0
- package/src/Slider/Slider.tsx +1 -1
- package/src/Tile/MultiActionTile/MultiActionTile.module.scss +6 -0
- package/src/Tile/MultiActionTile/MultiActionTile.tsx +1 -1
- package/src/Tile/subcomponents/GenericTile/GenericTile.module.scss +4 -0
- package/src/Tile/subcomponents/GenericTile/GenericTile.tsx +1 -1
- package/src/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +3 -2
- package/src/Workflow/subcomponents/Header/components/Titles/Titles.tsx +2 -1
- package/src/__future__/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.tsx +3 -2
- package/src/__future__/Workflow/subcomponents/Header/components/Titles/Titles.tsx +2 -1
package/dist/cjs/index.css
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
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}
|
|
5
4
|
.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)}}
|
|
5
|
+
.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}
|
|
6
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}}
|
|
7
|
+
.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)}
|
|
7
8
|
.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}
|
|
8
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}}
|
|
9
|
-
.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)}
|
|
10
10
|
.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}}
|
|
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}
|
|
@@ -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)}
|
|
@@ -183,6 +183,7 @@ const DatePicker = /*#__PURE__*/function () {
|
|
|
183
183
|
var calendarId = "".concat(id, "-calendar-dialog");
|
|
184
184
|
return /*#__PURE__*/React.createElement(FocusOn, {
|
|
185
185
|
scrollLock: false,
|
|
186
|
+
returnFocus: false,
|
|
186
187
|
onDeactivation: handleReturnFocus,
|
|
187
188
|
onClickOutside: function () {
|
|
188
189
|
return setIsOpen(false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DatePicker.mjs","sources":["../../../src/DatePicker/DatePicker.tsx"],"sourcesContent":["import React, { RefObject, useEffect, useId, useRef, useState } from \"react\"\nimport { DayClickEventHandler } from \"react-day-picker\"\nimport { FocusOn } from \"react-focus-on\"\nimport {\n CalendarSingle,\n CalendarSingleElement,\n CalendarSingleProps,\n DisabledDayMatchers,\n calculateDisabledDays,\n formatDateAsNumeral,\n formatDateAsText,\n isDisabledDate,\n isInvalidDate,\n isSelectingDayInCalendar,\n parseDateAsTextOrNumeral,\n setFocusInCalendar,\n} from \"~components/Calendar\"\nimport { CalendarPopover } from \"~components/Calendar/CalendarPopover\"\nimport {\n DateInputField,\n DateInputFieldProps,\n} from \"./subcomponents/DateInputField\"\nimport { ValidationResponse } from \"./types\"\nimport { DatePickerSupportedLocales, getLocale } from \"./utils/getLocale\"\nimport { validateDate } from \"./utils/validateDate\"\n\ntype OmittedDateInputFieldProps =\n | \"onClick\"\n | \"onFocus\"\n | \"onChange\"\n | \"onBlur\"\n | \"onButtonClick\"\n | \"value\"\n | \"locale\"\n | \"id\"\n\nexport type DatePickerProps = {\n id?: string\n buttonRef?: RefObject<HTMLButtonElement>\n onInputClick?: DateInputFieldProps[\"onClick\"]\n onInputFocus?: DateInputFieldProps[\"onFocus\"]\n onInputChange?: DateInputFieldProps[\"onChange\"]\n onInputBlur?: DateInputFieldProps[\"onBlur\"]\n onButtonClick?: DateInputFieldProps[\"onButtonClick\"]\n locale?: DatePickerSupportedLocales\n /**\n * Accepts a DayOfWeek value to start the week on that day. By default,\n * it's set to Monday.\n */\n weekStartsOn?: CalendarSingleProps[\"weekStartsOn\"]\n /**\n * Accepts a date to display that month on first render.\n */\n defaultMonth?: CalendarSingleProps[\"defaultMonth\"]\n /**\n * The date passed in from the consumer that renders in the input and calendar.\n */\n selectedDay: Date | undefined\n /**\n * Callback when date is updated either by the calendar picker or by typing and bluring.\n * Date will return as undefined if invalid or disabled.\n */\n onDayChange: (date: Date | undefined) => void\n /**\n * Callback when a date is selected. Utilises internal validation if not set.\n */\n onValidate?: (validationResponse: ValidationResponse) => void\n /**\n * Updates the styling of the validation FieldMessage.\n */\n status?: DateInputFieldProps[\"status\"] | undefined\n /**\n * A descriptive message for the 'status' states.\n */\n validationMessage?: DateInputFieldProps[\"validationMessage\"] | undefined\n} & DisabledDayMatchers &\n Omit<DateInputFieldProps, OmittedDateInputFieldProps>\n\n/**\n * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082061174/Date+Picker Guidance} |\n * {@link https://cultureamp.design/?path=/docs/components-date-controls-datepicker--docs Storybook}\n */\nexport const DatePicker = ({\n id: propsId,\n buttonRef: propsButtonRef = useRef<HTMLButtonElement>(null),\n locale: propsLocale = \"en-AU\",\n disabledDates,\n disabledDaysOfWeek,\n disabledRange,\n disabledBeforeAfter,\n disabledBefore,\n disabledAfter,\n weekStartsOn,\n defaultMonth,\n selectedDay,\n status,\n validationMessage,\n onInputClick,\n onInputFocus,\n onInputChange,\n onInputBlur,\n onButtonClick,\n onDayChange,\n onValidate,\n ...restDateInputFieldProps\n}: DatePickerProps): JSX.Element => {\n const reactId = useId()\n const id = propsId ?? reactId\n\n const containerRef = useRef<HTMLInputElement>(null)\n const inputRef = useRef<HTMLInputElement>(null)\n const buttonRef = useRef<HTMLButtonElement>(propsButtonRef?.current || null)\n const dateInputRefs = useRef({\n inputRef,\n buttonRef,\n })\n const [inputValue, setInputValue] = useState<string>(\"\")\n const [isOpen, setIsOpen] = useState(false)\n const [lastTrigger, setLastTrigger] = useState<\n \"inputFocus\" | \"inputKeydown\" | \"calendarButton\"\n >()\n const [inbuiltStatus, setInbuiltStatus] = useState<\n DateInputFieldProps[\"status\"] | undefined\n >()\n const [inbuiltValidationMessage, setInbuiltValidationMessage] = useState<\n string | undefined\n >()\n\n const shouldUseInbuiltValidation = onValidate === undefined\n\n const locale = getLocale(propsLocale)\n\n const disabledDays = calculateDisabledDays({\n disabledDates,\n disabledDaysOfWeek,\n disabledRange,\n disabledBeforeAfter,\n disabledBefore,\n disabledAfter,\n })\n\n const handleValidation = (validationResponse: ValidationResponse): void => {\n if (shouldUseInbuiltValidation) {\n setInbuiltStatus(validationResponse.status)\n setInbuiltValidationMessage(validationResponse.validationMessage)\n } else {\n onValidate(validationResponse)\n }\n }\n\n const handleDayChange = (\n date: Date | undefined,\n newInputValue?: string\n ): void => {\n const { validationResponse, newDate } = validateDate({\n date,\n inputValue: newInputValue,\n disabledDays,\n })\n handleValidation(validationResponse)\n onDayChange(newDate)\n }\n\n const handleCalendarDayChange: DayClickEventHandler = date => {\n if (!isDisabledDate(date, disabledDays)) {\n const newInputValue =\n lastTrigger === \"calendarButton\"\n ? formatDateAsText(date, disabledDays, locale)\n : formatDateAsNumeral(date, locale)\n\n setInputValue(newInputValue)\n handleDayChange(date)\n setIsOpen(false)\n }\n }\n\n const handleInputClick: React.MouseEventHandler<HTMLInputElement> = e => {\n setIsOpen(true)\n onInputClick?.(e)\n }\n\n const handleInputFocus: React.FocusEventHandler<HTMLInputElement> = e => {\n setLastTrigger(\"inputFocus\")\n if (selectedDay) {\n const newInputValue = formatDateAsNumeral(selectedDay, locale)\n setInputValue(newInputValue)\n }\n onInputFocus?.(e)\n }\n\n const handleInputChange: React.ChangeEventHandler<HTMLInputElement> = e => {\n setInputValue(e.target.value)\n onInputChange?.(e)\n }\n\n const handleInputBlur: React.FocusEventHandler<HTMLInputElement> = e => {\n if (isSelectingDayInCalendar(e.relatedTarget)) return\n\n if (inputValue !== \"\") {\n const parsedDate = parseDateAsTextOrNumeral(inputValue, locale)\n\n if (!isInvalidDate(parsedDate)) {\n setInputValue(formatDateAsText(parsedDate, disabledDays, locale))\n }\n\n handleDayChange(parsedDate, inputValue)\n onInputBlur?.(e)\n return\n }\n\n handleDayChange(undefined, inputValue)\n onInputBlur?.(e)\n }\n\n const handleKeyDown: React.KeyboardEventHandler<HTMLInputElement> = e => {\n if (e.key === \"Enter\") {\n setIsOpen(false)\n const parsedDate = parseDateAsTextOrNumeral(inputValue, locale)\n handleDayChange(parsedDate, e.currentTarget.value)\n }\n\n if (e.key === \"ArrowDown\" || (e.key === \"ArrowDown\" && e.altKey === true)) {\n e.preventDefault()\n setIsOpen(true)\n setLastTrigger(\"inputKeydown\")\n }\n }\n\n const handleButtonClick: React.MouseEventHandler<HTMLButtonElement> = e => {\n setIsOpen(!isOpen)\n setLastTrigger(\"calendarButton\")\n onButtonClick?.(e)\n }\n\n const handleCalendarMount = (\n calendarElement: CalendarSingleElement\n ): void => {\n if (lastTrigger === \"inputFocus\") return\n setFocusInCalendar(calendarElement, selectedDay)\n }\n\n const handleReturnFocus = (): void => {\n if (lastTrigger === \"inputKeydown\" || lastTrigger === \"inputFocus\") {\n return inputRef.current?.focus()\n }\n buttonRef.current?.focus()\n }\n\n useEffect(() => {\n if (selectedDay) {\n setInputValue(formatDateAsText(selectedDay, disabledDays, locale))\n\n const formattedDate = formatDateAsNumeral(selectedDay, locale)\n const { validationResponse } = validateDate({\n date: selectedDay,\n inputValue: formattedDate,\n disabledDays,\n })\n\n if (!validationResponse.isValidDate && !validationResponse.isEmpty) {\n handleValidation(validationResponse)\n }\n }\n }, [selectedDay])\n\n const calendarId = `${id}-calendar-dialog`\n\n return (\n <FocusOn\n scrollLock={false}\n onDeactivation={handleReturnFocus}\n onClickOutside={(): void => setIsOpen(false)}\n onEscapeKey={(): void => setIsOpen(false)}\n enabled={isOpen}\n >\n <div ref={containerRef}>\n <DateInputField\n ref={dateInputRefs}\n id={id}\n role=\"combobox\"\n aria-haspopup=\"dialog\"\n aria-expanded={isOpen}\n aria-controls={calendarId}\n value={inputValue}\n locale={locale}\n onButtonClick={handleButtonClick}\n onClick={handleInputClick}\n onFocus={handleInputFocus}\n onChange={handleInputChange}\n onBlur={handleInputBlur}\n onKeyDown={handleKeyDown}\n status={\n status !== undefined || !shouldUseInbuiltValidation\n ? status\n : inbuiltStatus\n }\n validationMessage={\n validationMessage !== undefined || !shouldUseInbuiltValidation\n ? validationMessage\n : inbuiltValidationMessage\n }\n {...restDateInputFieldProps}\n />\n </div>\n\n {isOpen && (\n <CalendarPopover referenceElement={containerRef.current}>\n <CalendarSingle\n id={calendarId}\n selected={selectedDay}\n defaultMonth={defaultMonth}\n weekStartsOn={weekStartsOn}\n disabled={disabledDays}\n locale={locale}\n onDayClick={handleCalendarDayChange}\n onMount={handleCalendarMount}\n />\n </CalendarPopover>\n )}\n </FocusOn>\n )\n}\n\nDatePicker.displayName = \"DatePicker\"\n"],"names":["DatePicker","_a","propsId","id","_b","buttonRef","propsButtonRef","useRef","_c","locale","propsLocale","disabledDates","disabledDaysOfWeek","disabledRange","disabledBeforeAfter","disabledBefore","disabledAfter","weekStartsOn","defaultMonth","selectedDay","status","validationMessage","onInputClick","onInputFocus","onInputChange","onInputBlur","onButtonClick","onDayChange","onValidate","restDateInputFieldProps","__rest","reactId","useId","containerRef","inputRef","current","dateInputRefs","_d","useState","inputValue","setInputValue","_e","isOpen","setIsOpen","_f","lastTrigger","setLastTrigger","_g","inbuiltStatus","setInbuiltStatus","_h","inbuiltValidationMessage","setInbuiltValidationMessage","shouldUseInbuiltValidation","undefined","getLocale","disabledDays","calculateDisabledDays","handleValidation","validationResponse","handleDayChange","date","newInputValue","validateDate","newDate","handleCalendarDayChange","isDisabledDate","formatDateAsText","formatDateAsNumeral","handleInputClick","e","handleInputFocus","handleInputChange","target","value","handleInputBlur","isSelectingDayInCalendar","relatedTarget","parsedDate","parseDateAsTextOrNumeral","isInvalidDate","handleKeyDown","key","currentTarget","altKey","preventDefault","handleButtonClick","handleCalendarMount","calendarElement","setFocusInCalendar","handleReturnFocus","focus","useEffect","formattedDate","isValidDate","isEmpty","calendarId","concat","React","createElement","FocusOn","scrollLock","onDeactivation","onClickOutside","onEscapeKey","enabled","ref","DateInputField","__assign","role","onClick","onFocus","onChange","onBlur","onKeyDown","CalendarPopover","referenceElement","CalendarSingle","selected","disabled","onDayClick","onMount","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;AA8EA;;;AAGG;AAHH,MAIaA,UAAU;EAAA,MAAVA,UAAU,GAAG,SAAAA,CAACC,EAuBT,EAAA;IAtBhB,IAAIC,OAAO,GAAAD,EAAA,CAAAE,EAAA;MACXC,EAA2D,GAAAH,EAAA,CAAAI,SAAA;MAAhDC,cAAc,GAAGF,EAAA,KAAA,KA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E,MAAM;MACN,eAAA,EAAAsD,UAAU;MACzBtB,KAAK,EAAEnC,UAAU;MACjB9B,MAAM,EAAEA,MAAM;MACdiB,aAAa,EAAE4D,iBAAiB;MAChCwB,OAAO,EAAEzC,gBAAgB;MACzB0C,OAAO,EAAExC,gBAAgB;MACzByC,QAAQ,EAAExC,iBAAiB;MAC3ByC,MAAM,EAAEtC,eAAe;MACvBuC,SAAS,EAAEjC,aAAa;MACxB7D,MAAM,EACJA,MAAM,KAAKkC,SAAS,IAAI,CAACD,0BAA0B,GAC/CjC,MAAM,GACN4B,aAAa;MAEnB3B,iBAAiB,EACfA,iBAAiB,KAAKiC,SAAS,IAAI,CAACD,0BAA0B,GAC1DhC,iBAAiB,GACjB8B;IAEF,CAAA,EAAAtB,uBAAuB,EAC3B,CACE,EAELa,MAAM,mBACLwD,KAAC,CAAAC,aAAA,CAAAgB,eAAe;MAACC,gBAAgB,EAAEnF,YAAY,CAACE;IAAO,CAAA,eACrD+D,KAAA,CAAAC,aAAA,CAACkB,cAAc,EACb;MAAAlH,EAAE,EAAE6F,UAAU;MACdsB,QAAQ,EAAEnG,WAAW;MACrBD,YAAY,EAAEA,YAAY;MAC1BD,YAAY,EAAEA,YAAY;MAC1BsG,QAAQ,EAAE/D,YAAY;MACtB/C,MAAM,EAAEA,MAAM;MACd+G,UAAU,EAAEvD,uBAAuB;MACnCwD,OAAO,EAAElC;IAAmB,CAAA,CAC5B,CACc,CACnB,CACO;EAEd,CAAC;EAEDvF,UAAU,CAAC0H,WAAW,GAAG,YAAY;EAAA,OAjPxB1H,UAAU;AAAA;"}
|
|
1
|
+
{"version":3,"file":"DatePicker.mjs","sources":["../../../src/DatePicker/DatePicker.tsx"],"sourcesContent":["import React, { RefObject, useEffect, useId, useRef, useState } from \"react\"\nimport { DayClickEventHandler } from \"react-day-picker\"\nimport { FocusOn } from \"react-focus-on\"\nimport {\n CalendarSingle,\n CalendarSingleElement,\n CalendarSingleProps,\n DisabledDayMatchers,\n calculateDisabledDays,\n formatDateAsNumeral,\n formatDateAsText,\n isDisabledDate,\n isInvalidDate,\n isSelectingDayInCalendar,\n parseDateAsTextOrNumeral,\n setFocusInCalendar,\n} from \"~components/Calendar\"\nimport { CalendarPopover } from \"~components/Calendar/CalendarPopover\"\nimport {\n DateInputField,\n DateInputFieldProps,\n} from \"./subcomponents/DateInputField\"\nimport { ValidationResponse } from \"./types\"\nimport { DatePickerSupportedLocales, getLocale } from \"./utils/getLocale\"\nimport { validateDate } from \"./utils/validateDate\"\n\ntype OmittedDateInputFieldProps =\n | \"onClick\"\n | \"onFocus\"\n | \"onChange\"\n | \"onBlur\"\n | \"onButtonClick\"\n | \"value\"\n | \"locale\"\n | \"id\"\n\nexport type DatePickerProps = {\n id?: string\n buttonRef?: RefObject<HTMLButtonElement>\n onInputClick?: DateInputFieldProps[\"onClick\"]\n onInputFocus?: DateInputFieldProps[\"onFocus\"]\n onInputChange?: DateInputFieldProps[\"onChange\"]\n onInputBlur?: DateInputFieldProps[\"onBlur\"]\n onButtonClick?: DateInputFieldProps[\"onButtonClick\"]\n locale?: DatePickerSupportedLocales\n /**\n * Accepts a DayOfWeek value to start the week on that day. By default,\n * it's set to Monday.\n */\n weekStartsOn?: CalendarSingleProps[\"weekStartsOn\"]\n /**\n * Accepts a date to display that month on first render.\n */\n defaultMonth?: CalendarSingleProps[\"defaultMonth\"]\n /**\n * The date passed in from the consumer that renders in the input and calendar.\n */\n selectedDay: Date | undefined\n /**\n * Callback when date is updated either by the calendar picker or by typing and bluring.\n * Date will return as undefined if invalid or disabled.\n */\n onDayChange: (date: Date | undefined) => void\n /**\n * Callback when a date is selected. Utilises internal validation if not set.\n */\n onValidate?: (validationResponse: ValidationResponse) => void\n /**\n * Updates the styling of the validation FieldMessage.\n */\n status?: DateInputFieldProps[\"status\"] | undefined\n /**\n * A descriptive message for the 'status' states.\n */\n validationMessage?: DateInputFieldProps[\"validationMessage\"] | undefined\n} & DisabledDayMatchers &\n Omit<DateInputFieldProps, OmittedDateInputFieldProps>\n\n/**\n * {@link https://cultureamp.atlassian.net/wiki/spaces/DesignSystem/pages/3082061174/Date+Picker Guidance} |\n * {@link https://cultureamp.design/?path=/docs/components-date-controls-datepicker--docs Storybook}\n */\nexport const DatePicker = ({\n id: propsId,\n buttonRef: propsButtonRef = useRef<HTMLButtonElement>(null),\n locale: propsLocale = \"en-AU\",\n disabledDates,\n disabledDaysOfWeek,\n disabledRange,\n disabledBeforeAfter,\n disabledBefore,\n disabledAfter,\n weekStartsOn,\n defaultMonth,\n selectedDay,\n status,\n validationMessage,\n onInputClick,\n onInputFocus,\n onInputChange,\n onInputBlur,\n onButtonClick,\n onDayChange,\n onValidate,\n ...restDateInputFieldProps\n}: DatePickerProps): JSX.Element => {\n const reactId = useId()\n const id = propsId ?? reactId\n\n const containerRef = useRef<HTMLInputElement>(null)\n const inputRef = useRef<HTMLInputElement>(null)\n const buttonRef = useRef<HTMLButtonElement>(propsButtonRef?.current || null)\n const dateInputRefs = useRef({\n inputRef,\n buttonRef,\n })\n const [inputValue, setInputValue] = useState<string>(\"\")\n const [isOpen, setIsOpen] = useState(false)\n const [lastTrigger, setLastTrigger] = useState<\n \"inputFocus\" | \"inputKeydown\" | \"calendarButton\"\n >()\n const [inbuiltStatus, setInbuiltStatus] = useState<\n DateInputFieldProps[\"status\"] | undefined\n >()\n const [inbuiltValidationMessage, setInbuiltValidationMessage] = useState<\n string | undefined\n >()\n\n const shouldUseInbuiltValidation = onValidate === undefined\n\n const locale = getLocale(propsLocale)\n\n const disabledDays = calculateDisabledDays({\n disabledDates,\n disabledDaysOfWeek,\n disabledRange,\n disabledBeforeAfter,\n disabledBefore,\n disabledAfter,\n })\n\n const handleValidation = (validationResponse: ValidationResponse): void => {\n if (shouldUseInbuiltValidation) {\n setInbuiltStatus(validationResponse.status)\n setInbuiltValidationMessage(validationResponse.validationMessage)\n } else {\n onValidate(validationResponse)\n }\n }\n\n const handleDayChange = (\n date: Date | undefined,\n newInputValue?: string\n ): void => {\n const { validationResponse, newDate } = validateDate({\n date,\n inputValue: newInputValue,\n disabledDays,\n })\n handleValidation(validationResponse)\n onDayChange(newDate)\n }\n\n const handleCalendarDayChange: DayClickEventHandler = date => {\n if (!isDisabledDate(date, disabledDays)) {\n const newInputValue =\n lastTrigger === \"calendarButton\"\n ? formatDateAsText(date, disabledDays, locale)\n : formatDateAsNumeral(date, locale)\n\n setInputValue(newInputValue)\n handleDayChange(date)\n setIsOpen(false)\n }\n }\n\n const handleInputClick: React.MouseEventHandler<HTMLInputElement> = e => {\n setIsOpen(true)\n onInputClick?.(e)\n }\n\n const handleInputFocus: React.FocusEventHandler<HTMLInputElement> = e => {\n setLastTrigger(\"inputFocus\")\n if (selectedDay) {\n const newInputValue = formatDateAsNumeral(selectedDay, locale)\n setInputValue(newInputValue)\n }\n onInputFocus?.(e)\n }\n\n const handleInputChange: React.ChangeEventHandler<HTMLInputElement> = e => {\n setInputValue(e.target.value)\n onInputChange?.(e)\n }\n\n const handleInputBlur: React.FocusEventHandler<HTMLInputElement> = e => {\n if (isSelectingDayInCalendar(e.relatedTarget)) return\n\n if (inputValue !== \"\") {\n const parsedDate = parseDateAsTextOrNumeral(inputValue, locale)\n\n if (!isInvalidDate(parsedDate)) {\n setInputValue(formatDateAsText(parsedDate, disabledDays, locale))\n }\n\n handleDayChange(parsedDate, inputValue)\n onInputBlur?.(e)\n return\n }\n\n handleDayChange(undefined, inputValue)\n onInputBlur?.(e)\n }\n\n const handleKeyDown: React.KeyboardEventHandler<HTMLInputElement> = e => {\n if (e.key === \"Enter\") {\n setIsOpen(false)\n const parsedDate = parseDateAsTextOrNumeral(inputValue, locale)\n handleDayChange(parsedDate, e.currentTarget.value)\n }\n\n if (e.key === \"ArrowDown\" || (e.key === \"ArrowDown\" && e.altKey === true)) {\n e.preventDefault()\n setIsOpen(true)\n setLastTrigger(\"inputKeydown\")\n }\n }\n\n const handleButtonClick: React.MouseEventHandler<HTMLButtonElement> = e => {\n setIsOpen(!isOpen)\n setLastTrigger(\"calendarButton\")\n onButtonClick?.(e)\n }\n\n const handleCalendarMount = (\n calendarElement: CalendarSingleElement\n ): void => {\n if (lastTrigger === \"inputFocus\") return\n setFocusInCalendar(calendarElement, selectedDay)\n }\n\n const handleReturnFocus = (): void => {\n if (lastTrigger === \"inputKeydown\" || lastTrigger === \"inputFocus\") {\n return inputRef.current?.focus()\n }\n buttonRef.current?.focus()\n }\n\n useEffect(() => {\n if (selectedDay) {\n setInputValue(formatDateAsText(selectedDay, disabledDays, locale))\n\n const formattedDate = formatDateAsNumeral(selectedDay, locale)\n const { validationResponse } = validateDate({\n date: selectedDay,\n inputValue: formattedDate,\n disabledDays,\n })\n\n if (!validationResponse.isValidDate && !validationResponse.isEmpty) {\n handleValidation(validationResponse)\n }\n }\n }, [selectedDay])\n\n const calendarId = `${id}-calendar-dialog`\n\n return (\n <FocusOn\n scrollLock={false}\n returnFocus={false}\n onDeactivation={handleReturnFocus}\n onClickOutside={(): void => setIsOpen(false)}\n onEscapeKey={(): void => setIsOpen(false)}\n enabled={isOpen}\n >\n <div ref={containerRef}>\n <DateInputField\n ref={dateInputRefs}\n id={id}\n role=\"combobox\"\n aria-haspopup=\"dialog\"\n aria-expanded={isOpen}\n aria-controls={calendarId}\n value={inputValue}\n locale={locale}\n onButtonClick={handleButtonClick}\n onClick={handleInputClick}\n onFocus={handleInputFocus}\n onChange={handleInputChange}\n onBlur={handleInputBlur}\n onKeyDown={handleKeyDown}\n status={\n status !== undefined || !shouldUseInbuiltValidation\n ? status\n : inbuiltStatus\n }\n validationMessage={\n validationMessage !== undefined || !shouldUseInbuiltValidation\n ? validationMessage\n : inbuiltValidationMessage\n }\n {...restDateInputFieldProps}\n />\n </div>\n\n {isOpen && (\n <CalendarPopover referenceElement={containerRef.current}>\n <CalendarSingle\n id={calendarId}\n selected={selectedDay}\n defaultMonth={defaultMonth}\n weekStartsOn={weekStartsOn}\n disabled={disabledDays}\n locale={locale}\n onDayClick={handleCalendarDayChange}\n onMount={handleCalendarMount}\n />\n </CalendarPopover>\n )}\n </FocusOn>\n )\n}\n\nDatePicker.displayName = \"DatePicker\"\n"],"names":["DatePicker","_a","propsId","id","_b","buttonRef","propsButtonRef","useRef","_c","locale","propsLocale","disabledDates","disabledDaysOfWeek","disabledRange","disabledBeforeAfter","disabledBefore","disabledAfter","weekStartsOn","defaultMonth","selectedDay","status","validationMessage","onInputClick","onInputFocus","onInputChange","onInputBlur","onButtonClick","onDayChange","onValidate","restDateInputFieldProps","__rest","reactId","useId","containerRef","inputRef","current","dateInputRefs","_d","useState","inputValue","setInputValue","_e","isOpen","setIsOpen","_f","lastTrigger","setLastTrigger","_g","inbuiltStatus","setInbuiltStatus","_h","inbuiltValidationMessage","setInbuiltValidationMessage","shouldUseInbuiltValidation","undefined","getLocale","disabledDays","calculateDisabledDays","handleValidation","validationResponse","handleDayChange","date","newInputValue","validateDate","newDate","handleCalendarDayChange","isDisabledDate","formatDateAsText","formatDateAsNumeral","handleInputClick","e","handleInputFocus","handleInputChange","target","value","handleInputBlur","isSelectingDayInCalendar","relatedTarget","parsedDate","parseDateAsTextOrNumeral","isInvalidDate","handleKeyDown","key","currentTarget","altKey","preventDefault","handleButtonClick","handleCalendarMount","calendarElement","setFocusInCalendar","handleReturnFocus","focus","useEffect","formattedDate","isValidDate","isEmpty","calendarId","concat","React","createElement","FocusOn","scrollLock","returnFocus","onDeactivation","onClickOutside","onEscapeKey","enabled","ref","DateInputField","__assign","role","onClick","onFocus","onChange","onBlur","onKeyDown","CalendarPopover","referenceElement","CalendarSingle","selected","disabled","onDayClick","onMount","displayName"],"mappings":";;;;;;;;;;;;;;;;;;;AA8EA;;;AAGG;AAHH,MAIaA,UAAU;EAAA,MAAVA,UAAU,GAAG,SAAAA,CAACC,EAuBT,EAAA;IAtBhB,IAAIC,OAAO,GAAAD,EAAA,CAAAE,EAAA;MACXC,EAA2D,GAAAH,EAAA,CAAAI,SAAA;MAAhDC,cAAc,GAAGF,EAAA,KAAA,KAAA,CAAA,GAAAG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EAAApE,MAAM;MACN,eAAA,EAAAsD,UAAU;MACzBtB,KAAK,EAAEnC,UAAU;MACjB9B,MAAM,EAAEA,MAAM;MACdiB,aAAa,EAAE4D,iBAAiB;MAChCyB,OAAO,EAAE1C,gBAAgB;MACzB2C,OAAO,EAAEzC,gBAAgB;MACzB0C,QAAQ,EAAEzC,iBAAiB;MAC3B0C,MAAM,EAAEvC,eAAe;MACvBwC,SAAS,EAAElC,aAAa;MACxB7D,MAAM,EACJA,MAAM,KAAKkC,SAAS,IAAI,CAACD,0BAA0B,GAC/CjC,MAAM,GACN4B,aAAa;MAEnB3B,iBAAiB,EACfA,iBAAiB,KAAKiC,SAAS,IAAI,CAACD,0BAA0B,GAC1DhC,iBAAiB,GACjB8B;IAEF,CAAA,EAAAtB,uBAAuB,EAC3B,CACE,EAELa,MAAM,mBACLwD,KAAC,CAAAC,aAAA,CAAAiB,eAAe;MAACC,gBAAgB,EAAEpF,YAAY,CAACE;IAAO,CAAA,eACrD+D,KAAA,CAAAC,aAAA,CAACmB,cAAc,EACb;MAAAnH,EAAE,EAAE6F,UAAU;MACduB,QAAQ,EAAEpG,WAAW;MACrBD,YAAY,EAAEA,YAAY;MAC1BD,YAAY,EAAEA,YAAY;MAC1BuG,QAAQ,EAAEhE,YAAY;MACtB/C,MAAM,EAAEA,MAAM;MACdgH,UAAU,EAAExD,uBAAuB;MACnCyD,OAAO,EAAEnC;IAAmB,CAAA,CAC5B,CACc,CACnB,CACO;EAEd,CAAC;EAEDvF,UAAU,CAAC2H,WAAW,GAAG,YAAY;EAAA,OAlPxB3H,UAAU;AAAA;"}
|
|
@@ -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:
|
|
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
|
|
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,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AGlD5B,WAAW,CACP,CACR,CACG,eACNY,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;MAAKG,SAAS,EAAEE,MAAM,CAACW;IAAY,CAAA,eACjCjB,KAAA,CAAAC,aAAA,CAACiB,UAAU,EAAAC,QAAA,CAAA;MACTjC,EAAE,EAAEA,EAAE;MAAA,kBAAA,EACYY,aAAa;MAC/BL,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,CAACqC,WAAW,GAAG,QAAQ;EAAA,OA1DhBrC,MAAM;AAAA;"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
var styles = {
|
|
2
2
|
"wrapper": "Slider-module_wrapper__zVX6g",
|
|
3
3
|
"labelWrapper": "Slider-module_labelWrapper__WuUIw",
|
|
4
|
+
"label": "Slider-module_label__CfIjh",
|
|
4
5
|
"labelInline": "Slider-module_labelInline__zjINd",
|
|
5
6
|
"inputWrapper": "Slider-module_inputWrapper__n16yj",
|
|
6
7
|
"descriptionDisabled": "Slider-module_descriptionDisabled__8GwiS",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Slider.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"Slider.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;"}
|
|
@@ -7,7 +7,7 @@ var renderActions = function (primaryAction, secondaryAction) {
|
|
|
7
7
|
return /*#__PURE__*/React.createElement("div", {
|
|
8
8
|
className: styles.actions
|
|
9
9
|
}, secondaryAction && ( /*#__PURE__*/React.createElement("div", {
|
|
10
|
-
className:
|
|
10
|
+
className: styles.secondaryAction
|
|
11
11
|
}, /*#__PURE__*/React.createElement(Action, {
|
|
12
12
|
action: secondaryAction,
|
|
13
13
|
secondary: true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiActionTile.mjs","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
|
|
1
|
+
{"version":3,"file":"MultiActionTile.mjs","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,oBAChBC,KAAK,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAAC,SAAS,EAAEC,MAAM,CAACC;EAAO,CAAA,EAC3BL,eAAe,mBACdC,KAAA,CAAAC,aAAA,CAAA,KAAA,EAAA;IAAKC,SAAS,EAAEC,MAAM,CAACJ;EAAe,CAAA,eACpCC,KAAC,CAAAC,aAAA,CAAAI,MAAM;IAACC,MAAM,EAAEP,eAAe;IAAEQ,SAAS,EAAG;EAAA,CAAA,CAAA,CACzC,CACP,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,MAAA,CAAAH,EAAA,EAAA,CAAA,UAAA,EAAA,eAAA,EAAA,iBAAA,CAK/B,CADa;IAC2B,oBACvCT,KAAC,CAAAC,aAAA,CAAAY,WAAW;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,5 +1,6 @@
|
|
|
1
1
|
var styles = {
|
|
2
|
-
"actions": "MultiActionTile-module_actions__mntsC"
|
|
2
|
+
"actions": "MultiActionTile-module_actions__mntsC",
|
|
3
|
+
"secondaryAction": "MultiActionTile-module_secondaryAction__DuXdD"
|
|
3
4
|
};
|
|
4
5
|
export { styles as default };
|
|
5
6
|
//# sourceMappingURL=MultiActionTile.module.scss.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MultiActionTile.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"MultiActionTile.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -32,7 +32,7 @@ const GenericTile = /*#__PURE__*/function () {
|
|
|
32
32
|
variant: "heading-3",
|
|
33
33
|
tag: titleTag
|
|
34
34
|
}, title), metadata && ( /*#__PURE__*/React.createElement("div", {
|
|
35
|
-
className:
|
|
35
|
+
className: styles.titleMeta
|
|
36
36
|
}, /*#__PURE__*/React.createElement(Text, {
|
|
37
37
|
variant: "small",
|
|
38
38
|
color: "dark-reduced-opacity"
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericTile.mjs","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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A,CAAAG,aAAA,CAACqC,iBAAiB,EAAC;UAAAR,IAAI,EAAC;QAAc,EAAG;QAC/CC,OAAO,EAAE,SAAAA,CAAA,EAAA;UAAY,OAAAnC,YAAY,CAAC,KAAK,CAAC;SAAA;QACxCc,QAAQ,EAAE,CAACf,SAAS;QAAA,aAAA,EACP,CAACA;QACd,CACE,eACNG,KAAA,CAAAG,aAAA,CAAA,KAAA,EAAA;QAAKF,SAAS,EAAEC,MAAM,CAACb;MAAW,CAAA,EAC/B6C,iBAAiB,CAAC7C,WAAW,CAAC,CAC3B,CACF;IAEV,CAAC;IAED,oBACEW,KAAA,CAAAG,aAAA,CAAA,KAAA,EAAAsC,QAAA,CAAA;MAAKxC,SAAS,EAAEiB,UAAU,CAAChB,MAAM,CAACwC,IAAI,EAAElD,iBAAiB;IAAC,GAAMC,SAAS,CAAA,eACvEO,KAAA,CAAAG,aAAA,CAAA,KAAA,EAAA;MAAKF,SAAS,EAAEiB,UAAU,CAAChB,MAAM,CAACyC,IAAI,EAAE9C,SAAS,IAAIK,MAAM,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.mjs","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,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,CAAAO,IAAA;MACJC,MAAM,GAAAR,EAAA,CAAAQ,MAAA;MACNC,iBAAiB,GAAAT,EAAA,CAAAS,iBAAA;MACdC,SAAS,GAAAC,MAAA,CAAAX,EAAA,EATc,mGAU3B,CADa;IAEN,IAAAY,EAAA,GAA4BC,QAAQ,CAAU,KAAK,CAAC;MAAnDC,SAAS,GAAAF,EAAA,CAAA,CAAA,CAAA;MAAEG,YAAY,GAAAH,EAAA,CAAA,CAAA,CAA4B;IAE1D,IAAMI,WAAW,GAAG,SAAAA,CAAA,EAAA;MAAmB,oBACrCC;QAAKC,SAAS,EAAEC,MAAM,CAACjB;MAAK,CAAA,eAC1Be,KAAC,CAAAG,aAAA,CAAAC,OAAO,EAAC;QAAAC,OAAO,EAAC,WAAW;QAACC,GAAG,EAAEnB;MAC/B,CAAA,EAAAF,KAAK,CACE,EACTG,QAAQ,mBACPY,KAAA,CAAAG,aAAA,CAAA,KAAA,EAAA;QAAKF,SAAS,EAAEC,MAAM,CAACK;MAAS,CAAA,eAC9BP,KAAA,CAAAG,aAAA,CAACK,IAAI,EAAC;QAAAH,OAAO,EAAC,OAAO;QAACI,KAAK,EAAC;MACzB,CAAA,EAAArB,QAAQ,CACJ,CACH,CACP,CAC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|
"root": "GenericTile-module_root__9ZHdH",
|
|
3
3
|
"tile": "GenericTile-module_tile__mgFhk",
|
|
4
|
+
"titleMeta": "GenericTile-module_titleMeta__EREc9",
|
|
4
5
|
"face": "GenericTile-module_face__-KLVi",
|
|
5
6
|
"faceFront": "GenericTile-module_faceFront__HywHi",
|
|
6
7
|
"faceBack": "GenericTile-module_faceBack__NDCQ8",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"GenericTile.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"GenericTile.module.scss.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
|
package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs
CHANGED
|
@@ -6,6 +6,7 @@ import { IndicatorActiveIcon } from '../../../../../Icon/IndicatorActiveIcon.mjs
|
|
|
6
6
|
import { IndicatorInactiveIcon } from '../../../../../Icon/IndicatorInactiveIcon.mjs';
|
|
7
7
|
import { SuccessIcon } from '../../../../../Icon/SuccessIcon.mjs';
|
|
8
8
|
import { Text } from '../../../../../Text/Text.mjs';
|
|
9
|
+
import { VisuallyHidden } from '../../../../../VisuallyHidden/VisuallyHidden.mjs';
|
|
9
10
|
import styles from './ProgressStepper.module.scss.mjs';
|
|
10
11
|
var getStepStatus = function (isComplete, isCurrentStep, step, index) {
|
|
11
12
|
if (isComplete) {
|
|
@@ -66,9 +67,7 @@ const ProgressStepper = /*#__PURE__*/function () {
|
|
|
66
67
|
"aria-current": isCurrentStep
|
|
67
68
|
}, /*#__PURE__*/React.createElement("div", {
|
|
68
69
|
className: styles.stepContent
|
|
69
|
-
}, /*#__PURE__*/React.createElement(
|
|
70
|
-
className: "sr-only"
|
|
71
|
-
}, accessibleName), /*#__PURE__*/React.createElement(Text, {
|
|
70
|
+
}, /*#__PURE__*/React.createElement(VisuallyHidden, null, accessibleName), /*#__PURE__*/React.createElement(Text, {
|
|
72
71
|
classNameOverride: styles.stepName,
|
|
73
72
|
variant: "small",
|
|
74
73
|
color: "white",
|
package/dist/esm/Workflow/subcomponents/Footer/components/ProgressStepper/ProgressStepper.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProgressStepper.mjs","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 <
|
|
1
|
+
{"version":3,"file":"ProgressStepper.mjs","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,iBACFC,KAAA,CAAAC,aAAA,CAACC,WAAW,EACV;QAAAC,GAAG,EAAEL,KAAK;QACVM,WAAW,EACX,IAAA;QAAAC,IAAI,EAAC,cAAc;QACnBC,iBAAiB,EAAC;QAClB,CACH;MACDC,cAAc,EAAE,aAAc,CAAAC,MAAA,CAAAX,IAAI;KACnC;EACF;E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ACC,eACLtC,KAAA,CAAAC,aAAA,CAAC6B,IAAI,EACH;MAAAxB,iBAAiB,EAAEe,MAAM,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;"}
|
|
@@ -2,6 +2,7 @@ import { __rest, __assign } from 'tslib';
|
|
|
2
2
|
import React from 'react';
|
|
3
3
|
import { Heading } from '../../../../../Heading/Heading.mjs';
|
|
4
4
|
import { Tag } from '../../../../../Tag/Tag.mjs';
|
|
5
|
+
import { VisuallyHidden } from '../../../../../VisuallyHidden/VisuallyHidden.mjs';
|
|
5
6
|
import styles from './Titles.module.scss.mjs';
|
|
6
7
|
const Titles = /*#__PURE__*/function () {
|
|
7
8
|
const Titles = function (_a) {
|
|
@@ -21,9 +22,7 @@ const Titles = /*#__PURE__*/function () {
|
|
|
21
22
|
variant: "heading-6",
|
|
22
23
|
tag: "span",
|
|
23
24
|
color: "dark-reduced-opacity"
|
|
24
|
-
}, workflowName, /*#__PURE__*/React.createElement("span",
|
|
25
|
-
className: "sr-only"
|
|
26
|
-
}, ":")), /*#__PURE__*/React.createElement("span", null, stepName)), status && (
|
|
25
|
+
}, workflowName, /*#__PURE__*/React.createElement(VisuallyHidden, null, ":")), /*#__PURE__*/React.createElement("span", null, stepName)), status && (
|
|
27
26
|
/*#__PURE__*/
|
|
28
27
|
// status may need to be update by a fetch
|
|
29
28
|
React.createElement("div", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Titles.mjs","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 <
|
|
1
|
+
{"version":3,"file":"Titles.mjs","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,MAAA,CAAAL,EAAA,EAAA,CAAA,cAAA,EAAA,UAAA,EAAA,QAAA,CAKtB,CADa;IAC0B,oBACtCM;MAAKC,SAAS,EAAEC,MAAM,CAACC;OAAYL,SAAS,CAAA,eAC1CE,KAAA,CAAAI,aAAA,CAACC,OAAO,EACN;MAAAC,OAAO,EAAC,WAAW;MACnBC,GAAG,EAAC,IAAI;MACRC,KAAK,EAAC,MAAM;MACZC,iBAAiB,EAAEP,MAAM,CAACQ;IAAS,CAAA,eAEnCV,KAAA,CAAAI,aAAA,CAACC,OAAO,EACN;MAAAI,iBAAiB,EAAEP,MAAM,CAACS,MAAM;MAChCL,OAAO,EAAC,WAAW;MACnBC,GAAG,EAAC,MAAM;MACVC,KAAK,EAAC;IAAsB,CAAA,EAE3Bb,YAAY,eACbK,KAAC,CAAAI,aAAA,CAAAQ,cAAc,YAAmB,CAC1B,eACVZ,KAAO,CAAAI,aAAA,CAAA,MAAA,EAAA,IAAA,EAAAR,QAAQ,CAAQ,CACf,EACTC,MAAM;IAAA;;IAELG,KAAA,CAAAI,aAAA,CAAA,KAAA,EAAA;MAAKH,SAAS,EAAEC,MAAM,CAACL;IAAM,CAAA,eAC3BG,KAAA,CAAAI,aAAA,CAACS,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,CACF,CACP,CACG;GACP;EAEDtB,MAAM,CAACuB,WAAW,GAAG,iBAAiB;EAAA,OAnCzBvB,MAAM;AAAA;"}
|
|
@@ -6,6 +6,7 @@ import { IndicatorActiveIcon } from '../../../../../../Icon/IndicatorActiveIcon.
|
|
|
6
6
|
import { IndicatorInactiveIcon } from '../../../../../../Icon/IndicatorInactiveIcon.mjs';
|
|
7
7
|
import { SuccessIcon } from '../../../../../../Icon/SuccessIcon.mjs';
|
|
8
8
|
import { Text } from '../../../../../../Text/Text.mjs';
|
|
9
|
+
import { VisuallyHidden } from '../../../../../../VisuallyHidden/VisuallyHidden.mjs';
|
|
9
10
|
import styles from './ProgressStepper.module.scss.mjs';
|
|
10
11
|
var getStepStatus = function (isComplete, isCurrentStep, step, index) {
|
|
11
12
|
if (isComplete) {
|
|
@@ -68,9 +69,7 @@ const ProgressStepper = /*#__PURE__*/function () {
|
|
|
68
69
|
"aria-current": isCurrentStep
|
|
69
70
|
}, /*#__PURE__*/React.createElement("div", {
|
|
70
71
|
className: styles.stepContent
|
|
71
|
-
}, /*#__PURE__*/React.createElement(
|
|
72
|
-
className: "sr-only"
|
|
73
|
-
}, accessibleName), /*#__PURE__*/React.createElement(Text, {
|
|
72
|
+
}, /*#__PURE__*/React.createElement(VisuallyHidden, null, accessibleName), /*#__PURE__*/React.createElement(Text, {
|
|
74
73
|
classNameOverride: styles.stepName,
|
|
75
74
|
variant: "small",
|
|
76
75
|
color: "white",
|