@clickhouse/click-ui 0.1.0-rc.71 → 0.1.0-rc.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -122
- package/dist/cjs/components/Assets/Flags/system/Flag.cjs +4 -2
- package/dist/cjs/components/Assets/Flags/system/Flag.cjs.map +1 -1
- package/dist/cjs/components/Assets/Flags/system/FlagsDark.cjs +2 -2
- package/dist/cjs/components/Assets/Flags/system/FlagsDark.cjs.map +1 -1
- package/dist/cjs/components/Assets/Logos/system/Logo.cjs +3 -7
- package/dist/cjs/components/Assets/Logos/system/Logo.cjs.map +1 -1
- package/dist/cjs/components/Assets/Payments/{MasterCard.cjs → Mastercard.cjs} +3 -3
- package/dist/cjs/components/Assets/Payments/{MasterCard.cjs.map → Mastercard.cjs.map} +1 -1
- package/dist/cjs/components/Assets/Payments/system/Payment.cjs +6 -2
- package/dist/cjs/components/Assets/Payments/system/Payment.cjs.map +1 -1
- package/dist/cjs/components/Assets/Payments/system/PaymentsDark.cjs +2 -2
- package/dist/cjs/components/Assets/Payments/system/PaymentsDark.cjs.map +1 -1
- package/dist/cjs/components/Assets/Payments/system/PaymentsLight.cjs +2 -2
- package/dist/cjs/components/Assets/Payments/system/PaymentsLight.cjs.map +1 -1
- package/dist/cjs/components/Assets/config.cjs +240 -0
- package/dist/cjs/components/Assets/config.cjs.map +1 -0
- package/dist/cjs/components/DatePicker/Common.cjs +43 -0
- package/dist/cjs/components/DatePicker/Common.cjs.map +1 -1
- package/dist/cjs/components/DatePicker/DateTimeRangePicker.cjs +480 -0
- package/dist/cjs/components/DatePicker/DateTimeRangePicker.cjs.map +1 -0
- package/dist/cjs/components/DatePicker/utils.cjs +15 -0
- package/dist/cjs/components/DatePicker/utils.cjs.map +1 -1
- package/dist/cjs/components/Table/index.cjs +13 -13
- package/dist/cjs/components/Table/index.cjs.map +1 -1
- package/dist/cjs/hooks/useCUITheme.cjs +18 -0
- package/dist/cjs/hooks/useCUITheme.cjs.map +1 -0
- package/dist/cjs/index.cjs +4 -0
- package/dist/cjs/index.cjs.map +1 -1
- package/dist/esm/components/Assets/Flags/system/Flag.js +5 -4
- package/dist/esm/components/Assets/Flags/system/Flag.js.map +1 -1
- package/dist/esm/components/Assets/Flags/system/FlagsDark.js +2 -2
- package/dist/esm/components/Assets/Flags/system/FlagsDark.js.map +1 -1
- package/dist/esm/components/Assets/Logos/system/Logo.js +3 -8
- package/dist/esm/components/Assets/Logos/system/Logo.js.map +1 -1
- package/dist/esm/components/Assets/Payments/{MasterCard.js → Mastercard.js} +3 -3
- package/dist/esm/components/Assets/Payments/{MasterCard.js.map → Mastercard.js.map} +1 -1
- package/dist/esm/components/Assets/Payments/system/Payment.js +6 -3
- package/dist/esm/components/Assets/Payments/system/Payment.js.map +1 -1
- package/dist/esm/components/Assets/Payments/system/PaymentsDark.js +2 -2
- package/dist/esm/components/Assets/Payments/system/PaymentsDark.js.map +1 -1
- package/dist/esm/components/Assets/Payments/system/PaymentsLight.js +2 -2
- package/dist/esm/components/Assets/Payments/system/PaymentsLight.js.map +1 -1
- package/dist/esm/components/Assets/config.js +234 -0
- package/dist/esm/components/Assets/config.js.map +1 -0
- package/dist/esm/components/DatePicker/Common.js +44 -2
- package/dist/esm/components/DatePicker/Common.js.map +1 -1
- package/dist/esm/components/DatePicker/DateTimeRangePicker.js +471 -0
- package/dist/esm/components/DatePicker/DateTimeRangePicker.js.map +1 -0
- package/dist/esm/components/DatePicker/utils.js +14 -1
- package/dist/esm/components/DatePicker/utils.js.map +1 -1
- package/dist/esm/components/Table/index.js +13 -13
- package/dist/esm/components/Table/index.js.map +1 -1
- package/dist/esm/hooks/useCUITheme.js +14 -0
- package/dist/esm/hooks/useCUITheme.js.map +1 -0
- package/dist/esm/index.js +2 -0
- package/dist/esm/index.js.map +1 -1
- package/dist/types/components/Assets/Flags/system/Flag.d.ts +8 -2
- package/dist/types/components/Assets/Flags/system/FlagsDark.d.ts +2 -2
- package/dist/types/components/Assets/Icons/system/Icon.d.ts +8 -2
- package/dist/types/components/Assets/Logos/system/Logo.d.ts +8 -2
- package/dist/types/components/Assets/Payments/Mastercard.d.ts +3 -0
- package/dist/types/components/Assets/Payments/system/Payment.d.ts +8 -2
- package/dist/types/components/Assets/config.d.ts +9 -0
- package/dist/types/components/DatePicker/Common.d.ts +2 -2
- package/dist/types/components/DatePicker/{DateTimePicker.d.ts → DateTimeRangePicker.d.ts} +2 -2
- package/dist/types/components/DatePicker/index.d.ts +4 -0
- package/dist/types/components/Table/Table.d.ts +2 -2
- package/dist/types/components/Table/index.d.ts +1 -1
- package/dist/types/hooks/index.d.ts +2 -0
- package/dist/types/hooks/useCUITheme.d.ts +3 -0
- package/dist/types/index.d.ts +16 -2
- package/package.json +1 -2
- package/dist/cjs/components/Assets/Flags/system/retroactiveNames.cjs +0 -60
- package/dist/cjs/components/Assets/Flags/system/retroactiveNames.cjs.map +0 -1
- package/dist/esm/components/Assets/Flags/system/retroactiveNames.js +0 -55
- package/dist/esm/components/Assets/Flags/system/retroactiveNames.js.map +0 -1
- package/dist/types/components/Assets/Flags/system/retroactiveNames.d.ts +0 -5
- package/dist/types/components/Assets/Icons/system/retroactiveNames.d.ts +0 -3
- package/dist/types/components/Assets/Payments/MasterCard.d.ts +0 -3
package/README.md
CHANGED
|
@@ -46,13 +46,6 @@ You can find the official docs for the Click UI design system and component libr
|
|
|
46
46
|
- [Checking the changeset status](#checking-the-changeset-status)
|
|
47
47
|
- [Create a new version and changelogs](#create-a-new-version-and-changelogs)
|
|
48
48
|
* [Release](#release)
|
|
49
|
-
- [Required admin permissions](#required-admin-permissions)
|
|
50
|
-
- [Create a new release pull request](#create-a-new-release-pull-request)
|
|
51
|
-
- [Publish](#publish)
|
|
52
|
-
- [Maintaining Multiple Versions](#maintaining-multiple-versions)
|
|
53
|
-
- [Release Cycle](#release-cycle)
|
|
54
|
-
- [Applying Fixes to Stable Versions](#applying-fixes-to-stable-versions)
|
|
55
|
-
- [Switching Release Modes](#switching-release-modes)
|
|
56
49
|
* [Contributing](#contributing)
|
|
57
50
|
- [Component RFC](#component-rfc)
|
|
58
51
|
- [Conventional commits](#conventional-commits)
|
|
@@ -541,123 +534,11 @@ For more detailed instructions, see [converting SVG to React Components](./docs/
|
|
|
541
534
|
|
|
542
535
|
## Release
|
|
543
536
|
|
|
544
|
-
|
|
537
|
+
Releases are automated via GitHub Actions. A workflow creates a PR with version bumps and changelogs for review. Once merged, the package is published to npm and a GitHub release is created.
|
|
545
538
|
|
|
546
|
-
|
|
539
|
+
Use the [Create a new release Pull Request](./docs/package-release.md#create-a-new-release-pull-request) for a quick automated process.
|
|
547
540
|
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
### Required admin permissions
|
|
551
|
-
|
|
552
|
-
The repository administrator has to set correct permissions for changeset workflow to work, namely: GitHub repository workflow permissons and add GitHub ascitons as a trusted publisher in NPM package settings.
|
|
553
|
-
|
|
554
|
-
#### GitHub Workflow Permissions
|
|
555
|
-
|
|
556
|
-
This workflow requires permissions to "Create pull requests", which can be configured in [workflow permissions](https://github.com/Clickhouse/click-ui/settings/actions).
|
|
557
|
-
|
|
558
|
-
If you don't have permission to change these settings, you can use workflow authentication to generate a GitHub token as described [here](https://github.com/apps/workflow-authentication-public). This will generate a short-lived access token that grants the workflow "create pull requests" permission.
|
|
559
|
-
|
|
560
|
-
For more detailed information about `actions/create-github-app-token`, see the documentation [here](https://github.com/actions/create-github-app-token).
|
|
561
|
-
|
|
562
|
-
#### NPM Trusted publisher
|
|
563
|
-
|
|
564
|
-
Add GitHub actions as a trusted publisher on [NPM package settings](https://www.npmjs.com/package/@clickhouse/click-ui). Make sure you select the provider "GitHub Actions", enter the repository "Clickhouse/click-ui" and finally the workflow name as "release-publisher.yml".
|
|
565
|
-
|
|
566
|
-
### Create a new release Pull Request
|
|
567
|
-
|
|
568
|
-
Consuming changesets is done automatically in the CI/CD environmment.
|
|
569
|
-
|
|
570
|
-
To create a new release, locate the [create release](https://github.com/ClickHouse/click-ui/actions/workflows/create-release.yml) and use the interface to select the release type, e.g. release candidate (rc), testing, stable or latest.
|
|
571
|
-
|
|
572
|
-
It'll create a new Pull request for review, e.g. changelog, version bump, etc. There, you have the opportunity to make any further tweaks, refinements and check if everything's correct.
|
|
573
|
-
|
|
574
|
-
You can find the pull requests in the GitHub tab [Pull Request](https://github.com/ClickHouse/click-ui/pulls). E.g. let's say you're about to release v0.1.0-rc.1, you'd find `chore: 🤖 release v0.1.0-rc.1 (rc)`.
|
|
575
|
-
|
|
576
|
-
> [!WARNING]
|
|
577
|
-
> Releasing a "stable" or "latest" version requires that you have previously published a pre-release version (e.g. test or rc / release candidate). This process exists to help us maintain quality standards.
|
|
578
|
-
> Only promote a release to "stable" or "latest" when you are confident it is production-ready, e.g., after thorough testing and gathering feedback from users or consumers. Take extra caution with "latest" in particular, as it becomes the default version installed by users.
|
|
579
|
-
|
|
580
|
-
Once the pull request is approved and merged, it'll trigger the release of a new version to [npm registry](https://www.npmjs.com/package/@clickhouse/click-ui?activeTab=versions).
|
|
581
|
-
|
|
582
|
-
The process will also create a branch for long lived version maintenance support, e.g. `chore/v0.5.0-rc.1`.
|
|
583
|
-
|
|
584
|
-
### Publish
|
|
585
|
-
|
|
586
|
-
Once you've reviewed the changelog entries and version changes, addressed all [Pull Request](#create-a-new-release-pull-request) comments and suggestions, and are confident everything looks correct, go ahead and **squash and merge** the pull request.
|
|
587
|
-
|
|
588
|
-
Merging to `main` will automatically trigger the [release publisher](https://github.com/ClickHouse/click-ui/actions/workflows/release-publisher.yml), which will publish the package to npm. If successful, the new version will appear under the [@clickhouse/click-ui](https://www.npmjs.com/package/@clickhouse/click-ui?activeTab=versions) versions tab on npm, and a new [GitHub release](https://github.com/ClickHouse/click-ui/releases) will be created containing all generated release assets.
|
|
589
|
-
|
|
590
|
-
### Maintaining Multiple Versions
|
|
591
|
-
|
|
592
|
-
We maintain long-lived branches for each version, so you can get fixes without upgrading:
|
|
593
|
-
|
|
594
|
-
```sh
|
|
595
|
-
main → active development (latest features)
|
|
596
|
-
├── chore/v2.2.x → maintenance for v2.2.x releases
|
|
597
|
-
├── chore/v1.x.x → maintenance for v1.x.x releases
|
|
598
|
-
└── chore/v0.5.x → maintenance for v0.5.x releases
|
|
599
|
-
```
|
|
600
|
-
|
|
601
|
-
Here's how it works:
|
|
602
|
-
|
|
603
|
-
New features and improvements land in main, while critical bugs and security fixes are backported to the relevant maintenance branch. We recommend tracking changes against a base minor branch (e.g. chore/v1.1.x rather than chore/v1.1.1) so that all patches within a minor version are consolidated in one place. Note that the branch naming convention may change in the future (e.g. to v1 or v1.x), but this is the current approach at the time of writing.
|
|
604
|
-
|
|
605
|
-
> [!NOTE]
|
|
606
|
-
> While some changes might only make sense for a specific version, it's best practice to source fixes from `main` whenever possible. This keeps versions aligned and reduces diversion over time. Otherwise, you must make sure that your changes are put in the main development branch.
|
|
607
|
-
|
|
608
|
-
Let's say that you need something specific for an older version, you can work in version isolation without pulling in changes from active development.
|
|
609
|
-
|
|
610
|
-
Each release gets tagged and lives on its own version branch, e.g. `v1.5.0` making it easy to apply patches without forcing you to upgrade to the latest version.
|
|
611
|
-
|
|
612
|
-
#### Release Cycle
|
|
613
|
-
|
|
614
|
-
Our releases start from the `main` branch and go through a simple two-step process to help ensure quality:
|
|
615
|
-
|
|
616
|
-
**Pre-release (test/rc)**
|
|
617
|
-
|
|
618
|
-
1. Create a pre-release pull request, e.g. a test or release candidate (rc)
|
|
619
|
-
2. The team reviews and provides feedback
|
|
620
|
-
3. Once approved and merged, our release publisher pushes it to npm, e.g. `1.2.5-test.1`
|
|
621
|
-
4. You can find all pre-release versions in the [npm package versions tab](https://www.npmjs.com/package/@clickhouse/click-ui?activeTab=versions)
|
|
622
|
-
|
|
623
|
-
**Production release (latest)**
|
|
624
|
-
|
|
625
|
-
1. Once a pre-release has been tested and available on stage, you can promote it to production
|
|
626
|
-
2. Create a "latest" release PR for team review
|
|
627
|
-
3. After approval and merge, the publisher strips the pre-release suffix and publishes the final version, e.g. `1.2.5-test.1` becomes `1.2.5`
|
|
628
|
-
|
|
629
|
-
This workflow lets us test changes at any time before they reach production while keeping the process simple, inclusive and collaborative!
|
|
630
|
-
|
|
631
|
-
#### Applying Fixes to Stable Versions
|
|
632
|
-
|
|
633
|
-
To keep active development moving while ensuring you can apply critical fixes when needed, the Click UI team recommends the following approach:
|
|
634
|
-
|
|
635
|
-
1. Choose the version needing a fix (e.g. `chore/v0.5.0`)
|
|
636
|
-
2. Apply your changes, like backporting a security fix or updating a design token
|
|
637
|
-
3. Create a new release from that branch
|
|
638
|
-
|
|
639
|
-
This lets us experiment and iterate freely on Click UI while giving you or your team a quick path to deploy urgent fixes without waiting for the next major release cycle.
|
|
640
|
-
|
|
641
|
-
> [!WARNING]
|
|
642
|
-
> Always use `chore/vX.X.X` branches for maintenance work, not `changeset-release/v*` branches. The `changeset-release` branches are auto-generated during publishing, e.g. `changeset-release/v0.2.0-test.0`) and not meant for direct updates. All version-specific changes should go through `chore/vX.X.X` branches where the full commit history is tracked.
|
|
643
|
-
|
|
644
|
-
#### Switching Release Modes
|
|
645
|
-
|
|
646
|
-
A new changeset is required before switching between release modes.
|
|
647
|
-
|
|
648
|
-
Changesets are how the release pipeline determines whether anything has actually changed between versions. Without one, promoting a release from one mode to another (for example, from `test` to `rc`) would produce a package that is identical in content but with a different version label, which is meaningless and potentially confusing.
|
|
649
|
-
|
|
650
|
-
Here's what changes in package.json:
|
|
651
|
-
|
|
652
|
-
```sh
|
|
653
|
-
{
|
|
654
|
-
"name": "@clickhouse/click-ui",
|
|
655
|
-
- "version": "1.1.0-test.1",
|
|
656
|
-
+ "version": "1.1.0-rc.1",
|
|
657
|
-
...
|
|
658
|
-
}
|
|
659
|
-
```
|
|
660
|
-
Always include a changeset to ensure each promotion reflects real, trackable changes.
|
|
541
|
+
See [Package Release](./docs/package-release.md) for detailed instructions, including use-cases.
|
|
661
542
|
|
|
662
543
|
### Component RFC
|
|
663
544
|
|
|
@@ -6,10 +6,11 @@ const jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
const styledComponents = require('styled-components');
|
|
7
7
|
const theme_utils = require('../../../../theme/theme.utils.cjs');
|
|
8
8
|
const SvgImageElement = require('../../../Icon/SvgImageElement.cjs');
|
|
9
|
-
const
|
|
9
|
+
const config = require('../../config.cjs');
|
|
10
10
|
const FlagsDark = require('./FlagsDark.cjs');
|
|
11
11
|
const FlagsLight = require('./FlagsLight.cjs');
|
|
12
12
|
|
|
13
|
+
const resolveFlagName = config.createAssetResolver();
|
|
13
14
|
const Flag = ({
|
|
14
15
|
name,
|
|
15
16
|
theme,
|
|
@@ -19,7 +20,7 @@ const Flag = ({
|
|
|
19
20
|
const {
|
|
20
21
|
name: themeName
|
|
21
22
|
} = styledComponents.useTheme();
|
|
22
|
-
const resolvedName =
|
|
23
|
+
const resolvedName = resolveFlagName(name);
|
|
23
24
|
const resolvedTheme = theme_utils.getFallbackThemeName(theme ?? themeName);
|
|
24
25
|
const Component = resolvedTheme === "light" ? FlagsLight.default[resolvedName] : FlagsDark.default[resolvedName];
|
|
25
26
|
if (!Component) {
|
|
@@ -31,4 +32,5 @@ const Flag = ({
|
|
|
31
32
|
Flag.displayName = "Flag";
|
|
32
33
|
|
|
33
34
|
exports.Flag = Flag;
|
|
35
|
+
exports.resolveFlagName = resolveFlagName;
|
|
34
36
|
//# sourceMappingURL=Flag.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Flag.cjs","sources":["../../../../../../src/components/Assets/Flags/system/Flag.tsx"],"sourcesContent":["import { SVGAttributes } from 'react';\nimport { useTheme } from 'styled-components';\nimport { getFallbackThemeName } from '@/theme/theme.utils';\nimport { SvgImageElement } from '@/components/Icon/SvgImageElement';\nimport { FlagProps } from './types';\nimport {
|
|
1
|
+
{"version":3,"file":"Flag.cjs","sources":["../../../../../../src/components/Assets/Flags/system/Flag.tsx"],"sourcesContent":["import { SVGAttributes } from 'react';\nimport { useTheme } from 'styled-components';\nimport { getFallbackThemeName } from '@/theme/theme.utils';\nimport { SvgImageElement } from '@/components/Icon/SvgImageElement';\nimport { FlagName, FlagProps } from './types';\nimport {\n createAssetResolver,\n type AssetAlias,\n type AssetDeprecatedName,\n} from '@/components/Assets/config';\nimport FlagsDark from './FlagsDark';\nimport FlagsLight from './FlagsLight';\n\nconst resolveFlagName = createAssetResolver<FlagName>();\n\nexport { resolveFlagName };\n\nexport interface FlagPropsWithAliases extends Omit<FlagProps, 'name'> {\n name: FlagName | AssetAlias | AssetDeprecatedName;\n}\n\nconst Flag = ({ name, theme, size, ...props }: FlagPropsWithAliases) => {\n const { name: themeName } = useTheme();\n const resolvedName = resolveFlagName(name);\n const resolvedTheme = getFallbackThemeName(theme ?? themeName);\n const Component =\n resolvedTheme === 'light' ? FlagsLight[resolvedName] : FlagsDark[resolvedName];\n\n if (!Component) {\n return null;\n }\n\n const ThemedFlag = (svgProps: SVGAttributes<SVGElement>) => (\n <Component\n theme={resolvedTheme}\n {...svgProps}\n />\n );\n\n return (\n <SvgImageElement\n as={ThemedFlag}\n $size={size}\n role=\"img\"\n aria-label={resolvedName}\n {...props}\n />\n );\n};\n\nFlag.displayName = 'Flag';\n\nexport { Flag };\n"],"names":["resolveFlagName","createAssetResolver","Flag","name","theme","size","props","themeName","useTheme","resolvedName","resolvedTheme","getFallbackThemeName","Component","FlagsLight","FlagsDark","ThemedFlag","svgProps","jsx","SvgImageElement","displayName"],"mappings":";;;;;;;;;;;;AAaA,MAAMA,kBAAkBC,0BAAAA;AAQxB,MAAMC,OAAOA,CAAC;AAAA,EAAEC,IAAAA;AAAAA,EAAMC,KAAAA;AAAAA,EAAOC,IAAAA;AAAAA,EAAM,GAAGC;AAA4B,CAAA,KAAM;AACtE,EAAA,MAAM;AAAA,IAAEH,IAAAA,EAAMI;AAAAA,MAAcC,yBAAAA,EAAS;AACrC,EAAA,MAAMC,YAAAA,GAAeT,gBAAgBG,IAAI,CAAA;AACzC,EAAA,MAAMO,aAAAA,GAAgBC,gCAAAA,CAAqBP,KAAAA,IAASG,SAAS,CAAA;AAC7D,EAAA,MAAMK,YACJF,aAAAA,KAAkB,OAAA,GAAUG,mBAAWJ,YAAY,CAAA,GAAIK,kBAAUL,YAAY,CAAA;AAE/E,EAAA,IAAI,CAACG,SAAAA,EAAW;AACd,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,MAAMG,UAAAA,GAAaA,CAACC,QAAAA,qBAClBC,cAAA,CAAC,aACC,KAAA,EAAOP,aAAAA,EACP,GAAIM,QAAAA,EAAS,CAAA;AAIjB,EAAA,uBACEC,cAAA,CAACC,+BAAA,EAAA,EACC,EAAA,EAAIH,UAAAA,EACJ,KAAA,EAAOV,IAAAA,EACP,IAAA,EAAK,KAAA,EACL,YAAA,EAAYI,YAAAA,EACZ,GAAIH,KAAAA,EAAM,CAAA;AAGhB;AAEAJ,IAAAA,CAAKiB,WAAAA,GAAc,MAAA;;;;;"}
|
|
@@ -24,7 +24,7 @@ const UnitedArabEmirates = require('../United-Arab-Emirates.cjs');
|
|
|
24
24
|
const UnitedKingdom = require('../United-Kingdom.cjs');
|
|
25
25
|
const UnitedStates = require('../United-States.cjs');
|
|
26
26
|
|
|
27
|
-
const
|
|
27
|
+
const FlagsDark = {
|
|
28
28
|
australia: Australia.default,
|
|
29
29
|
brazil: Brazil.default,
|
|
30
30
|
canada: Canada.default,
|
|
@@ -48,5 +48,5 @@ const FlagsLight = {
|
|
|
48
48
|
"united-states": UnitedStates.default
|
|
49
49
|
};
|
|
50
50
|
|
|
51
|
-
exports.default =
|
|
51
|
+
exports.default = FlagsDark;
|
|
52
52
|
//# sourceMappingURL=FlagsDark.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"FlagsDark.cjs","sources":["../../../../../../src/components/Assets/Flags/system/FlagsDark.ts"],"sourcesContent":["/*\n ** WARNING: Auto-generated file!\n ** Do NOT modify it, your changes will be lost!\n ** If you find need to modify manually,\n ** report the issue immediately.\n */\n\nimport Australia from '../Australia';\nimport Brazil from '../Brazil';\nimport Canada from '../Canada';\nimport European_Union from '../European-Union';\nimport Germany from '../Germany';\nimport Great_Britain from '../Great-Britain';\nimport Hong_Kong from '../Hong-Kong';\nimport India from '../India';\nimport Indonesia from '../Indonesia';\nimport Ireland from '../Ireland';\nimport Israel from '../Israel';\nimport Japan from '../Japan';\nimport Netherlands from '../Netherlands';\nimport Singapore from '../Singapore';\nimport South_Africa from '../South-Africa';\nimport South_Korea from '../South-Korea';\nimport Sweden from '../Sweden';\nimport Switzerland from '../Switzerland';\nimport United_Arab_Emirates from '../United-Arab-Emirates';\nimport United_Kingdom from '../United-Kingdom';\nimport United_States from '../United-States';\nimport { FlagName } from './types';\nimport type { SVGAssetProps } from '@/types';\nimport type { ComponentType } from 'react';\n\nconst
|
|
1
|
+
{"version":3,"file":"FlagsDark.cjs","sources":["../../../../../../src/components/Assets/Flags/system/FlagsDark.ts"],"sourcesContent":["/*\n ** WARNING: Auto-generated file!\n ** Do NOT modify it, your changes will be lost!\n ** If you find need to modify manually,\n ** report the issue immediately.\n */\n\nimport Australia from '../Australia';\nimport Brazil from '../Brazil';\nimport Canada from '../Canada';\nimport European_Union from '../European-Union';\nimport Germany from '../Germany';\nimport Great_Britain from '../Great-Britain';\nimport Hong_Kong from '../Hong-Kong';\nimport India from '../India';\nimport Indonesia from '../Indonesia';\nimport Ireland from '../Ireland';\nimport Israel from '../Israel';\nimport Japan from '../Japan';\nimport Netherlands from '../Netherlands';\nimport Singapore from '../Singapore';\nimport South_Africa from '../South-Africa';\nimport South_Korea from '../South-Korea';\nimport Sweden from '../Sweden';\nimport Switzerland from '../Switzerland';\nimport United_Arab_Emirates from '../United-Arab-Emirates';\nimport United_Kingdom from '../United-Kingdom';\nimport United_States from '../United-States';\nimport { FlagName } from './types';\nimport type { SVGAssetProps } from '@/types';\nimport type { ComponentType } from 'react';\n\nconst FlagsDark: Record<FlagName, ComponentType<SVGAssetProps>> = {\n australia: Australia,\n brazil: Brazil,\n canada: Canada,\n 'european-union': European_Union,\n germany: Germany,\n 'great-britain': Great_Britain,\n 'hong-kong': Hong_Kong,\n india: India,\n indonesia: Indonesia,\n ireland: Ireland,\n israel: Israel,\n japan: Japan,\n netherlands: Netherlands,\n singapore: Singapore,\n 'south-africa': South_Africa,\n 'south-korea': South_Korea,\n sweden: Sweden,\n switzerland: Switzerland,\n 'united-arab-emirates': United_Arab_Emirates,\n 'united-kingdom': United_Kingdom,\n 'united-states': United_States,\n};\n\nexport default FlagsDark;\n"],"names":["FlagsDark","australia","Australia","brazil","Brazil","canada","Canada","European_Union","germany","Germany","Great_Britain","Hong_Kong","india","India","indonesia","Indonesia","ireland","Ireland","israel","Israel","japan","Japan","netherlands","Netherlands","singapore","Singapore","South_Africa","South_Korea","sweden","Sweden","switzerland","Switzerland","United_Arab_Emirates","United_Kingdom","United_States"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAgCA,MAAMA,SAAAA,GAA4D;AAAA,EAChEC,SAAAA,EAAWC,iBAAAA;AAAAA,EACXC,MAAAA,EAAQC,cAAAA;AAAAA,EACRC,MAAAA,EAAQC,cAAAA;AAAAA,EACR,gBAAA,EAAkBC,qBAAAA;AAAAA,EAClBC,OAAAA,EAASC,eAAAA;AAAAA,EACT,eAAA,EAAiBC,oBAAAA;AAAAA,EACjB,WAAA,EAAaC,gBAAAA;AAAAA,EACbC,KAAAA,EAAOC,aAAAA;AAAAA,EACPC,SAAAA,EAAWC,iBAAAA;AAAAA,EACXC,OAAAA,EAASC,eAAAA;AAAAA,EACTC,MAAAA,EAAQC,cAAAA;AAAAA,EACRC,KAAAA,EAAOC,aAAAA;AAAAA,EACPC,WAAAA,EAAaC,mBAAAA;AAAAA,EACbC,SAAAA,EAAWC,iBAAAA;AAAAA,EACX,cAAA,EAAgBC,mBAAAA;AAAAA,EAChB,aAAA,EAAeC,kBAAAA;AAAAA,EACfC,MAAAA,EAAQC,cAAAA;AAAAA,EACRC,WAAAA,EAAaC,mBAAAA;AAAAA,EACb,sBAAA,EAAwBC,0BAAAA;AAAAA,EACxB,gBAAA,EAAkBC,qBAAAA;AAAAA,EAClB,eAAA,EAAiBC;AACnB;;;;"}
|
|
@@ -6,16 +6,11 @@ const jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
const styledComponents = require('styled-components');
|
|
7
7
|
const theme_utils = require('../../../../theme/theme.utils.cjs');
|
|
8
8
|
const SvgImageElement = require('../../../Icon/SvgImageElement.cjs');
|
|
9
|
+
const config = require('../../config.cjs');
|
|
9
10
|
const LogosDark = require('./LogosDark.cjs');
|
|
10
11
|
const LogosLight = require('./LogosLight.cjs');
|
|
11
12
|
|
|
12
|
-
const resolveLogoName = (
|
|
13
|
-
if (name === "c#") {
|
|
14
|
-
console.warn('Logo name "c#" is deprecated, use "c-sharp" instead');
|
|
15
|
-
return "c-sharp";
|
|
16
|
-
}
|
|
17
|
-
return name;
|
|
18
|
-
};
|
|
13
|
+
const resolveLogoName = config.createAssetResolver();
|
|
19
14
|
const Logo = ({
|
|
20
15
|
name,
|
|
21
16
|
theme,
|
|
@@ -37,4 +32,5 @@ const Logo = ({
|
|
|
37
32
|
Logo.displayName = "Logo";
|
|
38
33
|
|
|
39
34
|
exports.Logo = Logo;
|
|
35
|
+
exports.resolveLogoName = resolveLogoName;
|
|
40
36
|
//# sourceMappingURL=Logo.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Logo.cjs","sources":["../../../../../../src/components/Assets/Logos/system/Logo.tsx"],"sourcesContent":["import { SVGAttributes } from 'react';\nimport { useTheme } from 'styled-components';\nimport { getFallbackThemeName } from '@/theme/theme.utils';\nimport { SvgImageElement } from '@/components/Icon/SvgImageElement';\nimport { LogoName, LogoProps } from './types';\nimport LogosDark from './LogosDark';\nimport LogosLight from './LogosLight';\n\
|
|
1
|
+
{"version":3,"file":"Logo.cjs","sources":["../../../../../../src/components/Assets/Logos/system/Logo.tsx"],"sourcesContent":["import { SVGAttributes } from 'react';\nimport { useTheme } from 'styled-components';\nimport { getFallbackThemeName } from '@/theme/theme.utils';\nimport { SvgImageElement } from '@/components/Icon/SvgImageElement';\nimport { LogoName, LogoProps } from './types';\nimport {\n createAssetResolver,\n type AssetAlias,\n type AssetDeprecatedName,\n} from '@/components/Assets/config';\nimport LogosDark from './LogosDark';\nimport LogosLight from './LogosLight';\n\nconst resolveLogoName = createAssetResolver<LogoName>();\n\nexport { resolveLogoName };\n\nexport interface LogoPropsWithAliases extends Omit<LogoProps, 'name'> {\n name: LogoName | AssetAlias | AssetDeprecatedName;\n}\n\nconst Logo = ({ name, theme, size, ...props }: LogoPropsWithAliases) => {\n const { name: themeName } = useTheme();\n const resolvedName = resolveLogoName(name);\n const resolvedTheme = getFallbackThemeName(theme ?? themeName);\n const Component =\n resolvedTheme === 'light' ? LogosLight[resolvedName] : LogosDark[resolvedName];\n\n if (!Component) {\n return null;\n }\n\n const ThemedLogo = (svgProps: SVGAttributes<SVGElement>) => (\n <Component\n theme={resolvedTheme}\n {...svgProps}\n />\n );\n\n return (\n <SvgImageElement\n as={ThemedLogo}\n $size={size}\n role=\"img\"\n aria-label={resolvedName}\n {...props}\n />\n );\n};\n\nLogo.displayName = 'Logo';\n\nexport { Logo };\n"],"names":["resolveLogoName","createAssetResolver","Logo","name","theme","size","props","themeName","useTheme","resolvedName","resolvedTheme","getFallbackThemeName","Component","LogosLight","LogosDark","ThemedLogo","svgProps","jsx","SvgImageElement","displayName"],"mappings":";;;;;;;;;;;;AAaA,MAAMA,kBAAkBC,0BAAAA;AAQxB,MAAMC,OAAOA,CAAC;AAAA,EAAEC,IAAAA;AAAAA,EAAMC,KAAAA;AAAAA,EAAOC,IAAAA;AAAAA,EAAM,GAAGC;AAA4B,CAAA,KAAM;AACtE,EAAA,MAAM;AAAA,IAAEH,IAAAA,EAAMI;AAAAA,MAAcC,yBAAAA,EAAS;AACrC,EAAA,MAAMC,YAAAA,GAAeT,gBAAgBG,IAAI,CAAA;AACzC,EAAA,MAAMO,aAAAA,GAAgBC,gCAAAA,CAAqBP,KAAAA,IAASG,SAAS,CAAA;AAC7D,EAAA,MAAMK,YACJF,aAAAA,KAAkB,OAAA,GAAUG,mBAAWJ,YAAY,CAAA,GAAIK,kBAAUL,YAAY,CAAA;AAE/E,EAAA,IAAI,CAACG,SAAAA,EAAW;AACd,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,MAAMG,UAAAA,GAAaA,CAACC,QAAAA,qBAClBC,cAAA,CAAC,aACC,KAAA,EAAOP,aAAAA,EACP,GAAIM,QAAAA,EAAS,CAAA;AAIjB,EAAA,uBACEC,cAAA,CAACC,+BAAA,EAAA,EACC,EAAA,EAAIH,UAAAA,EACJ,KAAA,EAAOV,IAAAA,EACP,IAAA,EAAK,KAAA,EACL,YAAA,EAAYI,YAAAA,EACZ,GAAIH,KAAAA,EAAM,CAAA;AAGhB;AAEAJ,IAAAA,CAAKiB,WAAAA,GAAc,MAAA;;;;;"}
|
|
@@ -4,7 +4,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
4
4
|
|
|
5
5
|
const jsxRuntime = require('react/jsx-runtime');
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const Mastercard = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "http://www.w3.org/2000/svg", width: 30, height: 22, viewBox: "0 0 30 22", fill: "none", ...props, children: [
|
|
8
8
|
/* @__PURE__ */ jsxRuntime.jsxs("g", { clipPath: "url(#clip0_1333_9407)", children: [
|
|
9
9
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M27.2167 21.2619H2.7794C1.24433 21.2619 0 20.0176 0 18.4825V2.91807C0 1.383 1.24433 0.138672 2.7794 0.138672H27.2167C28.7517 0.138672 29.9961 1.383 29.9961 2.91807V18.4825C29.9961 20.0176 28.7517 21.2619 27.2167 21.2619Z", fill: "#36495D" }),
|
|
10
10
|
/* @__PURE__ */ jsxRuntime.jsx("path", { d: "M17.517 6.17236H12.4775V15.2283H17.517V6.17236Z", fill: "#F16522" }),
|
|
@@ -14,5 +14,5 @@ const MasterCard = (props) => /* @__PURE__ */ jsxRuntime.jsxs("svg", { xmlns: "h
|
|
|
14
14
|
/* @__PURE__ */ jsxRuntime.jsx("defs", { children: /* @__PURE__ */ jsxRuntime.jsx("clipPath", { id: "clip0_1333_9407", children: /* @__PURE__ */ jsxRuntime.jsx("rect", { width: "30", height: "21.1384", fill: "white", transform: "translate(0 0.138184)" }) }) })
|
|
15
15
|
] });
|
|
16
16
|
|
|
17
|
-
exports.default =
|
|
18
|
-
//# sourceMappingURL=
|
|
17
|
+
exports.default = Mastercard;
|
|
18
|
+
//# sourceMappingURL=Mastercard.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"Mastercard.cjs","sources":["../../../../../src/components/Assets/Payments/Mastercard.tsx"],"sourcesContent":["import type { SVGAssetProps } from '@/types';\n\nconst Mastercard = (props: SVGAssetProps) => (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={30}\n height={22}\n viewBox=\"0 0 30 22\"\n fill=\"none\"\n {...props}\n >\n <g clipPath=\"url(#clip0_1333_9407)\">\n <path\n d=\"M27.2167 21.2619H2.7794C1.24433 21.2619 0 20.0176 0 18.4825V2.91807C0 1.383 1.24433 0.138672 2.7794 0.138672H27.2167C28.7517 0.138672 29.9961 1.383 29.9961 2.91807V18.4825C29.9961 20.0176 28.7517 21.2619 27.2167 21.2619Z\"\n fill=\"#36495D\"\n />\n <path\n d=\"M17.517 6.17236H12.4775V15.2283H17.517V6.17236Z\"\n fill=\"#F16522\"\n />\n <path\n d=\"M12.7983 10.7003C12.7983 8.86315 13.6586 7.22699 14.998 6.17241C14.0182 5.40101 12.7823 4.94092 11.4387 4.94092C8.25799 4.94092 5.67969 7.5196 5.67969 10.7003C5.67969 13.881 8.25799 16.4597 11.4387 16.4597C12.7823 16.4597 14.0182 15.9996 14.998 15.2283C13.6586 14.1736 12.7983 12.5375 12.7983 10.7003Z\"\n fill=\"#E41B24\"\n />\n <path\n d=\"M24.1363 14.269V14.0457H24.0778L24.0108 14.1994L23.9438 14.0457H23.8853V14.269H23.9262V14.1003L23.9892 14.2459H24.032L24.095 14.1V14.269H24.1363ZM23.7665 14.269V14.0836H23.8414V14.0459H23.6509V14.0836H23.7256V14.269H23.7665ZM24.316 10.7C24.316 13.881 21.7377 16.4594 18.557 16.4594C17.2134 16.4594 15.9775 15.9992 14.998 15.2279C16.3375 14.1736 17.1974 12.5372 17.1974 10.7C17.1974 8.86279 16.3375 7.22672 14.998 6.17203C15.9775 5.40112 17.2134 4.94092 18.557 4.94092C21.7377 4.94092 24.316 7.51933 24.316 10.7Z\"\n fill=\"#F89E1C\"\n />\n </g>\n <defs>\n <clipPath id=\"clip0_1333_9407\">\n <rect\n width=\"30\"\n height=\"21.1384\"\n fill=\"white\"\n transform=\"translate(0 0.138184)\"\n />\n </clipPath>\n </defs>\n </svg>\n);\n\nexport default Mastercard;\n"],"names":["Mastercard","props","jsxs","jsx"],"mappings":";;;;;;AAEA,MAAMA,aAAaA,CAACC,KAAAA,qBAClBC,eAAA,CAAC,KAAA,EAAA,EACC,OAAM,4BAAA,EACN,KAAA,EAAO,EAAA,EACP,MAAA,EAAQ,IACR,OAAA,EAAQ,WAAA,EACR,IAAA,EAAK,MAAA,EACL,GAAID,KAAAA,EAEJ,QAAA,EAAA;AAAA,kBAAAC,eAAA,CAAC,GAAA,EAAA,EAAE,UAAS,uBAAA,EACV,QAAA,EAAA;AAAA,oBAAAC,cAAA,CAAC,MAAA,EAAA,EACC,CAAA,EAAE,8NAAA,EACF,IAAA,EAAK,SAAA,EAAS,CAAA;AAAA,oBAEhBA,cAAA,CAAC,MAAA,EAAA,EACC,CAAA,EAAE,iDAAA,EACF,MAAK,SAAA,EAAS,CAAA;AAAA,oBAEhBA,cAAA,CAAC,MAAA,EAAA,EACC,CAAA,EAAE,+SAAA,EACF,MAAK,SAAA,EAAS,CAAA;AAAA,oBAEhBA,cAAA,CAAC,MAAA,EAAA,EACC,CAAA,EAAE,igBAAA,EACF,MAAK,SAAA,EAAS;AAAA,GAAA,EAElB,CAAA;AAAA,iCACC,MAAA,EAAA,EACC,QAAA,kBAAAA,cAAA,CAAC,UAAA,EAAA,EAAS,EAAA,EAAG,mBACX,QAAA,kBAAAA,cAAA,CAAC,MAAA,EAAA,EACC,KAAA,EAAM,IAAA,EACN,QAAO,SAAA,EACP,IAAA,EAAK,SACL,SAAA,EAAU,uBAAA,EAAuB,GAErC,CAAA,EACF;AAAA,CAAA,EACF;;;;"}
|
|
@@ -6,9 +6,11 @@ const jsxRuntime = require('react/jsx-runtime');
|
|
|
6
6
|
const styledComponents = require('styled-components');
|
|
7
7
|
const theme_utils = require('../../../../theme/theme.utils.cjs');
|
|
8
8
|
const SvgImageElement = require('../../../Icon/SvgImageElement.cjs');
|
|
9
|
+
const config = require('../../config.cjs');
|
|
9
10
|
const PaymentsDark = require('./PaymentsDark.cjs');
|
|
10
11
|
const PaymentsLight = require('./PaymentsLight.cjs');
|
|
11
12
|
|
|
13
|
+
const resolvePaymentName = config.createAssetResolver();
|
|
12
14
|
const Payment = ({
|
|
13
15
|
name,
|
|
14
16
|
theme,
|
|
@@ -18,15 +20,17 @@ const Payment = ({
|
|
|
18
20
|
const {
|
|
19
21
|
name: themeName
|
|
20
22
|
} = styledComponents.useTheme();
|
|
23
|
+
const resolvedName = resolvePaymentName(name);
|
|
21
24
|
const resolvedTheme = theme_utils.getFallbackThemeName(theme ?? themeName);
|
|
22
|
-
const Component = resolvedTheme === "light" ? PaymentsLight.default[
|
|
25
|
+
const Component = resolvedTheme === "light" ? PaymentsLight.default[resolvedName] : PaymentsDark.default[resolvedName];
|
|
23
26
|
if (!Component) {
|
|
24
27
|
return null;
|
|
25
28
|
}
|
|
26
29
|
const ThemedPayment = (svgProps) => /* @__PURE__ */ jsxRuntime.jsx(Component, { theme: resolvedTheme, ...svgProps });
|
|
27
|
-
return /* @__PURE__ */ jsxRuntime.jsx(SvgImageElement.SvgImageElement, { as: ThemedPayment, $size: size, role: "img", "aria-label":
|
|
30
|
+
return /* @__PURE__ */ jsxRuntime.jsx(SvgImageElement.SvgImageElement, { as: ThemedPayment, $size: size, role: "img", "aria-label": resolvedName, ...props });
|
|
28
31
|
};
|
|
29
32
|
Payment.displayName = "Payment";
|
|
30
33
|
|
|
31
34
|
exports.Payment = Payment;
|
|
35
|
+
exports.resolvePaymentName = resolvePaymentName;
|
|
32
36
|
//# sourceMappingURL=Payment.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Payment.cjs","sources":["../../../../../../src/components/Assets/Payments/system/Payment.tsx"],"sourcesContent":["import { SVGAttributes } from 'react';\nimport { useTheme } from 'styled-components';\nimport { getFallbackThemeName } from '@/theme/theme.utils';\nimport { SvgImageElement } from '@/components/Icon/SvgImageElement';\nimport { PaymentProps } from './types';\nimport PaymentsDark from './PaymentsDark';\nimport PaymentsLight from './PaymentsLight';\n\nconst Payment = ({ name, theme, size, ...props }:
|
|
1
|
+
{"version":3,"file":"Payment.cjs","sources":["../../../../../../src/components/Assets/Payments/system/Payment.tsx"],"sourcesContent":["import { SVGAttributes } from 'react';\nimport { useTheme } from 'styled-components';\nimport { getFallbackThemeName } from '@/theme/theme.utils';\nimport { SvgImageElement } from '@/components/Icon/SvgImageElement';\nimport { PaymentName, PaymentProps } from './types';\nimport {\n createAssetResolver,\n type AssetAlias,\n type AssetDeprecatedName,\n} from '@/components/Assets/config';\nimport PaymentsDark from './PaymentsDark';\nimport PaymentsLight from './PaymentsLight';\n\nconst resolvePaymentName = createAssetResolver<PaymentName>();\n\nexport { resolvePaymentName };\n\nexport interface PaymentPropsWithAliases extends Omit<PaymentProps, 'name'> {\n name: PaymentName | AssetAlias | AssetDeprecatedName;\n}\n\nconst Payment = ({ name, theme, size, ...props }: PaymentPropsWithAliases) => {\n const { name: themeName } = useTheme();\n const resolvedName = resolvePaymentName(name);\n const resolvedTheme = getFallbackThemeName(theme ?? themeName);\n const Component =\n resolvedTheme === 'light' ? PaymentsLight[resolvedName] : PaymentsDark[resolvedName];\n\n if (!Component) {\n return null;\n }\n\n const ThemedPayment = (svgProps: SVGAttributes<SVGElement>) => (\n <Component\n theme={resolvedTheme}\n {...svgProps}\n />\n );\n\n return (\n <SvgImageElement\n as={ThemedPayment}\n $size={size}\n role=\"img\"\n aria-label={resolvedName}\n {...props}\n />\n );\n};\n\nPayment.displayName = 'Payment';\n\nexport { Payment };\n"],"names":["resolvePaymentName","createAssetResolver","Payment","name","theme","size","props","themeName","useTheme","resolvedName","resolvedTheme","getFallbackThemeName","Component","PaymentsLight","PaymentsDark","ThemedPayment","svgProps","jsx","SvgImageElement","displayName"],"mappings":";;;;;;;;;;;;AAaA,MAAMA,qBAAqBC,0BAAAA;AAQ3B,MAAMC,UAAUA,CAAC;AAAA,EAAEC,IAAAA;AAAAA,EAAMC,KAAAA;AAAAA,EAAOC,IAAAA;AAAAA,EAAM,GAAGC;AAA+B,CAAA,KAAM;AAC5E,EAAA,MAAM;AAAA,IAAEH,IAAAA,EAAMI;AAAAA,MAAcC,yBAAAA,EAAS;AACrC,EAAA,MAAMC,YAAAA,GAAeT,mBAAmBG,IAAI,CAAA;AAC5C,EAAA,MAAMO,aAAAA,GAAgBC,gCAAAA,CAAqBP,KAAAA,IAASG,SAAS,CAAA;AAC7D,EAAA,MAAMK,YACJF,aAAAA,KAAkB,OAAA,GAAUG,sBAAcJ,YAAY,CAAA,GAAIK,qBAAaL,YAAY,CAAA;AAErF,EAAA,IAAI,CAACG,SAAAA,EAAW;AACd,IAAA,OAAO,IAAA;AAAA,EACT;AAEA,EAAA,MAAMG,aAAAA,GAAgBA,CAACC,QAAAA,qBACrBC,cAAA,CAAC,aACC,KAAA,EAAOP,aAAAA,EACP,GAAIM,QAAAA,EAAS,CAAA;AAIjB,EAAA,uBACEC,cAAA,CAACC,+BAAA,EAAA,EACC,EAAA,EAAIH,aAAAA,EACJ,KAAA,EAAOV,IAAAA,EACP,IAAA,EAAK,KAAA,EACL,YAAA,EAAYI,YAAAA,EACZ,GAAIH,KAAAA,EAAM,CAAA;AAGhB;AAEAJ,OAAAA,CAAQiB,WAAAA,GAAc,SAAA;;;;;"}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
4
|
|
|
5
5
|
const Amex = require('../Amex.cjs');
|
|
6
|
-
const
|
|
6
|
+
const Mastercard = require('../Mastercard.cjs');
|
|
7
7
|
const Paypal = require('../Paypal.cjs');
|
|
8
8
|
const Visa = require('../Visa.cjs');
|
|
9
9
|
|
|
10
10
|
const PaymentsDark = {
|
|
11
11
|
amex: Amex.default,
|
|
12
|
-
mastercard:
|
|
12
|
+
mastercard: Mastercard.default,
|
|
13
13
|
paypal: Paypal.default,
|
|
14
14
|
visa: Visa.default
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentsDark.cjs","sources":["../../../../../../src/components/Assets/Payments/system/PaymentsDark.ts"],"sourcesContent":["/*\n ** WARNING: Auto-generated file!\n ** Do NOT modify it, your changes will be lost!\n ** If you find need to modify manually,\n ** report the issue immediately.\n */\n\nimport Amex from '../Amex';\nimport
|
|
1
|
+
{"version":3,"file":"PaymentsDark.cjs","sources":["../../../../../../src/components/Assets/Payments/system/PaymentsDark.ts"],"sourcesContent":["/*\n ** WARNING: Auto-generated file!\n ** Do NOT modify it, your changes will be lost!\n ** If you find need to modify manually,\n ** report the issue immediately.\n */\n\nimport Amex from '../Amex';\nimport Mastercard from '../Mastercard';\nimport Paypal from '../Paypal';\nimport Visa from '../Visa';\nimport { PaymentName } from './types';\nimport type { SVGAssetProps } from '@/types';\nimport type { ComponentType } from 'react';\n\nconst PaymentsDark: Record<PaymentName, ComponentType<SVGAssetProps>> = {\n amex: Amex,\n mastercard: Mastercard,\n paypal: Paypal,\n visa: Visa,\n};\n\nexport default PaymentsDark;\n"],"names":["PaymentsDark","amex","Amex","mastercard","Mastercard","paypal","Paypal","visa","Visa"],"mappings":";;;;;;;;;AAeA,MAAMA,YAAAA,GAAkE;AAAA,EACtEC,IAAAA,EAAMC,YAAAA;AAAAA,EACNC,UAAAA,EAAYC,kBAAAA;AAAAA,EACZC,MAAAA,EAAQC,cAAAA;AAAAA,EACRC,IAAAA,EAAMC;AACR;;;;"}
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
|
|
4
4
|
|
|
5
5
|
const Amex = require('../Amex.cjs');
|
|
6
|
-
const
|
|
6
|
+
const Mastercard = require('../Mastercard.cjs');
|
|
7
7
|
const Paypal = require('../Paypal.cjs');
|
|
8
8
|
const Visa = require('../Visa.cjs');
|
|
9
9
|
|
|
10
10
|
const PaymentsLight = {
|
|
11
11
|
amex: Amex.default,
|
|
12
|
-
mastercard:
|
|
12
|
+
mastercard: Mastercard.default,
|
|
13
13
|
paypal: Paypal.default,
|
|
14
14
|
visa: Visa.default
|
|
15
15
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PaymentsLight.cjs","sources":["../../../../../../src/components/Assets/Payments/system/PaymentsLight.ts"],"sourcesContent":["/*\n ** WARNING: Auto-generated file!\n ** Do NOT modify it, your changes will be lost!\n ** If you find need to modify manually,\n ** report the issue immediately.\n */\n\nimport Amex from '../Amex';\nimport
|
|
1
|
+
{"version":3,"file":"PaymentsLight.cjs","sources":["../../../../../../src/components/Assets/Payments/system/PaymentsLight.ts"],"sourcesContent":["/*\n ** WARNING: Auto-generated file!\n ** Do NOT modify it, your changes will be lost!\n ** If you find need to modify manually,\n ** report the issue immediately.\n */\n\nimport Amex from '../Amex';\nimport Mastercard from '../Mastercard';\nimport Paypal from '../Paypal';\nimport Visa from '../Visa';\nimport { PaymentName } from './types';\nimport type { SVGAssetProps } from '@/types';\nimport type { ComponentType } from 'react';\n\nconst PaymentsLight: Record<PaymentName, ComponentType<SVGAssetProps>> = {\n amex: Amex,\n mastercard: Mastercard,\n paypal: Paypal,\n visa: Visa,\n};\n\nexport default PaymentsLight;\n"],"names":["PaymentsLight","amex","Amex","mastercard","Mastercard","paypal","Paypal","visa","Visa"],"mappings":";;;;;;;;;AAeA,MAAMA,aAAAA,GAAmE;AAAA,EACvEC,IAAAA,EAAMC,YAAAA;AAAAA,EACNC,UAAAA,EAAYC,kBAAAA;AAAAA,EACZC,MAAAA,EAAQC,cAAAA;AAAAA,EACRC,IAAAA,EAAMC;AACR;;;;"}
|