flinker-dom 1.0.6 → 1.0.7

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/dist/esm/core.js CHANGED
@@ -178,9 +178,9 @@ export const buildClassName = (props, pc, tag = '') => {
178
178
  }
179
179
  return 'className' in props && props.className ? props.className + ' ' + getClassName(tag) : getClassName(tag);
180
180
  };
181
- export const buildRule = (props, parentSelector, childSelector) => {
181
+ export const buildRule = (props, parentSelector, childSelector, pc = 'none') => {
182
182
  const { reset, operator, addRule } = ruleBuilder;
183
- reset('none', 'low');
183
+ reset(pc, 'low');
184
184
  for (const k of [...Object.keys(props)].sort(sortKeys)) {
185
185
  if (operator[k]) {
186
186
  operator[k](props[k]);
@@ -1,7 +1,7 @@
1
1
  import { PseudoClassType } from './processor';
2
2
  export type RulePriority = 'high' | 'low';
3
3
  export declare const buildClassName: (props: any, pc: PseudoClassType, tag?: string) => string;
4
- export declare const buildRule: (props: any, parentSelector: string, childSelector: string) => void;
4
+ export declare const buildRule: (props: any, parentSelector: string, childSelector: string, pc?: PseudoClassType) => void;
5
5
  export type BorderStyle = 'solid' | 'dotted' | 'dashed' | 'double' | 'none' | 'hidden';
6
6
  export type PointerEventsStyle = 'auto' | 'none' | 'visiblePainted' | 'visibleFill' | 'visibleStroke' | 'visible' | 'painted' | 'fill' | 'stroke' | 'all' | 'inherit' | 'initial' | 'unset';
7
7
  export type FontWeight = 'normal' | 'bold' | '100' | '200' | '300' | '400' | '500' | '600' | '700' | '800' | '900' | 'inherit';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "flinker-dom",
3
3
  "description": "Free TypeScript library for writing frontend apps",
4
- "version": "1.0.6",
4
+ "version": "1.0.7",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/Dittner/FlinkerDOM.git"