@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.
- package/dist/es/northlight.js +84 -43
- package/dist/es/northlight.js.map +1 -1
- package/dist/sandbox/index.cjs +10686 -0
- package/dist/sandbox/index.cjs.map +1 -0
- package/dist/sandbox/index.js +88 -45
- package/dist/sandbox/index.js.map +1 -1
- package/dist/umd/northlight.cjs +84 -43
- package/dist/umd/northlight.cjs.map +1 -1
- package/dist/umd/northlight.min.cjs +3 -3
- package/dist/umd/northlight.min.cjs.map +1 -1
- package/lib/theme/components/textarea/index.ts +82 -41
- package/package.json +4 -3
- package/sandbox/lib/run-scenarios.ts +4 -1
- package/sandbox/node_modules/.yarn-integrity +0 -38
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/LICENSE +0 -127
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/README.md +0 -50
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/filter.d.ts +0 -2
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/filter.js +0 -39
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/filter.js.map +0 -1
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/index.d.ts +0 -11
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/index.js +0 -78
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/index.js.map +0 -1
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/lib.d.ts +0 -6
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/lib.js +0 -79
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/lib/lib.js.map +0 -1
- package/sandbox/node_modules/@originjs/vite-plugin-commonjs/package.json +0 -34
- package/sandbox/node_modules/esbuild/LICENSE.md +0 -21
- package/sandbox/node_modules/esbuild/README.md +0 -3
- package/sandbox/node_modules/esbuild/bin/esbuild +0 -178
- package/sandbox/node_modules/esbuild/install.js +0 -244
- package/sandbox/node_modules/esbuild/lib/main.d.ts +0 -602
- package/sandbox/node_modules/esbuild/lib/main.js +0 -2332
- package/sandbox/node_modules/esbuild/package.json +0 -41
- package/sandbox/node_modules/esbuild-linux-64/README.md +0 -3
- package/sandbox/node_modules/esbuild-linux-64/bin/esbuild +0 -0
- package/sandbox/node_modules/esbuild-linux-64/package.json +0 -17
package/dist/es/northlight.js
CHANGED
|
@@ -1591,58 +1591,99 @@ const Tabs$1 = {
|
|
|
1591
1591
|
|
|
1592
1592
|
const Textarea$1 = {
|
|
1593
1593
|
baseStyle: ({ theme: {
|
|
1594
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1645
|
-
borderColor: color.border.ai
|
|
1686
|
+
borderColor: color.border.textarea.default
|
|
1646
1687
|
}
|
|
1647
1688
|
}
|
|
1648
1689
|
})
|