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.
Files changed (85) hide show
  1. package/.idea/compiler.xml +6 -0
  2. package/.idea/copilot.data.migration.ask2agent.xml +6 -0
  3. package/.idea/vcs.xml +6 -0
  4. package/CHANGELOG.md +18 -0
  5. package/content/components/menu.mdx +29 -2
  6. package/content/components/menubar.mdx +4 -2
  7. package/content/components/meter.mdx +13 -1
  8. package/content/components/navigation-menu.mdx +6 -0
  9. package/content/components/number-field.mdx +24 -0
  10. package/content/components/popover.mdx +20 -0
  11. package/content/components/preview-card.mdx +11 -0
  12. package/content/components/progress.mdx +2 -0
  13. package/examples/__index.tsx +141 -96
  14. package/examples/menu-advanced.tsx +131 -0
  15. package/examples/menu-align.tsx +33 -0
  16. package/examples/menu-checkbox.tsx +28 -0
  17. package/examples/menu-demo.tsx +43 -12
  18. package/examples/menu-group.tsx +41 -0
  19. package/examples/menu-radio.tsx +23 -0
  20. package/examples/menu-submenu.tsx +43 -0
  21. package/examples/menubar-advanced.tsx +91 -0
  22. package/examples/meter-demo.tsx +1 -22
  23. package/examples/meter-flip.tsx +13 -0
  24. package/examples/meter-no-label.tsx +5 -0
  25. package/examples/meter-no-value.tsx +13 -0
  26. package/examples/navigation-menu-demo.tsx +113 -1
  27. package/examples/number-field-buttons-end.tsx +20 -0
  28. package/examples/number-field-demo.tsx +17 -1
  29. package/examples/number-field-scrub.tsx +38 -0
  30. package/examples/popover-demo.tsx +18 -1
  31. package/examples/popover-form.tsx +46 -0
  32. package/examples/popover-positions.tsx +54 -0
  33. package/examples/preview-card-demo.tsx +26 -1
  34. package/examples/preview-card-links.tsx +38 -0
  35. package/examples/progress-demo.tsx +33 -1
  36. package/package.json +1 -1
  37. package/public/r/accordion.json +5 -2
  38. package/public/r/alert-dialog.json +7 -3
  39. package/public/r/alert.json +4 -2
  40. package/public/r/autocomplete.json +18 -0
  41. package/public/r/avatar.json +15 -0
  42. package/public/r/badge.json +4 -2
  43. package/public/r/button-group.json +7 -3
  44. package/public/r/button.json +5 -2
  45. package/public/r/card.json +1 -1
  46. package/public/r/checkbox.json +5 -2
  47. package/public/r/collapsible.json +4 -2
  48. package/public/r/combobox.json +9 -3
  49. package/public/r/context-menu.json +5 -2
  50. package/public/r/dialog.json +9 -4
  51. package/public/r/drawer.json +8 -3
  52. package/public/r/field.json +5 -2
  53. package/public/r/fieldset.json +4 -2
  54. package/public/r/form.json +15 -0
  55. package/public/r/index.json +21 -2
  56. package/public/r/input-group.json +9 -3
  57. package/public/r/input.json +4 -2
  58. package/public/r/menu.json +16 -0
  59. package/public/r/menubar.json +16 -0
  60. package/public/r/meter.json +15 -0
  61. package/public/r/navigation-menu.json +16 -0
  62. package/public/r/number-field.json +18 -0
  63. package/public/r/popover.json +15 -0
  64. package/public/r/preview-card.json +15 -0
  65. package/public/r/progress.json +15 -0
  66. package/public/r/radio.json +16 -0
  67. package/public/r/scroll-area.json +5 -3
  68. package/public/r/select.json +16 -0
  69. package/public/r/separator.json +4 -2
  70. package/public/r/slider.json +15 -0
  71. package/public/r/switch.json +15 -0
  72. package/public/r/tabs.json +16 -0
  73. package/public/r/textarea.json +1 -1
  74. package/public/r/toast.json +16 -0
  75. package/public/r/toggle.json +16 -0
  76. package/public/r/toolbar.json +15 -0
  77. package/src/components/ui/menu.tsx +42 -16
  78. package/src/components/ui/menubar.tsx +52 -18
  79. package/src/components/ui/meter.tsx +7 -5
  80. package/src/components/ui/navigation-menu.tsx +121 -38
  81. package/src/components/ui/number-field.tsx +42 -46
  82. package/src/components/ui/popover.tsx +7 -2
  83. package/src/components/ui/preview-card.tsx +4 -2
  84. package/src/components/ui/progress.tsx +7 -18
  85. package/src/routeTree.gen.ts +79 -78
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="TypeScriptCompiler">
4
+ <option name="useServicePoweredTypesWasEnabledByExperiment" value="true" />
5
+ </component>
6
+ </project>
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="Ask2AgentMigrationStateService">
4
+ <option name="migrationStatus" value="COMPLETED" />
5
+ </component>
6
+ </project>
package/.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
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
- ### Demo
15
+ ### Sides and alignments
16
16
 
17
- <RenderPreview name="menu-demo" />
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
- ### Demo
17
+ ### Submenus
16
18
 
17
- <RenderPreview name="menubar-demo" />
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
- ### Demo
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" />
@@ -3,3 +3,5 @@ title: Progress
3
3
  slug: progress
4
4
  description: Progress bar component for displaying the status of a task.
5
5
  ---
6
+
7
+ <RenderPreview name={'progress-demo'} />