cx 26.0.6 → 26.0.9

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 (134) hide show
  1. package/build/charts/Bar.scss +29 -0
  2. package/build/charts/BarGraph.scss +29 -0
  3. package/build/charts/BubbleGraph.scss +32 -0
  4. package/build/charts/Column.scss +29 -0
  5. package/build/charts/ColumnGraph.scss +30 -0
  6. package/build/charts/Gridlines.scss +25 -0
  7. package/build/charts/Legend.scss +50 -0
  8. package/build/charts/LegendEntry.scss +29 -0
  9. package/build/charts/LineGraph.d.ts +11 -0
  10. package/build/charts/LineGraph.js +1 -0
  11. package/build/charts/LineGraph.scss +25 -0
  12. package/build/charts/Marker.scss +44 -0
  13. package/build/charts/MarkerLine.scss +20 -0
  14. package/build/charts/PieChart.scss +29 -0
  15. package/build/charts/Range.scss +20 -0
  16. package/build/charts/RangeMarker.scss +17 -0
  17. package/build/charts/ScatterGraph.scss +24 -0
  18. package/build/charts/Swimlane.scss +16 -0
  19. package/build/charts/Swimlanes.scss +16 -0
  20. package/build/charts/axis/Axis.scss +23 -0
  21. package/build/charts/axis/CategoryAxis.scss +35 -0
  22. package/build/charts/axis/NumericAxis.scss +35 -0
  23. package/build/charts/axis/TimeAxis.scss +34 -0
  24. package/build/charts/axis/index.scss +5 -0
  25. package/build/charts/axis/variables.scss +3 -0
  26. package/build/charts/index.scss +22 -0
  27. package/build/charts/palette.scss +97 -0
  28. package/build/charts/variables.scss +22 -0
  29. package/build/global.scss +14 -0
  30. package/build/index.scss +6 -0
  31. package/build/jsx-runtime.d.ts +3 -2
  32. package/build/svg/Svg.scss +28 -0
  33. package/build/svg/index.scss +9 -0
  34. package/build/ui/index.scss +2 -0
  35. package/build/ui/layout/LabelsLeftLayout.scss +47 -0
  36. package/build/ui/layout/LabelsTopLayout.scss +65 -0
  37. package/build/ui/layout/index.scss +3 -0
  38. package/build/ui/layout/variables.scss +2 -0
  39. package/build/ui/variables.scss +2 -0
  40. package/build/util/addEventListenerWithOptions.d.ts +2 -2
  41. package/build/util/call-once.scss +7 -0
  42. package/build/util/index.scss +11 -0
  43. package/build/util/scss/add-rules.scss +40 -0
  44. package/build/util/scss/calc.scss +45 -0
  45. package/build/util/scss/call-once.scss +13 -0
  46. package/build/util/scss/clockwise.scss +49 -0
  47. package/build/util/scss/colors.scss +10 -0
  48. package/build/util/scss/deep-get.scss +12 -0
  49. package/build/util/scss/deep-merge.scss +21 -0
  50. package/build/util/scss/divide.scss +3 -0
  51. package/build/util/scss/include.scss +48 -0
  52. package/build/util/scss/index.scss +9 -0
  53. package/build/variables.scss +217 -0
  54. package/build/widgets/Button.scss +119 -0
  55. package/build/widgets/Button.variables.scss +117 -0
  56. package/build/widgets/CxCredit.scss +39 -0
  57. package/build/widgets/FlexBox.scss +148 -0
  58. package/build/widgets/Heading.scss +40 -0
  59. package/build/widgets/HighlightedSearchText.scss +20 -0
  60. package/build/widgets/Icon.scss +22 -0
  61. package/build/widgets/List.scss +93 -0
  62. package/build/widgets/ProgressBar.scss +51 -0
  63. package/build/widgets/Resizer.scss +44 -0
  64. package/build/widgets/Section.scss +56 -0
  65. package/build/widgets/animations.scss +11 -0
  66. package/build/widgets/drag-drop/DragClone.scss +36 -0
  67. package/build/widgets/drag-drop/DragHandle.scss +19 -0
  68. package/build/widgets/drag-drop/DragSource.scss +27 -0
  69. package/build/widgets/drag-drop/DropZone.scss +77 -0
  70. package/build/widgets/drag-drop/index.scss +4 -0
  71. package/build/widgets/drag-drop/variables.scss +15 -0
  72. package/build/widgets/form/Calendar.scss +199 -0
  73. package/build/widgets/form/Calendar.variables.scss +64 -0
  74. package/build/widgets/form/Checkbox.scss +129 -0
  75. package/build/widgets/form/Checkbox.variables.scss +40 -0
  76. package/build/widgets/form/ColorField.scss +98 -0
  77. package/build/widgets/form/ColorPicker.scss +285 -0
  78. package/build/widgets/form/ColorPicker.variables.scss +22 -0
  79. package/build/widgets/form/DateTimeField.scss +92 -0
  80. package/build/widgets/form/DateTimePicker.scss +47 -0
  81. package/build/widgets/form/Field.scss +164 -0
  82. package/build/widgets/form/HelpText.scss +24 -0
  83. package/build/widgets/form/Label.scss +38 -0
  84. package/build/widgets/form/LookupField.scss +221 -0
  85. package/build/widgets/form/MonthField.scss +100 -0
  86. package/build/widgets/form/MonthPicker.scss +125 -0
  87. package/build/widgets/form/NumberField.scss +63 -0
  88. package/build/widgets/form/Radio.scss +123 -0
  89. package/build/widgets/form/Radio.variables.scss +46 -0
  90. package/build/widgets/form/Select.scss +101 -0
  91. package/build/widgets/form/Slider.scss +121 -0
  92. package/build/widgets/form/Switch.scss +142 -0
  93. package/build/widgets/form/TextArea.scss +45 -0
  94. package/build/widgets/form/TextField.scss +57 -0
  95. package/build/widgets/form/UploadButton.scss +49 -0
  96. package/build/widgets/form/ValidationError.scss +23 -0
  97. package/build/widgets/form/Wheel.scss +152 -0
  98. package/build/widgets/form/index.scss +24 -0
  99. package/build/widgets/form/variables.scss +355 -0
  100. package/build/widgets/grid/Grid.scss +640 -0
  101. package/build/widgets/grid/Pagination.scss +115 -0
  102. package/build/widgets/grid/TreeNode.scss +90 -0
  103. package/build/widgets/grid/index.scss +4 -0
  104. package/build/widgets/grid/variables.scss +137 -0
  105. package/build/widgets/index.scss +16 -0
  106. package/build/widgets/nav/Link.scss +20 -0
  107. package/build/widgets/nav/Menu.scss +76 -0
  108. package/build/widgets/nav/Menu.variables.scss +25 -0
  109. package/build/widgets/nav/MenuItem.d.ts +1 -0
  110. package/build/widgets/nav/MenuItem.scss +130 -0
  111. package/build/widgets/nav/Scroller.scss +148 -0
  112. package/build/widgets/nav/Tab.scss +82 -0
  113. package/build/widgets/nav/Tab.variables.scss +84 -0
  114. package/build/widgets/nav/cover.scss +22 -0
  115. package/build/widgets/nav/index.scss +6 -0
  116. package/build/widgets/nav/variables.scss +27 -0
  117. package/build/widgets/overlay/Dropdown.scss +186 -0
  118. package/build/widgets/overlay/Overlay.scss +68 -0
  119. package/build/widgets/overlay/Toast.scss +164 -0
  120. package/build/widgets/overlay/Tooltip.scss +177 -0
  121. package/build/widgets/overlay/Window.scss +129 -0
  122. package/build/widgets/overlay/Window.variables.scss +62 -0
  123. package/build/widgets/overlay/captureMouse.scss +13 -0
  124. package/build/widgets/overlay/index.scss +15 -0
  125. package/build/widgets/overlay/variables.scss +85 -0
  126. package/build/widgets/variables.scss +146 -0
  127. package/build.js +4 -0
  128. package/dist/charts.js +1 -0
  129. package/dist/manifest.js +876 -770
  130. package/package.json +4 -2
  131. package/src/charts/LineGraph.tsx +14 -0
  132. package/src/jsx-runtime.ts +8 -5
  133. package/src/util/addEventListenerWithOptions.ts +41 -41
  134. package/src/widgets/nav/MenuItem.tsx +1 -0
