@astl/editor 0.1.3 → 0.1.4
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
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# @astl/editor
|
|
2
2
|
|
|
3
|
+
## 0.1.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 8d3dc51: Selects keep their arrow off the border: the editor's selects (in the card and in a help box on the page) and the lists of the match fallback draw a chevron of their own, inset from the inline end with room for the text, mirrored in right-to-left text; under forced colours the platform's arrow stays. `nativeSelectCss(selector)` from `@astl/tokens` gives a host's own native selects the same chevron.
|
|
8
|
+
- Updated dependencies [8d3dc51]
|
|
9
|
+
- @astl/tokens@0.1.4
|
|
10
|
+
- @astl/player@0.1.4
|
|
11
|
+
- @astl/core@0.1.4
|
|
12
|
+
- @astl/engine@0.1.4
|
|
13
|
+
|
|
3
14
|
## 0.1.3
|
|
4
15
|
|
|
5
16
|
### Patch Changes
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/elements/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAkB,MAAM,KAAK,CAAC;AAE1E;;;GAGG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAIzD;AAED,8GAA8G;AAC9G,eAAO,MAAM,SAAS,EAAE,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../src/elements/styles.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,SAAS,EAAE,KAAK,cAAc,EAAkB,MAAM,KAAK,CAAC;AAE1E;;;GAGG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,CAIzD;AAED,8GAA8G;AAC9G,eAAO,MAAM,SAAS,EAAE,cAoJvB,CAAC"}
|
package/dist/elements/styles.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { visuallyHidden } from '@astl/player';
|
|
2
|
-
import { tokens, tokensCss } from '@astl/tokens';
|
|
2
|
+
import { nativeSelectCss, tokens, tokensCss } from '@astl/tokens';
|
|
3
3
|
import { css, unsafeCSS } from 'lit';
|
|
4
4
|
/**
|
|
5
5
|
* Every token as `inherit` on `selector`, for elements that redeclare the tokens on their own `:host` (the player): a
|
|
@@ -138,6 +138,8 @@ export const kitStyles = [
|
|
|
138
138
|
block-size: 1.25rem;
|
|
139
139
|
}
|
|
140
140
|
`,
|
|
141
|
+
// A select's chevron of its own, inset from the end like the dropdown's, after the fields' padding and background.
|
|
142
|
+
unsafeCSS(nativeSelectCss('select')),
|
|
141
143
|
// Forced colours: disabled as the system draws disabled controls (the dashed border stays). The Canvas backplate
|
|
142
144
|
// forced colours draw behind text would hide the HighlightText label on the Highlight fill, so the primary button
|
|
143
145
|
// uses only system colours here and keeps its own. Disabled, it stays forced: its muted label would not read on the
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/elements/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"styles.js","sourceRoot":"","sources":["../../src/elements/styles.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAClE,OAAO,EAAuC,GAAG,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC;AAE1E;;;GAGG;AACH,MAAM,UAAU,aAAa,CAAC,QAAgB;IAC5C,MAAM,KAAK,GAAG,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;IAChG,MAAM,KAAK,GAAG,CAAC,wBAAwB,EAAE,GAAG,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,UAAU,IAAI,YAAY,CAAC,CAAC,CAAC;IAC7F,OAAO,SAAS,CAAC,GAAG,QAAQ,OAAO,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,8GAA8G;AAC9G,MAAM,CAAC,MAAM,SAAS,GAAmB;IACvC,8FAA8F;IAC9F,SAAS,CAAC,SAAS,CAAC,OAAO,CAAC,CAAC;IAC7B,cAAc;IACd,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+DF;IACD,gHAAgH;IAChH,iHAAiH;IACjH,GAAG,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDF;IACD,mHAAmH;IACnH,SAAS,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC;IACpC,iHAAiH;IACjH,kHAAkH;IAClH,oHAAoH;IACpH,QAAQ;IACR,GAAG,CAAA;;;;;;;;;;;;;;GAcF;CACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@astl/editor",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.4",
|
|
4
4
|
"description": "Editor-agnostic authoring kit: templates, ids, inspector, issues, insert menu and preview over an EditorAdapter. Bring any WYSIWYG editor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"astrolabe",
|
|
@@ -48,10 +48,10 @@
|
|
|
48
48
|
"access": "public"
|
|
49
49
|
},
|
|
50
50
|
"dependencies": {
|
|
51
|
-
"@astl/core": "0.1.
|
|
52
|
-
"@astl/engine": "0.1.
|
|
53
|
-
"@astl/player": "0.1.
|
|
54
|
-
"@astl/tokens": "0.1.
|
|
51
|
+
"@astl/core": "0.1.4",
|
|
52
|
+
"@astl/engine": "0.1.4",
|
|
53
|
+
"@astl/player": "0.1.4",
|
|
54
|
+
"@astl/tokens": "0.1.4",
|
|
55
55
|
"lit": "3.3.3"
|
|
56
56
|
}
|
|
57
57
|
}
|
package/src/elements/styles.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { visuallyHidden } from '@astl/player';
|
|
2
|
-
import { tokens, tokensCss } from '@astl/tokens';
|
|
2
|
+
import { nativeSelectCss, tokens, tokensCss } from '@astl/tokens';
|
|
3
3
|
import { type CSSResult, type CSSResultGroup, css, unsafeCSS } from 'lit';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -140,6 +140,8 @@ export const kitStyles: CSSResultGroup = [
|
|
|
140
140
|
block-size: 1.25rem;
|
|
141
141
|
}
|
|
142
142
|
`,
|
|
143
|
+
// A select's chevron of its own, inset from the end like the dropdown's, after the fields' padding and background.
|
|
144
|
+
unsafeCSS(nativeSelectCss('select')),
|
|
143
145
|
// Forced colours: disabled as the system draws disabled controls (the dashed border stays). The Canvas backplate
|
|
144
146
|
// forced colours draw behind text would hide the HighlightText label on the Highlight fill, so the primary button
|
|
145
147
|
// uses only system colours here and keeps its own. Disabled, it stays forced: its muted label would not read on the
|