@ptbdynamic/plinth 0.0.0-stage → 0.2.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.
Files changed (150) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +258 -2
  3. package/package.json +99 -4
  4. package/packages/css/dist/avatar.css +122 -0
  5. package/packages/css/dist/badge.css +76 -0
  6. package/packages/css/dist/button.css +273 -0
  7. package/packages/css/dist/callout.css +143 -0
  8. package/packages/css/dist/code-block.css +283 -0
  9. package/packages/css/dist/confirm-dialog.css +183 -0
  10. package/packages/css/dist/data-table.css +470 -0
  11. package/packages/css/dist/dialog.css +113 -0
  12. package/packages/css/dist/drawer.css +156 -0
  13. package/packages/css/dist/fonts/geist/LICENSE +93 -0
  14. package/packages/css/dist/fonts/geist/geist-cyrillic-ext-wght-normal.woff2 +0 -0
  15. package/packages/css/dist/fonts/geist/geist-cyrillic-wght-normal.woff2 +0 -0
  16. package/packages/css/dist/fonts/geist/geist-latin-ext-wght-normal.woff2 +0 -0
  17. package/packages/css/dist/fonts/geist/geist-latin-wght-normal.woff2 +0 -0
  18. package/packages/css/dist/fonts/geist/geist-vietnamese-wght-normal.woff2 +0 -0
  19. package/packages/css/dist/fonts/geist-mono/LICENSE +93 -0
  20. package/packages/css/dist/fonts/geist-mono/geist-mono-cyrillic-ext-wght-normal.woff2 +0 -0
  21. package/packages/css/dist/fonts/geist-mono/geist-mono-cyrillic-wght-normal.woff2 +0 -0
  22. package/packages/css/dist/fonts/geist-mono/geist-mono-latin-ext-wght-normal.woff2 +0 -0
  23. package/packages/css/dist/fonts/geist-mono/geist-mono-latin-wght-normal.woff2 +0 -0
  24. package/packages/css/dist/fonts/geist-mono/geist-mono-symbols2-wght-normal.woff2 +0 -0
  25. package/packages/css/dist/fonts/geist-mono/geist-mono-vietnamese-wght-normal.woff2 +0 -0
  26. package/packages/css/dist/fonts/index.css +109 -0
  27. package/packages/css/dist/header.css +110 -0
  28. package/packages/css/dist/icon.css +51 -0
  29. package/packages/css/dist/list-card.css +76 -0
  30. package/packages/css/dist/list-row.css +164 -0
  31. package/packages/css/dist/menu-sheet.css +84 -0
  32. package/packages/css/dist/menu.css +245 -0
  33. package/packages/css/dist/modal.css +367 -0
  34. package/packages/css/dist/page-header.css +124 -0
  35. package/packages/css/dist/pill-row.css +197 -0
  36. package/packages/css/dist/plinth.css +4446 -0
  37. package/packages/css/dist/section-menu.css +226 -0
  38. package/packages/css/dist/sheet.css +239 -0
  39. package/packages/css/dist/text-field.css +230 -0
  40. package/packages/css/dist/textarea.css +169 -0
  41. package/packages/css/dist/tokens.css +413 -0
  42. package/packages/react/dist/PlinthAvatar.d.ts +17 -0
  43. package/packages/react/dist/PlinthBadge.d.ts +7 -0
  44. package/packages/react/dist/PlinthButton.d.ts +29 -0
  45. package/packages/react/dist/PlinthCallout.d.ts +16 -0
  46. package/packages/react/dist/PlinthCodeBlock.d.ts +24 -0
  47. package/packages/react/dist/PlinthConfirmDialog.d.ts +38 -0
  48. package/packages/react/dist/PlinthDataTable.d.ts +11 -0
  49. package/packages/react/dist/PlinthDataTableCell.d.ts +15 -0
  50. package/packages/react/dist/PlinthDataTableColumn.d.ts +13 -0
  51. package/packages/react/dist/PlinthDataTableEmpty.d.ts +9 -0
  52. package/packages/react/dist/PlinthDataTableRow.d.ts +9 -0
  53. package/packages/react/dist/PlinthDataTableSort.d.ts +4 -0
  54. package/packages/react/dist/PlinthDialog.d.ts +26 -0
  55. package/packages/react/dist/PlinthDrawer.d.ts +29 -0
  56. package/packages/react/dist/PlinthIcon.d.ts +10 -0
  57. package/packages/react/dist/PlinthIconButton.d.ts +26 -0
  58. package/packages/react/dist/PlinthListCard.d.ts +14 -0
  59. package/packages/react/dist/PlinthListRow.d.ts +29 -0
  60. package/packages/react/dist/PlinthMenu.d.ts +12 -0
  61. package/packages/react/dist/PlinthMenuGroup.d.ts +9 -0
  62. package/packages/react/dist/PlinthMenuItem.d.ts +26 -0
  63. package/packages/react/dist/PlinthMenuSeparator.d.ts +4 -0
  64. package/packages/react/dist/PlinthMenuSheet.d.ts +24 -0
  65. package/packages/react/dist/PlinthPageHeader.d.ts +17 -0
  66. package/packages/react/dist/PlinthPill.d.ts +17 -0
  67. package/packages/react/dist/PlinthPillRow.d.ts +13 -0
  68. package/packages/react/dist/PlinthSectionMenu.d.ts +11 -0
  69. package/packages/react/dist/PlinthSectionMenuItem.d.ts +20 -0
  70. package/packages/react/dist/PlinthSheet.d.ts +26 -0
  71. package/packages/react/dist/PlinthTextField.d.ts +24 -0
  72. package/packages/react/dist/PlinthTextarea.d.ts +24 -0
  73. package/packages/react/dist/avatar.d.ts +12 -0
  74. package/packages/react/dist/button.d.ts +21 -0
  75. package/packages/react/dist/callout.d.ts +19 -0
  76. package/packages/react/dist/code-block.d.ts +16 -0
  77. package/packages/react/dist/confirm-dialog.d.ts +23 -0
  78. package/packages/react/dist/data-table.d.ts +15 -0
  79. package/packages/react/dist/dialog.d.ts +10 -0
  80. package/packages/react/dist/drawer.d.ts +20 -0
  81. package/packages/react/dist/heading.d.ts +5 -0
  82. package/packages/react/dist/icon.d.ts +5 -0
  83. package/packages/react/dist/index.d.ts +49 -0
  84. package/packages/react/dist/index.js +1326 -0
  85. package/packages/react/dist/list-row.d.ts +5 -0
  86. package/packages/react/dist/markup.d.ts +9 -0
  87. package/packages/react/dist/menu.d.ts +7 -0
  88. package/packages/react/dist/page-header.d.ts +5 -0
  89. package/packages/react/dist/sheet.d.ts +12 -0
  90. package/packages/react/dist/size.d.ts +13 -0
  91. package/packages/react/dist/swipe.d.ts +15 -0
  92. package/packages/react/dist/text-field.d.ts +10 -0
  93. package/packages/react/dist/tones.d.ts +5 -0
  94. package/packages/tokens/dist/index.d.ts +230 -0
  95. package/packages/tokens/dist/index.js +4091 -0
  96. package/packages/tokens/dist/tailwind-theme.css +80 -0
  97. package/packages/tokens/dist/tokens.css +413 -0
  98. package/packages/tokens/dist/tokens.json +3875 -0
  99. package/packages/vue/dist/PlinthAvatar.vue.d.ts +24 -0
  100. package/packages/vue/dist/PlinthBadge.vue.d.ts +21 -0
  101. package/packages/vue/dist/PlinthButton.vue.d.ts +42 -0
  102. package/packages/vue/dist/PlinthCallout.vue.d.ts +31 -0
  103. package/packages/vue/dist/PlinthCodeBlock.vue.d.ts +49 -0
  104. package/packages/vue/dist/PlinthConfirmDialog.vue.d.ts +51 -0
  105. package/packages/vue/dist/PlinthDataTable.vue.d.ts +21 -0
  106. package/packages/vue/dist/PlinthDataTableCell.vue.d.ts +29 -0
  107. package/packages/vue/dist/PlinthDataTableColumn.vue.d.ts +26 -0
  108. package/packages/vue/dist/PlinthDataTableEmpty.vue.d.ts +19 -0
  109. package/packages/vue/dist/PlinthDataTableRow.vue.d.ts +19 -0
  110. package/packages/vue/dist/PlinthDataTableSort.vue.d.ts +13 -0
  111. package/packages/vue/dist/PlinthDialog.vue.d.ts +45 -0
  112. package/packages/vue/dist/PlinthDrawer.vue.d.ts +48 -0
  113. package/packages/vue/dist/PlinthIcon.vue.d.ts +23 -0
  114. package/packages/vue/dist/PlinthIconButton.vue.d.ts +37 -0
  115. package/packages/vue/dist/PlinthListCard.vue.d.ts +26 -0
  116. package/packages/vue/dist/PlinthListRow.vue.d.ts +38 -0
  117. package/packages/vue/dist/PlinthMenu.vue.d.ts +24 -0
  118. package/packages/vue/dist/PlinthMenuGroup.vue.d.ts +17 -0
  119. package/packages/vue/dist/PlinthMenuItem.vue.d.ts +34 -0
  120. package/packages/vue/dist/PlinthMenuSeparator.vue.d.ts +3 -0
  121. package/packages/vue/dist/PlinthMenuSheet.vue.d.ts +48 -0
  122. package/packages/vue/dist/PlinthPageHeader.vue.d.ts +27 -0
  123. package/packages/vue/dist/PlinthPill.vue.d.ts +28 -0
  124. package/packages/vue/dist/PlinthPillRow.vue.d.ts +22 -0
  125. package/packages/vue/dist/PlinthSectionMenu.vue.d.ts +22 -0
  126. package/packages/vue/dist/PlinthSectionMenuItem.vue.d.ts +28 -0
  127. package/packages/vue/dist/PlinthSheet.vue.d.ts +45 -0
  128. package/packages/vue/dist/PlinthTextField.vue.d.ts +51 -0
  129. package/packages/vue/dist/PlinthTextarea.vue.d.ts +42 -0
  130. package/packages/vue/dist/avatar.d.ts +12 -0
  131. package/packages/vue/dist/button.d.ts +5 -0
  132. package/packages/vue/dist/callout.d.ts +19 -0
  133. package/packages/vue/dist/code-block.d.ts +16 -0
  134. package/packages/vue/dist/confirm-dialog.d.ts +23 -0
  135. package/packages/vue/dist/data-table.d.ts +15 -0
  136. package/packages/vue/dist/dialog.d.ts +10 -0
  137. package/packages/vue/dist/drawer.d.ts +20 -0
  138. package/packages/vue/dist/heading.d.ts +5 -0
  139. package/packages/vue/dist/icon.d.ts +5 -0
  140. package/packages/vue/dist/index.d.ts +53 -0
  141. package/packages/vue/dist/index.js +1732 -0
  142. package/packages/vue/dist/list-row.d.ts +5 -0
  143. package/packages/vue/dist/menu.d.ts +8 -0
  144. package/packages/vue/dist/page-header.d.ts +5 -0
  145. package/packages/vue/dist/sheet.d.ts +12 -0
  146. package/packages/vue/dist/size.d.ts +13 -0
  147. package/packages/vue/dist/slots.d.ts +3 -0
  148. package/packages/vue/dist/swipe.d.ts +12 -0
  149. package/packages/vue/dist/text-field.d.ts +10 -0
  150. package/packages/vue/dist/tones.d.ts +5 -0
