@aquera/nile-elements 0.0.3-9 → 0.0.4-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (69) hide show
  1. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.d.ts +1 -0
  2. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js +1 -0
  3. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/index.js.map +1 -1
  4. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/index.d.ts +1 -0
  5. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/index.js +2 -0
  6. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/index.js.map +1 -0
  7. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.css.d.ts +12 -0
  8. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.css.js +186 -0
  9. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.css.js.map +1 -0
  10. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.d.ts +70 -0
  11. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.js +477 -0
  12. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-calendar/nile-calendar.js.map +1 -0
  13. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.css.js +1 -1
  14. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.css.js.map +1 -1
  15. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.d.ts +1 -17
  16. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.js +13 -317
  17. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.js.map +1 -1
  18. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.js +1 -1
  19. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-select/nile-select.js.map +1 -1
  20. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
  21. package/dist/index.cjs.js +1 -1
  22. package/dist/index.esm.js +1 -1
  23. package/dist/index.iife.js +332 -166
  24. package/dist/nile-calendar/index.cjs.js +2 -0
  25. package/dist/nile-calendar/index.cjs.js.map +1 -0
  26. package/dist/nile-calendar/index.esm.js +1 -0
  27. package/dist/nile-calendar/nile-calendar.cjs.js +2 -0
  28. package/dist/nile-calendar/nile-calendar.cjs.js.map +1 -0
  29. package/dist/nile-calendar/nile-calendar.css.cjs.js +2 -0
  30. package/dist/nile-calendar/nile-calendar.css.cjs.js.map +1 -0
  31. package/dist/nile-calendar/nile-calendar.css.esm.js +174 -0
  32. package/dist/nile-calendar/nile-calendar.esm.js +68 -0
  33. package/dist/nile-date-picker/nile-date-picker.cjs.js +1 -1
  34. package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -1
  35. package/dist/nile-date-picker/nile-date-picker.css.cjs.js +1 -1
  36. package/dist/nile-date-picker/nile-date-picker.css.cjs.js.map +1 -1
  37. package/dist/nile-date-picker/nile-date-picker.css.esm.js +1 -1
  38. package/dist/nile-date-picker/nile-date-picker.esm.js +9 -83
  39. package/dist/nile-select/nile-select.cjs.js +1 -1
  40. package/dist/nile-select/nile-select.cjs.js.map +1 -1
  41. package/dist/nile-select/nile-select.esm.js +1 -1
  42. package/dist/src/index.d.ts +1 -0
  43. package/dist/src/index.js +1 -0
  44. package/dist/src/index.js.map +1 -1
  45. package/dist/src/nile-calendar/index.d.ts +1 -0
  46. package/dist/src/nile-calendar/index.js +2 -0
  47. package/dist/src/nile-calendar/index.js.map +1 -0
  48. package/dist/src/nile-calendar/nile-calendar.css.d.ts +12 -0
  49. package/dist/src/nile-calendar/nile-calendar.css.js +186 -0
  50. package/dist/src/nile-calendar/nile-calendar.css.js.map +1 -0
  51. package/dist/src/nile-calendar/nile-calendar.d.ts +70 -0
  52. package/dist/src/nile-calendar/nile-calendar.js +477 -0
  53. package/dist/src/nile-calendar/nile-calendar.js.map +1 -0
  54. package/dist/src/nile-date-picker/nile-date-picker.css.js +1 -1
  55. package/dist/src/nile-date-picker/nile-date-picker.css.js.map +1 -1
  56. package/dist/src/nile-date-picker/nile-date-picker.d.ts +1 -17
  57. package/dist/src/nile-date-picker/nile-date-picker.js +13 -317
  58. package/dist/src/nile-date-picker/nile-date-picker.js.map +1 -1
  59. package/dist/src/nile-select/nile-select.js +1 -1
  60. package/dist/src/nile-select/nile-select.js.map +1 -1
  61. package/dist/tsconfig.tsbuildinfo +1 -1
  62. package/package.json +1 -1
  63. package/src/index.ts +1 -0
  64. package/src/nile-calendar/index.ts +1 -0
  65. package/src/nile-calendar/nile-calendar.css.ts +188 -0
  66. package/src/nile-calendar/nile-calendar.ts +571 -0
  67. package/src/nile-date-picker/nile-date-picker.css.ts +1 -1
  68. package/src/nile-date-picker/nile-date-picker.ts +14 -381
  69. package/src/nile-select/nile-select.ts +1 -1
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "Webcomponent nile-elements following open-wc recommendations",
4
4
  "license": "MIT",
5
5
  "author": "nile-elements",
6
- "version": "0.0.3-9",
6
+ "version": "0.0.4-1",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
package/src/index.ts CHANGED
@@ -28,3 +28,4 @@ export { NileDatePicker } from './nile-date-picker';
28
28
  export { NileErrorMessage } from './nile-error-message';
29
29
  export { NileFormErrorMessage } from './nile-form-error-message';
30
30
  export { NileFormHelpText } from './nile-form-help-text';
