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,141 +1,141 @@
1
- @import "../global.scss";
2
-
3
- @mixin taginput($props: null, $options: null) {
4
- $internal-options: $default-options;
5
-
6
- $internal-props: (
7
- line-height: 1.5,
8
- background-color: #fff,
9
- border-bottom: 1px solid #444,
10
- item: (
11
- border: 1px solid #444,
12
- color: #000,
13
- remove: (
14
- color: #fff,
15
- background-color: #444
16
- )
17
- ),
18
- filter: (
19
- background-color: #fff,
20
- group: (
21
- color: #fff,
22
- background-color: #444
23
- ),
24
- item: (
25
- color: #000,
26
- background-color: #fff
27
- )
28
- )
29
- );
30
-
31
- $internal-props: safe-map-merge($internal-props, $props);
32
- $internal-options: safe-map-merge($internal-options, $options);
33
-
34
- .ui-taginput {
35
- @if showProps($internal-options) {
36
- display: block;
37
- width: 100%;
38
- padding: 0.375rem 0.75rem;
39
- font-size: 0.9375rem;
40
- line-height: get-map-deep($internal-props, "line-height");
41
- user-select: none;
42
- }
43
- @if showColors($internal-options) {
44
- background-color: get-map-deep($internal-props, "background-color");
45
- border-bottom: get-map-deep($internal-props, "border-bottom")
46
- }
47
- }
48
-
49
- .ui-taginputItem {
50
- @if showProps($internal-options) {
51
- display: inline-block;
52
- line-height: 1;
53
- text-align: center;
54
- white-space: nowrap;
55
- vertical-align: baseline;
56
- border-radius: 0.25rem;
57
- margin: 2px;
58
- }
59
- @if showColors($internal-options) {
60
- border: get-map-deep($internal-props, "item.border");
61
- color: get-map-deep($internal-props, "item.color");
62
- }
63
- }
64
-
65
- .ui-taginputItemLabel {
66
- @if showProps($internal-options) {
67
- padding: 2px;
68
- }
69
- }
70
-
71
- .ui-taginputItemRemove {
72
- @if showProps($internal-options) {
73
- appearance: none;
74
- border: 0;
75
- cursor: pointer;
76
- }
77
- @if showColors($internal-options) {
78
- background: get-map-deep($internal-props, "item.remove.background-color");
79
- color: get-map-deep($internal-props, "item.remove.color");
80
- }
81
- }
82
-
83
- .ui-taginputFilter {
84
- @if showProps($internal-options) {
85
- outline: none;
86
- border: 0;
87
- overflow: visible;
88
- padding-left: 4px;
89
- }
90
- }
91
-
92
- .ui-taginputSelect {
93
- @if showProps($internal-options) {
94
- box-shadow: 0 2px 4px -1px #0003, 0 4px 5px #00000024, 0 1px 10px #0000001f;
95
- min-width: 180px;
96
- user-select: none;
97
- }
98
- @if showColors($internal-options) {
99
- background-color: get-map-deep($internal-props, "filter.background-color");
100
- }
101
- }
102
-
103
- .ui-taginputSelectItem {
104
- @if showProps($internal-options) {
105
- display: block;
106
- white-space: nowrap;
107
- overflow: hidden;
108
- line-height: 48px;
109
- padding: 0 16px;
110
- cursor: pointer;
111
- }
112
- @if showColors($internal-options) {
113
- color: get-map-deep($internal-props, "filter.item.color");
114
- background-color: get-map-deep($internal-props, "filter.item.background-color");
115
- }
116
- }
117
-
118
- .ui-taginputSelectGroup {
119
-
120
- }
121
-
122
- .ui-taginputSelectGroupLabel {
123
- @if showProps($internal-options) {
124
- display: block;
125
- white-space: nowrap;
126
- overflow: hidden;
127
- line-height: 48px;
128
- padding: 0 16px;
129
- }
130
- @if showColors($internal-options) {
131
- background-color: get-map-deep($internal-props, "filter.group.background-color");
132
- color: get-map-deep($internal-props, "filter.group.color");
133
- }
134
- }
135
-
136
- .ui-taginputSelectGroupItems {
137
- @if showProps($internal-options) {
138
- padding-left: 10px;
139
- }
140
- }
141
- }
1
+ @import "../global.scss";
2
+
3
+ @mixin taginput($props: null, $options: null) {
4
+ $internal-options: $default-options;
5
+
6
+ $internal-props: (
7
+ line-height: 1.5,
8
+ background-color: #fff,
9
+ border-bottom: 1px solid #444,
10
+ item: (
11
+ border: 1px solid #444,
12
+ color: #000,
13
+ remove: (
14
+ color: #fff,
15
+ background-color: #444
16
+ )
17
+ ),
18
+ filter: (
19
+ background-color: #fff,
20
+ group: (
21
+ color: #fff,
22
+ background-color: #444
23
+ ),
24
+ item: (
25
+ color: #000,
26
+ background-color: #fff
27
+ )
28
+ )
29
+ );
30
+
31
+ $internal-props: safe-map-merge($internal-props, $props);
32
+ $internal-options: safe-map-merge($internal-options, $options);
33
+
34
+ .ui-taginput {
35
+ @if showProps($internal-options) {
36
+ display: block;
37
+ width: 100%;
38
+ padding: 0.375rem 0.75rem;
39
+ font-size: 0.9375rem;
40
+ line-height: get-map-deep($internal-props, "line-height");
41
+ user-select: none;
42
+ }
43
+ @if showColors($internal-options) {
44
+ background-color: get-map-deep($internal-props, "background-color");
45
+ border-bottom: get-map-deep($internal-props, "border-bottom")
46
+ }
47
+ }
48
+
49
+ .ui-taginputItem {
50
+ @if showProps($internal-options) {
51
+ display: inline-block;
52
+ line-height: 1;
53
+ text-align: center;
54
+ white-space: nowrap;
55
+ vertical-align: baseline;
56
+ border-radius: 0.25rem;
57
+ margin: 2px;
58
+ }
59
+ @if showColors($internal-options) {
60
+ border: get-map-deep($internal-props, "item.border");
61
+ color: get-map-deep($internal-props, "item.color");
62
+ }
63
+ }
64
+
65
+ .ui-taginputItemLabel {
66
+ @if showProps($internal-options) {
67
+ padding: 2px;
68
+ }
69
+ }
70
+
71
+ .ui-taginputItemRemove {
72
+ @if showProps($internal-options) {
73
+ appearance: none;
74
+ border: 0;
75
+ cursor: pointer;
76
+ }
77
+ @if showColors($internal-options) {
78
+ background: get-map-deep($internal-props, "item.remove.background-color");
79
+ color: get-map-deep($internal-props, "item.remove.color");
80
+ }
81
+ }
82
+
83
+ .ui-taginputFilter {
84
+ @if showProps($internal-options) {
85
+ outline: none;
86
+ border: 0;
87
+ overflow: visible;
88
+ padding-left: 4px;
89
+ }
90
+ }
91
+
92
+ .ui-taginputSelect {
93
+ @if showProps($internal-options) {
94
+ box-shadow: 0 2px 4px -1px #0003, 0 4px 5px #00000024, 0 1px 10px #0000001f;
95
+ min-width: 180px;
96
+ user-select: none;
97
+ }
98
+ @if showColors($internal-options) {
99
+ background-color: get-map-deep($internal-props, "filter.background-color");
100
+ }
101
+ }
102
+
103
+ .ui-taginputSelectItem {
104
+ @if showProps($internal-options) {
105
+ display: block;
106
+ white-space: nowrap;
107
+ overflow: hidden;
108
+ line-height: 48px;
109
+ padding: 0 16px;
110
+ cursor: pointer;
111
+ }
112
+ @if showColors($internal-options) {
113
+ color: get-map-deep($internal-props, "filter.item.color");
114
+ background-color: get-map-deep($internal-props, "filter.item.background-color");
115
+ }
116
+ }
117
+
118
+ .ui-taginputSelectGroup {
119
+
120
+ }
121
+
122
+ .ui-taginputSelectGroupLabel {
123
+ @if showProps($internal-options) {
124
+ display: block;
125
+ white-space: nowrap;
126
+ overflow: hidden;
127
+ line-height: 48px;
128
+ padding: 0 16px;
129
+ }
130
+ @if showColors($internal-options) {
131
+ background-color: get-map-deep($internal-props, "filter.group.background-color");
132
+ color: get-map-deep($internal-props, "filter.group.color");
133
+ }
134
+ }
135
+
136
+ .ui-taginputSelectGroupItems {
137
+ @if showProps($internal-options) {
138
+ padding-left: 10px;
139
+ }
140
+ }
141
+ }
@@ -1,22 +1,22 @@
1
- @import "../global.scss";
2
-
3
- @mixin textfield($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
- .ui-textfield-input {
14
- border: none;
15
- background: none;
16
- appearance: none;
17
-
18
- &:focus {
19
- outline: none;
20
- }
21
- }
22
- }
1
+ @import "../global.scss";
2
+
3
+ @mixin textfield($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
+ .ui-textfield-input {
14
+ border: none;
15
+ background: none;
16
+ appearance: none;
17
+
18
+ &:focus {
19
+ outline: none;
20
+ }
21
+ }
22
+ }
@@ -1,60 +1,60 @@
1
- @import "../global.scss";
2
-
3
- @mixin toggleButton($props: null, $options: null) {
4
- $internal-options: $default-options;
5
-
6
- $internal-props: ();
7
-
8
- $internal-props: safe-map-merge($internal-props, $props);
9
- $internal-options: safe-map-merge($internal-options, $options);
10
-
11
- .ui-toggleBtn {
12
- background: none;
13
- appearance: none;
14
- border: 1px solid $color-grey;
15
- border-radius: $border-radius-xs;
16
- font-family: $font-family;
17
- font-size: $font-size-md;
18
- color: $color-grey-darker;
19
- padding: $spacer-sm;
20
- cursor: pointer;
21
- transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
22
- color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
23
-
24
- &:hover {
25
- text-decoration: none;
26
- background-color: rgba($color: $color-blue-grey-light, $alpha: 0.2);
27
- }
28
- }
29
-
30
- .ui-toggleBtn-selected {
31
- background-color: $color-blue;
32
- border-color: $color-blue;
33
- color: $color-white;
34
-
35
- &:hover {
36
- text-decoration: none;
37
- background-color: rgba($color: $color-blue, $alpha: 0.8);
38
- }
39
- }
40
-
41
- .ui-toggleBtn-size-xs {
42
- font-size: $font-size-xs;
43
- }
44
-
45
- .ui-toggleBtn-size-sm {
46
- font-size: $font-size-sm;
47
- }
48
-
49
- .ui-toggleBtn-size-md {
50
- font-size: $font-size-md;
51
- }
52
-
53
- .ui-toggleBtn-size-lg {
54
- font-size: $font-size-lg;
55
- }
56
-
57
- .ui-toggleBtn-size-xl {
58
- font-size: $font-size-xl;
59
- }
60
- }
1
+ @import "../global.scss";
2
+
3
+ @mixin toggleButton($props: null, $options: null) {
4
+ $internal-options: $default-options;
5
+
6
+ $internal-props: ();
7
+
8
+ $internal-props: safe-map-merge($internal-props, $props);
9
+ $internal-options: safe-map-merge($internal-options, $options);
10
+
11
+ .ui-toggleBtn {
12
+ background: none;
13
+ appearance: none;
14
+ border: 1px solid $color-grey;
15
+ border-radius: $border-radius-xs;
16
+ font-family: $font-family;
17
+ font-size: $font-size-md;
18
+ color: $color-grey-darker;
19
+ padding: $spacer-sm;
20
+ cursor: pointer;
21
+ transition: background-color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms,
22
+ color 250ms cubic-bezier(0.4, 0, 0.2, 1) 0ms;
23
+
24
+ &:hover {
25
+ text-decoration: none;
26
+ background-color: rgba($color: $color-blue-grey-light, $alpha: 0.2);
27
+ }
28
+ }
29
+
30
+ .ui-toggleBtn-selected {
31
+ background-color: $color-blue;
32
+ border-color: $color-blue;
33
+ color: $color-white;
34
+
35
+ &:hover {
36
+ text-decoration: none;
37
+ background-color: rgba($color: $color-blue, $alpha: 0.8);
38
+ }
39
+ }
40
+
41
+ .ui-toggleBtn-size-xs {
42
+ font-size: $font-size-xs;
43
+ }
44
+
45
+ .ui-toggleBtn-size-sm {
46
+ font-size: $font-size-sm;
47
+ }
48
+
49
+ .ui-toggleBtn-size-md {
50
+ font-size: $font-size-md;
51
+ }
52
+
53
+ .ui-toggleBtn-size-lg {
54
+ font-size: $font-size-lg;
55
+ }
56
+
57
+ .ui-toggleBtn-size-xl {
58
+ font-size: $font-size-xl;
59
+ }
60
+ }
@@ -1,25 +1,25 @@
1
- @import "../global.scss";
2
-
3
- @mixin tooltip($props: null, $options: null) {
4
- $internal-options: $default-options;
5
-
6
- $internal-props: (
7
- bgColor: red,
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-tooltip-content {
15
- @if get-map-deep($internal-options, "properties") == true {
16
- padding: 8px;
17
- border-radius: 4px;
18
- box-shadow: 0 3px 6px rgba(#000, 0.16), 0 3px 6px rgba(#000, 0.23);
19
- }
20
- @if get-map-deep($internal-options, "colors") == true {
21
- background-color: get-map-deep($internal-props, "bgColor");
22
- color: get-map-deep($internal-props, "fgColor");
23
- }
24
- }
1
+ @import "../global.scss";
2
+
3
+ @mixin tooltip($props: null, $options: null) {
4
+ $internal-options: $default-options;
5
+
6
+ $internal-props: (
7
+ bgColor: red,
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-tooltip-content {
15
+ @if get-map-deep($internal-options, "properties") == true {
16
+ padding: 8px;
17
+ border-radius: 4px;
18
+ box-shadow: 0 3px 6px rgba(#000, 0.16), 0 3px 6px rgba(#000, 0.23);
19
+ }
20
+ @if get-map-deep($internal-options, "colors") == true {
21
+ background-color: get-map-deep($internal-props, "bgColor");
22
+ color: get-map-deep($internal-props, "fgColor");
23
+ }
24
+ }
25
25
  }
@@ -1,15 +1,15 @@
1
- .ui-fade {
2
- opacity: 0;
3
- transition: opacity linear 160ms;
4
- }
5
-
6
- .ui-fade-entering,
7
- .ui-fade-entered {
8
- opacity: 1;
9
- }
10
-
11
-
12
- .ui-fade-exited,
13
- .ui-fade-exiting {
14
- opacity: 0;
15
- }
1
+ .ui-fade {
2
+ opacity: 0;
3
+ transition: opacity linear 160ms;
4
+ }
5
+
6
+ .ui-fade-entering,
7
+ .ui-fade-entered {
8
+ opacity: 1;
9
+ }
10
+
11
+
12
+ .ui-fade-exited,
13
+ .ui-fade-exiting {
14
+ opacity: 0;
15
+ }