@slurp-ui/react 1.0.0 → 1.0.1
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 +84 -0
- package/package.json +6 -5
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
# @slurp-ui/react
|
|
2
|
+
|
|
3
|
+
## 1.0.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 9aec3d3: The package now includes its CHANGELOG.md.
|
|
8
|
+
- Updated dependencies [9aec3d3]
|
|
9
|
+
- @slurp-ui/motion@1.0.1
|
|
10
|
+
- @slurp-ui/tokens@1.0.1
|
|
11
|
+
- @slurp-ui/icons@1.0.1
|
|
12
|
+
|
|
13
|
+
## 1.0.0
|
|
14
|
+
|
|
15
|
+
### Major Changes
|
|
16
|
+
|
|
17
|
+
- da26ea0: First stable release: the Slurp design system's tokens, icons, collapse / expand engine and React components, with a documentation page per component (props, accessibility, classes, variables and states). From here on the public API follows semver.
|
|
18
|
+
|
|
19
|
+
### Minor Changes
|
|
20
|
+
|
|
21
|
+
- 56e94d4: First release of the Slurp design tokens: `--slurp-*` custom properties for the light and dark themes (`tokens.css`, inside `@layer slurp.base`), Poppins `@font-face` rules (`fonts.css`) and typed TS constants (`color`, `hue`, `space`, `radius`, `font`, `vars`, `cssVar()`, `COMPACT_QUERY`). `@slurp-ui/react` re-exports them from `@slurp-ui/react/tokens`, `@slurp-ui/react/tokens.css` and `@slurp-ui/react/styles.css`.
|
|
22
|
+
- 3b1c343: Add `AccentScope`: scopes `accent`, `on-accent`, `accent-soft`, `accent-ink` and `focus` to a `hue-*` preset or any colour (through `vivid()`), with a 0.9s cross-fade.
|
|
23
|
+
- 5e42219: Add `Avatar`: round photo with initials as fallback.
|
|
24
|
+
- cec612b: Add `Bento` (12 fluid columns, two below 860px) and `bentoLayout()`: with `layout="auto"` the children's `weight` shapes the spans, the first section tall on the left.
|
|
25
|
+
- 5e42219: Add `Bloom`: the button becomes the panel. One surface grows from the trigger (width, height, radius) and shrinks back, flipping when there is no room; built on `useDismiss` and `focusFirst`.
|
|
26
|
+
- 5e42219: Add `Bubble`, the round icon-only button with a required `label`.
|
|
27
|
+
- 5e42219: Add `Button`: `fill`, `soft`, `outline` or `plain` appearance, `accent` or `neutral` tone, sizes `sm`/`md`/`lg` (44px minimum), icons and `href`.
|
|
28
|
+
- cec612b: Add `Card` (one tinted surface, title and description pills inside, link or button) and `Shelf`, the auto-fill list of cards.
|
|
29
|
+
- 3b1c343: Add `Cell`, the base primitive: any element (`as`) styled with `css`.
|
|
30
|
+
- 5e42219: Add `Checkbox` on a native input, with the indeterminate state.
|
|
31
|
+
- 5e42219: Add `Chip`, a toggle with `aria-pressed`: selected is an accent fill plus a check.
|
|
32
|
+
- 5e42219: Add `Choice`, the select whose trigger becomes the list (Bloom), with full keyboard support and a hidden form input.
|
|
33
|
+
- 551769e: Add the colour utilities of the design system: `vivid()`, `contrast()`, `meetsContrast()`, `onColor()`, `alpha()`.
|
|
34
|
+
- 5e42219: Add `Count`, a badge whose `label` joins the accessible name of the control around it.
|
|
35
|
+
- 3b1c343: Add the `css` prop runtime: design tokens (`p: 4`, `bg: 'accent-soft'`, `radius: 'card'`, `font: 'title-l'`), nested selectors and `{ base, compact, wide }` breakpoints, compiled to hashed atomic classes in `@layer slurp.utilities` and hoisted with React 19 `<style>` (SSR included).
|
|
36
|
+
- 5e42219: Add `Dialog` (native modal `<dialog>`, grows out of the control that opened it) and `Sheet` (from the bottom edge).
|
|
37
|
+
- cec612b: Add `Dock`, the single navigation: `Dock.Crumbs` with `Dock.Back` and `Dock.Crumb` drawn as interlocking SVG pieces (`crumbPath()`), `Dock.Search` with the find-in-page counter, `Dock.Actions` / `Dock.Action`, and panels that grow above the bar. On phones earlier crumbs become icons and search becomes an action.
|
|
38
|
+
- cec612b: Add `Empty`: a message and a single way out, announced politely.
|
|
39
|
+
- cec612b: Add `Fact` (label and value as one pill) and `Score` (one decimal in an accent-ink ring, fully named for assistive tech).
|
|
40
|
+
- 5e42219: Add `Field`: label, input or textarea with a 3:1 boundary, hint and error wired with aria-describedby.
|
|
41
|
+
- cec612b: Add `Filters` and `Filters.Group`: the filter panel with "Azzera filtri", off when nothing is active.
|
|
42
|
+
- 3b1c343: Add `Flow`: column or row with a gap from the space scale; `direction`, `gap`, `align`, `justify` accept breakpoints.
|
|
43
|
+
- 5e42219: Add `Fold`, a disclosure that grows in height; closed content is inert.
|
|
44
|
+
- 3b1c343: Add `Frame`: centred page column, max 1280px, gutter 24px (16px on phones).
|
|
45
|
+
- 3b1c343: Add `Ground`: opt-in page baseline (box-sizing, Poppins body text, `bg` tinted 7% by the accent, 2px focus ring) in `@layer slurp.reset`.
|
|
46
|
+
- 5e42219: Add `Hint`, a tooltip in the top layer: hover (with delay) and focus, Escape, stays while hovered.
|
|
47
|
+
- cec612b: Add `List` and `ListRow`: mark, title with a highlight tag (with a check), meta, value and one action link named after its row; `Link` for text links.
|
|
48
|
+
- cec612b: Add `Mark` and `useFindInPage()` for find in page (case- and accent-insensitive, the active match filled and scrolled to the middle), with `matchesAll`, `matchRanges` and `focusHit`.
|
|
49
|
+
- 5e42219: Add `Menu` and `MenuItem` on Bloom: looping arrow keys, items close the menu and give focus back.
|
|
50
|
+
- f8991cf: Add opt-in motion: every component accepts `animationId`, `animationGroup`, `animationLead`, `animationDisabled` and `animationGhost` and only registers its root (nothing is allocated without them). `useSlurp()` starts collapse / expand transitions with the theme defaults (`createTheme({ motion })` now covers duration, stagger, curve, swell, drop, goo, ghost, order, reduced motion and interruptions), `<AnimationGroup>` groups descendants, `useAnimationTarget()` registers custom elements. The engine is re-exported from `@slurp-ui/react/motion`.
|
|
51
|
+
- 4b675d4: Add `useSlurpNavigate` and `useSlurpEnter` for transitions across routes: the first wraps any router's navigate function (no router is imported) and measures the source before navigating, the second plays the transition in the route that mounts and, with `content`, fades the rest of the page in while the droplets land. A stale handoff or missing targets fade; a direct visit or the browser's history only render the route.
|
|
52
|
+
- 5e42219: Add `Notice`: icon plus word for each tone, optional close button.
|
|
53
|
+
- 5e42219: Add `Placeholder`, rounded loading shapes (circle, capsule, soft square).
|
|
54
|
+
- 5e42219: Add `VisuallyHidden` and `Portal`.
|
|
55
|
+
- 5e42219: Add `Progress` as a bar or a ring, with value or indeterminate.
|
|
56
|
+
- 5e42219: Add `Radio` and `RadioGroup` (fieldset and legend, native arrow keys).
|
|
57
|
+
- 5e42219: Add `Range`, a slider on a native range input with a 44px target and a formatted value text.
|
|
58
|
+
- cec612b: Add `ResultRow`, a search result whose rows move with the arrow keys.
|
|
59
|
+
- 5e42219: Add `Search`: contextual placeholder, result count in a polite live region, clear button, Enter to search.
|
|
60
|
+
- 5e42219: Add `Segmented`, a single choice among a few: one tab stop, arrow keys move and select, the selected segment is filled and checked.
|
|
61
|
+
- cec612b: Add `Settings`: the round button that grows into its panel, with Tema always and Lingua when configured; `RadioGroup` gains `appearance="rows"` and `Radio` an `icon`.
|
|
62
|
+
- cec612b: Add `Stage`, the media stage with one breathing glow and one ring.
|
|
63
|
+
- 3b1c343: Add `Surface`: floating surface with `level` (`surface`, `dock`, `solid`) and `radius`.
|
|
64
|
+
- 5e42219: Add `Swatch` and `SwatchGroup`: colour choices with a ring for the selected one, arrow keys in the group.
|
|
65
|
+
- 5e42219: Add `Switch` (`role="switch"`): on shows the thumb at the end with a check.
|
|
66
|
+
- 5e42219: Add `Tabs`: the pill indicator moves on a spring (CSS `linear()` easing), arrow keys move and select.
|
|
67
|
+
- 3b1c343: Add `Text`: the 13 type styles of the design system (`font`), element chosen from the style, `tone` and `muted`.
|
|
68
|
+
- 3b1c343: Add `createTheme()`, `SlurpProvider`, `useTheme()`, `useColorScheme()` and `ColorSchemeScript`: accent, token overrides, per-component defaults and `css`, light / dark / system colour scheme remembered in localStorage. Nested providers theme only their subtree.
|
|
69
|
+
- cec612b: Add `Tile`, the entry grid cell tinted by its colour, with a drifting blob and container-scaled text and media; a collapse saturates toward its colour.
|
|
70
|
+
- 5e42219: Add `ToastProvider` and `useToast()`: toasts in a polite live region above the Dock, paused while hovered or focused.
|
|
71
|
+
- 5e42219: Add the shared behaviour of the components, also at `@slurp-ui/react/utils`: `useDismiss` (press outside, Escape, Tab out, focus back), `focusFirst`, `moveFocus`, `useRovingFocus`, `useControlled`, `useForkRef`, `useMediaQuery` with `COMPACT_QUERY`.
|
|
72
|
+
|
|
73
|
+
### Patch Changes
|
|
74
|
+
|
|
75
|
+
- Updated dependencies [5cac9b1]
|
|
76
|
+
- Updated dependencies [201df15]
|
|
77
|
+
- Updated dependencies [878fd91]
|
|
78
|
+
- Updated dependencies [8b092aa]
|
|
79
|
+
- Updated dependencies [da26ea0]
|
|
80
|
+
- Updated dependencies [56e94d4]
|
|
81
|
+
- Updated dependencies [228b034]
|
|
82
|
+
- @slurp-ui/icons@1.0.0
|
|
83
|
+
- @slurp-ui/motion@1.0.0
|
|
84
|
+
- @slurp-ui/tokens@1.0.0
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@slurp-ui/react",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "Slurp UI: ready-made React components of the Slurp design system, with optional collapse/expand motion.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"react",
|
|
@@ -47,7 +47,8 @@
|
|
|
47
47
|
"./package.json": "./package.json"
|
|
48
48
|
},
|
|
49
49
|
"files": [
|
|
50
|
-
"dist"
|
|
50
|
+
"dist",
|
|
51
|
+
"CHANGELOG.md"
|
|
51
52
|
],
|
|
52
53
|
"publishConfig": {
|
|
53
54
|
"access": "public"
|
|
@@ -72,9 +73,9 @@
|
|
|
72
73
|
"react-dom": ">=19"
|
|
73
74
|
},
|
|
74
75
|
"dependencies": {
|
|
75
|
-
"@slurp-ui/
|
|
76
|
-
"@slurp-ui/
|
|
77
|
-
"@slurp-ui/
|
|
76
|
+
"@slurp-ui/motion": "^1.0.1",
|
|
77
|
+
"@slurp-ui/tokens": "^1.0.1",
|
|
78
|
+
"@slurp-ui/icons": "^1.0.1"
|
|
78
79
|
},
|
|
79
80
|
"devDependencies": {
|
|
80
81
|
"@arethetypeswrong/cli": "^0.18.5",
|