@limetech/lime-elements 36.3.0-next.31 → 36.3.0-next.33

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 (126) hide show
  1. package/dist/cjs/lime-elements.cjs.js +1 -1
  2. package/dist/cjs/limel-button-group.cjs.entry.js +1 -1
  3. package/dist/cjs/limel-button.cjs.entry.js +1 -1
  4. package/dist/cjs/limel-callout.cjs.entry.js +46 -0
  5. package/dist/cjs/limel-chip-set.cjs.entry.js +2 -2
  6. package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
  7. package/dist/cjs/limel-color-picker-palette.cjs.entry.js +1 -1
  8. package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
  9. package/dist/cjs/limel-dock-button.cjs.entry.js +1 -1
  10. package/dist/cjs/limel-dock.cjs.entry.js +1 -1
  11. package/dist/cjs/limel-file.cjs.entry.js +1 -1
  12. package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +2 -2
  13. package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
  14. package/dist/cjs/limel-info-tile.cjs.entry.js +1 -1
  15. package/dist/cjs/limel-input-field.cjs.entry.js +1 -1
  16. package/dist/cjs/limel-list_2.cjs.entry.js +1 -1
  17. package/dist/cjs/limel-menu-list.cjs.entry.js +1 -1
  18. package/dist/cjs/limel-select.cjs.entry.js +1 -1
  19. package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
  20. package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
  21. package/dist/cjs/limel-split-button.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-ca7279bc.js → translations-147450c8.js} +30 -0
  25. package/dist/collection/collection-manifest.json +1 -0
  26. package/dist/collection/components/badge/badge.css +8 -0
  27. package/dist/collection/components/button/button.css +9 -0
  28. package/dist/collection/components/button-group/button-group.css +9 -0
  29. package/dist/collection/components/callout/callout.css +57 -0
  30. package/dist/collection/components/callout/callout.helpers.js +21 -0
  31. package/dist/collection/components/callout/callout.js +98 -0
  32. package/dist/collection/components/callout/callout.types.js +1 -0
  33. package/dist/collection/components/chip-set/chip-set.css +10 -0
  34. package/dist/collection/components/circular-progress/circular-progress.css +8 -0
  35. package/dist/collection/components/code-editor/code-editor.css +7 -4
  36. package/dist/collection/components/collapsible-section/collapsible-section.css +8 -0
  37. package/dist/collection/components/color-picker/color-picker-palette.css +7 -5
  38. package/dist/collection/components/color-picker/color-picker.css +7 -5
  39. package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +11 -1
  40. package/dist/collection/components/dock/dock-button/dock-button.css +9 -1
  41. package/dist/collection/components/dock/dock.css +9 -1
  42. package/dist/collection/components/form/form.css +6 -4
  43. package/dist/collection/components/header/header.css +8 -0
  44. package/dist/collection/components/icon-button/icon-button.css +9 -0
  45. package/dist/collection/components/info-tile/info-tile.css +7 -5
  46. package/dist/collection/components/input-field/input-field.css +9 -0
  47. package/dist/collection/components/list/list.css +15 -4
  48. package/dist/collection/components/menu-list/menu-list.css +15 -4
  49. package/dist/collection/components/popover-surface/popover-surface.css +8 -0
  50. package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +8 -0
  51. package/dist/collection/components/select/select.css +9 -1
  52. package/dist/collection/components/shortcut/shortcut.css +7 -5
  53. package/dist/collection/components/split-button/split-button.css +7 -4
  54. package/dist/collection/components/table/table.css +33 -0
  55. package/dist/collection/icons/idea.svg +593 -0
  56. package/dist/collection/icons/info.svg +593 -0
  57. package/dist/collection/style/mixins.scss +15 -4
  58. package/dist/collection/translations/da.js +5 -0
  59. package/dist/collection/translations/en.js +5 -0
  60. package/dist/collection/translations/fi.js +5 -0
  61. package/dist/collection/translations/nl.js +5 -0
  62. package/dist/collection/translations/no.js +5 -0
  63. package/dist/collection/translations/sv.js +5 -0
  64. package/dist/esm/lime-elements.js +1 -1
  65. package/dist/esm/limel-button-group.entry.js +1 -1
  66. package/dist/esm/limel-button.entry.js +1 -1
  67. package/dist/esm/limel-callout.entry.js +42 -0
  68. package/dist/esm/limel-chip-set.entry.js +2 -2
  69. package/dist/esm/limel-code-editor.entry.js +1 -1
  70. package/dist/esm/limel-color-picker-palette.entry.js +1 -1
  71. package/dist/esm/limel-color-picker.entry.js +1 -1
  72. package/dist/esm/limel-dock-button.entry.js +1 -1
  73. package/dist/esm/limel-dock.entry.js +1 -1
  74. package/dist/esm/limel-file.entry.js +1 -1
  75. package/dist/esm/limel-flatpickr-adapter.entry.js +2 -2
  76. package/dist/esm/limel-icon-button.entry.js +1 -1
  77. package/dist/esm/limel-info-tile.entry.js +1 -1
  78. package/dist/esm/limel-input-field.entry.js +1 -1
  79. package/dist/esm/limel-list_2.entry.js +1 -1
  80. package/dist/esm/limel-menu-list.entry.js +1 -1
  81. package/dist/esm/limel-select.entry.js +1 -1
  82. package/dist/esm/limel-shortcut.entry.js +1 -1
  83. package/dist/esm/limel-snackbar.entry.js +1 -1
  84. package/dist/esm/limel-split-button.entry.js +1 -1
  85. package/dist/esm/limel-table.entry.js +1 -1
  86. package/dist/esm/loader.js +1 -1
  87. package/dist/esm/{translations-0d0ee941.js → translations-ff64ea17.js} +30 -0
  88. package/dist/lime-elements/lime-elements.esm.js +1 -1
  89. package/dist/lime-elements/{p-4620a38e.entry.js → p-039c10df.entry.js} +1 -1
  90. package/dist/lime-elements/{p-2c9843fe.entry.js → p-0eb6860b.entry.js} +2 -2
  91. package/dist/lime-elements/{p-934456bc.entry.js → p-123f5fbb.entry.js} +1 -1
  92. package/dist/lime-elements/{p-93ad8b90.entry.js → p-25013385.entry.js} +1 -1
  93. package/dist/lime-elements/{p-878b61cd.entry.js → p-2c7b0e49.entry.js} +1 -1
  94. package/dist/lime-elements/{p-c6c0d63c.entry.js → p-2f9918a3.entry.js} +1 -1
  95. package/dist/lime-elements/{p-3a7b55ce.entry.js → p-46a76d55.entry.js} +1 -1
  96. package/dist/lime-elements/{p-d3222d6c.entry.js → p-48640fbf.entry.js} +1 -1
  97. package/dist/lime-elements/{p-c822e8e5.entry.js → p-4fcd3337.entry.js} +1 -1
  98. package/dist/lime-elements/{p-071e8438.entry.js → p-73613abb.entry.js} +1 -1
  99. package/dist/lime-elements/{p-6784c5c3.entry.js → p-7d7d19de.entry.js} +1 -1
  100. package/dist/lime-elements/{p-34c12f6d.entry.js → p-9336fd7f.entry.js} +1 -1
  101. package/dist/lime-elements/p-974852f7.js +1 -0
  102. package/dist/lime-elements/{p-88e60f06.entry.js → p-ae84cb16.entry.js} +2 -2
  103. package/dist/lime-elements/p-b6e9fd9f.entry.js +1 -0
  104. package/dist/lime-elements/{p-405207fa.entry.js → p-b80de0ea.entry.js} +1 -1
  105. package/dist/lime-elements/{p-d1187867.entry.js → p-cb5c87f2.entry.js} +1 -1
  106. package/dist/lime-elements/{p-98caf010.entry.js → p-d87e2f26.entry.js} +1 -1
  107. package/dist/lime-elements/p-eda87f8c.entry.js +1 -0
  108. package/dist/lime-elements/{p-0bf916a0.entry.js → p-edbd8d62.entry.js} +1 -1
  109. package/dist/lime-elements/{p-f7875f4a.entry.js → p-f90c8fb2.entry.js} +1 -1
  110. package/dist/lime-elements/{p-5409b92f.entry.js → p-f979c0f2.entry.js} +1 -1
  111. package/dist/lime-elements/style/mixins.scss +15 -4
  112. package/dist/scss/mixins.scss +186 -0
  113. package/dist/types/components/callout/callout.d.ts +37 -0
  114. package/dist/types/components/callout/callout.helpers.d.ts +2 -0
  115. package/dist/types/components/callout/callout.types.d.ts +10 -0
  116. package/dist/types/components.d.ts +30 -0
  117. package/dist/types/interface.d.ts +1 -0
  118. package/dist/types/translations/da.d.ts +5 -0
  119. package/dist/types/translations/en.d.ts +5 -0
  120. package/dist/types/translations/fi.d.ts +5 -0
  121. package/dist/types/translations/nl.d.ts +5 -0
  122. package/dist/types/translations/no.d.ts +5 -0
  123. package/dist/types/translations/sv.d.ts +5 -0
  124. package/package.json +2 -2
  125. package/dist/lime-elements/p-246862ec.js +0 -1
  126. package/dist/lime-elements/p-ebbca880.entry.js +0 -1
