@oddmash/ui 0.5.0 → 0.6.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.
package/README.md CHANGED
@@ -32,6 +32,6 @@ Oddmash UI is for focused tools such as Interaction Inspector: products that nee
32
32
 
33
33
  ## Current scope
34
34
 
35
- Oddmash UI is under active pre-1.0 development. Version 0.5.0 expands the shared library with documentation, landing, navigation and feedback components. React 18.3.1 and React 19 remain supported.
35
+ Oddmash UI is under active pre-1.0 development. Version 0.6.0 adds semantic state badges, consistent native range styling and an optional localized command dismiss action alongside improvements to documentation navigation and code copying. React 18.3.1 and React 19 remain supported.
36
36
 
37
37
  [Docs](https://oddmash.github.io/oddmash-ui/) · [npm](https://www.npmjs.com/package/@oddmash/ui) · [GitHub](https://github.com/Oddmash/oddmash-ui) · [Contributor guide](CONTRIBUTING.md) · [MIT License](LICENSE)
package/dist/alert.js CHANGED
@@ -2,9 +2,9 @@
2
2
  import {
3
3
  Alert,
4
4
  AlertDialog
5
- } from "./chunk-2H7CEOL5.js";
6
- import "./chunk-A3PPKK5J.js";
5
+ } from "./chunk-TZHTKOPH.js";
7
6
  import "./chunk-ME34NDSX.js";
7
+ import "./chunk-A3PPKK5J.js";
8
8
  import "./chunk-54STG2JB.js";
9
9
  export {
10
10
  Alert,
package/dist/badge.d.ts CHANGED
@@ -2,10 +2,10 @@ import * as react from 'react';
2
2
  import { ComponentPropsWithoutRef } from 'react';
3
3
 
4
4
  type BadgeProps = ComponentPropsWithoutRef<'span'> & {
5
- tone?: 'neutral' | 'accent';
5
+ tone?: 'neutral' | 'accent' | 'success' | 'warning' | 'danger' | 'error' | 'info' | 'active';
6
6
  };
7
7
  declare const Badge: react.ForwardRefExoticComponent<Omit<react.DetailedHTMLProps<react.HTMLAttributes<HTMLSpanElement>, HTMLSpanElement>, "ref"> & {
8
- tone?: "neutral" | "accent";
8
+ tone?: "neutral" | "accent" | "success" | "warning" | "danger" | "error" | "info" | "active";
9
9
  } & react.RefAttributes<HTMLSpanElement>>;
10
10
 
11
11
  export { Badge };
@@ -11,6 +11,9 @@ var tokens = {
11
11
  "color.accent-hover": "var(--om-semantic-color-accent-hover)",
12
12
  "color.on-accent": "var(--om-semantic-color-on-accent)",
13
13
  "color.danger": "var(--om-semantic-color-danger)",
14
+ "color.success": "var(--om-semantic-color-success)",
15
+ "color.warning": "var(--om-semantic-color-warning)",
16
+ "color.info": "var(--om-semantic-color-info)",
14
17
  "color.focus": "var(--om-semantic-color-focus)",
15
18
  "color.border-subtle": "var(--om-semantic-color-border-subtle)",
16
19
  "color.action": "var(--om-semantic-color-action)",
@@ -110,11 +110,6 @@ var observeActiveHeading = (content, headingIds, onActiveChange, { offset = 0 }
110
110
  frame = void 0;
111
111
  if (disposed) return;
112
112
  const sections = headings();
113
- const bottom = view.scrollY > 0 && view.scrollY + view.innerHeight >= doc.documentElement.scrollHeight - 2;
114
- if (bottom) {
115
- publish(sections.at(-1)?.id);
116
- return;
117
- }
118
113
  const current = sections.slice().reverse().find((heading) => {
119
114
  const margin = Number.parseFloat(view.getComputedStyle(heading).scrollMarginTop) || 0;
120
115
  return heading.getBoundingClientRect().top <= Math.max(offset, margin) + 24;
@@ -1,11 +1,15 @@
1
1
  "use client";
2
2
  import {
3
3
  Dialog,
4
+ DialogClose,
4
5
  DialogContent,
5
6
  DialogDescription,
6
7
  DialogTitle,
7
8
  DialogTrigger
8
9
  } from "./chunk-ME34NDSX.js";
10
+ import {
11
+ Button
12
+ } from "./chunk-A3PPKK5J.js";
9
13
  import {
10
14
  Input
11
15
  } from "./chunk-5NGRPREI.js";
@@ -20,6 +24,7 @@ var CommandPalette = ({
20
24
  description,
21
25
  searchLabel,
22
26
  emptyLabel,
27
+ dismissLabel,
23
28
  items,
24
29
  theme,
25
30
  container,
@@ -144,7 +149,8 @@ var CommandPalette = ({
144
149
  /* @__PURE__ */ jsx("div", { "aria-hidden": "true", className: "om-command-group-label", children: group.label }),
145
150
  group.entries.map(renderOption)
146
151
  ] }, group.label) : group.entries.map(renderOption)) }),
147
- !list.length && /* @__PURE__ */ jsx("p", { role: "status", children: emptyLabel })
152
+ !list.length && /* @__PURE__ */ jsx("p", { role: "status", children: emptyLabel }),
153
+ dismissLabel && /* @__PURE__ */ jsx(DialogClose, { asChild: true, children: /* @__PURE__ */ jsx(Button, { variant: "secondary", className: "om-command-dismiss", children: dismissLabel }) })
148
154
  ] })
