@duskmoon-dev/core 1.19.10 → 1.20.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 +1 -1
- package/dist/components/checkbox.css +1 -1
- package/dist/components/datepicker.css +1 -1
- package/dist/components/file-input.css +1 -1
- package/dist/components/form-group.css +1 -1
- package/dist/components/form.css +1 -1
- package/dist/components/index.css +138 -226
- package/dist/components/input.css +1 -1
- package/dist/components/otp-input.css +160 -2
- package/dist/components/radio.css +1 -1
- package/dist/components/select.css +1 -1
- package/dist/components/switch.css +1 -1
- package/dist/components/textarea.css +1 -1
- package/dist/components/toggle-switch.css +1 -1
- package/dist/components/toggle.css +1 -1
- package/dist/components/validator.css +1 -1
- package/dist/esm/components/checkbox.js +1 -1
- package/dist/esm/components/datepicker.js +1 -1
- package/dist/esm/components/file-input.js +1 -1
- package/dist/esm/components/form-group.js +1 -1
- package/dist/esm/components/form.js +1 -1
- package/dist/esm/components/input.js +1 -1
- package/dist/esm/components/otp-input.js +160 -2
- package/dist/esm/components/radio.js +1 -1
- package/dist/esm/components/select.js +1 -1
- package/dist/esm/components/switch.js +1 -1
- package/dist/esm/components/textarea.js +1 -1
- package/dist/esm/components/toggle-switch.js +1 -1
- package/dist/esm/components/toggle.js +1 -1
- package/dist/esm/components/validator.js +1 -1
- package/dist/index.css +262 -350
- package/dist/index.min.css +1 -1
- package/dist/standalone/duskmoonui-themes.css +125 -125
- package/dist/standalone/duskmoonui.css +264 -352
- package/dist/standalone/duskmoonui.js +5 -5
- package/dist/standalone/duskmoonui.mjs +5 -5
- package/dist/themes/generated/sunshine.css +62 -62
- package/package.json +1 -7
- package/dist/components/pin-input.css +0 -245
- package/dist/esm/components/pin-input.d.ts +0 -5
- package/dist/esm/components/pin-input.js +0 -254
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @duskmoon-dev/core v1.
|
|
3
|
-
* @duskmoon-dev/css-art v1.
|
|
2
|
+
* @duskmoon-dev/core v1.20.0
|
|
3
|
+
* @duskmoon-dev/css-art v1.20.0
|
|
4
4
|
* Complete standalone DuskMoonUI styles
|
|
5
5
|
* https://github.com/duskmoon-dev/duskmoonui
|
|
6
6
|
* @license MIT
|
|
@@ -483,68 +483,68 @@ html {
|
|
|
483
483
|
--theme-mode: "light";
|
|
484
484
|
--theme-family: "duskmoon";
|
|
485
485
|
--theme-pair: "moonlight";
|
|
486
|
-
--theme-description: "
|
|
487
|
-
--color-primary: oklch(
|
|
488
|
-
--color-primary-content: oklch(
|
|
489
|
-
--color-primary-container: oklch(95% 0.
|
|
490
|
-
--color-on-primary-container: oklch(
|
|
491
|
-
--color-secondary: oklch(
|
|
492
|
-
--color-secondary-content: oklch(
|
|
493
|
-
--color-secondary-container: oklch(94% 0.
|
|
494
|
-
--color-on-secondary-container: oklch(
|
|
495
|
-
--color-tertiary: oklch(
|
|
496
|
-
--color-tertiary-content: oklch(
|
|
497
|
-
--color-tertiary-container: oklch(95% 0.
|
|
498
|
-
--color-on-tertiary-container: oklch(
|
|
499
|
-
--color-accent: oklch(
|
|
500
|
-
--color-accent-content: oklch(
|
|
501
|
-
--color-neutral: oklch(
|
|
502
|
-
--color-neutral-content: oklch(
|
|
503
|
-
--color-neutral-variant: oklch(
|
|
504
|
-
--color-surface: oklch(
|
|
505
|
-
--color-surface-dim: oklch(
|
|
506
|
-
--color-surface-bright: oklch(
|
|
507
|
-
--color-surface-container-lowest: oklch(
|
|
508
|
-
--color-surface-container-low: oklch(
|
|
509
|
-
--color-surface-container: oklch(
|
|
510
|
-
--color-surface-container-high: oklch(
|
|
511
|
-
--color-surface-container-highest: oklch(
|
|
512
|
-
--color-surface-variant: oklch(
|
|
513
|
-
--color-on-surface: oklch(
|
|
514
|
-
--color-on-surface-variant: oklch(
|
|
515
|
-
--color-base-100: oklch(
|
|
516
|
-
--color-base-200: oklch(
|
|
517
|
-
--color-base-300: oklch(
|
|
518
|
-
--color-base-400: oklch(55% 0.
|
|
519
|
-
--color-base-500: oklch(
|
|
520
|
-
--color-base-600: oklch(35% 0.
|
|
521
|
-
--color-base-700: oklch(
|
|
522
|
-
--color-base-800: oklch(18% 0.
|
|
523
|
-
--color-base-900: oklch(
|
|
524
|
-
--color-base-content: oklch(
|
|
525
|
-
--color-outline: oklch(
|
|
526
|
-
--color-outline-variant: oklch(85% 0.
|
|
527
|
-
--color-inverse-surface: oklch(
|
|
528
|
-
--color-inverse-on-surface: oklch(
|
|
529
|
-
--color-inverse-primary: oklch(
|
|
530
|
-
--color-shadow: oklch(0% 0 0);
|
|
531
|
-
--color-scrim: oklch(0% 0 0 / 50%);
|
|
532
|
-
--color-info: oklch(
|
|
533
|
-
--color-info-content: oklch(
|
|
534
|
-
--color-info-container: oklch(95% 0.
|
|
535
|
-
--color-on-info-container: oklch(
|
|
536
|
-
--color-success: oklch(
|
|
537
|
-
--color-success-content: oklch(
|
|
538
|
-
--color-success-container: oklch(
|
|
539
|
-
--color-on-success-container: oklch(
|
|
540
|
-
--color-warning: oklch(
|
|
541
|
-
--color-warning-content: oklch(
|
|
542
|
-
--color-warning-container: oklch(
|
|
543
|
-
--color-on-warning-container: oklch(
|
|
544
|
-
--color-error: oklch(
|
|
545
|
-
--color-error-content: oklch(
|
|
546
|
-
--color-error-container: oklch(93% 0.
|
|
547
|
-
--color-on-error-container: oklch(
|
|
486
|
+
--theme-description: "Sunlit ivory with golden amber, muted lavender and sky blue";
|
|
487
|
+
--color-primary: oklch(82.60893044% 0.1414340166 83.31858015);
|
|
488
|
+
--color-primary-content: oklch(28.28953512% 0.0448991160 80.63639668);
|
|
489
|
+
--color-primary-container: oklch(95.57475591% 0.0614713639 92.12872653);
|
|
490
|
+
--color-on-primary-container: oklch(38.72869883% 0.0701556434 81.75114485);
|
|
491
|
+
--color-secondary: oklch(75.54657159% 0.0738680191 298.09280514);
|
|
492
|
+
--color-secondary-content: oklch(30.09347875% 0.0578718110 298.71400821);
|
|
493
|
+
--color-secondary-container: oklch(94.77129416% 0.0180917690 303.41223942);
|
|
494
|
+
--color-on-secondary-container: oklch(37.75435631% 0.0773343740 301.23088405);
|
|
495
|
+
--color-tertiary: oklch(76.94385339% 0.0640284924 221.04480848);
|
|
496
|
+
--color-tertiary-content: oklch(30.82709477% 0.0391899830 225.86055898);
|
|
497
|
+
--color-tertiary-container: oklch(95.11671506% 0.0167909766 215.45868624);
|
|
498
|
+
--color-on-tertiary-container: oklch(37.64053450% 0.0461503944 221.94991006);
|
|
499
|
+
--color-accent: oklch(90.26749798% 0.1105427306 93.87593258);
|
|
500
|
+
--color-accent-content: oklch(35.60101539% 0.0588941318 87.79310558);
|
|
501
|
+
--color-neutral: oklch(34.78392925% 0.0173048639 78.03949200);
|
|
502
|
+
--color-neutral-content: oklch(98.35030566% 0.0170577608 84.58657624);
|
|
503
|
+
--color-neutral-variant: oklch(48.47267982% 0.0259043741 73.78871657);
|
|
504
|
+
--color-surface: oklch(99.14473089% 0.0097633072 87.46952653);
|
|
505
|
+
--color-surface-dim: oklch(93.02387608% 0.0258398160 84.59321482);
|
|
506
|
+
--color-surface-bright: oklch(99.99999935% 0 0);
|
|
507
|
+
--color-surface-container-lowest: oklch(99.99999935% 0 0);
|
|
508
|
+
--color-surface-container-low: oklch(97.37543141% 0.0167153184 87.99753171);
|
|
509
|
+
--color-surface-container: oklch(95.32878442% 0.0224695782 87.15156842);
|
|
510
|
+
--color-surface-container-high: oklch(93.02387608% 0.0258398160 84.59321482);
|
|
511
|
+
--color-surface-container-highest: oklch(90.04844636% 0.0317371513 84.59011110);
|
|
512
|
+
--color-surface-variant: oklch(90.04844636% 0.0317371513 84.59011110);
|
|
513
|
+
--color-on-surface: oklch(28.54323950% 0.0202535180 76.57676498);
|
|
514
|
+
--color-on-surface-variant: oklch(48.47267982% 0.0259043741 73.78871657);
|
|
515
|
+
--color-base-100: oklch(99.14473089% 0.0097633072 87.46952653);
|
|
516
|
+
--color-base-200: oklch(97.37543141% 0.0167153184 87.99753171);
|
|
517
|
+
--color-base-300: oklch(93.02387608% 0.0258398160 84.59321482);
|
|
518
|
+
--color-base-400: oklch(55.01199157% 0.0351909086 74.88191474);
|
|
519
|
+
--color-base-500: oklch(44.93783706% 0.0295877832 74.85638734);
|
|
520
|
+
--color-base-600: oklch(35.00292970% 0.0249407737 76.85509951);
|
|
521
|
+
--color-base-700: oklch(24.86662243% 0.0194041154 73.70277146);
|
|
522
|
+
--color-base-800: oklch(18.07521115% 0.0118517040 73.14319887);
|
|
523
|
+
--color-base-900: oklch(11.73198826% 0.0090103504 73.47505765);
|
|
524
|
+
--color-base-content: oklch(28.54323950% 0.0202535180 76.57676498);
|
|
525
|
+
--color-outline: oklch(57.87187705% 0.0396997009 75.20078373);
|
|
526
|
+
--color-outline-variant: oklch(85.83658493% 0.0325359084 82.75783875);
|
|
527
|
+
--color-inverse-surface: oklch(28.54323950% 0.0202535180 76.57676498);
|
|
528
|
+
--color-inverse-on-surface: oklch(98.35030566% 0.0170577608 84.58657624);
|
|
529
|
+
--color-inverse-primary: oklch(90.26749798% 0.1105427306 93.87593258);
|
|
530
|
+
--color-shadow: oklch(0.00000000% 0 0);
|
|
531
|
+
--color-scrim: oklch(0.00000000% 0 0 / 50%);
|
|
532
|
+
--color-info: oklch(50.82237171% 0.0901951310 235.77699072);
|
|
533
|
+
--color-info-content: oklch(99.99999935% 0 0);
|
|
534
|
+
--color-info-container: oklch(95.09147873% 0.0151283794 228.96415080);
|
|
535
|
+
--color-on-info-container: oklch(39.58659448% 0.0609008792 232.98919080);
|
|
536
|
+
--color-success: oklch(52.17594416% 0.0995342775 154.56738341);
|
|
537
|
+
--color-success-content: oklch(99.99999935% 0 0);
|
|
538
|
+
--color-success-container: oklch(94.93242285% 0.0208030926 140.89790892);
|
|
539
|
+
--color-on-success-container: oklch(39.51234051% 0.0596350615 156.43156459);
|
|
540
|
+
--color-warning: oklch(55.13077016% 0.1354192110 53.04846323);
|
|
541
|
+
--color-warning-content: oklch(99.99999935% 0 0);
|
|
542
|
+
--color-warning-container: oklch(94.03448323% 0.0406430766 74.46372929);
|
|
543
|
+
--color-on-warning-container: oklch(40.76011391% 0.0954501128 54.71444706);
|
|
544
|
+
--color-error: oklch(54.21677601% 0.1543098528 27.29045200);
|
|
545
|
+
--color-error-content: oklch(99.99999935% 0 0);
|
|
546
|
+
--color-error-container: oklch(93.88397486% 0.0266133029 34.97748526);
|
|
547
|
+
--color-on-error-container: oklch(38.73080591% 0.0993593486 27.58854513);
|
|
548
548
|
|
|
549
549
|
--radius-selector: 0.25rem;
|
|
550
550
|
--radius-field: 0.625rem;
|
|
@@ -648,68 +648,68 @@ html {
|
|
|
648
648
|
--theme-mode: "light";
|
|
649
649
|
--theme-family: "duskmoon";
|
|
650
650
|
--theme-pair: "moonlight";
|
|
651
|
-
--theme-description: "
|
|
652
|
-
--color-primary: oklch(
|
|
653
|
-
--color-primary-content: oklch(
|
|
654
|
-
--color-primary-container: oklch(95% 0.
|
|
655
|
-
--color-on-primary-container: oklch(
|
|
656
|
-
--color-secondary: oklch(
|
|
657
|
-
--color-secondary-content: oklch(
|
|
658
|
-
--color-secondary-container: oklch(94% 0.
|
|
659
|
-
--color-on-secondary-container: oklch(
|
|
660
|
-
--color-tertiary: oklch(
|
|
661
|
-
--color-tertiary-content: oklch(
|
|
662
|
-
--color-tertiary-container: oklch(95% 0.
|
|
663
|
-
--color-on-tertiary-container: oklch(
|
|
664
|
-
--color-accent: oklch(
|
|
665
|
-
--color-accent-content: oklch(
|
|
666
|
-
--color-neutral: oklch(
|
|
667
|
-
--color-neutral-content: oklch(
|
|
668
|
-
--color-neutral-variant: oklch(
|
|
669
|
-
--color-surface: oklch(
|
|
670
|
-
--color-surface-dim: oklch(
|
|
671
|
-
--color-surface-bright: oklch(
|
|
672
|
-
--color-surface-container-lowest: oklch(
|
|
673
|
-
--color-surface-container-low: oklch(
|
|
674
|
-
--color-surface-container: oklch(
|
|
675
|
-
--color-surface-container-high: oklch(
|
|
676
|
-
--color-surface-container-highest: oklch(
|
|
677
|
-
--color-surface-variant: oklch(
|
|
678
|
-
--color-on-surface: oklch(
|
|
679
|
-
--color-on-surface-variant: oklch(
|
|
680
|
-
--color-base-100: oklch(
|
|
681
|
-
--color-base-200: oklch(
|
|
682
|
-
--color-base-300: oklch(
|
|
683
|
-
--color-base-400: oklch(55% 0.
|
|
684
|
-
--color-base-500: oklch(
|
|
685
|
-
--color-base-600: oklch(35% 0.
|
|
686
|
-
--color-base-700: oklch(
|
|
687
|
-
--color-base-800: oklch(18% 0.
|
|
688
|
-
--color-base-900: oklch(
|
|
689
|
-
--color-base-content: oklch(
|
|
690
|
-
--color-outline: oklch(
|
|
691
|
-
--color-outline-variant: oklch(85% 0.
|
|
692
|
-
--color-inverse-surface: oklch(
|
|
693
|
-
--color-inverse-on-surface: oklch(
|
|
694
|
-
--color-inverse-primary: oklch(
|
|
695
|
-
--color-shadow: oklch(0% 0 0);
|
|
696
|
-
--color-scrim: oklch(0% 0 0 / 50%);
|
|
697
|
-
--color-info: oklch(
|
|
698
|
-
--color-info-content: oklch(
|
|
699
|
-
--color-info-container: oklch(95% 0.
|
|
700
|
-
--color-on-info-container: oklch(
|
|
701
|
-
--color-success: oklch(
|
|
702
|
-
--color-success-content: oklch(
|
|
703
|
-
--color-success-container: oklch(
|
|
704
|
-
--color-on-success-container: oklch(
|
|
705
|
-
--color-warning: oklch(
|
|
706
|
-
--color-warning-content: oklch(
|
|
707
|
-
--color-warning-container: oklch(
|
|
708
|
-
--color-on-warning-container: oklch(
|
|
709
|
-
--color-error: oklch(
|
|
710
|
-
--color-error-content: oklch(
|
|
711
|
-
--color-error-container: oklch(93% 0.
|
|
712
|
-
--color-on-error-container: oklch(
|
|
651
|
+
--theme-description: "Sunlit ivory with golden amber, muted lavender and sky blue";
|
|
652
|
+
--color-primary: oklch(82.60893044% 0.1414340166 83.31858015);
|
|
653
|
+
--color-primary-content: oklch(28.28953512% 0.0448991160 80.63639668);
|
|
654
|
+
--color-primary-container: oklch(95.57475591% 0.0614713639 92.12872653);
|
|
655
|
+
--color-on-primary-container: oklch(38.72869883% 0.0701556434 81.75114485);
|
|
656
|
+
--color-secondary: oklch(75.54657159% 0.0738680191 298.09280514);
|
|
657
|
+
--color-secondary-content: oklch(30.09347875% 0.0578718110 298.71400821);
|
|
658
|
+
--color-secondary-container: oklch(94.77129416% 0.0180917690 303.41223942);
|
|
659
|
+
--color-on-secondary-container: oklch(37.75435631% 0.0773343740 301.23088405);
|
|
660
|
+
--color-tertiary: oklch(76.94385339% 0.0640284924 221.04480848);
|
|
661
|
+
--color-tertiary-content: oklch(30.82709477% 0.0391899830 225.86055898);
|
|
662
|
+
--color-tertiary-container: oklch(95.11671506% 0.0167909766 215.45868624);
|
|
663
|
+
--color-on-tertiary-container: oklch(37.64053450% 0.0461503944 221.94991006);
|
|
664
|
+
--color-accent: oklch(90.26749798% 0.1105427306 93.87593258);
|
|
665
|
+
--color-accent-content: oklch(35.60101539% 0.0588941318 87.79310558);
|
|
666
|
+
--color-neutral: oklch(34.78392925% 0.0173048639 78.03949200);
|
|
667
|
+
--color-neutral-content: oklch(98.35030566% 0.0170577608 84.58657624);
|
|
668
|
+
--color-neutral-variant: oklch(48.47267982% 0.0259043741 73.78871657);
|
|
669
|
+
--color-surface: oklch(99.14473089% 0.0097633072 87.46952653);
|
|
670
|
+
--color-surface-dim: oklch(93.02387608% 0.0258398160 84.59321482);
|
|
671
|
+
--color-surface-bright: oklch(99.99999935% 0 0);
|
|
672
|
+
--color-surface-container-lowest: oklch(99.99999935% 0 0);
|
|
673
|
+
--color-surface-container-low: oklch(97.37543141% 0.0167153184 87.99753171);
|
|
674
|
+
--color-surface-container: oklch(95.32878442% 0.0224695782 87.15156842);
|
|
675
|
+
--color-surface-container-high: oklch(93.02387608% 0.0258398160 84.59321482);
|
|
676
|
+
--color-surface-container-highest: oklch(90.04844636% 0.0317371513 84.59011110);
|
|
677
|
+
--color-surface-variant: oklch(90.04844636% 0.0317371513 84.59011110);
|
|
678
|
+
--color-on-surface: oklch(28.54323950% 0.0202535180 76.57676498);
|
|
679
|
+
--color-on-surface-variant: oklch(48.47267982% 0.0259043741 73.78871657);
|
|
680
|
+
--color-base-100: oklch(99.14473089% 0.0097633072 87.46952653);
|
|
681
|
+
--color-base-200: oklch(97.37543141% 0.0167153184 87.99753171);
|
|
682
|
+
--color-base-300: oklch(93.02387608% 0.0258398160 84.59321482);
|
|
683
|
+
--color-base-400: oklch(55.01199157% 0.0351909086 74.88191474);
|
|
684
|
+
--color-base-500: oklch(44.93783706% 0.0295877832 74.85638734);
|
|
685
|
+
--color-base-600: oklch(35.00292970% 0.0249407737 76.85509951);
|
|
686
|
+
--color-base-700: oklch(24.86662243% 0.0194041154 73.70277146);
|
|
687
|
+
--color-base-800: oklch(18.07521115% 0.0118517040 73.14319887);
|
|
688
|
+
--color-base-900: oklch(11.73198826% 0.0090103504 73.47505765);
|
|
689
|
+
--color-base-content: oklch(28.54323950% 0.0202535180 76.57676498);
|
|
690
|
+
--color-outline: oklch(57.87187705% 0.0396997009 75.20078373);
|
|
691
|
+
--color-outline-variant: oklch(85.83658493% 0.0325359084 82.75783875);
|
|
692
|
+
--color-inverse-surface: oklch(28.54323950% 0.0202535180 76.57676498);
|
|
693
|
+
--color-inverse-on-surface: oklch(98.35030566% 0.0170577608 84.58657624);
|
|
694
|
+
--color-inverse-primary: oklch(90.26749798% 0.1105427306 93.87593258);
|
|
695
|
+
--color-shadow: oklch(0.00000000% 0 0);
|
|
696
|
+
--color-scrim: oklch(0.00000000% 0 0 / 50%);
|
|
697
|
+
--color-info: oklch(50.82237171% 0.0901951310 235.77699072);
|
|
698
|
+
--color-info-content: oklch(99.99999935% 0 0);
|
|
699
|
+
--color-info-container: oklch(95.09147873% 0.0151283794 228.96415080);
|
|
700
|
+
--color-on-info-container: oklch(39.58659448% 0.0609008792 232.98919080);
|
|
701
|
+
--color-success: oklch(52.17594416% 0.0995342775 154.56738341);
|
|
702
|
+
--color-success-content: oklch(99.99999935% 0 0);
|
|
703
|
+
--color-success-container: oklch(94.93242285% 0.0208030926 140.89790892);
|
|
704
|
+
--color-on-success-container: oklch(39.51234051% 0.0596350615 156.43156459);
|
|
705
|
+
--color-warning: oklch(55.13077016% 0.1354192110 53.04846323);
|
|
706
|
+
--color-warning-content: oklch(99.99999935% 0 0);
|
|
707
|
+
--color-warning-container: oklch(94.03448323% 0.0406430766 74.46372929);
|
|
708
|
+
--color-on-warning-container: oklch(40.76011391% 0.0954501128 54.71444706);
|
|
709
|
+
--color-error: oklch(54.21677601% 0.1543098528 27.29045200);
|
|
710
|
+
--color-error-content: oklch(99.99999935% 0 0);
|
|
711
|
+
--color-error-container: oklch(93.88397486% 0.0266133029 34.97748526);
|
|
712
|
+
--color-on-error-container: oklch(38.73080591% 0.0993593486 27.58854513);
|
|
713
713
|
|
|
714
714
|
--radius-selector: 0.25rem;
|
|
715
715
|
--radius-field: 0.625rem;
|
|
@@ -2355,7 +2355,7 @@ html {
|
|
|
2355
2355
|
.validator-hint { font-size: 0.75rem; color: var(--color-on-surface-variant); }
|
|
2356
2356
|
.validator-error { display: none; font-size: 0.75rem; color: var(--color-error); }
|
|
2357
2357
|
/* Keep OTP actions stationary when blur reveals an error during a click. */
|
|
2358
|
-
.otp-code ~ .validator-error { display: block; visibility: hidden; }
|
|
2358
|
+
:is(.otp-code, .otp-input) ~ .validator-error { display: block; visibility: hidden; }
|
|
2359
2359
|
:is(.form-group, .form-control):has(:is([aria-invalid="true"], .validator:user-invalid, .validate :invalid, .validate:invalid):not(:disabled)) > .validator-error,
|
|
2360
2360
|
:is(.form-group-error, .form-control.error) > .validator-error { display: block; visibility: visible; }
|
|
2361
2361
|
|
|
@@ -11162,256 +11162,168 @@ html {
|
|
|
11162
11162
|
}
|
|
11163
11163
|
@media (forced-colors: active) { .otp-code { background-image: none; } }
|
|
11164
11164
|
|
|
11165
|
-
|
|
11166
|
-
|
|
11167
|
-
|
|
11168
|
-
|
|
11169
|
-
|
|
11170
|
-
|
|
11171
|
-
|
|
11172
|
-
|
|
11173
|
-
*
|
|
11174
|
-
|
|
11175
|
-
|
|
11176
|
-
|
|
11177
|
-
@layer components {
|
|
11178
|
-
/* Base PIN Container */
|
|
11179
|
-
.pin-input {
|
|
11165
|
+
/* One native input over decorative cells, following the daisyUI OTP layout.
|
|
11166
|
+
The spans must precede the input; their count matches maxlength/pattern. */
|
|
11167
|
+
.otp-input:has(> .otp-code) {
|
|
11168
|
+
--otp-count: 6;
|
|
11169
|
+
--otp-cell: 2ch;
|
|
11170
|
+
--otp-gap-ratio: 0.25;
|
|
11171
|
+
--otp-gap: calc(var(--otp-cell) * var(--otp-gap-ratio));
|
|
11172
|
+
--otp-stride: calc(var(--otp-cell) + var(--otp-gap));
|
|
11173
|
+
--otp-width-units: calc(var(--otp-count) * (1 + var(--otp-gap-ratio)) + 0.25);
|
|
11174
|
+
--otp-height: 3rem;
|
|
11175
|
+
position: relative;
|
|
11180
11176
|
display: inline-flex;
|
|
11177
|
+
flex-wrap: nowrap;
|
|
11181
11178
|
align-items: center;
|
|
11182
|
-
gap: 0
|
|
11183
|
-
|
|
11184
|
-
|
|
11185
|
-
|
|
11186
|
-
|
|
11187
|
-
|
|
11188
|
-
|
|
11189
|
-
|
|
11190
|
-
font-size: 1.5rem;
|
|
11191
|
-
font-weight: 600;
|
|
11192
|
-
text-align: center;
|
|
11193
|
-
color: var(--color-on-surface);
|
|
11194
|
-
background-color: var(--color-surface);
|
|
11195
|
-
border: 2px solid currentColor;
|
|
11179
|
+
gap: 0;
|
|
11180
|
+
inline-size: calc(var(--otp-cell) * var(--otp-width-units) + 2px);
|
|
11181
|
+
max-inline-size: 100%;
|
|
11182
|
+
container-type: inline-size;
|
|
11183
|
+
block-size: var(--otp-height);
|
|
11184
|
+
font: 1.5rem / 1 ui-monospace, monospace;
|
|
11185
|
+
direction: ltr;
|
|
11186
|
+
color: var(--dm-validation-color, var(--color-on-surface));
|
|
11196
11187
|
border-radius: var(--radius-sm);
|
|
11197
|
-
|
|
11198
|
-
|
|
11199
|
-
caret-color: var(--color-primary);
|
|
11200
|
-
-webkit-text-security: disc;
|
|
11201
|
-
}
|
|
11202
|
-
|
|
11203
|
-
.pin-input-field::placeholder {
|
|
11204
|
-
color: var(--color-on-surface-variant);
|
|
11205
|
-
opacity: 0.3;
|
|
11188
|
+
/* Reserve space for the trailing native caret and cell focus rings. */
|
|
11189
|
+
clip-path: inset(-4px -4px -4px -4px);
|
|
11206
11190
|
}
|
|
11207
11191
|
|
|
11208
|
-
.
|
|
11209
|
-
|
|
11192
|
+
/* Scale cells to the actual wrapper width, including inside narrow forms. */
|
|
11193
|
+
.otp-input > :is(span, .otp-code), .otp-input:has(> .otp-code)::after {
|
|
11194
|
+
--otp-cell: calc((100cqi - 2px) / var(--otp-width-units));
|
|
11195
|
+
--otp-gap: calc(var(--otp-cell) * var(--otp-gap-ratio));
|
|
11196
|
+
--otp-stride: calc(var(--otp-cell) + var(--otp-gap));
|
|
11210
11197
|
}
|
|
11211
11198
|
|
|
11212
|
-
.
|
|
11213
|
-
|
|
11214
|
-
}
|
|
11199
|
+
.otp-input:has(> span:nth-child(1)) { --otp-count: 1; }
|
|
11200
|
+
.otp-input:has(> span:nth-child(2)) { --otp-count: 2; }
|
|
11201
|
+
.otp-input:has(> span:nth-child(3)) { --otp-count: 3; }
|
|
11202
|
+
.otp-input:has(> span:nth-child(4)) { --otp-count: 4; }
|
|
11203
|
+
.otp-input:has(> span:nth-child(5)) { --otp-count: 5; }
|
|
11204
|
+
.otp-input:has(> span:nth-child(6)) { --otp-count: 6; }
|
|
11205
|
+
.otp-input:has(> span:nth-child(7)) { --otp-count: 7; }
|
|
11206
|
+
.otp-input:has(> span:nth-child(8)) { --otp-count: 8; }
|
|
11215
11207
|
|
|
11216
|
-
.
|
|
11217
|
-
|
|
11218
|
-
|
|
11219
|
-
|
|
11220
|
-
|
|
11221
|
-
|
|
11222
|
-
|
|
11223
|
-
|
|
11224
|
-
-
|
|
11225
|
-
|
|
11226
|
-
|
|
11227
|
-
/* Size Variants */
|
|
11228
|
-
.pin-input-sm .pin-input-field {
|
|
11229
|
-
width: 2.5rem;
|
|
11230
|
-
height: 3rem;
|
|
11231
|
-
font-size: 1.25rem;
|
|
11232
|
-
border-radius: var(--radius-xs);
|
|
11233
|
-
}
|
|
11234
|
-
|
|
11235
|
-
.pin-input-lg .pin-input-field {
|
|
11236
|
-
width: 3.5rem;
|
|
11237
|
-
height: 4rem;
|
|
11238
|
-
font-size: 1.75rem;
|
|
11239
|
-
border-radius: var(--radius-sm);
|
|
11240
|
-
}
|
|
11241
|
-
|
|
11242
|
-
/* Compact Gap */
|
|
11243
|
-
.pin-input-compact {
|
|
11244
|
-
gap: 0.25rem;
|
|
11245
|
-
}
|
|
11246
|
-
|
|
11247
|
-
/* Filled Variant */
|
|
11248
|
-
.pin-input-filled .pin-input-field {
|
|
11249
|
-
background-color: var(--color-surface-container);
|
|
11250
|
-
border: none;
|
|
11251
|
-
border-bottom: 2px solid var(--color-outline);
|
|
11252
|
-
border-radius: var(--radius-sm) var(--radius-sm) 0 0;
|
|
11208
|
+
.otp-input > span[aria-hidden="true"] {
|
|
11209
|
+
position: absolute;
|
|
11210
|
+
inset-block: 0;
|
|
11211
|
+
inline-size: var(--otp-cell);
|
|
11212
|
+
box-sizing: border-box;
|
|
11213
|
+
background-color: var(--color-surface);
|
|
11214
|
+
border: 1px solid currentColor;
|
|
11215
|
+
border-radius: inherit;
|
|
11216
|
+
pointer-events: none;
|
|
11217
|
+
transition: background-color 150ms ease-in-out;
|
|
11253
11218
|
}
|
|
11219
|
+
.otp-input > span:nth-child(1) { left: 0; }
|
|
11220
|
+
.otp-input > span:nth-child(2) { left: var(--otp-stride); }
|
|
11221
|
+
.otp-input > span:nth-child(3) { left: calc(var(--otp-stride) * 2); }
|
|
11222
|
+
.otp-input > span:nth-child(4) { left: calc(var(--otp-stride) * 3); }
|
|
11223
|
+
.otp-input > span:nth-child(5) { left: calc(var(--otp-stride) * 4); }
|
|
11224
|
+
.otp-input > span:nth-child(6) { left: calc(var(--otp-stride) * 5); }
|
|
11225
|
+
.otp-input > span:nth-child(7) { left: calc(var(--otp-stride) * 6); }
|
|
11226
|
+
.otp-input > span:nth-child(8) { left: calc(var(--otp-stride) * 7); }
|
|
11254
11227
|
|
|
11255
|
-
.
|
|
11256
|
-
|
|
11228
|
+
.otp-input > .otp-code {
|
|
11229
|
+
position: relative;
|
|
11230
|
+
z-index: 1;
|
|
11231
|
+
field-sizing: content;
|
|
11232
|
+
flex-shrink: 0;
|
|
11233
|
+
inline-size: auto;
|
|
11234
|
+
min-inline-size: 0;
|
|
11235
|
+
max-inline-size: none;
|
|
11236
|
+
block-size: 100%;
|
|
11237
|
+
margin: 0;
|
|
11238
|
+
padding: 0 0 0 calc((var(--otp-cell) - 1ch) / 2);
|
|
11239
|
+
border: 0;
|
|
11240
|
+
border-radius: 0;
|
|
11241
|
+
font: inherit;
|
|
11242
|
+
font-size: min(1em, var(--otp-cell));
|
|
11243
|
+
letter-spacing: calc(var(--otp-stride) - 1ch);
|
|
11244
|
+
color: inherit;
|
|
11245
|
+
background: transparent;
|
|
11246
|
+
outline: none;
|
|
11257
11247
|
box-shadow: none;
|
|
11248
|
+
appearance: none;
|
|
11258
11249
|
}
|
|
11259
11250
|
|
|
11260
|
-
/*
|
|
11261
|
-
.
|
|
11262
|
-
|
|
11263
|
-
|
|
11264
|
-
|
|
11265
|
-
|
|
11266
|
-
|
|
11267
|
-
|
|
11268
|
-
|
|
11269
|
-
height: 2.5rem;
|
|
11270
|
-
}
|
|
11271
|
-
|
|
11272
|
-
.pin-input-circle.pin-input-lg .pin-input-field {
|
|
11273
|
-
width: 3.5rem;
|
|
11274
|
-
height: 3.5rem;
|
|
11275
|
-
}
|
|
11276
|
-
|
|
11277
|
-
/* Dot Display (shows dots instead of numbers) */
|
|
11278
|
-
.pin-input-dots .pin-input-field {
|
|
11279
|
-
font-size: 2rem;
|
|
11280
|
-
letter-spacing: -0.25rem;
|
|
11281
|
-
}
|
|
11282
|
-
|
|
11283
|
-
/* Color Variants */
|
|
11284
|
-
.pin-input-primary .pin-input-field {
|
|
11285
|
-
color: var(--color-primary);
|
|
11286
|
-
}
|
|
11287
|
-
|
|
11288
|
-
.pin-input-primary .pin-input-field:focus {
|
|
11289
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-primary) 10%, transparent);
|
|
11290
|
-
}
|
|
11291
|
-
|
|
11292
|
-
.pin-input-secondary .pin-input-field {
|
|
11293
|
-
color: var(--color-secondary);
|
|
11294
|
-
}
|
|
11295
|
-
|
|
11296
|
-
.pin-input-secondary .pin-input-field:focus {
|
|
11297
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-secondary) 10%, transparent);
|
|
11298
|
-
}
|
|
11299
|
-
|
|
11300
|
-
.pin-input-tertiary .pin-input-field {
|
|
11301
|
-
color: var(--color-tertiary);
|
|
11302
|
-
}
|
|
11303
|
-
|
|
11304
|
-
.pin-input-tertiary .pin-input-field:focus {
|
|
11305
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-tertiary) 10%, transparent);
|
|
11306
|
-
}
|
|
11307
|
-
|
|
11308
|
-
.pin-input-info .pin-input-field {
|
|
11309
|
-
color: var(--color-info);
|
|
11310
|
-
}
|
|
11311
|
-
|
|
11312
|
-
.pin-input-info .pin-input-field:focus {
|
|
11313
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-info) 10%, transparent);
|
|
11314
|
-
}
|
|
11315
|
-
|
|
11316
|
-
.pin-input-success .pin-input-field {
|
|
11317
|
-
color: var(--color-success);
|
|
11318
|
-
}
|
|
11319
|
-
|
|
11320
|
-
.pin-input-success .pin-input-field:focus {
|
|
11321
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-success) 10%, transparent);
|
|
11322
|
-
}
|
|
11323
|
-
|
|
11324
|
-
.pin-input-warning .pin-input-field {
|
|
11325
|
-
color: var(--color-warning);
|
|
11326
|
-
}
|
|
11327
|
-
|
|
11328
|
-
.pin-input-warning .pin-input-field:focus {
|
|
11329
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-warning) 10%, transparent);
|
|
11330
|
-
}
|
|
11331
|
-
|
|
11332
|
-
.pin-input-error .pin-input-field {
|
|
11333
|
-
color: var(--color-error);
|
|
11334
|
-
animation: pin-shake 300ms ease-in-out;
|
|
11335
|
-
}
|
|
11336
|
-
|
|
11337
|
-
.pin-input-error .pin-input-field:focus {
|
|
11338
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-error) 10%, transparent);
|
|
11339
|
-
}
|
|
11340
|
-
|
|
11341
|
-
.pin-input-accent .pin-input-field {
|
|
11342
|
-
color: var(--color-accent);
|
|
11343
|
-
}
|
|
11344
|
-
|
|
11345
|
-
.pin-input-accent .pin-input-field:focus {
|
|
11346
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-accent) 10%, transparent);
|
|
11347
|
-
}
|
|
11348
|
-
|
|
11349
|
-
.pin-input-neutral .pin-input-field {
|
|
11350
|
-
color: var(--color-neutral);
|
|
11351
|
-
}
|
|
11352
|
-
|
|
11353
|
-
.pin-input-neutral .pin-input-field:focus {
|
|
11354
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-neutral) 10%, transparent);
|
|
11355
|
-
}
|
|
11356
|
-
|
|
11357
|
-
.pin-input-base .pin-input-field {
|
|
11358
|
-
color: var(--color-base-content);
|
|
11359
|
-
}
|
|
11360
|
-
|
|
11361
|
-
.pin-input-base .pin-input-field:focus {
|
|
11362
|
-
box-shadow: 0 0 0 3px color-mix(in oklch, var(--color-base-content) 10%, transparent);
|
|
11363
|
-
}
|
|
11364
|
-
|
|
11365
|
-
@keyframes pin-shake {
|
|
11366
|
-
0%, 100% { transform: translateX(0); }
|
|
11367
|
-
20%, 60% { transform: translateX(-4px); }
|
|
11368
|
-
40%, 80% { transform: translateX(4px); }
|
|
11369
|
-
}
|
|
11370
|
-
|
|
11371
|
-
/* Ghost Variant */
|
|
11372
|
-
.pin-input-ghost .pin-input-field {
|
|
11373
|
-
background-color: transparent;
|
|
11374
|
-
border-color: transparent;
|
|
11251
|
+
/* Intrinsic input width follows the entered characters, positioning the next cell. */
|
|
11252
|
+
.otp-input:has(> .otp-code)::after {
|
|
11253
|
+
content: "";
|
|
11254
|
+
flex-shrink: 0;
|
|
11255
|
+
inline-size: var(--otp-cell);
|
|
11256
|
+
block-size: var(--otp-height);
|
|
11257
|
+
margin-inline-start: calc(-0.25 * var(--otp-cell));
|
|
11258
|
+
border-radius: inherit;
|
|
11259
|
+
pointer-events: none;
|
|
11375
11260
|
}
|
|
11376
|
-
|
|
11377
|
-
.
|
|
11378
|
-
background-color: var(--color-surface-container);
|
|
11379
|
-
border-color: transparent;
|
|
11261
|
+
.otp-input:focus-within::after,
|
|
11262
|
+
.otp-input:has(> .otp-code:focus) > span {
|
|
11380
11263
|
box-shadow: 0 0 0 3px color-mix(in oklch, currentColor 20%, transparent);
|
|
11264
|
+
outline: 1px solid currentColor;
|
|
11265
|
+
}
|
|
11266
|
+
.otp-input:has(> .otp-code:valid:focus)::after { visibility: hidden; }
|
|
11267
|
+
/* Cell indicators replace the reset's unlayered native focus outline. */
|
|
11268
|
+
.otp-input > .otp-code:focus {
|
|
11269
|
+
outline: none !important;
|
|
11270
|
+
box-shadow: none !important;
|
|
11271
|
+
}
|
|
11272
|
+
|
|
11273
|
+
.otp-input-xs:has(> .otp-code) { font-size: 1rem; --otp-height: 2rem; }
|
|
11274
|
+
.otp-input-sm:has(> .otp-code) { font-size: 1.25rem; --otp-height: 2.5rem; }
|
|
11275
|
+
.otp-input-md:has(> .otp-code) { font-size: 1.5rem; --otp-height: 3rem; }
|
|
11276
|
+
.otp-input-lg:has(> .otp-code) { font-size: 1.75rem; --otp-height: 3.5rem; }
|
|
11277
|
+
.otp-input-xl:has(> .otp-code) { font-size: 2rem; --otp-height: 4rem; }
|
|
11278
|
+
.otp-input-joined:has(> .otp-code) { --otp-gap-ratio: 0; }
|
|
11279
|
+
.otp-input-joined > span:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
|
|
11280
|
+
.otp-input-joined > span:not(:nth-last-child(2)) { border-top-right-radius: 0; border-bottom-right-radius: 0; border-right: 0; }
|
|
11281
|
+
.otp-input-ghost > span { border-color: transparent; }
|
|
11282
|
+
.otp-input-filled > span { background-color: var(--color-surface-container); }
|
|
11283
|
+
.otp-input-underline > span { border-width: 0 0 1px; border-radius: 0; background-color: transparent; }
|
|
11284
|
+
|
|
11285
|
+
.otp-input-primary:has(> .otp-code) { color: var(--dm-validation-color, var(--color-primary)); }
|
|
11286
|
+
.otp-input-secondary:has(> .otp-code) { color: var(--dm-validation-color, var(--color-secondary)); }
|
|
11287
|
+
.otp-input-tertiary:has(> .otp-code) { color: var(--dm-validation-color, var(--color-tertiary)); }
|
|
11288
|
+
.otp-input-info:has(> .otp-code) { color: var(--dm-validation-color, var(--color-info)); }
|
|
11289
|
+
.otp-input-success:has(> .otp-code) { color: var(--dm-validation-color, var(--color-success)); }
|
|
11290
|
+
.otp-input-warning:has(> .otp-code) { color: var(--dm-validation-color, var(--color-warning)); }
|
|
11291
|
+
.otp-input-error:has(> .otp-code) { color: var(--dm-validation-color, var(--color-error)); }
|
|
11292
|
+
.otp-input-accent:has(> .otp-code) { color: var(--dm-validation-color, var(--color-accent)); }
|
|
11293
|
+
.otp-input-neutral:has(> .otp-code) { color: var(--dm-validation-color, var(--color-neutral)); }
|
|
11294
|
+
.otp-input-base:has(> .otp-code) { color: var(--dm-validation-color, var(--color-base-content)); }
|
|
11295
|
+
|
|
11296
|
+
.otp-input:has(> .otp-code:is(.validate :valid, .validate:valid, .validator.validator-success:user-valid):not([aria-invalid="true"]):not(:disabled)):not(:where(.form-group-error *, .form-control.error *)) {
|
|
11297
|
+
--dm-validation-color: var(--color-success);
|
|
11381
11298
|
}
|
|
11382
|
-
|
|
11383
|
-
|
|
11384
|
-
|
|
11385
|
-
display: flex;
|
|
11386
|
-
flex-direction: column;
|
|
11387
|
-
gap: 0.5rem;
|
|
11299
|
+
.otp-input:has(> .otp-code:is([aria-invalid="true"], .validator:user-invalid, .validate :invalid, .validate:invalid):not(:disabled)),
|
|
11300
|
+
:is(.form-group-error, .form-control.error) .otp-input {
|
|
11301
|
+
--dm-validation-color: var(--color-error);
|
|
11388
11302
|
}
|
|
11389
|
-
|
|
11390
|
-
.
|
|
11391
|
-
|
|
11392
|
-
font-weight: 500;
|
|
11393
|
-
color: var(--color-on-surface);
|
|
11303
|
+
.otp-input:has(> .otp-code:is([aria-invalid="true"], .validator:user-invalid, .validate :invalid, .validate:invalid):not(:disabled)) > span,
|
|
11304
|
+
:is(.form-group-error, .form-control.error) .otp-input > span {
|
|
11305
|
+
border-color: currentColor;
|
|
11394
11306
|
}
|
|
11395
|
-
|
|
11396
|
-
|
|
11397
|
-
|
|
11398
|
-
color: var(--color-on-surface-variant);
|
|
11307
|
+
.otp-input:has(> .otp-code:disabled) {
|
|
11308
|
+
opacity: 0.38;
|
|
11309
|
+
cursor: not-allowed;
|
|
11399
11310
|
}
|
|
11311
|
+
.otp-input > .otp-code:disabled { opacity: 1; }
|
|
11400
11312
|
|
|
11401
|
-
.
|
|
11402
|
-
|
|
11403
|
-
color: var(--color-
|
|
11313
|
+
/* Engines without content sizing retain a usable single native input. */
|
|
11314
|
+
@supports not (field-sizing: content) {
|
|
11315
|
+
.otp-input > .otp-code { inline-size: 100%; letter-spacing: normal; padding: 0.75rem; background-color: var(--color-surface); border: 1px solid currentColor; border-radius: inherit; }
|
|
11316
|
+
.otp-input > span, .otp-input:has(> .otp-code)::after { display: none; }
|
|
11317
|
+
.otp-input > .otp-code:focus { outline: 2px solid currentColor !important; outline-offset: 2px; }
|
|
11318
|
+
}
|
|
11319
|
+
@media (forced-colors: active) {
|
|
11320
|
+
.otp-input:focus-within { outline: 2px solid Highlight; outline-offset: 2px; }
|
|
11404
11321
|
}
|
|
11405
11322
|
|
|
11406
|
-
/* Reduce Motion */
|
|
11407
11323
|
@media (prefers-reduced-motion: reduce) {
|
|
11408
|
-
.
|
|
11324
|
+
.otp-input-field, .otp-input > span {
|
|
11409
11325
|
transition: none;
|
|
11410
11326
|
}
|
|
11411
|
-
|
|
11412
|
-
.pin-input-error .pin-input-field {
|
|
11413
|
-
animation: none;
|
|
11414
|
-
}
|
|
11415
11327
|
}
|
|
11416
11328
|
}
|
|
11417
11329
|
|