otimus-library 0.2.45 → 0.2.47

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 (202) hide show
  1. package/README.md +26 -26
  2. package/ng-package.json +12 -0
  3. package/package.json +4 -13
  4. package/src/assets/images/loading.svg +0 -0
  5. package/src/assets/images/not-found-bg.jpg +0 -0
  6. package/src/lib/components/oc-accordion/oc-accordion.component.html +3 -0
  7. package/src/lib/components/oc-accordion/oc-accordion.component.scss +4 -0
  8. package/src/lib/components/oc-accordion/oc-accordion.component.ts +44 -0
  9. package/src/lib/components/oc-accordion-item/oc-accordion-item.component.html +19 -0
  10. package/src/lib/components/oc-accordion-item/oc-accordion-item.component.scss +86 -0
  11. package/src/lib/components/oc-accordion-item/oc-accordion-item.component.ts +27 -0
  12. package/src/lib/components/oc-accordion-item/styles/oc-accordion-item.shui-component.scss +41 -0
  13. package/src/lib/components/oc-autocomplete/oc-autocomplete.component.html +66 -0
  14. package/src/lib/components/oc-autocomplete/oc-autocomplete.component.scss +157 -0
  15. package/src/lib/components/oc-autocomplete/oc-autocomplete.component.ts +277 -0
  16. package/src/lib/components/oc-badge/oc-badge.component.html +7 -0
  17. package/src/lib/components/oc-badge/oc-badge.component.scss +125 -0
  18. package/src/lib/components/oc-badge/oc-badge.component.ts +22 -0
  19. package/src/lib/components/oc-checkbox/oc-checkbox.component.html +30 -0
  20. package/src/lib/components/oc-checkbox/oc-checkbox.component.scss +103 -0
  21. package/src/lib/components/oc-checkbox/oc-checkbox.component.ts +132 -0
  22. package/src/lib/components/oc-checkbox/styles/oc-checkbox.shui-component.scss +21 -0
  23. package/src/lib/components/oc-chip/oc-chip.component.html +20 -0
  24. package/src/lib/components/oc-chip/oc-chip.component.scss +102 -0
  25. package/src/lib/components/oc-chip/oc-chip.component.ts +32 -0
  26. package/src/lib/components/oc-filter/oc-filter.component.html +22 -0
  27. package/src/lib/components/oc-filter/oc-filter.component.scss +78 -0
  28. package/src/lib/components/oc-filter/oc-filter.component.spec.ts +23 -0
  29. package/src/lib/components/oc-filter/oc-filter.component.ts +30 -0
  30. package/src/lib/components/oc-input/oc-input.component.html +21 -0
  31. package/src/lib/components/oc-input/oc-input.component.scss +3 -0
  32. package/src/lib/components/oc-input/oc-input.component.ts +100 -0
  33. package/src/lib/components/oc-key-value/oc-key-value.component.html +12 -0
  34. package/src/lib/components/oc-key-value/oc-key-value.component.scss +26 -0
  35. package/src/lib/components/oc-key-value/oc-key-value.component.ts +23 -0
  36. package/src/lib/components/oc-key-value/styles/oc-key-value.shui-component.scss +26 -0
  37. package/src/lib/components/oc-log/oc-log.component.html +18 -0
  38. package/src/lib/components/oc-log/oc-log.component.scss +61 -0
  39. package/src/lib/components/oc-log/oc-log.component.ts +15 -0
  40. package/src/lib/components/oc-menu/oc-menu.component.html +31 -0
  41. package/src/lib/components/oc-menu/oc-menu.component.scss +101 -0
  42. package/src/lib/components/oc-menu/oc-menu.component.ts +84 -0
  43. package/src/lib/components/oc-modal/oc-modal.component.html +54 -0
  44. package/src/lib/components/oc-modal/oc-modal.component.scss +204 -0
  45. package/src/lib/components/oc-modal/oc-modal.component.ts +82 -0
  46. package/src/lib/components/oc-modal/styles/oc-modal.shui-component.scss +3 -0
  47. package/src/lib/components/oc-modal-footer/oc-modal-footer.component.html +11 -0
  48. package/src/lib/components/oc-modal-footer/oc-modal-footer.component.scss +27 -0
  49. package/src/lib/components/oc-modal-footer/oc-modal-footer.component.ts +15 -0
  50. package/src/lib/components/oc-not-found/oc-not-found.component.html +14 -0
  51. package/src/lib/components/oc-not-found/oc-not-found.component.scss +153 -0
  52. package/src/lib/components/oc-not-found/oc-not-found.component.spec.ts +23 -0
  53. package/src/lib/components/oc-not-found/oc-not-found.component.ts +12 -0
  54. package/src/lib/components/oc-pagination/oc-pagination.component.html +32 -0
  55. package/src/lib/components/oc-pagination/oc-pagination.component.scss +80 -0
  56. package/src/lib/components/oc-pagination/oc-pagination.component.ts +46 -0
  57. package/src/lib/components/oc-profile/oc-profile.component.html +17 -0
  58. package/src/lib/components/oc-profile/oc-profile.component.scss +80 -0
  59. package/src/lib/components/oc-profile/oc-profile.component.ts +38 -0
  60. package/src/lib/components/oc-step/oc-step.component.html +32 -0
  61. package/src/lib/components/oc-step/oc-step.component.scss +106 -0
  62. package/src/lib/components/oc-step/oc-step.component.ts +39 -0
  63. package/src/lib/components/oc-step/styles/oc-step.shui-component.scss +52 -0
  64. package/src/lib/components/oc-stepper/oc-stepper.component.html +3 -0
  65. package/src/lib/components/oc-stepper/oc-stepper.component.scss +9 -0
  66. package/src/lib/components/oc-stepper/oc-stepper.component.ts +86 -0
  67. package/src/lib/components/oc-tab/oc-tab.component.html +3 -0
  68. package/src/lib/components/oc-tab/oc-tab.component.scss +0 -0
  69. package/src/lib/components/oc-tab/oc-tab.component.ts +15 -0
  70. package/src/lib/components/oc-table/oc-table.component.html +62 -0
  71. package/src/lib/components/oc-table/oc-table.component.scss +2 -0
  72. package/src/lib/components/oc-table/oc-table.component.ts +51 -0
  73. package/src/lib/components/oc-tabs/oc-tabs.component.html +13 -0
  74. package/src/lib/components/oc-tabs/oc-tabs.component.scss +47 -0
  75. package/src/lib/components/oc-tabs/oc-tabs.component.ts +46 -0
  76. package/src/lib/components/oc-tabs/styles/oc-tabs.shui-component.scss +25 -0
  77. package/src/lib/components/oc-toast/oc-toast.component.html +46 -0
  78. package/src/lib/components/oc-toast/oc-toast.component.scss +133 -0
  79. package/src/lib/components/oc-toast/oc-toast.component.ts +15 -0
  80. package/src/lib/components/oc-toggle/oc-toggle.component.html +4 -0
  81. package/src/lib/components/oc-toggle/oc-toggle.component.scss +73 -0
  82. package/src/lib/components/oc-toggle/oc-toggle.component.spec.ts +23 -0
  83. package/src/lib/components/oc-toggle/oc-toggle.component.ts +32 -0
  84. package/src/lib/directives/oc-tooltip/oc-tooltip.directive.ts +108 -0
  85. package/src/lib/interfaces/internal/languages.ts +16 -0
  86. package/src/lib/interfaces/oc-autocomplete.ts +6 -0
  87. package/src/lib/interfaces/oc-menu.ts +10 -0
  88. package/src/lib/interfaces/oc-style-theme.ts +3 -0
  89. package/src/lib/interfaces/oc-table.ts +12 -0
  90. package/src/lib/interfaces/oc-toast.ts +8 -0
  91. package/src/lib/otimus-library.component.ts +16 -0
  92. package/src/lib/otimus-library.service.ts +9 -0
  93. package/src/lib/services/internationalization.service.ts +73 -0
  94. package/src/lib/services/oc-toast.service.ts +107 -0
  95. package/src/lib/services/style-theme.service.ts +19 -0
  96. package/src/public-api.ts +30 -0
  97. package/{styles → src/styles}/colors.scss +70 -70
  98. package/{styles → src/styles}/components/buttons/buttons.scss +225 -225
  99. package/{styles → src/styles}/components/buttons/buttons.shui.scss +61 -61
  100. package/{styles → src/styles}/components/index.scss +2 -2
  101. package/{styles → src/styles}/components/inputs/inputs.scss +249 -247
  102. package/{styles → src/styles}/components/inputs/inputs.shui.scss +212 -212
  103. package/{styles → src/styles}/components/table/table.scss +69 -69
  104. package/{styles → src/styles}/components/table/table.shui.scss +50 -50
  105. package/{styles → src/styles}/components/tooltip.scss +26 -26
  106. package/{styles → src/styles}/grid.scss +1122 -1122
  107. package/{styles → src/styles}/patterns/shui/colors.shui.scss +154 -154
  108. package/{styles → src/styles}/patterns/shui/fonts.shui.scss +65 -65
  109. package/{styles → src/styles}/patterns/shui/index.shui.scss +24 -24
  110. package/{styles → src/styles}/patterns/shui/variables.shui.scss +22 -22
  111. package/{styles → src/styles}/states.scss +5 -5
  112. package/{styles → src/styles}/styles.scss +46 -46
  113. package/{styles → src/styles}/variables.scss +47 -47
  114. package/tsconfig.lib.json +14 -0
  115. package/tsconfig.lib.prod.json +10 -0
  116. package/tsconfig.spec.json +14 -0
  117. package/esm2022/lib/components/oc-accordion/oc-accordion.component.mjs +0 -48
  118. package/esm2022/lib/components/oc-accordion-item/oc-accordion-item.component.mjs +0 -35
  119. package/esm2022/lib/components/oc-autocomplete/oc-autocomplete.component.mjs +0 -275
  120. package/esm2022/lib/components/oc-badge/oc-badge.component.mjs +0 -30
  121. package/esm2022/lib/components/oc-checkbox/oc-checkbox.component.mjs +0 -133
  122. package/esm2022/lib/components/oc-chip/oc-chip.component.mjs +0 -45
  123. package/esm2022/lib/components/oc-filter/oc-filter.component.mjs +0 -39
  124. package/esm2022/lib/components/oc-input/oc-input.component.mjs +0 -97
  125. package/esm2022/lib/components/oc-key-value/oc-key-value.component.mjs +0 -29
  126. package/esm2022/lib/components/oc-log/oc-log.component.mjs +0 -22
  127. package/esm2022/lib/components/oc-menu/oc-menu.component.mjs +0 -81
  128. package/esm2022/lib/components/oc-modal/oc-modal.component.mjs +0 -85
  129. package/esm2022/lib/components/oc-modal-footer/oc-modal-footer.component.mjs +0 -23
  130. package/esm2022/lib/components/oc-not-found/oc-not-found.component.mjs +0 -11
  131. package/esm2022/lib/components/oc-pagination/oc-pagination.component.mjs +0 -49
  132. package/esm2022/lib/components/oc-profile/oc-profile.component.mjs +0 -38
  133. package/esm2022/lib/components/oc-step/oc-step.component.mjs +0 -49
  134. package/esm2022/lib/components/oc-stepper/oc-stepper.component.mjs +0 -90
  135. package/esm2022/lib/components/oc-tab/oc-tab.component.mjs +0 -20
  136. package/esm2022/lib/components/oc-tabs/oc-tabs.component.mjs +0 -42
  137. package/esm2022/lib/components/oc-toast/oc-toast.component.mjs +0 -17
  138. package/esm2022/lib/components/oc-toggle/oc-toggle.component.mjs +0 -34
  139. package/esm2022/lib/directives/oc-tooltip/oc-tooltip.directive.mjs +0 -117
  140. package/esm2022/lib/interfaces/oc-autocomplete.mjs +0 -2
  141. package/esm2022/lib/interfaces/oc-menu.mjs +0 -2
  142. package/esm2022/lib/interfaces/oc-style-theme.mjs +0 -2
  143. package/esm2022/lib/interfaces/oc-toast.mjs +0 -2
  144. package/esm2022/lib/otimus-library.component.mjs +0 -19
  145. package/esm2022/lib/otimus-library.service.mjs +0 -14
  146. package/esm2022/lib/services/internationalization.service.mjs +0 -68
  147. package/esm2022/lib/services/oc-toast.service.mjs +0 -81
  148. package/esm2022/lib/services/style-theme.service.mjs +0 -21
  149. package/esm2022/otimus-library.mjs +0 -5
  150. package/esm2022/public-api.mjs +0 -30
  151. package/fesm2022/otimus-library.mjs +0 -1513
  152. package/fesm2022/otimus-library.mjs.map +0 -1
  153. package/index.d.ts +0 -5
  154. package/lib/components/oc-accordion/oc-accordion.component.d.ts +0 -18
  155. package/lib/components/oc-accordion-item/oc-accordion-item.component.d.ts +0 -12
  156. package/lib/components/oc-autocomplete/oc-autocomplete.component.d.ts +0 -68
  157. package/lib/components/oc-badge/oc-badge.component.d.ts +0 -11
  158. package/lib/components/oc-checkbox/oc-checkbox.component.d.ts +0 -35
  159. package/lib/components/oc-chip/oc-chip.component.d.ts +0 -14
  160. package/lib/components/oc-filter/oc-filter.component.d.ts +0 -17
  161. package/lib/components/oc-input/oc-input.component.d.ts +0 -31
  162. package/lib/components/oc-key-value/oc-key-value.component.d.ts +0 -14
  163. package/lib/components/oc-log/oc-log.component.d.ts +0 -7
  164. package/lib/components/oc-menu/oc-menu.component.d.ts +0 -20
  165. package/lib/components/oc-modal/oc-modal.component.d.ts +0 -30
  166. package/lib/components/oc-modal-footer/oc-modal-footer.component.d.ts +0 -8
  167. package/lib/components/oc-not-found/oc-not-found.component.d.ts +0 -5
  168. package/lib/components/oc-pagination/oc-pagination.component.d.ts +0 -14
  169. package/lib/components/oc-profile/oc-profile.component.d.ts +0 -12
  170. package/lib/components/oc-step/oc-step.component.d.ts +0 -22
  171. package/lib/components/oc-stepper/oc-stepper.component.d.ts +0 -24
  172. package/lib/components/oc-tab/oc-tab.component.d.ts +0 -8
  173. package/lib/components/oc-tabs/oc-tabs.component.d.ts +0 -18
  174. package/lib/components/oc-toast/oc-toast.component.d.ts +0 -8
  175. package/lib/components/oc-toggle/oc-toggle.component.d.ts +0 -12
  176. package/lib/directives/oc-tooltip/oc-tooltip.directive.d.ts +0 -20
  177. package/lib/interfaces/oc-autocomplete.d.ts +0 -5
  178. package/lib/interfaces/oc-menu.d.ts +0 -9
  179. package/lib/interfaces/oc-style-theme.d.ts +0 -2
  180. package/lib/interfaces/oc-toast.d.ts +0 -8
  181. package/lib/otimus-library.component.d.ts +0 -5
  182. package/lib/otimus-library.service.d.ts +0 -6
  183. package/lib/services/internationalization.service.d.ts +0 -17
  184. package/lib/services/oc-toast.service.d.ts +0 -14
  185. package/lib/services/style-theme.service.d.ts +0 -8
  186. package/public-api.d.ts +0 -26
  187. /package/{assets → src/assets}/fonts/siemens/SH-Bree-Headline-Oblique.woff +0 -0
  188. /package/{assets → src/assets}/fonts/siemens/SH-Bree-Headline-Oblique.woff2 +0 -0
  189. /package/{assets → src/assets}/fonts/siemens/SH-Bree-Headline-Regular.woff +0 -0
  190. /package/{assets → src/assets}/fonts/siemens/SH-Bree-Headline-Regular.woff2 +0 -0
  191. /package/{assets → src/assets}/fonts/siemens/SiemensSans-Black.woff +0 -0
  192. /package/{assets → src/assets}/fonts/siemens/SiemensSans-Black.woff2 +0 -0
  193. /package/{assets → src/assets}/fonts/siemens/SiemensSans-BlackItalic.woff +0 -0
  194. /package/{assets → src/assets}/fonts/siemens/SiemensSans-BlackItalic.woff2 +0 -0
  195. /package/{assets → src/assets}/fonts/siemens/SiemensSans-Bold.woff +0 -0
  196. /package/{assets → src/assets}/fonts/siemens/SiemensSans-Bold.woff2 +0 -0
  197. /package/{assets → src/assets}/fonts/siemens/SiemensSans-BoldItalic.woff +0 -0
  198. /package/{assets → src/assets}/fonts/siemens/SiemensSans-BoldItalic.woff2 +0 -0
  199. /package/{assets → src/assets}/fonts/siemens/SiemensSans-Italic.woff +0 -0
  200. /package/{assets → src/assets}/fonts/siemens/SiemensSans-Italic.woff2 +0 -0
  201. /package/{assets → src/assets}/fonts/siemens/SiemensSans-Roman.woff +0 -0
  202. /package/{assets → src/assets}/fonts/siemens/SiemensSans-Roman.woff2 +0 -0