149
155
  ] });
150
156
  };
@@ -0,0 +1,57 @@
1
+ "use client";
2
+ import {
3
+ cx
4
+ } from "./chunk-54STG2JB.js";
5
+
6
+ // src/slider.tsx
7
+ import { forwardRef, useEffect, useImperativeHandle, useRef } from "react";
8
+ import { jsx } from "react/jsx-runtime";
9
+ var finiteNumber = (value, fallback) => {
10
+ const number = typeof value === "number" || typeof value === "string" && value.trim() ? Number(value) : NaN;
11
+ return Number.isFinite(number) ? number : fallback;
12
+ };
13
+ var progress = (value, min, max) => {
14
+ const lower = finiteNumber(min, 0);
15
+ const upper = finiteNumber(max, 100);
16
+ const current = finiteNumber(value, lower + (upper - lower) / 2);
17
+ return `${upper > lower ? Math.min(100, Math.max(0, (current - lower) / (upper - lower) * 100)) : 0}%`;
18
+ };
19
+ var syncProgress = (input) => {
20
+ input.style.setProperty("--om-slider-progress", progress(input.valueAsNumber, input.min, input.max));
21
+ };
22
+ var Slider = forwardRef(({ className, onInput, style, ...props }, ref) => {
23
+ const inputRef = useRef(null);
24
+ useImperativeHandle(ref, () => inputRef.current, []);
25
+ useEffect(() => {
26
+ if (inputRef.current) syncProgress(inputRef.current);
27
+ });
28
+ useEffect(() => {
29
+ const input = inputRef.current;
30
+ const form = input?.form;
31
+ if (!input || !form) return;
32
+ const reset = () => queueMicrotask(() => {
33
+ if (inputRef.current === input) syncProgress(input);
34
+ });
35
+ form.addEventListener("reset", reset);
36
+ return () => form.removeEventListener("reset", reset);
37
+ }, [props.form]);
38
+ return /* @__PURE__ */ jsx(
39
+ "input",
40
+ {
41
+ ...props,
42
+ ref: inputRef,
43
+ type: "range",
44
+ className: cx("om-slider", className),
45
+ style: { ...style, "--om-slider-progress": progress(props.value ?? props.defaultValue, props.min, props.max) },
46
+ onInput: (event) => {
47
+ if (props.value == null) syncProgress(event.currentTarget);
48
+ onInput?.(event);
49
+ }
50
+ }
51
+ );
52
+ });
53
+ Slider.displayName = "Slider";
54
+
55
+ export {
56
+ Slider
57
+ };
@@ -16,6 +16,7 @@ type CommandPaletteProps = {
16
16
  description: string;
17
17
  searchLabel: string;
18
18
  emptyLabel: string;
19
+ dismissLabel?: string;
19
20
  items: readonly CommandPaletteItem[];
20
21
  theme?: 'light' | 'dark';
21
22
  container?: HTMLElement | null;
@@ -26,7 +27,7 @@ type CommandPaletteProps = {
26
27
  maxResults?: number;
27
28
  filter?: (item: CommandPaletteItem, query: string) => boolean;
28
29
  };
29
- declare const CommandPalette: ({ trigger, title, description, searchLabel, emptyLabel, items, theme, container, open: controlledOpen, defaultOpen, onOpenChange, shortcut, maxResults, filter, }: CommandPaletteProps) => react.JSX.Element;
30
+ declare const CommandPalette: ({ trigger, title, description, searchLabel, emptyLabel, dismissLabel, items, theme, container, open: controlledOpen, defaultOpen, onOpenChange, shortcut, maxResults, filter, }: CommandPaletteProps) => react.JSX.Element;
30
31
 
31
32
  export { CommandPalette };
32
33
  export type { CommandPaletteItem, CommandPaletteProps };
@@ -1,8 +1,9 @@
1
1
  "use client";
2
2
  import {
3
3
  CommandPalette
4
- } from "./chunk-OJJPFVTC.js";
4
+ } from "./chunk-PG3JE6RB.js";
5
5
  import "./chunk-ME34NDSX.js";