@@ -0,0 +1,164 @@
1
+ @use "sass:map";
2
+
3
+ @mixin cx-toast(
4
+ $name: 'toast',
5
+ $besm: $cx-besm,
6
+ $mods: $cx-toast-mods
7
+ ) {
8
+
9
+ $block: map.get($besm, block);
10
+ $element: map.get($besm, element);
11
+ $state: map.get($besm, state);
12
+ $mod: map.get($besm, mod);
13
+
14
+ .#{$block}#{$name} {
15
+ color: $cx-default-toast-color;
16
+ background-color: $cx-default-toast-background-color;
17
+ box-sizing: border-box;
18
+ position: relative;
19
+ pointer-events: all;
20
+ transition: all 0.2s ease-in-out;
21
+ box-shadow: $cx-default-toast-box-shadow;
22
+ border-style: solid;
23
+ border-width: $cx-default-toast-border-width;
24
+ border-color: $cx-default-toast-border-color;
25
+ border-radius: $cx-default-border-radius;
26
+ display: flex;
27
+ flex-direction: row;
28
+ align-items: center;
29
+
30
+ &.#{$state}pad {
31
+ padding: $cx-default-toast-padding;
32
+ }
33
+
34
+ &.#{$state}animate {
35
+ animation: cx-toast-enter-animation 0.2s;
36
+ }
37
+
38
+ &.#{$state}animate-enter {
39
+ //animation-fill-mode: forwards;
40
+ }
41
+
42
+ &.#{$state}animate-leave {
43
+ animation: cx-toast-leave-animation 0.2s;
44
+ animation-fill-mode: forwards;
45
+ }
46
+
47
+ @each $modname, $config in $mods {
48
+ &.#{$mod}#{$modname} {
49
+ @include cx-add-state-rules($config, default);
50
+
51
+ &[disabled], &.#{$state}disabled {
52
+ @include cx-add-state-rules($config, disabled);
53
+ }
54
+
55
+ &:hover {
56
+ @include cx-add-state-rules($config, hover);
57
+ }
58
+
59
+ &:focus {
60
+ @include cx-add-state-rules($config, focus);
61
+ }
62
+
63
+ &:active, &.#{$state}pressed {
64
+ @include cx-add-state-rules($config, active);
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+
71
+ @keyframes cx-toast-enter-animation {
72
+ from {
73
+ transform: scale(0);
74
+ opacity: 0;
75
+ }
76
+
77
+ to {
78
+ transform: scale(1);
79
+ opacity: 1;
80
+ }
81
+ }
82
+
83
+ @keyframes cx-toast-leave-animation {
84
+ to {
85
+ transform: scale(0);
86
+ opacity: 0;
87
+ }
88
+
89
+ from {
90
+ transform: scale(1);
91
+ opacity: 1;
92
+ }
93
+ }
94
+
95
+ @mixin cx-toaster(
96
+ $name: 'toaster',
97
+ $besm: $cx-besm
98
+ ) {
99
+
100
+ $block: map.get($besm, block);
101
+ $element: map.get($besm, element);
102
+ $state: map.get($besm, state);
103
+
104
+ .#{$block}#{$name} {
105
+ position: fixed;
106
+ left: 0;
107
+ top: 0;
108
+ right: 0;
109
+ bottom: 0;
110
+ pointer-events: none;
111
+ display: flex;
112
+ flex-direction: column;
113
+ align-items: center;
114
+ overflow: hidden;
115
+ z-index: 1000000;
116
+
117
+ &.#{$state}placement-right {
118
+ justify-content: center;
119
+ align-items: flex-end;
120
+ }
121
+
122
+ &.#{$state}placement-left {
123
+ justify-content: center;
124
+ align-items: flex-start;
125
+ }
126
+
127
+ &.#{$state}placement-bottom {
128
+ flex-direction: column-reverse;
129
+ }
130
+
131
+ &.#{$state}placement-top-left {
132
+ align-items: flex-start;
133
+ }
134
+
135
+ &.#{$state}placement-top-right {
136
+ align-items: flex-end;
137
+ }
138
+
139
+ &.#{$state}placement-bottom-left {
140
+ justify-content: flex-end;
141
+ align-items: flex-start;
142
+ }
143
+
144
+ &.#{$state}placement-bottom-right {
145
+ justify-content: flex-end;
146
+ align-items: flex-end;
147
+ }
148
+ }
149
+
150
+ .#{$element}#{$name}-item {
151
+ margin: 0;
152
+ height: 0;
153
+ transition: all 0.2s ease-in-out;
154
+
155
+ &.#{$state}live {
156
+ margin: 10px;
157
+ }
158
+ }
159
+ }
160
+
161
+ @if (cx-should-include('cx/widgets/Toast')) {
162
+ @include cx-toast();
163
+ @include cx-toaster();
164
+ }
@@ -0,0 +1,177 @@
1
+ @use "sass:map";
2
+
3
+ @keyframes cx-tooltip-enter-animation {
4
+ from {
5
+ transform: scale(0.9);
6
+ opacity: 0;
7
+ }
8
+
9
+ to {
10
+ transform: scale(1);
11
+ opacity: 1;
12
+ }
13
+ }
14
+
15
+ @keyframes cx-tooltip-leave-animation {
16
+ from {
17
+ transform: scale(1);
18
+ opacity: 1;
19
+ }
20
+
21
+ to {
22
+ transform: scale(0.9);
23
+ opacity: 0;
24
+ }
25
+ }
26
+
27
+ @mixin cx-tooltip(
28
+ $name: 'tooltip',
29
+ $besm: $cx-besm
30
+ ) {
31
+ $block: map.get($besm, block);
32
+ $element: map.get($besm, element);
33
+ $state: map.get($besm, state);
34
+ $mod: map.get($besm, mod);
35
+
36
+ .#{$block}#{$name} {
37
+ @extend %cxb-overlay;
38
+ display: block;
39
+ left: -10000px;
40
+ top: -10000px;
41
+ box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.3);
42
+ background-color: $cx-tooltip-background-color;
43
+ border: $cx-tooltip-border-width solid $cx-tooltip-border-color;
44
+ color: $cx-tooltip-color;
45
+ padding: $cx-tooltip-padding;
46
+ border-radius: $cx-tooltip-border-radius;
47
+ font-size: smaller;
48
+ transition: opacity 0.2s ease-in;
49
+ max-width: 400px;
50
+ pointer-events: none;
51
+
52
+ &.#{$state}animate {
53
+ animation: cx-tooltip-enter-animation 0.2s;
54
+ }
55
+
56
+ &.#{$state}animate-leave {
57
+ animation: cx-tooltip-leave-animation 0.2s;
58
+ animation-fill-mode: forwards;
59
+ }
60
+
61
+ &.#{$state}mouse-trap {
62
+ pointer-events: auto;
63
+ }
64
+
65
+ &.#{$mod}error {
66
+ background-color: $cx-tooltip-background-color-error;
67
+ border-color: $cx-tooltip-border-color-error;
68
+ color: $cx-tooltip-color-error;
69
+
70
+ .#{$element}#{$name}-arrow-border {
71
+ color: $cx-tooltip-border-color-error;
72
+ }
73
+
74
+ .#{$element}#{$name}-arrow-fill {
75
+ color: $cx-tooltip-background-color-error;
76
+ }
77
+ }
78
+ }
79
+
80
+ .#{$element}#{$name}-title {
81
+ font-weight: bold;
82
+ font-size: 100%;
83
+ }
84
+
85
+ @include cx-dropdown-arrows($name, (
86
+ border-width: $cx-tooltip-border-width,
87
+ border-color: $cx-tooltip-border-color,
88
+ border-style: solid,
89
+ background-color: $cx-tooltip-background-color
90
+ ), $cx-tooltip-arrow-size, $besm)
91
+
92
+ //.#{$element}#{$name}-arrow-border, .#{$element}#{$name}-arrow-fill {
93
+ // border: solid transparent;
94
+ // content: " ";
95
+ // height: 0;
96
+ // width: 0;
97
+ // position: absolute;
98
+ //}
99
+ //
100
+ //.#{$element}#{$name}-arrow-border {
101
+ // color: $cx-tooltip-border-color;
102
+ // border-width: $cx-tooltip-border-width + $cx-tooltip-arrow-size;
103
+ //}
104
+ //
105
+ //.#{$element}#{$name}-arrow-fill {
106
+ // color: $cx-tooltip-background-color;
107
+ // border-width: $cx-tooltip-arrow-size;
108
+ //}
109
+ //
110
+ //.#{$state}place-right {
111
+ // .#{$element}#{$name}-arrow-fill {
112
+ // right: 100%;
113
+ // top: 50%;
114
+ // border-right-color: currentColor;
115
+ // margin-top: -$cx-tooltip-arrow-size;
116
+ // }
117
+ //
118
+ // .#{$element}#{$name}-arrow-border {
119
+ // right: 100%;
120
+ // top: 50%;
121
+ // border-right-color: currentColor;
122
+ // margin-top: -$cx-tooltip-border-width - $cx-tooltip-arrow-size;
123
+ // }
124
+ //}
125
+ //
126
+ //.#{$state}place-left {
127
+ // .#{$element}#{$name}-arrow-fill {
128
+ // left: 100%;
129
+ // top: 50%;
130
+ // border-left-color: currentColor;
131
+ // margin-top: -$cx-tooltip-arrow-size;
132
+ // }
133
+ //
134
+ // .#{$element}#{$name}-arrow-border {
135
+ // left: 100%;
136
+ // top: 50%;
137
+ // border-left-color: currentColor;
138
+ // margin-top: -$cx-tooltip-border-width - $cx-tooltip-arrow-size;
139
+ // }
140
+ //}
141
+ //
142
+ //.#{$state}place-up {
143
+ // .#{$element}#{$name}-arrow-fill {
144
+ // left: 50%;
145
+ // top: 100%;
146
+ // border-top-color: currentColor;
147
+ // margin-left: -$cx-tooltip-arrow-size;
148
+ // }
149
+ //
150
+ // .#{$element}#{$name}-arrow-border {
151
+ // left: 50%;
152
+ // top: 100%;
153
+ // border-top-color: currentColor;
154
+ // margin-left: -$cx-tooltip-border-width - $cx-tooltip-arrow-size;
155
+ // }
156
+ //}
157
+ //
158
+ //.#{$state}place-down {
159
+ // .#{$element}#{$name}-arrow-fill {
160
+ // left: 50%;
161
+ // bottom: 100%;
162
+ // border-bottom-color: currentColor;
163
+ // margin-left: -$cx-tooltip-arrow-size;
164
+ // }
165
+ //
166
+ // .#{$element}#{$name}-arrow-border {
167
+ // left: 50%;
168
+ // bottom: 100%;
169
+ // border-bottom-color: currentColor;
170
+ // margin-left: -$cx-tooltip-border-width - $cx-tooltip-arrow-size;
171
+ // }
172
+ //}
173
+ }
174
+
175
+ @if (cx-should-include('cx/widgets/Tooltip')) {
176
+ @include cx-tooltip();
177
+ }
@@ -0,0 +1,129 @@
1
+ @use "sass:map";
2
+
3
+ @mixin cx-window(
4
+ $name: "window",
5
+ $state-style-map: $cx-window-state-style-map,
6
+ $header-state-style-map: $cx-window-header-state-style-map,
7
+ $body-state-style-map: $cx-window-body-state-style-map,
8
+ $footer-state-style-map: $cx-window-footer-state-style-map,
9
+ $mods: $cx-window-mods,
10
+ $besm: $cx-besm
11
+ ) {
12
+ $block: map.get($besm, block);
13
+ $element: map.get($besm, element);
14
+ $state: map.get($besm, state);
15
+ $mod: map.get($besm, mod);
16
+
17
+ .#{$block}#{$name} {
18
+ @extend %cxb-overlay;
19
+ display: flex;
20
+ flex-direction: column;
21
+
22
+ @include cx-add-state-rules($state-style-map, default);
23
+
24
+ &.#{$state}resizable {
25
+ &.#{$state}active {
26
+ @include cx-add-state-rules($state-style-map, resizable);
27
+ }
28
+ }
29
+
30
+ &.#{$mod}alert {
31
+ min-width: 300px;
32
+ }
33
+ }
34
+
35
+ .#{$element}#{$name}-header {
36
+ position: relative; //put on top of modal backdrop
37
+ box-sizing: border-box;
38
+ display: flex;
39
+ align-items: center;
40
+ flex: none;
41
+ touch-action: none;
42
+
43
+ @include cx-add-state-rules($header-state-style-map, default);
44
+
45
+ .#{$state}draggable & {
46
+ cursor: pointer;
47
+ }
48
+
49
+ .#{$state}active & {
50
+ @include cx-add-state-rules($header-state-style-map, active);
51
+ }
52
+ }
53
+
54
+ .#{$element}#{$name}-footer {
55
+ position: relative;
56
+ box-sizing: border-box;
57
+ flex: none;
58
+
59
+ @include cx-add-state-rules($footer-state-style-map, default);
60
+
61
+ //TODO: Extract common autoclear
62
+ &:after {
63
+ clear: both;
64
+ visibility: hidden;
65
+ display: block;
66
+ font-size: 0;
67
+ content: " ";
68
+ height: 0;
69
+ }
70
+
71
+ .#{$mod}alert & {
72
+ text-align: center;
73
+ }
74
+ }
75
+
76
+ .#{$element}#{$name}-body {
77
+ overflow: auto;
78
+ position: relative; //put on top of modal backdrop
79
+ box-sizing: border-box;
80
+ flex: auto;
81
+
82
+ $padding: cx-get-state-rule($body-state-style-map, default, "padding");
83
+
84
+ $noPad: cx-deep-map-merge(
85
+ $body-state-style-map,
86
+ (
87
+ default: (
88
+ padding: null,
89
+ ),
90
+ )
91
+ );
92
+
93
+ @include cx-add-state-rules($noPad, default);
94
+
95
+ &.#{$state}pad {
96
+ padding: $padding;
97
+ }
98
+
99
+ .#{$mod}alert & {
100
+ padding: 2.5rem;
101
+ text-align: center;
102
+ }
103
+ }
104
+
105
+ @each $modname, $config in $mods {
106
+ .#{$block}#{$name}.#{$mod}#{$modname} {
107
+ @include cx-add-state-rules($config, frame);
108
+
109
+ .#{$element}#{$name}-body {
110
+ @include cx-add-state-rules($config, body);
111
+ }
112
+ .#{$element}#{$name}-footer {
113
+ @include cx-add-state-rules($config, footer);
114
+ }
115
+ }
116
+ }
117
+
118
+ .#{$element}#{$name}-modal-backdrop {
119
+ @extend %cxe-overlay-modal-backdrop;
120
+ }
121
+
122
+ .#{$element}#{$name}-shadow {
123
+ @extend %cxe-overlay-shadow;
124
+ }
125
+ }
126
+
127
+ @if (cx-should-include("cx/widgets/Window")) {
128
+ @include cx-window();
129
+ }
@@ -0,0 +1,62 @@
1
+ $cx-default-window-background-color: transparent !default;
2
+ $cx-default-window-box-shadow: 0 0 5px 1px rgba(0, 0, 0, 0.29) !default;
3
+ $cx-default-window-border-radius: $cx-default-border-radius !default;
4
+
5
+ //header
6
+ $cx-default-window-header-color: null !default;
7
+ $cx-default-window-header-background-color: rgba(246, 246, 246, 0.9) !default;
8
+ $cx-default-window-header-padding: 10px 15px !default;
9
+ $cx-default-window-header-font-size: 16px !default;
10
+
11
+ //body
12
+ $cx-default-window-body-padding: $cx-default-window-header-padding !default;
13
+ $cx-default-window-body-background-color: white !default;
14
+
15
+ //footer
16
+ $cx-default-window-footer-color: null !default;
17
+ $cx-default-window-footer-background-color: rgba(246, 246, 246, 0.9) !default;
18
+ $cx-default-window-footer-padding: $cx-default-window-header-padding !default;
19
+ $cx-default-window-footer-font-size: 16px !default;
20
+
21
+ $cx-window-state-style-map: (
22
+ default: (
23
+ box-shadow: $cx-default-window-box-shadow,
24
+ background-color: $cx-default-window-background-color,
25
+ border-radius: $cx-default-window-border-radius,
26
+ ),
27
+ resizable: (
28
+ box-shadow: 0 0 20px 1px rgba(0, 0, 0, 0.29),
29
+ ),
30
+ ) !default;
31
+
32
+ $cx-window-header-state-style-map: (
33
+ default: (
34
+ color: $cx-default-window-header-color,
35
+ background: $cx-default-window-header-background-color,
36
+ padding: $cx-default-window-header-padding,
37
+ font-size: $cx-default-window-header-font-size,
38
+ ),
39
+ active: (),
40
+ ) !default;
41
+
42
+ $cx-window-footer-state-style-map: (
43
+ default: (
44
+ background: $cx-default-window-footer-background-color,
45
+ padding: $cx-default-window-footer-padding,
46
+ ),
47
+ ) !default;
48
+
49
+ $cx-window-body-state-style-map: (
50
+ default: (
51
+ background: $cx-default-window-body-background-color,
52
+ padding: $cx-default-window-body-padding,
53
+ ),
54
+ ) !default;
55
+
56
+ $cx-window-mods: (
57
+ alert: (
58
+ frame: (),
59
+ body: (),
60
+ footer: (),
61
+ ),
62
+ );
@@ -0,0 +1,13 @@
1
+
2
+ @if cx-call-once("cx/widgets/captureMouse") {
3
+
4
+ .cxb-mousecapture {
5
+ position: fixed;
6
+ left: 0;
7
+ right: 0;
8
+ top: 0;
9
+ bottom: 0;
10
+ z-index: 1000000;
11
+ }
12
+
13
+ }
@@ -0,0 +1,15 @@
1
+
2
+ @import 'captureMouse';
3
+ @import 'Overlay';
4
+ @import 'Dropdown';
5
+ @import 'Window';
6
+ @import 'Tooltip';
7
+ @import 'Toast';
8
+
9
+
10
+
11
+
12
+
13
+
14
+
15
+
@@ -0,0 +1,85 @@
1
+ @use "sass:map";
2
+
3
+ // TOOLTIP
4
+ $cx-tooltip-background-color: white !default;
5
+ $cx-tooltip-border-color: #d5d5d5 !default;
6
+ $cx-tooltip-border-width: 1px !default;
7
+ $cx-tooltip-border-radius: 5px !default;
8
+ $cx-tooltip-arrow-size: 5px !default;
9
+ $cx-tooltip-color: null !default;
10
+ $cx-tooltip-padding: 10px !default;
11
+
12
+ $cx-tooltip-background-color-error: white !default;
13
+ $cx-tooltip-border-color-error: #e63001 !default;
14
+ $cx-tooltip-color-error: null !default;
15
+
16
+ // DROPDOWN
17
+ $cx-default-dropdown-color: $cx-default-color !default;
18
+ $cx-default-dropdown-background-color: white !default;
19
+ $cx-default-dropdown-arrow-size: 6px !default;
20
+ $cx-default-dropdown-arrow-offset: 16px !default;
21
+
22
+ $cx-dropdown-styles: (
23
+ color: $cx-default-dropdown-color,
24
+ background-color: $cx-default-dropdown-background-color,
25
+ border-radius: $cx-default-border-radius,
26
+ border-color: $cx-default-border-color,
27
+ border-width: 0,
28
+ box-shadow: 0 0 10px 1px rgba(0, 0, 0, 0.29),
29
+ white-space: normal,
30
+ font-weight: normal,
31
+ font-size: $cx-default-font-size,
32
+ text-align: left,
33
+ line-height: normal,
34
+ ) !default;
35
+
36
+ // TOAST
37
+ $cx-default-toast-color: $cx-default-color !default;
38
+ $cx-default-toast-background-color: rgb(255, 255, 255) !default;
39
+ $cx-default-toast-border-width: 0 !default;
40
+ $cx-default-toast-border-color: rgba(255, 255, 255, 0) !default;
41
+ $cx-default-toast-box-shadow: 0 0 5px 1px rgba(128, 128, 128, 0.3) !default;
42
+ $cx-default-toast-padding: 10px !default;
43
+
44
+ $cx-toast-mods: (
45
+ warning: (
46
+ default: (
47
+ color: #fff,
48
+ background-color: #f09037,
49
+ ),
50
+ ),
51
+ primary: (
52
+ default: (
53
+ color: #fff,
54
+ background-color: #1f99f8,
55
+ ),
56
+ ),
57
+ success: (
58
+ default: (
59
+ color: #fff,
60
+ background-color: #5cb85c,
61
+ ),
62
+ ),
63
+ error: (
64
+ default: (
65
+ color: #fff,
66
+ background-color: #d9534f,
67
+ ),
68
+ ),
69
+ ) !default;
70
+
71
+ // WINDOW
72
+ @import "Window.variables";
73
+
74
+ $cx-dependencies: map.merge(
75
+ $cx-dependencies,
76
+ (
77
+ "cx/widgets/Overlay": "cx/widgets/captureMouse",
78
+ "cx/widgets/Dropdown": "cx/widgets/Overlay",
79
+ "cx/widgets/Window": "cx/widgets/Overlay",
80
+ "cx/widgets/Tooltip": "cx/widgets/Dropdown",
81
+ "cx/widgets/enableMsgBoxAlerts": "cx/widgets/MsgBox",
82
+ "cx/widgets/MsgBox": "cx/widgets/Window" "cx/widgets/FlexRow",
83
+ "cx/widgets/Toast": "cx/widgets/Overlay",
84
+ )
85
+ );