next-flow-design 1.3.0 → 1.5.0
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/components/nf-checkbox/nf-checkbox.d.ts +1 -0
- package/dist/components/nf-input-number/nf-input-number.d.ts +29 -17
- package/dist/components/nf-switch/nf-switch.d.ts +1 -0
- package/dist/index.css +1 -1
- package/dist/index.js +532 -477
- package/dist/react/components/nf-input-number/nf-input-number.d.ts +8 -4
- package/dist/react/components/nf-root/nf-root.d.ts +1 -1
- package/dist/react/index.d.ts +2 -1
- package/dist/react/index.js +581 -524
- package/package.json +1 -1
|
@@ -1,26 +1,38 @@
|
|
|
1
1
|
import { LitElement } from 'lit';
|
|
2
|
+
type Formatter = (value?: number) => string;
|
|
3
|
+
type Parser = (text: string) => number | null;
|
|
2
4
|
export declare class NfInputNumberElement extends LitElement {
|
|
3
5
|
static styles: CSSStyleSheet[];
|
|
4
|
-
value: number
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
max: number | undefined;
|
|
9
|
-
step: number;
|
|
10
|
-
decimalSeparator: string;
|
|
6
|
+
value: number;
|
|
7
|
+
formatter: Formatter;
|
|
8
|
+
parser: Parser;
|
|
9
|
+
private validateParsed;
|
|
11
10
|
prefix: string;
|
|
12
11
|
suffix: string;
|
|
12
|
+
controls: boolean;
|
|
13
|
+
step: number;
|
|
14
|
+
min: number | null;
|
|
15
|
+
max: number | null;
|
|
16
|
+
changeOnWheel: boolean;
|
|
13
17
|
disabled: boolean;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
private
|
|
18
|
+
noDecimal: boolean;
|
|
19
|
+
noZero: boolean;
|
|
20
|
+
noNegative: boolean;
|
|
21
|
+
private text;
|
|
22
|
+
private setText;
|
|
23
|
+
private isTyping;
|
|
24
|
+
private isFocused;
|
|
25
|
+
protected willUpdate(changed: Map<string, unknown>): void;
|
|
26
|
+
private onInput;
|
|
27
|
+
private onBlur;
|
|
28
|
+
private onFocus;
|
|
29
|
+
private onWheel;
|
|
30
|
+
private onKeyDown;
|
|
31
|
+
private onKeyUp;
|
|
32
|
+
private fixFloatingPoint;
|
|
18
33
|
private clampValue;
|
|
19
|
-
private handleInput;
|
|
20
|
-
private handleChange;
|
|
21
|
-
private handleKeyDown;
|
|
22
34
|
private handleStepChange;
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
private handleBlur;
|
|
35
|
+
connectedCallback(): void;
|
|
36
|
+
render(): import('lit-html').TemplateResult<1>;
|
|
26
37
|
}
|
|
38
|
+
export {};
|
package/dist/index.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.nf-root{--nf-width: auto;--nf-height: 2rem;--nf-margin: 0;--nf-padding: 0 .75rem;--nf-font-size: .875rem;--nf-text-font-size: calc(var(--nf-font-size) * var(--font-scale));--nf-font-weight: 200;--nf-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;--nf-border-radius: .5rem;--nf-primary-color: var(--primary-color);--nf-primary-color-lighter: color-mix(in srgb, var(--nf-primary-color) 80%, #ffffff);--nf-primary-color-darker: color-mix(in srgb, var(--nf-primary-color) 90%, #000000);--nf-primary-color-opacity: color-mix(in srgb, var(--nf-primary-color) 0%, transparent);--nf-transition: .16s;--nf-transition-fast: .11s;--nf-transition-slow: .3s;--nf-input-padding: 0 .75rem;--nf-switch-padding: .1rem;color:var(--nf-color);font-weight:var(--nf-font-weight);font-size:var(--nf-font-size);font-family:var(--nf-font-family),sans-serif}.nf-root input,.nf-root textarea{color:inherit;font:inherit}.nf-root{--nf-color: #000000;--nf-color-secondary: #
|
|
1
|
+
.nf-root{--nf-width: auto;--nf-height: 2rem;--nf-margin: 0;--nf-padding: 0 .75rem;--nf-font-size: .875rem;--nf-text-font-size: calc(var(--nf-font-size) * var(--font-scale));--nf-font-weight: 200;--nf-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;--nf-border-radius: .5rem;--nf-primary-color: var(--nf-primary-color);--nf-primary-color-lighter: color-mix(in srgb, var(--nf-primary-color) 80%, #ffffff);--nf-primary-color-darker: color-mix(in srgb, var(--nf-primary-color) 90%, #000000);--nf-primary-color-opacity: color-mix(in srgb, var(--nf-primary-color) 0%, transparent);--nf-transition: .16s;--nf-transition-fast: .11s;--nf-transition-slow: .3s;--nf-input-padding: 0 .75rem;--nf-switch-padding: .1rem;color:var(--nf-color);font-weight:var(--nf-font-weight);font-size:var(--nf-font-size);font-family:var(--nf-font-family),sans-serif}.nf-root input,.nf-root textarea{color:inherit;font:inherit}.nf-root{--nf-color: #000000;--nf-color-secondary: #00000080;--nf-color-disabled: #00000066;--nf-background-color: #00000010;--nf-background-color-hover: #00000010;--nf-background-color-active: #00000010;--nf-border-color: var(--nf-background-color);--nf-box-shadow-color: #00000000;--nf-box-shadow-color-hover: #00000000;--nf-select-icon-color: #00000083;--nf-icon-color-hover: #000000A6;--nf-icon-color-active: #000000C1;--nf-dropdown-background: #ccccccaa;--nf-dropdown-shadow: #00000022;--nf-item-background-hover: #0000000d;--nf-item-background-active: #00000016;--nf-control-btn-background-hover: #00000011;--nf-control-btn-background-active: #00000019;--nf-control-divider-color: #00000033;--nf-slider-tooltip-background: #ffffff;--nf-focus-text-color: #00000077;--nf-primary-color: #5566dc;--nf-border-color-hover: #7e8fe8;--nf-border-color-focus: #5566dc;--nf-box-shadow-color-focus: #5e72f933}@media(prefers-color-scheme:dark){.nf-root{--nf-color: #ffffff;--nf-color-secondary: #ffffffaa;--nf-color-disabled: #ffffff66;--nf-background-color: #ffffff10;--nf-background-color-hover: #ffffff10;--nf-background-color-active: #ffffff10;--nf-border-color: var(--nf-background-color);--nf-box-shadow-color: #ffffff00;--nf-box-shadow-color-hover: #ffffff00;--nf-select-icon-color: #ffffffaa;--nf-icon-color-hover: #ffffffc1;--nf-icon-color-active: #ffffffe1;--nf-dropdown-background: #333333aa;--nf-dropdown-shadow: #00000055;--nf-item-background-hover: #ffffff0d;--nf-item-background-active: #ffffff16;--nf-control-btn-background-hover: #ffffff11;--nf-control-btn-background-active: #ffffff19;--nf-control-divider-color: #ffffff44;--nf-slider-tooltip-background: #000000;--nf-focus-text-color: #ffffff77;--nf-color-picker-card-checker: #ffffff55;--nf-color-picker-card-checker-bg: #ffffff22}}[theme=light] .nf-root{--nf-color: #000000;--nf-color-secondary: #00000080;--nf-color-disabled: #00000066;--nf-background-color: #00000010;--nf-background-color-hover: #00000010;--nf-background-color-active: #00000010;--nf-border-color: var(--nf-background-color);--nf-box-shadow-color: #00000000;--nf-box-shadow-color-hover: #00000000;--nf-select-icon-color: #00000083;--nf-icon-color-hover: #000000A6;--nf-icon-color-active: #000000C1;--nf-dropdown-background: #ccccccaa;--nf-dropdown-shadow: #00000022;--nf-item-background-hover: #0000000d;--nf-item-background-active: #00000016;--nf-control-btn-background-hover: #00000011;--nf-control-btn-background-active: #00000019;--nf-control-divider-color: #00000033;--nf-slider-tooltip-background: #ffffff;--nf-focus-text-color: #00000077}[theme=dark] .nf-root{--nf-color: #ffffff;--nf-color-secondary: #ffffffaa;--nf-color-disabled: #ffffff66;--nf-background-color: #ffffff10;--nf-background-color-hover: #ffffff10;--nf-background-color-active: #ffffff10;--nf-border-color: var(--nf-background-color);--nf-box-shadow-color: #ffffff00;--nf-box-shadow-color-hover: #ffffff00;--nf-select-icon-color: #ffffffaa;--nf-icon-color-hover: #ffffffc1;--nf-icon-color-active: #ffffffe1;--nf-dropdown-background: #333333aa;--nf-dropdown-shadow: #00000055;--nf-item-background-hover: #ffffff0d;--nf-item-background-active: #ffffff16;--nf-control-btn-background-hover: #ffffff11;--nf-control-btn-background-active: #ffffff19;--nf-control-divider-color: #ffffff44;--nf-slider-tooltip-background: #000000;--nf-focus-text-color: #ffffff77;--nf-color-picker-card-checker: #ffffff55;--nf-color-picker-card-checker-bg: #ffffff22}[theme=light].nf-root{--nf-color: #000000;--nf-color-secondary: #00000080;--nf-color-disabled: #00000066;--nf-background-color: #00000010;--nf-background-color-hover: #00000010;--nf-background-color-active: #00000010;--nf-border-color: var(--nf-background-color);--nf-box-shadow-color: #00000000;--nf-box-shadow-color-hover: #00000000;--nf-select-icon-color: #00000083;--nf-icon-color-hover: #000000A6;--nf-icon-color-active: #000000C1;--nf-dropdown-background: #ccccccaa;--nf-dropdown-shadow: #00000022;--nf-item-background-hover: #0000000d;--nf-item-background-active: #00000016;--nf-control-btn-background-hover: #00000011;--nf-control-btn-background-active: #00000019;--nf-control-divider-color: #00000033;--nf-slider-tooltip-background: #ffffff;--nf-focus-text-color: #00000077}[theme=dark].nf-root{--nf-color: #ffffff;--nf-color-secondary: #ffffffaa;--nf-color-disabled: #ffffff66;--nf-background-color: #ffffff10;--nf-background-color-hover: #ffffff10;--nf-background-color-active: #ffffff10;--nf-border-color: var(--nf-background-color);--nf-box-shadow-color: #ffffff00;--nf-box-shadow-color-hover: #ffffff00;--nf-select-icon-color: #ffffffaa;--nf-icon-color-hover: #ffffffc1;--nf-icon-color-active: #ffffffe1;--nf-dropdown-background: #333333aa;--nf-dropdown-shadow: #00000055;--nf-item-background-hover: #ffffff0d;--nf-item-background-active: #ffffff16;--nf-control-btn-background-hover: #ffffff11;--nf-control-btn-background-active: #ffffff19;--nf-control-divider-color: #ffffff44;--nf-slider-tooltip-background: #000000;--nf-focus-text-color: #ffffff77;--nf-color-picker-card-checker: #ffffff55;--nf-color-picker-card-checker-bg: #ffffff22}
|