6
+ import "./chunk-A3PPKK5J.js";
6
7
  import "./chunk-5NGRPREI.js";
7
8
  import "./chunk-54STG2JB.js";
8
9
  export {
@@ -4,7 +4,7 @@ import {
4
4
  TableOfContents,
5
5
  observeActiveHeading,
6
6
  useActiveHeading
7
- } from "./chunk-URS474NU.js";
7
+ } from "./chunk-OJKYDXOE.js";
8
8
  import "./chunk-A3PPKK5J.js";
9
9
  import "./chunk-54STG2JB.js";
10
10
  export {
package/dist/index.js CHANGED
@@ -2,7 +2,7 @@
2
2
  import {
3
3
  Alert,
4
4
  AlertDialog
5
- } from "./chunk-2H7CEOL5.js";
5
+ } from "./chunk-TZHTKOPH.js";
6
6
  import {
7
7
  Avatar
8
8
  } from "./chunk-SDU26SU7.js";
@@ -61,7 +61,7 @@ import {
61
61
  } from "./chunk-4YJMCYQW.js";
62
62
  import {
63
63
  tokens
64
- } from "./chunk-OGJ3KIBM.js";
64
+ } from "./chunk-LKCU6TJK.js";
65
65
  import {
66
66
  Textarea
67
67
  } from "./chunk-B3VPCEGX.js";
@@ -91,7 +91,7 @@ import {
91
91
  TableOfContents,
92
92
  observeActiveHeading,
93
93
  useActiveHeading
94
- } from "./chunk-URS474NU.js";
94
+ } from "./chunk-OJKYDXOE.js";
95
95
  import {
96
96
  ScrollHeader,
97
97
  observeScrollHeader
@@ -106,18 +106,12 @@ import {
106
106
  ClipboardButton,
107
107
  copyText
108
108
  } from "./chunk-77W2JTCK.js";
109
- import {
110
- Button,
111
- ButtonLink,
112
- IconButton,
113
- IconLink
114
- } from "./chunk-A3PPKK5J.js";
115
109
  import {
116
110
  Slider
117
- } from "./chunk-U2Y2DJXG.js";
111
+ } from "./chunk-ZRMUD4KO.js";
118
112
  import {
119
113
  CommandPalette
120
- } from "./chunk-OJJPFVTC.js";
114
+ } from "./chunk-PG3JE6RB.js";
121
115
  import {
122
116
  Dialog,
123
117
  DialogClose,
@@ -126,6 +120,12 @@ import {
126
120
  DialogTitle,
127
121
  DialogTrigger
128
122
  } from "./chunk-ME34NDSX.js";
123
+ import {
124
+ Button,
125
+ ButtonLink,
126
+ IconButton,
127
+ IconLink
128
+ } from "./chunk-A3PPKK5J.js";
129
129
  import {
130
130
  Input
131
131
  } from "./chunk-5NGRPREI.js";
package/dist/slider.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  Slider
4
- } from "./chunk-U2Y2DJXG.js";
4
+ } from "./chunk-ZRMUD4KO.js";
5
5
  import "./chunk-54STG2JB.js";
