@manakind/ui-core 0.21.0 → 0.23.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 (101) hide show
  1. package/README.md +12 -4
  2. package/dist/button/button.css +16 -0
  3. package/dist/button/button.d.ts +10 -0
  4. package/dist/button/button.d.ts.map +1 -1
  5. package/dist/button/button.js +8 -6
  6. package/dist/button/button.js.map +1 -1
  7. package/dist/card/card.css +5 -0
  8. package/dist/card/card.d.ts +11 -2
  9. package/dist/card/card.d.ts.map +1 -1
  10. package/dist/card/card.js +2 -2
  11. package/dist/card/card.js.map +1 -1
  12. package/dist/card/index.d.ts +1 -1
  13. package/dist/card/index.d.ts.map +1 -1
  14. package/dist/card/index.js.map +1 -1
  15. package/dist/combobox/combobox.css +169 -2
  16. package/dist/combobox/combobox.d.ts +80 -15
  17. package/dist/combobox/combobox.d.ts.map +1 -1
  18. package/dist/combobox/combobox.js +309 -43
  19. package/dist/combobox/combobox.js.map +1 -1
  20. package/dist/combobox/index.d.ts +1 -1
  21. package/dist/combobox/index.d.ts.map +1 -1
  22. package/dist/combobox/index.js.map +1 -1
  23. package/dist/dialog/dialog.css +5 -0
  24. package/dist/dialog/dialog.d.ts +8 -1
  25. package/dist/dialog/dialog.d.ts.map +1 -1
  26. package/dist/dialog/dialog.js +2 -2
  27. package/dist/dialog/dialog.js.map +1 -1
  28. package/dist/dialog/index.d.ts +1 -1
  29. package/dist/dialog/index.d.ts.map +1 -1
  30. package/dist/fallback-glyphs.d.ts +1 -0
  31. package/dist/fallback-glyphs.d.ts.map +1 -1
  32. package/dist/fallback-glyphs.js +2 -0
  33. package/dist/fallback-glyphs.js.map +1 -1
  34. package/dist/index.d.ts +5 -1
  35. package/dist/index.d.ts.map +1 -1
  36. package/dist/index.js +5 -1
  37. package/dist/index.js.map +1 -1
  38. package/dist/layout/index.d.ts +2 -2
  39. package/dist/layout/index.d.ts.map +1 -1
  40. package/dist/layout/index.js +1 -1
  41. package/dist/layout/index.js.map +1 -1
  42. package/dist/layout/layout.css +134 -0
  43. package/dist/layout/layout.d.ts +66 -4
  44. package/dist/layout/layout.d.ts.map +1 -1
  45. package/dist/layout/layout.js +58 -10
  46. package/dist/layout/layout.js.map +1 -1
  47. package/dist/link/index.d.ts +3 -0
  48. package/dist/link/index.d.ts.map +1 -0
  49. package/dist/link/index.js +2 -0
  50. package/dist/link/index.js.map +1 -0
  51. package/dist/link/link.css +40 -0
  52. package/dist/link/link.css.d.ts +2 -0
  53. package/dist/link/link.d.ts +27 -0
  54. package/dist/link/link.d.ts.map +1 -0
  55. package/dist/link/link.js +17 -0
  56. package/dist/link/link.js.map +1 -0
  57. package/dist/scroll-area/index.d.ts +3 -0
  58. package/dist/scroll-area/index.d.ts.map +1 -0
  59. package/dist/scroll-area/index.js +2 -0
  60. package/dist/scroll-area/index.js.map +1 -0
  61. package/dist/scroll-area/scroll-area.css +26 -0
  62. package/dist/scroll-area/scroll-area.css.d.ts +2 -0
  63. package/dist/scroll-area/scroll-area.d.ts +26 -0
  64. package/dist/scroll-area/scroll-area.d.ts.map +1 -0
  65. package/dist/scroll-area/scroll-area.js +16 -0
  66. package/dist/scroll-area/scroll-area.js.map +1 -0
  67. package/dist/section/section.d.ts +8 -2
  68. package/dist/section/section.d.ts.map +1 -1
  69. package/dist/section/section.js +2 -2
  70. package/dist/section/section.js.map +1 -1
  71. package/dist/segment-group/segment-group.css +5 -0
  72. package/dist/segment-group/segment-group.d.ts +6 -1
  73. package/dist/segment-group/segment-group.d.ts.map +1 -1
  74. package/dist/segment-group/segment-group.js +2 -2
  75. package/dist/segment-group/segment-group.js.map +1 -1
  76. package/dist/spinner/index.d.ts +3 -0
  77. package/dist/spinner/index.d.ts.map +1 -0
  78. package/dist/spinner/index.js +2 -0
  79. package/dist/spinner/index.js.map +1 -0
  80. package/dist/spinner/spinner.css +36 -0
  81. package/dist/spinner/spinner.css.d.ts +2 -0
  82. package/dist/spinner/spinner.d.ts +25 -0
  83. package/dist/spinner/spinner.d.ts.map +1 -0
  84. package/dist/spinner/spinner.js +17 -0
  85. package/dist/spinner/spinner.js.map +1 -0
  86. package/dist/sticky/index.d.ts +3 -0
  87. package/dist/sticky/index.d.ts.map +1 -0
  88. package/dist/sticky/index.js +2 -0
  89. package/dist/sticky/index.js.map +1 -0
  90. package/dist/sticky/sticky.css +92 -0
  91. package/dist/sticky/sticky.css.d.ts +2 -0
  92. package/dist/sticky/sticky.d.ts +47 -0
  93. package/dist/sticky/sticky.d.ts.map +1 -0
  94. package/dist/sticky/sticky.js +20 -0
  95. package/dist/sticky/sticky.js.map +1 -0
  96. package/dist/text/text.css +20 -0
  97. package/dist/text/text.d.ts +13 -5
  98. package/dist/text/text.d.ts.map +1 -1
  99. package/dist/text/text.js +25 -6
  100. package/dist/text/text.js.map +1 -1
  101. package/package.json +37 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/scroll-area/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC"}
