mol_dump_lib 0.0.41 → 0.0.43

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.mjs 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
  ;
@@ -3829,14 +3841,13 @@ var $;
3829
3841
  "use strict";
3830
3842
  var $;
3831
3843
  (function ($) {
3832
- const { vary } = $mol_style_func;
3833
- $.$mol_layer = {
3834
- hover: vary('--mol_layer_hover'),
3835
- focus: vary('--mol_layer_focus'),
3836
- speck: vary('--mol_layer_speck'),
3837
- float: vary('--mol_layer_float'),
3838
- popup: vary('--mol_layer_popup'),
3839
- };
3844
+ $.$mol_layer = $mol_style_prop('mol_layer', [
3845
+ 'hover',
3846
+ 'focus',
3847
+ 'speck',
3848
+ 'float',
3849
+ 'popup',
3850
+ ]);
3840
3851
  })($ || ($ = {}));
3841
3852
  //mol/layer/layer.ts
3842
3853
  ;