cortex-react-ui 0.1.106 → 0.1.108

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 (82) hide show
  1. package/README.md +46 -46
  2. package/lib/cjs/index.js +1 -1
  3. package/lib/cjs/index.js.map +1 -1
  4. package/lib/cjs/types/Button/Button.d.ts +11 -11
  5. package/lib/cjs/types/Button/index.d.ts +1 -1
  6. package/lib/cjs/types/DatePicker/DatePicker.d.ts +7 -7
  7. package/lib/cjs/types/DatePicker/index.d.ts +1 -1
  8. package/lib/cjs/types/Dialog/ConfirmDialog.d.ts +11 -11
  9. package/lib/cjs/types/Dialog/Dialog.d.ts +12 -12
  10. package/lib/cjs/types/Dialog/DialogActions.d.ts +7 -7
  11. package/lib/cjs/types/Dialog/DialogContent.d.ts +7 -7
  12. package/lib/cjs/types/Dialog/DialogFooter.d.ts +7 -7
  13. package/lib/cjs/types/Dialog/DialogHeader.d.ts +7 -7
  14. package/lib/cjs/types/Dialog/DialogTitle.d.ts +9 -9
  15. package/lib/cjs/types/Dialog/ErrorDialog.d.ts +10 -10
  16. package/lib/cjs/types/Dialog/index.d.ts +8 -8
  17. package/lib/cjs/types/DomContainer/DomContainer.d.ts +7 -7
  18. package/lib/cjs/types/DomContainer/index.d.ts +1 -1
  19. package/lib/cjs/types/Icons/ChevronDownIcon.d.ts +6 -6
  20. package/lib/cjs/types/Icons/ChevronRightIcon.d.ts +6 -6
  21. package/lib/cjs/types/Icons/CrossIcon.d.ts +6 -6
  22. package/lib/cjs/types/Icons/index.d.ts +3 -3
  23. package/lib/cjs/types/Input/Input.d.ts +7 -7
  24. package/lib/cjs/types/Input/index.d.ts +1 -1
  25. package/lib/cjs/types/Menu/ContextMenu.d.ts +13 -13
  26. package/lib/cjs/types/Menu/Divider.d.ts +6 -6
  27. package/lib/cjs/types/Menu/Menu.d.ts +9 -9
  28. package/lib/cjs/types/Menu/MenuGroup.d.ts +8 -8
  29. package/lib/cjs/types/Menu/MenuItem.d.ts +13 -13
  30. package/lib/cjs/types/Menu/PopupMenu.d.ts +16 -16
  31. package/lib/cjs/types/Menu/index.d.ts +6 -6
  32. package/lib/cjs/types/Popper/Popper.d.ts +36 -36
  33. package/lib/cjs/types/Popper/index.d.ts +1 -1
  34. package/lib/cjs/types/Select/Select.d.ts +6 -6
  35. package/lib/cjs/types/Select/index.d.ts +1 -1
  36. package/lib/cjs/types/Selected/Selected.d.ts +8 -0
  37. package/lib/cjs/types/Selected/index.d.ts +1 -0
  38. package/lib/cjs/types/Spinner/Spinner.d.ts +7 -7
  39. package/lib/cjs/types/Spinner/index.d.ts +1 -1
  40. package/lib/cjs/types/TagInput/TagInput.d.ts +12 -12
  41. package/lib/cjs/types/TagInput/TagItem.d.ts +9 -9
  42. package/lib/cjs/types/TagInput/TagSearchInput.d.ts +9 -9
  43. package/lib/cjs/types/TagInput/TagSuggestion.d.ts +13 -13
  44. package/lib/cjs/types/TagInput/TagSuggestionGroup.d.ts +8 -8
  45. package/lib/cjs/types/TagInput/TagSuggestionItem.d.ts +8 -8
  46. package/lib/cjs/types/TagInput/index.d.ts +1 -1
  47. package/lib/cjs/types/TagInput/types.d.ts +14 -14
  48. package/lib/cjs/types/TextField/TextField.d.ts +6 -6
  49. package/lib/cjs/types/TextField/TextFieldInput.d.ts +10 -10
  50. package/lib/cjs/types/TextField/index.d.ts +1 -1
  51. package/lib/cjs/types/ToggleButton/ToggleButton.d.ts +11 -11
  52. package/lib/cjs/types/ToggleButton/index.d.ts +1 -1
  53. package/lib/cjs/types/Tooltip/Tooltip.d.ts +12 -12
  54. package/lib/cjs/types/Tooltip/index.d.ts +1 -1
  55. package/lib/cjs/types/Transition/CSSTransition.d.ts +17 -17
  56. package/lib/cjs/types/Transition/Fade.d.ts +13 -13
  57. package/lib/cjs/types/index.d.ts +10 -10
  58. package/lib/cjs/types/utils/classNames.d.ts +1 -1
  59. package/lib/cjs/types/utils/setRef.d.ts +1 -1
  60. package/lib/cjs/types/utils/useClickOutside.d.ts +2 -2
  61. package/lib/cjs/types/utils/useElement.d.ts +2 -2
  62. package/lib/cjs/types/utils/useForkRef.d.ts +2 -2
  63. package/lib/index.d.ts +189 -189
  64. package/lib/styles/Button/index.scss +147 -147
  65. package/lib/styles/Dialog/index.scss +237 -237
  66. package/lib/styles/Icons/index.scss +9 -9
  67. package/lib/styles/Input/index.scss +69 -69
  68. package/lib/styles/Menu/index.scss +129 -129
  69. package/lib/styles/Popper/index.scss +23 -23
  70. package/lib/styles/Select/index.scss +13 -13
  71. package/lib/styles/Selected/index.scss +69 -0
  72. package/lib/styles/Spinner/index.scss +43 -43
  73. package/lib/styles/TagInput/index.scss +141 -141
  74. package/lib/styles/TextField/index.scss +22 -22
  75. package/lib/styles/ToggleButton/index.scss +60 -60
  76. package/lib/styles/Tooltip/index.scss +24 -24
  77. package/lib/styles/Transition/index.scss +15 -15
  78. package/lib/styles/global.scss +158 -158
  79. package/lib/styles/index.scss +42 -40
  80. package/lib/typings/typings/index.d.ts +30 -30
  81. package/lib/typings/typings/tagInput.d.ts +12 -12
  82. package/package.json +98 -98
