@aquera/nile-elements 0.0.2 → 0.0.3-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 (55) 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-button/nile-button.d.ts +2 -2
  5. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-button/nile-button.js.map +1 -1
  6. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/index.d.ts +1 -0
  7. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/index.js +2 -0
  8. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/index.js.map +1 -0
  9. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.css.d.ts +12 -0
  10. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.css.js +178 -0
  11. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.css.js.map +1 -0
  12. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.d.ts +70 -0
  13. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.js +494 -0
  14. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-date-picker/nile-date-picker.js.map +1 -0
  15. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.d.ts +2 -1
  16. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/src/nile-icon-button/nile-icon-button.js.map +1 -1
  17. package/.rollup.cache/opt/atlassian/pipelines/agent/build/packages/nile-elements/dist/tsconfig.tsbuildinfo +1 -1
  18. package/dist/index.cjs.js +1 -1
  19. package/dist/index.esm.js +1 -1
  20. package/dist/index.iife.js +315 -66
  21. package/dist/nile-button/nile-button.cjs.js.map +1 -1
  22. package/dist/nile-date-picker/index.cjs.js +2 -0
  23. package/dist/nile-date-picker/index.cjs.js.map +1 -0
  24. package/dist/nile-date-picker/index.esm.js +1 -0
  25. package/dist/nile-date-picker/nile-date-picker.cjs.js +2 -0
  26. package/dist/nile-date-picker/nile-date-picker.cjs.js.map +1 -0
  27. package/dist/nile-date-picker/nile-date-picker.css.cjs.js +2 -0
  28. package/dist/nile-date-picker/nile-date-picker.css.cjs.js.map +1 -0
  29. package/dist/nile-date-picker/nile-date-picker.css.esm.js +166 -0
  30. package/dist/nile-date-picker/nile-date-picker.esm.js +85 -0
  31. package/dist/nile-icon-button/nile-icon-button.cjs.js.map +1 -1
  32. package/dist/src/index.d.ts +1 -0
  33. package/dist/src/index.js +1 -0
  34. package/dist/src/index.js.map +1 -1
  35. package/dist/src/nile-button/nile-button.d.ts +2 -2
  36. package/dist/src/nile-button/nile-button.js.map +1 -1
  37. package/dist/src/nile-date-picker/index.d.ts +1 -0
  38. package/dist/src/nile-date-picker/index.js +2 -0
  39. package/dist/src/nile-date-picker/index.js.map +1 -0
  40. package/dist/src/nile-date-picker/nile-date-picker.css.d.ts +12 -0
  41. package/dist/src/nile-date-picker/nile-date-picker.css.js +178 -0
  42. package/dist/src/nile-date-picker/nile-date-picker.css.js.map +1 -0
  43. package/dist/src/nile-date-picker/nile-date-picker.d.ts +70 -0
  44. package/dist/src/nile-date-picker/nile-date-picker.js +494 -0
  45. package/dist/src/nile-date-picker/nile-date-picker.js.map +1 -0
  46. package/dist/src/nile-icon-button/nile-icon-button.d.ts +2 -1
  47. package/dist/src/nile-icon-button/nile-icon-button.js.map +1 -1
  48. package/dist/tsconfig.tsbuildinfo +1 -1
  49. package/package.json +1 -1
  50. package/src/index.ts +1 -0
  51. package/src/nile-button/nile-button.ts +2 -2
  52. package/src/nile-date-picker/index.ts +1 -0
  53. package/src/nile-date-picker/nile-date-picker.css.ts +180 -0
  54. package/src/nile-date-picker/nile-date-picker.ts +588 -0
  55. package/src/nile-icon-button/nile-icon-button.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.2",
6
+ "version": "0.0.3-1",
7
7
  "main": "dist/src/index.js",
8
8
  "type": "module",
9
9
  "module": "dist/src/index.js",
package/src/index.ts CHANGED
@@ -24,4 +24,5 @@ export { NileDropdown } from './nile-dropdown';
24
24
  export { NileAutoComplete } from './nile-auto-complete';
25
25
  export { NileChip } from './nile-chip';
26
26
  export { NileTextarea } from './nile-textarea';
27
+ export { NileDatePicker } from './nile-date-picker';
27
28
  export { NileErrorMessage } from './nile-error-message';
@@ -7,7 +7,7 @@ import { html, literal } from 'lit/static-html.js';
7
7
  import { ifDefined } from 'lit/directives/if-defined.js';
