@sypnia/ui 0.2.0 → 0.2.2

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.
@@ -0,0 +1,10 @@
1
+ ---
2
+ // The mark of another company, for a «Continue with …» button: Google or GitHub, exactly as its owner publishes it
3
+ // (src/icons/brands.ts). Decoration beside the button's words; with `label` it is an image named after the company.
4
+ import { brandMarks, type BrandName } from '../src/icons/brands';
5
+ interface Props { name: BrandName; size?: number; label?: boolean; class?: string }
6
+ const { name, size, label, class: className } = Astro.props;
7
+ const m = brandMarks[name];
8
+ ---
9
+ <svg class:list={['sy-brandmark', `sy-brandmark--${name}`, className]} viewBox={m.viewBox} width={size} height={size}
10
+ role={label ? 'img' : undefined} aria-label={label ? m.name : undefined} aria-hidden={label ? undefined : 'true'} set:html={m.svg} />
package/css/base.css CHANGED
@@ -78,6 +78,8 @@ mark, .sy-mark { background: linear-gradient(transparent 12%, var(--mark) 12% 92
78
78
  .sy-icon .lit { fill: var(--icon-lit, currentColor); stroke: var(--icon-lit-ring, none); stroke-width: 1.2; }
79
79
  .sy-icon .lit.fail { fill: var(--icon-fail, var(--icon-lit)); }
80
80
  .sy-icon--plain .lit { fill: currentColor; stroke: none; }
81
+ /* Marks of other companies (BrandMark): their own shapes and colours, the size of an icon. */
82
+ .sy-brandmark { width: 1.25em; height: 1.25em; flex: none; display: inline-block; vertical-align: -0.2em; }
81
83
 
82
84
  /* ---- entering: things light up, they do not fly in. Opt in with data-enter. ---- */
83
85
  @keyframes sy-enter { from { opacity: 0; translate: 0 var(--shift); } }
@@ -74,6 +74,17 @@ button.sy-chip:hover, label.sy-chip:hover { background: var(--state-hover); colo
74
74
  [data-skeleton] { pointer-events: none; }
75
75
  .sy-skeleton--text:last-child { width: 62%; }
76
76
  [aria-busy='true'] > .sy-skeleton + .sy-skeleton { margin-top: 0.6rem; }
77
+ /* SkeletonWords: a bar as long as a typical value, in the value's own line box (the text is there, transparent). */
78
+ .sy-skeleton-words { color: transparent !important; background: linear-gradient(100deg, var(--skeleton) 35%, var(--skeleton-shine) 50%, var(--skeleton) 65%) 100% 55% / 200% 0.75em repeat-x; border-radius: var(--r-1); animation: sy-skeleton-words 1.6s linear infinite; animation-play-state: var(--loop, running); -webkit-box-decoration-break: clone; box-decoration-break: clone; user-select: none; }
79
+ .sy-skeleton-words * { color: transparent !important; }
80
+ .sy-skeleton-words svg { visibility: hidden; }
81
+ @keyframes sy-skeleton-words { from { background-position: 100% 55%; } to { background-position: -100% 55%; } }
82
+ /* SkeletonOf: a real piece drawn as a skeleton of its own box. */
83
+ .sy-skeleton-of { display: contents; }
84
+ .sy-skeleton-of > * { color: transparent !important; background: linear-gradient(100deg, var(--skeleton) 35%, var(--skeleton-shine) 50%, var(--skeleton) 65%) 0 0 / 200% 100% !important; border-color: transparent !important; box-shadow: none !important; animation: sy-shimmer 1.6s linear infinite; animation-play-state: var(--loop, running); pointer-events: none; user-select: none; }
85
+ .sy-skeleton-of > * * { color: transparent !important; background: transparent !important; border-color: transparent !important; box-shadow: none !important; }
86
+ .sy-skeleton-of > * svg, .sy-skeleton-of > *::before, .sy-skeleton-of > *::after { visibility: hidden; }
87
+ .sy-skeleton-of input[type='checkbox'], .sy-skeleton-of input[role='switch'] { background: linear-gradient(100deg, var(--skeleton) 35%, var(--skeleton-shine) 50%, var(--skeleton) 65%) 0 0 / 200% 100% !important; }
77
88
 
78
89
  /* EmptyState: what this place is for, and the one button that fills it. */
79
90
  .sy-empty { display: grid; justify-items: center; gap: 0.5rem; padding: var(--s-7) var(--s-5); text-align: center; max-width: 34rem; margin-inline: auto; }
@@ -37,7 +37,9 @@
37
37
  /* The light sits beside the current place. */
38
38
  .sy-nav-item[aria-current]::before { content: ''; position: absolute; left: -0.3rem; top: 50%; width: 6px; height: 6px; border-radius: 50%; translate: 0 -50%; background: var(--light-fill); box-shadow: 0 0 0 1.5px var(--light-ring), 0 0 0.6rem 0 color-mix(in oklab, var(--glow) 55%, transparent); }
39
39
 
40
- .sy-shell__main { grid-area: main; overflow-y: auto; overscroll-behavior: contain; min-width: 0; outline: none; scrollbar-gutter: stable; }
40
+ /* `position: relative` makes the main area the box of everything absolutely placed inside it (screen-reader-only live
41
+ regions, popovers anchored in the page): otherwise they escape its scrolling and the whole document scrolls too. */
42
+ .sy-shell__main { grid-area: main; position: relative; overflow-y: auto; overscroll-behavior: contain; min-width: 0; outline: none; scrollbar-gutter: stable; }
41
43
 
42
44
  /* Phones: five named items and «More», at the bottom, within reach of the thumb. */
43
45
  .sy-mobile-nav { display: none; }
@@ -1,4 +1,4 @@
1
- import { formatters, translate } from './chunk-PGPCLRLZ.js';
1
+ import { formatters, translate } from './chunk-IL7LRLRX.js';
2
2
  import { createContext, useMemo, useContext, useSyncExternalStore } from 'react';
3
3
  import { I18nProvider } from 'react-aria-components';
4
4
  import { jsx } from 'react/jsx-runtime';
@@ -370,6 +370,20 @@ var icons = {
370
370
  "p-app": '<path d="M4 4.5h6v6H4zM4 13.5h6v6H4zM14 13.5h6v6h-6zM14 10.5v-6h2.75"/><circle class="lit" cx="19" cy="5.5" r="1.75"/>',
371
371
  "p-ui": '<path d="M21 9.75V17.25a2.5 2.5 0 0 1-2.5 2.5H5.5a2.5 2.5 0 0 1-2.5-2.5V6.75a2.5 2.5 0 0 1 2.5-2.5H15.75"/><path d="M6.5 9h5.5M6.5 12.5h3M6.5 16h7"/><path d="M15 13h2.5v3H15z"/><circle class="lit" cx="19.5" cy="5.75" r="1.6"/>'
372
372
  };
373
+
374
+ // src/icons/brands.ts
375
+ var brandMarks = {
376
+ google: {
377
+ viewBox: "0 0 48 48",
378
+ svg: '<path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"/><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"/><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"/><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"/>',
379
+ name: "Google"
380
+ },
381
+ github: {
382
+ viewBox: "0 0 16 16",
383
+ svg: '<path fill="currentColor" fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/>',
384
+ name: "GitHub"
385
+ }
386
+ };
373
387
  var cx = (...parts) => parts.filter(Boolean).join(" ");
374
388
  var make = (locale) => ({ locale, t: (k, v) => translate(locale, k, v), format: formatters(locale) });
375
389
  var SypniaContext = createContext(null);
@@ -408,5 +422,21 @@ function Icon({ name, size, label, plain, className, ...rest }) {
408
422
  }
409
423
  );
410
424
  }
425
+ function BrandMark({ name, size, label, className }) {
426
+ const m = brandMarks[name];
427
+ return /* @__PURE__ */ jsx(
428
+ "svg",
429
+ {
430
+ className: cx("sy-brandmark", `sy-brandmark--${name}`, className),
431
+ viewBox: m.viewBox,
432
+ width: size,
433
+ height: size,
434
+ role: label ? "img" : void 0,
435
+ "aria-label": label ? m.name : void 0,
436
+ "aria-hidden": label ? void 0 : true,
437
+ dangerouslySetInnerHTML: { __html: m.svg }
438
+ }
439
+ );
440
+ }
411
441
 
412
- export { Icon, SypniaProvider, cx, useSypnia };
442
+ export { BrandMark, Icon, SypniaProvider, cx, useSypnia };
@@ -108,6 +108,8 @@ var strings = {
108
108
  older: "Older",
109
109
  currentItem: "{label} (current)",
110
110
  createItem: "Create {label}",
111
+ switcherSettings: "Settings",
112
+ orgSettings: "Organization settings",
111
113
  switchItem: "Switch {kind}",
112
114
  nothingFound: "Nothing called \xAB{query}\xBB",
113
115
  gotIt: "Got it",
@@ -428,6 +430,8 @@ var strings = {
428
430
  older: "Anteriores",
429
431
  currentItem: "{label} (actual)",
430
432
  createItem: "Crear {label}",
433
+ switcherSettings: "Ajustes",
434
+ orgSettings: "Ajustes de la organizaci\xF3n",
431
435
  switchItem: "Cambiar de {kind}",
432
436
  nothingFound: "Nada se llama \xAB{query}\xBB",
433
437
  gotIt: "Entendido",
@@ -108,6 +108,8 @@ declare const strings: {
108
108
  readonly older: "Older";
109
109
  readonly currentItem: "{label} (current)";
110
110
  readonly createItem: "Create {label}";
111
+ readonly switcherSettings: "Settings";
112
+ readonly orgSettings: "Organization settings";
111
113
  readonly switchItem: "Switch {kind}";
112
114
  readonly nothingFound: "Nothing called «{query}»";
113
115
  readonly gotIt: "Got it";
@@ -428,6 +430,8 @@ declare const strings: {
428
430
  readonly older: "Anteriores";
429
431
  readonly currentItem: "{label} (actual)";
430
432
  readonly createItem: "Crear {label}";
433
+ readonly switcherSettings: "Ajustes";
434
+ readonly orgSettings: "Ajustes de la organización";
431
435
  readonly switchItem: "Cambiar de {kind}";
432
436
  readonly nothingFound: "Nada se llama «{query}»";
433
437
  readonly gotIt: "Entendido";
@@ -1 +1 @@
1
- export { formatters, strings, translate } from '../chunk-PGPCLRLZ.js';
1
+ export { formatters, strings, translate } from '../chunk-IL7LRLRX.js';
@@ -1,5 +1,5 @@
1
- import { cx } from '../chunk-UM27QNJ7.js';
2
- import '../chunk-PGPCLRLZ.js';
1
+ import { cx } from '../chunk-2BEA574U.js';
2
+ import '../chunk-IL7LRLRX.js';
3
3
  import { useRef, useEffect } from 'react';
4
4
  import { EditorState } from '@codemirror/state';
5
5
  import { EditorView, lineNumbers, highlightActiveLine, placeholder, keymap } from '@codemirror/view';
@@ -371,6 +371,20 @@ declare const icons: {
371
371
  };
372
372
  type IconName = keyof typeof icons;
373
373
 
374
+ declare const brandMarks: {
375
+ readonly google: {
376
+ readonly viewBox: "0 0 48 48";
377
+ readonly svg: "<path fill=\"#EA4335\" d=\"M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z\"/><path fill=\"#4285F4\" d=\"M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z\"/><path fill=\"#FBBC05\" d=\"M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z\"/><path fill=\"#34A853\" d=\"M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z\"/>";
378
+ readonly name: "Google";
379
+ };
380
+ readonly github: {
381
+ readonly viewBox: "0 0 16 16";
382
+ readonly svg: "<path fill=\"currentColor\" fill-rule=\"evenodd\" d=\"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z\"/>";
383
+ readonly name: "GitHub";
384
+ };
385
+ };
386
+ type BrandName = keyof typeof brandMarks;
387
+
374
388
  /** Joins class names, skipping what is empty. */
375
389
  declare const cx: (...parts: (string | false | null | undefined)[]) => string;
376
390
  type Ctx = {
@@ -396,6 +410,19 @@ interface IconProps extends Omit<SVGProps<SVGSVGElement>, 'name'> {
396
410
  }
397
411
  declare function Icon({ name, size, label, plain, className, ...rest }: IconProps): react.JSX.Element;
398
412
 
413
+ /**
414
+ * The mark of another company, for a «Continue with Google» or «Continue with GitHub» button, exactly as its owner
415
+ * publishes it (Google's «G» in its four colours, the GitHub mark in the text colour). Not part of the Sypnia icon set.
416
+ */
417
+ declare function BrandMark({ name, size, label, className }: {
418
+ name: BrandName;
419
+ /** Pixels. Without it the mark follows the text size (1.25em). */
420
+ size?: number;
421
+ /** Names it for screen readers («Google»). Without it the mark is decoration beside the button's words. */
422
+ label?: boolean;
423
+ className?: string;
424
+ }): react.JSX.Element;
425
+
399
426
  type ButtonVariant = 'primary' | 'secondary' | 'quiet' | 'danger' | 'danger-quiet';
400
427
  type ControlSize = 'sm' | 'md' | 'lg';
401
428
  interface ButtonProps extends Omit<ButtonProps$1, 'children' | 'className' | 'style' | 'isDisabled' | 'isPending'> {
@@ -929,6 +956,21 @@ declare function Skeleton({ width, height, radius, circle, className }: {
929
956
  circle?: boolean;
930
957
  className?: string;
931
958
  }): react.JSX.Element;
959
+ /**
960
+ * A value that is not here yet, drawn as a bar exactly as long as `children` (a typical value: «ana@example.com»,
961
+ * «2 hours ago») in the same line box, so the line keeps its real height and the bar the width the value will have.
962
+ * Use it inside the real piece (a table cell, a title, a Stat's value) instead of a bar of guessed width.
963
+ */
964
+ declare function SkeletonWords({ children }: {
965
+ children: ReactNode;
966
+ }): react.JSX.Element;
967
+ /**
968
+ * A real piece (a Button, a Badge, a Tag, an Input, a Switch) drawn as a skeleton of its own box: the same size and
969
+ * place as when it comes, with nothing to read or press. For a piece whose words are known but not its state yet.
970
+ */
971
+ declare function SkeletonOf({ children }: {
972
+ children: ReactNode;
973
+ }): react.JSX.Element;
932
974
  /** Lines of text that are loading. */
933
975
  declare function SkeletonText({ lines }: {
934
976
  lines?: number;
@@ -1004,7 +1046,8 @@ declare function Stat({ label, value, unit, delta, trend, loading }: {
1004
1046
  value?: ReactNode;
1005
1047
  unit?: ReactNode;
1006
1048
  delta?: ReactNode;
1007
- trend?: 'good' | 'bad' | 'flat'; /** The name stays; the number and how it moved are skeletons until they come. */
1049
+ trend?: 'good' | 'bad' | 'flat';
1050
+ /** The name stays; the number is a skeleton until it comes, and so is how it moved when the Stat has one: pass `delta` (any value, `true` will do) while loading to keep its line. */
1008
1051
  loading?: boolean;
1009
1052
  }): react.JSX.Element;
1010
1053
  /** A Stat before even its name is known. */
@@ -1029,12 +1072,13 @@ declare function KeyValueSkeleton({ rows }: {
1029
1072
  rows?: number;
1030
1073
  }): react.JSX.Element;
1031
1074
  /** A person or a team, by picture or initials. */
1032
- declare function Avatar({ name, src, size, square, lit }: {
1075
+ declare function Avatar({ name, src, size, square, lit, decorative }: {
1033
1076
  name: string;
1034
1077
  src?: string;
1035
1078
  size?: 'sm' | 'md' | 'lg' | 'xl';
1036
1079
  square?: boolean;
1037
- lit?: boolean;
1080
+ lit?: boolean; /** The name is written beside it: the avatar is hidden from screen readers (and from the name of a button it sits in). */
1081
+ decorative?: boolean;
1038
1082
  }): react.JSX.Element;
1039
1083
  /** An Avatar while the person is not known yet: the same circle (or square), the same size. */
1040
1084
  declare function AvatarSkeleton({ size, square }: {
@@ -1294,6 +1338,12 @@ interface Column<Row> {
1294
1338
  /** The cell holds row actions: on phones they go to the foot of the card. */
1295
1339
  actions?: boolean;
1296
1340
  width?: string;
1341
+ /**
1342
+ * What this column's cells look like while the table loads, sized like its real values: `<SkeletonWords>` with a
1343
+ * typical value, a real Badge or Button inside `<SkeletonOf>`, two lines when the real cell has two. A function gets
1344
+ * the row's position, to vary widths. Without it the cell is one line of text skeleton.
1345
+ */
1346
+ skeleton?: ReactNode | ((index: number) => ReactNode);
1297
1347
  }
1298
1348
  interface TableProps<Row> {
1299
1349
  columns: Column<Row>[];
@@ -1303,6 +1353,8 @@ interface TableProps<Row> {
1303
1353
  label: string;
1304
1354
  /** Data is on its way: rows are drawn as skeletons of the right shape. */
1305
1355
  loading?: boolean;
1356
+ /** How many skeleton rows to draw while loading: as many as will come (the count of the last visit, a known total). Default 6, never more than a page. */
1357
+ loadingRows?: number;
1306
1358
  /** Something failed: the region says so. Say what happened in plain words. */
1307
1359
  error?: ReactNode;
1308
1360
  /** With `error`: shows a «Try again» button that calls it. */
@@ -1327,7 +1379,7 @@ interface TableProps<Row> {
1327
1379
  * Rows of the same kind of thing, compared by column. A table on a desktop; on a phone every row is a card whose
1328
1380
  * title is the first column and whose other cells carry their column name. Longer than a page, it paginates.
1329
1381
  */
1330
- declare function Table<Row>({ columns, rows, rowKey, label, loading, error, onRetry, empty, pageSize, pagination, toolbar, dense, onRowClick }: TableProps<Row>): react.JSX.Element;
1382
+ declare function Table<Row>({ columns, rows, rowKey, label, loading, loadingRows, error, onRetry, empty, pageSize, pagination, toolbar, dense, onRowClick }: TableProps<Row>): react.JSX.Element;
1331
1383
  /**
1332
1384
  * A Table before its columns are known: header, rows and, with `pagination`, the bar under them, in the same boxes.
1333
1385
  * On phones it is cards, like the real one. When the columns are known, use `<Table loading>` instead.
@@ -1631,6 +1683,11 @@ interface DataColumn<Row> {
1631
1683
  filter?: 'text' | 'select';
1632
1684
  /** The cell holds row actions (RowActions): no visible header, left out of the CSV, at the corner of the card on phones. */
1633
1685
  actions?: boolean;
1686
+ /**
1687
+ * What this column's cells look like while the table loads, sized like its real values (`<SkeletonWords>` with a
1688
+ * typical value, a Badge inside `<SkeletonOf>`). A function gets the row's position. Without it, a bar.
1689
+ */
1690
+ skeleton?: ReactNode | ((index: number) => ReactNode);
1634
1691
  }
1635
1692
  interface DataSort {
1636
1693
  id: string;
@@ -1765,6 +1822,8 @@ interface DataTableProps<Row> {
1765
1822
  pageSizes?: number[];
1766
1823
  /** Data is on its way: rows are drawn as skeletons of the right shape. */
1767
1824
  loading?: boolean;
1825
+ /** How many skeleton rows (cards on phones) to draw while loading: as many as will come. Default 8 rows, 3 cards. */
1826
+ loadingRows?: number;
1768
1827
  /** Something failed: say what happened in plain words. */
1769
1828
  error?: ReactNode;
1770
1829
  /** With `error`: shows «Try again». */
@@ -1792,7 +1851,7 @@ declare function DataTableSkeleton({ columns, rows, selectable, toolbar, paginat
1792
1851
  * The grid of a data console: thousands of rows that scroll smoothly, columns the person can resize, sort and filter,
1793
1852
  * rows to select and act on together, values edited in place, and CSV export. On a phone every row is a card.
1794
1853
  */
1795
- declare function DataTable<Row>({ columns, rows, rowKey, label, sort: sortProp, defaultSort, onSort, filters: filtersProp, onFilter, server, selectable, selected: selectedProp, onSelect, bulkActions, onEdit, onColumnWidths, defaultHidden, columnPicker, exportName, toolbar, pagination, pageSize: pageSizeProp, pageSizes, loading, error, onRetry, empty, height, layout, }: DataTableProps<Row>): react.JSX.Element;
1854
+ declare function DataTable<Row>({ columns, rows, rowKey, label, sort: sortProp, defaultSort, onSort, filters: filtersProp, onFilter, server, selectable, selected: selectedProp, onSelect, bulkActions, onEdit, onColumnWidths, defaultHidden, columnPicker, exportName, toolbar, pagination, pageSize: pageSizeProp, pageSizes, loading, loadingRows, error, onRetry, empty, height, layout, }: DataTableProps<Row>): react.JSX.Element;
1796
1855
 
1797
1856
  /** The name of a control. Inside a Field it points at the Field's control; outside, give it `htmlFor`. */
1798
1857
  declare function Label({ children, htmlFor, optional }: {
@@ -2649,6 +2708,10 @@ interface SwitcherProps {
2649
2708
  onCreate?: () => void;
2650
2709
  /** The thing to create: «organization». Defaults to `kind`. */
2651
2710
  createLabel?: string;
2711
+ /** Adds a settings entry at the end of the list («Organization settings» on the OrgSwitcher). */
2712
+ onSettings?: () => void;
2713
+ /** The words of that entry. */
2714
+ settingsLabel?: string;
2652
2715
  compact?: boolean;
2653
2716
  }
2654
2717
  type SwitcherPublic = Omit<SwitcherProps, 'kind'> & {
@@ -4458,4 +4521,4 @@ declare function EntityDiagramSkeleton({ tables, columns }: {
4458
4521
  columns?: number;
4459
4522
  }): react.JSX.Element;
4460
4523
 
4461
- export { Accordion, type AccordionItem, AccordionSkeleton, ActionCard, ActionCardSkeleton, Actions, type Activity, ActivityFeed, ActivityFeedSkeleton, Alert, AlertDialog, type AlertProps, AnchorNav, Announcement, ApiKeyField, AppShell, type AppShellProps, AppShellSkeleton, AreaChart, AspectRatio, AuthLayout, type AuthLayoutProps, AuthLayoutSkeleton, Autocomplete, type AutosaveState, AutosaveStatus, Avatar, AvatarGroup, AvatarGroupSkeleton, AvatarSkeleton, AvatarUpload, BackButton, BackToTop, Badge, type BadgeProps, BadgeSkeleton, Banner, BarChart, type BarChartProps, Breadcrumb, BreadcrumbSkeleton, BulkActionBar, type BulkActionBarProps, Button, ButtonGroup, type ButtonProps, type ButtonVariant, Bytes, Calendar, CalendarHeatmap, CalendarHeatmapSkeleton, type CalendarProps, CallToAction, Callout, CalloutSkeleton, Card, CardGrid, CardGridSkeleton, CardSkeleton, type CaseEdge, CaseMap, CaseMapSkeleton, CaseNode, CellEditor, Center, Character, type CharacterName, type CharacterProps, ChartFrame, type ChartFrameProps, ChartSkeleton, ChartTooltip, Checkbox, CheckboxCard, type CheckboxCardProps, CheckboxCardSkeleton, CheckboxGroup, type CheckboxGroupProps, CheckboxGroupSkeleton, CheckboxSkeleton, Checklist, type ChecklistItem, ChecklistSkeleton, Chip, ChipSkeleton, CloseButton, CodeBlock, type CodeBlockProps, CodeBlockSkeleton, CodeDiff, CodeDiffSkeleton, CodeEditor, type CodeEditorProps, CodeEditorSkeleton, CodeInput, Collapsible, type CollapsibleProps, ColorPicker, ColorSwatchPicker, type Column, ColumnPicker, type ColumnPickerProps, Columns, type ColumnsProps, Combobox, type ComboboxProps, type Command, CommandPalette, type CompareRow, CompareTable, CompareTableSkeleton, type CompareValue, ConfirmDialog, type ConfirmDialogProps, Container, ContextMenu, type ControlProps, type ControlSize, CopyButton, CopyField, CopyFieldSkeleton, CopyableText, CopyableTextSkeleton, Count, CountSkeleton, Countdown, type Country, CronInput, Currency, CurrencyInput, CursorPagination, DataCards, DataCardsSkeleton, type DataColumn, type DataField, type DataFilters, DataList, DataListSkeleton, type DataOption, type DataSort, DataTable, type DataTableProps, DataTableSkeleton, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, Delta, DeltaSkeleton, DensitySwitch, type Description, DescriptionList, DescriptionListSkeleton, DiagramSkeleton, Dialog, type DialogProps, type DiffLine, Disclosure, DisclosureSkeleton, Dismissable, Divider, DownloadButton, Drawer, Duration, DurationInput, type DurationUnit, EditableText, EditableTextSkeleton, EmailInput, EmptyState, type EmptyStateProps, type Entity, type EntityColumn, EntityDiagram, EntityDiagramSkeleton, EnvironmentSwitcher, ErrorSummary, Faq, type Feature, FeatureGrid, FeatureGridSkeleton, type FeatureItem, FeatureList, FeatureListSkeleton, Field, FieldError, type FieldProps, FieldSkeleton, Fieldset, Figure, FigureSkeleton, FileDrop, type FileDropProps, type FileEntry, FileInput, FileTree, FileTreeSkeleton, FilterBar, type FilterBarProps, FilterChip, type FilterChipProps, type FilterField, Fireflies, type FirefliesProps, FlameGraph, FlameGraphSkeleton, FlowDiagram, type FlowEdge, type FlowNode, FocusScope, Form, FormActions, FormGrid, type FormProblem, type FormProps, FormRow, FormRowSkeleton, FormSection, FormSectionSkeleton, FormSkeleton, type FormState, type Frame, Funnel, type Gap, Gauge, GaugeSkeleton, Grid, type GridProps, Hash, HashSkeleton, Heading, Health, HealthSkeleton, type HealthState, Heatmap, Hero, type HeroProps, Hint, Histogram, HorizontalBar, Hotkey, HoverCard, HoverCardSkeleton, HttpMethod, Icon, IconButton, type IconButtonProps, type IconName, type IconProps, Identity, IdentitySkeleton, Image, ImageSkeleton, ImageUpload, ImageUploadSkeleton, InlineCode, InlineEdit, type InlineEditProps, InlineEditSkeleton, Input, InputGroup, type InputProps, JsonEditor, JsonViewer, JsonViewerSkeleton, Kbd, KeyValue, KeyValueEditor, KeyValueEditorSkeleton, type KeyValueRow, KeyValueSkeleton, Label, LanguageSwitch, Layer, Ledger, Legend, Lightbox, type LightboxImage, LineChart, type LineChartProps, Link, LinkButton, LinkCard, LinkCardSkeleton, type LinkRenderProps, List, ListItem, type ListItemProps, ListItemSkeleton, ListSkeleton, LiveIndicator, LiveRegion, LoadMore, LocaleScope, type LogLevel, type LogLine, LogViewer, LogViewerSkeleton, Logo, Mark, Menu, MenuButton, MenuGroup, MenuItem, MenuSeparator, MenuSkeleton, Meter, MeterSkeleton, MobileNav, MonthPicker, MoreSheet, MultiSelect, type MultiSelectProps, NativeSelect, type NativeSelectProps, NavGroup, NavItem, NewCard, NotFound, Notice, NotificationBell, type NotificationEntry, NotificationList, NotificationListSkeleton, Number, NumberInput, type NumberInputProps, OfflineNotice, type Option, OrgSwitcher, OtpInput, type OtpInputProps, Page, PageHeader, PageHeaderSkeleton, PageSizeSelect, PageSkeleton, Pagination, type PaginationProps, PaginationSkeleton, Panel, PanelSkeleton, PartToWhole, PartToWholeSkeleton, PasswordInput, PercentInput, Percentiles, Phone, PhoneInput, type Placement, PlanCard, type PlanCardProps, PlanCardSkeleton, Popconfirm, Popover, Portal, Positioner, Presence, type PricingPlan, PricingTable, PricingTableSkeleton, type Product, ProductGrid, type ProductItem, type ProductLink, ProductMark, ProductSwitch, Progress, ProgressSkeleton, type ProgressStep, ProgressSteps, ProgressStepsSkeleton, ProjectSwitcher, PromptDialog, type PromptDialogProps, QueryEditorSkeleton, Quote, QuoteSkeleton, Radio, RadioCards, type RadioCardsProps, RadioCardsSkeleton, RadioGroup, type RadioGroupProps, RadioGroupSkeleton, RangeSlider, type RangeSliderProps, Rating, type Region, RegionSelect, type Release, Releases, type RenderLink, RovingFocus, Row, type RowAction, RowActions, type RowActionsProps, type RowKey, type RowProps, RowsChartSkeleton, SaveBar, SavingIndicator, Says, Scatter, type ScatterPoint, type SchemaColumn, SchemaViewer, SchemaViewerSkeleton, ScrollArea, type ScrollAreaProps, ScrollLock, SearchInput, Section, type SectionProps, SectionSkeleton, SegmentedControl, Select, type SelectProps, SequenceDiagram, type SequenceMessage, type Series, Sheet, Shortcut, ShortcutSkeleton, Show, Sidebar, SidebarSection, SiteFooter, type SiteFooterProps, SiteHeader, type SiteHeaderProps, type SiteLink, Skeleton, SkeletonCard, SkeletonTable, SkeletonText, SkipLink, Slider, type SliderProps, SlugInput, type SlugInputProps, Snippet, SnippetSkeleton, SortMenu, SortMenuSkeleton, type SortOption, Spacer, type Span, SparkBar, Sparkline, SparklineSkeleton, Split, SplitButton, type SplitButtonProps, type SplitProps, SqlEditor, Stack, StackedArea, Stage, Stat, StatGroup, StatGroupSkeleton, StatSkeleton, Status, StatusCode, StatusSkeleton, Stepper, StepperSkeleton, Sticky, SurfaceSwitch, Switch, SwitchSkeleton, type SwitcherOption, SwitcherSkeleton, SypniaProvider, type TabItem, Table, type TableProps, TableSkeleton, TableToolbar, type TableToolbarProps, Tabs, TabsSkeleton, Tag, TagInput, type TagInputProps, TagSkeleton, Terminal, type TerminalLine, TerminalSkeleton, Text, type TextProps, TextSkeleton, Textarea, type TextareaProps, Thumbnail, ThumbnailSkeleton, Time, TimePicker, type TimePickerProps, TimeSkeleton, Timeline, type TimelineItem, TimelineSkeleton, TimezoneSelect, type ToastOptions, Toaster, ToggleButton, ToggleGroup, type ToggleItem, type Tone, Toolbar, ToolbarGroup, type ToolbarProps, ToolbarSeparator, ToolbarSkeleton, ToolbarSpacer, Tooltip, TopBar, Tour, type TourStep, Tree, type TreeNode, TreeSkeleton, Truncate, UptimeBar, UptimeBarSkeleton, type UptimeState, UrlInput, UsageBar, UsageBarSkeleton, type UseCase, UserMenu, ValueSkeleton, type VerticalTab, VerticalTabs, VerticalTabsSkeleton, VisuallyHidden, Waterfall, Wizard, type WizardStep, announce, bins, cx, describeCron, diffLines, downloadCsv, fileNodes, hotkeyParts, layers, modKey, niceTicks, pageWindow, place, seriesStyle, slugify, toCsv, toast, useChartWidth, useControl, useDismissable, useField, useFormState, useHotkey, useKeys, useMediaQuery, useScrollLock, useSypnia, useValue };
4524
+ export { Accordion, type AccordionItem, AccordionSkeleton, ActionCard, ActionCardSkeleton, Actions, type Activity, ActivityFeed, ActivityFeedSkeleton, Alert, AlertDialog, type AlertProps, AnchorNav, Announcement, ApiKeyField, AppShell, type AppShellProps, AppShellSkeleton, AreaChart, AspectRatio, AuthLayout, type AuthLayoutProps, AuthLayoutSkeleton, Autocomplete, type AutosaveState, AutosaveStatus, Avatar, AvatarGroup, AvatarGroupSkeleton, AvatarSkeleton, AvatarUpload, BackButton, BackToTop, Badge, type BadgeProps, BadgeSkeleton, Banner, BarChart, type BarChartProps, BrandMark, type BrandName, Breadcrumb, BreadcrumbSkeleton, BulkActionBar, type BulkActionBarProps, Button, ButtonGroup, type ButtonProps, type ButtonVariant, Bytes, Calendar, CalendarHeatmap, CalendarHeatmapSkeleton, type CalendarProps, CallToAction, Callout, CalloutSkeleton, Card, CardGrid, CardGridSkeleton, CardSkeleton, type CaseEdge, CaseMap, CaseMapSkeleton, CaseNode, CellEditor, Center, Character, type CharacterName, type CharacterProps, ChartFrame, type ChartFrameProps, ChartSkeleton, ChartTooltip, Checkbox, CheckboxCard, type CheckboxCardProps, CheckboxCardSkeleton, CheckboxGroup, type CheckboxGroupProps, CheckboxGroupSkeleton, CheckboxSkeleton, Checklist, type ChecklistItem, ChecklistSkeleton, Chip, ChipSkeleton, CloseButton, CodeBlock, type CodeBlockProps, CodeBlockSkeleton, CodeDiff, CodeDiffSkeleton, CodeEditor, type CodeEditorProps, CodeEditorSkeleton, CodeInput, Collapsible, type CollapsibleProps, ColorPicker, ColorSwatchPicker, type Column, ColumnPicker, type ColumnPickerProps, Columns, type ColumnsProps, Combobox, type ComboboxProps, type Command, CommandPalette, type CompareRow, CompareTable, CompareTableSkeleton, type CompareValue, ConfirmDialog, type ConfirmDialogProps, Container, ContextMenu, type ControlProps, type ControlSize, CopyButton, CopyField, CopyFieldSkeleton, CopyableText, CopyableTextSkeleton, Count, CountSkeleton, Countdown, type Country, CronInput, Currency, CurrencyInput, CursorPagination, DataCards, DataCardsSkeleton, type DataColumn, type DataField, type DataFilters, DataList, DataListSkeleton, type DataOption, type DataSort, DataTable, type DataTableProps, DataTableSkeleton, DatePicker, type DatePickerProps, type DateRange, DateRangePicker, type DateRangePickerProps, DateTimePicker, type DateTimePickerProps, Delta, DeltaSkeleton, DensitySwitch, type Description, DescriptionList, DescriptionListSkeleton, DiagramSkeleton, Dialog, type DialogProps, type DiffLine, Disclosure, DisclosureSkeleton, Dismissable, Divider, DownloadButton, Drawer, Duration, DurationInput, type DurationUnit, EditableText, EditableTextSkeleton, EmailInput, EmptyState, type EmptyStateProps, type Entity, type EntityColumn, EntityDiagram, EntityDiagramSkeleton, EnvironmentSwitcher, ErrorSummary, Faq, type Feature, FeatureGrid, FeatureGridSkeleton, type FeatureItem, FeatureList, FeatureListSkeleton, Field, FieldError, type FieldProps, FieldSkeleton, Fieldset, Figure, FigureSkeleton, FileDrop, type FileDropProps, type FileEntry, FileInput, FileTree, FileTreeSkeleton, FilterBar, type FilterBarProps, FilterChip, type FilterChipProps, type FilterField, Fireflies, type FirefliesProps, FlameGraph, FlameGraphSkeleton, FlowDiagram, type FlowEdge, type FlowNode, FocusScope, Form, FormActions, FormGrid, type FormProblem, type FormProps, FormRow, FormRowSkeleton, FormSection, FormSectionSkeleton, FormSkeleton, type FormState, type Frame, Funnel, type Gap, Gauge, GaugeSkeleton, Grid, type GridProps, Hash, HashSkeleton, Heading, Health, HealthSkeleton, type HealthState, Heatmap, Hero, type HeroProps, Hint, Histogram, HorizontalBar, Hotkey, HoverCard, HoverCardSkeleton, HttpMethod, Icon, IconButton, type IconButtonProps, type IconName, type IconProps, Identity, IdentitySkeleton, Image, ImageSkeleton, ImageUpload, ImageUploadSkeleton, InlineCode, InlineEdit, type InlineEditProps, InlineEditSkeleton, Input, InputGroup, type InputProps, JsonEditor, JsonViewer, JsonViewerSkeleton, Kbd, KeyValue, KeyValueEditor, KeyValueEditorSkeleton, type KeyValueRow, KeyValueSkeleton, Label, LanguageSwitch, Layer, Ledger, Legend, Lightbox, type LightboxImage, LineChart, type LineChartProps, Link, LinkButton, LinkCard, LinkCardSkeleton, type LinkRenderProps, List, ListItem, type ListItemProps, ListItemSkeleton, ListSkeleton, LiveIndicator, LiveRegion, LoadMore, LocaleScope, type LogLevel, type LogLine, LogViewer, LogViewerSkeleton, Logo, Mark, Menu, MenuButton, MenuGroup, MenuItem, MenuSeparator, MenuSkeleton, Meter, MeterSkeleton, MobileNav, MonthPicker, MoreSheet, MultiSelect, type MultiSelectProps, NativeSelect, type NativeSelectProps, NavGroup, NavItem, NewCard, NotFound, Notice, NotificationBell, type NotificationEntry, NotificationList, NotificationListSkeleton, Number, NumberInput, type NumberInputProps, OfflineNotice, type Option, OrgSwitcher, OtpInput, type OtpInputProps, Page, PageHeader, PageHeaderSkeleton, PageSizeSelect, PageSkeleton, Pagination, type PaginationProps, PaginationSkeleton, Panel, PanelSkeleton, PartToWhole, PartToWholeSkeleton, PasswordInput, PercentInput, Percentiles, Phone, PhoneInput, type Placement, PlanCard, type PlanCardProps, PlanCardSkeleton, Popconfirm, Popover, Portal, Positioner, Presence, type PricingPlan, PricingTable, PricingTableSkeleton, type Product, ProductGrid, type ProductItem, type ProductLink, ProductMark, ProductSwitch, Progress, ProgressSkeleton, type ProgressStep, ProgressSteps, ProgressStepsSkeleton, ProjectSwitcher, PromptDialog, type PromptDialogProps, QueryEditorSkeleton, Quote, QuoteSkeleton, Radio, RadioCards, type RadioCardsProps, RadioCardsSkeleton, RadioGroup, type RadioGroupProps, RadioGroupSkeleton, RangeSlider, type RangeSliderProps, Rating, type Region, RegionSelect, type Release, Releases, type RenderLink, RovingFocus, Row, type RowAction, RowActions, type RowActionsProps, type RowKey, type RowProps, RowsChartSkeleton, SaveBar, SavingIndicator, Says, Scatter, type ScatterPoint, type SchemaColumn, SchemaViewer, SchemaViewerSkeleton, ScrollArea, type ScrollAreaProps, ScrollLock, SearchInput, Section, type SectionProps, SectionSkeleton, SegmentedControl, Select, type SelectProps, SequenceDiagram, type SequenceMessage, type Series, Sheet, Shortcut, ShortcutSkeleton, Show, Sidebar, SidebarSection, SiteFooter, type SiteFooterProps, SiteHeader, type SiteHeaderProps, type SiteLink, Skeleton, SkeletonCard, SkeletonOf, SkeletonTable, SkeletonText, SkeletonWords, SkipLink, Slider, type SliderProps, SlugInput, type SlugInputProps, Snippet, SnippetSkeleton, SortMenu, SortMenuSkeleton, type SortOption, Spacer, type Span, SparkBar, Sparkline, SparklineSkeleton, Split, SplitButton, type SplitButtonProps, type SplitProps, SqlEditor, Stack, StackedArea, Stage, Stat, StatGroup, StatGroupSkeleton, StatSkeleton, Status, StatusCode, StatusSkeleton, Stepper, StepperSkeleton, Sticky, SurfaceSwitch, Switch, SwitchSkeleton, type SwitcherOption, SwitcherSkeleton, SypniaProvider, type TabItem, Table, type TableProps, TableSkeleton, TableToolbar, type TableToolbarProps, Tabs, TabsSkeleton, Tag, TagInput, type TagInputProps, TagSkeleton, Terminal, type TerminalLine, TerminalSkeleton, Text, type TextProps, TextSkeleton, Textarea, type TextareaProps, Thumbnail, ThumbnailSkeleton, Time, TimePicker, type TimePickerProps, TimeSkeleton, Timeline, type TimelineItem, TimelineSkeleton, TimezoneSelect, type ToastOptions, Toaster, ToggleButton, ToggleGroup, type ToggleItem, type Tone, Toolbar, ToolbarGroup, type ToolbarProps, ToolbarSeparator, ToolbarSkeleton, ToolbarSpacer, Tooltip, TopBar, Tour, type TourStep, Tree, type TreeNode, TreeSkeleton, Truncate, UptimeBar, UptimeBarSkeleton, type UptimeState, UrlInput, UsageBar, UsageBarSkeleton, type UseCase, UserMenu, ValueSkeleton, type VerticalTab, VerticalTabs, VerticalTabsSkeleton, VisuallyHidden, Waterfall, Wizard, type WizardStep, announce, bins, cx, describeCron, diffLines, downloadCsv, fileNodes, hotkeyParts, layers, modKey, niceTicks, pageWindow, place, seriesStyle, slugify, toCsv, toast, useChartWidth, useControl, useDismissable, useField, useFormState, useHotkey, useKeys, useMediaQuery, useScrollLock, useSypnia, useValue };
@@ -1,7 +1,7 @@
1
- import { Icon, cx, useSypnia } from '../chunk-UM27QNJ7.js';
2
- export { Icon, SypniaProvider, cx, useSypnia } from '../chunk-UM27QNJ7.js';
1
+ import { Icon, cx, useSypnia } from '../chunk-2BEA574U.js';
2
+ export { BrandMark, Icon, SypniaProvider, cx, useSypnia } from '../chunk-2BEA574U.js';
3
3
  import { attachSplit, cullFireflies } from '../chunk-AXIJDECU.js';
4
- import '../chunk-PGPCLRLZ.js';
4
+ import '../chunk-IL7LRLRX.js';
5
5
  import { forwardRef, createContext, useState, useContext, useId, useRef, useEffect, useSyncExternalStore, useMemo, useCallback, Fragment as Fragment$1, Children, cloneElement, useLayoutEffect } from 'react';
6
6
  import { Button as Button$1, TooltipTrigger, Tooltip as Tooltip$1, I18nProvider, Select as Select$1, SelectValue, Popover as Popover$1, ListBox, ComboBox, Group, Input as Input$1, NumberField, DropZone, Text, FileTrigger, Calendar as Calendar$1, DatePicker as DatePicker$1, DateRangePicker as DateRangePicker$1, RangeCalendar, TimeField, DialogTrigger, Dialog as Dialog$1, MenuTrigger, Menu as Menu$1, MenuItem as MenuItem$1, MenuSection, Header, Separator, Tabs as Tabs$1, TabList, Tab, TabPanel, ModalOverlay, Modal, Toolbar as Toolbar$1, ToggleButton as ToggleButton$1, ToggleButtonGroup, Disclosure as Disclosure$1, Heading, DisclosurePanel, DisclosureGroup, Tree as Tree$1, ListBoxItem, Slider as Slider$1, SliderTrack, SliderFill, SliderThumb, SliderOutput, CalendarGrid, CalendarGridHeader, CalendarHeaderCell, CalendarGridBody, CalendarCell, DateInput, TreeItem, TreeItemContent, DateSegment } from 'react-aria-components';
7
7
  import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
@@ -981,6 +981,12 @@ function Skeleton({ width, height, radius, circle, className }) {
981
981
  const px = (v) => typeof v === "number" ? `${v}px` : v;
982
982
  return /* @__PURE__ */ jsx("span", { className: cx("sy-skeleton", circle && "sy-skeleton--circle", className), style: { "--w": px(width), "--h": px(height), "--r": px(radius) }, "aria-hidden": "true" });
983
983
  }
984
+ function SkeletonWords({ children }) {
985
+ return /* @__PURE__ */ jsx("span", { className: "sy-skeleton-words", "data-skeleton": "", "aria-hidden": "true", children });
986
+ }
987
+ function SkeletonOf({ children }) {
988
+ return /* @__PURE__ */ jsx("span", { className: "sy-skeleton-of", "data-skeleton": "", "aria-hidden": "true", ...{ inert: "" }, children });
989
+ }
984
990
  function SkeletonText({ lines = 3 }) {
985
991
  return /* @__PURE__ */ jsx("div", { "aria-hidden": "true", children: Array.from({ length: lines }, (_, i) => /* @__PURE__ */ jsx("span", { className: "sy-skeleton sy-skeleton--text" }, i)) });
986
992
  }
@@ -1066,7 +1072,7 @@ function Stat({ label, value, unit, delta, trend, loading }) {
1066
1072
  /* @__PURE__ */ jsx("span", { className: "sy-stat__label", children: label }),
1067
1073
  loading ? /* @__PURE__ */ jsxs(Fragment, { children: [
1068
1074
  /* @__PURE__ */ jsx("span", { className: "sy-stat__value", "aria-hidden": "true", children: /* @__PURE__ */ jsx(Bar2, { w: "4.5ch" }) }),
1069
- /* @__PURE__ */ jsx("span", { className: "sy-stat__delta", "aria-hidden": "true", children: /* @__PURE__ */ jsx(Bar2, { w: "7rem" }) })
1075
+ delta !== void 0 && delta !== false && delta !== null && /* @__PURE__ */ jsx("span", { className: "sy-stat__delta", "aria-hidden": "true", children: /* @__PURE__ */ jsx(Bar2, { w: "7rem" }) })
1070
1076
  ] }) : /* @__PURE__ */ jsxs(Fragment, { children: [
1071
1077
  /* @__PURE__ */ jsxs("span", { className: "sy-stat__value", children: [
1072
1078
  value,
@@ -1102,8 +1108,8 @@ function KeyValueSkeleton({ rows = 4 }) {
1102
1108
  ] }, i)) });
1103
1109
  }
1104
1110
  var initials = (name) => name.trim().split(/\s+/).slice(0, 2).map((w) => w[0]).join("");
1105
- function Avatar({ name, src, size = "md", square, lit }) {
1106
- return /* @__PURE__ */ jsx("span", { className: cx("sy-avatar", size !== "md" && `sy-avatar--${size}`, square && "sy-avatar--square", lit && "sy-avatar--lit"), role: "img", "aria-label": name, children: src ? /* @__PURE__ */ jsx("img", { src, alt: "" }) : initials(name) });
1111
+ function Avatar({ name, src, size = "md", square, lit, decorative }) {
1112
+ return /* @__PURE__ */ jsx("span", { className: cx("sy-avatar", size !== "md" && `sy-avatar--${size}`, square && "sy-avatar--square", lit && "sy-avatar--lit"), ...decorative ? { "aria-hidden": true } : { role: "img", "aria-label": name }, children: src ? /* @__PURE__ */ jsx("img", { src, alt: "" }) : initials(name) });
1107
1113
  }
1108
1114
  function AvatarSkeleton({ size = "md", square }) {
1109
1115
  return /* @__PURE__ */ jsx("span", { className: cx("sy-avatar", size !== "md" && `sy-avatar--${size}`, square && "sy-avatar--square"), "data-skeleton": "", "aria-hidden": "true", children: /* @__PURE__ */ jsx("span", { className: "sy-skeleton" }) });
@@ -1531,7 +1537,7 @@ function BreadcrumbSkeleton({ items: items2 = 3 }) {
1531
1537
  function StepperSkeleton({ steps = 4 }) {
1532
1538
  return /* @__PURE__ */ jsx("ol", { className: "sy-stepper", "data-skeleton": "", "aria-hidden": "true", children: Array.from({ length: steps }, (_, i) => /* @__PURE__ */ jsx("li", { className: "sy-stepper__step", "data-state": "todo", children: /* @__PURE__ */ jsx("span", { className: "sy-stepper__label", children: /* @__PURE__ */ jsx("span", { className: "sy-skeleton sy-skeleton--text" }) }) }, i)) });
1533
1539
  }
1534
- function Table({ columns, rows, rowKey, label, loading, error, onRetry, empty, pageSize, pagination, toolbar, dense, onRowClick }) {
1540
+ function Table({ columns, rows, rowKey, label, loading, loadingRows, error, onRetry, empty, pageSize, pagination, toolbar, dense, onRowClick }) {
1535
1541
  const { t, locale } = useSypnia();
1536
1542
  const [sort, setSort] = useState(null);
1537
1543
  const [page, setPage] = useState(1);
@@ -1575,15 +1581,16 @@ function Table({ columns, rows, rowKey, label, loading, error, onRetry, empty, p
1575
1581
  },
1576
1582
  c.id
1577
1583
  )) }) }),
1578
- /* @__PURE__ */ jsx("tbody", { children: busy ? /* @__PURE__ */ jsx(SkeletonRows, { rows: Math.min(size || 6, 6), columns: columns.map((c) => ({ label: c.header, actions: c.actions })) }) : visible.map((row) => /* @__PURE__ */ jsx("tr", { onClick: onRowClick ? (e) => {
1584
+ /* @__PURE__ */ jsx("tbody", { children: busy ? /* @__PURE__ */ jsx(SkeletonRows, { rows: Math.min(loadingRows ?? 6, size || 25), columns: columns.map((c) => ({ label: c.header, actions: c.actions, numeric: c.numeric, skeleton: c.skeleton })) }) : visible.map((row) => /* @__PURE__ */ jsx("tr", { onClick: onRowClick ? (e) => {
1579
1585
  if (!e.target.closest("button, a, input, select, textarea, label")) onRowClick(row);
1580
1586
  } : void 0, style: onRowClick ? { cursor: "pointer" } : void 0, children: columns.map((c, i) => /* @__PURE__ */ jsx("td", { "data-label": c.header, "data-title": i === 0 ? "" : void 0, className: cx(c.numeric && "sy-table__num", c.actions && "sy-table__actions"), children: c.cell(row) }, c.id)) }, rowKey(row))) })
1581
1587
  ] }),
1582
- bar && !error && /* @__PURE__ */ jsx("div", { className: "sy-table-wrap__foot", children: /* @__PURE__ */ jsx(Pagination, { ...bar }) })
1588
+ bar && !error && /* @__PURE__ */ jsx("div", { className: "sy-table-wrap__foot", children: /* @__PURE__ */ jsx(Pagination, { ...bar }) }),
1589
+ busy && !bar && !error && !pagination && (loadingRows ?? 0) > Math.min(size, 10) && /* @__PURE__ */ jsx("div", { className: "sy-table-wrap__foot", children: /* @__PURE__ */ jsx(PaginationSkeleton, {}) })
1583
1590
  ] });
1584
1591
  }
1585
1592
  function SkeletonRows({ rows, columns }) {
1586
- return /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: rows }, (_, r) => /* @__PURE__ */ jsx("tr", { children: columns.map((c, i) => /* @__PURE__ */ jsx("td", { "data-label": c.label, "data-title": i === 0 ? "" : void 0, className: cx(c.actions && "sy-table__actions"), children: !c.actions && /* @__PURE__ */ jsx(Skeleton, { width: `${45 + (r * 17 + i * 29) % 45}%` }) }, i)) }, r)) });
1593
+ return /* @__PURE__ */ jsx(Fragment, { children: Array.from({ length: rows }, (_, r) => /* @__PURE__ */ jsx("tr", { children: columns.map((c, i) => /* @__PURE__ */ jsx("td", { "data-label": c.label, "data-title": i === 0 ? "" : void 0, className: cx(c.numeric && "sy-table__num", c.actions && "sy-table__actions"), children: c.skeleton !== void 0 ? typeof c.skeleton === "function" ? c.skeleton(r) : c.skeleton : !c.actions && /* @__PURE__ */ jsx("span", { className: "sy-skeleton sy-skeleton--text", style: { "--w": `${45 + (r * 17 + i * 29) % 45}%` } }) }, i)) }, r)) });
1587
1594
  }
1588
1595
  function TableSkeleton({ columns = 4, rows = 6, pagination, dense }) {
1589
1596
  const cols = Array.from({ length: columns }, () => ({}));
@@ -2307,6 +2314,7 @@ function Editor({ column, draft, label, onCommit, onCancel, onTab }) {
2307
2314
  );
2308
2315
  }
2309
2316
  var cellWidth = (r, i) => `${40 + (r * 17 + i * 29) % 50}%`;
2317
+ var skeletonCell = (c, r, i) => c.skeleton !== void 0 ? typeof c.skeleton === "function" ? c.skeleton(r) : c.skeleton : !c.actions && /* @__PURE__ */ jsx(Skeleton, { width: cellWidth(r, i) });
2310
2318
  function SkeletonGrid({ rows, columns, selectable }) {
2311
2319
  return /* @__PURE__ */ jsxs("div", { className: "sy-dt__scroll", "aria-hidden": "true", children: [
2312
2320
  /* @__PURE__ */ jsxs("div", { className: "sy-dt__row sy-dt__row--head", children: [
@@ -2315,19 +2323,19 @@ function SkeletonGrid({ rows, columns, selectable }) {
2315
2323
  ] }),
2316
2324
  Array.from({ length: rows }, (_, r) => /* @__PURE__ */ jsxs("div", { className: "sy-dt__row sy-dt__row--flow", children: [
2317
2325
  selectable && /* @__PURE__ */ jsx("div", { className: "sy-dt__cell sy-dt__cell--check", children: /* @__PURE__ */ jsx(Skeleton, { width: "1rem", height: "1rem" }) }),
2318
- columns.map((c, i) => /* @__PURE__ */ jsx("div", { className: cx("sy-dt__cell", c.numeric && "sy-dt__cell--num"), children: !c.actions && /* @__PURE__ */ jsx(Skeleton, { width: cellWidth(r, i) }) }, i))
2326
+ columns.map((c, i) => /* @__PURE__ */ jsx("div", { className: cx("sy-dt__cell", c.numeric && "sy-dt__cell--num"), children: skeletonCell(c, r, i) }, i))
2319
2327
  ] }, r))
2320
2328
  ] });
2321
2329
  }
2322
- function SkeletonCards({ cards, labels, selectable }) {
2330
+ function SkeletonCards({ cards, labels, selectable, columns }) {
2323
2331
  return /* @__PURE__ */ jsx("ul", { className: "sy-dt__cards", "aria-hidden": "true", children: Array.from({ length: cards }, (_, r) => /* @__PURE__ */ jsxs("li", { className: "sy-dt__card", children: [
2324
2332
  /* @__PURE__ */ jsxs("div", { className: "sy-dt__card-head", children: [
2325
- /* @__PURE__ */ jsx("span", { className: "sy-dt__card-title", children: /* @__PURE__ */ jsx(Skeleton, { width: "55%", height: "1.1em" }) }),
2333
+ /* @__PURE__ */ jsx("span", { className: "sy-dt__card-title", children: columns?.[0]?.skeleton !== void 0 ? skeletonCell(columns[0], r, 0) : /* @__PURE__ */ jsx(Skeleton, { width: "55%", height: "1.1em" }) }),
2326
2334
  selectable && /* @__PURE__ */ jsx("span", { className: "sy-dt__pick", children: /* @__PURE__ */ jsx(Skeleton, { width: "1.35rem", height: "1.35rem" }) })
2327
2335
  ] }),
2328
2336
  /* @__PURE__ */ jsx("dl", { className: "sy-dt__card-list", children: labels.slice(1).map((l, i) => /* @__PURE__ */ jsxs("div", { className: "sy-dt__card-item", children: [
2329
2337
  /* @__PURE__ */ jsx("dt", { children: l ?? /* @__PURE__ */ jsx(Skeleton, { width: "4.5rem" }) }),
2330
- /* @__PURE__ */ jsx("dd", { children: /* @__PURE__ */ jsx(Skeleton, { width: cellWidth(r, i + 1) }) })
2338
+ /* @__PURE__ */ jsx("dd", { children: columns?.[i + 1]?.skeleton !== void 0 ? skeletonCell(columns[i + 1], r, i + 1) : /* @__PURE__ */ jsx(Skeleton, { width: cellWidth(r, i + 1) }) })
2331
2339
  ] }, i)) })
2332
2340
  ] }, r)) });
2333
2341
  }
@@ -2373,6 +2381,7 @@ function DataTable({
2373
2381
  pageSize: pageSizeProp = 100,
2374
2382
  pageSizes = PAGE_SIZES,
2375
2383
  loading,
2384
+ loadingRows,
2376
2385
  error,
2377
2386
  onRetry,
2378
2387
  empty,
@@ -2706,7 +2715,7 @@ function DataTable({
2706
2715
  ] }, `${c.id}d`)])
2707
2716
  ] })
2708
2717
  ] }),
2709
- state === "error" ? /* @__PURE__ */ jsx(EmptyState, { tone: "fail", title: error, compact: true, actions: onRetry && /* @__PURE__ */ jsx(Button, { onClick: onRetry, children: t("retry") }) }) : state === "loading" ? /* @__PURE__ */ jsx("div", { className: "sy-dt__wait", "aria-busy": "true", "aria-label": label, role: "group", children: cards ? /* @__PURE__ */ jsx(SkeletonCards, { cards: 3, selectable, labels: cols.filter((c) => !c.actions).map((c) => c.header) }) : /* @__PURE__ */ jsx(SkeletonGrid, { rows: 8, selectable, columns: cols.map((c) => ({ header: c.header, numeric: c.numeric, actions: c.actions })) }) }) : state === "empty" ? activeFilters.length > 0 && !server || !empty ? /* @__PURE__ */ jsx(EmptyState, { compact: true, icon: activeFilters.length ? "filter" : "rows", title: activeFilters.length ? t("noResults") : t("emptyTable"), actions: activeFilters.length > 0 && /* @__PURE__ */ jsx(Button, { onClick: () => setFilters({}), children: t("clearFilters") }) }) : empty : cards ? /* @__PURE__ */ jsx("ul", { className: "sy-dt__cards", role: "list", "aria-label": label, "aria-busy": loading || void 0, children: shown.map((row) => {
2718
+ state === "error" ? /* @__PURE__ */ jsx(EmptyState, { tone: "fail", title: error, compact: true, actions: onRetry && /* @__PURE__ */ jsx(Button, { onClick: onRetry, children: t("retry") }) }) : state === "loading" ? /* @__PURE__ */ jsx("div", { className: "sy-dt__wait", "aria-busy": "true", "aria-label": label, role: "group", children: cards ? /* @__PURE__ */ jsx(SkeletonCards, { cards: loadingRows ?? 3, selectable, labels: cols.filter((c) => !c.actions).map((c) => c.header), columns: cols.filter((c) => !c.actions) }) : /* @__PURE__ */ jsx(SkeletonGrid, { rows: loadingRows ?? 8, selectable, columns: cols.map((c) => ({ header: c.header, numeric: c.numeric, actions: c.actions, skeleton: c.skeleton })) }) }) : state === "empty" ? activeFilters.length > 0 && !server || !empty ? /* @__PURE__ */ jsx(EmptyState, { compact: true, icon: activeFilters.length ? "filter" : "rows", title: activeFilters.length ? t("noResults") : t("emptyTable"), actions: activeFilters.length > 0 && /* @__PURE__ */ jsx(Button, { onClick: () => setFilters({}), children: t("clearFilters") }) }) : empty : cards ? /* @__PURE__ */ jsx("ul", { className: "sy-dt__cards", role: "list", "aria-label": label, "aria-busy": loading || void 0, children: shown.map((row) => {
2710
2719
  const k = rowKey(row);
2711
2720
  const [first, ...rest] = cols.filter((c) => !c.actions);
2712
2721
  const act = cols.find((c) => c.actions);
@@ -4312,13 +4321,13 @@ function Fireflies({ seed = 11, count = 84 }) {
4312
4321
  return /* @__PURE__ */ jsx("div", { ref, className: "sy-flies", "aria-hidden": "true", children: flies.map((f, i) => /* @__PURE__ */ jsx("i", { style: { left: `${f.x}%`, top: `${f.y}%`, "--s": `${f.s}px`, "--o": f.o, "--d": `${f.d}s`, "--t": `${f.t}s`, "--dx": `${f.dx}px`, "--dy": `${f.dy}px` } }, i)) });
4313
4322
  }
4314
4323
  var plainLink2 = ({ children, ...p }) => /* @__PURE__ */ jsx("a", { ...p, children });
4315
- function Switcher({ kind, options, current, onChange, onCreate, createLabel, compact }) {
4324
+ function Switcher({ kind, options, current, onChange, onCreate, createLabel, onSettings, settingsLabel, compact }) {
4316
4325
  const { t } = useSypnia();
4317
4326
  const [query, setQuery] = useState("");
4318
4327
  const now = options.find((o) => o.id === current) ?? options[0];
4319
4328
  const many = options.length > 7;
4320
4329
  const shown = useMemo(() => query ? options.filter((o) => o.name.toLowerCase().includes(query.toLowerCase())) : options, [options, query]);
4321
- const mark = (o) => o.avatar ? /* @__PURE__ */ jsx(Avatar, { name: o.name, size: "sm", square: true }) : o.tone ? /* @__PURE__ */ jsx("span", { className: cx("sy-switcher__light", `sy-switcher__light--${o.tone}`), "aria-hidden": "true" }) : null;
4330
+ const mark = (o) => o.avatar ? /* @__PURE__ */ jsx(Avatar, { name: o.name, size: "sm", square: true, decorative: true }) : o.tone ? /* @__PURE__ */ jsx("span", { className: cx("sy-switcher__light", `sy-switcher__light--${o.tone}`), "aria-hidden": "true" }) : null;
4322
4331
  return /* @__PURE__ */ jsxs(MenuTrigger, { onOpenChange: (o) => {
4323
4332
  if (!o) setQuery("");
4324
4333
  }, children: [
@@ -4351,6 +4360,7 @@ function Switcher({ kind, options, current, onChange, onCreate, createLabel, com
4351
4360
  selectedKeys: [current],
4352
4361
  onAction: (k) => {
4353
4362
  if (k === "__create") onCreate?.();
4363
+ else if (k === "__settings") onSettings?.();
4354
4364
  else if (k !== current) onChange(String(k));
4355
4365
  },
4356
4366
  renderEmptyState: () => /* @__PURE__ */ jsx("div", { className: "sy-switcher__empty", children: t("nothingFound", { query }) }),
@@ -4363,10 +4373,14 @@ function Switcher({ kind, options, current, onChange, onCreate, createLabel, com
4363
4373
  ] }),
4364
4374
  o.id === current && /* @__PURE__ */ jsx(Icon, { name: "check" })
4365
4375
  ] }, o.id)) }),
4366
- onCreate && /* @__PURE__ */ jsx(Separator, { className: "sy-menu__sep" }),
4376
+ (onCreate || onSettings) && /* @__PURE__ */ jsx(Separator, { className: "sy-menu__sep" }),
4367
4377
  onCreate && /* @__PURE__ */ jsxs(MenuItem$1, { id: "__create", className: "sy-menu__item", textValue: t("createItem", { label: createLabel ?? kind }), children: [
4368
4378
  /* @__PURE__ */ jsx(Icon, { name: "plus" }),
4369
4379
  /* @__PURE__ */ jsx("span", { children: t("createItem", { label: createLabel ?? kind }) })
4380
+ ] }),
4381
+ onSettings && /* @__PURE__ */ jsxs(MenuItem$1, { id: "__settings", className: "sy-menu__item", textValue: settingsLabel ?? t("switcherSettings"), children: [
4382
+ /* @__PURE__ */ jsx(Icon, { name: "settings" }),
4383
+ /* @__PURE__ */ jsx("span", { children: settingsLabel ?? t("switcherSettings") })
4370
4384
  ] })
4371
4385
  ]
4372
4386
  }
@@ -4375,7 +4389,8 @@ function Switcher({ kind, options, current, onChange, onCreate, createLabel, com
4375
4389
  ] });
4376
4390
  }
4377
4391
  function OrgSwitcher(p) {
4378
- return /* @__PURE__ */ jsx(Switcher, { kind: "organization", ...p, options: p.options.map((o) => ({ avatar: true, ...o })) });
4392
+ const { t } = useSypnia();
4393
+ return /* @__PURE__ */ jsx(Switcher, { kind: "organization", ...p, settingsLabel: p.settingsLabel ?? t("orgSettings"), options: p.options.map((o) => ({ avatar: true, ...o })) });
4379
4394
  }
4380
4395
  function ProjectSwitcher(p) {
4381
4396
  return /* @__PURE__ */ jsx(Switcher, { kind: "project", ...p });
@@ -7804,4 +7819,4 @@ function EntityDiagramSkeleton({ tables = 3, columns = 3 }) {
7804
7819
  ] }, i)) }) });
7805
7820
  }
7806
7821
 
7807
- export { Accordion, AccordionSkeleton, ActionCard, ActionCardSkeleton, Actions, ActivityFeed, ActivityFeedSkeleton, Alert, AlertDialog, AnchorNav, Announcement, ApiKeyField, AppShell, AppShellSkeleton, AreaChart, AspectRatio, AuthLayout, AuthLayoutSkeleton, Autocomplete, AutosaveStatus, Avatar, AvatarGroup, AvatarGroupSkeleton, AvatarSkeleton, AvatarUpload, BackButton, BackToTop, Badge, BadgeSkeleton, Banner, BarChart, Breadcrumb, BreadcrumbSkeleton, BulkActionBar, Button, ButtonGroup, Bytes, Calendar, CalendarHeatmap, CalendarHeatmapSkeleton, CallToAction, Callout, CalloutSkeleton, Card, CardGrid, CardGridSkeleton, CardSkeleton, CaseMap, CaseMapSkeleton, CaseNode, CellEditor, Center, Character, ChartFrame, ChartSkeleton, ChartTooltip, Checkbox, CheckboxCard, CheckboxCardSkeleton, CheckboxGroup, CheckboxGroupSkeleton, CheckboxSkeleton, Checklist, ChecklistSkeleton, Chip, ChipSkeleton, CloseButton, CodeBlock, CodeBlockSkeleton, CodeDiff, CodeDiffSkeleton, CodeEditor, CodeEditorSkeleton, CodeInput, Collapsible, ColorPicker, ColorSwatchPicker, ColumnPicker, Columns, Combobox, CommandPalette, CompareTable, CompareTableSkeleton, ConfirmDialog, Container, ContextMenu, CopyButton, CopyField, CopyFieldSkeleton, CopyableText, CopyableTextSkeleton, Count, CountSkeleton, Countdown, CronInput, Currency, CurrencyInput, CursorPagination, DataCards, DataCardsSkeleton, DataList, DataListSkeleton, DataTable, DataTableSkeleton, DatePicker, DateRangePicker, DateTimePicker, Delta, DeltaSkeleton, DensitySwitch, DescriptionList, DescriptionListSkeleton, DiagramSkeleton, Dialog, Disclosure, DisclosureSkeleton, Dismissable, Divider, DownloadButton, Drawer, Duration, DurationInput, EditableText, EditableTextSkeleton, EmailInput, EmptyState, EntityDiagram, EntityDiagramSkeleton, EnvironmentSwitcher, ErrorSummary, Faq, FeatureGrid, FeatureGridSkeleton, FeatureList, FeatureListSkeleton, Field, FieldError, FieldSkeleton, Fieldset, Figure, FigureSkeleton, FileDrop, FileInput, FileTree, FileTreeSkeleton, FilterBar, FilterChip, Fireflies, FlameGraph, FlameGraphSkeleton, FlowDiagram, FocusScope, Form, FormActions, FormGrid, FormRow, FormRowSkeleton, FormSection, FormSectionSkeleton, FormSkeleton, Funnel, Gauge, GaugeSkeleton, Grid, Hash, HashSkeleton, Heading5 as Heading, Health, HealthSkeleton, Heatmap, Hero, Hint, Histogram, HorizontalBar, Hotkey, HoverCard, HoverCardSkeleton, HttpMethod, IconButton, Identity, IdentitySkeleton, Image, ImageSkeleton, ImageUpload, ImageUploadSkeleton, InlineCode, InlineEdit, InlineEditSkeleton, Input, InputGroup, JsonEditor, JsonViewer, JsonViewerSkeleton, Kbd, KeyValue, KeyValueEditor, KeyValueEditorSkeleton, KeyValueSkeleton, Label, LanguageSwitch, Layer, Ledger, Legend, Lightbox, LineChart, Link, LinkButton, LinkCard, LinkCardSkeleton, List, ListItem, ListItemSkeleton, ListSkeleton, LiveIndicator, LiveRegion, LoadMore, LocaleScope, LogViewer, LogViewerSkeleton, Logo, Mark, Menu, MenuButton, MenuGroup, MenuItem, MenuSeparator, MenuSkeleton, Meter, MeterSkeleton, MobileNav, MonthPicker, MoreSheet, MultiSelect, NativeSelect, NavGroup, NavItem, NewCard, NotFound, Notice, NotificationBell, NotificationList, NotificationListSkeleton, Number2 as Number, NumberInput, OfflineNotice, OrgSwitcher, OtpInput, Page, PageHeader, PageHeaderSkeleton, PageSizeSelect, PageSkeleton, Pagination, PaginationSkeleton, Panel, PanelSkeleton, PartToWhole, PartToWholeSkeleton, PasswordInput, PercentInput, Percentiles, Phone, PhoneInput, PlanCard, PlanCardSkeleton, Popconfirm, Popover, Portal, Positioner, Presence, PricingTable, PricingTableSkeleton, ProductGrid, ProductMark, ProductSwitch, Progress, ProgressSkeleton, ProgressSteps, ProgressStepsSkeleton, ProjectSwitcher, PromptDialog, QueryEditorSkeleton, Quote, QuoteSkeleton, Radio, RadioCards, RadioCardsSkeleton, RadioGroup, RadioGroupSkeleton, RangeSlider, Rating, RegionSelect, Releases, RovingFocus, Row, RowActions, RowsChartSkeleton, SaveBar, SavingIndicator, Says, Scatter, SchemaViewer, SchemaViewerSkeleton, ScrollArea, ScrollLock, SearchInput, Section, SectionSkeleton, SegmentedControl, Select, SequenceDiagram, Sheet, Shortcut, ShortcutSkeleton, Show, Sidebar, SidebarSection, SiteFooter, SiteHeader, Skeleton, SkeletonCard, SkeletonTable, SkeletonText, SkipLink, Slider, SlugInput, Snippet, SnippetSkeleton, SortMenu, SortMenuSkeleton, Spacer, SparkBar, Sparkline, SparklineSkeleton, Split, SplitButton, SqlEditor, Stack, StackedArea, Stage, Stat, StatGroup, StatGroupSkeleton, StatSkeleton, Status, StatusCode, StatusSkeleton, Stepper, StepperSkeleton, Sticky, SurfaceSwitch, Switch, SwitchSkeleton, SwitcherSkeleton, Table, TableSkeleton, TableToolbar, Tabs, TabsSkeleton, Tag, TagInput, TagSkeleton, Terminal, TerminalSkeleton, Text2 as Text, TextSkeleton, Textarea, Thumbnail, ThumbnailSkeleton, Time, TimePicker, TimeSkeleton, Timeline, TimelineSkeleton, TimezoneSelect, Toaster, ToggleButton, ToggleGroup, Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarSkeleton, ToolbarSpacer, Tooltip, TopBar, Tour, Tree, TreeSkeleton, Truncate, UptimeBar, UptimeBarSkeleton, UrlInput, UsageBar, UsageBarSkeleton, UserMenu, ValueSkeleton, VerticalTabs, VerticalTabsSkeleton, VisuallyHidden, Waterfall, Wizard, announce, bins, describeCron, diffLines, downloadCsv, fileNodes, hotkeyParts, layers, modKey, niceTicks, pageWindow, place, seriesStyle, slugify, toCsv, toast, useChartWidth, useControl, useDismissable, useField, useFormState, useHotkey, useKeys, useMediaQuery, useScrollLock, useValue };
7822
+ export { Accordion, AccordionSkeleton, ActionCard, ActionCardSkeleton, Actions, ActivityFeed, ActivityFeedSkeleton, Alert, AlertDialog, AnchorNav, Announcement, ApiKeyField, AppShell, AppShellSkeleton, AreaChart, AspectRatio, AuthLayout, AuthLayoutSkeleton, Autocomplete, AutosaveStatus, Avatar, AvatarGroup, AvatarGroupSkeleton, AvatarSkeleton, AvatarUpload, BackButton, BackToTop, Badge, BadgeSkeleton, Banner, BarChart, Breadcrumb, BreadcrumbSkeleton, BulkActionBar, Button, ButtonGroup, Bytes, Calendar, CalendarHeatmap, CalendarHeatmapSkeleton, CallToAction, Callout, CalloutSkeleton, Card, CardGrid, CardGridSkeleton, CardSkeleton, CaseMap, CaseMapSkeleton, CaseNode, CellEditor, Center, Character, ChartFrame, ChartSkeleton, ChartTooltip, Checkbox, CheckboxCard, CheckboxCardSkeleton, CheckboxGroup, CheckboxGroupSkeleton, CheckboxSkeleton, Checklist, ChecklistSkeleton, Chip, ChipSkeleton, CloseButton, CodeBlock, CodeBlockSkeleton, CodeDiff, CodeDiffSkeleton, CodeEditor, CodeEditorSkeleton, CodeInput, Collapsible, ColorPicker, ColorSwatchPicker, ColumnPicker, Columns, Combobox, CommandPalette, CompareTable, CompareTableSkeleton, ConfirmDialog, Container, ContextMenu, CopyButton, CopyField, CopyFieldSkeleton, CopyableText, CopyableTextSkeleton, Count, CountSkeleton, Countdown, CronInput, Currency, CurrencyInput, CursorPagination, DataCards, DataCardsSkeleton, DataList, DataListSkeleton, DataTable, DataTableSkeleton, DatePicker, DateRangePicker, DateTimePicker, Delta, DeltaSkeleton, DensitySwitch, DescriptionList, DescriptionListSkeleton, DiagramSkeleton, Dialog, Disclosure, DisclosureSkeleton, Dismissable, Divider, DownloadButton, Drawer, Duration, DurationInput, EditableText, EditableTextSkeleton, EmailInput, EmptyState, EntityDiagram, EntityDiagramSkeleton, EnvironmentSwitcher, ErrorSummary, Faq, FeatureGrid, FeatureGridSkeleton, FeatureList, FeatureListSkeleton, Field, FieldError, FieldSkeleton, Fieldset, Figure, FigureSkeleton, FileDrop, FileInput, FileTree, FileTreeSkeleton, FilterBar, FilterChip, Fireflies, FlameGraph, FlameGraphSkeleton, FlowDiagram, FocusScope, Form, FormActions, FormGrid, FormRow, FormRowSkeleton, FormSection, FormSectionSkeleton, FormSkeleton, Funnel, Gauge, GaugeSkeleton, Grid, Hash, HashSkeleton, Heading5 as Heading, Health, HealthSkeleton, Heatmap, Hero, Hint, Histogram, HorizontalBar, Hotkey, HoverCard, HoverCardSkeleton, HttpMethod, IconButton, Identity, IdentitySkeleton, Image, ImageSkeleton, ImageUpload, ImageUploadSkeleton, InlineCode, InlineEdit, InlineEditSkeleton, Input, InputGroup, JsonEditor, JsonViewer, JsonViewerSkeleton, Kbd, KeyValue, KeyValueEditor, KeyValueEditorSkeleton, KeyValueSkeleton, Label, LanguageSwitch, Layer, Ledger, Legend, Lightbox, LineChart, Link, LinkButton, LinkCard, LinkCardSkeleton, List, ListItem, ListItemSkeleton, ListSkeleton, LiveIndicator, LiveRegion, LoadMore, LocaleScope, LogViewer, LogViewerSkeleton, Logo, Mark, Menu, MenuButton, MenuGroup, MenuItem, MenuSeparator, MenuSkeleton, Meter, MeterSkeleton, MobileNav, MonthPicker, MoreSheet, MultiSelect, NativeSelect, NavGroup, NavItem, NewCard, NotFound, Notice, NotificationBell, NotificationList, NotificationListSkeleton, Number2 as Number, NumberInput, OfflineNotice, OrgSwitcher, OtpInput, Page, PageHeader, PageHeaderSkeleton, PageSizeSelect, PageSkeleton, Pagination, PaginationSkeleton, Panel, PanelSkeleton, PartToWhole, PartToWholeSkeleton, PasswordInput, PercentInput, Percentiles, Phone, PhoneInput, PlanCard, PlanCardSkeleton, Popconfirm, Popover, Portal, Positioner, Presence, PricingTable, PricingTableSkeleton, ProductGrid, ProductMark, ProductSwitch, Progress, ProgressSkeleton, ProgressSteps, ProgressStepsSkeleton, ProjectSwitcher, PromptDialog, QueryEditorSkeleton, Quote, QuoteSkeleton, Radio, RadioCards, RadioCardsSkeleton, RadioGroup, RadioGroupSkeleton, RangeSlider, Rating, RegionSelect, Releases, RovingFocus, Row, RowActions, RowsChartSkeleton, SaveBar, SavingIndicator, Says, Scatter, SchemaViewer, SchemaViewerSkeleton, ScrollArea, ScrollLock, SearchInput, Section, SectionSkeleton, SegmentedControl, Select, SequenceDiagram, Sheet, Shortcut, ShortcutSkeleton, Show, Sidebar, SidebarSection, SiteFooter, SiteHeader, Skeleton, SkeletonCard, SkeletonOf, SkeletonTable, SkeletonText, SkeletonWords, SkipLink, Slider, SlugInput, Snippet, SnippetSkeleton, SortMenu, SortMenuSkeleton, Spacer, SparkBar, Sparkline, SparklineSkeleton, Split, SplitButton, SqlEditor, Stack, StackedArea, Stage, Stat, StatGroup, StatGroupSkeleton, StatSkeleton, Status, StatusCode, StatusSkeleton, Stepper, StepperSkeleton, Sticky, SurfaceSwitch, Switch, SwitchSkeleton, SwitcherSkeleton, Table, TableSkeleton, TableToolbar, Tabs, TabsSkeleton, Tag, TagInput, TagSkeleton, Terminal, TerminalSkeleton, Text2 as Text, TextSkeleton, Textarea, Thumbnail, ThumbnailSkeleton, Time, TimePicker, TimeSkeleton, Timeline, TimelineSkeleton, TimezoneSelect, Toaster, ToggleButton, ToggleGroup, Toolbar, ToolbarGroup, ToolbarSeparator, ToolbarSkeleton, ToolbarSpacer, Tooltip, TopBar, Tour, Tree, TreeSkeleton, Truncate, UptimeBar, UptimeBarSkeleton, UrlInput, UsageBar, UsageBarSkeleton, UserMenu, ValueSkeleton, VerticalTabs, VerticalTabsSkeleton, VisuallyHidden, Waterfall, Wizard, announce, bins, describeCron, diffLines, downloadCsv, fileNodes, hotkeyParts, layers, modKey, niceTicks, pageWindow, place, seriesStyle, slugify, toCsv, toast, useChartWidth, useControl, useDismissable, useField, useFormState, useHotkey, useKeys, useMediaQuery, useScrollLock, useValue };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sypnia/ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "The component library of Sypnia: tokens, CSS, React and Astro components.",
5
5
  "license": "MIT",
6
6
  "homepage": "https://ui.sypnia.com",
@@ -28,6 +28,7 @@
28
28
  "icons/sprite.svg",
29
29
  "tokens/tokens.json",
30
30
  "src/icons/data.ts",
31
+ "src/icons/brands.ts",
31
32
  "src/i18n/index.ts",
32
33
  "src/characters",
33
34
  "src/dom/search.ts",
package/src/i18n/index.ts CHANGED
@@ -7,7 +7,7 @@ export const strings = {
7
7
  unit: 'Unit', unit_seconds: 'seconds', unit_minutes: 'minutes', unit_hours: 'hours', unit_days: 'days', keyLooksWrong: 'This does not look like a key of this service. Keys start with {example}; copy it again from the service.', country: 'Country', chooseMonth: 'Choose a month', previousYear: 'Previous year', nextYear: 'Next year', chooseAnother: 'Choose another', noFileChosen: 'No file chosen', replace: 'Replace', remove: 'Remove', imageHint: 'PNG, JPG, SVG or WebP, up to {max}.', changePhoto: 'Change photo', addPhoto: 'Add a photo', pickColor: 'Pick a colour', colorFormat: 'Write the colour as # and six characters, for example #3b82f6.', runHint: 'Ctrl or ⌘ + Enter runs it', running: 'Running…', run: 'Run', jsonErrorLine: 'The JSON has a mistake on line {line}. Check the commas, quotes and brackets there.', jsonError: 'The JSON has a mistake. Check the commas, quotes and brackets.', jsonOk: 'Valid JSON', formatJson: 'Tidy up', kvName: 'Name', kvValue: 'Value', kvSecret: 'Hide the value of {name}', kvDuplicate: '{name} is written twice; only one is used. Remove one of them.', kvAdd: 'Add a variable', kvPasteHint: 'Paste several NAME=value lines into a name to fill them all.', cronEveryMinute: 'Every minute', cronEveryNMinutes: 'Every {n} minutes', cronHourly: 'Every hour, at minute {m}', cronDaily: 'Every day at {time}', cronWeekdays: 'Monday to Friday at {time}', cronWeekly: 'Every {day} at {time}', cronMonthly: 'On day {day} of each month at {time}', day0: 'Sunday', day1: 'Monday', day2: 'Tuesday', day3: 'Wednesday', day4: 'Thursday', day5: 'Friday', day6: 'Saturday', cronPresets: 'Common schedules', cronPresetDaily: 'Every day at 03:00', cronPresetHourly: 'Every hour', cronPreset15: 'Every 15 minutes', cronPresetWeekdays: 'Weekdays at 09:00', cronPresetMonthly: 'First day of each month', cronCustom: 'A custom schedule', cronInvalid: 'A schedule has five parts separated by spaces: minute, hour, day, month and weekday.', ratingOf: '{value} of {max}',
8
8
  countLabel: 'Count', fromPrevious: 'of the previous step', fromFirst: 'of the first step', starts: 'Starts', takes: 'Takes',
9
9
  live: 'Live', paused: 'Paused', healthUp: 'Working', healthDegraded: 'Slow', healthDown: 'Down', healthUnknown: 'Not checked yet', usageOf: '{used} of {limit}', usageFull: 'The limit is reached: new data is not saved.', usageNear: '{percent} used: it will soon be full.', usageResets: 'Starts again on {date}', step_done: 'done', step_running: 'running', step_waiting: 'waiting', step_failed: 'failed', step_skipped: 'skipped', countdownEnded: 'Time is up', offlineTitle: 'No connection.', offlineBody: 'What you see stays here; changes are saved when the connection comes back.', notFoundTitle: '{what} does not exist', notFoundBody: 'It may have been deleted or moved. Check the address, or go back.',
10
- signOut: 'Sign out', account: 'Account', markAllRead: 'Mark all as read', noNotifications: 'Nothing new', unreadCount: '{count} unread', unread: 'Unread', loadMore: 'Show {count} more', allShown: 'All {count} shown', backToTop: 'Back to top', night: 'Night', paper: 'Paper', density: 'Density', comfortable: 'Comfortable', compact: 'Compact', filterList: 'Filter the list', newer: 'Newer', older: 'Older', currentItem: '{label} (current)', createItem: 'Create {label}', switchItem: 'Switch {kind}', nothingFound: 'Nothing called «{query}»',
10
+ signOut: 'Sign out', account: 'Account', markAllRead: 'Mark all as read', noNotifications: 'Nothing new', unreadCount: '{count} unread', unread: 'Unread', loadMore: 'Show {count} more', allShown: 'All {count} shown', backToTop: 'Back to top', night: 'Night', paper: 'Paper', density: 'Density', comfortable: 'Comfortable', compact: 'Compact', filterList: 'Filter the list', newer: 'Newer', older: 'Older', currentItem: '{label} (current)', createItem: 'Create {label}', switcherSettings: 'Settings', orgSettings: 'Organization settings', switchItem: 'Switch {kind}', nothingFound: 'Nothing called «{query}»',
11
11
  gotIt: 'Got it', stepOf: 'Step {n} of {total}', skipTour: 'Skip the tour', finish: 'Finish', imageOf: '{n} of {total}', notifications: 'Notifications', preview: 'Preview of {label}', openMenu: 'Open the menu of {label}',
12
12
  moreOptions: 'More options', opensNewTab: '(opens in a new tab)', download: 'Download', copyValue: 'Copy {label}', copiedValue: 'Copied: {label}', pressKeys: 'Press {keys}',
13
13
  unsaved: 'You have unsaved changes', discard: 'Discard', saveChanges: 'Save changes', savedAt: 'Saved at {time}', savedNow: 'Saved', notSavedYet: 'Not saved', editField: 'Edit {label}',
@@ -43,7 +43,7 @@ export const strings = {
43
43
  unit: 'Unidad', unit_seconds: 'segundos', unit_minutes: 'minutos', unit_hours: 'horas', unit_days: 'días', keyLooksWrong: 'Esto no parece una clave de este servicio. Las claves empiezan con {example}; cópiala de nuevo desde el servicio.', country: 'País', chooseMonth: 'Elige un mes', previousYear: 'Año anterior', nextYear: 'Año siguiente', chooseAnother: 'Elegir otro', noFileChosen: 'Ningún archivo elegido', replace: 'Reemplazar', remove: 'Quitar', imageHint: 'PNG, JPG, SVG o WebP, hasta {max}.', changePhoto: 'Cambiar foto', addPhoto: 'Agregar una foto', pickColor: 'Elegir un color', colorFormat: 'Escribe el color como # y seis caracteres, por ejemplo #3b82f6.', runHint: 'Ctrl o ⌘ + Enter lo ejecuta', running: 'Ejecutando…', run: 'Ejecutar', jsonErrorLine: 'El JSON tiene un error en la línea {line}. Revisa ahí las comas, las comillas y los corchetes.', jsonError: 'El JSON tiene un error. Revisa las comas, las comillas y los corchetes.', jsonOk: 'JSON válido', formatJson: 'Ordenar', kvName: 'Nombre', kvValue: 'Valor', kvSecret: 'Ocultar el valor de {name}', kvDuplicate: '{name} está escrito dos veces; solo se usa uno. Quita uno de los dos.', kvAdd: 'Agregar una variable', kvPasteHint: 'Pega varias líneas NOMBRE=valor en un nombre para llenarlas todas.', cronEveryMinute: 'Cada minuto', cronEveryNMinutes: 'Cada {n} minutos', cronHourly: 'Cada hora, en el minuto {m}', cronDaily: 'Todos los días a las {time}', cronWeekdays: 'De lunes a viernes a las {time}', cronWeekly: 'Cada {day} a las {time}', cronMonthly: 'El día {day} de cada mes a las {time}', day0: 'domingo', day1: 'lunes', day2: 'martes', day3: 'miércoles', day4: 'jueves', day5: 'viernes', day6: 'sábado', cronPresets: 'Horarios comunes', cronPresetDaily: 'Todos los días a las 03:00', cronPresetHourly: 'Cada hora', cronPreset15: 'Cada 15 minutos', cronPresetWeekdays: 'Días hábiles a las 09:00', cronPresetMonthly: 'El primer día de cada mes', cronCustom: 'Un horario a la medida', cronInvalid: 'Un horario tiene cinco partes separadas por espacios: minuto, hora, día, mes y día de la semana.', ratingOf: '{value} de {max}',
44
44
  countLabel: 'Cantidad', fromPrevious: 'del paso anterior', fromFirst: 'del primer paso', starts: 'Empieza', takes: 'Dura',
45
45
  live: 'En vivo', paused: 'En pausa', healthUp: 'Funcionando', healthDegraded: 'Lento', healthDown: 'Caído', healthUnknown: 'Sin revisar aún', usageOf: '{used} de {limit}', usageFull: 'Se llegó al límite: los datos nuevos no se guardan.', usageNear: '{percent} usado: pronto estará lleno.', usageResets: 'Vuelve a empezar el {date}', step_done: 'hecho', step_running: 'en curso', step_waiting: 'en espera', step_failed: 'falló', step_skipped: 'omitido', countdownEnded: 'Se acabó el tiempo', offlineTitle: 'Sin conexión.', offlineBody: 'Lo que ves se queda aquí; los cambios se guardan cuando vuelva la conexión.', notFoundTitle: '{what} no existe', notFoundBody: 'Puede que se haya borrado o movido. Revisa la dirección o vuelve atrás.',
46
- signOut: 'Cerrar sesión', account: 'Cuenta', markAllRead: 'Marcar todo como leído', noNotifications: 'Nada nuevo', unreadCount: '{count} sin leer', unread: 'Sin leer', loadMore: 'Mostrar {count} más', allShown: 'Se muestran los {count}', backToTop: 'Volver arriba', night: 'Noche', paper: 'Papel', density: 'Densidad', comfortable: 'Cómoda', compact: 'Compacta', filterList: 'Filtrar la lista', newer: 'Más recientes', older: 'Anteriores', currentItem: '{label} (actual)', createItem: 'Crear {label}', switchItem: 'Cambiar de {kind}', nothingFound: 'Nada se llama «{query}»',
46
+ signOut: 'Cerrar sesión', account: 'Cuenta', markAllRead: 'Marcar todo como leído', noNotifications: 'Nada nuevo', unreadCount: '{count} sin leer', unread: 'Sin leer', loadMore: 'Mostrar {count} más', allShown: 'Se muestran los {count}', backToTop: 'Volver arriba', night: 'Noche', paper: 'Papel', density: 'Densidad', comfortable: 'Cómoda', compact: 'Compacta', filterList: 'Filtrar la lista', newer: 'Más recientes', older: 'Anteriores', currentItem: '{label} (actual)', createItem: 'Crear {label}', switcherSettings: 'Ajustes', orgSettings: 'Ajustes de la organización', switchItem: 'Cambiar de {kind}', nothingFound: 'Nada se llama «{query}»',
47
47
  gotIt: 'Entendido', stepOf: 'Paso {n} de {total}', skipTour: 'Saltar el recorrido', finish: 'Terminar', imageOf: '{n} de {total}', notifications: 'Notificaciones', preview: 'Vista previa de {label}', openMenu: 'Abrir el menú de {label}',
48
48
  moreOptions: 'Más opciones', opensNewTab: '(se abre en otra pestaña)', download: 'Descargar', copyValue: 'Copiar {label}', copiedValue: 'Copiado: {label}', pressKeys: 'Pulsa {keys}',
49
49
  unsaved: 'Tienes cambios sin guardar', discard: 'Descartar', saveChanges: 'Guardar cambios', savedAt: 'Guardado a las {time}', savedNow: 'Guardado', notSavedYet: 'No se guardó', editField: 'Editar {label}',
@@ -0,0 +1,18 @@
1
+ // Marks of other companies, for the one place a Sypnia screen shows them: the buttons that sign in with that company.
2
+ // They are not part of «lid and light» (icons/icons.mjs) and never follow its rules: each is drawn exactly as its
3
+ // owner publishes it, in its own colours, and is never recoloured, outlined or redrawn.
4
+ // google: the «G» from Google's sign-in branding guidelines, in its four colours (developers.google.com/identity/branding-guidelines).
5
+ // github: the GitHub mark (the Invertocat) from GitHub's logo guidelines, in one colour: the text colour (github.com/logos).
6
+ export const brandMarks = {
7
+ google: {
8
+ viewBox: '0 0 48 48',
9
+ svg: '<path fill="#EA4335" d="M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z"/><path fill="#4285F4" d="M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z"/><path fill="#FBBC05" d="M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z"/><path fill="#34A853" d="M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z"/>',
10
+ name: 'Google',
11
+ },
12
+ github: {
13
+ viewBox: '0 0 16 16',
14
+ svg: '<path fill="currentColor" fill-rule="evenodd" d="M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27.68 0 1.36.09 2 .27 1.53-1.04 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.013 8.013 0 0016 8c0-4.42-3.58-8-8-8z"/>',
15
+ name: 'GitHub',
16
+ },
17
+ } as const;
18
+ export type BrandName = keyof typeof brandMarks;