@dev-crew-berlin/enter-js-utils 0.30.4 → 0.30.5

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.
@@ -0,0 +1,7 @@
1
+ import { FunctionComponent } from 'react';
2
+ declare type Props = {
3
+ color?: string;
4
+ ascending: boolean;
5
+ };
6
+ export declare const SortListIcon: FunctionComponent<Props>;
7
+ export {};
@@ -0,0 +1,18 @@
1
+ import React from 'react';
2
+ import { colors } from '../../lib/theme';
3
+ export const SortListIcon = ({
4
+ color = colors.enterDarkGrey,
5
+ ascending = true
6
+ }) => {
7
+ return /*#__PURE__*/React.createElement("svg", {
8
+ xmlns: "http://www.w3.org/2000/svg",
9
+ viewBox: "0 0 436 420",
10
+ width: "100%",
11
+ height: "auto",
12
+ transform: `scale(1,${ascending ? 1 : -1})`,
13
+ fill: color
14
+ }, /*#__PURE__*/React.createElement("path", {
15
+ transform: "translate(0,0)",
16
+ d: "m431,420H5c-2.76,0-5-2.24-5-5v-50c0-2.76,2.24-5,5-5h426c2.76,0,5,2.24,5,5v50c0,2.76-2.24,5-5,5Zm-96-150H5c-2.76,0-5,2.24-5,5v50c0,2.76,2.24,5,5,5h330c2.76,0,5-2.24,5-5v-50c0-2.76-2.24-5-5-5Zm-95-90H5c-2.76,0-5,2.24-5,5v50c0,2.76,2.24,5,5,5h235c2.76,0,5-2.24,5-5v-50c0-2.76-2.24-5-5-5Zm-100-90H5c-2.76,0-5,2.24-5,5v50c0,2.76,2.24,5,5,5h135c2.76,0,5-2.24,5-5v-50c0-2.76-2.24-5-5-5ZM68,0H5C2.24,0,0,2.24,0,5v50c0,2.76,2.24,5,5,5h63c2.76,0,5-2.24,5-5V5c0-2.76-2.24-5-5-5Z"
17
+ }));
18
+ };
@@ -0,0 +1,15 @@
1
+ import React from 'react';
2
+ import { ComponentStory, ComponentMeta } from '@storybook/react';
3
+ declare const _default: ComponentMeta<React.FunctionComponent<{
4
+ color?: string | undefined;
5
+ ascending: boolean;
6
+ }>>;
7
+ export default _default;
8
+ export declare const Basic: ComponentStory<React.FunctionComponent<{
9
+ color?: string | undefined;
10
+ ascending: boolean;
11
+ }>>;
12
+ export declare const White: ComponentStory<React.FunctionComponent<{
13
+ color?: string | undefined;
14
+ ascending: boolean;
15
+ }>>;
@@ -0,0 +1,20 @@
1
+ import React from 'react';
2
+ import { SortListIcon } from './sort-list-icon';
3
+ export default {
4
+ title: 'Icons/Sort List',
5
+ component: SortListIcon
6
+ };
7
+
8
+ const Template = args => /*#__PURE__*/React.createElement(SortListIcon, args);
9
+
10
+ export const Basic = Template.bind({});
11
+ Basic.args = {};
12
+ export const White = Template.bind({});
13
+ White.parameters = {
14
+ backgrounds: {
15
+ default: 'dark'
16
+ }
17
+ };
18
+ White.args = {
19
+ color: '#fff'
20
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.30.4",
3
+ "version": "0.30.5",
4
4
  "description": "utils such as vaildation and other helpers to work with data from the enter app",
5
5
  "files": [
6
6
  "dist",