@@ -1,129 +1,129 @@
1
- @import "../global.scss";
2
-
3
- @mixin menu($props: null, $options: null) {
4
- $internal-options: $default-options;
5
-
6
- $internal-props: (
7
- background-color: #fff,
8
- group: (
9
- color: #fff,
10
- background-color: $color-grey-dark,
11
- ),
12
- item: (
13
- color: #000,
14
- colorDisable: $color-grey,
15
- background-color: #fff,
16
- ),
17
- );
18
-
19
- $internal-props: safe-map-merge($internal-props, $props);
20
- $internal-options: safe-map-merge($internal-options, $options);
21
-
22
- .ui-menu-popper {
23
- z-index: 3000;
24
- }
25
-
26
- .ui-menu {
27
- @if showProps($internal-options) {
28
- box-shadow: 0 2px 4px -1px #0003, 0 4px 5px #00000024, 0 1px 10px #0000001f;
29
- min-width: 180px;
30
- user-select: none;
31
- margin: 0;
32
- padding: 0;
33
- z-index: 100;
34
- }
35
- @if showColors($internal-options) {
36
- background-color: get-map-deep($internal-props, "background-color");
37
- }
38
- }
39
-
40
- .ui-menuList {
41
- @if showProps($internal-options) {
42
- margin: 0;
43
- padding: 0;
44
- }
45
- }
46
-
47
- .ui-menu .ui-menu {
48
- position: absolute;
49
- top: 0;
50
- left: 92%;
51
- // opacity: 0;
52
- }
53
-
54
- .ui-menuItem {
55
- @if showProps($internal-options) {
56
- position: relative;
57
- display: block;
58
- white-space: nowrap;
59
- cursor: pointer;
60
- }
61
- @if showColors($internal-options) {
62
- background-color: get-map-deep($internal-props, "item.background-color");
63
- }
64
-
65
- &:hover:not(.ui-menuItem-disable) {
66
- background-color: #39b1d1;
67
-
68
- > .ui-menuItem-btn {
69
- color: #fff;
70
- }
71
- }
72
- }
73
-
74
- .ui-menuItem-disable {
75
- cursor: default;
76
-
77
- .ui-menuItem-btn {
78
- color: get-map-deep($internal-props, "item.colorDisable");
79
- }
80
-
81
- .ui-menuItem-icon {
82
- opacity: 0.2;
83
- }
84
- }
85
-
86
- .ui-menuItem-btn {
87
- display: flex;
88
- align-items: center;
89
- width: 100%;
90
- padding: ($spacer-xs * 3) $spacer-md;
91
- background: transparent;
92
- border: 0;
93
- font-size: 0.9em;
94
- cursor: pointer;
95
-
96
- @if showColors($internal-options) {
97
- color: get-map-deep($internal-props, "item.color");
98
- }
99
- }
100
-
101
- .ui-menuItem-icon {
102
- display: flex;
103
- align-items: center;
104
- margin-right: $spacer-sm;
105
- }
106
-
107
- .ui-menuItem-menuIcon {
108
- position: absolute;
109
- right: 5px;
110
- top: 7px;
111
- width: 16px;
112
- height: 16px;
113
- }
114
-
115
- .ui-group-title {
116
- @if showProps($internal-options) {
117
- position: relative;
118
- display: block;
119
- white-space: nowrap;
120
- padding: $spacer-sm $spacer-md;
121
- cursor: pointer;
122
- }
123
-
124
- @if showColors($internal-options) {
125
- color: get-map-deep($internal-props, "group.color");
126
- background-color: get-map-deep($internal-props, "group.background-color");
127
- }
128
- }
129
- }
1
+ @import "../global.scss";
2
+
3
+ @mixin menu($props: null, $options: null) {
4
+ $internal-options: $default-options;
5
+
6
+ $internal-props: (
7
+ background-color: #fff,
8
+ group: (
9
+ color: #fff,
10
+ background-color: $color-grey-dark,
11
+ ),
12
+ item: (
13
+ color: #000,
14
+ colorDisable: $color-grey,
15
+ background-color: #fff,
16
+ ),
17
+ );
18
+
19
+ $internal-props: safe-map-merge($internal-props, $props);
20
+ $internal-options: safe-map-merge($internal-options, $options);
21
+
22
+ .ui-menu-popper {
23
+ z-index: 3000;
24
+ }
25
+
26
+ .ui-menu {
27
+ @if showProps($internal-options) {
28
+ box-shadow: 0 2px 4px -1px #0003, 0 4px 5px #00000024, 0 1px 10px #0000001f;
29
+ min-width: 180px;
30
+ user-select: none;
31
+ margin: 0;
32
+ padding: 0;
33
+ z-index: 100;
34
+ }
35
+ @if showColors($internal-options) {
36
+ background-color: get-map-deep($internal-props, "background-color");
37
+ }
38
+ }
39
+
40
+ .ui-menuList {
41
+ @if showProps($internal-options) {
42
+ margin: 0;
43
+ padding: 0;
44
+ }
45
+ }
46
+
47
+ .ui-menu .ui-menu {
48
+ position: absolute;
49
+ top: 0;
50
+ left: 92%;
51
+ // opacity: 0;
52
+ }
53
+
54
+ .ui-menuItem {
55
+ @if showProps($internal-options) {
56
+ position: relative;
57
+ display: block;
58
+ white-space: nowrap;
59
+ cursor: pointer;
60
+ }
61
+ @if showColors($internal-options) {
62
+ background-color: get-map-deep($internal-props, "item.background-color");
63
+ }
64
+
65
+ &:hover:not(.ui-menuItem-disable) {
66
+ background-color: #39b1d1;
67
+
68
+ > .ui-menuItem-btn {
69
+ color: #fff;
70
+ }
71
+ }
72
+ }
73
+
74
+ .ui-menuItem-disable {
75
+ cursor: default;
76
+
77
+ .ui-menuItem-btn {
78
+ color: get-map-deep($internal-props, "item.colorDisable");
79
+ }
80
+
81
+ .ui-menuItem-icon {
82
+ opacity: 0.2;
83
+ }
84
+ }
85
+
86
+ .ui-menuItem-btn {
87
+ display: flex;
88
+ align-items: center;
89
+ width: 100%;
90
+ padding: ($spacer-xs * 3) $spacer-md;
91
+ background: transparent;
92
+ border: 0;
93
+ font-size: 0.9em;
94
+ cursor: pointer;
95
+
96
+ @if showColors($internal-options) {
97
+ color: get-map-deep($internal-props, "item.color");
98
+ }
99
+ }
100
+
101
+ .ui-menuItem-icon {
102
+ display: flex;
103
+ align-items: center;
104
+ margin-right: $spacer-sm;
105
+ }
106
+
107
+ .ui-menuItem-menuIcon {
108
+ position: absolute;
109
+ right: 5px;
110
+ top: 7px;
111
+ width: 16px;
112
+ height: 16px;
113
+ }
114
+
115
+ .ui-group-title {
116
+ @if showProps($internal-options) {
117
+ position: relative;
118
+ display: block;
119
+ white-space: nowrap;
120
+ padding: $spacer-sm $spacer-md;
121
+ cursor: pointer;
122
+ }
123
+
124
+ @if showColors($internal-options) {
125
+ color: get-map-deep($internal-props, "group.color");
126
+ background-color: get-map-deep($internal-props, "group.background-color");
127
+ }
128
+ }
129
+ }
@@ -1,24 +1,24 @@
1
- @import "../global.scss";
2
-
3
- @mixin popper($props: null, $options: null) {
4
- $internal-options: $default-options;
5
-
6
- $internal-props: (
7
- bgColor: #212121,
8
- fgColor: #fff,
9
- );
10
-
11
- $internal-props: safe-map-merge($internal-props, $props);
12
- $internal-options: safe-map-merge($internal-options, $options);
13
-
14
- // .ui-popper {
15
- // @if get-map-deep($internal-options, "properties") == true {
16
- // padding: 8px;
17
- // border-radius: 4px;
18
- // }
19
- // @if get-map-deep($internal-options, "colors") == true {
20
- // background-color: get-map-deep($internal-props, "bgColor");
21
- // color: get-map-deep($internal-props, "fgColor");
22
- // }
23
- // }
1
+ @import "../global.scss";
2
+
3
+ @mixin popper($props: null, $options: null) {
4
+ $internal-options: $default-options;
5
+
6
+ $internal-props: (
7
+ bgColor: #212121,
8
+ fgColor: #fff,
9
+ );
10
+
11
+ $internal-props: safe-map-merge($internal-props, $props);
12
+ $internal-options: safe-map-merge($internal-options, $options);
13
+
14
+ // .ui-popper {
15
+ // @if get-map-deep($internal-options, "properties") == true {
16
+ // padding: 8px;
17
+ // border-radius: 4px;
18
+ // }
19
+ // @if get-map-deep($internal-options, "colors") == true {
20
+ // background-color: get-map-deep($internal-props, "bgColor");
21
+ // color: get-map-deep($internal-props, "fgColor");
22
+ // }
23
+ // }
24
24
  }
@@ -1,13 +1,13 @@
1
- @import "../global.scss";
2
-
3
- @mixin select($props: null, $options: null) {
4
- $internal-options: $default-options;
5
-
6
- $internal-props: (
7
- color: blue,
8
- );
9
-
10
- $internal-props: safe-map-merge($internal-props, $props);
11
- $internal-options: safe-map-merge($internal-options, $options);
12
-
13
- }
1
+ @import "../global.scss";
2
+
3
+ @mixin select($props: null, $options: null) {
4
+ $internal-options: $default-options;
5
+
6
+ $internal-props: (
7
+ color: blue,
8
+ );
9
+
10
+ $internal-props: safe-map-merge($internal-props, $props);
11
+ $internal-options: safe-map-merge($internal-options, $options);
12
+
13
+ }
@@ -0,0 +1,69 @@
1
+ @import "../global.scss";
2
+
3
+ .ui-selected-params {
4
+ float: left;
5
+ color: black;
6
+ margin: 15px;
7
+ border: 1px solid black;
8
+ width: 250px;
9
+ }
10
+
11
+ .ui-selected-title {
12
+ color: black;
13
+ font-weight: bold;
14
+ font-size: 15px;
15
+ margin-left: 5px;
16
+ display: table;
17
+ margin-top: -10px;
18
+ background-color: white;
19
+ padding-right: 5px;
20
+ padding-left: 5px;
21
+ }
22
+
23
+ .ui-selected-content {
24
+ color: black;
25
+ margin: 10px;
26
+ }
27
+
28
+ .ui-selected-button {
29
+ display: inline;
30
+ }
31
+
32
+ .ui-selected-btn {
33
+ width: 28%;
34
+ border-radius: 5px;
35
+ height: 30px;
36
+ margin: 5px;
37
+ margin-left: 7px;
38
+ font-weight: bold;
39
+ cursor: pointer;
40
+ background-color: #75c475;
41
+ color: white;
42
+ border: none;
43
+ }
44
+
45
+ .ui-not-selected {
46
+ width: 28%;
47
+ border-radius: 5px;
48
+ height: 30px;
49
+ margin: 5px;
50
+ margin-left: 7px;
51
+ font-weight: bold;
52
+ cursor: pointer;
53
+ background-color: black;
54
+ color: white;
55
+ border: none;
56
+ }
57
+
58
+ .ui-new-selected {
59
+ width: 28%;
60
+ border-radius: 5px;
61
+ height: 30px;
62
+ margin: 5px;
63
+ margin-left: 7px;
64
+ font-weight: bold;
65
+ cursor: pointer;
66
+ background-color: red;
67
+ color: white;
68
+ border: none;
69
+ }
@@ -1,43 +1,43 @@
1
- @import "../global.scss";
2
-
3
- @mixin spinner($props: null, $options: null) {
4
- $internal-options: $default-options;
5
-
6
- $internal-props: (
7
- color: blue,
8
- );
9
-
10
- $internal-props: safe-map-merge($internal-props, $props);
11
- $internal-options: safe-map-merge($internal-options, $options);
12
-
13
- @if get-map-deep($internal-options, "properties") == true {
14
- @keyframes ui-spinner-anim {
15
- to {
16
- transform: rotate(360deg);
17
- }
18
- }
19
- }
20
-
21
- .ui-spinner {
22
- @if get-map-deep($internal-options, "properties") == true {
23
- display: inline-block;
24
- width: 2rem;
25
- height: 2rem;
26
- vertical-align: text-bottom;
27
- border: 0.25em solid;
28
- border-right: 0.25em solid transparent;
29
- border-radius: 50%;
30
- text-indent: -9999em;
31
- }
32
-
33
- @if get-map-deep($internal-options, "colors") == true {
34
- border-left-color: get-map-deep($internal-props, "color");
35
- border-top-color: get-map-deep($internal-props, "color");
36
- border-bottom-color: get-map-deep($internal-props, "color");
37
- }
38
- }
39
-
40
- .ui-spinner-indeterminate {
41
- animation: ui-spinner-anim 0.75s linear infinite;
42
- }
43
- }
1
+ @import "../global.scss";
2
+
3
+ @mixin spinner($props: null, $options: null) {
4
+ $internal-options: $default-options;
5
+
6
+ $internal-props: (
7
+ color: blue,
8
+ );
9
+
10
+ $internal-props: safe-map-merge($internal-props, $props);
11
+ $internal-options: safe-map-merge($internal-options, $options);
12
+
13
+ @if get-map-deep($internal-options, "properties") == true {
14
+ @keyframes ui-spinner-anim {
15
+ to {
16
+ transform: rotate(360deg);
17
+ }
18
+ }
19
+ }
20
+
21
+ .ui-spinner {
22
+ @if get-map-deep($internal-options, "properties") == true {
23
+ display: inline-block;
24
+ width: 2rem;
25
+ height: 2rem;
26
+ vertical-align: text-bottom;
27
+ border: 0.25em solid;
28
+ border-right: 0.25em solid transparent;
29
+ border-radius: 50%;
30
+ text-indent: -9999em;
31
+ }
32
+
33
+ @if get-map-deep($internal-options, "colors") == true {
34
+ border-left-color: get-map-deep($internal-props, "color");
35
+ border-top-color: get-map-deep($internal-props, "color");
36
+ border-bottom-color: get-map-deep($internal-props, "color");
37
+ }
38
+ }
39
+
40
+ .ui-spinner-indeterminate {
41
+ animation: ui-spinner-anim 0.75s linear infinite;
42
+ }
43
+ }