@progressiveui/styles 10.30.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 +621 -0
- package/README.md +85 -0
- package/index-with-tokens.scss +26 -0
- package/index.scss +12 -0
- package/package.json +42 -0
- package/scss/_breakpoint.scss +2 -0
- package/scss/_config.scss +30 -0
- package/scss/_feature-flags.scss +1 -0
- package/scss/_font-face.scss +13 -0
- package/scss/_global-defaults.scss +14 -0
- package/scss/_grid.scss +32 -0
- package/scss/_motion.scss +67 -0
- package/scss/_reset.scss +172 -0
- package/scss/_spacing.scss +4 -0
- package/scss/_theme.scss +102 -0
- package/scss/_themes.scss +14 -0
- package/scss/_type.scss +143 -0
- package/scss/_zone.scss +26 -0
- package/scss/components/_index.scss +82 -0
- package/scss/components/accordion/_accordion.legacy.scss +348 -0
- package/scss/components/accordion/_accordion.scss +118 -0
- package/scss/components/accordion/_index.scss +4 -0
- package/scss/components/anchor-navigation/_anchor-navigation.scss +37 -0
- package/scss/components/anchor-navigation/_index.scss +4 -0
- package/scss/components/auth-layout/_auth-layout.scss +55 -0
- package/scss/components/auth-layout/_index.scss +11 -0
- package/scss/components/avatar/_avatar.scss +61 -0
- package/scss/components/avatar/_index.scss +4 -0
- package/scss/components/banner-navigation/_banner-navigation.scss +80 -0
- package/scss/components/banner-navigation/_index.scss +4 -0
- package/scss/components/blockquote/_blockquote.scss +156 -0
- package/scss/components/blockquote/_index.scss +4 -0
- package/scss/components/breadcrumb/_breadcrumb.scss +89 -0
- package/scss/components/breadcrumb/_index.scss +4 -0
- package/scss/components/button/_button.scss +520 -0
- package/scss/components/button/_index.scss +5 -0
- package/scss/components/button/_mixins.scss +92 -0
- package/scss/components/button/_vars.scss +69 -0
- package/scss/components/card/_card-external.scss +149 -0
- package/scss/components/card/_card.scss +138 -0
- package/scss/components/card/_index.scss +7 -0
- package/scss/components/checkbox/_checkbox.scss +195 -0
- package/scss/components/checkbox/_index.scss +11 -0
- package/scss/components/code-snippet/_code-snippet.scss +581 -0
- package/scss/components/code-snippet/_index.scss +11 -0
- package/scss/components/code-snippet/_mixins.scss +21 -0
- package/scss/components/col/_col.scss +54 -0
- package/scss/components/col/_index.scss +4 -0
- package/scss/components/combo-box/_combo-box.scss +45 -0
- package/scss/components/combo-box/_index.scss +11 -0
- package/scss/components/content-switcher/_content-switcher.scss +132 -0
- package/scss/components/content-switcher/_index.scss +11 -0
- package/scss/components/context-menu/_context-menu.scss +26 -0
- package/scss/components/context-menu/_index.scss +11 -0
- package/scss/components/credits/_credits.scss +30 -0
- package/scss/components/credits/_index.scss +11 -0
- package/scss/components/data-table/_data-table.scss +1005 -0
- package/scss/components/data-table/_index.scss +12 -0
- package/scss/components/data-table/_mixins.scss +38 -0
- package/scss/components/data-table/_vars.scss +13 -0
- package/scss/components/data-table/action/_data-table-action.scss +587 -0
- package/scss/components/data-table/action/_index.scss +11 -0
- package/scss/components/data-table/expandable/_data-table-expandable.scss +411 -0
- package/scss/components/data-table/expandable/_index.scss +11 -0
- package/scss/components/data-table/skeleton/_data-table-skeleton.scss +72 -0
- package/scss/components/data-table/skeleton/_index.scss +11 -0
- package/scss/components/data-table/sort/_data-table-sort.scss +245 -0
- package/scss/components/data-table/sort/_index.scss +11 -0
- package/scss/components/date-picker/_date-picker.scss +896 -0
- package/scss/components/date-picker/_flatpickr.scss +538 -0
- package/scss/components/date-picker/_index.scss +11 -0
- package/scss/components/date-picker-new/_date-picker-new.scss +100 -0
- package/scss/components/date-picker-new/_index.scss +4 -0
- package/scss/components/date-picker-new/react-datepicker/datepicker.scss +692 -0
- package/scss/components/date-picker-new/react-datepicker/mixins.scss +88 -0
- package/scss/components/date-picker-new/react-datepicker/variables.scss +20 -0
- package/scss/components/dropdown/_dropdown.scss +493 -0
- package/scss/components/dropdown/_index.scss +11 -0
- package/scss/components/empty/_empty.scss +105 -0
- package/scss/components/empty/_index.scss +11 -0
- package/scss/components/file-uploader/_file-uploader.scss +321 -0
- package/scss/components/file-uploader/_index.scss +11 -0
- package/scss/components/footer/_footer.scss +258 -0
- package/scss/components/footer/_footer_external.scss +153 -0
- package/scss/components/footer/_index.scss +14 -0
- package/scss/components/form/_form.scss +146 -0
- package/scss/components/form/_index.scss +4 -0
- package/scss/components/form-controls/_form-controls.scss +53 -0
- package/scss/components/form-controls/_index.scss +11 -0
- package/scss/components/form-error/_form-error.scss +25 -0
- package/scss/components/form-error/_index.scss +11 -0
- package/scss/components/form-group/_form-group.scss +109 -0
- package/scss/components/form-group/_index.scss +11 -0
- package/scss/components/form-hint/_form-hint.scss +28 -0
- package/scss/components/form-hint/_index.scss +11 -0
- package/scss/components/form-wizard/_form-wizard.scss +48 -0
- package/scss/components/form-wizard/_index.scss +11 -0
- package/scss/components/grid/_grid.scss +80 -0
- package/scss/components/grid/_index.scss +4 -0
- package/scss/components/hero/_hero-external.scss +84 -0
- package/scss/components/hero/_hero.scss +321 -0
- package/scss/components/hero/_index.scss +14 -0
- package/scss/components/icon/_icon.scss +19 -0
- package/scss/components/icon/_index.scss +11 -0
- package/scss/components/info-bar/_index.scss +11 -0
- package/scss/components/info-bar/_info-bar.scss +21 -0
- package/scss/components/inline-loading/_index.scss +11 -0
- package/scss/components/inline-loading/_inline-loading.scss +159 -0
- package/scss/components/inline-loading/_keyframes.scss +12 -0
- package/scss/components/input/_index.scss +11 -0
- package/scss/components/input/_input.scss +87 -0
- package/scss/components/input/_vars.scss +31 -0
- package/scss/components/item/_index.scss +11 -0
- package/scss/components/item/_item.scss +227 -0
- package/scss/components/link/_index.scss +11 -0
- package/scss/components/link/_link.scss +109 -0
- package/scss/components/list/_index.scss +4 -0
- package/scss/components/list/_list.scss +144 -0
- package/scss/components/list-box/_index.scss +11 -0
- package/scss/components/list-box/_list-box.scss +813 -0
- package/scss/components/loading/_animation.scss +39 -0
- package/scss/components/loading/_functions.scss +10 -0
- package/scss/components/loading/_index.scss +11 -0
- package/scss/components/loading/_keyframes.scss +48 -0
- package/scss/components/loading/_loading.scss +72 -0
- package/scss/components/loading/_mixins.scss +42 -0
- package/scss/components/loading/_vars.scss +26 -0
- package/scss/components/main-navigation/_index.scss +14 -0
- package/scss/components/main-navigation/_main-navigation.scss +360 -0
- package/scss/components/main-navigation/_main-navigation_external.scss +527 -0
- package/scss/components/menu/_index.scss +11 -0
- package/scss/components/menu/_menu.scss +143 -0
- package/scss/components/modal/_index.scss +11 -0
- package/scss/components/modal/_mixins.scss +10 -0
- package/scss/components/modal/_modal.scss +224 -0
- package/scss/components/module/_index.scss +4 -0
- package/scss/components/module/_module.scss +199 -0
- package/scss/components/multiselect/_index.scss +11 -0
- package/scss/components/multiselect/_multiselect.scss +103 -0
- package/scss/components/notification/_index.scss +21 -0
- package/scss/components/notification/_inline-notification.scss +321 -0
- package/scss/components/notification/_mixins.scss +41 -0
- package/scss/components/notification/_notification.scss +480 -0
- package/scss/components/notification/_toast-notification.scss +249 -0
- package/scss/components/notification/_tokens.scss +126 -0
- package/scss/components/number-input/_index.scss +11 -0
- package/scss/components/number-input/_number-input.scss +195 -0
- package/scss/components/overflow-menu/_index.scss +11 -0
- package/scss/components/overflow-menu/_overflow-menu.scss +351 -0
- package/scss/components/pagination/_index.scss +11 -0
- package/scss/components/pagination/_pagination.scss +214 -0
- package/scss/components/pagination-nav/_index.scss +11 -0
- package/scss/components/pagination-nav/_mixins.scss +38 -0
- package/scss/components/pagination-nav/_pagination-nav.scss +171 -0
- package/scss/components/popover/_index.scss +11 -0
- package/scss/components/popover/_popover.scss +323 -0
- package/scss/components/progress-bar/_index.scss +11 -0
- package/scss/components/progress-bar/_progress-bar.scss +82 -0
- package/scss/components/progress-indicator/_index.scss +11 -0
- package/scss/components/progress-indicator/_progress-indicator.scss +328 -0
- package/scss/components/radio-button/_index.scss +4 -0
- package/scss/components/radio-button/_radio-button.scss +239 -0
- package/scss/components/react-dropzone/_index.scss +11 -0
- package/scss/components/react-dropzone/_react-dropzone.scss +58 -0
- package/scss/components/react-select/_index.scss +11 -0
- package/scss/components/react-select/_react-select.scss +90 -0
- package/scss/components/read-more/_index.scss +11 -0
- package/scss/components/read-more/_read-more.scss +102 -0
- package/scss/components/search/_index.scss +4 -0
- package/scss/components/search/_search.scss +436 -0
- package/scss/components/secondary-navigation/_index.scss +4 -0
- package/scss/components/secondary-navigation/_secondary-navigation.scss +61 -0
- package/scss/components/select/_index.scss +11 -0
- package/scss/components/select/_select.scss +224 -0
- package/scss/components/sidebar/_index.scss +11 -0
- package/scss/components/sidebar/_sidebar.scss +118 -0
- package/scss/components/skeleton-text/_index.scss +4 -0
- package/scss/components/skeleton-text/_skeleton-text.scss +22 -0
- package/scss/components/slider/_index.scss +4 -0
- package/scss/components/slider/_slider.scss +274 -0
- package/scss/components/step-navigation/_index.scss +4 -0
- package/scss/components/step-navigation/_step-navigation.scss +136 -0
- package/scss/components/step-navigation-item/_index.scss +4 -0
- package/scss/components/step-navigation-item/_step-navigation-item.scss +377 -0
- package/scss/components/story/_index.scss +11 -0
- package/scss/components/story/_story.scss +519 -0
- package/scss/components/structured-list/_index.scss +11 -0
- package/scss/components/structured-list/_mixins.scss +59 -0
- package/scss/components/structured-list/_structured-list.scss +235 -0
- package/scss/components/sub-navigation/_index.scss +4 -0
- package/scss/components/sub-navigation/_sub-navigation.scss +113 -0
- package/scss/components/table/_index.scss +11 -0
- package/scss/components/table/table.scss +88 -0
- package/scss/components/tabs/_index.scss +4 -0
- package/scss/components/tabs/_tabs.scss +185 -0
- package/scss/components/tabs/_vars.scss +23 -0
- package/scss/components/tag/_index.scss +12 -0
- package/scss/components/tag/_mixins.scss +19 -0
- package/scss/components/tag/_tag.scss +137 -0
- package/scss/components/tag/_tokens.scss +702 -0
- package/scss/components/text-area/_index.scss +11 -0
- package/scss/components/text-area/_text-area.scss +120 -0
- package/scss/components/text-input/_index.scss +11 -0
- package/scss/components/text-input/_text-input.scss +19 -0
- package/scss/components/tile/_index.scss +11 -0
- package/scss/components/tile/_tile.scss +269 -0
- package/scss/components/time-picker/_index.scss +11 -0
- package/scss/components/time-picker/_time-picker.scss +94 -0
- package/scss/components/toggle/_index.scss +11 -0
- package/scss/components/toggle/_toggle.scss +192 -0
- package/scss/components/tooltip/_index.scss +11 -0
- package/scss/components/tooltip/_mixins.scss +107 -0
- package/scss/components/tooltip/_tooltip.scss +128 -0
- package/scss/components/tooltip/_vars.scss +6 -0
- package/scss/components/tooltip/animations/fade.scss +10 -0
- package/scss/components/tooltip/themes/light-border.scss +158 -0
- package/scss/components/tooltip/themes/light.scss +28 -0
- package/scss/components/treeview/_index.scss +11 -0
- package/scss/components/treeview/_treeview.scss +177 -0
- package/scss/components/ui-shell/_functions.scss +19 -0
- package/scss/components/ui-shell/_index.scss +11 -0
- package/scss/components/ui-shell/_mixins.scss +56 -0
- package/scss/components/ui-shell/_ui-shell.scss +23 -0
- package/scss/components/ui-shell/content/_content.scss +34 -0
- package/scss/components/ui-shell/content/_index.scss +11 -0
- package/scss/components/ui-shell/header/_header.scss +382 -0
- package/scss/components/ui-shell/header/_index.scss +11 -0
- package/scss/components/ui-shell/header-panel/_header-panel.scss +41 -0
- package/scss/components/ui-shell/header-panel/_index.scss +11 -0
- package/scss/components/ui-shell/side-nav/_index.scss +11 -0
- package/scss/components/ui-shell/side-nav/_side-nav.scss +526 -0
- package/scss/components/ui-shell/switcher/_index.scss +11 -0
- package/scss/components/ui-shell/switcher/_switcher.scss +78 -0
- package/scss/components/unit/_index.scss +11 -0
- package/scss/components/unit/_unit.scss +277 -0
- package/scss/components/user/_index.scss +11 -0
- package/scss/components/user/_user.scss +104 -0
- package/scss/components/value/_index.scss +11 -0
- package/scss/components/value/_value.scss +41 -0
- package/scss/components/wrapper/_index.scss +11 -0
- package/scss/components/wrapper/_wrapper.scss +71 -0
- package/scss/utilities/_box-shadow.scss +14 -0
- package/scss/utilities/_button-reset.scss +31 -0
- package/scss/utilities/_component-reset.scss +25 -0
- package/scss/utilities/_component-tokens.scss +27 -0
- package/scss/utilities/_convert.scss +41 -0
- package/scss/utilities/_custom-property.scss +56 -0
- package/scss/utilities/_focus-outline.scss +68 -0
- package/scss/utilities/_high-contrast-mode.scss +37 -0
- package/scss/utilities/_index.scss +24 -0
- package/scss/utilities/_input-base.scss +63 -0
- package/scss/utilities/_keyframes.scss +76 -0
- package/scss/utilities/_layer-set.scss +31 -0
- package/scss/utilities/_layer.scss +52 -0
- package/scss/utilities/_placeholder-colors.scss +10 -0
- package/scss/utilities/_read-only.scss +19 -0
- package/scss/utilities/_rotate.scss +19 -0
- package/scss/utilities/_rtl.scss +21 -0
- package/scss/utilities/_skeleton.scss +44 -0
- package/scss/utilities/_text-gradient.scss +20 -0
- package/scss/utilities/_text-overflow.scss +23 -0
- package/scss/utilities/_text-truncate.scss +29 -0
- package/scss/utilities/_visually-hidden.scss +38 -0
- package/scss/utilities/_z-index.scss +38 -0
- package/styles.css +1 -0
|
@@ -0,0 +1,538 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2016, 2018
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
// @use '../../config' as *;
|
|
9
|
+
@use "../../motion" as *;
|
|
10
|
+
@use "../../theme" as *;
|
|
11
|
+
@use "../../spacing" as *;
|
|
12
|
+
@use "../../type" as *;
|
|
13
|
+
@use "../../utilities/box-shadow" as *;
|
|
14
|
+
@use "../../utilities/convert" as *;
|
|
15
|
+
@use "../../utilities/focus-outline" as *;
|
|
16
|
+
@use "../../utilities/high-contrast-mode" as *;
|
|
17
|
+
|
|
18
|
+
@keyframes fpFadeInDown {
|
|
19
|
+
from {
|
|
20
|
+
opacity: 0;
|
|
21
|
+
transform: translate3d(0, -20px, 0);
|
|
22
|
+
}
|
|
23
|
+
to {
|
|
24
|
+
opacity: 1;
|
|
25
|
+
transform: translate3d(0, 0, 0);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@keyframes fpSlideLeft {
|
|
30
|
+
from {
|
|
31
|
+
transform: translate3d(0, 0, 0);
|
|
32
|
+
}
|
|
33
|
+
to {
|
|
34
|
+
transform: translate3d(-100%, 0, 0);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
@keyframes fpSlideLeftNew {
|
|
39
|
+
from {
|
|
40
|
+
transform: translate3d(100%, 0, 0);
|
|
41
|
+
}
|
|
42
|
+
to {
|
|
43
|
+
transform: translate3d(0, 0, 0);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
@keyframes fpSlideRight {
|
|
48
|
+
from {
|
|
49
|
+
transform: translate3d(0, 0, 0);
|
|
50
|
+
}
|
|
51
|
+
to {
|
|
52
|
+
transform: translate3d(100%, 0, 0);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
@keyframes fpSlideRightNew {
|
|
57
|
+
from {
|
|
58
|
+
transform: translate3d(-100%, 0, 0);
|
|
59
|
+
}
|
|
60
|
+
to {
|
|
61
|
+
transform: translate3d(0, 0, 0);
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
@keyframes fpFadeOut {
|
|
66
|
+
from {
|
|
67
|
+
opacity: 1;
|
|
68
|
+
}
|
|
69
|
+
to {
|
|
70
|
+
opacity: 0;
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@keyframes fpFadeIn {
|
|
75
|
+
from {
|
|
76
|
+
opacity: 0;
|
|
77
|
+
}
|
|
78
|
+
to {
|
|
79
|
+
opacity: 1;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
@mixin flatpickr {
|
|
84
|
+
.flatpickr-calendar {
|
|
85
|
+
position: absolute;
|
|
86
|
+
overflow: hidden;
|
|
87
|
+
width: calcRem(315px);
|
|
88
|
+
max-height: 0;
|
|
89
|
+
box-sizing: border-box;
|
|
90
|
+
padding: 0;
|
|
91
|
+
border: 0;
|
|
92
|
+
animation: none;
|
|
93
|
+
border-radius: 0;
|
|
94
|
+
direction: ltr;
|
|
95
|
+
opacity: 0;
|
|
96
|
+
text-align: center;
|
|
97
|
+
touch-action: manipulation;
|
|
98
|
+
visibility: hidden;
|
|
99
|
+
@include high-contrast-mode("outline");
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
.flatpickr-calendar.open,
|
|
103
|
+
.flatpickr-calendar.inline {
|
|
104
|
+
overflow: visible;
|
|
105
|
+
max-height: calcRem(640px);
|
|
106
|
+
opacity: 1;
|
|
107
|
+
visibility: inherit;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.flatpickr-calendar.open {
|
|
111
|
+
@include box-shadow;
|
|
112
|
+
|
|
113
|
+
z-index: 99999;
|
|
114
|
+
display: flex;
|
|
115
|
+
overflow: hidden;
|
|
116
|
+
width: calcRem(288px);
|
|
117
|
+
height: calcRem(336px);
|
|
118
|
+
flex-direction: column;
|
|
119
|
+
align-items: center;
|
|
120
|
+
justify-content: center;
|
|
121
|
+
padding: $spacing-02 $spacing-02 $spacing-03 $spacing-02;
|
|
122
|
+
border: none;
|
|
123
|
+
margin-top: calcRem(-2px);
|
|
124
|
+
background-color: $ui-01;
|
|
125
|
+
|
|
126
|
+
&:focus {
|
|
127
|
+
@include focus-outline("border");
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
.flatpickr-calendar.animate.open {
|
|
132
|
+
animation: fpFadeInDown $duration-fast-02 motion(entrance, productive);
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
.flatpickr-calendar.inline {
|
|
136
|
+
position: relative;
|
|
137
|
+
top: calcRem(2px);
|
|
138
|
+
display: block;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.flatpickr-calendar.static {
|
|
142
|
+
position: absolute;
|
|
143
|
+
top: calc(100% + 2px);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
.flatpickr-calendar.static.open {
|
|
147
|
+
z-index: 999;
|
|
148
|
+
display: block;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
.flatpickr-calendar.hasWeeks {
|
|
152
|
+
width: auto;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
.dayContainer {
|
|
156
|
+
display: flex;
|
|
157
|
+
height: calcRem(246px);
|
|
158
|
+
flex-wrap: wrap;
|
|
159
|
+
justify-content: space-around;
|
|
160
|
+
padding: 0;
|
|
161
|
+
outline: 0;
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
.flatpickr-calendar .hasWeeks .dayContainer,
|
|
165
|
+
.flatpickr-calendar .hasTime .dayContainer {
|
|
166
|
+
border-bottom: 0;
|
|
167
|
+
border-bottom-left-radius: 0;
|
|
168
|
+
border-bottom-right-radius: 0;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.flatpickr-calendar .hasWeeks .dayContainer {
|
|
172
|
+
border-left: 0;
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
.flatpickr-calendar.showTimeInput.hasTime .flatpickr-time {
|
|
176
|
+
height: calcRem(40px);
|
|
177
|
+
border-top: 1px solid #e6e6e6;
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
.flatpickr-calendar.noCalendar.hasTime .flatpickr-time {
|
|
181
|
+
height: auto;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.flatpickr-calendar:focus {
|
|
185
|
+
outline: 0;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.flatpickr-months {
|
|
189
|
+
display: flex;
|
|
190
|
+
width: 100%;
|
|
191
|
+
justify-content: space-between;
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
.flatpickr-month {
|
|
195
|
+
@include type-style("productive-heading-01");
|
|
196
|
+
|
|
197
|
+
display: flex;
|
|
198
|
+
height: calcRem(40px);
|
|
199
|
+
align-items: center;
|
|
200
|
+
background-color: transparent;
|
|
201
|
+
color: $text-01;
|
|
202
|
+
line-height: 1;
|
|
203
|
+
text-align: center;
|
|
204
|
+
}
|
|
205
|
+
|
|
206
|
+
.flatpickr-prev-month,
|
|
207
|
+
.flatpickr-next-month {
|
|
208
|
+
z-index: 3;
|
|
209
|
+
display: flex;
|
|
210
|
+
width: calcRem(40px);
|
|
211
|
+
height: calcRem(40px);
|
|
212
|
+
align-items: center;
|
|
213
|
+
justify-content: center;
|
|
214
|
+
padding: 0;
|
|
215
|
+
cursor: pointer;
|
|
216
|
+
fill: $icon-01;
|
|
217
|
+
line-height: 16px;
|
|
218
|
+
text-decoration: none;
|
|
219
|
+
transform: scale(1, 1) #{"/*rtl: scale(-1,1)*/"};
|
|
220
|
+
transition: background-color $duration-fast-01 motion(standard, productive);
|
|
221
|
+
// Windows HCM fix
|
|
222
|
+
@include high-contrast-mode("icon-fill");
|
|
223
|
+
|
|
224
|
+
&:hover {
|
|
225
|
+
background-color: $hover-ui;
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
.flatpickr-next-month.disabled svg,
|
|
230
|
+
.flatpickr-prev-month.disabled svg {
|
|
231
|
+
cursor: not-allowed;
|
|
232
|
+
fill: $ui-05;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
.flatpickr-next-month.disabled:hover svg,
|
|
236
|
+
.flatpickr-prev-month.disabled:hover svg {
|
|
237
|
+
fill: $ui-05;
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
.flatpickr-current-month {
|
|
241
|
+
@include type-style("productive-heading-01");
|
|
242
|
+
|
|
243
|
+
display: flex;
|
|
244
|
+
height: calcRem(28px);
|
|
245
|
+
align-items: center;
|
|
246
|
+
justify-content: center;
|
|
247
|
+
text-align: center;
|
|
248
|
+
}
|
|
249
|
+
|
|
250
|
+
.flatpickr-current-month .cur-month {
|
|
251
|
+
margin-right: $spacing-02;
|
|
252
|
+
margin-left: $spacing-02;
|
|
253
|
+
|
|
254
|
+
&:hover {
|
|
255
|
+
background-color: $hover-ui;
|
|
256
|
+
}
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
.numInputWrapper {
|
|
260
|
+
position: relative;
|
|
261
|
+
width: calcRem(60px);
|
|
262
|
+
|
|
263
|
+
&:hover {
|
|
264
|
+
background-color: $hover-ui;
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
.numInputWrapper .numInput {
|
|
269
|
+
display: inline-block;
|
|
270
|
+
width: 100%;
|
|
271
|
+
padding: $spacing-02;
|
|
272
|
+
border: none;
|
|
273
|
+
margin: 0;
|
|
274
|
+
// Added in when upgraded to Flatpickr 4.5.5 (#1977)
|
|
275
|
+
-moz-appearance: textfield; /* Firefox */
|
|
276
|
+
background-color: $field-01;
|
|
277
|
+
color: $text-01;
|
|
278
|
+
cursor: default;
|
|
279
|
+
font-family: inherit;
|
|
280
|
+
font-size: inherit;
|
|
281
|
+
font-weight: 600;
|
|
282
|
+
|
|
283
|
+
&::-webkit-outer-spin-button,
|
|
284
|
+
&::-webkit-inner-spin-button {
|
|
285
|
+
margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
|
|
286
|
+
// Added in when upgraded to Flatpickr 4.5.5 (#1977)
|
|
287
|
+
-webkit-appearance: none;
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
&:focus {
|
|
291
|
+
@include focus-outline("border");
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
&[disabled],
|
|
295
|
+
&[disabled]:hover {
|
|
296
|
+
background-color: $ui-01;
|
|
297
|
+
color: $disabled-02;
|
|
298
|
+
pointer-events: none;
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
|
|
302
|
+
.numInputWrapper .arrowUp {
|
|
303
|
+
top: calcRem(4px);
|
|
304
|
+
border-bottom: 0;
|
|
305
|
+
|
|
306
|
+
&::after {
|
|
307
|
+
border-bottom: calcRem(4px) solid $icon-01;
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
|
|
311
|
+
.numInputWrapper .arrowDown {
|
|
312
|
+
top: calcRem(11px);
|
|
313
|
+
|
|
314
|
+
&::after {
|
|
315
|
+
border-top: calcRem(4px) solid $icon-01;
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
.numInputWrapper .arrowUp,
|
|
320
|
+
.numInputWrapper .arrowDown {
|
|
321
|
+
position: absolute;
|
|
322
|
+
left: 2.6rem;
|
|
323
|
+
width: calcRem(12px);
|
|
324
|
+
height: 50%;
|
|
325
|
+
padding: 0 calcRem(4px) 0 calcRem(2px);
|
|
326
|
+
border: none;
|
|
327
|
+
cursor: pointer;
|
|
328
|
+
line-height: 50%;
|
|
329
|
+
opacity: 0;
|
|
330
|
+
|
|
331
|
+
&::after {
|
|
332
|
+
position: absolute;
|
|
333
|
+
top: 33%;
|
|
334
|
+
display: block;
|
|
335
|
+
border-right: calcRem(4px) solid transparent;
|
|
336
|
+
border-left: calcRem(4px) solid transparent;
|
|
337
|
+
content: "";
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
&:hover::after {
|
|
341
|
+
border-top-color: $action-default-fill-primary-default-01;
|
|
342
|
+
border-bottom-color: $action-default-fill-primary-default-01;
|
|
343
|
+
}
|
|
344
|
+
|
|
345
|
+
&:active::after {
|
|
346
|
+
border-top-color: $action-default-fill-primary-default-04;
|
|
347
|
+
border-bottom-color: $action-default-fill-primary-default-04;
|
|
348
|
+
}
|
|
349
|
+
}
|
|
350
|
+
|
|
351
|
+
.numInput[disabled] ~ .arrowUp::after {
|
|
352
|
+
border-bottom-color: $disabled-02;
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
.numInput[disabled] ~ .arrowDown::after {
|
|
356
|
+
border-top-color: $disabled-02;
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
.numInputWrapper:hover .arrowUp,
|
|
360
|
+
.numInputWrapper:hover .arrowDown {
|
|
361
|
+
opacity: 1;
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
.numInputWrapper:hover .numInput[disabled] ~ .arrowUp,
|
|
365
|
+
.numInputWrapper:hover .numInput[disabled] ~ .arrowDown {
|
|
366
|
+
opacity: 0;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
.flatpickr-weekdays {
|
|
370
|
+
display: flex;
|
|
371
|
+
height: calcRem(40px);
|
|
372
|
+
align-items: center;
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
.flatpickr-weekdaycontainer {
|
|
376
|
+
display: flex;
|
|
377
|
+
width: 100%;
|
|
378
|
+
}
|
|
379
|
+
|
|
380
|
+
.flatpickr-weekday {
|
|
381
|
+
@include type-style("body-short");
|
|
382
|
+
|
|
383
|
+
flex: 1;
|
|
384
|
+
color: $text-01;
|
|
385
|
+
cursor: default;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.flatpickr-days:focus {
|
|
389
|
+
outline: 0;
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
.flatpickr-calendar.animate .dayContainer.slideLeft {
|
|
393
|
+
animation: fpFadeOut 400ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
394
|
+
fpSlideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
.flatpickr-calendar.animate .dayContainer.slideLeft,
|
|
398
|
+
.flatpickr-calendar.animate .dayContainer.slideLeftNew {
|
|
399
|
+
transform: translate3d(-100%, 0, 0);
|
|
400
|
+
}
|
|
401
|
+
|
|
402
|
+
.flatpickr-calendar.animate .dayContainer.slideLeftNew {
|
|
403
|
+
animation: fpFadeIn 400ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
404
|
+
fpSlideLeft 400ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
.flatpickr-calendar.animate .dayContainer.slideRight {
|
|
408
|
+
animation: fpFadeOut 400ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
409
|
+
fpSlideRight 400ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
410
|
+
transform: translate3d(100%, 0, 0);
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
.flatpickr-calendar.animate .dayContainer.slideRightNew {
|
|
414
|
+
animation: fpFadeIn 400ms cubic-bezier(0.23, 1, 0.32, 1),
|
|
415
|
+
fpSlideRightNew 400ms cubic-bezier(0.23, 1, 0.32, 1);
|
|
416
|
+
}
|
|
417
|
+
|
|
418
|
+
.flatpickr-day {
|
|
419
|
+
@include type-style("body-short");
|
|
420
|
+
|
|
421
|
+
display: flex;
|
|
422
|
+
width: calcRem(40px);
|
|
423
|
+
height: calcRem(40px);
|
|
424
|
+
align-items: center;
|
|
425
|
+
justify-content: center;
|
|
426
|
+
color: $text-01;
|
|
427
|
+
cursor: pointer;
|
|
428
|
+
transition: all $duration-fast-01 motion(standard, productive);
|
|
429
|
+
|
|
430
|
+
&:hover {
|
|
431
|
+
background: $hover-ui;
|
|
432
|
+
}
|
|
433
|
+
|
|
434
|
+
&:focus {
|
|
435
|
+
@include focus-outline("outline");
|
|
436
|
+
|
|
437
|
+
outline-color: $action-default-fill-primary-default-01;
|
|
438
|
+
}
|
|
439
|
+
}
|
|
440
|
+
|
|
441
|
+
.nextMonthDay,
|
|
442
|
+
.prevMonthDay {
|
|
443
|
+
color: $text-05;
|
|
444
|
+
}
|
|
445
|
+
|
|
446
|
+
.flatpickr-day.today {
|
|
447
|
+
position: relative;
|
|
448
|
+
color: $link-01;
|
|
449
|
+
font-weight: 600;
|
|
450
|
+
|
|
451
|
+
&::after {
|
|
452
|
+
position: absolute;
|
|
453
|
+
bottom: calcRem(7px);
|
|
454
|
+
left: 50%;
|
|
455
|
+
display: block;
|
|
456
|
+
width: calcRem(4px);
|
|
457
|
+
height: calcRem(4px);
|
|
458
|
+
background-color: $link-01;
|
|
459
|
+
content: "";
|
|
460
|
+
transform: translateX(-50%);
|
|
461
|
+
}
|
|
462
|
+
}
|
|
463
|
+
|
|
464
|
+
.flatpickr-day.today.no-border {
|
|
465
|
+
border: none;
|
|
466
|
+
}
|
|
467
|
+
|
|
468
|
+
.flatpickr-day.today.selected {
|
|
469
|
+
@include focus-outline("outline");
|
|
470
|
+
|
|
471
|
+
&::after {
|
|
472
|
+
display: none;
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
.flatpickr-day.inRange {
|
|
477
|
+
background-color: $highlight;
|
|
478
|
+
color: $text-01;
|
|
479
|
+
}
|
|
480
|
+
|
|
481
|
+
.flatpickr-day.selected {
|
|
482
|
+
background-color: $action-default-fill-primary-default-01;
|
|
483
|
+
color: $text-04;
|
|
484
|
+
@include high-contrast-mode("focus") {
|
|
485
|
+
outline-style: dotted;
|
|
486
|
+
}
|
|
487
|
+
|
|
488
|
+
&:focus {
|
|
489
|
+
outline: calcRem(1px) solid $ui-02;
|
|
490
|
+
outline-offset: calcRem(-3px);
|
|
491
|
+
}
|
|
492
|
+
}
|
|
493
|
+
|
|
494
|
+
.flatpickr-day.startRange.selected {
|
|
495
|
+
z-index: 2;
|
|
496
|
+
box-shadow: none;
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
.flatpickr-day.startRange.inRange:not(.selected),
|
|
500
|
+
.flatpickr-day.endRange.inRange {
|
|
501
|
+
@include focus-outline("outline");
|
|
502
|
+
|
|
503
|
+
z-index: 3;
|
|
504
|
+
background: $ui-01;
|
|
505
|
+
}
|
|
506
|
+
|
|
507
|
+
.flatpickr-day.endRange:hover {
|
|
508
|
+
@include focus-outline("outline");
|
|
509
|
+
|
|
510
|
+
background: $ui-01;
|
|
511
|
+
color: $text-01;
|
|
512
|
+
}
|
|
513
|
+
|
|
514
|
+
.flatpickr-day.endRange.inRange.selected {
|
|
515
|
+
background: $action-default-fill-primary-default-01;
|
|
516
|
+
color: $text-04;
|
|
517
|
+
}
|
|
518
|
+
|
|
519
|
+
.flatpickr-day.flatpickr-disabled {
|
|
520
|
+
color: $disabled-02;
|
|
521
|
+
cursor: not-allowed;
|
|
522
|
+
|
|
523
|
+
&:hover {
|
|
524
|
+
background-color: transparent;
|
|
525
|
+
}
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
.flatpickr-input[readonly] {
|
|
529
|
+
cursor: pointer;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
.flatpickr-day.today,
|
|
533
|
+
.flatpickr-day.inRange {
|
|
534
|
+
@include high-contrast-mode {
|
|
535
|
+
color: Highlight;
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright IBM Corp. 2018, 2018
|
|
3
|
+
//
|
|
4
|
+
// This source code is licensed under the Apache-2.0 license found in the
|
|
5
|
+
// LICENSE file in the root directory of this source tree.
|
|
6
|
+
//
|
|
7
|
+
|
|
8
|
+
@forward 'date-picker';
|
|
9
|
+
@use 'date-picker';
|
|
10
|
+
|
|
11
|
+
@include date-picker.date-picker;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
@use "../../config" as *;
|
|
2
|
+
@use "../../motion" as *;
|
|
3
|
+
@use "../../theme" as *;
|
|
4
|
+
@use "../../spacing" as *;
|
|
5
|
+
@use "../../type" as *;
|
|
6
|
+
@use "../../utilities/component-reset";
|
|
7
|
+
@use "../../utilities/convert" as *;
|
|
8
|
+
@use "../../utilities/focus-outline" as *;
|
|
9
|
+
@use "../../utilities/high-contrast-mode" as *;
|
|
10
|
+
@use "../../utilities/placeholder-colors" as *;
|
|
11
|
+
@use "../../utilities/skeleton" as *;
|
|
12
|
+
@use "../../utilities/input-base" as *;
|
|
13
|
+
|
|
14
|
+
@use "./react-datepicker/datepicker.scss" as *;
|
|
15
|
+
|
|
16
|
+
/// Date picker styles
|
|
17
|
+
/// @access public
|
|
18
|
+
/// @group date-picker
|
|
19
|
+
|
|
20
|
+
$datepicker__background-color: $background !default;
|
|
21
|
+
$datepicker__border-color: #aeaeae !default;
|
|
22
|
+
$datepicker__highlighted-color: #3dcc4a !default;
|
|
23
|
+
$datepicker__muted-color: $text-body-secondary !default;
|
|
24
|
+
$datepicker__selected-color: #216ba5 !default;
|
|
25
|
+
$datepicker__text-color: $text-body-default !default;
|
|
26
|
+
$datepicker__header-color: $text-body-default !default;
|
|
27
|
+
$datepicker__navigation-disabled-color: lighten(
|
|
28
|
+
$datepicker__muted-color,
|
|
29
|
+
10%
|
|
30
|
+
) !default;
|
|
31
|
+
|
|
32
|
+
$datepicker__border-radius: 0rem !default;
|
|
33
|
+
$datepicker__day-margin: 0.166rem !default;
|
|
34
|
+
$datepicker__font-size: 0.8rem !default;
|
|
35
|
+
$datepicker__item-size: 1.7rem !default;
|
|
36
|
+
$datepicker__margin: 0.4rem !default;
|
|
37
|
+
$datepicker__navigation-button-size: 32px !default;
|
|
38
|
+
$datepicker__triangle-size: 8px !default;
|
|
39
|
+
|
|
40
|
+
@mixin date-picker-new {
|
|
41
|
+
/* Date Picker */
|
|
42
|
+
.#{$prefix}--date-picker {
|
|
43
|
+
display: inline-flex;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.#{$prefix}--date-picker__arrow {
|
|
47
|
+
width: 0.8em;
|
|
48
|
+
height: auto;
|
|
49
|
+
margin: 0 0.7em;
|
|
50
|
+
//color: $form-field-border; //$field-border;
|
|
51
|
+
}
|
|
52
|
+
.#{$prefix}--date-picker__input {
|
|
53
|
+
position: relative;
|
|
54
|
+
input {
|
|
55
|
+
@include input-base;
|
|
56
|
+
min-width: 10em !important;
|
|
57
|
+
max-width: 10em !important;
|
|
58
|
+
//padding-left: 2.5em;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
.#{$prefix}--date-picker__icon {
|
|
62
|
+
position: absolute;
|
|
63
|
+
top: 0.75em;
|
|
64
|
+
right: 0.7em;
|
|
65
|
+
width: 0.9em;
|
|
66
|
+
height: auto;
|
|
67
|
+
pointer-events: none;
|
|
68
|
+
color: $action-default-fill-primary-default;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
/* Date Range Picker */
|
|
72
|
+
.#{$prefix}--date-ranger-picker {
|
|
73
|
+
display: inline-flex;
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
.#{$prefix}--date-ranger-picker__arrow {
|
|
77
|
+
width: 0.8em;
|
|
78
|
+
height: auto;
|
|
79
|
+
margin: 0 0.7em;
|
|
80
|
+
//color: $form-field-border; //$field-border;
|
|
81
|
+
}
|
|
82
|
+
.#{$prefix}--date-ranger-picker__input {
|
|
83
|
+
position: relative;
|
|
84
|
+
input {
|
|
85
|
+
@include input-base;
|
|
86
|
+
min-width: 10em !important;
|
|
87
|
+
max-width: 10em !important;
|
|
88
|
+
//padding-left: 2.5em;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
.#{$prefix}--date-ranger-picker__icon {
|
|
92
|
+
position: absolute;
|
|
93
|
+
top: 0.75em;
|
|
94
|
+
right: 0.7em;
|
|
95
|
+
width: 0.9em;
|
|
96
|
+
height: auto;
|
|
97
|
+
pointer-events: none;
|
|
98
|
+
color: $action-default-fill-primary-default;
|
|
99
|
+
}
|
|
100
|
+
}
|