@vev/silke 1.0.13 → 1.0.14

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/styles.css CHANGED
@@ -2228,83 +2228,6 @@ body {
2228
2228
  * Get font size base on base font size
2229
2229
  * scaling = round(size * 1.200) (Minor Third)
2230
2230
  */
2231
- body {
2232
- --tile-background: var(--color-neutral-5);
2233
- --tile-background-hover: rgba(var(--color-neutral-5-rgb), 0.32);
2234
- --tile-background-active: rgba(var(--color-neutral-5-rgb), 0.08);
2235
- }
2236
-
2237
- .silke-tile_tile_47b57b749d {
2238
- position: relative;
2239
- background: var(--tile-background);
2240
- }
2241
- .silke-tile_tile_47b57b749d:focus {
2242
- outline: none;
2243
- }
2244
- .silke-tile_tile_47b57b749d:focus-visible, .silke-tile_tile_47b57b749d.silke-tile_selected_47b57b749d {
2245
- box-shadow: 0 0 0 1px var(--color-neutral-100);
2246
- border-color: var(--color-neutral-100);
2247
- }
2248
-
2249
- .silke-tile_clickable_47b57b749d {
2250
- cursor: pointer;
2251
- transition: background ease-in-out 100ms;
2252
- }
2253
- .silke-tile_clickable_47b57b749d:hover {
2254
- background-color: var(--tile-background-hover);
2255
- }
2256
- .silke-tile_clickable_47b57b749d:active {
2257
- background: var(--tile-background-active);
2258
- }
2259
-
2260
- .silke-tile_icon_47b57b749d {
2261
- font-size: 16px;
2262
- }
2263
-
2264
- .silke-tile_tags_47b57b749d {
2265
- position: absolute;
2266
- top: 0;
2267
- right: 0;
2268
- }
2269
- .silke-tile_tags_47b57b749d > *:not(:last-child) {
2270
- margin-right: 8px;
2271
- }
2272
-
2273
- .silke-tile_tiny_47b57b749d {
2274
- max-width: 256px;
2275
- width: 100%;
2276
- }
2277
-
2278
- .silke-tile_small_47b57b749d {
2279
- max-width: 512px;
2280
- width: 100%;
2281
- }
2282
-
2283
- .silke-tile_medium_47b57b749d {
2284
- max-width: 768px;
2285
- width: 100%;
2286
- }
2287
-
2288
- .silke-tile_large_47b57b749d {
2289
- max-width: 1024px;
2290
- width: 100%;
2291
- }
2292
- /**********************
2293
- * SOME MATH
2294
- ************************/
2295
- /**********************
2296
- * FONT
2297
- ************************/
2298
- /**********************
2299
- * SPACING
2300
- ************************/
2301
- /**********************
2302
- * SIZES
2303
- ************************/
2304
- /**
2305
- * Get font size base on base font size
2306
- * scaling = round(size * 1.200) (Minor Third)
2307
- */
2308
2231
  .silke-table_toolbar_b5946502de {
2309
2232
  border-radius: var(--border-radius-medium);
2310
2233
  border-bottom-left-radius: var(--border-radius-tiny);
@@ -2384,6 +2307,83 @@ body {
2384
2307
  * Get font size base on base font size
2385
2308
  * scaling = round(size * 1.200) (Minor Third)
2386
2309
  */
2310
+ body {
2311
+ --tile-background: var(--color-neutral-5);
2312
+ --tile-background-hover: rgba(var(--color-neutral-5-rgb), 0.32);
2313
+ --tile-background-active: rgba(var(--color-neutral-5-rgb), 0.08);
2314
+ }
2315
+
2316
+ .silke-tile_tile_47b57b749d {
2317
+ position: relative;
2318
+ background: var(--tile-background);
2319
+ }
2320
+ .silke-tile_tile_47b57b749d:focus {
2321
+ outline: none;
2322
+ }
2323
+ .silke-tile_tile_47b57b749d:focus-visible, .silke-tile_tile_47b57b749d.silke-tile_selected_47b57b749d {
2324
+ box-shadow: 0 0 0 1px var(--color-neutral-100);
2325
+ border-color: var(--color-neutral-100);
2326
+ }
2327
+
2328
+ .silke-tile_clickable_47b57b749d {
2329
+ cursor: pointer;
2330
+ transition: background ease-in-out 100ms;
2331
+ }
2332
+ .silke-tile_clickable_47b57b749d:hover {
2333
+ background-color: var(--tile-background-hover);
2334
+ }
2335
+ .silke-tile_clickable_47b57b749d:active {
2336
+ background: var(--tile-background-active);
2337
+ }
2338
+
2339
+ .silke-tile_icon_47b57b749d {
2340
+ font-size: 16px;
2341
+ }
2342
+
2343
+ .silke-tile_tags_47b57b749d {
2344
+ position: absolute;
2345
+ top: 0;
2346
+ right: 0;
2347
+ }
2348
+ .silke-tile_tags_47b57b749d > *:not(:last-child) {
2349
+ margin-right: 8px;
2350
+ }
2351
+
2352
+ .silke-tile_tiny_47b57b749d {
2353
+ max-width: 256px;
2354
+ width: 100%;
2355
+ }
2356
+
2357
+ .silke-tile_small_47b57b749d {
2358
+ max-width: 512px;
2359
+ width: 100%;
2360
+ }
2361
+
2362
+ .silke-tile_medium_47b57b749d {
2363
+ max-width: 768px;
2364
+ width: 100%;
2365
+ }
2366
+
2367
+ .silke-tile_large_47b57b749d {
2368
+ max-width: 1024px;
2369
+ width: 100%;
2370
+ }
2371
+ /**********************
2372
+ * SOME MATH
2373
+ ************************/
2374
+ /**********************
2375
+ * FONT
2376
+ ************************/
2377
+ /**********************
2378
+ * SPACING
2379
+ ************************/
2380
+ /**********************
2381
+ * SIZES
2382
+ ************************/
2383
+ /**
2384
+ * Get font size base on base font size
2385
+ * scaling = round(size * 1.200) (Minor Third)
2386
+ */
2387
2387
  .silke-toggle_container_5fdf33c914 {
2388
2388
  position: relative;
2389
2389
  cursor: pointer;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vev/silke",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "license": "MIT",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/types/index.d.ts",
@@ -30,8 +30,8 @@
30
30
  "@mdx-js/mdx": "^2.0.0-next.9",
31
31
  "@mdx-js/react": "^2.1.2",
32
32
  "@pmmmwh/react-refresh-webpack-plugin": "^0.5.10",
33
- "@vev/react": "0.0.2",
34
- "@vev/utils": "1.0.6",
33
+ "@vev/react": "0.0.3",
34
+ "@vev/utils": "1.0.7",
35
35
  "@uiw/react-codemirror": "^4.12.3",
36
36
  "@uiw/codemirror-theme-dracula": "^4.12.3",
37
37
  "classnames": ">=2.2.0",
@@ -36,12 +36,12 @@ const EventField = ({ value = [], onChange, context }: SchemaFieldProps<EventFie
36
36
  <SilkeTextSmall weight="strong">{name}</SilkeTextSmall>
37
37
  <SilkeBox column gap="s">
38
38
  {grouped[key].map((event, i) => {
39
- const curr = `${event.content.key}:${event.name}`;
39
+ const curr = `${event.content.key}:${event.type}`;
40
40
  return (
41
41
  <SilkeBox column key={curr}>
42
42
  <SilkeBox gap="s" style={{ border: '1px solid #222' }}>
43
43
  <SilkeTag
44
- label={event.name}
44
+ label={event.type}
45
45
  style={{ cursor: 'pointer' }}
46
46
  kind={value.find((e) => e.key === curr) ? 'green' : 'sand'}
47
47
  onClick={() => {
package/src/icons.tsx CHANGED
@@ -214,6 +214,7 @@ export const SilkeIconDefinitions = {
214
214
 
215
215
  'project-plan': ProjectPlanRibbon,
216
216
  diamond: 'fa-regular fa-gem',
217
+ crosshair: 'fa-light fa-crosshairs',
217
218
 
218
219
  // ALignment icons
219
220
  'align.text.right': 'fal fa-align-right',
@@ -345,6 +346,13 @@ export const SilkeIconDefinitions = {
345
346
  // Content children
346
347
  contentChild: 'fa-light fa-square-caret-right',
347
348
  contentChildParent: ContentChildParent,
349
+
350
+ // Interactions
351
+ 'interaction.icon': 'fa-regular fa-bolt',
352
+ 'interaction.active': 'fa-solid fa-bolt',
353
+ 'interaction.inactive': 'fa-thin fa-bolt',
354
+ 'interaction.click': 'fa-light fa-hand-pointer',
355
+ 'interaction.arrow': 'fa-regular fa-arrow-down',
348
356
  };
349
357
 
350
358
  function CustomComponentIcon({ className }: { className?: string }) {