@northlight/ui 2.43.0 → 2.43.1

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.
Files changed (36) hide show
  1. package/dist/es/northlight.js +84 -43
  2. package/dist/es/northlight.js.map +1 -1
  3. package/dist/sandbox/index.cjs +88 -45
  4. package/dist/sandbox/index.cjs.map +1 -1
  5. package/dist/sandbox/index.js +88 -45
  6. package/dist/sandbox/index.js.map +1 -1
  7. package/dist/umd/northlight.cjs +84 -43
  8. package/dist/umd/northlight.cjs.map +1 -1
  9. package/dist/umd/northlight.min.cjs +3 -3
  10. package/dist/umd/northlight.min.cjs.map +1 -1
  11. package/lib/theme/components/textarea/index.ts +82 -41
  12. package/package.json +2 -2
  13. package/sandbox/lib/run-scenarios.ts +4 -1
  14. package/sandbox/node_modules/.yarn-integrity +0 -38
  15. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/LICENSE +0 -127
  16. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/README.md +0 -50
  17. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/filter.d.ts +0 -2
  18. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/filter.js +0 -39
  19. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/filter.js.map +0 -1
  20. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/index.d.ts +0 -11
  21. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/index.js +0 -78
  22. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/index.js.map +0 -1
  23. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/lib.d.ts +0 -6
  24. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/lib.js +0 -79
  25. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/lib.js.map +0 -1
  26. package/sandbox/node_modules/@originjs/vite-plugin-commonjs/package.json +0 -34
  27. package/sandbox/node_modules/esbuild/LICENSE.md +0 -21
  28. package/sandbox/node_modules/esbuild/README.md +0 -3
  29. package/sandbox/node_modules/esbuild/bin/esbuild +0 -178
  30. package/sandbox/node_modules/esbuild/install.js +0 -244
  31. package/sandbox/node_modules/esbuild/lib/main.d.ts +0 -602
  32. package/sandbox/node_modules/esbuild/lib/main.js +0 -2332
  33. package/sandbox/node_modules/esbuild/package.json +0 -41
  34. package/sandbox/node_modules/esbuild-linux-64/README.md +0 -3
  35. package/sandbox/node_modules/esbuild-linux-64/bin/esbuild +0 -0
  36. package/sandbox/node_modules/esbuild-linux-64/package.json +0 -17
@@ -1568,58 +1568,99 @@
1568
1568
 
