Skip to content

Commit 6c68dd6

Browse files
Merge branch 'main' into uif/cl-619/hide-icons-by-default
2 parents 8ca2f05 + 3c3a0e6 commit 6c68dd6

File tree

7 files changed

+32
-34
lines changed

7 files changed

+32
-34
lines changed

apps/browser/src/autofill/content/components/cipher/cipher-indicator-icons.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { html, TemplateResult } from "lit";
44
import { Theme } from "@bitwarden/common/platform/enums";
55

66
import { themes } from "../../../content/components/constants/styles";
7-
import { Business, Users } from "../../../content/components/icons";
7+
import { Business, Family } from "../../../content/components/icons";
88

99
import { OrganizationCategories, OrganizationCategory } from "./types";
1010

@@ -13,7 +13,7 @@ const cipherIndicatorIconsMap: Record<
1313
(args: { color: string; theme: Theme }) => TemplateResult
1414
> = {
1515
[OrganizationCategories.business]: Business,
16-
[OrganizationCategories.family]: Users,
16+
[OrganizationCategories.family]: Family,
1717
};
1818

1919
export function CipherInfoIndicatorIcons({

apps/browser/src/autofill/content/components/icons/collection.ts renamed to apps/browser/src/autofill/content/components/icons/collection-shared.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { html } from "lit";
44
import { IconProps } from "../common-types";
55
import { buildIconColorRule, ruleNames, themes } from "../constants/styles";
66

7-
export function Collection({ color, disabled, theme }: IconProps) {
7+
export function CollectionShared({ color, disabled, theme }: IconProps) {
88
const shapeColor = disabled ? themes[theme].secondary["300"] : color || themes[theme].text.main;
99

1010
return html`
1111
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 14 14" fill="none">
1212
<path
1313
class=${css(buildIconColorRule(shapeColor, ruleNames.fill))}
14-
d="M3.5.75A.75.75 0 0 1 4.25 0h5.5a.75.75 0 0 1 0 1.5h-5.5A.75.75 0 0 1 3.5.75ZM2.25 2a.75.75 0 0 0 0 1.5h9.5a.75.75 0 0 0 0-1.5h-9.5Z"
14+
d="M3.5.75A.75.75 0 0 1 4.25 0h5.5a.75.75 0 0 1 0 1.5h-5.5A.75.75 0 0 1 3.5.75ZM2.25 2a.75.75 0 0 0 0 1.5h9.5a.75.75 0 0 0 0-1.5h-9.5ZM6 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM10 8a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM7 11.46a1.928 1.928 0 0 0-.586-1.386 2.035 2.035 0 0 0-2.828 0A1.928 1.928 0 0 0 3 11.461c0 .298.241.539.54.539h2.92a.54.54 0 0 0 .54-.54ZM8 11.46a2.928 2.928 0 0 0-.371-1.426A2.005 2.005 0 0 1 9 9.5a2.035 2.035 0 0 1 1.414.574A1.928 1.928 0 0 1 11 11.461a.54.54 0 0 1-.54.539H7.904c.063-.168.097-.35.097-.54Z"
1515
/>
1616
<path
1717
class=${css(buildIconColorRule(shapeColor, ruleNames.fill))}
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
import { css } from "@emotion/css";
2+
import { html } from "lit";
3+
4+
import { IconProps } from "../common-types";
5+
import { buildIconColorRule, ruleNames, themes } from "../constants/styles";
6+
7+
export function Family({ color, disabled, theme }: IconProps) {
8+
const shapeColor = disabled ? themes[theme].secondary["300"] : color || themes[theme].text.main;
9+
10+
return html`
11+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none">
12+
<path
13+
class=${css(buildIconColorRule(shapeColor, ruleNames.fill))}
14+
fill-rule="evenodd"
15+
d="M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0Zm-1.5 0a6.47 6.47 0 0 1-.932 3.356 3.732 3.732 0 0 0-1.106-.784 3.547 3.547 0 0 0-.516-.19 2 2 0 1 0-3.444-1.297c-.323-.216-.681-.4-1.069-.536a2.5 2.5 0 1 0-3.065-.155 5.405 5.405 0 0 0-1.59.674 3.912 3.912 0 0 0-.977.893A6.5 6.5 0 1 1 14.5 8ZM2.531 11.514a.75.75 0 0 0 .103-.13c.276-.436.552-.801.942-1.047a3.837 3.837 0 0 1 1.177-.492 5.243 5.243 0 0 1 .845-.095h.007l.022.001h.023c.436 0 .865.07 1.262.205.381.13.733.335 1.037.584.175.143.324.3.448.465l.164.226a4.13 4.13 0 0 0-1.035 1.565 4.407 4.407 0 0 0-.276 1.537c0 .043.004.085.01.125a6.5 6.5 0 0 1-4.729-2.944Zm10.033.964.07.08a6.481 6.481 0 0 1-3.894 1.9.757.757 0 0 0 .01-.125c0-.35.062-.694.181-1.013a2.63 2.63 0 0 1 .505-.842c.213-.237.462-.42.73-.543.267-.123.55-.185.834-.185.284 0 .567.062.835.185.267.123.516.306.729.543ZM7 6.5a1 1 0 1 1-2 0 1 1 0 0 1 2 0ZM11 9a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0Z"
16+
/>
17+
</svg>
18+
`;
19+
}

apps/browser/src/autofill/content/components/icons/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ export { AngleUp } from "./angle-up";
33
export { BrandIconContainer } from "./brand-icon-container";
44
export { Business } from "./business";
55
export { Close } from "./close";
6-
export { Collection } from "./collection";
6+
export { CollectionShared } from "./collection-shared";
77
export { ExclamationTriangle } from "./exclamation-triangle";
88
export { ExternalLink } from "./external-link";
9+
export { Family } from "./family";
910
export { Folder } from "./folder";
1011
export { Globe } from "./globe";
1112
export { PencilSquare } from "./pencil-square";
1213
export { Shield } from "./shield";
1314
export { User } from "./user";
14-
export { Users } from "./users";

apps/browser/src/autofill/content/components/icons/users.ts

Lines changed: 0 additions & 18 deletions
This file was deleted.

apps/browser/src/autofill/content/components/lit-stories/icons/icons.lit-stories.ts

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -43,26 +43,23 @@ const createIconStory = (iconName: keyof typeof Icons): StoryObj<Args> => {
4343
render: (args) => Template(args, Icons[iconName]),
4444
} as StoryObj<Args>;
4545

46-
if (iconName !== "BrandIconContainer") {
47-
story.argTypes = {
48-
iconLink: { table: { disable: true } },
49-
};
50-
}
46+
story.argTypes = {
47+
iconLink: { table: { disable: true } },
48+
};
5149

5250
return story;
5351
};
5452

5553
export const AngleDownIcon = createIconStory("AngleDown");
5654
export const AngleUpIcon = createIconStory("AngleUp");
57-
export const BrandIcon = createIconStory("BrandIconContainer");
5855
export const BusinessIcon = createIconStory("Business");
5956
export const CloseIcon = createIconStory("Close");
60-
export const CollectionIcon = createIconStory("Collection");
57+
export const CollectionSharedIcon = createIconStory("CollectionShared");
6158
export const ExclamationTriangleIcon = createIconStory("ExclamationTriangle");
6259
export const ExternalLinkIcon = createIconStory("ExternalLink");
60+
export const FamilyIcon = createIconStory("Family");
6361
export const FolderIcon = createIconStory("Folder");
6462
export const GlobeIcon = createIconStory("Globe");
6563
export const PencilSquareIcon = createIconStory("PencilSquare");
6664
export const ShieldIcon = createIconStory("Shield");
6765
export const UserIcon = createIconStory("User");
68-
export const UsersIcon = createIconStory("Users");

apps/browser/src/autofill/content/components/notification/button-row.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@ import { ProductTierType } from "@bitwarden/common/billing/enums";
44
import { Theme } from "@bitwarden/common/platform/enums";
55

66
import { Option, OrgView, FolderView } from "../common-types";
7-
import { Business, Users, Folder, User } from "../icons";
7+
import { Business, Family, Folder, User } from "../icons";
88
import { ButtonRow } from "../rows/button-row";
99

1010
function getVaultIconByProductTier(productTierType?: ProductTierType): Option["icon"] {
1111
switch (productTierType) {
1212
case ProductTierType.Free:
1313
case ProductTierType.Families:
14-
return Users;
14+
return Family;
1515
case ProductTierType.Teams:
1616
case ProductTierType.Enterprise:
1717
case ProductTierType.TeamsStarter:

0 commit comments

Comments
 (0)