@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
package/dist/cjs/templates.cjs
DELETED
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var templates_exports = {};
|
|
24
|
-
__export(templates_exports, {
|
|
25
|
-
maskOptions: () => maskOptions,
|
|
26
|
-
templates: () => templates
|
|
27
|
-
});
|
|
28
|
-
module.exports = __toCommonJS(templates_exports);
|
|
29
|
-
var import_palettes = require("./palettes.cjs");
|
|
30
|
-
const templateColorsSpecific = {
|
|
31
|
-
color1: 1,
|
|
32
|
-
color2: 2,
|
|
33
|
-
color3: 3,
|
|
34
|
-
color4: 4,
|
|
35
|
-
color5: 5,
|
|
36
|
-
color6: 6,
|
|
37
|
-
color7: 7,
|
|
38
|
-
color8: 8,
|
|
39
|
-
color9: 9,
|
|
40
|
-
color10: 10,
|
|
41
|
-
color11: 11,
|
|
42
|
-
color12: 12
|
|
43
|
-
};
|
|
44
|
-
const template = {
|
|
45
|
-
...templateColorsSpecific,
|
|
46
|
-
// the background, color, etc keys here work like generics - they make it so you
|
|
47
|
-
// can publish components for others to use without mandating a specific color scale
|
|
48
|
-
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
49
|
-
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
50
|
-
background: 2,
|
|
51
|
-
backgroundHover: 3,
|
|
52
|
-
backgroundPress: 4,
|
|
53
|
-
backgroundFocus: 5,
|
|
54
|
-
backgroundStrong: 1,
|
|
55
|
-
backgroundTransparent: 0,
|
|
56
|
-
color: -1,
|
|
57
|
-
colorHover: -2,
|
|
58
|
-
colorPress: -1,
|
|
59
|
-
colorFocus: -2,
|
|
60
|
-
colorTransparent: -0,
|
|
61
|
-
borderColor: 5,
|
|
62
|
-
borderColorHover: 6,
|
|
63
|
-
borderColorFocus: 4,
|
|
64
|
-
borderColorPress: 5,
|
|
65
|
-
placeholderColor: -4
|
|
66
|
-
};
|
|
67
|
-
const templates = {
|
|
68
|
-
base: template,
|
|
69
|
-
colorLight: {
|
|
70
|
-
...template,
|
|
71
|
-
// light color themes are a bit less sensitive
|
|
72
|
-
borderColor: 4,
|
|
73
|
-
borderColorHover: 5,
|
|
74
|
-
borderColorFocus: 4,
|
|
75
|
-
borderColorPress: 4
|
|
76
|
-
}
|
|
77
|
-
};
|
|
78
|
-
const shadows = {
|
|
79
|
-
shadowColor: 0,
|
|
80
|
-
shadowColorHover: 0,
|
|
81
|
-
shadowColorPress: 0,
|
|
82
|
-
shadowColorFocus: 0
|
|
83
|
-
};
|
|
84
|
-
const colors = {
|
|
85
|
-
...shadows,
|
|
86
|
-
color: 0,
|
|
87
|
-
colorHover: 0,
|
|
88
|
-
colorFocus: 0,
|
|
89
|
-
colorPress: 0
|
|
90
|
-
};
|
|
91
|
-
const baseMaskOptions = {
|
|
92
|
-
override: shadows,
|
|
93
|
-
skip: shadows,
|
|
94
|
-
// avoids the transparent ends
|
|
95
|
-
max: import_palettes.palettes.light.length - 2,
|
|
96
|
-
min: 1
|
|
97
|
-
};
|
|
98
|
-
const skipShadowsAndSpecificColors = {
|
|
99
|
-
...shadows,
|
|
100
|
-
...templateColorsSpecific
|
|
101
|
-
};
|
|
102
|
-
const maskOptions = {
|
|
103
|
-
component: {
|
|
104
|
-
...baseMaskOptions,
|
|
105
|
-
override: colors,
|
|
106
|
-
skip: skipShadowsAndSpecificColors
|
|
107
|
-
},
|
|
108
|
-
alt: {
|
|
109
|
-
...baseMaskOptions
|
|
110
|
-
},
|
|
111
|
-
button: {
|
|
112
|
-
...baseMaskOptions,
|
|
113
|
-
override: {
|
|
114
|
-
...colors,
|
|
115
|
-
borderColor: "transparent",
|
|
116
|
-
borderColorHover: "transparent"
|
|
117
|
-
},
|
|
118
|
-
skip: skipShadowsAndSpecificColors
|
|
119
|
-
}
|
|
120
|
-
};
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
25
|
-
var templates_exports = {};
|
|
26
|
-
__export(templates_exports, {
|
|
27
|
-
maskOptions: () => maskOptions,
|
|
28
|
-
templates: () => templates
|
|
29
|
-
});
|
|
30
|
-
module.exports = __toCommonJS(templates_exports);
|
|
31
|
-
var import_palettes = require("./palettes.native.js");
|
|
32
|
-
var templateColorsSpecific = {
|
|
33
|
-
color1: 1,
|
|
34
|
-
color2: 2,
|
|
35
|
-
color3: 3,
|
|
36
|
-
color4: 4,
|
|
37
|
-
color5: 5,
|
|
38
|
-
color6: 6,
|
|
39
|
-
color7: 7,
|
|
40
|
-
color8: 8,
|
|
41
|
-
color9: 9,
|
|
42
|
-
color10: 10,
|
|
43
|
-
color11: 11,
|
|
44
|
-
color12: 12
|
|
45
|
-
};
|
|
46
|
-
var template = {
|
|
47
|
-
...templateColorsSpecific,
|
|
48
|
-
// the background, color, etc keys here work like generics - they make it so you
|
|
49
|
-
// can publish components for others to use without mandating a specific color scale
|
|
50
|
-
// the @tamagui/button Button component looks for `$background`, so you set the
|
|
51
|
-
// dark_red_Button theme to have a stronger background than the dark_red theme.
|
|
52
|
-
background: 2,
|
|
53
|
-
backgroundHover: 3,
|
|
54
|
-
backgroundPress: 4,
|
|
55
|
-
backgroundFocus: 5,
|
|
56
|
-
backgroundStrong: 1,
|
|
57
|
-
backgroundTransparent: 0,
|
|
58
|
-
color: -1,
|
|
59
|
-
colorHover: -2,
|
|
60
|
-
colorPress: -1,
|
|
61
|
-
colorFocus: -2,
|
|
62
|
-
colorTransparent: -0,
|
|
63
|
-
borderColor: 5,
|
|
64
|
-
borderColorHover: 6,
|
|
65
|
-
borderColorFocus: 4,
|
|
66
|
-
borderColorPress: 5,
|
|
67
|
-
placeholderColor: -4
|
|
68
|
-
};
|
|
69
|
-
var templates = {
|
|
70
|
-
base: template,
|
|
71
|
-
colorLight: {
|
|
72
|
-
...template,
|
|
73
|
-
// light color themes are a bit less sensitive
|
|
74
|
-
borderColor: 4,
|
|
75
|
-
borderColorHover: 5,
|
|
76
|
-
borderColorFocus: 4,
|
|
77
|
-
borderColorPress: 4
|
|
78
|
-
}
|
|
79
|
-
};
|
|
80
|
-
var shadows = {
|
|
81
|
-
shadowColor: 0,
|
|
82
|
-
shadowColorHover: 0,
|
|
83
|
-
shadowColorPress: 0,
|
|
84
|
-
shadowColorFocus: 0
|
|
85
|
-
};
|
|
86
|
-
var colors = {
|
|
87
|
-
...shadows,
|
|
88
|
-
color: 0,
|
|
89
|
-
colorHover: 0,
|
|
90
|
-
colorFocus: 0,
|
|
91
|
-
colorPress: 0
|
|
92
|
-
};
|
|
93
|
-
var baseMaskOptions = {
|
|
94
|
-
override: shadows,
|
|
95
|
-
skip: shadows,
|
|
96
|
-
// avoids the transparent ends
|
|
97
|
-
max: import_palettes.palettes.light.length - 2,
|
|
98
|
-
min: 1
|
|
99
|
-
};
|
|
100
|
-
var skipShadowsAndSpecificColors = {
|
|
101
|
-
...shadows,
|
|
102
|
-
...templateColorsSpecific
|
|
103
|
-
};
|
|
104
|
-
var maskOptions = {
|
|
105
|
-
component: {
|
|
106
|
-
...baseMaskOptions,
|
|
107
|
-
override: colors,
|
|
108
|
-
skip: skipShadowsAndSpecificColors
|
|
109
|
-
},
|
|
110
|
-
alt: {
|
|
111
|
-
...baseMaskOptions
|
|
112
|
-
},
|
|
113
|
-
button: {
|
|
114
|
-
...baseMaskOptions,
|
|
115
|
-
override: {
|
|
116
|
-
...colors,
|
|
117
|
-
borderColor: "transparent",
|
|
118
|
-
borderColorHover: "transparent"
|
|
119
|
-
},
|
|
120
|
-
skip: skipShadowsAndSpecificColors
|
|
121
|
-
}
|
|
122
|
-
};
|
|
123
|
-
//# sourceMappingURL=templates.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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","templates_exports","maskOptions","templates","module","exports","import_palettes","require","templateColorsSpecific","color1","color2","color3","color4","color5","color6","color7","color8","color9","color10","color11","color12","template","background","backgroundHover","backgroundPress","backgroundFocus","backgroundStrong","backgroundTransparent","color","colorHover","colorPress","colorFocus","colorTransparent","borderColor","borderColorHover","borderColorFocus","borderColorPress","placeholderColor","base","colorLight","shadows","shadowColor","shadowColorHover","shadowColorPress","shadowColorFocus","colors","baseMaskOptions","override","skip","max","palettes","light","length","min","skipShadowsAndSpecificColors","component","alt","button"],"sources":["templates.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 templates_exports = {};\n__export(templates_exports, {\n maskOptions: () => maskOptions,\n templates: () => templates\n});\nmodule.exports = __toCommonJS(templates_exports);\nvar import_palettes = require(\"./palettes\");\nvar templateColorsSpecific = {\n color1: 1,\n color2: 2,\n color3: 3,\n color4: 4,\n color5: 5,\n color6: 6,\n color7: 7,\n color8: 8,\n color9: 9,\n color10: 10,\n color11: 11,\n color12: 12\n};\nvar template = {\n ...templateColorsSpecific,\n // the background, color, etc keys here work like generics - they make it so you\n // can publish components for others to use without mandating a specific color scale\n // the @tamagui/button Button component looks for `$background`, so you set the\n // dark_red_Button theme to have a stronger background than the dark_red theme.\n background: 2,\n backgroundHover: 3,\n backgroundPress: 4,\n backgroundFocus: 5,\n backgroundStrong: 1,\n backgroundTransparent: 0,\n color: -1,\n colorHover: -2,\n colorPress: -1,\n colorFocus: -2,\n colorTransparent: -0,\n borderColor: 5,\n borderColorHover: 6,\n borderColorFocus: 4,\n borderColorPress: 5,\n placeholderColor: -4\n};\nvar templates = {\n base: template,\n colorLight: {\n ...template,\n // light color themes are a bit less sensitive\n borderColor: 4,\n borderColorHover: 5,\n borderColorFocus: 4,\n borderColorPress: 4\n }\n};\nvar shadows = {\n shadowColor: 0,\n shadowColorHover: 0,\n shadowColorPress: 0,\n shadowColorFocus: 0\n};\nvar colors = {\n ...shadows,\n color: 0,\n colorHover: 0,\n colorFocus: 0,\n colorPress: 0\n};\nvar baseMaskOptions = {\n override: shadows,\n skip: shadows,\n // avoids the transparent ends\n max: import_palettes.palettes.light.length - 2,\n min: 1\n};\nvar skipShadowsAndSpecificColors = {\n ...shadows,\n ...templateColorsSpecific\n};\nvar maskOptions = {\n component: {\n ...baseMaskOptions,\n override: colors,\n skip: skipShadowsAndSpecificColors\n },\n alt: {\n ...baseMaskOptions\n },\n button: {\n ...baseMaskOptions,\n override: {\n ...colors,\n borderColor: \"transparent\",\n borderColorHover: \"transparent\"\n },\n skip: skipShadowsAndSpecificColors\n }\n};\n//#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AE,CAAC;IACdC,gBAAgB,EAAE,CAAC;IACnBC,gBAAgB,EAAE,CAAC;IACnBC,gBAAgB,EAAE;EACpB;AACF,CAAC;AACD,IAAII,OAAO,GAAG;EACZC,WAAW,EAAE,CAAC;EACdC,gBAAgB,EAAE,CAAC;EACnBC,gBAAgB,EAAE,CAAC;EACnBC,gBAAgB,EAAE;AACpB,CAAC;AACD,IAAIC,MAAM,GAAG;EACX,GAAGL,OAAO;EACVZ,KAAK,EAAE,CAAC;EACRC,UAAU,EAAE,CAAC;EACbE,UAAU,EAAE,CAAC;EACbD,UAAU,EAAE;AACd,CAAC;AACD,IAAIgB,eAAe,GAAG;EACpBC,QAAQ,EAAEP,OAAO;EACjBQ,IAAI,EAAER,OAAO;EACb;EACAS,GAAG,EAAE3C,eAAe,CAAC4C,QAAQ,CAACC,KAAK,CAACC,MAAM,GAAG,CAAC;EAC9CC,GAAG,EAAE;AACP,CAAC;AACD,IAAIC,4BAA4B,GAAG;EACjC,GAAGd,OAAO;EACV,GAAGhC;AACL,CAAC;AACD,IAAIN,WAAW,GAAG;EAChBqD,SAAS,EAAE;IACT,GAAGT,eAAe;IAClBC,QAAQ,EAAEF,MAAM;IAChBG,IAAI,EAAEM;EACR,CAAC;EACDE,GAAG,EAAE;IACH,GAAGV;EACL,CAAC;EACDW,MAAM,EAAE;IACN,GAAGX,eAAe;IAClBC,QAAQ,EAAE;MACR,GAAGF,MAAM;MACTZ,WAAW,EAAE,aAAa;MAC1BC,gBAAgB,EAAE;IACpB,CAAC;IACDc,IAAI,EAAEM;EACR;AACF,CAAC","ignoreList":[]}
|
package/dist/cjs/themes-new.cjs
DELETED
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
var __defProp = Object.defineProperty;
|
|
2
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
3
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
4
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
5
|
-
var __export = (target, all) => {
|
|
6
|
-
for (var name in all) __defProp(target, name, {
|
|
7
|
-
get: all[name],
|
|
8
|
-
enumerable: true
|
|
9
|
-
});
|
|
10
|
-
};
|
|
11
|
-
var __copyProps = (to, from, except, desc) => {
|
|
12
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
13
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
14
|
-
get: () => from[key],
|
|
15
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
21
|
-
value: true
|
|
22
|
-
}), mod);
|
|
23
|
-
var themes_new_exports = {};
|
|
24
|
-
__export(themes_new_exports, {
|
|
25
|
-
themes: () => themes
|
|
26
|
-
});
|
|
27
|
-
module.exports = __toCommonJS(themes_new_exports);
|
|
28
|
-
var import_theme_builder = require("@tamagui/theme-builder");
|
|
29
|
-
var import_componentThemeDefinitions = require("./componentThemeDefinitions.cjs");
|
|
30
|
-
var import_theme_builder2 = require("@tamagui/theme-builder");
|
|
31
|
-
var import_palettes = require("./palettes.cjs");
|
|
32
|
-
var import_shadows = require("./shadows.cjs");
|
|
33
|
-
var import_templates = require("./templates.cjs");
|
|
34
|
-
var import_tokens = require("./tokens.cjs");
|
|
35
|
-
const colorThemeDefinition = colorName => [{
|
|
36
|
-
parent: "light",
|
|
37
|
-
palette: colorName,
|
|
38
|
-
template: "colorLight"
|
|
39
|
-
}, {
|
|
40
|
-
parent: "dark",
|
|
41
|
-
palette: colorName,
|
|
42
|
-
template: "base"
|
|
43
|
-
}];
|
|
44
|
-
const themesBuilder = (0, import_theme_builder.createThemeBuilder)().addPalettes(import_palettes.palettes).addTemplates(import_templates.templates).addMasks(import_theme_builder2.masks).addThemes({
|
|
45
|
-
light: {
|
|
46
|
-
template: "base",
|
|
47
|
-
palette: "light",
|
|
48
|
-
nonInheritedValues: {
|
|
49
|
-
...import_tokens.lightColors,
|
|
50
|
-
...import_shadows.shadows.light
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
dark: {
|
|
54
|
-
template: "base",
|
|
55
|
-
palette: "dark",
|
|
56
|
-
nonInheritedValues: {
|
|
57
|
-
...import_tokens.darkColors,
|
|
58
|
-
...import_shadows.shadows.dark
|
|
59
|
-
}
|
|
60
|
-
}
|
|
61
|
-
}).addChildThemes({
|
|
62
|
-
orange: colorThemeDefinition("orange"),
|
|
63
|
-
yellow: colorThemeDefinition("yellow"),
|
|
64
|
-
green: colorThemeDefinition("green"),
|
|
65
|
-
blue: colorThemeDefinition("blue"),
|
|
66
|
-
purple: colorThemeDefinition("purple"),
|
|
67
|
-
pink: colorThemeDefinition("pink"),
|
|
68
|
-
red: colorThemeDefinition("red")
|
|
69
|
-
}).addChildThemes({
|
|
70
|
-
alt1: {
|
|
71
|
-
mask: "soften",
|
|
72
|
-
...import_templates.maskOptions.alt
|
|
73
|
-
},
|
|
74
|
-
alt2: {
|
|
75
|
-
mask: "soften2",
|
|
76
|
-
...import_templates.maskOptions.alt
|
|
77
|
-
},
|
|
78
|
-
active: {
|
|
79
|
-
mask: "soften3",
|
|
80
|
-
skip: {
|
|
81
|
-
color: 1
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}).addChildThemes(import_componentThemeDefinitions.componentThemeDefinitions, {
|
|
85
|
-
// to save bundle size but make alt themes not work on components
|
|
86
|
-
// avoidNestingWithin: ['alt1', 'alt2'],
|
|
87
|
-
});
|
|
88
|
-
const themes = themesBuilder.build();
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
|
-
var __export = (target, all) => {
|
|
8
|
-
for (var name in all) __defProp(target, name, {
|
|
9
|
-
get: all[name],
|
|
10
|
-
enumerable: true
|
|
11
|
-
});
|
|
12
|
-
};
|
|
13
|
-
var __copyProps = (to, from, except, desc) => {
|
|
14
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
15
|
-
for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
16
|
-
get: () => from[key],
|
|
17
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
return to;
|
|
21
|
-
};
|
|
22
|
-
var __toCommonJS = mod => __copyProps(__defProp({}, "__esModule", {
|
|
23
|
-
value: true
|
|
24
|
-
}), mod);
|
|
25
|
-
var themes_new_exports = {};
|
|
26
|
-
__export(themes_new_exports, {
|
|
27
|
-
themes: () => themes
|
|
28
|
-
});
|
|
29
|
-
module.exports = __toCommonJS(themes_new_exports);
|
|
30
|
-
var import_theme_builder = require("@tamagui/theme-builder");
|
|
31
|
-
var import_componentThemeDefinitions = require("./componentThemeDefinitions.native.js");
|
|
32
|
-
var import_theme_builder2 = require("@tamagui/theme-builder");
|
|
33
|
-
var import_palettes = require("./palettes.native.js");
|
|
34
|
-
var import_shadows = require("./shadows.native.js");
|
|
35
|
-
var import_templates = require("./templates.native.js");
|
|
36
|
-
var import_tokens = require("./tokens.native.js");
|
|
37
|
-
var colorThemeDefinition = function (colorName) {
|
|
38
|
-
return [{
|
|
39
|
-
parent: "light",
|
|
40
|
-
palette: colorName,
|
|
41
|
-
template: "colorLight"
|
|
42
|
-
}, {
|
|
43
|
-
parent: "dark",
|
|
44
|
-
palette: colorName,
|
|
45
|
-
template: "base"
|
|
46
|
-
}];
|
|
47
|
-
};
|
|
48
|
-
var themesBuilder = (0, import_theme_builder.createThemeBuilder)().addPalettes(import_palettes.palettes).addTemplates(import_templates.templates).addMasks(import_theme_builder2.masks).addThemes({
|
|
49
|
-
light: {
|
|
50
|
-
template: "base",
|
|
51
|
-
palette: "light",
|
|
52
|
-
nonInheritedValues: {
|
|
53
|
-
...import_tokens.lightColors,
|
|
54
|
-
...import_shadows.shadows.light
|
|
55
|
-
}
|
|
56
|
-
},
|
|
57
|
-
dark: {
|
|
58
|
-
template: "base",
|
|
59
|
-
palette: "dark",
|
|
60
|
-
nonInheritedValues: {
|
|
61
|
-
...import_tokens.darkColors,
|
|
62
|
-
...import_shadows.shadows.dark
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}).addChildThemes({
|
|
66
|
-
orange: colorThemeDefinition("orange"),
|
|
67
|
-
yellow: colorThemeDefinition("yellow"),
|
|
68
|
-
green: colorThemeDefinition("green"),
|
|
69
|
-
blue: colorThemeDefinition("blue"),
|
|
70
|
-
purple: colorThemeDefinition("purple"),
|
|
71
|
-
pink: colorThemeDefinition("pink"),
|
|
72
|
-
red: colorThemeDefinition("red")
|
|
73
|
-
}).addChildThemes({
|
|
74
|
-
alt1: {
|
|
75
|
-
mask: "soften",
|
|
76
|
-
...import_templates.maskOptions.alt
|
|
77
|
-
},
|
|
78
|
-
alt2: {
|
|
79
|
-
mask: "soften2",
|
|
80
|
-
...import_templates.maskOptions.alt
|
|
81
|
-
},
|
|
82
|
-
active: {
|
|
83
|
-
mask: "soften3",
|
|
84
|
-
skip: {
|
|
85
|
-
color: 1
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
}).addChildThemes(import_componentThemeDefinitions.componentThemeDefinitions, {});
|
|
89
|
-
var themes = themesBuilder.build();
|
|
90
|
-
//# sourceMappingURL=themes-new.native.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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","themes_new_exports","themes","module","exports","import_theme_builder","require","import_componentThemeDefinitions","import_theme_builder2","import_palettes","import_shadows","import_templates","import_tokens","colorThemeDefinition","colorName","parent","palette","template","themesBuilder","createThemeBuilder","addPalettes","palettes","addTemplates","templates","addMasks","masks","addThemes","light","nonInheritedValues","lightColors","shadows","dark","darkColors","addChildThemes","orange","yellow","green","blue","purple","pink","red","alt1","mask","maskOptions","alt","alt2","active","skip","color","componentThemeDefinitions","build"],"sources":["themes-new.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_new_exports = {};\n__export(themes_new_exports, {\n themes: () => themes\n});\nmodule.exports = __toCommonJS(themes_new_exports);\nvar import_theme_builder = require(\"@tamagui/theme-builder\");\nvar import_componentThemeDefinitions = require(\"./componentThemeDefinitions\");\nvar import_theme_builder2 = require(\"@tamagui/theme-builder\");\nvar import_palettes = require(\"./palettes\");\nvar import_shadows = require(\"./shadows\");\nvar import_templates = require(\"./templates\");\nvar import_tokens = require(\"./tokens\");\nvar colorThemeDefinition = function(colorName) {\n return [\n {\n parent: \"light\",\n palette: colorName,\n template: \"colorLight\"\n },\n {\n parent: \"dark\",\n palette: colorName,\n template: \"base\"\n }\n ];\n};\nvar themesBuilder = (0, import_theme_builder.createThemeBuilder)().addPalettes(import_palettes.palettes).addTemplates(import_templates.templates).addMasks(import_theme_builder2.masks).addThemes({\n light: {\n template: \"base\",\n palette: \"light\",\n nonInheritedValues: {\n ...import_tokens.lightColors,\n ...import_shadows.shadows.light\n }\n },\n dark: {\n template: \"base\",\n palette: \"dark\",\n nonInheritedValues: {\n ...import_tokens.darkColors,\n ...import_shadows.shadows.dark\n }\n }\n}).addChildThemes({\n orange: colorThemeDefinition(\"orange\"),\n yellow: colorThemeDefinition(\"yellow\"),\n green: colorThemeDefinition(\"green\"),\n blue: colorThemeDefinition(\"blue\"),\n purple: colorThemeDefinition(\"purple\"),\n pink: colorThemeDefinition(\"pink\"),\n red: colorThemeDefinition(\"red\")\n}).addChildThemes({\n alt1: {\n mask: \"soften\",\n ...import_templates.maskOptions.alt\n },\n alt2: {\n mask: \"soften2\",\n ...import_templates.maskOptions.alt\n },\n active: {\n mask: \"soften3\",\n skip: {\n color: 1\n }\n }\n}).addChildThemes(import_componentThemeDefinitions.componentThemeDefinitions, {});\nvar themes = themesBuilder.build();\n//# sourceMappingURL=themes-new.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,I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