@sisense/sdk-shared-ui 0.1.0 → 1.26.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 (119) hide show
  1. package/.storybook/main.ts +44 -0
  2. package/.storybook/preview-head.html +4 -0
  3. package/.storybook/preview.tsx +34 -0
  4. package/dist/index.js +40 -2
  5. package/package.json +99 -2
  6. package/src/lib/CheckableList/CheckableList.module.scss +13 -0
  7. package/src/lib/CheckableList/CheckableList.test.tsx +61 -0
  8. package/src/lib/CheckableList/CheckableList.tsx +41 -0
  9. package/src/lib/CheckableList/index.ts +4 -0
  10. package/src/lib/Checkbox/Checkbox.tsx +28 -0
  11. package/src/lib/Checkbox/index.ts +4 -0
  12. package/src/lib/Checkbox/themes/checkboxTheme.ts +42 -0
  13. package/src/lib/Checkbox/themes/index.ts +1 -0
  14. package/src/lib/Checkbox/themes/uiCustomization.ts +28 -0
  15. package/src/lib/DEPRECATED_Button/DEPRECATED_Button.module.scss +57 -0
  16. package/src/lib/DEPRECATED_Button/DEPRECATED_Button.stories.tsx +169 -0
  17. package/src/lib/DEPRECATED_Button/DEPRECATED_Button.test.tsx +154 -0
  18. package/src/lib/DEPRECATED_Button/DEPRECATED_Button.tsx +129 -0
  19. package/src/lib/DEPRECATED_Button/index.ts +4 -0
  20. package/src/lib/DEPRECATED_Checkbox/Checkbox.module.scss +49 -0
  21. package/src/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.test.tsx +131 -0
  22. package/src/lib/DEPRECATED_Checkbox/DEPRECATED_Checkbox.tsx +103 -0
  23. package/src/lib/DEPRECATED_Checkbox/index.ts +4 -0
  24. package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.stories.tsx +27 -0
  25. package/src/lib/DEPRECATED_Icon/DEPRECATED_Icon.tsx +2 -0
  26. package/src/lib/DEPRECATED_Toggle/DEPRECATED_Toggle.tsx +49 -0
  27. package/src/lib/DEPRECATED_Toggle/index.ts +4 -0
  28. package/src/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.module.scss +115 -0
  29. package/src/lib/DEPRECATED_Tooltip/DEPRECATED_Tooltip.tsx +68 -0
  30. package/src/lib/DEPRECATED_Tooltip/index.ts +4 -0
  31. package/src/lib/Dropdown/Dropdown.module.scss +9 -0
  32. package/src/lib/Dropdown/Dropdown.tsx +150 -0
  33. package/src/lib/Dropdown/DropdownButton/DropdownButton.module.scss +49 -0
  34. package/src/lib/Dropdown/DropdownButton/DropdownButton.tsx +81 -0
  35. package/src/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.test.tsx +121 -0
  36. package/src/lib/Dropdown/DropdownButton/DropdownButtonBody/DropdownButtonBody.tsx +39 -0
  37. package/src/lib/Dropdown/DropdownButton/DropdownButtonBody/index.ts +2 -0
  38. package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.module.scss +20 -0
  39. package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/DropdownButtonSearch.tsx +44 -0
  40. package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/constants.ts +1 -0
  41. package/src/lib/Dropdown/DropdownButton/DropdownButtonSearch/index.ts +2 -0
  42. package/src/lib/Dropdown/DropdownButton/hooks/index.tsx +1 -0
  43. package/src/lib/Dropdown/DropdownButton/hooks/useDropdownButtonSearch.ts +51 -0
  44. package/src/lib/Dropdown/DropdownButton/index.ts +1 -0
  45. package/src/lib/Dropdown/hooks/index.tsx +1 -0
  46. package/src/lib/Dropdown/hooks/useDropdown.ts +29 -0
  47. package/src/lib/Dropdown/index.ts +5 -0
  48. package/src/lib/Dropdown/types.ts +17 -0
  49. package/src/lib/Icon/Icon.tsx +118 -0
  50. package/src/lib/Icon/index.ts +4 -0
  51. package/src/lib/Icon/themes/iconTheme.tsx +38 -0
  52. package/src/lib/Icon/themes/index.ts +1 -0
  53. package/src/lib/Icon/themes/uiCustomization.ts +9 -0
  54. package/src/lib/Input/Input.module.scss +97 -0
  55. package/src/lib/Input/Input.test.tsx +177 -0
  56. package/src/lib/Input/Input.tsx +134 -0
  57. package/src/lib/Input/index.ts +4 -0
  58. package/src/lib/LazyLoader/LazyLoader.module.scss +18 -0
  59. package/src/lib/LazyLoader/LazyLoader.tsx +42 -0
  60. package/src/lib/LazyLoader/index.ts +4 -0
  61. package/src/lib/Menu/Confirmation/Confirmation.module.scss +48 -0
  62. package/src/lib/Menu/Confirmation/Confirmation.tsx +45 -0
  63. package/src/lib/Menu/Confirmation/index.ts +1 -0
  64. package/src/lib/Menu/Confirmation/translation.ts +17 -0
  65. package/src/lib/Menu/Menu.module.scss +178 -0
  66. package/src/lib/Menu/Menu.tsx +363 -0
  67. package/src/lib/Menu/MenuItem/MenuItem.test.tsx +241 -0
  68. package/src/lib/Menu/MenuItem/MenuItem.tsx +186 -0
  69. package/src/lib/Menu/MenuItem/index.ts +2 -0
  70. package/src/lib/Menu/index.ts +6 -0
  71. package/src/lib/Menu/utils.ts +13 -0
  72. package/src/lib/Popover/Popover.module.scss +15 -0
  73. package/src/lib/Popover/Popover.tsx +92 -0
  74. package/src/lib/Popover/align.interface.ts +20 -0
  75. package/src/lib/Popover/index.ts +6 -0
  76. package/src/lib/RadioButton/RadioButton.module.scss +22 -0
  77. package/src/lib/RadioButton/RadioButton.tsx +89 -0
  78. package/src/lib/RadioButton/index.ts +4 -0
  79. package/src/lib/TablePagination/PaginationActionsComponent/PaginationActionsComponent.tsx +87 -0
  80. package/src/lib/TablePagination/PaginationActionsComponent/index.ts +4 -0
  81. package/src/lib/TablePagination/PaginationActionsComponent/themes/index.ts +4 -0
  82. package/src/lib/TablePagination/PaginationActionsComponent/themes/paginationActionsComponentTheme.tsx +70 -0
  83. package/src/lib/TablePagination/PaginationActionsComponent/themes/uiCustomization.ts +17 -0
  84. package/src/lib/TablePagination/TablePagination.tsx +148 -0
  85. package/src/lib/TablePagination/TablePaginationContext.ts +4 -0
  86. package/src/lib/TablePagination/index.ts +4 -0
  87. package/src/lib/TablePagination/themes/index.ts +1 -0
  88. package/src/lib/TablePagination/themes/tablePaginationResponsiveDesign.ts +33 -0
  89. package/src/lib/TablePagination/themes/tablePaginationTheme.tsx +128 -0
  90. package/src/lib/TablePagination/themes/uiCustomization.ts +50 -0
  91. package/src/lib/Tooltip/Tooltip.module.scss +125 -0
  92. package/src/lib/Tooltip/Tooltip.tsx +34 -0
  93. package/src/lib/Tooltip/index.ts +5 -0
  94. package/src/lib/Tooltip/themes/index.ts +1 -0
  95. package/src/lib/Tooltip/themes/tooltipTheme.ts +30 -0
  96. package/src/lib/Typography/Typography.tsx +28 -0
  97. package/src/lib/Typography/index.ts +5 -0
  98. package/src/lib/Typography/themes/index.ts +1 -0
  99. package/src/lib/Typography/themes/typographyTheme.tsx +170 -0
  100. package/src/lib/Typography/themes/uiCustomization.ts +10 -0
  101. package/src/lib/constants/styleguideConstants.ts +8 -0
  102. package/src/lib/index.ts +16 -0
  103. package/src/lib/styles/colors.module.scss +10 -0
  104. package/src/lib/styles/sisenseStyleguideReactColors.scss +57 -0
  105. package/src/lib/styles/style_styleguide_react/_variables.deprecated.scss +107 -0
  106. package/src/lib/styles/style_styleguide_react/_variables.scss +100 -0
  107. package/src/lib/styles/style_styleguide_react/base.scss +9 -0
  108. package/src/lib/styles/style_styleguide_react/colors.scss +71 -0
  109. package/src/lib/styles/style_styleguide_react/exports/colors.exports.scss +69 -0
  110. package/src/lib/styles/style_styleguide_react/exports/fonts.exports.scss +33 -0
  111. package/src/lib/styles/style_styleguide_react/fonts.scss +27 -0
  112. package/src/lib/styles/style_styleguide_react/mixins.scss +90 -0
  113. package/src/lib/themes/colors/index.ts +1 -0
  114. package/src/lib/themes/colors/siColors.ts +143 -0
  115. package/src/lib/themes/index.ts +2 -0
  116. package/src/lib/themes/types/SisenseTheme.ts +12 -0
  117. package/src/lib/themes/types/index.ts +1 -0
  118. package/tsconfig.lib.json +2 -1
  119. package/vite.config.ts +18 -1
