@steroidsjs/bootstrap 3.0.0-beta.1 → 3.0.0-beta.10

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 (121) hide show
  1. package/content/Alert/AlertView.d.ts +0 -1
  2. package/content/Alert/AlertView.js +12 -16
  3. package/content/Alert/AlertView.scss +43 -82
  4. package/content/Avatar/AvatarGroupView.d.ts +0 -1
  5. package/content/Avatar/AvatarView.d.ts +5 -2
  6. package/content/Avatar/AvatarView.js +7 -3
  7. package/content/Avatar/AvatarView.scss +153 -85
  8. package/content/Badge/BadgeView.d.ts +3 -0
  9. package/content/Badge/BadgeView.js +23 -0
  10. package/content/Calendar/CalendarView.d.ts +0 -1
  11. package/content/Calendar/CaptionElement.d.ts +0 -1
  12. package/content/Calendar/CaptionElement.js +1 -1
  13. package/content/Card/CardView.d.ts +0 -1
  14. package/content/Card/CardView.js +3 -2
  15. package/content/Collapse/CollapseItemView.d.ts +0 -1
  16. package/content/Collapse/CollapseItemView.js +2 -1
  17. package/content/Collapse/CollapseView.d.ts +0 -1
  18. package/content/Detail/DetailView.d.ts +0 -1
  19. package/content/DropDown/DropDownView.d.ts +0 -1
  20. package/{icon → content}/Icon/IconView.d.ts +1 -2
  21. package/{icon → content}/Icon/IconView.js +0 -0
  22. package/{icon → content}/Icon/IconView.scss +0 -0
  23. package/crud/Crud/CrudView.d.ts +0 -1
  24. package/form/AutoCompleteField/AutoCompleteFieldView.d.ts +0 -1
  25. package/form/Button/ButtonView.d.ts +0 -1
  26. package/form/Button/ButtonView.js +1 -1
  27. package/form/CheckboxField/CheckboxFieldView.d.ts +0 -1
  28. package/form/CheckboxListField/CheckboxListFieldView.d.ts +0 -1
  29. package/form/DateField/DateFieldView.d.ts +0 -1
  30. package/form/DateField/DateFieldView.js +1 -1
  31. package/form/DateRangeField/DateRangeFieldView.d.ts +0 -1
  32. package/form/DateRangeField/DateRangeFieldView.js +1 -1
  33. package/form/DateTimeField/DateTimeFieldView.d.ts +0 -1
  34. package/form/DateTimeField/DateTimeFieldView.js +1 -1
  35. package/form/DateTimeRangeField/DateTimeRangeFieldView.d.ts +0 -1
  36. package/form/DateTimeRangeField/DateTimeRangeFieldView.js +1 -1
  37. package/form/DropDownField/DropDownFieldView.d.ts +0 -1
  38. package/form/DropDownField/DropDownFieldView.js +14 -13
  39. package/form/FieldLayout/FieldLayoutView.d.ts +0 -1
  40. package/form/FieldList/FieldListView.d.ts +0 -1
  41. package/form/FieldSet/FieldSetView.d.ts +0 -1
  42. package/form/FileField/FileFieldItemView.d.ts +0 -1
  43. package/form/FileField/FileFieldItemView.js +1 -1
  44. package/form/FileField/FileFieldView.d.ts +0 -1
  45. package/form/FileField/FileFieldView.js +1 -1
  46. package/form/HtmlField/HtmlFieldView.d.ts +0 -1
  47. package/form/ImageField/ImageFieldModalView.d.ts +0 -1
  48. package/form/ImageField/ImageFieldView.d.ts +1 -2
  49. package/form/ImageField/ImageFieldView.js +9 -9
  50. package/form/InputField/InputFieldView.d.ts +0 -1
  51. package/form/NumberField/NumberFieldView.d.ts +0 -1
  52. package/form/PasswordField/PasswordFieldView.d.ts +0 -1
  53. package/form/PasswordField/PasswordFieldView.js +1 -1
  54. package/form/RadioListField/RadioListFieldView.d.ts +0 -1
  55. package/form/RateField/RateFieldView.d.ts +0 -1
  56. package/form/RateField/RateFieldView.js +1 -1
  57. package/form/ReCaptchaField/ReCaptchaFieldView.d.ts +0 -1
  58. package/form/SliderField/SliderFieldView.d.ts +0 -1
  59. package/form/SwitcherField/SwitcherFieldView.d.ts +0 -1
  60. package/form/TextField/TextFieldView.d.ts +0 -1
  61. package/form/TimeField/TimeFieldView.d.ts +0 -1
  62. package/form/TimeField/TimeFieldView.js +1 -1
  63. package/form/TimeField/TimePanelView.d.ts +0 -1
  64. package/format/DefaultFormatter/DefaultFormatterView.d.ts +2 -1
  65. package/{icon → icons}/fontawesome.d.ts +0 -0
  66. package/{icon → icons}/fontawesome.js +14 -6
  67. package/index.d.ts +3 -3
  68. package/index.js +3 -3
  69. package/index.scss +1 -1
  70. package/layout/Header/HeaderView.d.ts +0 -1
  71. package/layout/Header/HeaderView.js +1 -1
  72. package/layout/Loader/LoaderView.d.ts +0 -1
  73. package/layout/Notifications/NotificationsItemView.d.ts +0 -1
  74. package/layout/Notifications/NotificationsView.d.ts +0 -1
  75. package/layout/ProgressBar/CircleProgressBarView.d.ts +0 -1
  76. package/layout/ProgressBar/CircleProgressBarView.js +5 -2
  77. package/layout/ProgressBar/LineProgressBarView.d.ts +0 -1
  78. package/layout/Skeleton/SkeletonView.d.ts +0 -1
  79. package/layout/Tooltip/TooltipView.d.ts +0 -1
  80. package/list/CheckboxColumn/CheckboxColumnView.d.ts +0 -1
  81. package/list/ControlsColumnView/ControlsColumnView.d.ts +0 -1
  82. package/list/Empty/EmptyView.d.ts +0 -1
  83. package/list/Grid/GridView.js +4 -4
  84. package/list/List/ListItemView.d.ts +0 -1
  85. package/list/Pagination/PaginationButtonView.d.ts +0 -1
  86. package/list/Pagination/PaginationMoreView.d.ts +0 -1
  87. package/list/PaginationSize/PaginationSizeView.d.ts +0 -1
  88. package/list/Steps/StepItemView.d.ts +1 -2
  89. package/list/Steps/StepItemView.js +3 -3
  90. package/list/Steps/StepsView.d.ts +0 -1
  91. package/list/Steps/StepsView.js +1 -1
  92. package/modal/Modal/ModalView.d.ts +0 -1
  93. package/modal/TwoFactorModal/TwoFactorModalView.d.ts +0 -1
  94. package/nav/Breadcrubms/BreadcrumbsView.d.ts +0 -1
  95. package/nav/Controls/ControlsView.d.ts +0 -1
  96. package/nav/Nav/NavBarView.d.ts +0 -1
  97. package/nav/Nav/NavButtonView.d.ts +0 -1
  98. package/nav/Nav/NavIconView.d.ts +0 -1
  99. package/nav/Nav/NavLinkView.d.ts +0 -1
  100. package/nav/Nav/NavListView.d.ts +0 -1
  101. package/nav/Nav/NavTabsView.d.ts +0 -1
  102. package/nav/Tree/TreeView.d.ts +0 -1
  103. package/package.json +56 -52
  104. package/scss/mixins/button.scss +1 -1
  105. package/scss/mixins/index.scss +1 -1
  106. package/scss/variables/common/colors.scss +153 -0
  107. package/scss/variables/common/old-variables.scss +24 -0
  108. package/scss/variables/common/radiuses.scss +5 -0
  109. package/scss/variables/common/spacing.scss +12 -0
  110. package/scss/variables/common/typography.scss +39 -0
  111. package/scss/variables/components/calendar.scss +1 -1
  112. package/scss/variables/components/card.scss +1 -1
  113. package/scss/variables/components/icon.scss +1 -1
  114. package/scss/variables/components/input.scss +56 -1
  115. package/scss/variables/components/ratefield.scss +1 -1
  116. package/scss/variables/index.scss +6 -3
  117. package/icon/Icon/index.d.ts +0 -1
  118. package/icon/Icon/index.js +0 -16
  119. package/scss/variables/colors.scss +0 -74
  120. package/scss/variables/components/alert.scss +0 -9
  121. package/scss/variables/components/avatar.scss +0 -17
