@foi/design-system 0.0.5 → 0.0.8

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 CHANGED
@@ -31,6 +31,14 @@ npm run pretty # Format all files with Prettier
31
31
  npm run eslint # Lint and auto-fix with ESLint
32
32
  ```
33
33
 
34
+ ## Publishing to npm
35
+
36
+ ```bash
37
+ npm run build:lib # Build the library (JS + type declarations)
38
+ npm version patch # Bump version: 0.0.x → 0.0.x+1
39
+ npm publish --access public
40
+ ```
41
+
34
42
  ## Components
35
43
 
36
44
  ### Atoms
@@ -1629,7 +1629,9 @@ var R = "--DATEPICKER", Oe = ({ name: e, label: r, control: i, language: a = f()
1629
1629
  ${H(e, "ENABLED")};
1630
1630
 
1631
1631
  // VALUE
1632
- &:has(.--INPUT-inputField:not(:placeholder-shown)) {
1632
+ &:has(.--INPUT-inputField:not(:placeholder-shown)),
1633
+ &:has(.--INPUT-inputField[placeholder]:not([placeholder=' '])),
1634
+ &:has(.--INPUT-inputField:-webkit-autofill) {
1633
1635
  ${H(e, "VALUE")};
1634
1636
  }
1635
1637
 
@@ -1655,7 +1657,8 @@ var R = "--DATEPICKER", Oe = ({ name: e, label: r, control: i, language: a = f()
1655
1657
  }
1656
1658
 
1657
1659
  // ERROR + VALUE
1658
- &:has(.--INPUT-inputField.--INPUT-error:not(:placeholder-shown)) {
1660
+ &:has(.--INPUT-inputField.--INPUT-error:not(:placeholder-shown)),
1661
+ &:has(.--INPUT-inputField.--INPUT-error[placeholder]:not([placeholder=' '])) {
1659
1662
  ${H(e, "ERROR_VALUE")};
1660
1663
  }
1661
1664
 
@@ -1681,7 +1684,8 @@ var R = "--DATEPICKER", Oe = ({ name: e, label: r, control: i, language: a = f()
1681
1684
  }
1682
1685
 
1683
1686
  // DISABLED + VALUE
1684
- &:has(.--INPUT-inputField:disabled:not(:placeholder-shown)) {
1687
+ &:has(.--INPUT-inputField:disabled:not(:placeholder-shown)),
1688
+ &:has(.--INPUT-inputField:disabled[placeholder]:not([placeholder=' '])) {
1685
1689
  pointer-events: none;
1686
1690
  ${H(e, "DISABLED_VALUE")};
1687
1691
  }
@@ -1729,7 +1733,9 @@ var R = "--DATEPICKER", Oe = ({ name: e, label: r, control: i, language: a = f()
1729
1733
  }
1730
1734
 
1731
1735
  // VALUE
1732
- &:not(:placeholder-shown) {
1736
+ &:not(:placeholder-shown),
1737
+ &[placeholder]:not([placeholder=' ']),
1738
+ &:-webkit-autofill {
1733
1739
  ${B(e, "VALUE")};
1734
1740
  ~ .--INPUT-label {
1735
1741
  ${V(e, "VALUE", !0)};
@@ -1794,7 +1800,8 @@ var R = "--DATEPICKER", Oe = ({ name: e, label: r, control: i, language: a = f()
1794
1800
  }
1795
1801
 
1796
1802
  // ERROR + VALUE
1797
- &.--INPUT-error:not(:placeholder-shown) {
1803
+ &.--INPUT-error:not(:placeholder-shown),
1804
+ &.--INPUT-error[placeholder]:not([placeholder=' ']) {
1798
1805
  ${B(e, "ERROR_VALUE")};
1799
1806
  ~ .--INPUT-label {
1800
1807
  ${V(e, "ERROR_VALUE")};
@@ -1852,7 +1859,8 @@ var R = "--DATEPICKER", Oe = ({ name: e, label: r, control: i, language: a = f()
1852
1859
  }
1853
1860
 
1854
1861
  // DISABLED + VALUE
1855
- &:disabled:not(:placeholder-shown) {
1862
+ &:disabled:not(:placeholder-shown),
1863
+ &:disabled[placeholder]:not([placeholder=' ']) {
1856
1864
  user-select: none;
1857
1865
  pointer-events: none;
1858
1866
  ${B(e, "DISABLED_VALUE")};
@@ -2497,7 +2505,7 @@ var He = (e) => {
2497
2505
 
2498
2506
  // VALUE
2499
2507
  &:not(:placeholder-shown),
2500
- &:not([placeholder=' ']),
2508
+ &[placeholder]:not([placeholder=' ']),
2501
2509
  &.--SELECT-open {
2502
2510
  ${q(e, "VALUE")};
2503
2511
  ~ .--SELECT-label {
@@ -3821,4 +3829,4 @@ var Z = "--SELECT", Qe = [], $e = ({ name: e, label: r, control: i, options: a,
3821
3829
  //#endregion
3822
3830
  export { Pe as a, he as c, Ue as i, ot as n, ke as o, et as r, Ce as s, mt as t };
3823
3831
 
3824
- //# sourceMappingURL=Switch-BKf-QVlX.js.map
3832
+ //# sourceMappingURL=Switch-DIid_9X3.js.map