opui-css 4.0.1 → 4.1.0

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 CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 4.1.0 - 2026-05-18
4
+
5
+ ### Breaking
6
+
7
+ - **Card** and **Dialog** (Astro): the `actions` prop with an `align` field is removed. Use the `actionsAlign` prop instead (`"start"` | `"end"`).
8
+
3
9
  ## 4.0.1 - 2026-05-13
4
10
 
5
11
  ### Fixed
package/README.md CHANGED
@@ -22,11 +22,10 @@ Peer dependencies:
22
22
 
23
23
  ```astro
24
24
  ---
25
+ import "opui-css/css/imports.css"
25
26
  import { Button, Card } from "opui-css/astro"
26
27
  ---
27
28
 
28
- <link rel="stylesheet" href="opui-css/css/imports.css" />
29
-
30
29
  <Card>
31
30
  <Button variant="primary">Click me</Button>
32
31
  </Card>
@@ -1,15 +1,13 @@
1
1
  ---
2
2
  type Props = {
3
+ actionsAlign?: "start" | "end"
3
4
  variant?: "text" | "outlined" | "elevated" | "tonal"
4
- actions?: {
5
- align?: "end"
6
- }
7
5
  [key: string]: any
8
6
  }
9
7
 
10
8
  export const title = "Card"
11
9
 
12
- const { variant, actions, class: className, ...rest } = Astro.props
10
+ const { variant, actionsAlign, class: className, ...rest } = Astro.props
13
11
  ---
14
12
 
15
13
  <div class:list={["card", variant, className]} {...rest}>
@@ -30,7 +28,7 @@ const { variant, actions, class: className, ...rest } = Astro.props
30
28
  <slot />
31
29
  {
32
30
  Astro.slots.has("actions") && (
33
- <div class:list={["actions", actions?.align && `align-${actions.align}`]}>
31
+ <div class:list={["actions", actionsAlign && `align-${actionsAlign}`]}>
34
32
  <slot name="actions" />
35
33
  </div>
36
34
  )
@@ -1,16 +1,14 @@
1
1
  ---
2
2
  type Props = {
3
3
  [key: string]: any
4
- actions?: {
5
- align?: "end"
6
- }
4
+ actionsAlign?: "start" | "end"
7
5
  class?: string
8
6
  closedby?: "any" | "closerequest" | "none"
9
7
  }
10
8
 
11
9
  export const title = "Dialog"
12
10
 
13
- const { actions, class: className, closedby, ...rest } = Astro.props
11
+ const { actionsAlign, class: className, closedby, ...rest } = Astro.props
14
12
  ---
15
13
 
16
14
  <dialog
@@ -35,7 +33,7 @@ const { actions, class: className, closedby, ...rest } = Astro.props
35
33
  <slot />
36
34
  {
37
35
  Astro.slots.has("actions") && (
38
- <div class:list={["actions", actions?.align && `align-${actions.align}`]}>
36
+ <div class:list={["actions", actionsAlign && `align-${actionsAlign}`]}>
39
37
  <slot name="actions" />
40
38
  </div>
41
39
  )
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opui-css",
3
- "version": "4.0.1",
3
+ "version": "4.1.0",
4
4
  "description": "A CSS UI library exploring next-gen HTML & CSS features. Astro components on top of Open Props.",
5
5
  "type": "module",
6
6
  "license": "MIT",