@entur-partner/common 4.0.6 → 4.2.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/CHANGELOG.md CHANGED
@@ -3,6 +3,29 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [4.2.0](https://bitbucket.org/enturas/entur-partner-packages/compare/@entur-partner/common@4.1.0...@entur-partner/common@4.2.0) (2022-03-22)
7
+
8
+ ### Features
9
+
10
+ - **feature-flag:** add function for checking feature flag ([c5e2bee](https://bitbucket.org/enturas/entur-partner-packages/commits/c5e2bee730635cf9498f617707683cb955b22d32))
11
+
12
+ # [4.1.0](https://bitbucket.org/enturas/entur-partner-packages/compare/@entur-partner/common@4.0.7...@entur-partner/common@4.1.0) (2022-03-09)
13
+
14
+ ### Bug Fixes
15
+
16
+ - **deps:** update all non-major dependencies ([4533e34](https://bitbucket.org/enturas/entur-partner-packages/commits/4533e34e81006c6fd056f5ebca40a58c75d9caf9))
17
+ - **deps:** update entur packages ([22224c2](https://bitbucket.org/enturas/entur-partner-packages/commits/22224c223cd111224f5654ced91879a7c06d2fa1))
18
+
19
+ ### Features
20
+
21
+ - **box:** implement alignItems prop for Box ([57907e2](https://bitbucket.org/enturas/entur-partner-packages/commits/57907e2253f5343d6ba70ff9669bcbffedd767d2))
22
+
23
+ ## [4.0.7](https://bitbucket.org/enturas/entur-partner-packages/compare/@entur-partner/common@4.0.6...@entur-partner/common@4.0.7) (2022-02-10)
24
+
25
+ ### Bug Fixes
26
+
27
+ - update to Node 16. Also update various packages to make dts-cli and its dependencies work ([93468c8](https://bitbucket.org/enturas/entur-partner-packages/commits/93468c8190e8590143f274c468df23e786af4553))
28
+
6
29
  ## [4.0.6](https://bitbucket.org/enturas/entur-partner-packages/compare/@entur-partner/common@4.0.5...@entur-partner/common@4.0.6) (2022-02-07)
7
30
 
8
31
  ### Bug Fixes
package/dist/Box.d.ts CHANGED
@@ -52,5 +52,5 @@ export interface BoxProps {
52
52
  }
53
53
  declare type ResponsiveProp = string | [string?, string?, string?];
54
54
  export declare function responsiveProp(prefix: string, prop: ResponsiveProp): string[];
55
- export declare const Box: ({ as: Component, children, contrast, paddingTop, paddingRight, paddingBottom, paddingLeft, paddingX, paddingY, padding, marginTop, marginRight, marginBottom, marginLeft, marginX, marginY, margin, display, justifyContent, maxWidth, width, background, color, flexDirection, flexWrap, className, ...rest }: BoxProps) => JSX.Element;
55
+ export declare const Box: ({ as: Component, children, contrast, paddingTop, paddingRight, paddingBottom, paddingLeft, paddingX, paddingY, padding, marginTop, marginRight, marginBottom, marginLeft, marginX, marginY, margin, display, justifyContent, alignItems, maxWidth, width, background, color, flexDirection, flexWrap, className, ...rest }: BoxProps) => JSX.Element;
56
56
  export {};
@@ -1,9 +1,7 @@
1
1
  import React from 'react';
2
2
  import { VariantType } from '@entur/form';
3
3
  import { LanguageKey, LanguageOption } from './LanguageSelect';
4
- export declare type MultiLanguageValues = {
5
- [k in LanguageKey]: string;
6
- };
4
+ export declare type MultiLanguageValues = Record<LanguageKey, string>;
7
5
  declare type ExpandableMultiLanguageInputProps = {
8
6
  title: string;
9
7
  inputComponent: React.ElementType;
@@ -1,4 +1,12 @@
1
1
  import { ReactNode } from 'react';
2
+ /**
3
+ * Returns true if the provided flag exist in localStorage
4
+ * or is set as an environment variable.
5
+ *
6
+ * @param flag case sensitive flag. If it is an environment variable
7
+ * you can drop the REACT_APP_ prefix.
8
+ */
9
+ export declare function featureFlag(flag: string): boolean;
2
10
  /**
3
11
  * Returns true if the provided flag exist in localStorage
4
12
  * or is set as an environment variable.