paris 0.24.0 → 0.24.1
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/CHANGELOG.md +10 -0
- package/README.md +2 -2
- package/dist/stories/accordion/Accordion.module.scss.js +1 -1
- package/dist/stories/accordionselect/AccordionSelect.module.scss.js +1 -1
- package/dist/stories/avatar/Avatar.module.scss.js +1 -1
- package/dist/stories/button/Button.module.scss.js +1 -1
- package/dist/stories/callout/Callout.module.scss.js +1 -1
- package/dist/stories/card/Card.module.scss.js +1 -1
- package/dist/stories/cardbutton/CardButton.module.scss.js +1 -1
- package/dist/stories/checkbox/Checkbox.module.scss.js +1 -1
- package/dist/stories/codeinput/CodeInput.module.scss.js +1 -1
- package/dist/stories/dialog/Dialog.module.scss.js +1 -1
- package/dist/stories/drawer/Drawer.module.scss.js +1 -1
- package/dist/stories/informationaltooltip/InformationalTooltip.module.scss.js +1 -1
- package/dist/stories/input/Input.module.scss.js +1 -1
- package/dist/stories/markdown/Markdown.module.scss.js +1 -1
- package/dist/stories/markdowneditor/FixedToolbar.module.scss.js +1 -1
- package/dist/stories/markdowneditor/FloatingToolbar.module.scss.js +1 -1
- package/dist/stories/markdowneditor/LinkPopover.module.scss.js +1 -1
- package/dist/stories/markdowneditor/MarkdownEditor.module.scss.js +1 -1
- package/dist/stories/markdowneditor/ToolbarButton.module.scss.js +1 -1
- package/dist/stories/menu/Menu.module.scss.js +1 -1
- package/dist/stories/popover/Popover.module.scss.js +1 -1
- package/dist/stories/select/Select.module.scss.js +1 -1
- package/dist/stories/styledlink/StyledLink.module.scss.js +1 -1
- package/dist/stories/table/Table.module.scss.js +1 -1
- package/dist/stories/tabs/Tabs.module.scss.js +1 -1
- package/dist/stories/tag/Tag.module.scss.js +1 -1
- package/dist/stories/text/Text.module.scss.js +1 -1
- package/dist/stories/text/Typography.module.css.js +1 -1
- package/dist/stories/tilt/Tilt.module.scss.js +1 -1
- package/dist/stories/toast/Toast.module.scss.js +1 -1
- package/package.json +2 -2
- /package/dist/stories/accordion/{Accordion.module.css → Accordion.css} +0 -0
- /package/dist/stories/accordionselect/{AccordionSelect.module.css → AccordionSelect.css} +0 -0
- /package/dist/stories/avatar/{Avatar.module.css → Avatar.css} +0 -0
- /package/dist/stories/button/{Button.module.css → Button.css} +0 -0
- /package/dist/stories/callout/{Callout.module.css → Callout.css} +0 -0
- /package/dist/stories/card/{Card.module.css → Card.css} +0 -0
- /package/dist/stories/cardbutton/{CardButton.module.css → CardButton.css} +0 -0
- /package/dist/stories/checkbox/{Checkbox.module.css → Checkbox.css} +0 -0
- /package/dist/stories/codeinput/{CodeInput.module.css → CodeInput.css} +0 -0
- /package/dist/stories/dialog/{Dialog.module.css → Dialog.css} +0 -0
- /package/dist/stories/drawer/{Drawer.module.css → Drawer.css} +0 -0
- /package/dist/stories/informationaltooltip/{InformationalTooltip.module.css → InformationalTooltip.css} +0 -0
- /package/dist/stories/input/{Input.module.css → Input.css} +0 -0
- /package/dist/stories/markdown/{Markdown.module.css → Markdown.css} +0 -0
- /package/dist/stories/markdowneditor/{FixedToolbar.module.css → FixedToolbar.css} +0 -0
- /package/dist/stories/markdowneditor/{FloatingToolbar.module.css → FloatingToolbar.css} +0 -0
- /package/dist/stories/markdowneditor/{LinkPopover.module.css → LinkPopover.css} +0 -0
- /package/dist/stories/markdowneditor/{MarkdownEditor.module.css → MarkdownEditor.css} +0 -0
- /package/dist/stories/markdowneditor/{ToolbarButton.module.css → ToolbarButton.css} +0 -0
- /package/dist/stories/menu/{Menu.module.css → Menu.css} +0 -0
- /package/dist/stories/popover/{Popover.module.css → Popover.css} +0 -0
- /package/dist/stories/select/{Select.module.css → Select.css} +0 -0
- /package/dist/stories/styledlink/{StyledLink.module.css → StyledLink.css} +0 -0
- /package/dist/stories/table/{Table.module.css → Table.css} +0 -0
- /package/dist/stories/tabs/{Tabs.module.css → Tabs.css} +0 -0
- /package/dist/stories/tag/{Tag.module.css → Tag.css} +0 -0
- /package/dist/stories/text/{Text.module.css → Text.css} +0 -0
- /package/dist/stories/text/{Typography.module.css → Typography.css} +0 -0
- /package/dist/stories/tilt/{Tilt.module.css → Tilt.css} +0 -0
- /package/dist/stories/toast/{Toast.module.css → Toast.css} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# paris
|
|
2
2
|
|
|
3
|
+
## 0.24.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 83fdca9: Fix: ship per-component CSS as plain `.css` instead of `.module.css`
|
|
8
|
+
|
|
9
|
+
v0.24.0 emitted each component's extracted CSS as a `*.module.css` file while baking the (already globally-unique) `paris_<local>_<hash>` class names into the compiled JS as literal strings. Consumer bundlers that honor the CSS-Modules naming convention (Next.js and Vite both do) re-scoped those files a second time — rewriting the selector to `.Button-module__<hash>__paris_button_<hash>`, which no longer matched the class Paris applied to the element. The result was that **every component rendered unstyled**.
|
|
10
|
+
|
|
11
|
+
The build now renames each extracted `*.module.css` to plain `*.css` and rewrites the JS side-effect import to match, so downstream bundlers treat the CSS as global (already-scoped) and leave the class names alone. Class names, the `exports` map, `sideEffects`, and the `paris/styles.css` aggregate are unchanged. Verified end-to-end in Next.js App Router and Vite React (computed `display: flex` on a rendered Button).
|
|
12
|
+
|
|
3
13
|
## 0.24.0
|
|
4
14
|
|
|
5
15
|
### Minor Changes
|
package/README.md
CHANGED
|
@@ -10,11 +10,11 @@ Paris 1.x styling is heavily inspired by Uber's [Base Web](https://baseweb.desig
|
|
|
10
10
|
|
|
11
11
|
## Upgrading from a pre-0.24 version?
|
|
12
12
|
|
|
13
|
-
As of **v0.24**, Paris ships precompiled — so you can **remove** `transpilePackages: ['paris']` and the `sass` dependency, and switch your global-styles import to `paris/theme/global.css`. Component import paths are unchanged.
|
|
13
|
+
As of **v0.24**, Paris ships precompiled — so you can **remove** `transpilePackages: ['paris']` and the `sass` dependency, and switch your global-styles import to `paris/theme/global.css`. Component import paths are unchanged. (Use **`^0.24.1`** or newer — 0.24.0 had a CSS packaging bug that left components unstyled.)
|
|
14
14
|
|
|
15
15
|
The easiest way to upgrade is to **hand it to your coding agent**. Copy the prompt below into Claude Code, Cursor, or any agent working in your repo:
|
|
16
16
|
|
|
17
|
-
> Upgrade this project's `paris` dependency to
|
|
17
|
+
> Upgrade this project's `paris` dependency to `^0.24.1` (or newer). Follow the official migration guide at https://paris.slingshot.fm/migrate-0.24.md carefully and step by step — fetch and read the whole guide first, make only the changes it describes, and run the project's build/typecheck at the end to confirm everything passes. Report exactly what you changed.
|
|
18
18
|
|
|
19
19
|
Prefer to do it by hand? The same guide is here: **[Migration guide → v0.24](https://paris.slingshot.fm/migrate-0.24.md)**.
|
|
20
20
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './Checkbox.
|
|
1
|
+
import './Checkbox.css';const container = "paris_container_hJlaN";
|
|
2
2
|
const containerbutton = "paris_containerbutton_H-e8h";
|
|
3
3
|
const disabled = "paris_disabled_R5-D0";
|
|
4
4
|
const root = "paris_root_w6zlF";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './Input.
|
|
1
|
+
import './Input.css';const inputContainer = "paris_inputContainer_a8TwY";
|
|
2
2
|
const inputScaleWrapper = "paris_inputScaleWrapper_XVKDd";
|
|
3
3
|
const enhancer = "paris_enhancer_dWZ5z";
|
|
4
4
|
const container = "paris_container_4aoux";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './Markdown.
|
|
1
|
+
import './Markdown.css';const markdown = "paris_markdown_xr6-T";
|
|
2
2
|
const heading = "paris_heading_YY-2-";
|
|
3
3
|
const paragraph = "paris_paragraph_e4anz";
|
|
4
4
|
const strikethrough = "paris_strikethrough_zLlkK";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import './Typography.
|
|
1
|
+
import './Typography.css';const displayLarge = "paris_displayLarge_5a9iJ";
|
|
2
2
|
const displayMedium = "paris_displayMedium_2lnZv";
|
|
3
3
|
const display = "paris_display_gJawE";
|
|
4
4
|
const displaySmall = "paris_displaySmall_pR3fw";
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "paris",
|
|
3
3
|
"author": "Sanil Chawla <sanil@slingshot.fm> (https://sanil.co)",
|
|
4
4
|
"description": "Paris is Slingshot's React design system. It's a collection of reusable components, design tokens, and guidelines that help us build consistent, accessible, and performant user interfaces.",
|
|
5
|
-
"version": "0.24.
|
|
5
|
+
"version": "0.24.1",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"sideEffects": [
|
|
8
8
|
"**/*.css",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"storybook"
|
|
32
32
|
],
|
|
33
33
|
"scripts": {
|
|
34
|
-
"build": "bun run generate:exports && vite build && node scripts/
|
|
34
|
+
"build": "bun run generate:exports && vite build && node scripts/postbuild.mjs",
|
|
35
35
|
"build:site": "next build",
|
|
36
36
|
"prepack": "bun run build",
|
|
37
37
|
"storybook": "storybook dev -p 6006",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|