@@ -0,0 +1,26 @@
1
+ @layer components {
2
+ /*
3
+ * `min-height: 0` / `min-width: 0` let the box shrink below its content
4
+ * inside a flex or grid parent, which is what makes the content scroll
5
+ * instead of the parent growing. A sideways scroller hides the other
6
+ * axis, as the long-words rule asks of every one.
7
+ */
8
+ .ds-scroll-area {
9
+ min-width: 0;
10
+ min-height: 0;
11
+
12
+ &.ds-scroll-area--y {
13
+ overflow-y: auto;
14
+ }
15
+
16
+ &.ds-scroll-area--x {
17
+ overflow-x: auto;
18
+ overflow-y: hidden;
19
+ }
20
+
21
+ &:focus-visible {
22
+ outline: 2px solid var(--ds-link-focus-ring);
23
+ outline-offset: 2px;
24
+ }
25
+ }
26
+ }
@@ -0,0 +1,2 @@
1
+ /* AUTOGENERATED: types for the stylesheet beside it. */
2
+ export {};
@@ -0,0 +1,26 @@
1
+ import { ark } from '@ark-ui/react/factory';
2
+ import type { ComponentProps } from 'react';
3
+ import './scroll-area.css';
4
+ /** The axis a scroll area scrolls along. */
5
+ export type ScrollAxis = 'x' | 'y';
6
+ export interface ScrollAreaProps extends ComponentProps<typeof ark.div> {
7
+ /** `y` (the default) scrolls a column that outgrows its box; `x` a row that outgrows its width. */
8
+ axis?: ScrollAxis;
9
+ /**
10
+ * The region's name. A scroller with nothing focusable inside cannot be
11
+ * reached from the keyboard, so naming it makes it a focusable region
12
+ * that the arrow keys scroll; leave it out when a control inside takes
13
+ * focus already.
14
+ */
15
+ label?: string;
16
+ }
17
+ /**
18
+ * A box whose content scrolls inside it instead of widening the page.
19
+ *
20
+ * A tree or a grid wider than its card scrolls sideways; a list that must
21
+ * not outgrow its panel scrolls down. The box is sized by its parent (a
22
+ * dialog body, a popover, a Frame): the scroll area only keeps its content
23
+ * inside. Renders a `div`; pass `asChild` to scroll your own element.
24
+ */
25
+ export declare function ScrollArea({ axis, label, className, children, ...props }: ScrollAreaProps): import("react/jsx-runtime").JSX.Element;
26
+ //# sourceMappingURL=scroll-area.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-area.d.ts","sourceRoot":"","sources":["../../src/scroll-area/scroll-area.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,mBAAmB,CAAC;AAG3B,4CAA4C;AAC5C,MAAM,MAAM,UAAU,GAAG,GAAG,GAAG,GAAG,CAAC;AAEnC,MAAM,WAAW,eAAgB,SAAQ,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC;IACrE,mGAAmG;IACnG,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,EAAE,IAAU,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,EAAE,eAAe,2CAY/F"}
@@ -0,0 +1,16 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ark } from '@ark-ui/react/factory';
3
+ import './scroll-area.css';
4
+ import { cx } from '../cx';
5
+ /**
6
+ * A box whose content scrolls inside it instead of widening the page.
7
+ *
8
+ * A tree or a grid wider than its card scrolls sideways; a list that must
9
+ * not outgrow its panel scrolls down. The box is sized by its parent (a
10
+ * dialog body, a popover, a Frame): the scroll area only keeps its content
11
+ * inside. Renders a `div`; pass `asChild` to scroll your own element.
12
+ */
13
+ export function ScrollArea({ axis = 'y', label, className, children, ...props }) {
14
+ return (_jsx(ark.div, { role: label ? 'region' : undefined, "aria-label": label, tabIndex: label ? 0 : undefined, className: cx('ds-scroll-area', `ds-scroll-area--${axis}`, className), ...props, children: children }));
15
+ }
16
+ //# sourceMappingURL=scroll-area.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scroll-area.js","sourceRoot":"","sources":["../../src/scroll-area/scroll-area.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,mBAAmB,CAAC;AAC3B,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAiB3B;;;;;;;GAOG;AACH,MAAM,UAAU,UAAU,CAAC,EAAE,IAAI,GAAG,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAmB;IAC9F,OAAO,CACL,KAAC,GAAG,CAAC,GAAG,IACN,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,gBACtB,KAAK,EACjB,QAAQ,EAAE,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,EAC/B,SAAS,EAAE,EAAE,CAAC,gBAAgB,EAAE,mBAAmB,IAAI,EAAE,EAAE,SAAS,CAAC,KACjE,KAAK,YAER,QAAQ,GACD,CACX,CAAC;AACJ,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { ark } from '@ark-ui/react/factory';
2
- import { type ComponentProps, type ReactNode } from 'react';
2
+ import { type ComponentProps, type ReactNode, type Ref } from 'react';
3
3
  import './section.css';
4
4
  import { type HeadingLevel } from '../text/text';
5
5
  /**
@@ -18,6 +18,12 @@ export interface SectionProps extends Omit<ComponentProps<typeof ark.section>, '
18
18
  description?: ReactNode;
19
19
  /** Controls beside the title: a "See all" link, a filter. */
20
20
  actions?: ReactNode;
21
+ /**
22
+ * The heading element, for moving focus to the region after a change
23
+ * inside it (a deletion that removed the focused row). The heading takes
24
+ * `tabIndex={-1}` so it can take focus without entering the tab order.
25
+ */
26
+ titleRef?: Ref<HTMLHeadingElement>;
21
27
  }