@@ -1,4 +1,11 @@
1
- @use './functions';
1
+ /**
2
+ * Note! This file is exported to `dist/scss/` in the published
3
+ * node module, for consumer projects to import.
4
+ * That means this file cannot import from any file that isn't
5
+ * also exported, keeping the same relative path.
6
+ *
7
+ * Or, just don't import anything, that works too.
8
+ */
2
9
 
3
10
  @mixin visualize-keyboard-focus {
4
11
  &:focus {
@@ -52,6 +59,7 @@
52
59
  transition: color 0.2s ease, background-color 0.2s ease,
53
60
  box-shadow 0.2s ease, transform 0.1s ease-out;
54
61
 
62
+ cursor: pointer;
55
63
  color: $color;
56
64
  background-color: $background-color;
57
65
  box-shadow: var(--button-shadow-normal);
@@ -79,6 +87,7 @@
79
87
  transition: color 0.2s ease, background-color 0.2s ease,
80
88
  box-shadow 0.2s ease, transform 0.1s ease-out;
81
89
 
90
+ cursor: pointer;
82
91
  color: $color;
83
92
  background-color: $background-color;
84
93
  box-shadow: var(--button-shadow-normal);
@@ -105,6 +114,7 @@
105
114
  transition: color 0.2s ease, background-color 0.2s ease,
106
115
  box-shadow 0.2s ease, transform 0.1s ease-out;
107
116
 
117
+ cursor: pointer;
108
118
  color: $color;
109
119
  background-color: $background-color;
110
120
 
@@ -131,6 +141,7 @@
131
141
  transition: color 0.2s ease, background-color 0.2s ease,
132
142
  box-shadow 0.2s ease, transform 0.1s ease-out;
133
143
 
144
+ cursor: pointer;
134
145
  color: $color;
135
146
  background-color: $background-color;
136
147
 
@@ -156,14 +167,14 @@
156
167
 
157
168
  cursor: pointer;
158
169
 
159
- height: functions.pxToRem(20);
160
- width: functions.pxToRem(20);
170
+ height: 1.25rem;
171
+ width: 1.25rem;
161
172
  border-radius: 50%;
162
173
 
163
174
  background: {
164
175
  repeat: no-repeat;
165
176
  position: center;
166
- size: functions.pxToRem(12);
177
+ size: 0.75rem;
167
178
  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>");
168
179
  }
169
180
  }
@@ -0,0 +1,186 @@
1
+ /**
2
+ * Note! This file is exported to `dist/scss/` in the published
3
+ * node module, for consumer projects to import.
4
+ * That means this file cannot import from any file that isn't
5
+ * also exported, keeping the same relative path.
6
+ *
7
+ * Or, just don't import anything, that works too.
8
+ */
9
+
10
+ @mixin visualize-keyboard-focus {
11
+ &:focus {
12
+ outline: none;
13
+ }
14
+
15
+ &:focus-visible {
16
+ outline: none;
17
+ box-shadow: var(--shadow-depth-8-focused);
18
+ }
19
+ }
20
+
21
+ @mixin in($media) {
22
+ // ⛔️ As long as we don't have a script that generates a
23
+ // `.css` files automatically, we cannot use this mixin.
24
+ // we need to manually write the dark-mode CSS variables
25
+ // inside this file: /style/color-palette-extended.css
26
+ //
27
+ // ⚠️ Also note that this mixin only puts styles
28
+ // on the `:root` which means the `<html` level.
29
+ // Therefore, it cannot be used inside components
30
+ // to generate custom dark-mode styles.
31
+
32
+ @if $media == dark-mode {
33
+ @media (prefers-color-scheme: dark) {
34
+ :root:not([data-theme='force-light']) {
35
+ @content;
36
+ }
37
+ }
38
+ :root[data-theme='force-dark'] {
39
+ @content;
40
+ }
41
+
42
+ // @media (prefers-color-scheme: dark) {
43
+ // :host(:not([data-theme='force-light'])) & {
44
+ // @content;
45
+ // }
46
+ // }
47
+ // :host([data-theme='force-dark']) & {
48
+ // @content;
49
+ // }
50
+ }
51
+ }
52
+
53
+ @mixin is-elevated-clickable(
54
+ $color: var(--mdc-theme-on-surface),
55
+ $color--hovered: var(--mdc-theme-on-surface),
56
+ $background-color: var(--lime-elevated-surface-background-color),
57
+ $background-color--hovered: var(--lime-elevated-surface-background-color)
58
+ ) {
59
+ transition: color 0.2s ease, background-color 0.2s ease,
60
+ box-shadow 0.2s ease, transform 0.1s ease-out;
61
+
62
+ cursor: pointer;
63
+ color: $color;
64
+ background-color: $background-color;
65
+ box-shadow: var(--button-shadow-normal);
66
+
67
+ &:hover {
68
+ color: $color--hovered;
69
+ background-color: $background-color--hovered;
70
+ box-shadow: var(--button-shadow-hovered);
71
+ }
72
+
73
+ &:active {
74
+ box-shadow: var(--button-shadow-pressed);
75
+
76
+ transform: translate3d(0, 0.08rem, 0);
77
+ }
78
+ }
79
+
80
+ @mixin is-elevated-inset-clickable(
81
+ $color: var(--mdc-theme-on-surface),
82
+ $color--hovered: var(--mdc-theme-on-surface),
83
+ $background-color: var(--lime-elevated-surface-background-color),
84
+ $background-color--hovered: var(--lime-elevated-surface-background-color),
85
+ $background-color--inset: var(--mdc-theme-surface)
86
+ ) {
87
+ transition: color 0.2s ease, background-color 0.2s ease,
88
+ box-shadow 0.2s ease, transform 0.1s ease-out;
89
+
90
+ cursor: pointer;
91
+ color: $color;
92
+ background-color: $background-color;
93
+ box-shadow: var(--button-shadow-normal);
94
+
95
+ &:hover {
96
+ color: $color--hovered;
97
+ background-color: $background-color--hovered;
98
+ box-shadow: var(--button-shadow-hovered);
99
+ }
100
+
101
+ &:active {
102
+ background-color: $background-color--inset;
103
+ box-shadow: var(--button-shadow-inset-pressed);
104
+ transform: translate3d(0, 0.05rem, 0);
105
+ }
106
+ }
107
+
108
+ @mixin is-flat-clickable(
109
+ $color: var(--mdc-theme-on-surface),
110
+ $background-color: transparent,
111
+ $color--hovered: var(--mdc-theme-on-surface),
112
+ $background-color--hovered: var(--lime-elevated-surface-background-color)
113
+ ) {
114
+ transition: color 0.2s ease, background-color 0.2s ease,
115
+ box-shadow 0.2s ease, transform 0.1s ease-out;
116
+
117
+ cursor: pointer;
118
+ color: $color;
119
+ background-color: $background-color;
120
+
121
+ &:hover {
122
+ color: $color--hovered;
123
+ background-color: $background-color--hovered;
124
+ box-shadow: var(--button-shadow-hovered);
125
+ }
126
+
127
+ &:active {
128
+ box-shadow: var(--button-shadow-pressed);
129
+
130
+ transform: translate3d(0, 0.08rem, 0);
131
+ }
132
+ }
133
+
134
+ @mixin is-flat-inset-clickable(
135
+ $color: var(--mdc-theme-on-surface),
136
+ $background-color: transparent,
137
+ $color--hovered: var(--mdc-theme-on-surface),
138
+ $background-color--hovered: var(--lime-elevated-surface-background-color),
139
+ $background-color--inset: var(--mdc-theme-surface)
140
+ ) {
141
+ transition: color 0.2s ease, background-color 0.2s ease,
142
+ box-shadow 0.2s ease, transform 0.1s ease-out;
143
+
144
+ cursor: pointer;
145
+ color: $color;
146
+ background-color: $background-color;
147
+
148
+ &:hover {
149
+ color: $color--hovered;
150
+ background-color: $background-color--hovered;
151
+ box-shadow: var(--button-shadow-hovered);
152
+ }
153
+
154
+ &:active {
155
+ background-color: $background-color--inset;
156
+ box-shadow: var(--button-shadow-inset-pressed);
157
+ transform: translate3d(0, 0.05rem, 0);
158
+ }
159
+ }
160
+
161
+ @mixin clear-all-button() {
162
+ // NOTE: you may need to specify "position: absolute" and align the position where you use this mixin
163
+ @include is-flat-clickable(
164
+ $background-color: rgb(var(--contrast-900)),
165
+ $background-color--hovered: rgb(var(--contrast-1100))
166
+ );
167
+
168
+ cursor: pointer;
169
+
170
+ height: 1.25rem;
171
+ width: 1.25rem;
172
+ border-radius: 50%;
173
+
174
+ background: {
175
+ repeat: no-repeat;
176
+ position: center;
177
+ size: 0.75rem;
178
+ 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>");
179
+ }
180
+ }
181
+
182
+ @mixin truncate-text() {
183
+ overflow: hidden;
184
+ white-space: nowrap;
185
+ text-overflow: ellipsis;
186
+ }
@@ -0,0 +1,37 @@
1
+ import { CalloutType } from './callout.types';
2
+ import { Languages } from '@limetech/lime-elements';
3
+ /**
4
+ * Callouts—also known as Admonitions—are useful for including supportive or
5
+ * special content within a large piece of text, or even inside a user
6
+ * interface.
7
+ *
8
+ * When used in a document or text based user interface, the callout attracts
9
+ * the reader's attention to a particular piece of information, without
10
+ * significantly interrupting their flow of reading the document.
11
+ *
12
+ * In a user interface, a callout is more intrusive to the end-user. Still, it
13
+ * could be a good choice when you intend to slightly disturb the user's
14
+ * attention, and challenge them to pay extra attention to the information
15
+ * presented. In such cases, a callout should not be used as a static and
16
+ * constantly present element of the UI. Rather, it should be displayed when
17
+ * something unusual or remarkable demands the user's attention.
18
+ *
19
+ * @exampleComponent limel-example-callout-note
20
+ * @exampleComponent limel-example-callout-important
21
+ * @exampleComponent limel-example-callout-tip
22
+ * @exampleComponent limel-example-callout-caution
23
+ * @exampleComponent limel-example-callout-warning
24
+ */
25
+ export declare class Callout {
26
+ /**
27
+ * Defines how the component is visualized, for example
28
+ * which heading, color or icon is used in its user interface.
29
+ */
30
+ type?: CalloutType;
31
+ /**
32
+ * Defines the language for translations.
33
+ * Will translate the headings for supported languages.
34
+ */
35
+ language: Languages;
36
+ render(): any[];
37
+ }
@@ -0,0 +1,2 @@
1
+ export declare function getIcon(type?: string): string;
2
+ export declare function getHeading(type?: string, language?: string): string;
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Each of the supported callout types has a distinct color and icon.
3
+ *
4
+ * - `note`: You might read this, you might not.
5
+ * - `important`: You should read this.
6
+ * - `tip`: You want to read this.
7
+ * - `caution`: I hope you read this.
8
+ * - `warning`: You need to read this.
9
+ */
10
+ export declare type CalloutType = 'note' | 'important' | 'tip' | 'caution' | 'warning';
@@ -6,6 +6,7 @@
6
6
  */
7
7
  import { HTMLStencilElement, JSXBase } from "./stencil-public-runtime";
8
8
  import { Button } from "./components/button/button.types";
9
+ import { CalloutType } from "./components/callout/callout.types";
9
10
  import { Action as Action1, Chip, ClosingActions, DateType, DialogHeading, FileInfo, FlexContainerAlign, FlexContainerDirection, FlexContainerJustify, IconSize as IconSize1, Languages, Link, ListItem, ListSeparator, ListType, MenuItem, MenuListType, OpenDirection, Option, Searcher, SpinnerSize } from "@limetech/lime-elements";
10
11
  import { CircularProgressSize } from "./components/circular-progress/circular-progress.types";
11
12
  import { ColorScheme, Language } from "./components/code-editor/code-editor.types";
@@ -86,6 +87,16 @@ export namespace Components {
86
87
  */
87
88
  "value": Button[];
88
89
  }
90
+ interface LimelCallout {
91
+ /**
92
+ * Defines the language for translations. Will translate the headings for supported languages.
93
+ */
94
+ "language": Languages;
95
+ /**
96
+ * Defines how the component is visualized, for example which heading, color or icon is used in its user interface.
97
+ */
98
+ "type"?: CalloutType;
99
+ }
89
100
  interface LimelCheckbox {
90
101
  /**
91
102
  * The value of the checkbox. Set to `true` to make the checkbox checked.
@@ -1378,6 +1389,12 @@ declare global {
1378
1389
  prototype: HTMLLimelButtonGroupElement;
1379
1390
  new (): HTMLLimelButtonGroupElement;
1380
1391
  };
1392
+ interface HTMLLimelCalloutElement extends Components.LimelCallout, HTMLStencilElement {
1393
+ }
1394
+ var HTMLLimelCalloutElement: {
1395
+ prototype: HTMLLimelCalloutElement;
1396
+ new (): HTMLLimelCalloutElement;
1397
+ };
1381
1398
  interface HTMLLimelCheckboxElement extends Components.LimelCheckbox, HTMLStencilElement {
1382
1399
  }
1383
1400
  var HTMLLimelCheckboxElement: {
@@ -1653,6 +1670,7 @@ declare global {
1653
1670
  "limel-banner": HTMLLimelBannerElement;
1654
1671
  "limel-button": HTMLLimelButtonElement;
1655
1672
  "limel-button-group": HTMLLimelButtonGroupElement;
1673
+ "limel-callout": HTMLLimelCalloutElement;
1656
1674
  "limel-checkbox": HTMLLimelCheckboxElement;
1657
1675
  "limel-chip-set": HTMLLimelChipSetElement;
1658
1676
  "limel-circular-progress": HTMLLimelCircularProgressElement;
@@ -1761,6 +1779,16 @@ declare namespace LocalJSX {
1761
1779
  */
1762
1780
  "value"?: Button[];
1763
1781
  }
1782
+ interface LimelCallout {
1783
+ /**
1784
+ * Defines the language for translations. Will translate the headings for supported languages.
1785
+ */
1786
+ "language"?: Languages;
1787
+ /**
1788
+ * Defines how the component is visualized, for example which heading, color or icon is used in its user interface.
1789
+ */
1790
+ "type"?: CalloutType;
1791
+ }
1764
1792
  interface LimelCheckbox {
1765
1793
  /**
1766
1794
  * The value of the checkbox. Set to `true` to make the checkbox checked.
@@ -3112,6 +3140,7 @@ declare namespace LocalJSX {
3112
3140
  "limel-banner": LimelBanner;
3113
3141
  "limel-button": LimelButton;
3114
3142
  "limel-button-group": LimelButtonGroup;
3143
+ "limel-callout": LimelCallout;
3115
3144
  "limel-checkbox": LimelCheckbox;
3116
3145
  "limel-chip-set": LimelChipSet;
3117
3146
  "limel-circular-progress": LimelCircularProgress;
@@ -3167,6 +3196,7 @@ declare module "@stencil/core" {
3167
3196
  "limel-banner": LocalJSX.LimelBanner & JSXBase.HTMLAttributes<HTMLLimelBannerElement>;
3168
3197
  "limel-button": LocalJSX.LimelButton & JSXBase.HTMLAttributes<HTMLLimelButtonElement>;
3169
3198
  "limel-button-group": LocalJSX.LimelButtonGroup & JSXBase.HTMLAttributes<HTMLLimelButtonGroupElement>;
3199
+ "limel-callout": LocalJSX.LimelCallout & JSXBase.HTMLAttributes<HTMLLimelCalloutElement>;
3170
3200
  "limel-checkbox": LocalJSX.LimelCheckbox & JSXBase.HTMLAttributes<HTMLLimelCheckboxElement>;
3171
3201
  "limel-chip-set": LocalJSX.LimelChipSet & JSXBase.HTMLAttributes<HTMLLimelChipSetElement>;
3172
3202
  "limel-circular-progress": LocalJSX.LimelCircularProgress & JSXBase.HTMLAttributes<HTMLLimelCircularProgressElement>;
@@ -23,3 +23,4 @@ export * from './components/tab-panel/tab-panel.types';
23
23
  export * from './components/table/table.types';
24
24
  export * from './components/dock/dock.types';
25
25
  export * from './components/info-tile/info-tile.types';
26
+ export * from './components/callout/callout.types';
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ 'callout.note': string;
3
+ 'callout.important': string;
4
+ 'callout.tip': string;
5
+ 'callout.caution': string;
6
+ 'callout.warning': string;
2
7
  'date-picker.today': string;
3
8
  'date-picker.month.heading': string;
4
9
  'date-picker.quarter.heading': string;
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ 'callout.note': string;
3
+ 'callout.important': string;
4
+ 'callout.tip': string;
5
+ 'callout.caution': string;
6
+ 'callout.warning': string;
2
7
  'date-picker.today': string;
3
8
  'date-picker.month.heading': string;
4
9
  'date-picker.quarter.heading': string;
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ 'callout.note': string;
3
+ 'callout.important': string;
4
+ 'callout.tip': string;
5
+ 'callout.caution': string;
6
+ 'callout.warning': string;
2
7
  'date-picker.today': string;
3
8
  'date-picker.month.heading': string;
4
9
  'date-picker.quarter.heading': string;
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ 'callout.note': string;
3
+ 'callout.important': string;
4
+ 'callout.tip': string;
5
+ 'callout.example': string;
6
+ 'callout.warning': string;
2
7
  'date-picker.today': string;
3
8
  'date-picker.month.heading': string;
4
9
  'date-picker.quarter.heading': string;
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ 'callout.note': string;
3
+ 'callout.important': string;
4
+ 'callout.tip': string;
5
+ 'callout.caution': string;
6
+ 'callout.warning': string;
2
7
  'date-picker.today': string;
3
8
  'date-picker.month.heading': string;
4
9
  'date-picker.quarter.heading': string;
@@ -1,4 +1,9 @@
1
1
  declare const _default: {
2
+ 'callout.note': string;
3
+ 'callout.important': string;
4
+ 'callout.tip': string;
5
+ 'callout.caution': string;
6
+ 'callout.warning': string;
2
7
  'date-picker.today': string;
3
8
  'date-picker.month.heading': string;
4
9
  'date-picker.quarter.heading': string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@limetech/lime-elements",
3
- "version": "36.3.0-next.31",
3
+ "version": "36.3.0-next.33",
4
4
  "description": "Lime Elements",
5
5
  "author": "Lime Technologies",
6
6
  "license": "Apache-2.0",
@@ -62,7 +62,7 @@
62
62
  "eslint": "^8.37.0",
63
63
  "eslint-config-prettier": "^8.8.0",
64
64
  "eslint-plugin-ban": "^1.6.0",
65
- "eslint-plugin-jsdoc": "^40.1.0",
65
+ "eslint-plugin-jsdoc": "^40.1.1",
66
66
  "eslint-plugin-prefer-arrow": "^1.2.3",
67
67
  "eslint-plugin-prettier": "^4.2.1",
68
68
  "eslint-plugin-react": "^7.32.2",
@@ -1 +0,0 @@
1
- const e={da:{"date-picker.today":"Idag","date-picker.month.heading":"Måned","date-picker.quarter.heading":"Kvartal","date-picker.year.heading":"År","chip-set.clear-all":"Ryd alle","file.drag-and-drop-tips":"Træk og slip filen her, eller klik for at gennemse."},en:{"date-picker.today":"Today","date-picker.month.heading":"Month","date-picker.quarter.heading":"Quarter","date-picker.year.heading":"Year","chip-set.clear-all":"Clear all","chip-set.remove-chip":"Remove chip","snackbar.dismiss":"Dismiss","file.drag-and-drop-tips":"Drag and drop your file here, or click to browse."},fi:{"date-picker.today":"Tänään","date-picker.month.heading":"Kuukausi","date-picker.quarter.heading":"Vuosineljännes","date-picker.year.heading":"Vuosi","chip-set.clear-all":"Tyhjennä kaikki","file.drag-and-drop-tips":"Vedä ja pudota tiedostosi tähän, tai napsauta selataksesi."},no:{"date-picker.today":"I dag","date-picker.month.heading":"Måned","date-picker.quarter.heading":"Kvartal","date-picker.year.heading":"År","chip-set.clear-all":"Fjern alle","file.drag-and-drop-tips":"Dra og slipp filen her, eller klikk for å bla gjennom."},nl:{"date-picker.today":"Vandaag","date-picker.month.heading":"Maand","date-picker.quarter.heading":"Kwartaal","date-picker.year.heading":"Jaar","chip-set.clear-all":"Alles wissen","file.drag-and-drop-tips":"Sleep uw bestand en zet het hier neer of klik om te bladeren."},sv:{"date-picker.today":"Idag","date-picker.month.heading":"Månad","date-picker.quarter.heading":"Kvartal","date-picker.year.heading":"År","chip-set.clear-all":"Rensa alla","chip-set.remove-chip":"Ta bort chip","snackbar.dismiss":"Stäng","file.drag-and-drop-tips":"Dra och släpp filen här eller klicka om du vill bläddra."}},a=new class{get(a,r="en"){return e[r][a]}};export{a as t}
@@ -1 +0,0 @@
1
- import{r as n,h as e}from"./p-d4e788e1.js";const r=class{constructor(r){n(this,r),this.renderPrefix=()=>{if(this.prefix)return e("span",{class:"prefix"},this.prefix)},this.renderValue=()=>{var n;const r=(null!==(n=this.value)&&void 0!==n?n:"").toString().length;return!this.value&&this.loading?e("span",{class:"value"},"···"):this.value?e("span",{class:{value:!0,[`ch-${r}`]:!0}},this.value):void 0},this.renderSuffix=()=>{if(this.suffix)return e("span",{class:"suffix"},this.suffix)},this.renderIcon=()=>{if(this.icon)return e("limel-icon",{class:"icon",name:this.icon})},this.renderProgress=()=>{var n,r;if((null===(n=this.progress)||void 0===n?void 0:n.value)||0===(null===(r=this.progress)||void 0===r?void 0:r.value))return e("limel-circular-progress",{class:"progress",prefix:this.progress.prefix,value:this.progress.value,suffix:this.progress.suffix,maxValue:this.progress.maxValue,displayPercentageColors:this.progress.displayPercentageColors})},this.renderLabel=()=>{if(this.label)return e("span",{class:"label"},this.label)},this.renderNotification=()=>{if(this.badge)return e("limel-badge",{label:this.badge})},this.renderSpinner=()=>{if(this.loading)return e("limel-linear-progress",{indeterminate:!0})},this.value=void 0,this.icon=void 0,this.label=null,this.prefix=void 0,this.suffix=void 0,this.disabled=!1,this.badge=void 0,this.loading=!1,this.link=void 0,this.progress=void 0}render(){var n,r,i,o,t,s,l,a,c,f;const d=this.checkProps(null==this?void 0:this.prefix)+this.value+" "+this.checkProps(null==this?void 0:this.suffix)+this.checkProps(null==this?void 0:this.label)+". "+this.checkProps(null===(n=null==this?void 0:this.progress)||void 0===n?void 0:n.prefix)+this.checkProps(null===(r=null==this?void 0:this.progress)||void 0===r?void 0:r.value)+this.checkProps(null===(i=null==this?void 0:this.progress)||void 0===i?void 0:i.suffix)+this.checkProps(null===(o=null==this?void 0:this.link)||void 0===o?void 0:o.title),u=this.disabled?"#":null===(t=this.link)||void 0===t?void 0:t.href;return[e("a",{title:null===(s=this.link)||void 0===s?void 0:s.title,href:u,target:null===(l=this.link)||void 0===l?void 0:l.target,tabindex:"0","aria-label":d,"aria-disabled":this.disabled,class:{"is-clickable":!!(null===(a=this.link)||void 0===a?void 0:a.href)&&!this.disabled,"has-circular-progress":!!(null===(c=this.progress)||void 0===c?void 0:c.value)||0===(null===(f=this.progress)||void 0===f?void 0:f.value)}},this.renderIcon(),this.renderProgress(),e("div",{class:"value-group"},this.renderPrefix(),e("div",{class:"value-and-suffix"},this.renderValue(),this.renderSuffix()),this.renderSpinner()),this.renderLabel()),this.renderNotification()]}checkProps(n){return n?n+" ":""}};r.style="/*\n * This file is imported into every component!\n *\n * Nothing in this file may output any CSS\n * without being explicitly called by outside code.\n */\n/**\n* @prop --info-tile-border-radius: defines the radius of corners of the info-tile. Defaults to `1rem`\n* @prop --info-tile-icon-color: defines the fill color of the info-tile icon. Defaults to `--contrast-1000`\n* @prop --info-tile-text-color: defines the color of the info-tile label. Defaults to `--contrast-1100`\n* @prop --info-tile-background-color: defines the backgrounds color of the info-tile icon. Defaults to `--contrast-100`\n* @prop --info-tile-badge-text-color: Text color of the notification badge. Defaults to `--color-white`\n* @prop --info-tile-badge-background-color: Background color of the notification badge. Defaults to `--color-red-default`\n* @prop --info-tile-progress-fill-color: Determines the color of the progressed section. Defaults to `--lime-primary-color`.\n* @prop --info-tile-progress-background-color: Determines the background color of the central section of the progress bar. Defaults to `--info-tile-background-color`.\n* @prop --info-tile-progress-suffix-color: Determines the color of the progress prefix. Defaults to `--contrast-1000`.\n * @prop --info-tile-progress-text-color: Determines the color of the progress value. Defaults to `--info-tile-text-color`.\n * @prop --info-tile-progress-prefix-color: Determines the color of the progress suffix. Defaults to `--contrast-1000`.\n*/\n:host(limel-info-tile) {\n --badge-text-color: var(\n --info-tile-badge-text-color,\n rgb(var(--color-white))\n );\n --badge-background-color: var(\n --info-tile-badge-background-color,\n rgb(var(--color-red-default))\n );\n --circular-progress-text-color: var(\n --info-tile-progress-text-color,\n var(--info-tile-text-color)\n );\n --circular-progress-suffix-color: var(--info-tile-progress-suffix-color);\n --circular-progress-prefix-color: var(--info-tile-progress-prefix-color);\n --circular-progress-track-color: rgb(var(--contrast-800), 0.3);\n --circular-progress-fill-color: var(--info-tile-progress-fill-color);\n --circular-progress-background-color: var(\n --info-tile-progress-background-color,\n var(--info-tile-background-color)\n );\n --label-min-size: 0.75rem;\n --label-preferred-size: 6cqw;\n --label-max-size: 1rem;\n --value-min-size: 1rem;\n --value-preferred-size: 20cqw;\n --value-max-size: 4rem;\n --suffix-prefix-min-size: 0.75rem;\n --suffix-prefix-preferred-size: 8cqw;\n --suffix-prefix-max-size: 1.5rem;\n --icon-min-size: 2rem;\n --icon-preferred-size: 60cqh;\n --icon-max-size: calc(100cqw - 0.5rem);\n isolation: isolate;\n container-type: size;\n position: relative;\n display: flex;\n width: 100%;\n height: 100%;\n}\n:host(limel-info-tile) * {\n box-sizing: border-box;\n}\n\n:host(limel-info-tile[disabled]) a {\n opacity: 0.5;\n cursor: not-allowed;\n}\n\na {\n all: unset;\n overflow: hidden;\n display: flex;\n flex-direction: column;\n justify-content: flex-end;\n align-items: flex-start;\n height: 100%;\n width: 100%;\n flex-grow: 1;\n padding: 0.25rem 1rem 0.5rem 1rem;\n border-radius: var(--info-tile-border-radius, 1rem);\n background-color: var(--info-tile-background-color, var(--lime-elevated-surface-background-color));\n}\na.is-clickable {\n transition: color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;\n color: var(--mdc-theme-on-surface);\n background-color: var(--info-tile-background-color, var(--lime-elevated-surface-background-color));\n box-shadow: var(--button-shadow-normal);\n cursor: pointer;\n}\na.is-clickable:hover {\n color: var(--mdc-theme-on-surface);\n background-color: var(--info-tile-background-color, var(--lime-elevated-surface-background-color));\n box-shadow: var(--button-shadow-hovered);\n}\na.is-clickable:active {\n box-shadow: var(--button-shadow-pressed);\n transform: translate3d(0, 0.08rem, 0);\n}\na.is-clickable:focus {\n outline: none;\n}\na.is-clickable:focus-visible {\n outline: none;\n box-shadow: var(--shadow-depth-8-focused);\n}\n\n.icon {\n z-index: 1;\n position: absolute;\n top: 0.5rem;\n right: 0.75rem;\n padding: 0.25rem;\n aspect-ratio: 1/1;\n color: var(--info-tile-icon-color, rgb(var(--contrast-1000)));\n border-radius: 0;\n height: clamp(var(--icon-min-size), var(--icon-preferred-size), var(--icon-max-size));\n}\n@supports not (container-type: size) {\n .icon {\n width: max(10%, 3rem);\n }\n}\n.has-circular-progress .icon {\n top: unset;\n bottom: 0.5rem;\n --icon-min-size: 1.5rem;\n --icon-preferred-size: 20cqh;\n}\n\n.progress {\n position: absolute;\n top: 0.75rem;\n right: 0.75rem;\n --circular-progress-size: min(\n var(--icon-preferred-size),\n var(--icon-max-size)\n );\n}\n@supports not (container-type: size) {\n .progress {\n --circular-progress-size: initial;\n }\n}\n\n.label {\n z-index: 1;\n color: var(--info-tile-text-color, rgb(var(--contrast-1100)));\n line-height: 1.2;\n font-size: clamp(var(--label-min-size), var(--label-preferred-size), var(--label-max-size));\n}\n@supports not (container-type: size) {\n .label {\n font-size: 0.875rem;\n }\n}\n\nlimel-badge {\n position: absolute;\n top: -0.25rem;\n right: -0.25rem;\n}\n\nlimel-linear-progress {\n --lime-primary-color: var(--info-tile-text-color);\n position: absolute;\n inset: auto 0 0 0;\n border-radius: 1rem;\n overflow: hidden;\n}\n\n.value-group {\n position: relative;\n z-index: 1;\n display: flex;\n flex-direction: column;\n color: var(--info-tile-text-color, rgb(var(--contrast-1100)));\n}\n\n.value-and-suffix,\n.label {\n text-shadow: 0 0 0.5rem var(--info-tile-background-color, rgb(var(--contrast-100))), 0 0 0.25rem var(--info-tile-background-color, rgb(var(--contrast-100)));\n}\n\n.value-and-suffix {\n display: flex;\n}\n\n.prefix,\n.suffix {\n font-size: clamp(var(--suffix-prefix-min-size), var(--suffix-prefix-preferred-size), var(--suffix-prefix-max-size));\n opacity: 0.7;\n}\n@supports not (container-type: size) {\n .prefix,\n .suffix {\n font-size: 0.75rem;\n }\n}\n\n.prefix {\n align-self: flex-start;\n line-height: normal;\n transform: translateY(40%);\n}\n\n.value {\n transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.95);\n transform-origin: left;\n transform: translate3d(0, 0, 0) scale(1);\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n font-weight: bold;\n line-height: normal;\n font-size: clamp(var(--value-min-size), var(--value-preferred-size), var(--value-max-size));\n}\n@supports not (container-type: size) {\n .value {\n font-size: 1.5rem;\n }\n}\n:host(limel-info-tile[loading]) .value {\n opacity: 0.3;\n transform: translate3d(0, 0, 0) scale(0.9);\n}\n\n.suffix {\n transform: translateY(10%);\n}\n\n@container (width < 8rem) {\n .progress {\n top: 0.25rem;\n right: 0.25rem;\n }\n a {\n padding: 0.375rem;\n gap: 0.125rem;\n }\n}\n@container (width < 18.75rem) {\n .progress {\n top: 0.5rem;\n right: 0.5rem;\n }\n .icon {\n top: 0.25rem;\n right: 0.5rem;\n }\n .has-circular-progress .icon {\n right: 0.25rem;\n bottom: 0.25rem;\n }\n}\n@container (width < 40.5rem) {\n .value {\n --value-preferred-size: 13cqw;\n }\n .value.ch-1, .value.ch-2, .value.ch-3, .value.ch-4 {\n --value-preferred-size: 20cqw;\n }\n .value.ch-5 {\n --value-preferred-size: 18cqw;\n }\n .value.ch-6 {\n --value-preferred-size: 17cqw;\n }\n .value.ch-7 {\n --value-preferred-size: 16cqw;\n }\n .value.ch-8 {\n --value-preferred-size: 15cqw;\n }\n .value.ch-9 {\n --value-preferred-size: 14cqw;\n }\n}\n@container (height > 8rem) {\n a {\n padding-top: 0.75rem;\n padding-bottom: 1rem;\n }\n}\n@container (height < 8rem) and (width > 8rem) {\n .value {\n --value-preferred-size: 32cqh !important;\n }\n .suffix,\n .prefix {\n --suffix-prefix-preferred-size: 16cqh !important;\n }\n}\n@container (height > 18.75rem) {\n .progress,\n .icon {\n position: relative;\n top: unset;\n right: unset;\n }\n a {\n align-items: center;\n justify-content: center;\n }\n .label {\n text-align: center;\n }\n .has-circular-progress .icon {\n position: absolute;\n top: 0.5rem;\n right: 0.5rem;\n --icon-max-size: 3rem;\n }\n}";export{r as limel_info_tile}