8
8
  import { watch } from '../internal/watch';
9
9
  import { styles } from './nile-button.css';
10
- import type { CSSResultGroup } from 'lit';
10
+ import type { CSSResultGroup, TemplateResult } from 'lit';
11
11
  import type { NileFormControl } from '../internal/nile-element';
12
12
  import NileElement from '../internal/nile-element';
13
13
 
@@ -275,7 +275,7 @@ export class NileButton extends NileElement implements NileFormControl {
275
275
  }
276
276
  }
277
277
 
278
- render() {
278
+ render(): TemplateResult {
279
279
  const isLink = this.isLink();
280
280
  const tag = isLink ? literal`a` : literal`button`;
281
281
 
@@ -0,0 +1 @@
1
+ export { NileDatePicker } from './nile-date-picker';
@@ -0,0 +1,180 @@
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
+ .divider {
41
+ width: 100%;
42
+ height: 1px;
43
+ background: #c7ced4;
44
+ }
45
+
46
+ .day-names {
47
+ font-size: 14px;
48
+ font-weight: 600;
49
+ line-height: 14px;
50
+ letter-spacing: 0.2px;
51
+ height: 50px;
52
+ margin-top: 10px;
53
+ }
54
+
55
+ .day-names,
56
+ .days {
57
+ display: flex;
58
+ flex-wrap: wrap;
59
+ justify-content: flex-start;
60
+ height: auto;
61
+ align-items: center;
62
+ }
63
+
64
+ .days {
65
+ height: auto;
66
+ }
67
+
68
+ .day {
69
+ flex-basis: calc(100% / 7);
70
+ box-sizing: border-box;
71
+ width: 48px;
72
+ align-items: center;
73
+ padding: 10px;
74
+ height: 32px;
75
+ margin-top: 6px;
76
+ margin-bottom: 6px;
77
+ display: flex;
78
+ justify-content: center;
79
+ align-items: center;
80
+ }
81
+
82
+ .filler {
83
+ color: grey;
84
+ }
85
+
86
+ .selected-date {
87
+ color: white;
88
+ border-radius: 4px;
89
+ background: #a5d3f3;
90
+ }
91
+
92
+
93
+
94
+ .calendar-wrapper {
95
+ background: white;
96
+ display: flex;
97
+ justify-content: space-between;
98
+ width: auto;
99
+ }
100
+
101
+ .selected-date,
102
+ .range-start,
103
+ .range-end {
104
+ border-radius: 4px;
105
+ background: #a5d3f3;
106
+ color: white;
107
+ }
108
+
109
+
110
+ .range-start {
111
+ background: #a5d3f3;
112
+ border-radius: 4px 0 0 4px;
113
+ color: white;
114
+ }
115
+
116
+ .range-end {
117
+ background: #a5d3f3;
118
+ border-radius: 0 4px 4px 0;
119
+ color: white;
120
+ }
121
+
122
+ .range-middle {
123
+ background: #a5d3f3;
124
+ color: white;
125
+ border-radius: 0;
126
+ }
127
+
128
+ .day.selected {
129
+ background: #a5d3f3;
130
+ color: white;
131
+ border-radius: 4px;
132
+ }
133
+
134
+ .day.in-range {
135
+ background: #a5d3f3;
136
+ color: white;
137
+ }
138
+
139
+ .selected-date {
140
+ color: white;
141
+ border-radius: 4px;
142
+ background: #a5d3f3;
143
+ }
144
+
145
+ .base {
146
+ background-color: white;
147
+ border-radius: 4px;
148
+ padding-bottom: 20px
149
+ }
150
+
151
+ .calender-input{
152
+ padding: 20px;
153
+ padding-bottom: 0px;
154
+ }
155
+
156
+ .from {
157
+ display: flex;
158
+ justify-content: space-between;
159
+ gap: 20px;
160
+ }
161
+
162
+ .manual-input{
163
+ width:100%;
164
+ }
165
+
166
+ .manual-input-label{
167
+ font-size: 12px;
168
+ font-style: normal;
169
+ font-weight: 500;
170
+ margin-bottom: 10px;
171
+ }
172
+
173
+ .apply-button {
174
+ text-align: right;
175
+ display: block;
176
+ padding-top: 20px;
177
+ }
178
+ `;
179
+
180
+ export default [styles];