@stackoverflow/stacks 1.6.2 → 1.6.3
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/README.md +22 -0
- package/dist/controllers/index.d.ts +7 -7
- package/dist/controllers/s-expandable-control.d.ts +1 -1
- package/dist/css/stacks.css +4 -15
- package/dist/css/stacks.min.css +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/js/stacks.js +174 -112
- package/dist/js/stacks.min.js +1 -1
- package/dist/stacks.d.ts +1 -1
- package/lib/css/atomic/gap.less +1 -1
- package/lib/css/components/buttons.less +3 -1
- package/lib/css/components/cards.less +1 -1
- package/lib/css/components/expandable.less +1 -1
- package/lib/css/components/inputs.less +4 -18
- package/lib/css/components/pagination.less +1 -1
- package/lib/css/components/popovers.less +6 -7
- package/lib/ts/controllers/index.ts +14 -7
- package/lib/ts/controllers/s-expandable-control.ts +79 -34
- package/lib/ts/controllers/s-modal.ts +116 -58
- package/lib/ts/controllers/s-navigation-tablist.ts +30 -20
- package/lib/ts/controllers/s-popover.ts +149 -73
- package/lib/ts/controllers/s-table.ts +69 -28
- package/lib/ts/controllers/s-tooltip.ts +87 -29
- package/lib/ts/controllers/s-uploader.ts +58 -39
- package/lib/ts/index.ts +11 -3
- package/lib/ts/stacks.ts +40 -19
- package/lib/tsconfig.json +1 -1
- package/package.json +8 -6
package/README.md
CHANGED
|
@@ -20,6 +20,8 @@ Stacks documentation can be found at https://stackoverflow.design/
|
|
|
20
20
|
|
|
21
21
|
- [Using Stacks](#using-stacks)
|
|
22
22
|
- [Building Stacks](#building-stacks)
|
|
23
|
+
- [Linting Stacks](#linting-stacks)
|
|
24
|
+
- [Testing Stacks](#testing-stacks)
|
|
23
25
|
- [Bugs and feature requests](#bugs-and-feature-requests)
|
|
24
26
|
- [Contributing](#contributing)
|
|
25
27
|
- [License](#license)
|
|
@@ -32,6 +34,26 @@ To contribute to Stacks documentation or its CSS library, you’ll need to build
|
|
|
32
34
|
|
|
33
35
|
Having trouble getting these steps to work? Open [an issue](https://github.com/StackExchange/Stacks/issues/new) with a `setup` label.
|
|
34
36
|
|
|
37
|
+
## Linting Stacks
|
|
38
|
+
|
|
39
|
+
Run all lint suites by running:
|
|
40
|
+
```sh
|
|
41
|
+
npm run lint
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Lint the styles (stylelint) by running:
|
|
45
|
+
```sh
|
|
46
|
+
npm run lint:css
|
|
47
|
+
```
|
|
48
|
+
Lint the typescript source code (eslint) via running:
|
|
49
|
+
```sh
|
|
50
|
+
npm run lint:ts
|
|
51
|
+
```
|
|
52
|
+
Lint the source code format (prettier) via running:
|
|
53
|
+
```sh
|
|
54
|
+
npm run lint:format
|
|
55
|
+
```
|
|
56
|
+
|
|
35
57
|
## Testing Stacks
|
|
36
58
|
Stacks has implemented visual regression testing with [Backstop](https://github.com/garris/BackstopJS). To test if your new feature introduces visual regressions, run `npm run test` in a new Terminal window while Stacks is running. After the tests have run, a new browser window with any regressions will show. If the regressions are desired, you can run `npm run approve` to establish the new baseline.
|
|
37
59
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { ExpandableController } from
|
|
2
|
-
export { hideModal, ModalController, showModal } from
|
|
3
|
-
export { TabListController } from
|
|
4
|
-
export { attachPopover, detachPopover, hidePopover, BasePopoverController, PopoverController, showPopover } from
|
|
5
|
-
export { TableController } from
|
|
6
|
-
export { setTooltipHtml, setTooltipText, TooltipController } from
|
|
7
|
-
export { UploaderController } from
|
|
1
|
+
export { ExpandableController } from "./s-expandable-control";
|
|
2
|
+
export { hideModal, ModalController, showModal } from "./s-modal";
|
|
3
|
+
export { TabListController } from "./s-navigation-tablist";
|
|
4
|
+
export { attachPopover, detachPopover, hidePopover, BasePopoverController, PopoverController, showPopover, } from "./s-popover";
|
|
5
|
+
export { TableController } from "./s-table";
|
|
6
|
+
export { setTooltipHtml, setTooltipText, TooltipController } from "./s-tooltip";
|
|
7
|
+
export { UploaderController } from "./s-uploader";
|
package/dist/css/stacks.css
CHANGED
|
@@ -1621,20 +1621,6 @@ body.theme-highcontrast .is-readonly .s-input-icon {
|
|
|
1621
1621
|
.s-textarea__md,
|
|
1622
1622
|
.s-select__md > select {
|
|
1623
1623
|
font-size: var(--fs-body3);
|
|
1624
|
-
}
|
|
1625
|
-
.s-input__lg,
|
|
1626
|
-
.s-textarea__lg,
|
|
1627
|
-
.s-select__lg > select {
|
|
1628
|
-
font-size: var(--fs-title);
|
|
1629
|
-
}
|
|
1630
|
-
.s-input__xl,
|
|
1631
|
-
.s-textarea__xl,
|
|
1632
|
-
.s-select__xl > select {
|
|
1633
|
-
font-size: var(--fs-headline1);
|
|
1634
|
-
}
|
|
1635
|
-
.s-input__md,
|
|
1636
|
-
.s-textarea__md,
|
|
1637
|
-
.s-select__md > select {
|
|
1638
1624
|
padding-top: 0.5em;
|
|
1639
1625
|
padding-bottom: 0.5em;
|
|
1640
1626
|
border-radius: calc(var(--br-sm) + 1px);
|
|
@@ -1646,12 +1632,14 @@ body.theme-highcontrast .is-readonly .s-input-icon {
|
|
|
1646
1632
|
.s-input__lg,
|
|
1647
1633
|
.s-textarea__lg,
|
|
1648
1634
|
.s-select__lg > select {
|
|
1635
|
+
font-size: var(--fs-title);
|
|
1649
1636
|
padding: 0.45em 0.6em;
|
|
1650
1637
|
border-radius: calc(var(--br-sm) + 1px);
|
|
1651
1638
|
}
|
|
1652
1639
|
.s-input__xl,
|
|
1653
1640
|
.s-textarea__xl,
|
|
1654
1641
|
.s-select__xl > select {
|
|
1642
|
+
font-size: var(--fs-headline1);
|
|
1655
1643
|
padding: 0.4em 0.5em;
|
|
1656
1644
|
border-radius: var(--br-md);
|
|
1657
1645
|
}
|
|
@@ -21234,7 +21222,7 @@ body *:after {
|
|
|
21234
21222
|
--_bu-bc: transparent;
|
|
21235
21223
|
--_bu-bg: transparent;
|
|
21236
21224
|
--_bu-br: var(--br-sm);
|
|
21237
|
-
--_bu-bs:
|
|
21225
|
+
--_bu-bs: none;
|
|
21238
21226
|
--_bu-fc: var(--theme-button-color);
|
|
21239
21227
|
--_bu-focus-ring: 0 0 0 var(--su-static4) var(--focus-ring);
|
|
21240
21228
|
--_bu-fs: var(--fs-body1);
|
|
@@ -21354,6 +21342,7 @@ body.theme-highcontrast .s-btn-group.s-btn-group--radio .s-btn--radio:checked +
|
|
|
21354
21342
|
box-shadow: none;
|
|
21355
21343
|
}
|
|
21356
21344
|
.s-btn.s-btn__filled {
|
|
21345
|
+
--_bu-bs: inset 0 var(--su-static1) 0 0 hsla(0, 0%, 100%, 0.7);
|
|
21357
21346
|
border-color: var(--_bu-filled-bc);
|
|
21358
21347
|
background-color: var(--_bu-filled-bg);
|
|
21359
21348
|
color: var(--_bu-filled-fc);
|