@@ -0,0 +1,113 @@
1
+ /*
2
+ * Dialog: a modal for a form, the details of something or its settings, centred on the screen at
3
+ * every width; with data-side-phone="bottom" it is a bottom sheet below 768px.
4
+ *
5
+ * <dialog id="settings" class="plinth-dialog" closedby="any"
6
+ * aria-labelledby="settings-title" aria-describedby="settings-description">
7
+ * <div class="plinth-dialog-panel">
8
+ * <div class="plinth-dialog-handle" aria-hidden="true"></div>
9
+ * <div class="plinth-dialog-header">
10
+ * <h2 id="settings-title" class="plinth-dialog-title">Settings</h2>
11
+ * <p id="settings-description" class="plinth-dialog-description">Changes apply at once.</p>
12
+ * <button type="button" class="plinth-button plinth-icon-button plinth-dialog-close"
13
+ * data-variant="ghost" data-size="md" aria-label="Close" commandfor="settings"
14
+ * command="close">
15
+ * <span class="plinth-icon" data-size="md" aria-hidden="true"><svg>…</svg></span>
16
+ * </button>
17
+ * </div>
18
+ * <div class="plinth-dialog-body">…</div>
19
+ * <div class="plinth-dialog-footer">…</div>
20
+ * </div>
21
+ * </dialog>
22
+ *
23
+ * The root is the <dialog>, and it needs an id: commandfor and aria-labelledby point at it, and
24
+ * the title's and description's ids are the root's id with -title and -description. The panel is
25
+ * the root's only child and holds the parts. The handle is there only on a dismissible dialog
26
+ * with data-side-phone="bottom": decorative (aria-hidden), shown below 768px, where the dialog is
27
+ * dragged down to close (modal.css). The title is
28
+ * required; the description (and its aria-describedby) and the footer are optional. The close
29
+ * button is an icon button (button.css and icon.css). It needs modal.css, the base it shares with
30
+ * the sheet: the surface, the backdrop, the scroll lock, the motion, the safe areas and the parts
31
+ * are there, and this file sets only where the dialog sits and how big it is.
32
+ *
33
+ * Open it with showModal() or a <button commandfor="settings" command="show-modal">. Open is the
34
+ * native state, [open]; the browser puts the dialog in the top layer, makes the page inert, traps
35
+ * focus, and returns focus to what opened it. The dialog fires close when it closes.
36
+ *
37
+ * Dismissible (the default): closedby="any" and the close button; the close button, Escape and a
38
+ * tap on the backdrop close it (closedby="any" is an enhancement Safari doesn't have yet, so the
39
+ * close button is always there). Not dismissible, for a choice the person must make:
40
+ * role="alertdialog", closedby="closerequest" and no close button, so a stray tap on the backdrop
41
+ * does nothing and it closes through its own buttons, with Escape acting as Cancel (the browser
42
+ * fires cancel, then close, with an empty returnValue). It needs an action that closes it,
43
+ * usually in the footer, the least destructive first: a touch screen has no Escape, and the
44
+ * browser focuses the first control. Give it a description: an alert dialog's message is its
45
+ * accessible description. A project may set its own closedby.
46
+ *
47
+ * Presentation: centred at every width, dialog.width wide (less the screen's margin on a phone),
48
+ * its height capped by the screen's, fading and rising into place. data-side-phone="bottom" (the
49
+ * only value; leave it out for centred) makes it a bottom sheet below 768px: the screen's width,
50
+ * on the bottom edge, sliding up, its last part clearing the home indicator; from 768px up it is
51
+ * centred like any dialog.
52
+ *
53
+ * On a phone the dialog's height is capped by 100dvh, which doesn't, on its own, clear the
54
+ * on-screen keyboard: a page with a form in a dialog sets interactive-widget=resizes-content in
55
+ * its viewport meta where the browser supports it, as for the sheet.
56
+ *
57
+ * In Livewire, a re-render would morph the open dialog back to the server's markup and drop its
58
+ * open attribute: put wire:ignore.self on the dialog (or keep it outside the component that
59
+ * re-renders), and always pass an id, since a generated one changes on every render.
60
+ */
61
+
62
+ @layer plinth {
63
+ .plinth-dialog {
64
+ --plinth-modal-offset: 0 var(--plinth-space-4);
65
+ --plinth-modal-closed-opacity: 0;
66
+
67
+ inset: 0;
68
+ inline-size: min(100% - 2 * var(--plinth-space-4), var(--plinth-dialog-width));
69
+ max-block-size: calc(100dvh - 2 * var(--plinth-space-4));
70
+ margin: auto;
71
+ }
72
+
73
+ .plinth-dialog[data-side-phone='bottom'] {
74
+ --plinth-modal-offset: 0 100%;
75
+ --plinth-modal-closed-opacity: 1;
76
+ --plinth-modal-safe-area-end: env(safe-area-inset-bottom);
77
+
78
+ inset-block: auto 0;
79
+ inline-size: 100%;
80
+ max-block-size: calc(100dvh - var(--plinth-space-12));
81
+ margin: 0;
82
+ border-block-end-width: 0;
83
+ border-end-start-radius: 0;
84
+ border-end-end-radius: 0;
85
+ }
86
+
87
+ /* One that can be dismissed is dragged down to close (modal.css): the root fills the screen. */
88
+ .plinth-dialog[data-side-phone='bottom']:has(> * > .plinth-dialog-handle) {
89
+ inset: 0;
90
+ block-size: auto;
91
+ max-block-size: none;
92
+ border-width: 0;
93
+ border-radius: 0;
94
+ }
95
+
96
+ @media (min-width: 768px) {
97
+ .plinth-dialog,
98
+ .plinth-dialog[data-side-phone='bottom'],
99
+ .plinth-dialog[data-side-phone='bottom']:has(> * > .plinth-dialog-handle) {
100
+ --plinth-modal-offset: 0 var(--plinth-space-4);
101
+ --plinth-modal-closed-opacity: 0;
102
+ --plinth-modal-safe-area-end: initial;
103
+
104
+ inset: 0;
105
+ inline-size: min(100% - 2 * var(--plinth-space-8), var(--plinth-dialog-width));
106
+ block-size: fit-content;
107
+ max-block-size: calc(100dvh - 2 * var(--plinth-space-8));
108
+ margin: auto;
109
+ border-width: var(--plinth-border-width-thin);
110
+ border-radius: var(--plinth-radius-container);
111
+ }
112
+ }
113
+ }
@@ -0,0 +1,156 @@
1
+ /*
2
+ * Drawer: a phone-first panel on the bottom edge that the person drags, like a maps app's panel,
3
+ * with optional snap points (a peek, half and full height). From 768px up it is a dialog or a
4
+ * sheet.
5
+ *
6
+ * <dialog id="route" class="plinth-drawer" data-desktop="dialog"
7
+ * data-snap-points="peek half full" data-snap="peek" closedby="any"
8
+ * aria-labelledby="route-title" aria-describedby="route-description">
9
+ * <div class="plinth-drawer-panel">
10
+ * <div class="plinth-drawer-handle" aria-hidden="true"></div>
11
+ * <div class="plinth-drawer-header">
12
+ * <h2 id="route-title" class="plinth-drawer-title">Route</h2>
13
+ * <p id="route-description" class="plinth-drawer-description">12 min by bike.</p>
14
+ * <button type="button" class="plinth-button plinth-icon-button plinth-drawer-close"
15
+ * data-variant="ghost" data-size="md" aria-label="Close" commandfor="route"
16
+ * command="close">
17
+ * <span class="plinth-icon" data-size="md" aria-hidden="true"><svg>…</svg></span>
18
+ * </button>
19
+ * </div>
20
+ * <div class="plinth-drawer-body">…</div>
21
+ * <div class="plinth-drawer-footer">…</div>
22
+ * </div>
23
+ * </dialog>
24
+ *
25
+ * The root is the <dialog>, and it needs an id: commandfor and aria-labelledby point at it, and
26
+ * the title's and description's ids are the root's id with -title and -description. The panel is
27
+ * the root's only child and holds the parts; the handle is always there, first, and decorative
28
+ * (aria-hidden): Escape and the close button, which is always there too, are the ways to close it
29
+ * without dragging. The title is required; the description (and its aria-describedby) and the
30
+ * footer are optional. The close button is an icon button (button.css and icon.css). It needs
31
+ * modal.css, the base it shares with the dialog and the sheet, where the dragging is described:
32
+ * this file sets where the drawer sits, how big it is and its snap points.
33
+ *
34
+ * Open it with showModal() or a <button commandfor="route" command="show-modal">. Open is the
35
+ * native state, [open]; the browser puts the drawer in the top layer, makes the page inert, traps
36
+ * focus, closes on Escape and returns focus. The dialog fires close when it closes, whichever way
37
+ * it closed.
38
+ *
39
+ * On a phone (below 768px) it is the screen's width on the bottom edge and slides up. Dragged
40
+ * down past its lowest snap point it closes; the layers do that part (modal.css). With no snap
41
+ * points it is as tall as its content, up to the screen's height less a gap.
42
+ *
43
+ * Snap points (data-snap-points, optional): any of peek, half and full, separated by spaces.
44
+ * With them the panel is the screen's height less a gap, and it rests where it is let go at the
45
+ * nearest one: peek shows drawer.peek-height of it (the handle, the header and the top of the
46
+ * body), half the screen's height, full all of it. The body scrolls inside the panel at any of
47
+ * them, so a drawer with a long body is dragged by its handle and header. data-snap is the snap
48
+ * point it opens at, one of those listed (the layers print the largest listed when it is missing
49
+ * or unknown); the browser opens it at full, or the largest listed, and the layers then scroll it
50
+ * to data-snap. The drawer remembers nothing: where it rests is the person's.
51
+ *
52
+ * Desktop (data-desktop): its presentation from 768px up. dialog (the default, also when missing
53
+ * or unknown) centres it like the dialog, at dialog.width; sheet makes it a full-height panel on
54
+ * the inline-end edge, sheet.side-width wide, like the sheet. From 768px up there is no handle
55
+ * and no dragging, the snap points don't apply, and a tap on the backdrop closes it
56
+ * (closedby="any"; Safari doesn't have it yet, so the close button is always there).
57
+ *
58
+ * The motion runs on the motion tokens, which drop to 0ms under prefers-reduced-motion; the
59
+ * snapping is the browser's scrolling.
60
+ *
61
+ * In Livewire, a re-render would morph the open dialog back to the server's markup and drop its
62
+ * open attribute: put wire:ignore.self on the drawer (or keep it outside the component that
63
+ * re-renders), and always pass an id, since a generated one changes on every render.
64
+ */
65
+
66
+ @layer plinth {
67
+ .plinth-drawer {
68
+ --plinth-modal-offset: 0 100%;
69
+ --plinth-modal-safe-area-end: env(safe-area-inset-bottom);
70
+
71
+ /* Translate isn't logical: -1 (under :dir(rtl), below) turns the sheet's slide around. */
72
+ --plinth-drawer-direction: 1;
73
+
74
+ inset: 0;
75
+ inline-size: 100%;
76
+ block-size: auto;
77
+ max-block-size: none;
78
+ margin: 0;
79
+ border-width: 0;
80
+ border-radius: 0;
81
+ }
82
+
83
+ /* With snap points the panel is its full height, and the snap points are where it rests. */
84
+ .plinth-drawer[data-snap-points] > .plinth-drawer-panel {
85
+ block-size: calc(
86
+ 100% - max(var(--plinth-space-12), env(safe-area-inset-top) + var(--plinth-space-4))
87
+ );
88
+ }
89
+
90
+ /* Full is the panel's end on the screen's bottom edge, the base's open position. */
91
+ .plinth-drawer[data-snap-points]:not([data-snap-points~='full']) > .plinth-drawer-panel {
92
+ scroll-snap-align: none;
93
+ }
94
+
95
+ /*
96
+ * Peek and half are the panel's top that far from the screen's bottom edge. The snap areas are
97
+ * the handle (peek) and the header (half), the first parts of the panel, so their margins add
98
+ * what lies above them: the handle's margin, then the handle (modal.css; change them together).
99
+ */
100
+ .plinth-drawer[data-snap-points~='peek'] .plinth-drawer-handle {
101
+ scroll-snap-align: start;
102
+ scroll-margin-block-start: calc(
103
+ 100dvh - var(--plinth-drawer-peek-height) + var(--plinth-space-2)
104
+ );
105
+ }
106
+
107
+ .plinth-drawer[data-snap-points~='half'] .plinth-drawer-header {
108
+ scroll-snap-align: start;
109
+ scroll-margin-block-start: calc(50dvh + var(--plinth-space-2) + var(--plinth-space-1));
110
+ }
111
+
112
+ .plinth-drawer:dir(rtl) {
113
+ --plinth-drawer-direction: -1;
114
+ }
115
+
116
+ @media (min-width: 768px) {
117
+ .plinth-drawer {
118
+ --plinth-modal-offset: 0 var(--plinth-space-4);
119
+ --plinth-modal-closed-opacity: 0;
120
+ --plinth-modal-safe-area-end: initial;
121
+
122
+ inset: 0;
123
+ inline-size: min(100% - 2 * var(--plinth-space-8), var(--plinth-dialog-width));
124
+ block-size: fit-content;
125
+ max-block-size: calc(100dvh - 2 * var(--plinth-space-8));
126
+ margin: auto;
127
+ border-width: var(--plinth-border-width-thin);
128
+ border-radius: var(--plinth-radius-container);
129
+ }
130
+
131
+ .plinth-drawer[data-desktop='sheet'] {
132
+ --plinth-modal-offset: calc(100% * var(--plinth-drawer-direction)) 0;
133
+ --plinth-modal-closed-opacity: 1;
134
+ --plinth-modal-safe-area-end: env(safe-area-inset-bottom);
135
+
136
+ inset-block: 0;
137
+ inset-inline: auto 0;
138
+ inline-size: min(100% - var(--plinth-space-12), var(--plinth-sheet-side-width));
139
+ block-size: auto;
140
+ max-block-size: none;
141
+ padding-block: env(safe-area-inset-top) 0;
142
+ margin: 0;
143
+ border-width: 0;
144
+ border-inline-start-width: var(--plinth-border-width-thin);
145
+ border-radius: 0;
146
+ }
147
+
148
+ .plinth-drawer[data-snap-points] > .plinth-drawer-panel {
149
+ block-size: auto;
150
+ }
151
+
152
+ .plinth-drawer[data-snap-points] :is(.plinth-drawer-handle, .plinth-drawer-header) {
153
+ scroll-snap-align: none;
154
+ }
155
+ }
156
+ }
@@ -0,0 +1,93 @@
1
+ Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font) Geist-Italic[wght].ttf: Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,93 @@
1
+ Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git) GeistMono-Italic[wght].ttf: Copyright 2024 The Geist Project Authors (https://github.com/vercel/geist-font.git)
2
+
3
+ This Font Software is licensed under the SIL Open Font License, Version 1.1.
4
+ This license is copied below, and is also available with a FAQ at:
5
+ http://scripts.sil.org/OFL
6
+
7
+
8
+ -----------------------------------------------------------
9
+ SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
10
+ -----------------------------------------------------------
11
+
12
+ PREAMBLE
13
+ The goals of the Open Font License (OFL) are to stimulate worldwide
14
+ development of collaborative font projects, to support the font creation
15
+ efforts of academic and linguistic communities, and to provide a free and
16
+ open framework in which fonts may be shared and improved in partnership
17
+ with others.
18
+
19
+ The OFL allows the licensed fonts to be used, studied, modified and
20
+ redistributed freely as long as they are not sold by themselves. The
21
+ fonts, including any derivative works, can be bundled, embedded,
22
+ redistributed and/or sold with any software provided that any reserved
23
+ names are not used by derivative works. The fonts and derivatives,
24
+ however, cannot be released under any other type of license. The
25
+ requirement for fonts to remain under this license does not apply
26
+ to any document created using the fonts or their derivatives.
27
+
28
+ DEFINITIONS
29
+ "Font Software" refers to the set of files released by the Copyright
30
+ Holder(s) under this license and clearly marked as such. This may
31
+ include source files, build scripts and documentation.
32
+
33
+ "Reserved Font Name" refers to any names specified as such after the
34
+ copyright statement(s).
35
+
36
+ "Original Version" refers to the collection of Font Software components as
37
+ distributed by the Copyright Holder(s).
38
+
39
+ "Modified Version" refers to any derivative made by adding to, deleting,
40
+ or substituting -- in part or in whole -- any of the components of the
41
+ Original Version, by changing formats or by porting the Font Software to a
42
+ new environment.
43
+
44
+ "Author" refers to any designer, engineer, programmer, technical
45
+ writer or other person who contributed to the Font Software.
46
+
47
+ PERMISSION & CONDITIONS
48
+ Permission is hereby granted, free of charge, to any person obtaining
49
+ a copy of the Font Software, to use, study, copy, merge, embed, modify,
50
+ redistribute, and sell modified and unmodified copies of the Font
51
+ Software, subject to the following conditions:
52
+
53
+ 1) Neither the Font Software nor any of its individual components,
54
+ in Original or Modified Versions, may be sold by itself.
55
+
56
+ 2) Original or Modified Versions of the Font Software may be bundled,
57
+ redistributed and/or sold with any software, provided that each copy
58
+ contains the above copyright notice and this license. These can be
59
+ included either as stand-alone text files, human-readable headers or
60
+ in the appropriate machine-readable metadata fields within text or
61
+ binary files as long as those fields can be easily viewed by the user.
62
+
63
+ 3) No Modified Version of the Font Software may use the Reserved Font
64
+ Name(s) unless explicit written permission is granted by the corresponding
65
+ Copyright Holder. This restriction only applies to the primary font name as
66
+ presented to the users.
67
+
68
+ 4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
69
+ Software shall not be used to promote, endorse or advertise any
70
+ Modified Version, except to acknowledge the contribution(s) of the
71
+ Copyright Holder(s) and the Author(s) or with their explicit written
72
+ permission.
73
+
74
+ 5) The Font Software, modified or unmodified, in part or in whole,
75
+ must be distributed entirely under this license, and must not be
76
+ distributed under any other license. The requirement for fonts to
77
+ remain under this license does not apply to any document created
78
+ using the Font Software.
79
+
80
+ TERMINATION
81
+ This license becomes null and void if any of the above conditions are
82
+ not met.
83
+
84
+ DISCLAIMER
85
+ THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
86
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
87
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
88
+ OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
89
+ COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
90
+ INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
91
+ DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
92
+ FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
93
+ OTHER DEALINGS IN THE FONT SOFTWARE.
@@ -0,0 +1,109 @@
1
+ /* Geist and Geist Mono, from @fontsource-variable (SIL Open Font Licence). */
2
+ /* geist-cyrillic-ext-wght-normal */
3
+ @font-face {
4
+ font-family: 'Geist Variable';
5
+ font-style: normal;
6
+ font-display: swap;
7
+ font-weight: 100 900;
8
+ src: url(./geist/geist-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
9
+ unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
10
+ }
11
+
12
+ /* geist-cyrillic-wght-normal */
13
+ @font-face {
14
+ font-family: 'Geist Variable';
15
+ font-style: normal;
16
+ font-display: swap;
17
+ font-weight: 100 900;
18
+ src: url(./geist/geist-cyrillic-wght-normal.woff2) format('woff2-variations');
19
+ unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
20
+ }
21
+
22
+ /* geist-vietnamese-wght-normal */
23
+ @font-face {
24
+ font-family: 'Geist Variable';
25
+ font-style: normal;
26
+ font-display: swap;
27
+ font-weight: 100 900;
28
+ src: url(./geist/geist-vietnamese-wght-normal.woff2) format('woff2-variations');
29
+ unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
30
+ }
31
+
32
+ /* geist-latin-ext-wght-normal */
33
+ @font-face {
34
+ font-family: 'Geist Variable';
35
+ font-style: normal;
36
+ font-display: swap;
37
+ font-weight: 100 900;
38
+ src: url(./geist/geist-latin-ext-wght-normal.woff2) format('woff2-variations');
39
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
40
+ }
41
+
42
+ /* geist-latin-wght-normal */
43
+ @font-face {
44
+ font-family: 'Geist Variable';
45
+ font-style: normal;
46
+ font-display: swap;
47
+ font-weight: 100 900;
48
+ src: url(./geist/geist-latin-wght-normal.woff2) format('woff2-variations');
49
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
50
+ }
51
+ /* geist-mono-cyrillic-ext-wght-normal */
52
+ @font-face {
53
+ font-family: 'Geist Mono Variable';
54
+ font-style: normal;
55
+ font-display: swap;
56
+ font-weight: 100 900;
57
+ src: url(./geist-mono/geist-mono-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
58
+ unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
59
+ }
60
+
61
+ /* geist-mono-cyrillic-wght-normal */
62
+ @font-face {
63
+ font-family: 'Geist Mono Variable';
64
+ font-style: normal;
65
+ font-display: swap;
66
+ font-weight: 100 900;
67
+ src: url(./geist-mono/geist-mono-cyrillic-wght-normal.woff2) format('woff2-variations');
68
+ unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
69
+ }
70
+
71
+ /* geist-mono-symbols2-wght-normal */
72
+ @font-face {
73
+ font-family: 'Geist Mono Variable';
74
+ font-style: normal;
75
+ font-display: swap;
76
+ font-weight: 100 900;
77
+ src: url(./geist-mono/geist-mono-symbols2-wght-normal.woff2) format('woff2-variations');
78
+ unicode-range: U+2000-2001,U+2004-2008,U+200A,U+23B8-23BD,U+2500-259F;
79
+ }
80
+
81
+ /* geist-mono-vietnamese-wght-normal */
82
+ @font-face {
83
+ font-family: 'Geist Mono Variable';
84
+ font-style: normal;
85
+ font-display: swap;
86
+ font-weight: 100 900;
87
+ src: url(./geist-mono/geist-mono-vietnamese-wght-normal.woff2) format('woff2-variations');
88
+ unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
89
+ }
90
+
91
+ /* geist-mono-latin-ext-wght-normal */
92
+ @font-face {
93
+ font-family: 'Geist Mono Variable';
94
+ font-style: normal;
95
+ font-display: swap;
96
+ font-weight: 100 900;
97
+ src: url(./geist-mono/geist-mono-latin-ext-wght-normal.woff2) format('woff2-variations');
98
+ unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
99
+ }
100
+
101
+ /* geist-mono-latin-wght-normal */
102
+ @font-face {
103
+ font-family: 'Geist Mono Variable';
104
+ font-style: normal;
105
+ font-display: swap;
106
+ font-weight: 100 900;
107
+ src: url(./geist-mono/geist-mono-latin-wght-normal.woff2) format('woff2-variations');
108
+ unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
109
+ }