@redsift/design-system 8.0.6 → 8.1.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 CHANGED
@@ -42,6 +42,10 @@ The Design System is following a monorepo architecture, providing multiple packa
42
42
 
43
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). Toasts are based on [react-toastify](https://fkhadra.github.io/react-toastify).
44
44
 
45
+ - `@redsift/pickers`
46
+
47
+ This package provides selection components. The Popover part of the Pickers comes from `@redsift/popovers`.
48
+
45
49
  - `@redsift/table`
46
50
 
47
51
  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.
@@ -136,29 +140,23 @@ const DEFAULT_PROPS: Partial<BadgeProps> = {
136
140
  /**
137
141
  * The Badge component.
138
142
  */
139
- export const Badge: Comp<BadgeProps, HTMLDivElement> = forwardRef(
140
- (props, ref) => {
141
- const {
142
- // props
143
- ...forwardedProps
144
- } = props;
145
-
146
- return (
147
- <StyledBadge
148
- {...forwardedProps}
149
- // transient props
150
- className={classNames(
151
- Badge.className,
152
- `${Badge.className}-${variant}`,
153
- className
154
- )}
155
- ref={ref as RefObject<HTMLDivElement>}
156
- >
157
- // content of the component if needed
158
- </StyledBadge>
159
- );
160
- }
161
- );
143
+ export const Badge: Comp<BadgeProps, HTMLDivElement> = forwardRef((props, ref) => {
144
+ const {
145
+ // props
146
+ ...forwardedProps
147
+ } = props;
148
+
149
+ return (
150
+ <StyledBadge
151
+ {...forwardedProps}
152
+ // transient props
153
+ className={classNames(Badge.className, `${Badge.className}-${variant}`, className)}
154
+ ref={ref as RefObject<HTMLDivElement>}
155
+ >
156
+ // content of the component if needed
157
+ </StyledBadge>
158
+ );
159
+ });
162
160
  Badge.className = CLASSNAME;
163
161
  Badge.defaultProps = DEFAULT_PROPS;
164
162
  Badge.displayName = COMPONENT_NAME;