Skip to content

Commit 055e14d

Browse files
committed
v0.6.0-beta.1
1 parent 625da22 commit 055e14d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+2413
-786
lines changed

docs/.eleventy.js

+19-10
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ function highlightCode(md, raw, language) {
358358
code = papyrus.static(raw, {
359359
language,
360360
editor: false,
361-
showSpace: true,
361+
showSpace: false,
362362
trimEnd: true,
363363
trimStart: true
364364
});
@@ -441,7 +441,9 @@ function getWrapFractionRuleExample (estheticRules, papyrusValue, rawInput) {
441441
<div class="col-6">
442442
<div class="row jc-center ai-center px-2">
443443
<div class="col-5">
444-
<legend class="fs-xs mb-0" aria-label="Adjustments are disabled as we showcasing the default behaviour"
444+
<legend
445+
class="fs-xs mb-0"
446+
aria-label="Adjustments are disabled as we showcasing the default behaviour"
445447
data-tooltip="top">Wrap Fraction</legend>
446448
<input
447449
type="range"
@@ -525,7 +527,7 @@ function getWrapRuleExample (estheticRules, papyrusValue, rawInput) {
525527
/** @type {papyrus.CreateOptions} */
526528
const papyrusOptions = merge(papyrusValue, {
527529
editor: false,
528-
showSpace: true,
530+
showSpace: false,
529531
addAttrs: {
530532
pre: [
531533
'data-demo-target="input"'
@@ -610,7 +612,8 @@ function getRuleDemo (estheticRules, papyrusValue, inputValue, rawInput) {
610612
/** @type {papyrus.CreateOptions} */
611613
const papyrusOptions = merge(papyrusValue, {
612614
editor: false,
613-
showSpace: true,
615+
showSpace: false,
616+
showTab: false,
614617
addAttrs: {
615618
pre: [
616619
'data-demo-target="output"'
@@ -752,14 +755,19 @@ function getRuleShowcase (md, inputValue, language) {
752755
class="tab"
753756
data-dropdown-target="button"
754757
aria-label="Choose another code sample"
758+
data-action="dropdown#toggle"
755759
data-tooltip="top">
756-
Samples
760+
Preset (default)
757761
</button>
758-
<div data-dropdown-target="collapse" class="dropdown-list">
759-
<ul>
760-
<li></li>
761-
</ul>
762-
</div>
762+
763+
<ul data-dropdown-target="collapse">
764+
<li>default</li>
765+
<li>recommended</li>
766+
<li>warrington</li>
767+
<li>strict</li>
768+
<li>prettier</li>
769+
</ul>
770+
763771
</div>
764772
<button
765773
type="button"
@@ -846,6 +854,7 @@ function codeblocks(md) {
846854
class="rule-example"
847855
data-controller="demo"
848856
data-demo-mode-value="${mode}"
857+
data-demo-preset-value="default"
849858
data-demo-rules-value="${rulesValue}"
850859
data-demo-rules-original-value="${rulesValue}"
851860
data-demo-language-value="${language}"

docs/package.json

+11-11
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"tsup:watch": "tsup --watch",
1717
"tsup:build": "tsup --minify",
1818
"scss:build": "sass ./src/sass/stylesheet.scss public/style.css --no-source-map",
19-
"scss:watch": "sass --watch src/sass/stylesheet.scss public/style.css",
19+
"scss:watch": "sass --watch src/sass/stylesheet.scss public/style.css --quiet",
2020
"test": "echo \"Error: no test specified\" && exit 1"
2121
},
2222
"eslintConfig": {
@@ -35,7 +35,7 @@
3535
},
3636
"dependencies": {
3737
"@brixtol/bootstrap": "^1.6.0",
38-
"@hotwired/stimulus": "^3.2.1",
38+
"@hotwired/stimulus": "^3.2.2",
3939
"esthetic": "link:..",
4040
"json-parse-better-errors": "^1.0.2",
4141
"lines-and-columns": "^2.0.3",
@@ -58,23 +58,23 @@
5858
"@panoply/11ty": "^0.2.0",
5959
"@sardine/eleventy-plugin-tinyhtml": "^0.2.0",
6060
"@types/browser-sync": "^2.27.0",
61-
"@types/markdown-it": "^12.2.3",
62-
"autoprefixer": "^10.4.14",
61+
"@types/markdown-it": "^13.0.0",
62+
"autoprefixer": "^10.4.15",
6363
"concurrently": "^8.2.0",
6464
"cssnano": "^6.0.1",
65-
"eleventy-plugin-svg-sprite": "^2.4.0",
66-
"esbuild": "^0.18.17",
67-
"eslint": "^8.46.0",
65+
"eleventy-plugin-svg-sprite": "^2.4.2",
66+
"esbuild": "^0.19.1",
67+
"eslint": "^8.47.0",
6868
"language-literals": "^0.0.2",
6969
"markdown-it": "^13.0.1",
7070
"markdown-it-anchor": "^8.6.7",
7171
"markdown-it-container": "^3.0.0",
72-
"netlify-cli": "^15.10.0",
72+
"netlify-cli": "^16.0.2",
7373
"postcss": "^8.4.27",
7474
"postcss-cli": "^10.1.0",
75-
"prettier": "^3.0.0",
76-
"sass": "^1.64.2",
77-
"tsup": "^7.1.0",
75+
"prettier": "^3.0.1",
76+
"sass": "^1.65.1",
77+
"tsup": "^7.2.0",
7878
"typescript": "^5.1.6"
7979
}
8080
}

0 commit comments

Comments
 (0)