shapes-ui 0.4.0 → 0.4.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/.idea/compiler.xml +6 -0
- package/.idea/copilot.data.migration.ask2agent.xml +6 -0
- package/.idea/vcs.xml +6 -0
- package/CHANGELOG.md +18 -0
- package/content/components/menu.mdx +29 -2
- package/content/components/menubar.mdx +4 -2
- package/content/components/meter.mdx +13 -1
- package/content/components/navigation-menu.mdx +6 -0
- package/content/components/number-field.mdx +24 -0
- package/content/components/popover.mdx +20 -0
- package/content/components/preview-card.mdx +11 -0
- package/content/components/progress.mdx +2 -0
- package/examples/__index.tsx +141 -96
- package/examples/menu-advanced.tsx +131 -0
- package/examples/menu-align.tsx +33 -0
- package/examples/menu-checkbox.tsx +28 -0
- package/examples/menu-demo.tsx +43 -12
- package/examples/menu-group.tsx +41 -0
- package/examples/menu-radio.tsx +23 -0
- package/examples/menu-submenu.tsx +43 -0
- package/examples/menubar-advanced.tsx +91 -0
- package/examples/meter-demo.tsx +1 -22
- package/examples/meter-flip.tsx +13 -0
- package/examples/meter-no-label.tsx +5 -0
- package/examples/meter-no-value.tsx +13 -0
- package/examples/navigation-menu-demo.tsx +113 -1
- package/examples/number-field-buttons-end.tsx +20 -0
- package/examples/number-field-demo.tsx +17 -1
- package/examples/number-field-scrub.tsx +38 -0
- package/examples/popover-demo.tsx +18 -1
- package/examples/popover-form.tsx +46 -0
- package/examples/popover-positions.tsx +54 -0
- package/examples/preview-card-demo.tsx +26 -1
- package/examples/preview-card-links.tsx +38 -0
- package/examples/progress-demo.tsx +33 -1
- package/package.json +1 -1
- package/public/r/accordion.json +5 -2
- package/public/r/alert-dialog.json +7 -3
- package/public/r/alert.json +4 -2
- package/public/r/autocomplete.json +18 -0
- package/public/r/avatar.json +15 -0
- package/public/r/badge.json +4 -2
- package/public/r/button-group.json +7 -3
- package/public/r/button.json +5 -2
- package/public/r/card.json +1 -1
- package/public/r/checkbox.json +5 -2
- package/public/r/collapsible.json +4 -2
- package/public/r/combobox.json +9 -3
- package/public/r/context-menu.json +5 -2
- package/public/r/dialog.json +9 -4
- package/public/r/drawer.json +8 -3
- package/public/r/field.json +5 -2
- package/public/r/fieldset.json +4 -2
- package/public/r/form.json +15 -0
- package/public/r/index.json +21 -2
- package/public/r/input-group.json +9 -3
- package/public/r/input.json +4 -2
- package/public/r/menu.json +16 -0
- package/public/r/menubar.json +16 -0
- package/public/r/meter.json +15 -0
- package/public/r/navigation-menu.json +16 -0
- package/public/r/number-field.json +18 -0
- package/public/r/popover.json +15 -0
- package/public/r/preview-card.json +15 -0
- package/public/r/progress.json +15 -0
- package/public/r/radio.json +16 -0
- package/public/r/scroll-area.json +5 -3
- package/public/r/select.json +16 -0
- package/public/r/separator.json +4 -2
- package/public/r/slider.json +15 -0
- package/public/r/switch.json +15 -0
- package/public/r/tabs.json +16 -0
- package/public/r/textarea.json +1 -1
- package/public/r/toast.json +16 -0
- package/public/r/toggle.json +16 -0
- package/public/r/toolbar.json +15 -0
- package/src/components/ui/menu.tsx +42 -16
- package/src/components/ui/menubar.tsx +52 -18
- package/src/components/ui/meter.tsx +7 -5
- package/src/components/ui/navigation-menu.tsx +121 -38
- package/src/components/ui/number-field.tsx +42 -46
- package/src/components/ui/popover.tsx +7 -2
- package/src/components/ui/preview-card.tsx +4 -2
- package/src/components/ui/progress.tsx +7 -18
- package/src/routeTree.gen.ts +79 -78
package/.idea/vcs.xml
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# shapes-ui
|
|
2
2
|
|
|
3
|
+
## 0.4.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 476148c: Updated menubar docs and stylings.
|
|
8
|
+
- 60ac79e: Updated meter examples and stylings
|
|
9
|
+
- a591c64: Added examples for preview card
|
|
10
|
+
- 7f642b5: Updated number field component and examples
|
|
11
|
+
- 30ebfe7: UPdated progress styles and example
|
|
12
|
+
- c2be2cd: Updated popover component and examples
|
|
13
|
+
- 2d38dfc: Updated navihation menu styles and demo
|
|
14
|
+
|
|
15
|
+
## 0.4.1
|
|
16
|
+
|
|
17
|
+
### Patch Changes
|
|
18
|
+
|
|
19
|
+
- 803ab28: Updated menu component stylings and examples
|
|
20
|
+
|
|
3
21
|
## 0.4.0
|
|
4
22
|
|
|
5
23
|
### Minor Changes
|
|
@@ -12,6 +12,33 @@ description: Dropdown menu component with support for items, groups, separators,
|
|
|
12
12
|
|
|
13
13
|
## Examples
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### Sides and alignments
|
|
16
16
|
|
|
17
|
-
|
|
17
|
+
Side and alignment of the menu can be configured using the `side` and `align` props on the `MenuPopup` component.
|
|
18
|
+
|
|
19
|
+
<RenderPreview name="menu-align" />
|
|
20
|
+
|
|
21
|
+
### Groups
|
|
22
|
+
|
|
23
|
+
Use `MenuGroup` and `MenuLabel` to visually group related menu items (for example — account actions vs. file actions).
|
|
24
|
+
|
|
25
|
+
<RenderPreview name="menu-group" />
|
|
26
|
+
|
|
27
|
+
### Submenus
|
|
28
|
+
|
|
29
|
+
Nest `MenuSub` with `MenuSubTrigger` to create hierarchical menus and "open recent"‑style lists.
|
|
30
|
+
|
|
31
|
+
<RenderPreview name="menu-submenu" />
|
|
32
|
+
|
|
33
|
+
### Checkbox & radio items
|
|
34
|
+
|
|
35
|
+
Use `MenuCheckboxItem` for independent toggles and `MenuRadioGroup`/`MenuRadioItem` for exclusive selections inside a menu.
|
|
36
|
+
|
|
37
|
+
<RenderPreview name="menu-checkbox" />
|
|
38
|
+
<RenderPreview name="menu-radio" />
|
|
39
|
+
|
|
40
|
+
### Advanced
|
|
41
|
+
|
|
42
|
+
A combined example showing groups, a submenu, checkbox items and radio items together.
|
|
43
|
+
|
|
44
|
+
<RenderPreview name="menu-advanced" />
|
|
@@ -10,8 +10,10 @@ description: Menu bar providing commands and options for your application with d
|
|
|
10
10
|
|
|
11
11
|
<InstallationBlock name="menubar" />
|
|
12
12
|
|
|
13
|
+
Menubar relies on `Menu` component, but for the ease of use, it also provides a set of components that are built on top of `Menu` component with same styling and APIs.
|
|
14
|
+
|
|
13
15
|
## Examples
|
|
14
16
|
|
|
15
|
-
###
|
|
17
|
+
### Submenus
|
|
16
18
|
|
|
17
|
-
<RenderPreview name="menubar-
|
|
19
|
+
<RenderPreview name="menubar-advanced" />
|
|
@@ -12,6 +12,18 @@ description: Meter component that provides a graphical display of a numeric valu
|
|
|
12
12
|
|
|
13
13
|
## Examples
|
|
14
14
|
|
|
15
|
-
###
|
|
15
|
+
### Default
|
|
16
16
|
|
|
17
17
|
<RenderPreview name="meter-demo" />
|
|
18
|
+
|
|
19
|
+
### Value only
|
|
20
|
+
|
|
21
|
+
<RenderPreview name="meter-no-label" />
|
|
22
|
+
|
|
23
|
+
### Label only
|
|
24
|
+
|
|
25
|
+
<RenderPreview name="meter-no-value" />
|
|
26
|
+
|
|
27
|
+
### Flip
|
|
28
|
+
|
|
29
|
+
<RenderPreview name="meter-flip" />
|
|
@@ -3,3 +3,9 @@ title: Navigation Menu
|
|
|
3
3
|
slug: navigation-menu
|
|
4
4
|
description: Navigation menu component for displaying a collection of links and dropdown menus.
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
<RenderPreview name="navigation-menu-demo" />
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
<InstallationBlock name="navigation-menu" />
|
|
@@ -3,3 +3,27 @@ title: Number Field
|
|
|
3
3
|
slug: number-field
|
|
4
4
|
description: An input field component specifically designed for numeric input, with built-in validation and formatting options
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
<RenderPreview name="number-field-demo" />
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
<InstallationBlock name="number-field" />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
### Basic
|
|
16
|
+
|
|
17
|
+
Use data-align `start` and `end` to position increment and decrement controls at the start or end of the input.
|
|
18
|
+
|
|
19
|
+
<RenderPreview name="number-field-demo" />
|
|
20
|
+
|
|
21
|
+
### Scrub area
|
|
22
|
+
|
|
23
|
+
A number field with a scrub area (drag over input to change value).
|
|
24
|
+
|
|
25
|
+
<RenderPreview name="number-field-scrub" />
|
|
26
|
+
|
|
27
|
+
### Buttons at end
|
|
28
|
+
|
|
29
|
+
<RenderPreview name="number-field-buttons-end" />
|
|
@@ -3,3 +3,23 @@ title: Popover
|
|
|
3
3
|
slug: popover
|
|
4
4
|
description: Popover component that displays content anchored to a trigger element.
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
<RenderPreview name="popover-demo" />
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
<InstallationBlock name="popover" />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
### Basic
|
|
16
|
+
|
|
17
|
+
<RenderPreview name="popover-demo" />
|
|
18
|
+
|
|
19
|
+
### Sides
|
|
20
|
+
|
|
21
|
+
<RenderPreview name="popover-positions" />
|
|
22
|
+
|
|
23
|
+
### Form
|
|
24
|
+
|
|
25
|
+
<RenderPreview name="popover-form" />
|
|
@@ -3,3 +3,14 @@ title: Preview Card
|
|
|
3
3
|
slug: preview-card
|
|
4
4
|
description: Component that displays a preview of linked content when hovered.
|
|
5
5
|
---
|
|
6
|
+
|
|
7
|
+
<RenderPreview name={'preview-card-demo'} />
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
## Installation
|
|
11
|
+
<InstallationBlock name="preview-card" />
|
|
12
|
+
|
|
13
|
+
## Examples
|
|
14
|
+
|
|
15
|
+
### Composed as CTA
|
|
16
|
+
<RenderPreview name="preview-card-links" />
|