@pingux/astro 2.75.0 → 2.76.0-alpha.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.
- package/lib/cjs/components/Badge/Badge.styles.d.ts +130 -0
- package/lib/cjs/components/Badge/Badge.styles.js +34 -1
- package/lib/cjs/components/Button/Button.stories.js +1 -1
- package/lib/cjs/components/DataTable/DataTable.js +8 -4
- package/lib/cjs/components/DataTable/DataTable.styles.d.ts +1 -0
- package/lib/cjs/components/DataTable/DataTable.styles.js +2 -1
- package/lib/cjs/components/DataTable/DataTableBadge.js +49 -19
- package/lib/cjs/components/DatePicker/DatePicker.js +1 -1
- package/lib/cjs/components/ListView/ListView.js +8 -4
- package/lib/cjs/components/ListView/ListView.stories.js +1 -1
- package/lib/cjs/components/ListView/ListView.styles.d.ts +7 -0
- package/lib/cjs/components/ListView/ListView.styles.js +15 -0
- package/lib/cjs/components/ListView/ListViewFocusWrapper.js +2 -1
- package/lib/cjs/components/ListViewItem/ListViewItem.js +6 -4
- package/lib/cjs/components/ListViewItem/ListViewItem.styles.js +7 -1
- package/lib/cjs/components/MultivaluesField/DefaultMultivaluesField.js +1 -1
- package/lib/cjs/components/NavBar/NavBar.stories.js +1 -4
- package/lib/cjs/components/PanelHeader/PanelHeader.js +1 -1
- package/lib/cjs/hooks/useExpandableListViewItem/useExpandableListViewItem.js +1 -6
- package/lib/cjs/index.d.ts +1 -0
- package/lib/cjs/index.js +8 -0
- package/lib/cjs/recipes/ListAndPanel.stories.js +1 -2
- package/lib/cjs/recipes/NextGen/DefaultAvatar.stories.d.ts +6 -0
- package/lib/cjs/recipes/NextGen/DefaultAvatar.stories.js +41 -0
- package/lib/cjs/recipes/NextGen/ListViewNextGen.stories.js +152 -0
- package/lib/cjs/recipes/NextGen/ModalNextGen.stories.d.ts +6 -0
- package/lib/cjs/recipes/NextGen/ModalNextGen.stories.js +72 -0
- package/lib/cjs/recipes/NextGen/NavBarNextGen.stories.d.ts +6 -0
- package/lib/cjs/recipes/NextGen/NavBarNextGen.stories.js +233 -0
- package/lib/cjs/recipes/NextGen/NextGenDataTable.stories.d.ts +6 -0
- package/lib/cjs/recipes/NextGen/NextGenDataTable.stories.js +152 -0
- package/lib/cjs/styles/themes/next-gen/colors/colors.d.ts +209 -0
- package/lib/cjs/styles/themes/next-gen/colors/colors.js +112 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.d.ts +2 -0
- package/lib/cjs/styles/themes/next-gen/convertedComponentList.js +10 -0
- package/lib/cjs/styles/themes/next-gen/forms.d.ts +235 -0
- package/lib/cjs/styles/themes/next-gen/forms.js +89 -0
- package/lib/cjs/styles/themes/next-gen/index.js +14 -0
- package/lib/cjs/styles/themes/next-gen/next-gen.d.ts +1455 -0
- package/lib/cjs/styles/themes/next-gen/next-gen.js +52 -0
- package/lib/cjs/styles/themes/next-gen/open_sans.css +1 -0
- package/lib/cjs/styles/themes/next-gen/text.d.ts +15 -0
- package/lib/cjs/styles/themes/next-gen/text.js +26 -0
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.d.ts +134 -0
- package/lib/cjs/styles/themes/next-gen/tokens/colorTokens.js +142 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.d.ts +574 -0
- package/lib/cjs/styles/themes/next-gen/variants/button.js +235 -0
- package/lib/cjs/styles/themes/next-gen/variants/input.d.ts +66 -0
- package/lib/cjs/styles/themes/next-gen/variants/input.js +140 -0
- package/lib/cjs/styles/themes/next-gen/variants/label.d.ts +2 -0
- package/lib/cjs/styles/themes/next-gen/variants/label.js +34 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.d.ts +19 -0
- package/lib/cjs/styles/themes/next-gen/variants/text.js +27 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.d.ts +564 -0
- package/lib/cjs/styles/themes/next-gen/variants/variants.js +462 -0
- package/lib/cjs/styles/variants/variants.js +2 -0
- package/lib/cjs/types/dataTable.d.ts +1 -1
- package/lib/cjs/types/listView.d.ts +1 -0
- package/lib/components/Badge/Badge.styles.js +34 -1
- package/lib/components/Button/Button.stories.js +1 -1
- package/lib/components/DataTable/DataTable.js +8 -4
- package/lib/components/DataTable/DataTable.styles.js +2 -1
- package/lib/components/DataTable/DataTableBadge.js +49 -19
- package/lib/components/DatePicker/DatePicker.js +1 -1
- package/lib/components/ListView/ListView.js +8 -4
- package/lib/components/ListView/ListView.stories.js +1 -1
- package/lib/components/ListView/ListView.styles.js +7 -0
- package/lib/components/ListView/ListViewFocusWrapper.js +2 -1
- package/lib/components/ListViewItem/ListViewItem.js +6 -4
- package/lib/components/ListViewItem/ListViewItem.styles.js +7 -1
- package/lib/components/MultivaluesField/DefaultMultivaluesField.js +1 -1
- package/lib/components/NavBar/NavBar.stories.js +1 -4
- package/lib/components/PanelHeader/PanelHeader.js +1 -1
- package/lib/hooks/useExpandableListViewItem/useExpandableListViewItem.js +1 -6
- package/lib/index.js +1 -0
- package/lib/recipes/ListAndPanel.stories.js +1 -2
- package/lib/recipes/NextGen/DefaultAvatar.stories.js +31 -0
- package/lib/recipes/NextGen/ListViewNextGen.stories.js +142 -0
- package/lib/recipes/NextGen/ModalNextGen.stories.js +62 -0
- package/lib/recipes/NextGen/NavBarNextGen.stories.js +223 -0
- package/lib/recipes/NextGen/NextGenDataTable.stories.js +142 -0
- package/lib/styles/themes/next-gen/colors/colors.js +101 -0
- package/lib/styles/themes/next-gen/convertedComponentList.js +2 -0
- package/lib/styles/themes/next-gen/forms.js +75 -0
- package/lib/styles/themes/next-gen/index.js +1 -0
- package/lib/styles/themes/next-gen/next-gen.js +40 -0
- package/lib/styles/themes/next-gen/open_sans.css +1 -0
- package/lib/styles/themes/next-gen/text.js +16 -0
- package/lib/styles/themes/next-gen/tokens/colorTokens.js +134 -0
- package/lib/styles/themes/next-gen/variants/button.js +227 -0
- package/lib/styles/themes/next-gen/variants/input.js +131 -0
- package/lib/styles/themes/next-gen/variants/label.js +26 -0
- package/lib/styles/themes/next-gen/variants/text.js +19 -0
- package/lib/styles/themes/next-gen/variants/variants.js +452 -0
- package/lib/styles/variants/variants.js +2 -0
- package/package.json +3 -1
@@ -0,0 +1,134 @@
|
|
1
|
+
export var nextGenColors = {
|
2
|
+
'white': '#ffffff',
|
3
|
+
'blue-100': '#eaf2fd',
|
4
|
+
'blue-200': '#a3c7f6',
|
5
|
+
'blue-300': '#76abf1',
|
6
|
+
'blue-400': '#488fed',
|
7
|
+
'blue-500': '#1a73e8',
|
8
|
+
'blue-600': '#155cba',
|
9
|
+
'blue-700': '#10458b',
|
10
|
+
'blue-800': '#0a2e5d',
|
11
|
+
'blue-900': '#05172e',
|
12
|
+
'blue': '#1a73e8',
|
13
|
+
'indigo-100': '#f1dbf9',
|
14
|
+
'indigo-200': '#e3b8f3',
|
15
|
+
'indigo-300': '#d694ed',
|
16
|
+
'indigo-400': '#c871e7',
|
17
|
+
'indigo-500': '#BA4DE1',
|
18
|
+
'indigo-600': '#953eb4',
|
19
|
+
'indigo-700': '#702e87',
|
20
|
+
'indigo-800': '#4a1f5a',
|
21
|
+
'indigo-900': '#250f2d',
|
22
|
+
'indigo': '#BA4DE1',
|
23
|
+
'purple-100': '#e2d9f3',
|
24
|
+
'purple-200': '#c5b3e6',
|
25
|
+
'purple-300': '#a98eda',
|
26
|
+
'purple-400': '#8c68cd',
|
27
|
+
'purple-500': '#6f42c1',
|
28
|
+
'purple-600': '#59359a',
|
29
|
+
'purple-700': '#432874',
|
30
|
+
'purple-800': '#2c1a4d',
|
31
|
+
'purple-900': '#160d27',
|
32
|
+
'purple': '#6f42c1',
|
33
|
+
'pink-100': '#f7d6e6',
|
34
|
+
'pink-200': '#efadce',
|
35
|
+
'pink-300': '#e685b5',
|
36
|
+
'pink-400': '#de5c9d',
|
37
|
+
'pink-500': '#d63384',
|
38
|
+
'pink-600': '#ab296a',
|
39
|
+
'pink-700': '#801f4f',
|
40
|
+
'pink-800': '#561435',
|
41
|
+
'pink-900': '#2b0a1a',
|
42
|
+
'pink': '#d63384',
|
43
|
+
'red-100': '#fde1de',
|
44
|
+
'red-200': '#fcc3bd',
|
45
|
+
'red-300': '#faa49d',
|
46
|
+
'red-400': '#f9867c',
|
47
|
+
'red-500': '#f7685b',
|
48
|
+
'red-600': '#c65349',
|
49
|
+
'red-700': '#943e37',
|
50
|
+
'red-800': '#632a24',
|
51
|
+
'red-900': '#311512',
|
52
|
+
'red': '#f7685b',
|
53
|
+
'orange-100': '#ffe5d0',
|
54
|
+
'orange-200': '#fecba1',
|
55
|
+
'orange-300': '#feb272',
|
56
|
+
'orange-400': '#fd9843',
|
57
|
+
'orange-500': '#fd7e14',
|
58
|
+
'orange-600': '#ca6510',
|
59
|
+
'orange-700': '#984c0c',
|
60
|
+
'orange-800': '#653208',
|
61
|
+
'orange-900': '#331904',
|
62
|
+
'orange': '#fd7e14',
|
63
|
+
'yellow-100': '#fff1da',
|
64
|
+
'yellow-200': '#ffe3b5',
|
65
|
+
'yellow-300': '#ffd590',
|
66
|
+
'yellow-400': '#ffc76b',
|
67
|
+
'yellow-500': '#ffb946',
|
68
|
+
'yellow-600': '#cc9438',
|
69
|
+
'yellow-700': '#996f2a',
|
70
|
+
'yellow-800': '#664a1c',
|
71
|
+
'yellow-900': '#33250e',
|
72
|
+
'yellow': '#ffb946',
|
73
|
+
'green-100': '#d5f6e4',
|
74
|
+
'green-200': '#abeeca',
|
75
|
+
'green-300': '#82e5af',
|
76
|
+
'green-400': '#58dd95',
|
77
|
+
'green-500': '#2ed47a',
|
78
|
+
'green-600': '#25aa62',
|
79
|
+
'green-700': '#1c7f49',
|
80
|
+
'green-800': '#125531',
|
81
|
+
'green-900': '#092a18',
|
82
|
+
'green': '#2ed47a',
|
83
|
+
'teal-100': '#d1ecf1',
|
84
|
+
'teal-200': '#a2dae3',
|
85
|
+
'teal-300': '#74c7d4',
|
86
|
+
'teal-400': '#45b5c6',
|
87
|
+
'teal-500': '#17A2B8',
|
88
|
+
'teal-600': '#128293',
|
89
|
+
'teal-700': '#0e616e',
|
90
|
+
'teal-800': '#09414a',
|
91
|
+
'teal-900': '#052025',
|
92
|
+
'teal': '#17A2B8',
|
93
|
+
'cyan-100': '#cff4fc',
|
94
|
+
'cyan-200': '#9eeaf9',
|
95
|
+
'cyan-300': '#6edff6',
|
96
|
+
'cyan-400': '#3dd5f3',
|
97
|
+
'cyan-500': '#0dcaf0',
|
98
|
+
'cyan-600': '#0aa2c0',
|
99
|
+
'cyan-700': '#087990',
|
100
|
+
'cyan-800': '#055160',
|
101
|
+
'cyan-900': '#032830',
|
102
|
+
'cyan': '#0dcaf0',
|
103
|
+
'gray-100': '#f6f8fa',
|
104
|
+
'gray-200': '#e7eef4',
|
105
|
+
'gray-300': '#d3d8e0',
|
106
|
+
'gray-400': '#c0c9d5',
|
107
|
+
'gray-500': '#69788B',
|
108
|
+
'gray-600': '#5e6d82',
|
109
|
+
'gray-700': '#455469',
|
110
|
+
'gray-800': '#324054',
|
111
|
+
'gray-900': '#23282e',
|
112
|
+
'common': {
|
113
|
+
'background': {
|
114
|
+
'base': '#ffffff',
|
115
|
+
'secondary': '#f6f8fa'
|
116
|
+
},
|
117
|
+
'border': '#69788B',
|
118
|
+
'hairline': '#e7eef4'
|
119
|
+
},
|
120
|
+
'font': {
|
121
|
+
'base': '#23282e',
|
122
|
+
'light': '#5e6d82',
|
123
|
+
'link': '#1a73e8',
|
124
|
+
'label': '#5e6d82'
|
125
|
+
},
|
126
|
+
'active': '#1a73e8',
|
127
|
+
'active_light': '#eaf2fd',
|
128
|
+
'success': '#1c7f49',
|
129
|
+
'success_light': '#d5f6e4',
|
130
|
+
'critical': '#943e37',
|
131
|
+
'critical_light': '#fde1de',
|
132
|
+
'warning': '#984c0c',
|
133
|
+
'warning_light': '#ffe5d0'
|
134
|
+
};
|
@@ -0,0 +1,227 @@
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
12
|
+
import chroma from 'chroma-js';
|
13
|
+
import colors from '../colors/colors';
|
14
|
+
var primaryBlue = colors.primary,
|
15
|
+
criticalRed = colors.critical;
|
16
|
+
var transitions = {
|
17
|
+
transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out'
|
18
|
+
};
|
19
|
+
var defaultFocus = {
|
20
|
+
outline: '2px solid',
|
21
|
+
outlineColor: 'active',
|
22
|
+
outlineOffset: '3px'
|
23
|
+
};
|
24
|
+
var buttonBase = _objectSpread(_objectSpread({}, transitions), {}, {
|
25
|
+
alignItems: 'center',
|
26
|
+
justifyContent: 'center',
|
27
|
+
minWidth: 'min-content',
|
28
|
+
cursor: 'pointer',
|
29
|
+
display: 'block',
|
30
|
+
maxWidth: '100%',
|
31
|
+
fontFamily: 'standard',
|
32
|
+
fontSize: '.9375rem',
|
33
|
+
flexGrow: '1',
|
34
|
+
fontWeight: 400,
|
35
|
+
textAlign: 'center',
|
36
|
+
verticalAlign: 'middle',
|
37
|
+
backgroundColor: 'transparent',
|
38
|
+
lineHeight: 1.5,
|
39
|
+
borderRadius: '1.75rem',
|
40
|
+
border: '1px solid',
|
41
|
+
borderColor: 'gray-300',
|
42
|
+
px: '20px',
|
43
|
+
py: '12px',
|
44
|
+
height: '48.5px',
|
45
|
+
'&.is-disabled': {
|
46
|
+
opacity: 0.65
|
47
|
+
},
|
48
|
+
'&.is-focused': _objectSpread({}, defaultFocus)
|
49
|
+
});
|
50
|
+
var neutral = _objectSpread(_objectSpread({
|
51
|
+
color: 'gray-600'
|
52
|
+
}, buttonBase), {}, {
|
53
|
+
'&.is-pressed': {
|
54
|
+
backgroundColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex()
|
55
|
+
},
|
56
|
+
'&.is-hovered': {
|
57
|
+
backgroundColor: chroma.mix(primaryBlue, 'black', 0.075, 'rgb').hex()
|
58
|
+
}
|
59
|
+
});
|
60
|
+
var primary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
61
|
+
color: 'white',
|
62
|
+
backgroundColor: 'primary',
|
63
|
+
borderColor: 'primary',
|
64
|
+
'&.is-pressed': {
|
65
|
+
backgroundColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
|
66
|
+
borderColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex()
|
67
|
+
},
|
68
|
+
'&.is-hovered': {
|
69
|
+
backgroundColor: chroma.mix(primaryBlue, 'black', 0.075, 'rgb').hex()
|
70
|
+
}
|
71
|
+
});
|
72
|
+
var secondary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
73
|
+
backgroundColor: 'transparent',
|
74
|
+
borderColor: 'primary',
|
75
|
+
color: 'primary',
|
76
|
+
'&.is-pressed': {
|
77
|
+
backgroundColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
|
78
|
+
borderColor: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex(),
|
79
|
+
color: 'white'
|
80
|
+
},
|
81
|
+
'&.is-hovered': {
|
82
|
+
backgroundColor: chroma.mix(primaryBlue, 'black', 0.075, 'rgb').hex(),
|
83
|
+
color: 'white'
|
84
|
+
}
|
85
|
+
});
|
86
|
+
var tertiary = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
87
|
+
backgroundColor: 'transparent',
|
88
|
+
borderColor: 'gray-300',
|
89
|
+
color: 'text.secondary'
|
90
|
+
});
|
91
|
+
var outlineCritical = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
92
|
+
backgroundColor: 'transparent',
|
93
|
+
borderColor: 'critical.bright',
|
94
|
+
color: 'critical.bright',
|
95
|
+
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
96
|
+
outlineColor: 'critical.bright'
|
97
|
+
}),
|
98
|
+
outlineColor: 'critical.bright'
|
99
|
+
});
|
100
|
+
var inverse = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
101
|
+
backgroundColor: 'transparent',
|
102
|
+
borderColor: 'white',
|
103
|
+
color: 'white'
|
104
|
+
});
|
105
|
+
var critical = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
106
|
+
backgroundColor: 'critical.bright',
|
107
|
+
borderColor: 'critical',
|
108
|
+
color: 'white',
|
109
|
+
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
110
|
+
outlineColor: 'critical.bright',
|
111
|
+
backgroundColor: 'critical.dark'
|
112
|
+
}),
|
113
|
+
'&.is-pressed': {
|
114
|
+
backgroundColor: chroma.mix(criticalRed.bright, 'black', 0.125, 'rgb').hex(),
|
115
|
+
borderColor: chroma.mix(criticalRed.bright, 'black', 0.125, 'rgb').hex()
|
116
|
+
},
|
117
|
+
'&.is-hovered': {
|
118
|
+
backgroundColor: chroma.mix(criticalRed.bright, 'black', 0.075, 'rgb').hex(),
|
119
|
+
color: 'white'
|
120
|
+
}
|
121
|
+
});
|
122
|
+
var checkboxButton = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
123
|
+
backgroundColor: 'transparent',
|
124
|
+
borderColor: 'gray-300',
|
125
|
+
color: 'text.secondary'
|
126
|
+
});
|
127
|
+
var checkboxActiveButton = _objectSpread(_objectSpread({}, buttonBase), {}, {
|
128
|
+
backgroundColor: 'gray-500',
|
129
|
+
color: 'white'
|
130
|
+
});
|
131
|
+
var link = {
|
132
|
+
transition: 'color, .15s, ease-in-and-out',
|
133
|
+
fontSize: 'md',
|
134
|
+
textDecoration: 'none',
|
135
|
+
px: '1.25rem',
|
136
|
+
py: '.75rem',
|
137
|
+
'&.is-pressed': {
|
138
|
+
textDecoration: 'underline',
|
139
|
+
outline: 'none',
|
140
|
+
color: chroma.mix(primaryBlue, 'black', 0.125, 'rgb').hex()
|
141
|
+
},
|
142
|
+
'&.is-focused': {
|
143
|
+
textDecoration: 'underline',
|
144
|
+
outline: 'none'
|
145
|
+
}
|
146
|
+
};
|
147
|
+
var withIcon = _objectSpread(_objectSpread({}, secondary), {}, {
|
148
|
+
display: 'inline-flex'
|
149
|
+
});
|
150
|
+
var primaryWithIcon = _objectSpread(_objectSpread({}, primary), {}, {
|
151
|
+
display: 'inline-flex',
|
152
|
+
color: 'white'
|
153
|
+
});
|
154
|
+
var baseIconButton = {
|
155
|
+
transition: 'color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out',
|
156
|
+
outline: 'none',
|
157
|
+
borderRadius: '28px',
|
158
|
+
border: '2px solid',
|
159
|
+
borderColor: 'transparent',
|
160
|
+
path: {
|
161
|
+
fill: 'dark'
|
162
|
+
},
|
163
|
+
'&.is-focused': {
|
164
|
+
outline: '2px solid',
|
165
|
+
outlineColor: 'primary',
|
166
|
+
outlineOffset: '3px'
|
167
|
+
},
|
168
|
+
'&.is-hovered': {
|
169
|
+
backgroundColor: 'gray-100',
|
170
|
+
path: {
|
171
|
+
fill: 'dark'
|
172
|
+
}
|
173
|
+
},
|
174
|
+
'&.is-pressed': {
|
175
|
+
backgroundColor: 'gray-100',
|
176
|
+
borderColor: 'gray-200',
|
177
|
+
path: {
|
178
|
+
fill: 'dark'
|
179
|
+
}
|
180
|
+
}
|
181
|
+
};
|
182
|
+
var modalCloseButton = _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
183
|
+
position: 'absolute',
|
184
|
+
top: 22,
|
185
|
+
right: 22
|
186
|
+
});
|
187
|
+
var iconButtons = {
|
188
|
+
base: _objectSpread({}, baseIconButton),
|
189
|
+
modalCloseButton: modalCloseButton,
|
190
|
+
badge: {
|
191
|
+
deleteButton: _objectSpread(_objectSpread({}, baseIconButton), {}, {
|
192
|
+
borderRadius: '50%',
|
193
|
+
cursor: 'pointer',
|
194
|
+
height: 14,
|
195
|
+
p: 0,
|
196
|
+
width: 14,
|
197
|
+
'&.is-focused': _objectSpread(_objectSpread({}, defaultFocus), {}, {
|
198
|
+
backgroundColor: 'gray-100'
|
199
|
+
}),
|
200
|
+
'&.is-pressed': {
|
201
|
+
backgroundColor: 'gray-100',
|
202
|
+
borderColor: 'gray-200',
|
203
|
+
path: {
|
204
|
+
fill: 'dark'
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}, transitions)
|
208
|
+
},
|
209
|
+
messageCloseButton: _objectSpread({}, baseIconButton)
|
210
|
+
};
|
211
|
+
var buttons = {
|
212
|
+
neutral: neutral,
|
213
|
+
primary: primary,
|
214
|
+
"default": secondary,
|
215
|
+
tertiary: tertiary,
|
216
|
+
inverse: inverse,
|
217
|
+
critical: critical,
|
218
|
+
checkboxButton: checkboxButton,
|
219
|
+
checkboxActiveButton: checkboxActiveButton,
|
220
|
+
outlineCritical: outlineCritical,
|
221
|
+
link: link,
|
222
|
+
withIcon: withIcon,
|
223
|
+
primaryWithIcon: primaryWithIcon,
|
224
|
+
iconButtons: iconButtons,
|
225
|
+
modalCloseButton: modalCloseButton
|
226
|
+
};
|
227
|
+
export default buttons;
|
@@ -0,0 +1,131 @@
|
|
1
|
+
import _Object$keys from "@babel/runtime-corejs3/core-js-stable/object/keys";
|
2
|
+
import _Object$getOwnPropertySymbols from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-symbols";
|
3
|
+
import _filterInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/filter";
|
4
|
+
import _Object$getOwnPropertyDescriptor from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptor";
|
5
|
+
import _forEachInstanceProperty from "@babel/runtime-corejs3/core-js-stable/instance/for-each";
|
6
|
+
import _Object$getOwnPropertyDescriptors from "@babel/runtime-corejs3/core-js-stable/object/get-own-property-descriptors";
|
7
|
+
import _Object$defineProperties from "@babel/runtime-corejs3/core-js-stable/object/define-properties";
|
8
|
+
import _Object$defineProperty from "@babel/runtime-corejs3/core-js-stable/object/define-property";
|
9
|
+
import _defineProperty from "@babel/runtime-corejs3/helpers/esm/defineProperty";
|
10
|
+
function ownKeys(object, enumerableOnly) { var keys = _Object$keys(object); if (_Object$getOwnPropertySymbols) { var symbols = _Object$getOwnPropertySymbols(object); enumerableOnly && (symbols = _filterInstanceProperty(symbols).call(symbols, function (sym) { return _Object$getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
11
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var _context, _context2; var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? _forEachInstanceProperty(_context = ownKeys(Object(source), !0)).call(_context, function (key) { _defineProperty(target, key, source[key]); }) : _Object$getOwnPropertyDescriptors ? _Object$defineProperties(target, _Object$getOwnPropertyDescriptors(source)) : _forEachInstanceProperty(_context2 = ownKeys(Object(source))).call(_context2, function (key) { _Object$defineProperty(target, key, _Object$getOwnPropertyDescriptor(source, key)); }); } return target; }
|
12
|
+
var defaultFocus = {
|
13
|
+
boxShadow: '0 1px 1px rgba(0,0,0,.075), 0 0 0 .0625rem blue'
|
14
|
+
};
|
15
|
+
var readOnlyandDisabledStyles = {
|
16
|
+
backgroundColor: 'gray-100',
|
17
|
+
border: '1px solid',
|
18
|
+
borderColor: 'border.base',
|
19
|
+
opacity: 1
|
20
|
+
};
|
21
|
+
export var input = {
|
22
|
+
fontSize: 'md',
|
23
|
+
p: '0.75rem',
|
24
|
+
backgroundColor: 'white',
|
25
|
+
borderColor: 'border.base',
|
26
|
+
'&.is-focused': _objectSpread({}, defaultFocus),
|
27
|
+
borderRadius: '4px',
|
28
|
+
fontWeight: 1,
|
29
|
+
height: '50px'
|
30
|
+
};
|
31
|
+
input.search = _objectSpread(_objectSpread({}, input), {}, {
|
32
|
+
'&.is-disabled': _objectSpread(_objectSpread({}, readOnlyandDisabledStyles), {}, {
|
33
|
+
'> input': _objectSpread({}, readOnlyandDisabledStyles)
|
34
|
+
})
|
35
|
+
});
|
36
|
+
input.containedIcon = {
|
37
|
+
position: 'absolute',
|
38
|
+
right: 0,
|
39
|
+
top: '50%',
|
40
|
+
transform: 'translate(-50%, -50%)'
|
41
|
+
};
|
42
|
+
export var fieldControlWrapper = {
|
43
|
+
'> textarea': {
|
44
|
+
borderRadius: '4px',
|
45
|
+
border: '1px solid',
|
46
|
+
borderColor: 'border.base !important',
|
47
|
+
outline: 'none'
|
48
|
+
},
|
49
|
+
'&.is-disabled': {
|
50
|
+
'> label': {
|
51
|
+
opacity: 1
|
52
|
+
},
|
53
|
+
// Override global opacity for disabled items because the children will handle their own opacity
|
54
|
+
// and it will otherwise stack the opacity effect.
|
55
|
+
opacity: 1,
|
56
|
+
'> input': _objectSpread({
|
57
|
+
fontWeight: 400
|
58
|
+
}, readOnlyandDisabledStyles),
|
59
|
+
'> textarea': _objectSpread({
|
60
|
+
fontWeight: 400
|
61
|
+
}, readOnlyandDisabledStyles),
|
62
|
+
'&:after': {
|
63
|
+
display: 'none'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
'&:after': {
|
67
|
+
display: 'none'
|
68
|
+
},
|
69
|
+
'& > input': {
|
70
|
+
borderLeftWidth: 1
|
71
|
+
},
|
72
|
+
'> button': {
|
73
|
+
borderLeftWidth: 1,
|
74
|
+
borderRadius: '4px',
|
75
|
+
border: '1px solid',
|
76
|
+
borderColor: 'border.base'
|
77
|
+
},
|
78
|
+
'&.is-read-only': {
|
79
|
+
'> input': {
|
80
|
+
backgroundColor: 'gray-100',
|
81
|
+
border: '1px solid',
|
82
|
+
borderColor: 'border.base !important'
|
83
|
+
},
|
84
|
+
'> textarea': {
|
85
|
+
backgroundColor: 'gray-100',
|
86
|
+
border: '1px solid',
|
87
|
+
borderColor: 'border.base !important'
|
88
|
+
},
|
89
|
+
'&:after': {
|
90
|
+
display: 'none'
|
91
|
+
}
|
92
|
+
},
|
93
|
+
'&.is-focused': {
|
94
|
+
'> textarea': _objectSpread({
|
95
|
+
outline: 'none'
|
96
|
+
}, defaultFocus)
|
97
|
+
}
|
98
|
+
};
|
99
|
+
input.fieldControlWrapper = _objectSpread({}, fieldControlWrapper);
|
100
|
+
input.multivaluesWrapper = _objectSpread(_objectSpread({}, fieldControlWrapper), {}, {
|
101
|
+
borderColor: 'border.base',
|
102
|
+
borderStyle: 'solid',
|
103
|
+
borderWidth: 1,
|
104
|
+
flexDirection: 'row !important',
|
105
|
+
flexWrap: 'wrap',
|
106
|
+
pt: 6,
|
107
|
+
pr: 10,
|
108
|
+
pb: 5,
|
109
|
+
pl: 12,
|
110
|
+
borderRadius: '4px',
|
111
|
+
alignItems: 'center',
|
112
|
+
height: '50px',
|
113
|
+
'> input': {
|
114
|
+
border: 'none',
|
115
|
+
flex: 1,
|
116
|
+
height: 27,
|
117
|
+
lineHeight: '100%',
|
118
|
+
p: 5,
|
119
|
+
'&.is-focused': {
|
120
|
+
boxShadow: 'none',
|
121
|
+
outline: 'none'
|
122
|
+
}
|
123
|
+
},
|
124
|
+
'&.is-focused': _objectSpread({}, defaultFocus),
|
125
|
+
'&.is-error': {
|
126
|
+
borderColor: 'critical.dark'
|
127
|
+
}
|
128
|
+
});
|
129
|
+
input.numberField = _objectSpread(_objectSpread({}, input), {}, {
|
130
|
+
pr: '28px'
|
131
|
+
});
|
@@ -0,0 +1,26 @@
|
|
1
|
+
export var label = {
|
2
|
+
color: 'gray-900',
|
3
|
+
fontSize: '.9375rem',
|
4
|
+
'&.is-float-label': {
|
5
|
+
fontSize: 'md',
|
6
|
+
fontWeight: 1
|
7
|
+
},
|
8
|
+
'.is-float-label-active &.is-float-label': {
|
9
|
+
fontSize: 'sm',
|
10
|
+
left: '12px'
|
11
|
+
},
|
12
|
+
opacity: 1,
|
13
|
+
checkbox: {
|
14
|
+
fontSize: '.9375rem',
|
15
|
+
display: 'inline-flex !important',
|
16
|
+
div: {
|
17
|
+
flexShrink: 0
|
18
|
+
},
|
19
|
+
width: 'max-content',
|
20
|
+
alignItems: 'center',
|
21
|
+
cursor: 'pointer'
|
22
|
+
},
|
23
|
+
radioGroup: {
|
24
|
+
fontSize: '.9375rem'
|
25
|
+
}
|
26
|
+
};
|
@@ -0,0 +1,19 @@
|
|
1
|
+
export var text = {
|
2
|
+
modalTitle: {
|
3
|
+
fontSize: '20px',
|
4
|
+
fontWeight: '2',
|
5
|
+
fontFamily: 'standard'
|
6
|
+
},
|
7
|
+
tabLabel: {
|
8
|
+
color: 'text.primary'
|
9
|
+
},
|
10
|
+
placeholder: {
|
11
|
+
color: 'text.primary'
|
12
|
+
},
|
13
|
+
paragraph: {
|
14
|
+
lineHeight: 'body'
|
15
|
+
},
|
16
|
+
listViewItemText: {
|
17
|
+
fontWeight: 2
|
18
|
+
}
|
19
|
+
};
|