@tamagui/themes 2.7.7 → 3.0.0-beta.643.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/cjs/builder.cjs +314 -0
- package/dist/cjs/builder.native.cjs +332 -0
- package/dist/cjs/builder.native.js +334 -0
- package/dist/cjs/builder.native.js.map +1 -0
- package/dist/cjs/generated-v5-subtle.cjs +7187 -538
- package/dist/cjs/generated-v5-subtle.native.cjs +7221 -0
- package/dist/cjs/generated-v5-subtle.native.js +7204 -556
- package/dist/cjs/generated-v5-subtle.native.js.map +1 -1
- package/dist/cjs/generated-v5.cjs +7205 -538
- package/dist/cjs/generated-v5.native.cjs +7239 -0
- package/dist/cjs/generated-v5.native.js +7222 -556
- package/dist/cjs/generated-v5.native.js.map +1 -1
- package/dist/cjs/generated.cjs +1334 -0
- package/dist/cjs/generated.native.cjs +1353 -0
- package/dist/cjs/generated.native.js +1355 -0
- package/dist/cjs/generated.native.js.map +1 -0
- package/dist/cjs/index.cjs +23 -19
- package/dist/cjs/index.native.cjs +33 -0
- package/dist/cjs/index.native.js +24 -19
- package/dist/cjs/index.native.js.map +1 -1
- package/dist/cjs/tailwind-colors.cjs +314 -0
- package/dist/cjs/tailwind-colors.native.cjs +316 -0
- package/dist/cjs/tailwind-colors.native.js +318 -0
- package/dist/cjs/tailwind-colors.native.js.map +1 -0
- package/dist/cjs/themes.generate.cjs +25 -0
- package/dist/cjs/themes.generate.native.cjs +27 -0
- package/dist/cjs/themes.generate.native.js +29 -0
- package/dist/cjs/themes.generate.native.js.map +1 -0
- package/dist/cjs/tokens.cjs +39 -152
- package/dist/cjs/tokens.native.cjs +53 -0
- package/dist/cjs/tokens.native.js +40 -159
- package/dist/cjs/tokens.native.js.map +1 -1
- package/dist/cjs/utils.cjs +20 -35
- package/dist/cjs/utils.native.cjs +34 -0
- package/dist/cjs/utils.native.js +21 -38
- package/dist/cjs/utils.native.js.map +1 -1
- package/dist/cjs/v5-subtle.cjs +16 -26
- package/dist/cjs/v5-subtle.native.cjs +31 -0
- package/dist/cjs/v5-subtle.native.js +16 -25
- package/dist/cjs/v5-subtle.native.js.map +1 -1
- package/dist/cjs/v5-tokens.cjs +76 -79
- package/dist/cjs/v5-tokens.native.cjs +106 -0
- package/dist/cjs/v5-tokens.native.js +80 -82
- package/dist/cjs/v5-tokens.native.js.map +1 -1
- package/dist/cjs/v5.cjs +16 -23
- package/dist/cjs/v5.native.cjs +31 -0
- package/dist/cjs/v5.native.js +16 -22
- package/dist/cjs/v5.native.js.map +1 -1
- package/dist/esm/builder.mjs +277 -0
- package/dist/esm/builder.mjs.map +1 -0
- package/dist/esm/builder.native.js +293 -0
- package/dist/esm/builder.native.js.map +1 -0
- package/dist/esm/generated-v5-subtle.mjs +7172 -521
- package/dist/esm/generated-v5-subtle.mjs.map +1 -1
- package/dist/esm/generated-v5-subtle.native.js +7189 -540
- package/dist/esm/generated-v5-subtle.native.js.map +1 -1
- package/dist/esm/generated-v5.mjs +7190 -521
- package/dist/esm/generated-v5.mjs.map +1 -1
- package/dist/esm/generated-v5.native.js +7207 -540
- package/dist/esm/generated-v5.native.js.map +1 -1
- package/dist/esm/generated.mjs +1310 -0
- package/dist/esm/generated.mjs.map +1 -0
- package/dist/esm/generated.native.js +1327 -0
- package/dist/esm/generated.native.js.map +1 -0
- package/dist/esm/index.mjs +4 -9
- package/dist/esm/index.native.js +4 -9
- package/dist/esm/tailwind-colors.mjs +293 -0
- package/dist/esm/tailwind-colors.mjs.map +1 -0
- package/dist/esm/tailwind-colors.native.js +293 -0
- package/dist/esm/tailwind-colors.native.js.map +1 -0
- package/dist/esm/themes.generate.mjs +3 -0
- package/dist/esm/themes.generate.native.js +3 -0
- package/dist/esm/tokens.mjs +25 -129
- package/dist/esm/tokens.mjs.map +1 -1
- package/dist/esm/tokens.native.js +25 -136
- package/dist/esm/tokens.native.js.map +1 -1
- package/dist/esm/utils.mjs +9 -17
- package/dist/esm/utils.mjs.map +1 -1
- package/dist/esm/utils.native.js +9 -20
- package/dist/esm/utils.native.js.map +1 -1
- package/dist/esm/v5-subtle.mjs +2 -6
- package/dist/esm/v5-subtle.native.js +2 -6
- package/dist/esm/v5-tokens.mjs +57 -57
- package/dist/esm/v5-tokens.mjs.map +1 -1
- package/dist/esm/v5-tokens.native.js +61 -61
- package/dist/esm/v5-tokens.native.js.map +1 -1
- package/dist/esm/v5.mjs +2 -5
- package/dist/esm/v5.native.js +2 -5
- package/package.json +42 -43
- package/src/builder.ts +344 -0
- package/src/generated-v5-subtle.ts +6062 -705
- package/src/generated-v5.ts +6062 -705
- package/src/generated.ts +1474 -0
- package/src/index.ts +3 -0
- package/src/tailwind-colors.ts +292 -0
- package/src/themes.generate.ts +1 -0
- package/src/tokens.ts +29 -0
- package/src/utils.ts +0 -42
- package/src/v5-subtle.tsx +2 -4
- package/src/v5-tokens.ts +32 -38
- package/src/v5.tsx +2 -3
- package/types/builder.d.ts +398 -0
- package/types/builder.d.ts.map +1 -0
- package/types/generated-v5-subtle.d.ts.map +1 -1
- package/types/generated-v5.d.ts.map +1 -1
- package/types/generated.d.ts +35 -0
- package/types/generated.d.ts.map +1 -0
- package/types/index.d.ts +3 -8
- package/types/index.d.ts.map +1 -1
- package/types/tailwind-colors.d.ts +291 -0
- package/types/tailwind-colors.d.ts.map +1 -0
- package/types/themes.generate.d.ts +2 -0
- package/types/themes.generate.d.ts.map +1 -0
- package/types/tokens.d.ts +617 -1303
- package/types/tokens.d.ts.map +1 -1
- package/types/utils.d.ts +0 -19
- package/types/utils.d.ts.map +1 -1
- package/types/v5-subtle.d.ts +0 -4
- package/types/v5-subtle.d.ts.map +1 -1
- package/types/v5-tokens.d.ts +95 -101
- package/types/v5-tokens.d.ts.map +1 -1
- package/types/v5.d.ts +0 -3
- package/types/v5.d.ts.map +1 -1
- package/.turbo/turbo-build.log +0 -2
- package/dist/cjs/componentThemeDefinitions.cjs +0 -126
- package/dist/cjs/componentThemeDefinitions.native.js +0 -129
- package/dist/cjs/componentThemeDefinitions.native.js.map +0 -1
- package/dist/cjs/generated-new.cjs +0 -2025
- package/dist/cjs/generated-new.native.js +0 -2047
- package/dist/cjs/generated-new.native.js.map +0 -1
- package/dist/cjs/generated-v3.cjs +0 -1103
- package/dist/cjs/generated-v3.native.js +0 -1125
- package/dist/cjs/generated-v3.native.js.map +0 -1
- package/dist/cjs/generated-v4-tamagui.cjs +0 -937
- package/dist/cjs/generated-v4-tamagui.native.js +0 -959
- package/dist/cjs/generated-v4-tamagui.native.js.map +0 -1
- package/dist/cjs/generated-v4.cjs +0 -395
- package/dist/cjs/generated-v4.native.js +0 -417
- package/dist/cjs/generated-v4.native.js.map +0 -1
- package/dist/cjs/helpers.cjs +0 -36
- package/dist/cjs/helpers.native.js +0 -41
- package/dist/cjs/helpers.native.js.map +0 -1
- package/dist/cjs/opacify.cjs +0 -121
- package/dist/cjs/opacify.native.js +0 -129
- package/dist/cjs/opacify.native.js.map +0 -1
- package/dist/cjs/palettes.cjs +0 -54
- package/dist/cjs/palettes.native.js +0 -65
- package/dist/cjs/palettes.native.js.map +0 -1
- package/dist/cjs/shadows.cjs +0 -45
- package/dist/cjs/shadows.native.js +0 -48
- package/dist/cjs/shadows.native.js.map +0 -1
- package/dist/cjs/subtleChildrenThemes.cjs +0 -68
- package/dist/cjs/subtleChildrenThemes.native.js +0 -76
- package/dist/cjs/subtleChildrenThemes.native.js.map +0 -1
- package/dist/cjs/templates.cjs +0 -120
- package/dist/cjs/templates.native.js +0 -123
- package/dist/cjs/templates.native.js.map +0 -1
- package/dist/cjs/themes-new.cjs +0 -88
- package/dist/cjs/themes-new.native.js +0 -90
- package/dist/cjs/themes-new.native.js.map +0 -1
- package/dist/cjs/themes-old.cjs +0 -292
- package/dist/cjs/themes-old.native.js +0 -305
- package/dist/cjs/themes-old.native.js.map +0 -1
- package/dist/cjs/themes.cjs +0 -28
- package/dist/cjs/themes.native.js +0 -31
- package/dist/cjs/themes.native.js.map +0 -1
- package/dist/cjs/v3-themes.cjs +0 -475
- package/dist/cjs/v3-themes.native.js +0 -489
- package/dist/cjs/v3-themes.native.js.map +0 -1
- package/dist/cjs/v3-tokens.cjs +0 -103
- package/dist/cjs/v3-tokens.native.js +0 -110
- package/dist/cjs/v3-tokens.native.js.map +0 -1
- package/dist/cjs/v3.cjs +0 -54
- package/dist/cjs/v3.native.js +0 -57
- package/dist/cjs/v3.native.js.map +0 -1
- package/dist/cjs/v4-default.cjs +0 -169
- package/dist/cjs/v4-default.native.js +0 -172
- package/dist/cjs/v4-default.native.js.map +0 -1
- package/dist/cjs/v4-tamagui.cjs +0 -239
- package/dist/cjs/v4-tamagui.native.js +0 -245
- package/dist/cjs/v4-tamagui.native.js.map +0 -1
- package/dist/cjs/v4-tokens.cjs +0 -103
- package/dist/cjs/v4-tokens.native.js +0 -110
- package/dist/cjs/v4-tokens.native.js.map +0 -1
- package/dist/cjs/v4.cjs +0 -34
- package/dist/cjs/v4.native.js +0 -37
- package/dist/cjs/v4.native.js.map +0 -1
- package/dist/cjs/v5-templates.cjs +0 -119
- package/dist/cjs/v5-templates.native.js +0 -128
- package/dist/cjs/v5-templates.native.js.map +0 -1
- package/dist/cjs/v5-themes-subtle.cjs +0 -39
- package/dist/cjs/v5-themes-subtle.native.js +0 -42
- package/dist/cjs/v5-themes-subtle.native.js.map +0 -1
- package/dist/cjs/v5-themes.cjs +0 -415
- package/dist/cjs/v5-themes.native.js +0 -470
- package/dist/cjs/v5-themes.native.js.map +0 -1
- package/dist/esm/componentThemeDefinitions.mjs +0 -100
- package/dist/esm/componentThemeDefinitions.mjs.map +0 -1
- package/dist/esm/componentThemeDefinitions.native.js +0 -100
- package/dist/esm/componentThemeDefinitions.native.js.map +0 -1
- package/dist/esm/generated-new.mjs +0 -1999
- package/dist/esm/generated-new.mjs.map +0 -1
- package/dist/esm/generated-new.native.js +0 -2018
- package/dist/esm/generated-new.native.js.map +0 -1
- package/dist/esm/generated-v3.mjs +0 -1077
- package/dist/esm/generated-v3.mjs.map +0 -1
- package/dist/esm/generated-v3.native.js +0 -1096
- package/dist/esm/generated-v3.native.js.map +0 -1
- package/dist/esm/generated-v4-tamagui.mjs +0 -911
- package/dist/esm/generated-v4-tamagui.mjs.map +0 -1
- package/dist/esm/generated-v4-tamagui.native.js +0 -930
- package/dist/esm/generated-v4-tamagui.native.js.map +0 -1
- package/dist/esm/generated-v4.mjs +0 -369
- package/dist/esm/generated-v4.mjs.map +0 -1
- package/dist/esm/generated-v4.native.js +0 -388
- package/dist/esm/generated-v4.native.js.map +0 -1
- package/dist/esm/helpers.mjs +0 -9
- package/dist/esm/helpers.mjs.map +0 -1
- package/dist/esm/helpers.native.js +0 -11
- package/dist/esm/helpers.native.js.map +0 -1
- package/dist/esm/index.js +0 -9
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/index.mjs.map +0 -1
- package/dist/esm/index.native.js.map +0 -1
- package/dist/esm/opacify.mjs +0 -95
- package/dist/esm/opacify.mjs.map +0 -1
- package/dist/esm/opacify.native.js +0 -100
- package/dist/esm/opacify.native.js.map +0 -1
- package/dist/esm/palettes.mjs +0 -29
- package/dist/esm/palettes.mjs.map +0 -1
- package/dist/esm/palettes.native.js +0 -37
- package/dist/esm/palettes.native.js.map +0 -1
- package/dist/esm/shadows.mjs +0 -20
- package/dist/esm/shadows.mjs.map +0 -1
- package/dist/esm/shadows.native.js +0 -20
- package/dist/esm/shadows.native.js.map +0 -1
- package/dist/esm/subtleChildrenThemes.mjs +0 -42
- package/dist/esm/subtleChildrenThemes.mjs.map +0 -1
- package/dist/esm/subtleChildrenThemes.native.js +0 -47
- package/dist/esm/subtleChildrenThemes.native.js.map +0 -1
- package/dist/esm/templates.mjs +0 -94
- package/dist/esm/templates.mjs.map +0 -1
- package/dist/esm/templates.native.js +0 -94
- package/dist/esm/templates.native.js.map +0 -1
- package/dist/esm/themes-new.mjs +0 -63
- package/dist/esm/themes-new.mjs.map +0 -1
- package/dist/esm/themes-new.native.js +0 -62
- package/dist/esm/themes-new.native.js.map +0 -1
- package/dist/esm/themes-old.mjs +0 -267
- package/dist/esm/themes-old.mjs.map +0 -1
- package/dist/esm/themes-old.native.js +0 -277
- package/dist/esm/themes-old.native.js.map +0 -1
- package/dist/esm/themes.mjs +0 -3
- package/dist/esm/themes.mjs.map +0 -1
- package/dist/esm/themes.native.js +0 -3
- package/dist/esm/themes.native.js.map +0 -1
- package/dist/esm/v3-themes.mjs +0 -445
- package/dist/esm/v3-themes.mjs.map +0 -1
- package/dist/esm/v3-themes.native.js +0 -456
- package/dist/esm/v3-themes.native.js.map +0 -1
- package/dist/esm/v3-tokens.mjs +0 -72
- package/dist/esm/v3-tokens.mjs.map +0 -1
- package/dist/esm/v3-tokens.native.js +0 -76
- package/dist/esm/v3-tokens.native.js.map +0 -1
- package/dist/esm/v3.mjs +0 -12
- package/dist/esm/v3.mjs.map +0 -1
- package/dist/esm/v3.native.js +0 -12
- package/dist/esm/v3.native.js.map +0 -1
- package/dist/esm/v4-default.mjs +0 -133
- package/dist/esm/v4-default.mjs.map +0 -1
- package/dist/esm/v4-default.native.js +0 -133
- package/dist/esm/v4-default.native.js.map +0 -1
- package/dist/esm/v4-tamagui.mjs +0 -203
- package/dist/esm/v4-tamagui.mjs.map +0 -1
- package/dist/esm/v4-tamagui.native.js +0 -206
- package/dist/esm/v4-tamagui.native.js.map +0 -1
- package/dist/esm/v4-tokens.mjs +0 -72
- package/dist/esm/v4-tokens.mjs.map +0 -1
- package/dist/esm/v4-tokens.native.js +0 -76
- package/dist/esm/v4-tokens.native.js.map +0 -1
- package/dist/esm/v4.mjs +0 -6
- package/dist/esm/v4.mjs.map +0 -1
- package/dist/esm/v4.native.js +0 -6
- package/dist/esm/v4.native.js.map +0 -1
- package/dist/esm/v5-subtle.mjs.map +0 -1
- package/dist/esm/v5-subtle.native.js.map +0 -1
- package/dist/esm/v5-templates.mjs +0 -94
- package/dist/esm/v5-templates.mjs.map +0 -1
- package/dist/esm/v5-templates.native.js +0 -100
- package/dist/esm/v5-templates.native.js.map +0 -1
- package/dist/esm/v5-themes-subtle.mjs +0 -13
- package/dist/esm/v5-themes-subtle.mjs.map +0 -1
- package/dist/esm/v5-themes-subtle.native.js +0 -13
- package/dist/esm/v5-themes-subtle.native.js.map +0 -1
- package/dist/esm/v5-themes.mjs +0 -374
- package/dist/esm/v5-themes.mjs.map +0 -1
- package/dist/esm/v5-themes.native.js +0 -426
- package/dist/esm/v5-themes.native.js.map +0 -1
- package/dist/esm/v5.mjs.map +0 -1
- package/dist/esm/v5.native.js.map +0 -1
- package/src/componentThemeDefinitions.tsx +0 -129
- package/src/generated-new.ts +0 -2571
- package/src/generated-v3.ts +0 -1826
- package/src/generated-v4-tamagui.ts +0 -2200
- package/src/generated-v4.ts +0 -1004
- package/src/helpers.ts +0 -44
- package/src/index.tsx +0 -8
- package/src/opacify.ts +0 -125
- package/src/palettes.tsx +0 -91
- package/src/shadows.tsx +0 -19
- package/src/subtleChildrenThemes.ts +0 -54
- package/src/templates.tsx +0 -104
- package/src/themes-new.ts +0 -74
- package/src/themes-old.tsx +0 -378
- package/src/themes.tsx +0 -1
- package/src/tokens.tsx +0 -199
- package/src/v3-themes.ts +0 -650
- package/src/v3-tokens.ts +0 -103
- package/src/v3.tsx +0 -12
- package/src/v4-default.ts +0 -191
- package/src/v4-tamagui.ts +0 -287
- package/src/v4-tokens.ts +0 -105
- package/src/v4.tsx +0 -4
- package/src/v5-templates.ts +0 -126
- package/src/v5-themes-subtle.ts +0 -18
- package/src/v5-themes.ts +0 -626
- package/tests/v5-themes.test.ts +0 -215
- package/tsconfig.json +0 -43
- package/types/componentThemeDefinitions.d.ts +0 -771
- package/types/componentThemeDefinitions.d.ts.map +0 -1
- package/types/generated-new.d.ts +0 -135
- package/types/generated-new.d.ts.map +0 -1
- package/types/generated-v3.d.ts +0 -144
- package/types/generated-v3.d.ts.map +0 -1
- package/types/generated-v4-tamagui.d.ts +0 -190
- package/types/generated-v4-tamagui.d.ts.map +0 -1
- package/types/generated-v4.d.ts +0 -137
- package/types/generated-v4.d.ts.map +0 -1
- package/types/helpers.d.ts +0 -24
- package/types/helpers.d.ts.map +0 -1
- package/types/opacify.d.ts +0 -9
- package/types/opacify.d.ts.map +0 -1
- package/types/palettes.d.ts +0 -21
- package/types/palettes.d.ts.map +0 -1
- package/types/shadows.d.ts +0 -15
- package/types/shadows.d.ts.map +0 -1
- package/types/subtleChildrenThemes.d.ts +0 -305
- package/types/subtleChildrenThemes.d.ts.map +0 -1
- package/types/templates.d.ts +0 -155
- package/types/templates.d.ts.map +0 -1
- package/types/themes-new.d.ts +0 -42243
- package/types/themes-new.d.ts.map +0 -1
- package/types/themes-old.d.ts +0 -51411
- package/types/themes-old.d.ts.map +0 -1
- package/types/themes.d.ts +0 -2
- package/types/themes.d.ts.map +0 -1
- package/types/v3-themes.d.ts +0 -16304
- package/types/v3-themes.d.ts.map +0 -1
- package/types/v3-tokens.d.ts +0 -184
- package/types/v3-tokens.d.ts.map +0 -1
- package/types/v3.d.ts +0 -11
- package/types/v3.d.ts.map +0 -1
- package/types/v4-default.d.ts +0 -274
- package/types/v4-default.d.ts.map +0 -1
- package/types/v4-tamagui.d.ts +0 -195
- package/types/v4-tamagui.d.ts.map +0 -1
- package/types/v4-tokens.d.ts +0 -184
- package/types/v4-tokens.d.ts.map +0 -1
- package/types/v4.d.ts +0 -5
- package/types/v4.d.ts.map +0 -1
- package/types/v5-templates.d.ts +0 -42
- package/types/v5-templates.d.ts.map +0 -1
- package/types/v5-themes-subtle.d.ts +0 -250
- package/types/v5-themes-subtle.d.ts.map +0 -1
- package/types/v5-themes.d.ts +0 -752
- package/types/v5-themes.d.ts.map +0 -1
- package/v3/index.cjs +0 -2
- package/v3/index.js +0 -2
- package/v3/index.native.cjs +0 -2
- package/v3/index.native.js +0 -2
- package/v3-themes/index.cjs +0 -2
- package/v3-themes/index.js +0 -2
- package/v3-themes/index.native.cjs +0 -2
- package/v3-themes/index.native.js +0 -2
- package/v3-themes.cjs +0 -1
- package/v3-themes.d.ts +0 -1
- package/v3.cjs +0 -1
- package/v3.d.ts +0 -1
- package/v4/index.cjs +0 -2
- package/v4/index.js +0 -2
- package/v4/index.native.cjs +0 -2
- package/v4/index.native.js +0 -2
- package/v4.cjs +0 -1
- package/v4.d.ts +0 -1
- package/v5/index.cjs +0 -2
- package/v5/index.js +0 -2
- package/v5/index.native.cjs +0 -2
- package/v5/index.native.js +0 -2
- package/v5-subtle/index.cjs +0 -2
- package/v5-subtle/index.js +0 -2
- package/v5-subtle/index.native.cjs +0 -2
- package/v5-subtle/index.native.js +0 -2
- package/v5-subtle.cjs +0 -1
- package/v5-subtle.d.ts +0 -1
- package/v5.cjs +0 -1
- package/v5.d.ts +0 -1
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
|
|
2
|
+
var __defProp = Object.defineProperty;
|
|
3
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
+
var __export = (target, all) => {
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
22
|
+
var themes_generate_exports = {};
|
|
23
|
+
__export(themes_generate_exports, { themes: () => import_builder.themes });
|
|
24
|
+
module.exports = __toCommonJS(themes_generate_exports);
|
|
25
|
+
var import_builder = require("./builder.cjs");
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var themes_generate_exports = {};
|
|
25
|
+
__export(themes_generate_exports, { themes: () => import_builder.themes });
|
|
26
|
+
module.exports = __toCommonJS(themes_generate_exports);
|
|
27
|
+
var import_builder = require("./builder.native.js");
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var themes_generate_exports = {};
|
|
25
|
+
__export(themes_generate_exports, { themes: () => import_builder.themes });
|
|
26
|
+
module.exports = __toCommonJS(themes_generate_exports);
|
|
27
|
+
var import_builder = require("./builder.native.js");
|
|
28
|
+
|
|
29
|
+
//# sourceMappingURL=themes.generate.native.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"themes.generate.native.js","names":[],"sources":["cjs/themes.generate.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar themes_generate_exports = {};\n__export(themes_generate_exports, {\n themes: () => import_builder.themes\n});\nmodule.exports = __toCommonJS(themes_generate_exports);\nvar import_builder = require(\"./builder\");\n//# sourceMappingURL=themes.generate.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,0BAA0B,CAAC;AAC/B,SAAS,yBAAyB,EAChC,cAAc,eAAe,OAC/B,CAAC;AACD,OAAO,UAAU,aAAa,uBAAuB;AACrD,IAAI,iBAAiB,QAAQ,qBAAW"}
|
package/dist/cjs/tokens.cjs
CHANGED
|
@@ -1,164 +1,51 @@
|
|
|
1
|
+
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
6
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
10
11
|
};
|
|
11
12
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
20
|
+
};
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
22
|
var tokens_exports = {};
|
|
24
23
|
__export(tokens_exports, {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
lightColors: () => lightColors,
|
|
29
|
-
radius: () => radius,
|
|
30
|
-
size: () => size,
|
|
31
|
-
space: () => space,
|
|
32
|
-
tokens: () => tokens,
|
|
33
|
-
zIndex: () => zIndex
|
|
24
|
+
colorTokens: () => colorTokens,
|
|
25
|
+
tailwindColors: () => import_tailwind_colors.tailwindColors,
|
|
26
|
+
tokens: () => tokens
|
|
34
27
|
});
|
|
35
28
|
module.exports = __toCommonJS(tokens_exports);
|
|
36
|
-
var
|
|
37
|
-
var import_web = require("@tamagui/web");
|
|
38
|
-
const size = {
|
|
39
|
-
$0: 0,
|
|
40
|
-
"$0.25": 2,
|
|
41
|
-
"$0.5": 4,
|
|
42
|
-
"$0.75": 8,
|
|
43
|
-
$1: 20,
|
|
44
|
-
"$1.5": 24,
|
|
45
|
-
$2: 28,
|
|
46
|
-
"$2.5": 32,
|
|
47
|
-
$3: 36,
|
|
48
|
-
"$3.5": 40,
|
|
49
|
-
$4: 44,
|
|
50
|
-
$true: 44,
|
|
51
|
-
"$4.5": 48,
|
|
52
|
-
$5: 52,
|
|
53
|
-
$6: 64,
|
|
54
|
-
$7: 74,
|
|
55
|
-
$8: 84,
|
|
56
|
-
$9: 94,
|
|
57
|
-
$10: 104,
|
|
58
|
-
$11: 124,
|
|
59
|
-
$12: 144,
|
|
60
|
-
$13: 164,
|
|
61
|
-
$14: 184,
|
|
62
|
-
$15: 204,
|
|
63
|
-
$16: 224,
|
|
64
|
-
$17: 224,
|
|
65
|
-
$18: 244,
|
|
66
|
-
$19: 264,
|
|
67
|
-
$20: 284
|
|
68
|
-
};
|
|
69
|
-
const spaces = Object.entries(size).map(([k, v]) => {
|
|
70
|
-
return [k, sizeToSpace(v)];
|
|
71
|
-
});
|
|
72
|
-
function sizeToSpace(v) {
|
|
73
|
-
if (v === 0) return 0;
|
|
74
|
-
if (v === 2) return 0.5;
|
|
75
|
-
if (v === 4) return 1;
|
|
76
|
-
if (v === 8) return 1.5;
|
|
77
|
-
if (v <= 16) return Math.round(v * 0.333);
|
|
78
|
-
return Math.floor(v * 0.7 - 12);
|
|
79
|
-
}
|
|
80
|
-
const spacesNegative = spaces.slice(1).map(([k, v]) => [`-${k.slice(1)}`, -v]);
|
|
81
|
-
const space = {
|
|
82
|
-
...Object.fromEntries(spaces),
|
|
83
|
-
...Object.fromEntries(spacesNegative)
|
|
84
|
-
};
|
|
85
|
-
const zIndex = {
|
|
86
|
-
0: 0,
|
|
87
|
-
1: 100,
|
|
88
|
-
2: 200,
|
|
89
|
-
3: 300,
|
|
90
|
-
4: 400,
|
|
91
|
-
5: 500
|
|
92
|
-
};
|
|
29
|
+
var import_tailwind_colors = require("./tailwind-colors.cjs");
|
|
93
30
|
const colorTokens = {
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
};
|
|
115
|
-
const darkColors = {
|
|
116
|
-
...colorTokens.dark.blue,
|
|
117
|
-
...colorTokens.dark.gray,
|
|
118
|
-
...colorTokens.dark.green,
|
|
119
|
-
...colorTokens.dark.orange,
|
|
120
|
-
...colorTokens.dark.pink,
|
|
121
|
-
...colorTokens.dark.purple,
|
|
122
|
-
...colorTokens.dark.red,
|
|
123
|
-
...colorTokens.dark.yellow
|
|
124
|
-
};
|
|
125
|
-
const lightColors = {
|
|
126
|
-
...colorTokens.light.blue,
|
|
127
|
-
...colorTokens.light.gray,
|
|
128
|
-
...colorTokens.light.green,
|
|
129
|
-
...colorTokens.light.orange,
|
|
130
|
-
...colorTokens.light.pink,
|
|
131
|
-
...colorTokens.light.purple,
|
|
132
|
-
...colorTokens.light.red,
|
|
133
|
-
...colorTokens.light.yellow
|
|
134
|
-
};
|
|
135
|
-
const color = {
|
|
136
|
-
...postfixObjKeys(lightColors, "Light"),
|
|
137
|
-
...postfixObjKeys(darkColors, "Dark")
|
|
138
|
-
};
|
|
139
|
-
function postfixObjKeys(obj, postfix) {
|
|
140
|
-
return Object.fromEntries(Object.entries(obj).map(([k, v]) => [`${k}${postfix}`, v]));
|
|
141
|
-
}
|
|
142
|
-
const radius = {
|
|
143
|
-
0: 0,
|
|
144
|
-
1: 3,
|
|
145
|
-
2: 5,
|
|
146
|
-
3: 7,
|
|
147
|
-
4: 9,
|
|
148
|
-
true: 9,
|
|
149
|
-
5: 10,
|
|
150
|
-
6: 16,
|
|
151
|
-
7: 19,
|
|
152
|
-
8: 22,
|
|
153
|
-
9: 26,
|
|
154
|
-
10: 34,
|
|
155
|
-
11: 42,
|
|
156
|
-
12: 50
|
|
157
|
-
};
|
|
158
|
-
const tokens = (0, import_web.createTokens)({
|
|
159
|
-
color,
|
|
160
|
-
radius,
|
|
161
|
-
zIndex,
|
|
162
|
-
space,
|
|
163
|
-
size
|
|
164
|
-
});
|
|
31
|
+
...import_tailwind_colors.tailwindColors,
|
|
32
|
+
"brand-50": import_tailwind_colors.tailwindColors["blue-50"],
|
|
33
|
+
"brand-100": import_tailwind_colors.tailwindColors["blue-100"],
|
|
34
|
+
"brand-200": import_tailwind_colors.tailwindColors["blue-200"],
|
|
35
|
+
"brand-300": import_tailwind_colors.tailwindColors["blue-300"],
|
|
36
|
+
"brand-400": import_tailwind_colors.tailwindColors["blue-400"],
|
|
37
|
+
"brand-500": import_tailwind_colors.tailwindColors["blue-500"],
|
|
38
|
+
"brand-600": import_tailwind_colors.tailwindColors["blue-600"],
|
|
39
|
+
"brand-700": import_tailwind_colors.tailwindColors["blue-700"],
|
|
40
|
+
"brand-800": import_tailwind_colors.tailwindColors["blue-800"],
|
|
41
|
+
"brand-900": import_tailwind_colors.tailwindColors["blue-900"],
|
|
42
|
+
"brand-950": import_tailwind_colors.tailwindColors["blue-950"],
|
|
43
|
+
"shadow-1": "rgba(0, 0, 0, 0.05)",
|
|
44
|
+
"shadow-2": "rgba(0, 0, 0, 0.08)",
|
|
45
|
+
"shadow-3": "rgba(0, 0, 0, 0.12)",
|
|
46
|
+
"shadow-4": "rgba(0, 0, 0, 0.16)",
|
|
47
|
+
"shadow-5": "rgba(0, 0, 0, 0.2)",
|
|
48
|
+
"shadow-6": "rgba(0, 0, 0, 0.25)",
|
|
49
|
+
"shadow-7": "rgba(0, 0, 0, 0.3)"
|
|
50
|
+
};
|
|
51
|
+
const tokens = { color: colorTokens };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
13
|
+
};
|
|
14
|
+
var __copyProps = (to, from, except, desc) => {
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
24
|
+
var tokens_exports = {};
|
|
25
|
+
__export(tokens_exports, {
|
|
26
|
+
colorTokens: () => colorTokens,
|
|
27
|
+
tailwindColors: () => import_tailwind_colors.tailwindColors,
|
|
28
|
+
tokens: () => tokens
|
|
29
|
+
});
|
|
30
|
+
module.exports = __toCommonJS(tokens_exports);
|
|
31
|
+
var import_tailwind_colors = require("./tailwind-colors.native.js");
|
|
32
|
+
var colorTokens = {
|
|
33
|
+
...import_tailwind_colors.tailwindColors,
|
|
34
|
+
"brand-50": import_tailwind_colors.tailwindColors["blue-50"],
|
|
35
|
+
"brand-100": import_tailwind_colors.tailwindColors["blue-100"],
|
|
36
|
+
"brand-200": import_tailwind_colors.tailwindColors["blue-200"],
|
|
37
|
+
"brand-300": import_tailwind_colors.tailwindColors["blue-300"],
|
|
38
|
+
"brand-400": import_tailwind_colors.tailwindColors["blue-400"],
|
|
39
|
+
"brand-500": import_tailwind_colors.tailwindColors["blue-500"],
|
|
40
|
+
"brand-600": import_tailwind_colors.tailwindColors["blue-600"],
|
|
41
|
+
"brand-700": import_tailwind_colors.tailwindColors["blue-700"],
|
|
42
|
+
"brand-800": import_tailwind_colors.tailwindColors["blue-800"],
|
|
43
|
+
"brand-900": import_tailwind_colors.tailwindColors["blue-900"],
|
|
44
|
+
"brand-950": import_tailwind_colors.tailwindColors["blue-950"],
|
|
45
|
+
"shadow-1": "rgba(0, 0, 0, 0.05)",
|
|
46
|
+
"shadow-2": "rgba(0, 0, 0, 0.08)",
|
|
47
|
+
"shadow-3": "rgba(0, 0, 0, 0.12)",
|
|
48
|
+
"shadow-4": "rgba(0, 0, 0, 0.16)",
|
|
49
|
+
"shadow-5": "rgba(0, 0, 0, 0.2)",
|
|
50
|
+
"shadow-6": "rgba(0, 0, 0, 0.25)",
|
|
51
|
+
"shadow-7": "rgba(0, 0, 0, 0.3)"
|
|
52
|
+
};
|
|
53
|
+
var tokens = { color: colorTokens };
|
|
@@ -1,174 +1,55 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
|
|
3
4
|
var __defProp = Object.defineProperty;
|
|
4
5
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
6
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
7
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
8
|
var __export = (target, all) => {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
for (var name in all) __defProp(target, name, {
|
|
10
|
+
get: all[name],
|
|
11
|
+
enumerable: true
|
|
12
|
+
});
|
|
12
13
|
};
|
|
13
14
|
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
15
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
16
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
17
|
+
get: () => from[key],
|
|
18
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
19
|
+
});
|
|
20
|
+
}
|
|
21
|
+
return to;
|
|
22
|
+
};
|
|
23
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
25
24
|
var tokens_exports = {};
|
|
26
25
|
__export(tokens_exports, {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
lightColors: () => lightColors,
|
|
31
|
-
radius: () => radius,
|
|
32
|
-
size: () => size,
|
|
33
|
-
space: () => space,
|
|
34
|
-
tokens: () => tokens,
|
|
35
|
-
zIndex: () => zIndex
|
|
26
|
+
colorTokens: () => colorTokens,
|
|
27
|
+
tailwindColors: () => import_tailwind_colors.tailwindColors,
|
|
28
|
+
tokens: () => tokens
|
|
36
29
|
});
|
|
37
30
|
module.exports = __toCommonJS(tokens_exports);
|
|
38
|
-
var
|
|
39
|
-
var import_web = require("@tamagui/web");
|
|
40
|
-
var size = {
|
|
41
|
-
$0: 0,
|
|
42
|
-
"$0.25": 2,
|
|
43
|
-
"$0.5": 4,
|
|
44
|
-
"$0.75": 8,
|
|
45
|
-
$1: 20,
|
|
46
|
-
"$1.5": 24,
|
|
47
|
-
$2: 28,
|
|
48
|
-
"$2.5": 32,
|
|
49
|
-
$3: 36,
|
|
50
|
-
"$3.5": 40,
|
|
51
|
-
$4: 44,
|
|
52
|
-
$true: 44,
|
|
53
|
-
"$4.5": 48,
|
|
54
|
-
$5: 52,
|
|
55
|
-
$6: 64,
|
|
56
|
-
$7: 74,
|
|
57
|
-
$8: 84,
|
|
58
|
-
$9: 94,
|
|
59
|
-
$10: 104,
|
|
60
|
-
$11: 124,
|
|
61
|
-
$12: 144,
|
|
62
|
-
$13: 164,
|
|
63
|
-
$14: 184,
|
|
64
|
-
$15: 204,
|
|
65
|
-
$16: 224,
|
|
66
|
-
$17: 224,
|
|
67
|
-
$18: 244,
|
|
68
|
-
$19: 264,
|
|
69
|
-
$20: 284
|
|
70
|
-
};
|
|
71
|
-
var spaces = Object.entries(size).map(function (param) {
|
|
72
|
-
var [k, v] = param;
|
|
73
|
-
return [k, sizeToSpace(v)];
|
|
74
|
-
});
|
|
75
|
-
function sizeToSpace(v) {
|
|
76
|
-
if (v === 0) return 0;
|
|
77
|
-
if (v === 2) return 0.5;
|
|
78
|
-
if (v === 4) return 1;
|
|
79
|
-
if (v === 8) return 1.5;
|
|
80
|
-
if (v <= 16) return Math.round(v * 0.333);
|
|
81
|
-
return Math.floor(v * 0.7 - 12);
|
|
82
|
-
}
|
|
83
|
-
var spacesNegative = spaces.slice(1).map(function (param) {
|
|
84
|
-
var [k, v] = param;
|
|
85
|
-
return [`-${k.slice(1)}`, -v];
|
|
86
|
-
});
|
|
87
|
-
var space = {
|
|
88
|
-
...Object.fromEntries(spaces),
|
|
89
|
-
...Object.fromEntries(spacesNegative)
|
|
90
|
-
};
|
|
91
|
-
var zIndex = {
|
|
92
|
-
0: 0,
|
|
93
|
-
1: 100,
|
|
94
|
-
2: 200,
|
|
95
|
-
3: 300,
|
|
96
|
-
4: 400,
|
|
97
|
-
5: 500
|
|
98
|
-
};
|
|
31
|
+
var import_tailwind_colors = require("./tailwind-colors.native.js");
|
|
99
32
|
var colorTokens = {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
};
|
|
121
|
-
|
|
122
|
-
...colorTokens.dark.blue,
|
|
123
|
-
...colorTokens.dark.gray,
|
|
124
|
-
...colorTokens.dark.green,
|
|
125
|
-
...colorTokens.dark.orange,
|
|
126
|
-
...colorTokens.dark.pink,
|
|
127
|
-
...colorTokens.dark.purple,
|
|
128
|
-
...colorTokens.dark.red,
|
|
129
|
-
...colorTokens.dark.yellow
|
|
130
|
-
};
|
|
131
|
-
var lightColors = {
|
|
132
|
-
...colorTokens.light.blue,
|
|
133
|
-
...colorTokens.light.gray,
|
|
134
|
-
...colorTokens.light.green,
|
|
135
|
-
...colorTokens.light.orange,
|
|
136
|
-
...colorTokens.light.pink,
|
|
137
|
-
...colorTokens.light.purple,
|
|
138
|
-
...colorTokens.light.red,
|
|
139
|
-
...colorTokens.light.yellow
|
|
140
|
-
};
|
|
141
|
-
var color = {
|
|
142
|
-
...postfixObjKeys(lightColors, "Light"),
|
|
143
|
-
...postfixObjKeys(darkColors, "Dark")
|
|
144
|
-
};
|
|
145
|
-
function postfixObjKeys(obj, postfix) {
|
|
146
|
-
return Object.fromEntries(Object.entries(obj).map(function (param) {
|
|
147
|
-
var [k, v] = param;
|
|
148
|
-
return [`${k}${postfix}`, v];
|
|
149
|
-
}));
|
|
150
|
-
}
|
|
151
|
-
var radius = {
|
|
152
|
-
0: 0,
|
|
153
|
-
1: 3,
|
|
154
|
-
2: 5,
|
|
155
|
-
3: 7,
|
|
156
|
-
4: 9,
|
|
157
|
-
true: 9,
|
|
158
|
-
5: 10,
|
|
159
|
-
6: 16,
|
|
160
|
-
7: 19,
|
|
161
|
-
8: 22,
|
|
162
|
-
9: 26,
|
|
163
|
-
10: 34,
|
|
164
|
-
11: 42,
|
|
165
|
-
12: 50
|
|
166
|
-
};
|
|
167
|
-
var tokens = (0, import_web.createTokens)({
|
|
168
|
-
color,
|
|
169
|
-
radius,
|
|
170
|
-
zIndex,
|
|
171
|
-
space,
|
|
172
|
-
size
|
|
173
|
-
});
|
|
33
|
+
...import_tailwind_colors.tailwindColors,
|
|
34
|
+
"brand-50": import_tailwind_colors.tailwindColors["blue-50"],
|
|
35
|
+
"brand-100": import_tailwind_colors.tailwindColors["blue-100"],
|
|
36
|
+
"brand-200": import_tailwind_colors.tailwindColors["blue-200"],
|
|
37
|
+
"brand-300": import_tailwind_colors.tailwindColors["blue-300"],
|
|
38
|
+
"brand-400": import_tailwind_colors.tailwindColors["blue-400"],
|
|
39
|
+
"brand-500": import_tailwind_colors.tailwindColors["blue-500"],
|
|
40
|
+
"brand-600": import_tailwind_colors.tailwindColors["blue-600"],
|
|
41
|
+
"brand-700": import_tailwind_colors.tailwindColors["blue-700"],
|
|
42
|
+
"brand-800": import_tailwind_colors.tailwindColors["blue-800"],
|
|
43
|
+
"brand-900": import_tailwind_colors.tailwindColors["blue-900"],
|
|
44
|
+
"brand-950": import_tailwind_colors.tailwindColors["blue-950"],
|
|
45
|
+
"shadow-1": "rgba(0, 0, 0, 0.05)",
|
|
46
|
+
"shadow-2": "rgba(0, 0, 0, 0.08)",
|
|
47
|
+
"shadow-3": "rgba(0, 0, 0, 0.12)",
|
|
48
|
+
"shadow-4": "rgba(0, 0, 0, 0.16)",
|
|
49
|
+
"shadow-5": "rgba(0, 0, 0, 0.2)",
|
|
50
|
+
"shadow-6": "rgba(0, 0, 0, 0.25)",
|
|
51
|
+
"shadow-7": "rgba(0, 0, 0, 0.3)"
|
|
52
|
+
};
|
|
53
|
+
var tokens = { color: colorTokens };
|
|
54
|
+
|
|
174
55
|
//# sourceMappingURL=tokens.native.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"names":["__defProp","Object","defineProperty","__getOwnPropDesc","getOwnPropertyDescriptor","__getOwnPropNames","getOwnPropertyNames","__hasOwnProp","prototype","hasOwnProperty","__export","target","all","name","get","enumerable","__copyProps","to","from","except","desc","key","call","__toCommonJS","mod","value","tokens_exports","color","colorTokens","darkColors","lightColors","radius","size","space","tokens","zIndex","module","exports","import_legacy","require","import_web","$0","$1","$2","$3","$4","$true","$5","$6","$7","$8","$9","$10","$11","$12","$13","$14","$15","$16","$17","$18","$19","$20","spaces","entries","map","param","k","v","sizeToSpace","Math","round","floor","spacesNegative","slice","fromEntries","light","blue","gray","green","orange","pink","purple","red","yellow","dark","blueDark","grayDark","greenDark","orangeDark","pinkDark","purpleDark","redDark","yellowDark","postfixObjKeys","obj","postfix","true","createTokens"],"sources":["tokens.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar tokens_exports = {};\n__export(tokens_exports, {\n color: () => color,\n colorTokens: () => colorTokens,\n darkColors: () => darkColors,\n lightColors: () => lightColors,\n radius: () => radius,\n size: () => size,\n space: () => space,\n tokens: () => tokens,\n zIndex: () => zIndex\n});\nmodule.exports = __toCommonJS(tokens_exports);\nvar import_legacy = require(\"@tamagui/colors/legacy\");\nvar import_web = require(\"@tamagui/web\");\nvar size = {\n $0: 0,\n \"$0.25\": 2,\n \"$0.5\": 4,\n \"$0.75\": 8,\n $1: 20,\n \"$1.5\": 24,\n $2: 28,\n \"$2.5\": 32,\n $3: 36,\n \"$3.5\": 40,\n $4: 44,\n $true: 44,\n \"$4.5\": 48,\n $5: 52,\n $6: 64,\n $7: 74,\n $8: 84,\n $9: 94,\n $10: 104,\n $11: 124,\n $12: 144,\n $13: 164,\n $14: 184,\n $15: 204,\n $16: 224,\n $17: 224,\n $18: 244,\n $19: 264,\n $20: 284\n};\nvar spaces = Object.entries(size).map(function(param) {\n var [k, v] = param;\n return [\n k,\n sizeToSpace(v)\n ];\n});\nfunction sizeToSpace(v) {\n if (v === 0) return 0;\n if (v === 2) return 0.5;\n if (v === 4) return 1;\n if (v === 8) return 1.5;\n if (v <= 16) return Math.round(v * 0.333);\n return Math.floor(v * 0.7 - 12);\n}\nvar spacesNegative = spaces.slice(1).map(function(param) {\n var [k, v] = param;\n return [\n `-${k.slice(1)}`,\n -v\n ];\n});\nvar space = {\n ...Object.fromEntries(spaces),\n ...Object.fromEntries(spacesNegative)\n};\nvar zIndex = {\n 0: 0,\n 1: 100,\n 2: 200,\n 3: 300,\n 4: 400,\n 5: 500\n};\nvar colorTokens = {\n light: {\n blue: import_legacy.blue,\n gray: import_legacy.gray,\n green: import_legacy.green,\n orange: import_legacy.orange,\n pink: import_legacy.pink,\n purple: import_legacy.purple,\n red: import_legacy.red,\n yellow: import_legacy.yellow\n },\n dark: {\n blue: import_legacy.blueDark,\n gray: import_legacy.grayDark,\n green: import_legacy.greenDark,\n orange: import_legacy.orangeDark,\n pink: import_legacy.pinkDark,\n purple: import_legacy.purpleDark,\n red: import_legacy.redDark,\n yellow: import_legacy.yellowDark\n }\n};\nvar darkColors = {\n ...colorTokens.dark.blue,\n ...colorTokens.dark.gray,\n ...colorTokens.dark.green,\n ...colorTokens.dark.orange,\n ...colorTokens.dark.pink,\n ...colorTokens.dark.purple,\n ...colorTokens.dark.red,\n ...colorTokens.dark.yellow\n};\nvar lightColors = {\n ...colorTokens.light.blue,\n ...colorTokens.light.gray,\n ...colorTokens.light.green,\n ...colorTokens.light.orange,\n ...colorTokens.light.pink,\n ...colorTokens.light.purple,\n ...colorTokens.light.red,\n ...colorTokens.light.yellow\n};\nvar color = {\n ...postfixObjKeys(lightColors, \"Light\"),\n ...postfixObjKeys(darkColors, \"Dark\")\n};\nfunction postfixObjKeys(obj, postfix) {\n return Object.fromEntries(Object.entries(obj).map(function(param) {\n var [k, v] = param;\n return [\n `${k}${postfix}`,\n v\n ];\n }));\n}\nvar radius = {\n 0: 0,\n 1: 3,\n 2: 5,\n 3: 7,\n 4: 9,\n true: 9,\n 5: 10,\n 6: 16,\n 7: 19,\n 8: 22,\n 9: 26,\n 10: 34,\n 11: 42,\n 12: 50\n};\nvar tokens = (0, import_web.createTokens)({\n color,\n radius,\n zIndex,\n space,\n size\n});\n//# sourceMappingURL=tokens.js.map\n"],"mappings":"AAAA,YAAY;;AACZ,IAAIA,SAAS,GAAGC,MAAM,CAACC,cAAc;AACrC,IAAIC,gBAAgB,GAAGF,MAAM,CAACG,wBAAwB;AACtD,IAAIC,iBAAiB,GAAGJ,MAAM,CAACK,mBAAmB;AAClD,IAAIC,YAAY,GAAGN,MAAM,CAACO,SAAS,CAACC,cAAc;AAClD,IAAIC,QAAQ,GAAGA,CAACC,MAAM,EAAEC,GAAG,KAAK;EAC9B,KAAK,IAAIC,IAAI,IAAID,GAAG,EAClBZ,SAAS,CAACW,MAAM,EAAEE,IAAI,EAAE;IAAEC,GAAG,EAAEF,GAAG,CAACC,IAAI,CAAC;IAAEE,UAAU,EAAE;EAAK,CAAC,CAAC;AACjE,CAAC;AACD,IAAIC,WAAW,GAAGA,CAACC,EAAE,EAAEC,IAAI,EAAEC,MAAM,EAAEC,IAAI,KAAK;EAC5C,IAAIF,IAAI,IAAI,OAAOA,IAAI,KAAK,QAAQ,IAAI,OAAOA,IAAI,KAAK,UAAU,EAAE;IAClE,KAAK,IAAIG,GAAG,IAAIhB,iBAAiB,CAACa,IAAI,CAAC,EACrC,IAAI,CAACX,YAAY,CAACe,IAAI,CAACL,EAAE,EAAEI,GAAG,CAAC,IAAIA,GAAG,KAAKF,MAAM,EAC/CnB,SAAS,CAACiB,EAAE,EAAEI,GAAG,EAAE;MAAEP,GAAG,EAAEA,CAAA,KAAMI,IAAI,CAACG,GAAG,CAAC;MAAEN,UAAU,EAAE,EAAEK,IAAI,GAAGjB,gBAAgB,CAACe,IAAI,EAAEG,GAAG,CAAC,CAAC,IAAID,IAAI,CAACL;IAAW,CAAC,CAAC;EACxH;EACA,OAAOE,EAAE;AACX,CAAC;AACD,IAAIM,YAAY,GAAIC,GAAG,IAAKR,WAAW,CAAChB,SAAS,CAAC,CAAC,CAAC,E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E,EAAE,EAAE;EACN,EAAE,EAAE;AACN,CAAC;AACD,IAAI/D,MAAM,GAAG,CAAC,CAAC,EAAEM,UAAU,CAAC0D,YAAY,EAAE;EACxCvE,KAAK;EACLI,MAAM;EACNI,MAAM;EACNF,KAAK;EACLD;AACF,CAAC,CAAC","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"tokens.native.js","names":[],"sources":["cjs/tokens.native.js"],"sourcesContent":["\"use strict\";\nvar __defProp = Object.defineProperty;\nvar __getOwnPropDesc = Object.getOwnPropertyDescriptor;\nvar __getOwnPropNames = Object.getOwnPropertyNames;\nvar __hasOwnProp = Object.prototype.hasOwnProperty;\nvar __export = (target, all) => {\n for (var name in all)\n __defProp(target, name, { get: all[name], enumerable: true });\n};\nvar __copyProps = (to, from, except, desc) => {\n if (from && typeof from === \"object\" || typeof from === \"function\") {\n for (let key of __getOwnPropNames(from))\n if (!__hasOwnProp.call(to, key) && key !== except)\n __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });\n }\n return to;\n};\nvar __toCommonJS = (mod) => __copyProps(__defProp({}, \"__esModule\", { value: true }), mod);\nvar tokens_exports = {};\n__export(tokens_exports, {\n colorTokens: () => colorTokens,\n tailwindColors: () => import_tailwind_colors.tailwindColors,\n tokens: () => tokens\n});\nmodule.exports = __toCommonJS(tokens_exports);\nvar import_tailwind_colors = require(\"./tailwind-colors\");\nvar colorTokens = {\n ...import_tailwind_colors.tailwindColors,\n \"brand-50\": import_tailwind_colors.tailwindColors[\"blue-50\"],\n \"brand-100\": import_tailwind_colors.tailwindColors[\"blue-100\"],\n \"brand-200\": import_tailwind_colors.tailwindColors[\"blue-200\"],\n \"brand-300\": import_tailwind_colors.tailwindColors[\"blue-300\"],\n \"brand-400\": import_tailwind_colors.tailwindColors[\"blue-400\"],\n \"brand-500\": import_tailwind_colors.tailwindColors[\"blue-500\"],\n \"brand-600\": import_tailwind_colors.tailwindColors[\"blue-600\"],\n \"brand-700\": import_tailwind_colors.tailwindColors[\"blue-700\"],\n \"brand-800\": import_tailwind_colors.tailwindColors[\"blue-800\"],\n \"brand-900\": import_tailwind_colors.tailwindColors[\"blue-900\"],\n \"brand-950\": import_tailwind_colors.tailwindColors[\"blue-950\"],\n \"shadow-1\": \"rgba(0, 0, 0, 0.05)\",\n \"shadow-2\": \"rgba(0, 0, 0, 0.08)\",\n \"shadow-3\": \"rgba(0, 0, 0, 0.12)\",\n \"shadow-4\": \"rgba(0, 0, 0, 0.16)\",\n \"shadow-5\": \"rgba(0, 0, 0, 0.2)\",\n \"shadow-6\": \"rgba(0, 0, 0, 0.25)\",\n \"shadow-7\": \"rgba(0, 0, 0, 0.3)\"\n};\nvar tokens = {\n color: colorTokens\n};\n//# sourceMappingURL=tokens.js.map\n"],"mappings":";;;;AACA,IAAI,YAAY,OAAO;AACvB,IAAI,mBAAmB,OAAO;AAC9B,IAAI,oBAAoB,OAAO;AAC/B,IAAI,eAAe,OAAO,UAAU;AACpC,IAAI,YAAY,QAAQ,QAAQ;CAC9B,KAAK,IAAI,QAAQ,KACf,UAAU,QAAQ,MAAM;EAAE,KAAK,IAAI;EAAO,YAAY;CAAK,CAAC;AAChE;AACA,IAAI,eAAe,IAAI,MAAM,QAAQ,SAAS;CAC5C,IAAI,QAAQ,OAAO,SAAS,YAAY,OAAO,SAAS,YAAY;EAClE,KAAK,IAAI,OAAO,kBAAkB,IAAI,GACpC,IAAI,CAAC,aAAa,KAAK,IAAI,GAAG,KAAK,QAAQ,QACzC,UAAU,IAAI,KAAK;GAAE,WAAW,KAAK;GAAM,YAAY,EAAE,OAAO,iBAAiB,MAAM,GAAG,MAAM,KAAK;EAAW,CAAC;CACvH;CACA,OAAO;AACT;AACA,IAAI,gBAAgB,QAAQ,YAAY,UAAU,CAAC,GAAG,cAAc,EAAE,OAAO,KAAK,CAAC,GAAG,GAAG;AACzF,IAAI,iBAAiB,CAAC;AACtB,SAAS,gBAAgB;CACvB,mBAAmB;CACnB,sBAAsB,uBAAuB;CAC7C,cAAc;AAChB,CAAC;AACD,OAAO,UAAU,aAAa,cAAc;AAC5C,IAAI,yBAAyB,QAAQ,6BAAmB;AACxD,IAAI,cAAc;CAChB,GAAG,uBAAuB;CAC1B,YAAY,uBAAuB,eAAe;CAClD,aAAa,uBAAuB,eAAe;CACnD,aAAa,uBAAuB,eAAe;CACnD,aAAa,uBAAuB,eAAe;CACnD,aAAa,uBAAuB,eAAe;CACnD,aAAa,uBAAuB,eAAe;CACnD,aAAa,uBAAuB,eAAe;CACnD,aAAa,uBAAuB,eAAe;CACnD,aAAa,uBAAuB,eAAe;CACnD,aAAa,uBAAuB,eAAe;CACnD,aAAa,uBAAuB,eAAe;CACnD,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;CACZ,YAAY;AACd;AACA,IAAI,SAAS,EACX,OAAO,YACT"}
|
package/dist/cjs/utils.cjs
CHANGED
|
@@ -1,47 +1,32 @@
|
|
|
1
|
+
|
|
1
2
|
var __defProp = Object.defineProperty;
|
|
2
3
|
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
4
|
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
5
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
6
|
var __export = (target, all) => {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
for (var name in all) __defProp(target, name, {
|
|
8
|
+
get: all[name],
|
|
9
|
+
enumerable: true
|
|
10
|
+
});
|
|
10
11
|
};
|
|
11
12
|
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
15
|
+
get: () => from[key],
|
|
16
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
17
|
+
});
|
|
18
|
+
}
|
|
19
|
+
return to;
|
|
19
20
|
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
21
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
23
22
|
var utils_exports = {};
|
|
24
|
-
__export(utils_exports, {
|
|
25
|
-
objectFromEntries: () => objectFromEntries,
|
|
26
|
-
objectKeys: () => objectKeys,
|
|
27
|
-
postfixObjKeys: () => postfixObjKeys,
|
|
28
|
-
sizeToSpace: () => sizeToSpace
|
|
29
|
-
});
|
|
23
|
+
__export(utils_exports, { sizeToSpace: () => sizeToSpace });
|
|
30
24
|
module.exports = __toCommonJS(utils_exports);
|
|
31
|
-
function postfixObjKeys(obj, postfix) {
|
|
32
|
-
return Object.fromEntries(Object.entries(obj).map(([k, v]) => [`${k}${postfix}`, v]));
|
|
33
|
-
}
|
|
34
25
|
function sizeToSpace(v) {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}
|
|
42
|
-
function objectFromEntries(arr) {
|
|
43
|
-
return Object.fromEntries(arr);
|
|
26
|
+
if (v === 0) return 0;
|
|
27
|
+
if (v === 2) return .5;
|
|
28
|
+
if (v === 4) return 1;
|
|
29
|
+
if (v === 8) return 1.5;
|
|
30
|
+
if (v <= 16) return Math.round(v * .333);
|
|
31
|
+
return Math.floor(v * .7 - 12);
|
|
44
32
|
}
|
|
45
|
-
function objectKeys(obj) {
|
|
46
|
-
return Object.keys(obj);
|
|
47
|
-
}
|