@limetech/lime-elements 36.3.0-next.32 → 36.3.0-next.34
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/dist/cjs/limel-button-group.cjs.entry.js +1 -1
- package/dist/cjs/limel-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-callout.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +2 -2
- package/dist/cjs/limel-code-editor.cjs.entry.js +1 -1
- package/dist/cjs/limel-color-picker-palette.cjs.entry.js +1 -1
- package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
- package/dist/cjs/limel-dock-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-dock.cjs.entry.js +1 -1
- package/dist/cjs/limel-file.cjs.entry.js +1 -1
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +2 -2
- package/dist/cjs/limel-icon-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-info-tile.cjs.entry.js +1 -1
- package/dist/cjs/limel-input-field.cjs.entry.js +1 -1
- package/dist/cjs/limel-list_2.cjs.entry.js +1 -1
- package/dist/cjs/limel-menu-list.cjs.entry.js +1 -1
- package/dist/cjs/limel-select.cjs.entry.js +1 -1
- package/dist/cjs/limel-shortcut.cjs.entry.js +1 -1
- package/dist/cjs/limel-snackbar.cjs.entry.js +1 -1
- package/dist/cjs/limel-split-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-table.cjs.entry.js +1 -1
- package/dist/cjs/{translations-147450c8.js → translations-f8080c48.js} +1 -1
- package/dist/collection/components/badge/badge.css +8 -0
- package/dist/collection/components/button/button.css +9 -0
- package/dist/collection/components/button-group/button-group.css +9 -0
- package/dist/collection/components/chip-set/chip-set.css +10 -0
- package/dist/collection/components/circular-progress/circular-progress.css +8 -0
- package/dist/collection/components/code-editor/code-editor.css +7 -4
- package/dist/collection/components/collapsible-section/collapsible-section.css +8 -0
- package/dist/collection/components/color-picker/color-picker-palette.css +7 -5
- package/dist/collection/components/color-picker/color-picker.css +7 -5
- package/dist/collection/components/date-picker/flatpickr-adapter/flatpickr-adapter.css +11 -1
- package/dist/collection/components/dock/dock-button/dock-button.css +9 -1
- package/dist/collection/components/dock/dock.css +9 -1
- package/dist/collection/components/form/form.css +6 -4
- package/dist/collection/components/header/header.css +8 -0
- package/dist/collection/components/icon-button/icon-button.css +9 -0
- package/dist/collection/components/info-tile/info-tile.css +7 -5
- package/dist/collection/components/input-field/input-field.css +9 -0
- package/dist/collection/components/list/list.css +15 -4
- package/dist/collection/components/menu-list/menu-list.css +15 -4
- package/dist/collection/components/popover-surface/popover-surface.css +8 -0
- package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +8 -0
- package/dist/collection/components/select/select.css +9 -1
- package/dist/collection/components/shortcut/shortcut.css +7 -5
- package/dist/collection/components/split-button/split-button.css +7 -4
- package/dist/collection/components/table/table.css +33 -0
- package/dist/collection/style/mixins.scss +15 -4
- package/dist/collection/translations/nl.js +1 -1
- package/dist/esm/limel-button-group.entry.js +1 -1
- package/dist/esm/limel-button.entry.js +1 -1
- package/dist/esm/limel-callout.entry.js +1 -1
- package/dist/esm/limel-chip-set.entry.js +2 -2
- package/dist/esm/limel-code-editor.entry.js +1 -1
- package/dist/esm/limel-color-picker-palette.entry.js +1 -1
- package/dist/esm/limel-color-picker.entry.js +1 -1
- package/dist/esm/limel-dock-button.entry.js +1 -1
- package/dist/esm/limel-dock.entry.js +1 -1
- package/dist/esm/limel-file.entry.js +1 -1
- package/dist/esm/limel-flatpickr-adapter.entry.js +2 -2
- package/dist/esm/limel-icon-button.entry.js +1 -1
- package/dist/esm/limel-info-tile.entry.js +1 -1
- package/dist/esm/limel-input-field.entry.js +1 -1
- package/dist/esm/limel-list_2.entry.js +1 -1
- package/dist/esm/limel-menu-list.entry.js +1 -1
- package/dist/esm/limel-select.entry.js +1 -1
- package/dist/esm/limel-shortcut.entry.js +1 -1
- package/dist/esm/limel-snackbar.entry.js +1 -1
- package/dist/esm/limel-split-button.entry.js +1 -1
- package/dist/esm/limel-table.entry.js +1 -1
- package/dist/esm/{translations-ff64ea17.js → translations-f88bb584.js} +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-4620a38e.entry.js → p-039c10df.entry.js} +1 -1
- package/dist/lime-elements/{p-934456bc.entry.js → p-123f5fbb.entry.js} +1 -1
- package/dist/lime-elements/{p-45f85437.entry.js → p-1ab38214.entry.js} +2 -2
- package/dist/lime-elements/{p-93ad8b90.entry.js → p-25013385.entry.js} +1 -1
- package/dist/lime-elements/{p-878b61cd.entry.js → p-2c7b0e49.entry.js} +1 -1
- package/dist/lime-elements/{p-c6c0d63c.entry.js → p-2f9918a3.entry.js} +1 -1
- package/dist/lime-elements/{p-3a7b55ce.entry.js → p-46a76d55.entry.js} +1 -1
- package/dist/lime-elements/{p-cb5c87f2.entry.js → p-4eeabc1f.entry.js} +1 -1
- package/dist/lime-elements/{p-c822e8e5.entry.js → p-4fcd3337.entry.js} +1 -1
- package/dist/lime-elements/{p-071e8438.entry.js → p-73613abb.entry.js} +1 -1
- package/dist/lime-elements/{p-6784c5c3.entry.js → p-7d7d19de.entry.js} +1 -1
- package/dist/lime-elements/{p-cfbbc1ac.entry.js → p-896e35b4.entry.js} +2 -2
- package/dist/lime-elements/{p-34c12f6d.entry.js → p-9336fd7f.entry.js} +1 -1
- package/dist/lime-elements/{p-48640fbf.entry.js → p-a88f2922.entry.js} +1 -1
- package/dist/lime-elements/{p-974852f7.js → p-b59e4287.js} +1 -1
- package/dist/lime-elements/{p-405207fa.entry.js → p-b80de0ea.entry.js} +1 -1
- package/dist/lime-elements/{p-98caf010.entry.js → p-d87e2f26.entry.js} +1 -1
- package/dist/lime-elements/{p-b6e9fd9f.entry.js → p-db350146.entry.js} +1 -1
- package/dist/lime-elements/p-eda87f8c.entry.js +1 -0
- package/dist/lime-elements/{p-0bf916a0.entry.js → p-edbd8d62.entry.js} +1 -1
- package/dist/lime-elements/{p-f7875f4a.entry.js → p-f90c8fb2.entry.js} +1 -1
- package/dist/lime-elements/{p-5409b92f.entry.js → p-f979c0f2.entry.js} +1 -1
- package/dist/lime-elements/style/mixins.scss +15 -4
- package/dist/scss/mixins.scss +186 -0
- package/dist/types/translations/nl.d.ts +1 -1
- package/package.json +2 -2
- package/dist/lime-elements/p-ebbca880.entry.js +0 -1
|
@@ -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
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@limetech/lime-elements",
|
|
3
|
-
"version": "36.3.0-next.
|
|
3
|
+
"version": "36.3.0-next.34",
|
|
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.
|
|
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
|
-
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}
|