@sypnia/ui 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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); } }
@@ -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'> {
@@ -2649,6 +2676,10 @@ interface SwitcherProps {
2649
2676
  onCreate?: () => void;
2650
2677
  /** The thing to create: «organization». Defaults to `kind`. */
2651
2678
  createLabel?: string;
2679
+ /** Adds a settings entry at the end of the list («Organization settings» on the OrgSwitcher). */
2680
+ onSettings?: () => void;
2681
+ /** The words of that entry. */
2682
+ settingsLabel?: string;
2652
2683
  compact?: boolean;
2653
2684
  }
2654
2685
  type SwitcherPublic = Omit<SwitcherProps, 'kind'> & {
@@ -4458,4 +4489,4 @@ declare function EntityDiagramSkeleton({ tables, columns }: {
4458
4489
  columns?: number;
4459
4490
  }): react.JSX.Element;
4460
4491
 
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 };
4492
+ 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, 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 };
@@ -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';
@@ -4312,7 +4312,7 @@ function Fireflies({ seed = 11, count = 84 }) {
4312
4312
  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
4313
  }
4314
4314
  var plainLink2 = ({ children, ...p }) => /* @__PURE__ */ jsx("a", { ...p, children });
4315
- function Switcher({ kind, options, current, onChange, onCreate, createLabel, compact }) {
4315
+ function Switcher({ kind, options, current, onChange, onCreate, createLabel, onSettings, settingsLabel, compact }) {
4316
4316
  const { t } = useSypnia();
4317
4317
  const [query, setQuery] = useState("");
4318
4318
  const now = options.find((o) => o.id === current) ?? options[0];
@@ -4351,6 +4351,7 @@ function Switcher({ kind, options, current, onChange, onCreate, createLabel, com
4351
4351
  selectedKeys: [current],
4352
4352
  onAction: (k) => {
4353
4353
  if (k === "__create") onCreate?.();
4354
+ else if (k === "__settings") onSettings?.();
4354
4355
  else if (k !== current) onChange(String(k));
4355
4356
  },
4356
4357
  renderEmptyState: () => /* @__PURE__ */ jsx("div", { className: "sy-switcher__empty", children: t("nothingFound", { query }) }),
@@ -4363,10 +4364,14 @@ function Switcher({ kind, options, current, onChange, onCreate, createLabel, com
4363
4364
  ] }),
4364
4365
  o.id === current && /* @__PURE__ */ jsx(Icon, { name: "check" })
4365
4366
  ] }, o.id)) }),
4366
- onCreate && /* @__PURE__ */ jsx(Separator, { className: "sy-menu__sep" }),
4367
+ (onCreate || onSettings) && /* @__PURE__ */ jsx(Separator, { className: "sy-menu__sep" }),
4367
4368
  onCreate && /* @__PURE__ */ jsxs(MenuItem$1, { id: "__create", className: "sy-menu__item", textValue: t("createItem", { label: createLabel ?? kind }), children: [
4368
4369
  /* @__PURE__ */ jsx(Icon, { name: "plus" }),
4369
4370
  /* @__PURE__ */ jsx("span", { children: t("createItem", { label: createLabel ?? kind }) })
4371
+ ] }),
4372
+ onSettings && /* @__PURE__ */ jsxs(MenuItem$1, { id: "__settings", className: "sy-menu__item", textValue: settingsLabel ?? t("switcherSettings"), children: [
4373
+ /* @__PURE__ */ jsx(Icon, { name: "settings" }),
4374
+ /* @__PURE__ */ jsx("span", { children: settingsLabel ?? t("switcherSettings") })
4370
4375
  ] })
4371
4376
  ]
4372
4377
  }
@@ -4375,7 +4380,8 @@ function Switcher({ kind, options, current, onChange, onCreate, createLabel, com
4375
4380
  ] });
4376
4381
  }
4377
4382
  function OrgSwitcher(p) {
4378
- return /* @__PURE__ */ jsx(Switcher, { kind: "organization", ...p, options: p.options.map((o) => ({ avatar: true, ...o })) });
4383
+ const { t } = useSypnia();
4384
+ return /* @__PURE__ */ jsx(Switcher, { kind: "organization", ...p, settingsLabel: p.settingsLabel ?? t("orgSettings"), options: p.options.map((o) => ({ avatar: true, ...o })) });
4379
4385
  }
4380
4386
  function ProjectSwitcher(p) {
4381
4387
  return /* @__PURE__ */ jsx(Switcher, { kind: "project", ...p });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sypnia/ui",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
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;