@hyvor/design 0.0.47 → 0.0.49

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.
@@ -120,15 +120,13 @@ function handleClick() {
120
120
  color: var(--text-light);
121
121
  }
122
122
 
123
+ /*styles for disabled state*/
123
124
  div.action-list-item.disabled {
124
- opacity: 0.5;
125
+ color: var(--text-light);
125
126
  cursor: not-allowed;
126
- pointer-events: none;
127
127
  }
128
-
129
128
  div.action-list-item.disabled:hover {
130
129
  background-color: transparent;
131
- pointer-events: none;
132
130
  }
133
131
 
134
132
  </style>
@@ -364,15 +364,31 @@ export let button = {};
364
364
  background-color: transparent;
365
365
  color: var(--text);
366
366
  transition: 0.2s background-color;
367
+ /*styles for disabled state*/
367
368
  }
368
369
  .button.invisible:hover {
369
370
  background-color: var(--accent-light);
370
371
  box-shadow: none !important;
371
372
  }
373
+ .button.invisible[disabled] {
374
+ background-color: transparent;
375
+ color: var(--text);
376
+ box-shadow: none !important;
377
+ cursor: not-allowed;
378
+ opacity: 0.2;
379
+ }
380
+ .button.invisible[disabled]:hover {
381
+ background-color: transparent;
382
+ box-shadow: none !important;
383
+ color: var(--text);
384
+ }
372
385
 
373
386
  /*Styles for button disabled state*/
374
387
  .button[disabled] {
375
388
  cursor: not-allowed;
376
389
  opacity: 0.2;
377
390
  box-shadow: none !important;
391
+ }
392
+ .button[disabled]:hover {
393
+ box-shadow: none !important;
378
394
  }</style>
@@ -39,7 +39,7 @@
39
39
  .callout {
40
40
  padding: 15px 25px;
41
41
  border-radius: var(--box-radius);
42
- line-height: var(--line-height-content);
42
+ /* line-height: var(--line-height-content); */
43
43
  }
44
44
 
45
45
  .callout.soft {
@@ -3,7 +3,7 @@ import './hljs.scss';
3
3
  declare const __propDef: {
4
4
  props: {
5
5
  code: string;
6
- language?: ("css" | "ts" | "html" | "js" | "svelte" | "jsx") | undefined;
6
+ language?: ("css" | "ts" | "yaml" | "json" | "html" | "js" | "svelte" | "jsx") | undefined;
7
7
  };
8
8
  events: {
9
9
  [evt: string]: CustomEvent<any>;
@@ -3,10 +3,14 @@ import javascript from 'highlight.js/lib/languages/javascript';
3
3
  import xml from 'highlight.js/lib/languages/xml';
4
4
  import css from 'highlight.js/lib/languages/css';
5
5
  import ts from 'highlight.js/lib/languages/typescript';
6
+ import yaml from 'highlight.js/lib/languages/yaml';
7
+ import json from 'highlight.js/lib/languages/json';
6
8
  hljs.registerLanguage('javascript', javascript);
7
9
  hljs.registerLanguage('xml', xml);
8
10
  hljs.registerLanguage('css', css);
9
11
  hljs.registerLanguage('ts', ts);
12
+ hljs.registerLanguage('yaml', yaml);
13
+ hljs.registerLanguage('json', json);
10
14
  export default function getCode(code, language) {
11
15
  let ret = code;
12
16
  // remove the first empty line
@@ -3,6 +3,7 @@ import { clickOutside } from "../../../components/index.js";
3
3
  export let src;
4
4
  export let alt;
5
5
  export let width = void 0;
6
+ export let modalImageProps = {};
6
7
  let open = false;
7
8
  </script>
8
9
 
@@ -23,9 +24,8 @@ let open = false;
23
24
  >
24
25
  <img
25
26
  {src}
26
- {alt}
27
- {...$$restProps}
28
- {width}
27
+ {alt}
28
+ {...modalImageProps}
29
29
  use:clickOutside={{
30
30
  callback: () => open = false
31
31
  }}
@@ -5,6 +5,7 @@ declare const __propDef: {
5
5
  src: string;
6
6
  alt: string;
7
7
  width?: undefined | number;
8
+ modalImageProps?: any;
8
9
  };
9
10
  events: {
10
11
  [evt: string]: CustomEvent<any>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hyvor/design",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "license": "MIT",
5
5
  "private": false,
6
6
  "scripts": {