@redsift/dashboard 7.4.2 → 7.5.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/CONTRIBUTING.md +4 -0
- package/index.js +36 -20
- package/index.js.map +1 -1
- package/package.json +5 -6
package/CONTRIBUTING.md
CHANGED
|
@@ -38,6 +38,10 @@ The Design System is following a monorepo architecture, providing multiple packa
|
|
|
38
38
|
|
|
39
39
|
This package is the main package of Red Sift's Design System. It provides the majority of the components, including layout, formatting, navigation, form and interactive components.
|
|
40
40
|
|
|
41
|
+
- `@redsift/popovers`
|
|
42
|
+
|
|
43
|
+
This package provides popover components. Popover components are based on [floating-ui](https://floating-ui.com/) and [@floating-ui/react](https://floating-ui.com/docs/react).
|
|
44
|
+
|
|
41
45
|
- `@redsift/table`
|
|
42
46
|
|
|
43
47
|
This package provides datagrid components and features based on [MUI DataGrid](https://mui.com/x/react-data-grid/). Due to the use of advanced features, a [premium license](https://mui.com/x/introduction/licensing/#premium-plan) from MUI is required.
|
package/index.js
CHANGED
|
@@ -43,7 +43,7 @@ const ProductColorPalette = {
|
|
|
43
43
|
|
|
44
44
|
/**
|
|
45
45
|
* Do not edit directly
|
|
46
|
-
* Generated on
|
|
46
|
+
* Generated on Tue, 21 Feb 2023 15:02:26 GMT
|
|
47
47
|
*/
|
|
48
48
|
|
|
49
49
|
const RedsiftColorDefaultPrimary = '#0079e1';
|
|
@@ -2175,8 +2175,26 @@ const baseSpacing = css`
|
|
|
2175
2175
|
`;
|
|
2176
2176
|
}}
|
|
2177
2177
|
`;
|
|
2178
|
-
const
|
|
2178
|
+
const baseInternalSpacing = css`
|
|
2179
2179
|
${_ref3 => {
|
|
2180
|
+
let {
|
|
2181
|
+
padding,
|
|
2182
|
+
paddingBottom,
|
|
2183
|
+
paddingLeft,
|
|
2184
|
+
paddingRight,
|
|
2185
|
+
paddingTop
|
|
2186
|
+
} = _ref3;
|
|
2187
|
+
return css`
|
|
2188
|
+
${padding ? `padding: ${padding};` : ''}
|
|
2189
|
+
${paddingBottom ? `padding-bottom: ${paddingBottom};` : ''}
|
|
2190
|
+
${paddingLeft ? `padding-left: ${paddingLeft};` : ''}
|
|
2191
|
+
${paddingRight ? `padding-right: ${paddingRight};` : ''}
|
|
2192
|
+
${paddingTop ? `padding-top: ${paddingTop};` : ''}
|
|
2193
|
+
`;
|
|
2194
|
+
}}
|
|
2195
|
+
`;
|
|
2196
|
+
const baseSizing = css`
|
|
2197
|
+
${_ref4 => {
|
|
2180
2198
|
let {
|
|
2181
2199
|
height,
|
|
2182
2200
|
maxHeight,
|
|
@@ -2184,7 +2202,7 @@ const baseSizing = css`
|
|
|
2184
2202
|
minHeight,
|
|
2185
2203
|
minWidth,
|
|
2186
2204
|
width
|
|
2187
|
-
} =
|
|
2205
|
+
} = _ref4;
|
|
2188
2206
|
return css`
|
|
2189
2207
|
${height ? `height: ${typeof height === 'number' ? `${height}px` : height};` : ''}
|
|
2190
2208
|
${maxHeight ? `max-height: ${maxHeight};` : ''}
|
|
@@ -2196,7 +2214,7 @@ const baseSizing = css`
|
|
|
2196
2214
|
}}
|
|
2197
2215
|
`;
|
|
2198
2216
|
const basePositioning = css`
|
|
2199
|
-
${
|
|
2217
|
+
${_ref5 => {
|
|
2200
2218
|
let {
|
|
2201
2219
|
position,
|
|
2202
2220
|
top,
|
|
@@ -2204,7 +2222,7 @@ const basePositioning = css`
|
|
|
2204
2222
|
left,
|
|
2205
2223
|
right,
|
|
2206
2224
|
zIndex
|
|
2207
|
-
} =
|
|
2225
|
+
} = _ref5;
|
|
2208
2226
|
return css`
|
|
2209
2227
|
${position ? `position: ${position};` : ''}
|
|
2210
2228
|
${top ? `top: ${top};` : ''}
|
|
@@ -2216,7 +2234,7 @@ const basePositioning = css`
|
|
|
2216
2234
|
}}
|
|
2217
2235
|
`;
|
|
2218
2236
|
const baseFlexbox = css`
|
|
2219
|
-
${
|
|
2237
|
+
${_ref6 => {
|
|
2220
2238
|
let {
|
|
2221
2239
|
alignContent,
|
|
2222
2240
|
alignItems,
|
|
@@ -2224,7 +2242,7 @@ const baseFlexbox = css`
|
|
|
2224
2242
|
flexWrap,
|
|
2225
2243
|
gap,
|
|
2226
2244
|
justifyContent
|
|
2227
|
-
} =
|
|
2245
|
+
} = _ref6;
|
|
2228
2246
|
return css`
|
|
2229
2247
|
${alignContent ? `align-content: ${alignContent};` : ''}
|
|
2230
2248
|
${alignItems ? `align-items: ${alignItems};` : ''}
|
|
@@ -2236,7 +2254,7 @@ const baseFlexbox = css`
|
|
|
2236
2254
|
}}
|
|
2237
2255
|
`;
|
|
2238
2256
|
const baseGrid = css`
|
|
2239
|
-
${
|
|
2257
|
+
${_ref7 => {
|
|
2240
2258
|
let {
|
|
2241
2259
|
alignContent,
|
|
2242
2260
|
alignItems,
|
|
@@ -2248,7 +2266,7 @@ const baseGrid = css`
|
|
|
2248
2266
|
gridTemplateRows,
|
|
2249
2267
|
justifyContent,
|
|
2250
2268
|
justifyItems
|
|
2251
|
-
} =
|
|
2269
|
+
} = _ref7;
|
|
2252
2270
|
return css`
|
|
2253
2271
|
${alignContent ? `align-content: ${alignContent};` : ''}
|
|
2254
2272
|
${alignItems ? `align-items: ${alignItems};` : ''}
|
|
@@ -2276,14 +2294,19 @@ const baseStyling = css`
|
|
|
2276
2294
|
${basePositioning}
|
|
2277
2295
|
`;
|
|
2278
2296
|
css`
|
|
2279
|
-
${
|
|
2297
|
+
${_ref8 => {
|
|
2280
2298
|
let {
|
|
2281
2299
|
display
|
|
2282
|
-
} =
|
|
2300
|
+
} = _ref8;
|
|
2283
2301
|
return display ? `display: ${display};` : '';
|
|
2284
2302
|
}}
|
|
2303
|
+
font-family: var(--redsift-typography-body-font-family);
|
|
2304
|
+
font-size: var(--redsift-typography-body-font-size);
|
|
2305
|
+
font-weight: var(--redsift-typography-body-font-weight);
|
|
2306
|
+
line-height: var(--redsift-typography-body-line-height);
|
|
2307
|
+
color: var(--redsift-color-neutral-black);
|
|
2285
2308
|
|
|
2286
|
-
${
|
|
2309
|
+
${baseInternalSpacing}
|
|
2287
2310
|
${baseFlexbox}
|
|
2288
2311
|
${baseGrid}
|
|
2289
2312
|
`;
|
|
@@ -2529,14 +2552,6 @@ const StyledButton = styled.button`
|
|
|
2529
2552
|
`;
|
|
2530
2553
|
}};
|
|
2531
2554
|
|
|
2532
|
-
.redsift-icon.left {
|
|
2533
|
-
margin-right: 8px;
|
|
2534
|
-
}
|
|
2535
|
-
|
|
2536
|
-
.redsift-icon.right {
|
|
2537
|
-
margin-left: 8px;
|
|
2538
|
-
}
|
|
2539
|
-
|
|
2540
2555
|
&:hover,
|
|
2541
2556
|
&:focus-visible {
|
|
2542
2557
|
outline: none;
|
|
@@ -2735,6 +2750,7 @@ const COMPONENT_NAME$6 = 'Button';
|
|
|
2735
2750
|
const CLASSNAME$6 = 'redsift-button';
|
|
2736
2751
|
const DEFAULT_PROPS$5 = {
|
|
2737
2752
|
color: ColorPalette.default,
|
|
2753
|
+
height: 'fit-content',
|
|
2738
2754
|
variant: ButtonVariant.primary
|
|
2739
2755
|
};
|
|
2740
2756
|
|