@capillarytech/blaze-ui 0.1.6-alpha.3 → 0.1.6-alpha.32

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 (145) hide show
  1. package/components/CapInput/CapInput.js +60 -0
  2. package/components/CapInput/Number.js +39 -0
  3. package/components/CapInput/Search.js +34 -0
  4. package/components/CapInput/TextArea.js +41 -0
  5. package/components/CapInput/index.js +13 -0
  6. package/components/CapInput/messages.js +24 -0
  7. package/components/CapInput/styles.js +8 -0
  8. package/components/CapSkeleton/CapSkeleton.js +24 -0
  9. package/components/CapSkeleton/index.js +7 -0
  10. package/components/CapSpin/CapSpin.js +30 -0
  11. package/components/CapSpin/index.js +7 -0
  12. package/components/CapTable/CapTable.js +118 -0
  13. package/components/CapTable/index.js +7 -0
  14. package/components/CapTable/loadable.js +18 -0
  15. package/components/CapTable/styles.js +23 -0
  16. package/components/CapTestSelect/CapTestSelect.js +36 -0
  17. package/components/CapTestSelect/index.js +7 -0
  18. package/components/CapUnifiedSelect/CapUnifiedSelect.js +359 -0
  19. package/components/CapUnifiedSelect/index.js +7 -0
  20. package/components/CapUnifiedSelect/messages.js +27 -0
  21. package/components/CapUnifiedSelect/styles.js +36 -0
  22. package/components/LocaleHoc/index.js +42 -0
  23. package/components/index.js +33 -0
  24. package/components/styled/index.js +14 -0
  25. package/components/styled/variables.js +70 -0
  26. package/{translations → components/translations}/en.js +37 -35
  27. package/dist/components/CapSkeleton/CapSkeleton.js +29 -0
  28. package/dist/components/CapSkeleton/index.js +13 -0
  29. package/dist/components/CapSpin/CapSpin.js +35 -0
  30. package/dist/components/CapSpin/index.js +13 -0
  31. package/dist/{CapTable → components/CapTable}/loadable.js +4 -4
  32. package/dist/components/CapTestSelect/CapTestSelect.js +40 -0
  33. package/dist/components/CapTestSelect/index.js +13 -0
  34. package/dist/components/CapUnifiedSelect/CapUnifiedSelect.js +406 -0
  35. package/dist/components/CapUnifiedSelect/index.js +13 -0
  36. package/dist/components/CapUnifiedSelect/messages.js +29 -0
  37. package/dist/components/CapUnifiedSelect/styles.js +39 -0
  38. package/dist/{index.js → components/index.js} +27 -0
  39. package/dist/esm/{CapRow/CapRow.js → components/CapSkeleton/CapSkeleton.js} +12 -12
  40. package/dist/esm/components/CapSkeleton/index.js +1 -0
  41. package/dist/esm/components/CapSpin/CapSpin.js +28 -0
  42. package/dist/esm/components/CapSpin/index.js +1 -0
  43. package/dist/esm/components/CapTable/loadable.js +12 -0
  44. package/dist/esm/components/CapTestSelect/CapTestSelect.js +34 -0
  45. package/dist/esm/components/CapTestSelect/index.js +1 -0
  46. package/dist/esm/components/CapUnifiedSelect/CapUnifiedSelect.js +398 -0
  47. package/dist/esm/components/CapUnifiedSelect/index.js +1 -0
  48. package/dist/esm/components/CapUnifiedSelect/styles.js +31 -0
  49. package/dist/esm/{index.js → components/index.js} +5 -1
  50. package/dist/esm/utils/index.js +1 -0
  51. package/dist/esm/utils/withStyles.js +23 -0
  52. package/dist/utils/index.js +13 -0
  53. package/dist/utils/withStyles.js +29 -0
  54. package/package.json +6 -10
  55. package/utils/index.js +7 -0
  56. package/utils/withStyles.js +15 -0
  57. package/CapHeading/CapHeading.js +0 -71
  58. package/CapHeading/index.js +0 -1
  59. package/CapHeading/styles.js +0 -125
  60. package/CapInfoNote/CapInfoNote.js +0 -54
  61. package/CapInfoNote/index.js +0 -1
  62. package/CapInfoNote/styles.js +0 -63
  63. package/CapInput/CapInput.js +0 -67
  64. package/CapInput/Number.js +0 -38
  65. package/CapInput/Search.js +0 -32
  66. package/CapInput/TextArea.js +0 -45
  67. package/CapInput/index.js +0 -10
  68. package/CapInput/loadable.js +0 -9
  69. package/CapInput/messages.js +0 -27
  70. package/CapInput/styles.js +0 -81
  71. package/CapLabel/CapLabel.js +0 -106
  72. package/CapLabel/index.js +0 -1
  73. package/CapLabel/styles.js +0 -221
  74. package/CapRow/CapRow.js +0 -22
  75. package/CapRow/index.js +0 -1
  76. package/CapRow/styles.js +0 -9
  77. package/CapTable/CapTable.js +0 -146
  78. package/CapTable/index.js +0 -3
  79. package/CapTable/loadable.js +0 -13
  80. package/CapTable/styles.js +0 -134
  81. package/CapTooltip/CapTooltip.js +0 -36
  82. package/CapTooltip/index.js +0 -1
  83. package/CapTooltip/styles.js +0 -42
  84. package/CapUnifiedSelect/CapUnifiedSelect.js +0 -121
  85. package/CapUnifiedSelect/index.js +0 -4
  86. package/CapUnifiedSelect/loadable.js +0 -3
  87. package/CapUnifiedSelect/messages.js +0 -24
  88. package/CapUnifiedSelect/styles.js +0 -223
  89. package/LocaleHoc/index.js +0 -38
  90. package/dist/235.index.js +0 -2
  91. package/dist/235.index.js.LICENSE.txt +0 -29
  92. package/dist/603.index.js +0 -1
  93. package/dist/esm/CapHeading/CapHeading.js +0 -41
  94. package/dist/esm/CapHeading/index.js +0 -1
  95. package/dist/esm/CapHeading/styles.js +0 -123
  96. package/dist/esm/CapInfoNote/CapInfoNote.js +0 -62
  97. package/dist/esm/CapInfoNote/index.js +0 -1
  98. package/dist/esm/CapInfoNote/styles.js +0 -6
  99. package/dist/esm/CapInput/loadable.js +0 -9
  100. package/dist/esm/CapLabel/CapLabel.js +0 -50
  101. package/dist/esm/CapLabel/index.js +0 -1
  102. package/dist/esm/CapLabel/styles.js +0 -219
  103. package/dist/esm/CapRow/index.js +0 -1
  104. package/dist/esm/CapRow/styles.js +0 -5
  105. package/dist/esm/CapTable/loadable.js +0 -12
  106. package/dist/esm/CapTooltip/CapTooltip.js +0 -34
  107. package/dist/esm/CapTooltip/index.js +0 -1
  108. package/dist/esm/CapTooltip/styles.js +0 -6
  109. package/dist/esm/CapUnifiedSelect/CapUnifiedSelect.js +0 -101
  110. package/dist/esm/CapUnifiedSelect/index.js +0 -3
  111. package/dist/esm/CapUnifiedSelect/loadable.js +0 -4
  112. package/dist/esm/CapUnifiedSelect/styles.js +0 -15
  113. package/dist/index.js.LICENSE.txt +0 -7
  114. package/index.js +0 -10
  115. package/styled/index.js +0 -6
  116. package/styled/variables.js +0 -89
  117. /package/dist/{CapInput → components/CapInput}/CapInput.js +0 -0
  118. /package/dist/{CapInput → components/CapInput}/Number.js +0 -0
  119. /package/dist/{CapInput → components/CapInput}/Search.js +0 -0
  120. /package/dist/{CapInput → components/CapInput}/TextArea.js +0 -0
  121. /package/dist/{CapInput → components/CapInput}/index.js +0 -0
  122. /package/dist/{CapInput → components/CapInput}/messages.js +0 -0
  123. /package/dist/{CapInput → components/CapInput}/styles.js +0 -0
  124. /package/dist/{CapTable → components/CapTable}/CapTable.js +0 -0
  125. /package/dist/{CapTable → components/CapTable}/index.js +0 -0
  126. /package/dist/{CapTable → components/CapTable}/styles.js +0 -0
  127. /package/dist/{LocaleHoc → components/LocaleHoc}/index.js +0 -0
  128. /package/dist/{styled → components/styled}/index.js +0 -0
  129. /package/dist/{styled → components/styled}/variables.js +0 -0
  130. /package/dist/{translations → components/translations}/en.js +0 -0
  131. /package/dist/esm/{CapInput → components/CapInput}/CapInput.js +0 -0
  132. /package/dist/esm/{CapInput → components/CapInput}/Number.js +0 -0
  133. /package/dist/esm/{CapInput → components/CapInput}/Search.js +0 -0
  134. /package/dist/esm/{CapInput → components/CapInput}/TextArea.js +0 -0
  135. /package/dist/esm/{CapInput → components/CapInput}/index.js +0 -0
  136. /package/dist/esm/{CapInput → components/CapInput}/messages.js +0 -0
  137. /package/dist/esm/{CapInput → components/CapInput}/styles.js +0 -0
  138. /package/dist/esm/{CapTable → components/CapTable}/CapTable.js +0 -0
  139. /package/dist/esm/{CapTable → components/CapTable}/index.js +0 -0
  140. /package/dist/esm/{CapTable → components/CapTable}/styles.js +0 -0
  141. /package/dist/esm/{CapUnifiedSelect → components/CapUnifiedSelect}/messages.js +0 -0
  142. /package/dist/esm/{LocaleHoc → components/LocaleHoc}/index.js +0 -0
  143. /package/dist/esm/{styled → components/styled}/index.js +0 -0
  144. /package/dist/esm/{styled → components/styled}/variables.js +0 -0
  145. /package/dist/esm/{translations → components/translations}/en.js +0 -0
