mol_plot_all 1.2.635 → 1.2.636

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mol_plot_all",
3
- "version": "1.2.635",
3
+ "version": "1.2.636",
4
4
  "exports": {
5
5
  "node": {
6
6
  "import": "./node.mjs",
@@ -106,6 +106,8 @@
106
106
  "$mol_style_func",
107
107
  "$mol_style_unit",
108
108
  "$mol_decor",
109
+ "$mol_style_properties",
110
+ "$mol_type_override",
109
111
  "$mol_gap",
110
112
  "$mol_state_time",
111
113
  "$mol_state",
package/web.d.ts CHANGED
@@ -493,37 +493,201 @@ declare namespace $ {
493
493
  }
494
494
 
495
495
  declare namespace $ {
496
- type $mol_style_func_name = 'calc' | 'hsla' | 'rgba' | 'var' | 'clamp' | 'url' | 'scale' | 'cubic-bezier';
496
+ type $mol_style_func_name = 'calc' | 'hsla' | 'rgba' | 'var' | 'clamp' | 'url' | 'scale' | 'cubic-bezier' | 'linear' | 'steps' | $mol_style_func_filter;
497
+ type $mol_style_func_filter = 'blur' | 'brightness' | 'contrast' | 'drop-shadow' | 'grayscale' | 'hue-rotate' | 'invert' | 'opacity' | 'sepia' | 'saturate';
497
498
  class $mol_style_func<Name extends $mol_style_func_name, Value = unknown> extends $mol_decor<Value> {
498
499
  readonly name: Name;
499
500
  constructor(name: Name, value: Value);
500
501
  prefix(): string;
501
502
  postfix(): string;
502
503
  static calc<Value>(value: Value): $mol_style_func<"calc", Value>;
503
- static vary<Name extends string>(name: Name): $mol_style_func<"var", Name>;
504
+ static vary<Name extends string, Value extends string>(name: Name, defaultValue?: Value): $mol_style_func<"var", Name | (Name | Value)[]>;
504
505
  static url<Href extends string>(href: Href): $mol_style_func<"url", string>;
505
506
  static hsla(hue: number, saturation: number, lightness: number, alpha: number): $mol_style_func<"hsla", (number | `${number}%`)[]>;
506
507
  static clamp(min: $mol_style_unit<any>, mid: $mol_style_unit<any>, max: $mol_style_unit<any>): $mol_style_func<"clamp", $mol_style_unit<any>[]>;
507
508
  static rgba(red: number, green: number, blue: number, alpha: number): $mol_style_func<"rgba", number[]>;
508
509
  static scale(zoom: number): $mol_style_func<"scale", number[]>;
510
+ static linear(...breakpoints: Array<number | [number, number | $mol_style_unit<'%'>]>): $mol_style_func<"linear", string[]>;
509
511
  static cubic_bezier(x1: number, y1: number, x2: number, y2: number): $mol_style_func<"cubic-bezier", number[]>;
512
+ static steps(value: number, step_position: 'jump-start' | 'jump-end' | 'jump-none' | 'jump-both' | 'start' | 'end'): $mol_style_func<"steps", (number | "end" | "start" | "jump-start" | "jump-end" | "jump-none" | "jump-both")[]>;
513
+ static blur(value?: $mol_style_unit<$mol_style_unit_length>): $mol_style_func<"blur", string | $mol_style_unit<$mol_style_unit_length>>;
514
+ static brightness(value?: number | $mol_style_unit<'%'>): $mol_style_func<"brightness", string | number | $mol_style_unit<"%">>;
515
+ static contrast(value?: number | $mol_style_unit<'%'>): $mol_style_func<"contrast", string | number | $mol_style_unit<"%">>;
516
+ static drop_shadow(color: $mol_style_properties_color, x_offset: $mol_style_unit<$mol_style_unit_length>, y_offset: $mol_style_unit<$mol_style_unit_length>, blur_radius?: $mol_style_unit<$mol_style_unit_length>): $mol_style_func<"drop-shadow", ($mol_style_unit<$mol_style_unit_length> | $mol_style_properties_color)[]>;
517
+ static grayscale(value?: number | $mol_style_unit<'%'>): $mol_style_func<"grayscale", string | number | $mol_style_unit<"%">>;
518
+ static hue_rotate(value?: 0 | $mol_style_unit<$mol_style_unit_angle>): $mol_style_func<"hue-rotate", string | 0 | $mol_style_unit<$mol_style_unit_angle>>;
519
+ static invert(value?: number | $mol_style_unit<'%'>): $mol_style_func<"invert", string | number | $mol_style_unit<"%">>;
520
+ static opacity(value?: number | $mol_style_unit<'%'>): $mol_style_func<"opacity", string | number | $mol_style_unit<"%">>;
521
+ static sepia(value?: number | $mol_style_unit<'%'>): $mol_style_func<"sepia", string | number | $mol_style_unit<"%">>;
522
+ static saturate(value?: number | $mol_style_unit<'%'>): $mol_style_func<"saturate", string | number | $mol_style_unit<"%">>;
510
523
  }
511
524
  }
512
525
 
526
+ declare namespace $ {
527
+ type $mol_type_override<Base, Over> = Omit<Base, keyof Over> & Over;
528
+ }
529
+
530
+ declare namespace $ {
531
+ export type $mol_style_properties = Partial<$mol_type_override<CSSStyleDeclaration, Overrides>>;
532
+ type Common = 'inherit' | 'initial' | 'unset' | 'revert' | 'revert-layer' | $mol_style_func<'var'>;
533
+ export type $mol_style_properties_color = 'aliceblue' | 'antiquewhite' | 'aqua' | 'aquamarine' | 'azure' | 'beige' | 'bisque' | 'black' | 'blanchedalmond' | 'blue' | 'blueviolet' | 'brown' | 'burlywood' | 'cadetblue' | 'chartreuse' | 'chocolate' | 'coral' | 'cornflowerblue' | 'cornsilk' | 'crimson' | 'cyan' | 'darkblue' | 'darkcyan' | 'darkgoldenrod' | 'darkgray' | 'darkgreen' | 'darkgrey' | 'darkkhaki' | 'darkmagenta' | 'darkolivegreen' | 'darkorange' | 'darkorchid' | 'darkred' | 'darksalmon' | 'darkseagreen' | 'darkslateblue' | 'darkslategrey' | 'darkturquoise' | 'darkviolet' | 'deeppink' | 'deepskyblue' | 'dimgray' | 'dimgrey' | 'dodgerblue' | 'firebrick' | 'floralwhite' | 'forestgreen' | 'fuchsia' | 'gainsboro' | 'ghostwhite' | 'gold' | 'goldenrod' | 'gray' | 'green' | 'greenyellow' | 'grey' | 'honeydew' | 'hotpink' | 'indianred' | 'indigo' | 'ivory' | 'khaki' | 'lavender' | 'lavenderblush' | 'lawngreen' | 'lemonchiffon' | 'lightblue' | 'lightcoral' | 'lightcyan' | 'lightgoldenrodyellow' | 'lightgray' | 'lightgreen' | 'lightgrey' | 'lightpink' | 'lightsalmon' | 'lightseagreen' | 'lightskyblue' | 'lightslategray' | 'lightslategrey' | 'lightsteelblue' | 'lightyellow' | 'lime' | 'limegreen' | 'linen' | 'magenta' | 'maroon' | 'mediumaquamarine' | 'mediumblue' | 'mediumorchid' | 'mediumpurple' | 'mediumseagreen' | 'mediumslateblue' | 'mediumspringgreen' | 'mediumturquoise' | 'mediumvioletred' | 'midnightblue' | 'mintcream' | 'mistyrose' | 'moccasin' | 'navajowhite' | 'navy' | 'oldlace' | 'olive' | 'olivedrab' | 'orange' | 'orangered' | 'orchid' | 'palegoldenrod' | 'palegreen' | 'paleturquoise' | 'palevioletred' | 'papayawhip' | 'peachpuff' | 'peru' | 'pink' | 'plum' | 'powderblue' | 'purple' | 'rebeccapurple' | 'red' | 'rosybrown' | 'royalblue' | 'saddlebrown' | 'salmon' | 'sandybrown' | 'seagreen' | 'seashell' | 'sienna' | 'silver' | 'skyblue' | 'slateblue' | 'slategray' | 'slategrey' | 'snow' | 'springgreen' | 'steelblue' | 'tan' | 'teal' | 'thistle' | 'tomato' | 'turquoise' | 'violet' | 'wheat' | 'white' | 'whitesmoke' | 'yellow' | 'yellowgreen' | 'transparent' | 'currentcolor' | $mol_style_func<'hsla' | 'rgba' | 'var'> | `#${string}`;
534
+ type Length = 0 | `${number}${$mol_style_unit_length}` | $mol_style_func<'calc' | 'var' | 'clamp'>;
535
+ type Size = 'auto' | 'max-content' | 'min-content' | 'fit-content' | Length | Common;
536
+ type Directions<Value> = Value | readonly [Value, Value] | {
537
+ top?: Value;
538
+ right?: Value;
539
+ bottom?: Value;
540
+ left?: Value;
541
+ };
542
+ type Single_animation_composition = 'replace' | 'add' | 'accumulate';
543
+ type Single_animation_direction = 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';
544
+ type Single_animation_fill_mode = 'none' | 'forwards' | 'backwards' | 'both';
545
+ type Single_animation_iteration_count = 'infinite' | number;
546
+ type Single_animation_play_state = 'running' | 'paused';
547
+ type Easing_function = Linear_easing_function | Cubic_bezier_easing_function | Step_easing_function;
548
+ type Linear_easing_function = 'linear' | $mol_style_func<'linear'>;
549
+ type Cubic_bezier_easing_function = 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | $mol_style_func<'cubic-bezier'>;
550
+ type Step_easing_function = 'step-start' | 'step-end' | $mol_style_func<'steps'>;
551
+ type Compat_auto = 'searchfield' | 'textarea' | 'push-button' | 'slider-horizontal' | 'checkbox' | 'radio' | 'menulist' | 'listbox' | 'meter' | 'progress-bar' | 'button';
552
+ type Compat_special = 'textfield' | 'menulist-button';
553
+ type Mix_blend_mode = Blend_mode | 'plus-darker' | 'plus-lighter';
554
+ type Blend_mode = 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity';
555
+ type Box = 'border-box' | 'padding-box' | 'content-box';
556
+ type Baseline_position = 'baseline' | `${'first' | 'last'} baseline`;
557
+ type Content_distribution = 'space-between' | 'space-around' | 'space-evenly' | 'stretch';
558
+ type Self_position = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end';
559
+ type Content_position = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end';
560
+ type Span_align = 'none' | 'start' | 'end' | 'center' | $mol_style_func<'var'>;
561
+ type Snap_axis = 'x' | 'y' | 'block' | 'inline' | 'both' | $mol_style_func<'var'>;
562
+ type Overflow = 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto' | 'overlay' | Common;
563
+ type Overflow_position = 'unsafe' | 'safe';
564
+ type ContainRule = 'size' | 'layout' | 'style' | 'paint' | $mol_style_func<'var'>;
565
+ type Repeat = 'repeat-x' | 'repeat-y' | 'repeat' | 'space' | 'round' | 'no-repeat' | $mol_style_func<'var'>;
566
+ type BG_size = Length | 'auto' | 'contain' | 'cover';
567
+ interface Overrides {
568
+ accentColor?: $mol_style_properties_color | Common;
569
+ align?: {
570
+ content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common;
571
+ items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
572
+ self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
573
+ };
574
+ justify?: {
575
+ content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common;
576
+ items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
577
+ self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
578
+ };
579
+ all?: Common;
580
+ animation?: {
581
+ composition?: Single_animation_composition | Single_animation_composition[][] | Common;
582
+ delay?: $mol_style_unit<$mol_style_unit_time> | $mol_style_unit<$mol_style_unit_time>[][] | Common;
583
+ direction?: Single_animation_direction | Single_animation_direction[][] | Common;
584
+ duration?: $mol_style_unit<$mol_style_unit_time> | $mol_style_unit<$mol_style_unit_time>[][] | Common;
585
+ fillMode?: Single_animation_fill_mode | Single_animation_fill_mode[][] | Common;
586
+ iterationCount?: Single_animation_iteration_count | Single_animation_iteration_count[][] | Common;
587
+ name?: 'none' | string & {} | ('none' | string & {})[][] | Common;
588
+ playState?: Single_animation_play_state | Single_animation_play_state[][] | Common;
589
+ timingFunction?: Easing_function | Easing_function[][] | Common;
590
+ };
591
+ appearance?: 'none' | 'auto' | Compat_auto | Compat_special | Common;
592
+ aspectRatio?: 'auto' | number | `${number} / ${number}`;
593
+ backdropFilter: $mol_style_func<$mol_style_func_filter> | $mol_style_func<'url'> | ($mol_style_func<$mol_style_func_filter> | $mol_style_func<'url'>)[][] | 'none' | Common;
594
+ backfaceVisibility: 'visible' | 'hidden' | Common;
595
+ justifyContent?: 'start' | 'end' | 'flex-start' | 'flex-end' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly' | 'normal' | 'stretch' | 'center' | Common;
596
+ gap?: Length;
597
+ background?: 'none' | {
598
+ attachment?: 'scroll' | 'fixed' | 'local' | ('scroll' | 'fixed' | 'local')[][] | Common;
599
+ blendMode?: Mix_blend_mode | Mix_blend_mode[][] | Common;
600
+ clip?: Box | Box[][] | Common;
601
+ color?: $mol_style_properties_color | Common;
602
+ image?: readonly (readonly [$mol_style_func<'url'> | string & {}])[] | 'none' | Common;
603
+ repeat?: Repeat | [Repeat, Repeat] | Common;
604
+ position?: 'left' | 'right' | 'top' | 'bottom' | 'center' | Common;
605
+ size?: (BG_size | [BG_size, BG_size])[];
606
+ };
607
+ box?: {
608
+ shadow?: readonly {
609
+ inset?: boolean;
610
+ x: Length;
611
+ y: Length;
612
+ blur: Length;
613
+ spread: Length;
614
+ color: $mol_style_properties_color;
615
+ }[] | 'none' | Common;
616
+ };
617
+ font?: {
618
+ style?: 'normal' | 'italic' | Common;
619
+ weight?: 'normal' | 'bold' | 'lighter' | 'bolder' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | Common;
620
+ size?: 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'smaller' | 'larger' | Length | Common;
621
+ family?: 'serif' | 'sans-serif' | 'monospace' | 'cursive' | 'fantasy' | 'system-ui' | 'ui-serif' | 'ui-sans-serif' | 'ui-monospace' | 'ui-rounded' | 'emoji' | 'math' | 'fangsong' | Common;
622
+ };
623
+ color?: $mol_style_properties_color | Common;
624
+ display?: 'block' | 'inline' | 'run-in' | 'list-item' | 'none' | 'flow' | 'flow-root' | 'table' | 'flex' | 'grid' | 'contents' | 'table-row-group' | 'table-header-group' | 'table-footer-group' | 'table-column-group' | 'table-row' | 'table-cell' | 'table-column' | 'table-caption' | 'inline-block' | 'inline-table' | 'inline-flex' | 'inline-grid' | 'ruby' | 'ruby-base' | 'ruby-text' | 'ruby-base-container' | 'ruby-text-container' | Common;
625
+ overflow?: Overflow | {
626
+ x?: Overflow | Common;
627
+ y?: Overflow | Common;
628
+ anchor?: 'auto' | 'none' | Common;
629
+ };
630
+ contain?: 'none' | 'strict' | 'content' | ContainRule | readonly ContainRule[] | Common;
631
+ whiteSpace?: 'normal' | 'nowrap' | 'break-spaces' | 'pre' | 'pre-wrap' | 'pre-line' | Common;
632
+ webkitOverflowScrolling?: 'auto' | 'touch' | Common;
633
+ scrollbar?: {
634
+ color?: readonly [$mol_style_properties_color, $mol_style_properties_color] | 'auto' | Common;
635
+ width?: 'auto' | 'thin' | 'none' | Common;
636
+ };
637
+ scroll?: {
638
+ snap?: {
639
+ type: 'none' | Snap_axis | readonly [Snap_axis, 'mandatory' | 'proximity'] | Common;
640
+ stop: 'normal' | 'always' | Common;
641
+ align: Span_align | readonly [Span_align, Span_align] | Common;
642
+ };
643
+ padding?: Directions<Length | 'auto'>;
644
+ };
645
+ width?: Size;
646
+ minWidth?: Size;
647
+ maxWidth?: Size;
648
+ height?: Size;
649
+ minHeight?: Size;
650
+ maxHeight?: Size;
651
+ margin?: Directions<Length | 'auto'>;
652
+ padding?: Directions<Length | 'auto'>;
653
+ position?: 'static' | 'relative' | 'absolute' | 'sticky' | 'fixed' | Common;
654
+ top?: Length | 'auto' | Common;
655
+ right?: Length | 'auto' | Common;
656
+ bottom?: Length | 'auto' | Common;
657
+ left?: Length | 'auto' | Common;
658
+ border?: Directions<{
659
+ radius?: Length | [Length, Length];
660
+ style?: 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | Common;
661
+ color?: $mol_style_properties_color | Common;
662
+ width?: Length | Common;
663
+ }>;
664
+ flex?: 'none' | 'auto' | {
665
+ grow?: number | Common;
666
+ shrink?: number | Common;
667
+ basis?: Size | Common;
668
+ direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse' | Common;
669
+ wrap?: 'wrap' | 'nowrap' | 'wrap-reverse' | Common;
670
+ };
671
+ zIndex: number | Common;
672
+ opacity: number | Common;
673
+ }
674
+ export {};
675
+ }
676
+
513
677
  declare namespace $ {
514
678
  const $mol_theme: {
515
- back: $mol_style_func<"var", "--mol_theme_back">;
516
- hover: $mol_style_func<"var", "--mol_theme_hover">;
517
- card: $mol_style_func<"var", "--mol_theme_card">;
518
- current: $mol_style_func<"var", "--mol_theme_current">;
519
- special: $mol_style_func<"var", "--mol_theme_special">;
520
- text: $mol_style_func<"var", "--mol_theme_text">;
521
- control: $mol_style_func<"var", "--mol_theme_control">;
522
- shade: $mol_style_func<"var", "--mol_theme_shade">;
523
- line: $mol_style_func<"var", "--mol_theme_line">;
524
- focus: $mol_style_func<"var", "--mol_theme_focus">;
525
- field: $mol_style_func<"var", "--mol_theme_field">;
526
- image: $mol_style_func<"var", "--mol_theme_image">;
679
+ back: $mol_style_func<"var", string[] | "--mol_theme_back">;
680
+ hover: $mol_style_func<"var", string[] | "--mol_theme_hover">;
681
+ card: $mol_style_func<"var", string[] | "--mol_theme_card">;
682
+ current: $mol_style_func<"var", string[] | "--mol_theme_current">;
683
+ special: $mol_style_func<"var", string[] | "--mol_theme_special">;
684
+ text: $mol_style_func<"var", string[] | "--mol_theme_text">;
685
+ control: $mol_style_func<"var", string[] | "--mol_theme_control">;
686
+ shade: $mol_style_func<"var", string[] | "--mol_theme_shade">;
687
+ line: $mol_style_func<"var", string[] | "--mol_theme_line">;
688
+ focus: $mol_style_func<"var", string[] | "--mol_theme_focus">;
689
+ field: $mol_style_func<"var", string[] | "--mol_theme_field">;
690
+ image: $mol_style_func<"var", string[] | "--mol_theme_image">;
527
691
  };
528
692
  }
529
693
 
@@ -532,11 +696,11 @@ declare namespace $ {
532
696
 
533
697
  declare namespace $ {
534
698
  let $mol_gap: {
535
- readonly block: $mol_style_func<"var", "--mol_gap_block">;
536
- readonly text: $mol_style_func<"var", "--mol_gap_text">;
537
- readonly round: $mol_style_func<"var", "--mol_gap_round">;
538
- readonly space: $mol_style_func<"var", "--mol_gap_space">;
539
- readonly blur: $mol_style_func<"var", "--mol_gap_blur">;
699
+ readonly block: $mol_style_func<"var", string[] | "--mol_gap_block">;
700
+ readonly text: $mol_style_func<"var", string[] | "--mol_gap_text">;
701
+ readonly round: $mol_style_func<"var", string[] | "--mol_gap_round">;
702
+ readonly space: $mol_style_func<"var", string[] | "--mol_gap_space">;
703
+ readonly blur: $mol_style_func<"var", string[] | "--mol_gap_blur">;
540
704
  };
541
705
  }
542
706