@ac-kit/ui-common 0.1.0 → 0.3.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/CHANGELOG.md +210 -0
- package/README.md +383 -9
- package/dist/adapter/_anchor.d.ts +13 -0
- package/dist/adapter/_anchor.d.ts.map +1 -0
- package/dist/adapter/_anchor.js +39 -0
- package/dist/adapter/_anchor.js.map +1 -0
- package/dist/adapter/_dom.d.ts +14 -0
- package/dist/adapter/_dom.d.ts.map +1 -0
- package/dist/adapter/_dom.js +31 -0
- package/dist/adapter/_dom.js.map +1 -0
- package/dist/adapter/_live-announcer.d.ts +26 -0
- package/dist/adapter/_live-announcer.d.ts.map +1 -0
- package/dist/adapter/_live-announcer.js +101 -0
- package/dist/adapter/_live-announcer.js.map +1 -0
- package/dist/adapter/join-classes.d.ts.map +1 -0
- package/dist/adapter/join-classes.js.map +1 -0
- package/dist/anchored/anchored.d.ts +19 -0
- package/dist/anchored/anchored.d.ts.map +1 -0
- package/dist/anchored/anchored.js +2 -0
- package/dist/anchored/anchored.js.map +1 -0
- package/dist/bit-grid/bit-grid.d.ts +151 -0
- package/dist/bit-grid/bit-grid.d.ts.map +1 -0
- package/dist/bit-grid/bit-grid.js +201 -0
- package/dist/bit-grid/bit-grid.js.map +1 -0
- package/dist/focus/typeahead.d.ts +112 -0
- package/dist/focus/typeahead.d.ts.map +1 -0
- package/dist/focus/typeahead.js +178 -0
- package/dist/focus/typeahead.js.map +1 -0
- package/dist/index.d.ts +12 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -0
- package/dist/index.js.map +1 -1
- package/dist/menu/menu.d.ts +157 -0
- package/dist/menu/menu.d.ts.map +1 -0
- package/dist/menu/menu.js +162 -0
- package/dist/menu/menu.js.map +1 -0
- package/dist/preact/bit-grid.d.ts +39 -0
- package/dist/preact/bit-grid.d.ts.map +1 -0
- package/dist/preact/bit-grid.js +72 -0
- package/dist/preact/bit-grid.js.map +1 -0
- package/dist/preact/button.d.ts.map +1 -1
- package/dist/preact/button.js +1 -1
- package/dist/preact/button.js.map +1 -1
- package/dist/preact/dialog.d.ts.map +1 -1
- package/dist/preact/dialog.js +1 -1
- package/dist/preact/dialog.js.map +1 -1
- package/dist/preact/index.d.ts +10 -1
- package/dist/preact/index.d.ts.map +1 -1
- package/dist/preact/index.js +10 -1
- package/dist/preact/index.js.map +1 -1
- package/dist/preact/knob.d.ts.map +1 -1
- package/dist/preact/knob.js +6 -14
- package/dist/preact/knob.js.map +1 -1
- package/dist/preact/menu-button.d.ts +117 -0
- package/dist/preact/menu-button.d.ts.map +1 -0
- package/dist/preact/menu-button.js +330 -0
- package/dist/preact/menu-button.js.map +1 -0
- package/dist/preact/meter.d.ts.map +1 -1
- package/dist/preact/meter.js +1 -1
- package/dist/preact/meter.js.map +1 -1
- package/dist/preact/progress-ring.d.ts +42 -0
- package/dist/preact/progress-ring.d.ts.map +1 -0
- package/dist/preact/progress-ring.js +26 -0
- package/dist/preact/progress-ring.js.map +1 -0
- package/dist/preact/radio-group.d.ts.map +1 -1
- package/dist/preact/radio-group.js +1 -1
- package/dist/preact/radio-group.js.map +1 -1
- package/dist/preact/readout.d.ts.map +1 -1
- package/dist/preact/readout.js +1 -1
- package/dist/preact/readout.js.map +1 -1
- package/dist/preact/slider.d.ts.map +1 -1
- package/dist/preact/slider.js +7 -5
- package/dist/preact/slider.js.map +1 -1
- package/dist/preact/spin-button.d.ts +67 -0
- package/dist/preact/spin-button.d.ts.map +1 -0
- package/dist/preact/spin-button.js +132 -0
- package/dist/preact/spin-button.js.map +1 -0
- package/dist/preact/swatch-strip.d.ts +30 -0
- package/dist/preact/swatch-strip.d.ts.map +1 -0
- package/dist/preact/swatch-strip.js +17 -0
- package/dist/preact/swatch-strip.js.map +1 -0
- package/dist/preact/switch.js +1 -1
- package/dist/preact/switch.js.map +1 -1
- package/dist/preact/tabs.d.ts +97 -0
- package/dist/preact/tabs.d.ts.map +1 -0
- package/dist/preact/tabs.js +264 -0
- package/dist/preact/tabs.js.map +1 -0
- package/dist/preact/toaster.d.ts +43 -0
- package/dist/preact/toaster.d.ts.map +1 -0
- package/dist/preact/toaster.js +356 -0
- package/dist/preact/toaster.js.map +1 -0
- package/dist/preact/toggle-button.d.ts.map +1 -1
- package/dist/preact/toggle-button.js +1 -1
- package/dist/preact/toggle-button.js.map +1 -1
- package/dist/preact/toolbar.d.ts.map +1 -1
- package/dist/preact/toolbar.js +3 -9
- package/dist/preact/toolbar.js.map +1 -1
- package/dist/preact/tooltip.d.ts +67 -0
- package/dist/preact/tooltip.d.ts.map +1 -0
- package/dist/preact/tooltip.js +165 -0
- package/dist/preact/tooltip.js.map +1 -0
- package/dist/preact/tree.d.ts +93 -0
- package/dist/preact/tree.d.ts.map +1 -0
- package/dist/preact/tree.js +399 -0
- package/dist/preact/tree.js.map +1 -0
- package/dist/progress/progress.d.ts +51 -0
- package/dist/progress/progress.d.ts.map +1 -0
- package/dist/progress/progress.js +43 -0
- package/dist/progress/progress.js.map +1 -0
- package/dist/react/_props.d.ts +22 -0
- package/dist/react/_props.d.ts.map +1 -0
- package/dist/react/_props.js +14 -0
- package/dist/react/_props.js.map +1 -0
- package/dist/react/bit-grid.d.ts +40 -0
- package/dist/react/bit-grid.d.ts.map +1 -0
- package/dist/react/bit-grid.js +71 -0
- package/dist/react/bit-grid.js.map +1 -0
- package/dist/react/button.d.ts +60 -0
- package/dist/react/button.d.ts.map +1 -0
- package/dist/react/button.js +34 -0
- package/dist/react/button.js.map +1 -0
- package/dist/react/dialog.d.ts +44 -0
- package/dist/react/dialog.d.ts.map +1 -0
- package/dist/react/dialog.js +91 -0
- package/dist/react/dialog.js.map +1 -0
- package/dist/react/index.d.ts +22 -0
- package/dist/react/index.d.ts.map +1 -0
- package/dist/react/index.js +22 -0
- package/dist/react/index.js.map +1 -0
- package/dist/react/knob.d.ts +55 -0
- package/dist/react/knob.d.ts.map +1 -0
- package/dist/react/knob.js +144 -0
- package/dist/react/knob.js.map +1 -0
- package/dist/react/menu-button.d.ts +147 -0
- package/dist/react/menu-button.d.ts.map +1 -0
- package/dist/react/menu-button.js +342 -0
- package/dist/react/menu-button.js.map +1 -0
- package/dist/react/meter.d.ts +34 -0
- package/dist/react/meter.d.ts.map +1 -0
- package/dist/react/meter.js +23 -0
- package/dist/react/meter.js.map +1 -0
- package/dist/react/progress-ring.d.ts +42 -0
- package/dist/react/progress-ring.d.ts.map +1 -0
- package/dist/react/progress-ring.js +28 -0
- package/dist/react/progress-ring.js.map +1 -0
- package/dist/react/radio-group.d.ts +52 -0
- package/dist/react/radio-group.d.ts.map +1 -0
- package/dist/react/radio-group.js +30 -0
- package/dist/react/radio-group.js.map +1 -0
- package/dist/react/readout.d.ts +23 -0
- package/dist/react/readout.d.ts.map +1 -0
- package/dist/react/readout.js +13 -0
- package/dist/react/readout.js.map +1 -0
- package/dist/react/slider.d.ts +44 -0
- package/dist/react/slider.d.ts.map +1 -0
- package/dist/react/slider.js +167 -0
- package/dist/react/slider.js.map +1 -0
- package/dist/react/spin-button.d.ts +71 -0
- package/dist/react/spin-button.d.ts.map +1 -0
- package/dist/react/spin-button.js +132 -0
- package/dist/react/spin-button.js.map +1 -0
- package/dist/react/swatch-strip.d.ts +31 -0
- package/dist/react/swatch-strip.d.ts.map +1 -0
- package/dist/react/swatch-strip.js +17 -0
- package/dist/react/swatch-strip.js.map +1 -0
- package/dist/react/switch.d.ts +26 -0
- package/dist/react/switch.d.ts.map +1 -0
- package/dist/react/switch.js +19 -0
- package/dist/react/switch.js.map +1 -0
- package/dist/react/tabs.d.ts +95 -0
- package/dist/react/tabs.d.ts.map +1 -0
- package/dist/react/tabs.js +274 -0
- package/dist/react/tabs.js.map +1 -0
- package/dist/react/toaster.d.ts +43 -0
- package/dist/react/toaster.d.ts.map +1 -0
- package/dist/react/toaster.js +368 -0
- package/dist/react/toaster.js.map +1 -0
- package/dist/react/toggle-button.d.ts +37 -0
- package/dist/react/toggle-button.d.ts.map +1 -0
- package/dist/react/toggle-button.js +22 -0
- package/dist/react/toggle-button.js.map +1 -0
- package/dist/react/toolbar.d.ts +25 -0
- package/dist/react/toolbar.d.ts.map +1 -0
- package/dist/react/toolbar.js +143 -0
- package/dist/react/toolbar.js.map +1 -0
- package/dist/react/tooltip.d.ts +68 -0
- package/dist/react/tooltip.d.ts.map +1 -0
- package/dist/react/tooltip.js +165 -0
- package/dist/react/tooltip.js.map +1 -0
- package/dist/react/tree.d.ts +94 -0
- package/dist/react/tree.d.ts.map +1 -0
- package/dist/react/tree.js +422 -0
- package/dist/react/tree.js.map +1 -0
- package/dist/react/use-element-binding.d.ts +35 -0
- package/dist/react/use-element-binding.d.ts.map +1 -0
- package/dist/react/use-element-binding.js +51 -0
- package/dist/react/use-element-binding.js.map +1 -0
- package/dist/spin-button/spin-button.d.ts +110 -0
- package/dist/spin-button/spin-button.d.ts.map +1 -0
- package/dist/spin-button/spin-button.js +179 -0
- package/dist/spin-button/spin-button.js.map +1 -0
- package/dist/swatch-strip/swatch-strip.d.ts +60 -0
- package/dist/swatch-strip/swatch-strip.d.ts.map +1 -0
- package/dist/swatch-strip/swatch-strip.js +60 -0
- package/dist/swatch-strip/swatch-strip.js.map +1 -0
- package/dist/tabs/tabs.d.ts +157 -0
- package/dist/tabs/tabs.d.ts.map +1 -0
- package/dist/tabs/tabs.js +120 -0
- package/dist/tabs/tabs.js.map +1 -0
- package/dist/toast/toast-queue.d.ts +212 -0
- package/dist/toast/toast-queue.d.ts.map +1 -0
- package/dist/toast/toast-queue.js +290 -0
- package/dist/toast/toast-queue.js.map +1 -0
- package/dist/toast/toasts-obscure.d.ts +25 -0
- package/dist/toast/toasts-obscure.d.ts.map +1 -0
- package/dist/toast/toasts-obscure.js +30 -0
- package/dist/toast/toasts-obscure.js.map +1 -0
- package/dist/tooltip/tooltip.d.ts +183 -0
- package/dist/tooltip/tooltip.d.ts.map +1 -0
- package/dist/tooltip/tooltip.js +185 -0
- package/dist/tooltip/tooltip.js.map +1 -0
- package/dist/tree/tree.d.ts +302 -0
- package/dist/tree/tree.d.ts.map +1 -0
- package/dist/tree/tree.js +439 -0
- package/dist/tree/tree.js.map +1 -0
- package/package.json +47 -14
- package/styles.css +1084 -3
- package/dist/preact/join-classes.d.ts.map +0 -1
- package/dist/preact/join-classes.js.map +0 -1
- /package/dist/{preact → adapter}/join-classes.d.ts +0 -0
- /package/dist/{preact → adapter}/join-classes.js +0 -0
package/styles.css
CHANGED
|
@@ -38,8 +38,14 @@
|
|
|
38
38
|
--ack-lit: var(--ack-tone-negative, #c4372e);
|
|
39
39
|
}
|
|
40
40
|
|
|
41
|
-
/* A readout and a
|
|
42
|
-
.ack-control:not(
|
|
41
|
+
/* A readout, a meter and a progress ring are displays, not targets. */
|
|
42
|
+
.ack-control:not(
|
|
43
|
+
.ack-readout,
|
|
44
|
+
.ack-meter,
|
|
45
|
+
.ack-progress-ring,
|
|
46
|
+
.ack-bit-grid,
|
|
47
|
+
.ack-swatch-strip
|
|
48
|
+
) {
|
|
43
49
|
min-width: var(--ack-target, 44px);
|
|
44
50
|
min-height: var(--ack-target, 44px);
|
|
45
51
|
}
|
|
@@ -978,6 +984,1065 @@
|
|
|
978
984
|
stroke-linecap: round;
|
|
979
985
|
}
|
|
980
986
|
|
|
987
|
+
/* Anchored popovers: a menu and a tooltip sit in the top layer against
|
|
988
|
+
their trigger by CSS anchor positioning (the components link them by
|
|
989
|
+
inline anchor names). `data-side` picks the side, `data-align` the line;
|
|
990
|
+
they flip to the other side when the viewport has no room, and shift
|
|
991
|
+
inside it when they would overflow it. */
|
|
992
|
+
|
|
993
|
+
:where(.ack-menu, .ack-tooltip) {
|
|
994
|
+
inset: auto;
|
|
995
|
+
margin: 0;
|
|
996
|
+
position-try-fallbacks:
|
|
997
|
+
flip-block,
|
|
998
|
+
flip-inline,
|
|
999
|
+
flip-block flip-inline;
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-end"] {
|
|
1003
|
+
margin-block-start: var(--ack-popover-offset);
|
|
1004
|
+
}
|
|
1005
|
+
|
|
1006
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-start"] {
|
|
1007
|
+
margin-block-end: var(--ack-popover-offset);
|
|
1008
|
+
}
|
|
1009
|
+
|
|
1010
|
+
:where(.ack-menu, .ack-tooltip)[data-side="inline-end"] {
|
|
1011
|
+
margin-inline-start: var(--ack-popover-offset);
|
|
1012
|
+
}
|
|
1013
|
+
|
|
1014
|
+
:where(.ack-menu, .ack-tooltip)[data-side="inline-start"] {
|
|
1015
|
+
margin-inline-end: var(--ack-popover-offset);
|
|
1016
|
+
}
|
|
1017
|
+
|
|
1018
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-end"][data-align="start"] {
|
|
1019
|
+
position-area: block-end span-inline-end;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-end"][data-align="center"] {
|
|
1023
|
+
position-area: block-end;
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-end"][data-align="end"] {
|
|
1027
|
+
position-area: block-end span-inline-start;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-start"][data-align="start"] {
|
|
1031
|
+
position-area: block-start span-inline-end;
|
|
1032
|
+
}
|
|
1033
|
+
|
|
1034
|
+
:where(
|
|
1035
|
+
.ack-menu,
|
|
1036
|
+
.ack-tooltip
|
|
1037
|
+
)[data-side="block-start"][data-align="center"] {
|
|
1038
|
+
position-area: block-start;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
:where(.ack-menu, .ack-tooltip)[data-side="block-start"][data-align="end"] {
|
|
1042
|
+
position-area: block-start span-inline-start;
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
:where(.ack-menu, .ack-tooltip)[data-side="inline-end"][data-align="start"] {
|
|
1046
|
+
position-area: inline-end span-block-end;
|
|
1047
|
+
}
|
|
1048
|
+
|
|
1049
|
+
:where(.ack-menu, .ack-tooltip)[data-side="inline-end"][data-align="center"] {
|
|
1050
|
+
position-area: inline-end;
|
|
1051
|
+
}
|
|
1052
|
+
|
|
1053
|
+
:where(.ack-menu, .ack-tooltip)[data-side="inline-end"][data-align="end"] {
|
|
1054
|
+
position-area: inline-end span-block-start;
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
:where(
|
|
1058
|
+
.ack-menu,
|
|
1059
|
+
.ack-tooltip
|
|
1060
|
+
)[data-side="inline-start"][data-align="start"] {
|
|
1061
|
+
position-area: inline-start span-block-end;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
:where(
|
|
1065
|
+
.ack-menu,
|
|
1066
|
+
.ack-tooltip
|
|
1067
|
+
)[data-side="inline-start"][data-align="center"] {
|
|
1068
|
+
position-area: inline-start;
|
|
1069
|
+
}
|
|
1070
|
+
|
|
1071
|
+
:where(.ack-menu, .ack-tooltip)[data-side="inline-start"][data-align="end"] {
|
|
1072
|
+
position-area: inline-start span-block-start;
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1075
|
+
/* Without anchor positioning (or its polyfill), the popover keeps the
|
|
1076
|
+
browser's place: the middle of the viewport. */
|
|
1077
|
+
@supports not (anchor-name: --ack-anchor) {
|
|
1078
|
+
:where(.ack-menu, .ack-tooltip)[data-side] {
|
|
1079
|
+
inset: 0;
|
|
1080
|
+
margin: auto;
|
|
1081
|
+
}
|
|
1082
|
+
}
|
|
1083
|
+
|
|
1084
|
+
/* Menu button and menu */
|
|
1085
|
+
|
|
1086
|
+
.ack-menu-button-chevron {
|
|
1087
|
+
display: inline-flex;
|
|
1088
|
+
width: 12px;
|
|
1089
|
+
height: 12px;
|
|
1090
|
+
transition: transform var(--ack-motion, 120ms ease-out);
|
|
1091
|
+
}
|
|
1092
|
+
|
|
1093
|
+
.ack-menu-button-chevron > svg {
|
|
1094
|
+
width: 100%;
|
|
1095
|
+
height: 100%;
|
|
1096
|
+
fill: none;
|
|
1097
|
+
stroke: currentColor;
|
|
1098
|
+
stroke-width: 2;
|
|
1099
|
+
stroke-linecap: round;
|
|
1100
|
+
stroke-linejoin: round;
|
|
1101
|
+
}
|
|
1102
|
+
|
|
1103
|
+
.ack-menu-button[aria-expanded="true"] .ack-menu-button-chevron {
|
|
1104
|
+
transform: rotate(180deg);
|
|
1105
|
+
}
|
|
1106
|
+
|
|
1107
|
+
.ack-menu {
|
|
1108
|
+
--ack-popover-offset: var(--ack-menu-offset, 4px);
|
|
1109
|
+
|
|
1110
|
+
box-sizing: border-box;
|
|
1111
|
+
min-inline-size: var(--ack-menu-min-width, 10rem);
|
|
1112
|
+
min-inline-size: max(var(--ack-menu-min-width, 10rem), anchor-size(inline));
|
|
1113
|
+
max-inline-size: calc(100vw - 16px);
|
|
1114
|
+
max-block-size: min(var(--ack-menu-max-height, 24rem), 100%);
|
|
1115
|
+
overflow-y: auto;
|
|
1116
|
+
overscroll-behavior: contain;
|
|
1117
|
+
padding: 4px;
|
|
1118
|
+
border: 1px solid
|
|
1119
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
1120
|
+
border-radius: var(--ack-radius, 6px);
|
|
1121
|
+
background: var(--ack-menu-background, Canvas);
|
|
1122
|
+
color: var(--ack-menu-text, CanvasText);
|
|
1123
|
+
box-shadow: var(--ack-menu-shadow, 0 6px 24px rgb(0 0 0 / 0.18));
|
|
1124
|
+
opacity: 0;
|
|
1125
|
+
transition:
|
|
1126
|
+
opacity var(--ack-motion, 120ms ease-out),
|
|
1127
|
+
overlay var(--ack-motion, 120ms ease-out) allow-discrete,
|
|
1128
|
+
display var(--ack-motion, 120ms ease-out) allow-discrete;
|
|
1129
|
+
}
|
|
1130
|
+
|
|
1131
|
+
.ack-menu:popover-open {
|
|
1132
|
+
opacity: 1;
|
|
1133
|
+
}
|
|
1134
|
+
|
|
1135
|
+
@starting-style {
|
|
1136
|
+
.ack-menu:popover-open {
|
|
1137
|
+
opacity: 0;
|
|
1138
|
+
}
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
.ack-menu:focus {
|
|
1142
|
+
outline: none;
|
|
1143
|
+
}
|
|
1144
|
+
|
|
1145
|
+
.ack-menu-item {
|
|
1146
|
+
display: flex;
|
|
1147
|
+
align-items: center;
|
|
1148
|
+
gap: 8px;
|
|
1149
|
+
box-sizing: border-box;
|
|
1150
|
+
min-block-size: var(--ack-target, 44px);
|
|
1151
|
+
padding-inline: 8px 12px;
|
|
1152
|
+
border-radius: var(--ack-radius-small, 4px);
|
|
1153
|
+
cursor: default;
|
|
1154
|
+
user-select: none;
|
|
1155
|
+
-webkit-user-select: none;
|
|
1156
|
+
}
|
|
1157
|
+
|
|
1158
|
+
/* A mouse focuses the item it moves over, so focus is the highlight. */
|
|
1159
|
+
.ack-menu-item:focus {
|
|
1160
|
+
outline: none;
|
|
1161
|
+
background: var(
|
|
1162
|
+
--ack-menu-item-focus,
|
|
1163
|
+
color-mix(in srgb, currentColor 12%, transparent)
|
|
1164
|
+
);
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
.ack-menu-item:focus-visible {
|
|
1168
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-accent, #2563c9));
|
|
1169
|
+
outline-offset: -2px;
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
.ack-menu-item[aria-disabled="true"] {
|
|
1173
|
+
opacity: 0.45;
|
|
1174
|
+
}
|
|
1175
|
+
|
|
1176
|
+
.ack-menu-item-indicator,
|
|
1177
|
+
.ack-menu-item-icon {
|
|
1178
|
+
display: inline-flex;
|
|
1179
|
+
flex: none;
|
|
1180
|
+
width: 16px;
|
|
1181
|
+
height: 16px;
|
|
1182
|
+
}
|
|
1183
|
+
|
|
1184
|
+
.ack-menu-item-indicator > svg {
|
|
1185
|
+
width: 100%;
|
|
1186
|
+
height: 100%;
|
|
1187
|
+
fill: none;
|
|
1188
|
+
stroke: currentColor;
|
|
1189
|
+
stroke-width: 2;
|
|
1190
|
+
stroke-linecap: round;
|
|
1191
|
+
stroke-linejoin: round;
|
|
1192
|
+
}
|
|
1193
|
+
|
|
1194
|
+
.ack-menu-item[data-kind="radio"] .ack-menu-item-indicator > svg {
|
|
1195
|
+
fill: currentColor;
|
|
1196
|
+
}
|
|
1197
|
+
|
|
1198
|
+
.ack-menu-item[aria-checked="false"] .ack-menu-item-indicator {
|
|
1199
|
+
visibility: hidden;
|
|
1200
|
+
}
|
|
1201
|
+
|
|
1202
|
+
.ack-menu-item-icon > svg {
|
|
1203
|
+
width: 100%;
|
|
1204
|
+
height: 100%;
|
|
1205
|
+
}
|
|
1206
|
+
|
|
1207
|
+
.ack-menu-item-label {
|
|
1208
|
+
flex: 1;
|
|
1209
|
+
min-inline-size: 0;
|
|
1210
|
+
}
|
|
1211
|
+
|
|
1212
|
+
.ack-menu-group-label {
|
|
1213
|
+
padding: 8px 12px 4px;
|
|
1214
|
+
font-size: 12px;
|
|
1215
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 65%, transparent));
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
.ack-menu-separator {
|
|
1219
|
+
block-size: 1px;
|
|
1220
|
+
margin: 4px 0;
|
|
1221
|
+
background: var(
|
|
1222
|
+
--ack-line,
|
|
1223
|
+
color-mix(in srgb, currentColor 28%, transparent)
|
|
1224
|
+
);
|
|
1225
|
+
}
|
|
1226
|
+
|
|
1227
|
+
/* Tooltip: short text above its trigger, in the page's colours inverted. */
|
|
1228
|
+
|
|
1229
|
+
.ack-tooltip {
|
|
1230
|
+
--ack-popover-offset: var(--ack-tooltip-offset, 6px);
|
|
1231
|
+
|
|
1232
|
+
box-sizing: border-box;
|
|
1233
|
+
max-inline-size: min(
|
|
1234
|
+
var(--ack-tooltip-max-width, 18rem),
|
|
1235
|
+
calc(100vw - 16px)
|
|
1236
|
+
);
|
|
1237
|
+
padding: 4px 8px;
|
|
1238
|
+
/* Transparent, until forced colours draw it. */
|
|
1239
|
+
border: 1px solid transparent;
|
|
1240
|
+
border-radius: var(--ack-radius-small, 4px);
|
|
1241
|
+
background: var(--ack-tooltip-background, CanvasText);
|
|
1242
|
+
color: var(--ack-tooltip-text, Canvas);
|
|
1243
|
+
font-size: 13px;
|
|
1244
|
+
line-height: 1.35;
|
|
1245
|
+
overflow: visible;
|
|
1246
|
+
overflow-wrap: anywhere;
|
|
1247
|
+
opacity: 0;
|
|
1248
|
+
transition:
|
|
1249
|
+
opacity var(--ack-motion, 120ms ease-out),
|
|
1250
|
+
overlay var(--ack-motion, 120ms ease-out) allow-discrete,
|
|
1251
|
+
display var(--ack-motion, 120ms ease-out) allow-discrete;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
.ack-tooltip:popover-open {
|
|
1255
|
+
opacity: 1;
|
|
1256
|
+
}
|
|
1257
|
+
|
|
1258
|
+
@starting-style {
|
|
1259
|
+
.ack-tooltip:popover-open {
|
|
1260
|
+
opacity: 0;
|
|
1261
|
+
}
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
/* Toaster: a manual popover at an edge of the viewport, holding a list of
|
|
1265
|
+
toasts. Only the toasts take the pointer. */
|
|
1266
|
+
|
|
1267
|
+
.ack-toaster {
|
|
1268
|
+
box-sizing: border-box;
|
|
1269
|
+
inset: auto;
|
|
1270
|
+
inline-size: min(
|
|
1271
|
+
var(--ack-toast-width, 24rem),
|
|
1272
|
+
calc(100vw - 2 * var(--ack-toaster-inset, 16px))
|
|
1273
|
+
);
|
|
1274
|
+
margin: 0;
|
|
1275
|
+
padding: 0;
|
|
1276
|
+
border: 0;
|
|
1277
|
+
background: transparent;
|
|
1278
|
+
color: inherit;
|
|
1279
|
+
overflow: visible;
|
|
1280
|
+
pointer-events: none;
|
|
1281
|
+
}
|
|
1282
|
+
|
|
1283
|
+
.ack-toaster:focus-visible {
|
|
1284
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-accent, #2563c9));
|
|
1285
|
+
outline-offset: 4px;
|
|
1286
|
+
}
|
|
1287
|
+
|
|
1288
|
+
.ack-toaster[data-position^="top"] {
|
|
1289
|
+
top: max(var(--ack-toaster-inset, 16px), env(safe-area-inset-top, 0px));
|
|
1290
|
+
}
|
|
1291
|
+
|
|
1292
|
+
.ack-toaster[data-position^="bottom"] {
|
|
1293
|
+
bottom: max(
|
|
1294
|
+
var(--ack-toaster-inset, 16px),
|
|
1295
|
+
env(safe-area-inset-bottom, 0px)
|
|
1296
|
+
);
|
|
1297
|
+
}
|
|
1298
|
+
|
|
1299
|
+
.ack-toaster[data-position$="-start"] {
|
|
1300
|
+
left: max(var(--ack-toaster-inset, 16px), env(safe-area-inset-left, 0px));
|
|
1301
|
+
}
|
|
1302
|
+
|
|
1303
|
+
.ack-toaster[data-position$="-end"] {
|
|
1304
|
+
right: max(var(--ack-toaster-inset, 16px), env(safe-area-inset-right, 0px));
|
|
1305
|
+
}
|
|
1306
|
+
|
|
1307
|
+
.ack-toaster[data-position$="-start"]:dir(rtl) {
|
|
1308
|
+
right: max(var(--ack-toaster-inset, 16px), env(safe-area-inset-right, 0px));
|
|
1309
|
+
left: auto;
|
|
1310
|
+
}
|
|
1311
|
+
|
|
1312
|
+
.ack-toaster[data-position$="-end"]:dir(rtl) {
|
|
1313
|
+
left: max(var(--ack-toaster-inset, 16px), env(safe-area-inset-left, 0px));
|
|
1314
|
+
right: auto;
|
|
1315
|
+
}
|
|
1316
|
+
|
|
1317
|
+
.ack-toaster[data-position$="-center"] {
|
|
1318
|
+
right: 0;
|
|
1319
|
+
left: 0;
|
|
1320
|
+
margin-inline: auto;
|
|
1321
|
+
}
|
|
1322
|
+
|
|
1323
|
+
.ack-toaster-list {
|
|
1324
|
+
display: flex;
|
|
1325
|
+
flex-direction: column;
|
|
1326
|
+
gap: var(--ack-toast-gap, 8px);
|
|
1327
|
+
margin: 0;
|
|
1328
|
+
padding: 0;
|
|
1329
|
+
list-style: none;
|
|
1330
|
+
}
|
|
1331
|
+
|
|
1332
|
+
.ack-toast {
|
|
1333
|
+
--ack-toast-accent: var(--ack-accent, #2563c9);
|
|
1334
|
+
--ack-toast-shift: 8px;
|
|
1335
|
+
|
|
1336
|
+
display: flex;
|
|
1337
|
+
align-items: center;
|
|
1338
|
+
gap: 8px;
|
|
1339
|
+
padding-block: 4px;
|
|
1340
|
+
padding-inline: 12px 4px;
|
|
1341
|
+
border: 1px solid
|
|
1342
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
1343
|
+
border-inline-start: 4px solid var(--ack-toast-accent);
|
|
1344
|
+
border-radius: var(--ack-radius, 6px);
|
|
1345
|
+
background: var(--ack-toast-background, Canvas);
|
|
1346
|
+
color: var(--ack-toast-text, CanvasText);
|
|
1347
|
+
box-shadow: var(--ack-toast-shadow, 0 6px 24px rgb(0 0 0 / 0.18));
|
|
1348
|
+
pointer-events: auto;
|
|
1349
|
+
transition:
|
|
1350
|
+
opacity var(--ack-motion, 120ms ease-out),
|
|
1351
|
+
transform var(--ack-motion, 120ms ease-out);
|
|
1352
|
+
}
|
|
1353
|
+
|
|
1354
|
+
.ack-toaster[data-position^="top"] .ack-toast {
|
|
1355
|
+
--ack-toast-shift: -8px;
|
|
1356
|
+
}
|
|
1357
|
+
|
|
1358
|
+
.ack-toast[data-tone="positive"] {
|
|
1359
|
+
--ack-toast-accent: var(--ack-tone-positive, #1f7a45);
|
|
1360
|
+
}
|
|
1361
|
+
|
|
1362
|
+
.ack-toast[data-tone="warning"] {
|
|
1363
|
+
--ack-toast-accent: var(--ack-tone-warning, #e08a12);
|
|
1364
|
+
}
|
|
1365
|
+
|
|
1366
|
+
.ack-toast[data-tone="negative"] {
|
|
1367
|
+
--ack-toast-accent: var(--ack-tone-negative, #c4372e);
|
|
1368
|
+
}
|
|
1369
|
+
|
|
1370
|
+
@starting-style {
|
|
1371
|
+
.ack-toast {
|
|
1372
|
+
opacity: 0;
|
|
1373
|
+
transform: translateY(var(--ack-toast-shift));
|
|
1374
|
+
}
|
|
1375
|
+
}
|
|
1376
|
+
|
|
1377
|
+
.ack-toast[data-state="closing"] {
|
|
1378
|
+
opacity: 0;
|
|
1379
|
+
transform: translateY(var(--ack-toast-shift));
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
/* Over the focused control, toasts fade until hovered, so focus stays in
|
|
1383
|
+
sight. */
|
|
1384
|
+
.ack-toaster[data-obscuring]
|
|
1385
|
+
.ack-toast[data-state="open"]:not(:hover, :focus-within) {
|
|
1386
|
+
opacity: var(--ack-toast-obscuring-opacity, 0.2);
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
.ack-toast-text {
|
|
1390
|
+
flex: 1;
|
|
1391
|
+
min-inline-size: 0;
|
|
1392
|
+
padding-block: 6px;
|
|
1393
|
+
}
|
|
1394
|
+
|
|
1395
|
+
.ack-toast-title,
|
|
1396
|
+
.ack-toast-description {
|
|
1397
|
+
margin: 0;
|
|
1398
|
+
}
|
|
1399
|
+
|
|
1400
|
+
.ack-toast-title {
|
|
1401
|
+
font-weight: 600;
|
|
1402
|
+
}
|
|
1403
|
+
|
|
1404
|
+
.ack-toast-description {
|
|
1405
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 65%, transparent));
|
|
1406
|
+
}
|
|
1407
|
+
|
|
1408
|
+
.ack-toast-close .ack-button-icon > svg {
|
|
1409
|
+
width: 16px;
|
|
1410
|
+
height: 16px;
|
|
1411
|
+
fill: none;
|
|
1412
|
+
stroke: currentColor;
|
|
1413
|
+
stroke-width: 2;
|
|
1414
|
+
stroke-linecap: round;
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
/* Tabs: a row (or a column) of tabs over their panels. The selected tab
|
|
1418
|
+
carries a bar in its tone along the panel's edge, besides its text
|
|
1419
|
+
colour. */
|
|
1420
|
+
|
|
1421
|
+
.ack-tabs {
|
|
1422
|
+
display: flex;
|
|
1423
|
+
flex-direction: column;
|
|
1424
|
+
gap: var(--ack-tabs-gap, 12px);
|
|
1425
|
+
}
|
|
1426
|
+
|
|
1427
|
+
.ack-tabs[data-orientation="vertical"] {
|
|
1428
|
+
flex-direction: row;
|
|
1429
|
+
}
|
|
1430
|
+
|
|
1431
|
+
.ack-tab-list {
|
|
1432
|
+
display: flex;
|
|
1433
|
+
gap: 2px;
|
|
1434
|
+
overflow: auto hidden;
|
|
1435
|
+
scrollbar-width: thin;
|
|
1436
|
+
border-block-end: 1px solid
|
|
1437
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
1438
|
+
}
|
|
1439
|
+
|
|
1440
|
+
.ack-tab-list:focus {
|
|
1441
|
+
outline: none;
|
|
1442
|
+
}
|
|
1443
|
+
|
|
1444
|
+
.ack-tab-list[data-orientation="vertical"] {
|
|
1445
|
+
flex: none;
|
|
1446
|
+
flex-direction: column;
|
|
1447
|
+
overflow: visible auto;
|
|
1448
|
+
border-block-end: 0;
|
|
1449
|
+
border-inline-end: 1px solid
|
|
1450
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
.ack-tab {
|
|
1454
|
+
position: relative;
|
|
1455
|
+
display: inline-flex;
|
|
1456
|
+
flex: none;
|
|
1457
|
+
align-items: center;
|
|
1458
|
+
justify-content: center;
|
|
1459
|
+
gap: 8px;
|
|
1460
|
+
box-sizing: border-box;
|
|
1461
|
+
min-inline-size: var(--ack-target, 44px);
|
|
1462
|
+
min-block-size: var(--ack-target, 44px);
|
|
1463
|
+
padding: 0 16px;
|
|
1464
|
+
border: 0;
|
|
1465
|
+
background: none;
|
|
1466
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 65%, transparent));
|
|
1467
|
+
font: inherit;
|
|
1468
|
+
font-size: 14px;
|
|
1469
|
+
font-weight: 600;
|
|
1470
|
+
white-space: nowrap;
|
|
1471
|
+
cursor: pointer;
|
|
1472
|
+
touch-action: manipulation;
|
|
1473
|
+
transition: color var(--ack-motion, 120ms ease-out);
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
.ack-tab::after {
|
|
1477
|
+
position: absolute;
|
|
1478
|
+
inset-inline: 8px;
|
|
1479
|
+
inset-block-end: 0;
|
|
1480
|
+
block-size: var(--ack-tab-indicator-thickness, 3px);
|
|
1481
|
+
border-radius: var(--ack-tab-indicator-thickness, 3px);
|
|
1482
|
+
background: transparent;
|
|
1483
|
+
content: "";
|
|
1484
|
+
}
|
|
1485
|
+
|
|
1486
|
+
.ack-tab-list[data-orientation="vertical"] .ack-tab {
|
|
1487
|
+
justify-content: flex-start;
|
|
1488
|
+
}
|
|
1489
|
+
|
|
1490
|
+
.ack-tab-list[data-orientation="vertical"] .ack-tab::after {
|
|
1491
|
+
inset-block: 8px;
|
|
1492
|
+
inset-inline: auto 0;
|
|
1493
|
+
inline-size: var(--ack-tab-indicator-thickness, 3px);
|
|
1494
|
+
block-size: auto;
|
|
1495
|
+
}
|
|
1496
|
+
|
|
1497
|
+
.ack-tab:is(:hover, [aria-selected="true"]):not([aria-disabled="true"]) {
|
|
1498
|
+
color: inherit;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
.ack-tab[aria-selected="true"]::after {
|
|
1502
|
+
background: var(--ack-tab-indicator, var(--ack-lit));
|
|
1503
|
+
}
|
|
1504
|
+
|
|
1505
|
+
.ack-tab:focus-visible {
|
|
1506
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-lit));
|
|
1507
|
+
outline-offset: -2px;
|
|
1508
|
+
border-radius: var(--ack-radius-small, 4px);
|
|
1509
|
+
}
|
|
1510
|
+
|
|
1511
|
+
.ack-tab[aria-disabled="true"] {
|
|
1512
|
+
opacity: 0.45;
|
|
1513
|
+
cursor: default;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
.ack-tab-icon {
|
|
1517
|
+
display: inline-flex;
|
|
1518
|
+
flex: none;
|
|
1519
|
+
width: var(--ack-button-icon-size, 20px);
|
|
1520
|
+
height: var(--ack-button-icon-size, 20px);
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
.ack-tab-icon > :is(svg, img) {
|
|
1524
|
+
width: 100%;
|
|
1525
|
+
height: 100%;
|
|
1526
|
+
}
|
|
1527
|
+
|
|
1528
|
+
.ack-tab-panel {
|
|
1529
|
+
flex: 1;
|
|
1530
|
+
min-inline-size: 0;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
.ack-tab-panel:focus-visible {
|
|
1534
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-lit));
|
|
1535
|
+
outline-offset: 2px;
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1538
|
+
/* Progress ring: an arc filled clockwise from twelve o'clock to
|
|
1539
|
+
`--ack-progress-fraction`, which the component sets from 0 to 1; a turning
|
|
1540
|
+
quarter while indeterminate. */
|
|
1541
|
+
|
|
1542
|
+
.ack-progress-ring {
|
|
1543
|
+
--ack-progress-fraction: 0;
|
|
1544
|
+
display: inline-grid;
|
|
1545
|
+
place-items: center;
|
|
1546
|
+
inline-size: var(--ack-progress-ring-size, 48px);
|
|
1547
|
+
block-size: var(--ack-progress-ring-size, 48px);
|
|
1548
|
+
vertical-align: middle;
|
|
1549
|
+
}
|
|
1550
|
+
|
|
1551
|
+
.ack-progress-ring-dial {
|
|
1552
|
+
grid-area: 1 / 1;
|
|
1553
|
+
inline-size: 100%;
|
|
1554
|
+
block-size: 100%;
|
|
1555
|
+
overflow: visible;
|
|
1556
|
+
transform: rotate(-90deg);
|
|
1557
|
+
}
|
|
1558
|
+
|
|
1559
|
+
.ack-progress-ring-track,
|
|
1560
|
+
.ack-progress-ring-indicator {
|
|
1561
|
+
fill: none;
|
|
1562
|
+
stroke-width: var(--ack-progress-ring-thickness, 4);
|
|
1563
|
+
}
|
|
1564
|
+
|
|
1565
|
+
.ack-progress-ring-track {
|
|
1566
|
+
stroke: var(
|
|
1567
|
+
--ack-progress-ring-track,
|
|
1568
|
+
var(
|
|
1569
|
+
--ack-surface-raised,
|
|
1570
|
+
color-mix(in srgb, currentColor 18%, transparent)
|
|
1571
|
+
)
|
|
1572
|
+
);
|
|
1573
|
+
}
|
|
1574
|
+
|
|
1575
|
+
.ack-progress-ring-indicator {
|
|
1576
|
+
stroke: var(--ack-lit);
|
|
1577
|
+
stroke-dasharray: var(--ack-progress-fraction) 1;
|
|
1578
|
+
transition: stroke-dasharray var(--ack-motion, 120ms ease-out);
|
|
1579
|
+
}
|
|
1580
|
+
|
|
1581
|
+
.ack-progress-ring[data-state="indeterminate"] .ack-progress-ring-indicator {
|
|
1582
|
+
stroke-dasharray: 0.25 1;
|
|
1583
|
+
stroke-linecap: round;
|
|
1584
|
+
}
|
|
1585
|
+
|
|
1586
|
+
.ack-progress-ring[data-state="indeterminate"] .ack-progress-ring-dial {
|
|
1587
|
+
animation: ack-progress-ring-turn 1s linear infinite;
|
|
1588
|
+
}
|
|
1589
|
+
|
|
1590
|
+
@keyframes ack-progress-ring-turn {
|
|
1591
|
+
from {
|
|
1592
|
+
transform: rotate(-90deg);
|
|
1593
|
+
}
|
|
1594
|
+
|
|
1595
|
+
to {
|
|
1596
|
+
transform: rotate(270deg);
|
|
1597
|
+
}
|
|
1598
|
+
}
|
|
1599
|
+
|
|
1600
|
+
.ack-progress-ring-value {
|
|
1601
|
+
grid-area: 1 / 1;
|
|
1602
|
+
font-family: var(--ack-font-mono, ui-monospace, monospace);
|
|
1603
|
+
font-size: var(--ack-progress-ring-value-size, 12px);
|
|
1604
|
+
font-variant-numeric: tabular-nums;
|
|
1605
|
+
}
|
|
1606
|
+
|
|
1607
|
+
/* Spin button: the value between its − and + buttons, each a full target. */
|
|
1608
|
+
|
|
1609
|
+
.ack-spin-button {
|
|
1610
|
+
display: inline-flex;
|
|
1611
|
+
flex-direction: column;
|
|
1612
|
+
gap: 4px;
|
|
1613
|
+
}
|
|
1614
|
+
|
|
1615
|
+
.ack-spin-button-label {
|
|
1616
|
+
font-size: 13px;
|
|
1617
|
+
}
|
|
1618
|
+
|
|
1619
|
+
.ack-spin-button-body {
|
|
1620
|
+
display: inline-flex;
|
|
1621
|
+
align-items: stretch;
|
|
1622
|
+
align-self: flex-start;
|
|
1623
|
+
border: 1px solid
|
|
1624
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
1625
|
+
border-radius: var(--ack-radius, 6px);
|
|
1626
|
+
background: var(
|
|
1627
|
+
--ack-spin-button-background,
|
|
1628
|
+
var(--ack-surface, color-mix(in srgb, currentColor 10%, transparent))
|
|
1629
|
+
);
|
|
1630
|
+
}
|
|
1631
|
+
|
|
1632
|
+
.ack-spin-button-field {
|
|
1633
|
+
display: inline-flex;
|
|
1634
|
+
align-items: center;
|
|
1635
|
+
justify-content: center;
|
|
1636
|
+
box-sizing: border-box;
|
|
1637
|
+
inline-size: var(--ack-spin-button-field-width, 5em);
|
|
1638
|
+
min-block-size: var(--ack-target, 44px);
|
|
1639
|
+
margin: 0;
|
|
1640
|
+
padding: 0 8px;
|
|
1641
|
+
border: 0;
|
|
1642
|
+
border-inline: 1px solid
|
|
1643
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
1644
|
+
background: transparent;
|
|
1645
|
+
color: inherit;
|
|
1646
|
+
font-family: var(--ack-font-mono, ui-monospace, monospace);
|
|
1647
|
+
font-size: 15px;
|
|
1648
|
+
font-variant-numeric: tabular-nums;
|
|
1649
|
+
text-align: center;
|
|
1650
|
+
}
|
|
1651
|
+
|
|
1652
|
+
.ack-spin-button-field:focus-visible {
|
|
1653
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-lit));
|
|
1654
|
+
outline-offset: -2px;
|
|
1655
|
+
}
|
|
1656
|
+
|
|
1657
|
+
/* Not a number: an outline and a wavy underline, not the colour alone. */
|
|
1658
|
+
.ack-spin-button-field[aria-invalid="true"] {
|
|
1659
|
+
outline: 2px solid var(--ack-tone-negative, #c4372e);
|
|
1660
|
+
outline-offset: -2px;
|
|
1661
|
+
text-decoration: underline wavy var(--ack-tone-negative, #c4372e);
|
|
1662
|
+
}
|
|
1663
|
+
|
|
1664
|
+
.ack-spin-button-step {
|
|
1665
|
+
display: inline-flex;
|
|
1666
|
+
flex: none;
|
|
1667
|
+
align-items: center;
|
|
1668
|
+
justify-content: center;
|
|
1669
|
+
box-sizing: border-box;
|
|
1670
|
+
inline-size: var(--ack-target, 44px);
|
|
1671
|
+
min-block-size: var(--ack-target, 44px);
|
|
1672
|
+
padding: 0;
|
|
1673
|
+
border: 0;
|
|
1674
|
+
background: transparent;
|
|
1675
|
+
color: inherit;
|
|
1676
|
+
cursor: pointer;
|
|
1677
|
+
touch-action: manipulation;
|
|
1678
|
+
transition: background var(--ack-motion, 120ms ease-out);
|
|
1679
|
+
}
|
|
1680
|
+
|
|
1681
|
+
.ack-spin-button-step:not(:disabled):hover {
|
|
1682
|
+
background: var(
|
|
1683
|
+
--ack-surface-raised,
|
|
1684
|
+
color-mix(in srgb, currentColor 18%, transparent)
|
|
1685
|
+
);
|
|
1686
|
+
}
|
|
1687
|
+
|
|
1688
|
+
.ack-spin-button-step:disabled {
|
|
1689
|
+
opacity: 0.45;
|
|
1690
|
+
cursor: default;
|
|
1691
|
+
}
|
|
1692
|
+
|
|
1693
|
+
/* The whole control is dimmed already. */
|
|
1694
|
+
.ack-spin-button[data-disabled] .ack-spin-button-step:disabled {
|
|
1695
|
+
opacity: 1;
|
|
1696
|
+
}
|
|
1697
|
+
|
|
1698
|
+
.ack-spin-button-icon {
|
|
1699
|
+
display: inline-flex;
|
|
1700
|
+
width: 16px;
|
|
1701
|
+
height: 16px;
|
|
1702
|
+
}
|
|
1703
|
+
|
|
1704
|
+
.ack-spin-button-icon > svg {
|
|
1705
|
+
width: 100%;
|
|
1706
|
+
height: 100%;
|
|
1707
|
+
fill: none;
|
|
1708
|
+
stroke: currentColor;
|
|
1709
|
+
stroke-width: 2;
|
|
1710
|
+
stroke-linecap: round;
|
|
1711
|
+
}
|
|
1712
|
+
|
|
1713
|
+
/* Tree view: one flat list of rows, each indented by its level
|
|
1714
|
+
(`--ack-tree-level`, set by the component). A selected row carries a bar
|
|
1715
|
+
in its tone at its start, besides its background. */
|
|
1716
|
+
|
|
1717
|
+
.ack-tree {
|
|
1718
|
+
margin: 0;
|
|
1719
|
+
padding: 0;
|
|
1720
|
+
list-style: none;
|
|
1721
|
+
}
|
|
1722
|
+
|
|
1723
|
+
.ack-tree-item {
|
|
1724
|
+
position: relative;
|
|
1725
|
+
display: flex;
|
|
1726
|
+
align-items: center;
|
|
1727
|
+
gap: 4px;
|
|
1728
|
+
box-sizing: border-box;
|
|
1729
|
+
min-block-size: var(--ack-tree-item-height, var(--ack-target, 44px));
|
|
1730
|
+
padding-inline: calc(
|
|
1731
|
+
4px + var(--ack-tree-indent, 1.25rem) * (var(--ack-tree-level, 1) - 1)
|
|
1732
|
+
)
|
|
1733
|
+
8px;
|
|
1734
|
+
border-radius: var(--ack-radius-small, 4px);
|
|
1735
|
+
cursor: default;
|
|
1736
|
+
user-select: none;
|
|
1737
|
+
-webkit-user-select: none;
|
|
1738
|
+
}
|
|
1739
|
+
|
|
1740
|
+
.ack-tree-item:hover {
|
|
1741
|
+
background: var(
|
|
1742
|
+
--ack-tree-item-hover,
|
|
1743
|
+
color-mix(in srgb, currentColor 6%, transparent)
|
|
1744
|
+
);
|
|
1745
|
+
}
|
|
1746
|
+
|
|
1747
|
+
.ack-tree-item[data-selected] {
|
|
1748
|
+
background: var(
|
|
1749
|
+
--ack-tree-item-selected,
|
|
1750
|
+
color-mix(in srgb, var(--ack-lit) 16%, transparent)
|
|
1751
|
+
);
|
|
1752
|
+
}
|
|
1753
|
+
|
|
1754
|
+
.ack-tree-item[data-selected]::before {
|
|
1755
|
+
position: absolute;
|
|
1756
|
+
inset-block: 4px;
|
|
1757
|
+
inset-inline-start: 0;
|
|
1758
|
+
inline-size: 3px;
|
|
1759
|
+
border-radius: 3px;
|
|
1760
|
+
background: var(--ack-lit);
|
|
1761
|
+
content: "";
|
|
1762
|
+
}
|
|
1763
|
+
|
|
1764
|
+
.ack-tree-item:focus {
|
|
1765
|
+
outline: none;
|
|
1766
|
+
}
|
|
1767
|
+
|
|
1768
|
+
.ack-tree-item:focus-visible {
|
|
1769
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-lit));
|
|
1770
|
+
outline-offset: -2px;
|
|
1771
|
+
}
|
|
1772
|
+
|
|
1773
|
+
.ack-tree-item[aria-disabled="true"] {
|
|
1774
|
+
opacity: 0.45;
|
|
1775
|
+
}
|
|
1776
|
+
|
|
1777
|
+
.ack-tree-item-toggle {
|
|
1778
|
+
display: inline-flex;
|
|
1779
|
+
flex: none;
|
|
1780
|
+
align-items: center;
|
|
1781
|
+
justify-content: center;
|
|
1782
|
+
inline-size: var(--ack-tree-toggle-size, 24px);
|
|
1783
|
+
block-size: var(--ack-tree-toggle-size, 24px);
|
|
1784
|
+
border-radius: var(--ack-radius-small, 4px);
|
|
1785
|
+
}
|
|
1786
|
+
|
|
1787
|
+
.ack-tree-item[aria-expanded] > .ack-tree-item-toggle {
|
|
1788
|
+
cursor: pointer;
|
|
1789
|
+
}
|
|
1790
|
+
|
|
1791
|
+
.ack-tree-item-toggle > svg {
|
|
1792
|
+
width: 16px;
|
|
1793
|
+
height: 16px;
|
|
1794
|
+
fill: none;
|
|
1795
|
+
stroke: currentColor;
|
|
1796
|
+
stroke-width: 2;
|
|
1797
|
+
stroke-linecap: round;
|
|
1798
|
+
stroke-linejoin: round;
|
|
1799
|
+
transition: transform var(--ack-motion, 120ms ease-out);
|
|
1800
|
+
}
|
|
1801
|
+
|
|
1802
|
+
.ack-tree-item-toggle:dir(rtl) > svg {
|
|
1803
|
+
transform: scaleX(-1);
|
|
1804
|
+
}
|
|
1805
|
+
|
|
1806
|
+
.ack-tree-item[aria-expanded="true"] > .ack-tree-item-toggle > svg {
|
|
1807
|
+
transform: rotate(90deg);
|
|
1808
|
+
}
|
|
1809
|
+
|
|
1810
|
+
/* Children loading: a turning arc in place of the mark. */
|
|
1811
|
+
.ack-tree-item-toggle[data-loading] > svg {
|
|
1812
|
+
display: none;
|
|
1813
|
+
}
|
|
1814
|
+
|
|
1815
|
+
.ack-tree-item-toggle[data-loading]::after {
|
|
1816
|
+
box-sizing: border-box;
|
|
1817
|
+
inline-size: 14px;
|
|
1818
|
+
block-size: 14px;
|
|
1819
|
+
border: 2px solid currentColor;
|
|
1820
|
+
border-block-start-color: transparent;
|
|
1821
|
+
border-radius: 50%;
|
|
1822
|
+
animation: ack-progress-ring-turn 1s linear infinite;
|
|
1823
|
+
content: "";
|
|
1824
|
+
}
|
|
1825
|
+
|
|
1826
|
+
.ack-tree-item-content {
|
|
1827
|
+
flex: 1;
|
|
1828
|
+
min-inline-size: 0;
|
|
1829
|
+
}
|
|
1830
|
+
|
|
1831
|
+
/* Forced colours drop backgrounds: the focused item keeps a visible mark. */
|
|
1832
|
+
@media (forced-colors: active) {
|
|
1833
|
+
.ack-menu-item:focus {
|
|
1834
|
+
outline: 2px solid Highlight;
|
|
1835
|
+
outline-offset: -2px;
|
|
1836
|
+
}
|
|
1837
|
+
|
|
1838
|
+
.ack-tab[aria-selected="true"]::after,
|
|
1839
|
+
.ack-tree-item[data-selected]::before {
|
|
1840
|
+
forced-color-adjust: none;
|
|
1841
|
+
background: SelectedItem;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
.ack-tree-item[data-selected] {
|
|
1845
|
+
forced-color-adjust: none;
|
|
1846
|
+
background: SelectedItem;
|
|
1847
|
+
color: SelectedItemText;
|
|
1848
|
+
}
|
|
1849
|
+
|
|
1850
|
+
.ack-progress-ring-dial {
|
|
1851
|
+
forced-color-adjust: none;
|
|
1852
|
+
}
|
|
1853
|
+
|
|
1854
|
+
.ack-progress-ring-track {
|
|
1855
|
+
stroke: GrayText;
|
|
1856
|
+
}
|
|
1857
|
+
|
|
1858
|
+
.ack-progress-ring-indicator {
|
|
1859
|
+
stroke: Highlight;
|
|
1860
|
+
}
|
|
1861
|
+
}
|
|
1862
|
+
|
|
1863
|
+
/* Bit grid: bytes as cells of bits or hex digits, read left to right. A
|
|
1864
|
+
changed cell is filled, so it reads without colour; a field tints its
|
|
1865
|
+
cells and is named in the legend and in each cell's name. */
|
|
1866
|
+
|
|
1867
|
+
.ack-bit-grid {
|
|
1868
|
+
display: grid;
|
|
1869
|
+
gap: 0.5em;
|
|
1870
|
+
font-family: var(--ack-font-mono, ui-monospace, monospace);
|
|
1871
|
+
font-size: var(--ack-bit-grid-font-size, 0.8125rem);
|
|
1872
|
+
}
|
|
1873
|
+
|
|
1874
|
+
.ack-bit-grid-cells {
|
|
1875
|
+
display: grid;
|
|
1876
|
+
gap: var(--ack-bit-grid-row-gap, 2px);
|
|
1877
|
+
}
|
|
1878
|
+
|
|
1879
|
+
.ack-bit-grid-row {
|
|
1880
|
+
display: grid;
|
|
1881
|
+
grid-template-columns: repeat(
|
|
1882
|
+
var(--ack-bit-grid-columns),
|
|
1883
|
+
minmax(var(--ack-bit-grid-cell-min, 1.1em), 1fr)
|
|
1884
|
+
);
|
|
1885
|
+
column-gap: 1px;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
.ack-bit-grid-cell {
|
|
1889
|
+
--ack-bit-grid-field: transparent;
|
|
1890
|
+
display: grid;
|
|
1891
|
+
place-items: center;
|
|
1892
|
+
min-height: var(--ack-bit-grid-cell-height, 1.7em);
|
|
1893
|
+
border-radius: 2px;
|
|
1894
|
+
background: color-mix(in srgb, var(--ack-bit-grid-field) 16%, transparent);
|
|
1895
|
+
box-shadow: inset 0 -2px 0 var(--ack-bit-grid-field);
|
|
1896
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 70%, transparent));
|
|
1897
|
+
cursor: default;
|
|
1898
|
+
transition:
|
|
1899
|
+
background var(--ack-motion, 120ms ease-out),
|
|
1900
|
+
color var(--ack-motion, 120ms ease-out);
|
|
1901
|
+
}
|
|
1902
|
+
|
|
1903
|
+
.ack-bit-grid-cell[data-value="1"],
|
|
1904
|
+
.ack-bit-grid[data-unit="byte"] .ack-bit-grid-cell {
|
|
1905
|
+
color: inherit;
|
|
1906
|
+
font-weight: 600;
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1909
|
+
.ack-bit-grid-cell[data-byte-start]:not([aria-colindex="1"]) {
|
|
1910
|
+
margin-inline-start: var(--ack-bit-grid-byte-gap, 3px);
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
.ack-bit-grid-cells:not([aria-readonly]) .ack-bit-grid-cell {
|
|
1914
|
+
cursor: pointer;
|
|
1915
|
+
}
|
|
1916
|
+
|
|
1917
|
+
.ack-bit-grid-cells:not([aria-readonly]) .ack-bit-grid-cell:hover {
|
|
1918
|
+
outline: 1px solid var(--ack-lit);
|
|
1919
|
+
}
|
|
1920
|
+
|
|
1921
|
+
.ack-bit-grid .ack-bit-grid-cell[data-changed] {
|
|
1922
|
+
background: var(--ack-lit);
|
|
1923
|
+
color: var(--ack-lit-ink);
|
|
1924
|
+
}
|
|
1925
|
+
|
|
1926
|
+
.ack-bit-grid-cell[aria-selected="true"] {
|
|
1927
|
+
outline: 2px solid var(--ack-lit);
|
|
1928
|
+
outline-offset: 1px;
|
|
1929
|
+
}
|
|
1930
|
+
|
|
1931
|
+
.ack-bit-grid-cell:focus-visible {
|
|
1932
|
+
outline: 2px solid var(--ack-focus-ring, var(--ack-lit));
|
|
1933
|
+
outline-offset: 1px;
|
|
1934
|
+
position: relative;
|
|
1935
|
+
z-index: 1;
|
|
1936
|
+
}
|
|
1937
|
+
|
|
1938
|
+
.ack-bit-grid-legend {
|
|
1939
|
+
display: flex;
|
|
1940
|
+
flex-wrap: wrap;
|
|
1941
|
+
gap: 0.25em 1em;
|
|
1942
|
+
margin: 0;
|
|
1943
|
+
padding: 0;
|
|
1944
|
+
list-style: none;
|
|
1945
|
+
font-family: inherit;
|
|
1946
|
+
}
|
|
1947
|
+
|
|
1948
|
+
.ack-bit-grid-field {
|
|
1949
|
+
--ack-bit-grid-field: transparent;
|
|
1950
|
+
display: inline-flex;
|
|
1951
|
+
align-items: center;
|
|
1952
|
+
gap: 0.4em;
|
|
1953
|
+
}
|
|
1954
|
+
|
|
1955
|
+
.ack-bit-grid-field::before {
|
|
1956
|
+
content: "";
|
|
1957
|
+
width: 0.9em;
|
|
1958
|
+
height: 0.9em;
|
|
1959
|
+
border-radius: 2px;
|
|
1960
|
+
background: color-mix(in srgb, var(--ack-bit-grid-field) 16%, transparent);
|
|
1961
|
+
box-shadow: inset 0 -2px 0 var(--ack-bit-grid-field);
|
|
1962
|
+
}
|
|
1963
|
+
|
|
1964
|
+
:is(.ack-bit-grid-cell, .ack-bit-grid-field)[data-field-tone="0"] {
|
|
1965
|
+
--ack-bit-grid-field: var(--ack-bit-grid-field-0, #2563c9);
|
|
1966
|
+
}
|
|
1967
|
+
|
|
1968
|
+
:is(.ack-bit-grid-cell, .ack-bit-grid-field)[data-field-tone="1"] {
|
|
1969
|
+
--ack-bit-grid-field: var(--ack-bit-grid-field-1, #1f7a45);
|
|
1970
|
+
}
|
|
1971
|
+
|
|
1972
|
+
:is(.ack-bit-grid-cell, .ack-bit-grid-field)[data-field-tone="2"] {
|
|
1973
|
+
--ack-bit-grid-field: var(--ack-bit-grid-field-2, #b45309);
|
|
1974
|
+
}
|
|
1975
|
+
|
|
1976
|
+
:is(.ack-bit-grid-cell, .ack-bit-grid-field)[data-field-tone="3"] {
|
|
1977
|
+
--ack-bit-grid-field: var(--ack-bit-grid-field-3, #7c3aed);
|
|
1978
|
+
}
|
|
1979
|
+
|
|
1980
|
+
:is(.ack-bit-grid-cell, .ack-bit-grid-field)[data-field-tone="4"] {
|
|
1981
|
+
--ack-bit-grid-field: var(--ack-bit-grid-field-4, #be185d);
|
|
1982
|
+
}
|
|
1983
|
+
|
|
1984
|
+
:is(.ack-bit-grid-cell, .ack-bit-grid-field)[data-field-tone="5"] {
|
|
1985
|
+
--ack-bit-grid-field: var(--ack-bit-grid-field-5, #0f766e);
|
|
1986
|
+
}
|
|
1987
|
+
|
|
1988
|
+
/* Swatch strip: named swatches in a row, or one gradient strip */
|
|
1989
|
+
|
|
1990
|
+
.ack-swatch-strip {
|
|
1991
|
+
display: grid;
|
|
1992
|
+
grid-template-columns: var(--ack-swatch-strip-label-width, 8em) 1fr;
|
|
1993
|
+
align-items: center;
|
|
1994
|
+
gap: 0.75em;
|
|
1995
|
+
}
|
|
1996
|
+
|
|
1997
|
+
.ack-swatch-strip[data-label-hidden] {
|
|
1998
|
+
grid-template-columns: 1fr;
|
|
1999
|
+
}
|
|
2000
|
+
|
|
2001
|
+
.ack-swatch-strip[data-label-hidden] .ack-swatch-strip-label {
|
|
2002
|
+
display: none;
|
|
2003
|
+
}
|
|
2004
|
+
|
|
2005
|
+
.ack-swatch-strip-label {
|
|
2006
|
+
font-weight: 600;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
.ack-swatch-strip-items {
|
|
2010
|
+
display: flex;
|
|
2011
|
+
gap: var(--ack-swatch-strip-gap, 2px);
|
|
2012
|
+
margin: 0;
|
|
2013
|
+
padding: 0;
|
|
2014
|
+
list-style: none;
|
|
2015
|
+
}
|
|
2016
|
+
|
|
2017
|
+
.ack-swatch-strip-item {
|
|
2018
|
+
display: grid;
|
|
2019
|
+
flex: 1 1 0;
|
|
2020
|
+
gap: 0.2em;
|
|
2021
|
+
min-width: 0;
|
|
2022
|
+
text-align: center;
|
|
2023
|
+
}
|
|
2024
|
+
|
|
2025
|
+
.ack-swatch-strip-swatch,
|
|
2026
|
+
.ack-swatch-strip-gradient {
|
|
2027
|
+
height: var(--ack-swatch-strip-height, 2.25em);
|
|
2028
|
+
border-radius: var(--ack-radius-small, 4px);
|
|
2029
|
+
box-shadow: inset 0 0 0 1px
|
|
2030
|
+
var(--ack-line, color-mix(in srgb, currentColor 28%, transparent));
|
|
2031
|
+
}
|
|
2032
|
+
|
|
2033
|
+
.ack-swatch-strip-swatch {
|
|
2034
|
+
display: block;
|
|
2035
|
+
}
|
|
2036
|
+
|
|
2037
|
+
.ack-swatch-strip-caption {
|
|
2038
|
+
overflow: hidden;
|
|
2039
|
+
font-size: 0.75em;
|
|
2040
|
+
font-variant-numeric: tabular-nums;
|
|
2041
|
+
text-overflow: ellipsis;
|
|
2042
|
+
white-space: nowrap;
|
|
2043
|
+
color: var(--ack-muted, color-mix(in srgb, currentColor 70%, transparent));
|
|
2044
|
+
}
|
|
2045
|
+
|
|
981
2046
|
@media (prefers-reduced-motion: reduce) {
|
|
982
2047
|
.ack-toggle-button,
|
|
983
2048
|
.ack-button,
|
|
@@ -985,8 +2050,24 @@
|
|
|
985
2050
|
.ack-switch-thumb,
|
|
986
2051
|
.ack-radio,
|
|
987
2052
|
.ack-dialog,
|
|
988
|
-
.ack-dialog::backdrop
|
|
2053
|
+
.ack-dialog::backdrop,
|
|
2054
|
+
.ack-menu,
|
|
2055
|
+
.ack-menu-button-chevron,
|
|
2056
|
+
.ack-tooltip,
|
|
2057
|
+
.ack-toast,
|
|
2058
|
+
.ack-tab,
|
|
2059
|
+
.ack-progress-ring-indicator,
|
|
2060
|
+
.ack-spin-button-step,
|
|
2061
|
+
.ack-bit-grid-cell,
|
|
2062
|
+
.ack-tree-item-toggle > svg {
|
|
989
2063
|
transition: none;
|
|
990
2064
|
}
|
|
2065
|
+
|
|
2066
|
+
/* Still: an indeterminate ring keeps its quarter arc, and a loading
|
|
2067
|
+
branch its arc, without turning. */
|
|
2068
|
+
.ack-progress-ring[data-state="indeterminate"] .ack-progress-ring-dial,
|
|
2069
|
+
.ack-tree-item-toggle[data-loading]::after {
|
|
2070
|
+
animation: none;
|
|
2071
|
+
}
|
|
991
2072
|
}
|
|
992
2073
|
}
|