@symbo.ls/atoms 2.34.30 → 2.34.32
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/Box.js +201 -0
- package/package.json +6 -6
package/Box.js
CHANGED
|
@@ -1578,6 +1578,207 @@ export const Box = {
|
|
|
1578
1578
|
if (!val) return
|
|
1579
1579
|
return { containerType: val }
|
|
1580
1580
|
}
|
|
1581
|
+
},
|
|
1582
|
+
|
|
1583
|
+
// clip
|
|
1584
|
+
...{
|
|
1585
|
+
backgroundClip: (element) => {
|
|
1586
|
+
const { props, deps } = element
|
|
1587
|
+
const val = deps.exec.call(element, props.backgroundClip)
|
|
1588
|
+
if (isUndefined(val)) return
|
|
1589
|
+
return { backgroundClip: val, WebkitBackgroundClip: val }
|
|
1590
|
+
},
|
|
1591
|
+
clipPath: (element) => {
|
|
1592
|
+
const { props, deps } = element
|
|
1593
|
+
const val = deps.exec.call(element, props.clipPath)
|
|
1594
|
+
if (isUndefined(val)) return
|
|
1595
|
+
return { clipPath: val }
|
|
1596
|
+
}
|
|
1597
|
+
},
|
|
1598
|
+
|
|
1599
|
+
// webkit
|
|
1600
|
+
...{
|
|
1601
|
+
lineClamp: (element) => {
|
|
1602
|
+
const { props, deps } = element
|
|
1603
|
+
const val = deps.exec.call(element, props.lineClamp)
|
|
1604
|
+
if (isUndefined(val)) return
|
|
1605
|
+
return {
|
|
1606
|
+
display: '-webkit-box',
|
|
1607
|
+
WebkitBoxOrient: 'vertical',
|
|
1608
|
+
WebkitLineClamp: val,
|
|
1609
|
+
overflow: 'hidden'
|
|
1610
|
+
}
|
|
1611
|
+
},
|
|
1612
|
+
WebkitBoxOrient: (element) => {
|
|
1613
|
+
const { props, deps } = element
|
|
1614
|
+
const val = deps.exec.call(element, props.webkitBoxOrient)
|
|
1615
|
+
if (isUndefined(val)) return
|
|
1616
|
+
return { WebkitBoxOrient: val }
|
|
1617
|
+
},
|
|
1618
|
+
WebkitLineClamp: (element) => {
|
|
1619
|
+
const { props, deps } = element
|
|
1620
|
+
const val = deps.exec.call(element, props.webkitLineClamp)
|
|
1621
|
+
if (isUndefined(val)) return
|
|
1622
|
+
return { WebkitLineClamp: val }
|
|
1623
|
+
},
|
|
1624
|
+
WebkitBackgroundClip: (element) => {
|
|
1625
|
+
const { props, deps } = element
|
|
1626
|
+
const val = deps.exec.call(element, props.webkitBackgroundClip)
|
|
1627
|
+
if (isUndefined(val)) return
|
|
1628
|
+
return { WebkitBackgroundClip: val }
|
|
1629
|
+
},
|
|
1630
|
+
WebkitTextFillColor: (element) => {
|
|
1631
|
+
const { props, deps } = element
|
|
1632
|
+
if (!props.webkitTextFillColor) return
|
|
1633
|
+
const globalTheme = deps.getSystemGlobalTheme(element)
|
|
1634
|
+
const val = deps.exec.call(element, props.webkitTextFillColor)
|
|
1635
|
+
return { WebkitTextFillColor: deps.getMediaColor(val, globalTheme) }
|
|
1636
|
+
},
|
|
1637
|
+
WebkitOverflowScrolling: (element) => {
|
|
1638
|
+
const { props, deps } = element
|
|
1639
|
+
const val = deps.exec.call(element, props.webkitOverflowScrolling)
|
|
1640
|
+
if (isUndefined(val)) return
|
|
1641
|
+
return { WebkitOverflowScrolling: val }
|
|
1642
|
+
},
|
|
1643
|
+
WebkitFontSmoothing: (element) => {
|
|
1644
|
+
const { props, deps } = element
|
|
1645
|
+
const val = deps.exec.call(element, props.webkitFontSmoothing)
|
|
1646
|
+
if (isUndefined(val)) return
|
|
1647
|
+
return { WebkitFontSmoothing: val }
|
|
1648
|
+
},
|
|
1649
|
+
WebkitTapHighlightColor: (element) => {
|
|
1650
|
+
const { props, deps } = element
|
|
1651
|
+
if (!props.webkitTapHighlightColor) return
|
|
1652
|
+
const globalTheme = deps.getSystemGlobalTheme(element)
|
|
1653
|
+
const val = deps.exec.call(element, props.webkitTapHighlightColor)
|
|
1654
|
+
return {
|
|
1655
|
+
WebkitTapHighlightColor: deps.getMediaColor(val, globalTheme)
|
|
1656
|
+
}
|
|
1657
|
+
}
|
|
1658
|
+
},
|
|
1659
|
+
|
|
1660
|
+
// missing standard props
|
|
1661
|
+
...{
|
|
1662
|
+
objectPosition: (element) => {
|
|
1663
|
+
const { props, deps } = element
|
|
1664
|
+
const val = deps.exec.call(element, props.objectPosition)
|
|
1665
|
+
if (isUndefined(val)) return
|
|
1666
|
+
return { objectPosition: val }
|
|
1667
|
+
},
|
|
1668
|
+
isolation: (element) => {
|
|
1669
|
+
const { props, deps } = element
|
|
1670
|
+
const val = deps.exec.call(element, props.isolation)
|
|
1671
|
+
if (isUndefined(val)) return
|
|
1672
|
+
return { isolation: val }
|
|
1673
|
+
},
|
|
1674
|
+
touchAction: (element) => {
|
|
1675
|
+
const { props, deps } = element
|
|
1676
|
+
const val = deps.exec.call(element, props.touchAction)
|
|
1677
|
+
if (isUndefined(val)) return
|
|
1678
|
+
return { touchAction: val }
|
|
1679
|
+
},
|
|
1680
|
+
flexGrow: (element) => {
|
|
1681
|
+
const { props, deps } = element
|
|
1682
|
+
const val = deps.exec.call(element, props.flexGrow)
|
|
1683
|
+
if (isUndefined(val)) return
|
|
1684
|
+
return { flexGrow: val }
|
|
1685
|
+
},
|
|
1686
|
+
flexShrink: (element) => {
|
|
1687
|
+
const { props, deps } = element
|
|
1688
|
+
const val = deps.exec.call(element, props.flexShrink)
|
|
1689
|
+
if (isUndefined(val)) return
|
|
1690
|
+
return { flexShrink: val }
|
|
1691
|
+
},
|
|
1692
|
+
flexBasis: (element) => {
|
|
1693
|
+
const { props, deps } = element
|
|
1694
|
+
const val = deps.exec.call(element, props.flexBasis)
|
|
1695
|
+
if (isUndefined(val)) return
|
|
1696
|
+
return { flexBasis: val }
|
|
1697
|
+
},
|
|
1698
|
+
justifySelf: (element) => {
|
|
1699
|
+
const { props, deps } = element
|
|
1700
|
+
const val = deps.exec.call(element, props.justifySelf)
|
|
1701
|
+
if (isUndefined(val)) return
|
|
1702
|
+
return { justifySelf: val }
|
|
1703
|
+
},
|
|
1704
|
+
placeSelf: (element) => {
|
|
1705
|
+
const { props, deps } = element
|
|
1706
|
+
const val = deps.exec.call(element, props.placeSelf)
|
|
1707
|
+
if (isUndefined(val)) return
|
|
1708
|
+
return { placeSelf: val }
|
|
1709
|
+
},
|
|
1710
|
+
placeItems: (element) => {
|
|
1711
|
+
const { props, deps } = element
|
|
1712
|
+
const val = deps.exec.call(element, props.placeItems)
|
|
1713
|
+
if (isUndefined(val)) return
|
|
1714
|
+
return { placeItems: val }
|
|
1715
|
+
},
|
|
1716
|
+
placeContent: (element) => {
|
|
1717
|
+
const { props, deps } = element
|
|
1718
|
+
const val = deps.exec.call(element, props.placeContent)
|
|
1719
|
+
if (isUndefined(val)) return
|
|
1720
|
+
return { placeContent: val }
|
|
1721
|
+
},
|
|
1722
|
+
scrollSnapType: (element) => {
|
|
1723
|
+
const { props, deps } = element
|
|
1724
|
+
const val = deps.exec.call(element, props.scrollSnapType)
|
|
1725
|
+
if (isUndefined(val)) return
|
|
1726
|
+
return { scrollSnapType: val }
|
|
1727
|
+
},
|
|
1728
|
+
scrollSnapAlign: (element) => {
|
|
1729
|
+
const { props, deps } = element
|
|
1730
|
+
const val = deps.exec.call(element, props.scrollSnapAlign)
|
|
1731
|
+
if (isUndefined(val)) return
|
|
1732
|
+
return { scrollSnapAlign: val }
|
|
1733
|
+
},
|
|
1734
|
+
writingMode: (element) => {
|
|
1735
|
+
const { props, deps } = element
|
|
1736
|
+
const val = deps.exec.call(element, props.writingMode)
|
|
1737
|
+
if (isUndefined(val)) return
|
|
1738
|
+
return { writingMode: val }
|
|
1739
|
+
},
|
|
1740
|
+
tabSize: (element) => {
|
|
1741
|
+
const { props, deps } = element
|
|
1742
|
+
const val = deps.exec.call(element, props.tabSize)
|
|
1743
|
+
if (isUndefined(val)) return
|
|
1744
|
+
return { tabSize: val }
|
|
1745
|
+
},
|
|
1746
|
+
listStyle: (element) => {
|
|
1747
|
+
const { props, deps } = element
|
|
1748
|
+
const val = deps.exec.call(element, props.listStyle)
|
|
1749
|
+
if (isUndefined(val)) return
|
|
1750
|
+
return { listStyle: val }
|
|
1751
|
+
},
|
|
1752
|
+
listStyleType: (element) => {
|
|
1753
|
+
const { props, deps } = element
|
|
1754
|
+
const val = deps.exec.call(element, props.listStyleType)
|
|
1755
|
+
if (isUndefined(val)) return
|
|
1756
|
+
return { listStyleType: val }
|
|
1757
|
+
},
|
|
1758
|
+
accentColor: (element) => {
|
|
1759
|
+
const { props, deps } = element
|
|
1760
|
+
if (!props.accentColor) return
|
|
1761
|
+
const globalTheme = deps.getSystemGlobalTheme(element)
|
|
1762
|
+
const val = deps.exec.call(element, props.accentColor)
|
|
1763
|
+
return { accentColor: deps.getMediaColor(val, globalTheme) }
|
|
1764
|
+
},
|
|
1765
|
+
outlineColor: (element) => {
|
|
1766
|
+
const { props, deps } = element
|
|
1767
|
+
if (!props.outlineColor) return
|
|
1768
|
+
const globalTheme = deps.getSystemGlobalTheme(element)
|
|
1769
|
+
const val = deps.exec.call(element, props.outlineColor)
|
|
1770
|
+
return { outlineColor: deps.getMediaColor(val, globalTheme) }
|
|
1771
|
+
},
|
|
1772
|
+
outlineStyle: (element) => {
|
|
1773
|
+
const { props, deps } = element
|
|
1774
|
+
const val = deps.exec.call(element, props.outlineStyle)
|
|
1775
|
+
if (isUndefined(val)) return
|
|
1776
|
+
return { outlineStyle: val }
|
|
1777
|
+
},
|
|
1778
|
+
outlineWidth: (el) => {
|
|
1779
|
+
const { props, deps } = el
|
|
1780
|
+
return deps.transformSizeRatio.call(el, 'outlineWidth', props)
|
|
1781
|
+
}
|
|
1581
1782
|
}
|
|
1582
1783
|
},
|
|
1583
1784
|
|
package/package.json
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@symbo.ls/atoms",
|
|
3
|
-
"version": "2.34.
|
|
3
|
+
"version": "2.34.32",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
|
-
"gitHead": "
|
|
6
|
+
"gitHead": "99bd991fb87c092bcfd045ad358c15064a8b8c30",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@domql/state": "^2.34.
|
|
9
|
-
"@domql/utils": "^2.34.
|
|
10
|
-
"@symbo.ls/emotion": "^2.34.
|
|
11
|
-
"@symbo.ls/scratch": "^2.34.
|
|
8
|
+
"@domql/state": "^2.34.32",
|
|
9
|
+
"@domql/utils": "^2.34.32",
|
|
10
|
+
"@symbo.ls/emotion": "^2.34.32",
|
|
11
|
+
"@symbo.ls/scratch": "^2.34.32"
|
|
12
12
|
},
|
|
13
13
|
"source": "src/index.js",
|
|
14
14
|
"devDependencies": {
|