@medusajs/ui-preset 1.0.0 → 1.0.2
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/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +72 -0
- package/LICENSE +21 -0
- package/README.md +36 -1
- package/dist/index.js +366 -236
- package/dist/index.mjs +366 -236
- package/package.json +6 -1
- package/src/plugin.ts +17 -2
- package/src/theme/extension/theme.ts +86 -55
- package/src/theme/tokens/colors.ts +104 -90
- package/src/theme/tokens/components.ts +74 -38
- package/src/theme/tokens/effects.ts +34 -36
- package/src/theme/tokens/typography.ts +49 -13
package/.turbo/turbo-build.log
CHANGED
|
@@ -6,11 +6,11 @@ CLI Target: node16
|
|
|
6
6
|
CLI Cleaning output folder
|
|
7
7
|
CJS Build start
|
|
8
8
|
ESM Build start
|
|
9
|
-
CJS dist/index.js
|
|
10
|
-
CJS ⚡️ Build success in
|
|
11
|
-
ESM dist/index.mjs
|
|
12
|
-
ESM ⚡️ Build success in
|
|
9
|
+
CJS dist/index.js 45.02 KB
|
|
10
|
+
CJS ⚡️ Build success in 16ms
|
|
11
|
+
ESM dist/index.mjs 49.15 KB
|
|
12
|
+
ESM ⚡️ Build success in 18ms
|
|
13
13
|
DTS Build start
|
|
14
|
-
DTS ⚡️ Build success in
|
|
14
|
+
DTS ⚡️ Build success in 1645ms
|
|
15
15
|
DTS dist/index.d.ts 12.00 B
|
|
16
16
|
DTS dist/index.d.mts 12.00 B
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,77 @@
|
|
|
1
1
|
# @medusajs/ui-preset
|
|
2
2
|
|
|
3
|
+
## 1.0.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 035fa72: feat(ui,ui-preset): Release 2.1.0
|
|
8
|
+
|
|
9
|
+
## `@medusajs/ui`
|
|
10
|
+
|
|
11
|
+
- The styling of buttons, inputs, and the CommandBar has been adjusted to have a more consistent look and feel.
|
|
12
|
+
- Fixed an issue that caused DropdownMenu.Content to overflow the viewport.
|
|
13
|
+
- Fixed an issue with the DatePicker component where deleting a time segment would throw an error.
|
|
14
|
+
- The Text component now accepts a `leading` prop to adjust the line height. It can be set to `normal` (default) or `compact`. This change in the API is fully backwards compatible.
|
|
15
|
+
- Adds a new subcomponent to RadioGroup called RadioGroup.ChoiceBox. This component wraps the RadioGroup.Item component with a mandatory label and description.
|
|
16
|
+
|
|
17
|
+
## `@medusajs/ui-preset`
|
|
18
|
+
|
|
19
|
+
- Updated several colors, shadows, and gradient effects.
|
|
20
|
+
|
|
21
|
+
## `@medusajs/icons`
|
|
22
|
+
|
|
23
|
+
- Introduces 6 new icons: QuestionMark, SparklesMiniSolid, SparklesMini, ThumbDown, ThumbUp, and UserCircleMini.
|
|
24
|
+
- There have been slight adjustments made to ArrowPathMini, EllipseBlueSolid, EllipseGreenSolid, EllipseGreySolid, EllipseOrangeSolid, EllipsePurpleSolid, and EllipseRedSolid.
|
|
25
|
+
|
|
26
|
+
## 1.0.1
|
|
27
|
+
|
|
28
|
+
### Patch Changes
|
|
29
|
+
|
|
30
|
+
- ef98084: feat(ui,icons,ui-preset): Update to Medusa UI, including new components, icons, and preset styles.
|
|
31
|
+
|
|
32
|
+
# Changes in `@medusajs/ui`
|
|
33
|
+
|
|
34
|
+
## New components
|
|
35
|
+
|
|
36
|
+
- `IconButton` - A button that only contains an icon.
|
|
37
|
+
- `IconBadge` - A badge that only contains an icon.
|
|
38
|
+
- `StatusBadge` - A badge component specifically designed to be used for displaying statuses.
|
|
39
|
+
- `Tabs` - A tab component that can be used to switch between different views.
|
|
40
|
+
- `ProgressTabs` - A tab component specifically designed to be used for building multi-step tasks.
|
|
41
|
+
- `ProgressAccordion` - An accordion component specifically designed to be used for building multi-step tasks.
|
|
42
|
+
- `CurrencyInput` - An input component that can be used to input currency values.
|
|
43
|
+
- `CommandBar` - A component that can be used to display a list of keyboard commands omn the screen.
|
|
44
|
+
- `CurrencyInput` - An input component that can be used to input currency values, such as prices.
|
|
45
|
+
|
|
46
|
+
## Breaking changes
|
|
47
|
+
|
|
48
|
+
Several components have been reorganized to streamline their API. The following components have breaking changes:
|
|
49
|
+
|
|
50
|
+
- Button - The `format` property has been removed. To create a Icon only button, use the new `IconButton` component.
|
|
51
|
+
- Badge - The `format` property has been removed. To create a Icon only badge, use the new `IconBadge` component. The border radius of the component is now controlled using the new `rounded` property.
|
|
52
|
+
- CodeBlock - The `hideLineNumbers` property has been moved to the `snippets` property. This allows users to control the visibility of line numbers on a per snippet basis.
|
|
53
|
+
|
|
54
|
+
## Other changes
|
|
55
|
+
|
|
56
|
+
- The `z-index`'s of all components have been cleaned up to to make stacking portalled components easier.
|
|
57
|
+
- `Table.Pagination` has been tweaked to ensure that it displays the correct number of pages when there is no data.
|
|
58
|
+
- `Calendar` has been tweaked to prevent clicking a date from submitting any forms that precede it in the DOM.
|
|
59
|
+
|
|
60
|
+
# Changes in `@medusajs/icons`
|
|
61
|
+
|
|
62
|
+
## New icons
|
|
63
|
+
|
|
64
|
+
- `X`
|
|
65
|
+
- `AcademicCap`
|
|
66
|
+
- `Figma`
|
|
67
|
+
- `Photo`
|
|
68
|
+
- `PuzzleSolid`
|
|
69
|
+
- `Text`
|
|
70
|
+
|
|
71
|
+
# Changes in `@medusajs/ui-preset`
|
|
72
|
+
|
|
73
|
+
Minor tweaks to colors, typography, and animations.
|
|
74
|
+
|
|
3
75
|
## 1.0.0
|
|
4
76
|
|
|
5
77
|
### Major Changes
|
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2023 Medusajs
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<a href="https://www.medusajs.com">
|
|
3
|
+
<picture>
|
|
4
|
+
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/59018053/229103275-b5e482bb-4601-46e6-8142-244f531cebdb.svg">
|
|
5
|
+
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg">
|
|
6
|
+
<img alt="Medusa logo" src="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg">
|
|
7
|
+
</picture>
|
|
8
|
+
</a>
|
|
9
|
+
</p>
|
|
10
|
+
<h1 align="center">
|
|
11
|
+
Medusa UI
|
|
12
|
+
</h1>
|
|
13
|
+
|
|
14
|
+
<h4 align="center">
|
|
15
|
+
<a href="https://docs.medusajs.com/ui">Documentation</a> |
|
|
16
|
+
<a href="https://www.medusajs.com">Website</a>
|
|
17
|
+
</h4>
|
|
18
|
+
|
|
19
|
+
<p align="center">
|
|
20
|
+
Medusa's design system tokens.
|
|
21
|
+
</p>
|
|
22
|
+
<p align="center">
|
|
23
|
+
<a href="https://github.com/medusajs/medusa/blob/develop/LICENSE">
|
|
24
|
+
<img src="https://img.shields.io/badge/license-MIT-blue.svg" alt="Medusa is released under the MIT license." />
|
|
25
|
+
</a>
|
|
26
|
+
<a href="https://discord.gg/xpCwq3Kfn8">
|
|
27
|
+
<img src="https://img.shields.io/badge/chat-on%20discord-7289DA.svg" alt="Discord Chat" />
|
|
28
|
+
</a>
|
|
29
|
+
<a href="https://twitter.com/intent/follow?screen_name=medusajs">
|
|
30
|
+
<img src="https://img.shields.io/twitter/follow/medusajs.svg?label=Follow%20@medusajs" alt="Follow @medusajs" />
|
|
31
|
+
</a>
|
|
32
|
+
</p>
|
|
33
|
+
|
|
34
|
+
## Note
|
|
35
|
+
|
|
36
|
+
This package is auto-generated, and requires a Figma token associated with the Medusa Figma organization. If you are a not a Medusa team member, you will not be able to make changes to this package. If you discover any issues please open an issue instead of a PR.
|