@sendoutcards/quantum-design-ui 1.6.2 → 1.6.6
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/index.es.js +883 -83
- package/dist/src/atoms/anchor/anchor.d.ts +1 -0
- package/dist/src/atoms/capsule/capsule.d.ts +5 -3
- package/dist/src/atoms/iconography/icons/complete.d.ts +3 -0
- package/dist/src/atoms/iconography/icons/download.d.ts +3 -0
- package/dist/src/atoms/iconography/types/index.d.ts +1 -1
- package/dist/src/customThemes/sendOutCards/entities.d.ts +12 -14
- package/dist/src/exports/molecules.d.ts +5 -0
- package/dist/src/exports/organisms.d.ts +0 -1
- package/dist/src/exports/socPorfolio.d.ts +1 -0
- package/dist/src/helpers/style-functions/convertTextColorToIconColor.d.ts +3 -0
- package/dist/src/helpers/style-functions/mapSizeType.d.ts +1 -1
- package/dist/src/hooks/useEntities.d.ts +8 -22
- package/dist/src/molecules/blockQuote/blockQuote.d.ts +2 -1
- package/dist/src/molecules/button/button.d.ts +2 -2
- package/dist/src/molecules/configurationCard/configurationCard.d.ts +12 -0
- package/dist/src/molecules/downloadButton/downloadButton.d.ts +8 -0
- package/dist/src/molecules/featureBadge/featureBadge.d.ts +14 -0
- package/dist/src/molecules/quantitySlider/quantitySlider.d.ts +14 -0
- package/dist/src/molecules/select/components/option.d.ts +6 -6
- package/dist/src/molecules/slider/slider.d.ts +2 -3
- package/dist/src/molecules/stackedCards/stackedCards.d.ts +11 -0
- package/dist/src/molecules/stackedCards/styles.d.ts +4 -0
- package/dist/src/organisms/incrementSetting/incrementSetting.d.ts +2 -5
- package/dist/src/organisms/promotionWidget/promotionWidget.d.ts +7 -1
- package/dist/src/portfolios/soc/components/bulkSend/bulkSend.d.ts +36 -0
- package/dist/src/portfolios/soc/components/cardEntryDialog/cardEntryDialog.d.ts +2 -2
- package/dist/src/stories/atoms/Icons.stories.d.ts +2 -1
- package/dist/src/stories/molecules/ConfigurationCard.stories.d.ts +4 -0
- package/dist/src/stories/molecules/DownloadButton.stories.d.ts +5 -0
- package/dist/src/stories/molecules/FeatureBadge.stories.d.ts +4 -0
- package/dist/src/stories/molecules/QuantitySlider.stories.d.ts +5 -0
- package/dist/src/stories/molecules/StackedCards.stories.d.ts +5 -0
- package/dist/src/stories/portfolios/SOC/BulkSend.stories.d.ts +5 -0
- package/dist/src/theme/theming/entities.d.ts +12 -14
- package/dist/src/theme/types.d.ts +13 -0
- package/dist/src/types/global.d.ts +18 -1
- package/package.json +1 -1
- package/dist/src/organisms/widget/widget.d.ts +0 -13
package/dist/index.es.js
CHANGED
|
@@ -866,6 +866,36 @@ var sphere$9 = {
|
|
|
866
866
|
textType: 'heroTitle'
|
|
867
867
|
}
|
|
868
868
|
};
|
|
869
|
+
var widget$8 = {
|
|
870
|
+
primary: {
|
|
871
|
+
backgroundColor: concepts$8.colors.primaryBrand.base,
|
|
872
|
+
fontColor: 'inverseBody'
|
|
873
|
+
},
|
|
874
|
+
secondary: {
|
|
875
|
+
backgroundColor: concepts$8.colors.secondaryBrand.base,
|
|
876
|
+
fontColor: 'inverseBody'
|
|
877
|
+
},
|
|
878
|
+
warning: {
|
|
879
|
+
backgroundColor: concepts$8.colors.warning.base,
|
|
880
|
+
fontColor: 'primaryBody'
|
|
881
|
+
},
|
|
882
|
+
success: {
|
|
883
|
+
backgroundColor: concepts$8.colors.success.base,
|
|
884
|
+
fontColor: 'inverseBody'
|
|
885
|
+
},
|
|
886
|
+
danger: {
|
|
887
|
+
backgroundColor: concepts$8.colors.danger.base,
|
|
888
|
+
fontColor: 'primaryBody'
|
|
889
|
+
},
|
|
890
|
+
shadow: {
|
|
891
|
+
backgroundColor: concepts$8.colors.foreground,
|
|
892
|
+
fontColor: 'primaryBody'
|
|
893
|
+
},
|
|
894
|
+
accent: {
|
|
895
|
+
backgroundColor: concepts$8.colors.accent.base,
|
|
896
|
+
fontColor: 'primaryBody'
|
|
897
|
+
}
|
|
898
|
+
};
|
|
869
899
|
var entities$8 = {
|
|
870
900
|
mediaQueries: mediaQueries$b,
|
|
871
901
|
hocs: hocs$8,
|
|
@@ -887,7 +917,8 @@ var entities$8 = {
|
|
|
887
917
|
toggle: toggle$8,
|
|
888
918
|
tooltip: tooltip$8,
|
|
889
919
|
colorPicker: colorPicker$8,
|
|
890
|
-
sphere: sphere$9
|
|
920
|
+
sphere: sphere$9,
|
|
921
|
+
widget: widget$8
|
|
891
922
|
};
|
|
892
923
|
|
|
893
924
|
var PURPLE = '#8D7EAE';
|
|
@@ -1563,6 +1594,36 @@ var sphere$7 = {
|
|
|
1563
1594
|
textType: 'heroTitle'
|
|
1564
1595
|
}
|
|
1565
1596
|
};
|
|
1597
|
+
var widget$7 = {
|
|
1598
|
+
primary: {
|
|
1599
|
+
backgroundColor: concepts$7.colors.primaryBrand.base,
|
|
1600
|
+
fontColor: 'inverseBody'
|
|
1601
|
+
},
|
|
1602
|
+
secondary: {
|
|
1603
|
+
backgroundColor: concepts$7.colors.secondaryBrand.base,
|
|
1604
|
+
fontColor: 'inverseBody'
|
|
1605
|
+
},
|
|
1606
|
+
warning: {
|
|
1607
|
+
backgroundColor: concepts$7.colors.warning.base,
|
|
1608
|
+
fontColor: 'inverseBody'
|
|
1609
|
+
},
|
|
1610
|
+
success: {
|
|
1611
|
+
backgroundColor: concepts$7.colors.success.base,
|
|
1612
|
+
fontColor: 'primaryBody'
|
|
1613
|
+
},
|
|
1614
|
+
danger: {
|
|
1615
|
+
backgroundColor: concepts$7.colors.danger.base,
|
|
1616
|
+
fontColor: 'inverseBody'
|
|
1617
|
+
},
|
|
1618
|
+
shadow: {
|
|
1619
|
+
backgroundColor: concepts$7.colors.foreground,
|
|
1620
|
+
fontColor: 'primaryBody'
|
|
1621
|
+
},
|
|
1622
|
+
accent: {
|
|
1623
|
+
backgroundColor: concepts$7.colors.accent.base,
|
|
1624
|
+
fontColor: 'primaryBody'
|
|
1625
|
+
}
|
|
1626
|
+
};
|
|
1566
1627
|
var entities$7 = {
|
|
1567
1628
|
mediaQueries: mediaQueries$a,
|
|
1568
1629
|
hocs: hocs$7,
|
|
@@ -1584,7 +1645,8 @@ var entities$7 = {
|
|
|
1584
1645
|
drawer: drawer$7,
|
|
1585
1646
|
slider: slider$7,
|
|
1586
1647
|
colorPicker: colorPicker$7,
|
|
1587
|
-
sphere: sphere$7
|
|
1648
|
+
sphere: sphere$7,
|
|
1649
|
+
widget: widget$7
|
|
1588
1650
|
};
|
|
1589
1651
|
|
|
1590
1652
|
var BRIGHT_GREEN$1 = '#74C468';
|
|
@@ -2217,6 +2279,36 @@ var sphere$6 = {
|
|
|
2217
2279
|
textType: 'heroTitle'
|
|
2218
2280
|
}
|
|
2219
2281
|
};
|
|
2282
|
+
var widget$6 = {
|
|
2283
|
+
primary: {
|
|
2284
|
+
backgroundColor: concepts$6.colors.primaryBrand.base,
|
|
2285
|
+
fontColor: 'inverseBody'
|
|
2286
|
+
},
|
|
2287
|
+
secondary: {
|
|
2288
|
+
backgroundColor: concepts$6.colors.secondaryBrand.base,
|
|
2289
|
+
fontColor: 'inverseBody'
|
|
2290
|
+
},
|
|
2291
|
+
warning: {
|
|
2292
|
+
backgroundColor: concepts$6.colors.warning.base,
|
|
2293
|
+
fontColor: 'primaryBody'
|
|
2294
|
+
},
|
|
2295
|
+
success: {
|
|
2296
|
+
backgroundColor: concepts$6.colors.success.base,
|
|
2297
|
+
fontColor: 'primaryBody'
|
|
2298
|
+
},
|
|
2299
|
+
danger: {
|
|
2300
|
+
backgroundColor: concepts$6.colors.danger.base,
|
|
2301
|
+
fontColor: 'inverseBody'
|
|
2302
|
+
},
|
|
2303
|
+
shadow: {
|
|
2304
|
+
backgroundColor: concepts$6.colors.foreground,
|
|
2305
|
+
fontColor: 'primaryBody'
|
|
2306
|
+
},
|
|
2307
|
+
accent: {
|
|
2308
|
+
backgroundColor: concepts$6.colors.accent.base,
|
|
2309
|
+
fontColor: 'inverseBody'
|
|
2310
|
+
}
|
|
2311
|
+
};
|
|
2220
2312
|
var entities$6 = {
|
|
2221
2313
|
mediaQueries: mediaQueries$9,
|
|
2222
2314
|
hocs: hocs$6,
|
|
@@ -2238,7 +2330,8 @@ var entities$6 = {
|
|
|
2238
2330
|
drawer: drawer$6,
|
|
2239
2331
|
slider: slider$6,
|
|
2240
2332
|
colorPicker: colorPicker$6,
|
|
2241
|
-
sphere: sphere$6
|
|
2333
|
+
sphere: sphere$6,
|
|
2334
|
+
widget: widget$6
|
|
2242
2335
|
};
|
|
2243
2336
|
|
|
2244
2337
|
var CARAMEL$1 = '#CE8E47'; // primary
|
|
@@ -2875,6 +2968,36 @@ var sphere$5 = {
|
|
|
2875
2968
|
textType: 'heroTitle'
|
|
2876
2969
|
}
|
|
2877
2970
|
};
|
|
2971
|
+
var widget$5 = {
|
|
2972
|
+
primary: {
|
|
2973
|
+
backgroundColor: concepts$5.colors.primaryBrand.base,
|
|
2974
|
+
fontColor: 'inverseBody'
|
|
2975
|
+
},
|
|
2976
|
+
secondary: {
|
|
2977
|
+
backgroundColor: concepts$5.colors.secondaryBrand.base,
|
|
2978
|
+
fontColor: 'inverseBody'
|
|
2979
|
+
},
|
|
2980
|
+
warning: {
|
|
2981
|
+
backgroundColor: concepts$5.colors.warning.base,
|
|
2982
|
+
fontColor: 'primaryBody'
|
|
2983
|
+
},
|
|
2984
|
+
success: {
|
|
2985
|
+
backgroundColor: concepts$5.colors.success.base,
|
|
2986
|
+
fontColor: 'primaryBody'
|
|
2987
|
+
},
|
|
2988
|
+
danger: {
|
|
2989
|
+
backgroundColor: concepts$5.colors.danger.base,
|
|
2990
|
+
fontColor: 'inverseBody'
|
|
2991
|
+
},
|
|
2992
|
+
shadow: {
|
|
2993
|
+
backgroundColor: concepts$5.colors.foreground,
|
|
2994
|
+
fontColor: 'primaryBody'
|
|
2995
|
+
},
|
|
2996
|
+
accent: {
|
|
2997
|
+
backgroundColor: concepts$5.colors.accent.base,
|
|
2998
|
+
fontColor: 'primaryBody'
|
|
2999
|
+
}
|
|
3000
|
+
};
|
|
2878
3001
|
var entities$5 = {
|
|
2879
3002
|
mediaQueries: mediaQueries$8,
|
|
2880
3003
|
hocs: hocs$5,
|
|
@@ -2896,7 +3019,8 @@ var entities$5 = {
|
|
|
2896
3019
|
drawer: drawer$5,
|
|
2897
3020
|
slider: slider$5,
|
|
2898
3021
|
colorPicker: colorPicker$5,
|
|
2899
|
-
sphere: sphere$5
|
|
3022
|
+
sphere: sphere$5,
|
|
3023
|
+
widget: widget$5
|
|
2900
3024
|
};
|
|
2901
3025
|
|
|
2902
3026
|
var BRIGHT_BLUE = '#140FEE';
|
|
@@ -3531,6 +3655,36 @@ var sphere$4 = {
|
|
|
3531
3655
|
textType: 'heroTitle'
|
|
3532
3656
|
}
|
|
3533
3657
|
};
|
|
3658
|
+
var widget$4 = {
|
|
3659
|
+
primary: {
|
|
3660
|
+
backgroundColor: concepts$4.colors.primaryBrand.base,
|
|
3661
|
+
fontColor: 'inverseBody'
|
|
3662
|
+
},
|
|
3663
|
+
secondary: {
|
|
3664
|
+
backgroundColor: concepts$4.colors.secondaryBrand.base,
|
|
3665
|
+
fontColor: 'inverseBody'
|
|
3666
|
+
},
|
|
3667
|
+
warning: {
|
|
3668
|
+
backgroundColor: concepts$4.colors.warning.base,
|
|
3669
|
+
fontColor: 'primaryBody'
|
|
3670
|
+
},
|
|
3671
|
+
success: {
|
|
3672
|
+
backgroundColor: concepts$4.colors.success.base,
|
|
3673
|
+
fontColor: 'primaryBody'
|
|
3674
|
+
},
|
|
3675
|
+
danger: {
|
|
3676
|
+
backgroundColor: concepts$4.colors.danger.base,
|
|
3677
|
+
fontColor: 'inverseBody'
|
|
3678
|
+
},
|
|
3679
|
+
shadow: {
|
|
3680
|
+
backgroundColor: concepts$4.colors.foreground,
|
|
3681
|
+
fontColor: 'primaryBody'
|
|
3682
|
+
},
|
|
3683
|
+
accent: {
|
|
3684
|
+
backgroundColor: concepts$4.colors.accent.base,
|
|
3685
|
+
fontColor: 'primaryBody'
|
|
3686
|
+
}
|
|
3687
|
+
};
|
|
3534
3688
|
var entities$4 = {
|
|
3535
3689
|
mediaQueries: mediaQueries$7,
|
|
3536
3690
|
hocs: hocs$4,
|
|
@@ -3552,7 +3706,8 @@ var entities$4 = {
|
|
|
3552
3706
|
drawer: drawer$4,
|
|
3553
3707
|
slider: slider$4,
|
|
3554
3708
|
colorPicker: colorPicker$4,
|
|
3555
|
-
sphere: sphere$4
|
|
3709
|
+
sphere: sphere$4,
|
|
3710
|
+
widget: widget$4
|
|
3556
3711
|
};
|
|
3557
3712
|
|
|
3558
3713
|
var DARK_BLUE$1 = '#1F4177';
|
|
@@ -4187,6 +4342,36 @@ var sphere$3 = {
|
|
|
4187
4342
|
textType: 'heroTitle'
|
|
4188
4343
|
}
|
|
4189
4344
|
};
|
|
4345
|
+
var widget$3 = {
|
|
4346
|
+
primary: {
|
|
4347
|
+
backgroundColor: concepts$3.colors.primaryBrand.base,
|
|
4348
|
+
fontColor: 'inverseBody'
|
|
4349
|
+
},
|
|
4350
|
+
secondary: {
|
|
4351
|
+
backgroundColor: concepts$3.colors.secondaryBrand.base,
|
|
4352
|
+
fontColor: 'inverseBody'
|
|
4353
|
+
},
|
|
4354
|
+
warning: {
|
|
4355
|
+
backgroundColor: concepts$3.colors.warning.base,
|
|
4356
|
+
fontColor: 'primaryBody'
|
|
4357
|
+
},
|
|
4358
|
+
success: {
|
|
4359
|
+
backgroundColor: concepts$3.colors.success.base,
|
|
4360
|
+
fontColor: 'primaryBody'
|
|
4361
|
+
},
|
|
4362
|
+
danger: {
|
|
4363
|
+
backgroundColor: concepts$3.colors.danger.base,
|
|
4364
|
+
fontColor: 'inverseBody'
|
|
4365
|
+
},
|
|
4366
|
+
shadow: {
|
|
4367
|
+
backgroundColor: concepts$3.colors.foreground,
|
|
4368
|
+
fontColor: 'primaryBody'
|
|
4369
|
+
},
|
|
4370
|
+
accent: {
|
|
4371
|
+
backgroundColor: concepts$3.colors.accent.base,
|
|
4372
|
+
fontColor: 'primaryBody'
|
|
4373
|
+
}
|
|
4374
|
+
};
|
|
4190
4375
|
var entities$3 = {
|
|
4191
4376
|
mediaQueries: mediaQueries$6,
|
|
4192
4377
|
hocs: hocs$3,
|
|
@@ -4208,7 +4393,8 @@ var entities$3 = {
|
|
|
4208
4393
|
drawer: drawer$3,
|
|
4209
4394
|
slider: slider$3,
|
|
4210
4395
|
colorPicker: colorPicker$3,
|
|
4211
|
-
sphere: sphere$3
|
|
4396
|
+
sphere: sphere$3,
|
|
4397
|
+
widget: widget$3
|
|
4212
4398
|
};
|
|
4213
4399
|
|
|
4214
4400
|
var CARAMEL = '#B38048';
|
|
@@ -4843,6 +5029,36 @@ var sphere$2 = {
|
|
|
4843
5029
|
textType: 'heroTitle'
|
|
4844
5030
|
}
|
|
4845
5031
|
};
|
|
5032
|
+
var widget$2 = {
|
|
5033
|
+
primary: {
|
|
5034
|
+
backgroundColor: concepts$2.colors.primaryBrand.base,
|
|
5035
|
+
fontColor: 'inverseBody'
|
|
5036
|
+
},
|
|
5037
|
+
secondary: {
|
|
5038
|
+
backgroundColor: concepts$2.colors.secondaryBrand.base,
|
|
5039
|
+
fontColor: 'inverseBody'
|
|
5040
|
+
},
|
|
5041
|
+
warning: {
|
|
5042
|
+
backgroundColor: concepts$2.colors.warning.base,
|
|
5043
|
+
fontColor: 'primaryBody'
|
|
5044
|
+
},
|
|
5045
|
+
success: {
|
|
5046
|
+
backgroundColor: concepts$2.colors.success.base,
|
|
5047
|
+
fontColor: 'primaryBody'
|
|
5048
|
+
},
|
|
5049
|
+
danger: {
|
|
5050
|
+
backgroundColor: concepts$2.colors.danger.base,
|
|
5051
|
+
fontColor: 'inverseBody'
|
|
5052
|
+
},
|
|
5053
|
+
shadow: {
|
|
5054
|
+
backgroundColor: concepts$2.colors.foreground,
|
|
5055
|
+
fontColor: 'primaryBody'
|
|
5056
|
+
},
|
|
5057
|
+
accent: {
|
|
5058
|
+
backgroundColor: concepts$2.colors.accent.base,
|
|
5059
|
+
fontColor: 'primaryBody'
|
|
5060
|
+
}
|
|
5061
|
+
};
|
|
4846
5062
|
var entities$2 = {
|
|
4847
5063
|
mediaQueries: mediaQueries$5,
|
|
4848
5064
|
hocs: hocs$2,
|
|
@@ -4864,7 +5080,8 @@ var entities$2 = {
|
|
|
4864
5080
|
drawer: drawer$2,
|
|
4865
5081
|
slider: slider$2,
|
|
4866
5082
|
colorPicker: colorPicker$2,
|
|
4867
|
-
sphere: sphere$2
|
|
5083
|
+
sphere: sphere$2,
|
|
5084
|
+
widget: widget$2
|
|
4868
5085
|
};
|
|
4869
5086
|
|
|
4870
5087
|
var AQUA = '#61DCE8';
|
|
@@ -5499,6 +5716,36 @@ var sphere$1 = {
|
|
|
5499
5716
|
textType: 'heroTitle'
|
|
5500
5717
|
}
|
|
5501
5718
|
};
|
|
5719
|
+
var widget$1 = {
|
|
5720
|
+
primary: {
|
|
5721
|
+
backgroundColor: concepts$1.colors.primaryBrand.base,
|
|
5722
|
+
fontColor: 'inverseBody'
|
|
5723
|
+
},
|
|
5724
|
+
secondary: {
|
|
5725
|
+
backgroundColor: concepts$1.colors.secondaryBrand.base,
|
|
5726
|
+
fontColor: 'inverseBody'
|
|
5727
|
+
},
|
|
5728
|
+
warning: {
|
|
5729
|
+
backgroundColor: concepts$1.colors.warning.base,
|
|
5730
|
+
fontColor: 'primaryBody'
|
|
5731
|
+
},
|
|
5732
|
+
success: {
|
|
5733
|
+
backgroundColor: concepts$1.colors.success.base,
|
|
5734
|
+
fontColor: 'primaryBody'
|
|
5735
|
+
},
|
|
5736
|
+
danger: {
|
|
5737
|
+
backgroundColor: concepts$1.colors.danger.base,
|
|
5738
|
+
fontColor: 'inverseBody'
|
|
5739
|
+
},
|
|
5740
|
+
shadow: {
|
|
5741
|
+
backgroundColor: concepts$1.colors.foreground,
|
|
5742
|
+
fontColor: 'primaryBody'
|
|
5743
|
+
},
|
|
5744
|
+
accent: {
|
|
5745
|
+
backgroundColor: concepts$1.colors.accent.base,
|
|
5746
|
+
fontColor: 'primaryBody'
|
|
5747
|
+
}
|
|
5748
|
+
};
|
|
5502
5749
|
var entities$1 = {
|
|
5503
5750
|
mediaQueries: mediaQueries$4,
|
|
5504
5751
|
hocs: hocs$1,
|
|
@@ -5520,7 +5767,8 @@ var entities$1 = {
|
|
|
5520
5767
|
drawer: drawer$1,
|
|
5521
5768
|
slider: slider$1,
|
|
5522
5769
|
colorPicker: colorPicker$1,
|
|
5523
|
-
sphere: sphere$1
|
|
5770
|
+
sphere: sphere$1,
|
|
5771
|
+
widget: widget$1
|
|
5524
5772
|
};
|
|
5525
5773
|
|
|
5526
5774
|
var PINK = '#FF04A0';
|
|
@@ -6144,6 +6392,36 @@ var sphere = {
|
|
|
6144
6392
|
textType: 'heroTitle'
|
|
6145
6393
|
}
|
|
6146
6394
|
};
|
|
6395
|
+
var widget = {
|
|
6396
|
+
primary: {
|
|
6397
|
+
backgroundColor: concepts.colors.primaryBrand.base,
|
|
6398
|
+
fontColor: 'inverseBody'
|
|
6399
|
+
},
|
|
6400
|
+
secondary: {
|
|
6401
|
+
backgroundColor: concepts.colors.secondaryBrand.base,
|
|
6402
|
+
fontColor: 'inverseBody'
|
|
6403
|
+
},
|
|
6404
|
+
warning: {
|
|
6405
|
+
backgroundColor: concepts.colors.warning.base,
|
|
6406
|
+
fontColor: 'primaryBody'
|
|
6407
|
+
},
|
|
6408
|
+
success: {
|
|
6409
|
+
backgroundColor: concepts.colors.success.base,
|
|
6410
|
+
fontColor: 'primaryBody'
|
|
6411
|
+
},
|
|
6412
|
+
danger: {
|
|
6413
|
+
backgroundColor: concepts.colors.danger.base,
|
|
6414
|
+
fontColor: 'primaryBody'
|
|
6415
|
+
},
|
|
6416
|
+
shadow: {
|
|
6417
|
+
backgroundColor: concepts.colors.foreground,
|
|
6418
|
+
fontColor: 'primaryBody'
|
|
6419
|
+
},
|
|
6420
|
+
accent: {
|
|
6421
|
+
backgroundColor: concepts.colors.accent.base,
|
|
6422
|
+
fontColor: 'primaryBody'
|
|
6423
|
+
}
|
|
6424
|
+
};
|
|
6147
6425
|
var entities = {
|
|
6148
6426
|
mediaQueries: mediaQueries$3,
|
|
6149
6427
|
hocs: hocs,
|
|
@@ -6165,7 +6443,8 @@ var entities = {
|
|
|
6165
6443
|
toggle: toggle,
|
|
6166
6444
|
tooltip: tooltip,
|
|
6167
6445
|
colorPicker: colorPicker,
|
|
6168
|
-
sphere: sphere
|
|
6446
|
+
sphere: sphere,
|
|
6447
|
+
widget: widget
|
|
6169
6448
|
};
|
|
6170
6449
|
|
|
6171
6450
|
var _emotionSourceMap2$v = process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInF1YW50dW1UaGVtZVdyYXBwZXIudHN4Il0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQWlDZ0IiLCJmaWxlIjoicXVhbnR1bVRoZW1lV3JhcHBlci50c3giLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBfX21ha2VUZW1wbGF0ZU9iamVjdCB9IGZyb20gXCJ0c2xpYlwiO1xyXG5pbXBvcnQgUmVhY3QgZnJvbSAncmVhY3QnO1xyXG5pbXBvcnQgeyBUaGVtZVByb3ZpZGVyIH0gZnJvbSAnZW1vdGlvbi10aGVtaW5nJztcclxuaW1wb3J0IHsgR2xvYmFsLCBjc3MgfSBmcm9tICdAZW1vdGlvbi9jb3JlJztcclxuaW1wb3J0IHsgZW50aXRpZXMgfSBmcm9tICcuLi90aGVtZS90aGVtaW5nL2VudGl0aWVzJztcclxuaW1wb3J0IHsgc2VuZG9nb1RoZW1lLCBiZWxsYUNhZGFldXhUaGVtZSwgZ3JlZW5lclN0aWxsVGhlbWUsIHByb21wdGluZ1VUaGVtZSwgc3RyZWFtTWFya2V0aW5nVGhlbWUsIHN0cmVhbVZBVGhlbWUsIGJsdWU0MlRoZW1lLCBzZW5kT3V0Q2FyZHNUaGVtZSwgfSBmcm9tIFwiLi4vZXhwb3J0cy90aGVtZXNcIjtcclxuZXhwb3J0IHZhciBRdWFudHVtVGhlbWVXcmFwcGVyID0gZnVuY3Rpb24gKF9hKSB7XHJcbiAgICB2YXIgY2hpbGRyZW4gPSBfYS5jaGlsZHJlbiwgdGhlbWUgPSBfYS50aGVtZTtcclxuICAgIHZhciBnZXRUaGVtZSA9IGZ1bmN0aW9uICh0aGVtZSkge1xyXG4gICAgICAgIHN3aXRjaCAodGhlbWUpIHtcclxuICAgICAgICAgICAgY2FzZSAnc2VuZG9nbyc6XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gc2VuZG9nb1RoZW1lO1xyXG4gICAgICAgICAgICBjYXNlICdiZWxsYUNhZGVhdXgnOlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIGJlbGxhQ2FkYWV1eFRoZW1lO1xyXG4gICAgICAgICAgICBjYXNlICdncmVlbmVyU3RpbGwnOlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIGdyZWVuZXJTdGlsbFRoZW1lO1xyXG4gICAgICAgICAgICBjYXNlICdwcm9tcHRpbmdVJzpcclxuICAgICAgICAgICAgICAgIHJldHVybiBwcm9tcHRpbmdVVGhlbWU7XHJcbiAgICAgICAgICAgIGNhc2UgJ3N0cmVhbU1hcmtldGluZyc6XHJcbiAgICAgICAgICAgICAgICByZXR1cm4gc3RyZWFtTWFya2V0aW5nVGhlbWU7XHJcbiAgICAgICAgICAgIGNhc2UgJ3N0cmVhbVZBJzpcclxuICAgICAgICAgICAgICAgIHJldHVybiBzdHJlYW1WQVRoZW1lO1xyXG4gICAgICAgICAgICBjYXNlICdibHVlNDInOlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIGJsdWU0MlRoZW1lO1xyXG4gICAgICAgICAgICBjYXNlICdzZW5kT3V0Q2FyZHMnOlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIHNlbmRPdXRDYXJkc1RoZW1lO1xyXG4gICAgICAgICAgICBkZWZhdWx0OlxyXG4gICAgICAgICAgICAgICAgcmV0dXJuIGVudGl0aWVzO1xyXG4gICAgICAgIH1cclxuICAgIH07XHJcbiAgICB2YXIgc2VsZWN0ZWRUaGVtZSA9IGdldFRoZW1lKHRoZW1lKTtcclxuICAgIHJldHVybiAoPFRoZW1lUHJvdmlkZXIgdGhlbWU9e3NlbGVjdGVkVGhlbWV9PlxuICAgICAgPEdsb2JhbCBzdHlsZXM9e2Nzcyh0ZW1wbGF0ZU9iamVjdF8xIHx8ICh0ZW1wbGF0ZU9iamVjdF8xID0gX19tYWtlVGVtcGxhdGVPYmplY3QoW1wiXFxuICAgICAgICAgIEBpbXBvcnQgdXJsKFwiLCBcIik7XFxuICAgICAgICAgIEBpbXBvcnQgdXJsKFwiLCBcIik7XFxuICAgICAgICAgIGJvZHkge1xcbiAgICAgICAgICAgIGZvbnQtZmFtaWx5OiBcIiwgXCI7XFxuICAgICAgICAgICAgZm9udC1zaXplOiAxNnB4O1xcbiAgICAgICAgICAgIGxpbmUtaGVpZ2h0OiAxLjY1O1xcbiAgICAgICAgICAgICoge1xcbiAgICAgICAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAgaDEsXFxuICAgICAgICAgICAgaDIsXFxuICAgICAgICAgICAgaDMsXFxuICAgICAgICAgICAgaDQsXFxuICAgICAgICAgICAgaDUsXFxuICAgICAgICAgICAgaDYge1xcbiAgICAgICAgICAgICAgZm9udC1mYW1pbHk6IFwiLCBcIjtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgIH1cXG4gICAgICAgIFwiXSwgW1wiXFxuICAgICAgICAgIEBpbXBvcnQgdXJsKFwiLCBcIik7XFxuICAgICAgICAgIEBpbXBvcnQgdXJsKFwiLCBcIik7XFxuICAgICAgICAgIGJvZHkge1xcbiAgICAgICAgICAgIGZvbnQtZmFtaWx5OiBcIiwgXCI7XFxuICAgICAgICAgICAgZm9udC1zaXplOiAxNnB4O1xcbiAgICAgICAgICAgIGxpbmUtaGVpZ2h0OiAxLjY1O1xcbiAgICAgICAgICAgICoge1xcbiAgICAgICAgICAgICAgYm94LXNpemluZzogYm9yZGVyLWJveDtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgICAgaDEsXFxuICAgICAgICAgICAgaDIsXFxuICAgICAgICAgICAgaDMsXFxuICAgICAgICAgICAgaDQsXFxuICAgICAgICAgICAgaDUsXFxuICAgICAgICAgICAgaDYge1xcbiAgICAgICAgICAgICAgZm9udC1mYW1pbHk6IFwiLCBcIjtcXG4gICAgICAgICAgICB9XFxuICAgICAgICAgIH1cXG4gICAgICAgIFwiXSkpLCBzZWxlY3RlZFRoZW1lLnRleHQuaW1wb3J0cy5ib2R5LCBzZWxlY3RlZFRoZW1lLnRleHQuaW1wb3J0cy5oZWFkaW5nLCBzZWxlY3RlZFRoZW1lLnRleHQuZmFtaWxpZXMuYm9keSwgc2VsZWN0ZWRUaGVtZS50ZXh0LmZhbWlsaWVzLmhlYWRpbmcpfS8+XG4gICAgICA8ZGl2IGNzcz17Y3NzKHRlbXBsYXRlT2JqZWN0XzIgfHwgKHRlbXBsYXRlT2JqZWN0XzIgPSBfX21ha2VUZW1wbGF0ZU9iamVjdChbXCJcXG4gICAgICAgICAgZm9udC1zaXplOiAxNnB4O1xcbiAgICAgICAgICA+IGRpdiB7XFxuICAgICAgICAgICAgZm9udC1zaXplOiBpbmhlcml0O1xcbiAgICAgICAgICB9XFxuICAgICAgICBcIl0sIFtcIlxcbiAgICAgICAgICBmb250LXNpemU6IDE2cHg7XFxuICAgICAgICAgID4gZGl2IHtcXG4gICAgICAgICAgICBmb250LXNpemU6IGluaGVyaXQ7XFxuICAgICAgICAgIH1cXG4gICAgICAgIFwiXSkpKX0+XG4gICAgICAgIHtjaGlsZHJlbn1cbiAgICAgIDwvZGl2PlxuICAgIDwvVGhlbWVQcm92aWRlcj4pO1xyXG59O1xyXG52YXIgdGVtcGxhdGVPYmplY3RfMSwgdGVtcGxhdGVPYmplY3RfMjtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9cXVhbnR1bVRoZW1lV3JhcHBlci5qc3gubWFwIl19 */";
|
|
@@ -9771,6 +10050,46 @@ var ElementIcon = function (_a) {
|
|
|
9771
10050
|
}));
|
|
9772
10051
|
};
|
|
9773
10052
|
|
|
10053
|
+
var Complete = function (_a) {
|
|
10054
|
+
var primaryColor = _a.primaryColor,
|
|
10055
|
+
onClick = _a.onClick,
|
|
10056
|
+
size = _a.size,
|
|
10057
|
+
entity = _a.entity;
|
|
10058
|
+
return jsx("svg", {
|
|
10059
|
+
onClick: onClick && function () {
|
|
10060
|
+
return onClick();
|
|
10061
|
+
},
|
|
10062
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10063
|
+
width: getIconSize(size, entity),
|
|
10064
|
+
height: getIconSize(size, entity),
|
|
10065
|
+
fill: "none"
|
|
10066
|
+
}, jsx("path", {
|
|
10067
|
+
fill: getIconColor(primaryColor, entity),
|
|
10068
|
+
d: "M12 1.75C6.34 1.75 1.75 6.34 1.75 12S6.34 22.25 12 22.25 22.25 17.66 22.25 12c0-.637-.058-1.26-.169-1.864a.75.75 0 111.475-.271c.128.692.194 1.406.194 2.135 0 6.49-5.26 11.75-11.75 11.75S.25 18.49.25 12 5.51.25 12 .25c2.363 0 4.566.699 6.41 1.9a.75.75 0 11-.82 1.257A10.199 10.199 0 0012 1.75zm9.53 3.72a.75.75 0 010 1.06l-9 9a.75.75 0 01-1.06 0l-4-4a.75.75 0 111.06-1.06L12 13.94l8.47-8.47a.75.75 0 011.06 0z"
|
|
10069
|
+
}));
|
|
10070
|
+
};
|
|
10071
|
+
|
|
10072
|
+
var Download = function (_a) {
|
|
10073
|
+
var primaryColor = _a.primaryColor,
|
|
10074
|
+
onClick = _a.onClick,
|
|
10075
|
+
size = _a.size,
|
|
10076
|
+
entity = _a.entity;
|
|
10077
|
+
return jsx("svg", {
|
|
10078
|
+
onClick: onClick && function () {
|
|
10079
|
+
return onClick();
|
|
10080
|
+
},
|
|
10081
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
10082
|
+
width: getIconSize(size, entity),
|
|
10083
|
+
height: getIconSize(size, entity),
|
|
10084
|
+
fill: "none"
|
|
10085
|
+
}, jsx("path", {
|
|
10086
|
+
fill: getIconColor(primaryColor, entity),
|
|
10087
|
+
fillRule: "evenodd",
|
|
10088
|
+
d: "M12 3.25a.75.75 0 01.75.75v8.19l1.72-1.72a.75.75 0 111.06 1.06l-3 3a.75.75 0 01-1.06 0l-3-3a.75.75 0 111.06-1.06l1.72 1.72V4a.75.75 0 01.75-.75zm-11 10a.75.75 0 01.75.75v4c0 .69.56 1.25 1.25 1.25h18c.69 0 1.25-.56 1.25-1.25v-4a.75.75 0 011.5 0v4A2.75 2.75 0 0121 20.75H3A2.75 2.75 0 01.25 18v-4a.75.75 0 01.75-.75z",
|
|
10089
|
+
clipRule: "evenodd"
|
|
10090
|
+
}));
|
|
10091
|
+
};
|
|
10092
|
+
|
|
9774
10093
|
var useEntities = function () {
|
|
9775
10094
|
return useTheme();
|
|
9776
10095
|
};
|
|
@@ -10088,6 +10407,12 @@ var Icon = function (_a) {
|
|
|
10088
10407
|
|
|
10089
10408
|
case 'elementIcon':
|
|
10090
10409
|
return jsx(ElementIcon, props);
|
|
10410
|
+
|
|
10411
|
+
case 'complete':
|
|
10412
|
+
return jsx(Complete, props);
|
|
10413
|
+
|
|
10414
|
+
case 'download':
|
|
10415
|
+
return jsx(Download, props);
|
|
10091
10416
|
}
|
|
10092
10417
|
};
|
|
10093
10418
|
|
|
@@ -10736,7 +11061,8 @@ var Anchor = function (props) {
|
|
|
10736
11061
|
isDecorated = props.isDecorated,
|
|
10737
11062
|
_c = props.display,
|
|
10738
11063
|
display = _c === void 0 ? 'inline-block' : _c,
|
|
10739
|
-
|
|
11064
|
+
shouldDownload = props.shouldDownload,
|
|
11065
|
+
rest = __rest(props, ["color", "size", "isDecorated", "display", "shouldDownload"]);
|
|
10740
11066
|
|
|
10741
11067
|
var generatedDivStyles = generateStyles(__assign({
|
|
10742
11068
|
display: display
|
|
@@ -10755,6 +11081,7 @@ var Anchor = function (props) {
|
|
|
10755
11081
|
|
|
10756
11082
|
return (_a = rest.onClick) === null || _a === void 0 ? void 0 : _a.call(rest);
|
|
10757
11083
|
},
|
|
11084
|
+
download: shouldDownload,
|
|
10758
11085
|
css: styles$N.anchorStyles(generatedDivStyles, entities, color, isDecorated)
|
|
10759
11086
|
}), jsx(Text, {
|
|
10760
11087
|
type: computeTextTypeFromSize(size),
|
|
@@ -11311,35 +11638,37 @@ var Card = function (props) {
|
|
|
11311
11638
|
|
|
11312
11639
|
var Capsule = function (_a) {
|
|
11313
11640
|
var title = _a.title,
|
|
11314
|
-
|
|
11641
|
+
backgrounColor = _a.backgrounColor,
|
|
11642
|
+
fontColor = _a.fontColor,
|
|
11643
|
+
boxShadow = _a.boxShadow;
|
|
11315
11644
|
return jsx(Div, {
|
|
11316
11645
|
inset: {
|
|
11317
11646
|
horizontal: 'x2'
|
|
11318
11647
|
},
|
|
11319
11648
|
borderRadius: "circle",
|
|
11320
|
-
backgroundColor:
|
|
11321
|
-
swatch: 'secondaryBrand',
|
|
11322
|
-
shade: 'base'
|
|
11323
|
-
} : {
|
|
11649
|
+
backgroundColor: backgrounColor !== null && backgrounColor !== void 0 ? backgrounColor : {
|
|
11324
11650
|
swatch: 'success',
|
|
11325
11651
|
shade: 'base'
|
|
11326
11652
|
},
|
|
11327
|
-
display: "inline-block"
|
|
11653
|
+
display: "inline-block",
|
|
11654
|
+
boxShadow: boxShadow
|
|
11328
11655
|
}, jsx(Text, {
|
|
11329
|
-
type: "footnote"
|
|
11330
|
-
|
|
11656
|
+
type: "footnote",
|
|
11657
|
+
content: title,
|
|
11658
|
+
color: fontColor !== null && fontColor !== void 0 ? fontColor : 'primaryBody'
|
|
11659
|
+
}));
|
|
11331
11660
|
};
|
|
11332
11661
|
|
|
11333
11662
|
var computeButtonSizeProperties = function (size, sizeMap) {
|
|
11334
11663
|
return mapSizeType(size, sizeMap);
|
|
11335
11664
|
};
|
|
11336
11665
|
|
|
11337
|
-
var _emotionSourceMap2$q = process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
11666
|
+
var _emotionSourceMap2$q = process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFxQ3dEIiwiZmlsZSI6InN0eWxlcy50cyIsInNvdXJjZXNDb250ZW50IjpbImltcG9ydCB7IF9fbWFrZVRlbXBsYXRlT2JqZWN0IH0gZnJvbSBcInRzbGliXCI7XHJcbmltcG9ydCB7IGNzcyB9IGZyb20gJ0BlbW90aW9uL2NvcmUnO1xyXG5pbXBvcnQgQ29sb3IgZnJvbSAnY29sb3InO1xyXG5pbXBvcnQgeyBjb21wdXRlQnV0dG9uU2l6ZVByb3BlcnRpZXMgfSBmcm9tIFwiLi4vLi4vaGVscGVycy9zdHlsZS1mdW5jdGlvbnMvY29tcHV0ZUJ1dHRvblNpemVQcm9wZXJ0aWVzXCI7XHJcbmV4cG9ydCBkZWZhdWx0IHtcclxuICAgIGJ1dHRvblN0eWxlczogZnVuY3Rpb24gKGJ1dHRvblR5cGUsIGJ1dHRvbkVudGl0eSwgYnV0dG9uU3R5bGUsIHNpemUsIGhvdmVyLCBvdXRsaW5lZCwgZnVsbFdpZHRoKSB7IHJldHVybiBjc3ModGVtcGxhdGVPYmplY3RfMSB8fCAodGVtcGxhdGVPYmplY3RfMSA9IF9fbWFrZVRlbXBsYXRlT2JqZWN0KFtcIlxcbiAgICBmb250LWZhbWlseTogaW5oZXJpdDtcXG4gICAgd2lkdGg6IFwiLCBcIjtcXG4gICAgYmFja2dyb3VuZDogXCIsIFwiO1xcbiAgICBwYWRkaW5nOiBcIiwgXCI7XFxuICAgIHBhZGRpbmctdG9wOiBcIiwgXCI7XFxuICAgI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AgICBmb250LXdlaWdodDogXCIsIFwiO1xcbiAgICB3aGl0ZS1zcGFjZTogbm93cmFwO1xcbiAgXCJdKSksIGNvbXB1dGVCdXR0b25TaXplUHJvcGVydGllcyhzaXplLCBidXR0b25FbnRpdHkuc2l6ZXMpXHJcbiAgICAgICAgLmZvbnRTaXplLCBidXR0b25FbnRpdHkuZm9udFdlaWdodCk7IH0sXHJcbn07XHJcbnZhciB0ZW1wbGF0ZU9iamVjdF8xLCB0ZW1wbGF0ZU9iamVjdF8yO1xyXG4vLyMgc291cmNlTWFwcGluZ1VSTD1zdHlsZXMuanMubWFwIl19 */";
|
|
11338
11667
|
|
|
11339
|
-
var _emotionSourceMap$D = process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,
|
|
11668
|
+
var _emotionSourceMap$D = process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFLOEciLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgX19tYWtlVGVtcGxhdGVPYmplY3QgfSBmcm9tIFwidHNsaWJcIjtcclxuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XHJcbmltcG9ydCBDb2xvciBmcm9tICdjb2xvcic7XHJcbmltcG9ydCB7IGNvbXB1dGVCdXR0b25TaXplUHJvcGVydGllcyB9IGZyb20gXCIuLi8uLi9oZWxwZXJzL3N0eWxlLWZ1bmN0aW9ucy9jb21wdXRlQnV0dG9uU2l6ZVByb3BlcnRpZXNcIjtcclxuZXhwb3J0IGRlZmF1bHQge1xyXG4gICAgYnV0dG9uU3R5bGVzOiBmdW5jdGlvbiAoYnV0dG9uVHlwZSwgYnV0dG9uRW50aXR5LCBidXR0b25TdHlsZSwgc2l6ZS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yU2l6ZSArIFwiIHNvbGlkIFwiICsgYnV0dG9uU3R5bGUuYmFja2dyb3VuZENvbG9yXHJcbiAgICAgICAgOiAnbm9uZScsIGNvbXB1dGVCdXR0b25TaXplUHJvcGVydGllcyhzaXplLCBidXR0b25FbnRpdHkuc2l6ZXMpXHJcbiAgICAgICAgLmJvcmRlclJhZGl1cywgb3V0bGluZWRcclxuICAgICAgICA/ICdub25lJ1xyXG4gICAgICAgIDogYnV0dG9uVHlwZSA9PT0gJ3NoYWRvdydcclxuICAgICAgICAgICAgPyBidXR0b25FbnRpdHkuYm94U2hhZG93KCdsaWdodCcsIENvbG9yKGJ1dHRvblN0eWxlLmZvbnRDb2xvcikucmdiKCkuYWxwaGEoMC41KS50b1N0cmluZygpKVxyXG4gICAgICAgICAgICA6IGJ1dHRvbkVudGl0eS5ib3hTaGFkb3coJ3hMaWdodCcsIENvbG9yKGJ1dHRvblN0eWxlLmJhY2tncm91bmRDb2xvcikucmdiKCkuYWxwaGEoMC41KS50b1N0cmluZygpKSwgb3V0bGluZWRcclxuICAgICAgICA/ICdub25lJ1xyXG4gICAgICAgIDogYnV0dG9uVHlwZSA9PT0gJ3NoYWRvdydcclxuICAgICAgICAgICAgPyBidXR0b25FbnRpdHkuYm94U2hhZG93KCdsaWdodCcsIENvbG9yKGJ1dHRvblN0eWxlLmZvbnRDb2xvcikucmdiKCkuYWxwaGEoMC41KS50b1N0cmluZygpKVxyXG4gICAgICAgICAgICA6IGJ1dHRvbkVudGl0eS5ib3hTaGFkb3coJ3hMaWdodCcsIENvbG9yKGJ1dHRvblN0eWxlLmJhY2tncm91bmRDb2xvcikucmdiKCkuYWxwaGEoMC41KS50b1N0cmluZygpKSwgaG92ZXIgJiYgJ3RyYW5zbGF0ZVkoM3B4KScsIGhvdmVyICYmICdub25lJywgaG92ZXIgJiYgJ3RyYW5zZm9ybSAwLjJzLCBib3gtc2hhZG93IDAuMnMgZWFzZS1vdXQnKTsgfSxcclxuICAgIGJ1dHRvblRpdGxlOiBmdW5jdGlvbiAoYnV0dG9uRW50aXR5LCBzaXplKSB7IHJldHVybiBjc3ModGVtcGxhdGVPYmplY3RfMiB8fCAodGVtcGxhdGVPYmplY3RfMiA9IF9fbWFrZVRlbXBsYXRlT2JqZWN0KFtcIlxcbiAgICBmb250LXNpemU6IFwiLCBcIjtcXG4gICAgZm9udC13ZWlnaHQ6IFwiLCBcIjtcXG4gICAgd2hpdGUtc3BhY2U6IG5vd3JhcDtcXG4gIFwiXSwgW1wiXFxuICAgIGZvbnQtc2l6ZTogXCIsXHJcbiAgICAgICAgXCI7XFxuICAgIGZvbnQtd2VpZ2h0OiBcIiwgXCI7XFxuICAgIHdoaXRlLXNwYWNlOiBub3dyYXA7XFxuICBcIl0pKSwgY29tcHV0ZUJ1dHRvblNpemVQcm9wZXJ0aWVzKHNpemUsIGJ1dHRvbkVudGl0eS5zaXplcylcclxuICAgICAgICAuZm9udFNpemUsIGJ1dHRvbkVudGl0eS5mb250V2VpZ2h0KTsgfSxcclxufTtcclxudmFyIHRlbXBsYXRlT2JqZWN0XzEsIHRlbXBsYXRlT2JqZWN0XzI7XHJcbi8vIyBzb3VyY2VNYXBwaW5nVVJMPXN0eWxlcy5qcy5tYXAiXX0= */";
|
|
11340
11669
|
var styles$C = {
|
|
11341
11670
|
buttonStyles: function (buttonType, buttonEntity, buttonStyle, size, hover, outlined, fullWidth) {
|
|
11342
|
-
return /*#__PURE__*/css(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n font-family: inherit;\n width: ", ";\n background: ", ";\n padding: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n display: flex;\n justify-content: center;\n border: ", ";\n font-size: inherit;\n line-height: 1.2;\n border-radius: ", ";\n cursor: pointer;\n outline: none;\n box-shadow: ", ";\n :disabled {\n opacity: 0.35;\n cursor: not-allowed;\n :hover {\n box-shadow: none;\n transform: translateY(0);\n }\n }\n :hover {\n transform: ", ";\n box-shadow: ", ";\n transition: ", ";\n }\n " + _emotionSourceMap$D], ["\n font-family: inherit;\n width: ", ";\n background: ", ";\n padding: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n display: flex;\n justify-content: center;\n border: ", ";\n font-size: inherit;\n line-height: 1.2;\n border-radius: ", ";\n cursor: pointer;\n outline: none;\n box-shadow: ", ";\n :disabled {\n opacity: 0.35;\n cursor: not-allowed;\n :hover {\n box-shadow: none;\n transform: translateY(0);\n }\n }\n :hover {\n transform: ", ";\n box-shadow: ", ";\n transition: ", ";\n }\n " + _emotionSourceMap$D])), fullWidth && '100%', outlined ? 'transparent' : buttonStyle.backgroundColor, !outlined && computeButtonSizeProperties(size, buttonEntity.sizes).inset, outlined && computeButtonSizeProperties(size, buttonEntity.sizes).outlinedInset.vertical, outlined && computeButtonSizeProperties(size, buttonEntity.sizes).outlinedInset.vertical, outlined && computeButtonSizeProperties(size, buttonEntity.sizes).outlinedInset.horizontal, outlined && computeButtonSizeProperties(size, buttonEntity.sizes).outlinedInset.horizontal, outlined ? buttonType === 'shadow' ? buttonEntity.borderSize + " solid " + buttonStyle.fontColor : buttonEntity.borderSize + " solid " + buttonStyle.backgroundColor : 'none', computeButtonSizeProperties(size, buttonEntity.sizes).borderRadius, outlined ? 'none' : buttonEntity.boxShadow('xLight', Color$1(buttonStyle.backgroundColor).rgb().alpha(0.5).toString()), hover && 'translateY(3px)', hover && 'none', hover && 'transform 0.2s, box-shadow 0.2s ease-out');
|
|
11671
|
+
return /*#__PURE__*/css(templateObject_1$D || (templateObject_1$D = __makeTemplateObject(["\n font-family: inherit;\n width: ", ";\n background: ", ";\n padding: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n display: flex;\n justify-content: center;\n border: ", ";\n font-size: inherit;\n line-height: 1.2;\n border-radius: ", ";\n cursor: pointer;\n outline: none;\n box-shadow: ", ";\n box-shadow: ", ";\n :disabled {\n opacity: 0.35;\n cursor: not-allowed;\n :hover {\n box-shadow: none;\n transform: translateY(0);\n }\n }\n :hover {\n transform: ", ";\n box-shadow: ", ";\n transition: ", ";\n }\n " + _emotionSourceMap$D], ["\n font-family: inherit;\n width: ", ";\n background: ", ";\n padding: ", ";\n padding-top: ", ";\n padding-bottom: ", ";\n padding-left: ", ";\n padding-right: ", ";\n display: flex;\n justify-content: center;\n border: ", ";\n font-size: inherit;\n line-height: 1.2;\n border-radius: ", ";\n cursor: pointer;\n outline: none;\n box-shadow: ", ";\n box-shadow: ", ";\n :disabled {\n opacity: 0.35;\n cursor: not-allowed;\n :hover {\n box-shadow: none;\n transform: translateY(0);\n }\n }\n :hover {\n transform: ", ";\n box-shadow: ", ";\n transition: ", ";\n }\n " + _emotionSourceMap$D])), fullWidth && '100%', outlined ? 'transparent' : buttonStyle.backgroundColor, !outlined && computeButtonSizeProperties(size, buttonEntity.sizes).inset, outlined && computeButtonSizeProperties(size, buttonEntity.sizes).outlinedInset.vertical, outlined && computeButtonSizeProperties(size, buttonEntity.sizes).outlinedInset.vertical, outlined && computeButtonSizeProperties(size, buttonEntity.sizes).outlinedInset.horizontal, outlined && computeButtonSizeProperties(size, buttonEntity.sizes).outlinedInset.horizontal, outlined ? buttonType === 'shadow' ? buttonEntity.borderSize + " solid " + buttonStyle.fontColor : buttonEntity.borderSize + " solid " + buttonStyle.backgroundColor : 'none', computeButtonSizeProperties(size, buttonEntity.sizes).borderRadius, outlined ? 'none' : buttonType === 'shadow' ? buttonEntity.boxShadow('light', Color$1(buttonStyle.fontColor).rgb().alpha(0.5).toString()) : buttonEntity.boxShadow('xLight', Color$1(buttonStyle.backgroundColor).rgb().alpha(0.5).toString()), outlined ? 'none' : buttonType === 'shadow' ? buttonEntity.boxShadow('light', Color$1(buttonStyle.fontColor).rgb().alpha(0.5).toString()) : buttonEntity.boxShadow('xLight', Color$1(buttonStyle.backgroundColor).rgb().alpha(0.5).toString()), hover && 'translateY(3px)', hover && 'none', hover && 'transform 0.2s, box-shadow 0.2s ease-out');
|
|
11343
11672
|
},
|
|
11344
11673
|
buttonTitle: function (buttonEntity, size) {
|
|
11345
11674
|
return /*#__PURE__*/css(templateObject_2$q || (templateObject_2$q = __makeTemplateObject(["\n font-size: ", ";\n font-weight: ", ";\n white-space: nowrap;\n " + _emotionSourceMap2$q], ["\n font-size: ", ";\n font-weight: ", ";\n white-space: nowrap;\n " + _emotionSourceMap2$q])), computeButtonSizeProperties(size, buttonEntity.sizes).fontSize, buttonEntity.fontWeight);
|
|
@@ -13820,7 +14149,7 @@ var Slider = function (_a) {
|
|
|
13820
14149
|
|
|
13821
14150
|
var _e = useEntities(),
|
|
13822
14151
|
slider = _e.slider,
|
|
13823
|
-
|
|
14152
|
+
icons = _e.icons;
|
|
13824
14153
|
|
|
13825
14154
|
var handleHeight = 18;
|
|
13826
14155
|
var containerRef = useRef(null);
|
|
@@ -13871,7 +14200,7 @@ var Slider = function (_a) {
|
|
|
13871
14200
|
flexDirection: "row"
|
|
13872
14201
|
}, origin === 'center' ? jsx(React.Fragment, null, jsx(Div, {
|
|
13873
14202
|
css: styles$i.sliderProgress(isDisabled),
|
|
13874
|
-
backgroundColor:
|
|
14203
|
+
backgroundColor: icons.colors[activeColor],
|
|
13875
14204
|
style: {
|
|
13876
14205
|
scaleX: progressScaleXLeft,
|
|
13877
14206
|
position: 'relative',
|
|
@@ -13880,7 +14209,7 @@ var Slider = function (_a) {
|
|
|
13880
14209
|
transformOrigin: "100% 50%"
|
|
13881
14210
|
}), jsx(Div, {
|
|
13882
14211
|
css: styles$i.sliderProgress(isDisabled),
|
|
13883
|
-
backgroundColor:
|
|
14212
|
+
backgroundColor: icons.colors[activeColor],
|
|
13884
14213
|
style: {
|
|
13885
14214
|
scaleX: progressScaleXRight,
|
|
13886
14215
|
position: 'relative',
|
|
@@ -13889,7 +14218,7 @@ var Slider = function (_a) {
|
|
|
13889
14218
|
transformOrigin: "0% 50%"
|
|
13890
14219
|
})) : jsx(Div, {
|
|
13891
14220
|
css: styles$i.sliderProgress(isDisabled),
|
|
13892
|
-
backgroundColor:
|
|
14221
|
+
backgroundColor: icons.colors[activeColor],
|
|
13893
14222
|
style: {
|
|
13894
14223
|
scaleX: progressScaleX
|
|
13895
14224
|
},
|
|
@@ -15662,12 +15991,303 @@ var Clipboard = function (_a) {
|
|
|
15662
15991
|
})));
|
|
15663
15992
|
};
|
|
15664
15993
|
|
|
15665
|
-
var
|
|
15666
|
-
|
|
15667
|
-
|
|
15668
|
-
|
|
15669
|
-
|
|
15670
|
-
|
|
15994
|
+
var DownloadButton = function (_a) {
|
|
15995
|
+
var buttonProps = _a.buttonProps,
|
|
15996
|
+
href = _a.href,
|
|
15997
|
+
id = _a.id;
|
|
15998
|
+
return jsx(Div, null, jsx(Anchor, {
|
|
15999
|
+
href: href,
|
|
16000
|
+
shouldDownload: true,
|
|
16001
|
+
id: id
|
|
16002
|
+
}, jsx(Button, {
|
|
16003
|
+
type: buttonProps.type,
|
|
16004
|
+
title: buttonProps.title,
|
|
16005
|
+
size: buttonProps.size,
|
|
16006
|
+
onClick: buttonProps.onClick,
|
|
16007
|
+
onMouseEvent: buttonProps.onMouseEvent,
|
|
16008
|
+
disabled: buttonProps.disabled,
|
|
16009
|
+
hover: buttonProps.hover,
|
|
16010
|
+
outlined: buttonProps.outlined,
|
|
16011
|
+
fullWidth: buttonProps.fullWidth,
|
|
16012
|
+
textColorOverride: buttonProps.textColorOverride,
|
|
16013
|
+
disabledCaption: buttonProps.disabledCaption,
|
|
16014
|
+
disabledDirection: buttonProps.disabledDirection
|
|
16015
|
+
})));
|
|
16016
|
+
};
|
|
16017
|
+
|
|
16018
|
+
var StackedCards = function (_a) {
|
|
16019
|
+
var size = _a.size,
|
|
16020
|
+
_b = _a.stackCount,
|
|
16021
|
+
stackCount = _b === void 0 ? 7 : _b,
|
|
16022
|
+
children = _a.children;
|
|
16023
|
+
var stackCountArr = Array.from(Array(stackCount).keys());
|
|
16024
|
+
var cardPositionStyles = {
|
|
16025
|
+
position: 'absolute',
|
|
16026
|
+
transformOrigin: 'center top'
|
|
16027
|
+
};
|
|
16028
|
+
|
|
16029
|
+
var getDimensionsFromSize = function () {
|
|
16030
|
+
if (typeof size === 'object') {
|
|
16031
|
+
return size;
|
|
16032
|
+
} else {
|
|
16033
|
+
switch (size) {
|
|
16034
|
+
case 'small':
|
|
16035
|
+
return {
|
|
16036
|
+
width: 75,
|
|
16037
|
+
height: 50
|
|
16038
|
+
};
|
|
16039
|
+
|
|
16040
|
+
case 'medium':
|
|
16041
|
+
return {
|
|
16042
|
+
width: 132,
|
|
16043
|
+
height: 95
|
|
16044
|
+
};
|
|
16045
|
+
|
|
16046
|
+
case 'large':
|
|
16047
|
+
return {
|
|
16048
|
+
width: 190,
|
|
16049
|
+
height: 140
|
|
16050
|
+
};
|
|
16051
|
+
}
|
|
16052
|
+
}
|
|
16053
|
+
};
|
|
16054
|
+
|
|
16055
|
+
return jsx(Flex, {
|
|
16056
|
+
position: "relative",
|
|
16057
|
+
justifyContent: 'center',
|
|
16058
|
+
alignContent: "center"
|
|
16059
|
+
}, stackCountArr.map(function (_, index) {
|
|
16060
|
+
var offset = 11 - stackCountArr.length;
|
|
16061
|
+
return jsx(Card, _extends({
|
|
16062
|
+
key: index,
|
|
16063
|
+
backgroundColor: "foreground",
|
|
16064
|
+
style: {
|
|
16065
|
+
padding: 0
|
|
16066
|
+
},
|
|
16067
|
+
width: getDimensionsFromSize().width + "px",
|
|
16068
|
+
height: getDimensionsFromSize().height + "px",
|
|
16069
|
+
transform: "scale(" + (index + offset) / 10 + ") translate(100%, -50%)"
|
|
16070
|
+
}, cardPositionStyles), index === stackCountArr.length - 1 && children);
|
|
16071
|
+
}));
|
|
16072
|
+
};
|
|
16073
|
+
|
|
16074
|
+
var ConfigurationCard = function (_a) {
|
|
16075
|
+
var _b = _a.graphic,
|
|
16076
|
+
graphic = _b === void 0 ? 'addressed' : _b,
|
|
16077
|
+
_c = _a.title,
|
|
16078
|
+
title = _c === void 0 ? 'Blank Envelopes' : _c,
|
|
16079
|
+
_d = _a.description,
|
|
16080
|
+
description = _d === void 0 ? 'Address and send yourself' : _d,
|
|
16081
|
+
_e = _a.cost,
|
|
16082
|
+
cost = _e === void 0 ? 0.29 : _e,
|
|
16083
|
+
isSelected = _a.isSelected,
|
|
16084
|
+
onSelect = _a.onSelect,
|
|
16085
|
+
_f = _a.layout,
|
|
16086
|
+
layout = _f === void 0 ? 'horizontal' : _f,
|
|
16087
|
+
configurationId = _a.configurationId;
|
|
16088
|
+
|
|
16089
|
+
var handleIsSelected = function () {
|
|
16090
|
+
onSelect(configurationId);
|
|
16091
|
+
};
|
|
16092
|
+
|
|
16093
|
+
return jsx(Flex, {
|
|
16094
|
+
onClick: handleIsSelected,
|
|
16095
|
+
width: layout === 'horizontal' ? '100%' : 'initial',
|
|
16096
|
+
flexDirection: layout === 'vertical' ? 'column' : 'row',
|
|
16097
|
+
position: "relative"
|
|
16098
|
+
}, isSelected && jsx(Div, {
|
|
16099
|
+
right: "x1",
|
|
16100
|
+
position: "absolute",
|
|
16101
|
+
top: "x1"
|
|
16102
|
+
}, jsx(AnimatedCheckMark, null)), jsx(Div, {
|
|
16103
|
+
borderStyle: "solid",
|
|
16104
|
+
borderColor: isSelected ? {
|
|
16105
|
+
swatch: 'success',
|
|
16106
|
+
shade: 'base'
|
|
16107
|
+
} : 'transparent',
|
|
16108
|
+
borderWidth: "default",
|
|
16109
|
+
borderRadius: "default",
|
|
16110
|
+
width: "100%",
|
|
16111
|
+
height: "100%",
|
|
16112
|
+
boxShadow: "mediumDark",
|
|
16113
|
+
inset: {
|
|
16114
|
+
left: 'x2',
|
|
16115
|
+
vertical: 'x4'
|
|
16116
|
+
}
|
|
16117
|
+
}, jsx(Flex, {
|
|
16118
|
+
justifyContent: "space-between",
|
|
16119
|
+
height: "100%"
|
|
16120
|
+
}, jsx(HStack, {
|
|
16121
|
+
justify: "flex-start",
|
|
16122
|
+
gap: "x3"
|
|
16123
|
+
}, jsx(Div, {
|
|
16124
|
+
height: "100%"
|
|
16125
|
+
}, jsx(Card, {
|
|
16126
|
+
width: "75px",
|
|
16127
|
+
height: "50px"
|
|
16128
|
+
}, graphic)), jsx(Div, null, jsx(Text, {
|
|
16129
|
+
weight: "bold",
|
|
16130
|
+
type: "largeBody"
|
|
16131
|
+
}, title, jsx(Text, {
|
|
16132
|
+
type: "footnote"
|
|
16133
|
+
}, description)))), jsx(Div, {
|
|
16134
|
+
outset: "x2",
|
|
16135
|
+
position: "relative",
|
|
16136
|
+
justifyContent: "flex-end"
|
|
16137
|
+
}, cost && jsx(Div, {
|
|
16138
|
+
width: "100%"
|
|
16139
|
+
}, jsx(Text, {
|
|
16140
|
+
type: "caption"
|
|
16141
|
+
}, "$", cost, " per envelope"))))));
|
|
16142
|
+
};
|
|
16143
|
+
|
|
16144
|
+
var QuantitySlider = function (_a) {
|
|
16145
|
+
var quantity = _a.quantity,
|
|
16146
|
+
min = _a.min,
|
|
16147
|
+
max = _a.max,
|
|
16148
|
+
setQuantity = _a.setQuantity,
|
|
16149
|
+
salePrice = _a.salePrice,
|
|
16150
|
+
unitPrice = _a.unitPrice,
|
|
16151
|
+
sliderFill = _a.sliderFill,
|
|
16152
|
+
quantityDescription = _a.quantityDescription,
|
|
16153
|
+
width = _a.width;
|
|
16154
|
+
return jsx(Div, null, jsx(Text, {
|
|
16155
|
+
type: "subtitle",
|
|
16156
|
+
weight: "bold",
|
|
16157
|
+
color: "primaryHeading",
|
|
16158
|
+
content: quantity + " " + quantityDescription,
|
|
16159
|
+
alignment: "center",
|
|
16160
|
+
style: {
|
|
16161
|
+
letterSpacing: '1px'
|
|
16162
|
+
}
|
|
16163
|
+
}), salePrice ? jsx(React.Fragment, null, jsx(Text, {
|
|
16164
|
+
type: "caption",
|
|
16165
|
+
color: "primaryHeading",
|
|
16166
|
+
content: "Sale",
|
|
16167
|
+
alignment: "center",
|
|
16168
|
+
style: {
|
|
16169
|
+
letterSpacing: '1px'
|
|
16170
|
+
}
|
|
16171
|
+
}), jsx(Flex, {
|
|
16172
|
+
justifyContent: "center"
|
|
16173
|
+
}, jsx(Spacer, {
|
|
16174
|
+
orientation: "horizontal",
|
|
16175
|
+
space: "x1"
|
|
16176
|
+
}), jsx(Text, {
|
|
16177
|
+
type: "caption",
|
|
16178
|
+
color: "primaryHeading",
|
|
16179
|
+
weight: "semiBold",
|
|
16180
|
+
content: "$" + (unitPrice === null || unitPrice === void 0 ? void 0 : unitPrice.toFixed(2)),
|
|
16181
|
+
isStrikeThrough: true,
|
|
16182
|
+
alignment: "center",
|
|
16183
|
+
style: {
|
|
16184
|
+
letterSpacing: '1px'
|
|
16185
|
+
}
|
|
16186
|
+
}), jsx(Spacer, {
|
|
16187
|
+
orientation: "horizontal",
|
|
16188
|
+
space: "x1"
|
|
16189
|
+
}), jsx(Text, {
|
|
16190
|
+
type: "largeBody",
|
|
16191
|
+
color: "danger",
|
|
16192
|
+
weight: "bold",
|
|
16193
|
+
content: "$" + salePrice.toFixed(2) + " /each",
|
|
16194
|
+
style: {
|
|
16195
|
+
letterSpacing: '1px'
|
|
16196
|
+
}
|
|
16197
|
+
}))) : jsx(Text, {
|
|
16198
|
+
type: "body",
|
|
16199
|
+
color: "primaryHeading",
|
|
16200
|
+
weight: "semiBold",
|
|
16201
|
+
content: "$" + (unitPrice === null || unitPrice === void 0 ? void 0 : unitPrice.toFixed(2)) + " /each",
|
|
16202
|
+
alignment: "center",
|
|
16203
|
+
style: {
|
|
16204
|
+
letterSpacing: '1px'
|
|
16205
|
+
}
|
|
16206
|
+
}), jsx(Slider, {
|
|
16207
|
+
min: min,
|
|
16208
|
+
max: max,
|
|
16209
|
+
value: quantity,
|
|
16210
|
+
setValue: function (quantity) {
|
|
16211
|
+
return setQuantity(quantity);
|
|
16212
|
+
},
|
|
16213
|
+
width: width,
|
|
16214
|
+
activeColor: sliderFill
|
|
16215
|
+
}));
|
|
16216
|
+
};
|
|
16217
|
+
|
|
16218
|
+
var convertTextColorToIconColor = function (textColor) {
|
|
16219
|
+
switch (textColor) {
|
|
16220
|
+
case 'primaryBody':
|
|
16221
|
+
return 'primaryBodyText';
|
|
16222
|
+
|
|
16223
|
+
case 'primaryHeading':
|
|
16224
|
+
return 'primaryHeadingText';
|
|
16225
|
+
|
|
16226
|
+
case 'inverseBody':
|
|
16227
|
+
return 'inverseBodyText';
|
|
16228
|
+
|
|
16229
|
+
case 'inverseHeading':
|
|
16230
|
+
return 'inverseHeadingText';
|
|
16231
|
+
|
|
16232
|
+
default:
|
|
16233
|
+
return textColor;
|
|
16234
|
+
}
|
|
16235
|
+
};
|
|
16236
|
+
|
|
16237
|
+
var FeatureBadge = function (_a) {
|
|
16238
|
+
var title = _a.title,
|
|
16239
|
+
_b = _a.backgroundColor,
|
|
16240
|
+
backgroundColor = _b === void 0 ? 'success' : _b,
|
|
16241
|
+
_c = _a.color,
|
|
16242
|
+
color = _c === void 0 ? 'inverseBody' : _c,
|
|
16243
|
+
size = _a.size,
|
|
16244
|
+
icon = _a.icon,
|
|
16245
|
+
onClick = _a.onClick;
|
|
16246
|
+
var hocs = useEntities().hocs;
|
|
16247
|
+
return jsx(Flex, {
|
|
16248
|
+
backgroundColor: hocs.colors.swatches[backgroundColor].base,
|
|
16249
|
+
inset: icon ? {
|
|
16250
|
+
left: 'x1',
|
|
16251
|
+
vertical: 'x1',
|
|
16252
|
+
right: 'x2'
|
|
16253
|
+
} : 'x2',
|
|
16254
|
+
borderRadius: "medium",
|
|
16255
|
+
style: {
|
|
16256
|
+
display: 'inline-flex'
|
|
16257
|
+
},
|
|
16258
|
+
justifyContent: "flex-start",
|
|
16259
|
+
alignItems: "center",
|
|
16260
|
+
onClick: onClick,
|
|
16261
|
+
cursor: onClick ? 'pointer' : 'initial'
|
|
16262
|
+
}, icon && jsx(Div, {
|
|
16263
|
+
alignItems: "center",
|
|
16264
|
+
style: {
|
|
16265
|
+
lineHeight: 0
|
|
16266
|
+
},
|
|
16267
|
+
inset: {
|
|
16268
|
+
right: 'x1'
|
|
16269
|
+
}
|
|
16270
|
+
}, jsx(Icon, {
|
|
16271
|
+
name: icon,
|
|
16272
|
+
primaryColor: convertTextColorToIconColor(color),
|
|
16273
|
+
size: size !== null && size !== void 0 ? size : 'small'
|
|
16274
|
+
})), jsx(Text, {
|
|
16275
|
+
style: {
|
|
16276
|
+
lineHeight: 0,
|
|
16277
|
+
letterSpacing: 0.5
|
|
16278
|
+
},
|
|
16279
|
+
type: "caption",
|
|
16280
|
+
color: color,
|
|
16281
|
+
weight: "bold"
|
|
16282
|
+
}, title));
|
|
16283
|
+
};
|
|
16284
|
+
|
|
16285
|
+
var _emotionSourceMap2$a = process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFJdUIiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgX19tYWtlVGVtcGxhdGVPYmplY3QgfSBmcm9tIFwidHNsaWJcIjtcclxuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XHJcbmV4cG9ydCBkZWZhdWx0IHtcclxuICAgIHVzZXJDYXJkQ29udGFpbmVyOiBjc3ModGVtcGxhdGVPYmplY3RfMSB8fCAodGVtcGxhdGVPYmplY3RfMSA9IF9fbWFrZVRlbXBsYXRlT2JqZWN0KFtcIlxcbiAgICBkaXNwbGF5OiBmbGV4O1xcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtc3RhcnQ7XFxuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XFxuICBcIl0sIFtcIlxcbiAgICBkaXNwbGF5OiBmbGV4O1xcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtc3RhcnQ7XFxuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XFxuICBcIl0pKSksXHJcbiAgICB1c2VySW5mb0NvbnRhaW5lcjogY3NzKHRlbXBsYXRlT2JqZWN0XzIgfHwgKHRlbXBsYXRlT2JqZWN0XzIgPSBfX21ha2VUZW1wbGF0ZU9iamVjdChbXCJcXG4gICAgcGFkZGluZy1sZWZ0OiAxNnB4O1xcbiAgXCJdLCBbXCJcXG4gICAgcGFkZGluZy1sZWZ0OiAxNnB4O1xcbiAgXCJdKSkpLFxyXG59O1xyXG52YXIgdGVtcGxhdGVPYmplY3RfMSwgdGVtcGxhdGVPYmplY3RfMjtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9c3R5bGVzLmpzLm1hcCJdfQ== */";
|
|
16286
|
+
|
|
16287
|
+
var _emotionSourceMap$e = process.env.NODE_ENV === "production" ? "" : "/*# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInN0eWxlcy50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFHdUIiLCJmaWxlIjoic3R5bGVzLnRzIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgX19tYWtlVGVtcGxhdGVPYmplY3QgfSBmcm9tIFwidHNsaWJcIjtcclxuaW1wb3J0IHsgY3NzIH0gZnJvbSAnQGVtb3Rpb24vY29yZSc7XHJcbmV4cG9ydCBkZWZhdWx0IHtcclxuICAgIHVzZXJDYXJkQ29udGFpbmVyOiBjc3ModGVtcGxhdGVPYmplY3RfMSB8fCAodGVtcGxhdGVPYmplY3RfMSA9IF9fbWFrZVRlbXBsYXRlT2JqZWN0KFtcIlxcbiAgICBkaXNwbGF5OiBmbGV4O1xcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtc3RhcnQ7XFxuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XFxuICBcIl0sIFtcIlxcbiAgICBkaXNwbGF5OiBmbGV4O1xcbiAgICBqdXN0aWZ5LWNvbnRlbnQ6IGZsZXgtc3RhcnQ7XFxuICAgIGFsaWduLWl0ZW1zOiBjZW50ZXI7XFxuICBcIl0pKSksXHJcbiAgICB1c2VySW5mb0NvbnRhaW5lcjogY3NzKHRlbXBsYXRlT2JqZWN0XzIgfHwgKHRlbXBsYXRlT2JqZWN0XzIgPSBfX21ha2VUZW1wbGF0ZU9iamVjdChbXCJcXG4gICAgcGFkZGluZy1sZWZ0OiAxNnB4O1xcbiAgXCJdLCBbXCJcXG4gICAgcGFkZGluZy1sZWZ0OiAxNnB4O1xcbiAgXCJdKSkpLFxyXG59O1xyXG52YXIgdGVtcGxhdGVPYmplY3RfMSwgdGVtcGxhdGVPYmplY3RfMjtcclxuLy8jIHNvdXJjZU1hcHBpbmdVUkw9c3R5bGVzLmpzLm1hcCJdfQ== */";
|
|
16288
|
+
var styles$e = {
|
|
16289
|
+
userCardContainer: /*#__PURE__*/css(templateObject_1$e || (templateObject_1$e = __makeTemplateObject(["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n ;label:userCardContainer;" + _emotionSourceMap$e], ["\n display: flex;\n justify-content: flex-start;\n align-items: center;\n ;label:userCardContainer;" + _emotionSourceMap$e]))),
|
|
16290
|
+
userInfoContainer: /*#__PURE__*/css(templateObject_2$a || (templateObject_2$a = __makeTemplateObject(["\n padding-left: 16px;\n ;label:userInfoContainer;" + _emotionSourceMap2$a], ["\n padding-left: 16px;\n ;label:userInfoContainer;" + _emotionSourceMap2$a])))
|
|
15671
16291
|
};
|
|
15672
16292
|
var templateObject_1$e, templateObject_2$a;
|
|
15673
16293
|
|
|
@@ -19571,24 +20191,34 @@ var InviteCard = function (_a) {
|
|
|
19571
20191
|
|
|
19572
20192
|
var PromotionWidget = function (_a) {
|
|
19573
20193
|
var title = _a.title,
|
|
20194
|
+
capsuleTitle = _a.capsuleTitle,
|
|
19574
20195
|
description = _a.description,
|
|
19575
20196
|
primaryAction = _a.primaryAction,
|
|
19576
20197
|
_b = _a.minWidth,
|
|
19577
20198
|
minWidth = _b === void 0 ? '320px' : _b,
|
|
19578
20199
|
_c = _a.width,
|
|
19579
|
-
width = _c === void 0 ? '100%' : _c
|
|
20200
|
+
width = _c === void 0 ? '100%' : _c,
|
|
20201
|
+
type = _a.type,
|
|
20202
|
+
children = _a.children,
|
|
20203
|
+
_d = _a.backgroundColor,
|
|
20204
|
+
backgroundColor = _d === void 0 ? 'background' : _d;
|
|
20205
|
+
var widget = useEntities().widget;
|
|
20206
|
+
var widgetProperties = widget[type];
|
|
19580
20207
|
return jsx(Card, {
|
|
19581
20208
|
display: "flex",
|
|
19582
20209
|
justifyItems: "start",
|
|
19583
20210
|
borderRadius: "default",
|
|
19584
|
-
backgroundColor:
|
|
20211
|
+
backgroundColor: backgroundColor,
|
|
19585
20212
|
inset: "x4",
|
|
19586
20213
|
width: width,
|
|
19587
20214
|
minWidth: minWidth
|
|
19588
20215
|
}, jsx(VStack, {
|
|
19589
20216
|
gap: "x3"
|
|
19590
20217
|
}, jsx(Flex, null, jsx(Capsule, {
|
|
19591
|
-
title:
|
|
20218
|
+
title: capsuleTitle,
|
|
20219
|
+
backgrounColor: widgetProperties.backgroundColor,
|
|
20220
|
+
fontColor: widgetProperties.fontColor,
|
|
20221
|
+
boxShadow: type === 'shadow' ? 'mediumLight' : undefined
|
|
19592
20222
|
})), jsx(Div, {
|
|
19593
20223
|
width: "100%"
|
|
19594
20224
|
}, jsx(Text, {
|
|
@@ -19604,50 +20234,6 @@ var PromotionWidget = function (_a) {
|
|
|
19604
20234
|
type: "caption"
|
|
19605
20235
|
}, description)), jsx(Flex, {
|
|
19606
20236
|
justifyContent: "flex-start"
|
|
19607
|
-
}, jsx(Button, {
|
|
19608
|
-
type: "success",
|
|
19609
|
-
onClick: function () {
|
|
19610
|
-
return primaryAction.onClick();
|
|
19611
|
-
}
|
|
19612
|
-
}, primaryAction.title))));
|
|
19613
|
-
};
|
|
19614
|
-
|
|
19615
|
-
var Widget = function (_a) {
|
|
19616
|
-
var title = _a.title,
|
|
19617
|
-
description = _a.description,
|
|
19618
|
-
primaryAction = _a.primaryAction,
|
|
19619
|
-
_b = _a.minWidth,
|
|
19620
|
-
minWidth = _b === void 0 ? '320px' : _b,
|
|
19621
|
-
_c = _a.width,
|
|
19622
|
-
width = _c === void 0 ? '100%' : _c,
|
|
19623
|
-
_d = _a.tag,
|
|
19624
|
-
tag = _d === void 0 ? 'New' : _d,
|
|
19625
|
-
children = _a.children;
|
|
19626
|
-
return jsx(Card, {
|
|
19627
|
-
display: "flex",
|
|
19628
|
-
justifyItems: "start",
|
|
19629
|
-
borderRadius: "default",
|
|
19630
|
-
backgroundColor: "foreground",
|
|
19631
|
-
inset: "x4",
|
|
19632
|
-
width: width,
|
|
19633
|
-
minWidth: minWidth
|
|
19634
|
-
}, jsx(VStack, {
|
|
19635
|
-
gap: "x3"
|
|
19636
|
-
}, jsx(Flex, null, jsx(Capsule, {
|
|
19637
|
-
title: tag,
|
|
19638
|
-
makeBlue: true
|
|
19639
|
-
})), jsx(Div, {
|
|
19640
|
-
width: "100%"
|
|
19641
|
-
}, jsx(Text, {
|
|
19642
|
-
weight: "bold",
|
|
19643
|
-
type: "subtitle"
|
|
19644
|
-
}, title)), jsx(Div, {
|
|
19645
|
-
width: "100%",
|
|
19646
|
-
flexWrap: "wrap"
|
|
19647
|
-
}, jsx(Text, {
|
|
19648
|
-
type: "caption"
|
|
19649
|
-
}, description)), jsx(Flex, {
|
|
19650
|
-
justifyContent: "flex-start"
|
|
19651
20237
|
}, primaryAction && jsx(Button, {
|
|
19652
20238
|
type: "success",
|
|
19653
20239
|
onClick: function () {
|
|
@@ -19994,22 +20580,236 @@ var AffiliateUpsalePromotionWidget = function (_a) {
|
|
|
19994
20580
|
title: getContent(type).buttonTitle,
|
|
19995
20581
|
onClick: getContent(type).buttonOnclick
|
|
19996
20582
|
},
|
|
20583
|
+
capsuleTitle: "New",
|
|
19997
20584
|
width: width,
|
|
19998
|
-
minWidth: minWidth
|
|
20585
|
+
minWidth: minWidth,
|
|
20586
|
+
type: "success"
|
|
19999
20587
|
});
|
|
20000
20588
|
};
|
|
20001
20589
|
|
|
20002
20590
|
var AffiliateShareWidget = function (_a) {
|
|
20003
20591
|
var shareLink = _a.shareLink;
|
|
20004
|
-
return jsx(
|
|
20005
|
-
|
|
20592
|
+
return jsx(PromotionWidget, {
|
|
20593
|
+
capsuleTitle: "Share",
|
|
20006
20594
|
title: "Share the $97 Postcard Program",
|
|
20007
|
-
|
|
20595
|
+
type: "secondary",
|
|
20596
|
+
description: "",
|
|
20597
|
+
backgroundColor: "foreground"
|
|
20008
20598
|
}, jsx(Clipboard, {
|
|
20009
20599
|
copyText: shareLink
|
|
20010
20600
|
}));
|
|
20011
20601
|
};
|
|
20012
20602
|
|
|
20603
|
+
var BulkSend = function (_a) {
|
|
20604
|
+
var quantity = _a.quantity,
|
|
20605
|
+
setQuantity = _a.setQuantity,
|
|
20606
|
+
quantityDescription = _a.quantityDescription,
|
|
20607
|
+
minQuantity = _a.minQuantity,
|
|
20608
|
+
maxQuantity = _a.maxQuantity,
|
|
20609
|
+
sliderFill = _a.sliderFill,
|
|
20610
|
+
sliderWidth = _a.sliderWidth,
|
|
20611
|
+
unitPrice = _a.unitPrice,
|
|
20612
|
+
salePrice = _a.salePrice,
|
|
20613
|
+
title = _a.title,
|
|
20614
|
+
description = _a.description,
|
|
20615
|
+
configurationListTitle = _a.configurationListTitle,
|
|
20616
|
+
configurationListSubtitle = _a.configurationListSubtitle,
|
|
20617
|
+
configurationListTag = _a.configurationListTag,
|
|
20618
|
+
configurationList = _a.configurationList,
|
|
20619
|
+
activeConfigurationId = _a.activeConfigurationId,
|
|
20620
|
+
setActiveConfigurationId = _a.setActiveConfigurationId,
|
|
20621
|
+
isActive = _a.isActive,
|
|
20622
|
+
setIsActive = _a.setIsActive,
|
|
20623
|
+
addDialog = _a.addDialog,
|
|
20624
|
+
removeDialog = _a.removeDialog;
|
|
20625
|
+
|
|
20626
|
+
var _b = React.useState(false),
|
|
20627
|
+
isAddDialogOpen = _b[0],
|
|
20628
|
+
setIsAddDialogOpen = _b[1];
|
|
20629
|
+
|
|
20630
|
+
var _c = React.useState(false),
|
|
20631
|
+
isRemoveDialogOpen = _c[0],
|
|
20632
|
+
setIsRemoveDialogOpen = _c[1];
|
|
20633
|
+
|
|
20634
|
+
var clearBulkOption = function () {
|
|
20635
|
+
setActiveConfigurationId('');
|
|
20636
|
+
setIsActive(false);
|
|
20637
|
+
};
|
|
20638
|
+
|
|
20639
|
+
var handleSetRemoveDialog = function () {
|
|
20640
|
+
setIsRemoveDialogOpen(true);
|
|
20641
|
+
};
|
|
20642
|
+
|
|
20643
|
+
var handleSetAddDialog = function () {
|
|
20644
|
+
setIsAddDialogOpen(true);
|
|
20645
|
+
};
|
|
20646
|
+
|
|
20647
|
+
return jsx(Flex, {
|
|
20648
|
+
inset: "x3",
|
|
20649
|
+
flexDirection: {
|
|
20650
|
+
xSmall: 'column',
|
|
20651
|
+
medium: 'row'
|
|
20652
|
+
}
|
|
20653
|
+
}, isAddDialogOpen && addDialog ? jsx(ConfirmDialog, {
|
|
20654
|
+
title: addDialog === null || addDialog === void 0 ? void 0 : addDialog.title,
|
|
20655
|
+
description: addDialog.description,
|
|
20656
|
+
isOpen: true,
|
|
20657
|
+
accept: {
|
|
20658
|
+
title: addDialog.accept.title,
|
|
20659
|
+
onClick: function () {
|
|
20660
|
+
setIsActive(true);
|
|
20661
|
+
setIsAddDialogOpen(false);
|
|
20662
|
+
addDialog.accept.onClick();
|
|
20663
|
+
}
|
|
20664
|
+
},
|
|
20665
|
+
decline: {
|
|
20666
|
+
title: 'Cancel',
|
|
20667
|
+
onClick: function () {
|
|
20668
|
+
setIsAddDialogOpen(false);
|
|
20669
|
+
}
|
|
20670
|
+
},
|
|
20671
|
+
requireScroll: false
|
|
20672
|
+
}) : isRemoveDialogOpen && removeDialog ? jsx(ConfirmDialog, {
|
|
20673
|
+
title: removeDialog === null || removeDialog === void 0 ? void 0 : removeDialog.title,
|
|
20674
|
+
description: removeDialog === null || removeDialog === void 0 ? void 0 : removeDialog.description,
|
|
20675
|
+
isOpen: true,
|
|
20676
|
+
accept: {
|
|
20677
|
+
title: removeDialog.accept.title,
|
|
20678
|
+
onClick: function () {
|
|
20679
|
+
clearBulkOption();
|
|
20680
|
+
removeDialog.accept.onClick();
|
|
20681
|
+
setIsRemoveDialogOpen(false);
|
|
20682
|
+
}
|
|
20683
|
+
},
|
|
20684
|
+
decline: {
|
|
20685
|
+
title: 'Cancel',
|
|
20686
|
+
onClick: function () {
|
|
20687
|
+
return setIsRemoveDialogOpen(false);
|
|
20688
|
+
}
|
|
20689
|
+
},
|
|
20690
|
+
requireScroll: false
|
|
20691
|
+
}) : undefined, jsx(Flex, {
|
|
20692
|
+
width: {
|
|
20693
|
+
xSmall: '100%',
|
|
20694
|
+
medium: '50%'
|
|
20695
|
+
},
|
|
20696
|
+
flexDirection: "column",
|
|
20697
|
+
outset: {
|
|
20698
|
+
top: {
|
|
20699
|
+
xSmall: 'x4',
|
|
20700
|
+
medium: 'x0'
|
|
20701
|
+
}
|
|
20702
|
+
},
|
|
20703
|
+
order: {
|
|
20704
|
+
xSmall: 2,
|
|
20705
|
+
medium: 0
|
|
20706
|
+
}
|
|
20707
|
+
}, jsx(Div, {
|
|
20708
|
+
outset: {
|
|
20709
|
+
bottom: 'x3'
|
|
20710
|
+
}
|
|
20711
|
+
}, jsx(Text, {
|
|
20712
|
+
type: {
|
|
20713
|
+
xSmall: 'largeBody',
|
|
20714
|
+
medium: 'subtitle',
|
|
20715
|
+
large: 'title'
|
|
20716
|
+
},
|
|
20717
|
+
weight: "bold",
|
|
20718
|
+
color: "primaryHeading",
|
|
20719
|
+
content: title
|
|
20720
|
+
}), jsx(Text, {
|
|
20721
|
+
type: {
|
|
20722
|
+
xSmall: 'caption',
|
|
20723
|
+
medium: 'body',
|
|
20724
|
+
large: 'largeBody'
|
|
20725
|
+
},
|
|
20726
|
+
content: description
|
|
20727
|
+
})), isActive && jsx(Flex, {
|
|
20728
|
+
flexDirection: "column",
|
|
20729
|
+
maxWidth: "450px"
|
|
20730
|
+
}, jsx(Div, {
|
|
20731
|
+
outset: {
|
|
20732
|
+
bottom: 'x3'
|
|
20733
|
+
}
|
|
20734
|
+
}, configurationListTag && jsx(Text, {
|
|
20735
|
+
type: "caption",
|
|
20736
|
+
color: "secondaryBrand",
|
|
20737
|
+
weight: "semiBold",
|
|
20738
|
+
content: configurationListTag
|
|
20739
|
+
}), jsx(Text, {
|
|
20740
|
+
type: {
|
|
20741
|
+
xSmall: 'largeBody',
|
|
20742
|
+
medium: 'subtitle',
|
|
20743
|
+
large: 'title'
|
|
20744
|
+
},
|
|
20745
|
+
weight: "bold",
|
|
20746
|
+
color: "primaryHeading",
|
|
20747
|
+
content: configurationListTitle,
|
|
20748
|
+
lineHeight: 1.4,
|
|
20749
|
+
outset: {
|
|
20750
|
+
bottom: 'x1'
|
|
20751
|
+
}
|
|
20752
|
+
}), jsx(Text, {
|
|
20753
|
+
type: {
|
|
20754
|
+
xSmall: 'caption',
|
|
20755
|
+
medium: 'body',
|
|
20756
|
+
large: 'largeBody'
|
|
20757
|
+
},
|
|
20758
|
+
content: configurationListSubtitle
|
|
20759
|
+
})), configurationList.map(function (config, index) {
|
|
20760
|
+
return jsx(React.Fragment, null, jsx(ConfigurationCard, {
|
|
20761
|
+
key: index,
|
|
20762
|
+
graphic: config.graphicType,
|
|
20763
|
+
title: config.configurationTitle,
|
|
20764
|
+
configurationId: config.configurationId,
|
|
20765
|
+
description: config.configurationDescription,
|
|
20766
|
+
onSelect: function () {
|
|
20767
|
+
setActiveConfigurationId(config.configurationId);
|
|
20768
|
+
},
|
|
20769
|
+
isSelected: config.configurationId === activeConfigurationId,
|
|
20770
|
+
cost: config.configurationPrice
|
|
20771
|
+
}), jsx(Spacer, {
|
|
20772
|
+
orientation: "vertical",
|
|
20773
|
+
space: "x2"
|
|
20774
|
+
}));
|
|
20775
|
+
}))), jsx(Flex, {
|
|
20776
|
+
width: {
|
|
20777
|
+
xSmall: '100%',
|
|
20778
|
+
medium: '50%'
|
|
20779
|
+
},
|
|
20780
|
+
justifyContent: "center",
|
|
20781
|
+
alignItems: "center",
|
|
20782
|
+
flexDirection: "column",
|
|
20783
|
+
order: {
|
|
20784
|
+
xSmall: 1,
|
|
20785
|
+
medium: 0
|
|
20786
|
+
}
|
|
20787
|
+
}, jsx(Flex, null, jsx(QuantitySlider, {
|
|
20788
|
+
unitPrice: unitPrice,
|
|
20789
|
+
salePrice: salePrice,
|
|
20790
|
+
quantityDescription: quantityDescription,
|
|
20791
|
+
min: minQuantity,
|
|
20792
|
+
width: sliderWidth,
|
|
20793
|
+
max: maxQuantity,
|
|
20794
|
+
quantity: quantity,
|
|
20795
|
+
setQuantity: function (quantity) {
|
|
20796
|
+
return setQuantity(quantity);
|
|
20797
|
+
},
|
|
20798
|
+
sliderFill: sliderFill
|
|
20799
|
+
})), jsx(Flex, {
|
|
20800
|
+
outset: {
|
|
20801
|
+
top: 'x4'
|
|
20802
|
+
}
|
|
20803
|
+
}, jsx(Button, {
|
|
20804
|
+
type: "secondary",
|
|
20805
|
+
size: "medium",
|
|
20806
|
+
title: isActive ? 'Remove Bulk Option' : 'Add Bulk Option',
|
|
20807
|
+
onClick: isActive ? handleSetRemoveDialog : handleSetAddDialog,
|
|
20808
|
+
fullWidth: true,
|
|
20809
|
+
outlined: true
|
|
20810
|
+
}))));
|
|
20811
|
+
};
|
|
20812
|
+
|
|
20013
20813
|
var useColorSwatch = function () {
|
|
20014
20814
|
var hocs = useEntities().hocs;
|
|
20015
20815
|
var colors = hocs.colors;
|
|
@@ -20034,4 +20834,4 @@ var useColorSwatch = function () {
|
|
|
20034
20834
|
};
|
|
20035
20835
|
};
|
|
20036
20836
|
|
|
20037
|
-
export { Accordion, AccordionBody, AccordionHeading, AccountMenu, AffiliateShareWidget, AffiliateUpsalePromotionWidget, Anchor, AnimatedCheckMark, AnimatedGrid, ArticleCard, Aside, Avatar, AwardCard, AwardGroupLabel, Badge, Banner, Bar, BlockQuote, Button, ButtonWithMenu, Capsule, Card, CardEntryDialog, Checkbox, Circle, CircleMenu, Clipboard, CloseButton, ColorOption, ConfirmDialog, Content, ContentPusher, ContextBar, CountdownTimer, Dialog, Div, DragBar, DragBox, Drawer, DropDownMenu, ExpandedAwardCard, Flex, Grid, GridItem, HStack, Icon, IconLink, Image, IncrementSetting, InfiniteScroller, InfoBlock, Input, InviteCard, LinkColumn, List, ListItem, Loader, LoadingSpinner, Logo, MasonryGrid, Menu, MenuItem, MenuSection, Navigation, NavigationPill, Option, OrderCard, Overlay, Page, PhoneInput, Pill, PinInput, PricingTile, Progress, PromotionWidget, QDSChrome, QuantumColorPicker, QuantumThemeWrapper, QuickLink, RadioOptionCard, RadioOptionList, RevealingContent, RowItem, Scrollable, ScrollingIndicator, Section, Select, SelectableCard, SelectableList, Separator, Sheet, Sidebar, Slider, SnapPoint, Spacer, Span, Sphere, StaticNavigation, Stepper, Stoplight, SubNavigation, Tab, Table, TableRow, Tabs, Text, Todo, Toggle, Tooltip, Transition, UpsaleSheet, UserCard, UserCardLoader, VStack, VideoPlayer,
|
|
20837
|
+
export { Accordion, AccordionBody, AccordionHeading, AccountMenu, AffiliateShareWidget, AffiliateUpsalePromotionWidget, Anchor, AnimatedCheckMark, AnimatedGrid, ArticleCard, Aside, Avatar, AwardCard, AwardGroupLabel, Badge, Banner, Bar, BlockQuote, BulkSend, Button, ButtonWithMenu, Capsule, Card, CardEntryDialog, Checkbox, Circle, CircleMenu, Clipboard, CloseButton, ColorOption, ConfigurationCard, ConfirmDialog, Content, ContentPusher, ContextBar, CountdownTimer, Dialog, Div, DownloadButton, DragBar, DragBox, Drawer, DropDownMenu, ExpandedAwardCard, FeatureBadge, Flex, Grid, GridItem, HStack, Icon, IconLink, Image, IncrementSetting, InfiniteScroller, InfoBlock, Input, InviteCard, LinkColumn, List, ListItem, Loader, LoadingSpinner, Logo, MasonryGrid, Menu, MenuItem, MenuSection, Navigation, NavigationPill, Option, OrderCard, Overlay, Page, PhoneInput, Pill, PinInput, PricingTile, Progress, PromotionWidget, QDSChrome, QuantitySlider, QuantumColorPicker, QuantumThemeWrapper, QuickLink, RadioOptionCard, RadioOptionList, RevealingContent, RowItem, Scrollable, ScrollingIndicator, Section, Select, SelectableCard, SelectableList, Separator, Sheet, Sidebar, Slider, SnapPoint, Spacer, Span, Sphere, StackedCards, StaticNavigation, Stepper, Stoplight, SubNavigation, Tab, Table, TableRow, Tabs, Text, Todo, Toggle, Tooltip, Transition, UpsaleSheet, UserCard, UserCardLoader, VStack, VideoPlayer, Zoom, entities$5 as bellaCadaeuxTheme, entities$4 as blue42Theme, getSize, entities$6 as greenerStillTheme, entities$3 as promptingUTheme, entities as sendOutCardsTheme, entities$7 as sendogoTheme, entities$2 as streamMarketingTheme, entities$1 as streamVATheme, useColorSwatch };
|