@@ -0,0 +1,170 @@
1
+ import createTheme from '@mui/material/styles/createTheme';
2
+
3
+ // import { injectStylesWithWrapper } from '@sbi/styleguide';
4
+
5
+ // import { calcStyles } from './uiCustomization';
6
+ import { siColors } from '../../themes';
7
+
8
+ // injectStylesWithWrapper && injectStylesWithWrapper(calcStyles);
9
+
10
+ declare module '@mui/material/Typography' {
11
+ interface TypographyPropsVariantOverrides {
12
+ titleHero: true;
13
+ titleBig: true;
14
+ titleMedium: true;
15
+ titleSmall: true;
16
+ subTitle: true;
17
+ bodyLabel: true;
18
+ laccent: true;
19
+ bodyParagraph: true;
20
+ paccent: true;
21
+ bodyUI: true;
22
+ overline: true;
23
+ caption: true;
24
+ annotation: true;
25
+ code: true;
26
+ }
27
+ }
28
+
29
+ export const typographyTheme = createTheme({
30
+ components: {
31
+ MuiTypography: {
32
+ variants: [
33
+ {
34
+ props: { variant: 'titleHero' },
35
+ style: {
36
+ fontWeight: 600,
37
+ fontSize: 30,
38
+ lineHeight: '36px',
39
+ letterSpacing: -0.5,
40
+ },
41
+ },
42
+ {
43
+ props: { variant: 'titleBig' },
44
+ style: {
45
+ fontWeight: 400,
46
+ fontSize: 21,
47
+ lineHeight: '24px',
48
+ letterSpacing: -0.2,
49
+ },
50
+ },
51
+ {
52
+ props: { variant: 'titleMedium' },
53
+ style: {
54
+ fontWeight: 600,
55
+ fontSize: '18px',
56
+ lineHeight: '24px',
57
+ },
58
+ },
59
+ {
60
+ props: { variant: 'titleSmall' },
61
+ style: {
62
+ fontWeight: 600,
63
+ fontSize: '15px',
64
+ lineHeight: '20px',
65
+ },
66
+ },
67
+ {
68
+ props: { variant: 'subTitle' },
69
+ style: {
70
+ fontWeight: 700,
71
+ fontSize: '13px',
72
+ lineHeight: '16px',
73
+ letterSpacing: '0.2px',
74
+ },
75
+ },
76
+ {
77
+ props: { variant: 'bodyLabel' },
78
+ style: {
79
+ fontWeight: 400,
80
+ fontSize: '13px',
81
+ lineHeight: '16px',
82
+ letterSpacing: '0.1px',
83
+ },
84
+ },
85
+ {
86
+ props: { variant: 'laccent' },
87
+ style: {
88
+ fontWeight: 600,
89
+ fontSize: '13px',
90
+ lineHeight: '16px',
91
+ letterSpacing: '0.1px',
92
+ },
93
+ },
94
+ {
95
+ props: { variant: 'bodyParagraph' },
96
+ style: {
97
+ fontWeight: 400,
98
+ fontSize: '13px',
99
+ lineHeight: '18px',
100
+ },
101
+ },
102
+ {
103
+ props: { variant: 'paccent' },
104
+ style: {
105
+ fontWeight: 600,
106
+ fontSize: '13px',
107
+ lineHeight: '18px',
108
+ },
109
+ },
110
+ {
111
+ props: { variant: 'bodyUI' },
112
+ style: {
113
+ fontWeight: 400,
114
+ fontSize: '13px',
115
+ lineHeight: '20px',
116
+ letterSpacing: '0.3px',
117
+ },
118
+ },
119
+ {
120
+ props: { variant: 'overline' },
121
+ style: {
122
+ fontWeight: 400,
123
+ fontSize: '11px',
124
+ lineHeight: '16px',
125
+ letterSpacing: '1.5px',
126
+ },
127
+ },
128
+ {
129
+ props: { variant: 'caption' },
130
+ style: {
131
+ fontWeight: 700,
132
+ fontSize: '11px',
133
+ lineHeight: '14px',
134
+ letterSpacing: '0.5px',
135
+ },
136
+ },
137
+ {
138
+ props: { variant: 'annotation' },
139
+ style: {
140
+ fontWeight: 400,
141
+ fontSize: '11px',
142
+ lineHeight: '16px',
143
+ letterSpacing: '0.3px',
144
+ },
145
+ },
146
+ {
147
+ props: { variant: 'code' },
148
+ style: {
149
+ fontFamily: 'Hack',
150
+ fontWeight: 400,
151
+ fontSize: '13px',
152
+ lineHeight: '20px',
153
+ },
154
+ },
155
+ ],
156
+ styleOverrides: {
157
+ root: {
158
+ display: 'inline-block',
159
+ fontFamily: 'Open Sans',
160
+ color: siColors.StTextColors.content,
161
+ '::first-letter': {
162
+ textTransform: 'capitalize',
163
+ },
164
+ },
165
+ },
166
+ },
167
+ },
168
+ });
169
+
170
+ export type TypographyTheme = typeof typographyTheme;
@@ -0,0 +1,10 @@
1
+ export {};
2
+
3
+ // import { CalcStyles, DesignSettings } from '@sbi/styleguide';
4
+ //
5
+ // export const calcStyles: CalcStyles = (designSettings: DesignSettings) => ({
6
+ // '.MuiTypography-root': {
7
+ // fontFamily: designSettings.typography.fontFamily,
8
+ // color: designSettings.typography.primaryTextColor,
9
+ // },
10
+ // });
@@ -0,0 +1,8 @@
1
+ export const styleguideConstants = Object.freeze({
2
+ SISENSE_NAMESPACE: 'sis-scope',
3
+ TEXT_PRIMARY: 'slf-text-primary',
4
+ TEXT_SECONDARY: 'slf-text-secondary',
5
+ TEXT_SECONDARY_HOVER: 'slf-text-secondary-hov',
6
+ TEXT_HREF: 'slf-text-href',
7
+ TEXT_HREF_HOVER: 'slf-text-href-hov',
8
+ });
package/src/lib/index.ts CHANGED
@@ -1 +1,17 @@
1
1
  export * from './DEPRECATED_Icon';
