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/node.d.ts CHANGED
@@ -641,37 +641,201 @@ declare namespace $ {
641
641
  }
642
642
 
643
643
  declare namespace $ {
644
- type $mol_style_func_name = 'calc' | 'hsla' | 'rgba' | 'var' | 'clamp' | 'url' | 'scale' | 'cubic-bezier';
644
+ type $mol_style_func_name = 'calc' | 'hsla' | 'rgba' | 'var' | 'clamp' | 'url' | 'scale' | 'cubic-bezier' | 'linear' | 'steps' | $mol_style_func_filter;
645
+ type $mol_style_func_filter = 'blur' | 'brightness' | 'contrast' | 'drop-shadow' | 'grayscale' | 'hue-rotate' | 'invert' | 'opacity' | 'sepia' | 'saturate';
645
646
  class $mol_style_func<Name extends $mol_style_func_name, Value = unknown> extends $mol_decor<Value> {
646
647
  readonly name: Name;
647
648
  constructor(name: Name, value: Value);
648
649
  prefix(): string;
649
650
  postfix(): string;
650
651
  static calc<Value>(value: Value): $mol_style_func<"calc", Value>;
651
- static vary<Name extends string>(name: Name): $mol_style_func<"var", Name>;
652
+ static vary<Name extends string, Value extends string>(name: Name, defaultValue?: Value): $mol_style_func<"var", Name | (Name | Value)[]>;
652
653
  static url<Href extends string>(href: Href): $mol_style_func<"url", string>;
653
654
  static hsla(hue: number, saturation: number, lightness: number, alpha: number): $mol_style_func<"hsla", (number | `${number}%`)[]>;
654
655
  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>[]>;
655
656
  static rgba(red: number, green: number, blue: number, alpha: number): $mol_style_func<"rgba", number[]>;
656
657
  static scale(zoom: number): $mol_style_func<"scale", number[]>;
658
+ static linear(...breakpoints: Array<number | [number, number | $mol_style_unit<'%'>]>): $mol_style_func<"linear", string[]>;
657
659
  static cubic_bezier(x1: number, y1: number, x2: number, y2: number): $mol_style_func<"cubic-bezier", number[]>;
660
+ 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")[]>;
661
+ static blur(value?: $mol_style_unit<$mol_style_unit_length>): $mol_style_func<"blur", string | $mol_style_unit<$mol_style_unit_length>>;
662
+ static brightness(value?: number | $mol_style_unit<'%'>): $mol_style_func<"brightness", string | number | $mol_style_unit<"%">>;
663
+ static contrast(value?: number | $mol_style_unit<'%'>): $mol_style_func<"contrast", string | number | $mol_style_unit<"%">>;
664
+ 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)[]>;
665
+ static grayscale(value?: number | $mol_style_unit<'%'>): $mol_style_func<"grayscale", string | number | $mol_style_unit<"%">>;
666
+ 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>>;
667
+ static invert(value?: number | $mol_style_unit<'%'>): $mol_style_func<"invert", string | number | $mol_style_unit<"%">>;
668
+ static opacity(value?: number | $mol_style_unit<'%'>): $mol_style_func<"opacity", string | number | $mol_style_unit<"%">>;
669
+ static sepia(value?: number | $mol_style_unit<'%'>): $mol_style_func<"sepia", string | number | $mol_style_unit<"%">>;
670
+ static saturate(value?: number | $mol_style_unit<'%'>): $mol_style_func<"saturate", string | number | $mol_style_unit<"%">>;
658
671
  }
659
672
  }
660
673
 
674
+ declare namespace $ {
675
+ type $mol_type_override<Base, Over> = Omit<Base, keyof Over> & Over;
676
+ }
677
+
678
+ declare namespace $ {
679
+ export type $mol_style_properties = Partial<$mol_type_override<CSSStyleDeclaration, Overrides>>;
680
+ type Common = 'inherit' | 'initial' | 'unset' | 'revert' | 'revert-layer' | $mol_style_func<'var'>;
681
+ 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}`;
682
+ type Length = 0 | `${number}${$mol_style_unit_length}` | $mol_style_func<'calc' | 'var' | 'clamp'>;
683
+ type Size = 'auto' | 'max-content' | 'min-content' | 'fit-content' | Length | Common;
684
+ type Directions<Value> = Value | readonly [Value, Value] | {
685
+ top?: Value;
686
+ right?: Value;
687
+ bottom?: Value;
688
+ left?: Value;
689
+ };
690
+ type Single_animation_composition = 'replace' | 'add' | 'accumulate';
691
+ type Single_animation_direction = 'normal' | 'reverse' | 'alternate' | 'alternate-reverse';
692
+ type Single_animation_fill_mode = 'none' | 'forwards' | 'backwards' | 'both';
693
+ type Single_animation_iteration_count = 'infinite' | number;
694
+ type Single_animation_play_state = 'running' | 'paused';
695
+ type Easing_function = Linear_easing_function | Cubic_bezier_easing_function | Step_easing_function;
696
+ type Linear_easing_function = 'linear' | $mol_style_func<'linear'>;
697
+ type Cubic_bezier_easing_function = 'ease' | 'ease-in' | 'ease-out' | 'ease-in-out' | $mol_style_func<'cubic-bezier'>;
698
+ type Step_easing_function = 'step-start' | 'step-end' | $mol_style_func<'steps'>;
699
+ type Compat_auto = 'searchfield' | 'textarea' | 'push-button' | 'slider-horizontal' | 'checkbox' | 'radio' | 'menulist' | 'listbox' | 'meter' | 'progress-bar' | 'button';
700
+ type Compat_special = 'textfield' | 'menulist-button';
701
+ type Mix_blend_mode = Blend_mode | 'plus-darker' | 'plus-lighter';
702
+ type Blend_mode = 'normal' | 'multiply' | 'screen' | 'overlay' | 'darken' | 'lighten' | 'color-dodge' | 'color-burn' | 'hard-light' | 'soft-light' | 'difference' | 'exclusion' | 'hue' | 'saturation' | 'color' | 'luminosity';
703
+ type Box = 'border-box' | 'padding-box' | 'content-box';
704
+ type Baseline_position = 'baseline' | `${'first' | 'last'} baseline`;
705
+ type Content_distribution = 'space-between' | 'space-around' | 'space-evenly' | 'stretch';
706
+ type Self_position = 'center' | 'start' | 'end' | 'self-start' | 'self-end' | 'flex-start' | 'flex-end';
707
+ type Content_position = 'center' | 'start' | 'end' | 'flex-start' | 'flex-end';
708
+ type Span_align = 'none' | 'start' | 'end' | 'center' | $mol_style_func<'var'>;
709
+ type Snap_axis = 'x' | 'y' | 'block' | 'inline' | 'both' | $mol_style_func<'var'>;
710
+ type Overflow = 'visible' | 'hidden' | 'clip' | 'scroll' | 'auto' | 'overlay' | Common;
711
+ type Overflow_position = 'unsafe' | 'safe';
712
+ type ContainRule = 'size' | 'layout' | 'style' | 'paint' | $mol_style_func<'var'>;
713
+ type Repeat = 'repeat-x' | 'repeat-y' | 'repeat' | 'space' | 'round' | 'no-repeat' | $mol_style_func<'var'>;
714
+ type BG_size = Length | 'auto' | 'contain' | 'cover';
715
+ interface Overrides {
716
+ accentColor?: $mol_style_properties_color | Common;
717
+ align?: {
718
+ content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common;
719
+ items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
720
+ self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
721
+ };
722
+ justify?: {
723
+ content?: 'normal' | Baseline_position | Content_distribution | Content_position | `${Overflow_position} ${Content_position}` | Common;
724
+ items?: 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
725
+ self?: 'auto' | 'normal' | 'stretch' | Baseline_position | Self_position | `${Overflow_position} ${Self_position}` | Common;
726
+ };
727
+ all?: Common;
728
+ animation?: {
729
+ composition?: Single_animation_composition | Single_animation_composition[][] | Common;
730
+ delay?: $mol_style_unit<$mol_style_unit_time> | $mol_style_unit<$mol_style_unit_time>[][] | Common;
731
+ direction?: Single_animation_direction | Single_animation_direction[][] | Common;
732
+ duration?: $mol_style_unit<$mol_style_unit_time> | $mol_style_unit<$mol_style_unit_time>[][] | Common;
733
+ fillMode?: Single_animation_fill_mode | Single_animation_fill_mode[][] | Common;
734
+ iterationCount?: Single_animation_iteration_count | Single_animation_iteration_count[][] | Common;
735
+ name?: 'none' | string & {} | ('none' | string & {})[][] | Common;
736
+ playState?: Single_animation_play_state | Single_animation_play_state[][] | Common;
737
+ timingFunction?: Easing_function | Easing_function[][] | Common;
738
+ };
739
+ appearance?: 'none' | 'auto' | Compat_auto | Compat_special | Common;
740
+ aspectRatio?: 'auto' | number | `${number} / ${number}`;
741
+ 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;
742
+ backfaceVisibility: 'visible' | 'hidden' | Common;
743
+ justifyContent?: 'start' | 'end' | 'flex-start' | 'flex-end' | 'left' | 'right' | 'space-between' | 'space-around' | 'space-evenly' | 'normal' | 'stretch' | 'center' | Common;
744
+ gap?: Length;
745
+ background?: 'none' | {
746
+ attachment?: 'scroll' | 'fixed' | 'local' | ('scroll' | 'fixed' | 'local')[][] | Common;
747
+ blendMode?: Mix_blend_mode | Mix_blend_mode[][] | Common;
748
+ clip?: Box | Box[][] | Common;
749
+ color?: $mol_style_properties_color | Common;
750
+ image?: readonly (readonly [$mol_style_func<'url'> | string & {}])[] | 'none' | Common;
751
+ repeat?: Repeat | [Repeat, Repeat] | Common;
752
+ position?: 'left' | 'right' | 'top' | 'bottom' | 'center' | Common;
753
+ size?: (BG_size | [BG_size, BG_size])[];
754
+ };
755
+ box?: {
756
+ shadow?: readonly {
757
+ inset?: boolean;
758
+ x: Length;
759
+ y: Length;
760
+ blur: Length;
761
+ spread: Length;
762
+ color: $mol_style_properties_color;
763
+ }[] | 'none' | Common;
764
+ };
765
+ font?: {
766
+ style?: 'normal' | 'italic' | Common;
767
+ weight?: 'normal' | 'bold' | 'lighter' | 'bolder' | 100 | 200 | 300 | 400 | 500 | 600 | 700 | 800 | 900 | Common;
768
+ size?: 'xx-small' | 'x-small' | 'small' | 'medium' | 'large' | 'x-large' | 'xx-large' | 'xxx-large' | 'smaller' | 'larger' | Length | Common;
769
+ family?: 'serif' | 'sans-serif' | 'monospace' | 'cursive' | 'fantasy' | 'system-ui' | 'ui-serif' | 'ui-sans-serif' | 'ui-monospace' | 'ui-rounded' | 'emoji' | 'math' | 'fangsong' | Common;
770
+ };
771
+ color?: $mol_style_properties_color | Common;
772
+ 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;
773
+ overflow?: Overflow | {
774
+ x?: Overflow | Common;
775
+ y?: Overflow | Common;
776
+ anchor?: 'auto' | 'none' | Common;
777
+ };
778
+ contain?: 'none' | 'strict' | 'content' | ContainRule | readonly ContainRule[] | Common;
779
+ whiteSpace?: 'normal' | 'nowrap' | 'break-spaces' | 'pre' | 'pre-wrap' | 'pre-line' | Common;
780
+ webkitOverflowScrolling?: 'auto' | 'touch' | Common;
781
+ scrollbar?: {
782
+ color?: readonly [$mol_style_properties_color, $mol_style_properties_color] | 'auto' | Common;
783
+ width?: 'auto' | 'thin' | 'none' | Common;
784
+ };
785
+ scroll?: {
786
+ snap?: {
787
+ type: 'none' | Snap_axis | readonly [Snap_axis, 'mandatory' | 'proximity'] | Common;
788
+ stop: 'normal' | 'always' | Common;
789
+ align: Span_align | readonly [Span_align, Span_align] | Common;
790
+ };
791
+ padding?: Directions<Length | 'auto'>;
792
+ };
793
+ width?: Size;
794
+ minWidth?: Size;
795
+ maxWidth?: Size;
796
+ height?: Size;
797
+ minHeight?: Size;
798
+ maxHeight?: Size;
799
+ margin?: Directions<Length | 'auto'>;
800
+ padding?: Directions<Length | 'auto'>;
801
+ position?: 'static' | 'relative' | 'absolute' | 'sticky' | 'fixed' | Common;
802
+ top?: Length | 'auto' | Common;
803
+ right?: Length | 'auto' | Common;
804
+ bottom?: Length | 'auto' | Common;
805
+ left?: Length | 'auto' | Common;
806
+ border?: Directions<{
807
+ radius?: Length | [Length, Length];
808
+ style?: 'none' | 'hidden' | 'dotted' | 'dashed' | 'solid' | 'double' | 'groove' | 'ridge' | 'inset' | 'outset' | Common;
809
+ color?: $mol_style_properties_color | Common;
810
+ width?: Length | Common;
811
+ }>;
812
+ flex?: 'none' | 'auto' | {
813
+ grow?: number | Common;
814
+ shrink?: number | Common;
815
+ basis?: Size | Common;
816
+ direction?: 'row' | 'row-reverse' | 'column' | 'column-reverse' | Common;
817
+ wrap?: 'wrap' | 'nowrap' | 'wrap-reverse' | Common;
818
+ };
819
+ zIndex: number | Common;
820
+ opacity: number | Common;
821
+ }
822
+ export {};
823
+ }
824
+
661
825
  declare namespace $ {
662
826
  const $mol_theme: {
663
- back: $mol_style_func<"var", "--mol_theme_back">;
664
- hover: $mol_style_func<"var", "--mol_theme_hover">;
665
- card: $mol_style_func<"var", "--mol_theme_card">;
666
- current: $mol_style_func<"var", "--mol_theme_current">;
667
- special: $mol_style_func<"var", "--mol_theme_special">;
668
- text: $mol_style_func<"var", "--mol_theme_text">;
669
- control: $mol_style_func<"var", "--mol_theme_control">;
670
- shade: $mol_style_func<"var", "--mol_theme_shade">;
671
- line: $mol_style_func<"var", "--mol_theme_line">;
672
- focus: $mol_style_func<"var", "--mol_theme_focus">;
673
- field: $mol_style_func<"var", "--mol_theme_field">;
674
- image: $mol_style_func<"var", "--mol_theme_image">;
827
+ back: $mol_style_func<"var", string[] | "--mol_theme_back">;
828
+ hover: $mol_style_func<"var", string[] | "--mol_theme_hover">;
829
+ card: $mol_style_func<"var", string[] | "--mol_theme_card">;
830
+ current: $mol_style_func<"var", string[] | "--mol_theme_current">;
831
+ special: $mol_style_func<"var", string[] | "--mol_theme_special">;
832
+ text: $mol_style_func<"var", string[] | "--mol_theme_text">;
833
+ control: $mol_style_func<"var", string[] | "--mol_theme_control">;
834
+ shade: $mol_style_func<"var", string[] | "--mol_theme_shade">;
835
+ line: $mol_style_func<"var", string[] | "--mol_theme_line">;
836
+ focus: $mol_style_func<"var", string[] | "--mol_theme_focus">;
837
+ field: $mol_style_func<"var", string[] | "--mol_theme_field">;
838
+ image: $mol_style_func<"var", string[] | "--mol_theme_image">;
675
839
  };
676
840
  }
677
841
 
@@ -680,11 +844,11 @@ declare namespace $ {
680
844
 
681
845
  declare namespace $ {
682
846
  let $mol_gap: {
683
- readonly block: $mol_style_func<"var", "--mol_gap_block">;
684
- readonly text: $mol_style_func<"var", "--mol_gap_text">;
685
- readonly round: $mol_style_func<"var", "--mol_gap_round">;
686
- readonly space: $mol_style_func<"var", "--mol_gap_space">;
687
- readonly blur: $mol_style_func<"var", "--mol_gap_blur">;
847
+ readonly block: $mol_style_func<"var", string[] | "--mol_gap_block">;
848
+ readonly text: $mol_style_func<"var", string[] | "--mol_gap_text">;
849
+ readonly round: $mol_style_func<"var", string[] | "--mol_gap_round">;
850
+ readonly space: $mol_style_func<"var", string[] | "--mol_gap_space">;
851
+ readonly blur: $mol_style_func<"var", string[] | "--mol_gap_blur">;
688
852
  };
689
853
  }
690
854