oneslash-design-system 2.23.0 → 2.24.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.
Files changed (81) hide show
  1. package/README.md +1 -1
  2. package/dist/DESIGN.md +13 -2
  3. package/dist/cases/activity-timeline/activity.d.ts +1 -0
  4. package/dist/cases/activity-timeline/activity.jsx +43 -0
  5. package/dist/cases/activity-timeline/versions.d.ts +1 -0
  6. package/dist/cases/activity-timeline/versions.jsx +130 -0
  7. package/dist/cases/activity-timeline.md +315 -0
  8. package/dist/cases/agent-plan-proposal.md +1 -0
  9. package/dist/cases/ask-page/answered.d.ts +1 -0
  10. package/dist/cases/ask-page/answered.jsx +240 -0
  11. package/dist/cases/ask-page/first-visit.d.ts +1 -0
  12. package/dist/cases/ask-page/first-visit.jsx +118 -0
  13. package/dist/cases/ask-page.md +542 -0
  14. package/dist/cases/chart/bars.d.ts +1 -0
  15. package/dist/cases/chart/bars.jsx +83 -0
  16. package/dist/cases/chart/lines.d.ts +1 -0
  17. package/dist/cases/chart/lines.jsx +71 -0
  18. package/dist/cases/chart.md +258 -0
  19. package/dist/cases/comment-thread/card.d.ts +1 -0
  20. package/dist/cases/comment-thread/card.jsx +141 -0
  21. package/dist/cases/comment-thread/thread.d.ts +1 -0
  22. package/dist/cases/comment-thread/thread.jsx +87 -0
  23. package/dist/cases/comment-thread.md +349 -0
  24. package/dist/cases/dashboard/numbers-first.jsx +62 -1
  25. package/dist/cases/dashboard.md +75 -3
  26. package/dist/cases/leaderboard/ranked.d.ts +1 -0
  27. package/dist/cases/leaderboard/ranked.jsx +44 -0
  28. package/dist/cases/leaderboard/table.d.ts +1 -0
  29. package/dist/cases/leaderboard/table.jsx +87 -0
  30. package/dist/cases/leaderboard.md +177 -0
  31. package/dist/cases/number-format.md +4 -2
  32. package/dist/cases/onboarding/checklist.d.ts +1 -0
  33. package/dist/cases/onboarding/checklist.jsx +92 -0
  34. package/dist/cases/onboarding/steps.d.ts +3 -0
  35. package/dist/cases/onboarding/steps.jsx +177 -0
  36. package/dist/cases/onboarding.md +368 -0
  37. package/dist/cases/plan-sign-off/one-approver.d.ts +1 -0
  38. package/dist/cases/plan-sign-off/one-approver.jsx +129 -0
  39. package/dist/cases/plan-sign-off/team.d.ts +1 -0
  40. package/dist/cases/plan-sign-off/team.jsx +213 -0
  41. package/dist/cases/plan-sign-off.md +541 -0
  42. package/dist/cases/stat-row.md +1 -1
  43. package/dist/cases/task-header/agent-sets-status.d.ts +1 -0
  44. package/dist/cases/task-header/agent-sets-status.jsx +164 -0
  45. package/dist/cases/task-header/people-change-status.d.ts +1 -0
  46. package/dist/cases/task-header/people-change-status.jsx +175 -0
  47. package/dist/cases/task-header.md +576 -0
  48. package/dist/cases.json +645 -7
  49. package/dist/components/barChart.d.ts +35 -0
  50. package/dist/components/barChart.jsx +90 -0
  51. package/dist/components/heading.d.ts +2 -2
  52. package/dist/components/heading.jsx +5 -3
  53. package/dist/components/lineChart.d.ts +39 -0
  54. package/dist/components/lineChart.jsx +128 -0
  55. package/dist/components/popover.jsx +7 -2
  56. package/dist/components/timeline.d.ts +32 -0
  57. package/dist/components/timeline.jsx +54 -0
  58. package/dist/components/titleBar.d.ts +3 -1
  59. package/dist/components/titleBar.jsx +9 -4
  60. package/dist/internal/chart.d.ts +39 -0
  61. package/dist/internal/chart.js +110 -0
  62. package/dist/internal/chartFrame.d.ts +29 -0
  63. package/dist/internal/chartFrame.jsx +57 -0
  64. package/dist/native-mapping.json +19 -1
  65. package/dist/stories/BarChart.stories.d.ts +10 -0
  66. package/dist/stories/BarChart.stories.jsx +104 -0
  67. package/dist/stories/Cases.generated.stories.d.ts +16 -0
  68. package/dist/stories/Cases.generated.stories.jsx +32 -0
  69. package/dist/stories/Heading.stories.d.ts +1 -0
  70. package/dist/stories/Heading.stories.jsx +17 -0
  71. package/dist/stories/LineChart.stories.d.ts +9 -0
  72. package/dist/stories/LineChart.stories.jsx +34 -0
  73. package/dist/stories/Onboarding.probe.stories.d.ts +6 -0
  74. package/dist/stories/Onboarding.probe.stories.jsx +12 -0
  75. package/dist/stories/Popover.stories.d.ts +1 -0
  76. package/dist/stories/Popover.stories.jsx +17 -0
  77. package/dist/stories/Timeline.stories.d.ts +8 -0
  78. package/dist/stories/Timeline.stories.jsx +49 -0
  79. package/dist/stories/TitleBar.stories.d.ts +1 -0
  80. package/dist/stories/TitleBar.stories.jsx +13 -0
  81. package/package.json +1 -1
