@limetech/lime-elements 37.3.0 → 37.4.0

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 (106) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/cjs/limel-breadcrumbs_3.cjs.entry.js +1 -1
  3. package/dist/cjs/limel-breadcrumbs_3.cjs.entry.js.map +1 -1
  4. package/dist/cjs/limel-chip_2.cjs.entry.js +2 -2
  5. package/dist/cjs/limel-chip_2.cjs.entry.js.map +1 -1
  6. package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
  7. package/dist/cjs/limel-collapsible-section.cjs.entry.js.map +1 -1
  8. package/dist/cjs/limel-color-picker-palette.cjs.entry.js +1 -1
  9. package/dist/cjs/limel-color-picker-palette.cjs.entry.js.map +1 -1
  10. package/dist/cjs/limel-color-picker.cjs.entry.js +1 -1
  11. package/dist/cjs/limel-color-picker.cjs.entry.js.map +1 -1
  12. package/dist/cjs/limel-form.cjs.entry.js +1 -1
  13. package/dist/cjs/limel-form.cjs.entry.js.map +1 -1
  14. package/dist/cjs/limel-header.cjs.entry.js.map +1 -1
  15. package/dist/cjs/limel-helper-line.cjs.entry.js +1 -1
  16. package/dist/cjs/limel-helper-line.cjs.entry.js.map +1 -1
  17. package/dist/cjs/limel-input-field_3.cjs.entry.js +2 -2
  18. package/dist/cjs/limel-input-field_3.cjs.entry.js.map +1 -1
  19. package/dist/cjs/limel-progress-flow.cjs.entry.js +1 -1
  20. package/dist/cjs/limel-progress-flow.cjs.entry.js.map +1 -1
  21. package/dist/cjs/limel-select.cjs.entry.js +1 -1
  22. package/dist/cjs/limel-select.cjs.entry.js.map +1 -1
  23. package/dist/cjs/limel-slider.cjs.entry.js +1 -1
  24. package/dist/cjs/limel-slider.cjs.entry.js.map +1 -1
  25. package/dist/collection/components/chip/chip.css +3 -0
  26. package/dist/collection/components/chip-set/chip-set.css +23 -11
  27. package/dist/collection/components/collapsible-section/collapsible-section.css +1 -2
  28. package/dist/collection/components/color-picker/color-picker-palette.css +71 -4
  29. package/dist/collection/components/color-picker/color-picker.css +71 -4
  30. package/dist/collection/components/form/form.css +1 -2
  31. package/dist/collection/components/header/header.js +1 -0
  32. package/dist/collection/components/header/header.js.map +1 -1
  33. package/dist/collection/components/helper-line/helper-line.css +1 -0
  34. package/dist/collection/components/input-field/input-field.css +24 -5
  35. package/dist/collection/components/list/list.css +2 -5
  36. package/dist/collection/components/menu-list/menu-list.css +2 -5
  37. package/dist/collection/components/progress-flow/progress-flow.css +1 -1
  38. package/dist/collection/components/select/select.css +9 -19
  39. package/dist/collection/components/select/select.js +0 -1
  40. package/dist/collection/components/select/select.js.map +1 -1
  41. package/dist/collection/components/slider/slider.css +12 -9
  42. package/dist/collection/style/internal/shared_input-select-picker.scss +11 -2
  43. package/dist/esm/limel-breadcrumbs_3.entry.js +1 -1
  44. package/dist/esm/limel-breadcrumbs_3.entry.js.map +1 -1
  45. package/dist/esm/limel-chip_2.entry.js +2 -2
  46. package/dist/esm/limel-chip_2.entry.js.map +1 -1
  47. package/dist/esm/limel-collapsible-section.entry.js +1 -1
  48. package/dist/esm/limel-collapsible-section.entry.js.map +1 -1
  49. package/dist/esm/limel-color-picker-palette.entry.js +1 -1
  50. package/dist/esm/limel-color-picker-palette.entry.js.map +1 -1
  51. package/dist/esm/limel-color-picker.entry.js +1 -1
  52. package/dist/esm/limel-color-picker.entry.js.map +1 -1
  53. package/dist/esm/limel-form.entry.js +1 -1
  54. package/dist/esm/limel-form.entry.js.map +1 -1
  55. package/dist/esm/limel-header.entry.js.map +1 -1
  56. package/dist/esm/limel-helper-line.entry.js +1 -1
  57. package/dist/esm/limel-helper-line.entry.js.map +1 -1
  58. package/dist/esm/limel-input-field_3.entry.js +2 -2
  59. package/dist/esm/limel-input-field_3.entry.js.map +1 -1
  60. package/dist/esm/limel-progress-flow.entry.js +1 -1
  61. package/dist/esm/limel-progress-flow.entry.js.map +1 -1
  62. package/dist/esm/limel-select.entry.js +1 -1
  63. package/dist/esm/limel-select.entry.js.map +1 -1
  64. package/dist/esm/limel-slider.entry.js +1 -1
  65. package/dist/esm/limel-slider.entry.js.map +1 -1
  66. package/dist/lime-elements/lime-elements.esm.js +1 -1
  67. package/dist/lime-elements/{p-54c9b7b1.entry.js → p-00064897.entry.js} +2 -2
  68. package/dist/lime-elements/{p-54c9b7b1.entry.js.map → p-00064897.entry.js.map} +1 -1
  69. package/dist/lime-elements/p-027b500e.entry.js +2 -0
  70. package/dist/lime-elements/p-027b500e.entry.js.map +1 -0
  71. package/dist/lime-elements/{p-79fa180b.entry.js → p-0345e5c9.entry.js} +4 -4
  72. package/dist/lime-elements/{p-79fa180b.entry.js.map → p-0345e5c9.entry.js.map} +1 -1
  73. package/dist/lime-elements/p-104120ab.entry.js +2 -0
  74. package/dist/lime-elements/p-104120ab.entry.js.map +1 -0
  75. package/dist/lime-elements/p-27330d1d.entry.js +2 -0
  76. package/dist/lime-elements/p-27330d1d.entry.js.map +1 -0
  77. package/dist/lime-elements/{p-554cdf9e.entry.js → p-5903e050.entry.js} +2 -2
  78. package/dist/lime-elements/{p-554cdf9e.entry.js.map → p-5903e050.entry.js.map} +1 -1
  79. package/dist/lime-elements/p-68cb9574.entry.js +2 -0
  80. package/dist/lime-elements/p-68cb9574.entry.js.map +1 -0
  81. package/dist/lime-elements/p-71282352.entry.js.map +1 -1
  82. package/dist/lime-elements/{p-60063e02.entry.js → p-870d72f1.entry.js} +2 -2
  83. package/dist/lime-elements/{p-60063e02.entry.js.map → p-870d72f1.entry.js.map} +1 -1
  84. package/dist/lime-elements/p-a1d841db.entry.js +2 -0
  85. package/dist/lime-elements/p-a1d841db.entry.js.map +1 -0
  86. package/dist/lime-elements/{p-e41d6636.entry.js → p-d9ad1ebe.entry.js} +2 -2
  87. package/dist/lime-elements/{p-e41d6636.entry.js.map → p-d9ad1ebe.entry.js.map} +1 -1
  88. package/dist/lime-elements/p-dfa06174.entry.js +2 -0
  89. package/dist/lime-elements/p-dfa06174.entry.js.map +1 -0
  90. package/dist/lime-elements/style/internal/shared_input-select-picker.scss +11 -2
  91. package/dist/types/components/header/header.d.ts +1 -0
  92. package/dist/types/components/select/select.d.ts +0 -1
  93. package/dist/types/components.d.ts +4 -4
  94. package/package.json +5 -5
  95. package/dist/lime-elements/p-1291ed2c.entry.js +0 -2
  96. package/dist/lime-elements/p-1291ed2c.entry.js.map +0 -1
  97. package/dist/lime-elements/p-5240b8a3.entry.js +0 -2
  98. package/dist/lime-elements/p-5240b8a3.entry.js.map +0 -1
  99. package/dist/lime-elements/p-91aaa8b4.entry.js +0 -2
  100. package/dist/lime-elements/p-91aaa8b4.entry.js.map +0 -1
  101. package/dist/lime-elements/p-e0f37631.entry.js +0 -2
  102. package/dist/lime-elements/p-e0f37631.entry.js.map +0 -1
  103. package/dist/lime-elements/p-fc423e66.entry.js +0 -2
  104. package/dist/lime-elements/p-fc423e66.entry.js.map +0 -1
  105. package/dist/lime-elements/p-fd69d7ad.entry.js +0 -2
  106. package/dist/lime-elements/p-fd69d7ad.entry.js.map +0 -1