31
+ export { NileCalendar } from './nile-calendar';
@@ -0,0 +1 @@
1
+ export { NileCalendar } from './nile-calendar';
@@ -0,0 +1,188 @@
1
+ /**
2
+ * Copyright Aquera Inc 2023
3
+ *
4
+ * This source code is licensed under the BSD-3-Clause license found in the
5
+ * LICENSE file in the root directory of this source tree.
6
+ */
7
+
8
+ import { css } from 'lit-element';
9
+
10
+ /**
11
+ * DatePicker CSS
12
+ */
13
+ export const styles = css`
14
+ :host {
15
+ }
16
+
17
+ .calendar-container {
18
+ font-family: Colfax-regular;
19
+ width: 365px;
20
+ height: auto;
21
+ text-align: center;
22
+ background: white;
23
+ }
24
+
25
+ .calendar-container.with-margin {
26
+ margin-right: 20px;
27
+ }
28
+
29
+ .calendar-header {
30
+ display: flex;
31
+ justify-content: space-between;
32
+ padding: 10px;
33
+ padding: 22px 20px;
34
+ font-size: 14px;
35
+ font-weight: 600;
36
+ line-height: 14px;
37
+ letter-spacing: 0.2px;
38
+ }
39
+
40
+ .calendar-header__month-navigation {
41
+ cursor: pointer;
42
+ }
43
+
44
+ .divider {
45
+ width: 100%;
46
+ height: 1px;
47
+ background: #c7ced4;
48
+ }
49
+
50
+ .day-names {
51
+ font-size: 14px;
52
+ font-weight: 600;
53
+ line-height: 14px;
54
+ letter-spacing: 0.2px;
55
+ height: 50px;
56
+ margin-top: 10px;
57
+ }
58
+
59
+ .day-names,
60
+ .days {
61
+ display: flex;
62
+ flex-wrap: wrap;
63
+ justify-content: flex-start;
64
+ height: auto;
65
+ align-items: center;
66
+ }
67
+
68
+ .days {
69
+ height: auto;
70
+ }
71
+
72
+ .day {
73
+ flex-basis: calc(100% / 7);
74
+ box-sizing: border-box;
75
+ width: 48px;
76
+ align-items: center;
77
+ padding: 10px;
78
+ height: 32px;
79
+ margin-top: 6px;
80
+ margin-bottom: 6px;
81
+ display: flex;
82
+ justify-content: center;
83
+ align-items: center;
84
+ cursor: pointer;
85
+ }
86
+
87
+ .filler {
88
+ color: grey;
89
+ }
90
+
91
+ .selected-date {
92
+ color: white;
93
+ border-radius: 4px;
94
+ background: #a5d3f3;
95
+ }
96
+
97
+ .calendar-wrapper {
98
+ background: white;
99
+ display: flex;
100
+ justify-content: space-between;
101
+ width: auto;
102
+ }
103
+
104
+ .selected-date,
105
+ .range-start,
106
+ .range-end {
107
+ border-radius: 4px;
108
+ background: #a5d3f3;
109
+ color: white;
110
+ }
111
+
112
+ .range-start {
113
+ background: #a5d3f3;
114
+ border-radius: 4px 0 0 4px;
115
+ color: white;
116
+ }
117
+
118
+ .range-end {
119
+ background: #a5d3f3;
120
+ border-radius: 0 4px 4px 0;
121
+ color: white;
122
+ }
123
+
124
+ .range-middle {
125
+ background: #a5d3f3;
126
+ color: white;
127
+ border-radius: 0;
128
+ }
129
+
130
+ .day.selected {
131
+ background: #a5d3f3;
132
+ color: white;
133
+ border-radius: 4px;
134
+ }
135
+
136
+ .day.in-range {
137
+ background: #a5d3f3;
138
+ color: white;
139
+ }
140
+
141
+ .selected-date {
142
+ color: white;
143
+ border-radius: 4px;
144
+ background: #a5d3f3;
145
+ }
146
+
147
+ .base {
148
+ background-color: white;
149
+ border-radius: 4px;
150
+ padding-bottom: 20px;
151
+ width: 365px;
152
+ }
153
+
154
+ .base__range {
155
+ width: 730px;
156
+ }
157
+
158
+ .calender-input {
159
+ padding: 20px;
160
+ padding-bottom: 0px;
161
+ background: white;
162
+ }
163
+
164
+ .from {
165
+ display: flex;
166
+ justify-content: space-between;
167
+ gap: 20px;
168
+ }
169
+
170
+ .manual-input {
171
+ width: 100%;
172
+ }
173
+
174
+ .manual-input-label {
175
+ font-size: 12px;
176
+ font-style: normal;
177
+ font-weight: 500;
178
+ margin-bottom: 10px;
179
+ }
180
+
181
+ .button-contaner {
182
+ width: 100%;
183
+ text-align: right;
184
+ padding: 10px 0;
185
+ }
186
+ `;
187
+
188
+ export default [styles];