Skip to content

Commit

Permalink
fix: Paris color migration (#46)
Browse files Browse the repository at this point in the history
* fix: Paris color migration

* updated all Paris components to use “new” variables
* Button medium size
* Tag new kinds and small size
* Drawer new sizes, and glass bottomPanel
* Tabs new kind and glass option
* Misc updates to storybook pages

* fix: Button and Tag props

* Button: added `corners` prop, removed “rounded” shape
* Callout: remvoed `hideIcon` prop, instead hides when `icon={null}`
* Input: reverted to using `data-status={disabled}` so that disabled styling will overrule the status states (error, success), change applies across all input types
* Drawer: removed bottomPanel padding change
* Tabs: fixes to glass style
* Tag: removed “small” size, instead added `shape` prop as “rectangle” or “square”, plus `corners` prop to control border and border-radius

* fix: overlayStyle grey

* renamed `overlayStyle` from “greyed” to “grey”
* changed Dialog default to “blur”
  • Loading branch information
aring4k authored Sep 24, 2024
1 parent 30a3150 commit a8941e5
Show file tree
Hide file tree
Showing 78 changed files with 2,395 additions and 685 deletions.
5 changes: 5 additions & 0 deletions .changeset/angry-steaks-occur.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

Accordion: color updates
5 changes: 5 additions & 0 deletions .changeset/dirty-garlics-enjoy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": minor
---

Tabs: color and styling updates, kind `full`, `barStyle` thick or thin, `backgroundStyle` with glass option
5 changes: 5 additions & 0 deletions .changeset/giant-pants-breathe.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

Styled Link: color updates
5 changes: 5 additions & 0 deletions .changeset/giant-taxis-think.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

Table: color and styling updates
5 changes: 5 additions & 0 deletions .changeset/hip-baboons-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

Toast: color updates
5 changes: 5 additions & 0 deletions .changeset/metal-dogs-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": minor
---

Theme: updated “materials” variables, added accent glows to “lighting”
5 changes: 5 additions & 0 deletions .changeset/orange-trains-reflect.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

Popover: color updates
5 changes: 5 additions & 0 deletions .changeset/polite-vans-shave.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": minor
---

Drawer: color and styling updates, new sizes `fullWithMargin` and `fullOnMobile` with tweaked `full` behavior, `bottomPanel` with glass material and removed padding, `additionalActions` available on paginated drawers, `overlayStyle` "greyed" renamed to "grey"
5 changes: 5 additions & 0 deletions .changeset/real-carrots-end.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": minor
---

Dialog: color and styling updates, `overlayStyle` with default `blur` and option `grey`
5 changes: 5 additions & 0 deletions .changeset/real-kids-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

Checkbox: color updates
5 changes: 5 additions & 0 deletions .changeset/rich-geckos-draw.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": minor
---

Callout: color updates, default ArrowRight icon
5 changes: 5 additions & 0 deletions .changeset/seven-walls-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

Select: color and styling updates, fixed disabled states
5 changes: 5 additions & 0 deletions .changeset/silver-hornets-begin.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": minor
---

Tag: color and styling updates, `shape` prop for `square` variant with `icon`, `corners` prop for border and radius, planned` and `void` kinds, `colorLevel` to adjust color background
5 changes: 5 additions & 0 deletions .changeset/spicy-cats-buy.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": minor
---

Button: color updates, added `medium` size, `corners` prop for border-radius, removed `rounded` shape
5 changes: 5 additions & 0 deletions .changeset/spicy-geese-appear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

Menu: color updates
5 changes: 5 additions & 0 deletions .changeset/spotty-cameras-count.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

TextArea: color updates, enhancer updates to match Input
5 changes: 5 additions & 0 deletions .changeset/tender-drinks-play.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

Card: color updates
5 changes: 5 additions & 0 deletions .changeset/tough-ghosts-type.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

Avatar: color updates
5 changes: 5 additions & 0 deletions .changeset/warm-badgers-attend.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

Combobox: color and styling updates
5 changes: 5 additions & 0 deletions .changeset/wicked-parrots-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

Icon: `Check` and `ArrowRight`
5 changes: 5 additions & 0 deletions .changeset/wild-wasps-rescue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"paris": patch
---

Input: color and styling updates, enhancer color states
4 changes: 2 additions & 2 deletions .storybook/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ const config: StorybookConfig = {
previewHead: head => `${head}
<style>
body {
color: var(--pte-colors-contentPrimary);
background-color: var(--pte-colors-backgroundPrimary);
color: var(--pte-new-colors-contentPrimary);
background-color: var(--pte-new-colors-backgroundPrimary);
transition: background-color 0.2s ease-in-out, color 0.2s ease-in-out;
}
Expand Down
6 changes: 3 additions & 3 deletions .storybook/themes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ export const Light = create({
...sharedConfig,
base: 'light',
brandImage: 'https://fast.slingshot.fm/sling/logo/paris-sb.png',
appBg: LightTheme.colors.backgroundPrimary,
appBg: LightTheme.new.colors.backgroundPrimary,
});

export const Dark = create({
...sharedConfig,
base: 'dark',
brandImage: 'https://fast.slingshot.fm/sling/logo/paris-sb-white.png',
appBg: DarkTheme.colors.backgroundPrimary,
appContentBg: DarkTheme.colors.backgroundPrimary,
appBg: DarkTheme.new.colors.backgroundPrimary,
appContentBg: DarkTheme.new.colors.backgroundPrimary,
});
Loading

0 comments on commit a8941e5

Please sign in to comment.