@joster-dev/chaos-control 0.1.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 (54) hide show
  1. package/README.md +86 -0
  2. package/esm2022/joster-dev-chaos-control.mjs +5 -0
  3. package/esm2022/lib/chaos-control.module.mjs +67 -0
  4. package/esm2022/lib/chaos-control.service.mjs +14 -0
  5. package/esm2022/lib/components/choice/choice.component.mjs +52 -0
  6. package/esm2022/lib/components/color/color.component.mjs +77 -0
  7. package/esm2022/lib/components/file/file.component.mjs +131 -0
  8. package/esm2022/lib/components/index.mjs +8 -0
  9. package/esm2022/lib/components/number/number.component.mjs +134 -0
  10. package/esm2022/lib/components/readonly/readonly.component.mjs +14 -0
  11. package/esm2022/lib/components/select/select.component.mjs +69 -0
  12. package/esm2022/lib/components/text/text.component.mjs +162 -0
  13. package/esm2022/lib/directives/border-radius.directive.mjs +41 -0
  14. package/esm2022/lib/directives/control.directive.mjs +46 -0
  15. package/esm2022/lib/directives/index.mjs +4 -0
  16. package/esm2022/lib/directives/item.directive.mjs +115 -0
  17. package/esm2022/lib/models/index.mjs +7 -0
  18. package/esm2022/lib/models/is-item.function.mjs +8 -0
  19. package/esm2022/lib/models/is-items.function.mjs +5 -0
  20. package/esm2022/lib/models/is-number.function.mjs +5 -0
  21. package/esm2022/lib/models/is-primitive.function.mjs +7 -0
  22. package/esm2022/lib/models/item.interface.mjs +2 -0
  23. package/esm2022/lib/models/primitive.type.mjs +2 -0
  24. package/esm2022/public-api.mjs +6 -0
  25. package/fesm2022/joster-dev-chaos-control.mjs +894 -0
  26. package/fesm2022/joster-dev-chaos-control.mjs.map +1 -0
  27. package/index.d.ts +5 -0
  28. package/lib/LICENSE +9 -0
  29. package/lib/chaos-control.module.d.ts +20 -0
  30. package/lib/chaos-control.service.d.ts +6 -0
  31. package/lib/components/choice/choice.component.d.ts +15 -0
  32. package/lib/components/color/color.component.d.ts +22 -0
  33. package/lib/components/file/file.component.d.ts +31 -0
  34. package/lib/components/index.d.ts +7 -0
  35. package/lib/components/number/number.component.d.ts +33 -0
  36. package/lib/components/readonly/readonly.component.d.ts +8 -0
  37. package/lib/components/select/select.component.d.ts +23 -0
  38. package/lib/components/text/text.component.d.ts +41 -0
  39. package/lib/directives/border-radius.directive.d.ts +12 -0
  40. package/lib/directives/control.directive.d.ts +18 -0
  41. package/lib/directives/index.d.ts +3 -0
  42. package/lib/directives/item.directive.d.ts +35 -0
  43. package/lib/models/index.d.ts +6 -0
  44. package/lib/models/is-item.function.d.ts +2 -0
  45. package/lib/models/is-items.function.d.ts +2 -0
  46. package/lib/models/is-number.function.d.ts +1 -0
  47. package/lib/models/is-primitive.function.d.ts +2 -0
  48. package/lib/models/item.interface.d.ts +6 -0
  49. package/lib/models/primitive.type.d.ts +1 -0
  50. package/package.json +57 -0
  51. package/public-api.d.ts +4 -0
  52. package/src/lib/atomic.scss +87 -0
  53. package/src/lib/styles.scss +83 -0
  54. package/src/lib/variables.scss +3 -0
