@stackoverflow/stacks 1.2.0 → 1.3.2
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/controllers/s-expandable-control.d.ts +1 -1
- package/dist/controllers/s-tooltip.d.ts +16 -1
- package/dist/css/stacks.css +974 -731
- package/dist/css/stacks.min.css +1 -1
- package/dist/js/stacks.js +174 -91
- package/dist/js/stacks.min.js +1 -1
- package/lib/css/atomic/borders.less +1 -0
- package/lib/css/atomic/colors.less +1 -0
- package/lib/css/atomic/misc.less +1 -1
- package/lib/css/atomic/typography.less +0 -6
- package/lib/css/atomic/width-height.less +1 -1
- package/lib/css/components/activity-indicator.less +18 -17
- package/lib/css/components/avatars.less +51 -131
- package/lib/css/components/badges.less +2 -0
- package/lib/css/components/breadcrumbs.less +4 -4
- package/lib/css/components/buttons.less +38 -54
- package/lib/css/components/empty-states.less +15 -0
- package/lib/css/components/{collapsible.less → expandable.less} +0 -0
- package/lib/css/components/inputs.less +44 -110
- package/lib/css/components/labels.less +98 -0
- package/lib/css/components/notices.less +190 -163
- package/lib/css/components/post-summary.less +117 -114
- package/lib/css/components/progress-bars.less +1 -1
- package/lib/css/components/prose.less +4 -4
- package/lib/css/components/spinner.less +39 -1
- package/lib/css/components/tables.less +1 -5
- package/lib/css/components/topbar.less +4 -1
- package/lib/css/components/uploader.less +70 -84
- package/lib/css/exports/constants-colors.less +68 -49
- package/lib/css/stacks-dynamic.less +0 -1
- package/lib/css/stacks-static.less +3 -2
- package/lib/ts/controllers/s-expandable-control.ts +23 -19
- package/lib/ts/controllers/s-modal.ts +16 -16
- package/lib/ts/controllers/s-navigation-tablist.ts +13 -13
- package/lib/ts/controllers/s-popover.ts +26 -18
- package/lib/ts/controllers/s-table.ts +31 -29
- package/lib/ts/controllers/s-tooltip.ts +62 -23
- package/lib/ts/controllers/s-uploader.ts +26 -12
- package/lib/ts/stacks.ts +8 -4
- package/package.json +23 -23
- package/lib/css/components/banners.less +0 -80
- package/lib/css/components/blank-states.less +0 -26
|
@@ -8,7 +8,7 @@ export declare class ExpandableController extends Stacks.StacksController {
|
|
|
8
8
|
initialize(): void;
|
|
9
9
|
_isCollapsedForClickable(): boolean;
|
|
10
10
|
_isCollapsedForCheckable(): boolean;
|
|
11
|
-
get
|
|
11
|
+
get controlledExpandables(): HTMLElement[];
|
|
12
12
|
_dispatchShowHideEvent(isShow: boolean): void;
|
|
13
13
|
_toggleClass(doAdd: boolean): void;
|
|
14
14
|
listener(e: Event): void;
|
|
@@ -8,6 +8,8 @@ export declare class TooltipController extends BasePopoverController {
|
|
|
8
8
|
private boundScheduleShow;
|
|
9
9
|
private boundHide;
|
|
10
10
|
private boundHideIfWithin;
|
|
11
|
+
private boundHideOnEscapeKeyEvent;
|
|
12
|
+
private boundClearActiveTimeout;
|
|
11
13
|
private activeTimeout;
|
|
12
14
|
/**
|
|
13
15
|
* Binds mouseover and mouseout events in addition to BasePopoverController.connect
|
|
@@ -29,7 +31,11 @@ export declare class TooltipController extends BasePopoverController {
|
|
|
29
31
|
/**
|
|
30
32
|
* Cancels the scheduled tooltip popover display and hides it if already displayed
|
|
31
33
|
*/
|
|
32
|
-
|
|
34
|
+
scheduleHide(dispatcher?: Event | Element | null): void;
|
|
35
|
+
/**
|
|
36
|
+
* Cancels the activeTimeout
|
|
37
|
+
*/
|
|
38
|
+
clearActiveTimeout(): void;
|
|
33
39
|
/**
|
|
34
40
|
* Applies data-s-tooltip-html-title and title attributes.
|
|
35
41
|
*/
|
|
@@ -53,6 +59,15 @@ export declare class TooltipController extends BasePopoverController {
|
|
|
53
59
|
* @param event An event object from s-popover:shown
|
|
54
60
|
*/
|
|
55
61
|
private hideIfWithin;
|
|
62
|
+
private hideOnEscapeKeyEvent;
|
|
63
|
+
/**
|
|
64
|
+
* Binds mouse events to show/hide on reference element hover
|
|
65
|
+
*/
|
|
66
|
+
private bindKeyboardEvents;
|
|
67
|
+
/**
|
|
68
|
+
* Unbinds all mouse events
|
|
69
|
+
*/
|
|
70
|
+
private unbindKeyboardEvents;
|
|
56
71
|
/**
|
|
57
72
|
* Binds mouse events to show/hide on reference element hover
|
|
58
73
|
*/
|