@aquera/nile-elements 0.0.16 → 0.0.18
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/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button/nile-button.css.js +113 -64
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button/nile-button.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.css.js +117 -3
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.d.ts +16 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.js +225 -20
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/timezones.d.ts +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/timezones.js +350 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/timezones.js.map +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-option/nile-option.css.js +1 -0
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-option/nile-option.css.js.map +1 -1
- package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
- package/demo/index.html +18 -1
- package/dist/index.cjs.js +1 -1
- package/dist/index.esm.js +1 -1
- package/dist/index.iife.js +606 -331
- package/dist/nile-button/nile-button.css.cjs.js +1 -1
- package/dist/nile-button/nile-button.css.cjs.js.map +1 -1
- package/dist/nile-button/nile-button.css.esm.js +115 -66
- package/dist/nile-calendar/index.cjs.js +1 -1
- package/dist/nile-calendar/index.esm.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js +1 -1
- package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -1
- package/dist/nile-calendar/nile-calendar.css.esm.js +119 -5
- package/dist/nile-calendar/nile-calendar.esm.js +130 -19
- package/dist/nile-calendar/timezones.cjs.js +2 -0
- package/dist/nile-calendar/timezones.cjs.js.map +1 -0
- package/dist/nile-calendar/timezones.esm.js +1 -0
- package/dist/nile-option/nile-option.css.cjs.js +1 -1
- package/dist/nile-option/nile-option.css.cjs.js.map +1 -1
- package/dist/nile-option/nile-option.css.esm.js +3 -2
- package/dist/src/nile-button/nile-button.css.js +113 -64
- package/dist/src/nile-button/nile-button.css.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.css.js +117 -3
- package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -1
- package/dist/src/nile-calendar/nile-calendar.d.ts +16 -1
- package/dist/src/nile-calendar/nile-calendar.js +225 -20
- package/dist/src/nile-calendar/nile-calendar.js.map +1 -1
- package/dist/src/nile-calendar/timezones.d.ts +1 -0
- package/dist/src/nile-calendar/timezones.js +350 -0
- package/dist/src/nile-calendar/timezones.js.map +1 -0
- package/dist/src/nile-option/nile-option.css.js +1 -0
- package/dist/src/nile-option/nile-option.css.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/nile-button/nile-button.css.ts +113 -64
- package/src/nile-calendar/nile-calendar.css.ts +117 -3
- package/src/nile-calendar/nile-calendar.ts +321 -83
- package/src/nile-calendar/timezones.ts +348 -0
- package/src/nile-option/nile-option.css.ts +1 -0
package/package.json
CHANGED
@@ -74,127 +74,176 @@ export const styles = css`
|
|
74
74
|
}
|
75
75
|
|
76
76
|
.button--standard.button--secondary {
|
77
|
-
background-color: var(--nile-colors-
|
78
|
-
border-color: var(--nile-colors-
|
79
|
-
color: var(--nile-colors-
|
77
|
+
background-color: var(--nile-colors-button-secondary);
|
78
|
+
border-color: var(--nile-colors-button-secondary-border);
|
79
|
+
color: var(--nile-colors-button-secondary-text);
|
80
80
|
}
|
81
81
|
|
82
82
|
.button--standard.button--secondary:hover:not(.button--disabled) {
|
83
|
-
background-color: var(--nile-colors-
|
84
|
-
border
|
85
|
-
|
86
|
-
color: var(--nile-colors-neutral-900);
|
83
|
+
background-color: var(--nile-colors-button-secondary-hover);
|
84
|
+
border-color: var(--nile-colors-button-secondary-border);
|
85
|
+
color: var(--nile-colors-button-secondary-text);
|
87
86
|
}
|
88
87
|
|
89
88
|
.button--standard.button--secondary:active:not(.button--disabled) {
|
90
|
-
background-color: var(--nile-colors-
|
91
|
-
border-color: var(--nile-colors-
|
92
|
-
color: var(--nile-colors-
|
89
|
+
background-color: var(--nile-colors-button-secondary-pressed);
|
90
|
+
border-color: var(--nile-colors-button-secondary-pressed-border);
|
91
|
+
color: var(--nile-colors-button-secondary-text);
|
93
92
|
}
|
94
93
|
|
95
94
|
.button--standard.button--secondary.button--disabled {
|
96
|
-
background-color: var(--nile-colors-
|
97
|
-
border-color: var(--nile-colors-
|
98
|
-
color: var(--nile-colors-
|
95
|
+
background-color: var(--nile-colors-button-secondary-disabled);
|
96
|
+
border-color: var(--nile-colors-button-secondary-disabled-border);
|
97
|
+
color: var(--nile-colors-button-secondary-disabled-text);
|
99
98
|
cursor: not-allowed;
|
100
99
|
}
|
101
100
|
|
102
101
|
.button--standard.button--secondary.button--disabled:hover,
|
103
102
|
.button--standard.button--secondary.button--disabled:active {
|
104
|
-
background-color: var(--nile-colors-
|
105
|
-
border-color: var(--nile-colors-
|
106
|
-
color: var(--nile-colors-
|
107
|
-
|
103
|
+
background-color: var(--nile-colors-button-secondary-disabled);
|
104
|
+
border-color: var(--nile-colors-button-secondary-disabled-border);
|
105
|
+
color: var(--nile-colors-button-secondary-disabled-text);
|
106
|
+
cursor: not-allowed;
|
108
107
|
}
|
109
108
|
|
110
109
|
/* Primary */
|
111
110
|
.button--standard.button--primary {
|
112
|
-
background-color: var(--nile-colors-primary
|
113
|
-
border-color: var(--nile-colors-primary-
|
114
|
-
color: var(--nile-colors-
|
111
|
+
background-color: var(--nile-colors-button-primary);
|
112
|
+
border-color: var(--nile-colors-button-primary-border);
|
113
|
+
color: var(--nile-colors-button-primary-text);
|
115
114
|
}
|
116
115
|
|
117
116
|
.button--standard.button--primary:hover:not(.button--disabled) {
|
118
|
-
background-color: var(--nile-colors-primary-
|
119
|
-
border-color: var(--nile-colors-primary-
|
120
|
-
|
121
|
-
color: var(--nile-colors-white-base);
|
117
|
+
background-color: var(--nile-colors-button-primary-hover);
|
118
|
+
border-color: var(--nile-colors-button-primary-hover);
|
119
|
+
color: var(--nile-colors-button-primary-text);
|
122
120
|
}
|
123
121
|
|
124
122
|
.button--standard.button--primary:active:not(.button--disabled) {
|
125
|
-
background-color: var(--nile-colors-primary-
|
126
|
-
border-color: var(--nile-colors-primary-
|
127
|
-
color: var(--nile-colors-
|
123
|
+
background-color: var(--nile-colors-button-primary-pressed);
|
124
|
+
border-color: var(--nile-colors-button-primary-pressed);
|
125
|
+
color: var(--nile-colors-button-primary-text);
|
128
126
|
}
|
129
127
|
|
130
128
|
.button--standard.button--primary.button--disabled {
|
131
|
-
background-color: var(--nile-colors-
|
132
|
-
border-color: var(--nile-colors-
|
133
|
-
color: var(--nile-colors-
|
129
|
+
background-color: var(--nile-colors-button-primary-disabled);
|
130
|
+
border-color: var(--nile-colors-button-primary-disabled);
|
131
|
+
color: var(--nile-colors-button-primary-disabled-text);
|
134
132
|
cursor: not-allowed;
|
135
133
|
}
|
136
134
|
|
137
135
|
.button--standard.button--primary.button--disabled:hover,
|
138
136
|
.button--standard.button--primary.button--disabled:active {
|
139
|
-
background-color: var(--nile-colors-
|
140
|
-
border-color: var(--nile-colors-
|
141
|
-
color: var(--nile-colors-
|
142
|
-
|
137
|
+
background-color: var(--nile-colors-button-primary-disabled);
|
138
|
+
border-color: var(--nile-colors-button-primary-disabled);
|
139
|
+
color: var(--nile-colors-button-primary-disabled-text);
|
140
|
+
cursor: not-allowed;
|
143
141
|
}
|
144
142
|
|
145
143
|
/* Tertiary */
|
146
144
|
.button--standard.button--tertiary {
|
147
|
-
background-color: var(--nile-colors-
|
148
|
-
border-color: var(--nile-colors-
|
149
|
-
color: var(--nile-colors-
|
150
|
-
box-shadow: 0px 2px 4px var(--nile-colors-dark-200);
|
145
|
+
background-color: var(--nile-colors-button-tertiary);
|
146
|
+
border-color: var(--nile-colors-button-tertiary-border);
|
147
|
+
color: var(--nile-colors-button-tertiary-text);
|
151
148
|
}
|
152
149
|
|
153
150
|
.button--standard.button--tertiary:hover:not(.button--disabled) {
|
154
|
-
background-color: var(--nile-colors-
|
151
|
+
background-color: var(--nile-colors-button-tertiary-hover);
|
155
152
|
border-color: var(--nile-colors-neutral-500);
|
156
|
-
|
157
|
-
color: var(--nile-colors-neutral-700);
|
153
|
+
color: var(--nile-colors-button-tertiary-text);
|
158
154
|
}
|
159
155
|
|
160
156
|
.button--standard.button--tertiary:active:not(.button--disabled) {
|
161
|
-
background-color: var(--nile-colors-
|
162
|
-
border-color: var(--nile-colors-
|
163
|
-
color: var(--nile-colors-
|
164
|
-
}
|
165
|
-
.button--standard.button--tertiary.button--disabled {
|
166
|
-
border-color: #e5e9eb;
|
167
|
-
background-color: var(--nile-colors-white-base);
|
168
|
-
color: var(--nile-colors-neutral-700);
|
169
|
-
cursor: not-allowed;
|
170
|
-
box-shadow: none;
|
157
|
+
background-color: var(--nile-colors-button-tertiary-pressed);
|
158
|
+
border-color: var(--nile-colors-button-tertiary-pressed-border);
|
159
|
+
color: var(--nile-colors-button-tertiary-text);
|
171
160
|
}
|
172
161
|
|
162
|
+
.button--standard.button--tertiary.button--disabled,
|
173
163
|
.button--standard.button--tertiary.button--disabled:hover,
|
174
164
|
.button--standard.button--tertiary.button--disabled:active {
|
175
|
-
border-color:
|
176
|
-
background-color: var(--nile-colors-
|
177
|
-
color: var(--nile-colors-
|
165
|
+
border-color: var(--nile-colors-neutral-500);
|
166
|
+
background-color: var(--nile-colors-button-tertiary-disabled);
|
167
|
+
color: var(--nile-colors-button-tertiary-disabled-text);
|
168
|
+
cursor: not-allowed;
|
178
169
|
box-shadow: none;
|
179
170
|
}
|
180
171
|
|
181
172
|
/* caution */
|
182
173
|
.button--standard.button--caution {
|
183
|
-
background-color: var(--nile-colors-
|
184
|
-
border-color: var(--nile-colors-
|
185
|
-
color: var(--nile-colors-
|
174
|
+
background-color: var(--nile-colors-button-caution);
|
175
|
+
border-color: var(--nile-colors-button-caution);
|
176
|
+
color: var(--nile-colors-button-caution-text);
|
186
177
|
}
|
178
|
+
|
187
179
|
.button--standard.button--caution:hover:not(.button--disabled) {
|
188
|
-
background-color: var(--nile-colors-
|
189
|
-
border-color: var(--nile-colors-
|
190
|
-
color: var(--nile-colors-
|
180
|
+
background-color: var(--nile-colors-button-caution-hover);
|
181
|
+
border-color: var(--nile-colors-button-caution-hover);
|
182
|
+
color: var(--nile-colors-button-caution-text);
|
191
183
|
}
|
192
184
|
|
193
185
|
.button--standard.button--caution:active:not(.button--disabled) {
|
194
|
-
background-color: var(--nile-colors-
|
195
|
-
border-color: var(--nile-colors-
|
196
|
-
color: var(--nile-colors-
|
197
|
-
}
|
186
|
+
background-color: var(--nile-colors-button-caution-pressed);
|
187
|
+
border-color: var(--nile-colors-button-caution-pressed);
|
188
|
+
color: var(--nile-colors-button-caution-text);
|
189
|
+
}
|
190
|
+
|
191
|
+
.button--standard.button--caution.button--disabled,
|
192
|
+
.button--standard.button--caution.button--disabled:hover,
|
193
|
+
.button--standard.button--caution.button--disabled:active {
|
194
|
+
background-color: var(--nile-colors-button-caution-disabled);
|
195
|
+
border-color: var(--nile-colors-button-caution-disabled);
|
196
|
+
color: var(--nile-colors-button-caution-disabled-text);
|
197
|
+
}
|
198
|
+
|
199
|
+
|
200
|
+
/* Primary Variant - Nile Icon Fill */
|
201
|
+
.button--standard.button--primary ::slotted(nile-icon) {
|
202
|
+
--nile-svg-fill: var(--nile-colors-button-primary-text) !important;
|
203
|
+
}
|
204
|
+
.button--standard.button--primary:hover:not(.button--disabled) ::slotted(nile-icon),
|
205
|
+
.button--standard.button--primary:active:not(.button--disabled) ::slotted(nile-icon) {
|
206
|
+
--nile-svg-fill: var(--nile-colors-button-primary-text) !important;
|
207
|
+
}
|
208
|
+
.button--standard.button--primary.button--disabled ::slotted(nile-icon) {
|
209
|
+
--nile-svg-fill: var(--nile-colors-button-primary-disabled-text) !important;
|
210
|
+
}
|
211
|
+
|
212
|
+
/* Secondary Variant */
|
213
|
+
.button--standard.button--secondary ::slotted(nile-icon) {
|
214
|
+
--nile-svg-fill: var(--nile-colors-button-secondary-text) !important;
|
215
|
+
}
|
216
|
+
.button--standard.button--secondary:hover:not(.button--disabled) ::slotted(nile-icon),
|
217
|
+
.button--standard.button--secondary:active:not(.button--disabled) ::slotted(nile-icon) {
|
218
|
+
--nile-svg-fill: var(--nile-colors-button-secondary-text) !important;
|
219
|
+
}
|
220
|
+
.button--standard.button--secondary.button--disabled ::slotted(nile-icon) {
|
221
|
+
--nile-svg-fill: var(--nile-colors-button-secondary-disabled-text) !important;
|
222
|
+
}
|
223
|
+
|
224
|
+
/* Tertiary Variant */
|
225
|
+
.button--standard.button--tertiary ::slotted(nile-icon) {
|
226
|
+
--nile-svg-fill: var(--nile-colors-button-tertiary-text) !important;
|
227
|
+
}
|
228
|
+
.button--standard.button--tertiary:hover:not(.button--disabled) ::slotted(nile-icon),
|
229
|
+
.button--standard.button--tertiary:active:not(.button--disabled) ::slotted(nile-icon) {
|
230
|
+
--nile-svg-fill: var(--nile-colors-button-tertiary-text) !important;
|
231
|
+
}
|
232
|
+
.button--standard.button--tertiary.button--disabled ::slotted(nile-icon) {
|
233
|
+
--nile-svg-fill: var(--nile-colors-button-tertiary-disabled-text) !important;
|
234
|
+
}
|
235
|
+
|
236
|
+
/* Caution Variant */
|
237
|
+
.button--standard.button--caution ::slotted(nile-icon) {
|
238
|
+
--nile-svg-fill: var(--nile-colors-button-caution-text) !important;
|
239
|
+
}
|
240
|
+
.button--standard.button--caution:hover:not(.button--disabled) ::slotted(nile-icon),
|
241
|
+
.button--standard.button--caution:active:not(.button--disabled) ::slotted(nile-icon) {
|
242
|
+
--nile-svg-fill: var(--nile-colors-button-caution-text) !important;
|
243
|
+
}
|
244
|
+
.button--standard.button--caution.button--disabled ::slotted(nile-icon) {
|
245
|
+
--nile-svg-fill: var(--nile-colors-button-caution-disabled-text) !important;
|
246
|
+
}
|
198
247
|
|
199
248
|
/*
|
200
249
|
* Outline buttons
|
@@ -83,8 +83,17 @@ export const styles = css`
|
|
83
83
|
cursor: pointer;
|
84
84
|
}
|
85
85
|
|
86
|
+
.current-date {
|
87
|
+
border: 1px solid #1978b8;
|
88
|
+
}
|
89
|
+
|
90
|
+
.day:hover {
|
91
|
+
background-color: #e5e9eb;
|
92
|
+
}
|
93
|
+
|
86
94
|
.filler {
|
87
|
-
color:
|
95
|
+
color: #7f7f7f;
|
96
|
+
pointer-events: none;
|
88
97
|
}
|
89
98
|
|
90
99
|
.selected-date {
|
@@ -93,12 +102,15 @@ export const styles = css`
|
|
93
102
|
background: #a5d3f3;
|
94
103
|
}
|
95
104
|
|
105
|
+
.selected-date:hover {
|
106
|
+
background: #a5d3f3;
|
107
|
+
}
|
108
|
+
|
96
109
|
.calendar-wrapper {
|
97
110
|
background: white;
|
98
111
|
display: flex;
|
99
112
|
justify-content: space-between;
|
100
113
|
width: 365px;
|
101
|
-
box-shadow: 0px 4px 8px 0px rgba(119, 125, 130, 0.15);
|
102
114
|
}
|
103
115
|
|
104
116
|
.selected-date,
|
@@ -150,6 +162,10 @@ export const styles = css`
|
|
150
162
|
width: 365px;
|
151
163
|
}
|
152
164
|
|
165
|
+
.base__relative {
|
166
|
+
width: 446px;
|
167
|
+
}
|
168
|
+
|
153
169
|
.base__range {
|
154
170
|
padding: 24px;
|
155
171
|
}
|
@@ -160,6 +176,10 @@ export const styles = css`
|
|
160
176
|
width: 365px;
|
161
177
|
}
|
162
178
|
|
179
|
+
.calender-input--relative {
|
180
|
+
width: 446px;
|
181
|
+
}
|
182
|
+
|
163
183
|
.from {
|
164
184
|
display: flex;
|
165
185
|
justify-content: space-between;
|
@@ -183,7 +203,101 @@ export const styles = css`
|
|
183
203
|
.button-contaner {
|
184
204
|
width: 100%;
|
185
205
|
text-align: right;
|
186
|
-
padding:
|
206
|
+
padding: 24px 0 0 0;
|
207
|
+
}
|
208
|
+
|
209
|
+
.calendar-config {
|
210
|
+
display: flex;
|
211
|
+
align-items: center;
|
212
|
+
justify-content: space-between;
|
213
|
+
margin-bottom: 12px;
|
214
|
+
}
|
215
|
+
|
216
|
+
.calendar-switcher {
|
217
|
+
display: flex;
|
218
|
+
align-items: flex-start;
|
219
|
+
gap: 24px;
|
220
|
+
justify-content: space-between;
|
221
|
+
border-bottom: 1px solid #e5e9eb;
|
222
|
+
}
|
223
|
+
|
224
|
+
.calendar-switch {
|
225
|
+
padding-bottom: 12px;
|
226
|
+
cursor: pointer;
|
227
|
+
}
|
228
|
+
|
229
|
+
.calendar-switch__active {
|
230
|
+
padding-bottom: 12px;
|
231
|
+
border-bottom: 4px solid #005ea6;
|
232
|
+
}
|
233
|
+
|
234
|
+
.unit-container {
|
235
|
+
display: flex;
|
236
|
+
flex-direction: column;
|
237
|
+
width: 446px;
|
238
|
+
margin-top: 24px;
|
239
|
+
}
|
240
|
+
|
241
|
+
.time-unit-group {
|
242
|
+
display: flex;
|
243
|
+
align-items: center;
|
244
|
+
margin-bottom: 24px;
|
245
|
+
gap: 24px;
|
246
|
+
}
|
247
|
+
|
248
|
+
.time-unit-name {
|
249
|
+
width: 54px;
|
250
|
+
}
|
251
|
+
|
252
|
+
.time-unit-name span {
|
253
|
+
margin-right: 24px;
|
254
|
+
color: var(--color-text-default, #000);
|
255
|
+
font-family: Colfax-regular;
|
256
|
+
font-size: 14px;
|
257
|
+
font-style: normal;
|
258
|
+
font-weight: 500;
|
259
|
+
line-height: 14px;
|
260
|
+
letter-spacing: 0.2px;
|
261
|
+
}
|
262
|
+
|
263
|
+
.time-unit-value {
|
264
|
+
display: flex;
|
265
|
+
}
|
266
|
+
|
267
|
+
.time-value {
|
268
|
+
display: inline-flex;
|
269
|
+
width: 48px;
|
270
|
+
height: 32px;
|
271
|
+
box-sizing: border-box;
|
272
|
+
padding: 5px;
|
273
|
+
border: 1px solid #ddd;
|
274
|
+
cursor: pointer;
|
275
|
+
justify-content: center;
|
276
|
+
align-items: center;
|
277
|
+
margin-right: 16px;
|
278
|
+
border-radius: 4px;
|
279
|
+
border: 1px solid #c7ced4;
|
280
|
+
background: rgba(255, 255, 255, 0.2);
|
281
|
+
}
|
282
|
+
|
283
|
+
.time-value--selected {
|
284
|
+
background: #a5d3f3;
|
285
|
+
}
|
286
|
+
|
287
|
+
.time-value:last-child {
|
288
|
+
margin-right: 0;
|
289
|
+
}
|
290
|
+
|
291
|
+
.time-value:hover {
|
292
|
+
background: #e5e9eb;
|
293
|
+
}
|
294
|
+
|
295
|
+
.time-value--selected:hover {
|
296
|
+
background-color: #a5d3f3;
|
297
|
+
}
|
298
|
+
|
299
|
+
.hidden {
|
300
|
+
display: none !important;
|
187
301
|
}
|
188
302
|
`;
|
189
303
|
|