@cloudscape-design/components-themeable 3.0.460 → 3.0.462
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/lib/internal/manifest.json +1 -1
- package/lib/internal/scss/app-layout/content-wrapper/styles.scss +2 -2
- package/lib/internal/scss/app-layout/visual-refresh/layout.scss +2 -2
- package/lib/internal/scss/app-layout/visual-refresh/trigger-button.scss +3 -4
- package/lib/internal/scss/split-panel/styles.scss +2 -2
- package/lib/internal/template/app-layout/content-wrapper/styles.css.js +3 -3
- package/lib/internal/template/app-layout/content-wrapper/styles.scoped.css +8 -8
- package/lib/internal/template/app-layout/content-wrapper/styles.selectors.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh/context.js +3 -3
- package/lib/internal/template/app-layout/visual-refresh/context.js.map +1 -1
- package/lib/internal/template/app-layout/visual-refresh/styles.css.js +80 -80
- package/lib/internal/template/app-layout/visual-refresh/styles.scoped.css +188 -189
- package/lib/internal/template/app-layout/visual-refresh/styles.selectors.js +80 -80
- package/lib/internal/template/button/interfaces.d.ts +3 -2
- package/lib/internal/template/button/interfaces.d.ts.map +1 -1
- package/lib/internal/template/button/interfaces.js.map +1 -1
- package/lib/internal/template/button/internal.d.ts.map +1 -1
- package/lib/internal/template/button/internal.js +9 -0
- package/lib/internal/template/button/internal.js.map +1 -1
- package/lib/internal/template/button-dropdown/interfaces.d.ts +1 -1
- package/lib/internal/template/button-dropdown/interfaces.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +12 -12
- package/lib/internal/template/internal/environment.js +1 -1
- package/lib/internal/template/internal/environment.json +1 -1
- package/lib/internal/template/internal/generated/styles/tokens.js +3 -3
- package/lib/internal/template/internal/generated/theming/index.cjs +66 -55
- package/lib/internal/template/internal/generated/theming/index.js +66 -55
- package/lib/internal/template/internal/hooks/use-performance-marks.d.ts +3 -0
- package/lib/internal/template/internal/hooks/use-performance-marks.d.ts.map +1 -0
- package/lib/internal/template/internal/hooks/use-performance-marks.js +41 -0
- package/lib/internal/template/internal/hooks/use-performance-marks.js.map +1 -0
- package/lib/internal/template/popover/interfaces.d.ts +2 -1
- package/lib/internal/template/popover/interfaces.d.ts.map +1 -1
- package/lib/internal/template/popover/interfaces.js.map +1 -1
- package/lib/internal/template/select/interfaces.d.ts +1 -0
- package/lib/internal/template/select/interfaces.d.ts.map +1 -1
- package/lib/internal/template/select/interfaces.js.map +1 -1
- package/lib/internal/template/select/parts/multiselect-item.d.ts +3 -16
- package/lib/internal/template/select/parts/multiselect-item.d.ts.map +1 -1
- package/lib/internal/template/select/parts/multiselect-item.js +1 -1
- package/lib/internal/template/select/parts/multiselect-item.js.map +1 -1
- package/lib/internal/template/split-panel/styles.css.js +55 -55
- package/lib/internal/template/split-panel/styles.scoped.css +80 -80
- package/lib/internal/template/split-panel/styles.selectors.js +55 -55
- package/lib/internal/template/table/internal.d.ts.map +1 -1
- package/lib/internal/template/table/internal.js +10 -0
- package/lib/internal/template/table/internal.js.map +1 -1
- package/package.json +1 -1
|
@@ -890,16 +890,16 @@ module.exports.preset = {
|
|
|
890
890
|
"dark": "{colorGrey650}"
|
|
891
891
|
},
|
|
892
892
|
"colorBackgroundLayoutToggleActive": {
|
|
893
|
-
"light": "{
|
|
894
|
-
"dark": "{
|
|
893
|
+
"light": "{colorGrey600}",
|
|
894
|
+
"dark": "{colorGrey600}"
|
|
895
895
|
},
|
|
896
896
|
"colorBackgroundLayoutToggleDefault": {
|
|
897
|
-
"light": "{
|
|
898
|
-
"dark": "{
|
|
897
|
+
"light": "{colorGrey600}",
|
|
898
|
+
"dark": "{colorGrey600}"
|
|
899
899
|
},
|
|
900
900
|
"colorBackgroundLayoutToggleHover": {
|
|
901
|
-
"light": "{
|
|
902
|
-
"dark": "{
|
|
901
|
+
"light": "{colorGrey550}",
|
|
902
|
+
"dark": "{colorGrey550}"
|
|
903
903
|
},
|
|
904
904
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
905
905
|
"light": "{colorBlue600}",
|
|
@@ -2039,13 +2039,17 @@ module.exports.preset = {
|
|
|
2039
2039
|
"comfortable": "{spaceScaled2xXxxl}",
|
|
2040
2040
|
"compact": "{spaceScaled2xXxxl}"
|
|
2041
2041
|
},
|
|
2042
|
+
"spaceLayoutContentHorizontal": {
|
|
2043
|
+
"comfortable": "{spaceScaled2xXl}",
|
|
2044
|
+
"compact": "{spaceScaled2xXl}"
|
|
2045
|
+
},
|
|
2042
2046
|
"spaceLayoutToggleDiameter": {
|
|
2043
|
-
"comfortable": "
|
|
2044
|
-
"compact": "
|
|
2047
|
+
"comfortable": "36px",
|
|
2048
|
+
"compact": "36px"
|
|
2045
2049
|
},
|
|
2046
2050
|
"spaceLayoutTogglePadding": {
|
|
2047
|
-
"comfortable": "{
|
|
2048
|
-
"compact": "{
|
|
2051
|
+
"comfortable": "{spaceStaticS}",
|
|
2052
|
+
"compact": "{spaceStaticS}"
|
|
2049
2053
|
},
|
|
2050
2054
|
"spaceModalContentBottom": {
|
|
2051
2055
|
"comfortable": "{spaceScaled2xM}",
|
|
@@ -2477,13 +2481,17 @@ module.exports.preset = {
|
|
|
2477
2481
|
"comfortable": "{spaceScaled2xXxxl}",
|
|
2478
2482
|
"compact": "{spaceScaled2xXxxl}"
|
|
2479
2483
|
},
|
|
2484
|
+
"spaceLayoutContentHorizontal": {
|
|
2485
|
+
"comfortable": "{spaceScaled2xXl}",
|
|
2486
|
+
"compact": "{spaceScaled2xXl}"
|
|
2487
|
+
},
|
|
2480
2488
|
"spaceLayoutToggleDiameter": {
|
|
2481
|
-
"comfortable": "
|
|
2482
|
-
"compact": "
|
|
2489
|
+
"comfortable": "36px",
|
|
2490
|
+
"compact": "36px"
|
|
2483
2491
|
},
|
|
2484
2492
|
"spaceLayoutTogglePadding": {
|
|
2485
|
-
"comfortable": "{
|
|
2486
|
-
"compact": "{
|
|
2493
|
+
"comfortable": "{spaceStaticS}",
|
|
2494
|
+
"compact": "{spaceStaticS}"
|
|
2487
2495
|
},
|
|
2488
2496
|
"spaceModalContentBottom": {
|
|
2489
2497
|
"comfortable": "{spaceScaled2xM}",
|
|
@@ -2908,16 +2916,16 @@ module.exports.preset = {
|
|
|
2908
2916
|
"dark": "{colorGrey650}"
|
|
2909
2917
|
},
|
|
2910
2918
|
"colorBackgroundLayoutToggleActive": {
|
|
2911
|
-
"light": "{
|
|
2912
|
-
"dark": "{
|
|
2919
|
+
"light": "{colorGrey600}",
|
|
2920
|
+
"dark": "{colorGrey600}"
|
|
2913
2921
|
},
|
|
2914
2922
|
"colorBackgroundLayoutToggleDefault": {
|
|
2915
|
-
"light": "{
|
|
2916
|
-
"dark": "{
|
|
2923
|
+
"light": "{colorGrey600}",
|
|
2924
|
+
"dark": "{colorGrey600}"
|
|
2917
2925
|
},
|
|
2918
2926
|
"colorBackgroundLayoutToggleHover": {
|
|
2919
|
-
"light": "{
|
|
2920
|
-
"dark": "{
|
|
2927
|
+
"light": "{colorGrey550}",
|
|
2928
|
+
"dark": "{colorGrey550}"
|
|
2921
2929
|
},
|
|
2922
2930
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
2923
2931
|
"light": "{colorBlue500}",
|
|
@@ -3914,16 +3922,16 @@ module.exports.preset = {
|
|
|
3914
3922
|
"dark": "{colorGrey650}"
|
|
3915
3923
|
},
|
|
3916
3924
|
"colorBackgroundLayoutToggleActive": {
|
|
3917
|
-
"light": "{
|
|
3918
|
-
"dark": "{
|
|
3925
|
+
"light": "{colorGrey600}",
|
|
3926
|
+
"dark": "{colorGrey600}"
|
|
3919
3927
|
},
|
|
3920
3928
|
"colorBackgroundLayoutToggleDefault": {
|
|
3921
|
-
"light": "{
|
|
3922
|
-
"dark": "{
|
|
3929
|
+
"light": "{colorGrey600}",
|
|
3930
|
+
"dark": "{colorGrey600}"
|
|
3923
3931
|
},
|
|
3924
3932
|
"colorBackgroundLayoutToggleHover": {
|
|
3925
|
-
"light": "{
|
|
3926
|
-
"dark": "{
|
|
3933
|
+
"light": "{colorGrey550}",
|
|
3934
|
+
"dark": "{colorGrey550}"
|
|
3927
3935
|
},
|
|
3928
3936
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
3929
3937
|
"light": "{colorBlue500}",
|
|
@@ -4852,16 +4860,16 @@ module.exports.preset = {
|
|
|
4852
4860
|
"dark": "{colorGrey650}"
|
|
4853
4861
|
},
|
|
4854
4862
|
"colorBackgroundLayoutToggleActive": {
|
|
4855
|
-
"light": "{
|
|
4856
|
-
"dark": "{
|
|
4863
|
+
"light": "{colorGrey600}",
|
|
4864
|
+
"dark": "{colorGrey600}"
|
|
4857
4865
|
},
|
|
4858
4866
|
"colorBackgroundLayoutToggleDefault": {
|
|
4859
|
-
"light": "{
|
|
4860
|
-
"dark": "{
|
|
4867
|
+
"light": "{colorGrey600}",
|
|
4868
|
+
"dark": "{colorGrey600}"
|
|
4861
4869
|
},
|
|
4862
4870
|
"colorBackgroundLayoutToggleHover": {
|
|
4863
|
-
"light": "{
|
|
4864
|
-
"dark": "{
|
|
4871
|
+
"light": "{colorGrey550}",
|
|
4872
|
+
"dark": "{colorGrey550}"
|
|
4865
4873
|
},
|
|
4866
4874
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
4867
4875
|
"light": "{colorBlue600}",
|
|
@@ -5790,16 +5798,16 @@ module.exports.preset = {
|
|
|
5790
5798
|
"dark": "{colorGrey650}"
|
|
5791
5799
|
},
|
|
5792
5800
|
"colorBackgroundLayoutToggleActive": {
|
|
5793
|
-
"light": "{
|
|
5794
|
-
"dark": "{
|
|
5801
|
+
"light": "{colorGrey600}",
|
|
5802
|
+
"dark": "{colorGrey600}"
|
|
5795
5803
|
},
|
|
5796
5804
|
"colorBackgroundLayoutToggleDefault": {
|
|
5797
|
-
"light": "{
|
|
5798
|
-
"dark": "{
|
|
5805
|
+
"light": "{colorGrey600}",
|
|
5806
|
+
"dark": "{colorGrey600}"
|
|
5799
5807
|
},
|
|
5800
5808
|
"colorBackgroundLayoutToggleHover": {
|
|
5801
|
-
"light": "{
|
|
5802
|
-
"dark": "{
|
|
5809
|
+
"light": "{colorGrey550}",
|
|
5810
|
+
"dark": "{colorGrey550}"
|
|
5803
5811
|
},
|
|
5804
5812
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
5805
5813
|
"light": "{colorBlue600}",
|
|
@@ -6728,16 +6736,16 @@ module.exports.preset = {
|
|
|
6728
6736
|
"dark": "{colorGrey650}"
|
|
6729
6737
|
},
|
|
6730
6738
|
"colorBackgroundLayoutToggleActive": {
|
|
6731
|
-
"light": "{
|
|
6732
|
-
"dark": "{
|
|
6739
|
+
"light": "{colorGrey600}",
|
|
6740
|
+
"dark": "{colorGrey600}"
|
|
6733
6741
|
},
|
|
6734
6742
|
"colorBackgroundLayoutToggleDefault": {
|
|
6735
|
-
"light": "{
|
|
6736
|
-
"dark": "{
|
|
6743
|
+
"light": "{colorGrey600}",
|
|
6744
|
+
"dark": "{colorGrey600}"
|
|
6737
6745
|
},
|
|
6738
6746
|
"colorBackgroundLayoutToggleHover": {
|
|
6739
|
-
"light": "{
|
|
6740
|
-
"dark": "{
|
|
6747
|
+
"light": "{colorGrey550}",
|
|
6748
|
+
"dark": "{colorGrey550}"
|
|
6741
6749
|
},
|
|
6742
6750
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
6743
6751
|
"light": "{colorBlue600}",
|
|
@@ -7668,16 +7676,16 @@ module.exports.preset = {
|
|
|
7668
7676
|
"dark": "{colorGrey650}"
|
|
7669
7677
|
},
|
|
7670
7678
|
"colorBackgroundLayoutToggleActive": {
|
|
7671
|
-
"light": "{
|
|
7672
|
-
"dark": "{
|
|
7679
|
+
"light": "{colorGrey600}",
|
|
7680
|
+
"dark": "{colorGrey600}"
|
|
7673
7681
|
},
|
|
7674
7682
|
"colorBackgroundLayoutToggleDefault": {
|
|
7675
|
-
"light": "{
|
|
7676
|
-
"dark": "{
|
|
7683
|
+
"light": "{colorGrey600}",
|
|
7684
|
+
"dark": "{colorGrey600}"
|
|
7677
7685
|
},
|
|
7678
7686
|
"colorBackgroundLayoutToggleHover": {
|
|
7679
|
-
"light": "{
|
|
7680
|
-
"dark": "{
|
|
7687
|
+
"light": "{colorGrey550}",
|
|
7688
|
+
"dark": "{colorGrey550}"
|
|
7681
7689
|
},
|
|
7682
7690
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
7683
7691
|
"light": "{colorBlue500}",
|
|
@@ -8885,6 +8893,7 @@ module.exports.preset = {
|
|
|
8885
8893
|
"spaceGridGutter": "density",
|
|
8886
8894
|
"spaceKeyValueGap": "density",
|
|
8887
8895
|
"spaceLayoutContentBottom": "density",
|
|
8896
|
+
"spaceLayoutContentHorizontal": "density",
|
|
8888
8897
|
"spaceLayoutToggleDiameter": "density",
|
|
8889
8898
|
"spaceLayoutTogglePadding": "density",
|
|
8890
8899
|
"spaceModalContentBottom": "density",
|
|
@@ -10124,6 +10133,7 @@ module.exports.preset = {
|
|
|
10124
10133
|
"spaceGridGutter": "space-grid-gutter",
|
|
10125
10134
|
"spaceKeyValueGap": "space-key-value-gap",
|
|
10126
10135
|
"spaceLayoutContentBottom": "space-layout-content-bottom",
|
|
10136
|
+
"spaceLayoutContentHorizontal": "space-layout-content-horizontal",
|
|
10127
10137
|
"spaceLayoutToggleDiameter": "space-layout-toggle-diameter",
|
|
10128
10138
|
"spaceLayoutTogglePadding": "space-layout-toggle-padding",
|
|
10129
10139
|
"spaceModalContentBottom": "space-modal-content-bottom",
|
|
@@ -10452,9 +10462,9 @@ module.exports.preset = {
|
|
|
10452
10462
|
"colorBackgroundLayoutMobilePanel": "--color-background-layout-mobile-panel-0ussje",
|
|
10453
10463
|
"colorBackgroundLayoutPanelContent": "--color-background-layout-panel-content-t82vgh",
|
|
10454
10464
|
"colorBackgroundLayoutPanelHover": "--color-background-layout-panel-hover-n9apd3",
|
|
10455
|
-
"colorBackgroundLayoutToggleActive": "--color-background-layout-toggle-active-
|
|
10456
|
-
"colorBackgroundLayoutToggleDefault": "--color-background-layout-toggle-default-
|
|
10457
|
-
"colorBackgroundLayoutToggleHover": "--color-background-layout-toggle-hover-
|
|
10465
|
+
"colorBackgroundLayoutToggleActive": "--color-background-layout-toggle-active-aa8dko",
|
|
10466
|
+
"colorBackgroundLayoutToggleDefault": "--color-background-layout-toggle-default-o2evu2",
|
|
10467
|
+
"colorBackgroundLayoutToggleHover": "--color-background-layout-toggle-hover-awem6j",
|
|
10458
10468
|
"colorBackgroundLayoutToggleSelectedActive": "--color-background-layout-toggle-selected-active-xfk480",
|
|
10459
10469
|
"colorBackgroundLayoutToggleSelectedDefault": "--color-background-layout-toggle-selected-default-caco0q",
|
|
10460
10470
|
"colorBackgroundLayoutToggleSelectedHover": "--color-background-layout-toggle-selected-hover-kjak2q",
|
|
@@ -10804,8 +10814,9 @@ module.exports.preset = {
|
|
|
10804
10814
|
"spaceGridGutter": "--space-grid-gutter-ieqn7e",
|
|
10805
10815
|
"spaceKeyValueGap": "--space-key-value-gap-0517k5",
|
|
10806
10816
|
"spaceLayoutContentBottom": "--space-layout-content-bottom-noqzmw",
|
|
10807
|
-
"
|
|
10808
|
-
"
|
|
10817
|
+
"spaceLayoutContentHorizontal": "--space-layout-content-horizontal-7l52k3",
|
|
10818
|
+
"spaceLayoutToggleDiameter": "--space-layout-toggle-diameter-hb85rk",
|
|
10819
|
+
"spaceLayoutTogglePadding": "--space-layout-toggle-padding-lcu6qi",
|
|
10809
10820
|
"spaceModalContentBottom": "--space-modal-content-bottom-hqahub",
|
|
10810
10821
|
"spaceModalHorizontal": "--space-modal-horizontal-f89syl",
|
|
10811
10822
|
"spaceOptionIconBigTop": "--space-option-icon-big-top-hybljv",
|
|
@@ -890,16 +890,16 @@ export var preset = {
|
|
|
890
890
|
"dark": "{colorGrey650}"
|
|
891
891
|
},
|
|
892
892
|
"colorBackgroundLayoutToggleActive": {
|
|
893
|
-
"light": "{
|
|
894
|
-
"dark": "{
|
|
893
|
+
"light": "{colorGrey600}",
|
|
894
|
+
"dark": "{colorGrey600}"
|
|
895
895
|
},
|
|
896
896
|
"colorBackgroundLayoutToggleDefault": {
|
|
897
|
-
"light": "{
|
|
898
|
-
"dark": "{
|
|
897
|
+
"light": "{colorGrey600}",
|
|
898
|
+
"dark": "{colorGrey600}"
|
|
899
899
|
},
|
|
900
900
|
"colorBackgroundLayoutToggleHover": {
|
|
901
|
-
"light": "{
|
|
902
|
-
"dark": "{
|
|
901
|
+
"light": "{colorGrey550}",
|
|
902
|
+
"dark": "{colorGrey550}"
|
|
903
903
|
},
|
|
904
904
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
905
905
|
"light": "{colorBlue600}",
|
|
@@ -2039,13 +2039,17 @@ export var preset = {
|
|
|
2039
2039
|
"comfortable": "{spaceScaled2xXxxl}",
|
|
2040
2040
|
"compact": "{spaceScaled2xXxxl}"
|
|
2041
2041
|
},
|
|
2042
|
+
"spaceLayoutContentHorizontal": {
|
|
2043
|
+
"comfortable": "{spaceScaled2xXl}",
|
|
2044
|
+
"compact": "{spaceScaled2xXl}"
|
|
2045
|
+
},
|
|
2042
2046
|
"spaceLayoutToggleDiameter": {
|
|
2043
|
-
"comfortable": "
|
|
2044
|
-
"compact": "
|
|
2047
|
+
"comfortable": "36px",
|
|
2048
|
+
"compact": "36px"
|
|
2045
2049
|
},
|
|
2046
2050
|
"spaceLayoutTogglePadding": {
|
|
2047
|
-
"comfortable": "{
|
|
2048
|
-
"compact": "{
|
|
2051
|
+
"comfortable": "{spaceStaticS}",
|
|
2052
|
+
"compact": "{spaceStaticS}"
|
|
2049
2053
|
},
|
|
2050
2054
|
"spaceModalContentBottom": {
|
|
2051
2055
|
"comfortable": "{spaceScaled2xM}",
|
|
@@ -2477,13 +2481,17 @@ export var preset = {
|
|
|
2477
2481
|
"comfortable": "{spaceScaled2xXxxl}",
|
|
2478
2482
|
"compact": "{spaceScaled2xXxxl}"
|
|
2479
2483
|
},
|
|
2484
|
+
"spaceLayoutContentHorizontal": {
|
|
2485
|
+
"comfortable": "{spaceScaled2xXl}",
|
|
2486
|
+
"compact": "{spaceScaled2xXl}"
|
|
2487
|
+
},
|
|
2480
2488
|
"spaceLayoutToggleDiameter": {
|
|
2481
|
-
"comfortable": "
|
|
2482
|
-
"compact": "
|
|
2489
|
+
"comfortable": "36px",
|
|
2490
|
+
"compact": "36px"
|
|
2483
2491
|
},
|
|
2484
2492
|
"spaceLayoutTogglePadding": {
|
|
2485
|
-
"comfortable": "{
|
|
2486
|
-
"compact": "{
|
|
2493
|
+
"comfortable": "{spaceStaticS}",
|
|
2494
|
+
"compact": "{spaceStaticS}"
|
|
2487
2495
|
},
|
|
2488
2496
|
"spaceModalContentBottom": {
|
|
2489
2497
|
"comfortable": "{spaceScaled2xM}",
|
|
@@ -2908,16 +2916,16 @@ export var preset = {
|
|
|
2908
2916
|
"dark": "{colorGrey650}"
|
|
2909
2917
|
},
|
|
2910
2918
|
"colorBackgroundLayoutToggleActive": {
|
|
2911
|
-
"light": "{
|
|
2912
|
-
"dark": "{
|
|
2919
|
+
"light": "{colorGrey600}",
|
|
2920
|
+
"dark": "{colorGrey600}"
|
|
2913
2921
|
},
|
|
2914
2922
|
"colorBackgroundLayoutToggleDefault": {
|
|
2915
|
-
"light": "{
|
|
2916
|
-
"dark": "{
|
|
2923
|
+
"light": "{colorGrey600}",
|
|
2924
|
+
"dark": "{colorGrey600}"
|
|
2917
2925
|
},
|
|
2918
2926
|
"colorBackgroundLayoutToggleHover": {
|
|
2919
|
-
"light": "{
|
|
2920
|
-
"dark": "{
|
|
2927
|
+
"light": "{colorGrey550}",
|
|
2928
|
+
"dark": "{colorGrey550}"
|
|
2921
2929
|
},
|
|
2922
2930
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
2923
2931
|
"light": "{colorBlue500}",
|
|
@@ -3914,16 +3922,16 @@ export var preset = {
|
|
|
3914
3922
|
"dark": "{colorGrey650}"
|
|
3915
3923
|
},
|
|
3916
3924
|
"colorBackgroundLayoutToggleActive": {
|
|
3917
|
-
"light": "{
|
|
3918
|
-
"dark": "{
|
|
3925
|
+
"light": "{colorGrey600}",
|
|
3926
|
+
"dark": "{colorGrey600}"
|
|
3919
3927
|
},
|
|
3920
3928
|
"colorBackgroundLayoutToggleDefault": {
|
|
3921
|
-
"light": "{
|
|
3922
|
-
"dark": "{
|
|
3929
|
+
"light": "{colorGrey600}",
|
|
3930
|
+
"dark": "{colorGrey600}"
|
|
3923
3931
|
},
|
|
3924
3932
|
"colorBackgroundLayoutToggleHover": {
|
|
3925
|
-
"light": "{
|
|
3926
|
-
"dark": "{
|
|
3933
|
+
"light": "{colorGrey550}",
|
|
3934
|
+
"dark": "{colorGrey550}"
|
|
3927
3935
|
},
|
|
3928
3936
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
3929
3937
|
"light": "{colorBlue500}",
|
|
@@ -4852,16 +4860,16 @@ export var preset = {
|
|
|
4852
4860
|
"dark": "{colorGrey650}"
|
|
4853
4861
|
},
|
|
4854
4862
|
"colorBackgroundLayoutToggleActive": {
|
|
4855
|
-
"light": "{
|
|
4856
|
-
"dark": "{
|
|
4863
|
+
"light": "{colorGrey600}",
|
|
4864
|
+
"dark": "{colorGrey600}"
|
|
4857
4865
|
},
|
|
4858
4866
|
"colorBackgroundLayoutToggleDefault": {
|
|
4859
|
-
"light": "{
|
|
4860
|
-
"dark": "{
|
|
4867
|
+
"light": "{colorGrey600}",
|
|
4868
|
+
"dark": "{colorGrey600}"
|
|
4861
4869
|
},
|
|
4862
4870
|
"colorBackgroundLayoutToggleHover": {
|
|
4863
|
-
"light": "{
|
|
4864
|
-
"dark": "{
|
|
4871
|
+
"light": "{colorGrey550}",
|
|
4872
|
+
"dark": "{colorGrey550}"
|
|
4865
4873
|
},
|
|
4866
4874
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
4867
4875
|
"light": "{colorBlue600}",
|
|
@@ -5790,16 +5798,16 @@ export var preset = {
|
|
|
5790
5798
|
"dark": "{colorGrey650}"
|
|
5791
5799
|
},
|
|
5792
5800
|
"colorBackgroundLayoutToggleActive": {
|
|
5793
|
-
"light": "{
|
|
5794
|
-
"dark": "{
|
|
5801
|
+
"light": "{colorGrey600}",
|
|
5802
|
+
"dark": "{colorGrey600}"
|
|
5795
5803
|
},
|
|
5796
5804
|
"colorBackgroundLayoutToggleDefault": {
|
|
5797
|
-
"light": "{
|
|
5798
|
-
"dark": "{
|
|
5805
|
+
"light": "{colorGrey600}",
|
|
5806
|
+
"dark": "{colorGrey600}"
|
|
5799
5807
|
},
|
|
5800
5808
|
"colorBackgroundLayoutToggleHover": {
|
|
5801
|
-
"light": "{
|
|
5802
|
-
"dark": "{
|
|
5809
|
+
"light": "{colorGrey550}",
|
|
5810
|
+
"dark": "{colorGrey550}"
|
|
5803
5811
|
},
|
|
5804
5812
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
5805
5813
|
"light": "{colorBlue600}",
|
|
@@ -6728,16 +6736,16 @@ export var preset = {
|
|
|
6728
6736
|
"dark": "{colorGrey650}"
|
|
6729
6737
|
},
|
|
6730
6738
|
"colorBackgroundLayoutToggleActive": {
|
|
6731
|
-
"light": "{
|
|
6732
|
-
"dark": "{
|
|
6739
|
+
"light": "{colorGrey600}",
|
|
6740
|
+
"dark": "{colorGrey600}"
|
|
6733
6741
|
},
|
|
6734
6742
|
"colorBackgroundLayoutToggleDefault": {
|
|
6735
|
-
"light": "{
|
|
6736
|
-
"dark": "{
|
|
6743
|
+
"light": "{colorGrey600}",
|
|
6744
|
+
"dark": "{colorGrey600}"
|
|
6737
6745
|
},
|
|
6738
6746
|
"colorBackgroundLayoutToggleHover": {
|
|
6739
|
-
"light": "{
|
|
6740
|
-
"dark": "{
|
|
6747
|
+
"light": "{colorGrey550}",
|
|
6748
|
+
"dark": "{colorGrey550}"
|
|
6741
6749
|
},
|
|
6742
6750
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
6743
6751
|
"light": "{colorBlue600}",
|
|
@@ -7668,16 +7676,16 @@ export var preset = {
|
|
|
7668
7676
|
"dark": "{colorGrey650}"
|
|
7669
7677
|
},
|
|
7670
7678
|
"colorBackgroundLayoutToggleActive": {
|
|
7671
|
-
"light": "{
|
|
7672
|
-
"dark": "{
|
|
7679
|
+
"light": "{colorGrey600}",
|
|
7680
|
+
"dark": "{colorGrey600}"
|
|
7673
7681
|
},
|
|
7674
7682
|
"colorBackgroundLayoutToggleDefault": {
|
|
7675
|
-
"light": "{
|
|
7676
|
-
"dark": "{
|
|
7683
|
+
"light": "{colorGrey600}",
|
|
7684
|
+
"dark": "{colorGrey600}"
|
|
7677
7685
|
},
|
|
7678
7686
|
"colorBackgroundLayoutToggleHover": {
|
|
7679
|
-
"light": "{
|
|
7680
|
-
"dark": "{
|
|
7687
|
+
"light": "{colorGrey550}",
|
|
7688
|
+
"dark": "{colorGrey550}"
|
|
7681
7689
|
},
|
|
7682
7690
|
"colorBackgroundLayoutToggleSelectedActive": {
|
|
7683
7691
|
"light": "{colorBlue500}",
|
|
@@ -8885,6 +8893,7 @@ export var preset = {
|
|
|
8885
8893
|
"spaceGridGutter": "density",
|
|
8886
8894
|
"spaceKeyValueGap": "density",
|
|
8887
8895
|
"spaceLayoutContentBottom": "density",
|
|
8896
|
+
"spaceLayoutContentHorizontal": "density",
|
|
8888
8897
|
"spaceLayoutToggleDiameter": "density",
|
|
8889
8898
|
"spaceLayoutTogglePadding": "density",
|
|
8890
8899
|
"spaceModalContentBottom": "density",
|
|
@@ -10124,6 +10133,7 @@ export var preset = {
|
|
|
10124
10133
|
"spaceGridGutter": "space-grid-gutter",
|
|
10125
10134
|
"spaceKeyValueGap": "space-key-value-gap",
|
|
10126
10135
|
"spaceLayoutContentBottom": "space-layout-content-bottom",
|
|
10136
|
+
"spaceLayoutContentHorizontal": "space-layout-content-horizontal",
|
|
10127
10137
|
"spaceLayoutToggleDiameter": "space-layout-toggle-diameter",
|
|
10128
10138
|
"spaceLayoutTogglePadding": "space-layout-toggle-padding",
|
|
10129
10139
|
"spaceModalContentBottom": "space-modal-content-bottom",
|
|
@@ -10452,9 +10462,9 @@ export var preset = {
|
|
|
10452
10462
|
"colorBackgroundLayoutMobilePanel": "--color-background-layout-mobile-panel-0ussje",
|
|
10453
10463
|
"colorBackgroundLayoutPanelContent": "--color-background-layout-panel-content-t82vgh",
|
|
10454
10464
|
"colorBackgroundLayoutPanelHover": "--color-background-layout-panel-hover-n9apd3",
|
|
10455
|
-
"colorBackgroundLayoutToggleActive": "--color-background-layout-toggle-active-
|
|
10456
|
-
"colorBackgroundLayoutToggleDefault": "--color-background-layout-toggle-default-
|
|
10457
|
-
"colorBackgroundLayoutToggleHover": "--color-background-layout-toggle-hover-
|
|
10465
|
+
"colorBackgroundLayoutToggleActive": "--color-background-layout-toggle-active-aa8dko",
|
|
10466
|
+
"colorBackgroundLayoutToggleDefault": "--color-background-layout-toggle-default-o2evu2",
|
|
10467
|
+
"colorBackgroundLayoutToggleHover": "--color-background-layout-toggle-hover-awem6j",
|
|
10458
10468
|
"colorBackgroundLayoutToggleSelectedActive": "--color-background-layout-toggle-selected-active-xfk480",
|
|
10459
10469
|
"colorBackgroundLayoutToggleSelectedDefault": "--color-background-layout-toggle-selected-default-caco0q",
|
|
10460
10470
|
"colorBackgroundLayoutToggleSelectedHover": "--color-background-layout-toggle-selected-hover-kjak2q",
|
|
@@ -10804,8 +10814,9 @@ export var preset = {
|
|
|
10804
10814
|
"spaceGridGutter": "--space-grid-gutter-ieqn7e",
|
|
10805
10815
|
"spaceKeyValueGap": "--space-key-value-gap-0517k5",
|
|
10806
10816
|
"spaceLayoutContentBottom": "--space-layout-content-bottom-noqzmw",
|
|
10807
|
-
"
|
|
10808
|
-
"
|
|
10817
|
+
"spaceLayoutContentHorizontal": "--space-layout-content-horizontal-7l52k3",
|
|
10818
|
+
"spaceLayoutToggleDiameter": "--space-layout-toggle-diameter-hb85rk",
|
|
10819
|
+
"spaceLayoutTogglePadding": "--space-layout-toggle-padding-lcu6qi",
|
|
10809
10820
|
"spaceModalContentBottom": "--space-modal-content-bottom-hqahub",
|
|
10810
10821
|
"spaceModalHorizontal": "--space-modal-horizontal-f89syl",
|
|
10811
10822
|
"spaceOptionIconBigTop": "--space-option-icon-big-top-hybljv",
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
export declare function usePerformanceMarks(name: string, enabled: boolean, elementRef: React.RefObject<HTMLElement>, getDetails: () => Record<string, string | boolean | number | undefined>, dependencies: React.DependencyList): void;
|
|
3
|
+
//# sourceMappingURL=use-performance-marks.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-performance-marks.d.ts","sourceRoot":"lib/default/","sources":["internal/hooks/use-performance-marks.ts"],"names":[],"mappings":";AAOA,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,OAAO,EAChB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,WAAW,CAAC,EACxC,UAAU,EAAE,MAAM,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,SAAS,CAAC,EACvE,YAAY,EAAE,KAAK,CAAC,cAAc,QAsDnC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import { useEffect } from 'react';
|
|
4
|
+
import { useUniqueId } from './use-unique-id';
|
|
5
|
+
import { useEffectOnUpdate } from './use-effect-on-update';
|
|
6
|
+
export function usePerformanceMarks(name, enabled, elementRef, getDetails, dependencies) {
|
|
7
|
+
const id = useUniqueId();
|
|
8
|
+
useEffect(() => {
|
|
9
|
+
if (!enabled || !elementRef.current) {
|
|
10
|
+
return;
|
|
11
|
+
}
|
|
12
|
+
const elementVisible = elementRef.current.offsetWidth > 0 &&
|
|
13
|
+
elementRef.current.offsetHeight > 0 &&
|
|
14
|
+
getComputedStyle(elementRef.current).visibility !== 'hidden';
|
|
15
|
+
if (!elementVisible) {
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
const renderedMarkName = `${name}Rendered`;
|
|
19
|
+
performance.mark(renderedMarkName, {
|
|
20
|
+
detail: Object.assign({ source: 'awsui', instanceId: id }, getDetails()),
|
|
21
|
+
});
|
|
22
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
23
|
+
}, []);
|
|
24
|
+
useEffectOnUpdate(() => {
|
|
25
|
+
if (!enabled || !elementRef.current) {
|
|
26
|
+
return;
|
|
27
|
+
}
|
|
28
|
+
const elementVisible = elementRef.current.offsetWidth > 0 &&
|
|
29
|
+
elementRef.current.offsetHeight > 0 &&
|
|
30
|
+
getComputedStyle(elementRef.current).visibility !== 'hidden';
|
|
31
|
+
if (!elementVisible) {
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
const updatedMarkName = `${name}Updated`;
|
|
35
|
+
performance.mark(updatedMarkName, {
|
|
36
|
+
detail: Object.assign({ source: 'awsui', instanceId: id }, getDetails()),
|
|
37
|
+
});
|
|
38
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
39
|
+
}, dependencies);
|
|
40
|
+
}
|
|
41
|
+
//# sourceMappingURL=use-performance-marks.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-performance-marks.js","sourceRoot":"lib/default/","sources":["internal/hooks/use-performance-marks.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAC9C,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAE3D,MAAM,UAAU,mBAAmB,CACjC,IAAY,EACZ,OAAgB,EAChB,UAAwC,EACxC,UAAuE,EACvE,YAAkC;IAElC,MAAM,EAAE,GAAG,WAAW,EAAE,CAAC;IAEzB,SAAS,CAAC,GAAG,EAAE;QACb,IAAI,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE;YACnC,OAAO;SACR;QAED,MAAM,cAAc,GAClB,UAAU,CAAC,OAAO,CAAC,WAAW,GAAG,CAAC;YAClC,UAAU,CAAC,OAAO,CAAC,YAAY,GAAG,CAAC;YACnC,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,UAAU,KAAK,QAAQ,CAAC;QAE/D,IAAI,CAAC,cAAc,EAAE;YACnB,OAAO;SACR;QAED,MAAM,gBAAgB,GAAG,GAAG,IAAI,UAAU,CAAC;QAE3C,WAAW,CAAC,IAAI,CAAC,gBAAgB,EAAE;YACjC,MAAM,kBACJ,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,EAAE,IACX,UAAU,EAAE,CAChB;SACF,CAAC,CAAC;QACH,uDAAuD;IACzD,CAAC,EAAE,EAAE,CAAC,CAAC;IAEP,iBAAiB,CAAC,GAAG,EAAE;QACrB,IAAI,CAAC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,EAAE;YACnC,OAAO;SACR;QACD,MAAM,cAAc,GAClB,UAAU,CAAC,OAAO,CAAC,WAAW,GAAG,CAAC;YAClC,UAAU,CAAC,OAAO,CAAC,YAAY,GAAG,CAAC;YACnC,gBAAgB,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,UAAU,KAAK,QAAQ,CAAC;QAE/D,IAAI,CAAC,cAAc,EAAE;YACnB,OAAO;SACR;QAED,MAAM,eAAe,GAAG,GAAG,IAAI,SAAS,CAAC;QAEzC,WAAW,CAAC,IAAI,CAAC,eAAe,EAAE;YAChC,MAAM,kBACJ,MAAM,EAAE,OAAO,EACf,UAAU,EAAE,EAAE,IACX,UAAU,EAAE,CAChB;SACF,CAAC,CAAC;QACH,uDAAuD;IACzD,CAAC,EAAE,YAAY,CAAC,CAAC;AACnB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n\nimport { useEffect } from 'react';\nimport { useUniqueId } from './use-unique-id';\nimport { useEffectOnUpdate } from './use-effect-on-update';\n\nexport function usePerformanceMarks(\n name: string,\n enabled: boolean,\n elementRef: React.RefObject<HTMLElement>,\n getDetails: () => Record<string, string | boolean | number | undefined>,\n dependencies: React.DependencyList\n) {\n const id = useUniqueId();\n\n useEffect(() => {\n if (!enabled || !elementRef.current) {\n return;\n }\n\n const elementVisible =\n elementRef.current.offsetWidth > 0 &&\n elementRef.current.offsetHeight > 0 &&\n getComputedStyle(elementRef.current).visibility !== 'hidden';\n\n if (!elementVisible) {\n return;\n }\n\n const renderedMarkName = `${name}Rendered`;\n\n performance.mark(renderedMarkName, {\n detail: {\n source: 'awsui',\n instanceId: id,\n ...getDetails(),\n },\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n\n useEffectOnUpdate(() => {\n if (!enabled || !elementRef.current) {\n return;\n }\n const elementVisible =\n elementRef.current.offsetWidth > 0 &&\n elementRef.current.offsetHeight > 0 &&\n getComputedStyle(elementRef.current).visibility !== 'hidden';\n\n if (!elementVisible) {\n return;\n }\n\n const updatedMarkName = `${name}Updated`;\n\n performance.mark(updatedMarkName, {\n detail: {\n source: 'awsui',\n instanceId: id,\n ...getDetails(),\n },\n });\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, dependencies);\n}\n"]}
|
|
@@ -23,7 +23,8 @@ export interface PopoverProps extends BaseComponentProps {
|
|
|
23
23
|
*/
|
|
24
24
|
triggerType?: PopoverProps.TriggerType;
|
|
25
25
|
/**
|
|
26
|
-
* Adds
|
|
26
|
+
* Adds `aria-label` to the text trigger button. Use this to provide an accessible name for triggers
|
|
27
|
+
* that don't have visible text, and to distinguish between multiple triggers with identical visible text.
|
|
27
28
|
*/
|
|
28
29
|
triggerAriaLabel?: string;
|
|
29
30
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["popover/interfaces.ts"],"names":[],"mappings":";AAEA,OAAO,EAAE,k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,WAAW,GACX,UAAU,GACV,eAAe,GACf,cAAc,GACd,aAAa,CAAC;AAElB,MAAM,WAAW,MAAM;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,MAAM,CAAC;AAElD,yBAAiB,YAAY,CAAC;IAC5B,KAAY,QAAQ,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAAC;IAC3D,KAAY,IAAI,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;IAChD,KAAY,WAAW,GAAG,MAAM,GAAG,QAAQ,CAAC;CAC7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["popover/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface PopoverProps extends BaseComponentProps {\n /**\n * Determines where the popover is displayed when opened, relative to the trigger.\n * If the popover doesn't have enough space to open in this direction, it\n * automatically chooses a better direction based on available space.\n */\n position?: PopoverProps.Position;\n\n /**\n * Determines the maximum width for the popover.\n */\n size?: PopoverProps.Size;\n\n /**\n * Expands the popover body to its maximum width regardless of content.\n * For example, use it when you need to place a column layout in the popover content.\n */\n fixedWidth?: boolean;\n\n /**\n * Specifies the type of content inside the trigger region. The following types are available:\n * - `text` - Use for inline text triggers.\n * - `custom` - Use for the [button](/components/button/) component.\n */\n triggerType?: PopoverProps.TriggerType;\n\n /**\n * Adds
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"lib/default/","sources":["popover/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { BaseComponentProps } from '../internal/base-component';\n\nexport interface PopoverProps extends BaseComponentProps {\n /**\n * Determines where the popover is displayed when opened, relative to the trigger.\n * If the popover doesn't have enough space to open in this direction, it\n * automatically chooses a better direction based on available space.\n */\n position?: PopoverProps.Position;\n\n /**\n * Determines the maximum width for the popover.\n */\n size?: PopoverProps.Size;\n\n /**\n * Expands the popover body to its maximum width regardless of content.\n * For example, use it when you need to place a column layout in the popover content.\n */\n fixedWidth?: boolean;\n\n /**\n * Specifies the type of content inside the trigger region. The following types are available:\n * - `text` - Use for inline text triggers.\n * - `custom` - Use for the [button](/components/button/) component.\n */\n triggerType?: PopoverProps.TriggerType;\n\n /**\n * Adds `aria-label` to the text trigger button. Use this to provide an accessible name for triggers\n * that don't have visible text, and to distinguish between multiple triggers with identical visible text.\n */\n triggerAriaLabel?: string;\n\n /**\n * Element that triggers the popover when selected by the user.\n * @displayname trigger\n */\n children?: React.ReactNode;\n\n /**\n * Specifies optional header text for the popover.\n */\n header?: string;\n\n /**\n * Content of the popover.\n */\n content?: React.ReactNode;\n\n /**\n * Determines whether the dismiss button is shown in the popover body.\n */\n dismissButton?: boolean;\n\n /**\n * Adds an `aria-label` to the dismiss button for accessibility.\n * @i18n\n */\n dismissAriaLabel?: string;\n\n /**\n * By default, the popover is constrained to fit inside its parent\n * [stacking context](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning/Understanding_z_index/The_stacking_context).\n * Enabling this property will allow the popover to be rendered in the root stack context using\n * [React Portals](https://reactjs.org/docs/portals.html).\n * Enable this setting if you need the popover to ignore its parent stacking context, such as in side navigation.\n *\n * Note: Using popover rendered with portal within a Modal is not supported.\n */\n renderWithPortal?: boolean;\n}\n\n/**\n * The position the popover is actually in, given space constraints.\n */\nexport type InternalPosition =\n | 'right-top'\n | 'right-bottom'\n | 'left-top'\n | 'left-bottom'\n | 'top-center'\n | 'top-right'\n | 'top-left'\n | 'bottom-center'\n | 'bottom-right'\n | 'bottom-left';\n\nexport interface Offset {\n left: number;\n top: number;\n}\n\nexport interface BoundingBox {\n width: number;\n height: number;\n}\n\nexport type BoundingOffset = BoundingBox & Offset;\n\nexport namespace PopoverProps {\n export type Position = 'top' | 'right' | 'bottom' | 'left';\n export type Size = 'small' | 'medium' | 'large';\n export type TriggerType = 'text' | 'custom';\n}\n"]}
|
|
@@ -94,6 +94,7 @@ export interface BaseSelectProps extends BaseDropdownHostProps, BaseComponentPro
|
|
|
94
94
|
ariaRequired?: boolean;
|
|
95
95
|
/**
|
|
96
96
|
* Adds `aria-label` to the select element.
|
|
97
|
+
* Use this if you don't have a visible label for this control.
|
|
97
98
|
*/
|
|
98
99
|
ariaLabel?: string;
|
|
99
100
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"lib/default/","sources":["select/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,+BAA+B,EAAE,MAAM,wCAAwC,CAAC;AACzF,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,WAAW,IAAI,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AAClH,OAAO,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAC;AACxF,OAAO,EACL,qBAAqB,EACrB,oBAAoB,EACpB,sBAAsB,EACvB,MAAM,4CAA4C,CAAC;AAEpD,MAAM,WAAW,eACf,SAAQ,qBAAqB,EAC3B,kBAAkB,EAClB,+BAA+B,EAC/B,mBAAmB;IACrB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;QA8BI;IACJ,OAAO,CAAC,EAAE,WAAW,CAAC,OAAO,CAAC;IAC9B;;;;;;;;;;;;;;;QAeI;IACJ,aAAa,CAAC,EAAE,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