@dashadmin/dash-styles 1.3.73 → 1.3.74-srcfree.2

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 (57) hide show
  1. package/dist/helpers/getAllCssVariablesFromStyleSheets.d.ts +2 -0
  2. package/dist/index.d.ts +6 -9
  3. package/package.json +5 -5
  4. package/src/assets/fonts/Montserrat-Black.ttf +0 -0
  5. package/src/assets/fonts/Montserrat-Bold.ttf +0 -0
  6. package/src/assets/fonts/Montserrat-Medium.ttf +0 -0
  7. package/src/assets/fonts/Montserrat-Regular.ttf +0 -0
  8. package/src/assets/fonts/Montserrat-SemiBold.ttf +0 -0
  9. package/src/dash-css-transformer.less +0 -769
  10. package/src/dash-variables.less +0 -10
  11. package/src/dash.less +0 -38
  12. package/src/helpers/getAllCssVariablesFromStyleSheets.tsx +0 -46
  13. package/src/index.tsx +0 -1089
  14. package/src/index.tsx.suffixed +0 -680
  15. package/src/styles/button.less +0 -120
  16. package/src/styles/buttons.less +0 -10
  17. package/src/styles/card.less +0 -361
  18. package/src/styles/common.less +0 -62
  19. package/src/styles/components/notfound.less +0 -50
  20. package/src/styles/extra.less +0 -25
  21. package/src/styles/filters.less +0 -7
  22. package/src/styles/forms.less +0 -41
  23. package/src/styles/framed.less +0 -45
  24. package/src/styles/header.less +0 -882
  25. package/src/styles/input.copy.less +0 -223
  26. package/src/styles/input.less +0 -223
  27. package/src/styles/layout.less +0 -298
  28. package/src/styles/links.less +0 -28
  29. package/src/styles/loader.less +0 -20
  30. package/src/styles/login.less +0 -331
  31. package/src/styles/modal.less +0 -127
  32. package/src/styles/module.less +0 -29
  33. package/src/styles/mui-overrides.less +0 -62
  34. package/src/styles/notification.less +0 -46
  35. package/src/styles/pages/profile.less +0 -139
  36. package/src/styles/pagination.less +0 -90
  37. package/src/styles/popover.less +0 -21
  38. package/src/styles/react-admin/common.less +0 -184
  39. package/src/styles/react-admin/toolbar.less +0 -22
  40. package/src/styles/root.less +0 -13
  41. package/src/styles/sidebar.less +0 -1015
  42. package/src/styles/splash.less +0 -44
  43. package/src/styles/static.less +0 -59
  44. package/src/styles/stats.less +0 -5
  45. package/src/styles/svg.less +0 -30
  46. package/src/styles/switch.less +0 -7
  47. package/src/styles/table.less +0 -196
  48. package/src/styles/tabs.less +0 -181
  49. package/src/styles/tags.less +0 -97
  50. package/src/styles/toast.less +0 -83
  51. package/src/styles/toolbar.less +0 -90
  52. package/src/styles/transition.less +0 -226
  53. package/src/styles/uploader.less +0 -38
  54. package/src/variables/breakpoints.less +0 -35
  55. package/src/variables/colors.less +0 -205
  56. package/src/variables/dash-colors.less +0 -52
  57. package/src/variables/sizes.less +0 -150
@@ -1,10 +0,0 @@
1
- @import './variables/colors.less';
2
- @import './variables/dash-colors.less';
3
- @import './variables/sizes.less';
4
- @import './variables/breakpoints.less';
5
-
6
- @theme: dash;
7
- // An override for the html selector for theme prefixes
8
- @html-selector: html;
9
- @font-family: 'noirpro', sans-serif;
10
- @class-prefix: dash;
package/src/dash.less DELETED
@@ -1,38 +0,0 @@
1
- @import './styles/root.less';
2
- @import './styles/splash.less';
3
- @import './styles/transition.less';
4
- @import './styles/loader.less';
5
- @import './styles/layout.less';
6
- @import './styles/header.less';
7
- @import './styles/sidebar.less';
8
- @import './styles/toolbar.less';
9
- @import './styles/common.less';
10
- @import './styles/module.less';
11
- @import './styles/mui-overrides.less';
12
- @import './styles/links.less';
13
- @import './styles/buttons.less';
14
- @import './styles/pagination.less';
15
- @import './styles/static.less';
16
- @import './styles/components/notfound.less';
17
- @import './styles/forms.less';
18
- @import './styles/filters.less';
19
- @import './styles/extra.less';
20
- @import './styles/notification.less';
21
- @import './styles/table.less';
22
- @import './styles/login.less';
23
- @import './styles/input.less';
24
- @import './styles/button.less';
25
- @import './styles/modal.less';
26
- @import './styles/card.less';
27
- @import './styles/tabs.less';
28
- @import './styles/toast.less';
29
- @import './styles/popover.less';
30
- @import './styles/login.less';
31
- @import './styles/tags.less';
32
- @import './styles/uploader.less';
33
- @import './styles/svg.less';
34
- @import './styles/stats.less';
35
- @import './styles/pages/profile.less';
36
- @import './styles/react-admin/common.less';
37
- @import './styles/react-admin/toolbar.less';
38
- @import './styles/mui-overrides.less';
@@ -1,46 +0,0 @@
1
- const getAllCssVariablesFromStyleSheets = (selector: string) => {
2
-
3
- const cssVariables = {};
4
-
5
- // Loop through all style sheets
6
- for (let i = 0; i < document.styleSheets.length; i++) {
7
- try {
8
- const styleSheet = document.styleSheets[i];
9
- // Skip if the stylesheet is from a different origin and can't be accessed
10
- if (!styleSheet.cssRules) continue;
11
-
12
- // Loop through all CSS rules in the stylesheet
13
- for (let j = 0; j < styleSheet.cssRules.length; j++) {
14
- const rule = styleSheet.cssRules[j];
15
-
16
- // Check if it's a style rule (type 1)
17
-
18
- /* @ts-ignore */
19
- if (rule.selectorText === selector) {
20
-
21
- /* @ts-ignore */
22
- const style = rule.style;
23
-
24
- // Loop through all style properties
25
- for (let k = 0; k < style.length; k++) {
26
- const prop = style[k];
27
- if (prop.startsWith('--')) {
28
- //console.log(prop,style.getPropertyValue(prop).trim());
29
- cssVariables[prop] = style.getPropertyValue(prop).trim();
30
- }
31
- }
32
- }
33
-
34
- }
35
- } catch (e) {
36
- // Skip cross-origin stylesheets that throw security errors
37
- console.warn('Could not access stylesheet:', e);
38
- }
39
- }
40
-
41
-
42
- return cssVariables;
43
- };
44
-
45
-
46
- export default getAllCssVariablesFromStyleSheets;