@pismo/marola 2.1.0 → 2.1.1
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/DatePicker.module-C9zgeg52.js +46 -0
- package/dist/assets/DatePicker.css +1 -1
- package/dist/components/DatePicker/DatePicker.js +3 -3
- package/dist/components/DatePicker/renderCalendarDays.js +1 -1
- package/dist/components/DatePicker/renderDualCalendarHeader.js +5 -5
- package/dist/components/DatePicker/renderHeader.js +3 -3
- package/dist/components/DatePicker/renderNavigatorInput.js +12 -12
- package/dist/components/DatePicker/renderPeriodSelection.js +1 -1
- package/dist/components/Icon/Icon.js +165 -146
- package/dist/components/Icon/types.d.ts +1 -1
- package/package.json +1 -1
- package/dist/DatePicker.module-CmT9Zbbu.js +0 -45
- /package/dist/components/Typography/{typography.test.d.ts → Typography.test.d.ts} +0 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import './assets/DatePicker.css';const a = "_header_w0a09_161", e = "_calendar_w0a09_107", _ = "_weekdayNames_w0a09_189", t = "_days_w0a09_190", n = "_weekdayName_w0a09_189", d = "_day_w0a09_190", r = "_disabled_w0a09_212", o = "_selected_w0a09_212", w = "_faded_w0a09_221", c = "_months_w0a09_259", s = "_years_w0a09_260", i = "_month_w0a09_127", y = "_year_w0a09_260", l = "_rotate_w0a09_340", h = {
|
|
2
|
+
"datepicker-wrapper": "_datepicker-wrapper_w0a09_79",
|
|
3
|
+
"input-container": "_input-container_w0a09_88",
|
|
4
|
+
"datepicker-input": "_datepicker-input_w0a09_101",
|
|
5
|
+
"calendar-icon": "_calendar-icon_w0a09_107",
|
|
6
|
+
"datepicker-container": "_datepicker-container_w0a09_111",
|
|
7
|
+
"range-mode": "_range-mode_w0a09_124",
|
|
8
|
+
"month-header": "_month-header_w0a09_127",
|
|
9
|
+
"month-header-row": "_month-header-row_w0a09_138",
|
|
10
|
+
"nav-button": "_nav-button_w0a09_150",
|
|
11
|
+
header: a,
|
|
12
|
+
calendar: e,
|
|
13
|
+
weekdayNames: _,
|
|
14
|
+
days: t,
|
|
15
|
+
weekdayName: n,
|
|
16
|
+
day: d,
|
|
17
|
+
disabled: r,
|
|
18
|
+
selected: o,
|
|
19
|
+
"range-start": "_range-start_w0a09_212",
|
|
20
|
+
"range-end": "_range-end_w0a09_212",
|
|
21
|
+
"range-selected": "_range-selected_w0a09_212",
|
|
22
|
+
faded: w,
|
|
23
|
+
months: c,
|
|
24
|
+
years: s,
|
|
25
|
+
month: i,
|
|
26
|
+
year: y,
|
|
27
|
+
"today-footer": "_today-footer_w0a09_299",
|
|
28
|
+
"today-button": "_today-button_w0a09_305",
|
|
29
|
+
rotate: l,
|
|
30
|
+
"current-day": "_current-day_w0a09_344",
|
|
31
|
+
"hovered-range": "_hovered-range_w0a09_349",
|
|
32
|
+
"hovered-date": "_hovered-date_w0a09_354",
|
|
33
|
+
"would-be-end-date": "_would-be-end-date_w0a09_360",
|
|
34
|
+
"would-be-start-date": "_would-be-start-date_w0a09_366",
|
|
35
|
+
"dual-calendar-container": "_dual-calendar-container_w0a09_373",
|
|
36
|
+
"navigator-input": "_navigator-input_w0a09_384",
|
|
37
|
+
"nav-month-button": "_nav-month-button_w0a09_413",
|
|
38
|
+
"nav-year-button": "_nav-year-button_w0a09_414",
|
|
39
|
+
"auto-width": "_auto-width_w0a09_422",
|
|
40
|
+
"month-selector": "_month-selector_w0a09_427",
|
|
41
|
+
"year-selector": "_year-selector_w0a09_428",
|
|
42
|
+
"nav-calendar-static": "_nav-calendar-static_w0a09_460"
|
|
43
|
+
};
|
|
44
|
+
export {
|
|
45
|
+
h as s
|
|
46
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
._u-typography-h1_57qu7_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_57qu7_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_57qu7_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_57qu7_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_57qu7_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_57qu7_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_57qu7_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_57qu7_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_57qu7_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_57qu7_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_57qu7_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_57qu7_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_57qu7_68{text-decoration:line-through}._u-typography-base--underlined_57qu7_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_57qu7_74{text-decoration:underline line-through}._datepicker-wrapper_57qu7_79{position:relative;display:inline-block;width:100%}._input-container_57qu7_85{display:flex;align-items:center;padding:.5rem .75rem;cursor:pointer;background:#fff;border:.0625rem solid var(--colors-neutral-border-color-border);border-radius:.5rem;transition:border .2s ease-in-out}._input-container_57qu7_85:hover{border-color:var(--colors-brand-primary-color-primary)}._input-container_57qu7_85 ._datepicker-input_57qu7_98{width:100%;font-size:1rem;border:none;outline:none}._input-container_57qu7_85 ._calendar-icon_57qu7_104{cursor:pointer}._datepicker-container_57qu7_108{position:absolute;left:0;z-index:100;width:max-content;padding:1rem;margin-top:.5rem;background:#fff;border:.0625rem solid #ddd;border-radius:.375rem;box-shadow:0 .25rem .625rem #0000001a;animation:_fadeIn_57qu7_1 .2s ease-in-out,_slideUp_57qu7_1 .2s ease-in-out}._datepicker-container_57qu7_108._range-mode_57qu7_121{width:max-content}._datepicker-container_57qu7_108._range-mode_57qu7_121 ._month-headers_57qu7_124{display:flex;justify-content:space-between;width:100%;margin-bottom:.625rem}._datepicker-container_57qu7_108._range-mode_57qu7_121 ._month-headers_57qu7_124 ._month-header_57qu7_124{flex:1;font-weight:700;text-align:center}._datepicker-container_57qu7_108._range-mode_57qu7_121 ._month-header-row_57qu7_135{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:.625rem}._datepicker-container_57qu7_108._range-mode_57qu7_121 ._month-header-row_57qu7_135 ._month-header_57qu7_124{flex:1;font-weight:700;text-align:center}._datepicker-container_57qu7_108._range-mode_57qu7_121 ._month-header-row_57qu7_135 ._nav-button_57qu7_147{padding:.3125rem;font-size:1rem;cursor:pointer;background:none;border:none;transition:.2s ease}._datepicker-container_57qu7_108._range-mode_57qu7_121 ._month-header-row_57qu7_135 ._nav-button_57qu7_147:hover{color:var(--colors-brand-primary-color-primary)}._datepicker-container_57qu7_108 ._header_57qu7_158{width:100%}._header_57qu7_158{display:flex;align-items:center;justify-content:space-between;padding-bottom:.625rem;font-weight:700}._header_57qu7_158 button{padding:.3125rem;font-size:1rem;cursor:pointer;background:none;border:none;transition:.2s ease}._header_57qu7_158 button:hover{color:var(--colors-brand-primary-color-primary)}._calendar_57qu7_104{display:flex;flex-direction:column}._weekdayNames_57qu7_186,._days_57qu7_187{display:grid;grid-template-columns:repeat(7,auto);gap:0}._weekdayName_57qu7_186,._day_57qu7_187{display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;padding:.3125rem 0;font-size:1rem;font-weight:700;cursor:pointer;background-color:transparent;border:none;border-radius:.5rem;transition:background .2s ease-in-out}._weekdayName_57qu7_186:hover:not(._disabled_57qu7_209,._selected_57qu7_209,._range-start_57qu7_209,._range-end_57qu7_209,._range-selected_57qu7_209),._day_57qu7_187:hover:not(._disabled_57qu7_209,._selected_57qu7_209,._range-start_57qu7_209,._range-end_57qu7_209,._range-selected_57qu7_209){background-color:#fafafa}._weekdayName_57qu7_186._selected_57qu7_209,._day_57qu7_187._selected_57qu7_209{color:#fff;background:var(--colors-brand-primary-color-primary)}._weekdayName_57qu7_186._faded_57qu7_218:not(._disabled_57qu7_209),._day_57qu7_187._faded_57qu7_218:not(._disabled_57qu7_209){color:#3f3d4b40}._weekdayName_57qu7_186._disabled_57qu7_209,._day_57qu7_187._disabled_57qu7_209{color:#aaa;cursor:not-allowed}._weekdayName_57qu7_186._range-selected_57qu7_209:not(._range-start_57qu7_209,._range-end_57qu7_209),._day_57qu7_187._range-selected_57qu7_209:not(._range-start_57qu7_209,._range-end_57qu7_209){background:var(--colors-brand-primary-color-primary-bg);border-radius:0}._weekdayName_57qu7_186._range-start_57qu7_209,._day_57qu7_187._range-start_57qu7_209{color:#fff;background:var(--colors-brand-primary-color-primary);border-top-right-radius:0;border-bottom-right-radius:0}._weekdayName_57qu7_186._range-end_57qu7_209,._day_57qu7_187._range-end_57qu7_209{color:#fff;background:var(--colors-brand-primary-color-primary);border-top-left-radius:0;border-bottom-left-radius:0}._day_57qu7_187{margin-bottom:.25rem;color:#3f3d4be0}._weekdayName_57qu7_186{color:#3f3d4b73}._months_57qu7_256,._years_57qu7_257{display:grid;grid-template-columns:repeat(3,auto);gap:0}._months_57qu7_256 ._month_57qu7_124,._months_57qu7_256 ._year_57qu7_257,._years_57qu7_257 ._month_57qu7_124,._years_57qu7_257 ._year_57qu7_257{display:flex;align-items:center;justify-content:center;width:7.5rem;height:2.5rem;padding:.5rem .625rem;margin:.25rem;font-size:1rem;font-weight:700;color:#3f3d4be0;cursor:pointer;background-color:transparent;border:none;border-radius:.5rem;transition:background .2s ease-in-out}._months_57qu7_256 ._month_57qu7_124:hover:not(._selected_57qu7_209),._months_57qu7_256 ._year_57qu7_257:hover:not(._selected_57qu7_209),._years_57qu7_257 ._month_57qu7_124:hover:not(._selected_57qu7_209),._years_57qu7_257 ._year_57qu7_257:hover:not(._selected_57qu7_209){background-color:#fafafa}._months_57qu7_256 ._month_57qu7_124._selected_57qu7_209,._months_57qu7_256 ._year_57qu7_257._selected_57qu7_209,._years_57qu7_257 ._month_57qu7_124._selected_57qu7_209,._years_57qu7_257 ._year_57qu7_257._selected_57qu7_209{color:#fff;background:var(--colors-brand-primary-color-primary)}._today-footer_57qu7_296{display:flex;justify-content:center;margin-top:.625rem}._today-button_57qu7_302{display:block;width:100%;height:2.5rem;padding:.5rem;font-size:1rem;font-weight:700;color:#3f3d4be0;text-align:center;cursor:pointer;background:transparent;border:.0625rem solid #ddd;border-radius:.375rem;transition:background .2s ease-in-out}._today-button_57qu7_302:hover{background-color:#fafafa}@keyframes _fadeIn_57qu7_1{0%{opacity:0}to{opacity:1}}@keyframes _slideUp_57qu7_1{0%{transform:translateY(.625rem)}to{transform:translateY(0)}}._rotate_57qu7_337{transform:rotate(180deg)}._current-day_57qu7_341{background:none;border:.125rem solid var(--colors-brand-primary-color-primary)}._hovered-range_57qu7_346:not(._range-start_57qu7_209,._range-end_57qu7_209){background:var(--colors-brand-primary-color-primary-bg);border-radius:0}._hovered-date_57qu7_351{background:#c5eeff!important}._hovered-date_57qu7_351:not(._range-start_57qu7_209,._range-end_57qu7_209){border-radius:0}._hovered-date_57qu7_351._would-be-end-date_57qu7_357{color:#fff;background:#1897f3cc!important;border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}._hovered-date_57qu7_351._would-be-start-date_57qu7_363{color:#fff;background:#1897f3cc!important;border-top-left-radius:0;border-bottom-left-radius:0}._dual-calendar-container_57qu7_370{display:flex;gap:2rem;justify-content:center;width:max-content}._dual-calendar-container_57qu7_370 ._calendar_57qu7_104{flex:0 0 auto;width:max-content}._navigator-input_57qu7_381{display:flex;align-items:center;justify-content:space-between;width:11.25rem;height:2.5rem;padding:.5rem .75rem;cursor:pointer;background:var(--input-bg, #ffffff);border:.0625rem solid var(--input-border, var(--colors-neutral-border-color-border));border-radius:.5rem}._navigator-input_57qu7_381 ._nav-button_57qu7_147{display:flex;align-items:center;justify-content:center;padding:.25rem;cursor:pointer;background:none;border:none}._navigator-input_57qu7_381 ._nav-button_57qu7_147:hover{background-color:#0000000d;border-radius:.25rem}._navigator-input_57qu7_381 ._nav-calendar-icon_57qu7_406{margin:0 .25rem;color:var(--icon-color, #666)}._navigator-input_57qu7_381 ._nav-month-button_57qu7_410,._navigator-input_57qu7_381 ._nav-year-button_57qu7_411{padding:0;margin:0 .125rem;font-size:.875rem;cursor:pointer;background:none;border:none}._navigator-input_57qu7_381._auto-width_57qu7_419{width:fit-content;min-width:min-content}._month-selector_57qu7_424,._year-selector_57qu7_425{padding:0;font-size:inherit;font-weight:inherit;color:inherit;cursor:pointer;background:none;border:none}._month-selector_57qu7_424:hover,._year-selector_57qu7_425:hover{color:inherit;text-decoration:none;cursor:pointer;background:transparent;border:none;outline:none;box-shadow:none}._auto-width_57qu7_419{display:inline-flex;align-items:center;width:auto}._nav-month-button_57qu7_410,._nav-year-button_57qu7_411{padding:0 .25rem;white-space:nowrap}._nav-calendar-static_57qu7_457{display:inline-flex;align-items:center;justify-content:center;margin:0 .25rem;color:inherit;cursor:default}._nav-calendar-static_57qu7_457 svg{pointer-events:none}._nav-calendar-static_57qu7_457:hover,._nav-calendar-static_57qu7_457:focus,._nav-calendar-static_57qu7_457:active{color:inherit;cursor:default;background:transparent;outline:none;box-shadow:none}
|
|
1
|
+
._u-typography-h1_w0a09_1{font-size:var(--heading-font-size-1);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-1);margin:0}._u-typography-h2_w0a09_8{font-size:var(--heading-font-size-2);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-2);margin:0}._u-typography-h3_w0a09_15{font-size:var(--heading-font-size-3);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-3);margin:0}._u-typography-h4_w0a09_22{font-size:var(--heading-font-size-4);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-4);margin:0}._u-typography-h5_w0a09_29{font-size:var(--heading-font-size-5);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-5);margin:0}._u-typography-h6_w0a09_36{font-size:var(--heading-font-size-6);font-weight:var(--heading-font-weight);line-height:var(--heading-line-height-6);margin:0}._u-typography-base_w0a09_43{margin:0;font-size:var(--base-font-size);font-weight:var(--base-weight);line-height:var(--base-line-height)}._u-typography-base--xxl_w0a09_49{font-size:var(--base-font-size-xxl);line-height:var(--base-line-height-xxl)}._u-typography-base--xl_w0a09_53{font-size:var(--base-font-size-xl);line-height:var(--base-line-height-xl)}._u-typography-base--lg_w0a09_57{font-size:var(--base-font-size-lg);line-height:var(--base-line-height-lg)}._u-typography-base--sm_w0a09_61{font-size:var(--base-font-size-sm);line-height:var(--base-line-height-sm)}._u-typography-base--bold_w0a09_65{font-weight:var(--base-bold)}._u-typography-base--strikethrough_w0a09_68{text-decoration:line-through}._u-typography-base--underlined_w0a09_71{text-decoration:underline}._u-typography-base--strikethrough-underlined_w0a09_74{text-decoration:underline line-through}._datepicker-wrapper_w0a09_79{position:relative;display:inline-block;width:100%}._datepicker-wrapper_w0a09_79 svg{color:#3f3d4b}._input-container_w0a09_88{display:flex;align-items:center;padding:.5rem .75rem;cursor:pointer;background:#fff;border:.0625rem solid var(--colors-neutral-border-color-border);border-radius:.5rem;transition:border .2s ease-in-out}._input-container_w0a09_88:hover{border-color:var(--colors-brand-primary-color-primary)}._input-container_w0a09_88 ._datepicker-input_w0a09_101{width:100%;font-size:1rem;border:none;outline:none}._input-container_w0a09_88 ._calendar-icon_w0a09_107{cursor:pointer}._datepicker-container_w0a09_111{position:absolute;left:0;z-index:100;width:max-content;padding:1rem;margin-top:.5rem;background:#fff;border:.0625rem solid #ddd;border-radius:.375rem;box-shadow:0 .25rem .625rem #0000001a;animation:_fadeIn_w0a09_1 .2s ease-in-out,_slideUp_w0a09_1 .2s ease-in-out}._datepicker-container_w0a09_111._range-mode_w0a09_124{width:max-content}._datepicker-container_w0a09_111._range-mode_w0a09_124 ._month-headers_w0a09_127{display:flex;justify-content:space-between;width:100%;margin-bottom:.625rem}._datepicker-container_w0a09_111._range-mode_w0a09_124 ._month-headers_w0a09_127 ._month-header_w0a09_127{flex:1;font-weight:700;text-align:center}._datepicker-container_w0a09_111._range-mode_w0a09_124 ._month-header-row_w0a09_138{display:flex;align-items:center;justify-content:space-between;width:100%;margin-bottom:.625rem}._datepicker-container_w0a09_111._range-mode_w0a09_124 ._month-header-row_w0a09_138 ._month-header_w0a09_127{flex:1;font-weight:700;text-align:center}._datepicker-container_w0a09_111._range-mode_w0a09_124 ._month-header-row_w0a09_138 ._nav-button_w0a09_150{padding:.3125rem;font-size:1rem;cursor:pointer;background:none;border:none;transition:.2s ease}._datepicker-container_w0a09_111._range-mode_w0a09_124 ._month-header-row_w0a09_138 ._nav-button_w0a09_150:hover{color:var(--colors-brand-primary-color-primary)}._datepicker-container_w0a09_111 ._header_w0a09_161{width:100%}._header_w0a09_161{display:flex;align-items:center;justify-content:space-between;padding-bottom:.625rem;font-weight:700}._header_w0a09_161 button{padding:.3125rem;font-size:1rem;cursor:pointer;background:none;border:none;transition:.2s ease}._header_w0a09_161 button:hover{color:var(--colors-brand-primary-color-primary)}._calendar_w0a09_107{display:flex;flex-direction:column}._weekdayNames_w0a09_189,._days_w0a09_190{display:grid;grid-template-columns:repeat(7,auto);gap:0}._weekdayName_w0a09_189,._day_w0a09_190{display:flex;align-items:center;justify-content:center;width:2.75rem;height:2.75rem;padding:.3125rem 0;font-size:1rem;font-weight:700;cursor:pointer;background-color:transparent;border:none;border-radius:.5rem;transition:background .2s ease-in-out}._weekdayName_w0a09_189:hover:not(._disabled_w0a09_212,._selected_w0a09_212,._range-start_w0a09_212,._range-end_w0a09_212,._range-selected_w0a09_212),._day_w0a09_190:hover:not(._disabled_w0a09_212,._selected_w0a09_212,._range-start_w0a09_212,._range-end_w0a09_212,._range-selected_w0a09_212){background-color:#fafafa}._weekdayName_w0a09_189._selected_w0a09_212,._day_w0a09_190._selected_w0a09_212{color:#fff;background:var(--colors-brand-primary-color-primary)}._weekdayName_w0a09_189._faded_w0a09_221:not(._disabled_w0a09_212),._day_w0a09_190._faded_w0a09_221:not(._disabled_w0a09_212){color:#3f3d4b40}._weekdayName_w0a09_189._disabled_w0a09_212,._day_w0a09_190._disabled_w0a09_212{color:#aaa;cursor:not-allowed}._weekdayName_w0a09_189._range-selected_w0a09_212:not(._range-start_w0a09_212,._range-end_w0a09_212),._day_w0a09_190._range-selected_w0a09_212:not(._range-start_w0a09_212,._range-end_w0a09_212){background:var(--colors-brand-primary-color-primary-bg);border-radius:0}._weekdayName_w0a09_189._range-start_w0a09_212,._day_w0a09_190._range-start_w0a09_212{color:#fff;background:var(--colors-brand-primary-color-primary);border-top-right-radius:0;border-bottom-right-radius:0}._weekdayName_w0a09_189._range-end_w0a09_212,._day_w0a09_190._range-end_w0a09_212{color:#fff;background:var(--colors-brand-primary-color-primary);border-top-left-radius:0;border-bottom-left-radius:0}._day_w0a09_190{margin-bottom:.25rem;color:#3f3d4be0}._weekdayName_w0a09_189{color:#3f3d4b73}._months_w0a09_259,._years_w0a09_260{display:grid;grid-template-columns:repeat(3,auto);gap:0}._months_w0a09_259 ._month_w0a09_127,._months_w0a09_259 ._year_w0a09_260,._years_w0a09_260 ._month_w0a09_127,._years_w0a09_260 ._year_w0a09_260{display:flex;align-items:center;justify-content:center;width:7.5rem;height:2.5rem;padding:.5rem .625rem;margin:.25rem;font-size:1rem;font-weight:700;color:#3f3d4be0;cursor:pointer;background-color:transparent;border:none;border-radius:.5rem;transition:background .2s ease-in-out}._months_w0a09_259 ._month_w0a09_127:hover:not(._selected_w0a09_212),._months_w0a09_259 ._year_w0a09_260:hover:not(._selected_w0a09_212),._years_w0a09_260 ._month_w0a09_127:hover:not(._selected_w0a09_212),._years_w0a09_260 ._year_w0a09_260:hover:not(._selected_w0a09_212){background-color:#fafafa}._months_w0a09_259 ._month_w0a09_127._selected_w0a09_212,._months_w0a09_259 ._year_w0a09_260._selected_w0a09_212,._years_w0a09_260 ._month_w0a09_127._selected_w0a09_212,._years_w0a09_260 ._year_w0a09_260._selected_w0a09_212{color:#fff;background:var(--colors-brand-primary-color-primary)}._today-footer_w0a09_299{display:flex;justify-content:center;margin-top:.625rem}._today-button_w0a09_305{display:block;width:100%;height:2.5rem;padding:.5rem;font-size:1rem;font-weight:700;color:#3f3d4be0;text-align:center;cursor:pointer;background:transparent;border:.0625rem solid #ddd;border-radius:.375rem;transition:background .2s ease-in-out}._today-button_w0a09_305:hover{background-color:#fafafa}@keyframes _fadeIn_w0a09_1{0%{opacity:0}to{opacity:1}}@keyframes _slideUp_w0a09_1{0%{transform:translateY(.625rem)}to{transform:translateY(0)}}._rotate_w0a09_340{transform:rotate(180deg)}._current-day_w0a09_344{background:none;border:.125rem solid var(--colors-brand-primary-color-primary)}._hovered-range_w0a09_349:not(._range-start_w0a09_212,._range-end_w0a09_212){background:var(--colors-brand-primary-color-primary-bg);border-radius:0}._hovered-date_w0a09_354{background:#c5eeff!important}._hovered-date_w0a09_354:not(._range-start_w0a09_212,._range-end_w0a09_212){border-radius:0}._hovered-date_w0a09_354._would-be-end-date_w0a09_360{color:#fff;background:#1897f3cc!important;border-top-right-radius:.5rem;border-bottom-right-radius:.5rem}._hovered-date_w0a09_354._would-be-start-date_w0a09_366{color:#fff;background:#1897f3cc!important;border-top-left-radius:0;border-bottom-left-radius:0}._dual-calendar-container_w0a09_373{display:flex;gap:2rem;justify-content:center;width:max-content}._dual-calendar-container_w0a09_373 ._calendar_w0a09_107{flex:0 0 auto;width:max-content}._navigator-input_w0a09_384{display:flex;align-items:center;justify-content:space-between;width:11.25rem;height:2.5rem;padding:.5rem .75rem;cursor:pointer;background:var(--input-bg, #ffffff);border:.0625rem solid var(--input-border, var(--colors-neutral-border-color-border));border-radius:.5rem}._navigator-input_w0a09_384 ._nav-button_w0a09_150{display:flex;align-items:center;justify-content:center;padding:.25rem;cursor:pointer;background:none;border:none}._navigator-input_w0a09_384 ._nav-button_w0a09_150:hover{background-color:#0000000d;border-radius:.25rem}._navigator-input_w0a09_384 ._nav-calendar-icon_w0a09_409{margin:0 .25rem;color:var(--icon-color, #666)}._navigator-input_w0a09_384 ._nav-month-button_w0a09_413,._navigator-input_w0a09_384 ._nav-year-button_w0a09_414{padding:0;margin:0 .125rem;font-size:.875rem;cursor:pointer;background:none;border:none}._navigator-input_w0a09_384._auto-width_w0a09_422{width:fit-content;min-width:min-content}._month-selector_w0a09_427,._year-selector_w0a09_428{padding:0;font-size:inherit;font-weight:inherit;color:inherit;cursor:pointer;background:none;border:none}._month-selector_w0a09_427:hover,._year-selector_w0a09_428:hover{color:inherit;text-decoration:none;cursor:pointer;background:transparent;border:none;outline:none;box-shadow:none}._auto-width_w0a09_422{display:inline-flex;align-items:center;width:auto}._nav-month-button_w0a09_413,._nav-year-button_w0a09_414{padding:0 .25rem;white-space:nowrap}._nav-calendar-static_w0a09_460{display:inline-flex;align-items:center;justify-content:center;margin:0 .25rem;color:inherit;cursor:default}._nav-calendar-static_w0a09_460 svg{pointer-events:none}._nav-calendar-static_w0a09_460:hover,._nav-calendar-static_w0a09_460:focus,._nav-calendar-static_w0a09_460:active{color:inherit;cursor:default;background:transparent;outline:none;box-shadow:none}
|
|
@@ -4,7 +4,7 @@ import { useState as ne, useRef as at, useEffect as Ne, useCallback as Ft } from
|
|
|
4
4
|
import { r as It, d as ye } from "../../dayjs.min-ClQKmc--.js";
|
|
5
5
|
import { g as Le } from "../../_commonjsHelpers-C6fGbg64.js";
|
|
6
6
|
import { Icon as Ut } from "../Icon/Icon.js";
|
|
7
|
-
import { s as K } from "../../DatePicker.module-
|
|
7
|
+
import { s as K } from "../../DatePicker.module-C9zgeg52.js";
|
|
8
8
|
import { getPreviousMonth as Vt, getNextMonth as zt, isDisabled as Xt } from "./dateUtils.js";
|
|
9
9
|
import { handleDatePickerKeyDown as Jt } from "./keyboardNavigation.js";
|
|
10
10
|
import { renderCalendarDays as Kt } from "./renderCalendarDays.js";
|
|
@@ -1465,7 +1465,7 @@ const Un = (e) => {
|
|
|
1465
1465
|
{
|
|
1466
1466
|
ref: A,
|
|
1467
1467
|
onKeyDown: _,
|
|
1468
|
-
className: K["datepicker-
|
|
1468
|
+
className: K["datepicker-wrapper"],
|
|
1469
1469
|
"data-testid": `${s}-root`,
|
|
1470
1470
|
children: [
|
|
1471
1471
|
v ? Qt({
|
|
@@ -1506,7 +1506,7 @@ const Un = (e) => {
|
|
|
1506
1506
|
"aria-label": "Toggle calendar",
|
|
1507
1507
|
tabIndex: 0,
|
|
1508
1508
|
"data-testid": `${s}-toggle-icon`,
|
|
1509
|
-
children: /* @__PURE__ */ G(Ut, { icon: "calendar", size:
|
|
1509
|
+
children: /* @__PURE__ */ G(Ut, { icon: "calendar-days", size: 16 })
|
|
1510
1510
|
}
|
|
1511
1511
|
)
|
|
1512
1512
|
] }),
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as d, jsxs as Y } from "react/jsx-runtime";
|
|
2
2
|
import { d as x } from "../../dayjs.min-ClQKmc--.js";
|
|
3
|
-
import { s } from "../../DatePicker.module-
|
|
3
|
+
import { s } from "../../DatePicker.module-C9zgeg52.js";
|
|
4
4
|
import { getWeekdayNames as E, getMonthGrid as I, isDateInRange as C, isRangeStart as p, isRangeEnd as c, isDisabled as y, isCurrentDay as W, formatDateForInput as h } from "./dateUtils.js";
|
|
5
5
|
const A = (a, n, i) => {
|
|
6
6
|
if (!n[0] || !i) return !1;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as s, jsx as a } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as o } from "../Icon/Icon.js";
|
|
3
|
-
import { s as t } from "../../DatePicker.module-
|
|
3
|
+
import { s as t } from "../../DatePicker.module-C9zgeg52.js";
|
|
4
4
|
import { getPreviousMonth as d, getNextMonth as n } from "./dateUtils.js";
|
|
5
5
|
const v = ({ currentMonth: e, locale: r, setCurrentMonth: i }) => /* @__PURE__ */ s("div", { className: t["month-header-row"], "data-testid": "dual-calendar-header", children: [
|
|
6
6
|
/* @__PURE__ */ a(
|
|
@@ -10,7 +10,7 @@ const v = ({ currentMonth: e, locale: r, setCurrentMonth: i }) => /* @__PURE__ *
|
|
|
10
10
|
"aria-label": "Previous Year",
|
|
11
11
|
className: t["nav-button"],
|
|
12
12
|
"data-testid": "previous-year-button",
|
|
13
|
-
children: /* @__PURE__ */ a("div", { className: t.rotate, children: /* @__PURE__ */ a(o, { icon: "chevrons-right", size:
|
|
13
|
+
children: /* @__PURE__ */ a("div", { className: t.rotate, children: /* @__PURE__ */ a(o, { icon: "chevrons-right", size: 16 }) })
|
|
14
14
|
}
|
|
15
15
|
),
|
|
16
16
|
/* @__PURE__ */ a(
|
|
@@ -20,7 +20,7 @@ const v = ({ currentMonth: e, locale: r, setCurrentMonth: i }) => /* @__PURE__ *
|
|
|
20
20
|
"aria-label": "Previous Month",
|
|
21
21
|
className: t["nav-button"],
|
|
22
22
|
"data-testid": "previous-month-button",
|
|
23
|
-
children: /* @__PURE__ */ a("div", { className: t.rotate, children: /* @__PURE__ */ a(o, { icon: "chevron-right", size:
|
|
23
|
+
children: /* @__PURE__ */ a("div", { className: t.rotate, children: /* @__PURE__ */ a(o, { icon: "chevron-right", size: 16 }) })
|
|
24
24
|
}
|
|
25
25
|
),
|
|
26
26
|
/* @__PURE__ */ a("div", { className: t["month-header"], "data-testid": "current-month-display", children: e.locale(r).format("MMMM YYYY") }),
|
|
@@ -32,7 +32,7 @@ const v = ({ currentMonth: e, locale: r, setCurrentMonth: i }) => /* @__PURE__ *
|
|
|
32
32
|
"aria-label": "Next Month",
|
|
33
33
|
className: t["nav-button"],
|
|
34
34
|
"data-testid": "next-month-button",
|
|
35
|
-
children: /* @__PURE__ */ a(o, { icon: "chevron-right", size:
|
|
35
|
+
children: /* @__PURE__ */ a(o, { icon: "chevron-right", size: 16 })
|
|
36
36
|
}
|
|
37
37
|
),
|
|
38
38
|
/* @__PURE__ */ a(
|
|
@@ -42,7 +42,7 @@ const v = ({ currentMonth: e, locale: r, setCurrentMonth: i }) => /* @__PURE__ *
|
|
|
42
42
|
"aria-label": "Next Year",
|
|
43
43
|
className: t["nav-button"],
|
|
44
44
|
"data-testid": "next-year-button",
|
|
45
|
-
children: /* @__PURE__ */ a(o, { icon: "chevrons-right", size:
|
|
45
|
+
children: /* @__PURE__ */ a(o, { icon: "chevrons-right", size: 16 })
|
|
46
46
|
}
|
|
47
47
|
)
|
|
48
48
|
] });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as i, jsx as e, Fragment as n } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as o } from "../Icon/Icon.js";
|
|
3
|
-
import { s as t } from "../../DatePicker.module-
|
|
3
|
+
import { s as t } from "../../DatePicker.module-C9zgeg52.js";
|
|
4
4
|
const k = ({
|
|
5
5
|
currentViewMode: r,
|
|
6
6
|
currentMonth: a,
|
|
@@ -9,7 +9,7 @@ const k = ({
|
|
|
9
9
|
navigateToNext: c,
|
|
10
10
|
setCurrentViewMode: l
|
|
11
11
|
}) => r === "month" ? null : /* @__PURE__ */ i("div", { className: t.header, "data-testid": "datepicker-header", children: [
|
|
12
|
-
/* @__PURE__ */ e("button", { onClick: s, "aria-label": "Previous", "data-testid": "datepicker-previous-button", children: /* @__PURE__ */ e("div", { className: t.rotate, children: /* @__PURE__ */ e(o, { icon: "chevron-right", size:
|
|
12
|
+
/* @__PURE__ */ e("button", { onClick: s, "aria-label": "Previous", "data-testid": "datepicker-previous-button", children: /* @__PURE__ */ e("div", { className: t.rotate, children: /* @__PURE__ */ e(o, { icon: "chevron-right", size: 16 }) }) }),
|
|
13
13
|
/* @__PURE__ */ i("span", { "data-testid": "datepicker-header-label", children: [
|
|
14
14
|
r === "day" && /* @__PURE__ */ i(n, { children: [
|
|
15
15
|
/* @__PURE__ */ e(
|
|
@@ -34,7 +34,7 @@ const k = ({
|
|
|
34
34
|
] }),
|
|
35
35
|
r === "year" && `${a.year() - 6} - ${a.year() + 5}`
|
|
36
36
|
] }),
|
|
37
|
-
/* @__PURE__ */ e("button", { onClick: c, "aria-label": "Next", "data-testid": "datepicker-next-button", children: /* @__PURE__ */ e(o, { icon: "chevron-right", size:
|
|
37
|
+
/* @__PURE__ */ e("button", { onClick: c, "aria-label": "Next", "data-testid": "datepicker-next-button", children: /* @__PURE__ */ e(o, { icon: "chevron-right", size: 16 }) })
|
|
38
38
|
] });
|
|
39
39
|
export {
|
|
40
40
|
k as renderHeader
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs as f, jsx as n } from "react/jsx-runtime";
|
|
2
2
|
import { Icon as s } from "../Icon/Icon.js";
|
|
3
|
-
import { s as i } from "../../DatePicker.module-
|
|
3
|
+
import { s as i } from "../../DatePicker.module-C9zgeg52.js";
|
|
4
4
|
const p = ({
|
|
5
5
|
navigateToPrevious: b,
|
|
6
6
|
navigateToNext: u,
|
|
@@ -9,10 +9,10 @@ const p = ({
|
|
|
9
9
|
locale: o,
|
|
10
10
|
currentViewMode: r,
|
|
11
11
|
mode: l,
|
|
12
|
-
setCurrentViewMode:
|
|
13
|
-
setIsOpen:
|
|
14
|
-
setSelectedDate:
|
|
15
|
-
onChange:
|
|
12
|
+
setCurrentViewMode: d,
|
|
13
|
+
setIsOpen: h,
|
|
14
|
+
setSelectedDate: v,
|
|
15
|
+
onChange: c
|
|
16
16
|
}) => /* @__PURE__ */ f("div", { className: `${i["navigator-input"]} ${i["auto-width"]}`, "data-testid": "date-navigator", children: [
|
|
17
17
|
/* @__PURE__ */ n(
|
|
18
18
|
"button",
|
|
@@ -20,22 +20,22 @@ const p = ({
|
|
|
20
20
|
onClick: () => {
|
|
21
21
|
if (b(), l === "single" && a) {
|
|
22
22
|
let t;
|
|
23
|
-
r === "day" ? t = a.subtract(1, "month") : r === "month" ? t = a.subtract(1, "year") : t = a.subtract(12, "year"),
|
|
23
|
+
r === "day" ? t = a.subtract(1, "month") : r === "month" ? t = a.subtract(1, "year") : t = a.subtract(12, "year"), v(t), c(t);
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
className: i["nav-button"],
|
|
27
27
|
"aria-label": "Previous month",
|
|
28
28
|
"data-testid": "nav-previous-button",
|
|
29
|
-
children: /* @__PURE__ */ n("div", { className: i.rotate, children: /* @__PURE__ */ n(s, { icon: "chevron-right", size:
|
|
29
|
+
children: /* @__PURE__ */ n("div", { className: i.rotate, children: /* @__PURE__ */ n(s, { icon: "chevron-right", size: 16 }) })
|
|
30
30
|
}
|
|
31
31
|
),
|
|
32
|
-
/* @__PURE__ */ n("span", { className: i["nav-calendar-static"], "data-testid": "nav-calendar-icon", children: /* @__PURE__ */ n(s, { icon: "calendar", size: 16 }) }),
|
|
32
|
+
/* @__PURE__ */ n("span", { className: i["nav-calendar-static"], "data-testid": "nav-calendar-icon", children: /* @__PURE__ */ n(s, { icon: "calendar-days", size: 16 }) }),
|
|
33
33
|
/* @__PURE__ */ n(
|
|
34
34
|
"button",
|
|
35
35
|
{
|
|
36
36
|
className: i["nav-month-button"],
|
|
37
37
|
onClick: () => {
|
|
38
|
-
|
|
38
|
+
d("month"), h(!0);
|
|
39
39
|
},
|
|
40
40
|
"data-testid": "nav-month-button",
|
|
41
41
|
children: a ? a.locale(o).format("MMM") : m.locale(o).format("MMM")
|
|
@@ -46,7 +46,7 @@ const p = ({
|
|
|
46
46
|
{
|
|
47
47
|
className: i["nav-year-button"],
|
|
48
48
|
onClick: () => {
|
|
49
|
-
|
|
49
|
+
d("year"), h(!0);
|
|
50
50
|
},
|
|
51
51
|
"data-testid": "nav-year-button",
|
|
52
52
|
children: a ? a.locale(o).format("YYYY") : m.locale(o).format("YYYY")
|
|
@@ -58,13 +58,13 @@ const p = ({
|
|
|
58
58
|
onClick: () => {
|
|
59
59
|
if (u(), l === "single" && a) {
|
|
60
60
|
let t;
|
|
61
|
-
r === "day" ? t = a.add(1, "month") : r === "month" ? t = a.add(1, "year") : t = a.add(12, "year"),
|
|
61
|
+
r === "day" ? t = a.add(1, "month") : r === "month" ? t = a.add(1, "year") : t = a.add(12, "year"), v(t), c(t);
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
className: i["nav-button"],
|
|
65
65
|
"aria-label": "Next month",
|
|
66
66
|
"data-testid": "nav-next-button",
|
|
67
|
-
children: /* @__PURE__ */ n(s, { icon: "chevron-right", size:
|
|
67
|
+
children: /* @__PURE__ */ n(s, { icon: "chevron-right", size: 16 })
|
|
68
68
|
}
|
|
69
69
|
)
|
|
70
70
|
] });
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsx as m } from "react/jsx-runtime";
|
|
2
2
|
import { d as Y } from "../../dayjs.min-ClQKmc--.js";
|
|
3
|
-
import { s } from "../../DatePicker.module-
|
|
3
|
+
import { s } from "../../DatePicker.module-C9zgeg52.js";
|
|
4
4
|
const T = ({
|
|
5
5
|
currentViewMode: d,
|
|
6
6
|
currentMonth: i,
|