@@ -27,15 +27,15 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
27
27
  };
28
28
  exports.__esModule = true;
29
29
  var React = __importStar(require("react"));
30
- var Icon_1 = __importDefault(require("@steroidsjs/core/ui/icon/Icon"));
30
+ var Icon_1 = __importDefault(require("@steroidsjs/core/ui/content/Icon"));
31
31
  var hooks_1 = require("@steroidsjs/core/hooks");
32
32
  function StepItemView(props) {
33
33
  var _a;
34
- var bem = (0, hooks_1.useBem)("StepItemView");
34
+ var bem = (0, hooks_1.useBem)('StepItemView');
35
35
  return (React.createElement("div", { className: bem(props.className, bem.block((_a = {}, _a[props.status] = true, _a))) },
36
36
  React.createElement("div", { className: bem.element('body', { disabled: props.disabled }), onClick: props.onChange },
37
37
  React.createElement("div", { className: bem.element('header') },
38
- React.createElement("span", { className: bem.element('icon') }, props.status === 'finish' ? React.createElement(Icon_1["default"], { name: 'check' }) : props.stepItem.icon || "0".concat(props.index)),
38
+ React.createElement("span", { className: bem.element('icon') }, props.status === 'finish' ? React.createElement(Icon_1["default"], { name: "check" }) : props.stepItem.icon || "0".concat(props.index)),
39
39
  React.createElement("div", null,
40
40
  React.createElement("div", { className: bem.element('title') }, props.stepItem.title),
41
41
  React.createElement("div", { className: bem.element('subtitle') }, props.stepItem.subtitle))),
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { IStepsViewProps } from '@steroidsjs/core/ui/list/Steps/Steps';
3
2
  export default function StepsView(props: IStepsViewProps): JSX.Element;
@@ -26,7 +26,7 @@ exports.__esModule = true;
26
26
  var React = __importStar(require("react"));
27
27
  var hooks_1 = require("@steroidsjs/core/hooks");
28
28
  function StepsView(props) {
29
- var bem = (0, hooks_1.useBem)("StepsView");
29
+ var bem = (0, hooks_1.useBem)('StepsView');
30
30
  return (React.createElement("div", { className: bem(props.className, bem.block()) }, props.children));
31
31
  }
32
32
  exports["default"] = StepsView;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
3
2
  import { IModalViewProps } from '@steroidsjs/core/ui/modal/Modal/Modal';
4
3
  export default function ModalView(props: IModalViewProps & IBemHocOutput): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
3
2
  import { ITwoFactorModalViewProps } from '@steroidsjs/core/ui/modal/TwoFactorModal/TwoFactorModal';
4
3
  import './TwoFactorModalView.scss';
@@ -1,3 +1,2 @@
1
- /// <reference types="react" />
2
1
  import { IBreadcrumbsViewProps } from '@steroidsjs/core/ui/nav/Breadcrumbs/Breadcrumbs';
3
2
  export default function BreadcrumbsView(props: IBreadcrumbsViewProps): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IControlsViewProps } from '@steroidsjs/core/ui/nav/Controls/Controls';
3
2
  import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
4
3
  export default function ControlsView(props: IControlsViewProps & IBemHocOutput): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
3
2
  import { INavViewProps } from '@steroidsjs/core/ui/nav/Nav/Nav';
4
3
  export default function NavBarView(props: INavViewProps & IBemHocOutput): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
3
2
  import { INavViewProps } from '@steroidsjs/core/ui/nav/Nav/Nav';
4
3
  export default function NavButtonView(props: INavViewProps & IBemHocOutput): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
3
2
  import { INavViewProps } from '@steroidsjs/core/ui/nav/Nav/Nav';
4
3
  export default function NavIconView(props: INavViewProps & IBemHocOutput): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
3
2
  import { INavViewProps } from '@steroidsjs/core/ui/nav/Nav/Nav';
4
3
  export default function NavLinkView(props: INavViewProps & IBemHocOutput): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
3
2
  import { INavViewProps } from '@steroidsjs/core/ui/nav/Nav/Nav';
4
3
  export default function NavListView(props: INavViewProps & IBemHocOutput): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
3
2
  import { INavViewProps } from '@steroidsjs/core/ui/nav/Nav/Nav';
4
3
  export default function NavTabsView(props: INavViewProps & IBemHocOutput): JSX.Element;
@@ -1,4 +1,3 @@
1
- /// <reference types="react" />
2
1
  import { IBemHocOutput } from '@steroidsjs/core/hoc/bem';
3
2
  import { ITreeViewProps } from '@steroidsjs/core/ui/nav/Tree/Tree';
4
3
  export default function TreeView(props: ITreeViewProps & IBemHocOutput): JSX.Element;
package/package.json CHANGED
@@ -1,54 +1,58 @@
1
1
  {
2
- "name": "@steroidsjs/bootstrap",
3
- "version": "3.0.0-beta.1",
4
- "description": "",
5
- "main": "index.js",
6
- "author": "Vladimir Kozhin <hello@kozhindev.com>",
7
- "repository": {
8
- "type": "git",
9
- "url": "https://github.com/steroids/react-bootstrap"
10
- },
11
- "scripts": {
12
- "build": "tsc && cp ./{package.json,LICENSE,README.md} dist && copyfiles -u 1 \"src/**/*.scss\" dist"
13
- },
14
- "license": "MIT",
15
- "homepage": "https://github.com/steroids/react-bootstrap",
16
- "bugs": {
17
- "url": "https://github.com/steroids/react-bootstrap/issues"
18
- },
19
- "dependencies": {
20
- "@ckeditor/ckeditor5-react": "^3.0.2",
21
- "@steroidsjs/ckeditor5": "^27.0.2-rc.2",
22
- "bootstrap": "^4.5.2",
23
- "date-fns": "^2.29.3",
24
- "lodash": "^4.17.20",
25
- "lodash-es": "^4.17.20",
26
- "rc-slider": "^9.7.4",
27
- "react": "^18.2.0",
28
- "react-collapse": "^5.0.1",
29
- "react-day-picker": "^7.4.10",
30
- "react-dom": "^18.2.0",
31
- "react-image-crop": "^9.0.2",
32
- "react-modal": "^3.11.2",
33
- "react-transition-group": "^2.9.0"
34
- },
35
- "devDependencies": {
36
- "@steroidsjs/core": "^3.0 || >=3.0.0-beta.1",
37
- "@types/enzyme": "^3.10.8",
38
- "@types/googlemaps": "^3.43.3",
39
- "@types/jest": "^26.0.22",
40
- "@types/markdown-to-jsx": "^6.11.3",
41
- "@types/node": "^14.14.37",
42
- "@types/overlayscrollbars": "^1.12.0",
43
- "@types/reach__router": "^1.3.7",
44
- "@types/react": "^17.0.3",
45
- "@types/react-color": "^3.0.4",
46
- "@types/react-syntax-highlighter": "^13.5.0",
47
- "@types/webpack-env": "^1.16.0",
48
- "copyfiles": "^2.4.1",
49
- "typescript": "^4.3.4"
50
- },
51
- "peerDependencies": {
52
- "@steroidsjs/core": "^3.0 || >=3.0.0-beta.1"
53
- }
2
+ "name": "@steroidsjs/bootstrap",
3
+ "version": "3.0.0-beta.10",
4
+ "description": "",
5
+ "main": "index.js",
6
+ "author": "Vladimir Kozhin <hello@kozhindev.com>",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/steroids/react-bootstrap"
10
+ },
11
+ "scripts": {
12
+ "lint": "eslint -c ./.eslintrc --ext .js,.jsx,.ts,.tsx ./src --quiet",
13
+ "build": "tsc && cp ./{package.json,LICENSE,README.md} dist && copyfiles -u 1 \"src/**/*.scss\" \"src/icons/*.svg\" dist"
14
+ },
15
+ "license": "MIT",
16
+ "homepage": "https://github.com/steroids/react-bootstrap",
17
+ "bugs": {
18
+ "url": "https://github.com/steroids/react-bootstrap/issues"
19
+ },
20
+ "dependencies": {
21
+ "@ckeditor/ckeditor5-react": "^3.0.2",
22
+ "@steroidsjs/ckeditor5": "^27.0.2-rc.2",
23
+ "bootstrap": "^4.5.2",
24
+ "date-fns": "^2.29.3",
25
+ "lodash": "^4.17.20",
26
+ "lodash-es": "^4.17.20",
27
+ "rc-slider": "^9.7.4",
28
+ "react": "^18.2.0",
29
+ "react-collapse": "^5.0.1",
30
+ "react-day-picker": "^7.4.10",
31
+ "react-dom": "^18.2.0",
32
+ "react-image-crop": "^9.0.2",
33
+ "react-modal": "^3.11.2",
34
+ "react-transition-group": "^2.9.0",
35
+ "react-use": "^17.4.0"
36
+ },
37
+ "devDependencies": {
38
+ "@steroidsjs/core": "^3.0 || >=3.0.0-beta.6",
39
+ "@steroidsjs/eslint-config": "^2.1.3",
40
+ "@types/enzyme": "^3.10.8",
41
+ "@types/googlemaps": "^3.43.3",
42
+ "@types/jest": "^26.0.22",
43
+ "@types/markdown-to-jsx": "^6.11.3",
44
+ "@types/node": "^14.14.37",
45
+ "@types/overlayscrollbars": "^1.12.0",
46
+ "@types/reach__router": "^1.3.7",
47
+ "@types/react": "^18.0.27",
48
+ "@types/react-color": "^3.0.4",
49
+ "@types/react-syntax-highlighter": "^13.5.0",
50
+ "@types/webpack-env": "^1.16.0",
51
+ "copyfiles": "^2.4.1",
52
+ "eslint": "^8.34.0",
53
+ "typescript": "^4.9.5"
54
+ },
55
+ "peerDependencies": {
56
+ "@steroidsjs/core": "^3.0 || >=3.0.0-beta.6"
57
+ }
54
58
  }
@@ -30,4 +30,4 @@
30
30
  border-color: map-get($color, color-light);
31
31
  box-shadow: none;
32
32
  }
33
- }
33
+ }
@@ -1,2 +1,2 @@
1
1
  @import "button";
