@northlight/ui 2.42.4 → 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 +10686 -0
  4. package/dist/sandbox/index.cjs.map +1 -0
  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 +4 -3
  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
@@ -1591,58 +1591,99 @@ const Tabs$1 = {
1591
1591
 
1592
1592
  const Textarea$1 = {
1593
1593
  baseStyle: ({ theme: {
1594
- space: spacing,
1595
- colors: color,
1596
- borders: borderWidth,
1597
- radii: borderRadius
1594
+ colors: color
1598
1595
  } }) => ({
1599
- paddingInlineStart: spacing["padding-inline"].textarea.default,
1600
- paddingInlineEnd: spacing["padding-inline"].textarea.default,
1601
- borderRadius: borderRadius.textarea.default,
1602
- borderWidth: borderWidth.textarea.default,
1603
- borderColor: color.border.textarea.default,
1604
1596
  color: color.text.default,
1605
- bgColor: color.background.textarea.default,
1606
- _hover: {
1607
- borderColor: color.border.textarea["default-hover"],
1608
- bgColor: color.background.textarea.hover
1609
- },
1610
- _focusVisible: {
1611
- borderColor: color.border.textarea.focus,
1612
- boxShadow: `0 0 0 1px ${color.border.textarea.focus}`,
1613
- bgColor: color.background.textarea.active
1614
- },
1615
- _invalid: {
1616
- boxShadow: "none",
1617
- borderColor: color.border.textarea.error,
1618
- bgColor: color.background.textarea.error
1619
- },
1620
- _readOnly: {
1621
- _focusVisible: {
1622
- borderColor: color.border.textarea.readonly,
1623
- bgColor: color.background.textarea.default
1624
- },
1625
- _hover: {
1626
- borderColor: color.border.textarea.readonly
1627
- }
1628
- },
1629
- _disabled: {
1630
- bgColor: color.background.textarea.disabled,
1631
- _hover: {
1632
- borderColor: color.border.textarea.default
1633
- }
1634
- },
1635
1597
  _placeholder: {
1636
1598
  color: color.text.textarea.placeholder
1637
1599
  }
1638
1600
  }),
1639
1601
  variants: {
1640
- outline: {},
1641
- ai: ({ theme: { colors: color } }) => ({
1602
+ outline: ({ theme: {
1603
+ space: spacing,
1604
+ colors: color,
1605
+ borders: borderWidth,
1606
+ radii: borderRadius
1607
+ } }) => ({
1608
+ paddingInlineStart: spacing["padding-inline"].textarea.default,
1609
+ paddingInlineEnd: spacing["padding-inline"].textarea.default,
1610
+ borderRadius: borderRadius.textarea.default,
1611
+ borderWidth: borderWidth.textarea.default,
1612
+ borderColor: color.border.textarea.default,
1613
+ bgColor: color.background.textarea.default,
1614
+ _hover: {
1615
+ borderColor: color.border.textarea["default-hover"],
1616
+ bgColor: color.background.textarea.hover
1617
+ },
1618
+ _focusVisible: {
1619
+ borderColor: color.border.textarea.focus,
1620
+ boxShadow: `0 0 0 1px ${color.border.textarea.focus}`,
1621
+ bgColor: color.background.textarea.active
1622
+ },
1623
+ _invalid: {
1624
+ boxShadow: "none",
1625
+ borderColor: color.border.textarea.error,
1626
+ bgColor: color.background.textarea.error
1627
+ },
1628
+ _readOnly: {
1629
+ _focusVisible: {
1630
+ borderColor: color.border.textarea.readonly,
1631
+ bgColor: color.background.textarea.default
1632
+ },
1633
+ _hover: {
1634
+ borderColor: color.border.textarea.readonly
1635
+ }
1636
+ },
1637
+ _disabled: {
1638
+ bgColor: color.background.textarea.disabled,
1639
+ _hover: {
1640
+ borderColor: color.border.textarea.default
1641
+ }
1642
+ }
1643
+ }),
1644
+ ai: ({ theme: {
1645
+ space: spacing,
1646
+ colors: color,
1647
+ borders: borderWidth,
1648
+ radii: borderRadius
1649
+ } }) => ({
1650
+ paddingInlineStart: spacing["padding-inline"].textarea.default,
1651
+ paddingInlineEnd: spacing["padding-inline"].textarea.default,
1652
+ borderRadius: borderRadius.textarea.default,
1653
+ borderWidth: borderWidth.textarea.default,
1654
+ borderColor: color.border.textarea.default,
1655
+ bgColor: color.background.textarea.default,
1656
+ _hover: {
1657
+ borderColor: color.border.textarea["default-hover"],
1658
+ bgColor: color.background.textarea.hover
1659
+ },
1642
1660
  _focusVisible: {
1661
+ bgColor: color.background.textarea.active,
1662
+ boxShadow: `inset 0 0 0 1px ${color.border.ai}`,
1663
+ borderColor: color.border.ai,
1664
+ _invalid: {
1665
+ boxShadow: `inset 0 0 0 1px ${color.border.textarea.error}`,
1666
+ bgColor: color.background.textarea.error,
1667
+ borderColor: color.border.textarea.error
1668
+ }
1669
+ },
1670
+ _invalid: {
1671
+ bgColor: color.background.textarea.error,
1672
+ borderColor: color.border.textarea.error
1673
+ },
1674
+ _readOnly: {
1675
+ _focusVisible: {
1676
+ borderColor: color.border.textarea.readonly,
1677
+ bgColor: color.background.textarea.default
1678
+ },
1679
+ _hover: {
1680
+ borderColor: color.border.textarea.readonly
1681
+ }
1682
+ },
1683
+ _disabled: {
1684
+ bgColor: color.background.textarea.disabled,
1643
1685
  _hover: {
1644
- boxShadow: `0 0 0 1px ${color.border.ai}`,
1645
- borderColor: color.border.ai
1686
+ borderColor: color.border.textarea.default
1646
1687
  }
1647
1688
  }
1648
1689
  })