@@ -0,0 +1,49 @@
1
+ import React, { useState } from "react";
2
+ import Timeline from "../components/timeline";
3
+ var meta = {
4
+ title: "Components/Timeline",
5
+ component: Timeline,
6
+ decorators: [
7
+ function (Story) { return (<div style={{ maxWidth: "480px" }}>
8
+ <Story />
9
+ </div>); },
10
+ ],
11
+ };
12
+ export default meta;
13
+ var activity = [
14
+ { id: "a6", title: "Moved the launch to Friday", when: "Nov 16, 2026, 2:40 PM", dateTime: "2026-11-16T14:40", actor: { name: "Dana Lee" } },
15
+ { id: "a5", title: "Opened a pull request", when: "Nov 16, 2026, 11:15 AM", dateTime: "2026-11-16T11:15", actor: { name: "Acme Agent", agent: true }, detail: "Updates the billing page and its tests", href: "/pulls/42" },
16
+ { id: "a4", title: "Flagged a missing test", when: "Nov 15, 2026, 4:05 PM", dateTime: "2026-11-15T16:05", actor: { name: "Ben Carter" }, tag: { label: "Needs a test", color: "warning" } },
17
+ { id: "a3", title: "Signed off the plan", when: "Nov 15, 2026, 10:30 AM", dateTime: "2026-11-15T10:30", actor: { name: "Omar Reyes" } },
18
+ { id: "a2", title: "Added Ben Carter to the task", when: "Nov 14, 2026, 3:20 PM", dateTime: "2026-11-14T15:20", actor: { name: "Dana Lee" } },
19
+ { id: "a1", title: "Created the task", when: "Nov 14, 2026, 9:00 AM", dateTime: "2026-11-14T09:00", actor: { name: "Dana Lee" } },
20
+ ];
21
+ export var Activity = {
22
+ render: function () { return <Timeline aria-label="Activity" items={activity}/>; },
23
+ };
24
+ var versions = [
25
+ { id: "v5", title: "Version 5", when: "Nov 16, 2026, 2:40 PM", dateTime: "2026-11-16T14:40", actor: { name: "Dana Lee" }, tag: { label: "Current" } },
26
+ { id: "v4", title: "Version 4", when: "Nov 16, 2026, 9:10 AM", dateTime: "2026-11-16T09:10", actor: { name: "Acme Agent", agent: true }, detail: "Added a step to back up the data" },
27
+ { id: "v3", title: "Version 3", when: "Nov 15, 2026, 5:45 PM", dateTime: "2026-11-15T17:45", actor: { name: "Omar Reyes" } },
28
+ { id: "v2", title: "Version 2", when: "Nov 15, 2026, 1:00 PM", dateTime: "2026-11-15T13:00", actor: { name: "Acme Agent", agent: true }, detail: "Split the release into two steps" },
29
+ { id: "v1", title: "Version 1", when: "Nov 14, 2026, 10:20 AM", dateTime: "2026-11-14T10:20", actor: { name: "Acme Agent", agent: true } },
30
+ ];
31
+ function VersionsDemo() {
32
+ var _a = useState("v5"), selected = _a[0], setSelected = _a[1];
33
+ return <Timeline id="versions" aria-label="Versions" items={versions} selectedId={selected} onSelect={setSelected}/>;
34
+ }
35
+ export var Versions = {
36
+ render: function () { return <VersionsDemo />; },
37
+ };
38
+ // 120 characters
39
+ var longTitle = "Changed the plan so the billing export runs every night and sends a short report to the finance team before the morning.";
40
+ export var Edges = {
41
+ tags: ["shell"],
42
+ render: function () { return (<div style={{ display: "flex", flexDirection: "column", gap: "32px" }}>
43
+ <Timeline id="edges-one" aria-label="One event" items={[{ id: "e1", title: "Created the task", when: "Nov 16, 2026, 2:40 PM", dateTime: "2026-11-16T14:40", actor: { name: "Dana Lee" } }]}/>
44
+ <Timeline id="edges-long" aria-label="Long title" items={[
45
+ { id: "e3", title: longTitle, when: "Nov 16, 2026, 2:40 PM", dateTime: "2026-11-16T14:40", actor: { name: "Acme Agent", agent: true } },
46
+ { id: "e2", title: "Created the task", when: "Nov 15, 2026, 9:00 AM", dateTime: "2026-11-15T09:00", actor: { name: "Ben Carter" } },
47
+ ]}/>
48
+ </div>); },
49
+ };
@@ -5,3 +5,4 @@ export default meta;
5
5
  type Story = StoryObj<typeof TitleBar>;
