@cloudscape-design/components 3.0.1134 → 3.0.1135
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/internal/base-component/styles.scoped.css +7 -1
- package/internal/environment.js +2 -2
- package/internal/environment.json +2 -2
- package/internal/generated/styles/tokens.d.ts +2 -0
- package/internal/generated/styles/tokens.js +2 -0
- package/internal/generated/theming/index.cjs +45 -0
- package/internal/generated/theming/index.cjs.d.ts +9 -0
- package/internal/generated/theming/index.d.ts +9 -0
- package/internal/generated/theming/index.js +45 -0
- package/internal/hooks/use-mobile/index.d.ts.map +1 -1
- package/internal/hooks/use-mobile/index.js +3 -1
- package/internal/hooks/use-mobile/index.js.map +1 -1
- package/internal/manifest.json +1 -1
- package/package.json +1 -1
- package/tree-view/index.d.ts +4 -1
- package/tree-view/index.d.ts.map +1 -1
- package/tree-view/index.js +5 -3
- package/tree-view/index.js.map +1 -1
- package/tree-view/interfaces.d.ts +5 -0
- package/tree-view/interfaces.d.ts.map +1 -1
- package/tree-view/interfaces.js.map +1 -1
- package/tree-view/internal.d.ts +1 -0
- package/tree-view/internal.d.ts.map +1 -1
- package/tree-view/internal.js +2 -2
- package/tree-view/internal.js.map +1 -1
- package/tree-view/tree-item/index.d.ts +2 -1
- package/tree-view/tree-item/index.d.ts.map +1 -1
- package/tree-view/tree-item/index.js +10 -5
- package/tree-view/tree-item/index.js.map +1 -1
- package/tree-view/tree-item/styles.css.js +9 -9
- package/tree-view/tree-item/styles.scoped.css +14 -15
- package/tree-view/tree-item/styles.selectors.js +9 -9
- package/tree-view/vertical-connector/index.d.ts +7 -0
- package/tree-view/vertical-connector/index.d.ts.map +1 -0
- package/tree-view/vertical-connector/index.js +11 -0
- package/tree-view/vertical-connector/index.js.map +1 -0
- package/tree-view/vertical-connector/styles.css.js +8 -0
- package/tree-view/vertical-connector/styles.scoped.css +25 -0
- package/tree-view/vertical-connector/styles.selectors.js +9 -0
|
@@ -434,6 +434,7 @@ body {
|
|
|
434
434
|
--color-dropzone-border-default-k648ha:#8c8c94;
|
|
435
435
|
--color-dropzone-border-hover-otpag5:#002b66;
|
|
436
436
|
--color-gap-global-drawer-nh699a:#ebebf0;
|
|
437
|
+
--color-tree-view-connector-line-1usxvn:#8c8c94;
|
|
437
438
|
--font-box-value-large-weight-wr00sw:700;
|
|
438
439
|
--font-button-letter-spacing-ufowe3:0.005em;
|
|
439
440
|
--font-chart-detail-size-9qr25q:12px;
|
|
@@ -631,6 +632,7 @@ body {
|
|
|
631
632
|
--space-table-header-tools-bottom-d9u5kf:0px;
|
|
632
633
|
--space-table-header-tools-full-page-bottom-9m47g6:4px;
|
|
633
634
|
--space-table-horizontal-suurzj:20px;
|
|
635
|
+
--space-tree-view-indentation-gmy1k3:20px;
|
|
634
636
|
--space-tile-gutter-bi2bdv:24px;
|
|
635
637
|
--space-scaled-2x-xxs-e79hr1:4px;
|
|
636
638
|
--space-scaled-2x-m-4euqsk:16px;
|
|
@@ -1056,6 +1058,7 @@ body {
|
|
|
1056
1058
|
--color-dropzone-border-default-k648ha:#656871;
|
|
1057
1059
|
--color-dropzone-border-hover-otpag5:#75cfff;
|
|
1058
1060
|
--color-gap-global-drawer-nh699a:#0f141a;
|
|
1061
|
+
--color-tree-view-connector-line-1usxvn:#dedee3;
|
|
1059
1062
|
--shadow-container-53ltfv:0px 1px 8px 2px rgba(0, 7, 22, 0.6);
|
|
1060
1063
|
--shadow-container-active-ypjjoc:0px 1px 1px 1px #192534, 0px 6px 36px #00040c;
|
|
1061
1064
|
--shadow-dropdown-isf0w4:0px 4px 20px 1px rgba(0, 4, 12, 1);
|
|
@@ -1377,6 +1380,7 @@ body {
|
|
|
1377
1380
|
--color-dropzone-border-default-k648ha:#656871;
|
|
1378
1381
|
--color-dropzone-border-hover-otpag5:#75cfff;
|
|
1379
1382
|
--color-gap-global-drawer-nh699a:#0f141a;
|
|
1383
|
+
--color-tree-view-connector-line-1usxvn:#dedee3;
|
|
1380
1384
|
}
|
|
1381
1385
|
|
|
1382
1386
|
.awsui-context-content-header:not(#\9) {
|
|
@@ -1593,6 +1597,7 @@ body {
|
|
|
1593
1597
|
--color-dropzone-border-default-k648ha:#656871;
|
|
1594
1598
|
--color-dropzone-border-hover-otpag5:#75cfff;
|
|
1595
1599
|
--color-gap-global-drawer-nh699a:#0f141a;
|
|
1600
|
+
--color-tree-view-connector-line-1usxvn:#dedee3;
|
|
1596
1601
|
--shadow-container-53ltfv:0px 1px 8px 2px rgba(0, 7, 22, 0.6);
|
|
1597
1602
|
--shadow-container-active-ypjjoc:0px 1px 1px 1px #192534, 0px 6px 36px #00040c;
|
|
1598
1603
|
--shadow-dropdown-isf0w4:0px 4px 20px 1px rgba(0, 4, 12, 1);
|
|
@@ -1919,6 +1924,7 @@ body {
|
|
|
1919
1924
|
--color-dropzone-border-default-k648ha:#656871;
|
|
1920
1925
|
--color-dropzone-border-hover-otpag5:#75cfff;
|
|
1921
1926
|
--color-gap-global-drawer-nh699a:#0f141a;
|
|
1927
|
+
--color-tree-view-connector-line-1usxvn:#dedee3;
|
|
1922
1928
|
}
|
|
1923
1929
|
|
|
1924
1930
|
.awsui-context-app-layout-toolbar:not(#\9) {
|
|
@@ -2051,5 +2057,5 @@ body {
|
|
|
2051
2057
|
}
|
|
2052
2058
|
}
|
|
2053
2059
|
:root {
|
|
2054
|
-
--awsui-version-info-
|
|
2060
|
+
--awsui-version-info-fdcaf655: true;
|
|
2055
2061
|
}
|
package/internal/environment.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export var PACKAGE_SOURCE = "components";
|
|
2
|
-
export var PACKAGE_VERSION = "3.0.0 (
|
|
3
|
-
export var GIT_SHA = "
|
|
2
|
+
export var PACKAGE_VERSION = "3.0.0 (fdcaf655)";
|
|
3
|
+
export var GIT_SHA = "fdcaf655";
|
|
4
4
|
export var THEME = "open-source-visual-refresh";
|
|
5
5
|
export var SYSTEM = "console";
|
|
6
6
|
export var ALWAYS_VISUAL_REFRESH = true;
|
|
@@ -545,6 +545,7 @@ export const colorDropzoneTextHover: string;
|
|
|
545
545
|
export const colorDropzoneBorderDefault: string;
|
|
546
546
|
export const colorDropzoneBorderHover: string;
|
|
547
547
|
export const colorGapGlobalDrawer: string;
|
|
548
|
+
export const colorTreeViewConnectorLine: string;
|
|
548
549
|
export const fontBoxValueLargeWeight: string;
|
|
549
550
|
export const fontButtonLetterSpacing: string;
|
|
550
551
|
export const fontChartDetailSize: string;
|
|
@@ -746,6 +747,7 @@ export const spaceTableHeaderHorizontal: string;
|
|
|
746
747
|
export const spaceTableHeaderToolsBottom: string;
|
|
747
748
|
export const spaceTableHeaderToolsFullPageBottom: string;
|
|
748
749
|
export const spaceTableHorizontal: string;
|
|
750
|
+
export const spaceTreeViewIndentation: string;
|
|
749
751
|
export const spaceTileGutter: string;
|
|
750
752
|
export const spaceScaled2xNone: string;
|
|
751
753
|
export const spaceScaled2xXxxs: string;
|
|
@@ -545,6 +545,7 @@ export var colorDropzoneTextHover = "var(--color-dropzone-text-hover-asw3rt, #42
|
|
|
545
545
|
export var colorDropzoneBorderDefault = "var(--color-dropzone-border-default-k648ha, #8c8c94)";
|
|
546
546
|
export var colorDropzoneBorderHover = "var(--color-dropzone-border-hover-otpag5, #002b66)";
|
|
547
547
|
export var colorGapGlobalDrawer = "var(--color-gap-global-drawer-nh699a, #ebebf0)";
|
|
548
|
+
export var colorTreeViewConnectorLine = "var(--color-tree-view-connector-line-1usxvn, #8c8c94)";
|
|
548
549
|
export var fontBoxValueLargeWeight = "var(--font-box-value-large-weight-wr00sw, 700)";
|
|
549
550
|
export var fontButtonLetterSpacing = "var(--font-button-letter-spacing-ufowe3, 0.005em)";
|
|
550
551
|
export var fontChartDetailSize = "var(--font-chart-detail-size-9qr25q, 12px)";
|
|
@@ -746,6 +747,7 @@ export var spaceTableHeaderHorizontal = "var(--space-table-header-horizontal-kb5
|
|
|
746
747
|
export var spaceTableHeaderToolsBottom = "var(--space-table-header-tools-bottom-d9u5kf, 0px)";
|
|
747
748
|
export var spaceTableHeaderToolsFullPageBottom = "var(--space-table-header-tools-full-page-bottom-9m47g6, 4px)";
|
|
748
749
|
export var spaceTableHorizontal = "var(--space-table-horizontal-suurzj, 20px)";
|
|
750
|
+
export var spaceTreeViewIndentation = "var(--space-tree-view-indentation-gmy1k3, 20px)";
|
|
749
751
|
export var spaceTileGutter = "var(--space-tile-gutter-bi2bdv, 24px)";
|
|
750
752
|
export var spaceScaled2xNone = "var(--space-scaled-2x-none-987dp7, 0px)";
|
|
751
753
|
export var spaceScaled2xXxxs = "var(--space-scaled-2x-xxxs-reumxj, 2px)";
|
|
@@ -2077,6 +2077,10 @@ module.exports.preset = {
|
|
|
2077
2077
|
"light": "{colorNeutral250}",
|
|
2078
2078
|
"dark": "{colorNeutral950}"
|
|
2079
2079
|
},
|
|
2080
|
+
"colorTreeViewConnectorLine": {
|
|
2081
|
+
"light": "{colorNeutral500}",
|
|
2082
|
+
"dark": "{colorNeutral300}"
|
|
2083
|
+
},
|
|
2080
2084
|
"fontBoxValueLargeWeight": "700",
|
|
2081
2085
|
"fontButtonLetterSpacing": "0.005em",
|
|
2082
2086
|
"fontChartDetailSize": "{fontSizeBodyS}",
|
|
@@ -2605,6 +2609,10 @@ module.exports.preset = {
|
|
|
2605
2609
|
"comfortable": "{spaceContainerHorizontal}",
|
|
2606
2610
|
"compact": "{spaceContainerHorizontal}"
|
|
2607
2611
|
},
|
|
2612
|
+
"spaceTreeViewIndentation": {
|
|
2613
|
+
"comfortable": "{spaceL}",
|
|
2614
|
+
"compact": "{spaceL}"
|
|
2615
|
+
},
|
|
2608
2616
|
"spaceTileGutter": {
|
|
2609
2617
|
"comfortable": "{spaceXl}",
|
|
2610
2618
|
"compact": "{spaceM}"
|
|
@@ -3071,6 +3079,10 @@ module.exports.preset = {
|
|
|
3071
3079
|
"comfortable": "{spaceContainerHorizontal}",
|
|
3072
3080
|
"compact": "{spaceContainerHorizontal}"
|
|
3073
3081
|
},
|
|
3082
|
+
"spaceTreeViewIndentation": {
|
|
3083
|
+
"comfortable": "{spaceL}",
|
|
3084
|
+
"compact": "{spaceL}"
|
|
3085
|
+
},
|
|
3074
3086
|
"spaceTileGutter": {
|
|
3075
3087
|
"comfortable": "{spaceXl}",
|
|
3076
3088
|
"compact": "{spaceM}"
|
|
@@ -4344,6 +4356,10 @@ module.exports.preset = {
|
|
|
4344
4356
|
"colorGapGlobalDrawer": {
|
|
4345
4357
|
"light": "{colorNeutral950}",
|
|
4346
4358
|
"dark": "{colorNeutral950}"
|
|
4359
|
+
},
|
|
4360
|
+
"colorTreeViewConnectorLine": {
|
|
4361
|
+
"light": "{colorNeutral300}",
|
|
4362
|
+
"dark": "{colorNeutral300}"
|
|
4347
4363
|
}
|
|
4348
4364
|
}
|
|
4349
4365
|
},
|
|
@@ -5518,6 +5534,10 @@ module.exports.preset = {
|
|
|
5518
5534
|
"colorGapGlobalDrawer": {
|
|
5519
5535
|
"light": "{colorNeutral950}",
|
|
5520
5536
|
"dark": "{colorNeutral950}"
|
|
5537
|
+
},
|
|
5538
|
+
"colorTreeViewConnectorLine": {
|
|
5539
|
+
"light": "{colorNeutral300}",
|
|
5540
|
+
"dark": "{colorNeutral300}"
|
|
5521
5541
|
}
|
|
5522
5542
|
}
|
|
5523
5543
|
},
|
|
@@ -6628,6 +6648,10 @@ module.exports.preset = {
|
|
|
6628
6648
|
"colorGapGlobalDrawer": {
|
|
6629
6649
|
"light": "{colorNeutral250}",
|
|
6630
6650
|
"dark": "{colorNeutral950}"
|
|
6651
|
+
},
|
|
6652
|
+
"colorTreeViewConnectorLine": {
|
|
6653
|
+
"light": "{colorNeutral500}",
|
|
6654
|
+
"dark": "{colorNeutral300}"
|
|
6631
6655
|
}
|
|
6632
6656
|
}
|
|
6633
6657
|
},
|
|
@@ -7738,6 +7762,10 @@ module.exports.preset = {
|
|
|
7738
7762
|
"colorGapGlobalDrawer": {
|
|
7739
7763
|
"light": "{colorNeutral250}",
|
|
7740
7764
|
"dark": "{colorNeutral950}"
|
|
7765
|
+
},
|
|
7766
|
+
"colorTreeViewConnectorLine": {
|
|
7767
|
+
"light": "{colorNeutral500}",
|
|
7768
|
+
"dark": "{colorNeutral300}"
|
|
7741
7769
|
}
|
|
7742
7770
|
}
|
|
7743
7771
|
},
|
|
@@ -8849,6 +8877,10 @@ module.exports.preset = {
|
|
|
8849
8877
|
"light": "{colorNeutral250}",
|
|
8850
8878
|
"dark": "{colorNeutral950}"
|
|
8851
8879
|
},
|
|
8880
|
+
"colorTreeViewConnectorLine": {
|
|
8881
|
+
"light": "{colorNeutral500}",
|
|
8882
|
+
"dark": "{colorNeutral300}"
|
|
8883
|
+
},
|
|
8852
8884
|
"fontExpandableHeadingSize": "14px",
|
|
8853
8885
|
"borderDividerSectionWidth": "1px"
|
|
8854
8886
|
}
|
|
@@ -9960,6 +9992,10 @@ module.exports.preset = {
|
|
|
9960
9992
|
"colorGapGlobalDrawer": {
|
|
9961
9993
|
"light": "{colorNeutral950}",
|
|
9962
9994
|
"dark": "{colorNeutral950}"
|
|
9995
|
+
},
|
|
9996
|
+
"colorTreeViewConnectorLine": {
|
|
9997
|
+
"light": "{colorNeutral300}",
|
|
9998
|
+
"dark": "{colorNeutral300}"
|
|
9963
9999
|
}
|
|
9964
10000
|
}
|
|
9965
10001
|
},
|
|
@@ -10472,6 +10508,7 @@ module.exports.preset = {
|
|
|
10472
10508
|
"colorDropzoneBorderDefault": "color",
|
|
10473
10509
|
"colorDropzoneBorderHover": "color",
|
|
10474
10510
|
"colorGapGlobalDrawer": "color",
|
|
10511
|
+
"colorTreeViewConnectorLine": "color",
|
|
10475
10512
|
"motionDurationExtraFast": "motion",
|
|
10476
10513
|
"motionDurationExtraSlow": "motion",
|
|
10477
10514
|
"motionDurationFast": "motion",
|
|
@@ -10581,6 +10618,7 @@ module.exports.preset = {
|
|
|
10581
10618
|
"spaceTableHeaderToolsBottom": "density",
|
|
10582
10619
|
"spaceTableHeaderToolsFullPageBottom": "density",
|
|
10583
10620
|
"spaceTableHorizontal": "density",
|
|
10621
|
+
"spaceTreeViewIndentation": "density",
|
|
10584
10622
|
"spaceTileGutter": "density",
|
|
10585
10623
|
"spaceScaled2xNone": "density",
|
|
10586
10624
|
"spaceScaled2xXxxs": "density",
|
|
@@ -10925,6 +10963,7 @@ module.exports.preset = {
|
|
|
10925
10963
|
"colorDropzoneTextHover",
|
|
10926
10964
|
"colorDropzoneBorderDefault",
|
|
10927
10965
|
"colorDropzoneBorderHover",
|
|
10966
|
+
"colorTreeViewConnectorLine",
|
|
10928
10967
|
"fontFamilyBase",
|
|
10929
10968
|
"fontFamilyMonospace",
|
|
10930
10969
|
"fontSizeBodyM",
|
|
@@ -11290,6 +11329,7 @@ module.exports.preset = {
|
|
|
11290
11329
|
"colorDropzoneTextHover",
|
|
11291
11330
|
"colorDropzoneBorderDefault",
|
|
11292
11331
|
"colorDropzoneBorderHover",
|
|
11332
|
+
"colorTreeViewConnectorLine",
|
|
11293
11333
|
"fontFamilyBase",
|
|
11294
11334
|
"fontFamilyMonospace",
|
|
11295
11335
|
"fontSizeBodyM",
|
|
@@ -11353,6 +11393,7 @@ module.exports.preset = {
|
|
|
11353
11393
|
"motionKeyframesScalePopup",
|
|
11354
11394
|
"spaceContainerHorizontal",
|
|
11355
11395
|
"spaceFieldHorizontal",
|
|
11396
|
+
"spaceTreeViewIndentation",
|
|
11356
11397
|
"spaceScaledXxxs",
|
|
11357
11398
|
"spaceScaledXxs",
|
|
11358
11399
|
"spaceScaledXs",
|
|
@@ -11921,6 +11962,7 @@ module.exports.preset = {
|
|
|
11921
11962
|
"colorDropzoneBorderDefault": "color-dropzone-border-default",
|
|
11922
11963
|
"colorDropzoneBorderHover": "color-dropzone-border-hover",
|
|
11923
11964
|
"colorGapGlobalDrawer": "color-gap-global-drawer",
|
|
11965
|
+
"colorTreeViewConnectorLine": "color-tree-view-connector-line",
|
|
11924
11966
|
"fontBoxValueLargeWeight": "font-box-value-large-weight",
|
|
11925
11967
|
"fontButtonLetterSpacing": "font-button-letter-spacing",
|
|
11926
11968
|
"fontChartDetailSize": "font-chart-detail-size",
|
|
@@ -12122,6 +12164,7 @@ module.exports.preset = {
|
|
|
12122
12164
|
"spaceTableHeaderToolsBottom": "space-table-header-tools-bottom",
|
|
12123
12165
|
"spaceTableHeaderToolsFullPageBottom": "space-table-header-tools-full-page-bottom",
|
|
12124
12166
|
"spaceTableHorizontal": "space-table-horizontal",
|
|
12167
|
+
"spaceTreeViewIndentation": "space-tree-view-indentation",
|
|
12125
12168
|
"spaceTileGutter": "space-tile-gutter",
|
|
12126
12169
|
"spaceScaled2xNone": "space-scaled-2x-none",
|
|
12127
12170
|
"spaceScaled2xXxxs": "space-scaled-2x-xxxs",
|
|
@@ -12727,6 +12770,7 @@ module.exports.preset = {
|
|
|
12727
12770
|
"colorDropzoneBorderDefault": "--color-dropzone-border-default-k648ha",
|
|
12728
12771
|
"colorDropzoneBorderHover": "--color-dropzone-border-hover-otpag5",
|
|
12729
12772
|
"colorGapGlobalDrawer": "--color-gap-global-drawer-nh699a",
|
|
12773
|
+
"colorTreeViewConnectorLine": "--color-tree-view-connector-line-1usxvn",
|
|
12730
12774
|
"fontBoxValueLargeWeight": "--font-box-value-large-weight-wr00sw",
|
|
12731
12775
|
"fontButtonLetterSpacing": "--font-button-letter-spacing-ufowe3",
|
|
12732
12776
|
"fontChartDetailSize": "--font-chart-detail-size-9qr25q",
|
|
@@ -12928,6 +12972,7 @@ module.exports.preset = {
|
|
|
12928
12972
|
"spaceTableHeaderToolsBottom": "--space-table-header-tools-bottom-d9u5kf",
|
|
12929
12973
|
"spaceTableHeaderToolsFullPageBottom": "--space-table-header-tools-full-page-bottom-9m47g6",
|
|
12930
12974
|
"spaceTableHorizontal": "--space-table-horizontal-suurzj",
|
|
12975
|
+
"spaceTreeViewIndentation": "--space-tree-view-indentation-gmy1k3",
|
|
12931
12976
|
"spaceTileGutter": "--space-tile-gutter-bi2bdv",
|
|
12932
12977
|
"spaceScaled2xNone": "--space-scaled-2x-none-987dp7",
|
|
12933
12978
|
"spaceScaled2xXxxs": "--space-scaled-2x-xxxs-reumxj",
|
|
@@ -219,6 +219,7 @@ export declare interface TypedOverride {
|
|
|
219
219
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
220
220
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
221
221
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
222
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
222
223
|
fontFamilyBase?: GlobalValue;
|
|
223
224
|
fontFamilyMonospace?: GlobalValue;
|
|
224
225
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -488,6 +489,7 @@ export declare interface TypedOverride {
|
|
|
488
489
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
489
490
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
490
491
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
492
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
491
493
|
fontFamilyBase?: GlobalValue;
|
|
492
494
|
fontFamilyMonospace?: GlobalValue;
|
|
493
495
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -757,6 +759,7 @@ export declare interface TypedOverride {
|
|
|
757
759
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
758
760
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
759
761
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
762
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
760
763
|
fontFamilyBase?: GlobalValue;
|
|
761
764
|
fontFamilyMonospace?: GlobalValue;
|
|
762
765
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -1026,6 +1029,7 @@ export declare interface TypedOverride {
|
|
|
1026
1029
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1027
1030
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1028
1031
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1032
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1029
1033
|
fontFamilyBase?: GlobalValue;
|
|
1030
1034
|
fontFamilyMonospace?: GlobalValue;
|
|
1031
1035
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -1295,6 +1299,7 @@ export declare interface TypedOverride {
|
|
|
1295
1299
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1296
1300
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1297
1301
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1302
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1298
1303
|
fontFamilyBase?: GlobalValue;
|
|
1299
1304
|
fontFamilyMonospace?: GlobalValue;
|
|
1300
1305
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -1564,6 +1569,7 @@ export declare interface TypedOverride {
|
|
|
1564
1569
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1565
1570
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1566
1571
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1572
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1567
1573
|
fontFamilyBase?: GlobalValue;
|
|
1568
1574
|
fontFamilyMonospace?: GlobalValue;
|
|
1569
1575
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -1833,6 +1839,7 @@ export declare interface TypedOverride {
|
|
|
1833
1839
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1834
1840
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1835
1841
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1842
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1836
1843
|
fontFamilyBase?: GlobalValue;
|
|
1837
1844
|
fontFamilyMonospace?: GlobalValue;
|
|
1838
1845
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -2102,6 +2109,7 @@ export declare interface TypedOverride {
|
|
|
2102
2109
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2103
2110
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2104
2111
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2112
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2105
2113
|
fontFamilyBase?: GlobalValue;
|
|
2106
2114
|
fontFamilyMonospace?: GlobalValue;
|
|
2107
2115
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -2371,6 +2379,7 @@ export declare interface TypedOverride {
|
|
|
2371
2379
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2372
2380
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2373
2381
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2382
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2374
2383
|
fontFamilyBase?: GlobalValue;
|
|
2375
2384
|
fontFamilyMonospace?: GlobalValue;
|
|
2376
2385
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -219,6 +219,7 @@ export declare interface TypedOverride {
|
|
|
219
219
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
220
220
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
221
221
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
222
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
222
223
|
fontFamilyBase?: GlobalValue;
|
|
223
224
|
fontFamilyMonospace?: GlobalValue;
|
|
224
225
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -488,6 +489,7 @@ export declare interface TypedOverride {
|
|
|
488
489
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
489
490
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
490
491
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
492
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
491
493
|
fontFamilyBase?: GlobalValue;
|
|
492
494
|
fontFamilyMonospace?: GlobalValue;
|
|
493
495
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -757,6 +759,7 @@ export declare interface TypedOverride {
|
|
|
757
759
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
758
760
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
759
761
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
762
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
760
763
|
fontFamilyBase?: GlobalValue;
|
|
761
764
|
fontFamilyMonospace?: GlobalValue;
|
|
762
765
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -1026,6 +1029,7 @@ export declare interface TypedOverride {
|
|
|
1026
1029
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1027
1030
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1028
1031
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1032
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1029
1033
|
fontFamilyBase?: GlobalValue;
|
|
1030
1034
|
fontFamilyMonospace?: GlobalValue;
|
|
1031
1035
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -1295,6 +1299,7 @@ export declare interface TypedOverride {
|
|
|
1295
1299
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1296
1300
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1297
1301
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1302
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1298
1303
|
fontFamilyBase?: GlobalValue;
|
|
1299
1304
|
fontFamilyMonospace?: GlobalValue;
|
|
1300
1305
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -1564,6 +1569,7 @@ export declare interface TypedOverride {
|
|
|
1564
1569
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1565
1570
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1566
1571
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1572
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1567
1573
|
fontFamilyBase?: GlobalValue;
|
|
1568
1574
|
fontFamilyMonospace?: GlobalValue;
|
|
1569
1575
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -1833,6 +1839,7 @@ export declare interface TypedOverride {
|
|
|
1833
1839
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1834
1840
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1835
1841
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1842
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
1836
1843
|
fontFamilyBase?: GlobalValue;
|
|
1837
1844
|
fontFamilyMonospace?: GlobalValue;
|
|
1838
1845
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -2102,6 +2109,7 @@ export declare interface TypedOverride {
|
|
|
2102
2109
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2103
2110
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2104
2111
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2112
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2105
2113
|
fontFamilyBase?: GlobalValue;
|
|
2106
2114
|
fontFamilyMonospace?: GlobalValue;
|
|
2107
2115
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -2371,6 +2379,7 @@ export declare interface TypedOverride {
|
|
|
2371
2379
|
colorDropzoneTextHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2372
2380
|
colorDropzoneBorderDefault?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2373
2381
|
colorDropzoneBorderHover?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2382
|
+
colorTreeViewConnectorLine?: GlobalValue | TypedModeValueOverride<'light' | 'dark'>;
|
|
2374
2383
|
fontFamilyBase?: GlobalValue;
|
|
2375
2384
|
fontFamilyMonospace?: GlobalValue;
|
|
2376
2385
|
fontSizeBodyM?: GlobalValue;
|
|
@@ -2077,6 +2077,10 @@ export var preset = {
|
|
|
2077
2077
|
"light": "{colorNeutral250}",
|
|
2078
2078
|
"dark": "{colorNeutral950}"
|
|
2079
2079
|
},
|
|
2080
|
+
"colorTreeViewConnectorLine": {
|
|
2081
|
+
"light": "{colorNeutral500}",
|
|
2082
|
+
"dark": "{colorNeutral300}"
|
|
2083
|
+
},
|
|
2080
2084
|
"fontBoxValueLargeWeight": "700",
|
|
2081
2085
|
"fontButtonLetterSpacing": "0.005em",
|
|
2082
2086
|
"fontChartDetailSize": "{fontSizeBodyS}",
|
|
@@ -2605,6 +2609,10 @@ export var preset = {
|
|
|
2605
2609
|
"comfortable": "{spaceContainerHorizontal}",
|
|
2606
2610
|
"compact": "{spaceContainerHorizontal}"
|
|
2607
2611
|
},
|
|
2612
|
+
"spaceTreeViewIndentation": {
|
|
2613
|
+
"comfortable": "{spaceL}",
|
|
2614
|
+
"compact": "{spaceL}"
|
|
2615
|
+
},
|
|
2608
2616
|
"spaceTileGutter": {
|
|
2609
2617
|
"comfortable": "{spaceXl}",
|
|
2610
2618
|
"compact": "{spaceM}"
|
|
@@ -3071,6 +3079,10 @@ export var preset = {
|
|
|
3071
3079
|
"comfortable": "{spaceContainerHorizontal}",
|
|
3072
3080
|
"compact": "{spaceContainerHorizontal}"
|
|
3073
3081
|
},
|
|
3082
|
+
"spaceTreeViewIndentation": {
|
|
3083
|
+
"comfortable": "{spaceL}",
|
|
3084
|
+
"compact": "{spaceL}"
|
|
3085
|
+
},
|
|
3074
3086
|
"spaceTileGutter": {
|
|
3075
3087
|
"comfortable": "{spaceXl}",
|
|
3076
3088
|
"compact": "{spaceM}"
|
|
@@ -4344,6 +4356,10 @@ export var preset = {
|
|
|
4344
4356
|
"colorGapGlobalDrawer": {
|
|
4345
4357
|
"light": "{colorNeutral950}",
|
|
4346
4358
|
"dark": "{colorNeutral950}"
|
|
4359
|
+
},
|
|
4360
|
+
"colorTreeViewConnectorLine": {
|
|
4361
|
+
"light": "{colorNeutral300}",
|
|
4362
|
+
"dark": "{colorNeutral300}"
|
|
4347
4363
|
}
|
|
4348
4364
|
}
|
|
4349
4365
|
},
|
|
@@ -5518,6 +5534,10 @@ export var preset = {
|
|
|
5518
5534
|
"colorGapGlobalDrawer": {
|
|
5519
5535
|
"light": "{colorNeutral950}",
|
|
5520
5536
|
"dark": "{colorNeutral950}"
|
|
5537
|
+
},
|
|
5538
|
+
"colorTreeViewConnectorLine": {
|
|
5539
|
+
"light": "{colorNeutral300}",
|
|
5540
|
+
"dark": "{colorNeutral300}"
|
|
5521
5541
|
}
|
|
5522
5542
|
}
|
|
5523
5543
|
},
|
|
@@ -6628,6 +6648,10 @@ export var preset = {
|
|
|
6628
6648
|
"colorGapGlobalDrawer": {
|
|
6629
6649
|
"light": "{colorNeutral250}",
|
|
6630
6650
|
"dark": "{colorNeutral950}"
|
|
6651
|
+
},
|
|
6652
|
+
"colorTreeViewConnectorLine": {
|
|
6653
|
+
"light": "{colorNeutral500}",
|
|
6654
|
+
"dark": "{colorNeutral300}"
|
|
6631
6655
|
}
|
|
6632
6656
|
}
|
|
6633
6657
|
},
|
|
@@ -7738,6 +7762,10 @@ export var preset = {
|
|
|
7738
7762
|
"colorGapGlobalDrawer": {
|
|
7739
7763
|
"light": "{colorNeutral250}",
|
|
7740
7764
|
"dark": "{colorNeutral950}"
|
|
7765
|
+
},
|
|
7766
|
+
"colorTreeViewConnectorLine": {
|
|
7767
|
+
"light": "{colorNeutral500}",
|
|
7768
|
+
"dark": "{colorNeutral300}"
|
|
7741
7769
|
}
|
|
7742
7770
|
}
|
|
7743
7771
|
},
|
|
@@ -8849,6 +8877,10 @@ export var preset = {
|
|
|
8849
8877
|
"light": "{colorNeutral250}",
|
|
8850
8878
|
"dark": "{colorNeutral950}"
|
|
8851
8879
|
},
|
|
8880
|
+
"colorTreeViewConnectorLine": {
|
|
8881
|
+
"light": "{colorNeutral500}",
|
|
8882
|
+
"dark": "{colorNeutral300}"
|
|
8883
|
+
},
|
|
8852
8884
|
"fontExpandableHeadingSize": "14px",
|
|
8853
8885
|
"borderDividerSectionWidth": "1px"
|
|
8854
8886
|
}
|
|
@@ -9960,6 +9992,10 @@ export var preset = {
|
|
|
9960
9992
|
"colorGapGlobalDrawer": {
|
|
9961
9993
|
"light": "{colorNeutral950}",
|
|
9962
9994
|
"dark": "{colorNeutral950}"
|
|
9995
|
+
},
|
|
9996
|
+
"colorTreeViewConnectorLine": {
|
|
9997
|
+
"light": "{colorNeutral300}",
|
|
9998
|
+
"dark": "{colorNeutral300}"
|
|
9963
9999
|
}
|
|
9964
10000
|
}
|
|
9965
10001
|
},
|
|
@@ -10472,6 +10508,7 @@ export var preset = {
|
|
|
10472
10508
|
"colorDropzoneBorderDefault": "color",
|
|
10473
10509
|
"colorDropzoneBorderHover": "color",
|
|
10474
10510
|
"colorGapGlobalDrawer": "color",
|
|
10511
|
+
"colorTreeViewConnectorLine": "color",
|
|
10475
10512
|
"motionDurationExtraFast": "motion",
|
|
10476
10513
|
"motionDurationExtraSlow": "motion",
|
|
10477
10514
|
"motionDurationFast": "motion",
|
|
@@ -10581,6 +10618,7 @@ export var preset = {
|
|
|
10581
10618
|
"spaceTableHeaderToolsBottom": "density",
|
|
10582
10619
|
"spaceTableHeaderToolsFullPageBottom": "density",
|
|
10583
10620
|
"spaceTableHorizontal": "density",
|
|
10621
|
+
"spaceTreeViewIndentation": "density",
|
|
10584
10622
|
"spaceTileGutter": "density",
|
|
10585
10623
|
"spaceScaled2xNone": "density",
|
|
10586
10624
|
"spaceScaled2xXxxs": "density",
|
|
@@ -10925,6 +10963,7 @@ export var preset = {
|
|
|
10925
10963
|
"colorDropzoneTextHover",
|
|
10926
10964
|
"colorDropzoneBorderDefault",
|
|
10927
10965
|
"colorDropzoneBorderHover",
|
|
10966
|
+
"colorTreeViewConnectorLine",
|
|
10928
10967
|
"fontFamilyBase",
|
|
10929
10968
|
"fontFamilyMonospace",
|
|
10930
10969
|
"fontSizeBodyM",
|
|
@@ -11290,6 +11329,7 @@ export var preset = {
|
|
|
11290
11329
|
"colorDropzoneTextHover",
|
|
11291
11330
|
"colorDropzoneBorderDefault",
|
|
11292
11331
|
"colorDropzoneBorderHover",
|
|
11332
|
+
"colorTreeViewConnectorLine",
|
|
11293
11333
|
"fontFamilyBase",
|
|
11294
11334
|
"fontFamilyMonospace",
|
|
11295
11335
|
"fontSizeBodyM",
|
|
@@ -11353,6 +11393,7 @@ export var preset = {
|
|
|
11353
11393
|
"motionKeyframesScalePopup",
|
|
11354
11394
|
"spaceContainerHorizontal",
|
|
11355
11395
|
"spaceFieldHorizontal",
|
|
11396
|
+
"spaceTreeViewIndentation",
|
|
11356
11397
|
"spaceScaledXxxs",
|
|
11357
11398
|
"spaceScaledXxs",
|
|
11358
11399
|
"spaceScaledXs",
|
|
@@ -11921,6 +11962,7 @@ export var preset = {
|
|
|
11921
11962
|
"colorDropzoneBorderDefault": "color-dropzone-border-default",
|
|
11922
11963
|
"colorDropzoneBorderHover": "color-dropzone-border-hover",
|
|
11923
11964
|
"colorGapGlobalDrawer": "color-gap-global-drawer",
|
|
11965
|
+
"colorTreeViewConnectorLine": "color-tree-view-connector-line",
|
|
11924
11966
|
"fontBoxValueLargeWeight": "font-box-value-large-weight",
|
|
11925
11967
|
"fontButtonLetterSpacing": "font-button-letter-spacing",
|
|
11926
11968
|
"fontChartDetailSize": "font-chart-detail-size",
|
|
@@ -12122,6 +12164,7 @@ export var preset = {
|
|
|
12122
12164
|
"spaceTableHeaderToolsBottom": "space-table-header-tools-bottom",
|
|
12123
12165
|
"spaceTableHeaderToolsFullPageBottom": "space-table-header-tools-full-page-bottom",
|
|
12124
12166
|
"spaceTableHorizontal": "space-table-horizontal",
|
|
12167
|
+
"spaceTreeViewIndentation": "space-tree-view-indentation",
|
|
12125
12168
|
"spaceTileGutter": "space-tile-gutter",
|
|
12126
12169
|
"spaceScaled2xNone": "space-scaled-2x-none",
|
|
12127
12170
|
"spaceScaled2xXxxs": "space-scaled-2x-xxxs",
|
|
@@ -12727,6 +12770,7 @@ export var preset = {
|
|
|
12727
12770
|
"colorDropzoneBorderDefault": "--color-dropzone-border-default-k648ha",
|
|
12728
12771
|
"colorDropzoneBorderHover": "--color-dropzone-border-hover-otpag5",
|
|
12729
12772
|
"colorGapGlobalDrawer": "--color-gap-global-drawer-nh699a",
|
|
12773
|
+
"colorTreeViewConnectorLine": "--color-tree-view-connector-line-1usxvn",
|
|
12730
12774
|
"fontBoxValueLargeWeight": "--font-box-value-large-weight-wr00sw",
|
|
12731
12775
|
"fontButtonLetterSpacing": "--font-button-letter-spacing-ufowe3",
|
|
12732
12776
|
"fontChartDetailSize": "--font-chart-detail-size-9qr25q",
|
|
@@ -12928,6 +12972,7 @@ export var preset = {
|
|
|
12928
12972
|
"spaceTableHeaderToolsBottom": "--space-table-header-tools-bottom-d9u5kf",
|
|
12929
12973
|
"spaceTableHeaderToolsFullPageBottom": "--space-table-header-tools-full-page-bottom-9m47g6",
|
|
12930
12974
|
"spaceTableHorizontal": "--space-table-horizontal-suurzj",
|
|
12975
|
+
"spaceTreeViewIndentation": "--space-tree-view-indentation-gmy1k3",
|
|
12931
12976
|
"spaceTileGutter": "--space-tile-gutter-bi2bdv",
|
|
12932
12977
|
"spaceScaled2xNone": "--space-scaled-2x-none-987dp7",
|
|
12933
12978
|
"spaceScaled2xXxxs": "--space-scaled-2x-xxxs-reumxj",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-mobile/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB,eAAwC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-mobile/index.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB,eAAwC,CAAC;AA6B3E,eAAO,MAAM,SAAS,eASpB,CAAC"}
|
|
@@ -4,6 +4,7 @@ import { createSingletonState } from '@cloudscape-design/component-toolkit/inter
|
|
|
4
4
|
import { getMatchingBreakpoint, mobileBreakpoint } from '../../breakpoints';
|
|
5
5
|
export const forceMobileModeSymbol = Symbol.for('awsui-force-mobile-mode');
|
|
6
6
|
function getIsMobile() {
|
|
7
|
+
var _a;
|
|
7
8
|
// allow overriding the mobile mode in tests
|
|
8
9
|
// any is needed because of this https://github.com/microsoft/TypeScript/issues/36813
|
|
9
10
|
const forceMobileMode = globalThis[forceMobileModeSymbol];
|
|
@@ -22,7 +23,8 @@ function getIsMobile() {
|
|
|
22
23
|
* wouldn't know which one of them to use).
|
|
23
24
|
* Instead, we use the media query here in JS too.
|
|
24
25
|
*/
|
|
25
|
-
|
|
26
|
+
/* istanbul ignore next: matchMedia is not available in jsdom. */
|
|
27
|
+
return (_a = window.matchMedia(`(max-width: ${mobileBreakpoint}px)`)) === null || _a === void 0 ? void 0 : _a.matches;
|
|
26
28
|
}
|
|
27
29
|
return getMatchingBreakpoint(window.innerWidth, ['xs']) !== 'xs';
|
|
28
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/internal/hooks/use-mobile/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,+CAA+C,CAAC;AAErF,OAAO,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAE5E,MAAM,CAAC,MAAM,qBAAqB,GAAG,MAAM,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;AAE3E,SAAS,WAAW
|
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AE,QAAQ,CAAC,CAAC;QACjD,CAAC,CAAC;IACJ,CAAC;CACF,CAAC,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { createSingletonState } from '@cloudscape-design/component-toolkit/internal';\n\nimport { getMatchingBreakpoint, mobileBreakpoint } from '../../breakpoints';\n\nexport const forceMobileModeSymbol = Symbol.for('awsui-force-mobile-mode');\n\nfunction getIsMobile() {\n // allow overriding the mobile mode in tests\n // any is needed because of this https://github.com/microsoft/TypeScript/issues/36813\n const forceMobileMode = (globalThis as any)[forceMobileModeSymbol];\n if (typeof forceMobileMode !== 'undefined') {\n return forceMobileMode;\n }\n if (typeof window === 'undefined') {\n // assume desktop in server-rendering\n return false;\n }\n\n if (window.matchMedia) {\n /**\n * Some browsers include the scrollbar width in their media query calculations, but\n * some browsers don't. Thus we can't use `window.innerWidth` or\n * `document.documentElement.clientWidth` to get a very accurate result (since we\n * wouldn't know which one of them to use).\n * Instead, we use the media query here in JS too.\n */\n /* istanbul ignore next: matchMedia is not available in jsdom. */\n return window.matchMedia(`(max-width: ${mobileBreakpoint}px)`)?.matches;\n }\n\n return getMatchingBreakpoint(window.innerWidth, ['xs']) !== 'xs';\n}\n\nexport const useMobile = createSingletonState<boolean>({\n initialState: () => getIsMobile(),\n factory: handler => {\n const listener = () => handler(getIsMobile());\n window.addEventListener('resize', listener);\n return () => {\n window.removeEventListener('resize', listener);\n };\n },\n});\n"]}
|
package/internal/manifest.json
CHANGED
package/package.json
CHANGED
|
@@ -154,7 +154,7 @@
|
|
|
154
154
|
"./internal/base-component/index.js",
|
|
155
155
|
"./internal/base-component/styles.css.js"
|
|
156
156
|
],
|
|
157
|
-
"version": "3.0.
|
|
157
|
+
"version": "3.0.1135",
|
|
158
158
|
"repository": {
|
|
159
159
|
"type": "git",
|
|
160
160
|
"url": "https://github.com/cloudscape-design/components.git"
|
package/tree-view/index.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { TreeViewProps } from './interfaces';
|
|
2
2
|
export { TreeViewProps };
|
|
3
|
-
declare const TreeView: <T>(
|
|
3
|
+
declare const TreeView: <T>({
|
|
4
|
+
connectorLines,
|
|
5
|
+
...props
|
|
6
|
+
}: TreeViewProps<T>) => JSX.Element;
|
|
4
7
|
export default TreeView;
|
package/tree-view/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tree-view/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB,QAAA,MAAM,QAAQ,GAAI,CAAC,EAAG,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/tree-view/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAG7C,OAAO,EAAE,aAAa,EAAE,CAAC;AAEzB,QAAA,MAAM,QAAQ,GAAI,CAAC,EAAG,8BAAuC,aAAa,CAAC,CAAC,CAAC,gBAgB5E,CAAC;AAGF,eAAe,QAAQ,CAAC"}
|
package/tree-view/index.js
CHANGED
|
@@ -7,11 +7,13 @@ import useBaseComponent from '../internal/hooks/use-base-component';
|
|
|
7
7
|
import { applyDisplayName } from '../internal/utils/apply-display-name';
|
|
8
8
|
import { getExternalProps } from '../internal/utils/external-props';
|
|
9
9
|
import InternalTreeView from './internal';
|
|
10
|
-
const TreeView = (props) => {
|
|
11
|
-
const baseComponentProps = useBaseComponent('TreeView'
|
|
10
|
+
const TreeView = ({ connectorLines = 'none', ...props }) => {
|
|
11
|
+
const baseComponentProps = useBaseComponent('TreeView', {
|
|
12
|
+
props: { connectorLines },
|
|
13
|
+
});
|
|
12
14
|
const baseProps = getBaseProps(props);
|
|
13
15
|
const externalProps = getExternalProps(props);
|
|
14
|
-
return React.createElement(InternalTreeView, { ...baseProps, ...baseComponentProps, ...externalProps, ...props });
|
|
16
|
+
return (React.createElement(InternalTreeView, { ...baseProps, ...baseComponentProps, ...externalProps, ...props, connectorLines: connectorLines }));
|
|
15
17
|
};
|
|
16
18
|
applyDisplayName(TreeView, 'TreeView');
|
|
17
19
|
export default TreeView;
|
package/tree-view/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tree-view/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,gBAAgB,MAAM,YAAY,CAAC;AAI1C,MAAM,QAAQ,GAAG,CAAK,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/tree-view/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,YAAY,CAAC;AACb,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,gBAAgB,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AAEpE,OAAO,gBAAgB,MAAM,YAAY,CAAC;AAI1C,MAAM,QAAQ,GAAG,CAAK,EAAE,cAAc,GAAG,MAAM,EAAE,GAAG,KAAK,EAAoB,EAAE,EAAE;IAC/E,MAAM,kBAAkB,GAAG,gBAAgB,CAAC,UAAU,EAAE;QACtD,KAAK,EAAE,EAAE,cAAc,EAAE;KAC1B,CAAC,CAAC;IACH,MAAM,SAAS,GAAG,YAAY,CAAC,KAAK,CAAC,CAAC;IACtC,MAAM,aAAa,GAAG,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAE9C,OAAO,CACL,oBAAC,gBAAgB,OACX,SAAS,KACT,kBAAkB,KAClB,aAAa,KACb,KAAK,EACT,cAAc,EAAE,cAAc,GAC9B,CACH,CAAC;AACJ,CAAC,CAAC;AAEF,gBAAgB,CAAC,QAAQ,EAAE,UAAU,CAAC,CAAC;AACvC,eAAe,QAAQ,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\n'use client';\nimport React from 'react';\n\nimport { getBaseProps } from '../internal/base-component';\nimport useBaseComponent from '../internal/hooks/use-base-component';\nimport { applyDisplayName } from '../internal/utils/apply-display-name';\nimport { getExternalProps } from '../internal/utils/external-props';\nimport { TreeViewProps } from './interfaces';\nimport InternalTreeView from './internal';\n\nexport { TreeViewProps };\n\nconst TreeView = <T,>({ connectorLines = 'none', ...props }: TreeViewProps<T>) => {\n const baseComponentProps = useBaseComponent('TreeView', {\n props: { connectorLines },\n });\n const baseProps = getBaseProps(props);\n const externalProps = getExternalProps(props);\n\n return (\n <InternalTreeView\n {...baseProps}\n {...baseComponentProps}\n {...externalProps}\n {...props}\n connectorLines={connectorLines}\n />\n );\n};\n\napplyDisplayName(TreeView, 'TreeView');\nexport default TreeView;\n"]}
|
|
@@ -42,6 +42,10 @@ export interface TreeViewProps<T = any> extends BaseComponentProps {
|
|
|
42
42
|
* Sets the `aria-describedby` property on the tree view.
|
|
43
43
|
*/
|
|
44
44
|
ariaDescribedby?: string;
|
|
45
|
+
/**
|
|
46
|
+
* Shows connector lines highlighting hierarchy between parent and child items.
|
|
47
|
+
*/
|
|
48
|
+
connectorLines?: TreeViewProps.ConnectorLinesVariant;
|
|
45
49
|
/**
|
|
46
50
|
* Called when an item expands or collapses.
|
|
47
51
|
*/
|
|
@@ -72,6 +76,7 @@ export declare namespace TreeViewProps {
|
|
|
72
76
|
interface ItemToggleRenderIconData {
|
|
73
77
|
expanded: boolean;
|
|
74
78
|
}
|
|
79
|
+
type ConnectorLinesVariant = 'vertical' | 'none';
|
|
75
80
|
interface I18nStrings<T> {
|
|
76
81
|
collapseButtonLabel?: (item: T) => string;
|
|
77
82
|
expandButtonLabel?: (item: T) => string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.d.ts","sourceRoot":"","sources":["../../../src/tree-view/interfaces.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAE/D,MAAM,WAAW,aAAa,CAAC,CAAC,GAAG,GAAG,CAAE,SAAQ,kBAAkB;IAChE;;OAEG;IACH,KAAK,EAAE,aAAa,CAAC,CAAC,CAAC,CAAC;IAExB;;;;;;;OAOG;IACH,UAAU,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,aAAa,CAAC,QAAQ,CAAC;IAE/D;;OAEG;IACH,SAAS,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM,CAAC;IAE9C;;OAEG;IACH,eAAe,EAAE,CAAC,IAAI,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,KAAK,aAAa,CAAC,CAAC,CAAC,GAAG,SAAS,CAAC;IAE1E;;OAEG;IACH,aAAa,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,CAAC;IAEtC;;;OAGG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IAEnB;;;;OAIG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;OAEG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IAEzB;;OAEG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AiB,CAAC,EAAE,MAAM,CAAC;KAC5B;IAED,UAAiB,gBAAgB,CAAC,CAAC;QACjC,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,CAAC,CAAC;QACR,QAAQ,EAAE,OAAO,CAAC;KACnB;IAED,UAAiB,wBAAwB;QACvC,QAAQ,EAAE,OAAO,CAAC;KACnB;IAED,KAAY,qBAAqB,GAAG,UAAU,GAAG,MAAM,CAAC;IAExD,UAAiB,WAAW,CAAC,CAAC;QAC5B,mBAAmB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;QAC1C,iBAAiB,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,KAAK,MAAM,CAAC;KACzC;CACF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/tree-view/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface TreeViewProps<T = any> extends BaseComponentProps {\n /**\n * Specifies the top-level items to display in the tree view. Use `getItemChildren` to provide nested items.\n */\n items: ReadonlyArray<T>;\n\n /**\n * Use this property to map your data to tree view items. This property must return an object with the following properties:\n * * `content` (ReactNode) - The content of the item.\n * * `icon` (ReactNode) - (Optional) The icon of the item.\n * * `secondaryContent` (ReactNode) - (Optional) Secondary content of the item, such as a description of the item.\n * * `actions` (ReactNode) - (Optional) Actions related to the item. Use [button](/components/button/?tabId=playground&example=inline-icon-button) with inline-icon or inline-link variants. For items with multiple actions, use [button dropdown](/components/button-dropdown/?tabId=playground&example=inline-icon-button-dropdown) with the inline-icon variant.\n * * `announcementLabel` (string) - (Optional) An announcement label for the item, used for labeling the toggle button. By default, the `content` is used. Make sure to provide the `announcementLabel` if `content` is not a string.\n */\n renderItem: (item: T, index: number) => TreeViewProps.TreeItem;\n\n /**\n * Provides a unique identifier for each tree view item.\n */\n getItemId: (item: T, index: number) => string;\n\n /**\n * Specifies the nested items that are displayed when a tree view item gets expanded.\n */\n getItemChildren: (item: T, index: number) => ReadonlyArray<T> | undefined;\n\n /**\n * Provides the IDs of the expanded tree view items. It controls whether an item is expanded or collapsed.\n */\n expandedItems?: ReadonlyArray<string>;\n\n /**\n * Provides an `aria-label` to the tree view that screen readers can read (for accessibility).\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n\n /**\n * Sets the `aria-labelledby` property on the tree view.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n\n /**\n * Sets the `aria-describedby` property on the tree view.\n */\n ariaDescribedby?: string;\n\n /**\n * Called when an item expands or collapses.\n */\n onItemToggle?: NonCancelableEventHandler<TreeViewProps.ItemToggleDetail<T>>;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: TreeViewProps.I18nStrings<T>;\n\n /**\n * Use this property to display a custom icon in the toggle button.\n */\n renderItemToggleIcon?: (data: TreeViewProps.ItemToggleRenderIconData) => React.ReactNode;\n}\n\nexport namespace TreeViewProps {\n export interface TreeItem {\n content: React.ReactNode;\n icon?: React.ReactNode;\n secondaryContent?: React.ReactNode;\n actions?: React.ReactNode;\n announcementLabel?: string;\n }\n\n export interface ItemToggleDetail<T> {\n id: string;\n item: T;\n expanded: boolean;\n }\n\n export interface ItemToggleRenderIconData {\n expanded: boolean;\n }\n\n export interface I18nStrings<T> {\n collapseButtonLabel?: (item: T) => string;\n expandButtonLabel?: (item: T) => string;\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"interfaces.js","sourceRoot":"","sources":["../../../src/tree-view/interfaces.ts"],"names":[],"mappings":"","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\n\nimport { BaseComponentProps } from '../internal/base-component';\nimport { NonCancelableEventHandler } from '../internal/events';\n\nexport interface TreeViewProps<T = any> extends BaseComponentProps {\n /**\n * Specifies the top-level items to display in the tree view. Use `getItemChildren` to provide nested items.\n */\n items: ReadonlyArray<T>;\n\n /**\n * Use this property to map your data to tree view items. This property must return an object with the following properties:\n * * `content` (ReactNode) - The content of the item.\n * * `icon` (ReactNode) - (Optional) The icon of the item.\n * * `secondaryContent` (ReactNode) - (Optional) Secondary content of the item, such as a description of the item.\n * * `actions` (ReactNode) - (Optional) Actions related to the item. Use [button](/components/button/?tabId=playground&example=inline-icon-button) with inline-icon or inline-link variants. For items with multiple actions, use [button dropdown](/components/button-dropdown/?tabId=playground&example=inline-icon-button-dropdown) with the inline-icon variant.\n * * `announcementLabel` (string) - (Optional) An announcement label for the item, used for labeling the toggle button. By default, the `content` is used. Make sure to provide the `announcementLabel` if `content` is not a string.\n */\n renderItem: (item: T, index: number) => TreeViewProps.TreeItem;\n\n /**\n * Provides a unique identifier for each tree view item.\n */\n getItemId: (item: T, index: number) => string;\n\n /**\n * Specifies the nested items that are displayed when a tree view item gets expanded.\n */\n getItemChildren: (item: T, index: number) => ReadonlyArray<T> | undefined;\n\n /**\n * Provides the IDs of the expanded tree view items. It controls whether an item is expanded or collapsed.\n */\n expandedItems?: ReadonlyArray<string>;\n\n /**\n * Provides an `aria-label` to the tree view that screen readers can read (for accessibility).\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabel?: string;\n\n /**\n * Sets the `aria-labelledby` property on the tree view.\n * If there's a visible label element that you can reference, use this instead of `ariaLabel`.\n * Don't use `ariaLabel` and `ariaLabelledby` at the same time.\n */\n ariaLabelledby?: string;\n\n /**\n * Sets the `aria-describedby` property on the tree view.\n */\n ariaDescribedby?: string;\n\n /**\n * Shows connector lines highlighting hierarchy between parent and child items.\n */\n connectorLines?: TreeViewProps.ConnectorLinesVariant;\n\n /**\n * Called when an item expands or collapses.\n */\n onItemToggle?: NonCancelableEventHandler<TreeViewProps.ItemToggleDetail<T>>;\n\n /**\n * An object containing all the necessary localized strings required by the component.\n * @i18n\n */\n i18nStrings?: TreeViewProps.I18nStrings<T>;\n\n /**\n * Use this property to display a custom icon in the toggle button.\n */\n renderItemToggleIcon?: (data: TreeViewProps.ItemToggleRenderIconData) => React.ReactNode;\n}\n\nexport namespace TreeViewProps {\n export interface TreeItem {\n content: React.ReactNode;\n icon?: React.ReactNode;\n secondaryContent?: React.ReactNode;\n actions?: React.ReactNode;\n announcementLabel?: string;\n }\n\n export interface ItemToggleDetail<T> {\n id: string;\n item: T;\n expanded: boolean;\n }\n\n export interface ItemToggleRenderIconData {\n expanded: boolean;\n }\n\n export type ConnectorLinesVariant = 'vertical' | 'none';\n\n export interface I18nStrings<T> {\n collapseButtonLabel?: (item: T) => string;\n expandButtonLabel?: (item: T) => string;\n }\n}\n"]}
|
package/tree-view/internal.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/tree-view/internal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAQ7C,KAAK,qBAAqB,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,0BAA0B,CAAC;AAE9E,QAAA,MAAM,gBAAgB,GAAI,CAAC,EAAG,
|
|
1
|
+
{"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../../../src/tree-view/internal.tsx"],"names":[],"mappings":"AAOA,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAElF,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAQ7C,KAAK,qBAAqB,CAAC,CAAC,IAAI,aAAa,CAAC,CAAC,CAAC,GAAG,0BAA0B,CAAC;AAE9E,QAAA,MAAM,gBAAgB,GAAI,CAAC,EAAG,oOAe3B,qBAAqB,CAAC,CAAC,CAAC,gBAwD1B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
package/tree-view/internal.js
CHANGED
|
@@ -10,7 +10,7 @@ import InternalTreeItem from './tree-item';
|
|
|
10
10
|
import { getAllVisibleItemsIndices } from './utils';
|
|
11
11
|
import styles from './styles.css.js';
|
|
12
12
|
import testUtilStyles from './test-classes/styles.css.js';
|
|
13
|
-
const InternalTreeView = ({ expandedItems: controlledExpandedItems, items, renderItem, getItemId, getItemChildren, onItemToggle, renderItemToggleIcon, ariaLabel, ariaLabelledby, ariaDescribedby, i18nStrings, __internalRootRef, ...rest }) => {
|
|
13
|
+
const InternalTreeView = ({ expandedItems: controlledExpandedItems, items, renderItem, getItemId, getItemChildren, onItemToggle, renderItemToggleIcon, ariaLabel, ariaLabelledby, ariaDescribedby, connectorLines, i18nStrings, __internalRootRef, ...rest }) => {
|
|
14
14
|
const baseProps = getBaseProps(rest);
|
|
15
15
|
const [expandedItems, setExpandedItems] = useControllable(controlledExpandedItems, onItemToggle, [], {
|
|
16
16
|
componentName: 'TreeView',
|
|
@@ -32,7 +32,7 @@ const InternalTreeView = ({ expandedItems: controlledExpandedItems, items, rende
|
|
|
32
32
|
React.createElement(KeyboardNavigationProvider, { getTreeView: () => treeViewRefObject.current },
|
|
33
33
|
React.createElement("ul", { role: "tree", ref: treeViewRefObject, className: clsx(styles.tree, testUtilStyles.tree), "aria-label": ariaLabel, "aria-labelledby": ariaLabelledby, "aria-describedby": ariaDescribedby }, items.map((item, index) => {
|
|
34
34
|
const itemId = getItemId(item, index);
|
|
35
|
-
return (React.createElement(InternalTreeItem, { key: itemId, item: item, level: 1, index: index, expandedItems: expandedItems, i18nStrings: i18nStrings, onItemToggle: onToggle, renderItem: renderItem, getItemId: getItemId, getItemChildren: getItemChildren, renderItemToggleIcon: renderItemToggleIcon, allVisibleItemsIndices: allVisibleItemsIndices }));
|
|
35
|
+
return (React.createElement(InternalTreeItem, { key: itemId, item: item, level: 1, index: index, expandedItems: expandedItems, i18nStrings: i18nStrings, onItemToggle: onToggle, renderItem: renderItem, getItemId: getItemId, getItemChildren: getItemChildren, renderItemToggleIcon: renderItemToggleIcon, allVisibleItemsIndices: allVisibleItemsIndices, connectorLines: connectorLines }));
|
|
36
36
|
})))));
|
|
37
37
|
};
|
|
38
38
|
export default InternalTreeView;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"internal.js","sourceRoot":"","sources":["../../../src/tree-view/internal.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,YAAY,EAAE,MAAM,4BAA4B,CAAC;AAC1D,OAAO,EAAE,sBAAsB,EAAE,MAAM,oBAAoB,CAAC;AAE5D,OAAO,EAAE,eAAe,EAAE,MAAM,oCAAoC,CAAC;AAErE,OAAO,EAAE,0BAA0B,EAAE,MAAM,uBAAuB,CAAC;AACnE,OAAO,gBAAgB,MAAM,aAAa,CAAC;AAC3C,OAAO,EAAE,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAEpD,OAAO,MAAM,MAAM,iBAAiB,CAAC;AACrC,OAAO,cAAc,MAAM,8BAA8B,CAAC;AAI1D,MAAM,gBAAgB,GAAG,CAAK,EAC5B,aAAa,EAAE,uBAAuB,EACtC,KAAK,EACL,UAAU,EACV,SAAS,EACT,eAAe,EACf,YAAY,EACZ,oBAAoB,EACpB,SAAS,EACT,cAAc,EACd,eAAe,EACf,WAAW,EACX,iBAAiB,EACjB,GAAG,IAAI,EACkB,EAAE,EAAE;IAC7B,MAAM,SAAS,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;IAErC,MAAM,CAAC,aAAa,EAAE,gBAAgB,CAAC,GAAG,eAAe,CAAC,uBAAuB,EAAE,YAAY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AAc,CAAC,IAAI,CAAC,gBACrC,SAAS,qBACJ,cAAc,sBACb,eAAe,IAEhC,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE;gBACzB,MAAM,MAAM,GAAG,SAAS,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;gBACtC,OAAO,CACL,oBAAC,gBAAgB,IACf,GAAG,EAAE,MAAM,EACX,IAAI,EAAE,IAAI,EACV,KAAK,EAAE,CAAC,EACR,KAAK,EAAE,KAAK,EACZ,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,QAAQ,EACtB,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,EAChC,oBAAoB,EAAE,oBAAoB,EAC1C,sBAAsB,EAAE,sBAAsB,EAC9C,cAAc,EAAE,cAAc,GAC9B,CACH,CAAC;YACJ,CAAC,CAAC,CACC,CACsB,CACzB,CACP,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React, { useRef } from 'react';\nimport clsx from 'clsx';\n\nimport { getBaseProps } from '../internal/base-component';\nimport { fireNonCancelableEvent } from '../internal/events';\nimport { InternalBaseComponentProps } from '../internal/hooks/use-base-component';\nimport { useControllable } from '../internal/hooks/use-controllable';\nimport { TreeViewProps } from './interfaces';\nimport { KeyboardNavigationProvider } from './keyboard-navigation';\nimport InternalTreeItem from './tree-item';\nimport { getAllVisibleItemsIndices } from './utils';\n\nimport styles from './styles.css.js';\nimport testUtilStyles from './test-classes/styles.css.js';\n\ntype InternalTreeViewProps<T> = TreeViewProps<T> & InternalBaseComponentProps;\n\nconst InternalTreeView = <T,>({\n expandedItems: controlledExpandedItems,\n items,\n renderItem,\n getItemId,\n getItemChildren,\n onItemToggle,\n renderItemToggleIcon,\n ariaLabel,\n ariaLabelledby,\n ariaDescribedby,\n connectorLines,\n i18nStrings,\n __internalRootRef,\n ...rest\n}: InternalTreeViewProps<T>) => {\n const baseProps = getBaseProps(rest);\n\n const [expandedItems, setExpandedItems] = useControllable(controlledExpandedItems, onItemToggle, [], {\n componentName: 'TreeView',\n controlledProp: 'expandedItems',\n changeHandler: 'onItemToggle',\n });\n const treeViewRefObject = useRef(null);\n\n const allVisibleItemsIndices = getAllVisibleItemsIndices({ items, expandedItems, getItemId, getItemChildren });\n\n const onToggle = ({ id, item, expanded }: TreeViewProps.ItemToggleDetail<T>) => {\n if (expanded) {\n setExpandedItems([...(expandedItems || []), id]);\n } else {\n setExpandedItems((expandedItems || []).filter(expandedId => expandedId !== id));\n }\n fireNonCancelableEvent(onItemToggle, { id, item, expanded });\n };\n\n return (\n <div {...baseProps} ref={__internalRootRef} className={clsx(baseProps.className, styles.root, testUtilStyles.root)}>\n <KeyboardNavigationProvider getTreeView={() => treeViewRefObject.current}>\n <ul\n role=\"tree\"\n ref={treeViewRefObject}\n className={clsx(styles.tree, testUtilStyles.tree)}\n aria-label={ariaLabel}\n aria-labelledby={ariaLabelledby}\n aria-describedby={ariaDescribedby}\n >\n {items.map((item, index) => {\n const itemId = getItemId(item, index);\n return (\n <InternalTreeItem<T>\n key={itemId}\n item={item}\n level={1}\n index={index}\n expandedItems={expandedItems}\n i18nStrings={i18nStrings}\n onItemToggle={onToggle}\n renderItem={renderItem}\n getItemId={getItemId}\n getItemChildren={getItemChildren}\n renderItemToggleIcon={renderItemToggleIcon}\n allVisibleItemsIndices={allVisibleItemsIndices}\n connectorLines={connectorLines}\n />\n );\n })}\n </ul>\n </KeyboardNavigationProvider>\n </div>\n );\n};\n\nexport default InternalTreeView;\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TreeViewProps } from '../interfaces';
|
|
2
|
-
interface InternalTreeItemProps<T> extends Pick<TreeViewProps, 'expandedItems' | 'renderItem' | 'getItemId' | 'getItemChildren' | 'renderItemToggleIcon' | 'i18nStrings'> {
|
|
2
|
+
interface InternalTreeItemProps<T> extends Pick<TreeViewProps, 'expandedItems' | 'renderItem' | 'getItemId' | 'getItemChildren' | 'renderItemToggleIcon' | 'i18nStrings' | 'connectorLines'> {
|
|
3
3
|
item: T;
|
|
4
4
|
index: number;
|
|
5
5
|
level: number;
|
|
@@ -14,6 +14,7 @@ declare const InternalTreeItem: <T>({
|
|
|
14
14
|
level,
|
|
15
15
|
i18nStrings,
|
|
16
16
|
expandedItems,
|
|
17
|
+
connectorLines,
|
|
17
18
|
renderItemToggleIcon,
|
|
18
19
|
renderItem,
|
|
19
20
|
getItemId,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tree-view/tree-item/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tree-view/tree-item/index.tsx"],"names":[],"mappings":"AASA,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAO9C,UAAU,qBAAqB,CAAC,CAAC,CAC/B,SAAQ,IAAI,CACV,aAAa,EACX,eAAe,GACf,YAAY,GACZ,WAAW,GACX,iBAAiB,GACjB,sBAAsB,GACtB,aAAa,GACb,gBAAgB,CACnB;IACD,IAAI,EAAE,CAAC,CAAC;IACR,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,CAAC,MAAM,EAAE,aAAa,CAAC,gBAAgB,CAAC,CAAC,CAAC,KAAK,IAAI,CAAC;IAClE,sBAAsB,EAAE;QACtB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAC;KACvB,CAAC;CACH;AAED,QAAA,MAAM,gBAAgB,GAAI,CAAC,EAAG,yKAa3B,qBAAqB,CAAC,CAAC,CAAC,gBA0G1B,CAAC;AAEF,eAAe,gBAAgB,CAAC"}
|
|
@@ -6,10 +6,11 @@ import { useInternalI18n } from '../../i18n/context';
|
|
|
6
6
|
import { ExpandToggleButton } from '../../internal/components/expand-toggle-button';
|
|
7
7
|
import InternalStructuredItem from '../../internal/components/structured-item';
|
|
8
8
|
import { joinStrings } from '../../internal/utils/strings';
|
|
9
|
+
import VerticalConnector from '../vertical-connector';
|
|
9
10
|
import FocusTarget from './focus-target';
|
|
10
11
|
import testUtilStyles from '../test-classes/styles.css.js';
|
|
11
12
|
import styles from './styles.css.js';
|
|
12
|
-
const InternalTreeItem = ({ item, index, level, i18nStrings, expandedItems = [], renderItemToggleIcon, renderItem, getItemId, getItemChildren, onItemToggle, allVisibleItemsIndices, }) => {
|
|
13
|
+
const InternalTreeItem = ({ item, index, level, i18nStrings, expandedItems = [], connectorLines, renderItemToggleIcon, renderItem, getItemId, getItemChildren, onItemToggle, allVisibleItemsIndices, }) => {
|
|
13
14
|
var _a, _b;
|
|
14
15
|
const i18n = useInternalI18n('tree-view');
|
|
15
16
|
const { icon, content, secondaryContent, actions, announcementLabel } = renderItem(item, index);
|
|
@@ -18,6 +19,7 @@ const InternalTreeItem = ({ item, index, level, i18nStrings, expandedItems = [],
|
|
|
18
19
|
const isExpandable = children.length > 0;
|
|
19
20
|
const isExpanded = isExpandable && expandedItems.includes(id);
|
|
20
21
|
const nextLevel = level + 1;
|
|
22
|
+
const showVerticalConnectorLines = connectorLines === 'vertical' && isExpanded;
|
|
21
23
|
let customIcon = undefined;
|
|
22
24
|
if (isExpandable && renderItemToggleIcon) {
|
|
23
25
|
customIcon = renderItemToggleIcon({ expanded: isExpanded });
|
|
@@ -31,12 +33,15 @@ const InternalTreeItem = ({ item, index, level, i18nStrings, expandedItems = [],
|
|
|
31
33
|
React.createElement("div", { className: styles['treeitem-content-wrapper'] },
|
|
32
34
|
React.createElement("div", { className: styles['expand-toggle-wrapper'] },
|
|
33
35
|
React.createElement("div", { className: styles.toggle }, isExpandable ? (React.createElement(ExpandToggleButton, { isExpanded: isExpanded, customIcon: customIcon, expandButtonLabel: joinStrings(i18n('i18nStrings.expandButtonLabel', (_a = i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.expandButtonLabel) === null || _a === void 0 ? void 0 : _a.call(i18nStrings, item)), itemLabelToAnnounce), collapseButtonLabel: joinStrings(i18n('i18nStrings.collapseButtonLabel', (_b = i18nStrings === null || i18nStrings === void 0 ? void 0 : i18nStrings.collapseButtonLabel) === null || _b === void 0 ? void 0 : _b.call(i18nStrings, item)), itemLabelToAnnounce), onExpandableItemToggle: () => onItemToggle({ id, item, expanded: !isExpanded }), className: styles['tree-item-focus-target'], disableFocusHighlight: true })) : (React.createElement(FocusTarget, { ariaLabel: itemLabelToAnnounce })))),
|
|
36
|
+
showVerticalConnectorLines && React.createElement(VerticalConnector, { variant: "grid" }),
|
|
34
37
|
React.createElement("div", { className: styles['structured-item-wrapper'] },
|
|
35
38
|
React.createElement(InternalStructuredItem, { icon: icon, content: content, secondaryContent: secondaryContent, actions: actions, wrapActions: false, className: styles['tree-item-structured-item'] }))),
|
|
36
|
-
isExpanded && children.length && (React.createElement("ul", { role: "group", className: styles['treeitem-group'] },
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
isExpanded && children.length && (React.createElement("ul", { role: "group", className: styles['treeitem-group'] },
|
|
40
|
+
children.map((child, index) => {
|
|
41
|
+
const itemId = getItemId(child, index);
|
|
42
|
+
return (React.createElement(InternalTreeItem, { item: child, index: index, key: itemId, level: nextLevel, expandedItems: expandedItems, i18nStrings: i18nStrings, onItemToggle: onItemToggle, renderItem: renderItem, getItemId: getItemId, getItemChildren: getItemChildren, renderItemToggleIcon: renderItemToggleIcon, allVisibleItemsIndices: allVisibleItemsIndices, connectorLines: connectorLines }));
|
|
43
|
+
}),
|
|
44
|
+
showVerticalConnectorLines && React.createElement(VerticalConnector, { variant: "absolute" })))));
|
|
40
45
|
};
|
|
41
46
|
export default InternalTreeItem;
|
|
42
47
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tree-view/tree-item/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,sBAAsB,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,MAAM,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tree-view/tree-item/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,sBAAsB,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAE3D,OAAO,iBAAiB,MAAM,uBAAuB,CAAC;AACtD,OAAO,WAAW,MAAM,gBAAgB,CAAC;AAEzC,OAAO,cAAc,MAAM,+BAA+B,CAAC;AAC3D,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAsBrC,MAAM,gBAAgB,GAAG,CAAK,EAC5B,IAAI,EACJ,KAAK,EACL,KAAK,EACL,WAAW,EACX,aAAa,GAAG,EAAE,EAClB,cAAc,EACd,oBAAoB,EACpB,UAAU,EACV,SAAS,E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,EAClC,OAAO,EAAE,OAAO,EAChB,WAAW,EAAE,KAAK,EAClB,SAAS,EAAE,MAAM,CAAC,2BAA2B,CAAC,GAC9C,CACE,CACF;QAEL,UAAU,IAAI,QAAQ,CAAC,MAAM,IAAI,CAChC,4BAAI,IAAI,EAAC,OAAO,EAAC,SAAS,EAAE,MAAM,CAAC,gBAAgB,CAAC;YACjD,QAAQ,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,KAAK,EAAE,EAAE;gBAC7B,MAAM,MAAM,GAAG,SAAS,CAAC,KAAK,EAAE,KAAK,CAAC,CAAC;gBACvC,OAAO,CACL,oBAAC,gBAAgB,IACf,IAAI,EAAE,KAAK,EACX,KAAK,EAAE,KAAK,EACZ,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,SAAS,EAChB,aAAa,EAAE,aAAa,EAC5B,WAAW,EAAE,WAAW,EACxB,YAAY,EAAE,YAAY,EAC1B,UAAU,EAAE,UAAU,EACtB,SAAS,EAAE,SAAS,EACpB,eAAe,EAAE,eAAe,EAChC,oBAAoB,EAAE,oBAAoB,EAC1C,sBAAsB,EAAE,sBAAsB,EAC9C,cAAc,EAAE,cAAc,GAC9B,CACH,CAAC;YACJ,CAAC,CAAC;YAED,0BAA0B,IAAI,oBAAC,iBAAiB,IAAC,OAAO,EAAC,UAAU,GAAG,CACpE,CACN,CACE,CACN,CAAC;AACJ,CAAC,CAAC;AAEF,eAAe,gBAAgB,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport { useInternalI18n } from '../../i18n/context';\nimport { ExpandToggleButton } from '../../internal/components/expand-toggle-button';\nimport InternalStructuredItem from '../../internal/components/structured-item';\nimport { joinStrings } from '../../internal/utils/strings';\nimport { TreeViewProps } from '../interfaces';\nimport VerticalConnector from '../vertical-connector';\nimport FocusTarget from './focus-target';\n\nimport testUtilStyles from '../test-classes/styles.css.js';\nimport styles from './styles.css.js';\n\ninterface InternalTreeItemProps<T>\n extends Pick<\n TreeViewProps,\n | 'expandedItems'\n | 'renderItem'\n | 'getItemId'\n | 'getItemChildren'\n | 'renderItemToggleIcon'\n | 'i18nStrings'\n | 'connectorLines'\n > {\n item: T;\n index: number;\n level: number;\n onItemToggle: (detail: TreeViewProps.ItemToggleDetail<T>) => void;\n allVisibleItemsIndices: {\n [key: string]: number;\n };\n}\n\nconst InternalTreeItem = <T,>({\n item,\n index,\n level,\n i18nStrings,\n expandedItems = [],\n connectorLines,\n renderItemToggleIcon,\n renderItem,\n getItemId,\n getItemChildren,\n onItemToggle,\n allVisibleItemsIndices,\n}: InternalTreeItemProps<T>) => {\n const i18n = useInternalI18n('tree-view');\n\n const { icon, content, secondaryContent, actions, announcementLabel } = renderItem(item, index);\n const id = getItemId(item, index);\n const children = getItemChildren(item, index) || [];\n const isExpandable = children.length > 0;\n const isExpanded = isExpandable && expandedItems.includes(id);\n const nextLevel = level + 1;\n\n const showVerticalConnectorLines = connectorLines === 'vertical' && isExpanded;\n\n let customIcon: React.ReactNode | undefined = undefined;\n if (isExpandable && renderItemToggleIcon) {\n customIcon = renderItemToggleIcon({ expanded: isExpanded });\n }\n\n const itemLabelToAnnounce = announcementLabel\n ? announcementLabel\n : typeof content === 'string'\n ? (content as string)\n : '';\n\n return (\n <li\n role=\"treeitem\"\n id={id}\n className={clsx(\n styles.treeitem,\n testUtilStyles.treeitem,\n level > 1 && styles.offset,\n isExpandable && [testUtilStyles.expandable],\n isExpanded && [testUtilStyles.expanded]\n )}\n aria-expanded={isExpandable ? isExpanded : undefined}\n aria-level={level}\n data-testid={`awsui-treeitem-${id}`}\n data-awsui-tree-item-index={allVisibleItemsIndices[id]}\n >\n <div className={styles['treeitem-content-wrapper']}>\n <div className={styles['expand-toggle-wrapper']}>\n <div className={styles.toggle}>\n {isExpandable ? (\n <ExpandToggleButton\n isExpanded={isExpanded}\n customIcon={customIcon}\n expandButtonLabel={joinStrings(\n i18n('i18nStrings.expandButtonLabel', i18nStrings?.expandButtonLabel?.(item)),\n itemLabelToAnnounce\n )}\n collapseButtonLabel={joinStrings(\n i18n('i18nStrings.collapseButtonLabel', i18nStrings?.collapseButtonLabel?.(item)),\n itemLabelToAnnounce\n )}\n onExpandableItemToggle={() => onItemToggle({ id, item, expanded: !isExpanded })}\n className={styles['tree-item-focus-target']}\n disableFocusHighlight={true}\n />\n ) : (\n <FocusTarget ariaLabel={itemLabelToAnnounce} />\n )}\n </div>\n </div>\n\n {showVerticalConnectorLines && <VerticalConnector variant=\"grid\" />}\n\n <div className={styles['structured-item-wrapper']}>\n <InternalStructuredItem\n icon={icon}\n content={content}\n secondaryContent={secondaryContent}\n actions={actions}\n wrapActions={false}\n className={styles['tree-item-structured-item']}\n />\n </div>\n </div>\n\n {isExpanded && children.length && (\n <ul role=\"group\" className={styles['treeitem-group']}>\n {children.map((child, index) => {\n const itemId = getItemId(child, index);\n return (\n <InternalTreeItem<T>\n item={child}\n index={index}\n key={itemId}\n level={nextLevel}\n expandedItems={expandedItems}\n i18nStrings={i18nStrings}\n onItemToggle={onItemToggle}\n renderItem={renderItem}\n getItemId={getItemId}\n getItemChildren={getItemChildren}\n renderItemToggleIcon={renderItemToggleIcon}\n allVisibleItemsIndices={allVisibleItemsIndices}\n connectorLines={connectorLines}\n />\n );\n })}\n\n {showVerticalConnectorLines && <VerticalConnector variant=\"absolute\" />}\n </ul>\n )}\n </li>\n );\n};\n\nexport default InternalTreeItem;\n"]}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"treeitem-group": "awsui_treeitem-
|
|
5
|
-
"treeitem": "
|
|
6
|
-
"offset": "
|
|
7
|
-
"treeitem-content-wrapper": "awsui_treeitem-content-
|
|
8
|
-
"tree-item-focus-target": "awsui_tree-item-focus-
|
|
9
|
-
"expand-toggle-wrapper": "awsui_expand-toggle-
|
|
10
|
-
"toggle": "
|
|
11
|
-
"structured-item-wrapper": "awsui_structured-item-
|
|
12
|
-
"tree-item-structured-item": "awsui_tree-item-structured-
|
|
4
|
+
"treeitem-group": "awsui_treeitem-group_1agpu_rc23v_185",
|
|
5
|
+
"treeitem": "awsui_treeitem_1agpu_rc23v_185",
|
|
6
|
+
"offset": "awsui_offset_1agpu_rc23v_202",
|
|
7
|
+
"treeitem-content-wrapper": "awsui_treeitem-content-wrapper_1agpu_rc23v_205",
|
|
8
|
+
"tree-item-focus-target": "awsui_tree-item-focus-target_1agpu_rc23v_210",
|
|
9
|
+
"expand-toggle-wrapper": "awsui_expand-toggle-wrapper_1agpu_rc23v_231",
|
|
10
|
+
"toggle": "awsui_toggle_1agpu_rc23v_236",
|
|
11
|
+
"structured-item-wrapper": "awsui_structured-item-wrapper_1agpu_rc23v_241",
|
|
12
|
+
"tree-item-structured-item": "awsui_tree-item-structured-item_1agpu_rc23v_248"
|
|
13
13
|
};
|
|
14
14
|
|
|
@@ -182,7 +182,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
182
182
|
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
183
183
|
SPDX-License-Identifier: Apache-2.0
|
|
184
184
|
*/
|
|
185
|
-
.awsui_treeitem-
|
|
185
|
+
.awsui_treeitem-group_1agpu_rc23v_185:not(#\9) {
|
|
186
186
|
list-style: none;
|
|
187
187
|
margin-block: 0;
|
|
188
188
|
margin-inline: 0;
|
|
@@ -191,7 +191,7 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
191
191
|
position: relative;
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
-
.
|
|
194
|
+
.awsui_treeitem_1agpu_rc23v_185:not(#\9) {
|
|
195
195
|
list-style: none;
|
|
196
196
|
margin-block: 0;
|
|
197
197
|
margin-inline: 0;
|
|
@@ -199,22 +199,22 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
199
199
|
padding-inline: 0;
|
|
200
200
|
position: relative;
|
|
201
201
|
}
|
|
202
|
-
.
|
|
203
|
-
margin-inline-start:
|
|
202
|
+
.awsui_treeitem_1agpu_rc23v_185.awsui_offset_1agpu_rc23v_202:not(#\9) {
|
|
203
|
+
margin-inline-start: var(--space-tree-view-indentation-gmy1k3, 20px);
|
|
204
204
|
}
|
|
205
|
-
.
|
|
205
|
+
.awsui_treeitem_1agpu_rc23v_185 > .awsui_treeitem-content-wrapper_1agpu_rc23v_205:not(#\9) {
|
|
206
206
|
display: grid;
|
|
207
207
|
grid-template-columns: 28px 1fr;
|
|
208
208
|
align-items: baseline;
|
|
209
209
|
}
|
|
210
|
-
body[data-awsui-focus-visible=true] .
|
|
210
|
+
body[data-awsui-focus-visible=true] .awsui_treeitem_1agpu_rc23v_185 > .awsui_treeitem-content-wrapper_1agpu_rc23v_205:not(#\9):has(.awsui_tree-item-focus-target_1agpu_rc23v_210:focus) {
|
|
211
211
|
position: relative;
|
|
212
212
|
}
|
|
213
|
-
body[data-awsui-focus-visible=true] .
|
|
213
|
+
body[data-awsui-focus-visible=true] .awsui_treeitem_1agpu_rc23v_185 > .awsui_treeitem-content-wrapper_1agpu_rc23v_205:not(#\9):has(.awsui_tree-item-focus-target_1agpu_rc23v_210:focus) {
|
|
214
214
|
outline: 2px dotted transparent;
|
|
215
215
|
outline-offset: calc(0px - 1px);
|
|
216
216
|
}
|
|
217
|
-
body[data-awsui-focus-visible=true] .
|
|
217
|
+
body[data-awsui-focus-visible=true] .awsui_treeitem_1agpu_rc23v_185 > .awsui_treeitem-content-wrapper_1agpu_rc23v_205:not(#\9):has(.awsui_tree-item-focus-target_1agpu_rc23v_210:focus)::before {
|
|
218
218
|
content: " ";
|
|
219
219
|
display: block;
|
|
220
220
|
position: absolute;
|
|
@@ -228,28 +228,27 @@ body[data-awsui-focus-visible=true] .awsui_treeitem_1agpu_g9cri_185 > .awsui_tre
|
|
|
228
228
|
border-end-end-radius: var(--border-radius-control-default-focus-ring-1uabki, 4px);
|
|
229
229
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-uk47pl, #006ce0);
|
|
230
230
|
}
|
|
231
|
-
.
|
|
231
|
+
.awsui_treeitem_1agpu_rc23v_185 > .awsui_treeitem-content-wrapper_1agpu_rc23v_205 > .awsui_expand-toggle-wrapper_1agpu_rc23v_231:not(#\9) {
|
|
232
232
|
display: grid;
|
|
233
233
|
grid-column: 1;
|
|
234
234
|
grid-row: 1;
|
|
235
|
-
padding-inline-end: var(--space-scaled-xxs-pfm1nx, 4px);
|
|
236
235
|
}
|
|
237
|
-
.
|
|
236
|
+
.awsui_treeitem_1agpu_rc23v_185 > .awsui_treeitem-content-wrapper_1agpu_rc23v_205 > .awsui_expand-toggle-wrapper_1agpu_rc23v_231 > .awsui_toggle_1agpu_rc23v_236:not(#\9) {
|
|
238
237
|
justify-self: center;
|
|
239
238
|
position: relative;
|
|
240
239
|
inset-block-start: 2px;
|
|
241
240
|
}
|
|
242
|
-
.
|
|
241
|
+
.awsui_treeitem_1agpu_rc23v_185 > .awsui_treeitem-content-wrapper_1agpu_rc23v_205 > .awsui_structured-item-wrapper_1agpu_rc23v_241:not(#\9) {
|
|
243
242
|
grid-column: 2;
|
|
244
243
|
grid-row: 1/span 2;
|
|
245
|
-
padding-block: var(--space-scaled-
|
|
244
|
+
padding-block: var(--space-scaled-xxxs-oo06c7, 2px);
|
|
246
245
|
position: relative;
|
|
247
246
|
}
|
|
248
247
|
|
|
249
|
-
.awsui_tree-item-structured-
|
|
248
|
+
.awsui_tree-item-structured-item_1agpu_rc23v_248:not(#\9) {
|
|
250
249
|
/* used in keyboard navigation */
|
|
251
250
|
}
|
|
252
251
|
|
|
253
|
-
.awsui_tree-item-focus-
|
|
252
|
+
.awsui_tree-item-focus-target_1agpu_rc23v_210:not(#\9) {
|
|
254
253
|
outline: none;
|
|
255
254
|
}
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"treeitem-group": "awsui_treeitem-
|
|
6
|
-
"treeitem": "
|
|
7
|
-
"offset": "
|
|
8
|
-
"treeitem-content-wrapper": "awsui_treeitem-content-
|
|
9
|
-
"tree-item-focus-target": "awsui_tree-item-focus-
|
|
10
|
-
"expand-toggle-wrapper": "awsui_expand-toggle-
|
|
11
|
-
"toggle": "
|
|
12
|
-
"structured-item-wrapper": "awsui_structured-item-
|
|
13
|
-
"tree-item-structured-item": "awsui_tree-item-structured-
|
|
5
|
+
"treeitem-group": "awsui_treeitem-group_1agpu_rc23v_185",
|
|
6
|
+
"treeitem": "awsui_treeitem_1agpu_rc23v_185",
|
|
7
|
+
"offset": "awsui_offset_1agpu_rc23v_202",
|
|
8
|
+
"treeitem-content-wrapper": "awsui_treeitem-content-wrapper_1agpu_rc23v_205",
|
|
9
|
+
"tree-item-focus-target": "awsui_tree-item-focus-target_1agpu_rc23v_210",
|
|
10
|
+
"expand-toggle-wrapper": "awsui_expand-toggle-wrapper_1agpu_rc23v_231",
|
|
11
|
+
"toggle": "awsui_toggle_1agpu_rc23v_236",
|
|
12
|
+
"structured-item-wrapper": "awsui_structured-item-wrapper_1agpu_rc23v_241",
|
|
13
|
+
"tree-item-structured-item": "awsui_tree-item-structured-item_1agpu_rc23v_248"
|
|
14
14
|
};
|
|
15
15
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/tree-view/vertical-connector/index.tsx"],"names":[],"mappings":"AAOA,UAAU,sBAAsB;IAC9B,OAAO,EAAE,MAAM,GAAG,UAAU,CAAC;CAC9B;AAGD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,OAAO,EAAE,EAAE,sBAAsB,eAG5E"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
|
+
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
import React from 'react';
|
|
4
|
+
import clsx from 'clsx';
|
|
5
|
+
import styles from './styles.css.js';
|
|
6
|
+
// istanbul ignore next - tested via screenshot tests
|
|
7
|
+
export default function VerticalConnector({ variant }) {
|
|
8
|
+
// istanbul ignore next - tested via screenshot tests
|
|
9
|
+
return React.createElement("div", { className: clsx(styles['vertical-connector'], styles[variant]) });
|
|
10
|
+
}
|
|
11
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/tree-view/vertical-connector/index.tsx"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AACtC,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,MAAM,MAAM,iBAAiB,CAAC;AAMrC,qDAAqD;AACrD,MAAM,CAAC,OAAO,UAAU,iBAAiB,CAAC,EAAE,OAAO,EAA0B;IAC3E,qDAAqD;IACrD,OAAO,6BAAK,SAAS,EAAE,IAAI,CAAC,MAAM,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC,OAAO,CAAC,CAAC,GAAI,CAAC;AACjF,CAAC","sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport React from 'react';\nimport clsx from 'clsx';\n\nimport styles from './styles.css.js';\n\ninterface VerticalConnectorProps {\n variant: 'grid' | 'absolute';\n}\n\n// istanbul ignore next - tested via screenshot tests\nexport default function VerticalConnector({ variant }: VerticalConnectorProps) {\n // istanbul ignore next - tested via screenshot tests\n return <div className={clsx(styles['vertical-connector'], styles[variant])} />;\n}\n"]}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/*
|
|
2
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
|
+
SPDX-License-Identifier: Apache-2.0
|
|
4
|
+
*/
|
|
5
|
+
/*
|
|
6
|
+
Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
7
|
+
SPDX-License-Identifier: Apache-2.0
|
|
8
|
+
*/
|
|
9
|
+
.awsui_vertical-connector_1r2pu_l2zeb_9:not(#\9) {
|
|
10
|
+
background-color: var(--color-tree-view-connector-line-1usxvn, #8c8c94);
|
|
11
|
+
inline-size: var(--border-divider-list-width-tdfx1x, 1px);
|
|
12
|
+
}
|
|
13
|
+
.awsui_vertical-connector_1r2pu_l2zeb_9.awsui_grid_1r2pu_l2zeb_13:not(#\9) {
|
|
14
|
+
grid-row: 2/span 3;
|
|
15
|
+
grid-column: 1;
|
|
16
|
+
block-size: 100%;
|
|
17
|
+
position: relative;
|
|
18
|
+
inset-inline-start: 14px;
|
|
19
|
+
}
|
|
20
|
+
.awsui_vertical-connector_1r2pu_l2zeb_9.awsui_absolute_1r2pu_l2zeb_20:not(#\9) {
|
|
21
|
+
position: absolute;
|
|
22
|
+
inset: 0;
|
|
23
|
+
inset-block-end: var(--space-scaled-xs-xwoogq, 8px);
|
|
24
|
+
inset-inline-start: 14px;
|
|
25
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
|
|
2
|
+
// es-module interop with Babel and Typescript
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
module.exports.default = {
|
|
5
|
+
"vertical-connector": "awsui_vertical-connector_1r2pu_l2zeb_9",
|
|
6
|
+
"grid": "awsui_grid_1r2pu_l2zeb_13",
|
|
7
|
+
"absolute": "awsui_absolute_1r2pu_l2zeb_20"
|
|
8
|
+
};
|
|
9
|
+
|