@@ -1,213 +1,213 @@
1
- @use '../../variables.scss';
2
-
3
- .shui-input-box.prefix {
4
- .material-symbols-outlined{
5
- position: absolute;
6
- left: 0;
7
- font-size: 1.5rem;
8
- user-select: none;
9
- }
10
- }
11
- .shui-input-box.suffix {
12
- .material-symbols-outlined, .oc.suffix{
13
- position: absolute;
14
- right: 0;
15
- font-size: 1.5rem;
16
- user-select: none;
17
- }
18
- }
19
-
20
- .shui-input-box {
21
- position: relative;
22
- margin-top: .5rem;
23
-
24
- select * {
25
- background-color: variables.$color-shui-base-1;
26
- }
27
-
28
- label {
29
- position: absolute;
30
- left: 0;
31
- top: 0;
32
- padding: 0.5rem 0.7rem;
33
- font-size: 0.85rem;
34
- color: variables.$color-shui-ui-1;
35
- pointer-events: none;
36
- transition: 0.3s ease;
37
- border-radius: 0.5rem;
38
- white-space: nowrap
39
- }
40
-
41
-
42
- &.prefix {
43
- z-index: 5;
44
- .material-symbols-outlined,.oc.suffix{
45
- padding: .5rem .7rem;
46
- }
47
- input{
48
- padding-left: 1.75rem;
49
- }
50
- label{
51
- padding: .7rem 2.5rem;
52
- }
53
- }
54
-
55
- &.suffix {
56
- z-index: 5;
57
- .material-symbols-outlined,.oc.suffix {
58
- padding: .5rem .7rem;
59
- }
60
- input{
61
- padding-right: 1.75rem;
62
- }
63
- label{
64
- padding: .7rem 0.7rem;
65
- }
66
- }
67
-
68
- input, textarea, select {
69
- font-size: 1rem;
70
- background-color: variables.$color-shui-base-1;
71
- border: none;
72
- outline: none;
73
- padding: 1rem 0.9rem;
74
- padding-bottom: 0.2rem;
75
- width: 100%;
76
- transition: 0.3s ease;
77
- color: variables.$color-shui-ui-1;
78
- font-weight: 400;
79
- height: 41px;
80
- min-width: 100%;
81
- }
82
- textarea{
83
- height: inherit;
84
- padding-top: 20px;
85
- }
86
-
87
- input:not(:placeholder-shown) ~ label,
88
- input:focus ~ label,
89
- textarea:not(:placeholder-shown) ~ label,
90
- textarea:focus ~ label,
91
- select:valid ~ label,
92
- select:focus ~ label {
93
- transform: translateX(0.45rem);
94
- background-color: variables.$color-shui-base-1;
95
- width: 95%;
96
- padding: 1px 7px;
97
- padding-bottom: 0;
98
- font-size: 0.7rem;
99
- font-weight: 500;
100
- }
101
-
102
- input:focus ~ label,
103
- textarea:focus ~ label,
104
- select:valid ~ label,
105
- select:focus ~ label {
106
- color: variables.$color-shui-ui-8;
107
- }
108
- }
109
-
110
- .shui-input-box::before {
111
- display: block;
112
- content: '';
113
- position: absolute;
114
- bottom: 0;
115
- height: 1px;
116
- width: 100%;
117
- background-color: variables.$color-shui-ui-5;
118
-
119
- transition: 0.4s ease;
120
-
121
- width: 0;
122
- background-color: variables.$color-shui-ui-8;
123
- }
124
- .shui-input-box:focus-within::before {
125
- width: 100%;
126
- }
127
-
128
-
129
- .error {
130
- input, textarea, select {
131
- border: 1px solid variables.$color-shui-functional-red;
132
- box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
133
- }
134
-
135
- &::before {
136
- width: 0 !important;
137
- }
138
-
139
- small, label {
140
- color: variables.$color-error !important;
141
- font-weight: 600;
142
- }
143
- }
144
-
145
- .shui-input-box.small{
146
- input, textarea, select {
147
- max-height: 36px;
148
- padding-top: 1rem;
149
- }
150
-
151
- &.prefix {
152
- z-index: 5;
153
- .material-symbols-outlined{
154
- padding: .35rem .7rem;
155
- font-size: 1.25rem;
156
- color: variables.$color-shui-ui-8;
157
- }
158
- label{
159
- padding: .45rem 2.5rem;
160
- }
161
- }
162
-
163
- &.suffix {
164
- z-index: 5;
165
- .material-symbols-outlined {
166
- padding: .35rem .7rem;
167
- color: variables.$color-shui-ui-8;
168
- }
169
- label{
170
- padding: .45rem 0.7rem;
171
- }
172
- }
173
- }
174
-
175
- .shui-input-box.large {
176
- input, textarea, select {
177
- height: 46px;
178
- }
179
-
180
- label {
181
- padding: 1rem 0.7rem;
182
- }
183
-
184
- &.prefix {
185
- z-index: 5;
186
- .material-symbols-outlined{
187
- padding: 1rem .7rem;
188
- }
189
- input{
190
- padding-left: 2.5rem;
191
- }
192
- label{
193
- padding: 1.1rem 2.5rem;
194
- }
195
- }
196
-
197
- &.suffix {
198
- z-index: 5;
199
- .material-symbols-outlined {
200
- padding: .9rem .7rem;
201
- }
202
- input{
203
- padding-right: 2.5rem;
204
- }
205
- label{
206
- padding: 1.1rem 0.7rem;
207
- }
208
- }
209
- }
210
-
211
- .oc.suffix, .oc.prefix, .material-symbols-outlined {
212
- z-index: 5 !important;
1
+ @use '../../variables.scss';
2
+
3
+ .shui-input-box.prefix {
4
+ .material-symbols-outlined{
5
+ position: absolute;
6
+ left: 0;
7
+ font-size: 1.5rem;
8
+ user-select: none;
9
+ }
10
+ }
11
+ .shui-input-box.suffix {
12
+ .material-symbols-outlined, .oc.suffix{
13
+ position: absolute;
14
+ right: 0;
15
+ font-size: 1.5rem;
16
+ user-select: none;
17
+ }
18
+ }
19
+
20
+ .shui-input-box {
21
+ position: relative;
22
+ margin-top: .5rem;
23
+
24
+ select * {
25
+ background-color: variables.$color-shui-base-1;
26
+ }
27
+
28
+ label {
29
+ position: absolute;
30
+ left: 0;
31
+ top: 0;
32
+ padding: 0.5rem 0.7rem;
33
+ font-size: 0.85rem;
34
+ color: variables.$color-shui-ui-1;
35
+ pointer-events: none;
36
+ transition: 0.3s ease;
37
+ border-radius: 0.5rem;
38
+ white-space: nowrap
39
+ }
40
+
41
+
42
+ &.prefix {
43
+ z-index: 5;
44
+ .material-symbols-outlined,.oc.suffix{
45
+ padding: .5rem .7rem;
46
+ }
47
+ input{
48
+ padding-left: 1.75rem;
49
+ }
50
+ label{
51
+ padding: .7rem 2.5rem;
52
+ }
53
+ }
54
+
55
+ &.suffix {
56
+ z-index: 5;
57
+ .material-symbols-outlined,.oc.suffix {
58
+ padding: .5rem .7rem;
59
+ }
60
+ input{
61
+ padding-right: 1.75rem;
62
+ }
63
+ label{
64
+ padding: .7rem 0.7rem;
65
+ }
66
+ }
67
+
68
+ input, textarea, select {
69
+ font-size: 1rem;
70
+ background-color: variables.$color-shui-base-1;
71
+ border: none;
72
+ outline: none;
73
+ padding: 1rem 0.9rem;
74
+ padding-bottom: 0.2rem;
75
+ width: 100%;
76
+ transition: 0.3s ease;
77
+ color: variables.$color-shui-ui-1;
78
+ font-weight: 400;
79
+ height: 41px;
80
+ min-width: 100%;
81
+ }
82
+ textarea{
83
+ height: inherit;
84
+ padding-top: 20px;
85
+ }
86
+
87
+ input:not(:placeholder-shown) ~ label,
88
+ input:focus ~ label,
89
+ textarea:not(:placeholder-shown) ~ label,
90
+ textarea:focus ~ label,
91
+ select:valid ~ label,
92
+ select:focus ~ label {
93
+ transform: translateX(0.45rem);
94
+ background-color: variables.$color-shui-base-1;
95
+ width: 95%;
96
+ padding: 1px 7px;
97
+ padding-bottom: 0;
98
+ font-size: 0.7rem;
99
+ font-weight: 500;
100
+ }
101
+
102
+ input:focus ~ label,
103
+ textarea:focus ~ label,
104
+ select:valid ~ label,
105
+ select:focus ~ label {
106
+ color: variables.$color-shui-ui-8;
107
+ }
108
+ }
109
+
110
+ .shui-input-box::before {
111
+ display: block;
112
+ content: '';
113
+ position: absolute;
114
+ bottom: 0;
115
+ height: 1px;
116
+ width: 100%;
117
+ background-color: variables.$color-shui-ui-5;
118
+
119
+ transition: 0.4s ease;
120
+
121
+ width: 0;
122
+ background-color: variables.$color-shui-ui-8;
123
+ }
124
+ .shui-input-box:focus-within::before {
125
+ width: 100%;
126
+ }
127
+
128
+
129
+ .error {
130
+ input, textarea, select {
131
+ border: 1px solid variables.$color-shui-functional-red;
132
+ box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
133
+ }
134
+
135
+ &::before {
136
+ width: 0 !important;
137
+ }
138
+
139
+ small, label {
140
+ color: variables.$color-error !important;
141
+ font-weight: 600;
142
+ }
143
+ }
144
+
145
+ .shui-input-box.small{
146
+ input, textarea, select {
147
+ max-height: 36px;
148
+ padding-top: 1rem;
149
+ }
150
+
151
+ &.prefix {
152
+ z-index: 5;
153
+ .material-symbols-outlined{
154
+ padding: .35rem .7rem;
155
+ font-size: 1.25rem;
156
+ color: variables.$color-shui-ui-8;
157
+ }
158
+ label{
159
+ padding: .45rem 2.5rem;
160
+ }
161
+ }
162
+
163
+ &.suffix {
164
+ z-index: 5;
165
+ .material-symbols-outlined {
166
+ padding: .35rem .7rem;
167
+ color: variables.$color-shui-ui-8;
168
+ }
169
+ label{
170
+ padding: .45rem 0.7rem;
171
+ }
172
+ }
173
+ }
174
+
175
+ .shui-input-box.large {
176
+ input, textarea, select {
177
+ height: 46px;
178
+ }
179
+
180
+ label {
181
+ padding: 1rem 0.7rem;
182
+ }
183
+
184
+ &.prefix {
185
+ z-index: 5;
186
+ .material-symbols-outlined{
187
+ padding: 1rem .7rem;
188
+ }
189
+ input{
190
+ padding-left: 2.5rem;
191
+ }
192
+ label{
193
+ padding: 1.1rem 2.5rem;
194
+ }
195
+ }
196
+
197
+ &.suffix {
198
+ z-index: 5;
199
+ .material-symbols-outlined {
200
+ padding: .9rem .7rem;
201
+ }
202
+ input{
203
+ padding-right: 2.5rem;
204
+ }
205
+ label{
206
+ padding: 1.1rem 0.7rem;
207
+ }
208
+ }
209
+ }
210
+
211
+ .oc.suffix, .oc.prefix, .material-symbols-outlined {
212
+ z-index: 5 !important;
213
213
  }
@@ -1,70 +1,70 @@
1
- @use '../../variables.scss';
2
-
3
- .oc.table {
4
- width: 100%;
5
- border-collapse: collapse;
6
- margin: 20px 0;
7
- font-size: 1em;
8
- font-family: 'Arial', sans-serif;
9
-
10
- thead {
11
- min-height: 50px ;
12
- height: 50px;
13
- }
14
-
15
- tr {
16
- background-color: white;
17
- transition: 0.1s ease;
18
- // border: 1px solid variables.$color-gray-6;
19
- border-top: 0;
20
- border-bottom: 0;
21
- }
22
- }
23
-
24
- .oc.table th, .oc.table td {
25
- padding: 13px 15px;
26
- text-align: left;
27
- }
28
-
29
- .oc.table th {
30
- background-color: variables.$color-gray-6;
31
- color: variables.$color-brand-p-1;
32
- font-weight: 600;
33
- }
34
-
35
- .oc.table.striped tr:nth-child(even) {
36
- background-color: rgba(variables.$color-gray-6, 0.5);
37
- }
38
-
39
- .oc.table td {
40
- border-bottom: 1px solid variables.$color-gray-5;
41
- }
42
-
43
- .oc.table th:first-child, .oc.table td:first-child {
44
- border-top-left-radius: 10px;
45
- }
46
-
47
- .oc.table th:last-child, .oc.table td:last-child {
48
- border-top-right-radius: 10px;
49
- }
50
-
51
- .oc.table th:first-child, .oc.table td:first-child {
52
- border-bottom-left-radius: 10px;
53
- }
54
-
55
- .oc.table th:last-child, .oc.table td:last-child {
56
- border-bottom-right-radius: 10px;
57
- }
58
-
59
- .oc.table tr:hover {
60
- background-color: #F5F5F5 !important;
61
- }
62
-
63
-
64
- .button-row {
65
- display: flex;
66
- justify-content: flex-end;
67
- gap: .75rem;
68
- }
69
-
1
+ @use '../../variables.scss';
2
+
3
+ .oc.table {
4
+ width: 100%;
5
+ border-collapse: collapse;
6
+ margin: 20px 0;
7
+ font-size: 1em;
8
+ font-family: 'Arial', sans-serif;
9
+
10
+ thead {
11
+ min-height: 50px ;
12
+ height: 50px;
13
+ }
14
+
15
+ tr {
16
+ background-color: white;
17
+ transition: 0.1s ease;
18
+ // border: 1px solid variables.$color-gray-6;
19
+ border-top: 0;
20
+ border-bottom: 0;
21
+ }
22
+ }
23
+
24
+ .oc.table th, .oc.table td {
25
+ padding: 13px 15px;
26
+ text-align: left;
27
+ }
28
+
29
+ .oc.table th {
30
+ background-color: variables.$color-gray-6;
31
+ color: variables.$color-brand-p-1;
32
+ font-weight: 600;
33
+ }
34
+
35
+ .oc.table.striped tr:nth-child(even) {
36
+ background-color: rgba(variables.$color-gray-6, 0.5);
37
+ }
38
+
39
+ .oc.table td {
40
+ border-bottom: 1px solid variables.$color-gray-5;
41
+ }
42
+
43
+ .oc.table th:first-child, .oc.table td:first-child {
44
+ border-top-left-radius: 10px;
45
+ }
46
+
47
+ .oc.table th:last-child, .oc.table td:last-child {
48
+ border-top-right-radius: 10px;
49
+ }
50
+
51
+ .oc.table th:first-child, .oc.table td:first-child {
52
+ border-bottom-left-radius: 10px;
53
+ }
54
+
55
+ .oc.table th:last-child, .oc.table td:last-child {
56
+ border-bottom-right-radius: 10px;
57
+ }
58
+
59
+ .oc.table tr:hover {
60
+ background-color: #F5F5F5 !important;
61
+ }
62
+
63
+
64
+ .button-row {
65
+ display: flex;
66
+ justify-content: flex-end;
67
+ gap: .75rem;
68
+ }
69
+
70
70
  @import './table.shui.scss';
@@ -1,50 +1,50 @@
1
- @use '../../variables.scss';
2
-
3
- .shui .oc.table,
4
- .shui.oc.table {
5
- width: 100%;
6
- border-collapse: collapse;
7
- margin: 20px 0;
8
- font-size: 1em;
9
- font-family: 'Arial', sans-serif;
10
-
11
- thead {
12
- min-height: 50px;
13
- height: 50px;
14
- }
15
-
16
- tr {
17
- background-color: white;
18
- transition: 0.1s ease;
19
- border: none;
20
- border-top: 0;
21
- border-bottom: 0;
22
-
23
- &:hover {
24
- background-color: #F5F5F5 !important;
25
- }
26
-
27
- }
28
-
29
- th, td {
30
- padding: 15px;
31
- text-align: left;
32
- }
33
-
34
- th {
35
- background-color: transparent;
36
- border-bottom: 1px solid rgba(variables.$color-shui-ui-5, 0.75);
37
- color: variables.$color-shui-ui-1;
38
- font-weight: 600;
39
- padding: 12px 15px;
40
- }
41
-
42
- td {
43
- border-bottom: 1px solid rgba(variables.$color-shui-ui-6, 0.5);
44
- font-size: 0.9rem;
45
- }
46
-
47
- &.striped tr:nth-child(even) {
48
- background-color: white;
49
- }
50
- }
1
+ @use '../../variables.scss';
2
+
3
+ .shui .oc.table,
4
+ .shui.oc.table {
5
+ width: 100%;
6
+ border-collapse: collapse;
7
+ margin: 20px 0;
8
+ font-size: 1em;
9
+ font-family: 'Arial', sans-serif;
10
+
11
+ thead {
12
+ min-height: 50px;
13
+ height: 50px;
14
+ }
15
+
16
+ tr {
17
+ background-color: white;
18
+ transition: 0.1s ease;
19
+ border: none;
20
+ border-top: 0;
21
+ border-bottom: 0;
22
+
23
+ &:hover {
24
+ background-color: #F5F5F5 !important;
25
+ }
26
+
27
+ }
28
+
29
+ th, td {
30
+ padding: 15px;
31
+ text-align: left;
32
+ }
33
+
34
+ th {
35
+ background-color: transparent;
36
+ border-bottom: 1px solid rgba(variables.$color-shui-ui-5, 0.75);
37
+ color: variables.$color-shui-ui-1;
38
+ font-weight: 600;
39
+ padding: 12px 15px;
40
+ }
41
+
42
+ td {
43
+ border-bottom: 1px solid rgba(variables.$color-shui-ui-6, 0.5);
44
+ font-size: 0.9rem;
45
+ }
46
+
47
+ &.striped tr:nth-child(even) {
48
+ background-color: white;
49
+ }
50
+ }