2
- @import "card";
2
+ @import "card";
@@ -0,0 +1,153 @@
1
+ :root {
2
+ --primary: #651fff;
3
+ --primary-dark: #5218d0;
4
+ --primary-light: #dbcbff;
5
+ --secondary: #a3aee6;
6
+ --secondary-dark: #6b76ad;
7
+ --secondary-light: #d9dfff;
8
+ --success: #2bc945;
9
+ --success-dark: #2abd42;
10
+ --success-light: #b9ffc3;
11
+ --danger: #fb4e4e;
12
+ --danger-dark: #ec4c4c;
13
+ --danger-light: #ffbfbf;
14
+ --info: #a7efff;
15
+ --info-dark: #8fd8e9;
16
+ --info-light: #d3f7ff;
17
+ --warning: #ffe457;
18
+ --warning-dark: #ebd251;
19
+ --warning-light: #fff6c6;
20
+ --graphite: #323232;
21
+ --gray-dark: #e1e1e1;
22
+ --gray: #ededed;
23
+ --light-gray: #f8f8f8;
24
+ --dark: #6f6b76;
25
+ --light: #9088a1;
26
+
27
+ html[data-theme="dark"] {
28
+ --primary: #8b57ff;
29
+ --primary-dark: #6648a7;
30
+ --primary-light: #ba9bff;
31
+ --secondary: #9ea8db;
32
+ --secondary-dark: #616a95;
33
+ --secondary-light: #bcc3e9;
34
+ --success: #3cf25a;
35
+ --success-dark: #34cc4d;
36
+ --success-light: #74ff8b;
37
+ --danger: #fc6666;
38
+ --danger-dark: #dc5858;
39
+ --danger-light: #ffa1a1;
40
+ --info: #9ae1f1;
41
+ --info-dark: #77c4d6;
42
+ --info-light: #ccf6ff;
43
+ --warning: #ffe457;
44
+ --warning-dark: #ebd251;
45
+ --warning-light: #fff6c8;
46
+ --graphite: #414141;
47
+ --gray-dark: #4e4f57;
48
+ --gray: #5b5c6b;
49
+ --light-gray: #928b9d;
50
+ --dark: #6b6477;
51
+ --light: #b7afc7;
52
+ }
53
+ }
54
+
55
+ /*
56
+ * SCSS variables implementation
57
+ */
58
+ $primary: var(--primary) !default;
59
+ $primary-dark: var(--primary-dark) !default;
60
+ $primary-light: var(--primary-light) !default;
61
+ $secondary: var(--secondary) !default;
62
+ $secondary-dark: var(--secondary-dark) !default;
63
+ $secondary-light: var(--secondary-light) !default;
64
+ $success: var(--success) !default;
65
+ $success-dark: var(--success-dark) !default;
66
+ $success-light: var(--success-light) !default;
67
+ $danger: var(--danger) !default;
68
+ $danger-dark: var(--danger-dark) !default;
69
+ $danger-light: var(--danger-light) !default;
70
+ $info: var(--info) !default;
71
+ $info-dark: var(--info-dark) !default;
72
+ $info-light: var(--info-light) !default;
73
+ $warning: var(--warning) !default;
74
+ $warning-dark: var(--warning-dark) !default;
75
+ $warning-light: var(--warning-light) !default;
76
+ $graphite: var(--graphite) !default;
77
+ $gray-dark: var(--gray-dark) !default;
78
+ $gray: var(--gray) !default;
79
+ $light-gray: var(--light-gray) !default;
80
+ $dark: var(--dark) !default;
81
+ $light: var(--light) !default;
82
+
83
+ /*
84
+ * Common colors
85
+ */
86
+
87
+ $black: rgba(#000, 1) !default;
88
+ $black-60: rgba(#000, 0.6) !default;
89
+ $black-30: rgba(#000, 0.3) !default;
90
+ $black-10: rgba(#000, 0.1) !default;
91
+ $black-4: rgba(#000, 0.04) !default;
92
+ $white: #fff !default;
93
+
94
+ $text-color: #312c3a !default;
95
+ $link-color: #2ba3fb !default;
96
+
97
+ $gradient-purple: linear-gradient(180deg, #7433FF, #FFA3FD);
98
+ $gradient-red: linear-gradient(180deg, #EB0155, #FFFA80);
99
+
100
+ $color-themes: () !default;
101
+ $color-themes: map-merge(
102
+ (
103
+ "primary": (
104
+ "color": $primary,
105
+ "color-dark": $primary-dark,
106
+ "color-light": $primary-light,
107
+ "text-color": $white,
108
+ ),
109
+ "secondary": (
110
+ "color": $secondary,
111
+ "color-dark": $secondary-dark,
112
+ "color-light": $secondary-light,
113
+ "text-color": $white,
114
+ ),
115
+ "success": (
116
+ "color": $success,
117
+ "color-dark": $success-dark,
118
+ "color-light": $success-light,
119
+ "text-color": $white,
120
+ ),
121
+ "danger": (
122
+ "color": $danger,
123
+ "color-dark": $danger-dark,
124
+ "color-light": $danger-light,
125
+ "text-color": $white,
126
+ ),
127
+ "warning": (
128
+ "color": $warning,
129
+ "color-dark": $warning-dark,
130
+ "color-light": $warning-light,
131
+ "text-color": $dark,
132
+ ),
133
+ "info": (
134
+ "color": $info,
135
+ "color-dark": $info-dark,
136
+ "color-light": $info-light,
137
+ "text-color": $white,
138
+ ),
139
+ "light": (
140
+ "color": $light,
141
+ "color-dark": $dark,
142
+ "color-light": $light,
143
+ "text-color": $dark,
144
+ ),
145
+ "dark": (
146
+ "color": $dark,
147
+ "color-dark": $dark,
148
+ "color-light": $light,
149
+ "text-color": $white,
150
+ ),
151
+ ),
152
+ $color-themes
153
+ );
@@ -0,0 +1,24 @@
1
+ $grey-light: #D9D9D9;
2
+ $grey-lighter: #F8F8F8;
3
+ $grey: #F8F9FA;
4
+ $grey-dark: #2D2D2D;
5
+ $grey-darker: #78848E;
6
+ $grey-disabled: #F1F1F1;
7
+
8
+ $additional: #0596FF;
9
+
10
+ $border-default: #CCCCCC;
11
+ $border-hover: #B0B0B0;
12
+ $border-action: #39BBD8;
13
+ $border-typing: #A7EFFF;
14
+ $back-disabled: #EBEBEB;
15
+ $back-success: #F1FFEC;
16
+ $border-success: #64D03E;
17
+ $back-error: #FCE7E7;
18
+ $border-error: #FF4557;
19
+ $back-info: #ECFCFF;
20
+ $back-warning: #FFFCEA;
21
+
22
+ $shadow-default: 0px 0px 30px rgba(0, 0, 0, 0.1);
23
+
24
+ $heading: #152536 !default;
@@ -0,0 +1,5 @@
1
+ $radius-circle: 50%;
2
+ $radius-xlarge: 160px;
3
+ $radius-large: 12px;
4
+ $radius-medium: 10px;
5
+ $radius-small: 8px;
@@ -0,0 +1,12 @@
1
+ $spacing-240: 240px;
2
+ $spacing-160: 160px;
3
+ $spacing-124: 124px;
4
+ $spacing-80: 80px;
5
+ $spacing-64: 64px;
6
+ $spacing-40: 40px;
7
+ $spacing-32: 32px;
8
+ $spacing-24: 24px;
9
+ $spacing-16: 16px;
10
+ $spacing-8: 8px;
11
+ $spacing-4: 4px;
12
+ $spacing-2: 2px;
@@ -0,0 +1,39 @@
1
+ /*
2
+ * Common font variables
3
+ */
4
+
5
+ $font-family-nunito: "Nunito", sans-serif;
6
+
7
+ $font-size-xs: 12px;
8
+ $font-size-sm: 14px;
9
+ $font-size-base: 16px;
10
+ $font-size-lg: 18px;
11
+ $font-size-xl: 24px;
12
+ $font-size-2xl: 32px;
13
+
14
+ $line-height-xs: 17px;
15
+ $line-height-sm: 20px;
16
+ $line-height-base: 22px;
17
+ $line-height-lg: 25px;
18
+ $line-height-xl: 34px;
19
+ $line-height-2xl: 45px;
20
+
21
+ $font-weight-sm: 400;
22
+ $font-weight-md: 500;
23
+ $font-weight-lg: 700;
24
+
25
+
26
+ /*
27
+ * Button font variables
28
+ */
29
+
30
+ $btn-font-weight-sm: 400;
31
+ $btn-font-weight-lg: 800;
32
+
33
+ $btn-font-xs: 12px;
34
+ $btn-font-sm: 14px;
35
+ $btn-font-base: 16px;
36
+
37
+ $btn-line-height: 24px;
38
+
39
+ $btn-letter-spacing: 0.1em;
@@ -12,4 +12,4 @@ $calendar-day-border-radius: 10px !default;
12
12
  $calendar-shadow-shape: 0 0 0 3px !default;
13
13
  $calendar-selected-shadow: $calendar-shadow-shape $calendar-primary-light-color !default;
14
14
  $calendar-today-shadow: $calendar-shadow-shape $calendar-primary-light-color !default;
15
- $calendar-hover-shadow: $calendar-shadow-shape $calendar-secondary-color !default;
15
+ $calendar-hover-shadow: $calendar-shadow-shape $calendar-secondary-color !default;
@@ -17,4 +17,4 @@ $card-link-font-size: 16px !default;
17
17
  $card-border-radius: 3px !default;
18
18
  $card-button-border-radius: 4px !default;
19
19
 
20
- $card-header-background: $grey-lighter !default;
20
+ $card-header-background: $grey-lighter !default;
@@ -1,3 +1,3 @@
1
1
  $icon-size: 16px !default;
2
2
  $icon-size-sm: 12px !default;
3
- $icon-size-lg: 32px !default;
3
+ $icon-size-lg: 32px !default;
@@ -1,3 +1,58 @@
1
+ //Small
2
+ $input-label-margin-bottom-sm: 4px;
3
+
4
+ $input-padding-x-sm: 12px;
5
+ $input-padding-y-sm: 5px;
6
+
7
+ $input-margin-bottom-sm: 20px;
8
+ $input-outline-width-sm: 4px;
9
+ $input-border-width-sm: 1px;
10
+
11
+ $input-icon-margin-right-sm: 12px;
12
+ $input-icon-close-margin-left-sm: 12px;
13
+ $input-icon-size-sm: 24px;
14
+
15
+ $input-message-margin-top-sm: 4px;
16
+ $input-message-icon-size-sm: 16px;
17
+ $input-message-icon-margin-right-sm: 4px;
18
+
19
+ //Medium
20
+ $input-label-margin-bottom-md: $input-label-margin-bottom-sm;
21
+
22
+ $input-padding-x-md: $input-padding-x-sm;
23
+ $input-padding-y-md: 11px;
24
+
25
+ $input-margin-bottom-md: $input-margin-bottom-sm;
26
+ $input-outline-width-md: $input-outline-width-sm;
27
+ $input-border-width-md: $input-border-width-sm;
28
+
29
+ $input-icon-margin-right-md: $input-icon-margin-right-sm;
30
+ $input-icon-close-margin-left-md: $input-icon-close-margin-left-sm;
31
+ $input-icon-size-md: $input-icon-size-sm;
32
+
33
+ $input-message-margin-top-md: $input-message-margin-top-sm;
34
+ $input-message-icon-size-md: $input-message-icon-size-sm;
35
+ $input-message-icon-margin-right-md: $input-message-icon-margin-right-sm;
36
+
37
+ //Large
38
+ $input-label-margin-bottom-lg: $input-label-margin-bottom-sm;
39
+
40
+ $input-padding-x-lg: $input-padding-x-sm;
41
+ $input-padding-y-lg: 16px;
42
+
43
+ $input-margin-bottom-lg: $input-margin-bottom-sm;
44
+ $input-outline-width-lg: $input-outline-width-sm;
45
+ $input-border-width-lg: $input-border-width-sm;
46
+
47
+ $input-icon-margin-right-lg: $input-icon-margin-right-sm;
48
+ $input-icon-close-margin-left-lg: $input-icon-close-margin-left-sm;
49
+ $input-icon-size-lg: $input-icon-size-sm;
50
+
51
+ $input-message-margin-top-lg: $input-message-margin-top-sm;
52
+ $input-message-icon-size-lg: $input-message-icon-size-sm;
53
+ $input-message-icon-margin-right-lg: $input-message-icon-margin-right-sm;
54
+
55
+
1
56
  $input-height-sm: 28px !default;
2
57
  $input-height-md: 36px !default;
3
58
  $input-height-lg: 46px !default;
@@ -8,4 +63,4 @@ $input-border-radius: 4px !default;
8
63
  $input-padding-y: 0 !default;
9
64
  $input-padding-x: 8px !default;
10
65
  $input-addon-padding: 0.6rem !default;
11
- $input-text-padding: 0.4rem !default;
66
+ $input-text-padding: 0.4rem !default;
@@ -1,2 +1,2 @@
1
1
  $icon-size: 20px !default;
2
- $icon-color: $primary !default;
2
+ $icon-color: $primary !default;
@@ -1,6 +1,9 @@
1
- @import 'colors';
2
- @import 'components/alert';
3
- @import 'components/avatar';
1
+ @import 'common/colors';
2
+ @import 'common/typography';
3
+ @import 'common/spacing';
4
+ @import 'common/radiuses';
5
+ @import 'common/old-variables';
6
+
4
7
  @import 'components/button';
5
8
  @import 'components/calendar';
6
9
  @import 'components/card';
@@ -1 +0,0 @@
1
- export { default } from './IconView';
@@ -1,16 +0,0 @@
1
- "use strict";
2
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
- if (k2 === undefined) k2 = k;
4
- var desc = Object.getOwnPropertyDescriptor(m, k);
5
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
- desc = { enumerable: true, get: function() { return m[k]; } };
7
- }
8
- Object.defineProperty(o, k2, desc);
9
- }) : (function(o, m, k, k2) {
10
- if (k2 === undefined) k2 = k;
11
- o[k2] = m[k];
12
- }));
13
- exports.__esModule = true;
14
- exports["default"] = void 0;
15
- var IconView_1 = require("./IconView");
16
- __createBinding(exports, IconView_1, "default");