@fairfox/polly 0.74.1 → 0.75.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.
- package/dist/src/polly-ui/Collapsible.d.ts +3 -1
- package/dist/src/polly-ui/Dropdown.d.ts +3 -1
- package/dist/src/polly-ui/FileInput.d.ts +25 -0
- package/dist/src/polly-ui/Html.d.ts +21 -0
- package/dist/src/polly-ui/Layout.d.ts +2 -1
- package/dist/src/polly-ui/Link.d.ts +25 -0
- package/dist/src/polly-ui/Output.d.ts +26 -0
- package/dist/src/polly-ui/Surface.d.ts +20 -3
- package/dist/src/polly-ui/Text.d.ts +2 -0
- package/dist/src/polly-ui/index.css +118 -11
- package/dist/src/polly-ui/index.d.ts +4 -0
- package/dist/src/polly-ui/index.js +168 -42
- package/dist/src/polly-ui/index.js.map +13 -9
- package/dist/src/polly-ui/internal/passthrough.d.ts +8 -4
- package/dist/src/polly-ui/markdown.d.ts +4 -0
- package/dist/src/polly-ui/markdown.js +3 -1
- package/dist/src/polly-ui/markdown.js.map +3 -3
- package/dist/src/polly-ui/styles.css +127 -11
- package/dist/src/polly-ui/theme.css +9 -0
- package/package.json +1 -1
|
@@ -113,6 +113,15 @@
|
|
|
113
113
|
min-inline-size: 0;
|
|
114
114
|
}
|
|
115
115
|
|
|
116
|
+
/* renderMarkdown output (polly#135). A fenced code block carries no
|
|
117
|
+
* polly class — it is raw sanitised HTML — so a long, unbreakable
|
|
118
|
+
* command line would stretch the page rather than scroll. Bound the
|
|
119
|
+
* <pre> to its container and let it scroll, matching <Code block>. */
|
|
120
|
+
[data-polly-markdown] pre {
|
|
121
|
+
max-inline-size: 100%;
|
|
122
|
+
overflow-x: auto;
|
|
123
|
+
}
|
|
124
|
+
|
|
116
125
|
/* Honour reduced-motion by zeroing every motion token. The components
|
|
117
126
|
* read only these tokens for their transitions, so a consumer preference
|
|
118
127
|
* of "reduce" makes every animation instant. */
|
|
@@ -369,18 +378,23 @@
|
|
|
369
378
|
}
|
|
370
379
|
|
|
371
380
|
.caret_daofbw {
|
|
372
|
-
color: var(--polly-
|
|
381
|
+
color: var(--polly-caret-color);
|
|
373
382
|
pointer-events: none;
|
|
383
|
+
transition: transform var(--polly-motion-fast) ease;
|
|
374
384
|
flex: none;
|
|
375
385
|
}
|
|
376
386
|
|
|
377
387
|
.caret_daofbw:before {
|
|
378
|
-
content:
|
|
388
|
+
content: var(--polly-caret-glyph);
|
|
379
389
|
display: block;
|
|
380
|
-
font-size: var(--polly-
|
|
390
|
+
font-size: var(--polly-caret-size);
|
|
381
391
|
line-height: 1;
|
|
382
392
|
}
|
|
383
393
|
|
|
394
|
+
.trigger_daofbw[data-open="true"] .caret_daofbw {
|
|
395
|
+
transform: rotate(180deg);
|
|
396
|
+
}
|
|
397
|
+
|
|
384
398
|
.placeholder_daofbw {
|
|
385
399
|
color: var(--polly-text-muted);
|
|
386
400
|
}
|
|
@@ -605,6 +619,7 @@
|
|
|
605
619
|
--s-inset: auto;
|
|
606
620
|
--s-transform: none;
|
|
607
621
|
--s-z: auto;
|
|
622
|
+
--s-pe: auto;
|
|
608
623
|
box-sizing: border-box;
|
|
609
624
|
padding: var(--s-p);
|
|
610
625
|
background: var(--s-bg);
|
|
@@ -623,6 +638,7 @@
|
|
|
623
638
|
inset: var(--s-inset);
|
|
624
639
|
transform: var(--s-transform);
|
|
625
640
|
z-index: var(--s-z);
|
|
641
|
+
pointer-events: var(--s-pe);
|
|
626
642
|
}
|
|
627
643
|
|
|
628
644
|
.inline_pQCFqA {
|
|
@@ -748,6 +764,9 @@
|
|
|
748
764
|
}
|
|
749
765
|
|
|
750
766
|
.summary_sEhnPw {
|
|
767
|
+
display: flex;
|
|
768
|
+
align-items: center;
|
|
769
|
+
gap: var(--polly-space-sm);
|
|
751
770
|
padding: var(--polly-space-sm) var(--polly-space-md);
|
|
752
771
|
cursor: pointer;
|
|
753
772
|
font-family: inherit;
|
|
@@ -763,16 +782,19 @@
|
|
|
763
782
|
display: none;
|
|
764
783
|
}
|
|
765
784
|
|
|
766
|
-
.summary_sEhnPw:
|
|
767
|
-
content:
|
|
768
|
-
display:
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
transition: transform var(--polly-motion-fast);
|
|
785
|
+
.summary_sEhnPw:after {
|
|
786
|
+
content: var(--polly-caret-glyph);
|
|
787
|
+
display: block;
|
|
788
|
+
font-size: var(--polly-caret-size);
|
|
789
|
+
color: var(--polly-caret-color);
|
|
790
|
+
transition: transform var(--polly-motion-fast) ease;
|
|
791
|
+
flex: none;
|
|
792
|
+
margin-inline-start: auto;
|
|
793
|
+
line-height: 1;
|
|
772
794
|
}
|
|
773
795
|
|
|
774
|
-
.collapsible_sEhnPw[open] > .summary_sEhnPw:
|
|
775
|
-
transform: rotate(
|
|
796
|
+
.collapsible_sEhnPw[open] > .summary_sEhnPw:after {
|
|
797
|
+
transform: rotate(180deg);
|
|
776
798
|
}
|
|
777
799
|
|
|
778
800
|
.summary_sEhnPw:hover {
|
|
@@ -908,6 +930,96 @@
|
|
|
908
930
|
}
|
|
909
931
|
}
|
|
910
932
|
|
|
933
|
+
/* src/polly-ui/FileInput.module.css */
|
|
934
|
+
@layer polly-components {
|
|
935
|
+
.fileInput_esO1fA {
|
|
936
|
+
display: inline-flex;
|
|
937
|
+
align-items: center;
|
|
938
|
+
gap: var(--polly-space-sm);
|
|
939
|
+
min-block-size: var(--polly-control-height-md);
|
|
940
|
+
padding: var(--polly-space-sm) var(--polly-space-md);
|
|
941
|
+
border: var(--polly-border-width-default) solid var(--polly-border);
|
|
942
|
+
border-radius: var(--polly-radius-sm);
|
|
943
|
+
background-color: var(--polly-surface);
|
|
944
|
+
font-family: inherit;
|
|
945
|
+
font-size: var(--polly-text-md);
|
|
946
|
+
color: var(--polly-text);
|
|
947
|
+
cursor: pointer;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
.fileInput_esO1fA:hover {
|
|
951
|
+
background-color: var(--polly-surface-sunken);
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
.fileInput_esO1fA:focus-within {
|
|
955
|
+
outline: var(--polly-border-width-medium) solid var(--polly-focus-ring);
|
|
956
|
+
outline-offset: var(--polly-border-width-medium);
|
|
957
|
+
}
|
|
958
|
+
|
|
959
|
+
.native_esO1fA {
|
|
960
|
+
position: absolute;
|
|
961
|
+
overflow: hidden;
|
|
962
|
+
clip: rect(0 0 0 0);
|
|
963
|
+
white-space: nowrap;
|
|
964
|
+
border: 0;
|
|
965
|
+
width: 1px;
|
|
966
|
+
height: 1px;
|
|
967
|
+
margin: -1px;
|
|
968
|
+
padding: 0;
|
|
969
|
+
}
|
|
970
|
+
|
|
971
|
+
.disabled_esO1fA {
|
|
972
|
+
opacity: var(--polly-opacity-disabled);
|
|
973
|
+
cursor: not-allowed;
|
|
974
|
+
}
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
/* src/polly-ui/Link.module.css */
|
|
978
|
+
@layer polly-components {
|
|
979
|
+
.link__T-0-w {
|
|
980
|
+
color: var(--polly-accent);
|
|
981
|
+
text-decoration: underline;
|
|
982
|
+
text-underline-offset: .15em;
|
|
983
|
+
border-radius: var(--polly-radius-sm);
|
|
984
|
+
cursor: pointer;
|
|
985
|
+
}
|
|
986
|
+
|
|
987
|
+
.link__T-0-w:hover {
|
|
988
|
+
color: var(--polly-accent-hover);
|
|
989
|
+
}
|
|
990
|
+
|
|
991
|
+
.subtle__T-0-w {
|
|
992
|
+
text-decoration: none;
|
|
993
|
+
}
|
|
994
|
+
|
|
995
|
+
.subtle__T-0-w:hover {
|
|
996
|
+
text-decoration: underline;
|
|
997
|
+
}
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
/* src/polly-ui/Output.module.css */
|
|
1001
|
+
@layer polly-components {
|
|
1002
|
+
.output_wLrUbA {
|
|
1003
|
+
padding: var(--polly-space-md);
|
|
1004
|
+
border: var(--polly-border-width-default) solid var(--polly-border);
|
|
1005
|
+
border-radius: var(--polly-radius-md);
|
|
1006
|
+
background-color: var(--polly-surface-sunken);
|
|
1007
|
+
font-family: var(--polly-font-mono);
|
|
1008
|
+
font-size: var(--polly-text-sm);
|
|
1009
|
+
color: var(--polly-text);
|
|
1010
|
+
white-space: pre-wrap;
|
|
1011
|
+
overflow-wrap: anywhere;
|
|
1012
|
+
max-inline-size: 100%;
|
|
1013
|
+
margin: 0;
|
|
1014
|
+
}
|
|
1015
|
+
|
|
1016
|
+
.scroll_wLrUbA {
|
|
1017
|
+
white-space: pre;
|
|
1018
|
+
overflow-wrap: normal;
|
|
1019
|
+
overflow-x: auto;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
|
|
911
1023
|
/* src/polly-ui/Skeleton.module.css */
|
|
912
1024
|
@layer polly-components {
|
|
913
1025
|
@keyframes pollyShimmer_gpBHJA {
|
|
@@ -1014,6 +1126,10 @@
|
|
|
1014
1126
|
font-style: italic;
|
|
1015
1127
|
}
|
|
1016
1128
|
|
|
1129
|
+
.strikethrough_75HKdQ {
|
|
1130
|
+
text-decoration: line-through;
|
|
1131
|
+
}
|
|
1132
|
+
|
|
1017
1133
|
.tight_75HKdQ {
|
|
1018
1134
|
line-height: var(--polly-line-height-tight);
|
|
1019
1135
|
}
|
|
@@ -80,6 +80,15 @@
|
|
|
80
80
|
--polly-control-height-md: 2.25rem;
|
|
81
81
|
--polly-control-height-lg: 2.75rem;
|
|
82
82
|
|
|
83
|
+
/* Disclosure caret — one glyph, one size, one colour shared across
|
|
84
|
+
* every disclosure-style primitive (Collapsible, Select / ActionSelect)
|
|
85
|
+
* so the indicator reads the same wherever it appears. Rotation
|
|
86
|
+
* magnitude stays per-use: a future primitive may want a quarter
|
|
87
|
+
* turn instead of a half turn (polly#137). */
|
|
88
|
+
--polly-caret-glyph: "\25BE";
|
|
89
|
+
--polly-caret-size: var(--polly-text-md);
|
|
90
|
+
--polly-caret-color: var(--polly-text-muted);
|
|
91
|
+
|
|
83
92
|
/* Motion */
|
|
84
93
|
--polly-motion-fast: 120ms;
|
|
85
94
|
--polly-motion-base: 200ms;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fairfox/polly",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.75.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"description": "Multi-execution-context framework with reactive state and cross-context messaging for Chrome extensions, PWAs, and worker-based applications",
|