@hussmartinez/ui 0.9.0 → 0.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/dist/index.d.ts +3 -2
- package/dist/index.js +21 -1
- package/dist/index.js.map +1 -1
- package/dist/react.d.ts +493 -1
- package/dist/react.js +849 -68
- package/dist/react.js.map +1 -1
- package/dist/shared/{pair-pt-vUVwu.js → pair-MeX064R6.js} +2 -1
- package/dist/shared/pair-MeX064R6.js.map +1 -0
- package/dist/styles.css +262 -0
- package/dist/ui.d.ts +493 -1
- package/package.json +1 -1
- package/dist/shared/pair-pt-vUVwu.js.map +0 -1
|
@@ -12,6 +12,7 @@ var uiMessages = /* @__PURE__ */ defineMessages({
|
|
|
12
12
|
"fileDropZone.hint": "or drop it here",
|
|
13
13
|
"fileDropZone.hintMultiple": "or drop them here",
|
|
14
14
|
"progress.label": "Progress",
|
|
15
|
+
"reorderableList.moved": "{label} moved to position {position} of {count}",
|
|
15
16
|
"spinner.label": "Loading",
|
|
16
17
|
"errors.INVALID_THEME_TOKEN": "The theme setting {token} has a value that can't be used.",
|
|
17
18
|
"errors.INVALID_THEME_SELECTOR": "The theme can't be applied to the selector {selector}."
|
|
@@ -41,4 +42,4 @@ function isThemePair(value) {
|
|
|
41
42
|
}
|
|
42
43
|
export { uiMessages as a, warnInDevelopment as i, cssWriterOf as n, UiError as o, registerTheme as r, isThemePair as t };
|
|
43
44
|
|
|
44
|
-
//# sourceMappingURL=pair-
|
|
45
|
+
//# sourceMappingURL=pair-MeX064R6.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pair-MeX064R6.js","names":[],"sources":["../../src/errors/ui-error.ts","../../src/messages/en.ts","../../src/internal/development.ts","../../src/theme/registry.ts","../../src/theme/pair.ts"],"sourcesContent":["import { SdkError } from \"@hussmartinez/sdk-core\";\n\n/**\n * Error codes of `@hussmartinez/ui`. They never change once released.\n *\n * - `INVALID_THEME_TOKEN`: a theme token has an unknown name, or a value that\n * isn't allowed for its type. `details` has `token`, `value` and `reason`.\n * - `INVALID_THEME_SELECTOR`: the selector passed to `themeToCss` isn't a\n * plain CSS selector. `details` has `selector` and `reason`.\n *\n * @public\n */\nexport type UiErrorCode = \"INVALID_THEME_TOKEN\" | \"INVALID_THEME_SELECTOR\";\n\n/**\n * The error `@hussmartinez/ui` throws, with a stable `code` and structured\n * `details`. Show users the text for its code from {@link uiMessages}, never\n * its `message`.\n *\n * @example\n * ```ts\n * try {\n * createTheme({ extends: \"light\", tokens: { \"color-accent\": brandColour } });\n * } catch (error) {\n * if (isSdkError(error, \"INVALID_THEME_TOKEN\")) {\n * // Ask for another colour.\n * }\n * }\n * ```\n *\n * @public\n */\nexport class UiError extends SdkError<UiErrorCode> {\n override readonly name = \"UiError\";\n}\n","import { defineMessages } from \"@hussmartinez/sdk-core\";\n\n/**\n * English text for `@hussmartinez/ui`'s error codes. Applications and SDKs\n * spread it into their catalogue, next to `sdkCoreMessages`, so\n * `messages.error()` can describe a `UiError`. Components add their\n * text here as they arrive.\n *\n * @example\n * ```ts\n * export const en = defineMessages({ ...sdkCoreMessages, ...uiMessages });\n * ```\n *\n * @public\n */\nexport const uiMessages = /* @__PURE__ */ defineMessages({\n \"colorField.swatches\": \"swatches\",\n \"dialog.close\": \"Close\",\n \"fileDropZone.choose\": \"Choose a file\",\n \"fileDropZone.chooseMultiple\": \"Choose files\",\n \"fileDropZone.hint\": \"or drop it here\",\n \"fileDropZone.hintMultiple\": \"or drop them here\",\n \"progress.label\": \"Progress\",\n \"reorderableList.moved\": \"{label} moved to position {position} of {count}\",\n \"spinner.label\": \"Loading\",\n \"errors.INVALID_THEME_TOKEN\": \"The theme setting {token} has a value that can't be used.\",\n \"errors.INVALID_THEME_SELECTOR\": \"The theme can't be applied to the selector {selector}.\",\n});\n","declare const process: { readonly env: { readonly NODE_ENV?: string } };\n\n/**\n * Whether development-only checks and warnings are on, as a runtime check.\n * The same pattern as sdk-core's.\n *\n * It keeps a forgotten guard from warning in production, but it can't make a\n * bundle smaller: a bundler can't see through a function call, so the\n * message passed to {@link warnInDevelopment} would still ship. Every call\n * site therefore also guards itself inline, with exactly this expression,\n * which bundlers fold away when they replace `process.env.NODE_ENV`:\n *\n * ```ts\n * if (typeof process !== \"undefined\" && process.env.NODE_ENV !== \"production\") {\n * warnInDevelopment(`…`);\n * }\n * ```\n *\n * `development.test.ts` checks every call site, and `build.test.ts` checks\n * that a production bundle drops the messages. Where nothing defines\n * `process`, such as a page loading the module directly, warnings are off.\n */\nexport function isDevelopment(): boolean {\n try {\n return process.env.NODE_ENV !== \"production\";\n } catch {\n return false;\n }\n}\n\n/**\n * Logs a development-only warning. Call it only inside the inline guard\n * shown on {@link isDevelopment}.\n *\n * @param message - What's wrong and how to fix it.\n */\nexport function warnInDevelopment(message: string): void {\n if (isDevelopment()) {\n // biome-ignore lint/suspicious/noConsole: development-only diagnostics are the purpose of this helper.\n console.warn(`[@hussmartinez/ui] ${message}`);\n }\n}\n","import type { Theme } from \"./types.js\";\n\n/** Writes validated themes as CSS. Lives in css-writer.ts. */\nexport type CssWriter = (light: Theme, dark: Theme | undefined, selector: string) => string;\n\n/**\n * Themes from `createTheme`, with the function that writes them as CSS.\n *\n * Kept apart from `createTheme` so `ThemeProvider` can apply themes without\n * importing the validator, the colour parser or the token data: an\n * application that only uses the built-in themes doesn't ship them.\n */\nconst writers = /* @__PURE__ */ new WeakMap<Theme, CssWriter>();\n\n/** Records a validated theme, and how to write it as CSS. */\nexport function registerTheme(theme: Theme, writer: CssWriter): void {\n writers.set(theme, writer);\n}\n\n/**\n * The CSS writer of a theme from `createTheme`, or `undefined` for anything\n * else, such as a theme parsed from JSON.\n */\nexport function cssWriterOf(theme: unknown): CssWriter | undefined {\n return typeof theme === \"object\" && theme !== null ? writers.get(theme as Theme) : undefined;\n}\n","import type { Theme, ThemePair } from \"./types.js\";\n\n/** Whether a value is a light and dark pair rather than a single theme. */\nexport function isThemePair(value: Theme | ThemePair): value is ThemePair {\n return typeof value === \"object\" && value !== null && \"light\" in value && \"dark\" in value;\n}\n"],"mappings":";;AAgCA,IAAa,UAAb,cAA6B,SAAsB;CACjD,OAAyB;AAC3B;;ACnBA,IAAa,aAA6B,+BAAe;CACvD,uBAAuB;CACvB,gBAAgB;CAChB,uBAAuB;CACvB,+BAA+B;CAC/B,qBAAqB;CACrB,6BAA6B;CAC7B,kBAAkB;CAClB,yBAAyB;CACzB,iBAAiB;CACjB,8BAA8B;CAC9B,iCAAiC;AACnC,CAAC;;ACLD,SAAgB,gBAAyB;CACvC,IAAI;EACF,OAAA,QAAA,IAAA,aAAgC;CAClC,QAAQ;EACN,OAAO;CACT;AACF;AAQA,SAAgB,kBAAkB,SAAuB;CACvD,IAAI,cAAc,GAEhB,QAAQ,KAAK,sBAAsB,SAAS;AAEhD;;AC7BA,IAAM,0BAA0B,IAAI,QAA0B;AAG9D,SAAgB,cAAc,OAAc,QAAyB;CACnE,QAAQ,IAAI,OAAO,MAAM;AAC3B;AAMA,SAAgB,YAAY,OAAuC;CACjE,OAAO,OAAO,UAAU,YAAY,UAAU,OAAO,QAAQ,IAAI,KAAc,IAAI,KAAA;AACrF;;ACtBA,SAAgB,YAAY,OAA8C;CACxE,OAAO,OAAO,UAAU,YAAY,UAAU,QAAQ,WAAW,SAAS,UAAU;AACtF"}
|
package/dist/styles.css
CHANGED
|
@@ -476,6 +476,22 @@
|
|
|
476
476
|
color-scheme: var(--hm-color-scheme);
|
|
477
477
|
}
|
|
478
478
|
|
|
479
|
+
/*
|
|
480
|
+
* An opt-in root for text that isn't inside a component, such as an SDK
|
|
481
|
+
* editor's own labels and values: ui's type and text colour, instead of
|
|
482
|
+
* whatever the host page sets around it. Components set their own, so they
|
|
483
|
+
* don't need it. It's in the lowest layer, so an SDK's rules in hm.sdk and
|
|
484
|
+
* any host CSS still win.
|
|
485
|
+
*/
|
|
486
|
+
.hm-text {
|
|
487
|
+
color: var(--hm-color-text);
|
|
488
|
+
font-family: var(--hm-font-family);
|
|
489
|
+
font-size: var(--hm-font-size-body);
|
|
490
|
+
font-weight: var(--hm-font-weight-regular);
|
|
491
|
+
letter-spacing: var(--hm-letter-spacing);
|
|
492
|
+
line-height: var(--hm-line-height-body);
|
|
493
|
+
}
|
|
494
|
+
|
|
479
495
|
/*
|
|
480
496
|
* ThemeProvider's wrapper. Custom properties still inherit through it,
|
|
481
497
|
* because inheritance follows the DOM tree, not boxes.
|
|
@@ -1558,3 +1574,249 @@
|
|
|
1558
1574
|
}
|
|
1559
1575
|
}
|
|
1560
1576
|
}
|
|
1577
|
+
@layer hm.components {
|
|
1578
|
+
/*
|
|
1579
|
+
* Layout, focus and target size: kept with unstyled, so the list stays
|
|
1580
|
+
* usable and accessible.
|
|
1581
|
+
*/
|
|
1582
|
+
.hm-reorderable-list {
|
|
1583
|
+
box-sizing: border-box;
|
|
1584
|
+
display: grid;
|
|
1585
|
+
gap: var(--hm-reorderable-list-gap, var(--hm-gap-tight));
|
|
1586
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1587
|
+
}
|
|
1588
|
+
|
|
1589
|
+
.hm-reorderable-list-row {
|
|
1590
|
+
align-items: center;
|
|
1591
|
+
box-sizing: border-box;
|
|
1592
|
+
display: flex;
|
|
1593
|
+
gap: var(--hm-reorderable-list-gap, var(--hm-gap-tight));
|
|
1594
|
+
min-block-size: max(
|
|
1595
|
+
var(--hm-reorderable-list-row-height, var(--hm-control-height)),
|
|
1596
|
+
var(--hm-target-size)
|
|
1597
|
+
);
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
/* The item fills its row, so the whole row selects it. */
|
|
1601
|
+
.hm-reorderable-list-item {
|
|
1602
|
+
align-items: center;
|
|
1603
|
+
align-self: stretch;
|
|
1604
|
+
box-sizing: border-box;
|
|
1605
|
+
cursor: pointer;
|
|
1606
|
+
display: flex;
|
|
1607
|
+
flex: 1;
|
|
1608
|
+
gap: var(--hm-control-gap);
|
|
1609
|
+
min-inline-size: 0;
|
|
1610
|
+
padding-inline: var(--hm-reorderable-list-row-padding-x, var(--hm-control-padding-x));
|
|
1611
|
+
user-select: none;
|
|
1612
|
+
}
|
|
1613
|
+
|
|
1614
|
+
/* Inside the cell, so a scrolling panel around the list can't clip it. */
|
|
1615
|
+
.hm-reorderable-list-item:focus-visible {
|
|
1616
|
+
outline: var(--hm-focus-ring);
|
|
1617
|
+
outline-offset: calc(var(--hm-focus-ring-width) * -1);
|
|
1618
|
+
}
|
|
1619
|
+
|
|
1620
|
+
.hm-reorderable-list-control {
|
|
1621
|
+
display: flex;
|
|
1622
|
+
flex: none;
|
|
1623
|
+
}
|
|
1624
|
+
|
|
1625
|
+
/* Visual styles, dropped with unstyled. */
|
|
1626
|
+
.hm-reorderable-list:not([data-hm-unstyled]) .hm-reorderable-list-row:not([data-hm-unstyled]) {
|
|
1627
|
+
border: var(--hm-border-width) solid transparent;
|
|
1628
|
+
border-radius: var(--hm-reorderable-list-row-radius, var(--hm-radius-control));
|
|
1629
|
+
color: var(--hm-reorderable-list-row-fg, var(--hm-color-text));
|
|
1630
|
+
font-family: var(--hm-font-family);
|
|
1631
|
+
font-size: var(--hm-font-size-body);
|
|
1632
|
+
letter-spacing: var(--hm-letter-spacing);
|
|
1633
|
+
line-height: var(--hm-line-height-tight);
|
|
1634
|
+
}
|
|
1635
|
+
|
|
1636
|
+
/* Selection shows as a boundary too, not only as a colour (WCAG 1.4.11). */
|
|
1637
|
+
.hm-reorderable-list:not([data-hm-unstyled])
|
|
1638
|
+
.hm-reorderable-list-row[aria-selected="true"]:not([data-hm-unstyled]) {
|
|
1639
|
+
background: var(--hm-reorderable-list-row-selected-bg, var(--hm-color-accent-subtle));
|
|
1640
|
+
border-color: var(--hm-reorderable-list-row-selected-border-color, var(--hm-color-accent));
|
|
1641
|
+
}
|
|
1642
|
+
|
|
1643
|
+
@media (hover: hover) {
|
|
1644
|
+
.hm-reorderable-list:not([data-hm-unstyled])
|
|
1645
|
+
.hm-reorderable-list-row:not([aria-selected="true"], [data-hm-unstyled]):hover {
|
|
1646
|
+
background: var(--hm-reorderable-list-row-bg-hover, var(--hm-color-control-hover));
|
|
1647
|
+
}
|
|
1648
|
+
}
|
|
1649
|
+
}
|
|
1650
|
+
@layer hm.components {
|
|
1651
|
+
/*
|
|
1652
|
+
* Layout: kept with unstyled. The track is as wide as the timeline's
|
|
1653
|
+
* length at the current zoom; Timeline.tsx sets its inline size. Its two
|
|
1654
|
+
* rows are the playhead's slider, then the lane the layers and clips
|
|
1655
|
+
* share, stacked in the order written.
|
|
1656
|
+
*/
|
|
1657
|
+
.hm-timeline {
|
|
1658
|
+
box-sizing: border-box;
|
|
1659
|
+
display: block;
|
|
1660
|
+
min-inline-size: 0;
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
/*
|
|
1664
|
+
* Half a thumb of room at each end, so the slider's thumb can sit on the
|
|
1665
|
+
* first and last units without being clipped.
|
|
1666
|
+
*/
|
|
1667
|
+
.hm-timeline-viewport {
|
|
1668
|
+
box-sizing: border-box;
|
|
1669
|
+
overflow: auto hidden;
|
|
1670
|
+
padding-inline: calc(var(--hm-slider-thumb-size, var(--hm-icon-size)) / 2);
|
|
1671
|
+
}
|
|
1672
|
+
|
|
1673
|
+
.hm-timeline-track {
|
|
1674
|
+
box-sizing: border-box;
|
|
1675
|
+
display: grid;
|
|
1676
|
+
grid-template-columns: minmax(0, 1fr);
|
|
1677
|
+
grid-template-rows:
|
|
1678
|
+
max(var(--hm-slider-thumb-size, var(--hm-icon-size)), var(--hm-target-size))
|
|
1679
|
+
minmax(var(--hm-timeline-lane-height, var(--hm-control-height)), auto);
|
|
1680
|
+
isolation: isolate;
|
|
1681
|
+
min-inline-size: 100%;
|
|
1682
|
+
position: relative;
|
|
1683
|
+
}
|
|
1684
|
+
|
|
1685
|
+
.hm-timeline-track > * {
|
|
1686
|
+
grid-column: 1;
|
|
1687
|
+
grid-row: 2;
|
|
1688
|
+
min-inline-size: 0;
|
|
1689
|
+
}
|
|
1690
|
+
|
|
1691
|
+
.hm-timeline-layer {
|
|
1692
|
+
box-sizing: border-box;
|
|
1693
|
+
}
|
|
1694
|
+
|
|
1695
|
+
/*
|
|
1696
|
+
* The clips, side by side. Until the timeline has measured itself, as on
|
|
1697
|
+
* a server, they share the track equally; then TimelineClips.tsx sets each
|
|
1698
|
+
* one's inline size.
|
|
1699
|
+
*/
|
|
1700
|
+
.hm-timeline-clips {
|
|
1701
|
+
box-sizing: border-box;
|
|
1702
|
+
display: flex;
|
|
1703
|
+
}
|
|
1704
|
+
|
|
1705
|
+
.hm-timeline-clip {
|
|
1706
|
+
align-items: center;
|
|
1707
|
+
box-sizing: border-box;
|
|
1708
|
+
cursor: pointer;
|
|
1709
|
+
display: flex;
|
|
1710
|
+
flex: 1 1 0;
|
|
1711
|
+
min-inline-size: 0;
|
|
1712
|
+
overflow: hidden;
|
|
1713
|
+
position: relative;
|
|
1714
|
+
user-select: none;
|
|
1715
|
+
}
|
|
1716
|
+
|
|
1717
|
+
.hm-timeline-clips[data-hm-measured] > .hm-timeline-clip {
|
|
1718
|
+
flex: none;
|
|
1719
|
+
}
|
|
1720
|
+
|
|
1721
|
+
/*
|
|
1722
|
+
* A clip's edges, for dragging: at most a third of the clip each, so a
|
|
1723
|
+
* narrow clip keeps a middle to press.
|
|
1724
|
+
*/
|
|
1725
|
+
.hm-timeline-clip-edge {
|
|
1726
|
+
cursor: ew-resize;
|
|
1727
|
+
inline-size: min(var(--hm-timeline-clip-edge-size, var(--hm-gap-normal)), 33%);
|
|
1728
|
+
inset-block: 0;
|
|
1729
|
+
position: absolute;
|
|
1730
|
+
touch-action: none;
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
.hm-timeline-clip-edge[data-hm-edge="start"] {
|
|
1734
|
+
inset-inline-start: 0;
|
|
1735
|
+
}
|
|
1736
|
+
|
|
1737
|
+
.hm-timeline-clip-edge[data-hm-edge="end"] {
|
|
1738
|
+
inset-inline-end: 0;
|
|
1739
|
+
}
|
|
1740
|
+
|
|
1741
|
+
/* Inside the clip, where its neighbours and the track's edge can't cover it. */
|
|
1742
|
+
.hm-timeline-clip:focus-visible {
|
|
1743
|
+
outline: var(--hm-focus-ring);
|
|
1744
|
+
outline-offset: calc(var(--hm-focus-ring-width) * -1);
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
.hm-timeline-clip-content {
|
|
1748
|
+
min-inline-size: 0;
|
|
1749
|
+
overflow: hidden;
|
|
1750
|
+
padding-inline: var(--hm-timeline-clip-padding-x, var(--hm-gap-tight));
|
|
1751
|
+
text-overflow: ellipsis;
|
|
1752
|
+
white-space: nowrap;
|
|
1753
|
+
}
|
|
1754
|
+
|
|
1755
|
+
/* Over both rows, and above the layers; only its slider takes the pointer. */
|
|
1756
|
+
.hm-timeline-playhead {
|
|
1757
|
+
grid-row: 1 / 3;
|
|
1758
|
+
pointer-events: none;
|
|
1759
|
+
position: relative;
|
|
1760
|
+
z-index: var(--hm-z-raised);
|
|
1761
|
+
}
|
|
1762
|
+
|
|
1763
|
+
.hm-timeline-playhead-slider {
|
|
1764
|
+
pointer-events: auto;
|
|
1765
|
+
}
|
|
1766
|
+
|
|
1767
|
+
/* Timeline.tsx sets its inline start; it's centred on that unit. */
|
|
1768
|
+
.hm-timeline-playhead-line {
|
|
1769
|
+
inline-size: 0;
|
|
1770
|
+
inset-block: 0;
|
|
1771
|
+
inset-inline-start: 0;
|
|
1772
|
+
margin-inline-start: calc(var(--hm-focus-ring-width) / -2);
|
|
1773
|
+
position: absolute;
|
|
1774
|
+
}
|
|
1775
|
+
|
|
1776
|
+
/* Visual styles, dropped with unstyled. */
|
|
1777
|
+
/* On the viewport, so it's behind the slider's ends too, and stays put while the track scrolls. */
|
|
1778
|
+
.hm-timeline:not([data-hm-unstyled]) .hm-timeline-viewport {
|
|
1779
|
+
background: var(--hm-timeline-track-bg, var(--hm-color-surface-sunken));
|
|
1780
|
+
border-radius: var(--hm-timeline-track-radius, var(--hm-radius-control));
|
|
1781
|
+
}
|
|
1782
|
+
|
|
1783
|
+
/*
|
|
1784
|
+
* A thumb wider than the track by its own size travels from the first
|
|
1785
|
+
* unit to the last, so its centre is where the line is. It needs the
|
|
1786
|
+
* styled thumb, whose size is the token's.
|
|
1787
|
+
*/
|
|
1788
|
+
.hm-timeline-playhead:not([data-hm-unstyled]) .hm-timeline-playhead-slider {
|
|
1789
|
+
inline-size: calc(100% + var(--hm-slider-thumb-size, var(--hm-icon-size)));
|
|
1790
|
+
margin-inline: calc(var(--hm-slider-thumb-size, var(--hm-icon-size)) / -2);
|
|
1791
|
+
}
|
|
1792
|
+
|
|
1793
|
+
/* A border, so forced-colours mode draws it. */
|
|
1794
|
+
.hm-timeline-playhead:not([data-hm-unstyled]) .hm-timeline-playhead-line {
|
|
1795
|
+
border-inline-start: var(--hm-focus-ring-width) solid
|
|
1796
|
+
var(--hm-timeline-playhead-color, var(--hm-color-accent));
|
|
1797
|
+
}
|
|
1798
|
+
|
|
1799
|
+
.hm-timeline-clips:not([data-hm-unstyled]) > .hm-timeline-clip {
|
|
1800
|
+
background: var(--hm-timeline-clip-bg, var(--hm-color-control));
|
|
1801
|
+
border: var(--hm-border-width) solid
|
|
1802
|
+
var(--hm-timeline-clip-border-color, var(--hm-color-border-strong));
|
|
1803
|
+
border-radius: var(--hm-timeline-clip-radius, var(--hm-radius-control));
|
|
1804
|
+
color: var(--hm-timeline-clip-fg, var(--hm-color-text));
|
|
1805
|
+
font-family: var(--hm-font-family);
|
|
1806
|
+
font-size: var(--hm-font-size-small);
|
|
1807
|
+
letter-spacing: var(--hm-letter-spacing);
|
|
1808
|
+
line-height: var(--hm-line-height-tight);
|
|
1809
|
+
}
|
|
1810
|
+
|
|
1811
|
+
/* A thicker border as well as a colour, so selection isn't shown by colour alone. */
|
|
1812
|
+
.hm-timeline-clips:not([data-hm-unstyled]) > .hm-timeline-clip[aria-selected="true"] {
|
|
1813
|
+
background: var(--hm-timeline-clip-selected-bg, var(--hm-color-accent-subtle));
|
|
1814
|
+
border-color: var(--hm-timeline-clip-selected-border-color, var(--hm-color-accent));
|
|
1815
|
+
border-width: var(--hm-focus-ring-width);
|
|
1816
|
+
}
|
|
1817
|
+
|
|
1818
|
+
/* The clip whose edge is being dragged. */
|
|
1819
|
+
.hm-timeline-clips:not([data-hm-unstyled]) > .hm-timeline-clip[data-hm-dragging] {
|
|
1820
|
+
border-color: var(--hm-timeline-clip-selected-border-color, var(--hm-color-accent));
|
|
1821
|
+
}
|
|
1822
|
+
}
|