22
28
  /**
23
29
  * A titled region of a page.
@@ -27,5 +33,5 @@ export interface SectionProps extends Omit<ComponentProps<typeof ark.section>, '
27
33
  * title and description with the actions beside them; the children follow
28
34
  * at the section's own gap, tighter than the page's.
29
35
  */
30
- export declare function Section({ title, titleLevel, description, actions, className, children, ...props }: SectionProps): import("react/jsx-runtime").JSX.Element;
36
+ export declare function Section({ title, titleLevel, description, actions, titleRef, className, children, ...props }: SectionProps): import("react/jsx-runtime").JSX.Element;
31
37
  //# sourceMappingURL=section.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"section.d.ts","sourceRoot":"","sources":["../../src/section/section.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAE,KAAK,cAAc,EAAE,KAAK,SAAS,EAAS,MAAM,OAAO,CAAC;AACnE,OAAO,eAAe,CAAC;AAEvB,OAAO,EAAW,KAAK,YAAY,EAAQ,MAAM,cAAc,CAAC;AAEhE;;;GAGG;AACH,MAAM,WAAW,YACf,SAAQ,IAAI,CAAC,cAAc,CAAC,OAAO,GAAG,CAAC,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IACrE,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8 @@ import { Heading, Text } from '../text/text';
12
12
  * title and description with the actions beside them; the children follow
13
13
  * at the section's own gap, tighter than the page's.
14
14
  */
