Skip to content

Commit

Permalink
chore: add further product and gui icons
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiehenson committed Nov 7, 2024
1 parent 90a96e6 commit e99f5f3
Show file tree
Hide file tree
Showing 11 changed files with 94 additions and 8 deletions.
56 changes: 56 additions & 0 deletions src/core/Accordion/utils.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
import { AccordionTheme, AccordionThemeColors } from "./types";

export const themeClasses: Record<AccordionTheme, AccordionThemeColors> = {
dark: {
bg: "bg-neutral-1200",
hoverBg: "hover:bg-neutral-1100",
text: "text-white",
toggleIconColor: "text-orange-600",
selectableBg: "data-[state=open]:bg-neutral-300",
selectableText: "data-[state=open]:text-neutral-1300",
},
light: {
bg: "bg-neutral-200",
hoverBg: "hover:bg-neutral-300",
text: "text-neutral-1300",
toggleIconColor: "text-neutral-1000",
selectableBg: "data-[state=open]:bg-neutral-1200",
selectableText: "data-[state=open]:text-white",
},
transparent: {
bg: "bg-transparent",
hoverBg: "hover:bg-transparent",
text: "text-neutral-1000",
toggleIconColor: "text-dark-grey",
border: "border-neutral-500 border-b last:border-none",
},
darkTransparent: {
bg: "bg-transparent",
hoverBg: "hover:bg-transparent",
text: "text-neutral-000",
toggleIconColor: "text-orange-600",
border: "border-neutral-900 border-b last:border-none",
},
static: {
bg: "bg-neutral-200",
hoverBg: "hover:bg-neutral-200",
text: "text-neutral-1300",
toggleIconColor: "text-neutral-200",
selectableBg: "data-[state=open]:bg-neutral-1200",
selectableText: "data-[state=open]:text-white",
},
darkStatic: {
bg: "bg-neutral-1200",
hoverBg: "hover:bg-neutral-1200",
text: "text-white",
toggleIconColor: "text-neutral-1200",
selectableBg: "data-[state=open]:bg-neutral-1200",
selectableText: "data-[state=open]:text-neutral-1300",
},
};

export const isNonTransparentTheme = (theme: AccordionTheme) =>
!["transparent", "darkTransparent"].includes(theme);

export const isStaticTheme = (theme: AccordionTheme) =>
["static", "darkStatic"].includes(theme);
16 changes: 8 additions & 8 deletions src/core/Icon/Icon.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,14 @@ export const ProductIcons = {
render: () => renderIcons([...iconNames.product]),
};

export const DarkEncapsulatedIcons = {
render: () => renderIcons([...iconNames.product], true),
};

export const LightEncapsulatedIcons = {
render: () => renderIcons([...iconNames.product], true, "light"),
};

export const OtherIcons = {
render: () => renderIcons([...iconNames.other]),
};
Expand Down Expand Up @@ -98,11 +106,3 @@ export const IconWithSecondaryColor = {
},
},
};

export const DarkEncapsulatedIcons = {
render: () => renderIcons([...iconNames.product], true),
};

export const LightEncapsulatedIcons = {
render: () => renderIcons([...iconNames.product], true, "light"),
};
3 changes: 3 additions & 0 deletions src/core/icons/icon-gui-chevron-down.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/core/icons/icon-gui-chevron-up.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/core/icons/icon-gui-hand.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/core/icons/icon-product-asset-tracking-mono.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/core/icons/icon-product-chat-mono.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions src/core/icons/icon-product-livesync-mono.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/core/icons/icon-product-platform-mono.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/core/icons/icon-product-pub-sub-mono.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions src/core/icons/icon-product-spaces-mono.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit e99f5f3

Please sign in to comment.