2
+ export * from './DEPRECATED_Button';
3
+ export * from './CheckableList';
4
+ export * from './Checkbox';
5
+ export * from './DEPRECATED_Checkbox';
6
+ export * from './DEPRECATED_Toggle';
7
+ export * from './DEPRECATED_Tooltip';
8
+ export * from './Icon';
9
+ export * from './Input';
10
+ export * from './LazyLoader';
11
+ export * from './Popover';
12
+ export * from './RadioButton';
13
+ export * from './Tooltip';
14
+ export * from './Typography';
15
+ export * from './TablePagination';
16
+ export * from './Menu';
17
+ export * from './Dropdown';
@@ -0,0 +1,10 @@
1
+ // For colors that are not available in sisense-styleguide.
2
+ // Placeholder names from: https://chir.ag/projects/name-that-color
3
+
4
+ $ATHENS_GRAY: #f4f4f8;
5
+ $BLUE_RIBBON: #0765e3;
6
+ $DODGER_BLUE: #1eaff3;
7
+ $PORCELAIN: #e7e8ea;
8
+ $COLOR-TEXT: #5b6372;
9
+ $COLOR-TEXT-SECONDARY: #9ea2ab;
10
+ $MISCHKA: #dee1e7;
@@ -0,0 +1,57 @@
1
+ /* texts */
2
+ $commonLinkBlue: #1eaff4;
3
+ $fore: #7f899c;
4
+ $wizardFore: #5b6372;
5
+ $foreDisabled: #b3b3b3;
6
+ $foreHeader: #2c3342;
7
+ $foreSubtitle: #b3b3b3;
8
+ $forePlaceholder: #bec1c6;
9
+ $foreNonchosen: #56535b;
10
+ $foreHover: #3a4356;
11
+ $textSearch: #2c3344;
12
+ $stepCaption: #9ea2ab;
13
+ $captionUnder: #cbced7;
14
+
15
+ /* backgrounds */
16
+ $back: #fff;
17
+ $backHover: #ffff9c;
18
+ $backDisabled: #f9f9f9;
19
+ $backHeader: #cbcfd7;
20
+ $backToolbar: #fafafa;
21
+ $separator: #e4e4e4;
22
+ $wizardSeparator: #edeef1;
23
+ $lightSeparator: #ededed;
24
+
25
+ /* borders */
26
+ $border: #e9eaed;
27
+ $borderSearch: #3a4356;
28
+
29
+ /* buttons */
30
+ $buttonCancel: #e7e7e7;
31
+ $buttonCancelText: #7c7c7c;
32
+ $buttonOk: #ffd617;
33
+ $buttonOkText: #866b02;
34
+ $buttonNext: #ffcb05;
35
+ $buttonOkHovered: #ffe981;
36
+
37
+ $hyperlink: #1faff3;
38
+ $hyperlinkHovered: #0065e3;
39
+
40
+ /* states */
41
+ $errRed: #fa7573;
42
+ $negativeSign: #fa5656;
43
+ $positiveSign: #35d7be;
44
+ $noResults: #b7b5b5;
45
+ $selectedItem: #3a4356;
46
+ $selectedItemBackground: #f9f9fb;
47
+ $highlight: #5c6372;
48
+ $highlightListItem: #f4f4f8;
49
+ $highlightOrange: #eca80b;
50
+
51
+ /*tags*/
52
+ $color1: $highlightListItem;
53
+ $color2: #2c779b;
54
+ $color3: #6cb8cd;
55
+ $color4: #a3b866;
56
+ $color5: #e7a927;
57
+ $color6: #d04a15;
@@ -0,0 +1,107 @@
1
+ //----------------------- Colors ---------------------------
2
+
3
+ $font-color-1: #56535b;
4
+ $font-color-2: #9f9e9e;
5
+ $font-color-3: #212633;
6
+ $font-color-4: #c7c7c7;
7
+ $delete: #fc7470;
8
+ $gray-0: #f9f9f9;
9
+ $gray-1: #f5f5f5;
10
+ $gray-2: #e6e6e6;
11
+ $gray-3: #e5e5e5;
12
+ $gray-4: #dcdcdc;
13
+ $gray-5: #dadada;
14
+ $gray-6: #d8d8d8;
15
+ $gray-7: #d5d5d5;
16
+ $gray-8: #cdcdcd;
17
+ $gray-9: #aaa;
18
+ $gray-10: #999;
19
+ $gray-11: #979797;
20
+ $gray-12: #bababa;
21
+ $gray-13: #3f4a5a;
22
+ $gray-14: #56535b;
23
+ $gray-15: #f2f2f2;
24
+ $gray-16: #777;
25
+ $gray-17: #e8e8e8;
26
+ $gray-18: #56635b;
27
+ $gray-19: #b8b8b8;
28
+ $gray-20: #6d6d6d;
29
+ $gray-21: #666;
30
+ $gray-22: #7d7d7d;
31
+ $gray-24: #747474;
32
+
33
+ $back-revision: #444f67;
34
+ $green-0: #6ed956;
35
+
36
+ $turquoise-blue: #00b9c5;
37
+ $turquoise-light-blue: #00daeb;
38
+
39
+ $scroll-back: #c8c8c8;
40
+ $scroll-back-hover: #56535b;
41
+
42
+ $default-svg-color: #56535b;
43
+ $default-svg-color-cancel: #ff8c9a;
44
+ $default-svg-color-save: #65d049;
45
+ $default-svg-color-add: #00daeb;
46
+ $default-svg-color-login: #2c3342;
47
+
48
+ $baaaase-color: #2c3342;
49
+
50
+ // background
51
+
52
+ $back: #fff;
53
+ $back-zone: $gray-15;
54
+ $back-container: #fff;
55
+ $back-hover: #ffff9c;
56
+
57
+ $back-alternating: #f8f8f8;
58
+ $back-cancel: #cecece;
59
+ $back-cancel-hover: #fc7571;
60
+ $back-cancel-accented: #fa8a8a;
61
+ $back-ok: #6ed855;
62
+ $back-ok-hover: #6ee555;
63
+ $back-header: #e7e7e7;
64
+ $back-toolbar: #fafafa;
65
+
66
+ $button-yes: #57ba3e;
67
+ $button-no: #fe746e;
68
+ $button-yes-hovered: #6ad44f;
69
+ $button-no-hovered: #fb9995;
70
+
71
+ $border-ltgray: $gray-2;
72
+
73
+ $border-toolbar: $gray-9;
74
+ $background-toolbar: #f6f6f6;
75
+
76
+ // foregound
77
+
78
+ $fore: #272a34;
79
+ $fore-disabled: #b3b3b3;
80
+ $fore-header: $baaaase-color;
81
+ $fore-subtitle: $fore-disabled;
82
+ $fore-placeholder: #ececec;
83
+ $fore-nonchosen: $gray-14;
84
+ $x-blue: #00dae9;
85
+ $common-link-blue: #008db8;
86
+ $err-red: #fa7573;
87
+ $selected-item: #01cbd9;
88
+
89
+ //----------------------- Sizing ---------------------------
90
+
91
+ $size-header-xl: 24px;
92
+ $size-header-l: 16px;
93
+ $size-header-m: 15px;
94
+ $size-header-s: 13px;
95
+ $size-exception-mn: 14px;
96
+ $size-body-xl: 16px;
97
+ $size-body-l: 13px;
98
+ $size-body-m: 12.5px;
99
+ $size-body-s: 12px;
100
+ $size-body-xs: 11px;
101
+ $size-fl-icon: 24px;
102
+
103
+ $button-ok-cancel-height: 36px;
104
+
105
+ $scroll-width: 8px;
106
+
107
+ $border-elements: 1px solid $gray-7;
@@ -0,0 +1,100 @@
1
+ @import '_variables.deprecated';
2
+
3
+ // Variables
4
+ //
5
+ // This section describes base colors
6
+ //
7
+ // Styleguide 1.0
8
+
9
+ // Base colors
10
+ //
11
+ // $color-text - Base text color
12
+ // $color-text-secondary - Secondary text color
13
+ // $color-text-selected-hover - Base text color selected/hover
14
+ // $color-brand - Brand color
15
+ // $color-placeholder - Placeholder color (input placeholder text)
16
+ // $color-error-cancel - Error/cancel color
17
+ // $color-apply-approve - Aply/aprrove color
18
+ // $color-hyperlinks - Hyperinks color
19
+ // <br/>
20
+ // Add class with the same name as variable to apply color. Like &lt;div class="color-brand"&gt;Some text&lt;/div&gt;
21
+ //
22
+ // markup:
23
+ // <div style="background: {$modifiers};" class="styleguide-color">{$modifiers}</div>
24
+ // <div style="color: {$modifiers}">Text color {$modifiers}</div>
25
+ //
26
+ // Styleguide 1.1
27
+ $color-text: #5b6372 !default;
28
+ $color-text-secondary: #9ea2ab !default;
29
+ $color-text-selected-hover: #3a4356 !default;
30
+ $color-brand: #ffcb05 !default;
31
+ $color-placeholder: #b3b3b3 !default;
32
+
33
+ $color-error-cancel: #fa5656 !default;
34
+ $color-apply-approve: #35d7be !default;
35
+ $color-hyperlinks: #1faff3 !default;
36
+ $color-hover-on-grey: #dee1e7 !default;
37
+
38
+ // Gray colors
39
+ //
40
+ // $color-gray-1 - Gray color (Divider scroll bar labeld)
41
+ // $color-gray-2 - Gray color (Scroll bars hover)
42
+ // $color-gray-3 - Gray color (Divider on gray small dividers toolip shadow)
43
+ // $color-gray-4 - Gray color (Hover state for menus / Panes)
44
+ // $color-gray - Base gray color
45
+ // $color-bg - White space
46
+ // $color-login-icon-dark - Sisense logo color for light background
47
+ //
48
+ // markup:
49
+ // <div style="background: {$modifiers};" class="styleguide-color">{$modifiers}</div>
50
+ // <div class="{$modifiers}">{$modifiers}</div>
51
+ //
52
+ // Styleguide 1.2
53
+ $color-gray-1: #edeef1 !default;
54
+ $color-gray-2: #d1d1d7 !default;
55
+ $color-gray-3: #cbced7 !default;
56
+ $color-gray-4: #f4f4f8 !default;
57
+ $color-gray: #edeef1 !default;
58
+ $color-bg: #fff !default;
59
+ $color-login-icon-dark: #2c3342 !default;
60
+
61
+ // Common
62
+ //
63
+ // <b>$styleguide-anchor-class -</b> Anchor class name for all components; <br />
64
+ // <b>$app-icon-size-default -</b> SVG icons default size; <br />
65
+ // <b>$toolbar-height -</b> Toolbar element height; <br />
66
+ //
67
+ // Styleguide 1.3
68
+ $styleguide-anchor-class: sis-scope !default;
69
+ $app-icon-size-default: 24px !default;
70
+ $toolbar-height: 48px !default;
71
+
72
+ // Text
73
+ //
74
+ // <b>$font-family -</b> Default font family; <br />
75
+ // <b>$font-size-main -</b> Default font size; <br />
76
+ // <b>$font-size-header -</b> Default header font size; <br />
77
+ // <b>$font-size-semibig -</b> Default semi big font size; <br />
78
+ // <b>$font-size-big -</b> Default big font size; <br />
79
+ // <b>$line-height-main -</b> Default line height; <br />
80
+ // <b>$text-color-primary -</b> Default text color; <br />
81
+ // <b>$text-color-secondary -</b> Secondary text color; <br />
82
+ //
83
+ // Styleguide 1.4
84
+
85
+ $font-family: 'Open Sans' !default;
86
+ $font-size-main: 13px !default;
87
+ $font-size-header: 15px !default;
88
+ $font-size-semibig: 20px !default;
89
+ $font-size-big: 25px !default;
90
+ $line-height-main: normal !default;
91
+ $text-color-primary: $color-text !default;
92
+ $text-color-secondary: $color-text-secondary !default;
93
+
94
+ // export css variables to be used in js styles
95
+ :export {
96
+ loginDarkColor: $color-login-icon-dark;
97
+ darkBtnHoverColor: $color-gray-4;
98
+ greyHoverColor: $color-hover-on-grey;
99
+ defaultBackgroundColor: $color-bg;
100
+ }
@@ -0,0 +1,9 @@
1
+ @import 'colors';
2
+ @import 'fonts';
3
+ @import 'mixins';
4
+
5
+ $appHeaderHeight: 48px;
6
+
7
+ $modalBorderRadious: 4px;
8
+ $notificationVerticalSpacing: 9px;
9
+ $notificationHorisontalSpacing: 16px;
@@ -0,0 +1,71 @@
1
+ /* texts */
2
+ $commonLinkBlue: #1eaff4;
3
+ $fore: #7f899c;
4
+ $wizardFore: #5b6372;
5
+ $foreDisabled: #b3b3b3;
6
+ $foreHeader: #2c3342;
7
+ $foreSubtitle: #b3b3b3;
8
+ $forePlaceholder: #bec1c6;
9
+ $foreNonchosen: #56535b;
10
+ $foreHover: #3a4356;
11
+ $textSearch: #2c3344;
12
+ $stepCaption: #9ea2ab;
13
+ $captionUnder: #cbced7;
14
+ $title: #999;
15
+ $textCode: #1d1d1b;
16
+
17
+ /* backgrounds */
18
+ $back: #fff;
19
+ $backHover: #ffff9c;
20
+ $backDisabled: #f9f9f9;
21
+ $backHeader: #cbcfd7;
22
+ $backToolbar: #fafafa;
23
+ $separator: #e4e4e4;
24
+ $wizardSeparator: #edeef1;
25
+ $lightSeparator: #ededed;
26
+ $lineSeparator: #bdc1c7;
27
+ $listItemHover: rgba(91, 99, 114, 0.1);
28
+
29
+ /* borders */
30
+ $border: #e9eaed;
31
+ $borderSearch: #3a4356;
32
+ $borderSeparator: #5b6373;
33
+ $borderJaqlEditor: #e7e8ea;
34
+
35
+ /*scrollbar*/
36
+ $scrollbarHovered: #9da1aa;
37
+
38
+ /* buttons */
39
+ $buttonCancel: #f4f4f8;
40
+ $buttonCancelHovered: #d1d1d7;
41
+ $buttonCancelText: #7c7c7c;
42
+ $buttonOk: #ffd617;
43
+ $buttonOkText: #866b02;
44
+ $buttonNext: #ffcb05;
45
+ $buttonOkHovered: #ffe981;
46
+ $buttonSecondary: #ffffff;
47
+ $buttonSecondaryHovered: #f4f4f8;
48
+ $buttonSecondaryDisabled: #bdc1c7;
49
+
50
+ $hyperlink: #1faff3;
51
+ $hyperlinkHovered: #0065e3;
52
+
53
+ /* states */
54
+ $errRed: #fa7573;
55
+ $negativeSign: #fa5656;
56
+ $positiveSign: #35d7be;
57
+ $noResults: #b7b5b5;
58
+ $selectedItem: #3a4356;
59
+ $selectedItemBackground: #f9f9fb;
60
+ $highlight: #5c6372;
61
+ $highlightListItem: #f4f4f8;
62
+ $highlightOrange: #eca80b;
63
+
64
+ /*tags*/
65
+ $color1: $highlightListItem;
66
+ $color2: #2c779b;
67
+ $color3: #6cb8cd;
68
+ $color4: #a3b866;
69
+ $color5: #e7a927;
70
+ $color6: #d04a15;
71
+ $color7: #f4f4f8;
@@ -0,0 +1,69 @@
1
+ @import '../colors.scss';
2
+
3
+ :export {
4
+ highlightListItem: $highlightListItem;
5
+ listItemHover: $listItemHover;
6
+ captionUnder: $captionUnder;
7
+ commonLinkBlue: $commonLinkBlue;
8
+ fore: $fore;
9
+ wizardFore: $fore;
10
+ foreDisabled: $foreDisabled;
11
+ foreHeader: $foreHeader;
12
+ foreSubtitle: $foreSubtitle;
13
+ forePlaceholder: $forePlaceholder;
14
+ foreNonchosen: $foreNonchosen;
15
+ foreHover: $foreHover;
16
+ textSearch: $textSearch;
17
+ stepCaption: $stepCaption;
18
+ captionUnder: $captionUnder;
19
+ title: $title;
20
+ textCode: $textCode;
21
+
22
+ back: $back;
23
+ backHover: $backHover;
24
+ backDisabled: $backDisabled;
25
+ backHeader: $backHeader;
26
+ backToolbar: $backToolbar;
27
+ separator: $separator;
28
+ wizardSeparator: $wizardSeparator;
29
+ lightSeparator: $lightSeparator;
30
+ lineSeparator: $lineSeparator;
31
+ listItemHover: $listItemHover;
32
+
33
+ border: $border;
34
+ borderSearch: $borderSearch;
35
+ borderSeparator: $borderSeparator;
36
+ borderJaqlEditor: $borderJaqlEditor;
37
+ scrollbarHovered: $scrollbarHovered;
38
+ buttonCancel: $buttonCancel;
39
+ buttonCancelHovered: $buttonCancelHovered;
40
+ buttonCancelText: $buttonCancelText;
41
+ buttonOk: $buttonOk;
42
+ buttonOkText: $buttonOkText;
43
+ buttonNext: $buttonNext;
44
+ buttonOkHovered: $buttonOkHovered;
45
+ buttonSecondary: $buttonSecondary;
46
+ buttonSecondaryHovered: $buttonSecondaryHovered;
47
+ buttonSecondaryDisabled: $buttonSecondaryDisabled;
48
+
49
+ hyperlink: $hyperlink;
50
+ hyperlinkHovered: $hyperlinkHovered;
51
+
52
+ errRed: $errRed;
53
+ negativeSign: $negativeSign;
54
+ positiveSign: $positiveSign;
55
+ noResults: $noResults;
56
+ selectedItem: $selectedItem;
57
+ selectedItemBackground: $selectedItemBackground;
58
+ highlight: $highlight;
59
+ highlightListItem: $highlightListItem;
60
+ highlightOrange: $highlightOrange;
61
+
62
+ color1: $color1;
63
+ color2: $color2;
64
+ color3: $color3;
65
+ color4: $color4;
66
+ color5: $color5;
67
+ color6: $color6;
68
+ color7: $color7;
69
+ }
@@ -0,0 +1,33 @@
1
+ @import '../fonts.scss';
2
+
3
+ :export {
4
+ paddingLarge: $paddingLarge;
5
+
6
+ /* fonts families */
7
+ font: $font;
8
+ fontHeader: $fontHeader, 'PT Sans Narrow';
9
+ fontFacelift: $fontFacelift;
10
+ fontFamily: $fontFamily;
11
+
12
+ /* sizes */
13
+ sizeSmall: $sizeSmall;
14
+ sizeMedium: $sizeMedium;
15
+ sizeLarge: $sizeLarge;
16
+ sizeMediumModal: $sizeMediumModal;
17
+ sizeDefault: $sizeMedium;
18
+
19
+ /* padding */
20
+ paddingLarge: $paddingLarge;
21
+ paddingSmall: $paddingSmall;
22
+
23
+ /* height */
24
+ heightMedium: $heightMedium;
25
+ heightLarge: $heightLarge;
26
+
27
+ /* line height */
28
+ lineHeightMedium: $lineHeightMedium;
29
+ lineHeightLarge: $lineHeightLarge;
30
+
31
+ /* font weight */
32
+ fontWeightBold: $fontWeightBold;
33
+ }
@@ -0,0 +1,27 @@
1
+ /* fonts families */
2
+ $font: ubuntulight;
3
+ $fontHeader: abelregular, 'PT Sans Narrow';
4
+ $fontFacelift: facelift;
5
+ $fontFamily: 'Open Sans';
6
+
7
+ /* sizes */
8
+ $sizeSmall: 12px;
9
+ $sizeMedium: 13px;
10
+ $sizeLarge: 16px;
11
+ $sizeMediumModal: 15px;
12
+ $sizeDefault: $sizeMedium;
13
+
14
+ /* padding */
15
+ $paddingLarge: 16px;
16
+ $paddingSmall: 12px;
17
+
18
+ /* height */
19
+ $heightMedium: 16px;
20
+ $heightLarge: 18px;
21
+
22
+ /* line height */
23
+ $lineHeightMedium: 18px;
24
+ $lineHeightLarge: 20px;
25
+
26
+ /* font weight */
27
+ $fontWeightBold: bold;