@limetech/lime-elements 38.23.5 → 38.24.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 (138) hide show
  1. package/CHANGELOG.md +19 -0
  2. package/dist/cjs/lime-elements.cjs.js +1 -1
  3. package/dist/cjs/limel-action-bar_2.cjs.entry.js +1 -1
  4. package/dist/cjs/limel-ai-avatar.cjs.entry.js +1 -1
  5. package/dist/cjs/limel-badge.cjs.entry.js +42 -0
  6. package/dist/cjs/limel-badge.cjs.entry.js.map +1 -0
  7. package/dist/cjs/limel-callout.cjs.entry.js +1 -1
  8. package/dist/cjs/limel-chart.cjs.entry.js +1 -1
  9. package/dist/cjs/limel-chip_2.cjs.entry.js +1 -1
  10. package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
  11. package/dist/cjs/limel-file-viewer.cjs.entry.js +24 -11
  12. package/dist/cjs/limel-file-viewer.cjs.entry.js.map +1 -1
  13. package/dist/cjs/limel-file.cjs.entry.js +1 -1
  14. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +1 -1
  15. package/dist/cjs/limel-linear-progress.cjs.entry.js +1 -1
  16. package/dist/cjs/{limel-portal_2.cjs.entry.js → limel-portal_3.cjs.entry.js} +107 -11
  17. package/dist/cjs/limel-portal_3.cjs.entry.js.map +1 -0
  18. package/dist/cjs/limel-profile-picture.cjs.entry.js +536 -0
  19. package/dist/cjs/limel-profile-picture.cjs.entry.js.map +1 -0
  20. package/dist/cjs/limel-prosemirror-adapter.cjs.entry.js +1 -1
  21. package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
  22. package/dist/cjs/limel-table.cjs.entry.js +1 -1
  23. package/dist/cjs/loader.cjs.js +1 -1
  24. package/dist/cjs/{translations-2746c4c6.js → translations-d2be6dd7.js} +41 -9
  25. package/dist/cjs/translations-d2be6dd7.js.map +1 -0
  26. package/dist/collection/collection-manifest.json +1 -0
  27. package/dist/collection/components/file-viewer/file-viewer.css +4 -2
  28. package/dist/collection/components/file-viewer/file-viewer.js +22 -9
  29. package/dist/collection/components/file-viewer/file-viewer.js.map +1 -1
  30. package/dist/collection/components/profile-picture/profile-picture.css +255 -0
  31. package/dist/collection/components/profile-picture/profile-picture.js +554 -0
  32. package/dist/collection/components/profile-picture/profile-picture.js.map +1 -0
  33. package/dist/collection/translations/da.js +5 -1
  34. package/dist/collection/translations/da.js.map +1 -1
  35. package/dist/collection/translations/de.js +5 -1
  36. package/dist/collection/translations/de.js.map +1 -1
  37. package/dist/collection/translations/en.js +5 -1
  38. package/dist/collection/translations/en.js.map +1 -1
  39. package/dist/collection/translations/fi.js +5 -1
  40. package/dist/collection/translations/fi.js.map +1 -1
  41. package/dist/collection/translations/fr.js +5 -1
  42. package/dist/collection/translations/fr.js.map +1 -1
  43. package/dist/collection/translations/nl.js +5 -1
  44. package/dist/collection/translations/nl.js.map +1 -1
  45. package/dist/collection/translations/no.js +5 -1
  46. package/dist/collection/translations/no.js.map +1 -1
  47. package/dist/collection/translations/sv.js +5 -1
  48. package/dist/collection/translations/sv.js.map +1 -1
  49. package/dist/collection/util/image-resize.js +305 -0
  50. package/dist/collection/util/image-resize.js.map +1 -0
  51. package/dist/esm/lime-elements.js +1 -1
  52. package/dist/esm/limel-action-bar_2.entry.js +1 -1
  53. package/dist/esm/limel-ai-avatar.entry.js +1 -1
  54. package/dist/esm/limel-badge.entry.js +38 -0
  55. package/dist/esm/limel-badge.entry.js.map +1 -0
  56. package/dist/esm/limel-callout.entry.js +1 -1
  57. package/dist/esm/limel-chart.entry.js +1 -1
  58. package/dist/esm/limel-chip_2.entry.js +1 -1
  59. package/dist/esm/limel-collapsible-section.entry.js +1 -1
  60. package/dist/esm/limel-file-viewer.entry.js +24 -11
  61. package/dist/esm/limel-file-viewer.entry.js.map +1 -1
  62. package/dist/esm/limel-file.entry.js +1 -1
  63. package/dist/esm/limel-flatpickr-adapter.entry.js +1 -1
  64. package/dist/esm/limel-linear-progress.entry.js +1 -1
  65. package/dist/esm/{limel-portal_2.entry.js → limel-portal_3.entry.js} +107 -12
  66. package/dist/esm/limel-portal_3.entry.js.map +1 -0
  67. package/dist/esm/limel-profile-picture.entry.js +532 -0
  68. package/dist/esm/limel-profile-picture.entry.js.map +1 -0
  69. package/dist/esm/limel-prosemirror-adapter.entry.js +1 -1
  70. package/dist/esm/limel-snackbar.entry.js +1 -1
  71. package/dist/esm/limel-table.entry.js +1 -1
  72. package/dist/esm/loader.js +1 -1
  73. package/dist/esm/{translations-0c3c0779.js → translations-91c611da.js} +41 -9
  74. package/dist/esm/translations-91c611da.js.map +1 -0
  75. package/dist/lime-elements/lime-elements.esm.js +1 -1
  76. package/dist/lime-elements/lime-elements.esm.js.map +1 -1
  77. package/dist/lime-elements/p-18a3c28a.entry.js +2 -0
  78. package/dist/lime-elements/p-18a3c28a.entry.js.map +1 -0
  79. package/dist/lime-elements/{p-244e13f5.entry.js → p-1b036add.entry.js} +2 -2
  80. package/dist/lime-elements/{p-9abbe61a.entry.js → p-2e22d9a1.entry.js} +2 -2
  81. package/dist/lime-elements/p-4c88e5d3.js +2 -0
  82. package/dist/lime-elements/p-4c88e5d3.js.map +1 -0
  83. package/dist/lime-elements/{p-208f87d2.entry.js → p-6466167d.entry.js} +2 -2
  84. package/dist/lime-elements/{p-5bf57c21.entry.js → p-8e3c4418.entry.js} +2 -2
  85. package/dist/lime-elements/p-92809b13.entry.js +2 -0
  86. package/dist/lime-elements/p-92809b13.entry.js.map +1 -0
  87. package/dist/lime-elements/{p-b957a3ca.entry.js → p-aeba4aa4.entry.js} +2 -2
  88. package/dist/lime-elements/p-b5a96409.entry.js +2 -0
  89. package/dist/lime-elements/p-b5a96409.entry.js.map +1 -0
  90. package/dist/lime-elements/{p-8a7bc823.entry.js → p-b5abf284.entry.js} +2 -2
  91. package/dist/lime-elements/{p-00aee6b6.entry.js → p-cc7f4c81.entry.js} +2 -2
  92. package/dist/lime-elements/{p-e4d64dd2.entry.js → p-e6bb4d1a.entry.js} +2 -2
  93. package/dist/lime-elements/{p-d7e93894.entry.js → p-e8520341.entry.js} +2 -2
  94. package/dist/lime-elements/p-ed04acfc.entry.js +2 -0
  95. package/dist/lime-elements/p-ed04acfc.entry.js.map +1 -0
  96. package/dist/lime-elements/{p-6edfe426.entry.js → p-ed8aa16c.entry.js} +2 -2
  97. package/dist/lime-elements/{p-2173d6d5.entry.js → p-ee0ed7ba.entry.js} +2 -2
  98. package/dist/lime-elements/{p-5018673b.entry.js → p-f83ebd28.entry.js} +2 -2
  99. package/dist/types/components/profile-picture/profile-picture.d.ts +126 -0
  100. package/dist/types/components.d.ts +203 -0
  101. package/dist/types/translations/da.d.ts +4 -0
  102. package/dist/types/translations/de.d.ts +4 -0
  103. package/dist/types/translations/en.d.ts +4 -0
  104. package/dist/types/translations/fi.d.ts +4 -0
  105. package/dist/types/translations/fr.d.ts +4 -0
  106. package/dist/types/translations/nl.d.ts +4 -0
  107. package/dist/types/translations/no.d.ts +4 -0
  108. package/dist/types/translations/sv.d.ts +4 -0
  109. package/dist/types/util/image-resize.d.ts +138 -0
  110. package/package.json +1 -1
  111. package/dist/cjs/limel-badge_2.cjs.entry.js +0 -138
  112. package/dist/cjs/limel-badge_2.cjs.entry.js.map +0 -1
  113. package/dist/cjs/limel-portal_2.cjs.entry.js.map +0 -1
  114. package/dist/cjs/translations-2746c4c6.js.map +0 -1
  115. package/dist/esm/limel-badge_2.entry.js +0 -133
  116. package/dist/esm/limel-badge_2.entry.js.map +0 -1
  117. package/dist/esm/limel-portal_2.entry.js.map +0 -1
  118. package/dist/esm/translations-0c3c0779.js.map +0 -1
  119. package/dist/lime-elements/p-29b1f083.entry.js +0 -2
  120. package/dist/lime-elements/p-29b1f083.entry.js.map +0 -1
  121. package/dist/lime-elements/p-65d5d2fb.entry.js +0 -2
  122. package/dist/lime-elements/p-65d5d2fb.entry.js.map +0 -1
  123. package/dist/lime-elements/p-c8825e88.js +0 -2
  124. package/dist/lime-elements/p-c8825e88.js.map +0 -1
  125. package/dist/lime-elements/p-fe7243c1.entry.js +0 -2
  126. package/dist/lime-elements/p-fe7243c1.entry.js.map +0 -1
  127. /package/dist/lime-elements/{p-244e13f5.entry.js.map → p-1b036add.entry.js.map} +0 -0
  128. /package/dist/lime-elements/{p-9abbe61a.entry.js.map → p-2e22d9a1.entry.js.map} +0 -0
  129. /package/dist/lime-elements/{p-208f87d2.entry.js.map → p-6466167d.entry.js.map} +0 -0
  130. /package/dist/lime-elements/{p-5bf57c21.entry.js.map → p-8e3c4418.entry.js.map} +0 -0
  131. /package/dist/lime-elements/{p-b957a3ca.entry.js.map → p-aeba4aa4.entry.js.map} +0 -0
  132. /package/dist/lime-elements/{p-8a7bc823.entry.js.map → p-b5abf284.entry.js.map} +0 -0
  133. /package/dist/lime-elements/{p-00aee6b6.entry.js.map → p-cc7f4c81.entry.js.map} +0 -0
  134. /package/dist/lime-elements/{p-e4d64dd2.entry.js.map → p-e6bb4d1a.entry.js.map} +0 -0
  135. /package/dist/lime-elements/{p-d7e93894.entry.js.map → p-e8520341.entry.js.map} +0 -0
  136. /package/dist/lime-elements/{p-6edfe426.entry.js.map → p-ed8aa16c.entry.js.map} +0 -0
  137. /package/dist/lime-elements/{p-2173d6d5.entry.js.map → p-ee0ed7ba.entry.js.map} +0 -0
  138. /package/dist/lime-elements/{p-5018673b.entry.js.map → p-f83ebd28.entry.js.map} +0 -0
