mol_plot_all 1.2.703 → 1.2.704

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/web.js CHANGED
@@ -1956,21 +1956,34 @@ var $;
1956
1956
  "use strict";
1957
1957
  var $;
1958
1958
  (function ($) {
1959
- const { vary } = $mol_style_func;
1960
- $.$mol_theme = {
1961
- back: vary('--mol_theme_back'),
1962
- hover: vary('--mol_theme_hover'),
1963
- card: vary('--mol_theme_card'),
1964
- current: vary('--mol_theme_current'),
1965
- special: vary('--mol_theme_special'),
1966
- text: vary('--mol_theme_text'),
1967
- control: vary('--mol_theme_control'),
1968
- shade: vary('--mol_theme_shade'),
1969
- line: vary('--mol_theme_line'),
1970
- focus: vary('--mol_theme_focus'),
1971
- field: vary('--mol_theme_field'),
1972
- image: vary('--mol_theme_image'),
1973
- };
1959
+ function $mol_style_prop(prefix, postfixes) {
1960
+ const record = postfixes.reduce((record_obj, postfix) => {
1961
+ record_obj[postfix] = $mol_style_func.vary(`--${prefix}_${postfix}`);
1962
+ return record_obj;
1963
+ }, {});
1964
+ return record;
1965
+ }
1966
+ $.$mol_style_prop = $mol_style_prop;
1967
+ })($ || ($ = {}));
1968
+ //mol/style/prop/prop.ts
1969
+ ;
1970
+ "use strict";
1971
+ var $;
1972
+ (function ($) {
1973
+ $.$mol_theme = $mol_style_prop('mol_theme', [
1974
+ 'back',
1975
+ 'hover',
1976
+ 'card',
1977
+ 'current',
1978
+ 'special',
1979
+ 'text',
1980
+ 'control',
1981
+ 'shade',
1982
+ 'line',
1983
+ 'focus',
1984
+ 'field',
1985
+ 'image',
1986
+ ]);
1974
1987
  })($ || ($ = {}));
1975
1988
  //mol/theme/theme.ts
1976
1989
  ;
@@ -1984,14 +1997,13 @@ var $;
1984
1997
  "use strict";
1985
1998
  var $;
1986
1999
  (function ($) {
1987
- const { vary } = $mol_style_func;
1988
- $.$mol_gap = {
1989
- block: vary('--mol_gap_block'),
1990
- text: vary('--mol_gap_text'),
1991
- round: vary('--mol_gap_round'),
1992
- space: vary('--mol_gap_space'),
1993
- blur: vary('--mol_gap_blur'),
1994
- };
2000
+ $.$mol_gap = $mol_style_prop('mol_gap', [
2001
+ 'block',
2002
+ 'text',
2003
+ 'round',
2004
+ 'space',
2005
+ 'blur',
2006
+ ]);
1995
2007
  })($ || ($ = {}));
1996
2008
  //mol/gap/gap.ts
1997
2009
  ;