@sankhyatronics/sankhya-cms 0.0.0-stage → 0.1.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.
- package/README.md +34 -3
- package/custom-elements.json +4008 -0
- package/dist/bento-grid/index.d.ts +27 -0
- package/dist/bento-grid/index.js +10 -0
- package/dist/bento-grid/index.js.map +1 -0
- package/dist/card/index.d.ts +20 -0
- package/dist/card/index.js +9 -0
- package/dist/card/index.js.map +1 -0
- package/dist/carousel/index.d.ts +44 -0
- package/dist/carousel/index.js +10 -0
- package/dist/carousel/index.js.map +1 -0
- package/dist/chunk-23IHTBAB.js +557 -0
- package/dist/chunk-23IHTBAB.js.map +1 -0
- package/dist/chunk-2VZFHTBC.js +203 -0
- package/dist/chunk-2VZFHTBC.js.map +1 -0
- package/dist/chunk-3ERKQNZT.js +155 -0
- package/dist/chunk-3ERKQNZT.js.map +1 -0
- package/dist/chunk-3JU3R22O.js +193 -0
- package/dist/chunk-3JU3R22O.js.map +1 -0
- package/dist/chunk-3TCP25JG.js +347 -0
- package/dist/chunk-3TCP25JG.js.map +1 -0
- package/dist/chunk-3VE6VFJ4.js +87 -0
- package/dist/chunk-3VE6VFJ4.js.map +1 -0
- package/dist/chunk-4HKSA5UT.js +312 -0
- package/dist/chunk-4HKSA5UT.js.map +1 -0
- package/dist/chunk-5REZSZCK.js +266 -0
- package/dist/chunk-5REZSZCK.js.map +1 -0
- package/dist/chunk-5UFRGZWG.js +268 -0
- package/dist/chunk-5UFRGZWG.js.map +1 -0
- package/dist/chunk-74MILER4.js +215 -0
- package/dist/chunk-74MILER4.js.map +1 -0
- package/dist/chunk-7PSYCTEN.js +118 -0
- package/dist/chunk-7PSYCTEN.js.map +1 -0
- package/dist/chunk-CDC4P77V.js +299 -0
- package/dist/chunk-CDC4P77V.js.map +1 -0
- package/dist/chunk-E52WO7R7.js +279 -0
- package/dist/chunk-E52WO7R7.js.map +1 -0
- package/dist/chunk-EUXUH3YW.js +15 -0
- package/dist/chunk-EUXUH3YW.js.map +1 -0
- package/dist/chunk-IMACP7HN.js +156 -0
- package/dist/chunk-IMACP7HN.js.map +1 -0
- package/dist/chunk-LHU23TF6.js +273 -0
- package/dist/chunk-LHU23TF6.js.map +1 -0
- package/dist/chunk-OEX5FDMR.js +250 -0
- package/dist/chunk-OEX5FDMR.js.map +1 -0
- package/dist/chunk-RHAOQ6K4.js +138 -0
- package/dist/chunk-RHAOQ6K4.js.map +1 -0
- package/dist/chunk-RMIJVTFS.js +397 -0
- package/dist/chunk-RMIJVTFS.js.map +1 -0
- package/dist/chunk-U7YKCCJG.js +228 -0
- package/dist/chunk-U7YKCCJG.js.map +1 -0
- package/dist/chunk-USNFT4DU.js +125 -0
- package/dist/chunk-USNFT4DU.js.map +1 -0
- package/dist/chunk-VYON56QO.js +90 -0
- package/dist/chunk-VYON56QO.js.map +1 -0
- package/dist/chunk-WCO7JAIK.js +195 -0
- package/dist/chunk-WCO7JAIK.js.map +1 -0
- package/dist/chunk-XHBC23TV.js +254 -0
- package/dist/chunk-XHBC23TV.js.map +1 -0
- package/dist/chunk-XXPBFHWR.js +70 -0
- package/dist/chunk-XXPBFHWR.js.map +1 -0
- package/dist/cms-theme.css +15 -0
- package/dist/content-block/index.d.ts +25 -0
- package/dist/content-block/index.js +11 -0
- package/dist/content-block/index.js.map +1 -0
- package/dist/cookie-consent/index.d.ts +33 -0
- package/dist/cookie-consent/index.js +9 -0
- package/dist/cookie-consent/index.js.map +1 -0
- package/dist/dropdown/index.d.ts +89 -0
- package/dist/dropdown/index.js +9 -0
- package/dist/dropdown/index.js.map +1 -0
- package/dist/feature-split/index.d.ts +38 -0
- package/dist/feature-split/index.js +11 -0
- package/dist/feature-split/index.js.map +1 -0
- package/dist/features-section/index.d.ts +50 -0
- package/dist/features-section/index.js +14 -0
- package/dist/features-section/index.js.map +1 -0
- package/dist/footer/index.d.ts +64 -0
- package/dist/footer/index.js +9 -0
- package/dist/footer/index.js.map +1 -0
- package/dist/header/index.d.ts +112 -0
- package/dist/header/index.js +10 -0
- package/dist/header/index.js.map +1 -0
- package/dist/hero/index.d.ts +32 -0
- package/dist/hero/index.js +10 -0
- package/dist/hero/index.js.map +1 -0
- package/dist/icon-button/index.d.ts +23 -0
- package/dist/icon-button/index.js +9 -0
- package/dist/icon-button/index.js.map +1 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +93 -0
- package/dist/index.js.map +1 -0
- package/dist/items-accordion/index.d.ts +31 -0
- package/dist/items-accordion/index.js +10 -0
- package/dist/items-accordion/index.js.map +1 -0
- package/dist/markdown/index.d.ts +33 -0
- package/dist/markdown/index.js +9 -0
- package/dist/markdown/index.js.map +1 -0
- package/dist/menu-grid/index.d.ts +21 -0
- package/dist/menu-grid/index.js +9 -0
- package/dist/menu-grid/index.js.map +1 -0
- package/dist/menu-grid-item/index.d.ts +53 -0
- package/dist/menu-grid-item/index.js +9 -0
- package/dist/menu-grid-item/index.js.map +1 -0
- package/dist/menu-item/index.d.ts +50 -0
- package/dist/menu-item/index.js +9 -0
- package/dist/menu-item/index.js.map +1 -0
- package/dist/promo-banner/index.d.ts +22 -0
- package/dist/promo-banner/index.js +10 -0
- package/dist/promo-banner/index.js.map +1 -0
- package/dist/schema/index.d.ts +72 -0
- package/dist/schema/index.js +75 -0
- package/dist/schema/index.js.map +1 -0
- package/dist/select/index.d.ts +77 -0
- package/dist/select/index.js +10 -0
- package/dist/select/index.js.map +1 -0
- package/dist/shared/icons.d.ts +77 -0
- package/dist/shared/icons.js +64 -0
- package/dist/shared/icons.js.map +1 -0
- package/dist/shared/styles.d.ts +90 -0
- package/dist/shared/styles.js +48 -0
- package/dist/shared/styles.js.map +1 -0
- package/dist/stats/index.d.ts +17 -0
- package/dist/stats/index.js +9 -0
- package/dist/stats/index.js.map +1 -0
- package/dist/testimonials/index.d.ts +25 -0
- package/dist/testimonials/index.js +10 -0
- package/dist/testimonials/index.js.map +1 -0
- package/dist/theme.css +292 -0
- package/dist/themes.css +65 -0
- package/dist/theming/index.d.ts +28 -0
- package/dist/theming/index.js +53 -0
- package/dist/theming/index.js.map +1 -0
- package/package.json +161 -4
|
@@ -0,0 +1,347 @@
|
|
|
1
|
+
// src/shared/icons.ts
|
|
2
|
+
import { html } from "lit";
|
|
3
|
+
var FOLDER_ICON_COLOR = "oklch(0.72 0.09 75)";
|
|
4
|
+
function folderIcon() {
|
|
5
|
+
return html`
|
|
6
|
+
<svg width="20" height="16" viewBox="0 0 20 16" fill="none" aria-hidden="true">
|
|
7
|
+
<path d="M0 2a2 2 0 012-2h5l2 2h9a2 2 0 012 2v10a2 2 0 01-2 2H2a2 2 0 01-2-2V2z" fill=${FOLDER_ICON_COLOR} />
|
|
8
|
+
</svg>
|
|
9
|
+
`;
|
|
10
|
+
}
|
|
11
|
+
function folderOutlineIcon(size = 11, className = "") {
|
|
12
|
+
return html`
|
|
13
|
+
<svg class=${className} width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
14
|
+
<path
|
|
15
|
+
d="M4 4h5l2 2h9v12H4V4z"
|
|
16
|
+
stroke="currentColor"
|
|
17
|
+
stroke-width="2"
|
|
18
|
+
stroke-linecap="round"
|
|
19
|
+
stroke-linejoin="round"
|
|
20
|
+
/>
|
|
21
|
+
</svg>
|
|
22
|
+
`;
|
|
23
|
+
}
|
|
24
|
+
function externalLinkIcon(size = 15) {
|
|
25
|
+
return html`
|
|
26
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
27
|
+
<path
|
|
28
|
+
d="M18 13v5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h5M15 4h5v5M20 4l-9 9"
|
|
29
|
+
stroke="currentColor"
|
|
30
|
+
stroke-width="1.8"
|
|
31
|
+
stroke-linecap="round"
|
|
32
|
+
stroke-linejoin="round"
|
|
33
|
+
/>
|
|
34
|
+
</svg>
|
|
35
|
+
`;
|
|
36
|
+
}
|
|
37
|
+
function refreshIcon(size = 15) {
|
|
38
|
+
return html`
|
|
39
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
40
|
+
<path
|
|
41
|
+
d="M17.65 6.35A7.958 7.958 0 0 0 12 4a8 8 0 1 0 8 8h-2a6 6 0 1 1-6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z"
|
|
42
|
+
fill="currentColor"
|
|
43
|
+
/>
|
|
44
|
+
</svg>
|
|
45
|
+
`;
|
|
46
|
+
}
|
|
47
|
+
function historyIcon(size = 15) {
|
|
48
|
+
return html`
|
|
49
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
50
|
+
<circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="2" />
|
|
51
|
+
<path d="M12 7v5l3.5 2" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" />
|
|
52
|
+
</svg>
|
|
53
|
+
`;
|
|
54
|
+
}
|
|
55
|
+
function trashIcon(size = 15) {
|
|
56
|
+
return html`
|
|
57
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
58
|
+
<path
|
|
59
|
+
d="M4 4h2l1.2 12.4A2 2 0 0 0 9.2 18.2h8.1a2 2 0 0 0 1.98-1.7L20.5 8H6.5"
|
|
60
|
+
stroke="currentColor"
|
|
61
|
+
stroke-width="2"
|
|
62
|
+
stroke-linecap="round"
|
|
63
|
+
stroke-linejoin="round"
|
|
64
|
+
/>
|
|
65
|
+
<circle cx="10" cy="21" r="1.4" fill="currentColor" />
|
|
66
|
+
<circle cx="17" cy="21" r="1.4" fill="currentColor" />
|
|
67
|
+
</svg>
|
|
68
|
+
`;
|
|
69
|
+
}
|
|
70
|
+
function chevronIcon(direction, size = 14) {
|
|
71
|
+
const d = { left: "M15 18l-6-6 6-6", right: "M9 6l6 6-6 6", down: "M6 9l6 6 6-6" }[direction];
|
|
72
|
+
return html`
|
|
73
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
74
|
+
<path d=${d} stroke="currentColor" stroke-width="2.4" stroke-linecap="round" stroke-linejoin="round" />
|
|
75
|
+
</svg>
|
|
76
|
+
`;
|
|
77
|
+
}
|
|
78
|
+
function plusIcon(size = 13) {
|
|
79
|
+
return html`
|
|
80
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
81
|
+
<path d="M12 4v16M4 12h16" stroke="currentColor" stroke-width="2.4" stroke-linecap="round" />
|
|
82
|
+
</svg>
|
|
83
|
+
`;
|
|
84
|
+
}
|
|
85
|
+
function cardsViewIcon(size = 15) {
|
|
86
|
+
return html`
|
|
87
|
+
<svg width=${size} height=${size} viewBox="0 0 16 16" fill="none" aria-hidden="true">
|
|
88
|
+
<rect x="1" y="1" width="6" height="6" rx="1" fill="currentColor" />
|
|
89
|
+
<rect x="9" y="1" width="6" height="6" rx="1" fill="currentColor" />
|
|
90
|
+
<rect x="1" y="9" width="6" height="6" rx="1" fill="currentColor" />
|
|
91
|
+
<rect x="9" y="9" width="6" height="6" rx="1" fill="currentColor" />
|
|
92
|
+
</svg>
|
|
93
|
+
`;
|
|
94
|
+
}
|
|
95
|
+
function checkIcon(size = 14) {
|
|
96
|
+
return html`
|
|
97
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
98
|
+
<path d="M4 12l5 5L20 6" stroke="currentColor" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" />
|
|
99
|
+
</svg>
|
|
100
|
+
`;
|
|
101
|
+
}
|
|
102
|
+
function siteIcon(size = 18) {
|
|
103
|
+
return html`
|
|
104
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
105
|
+
<circle cx="12" cy="12" r="9" stroke="currentColor" stroke-width="1.6" />
|
|
106
|
+
<path d="M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18" stroke="currentColor" stroke-width="1.6" />
|
|
107
|
+
</svg>
|
|
108
|
+
`;
|
|
109
|
+
}
|
|
110
|
+
function bentoGridIcon(size = 18) {
|
|
111
|
+
return html`
|
|
112
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
|
113
|
+
<path
|
|
114
|
+
d="M16 20h4v-4h-4m0-2h4v-4h-4m-6-2h4V4h-4m6 4h4V4h-4m-6 10h4v-4h-4m-6 4h4v-4H4m0 10h4v-4H4m6 4h4v-4h-4M4 8h4V4H4z"
|
|
115
|
+
/>
|
|
116
|
+
</svg>
|
|
117
|
+
`;
|
|
118
|
+
}
|
|
119
|
+
function listViewIcon(size = 15) {
|
|
120
|
+
return html`
|
|
121
|
+
<svg width=${size} height=${size} viewBox="0 0 16 16" fill="none" aria-hidden="true">
|
|
122
|
+
<rect x="1" y="2" width="3" height="3" rx="0.5" fill="currentColor" />
|
|
123
|
+
<rect x="6" y="2.5" width="9" height="2" rx="1" fill="currentColor" />
|
|
124
|
+
<rect x="1" y="6.5" width="3" height="3" rx="0.5" fill="currentColor" />
|
|
125
|
+
<rect x="6" y="7" width="9" height="2" rx="1" fill="currentColor" />
|
|
126
|
+
<rect x="1" y="11" width="3" height="3" rx="0.5" fill="currentColor" />
|
|
127
|
+
<rect x="6" y="11.5" width="9" height="2" rx="1" fill="currentColor" />
|
|
128
|
+
</svg>
|
|
129
|
+
`;
|
|
130
|
+
}
|
|
131
|
+
function cartIcon(size = 18) {
|
|
132
|
+
return html`
|
|
133
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
134
|
+
<path
|
|
135
|
+
d="M3 4h2l2.4 12.4A2 2 0 0 0 9.36 18h8.2a2 2 0 0 0 1.96-1.6L21 8H6"
|
|
136
|
+
stroke="currentColor"
|
|
137
|
+
stroke-width="2"
|
|
138
|
+
stroke-linecap="round"
|
|
139
|
+
stroke-linejoin="round"
|
|
140
|
+
/>
|
|
141
|
+
<circle cx="10" cy="21" r="1.4" fill="currentColor" />
|
|
142
|
+
<circle cx="17" cy="21" r="1.4" fill="currentColor" />
|
|
143
|
+
</svg>
|
|
144
|
+
`;
|
|
145
|
+
}
|
|
146
|
+
function truckIcon(size = 18) {
|
|
147
|
+
return html`
|
|
148
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
149
|
+
<path d="M2 6h11v10H2z" stroke="currentColor" stroke-width="2" stroke-linejoin="round" />
|
|
150
|
+
<path d="M13 10h4l4 3.5V16h-8z" stroke="currentColor" stroke-width="2" stroke-linejoin="round" />
|
|
151
|
+
<circle cx="6.5" cy="18" r="1.8" stroke="currentColor" stroke-width="2" />
|
|
152
|
+
<circle cx="16.5" cy="18" r="1.8" stroke="currentColor" stroke-width="2" />
|
|
153
|
+
</svg>
|
|
154
|
+
`;
|
|
155
|
+
}
|
|
156
|
+
function boxIcon(size = 18) {
|
|
157
|
+
return html`
|
|
158
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
159
|
+
<path
|
|
160
|
+
d="M12 3l8 4.2v9.6L12 21l-8-4.2V7.2L12 3z"
|
|
161
|
+
stroke="currentColor"
|
|
162
|
+
stroke-width="2"
|
|
163
|
+
stroke-linejoin="round"
|
|
164
|
+
/>
|
|
165
|
+
<path d="M4.2 7.2L12 11l7.8-3.8M12 11v10" stroke="currentColor" stroke-width="2" stroke-linejoin="round" />
|
|
166
|
+
</svg>
|
|
167
|
+
`;
|
|
168
|
+
}
|
|
169
|
+
function mapPinIcon(size = 18) {
|
|
170
|
+
return html`
|
|
171
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
172
|
+
<path
|
|
173
|
+
d="M12 21s7-6.1 7-11.5A7 7 0 0 0 5 9.5C5 14.9 12 21 12 21z"
|
|
174
|
+
stroke="currentColor"
|
|
175
|
+
stroke-width="2"
|
|
176
|
+
stroke-linejoin="round"
|
|
177
|
+
/>
|
|
178
|
+
<circle cx="12" cy="9.5" r="2.4" stroke="currentColor" stroke-width="2" />
|
|
179
|
+
</svg>
|
|
180
|
+
`;
|
|
181
|
+
}
|
|
182
|
+
function usersIcon(size = 18) {
|
|
183
|
+
return html`
|
|
184
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
185
|
+
<circle cx="9" cy="8" r="3.2" stroke="currentColor" stroke-width="2" />
|
|
186
|
+
<path d="M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
|
|
187
|
+
<path
|
|
188
|
+
d="M16 5.3a3.2 3.2 0 0 1 0 6.2M19 20c0-2.8-2-5.1-4.6-5.8"
|
|
189
|
+
stroke="currentColor"
|
|
190
|
+
stroke-width="2"
|
|
191
|
+
stroke-linecap="round"
|
|
192
|
+
/>
|
|
193
|
+
</svg>
|
|
194
|
+
`;
|
|
195
|
+
}
|
|
196
|
+
function bookIcon(size = 18) {
|
|
197
|
+
return html`
|
|
198
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
199
|
+
<path
|
|
200
|
+
d="M12 5.5c-1.6-1-4-1.5-6-1.5-1 0-2 .1-3 .4v13.6c1-.3 2-.4 3-.4 2 0 4.4.5 6 1.5m0-13.6c1.6-1 4-1.5 6-1.5 1 0 2 .1 3 .4v13.6c-1-.3-2-.4-3-.4-2 0-4.4.5-6 1.5m0-13.6v13.6"
|
|
201
|
+
stroke="currentColor"
|
|
202
|
+
stroke-width="1.8"
|
|
203
|
+
stroke-linecap="round"
|
|
204
|
+
stroke-linejoin="round"
|
|
205
|
+
/>
|
|
206
|
+
</svg>
|
|
207
|
+
`;
|
|
208
|
+
}
|
|
209
|
+
function documentIcon(size = 18) {
|
|
210
|
+
return html`
|
|
211
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
212
|
+
<path d="M6 2h9l5 5v15H6V2z" stroke="currentColor" stroke-width="2" stroke-linejoin="round" />
|
|
213
|
+
<path d="M15 2v5h5" stroke="currentColor" stroke-width="2" stroke-linejoin="round" />
|
|
214
|
+
<path d="M9 12h6M9 16h6" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
|
|
215
|
+
</svg>
|
|
216
|
+
`;
|
|
217
|
+
}
|
|
218
|
+
function receiptIcon(size = 18) {
|
|
219
|
+
return html`
|
|
220
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
221
|
+
<path
|
|
222
|
+
d="M5 2h14v19l-2.5-1.6L14 21l-2.5-1.6L9 21l-2.5-1.6L5 21V2z"
|
|
223
|
+
stroke="currentColor"
|
|
224
|
+
stroke-width="2"
|
|
225
|
+
stroke-linejoin="round"
|
|
226
|
+
/>
|
|
227
|
+
<path d="M8 8h8M8 12h8" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
|
|
228
|
+
</svg>
|
|
229
|
+
`;
|
|
230
|
+
}
|
|
231
|
+
function percentIcon(size = 18) {
|
|
232
|
+
return html`
|
|
233
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
234
|
+
<path d="M19 5L5 19" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
|
|
235
|
+
<circle cx="7" cy="7" r="2.5" stroke="currentColor" stroke-width="2" />
|
|
236
|
+
<circle cx="17" cy="17" r="2.5" stroke="currentColor" stroke-width="2" />
|
|
237
|
+
</svg>
|
|
238
|
+
`;
|
|
239
|
+
}
|
|
240
|
+
function coinsIcon(size = 18) {
|
|
241
|
+
return html`
|
|
242
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
243
|
+
<ellipse cx="8" cy="7" rx="5.5" ry="3" stroke="currentColor" stroke-width="2" />
|
|
244
|
+
<path d="M2.5 7v10c0 1.7 2.5 3 5.5 3s5.5-1.3 5.5-3V7" stroke="currentColor" stroke-width="2" />
|
|
245
|
+
<path d="M2.5 12c0 1.7 2.5 3 5.5 3s5.5-1.3 5.5-3" stroke="currentColor" stroke-width="2" />
|
|
246
|
+
<ellipse cx="16.5" cy="12" rx="5" ry="2.7" stroke="currentColor" stroke-width="2" />
|
|
247
|
+
<path d="M11.5 12v5c0 1.5 2.2 2.7 5 2.7s5-1.2 5-2.7v-5" stroke="currentColor" stroke-width="2" />
|
|
248
|
+
</svg>
|
|
249
|
+
`;
|
|
250
|
+
}
|
|
251
|
+
function lockIcon(size = 18) {
|
|
252
|
+
return html`
|
|
253
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
254
|
+
<rect x="4" y="11" width="16" height="10" rx="2" stroke="currentColor" stroke-width="2" />
|
|
255
|
+
<path d="M7 11V7a5 5 0 0 1 10 0v4" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
|
|
256
|
+
<circle cx="12" cy="16" r="1.6" fill="currentColor" />
|
|
257
|
+
</svg>
|
|
258
|
+
`;
|
|
259
|
+
}
|
|
260
|
+
var FILE_TYPE_ICON_PATHS = {
|
|
261
|
+
word: "m19.95 5.54-3.48-3.49A6.96 6.96 0 0 0 11.52 0H7C4.24 0 2 2.24 2 5v14c0 2.76 2.24 5 5 5h10c2.76 0 5-2.24 5-5v-8.51c0-1.87-.73-3.63-2.05-4.95Zm-1.41 1.41c.32.32.59.67.81 1.05h-4.34c-.55 0-1-.45-1-1V2.66c.38.22.73.49 1.05.81l3.48 3.49ZM20 19c0 1.65-1.35 3-3 3H7c-1.65 0-3-1.35-3-3V5c0-1.65 1.35-3 3-3h4.51c.16 0 .33 0 .49.02V7c0 1.65 1.35 3 3 3h4.98c.02.16.02.32.02.49V19Zm-3.28-5.76L15.3 18.9c-.15.61-.68 1.05-1.31 1.09-.63.04-1.21-.32-1.44-.91L12 17.7l-.55 1.38c-.22.56-.75.91-1.34.91h-.1c-.63-.04-1.15-.48-1.31-1.1l-1.41-5.66a1 1 0 0 1 1.94-.48l1 4 .85-2.13a1 1 0 0 1 1.86 0l.84 2.13 1.01-4a1 1 0 0 1 1.94.48Z",
|
|
262
|
+
excel: "M15.27 13.64 13.3 16l1.97 2.36a1.001 1.001 0 1 1-1.54 1.28L12 17.56l-1.73 2.08a.99.99 0 0 1-.77.36c-.23 0-.45-.08-.64-.23-.42-.35-.48-.98-.13-1.41L10.7 16l-1.97-2.36a1.001 1.001 0 1 1 1.54-1.28L12 14.44l1.73-2.08c.35-.42.98-.48 1.41-.13.42.35.48.98.13 1.41ZM22 10.49V19c0 2.76-2.24 5-5 5H7c-2.76 0-5-2.24-5-5V5c0-2.76 2.24-5 5-5h4.51c1.87 0 3.63.73 4.95 2.05l3.48 3.49a6.96 6.96 0 0 1 2.05 4.95Zm-6.95-7.03c-.32-.32-.67-.59-1.05-.81V7c0 .55.45 1 1 1h4.34c-.22-.38-.49-.73-.81-1.05l-3.48-3.49ZM20 10.48c0-.16 0-.33-.02-.49H15c-1.65 0-3-1.35-3-3V2.02C11.84 2 11.68 2 11.51 2H7C5.35 2 4 3.35 4 5v14c0 1.65 1.35 3 3 3h10c1.65 0 3-1.35 3-3v-8.51Z",
|
|
263
|
+
powerpoint: "m19.95 5.54-3.49-3.49A6.96 6.96 0 0 0 11.51 0H7C4.24 0 2 2.24 2 5v14c0 2.76 2.24 5 5 5h10c2.76 0 5-2.24 5-5v-8.51c0-1.87-.73-3.63-2.05-4.95Zm-1.41 1.41c.32.32.59.67.81 1.05h-4.34c-.55 0-1-.45-1-1V2.66c.38.22.73.49 1.05.81l3.49 3.49ZM20 19c0 1.65-1.35 3-3 3H7c-1.65 0-3-1.35-3-3V5c0-1.65 1.35-3 3-3h4.51c.16 0 .33 0 .49.02V7c0 1.65 1.35 3 3 3h4.98c.02.16.02.32.02.49V19Zm-10 1c-.55 0-1-.45-1-1v-5c0-1.1.9-2 2-2h1c1.65 0 3 1.35 3 3s-1.35 3-3 3h-1v1c0 .55-.45 1-1 1Zm1-4h1c.55 0 1-.45 1-1s-.45-1-1-1h-1v2Z"
|
|
264
|
+
};
|
|
265
|
+
function fileTypeIcon(type, size = 24) {
|
|
266
|
+
return html`
|
|
267
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
|
268
|
+
<path d=${FILE_TYPE_ICON_PATHS[type]} />
|
|
269
|
+
</svg>
|
|
270
|
+
`;
|
|
271
|
+
}
|
|
272
|
+
function menuIcon(size = 20) {
|
|
273
|
+
return html`
|
|
274
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
275
|
+
<path d="M4 6h16M4 12h16M4 18h16" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
|
|
276
|
+
</svg>
|
|
277
|
+
`;
|
|
278
|
+
}
|
|
279
|
+
function closeIcon(size = 20) {
|
|
280
|
+
return html`
|
|
281
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
282
|
+
<path d="M5 5l14 14M19 5L5 19" stroke="currentColor" stroke-width="2" stroke-linecap="round" />
|
|
283
|
+
</svg>
|
|
284
|
+
`;
|
|
285
|
+
}
|
|
286
|
+
function gearIcon(size = 18) {
|
|
287
|
+
return html`
|
|
288
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
289
|
+
<circle cx="12" cy="12" r="3" stroke="currentColor" stroke-width="2" />
|
|
290
|
+
<path
|
|
291
|
+
d="M12 3v2.2M12 18.8V21M21 12h-2.2M5.2 12H3M18 6l-1.6 1.6M7.6 16.4L6 18M18 18l-1.6-1.6M7.6 7.6L6 6"
|
|
292
|
+
stroke="currentColor"
|
|
293
|
+
stroke-width="2"
|
|
294
|
+
stroke-linecap="round"
|
|
295
|
+
/>
|
|
296
|
+
</svg>
|
|
297
|
+
`;
|
|
298
|
+
}
|
|
299
|
+
function paletteIcon(size = 18) {
|
|
300
|
+
return html`
|
|
301
|
+
<svg width=${size} height=${size} viewBox="0 0 24 24" fill="none" aria-hidden="true">
|
|
302
|
+
<path
|
|
303
|
+
d="M12 3a9 9 0 1 0 0 18c1.1 0 2-.9 2-2 0-.5-.2-1-.5-1.3-.3-.4-.5-.8-.5-1.2 0-1.1.9-2 2-2h2a4 4 0 0 0 4-4c0-4.4-4-7.5-9-7.5z"
|
|
304
|
+
stroke="currentColor"
|
|
305
|
+
stroke-width="1.6"
|
|
306
|
+
stroke-linejoin="round"
|
|
307
|
+
/>
|
|
308
|
+
<circle cx="7.5" cy="10.5" r="1.2" fill="currentColor" />
|
|
309
|
+
<circle cx="11" cy="7" r="1.2" fill="currentColor" />
|
|
310
|
+
<circle cx="15.5" cy="7.5" r="1.2" fill="currentColor" />
|
|
311
|
+
<circle cx="17.5" cy="11.5" r="1.2" fill="currentColor" />
|
|
312
|
+
</svg>
|
|
313
|
+
`;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
export {
|
|
317
|
+
folderIcon,
|
|
318
|
+
folderOutlineIcon,
|
|
319
|
+
externalLinkIcon,
|
|
320
|
+
refreshIcon,
|
|
321
|
+
historyIcon,
|
|
322
|
+
trashIcon,
|
|
323
|
+
chevronIcon,
|
|
324
|
+
plusIcon,
|
|
325
|
+
cardsViewIcon,
|
|
326
|
+
checkIcon,
|
|
327
|
+
siteIcon,
|
|
328
|
+
bentoGridIcon,
|
|
329
|
+
listViewIcon,
|
|
330
|
+
cartIcon,
|
|
331
|
+
truckIcon,
|
|
332
|
+
boxIcon,
|
|
333
|
+
mapPinIcon,
|
|
334
|
+
usersIcon,
|
|
335
|
+
bookIcon,
|
|
336
|
+
documentIcon,
|
|
337
|
+
receiptIcon,
|
|
338
|
+
percentIcon,
|
|
339
|
+
coinsIcon,
|
|
340
|
+
lockIcon,
|
|
341
|
+
fileTypeIcon,
|
|
342
|
+
menuIcon,
|
|
343
|
+
closeIcon,
|
|
344
|
+
gearIcon,
|
|
345
|
+
paletteIcon
|
|
346
|
+
};
|
|
347
|
+
//# sourceMappingURL=chunk-3TCP25JG.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/shared/icons.ts"],"sourcesContent":["import { html } from 'lit';\r\nimport type { TemplateResult } from 'lit';\r\n\r\n/**\r\n * Every inline SVG icon used across components, centralized so a glyph's\r\n * path data lives in exactly one place instead of being copy-pasted at each\r\n * call site. Each icon is a small function returning a Lit `TemplateResult`\r\n * (not a `css`-style fragment) so callers can size — and, where noted, class\r\n * — the icon per context while sharing the same markup.\r\n */\r\n\r\nconst FOLDER_ICON_COLOR = 'oklch(0.72 0.09 75)';\r\n\r\n/** Filled folder glyph (browse rows/tiles). Fixed 20x16 — folders don't resize per usage. */\r\nexport function folderIcon(): TemplateResult {\r\n return html`\r\n <svg width=\"20\" height=\"16\" viewBox=\"0 0 20 16\" fill=\"none\" aria-hidden=\"true\">\r\n <path d=\"M0 2a2 2 0 012-2h5l2 2h9a2 2 0 012 2v10a2 2 0 01-2 2H2a2 2 0 01-2-2V2z\" fill=${FOLDER_ICON_COLOR} />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Outlined folder glyph (breadcrumb crumb icon). `className` lets the caller hook its own layout class. */\r\nexport function folderOutlineIcon(size = 11, className = ''): TemplateResult {\r\n return html`\r\n <svg class=${className} width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path\r\n d=\"M4 4h5l2 2h9v12H4V4z\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** External-link/\"open\" glyph (open site/library actions in the Templates/Data/Save-location pickers). */\r\nexport function externalLinkIcon(size = 15): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path\r\n d=\"M18 13v5a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h5M15 4h5v5M20 4l-9 9\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"1.8\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Refresh/reload glyph (Templates/Data picker refresh buttons). */\r\nexport function refreshIcon(size = 15): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path\r\n d=\"M17.65 6.35A7.958 7.958 0 0 0 12 4a8 8 0 1 0 8 8h-2a6 6 0 1 1-6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z\"\r\n fill=\"currentColor\"\r\n />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Clock glyph (the wizard's \"Recent activity\" history trigger button, Steps 1-3). */\r\nexport function historyIcon(size = 15): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <circle cx=\"12\" cy=\"12\" r=\"9\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n <path d=\"M12 7v5l3.5 2\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Trash/delete glyph (clear-all button in the selected-chips summary badge). */\r\nexport function trashIcon(size = 15): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path\r\n d=\"M4 4h2l1.2 12.4A2 2 0 0 0 9.2 18.2h8.1a2 2 0 0 0 1.98-1.7L20.5 8H6.5\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n <circle cx=\"10\" cy=\"21\" r=\"1.4\" fill=\"currentColor\" />\r\n <circle cx=\"17\" cy=\"21\" r=\"1.4\" fill=\"currentColor\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Chevron glyph (pager prev/next buttons, the select trigger's caret). */\r\nexport function chevronIcon(direction: 'left' | 'right' | 'down', size = 14): TemplateResult {\r\n const d = { left: 'M15 18l-6-6 6-6', right: 'M9 6l6 6-6 6', down: 'M6 9l6 6 6-6' }[direction];\r\n\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path d=${d} stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Plus glyph (\"New folder\" action button). */\r\nexport function plusIcon(size = 13): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path d=\"M12 4v16M4 12h16\" stroke=\"currentColor\" stroke-width=\"2.4\" stroke-linecap=\"round\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Cards-view glyph (2x2 grid — view-toggle button). */\r\nexport function cardsViewIcon(size = 15): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\r\n <rect x=\"1\" y=\"1\" width=\"6\" height=\"6\" rx=\"1\" fill=\"currentColor\" />\r\n <rect x=\"9\" y=\"1\" width=\"6\" height=\"6\" rx=\"1\" fill=\"currentColor\" />\r\n <rect x=\"1\" y=\"9\" width=\"6\" height=\"6\" rx=\"1\" fill=\"currentColor\" />\r\n <rect x=\"9\" y=\"9\" width=\"6\" height=\"6\" rx=\"1\" fill=\"currentColor\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Checkmark glyph (completed-step marker in the step indicator). */\r\nexport function checkIcon(size = 14): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path d=\"M4 12l5 5L20 6\" stroke=\"currentColor\" stroke-width=\"2.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** SharePoint site glyph (globe — root \"All sites\" browser rows). */\r\nexport function siteIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <circle cx=\"12\" cy=\"12\" r=\"9\" stroke=\"currentColor\" stroke-width=\"1.6\" />\r\n <path d=\"M3 12h18M12 3a14 14 0 0 1 0 18M12 3a14 14 0 0 0 0 18\" stroke=\"currentColor\" stroke-width=\"1.6\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** 3x3 dot-grid glyph (bento-menu app-switcher trigger). */\r\nexport function bentoGridIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\r\n <path\r\n d=\"M16 20h4v-4h-4m0-2h4v-4h-4m-6-2h4V4h-4m6 4h4V4h-4m-6 10h4v-4h-4m-6 4h4v-4H4m0 10h4v-4H4m6 4h4v-4h-4M4 8h4V4H4z\"\r\n />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** List-view glyph (stacked rows — view-toggle button). */\r\nexport function listViewIcon(size = 15): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 16 16\" fill=\"none\" aria-hidden=\"true\">\r\n <rect x=\"1\" y=\"2\" width=\"3\" height=\"3\" rx=\"0.5\" fill=\"currentColor\" />\r\n <rect x=\"6\" y=\"2.5\" width=\"9\" height=\"2\" rx=\"1\" fill=\"currentColor\" />\r\n <rect x=\"1\" y=\"6.5\" width=\"3\" height=\"3\" rx=\"0.5\" fill=\"currentColor\" />\r\n <rect x=\"6\" y=\"7\" width=\"9\" height=\"2\" rx=\"1\" fill=\"currentColor\" />\r\n <rect x=\"1\" y=\"11\" width=\"3\" height=\"3\" rx=\"0.5\" fill=\"currentColor\" />\r\n <rect x=\"6\" y=\"11.5\" width=\"9\" height=\"2\" rx=\"1\" fill=\"currentColor\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/**\r\n * A small set of generic domain icons for `st-menu-grid-item`'s icon slot (nav \"mega menu\"\r\n * entries — sales/purchase/accounting/settings items) — deliberately simple line glyphs rather\r\n * than pixel-perfect illustrations, same fidelity level as the icons above.\r\n */\r\n\r\n/** Shopping-cart glyph (sales/orders). */\r\nexport function cartIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path\r\n d=\"M3 4h2l2.4 12.4A2 2 0 0 0 9.36 18h8.2a2 2 0 0 0 1.96-1.6L21 8H6\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n <circle cx=\"10\" cy=\"21\" r=\"1.4\" fill=\"currentColor\" />\r\n <circle cx=\"17\" cy=\"21\" r=\"1.4\" fill=\"currentColor\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Delivery-truck glyph (purchase orders / receiving). */\r\nexport function truckIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path d=\"M2 6h11v10H2z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linejoin=\"round\" />\r\n <path d=\"M13 10h4l4 3.5V16h-8z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linejoin=\"round\" />\r\n <circle cx=\"6.5\" cy=\"18\" r=\"1.8\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n <circle cx=\"16.5\" cy=\"18\" r=\"1.8\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Package/box glyph (products, inventory). */\r\nexport function boxIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path\r\n d=\"M12 3l8 4.2v9.6L12 21l-8-4.2V7.2L12 3z\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linejoin=\"round\"\r\n />\r\n <path d=\"M4.2 7.2L12 11l7.8-3.8M12 11v10\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linejoin=\"round\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Map-pin glyph (stock locations). */\r\nexport function mapPinIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path\r\n d=\"M12 21s7-6.1 7-11.5A7 7 0 0 0 5 9.5C5 14.9 12 21 12 21z\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linejoin=\"round\"\r\n />\r\n <circle cx=\"12\" cy=\"9.5\" r=\"2.4\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Two-person glyph (partners — customers/vendors/employees). */\r\nexport function usersIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <circle cx=\"9\" cy=\"8\" r=\"3.2\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n <path d=\"M3 20c0-3.3 2.7-6 6-6s6 2.7 6 6\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" />\r\n <path\r\n d=\"M16 5.3a3.2 3.2 0 0 1 0 6.2M19 20c0-2.8-2-5.1-4.6-5.8\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Open-book glyph (journals). */\r\nexport function bookIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path\r\n d=\"M12 5.5c-1.6-1-4-1.5-6-1.5-1 0-2 .1-3 .4v13.6c1-.3 2-.4 3-.4 2 0 4.4.5 6 1.5m0-13.6c1.6-1 4-1.5 6-1.5 1 0 2 .1 3 .4v13.6c-1-.3-2-.4-3-.4-2 0-4.4.5-6 1.5m0-13.6v13.6\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"1.8\"\r\n stroke-linecap=\"round\"\r\n stroke-linejoin=\"round\"\r\n />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Document/invoice glyph. */\r\nexport function documentIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path d=\"M6 2h9l5 5v15H6V2z\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linejoin=\"round\" />\r\n <path d=\"M15 2v5h5\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linejoin=\"round\" />\r\n <path d=\"M9 12h6M9 16h6\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Receipt glyph, zig-zag bottom edge (credit/debit notes). */\r\nexport function receiptIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path\r\n d=\"M5 2h14v19l-2.5-1.6L14 21l-2.5-1.6L9 21l-2.5-1.6L5 21V2z\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linejoin=\"round\"\r\n />\r\n <path d=\"M8 8h8M8 12h8\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Percent glyph (taxes). */\r\nexport function percentIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path d=\"M19 5L5 19\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" />\r\n <circle cx=\"7\" cy=\"7\" r=\"2.5\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n <circle cx=\"17\" cy=\"17\" r=\"2.5\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Stacked-coins glyph (payment terms). */\r\nexport function coinsIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <ellipse cx=\"8\" cy=\"7\" rx=\"5.5\" ry=\"3\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n <path d=\"M2.5 7v10c0 1.7 2.5 3 5.5 3s5.5-1.3 5.5-3V7\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n <path d=\"M2.5 12c0 1.7 2.5 3 5.5 3s5.5-1.3 5.5-3\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n <ellipse cx=\"16.5\" cy=\"12\" rx=\"5\" ry=\"2.7\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n <path d=\"M11.5 12v5c0 1.5 2.2 2.7 5 2.7s5-1.2 5-2.7v-5\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Padlock glyph (fiscal year closing / lock dates). */\r\nexport function lockIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <rect x=\"4\" y=\"11\" width=\"16\" height=\"10\" rx=\"2\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n <path d=\"M7 11V7a5 5 0 0 1 10 0v4\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" />\r\n <circle cx=\"12\" cy=\"16\" r=\"1.6\" fill=\"currentColor\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/**\r\n * Office file-type glyphs, ported from `PennyIcons` in `@sankhyatronics/sankhya-icons`\r\n * (FileWordIcon/FileExcelIcon/FilePowerPointIcon) — this package is Lit, so it can't import\r\n * the React components and carries the same path data instead. Filled, `currentColor`.\r\n */\r\nconst FILE_TYPE_ICON_PATHS = {\r\n word: 'm19.95 5.54-3.48-3.49A6.96 6.96 0 0 0 11.52 0H7C4.24 0 2 2.24 2 5v14c0 2.76 2.24 5 5 5h10c2.76 0 5-2.24 5-5v-8.51c0-1.87-.73-3.63-2.05-4.95Zm-1.41 1.41c.32.32.59.67.81 1.05h-4.34c-.55 0-1-.45-1-1V2.66c.38.22.73.49 1.05.81l3.48 3.49ZM20 19c0 1.65-1.35 3-3 3H7c-1.65 0-3-1.35-3-3V5c0-1.65 1.35-3 3-3h4.51c.16 0 .33 0 .49.02V7c0 1.65 1.35 3 3 3h4.98c.02.16.02.32.02.49V19Zm-3.28-5.76L15.3 18.9c-.15.61-.68 1.05-1.31 1.09-.63.04-1.21-.32-1.44-.91L12 17.7l-.55 1.38c-.22.56-.75.91-1.34.91h-.1c-.63-.04-1.15-.48-1.31-1.1l-1.41-5.66a1 1 0 0 1 1.94-.48l1 4 .85-2.13a1 1 0 0 1 1.86 0l.84 2.13 1.01-4a1 1 0 0 1 1.94.48Z',\r\n excel:\r\n 'M15.27 13.64 13.3 16l1.97 2.36a1.001 1.001 0 1 1-1.54 1.28L12 17.56l-1.73 2.08a.99.99 0 0 1-.77.36c-.23 0-.45-.08-.64-.23-.42-.35-.48-.98-.13-1.41L10.7 16l-1.97-2.36a1.001 1.001 0 1 1 1.54-1.28L12 14.44l1.73-2.08c.35-.42.98-.48 1.41-.13.42.35.48.98.13 1.41ZM22 10.49V19c0 2.76-2.24 5-5 5H7c-2.76 0-5-2.24-5-5V5c0-2.76 2.24-5 5-5h4.51c1.87 0 3.63.73 4.95 2.05l3.48 3.49a6.96 6.96 0 0 1 2.05 4.95Zm-6.95-7.03c-.32-.32-.67-.59-1.05-.81V7c0 .55.45 1 1 1h4.34c-.22-.38-.49-.73-.81-1.05l-3.48-3.49ZM20 10.48c0-.16 0-.33-.02-.49H15c-1.65 0-3-1.35-3-3V2.02C11.84 2 11.68 2 11.51 2H7C5.35 2 4 3.35 4 5v14c0 1.65 1.35 3 3 3h10c1.65 0 3-1.35 3-3v-8.51Z',\r\n powerpoint:\r\n 'm19.95 5.54-3.49-3.49A6.96 6.96 0 0 0 11.51 0H7C4.24 0 2 2.24 2 5v14c0 2.76 2.24 5 5 5h10c2.76 0 5-2.24 5-5v-8.51c0-1.87-.73-3.63-2.05-4.95Zm-1.41 1.41c.32.32.59.67.81 1.05h-4.34c-.55 0-1-.45-1-1V2.66c.38.22.73.49 1.05.81l3.49 3.49ZM20 19c0 1.65-1.35 3-3 3H7c-1.65 0-3-1.35-3-3V5c0-1.65 1.35-3 3-3h4.51c.16 0 .33 0 .49.02V7c0 1.65 1.35 3 3 3h4.98c.02.16.02.32.02.49V19Zm-10 1c-.55 0-1-.45-1-1v-5c0-1.1.9-2 2-2h1c1.65 0 3 1.35 3 3s-1.35 3-3 3h-1v1c0 .55-.45 1-1 1Zm1-4h1c.55 0 1-.45 1-1s-.45-1-1-1h-1v2Z'\r\n} as const;\r\n\r\n/** Word/Excel/PowerPoint file glyph (the document icon in front of template/file rows). */\r\nexport function fileTypeIcon(type: keyof typeof FILE_TYPE_ICON_PATHS, size = 24): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"currentColor\" aria-hidden=\"true\">\r\n <path d=${FILE_TYPE_ICON_PATHS[type]} />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Hamburger glyph (`st-header`'s mobile nav toggle, closed state). */\r\nexport function menuIcon(size = 20): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path d=\"M4 6h16M4 12h16M4 18h16\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** X/close glyph (`st-header`'s mobile nav toggle, open state). */\r\nexport function closeIcon(size = 20): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path d=\"M5 5l14 14M19 5L5 19\" stroke=\"currentColor\" stroke-width=\"2\" stroke-linecap=\"round\" />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Gear/cog glyph (company settings). */\r\nexport function gearIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <circle cx=\"12\" cy=\"12\" r=\"3\" stroke=\"currentColor\" stroke-width=\"2\" />\r\n <path\r\n d=\"M12 3v2.2M12 18.8V21M21 12h-2.2M5.2 12H3M18 6l-1.6 1.6M7.6 16.4L6 18M18 18l-1.6-1.6M7.6 7.6L6 6\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"2\"\r\n stroke-linecap=\"round\"\r\n />\r\n </svg>\r\n `;\r\n}\r\n\r\n/** Paint-palette glyph (theme/color-scheme switcher). */\r\nexport function paletteIcon(size = 18): TemplateResult {\r\n return html`\r\n <svg width=${size} height=${size} viewBox=\"0 0 24 24\" fill=\"none\" aria-hidden=\"true\">\r\n <path\r\n d=\"M12 3a9 9 0 1 0 0 18c1.1 0 2-.9 2-2 0-.5-.2-1-.5-1.3-.3-.4-.5-.8-.5-1.2 0-1.1.9-2 2-2h2a4 4 0 0 0 4-4c0-4.4-4-7.5-9-7.5z\"\r\n stroke=\"currentColor\"\r\n stroke-width=\"1.6\"\r\n stroke-linejoin=\"round\"\r\n />\r\n <circle cx=\"7.5\" cy=\"10.5\" r=\"1.2\" fill=\"currentColor\" />\r\n <circle cx=\"11\" cy=\"7\" r=\"1.2\" fill=\"currentColor\" />\r\n <circle cx=\"15.5\" cy=\"7.5\" r=\"1.2\" fill=\"currentColor\" />\r\n <circle cx=\"17.5\" cy=\"11.5\" r=\"1.2\" fill=\"currentColor\" />\r\n </svg>\r\n `;\r\n}\r\n"],"mappings":"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","names":[]}
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// src/shared/section-styles.ts
|
|
2
|
+
import { css } from "lit";
|
|
3
|
+
var sectionTitleStyles = css`
|
|
4
|
+
font-size: var(--st-cms-text-4xl);
|
|
5
|
+
font-weight: var(--st-font-weight-bold);
|
|
6
|
+
color: var(--st-color-text-strong);
|
|
7
|
+
margin: 0 0 var(--st-space-16);
|
|
8
|
+
line-height: 1.2;
|
|
9
|
+
`;
|
|
10
|
+
var sectionSubtitleStyles = css`
|
|
11
|
+
font-size: var(--st-cms-text-lg);
|
|
12
|
+
color: var(--st-color-text-muted);
|
|
13
|
+
line-height: 1.6;
|
|
14
|
+
margin: 0 0 var(--st-space-28);
|
|
15
|
+
`;
|
|
16
|
+
var cardTitleStyles = css`
|
|
17
|
+
font-size: var(--st-text-2xl);
|
|
18
|
+
font-weight: var(--st-font-weight-semibold);
|
|
19
|
+
color: var(--st-color-text-strong);
|
|
20
|
+
margin: 0 0 var(--st-space-8);
|
|
21
|
+
`;
|
|
22
|
+
var cardDescriptionStyles = css`
|
|
23
|
+
font-size: var(--st-text-md);
|
|
24
|
+
color: var(--st-color-text-muted);
|
|
25
|
+
line-height: 1.5;
|
|
26
|
+
`;
|
|
27
|
+
var ctaLinkStyles = css`
|
|
28
|
+
display: inline-block;
|
|
29
|
+
padding: 12px 24px;
|
|
30
|
+
border-radius: var(--st-radius-sm);
|
|
31
|
+
font: inherit;
|
|
32
|
+
text-align: center;
|
|
33
|
+
text-decoration: none;
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
transition: transform 0.2s ease;
|
|
36
|
+
`;
|
|
37
|
+
var paddingScaleStyles = css`
|
|
38
|
+
:host([padding='small']) { padding: var(--st-space-16); }
|
|
39
|
+
:host([padding='medium']) { padding: var(--st-space-24); }
|
|
40
|
+
:host([padding='large']) { padding: var(--st-space-32); }
|
|
41
|
+
`;
|
|
42
|
+
var sectionHeaderStyles = css`
|
|
43
|
+
text-align: center;
|
|
44
|
+
margin-bottom: var(--st-space-48);
|
|
45
|
+
`;
|
|
46
|
+
var iconTileStyles = css`
|
|
47
|
+
display: flex;
|
|
48
|
+
align-items: center;
|
|
49
|
+
justify-content: center;
|
|
50
|
+
flex-shrink: 0;
|
|
51
|
+
border-radius: var(--st-radius-lg);
|
|
52
|
+
background: var(--st-color-subtle);
|
|
53
|
+
color: var(--st-color-text-muted);
|
|
54
|
+
`;
|
|
55
|
+
var reducedMotionStyles = css`
|
|
56
|
+
@media (prefers-reduced-motion: reduce) {
|
|
57
|
+
*,
|
|
58
|
+
*::before,
|
|
59
|
+
*::after {
|
|
60
|
+
transition-duration: 0.01ms !important;
|
|
61
|
+
animation-duration: 0.01ms !important;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
`;
|
|
65
|
+
var invertedSectionTextStyles = css`
|
|
66
|
+
:host([inverted]) .title {
|
|
67
|
+
color: var(--st-color-on-solid);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
:host([inverted]) .subtitle {
|
|
71
|
+
color: var(--st-color-border);
|
|
72
|
+
}
|
|
73
|
+
`;
|
|
74
|
+
|
|
75
|
+
export {
|
|
76
|
+
sectionTitleStyles,
|
|
77
|
+
sectionSubtitleStyles,
|
|
78
|
+
cardTitleStyles,
|
|
79
|
+
cardDescriptionStyles,
|
|
80
|
+
ctaLinkStyles,
|
|
81
|
+
paddingScaleStyles,
|
|
82
|
+
sectionHeaderStyles,
|
|
83
|
+
iconTileStyles,
|
|
84
|
+
reducedMotionStyles,
|
|
85
|
+
invertedSectionTextStyles
|
|
86
|
+
};
|
|
87
|
+
//# sourceMappingURL=chunk-3VE6VFJ4.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/shared/section-styles.ts"],"sourcesContent":["import { css } from 'lit';\r\n\r\n/**\r\n * CSS fragments shared by the CMS section components (hero, features, stats, ...), replacing the\r\n * source React library's global `Common.css` classes (`.section-title`, `.theme-inverted`, ...)\r\n * so each Lit component composes them into its own shadow root instead of re-declaring them.\r\n */\r\n\r\n/** Section heading + subheading typography. Use on `.title` / `.subtitle` selectors. */\r\nexport const sectionTitleStyles = css`\r\n font-size: var(--st-cms-text-4xl);\r\n font-weight: var(--st-font-weight-bold);\r\n color: var(--st-color-text-strong);\r\n margin: 0 0 var(--st-space-16);\r\n line-height: 1.2;\r\n`;\r\n\r\nexport const sectionSubtitleStyles = css`\r\n font-size: var(--st-cms-text-lg);\r\n color: var(--st-color-text-muted);\r\n line-height: 1.6;\r\n margin: 0 0 var(--st-space-28);\r\n`;\r\n\r\n/** Card heading + body typography. */\r\nexport const cardTitleStyles = css`\r\n font-size: var(--st-text-2xl);\r\n font-weight: var(--st-font-weight-semibold);\r\n color: var(--st-color-text-strong);\r\n margin: 0 0 var(--st-space-8);\r\n`;\r\n\r\nexport const cardDescriptionStyles = css`\r\n font-size: var(--st-text-md);\r\n color: var(--st-color-text-muted);\r\n line-height: 1.5;\r\n`;\r\n\r\n/** Outlined call-to-action link/button used by hero, promo banner, features, ... */\r\nexport const ctaLinkStyles = css`\r\n display: inline-block;\r\n padding: 12px 24px;\r\n border-radius: var(--st-radius-sm);\r\n font: inherit;\r\n text-align: center;\r\n text-decoration: none;\r\n cursor: pointer;\r\n transition: transform 0.2s ease;\r\n`;\r\n\r\n/** Maps the source's `padding` prop (none|small|medium|large) to `:host([padding=...])` rules. */\r\nexport const paddingScaleStyles = css`\r\n :host([padding='small']) { padding: var(--st-space-16); }\r\n :host([padding='medium']) { padding: var(--st-space-24); }\r\n :host([padding='large']) { padding: var(--st-space-32); }\r\n`;\r\n\r\n/** Centered title/subtitle block above a section's content. Use on a `.header` wrapper. */\r\nexport const sectionHeaderStyles = css`\r\n text-align: center;\r\n margin-bottom: var(--st-space-48);\r\n`;\r\n\r\n/** Rounded icon tile (holds an `<iconify-icon>`) used by bento cards, feature lists, ... */\r\nexport const iconTileStyles = css`\r\n display: flex;\r\n align-items: center;\r\n justify-content: center;\r\n flex-shrink: 0;\r\n border-radius: var(--st-radius-lg);\r\n background: var(--st-color-subtle);\r\n color: var(--st-color-text-muted);\r\n`;\r\n\r\n/** Collapses CSS transitions/animations for users who prefer reduced motion. */\r\nexport const reducedMotionStyles = css`\r\n @media (prefers-reduced-motion: reduce) {\r\n *,\r\n *::before,\r\n *::after {\r\n transition-duration: 0.01ms !important;\r\n animation-duration: 0.01ms !important;\r\n }\r\n }\r\n`;\r\n\r\n/** Light-on-dark title/subtitle for an `inverted` section host. Place inside the host's `static styles`. */\r\nexport const invertedSectionTextStyles = css`\r\n :host([inverted]) .title {\r\n color: var(--st-color-on-solid);\r\n }\r\n\r\n :host([inverted]) .subtitle {\r\n color: var(--st-color-border);\r\n }\r\n`;\r\n"],"mappings":";AAAA,SAAS,WAAW;AASb,IAAM,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ3B,IAAM,wBAAwB;AAAA;AAAA;AAAA;AAAA;AAAA;AAQ9B,IAAM,kBAAkB;AAAA;AAAA;AAAA;AAAA;AAAA;AAOxB,IAAM,wBAAwB;AAAA;AAAA;AAAA;AAAA;AAO9B,IAAM,gBAAgB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAYtB,IAAM,qBAAqB;AAAA;AAAA;AAAA;AAAA;AAO3B,IAAM,sBAAsB;AAAA;AAAA;AAAA;AAM5B,IAAM,iBAAiB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAWvB,IAAM,sBAAsB;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAY5B,IAAM,4BAA4B;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;","names":[]}
|