@7shifts/sous-chef 3.36.3-beta2 → 3.36.3-beta3

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,7 +1,7 @@
1
1
  import React from 'react';
2
2
  import type { ButtonTheme, ButtonSize, ButtonType, ButtonTarget } from './types';
3
3
  import type { PositionStyles, DataProps } from '../../foundation/types';
4
- declare const _default: React.ForwardRefExoticComponent<{
4
+ declare const Button: React.ForwardRefExoticComponent<{
5
5
  children: React.ReactNode;
6
6
  type?: ButtonType | undefined;
7
7
  /** It controls the button theme */
@@ -16,7 +16,7 @@ declare const _default: React.ForwardRefExoticComponent<{
16
16
  id?: string | undefined;
17
17
  loading?: boolean | undefined;
18
18
  /** This will show a black tooltip when the user hover the button */
19
- title?: React.ReactNode;
19
+ title?: string | React.ReactNode;
20
20
  href?: string | undefined;
21
21
  target?: ButtonTarget | undefined;
22
22
  testId?: string | undefined;
@@ -27,4 +27,4 @@ declare const _default: React.ForwardRefExoticComponent<{
27
27
  */
28
28
  size?: ButtonSize | undefined;
29
29
  } & PositionStyles & DataProps & React.RefAttributes<HTMLButtonElement | HTMLAnchorElement>>;
30
- export default _default;
30
+ export default Button;
@@ -0,0 +1,11 @@
1
+ import React from 'react';
2
+ import { COMPONENT_NAMES } from './constants';
3
+ type Props = {
4
+ componentName: keyof typeof COMPONENT_NAMES;
5
+ children: React.ReactNode;
6
+ };
7
+ /**
8
+ * Used so sub-components con identify if it is placed inside some component using the `useIsInsideComponent` hook
9
+ */
10
+ declare const ComponentIdentifier: ({ componentName, children }: Props) => React.JSX.Element;
11
+ export default ComponentIdentifier;
@@ -0,0 +1,6 @@
1
+ import React from 'react';
2
+ export type ModalContextType = {
3
+ componentName: string;
4
+ };
5
+ declare const ComponentIdentifierContext: React.Context<ModalContextType>;
6
+ export default ComponentIdentifierContext;
@@ -0,0 +1,3 @@
1
+ export declare const COMPONENT_NAMES: {
2
+ BUTTON: "BUTTON";
3
+ };
@@ -0,0 +1,2 @@
1
+ import { COMPONENT_NAMES } from './constants';
2
+ export declare const useIsInsideComponent: (parentComponentName: keyof typeof COMPONENT_NAMES) => boolean;
@@ -15,5 +15,5 @@ type Props = {
15
15
  onBlur: () => void;
16
16
  testId?: string;
17
17
  };
18
- declare const _default: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
19
- export default _default;
18
+ declare const ToDate: React.ForwardRefExoticComponent<Props & React.RefAttributes<HTMLInputElement>>;
19
+ export default ToDate;
@@ -2,7 +2,7 @@ import { IconSize } from './types';
2
2
  type Params = {
3
3
  size?: IconSize;
4
4
  color?: string;
5
- styles?: Object;
5
+ style?: Object;
6
6
  };
7
- export declare const getIconStyles: ({ size, color, styles }: Params) => Object;
7
+ export declare const getIconStyles: ({ size, color, style }: Params) => Object;
8
8
  export {};
package/dist/index.css CHANGED
@@ -88,35 +88,6 @@
88
88
  --color-grey-600: #323232;
89
89
  --color-grey-600-rgb: 50, 50, 50;
90
90
  }
91
-
92
- @font-face {
93
- font-family: "Proxima Nova";
94
- src: url("fonts/proximanova-light-webfont.eot");
95
- src: url("fonts/proximanova-light-webfont.eot?#iefix") format("embedded-opentype"), url("fonts/proximanova-light-webfont.woff") format("woff"), url("fonts/proximanova-light-webfont.ttf") format("truetype"), url("fonts/proximanova-light-webfont.svg#proxima_novalight") format("svg");
96
- font-weight: 200;
97
- font-style: 200;
98
- }
99
- @font-face {
100
- font-family: "Proxima Nova";
101
- src: url("fonts/ProximaNova-Regular.eot");
102
- src: url("fonts/ProximaNova-Regular.eot?#iefix") format("embedded-opentype"), url("fonts/ProximaNova-Regular.woff") format("woff"), url("fonts/ProximaNova-Regular.ttf") format("truetype"), url("fonts/ProximaNova-Regular.svg#proxima_nova_rgregular") format("svg");
103
- font-weight: normal;
104
- font-style: normal;
105
- }
106
- @font-face {
107
- font-family: "Proxima Nova";
108
- src: url("fonts/proximaNova-semibold.eot");
109
- src: url("fonts/proximaNova-semibold.eot?#iefix") format("embedded-opentype"), url("fonts/proximaNova-semibold.woff") format("woff"), url("fonts/proximaNova-semibold.ttf") format("truetype"), url("fonts/proximaNova-semibold.svg#ProximaNova-Semibold") format("svg");
110
- font-weight: 600;
111
- font-style: 600;
112
- }
113
- @font-face {
114
- font-family: "Cedarville Cursive";
115
- src: url("fonts/cedarville-cursive-v17-latin-regular.eot");
116
- src: url("fonts/cedarville-cursive-v17-latin-regular.eot?#iefix") format("embedded-opentype"), url("fonts/cedarville-cursive-v17-latin-regular.woff2") format("woff2"), url("fonts/cedarville-cursive-v17-latin-regular.woff") format("woff"), url("fonts/cedarville-cursive-v17-latin-regular.ttf") format("truetype"), url("fonts/cedarville-cursive-v17-latin-regular.svg#CedarvilleCursive") format("svg");
117
- font-style: normal;
118
- font-weight: 400;
119
- }
120
91
  :root {
121
92
  --z-index-base: 1;
122
93
  --z-index-nav: 7;