@rojaostudio/ds 2.0.0-next.3 → 2.0.0-next.30

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 (109) hide show
  1. package/README.md +42 -2
  2. package/THIRD_PARTY_NOTICES.md +66 -0
  3. package/dist/components/avatar.d.ts +20 -12
  4. package/dist/components/avatar.js +8 -6
  5. package/dist/components/badge.d.ts +7 -6
  6. package/dist/components/badge.js +2 -1
  7. package/dist/components/breadcrumb.d.ts +4 -4
  8. package/dist/components/breadcrumb.js +1 -1
  9. package/dist/components/bubble.d.ts +26 -11
  10. package/dist/components/bubble.js +3 -3
  11. package/dist/components/button.d.ts +1 -1
  12. package/dist/components/card.d.ts +28 -12
  13. package/dist/components/card.js +4 -2
  14. package/dist/components/chart.d.ts +18 -8
  15. package/dist/components/chart.js +89 -25
  16. package/dist/components/choice-carousel.d.ts +1 -1
  17. package/dist/components/choice-carousel.js +2 -4
  18. package/dist/components/choice-list.d.ts +40 -0
  19. package/dist/components/choice-list.js +122 -0
  20. package/dist/components/choice-preview-card.d.ts +1 -7
  21. package/dist/components/color-input.d.ts +1 -1
  22. package/dist/components/context-menu.d.ts +5 -2
  23. package/dist/components/currency-input.d.ts +0 -2
  24. package/dist/components/data-table-header.d.ts +55 -18
  25. package/dist/components/data-table-header.js +148 -101
  26. package/dist/components/date-picker.d.ts +1 -1
  27. package/dist/components/dialog.d.ts +6 -3
  28. package/dist/components/dialog.js +2 -2
  29. package/dist/components/dropdown-menu.d.ts +5 -2
  30. package/dist/components/dropzone.d.ts +2 -2
  31. package/dist/components/dropzone.js +1 -1
  32. package/dist/components/file-input.d.ts +13 -8
  33. package/dist/components/file-input.js +24 -21
  34. package/dist/components/filter-chip.d.ts +11 -5
  35. package/dist/components/filter-chip.js +15 -6
  36. package/dist/components/floating-stepper.d.ts +11 -28
  37. package/dist/components/floating-stepper.js +2 -30
  38. package/dist/components/form-actions.d.ts +37 -15
  39. package/dist/components/form-actions.js +5 -14
  40. package/dist/components/heading.d.ts +42 -0
  41. package/dist/components/heading.js +25 -0
  42. package/dist/components/icon-button.d.ts +1 -1
  43. package/dist/components/image-crop-dialog.d.ts +60 -0
  44. package/dist/components/image-crop-dialog.js +240 -0
  45. package/dist/components/image-crop-modal.d.ts +12 -55
  46. package/dist/components/image-crop-modal.js +2 -249
  47. package/dist/components/image-upload.d.ts +8 -17
  48. package/dist/components/image-upload.js +3 -3
  49. package/dist/components/index.d.ts +15 -10
  50. package/dist/components/index.js +10 -0
  51. package/dist/components/internal/bottom-bar.d.ts +30 -0
  52. package/dist/components/internal/bottom-bar.js +25 -0
  53. package/dist/components/internal/button.d.ts +1 -1
  54. package/dist/components/internal/icons.d.ts +9 -1
  55. package/dist/components/internal/icons.js +16 -0
  56. package/dist/components/internal/menu.d.ts +3 -2
  57. package/dist/components/internal/menu.js +1 -1
  58. package/dist/components/internal/modal.js +9 -0
  59. package/dist/components/internal/toggle.d.ts +1 -1
  60. package/dist/components/internal/use-on-screen-keyboard.d.ts +12 -0
  61. package/dist/components/internal/use-on-screen-keyboard.js +49 -0
  62. package/dist/components/item.d.ts +14 -7
  63. package/dist/components/item.js +5 -2
  64. package/dist/components/loading-overlay.d.ts +43 -0
  65. package/dist/components/loading-overlay.js +81 -0
  66. package/dist/components/marker.d.ts +11 -3
  67. package/dist/components/marker.js +4 -3
  68. package/dist/components/number-input.d.ts +1 -1
  69. package/dist/components/progress.d.ts +3 -3
  70. package/dist/components/progress.js +2 -2
  71. package/dist/components/row-actions.d.ts +3 -0
  72. package/dist/components/row-actions.js +8 -4
  73. package/dist/components/saving-bar.d.ts +36 -10
  74. package/dist/components/saving-bar.js +14 -6
  75. package/dist/components/section-header.d.ts +4 -3
  76. package/dist/components/selectable-card.d.ts +2 -10
  77. package/dist/components/sidebar.d.ts +8 -11
  78. package/dist/components/sidebar.js +4 -5
  79. package/dist/components/spinner.d.ts +9 -6
  80. package/dist/components/spinner.js +3 -3
  81. package/dist/components/star-rating.d.ts +3 -3
  82. package/dist/components/star-rating.js +2 -2
  83. package/dist/components/stat.d.ts +18 -6
  84. package/dist/components/stat.js +9 -3
  85. package/dist/components/status.d.ts +4 -4
  86. package/dist/components/status.js +2 -2
  87. package/dist/components/stepper.d.ts +33 -0
  88. package/dist/components/stepper.js +36 -0
  89. package/dist/components/summary-bar.d.ts +3 -2
  90. package/dist/components/summary-bar.js +10 -1
  91. package/dist/components/tile.d.ts +5 -5
  92. package/dist/components/tile.js +2 -2
  93. package/dist/components/time-picker.d.ts +1 -1
  94. package/dist/components/toast.d.ts +17 -6
  95. package/dist/components/toast.js +5 -3
  96. package/dist/components/toggle-card-compact.d.ts +6 -25
  97. package/dist/components/toggle-card-compact.js +8 -35
  98. package/dist/components/toggle-card.d.ts +23 -9
  99. package/dist/components/toggle-card.js +38 -2
  100. package/dist/components/toggle.d.ts +1 -1
  101. package/dist/components/typing-indicator.d.ts +2 -2
  102. package/dist/components/typing-indicator.js +1 -1
  103. package/package.json +4 -4
  104. package/styles/base.css +13 -1
  105. package/styles/rds/components-styles.css +767 -281
  106. package/styles/rds/components.css +56 -31
  107. package/styles/rds/foundation.css +1 -1
  108. package/styles/rds/theme.css +40 -29
  109. package/styles/rds.css +1 -1
