@thecb/components 12.1.0-beta.14 → 12.1.0-beta.16

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@thecb/components",
3
- "version": "12.1.0-beta.14",
3
+ "version": "12.1.0-beta.16",
4
4
  "description": "Common lib for CityBase react components",
5
5
  "main": "dist/index.cjs.js",
6
6
  "typings": "dist/index.d.ts",
@@ -2,7 +2,7 @@ import React, { useState, forwardRef } from "react";
2
2
  import styled, { css } from "styled-components";
3
3
  import { fallbackValues } from "./Checkbox.theme";
4
4
  import { noop } from "../../../util/general";
5
- import { ENTER_KEY, SPACE_KEY } from "../../../constants/keyboard";
5
+ import { SPACE_KEY } from "../../../constants/keyboard";
6
6
  import Box from "../layouts/Box";
7
7
  import Text from "../text";
8
8
  import { themeComponent } from "../../../util/themeUtils";
@@ -154,7 +154,13 @@ export const NonInlineWithoutCheckbox = {
154
154
  displayInline: false,
155
155
  description: "View "
156
156
  },
157
- render: args => <TermsAndConditionsControlV2 {...args} />
157
+ render: args => (
158
+ <>
159
+ <span>Non-inline variants have a gray background by default.</span>
160
+ <TermsAndConditionsControlV2 {...args} />
161
+ <span>And they do not render inline with the surrounding text.</span>
162
+ </>
163
+ )
158
164
  };
159
165
 
160
166
  export const WithError = {
@@ -3,7 +3,6 @@ export const ARROW_UP = 38;
3
3
  export const ARROW_RIGHT = 39;
4
4
  export const ARROW_DOWN = 40;
5
5
  export const ENTER = 13;
6
- export const ENTER_KEY = "Enter";
7
6
  export const ESCAPE = 27;
8
7
  export const SPACEBAR = 32;
9
8
  export const SPACE_KEY = " ";