15
- export function Section({ title, titleLevel = 2, description, actions, className, children, ...props }) {
15
+ export function Section({ title, titleLevel = 2, description, actions, titleRef, className, children, ...props }) {
16
16
  const titleId = useId();
17
- return (_jsxs(ark.section, { "aria-labelledby": titleId, className: cx('ds-section', className), ...props, children: [_jsxs("div", { className: "ds-section__header", children: [_jsxs("div", { className: "ds-section__heading", children: [_jsx(Heading, { level: titleLevel, size: "xl", id: titleId, className: "ds-section__title", children: title }), description ? (_jsx(Text, { tone: "muted", className: "ds-section__description", children: description })) : null] }), actions ? _jsx("div", { className: "ds-section__actions", children: actions }) : null] }), children] }));
17
+ return (_jsxs(ark.section, { "aria-labelledby": titleId, className: cx('ds-section', className), ...props, children: [_jsxs("div", { className: "ds-section__header", children: [_jsxs("div", { className: "ds-section__heading", children: [_jsx(Heading, { level: titleLevel, size: "xl", id: titleId, ref: titleRef, tabIndex: titleRef ? -1 : undefined, className: "ds-section__title", children: title }), description ? (_jsx(Text, { tone: "muted", className: "ds-section__description", children: description })) : null] }), actions ? _jsx("div", { className: "ds-section__actions", children: actions }) : null] }), children] }));
18
18
  }
19
19
  //# sourceMappingURL=section.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"section.js","sourceRoot":"","sources":["../../src/section/section.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,EAAuC,KAAK,EAAE,MAAM,OAAO,CAAC;AACnE,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,OAAO,EAAqB,IAAI,EAAE,MAAM,cAAc,CAAC;AAqBhE;;;;;;;GAOG;AACH,MAAM,UAAU,OAAO,CAAC,EACtB,KAAK,EACL,UAAU,GAAG,CAAC,EACd,WAAW,EACX,OAAO,EACP,SAAS,EACT,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,uBAAkB,OAAO,EAAE,SAAS,EAAE,EAAE,CAAC,YAAY,EAAE,SAAS,CAAC,KAAM,KAAK,aACtF,eAAK,SAAS,EAAC,oBAAoB,aACjC,eAAK,SAAS,EAAC,qBAAqB,aAClC,KAAC,OAAO,IACN,KAAK,EAAE,UAAU,EACjB,IAAI,EAAC,IAAI,EACT,EAAE,EAAE,OAAO,EACX,GAAG,EAAE,QAAQ,EACb,QAAQ,EAAE,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,EACnC,SAAS,EAAC,mBAAmB,YAE5B,KAAK,GACE,EACT,WAAW,CAAC,CAAC,CAAC,CACb,KAAC,IAAI,IAAC,IAAI,EAAC,OAAO,EAAC,SAAS,EAAC,yBAAyB,YACnD,WAAW,GACP,CACR,CAAC,CAAC,CAAC,IAAI,IACJ,EACL,OAAO,CAAC,CAAC,CAAC,cAAK,SAAS,EAAC,qBAAqB,YAAE,OAAO,GAAO,CAAC,CAAC,CAAC,IAAI,IAClE,EACL,QAAQ,IACG,CACf,CAAC;AACJ,CAAC"}
@@ -106,6 +106,11 @@
106
106
  * width, so only a word wider than the whole track breaks inside its
107
107
  * segment, as the long-words rule asks of every component.
108
108
  */
109
+ &.ds-segment-group--full-width {
110
+ display: flex;
111
+ width: 100%;
112
+ }
113
+
109
114
  &.ds-segment-group--fit-content {
110
115
  & .ds-segment-group__track {
111
116
  display: flex;
@@ -59,6 +59,11 @@ export type SegmentGroupProps = SegmentGroupName & {
59
59
  * short items (six t-shirt sizes) that has to fit a phone.
60
60
  */
61
61
  density?: 'default' | 'dense';
62
+ /**
63
+ * Whether the group takes the whole width of its row, the track with it:
64
+ * a state or effort choice in a form, level with the fields above it.
65
+ */
66
+ fullWidth?: boolean;
62
67
  /** Disable every segment. The checked one keeps showing which is set. */
63
68
  disabled?: boolean;
64
69
  /** Name for native form participation through the hidden radio inputs. */
@@ -93,6 +98,6 @@ export type SegmentGroupProps = SegmentGroupName & {
93
98
  * want a `Select`. Panels that change with the choice are `Tabs`; a segment
94
99
  * group changes a value, not what is on the page.
95
100
  */
96
- export declare function SegmentGroup({ label, items, value, defaultValue, onValueChange, size, fit, density, disabled, name, className, 'aria-label': ariaLabel, }: SegmentGroupProps): import("react/jsx-runtime").JSX.Element;
101
+ export declare function SegmentGroup({ label, items, value, defaultValue, onValueChange, size, fit, density, fullWidth, disabled, name, className, 'aria-label': ariaLabel, }: SegmentGroupProps): import("react/jsx-runtime").JSX.Element;
97
102
  export {};
98
103
  //# sourceMappingURL=segment-group.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"segment-group.d.ts","sourceRoot":"","sources":["../../src/segment-group/segment-group.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAC/C,OAAO,qBAAqB,CAAC;AAG7B,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,WAAW,gBAAgB;IAC/B,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,kGAAkG;IAClG,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,KAAK,gBAAgB,GACjB;IACE,oEAAoE;IACpE,KAAK,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GACD;IACE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,2FAA2F;IAC3F,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEN,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG;IACjD,qDAAqD;IACrD,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,4EAA4E;IAC5E,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC9B,yEAAyE;IACzE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,KAAK,EACL,YAAY,EACZ,aAAa,EACb,IAAW,EACX,GAAa,EACb,OAAmB,EACnB,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,YAAY,EAAE,SAAS,GACxB,EAAE,iBAAiB,2CAsEnB"}
1
+ {"version":3,"file":"segment-group.d.ts","sourceRoot":"","sources":["../../src/segment-group/segment-group.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,SAAS,EAAU,MAAM,OAAO,CAAC;AAC/C,OAAO,qBAAqB,CAAC;AAG7B,MAAM,MAAM,gBAAgB,GAAG,IAAI,GAAG,IAAI,CAAC;AAE3C,MAAM,WAAW,gBAAgB;IAC/B,0EAA0E;IAC1E,KAAK,EAAE,MAAM,CAAC;IACd,kGAAkG;IAClG,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED;;;;GAIG;AACH,KAAK,gBAAgB,GACjB;IACE,oEAAoE;IACpE,KAAK,EAAE,SAAS,CAAC;IACjB;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB,GACD;IACE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,2FAA2F;IAC3F,YAAY,EAAE,MAAM,CAAC;CACtB,CAAC;AAEN,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,GAAG;IACjD,qDAAqD;IACrD,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,uCAAuC;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IACxC,4EAA4E;IAC5E,IAAI,CAAC,EAAE,gBAAgB,CAAC;IACxB;;;;;;OAMG;IACH,GAAG,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC1B;;;OAGG;IACH,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,CAAC;IAC9B;;;OAGG;IACH,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,yEAAyE;IACzE,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,0EAA0E;IAC1E,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,yEAAyE;IACzE,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AACH,wBAAgB,YAAY,CAAC,EAC3B,KAAK,EACL,KAAK,EACL,KAAK,EACL,YAAY,EACZ,aAAa,EACb,IAAW,EACX,GAAa,EACb,OAAmB,EACnB,SAAiB,EACjB,QAAQ,EACR,IAAI,EACJ,SAAS,EACT,YAAY,EAAE,SAAS,GACxB,EAAE,iBAAiB,2CAuEnB"}
@@ -30,7 +30,7 @@ import { cx } from '../cx';
30
30
  * want a `Select`. Panels that change with the choice are `Tabs`; a segment
31
31
  * group changes a value, not what is on the page.
32
32
  */
33
- export function SegmentGroup({ label, items, value, defaultValue, onValueChange, size = 'md', fit = 'equal', density = 'default', disabled, name, className, 'aria-label': ariaLabel, }) {
33
+ export function SegmentGroup({ label, items, value, defaultValue, onValueChange, size = 'md', fit = 'equal', density = 'default', fullWidth = false, disabled, name, className, 'aria-label': ariaLabel, }) {
34
34
  const rootRef = useRef(null);
35
35
  /*
36
36
  * Zag reports `null` only when the value is cleared through its API, which
@@ -59,6 +59,6 @@ export function SegmentGroup({ label, items, value, defaultValue, onValueChange,
59
59
  const visibleLabel = label &&
60
60
  (ariaLabel ? (_jsx("span", { className: "ds-segment-group__label", children: label })) : (_jsx(ArkSegmentGroup.Label, { className: "ds-segment-group__label", children: label })));
61
61
  const renderItem = (item) => (_jsxs(ArkSegmentGroup.Item, { value: item.value, disabled: item.disabled, className: "ds-segment-group__item", children: [_jsx(ArkSegmentGroup.ItemText, { className: "ds-segment-group__item-text", children: item.label }), _jsx(ArkSegmentGroup.ItemHiddenInput, {})] }, item.value));
62
- return (_jsxs(ArkSegmentGroup.Root, { ref: rootRef, className: cx('ds-segment-group', `ds-segment-group--${size}`, fit === 'content' && 'ds-segment-group--fit-content', density === 'dense' && 'ds-segment-group--dense', className), value: value, defaultValue: defaultValue, onValueChange: handleValueChange, disabled: disabled, name: name, orientation: "horizontal", "aria-label": ariaLabel, children: [visibleLabel, _jsx("div", { className: "ds-segment-group__track", children: items.map(renderItem) })] }));
62
+ return (_jsxs(ArkSegmentGroup.Root, { ref: rootRef, className: cx('ds-segment-group', `ds-segment-group--${size}`, fit === 'content' && 'ds-segment-group--fit-content', density === 'dense' && 'ds-segment-group--dense', fullWidth && 'ds-segment-group--full-width', className), value: value, defaultValue: defaultValue, onValueChange: handleValueChange, disabled: disabled, name: name, orientation: "horizontal", "aria-label": ariaLabel, children: [visibleLabel, _jsx("div", { className: "ds-segment-group__track", children: items.map(renderItem) })] }));
63
63
  }
64
64
  //# sourceMappingURL=segment-group.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"segment-group.js","sourceRoot":"","sources":["../../src/segment-group/segment-group.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,YAAY,IAAI,eAAe,EAAE,MAAM,6BAA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I,IACnB,GAAG,EAAE,OAAO,EACZ,SAAS,EAAE,EAAE,CACX,kBAAkB,EAClB,qBAAqB,IAAI,EAAE,EAC3B,GAAG,KAAK,SAAS,IAAI,+BAA+B,EACpD,OAAO,KAAK,OAAO,IAAI,yBAAyB,EAChD,SAAS,IAAI,8BAA8B,EAC3C,SAAS,CACV,EACD,KAAK,EAAE,KAAK,EACZ,YAAY,EAAE,YAAY,EAC1B,aAAa,EAAE,iBAAiB,EAChC,QAAQ,EAAE,QAAQ,EAClB,IAAI,EAAE,IAAI,EACV,WAAW,EAAC,YAAY,gBACZ,SAAS,aAEpB,YAAY,EACb,cAAK,SAAS,EAAC,yBAAyB,YAAE,KAAK,CAAC,GAAG,CAAC,UAAU,CAAC,GAAO,IACjD,CACxB,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type { SpinnerProps, SpinnerSize } from './spinner';
2
+ export { Spinner } from './spinner';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/spinner/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AAC3D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Spinner } from './spinner';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/spinner/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,36 @@
1
+ @layer components {
2
+ /*
3
+ * A ring with one open quarter. Button draws its own: that one sizes to
4
+ * the label's em and takes the label's colour, which the spinner keys
5
+ * (a fixed colour and three diameters) do not express. The stroke here is
6
+ * a tenth of the diameter so each size keeps the same proportion.
7
+ */
8
+ .ds-spinner {
9
+ --_spinner-size: var(--ds-spinner-size-md);
10
+
11
+ position: relative;
12
+ display: inline-block;
13
+ flex-shrink: 0;
14
+ box-sizing: border-box;
15
+ width: var(--_spinner-size);
16
+ height: var(--_spinner-size);
17
+ border: calc(var(--_spinner-size) / 10) solid var(--ds-spinner-color);
18
+ border-right-color: transparent;
19
+ border-radius: 50%;
20
+ animation: ds-spinner-spin 600ms linear infinite;
21
+
22
+ &.ds-spinner--sm {
23
+ --_spinner-size: var(--ds-spinner-size-sm);
24
+ }
25
+
26
+ &.ds-spinner--lg {
27
+ --_spinner-size: var(--ds-spinner-size-lg);
28
+ }
29
+ }
30
+
31
+ @keyframes ds-spinner-spin {
32
+ to {
33
+ transform: rotate(360deg);
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,2 @@
1
+ /* AUTOGENERATED: types for the stylesheet beside it. */
2
+ export {};
@@ -0,0 +1,25 @@
1
+ import type { ComponentProps } from 'react';
2
+ import './spinner.css';
3
+ /** The spinner's diameter: inside a control (sm), beside text (md), on its own in a region (lg). */
4
+ export type SpinnerSize = 'sm' | 'md' | 'lg';
5
+ export interface SpinnerProps extends ComponentProps<'div'> {
6
+ /** Defaults to `md`. */
7
+ size?: SpinnerSize;
8
+ /**
9
+ * What is loading, announced once as a status ("Loading goals"). Without
10
+ * it the spinner is hidden from assistive technology, for a region that
11
+ * already says it is busy (`aria-busy`) or a button that is `loading`.
12
+ */
13
+ label?: string;
14
+ }
15
+ /**
16
+ * The turning ring that says something is on its way.
17
+ *
18
+ * For a route or region still loading with nothing to show yet; a region
19
+ * that has a shape to promise uses `Skeleton` instead, and a button its own
20
+ * `loading`. The ring takes the spinner colour from the contract and keeps
21
+ * turning under `prefers-reduced-motion`, since a still ring would say the
22
+ * wait is over.
23
+ */
24
+ export declare function Spinner({ size, label, className, ...props }: SpinnerProps): import("react/jsx-runtime").JSX.Element;
25
+ //# sourceMappingURL=spinner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spinner.d.ts","sourceRoot":"","sources":["../../src/spinner/spinner.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,eAAe,CAAC;AAIvB,oGAAoG;AACpG,MAAM,MAAM,WAAW,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,CAAC;AAE7C,MAAM,WAAW,YAAa,SAAQ,cAAc,CAAC,KAAK,CAAC;IACzD,wBAAwB;IACxB,IAAI,CAAC,EAAE,WAAW,CAAC;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;;;;;;;GAQG;AACH,wBAAgB,OAAO,CAAC,EAAE,IAAW,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAE,EAAE,YAAY,2CAWhF"}
@@ -0,0 +1,17 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import './spinner.css';
3
+ import { cx } from '../cx';
4
+ import { VisuallyHidden } from '../visually-hidden/visually-hidden';
5
+ /**
6
+ * The turning ring that says something is on its way.
7
+ *
8
+ * For a route or region still loading with nothing to show yet; a region
9
+ * that has a shape to promise uses `Skeleton` instead, and a button its own
10
+ * `loading`. The ring takes the spinner colour from the contract and keeps
11
+ * turning under `prefers-reduced-motion`, since a still ring would say the
12
+ * wait is over.
13
+ */
14
+ export function Spinner({ size = 'md', label, className, ...props }) {
15
+ return (_jsx("div", { role: label ? 'status' : undefined, "aria-hidden": label ? undefined : 'true', className: cx('ds-spinner', `ds-spinner--${size}`, className), ...props, children: label ? _jsx(VisuallyHidden, { children: label }) : null }));
16
+ }
17
+ //# sourceMappingURL=spinner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"spinner.js","sourceRoot":"","sources":["../../src/spinner/spinner.tsx"],"names":[],"mappings":";AACA,OAAO,eAAe,CAAC;AACvB,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAC3B,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AAgBpE;;;;;;;;GAQG;AACH,MAAM,UAAU,OAAO,CAAC,EAAE,IAAI,GAAG,IAAI,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,KAAK,EAAgB;IAC/E,OAAO,CACL,cACE,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,SAAS,iBACrB,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,MAAM,EACvC,SAAS,EAAE,EAAE,CAAC,YAAY,EAAE,eAAe,IAAI,EAAE,EAAE,SAAS,CAAC,KACzD,KAAK,YAER,KAAK,CAAC,CAAC,CAAC,KAAC,cAAc,cAAE,KAAK,GAAkB,CAAC,CAAC,CAAC,IAAI,GACpD,CACP,CAAC;AACJ,CAAC"}
@@ -0,0 +1,3 @@
1
+ export type { StickyEdge, StickyProps, StickySurface } from './sticky';
2
+ export { Sticky } from './sticky';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/sticky/index.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACvE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { Sticky } from './sticky';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/sticky/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
@@ -0,0 +1,92 @@
1
+ @layer components {
2
+ /*
3
+ * The inset from the edge is a private property so the scroll variant can
4
+ * subtract it from the viewport's height. `z-index: 40` is the `sticky`
5
+ * layer (ds-config/scripts/stacking.ts).
6
+ */
7
+ .ds-sticky {
8
+ --_sticky-inset: 0px;
9
+ --_sticky-clearance: var(--ds-sticky-offset-bottom);
10
+
11
+ position: sticky;
12
+ z-index: 40;
13
+ box-sizing: border-box;
14
+ min-width: 0;
15
+ overflow-wrap: anywhere;
16
+
17
+ &.ds-sticky--top {
18
+ top: var(--_sticky-inset);
19
+ }
20
+
21
+ &.ds-sticky--bottom {
22
+ --_sticky-clearance: var(--ds-sticky-offset-top);
23
+
24
+ bottom: var(--_sticky-inset);
25
+ }
26
+
27
+ &.ds-sticky--top.ds-sticky--offset {
28
+ --_sticky-inset: var(--ds-sticky-offset-top);
29
+ }
30
+
31
+ &.ds-sticky--bottom.ds-sticky--offset {
32
+ --_sticky-inset: var(--ds-sticky-offset-bottom);
33
+ }
34
+
35
+ /*
36
+ * Room for the element itself: the viewport less its inset from the
37
+ * edge it holds to and the chrome's clearance at the other edge.
38
+ */
39
+ &.ds-sticky--scroll {
40
+ max-height: calc(100dvh - var(--_sticky-inset) - var(--_sticky-clearance));
41
+ overflow-y: auto;
42
+ }
43
+
44
+ &.ds-sticky--surface-canvas {
45
+ padding-block: var(--ds-sticky-padding-block);
46
+ background-color: var(--ds-sticky-canvas-bg);
47
+ }
48
+
49
+ &.ds-sticky--surface-raised {
50
+ padding-block: var(--ds-sticky-padding-block);
51
+ background-color: var(--ds-sticky-raised-bg);
52
+ box-shadow: var(--ds-sticky-raised-shadow);
53
+ }
54
+
55
+ &.ds-sticky--surface-raised.ds-sticky--top {
56
+ border-bottom: 1px solid var(--ds-sticky-raised-border);
57
+ }
58
+
59
+ &.ds-sticky--surface-raised.ds-sticky--bottom {
60
+ border-top: 1px solid var(--ds-sticky-raised-border);
61
+ }
62
+ }
63
+
64
+ /*
65
+ * Below the step it sticks from, the element stays in the flow. The
66
+ * breakpoints are the viewport tokens, written as literals because
67
+ * `@media` cannot read a custom property (`check:breakpoints`).
68
+ */
69
+ @media (width < 40rem) {
70
+ .ds-sticky--from-sm {
71
+ position: static;
72
+ }
73
+ }
74
+
75
+ @media (width < 48rem) {
76
+ .ds-sticky--from-md {
77
+ position: static;
78
+ }
79
+ }
80
+
81
+ @media (width < 64rem) {
82
+ .ds-sticky--from-lg {
83
+ position: static;
84
+ }
85
+ }
86
+
87
+ @media (width < 80rem) {
88
+ .ds-sticky--from-xl {
89
+ position: static;
90
+ }
91
+ }
92
+ }
@@ -0,0 +1,2 @@
1
+ /* AUTOGENERATED: types for the stylesheet beside it. */
2
+ export {};
@@ -0,0 +1,47 @@
1
+ import { ark } from '@ark-ui/react/factory';
2
+ import type { ComponentProps } from 'react';
3
+ import './sticky.css';
4
+ import type { Breakpoint } from '../layout/layout';
5
+ /** The viewport edge a sticky element holds to while the page scrolls past it. */
6
+ export type StickyEdge = 'top' | 'bottom';
7
+ /**
8
+ * What a sticky element paints behind itself. `none` leaves the children
9
+ * to draw their own surface (a card); `canvas` paints the page's canvas so
10
+ * content scrolling under it is covered, with the bar's block inset;
11
+ * `raised` is the chrome's surface with a hairline and shadow on the side
12
+ * facing the page.
13
+ */
14
+ export type StickySurface = 'none' | 'canvas' | 'raised';
15
+ export interface StickyProps extends ComponentProps<typeof ark.div> {
16
+ /** The edge it holds to. Defaults to `top`. */
17
+ edge?: StickyEdge;
18
+ /**
19
+ * Keep clear of the app's chrome: under the header at the top
20
+ * (`--ds-sticky-offset-top`), above the viewport's edge at the bottom
21
+ * (`--ds-sticky-offset-bottom`). Off by default, for the header itself.
22
+ */
23
+ offset?: boolean;
24
+ /** Stick only from this viewport step up; stay in the flow on narrower viewports. */
25
+ from?: Breakpoint;
26
+ /**
27
+ * Scroll inside its own box when taller than the room it holds, instead
28
+ * of pushing past the viewport: a pinned aside longer than the screen.
29
+ */
30
+ scroll?: boolean;
31
+ /** What it paints behind itself. Defaults to `none`. */
32
+ surface?: StickySurface;
33
+ }
34
+ /**
35
+ * An element that holds to an edge of the viewport while the page scrolls
36
+ * past it: the app's header, a filter row under it, a bar of bulk actions
37
+ * at the foot of a list, an aside pinned beside a long form.
38
+ *
39
+ * Sticky, never fixed, so it stays in the page's flow and column: a bottom
40
+ * bar at the end of a page floats above the rows while they scroll and
41
+ * settles into its own place when the page ends, with nothing to clear.
42
+ * Sits on the `sticky` stacking layer, above the page's raised controls
43
+ * and below every overlay. Renders a `div`; pass `asChild` to stick your
44
+ * own element (`<Sticky asChild><header>…</header></Sticky>`).
45
+ */
46
+ export declare function Sticky({ edge, offset, from, scroll, surface, className, children, ...props }: StickyProps): import("react/jsx-runtime").JSX.Element;
47
+ //# sourceMappingURL=sticky.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sticky.d.ts","sourceRoot":"","sources":["../../src/sticky/sticky.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,OAAO,CAAC;AAC5C,OAAO,cAAc,CAAC;AAEtB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAEnD,kFAAkF;AAClF,MAAM,MAAM,UAAU,GAAG,KAAK,GAAG,QAAQ,CAAC;AAE1C;;;;;;GAMG;AACH,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAEzD,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,OAAO,GAAG,CAAC,GAAG,CAAC;IACjE,+CAA+C;IAC/C,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;;OAIG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qFAAqF;IACrF,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,wDAAwD;IACxD,OAAO,CAAC,EAAE,aAAa,CAAC;CACzB;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,MAAM,CAAC,EACrB,IAAY,EACZ,MAAc,EACd,IAAI,EACJ,MAAc,EACd,OAAgB,EAChB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,2CAiBb"}
@@ -0,0 +1,20 @@
1
+ import { jsx as _jsx } from "react/jsx-runtime";
2
+ import { ark } from '@ark-ui/react/factory';
3
+ import './sticky.css';
4
+ import { cx } from '../cx';
5
+ /**
6
+ * An element that holds to an edge of the viewport while the page scrolls
7
+ * past it: the app's header, a filter row under it, a bar of bulk actions
8
+ * at the foot of a list, an aside pinned beside a long form.
9
+ *
10
+ * Sticky, never fixed, so it stays in the page's flow and column: a bottom
11
+ * bar at the end of a page floats above the rows while they scroll and
12
+ * settles into its own place when the page ends, with nothing to clear.
13
+ * Sits on the `sticky` stacking layer, above the page's raised controls
14
+ * and below every overlay. Renders a `div`; pass `asChild` to stick your
15
+ * own element (`<Sticky asChild><header>…</header></Sticky>`).
16
+ */
17
+ export function Sticky({ edge = 'top', offset = false, from, scroll = false, surface = 'none', className, children, ...props }) {
18
+ return (_jsx(ark.div, { className: cx('ds-sticky', `ds-sticky--${edge}`, offset && 'ds-sticky--offset', from && `ds-sticky--from-${from}`, scroll && 'ds-sticky--scroll', surface !== 'none' && `ds-sticky--surface-${surface}`, className), ...props, children: children }));
19
+ }
20
+ //# sourceMappingURL=sticky.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sticky.js","sourceRoot":"","sources":["../../src/sticky/sticky.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAE5C,OAAO,cAAc,CAAC;AACtB,OAAO,EAAE,EAAE,EAAE,MAAM,OAAO,CAAC;AAmC3B;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,MAAM,CAAC,EACrB,IAAI,GAAG,KAAK,EACZ,MAAM,GAAG,KAAK,EACd,IAAI,EACJ,MAAM,GAAG,KAAK,EACd,OAAO,GAAG,MAAM,EAChB,SAAS,EACT,QAAQ,EACR,GAAG,KAAK,EACI;IACZ,OAAO,CACL,KAAC,GAAG,CAAC,GAAG,IACN,SAAS,EAAE,EAAE,CACX,WAAW,EACX,cAAc,IAAI,EAAE,EACpB,MAAM,IAAI,mBAAmB,EAC7B,IAAI,IAAI,mBAAmB,IAAI,EAAE,EACjC,MAAM,IAAI,mBAAmB,EAC7B,OAAO,KAAK,MAAM,IAAI,sBAAsB,OAAO,EAAE,EACrD,SAAS,CACV,KACG,KAAK,YAER,QAAQ,GACD,CACX,CAAC;AACJ,CAAC"}
@@ -95,6 +95,10 @@
95
95
  color: var(--ds-text-tone-info);
96
96
  }
97
97
 
98
+ &.ds-text--tone-accent {
99
+ color: var(--ds-text-tone-accent);
100
+ }
101
+
98
102
  &.ds-text--align-start {
99
103
  text-align: start;
100
104
  }
@@ -112,6 +116,22 @@
112
116
  letter-spacing: var(--ds-text-caps-letter-spacing);
113
117
  }
114
118
 
119
+ &.ds-text--mono {
120
+ font-family: var(--ds-text-mono-font-family);
121
+ }
122
+
123
+ &.ds-text--tabular {
124
+ font-variant-numeric: tabular-nums;
125
+ }
126
+
127
+ &.ds-text--preserve-breaks {
128
+ white-space: pre-wrap;
129
+ }
130
+
131
+ &.ds-text--strikethrough {
132
+ text-decoration: line-through;
133
+ }
134
+
115
135
  /*
116
136
  * Clipped by its own box, not kept from wrapping: `white-space: nowrap`
117
137
  * would let a long word push past the edge, which is the one thing the
@@ -7,9 +7,10 @@ export type TextWeight = 'regular' | 'medium' | 'semibold' | 'bold';
7
7
  /**
8
8
  * What the text is for, which decides its colour. `default` and `muted` are
9
9
  * the two text roles; the four statuses are for a line of text that reports
10
- * one, such as a validation message or a result.
10
+ * one, such as a validation message or a result; `accent` is the strong
11
+ * primary colour, for a short label the brand lends its colour to.
11
12
  */
12
- export type TextTone = 'default' | 'muted' | 'success' | 'warning' | 'danger' | 'info';
13
+ export type TextTone = 'default' | 'muted' | 'success' | 'warning' | 'danger' | 'info' | 'accent';
13
14
  export type TextAlign = 'start' | 'center' | 'end';
14
15
  /**
15
16
  * The elements `Text` renders: the ones whose attributes are a paragraph's.
@@ -18,8 +19,9 @@ export type TextAlign = 'start' | 'center' | 'end';
18
19
  * a component reference would be stringified and thrown. An element with
19
20
  * attributes of its own (`label` with `htmlFor`, `time` with `dateTime`, an
20
21
  * `output`) goes through `asChild`, which keeps that element's own props.
22
+ * `code` and `kbd` take the monospace face.
21
23
  */
22
- export type TextTag = 'p' | 'span' | 'div' | 'strong' | 'em' | 'small' | 'li' | 'dt' | 'dd' | 'figcaption';
24
+ export type TextTag = 'p' | 'span' | 'div' | 'strong' | 'em' | 'small' | 'li' | 'dt' | 'dd' | 'figcaption' | 'code' | 'kbd';
23
25
  export interface TextStyleProps {
24
26
  /** Step of the type scale. Defaults to `md`, body text. */
25
27
  size?: TextSize;
@@ -35,6 +37,12 @@ export interface TextStyleProps {
35
37
  * so a long word still breaks instead of pushing past the edge.
36
38
  */
37
39
  truncate?: boolean | number;
40
+ /** Digits of equal width, so figures in a column or a count that ticks line up. */
41
+ tabular?: boolean;
42
+ /** Keep the line breaks the text was written with: a description, a reflection, a note. */
43
+ preserveBreaks?: boolean;
44
+ /** A line through the text: a milestone reached, a move no longer on the list. */
45
+ strikethrough?: boolean;
38
46
  }
39
47
  export interface TextProps extends ComponentProps<typeof ark.p>, TextStyleProps {
40
48
  /** Element to render. Defaults to `p`. */
@@ -55,7 +63,7 @@ export interface TextProps extends ComponentProps<typeof ark.p>, TextStyleProps
55
63
  * tokens rather than per element. Renders a `p`; pick another tag with `as`,
56
64
  * or pass `asChild` to style an element of your own.
57
65
  */
58
- export declare function Text({ as, size, weight, tone, align, truncate, caps, className, style, children, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
66
+ export declare function Text({ as, size, weight, tone, align, truncate, tabular, preserveBreaks, strikethrough, caps, className, style, children, ...props }: TextProps): import("react/jsx-runtime").JSX.Element;
59
67
  export type HeadingLevel = 1 | 2 | 3 | 4 | 5 | 6;
60
68
  export interface HeadingProps extends ComponentProps<typeof ark.h2>, TextStyleProps {
61
69
  /**
@@ -74,5 +82,5 @@ export interface HeadingProps extends ComponentProps<typeof ark.h2>, TextStylePr
74
82
  * contract. Pass `asChild` to style a heading element of your own, say one
75
83
  * a library renders.
76
84
  */
77
- export declare function Heading({ level, size, weight, tone, align, truncate, className, style, children, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
85
+ export declare function Heading({ level, size, weight, tone, align, truncate, tabular, preserveBreaks, strikethrough, className, style, children, ...props }: HeadingProps): import("react/jsx-runtime").JSX.Element;
78
86
  //# sourceMappingURL=text.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"text.d.ts","sourceRoot":"","sources":["../../src/text/text.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,GAAG,EAAE,MAAM,uBAAuB,CAAC;AAC5C,OAAO,KAAK,EAAE,cAAc,EAAiB,MAAM,OAAO,CAAC;AAC3D,OAAO,YAAY,CAAC;AAGpB,sDAAsD;AACtD,MAAM,MAAM,QAAQ,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,CAAC;AAEhF,MAAM,MAAM,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,CAAC;AAEpE;;;;GAIG;AACH,MAAM,MAAM,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;AAEvF,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEnD;;;;;;;GAOG;AACH,MAAM,MAAM,OAAO,GACf,GAAG,GACH,MAAM,GACN,KAAK,GACL,QAAQ,GACR,IAAI,GACJ,OAAO,GACP,IAAI,GACJ,IAAI,GACJ,IAAI,GACJ,YAAY,CAAC;AAEjB,MAAM,WAAW,cAAc;IAC7B,2DAA2D;IAC3D,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,4EAA4E;IAC5E,MAAM,CAAC,EAAE,UAAU,CAAC;IACpB,gDAAgD;IAChD,IAAI,CAAC,EAAE,QAAQ,CAAC;IAChB,uEAAuE;IACvE,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB;;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