@midas-ds/components 17.26.0 → 17.27.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +31 -0
- package/assets/calendar.css +1 -1
- package/assets/list-box.css +1 -1
- package/assets/select.css +1 -1
- package/calendar/Calendar.d.ts +8 -1
- package/calendar/Calendar.stories.d.ts +2 -1
- package/calendar/CalendarGrid.d.ts +1 -2
- package/calendar/CalendarHeader.d.ts +2 -3
- package/calendar/CalendarPicker.d.ts +18 -0
- package/calendar/RangeCalendar.d.ts +8 -2
- package/calendar/RangeCalendar.stories.d.ts +2 -1
- package/calendar/index.js +1 -1
- package/checkbox/index.js +1 -1
- package/chunks/calendar-DWdU1T7E.js +111 -0
- package/chunks/{checkbox-ivInWvEp.js → checkbox-BgCp0edW.js} +13 -13
- package/chunks/{combobox-DDO4fEtI.js → combobox-B3AGDNru.js} +9 -9
- package/chunks/{date-field-DG5TYsTF.js → date-field-Q3bQ5P_t.js} +8 -8
- package/chunks/{date-picker-1W7OmCT0.js → date-picker-BPAJK8Gr.js} +15 -15
- package/chunks/{list-box-VdBVTwZK.js → list-box-BT33Wiwt.js} +16 -15
- package/chunks/{radio-W0YqY7lo.js → radio-BXC6pb3z.js} +8 -8
- package/chunks/{search-field-d7FV4Kuv.js → search-field-dAZu3T_V.js} +8 -8
- package/chunks/{select-LjjT_7hr.js → select-DOLE5CtI.js} +32 -28
- package/chunks/{table-O7Ht2ilY.js → table-RARvkGKL.js} +1 -1
- package/chunks/{textfield-BsijPPRD.js → textfield-BNdiOwXq.js} +10 -10
- package/chunks/{time-field-BlNUOjUJ.js → time-field-CZxI9Bs6.js} +9 -9
- package/combobox/index.js +1 -1
- package/date-field/index.js +1 -1
- package/date-picker/index.js +1 -1
- package/index.js +36 -36
- package/list-box/ListBox.d.ts +6 -1
- package/list-box/ListBox.stories.d.ts +1 -1
- package/list-box/index.js +1 -1
- package/package.json +1 -1
- package/radio/index.js +1 -1
- package/search-field/index.js +1 -1
- package/select/SelectTrigger.d.ts +7 -1
- package/select/index.d.ts +1 -0
- package/select/index.js +2 -2
- package/table/index.js +1 -1
- package/textfield/TextArea.stories.d.ts +5 -5
- package/textfield/index.js +1 -1
- package/time-field/index.js +1 -1
- package/chunks/calendar-R7x0m8ch.js +0 -74
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,34 @@
|
|
|
1
|
+
## 17.27.0 (2026-09-28)
|
|
2
|
+
|
|
3
|
+
### 🚀 Features
|
|
4
|
+
|
|
5
|
+
- **components,calendar:** add opt-in month/year picker to Calendar header ([66aaa354322](https://github.com/migrationsverket/midas/commit/66aaa354322))
|
|
6
|
+
- **components,list-box:** add small size for compact standalone lists ([4fc0d9acdd0](https://github.com/migrationsverket/midas/commit/4fc0d9acdd0))
|
|
7
|
+
- **components,select:** add small size to SelectTrigger for compact standalone selects ([e873817fb04](https://github.com/migrationsverket/midas/commit/e873817fb04))
|
|
8
|
+
|
|
9
|
+
### 🩹 Fixes
|
|
10
|
+
|
|
11
|
+
- **components,list-box:** use layer-02 tokens for the compact month/year picker list ([71947f918ce](https://github.com/migrationsverket/midas/commit/71947f918ce))
|
|
12
|
+
- **components:** remove dependency ([cbcbf9bc3a7](https://github.com/migrationsverket/midas/commit/cbcbf9bc3a7))
|
|
13
|
+
- **components,calendar:** use type-only import for CalendarDate to fix shared-singleton CI check ([a1dc4c9d700](https://github.com/migrationsverket/midas/commit/a1dc4c9d700))
|
|
14
|
+
- **components,calendar:** fix commitBehavior regression and calendar style-reset specificity ([1e16eee4048](https://github.com/migrationsverket/midas/commit/1e16eee4048))
|
|
15
|
+
- **components,calendar:** default RangeCalendar to commitBehavior=reset to avoid losing an in-progress selection ([29797a0a969](https://github.com/migrationsverket/midas/commit/29797a0a969))
|
|
16
|
+
|
|
17
|
+
### 🏭 Refactoring
|
|
18
|
+
|
|
19
|
+
- **components,calendar:** remove test id ([f438ab14be9](https://github.com/migrationsverket/midas/commit/f438ab14be9))
|
|
20
|
+
- **components,calendar:** remove implementation of calendar parts ([2155a551a54](https://github.com/migrationsverket/midas/commit/2155a551a54))
|
|
21
|
+
- **components,calendar:** extract shared CalendarPicker to remove duplication ([95afddb01d1](https://github.com/migrationsverket/midas/commit/95afddb01d1))
|
|
22
|
+
- **components,calendar:** drop React.FC across calendar components ([89130b5a8f1](https://github.com/migrationsverket/midas/commit/89130b5a8f1))
|
|
23
|
+
|
|
24
|
+
### 🧪 Tests updated
|
|
25
|
+
|
|
26
|
+
- **components:** update visual regression screenshots ([577a6fe2928](https://github.com/migrationsverket/midas/commit/577a6fe2928))
|
|
27
|
+
- **components:** update visual regression screenshots ([8739fcb1d91](https://github.com/migrationsverket/midas/commit/8739fcb1d91))
|
|
28
|
+
- **components,calendar:** add missing WithMonthYearPicker visual regression baselines ([3fd6f623052](https://github.com/migrationsverket/midas/commit/3fd6f623052))
|
|
29
|
+
- **components:** update visual regression screenshots ([5f5afd8f047](https://github.com/migrationsverket/midas/commit/5f5afd8f047))
|
|
30
|
+
- **components:** mock the date for visual regression ([78bbf4510e1](https://github.com/migrationsverket/midas/commit/78bbf4510e1))
|
|
31
|
+
|
|
1
32
|
## 17.26.0 (2026-09-23)
|
|
2
33
|
|
|
3
34
|
### 🚀 Features
|
package/assets/calendar.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._container_mn6zv_1{flex-direction:column;display:inline-flex}._calendar_mn6zv_6{padding:.5rem}._calendar_mn6zv_6 table :where(*){background:unset;color:unset;padding:unset;border:unset}._calendar_mn6zv_6 table{border-collapse:separate;border-spacing:0 2px;display:table}._calendar_mn6zv_6 thead tr,._calendar_mn6zv_6 tbody tr{background-color:unset}._calendar_mn6zv_6 th,._calendar_mn6zv_6 ._day_mn6zv_28{text-align:center;width:var(--midas-size-control-md);height:var(--midas-size-control-md);box-sizing:border-box}._calendar_mn6zv_6 th{font-weight:500;line-height:initial;padding:.625rem 0}._calendar_mn6zv_6 ._day_mn6zv_28{justify-content:center;align-items:center;display:flex}._calendar_mn6zv_6{background-color:var(--midas-layer-01-base);font-family:var(--midas-typography-font-family);color:var(--midas-text-primary);margin:auto;display:inline-block}._calendar_mn6zv_6 [data-unavailable]{color:var(--midas-text-disabled)}._calendar_mn6zv_6 div:focus-visible{outline:none}._calendar_mn6zv_6 div[data-focus-visible]{box-shadow:var(--midas-state-focus-inset);outline:none}@media (forced-colors:active){._calendar_mn6zv_6 div[data-focus-visible]{outline-offset:2px;outline:3px solid highlight}}._calendar_mn6zv_6[data-disabled=true],._calendar_mn6zv_6[data-disabled=true] button{cursor:not-allowed;color:var(--midas-text-disabled)}._calendar_mn6zv_6[data-invalid]{border:2px solid var(--midas-support-border-warning)}@media (forced-colors:active){._calendar_mn6zv_6{border:2px solid}}._calendar_mn6zv_6[data-readonly]{background-color:#0000}._header_mn6zv_90{justify-content:space-between;align-items:center;display:flex}._header_mn6zv_90>button{color:var(--midas-text-primary);background-color:var(--midas-layer-01-base);cursor:pointer;border:none;padding:.5rem}._header_mn6zv_90>button[data-hovered]:not([data-disabled]){background-color:var(--midas-field-01-hover)}._header_mn6zv_90>button:focus-visible,._header_mn6zv_90>button[data-focus-visible]{box-shadow:var(--midas-state-focus);outline:none}@media (forced-colors:active){._header_mn6zv_90>button:focus-visible,._header_mn6zv_90>button[data-focus-visible]{outline-offset:2px;outline:3px solid}}._header_mn6zv_90>button[data-readonly]{background-color:#0000}._header_mn6zv_90 [data-disabled]{color:var(--midas-text-disabled)}._pickers_mn6zv_130{align-items:center;gap:var(--midas-space-small);display:flex}._pickers_mn6zv_130 [data-readonly] button{background-color:#0000}._day_mn6zv_28{border:solid 1px var(--midas-layer-01-base);cursor:pointer}._day_mn6zv_28[data-hovered]:not([data-unavailable],[data-disabled],[data-selected]){background-color:var(--midas-field-01-hover);border-color:var(--midas-field-01-hover)}._day_mn6zv_28[data-pressed]:not([data-unavailable],[data-disabled]){background-color:var(--midas-field-01-active);border-color:var(--midas-field-01-active)}._day_mn6zv_28[data-selected=true]{color:var(--midas-text-inverse);background-color:var(--midas-calendar-date-background-selected);border-color:var(--midas-calendar-date-background-selected)}@media (forced-colors:active){._day_mn6zv_28[data-selected=true]{background-color:selecteditem}}._day_mn6zv_28[data-readonly]{pointer-events:none;border-color:#0000}._day_mn6zv_28[data-readonly][data-selected]{border-color:var(--midas-border-color-primary);color:var(--midas-text-primary);background-color:#0000}._day_mn6zv_28._range_mn6zv_180[data-selected=true]{color:var(--midas-text-primary);background-color:var(--midas-calendar-date-background-in-range);border-left:none;border-right:none;border-top:1px solid var(--midas-border-color-tertiary);border-bottom:1px solid var(--midas-border-color-tertiary)}@media (forced-colors:active){._day_mn6zv_28._range_mn6zv_180[data-selected=true]{background-color:mark}}._day_mn6zv_28._range_mn6zv_180[data-selection-start]:not([data-outside-month]){color:var(--midas-text-inverse);background-color:var(--midas-calendar-date-background-start-range);border-color:var(--midas-calendar-date-background-start-range);border-style:solid}@media (forced-colors:active){._day_mn6zv_28._range_mn6zv_180[data-selection-start]:not([data-outside-month]){background-color:selecteditem}}._day_mn6zv_28._range_mn6zv_180[data-selection-end]:not([data-outside-month]){color:var(--midas-text-inverse);background-color:var(--midas-calendar-date-background-end-range);border-color:var(--midas-calendar-date-background-end-range);border-style:solid}@media (forced-colors:active){._day_mn6zv_28._range_mn6zv_180[data-selection-end]:not([data-outside-month]){background-color:selecteditem}}._day_mn6zv_28._range_mn6zv_180[data-readonly]{pointer-events:none}._day_mn6zv_28._range_mn6zv_180[data-readonly][data-selected]{border-color:var(--midas-border-color-subtle);color:var(--midas-text-primary);background-color:#0000}._day_mn6zv_28._range_mn6zv_180[data-readonly][data-selection-start]:not([data-outside-month]),._day_mn6zv_28._range_mn6zv_180[data-readonly][data-selection-end]:not([data-outside-month]){border-color:var(--midas-border-color-primary);color:var(--midas-text-primary);background-color:#0000}._day_mn6zv_28[data-disabled],._day_mn6zv_28[data-unavailable]{color:var(--midas-text-disabled)}@media (forced-colors:active){._day_mn6zv_28[data-disabled],._day_mn6zv_28[data-unavailable]{color:graytext}}._day_mn6zv_28[data-disabled],._day_mn6zv_28[data-unavailable]{cursor:not-allowed}._day_mn6zv_28[data-today]{text-underline-offset:3px;text-decoration:underline}._day_mn6zv_28[data-outside-month=true]{color:var(--midas-text-disabled)}
|
package/assets/list-box.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
._dropdownAnimation_1ljkv_4{opacity:1;transition:opacity var(--midas-transition-duration-quick) var(--midas-transition-timing-ease-out)}._dropdownAnimation_1ljkv_4[data-entering]{opacity:0}._dropdownAnimation_1ljkv_4[data-exiting]{opacity:0;transition-timing-function:var(--midas-transition-timing-ease-in)}@media (prefers-reduced-motion){._dropdownAnimation_1ljkv_4{transition:none}}.
|
|
1
|
+
._dropdownAnimation_1ljkv_4{opacity:1;transition:opacity var(--midas-transition-duration-quick) var(--midas-transition-timing-ease-out)}._dropdownAnimation_1ljkv_4[data-entering]{opacity:0}._dropdownAnimation_1ljkv_4[data-exiting]{opacity:0;transition-timing-function:var(--midas-transition-timing-ease-in)}@media (prefers-reduced-motion){._dropdownAnimation_1ljkv_4{transition:none}}._listBox_6csy4_4{max-height:min(295px,50dvh);overflow:hidden auto}._listBox_6csy4_4>div{pointer-events:auto!important}._listBox_6csy4_4[data-size=small] ._listBoxItem_6csy4_18{padding:var(--midas-space-50) var(--midas-space-medium);font-size:var(--midas-typography-font-size-20);line-height:var(--midas-typography-line-height-20);height:var(--midas-size-option);background-color:var(--midas-layer-02-base)}._listBox_6csy4_4[data-size=small] ._listBoxItem_6csy4_18[data-hovered]:not([data-disabled]),._listBox_6csy4_4[data-size=small] ._listBoxItem_6csy4_18[data-pressed]:not([data-disabled]){background-color:var(--midas-layer-02-hover)}._listBox_6csy4_4[data-size=small] ._listBoxItem_6csy4_18[data-selected]{background-color:var(--midas-layer-02-selected)}._listBox_6csy4_4[data-size=small] ._listBoxItem_6csy4_18[data-selected][data-hovered]:not([data-disabled]){background-color:var(--midas-layer-02-selected-hover)}._listBox_6csy4_4[data-size=small] ._listBoxItem_6csy4_18[data-selection-mode=single][data-selected]:after{content:none}._listBox_6csy4_4[data-size=small] ._listBoxItem_6csy4_18[data-selection-mode=single][data-selected] ._textContent_6csy4_51{max-width:100%}._listBoxPopover_6csy4_67{font-family:var(--midas-typography-font-family);width:var(--trigger-width);background:var(--midas-layer-01-base);box-shadow:0 3px 5px #0003}@media (forced-colors:active){._listBoxPopover_6csy4_67{border:1px solid var(--midas-border-color-primary)}}._listBoxPopover_6csy4_67:has(._listBox_6csy4_4[data-size=small]){width:max-content;min-width:var(--trigger-width);background:var(--midas-layer-02-base)}._listBoxSectionHeading_6csy4_96{background-color:var(--midas-layer-01-base);font-family:var(--midas-typography-font-family);padding:var(--midas-space-medium) var(--midas-space-medium) var(--midas-space-xsmall) var(--midas-space-60);font-weight:var(--midas-typography-weight-medium);font-size:var(--midas-typography-font-size-20);line-height:var(--midas-typography-line-height-20);color:var(--midas-menu-text-section-header);display:block}._listBoxButton_6csy4_108{all:unset;box-sizing:border-box;width:100%;margin-bottom:var(--midas-space-10)!important}._listBoxButton_6csy4_108:focus-visible{box-shadow:var(--midas-state-focus-inset);outline:none}._listBoxItem_6csy4_18{background-color:var(--midas-layer-01-base);box-sizing:border-box;color:var(--midas-text-primary);font-family:var(--midas-typography-font-family);line-height:var(--midas-typography-line-height-30);padding:var(--midas-space-70) var(--midas-space-medium);justify-content:space-between;align-items:center;gap:var(--midas-space-medium);margin-bottom:0;display:flex}._listBoxItem_6csy4_18 ._textContent_6csy4_51{-webkit-hyphens:auto;hyphens:auto;overflow-wrap:break-word;width:100%}._listBoxItem_6csy4_18[data-hovered]:not([data-disabled]){background-color:var(--midas-layer-01-hover);cursor:pointer}._listBoxItem_6csy4_18[data-pressed]:not([data-disabled]){background-color:var(--midas-layer-01-hover)}._listBoxItem_6csy4_18[data-disabled]{color:var(--midas-text-disabled);cursor:not-allowed}._listBoxItem_6csy4_18[data-selected]{background-color:var(--midas-layer-01-selected)}._listBoxItem_6csy4_18[data-selected][data-hovered]:not([data-disabled]){background-color:var(--midas-layer-01-selected-hover)}._listBoxItem_6csy4_18[data-focused]{box-shadow:none;outline:none}@media (forced-colors:active){._listBoxItem_6csy4_18[data-focused]{outline-offset:calc(var(--midas-state-focus-contrast-mode-outline) * -1);outline:var(--midas-state-focus-contrast-mode-outline) solid highlight!important}}._listBoxItem_6csy4_18[data-focus-visible]{box-shadow:var(--midas-state-focus-inset);outline:none}._listBoxItem_6csy4_18[data-selection-mode=single][data-selected] ._textContent_6csy4_51{max-width:calc(100% - var(--midas-space-150))}._listBoxItem_6csy4_18[data-selection-mode=single][data-selected]:after{content:"";background-color:var(--midas-text-primary);width:var(--midas-size-icon-sm);height:var(--midas-size-icon-sm);-webkit-mask:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWNoZWNrLWljb24gbHVjaWRlLWNoZWNrIj48cGF0aCBkPSJNMjAgNiA5IDE3bC01LTUiLz48L3N2Zz4=);mask:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJsdWNpZGUgbHVjaWRlLWNoZWNrLWljb24gbHVjaWRlLWNoZWNrIj48cGF0aCBkPSJNMjAgNiA5IDE3bC01LTUiLz48L3N2Zz4=);-webkit-mask-size:var(--midas-size-icon-sm) var(--midas-size-icon-sm);mask-size:var(--midas-size-icon-sm) var(--midas-size-icon-sm);flex-shrink:0}@media (forced-colors:active){._listBoxItem_6csy4_18[data-selection-mode=single][data-selected]:after{filter:invert()}}._listBoxItem_6csy4_18[data-selection-mode=multiple]{justify-content:flex-start;gap:var(--midas-space-small)}._listBoxItem_6csy4_18[data-selection-mode=multiple]:before{box-sizing:border-box;content:"";border:1px solid var(--midas-border-color-primary);min-width:var(--midas-size-icon-sm);height:var(--midas-size-icon-sm);transition:all .2s}._listBoxItem_6csy4_18[data-selection-mode=multiple][data-selected]:before{min-width:var(--midas-size-icon-sm);min-height:var(--midas-size-icon-sm);background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9IiNmZmZmZmYiIHN0cm9rZS13aWR0aD0iMiIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIiBzdHJva2UtbGluZWpvaW49InJvdW5kIiBjbGFzcz0ibHVjaWRlIGx1Y2lkZS1jaGVjay1pY29uIGx1Y2lkZS1jaGVjayI+PHBhdGggZD0iTTIwIDYgOSAxN2wtNS01Ii8+PC9zdmc+);background-size:contain;background-color:var(--midas-button-background-primary-base);border-color:var(--midas-button-background-primary-base)}@media (forced-colors:active){._listBoxItem_6csy4_18[data-selection-mode=multiple][data-selected]:before{background-color:selecteditem;border-color:selecteditem}}._listBoxItem_6csy4_18[data-selection-mode=multiple][data-selected][data-hovered]:before{background-color:var(--midas-button-background-primary-hover);border-color:var(--midas-button-background-primary-hover)}@media (forced-colors:active){._listBoxItem_6csy4_18[data-selection-mode=multiple][data-selected][data-hovered]:before{background-color:selecteditem;border-color:selecteditem}}._listBoxLoadMoreItem_6csy4_241{align-items:center;gap:var(--midas-space-medium);line-height:var(--midas-typography-line-height-30);padding:var(--midas-space-medium) var(--midas-space-medium) var(--midas-space-60) var(--midas-space-medium);display:flex}@media (prefers-reduced-motion){._listBoxItem_6csy4_18,._item_6csy4_252,._option_6csy4_253 ._inputCheckbox_6csy4_253{transition:none}}._listBoxEmptyState_1wxhy_1{line-height:var(--midas-typography-line-height-30);padding:var(--midas-space-medium) var(--midas-space-medium) var(--midas-space-60) var(--midas-space-medium);display:block}
|
package/assets/select.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.
|
|
1
|
+
._select_140qh_1{flex-direction:column;align-self:stretch;display:flex}._triggerContainer_140qh_7{flex-direction:column;display:flex;position:relative}._trigger_140qh_7{background-color:var(--midas-field-base,var(--midas-field-01-base));border:none;border-bottom:1px solid var(--midas-border-color-primary);color:var(--midas-text-primary);font-size:var(--midas-typography-font-size-30);align-items:center;gap:var(--midas-space-xsmall);min-height:var(--midas-size-control);padding-left:var(--midas-space-medium);padding-right:var(--midas-space-medium);transition:all var(--midas-transition-duration-instant) var(--midas-transition-timing-ease-in);border-radius:0;justify-content:space-between;display:flex}._trigger_140qh_7._medium_140qh_30{min-height:var(--midas-size-control-md)}._trigger_140qh_7._small_140qh_37{--midas-field-base:var(--midas-field-02-base);--midas-field-hover:var(--midas-field-02-hover);--midas-field-disabled:var(--midas-field-02-disabled);--midas-field-active:var(--midas-field-02-base);min-height:var(--midas-size-option);gap:var(--midas-space-small);padding-left:var(--midas-space-small);padding-right:var(--midas-space-small);border-bottom-width:.5px}._trigger_140qh_7._small_140qh_37 ._selectValue_140qh_60{max-width:none}._trigger_140qh_7:focus-visible{box-shadow:var(--midas-state-focus);transition:all var(--midas-transition-duration-instant) var(--midas-transition-timing-ease-out);outline:none}@media (forced-colors:active){._trigger_140qh_7:focus-visible{outline-offset:2px;outline:3px solid highlight}}._trigger_140qh_7[data-hovered]{background-color:var(--midas-field-hover,var(--midas-field-01-hover));cursor:pointer}._trigger_140qh_7[data-disabled]{cursor:not-allowed;background:var(--midas-field-disabled,var(--midas-field-01-disabled));color:var(--midas-text-disabled);border-color:var(--midas-border-color-disabled)}._trigger_140qh_7[data-invalid]:not(:focus-visible){box-shadow:var(--midas-state-invalid);border:none}@media (forced-colors:active){._trigger_140qh_7[data-invalid]:not(:focus-visible){border:5px solid highlight!important}}._trigger_140qh_7[data-pressed]{background-color:var(--midas-field-active,var(--midas-field-01-active))}._trigger_140qh_7[aria-expanded=true] ._icon_140qh_110{transform:rotate(180deg)}._selectValue_140qh_60{color:var(--midas-text-primary);font-family:var(--midas-typography-font-family);line-height:var(--midas-typography-line-height-30);max-width:calc(100% - var(--midas-space-150))}._selectValue_140qh_60 ._placeholder_140qh_122{display:flex}._selectValue_140qh_60[data-disabled]{color:var(--midas-text-disabled);cursor:not-allowed}._multiSelectValue_140qh_132{pointer-events:none;color:var(--midas-text-primary);font-family:var(--midas-typography-font-family);line-height:var(--midas-typography-line-height-30);max-width:calc(100% - var(--midas-space-150));position:absolute;top:50%;transform:translateY(-50%)}._multiSelectValue_140qh_132 ._placeholder_140qh_122{left:var(--midas-space-medium);justify-content:center;align-items:center;display:flex;position:relative}._multiSelectValue_140qh_132[data-disabled]{color:var(--midas-text-disabled);cursor:not-allowed}._selectValueTag_140qh_156{background-color:var(--midas-button-background-primary-base);color:var(--midas-text-on-color);left:var(--midas-space-small);pointer-events:all;border-radius:1.25rem;justify-content:center;align-items:center;min-height:1.75rem;padding:0 .5rem;font-size:.875rem;display:flex;position:relative}._selectValueTag_140qh_156:has(._clearButton_140qh_170){padding-right:0}._selectValueTag_140qh_156[data-disabled]{background-color:var(--midas-field-disabled,var(--midas-field-01-disabled));border:1px solid var(--midas-border-color-disabled);color:var(--midas-text-disabled);pointer-events:none}._truncate_140qh_185{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}._clearButton_140qh_170{background-color:var(--midas-button-background-primary-base);color:var(--midas-text-on-color);margin-left:var(--midas-space-10);padding:var(--midas-space-30);border:none;border-radius:100%;display:flex}._clearButton_140qh_170[data-hovered]{background-color:var(--midas-button-background-primary-hover);cursor:pointer}._clearButton_140qh_170[data-disabled]{background-color:var(--midas-button-background-disabled);color:var(--midas-text-disabled);pointer-events:none}._clearButton_140qh_170:focus-visible{box-shadow:var(--midas-state-focus);outline:none}@media (forced-colors:active){._clearButton_140qh_170:focus-visible{outline-offset:2px;outline:3px solid highlight}}._popover_140qh_222{font-size:var(--midas-typography-font-size-30);padding:0}._popover_140qh_222 :focus{outline:none}._popover_140qh_222[data-trigger=Select]{min-width:var(--trigger-width);opacity:1;transition:opacity var(--midas-transition-duration-quick) var(--midas-transition-timing-ease-out)}._popover_140qh_222[data-trigger=Select][data-entering]{opacity:0}._popover_140qh_222[data-trigger=Select][data-exiting]{opacity:0;transition-timing-function:var(--midas-transition-timing-ease-in)}._popover_140qh_222 ._selectAll_140qh_250{box-sizing:border-box;background-color:var(--midas-layer-01-base);width:100%;color:var(--midas-text-primary);font-family:var(--midas-typography-font-family);padding:var(--midas-space-medium);line-height:1;display:flex;margin-bottom:2px!important}._popover_140qh_222 ._selectAll_140qh_250[data-hovered]:not([data-disabled]){background-color:var(--midas-layer-01-hover);cursor:pointer}._popover_140qh_222 ._selectAll_140qh_250[data-hovered]:not([data-disabled]) div{border-color:var(--midas-text-primary)}._popover_140qh_222 ._selectAll_140qh_250[data-disabled]{color:var(--midas-text-disabled);cursor:not-allowed}._popover_140qh_222 ._selectAll_140qh_250[data-selected]{background-color:var(--midas-layer-01-selected-hover)}._popover_140qh_222 ._selectAll_140qh_250[data-selected][data-hovered]:not([data-disabled]){background-color:var(--midas-layer-01-selected-hover)}._popover_140qh_222 ._selectAll_140qh_250[data-selected][data-hovered]:not([data-disabled]) div{border-color:#0000}._popover_140qh_222 ._selectAll_140qh_250[data-focused]{box-shadow:none;outline:none}@media (forced-colors:active){._popover_140qh_222 ._selectAll_140qh_250[data-focused]{outline-offset:calc(var(--midas-state-focus-contrast-mode-outline) * -1);outline:var(--midas-state-focus-contrast-mode-outline) solid highlight!important}}._popover_140qh_222 ._selectAll_140qh_250[data-focus-visible]{box-shadow:var(--midas-state-focus-inset);outline:none}._popover_140qh_222 ._selectAll_140qh_250[data-hovered] div{border-color:var(--midas-button-background-primary-hover)}._icon_140qh_110{transition:transform var(--midas-transition-duration-normal) var(--midas-transition-timing-ease-in-out);display:flex}._tagGroup_140qh_316{margin-top:var(--midas-space-small)}@media (prefers-reduced-motion){._trigger_140qh_7,._popover_140qh_222[data-trigger=Select],._icon_140qh_110{transition:none}}
|
package/calendar/Calendar.d.ts
CHANGED
|
@@ -2,5 +2,12 @@ import { CalendarProps as AriaCalendarProps, DateValue } from 'react-aria-compon
|
|
|
2
2
|
import { CalendarSelectionMode } from 'react-stately/useCalendarState';
|
|
3
3
|
export interface CalendarProps<M extends CalendarSelectionMode = 'single'> extends AriaCalendarProps<DateValue, M> {
|
|
4
4
|
errorMessage?: string;
|
|
5
|
+
/**
|
|
6
|
+
* Show month/year picker dropdowns in the header instead of the static
|
|
7
|
+
* heading, letting users jump directly to a month/year instead of
|
|
8
|
+
* paging one month at a time.
|
|
9
|
+
* @default false
|
|
10
|
+
*/
|
|
11
|
+
showMonthYearPicker?: boolean;
|
|
5
12
|
}
|
|
6
|
-
export declare const Calendar: <M extends CalendarSelectionMode = "single">({ className, errorMessage, ...rest }: CalendarProps<M>) => import("react/jsx-runtime").JSX.Element;
|
|
13
|
+
export declare const Calendar: <M extends CalendarSelectionMode = "single">({ className, errorMessage, showMonthYearPicker, ...rest }: CalendarProps<M>) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { Calendar } from './Calendar';
|
|
3
3
|
type Story = StoryObj<typeof Calendar<'single'>>;
|
|
4
4
|
declare const _default: {
|
|
5
|
-
component: <M extends import('react-stately/useCalendarState').CalendarSelectionMode = "single">({ className, errorMessage, ...rest }: import('./Calendar').CalendarProps<M>) => import("react/jsx-runtime").JSX.Element;
|
|
5
|
+
component: <M extends import('react-stately/useCalendarState').CalendarSelectionMode = "single">({ className, errorMessage, showMonthYearPicker, ...rest }: import('./Calendar').CalendarProps<M>) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
render: (args: import('./Calendar').CalendarProps<"single">) => import("react/jsx-runtime").JSX.Element;
|
|
7
7
|
title: string;
|
|
8
8
|
tags: string[];
|
|
@@ -13,4 +13,5 @@ export declare const Disabled: Story;
|
|
|
13
13
|
export declare const ReadOnly: Story;
|
|
14
14
|
export declare const Invalid: Story;
|
|
15
15
|
export declare const UnavailableWeekends: Story;
|
|
16
|
+
export declare const WithMonthYearPicker: Story;
|
|
16
17
|
export declare const MultiSelect: StoryObj<typeof Calendar<'multiple'>>;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { CalendarGridProps as AriaCalendarGridProps } from 'react-aria-components';
|
|
2
|
-
import * as React from 'react';
|
|
3
2
|
export interface CalendarGridProps {
|
|
4
3
|
weekdayStyle?: AriaCalendarGridProps['weekdayStyle'];
|
|
5
4
|
isReadOnly?: boolean;
|
|
6
5
|
}
|
|
7
|
-
export declare const CalendarGrid:
|
|
6
|
+
export declare const CalendarGrid: ({ weekdayStyle, isReadOnly, }: CalendarGridProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { CalendarProps } from './Calendar';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export declare const CalendarHeader: React.FC<CalendarHeaderProps>;
|
|
2
|
+
type CalendarHeaderProps = Pick<CalendarProps, 'isDisabled' | 'isReadOnly' | 'showMonthYearPicker'>;
|
|
3
|
+
export declare const CalendarHeader: ({ isDisabled, isReadOnly, showMonthYearPicker, }: CalendarHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
5
4
|
export {};
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { SelectProps } from 'react-aria-components';
|
|
2
|
+
import { CalendarDate } from '@internationalized/date';
|
|
3
|
+
interface CalendarPickerItem {
|
|
4
|
+
id: number;
|
|
5
|
+
date: CalendarDate;
|
|
6
|
+
formatted: string;
|
|
7
|
+
}
|
|
8
|
+
export interface CalendarPickerProps extends SelectProps {
|
|
9
|
+
items: CalendarPickerItem[];
|
|
10
|
+
/**
|
|
11
|
+
* A read-only calendar still allows browsing months/years — it only
|
|
12
|
+
* blocks date *selection* — so this only applies a cosmetic treatment,
|
|
13
|
+
* matching the existing prev/next nav buttons' behaviour.
|
|
14
|
+
*/
|
|
15
|
+
isReadOnly?: boolean;
|
|
16
|
+
}
|
|
17
|
+
export declare const CalendarPicker: ({ isDisabled, isReadOnly, items, ...rest }: CalendarPickerProps) => import("react/jsx-runtime").JSX.Element;
|
|
18
|
+
export {};
|
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
import { DateValue, RangeCalendarProps as AriaRangeCalendarProps } from 'react-aria-components';
|
|
2
|
-
import * as React from 'react';
|
|
3
2
|
export interface RangeCalendarProps extends AriaRangeCalendarProps<DateValue> {
|
|
4
3
|
errorMessage?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Show month/year picker dropdowns in the header instead of the static
|
|
6
|
+
* heading, letting users jump directly to a month/year instead of
|
|
7
|
+
* paging one month at a time.
|
|
8
|
+
* @default false
|
|
9
|
+
*/
|
|
10
|
+
showMonthYearPicker?: boolean;
|
|
5
11
|
}
|
|
6
|
-
export declare const RangeCalendar:
|
|
12
|
+
export declare const RangeCalendar: ({ className, errorMessage, showMonthYearPicker, commitBehavior, ...rest }: RangeCalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
@@ -2,7 +2,7 @@ import { StoryObj } from '@storybook/react-vite';
|
|
|
2
2
|
import { RangeCalendar } from './RangeCalendar';
|
|
3
3
|
type Story = StoryObj<typeof RangeCalendar>;
|
|
4
4
|
declare const _default: {
|
|
5
|
-
component: import('
|
|
5
|
+
component: ({ className, errorMessage, showMonthYearPicker, commitBehavior, ...rest }: import('./RangeCalendar').RangeCalendarProps) => import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
title: string;
|
|
7
7
|
tags: string[];
|
|
8
8
|
};
|
|
@@ -11,4 +11,5 @@ export declare const Primary: Story;
|
|
|
11
11
|
export declare const SelectedDates: Story;
|
|
12
12
|
export declare const Disabled: Story;
|
|
13
13
|
export declare const ReadOnly: Story;
|
|
14
|
+
export declare const WithMonthYearPicker: Story;
|
|
14
15
|
export declare const MaxRangeDuration: Story;
|
package/calendar/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { n as e, t } from "../chunks/calendar-
|
|
1
|
+
import { n as e, t } from "../chunks/calendar-DWdU1T7E.js";
|
|
2
2
|
export { e as Calendar, t as RangeCalendar };
|
package/checkbox/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { i as e, n as t, r as n, t as r } from "../chunks/checkbox-
|
|
1
|
+
import { i as e, n as t, r as n, t as r } from "../chunks/checkbox-BgCp0edW.js";
|
|
2
2
|
export { t as Checkbox, n as CheckboxButton, e as CheckboxField, r as CheckboxGroup };
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
import { n as e, t } from "./clsx-B1NYyfch.js";
|
|
2
|
+
import { t as n } from "./createLucideIcon-BgluSHFG.js";
|
|
3
|
+
import { t as r } from "./chevron-right-DwqboCdU.js";
|
|
4
|
+
import { n as i } from "./button-Ch860h28.js";
|
|
5
|
+
import { t as a } from "./heading-bnDePIbv.js";
|
|
6
|
+
import { t as o } from "./field-error-pJiSw4PN.js";
|
|
7
|
+
import { n as s } from "./select-DOLE5CtI.js";
|
|
8
|
+
import { a as c, c as l, o as u } from "./list-box-BT33Wiwt.js";
|
|
9
|
+
import * as d from "react";
|
|
10
|
+
import { Calendar as f, CalendarCell as p, CalendarGrid as m, CalendarMonthPicker as h, CalendarYearPicker as g, RangeCalendar as _, RangeCalendarContext as v, Select as y } from "react-aria-components";
|
|
11
|
+
import { jsx as b, jsxs as x } from "react/jsx-runtime";
|
|
12
|
+
import '../assets/calendar.css';var S = n("chevron-left", [["path", {
|
|
13
|
+
d: "m15 18-6-6 6-6",
|
|
14
|
+
key: "1wnfg3"
|
|
15
|
+
}]]), C = {
|
|
16
|
+
container: "_container_mn6zv_1",
|
|
17
|
+
calendar: "_calendar_mn6zv_6",
|
|
18
|
+
day: "_day_mn6zv_28",
|
|
19
|
+
header: "_header_mn6zv_90",
|
|
20
|
+
pickers: "_pickers_mn6zv_130",
|
|
21
|
+
range: "_range_mn6zv_180"
|
|
22
|
+
}, w = ({ weekdayStyle: e = "short", isReadOnly: n }) => {
|
|
23
|
+
let r = !!d.useContext(v);
|
|
24
|
+
return /* @__PURE__ */ b(m, {
|
|
25
|
+
weekdayStyle: e,
|
|
26
|
+
children: (e) => /* @__PURE__ */ b(p, {
|
|
27
|
+
date: e,
|
|
28
|
+
className: t(C.day, r && C.range),
|
|
29
|
+
"data-readonly": n || void 0
|
|
30
|
+
})
|
|
31
|
+
});
|
|
32
|
+
}, T = ({ isDisabled: e, isReadOnly: t, items: n, ...r }) => /* @__PURE__ */ x(y, {
|
|
33
|
+
isDisabled: e,
|
|
34
|
+
"data-readonly": t || void 0,
|
|
35
|
+
...r,
|
|
36
|
+
children: [/* @__PURE__ */ b(s, {
|
|
37
|
+
size: "small",
|
|
38
|
+
isDisabled: e
|
|
39
|
+
}), /* @__PURE__ */ b(c, { children: /* @__PURE__ */ b(l, {
|
|
40
|
+
items: n,
|
|
41
|
+
virtualized: !1,
|
|
42
|
+
size: "small",
|
|
43
|
+
children: (e) => /* @__PURE__ */ b(u, {
|
|
44
|
+
id: e.id,
|
|
45
|
+
textValue: e.formatted,
|
|
46
|
+
children: e.formatted
|
|
47
|
+
})
|
|
48
|
+
}) })]
|
|
49
|
+
}), E = ({ isDisabled: e, isReadOnly: t, showMonthYearPicker: n }) => {
|
|
50
|
+
let o = (n) => /* @__PURE__ */ b(T, {
|
|
51
|
+
...n,
|
|
52
|
+
isDisabled: e,
|
|
53
|
+
isReadOnly: t
|
|
54
|
+
});
|
|
55
|
+
return /* @__PURE__ */ x("header", {
|
|
56
|
+
className: C.header,
|
|
57
|
+
children: [
|
|
58
|
+
/* @__PURE__ */ b(i, {
|
|
59
|
+
slot: "previous",
|
|
60
|
+
size: "medium",
|
|
61
|
+
"data-readonly": t || void 0,
|
|
62
|
+
children: /* @__PURE__ */ b(S, { size: 20 })
|
|
63
|
+
}),
|
|
64
|
+
n ? /* @__PURE__ */ x("div", {
|
|
65
|
+
className: C.pickers,
|
|
66
|
+
children: [/* @__PURE__ */ b(h, { children: o }), /* @__PURE__ */ b(g, { children: o })]
|
|
67
|
+
}) : /* @__PURE__ */ b(a, {
|
|
68
|
+
level: 3,
|
|
69
|
+
elementType: "h2",
|
|
70
|
+
"data-disabled": e || void 0
|
|
71
|
+
}),
|
|
72
|
+
/* @__PURE__ */ b(i, {
|
|
73
|
+
slot: "next",
|
|
74
|
+
size: "medium",
|
|
75
|
+
"data-readonly": t || void 0,
|
|
76
|
+
children: /* @__PURE__ */ b(r, { size: 20 })
|
|
77
|
+
})
|
|
78
|
+
]
|
|
79
|
+
});
|
|
80
|
+
}, D = ({ className: t, errorMessage: n, showMonthYearPicker: r, ...i }) => /* @__PURE__ */ x("div", {
|
|
81
|
+
className: C.container,
|
|
82
|
+
children: [/* @__PURE__ */ x(f, {
|
|
83
|
+
className: e(C.calendar, t),
|
|
84
|
+
"data-readonly": i.isReadOnly || void 0,
|
|
85
|
+
...i,
|
|
86
|
+
children: [/* @__PURE__ */ b(E, {
|
|
87
|
+
...i,
|
|
88
|
+
showMonthYearPicker: r
|
|
89
|
+
}), /* @__PURE__ */ b(w, { ...i })]
|
|
90
|
+
}), /* @__PURE__ */ b(o, {
|
|
91
|
+
isInvalid: i.isInvalid,
|
|
92
|
+
children: n
|
|
93
|
+
})]
|
|
94
|
+
}), O = ({ className: t, errorMessage: n, showMonthYearPicker: r, commitBehavior: i, ...a }) => /* @__PURE__ */ x("div", {
|
|
95
|
+
className: C.container,
|
|
96
|
+
children: [/* @__PURE__ */ x(_, {
|
|
97
|
+
className: e(C.calendar, t),
|
|
98
|
+
"data-readonly": a.isReadOnly || void 0,
|
|
99
|
+
commitBehavior: i ?? (r ? "reset" : void 0),
|
|
100
|
+
...a,
|
|
101
|
+
children: [/* @__PURE__ */ b(E, {
|
|
102
|
+
...a,
|
|
103
|
+
showMonthYearPicker: r
|
|
104
|
+
}), /* @__PURE__ */ b(w, { ...a })]
|
|
105
|
+
}), /* @__PURE__ */ b(o, {
|
|
106
|
+
isInvalid: a.isInvalid,
|
|
107
|
+
children: n
|
|
108
|
+
})]
|
|
109
|
+
});
|
|
110
|
+
//#endregion
|
|
111
|
+
export { D as n, O as t };
|
|
@@ -3,9 +3,9 @@ import { t as e } from "./clsx-B1NYyfch.js";
|
|
|
3
3
|
import { t } from "./createLucideIcon-BgluSHFG.js";
|
|
4
4
|
import { t as n } from "./check-DV00NPU0.js";
|
|
5
5
|
import { t as r } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
6
|
-
import {
|
|
7
|
-
import { t as
|
|
8
|
-
import {
|
|
6
|
+
import { n as i, t as a } from "./label-CEYHiWSa.js";
|
|
7
|
+
import { t as o } from "./text-EUdAWwZz.js";
|
|
8
|
+
import { t as s } from "./field-error-pJiSw4PN.js";
|
|
9
9
|
import * as c from "react";
|
|
10
10
|
import { forwardRef as l, useContext as u } from "react";
|
|
11
11
|
import { CheckboxButton as d, CheckboxField as f, CheckboxGroup as p, CheckboxGroupStateContext as m, composeRenderProps as h } from "react-aria-components";
|
|
@@ -27,14 +27,14 @@ import '../assets/checkbox.css';var b = t("minus", [["path", {
|
|
|
27
27
|
className: e(x.checkboxButton, t),
|
|
28
28
|
ref: r,
|
|
29
29
|
...n
|
|
30
|
-
})), w = l(({ className: e, description: t, errorMessage: r, errorPosition:
|
|
30
|
+
})), w = l(({ className: e, description: t, errorMessage: r, errorPosition: i = "top", children: a, ...c }, l) => /* @__PURE__ */ v(S, {
|
|
31
31
|
...c,
|
|
32
32
|
children: [
|
|
33
|
-
t && /* @__PURE__ */ _(
|
|
33
|
+
t && /* @__PURE__ */ _(o, {
|
|
34
34
|
slot: "description",
|
|
35
35
|
children: t
|
|
36
36
|
}),
|
|
37
|
-
|
|
37
|
+
i === "top" && /* @__PURE__ */ _(s, { children: r }),
|
|
38
38
|
/* @__PURE__ */ _(C, {
|
|
39
39
|
ref: l,
|
|
40
40
|
className: e,
|
|
@@ -44,9 +44,9 @@ import '../assets/checkbox.css';var b = t("minus", [["path", {
|
|
|
44
44
|
size: 14,
|
|
45
45
|
color: y.iconOnColor
|
|
46
46
|
})
|
|
47
|
-
}),
|
|
47
|
+
}), a] })
|
|
48
48
|
}),
|
|
49
|
-
|
|
49
|
+
i === "bottom" && /* @__PURE__ */ _(s, { children: r })
|
|
50
50
|
]
|
|
51
51
|
}));
|
|
52
52
|
w.displayName = "Checkbox";
|
|
@@ -82,15 +82,15 @@ var T = (e, t) => {
|
|
|
82
82
|
...y,
|
|
83
83
|
className: e(x.checkboxGroup, f),
|
|
84
84
|
children: h(m, (e) => /* @__PURE__ */ v(g, { children: [
|
|
85
|
-
/* @__PURE__ */ _(
|
|
85
|
+
/* @__PURE__ */ _(i, {
|
|
86
86
|
popover: l,
|
|
87
|
-
children: t && /* @__PURE__ */ _(
|
|
87
|
+
children: t && /* @__PURE__ */ _(a, { children: t })
|
|
88
88
|
}),
|
|
89
|
-
n && /* @__PURE__ */ _(
|
|
89
|
+
n && /* @__PURE__ */ _(o, {
|
|
90
90
|
slot: "description",
|
|
91
91
|
children: n
|
|
92
92
|
}),
|
|
93
|
-
c === "top" && r && /* @__PURE__ */ _(
|
|
93
|
+
c === "top" && r && /* @__PURE__ */ _(s, { children: r }),
|
|
94
94
|
/* @__PURE__ */ v("div", {
|
|
95
95
|
className: x.checkboxList,
|
|
96
96
|
children: [u && /* @__PURE__ */ _(D, {
|
|
@@ -98,7 +98,7 @@ var T = (e, t) => {
|
|
|
98
98
|
checkboxes: e
|
|
99
99
|
}), e]
|
|
100
100
|
}),
|
|
101
|
-
c === "bottom" && r && /* @__PURE__ */ _(
|
|
101
|
+
c === "bottom" && r && /* @__PURE__ */ _(s, { children: r })
|
|
102
102
|
] }))
|
|
103
103
|
});
|
|
104
104
|
//#endregion
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
import { t as e } from "./clsx-B1NYyfch.js";
|
|
3
3
|
import { t } from "./chevron-down-CP7nEDei.js";
|
|
4
4
|
import { t as n } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
5
|
-
import {
|
|
6
|
-
import { t as
|
|
7
|
-
import {
|
|
8
|
-
import { a as s, c, t as l } from "./list-box-
|
|
5
|
+
import { n as r, t as i } from "./label-CEYHiWSa.js";
|
|
6
|
+
import { t as a } from "./text-EUdAWwZz.js";
|
|
7
|
+
import { t as o } from "./field-error-pJiSw4PN.js";
|
|
8
|
+
import { a as s, c, t as l } from "./list-box-BT33Wiwt.js";
|
|
9
9
|
import { useRef as u } from "react";
|
|
10
10
|
import { Button as d, ComboBox as f, Input as p } from "react-aria-components";
|
|
11
11
|
import { jsx as m, jsxs as h } from "react/jsx-runtime";
|
|
@@ -38,15 +38,15 @@ function v({ label: v, description: y, errorMessage: b, children: x, items: S, c
|
|
|
38
38
|
...O,
|
|
39
39
|
"data-readonly": O.isReadOnly || void 0,
|
|
40
40
|
children: [
|
|
41
|
-
/* @__PURE__ */ m(
|
|
41
|
+
/* @__PURE__ */ m(r, {
|
|
42
42
|
popover: E,
|
|
43
|
-
children: v && /* @__PURE__ */ m(
|
|
43
|
+
children: v && /* @__PURE__ */ m(i, { children: v })
|
|
44
44
|
}),
|
|
45
|
-
y && /* @__PURE__ */ m(
|
|
45
|
+
y && /* @__PURE__ */ m(a, {
|
|
46
46
|
slot: "description",
|
|
47
47
|
children: y
|
|
48
48
|
}),
|
|
49
|
-
w === "top" && /* @__PURE__ */ m(
|
|
49
|
+
w === "top" && /* @__PURE__ */ m(o, {
|
|
50
50
|
"data-testid": "fieldError",
|
|
51
51
|
children: b
|
|
52
52
|
}),
|
|
@@ -70,7 +70,7 @@ function v({ label: v, description: y, errorMessage: b, children: x, items: S, c
|
|
|
70
70
|
})
|
|
71
71
|
})]
|
|
72
72
|
}),
|
|
73
|
-
w === "bottom" && /* @__PURE__ */ m(
|
|
73
|
+
w === "bottom" && /* @__PURE__ */ m(o, {
|
|
74
74
|
"data-testid": "fieldError",
|
|
75
75
|
children: b
|
|
76
76
|
}),
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { t as e } from "./clsx-B1NYyfch.js";
|
|
2
2
|
import { t } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
3
|
-
import { t as
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
3
|
+
import { n, t as r } from "./label-CEYHiWSa.js";
|
|
4
|
+
import { t as i } from "./text-EUdAWwZz.js";
|
|
5
|
+
import { t as a } from "./field-error-pJiSw4PN.js";
|
|
6
6
|
import { t as o } from "./clear-button-la4Fb9_w.js";
|
|
7
7
|
import * as s from "react";
|
|
8
8
|
import { DateField as c, DateFieldStateContext as l, DateInput as u, DateSegment as d } from "react-aria-components";
|
|
@@ -34,15 +34,15 @@ import '../assets/date-field.css';var g = {
|
|
|
34
34
|
isDisabled: b,
|
|
35
35
|
className: e(_.dateField, t),
|
|
36
36
|
children: [
|
|
37
|
-
/* @__PURE__ */ f(
|
|
37
|
+
/* @__PURE__ */ f(n, {
|
|
38
38
|
popover: h,
|
|
39
|
-
children: u && /* @__PURE__ */ f(
|
|
39
|
+
children: u && /* @__PURE__ */ f(r, { children: u })
|
|
40
40
|
}),
|
|
41
|
-
o && /* @__PURE__ */ f(
|
|
41
|
+
o && /* @__PURE__ */ f(i, {
|
|
42
42
|
slot: "description",
|
|
43
43
|
children: o
|
|
44
44
|
}),
|
|
45
|
-
l === "top" && /* @__PURE__ */ f(
|
|
45
|
+
l === "top" && /* @__PURE__ */ f(a, { children: s }),
|
|
46
46
|
/* @__PURE__ */ f("div", {
|
|
47
47
|
className: e(_.inputField, { [_.medium]: d === "medium" }),
|
|
48
48
|
"data-testid": "date-field_input-field",
|
|
@@ -53,7 +53,7 @@ import '../assets/date-field.css';var g = {
|
|
|
53
53
|
isReadOnly: y
|
|
54
54
|
})] })
|
|
55
55
|
}),
|
|
56
|
-
l === "bottom" && /* @__PURE__ */ f(
|
|
56
|
+
l === "bottom" && /* @__PURE__ */ f(a, { children: s })
|
|
57
57
|
]
|
|
58
58
|
})), b = { dateSegment: "_dateSegment_15g5c_1" }, x = ({ className: t, ...n }) => /* @__PURE__ */ f(d, {
|
|
59
59
|
className: e(b.dateSegment, t),
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
import { n as e } from "./clsx-B1NYyfch.js";
|
|
3
3
|
import { t } from "./createLucideIcon-BgluSHFG.js";
|
|
4
|
-
import { n, t as r } from "./calendar-
|
|
4
|
+
import { n, t as r } from "./calendar-DWdU1T7E.js";
|
|
5
5
|
import { t as i } from "./useLocalizedStringFormatter-CeyBc0x0.js";
|
|
6
6
|
import { n as a } from "./button-Ch860h28.js";
|
|
7
|
-
import {
|
|
8
|
-
import { t as
|
|
9
|
-
import {
|
|
7
|
+
import { n as o, t as s } from "./label-CEYHiWSa.js";
|
|
8
|
+
import { t as c } from "./text-EUdAWwZz.js";
|
|
9
|
+
import { t as l } from "./field-error-pJiSw4PN.js";
|
|
10
10
|
import { t as u } from "./clear-button-la4Fb9_w.js";
|
|
11
|
-
import { n as d, r as f, t as p } from "./date-field-
|
|
11
|
+
import { n as d, r as f, t as p } from "./date-field-Q3bQ5P_t.js";
|
|
12
12
|
import * as m from "react";
|
|
13
13
|
import { DatePicker as h, DatePickerStateContext as g, DateRangePicker as _, DateRangePickerStateContext as v, Group as y, Popover as b } from "react-aria-components";
|
|
14
14
|
import { jsx as x, jsxs as S } from "react/jsx-runtime";
|
|
@@ -126,15 +126,15 @@ import '../assets/date-picker.css';var T = t("calendar-days", [
|
|
|
126
126
|
ref: b,
|
|
127
127
|
...y,
|
|
128
128
|
children: [
|
|
129
|
-
/* @__PURE__ */ x(
|
|
129
|
+
/* @__PURE__ */ x(o, {
|
|
130
130
|
popover: p,
|
|
131
|
-
children: u && /* @__PURE__ */ x(
|
|
131
|
+
children: u && /* @__PURE__ */ x(s, { children: u })
|
|
132
132
|
}),
|
|
133
|
-
r && /* @__PURE__ */ x(
|
|
133
|
+
r && /* @__PURE__ */ x(c, {
|
|
134
134
|
slot: "description",
|
|
135
135
|
children: r
|
|
136
136
|
}),
|
|
137
|
-
a === "top" && /* @__PURE__ */ x(
|
|
137
|
+
a === "top" && /* @__PURE__ */ x(l, { children: i }),
|
|
138
138
|
/* @__PURE__ */ x(A, {
|
|
139
139
|
isClearable: m,
|
|
140
140
|
isReadOnly: g,
|
|
@@ -143,7 +143,7 @@ import '../assets/date-picker.css';var T = t("calendar-days", [
|
|
|
143
143
|
...y,
|
|
144
144
|
children: /* @__PURE__ */ x(d, { children: (e) => /* @__PURE__ */ x(f, { segment: e }) })
|
|
145
145
|
}),
|
|
146
|
-
a === "bottom" && /* @__PURE__ */ x(
|
|
146
|
+
a === "bottom" && /* @__PURE__ */ x(l, { children: i }),
|
|
147
147
|
/* @__PURE__ */ x(j, { children: /* @__PURE__ */ x(n, {}) })
|
|
148
148
|
]
|
|
149
149
|
})), N = ({ className: t, description: n, errorMessage: i, errorPosition: a = "top", label: u, popover: m, isClearable: h = !1, isReadOnly: g, isDisabled: v, size: y, ...b }) => /* @__PURE__ */ S(_, {
|
|
@@ -152,15 +152,15 @@ import '../assets/date-picker.css';var T = t("calendar-days", [
|
|
|
152
152
|
isDisabled: v,
|
|
153
153
|
...b,
|
|
154
154
|
children: [
|
|
155
|
-
/* @__PURE__ */ x(
|
|
155
|
+
/* @__PURE__ */ x(o, {
|
|
156
156
|
popover: m,
|
|
157
|
-
children: u && /* @__PURE__ */ x(
|
|
157
|
+
children: u && /* @__PURE__ */ x(s, { children: u })
|
|
158
158
|
}),
|
|
159
|
-
n && /* @__PURE__ */ x(
|
|
159
|
+
n && /* @__PURE__ */ x(c, {
|
|
160
160
|
slot: "description",
|
|
161
161
|
children: n
|
|
162
162
|
}),
|
|
163
|
-
a === "top" && /* @__PURE__ */ x(
|
|
163
|
+
a === "top" && /* @__PURE__ */ x(l, { children: i }),
|
|
164
164
|
/* @__PURE__ */ S(A, {
|
|
165
165
|
isClearable: h,
|
|
166
166
|
isReadOnly: g,
|
|
@@ -179,7 +179,7 @@ import '../assets/date-picker.css';var T = t("calendar-days", [
|
|
|
179
179
|
})
|
|
180
180
|
]
|
|
181
181
|
}),
|
|
182
|
-
a === "bottom" && /* @__PURE__ */ x(
|
|
182
|
+
a === "bottom" && /* @__PURE__ */ x(l, { children: i }),
|
|
183
183
|
/* @__PURE__ */ x(j, { children: /* @__PURE__ */ x(r, {}) })
|
|
184
184
|
]
|
|
185
185
|
});
|