@elmethis/qwik 0.0.17 → 0.0.19

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/lib/style.css CHANGED
@@ -434,7 +434,25 @@
434
434
  }
435
435
  [data-theme=dark] ._rectangle-wave_hej9g_17 {
436
436
  border-color: rgba(255, 255, 255, 0.7);
437
- }._block-image_zq5gl_1 {
437
+ }._icon_1husg_1 {
438
+ display: block;
439
+ box-sizing: border-box;
440
+ padding: 0.25rem;
441
+ color: #555b67;
442
+ border-radius: 50%;
443
+ cursor: pointer;
444
+ box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.3);
445
+ background-color: rgba(255, 255, 255, 0.2);
446
+ }
447
+ [data-theme="dark"] ._icon_1husg_1 {
448
+ box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.6);
449
+ background-color: rgba(0, 0, 0, 0.2);
450
+ box-sizing: border-box;
451
+ padding: 0.25rem;
452
+ color: #b0b5be;
453
+ border-radius: 50%;
454
+ cursor: pointer;
455
+ }._block-image_5s2ag_1 {
438
456
  margin: 0;
439
457
  display: flex;
440
458
  justify-content: center;
@@ -444,7 +462,7 @@
444
462
  width: 100%;
445
463
  }
446
464
 
447
- ._image-container_zq5gl_11 {
465
+ ._image-container_5s2ag_11 {
448
466
  width: 100%;
449
467
  height: 100%;
450
468
  position: relative;
@@ -453,18 +471,20 @@
453
471
  align-items: center;
454
472
  }
455
473
 
456
- ._image_zq5gl_11 {
474
+ ._image_5s2ag_11 {
457
475
  max-width: 100%;
458
- max-height: 100%;
476
+ max-height: min(100%, 100vh);
477
+ height: auto;
459
478
  border-radius: 0.25rem;
460
479
  box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.1);
461
480
  transition: opacity 400ms;
462
481
  opacity: var(--opacity, 1);
463
482
  user-select: none;
483
+ aspect-ratio: var(--aspect-ratio, auto);
464
484
  cursor: var(--cursor);
465
485
  }
466
486
 
467
- ._fallback_zq5gl_31 {
487
+ ._fallback_5s2ag_33 {
468
488
  width: 100%;
469
489
  height: 100%;
470
490
  inset: 0 0 auto auto;
@@ -474,7 +494,7 @@
474
494
  pointer-events: none;
475
495
  }
476
496
 
477
- ._caption-box_zq5gl_41 {
497
+ ._caption-box_5s2ag_43 {
478
498
  box-sizing: border-box;
479
499
  padding: 0rem 1rem;
480
500
  display: flex;
@@ -486,7 +506,7 @@
486
506
  transition: opacity 400ms;
487
507
  }
488
508
 
489
- ._modal-container_zq5gl_53 {
509
+ ._modal-container_5s2ag_55 {
490
510
  width: 100vw;
491
511
  height: 100vh;
492
512
  display: flex;
@@ -0,0 +1,7 @@
1
+ export interface ElmToggleThemeProps {
2
+ /**
3
+ * Specifies the size of the icon.
4
+ */
5
+ size?: string | number;
6
+ }
7
+ export declare const ElmToggleTheme: import("@builder.io/qwik").Component<ElmToggleThemeProps>;
@@ -0,0 +1,6 @@
1
+ import type { Meta, StoryObj } from "storybook-framework-qwik";
2
+ import { ElmToggleTheme } from "./elm-toggle-theme";
3
+ declare const meta: Meta<typeof ElmToggleTheme>;
4
+ export default meta;
5
+ type Story = StoryObj<typeof meta>;
6
+ export declare const Primary: Story;
@@ -0,0 +1,4 @@
1
+ export declare function useElmethisTheme(): {
2
+ isDarkTheme: import("@builder.io/qwik").Signal<boolean>;
3
+ toggleTheme: import("@builder.io/qwik").QRL<() => void>;
4
+ };
@@ -9,6 +9,7 @@ export { ElmDotLoadingIcon, type ElmDotLoadingIconProps, } from "./components/ic
9
9
  export { ElmInlineIcon, type ElmInlineIconProps, } from "./components/icon/elm-inline-icon";
10
10
  export { ElmLanguageIcon, type ElmLanguageIconProps, } from "./components/icon/elm-language-icon";
11
11
  export { ElmMdiIcon, type ElmMdiIconProps, } from "./components/icon/elm-mdi-icon";
12
+ export { ElmToggleTheme, type ElmToggleThemeProps, } from "./components/icon/elm-toggle-theme";
12
13
  export { ElmBlockImage, type ElmBlockImageProps, } from "./components/media/elm-block-image";
13
14
  export { ElmFile, type ElmFileProps } from "./components/media/elm-file";
14
15
  export { ElmBookmark, type ElmBookmarkProps, } from "./components/navigation/elm-bookmark";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@elmethis/qwik",
3
- "version": "0.0.17",
3
+ "version": "0.0.19",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },