@dashadmin/dash-styles 0.0.0 → 1.3.16
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.
- package/package.json +20 -5
- package/.editorconfig +0 -12
- package/.eslintignore +0 -0
- package/.eslintrc.json +0 -7
- package/.prettierignore +0 -5
- package/.prettierrc.cjs +0 -3
- package/commitlint.config.cjs +0 -40
- package/dist/README.md +0 -1
- package/dist/index.d.ts +0 -3
- package/dist/package.json +0 -34
- package/src/assets/fonts/Montserrat-Black.ttf +0 -0
- package/src/assets/fonts/Montserrat-Bold.ttf +0 -0
- package/src/assets/fonts/Montserrat-Medium.ttf +0 -0
- package/src/assets/fonts/Montserrat-Regular.ttf +0 -0
- package/src/assets/fonts/Montserrat-SemiBold.ttf +0 -0
- package/src/dash-css-transformer.less +0 -766
- package/src/dash-variables.less +0 -10
- package/src/dash.less +0 -38
- package/src/helpers/getAllCssVariablesFromStyleSheets.tsx +0 -46
- package/src/index.tsx.suffixed +0 -680
- package/src/styles/button.less +0 -120
- package/src/styles/buttons.less +0 -10
- package/src/styles/card.less +0 -337
- package/src/styles/common.less +0 -62
- package/src/styles/components/notfound.less +0 -50
- package/src/styles/extra.less +0 -25
- package/src/styles/filters.less +0 -7
- package/src/styles/forms.less +0 -41
- package/src/styles/framed.less +0 -45
- package/src/styles/header.less +0 -879
- package/src/styles/input.copy.less +0 -223
- package/src/styles/input.less +0 -223
- package/src/styles/layout.less +0 -296
- package/src/styles/links.less +0 -28
- package/src/styles/loader.less +0 -20
- package/src/styles/login.less +0 -331
- package/src/styles/modal.less +0 -0
- package/src/styles/module.less +0 -29
- package/src/styles/mui-overrides.less +0 -62
- package/src/styles/notification.less +0 -46
- package/src/styles/pages/profile.less +0 -139
- package/src/styles/pagination.less +0 -90
- package/src/styles/popover.less +0 -21
- package/src/styles/react-admin/common.less +0 -184
- package/src/styles/react-admin/toolbar.less +0 -22
- package/src/styles/root.less +0 -13
- package/src/styles/sidebar.less +0 -705
- package/src/styles/splash.less +0 -44
- package/src/styles/static.less +0 -59
- package/src/styles/stats.less +0 -5
- package/src/styles/svg.less +0 -30
- package/src/styles/switch.less +0 -7
- package/src/styles/table.less +0 -196
- package/src/styles/tabs.less +0 -173
- package/src/styles/tags.less +0 -97
- package/src/styles/toast.less +0 -83
- package/src/styles/toolbar.less +0 -90
- package/src/styles/transition.less +0 -226
- package/src/styles/uploader.less +0 -38
- package/src/variables/breakpoints.less +0 -35
- package/src/variables/colors.less +0 -205
- package/src/variables/dash-colors.less +0 -52
- package/src/variables/sizes.less +0 -150
- package/tsconfig.eslint.json +0 -12
- package/tsconfig.json +0 -22
- package/vite.config.mts +0 -7
package/src/dash-variables.less
DELETED
|
@@ -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;
|