@cscfi/csc-ui 4.0.0-alpha.25 → 4.0.0-alpha.26

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.
@@ -734,7 +734,7 @@
734
734
  "cssParts": [
735
735
  {
736
736
  "name": "root",
737
- "description": "The outer wrapper of the item, carries the rounding and the outline when outlined"
737
+ "description": "The outer wrapper of the item: its share of the accordion frame, the lifted outline and wash when expanded, and a 2px outline on expanded items when outlined"
738
738
  },
739
739
  {
740
740
  "name": "header",
@@ -746,7 +746,7 @@
746
746
  },
747
747
  {
748
748
  "name": "content",
749
- "description": "The padded wrapper around the slotted content inside the collapsing region"
749
+ "description": "The padded card around the slotted content inside the collapsing region"
750
750
  }
751
751
  ],
752
752
  "cssProperties": [],
@@ -20,7 +20,7 @@
20
20
  },
21
21
  {
22
22
  "name": "::part(root)",
23
- "description": "The outer wrapper of the item, carries the rounding and the outline when outlined"
23
+ "description": "The outer wrapper of the item: its share of the accordion frame, the lifted outline and wash when expanded, and a 2px outline on expanded items when outlined"
24
24
  },
25
25
  {
26
26
  "name": "::part(header)",
@@ -32,7 +32,7 @@
32
32
  },
33
33
  {
34
34
  "name": "::part(content)",
35
- "description": "The padded wrapper around the slotted content inside the collapsing region"
35
+ "description": "The padded card around the slotted content inside the collapsing region"
36
36
  },
37
37
  {
38
38
  "name": "::part(root)",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  {
28
28
  "name": "c-accordion-item",
29
- "description": "\n---\n\n\n### **Events:**\n - **item-change** - Fired when the header is toggled, carrying the requested expansion state\nand the item's `value`; bubbles so the parent `<c-accordion>` can update\nits model.\n\n### **Slots:**\n - **header** - Custom header slot\n- **icon** - Icon shown in the header before the heading\n- **default** - Default slot\n\n### **CSS Parts:**\n - **root** - The outer wrapper of the item, carries the rounding and the outline when outlined\n- **header** - The toggle button row containing the icon, heading and indicator\n- **indicator** - The rotating chevron at the end of the header\n- **content** - The padded wrapper around the slotted content inside the collapsing region",
29
+ "description": "\n---\n\n\n### **Events:**\n - **item-change** - Fired when the header is toggled, carrying the requested expansion state\nand the item's `value`; bubbles so the parent `<c-accordion>` can update\nits model.\n\n### **Slots:**\n - **header** - Custom header slot\n- **icon** - Icon shown in the header before the heading\n- **default** - Default slot\n\n### **CSS Parts:**\n - **root** - The outer wrapper of the item: its share of the accordion frame, the lifted outline and wash when expanded, and a 2px outline on expanded items when outlined\n- **header** - The toggle button row containing the icon, heading and indicator\n- **indicator** - The rotating chevron at the end of the header\n- **content** - The padded card around the slotted content inside the collapsing region",
30
30
  "attributes": [
31
31
  {
32
32
  "name": "collapsable",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$schema": "https://raw.githubusercontent.com/JetBrains/web-types/master/schema/web-types.json",
3
3
  "name": "@cscfi/csc-ui",
4
- "version": "4.0.0-alpha.25",
4
+ "version": "4.0.0-alpha.26",
5
5
  "description-markup": "markdown",
6
6
  "contributions": {
7
7
  "html": {
@@ -104,7 +104,7 @@
104
104
  },
105
105
  {
106
106
  "name": "c-accordion-item",
107
- "description": "\n---\n\n\n### **Events:**\n - **item-change** - Fired when the header is toggled, carrying the requested expansion state\nand the item's `value`; bubbles so the parent `<c-accordion>` can update\nits model.\n\n### **Slots:**\n - **header** - Custom header slot\n- **icon** - Icon shown in the header before the heading\n- **default** - Default slot\n\n### **CSS Parts:**\n - **root** - The outer wrapper of the item, carries the rounding and the outline when outlined\n- **header** - The toggle button row containing the icon, heading and indicator\n- **indicator** - The rotating chevron at the end of the header\n- **content** - The padded wrapper around the slotted content inside the collapsing region",
107
+ "description": "\n---\n\n\n### **Events:**\n - **item-change** - Fired when the header is toggled, carrying the requested expansion state\nand the item's `value`; bubbles so the parent `<c-accordion>` can update\nits model.\n\n### **Slots:**\n - **header** - Custom header slot\n- **icon** - Icon shown in the header before the heading\n- **default** - Default slot\n\n### **CSS Parts:**\n - **root** - The outer wrapper of the item: its share of the accordion frame, the lifted outline and wash when expanded, and a 2px outline on expanded items when outlined\n- **header** - The toggle button row containing the icon, heading and indicator\n- **indicator** - The rotating chevron at the end of the header\n- **content** - The padded card around the slotted content inside the collapsing region",
108
108
  "doc-url": "",
109
109
  "attributes": [
110
110
  {
@@ -5867,7 +5867,7 @@
5867
5867
  },
5868
5868
  {
5869
5869
  "name": "part(root)",
5870
- "description": "The outer wrapper of the item, carries the rounding and the outline when outlined"
5870
+ "description": "The outer wrapper of the item: its share of the accordion frame, the lifted outline and wash when expanded, and a 2px outline on expanded items when outlined"
5871
5871
  },
5872
5872
  {
5873
5873
  "name": "part(header)",
@@ -5879,7 +5879,7 @@
5879
5879
  },
5880
5880
  {
5881
5881
  "name": "part(content)",
5882
- "description": "The padded wrapper around the slotted content inside the collapsing region"
5882
+ "description": "The padded card around the slotted content inside the collapsing region"
5883
5883
  },
5884
5884
  {
5885
5885
  "name": "part(root)",
@@ -0,0 +1,10 @@
1
+ /**
2
+ * The OS-level reduced-motion preference (CONTEXT.md "Reduced motion",
3
+ * ADR-0057). CSS motion honours it from the shared utility sheet; this is the
4
+ * read for motion a script drives — the ripple, smooth strip scrolling, the
5
+ * tabs indicator, the modal keyframes. Read at the moment of use, not once at
6
+ * mount, so a preference toggled while the page is open is picked up.
7
+ *
8
+ * Returns false where `matchMedia` is missing (SSR, a bare test runtime).
9
+ */
10
+ export declare const prefersReducedMotion: () => boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cscfi/csc-ui",
3
- "version": "4.0.0-alpha.25",
3
+ "version": "4.0.0-alpha.26",
4
4
  "description": "Vue 3-based replacement for @cscfi/csc-ui — same custom element tag names, Vue v-model contract.",
5
5
  "type": "module",
6
6
  "main": "./dist/csc-ui.js",