@elmethis/qwik 0.0.20 → 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/lib/style.css
CHANGED
|
@@ -434,6 +434,167 @@
|
|
|
434
434
|
}
|
|
435
435
|
[data-theme=dark] ._rectangle-wave_hej9g_17 {
|
|
436
436
|
border-color: rgba(255, 255, 255, 0.7);
|
|
437
|
+
}@keyframes _loading_1yj0v_19 {
|
|
438
|
+
0% {
|
|
439
|
+
transform-origin: 0%;
|
|
440
|
+
transform: scaleX(0);
|
|
441
|
+
}
|
|
442
|
+
40% {
|
|
443
|
+
transform-origin: 0%;
|
|
444
|
+
transform: scaleX(1);
|
|
445
|
+
}
|
|
446
|
+
60% {
|
|
447
|
+
transform-origin: 100%;
|
|
448
|
+
transform: scaleX(1);
|
|
449
|
+
}
|
|
450
|
+
100% {
|
|
451
|
+
transform-origin: 100%;
|
|
452
|
+
transform: scaleX(0);
|
|
453
|
+
}
|
|
454
|
+
}
|
|
455
|
+
._loading_1yj0v_19 {
|
|
456
|
+
position: absolute;
|
|
457
|
+
width: 100%;
|
|
458
|
+
height: 100%;
|
|
459
|
+
top: 0;
|
|
460
|
+
left: 0;
|
|
461
|
+
background-color: #6987b8;
|
|
462
|
+
transition: opacity 200ms;
|
|
463
|
+
pointer-events: none;
|
|
464
|
+
animation-name: _loading_1yj0v_19;
|
|
465
|
+
animation-iteration-count: infinite;
|
|
466
|
+
animation-duration: 1600ms;
|
|
467
|
+
}
|
|
468
|
+
|
|
469
|
+
._wrapper_1yj0v_33 {
|
|
470
|
+
overflow: hidden;
|
|
471
|
+
position: relative;
|
|
472
|
+
box-sizing: border-box;
|
|
473
|
+
width: 100%;
|
|
474
|
+
padding: 0.25rem;
|
|
475
|
+
border-radius: 0.25rem;
|
|
476
|
+
display: flex;
|
|
477
|
+
flex-direction: column;
|
|
478
|
+
justify-content: space-between;
|
|
479
|
+
transition: border-color 200ms, background-color 200ms;
|
|
480
|
+
border-style: solid;
|
|
481
|
+
border-width: 1px;
|
|
482
|
+
border-color: transparent;
|
|
483
|
+
background-color: rgba(255, 255, 255, 0.8);
|
|
484
|
+
box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.15);
|
|
485
|
+
}
|
|
486
|
+
[data-theme=dark] ._wrapper_1yj0v_33 {
|
|
487
|
+
background-color: rgba(255, 255, 255, 0.15);
|
|
488
|
+
box-shadow: 0 0 0.125rem rgba(0, 0, 0, 0.75);
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
._active_1yj0v_55 {
|
|
492
|
+
border-color: var(--highlight-color);
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
._header_1yj0v_59 {
|
|
496
|
+
box-sizing: border-box;
|
|
497
|
+
height: 0.75rem;
|
|
498
|
+
padding: 0 0.25rem;
|
|
499
|
+
display: flex;
|
|
500
|
+
justify-content: space-between;
|
|
501
|
+
}
|
|
502
|
+
|
|
503
|
+
._label_1yj0v_67 {
|
|
504
|
+
display: inline;
|
|
505
|
+
margin: 0;
|
|
506
|
+
padding: 0;
|
|
507
|
+
font-size: 0.75rem;
|
|
508
|
+
line-height: 0.75rem;
|
|
509
|
+
height: 0.75rem;
|
|
510
|
+
vertical-align: top;
|
|
511
|
+
transition: color 200ms;
|
|
512
|
+
color: var(--highlight-color, rgba(0, 0, 0, 0.65));
|
|
513
|
+
}
|
|
514
|
+
[data-theme=dark] ._label_1yj0v_67 {
|
|
515
|
+
color: var(--highlight-color, rgba(255, 255, 255, 0.65));
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
._requierd_1yj0v_82 {
|
|
519
|
+
padding-inline: 0.25rem;
|
|
520
|
+
color: #c56565;
|
|
521
|
+
font-weight: bold;
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
._body_1yj0v_88 {
|
|
525
|
+
display: flex;
|
|
526
|
+
justify-content: space-between;
|
|
527
|
+
align-items: center;
|
|
528
|
+
padding-right: 0.25rem;
|
|
529
|
+
padding-left: 0.25rem;
|
|
530
|
+
}
|
|
531
|
+
|
|
532
|
+
._left-icon_1yj0v_96 {
|
|
533
|
+
margin: auto 0.25rem;
|
|
534
|
+
width: 24px;
|
|
535
|
+
height: 24px;
|
|
536
|
+
display: flex;
|
|
537
|
+
justify-content: center;
|
|
538
|
+
align-items: center;
|
|
539
|
+
opacity: 0.7;
|
|
540
|
+
}
|
|
541
|
+
[data-theme=dark] ._left-icon_1yj0v_96 {
|
|
542
|
+
filter: invert(1);
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
._input_1yj0v_109 {
|
|
546
|
+
all: unset;
|
|
547
|
+
box-sizing: border-box;
|
|
548
|
+
padding: 0.5rem;
|
|
549
|
+
width: 100%;
|
|
550
|
+
color: rgba(0, 0, 0, 0.7);
|
|
551
|
+
caret-color: rgba(0, 0, 0, 0.7);
|
|
552
|
+
}
|
|
553
|
+
._input_1yj0v_109::placeholder {
|
|
554
|
+
opacity: 0.5;
|
|
555
|
+
}
|
|
556
|
+
[data-theme=dark] ._input_1yj0v_109::placeholder {
|
|
557
|
+
opacity: 0.7;
|
|
558
|
+
}
|
|
559
|
+
._input_1yj0v_109::selection {
|
|
560
|
+
background-color: rgba(0, 0, 0, 0.7);
|
|
561
|
+
color: rgba(255, 255, 255, 0.7);
|
|
562
|
+
}
|
|
563
|
+
[data-theme=dark] ._input_1yj0v_109 {
|
|
564
|
+
color: rgba(255, 255, 255, 0.7);
|
|
565
|
+
caret-color: rgba(255, 255, 255, 0.7);
|
|
566
|
+
}
|
|
567
|
+
[data-theme=dark] ._input_1yj0v_109::selection {
|
|
568
|
+
background-color: rgba(255, 255, 255, 0.7);
|
|
569
|
+
color: rgba(0, 0, 0, 0.7);
|
|
570
|
+
}
|
|
571
|
+
|
|
572
|
+
._icon-box_1yj0v_136 {
|
|
573
|
+
display: flex;
|
|
574
|
+
justify-content: space-between;
|
|
575
|
+
align-items: center;
|
|
576
|
+
}
|
|
577
|
+
|
|
578
|
+
._icon_1yj0v_136 {
|
|
579
|
+
box-sizing: border-box;
|
|
580
|
+
border-radius: 0.125em;
|
|
581
|
+
padding: 0.25rem;
|
|
582
|
+
transition: background-color 200ms;
|
|
583
|
+
cursor: pointer;
|
|
584
|
+
}
|
|
585
|
+
._icon_1yj0v_136:hover {
|
|
586
|
+
background-color: rgba(128, 128, 128, 0.2);
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
._suffix_1yj0v_153 {
|
|
590
|
+
opacity: 0.6;
|
|
591
|
+
padding: 0 0.5rem;
|
|
592
|
+
user-select: none;
|
|
593
|
+
transition: color 200ms;
|
|
594
|
+
color: rgba(0, 0, 0, 0.65);
|
|
595
|
+
}
|
|
596
|
+
[data-theme=dark] ._suffix_1yj0v_153 {
|
|
597
|
+
color: rgba(255, 255, 255, 0.65);
|
|
437
598
|
}._icon_1husg_1 {
|
|
438
599
|
display: block;
|
|
439
600
|
box-sizing: border-box;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { type Signal } from "@builder.io/qwik";
|
|
2
|
+
export interface ElmTextFieldProps {
|
|
3
|
+
label: string;
|
|
4
|
+
maxLength?: number;
|
|
5
|
+
suffix?: string;
|
|
6
|
+
placeholder?: string;
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
loading?: boolean;
|
|
9
|
+
value?: Signal<string>;
|
|
10
|
+
icon?: "text" | "pen" | "email" | "user" | "lock" | "key" | "earth" | "tag" | "archive" | "link" | "search";
|
|
11
|
+
isPassword?: boolean;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
}
|
|
14
|
+
export declare const ElmTextField: import("@builder.io/qwik").Component<ElmTextFieldProps>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { Meta, StoryObj } from "storybook-framework-qwik";
|
|
2
|
+
import { ElmTextField } from "./elm-text-field";
|
|
3
|
+
declare const meta: Meta<typeof ElmTextField>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<typeof meta>;
|
|
6
|
+
export declare const Primary: Story;
|
|
7
|
+
export declare const WithIcon: Story;
|
|
8
|
+
export declare const Password: Story;
|
|
9
|
+
export declare const MaxLength: Story;
|
|
10
|
+
export declare const Loading: Story;
|
package/lib-types/index.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ export { ElmParallax, type ElmParallaxProps, } from "./components/containments/e
|
|
|
5
5
|
export { ElmToggle, type ElmToggleProps, } from "./components/containments/elm-toggle";
|
|
6
6
|
export { ElmBlockFallback, type ElmBlockFallbackProps, } from "./components/fallback/elm-block-fallback";
|
|
7
7
|
export { ElmRectangleWave, type ElmRectangleWaveProps, } from "./components/fallback/elm-rectangle-wave";
|
|
8
|
+
export { ElmTextField, type ElmTextFieldProps, } from "./components/form/elm-text-field";
|
|
8
9
|
export { ElmDotLoadingIcon, type ElmDotLoadingIconProps, } from "./components/icon/elm-dot-loading-icon";
|
|
9
10
|
export { ElmInlineIcon, type ElmInlineIconProps, } from "./components/icon/elm-inline-icon";
|
|
10
11
|
export { ElmLanguageIcon, type ElmLanguageIconProps, } from "./components/icon/elm-language-icon";
|