1569
1569
  const Textarea$1 = {
1570
1570
  baseStyle: ({ theme: {
1571
- space: spacing,
1572
- colors: color,
1573
- borders: borderWidth,
1574
- radii: borderRadius
1571
+ colors: color
1575
1572
  } }) => ({
1576
- paddingInlineStart: spacing["padding-inline"].textarea.default,
1577
- paddingInlineEnd: spacing["padding-inline"].textarea.default,
1578
- borderRadius: borderRadius.textarea.default,
1579
- borderWidth: borderWidth.textarea.default,
1580
- borderColor: color.border.textarea.default,
1581
1573
  color: color.text.default,
1582
- bgColor: color.background.textarea.default,
1583
- _hover: {
1584
- borderColor: color.border.textarea["default-hover"],
1585
- bgColor: color.background.textarea.hover
1586
- },
1587
- _focusVisible: {
1588
- borderColor: color.border.textarea.focus,
1589
- boxShadow: `0 0 0 1px ${color.border.textarea.focus}`,
1590
- bgColor: color.background.textarea.active
1591
- },
1592
- _invalid: {
1593
- boxShadow: "none",
1594
- borderColor: color.border.textarea.error,
1595
- bgColor: color.background.textarea.error
1596
- },
1597
- _readOnly: {
1598
- _focusVisible: {
1599
- borderColor: color.border.textarea.readonly,
1600
- bgColor: color.background.textarea.default
1601
- },
1602
- _hover: {
1603
- borderColor: color.border.textarea.readonly
1604
- }
1605
- },
1606
- _disabled: {
1607
- bgColor: color.background.textarea.disabled,
1608
- _hover: {
1609
- borderColor: color.border.textarea.default
1610
- }
1611
- },
1612
1574
  _placeholder: {
1613
1575
  color: color.text.textarea.placeholder
1614
1576
  }
1615
1577
  }),
1616
1578
  variants: {
1617
- outline: {},
1618
- ai: ({ theme: { colors: color } }) => ({
1579
+ outline: ({ theme: {
1580
+ space: spacing,
1581
+ colors: color,
1582
+ borders: borderWidth,
1583
+ radii: borderRadius
1584
+ } }) => ({
1585
+ paddingInlineStart: spacing["padding-inline"].textarea.default,
1586
+ paddingInlineEnd: spacing["padding-inline"].textarea.default,
1587
+ borderRadius: borderRadius.textarea.default,
1588
+ borderWidth: borderWidth.textarea.default,
1589
+ borderColor: color.border.textarea.default,
1590
+ bgColor: color.background.textarea.default,
1591
+ _hover: {
1592
+ borderColor: color.border.textarea["default-hover"],
1593
+ bgColor: color.background.textarea.hover
1594
+ },
1595
+ _focusVisible: {
1596
+ borderColor: color.border.textarea.focus,
1597
+ boxShadow: `0 0 0 1px ${color.border.textarea.focus}`,
1598
+ bgColor: color.background.textarea.active
1599
+ },
1600
+ _invalid: {
1601
+ boxShadow: "none",
1602
+ borderColor: color.border.textarea.error,
1603
+ bgColor: color.background.textarea.error
1604
+ },
1605
+ _readOnly: {
1606
+ _focusVisible: {
1607
+ borderColor: color.border.textarea.readonly,
1608
+ bgColor: color.background.textarea.default
1609
+ },
1610
+ _hover: {
1611
+ borderColor: color.border.textarea.readonly
1612
+ }
1613
+ },
1614
+ _disabled: {
1615
+ bgColor: color.background.textarea.disabled,
1616
+ _hover: {
1617
+ borderColor: color.border.textarea.default
1618
+ }
1619
+ }
1620
+ }),
1621
+ ai: ({ theme: {
1622
+ space: spacing,
1623
+ colors: color,
1624
+ borders: borderWidth,
1625
+ radii: borderRadius
1626
+ } }) => ({
1627
+ paddingInlineStart: spacing["padding-inline"].textarea.default,
1628
+ paddingInlineEnd: spacing["padding-inline"].textarea.default,
1629
+ borderRadius: borderRadius.textarea.default,
1630
+ borderWidth: borderWidth.textarea.default,
1631
+ borderColor: color.border.textarea.default,
1632
+ bgColor: color.background.textarea.default,
1633
+ _hover: {
1634
+ borderColor: color.border.textarea["default-hover"],
1635
+ bgColor: color.background.textarea.hover
1636
+ },
1619
1637
  _focusVisible: {
1638
+ bgColor: color.background.textarea.active,
1639
+ boxShadow: `inset 0 0 0 1px ${color.border.ai}`,
1640
+ borderColor: color.border.ai,
1641
+ _invalid: {
1642
+ boxShadow: `inset 0 0 0 1px ${color.border.textarea.error}`,
1643
+ bgColor: color.background.textarea.error,
1644
+ borderColor: color.border.textarea.error
1645
+ }
1646
+ },
1647
+ _invalid: {
1648
+ bgColor: color.background.textarea.error,
1649
+ borderColor: color.border.textarea.error
1650
+ },
1651
+ _readOnly: {
1652
+ _focusVisible: {
1653
+ borderColor: color.border.textarea.readonly,
1654
+ bgColor: color.background.textarea.default
1655
+ },
1656
+ _hover: {
1657
+ borderColor: color.border.textarea.readonly
1658
+ }
1659
+ },
1660
+ _disabled: {
1661
+ bgColor: color.background.textarea.disabled,
1620
1662
  _hover: {
1621
- boxShadow: `0 0 0 1px ${color.border.ai}`,
1622
- borderColor: color.border.ai
1663
+ borderColor: color.border.textarea.default
1623
1664
  }
1624
1665
  }
1625
1666
  })