@cloudscape-design/components-themeable 3.0.1400 → 3.0.1401
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/autosuggest/styles.scss +5 -0
- package/lib/internal/scss/copy-to-clipboard/styles.scss +7 -7
- package/lib/internal/scss/flashbar/collapsible.scss +21 -11
- package/lib/internal/scss/flashbar/styles.scss +26 -8
- package/lib/internal/scss/icon/hover-motion.scss +21 -0
- package/lib/internal/scss/icon/styles.scss +2 -1
- package/lib/internal/scss/internal/components/option/styles.scss +8 -0
- package/lib/internal/scss/internal/components/radio-button/styles.scss +2 -0
- package/lib/internal/scss/internal/components/sticky-header/mixins.scss +11 -0
- package/lib/internal/scss/internal/generated/custom-css-properties/index.scss +1 -1
- package/lib/internal/scss/multiselect/styles.scss +22 -0
- package/lib/internal/scss/radio-button/styles.scss +1 -2
- package/lib/internal/scss/radio-group/styles.scss +3 -0
- package/lib/internal/scss/segmented-control/segment.scss +29 -6
- package/lib/internal/scss/segmented-control/styles.scss +26 -4
- package/lib/internal/scss/select/parts/styles.scss +15 -2
- package/lib/internal/scss/select/styles.scss +20 -0
- package/lib/internal/scss/table/resizer/styles.scss +4 -4
- package/lib/internal/scss/table/styles.scss +2 -5
- package/lib/internal/template/autosuggest/index.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/index.js +1 -1
- package/lib/internal/template/autosuggest/index.js.map +1 -1
- package/lib/internal/template/autosuggest/internal.d.ts +6 -0
- package/lib/internal/template/autosuggest/internal.d.ts.map +1 -1
- package/lib/internal/template/autosuggest/internal.js +2 -2
- package/lib/internal/template/autosuggest/internal.js.map +1 -1
- package/lib/internal/template/autosuggest/styles.css.js +3 -3
- package/lib/internal/template/autosuggest/styles.scoped.css +5 -3
- package/lib/internal/template/autosuggest/styles.selectors.js +3 -3
- package/lib/internal/template/cards/index.js +1 -1
- package/lib/internal/template/cards/index.js.map +1 -1
- package/lib/internal/template/container/internal.d.ts +3 -2
- package/lib/internal/template/container/internal.d.ts.map +1 -1
- package/lib/internal/template/container/internal.js +2 -2
- package/lib/internal/template/container/internal.js.map +1 -1
- package/lib/internal/template/container/use-sticky-header.d.ts +0 -8
- package/lib/internal/template/container/use-sticky-header.d.ts.map +1 -1
- package/lib/internal/template/container/use-sticky-header.js +9 -92
- package/lib/internal/template/container/use-sticky-header.js.map +1 -1
- package/lib/internal/template/copy-to-clipboard/internal.d.ts.map +1 -1
- package/lib/internal/template/copy-to-clipboard/internal.js +2 -16
- package/lib/internal/template/copy-to-clipboard/internal.js.map +1 -1
- package/lib/internal/template/copy-to-clipboard/styles.css.js +10 -10
- package/lib/internal/template/copy-to-clipboard/styles.scoped.css +19 -19
- package/lib/internal/template/copy-to-clipboard/styles.selectors.js +10 -10
- package/lib/internal/template/flashbar/collapsible-flashbar.d.ts +1 -1
- package/lib/internal/template/flashbar/collapsible-flashbar.d.ts.map +1 -1
- package/lib/internal/template/flashbar/collapsible-flashbar.js +10 -4
- package/lib/internal/template/flashbar/collapsible-flashbar.js.map +1 -1
- package/lib/internal/template/flashbar/flash.d.ts +6 -0
- package/lib/internal/template/flashbar/flash.d.ts.map +1 -1
- package/lib/internal/template/flashbar/flash.js +6 -6
- package/lib/internal/template/flashbar/flash.js.map +1 -1
- package/lib/internal/template/flashbar/internal-interfaces.d.ts +11 -1
- package/lib/internal/template/flashbar/internal-interfaces.d.ts.map +1 -1
- package/lib/internal/template/flashbar/internal-interfaces.js.map +1 -1
- package/lib/internal/template/flashbar/non-collapsible-flashbar.d.ts.map +1 -1
- package/lib/internal/template/flashbar/non-collapsible-flashbar.js +8 -1
- package/lib/internal/template/flashbar/non-collapsible-flashbar.js.map +1 -1
- package/lib/internal/template/flashbar/styles.css.js +50 -50
- package/lib/internal/template/flashbar/styles.scoped.css +184 -161
- package/lib/internal/template/flashbar/styles.selectors.js +50 -50
- package/lib/internal/template/icon/generated/icons.d.ts +4 -0
- package/lib/internal/template/icon/generated/icons.d.ts.map +1 -1
- package/lib/internal/template/icon/generated/icons.js +14 -0
- package/lib/internal/template/icon/generated/icons.js.map +1 -1
- package/lib/internal/template/icon/styles.css.js +44 -43
- package/lib/internal/template/icon/styles.scoped.css +109 -107
- package/lib/internal/template/icon/styles.selectors.js +44 -43
- package/lib/internal/template/icon-provider/interfaces.d.ts +1 -1
- package/lib/internal/template/icon-provider/interfaces.d.ts.map +1 -1
- package/lib/internal/template/icon-provider/interfaces.js.map +1 -1
- package/lib/internal/template/internal/base-component/styles.scoped.css +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/index.d.ts +5 -0
- package/lib/internal/template/internal/components/autosuggest-input/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/autosuggest-input/index.js +2 -2
- package/lib/internal/template/internal/components/autosuggest-input/index.js.map +1 -1
- package/lib/internal/template/internal/components/option/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/option/index.js +2 -2
- package/lib/internal/template/internal/components/option/index.js.map +1 -1
- package/lib/internal/template/internal/components/option/styles.css.js +19 -18
- package/lib/internal/template/internal/components/option/styles.scoped.css +39 -33
- package/lib/internal/template/internal/components/option/styles.selectors.js +19 -18
- package/lib/internal/template/internal/components/radio-button/index.d.ts +1 -1
- package/lib/internal/template/internal/components/radio-button/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/radio-button/index.js.map +1 -1
- package/lib/internal/template/internal/components/radio-button/styles.css.js +7 -7
- package/lib/internal/template/internal/components/radio-button/styles.scoped.css +36 -12
- package/lib/internal/template/internal/components/radio-button/styles.selectors.js +7 -7
- package/lib/internal/template/internal/components/sortable-area/index.d.ts.map +1 -1
- package/lib/internal/template/internal/components/sortable-area/index.js +34 -4
- package/lib/internal/template/internal/components/sortable-area/index.js.map +1 -1
- package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/index.js +1 -1
- package/lib/internal/template/internal/components/sortable-area/keyboard-sensor/index.js.map +1 -1
- package/lib/internal/template/{table → internal/components/sticky-header}/sticky-scrolling.d.ts +1 -6
- package/lib/internal/template/internal/components/sticky-header/sticky-scrolling.d.ts.map +1 -0
- package/lib/internal/template/{table → internal/components/sticky-header}/sticky-scrolling.js +2 -7
- package/lib/internal/template/internal/components/sticky-header/sticky-scrolling.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-cells-resize-observer.d.ts +2 -0
- package/lib/internal/template/internal/components/sticky-header/use-cells-resize-observer.d.ts.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-cells-resize-observer.js +39 -0
- package/lib/internal/template/internal/components/sticky-header/use-cells-resize-observer.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-header-stuck.d.ts +8 -0
- package/lib/internal/template/internal/components/sticky-header/use-header-stuck.d.ts.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-header-stuck.js +35 -0
- package/lib/internal/template/internal/components/sticky-header/use-header-stuck.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-header-copy.d.ts +14 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-header-copy.d.ts.map +1 -0
- package/lib/internal/template/{table/use-sticky-header.js → internal/components/sticky-header/use-sticky-header-copy.js} +7 -8
- package/lib/internal/template/internal/components/sticky-header/use-sticky-header-copy.js.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-position.d.ts +22 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-position.d.ts.map +1 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-position.js +57 -0
- package/lib/internal/template/internal/components/sticky-header/use-sticky-position.js.map +1 -0
- package/lib/internal/template/internal/environment.js +2 -2
- package/lib/internal/template/internal/environment.json +2 -2
- package/lib/internal/template/multiselect/index.d.ts.map +1 -1
- package/lib/internal/template/multiselect/index.js +1 -1
- package/lib/internal/template/multiselect/index.js.map +1 -1
- package/lib/internal/template/multiselect/internal.d.ts +12 -1
- package/lib/internal/template/multiselect/internal.d.ts.map +1 -1
- package/lib/internal/template/multiselect/internal.js +9 -5
- package/lib/internal/template/multiselect/internal.js.map +1 -1
- package/lib/internal/template/multiselect/styles.css.js +5 -5
- package/lib/internal/template/multiselect/styles.scoped.css +17 -5
- package/lib/internal/template/multiselect/styles.selectors.js +5 -5
- package/lib/internal/template/radio-button/styles.css.js +1 -1
- package/lib/internal/template/radio-button/styles.scoped.css +1 -25
- package/lib/internal/template/radio-button/styles.selectors.js +1 -1
- package/lib/internal/template/radio-group/internal.d.ts +7 -1
- package/lib/internal/template/radio-group/internal.d.ts.map +1 -1
- package/lib/internal/template/radio-group/internal.js +2 -2
- package/lib/internal/template/radio-group/internal.js.map +1 -1
- package/lib/internal/template/radio-group/styles.css.js +5 -5
- package/lib/internal/template/radio-group/styles.scoped.css +7 -6
- package/lib/internal/template/radio-group/styles.selectors.js +5 -5
- package/lib/internal/template/segmented-control/internal-segmented-control.d.ts +3 -1
- package/lib/internal/template/segmented-control/internal-segmented-control.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/internal-segmented-control.js +3 -3
- package/lib/internal/template/segmented-control/internal-segmented-control.js.map +1 -1
- package/lib/internal/template/segmented-control/internal.d.ts +11 -2
- package/lib/internal/template/segmented-control/internal.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/internal.js +3 -2
- package/lib/internal/template/segmented-control/internal.js.map +1 -1
- package/lib/internal/template/segmented-control/segment.d.ts +2 -0
- package/lib/internal/template/segmented-control/segment.d.ts.map +1 -1
- package/lib/internal/template/segmented-control/segment.js +4 -2
- package/lib/internal/template/segmented-control/segment.js.map +1 -1
- package/lib/internal/template/segmented-control/styles.css.js +31 -31
- package/lib/internal/template/segmented-control/styles.scoped.css +119 -82
- package/lib/internal/template/segmented-control/styles.selectors.js +31 -31
- package/lib/internal/template/select/index.d.ts.map +1 -1
- package/lib/internal/template/select/index.js +1 -1
- package/lib/internal/template/select/index.js.map +1 -1
- package/lib/internal/template/select/internal.d.ts +8 -0
- package/lib/internal/template/select/internal.d.ts.map +1 -1
- package/lib/internal/template/select/internal.js +4 -4
- package/lib/internal/template/select/internal.js.map +1 -1
- package/lib/internal/template/select/parts/styles.css.js +22 -21
- package/lib/internal/template/select/parts/styles.scoped.css +28 -24
- package/lib/internal/template/select/parts/styles.selectors.js +22 -21
- package/lib/internal/template/select/parts/trigger.d.ts +6 -0
- package/lib/internal/template/select/parts/trigger.d.ts.map +1 -1
- package/lib/internal/template/select/parts/trigger.js +4 -4
- package/lib/internal/template/select/parts/trigger.js.map +1 -1
- package/lib/internal/template/select/styles.css.js +3 -3
- package/lib/internal/template/select/styles.scoped.css +14 -3
- package/lib/internal/template/select/styles.selectors.js +3 -3
- package/lib/internal/template/styling/autosuggest.scss +1 -0
- package/lib/internal/template/styling/flashbar.scss +127 -0
- package/lib/internal/template/styling/multiselect.scss +80 -0
- package/lib/internal/template/styling/radio-group.scss +1 -0
- package/lib/internal/template/styling/segmented-control.scss +111 -0
- package/lib/internal/template/styling/select.scss +80 -0
- package/lib/internal/template/table/resizer/styles.css.js +17 -17
- package/lib/internal/template/table/resizer/styles.scoped.css +30 -29
- package/lib/internal/template/table/resizer/styles.selectors.js +17 -17
- package/lib/internal/template/table/sticky-header.d.ts.map +1 -1
- package/lib/internal/template/table/sticky-header.js +8 -2
- package/lib/internal/template/table/sticky-header.js.map +1 -1
- package/lib/internal/template/table/styles.css.js +37 -37
- package/lib/internal/template/table/styles.scoped.css +47 -47
- package/lib/internal/template/table/styles.selectors.js +37 -37
- package/lib/internal/template/table/use-column-widths.d.ts.map +1 -1
- package/lib/internal/template/table/use-column-widths.js +4 -16
- package/lib/internal/template/table/use-column-widths.js.map +1 -1
- package/lib/internal/template/toggle/internal.d.ts.map +1 -1
- package/lib/internal/template/toggle/internal.js +1 -1
- package/lib/internal/template/toggle/internal.js.map +1 -1
- package/lib/internal/template/token-group/internal.d.ts +5 -1
- package/lib/internal/template/token-group/internal.d.ts.map +1 -1
- package/lib/internal/template/token-group/internal.js +2 -2
- package/lib/internal/template/token-group/internal.js.map +1 -1
- package/package.json +1 -1
- package/lib/internal/template/table/sticky-scrolling.d.ts.map +0 -1
- package/lib/internal/template/table/sticky-scrolling.js.map +0 -1
- package/lib/internal/template/table/use-sticky-header.d.ts +0 -6
- package/lib/internal/template/table/use-sticky-header.d.ts.map +0 -1
- package/lib/internal/template/table/use-sticky-header.js.map +0 -1
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
// GENERATED from the flashbar Style API docs — do not edit.
|
|
2
|
+
@use '@cloudscape-design/component-toolkit/internal/style-api/slot-mixins' as slot-mixins;
|
|
3
|
+
|
|
4
|
+
@mixin notificationBar(
|
|
5
|
+
$focus-ring-color: null,
|
|
6
|
+
$focus-ring-width: null,
|
|
7
|
+
$focus-ring-radius: null,
|
|
8
|
+
$color: null,
|
|
9
|
+
$background: null,
|
|
10
|
+
$border-color: null,
|
|
11
|
+
$border-width: null,
|
|
12
|
+
$border-style: null,
|
|
13
|
+
$border-block-color: null,
|
|
14
|
+
$border-block-width: null,
|
|
15
|
+
$border-block-style: null,
|
|
16
|
+
$border-inline-color: null,
|
|
17
|
+
$border-inline-width: null,
|
|
18
|
+
$border-inline-style: null,
|
|
19
|
+
$border-radius: null,
|
|
20
|
+
$border-start-start-radius: null,
|
|
21
|
+
$border-start-end-radius: null,
|
|
22
|
+
$border-end-start-radius: null,
|
|
23
|
+
$border-end-end-radius: null,
|
|
24
|
+
$box-shadow: null,
|
|
25
|
+
$padding: null,
|
|
26
|
+
$padding-block: null,
|
|
27
|
+
$padding-inline: null
|
|
28
|
+
) {
|
|
29
|
+
@include slot-mixins.apply(
|
|
30
|
+
'flashbar.notificationBar',
|
|
31
|
+
$tokens: (
|
|
32
|
+
'focus-ring-color': $focus-ring-color,
|
|
33
|
+
'focus-ring-width': $focus-ring-width,
|
|
34
|
+
'focus-ring-radius': $focus-ring-radius,
|
|
35
|
+
),
|
|
36
|
+
$properties: (
|
|
37
|
+
'color': $color,
|
|
38
|
+
'background': $background,
|
|
39
|
+
'border-color': $border-color,
|
|
40
|
+
'border-width': $border-width,
|
|
41
|
+
'border-style': $border-style,
|
|
42
|
+
'border-block-color': $border-block-color,
|
|
43
|
+
'border-block-width': $border-block-width,
|
|
44
|
+
'border-block-style': $border-block-style,
|
|
45
|
+
'border-inline-color': $border-inline-color,
|
|
46
|
+
'border-inline-width': $border-inline-width,
|
|
47
|
+
'border-inline-style': $border-inline-style,
|
|
48
|
+
'border-radius': $border-radius,
|
|
49
|
+
'border-start-start-radius': $border-start-start-radius,
|
|
50
|
+
'border-start-end-radius': $border-start-end-radius,
|
|
51
|
+
'border-end-start-radius': $border-end-start-radius,
|
|
52
|
+
'border-end-end-radius': $border-end-end-radius,
|
|
53
|
+
'box-shadow': $box-shadow,
|
|
54
|
+
'padding': $padding,
|
|
55
|
+
'padding-block': $padding-block,
|
|
56
|
+
'padding-inline': $padding-inline,
|
|
57
|
+
),
|
|
58
|
+
);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
@mixin item(
|
|
62
|
+
$focus-ring-color: null,
|
|
63
|
+
$focus-ring-width: null,
|
|
64
|
+
$focus-ring-radius: null,
|
|
65
|
+
$color: null,
|
|
66
|
+
$background: null,
|
|
67
|
+
$border-color: null,
|
|
68
|
+
$border-width: null,
|
|
69
|
+
$border-style: null,
|
|
70
|
+
$border-block-color: null,
|
|
71
|
+
$border-block-width: null,
|
|
72
|
+
$border-block-style: null,
|
|
73
|
+
$border-inline-color: null,
|
|
74
|
+
$border-inline-width: null,
|
|
75
|
+
$border-inline-style: null,
|
|
76
|
+
$border-radius: null,
|
|
77
|
+
$border-start-start-radius: null,
|
|
78
|
+
$border-start-end-radius: null,
|
|
79
|
+
$border-end-start-radius: null,
|
|
80
|
+
$border-end-end-radius: null,
|
|
81
|
+
$box-shadow: null,
|
|
82
|
+
$padding: null,
|
|
83
|
+
$padding-block: null,
|
|
84
|
+
$padding-inline: null
|
|
85
|
+
) {
|
|
86
|
+
@include slot-mixins.apply(
|
|
87
|
+
'flashbar.item',
|
|
88
|
+
$tokens: (
|
|
89
|
+
'focus-ring-color': $focus-ring-color,
|
|
90
|
+
'focus-ring-width': $focus-ring-width,
|
|
91
|
+
'focus-ring-radius': $focus-ring-radius,
|
|
92
|
+
),
|
|
93
|
+
$properties: (
|
|
94
|
+
'color': $color,
|
|
95
|
+
'background': $background,
|
|
96
|
+
'border-color': $border-color,
|
|
97
|
+
'border-width': $border-width,
|
|
98
|
+
'border-style': $border-style,
|
|
99
|
+
'border-block-color': $border-block-color,
|
|
100
|
+
'border-block-width': $border-block-width,
|
|
101
|
+
'border-block-style': $border-block-style,
|
|
102
|
+
'border-inline-color': $border-inline-color,
|
|
103
|
+
'border-inline-width': $border-inline-width,
|
|
104
|
+
'border-inline-style': $border-inline-style,
|
|
105
|
+
'border-radius': $border-radius,
|
|
106
|
+
'border-start-start-radius': $border-start-start-radius,
|
|
107
|
+
'border-start-end-radius': $border-start-end-radius,
|
|
108
|
+
'border-end-start-radius': $border-end-start-radius,
|
|
109
|
+
'border-end-end-radius': $border-end-end-radius,
|
|
110
|
+
'box-shadow': $box-shadow,
|
|
111
|
+
'padding': $padding,
|
|
112
|
+
'padding-block': $padding-block,
|
|
113
|
+
'padding-inline': $padding-inline,
|
|
114
|
+
),
|
|
115
|
+
);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
@mixin icon(
|
|
119
|
+
$color: null
|
|
120
|
+
) {
|
|
121
|
+
@include slot-mixins.apply(
|
|
122
|
+
'flashbar.icon',
|
|
123
|
+
$properties: (
|
|
124
|
+
'color': $color,
|
|
125
|
+
),
|
|
126
|
+
);
|
|
127
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// GENERATED from the multiselect Style API docs — do not edit.
|
|
2
|
+
@use '@cloudscape-design/component-toolkit/internal/style-api/slot-mixins' as slot-mixins;
|
|
3
|
+
|
|
4
|
+
@mixin trigger(
|
|
5
|
+
$placeholder-color: null,
|
|
6
|
+
$color: null,
|
|
7
|
+
$background: null,
|
|
8
|
+
$border-color: null,
|
|
9
|
+
$border-width: null,
|
|
10
|
+
$border-style: null,
|
|
11
|
+
$border-block-color: null,
|
|
12
|
+
$border-block-width: null,
|
|
13
|
+
$border-block-style: null,
|
|
14
|
+
$border-inline-color: null,
|
|
15
|
+
$border-inline-width: null,
|
|
16
|
+
$border-inline-style: null,
|
|
17
|
+
$border-radius: null,
|
|
18
|
+
$border-start-start-radius: null,
|
|
19
|
+
$border-start-end-radius: null,
|
|
20
|
+
$border-end-start-radius: null,
|
|
21
|
+
$border-end-end-radius: null,
|
|
22
|
+
$box-shadow: null,
|
|
23
|
+
$padding: null,
|
|
24
|
+
$padding-block: null,
|
|
25
|
+
$padding-inline: null,
|
|
26
|
+
$font-family: null,
|
|
27
|
+
$font-size: null,
|
|
28
|
+
$font-weight: null
|
|
29
|
+
) {
|
|
30
|
+
@include slot-mixins.apply(
|
|
31
|
+
'multiselect.trigger',
|
|
32
|
+
$tokens: (
|
|
33
|
+
'placeholder-color': $placeholder-color,
|
|
34
|
+
),
|
|
35
|
+
$properties: (
|
|
36
|
+
'color': $color,
|
|
37
|
+
'background': $background,
|
|
38
|
+
'border-color': $border-color,
|
|
39
|
+
'border-width': $border-width,
|
|
40
|
+
'border-style': $border-style,
|
|
41
|
+
'border-block-color': $border-block-color,
|
|
42
|
+
'border-block-width': $border-block-width,
|
|
43
|
+
'border-block-style': $border-block-style,
|
|
44
|
+
'border-inline-color': $border-inline-color,
|
|
45
|
+
'border-inline-width': $border-inline-width,
|
|
46
|
+
'border-inline-style': $border-inline-style,
|
|
47
|
+
'border-radius': $border-radius,
|
|
48
|
+
'border-start-start-radius': $border-start-start-radius,
|
|
49
|
+
'border-start-end-radius': $border-start-end-radius,
|
|
50
|
+
'border-end-start-radius': $border-end-start-radius,
|
|
51
|
+
'border-end-end-radius': $border-end-end-radius,
|
|
52
|
+
'box-shadow': $box-shadow,
|
|
53
|
+
'padding': $padding,
|
|
54
|
+
'padding-block': $padding-block,
|
|
55
|
+
'padding-inline': $padding-inline,
|
|
56
|
+
'font-family': $font-family,
|
|
57
|
+
'font-size': $font-size,
|
|
58
|
+
'font-weight': $font-weight,
|
|
59
|
+
),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@mixin inlineLabel(
|
|
64
|
+
$color: null,
|
|
65
|
+
$background: null,
|
|
66
|
+
$font-family: null,
|
|
67
|
+
$font-size: null,
|
|
68
|
+
$font-weight: null
|
|
69
|
+
) {
|
|
70
|
+
@include slot-mixins.apply(
|
|
71
|
+
'multiselect.inlineLabel',
|
|
72
|
+
$properties: (
|
|
73
|
+
'color': $color,
|
|
74
|
+
'background': $background,
|
|
75
|
+
'font-family': $font-family,
|
|
76
|
+
'font-size': $font-size,
|
|
77
|
+
'font-weight': $font-weight,
|
|
78
|
+
),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED from the radio-group Style API docs — do not edit.
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
// GENERATED from the segmented-control Style API docs — do not edit.
|
|
2
|
+
@use '@cloudscape-design/component-toolkit/internal/style-api/slot-mixins' as slot-mixins;
|
|
3
|
+
|
|
4
|
+
@mixin root(
|
|
5
|
+
$border-radius: null,
|
|
6
|
+
$background: null,
|
|
7
|
+
$border-color: null,
|
|
8
|
+
$border-width: null,
|
|
9
|
+
$border-style: null,
|
|
10
|
+
$border-block-color: null,
|
|
11
|
+
$border-block-width: null,
|
|
12
|
+
$border-block-style: null,
|
|
13
|
+
$border-inline-color: null,
|
|
14
|
+
$border-inline-width: null,
|
|
15
|
+
$border-inline-style: null
|
|
16
|
+
) {
|
|
17
|
+
@include slot-mixins.apply(
|
|
18
|
+
'segmented-control.root',
|
|
19
|
+
$tokens: (
|
|
20
|
+
'border-radius': $border-radius,
|
|
21
|
+
),
|
|
22
|
+
$properties: (
|
|
23
|
+
'background': $background,
|
|
24
|
+
'border-color': $border-color,
|
|
25
|
+
'border-width': $border-width,
|
|
26
|
+
'border-style': $border-style,
|
|
27
|
+
'border-block-color': $border-block-color,
|
|
28
|
+
'border-block-width': $border-block-width,
|
|
29
|
+
'border-block-style': $border-block-style,
|
|
30
|
+
'border-inline-color': $border-inline-color,
|
|
31
|
+
'border-inline-width': $border-inline-width,
|
|
32
|
+
'border-inline-style': $border-inline-style,
|
|
33
|
+
),
|
|
34
|
+
);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
@mixin segment(
|
|
38
|
+
$focus-ring-color: null,
|
|
39
|
+
$focus-ring-width: null,
|
|
40
|
+
$focus-ring-radius: null,
|
|
41
|
+
$color: null,
|
|
42
|
+
$background: null,
|
|
43
|
+
$border-color: null,
|
|
44
|
+
$border-width: null,
|
|
45
|
+
$border-style: null,
|
|
46
|
+
$border-block-color: null,
|
|
47
|
+
$border-block-width: null,
|
|
48
|
+
$border-block-style: null,
|
|
49
|
+
$border-inline-color: null,
|
|
50
|
+
$border-inline-width: null,
|
|
51
|
+
$border-inline-style: null,
|
|
52
|
+
$border-radius: null,
|
|
53
|
+
$border-start-start-radius: null,
|
|
54
|
+
$border-start-end-radius: null,
|
|
55
|
+
$border-end-start-radius: null,
|
|
56
|
+
$border-end-end-radius: null,
|
|
57
|
+
$box-shadow: null,
|
|
58
|
+
$padding: null,
|
|
59
|
+
$padding-block: null,
|
|
60
|
+
$padding-inline: null,
|
|
61
|
+
$font-family: null,
|
|
62
|
+
$font-size: null,
|
|
63
|
+
$font-weight: null
|
|
64
|
+
) {
|
|
65
|
+
@include slot-mixins.apply(
|
|
66
|
+
'segmented-control.segment',
|
|
67
|
+
$tokens: (
|
|
68
|
+
'focus-ring-color': $focus-ring-color,
|
|
69
|
+
'focus-ring-width': $focus-ring-width,
|
|
70
|
+
'focus-ring-radius': $focus-ring-radius,
|
|
71
|
+
),
|
|
72
|
+
$properties: (
|
|
73
|
+
'color': $color,
|
|
74
|
+
'background': $background,
|
|
75
|
+
'border-color': $border-color,
|
|
76
|
+
'border-width': $border-width,
|
|
77
|
+
'border-style': $border-style,
|
|
78
|
+
'border-block-color': $border-block-color,
|
|
79
|
+
'border-block-width': $border-block-width,
|
|
80
|
+
'border-block-style': $border-block-style,
|
|
81
|
+
'border-inline-color': $border-inline-color,
|
|
82
|
+
'border-inline-width': $border-inline-width,
|
|
83
|
+
'border-inline-style': $border-inline-style,
|
|
84
|
+
'border-radius': $border-radius,
|
|
85
|
+
'border-start-start-radius': $border-start-start-radius,
|
|
86
|
+
'border-start-end-radius': $border-start-end-radius,
|
|
87
|
+
'border-end-start-radius': $border-end-start-radius,
|
|
88
|
+
'border-end-end-radius': $border-end-end-radius,
|
|
89
|
+
'box-shadow': $box-shadow,
|
|
90
|
+
'padding': $padding,
|
|
91
|
+
'padding-block': $padding-block,
|
|
92
|
+
'padding-inline': $padding-inline,
|
|
93
|
+
'font-family': $font-family,
|
|
94
|
+
'font-size': $font-size,
|
|
95
|
+
'font-weight': $font-weight,
|
|
96
|
+
),
|
|
97
|
+
);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@mixin divider(
|
|
101
|
+
$color: null,
|
|
102
|
+
$width: null
|
|
103
|
+
) {
|
|
104
|
+
@include slot-mixins.apply(
|
|
105
|
+
'segmented-control.divider',
|
|
106
|
+
$tokens: (
|
|
107
|
+
'color': $color,
|
|
108
|
+
'width': $width,
|
|
109
|
+
),
|
|
110
|
+
);
|
|
111
|
+
}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// GENERATED from the select Style API docs — do not edit.
|
|
2
|
+
@use '@cloudscape-design/component-toolkit/internal/style-api/slot-mixins' as slot-mixins;
|
|
3
|
+
|
|
4
|
+
@mixin trigger(
|
|
5
|
+
$placeholder-color: null,
|
|
6
|
+
$color: null,
|
|
7
|
+
$background: null,
|
|
8
|
+
$border-color: null,
|
|
9
|
+
$border-width: null,
|
|
10
|
+
$border-style: null,
|
|
11
|
+
$border-block-color: null,
|
|
12
|
+
$border-block-width: null,
|
|
13
|
+
$border-block-style: null,
|
|
14
|
+
$border-inline-color: null,
|
|
15
|
+
$border-inline-width: null,
|
|
16
|
+
$border-inline-style: null,
|
|
17
|
+
$border-radius: null,
|
|
18
|
+
$border-start-start-radius: null,
|
|
19
|
+
$border-start-end-radius: null,
|
|
20
|
+
$border-end-start-radius: null,
|
|
21
|
+
$border-end-end-radius: null,
|
|
22
|
+
$box-shadow: null,
|
|
23
|
+
$padding: null,
|
|
24
|
+
$padding-block: null,
|
|
25
|
+
$padding-inline: null,
|
|
26
|
+
$font-family: null,
|
|
27
|
+
$font-size: null,
|
|
28
|
+
$font-weight: null
|
|
29
|
+
) {
|
|
30
|
+
@include slot-mixins.apply(
|
|
31
|
+
'select.trigger',
|
|
32
|
+
$tokens: (
|
|
33
|
+
'placeholder-color': $placeholder-color,
|
|
34
|
+
),
|
|
35
|
+
$properties: (
|
|
36
|
+
'color': $color,
|
|
37
|
+
'background': $background,
|
|
38
|
+
'border-color': $border-color,
|
|
39
|
+
'border-width': $border-width,
|
|
40
|
+
'border-style': $border-style,
|
|
41
|
+
'border-block-color': $border-block-color,
|
|
42
|
+
'border-block-width': $border-block-width,
|
|
43
|
+
'border-block-style': $border-block-style,
|
|
44
|
+
'border-inline-color': $border-inline-color,
|
|
45
|
+
'border-inline-width': $border-inline-width,
|
|
46
|
+
'border-inline-style': $border-inline-style,
|
|
47
|
+
'border-radius': $border-radius,
|
|
48
|
+
'border-start-start-radius': $border-start-start-radius,
|
|
49
|
+
'border-start-end-radius': $border-start-end-radius,
|
|
50
|
+
'border-end-start-radius': $border-end-start-radius,
|
|
51
|
+
'border-end-end-radius': $border-end-end-radius,
|
|
52
|
+
'box-shadow': $box-shadow,
|
|
53
|
+
'padding': $padding,
|
|
54
|
+
'padding-block': $padding-block,
|
|
55
|
+
'padding-inline': $padding-inline,
|
|
56
|
+
'font-family': $font-family,
|
|
57
|
+
'font-size': $font-size,
|
|
58
|
+
'font-weight': $font-weight,
|
|
59
|
+
),
|
|
60
|
+
);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
@mixin inlineLabel(
|
|
64
|
+
$color: null,
|
|
65
|
+
$background: null,
|
|
66
|
+
$font-family: null,
|
|
67
|
+
$font-size: null,
|
|
68
|
+
$font-weight: null
|
|
69
|
+
) {
|
|
70
|
+
@include slot-mixins.apply(
|
|
71
|
+
'select.inlineLabel',
|
|
72
|
+
$properties: (
|
|
73
|
+
'color': $color,
|
|
74
|
+
'background': $background,
|
|
75
|
+
'font-family': $font-family,
|
|
76
|
+
'font-size': $font-size,
|
|
77
|
+
'font-weight': $font-weight,
|
|
78
|
+
),
|
|
79
|
+
);
|
|
80
|
+
}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
|
|
2
2
|
import './styles.scoped.css';
|
|
3
3
|
export default {
|
|
4
|
-
"resize-active": "awsui_resize-
|
|
5
|
-
"resize-active-with-focus": "awsui_resize-active-with-
|
|
6
|
-
"resizer-wrapper": "awsui_resizer-
|
|
7
|
-
"
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"divider": "
|
|
11
|
-
"divider-
|
|
12
|
-
"divider-position-
|
|
13
|
-
"divider-position-
|
|
14
|
-
"divider-
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"resizer": "
|
|
19
|
-
"has-focus": "awsui_has-
|
|
20
|
-
"tracker": "
|
|
4
|
+
"resize-active": "awsui_resize-active_x7peu_p6la0_9",
|
|
5
|
+
"resize-active-with-focus": "awsui_resize-active-with-focus_x7peu_p6la0_9",
|
|
6
|
+
"resizer-wrapper": "awsui_resizer-wrapper_x7peu_p6la0_14",
|
|
7
|
+
"resizer-button-wrapper": "awsui_resizer-button-wrapper_x7peu_p6la0_23",
|
|
8
|
+
"divider": "awsui_divider_x7peu_p6la0_27",
|
|
9
|
+
"divider-interactive": "awsui_divider-interactive_x7peu_p6la0_28",
|
|
10
|
+
"divider-grouped": "awsui_divider-grouped_x7peu_p6la0_46",
|
|
11
|
+
"divider-position-top": "awsui_divider-position-top_x7peu_p6la0_50",
|
|
12
|
+
"divider-position-bottom": "awsui_divider-position-bottom_x7peu_p6la0_56",
|
|
13
|
+
"divider-position-full": "awsui_divider-position-full_x7peu_p6la0_62",
|
|
14
|
+
"divider-active": "awsui_divider-active_x7peu_p6la0_72",
|
|
15
|
+
"is-borderless": "awsui_is-borderless_x7peu_p6la0_76",
|
|
16
|
+
"is-last": "awsui_is-last_x7peu_p6la0_76",
|
|
17
|
+
"visual-refresh": "awsui_visual-refresh_x7peu_p6la0_80",
|
|
18
|
+
"resizer": "awsui_resizer_x7peu_p6la0_14",
|
|
19
|
+
"has-focus": "awsui_has-focus_x7peu_p6la0_129",
|
|
20
|
+
"tracker": "awsui_tracker_x7peu_p6la0_151"
|
|
21
21
|
};
|
|
22
22
|
|
|
@@ -6,13 +6,13 @@
|
|
|
6
6
|
/* stylelint-enable @cloudscape-design/no-motion-outside-of-mixin, selector-combinator-disallowed-list, selector-pseudo-class-no-unknown, selector-class-pattern */
|
|
7
7
|
/* Style used for links in slots/components that are text heavy, to help links stand out among
|
|
8
8
|
surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F73#description */
|
|
9
|
-
.awsui_resize-
|
|
9
|
+
.awsui_resize-active_x7peu_p6la0_9:not(#\9):not(.awsui_resize-active-with-focus_x7peu_p6la0_9) * {
|
|
10
10
|
cursor: col-resize;
|
|
11
11
|
-webkit-user-select: none;
|
|
12
12
|
user-select: none;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
|
-
.awsui_resizer-
|
|
15
|
+
.awsui_resizer-wrapper_x7peu_p6la0_14:not(#\9) {
|
|
16
16
|
inset-block: 0;
|
|
17
17
|
position: absolute;
|
|
18
18
|
inset-inline-end: calc(-1 * var(--space-xl-6jh0ay, 24px) / 2);
|
|
@@ -20,16 +20,13 @@ surrounding text. (WCAG F73) https://www.w3.org/WAI/WCAG21/Techniques/failures/F
|
|
|
20
20
|
overflow: hidden;
|
|
21
21
|
z-index: 10;
|
|
22
22
|
}
|
|
23
|
-
th:not(#\9):last-child > .awsui_resizer-wrapper_x7peu_hjirl_14:has(.awsui_divider-interactive_x7peu_hjirl_22).awsui_is-borderless_x7peu_hjirl_22 {
|
|
24
|
-
inset-inline-end: 0;
|
|
25
|
-
}
|
|
26
23
|
|
|
27
|
-
.awsui_resizer-button-
|
|
24
|
+
.awsui_resizer-button-wrapper_x7peu_p6la0_23:not(#\9) {
|
|
28
25
|
block-size: 100%;
|
|
29
26
|
}
|
|
30
27
|
|
|
31
|
-
th:not(#\9):not([data-rightmost]) > .
|
|
32
|
-
.awsui_divider-
|
|
28
|
+
th:not(#\9):not([data-rightmost]) > .awsui_divider_x7peu_p6la0_27,
|
|
29
|
+
.awsui_divider-interactive_x7peu_p6la0_28:not(#\9) {
|
|
33
30
|
position: absolute;
|
|
34
31
|
outline: none;
|
|
35
32
|
pointer-events: none;
|
|
@@ -43,45 +40,49 @@ th:not(#\9):not([data-rightmost]) > .awsui_divider_x7peu_hjirl_22,
|
|
|
43
40
|
border-inline-start: var(--border-divider-list-width-2qbfmz, 1px) solid var(--color-border-divider-default-diwd4w, #eaeded);
|
|
44
41
|
box-sizing: border-box;
|
|
45
42
|
}
|
|
46
|
-
th:not(#\9):not([data-rightmost]) > .
|
|
47
|
-
.awsui_divider-
|
|
43
|
+
th:not(#\9):not([data-rightmost]) > .awsui_divider_x7peu_p6la0_27.awsui_divider-interactive_x7peu_p6la0_28,
|
|
44
|
+
.awsui_divider-interactive_x7peu_p6la0_28.awsui_divider-interactive_x7peu_p6la0_28:not(#\9) {
|
|
48
45
|
border-inline-start: var(--border-divider-list-width-2qbfmz, 1px) solid var(--color-border-divider-interactive-default-cs7tmi, #687078);
|
|
49
46
|
}
|
|
50
|
-
th:not(#\9):not([data-rightmost]) > .
|
|
51
|
-
.awsui_divider-
|
|
47
|
+
th:not(#\9):not([data-rightmost]) > .awsui_divider_x7peu_p6la0_27.awsui_divider-grouped_x7peu_p6la0_46,
|
|
48
|
+
.awsui_divider-interactive_x7peu_p6la0_28.awsui_divider-grouped_x7peu_p6la0_46:not(#\9) {
|
|
52
49
|
border-inline-start-color: var(--color-border-divider-table-group-42wwt3, #879596);
|
|
53
50
|
}
|
|
54
|
-
th:not(#\9):not([data-rightmost]) > .
|
|
55
|
-
.awsui_divider-
|
|
51
|
+
th:not(#\9):not([data-rightmost]) > .awsui_divider_x7peu_p6la0_27.awsui_divider-position-top_x7peu_p6la0_50,
|
|
52
|
+
.awsui_divider-interactive_x7peu_p6la0_28.awsui_divider-position-top_x7peu_p6la0_50:not(#\9) {
|
|
56
53
|
margin-block-start: 0;
|
|
57
54
|
margin-block-end: auto;
|
|
58
55
|
max-block-size: calc(100% - calc(2 * var(--space-xs-m9b7jf, 8px) + var(--space-xxxs-3ulqs3, 2px)) / 2);
|
|
59
56
|
}
|
|
60
|
-
th:not(#\9):not([data-rightmost]) > .
|
|
61
|
-
.awsui_divider-
|
|
57
|
+
th:not(#\9):not([data-rightmost]) > .awsui_divider_x7peu_p6la0_27.awsui_divider-position-bottom_x7peu_p6la0_56,
|
|
58
|
+
.awsui_divider-interactive_x7peu_p6la0_28.awsui_divider-position-bottom_x7peu_p6la0_56:not(#\9) {
|
|
62
59
|
margin-block-start: auto;
|
|
63
60
|
margin-block-end: 0;
|
|
64
61
|
max-block-size: calc(100% - calc(2 * var(--space-xs-m9b7jf, 8px) + var(--space-xxxs-3ulqs3, 2px)) / 2);
|
|
65
62
|
}
|
|
66
|
-
th:not(#\9):not([data-rightmost]) > .
|
|
67
|
-
.awsui_divider-
|
|
63
|
+
th:not(#\9):not([data-rightmost]) > .awsui_divider_x7peu_p6la0_27.awsui_divider-position-full_x7peu_p6la0_62,
|
|
64
|
+
.awsui_divider-interactive_x7peu_p6la0_28.awsui_divider-position-full_x7peu_p6la0_62:not(#\9) {
|
|
68
65
|
margin-block: 0;
|
|
69
66
|
max-block-size: 100%;
|
|
70
67
|
}
|
|
71
68
|
|
|
72
|
-
.awsui_divider-
|
|
69
|
+
.awsui_divider-interactive_x7peu_p6la0_28:not(#\9) {
|
|
73
70
|
inset-inline-end: calc(var(--space-xl-6jh0ay, 24px) / 2);
|
|
74
71
|
}
|
|
75
72
|
|
|
76
|
-
.awsui_divider-
|
|
73
|
+
.awsui_divider-active_x7peu_p6la0_72:not(#\9) {
|
|
77
74
|
/* used in test-utils */
|
|
78
75
|
}
|
|
79
76
|
|
|
80
|
-
.awsui_resizer-
|
|
77
|
+
.awsui_resizer-wrapper_x7peu_p6la0_14.awsui_is-borderless_x7peu_p6la0_76.awsui_is-last_x7peu_p6la0_76:not(#\9) {
|
|
78
|
+
inset-inline-end: 0;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.awsui_resizer-wrapper_x7peu_p6la0_14.awsui_visual-refresh_x7peu_p6la0_80.awsui_is-borderless_x7peu_p6la0_76.awsui_is-last_x7peu_p6la0_76 > .awsui_divider-interactive_x7peu_p6la0_28:not(#\9) {
|
|
81
82
|
inset-inline-end: 0;
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
.
|
|
85
|
+
.awsui_resizer_x7peu_p6la0_14:not(#\9) {
|
|
85
86
|
border-collapse: separate;
|
|
86
87
|
border-spacing: 0;
|
|
87
88
|
box-sizing: border-box;
|
|
@@ -119,21 +120,21 @@ th:not(#\9):not([data-rightmost]) > .awsui_divider_x7peu_hjirl_22.awsui_divider-
|
|
|
119
120
|
block-size: 100%;
|
|
120
121
|
inline-size: var(--space-xl-6jh0ay, 24px);
|
|
121
122
|
}
|
|
122
|
-
.
|
|
123
|
+
.awsui_resizer_x7peu_p6la0_14:not(#\9):focus {
|
|
123
124
|
outline: none;
|
|
124
125
|
text-decoration: none;
|
|
125
126
|
}
|
|
126
|
-
.awsui_resize-
|
|
127
|
+
.awsui_resize-active_x7peu_p6la0_9 .awsui_resizer_x7peu_p6la0_14:not(#\9) {
|
|
127
128
|
pointer-events: none;
|
|
128
129
|
}
|
|
129
|
-
body[data-awsui-focus-visible=true] .
|
|
130
|
+
body[data-awsui-focus-visible=true] .awsui_resizer_x7peu_p6la0_14.awsui_has-focus_x7peu_p6la0_129:not(#\9) {
|
|
130
131
|
position: relative;
|
|
131
132
|
}
|
|
132
|
-
body[data-awsui-focus-visible=true] .
|
|
133
|
+
body[data-awsui-focus-visible=true] .awsui_resizer_x7peu_p6la0_14.awsui_has-focus_x7peu_p6la0_129:not(#\9) {
|
|
133
134
|
outline: 2px dotted transparent;
|
|
134
135
|
outline-offset: calc(calc(var(--space-table-header-focus-outline-gutter-yl4rtb, 0px) - 2px) - 1px);
|
|
135
136
|
}
|
|
136
|
-
body[data-awsui-focus-visible=true] .
|
|
137
|
+
body[data-awsui-focus-visible=true] .awsui_resizer_x7peu_p6la0_14.awsui_has-focus_x7peu_p6la0_129:not(#\9)::before {
|
|
137
138
|
content: " ";
|
|
138
139
|
display: block;
|
|
139
140
|
position: absolute;
|
|
@@ -148,13 +149,13 @@ body[data-awsui-focus-visible=true] .awsui_resizer_x7peu_hjirl_14.awsui_has-focu
|
|
|
148
149
|
box-shadow: 0 0 0 2px var(--color-border-item-focused-sewkzn, #0073bb);
|
|
149
150
|
}
|
|
150
151
|
|
|
151
|
-
.
|
|
152
|
+
.awsui_tracker_x7peu_p6la0_151:not(#\9) {
|
|
152
153
|
display: none;
|
|
153
154
|
position: absolute;
|
|
154
155
|
border-inline-start: var(--border-divider-list-width-2qbfmz, 1px) dashed var(--color-border-divider-active-zbcsa9, #687078);
|
|
155
156
|
inline-size: 0;
|
|
156
157
|
inset-block: 0;
|
|
157
158
|
}
|
|
158
|
-
.awsui_resize-
|
|
159
|
+
.awsui_resize-active_x7peu_p6la0_9 .awsui_tracker_x7peu_p6la0_151:not(#\9) {
|
|
159
160
|
display: block;
|
|
160
161
|
}
|
|
@@ -2,22 +2,22 @@
|
|
|
2
2
|
// es-module interop with Babel and Typescript
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
module.exports.default = {
|
|
5
|
-
"resize-active": "awsui_resize-
|
|
6
|
-
"resize-active-with-focus": "awsui_resize-active-with-
|
|
7
|
-
"resizer-wrapper": "awsui_resizer-
|
|
8
|
-
"
|
|
9
|
-
"
|
|
10
|
-
"
|
|
11
|
-
"divider": "
|
|
12
|
-
"divider-
|
|
13
|
-
"divider-position-
|
|
14
|
-
"divider-position-
|
|
15
|
-
"divider-
|
|
16
|
-
"
|
|
17
|
-
"
|
|
18
|
-
"
|
|
19
|
-
"resizer": "
|
|
20
|
-
"has-focus": "awsui_has-
|
|
21
|
-
"tracker": "
|
|
5
|
+
"resize-active": "awsui_resize-active_x7peu_p6la0_9",
|
|
6
|
+
"resize-active-with-focus": "awsui_resize-active-with-focus_x7peu_p6la0_9",
|
|
7
|
+
"resizer-wrapper": "awsui_resizer-wrapper_x7peu_p6la0_14",
|
|
8
|
+
"resizer-button-wrapper": "awsui_resizer-button-wrapper_x7peu_p6la0_23",
|
|
9
|
+
"divider": "awsui_divider_x7peu_p6la0_27",
|
|
10
|
+
"divider-interactive": "awsui_divider-interactive_x7peu_p6la0_28",
|
|
11
|
+
"divider-grouped": "awsui_divider-grouped_x7peu_p6la0_46",
|
|
12
|
+
"divider-position-top": "awsui_divider-position-top_x7peu_p6la0_50",
|
|
13
|
+
"divider-position-bottom": "awsui_divider-position-bottom_x7peu_p6la0_56",
|
|
14
|
+
"divider-position-full": "awsui_divider-position-full_x7peu_p6la0_62",
|
|
15
|
+
"divider-active": "awsui_divider-active_x7peu_p6la0_72",
|
|
16
|
+
"is-borderless": "awsui_is-borderless_x7peu_p6la0_76",
|
|
17
|
+
"is-last": "awsui_is-last_x7peu_p6la0_76",
|
|
18
|
+
"visual-refresh": "awsui_visual-refresh_x7peu_p6la0_80",
|
|
19
|
+
"resizer": "awsui_resizer_x7peu_p6la0_14",
|
|
20
|
+
"has-focus": "awsui_has-focus_x7peu_p6la0_129",
|
|
21
|
+
"tracker": "awsui_tracker_x7peu_p6la0_151"
|
|
22
22
|
};
|
|
23
23
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sticky-header.d.ts","sourceRoot":"","sources":["../../../src/table/sticky-header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAwE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"sticky-header.d.ts","sourceRoot":"","sources":["../../../src/table/sticky-header.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAwE,MAAM,OAAO,CAAC;AAO7F,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAqB,SAAS,EAAE,MAAM,cAAc,CAAC;AAC5D,OAAc,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AAI5C,MAAM,WAAW,eAAe;IAC9B,WAAW,IAAI,IAAI,CAAC;IACpB,WAAW,CAAC,IAAI,EAAE,IAAI,GAAG,WAAW,GAAG,IAAI,CAAC;IAC5C,QAAQ,CAAC,OAAO,EAAE,IAAI,GAAG,MAAM,GAAG,IAAI,CAAC;CACxC;AAED,UAAU,iBAAiB;IACzB,OAAO,EAAE,UAAU,CAAC,OAAO,CAAC;IAC5B,UAAU,EAAE,UAAU,CAAC;IACvB,UAAU,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IAC5C,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC;IAC/C,mBAAmB,EAAE,KAAK,CAAC,SAAS,CAAC,cAAc,CAAC,CAAC;IACrD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC,gBAAgB,CAAC,CAAC;IAC5C,QAAQ,CAAC,EAAE,KAAK,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;IAChD,cAAc,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC3C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,SAAS,EAAE,SAAS,CAAC;IACrB,iBAAiB,CAAC,EAAE,OAAO,CAAC;IAC5B,iBAAiB,CAAC,EAAE,aAAa,CAAC,UAAU,CAAC,gBAAgB,CAAC,GAAG,CAAC,CAAC,CAAC;IACpE,YAAY,CAAC,EAAE,OAAO,CAAC;CACxB;;AAED,wBAAwC"}
|
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
import React, { forwardRef, useContext, useImperativeHandle, useRef, useState } from 'react';
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { StickyHeaderContext } from '../container/use-sticky-header';
|
|
6
|
+
import { useStickyHeaderCopy } from '../internal/components/sticky-header/use-sticky-header-copy';
|
|
6
7
|
import { getVisualContextClassname } from '../internal/components/visual-context';
|
|
7
8
|
import { TableColGroup } from './column-groups/col-group';
|
|
8
9
|
import { getTableRoleProps } from './table-role';
|
|
9
10
|
import Thead from './thead';
|
|
10
|
-
import { useStickyHeader } from './use-sticky-header';
|
|
11
11
|
import styles from './styles.css.js';
|
|
12
12
|
export default forwardRef(StickyHeader);
|
|
13
13
|
function StickyHeader({ variant, theadProps, wrapperRef, theadRef, secondaryWrapperRef, tableRef, onScroll, tableHasHeader, contentDensity, tableRole, hasGroupedColumns, columnDefinitions, hasSelection, }, ref) {
|
|
@@ -15,7 +15,13 @@ function StickyHeader({ variant, theadProps, wrapperRef, theadRef, secondaryWrap
|
|
|
15
15
|
const secondaryTableRef = useRef(null);
|
|
16
16
|
const { isStuck } = useContext(StickyHeaderContext);
|
|
17
17
|
const [focusedComponent, setFocusedComponent] = useState(null);
|
|
18
|
-
const { scrollToRow, scrollToTop } =
|
|
18
|
+
const { scrollToRow, scrollToTop } = useStickyHeaderCopy({
|
|
19
|
+
tableRef,
|
|
20
|
+
theadRef,
|
|
21
|
+
secondaryTheadRef,
|
|
22
|
+
secondaryTableRef,
|
|
23
|
+
tableWrapperRef: wrapperRef,
|
|
24
|
+
});
|
|
19
25
|
useImperativeHandle(ref, () => ({
|
|
20
26
|
scrollToTop,
|
|
21
27
|
scrollToRow,
|