@limetech/lime-elements 37.1.0-next.62 → 37.1.0-next.64
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-breadcrumbs_3.cjs.entry.js +1 -1
- package/dist/cjs/limel-breadcrumbs_3.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-checkbox.cjs.entry.js +1 -1
- package/dist/cjs/limel-checkbox.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-file-viewer.cjs.entry.js +3 -3
- package/dist/cjs/limel-file-viewer.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-input-field.cjs.entry.js +1 -1
- package/dist/cjs/limel-input-field.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-list.cjs.entry.js +1 -1
- package/dist/cjs/limel-list.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-select.cjs.entry.js +1 -1
- package/dist/cjs/limel-select.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js +1 -1
- package/dist/cjs/limel-slider.cjs.entry.js.map +1 -1
- package/dist/cjs/limel-switch.cjs.entry.js +1 -1
- package/dist/cjs/limel-switch.cjs.entry.js.map +1 -1
- package/dist/collection/components/checkbox/checkbox.css +51 -10
- package/dist/collection/components/chip-set/chip-set.css +50 -8
- package/dist/collection/components/file-viewer/file-viewer.js +3 -3
- package/dist/collection/components/file-viewer/file-viewer.js.map +1 -1
- package/dist/collection/components/input-field/input-field.css +20 -6
- package/dist/collection/components/list/list.css +102 -20
- package/dist/collection/components/menu-list/menu-list.css +102 -20
- package/dist/collection/components/select/select.css +55 -8
- package/dist/collection/components/slider/slider.css +56 -7
- package/dist/collection/components/switch/switch.css +51 -14
- package/dist/collection/style/mixins.scss +30 -0
- package/dist/esm/limel-breadcrumbs_3.entry.js +1 -1
- package/dist/esm/limel-breadcrumbs_3.entry.js.map +1 -1
- package/dist/esm/limel-checkbox.entry.js +1 -1
- package/dist/esm/limel-checkbox.entry.js.map +1 -1
- package/dist/esm/limel-chip-set.entry.js +1 -1
- package/dist/esm/limel-chip-set.entry.js.map +1 -1
- package/dist/esm/limel-file-viewer.entry.js +3 -3
- package/dist/esm/limel-file-viewer.entry.js.map +1 -1
- package/dist/esm/limel-input-field.entry.js +1 -1
- package/dist/esm/limel-input-field.entry.js.map +1 -1
- package/dist/esm/limel-list.entry.js +1 -1
- package/dist/esm/limel-list.entry.js.map +1 -1
- package/dist/esm/limel-select.entry.js +1 -1
- package/dist/esm/limel-select.entry.js.map +1 -1
- package/dist/esm/limel-slider.entry.js +1 -1
- package/dist/esm/limel-slider.entry.js.map +1 -1
- package/dist/esm/limel-switch.entry.js +1 -1
- package/dist/esm/limel-switch.entry.js.map +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-65459443.entry.js → p-06d23be1.entry.js} +8 -8
- package/dist/lime-elements/{p-65459443.entry.js.map → p-06d23be1.entry.js.map} +1 -1
- package/dist/lime-elements/{p-cf736097.entry.js → p-098b044e.entry.js} +2 -2
- package/dist/lime-elements/{p-cf736097.entry.js.map → p-098b044e.entry.js.map} +1 -1
- package/dist/lime-elements/{p-f1b0951f.entry.js → p-0c0974f7.entry.js} +5 -5
- package/dist/lime-elements/{p-f1b0951f.entry.js.map → p-0c0974f7.entry.js.map} +1 -1
- package/dist/lime-elements/{p-5dd76e36.entry.js → p-411542a4.entry.js} +5 -5
- package/dist/lime-elements/{p-5dd76e36.entry.js.map → p-411542a4.entry.js.map} +1 -1
- package/dist/lime-elements/p-9f4438a2.entry.js +2 -0
- package/dist/lime-elements/p-9f4438a2.entry.js.map +1 -0
- package/dist/lime-elements/{p-5bee567b.entry.js → p-bbc48da6.entry.js} +4 -4
- package/dist/lime-elements/{p-5bee567b.entry.js.map → p-bbc48da6.entry.js.map} +1 -1
- package/dist/lime-elements/{p-eb1edb6f.entry.js → p-bbffe078.entry.js} +2 -2
- package/dist/lime-elements/p-bbffe078.entry.js.map +1 -0
- package/dist/lime-elements/p-cd969c37.entry.js +82 -0
- package/dist/lime-elements/{p-9c54dcf6.entry.js.map → p-cd969c37.entry.js.map} +1 -1
- package/dist/lime-elements/p-ee2e27ee.entry.js +2 -0
- package/dist/lime-elements/{p-0191d535.entry.js.map → p-ee2e27ee.entry.js.map} +1 -1
- package/dist/lime-elements/style/mixins.scss +30 -0
- package/dist/scss/mixins.scss +30 -0
- package/package.json +2 -2
- package/dist/lime-elements/p-0191d535.entry.js +0 -2
- package/dist/lime-elements/p-950703a9.entry.js +0 -2
- package/dist/lime-elements/p-950703a9.entry.js.map +0 -1
- package/dist/lime-elements/p-9c54dcf6.entry.js +0 -82
- package/dist/lime-elements/p-eb1edb6f.entry.js.map +0 -1
|
@@ -801,10 +801,6 @@
|
|
|
801
801
|
--mdc-switch-disabled-selected-handle-color: rgb(var(--contrast-1000));
|
|
802
802
|
--mdc-switch-disabled-unselected-handle-color: rgb(var(--contrast-1000));
|
|
803
803
|
}
|
|
804
|
-
:host(limel-switch) limel-helper-line {
|
|
805
|
-
display: flex;
|
|
806
|
-
flex-basis: 100%;
|
|
807
|
-
}
|
|
808
804
|
|
|
809
805
|
.mdc-switch {
|
|
810
806
|
margin-right: 0.5rem;
|
|
@@ -867,17 +863,58 @@ label.disabled {
|
|
|
867
863
|
opacity: 1;
|
|
868
864
|
}
|
|
869
865
|
|
|
870
|
-
|
|
871
|
-
|
|
866
|
+
/**
|
|
867
|
+
* Note! This file is exported to `dist/scss/` in the published
|
|
868
|
+
* node module, for consumer projects to import.
|
|
869
|
+
* That means this file cannot import from any file that isn't
|
|
870
|
+
* also exported, keeping the same relative path.
|
|
871
|
+
*
|
|
872
|
+
* Or, just don't import anything, that works too.
|
|
873
|
+
*/
|
|
874
|
+
/**
|
|
875
|
+
* This mixin will mask out the content that is close to
|
|
876
|
+
* the edges of a scrollable area.
|
|
877
|
+
* - If the scrollable content has `overflow-y`, use `vertically`
|
|
878
|
+
* as an argument for `$direction`.
|
|
879
|
+
- If the scrollable content has `overflow-x`, use `horizontally`
|
|
880
|
+
* as an argument for `$direction`.
|
|
881
|
+
*
|
|
882
|
+
* For the visual effect to work smoothly, we need to make sure that
|
|
883
|
+
* the size of the fade-out edge effect is the same as the
|
|
884
|
+
* internal paddings of the scrollable area. Otherwise, content of a
|
|
885
|
+
* scrollable area that does not have a padding will fade out before
|
|
886
|
+
* any scrolling has been done.
|
|
887
|
+
* This is why this mixin already adds paddings, which automatically
|
|
888
|
+
* default to the size of the fade-out effect.
|
|
889
|
+
* This size defaults to `1rem`, but to override the size use
|
|
890
|
+
* `--limel-top-edge-fade-height` & `--limel-bottom-edge-fade-height`
|
|
891
|
+
* when `vertically` argument is set, and use
|
|
892
|
+
* `--limel-left-edge-fade-width` & `--limel-right-edge-fade-width`
|
|
893
|
+
* when `horizontally` argument is set.
|
|
894
|
+
* Of course you can also programmatically increase and decrease the
|
|
895
|
+
* size of these variables for each edge, based on the amount of
|
|
896
|
+
* scrolling that has been done by the user. In this case, make sure
|
|
897
|
+
* to add a custom padding where the mixin is used, to override
|
|
898
|
+
* the paddings that are automatically added by the mixin in the
|
|
899
|
+
* compiled CSS code.
|
|
900
|
+
*/
|
|
901
|
+
:host(limel-switch:focus),
|
|
902
|
+
:host(limel-switch:focus-visible),
|
|
903
|
+
:host(limel-switch:focus-within),
|
|
904
|
+
:host(limel-switch[invalid]) {
|
|
905
|
+
--limel-h-l-grid-template-rows-transition-speed: 0.46s;
|
|
906
|
+
--limel-h-l-grid-template-rows: 1fr;
|
|
872
907
|
}
|
|
873
908
|
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
909
|
+
:host(limel-switch),
|
|
910
|
+
:host(limel-switch[invalid=false]) {
|
|
911
|
+
--limel-h-l-grid-template-rows-transition-speed: 0.3s;
|
|
912
|
+
--limel-h-l-grid-template-rows: 0fr;
|
|
878
913
|
}
|
|
879
|
-
|
|
880
|
-
:host(:focus
|
|
881
|
-
:host(:focus-
|
|
882
|
-
|
|
914
|
+
|
|
915
|
+
:host(limel-switch:focus) limel-helper-line,
|
|
916
|
+
:host(limel-switch:focus-visible) limel-helper-line,
|
|
917
|
+
:host(limel-switch:focus-within) limel-helper-line,
|
|
918
|
+
:host(limel-switch:hover) limel-helper-line {
|
|
919
|
+
will-change: grid-template-rows;
|
|
883
920
|
}
|
|
@@ -245,3 +245,33 @@
|
|
|
245
245
|
@error "Please specify the direction #{$direction}!";
|
|
246
246
|
}
|
|
247
247
|
}
|
|
248
|
+
|
|
249
|
+
@mixin hide-helper-line-when-not-needed($component-tag) {
|
|
250
|
+
// This is when:
|
|
251
|
+
// - the component is not focused, or
|
|
252
|
+
// - an interactive element within the component is not focused, or
|
|
253
|
+
// - the component is valid
|
|
254
|
+
|
|
255
|
+
:host(#{$component-tag}:focus),
|
|
256
|
+
:host(#{$component-tag}:focus-visible),
|
|
257
|
+
:host(#{$component-tag}:focus-within),
|
|
258
|
+
:host(#{$component-tag}[invalid]) {
|
|
259
|
+
--limel-h-l-grid-template-rows-transition-speed: 0.46s;
|
|
260
|
+
--limel-h-l-grid-template-rows: 1fr;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
:host(#{$component-tag}),
|
|
264
|
+
:host(#{$component-tag}[invalid='false']) {
|
|
265
|
+
--limel-h-l-grid-template-rows-transition-speed: 0.3s;
|
|
266
|
+
--limel-h-l-grid-template-rows: 0fr;
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
:host(#{$component-tag}:focus),
|
|
270
|
+
:host(#{$component-tag}:focus-visible),
|
|
271
|
+
:host(#{$component-tag}:focus-within),
|
|
272
|
+
:host(#{$component-tag}:hover) {
|
|
273
|
+
limel-helper-line {
|
|
274
|
+
will-change: grid-template-rows;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
}
|