@feathericons/core 0.1.0 → 0.2.0
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 +4 -1
- package/dist/generated.js +490 -0
- package/dist/variant.d.ts +2 -1
- package/dist/variant.js +6 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -24,6 +24,9 @@ ICON_AXES
|
|
|
24
24
|
icons
|
|
25
25
|
// [{ name, keywords, variants: [{ axes, grid, bounds, contents }, ...] }, ...]
|
|
26
26
|
|
|
27
|
-
getVariant(icons[0], { weight: '
|
|
27
|
+
getVariant(icons[0], { weight: 'bold', roundness: 'large' })
|
|
28
28
|
// { axes, grid, bounds, contents }
|
|
29
|
+
|
|
30
|
+
getVariant(icons[0], { weight: 'bold' })
|
|
31
|
+
// Axes you leave out use ICON_AXIS_DEFAULTS
|
|
29
32
|
```
|
package/dist/generated.js
CHANGED
|
@@ -27879,6 +27879,496 @@ export const icons = [
|
|
|
27879
27879
|
}
|
|
27880
27880
|
]
|
|
27881
27881
|
},
|
|
27882
|
+
{
|
|
27883
|
+
"name": "minus",
|
|
27884
|
+
"keywords": [
|
|
27885
|
+
"subtract",
|
|
27886
|
+
"remove",
|
|
27887
|
+
"delete",
|
|
27888
|
+
"decrease",
|
|
27889
|
+
"collapse",
|
|
27890
|
+
"dash",
|
|
27891
|
+
"line"
|
|
27892
|
+
],
|
|
27893
|
+
"variants": [
|
|
27894
|
+
{
|
|
27895
|
+
"axes": {
|
|
27896
|
+
"weight": "bold",
|
|
27897
|
+
"roundness": "large"
|
|
27898
|
+
},
|
|
27899
|
+
"grid": {
|
|
27900
|
+
"width": 20,
|
|
27901
|
+
"height": 20
|
|
27902
|
+
},
|
|
27903
|
+
"bounds": {
|
|
27904
|
+
"x": 4,
|
|
27905
|
+
"y": 9,
|
|
27906
|
+
"width": 12,
|
|
27907
|
+
"height": 2
|
|
27908
|
+
},
|
|
27909
|
+
"contents": "<path d=\"M15 9C15.5523 9 16 9.44772 16 10C16 10.5523 15.5523 11 15 11H5C4.44772 11 4 10.5523 4 10C4 9.44772 4.44772 9 5 9H15Z\"/>"
|
|
27910
|
+
},
|
|
27911
|
+
{
|
|
27912
|
+
"axes": {
|
|
27913
|
+
"weight": "bold",
|
|
27914
|
+
"roundness": "medium"
|
|
27915
|
+
},
|
|
27916
|
+
"grid": {
|
|
27917
|
+
"width": 20,
|
|
27918
|
+
"height": 20
|
|
27919
|
+
},
|
|
27920
|
+
"bounds": {
|
|
27921
|
+
"x": 4,
|
|
27922
|
+
"y": 9,
|
|
27923
|
+
"width": 12,
|
|
27924
|
+
"height": 2
|
|
27925
|
+
},
|
|
27926
|
+
"contents": "<path d=\"M15 9C15.5523 9 16 9.44772 16 10C16 10.5523 15.5523 11 15 11H5C4.44772 11 4 10.5523 4 10C4 9.44772 4.44772 9 5 9H15Z\"/>"
|
|
27927
|
+
},
|
|
27928
|
+
{
|
|
27929
|
+
"axes": {
|
|
27930
|
+
"weight": "bold",
|
|
27931
|
+
"roundness": "none"
|
|
27932
|
+
},
|
|
27933
|
+
"grid": {
|
|
27934
|
+
"width": 20,
|
|
27935
|
+
"height": 20
|
|
27936
|
+
},
|
|
27937
|
+
"bounds": {
|
|
27938
|
+
"x": 4,
|
|
27939
|
+
"y": 9,
|
|
27940
|
+
"width": 12,
|
|
27941
|
+
"height": 2
|
|
27942
|
+
},
|
|
27943
|
+
"contents": "<path d=\"M15 9C15.5523 9 16 9.44772 16 10C16 10.5523 15.5523 11 15 11H5C4.44772 11 4 10.5523 4 10C4 9.44772 4.44772 9 5 9H15Z\"/>"
|
|
27944
|
+
},
|
|
27945
|
+
{
|
|
27946
|
+
"axes": {
|
|
27947
|
+
"weight": "bold",
|
|
27948
|
+
"roundness": "small"
|
|
27949
|
+
},
|
|
27950
|
+
"grid": {
|
|
27951
|
+
"width": 20,
|
|
27952
|
+
"height": 20
|
|
27953
|
+
},
|
|
27954
|
+
"bounds": {
|
|
27955
|
+
"x": 4,
|
|
27956
|
+
"y": 9,
|
|
27957
|
+
"width": 12,
|
|
27958
|
+
"height": 2
|
|
27959
|
+
},
|
|
27960
|
+
"contents": "<path d=\"M15 9C15.5523 9 16 9.44772 16 10C16 10.5523 15.5523 11 15 11H5C4.44772 11 4 10.5523 4 10C4 9.44772 4.44772 9 5 9H15Z\"/>"
|
|
27961
|
+
},
|
|
27962
|
+
{
|
|
27963
|
+
"axes": {
|
|
27964
|
+
"weight": "extralight",
|
|
27965
|
+
"roundness": "large"
|
|
27966
|
+
},
|
|
27967
|
+
"grid": {
|
|
27968
|
+
"width": 20,
|
|
27969
|
+
"height": 20
|
|
27970
|
+
},
|
|
27971
|
+
"bounds": {
|
|
27972
|
+
"x": 4,
|
|
27973
|
+
"y": 9,
|
|
27974
|
+
"width": 12,
|
|
27975
|
+
"height": 2
|
|
27976
|
+
},
|
|
27977
|
+
"contents": "<path d=\"M15.25 9.375C15.5952 9.375 15.875 9.65482 15.875 10C15.875 10.3452 15.5952 10.625 15.25 10.625H4.75C4.40482 10.625 4.125 10.3452 4.125 10C4.125 9.65482 4.40482 9.375 4.75 9.375H15.25Z\"/>"
|
|
27978
|
+
},
|
|
27979
|
+
{
|
|
27980
|
+
"axes": {
|
|
27981
|
+
"weight": "extralight",
|
|
27982
|
+
"roundness": "medium"
|
|
27983
|
+
},
|
|
27984
|
+
"grid": {
|
|
27985
|
+
"width": 20,
|
|
27986
|
+
"height": 20
|
|
27987
|
+
},
|
|
27988
|
+
"bounds": {
|
|
27989
|
+
"x": 4,
|
|
27990
|
+
"y": 9,
|
|
27991
|
+
"width": 12,
|
|
27992
|
+
"height": 2
|
|
27993
|
+
},
|
|
27994
|
+
"contents": "<path d=\"M15.25 9.375C15.5952 9.375 15.875 9.65482 15.875 10C15.875 10.3452 15.5952 10.625 15.25 10.625H4.75C4.40482 10.625 4.125 10.3452 4.125 10C4.125 9.65482 4.40482 9.375 4.75 9.375H15.25Z\"/>"
|
|
27995
|
+
},
|
|
27996
|
+
{
|
|
27997
|
+
"axes": {
|
|
27998
|
+
"weight": "extralight",
|
|
27999
|
+
"roundness": "none"
|
|
28000
|
+
},
|
|
28001
|
+
"grid": {
|
|
28002
|
+
"width": 20,
|
|
28003
|
+
"height": 20
|
|
28004
|
+
},
|
|
28005
|
+
"bounds": {
|
|
28006
|
+
"x": 4,
|
|
28007
|
+
"y": 9,
|
|
28008
|
+
"width": 12,
|
|
28009
|
+
"height": 2
|
|
28010
|
+
},
|
|
28011
|
+
"contents": "<path d=\"M15.25 9.375C15.5952 9.375 15.875 9.65482 15.875 10C15.875 10.3452 15.5952 10.625 15.25 10.625H4.75C4.40482 10.625 4.125 10.3452 4.125 10C4.125 9.65482 4.40482 9.375 4.75 9.375H15.25Z\"/>"
|
|
28012
|
+
},
|
|
28013
|
+
{
|
|
28014
|
+
"axes": {
|
|
28015
|
+
"weight": "extralight",
|
|
28016
|
+
"roundness": "small"
|
|
28017
|
+
},
|
|
28018
|
+
"grid": {
|
|
28019
|
+
"width": 20,
|
|
28020
|
+
"height": 20
|
|
28021
|
+
},
|
|
28022
|
+
"bounds": {
|
|
28023
|
+
"x": 4,
|
|
28024
|
+
"y": 9,
|
|
28025
|
+
"width": 12,
|
|
28026
|
+
"height": 2
|
|
28027
|
+
},
|
|
28028
|
+
"contents": "<path d=\"M15.25 9.375C15.5952 9.375 15.875 9.65482 15.875 10C15.875 10.3452 15.5952 10.625 15.25 10.625H4.75C4.40482 10.625 4.125 10.3452 4.125 10C4.125 9.65482 4.40482 9.375 4.75 9.375H15.25Z\"/>"
|
|
28029
|
+
},
|
|
28030
|
+
{
|
|
28031
|
+
"axes": {
|
|
28032
|
+
"weight": "light",
|
|
28033
|
+
"roundness": "large"
|
|
28034
|
+
},
|
|
28035
|
+
"grid": {
|
|
28036
|
+
"width": 20,
|
|
28037
|
+
"height": 20
|
|
28038
|
+
},
|
|
28039
|
+
"bounds": {
|
|
28040
|
+
"x": 4,
|
|
28041
|
+
"y": 9,
|
|
28042
|
+
"width": 12,
|
|
28043
|
+
"height": 2
|
|
28044
|
+
},
|
|
28045
|
+
"contents": "<path d=\"M15.25 9.33496C15.6173 9.33496 15.915 9.63273 15.915 10C15.915 10.3673 15.6173 10.665 15.25 10.665H4.75C4.38273 10.665 4.08496 10.3673 4.08496 10C4.08496 9.63273 4.38273 9.33496 4.75 9.33496H15.25Z\"/>"
|
|
28046
|
+
},
|
|
28047
|
+
{
|
|
28048
|
+
"axes": {
|
|
28049
|
+
"weight": "light",
|
|
28050
|
+
"roundness": "medium"
|
|
28051
|
+
},
|
|
28052
|
+
"grid": {
|
|
28053
|
+
"width": 20,
|
|
28054
|
+
"height": 20
|
|
28055
|
+
},
|
|
28056
|
+
"bounds": {
|
|
28057
|
+
"x": 4,
|
|
28058
|
+
"y": 9,
|
|
28059
|
+
"width": 12,
|
|
28060
|
+
"height": 2
|
|
28061
|
+
},
|
|
28062
|
+
"contents": "<path d=\"M15.25 9.33496C15.6173 9.33496 15.915 9.63273 15.915 10C15.915 10.3673 15.6173 10.665 15.25 10.665H4.75C4.38273 10.665 4.08496 10.3673 4.08496 10C4.08496 9.63273 4.38273 9.33496 4.75 9.33496H15.25Z\"/>"
|
|
28063
|
+
},
|
|
28064
|
+
{
|
|
28065
|
+
"axes": {
|
|
28066
|
+
"weight": "light",
|
|
28067
|
+
"roundness": "none"
|
|
28068
|
+
},
|
|
28069
|
+
"grid": {
|
|
28070
|
+
"width": 20,
|
|
28071
|
+
"height": 20
|
|
28072
|
+
},
|
|
28073
|
+
"bounds": {
|
|
28074
|
+
"x": 4,
|
|
28075
|
+
"y": 9,
|
|
28076
|
+
"width": 12,
|
|
28077
|
+
"height": 2
|
|
28078
|
+
},
|
|
28079
|
+
"contents": "<path d=\"M15.25 9.33496C15.6173 9.33496 15.915 9.63273 15.915 10C15.915 10.3673 15.6173 10.665 15.25 10.665H4.75C4.38273 10.665 4.08496 10.3673 4.08496 10C4.08496 9.63273 4.38273 9.33496 4.75 9.33496H15.25Z\"/>"
|
|
28080
|
+
},
|
|
28081
|
+
{
|
|
28082
|
+
"axes": {
|
|
28083
|
+
"weight": "light",
|
|
28084
|
+
"roundness": "small"
|
|
28085
|
+
},
|
|
28086
|
+
"grid": {
|
|
28087
|
+
"width": 20,
|
|
28088
|
+
"height": 20
|
|
28089
|
+
},
|
|
28090
|
+
"bounds": {
|
|
28091
|
+
"x": 4,
|
|
28092
|
+
"y": 9,
|
|
28093
|
+
"width": 12,
|
|
28094
|
+
"height": 2
|
|
28095
|
+
},
|
|
28096
|
+
"contents": "<path d=\"M15.25 9.33496C15.6173 9.33496 15.915 9.63273 15.915 10C15.915 10.3673 15.6173 10.665 15.25 10.665H4.75C4.38273 10.665 4.08496 10.3673 4.08496 10C4.08496 9.63273 4.38273 9.33496 4.75 9.33496H15.25Z\"/>"
|
|
28097
|
+
},
|
|
28098
|
+
{
|
|
28099
|
+
"axes": {
|
|
28100
|
+
"weight": "medium",
|
|
28101
|
+
"roundness": "large"
|
|
28102
|
+
},
|
|
28103
|
+
"grid": {
|
|
28104
|
+
"width": 20,
|
|
28105
|
+
"height": 20
|
|
28106
|
+
},
|
|
28107
|
+
"bounds": {
|
|
28108
|
+
"x": 3,
|
|
28109
|
+
"y": 9,
|
|
28110
|
+
"width": 14,
|
|
28111
|
+
"height": 2
|
|
28112
|
+
},
|
|
28113
|
+
"contents": "<path d=\"M15.25 9.16504C15.7112 9.16504 16.085 9.53884 16.085 10C16.085 10.4612 15.7112 10.835 15.25 10.835H4.75C4.28884 10.835 3.91504 10.4612 3.91504 10C3.91504 9.53884 4.28884 9.16504 4.75 9.16504H15.25Z\"/>"
|
|
28114
|
+
},
|
|
28115
|
+
{
|
|
28116
|
+
"axes": {
|
|
28117
|
+
"weight": "medium",
|
|
28118
|
+
"roundness": "medium"
|
|
28119
|
+
},
|
|
28120
|
+
"grid": {
|
|
28121
|
+
"width": 20,
|
|
28122
|
+
"height": 20
|
|
28123
|
+
},
|
|
28124
|
+
"bounds": {
|
|
28125
|
+
"x": 3,
|
|
28126
|
+
"y": 9,
|
|
28127
|
+
"width": 14,
|
|
28128
|
+
"height": 2
|
|
28129
|
+
},
|
|
28130
|
+
"contents": "<path d=\"M15.25 9.16504C15.7112 9.16504 16.085 9.53884 16.085 10C16.085 10.4612 15.7112 10.835 15.25 10.835H4.75C4.28884 10.835 3.91504 10.4612 3.91504 10C3.91504 9.53884 4.28884 9.16504 4.75 9.16504H15.25Z\"/>"
|
|
28131
|
+
},
|
|
28132
|
+
{
|
|
28133
|
+
"axes": {
|
|
28134
|
+
"weight": "medium",
|
|
28135
|
+
"roundness": "none"
|
|
28136
|
+
},
|
|
28137
|
+
"grid": {
|
|
28138
|
+
"width": 20,
|
|
28139
|
+
"height": 20
|
|
28140
|
+
},
|
|
28141
|
+
"bounds": {
|
|
28142
|
+
"x": 3,
|
|
28143
|
+
"y": 9,
|
|
28144
|
+
"width": 14,
|
|
28145
|
+
"height": 2
|
|
28146
|
+
},
|
|
28147
|
+
"contents": "<path d=\"M15.25 9.16504C15.7112 9.16504 16.085 9.53884 16.085 10C16.085 10.4612 15.7112 10.835 15.25 10.835H4.75C4.28884 10.835 3.91504 10.4612 3.91504 10C3.91504 9.53884 4.28884 9.16504 4.75 9.16504H15.25Z\"/>"
|
|
28148
|
+
},
|
|
28149
|
+
{
|
|
28150
|
+
"axes": {
|
|
28151
|
+
"weight": "medium",
|
|
28152
|
+
"roundness": "small"
|
|
28153
|
+
},
|
|
28154
|
+
"grid": {
|
|
28155
|
+
"width": 20,
|
|
28156
|
+
"height": 20
|
|
28157
|
+
},
|
|
28158
|
+
"bounds": {
|
|
28159
|
+
"x": 3,
|
|
28160
|
+
"y": 9,
|
|
28161
|
+
"width": 14,
|
|
28162
|
+
"height": 2
|
|
28163
|
+
},
|
|
28164
|
+
"contents": "<path d=\"M15.25 9.16504C15.7112 9.16504 16.085 9.53884 16.085 10C16.085 10.4612 15.7112 10.835 15.25 10.835H4.75C4.28884 10.835 3.91504 10.4612 3.91504 10C3.91504 9.53884 4.28884 9.16504 4.75 9.16504H15.25Z\"/>"
|
|
28165
|
+
},
|
|
28166
|
+
{
|
|
28167
|
+
"axes": {
|
|
28168
|
+
"weight": "regular",
|
|
28169
|
+
"roundness": "large"
|
|
28170
|
+
},
|
|
28171
|
+
"grid": {
|
|
28172
|
+
"width": 20,
|
|
28173
|
+
"height": 20
|
|
28174
|
+
},
|
|
28175
|
+
"bounds": {
|
|
28176
|
+
"x": 4,
|
|
28177
|
+
"y": 9,
|
|
28178
|
+
"width": 12,
|
|
28179
|
+
"height": 2
|
|
28180
|
+
},
|
|
28181
|
+
"contents": "<path d=\"M15.25 9.25C15.6642 9.25 16 9.58579 16 10C16 10.4142 15.6642 10.75 15.25 10.75H4.75C4.33579 10.75 4 10.4142 4 10C4 9.58579 4.33579 9.25 4.75 9.25H15.25Z\"/>"
|
|
28182
|
+
},
|
|
28183
|
+
{
|
|
28184
|
+
"axes": {
|
|
28185
|
+
"weight": "regular",
|
|
28186
|
+
"roundness": "medium"
|
|
28187
|
+
},
|
|
28188
|
+
"grid": {
|
|
28189
|
+
"width": 20,
|
|
28190
|
+
"height": 20
|
|
28191
|
+
},
|
|
28192
|
+
"bounds": {
|
|
28193
|
+
"x": 4,
|
|
28194
|
+
"y": 9,
|
|
28195
|
+
"width": 12,
|
|
28196
|
+
"height": 2
|
|
28197
|
+
},
|
|
28198
|
+
"contents": "<path d=\"M15.25 9.25C15.6642 9.25 16 9.58579 16 10C16 10.4142 15.6642 10.75 15.25 10.75H4.75C4.33579 10.75 4 10.4142 4 10C4 9.58579 4.33579 9.25 4.75 9.25H15.25Z\"/>"
|
|
28199
|
+
},
|
|
28200
|
+
{
|
|
28201
|
+
"axes": {
|
|
28202
|
+
"weight": "regular",
|
|
28203
|
+
"roundness": "none"
|
|
28204
|
+
},
|
|
28205
|
+
"grid": {
|
|
28206
|
+
"width": 20,
|
|
28207
|
+
"height": 20
|
|
28208
|
+
},
|
|
28209
|
+
"bounds": {
|
|
28210
|
+
"x": 4,
|
|
28211
|
+
"y": 9,
|
|
28212
|
+
"width": 12,
|
|
28213
|
+
"height": 2
|
|
28214
|
+
},
|
|
28215
|
+
"contents": "<path d=\"M15.25 9.25C15.6642 9.25 16 9.58579 16 10C16 10.4142 15.6642 10.75 15.25 10.75H4.75C4.33579 10.75 4 10.4142 4 10C4 9.58579 4.33579 9.25 4.75 9.25H15.25Z\"/>"
|
|
28216
|
+
},
|
|
28217
|
+
{
|
|
28218
|
+
"axes": {
|
|
28219
|
+
"weight": "regular",
|
|
28220
|
+
"roundness": "small"
|
|
28221
|
+
},
|
|
28222
|
+
"grid": {
|
|
28223
|
+
"width": 20,
|
|
28224
|
+
"height": 20
|
|
28225
|
+
},
|
|
28226
|
+
"bounds": {
|
|
28227
|
+
"x": 4,
|
|
28228
|
+
"y": 9,
|
|
28229
|
+
"width": 12,
|
|
28230
|
+
"height": 2
|
|
28231
|
+
},
|
|
28232
|
+
"contents": "<path d=\"M15.25 9.25C15.6642 9.25 16 9.58579 16 10C16 10.4142 15.6642 10.75 15.25 10.75H4.75C4.33579 10.75 4 10.4142 4 10C4 9.58579 4.33579 9.25 4.75 9.25H15.25Z\"/>"
|
|
28233
|
+
},
|
|
28234
|
+
{
|
|
28235
|
+
"axes": {
|
|
28236
|
+
"weight": "semibold",
|
|
28237
|
+
"roundness": "large"
|
|
28238
|
+
},
|
|
28239
|
+
"grid": {
|
|
28240
|
+
"width": 20,
|
|
28241
|
+
"height": 20
|
|
28242
|
+
},
|
|
28243
|
+
"bounds": {
|
|
28244
|
+
"x": 4,
|
|
28245
|
+
"y": 9,
|
|
28246
|
+
"width": 12,
|
|
28247
|
+
"height": 2
|
|
28248
|
+
},
|
|
28249
|
+
"contents": "<path d=\"M15 9.125C15.4832 9.125 15.875 9.51675 15.875 10C15.875 10.4832 15.4832 10.875 15 10.875H5C4.51675 10.875 4.125 10.4832 4.125 10C4.125 9.51675 4.51675 9.125 5 9.125H15Z\"/>"
|
|
28250
|
+
},
|
|
28251
|
+
{
|
|
28252
|
+
"axes": {
|
|
28253
|
+
"weight": "semibold",
|
|
28254
|
+
"roundness": "medium"
|
|
28255
|
+
},
|
|
28256
|
+
"grid": {
|
|
28257
|
+
"width": 20,
|
|
28258
|
+
"height": 20
|
|
28259
|
+
},
|
|
28260
|
+
"bounds": {
|
|
28261
|
+
"x": 4,
|
|
28262
|
+
"y": 9,
|
|
28263
|
+
"width": 12,
|
|
28264
|
+
"height": 2
|
|
28265
|
+
},
|
|
28266
|
+
"contents": "<path d=\"M15 9.125C15.4832 9.125 15.875 9.51675 15.875 10C15.875 10.4832 15.4832 10.875 15 10.875H5C4.51675 10.875 4.125 10.4832 4.125 10C4.125 9.51675 4.51675 9.125 5 9.125H15Z\"/>"
|
|
28267
|
+
},
|
|
28268
|
+
{
|
|
28269
|
+
"axes": {
|
|
28270
|
+
"weight": "semibold",
|
|
28271
|
+
"roundness": "none"
|
|
28272
|
+
},
|
|
28273
|
+
"grid": {
|
|
28274
|
+
"width": 20,
|
|
28275
|
+
"height": 20
|
|
28276
|
+
},
|
|
28277
|
+
"bounds": {
|
|
28278
|
+
"x": 4,
|
|
28279
|
+
"y": 9,
|
|
28280
|
+
"width": 12,
|
|
28281
|
+
"height": 2
|
|
28282
|
+
},
|
|
28283
|
+
"contents": "<path d=\"M15 9.125C15.4832 9.125 15.875 9.51675 15.875 10C15.875 10.4832 15.4832 10.875 15 10.875H5C4.51675 10.875 4.125 10.4832 4.125 10C4.125 9.51675 4.51675 9.125 5 9.125H15Z\"/>"
|
|
28284
|
+
},
|
|
28285
|
+
{
|
|
28286
|
+
"axes": {
|
|
28287
|
+
"weight": "semibold",
|
|
28288
|
+
"roundness": "small"
|
|
28289
|
+
},
|
|
28290
|
+
"grid": {
|
|
28291
|
+
"width": 20,
|
|
28292
|
+
"height": 20
|
|
28293
|
+
},
|
|
28294
|
+
"bounds": {
|
|
28295
|
+
"x": 4,
|
|
28296
|
+
"y": 9,
|
|
28297
|
+
"width": 12,
|
|
28298
|
+
"height": 2
|
|
28299
|
+
},
|
|
28300
|
+
"contents": "<path d=\"M15 9.125C15.4832 9.125 15.875 9.51675 15.875 10C15.875 10.4832 15.4832 10.875 15 10.875H5C4.51675 10.875 4.125 10.4832 4.125 10C4.125 9.51675 4.51675 9.125 5 9.125H15Z\"/>"
|
|
28301
|
+
},
|
|
28302
|
+
{
|
|
28303
|
+
"axes": {
|
|
28304
|
+
"weight": "thin",
|
|
28305
|
+
"roundness": "large"
|
|
28306
|
+
},
|
|
28307
|
+
"grid": {
|
|
28308
|
+
"width": 20,
|
|
28309
|
+
"height": 20
|
|
28310
|
+
},
|
|
28311
|
+
"bounds": {
|
|
28312
|
+
"x": 4,
|
|
28313
|
+
"y": 9,
|
|
28314
|
+
"width": 12,
|
|
28315
|
+
"height": 2
|
|
28316
|
+
},
|
|
28317
|
+
"contents": "<path d=\"M15.5 9.5C15.7761 9.5 16 9.72386 16 10C16 10.2761 15.7761 10.5 15.5 10.5H4.5C4.22386 10.5 4 10.2761 4 10C4 9.72386 4.22386 9.5 4.5 9.5H15.5Z\"/>"
|
|
28318
|
+
},
|
|
28319
|
+
{
|
|
28320
|
+
"axes": {
|
|
28321
|
+
"weight": "thin",
|
|
28322
|
+
"roundness": "medium"
|
|
28323
|
+
},
|
|
28324
|
+
"grid": {
|
|
28325
|
+
"width": 20,
|
|
28326
|
+
"height": 20
|
|
28327
|
+
},
|
|
28328
|
+
"bounds": {
|
|
28329
|
+
"x": 4,
|
|
28330
|
+
"y": 9,
|
|
28331
|
+
"width": 12,
|
|
28332
|
+
"height": 2
|
|
28333
|
+
},
|
|
28334
|
+
"contents": "<path d=\"M15.5 9.5C15.7761 9.5 16 9.72386 16 10C16 10.2761 15.7761 10.5 15.5 10.5H4.5C4.22386 10.5 4 10.2761 4 10C4 9.72386 4.22386 9.5 4.5 9.5H15.5Z\"/>"
|
|
28335
|
+
},
|
|
28336
|
+
{
|
|
28337
|
+
"axes": {
|
|
28338
|
+
"weight": "thin",
|
|
28339
|
+
"roundness": "none"
|
|
28340
|
+
},
|
|
28341
|
+
"grid": {
|
|
28342
|
+
"width": 20,
|
|
28343
|
+
"height": 20
|
|
28344
|
+
},
|
|
28345
|
+
"bounds": {
|
|
28346
|
+
"x": 4,
|
|
28347
|
+
"y": 9,
|
|
28348
|
+
"width": 12,
|
|
28349
|
+
"height": 2
|
|
28350
|
+
},
|
|
28351
|
+
"contents": "<path d=\"M15.5 9.5C15.7761 9.5 16 9.72386 16 10C16 10.2761 15.7761 10.5 15.5 10.5H4.5C4.22386 10.5 4 10.2761 4 10C4 9.72386 4.22386 9.5 4.5 9.5H15.5Z\"/>"
|
|
28352
|
+
},
|
|
28353
|
+
{
|
|
28354
|
+
"axes": {
|
|
28355
|
+
"weight": "thin",
|
|
28356
|
+
"roundness": "small"
|
|
28357
|
+
},
|
|
28358
|
+
"grid": {
|
|
28359
|
+
"width": 20,
|
|
28360
|
+
"height": 20
|
|
28361
|
+
},
|
|
28362
|
+
"bounds": {
|
|
28363
|
+
"x": 4,
|
|
28364
|
+
"y": 9,
|
|
28365
|
+
"width": 12,
|
|
28366
|
+
"height": 2
|
|
28367
|
+
},
|
|
28368
|
+
"contents": "<path d=\"M15.5 9.5C15.7761 9.5 16 9.72386 16 10C16 10.2761 15.7761 10.5 15.5 10.5H4.5C4.22386 10.5 4 10.2761 4 10C4 9.72386 4.22386 9.5 4.5 9.5H15.5Z\"/>"
|
|
28369
|
+
}
|
|
28370
|
+
]
|
|
28371
|
+
},
|
|
27882
28372
|
{
|
|
27883
28373
|
"name": "person",
|
|
27884
28374
|
"keywords": [
|
package/dist/variant.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { IconAxes } from './types.js';
|
|
2
|
+
/** Finds the variant at `axes`. Axes left out use `ICON_AXIS_DEFAULTS`. */
|
|
2
3
|
export declare function getVariant<Variant extends {
|
|
3
4
|
readonly axes: IconAxes;
|
|
4
5
|
}>(icon: {
|
|
5
6
|
readonly variants: readonly Variant[];
|
|
6
|
-
}, axes
|
|
7
|
+
}, axes?: Partial<IconAxes>): Variant;
|
package/dist/variant.js
CHANGED
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { ICON_AXES } from './axes.js';
|
|
2
|
-
|
|
1
|
+
import { ICON_AXES, ICON_AXIS_DEFAULTS } from './axes.js';
|
|
2
|
+
/** Finds the variant at `axes`. Axes left out use `ICON_AXIS_DEFAULTS`. */
|
|
3
|
+
export function getVariant(icon, axes = {}) {
|
|
3
4
|
const keys = Object.keys(ICON_AXES);
|
|
4
|
-
const
|
|
5
|
+
const wanted = { ...ICON_AXIS_DEFAULTS, ...axes };
|
|
6
|
+
const found = icon.variants.find((variant) => keys.every((key) => variant.axes[key] === wanted[key]));
|
|
5
7
|
if (!found) {
|
|
6
|
-
throw new Error(`missing variant ${keys.map((key) =>
|
|
8
|
+
throw new Error(`missing variant ${keys.map((key) => wanted[key]).join('/')}`);
|
|
7
9
|
}
|
|
8
10
|
return found;
|
|
9
11
|
}
|