vipassana-design-standards 0.0.21 → 0.0.22
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/css/bootstrap5-theme.css +68 -4
- package/dist/css/bootstrap5-theme.css.map +1 -1
- package/dist/css/bootstrap5-theme.min.css +1 -1
- package/dist/css/bootstrap5-theme.rtl.css +68 -4
- package/dist/css/bootstrap5-theme.rtl.min.css +1 -1
- package/dist/css/fonts.css +65 -1
- package/dist/css/fonts.css.map +1 -1
- package/dist/css/fonts.min.css +1 -1
- package/dist/css/logo.css +2 -2
- package/dist/css/logo.min.css +1 -1
- package/dist/dhamma-wheel.svg +1 -0
- package/dist/favicon.png +0 -0
- package/dist/fonts/FootlightMTProBold.woff +0 -0
- package/dist/fonts/FootlightMTProBoldItalic.woff +0 -0
- package/dist/fonts/FootlightMTProExtraBold.woff +0 -0
- package/dist/fonts/FootlightMTProExtraBoldIt.woff +0 -0
- package/dist/fonts/FootlightMTProItalic.woff +0 -0
- package/dist/fonts/FootlightMTProLight.base64.js +1 -0
- package/dist/fonts/FootlightMTProLight.woff +0 -0
- package/dist/fonts/FootlightMTProLightItalic.woff +0 -0
- package/dist/fonts/FootlightMTProRegular.woff +0 -0
- package/dist/fonts/Lato-Black.woff +0 -0
- package/dist/fonts/Lato-BlackItalic.woff +0 -0
- package/dist/fonts/Lato-Bold.woff +0 -0
- package/dist/fonts/Lato-BoldItalic.woff +0 -0
- package/dist/fonts/Lato-Italic.woff +0 -0
- package/dist/fonts/Lato-Light.base64.js +1 -0
- package/dist/fonts/Lato-Light.woff +0 -0
- package/dist/fonts/Lato-LightItalic.woff +0 -0
- package/dist/fonts/Lato-Regular.woff +0 -0
- package/dist/fonts/Lato-Thin.woff +0 -0
- package/dist/fonts/Lato-ThinItalic.woff +0 -0
- package/dist/fonts/OFL.txt +93 -0
- package/dist/js/{helper.js → helpers.js} +2 -62
- package/dist/js/i18n.js +14 -0
- package/dist/js/react-helpers.jsx +83 -0
- package/package.json +6 -4
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
Copyright (c) 2010-2014 by tyPoland Lukasz Dziedzic (team@latofonts.com) with Reserved Font Name "Lato"
|
|
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.
|
|
@@ -8,7 +8,7 @@ function vdsAssetUrl(path, localhost = false) {
|
|
|
8
8
|
// For localhost dev, just run vscode liveserver
|
|
9
9
|
if (localhost) return `http://localhost:5500/dist/${path}`
|
|
10
10
|
|
|
11
|
-
return `https://design-standards.dhamma.org/dist/0.0.
|
|
11
|
+
return `https://design-standards.dhamma.org/dist/0.0.22/${path}`
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
function stylesheetLinkTag(url) {
|
|
@@ -19,18 +19,10 @@ function StylesheetLinkTag({url}) {
|
|
|
19
19
|
return <link rel="stylesheet" type="text/css" href={url} />
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
function javascriptIncludeTag(url) {
|
|
23
|
-
return `<script type="text/javascript" src="${url}"></script>`
|
|
24
|
-
}
|
|
25
|
-
|
|
26
22
|
export function vdsFaviconTag() {
|
|
27
23
|
return `<link rel="shortcut icon" type="image/x-icon" href="https://design-standards.dhamma.org/dist/favicon.png">`
|
|
28
24
|
}
|
|
29
25
|
|
|
30
|
-
export function VdsFaviconTag() {
|
|
31
|
-
return <link rel="shortcut icon" type="image/x-icon" href="https://design-standards.dhamma.org/dist/favicon.png" />
|
|
32
|
-
}
|
|
33
|
-
|
|
34
26
|
export function vdsBootstrapThemeCssTag(locale, localhost = false) {
|
|
35
27
|
let tags = [
|
|
36
28
|
stylesheetLinkTag(vdsAssetUrl(`css/bootstrap5-theme${isRtl(locale) ? '.rtl' : ''}.min.css`, localhost))
|
|
@@ -54,12 +46,8 @@ export function vdsBootstrapThemeJsTag(locale, localhost = false) {
|
|
|
54
46
|
return javascriptIncludeTag(vdsAssetUrl("js/bootstrap5-theme.min.js", localhost))
|
|
55
47
|
}
|
|
56
48
|
|
|
57
|
-
export function VdsBootstrapThemeJsTag({ localhost = false }) {
|
|
58
|
-
const url = vdsAssetUrl("js/bootstrap5-theme.min.js", localhost)
|
|
59
|
-
return <script type="text/javascript" src={url}></script>
|
|
60
|
-
}
|
|
61
|
-
|
|
62
49
|
export function vdsLogo({locale, disposition = "default", size = '18', tagline = true, dark = false}) {
|
|
50
|
+
locale = locale.split("-")[0]
|
|
63
51
|
let trans = i18n[locale] || i18n.en
|
|
64
52
|
|
|
65
53
|
if (disposition == "mobile") {
|
|
@@ -89,34 +77,6 @@ export function vdsLogo({locale, disposition = "default", size = '18', tagline =
|
|
|
89
77
|
`
|
|
90
78
|
}
|
|
91
79
|
|
|
92
|
-
export function VdsLogo({locale, disposition = "default", size = '18', tagline = true, dark = false}) {
|
|
93
|
-
let trans = i18n[locale] || i18n.en
|
|
94
|
-
|
|
95
|
-
if (disposition == "mobile") {
|
|
96
|
-
disposition = "left-two-lines"
|
|
97
|
-
tagline = false
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
return <div className="vipassana-logo"
|
|
101
|
-
data-disposition={disposition}
|
|
102
|
-
data-tagline={tagline}
|
|
103
|
-
data-dark-mode={dark}
|
|
104
|
-
data-reverse={trans.reverse}
|
|
105
|
-
style={{fontSize: `${size}px`}}>
|
|
106
|
-
<img className="logo-wheel" src="https://design-standards.dhamma.org/dist/dhamma-wheel.svg" />
|
|
107
|
-
<div className="logo-text">
|
|
108
|
-
<h1 className="logo-title">
|
|
109
|
-
<span data-start-with={trans.vipassana_meditation.charAt(0).toLowerCase()}>
|
|
110
|
-
{trans.vipassana_meditation}
|
|
111
|
-
</span>
|
|
112
|
-
<span className="logo-space"> </span>
|
|
113
|
-
<span>{trans.as_taught}</span>
|
|
114
|
-
</h1>
|
|
115
|
-
<div className="logo-subtitle">{trans.in_the_tradition}</div>
|
|
116
|
-
</div>
|
|
117
|
-
</div>
|
|
118
|
-
}
|
|
119
|
-
|
|
120
80
|
// Some icons from bootstrap icons, so all websites use the same
|
|
121
81
|
export function vdsIconLocale() {
|
|
122
82
|
return `
|
|
@@ -127,13 +87,6 @@ export function vdsIconLocale() {
|
|
|
127
87
|
`
|
|
128
88
|
}
|
|
129
89
|
|
|
130
|
-
export function VdsIconLocale({size = 1.2}) {
|
|
131
|
-
return <svg xmlns="http://www.w3.org/2000/svg" width={`${size}em`} height={`${size}em`} fill="currentColor" viewBox="0 0 16 16">
|
|
132
|
-
<path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/>
|
|
133
|
-
<path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/>
|
|
134
|
-
</svg>
|
|
135
|
-
}
|
|
136
|
-
|
|
137
90
|
export function vdsIconAccount() {
|
|
138
91
|
return `
|
|
139
92
|
<svg xmlns="http://www.w3.org/2000/svg" width="2.2em" height="2.2em" fill="currentColor" viewBox="0 0 16 16">
|
|
@@ -143,13 +96,6 @@ export function vdsIconAccount() {
|
|
|
143
96
|
`
|
|
144
97
|
}
|
|
145
98
|
|
|
146
|
-
export function VdsIconAccount({size = 2.2}) {
|
|
147
|
-
return <svg xmlns="http://www.w3.org/2000/svg" width={`${size}em`} height={`${size}em`} fill="currentColor" viewBox="0 0 16 16">
|
|
148
|
-
<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
|
|
149
|
-
<path fill-rule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>
|
|
150
|
-
</svg>
|
|
151
|
-
}
|
|
152
|
-
|
|
153
99
|
export function vdsIconMenu() {
|
|
154
100
|
return `
|
|
155
101
|
<svg xmlns="http://www.w3.org/2000/svg" width="1.8em" height="1.8em" fill="currentColor" viewBox="0 0 16 16">
|
|
@@ -157,9 +103,3 @@ export function vdsIconMenu() {
|
|
|
157
103
|
</svg>
|
|
158
104
|
`
|
|
159
105
|
}
|
|
160
|
-
|
|
161
|
-
export function VdsIconMenu({size = 1.8}) {
|
|
162
|
-
return <svg xmlns="http://www.w3.org/2000/svg" width={`${size}em`} height={`${size}em`} fill="currentColor" viewBox="0 0 16 16">
|
|
163
|
-
<path fill-rule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"/>
|
|
164
|
-
</svg>
|
|
165
|
-
}
|
package/dist/js/i18n.js
CHANGED
|
@@ -27,6 +27,13 @@ export default {
|
|
|
27
27
|
"in_the_tradition": "podle Tradice Sayagyi U Ba Khin",
|
|
28
28
|
"full": "Meditace vipassana, jak ji vyučuje S. N. Goenka podle tradice Sayagyi U Ba Khina"
|
|
29
29
|
},
|
|
30
|
+
"da": {
|
|
31
|
+
"language": "Danish",
|
|
32
|
+
"vipassana_meditation": "Vipassana Meditation",
|
|
33
|
+
"as_taught": "om undervist i af S.N. Goenka",
|
|
34
|
+
"in_the_tradition": "i Sayagyi U Ba Khins tradition",
|
|
35
|
+
"full": "Vipassana Meditation som undervist i af S.N. Goenka i Sayagyi U Ba Khins tradition"
|
|
36
|
+
},
|
|
30
37
|
"de": {
|
|
31
38
|
"language": "German",
|
|
32
39
|
"vipassana_meditation": "Vipassana Meditation",
|
|
@@ -276,6 +283,13 @@ export default {
|
|
|
276
283
|
"vipassana_as_taught": "S.N. Goenka tarafından öğretilen Vipassana Meditasyonu",
|
|
277
284
|
"full": "Sayagyi U Ba Khin Geleneğinde S.N. Goenka tarafından öğretilen Vipassana Meditasyonu"
|
|
278
285
|
},
|
|
286
|
+
"uk": {
|
|
287
|
+
"language": "Ukrainian",
|
|
288
|
+
"vipassana_meditation": "Медитація Віпасана",
|
|
289
|
+
"as_taught": "як їй навчає С.Н.Ґоєнка",
|
|
290
|
+
"in_the_tradition": "в традиції Саяджі У Ба Кхіна",
|
|
291
|
+
"full": "Медитація Віпасана як їй навчає С.Н.Ґоєнка в традиції Саяджі У Ба Кхіна"
|
|
292
|
+
},
|
|
279
293
|
"vi": {
|
|
280
294
|
"language": "Vietnamese",
|
|
281
295
|
"vipassana_meditation": "Thiền Vipassana",
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import i18n from './i18n.js'
|
|
2
|
+
|
|
3
|
+
function isRtl(locale) {
|
|
4
|
+
return ['ar', 'fa', 'he'].includes(locale)
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
function vdsAssetUrl(path, localhost = false) {
|
|
8
|
+
// For localhost dev, just run vscode liveserver
|
|
9
|
+
if (localhost) return `http://localhost:5500/dist/${path}`
|
|
10
|
+
|
|
11
|
+
return `https://design-standards.dhamma.org/dist/0.0.22/${path}`
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function StylesheetLinkTag({url}) {
|
|
15
|
+
return <link rel="stylesheet" type="text/css" href={url} />
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export function VdsFaviconTag() {
|
|
19
|
+
return <link rel="shortcut icon" type="image/x-icon" href="https://design-standards.dhamma.org/dist/favicon.png" />
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export function VdsBootstrapThemeCssTag({ locale, localhost = false }) {
|
|
23
|
+
const url = vdsAssetUrl(`css/bootstrap5-theme${isRtl(locale) ? '.rtl' : ''}.min.css`, localhost)
|
|
24
|
+
return <>
|
|
25
|
+
<StylesheetLinkTag url={url}/>
|
|
26
|
+
{['gu', 'ja', 'km'].includes(locale) && <StylesheetLinkTag url={vdsAssetUrl(`css/fonts-${locale}.min.css`)}/>}
|
|
27
|
+
</>
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export function VdsBootstrapThemeJsTag({ localhost = false }) {
|
|
31
|
+
const url = vdsAssetUrl("js/bootstrap5-theme.min.js", localhost)
|
|
32
|
+
return <script type="text/javascript" src={url}></script>
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export function VdsLogo({locale, disposition = "default", size = '18', tagline = true, dark = false}) {
|
|
36
|
+
locale = locale.split("-")[0]
|
|
37
|
+
let trans = i18n[locale] || i18n.en
|
|
38
|
+
|
|
39
|
+
if (disposition == "mobile") {
|
|
40
|
+
disposition = "left-two-lines"
|
|
41
|
+
tagline = false
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
return <div className="vipassana-logo"
|
|
45
|
+
data-disposition={disposition}
|
|
46
|
+
data-tagline={tagline}
|
|
47
|
+
data-dark-mode={dark}
|
|
48
|
+
data-reverse={trans.reverse}
|
|
49
|
+
style={{fontSize: `${size}px`}}>
|
|
50
|
+
<img className="logo-wheel" src="https://design-standards.dhamma.org/dist/dhamma-wheel.svg" />
|
|
51
|
+
<div className="logo-text">
|
|
52
|
+
<h1 className="logo-title">
|
|
53
|
+
<span data-start-with={trans.vipassana_meditation.charAt(0).toLowerCase()}>
|
|
54
|
+
{trans.vipassana_meditation}
|
|
55
|
+
</span>
|
|
56
|
+
<span className="logo-space"> </span>
|
|
57
|
+
<span>{trans.as_taught}</span>
|
|
58
|
+
</h1>
|
|
59
|
+
<div className="logo-subtitle">{trans.in_the_tradition}</div>
|
|
60
|
+
</div>
|
|
61
|
+
</div>
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
// Some icons from bootstrap icons, so all websites use the same
|
|
65
|
+
export function VdsIconLocale({size = 1.2}) {
|
|
66
|
+
return <svg xmlns="http://www.w3.org/2000/svg" width={`${size}em`} height={`${size}em`} fill="currentColor" viewBox="0 0 16 16">
|
|
67
|
+
<path d="M4.545 6.714 4.11 8H3l1.862-5h1.284L8 8H6.833l-.435-1.286H4.545zm1.634-.736L5.5 3.956h-.049l-.679 2.022H6.18z"/>
|
|
68
|
+
<path d="M0 2a2 2 0 0 1 2-2h7a2 2 0 0 1 2 2v3h3a2 2 0 0 1 2 2v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-3H2a2 2 0 0 1-2-2V2zm2-1a1 1 0 0 0-1 1v7a1 1 0 0 0 1 1h7a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1H2zm7.138 9.995c.193.301.402.583.63.846-.748.575-1.673 1.001-2.768 1.292.178.217.451.635.555.867 1.125-.359 2.08-.844 2.886-1.494.777.665 1.739 1.165 2.93 1.472.133-.254.414-.673.629-.89-1.125-.253-2.057-.694-2.82-1.284.681-.747 1.222-1.651 1.621-2.757H14V8h-3v1.047h.765c-.318.844-.74 1.546-1.272 2.13a6.066 6.066 0 0 1-.415-.492 1.988 1.988 0 0 1-.94.31z"/>
|
|
69
|
+
</svg>
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export function VdsIconAccount({size = 2.2}) {
|
|
73
|
+
return <svg xmlns="http://www.w3.org/2000/svg" width={`${size}em`} height={`${size}em`} fill="currentColor" viewBox="0 0 16 16">
|
|
74
|
+
<path d="M11 6a3 3 0 1 1-6 0 3 3 0 0 1 6 0z"/>
|
|
75
|
+
<path fillRule="evenodd" d="M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8zm8-7a7 7 0 0 0-5.468 11.37C3.242 11.226 4.805 10 8 10s4.757 1.225 5.468 2.37A7 7 0 0 0 8 1z"/>
|
|
76
|
+
</svg>
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export function VdsIconMenu({size = 1.8}) {
|
|
80
|
+
return <svg xmlns="http://www.w3.org/2000/svg" width={`${size}em`} height={`${size}em`} fill="currentColor" viewBox="0 0 16 16">
|
|
81
|
+
<path fillRule="evenodd" d="M2.5 12a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5zm0-4a.5.5 0 0 1 .5-.5h10a.5.5 0 0 1 0 1H3a.5.5 0 0 1-.5-.5z"/>
|
|
82
|
+
</svg>
|
|
83
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vipassana-design-standards",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.22",
|
|
4
4
|
"description": "Vipassana design standards materials",
|
|
5
5
|
"homepage": "https://design-standards.dhamma.org",
|
|
6
6
|
"author": "Dhamma Workers",
|
|
@@ -8,10 +8,12 @@
|
|
|
8
8
|
"@popperjs/core": "^2.9.1",
|
|
9
9
|
"bootstrap5": "npm:bootstrap@5"
|
|
10
10
|
},
|
|
11
|
-
"js": "dist/js/helper.js",
|
|
12
11
|
"files": [
|
|
13
12
|
"dist/js",
|
|
14
|
-
"dist/css"
|
|
13
|
+
"dist/css",
|
|
14
|
+
"dist/fonts",
|
|
15
|
+
"dist/dhamma-wheel.svg",
|
|
16
|
+
"dist/favicon.png"
|
|
15
17
|
],
|
|
16
18
|
"scripts": {
|
|
17
19
|
"build-sass": "sass --load-path=node_modules src/stylesheets/bootstrap5-theme.scss dist/css/bootstrap5-theme.css && sass src/stylesheets/fonts.scss dist/css/fonts.css && sass src/stylesheets/logo.scss dist/css/logo.css",
|
|
@@ -21,7 +23,7 @@
|
|
|
21
23
|
"build-css": "rm -f dist/css/* && npm run build-fonts && npm run build-sass && npm run build-rtl && npm run build-min",
|
|
22
24
|
"build-js": "rm -f dist/js/* && npm run build-js-bootstrap && npm run build-js-helper",
|
|
23
25
|
"build-js-bootstrap": "concat -o dist/js/bootstrap5-theme.min.js node_modules/bootstrap5/dist/js/bootstrap.bundle.min.js src/javascripts/auto-resize.js && cp node_modules/bootstrap5/dist/js/bootstrap.bundle.min.js.map dist/js/bootstrap5-theme.min.js.map",
|
|
24
|
-
"build-js-helper": "cp src/javascripts/
|
|
26
|
+
"build-js-helper": "cp src/javascripts/helpers.js dist/js && cp src/javascripts/react-helpers.jsx dist/js && cp src/javascripts/i18n.js dist/js && node replace-version.js",
|
|
25
27
|
"build": "npm run build-css && npm run build-js",
|
|
26
28
|
"dist": "npm run build && npm run dist-version-folder && npm publish && npm run dist-gem",
|
|
27
29
|
"dist-gem": "gem build vipassana-design-standards.gemspec && gem push vipassana-design-standards-$npm_package_version.gem && rm vipassana-design-standards-$npm_package_version.gem",
|