@thisway/base
Advanced tools
Comparing version 0.2.0-beta.0 to 0.2.0
48
index.js
@@ -1,2 +0,2 @@ | ||
const n = "mode1", s = "mode2", e = "mode3", t = ["LEFT", "RIGHT"], O = ["TOP", "BOTTOM"], o = [...t, ...O], _ = [...o, "OVER", "SCREEN"], E = { | ||
const n = "mode1", s = "mode2", e = "mode3", t = ["LEFT", "RIGHT"], O = ["TOP", "BOTTOM"], T = [...t, ...O], _ = [...T, "OVER", "SCREEN"], E = "AUTO", R = { | ||
LEFT: "start", | ||
@@ -7,4 +7,5 @@ RIGHT: "end", | ||
OVER: "center", | ||
SCREEN: "center" | ||
}, T = ["START", "END"], R = [...T, "CENTER"], N = { | ||
SCREEN: "center", | ||
AUTO: "nearest" | ||
}, o = ["START", "END"], N = [...o, "CENTER"], A = { | ||
prevBtnText: "Prev", | ||
@@ -26,32 +27,33 @@ nextBtnText: "Next", | ||
borderWidth: 3 | ||
}, A = "#FFFFFF", I = "#409EFF", C = "#494949", L = "#6B7ACB", r = "#5A82F5", M = "#333333", S = "#2d2d2d", P = Symbol("NO_ELEMENT"), a = { | ||
}, I = "#FFFFFF", C = "#409EFF", L = "#494949", r = "#6B7ACB", M = "#5A82F5", S = "#333333", P = "#2d2d2d", a = Symbol("NO_ELEMENT"), d = { | ||
x: 0, | ||
y: 0 | ||
}, d = "close", B = "next", Y = "none", F = "popover"; | ||
}, B = "close", Y = "next", F = "none", l = "popover"; | ||
export { | ||
R as ALIGNMENTS, | ||
T as ALIGNMENT_ANCHORS, | ||
d as CLICK_MASK_ACTION_CLOSE, | ||
B as CLICK_MASK_ACTION_NEXT, | ||
Y as CLICK_MASK_ACTION_NONE, | ||
F as COMPONENT_SLOT_POPOVER, | ||
a as EMPTY_POINT, | ||
N as ALIGNMENTS, | ||
o as ALIGNMENT_ANCHORS, | ||
B as CLICK_MASK_ACTION_CLOSE, | ||
Y as CLICK_MASK_ACTION_NEXT, | ||
F as CLICK_MASK_ACTION_NONE, | ||
l as COMPONENT_SLOT_POPOVER, | ||
d as EMPTY_POINT, | ||
n as LAYOUT_MODE_1, | ||
s as LAYOUT_MODE_2, | ||
e as LAYOUT_MODE_3, | ||
P as NO_ELEMENT, | ||
a as NO_ELEMENT, | ||
_ as ORIENTATIONS, | ||
E as ORIENTATIONS_TO_START_END, | ||
R as ORIENTATIONS_TO_START_END, | ||
t as ORIENTATIONS_X, | ||
o as ORIENTATIONS_XY, | ||
T as ORIENTATIONS_XY, | ||
O as ORIENTATIONS_Y, | ||
M as PRIMARY_COLOR_BLACK, | ||
I as PRIMARY_COLOR_BLUE, | ||
C as PRIMARY_COLOR_DARK, | ||
r as PRIMARY_COLOR_FLY, | ||
L as PRIMARY_COLOR_PURPLE, | ||
A as PRIMARY_COLOR_WHITE, | ||
S as TEXT_COLOR_BLACK, | ||
E as POSITION_AUTO, | ||
S as PRIMARY_COLOR_BLACK, | ||
C as PRIMARY_COLOR_BLUE, | ||
L as PRIMARY_COLOR_DARK, | ||
M as PRIMARY_COLOR_FLY, | ||
r as PRIMARY_COLOR_PURPLE, | ||
I as PRIMARY_COLOR_WHITE, | ||
P as TEXT_COLOR_BLACK, | ||
c as highlightDefaultValues, | ||
N as popoverDefaultValues | ||
A as popoverDefaultValues | ||
}; |
@@ -5,5 +5,4 @@ export declare const ORIENTATIONS_X: readonly ["LEFT", "RIGHT"]; | ||
export declare const ORIENTATIONS: readonly ["LEFT", "RIGHT", "TOP", "BOTTOM", "OVER", "SCREEN"]; | ||
export declare const ORIENTATIONS_TO_START_END: { | ||
[key in Orientation]: 'start' | 'end' | 'center'; | ||
}; | ||
export declare const POSITION_AUTO = "AUTO"; | ||
export declare const ORIENTATIONS_TO_START_END: Record<Orientation, 'start' | 'end' | 'center' | 'nearest'>; | ||
export declare const ALIGNMENT_ANCHORS: readonly ["START", "END"]; | ||
@@ -13,6 +12,6 @@ export declare const ALIGNMENTS: readonly ["START", "END", "CENTER"]; | ||
export type OrientationY = (typeof ORIENTATIONS_Y)[number]; | ||
export type Orientation = (typeof ORIENTATIONS)[number]; | ||
export type Orientation = (typeof ORIENTATIONS)[number] | typeof POSITION_AUTO; | ||
export type AlignmentAnchor = (typeof ALIGNMENT_ANCHORS)[number]; | ||
export type Alignment = (typeof ALIGNMENTS)[number]; | ||
export type PopoverPositionParsed = [Orientation, Alignment]; | ||
export type PopoverPosition = Orientation | `${OrientationX | OrientationY}_${Alignment}` | 'AUTO'; | ||
export type PopoverPositionParsed = [Orientation, Alignment] | [typeof POSITION_AUTO, undefined]; | ||
export type PopoverPosition = Orientation | `${OrientationX | OrientationY}_${Alignment}` | typeof POSITION_AUTO; |
{ | ||
"name": "@thisway/base", | ||
"version": "0.2.0-beta.0", | ||
"version": "0.2.0", | ||
"type": "module", | ||
@@ -5,0 +5,0 @@ "dependencies": {}, |
Sorry, the diff of this file is not supported yet
12975
322