@dev-crew-berlin/enter-js-utils 0.32.0 → 0.32.1

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.
@@ -1,8 +1,8 @@
1
1
  import { FunctionComponent, InputHTMLAttributes } from 'react';
2
2
  declare type Props = InputHTMLAttributes<HTMLInputElement> & {
3
- textColor: string;
4
- borderColor: string;
5
- placeholder: string;
3
+ textColor?: string;
4
+ borderColor?: string;
5
+ placeholder?: string;
6
6
  };
7
7
  export declare const SearchInput: FunctionComponent<Props>;
8
8
  export {};
@@ -13,17 +13,17 @@ export const SearchInput = ({
13
13
  }) => {
14
14
  const id = useId();
15
15
  return /*#__PURE__*/React.createElement("div", {
16
- className: _JSXStyle.dynamic([["1366111563", [theme.fonts.primary, textColor, borderColor, theme.colors.enterRed]]]) + " " + 'search-input'
16
+ className: _JSXStyle.dynamic([["914481870", [theme.fonts.primary, textColor, borderColor, theme.colors.enterRed]]]) + " " + 'search-input'
17
17
  }, /*#__PURE__*/React.createElement("div", {
18
- className: _JSXStyle.dynamic([["1366111563", [theme.fonts.primary, textColor, borderColor, theme.colors.enterRed]]]) + " " + 'icon'
18
+ className: _JSXStyle.dynamic([["914481870", [theme.fonts.primary, textColor, borderColor, theme.colors.enterRed]]]) + " " + 'icon'
19
19
  }, /*#__PURE__*/React.createElement(SearchIcon, {
20
20
  color: textColor
21
21
  })), /*#__PURE__*/React.createElement("input", _extends({}, props, {
22
22
  placeholder: placeholder,
23
23
  id: id,
24
- className: _JSXStyle.dynamic([["1366111563", [theme.fonts.primary, textColor, borderColor, theme.colors.enterRed]]]) + " " + (props && props.className != null && props.className || "")
24
+ className: _JSXStyle.dynamic([["914481870", [theme.fonts.primary, textColor, borderColor, theme.colors.enterRed]]]) + " " + (props && props.className != null && props.className || "")
25
25
  })), /*#__PURE__*/React.createElement(_JSXStyle, {
26
- id: "1366111563",
26
+ id: "914481870",
27
27
  dynamic: [theme.fonts.primary, textColor, borderColor, theme.colors.enterRed]
28
- }, `.search-input.__jsx-style-dynamic-selector{display:grid;grid-template-areas:'icon-input';-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:1.1em;}.icon.__jsx-style-dynamic-selector{grid-area:icon-input;width:12px;height:14px;margin:0 0 0 0.2em;}input.__jsx-style-dynamic-selector{grid-area:icon-input;font-family:${theme.fonts.primary};font-size:1.1em;display:block;width:calc(100% - 20px);padding:0.2em 0 0.2em 20px;border:none;outline:none;background-color:transparent;color:${textColor};border-bottom:1px solid ${borderColor};border-radius:0;-webkit-transition:border-color 0.2s;transition:border-color 0.2s;}input.__jsx-style-dynamic-selector:focus{border-color:${theme.colors.enterRed};}`));
28
+ }, `.search-input.__jsx-style-dynamic-selector{display:grid;grid-template-areas:'icon-input';-webkit-align-items:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;margin-bottom:1.1em;}.icon.__jsx-style-dynamic-selector{grid-area:icon-input;width:12px;height:16px;margin:0 0 0 0.2em;}input.__jsx-style-dynamic-selector{grid-area:icon-input;font-family:${theme.fonts.primary};font-size:1.1em;display:block;width:calc(100% - 20px);padding:0.2em 0 0.2em 20px;border:none;outline:none;background-color:transparent;color:${textColor};border-bottom:1px solid ${borderColor};border-radius:0;-webkit-transition:border-color 0.2s;transition:border-color 0.2s;}input.__jsx-style-dynamic-selector:focus{border-color:${theme.colors.enterRed};}`));
29
29
  };
@@ -1,13 +1,13 @@
1
1
  import React from 'react';
2
2
  import { ComponentStory, ComponentMeta } from '@storybook/react';
3
3
  declare const _default: ComponentMeta<React.FunctionComponent<React.InputHTMLAttributes<HTMLInputElement> & {
4
- textColor: string;
5
- borderColor: string;
6
- placeholder: string;
4
+ textColor?: string | undefined;
5
+ borderColor?: string | undefined;
6
+ placeholder?: string | undefined;
7
7
  }>>;
8
8
  export default _default;
9
9
  export declare const Basic: ComponentStory<React.FunctionComponent<React.InputHTMLAttributes<HTMLInputElement> & {
10
- textColor: string;
11
- borderColor: string;
12
- placeholder: string;
10
+ textColor?: string | undefined;
11
+ borderColor?: string | undefined;
12
+ placeholder?: string | undefined;
13
13
  }>>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dev-crew-berlin/enter-js-utils",
3
- "version": "0.32.0",
3
+ "version": "0.32.1",
4
4
  "description": "utils such as vaildation and other helpers to work with data from the enter app",
5
5
  "files": [
6
6
  "dist",