@@ -0,0 +1,87 @@
1
+ @import "./variables.scss";
2
+
3
+ .d-flex {
4
+ display: flex;
5
+ }
6
+
7
+ .align-items-start {
8
+ align-items: flex-start;
9
+ }
10
+
11
+ .align-items-center {
12
+ align-items: center;
13
+ }
14
+
15
+ .align-items-stretch {
16
+ align-items: stretch;
17
+ }
18
+
19
+ .justify-content-between {
20
+ justify-content: space-between;
21
+ }
22
+
23
+ .flex-wrap {
24
+ flex-wrap: wrap;
25
+ }
26
+
27
+ .flex-column {
28
+ flex-direction: column;
29
+ }
30
+
31
+ .flex-1 {
32
+ flex: 1;
33
+ }
34
+
35
+ .flex-2 {
36
+ flex: 2;
37
+ }
38
+
39
+ .flex-3 {
40
+ flex: 3;
41
+ }
42
+
43
+ .align-self-center {
44
+ align-self: center;
45
+ }
46
+
47
+ .margin-right-1 {
48
+ margin-right: $md;
49
+ }
50
+
51
+ .margin-right-2 {
52
+ margin-right: $lg;
53
+ }
54
+
55
+ .margin-left-1 {
56
+ margin-left: $md;
57
+ }
58
+
59
+ .margin-left-2 {
60
+ margin-left: $lg;
61
+ }
62
+
63
+ .border-radius-right {
64
+ border-top-right-radius: $md;
65
+ border-bottom-right-radius: $md;
66
+ }
67
+
68
+ .border-radius-left {
69
+ border-top-left-radius: $md;
70
+ border-bottom-left-radius: $md;
71
+ }
72
+
73
+ .white-space-nowrap {
74
+ white-space: nowrap;
75
+ }
76
+
77
+ .text-right {
78
+ text-align: right;
79
+ }
80
+
81
+ .text-left {
82
+ text-align: left;
83
+ }
84
+
85
+ .text-center {
86
+ text-align: center;
87
+ }
@@ -0,0 +1,83 @@
1
+ @import "./variables.scss";
2
+
3
+ label {
4
+ display: block;
5
+ padding-bottom: $md;
6
+ font-weight: bold;
7
+
8
+ &:empty {
9
+ display: none;
10
+ }
11
+
12
+ &.required:after {
13
+ content: "*";
14
+ }
15
+ }
16
+
17
+ ul {
18
+ list-style: none;
19
+ // color: red;
20
+ margin: 0;
21
+ padding: 0;
22
+
23
+ >li {
24
+ padding-top: $sm;
25
+ }
26
+ }
27
+
28
+ a:not(.jo-ignore),
29
+ button:not(.jo-ignore),
30
+ .button,
31
+ input,
32
+ textarea {
33
+ color: inherit;
34
+ background: transparent;
35
+ border-width: 0.15em;
36
+ border-style: outset;
37
+ border-color: currentColor;
38
+ padding: $md;
39
+ margin: 0;
40
+ font-size: 1em;
41
+ // transition: all 700ms ease;
42
+ line-height: 1em;
43
+
44
+ &:active,
45
+ &.active {
46
+ border-style: inset;
47
+ }
48
+
49
+ &:disabled,
50
+ &.disabled {
51
+ cursor: not-allowed;
52
+ border-style: solid;
53
+ box-shadow: none;
54
+ opacity: 0.5;
55
+ }
56
+
57
+ &.invalid {
58
+ // animation: 3s ease 0s infinite invalid-border;
59
+ }
60
+
61
+ &:focus {
62
+ // outline: 0.15em solid transparent;
63
+ // box-shadow: 0 0 0.1em 0 currentColor;
64
+ }
65
+ }
66
+
67
+ a,
68
+ button,
69
+ .button {
70
+ cursor: pointer;
71
+ }
72
+
73
+ @keyframes invalid-border {
74
+
75
+ 0%,
76
+ 100% {
77
+ border-style: inset;
78
+ }
79
+
80
+ 50% {
81
+ border-style: outset;
82
+ }
83
+ }
@@ -0,0 +1,3 @@
1
+ $sm: 0.25em;
2
+ $md: 0.5em;
3
+ $lg: 1em;