@galaxy-io/dls 2.5.0 → 2.5.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.
@@ -1,10 +1,10 @@
1
- import { FontFamily } from "../theme/enums.js";
2
1
  import Text, { TextVariant } from "../text/Text.js";
3
2
  import { useControlledOpenState } from "../hooks/useControlledOpenState.js";
4
3
  import Flex, { FlexDirection } from "../layout/Flex.js";
5
4
  import Button, { ButtonVariant } from "../buttons/Button.js";
6
- import Span from "../text/Span.js";
7
5
  import TextInput from "../inputs/TextInput.js";
6
+ import Code from "../text/Code.js";
7
+ import Selectable from "../text/Selectable.js";
8
8
  import Modal, { ModalSize } from "./Modal.js";
9
9
  import { forwardRef, useEffect, useId, useRef, useState } from "react";
10
10
  import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
@@ -121,12 +121,11 @@ var ConfirmDialog = forwardRef(function ConfirmDialog({ header, description, lab
121
121
  children: [/* @__PURE__ */ jsxs(Text, {
122
122
  id: promptId,
123
123
  children: [
124
- "Type ",
125
- /* @__PURE__ */ jsx(Span, {
126
- family: FontFamily.MONO,
127
- children: confirmValue
128
- }),
129
- " to confirm."
124
+ "Type",
125
+ " ",
126
+ /* @__PURE__ */ jsx(Code, { children: /* @__PURE__ */ jsx(Selectable, { children: confirmValue }) }),
127
+ " ",
128
+ "to confirm."
130
129
  ]
131
130
  }), /* @__PURE__ */ jsx(TextInput, {
132
131
  value: typed,
@@ -5,8 +5,8 @@ import Divider from "../layout/Divider.js";
5
5
  import Icon, { IconVariant } from "../icons/Icon.js";
6
6
  import Span from "./Span.js";
7
7
  import Link, { LinkVariant } from "../links/Link.js";
8
- import Bold from "./Bold.js";
9
8
  import Code from "./Code.js";
9
+ import Bold from "./Bold.js";
10
10
  import CodeBlock, { CodeBlockLanguage } from "./CodeBlock.js";
11
11
  /* empty css */
12
12
  import { styled } from "@linaria/react";
@@ -37,7 +37,7 @@ var TOAST_VARIANT_TO_POLITENESS_MAP = {
37
37
  ERROR: "assertive"
38
38
  };
39
39
  /** How long a toast stays, by default. */
40
- var TOAST_DEFAULT_DURATION_MS = 5e3;
40
+ var TOAST_DEFAULT_DURATION_MS = 3e3;
41
41
  /** Open toasts per region; a sixth dismisses the oldest. */
42
42
  var TOAST_MAX_PER_PLACEMENT = 5;
43
43
  /** How long a dismissed toast stays in the queue so its ScaleFade exit can run: `duration.base`. */
@@ -27,7 +27,7 @@ export interface ToastOptions {
27
27
  action?: ToastAction;
28
28
  /** Spinner in place of the icon; the toast does not time out while loading. @default false */
29
29
  isLoading?: boolean;
30
- /** Milliseconds the toast stays, counted while it is not paused. @default 5000 */
30
+ /** Milliseconds the toast stays, counted while it is not paused. @default 3000 */
31
31
  duration?: number;
32
32
  /** Stay until dismissed; `duration` is ignored. @default false */
33
33
  isPersistent?: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galaxy-io/dls",
3
- "version": "2.5.0",
3
+ "version": "2.5.1",
4
4
  "description": "Galaxy Design Language System",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",