otimus-library 0.2.46 → 0.2.48

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 +248 -248
  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,62 +1,62 @@
1
- @use '../../variables.scss';
2
-
3
- .shui .oc.button, .shui.oc.button {
4
- border-radius: 2rem;
5
- font-size: 1.1rem;
6
-
7
- background-color: variables.$color-shui-base-1;
8
-
9
- height: 2.5rem;
10
- padding: 0 1rem;
11
-
12
- &.icon {
13
- border-radius: 50%;
14
-
15
- .material-symbols-outlined {
16
- font-size: 1.9rem;
17
- }
18
- }
19
-
20
- &.ui-8, &.p-1, &.g-1 {
21
- background-color: variables.$color-shui-ui-8;
22
- color: variables.$color-shui-ui-7;
23
- }
24
-
25
- &.tiny {
26
- height: 1.75rem;
27
- .material-symbols-outlined {
28
- font-size: 1.4rem;
29
- }
30
- }
31
-
32
- &.small{
33
- height: 2rem;
34
- .material-symbols-outlined {
35
- font-size: 1.5rem;
36
- }
37
- }
38
-
39
- &.large{
40
- height: 3rem;
41
- }
42
-
43
- &.icon{
44
- width: 2.5rem;
45
- &.tiny {
46
- width: 1.75rem;
47
- }
48
-
49
- &.small{
50
- width: 2rem ;
51
- }
52
-
53
- &.large{
54
- width: 3rem ;
55
- }
56
- }
57
-
58
- &.error{
59
- background-color: variables.$color-shui-functional-red;
60
- color: variables.$color-shui-base-0;
61
- }
1
+ @use '../../variables.scss';
2
+
3
+ .shui .oc.button, .shui.oc.button {
4
+ border-radius: 2rem;
5
+ font-size: 1.1rem;
6
+
7
+ background-color: variables.$color-shui-base-1;
8
+
9
+ height: 2.5rem;
10
+ padding: 0 1rem;
11
+
12
+ &.icon {
13
+ border-radius: 50%;
14
+
15
+ .material-symbols-outlined {
16
+ font-size: 1.9rem;
17
+ }
18
+ }
19
+
20
+ &.ui-8, &.p-1, &.g-1 {
21
+ background-color: variables.$color-shui-ui-8;
22
+ color: variables.$color-shui-ui-7;
23
+ }
24
+
25
+ &.tiny {
26
+ height: 1.75rem;
27
+ .material-symbols-outlined {
28
+ font-size: 1.4rem;
29
+ }
30
+ }
31
+
32
+ &.small{
33
+ height: 2rem;
34
+ .material-symbols-outlined {
35
+ font-size: 1.5rem;
36
+ }
37
+ }
38
+
39
+ &.large{
40
+ height: 3rem;
41
+ }
42
+
43
+ &.icon{
44
+ width: 2.5rem;
45
+ &.tiny {
46
+ width: 1.75rem;
47
+ }
48
+
49
+ &.small{
50
+ width: 2rem ;
51
+ }
52
+
53
+ &.large{
54
+ width: 3rem ;
55
+ }
56
+ }
57
+
58
+ &.error{
59
+ background-color: variables.$color-shui-functional-red;
60
+ color: variables.$color-shui-base-0;
61
+ }
62
62
  }
@@ -1,3 +1,3 @@
1
- @import './buttons/buttons.scss';
2
- @import './tooltip.scss';
1
+ @import './buttons/buttons.scss';
2
+ @import './tooltip.scss';
3
3
  @import './table/table.scss';
@@ -1,249 +1,249 @@
1
- .oc-input-box.prefix {
2
- .material-symbols-outlined{
3
- position: absolute;
4
- left: 0;
5
- font-size: 1.5rem;
6
- user-select: none;
7
- }
8
- }
9
- .oc-input-box.suffix {
10
- .material-symbols-outlined, .oc.suffix{
11
- position: absolute;
12
- right: 0;
13
- font-size: 1.5rem;
14
- user-select: none;
15
- }
16
- .oc.suffix{
17
- position: absolute;
18
- right: 0;
19
- font-size: 1.5rem;
20
- user-select: none;
21
- }
22
- }
23
-
24
- .oc-input-box {
25
- position: relative;
26
- margin-top: .5rem;
27
-
28
- select * {
29
- background-color: variables.$color-gray-6;
30
- }
31
-
32
- label {
33
- position: absolute;
34
- left: 0;
35
- top: 0;
36
- padding: 0.5rem 0.7rem;
37
- font-size: 0.85rem;
38
- color: variables.$color-gray-3;
39
- pointer-events: none;
40
- transition: 0.3s ease;
41
- border-radius: 0.5rem;
42
- white-space: nowrap;
43
-
44
- .oc.color.error {
45
- font-weight: 700;
46
- margin-left: 0.2rem;
47
- }
48
- }
49
-
50
-
51
- &.prefix {
52
- .material-symbols-outlined,.oc.suffix{
53
- padding: .5rem .7rem;
54
- }
55
- input{
56
- padding-left: 1.75rem;
57
- }
58
- label{
59
- padding: .7rem 2.5rem;
60
- }
61
- }
62
-
63
- &.suffix {
64
- .material-symbols-outlined,.oc.suffix {
65
- padding: .5rem .7rem;
66
- }
67
- input{
68
- padding-right: 1.75rem;
69
- }
70
- label{
71
- padding: .7rem 0.7rem;
72
- }
73
- }
74
-
75
- input, textarea, select {
76
- font-size: 1rem;
77
- border-radius: 0.7rem;
78
- background-color: variables.$color-gray-6;
79
- border: 1px solid variables.$color-gray-4;
80
- outline: none;
81
- padding: 0.6rem 0.9rem;
82
- width: 100%;
83
- transition: 0.3s ease;
84
- color: variables.$color-gray-2;
85
- font-weight: 500;
86
-
87
- &:focus {
88
- border: 1px solid variables.$color-brand-g-1;
89
- box-shadow: 0px 4px 3.2px 0px rgba(0, 221, 163, 0.08);
90
- }
91
- }
92
-
93
- input:not(:placeholder-shown) ~ label,
94
- input:focus ~ label,
95
- textarea:not(:placeholder-shown) ~ label,
96
- textarea:focus ~ label,
97
- select:valid ~ label,
98
- select:focus ~ label {
99
- transform: translateY(-0.855rem) translateX(0.6rem);
100
- color: variables.$color-brand-dp-1;
101
- background-color: variables.$color-gray-6;
102
- padding: 1px 7px;
103
- font-weight: 500;
104
- }
105
-
106
- }
107
-
108
-
109
- .error {
110
- input, textarea, select {
111
- border: 1px solid variables.$color-error;
112
- box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
113
- }
114
-
115
- small, label {
116
- color: variables.$color-error !important;
117
- font-weight: 600;
118
- }
119
- }
120
-
121
- .oc-input-box.small {
122
- input, textarea, select {
123
- padding: 0.3rem 0.7rem;
124
- border-radius: 0.5rem;
125
- }
126
-
127
- &.prefix {
128
- .material-symbols-outlined{
129
- padding: .35rem .7rem;
130
- font-size: 1.25rem;
131
- }
132
- label{
133
- padding: .45rem 2.5rem;
134
- }
135
- }
136
-
137
- &.suffix {
138
- .material-symbols-outlined {
139
- padding: .35rem .7rem;
140
- }
141
- label{
142
- padding: .45rem 0.7rem;
143
- }
144
- }
145
-
146
- label {
147
- padding: 0.5rem 0.7rem;
148
- }
149
- input:focus ~ label,
150
- input:not(:placeholder-shown) ~ label,
151
- textarea:focus ~ label,
152
- textarea:not(:placeholder-shown) ~ label,
153
- select:focus ~ label,
154
- select:valid ~ label {
155
- transform: translateY(-0.99rem) translateX(0.6rem);
156
- color: variables.$color-gray-2;
157
- background-color: variables.$color-white;
158
- padding: 1px 7px;
159
- font-weight: 500;
160
- }
161
- }
162
-
163
- .oc-input-box.large {
164
- input, textarea, select {
165
- padding: 1rem;
166
- border-radius: 1rem;
167
- }
168
-
169
- label {
170
- padding: 1rem 0.7rem;
171
- }
172
-
173
- &.prefix {
174
- .material-symbols-outlined{
175
- padding: 1rem .7rem;
176
- }
177
- input{
178
- padding-left: 2.5rem;
179
- }
180
- label{
181
- padding: 1.1rem 2.5rem;
182
- }
183
- }
184
-
185
- &.suffix {
186
- .material-symbols-outlined {
187
- padding: .9rem .7rem;
188
- }
189
- input{
190
- padding-right: 2.5rem;
191
- }
192
- label{
193
- padding: 1.1rem 0.7rem;
194
- }
195
- }
196
-
197
- input:focus ~ label,
198
- input:not(:placeholder-shown) ~ label,
199
- textarea:focus ~ label,
200
- textarea:not(:placeholder-shown) ~ label,
201
- select:focus ~ label,
202
- select:valid ~ label {
203
- transform: translateY(-0.77rem) translateX(0.6rem);
204
- color: variables.$color-gray-2;
205
- background-color: variables.$color-white;
206
- padding: 1px 7px;
207
- font-weight: 500;
208
- }
209
- }
210
-
211
-
212
- // Semantic-like input:
213
-
214
- /* Estilo geral do input */
215
- .semantic-input {
216
- display: inline-block;
217
- width: 100%;
218
- padding: 10px 12px;
219
- font-size: 14px;
220
- line-height: 1.5;
221
- color: #333;
222
- background-color: #fff;
223
- border: 1px solid #ccc;
224
- border-radius: 4px;
225
- box-shadow: 0 1px 2px rgba(34, 36, 38, 0.15);
226
- transition: border-color 0.2s ease, box-shadow 0.2s ease;
227
- }
228
-
229
- /* Estilo ao passar o mouse */
230
- .semantic-input:hover {
231
- border-color: #b3b3b3;
232
- }
233
-
234
- /* Estilo ao focar */
235
- .semantic-input:focus {
236
- border-color: #85b7d9;
237
- box-shadow: 0 0 0 2px rgba(34, 36, 38, 0.15);
238
- outline: none;
239
- }
240
-
241
- /* Estilo para inputs desabilitados */
242
- .semantic-input:disabled {
243
- background-color: #f9f9f9;
244
- color: #b3b3b3;
245
- border-color: #ddd;
246
- cursor: not-allowed;
247
- }
248
-
1
+ .oc-input-box.prefix {
2
+ .material-symbols-outlined{
3
+ position: absolute;
4
+ left: 0;
5
+ font-size: 1.5rem;
6
+ user-select: none;
7
+ }
8
+ }
9
+ .oc-input-box.suffix {
10
+ .material-symbols-outlined, .oc.suffix{
11
+ position: absolute;
12
+ right: 0;
13
+ font-size: 1.5rem;
14
+ user-select: none;
15
+ }
16
+ .oc.suffix{
17
+ position: absolute;
18
+ right: 0;
19
+ font-size: 1.5rem;
20
+ user-select: none;
21
+ }
22
+ }
23
+
24
+ .oc-input-box {
25
+ position: relative;
26
+ margin-top: .5rem;
27
+
28
+ select * {
29
+ background-color: variables.$color-gray-6;
30
+ }
31
+
32
+ label {
33
+ position: absolute;
34
+ left: 0;
35
+ top: 0;
36
+ padding: 0.5rem 0.7rem;
37
+ font-size: 0.85rem;
38
+ color: variables.$color-gray-3;
39
+ pointer-events: none;
40
+ transition: 0.3s ease;
41
+ border-radius: 0.5rem;
42
+ white-space: nowrap;
43
+
44
+ .oc.color.error {
45
+ font-weight: 700;
46
+ margin-left: 0.2rem;
47
+ }
48
+ }
49
+
50
+
51
+ &.prefix {
52
+ .material-symbols-outlined,.oc.suffix{
53
+ padding: .5rem .7rem;
54
+ }
55
+ input{
56
+ padding-left: 1.75rem;
57
+ }
58
+ label{
59
+ padding: .7rem 2.5rem;
60
+ }
61
+ }
62
+
63
+ &.suffix {
64
+ .material-symbols-outlined,.oc.suffix {
65
+ padding: .5rem .7rem;
66
+ }
67
+ input{
68
+ padding-right: 1.75rem;
69
+ }
70
+ label{
71
+ padding: .7rem 0.7rem;
72
+ }
73
+ }
74
+
75
+ input, textarea, select {
76
+ font-size: 1rem;
77
+ border-radius: 0.7rem;
78
+ background-color: variables.$color-gray-6;
79
+ border: 1px solid variables.$color-gray-4;
80
+ outline: none;
81
+ padding: 0.6rem 0.9rem;
82
+ width: 100%;
83
+ transition: 0.3s ease;
84
+ color: variables.$color-gray-2;
85
+ font-weight: 500;
86
+
87
+ &:focus {
88
+ border: 1px solid variables.$color-brand-g-1;
89
+ box-shadow: 0px 4px 3.2px 0px rgba(0, 221, 163, 0.08);
90
+ }
91
+ }
92
+
93
+ input:not(:placeholder-shown) ~ label,
94
+ input:focus ~ label,
95
+ textarea:not(:placeholder-shown) ~ label,
96
+ textarea:focus ~ label,
97
+ select:valid ~ label,
98
+ select:focus ~ label {
99
+ transform: translateY(-0.855rem) translateX(0.6rem);
100
+ color: variables.$color-brand-dp-1;
101
+ background-color: variables.$color-gray-6;
102
+ padding: 1px 7px;
103
+ font-weight: 500;
104
+ }
105
+
106
+ }
107
+
108
+
109
+ .error {
110
+ input, textarea, select {
111
+ border: 1px solid variables.$color-error;
112
+ box-shadow: 0px 4px 6.1px 0px rgba(161, 0, 0, 0.08);
113
+ }
114
+
115
+ small, label {
116
+ color: variables.$color-error !important;
117
+ font-weight: 600;
118
+ }
119
+ }
120
+
121
+ .oc-input-box.small {
122
+ input, textarea, select {
123
+ padding: 0.3rem 0.7rem;
124
+ border-radius: 0.5rem;
125
+ }
126
+
127
+ &.prefix {
128
+ .material-symbols-outlined{
129
+ padding: .35rem .7rem;
130
+ font-size: 1.25rem;
131
+ }
132
+ label{
133
+ padding: .45rem 2.5rem;
134
+ }
135
+ }
136
+
137
+ &.suffix {
138
+ .material-symbols-outlined {
139
+ padding: .35rem .7rem;
140
+ }
141
+ label{
142
+ padding: .45rem 0.7rem;
143
+ }
144
+ }
145
+
146
+ label {
147
+ padding: 0.5rem 0.7rem;
148
+ }
149
+ input:focus ~ label,
150
+ input:not(:placeholder-shown) ~ label,
151
+ textarea:focus ~ label,
152
+ textarea:not(:placeholder-shown) ~ label,
153
+ select:focus ~ label,
154
+ select:valid ~ label {
155
+ transform: translateY(-0.99rem) translateX(0.6rem);
156
+ color: variables.$color-gray-2;
157
+ background-color: variables.$color-white;
158
+ padding: 1px 7px;
159
+ font-weight: 500;
160
+ }
161
+ }
162
+
163
+ .oc-input-box.large {
164
+ input, textarea, select {
165
+ padding: 1rem;
166
+ border-radius: 1rem;
167
+ }
168
+
169
+ label {
170
+ padding: 1rem 0.7rem;
171
+ }
172
+
173
+ &.prefix {
174
+ .material-symbols-outlined{
175
+ padding: 1rem .7rem;
176
+ }
177
+ input{
178
+ padding-left: 2.5rem;
179
+ }
180
+ label{
181
+ padding: 1.1rem 2.5rem;
182
+ }
183
+ }
184
+
185
+ &.suffix {
186
+ .material-symbols-outlined {
187
+ padding: .9rem .7rem;
188
+ }
189
+ input{
190
+ padding-right: 2.5rem;
191
+ }
192
+ label{
193
+ padding: 1.1rem 0.7rem;
194
+ }
195
+ }
196
+
197
+ input:focus ~ label,
198
+ input:not(:placeholder-shown) ~ label,
199
+ textarea:focus ~ label,
200
+ textarea:not(:placeholder-shown) ~ label,
201
+ select:focus ~ label,
202
+ select:valid ~ label {
203
+ transform: translateY(-0.77rem) translateX(0.6rem);
204
+ color: variables.$color-gray-2;
205
+ background-color: variables.$color-white;
206
+ padding: 1px 7px;
207
+ font-weight: 500;
208
+ }
209
+ }
210
+
211
+
212
+ // Semantic-like input:
213
+
214
+ /* Estilo geral do input */
215
+ .semantic-input {
216
+ display: inline-block;
217
+ width: 100%;
218
+ padding: 10px 12px;
219
+ font-size: 14px;
220
+ line-height: 1.5;
221
+ color: #333;
222
+ background-color: #fff;
223
+ border: 1px solid #ccc;
224
+ border-radius: 4px;
225
+ box-shadow: 0 1px 2px rgba(34, 36, 38, 0.15);
226
+ transition: border-color 0.2s ease, box-shadow 0.2s ease;
227
+ }
228
+
229
+ /* Estilo ao passar o mouse */
230
+ .semantic-input:hover {
231
+ border-color: #b3b3b3;
232
+ }
233
+
234
+ /* Estilo ao focar */
235
+ .semantic-input:focus {
236
+ border-color: #85b7d9;
237
+ box-shadow: 0 0 0 2px rgba(34, 36, 38, 0.15);
238
+ outline: none;
239
+ }
240
+
241
+ /* Estilo para inputs desabilitados */
242
+ .semantic-input:disabled {
243
+ background-color: #f9f9f9;
244
+ color: #b3b3b3;
245
+ border-color: #ddd;
246
+ cursor: not-allowed;
247
+ }
248
+
249
249
  @import './inputs.shui.scss';