@@ -0,0 +1,255 @@
1
+ @charset "UTF-8";
2
+ /**
3
+ * Note! This file is exported to `dist/scss/` in the published
4
+ * node module, for consumer projects to import.
5
+ * That means this file cannot import from any file that isn't
6
+ * also exported, keeping the same relative path.
7
+ *
8
+ * Or, just don't import anything, that works too.
9
+ */
10
+ /**
11
+ * This can be used on a trigger element that opens a dropdown menu or a popover.
12
+ */
13
+ /**
14
+ * This mixin will mask out the content that is close to
15
+ * the edges of a scrollable area.
16
+ * - If the scrollable content has `overflow-y`, use `vertically`
17
+ * as an argument for `$direction`.
18
+ - If the scrollable content has `overflow-x`, use `horizontally`
19
+ * as an argument for `$direction`.
20
+ *
21
+ * For the visual effect to work smoothly, we need to make sure that
22
+ * the size of the fade-out edge effect is the same as the
23
+ * internal paddings of the scrollable area. Otherwise, content of a
24
+ * scrollable area that does not have a padding will fade out before
25
+ * any scrolling has been done.
26
+ * This is why this mixin already adds paddings, which automatically
27
+ * default to the size of the fade-out effect.
28
+ * This size defaults to `1rem`, but to override the size use
29
+ * `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
30
+ * when `vertically` argument is set, and use
31
+ * `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
32
+ * when `horizontally` argument is set.
33
+ * Of course you can also programmatically increase and decrease the
34
+ * size of these variables for each edge, based on the amount of
35
+ * scrolling that has been done by the user. In this case, make sure
36
+ * to add a custom padding where the mixin is used, to override
37
+ * the paddings that are automatically added by the mixin in the
38
+ * compiled CSS code.
39
+ */
40
+ /**
41
+ * This mixin will add an animated underline to the bottom of an `a` elements.
42
+ * Note that you may need to add `all: unset;` –depending on your use case–
43
+ * before using this mixin.
44
+ */
45
+ /**
46
+ * This mixin creates a cross-browser font stack.
47
+ * - `sans-serif` can be used for the UI of the components.
48
+ * - `monospace` can be used for code.
49
+ *
50
+ * ⚠️ If we change the font stacks, we need to update
51
+ * 1. the consumer documentation in `README.md`, and
52
+ * 2. the CSS variables of `--kompendium-example-font-family`
53
+ * in the `<style>` tag of `index.html`.
54
+ */
55
+ /**
56
+ * This mixin is a hack, using old CSS syntax
57
+ * to enable you to truncate a piece of text,
58
+ * after a certain number of lines.
59
+ */
60
+ /**
61
+ * This mixin will add a chessboard background pattern,
62
+ * typically used to visualize transparency.
63
+ */
64
+ /**
65
+ * Make a container resizable by the user.
66
+ * This is used in the documentations and examples
67
+ * of some components, to demonstrate how the component
68
+ * behaves in a resizable container.
69
+ */
70
+ /**
71
+ * The breakpoints below are used to create responsive designs
72
+ * in Lime's products. Therefore, they are here to get distributed
73
+ * to all components in other private repos, which rely on this `mixins`
74
+ * file, to create consistent styles.
75
+ *
76
+ * :::important
77
+ * In very rare cases you should used media queries!
78
+ * Nowadays, there are many better ways of achieving responsive design
79
+ * without media queries. For example, using CSS Grid, Flexbox, and their features.
80
+ * :::
81
+ */
82
+ /**
83
+ * Media query mixins for responsive design based on screen width.
84
+ * Note that these mixins do not detect the device type!
85
+ */
86
+ /**
87
+ * @prop --profile-picture-border-radius: Border radius of the profile picture. Defaults to `100vw` to render a circular shape.
88
+ */
89
+ :host(limel-profile-picture) {
90
+ position: relative;
91
+ display: inline-flex;
92
+ min-width: 1.5rem;
93
+ min-height: 1.5rem;
94
+ border-radius: var(--profile-picture-border-radius, 100vw);
95
+ background-color: rgb(var(--contrast-400));
96
+ }
97
+
98
+ * {
99
+ box-sizing: border-box;
100
+ }
101
+
102
+ limel-file-dropzone,
103
+ limel-file-input,
104
+ button.avatar {
105
+ display: flex;
106
+ align-items: center;
107
+ justify-content: center;
108
+ width: 100%;
109
+ height: 100%;
110
+ }
111
+
112
+ button {
113
+ all: unset;
114
+ display: block;
115
+ }
116
+ button:focus {
117
+ outline: none;
118
+ }
119
+ button:focus-visible {
120
+ outline: none;
121
+ box-shadow: var(--shadow-depth-8-focused);
122
+ }
123
+ button.avatar {
124
+ overflow: hidden;
125
+ border-radius: var(--profile-picture-border-radius, 100vw);
126
+ }
127
+ :host(:not([disabled]):not([disabled=true])) button.avatar {
128
+ transition: color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);
129
+ cursor: pointer;
130
+ color: var(--limel-theme-on-surface-color);
131
+ background-color: transparent;
132
+ }
133
+ :host(:not([disabled]):not([disabled=true])) button.avatar:hover, :host(:not([disabled]):not([disabled=true])) button.avatar:focus, :host(:not([disabled]):not([disabled=true])) button.avatar:focus-visible {
134
+ will-change: color, background-color, box-shadow, transform;
135
+ }
136
+ :host(:not([disabled]):not([disabled=true])) button.avatar:hover, :host(:not([disabled]):not([disabled=true])) button.avatar:focus-visible {
137
+ transform: translate3d(0, 0.01rem, 0);
138
+ color: var(--limel-theme-on-surface-color);
139
+ background-color: var(--lime-elevated-surface-background-color);
140
+ }
141
+ :host(:not([disabled]):not([disabled=true])) button.avatar:hover {
142
+ box-shadow: var(--button-shadow-hovered);
143
+ }
144
+ :host(:not([disabled]):not([disabled=true])) button.avatar:active {
145
+ --limel-clickable-transform-timing-function: cubic-bezier(
146
+ 0.83,
147
+ -0.15,
148
+ 0.49,
149
+ 1.16
150
+ );
151
+ transform: translate3d(0, 0.05rem, 0);
152
+ box-shadow: var(--button-shadow-pressed);
153
+ }
154
+ :host(:not([disabled]):not([disabled=true])) button.avatar:hover, :host(:not([disabled]):not([disabled=true])) button.avatar:active {
155
+ --limel-clickable-transition-speed: 0.2s;
156
+ --limel-clickable-transform-speed: 0.16s;
157
+ }
158
+ :host([invalid]:not([invalid=false])) button.avatar {
159
+ box-shadow: var(--shadow-error-state);
160
+ }
161
+ button.remove {
162
+ transition: color var(--limel-clickable-transition-speed, 0.4s) ease, background-color var(--limel-clickable-transition-speed, 0.4s) ease, box-shadow var(--limel-clickable-transform-speed, 0.4s) ease, transform var(--limel-clickable-transform-speed, 0.4s) var(--limel-clickable-transform-timing-function, ease);
163
+ cursor: pointer;
164
+ color: var(--limel-theme-on-surface-color);
165
+ background-color: rgb(var(--contrast-900));
166
+ cursor: pointer;
167
+ height: 1.25rem;
168
+ width: 1.25rem;
169
+ border-radius: 50%;
170
+ background-repeat: no-repeat;
171
+ background-position: center;
172
+ background-size: 0.75rem;
173
+ background-image: url("data:image/svg+xml; utf8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><defs/><path fill='rgb(255,255,255)' d='M7.219 5.781L5.78 7.22 14.563 16 5.78 24.781 7.22 26.22 16 17.437l8.781 8.782 1.438-1.438L17.437 16l8.782-8.781L24.78 5.78 16 14.563z'/></svg>");
174
+ position: absolute;
175
+ top: 0;
176
+ left: 0;
177
+ opacity: 0;
178
+ }
179
+ button.remove:hover, button.remove:focus, button.remove:focus-visible {
180
+ will-change: color, background-color, box-shadow, transform;
181
+ }
182
+ button.remove:hover, button.remove:focus-visible {
183
+ transform: translate3d(0, 0.01rem, 0);
184
+ color: rgb(var(--color-white));
185
+ background-color: rgb(var(--color-red-default));
186
+ }
187
+ button.remove:hover {
188
+ box-shadow: var(--button-shadow-hovered);
189
+ }
190
+ button.remove:active {
191
+ --limel-clickable-transform-timing-function: cubic-bezier(
192
+ 0.83,
193
+ -0.15,
194
+ 0.49,
195
+ 1.16
196
+ );
197
+ transform: translate3d(0, 0.05rem, 0);
198
+ box-shadow: var(--button-shadow-pressed);
199
+ }
200
+ button.remove:hover, button.remove:active {
201
+ --limel-clickable-transition-speed: 0.2s;
202
+ --limel-clickable-transform-speed: 0.16s;
203
+ }
204
+ :host(:hover) button.remove, :host(:focus) button.remove, :host(:focus-visible) button.remove, :host(:focus-within) button.remove, :host(:active) button.remove {
205
+ animation: show 0.4s ease-in-out forwards;
206
+ }
207
+
208
+ @keyframes show {
209
+ 0% {
210
+ transform: scale(0.9);
211
+ opacity: 0;
212
+ }
213
+ 100% {
214
+ transform: scale(1);
215
+ opacity: 1;
216
+ }
217
+ }
218
+ button.avatar,
219
+ img,
220
+ limel-icon {
221
+ border-radius: var(--profile-picture-border-radius, 100vw);
222
+ }
223
+
224
+ limel-icon {
225
+ width: calc(100% - 1rem);
226
+ min-width: 1rem;
227
+ max-width: 4rem;
228
+ color: var(--limel-theme-text-secondary-on-background-color);
229
+ margin: auto;
230
+ }
231
+
232
+ img {
233
+ object-fit: var(--limel-profile-picture-object-fit);
234
+ width: 100%;
235
+ height: 100%;
236
+ }
237
+ :host(.has-image-error) img {
238
+ border: 1px dashed rgb(var(--contrast-600));
239
+ background: url("data:image/svg+xml;charset=utf-8, <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8' style='fill-rule:evenodd;'><path fill='rgba(186,186,192,0.16)' d='M0 0h4v4H0zM4 4h4v4H4z'/></svg>");
240
+ background-size: 0.5rem;
241
+ }
242
+
243
+ limel-spinner {
244
+ position: absolute;
245
+ inset: 0;
246
+ margin: auto;
247
+ }
248
+
249
+ limel-popover {
250
+ position: absolute;
251
+ inset: auto 0 0 auto;
252
+ display: block;
253
+ width: 2.25rem;
254
+ height: 2.25rem;
255
+ }