6
6
  export {
7
7
  Slider
package/dist/styles.css CHANGED
@@ -23,6 +23,8 @@
23
23
  --om-primitive-color-light-action-hover: #dedede;
24
24
  --om-primitive-color-focus-blue: #2459d3;
25
25
  --om-primitive-color-focus-blue-dark: #91afff;
26
+ --om-primitive-color-amber: #8a4b00;
27
+ --om-primitive-color-amber-light: #ffca80;
26
28
  --om-primitive-space-0: 0px;
27
29
  --om-primitive-space-2: 2px;
28
30
  --om-primitive-space-4: 4px;
@@ -62,6 +64,9 @@
62
64
  --om-semantic-color-accent-hover: var(--om-primitive-color-action-hover);
63
65
  --om-semantic-color-on-accent: var(--om-primitive-color-white);
64
66
  --om-semantic-color-danger: var(--om-primitive-color-danger);
67
+ --om-semantic-color-success: var(--om-primitive-color-mint);
68
+ --om-semantic-color-warning: var(--om-primitive-color-amber);
69
+ --om-semantic-color-info: var(--om-primitive-color-focus-blue);
65
70
  --om-semantic-color-focus: var(--om-primitive-color-focus-blue);
66
71
  --om-semantic-color-border-subtle: var(--om-primitive-color-soft-line);
67
72
  --om-semantic-color-action: var(--om-primitive-color-ink);
@@ -116,6 +121,8 @@
116
121
  --om-primitive-color-light-action-hover: #dedede;
117
122
  --om-primitive-color-focus-blue: #2459d3;
118
123
  --om-primitive-color-focus-blue-dark: #91afff;
124
+ --om-primitive-color-amber: #8a4b00;
125
+ --om-primitive-color-amber-light: #ffca80;
119
126
  --om-primitive-space-0: 0px;
120
127
  --om-primitive-space-2: 2px;
121
128
  --om-primitive-space-4: 4px;
@@ -155,6 +162,9 @@
155
162
  --om-semantic-color-accent-hover: var(--om-primitive-color-light-action-hover);
156
163
  --om-semantic-color-on-accent: var(--om-primitive-color-ink);
157
164
  --om-semantic-color-danger: var(--om-primitive-color-danger-dark);
165
+ --om-semantic-color-success: var(--om-primitive-color-pale-mint);
166
+ --om-semantic-color-warning: var(--om-primitive-color-amber-light);
167
+ --om-semantic-color-info: var(--om-primitive-color-focus-blue-dark);
158
168
  --om-semantic-color-focus: var(--om-primitive-color-focus-blue-dark);
159
169
  --om-semantic-color-border-subtle: var(--om-primitive-color-dark-soft-line);
160
170
  --om-semantic-color-action: var(--om-primitive-color-bright);
@@ -1718,6 +1728,9 @@ select.om-select optgroup {
1718
1728
  background: var(--om-semantic-color-bg);
1719
1729
  font-size: var(--om-semantic-font-small);
1720
1730
  font-weight: var(--om-semantic-font-weight);
1731
+ min-inline-size: 0;
1732
+ max-inline-size: 100%;
1733
+ overflow-wrap: anywhere;
1721
1734
  }
1722
1735
 
1723
1736
  .om-badge--accent {
@@ -1726,6 +1739,35 @@ select.om-select optgroup {
1726
1739
  border-color: color-mix(in srgb, var(--om-semantic-color-accent) 25%, var(--om-semantic-color-surface));
1727
1740
  }
1728
1741
 
1742
+ .om-badge--success {
1743
+ --om-badge-state-color: var(--om-semantic-color-success);
1744
+ }
1745
+
1746
+ .om-badge--warning {
1747
+ --om-badge-state-color: var(--om-semantic-color-warning);
1748
+ }
1749
+
1750
+ .om-badge--danger, .om-badge--error {
1751
+ --om-badge-state-color: var(--om-semantic-color-danger);
1752
+ }
1753
+
1754
+ .om-badge--info, .om-badge--active {
1755
+ --om-badge-state-color: var(--om-semantic-color-info);
1756
+ }
1757
+
1758
+ :is(.om-badge--success, .om-badge--warning, .om-badge--danger, .om-badge--error, .om-badge--info, .om-badge--active) {
1759
+ color: var(--om-badge-state-color);
1760
+ background: color-mix(in srgb, var(--om-badge-state-color) 9%, var(--om-semantic-color-surface));
1761
+ border-color: color-mix(in srgb, var(--om-badge-state-color) 25%, var(--om-semantic-color-surface));
1762
+ }
1763
+
1764
+ @media (forced-colors: active) {
1765
+ .om-badge {
1766
+ color: CanvasText;
1767
+ background: Canvas;
1768
+ border-color: CanvasText;
1769
+ }
1770
+ }
1729
1771
  .om-tabs-list {
1730
1772
  display: flex;
1731
1773
  gap: var(--om-semantic-space-lg);
@@ -1852,8 +1894,54 @@ select.om-select optgroup {
1852
1894
  min-height: var(--om-semantic-control-height);
1853
1895
  accent-color: var(--om-semantic-color-action);
1854
1896
  cursor: pointer;
1897
+ margin: 0;
1855
1898
  }
1856
1899
 
1900
+ @media not (forced-colors: active) {
1901
+ .om-slider {
1902
+ appearance: none;
1903
+ background: transparent;
1904
+ --om-slider-direction: to right;
1905
+ --om-slider-track: linear-gradient(
1906
+ var(--om-slider-direction),
1907
+ var(--om-semantic-color-action) 0 var(--om-slider-progress, 50%),
1908
+ color-mix(in srgb, var(--om-semantic-color-muted) 20%, var(--om-semantic-color-surface)) var(--om-slider-progress, 50%) 100%
1909
+ );
1910
+ }
1911
+ .om-slider:dir(rtl) {
1912
+ --om-slider-direction: to left;
1913
+ }
1914
+ .om-slider::-webkit-slider-runnable-track {
1915
+ block-size: var(--om-semantic-space-xs);
1916
+ border-radius: var(--om-semantic-radius-pill);
1917
+ background: var(--om-slider-track);
1918
+ box-shadow: inset 0 0 0 1px var(--om-semantic-color-muted);
1919
+ }
1920
+ .om-slider::-moz-range-track {
1921
+ block-size: var(--om-semantic-space-xs);
1922
+ border-radius: var(--om-semantic-radius-pill);
1923
+ background: var(--om-slider-track);
1924
+ box-shadow: inset 0 0 0 1px var(--om-semantic-color-muted);
1925
+ }
1926
+ .om-slider::-webkit-slider-thumb {
1927
+ appearance: none;
1928
+ box-sizing: border-box;
1929
+ inline-size: var(--om-semantic-space-lg);
1930
+ block-size: var(--om-semantic-space-lg);
1931
+ margin-block-start: calc((var(--om-semantic-space-xs) - var(--om-semantic-space-lg)) / 2);
1932
+ background: var(--om-semantic-color-action);
1933
+ border: 1px solid var(--om-semantic-color-on-action);
1934
+ border-radius: var(--om-semantic-radius-pill);
1935
+ }
1936
+ .om-slider::-moz-range-thumb {
1937
+ box-sizing: border-box;
1938
+ inline-size: var(--om-semantic-space-lg);
1939
+ block-size: var(--om-semantic-space-lg);
1940
+ background: var(--om-semantic-color-action);
1941
+ border: 1px solid var(--om-semantic-color-on-action);
1942
+ border-radius: var(--om-semantic-radius-pill);
1943
+ }
1944
+ }
1857
1945
  .om-slider:disabled {
1858
1946
  cursor: not-allowed;
1859
1947
  opacity: 0.5;
@@ -1869,6 +1957,10 @@ select.om-select optgroup {
1869
1957
  overflow: auto;
1870
1958
  }
1871
1959
 
1960
+ .om-command-dismiss {
1961
+ margin-block-start: var(--om-semantic-space-md);
1962
+ }
1963
+
1872
1964
  .om-command-list {
1873
1965
  display: grid;
1874
1966
  gap: var(--om-semantic-space-xs);
package/dist/tokens.css CHANGED
@@ -23,6 +23,8 @@
23
23
  --om-primitive-color-light-action-hover: #dedede;
24
24
  --om-primitive-color-focus-blue: #2459d3;
25
25
  --om-primitive-color-focus-blue-dark: #91afff;
26
+ --om-primitive-color-amber: #8a4b00;
27
+ --om-primitive-color-amber-light: #ffca80;
26
28
  --om-primitive-space-0: 0px;
27
29
  --om-primitive-space-2: 2px;
28
30
  --om-primitive-space-4: 4px;
@@ -62,6 +64,9 @@
62
64
  --om-semantic-color-accent-hover: var(--om-primitive-color-action-hover);
63
65
  --om-semantic-color-on-accent: var(--om-primitive-color-white);
64
66
  --om-semantic-color-danger: var(--om-primitive-color-danger);
67
+ --om-semantic-color-success: var(--om-primitive-color-mint);
68
+ --om-semantic-color-warning: var(--om-primitive-color-amber);
69
+ --om-semantic-color-info: var(--om-primitive-color-focus-blue);
65
70
  --om-semantic-color-focus: var(--om-primitive-color-focus-blue);
66
71
  --om-semantic-color-border-subtle: var(--om-primitive-color-soft-line);
67
72
  --om-semantic-color-action: var(--om-primitive-color-ink);
@@ -115,6 +120,8 @@
115
120
  --om-primitive-color-light-action-hover: #dedede;
116
121
  --om-primitive-color-focus-blue: #2459d3;
117
122
  --om-primitive-color-focus-blue-dark: #91afff;
123
+ --om-primitive-color-amber: #8a4b00;
124
+ --om-primitive-color-amber-light: #ffca80;
118
125
  --om-primitive-space-0: 0px;
119
126
  --om-primitive-space-2: 2px;
120
127
  --om-primitive-space-4: 4px;
@@ -154,6 +161,9 @@
154
161
  --om-semantic-color-accent-hover: var(--om-primitive-color-light-action-hover);
155
162
  --om-semantic-color-on-accent: var(--om-primitive-color-ink);
156
163
  --om-semantic-color-danger: var(--om-primitive-color-danger-dark);
164
+ --om-semantic-color-success: var(--om-primitive-color-pale-mint);
165
+ --om-semantic-color-warning: var(--om-primitive-color-amber-light);
166
+ --om-semantic-color-info: var(--om-primitive-color-focus-blue-dark);
157
167
  --om-semantic-color-focus: var(--om-primitive-color-focus-blue-dark);
158
168
  --om-semantic-color-border-subtle: var(--om-primitive-color-dark-soft-line);
159
169
  --om-semantic-color-action: var(--om-primitive-color-bright);
package/dist/tokens.d.ts CHANGED
@@ -8,6 +8,9 @@ declare const tokens: {
8
8
  readonly "color.accent-hover": "var(--om-semantic-color-accent-hover)";
9
9
  readonly "color.on-accent": "var(--om-semantic-color-on-accent)";
10
10
  readonly "color.danger": "var(--om-semantic-color-danger)";
11
+ readonly "color.success": "var(--om-semantic-color-success)";
12
+ readonly "color.warning": "var(--om-semantic-color-warning)";
13
+ readonly "color.info": "var(--om-semantic-color-info)";
11
14
  readonly "color.focus": "var(--om-semantic-color-focus)";
12
15
  readonly "color.border-subtle": "var(--om-semantic-color-border-subtle)";
13
16
  readonly "color.action": "var(--om-semantic-color-action)";
package/dist/tokens.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import {
3
3
  tokens
4
- } from "./chunk-OGJ3KIBM.js";
4
+ } from "./chunk-LKCU6TJK.js";
5
5
  export {
6
6
  tokens
7
7
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@oddmash/ui",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Small, themeable React foundations for Oddmash tools.",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@11.25.0",
@@ -299,6 +299,24 @@
299
299
  "alpha": 1,
300
300
  "hex": "#91afff"
301
301
  }
302
+ },
303
+ "amber": {
304
+ "$type": "color",
305
+ "$value": {
306
+ "colorSpace": "srgb",
307
+ "components": [0.54117647, 0.29411765, 0],
308
+ "alpha": 1,
309
+ "hex": "#8a4b00"
310
+ }
311
+ },
312
+ "amberLight": {
313
+ "$type": "color",
314
+ "$value": {
315
+ "colorSpace": "srgb",
316
+ "components": [1, 0.79215686, 0.50196078],
317
+ "alpha": 1,
318
+ "hex": "#ffca80"
319
+ }
302
320
  }
303
321
  },
304
322
  "space": {
@@ -37,6 +37,18 @@
37
37
  "$type": "color",
38
38
  "$value": "{primitive.color.dangerDark}"
39
39
  },
40
+ "success": {
41
+ "$type": "color",
42
+ "$value": "{primitive.color.paleMint}"
43
+ },
44
+ "warning": {
45
+ "$type": "color",
46
+ "$value": "{primitive.color.amberLight}"
47
+ },
48
+ "info": {
49
+ "$type": "color",
50
+ "$value": "{primitive.color.focusBlueDark}"
51
+ },
40
52
  "focus": {
41
53
  "$type": "color",
42
54
  "$value": "{primitive.color.focusBlueDark}"
@@ -37,6 +37,18 @@
37
37
  "$type": "color",
38
38
  "$value": "{primitive.color.danger}"
39
39
  },
40
+ "success": {
41
+ "$type": "color",
42
+ "$value": "{primitive.color.mint}"
43
+ },
44
+ "warning": {
45
+ "$type": "color",
46
+ "$value": "{primitive.color.amber}"
47
+ },
48
+ "info": {
49
+ "$type": "color",
50
+ "$value": "{primitive.color.focusBlue}"
51
+ },
40
52
  "focus": {
41
53
  "$type": "color",
42
54
  "$value": "{primitive.color.focusBlue}"
@@ -1,14 +0,0 @@
1
- "use client";
2
- import {
3
- cx
4
- } from "./chunk-54STG2JB.js";
5
-
6
- // src/slider.tsx
7
- import { forwardRef } from "react";
8
- import { jsx } from "react/jsx-runtime";
9
- var Slider = forwardRef(({ className, ...props }, ref) => /* @__PURE__ */ jsx("input", { ...props, ref, type: "range", className: cx("om-slider", className) }));
10
- Slider.displayName = "Slider";
11
-
12
- export {
13
- Slider
14
- };
@@ -1,13 +1,13 @@
1
1
  "use client";
2
- import {
3
- Button
4
- } from "./chunk-A3PPKK5J.js";
5
2
  import {
6
3
  Dialog,
7
4
  DialogContent,
8
5
  DialogDescription,
9
6
  DialogTitle
10
7
  } from "./chunk-ME34NDSX.js";
8
+ import {
9
+ Button
10
+ } from "./chunk-A3PPKK5J.js";
11
11
  import {
12
12
  cx
13
13
  } from "./chunk-54STG2JB.js";