@leonardaustin/ui 0.27.0 → 0.29.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/charts/AreaChart.js +113 -114
- package/dist/components/charts/BarChart.d.ts +4 -2
- package/dist/components/charts/BarChart.js +69 -49
- package/dist/components/charts/Heatmap.d.ts +20 -0
- package/dist/components/charts/Heatmap.js +46 -0
- package/dist/components/charts/StackedBarChart.d.ts +3 -1
- package/dist/components/charts/StackedBarChart.js +103 -95
- package/dist/components/charts/VerticalBarChart.d.ts +3 -1
- package/dist/components/charts/VerticalBarChart.js +94 -83
- package/dist/components/charts/barChartUtils.d.ts +16 -0
- package/dist/components/charts/barChartUtils.js +24 -0
- package/dist/components/charts/chartUtils.d.ts +2 -0
- package/dist/components/charts/chartUtils.js +14 -9
- package/dist/components/charts/useChartSize.d.ts +13 -0
- package/dist/components/charts/useChartSize.js +27 -0
- package/dist/components/tables/Pagination.d.ts +3 -1
- package/dist/components/tables/Pagination.js +12 -12
- package/dist/components/tables/ResourceTable.d.ts +5 -0
- package/dist/components/tables/ResourceTable.js +11 -9
- package/dist/components/tables/Table.d.ts +22 -3
- package/dist/components/tables/Table.js +41 -35
- package/dist/components/ui/ActionLink.d.ts +14 -0
- package/dist/components/ui/ActionLink.js +12 -0
- package/dist/components/ui/DateRangePicker.js +107 -76
- package/dist/components/ui/EmptyState.d.ts +8 -6
- package/dist/components/ui/EmptyState.js +11 -10
- package/dist/components/ui/ErrorBoundary.d.ts +6 -0
- package/dist/components/ui/ErrorBoundary.js +11 -5
- package/dist/components/ui/Grid.d.ts +1 -1
- package/dist/components/ui/Icon.d.ts +91 -0
- package/dist/components/ui/Icon.js +98 -0
- package/dist/components/ui/Inline.d.ts +1 -1
- package/dist/components/ui/LoadingSpinner.d.ts +7 -3
- package/dist/components/ui/LoadingSpinner.js +19 -11
- package/dist/components/ui/MainAsideLayout.d.ts +10 -0
- package/dist/components/ui/MainAsideLayout.js +18 -0
- package/dist/components/ui/Meter.d.ts +11 -0
- package/dist/components/ui/Meter.js +7 -0
- package/dist/components/ui/MetricCard.d.ts +11 -8
- package/dist/components/ui/MetricCard.js +18 -15
- package/dist/components/ui/PaginationBar.d.ts +3 -3
- package/dist/components/ui/PaginationBar.js +35 -33
- package/dist/components/ui/SideSheet.d.ts +4 -2
- package/dist/components/ui/SideSheet.js +64 -52
- package/dist/components/ui/Stack.d.ts +1 -1
- package/dist/components/ui/Tabs.d.ts +5 -1
- package/dist/components/ui/Tabs.js +23 -21
- package/dist/components/ui/Text.d.ts +19 -0
- package/dist/components/ui/Text.js +20 -0
- package/dist/components/ui/Toolbar.js +13 -13
- package/dist/core.css +122 -0
- package/dist/hooks/useFocusTrap.js +1 -1
- package/dist/index.d.ts +6 -0
- package/dist/index.js +135 -129
- package/dist/styles.css +123 -0
- package/package.json +1 -1
package/dist/styles.css
CHANGED
|
@@ -2869,6 +2869,32 @@ select:disabled + .ui-select-placeholder {
|
|
|
2869
2869
|
|
|
2870
2870
|
/* Component defaults stay below consumer utilities in the cascade. */
|
|
2871
2871
|
@layer components {
|
|
2872
|
+
.ui-toolbar-start {
|
|
2873
|
+
display: flex;
|
|
2874
|
+
flex: auto;
|
|
2875
|
+
}
|
|
2876
|
+
.ui-toolbar-start:empty {
|
|
2877
|
+
display: none;
|
|
2878
|
+
}
|
|
2879
|
+
.ui-toolbar-end {
|
|
2880
|
+
margin-inline-start: auto;
|
|
2881
|
+
}
|
|
2882
|
+
:where(.ui-toolbar-start, .ui-toolbar-end),
|
|
2883
|
+
:where(.ui-toolbar-start, .ui-toolbar-end) > * {
|
|
2884
|
+
max-width: 100%;
|
|
2885
|
+
}
|
|
2886
|
+
:where(.ui-toolbar-start, .ui-toolbar-end) > * {
|
|
2887
|
+
min-width: 0;
|
|
2888
|
+
}
|
|
2889
|
+
|
|
2890
|
+
@media (width < 640px) {
|
|
2891
|
+
/* The narrow layout takes precedence over the inline drag width and cap. */
|
|
2892
|
+
.ui-sheet-full-narrow {
|
|
2893
|
+
width: 100% !important;
|
|
2894
|
+
max-width: 100% !important;
|
|
2895
|
+
}
|
|
2896
|
+
}
|
|
2897
|
+
|
|
2872
2898
|
@media (width < 40rem) {
|
|
2873
2899
|
.ui-pagination-count:where(:not(:focus-within)) {
|
|
2874
2900
|
clip-path: inset(50%);
|
|
@@ -2910,6 +2936,23 @@ select:disabled + .ui-select-placeholder {
|
|
|
2910
2936
|
grid-template-columns: var(--ui-columns-base, repeat(1, minmax(0, 1fr)));
|
|
2911
2937
|
justify-items: var(--ui-justify, stretch);
|
|
2912
2938
|
}
|
|
2939
|
+
.ui-main-aside {
|
|
2940
|
+
container: ui-main-aside / inline-size;
|
|
2941
|
+
}
|
|
2942
|
+
.ui-main-aside-grid {
|
|
2943
|
+
display: grid;
|
|
2944
|
+
grid-template-columns: minmax(0, 1fr);
|
|
2945
|
+
gap: calc(4 * var(--spacing));
|
|
2946
|
+
}
|
|
2947
|
+
@container ui-main-aside (min-width: 56rem) {
|
|
2948
|
+
.ui-main-aside-grid {
|
|
2949
|
+
grid-template-columns: minmax(0, 2fr) minmax(20rem, 1fr);
|
|
2950
|
+
}
|
|
2951
|
+
.ui-main-aside-grid > .ui-main-aside-divider {
|
|
2952
|
+
border-inline-start: var(--ui-border-width) solid var(--border);
|
|
2953
|
+
padding-inline-start: calc(4 * var(--spacing));
|
|
2954
|
+
}
|
|
2955
|
+
}
|
|
2913
2956
|
.ui-grid-item {
|
|
2914
2957
|
grid-column: var(--ui-span-base, span 1 / span 1);
|
|
2915
2958
|
}
|
|
@@ -3072,6 +3115,17 @@ select:disabled + .ui-select-placeholder {
|
|
|
3072
3115
|
border: var(--ui-border-width, 1px) solid var(--border);
|
|
3073
3116
|
border-radius: var(--ui-radius-md);
|
|
3074
3117
|
background-color: var(--bg-table, transparent);
|
|
3118
|
+
inline-size: 100%;
|
|
3119
|
+
container: ui-table / inline-size;
|
|
3120
|
+
}
|
|
3121
|
+
@container ui-table (max-width: 32rem) {
|
|
3122
|
+
.ui-table-wrap
|
|
3123
|
+
> .ui-table
|
|
3124
|
+
> :is(thead, tbody, tfoot)
|
|
3125
|
+
> tr
|
|
3126
|
+
> .ui-table-low-priority {
|
|
3127
|
+
display: none !important;
|
|
3128
|
+
}
|
|
3075
3129
|
}
|
|
3076
3130
|
.ui-table {
|
|
3077
3131
|
width: 100%;
|
|
@@ -3090,6 +3144,46 @@ select:disabled + .ui-select-placeholder {
|
|
|
3090
3144
|
letter-spacing: var(--ui-tracking);
|
|
3091
3145
|
text-transform: uppercase;
|
|
3092
3146
|
}
|
|
3147
|
+
.ui-table-wrap-embedded {
|
|
3148
|
+
border: 0;
|
|
3149
|
+
border-radius: 0;
|
|
3150
|
+
background-color: transparent;
|
|
3151
|
+
}
|
|
3152
|
+
.ui-table-wrap-embedded > .ui-table:not(.ui-table-sticky) > .ui-table-head {
|
|
3153
|
+
background-color: transparent;
|
|
3154
|
+
}
|
|
3155
|
+
.ui-table-wrap-embedded > .ui-table > .ui-table-body > tr + tr {
|
|
3156
|
+
border-top: 0;
|
|
3157
|
+
}
|
|
3158
|
+
.ui-table-compact {
|
|
3159
|
+
font-size: var(--ui-control-font-size, var(--text-xs));
|
|
3160
|
+
}
|
|
3161
|
+
.ui-table-compact
|
|
3162
|
+
> :is(thead, tbody, tfoot)
|
|
3163
|
+
> tr
|
|
3164
|
+
> :is(th, td):not(.ui-table-empty-cell) {
|
|
3165
|
+
padding-inline: var(--ui-table-cell-padding-x, calc(var(--spacing) * 2));
|
|
3166
|
+
padding-block: var(--ui-table-cell-padding-y, calc(var(--spacing) * 1.5));
|
|
3167
|
+
}
|
|
3168
|
+
.ui-table-header-band > thead > tr > th {
|
|
3169
|
+
color: var(--text-primary);
|
|
3170
|
+
background-color: var(--bg-hover);
|
|
3171
|
+
font-size: inherit;
|
|
3172
|
+
letter-spacing: normal;
|
|
3173
|
+
text-transform: none;
|
|
3174
|
+
}
|
|
3175
|
+
:where(.theme-glass) .ui-table-header-band > thead > tr > th {
|
|
3176
|
+
background-color: var(--glass-solid-hover);
|
|
3177
|
+
}
|
|
3178
|
+
:where(
|
|
3179
|
+
.ui-table-striped > tbody > tr:nth-child(odd):not(.ui-table-empty-row)
|
|
3180
|
+
) {
|
|
3181
|
+
background-color: var(--bg-active);
|
|
3182
|
+
}
|
|
3183
|
+
.ui-table-foot {
|
|
3184
|
+
border-top: var(--ui-border-width, 1px) solid var(--border);
|
|
3185
|
+
font-weight: 600;
|
|
3186
|
+
}
|
|
3093
3187
|
.ui-table-sort-button {
|
|
3094
3188
|
display: inline-flex;
|
|
3095
3189
|
align-items: center;
|
|
@@ -3647,3 +3741,32 @@ button[data-pressed="true"][data-variant="link"] {
|
|
|
3647
3741
|
button[data-variant="link"]:disabled:hover {
|
|
3648
3742
|
text-decoration: none;
|
|
3649
3743
|
}
|
|
3744
|
+
|
|
3745
|
+
.ui-heatmap {
|
|
3746
|
+
font-variant-numeric: tabular-nums;
|
|
3747
|
+
white-space: nowrap;
|
|
3748
|
+
}
|
|
3749
|
+
.ui-heatmap td[data-intensity] {
|
|
3750
|
+
text-align: center;
|
|
3751
|
+
background-color: color-mix(
|
|
3752
|
+
in srgb,
|
|
3753
|
+
var(--accent) var(--heatmap-tint, 0%),
|
|
3754
|
+
var(--bg-primary)
|
|
3755
|
+
);
|
|
3756
|
+
}
|
|
3757
|
+
.ui-heatmap td[data-intensity="1"] {
|
|
3758
|
+
--heatmap-tint: 10%;
|
|
3759
|
+
}
|
|
3760
|
+
.ui-heatmap td[data-intensity="2"] {
|
|
3761
|
+
--heatmap-tint: 20%;
|
|
3762
|
+
}
|
|
3763
|
+
.ui-heatmap td[data-intensity="3"] {
|
|
3764
|
+
--heatmap-tint: 30%;
|
|
3765
|
+
}
|
|
3766
|
+
.ui-heatmap td[data-intensity="4"] {
|
|
3767
|
+
--heatmap-tint: 40%;
|
|
3768
|
+
}
|
|
3769
|
+
.ui-heatmap td[data-intensity="missing"] {
|
|
3770
|
+
color: var(--text-secondary);
|
|
3771
|
+
background-color: var(--bg-secondary);
|
|
3772
|
+
}
|