oneslash-design-system 2.27.1 → 2.28.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.
@@ -70,7 +70,7 @@ export default function DateFieldCalendar() {
70
70
  </FormField>
71
71
  {/* Typed as MM/DD/YYYY or picked from the calendar. A day before today says 'Choose Nov 16, 2026 or later.'
72
72
  The second argument of onChange tells an empty field (no error) from a date typed wrong. */}
73
- <DateField id="date-field-expires" label="Expires on" value={expires} onChange={function (day, detail) { setExpires(day); setExpiresError(detail.error); }} min={today} disabled={creating} helperText="MM/DD/YYYY. Leave empty for no end date."/>
73
+ <DateField id="date-field-expires" label="Expires on" value={expires} onChange={function (day, detail) { setExpires(day); setExpiresError(detail.error); }} min={today} disabled={creating} helperText="MM/DD/YYYY, or empty for no end date."/>
74
74
  <Cluster>
75
75
  <Button size="medium" type="primary" state="enabled" label="Create Token" htmlType="submit" loading={creating}/>
76
76
  </Cluster>
@@ -9,7 +9,7 @@ A person gives one day, such as when a token expires or their date of birth.
9
9
  - Pass `min` or `max` as an ISO day when only some days can be chosen. Days outside them cannot be picked in the calendar.
10
10
  - Let the field say why a date cannot be used: 'Choose Nov 16, 2026 or later.' for a day before `min`, and 'Choose Dec 31, 2026 or earlier.' for a day after `max`.
11
11
  - Let the field say how to fix a date that is not real, such as '02/30/2026': 'Enter a real date as MM/DD/YYYY.' A two-digit year says 'Enter the year in four digits, like 2026.'
12
- - Name the format in the helper text, and say what an empty field means: 'MM/DD/YYYY. Leave empty for no end date.'
12
+ - Name the format in the helper text, and say what an empty field means: 'MM/DD/YYYY, or empty for no end date.'
13
13
  - Pass `calendar={false}` for a date years away, such as a date of birth. Paging a calendar back 30 years takes too long.
14
14
  - Read the second argument of `onChange`: `''` with `error: null` is an empty field, and `''` with an error is a date typed wrong. Do not submit while `error` is set. The field already shows why under itself.
15
15
  - Treat an empty optional date as no date, such as no end date for a token.
@@ -130,7 +130,7 @@ export default function DateFieldCalendar() {
130
130
  onChange={(day, detail) => { setExpires(day); setExpiresError(detail.error); }}
131
131
  min={today}
132
132
  disabled={creating}
133
- helperText="MM/DD/YYYY. Leave empty for no end date."
133
+ helperText="MM/DD/YYYY, or empty for no end date."
134
134
  />
135
135
  <Cluster>
136
136
  <Button size="medium" type="primary" state="enabled" label="Create Token" htmlType="submit" loading={creating} />
package/dist/cases.json CHANGED
@@ -2436,7 +2436,7 @@
2436
2436
  "Pass `min` or `max` as an ISO day when only some days can be chosen. Days outside them cannot be picked in the calendar.",
2437
2437
  "Let the field say why a date cannot be used: 'Choose Nov 16, 2026 or later.' for a day before `min`, and 'Choose Dec 31, 2026 or earlier.' for a day after `max`.",
2438
2438
  "Let the field say how to fix a date that is not real, such as '02/30/2026': 'Enter a real date as MM/DD/YYYY.' A two-digit year says 'Enter the year in four digits, like 2026.'",
2439
- "Name the format in the helper text, and say what an empty field means: 'MM/DD/YYYY. Leave empty for no end date.'",
2439
+ "Name the format in the helper text, and say what an empty field means: 'MM/DD/YYYY, or empty for no end date.'",
2440
2440
  "Pass `calendar={false}` for a date years away, such as a date of birth. Paging a calendar back 30 years takes too long.",
2441
2441
  "Read the second argument of `onChange`: `''` with `error: null` is an empty field, and `''` with an error is a date typed wrong. Do not submit while `error` is set. The field already shows why under itself.",
2442
2442
  "Treat an empty optional date as no date, such as no end date for a token.",
@@ -2457,7 +2457,7 @@
2457
2457
  "id": "calendar",
2458
2458
  "title": "Typed or picked from a calendar",
2459
2459
  "useWhen": "The date is near today and the person picks it, such as when a token expires.",
2460
- "source": "'use client';\nimport { useEffect, useRef, useState } from 'react';\nimport Heading from 'oneslash-design-system/components/heading';\nimport Paragraph from 'oneslash-design-system/components/paragraph';\nimport Form from 'oneslash-design-system/components/form';\nimport FormField from 'oneslash-design-system/components/formField';\nimport TextField from 'oneslash-design-system/components/textField';\nimport DateField from 'oneslash-design-system/components/dateField';\nimport CopyField from 'oneslash-design-system/components/copyField';\nimport Button from 'oneslash-design-system/components/button';\nimport { Center, Cluster, Stack } from 'oneslash-design-system/components/layout';\n\n// In an app, these fields sit in the 'Create Key' Modal of the case 'API keys'.\n// \"Today\" in this example. A real app passes its own today as `min`, as 'YYYY-MM-DD'.\nconst today = '2026-11-16';\n// The token the server made. A real app gets it once, in the reply to the create request.\nconst madeToken = 'acme_tok_9Rk2vQ7mXa4LwT8cZp1Hd6Ns';\n\nconst months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n// '2026-12-16' as 'Dec 16, 2026', for the line under the new token\nfunction formatDay(day: string) {\n const [year, month, date] = day.split('-').map(Number);\n return `${months[month - 1]} ${date}, ${year}`;\n}\n\nexport default function DateFieldCalendar() {\n const [name, setName] = useState('');\n const [nameError, setNameError] = useState('');\n // The day as 'YYYY-MM-DD', or '' for no end date\n const [expires, setExpires] = useState('');\n // The field's own message for a date typed wrong. While it is set, the token is not created.\n const [expiresError, setExpiresError] = useState<string | null>(null);\n const [creating, setCreating] = useState(false);\n const [made, setMade] = useState<{ name: string; expires: string } | null>(null);\n const timer = useRef<ReturnType<typeof setTimeout>>();\n\n // Stops the request if the example goes away before it ends.\n useEffect(() => () => clearTimeout(timer.current), []);\n\n function handleCreate() {\n if (creating) return;\n setNameError(name.trim() ? '' : 'Enter a name for the token.');\n // A date typed wrong shows its message under the field. An empty date means no end date.\n if (!name.trim() || expiresError) return;\n setCreating(true);\n // Stands in for the request to the server.\n timer.current = setTimeout(() => {\n setCreating(false);\n setMade({ name: name.trim(), expires });\n }, 1200);\n }\n\n function handleDone() {\n setMade(null);\n setName('');\n setExpires('');\n setExpiresError(null);\n }\n\n return (\n <Center width=\"form\">\n <Stack gap=\"large\">\n <Stack gap=\"small\">\n <Heading level={1} size=\"h5\">New access token</Heading>\n <Paragraph tone=\"secondary\" size=\"body2\" measure=\"none\">A token lets a script use Acme as you until the day it expires.</Paragraph>\n </Stack>\n {made ? (\n <Stack gap=\"large\">\n <CopyField id=\"date-field-token\" label={made.name} value={madeToken} mono reveal=\"once\" />\n <Paragraph size=\"body2\" measure=\"none\">{made.expires ? `Expires ${formatDay(made.expires)}.` : 'Never expires.'}</Paragraph>\n <Cluster>\n <Button size=\"medium\" type=\"primary\" state=\"enabled\" label=\"Done\" onClickButton={handleDone} />\n </Cluster>\n </Stack>\n ) : (\n <Form aria-label=\"New access token\" gap=\"large\" onSubmit={handleCreate}>\n <FormField id=\"date-field-name\" label=\"Name\" help=\"Say what will use it, such as Deploy script.\" error={nameError}>\n {(f) => (\n <TextField\n id={f.id}\n aria-describedby={f['aria-describedby']}\n aria-invalid={f['aria-invalid']}\n value={name}\n disabled={creating}\n autoComplete=\"off\"\n onChange={(e) => { setName(e.target.value); setNameError(''); }}\n />\n )}\n </FormField>\n {/* Typed as MM/DD/YYYY or picked from the calendar. A day before today says 'Choose Nov 16, 2026 or later.'\n The second argument of onChange tells an empty field (no error) from a date typed wrong. */}\n <DateField\n id=\"date-field-expires\"\n label=\"Expires on\"\n value={expires}\n onChange={(day, detail) => { setExpires(day); setExpiresError(detail.error); }}\n min={today}\n disabled={creating}\n helperText=\"MM/DD/YYYY. Leave empty for no end date.\"\n />\n <Cluster>\n <Button size=\"medium\" type=\"primary\" state=\"enabled\" label=\"Create Token\" htmlType=\"submit\" loading={creating} />\n </Cluster>\n </Form>\n )}\n </Stack>\n </Center>\n );\n}\n",
2460
+ "source": "'use client';\nimport { useEffect, useRef, useState } from 'react';\nimport Heading from 'oneslash-design-system/components/heading';\nimport Paragraph from 'oneslash-design-system/components/paragraph';\nimport Form from 'oneslash-design-system/components/form';\nimport FormField from 'oneslash-design-system/components/formField';\nimport TextField from 'oneslash-design-system/components/textField';\nimport DateField from 'oneslash-design-system/components/dateField';\nimport CopyField from 'oneslash-design-system/components/copyField';\nimport Button from 'oneslash-design-system/components/button';\nimport { Center, Cluster, Stack } from 'oneslash-design-system/components/layout';\n\n// In an app, these fields sit in the 'Create Key' Modal of the case 'API keys'.\n// \"Today\" in this example. A real app passes its own today as `min`, as 'YYYY-MM-DD'.\nconst today = '2026-11-16';\n// The token the server made. A real app gets it once, in the reply to the create request.\nconst madeToken = 'acme_tok_9Rk2vQ7mXa4LwT8cZp1Hd6Ns';\n\nconst months = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'];\n// '2026-12-16' as 'Dec 16, 2026', for the line under the new token\nfunction formatDay(day: string) {\n const [year, month, date] = day.split('-').map(Number);\n return `${months[month - 1]} ${date}, ${year}`;\n}\n\nexport default function DateFieldCalendar() {\n const [name, setName] = useState('');\n const [nameError, setNameError] = useState('');\n // The day as 'YYYY-MM-DD', or '' for no end date\n const [expires, setExpires] = useState('');\n // The field's own message for a date typed wrong. While it is set, the token is not created.\n const [expiresError, setExpiresError] = useState<string | null>(null);\n const [creating, setCreating] = useState(false);\n const [made, setMade] = useState<{ name: string; expires: string } | null>(null);\n const timer = useRef<ReturnType<typeof setTimeout>>();\n\n // Stops the request if the example goes away before it ends.\n useEffect(() => () => clearTimeout(timer.current), []);\n\n function handleCreate() {\n if (creating) return;\n setNameError(name.trim() ? '' : 'Enter a name for the token.');\n // A date typed wrong shows its message under the field. An empty date means no end date.\n if (!name.trim() || expiresError) return;\n setCreating(true);\n // Stands in for the request to the server.\n timer.current = setTimeout(() => {\n setCreating(false);\n setMade({ name: name.trim(), expires });\n }, 1200);\n }\n\n function handleDone() {\n setMade(null);\n setName('');\n setExpires('');\n setExpiresError(null);\n }\n\n return (\n <Center width=\"form\">\n <Stack gap=\"large\">\n <Stack gap=\"small\">\n <Heading level={1} size=\"h5\">New access token</Heading>\n <Paragraph tone=\"secondary\" size=\"body2\" measure=\"none\">A token lets a script use Acme as you until the day it expires.</Paragraph>\n </Stack>\n {made ? (\n <Stack gap=\"large\">\n <CopyField id=\"date-field-token\" label={made.name} value={madeToken} mono reveal=\"once\" />\n <Paragraph size=\"body2\" measure=\"none\">{made.expires ? `Expires ${formatDay(made.expires)}.` : 'Never expires.'}</Paragraph>\n <Cluster>\n <Button size=\"medium\" type=\"primary\" state=\"enabled\" label=\"Done\" onClickButton={handleDone} />\n </Cluster>\n </Stack>\n ) : (\n <Form aria-label=\"New access token\" gap=\"large\" onSubmit={handleCreate}>\n <FormField id=\"date-field-name\" label=\"Name\" help=\"Say what will use it, such as Deploy script.\" error={nameError}>\n {(f) => (\n <TextField\n id={f.id}\n aria-describedby={f['aria-describedby']}\n aria-invalid={f['aria-invalid']}\n value={name}\n disabled={creating}\n autoComplete=\"off\"\n onChange={(e) => { setName(e.target.value); setNameError(''); }}\n />\n )}\n </FormField>\n {/* Typed as MM/DD/YYYY or picked from the calendar. A day before today says 'Choose Nov 16, 2026 or later.'\n The second argument of onChange tells an empty field (no error) from a date typed wrong. */}\n <DateField\n id=\"date-field-expires\"\n label=\"Expires on\"\n value={expires}\n onChange={(day, detail) => { setExpires(day); setExpiresError(detail.error); }}\n min={today}\n disabled={creating}\n helperText=\"MM/DD/YYYY, or empty for no end date.\"\n />\n <Cluster>\n <Button size=\"medium\" type=\"primary\" state=\"enabled\" label=\"Create Token\" htmlType=\"submit\" loading={creating} />\n </Cluster>\n </Form>\n )}\n </Stack>\n </Center>\n );\n}\n",
2461
2461
  "uses": [
2462
2462
  "Button",
2463
2463
  "Center",
@@ -16,6 +16,11 @@ interface ModalProps {
16
16
  'aria-label'?: string;
17
17
  /** `top` sits the panel at the top below sm, so a phone keyboard does not cover a field in it. Centered from sm up. Default 'center'. */
18
18
  placement?: 'center' | 'top';
19
+ /**
20
+ * Where focus goes on close when the element that opened the Modal is no longer on the page, such as
21
+ * a row the Modal deleted. Without it, focus falls to the page. Unused while the opener is still there.
22
+ */
23
+ returnFocus?: () => HTMLElement | null | undefined;
19
24
  }
20
- export default function Modal({ isOpen, title, secondTitle, children, onClose, actions, size, initialFocus, 'aria-label': ariaLabel, placement, }: ModalProps): React.JSX.Element | null;
25
+ export default function Modal({ isOpen, title, secondTitle, children, onClose, actions, size, initialFocus, 'aria-label': ariaLabel, placement, returnFocus, }: ModalProps): React.JSX.Element | null;
21
26
  export {};
@@ -5,7 +5,7 @@ import { useOverlayTransition } from './useOverlayTransition';
5
5
  import { initialFocusCandidates } from '../internal/modal';
6
6
  import { PICKABLE, claimEvent, isTopOverlay, lockScroll, popOverlay, pushOverlay, trapTab, unlockScroll } from '../internal/overlayStack';
7
7
  export default function Modal(_a) {
8
- var isOpen = _a.isOpen, title = _a.title, secondTitle = _a.secondTitle, children = _a.children, onClose = _a.onClose, actions = _a.actions, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.initialFocus, initialFocus = _c === void 0 ? 'first' : _c, ariaLabel = _a["aria-label"], _d = _a.placement, placement = _d === void 0 ? 'center' : _d;
8
+ var isOpen = _a.isOpen, title = _a.title, secondTitle = _a.secondTitle, children = _a.children, onClose = _a.onClose, actions = _a.actions, _b = _a.size, size = _b === void 0 ? 'medium' : _b, _c = _a.initialFocus, initialFocus = _c === void 0 ? 'first' : _c, ariaLabel = _a["aria-label"], _d = _a.placement, placement = _d === void 0 ? 'center' : _d, returnFocus = _a.returnFocus;
9
9
  var panelRef = useRef(null);
10
10
  var bodyRef = useRef(null);
11
11
  var titleId = useId();
@@ -13,6 +13,8 @@ export default function Modal(_a) {
13
13
  // Keep onClose in a ref so a new function each render doesn't re-run the focus effect
14
14
  var onCloseRef = useRef(onClose);
15
15
  onCloseRef.current = onClose;
16
+ var returnFocusRef = useRef(returnFocus);
17
+ returnFocusRef.current = returnFocus;
16
18
  // Move focus into the panel, trap Tab inside it, close on Escape,
17
19
  // lock page scroll, and give focus back to the trigger on close.
18
20
  // Escape and Tab act only while this Modal is the top overlay (see internal/overlayStack).
@@ -49,11 +51,14 @@ export default function Modal(_a) {
49
51
  };
50
52
  window.addEventListener('keydown', handleKeyDown);
51
53
  return function () {
52
- var _a;
54
+ var _a, _b, _c;
53
55
  window.removeEventListener('keydown', handleKeyDown);
54
56
  popOverlay(titleId);
55
57
  unlockScroll();
56
- (_a = previouslyFocused === null || previouslyFocused === void 0 ? void 0 : previouslyFocused.focus) === null || _a === void 0 ? void 0 : _a.call(previouslyFocused);
58
+ if (previouslyFocused === null || previouslyFocused === void 0 ? void 0 : previouslyFocused.isConnected)
59
+ (_a = previouslyFocused.focus) === null || _a === void 0 ? void 0 : _a.call(previouslyFocused);
60
+ else
61
+ (_c = (_b = returnFocusRef.current) === null || _b === void 0 ? void 0 : _b.call(returnFocusRef)) === null || _c === void 0 ? void 0 : _c.focus();
57
62
  };
58
63
  }, [isOpen, mounted]);
59
64
  // Determine width based on size prop
@@ -2,6 +2,7 @@
2
2
  import React, { useState, useRef, useLayoutEffect, useEffect, useId } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import { useOverlayTransition } from './useOverlayTransition';
5
+ import { claimEvent, isInOpenOverlay } from '../internal/overlayStack';
5
6
  // useLayoutEffect warns on a server render, where it cannot run; useEffect is the same there and silent
6
7
  var useIsomorphicLayoutEffect = typeof window === 'undefined' ? useEffect : useLayoutEffect;
7
8
  var VIEWPORT_MARGIN = 8;
@@ -74,13 +75,17 @@ export default function Tooltip(_a) {
74
75
  target.setAttribute('aria-describedby', tooltipId);
75
76
  return function () { return target.removeAttribute('aria-describedby'); };
76
77
  }, [mounted, tooltipId]);
77
- // Escape dismisses an open tooltip
78
+ // Escape dismisses an open tooltip. In a Modal or Drawer it does only that, and a second Escape
79
+ // closes the overlay. The event is claimed, not stopped, so a SidePane still closes on it.
78
80
  useEffect(function () {
79
81
  if (!open)
80
82
  return;
81
83
  var handleKeyDown = function (e) {
82
- if (e.key === 'Escape')
83
- hide();
84
+ if (e.key !== 'Escape')
85
+ return;
86
+ hide();
87
+ if (isInOpenOverlay(triggerRef.current))
88
+ claimEvent(e);
84
89
  };
85
90
  document.addEventListener('keydown', handleKeyDown);
86
91
  return function () { return document.removeEventListener('keydown', handleKeyDown); };
@@ -8,6 +8,7 @@ export declare function pushOverlay(id: string, panel?: Overlay['panel']): void;
8
8
  export declare function popOverlay(id: string): void;
9
9
  export declare function isTopOverlay(id: string): boolean;
10
10
  export declare function isInTopOverlay(node: unknown): boolean;
11
+ export declare function isInOpenOverlay(node: unknown): boolean;
11
12
  export declare function claimEvent(event: object): boolean;
12
13
  export declare function lockScroll(): void;
13
14
  export declare function unlockScroll(): void;
@@ -21,6 +21,12 @@ export function isInTopOverlay(node) {
21
21
  var top = stack[stack.length - 1];
22
22
  return !(top === null || top === void 0 ? void 0 : top.panel) || top.panel.contains(node);
23
23
  }
24
+ // True when an overlay is open and the top one holds `node`
25
+ export function isInOpenOverlay(node) {
26
+ var _a;
27
+ var top = stack[stack.length - 1];
28
+ return !!((_a = top === null || top === void 0 ? void 0 : top.panel) === null || _a === void 0 ? void 0 : _a.contains(node));
29
+ }
24
30
  // Every overlay hears the same keydown on window. A browser runs React's update between two
25
31
  // listeners, so the top overlay may already be gone when the next one asks: the first to claim
26
32
  // an event acts on it, and the others leave it.
@@ -10,3 +10,5 @@ export declare const WithActions: Story;
10
10
  export declare const LongContent: Story;
11
11
  export declare const FocusInBody: Story;
12
12
  export declare const WithSelect: Story;
13
+ export declare const RemovedOpenerProbe: Story;
14
+ export declare const RemovedOpenerReturnFocusProbe: Story;
@@ -111,3 +111,31 @@ export var WithSelect = {
111
111
  render: function (args) { return <WithSelectModal {...args}/>; },
112
112
  args: { title: "Move Project", size: "small" },
113
113
  };
114
+ // A row whose Delete opens a confirm; confirming removes the row, and with it the opener
115
+ var RemovedOpenerProbeBox = function (_a) {
116
+ var withReturnFocus = _a.withReturnFocus;
117
+ var _b = useState(["Alpha", "Beta"]), rows = _b[0], setRows = _b[1];
118
+ var _c = useState(null), deleting = _c[0], setDeleting = _c[1];
119
+ var heading = React.useRef(null);
120
+ return (<div style={{ padding: "24px" }}>
121
+ <h2 ref={heading} tabIndex={-1}>Rows</h2>
122
+ {rows.map(function (row) { return (<div key={row}>
123
+ {row}{" "}
124
+ <button type="button" onClick={function () { return setDeleting(row); }}>{"Delete ".concat(row)}</button>
125
+ </div>); })}
126
+ <Modal isOpen={deleting !== null} size="small" title="Delete Row" onClose={function () { return setDeleting(null); }} returnFocus={withReturnFocus ? function () { return heading.current; } : undefined}>
127
+ <button type="button" onClick={function () { setRows(rows.filter(function (r) { return r !== deleting; })); setDeleting(null); }}>
128
+ Delete
129
+ </button>
130
+ </Modal>
131
+ </div>);
132
+ };
133
+ export var RemovedOpenerProbe = {
134
+ // For tests/interactions.spec.ts only: hidden from the sidebar and the docs, and skipped by the visual gate
135
+ tags: ["!dev", "!autodocs", "test-only"],
136
+ render: function () { return <RemovedOpenerProbeBox />; },
137
+ };
138
+ export var RemovedOpenerReturnFocusProbe = {
139
+ tags: ["!dev", "!autodocs", "test-only"],
140
+ render: function () { return <RemovedOpenerProbeBox withReturnFocus/>; },
141
+ };
@@ -7,3 +7,4 @@ export declare const Default: Story;
7
7
  export declare const OnIconButton: Story;
8
8
  export declare const LongText: Story;
9
9
  export declare const MultipleTooltips: Story;
10
+ export declare const InModalProbe: Story;
@@ -2,6 +2,7 @@ import React from "react";
2
2
  import Tooltip from "../components/tooltip";
3
3
  import Button from "../components/button";
4
4
  import IconButton from "../components/iconButton";
5
+ import Modal from "../components/modal";
5
6
  var meta = {
6
7
  title: "Components/Tooltip",
7
8
  component: Tooltip,
@@ -50,3 +51,19 @@ export var MultipleTooltips = {
50
51
  </Tooltip>
51
52
  </div>); },
52
53
  };
54
+ var InModalProbeBox = function () {
55
+ var _a = React.useState(true), open = _a[0], setOpen = _a[1];
56
+ return (<>
57
+ <p data-testid="modal-state">{open ? "open" : "closed"}</p>
58
+ <Modal isOpen={open} title="Probe" onClose={function () { return setOpen(false); }}>
59
+ <Tooltip title="Settings">
60
+ <button type="button">Settings</button>
61
+ </Tooltip>
62
+ </Modal>
63
+ </>);
64
+ };
65
+ export var InModalProbe = {
66
+ // For tests/interactions.spec.ts only: hidden from the sidebar and the docs, and skipped by the visual gate
67
+ tags: ["!dev", "!autodocs", "test-only"],
68
+ render: function () { return <InModalProbeBox />; },
69
+ };
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.27.1",
4
+ "version": "2.28.0",
5
5
  "license": "MIT",
6
6
  "private": false,
7
7
  "main": "./dist/index.js",
@@ -70,6 +70,8 @@
70
70
  "react-dom": "^18 || ^19"
71
71
  },
72
72
  "devDependencies": {
73
+ "@fontsource/fira-code": "5.3.0",
74
+ "@fontsource/inter": "5.3.0",
73
75
  "@playwright/test": "1.64.1",
74
76
  "@storybook/addon-essentials": "8.6",
75
77
  "@storybook/react-vite": "8.6",