@@ -66,7 +66,8 @@ function useToast() {
66
66
  return toast;
67
67
  }
68
68
  const MAX_VISIBLE = 3;
69
- function Toaster({ label = "Notifica\xE7\xF5es", children }) {
69
+ const toastDuration = (duration, hasAction) => duration != null ? duration : hasAction ? Infinity : 5e3;
70
+ function Toaster({ label = "Notifica\xE7\xF5es", closeLabel = "Fechar", children }) {
70
71
  const [items, setItems] = useState([]);
71
72
  useEffect(() => {
72
73
  const listener = (event) => {
@@ -102,7 +103,7 @@ function Toaster({ label = "Notifica\xE7\xF5es", children }) {
102
103
  if (!next) close(key);
103
104
  },
104
105
  type: tone === "danger" ? "foreground" : "background",
105
- duration: duration != null ? duration : action ? 6e3 : 5e3,
106
+ duration: toastDuration(duration, Boolean(action)),
106
107
  className: toastClassName(tone, variant),
107
108
  children: [
108
109
  /* @__PURE__ */ jsx(
@@ -115,7 +116,7 @@ function Toaster({ label = "Notifica\xE7\xF5es", children }) {
115
116
  }
116
117
  ),
117
118
  action && /* @__PURE__ */ jsx(ToastPrimitive.Action, { altText: action.label, asChild: true, children: /* @__PURE__ */ jsx(Button, { tone: "neutral", variant: "ghost", className: "rds-toast__action", onClick: action.onClick, children: action.label }) }),
118
- /* @__PURE__ */ jsx(Tooltip, { text: "Fechar", children: /* @__PURE__ */ jsx(ToastPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { icon: /* @__PURE__ */ jsx(CloseIcon, {}), label: "Fechar", tone: "neutral", variant: "ghost", className: "rds-toast__close" }) }) })
119
+ /* @__PURE__ */ jsx(Tooltip, { text: closeLabel, children: /* @__PURE__ */ jsx(ToastPrimitive.Close, { asChild: true, children: /* @__PURE__ */ jsx(IconButton, { icon: /* @__PURE__ */ jsx(CloseIcon, {}), label: closeLabel, tone: "neutral", variant: "ghost", className: "rds-toast__close" }) }) })
119
120
  ]
120
121
  },
121
122
  key
@@ -128,5 +129,6 @@ export {
128
129
  Toaster,
129
130
  toast,
130
131
  toastClassName,
132
+ toastDuration,
131
133
  useToast
132
134
  };
@@ -1,31 +1,12 @@
1
1
  import * as react from 'react';
2
- import { ReactNode } from 'react';
2
+ import { ToggleCardProps } from './toggle-card.js';
3
3
 
4
- interface ToggleCardCompactProps {
5
- /** An icon before the text (the Item's media). */
6
- icon?: ReactNode;
7
- /** The setting it turns on (the Item's title and the Switch's name). */
8
- label: string;
9
- /** The line under the label while off. */
10
- description?: ReactNode;
11
- /** The line under the label while on (a summary of what is set); it replaces `description`. */
12
- summary?: ReactNode;
13
- checked: boolean;
14
- onCheckedChange?: (checked: boolean) => void;
15
- /** Shows the pencil (an IconButton) while on: opens the setting's options (a Dialog). */
16
- onEdit?: () => void;
17
- /** The pencil's accessible name and tooltip. */
18
- editLabel?: string;
19
- /** Submits 'on' (or '') under this name with a native form, through a hidden input. */
20
- name?: string;
21
- disabled?: boolean;
22
- className?: string;
23
- }
4
+ /** @deprecated Use ToggleCardProps (with layout="compact"). */
5
+ type ToggleCardCompactProps = Omit<ToggleCardProps, 'layout' | 'children'>;
24
6
  /**
25
- * ToggleCardCompact — a composition of the Item (outline), the Switch and the IconButton with its Tooltip: a
26
- * setting in one row, its summary under the label while on and a pencil that opens its options. Styles:
27
- * toggle-card-compact.css.
7
+ * @deprecated Use `<ToggleCard layout="compact">` (Figma [RDS] Forms/ToggleCard, layout=compact), with the same
8
+ * props. A thin wrapper over it, kept so the old name keeps compiling; the codemod rewrites it.
28
9
  */
29
- declare function ToggleCardCompact({ icon, label, description, summary, checked, onCheckedChange, onEdit, editLabel, name, disabled, className, }: ToggleCardCompactProps): react.JSX.Element;
10
+ declare function ToggleCardCompact(props: ToggleCardCompactProps): react.JSX.Element;
30
11
 
31
12
  export { ToggleCardCompact, type ToggleCardCompactProps };
@@ -1,39 +1,12 @@
1
1
  "use client";
2
- import "../chunk-ORMEWXMH.js";
3
- import { jsx, jsxs } from "react/jsx-runtime";
4
- import { IconButton } from "./icon-button.js";
5
- import { PencilIcon } from "./internal/icons.js";
6
- import { Item } from "./item.js";
7
- import { Switch } from "./switch.js";
8
- import { Tooltip } from "./tooltip.js";
9
- function ToggleCardCompact({
10
- icon,
11
- label,
12
- description,
13
- summary,
14
- checked,
15
- onCheckedChange,
16
- onEdit,
17
- editLabel = "Editar",
18
- name,
19
- disabled,
20
- className
21
- }) {
22
- return /* @__PURE__ */ jsx(
23
- Item,
24
- {
25
- variant: "outline",
26
- className: ["rds-toggle-card-compact", className].filter(Boolean).join(" "),
27
- media: icon,
28
- title: label,
29
- description: (checked ? summary : description) || void 0,
30
- action: /* @__PURE__ */ jsxs("span", { className: "rds-toggle-card-compact__actions", children: [
31
- name && /* @__PURE__ */ jsx("input", { type: "hidden", name, value: checked ? "on" : "" }),
32
- checked && onEdit && /* @__PURE__ */ jsx(Tooltip, { text: editLabel, children: /* @__PURE__ */ jsx(IconButton, { icon: /* @__PURE__ */ jsx(PencilIcon, {}), label: editLabel, variant: "ghost", tone: "neutral", onClick: onEdit, disabled }) }),
33
- /* @__PURE__ */ jsx(Switch, { "aria-label": label, checked, onCheckedChange, disabled })
34
- ] })
35
- }
36
- );
2
+ import {
3
+ __spreadProps,
4
+ __spreadValues
5
+ } from "../chunk-ORMEWXMH.js";
6
+ import { jsx } from "react/jsx-runtime";
7
+ import { ToggleCard } from "./toggle-card.js";
8
+ function ToggleCardCompact(props) {
9
+ return /* @__PURE__ */ jsx(ToggleCard, __spreadProps(__spreadValues({}, props), { layout: "compact" }));
37
10
  }
38
11
  export {
39
12
  ToggleCardCompact
@@ -1,24 +1,38 @@
1
1
  import * as react from 'react';
2
2
  import { ReactNode } from 'react';
3
3
 
4
+ /** Figma [RDS] Forms/ToggleCard `layout`: the Card with the options below it, or one row (the Item). */
5
+ type ToggleCardLayout = 'default' | 'compact';
4
6
  interface ToggleCardProps {
5
- /** The setting it turns on (the Switch's label). */
7
+ /** `default`: a Card with the Switch and, while on, the options below it. `compact`: one row (an outline Item). */
8
+ layout?: ToggleCardLayout;
9
+ /** The setting it turns on (the Switch's label; in compact, the Item's title and the Switch's name). */
6
10
  label: string;
7
- /** A line under the label (the Switch's hint). */
8
- description?: string;
11
+ /** A line under the label (default: the Switch's hint; compact: shown while off). */
12
+ description?: ReactNode;
13
+ /** Compact only: the line under the label while on (a summary of what is set); it replaces `description`. */
14
+ summary?: ReactNode;
15
+ /** Compact only: an icon before the text (the Item's media). */
16
+ icon?: ReactNode;
9
17
  checked: boolean;
10
- onCheckedChange: (checked: boolean) => void;
18
+ onCheckedChange?: (checked: boolean) => void;
19
+ /** Compact only: shows the pencil (an IconButton) while on; it opens the setting's options (a Dialog). */
20
+ onEdit?: () => void;
21
+ /** Compact only: the pencil's accessible name and tooltip. Default "Editar". */
22
+ editLabel?: string;
11
23
  /** Submits 'on' (or '') under this name with a native form, through a hidden input. */
12
24
  name?: string;
13
- /** The setting's options, shown under it while it is on. */
25
+ /** Default only: the setting's options, shown under it while it is on. */
14
26
  children?: ReactNode;
15
27
  disabled?: boolean;
16
28
  className?: string;
17
29
  }
18
30
  /**
19
- * ToggleCard — a composition of the Card and the Switch (Figma [RDS] Forms/Switch): a setting that, when on, opens
20
- * its own options below it. Styles: toggle-card.css.
31
+ * ToggleCard — Figma [RDS] Forms/ToggleCard: a setting that, when on, opens its own options. `layout="default"` is
32
+ * a composition of the Card and the Switch, the options below it; `layout="compact"` is one row (the Item outline,
33
+ * the Switch and the IconButton with its Tooltip): the summary under the label while on and a pencil that opens the
34
+ * options. Styles: toggle-card.css.
21
35
  */
22
- declare function ToggleCard({ label, description, checked, onCheckedChange, name, children, disabled, className }: ToggleCardProps): react.JSX.Element;
36
+ declare function ToggleCard({ layout, label, description, summary, icon, checked, onCheckedChange, onEdit, editLabel, name, children, disabled, className, }: ToggleCardProps): react.JSX.Element;
23
37
 
24
- export { ToggleCard, type ToggleCardProps };
38
+ export { ToggleCard, type ToggleCardLayout, type ToggleCardProps };
@@ -2,10 +2,46 @@
2
2
  import "../chunk-ORMEWXMH.js";
3
3
  import { jsx, jsxs } from "react/jsx-runtime";
4
4
  import { Card } from "./card.js";
5
+ import { IconButton } from "./icon-button.js";
6
+ import { PencilIcon } from "./internal/icons.js";
7
+ import { Item } from "./item.js";
5
8
  import { Switch } from "./switch.js";
6
- function ToggleCard({ label, description, checked, onCheckedChange, name, children, disabled, className }) {
9
+ import { Tooltip } from "./tooltip.js";
10
+ function ToggleCard({
11
+ layout = "default",
12
+ label,
13
+ description,
14
+ summary,
15
+ icon,
16
+ checked,
17
+ onCheckedChange,
18
+ onEdit,
19
+ editLabel = "Editar",
20
+ name,
21
+ children,
22
+ disabled,
23
+ className
24
+ }) {
25
+ const hidden = name && /* @__PURE__ */ jsx("input", { type: "hidden", name, value: checked ? "on" : "" });
26
+ if (layout === "compact") {
27
+ return /* @__PURE__ */ jsx(
28
+ Item,
29
+ {
30
+ variant: "outline",
31
+ className: ["rds-toggle-card", "rds-toggle-card--compact", className].filter(Boolean).join(" "),
32
+ media: icon,
33
+ title: label,
34
+ description: (checked ? summary : description) || void 0,
35
+ action: /* @__PURE__ */ jsxs("span", { className: "rds-toggle-card__actions", children: [
36
+ hidden,
37
+ checked && onEdit && /* @__PURE__ */ jsx(Tooltip, { text: editLabel, children: /* @__PURE__ */ jsx(IconButton, { icon: /* @__PURE__ */ jsx(PencilIcon, {}), label: editLabel, variant: "ghost", tone: "neutral", onClick: onEdit, disabled }) }),
38
+ /* @__PURE__ */ jsx(Switch, { "aria-label": label, checked, onCheckedChange, disabled })
39
+ ] })
40
+ }
41
+ );
42
+ }
7
43
  return /* @__PURE__ */ jsxs(Card, { as: "div", className: ["rds-toggle-card", className].filter(Boolean).join(" "), children: [
8
- name && /* @__PURE__ */ jsx("input", { type: "hidden", name, value: checked ? "on" : "" }),
44
+ hidden,
9
45
  /* @__PURE__ */ jsx("div", { className: "rds-toggle-card__header", children: /* @__PURE__ */ jsx(Switch, { checked, onCheckedChange, hint: description, disabled, children: label }) }),
10
46
  checked && children && /* @__PURE__ */ jsx("div", { className: "rds-toggle-card__content", children })
11
47
  ] });
@@ -8,7 +8,7 @@ interface ToggleProps extends Omit<ComponentPropsWithRef<typeof TogglePrimitive.
8
8
  children?: ReactNode;
9
9
  /** Icon before the text (Figma: `showIcon` + `iconName`). Decorative, rendered with aria-hidden. */
10
10
  icon?: ReactNode;
11
- /** The emphasis (Figma: `style`): ghost in a toolbar, outline when it stands alone. */
11
+ /** The emphasis (Figma: `variant`): ghost in a toolbar, outline when it stands alone. */
12
12
  variant?: ToggleVariant;
13
13
  /** Rendered as aria-disabled="true": stays in the tab order and takes focus, but does not toggle. */
14
14
  disabled?: boolean;
@@ -1,12 +1,12 @@
1
1
  import * as react from 'react';
2
2
 
3
- /** @deprecated Use Bubble with variant="typing". */
3
+ /** @deprecated Use Bubble with `typing`. */
4
4
  interface TypingIndicatorProps {
5
5
  /** What a screen reader hears. Default "Digitando". */
6
6
  ariaLabel?: string;
7
7
  }
8
8
  /**
9
- * @deprecated Use `<Bubble variant="typing" />` (Figma [RDS] Chat/Bubble, style=typing). A thin wrapper over it: the
9
+ * @deprecated Use `<Bubble typing />` (Figma [RDS] Chat/Bubble, typing=true). A thin wrapper over it: the
10
10
  * label becomes the bubble's announcement.
11
11
  */
12
12
  declare function TypingIndicator({ ariaLabel }: TypingIndicatorProps): react.JSX.Element;
@@ -2,7 +2,7 @@ import "../chunk-ORMEWXMH.js";
2
2
  import { jsx } from "react/jsx-runtime";
3
3
  import { Bubble } from "./bubble.js";
4
4
  function TypingIndicator({ ariaLabel = "Digitando" }) {
5
- return /* @__PURE__ */ jsx(Bubble, { variant: "typing", align: "start", children: ariaLabel });
5
+ return /* @__PURE__ */ jsx(Bubble, { typing: true, align: "start", children: ariaLabel });
6
6
  }
7
7
  export {
8
8
  TypingIndicator
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rojaostudio/ds",
3
- "version": "2.0.0-next.3",
3
+ "version": "2.0.0-next.30",
4
4
  "type": "module",
5
5
  "description": "Rojão Design System — componentes React, estilos e alvo React Native. O motor vive em @rojaostudio/ds-core.",
6
6
  "license": "MIT",
@@ -100,6 +100,7 @@
100
100
  },
101
101
  "files": [
102
102
  "LICENSE",
103
+ "THIRD_PARTY_NOTICES.md",
103
104
  "README.md",
104
105
  "dist",
105
106
  "styles"
@@ -167,7 +168,6 @@
167
168
  "playwright": "^1.63.0",
168
169
  "react-image-crop": "^11.0.10",
169
170
  "react-international-phone": "^4.8.0",
170
- "ts-morph": "^28.0.0",
171
171
  "tsup": "^8.5.1",
172
172
  "tsx": "^4.21.0",
173
173
  "typescript": "^5",
@@ -190,7 +190,7 @@
190
190
  "@radix-ui/react-toggle": "^1.1.18",
191
191
  "@radix-ui/react-toggle-group": "^1.1.19",
192
192
  "@radix-ui/react-tooltip": "^1.2.16",
193
- "@rojaostudio/ds-core": "1.1.0-next.1"
193
+ "@rojaostudio/ds-core": "1.1.0-next.10"
194
194
  },
195
195
  "scripts": {
196
196
  "build": "pnpm run build:tokens && pnpm run build:themes && pnpm run build:rds && pnpm run build:native && tsup",
@@ -207,6 +207,6 @@
207
207
  "lint": "eslint .",
208
208
  "build:brands": "tsx scripts/build-brands.ts",
209
209
  "build:rds": "tsx scripts/build-rds-tokens.ts",
210
- "migrate:consumer": "tsx scripts/migrate-consumer.ts"
210
+ "migrate:consumer": "tsx ../codemod/src/cli.ts"
211
211
  }
212
212
  }
package/styles/base.css CHANGED
@@ -26,9 +26,17 @@
26
26
  Run `pnpm build:tokens` in the DS to regenerate.
27
27
  ───────────────────────────────────────────────────────────── */
28
28
 
29
+ /* Cascade layers, lowest first: the same order rds.css declares, whichever of the two is imported first.
30
+ Everything of this file except Tailwind's @utility and @theme blocks (which Tailwind wants at the top level)
31
+ lives in rds.legacy, below rds.theme: with rds.css also imported, the 2.0 variables win wherever the names
32
+ collide (--surface-page, --text-muted, --border-default, --radius-card, --z-modal, --space-*, --toast-text…)
33
+ and the h1–h6 rule loses to the 2.0 components. */
34
+ @layer rds.legacy, rds.theme, rds.tokens, rds.components;
35
+
29
36
  /* Primitives — auto-generated from tokens/index.ts */
30
- @import "./_primitives.generated.css";
37
+ @import "./_primitives.generated.css" layer(rds.legacy);
31
38
 
39
+ @layer rds.legacy {
32
40
  /* ── CSS Custom Properties — light (default, neutral theme) ── */
33
41
  /* .ds-scope: qualquer wrapper que precise recalcular tokens de COMPONENTE (ex.
34
42
  --option-tile-bg) sob um override local de token SEMÂNTICO (ex. --surface-default)
@@ -724,6 +732,7 @@ h1, h2, h3, h4, h5, h6 {
724
732
  .rojao-toast--enter-top, .rojao-toast--enter-bottom,
725
733
  .rojao-toast--exit-top, .rojao-toast--exit-bottom { animation: none; }
726
734
  }
735
+ } /* @layer rds.legacy */
727
736
 
728
737
  /* ── Control size utilities — h-control-sm/md/lg, size-control-sm/md/lg ── */
729
738
  @utility h-control-sm { height: var(--space-control-height-sm); }
@@ -925,6 +934,9 @@ h1, h2, h3, h4, h5, h6 {
925
934
  * sem ele, num botão com borda da mesma família de cor, o anel some dentro da
926
935
  * borda. E ele é desenhado com a cor da superfície, então funciona igual sobre
927
936
  * fundo claro e sobre o escuro do chrome.
937
+ *
938
+ * Stays in Tailwind's `base` layer, not in rds.legacy: it sets no variable, and in `base` Tailwind's utilities
939
+ * (`outline-none`) still win over it, as they did in 1.x. Both layers sit below the rds.* ones.
928
940
  */
929
941
  @layer base {
930
942
  :where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {