@kumori/aurora-wui-components 0.0.179 → 0.0.180
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.
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"axebow-numeric-input.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-input/axebow-numeric-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAGhD,OAAO,yDAAyD,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,qBACa,kBAAmB,SAAQ,eAAe;IACrD,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"axebow-numeric-input.d.ts","sourceRoot":"","sources":["../../../src/components/axebow-input/axebow-numeric-input.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,cAAc,EAAE,MAAM,KAAK,CAAC;AAGhD,OAAO,yDAAyD,CAAC;AACjE,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,qBACa,kBAAmB,SAAQ,eAAe;IACrD,MAAM,CAAC,MAAM,4BAqEX;IAE0B,GAAG,SAA2B;IAC9B,GAAG,SAAK;IACP,WAAW,UAAS;IAEjD;;;+EAG2E;IAC/C,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IAEjD;;uCAEmC;IACN,WAAW,UAAS;IACrB,UAAU,SAAK;IAE3C,OAAO,CAAC,OAAO,EAAE,cAAc;IAyB/B,SAAS,CAAC,YAAY,CAAC,CAAC,EAAE,KAAK;IAgB/B,SAAS,CAAC,aAAa,CAAC,CAAC,EAAE,aAAa;IAMxC,OAAO,CAAC,UAAU;IAYlB,OAAO,CAAC,cAAc;IA2BtB,MAAM;CAoBP"}
|
package/dist/index.js
CHANGED
|
@@ -1533,12 +1533,20 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
|
|
|
1533
1533
|
matching property is set - so none ever touch sl-input's own
|
|
1534
1534
|
default sizing/padding for every existing caller that doesn't opt
|
|
1535
1535
|
in. fixedWidth only constrains the field itself (not the host, so
|
|
1536
|
-
the label above keeps its full width and doesn't wrap).
|
|
1536
|
+
the label above keeps its full width and doesn't wrap).
|
|
1537
|
+
!important is needed on the sizing declarations - Shoelace sets its
|
|
1538
|
+
own height internally off --sl-input-height-medium (not just the
|
|
1539
|
+
exposed 'base' part), so both are overridden together to reliably
|
|
1540
|
+
win regardless of which one actually drives the rendered size. */
|
|
1537
1541
|
:host(.axebow-fixed-width) sl-input {
|
|
1538
|
-
width: var(--axebow-input-width);
|
|
1542
|
+
width: var(--axebow-input-width) !important;
|
|
1543
|
+
}
|
|
1544
|
+
:host(.axebow-fixed-height) sl-input {
|
|
1545
|
+
--sl-input-height-medium: var(--axebow-input-height);
|
|
1539
1546
|
}
|
|
1540
1547
|
:host(.axebow-fixed-height) sl-input::part(base) {
|
|
1541
|
-
height: var(--axebow-input-height);
|
|
1548
|
+
height: var(--axebow-input-height) !important;
|
|
1549
|
+
box-sizing: border-box;
|
|
1542
1550
|
}
|
|
1543
1551
|
:host(.axebow-has-stepper) sl-input::part(base) {
|
|
1544
1552
|
padding-right: 0;
|
|
@@ -1549,26 +1557,35 @@ var AxebowNumericInput = class AxebowNumericInput extends AxebowInputBase {
|
|
|
1549
1557
|
padding: 0;
|
|
1550
1558
|
}
|
|
1551
1559
|
|
|
1560
|
+
/* Only a left border (separating the stepper from the typed number)
|
|
1561
|
+
and a divider between the two buttons - the top/right/bottom edges
|
|
1562
|
+
coincide with sl-input's own border, so drawing our own there
|
|
1563
|
+
would just double it up. */
|
|
1552
1564
|
.axebow-numeric-stepper {
|
|
1553
1565
|
display: flex;
|
|
1554
1566
|
flex-direction: column;
|
|
1555
|
-
width: 1.375rem;
|
|
1556
|
-
height: 2.375rem;
|
|
1567
|
+
width: 1.375rem !important;
|
|
1568
|
+
height: 2.375rem !important;
|
|
1569
|
+
border-left: 1px solid var(--axebow-gray);
|
|
1557
1570
|
border-radius: 0 var(--sl-input-border-radius-medium, 0.25rem) var(--sl-input-border-radius-medium, 0.25rem) 0;
|
|
1558
1571
|
overflow: hidden;
|
|
1559
1572
|
}
|
|
1560
1573
|
.axebow-numeric-stepper-btn {
|
|
1561
|
-
flex: 1;
|
|
1574
|
+
flex: 1 1 0 !important;
|
|
1562
1575
|
display: flex;
|
|
1563
1576
|
align-items: center;
|
|
1564
1577
|
justify-content: center;
|
|
1578
|
+
min-height: 0;
|
|
1565
1579
|
min-width: 0;
|
|
1566
|
-
border:
|
|
1580
|
+
border: none;
|
|
1567
1581
|
background: transparent;
|
|
1568
1582
|
padding: 0;
|
|
1569
1583
|
margin: 0;
|
|
1570
1584
|
cursor: pointer;
|
|
1571
1585
|
}
|
|
1586
|
+
.axebow-numeric-stepper-btn:first-child {
|
|
1587
|
+
border-bottom: 1px solid var(--axebow-gray);
|
|
1588
|
+
}
|
|
1572
1589
|
.axebow-numeric-stepper-btn:disabled {
|
|
1573
1590
|
cursor: not-allowed;
|
|
1574
1591
|
opacity: 0.5;
|