@@ -1,101 +0,0 @@
1
- function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
2
- // CapUnifiedSelect component using Ant Design v5 Select and TreeSelect directly
3
- import React from 'react';
4
- import PropTypes from 'prop-types';
5
- import { Select, TreeSelect } from 'antd';
6
- import { SelectWrapper, HeaderWrapper, StyledInfoIcon } from './styles';
7
- import CapLabel from '../CapLabel';
8
- import CapTooltip from '../CapTooltip';
9
- function CapUnifiedSelect(_ref) {
10
- var type = _ref.type,
11
- _ref$options = _ref.options,
12
- options = _ref$options === void 0 ? [] : _ref$options,
13
- treeData = _ref.treeData,
14
- value = _ref.value,
15
- onChange = _ref.onChange,
16
- _ref$placeholder = _ref.placeholder,
17
- placeholder = _ref$placeholder === void 0 ? 'Select an option' : _ref$placeholder,
18
- className = _ref.className,
19
- style = _ref.style,
20
- _ref$allowClear = _ref.allowClear,
21
- allowClear = _ref$allowClear === void 0 ? false : _ref$allowClear,
22
- _ref$showSearch = _ref.showSearch,
23
- showSearch = _ref$showSearch === void 0 ? false : _ref$showSearch,
24
- label = _ref.label,
25
- tooltip = _ref.tooltip,
26
- _ref$disabled = _ref.disabled,
27
- disabled = _ref$disabled === void 0 ? false : _ref$disabled;
28
- var selectVirtualizationProps = {
29
- listHeight: 256
30
- };
31
- var treeSelectVirtualizationProps = {
32
- listHeight: 256,
33
- listItemHeight: 32
34
- };
35
- var renderHeader = function renderHeader() {
36
- if (!label && !tooltip) return null;
37
- return /*#__PURE__*/React.createElement(HeaderWrapper, {
38
- className: disabled ? 'disabled' : ''
39
- }, label && /*#__PURE__*/React.createElement(CapLabel, {
40
- type: "label16",
41
- className: disabled ? 'disabled' : ''
42
- }, label), tooltip && /*#__PURE__*/React.createElement(CapTooltip, {
43
- title: tooltip
44
- }, /*#__PURE__*/React.createElement(StyledInfoIcon, {
45
- className: disabled ? 'disabled' : ''
46
- })));
47
- };
48
- var renderDropdown = function renderDropdown() {
49
- if (type === 'treeSelect' || type === 'multiTreeSelect') {
50
- return /*#__PURE__*/React.createElement(TreeSelect, _extends({
51
- treeData: treeData || options,
52
- value: value,
53
- onChange: onChange,
54
- placeholder: placeholder,
55
- className: className,
56
- style: style,
57
- allowClear: allowClear,
58
- showSearch: showSearch,
59
- multiple: type === 'multiTreeSelect' ? true : false,
60
- virtual: true,
61
- treeDefaultExpandAll: true,
62
- disabled: disabled
63
- }, treeSelectVirtualizationProps));
64
- }
65
- return /*#__PURE__*/React.createElement(Select, _extends({
66
- value: value,
67
- onChange: onChange,
68
- placeholder: placeholder,
69
- className: className,
70
- style: style,
71
- allowClear: allowClear,
72
- showSearch: showSearch,
73
- options: options,
74
- mode: type === 'multiSelect' ? 'multiple' : undefined,
75
- virtual: true,
76
- disabled: disabled
77
- }, selectVirtualizationProps));
78
- };
79
- return /*#__PURE__*/React.createElement(SelectWrapper, null, renderHeader(), renderDropdown());
80
- }
81
- CapUnifiedSelect.propTypes = {
82
- type: PropTypes.oneOf(['select', 'multiSelect', 'treeSelect', 'multiTreeSelect']),
83
- options: PropTypes.array,
84
- treeData: PropTypes.array,
85
- value: PropTypes.any,
86
- onChange: PropTypes.func,
87
- placeholder: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
88
- className: PropTypes.string,
89
- style: PropTypes.object,
90
- allowClear: PropTypes.bool,
91
- showSearch: PropTypes.bool,
92
- label: PropTypes.string,
93
- tooltip: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
94
- disabled: PropTypes.bool
95
- };
96
- CapUnifiedSelect.defaultProps = {
97
- type: 'select',
98
- allowClear: false,
99
- showSearch: false
100
- };
101
- export default CapUnifiedSelect;
@@ -1,3 +0,0 @@
1
- import CapUnifiedSelect from './CapUnifiedSelect';
2
- import CapUnifiedSelectLoadable from './loadable';
3
- export default CapUnifiedSelectLoadable;
@@ -1,4 +0,0 @@
1
- import loadable from '@loadable/component';
2
- export default loadable(function () {
3
- return import('./CapUnifiedSelect');
4
- });
@@ -1,15 +0,0 @@
1
- import styled, { css } from 'styled-components';
2
- import * as styledVars from '../styled/variables';
3
- export var SelectWrapper = styled.div.withConfig({
4
- displayName: "SelectWrapper",
5
- componentId: "sc-3v7xpu-0"
6
- })(["display:flex;flex-direction:column;gap:8px;width:100%;&.disabled{cursor:not-allowed;}"]);
7
- export var HeaderWrapper = styled.div.withConfig({
8
- displayName: "HeaderWrapper",
9
- componentId: "sc-3v7xpu-1"
10
- })(["display:flex;align-items:center;gap:4px;&.disabled{opacity:0.5;cursor:not-allowed;}"]);
11
- export var StyledInfoIcon = styled.span.withConfig({
12
- displayName: "StyledInfoIcon",
13
- componentId: "sc-3v7xpu-2"
14
- })(["color:", ";font-size:16px;cursor:help;&:hover{color:", ";}&.disabled{cursor:not-allowed;&:hover{color:", ";}}"], styledVars.CAP_G2, styledVars.CAP_G1, styledVars.CAP_G2);
15
- export var selectStyles = css(["&.cap-unified-select{width:100%;font-family:", ";.ant-select-selector{border-radius:", ";transition:", ";padding:0 12px;min-height:32px;display:flex;align-items:center;&:hover{border-color:", ";}}.cap-unified-select-right-slot{display:flex;align-items:center;gap:8px;margin-left:8px;}&.ant-select-focused{.ant-select-selector{border-color:", " !important;box-shadow:none !important;}}&.ant-select-status-error{.ant-select-selector{border-color:", ";}}&.ant-select-disabled{.ant-select-selector{background-color:", ";cursor:not-allowed;}}.ant-select-dropdown{padding:4px;border-radius:", ";box-shadow:0 2px 8px rgba(0,0,0,0.15);.ant-select-item{border-radius:", ";padding:8px 12px;transition:", ";&-option-selected{background-color:", ";color:", ";font-weight:500;}&-option-active{background-color:", ";}}.ant-select-search{padding:8px;input{border-radius:", ";transition:", ";&:focus{border-color:", ";box-shadow:none;}}}}&.ant-select-multiple{.ant-select-selection-item{background-color:", ";border-color:", ";border-radius:", ";color:", ";margin:2px 4px 2px 0;padding:0 8px;height:24px;line-height:22px;&-remove{color:", ";&:hover{color:", ";}}}.ant-select-selection-overflow{flex-wrap:wrap;gap:4px;}}.ant-select-tree{padding:4px 0;.ant-select-tree-node-content-wrapper{padding:4px 8px;border-radius:", ";transition:", ";&:hover{background-color:", ";}&.ant-select-tree-node-selected{background-color:", ";color:", ";font-weight:500;}}.ant-select-tree-switcher{width:24px;height:24px;line-height:24px;}.ant-select-tree-checkbox{margin:4px 8px 4px 0;}}&.ant-select-lg{.ant-select-selector{height:40px;padding:0 16px;}.ant-select-selection-item{height:28px;line-height:26px;}}&.ant-select-sm{.ant-select-selector{height:24px;padding:0 8px;}.ant-select-selection-item{height:20px;line-height:18px;}}&.ant-select-loading{.ant-select-arrow{.anticon-loading{color:", ";}}}}"], styledVars.FONT_FAMILY, styledVars.RADIUS_04, styledVars.TRANSITION_ALL, styledVars.CAP_G11, styledVars.CAP_G01, styledVars.CAP_RED, styledVars.CAP_G08, styledVars.RADIUS_04, styledVars.RADIUS_04, styledVars.TRANSITION_ALL, styledVars.CAP_PRIMARY.light, styledVars.CAP_PRIMARY.base, styledVars.CAP_G08, styledVars.RADIUS_04, styledVars.TRANSITION_ALL, styledVars.CAP_G01, styledVars.CAP_PRIMARY.light, styledVars.CAP_PRIMARY.light, styledVars.RADIUS_04, styledVars.CAP_PRIMARY.base, styledVars.CAP_PRIMARY.base, styledVars.CAP_PRIMARY.hover, styledVars.RADIUS_04, styledVars.TRANSITION_ALL, styledVars.CAP_G08, styledVars.CAP_PRIMARY.light, styledVars.CAP_PRIMARY.base, styledVars.CAP_PRIMARY.base);
@@ -1,7 +0,0 @@
1
- /**![check-circle](data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTAiIGhlaWdodD0iNTAiIGZpbGw9IiNjYWNhY2EiIHZpZXdCb3g9IjY0IDY0IDg5NiA4OTYiIGZvY3VzYWJsZT0iZmFsc2UiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZD0iTTY5OSAzNTNoLTQ2LjljLTEwLjIgMC0x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2YzAtNC40LTMuNi04LTgtOGgtNDhjLTQuNCAwLTggMy42LTggOHptNDc1LjcgNDQwbC00MTYtNzIwYy02LjItMTAuNy0xNi45LTE2LTI3LjctMTZzLTIxLjYgNS4zLTI3LjcgMTZsLTQxNiA3MjBDNTYgODc3LjQgNzEuNCA5MDQgOTYgOTA0aDgzMmMyNC42IDAgNDAtMjYuNiAyNy43LTQ4em0tNzgzLjUtMjcuOUw1MTIgMjM5LjlsMzM5LjggNTg4LjJIMTcyLjJ6IiAvPjwvc3ZnPg==) */
package/index.js DELETED
@@ -1,10 +0,0 @@
1
- // Import and export all components
2
- export { default as CapInput } from './CapInput';
3
- export { default as CapTable } from './CapTable';
4
-
5
- // Export utilities
6
- export { default as LocaleHoc } from './LocaleHoc';
7
-
8
- // Export styled utilities
9
- export * as styledVars from './styled/variables';
10
- export { default as styled } from './styled';
package/styled/index.js DELETED
@@ -1,6 +0,0 @@
1
- import * as styledVars from './variables';
2
-
3
- export default styledVars;
4
-
5
- // Re-export all variables for easier access
6
- export * from './variables';
@@ -1,89 +0,0 @@
1
- /* Color Palette */
2
- //========================
3
-
4
- // Primary colors
5
- export const CAP_PRIMARY = {
6
- base: "#47af46",
7
- hover: "#1f9a1d",
8
- disabled: "#a1d8a0",
9
- };
10
-
11
- // Secondary colors
12
- export const CAP_SECONDARY = {
13
- base: "#2466ea",
14
- light: 'rgba("#2466ea", 0.1)',
15
- };
16
-
17
- // Custom colors
18
- export const CAP_ORANGE = "#f87d23";
19
- export const CAP_ORANGE01 = "#ffe5d2";
20
- export const CAP_ORANGE02 = "#fa7d02";
21
- export const CAP_YELLOW = "#fec52e";
22
- export const CAP_YELLOW01 = "#e8bc25";
23
- export const CAP_YELLOW02 = "#f9d438";
24
- export const CAP_BLUE = "#23cccc";
25
- export const CAP_PURPLE = "#8517e5";
26
- export const CAP_PINK = "#e51fa3";
27
- export const CAP_RED = "#ea213a";
28
- export const CAP_ICON = "#7a869a";
29
- export const CAP_PALE_GREY = "#e9f0fe";
30
- export const CAP_BLUE01 = "#2466eb";
31
- export const CAP_BLUE02 = "#1d61ee";
32
- export const CAP_RED01 = "#e51fa3";
33
- export const CAP_RED02 = "#f5222d";
34
- export const CAP_RED03 = "#ed1b34";
35
- export const CAP_PURPLE01 = "#6563ff";
36
- export const CAP_PURPLE02 = "#a451ff";
37
- export const CAP_PURPLE03 = "#f2e7fe";
38
- export const CAP_PURPLE04 = "#d4e1fc";
39
- export const CAP_GREEN01 = "#6bb56b";
40
- export const CAP_GREEN02 = "#ecf7ec";
41
-
42
- // Grey colors
43
- export const CAP_G01 = "#091e42";
44
- export const CAP_G02 = "#253858";
45
- export const CAP_G03 = "#42526e";
46
- export const CAP_G04 = "#5e6c84";
47
- export const CAP_G05 = "#97a0af";
48
- export const CAP_G06 = "#b3bac5";
49
- export const CAP_G07 = "#dfe2e7";
50
- export const CAP_G08 = "#ebecf0";
51
- export const CAP_G09 = "#f4f5f7";
52
- export const CAP_G10 = "#fafbfc";
53
- export const CAP_G11 = "#7a869a";
54
- export const CAP_G12 = "#e8e8e8";
55
- export const CAP_G13 = "#ecece7";
56
- export const CAP_G14 = "#e9f0fd";
57
- export const CAP_G15 = "#efefef";
58
- export const CAP_G16 = "#2a2a2a";
59
- export const CAP_G17 = "#7F8185";
60
- export const CAP_G18 = "#dcdee2";
61
- export const CAP_G19 = "#8a9ab2";
62
- export const CAP_G20 = "#c2c2c2";
63
-
64
- export const CAP_WHITE = "#ffffff";
65
- export const CAP_BLACK = "#000000";
66
-
67
- /* Fonts */
68
- // ==============
69
- export const FONT_FAMILY = '"Roboto", sans-serif';
70
- export const FONT_WEIGHT_REGULAR = 400;
71
- export const FONT_WEIGHT_MEDIUM = 500;
72
-
73
- /* Spacing */
74
- // ==============
75
- export const SPACING_04 = "4px";
76
- export const SPACING_08 = "8px";
77
- export const SPACING_12 = "12px";
78
- export const SPACING_16 = "16px";
79
- export const SPACING_24 = "24px";
80
- export const SPACING_32 = "32px";
81
-
82
- /* Border Radius */
83
- // ==============
84
- export const RADIUS_04 = "4px";
85
- export const RADIUS_08 = "8px";
86
-
87
- /* Transition */
88
- // ==============
89
- export const TRANSITION_ALL = "all 0.3s ease";
File without changes
File without changes
File without changes
File without changes
File without changes