@bloom-housing/ui-components 10.0.4 → 10.0.6

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,6 +1,10 @@
1
+ import { BADGES } from "../../.storybook/constants";
1
2
  declare const _default: {
2
3
  title: string;
3
4
  decorators: ((...args: any) => any)[];
5
+ parameters: {
6
+ badges: BADGES[];
7
+ };
4
8
  };
5
9
  export default _default;
6
10
  export declare const Default: () => JSX.Element;
@@ -1,9 +1,13 @@
1
1
  import React from "react";
2
+ import { BADGES } from "../../.storybook/constants";
2
3
  import { LanguageNav } from "./LanguageNav";
3
4
  import { text, withKnobs } from "@storybook/addon-knobs";
4
5
  export default {
5
- title: "Navigation/LanguageNav",
6
+ title: "Navigation/LanguageNav 🚩",
6
7
  decorators: [function (storyFn) { return React.createElement("div", { style: { padding: "1rem" } }, storyFn()); }, withKnobs],
8
+ parameters: {
9
+ badges: [BADGES.GEN2],
10
+ },
7
11
  };
8
12
  export var Default = function () { return (React.createElement(LanguageNav, { ariaLabel: text("ariaLabel", ""), languages: [
9
13
  {
@@ -1 +1 @@
1
- {"version":3,"file":"LanguageNav.stories.js","sourceRoot":"","sources":["../../../src/navigation/LanguageNav.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAExD,eAAe;IACb,KAAK,EAAE,wBAAwB;IAC/B,UAAU,EAAE,CAAC,UAAC,OAAY,IAAK,OAAA,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,IAAG,OAAO,EAAE,CAAO,EAAlD,CAAkD,EAAE,SAAS,CAAC;CAC9F,CAAA;AAED,MAAM,CAAC,IAAM,OAAO,GAAG,cAAM,OAAA,CAC3B,oBAAC,WAAW,IACV,SAAS,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,EAChC,SAAS,EAAE;QACT;YACE,KAAK,EAAE,SAAS;YAChB,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,cAAO,CAAC;SAClB;QACD;YACE,KAAK,EAAE,SAAS;YAChB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,cAAO,CAAC;SAClB;KACF,GACD,CACH,EAhB4B,CAgB5B,CAAA"}
1
+ {"version":3,"file":"LanguageNav.stories.js","sourceRoot":"","sources":["../../../src/navigation/LanguageNav.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAA;AACnD,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAA;AAExD,eAAe;IACb,KAAK,EAAE,2BAA2B;IAClC,UAAU,EAAE,CAAC,UAAC,OAAY,IAAK,OAAA,6BAAK,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,IAAG,OAAO,EAAE,CAAO,EAAlD,CAAkD,EAAE,SAAS,CAAC;IAC7F,UAAU,EAAE;QACV,MAAM,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC;KACtB;CACF,CAAA;AAED,MAAM,CAAC,IAAM,OAAO,GAAG,cAAM,OAAA,CAC3B,oBAAC,WAAW,IACV,SAAS,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,CAAC,EAChC,SAAS,EAAE;QACT;YACE,KAAK,EAAE,SAAS;YAChB,MAAM,EAAE,IAAI;YACZ,OAAO,EAAE,cAAO,CAAC;SAClB;QACD;YACE,KAAK,EAAE,SAAS;YAChB,MAAM,EAAE,KAAK;YACb,OAAO,EAAE,cAAO,CAAC;SAClB;KACF,GACD,CACH,EAhB4B,CAgB5B,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bloom-housing/ui-components",
3
- "version": "10.0.4",
3
+ "version": "10.0.6",
4
4
  "author": "Sean Albert <sean.albert@exygy.com>",
5
5
  "description": "Shared user interface components for Bloom affordable housing system",
6
6
  "homepage": "https://github.com/bloom-housing/ui-components",
@@ -1,5 +1,8 @@
1
1
  .footer-sock {
2
- @apply bg-gray-900;
2
+ --background-color: var(--bloom-color-gray-900);
3
+ --copyright-text-color: var(--bloom-color-gray-500);
4
+
5
+ background-color: var(--background-color);
3
6
  @apply py-8;
4
7
  @apply px-2;
5
8
 
@@ -29,9 +32,11 @@
29
32
  }
30
33
 
31
34
  .footer-copyright {
35
+ color: var(--copyright-text-color);
32
36
  width: auto;
33
37
  flex-shrink: 0;
34
38
  @screen lg {
39
+ @apply w-full;
35
40
  @apply text-left;
36
41
  }
37
42
  }
@@ -1,32 +1,43 @@
1
1
  .language-bar {
2
- @apply bg-gray-800;
2
+ --inner-max-width: var(--bloom-width-5xl);
3
+ --inner-width: inherit;
4
+ --inner-desktop-padding: inherit;
5
+ --inner-mobile-padding: inherit;
6
+
7
+ background-color: var(--bloom-color-gray-800);
3
8
  }
4
9
 
5
10
  .language-bar__inner {
6
- @apply max-w-5xl;
7
- @apply flex;
8
- @apply justify-end;
11
+ max-width: var(--inner-max-width);
12
+ width: var(--inner-width);
13
+ display: flex;
14
+ justify-content: end;
9
15
  margin: auto;
16
+ padding: var(--inner-mobile-padding);
17
+
18
+ @media (min-width: $screen-md) {
19
+ padding: 0 var(--bloom-s3);
20
+ padding: var(--inner-desktop-padding);
21
+ }
10
22
  }
11
23
 
12
24
  .language-nav__list {
13
- @apply flex;
25
+ display: flex;
14
26
  }
15
27
 
16
28
  .language-nav__list-button {
17
- @apply py-2;
18
- @apply px-3;
19
- @apply text-gray-500;
20
- @apply font-semibold;
21
- @apply cursor-pointer;
22
- @apply bg-none;
29
+ padding: var(--bloom-s2) var(--bloom-s3);
30
+ color: var(--bloom-color-gray-500);
31
+ font-weight: 600;
32
+ cursor: pointer;
33
+ background-color: transparent;
23
34
 
24
35
  &:focus {
25
36
  outline: none;
26
- box-shadow: 0 0 0 2px #fff, 0 0 3px 4px $tailwind-accent-cool;
37
+ box-shadow: 0 0 0 2px #fff, 0 0 3px 4px var(--bloom-color-accent-cool);
27
38
  }
28
39
 
29
40
  &.is-active {
30
- @apply text-white;
41
+ color: var(--bloom-color-white);
31
42
  }
32
43
  }
@@ -1,11 +1,14 @@
1
1
  import React from "react"
2
-
2
+ import { BADGES } from "../../.storybook/constants"
3
3
  import { LanguageNav } from "./LanguageNav"
4
4
  import { text, withKnobs } from "@storybook/addon-knobs"
5
5
 
6
6
  export default {
7
- title: "Navigation/LanguageNav",
7
+ title: "Navigation/LanguageNav 🚩",
8
8
  decorators: [(storyFn: any) => <div style={{ padding: "1rem" }}>{storyFn()}</div>, withKnobs],
9
+ parameters: {
10
+ badges: [BADGES.GEN2],
11
+ },
9
12
  }
10
13
 
11
14
  export const Default = () => (