6
6
  export declare const Actions: Story;
7
7
  export declare const ActionsBelow: Story;
8
+ export declare const WithMeta: Story;
@@ -3,6 +3,8 @@ import TitleBar from "../components/titleBar";
3
3
  import Button from "../components/button";
4
4
  import IconButton from "../components/iconButton";
5
5
  import Tooltip from "../components/tooltip";
6
+ import Tag from "../components/tag";
7
+ import AvatarStack from "../components/avatarStack";
6
8
  var meta = {
7
9
  title: "Components/TitleBar",
8
10
  component: TitleBar,
@@ -39,3 +41,14 @@ export var ActionsBelow = {
39
41
  <TitleBar title="Dashboard" actionsBelow actions={<Button size="small" type="secondary" state="enabled" label="Last quarter"/>}/>
40
42
  </div>); },
41
43
  };
44
+ // One line under the title for the status, the people and a fact. It wraps under the title at every width. Also shot at 375px (the "shell" tag).
45
+ export var WithMeta = {
46
+ tags: ["shell"],
47
+ render: function () { return (<div style={{ maxWidth: 880 }}>
48
+ <TitleBar title="Launch checklist" level={2} actions={more} meta={<>
49
+ <Tag variant="dot" size="small" label="In progress"/>
50
+ <AvatarStack size={24} max={4} people={[{ name: "Dana Lee" }, { name: "Ben Carter" }, { name: "Omar Reyes" }, { name: "Mia Park" }, { name: "Leo Grant" }, { name: "Ana Silva" }]}/>
51
+ <span>Due Nov 20, 2026</span>
52
+ </>}/>
53
+ </div>); },
54
+ };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oneslash-design-system",
3
3
  "description": "A design system for the Oneslash projects",
4
- "version": "2.23.0",
4
+ "version": "2.24.0",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "./dist/index.js",