@@ -61,6 +61,7 @@
61
61
  isolation: isolate;
62
62
  display: inline-flex;
63
63
  align-items: center;
64
+ min-width: 0;
64
65
  }
65
66
 
66
67
  * {
@@ -70,6 +71,7 @@
70
71
  .chip {
71
72
  all: unset;
72
73
  position: relative;
74
+ min-width: 0;
73
75
  display: inline-flex;
74
76
  align-items: center;
75
77
  justify-content: center;
@@ -195,6 +197,7 @@ limel-badge {
195
197
  color: var(--mdc-theme-on-surface);
196
198
  background-color: transparent;
197
199
  z-index: 1;
200
+ flex-shrink: 0;
198
201
  display: flex;
199
202
  align-items: center;
200
203
  justify-content: center;
@@ -1885,6 +1885,13 @@
1885
1885
  color: rgba(var(--contrast-1400), 0.5);
1886
1886
  }
1887
1887
 
1888
+ .mdc-floating-label--float-above {
1889
+ transform: translateY(-1.6875rem) scale(0.75) !important;
1890
+ }
1891
+ .mdc-text-field--with-leading-icon .mdc-floating-label--float-above {
1892
+ transform: translateY(-1.5625rem) translateX(-1.25rem) scale(0.75) !important;
1893
+ }
1894
+
1888
1895
  .mdc-text-field--outlined.mdc-text-field--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,
1889
1896
  .mdc-text-field--outlined.mdc-text-field--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above,
1890
1897
  .mdc-text-field--outlined.mdc-text-field--textarea.mdc-notched-outline--upgraded .mdc-floating-label--float-above,
@@ -1936,7 +1943,7 @@
1936
1943
  }
1937
1944
  .mdc-text-field.mdc-text-field--disabled.lime-text-field--readonly.mdc-text-field--with-trailing-icon .mdc-text-field__icon--trailing limel-icon {
1938
1945
  width: 1.5rem;
1939
- margin-right: 0.5rem;
1946
+ margin-right: 0.25rem;
1940
1947
  }
1941
1948
  .mdc-text-field.mdc-text-field--disabled.lime-text-field--readonly.mdc-text-field--with-trailing-icon:hover .mdc-text-field__icon--trailing:hover {
1942
1949
  box-shadow: var(--button-shadow-hovered);
@@ -1978,16 +1985,17 @@
1978
1985
 
1979
1986
  .mdc-chip-set {
1980
1987
  display: flex;
1988
+ flex-wrap: wrap;
1981
1989
  align-items: center;
1982
1990
  gap: 0.5rem;
1983
- min-height: 3.5rem;
1991
+ min-height: 2.5rem;
1984
1992
  position: relative;
1985
1993
  }
1986
1994
  .mdc-chip-set.chip-set--with-label .lime-floating-label--float-above {
1987
1995
  padding-left: 0.25rem;
1988
1996
  }
1989
1997
  .mdc-chip-set.mdc-chip-set--input {
1990
- padding: 0.5rem;
1998
+ padding: 0.4rem 0.5rem;
1991
1999
  width: 100%;
1992
2000
  }
1993
2001
  .mdc-chip-set.has-clear-all-button.mdc-chip-set--input {
@@ -2037,7 +2045,7 @@
2037
2045
  }
2038
2046
  .lime-notched-outline--notched .mdc-notched-outline__notch .lime-floating-label--float-above {
2039
2047
  top: 1.6875rem;
2040
- transform: translateY(-34.75px) scale(0.75);
2048
+ transform: translateY(-34.75px) scale(0.75) !important;
2041
2049
  font-size: 0.875rem;
2042
2050
  }
2043
2051
 
@@ -2056,7 +2064,7 @@
2056
2064
  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>");
2057
2065
  position: absolute;
2058
2066
  right: 0.5rem;
2059
- top: 1.125rem;
2067
+ top: calc(2.5rem / 4);
2060
2068
  opacity: 0;
2061
2069
  }
2062
2070
  .clear-all-button:hover {
@@ -2084,22 +2092,22 @@
2084
2092
  }
2085
2093
 
2086
2094
  .has-leading-icon:not(.has-chips) .mdc-text-field__input {
2087
- padding-left: 2.5rem;
2095
+ padding-left: 1.5rem;
2088
2096
  }
2089
2097
  .has-leading-icon:not(.has-chips) .mdc-floating-label:not(.lime-floating-label--float-above) {
2090
- left: 2.5rem;
2098
+ left: 1.5rem;
2091
2099
  }
2092
2100
  .has-leading-icon:not(.has-chips) .mdc-floating-label.mdc-floating-label--float-above {
2093
2101
  left: 0.25rem;
2094
2102
  }
2095
2103
  .has-leading-icon limel-chip:first-of-type {
2096
- margin-left: 40px;
2104
+ margin-left: 1.5rem;
2097
2105
  }
2098
2106
  .has-leading-icon .search-icon {
2099
2107
  transition: transform 0.2s ease;
2100
2108
  position: absolute;
2101
- top: 1rem;
2102
- left: 1rem;
2109
+ top: 0.5625rem;
2110
+ left: 0.25rem;
2103
2111
  }
2104
2112
  .has-leading-icon limel-icon {
2105
2113
  background-color: transparent;
@@ -2123,7 +2131,7 @@ limel-chip.can-be-removed {
2123
2131
  }
2124
2132
 
2125
2133
  :host {
2126
- --dropzone-margin: 0.25rem;
2134
+ --dropzone-margin: 0.125rem;
2127
2135
  --dropzone-color: rgb(var(--contrast-600));
2128
2136
  }
2129
2137
 
@@ -2242,4 +2250,8 @@ limel-chip.can-be-removed {
2242
2250
  :host(limel-chip-set:focus-within) limel-helper-line,
2243
2251
  :host(limel-chip-set:hover) limel-helper-line {
2244
2252
  will-change: grid-template-rows;
2253
+ }
2254
+
2255
+ .mdc-text-field.mdc-text-field--outlined {
2256
+ min-height: 2.5rem;
2245
2257
  }
@@ -176,8 +176,7 @@ header {
176
176
  display: flex;
177
177
  justify-content: space-between;
178
178
  padding-left: 0.5rem;
179
- padding-right: 0.5rem;
180
- height: 3rem;
179
+ height: 2.5rem;
181
180
  }
182
181
 
183
182
  .title {
@@ -689,6 +689,72 @@
689
689
  * 2. the CSS variables of `--kompendium-example-font-family`
690
690
  * in the `<style>` tag of `index.html`.
691
691
  */
692
+ /*
693
+ * This file is imported into every component!
694
+ *
695
+ * Nothing in this file may output any CSS
696
+ * without being explicitly called by outside code.
697
+ */
698
+ /*
699
+ * This file is imported into every component that uses MDC!
700
+ *
701
+ * Anything in this file that generates CSS output on its own,
702
+ * without being explicitly used, will output that CSS in every
703
+ * single component, increasing the size of the production build.
704
+ * Avoid that unless there's very good reason for it!
705
+ */
706
+ /*
707
+ * This file is imported into every component that uses MDC!
708
+ *
709
+ * Anything in this file that generates CSS output on its own,
710
+ * without being explicitly used, will output that CSS in every
711
+ * single component, increasing the size of the production build.
712
+ * Avoid that unless there's very good reason for it!
713
+ */
714
+ :host {
715
+ --mdc-theme-primary: var(
716
+ --lime-primary-color,
717
+ rgb(var(--color-teal-default))
718
+ );
719
+ --mdc-theme-secondary: var(
720
+ --lime-secondary-color,
721
+ rgb(var(--contrast-1100))
722
+ );
723
+ --mdc-theme-on-primary: var(
724
+ --lime-on-primary-color,
725
+ rgb(var(--contrast-100))
726
+ );
727
+ --mdc-theme-on-secondary: var(
728
+ --lime-on-secondary-color,
729
+ rgb(var(--contrast-100))
730
+ );
731
+ --mdc-theme-text-disabled-on-background: var(
732
+ --lime-text-disabled-on-background-color,
733
+ rgba(var(--contrast-1700), 0.38)
734
+ );
735
+ --mdc-theme-text-primary-on-background: var(
736
+ --lime-text-primary-on-background-color,
737
+ rgba(var(--contrast-1700), 0.87)
738
+ );
739
+ --mdc-theme-text-secondary-on-background: var(
740
+ --lime-text-secondary-on-background-color,
741
+ rgba(var(--contrast-1700), 0.54)
742
+ );
743
+ --mdc-theme-error: var(
744
+ --lime-error-background-color,
745
+ rgb(var(--color-red-dark))
746
+ );
747
+ --lime-error-text-color: rgb(var(--color-red-darker));
748
+ --mdc-theme-surface: var(
749
+ --lime-surface-background-color,
750
+ rgb(var(--contrast-100))
751
+ );
752
+ --mdc-theme-on-surface: var(
753
+ --lime-on-surface-color,
754
+ rgb(var(--contrast-1500))
755
+ );
756
+ }
757
+
692
758
  .picker-trigger[style="--background:lime-magenta;"]:after,
693
759
  .chosen-color-preview[style="--background:lime-magenta;"]:after {
694
760
  background-color: var(--lime-magenta);
@@ -727,13 +793,14 @@
727
793
  }
728
794
 
729
795
  :host {
796
+ position: relative;
730
797
  --popover-surface-width: 50rem;
731
798
  --color-picker-default-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>");
732
799
  }
733
800
 
734
801
  .color-picker {
735
802
  display: grid;
736
- gap: 0.5rem;
803
+ gap: 0.25rem;
737
804
  grid-template-columns: auto 1fr;
738
805
  }
739
806
 
@@ -771,8 +838,8 @@
771
838
  box-sizing: border-box;
772
839
  position: relative;
773
840
  isolation: isolate;
774
- width: 3.5rem;
775
- height: 3.5rem;
841
+ width: 2.5rem;
842
+ height: 2.5rem;
776
843
  }
777
844
  .chosen-color-preview:before, .chosen-color-preview:after,
778
845
  .picker-trigger:before,
@@ -801,7 +868,7 @@
801
868
  }
802
869
 
803
870
  .chosen-color-input[readonly] {
804
- transform: translateY(1rem);
871
+ transform: translateX(calc( 2.5rem / 4 * -1 )) translateY(calc(2.5rem / 4));
805
872
  }
806
873
 
807
874
  :host {
@@ -52,6 +52,72 @@
52
52
  * 2. the CSS variables of `--kompendium-example-font-family`
53
53
  * in the `<style>` tag of `index.html`.
54
54
  */
55
+ /*
56
+ * This file is imported into every component!
57
+ *
58
+ * Nothing in this file may output any CSS
59
+ * without being explicitly called by outside code.
60
+ */
61
+ /*
62
+ * This file is imported into every component that uses MDC!
63
+ *
64
+ * Anything in this file that generates CSS output on its own,
65
+ * without being explicitly used, will output that CSS in every
66
+ * single component, increasing the size of the production build.
67
+ * Avoid that unless there's very good reason for it!
68
+ */
69
+ /*
70
+ * This file is imported into every component that uses MDC!
71
+ *
72
+ * Anything in this file that generates CSS output on its own,
73
+ * without being explicitly used, will output that CSS in every
74
+ * single component, increasing the size of the production build.
75
+ * Avoid that unless there's very good reason for it!
76
+ */
77
+ :host {
78
+ --mdc-theme-primary: var(
79
+ --lime-primary-color,
80
+ rgb(var(--color-teal-default))
81
+ );
82
+ --mdc-theme-secondary: var(
83
+ --lime-secondary-color,
84
+ rgb(var(--contrast-1100))
85
+ );
86
+ --mdc-theme-on-primary: var(
87
+ --lime-on-primary-color,
88
+ rgb(var(--contrast-100))
89
+ );
90
+ --mdc-theme-on-secondary: var(
91
+ --lime-on-secondary-color,
92
+ rgb(var(--contrast-100))
93
+ );
94
+ --mdc-theme-text-disabled-on-background: var(
95
+ --lime-text-disabled-on-background-color,
96
+ rgba(var(--contrast-1700), 0.38)
97
+ );
98
+ --mdc-theme-text-primary-on-background: var(
99
+ --lime-text-primary-on-background-color,
100
+ rgba(var(--contrast-1700), 0.87)
101
+ );
102
+ --mdc-theme-text-secondary-on-background: var(
103
+ --lime-text-secondary-on-background-color,
104
+ rgba(var(--contrast-1700), 0.54)
105
+ );
106
+ --mdc-theme-error: var(
107
+ --lime-error-background-color,
108
+ rgb(var(--color-red-dark))
109
+ );
110
+ --lime-error-text-color: rgb(var(--color-red-darker));
111
+ --mdc-theme-surface: var(
112
+ --lime-surface-background-color,
113
+ rgb(var(--contrast-100))
114
+ );
115
+ --mdc-theme-on-surface: var(
116
+ --lime-on-surface-color,
117
+ rgb(var(--contrast-1500))
118
+ );
119
+ }
120
+
55
121
  .picker-trigger[style="--background:lime-magenta;"]:after,
56
122
  .chosen-color-preview[style="--background:lime-magenta;"]:after {
57
123
  background-color: var(--lime-magenta);
@@ -90,13 +156,14 @@
90
156
  }
91
157
 
92
158
  :host {
159
+ position: relative;
93
160
  --popover-surface-width: 50rem;
94
161
  --color-picker-default-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>");
95
162
  }
96
163
 
97
164
  .color-picker {
98
165
  display: grid;
99
- gap: 0.5rem;
166
+ gap: 0.25rem;
100
167
  grid-template-columns: auto 1fr;
101
168
  }
102
169
 
@@ -134,8 +201,8 @@
134
201
  box-sizing: border-box;
135
202
  position: relative;
136
203
  isolation: isolate;
137
- width: 3.5rem;
138
- height: 3.5rem;
204
+ width: 2.5rem;
205
+ height: 2.5rem;
139
206
  }
140
207
  .chosen-color-preview:before, .chosen-color-preview:after,
141
208
  .picker-trigger:before,
@@ -164,5 +231,5 @@
164
231
  }
165
232
 
166
233
  .chosen-color-input[readonly] {
167
- transform: translateY(1rem);
234
+ transform: translateX(calc( 2.5rem / 4 * -1 )) translateY(calc(2.5rem / 4));
168
235
  }
@@ -448,7 +448,7 @@ limel-code-editor {
448
448
  }
449
449
 
450
450
  .limel-form-layout--grid {
451
- --min-height-of-one-row: 3.5rem;
451
+ --min-height-of-one-row: 2.5rem;
452
452
  display: grid;
453
453
  column-gap: var(--form-column-gap, 1rem);
454
454
  row-gap: var(--form-row-gap, 1rem);
@@ -522,7 +522,6 @@ limel-code-editor {
522
522
  min-height: var(--min-height-of-one-row);
523
523
  }
524
524
  .limel-form-layout--grid limel-checkbox {
525
- margin-top: 0.5rem;
526
525
  display: block;
527
526
  }
528
527
  .limel-form-layout--grid limel-switch {
@@ -41,6 +41,7 @@ import { getIconName } from '../icon/get-icon-props';
41
41
  * :::
42
42
  *
43
43
  * @exampleComponent limel-example-header
44
+ * @exampleComponent limel-example-header-slot-actions
44
45
  * @exampleComponent limel-example-header-colors
45
46
  * @exampleComponent limel-example-header-responsive
46
47
  * @exampleComponent limel-example-header-narrow
@@ -1 +1 @@
1
- {"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/components/header/header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkDG;AAMH,MAAM,OAAO,MAAM;;;;;;6BA8BqB,GAAG;;EAEhC,MAAM;IACT,OAAO;MACH,WAAK,KAAK,EAAC,aAAa;QACnB,IAAI,CAAC,UAAU,EAAE;QAClB,WAAK,KAAK,EAAC,UAAU;UACjB,UAAI,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,IAAI,CAAC,OAAO,IAClC,IAAI,CAAC,OAAO,CACZ;UACL,UAAI,KAAK,EAAC,YAAY,EAAC,KAAK,EAAE,IAAI,CAAC,UAAU;YACxC,IAAI,CAAC,UAAU;YACf,IAAI,CAAC,oBAAoB,EAAE,CAC3B,CACH,CACJ;MACN,YAAM,IAAI,EAAC,SAAS;QAChB,eAAQ,CACL;KACV,CAAC;EACN,CAAC;EAEO,UAAU;IACd,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEpC,IAAI,CAAC,IAAI,EAAE;MACP,OAAO;KACV;IAED,OAAO,kBAAY,KAAK,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,GAAI,CAAC;EAChE,CAAC;EAEO,oBAAoB;IACxB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;MACtB,OAAO;KACV;IAED,OAAO,CACH,YAAM,KAAK,EAAC,6BAA6B;MACpC,IAAI,CAAC,uBAAuB,EAAE;MAC9B,IAAI,CAAC,cAAc,CACjB,CACV,CAAC;EACN,CAAC;EAEO,uBAAuB;IAC3B,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;MACzB,OAAO;KACV;IAED,OAAO,gBAAO,IAAI,CAAC,iBAAiB,CAAQ,CAAC;EACjD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\nimport { Icon } from '../../interface';\nimport { getIconName } from '../icon/get-icon-props';\n\n/**\n * A header is the top most visual element in a component, page, card, or a view.\n *\n * ## Usage\n * A header is the first thing that clarifies a context for users.\n * Due to their positions in the UI hierarchy, headers are the most\n * prominent elements of a user interface; and because of that, they carry both\n * vital information and fundamental controls for the area of the interface\n * they represent.\n *\n * For example, when a header is placed on top of a card, it should quickly\n * explain the card to the user. When placed on top of a modal, it should easily\n * clarify what the modal is about. When displayed on top of a fullscreen view,\n * it should indicate where in the system users are, and what part of the app\n * they are looking at.\n *\n *\n * ## Layout\n * The vital information in a header is usually manifested in form of an icon,\n * and a heading. A subheading also could be added to provide supplementary\n * information. There is also a third place for displaying supplementary information\n * or \"supporting text\", which will be rendered as a part of the subheading.\n * Along with this information, headers can also include actions, controls, or\n * menus.\n *\n * :::important\n * Such actions or menus must affect the entire section of the interface\n * which the header is representing. For example, a _Delete_ button on a card\n * header must delete that entire card and its respective contents all together,\n * not for example a selected item which is visible in the content of that card.\n * :::\n *\n *\n * :::warning\n * Do not user background color on icons in the headers. It is much better and\n * much easier for the eye if your icon itself has a color.\n * Background colors behind icons make them look like \"call to action\" buttons\n * and take a lot of attention from users.\n * :::\n *\n * @exampleComponent limel-example-header\n * @exampleComponent limel-example-header-colors\n * @exampleComponent limel-example-header-responsive\n * @exampleComponent limel-example-header-narrow\n * @slot actions - Content (actions) to be put inside the far right surface of\n * the header\n * @slot [no name] - DEPRECATED. The `actions` slot used to be unnamed. This\n * behavior has been deprecated, and support will be dropped in a future\n * version. Please add `slot=\"actions\"` to your elements to ensure your code\n * will continue to work with future versions of Lime Elements.\n */\n@Component({\n tag: 'limel-header',\n shadow: true,\n styleUrl: 'header.scss',\n})\nexport class Header {\n /**\n * Icon to display\n */\n @Prop()\n public icon?: string | Icon;\n\n /**\n * Title to display\n */\n @Prop()\n public heading?: string;\n\n /**\n * Subheading to display\n */\n @Prop()\n public subheading?: string;\n\n /**\n * An extra string of text to display along with with the Subheading\n */\n @Prop()\n public supportingText?: string;\n\n /**\n * The visual divider that separates the `subheading` and the `supportingText`.\n * It must be a single character such as `-` or `,`.\n */\n @Prop()\n public subheadingDivider?: string = '·';\n\n public render() {\n return [\n <div class=\"information\">\n {this.renderIcon()}\n <div class=\"headings\">\n <h1 class=\"heading\" title={this.heading}>\n {this.heading}\n </h1>\n <h2 class=\"subheading\" title={this.subheading}>\n {this.subheading}\n {this.renderSupportingText()}\n </h2>\n </div>\n </div>,\n <slot name=\"actions\">\n <slot />\n </slot>,\n ];\n }\n\n private renderIcon() {\n const icon = getIconName(this.icon);\n\n if (!icon) {\n return;\n }\n\n return <limel-icon class=\"icon\" badge={true} name={icon} />;\n }\n\n private renderSupportingText() {\n if (!this.supportingText) {\n return;\n }\n\n return (\n <span class=\"subheading__supporting-text\">\n {this.renderSubheadingDivider()}\n {this.supportingText}\n </span>\n );\n }\n\n private renderSubheadingDivider() {\n if (!this.subheadingDivider) {\n return;\n }\n\n return <span>{this.subheadingDivider}</span>;\n }\n}\n"]}
1
+ {"version":3,"file":"header.js","sourceRoot":"","sources":["../../../src/components/header/header.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,eAAe,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAErD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;AAMH,MAAM,OAAO,MAAM;;;;;;6BA8BqB,GAAG;;EAEhC,MAAM;IACT,OAAO;MACH,WAAK,KAAK,EAAC,aAAa;QACnB,IAAI,CAAC,UAAU,EAAE;QAClB,WAAK,KAAK,EAAC,UAAU;UACjB,UAAI,KAAK,EAAC,SAAS,EAAC,KAAK,EAAE,IAAI,CAAC,OAAO,IAClC,IAAI,CAAC,OAAO,CACZ;UACL,UAAI,KAAK,EAAC,YAAY,EAAC,KAAK,EAAE,IAAI,CAAC,UAAU;YACxC,IAAI,CAAC,UAAU;YACf,IAAI,CAAC,oBAAoB,EAAE,CAC3B,CACH,CACJ;MACN,YAAM,IAAI,EAAC,SAAS;QAChB,eAAQ,CACL;KACV,CAAC;EACN,CAAC;EAEO,UAAU;IACd,MAAM,IAAI,GAAG,WAAW,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAEpC,IAAI,CAAC,IAAI,EAAE;MACP,OAAO;KACV;IAED,OAAO,kBAAY,KAAK,EAAC,MAAM,EAAC,KAAK,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,GAAI,CAAC;EAChE,CAAC;EAEO,oBAAoB;IACxB,IAAI,CAAC,IAAI,CAAC,cAAc,EAAE;MACtB,OAAO;KACV;IAED,OAAO,CACH,YAAM,KAAK,EAAC,6BAA6B;MACpC,IAAI,CAAC,uBAAuB,EAAE;MAC9B,IAAI,CAAC,cAAc,CACjB,CACV,CAAC;EACN,CAAC;EAEO,uBAAuB;IAC3B,IAAI,CAAC,IAAI,CAAC,iBAAiB,EAAE;MACzB,OAAO;KACV;IAED,OAAO,gBAAO,IAAI,CAAC,iBAAiB,CAAQ,CAAC;EACjD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CACJ","sourcesContent":["import { Component, h, Prop } from '@stencil/core';\nimport { Icon } from '../../interface';\nimport { getIconName } from '../icon/get-icon-props';\n\n/**\n * A header is the top most visual element in a component, page, card, or a view.\n *\n * ## Usage\n * A header is the first thing that clarifies a context for users.\n * Due to their positions in the UI hierarchy, headers are the most\n * prominent elements of a user interface; and because of that, they carry both\n * vital information and fundamental controls for the area of the interface\n * they represent.\n *\n * For example, when a header is placed on top of a card, it should quickly\n * explain the card to the user. When placed on top of a modal, it should easily\n * clarify what the modal is about. When displayed on top of a fullscreen view,\n * it should indicate where in the system users are, and what part of the app\n * they are looking at.\n *\n *\n * ## Layout\n * The vital information in a header is usually manifested in form of an icon,\n * and a heading. A subheading also could be added to provide supplementary\n * information. There is also a third place for displaying supplementary information\n * or \"supporting text\", which will be rendered as a part of the subheading.\n * Along with this information, headers can also include actions, controls, or\n * menus.\n *\n * :::important\n * Such actions or menus must affect the entire section of the interface\n * which the header is representing. For example, a _Delete_ button on a card\n * header must delete that entire card and its respective contents all together,\n * not for example a selected item which is visible in the content of that card.\n * :::\n *\n *\n * :::warning\n * Do not user background color on icons in the headers. It is much better and\n * much easier for the eye if your icon itself has a color.\n * Background colors behind icons make them look like \"call to action\" buttons\n * and take a lot of attention from users.\n * :::\n *\n * @exampleComponent limel-example-header\n * @exampleComponent limel-example-header-slot-actions\n * @exampleComponent limel-example-header-colors\n * @exampleComponent limel-example-header-responsive\n * @exampleComponent limel-example-header-narrow\n * @slot actions - Content (actions) to be put inside the far right surface of\n * the header\n * @slot [no name] - DEPRECATED. The `actions` slot used to be unnamed. This\n * behavior has been deprecated, and support will be dropped in a future\n * version. Please add `slot=\"actions\"` to your elements to ensure your code\n * will continue to work with future versions of Lime Elements.\n */\n@Component({\n tag: 'limel-header',\n shadow: true,\n styleUrl: 'header.scss',\n})\nexport class Header {\n /**\n * Icon to display\n */\n @Prop()\n public icon?: string | Icon;\n\n /**\n * Title to display\n */\n @Prop()\n public heading?: string;\n\n /**\n * Subheading to display\n */\n @Prop()\n public subheading?: string;\n\n /**\n * An extra string of text to display along with with the Subheading\n */\n @Prop()\n public supportingText?: string;\n\n /**\n * The visual divider that separates the `subheading` and the `supportingText`.\n * It must be a single character such as `-` or `,`.\n */\n @Prop()\n public subheadingDivider?: string = '·';\n\n public render() {\n return [\n <div class=\"information\">\n {this.renderIcon()}\n <div class=\"headings\">\n <h1 class=\"heading\" title={this.heading}>\n {this.heading}\n </h1>\n <h2 class=\"subheading\" title={this.subheading}>\n {this.subheading}\n {this.renderSupportingText()}\n </h2>\n </div>\n </div>,\n <slot name=\"actions\">\n <slot />\n </slot>,\n ];\n }\n\n private renderIcon() {\n const icon = getIconName(this.icon);\n\n if (!icon) {\n return;\n }\n\n return <limel-icon class=\"icon\" badge={true} name={icon} />;\n }\n\n private renderSupportingText() {\n if (!this.supportingText) {\n return;\n }\n\n return (\n <span class=\"subheading__supporting-text\">\n {this.renderSubheadingDivider()}\n {this.supportingText}\n </span>\n );\n }\n\n private renderSubheadingDivider() {\n if (!this.subheadingDivider) {\n return;\n }\n\n return <span>{this.subheadingDivider}</span>;\n }\n}\n"]}
@@ -6,6 +6,7 @@
6
6
  -moz-osx-font-smoothing: grayscale;
7
7
  -webkit-font-smoothing: antialiased;
8
8
  font-size: 0.6875rem;
9
+ line-height: normal;
9
10
  color: rgb(var(--contrast-1200));
10
11
  }
11
12
 
@@ -1936,7 +1936,7 @@
1936
1936
  }
1937
1937
  .mdc-text-field.mdc-text-field--disabled.lime-text-field--readonly.mdc-text-field--with-trailing-icon .mdc-text-field__icon--trailing limel-icon, .mdc-text-field.mdc-text-field--disabled.lime-text-field--readonly.mdc-text-field--with-trailing-icon a.lime-trailing-icon-for-link limel-icon {
1938
1938
  width: 1.5rem;
1939
- margin-right: 0.5rem;
1939
+ margin-right: 0.25rem;
1940
1940
  }
1941
1941
  .mdc-text-field.mdc-text-field--disabled.lime-text-field--readonly.mdc-text-field--with-trailing-icon:hover .mdc-text-field__icon--trailing:hover, .mdc-text-field.mdc-text-field--disabled.lime-text-field--readonly.mdc-text-field--with-trailing-icon:hover a.lime-trailing-icon-for-link:hover {
1942
1942
  box-shadow: var(--button-shadow-hovered);
@@ -2019,6 +2019,13 @@
2019
2019
  color: rgba(var(--contrast-1400), 0.5);
2020
2020
  }
2021
2021
 
2022
+ .mdc-floating-label--float-above {
2023
+ transform: translateY(-1.6875rem) scale(0.75) !important;
2024
+ }
2025
+ .mdc-text-field--with-leading-icon .mdc-floating-label--float-above {
2026
+ transform: translateY(-1.5625rem) translateX(-1.25rem) scale(0.75) !important;
2027
+ }
2028
+
2022
2029
  .lime-empty-value-for-readonly {
2023
2030
  z-index: 1;
2024
2031
  position: absolute;
@@ -2040,10 +2047,6 @@
2040
2047
  opacity: 0.4;
2041
2048
  }
2042
2049
 
2043
- .mdc-text-field--with-trailing-icon .mdc-text-field__icon--trailing, .mdc-text-field--with-trailing-icon a.lime-trailing-icon-for-link {
2044
- margin-right: 0.5rem;
2045
- }
2046
-
2047
2050
  .lime-text-field--empty .mdc-text-field__icon--trailing, .lime-text-field--empty a.lime-trailing-icon-for-link {
2048
2051
  cursor: not-allowed;
2049
2052
  opacity: 0.4;
@@ -2199,4 +2202,20 @@ input.mdc-text-field__input::-webkit-search-cancel-button:active {
2199
2202
 
2200
2203
  :host([type=textarea]) .mdc-text-field.lime-text-field--readonly .mdc-text-field__resizer {
2201
2204
  pointer-events: all;
2205
+ }
2206
+
2207
+ .mdc-text-field.mdc-text-field--outlined {
2208
+ height: 2.5rem;
2209
+ }
2210
+
2211
+ .mdc-text-field--with-trailing-icon .mdc-text-field__icon--trailing, .mdc-text-field--with-trailing-icon a.lime-trailing-icon-for-link {
2212
+ padding: 0.25rem;
2213
+ margin-right: 0.25rem;
2214
+ }
2215
+
2216
+ .mdc-text-field--outlined.mdc-text-field--with-leading-icon .mdc-text-field__icon--leading {
2217
+ margin-left: 0.25rem;
2218
+ }
2219
+ .mdc-text-field--outlined.mdc-text-field--with-leading-icon .mdc-floating-label {
2220
+ left: 1.5rem;
2202
2221
  }
@@ -4426,6 +4426,7 @@ a.mdc-list-item {
4426
4426
  transition: background-color 0.2s ease;
4427
4427
  box-sizing: border-box;
4428
4428
  z-index: 0;
4429
+ min-height: 2.5rem;
4429
4430
  }
4430
4431
  .mdc-deprecated-list .mdc-deprecated-list-item:not(.mdc-deprecated-list-item--disabled):hover {
4431
4432
  background-color: rgb(var(--contrast-300));
@@ -4494,9 +4495,6 @@ a.mdc-list-item {
4494
4495
  padding-top: 0.5rem;
4495
4496
  padding-bottom: 0.5rem;
4496
4497
  }
4497
- .mdc-deprecated-list.mdc-deprecated-list--two-line .mdc-deprecated-list-item__primary-text {
4498
- margin-bottom: 0.25rem;
4499
- }
4500
4498
  .mdc-deprecated-list .mdc-deprecated-list-item__secondary-text,
4501
4499
  .mdc-deprecated-list .mdc-deprecated-list-item__primary-text,
4502
4500
  .mdc-deprecated-list .mdc-deprecated-list-item__command-text {
@@ -5970,12 +5968,11 @@ a.mdc-list-item {
5970
5968
  }
5971
5969
 
5972
5970
  :host {
5973
- --line-height-of-secondary-text: 1.2rem;
5971
+ --line-height-of-secondary-text: 1rem;
5974
5972
  }
5975
5973
 
5976
5974
  .mdc-deprecated-list-item {
5977
5975
  height: auto !important;
5978
- min-height: 3rem;
5979
5976
  }
5980
5977
  .mdc-deprecated-list-item .mdc-deprecated-list-item__secondary-text {
5981
5978
  line-height: var(--line-height-of-secondary-text);
@@ -4500,6 +4500,7 @@ a.mdc-list-item {
4500
4500
  transition: background-color 0.2s ease;
4501
4501
  box-sizing: border-box;
4502
4502
  z-index: 0;
4503
+ min-height: 2.5rem;
4503
4504
  }
4504
4505
  .mdc-deprecated-list .mdc-deprecated-list-item:not(.mdc-deprecated-list-item--disabled):hover {
4505
4506
  background-color: rgb(var(--contrast-300));
@@ -4568,9 +4569,6 @@ a.mdc-list-item {
4568
4569
  padding-top: 0.5rem;
4569
4570
  padding-bottom: 0.5rem;
4570
4571
  }
4571
- .mdc-deprecated-list.mdc-deprecated-list--two-line .mdc-deprecated-list-item__primary-text {
4572
- margin-bottom: 0.25rem;
4573
- }
4574
4572
  .mdc-deprecated-list .mdc-deprecated-list-item__secondary-text,
4575
4573
  .mdc-deprecated-list .mdc-deprecated-list-item__primary-text,
4576
4574
  .mdc-deprecated-list .mdc-deprecated-list-item__command-text {
@@ -6044,12 +6042,11 @@ a.mdc-list-item {
6044
6042
  }
6045
6043
 
6046
6044
  :host {
6047
- --line-height-of-secondary-text: 1.2rem;
6045
+ --line-height-of-secondary-text: 1rem;
6048
6046
  }
6049
6047
 
6050
6048
  .mdc-deprecated-list-item {
6051
6049
  height: auto !important;
6052
- min-height: 3rem;
6053
6050
  }
6054
6051
  .mdc-deprecated-list-item .mdc-deprecated-list-item__secondary-text {
6055
6052
  line-height: var(--line-height-of-secondary-text);
@@ -21,7 +21,7 @@
21
21
  * @prop --progress-flow-icon-color--inactive: Color of the optional icons used in each step. Only affects inactive steps, defaults to text colors for inactive, active, or passed step.
22
22
  */
23
23
  :host {
24
- --step-height: 2.5rem;
24
+ --step-height: 2rem;
25
25
  --selected-indicator-right: -0.5rem;
26
26
  --max-text-width: 10rem;
27
27
  isolation: isolate;
@@ -1643,10 +1643,12 @@
1643
1643
  outline: none;
1644
1644
  align-self: center;
1645
1645
  min-width: 0;
1646
+ padding: 0 0.25rem 0 1rem;
1646
1647
  }
1647
1648
 
1648
1649
  .limel-select__selected-option__icon {
1649
1650
  margin-right: 0.5rem;
1651
+ margin-left: -0.5rem;
1650
1652
  flex-shrink: 0;
1651
1653
  }
1652
1654
 
@@ -1672,9 +1674,13 @@
1672
1674
  .limel-select:not(.limel-select--readonly) .limel-select-trigger {
1673
1675
  background-color: rgba(var(--contrast-100), 0.8);
1674
1676
  }
1677
+ .limel-select .mdc-select__anchor {
1678
+ height: 2.25rem;
1679
+ padding-left: 0rem;
1680
+ }
1675
1681
  .limel-select .limel-select-trigger {
1676
1682
  border: none;
1677
- height: 3.5rem;
1683
+ height: 2.5rem;
1678
1684
  display: inline-flex;
1679
1685
  align-items: center;
1680
1686
  border-radius: 0.3125rem;
@@ -1687,13 +1693,14 @@
1687
1693
  }
1688
1694
  .limel-select .limel-select-trigger .mdc-floating-label.mdc-floating-label--float-above {
1689
1695
  font-size: 0.875rem;
1690
- transform: translateY(-2.171875rem) scale(0.75);
1696
+ transform: translateY(-1.6875rem) scale(0.75);
1691
1697
  }
1692
1698
  .limel-select .limel-select-trigger,
1693
1699
  .limel-select .limel-select__selected-option {
1694
1700
  width: 100%;
1695
1701
  }
1696
1702
  .limel-select .mdc-select__dropdown-icon {
1703
+ margin-right: 0.25rem;
1697
1704
  margin-left: 0.25rem;
1698
1705
  }
1699
1706
  .limel-select.mdc-select--disabled .limel-select-trigger {
@@ -1772,23 +1779,6 @@ select.limel-select__native-control {
1772
1779
  border: 0;
1773
1780
  }
1774
1781
 
1775
- :host(.is-narrow) .limel-select .mdc-select__anchor {
1776
- height: 2.25rem;
1777
- padding-left: 0rem;
1778
- }
1779
- :host(.is-narrow) .limel-select .mdc-select__dropdown-icon {
1780
- margin-right: 0.25rem;
1781
- }
1782
- :host(.is-narrow) .mdc-floating-label.mdc-floating-label--float-above {
1783
- top: 1.75rem;
1784
- }
1785
- :host(.is-narrow) .limel-select__selected-option {
1786
- padding: 0 0.25rem 0 1rem;
1787
- }
1788
- :host(.is-narrow) .limel-select__selected-option__icon {
1789
- margin-left: -0.5rem;
1790
- }
1791
-
1792
1782
  .limel-select.mdc-select.limel-select--readonly .limel-select-trigger {
1793
1783
  cursor: default;
1794
1784
  opacity: 1;
@@ -13,7 +13,6 @@ import { SelectTemplate, triggerIconColorWarning } from './select.template';
13
13
  * @exampleComponent limel-example-select-with-empty-option
14
14
  * @exampleComponent limel-example-select-preselected
15
15
  * @exampleComponent limel-example-select-change-options
16
- * @exampleComponent limel-example-select-narrow
17
16
  * @exampleComponent limel-example-select-dialog
18
17
  */
19
18
  export class Select {