@egen-civitas/esm-styleguide 4.0.0 → 5.0.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 +42 -0
- package/README.md +1 -1
- package/dist/cards/card-header.component.d.ts.map +1 -1
- package/dist/cards/card-header.component.js +4 -6
- package/dist/cards/card-header.stories.js +11 -7
- package/dist/cards/decorated-card/card-decorations.js +1 -1
- package/dist/cards/decorated-card/decorated-card.component.js +1 -1
- package/dist/cards/decorated-card/{decorated-card.module.scss → decorated-card.module.css} +45 -70
- package/dist/carousel/circular-gallery/circular-gallery.component.js +1 -1
- package/dist/carousel/circular-gallery/circular-gallery.module.css +140 -0
- package/dist/carousel/circular-gallery/gallery-image.component.js +1 -1
- package/dist/carousel/circular-gallery/gallery-tabs.component.js +1 -1
- package/dist/carousel/image-swiper/image-swiper.component.js +1 -1
- package/dist/carousel/image-swiper/image-swiper.module.css +31 -0
- package/dist/carousel/slider/carousel.component.js +1 -1
- package/dist/carousel/slider/slider-container.component.js +1 -1
- package/dist/carousel/slider/slider-dot-button.component.js +1 -1
- package/dist/carousel/slider/slider.component.js +1 -1
- package/dist/carousel/slider/slider.module.css +133 -0
- package/dist/carousel/slider/thumbs-slider.component.js +1 -1
- package/dist/carousel/testimonial-card/testimonial-card-stack.component.js +1 -1
- package/dist/carousel/testimonial-card/testimonial-card-stack.module.css +5 -0
- package/dist/carousel/testimonial-card/testimonial-card.component.js +1 -1
- package/dist/carousel/testimonial-card/testimonial-card.module.css +51 -0
- package/dist/cascading-nav-dropdown/cascading-nav-dropdown.component.js +1 -1
- package/dist/cascading-nav-dropdown/{cascading-nav-dropdown.module.scss → cascading-nav-dropdown.module.css} +27 -52
- package/dist/cascading-nav-dropdown/column-with-search.component.js +1 -1
- package/dist/classification-tags/classification-tags.component.d.ts +0 -19
- package/dist/classification-tags/classification-tags.component.d.ts.map +1 -1
- package/dist/classification-tags/classification-tags.component.js +20 -5
- package/dist/config-schema.d.ts +3 -3
- package/dist/config-schema.d.ts.map +1 -1
- package/dist/config-schema.js +3 -3
- package/dist/containers/folder-gallery/folder-gallery.component.js +1 -1
- package/dist/containers/folder-gallery/{folder-gallery.module.scss → folder-gallery.module.css} +4 -32
- package/dist/containers/layout-grid/layout-grid.component.js +1 -1
- package/dist/containers/layout-grid/layout-grid.module.css +105 -0
- package/dist/content-section/content-section.component.js +1 -1
- package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts +26 -8
- package/dist/custom-overflow-menu/custom-overflow-menu.component.d.ts.map +1 -1
- package/dist/custom-overflow-menu/custom-overflow-menu.component.js +66 -29
- package/dist/custom-overflow-menu/custom-overflow-menu.module.css +82 -0
- package/dist/data-table-batch-actions/data-table-batch-actions.component.d.ts +14 -1
- package/dist/data-table-batch-actions/data-table-batch-actions.component.d.ts.map +1 -1
- package/dist/data-table-batch-actions/data-table-batch-actions.component.js +42 -20
- package/dist/datepicker/auto-close-dialog.component.js +1 -1
- package/dist/datepicker/calendar-popover.component.js +3 -3
- package/dist/datepicker/date-picker-input.component.d.ts +1 -1
- package/dist/datepicker/date-picker-input.component.js +1 -1
- package/dist/datepicker/datepicker.module.css +540 -0
- package/dist/datepicker/egen-date-picker.component.d.ts +1 -1
- package/dist/datepicker/egen-date-picker.component.d.ts.map +1 -1
- package/dist/datepicker/egen-date-picker.component.js +13 -10
- package/dist/datepicker/egen-date-range-picker.component.d.ts +1 -1
- package/dist/datepicker/egen-date-range-picker.component.d.ts.map +1 -1
- package/dist/datepicker/egen-date-range-picker.component.js +15 -11
- package/dist/datepicker/month-year.component.d.ts +1 -1
- package/dist/datepicker/month-year.component.js +1 -1
- package/dist/dialogs/card-modal/card-modal.component.js +1 -1
- package/dist/dialogs/card-modal/{card-modal.module.scss → card-modal.module.css} +10 -32
- package/dist/dialogs/card-modal/card-modal.warp-glow.js +1 -1
- package/dist/empty-card/empty-card.component.d.ts.map +1 -1
- package/dist/empty-card/empty-card.component.js +6 -7
- package/dist/error-state/error-state.component.d.ts.map +1 -1
- package/dist/error-state/error-state.component.js +5 -5
- package/dist/fields/dynamic-field.component.js +1 -1
- package/dist/fields/{dynamic-field.module.scss → dynamic-field.module.css} +60 -107
- package/dist/fields/dynamic-field.types.d.ts +1 -1
- package/dist/fields/dynamic-field.types.d.ts.map +1 -1
- package/dist/fields/field-icon.component.js +1 -1
- package/dist/fields/kinetic-label.component.js +1 -1
- package/dist/fields/validation-icon.component.js +1 -1
- package/dist/glass-card/liquid-glass-card.component.js +1 -1
- package/dist/glass-card/liquid-glass-card.module.css +121 -0
- package/dist/hero-mosaic/hero-mosaic.component.js +1 -1
- package/dist/hero-mosaic/{hero-mosaic.module.scss → hero-mosaic.module.css} +32 -28
- package/dist/hero-mosaic/hero-tile-card.component.js +1 -1
- package/dist/icons/error-filled.icon.d.ts +1 -2
- package/dist/icons/error-filled.icon.d.ts.map +1 -1
- package/dist/icons/error-filled.icon.js +1 -2
- package/dist/icons/icons.js +1 -1
- package/dist/icons/icons.module.css +3 -0
- package/dist/master-detail/entity-detail-browser/entity-detail-browser.component.js +1 -1
- package/dist/master-detail/entity-detail-browser/{entity-detail-browser.module.scss → entity-detail-browser.module.css} +74 -66
- package/dist/master-detail/entity-detail-browser/gradient-blur.component.js +1 -1
- package/dist/modals/index.d.ts.map +1 -1
- package/dist/modals/index.js +24 -1
- package/dist/notifications/actionable-notification.component.d.ts.map +1 -1
- package/dist/notifications/actionable-notification.component.js +6 -9
- package/dist/notifications/notification.component.d.ts.map +1 -1
- package/dist/notifications/notification.component.js +5 -7
- package/dist/page-background/page-background.utils.d.ts +3 -5
- package/dist/page-background/page-background.utils.d.ts.map +1 -1
- package/dist/page-background/page-background.utils.js +3 -7
- package/dist/page-header/page-header.component.js +1 -1
- package/dist/page-header/page-header.module.css +28 -0
- package/dist/pagination/pagination.component.d.ts +6 -3
- package/dist/pagination/pagination.component.d.ts.map +1 -1
- package/dist/pagination/pagination.component.js +98 -33
- package/dist/pictograms/pictograms.js +1 -1
- package/dist/pictograms/pictograms.module.css +3 -0
- package/dist/public.d.ts +1 -0
- package/dist/public.d.ts.map +1 -1
- package/dist/public.js +1 -0
- package/dist/responsive-wrapper/responsive-wrapper.component.d.ts +1 -1
- package/dist/responsive-wrapper/responsive-wrapper.component.js +3 -2
- package/dist/responsive-wrapper/responsive-wrapper.stories.js +3 -3
- package/dist/selections/interactive-selector/interactive-selector.component.js +1 -1
- package/dist/selections/interactive-selector/{interactive-selector.module.scss → interactive-selector.module.css} +15 -49
- package/dist/selections/select-popover/select-avatar.component.js +1 -1
- package/dist/selections/select-popover/select-content.component.js +1 -1
- package/dist/selections/select-popover/{select-popover.module.scss → select-popover.module.css} +22 -34
- package/dist/selections/select-popover/select-trigger.component.js +1 -1
- package/dist/sheet/sheet-content.component.js +1 -1
- package/dist/sheet/sheet-overlay.component.js +1 -1
- package/dist/sheet/sheet-parts.component.js +1 -1
- package/dist/sheet/sheet-trigger.component.js +1 -1
- package/dist/sheet/{sheet.module.scss → sheet.module.css} +12 -31
- package/dist/snackbars/snackbar.component.d.ts.map +1 -1
- package/dist/snackbars/snackbar.component.js +8 -10
- package/dist/snackbars/{snackbar.module.scss → snackbar.module.css} +0 -2
- package/dist/styles.css +1364 -0
- package/dist/toasts/toast-progress-bar.component.js +1 -1
- package/dist/toasts/toast.component.js +1 -1
- package/dist/toasts/{toast.module.scss → toast.module.css} +27 -34
- package/dist/top-bar/top-bar.component.d.ts +1 -1
- package/dist/top-bar/top-bar.component.d.ts.map +1 -1
- package/dist/ui/alert.d.ts +10 -0
- package/dist/ui/alert.d.ts.map +1 -0
- package/dist/ui/alert.js +47 -0
- package/dist/ui/app-header.d.ts +10 -0
- package/dist/ui/app-header.d.ts.map +1 -0
- package/dist/ui/app-header.js +36 -0
- package/dist/ui/badge.d.ts +10 -0
- package/dist/ui/badge.d.ts.map +1 -0
- package/dist/ui/badge.js +34 -0
- package/dist/ui/button.d.ts +11 -0
- package/dist/ui/button.d.ts.map +1 -0
- package/dist/ui/button.js +48 -0
- package/dist/ui/cn.d.ts +7 -0
- package/dist/ui/cn.d.ts.map +1 -0
- package/dist/ui/cn.js +8 -0
- package/dist/ui/dialog.d.ts +18 -0
- package/dist/ui/dialog.d.ts.map +1 -0
- package/dist/ui/dialog.js +105 -0
- package/dist/ui/dropdown-menu.d.ts +26 -0
- package/dist/ui/dropdown-menu.d.ts.map +1 -0
- package/dist/ui/dropdown-menu.js +143 -0
- package/dist/ui/icon-button.d.ts +17 -0
- package/dist/ui/icon-button.d.ts.map +1 -0
- package/dist/ui/icon-button.js +30 -0
- package/dist/ui/index.d.ts +23 -0
- package/dist/ui/index.d.ts.map +1 -0
- package/dist/ui/index.js +25 -0
- package/dist/ui/inline-loading.d.ts +11 -0
- package/dist/ui/inline-loading.d.ts.map +1 -0
- package/dist/ui/inline-loading.js +34 -0
- package/dist/ui/input.d.ts +4 -0
- package/dist/ui/input.d.ts.map +1 -0
- package/dist/ui/input.js +14 -0
- package/dist/ui/label.d.ts +5 -0
- package/dist/ui/label.d.ts.map +1 -0
- package/dist/ui/label.js +14 -0
- package/dist/ui/layer.d.ts +8 -0
- package/dist/ui/layer.d.ts.map +1 -0
- package/dist/ui/layer.js +14 -0
- package/dist/ui/link.d.ts +11 -0
- package/dist/ui/link.d.ts.map +1 -0
- package/dist/ui/link.js +15 -0
- package/dist/ui/modal.d.ts +14 -0
- package/dist/ui/modal.d.ts.map +1 -0
- package/dist/ui/modal.js +48 -0
- package/dist/ui/notification-banner.d.ts +19 -0
- package/dist/ui/notification-banner.d.ts.map +1 -0
- package/dist/ui/notification-banner.js +75 -0
- package/dist/ui/separator.d.ts +5 -0
- package/dist/ui/separator.d.ts.map +1 -0
- package/dist/ui/separator.js +16 -0
- package/dist/ui/spinner.d.ts +4 -0
- package/dist/ui/spinner.d.ts.map +1 -0
- package/dist/ui/spinner.js +15 -0
- package/dist/ui/switch.d.ts +7 -0
- package/dist/ui/switch.d.ts.map +1 -0
- package/dist/ui/switch.js +19 -0
- package/dist/ui/table.d.ts +11 -0
- package/dist/ui/table.d.ts.map +1 -0
- package/dist/ui/table.js +66 -0
- package/dist/ui/tabs.d.ts +12 -0
- package/dist/ui/tabs.d.ts.map +1 -0
- package/dist/ui/tabs.js +52 -0
- package/dist/ui/text-input.d.ts +19 -0
- package/dist/ui/text-input.d.ts.map +1 -0
- package/dist/ui/text-input.js +35 -0
- package/dist/ui/tile.d.ts +10 -0
- package/dist/ui/tile.d.ts.map +1 -0
- package/dist/ui/tile.js +55 -0
- package/dist/ui/tooltip.d.ts +8 -0
- package/dist/ui/tooltip.d.ts.map +1 -0
- package/dist/ui/tooltip.js +42 -0
- package/dist/utils.d.ts +3 -4
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +2 -3
- package/dist/workbench/section-nav-panel.component.d.ts +1 -1
- package/dist/workbench/section-nav-panel.component.d.ts.map +1 -1
- package/dist/workbench/section-nav-panel.component.js +4 -19
- package/dist/workbench/{section-nav-panel.module.scss → section-nav-panel.module.css} +14 -20
- package/dist/workbench/splitter.component.js +1 -1
- package/dist/workbench/tool-window-rail.component.js +1 -1
- package/dist/workbench/tool-window-zone.component.js +1 -1
- package/dist/workbench/workbench.module.css +363 -0
- package/dist/workspaces/action-menu-button/action-menu-button.component.d.ts.map +1 -1
- package/dist/workspaces/action-menu-button/action-menu-button.component.js +5 -10
- package/dist/workspaces/action-menu-button/action-menu-button.module.css +94 -0
- package/dist/workspaces/container/action-menu.component.js +1 -1
- package/dist/workspaces/container/action-menu.module.css +68 -0
- package/dist/workspaces/container/workspace-container.component.d.ts.map +1 -1
- package/dist/workspaces/container/workspace-container.component.js +13 -14
- package/dist/workspaces/container/workspace-renderer.component.js +2 -2
- package/dist/workspaces/container/workspace.module.css +204 -0
- package/dist/workspaces/notification/workspace-notification.component.d.ts.map +1 -1
- package/dist/workspaces/notification/workspace-notification.component.js +32 -28
- package/dist/workspaces2/action-menu2/action-menu-button2.component.d.ts.map +1 -1
- package/dist/workspaces2/action-menu2/action-menu-button2.component.js +5 -10
- package/dist/workspaces2/action-menu2/action-menu-button2.module.css +93 -0
- package/dist/workspaces2/action-menu2/action-menu2.component.d.ts.map +1 -1
- package/dist/workspaces2/action-menu2/action-menu2.component.js +4 -5
- package/dist/workspaces2/action-menu2/action-menu2.module.css +70 -0
- package/dist/workspaces2/active-workspace-window.component.js +2 -2
- package/dist/workspaces2/workspace-windows-and-menu.component.js +1 -1
- package/dist/workspaces2/workspace-windows-and-menu.module.css +27 -0
- package/dist/workspaces2/workspace2-close-prompt.modal.d.ts.map +1 -1
- package/dist/workspaces2/workspace2-close-prompt.modal.js +7 -6
- package/dist/workspaces2/workspace2.component.js +11 -12
- package/dist/workspaces2/workspace2.module.css +163 -0
- package/package.json +15 -15
- package/dist/_all.scss +0 -31
- package/dist/_carbon-bridge.scss +0 -194
- package/dist/_glass.scss +0 -75
- package/dist/_overrides.scss +0 -731
- package/dist/_panel.scss +0 -123
- package/dist/_vars.scss +0 -111
- package/dist/animations/_animations.scss +0 -102
- package/dist/animations/_index.scss +0 -5
- package/dist/animations/_keyframes.scss +0 -135
- package/dist/animations/_mixins.scss +0 -16
- package/dist/animations/_tokens.scss +0 -16
- package/dist/animations/_workbench-motion.scss +0 -36
- package/dist/cards/card-header.module.scss +0 -45
- package/dist/cards/decorated-card/_decoration-bleed.scss +0 -26
- package/dist/carousel/circular-gallery/circular-gallery.module.scss +0 -165
- package/dist/carousel/image-swiper/image-swiper.module.scss +0 -43
- package/dist/carousel/slider/slider.module.scss +0 -176
- package/dist/carousel/testimonial-card/testimonial-card-stack.module.scss +0 -18
- package/dist/carousel/testimonial-card/testimonial-card.module.scss +0 -73
- package/dist/components/_breadcrumbs.scss +0 -11
- package/dist/components/_canvas.scss +0 -19
- package/dist/components/_general.scss +0 -337
- package/dist/components/_main-content.scss +0 -28
- package/dist/components/_panel-overrides.scss +0 -130
- package/dist/containers/layout-grid/layout-grid.module.scss +0 -143
- package/dist/custom-overflow-menu/custom-overflow-menu.module.scss +0 -38
- package/dist/datepicker/datepicker.module.scss +0 -502
- package/dist/empty-card/empty-card.module.scss +0 -27
- package/dist/error-state/error-state.module.scss +0 -21
- package/dist/glass-card/liquid-glass-card.module.scss +0 -154
- package/dist/icons/icons.module.scss +0 -5
- package/dist/modals/_modals.scss +0 -13
- package/dist/notifications/_actionable-notifications.scss +0 -23
- package/dist/notifications/_notifications.scss +0 -22
- package/dist/page-header/page-header.module.scss +0 -28
- package/dist/pagination/pagination.module.scss +0 -66
- package/dist/pictograms/pictograms.module.scss +0 -5
- package/dist/snackbars/_snackbars.scss +0 -31
- package/dist/spinner/_loader.scss +0 -94
- package/dist/spinner/_spinner.scss +0 -1
- package/dist/toasts/_toasts.scss +0 -22
- package/dist/workbench/workbench.module.scss +0 -439
- package/dist/workspaces/action-menu-button/action-menu-button.module.scss +0 -111
- package/dist/workspaces/container/action-menu.module.scss +0 -90
- package/dist/workspaces/container/workspace.module.scss +0 -276
- package/dist/workspaces/notification/workspace-notification.module.scss +0 -5
- package/dist/workspaces2/action-menu2/action-menu-button2.module.scss +0 -113
- package/dist/workspaces2/action-menu2/action-menu2.module.scss +0 -87
- package/dist/workspaces2/workspace-windows-and-menu.module.scss +0 -32
- package/dist/workspaces2/workspace2-close-prompt.module.scss +0 -8
- package/dist/workspaces2/workspace2.module.scss +0 -228
- package/src/_vars.scss +0 -111
- /package/dist/content-section/{content-section.module.scss → content-section.module.css} +0 -0
|
@@ -0,0 +1,540 @@
|
|
|
1
|
+
/* Structure de base du sélecteur de dates (reprend ce que fournissait l'ancienne feuille Carbon : formulaire, étiquette, conteneur). */
|
|
2
|
+
.formItem {
|
|
3
|
+
display: flex;
|
|
4
|
+
flex: 1 1 auto;
|
|
5
|
+
flex-direction: column;
|
|
6
|
+
align-items: flex-start;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
.datePicker {
|
|
10
|
+
display: flex;
|
|
11
|
+
max-width: 100%;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.container {
|
|
15
|
+
position: relative;
|
|
16
|
+
display: flex;
|
|
17
|
+
flex-direction: column;
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
.label {
|
|
21
|
+
display: inline-block;
|
|
22
|
+
margin-bottom: 0.5rem;
|
|
23
|
+
color: var(--colors-surface-muted-foreground, #525252);
|
|
24
|
+
font-size: 0.75rem;
|
|
25
|
+
line-height: 1.33333;
|
|
26
|
+
letter-spacing: 0.32px;
|
|
27
|
+
vertical-align: baseline;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.labelDisabled {
|
|
31
|
+
color: var(--colors-surface-muted-foreground, #c6c6c6);
|
|
32
|
+
opacity: 0.6;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
.disabled {
|
|
36
|
+
cursor: not-allowed;
|
|
37
|
+
opacity: 0.6;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
.short,
|
|
41
|
+
.light,
|
|
42
|
+
.calendar,
|
|
43
|
+
.day {
|
|
44
|
+
/* Points d'ancrage : les variantes sont portées par les attributs et règles ci-dessous. */
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.short .inputWrapper {
|
|
49
|
+
width: 6.5rem;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
.inputGroup {
|
|
53
|
+
align-items: center;
|
|
54
|
+
background-color: var(--ui-field);
|
|
55
|
+
border-block-end: 1px solid var(--ui-border-strong);
|
|
56
|
+
color: var(--ui-text-primary);
|
|
57
|
+
display: flex;
|
|
58
|
+
position: relative;
|
|
59
|
+
}
|
|
60
|
+
.inputGroup:focus-within, .inputGroup.focused {
|
|
61
|
+
outline: 2px solid var(--ui-focus, #0f62fe);
|
|
62
|
+
outline-offset: -2px;
|
|
63
|
+
}
|
|
64
|
+
@media screen and (prefers-contrast) {
|
|
65
|
+
.inputGroup:focus-within, .inputGroup.focused {
|
|
66
|
+
outline-style: dotted;
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
.inputGroup[data-invalid] {
|
|
70
|
+
outline: 2px solid var(--ui-support-error, #da1e28);
|
|
71
|
+
outline-offset: -2px;
|
|
72
|
+
}
|
|
73
|
+
@media screen and (prefers-contrast) {
|
|
74
|
+
.inputGroup[data-invalid] {
|
|
75
|
+
outline-style: dotted;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
.inputGroup[data-invalid] {
|
|
79
|
+
color: var(--ui-support-error, #da1e28);
|
|
80
|
+
}
|
|
81
|
+
.inputGroup[data-disabled] {
|
|
82
|
+
border-block-end: 1px solid rgba(0, 0, 0, 0);
|
|
83
|
+
color: var(--ui-text-disabled, rgba(22, 22, 22, 0.25));
|
|
84
|
+
cursor: not-allowed;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.inputWrapper .inputSegment, .dateInputWrapper .inputSegment {
|
|
88
|
+
caret-color: var(--ui-text-primary);
|
|
89
|
+
}
|
|
90
|
+
.inputWrapper .inputSegment:focus, .dateInputWrapper .inputSegment:focus {
|
|
91
|
+
outline: unset;
|
|
92
|
+
background-color: var(--ui-layer-selected-hover);
|
|
93
|
+
}
|
|
94
|
+
.inputWrapper [data-placeholder].inputSegment, .dateInputWrapper [data-placeholder].inputSegment {
|
|
95
|
+
color: var(--ui-text-disabled, rgba(22, 22, 22, 0.25));
|
|
96
|
+
}
|
|
97
|
+
.inputWrapper [data-focused=true].inputSegment, .dateInputWrapper [data-focused=true].inputSegment {
|
|
98
|
+
animation: cursor-blink 1s step-end infinite;
|
|
99
|
+
}
|
|
100
|
+
:global([dir="rtl"]) .inputWrapper [data-focused=true].inputSegment, :global([dir="rtl"]) .dateInputWrapper [data-focused=true].inputSegment, .inputWrapper :global([dir="rtl"]) [data-focused=true].inputSegment, .dateInputWrapper :global([dir="rtl"]) [data-focused=true].inputSegment {
|
|
101
|
+
animation: cursor-blink-rtl 1s step-end infinite;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.inputWrapper [data-readonly]:has(+ [data-placeholder]), .dateInputWrapper [data-readonly]:has(+ [data-placeholder]) {
|
|
105
|
+
color: var(--ui-text-disabled, rgba(22, 22, 22, 0.25));
|
|
106
|
+
}
|
|
107
|
+
.inputWrapper [data-placeholder] + [data-readonly], .dateInputWrapper [data-placeholder] + [data-readonly] {
|
|
108
|
+
color: var(--ui-text-disabled, rgba(22, 22, 22, 0.25));
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
@keyframes cursor-blink {
|
|
112
|
+
from, to {
|
|
113
|
+
border-right: 1px solid transparent;
|
|
114
|
+
}
|
|
115
|
+
50% {
|
|
116
|
+
border-right: 1px solid currentColor;
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
@keyframes cursor-blink-rtl {
|
|
120
|
+
from, to {
|
|
121
|
+
border-left: 1px solid transparent;
|
|
122
|
+
}
|
|
123
|
+
50% {
|
|
124
|
+
border-left: 1px solid currentColor;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
.inputWrapper, .dateInputWrapper {
|
|
128
|
+
inline-size: 15rem;
|
|
129
|
+
margin-left: 1rem;
|
|
130
|
+
min-width: 10rem;
|
|
131
|
+
max-width: 15rem;
|
|
132
|
+
}
|
|
133
|
+
.inputWrapperMd {
|
|
134
|
+
block-size: 2.5rem;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
.inputWrapperSm {
|
|
138
|
+
block-size: 2rem;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.inputWrapperLg {
|
|
142
|
+
block-size: 3rem;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.inputsWrapper {
|
|
146
|
+
display: flex;
|
|
147
|
+
min-width: 10rem;
|
|
148
|
+
max-width: 15rem;
|
|
149
|
+
margin-inline-start: 1rem;
|
|
150
|
+
inline-size: 15rem;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.inputsWrapperSm {
|
|
154
|
+
block-size: 2rem;
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
.inputsWrapperMd {
|
|
158
|
+
block-size: 2.5rem;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.inputsWrapperLg {
|
|
162
|
+
block-size: 3rem;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
.dateInputWrapper {
|
|
166
|
+
min-width: unset;
|
|
167
|
+
margin: 0px;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
.startInput {
|
|
171
|
+
flex-basis: fit-content;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.endInput {
|
|
175
|
+
padding-right: unset;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.separator {
|
|
179
|
+
display: flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
margin-inline: 0.5rem;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.inputGroup:has([data-placeholder]) > .inputsWrapper > .separator > span {
|
|
185
|
+
color: var(--ui-text-disabled, rgba(22, 22, 22, 0.25));
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.invalidText {
|
|
189
|
+
color: var(--ui-text-error, #da1e28) !important;
|
|
190
|
+
font-size: 0.75rem;
|
|
191
|
+
font-weight: 400 !important;
|
|
192
|
+
margin: 0.25rem 0 0;
|
|
193
|
+
overflow: hidden;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
@keyframes expand-in {
|
|
197
|
+
from {
|
|
198
|
+
opacity: 0;
|
|
199
|
+
transform: scale(0.93);
|
|
200
|
+
}
|
|
201
|
+
to {
|
|
202
|
+
opacity: 1;
|
|
203
|
+
transform: scale(1);
|
|
204
|
+
}
|
|
205
|
+
}
|
|
206
|
+
.popover {
|
|
207
|
+
transform-origin: top center;
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
.popover[data-placement=top],
|
|
211
|
+
.popover[data-placement=top-start],
|
|
212
|
+
.popover[data-placement=top-end] {
|
|
213
|
+
transform-origin: bottom center;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
.popover[data-entering] {
|
|
217
|
+
animation: expand-in 110ms cubic-bezier(0, 0, 0.38, 0.9);
|
|
218
|
+
}
|
|
219
|
+
@media screen and (prefers-reduced-motion: reduce) {
|
|
220
|
+
.popover[data-entering] {
|
|
221
|
+
animation: none;
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
.dialog {
|
|
226
|
+
box-shadow: 0 2px 6px var(--ui-shadow, rgba(0, 0, 0, 0.3));
|
|
227
|
+
background-color: var(--ui-layer-01, #f4f4f4);
|
|
228
|
+
overflow: hidden;
|
|
229
|
+
padding: 0.25rem 0.25rem 0.5rem 0.25rem;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
.header {
|
|
233
|
+
margin-top: 0.5rem;
|
|
234
|
+
margin-bottom: 0.5rem;
|
|
235
|
+
display: flex;
|
|
236
|
+
flex-direction: row;
|
|
237
|
+
flex-wrap: nowrap;
|
|
238
|
+
justify-content: space-between;
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
.flatButton {
|
|
242
|
+
box-sizing: border-box;
|
|
243
|
+
padding: 0;
|
|
244
|
+
border: 0;
|
|
245
|
+
margin: 0;
|
|
246
|
+
font-family: inherit;
|
|
247
|
+
font-size: 100%;
|
|
248
|
+
vertical-align: baseline;
|
|
249
|
+
}
|
|
250
|
+
.flatButton *,
|
|
251
|
+
.flatButton *::before,
|
|
252
|
+
.flatButton *::after {
|
|
253
|
+
box-sizing: inherit;
|
|
254
|
+
}
|
|
255
|
+
.flatButton {
|
|
256
|
+
background-color: inherit;
|
|
257
|
+
display: inline-flex;
|
|
258
|
+
}
|
|
259
|
+
.flatButton:hover:not(:disabled) {
|
|
260
|
+
background-color: var(--ui-layer-hover);
|
|
261
|
+
}
|
|
262
|
+
.flatButton:disabled > svg {
|
|
263
|
+
fill: var(--ui-text-disabled, rgba(22, 22, 22, 0.25));
|
|
264
|
+
}
|
|
265
|
+
.flatButton > svg {
|
|
266
|
+
display: block;
|
|
267
|
+
margin: auto;
|
|
268
|
+
text-align: center;
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
[data-invalid] > .flatButton > svg {
|
|
272
|
+
--egen-icon-fill: var(--ui-support-error, #da1e28);
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
.flatButtonMd {
|
|
276
|
+
height: 2.5rem;
|
|
277
|
+
width: 2.5rem;
|
|
278
|
+
}
|
|
279
|
+
|
|
280
|
+
.flatButtonSm {
|
|
281
|
+
height: 2rem;
|
|
282
|
+
width: 2rem;
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
.flatButtonLg {
|
|
286
|
+
height: 3rem;
|
|
287
|
+
width: 3rem;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
.monthYear {
|
|
291
|
+
box-sizing: border-box;
|
|
292
|
+
padding: 0;
|
|
293
|
+
border: 0;
|
|
294
|
+
margin: 0;
|
|
295
|
+
font-family: inherit;
|
|
296
|
+
font-size: 100%;
|
|
297
|
+
vertical-align: baseline;
|
|
298
|
+
font-size: var(--ui-heading-compact-01-font-size, 0.875rem);
|
|
299
|
+
font-weight: var(--ui-heading-compact-01-font-weight, 600);
|
|
300
|
+
line-height: var(--ui-heading-compact-01-line-height, 1.28572);
|
|
301
|
+
letter-spacing: var(--ui-heading-compact-01-letter-spacing, 0.16px);
|
|
302
|
+
}
|
|
303
|
+
.monthYear *,
|
|
304
|
+
.monthYear *::before,
|
|
305
|
+
.monthYear *::after {
|
|
306
|
+
box-sizing: inherit;
|
|
307
|
+
}
|
|
308
|
+
.monthYear {
|
|
309
|
+
margin-top: 0.5rem;
|
|
310
|
+
margin-block-end: 0.125rem;
|
|
311
|
+
text-align: center;
|
|
312
|
+
}
|
|
313
|
+
.monthYear > span {
|
|
314
|
+
margin-left: 0.25rem;
|
|
315
|
+
margin-right: 0.25rem;
|
|
316
|
+
}
|
|
317
|
+
.monthYear div:has(input[inputmode=numeric]) {
|
|
318
|
+
display: inline;
|
|
319
|
+
}
|
|
320
|
+
.monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric] {
|
|
321
|
+
box-sizing: border-box;
|
|
322
|
+
padding: 0;
|
|
323
|
+
border: 0;
|
|
324
|
+
margin: 0;
|
|
325
|
+
font-family: inherit;
|
|
326
|
+
font-size: 100%;
|
|
327
|
+
vertical-align: baseline;
|
|
328
|
+
font-size: var(--ui-heading-compact-01-font-size, 0.875rem);
|
|
329
|
+
font-weight: var(--ui-heading-compact-01-font-weight, 600);
|
|
330
|
+
line-height: var(--ui-heading-compact-01-line-height, 1.28572);
|
|
331
|
+
letter-spacing: var(--ui-heading-compact-01-letter-spacing, 0.16px);
|
|
332
|
+
}
|
|
333
|
+
.monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric] *,
|
|
334
|
+
.monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric] *::before,
|
|
335
|
+
.monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric] *::after {
|
|
336
|
+
box-sizing: inherit;
|
|
337
|
+
}
|
|
338
|
+
.monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric] {
|
|
339
|
+
background-color: var(--ui-field);
|
|
340
|
+
inline-size: 2.5rem;
|
|
341
|
+
padding: 0.25rem;
|
|
342
|
+
padding-right: 0;
|
|
343
|
+
}
|
|
344
|
+
.monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric]::-webkit-outer-spin-button, .monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric]::-webkit-inner-spin-button {
|
|
345
|
+
margin: 0;
|
|
346
|
+
-webkit-appearance: none;
|
|
347
|
+
}
|
|
348
|
+
.monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric]:focus {
|
|
349
|
+
outline: 1px solid var(--ui-focus, #0f62fe);
|
|
350
|
+
}
|
|
351
|
+
@media screen and (prefers-contrast) {
|
|
352
|
+
.monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric]:focus {
|
|
353
|
+
outline-style: dotted;
|
|
354
|
+
}
|
|
355
|
+
}
|
|
356
|
+
.monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric][data-invalid] {
|
|
357
|
+
outline: 2px solid var(--ui-support-error, #da1e28);
|
|
358
|
+
outline-offset: -2px;
|
|
359
|
+
}
|
|
360
|
+
@media screen and (prefers-contrast) {
|
|
361
|
+
.monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric][data-invalid] {
|
|
362
|
+
outline-style: dotted;
|
|
363
|
+
}
|
|
364
|
+
}
|
|
365
|
+
.monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric][data-disabled], .monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric][data-disabled]:hover {
|
|
366
|
+
background-color: var(--ui-layer-01, #f4f4f4);
|
|
367
|
+
color: var(--ui-text-disabled, rgba(22, 22, 22, 0.25));
|
|
368
|
+
pointer-events: none;
|
|
369
|
+
}
|
|
370
|
+
.monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric][data-disabled] + div > button::after {
|
|
371
|
+
border-block-end-color: var(--ui-text-disabled, rgba(22, 22, 22, 0.25));
|
|
372
|
+
border-block-start-color: var(--ui-text-disabled, rgba(22, 22, 22, 0.25));
|
|
373
|
+
}
|
|
374
|
+
.monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric][data-disabled] + div > button:hover {
|
|
375
|
+
opacity: 0;
|
|
376
|
+
}
|
|
377
|
+
.monthYear div:has(input[inputmode=numeric]) div[role=group] {
|
|
378
|
+
box-sizing: border-box;
|
|
379
|
+
padding: 0;
|
|
380
|
+
border: 0;
|
|
381
|
+
margin: 0;
|
|
382
|
+
font-family: inherit;
|
|
383
|
+
font-size: 100%;
|
|
384
|
+
vertical-align: baseline;
|
|
385
|
+
}
|
|
386
|
+
.monthYear div:has(input[inputmode=numeric]) div[role=group] *,
|
|
387
|
+
.monthYear div:has(input[inputmode=numeric]) div[role=group] *::before,
|
|
388
|
+
.monthYear div:has(input[inputmode=numeric]) div[role=group] *::after {
|
|
389
|
+
box-sizing: inherit;
|
|
390
|
+
}
|
|
391
|
+
.monthYear div:has(input[inputmode=numeric]) div[role=group] {
|
|
392
|
+
display: inline;
|
|
393
|
+
position: relative;
|
|
394
|
+
}
|
|
395
|
+
.monthYear div:has(input[inputmode=numeric]):hover button {
|
|
396
|
+
opacity: 1;
|
|
397
|
+
}
|
|
398
|
+
.monthYear div:has(input[inputmode=numeric]) button {
|
|
399
|
+
box-sizing: border-box;
|
|
400
|
+
padding: 0;
|
|
401
|
+
border: 0;
|
|
402
|
+
margin: 0;
|
|
403
|
+
font-family: inherit;
|
|
404
|
+
font-size: 100%;
|
|
405
|
+
vertical-align: baseline;
|
|
406
|
+
}
|
|
407
|
+
.monthYear div:has(input[inputmode=numeric]) button *,
|
|
408
|
+
.monthYear div:has(input[inputmode=numeric]) button *::before,
|
|
409
|
+
.monthYear div:has(input[inputmode=numeric]) button *::after {
|
|
410
|
+
box-sizing: inherit;
|
|
411
|
+
}
|
|
412
|
+
.monthYear div:has(input[inputmode=numeric]) button {
|
|
413
|
+
position: absolute;
|
|
414
|
+
padding-block: 0;
|
|
415
|
+
padding-inline-start: 0.125rem;
|
|
416
|
+
padding-inline-end: 0.25rem;
|
|
417
|
+
border: none;
|
|
418
|
+
block-size: 50%;
|
|
419
|
+
cursor: pointer;
|
|
420
|
+
inline-size: 0.75rem;
|
|
421
|
+
inset-inline-start: 2.5rem;
|
|
422
|
+
line-height: 50%;
|
|
423
|
+
opacity: 0;
|
|
424
|
+
}
|
|
425
|
+
.monthYear div:has(input[inputmode=numeric]) button::after {
|
|
426
|
+
display: block;
|
|
427
|
+
border-inline-end: 0.25rem solid transparent;
|
|
428
|
+
border-inline-start: 0.25rem solid transparent;
|
|
429
|
+
content: "";
|
|
430
|
+
inset-block-start: 33%;
|
|
431
|
+
}
|
|
432
|
+
.monthYear div:has(input[inputmode=numeric]) button:hover::after {
|
|
433
|
+
border-block-end-color: var(--ui-button-primary, #0f62fe);
|
|
434
|
+
border-block-start-color: var(--ui-button-primary, #0f62fe);
|
|
435
|
+
}
|
|
436
|
+
.monthYear div:has(input[inputmode=numeric]) button:active::after {
|
|
437
|
+
border-block-end-color: var(--ui-border-interactive, #0f62fe);
|
|
438
|
+
border-block-start-color: var(--ui-border-interactive, #0f62fe);
|
|
439
|
+
}
|
|
440
|
+
.monthYear div:has(input[inputmode=numeric]) button[slot=increment] {
|
|
441
|
+
top: 0;
|
|
442
|
+
left: 0;
|
|
443
|
+
}
|
|
444
|
+
.monthYear div:has(input[inputmode=numeric]) button[slot=decrement] {
|
|
445
|
+
top: 0.75rem;
|
|
446
|
+
left: 0;
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
.calendarGrid {
|
|
450
|
+
width: 17rem;
|
|
451
|
+
}
|
|
452
|
+
.calendarGrid tr, .calendarGrid tr > th, .calendarGrid tr > td {
|
|
453
|
+
height: 2.428rem;
|
|
454
|
+
width: 2.428rem;
|
|
455
|
+
}
|
|
456
|
+
.calendarGrid > thead > tr > th {
|
|
457
|
+
font-size: var(--ui-body-compact-01-font-size, 0.875rem);
|
|
458
|
+
font-weight: var(--ui-body-compact-01-font-weight, 400);
|
|
459
|
+
line-height: var(--ui-body-compact-01-line-height, 1.28572);
|
|
460
|
+
letter-spacing: var(--ui-body-compact-01-letter-spacing, 0.16px);
|
|
461
|
+
cursor: default;
|
|
462
|
+
text-align: center;
|
|
463
|
+
vertical-align: middle;
|
|
464
|
+
}
|
|
465
|
+
.calendarGrid > tbody > tr > td {
|
|
466
|
+
font-size: var(--ui-body-compact-01-font-size, 0.875rem);
|
|
467
|
+
font-weight: var(--ui-body-compact-01-font-weight, 400);
|
|
468
|
+
line-height: var(--ui-body-compact-01-line-height, 1.28572);
|
|
469
|
+
letter-spacing: var(--ui-body-compact-01-letter-spacing, 0.16px);
|
|
470
|
+
cursor: pointer;
|
|
471
|
+
text-align: center;
|
|
472
|
+
vertical-align: middle;
|
|
473
|
+
}
|
|
474
|
+
.calendarGrid > tbody > tr > td > div {
|
|
475
|
+
outline: unset;
|
|
476
|
+
}
|
|
477
|
+
.calendarGrid > tbody > tr > td:hover:not(:has([aria-disabled], [data-selected])) {
|
|
478
|
+
background-color: var(--ui-layer-hover);
|
|
479
|
+
}
|
|
480
|
+
.calendarGrid > tbody > tr > td:has([data-selected]) {
|
|
481
|
+
background-color: var(--colors-primary-600, #0f62fe);
|
|
482
|
+
color: var(--colors-surface-background, #ffffff);
|
|
483
|
+
}
|
|
484
|
+
.calendarGrid > tbody > tr > td[aria-disabled] {
|
|
485
|
+
color: var(--ui-text-disabled, rgba(22, 22, 22, 0.25));
|
|
486
|
+
cursor: default;
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
.today:not([data-selected]) {
|
|
490
|
+
position: relative;
|
|
491
|
+
color: var(--colors-primary-600, #0f62fe);
|
|
492
|
+
font-weight: 600;
|
|
493
|
+
font-size: var(--ui-body-compact-01-font-size, 0.875rem);
|
|
494
|
+
line-height: var(--ui-body-compact-01-line-height, 1.28572);
|
|
495
|
+
letter-spacing: var(--ui-body-compact-01-letter-spacing, 0.16px);
|
|
496
|
+
display: flex;
|
|
497
|
+
align-items: center;
|
|
498
|
+
justify-content: center;
|
|
499
|
+
block-size: 2.5rem;
|
|
500
|
+
cursor: pointer;
|
|
501
|
+
inline-size: 2.5rem;
|
|
502
|
+
}
|
|
503
|
+
.today:not([data-selected])::after {
|
|
504
|
+
position: absolute;
|
|
505
|
+
display: block;
|
|
506
|
+
block-size: 0.25rem;
|
|
507
|
+
content: "";
|
|
508
|
+
inline-size: 0.25rem;
|
|
509
|
+
inset-block-end: 0.4375rem;
|
|
510
|
+
inset-inline-start: 50%;
|
|
511
|
+
-webkit-transform: translateX(-50%);
|
|
512
|
+
transform: translateX(-50%);
|
|
513
|
+
}
|
|
514
|
+
.today:not([data-selected])[data-disabled]::after {
|
|
515
|
+
background-color: var(--ui-text-disabled, rgba(22, 22, 22, 0.25));
|
|
516
|
+
}
|
|
517
|
+
.today:not([data-selected]):not([data-disabled])::after {
|
|
518
|
+
background-color: var(--ui-link-primary, var(--ui-link-primary, #0f62fe));
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
:global([dir="rtl"]) .inputWrapper, :global([dir="rtl"]) .dateInputWrapper {
|
|
522
|
+
padding-left: unset;
|
|
523
|
+
padding-right: 0.75rem;
|
|
524
|
+
}
|
|
525
|
+
:global([dir="rtl"]) .endInput {
|
|
526
|
+
padding-right: 0;
|
|
527
|
+
}
|
|
528
|
+
:global([dir="rtl"]) .monthYear div:has(input[inputmode=numeric]) > input[inputmode=numeric] {
|
|
529
|
+
padding-right: 0.25rem;
|
|
530
|
+
}
|
|
531
|
+
:global([dir="rtl"]) .monthYear button[slot=increment] {
|
|
532
|
+
top: 0;
|
|
533
|
+
left: unset;
|
|
534
|
+
right: 0;
|
|
535
|
+
}
|
|
536
|
+
:global([dir="rtl"]) .monthYear button[slot=decrement] {
|
|
537
|
+
top: 0.75rem;
|
|
538
|
+
left: unset;
|
|
539
|
+
right: 0;
|
|
540
|
+
}
|
|
@@ -21,7 +21,7 @@ export interface EgenDatePickerProps extends Omit<DatePickerProps<CalendarDate>,
|
|
|
21
21
|
value?: DateInputValue;
|
|
22
22
|
}
|
|
23
23
|
/**
|
|
24
|
-
* A date picker component to select a single date. Based on React Aria,
|
|
24
|
+
* A date picker component to select a single date. Based on React Aria, with EGEN styling.
|
|
25
25
|
*/
|
|
26
26
|
export declare const EgenDatePicker: React.ForwardRefExoticComponent<EgenDatePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
27
27
|
//# sourceMappingURL=egen-date-picker.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"egen-date-picker.component.d.ts","sourceRoot":"","sources":["../../src/datepicker/egen-date-picker.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAsB,KAAK,eAAe,EAAsC,MAAM,uBAAuB,CAAC;AACrH,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAW3E;;GAEG;AACH,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,OAAO,CAAC,EAC9F,mBAAmB;IACrB,uCAAuC;IACvC,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,qDAAqD;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IACpD,iHAAiH;IACjH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,kGAAkG;IAClG,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,uCAAuC;IACvC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAOD;;GAEG;AACH,eAAO,MAAM,cAAc,
|
|
1
|
+
{"version":3,"file":"egen-date-picker.component.d.ts","sourceRoot":"","sources":["../../src/datepicker/egen-date-picker.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAE1D,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,YAAY,CAAC;AAC5C,OAAO,EAAsB,KAAK,eAAe,EAAsC,MAAM,uBAAuB,CAAC;AACrH,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAW3E;;GAEG;AACH,MAAM,WAAW,mBACf,SAAQ,IAAI,CAAC,eAAe,CAAC,YAAY,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,OAAO,CAAC,EAC9F,mBAAmB;IACrB,uCAAuC;IACvC,YAAY,CAAC,EAAE,cAAc,CAAC;IAC9B,qDAAqD;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,KAAK,IAAI,CAAC;IACpD,iHAAiH;IACjH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,kGAAkG;IAClG,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,uCAAuC;IACvC,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,6BAA6B;IAC7B,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAOD;;GAEG;AACH,eAAO,MAAM,cAAc,4FA4H1B,CAAC"}
|
|
@@ -10,13 +10,13 @@ import { CalendarPopover } from "./calendar-popover.component.js";
|
|
|
10
10
|
import { DatePickerInput } from "./date-picker-input.component.js";
|
|
11
11
|
import { DatePickerIcon } from "./date-picker-icon.component.js";
|
|
12
12
|
import { DateSegment } from "./date-segment.component.js";
|
|
13
|
-
import styles from "./datepicker.module.
|
|
13
|
+
import styles from "./datepicker.module.css";
|
|
14
14
|
const defaultProps = {
|
|
15
15
|
short: false,
|
|
16
16
|
size: 'md'
|
|
17
17
|
};
|
|
18
18
|
/**
|
|
19
|
-
* A date picker component to select a single date. Based on React Aria,
|
|
19
|
+
* A date picker component to select a single date. Based on React Aria, with EGEN styling.
|
|
20
20
|
*/ export const EgenDatePicker = /*#__PURE__*/ forwardRef(function EgenDatePicker(props, ref) {
|
|
21
21
|
const { className, defaultValue: rawDefaultValue, isDisabled, invalid, invalidText, isInvalid: isInvalidRaw, label, labelText, light, maxDate: rawMaxDate, minDate: rawMinDate, onChange: rawOnChange, onChangeRaw, short, size, value: rawValue, ...datePickerProps } = {
|
|
22
22
|
...defaultProps,
|
|
@@ -63,7 +63,7 @@ const defaultProps = {
|
|
|
63
63
|
return /*#__PURE__*/ _jsx(I18nWrapper, {
|
|
64
64
|
locale: intlLocale.toString(),
|
|
65
65
|
children: /*#__PURE__*/ _jsx("div", {
|
|
66
|
-
className: classNames(
|
|
66
|
+
className: classNames(styles.formItem, className),
|
|
67
67
|
children: /*#__PURE__*/ _jsx(Provider, {
|
|
68
68
|
values: [
|
|
69
69
|
[
|
|
@@ -72,9 +72,9 @@ const defaultProps = {
|
|
|
72
72
|
]
|
|
73
73
|
],
|
|
74
74
|
children: /*#__PURE__*/ _jsxs(DatePicker, {
|
|
75
|
-
className: classNames(
|
|
76
|
-
[
|
|
77
|
-
[
|
|
75
|
+
className: classNames(styles.datePicker, {
|
|
76
|
+
[styles.short]: short,
|
|
77
|
+
[styles.light]: light
|
|
78
78
|
}),
|
|
79
79
|
defaultValue: defaultValue,
|
|
80
80
|
isDisabled: isDisabled,
|
|
@@ -87,11 +87,13 @@ const defaultProps = {
|
|
|
87
87
|
onChange: onChange,
|
|
88
88
|
children: [
|
|
89
89
|
/*#__PURE__*/ _jsxs("div", {
|
|
90
|
-
className:
|
|
90
|
+
className: styles.container,
|
|
91
91
|
children: [
|
|
92
92
|
hasVisibleLabel && /*#__PURE__*/ _jsx(Label, {
|
|
93
|
-
|
|
94
|
-
|
|
93
|
+
"data-slot": "date-label",
|
|
94
|
+
"data-disabled": isDisabled ? 'true' : undefined,
|
|
95
|
+
className: classNames(styles.label, {
|
|
96
|
+
[styles.labelDisabled]: isDisabled
|
|
95
97
|
}),
|
|
96
98
|
htmlFor: id,
|
|
97
99
|
children: labelText ?? label
|
|
@@ -100,9 +102,10 @@ const defaultProps = {
|
|
|
100
102
|
className: styles.inputGroup,
|
|
101
103
|
children: [
|
|
102
104
|
/*#__PURE__*/ _jsx(DatePickerInput, {
|
|
105
|
+
"data-slot": "date-input-wrapper",
|
|
103
106
|
id: hasVisibleLabel ? id : undefined,
|
|
104
107
|
ref: ref,
|
|
105
|
-
className: classNames(
|
|
108
|
+
className: classNames(styles.inputWrapper, {
|
|
106
109
|
[styles.inputWrapperSm]: size === 'sm',
|
|
107
110
|
[styles.inputWrapperMd]: size === 'md' || !size || size.length === 0,
|
|
108
111
|
[styles.inputWrapperLg]: size === 'lg'
|
|
@@ -16,7 +16,7 @@ export interface EgenDateRangePickerProps extends Omit<DateRangePickerProps<Cale
|
|
|
16
16
|
value?: [DateInputValue, DateInputValue];
|
|
17
17
|
}
|
|
18
18
|
/**
|
|
19
|
-
* A date range picker to enter or select a date and time range. Based on React Aria, but
|
|
19
|
+
* A date range picker to enter or select a date and time range. Based on React Aria, but with EGEN styling.
|
|
20
20
|
*/
|
|
21
21
|
export declare const EgenDateRangePicker: React.ForwardRefExoticComponent<EgenDateRangePickerProps & React.RefAttributes<HTMLDivElement>>;
|
|
22
22
|
//# sourceMappingURL=egen-date-range-picker.component.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"egen-date-range-picker.component.d.ts","sourceRoot":"","sources":["../../src/datepicker/egen-date-range-picker.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAE1D,OAAO,EAIL,KAAK,oBAAoB,EAIzB,KAAK,SAAS,EAEf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAO3E,6CAA6C;AAC7C,MAAM,WAAW,wBACf,SAAQ,IAAI,CAAC,oBAAoB,CAAC,YAAY,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,OAAO,CAAC,EACnG,mBAAmB;IACrB,uCAAuC;IACvC,YAAY,CAAC,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;IAChD,qDAAqD;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC,KAAK,IAAI,CAAC;IAC/E,iHAAiH;IACjH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,kGAAkG;IAClG,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,6BAA6B;IAC7B,KAAK,CAAC,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;CAC1C;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,
|
|
1
|
+
{"version":3,"file":"egen-date-range-picker.component.d.ts","sourceRoot":"","sources":["../../src/datepicker/egen-date-range-picker.component.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqC,MAAM,OAAO,CAAC;AAE1D,OAAO,EAIL,KAAK,oBAAoB,EAIzB,KAAK,SAAS,EAEf,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,KAAK,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAI5D,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAO3E,6CAA6C;AAC7C,MAAM,WAAW,wBACf,SAAQ,IAAI,CAAC,oBAAoB,CAAC,YAAY,CAAC,EAAE,WAAW,GAAG,UAAU,GAAG,cAAc,GAAG,OAAO,CAAC,EACnG,mBAAmB;IACrB,uCAAuC;IACvC,YAAY,CAAC,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;IAChD,qDAAqD;IACrD,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,SAAS,EAAE,IAAI,GAAG,IAAI,GAAG,SAAS,CAAC,KAAK,IAAI,CAAC;IAC/E,iHAAiH;IACjH,WAAW,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,GAAG,IAAI,KAAK,IAAI,CAAC;IAChD,kGAAkG;IAClG,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;IAC1B,6BAA6B;IAC7B,KAAK,CAAC,EAAE,CAAC,cAAc,EAAE,cAAc,CAAC,CAAC;CAC1C;AAED;;GAEG;AACH,eAAO,MAAM,mBAAmB,iGAkK/B,CAAC"}
|