@kjun-ui/react 0.22.0 → 0.23.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/index.cjs +633 -256
- package/dist/index.js +741 -363
- package/dist/styles.css +140 -40
- package/dist/types/packages/react/src/app-navigation.d.cts +9 -3
- package/dist/types/packages/react/src/app-navigation.d.ts +9 -3
- package/dist/types/packages/react/src/button.d.cts +2 -1
- package/dist/types/packages/react/src/button.d.ts +2 -1
- package/dist/types/packages/react/src/display.d.cts +9 -4
- package/dist/types/packages/react/src/display.d.ts +9 -4
- package/dist/types/packages/react/src/dropdown.d.cts +2 -1
- package/dist/types/packages/react/src/dropdown.d.ts +2 -1
- package/dist/types/packages/react/src/input.d.cts +14 -1
- package/dist/types/packages/react/src/input.d.ts +14 -1
- package/dist/types/packages/react/src/list.d.cts +12 -6
- package/dist/types/packages/react/src/list.d.ts +12 -6
- package/dist/types/packages/react/src/market-model.d.cts +2 -0
- package/dist/types/packages/react/src/market-model.d.ts +2 -0
- package/dist/types/packages/react/src/number-input.d.cts +1 -1
- package/dist/types/packages/react/src/number-input.d.ts +1 -1
- package/dist/types/packages/react/src/side-navigation-layout-spaces.d.cts +31 -0
- package/dist/types/packages/react/src/side-navigation-layout-spaces.d.ts +31 -0
- package/dist/types/packages/react/src/side-navigation-layout.d.cts +17 -1
- package/dist/types/packages/react/src/side-navigation-layout.d.ts +17 -1
- package/dist/types/packages/react/src/split-pane.d.cts +3 -1
- package/dist/types/packages/react/src/split-pane.d.ts +3 -1
- package/dist/types/packages/react/src/steps.d.cts +3 -2
- package/dist/types/packages/react/src/steps.d.ts +3 -2
- package/dist/types/packages/react/src/table-grid.d.cts +1 -1
- package/dist/types/packages/react/src/table-grid.d.ts +1 -1
- package/dist/types/shared/package-runtime/bottom-navigation.d.cts +5 -0
- package/dist/types/shared/package-runtime/bottom-navigation.d.ts +5 -0
- package/dist/types/shared/package-runtime/field-group.d.cts +17 -0
- package/dist/types/shared/package-runtime/field-group.d.ts +17 -0
- package/dist/types/shared/package-runtime/list-row.d.cts +28 -2
- package/dist/types/shared/package-runtime/list-row.d.ts +28 -2
- package/dist/types/shared/package-runtime/menu-button.d.cts +2 -2
- package/dist/types/shared/package-runtime/menu-button.d.ts +2 -2
- package/dist/types/shared/package-runtime/messages/ko.d.cts +3 -0
- package/dist/types/shared/package-runtime/messages/ko.d.ts +3 -0
- package/dist/types/shared/package-runtime/messages-context.d.cts +3 -0
- package/dist/types/shared/package-runtime/messages-context.d.ts +3 -0
- package/dist/types/shared/package-runtime/node-text.d.cts +1 -0
- package/dist/types/shared/package-runtime/node-text.d.ts +1 -0
- package/dist/types/shared/package-runtime/number-input.d.cts +10 -0
- package/dist/types/shared/package-runtime/number-input.d.ts +10 -0
- package/dist/types/shared/package-runtime/progress-tone.d.cts +6 -0
- package/dist/types/shared/package-runtime/progress-tone.d.ts +6 -0
- package/dist/types/shared/package-runtime/side-navigation-layout.d.cts +24 -0
- package/dist/types/shared/package-runtime/side-navigation-layout.d.ts +24 -0
- package/dist/types/shared/package-runtime/steps.d.cts +18 -4
- package/dist/types/shared/package-runtime/steps.d.ts +18 -4
- package/dist/types/shared/package-runtime/table-presentation.d.cts +1 -0
- package/dist/types/shared/package-runtime/table-presentation.d.ts +1 -0
- package/dist/types/shared/package-runtime/table.d.cts +2 -0
- package/dist/types/shared/package-runtime/table.d.ts +2 -0
- package/package.json +3 -3
package/dist/styles.css
CHANGED
|
@@ -86,6 +86,7 @@
|
|
|
86
86
|
--_kjun-color-on-success: var(--kjun-on-success, var(--kjun-inverse));
|
|
87
87
|
--_kjun-color-on-warning: var(--kjun-on-warning, var(--kjun-inverse));
|
|
88
88
|
--_kjun-color-navigation-inactive: var(--kjun-navigation-inactive, var(--kjun-text-tertiary));
|
|
89
|
+
--_kjun-color-navigation-rail-bg: var(--kjun-navigation-rail-bg, var(--kjun-secondary));
|
|
89
90
|
--_kjun-color-price-up: var(--kjun-price-up);
|
|
90
91
|
--_kjun-color-price-up-light: var(--kjun-price-up-light);
|
|
91
92
|
--_kjun-color-price-up-bg: var(--kjun-price-up-bg);
|
|
@@ -189,6 +190,7 @@
|
|
|
189
190
|
--_kjun-on-success: var(--_kjun-color-on-success);
|
|
190
191
|
--_kjun-on-warning: var(--_kjun-color-on-warning);
|
|
191
192
|
--_kjun-navigation-inactive: var(--_kjun-color-navigation-inactive);
|
|
193
|
+
--_kjun-navigation-rail-bg: var(--_kjun-color-navigation-rail-bg);
|
|
192
194
|
--_kjun-font-numeric: var(--kjun-font-numeric, var(--kjun-font));
|
|
193
195
|
--_kjun-control-label-size: var(--_kjun-type-control-size);
|
|
194
196
|
--_kjun-radius-card: 12px;
|
|
@@ -446,6 +448,11 @@
|
|
|
446
448
|
--_kjun-extension-side-navigation-column-padding-x: 12px;
|
|
447
449
|
--_kjun-extension-side-navigation-column-padding-y: 12px;
|
|
448
450
|
--_kjun-extension-side-navigation-rail-column-padding-x: 4px;
|
|
451
|
+
--_kjun-extension-side-navigation-spaces-rail-padding-x: 8px;
|
|
452
|
+
--_kjun-extension-side-navigation-spaces-panel-width: 216px;
|
|
453
|
+
--_kjun-extension-side-navigation-spaces-panel-inset: 8px;
|
|
454
|
+
--_kjun-extension-side-navigation-spaces-panel-radius: 12px;
|
|
455
|
+
--_kjun-extension-side-navigation-spaces-panel-head-height: 40px;
|
|
449
456
|
--_kjun-extension-floating-navigation-item-size: 52px;
|
|
450
457
|
--_kjun-extension-floating-navigation-icon-size: 24px;
|
|
451
458
|
--_kjun-extension-floating-navigation-padding: 6px;
|
|
@@ -1302,9 +1309,9 @@
|
|
|
1302
1309
|
--_kjun-geometry-modal-padding: 20px;
|
|
1303
1310
|
--_kjun-geometry-modal-header-padding-y: 16px;
|
|
1304
1311
|
--_kjun-geometry-modal-footer-gap: 12px;
|
|
1305
|
-
--_kjun-geometry-modal-title-size: 1.
|
|
1312
|
+
--_kjun-geometry-modal-title-size: 1.125rem;
|
|
1306
1313
|
--_kjun-geometry-modal-title-weight: 700;
|
|
1307
|
-
--_kjun-geometry-modal-title-line-height: 1.
|
|
1314
|
+
--_kjun-geometry-modal-title-line-height: 1.5rem;
|
|
1308
1315
|
--_kjun-geometry-modal-mobile-inset: 16px;
|
|
1309
1316
|
--_kjun-geometry-modal-actions-gap: 8px;
|
|
1310
1317
|
--_kjun-geometry-modal-close-radius: 8px;
|
|
@@ -1918,8 +1925,8 @@
|
|
|
1918
1925
|
--_kjun-type-control-large-line: 1.5rem;
|
|
1919
1926
|
--_kjun-type-control-large-weight: 600;
|
|
1920
1927
|
--_kjun-type-control-large-tracking: 0em;
|
|
1921
|
-
--_kjun-type-section-title-size: 1.
|
|
1922
|
-
--_kjun-type-section-title-line: 1.
|
|
1928
|
+
--_kjun-type-section-title-size: 1.125rem;
|
|
1929
|
+
--_kjun-type-section-title-line: 1.5rem;
|
|
1923
1930
|
--_kjun-type-section-title-weight: 700;
|
|
1924
1931
|
--_kjun-type-section-title-tracking: -0.01em;
|
|
1925
1932
|
--_kjun-type-page-title-size: 1.5rem;
|
|
@@ -2234,6 +2241,10 @@
|
|
|
2234
2241
|
font-weight: var(--_kjun-type-label-weight);
|
|
2235
2242
|
letter-spacing: var(--_kjun-type-label-tracking);
|
|
2236
2243
|
}
|
|
2244
|
+
/* as="fieldset": the group drops the browser's frame, and its legend is the label with the label's gap to the choices. */
|
|
2245
|
+
fieldset.kjun-form-group { border: 0; padding: 0; margin-inline: 0; margin-top: 0; min-inline-size: 0; }
|
|
2246
|
+
.kjun-form-group > legend.kjun-form-label { padding: 0; }
|
|
2247
|
+
.kjun-form-group > legend.kjun-form-label:not(.kjun-sr-only) { width: 100%; }
|
|
2237
2248
|
.kjun-form-hint,
|
|
2238
2249
|
.kjun-form-error {
|
|
2239
2250
|
font-size: var(--_kjun-type-caption-size);
|
|
@@ -2857,6 +2868,10 @@
|
|
|
2857
2868
|
gap: var(--_kjun-extension-alert-lg-gap);
|
|
2858
2869
|
padding: var(--_kjun-extension-alert-lg-padding-y) var(--_kjun-extension-alert-lg-padding-x);
|
|
2859
2870
|
}
|
|
2871
|
+
/* Without a title the first line is the message's own (sm caption, md and lg body), so the icon, close button and
|
|
2872
|
+
beside actions centre on the text that is there; lg would otherwise sit them 2px low on its 24px title line. */
|
|
2873
|
+
.kjun-alert:not(:has(> .kjun-alert-content > .kjun-alert-title)) { --_kjun-alert-line: var(--_kjun-type-body-line); }
|
|
2874
|
+
.kjun-alert[data-size="sm"]:not(:has(> .kjun-alert-content > .kjun-alert-title)) { --_kjun-alert-line: var(--_kjun-type-caption-line); }
|
|
2860
2875
|
.kjun-alert-icon {
|
|
2861
2876
|
display: flex;
|
|
2862
2877
|
align-items: center;
|
|
@@ -2887,6 +2902,20 @@
|
|
|
2887
2902
|
font-weight: var(--_kjun-type-body-weight);
|
|
2888
2903
|
letter-spacing: var(--_kjun-type-body-tracking);
|
|
2889
2904
|
}
|
|
2905
|
+
/* App links and lists in the title or message (data-kjun-content) fit the alert: links take the text colour with the
|
|
2906
|
+
toast action's underline, lists start one small step below the line with a short indent. Zero specificity, so an
|
|
2907
|
+
app's own link and list styles win. */
|
|
2908
|
+
:where(.kjun-alert-title, .kjun-alert-description) :where(a) {
|
|
2909
|
+
color: inherit;
|
|
2910
|
+
text-decoration: underline;
|
|
2911
|
+
text-decoration-thickness: var(--_kjun-border-default-width);
|
|
2912
|
+
text-underline-offset: var(--_kjun-geometry-dimension-value3);
|
|
2913
|
+
}
|
|
2914
|
+
:where(.kjun-alert-title, .kjun-alert-description) :where(ul, ol) {
|
|
2915
|
+
margin: var(--_kjun-geometry-dimension-value4) 0 0;
|
|
2916
|
+
padding-inline-start: var(--_kjun-geometry-dimension-value20);
|
|
2917
|
+
}
|
|
2918
|
+
:where(.kjun-alert-description) :where(p) { margin: 0; }
|
|
2890
2919
|
.kjun-alert-title + .kjun-alert-description { margin-top: var(--_kjun-extension-alert-description-gap); }
|
|
2891
2920
|
.kjun-alert[data-size="sm"] .kjun-alert-title {
|
|
2892
2921
|
font-size: var(--_kjun-type-control-small-size);
|
|
@@ -3284,6 +3313,10 @@
|
|
|
3284
3313
|
.kjun-filter-chip:hover:not(:disabled):not([aria-pressed="true"]) > span {
|
|
3285
3314
|
background: var(--_kjun-color-hover);
|
|
3286
3315
|
}
|
|
3316
|
+
/* While pressed an unselected chip takes the active surface, as ListRow and SideNavigation press; a selected chip stays. */
|
|
3317
|
+
.kjun-filter-chip:active:not(:disabled):not([aria-pressed="true"]) > span {
|
|
3318
|
+
background: var(--_kjun-color-active);
|
|
3319
|
+
}
|
|
3287
3320
|
.kjun-filter-chip i {
|
|
3288
3321
|
width: var(--_kjun-extension-selection-dot-size);
|
|
3289
3322
|
height: var(--_kjun-extension-selection-dot-size);
|
|
@@ -3462,6 +3495,14 @@
|
|
|
3462
3495
|
.kjun-menu-item[data-variant="danger"][data-focused]:not([data-disabled]) {
|
|
3463
3496
|
background: color-mix(in srgb, var(--_kjun-color-danger) calc(var(--_kjun-state-opacity-tint-hover) * 100%), transparent);
|
|
3464
3497
|
}
|
|
3498
|
+
/* While pressed the row takes the active surface, as ListRow and SideNavigation press (react-aria marks it data-pressed);
|
|
3499
|
+
danger deepens its own tint. A chosen row's check does not change. */
|
|
3500
|
+
.kjun-menu-item:is(:active, [data-pressed]):not([data-disabled]) {
|
|
3501
|
+
background: var(--_kjun-color-active);
|
|
3502
|
+
}
|
|
3503
|
+
.kjun-menu-item[data-variant="danger"]:is(:active, [data-pressed]):not([data-disabled]) {
|
|
3504
|
+
background: color-mix(in srgb, var(--_kjun-color-danger) calc(var(--_kjun-state-opacity-tint-active) * 100%), transparent);
|
|
3505
|
+
}
|
|
3465
3506
|
/* A chosen row is marked by its check alone, like a toggle; the fill stays for the current row. */
|
|
3466
3507
|
.kjun-menu-check { color: var(--_kjun-color-brand); }
|
|
3467
3508
|
/* Leading icons sit a step below the regular-weight label; danger items keep their role color. */
|
|
@@ -3816,22 +3857,22 @@
|
|
|
3816
3857
|
font-weight:var(--_kjun-type-label-weight); letter-spacing:var(--_kjun-type-control-tracking);
|
|
3817
3858
|
white-space:nowrap; cursor:pointer; outline:none; -webkit-tap-highlight-color:transparent;
|
|
3818
3859
|
}
|
|
3819
|
-
.kjun-tabs[data-variant="underline"]:not([data-full-width]) .kjun-tab:first-child { padding-inline-start:0; }
|
|
3860
|
+
.kjun-tabs[data-variant="underline"]:not([data-full-width]) > .kjun-tabs-header .kjun-tab:first-child { padding-inline-start:0; }
|
|
3820
3861
|
/* fullWidth: tabs share the row equally; the underline then spans the whole tab. */
|
|
3821
3862
|
.kjun-tabs[data-full-width] .kjun-tabs-header > .kjun-tabs-track { flex:1; }
|
|
3822
|
-
.kjun-tabs[data-full-width] .kjun-tabs-list { width:auto; min-width:max-content; }
|
|
3823
|
-
.kjun-tabs[data-full-width] .kjun-tab { flex:1 0 0; justify-content:center; min-width:max-content; }
|
|
3863
|
+
.kjun-tabs[data-full-width] > .kjun-tabs-header .kjun-tabs-list { width:auto; min-width:max-content; }
|
|
3864
|
+
.kjun-tabs[data-full-width] > .kjun-tabs-header .kjun-tab { flex:1 0 0; justify-content:center; min-width:max-content; }
|
|
3824
3865
|
/* Pills are chips: each tab carries its own fill and the selected one inverts, with no sliding marker. */
|
|
3825
|
-
.kjun-tabs[data-variant="pills"] .kjun-tab { border-radius:var(--_kjun-extension-tabs-pills-radius); background:var(--_kjun-color-secondary) !important; }
|
|
3826
|
-
.kjun-tabs[data-variant="pills"] .kjun-tab[aria-selected="true"] { background:var(--_kjun-color-text) !important; color:var(--_kjun-color-surface); }
|
|
3827
|
-
.kjun-tabs[data-variant="pills"] .kjun-tab-indicator { display:none; }
|
|
3866
|
+
.kjun-tabs[data-variant="pills"] > .kjun-tabs-header .kjun-tab { border-radius:var(--_kjun-extension-tabs-pills-radius); background:var(--_kjun-color-secondary) !important; }
|
|
3867
|
+
.kjun-tabs[data-variant="pills"] > .kjun-tabs-header .kjun-tab[aria-selected="true"] { background:var(--_kjun-color-text) !important; color:var(--_kjun-color-surface); }
|
|
3868
|
+
.kjun-tabs[data-variant="pills"] > .kjun-tabs-header .kjun-tab-indicator { display:none; }
|
|
3828
3869
|
/* A selected chip that is disabled keeps its inverted fill but dims its ink, as on Native. */
|
|
3829
|
-
.kjun-tabs[data-variant="pills"] .kjun-tab[aria-selected="true"]:is([aria-disabled="true"], :disabled) { color:var(--_kjun-color-text-disabled); }
|
|
3870
|
+
.kjun-tabs[data-variant="pills"] > .kjun-tabs-header .kjun-tab[aria-selected="true"]:is([aria-disabled="true"], :disabled) { color:var(--_kjun-color-text-disabled); }
|
|
3830
3871
|
/* On an unselected chip a default badge takes the surface, so it does not vanish into the chip's own fill. */
|
|
3831
|
-
.kjun-tabs[data-variant="pills"] .kjun-tab:not([aria-selected="true"]) .kjun-tab-badge[data-variant="default"] { background:var(--_kjun-color-surface) !important; }
|
|
3872
|
+
.kjun-tabs[data-variant="pills"] > .kjun-tabs-header .kjun-tab:not([aria-selected="true"]) .kjun-tab-badge[data-variant="default"] { background:var(--_kjun-color-surface) !important; }
|
|
3832
3873
|
/* A disabled tab dims its badge with its label. */
|
|
3833
3874
|
.kjun-tab:is([aria-disabled="true"], :disabled) .kjun-tab-badge { opacity:var(--_kjun-state-opacity-disabled); }
|
|
3834
|
-
.kjun-tabs[data-variant="pills"] .kjun-tabs-list {
|
|
3875
|
+
.kjun-tabs[data-variant="pills"] > .kjun-tabs-header .kjun-tabs-list {
|
|
3835
3876
|
gap:var(--_kjun-extension-tabs-pills-gap); padding-block:var(--_kjun-extension-tabs-pills-padding-y);
|
|
3836
3877
|
}
|
|
3837
3878
|
.kjun-tab[aria-selected="true"] { color:var(--_kjun-color-text); font-weight:var(--_kjun-type-control-weight); }
|
|
@@ -3841,7 +3882,7 @@
|
|
|
3841
3882
|
}
|
|
3842
3883
|
/* Underline tabs ring outside their label and indicator (the first tab has no start padding to clip into).
|
|
3843
3884
|
Their track keeps room for the ring so overflow does not cut it. */
|
|
3844
|
-
.kjun-tabs[data-variant="underline"] .kjun-tabs-track {
|
|
3885
|
+
.kjun-tabs[data-variant="underline"] > .kjun-tabs-header .kjun-tabs-track {
|
|
3845
3886
|
--_kjun-tab-ring-room:calc(var(--_kjun-state-focus-width) + var(--_kjun-state-focus-offset));
|
|
3846
3887
|
padding:var(--_kjun-tab-ring-room); margin:calc(-1 * var(--_kjun-tab-ring-room));
|
|
3847
3888
|
}
|
|
@@ -3857,12 +3898,17 @@
|
|
|
3857
3898
|
}
|
|
3858
3899
|
:is(.kjun-tabs-track, .kjun-filter-group[data-scroll="true"], .kjun-metric-pills)[data-fade-start] { --_kjun-fade-start: transparent; }
|
|
3859
3900
|
:is(.kjun-tabs-track, .kjun-filter-group[data-scroll="true"], .kjun-metric-pills)[data-fade-end] { --_kjun-fade-end: transparent; }
|
|
3860
|
-
.kjun-tabs[data-variant="underline"] .kjun-tab:is([data-focus-visible], :focus-visible) { outline-offset:var(--_kjun-state-focus-offset); }
|
|
3901
|
+
.kjun-tabs[data-variant="underline"] > .kjun-tabs-header .kjun-tab:is([data-focus-visible], :focus-visible) { outline-offset:var(--_kjun-state-focus-offset); }
|
|
3861
3902
|
.kjun-tab:hover:not([aria-selected="true"]):not([aria-disabled="true"]):not(:disabled) { color:var(--_kjun-color-text); }
|
|
3862
3903
|
/* Unselected chips darken to the hover surface, like Chip and ButtonGroup. */
|
|
3863
|
-
.kjun-tabs[data-variant="pills"] .kjun-tabs-track .kjun-tab:hover:not([aria-selected="true"]):not([aria-disabled="true"]):not(:disabled) {
|
|
3904
|
+
.kjun-tabs[data-variant="pills"] > .kjun-tabs-header .kjun-tabs-track .kjun-tab:hover:not([aria-selected="true"]):not([aria-disabled="true"]):not(:disabled) {
|
|
3864
3905
|
background:var(--_kjun-color-hover) !important;
|
|
3865
3906
|
}
|
|
3907
|
+
/* While pressed they take the active surface, as ListRow and SideNavigation press. Underline tabs keep their ink change only:
|
|
3908
|
+
they have no inset, so a fill would hug the text and read as a selection. */
|
|
3909
|
+
.kjun-tabs[data-variant="pills"] > .kjun-tabs-header .kjun-tabs-track .kjun-tab:is(:active, [data-pressed]):not([aria-selected="true"]):not([aria-disabled="true"]):not(:disabled) {
|
|
3910
|
+
background:var(--_kjun-color-active) !important;
|
|
3911
|
+
}
|
|
3866
3912
|
.kjun-tab-badge { font-variant-numeric:tabular-nums; }
|
|
3867
3913
|
.kjun-tab-content { margin-top:var(--_kjun-extension-tabs-content-gap); }
|
|
3868
3914
|
.kjun-tab-panel { outline:none; }
|
|
@@ -4322,19 +4368,19 @@
|
|
|
4322
4368
|
position: relative;
|
|
4323
4369
|
gap: var(--_kjun-extension-list-gap);
|
|
4324
4370
|
min-height: var(--_kjun-extension-list-minimum-height);
|
|
4325
|
-
padding: var(--_kjun-extension-list-padding);
|
|
4371
|
+
padding: var(--_kjun-extension-list-padding) var(--_kjun-list-inset,var(--_kjun-extension-list-padding));
|
|
4326
4372
|
border-bottom: 0;
|
|
4327
4373
|
}
|
|
4328
4374
|
.kjun-list-skeleton-row[data-variant="row"]:not(:last-child)::after {
|
|
4329
4375
|
content: "";
|
|
4330
4376
|
position: absolute;
|
|
4331
|
-
inset-inline: var(--_kjun-list-divider-inset, var(--_kjun-extension-list-padding)) 0;
|
|
4377
|
+
inset-inline: var(--_kjun-list-divider-inset, var(--_kjun-list-inset,var(--_kjun-extension-list-padding))) 0;
|
|
4332
4378
|
bottom: 0;
|
|
4333
4379
|
height: var(--_kjun-border-default-width);
|
|
4334
4380
|
background: var(--_kjun-color-divider);
|
|
4335
4381
|
}
|
|
4336
4382
|
.kjun-list-skeleton-row[data-variant="row"][data-leading] {
|
|
4337
|
-
--_kjun-list-divider-inset: calc(var(--_kjun-extension-list-padding) + var(--_kjun-extension-list-leading-width) + var(--_kjun-extension-list-gap));
|
|
4383
|
+
--_kjun-list-divider-inset: calc(var(--_kjun-list-inset,var(--_kjun-extension-list-padding)) + var(--_kjun-extension-list-leading-width) + var(--_kjun-extension-list-gap));
|
|
4338
4384
|
}
|
|
4339
4385
|
.kjun-list-skeleton-row[data-variant="row"] .kjun-list-skeleton-label { display: block; }
|
|
4340
4386
|
.kjun-list-skeleton-row[data-variant="row"] .kjun-list-skeleton-label > .kjun-skeleton { display: block; }
|
|
@@ -4733,6 +4779,8 @@
|
|
|
4733
4779
|
font-weight: var(--_kjun-type-body-weight);
|
|
4734
4780
|
letter-spacing: var(--_kjun-type-body-tracking);
|
|
4735
4781
|
}
|
|
4782
|
+
/* layout="fixed": columns keep the widths the app gave; content wraps or clips instead of widening them. */
|
|
4783
|
+
.kjun-table[data-layout="fixed"] { table-layout: fixed; }
|
|
4736
4784
|
.kjun-table thead {
|
|
4737
4785
|
background: var(--_kjun-color-table-header-bg);
|
|
4738
4786
|
}
|
|
@@ -5126,9 +5174,9 @@
|
|
|
5126
5174
|
.kjun-table-card-highlight > .kjun-table-card-value {
|
|
5127
5175
|
display: block;
|
|
5128
5176
|
margin-top: var(--_kjun-extension-table-card-value-gap);
|
|
5129
|
-
font-size: var(--_kjun-type-
|
|
5130
|
-
line-height: var(--_kjun-type-
|
|
5131
|
-
font-weight: var(--_kjun-type-
|
|
5177
|
+
font-size: var(--_kjun-type-number-lg-size);
|
|
5178
|
+
line-height: var(--_kjun-type-number-lg-line);
|
|
5179
|
+
font-weight: var(--_kjun-type-number-lg-weight);
|
|
5132
5180
|
font-variant-numeric: tabular-nums;
|
|
5133
5181
|
}
|
|
5134
5182
|
.kjun-table-cards[data-layout="tiles"] .kjun-table-card-highlight > .kjun-table-card-value {
|
|
@@ -6373,7 +6421,7 @@ a.kjun-card { display: block; color: var(--_kjun-card-text); text-decoration: no
|
|
|
6373
6421
|
.kjun-card:not([data-surface="default"], [data-surface="glass"]) { --_kjun-badge-fill: var(--_kjun-color-surface); }
|
|
6374
6422
|
/* A plain card nested in a tinted one, and parts painted on the plain surface (list sections, expanded table cards), drop it again. */
|
|
6375
6423
|
.kjun-card:is([data-surface="default"], [data-surface="glass"]),
|
|
6376
|
-
.kjun-card :is(.kjun-list-section:not([data-surface="false"]), .kjun-list-panel:not([data-surface="false"]), .kjun-table-card-expand-content) { --_kjun-badge-fill: initial; }
|
|
6424
|
+
.kjun-card :is(.kjun-list-section:not([data-surface="false"], [data-surface="muted"]), .kjun-list-panel:not([data-surface="false"], [data-surface="muted"]), .kjun-table-card-expand-content) { --_kjun-badge-fill: initial; }
|
|
6377
6425
|
/* On the brand surface a primary or link action would take the card's own colour; it uses the brand-action roles
|
|
6378
6426
|
(by default an onBrand fill with a brand label), which an app can set, e.g. to a translucent onBrand fill. */
|
|
6379
6427
|
.kjun-card[data-surface="brand"] {
|
|
@@ -6656,7 +6704,7 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
6656
6704
|
/* Initials scale with the avatar (about 40% of its side) and show Latin initials in capitals. */
|
|
6657
6705
|
.kjun-avatar .kjun-image-fallback{text-transform:uppercase;font-size:var(--_kjun-type-input-size);line-height:var(--_kjun-type-input-line)}
|
|
6658
6706
|
.kjun-avatar[data-size=sm] .kjun-image-fallback{font-size:var(--_kjun-type-control-size);line-height:var(--_kjun-type-control-line)}
|
|
6659
|
-
.kjun-avatar[data-size=lg] .kjun-image-fallback{font-size:var(--_kjun-type-
|
|
6707
|
+
.kjun-avatar[data-size=lg] .kjun-image-fallback{font-size:var(--_kjun-type-number-lg-size);line-height:var(--_kjun-type-number-lg-line)}.kjun-avatar[data-size=xs] .kjun-image-fallback{font-size:var(--_kjun-type-control-small-size);line-height:var(--_kjun-type-control-small-line)}.kjun-avatar[data-size=xl] .kjun-image-fallback{font-size:var(--_kjun-type-page-title-size);line-height:var(--_kjun-type-page-title-line)}.kjun-avatar[data-shape=square]{border-radius:var(--_kjun-geometry-radius-radius8)}
|
|
6660
6708
|
/* App colors (color/textColor) arrive as private custom properties; without them the image roles stay. */
|
|
6661
6709
|
.kjun-avatar .kjun-image{background:var(--_kjun-avatar-color,var(--_kjun-color-secondary))}.kjun-avatar .kjun-image-fallback{color:var(--_kjun-avatar-text-color,var(--_kjun-color-text-secondary))}
|
|
6662
6710
|
/* KjunAvatarGroup: circles overlap and a ring in the colour behind the group cuts each one out of its neighbour (no outline).
|
|
@@ -6670,9 +6718,9 @@ button.kjun-toast-more:focus-visible { outline: var(--_kjun-state-focus-width) s
|
|
|
6670
6718
|
.kjun-avatar-group[data-size=md]{--_kjun-avatar-group-size:var(--_kjun-extension-avatar-md);--_kjun-avatar-group-overlap:var(--_kjun-extension-avatar-group-overlap-md);--_kjun-avatar-group-gap:var(--_kjun-extension-avatar-group-square-gap-md)}
|
|
6671
6719
|
.kjun-avatar-group[data-size=md] .kjun-avatar-group-overflow{font-size:var(--_kjun-type-input-size);line-height:var(--_kjun-type-input-line)}.kjun-avatar-group[data-size=md] .kjun-avatar-group-overflow[data-digits="2"]{font-size:var(--_kjun-type-control-size);line-height:var(--_kjun-type-control-line)}
|
|
6672
6720
|
.kjun-avatar-group[data-size=lg]{--_kjun-avatar-group-size:var(--_kjun-extension-avatar-lg);--_kjun-avatar-group-overlap:var(--_kjun-extension-avatar-group-overlap-lg);--_kjun-avatar-group-gap:var(--_kjun-extension-avatar-group-square-gap-lg)}
|
|
6673
|
-
.kjun-avatar-group[data-size=lg] .kjun-avatar-group-overflow{font-size:var(--_kjun-type-
|
|
6721
|
+
.kjun-avatar-group[data-size=lg] .kjun-avatar-group-overflow{font-size:var(--_kjun-type-number-lg-size);line-height:var(--_kjun-type-number-lg-line)}.kjun-avatar-group[data-size=lg] .kjun-avatar-group-overflow[data-digits="2"]{font-size:var(--_kjun-type-input-size);line-height:var(--_kjun-type-input-line)}
|
|
6674
6722
|
.kjun-avatar-group[data-size=xl]{--_kjun-avatar-group-size:var(--_kjun-extension-avatar-xl);--_kjun-avatar-group-overlap:var(--_kjun-extension-avatar-group-overlap-xl);--_kjun-avatar-group-gap:var(--_kjun-extension-avatar-group-square-gap-xl)}
|
|
6675
|
-
.kjun-avatar-group[data-size=xl] .kjun-avatar-group-overflow{font-size:var(--_kjun-type-page-title-size);line-height:var(--_kjun-type-page-title-line)}.kjun-avatar-group[data-size=xl] .kjun-avatar-group-overflow[data-digits="2"]{font-size:var(--_kjun-type-
|
|
6723
|
+
.kjun-avatar-group[data-size=xl] .kjun-avatar-group-overflow{font-size:var(--_kjun-type-page-title-size);line-height:var(--_kjun-type-page-title-line)}.kjun-avatar-group[data-size=xl] .kjun-avatar-group-overflow[data-digits="2"]{font-size:var(--_kjun-type-number-lg-size);line-height:var(--_kjun-type-number-lg-line)}
|
|
6676
6724
|
.kjun-avatar-group-item{position:relative;display:inline-flex;flex-shrink:0;border-radius:var(--_kjun-geometry-radius-radius9999);box-shadow:0 0 0 var(--_kjun-border-control-width) var(--_kjun-avatar-group-ring,var(--_kjun-color-surface))}
|
|
6677
6725
|
.kjun-avatar-group-item+.kjun-avatar-group-item{margin-inline-start:calc(0px - var(--_kjun-avatar-group-overlap))}
|
|
6678
6726
|
/* Inside a group, initials without their own colour and the "+N" chip sit on tertiary, one step from a secondary card behind the group. */
|
|
@@ -6913,6 +6961,11 @@ button.kjun-avatar-group:disabled{cursor:not-allowed;opacity:var(--_kjun-state-o
|
|
|
6913
6961
|
.kjun-top-navigation .kjun-button-label { display:block; min-width:0; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
|
|
6914
6962
|
|
|
6915
6963
|
.kjun-bottom-navigation { display:flex; flex-shrink:0; justify-content:center; }
|
|
6964
|
+
/* sticky: a bottom bar keeps its own room at the end of the page flow and stays on the viewport's bottom edge while the page
|
|
6965
|
+
scrolls, so the last content is never under it and nothing is measured. In a column at least the viewport tall it also sits
|
|
6966
|
+
at the bottom of a short page (margin-block-start:auto). Every ancestor up to the page's scroller must leave overflow visible
|
|
6967
|
+
(clip is fine); a scroll container in between becomes the edge it sticks to. A floating capsule sets its own bottom inline. */
|
|
6968
|
+
.kjun-bottom-navigation[data-sticky],.kjun-floating-navigation[data-sticky],.kjun-bottom-action-bar[data-sticky]{position:sticky;bottom:0;z-index:var(--_kjun-layer-page-navigation);margin-block-start:auto}
|
|
6916
6969
|
/* A square bar across the screen's bottom edge: a hairline shadow along its top edge keeps it apart from the content above it.
|
|
6917
6970
|
A bar without a surface stays seamless. */
|
|
6918
6971
|
.kjun-bottom-navigation:not([data-surface="false"]) { box-shadow:var(--_kjun-bottom-navigation-elevation); }
|
|
@@ -7134,7 +7187,7 @@ button.kjun-avatar-group:disabled{cursor:not-allowed;opacity:var(--_kjun-state-o
|
|
|
7134
7187
|
/* Hover is half the app's hover fill and leaves the text as it is, so a pointer resting on a row never reads as a stronger
|
|
7135
7188
|
mark than the current page, which keeps its fill under the pointer. A row that only holds the current page has no fill
|
|
7136
7189
|
in a full menu, so it takes hover like any row. */
|
|
7137
|
-
:is(.kjun-side-navigation,.kjun-side-navigation-flyout){--_kjun-side-navigation-hover:color-mix(in srgb, var(--_kjun-color-hover) calc(var(--_kjun-state-opacity-hover-soft) * 100%), transparent);--_kjun-side-navigation-within:color-mix(in srgb, var(--_kjun-color-selected-bg) calc(var(--_kjun-state-opacity-selected-within) * 100%), transparent)}
|
|
7190
|
+
:is(.kjun-side-navigation,.kjun-side-navigation-flyout,.kjun-side-navigation-layout-nav,.kjun-side-navigation-layout-band){--_kjun-side-navigation-hover:color-mix(in srgb, var(--_kjun-color-hover) calc(var(--_kjun-state-opacity-hover-soft) * 100%), transparent);--_kjun-side-navigation-within:color-mix(in srgb, var(--_kjun-color-selected-bg) calc(var(--_kjun-state-opacity-selected-within) * 100%), transparent)}
|
|
7138
7191
|
@media (hover:hover){:is(.kjun-side-navigation-item,.kjun-side-navigation-title[data-toggle],.kjun-side-navigation-toggle,.kjun-side-navigation-action):not([aria-disabled=true],:disabled,[aria-current]):hover{background:var(--_kjun-side-navigation-hover);--_kjun-navigation-ring:var(--_kjun-side-navigation-hover)}}
|
|
7139
7192
|
:is(.kjun-side-navigation-item,.kjun-side-navigation-title[data-toggle],.kjun-side-navigation-toggle,.kjun-side-navigation-action):not([aria-disabled=true],:disabled,[aria-current]):active{background:var(--_kjun-color-active);color:var(--_kjun-color-text);--_kjun-navigation-ring:var(--_kjun-color-active)}
|
|
7140
7193
|
.kjun-side-navigation-item[aria-current]{background:var(--_kjun-color-selected-bg);color:var(--_kjun-color-text);font-weight:var(--_kjun-extension-side-navigation-selected-weight);--_kjun-navigation-ring:var(--_kjun-color-selected-bg)}
|
|
@@ -7162,6 +7215,9 @@ button.kjun-avatar-group:disabled{cursor:not-allowed;opacity:var(--_kjun-state-o
|
|
|
7162
7215
|
.kjun-side-navigation[data-collapsed] > .kjun-side-navigation-footer{flex-direction:column-reverse}
|
|
7163
7216
|
.kjun-side-navigation[data-collapsed] > .kjun-side-navigation-footer > .kjun-side-navigation-toggle{margin-inline-start:0}
|
|
7164
7217
|
.kjun-side-navigation-toggle{display:flex;align-items:center;justify-content:center;flex:none;width:var(--_kjun-extension-side-navigation-toggle-size);height:var(--_kjun-extension-side-navigation-toggle-size);padding:0;border:0;border-radius:var(--_kjun-extension-side-navigation-toggle-radius);background:transparent;color:var(--_kjun-color-text-secondary);cursor:pointer;-webkit-tap-highlight-color:transparent;transition:background-color var(--_kjun-motion-control) var(--_kjun-ease-out),color var(--_kjun-motion-control) var(--_kjun-ease-out)}
|
|
7218
|
+
/* On touch screens a toggle's press area grows to the minimum touch target (the menu's and the layout panel's). */
|
|
7219
|
+
.kjun-side-navigation-toggle{position:relative}
|
|
7220
|
+
@media (pointer:coarse){.kjun-side-navigation-toggle::after{content:"";position:absolute;inset:min(0%,calc((100% - var(--_kjun-geometry-native-minimum-touch-target)) / 2))}}
|
|
7165
7221
|
.kjun-side-navigation[data-collapsed] .kjun-side-navigation-toggle{width:var(--_kjun-side-navigation-rail-width);height:var(--_kjun-extension-side-navigation-item-height);border-radius:var(--_kjun-extension-side-navigation-radius)}
|
|
7166
7222
|
/* Collapsible groups: a title is a toggle row the height of a small button in caption type, so a heading never reads as
|
|
7167
7223
|
a row. Its end holds what a parent row's end holds: a dot for a badge inside a closed group, or (groupCounts) how many
|
|
@@ -7245,18 +7301,50 @@ button.kjun-avatar-group:disabled{cursor:not-allowed;opacity:var(--_kjun-state-o
|
|
|
7245
7301
|
.kjun-side-navigation-layout[data-collapsed][data-rail-labels]{--_kjun-side-navigation-layout-padding-x:var(--_kjun-extension-side-navigation-rail-column-padding-x);--_kjun-side-navigation-layout-column:calc(var(--_kjun-extension-side-navigation-rail-item-width) + var(--_kjun-side-navigation-layout-padding-x) * 2)}
|
|
7246
7302
|
.kjun-side-navigation-layout-nav{position:sticky;top:var(--_kjun-side-navigation-layout-top,0vh);align-self:start;display:flex;flex-direction:column;height:calc(100vh - var(--_kjun-side-navigation-layout-top,0vh));height:calc(100dvh - var(--_kjun-side-navigation-layout-top,0vh));min-width:0;padding:var(--_kjun-extension-side-navigation-column-padding-y) var(--_kjun-side-navigation-layout-padding-x);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
|
|
7247
7303
|
.kjun-side-navigation-layout[data-sticky=false] > .kjun-side-navigation-layout-nav{position:static;height:auto;overflow-y:visible}
|
|
7304
|
+
/* A band that scrolls away with the page still runs the page's full height, as on Native. */
|
|
7305
|
+
.kjun-side-navigation-layout[data-spaces][data-sticky=false] > .kjun-side-navigation-layout-nav{align-self:stretch}
|
|
7248
7306
|
.kjun-side-navigation-layout-nav > .kjun-side-navigation{flex:1 1 auto}
|
|
7249
7307
|
.kjun-side-navigation-layout-main{min-width:0}
|
|
7250
7308
|
/* Below the layout's breakpoint the column goes away and the menu opens in a drawer from the start edge. */
|
|
7251
7309
|
.kjun-side-navigation-layout[data-drawer]{display:block}
|
|
7310
|
+
/* Spaces: a band in the rail colour holds the spaces rail and the menu panel (a card set into the band, or flat with a line before
|
|
7311
|
+
the page). The column is the rail's cell, plus the panel and a card's inset while the panel is open. The page is untouched. */
|
|
7312
|
+
:is(.kjun-side-navigation-layout[data-spaces],.kjun-side-navigation-layout-band){--_kjun-side-navigation-spaces-rail:calc(var(--_kjun-extension-side-navigation-padding-x) * 2 + var(--_kjun-extension-side-navigation-icon-size) + var(--_kjun-extension-side-navigation-spaces-rail-padding-x) * 2)}
|
|
7313
|
+
.kjun-side-navigation-layout[data-spaces]{--_kjun-side-navigation-layout-column:calc(var(--_kjun-side-navigation-spaces-rail) + var(--_kjun-extension-side-navigation-spaces-panel-width) + var(--_kjun-extension-side-navigation-spaces-panel-inset))}
|
|
7314
|
+
.kjun-side-navigation-layout[data-spaces][data-panel-surface=flat]{--_kjun-side-navigation-layout-column:calc(var(--_kjun-side-navigation-spaces-rail) + var(--_kjun-extension-side-navigation-spaces-panel-width))}
|
|
7315
|
+
.kjun-side-navigation-layout[data-spaces][data-panel-collapsed]{--_kjun-side-navigation-layout-column:var(--_kjun-side-navigation-spaces-rail)}
|
|
7316
|
+
:is(.kjun-side-navigation-layout[data-spaces] > .kjun-side-navigation-layout-nav,.kjun-side-navigation-layout-band){flex-direction:row;align-items:stretch;padding:0;overflow:hidden;background:var(--_kjun-color-navigation-rail-bg)}
|
|
7317
|
+
.kjun-side-navigation-layout-band{display:flex;height:100%;min-height:0}
|
|
7318
|
+
.kjun-side-navigation-layout-spaces{display:flex;flex-direction:column;align-items:center;flex:none;width:var(--_kjun-side-navigation-spaces-rail);min-height:0;padding:var(--_kjun-extension-side-navigation-column-padding-y) 0;box-sizing:border-box;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
|
|
7319
|
+
:is(.kjun-side-navigation-layout-spaces-top,.kjun-side-navigation-layout-panel-head){display:flex;align-items:center;flex:none;height:var(--_kjun-extension-side-navigation-spaces-panel-head-height);margin-bottom:var(--_kjun-extension-side-navigation-group-gap)}
|
|
7320
|
+
.kjun-side-navigation-layout-spaces-top{justify-content:center;align-self:stretch}
|
|
7321
|
+
.kjun-side-navigation-layout-spaces .kjun-side-navigation[data-collapsed] .kjun-side-navigation-item:is([aria-current],[data-current-within]){background:var(--_kjun-color-background);--_kjun-navigation-ring:var(--_kjun-color-background)}
|
|
7322
|
+
.kjun-side-navigation-layout-panel{display:flex;flex-direction:column;flex:none;width:var(--_kjun-extension-side-navigation-spaces-panel-width);min-width:0;min-height:0;padding:var(--_kjun-extension-side-navigation-column-padding-y) var(--_kjun-extension-side-navigation-spaces-panel-inset);box-sizing:border-box;background:var(--_kjun-color-background);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
|
|
7323
|
+
.kjun-side-navigation-layout-panel > .kjun-side-navigation{flex:1 1 auto}
|
|
7324
|
+
[data-panel-surface=card] > :is(.kjun-side-navigation-layout-nav,.kjun-side-navigation-layout-band) > .kjun-side-navigation-layout-panel,.kjun-side-navigation-layout-band[data-panel-surface=card] > .kjun-side-navigation-layout-panel{margin:var(--_kjun-extension-side-navigation-spaces-panel-inset) var(--_kjun-extension-side-navigation-spaces-panel-inset) var(--_kjun-extension-side-navigation-spaces-panel-inset) 0;padding-top:calc(var(--_kjun-extension-side-navigation-column-padding-y) - var(--_kjun-extension-side-navigation-spaces-panel-inset));border-radius:var(--_kjun-extension-side-navigation-spaces-panel-radius)}
|
|
7325
|
+
[data-panel-surface=flat] > :is(.kjun-side-navigation-layout-nav,.kjun-side-navigation-layout-band) > .kjun-side-navigation-layout-panel,.kjun-side-navigation-layout-band[data-panel-surface=flat] > .kjun-side-navigation-layout-panel{border-inline-end:var(--_kjun-border-default-width) solid var(--_kjun-color-divider)}
|
|
7326
|
+
.kjun-side-navigation-layout-panel-head{gap:var(--_kjun-extension-side-navigation-item-gap);padding-inline:var(--_kjun-extension-side-navigation-padding-x) calc((var(--_kjun-extension-side-navigation-spaces-panel-head-height) - var(--_kjun-extension-side-navigation-toggle-size)) / 2)}
|
|
7327
|
+
.kjun-side-navigation-layout-panel-title{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--_kjun-color-text);font-size:var(--_kjun-type-card-title-size);line-height:var(--_kjun-type-card-title-line);font-weight:var(--_kjun-type-card-title-weight);letter-spacing:var(--_kjun-type-card-title-tracking)}
|
|
7328
|
+
.kjun-side-navigation-layout-panel-head > .kjun-side-navigation-toggle{margin-inline-start:auto}
|
|
7252
7329
|
/* Widening: the app grows the column; names, titles and trailing marks wait for it and then fade in, so they are never
|
|
7253
7330
|
cut off by a column still on its way. Narrowing hides them at once. */
|
|
7254
7331
|
@keyframes kjun-side-navigation-reveal{from{opacity:0}}
|
|
7255
7332
|
.kjun-side-navigation[data-expanding] :is(.kjun-side-navigation-label,.kjun-side-navigation-empty,.kjun-side-navigation-heading,.kjun-side-navigation-chevron,.kjun-side-navigation-trailing,.kjun-side-navigation-item > .kjun-navigation-badge,.kjun-side-navigation-header,.kjun-side-navigation-footer-content){animation:kjun-side-navigation-reveal var(--_kjun-motion-control) var(--_kjun-ease-out) var(--_kjun-motion-control) both}
|
|
7256
7333
|
@media (prefers-reduced-motion: reduce){.kjun-side-navigation-item,.kjun-side-navigation-title,.kjun-side-navigation-chevron,.kjun-side-navigation-glyph,.kjun-side-navigation-toggle,.kjun-side-navigation-action,.kjun-side-navigation-layout{transition:none}.kjun-side-navigation[data-expanding] *{animation:none}}
|
|
7257
7334
|
/* KjunListSection, KjunListRow, KjunListItem and KjunListGroup. */
|
|
7258
|
-
.kjun-list-section{min-width:0;max-width:100%;color:var(--_kjun-color-text);background:var(--_kjun-color-surface)}
|
|
7335
|
+
.kjun-list-section{--_kjun-list-inset:var(--_kjun-extension-list-padding);min-width:0;max-width:100%;color:var(--_kjun-color-text);background:var(--_kjun-color-surface)}
|
|
7336
|
+
/* bleed: the section reaches past its container's content edge by the container's inset (a KjunCard body's padding, or
|
|
7337
|
+
the rows' own 16px on a page) and every row, heading and footer takes that inset, so text keeps to the content line
|
|
7338
|
+
while fills and dividers run to the container's edge. Each section sets the inset, so a nested list starts over. */
|
|
7339
|
+
.kjun-list-section[data-bleed]{--_kjun-list-inset:var(--_kjun-card-body-padding,var(--_kjun-extension-list-padding));margin-inline:calc(-1 * var(--_kjun-list-inset));max-width:none;border-radius:0}
|
|
7259
7340
|
.kjun-list-section[data-surface="false"]{background:transparent}
|
|
7341
|
+
/* surface="muted": the muted fill sets rows apart inside a white card or modal (KjunCard's muted surface). On it a badge
|
|
7342
|
+
takes the plain surface, as in a tinted card, dividers the border role and an open row's icon square the surface, so
|
|
7343
|
+
none of them dissolves into the fill. A heading outside the rows' card stays on the page. */
|
|
7344
|
+
.kjun-list-section[data-surface="muted"]{background:var(--_kjun-color-secondary)}
|
|
7345
|
+
.kjun-list-section[data-surface="muted"]:not([data-outside]),.kjun-list-panel[data-surface="muted"]{--_kjun-badge-fill:var(--_kjun-color-surface)}
|
|
7346
|
+
:is(.kjun-list-section[data-surface="muted"]:not([data-outside]),.kjun-list-panel[data-surface="muted"]) .kjun-list>:is(.kjun-list-row,.kjun-list-item)::after{background:var(--_kjun-color-border)}
|
|
7347
|
+
:is(.kjun-list-section[data-surface="muted"]:not([data-outside]),.kjun-list-panel[data-surface="muted"]) .kjun-list[data-variant=open]>.kjun-list-row:not([data-destructive]) .kjun-list-icon-background{background-color:var(--_kjun-color-surface)}
|
|
7260
7348
|
|
|
7261
7349
|
/* Heading: the title takes the remaining width; actions sit at the end, centered on the title's first line. */
|
|
7262
7350
|
.kjun-list-heading{
|
|
@@ -7264,7 +7352,7 @@ button.kjun-avatar-group:disabled{cursor:not-allowed;opacity:var(--_kjun-state-o
|
|
|
7264
7352
|
--_kjun-list-action-height:var(--_kjun-list-title-line);
|
|
7265
7353
|
/* How far an action taller than the title line reaches above and below it. */
|
|
7266
7354
|
--_kjun-list-action-overflow:max(0px, (var(--_kjun-list-action-height) - var(--_kjun-list-title-line)) / 2);
|
|
7267
|
-
display:flex;align-items:flex-start;justify-content:space-between;gap:var(--_kjun-extension-list-gap);padding:var(--_kjun-extension-list-padding);
|
|
7355
|
+
display:flex;align-items:flex-start;justify-content:space-between;gap:var(--_kjun-extension-list-gap);padding:var(--_kjun-extension-list-padding) var(--_kjun-list-inset,var(--_kjun-extension-list-padding));
|
|
7268
7356
|
}
|
|
7269
7357
|
.kjun-list-heading > div:first-child{flex:1;min-width:0;word-break:keep-all;overflow-wrap:anywhere}
|
|
7270
7358
|
.kjun-list-heading :is(h2,h3,h4){margin:0;font-size:var(--_kjun-type-card-title-size);line-height:var(--_kjun-type-card-title-line);font-weight:var(--_kjun-type-card-title-weight);letter-spacing:var(--_kjun-type-card-title-tracking)}
|
|
@@ -7308,6 +7396,7 @@ button.kjun-avatar-group:disabled{cursor:not-allowed;opacity:var(--_kjun-state-o
|
|
|
7308
7396
|
.kjun-list-section[data-outside] > .kjun-list-heading{padding-top:var(--_kjun-list-action-overflow);padding-bottom:var(--_kjun-extension-list-outside-label-gap)}
|
|
7309
7397
|
.kjun-list-panel{background:var(--_kjun-color-surface);overflow:hidden;overflow:clip}
|
|
7310
7398
|
.kjun-list-panel[data-surface="false"]{background:transparent}
|
|
7399
|
+
.kjun-list-panel[data-surface="muted"]{background:var(--_kjun-color-secondary)}
|
|
7311
7400
|
/* The first and last rows follow the card's corners, for their pressed background and focus ring. */
|
|
7312
7401
|
.kjun-list-panel > .kjun-list,.kjun-list-panel > .kjun-list > .kjun-list-row{border-radius:inherit}
|
|
7313
7402
|
.kjun-list-panel > .kjun-list > .kjun-list-row:not(:first-child){border-top-left-radius:0;border-top-right-radius:0}
|
|
@@ -7324,8 +7413,8 @@ button.kjun-avatar-group:disabled{cursor:not-allowed;opacity:var(--_kjun-state-o
|
|
|
7324
7413
|
--_kjun-list-shared-column:0px;
|
|
7325
7414
|
--_kjun-list-title-line:var(--_kjun-type-label-line);
|
|
7326
7415
|
--_kjun-list-band:calc(var(--_kjun-list-title-line) + var(--_kjun-extension-list-description-gap) + var(--_kjun-type-caption-line));
|
|
7327
|
-
--_kjun-list-padding-y:var(--_kjun-extension-list-padding);--_kjun-list-padding-x:var(--_kjun-extension-list-padding);
|
|
7328
|
-
--_kjun-list-actions-padding:var(--_kjun-extension-list-actions-padding);
|
|
7416
|
+
--_kjun-list-padding-y:var(--_kjun-extension-list-padding);--_kjun-list-padding-x:var(--_kjun-list-inset,var(--_kjun-extension-list-padding));
|
|
7417
|
+
--_kjun-list-actions-padding:var(--_kjun-list-inset,var(--_kjun-extension-list-actions-padding));
|
|
7329
7418
|
--_kjun-list-minimum-height:var(--_kjun-extension-list-minimum-height);--_kjun-list-gap:var(--_kjun-extension-list-gap);
|
|
7330
7419
|
/* The least a leading square or a switch keeps to the row's top and bottom edge when it reaches into the padding. */
|
|
7331
7420
|
--_kjun-list-bleed-limit:calc(var(--_kjun-extension-list-minimum-inset) - var(--_kjun-list-padding-y));
|
|
@@ -7345,7 +7434,7 @@ button.kjun-avatar-group:disabled{cursor:not-allowed;opacity:var(--_kjun-state-o
|
|
|
7345
7434
|
.kjun-list-row[data-leading]{--_kjun-list-column:max(var(--_kjun-list-leading-width),var(--_kjun-list-shared-column,0px))}
|
|
7346
7435
|
/* Dividers start where the text does, after the icon or custom leading column. */
|
|
7347
7436
|
.kjun-list-row[data-leading]{--_kjun-list-divider-inset:calc(var(--_kjun-list-padding-x) + var(--_kjun-list-column) + var(--_kjun-list-gap))}
|
|
7348
|
-
.kjun-list-row:not(:last-child)::after,.kjun-list-item:not(:last-child)::after{content:"";position:absolute;inset-inline:var(--_kjun-list-divider-inset,var(--_kjun-extension-list-padding)) 0;bottom:0;height:var(--_kjun-border-default-width);background:var(--_kjun-color-divider);pointer-events:none}
|
|
7437
|
+
.kjun-list-row:not(:last-child)::after,.kjun-list-item:not(:last-child)::after{content:"";position:absolute;inset-inline:var(--_kjun-list-divider-inset,var(--_kjun-list-inset,var(--_kjun-extension-list-padding))) 0;bottom:0;height:var(--_kjun-border-default-width);background:var(--_kjun-color-divider);pointer-events:none}
|
|
7349
7438
|
.kjun-list[data-divider=false]>:is(.kjun-list-row,.kjun-list-item)::after{content:none}
|
|
7350
7439
|
.kjun-list-main{display:flex;align-items:center;gap:var(--_kjun-list-gap);flex:1;min-width:0;min-height:var(--_kjun-list-minimum-height);padding:var(--_kjun-list-padding-y) var(--_kjun-list-padding-x);text-align:start;color:inherit;text-decoration:none;background:transparent;border:0;font:inherit;-webkit-tap-highlight-color:transparent}
|
|
7351
7440
|
/* The whole row (its actions too) takes the hover and pressed fill, so a row with buttons never reads as two parts.
|
|
@@ -7417,7 +7506,7 @@ button.kjun-avatar-group:disabled{cursor:not-allowed;opacity:var(--_kjun-state-o
|
|
|
7417
7506
|
.kjun-list-row[data-reordering] .kjun-list-reorder>[data-reorder=handle]{cursor:grabbing}
|
|
7418
7507
|
/* A disabled row disables its actions too, so the row never reads as partly available. */
|
|
7419
7508
|
.kjun-list-actions[data-disabled]{opacity:var(--_kjun-state-opacity-disabled)}
|
|
7420
|
-
.kjun-list-item{padding:var(--_kjun-extension-list-padding);position:relative;min-width:0}
|
|
7509
|
+
.kjun-list-item{padding:var(--_kjun-extension-list-padding) var(--_kjun-list-inset,var(--_kjun-extension-list-padding));position:relative;min-width:0}
|
|
7421
7510
|
/* A busy row (its last press still being handled) ignores presses; a switch row draws a spinner in its thumb. */
|
|
7422
7511
|
.kjun-list-main[aria-busy=true]{cursor:progress}
|
|
7423
7512
|
/* An expandable row: the head is the button and its content opens under it inside the same row, from the line the
|
|
@@ -7495,13 +7584,13 @@ button.kjun-avatar-group:disabled{cursor:not-allowed;opacity:var(--_kjun-state-o
|
|
|
7495
7584
|
/* In place of rows: loading content (a row skeleton, which brings its own row inset) or the empty note. */
|
|
7496
7585
|
.kjun-list-loading{min-width:0}
|
|
7497
7586
|
/* The empty note stays lighter than the labels and rows around it: one row tall, in the secondary body type. */
|
|
7498
|
-
.kjun-list-empty{display:flex;flex-direction:column;justify-content:center;min-height:var(--_kjun-extension-list-minimum-height);padding-inline:var(--_kjun-extension-list-padding)}
|
|
7587
|
+
.kjun-list-empty{display:flex;flex-direction:column;justify-content:center;min-height:var(--_kjun-extension-list-minimum-height);padding-inline:var(--_kjun-list-inset,var(--_kjun-extension-list-padding))}
|
|
7499
7588
|
.kjun-list-empty[data-density=compact]{min-height:var(--_kjun-extension-list-compact-minimum-height)}
|
|
7500
7589
|
.kjun-list-empty .kjun-empty{padding-block:var(--_kjun-extension-list-compact-padding-y)}
|
|
7501
7590
|
.kjun-list-empty[data-density=compact] .kjun-empty{padding-block:0}
|
|
7502
7591
|
.kjun-list-empty .kjun-empty-title{font-size:var(--_kjun-type-body-size);line-height:var(--_kjun-type-body-line);font-weight:var(--_kjun-type-body-weight);letter-spacing:var(--_kjun-type-body-tracking);color:var(--_kjun-color-text-secondary)}
|
|
7503
7592
|
|
|
7504
|
-
.kjun-list-footer{padding:var(--_kjun-extension-list-footer-gap) var(--_kjun-extension-list-padding) var(--_kjun-extension-list-padding);font-size:var(--_kjun-type-caption-size);line-height:var(--_kjun-type-caption-line);font-weight:var(--_kjun-type-caption-weight);letter-spacing:var(--_kjun-type-caption-tracking);color:var(--_kjun-color-text-tertiary);word-break:keep-all;overflow-wrap:anywhere}
|
|
7593
|
+
.kjun-list-footer{padding:var(--_kjun-extension-list-footer-gap) var(--_kjun-list-inset,var(--_kjun-extension-list-padding)) var(--_kjun-extension-list-padding);font-size:var(--_kjun-type-caption-size);line-height:var(--_kjun-type-caption-line);font-weight:var(--_kjun-type-caption-weight);letter-spacing:var(--_kjun-type-caption-tracking);color:var(--_kjun-color-text-tertiary);word-break:keep-all;overflow-wrap:anywhere}
|
|
7505
7594
|
.kjun-list-section[data-outside] > .kjun-list-footer{padding-bottom:0}
|
|
7506
7595
|
/* The reorder note and the footer stack 8px apart, like Native: only the last of them keeps the bottom inset. */
|
|
7507
7596
|
.kjun-list-footer:has(+ .kjun-list-footer){padding-bottom:0}
|
|
@@ -7681,7 +7770,7 @@ button.kjun-avatar-group:disabled{cursor:not-allowed;opacity:var(--_kjun-state-o
|
|
|
7681
7770
|
[data-variant="underline"] :has(> .kjun-tab[aria-selected="true"]:is([aria-disabled="true"], :disabled)) ~ .kjun-tab-indicator { background: var(--_kjun-color-text-disabled); }
|
|
7682
7771
|
.kjun-tabs-track .kjun-tab { z-index: 1; background: transparent !important; }
|
|
7683
7772
|
.kjun-tabs-track .kjun-tab::after { display: none; }
|
|
7684
|
-
.kjun-tabs[data-variant="pills"] .kjun-tab { transition: background-color var(--_kjun-motion-control) var(--_kjun-ease-out), color var(--_kjun-motion-control) var(--_kjun-ease-out); }
|
|
7773
|
+
.kjun-tabs[data-variant="pills"] > .kjun-tabs-header .kjun-tab { transition: background-color var(--_kjun-motion-control) var(--_kjun-ease-out), color var(--_kjun-motion-control) var(--_kjun-ease-out); }
|
|
7685
7774
|
.kjun-bottom-navigation > a::before, .kjun-floating-navigation > a { transition: background-color var(--_kjun-motion-control) var(--_kjun-ease-out); }
|
|
7686
7775
|
.kjun-accordion-trigger svg { transition: transform var(--_kjun-motion-collapse) var(--_kjun-ease-out); }
|
|
7687
7776
|
.kjun-motion-collapse { overflow: hidden; }
|
|
@@ -7710,7 +7799,7 @@ button.kjun-avatar-group:disabled{cursor:not-allowed;opacity:var(--_kjun-state-o
|
|
|
7710
7799
|
@keyframes kjun-tooltip-in { from { opacity: 0; } to { opacity: 1; } }
|
|
7711
7800
|
@keyframes kjun-tooltip-out { from { opacity: 1; } to { opacity: 0; } }
|
|
7712
7801
|
@media (prefers-reduced-motion: reduce) {
|
|
7713
|
-
.kjun-tab-indicator[data-animate="true"], .kjun-tabs[data-variant="pills"] .kjun-tab, .kjun-accordion-trigger svg,
|
|
7802
|
+
.kjun-tab-indicator[data-animate="true"], .kjun-tabs[data-variant="pills"] > .kjun-tabs-header .kjun-tab, .kjun-accordion-trigger svg,
|
|
7714
7803
|
.kjun-bottom-navigation > a::before, .kjun-floating-navigation > a { transition: none; }
|
|
7715
7804
|
.kjun-scope[data-motion], .kjun-scope[data-motion]::before, .kjun-scope[data-motion] .kjun-modal, .kjun-scope[data-motion] .kjun-drawer { transition: none !important; }
|
|
7716
7805
|
.kjun-tooltip[data-entering], .kjun-tooltip[data-exiting] { animation-duration: 0s; }
|
|
@@ -8590,6 +8679,14 @@ fieldset:is([data-kjun-stack], [data-kjun-inline])[data-padding] { padding: var(
|
|
|
8590
8679
|
.kjun-split-pane-second {
|
|
8591
8680
|
flex: 1 1 0;
|
|
8592
8681
|
}
|
|
8682
|
+
/* secondHidden: the first pane takes the whole room; the handle and the second pane stay in the tree, undrawn. */
|
|
8683
|
+
.kjun-split-pane[data-second-hidden] > .kjun-split-pane-first {
|
|
8684
|
+
flex: 1 1 0;
|
|
8685
|
+
}
|
|
8686
|
+
.kjun-split-pane[data-second-hidden] > .kjun-split-pane-handle,
|
|
8687
|
+
.kjun-split-pane[data-second-hidden] > .kjun-split-pane-second {
|
|
8688
|
+
display: none;
|
|
8689
|
+
}
|
|
8593
8690
|
.kjun-split-pane-handle {
|
|
8594
8691
|
flex: 0 0 var(--_kjun-split-pane-hit);
|
|
8595
8692
|
display: flex;
|
|
@@ -9309,7 +9406,10 @@ fieldset:is([data-kjun-stack], [data-kjun-inline])[data-padding] { padding: var(
|
|
|
9309
9406
|
padding: 0;
|
|
9310
9407
|
list-style: none;
|
|
9311
9408
|
}
|
|
9312
|
-
|
|
9409
|
+
/* The connector into a step takes the brand colour once both of its ends are reached, so steps finished out of order
|
|
9410
|
+
never run a coloured line into or out of an upcoming one. */
|
|
9411
|
+
.kjun-steps-item:is([data-status="complete"], [data-status="current"], [data-status="error"])
|
|
9412
|
+
+ .kjun-steps-item:is([data-status="complete"], [data-status="current"], [data-status="error"]) {
|
|
9313
9413
|
--_kjun-steps-line: var(--_kjun-color-brand);
|
|
9314
9414
|
}
|
|
9315
9415
|
|
|
@@ -9647,7 +9747,7 @@ fieldset:is([data-kjun-stack], [data-kjun-inline])[data-padding] { padding: var(
|
|
|
9647
9747
|
font-family: var(--_kjun-font-numeric);
|
|
9648
9748
|
font-variant-numeric: tabular-nums;
|
|
9649
9749
|
}
|
|
9650
|
-
/* The line belongs to the step above and takes the colour
|
|
9750
|
+
/* The line belongs to the step above and takes the brand colour once that step and the one below are both reached. */
|
|
9651
9751
|
.kjun-steps[data-orientation="vertical"] .kjun-steps-item:not(:last-child)::after {
|
|
9652
9752
|
content: "";
|
|
9653
9753
|
position: absolute;
|
|
@@ -9658,7 +9758,7 @@ fieldset:is([data-kjun-stack], [data-kjun-inline])[data-padding] { padding: var(
|
|
|
9658
9758
|
width: var(--_kjun-extension-steps-connector);
|
|
9659
9759
|
background: var(--_kjun-color-secondary);
|
|
9660
9760
|
}
|
|
9661
|
-
.kjun-steps[data-orientation="vertical"] .kjun-steps-item:has(+ .kjun-steps-item:is([data-status="complete"], [data-status="current"], [data-status="error"]))::after {
|
|
9761
|
+
.kjun-steps[data-orientation="vertical"] .kjun-steps-item:is([data-status="complete"], [data-status="current"], [data-status="error"]):has(+ .kjun-steps-item:is([data-status="complete"], [data-status="current"], [data-status="error"]))::after {
|
|
9662
9762
|
background: var(--_kjun-color-brand);
|
|
9663
9763
|
}
|
|
9664
9764
|
/* A pickable row shows its button; the static copy stays hidden at every width. */
|
|
@@ -40,8 +40,10 @@ export interface KjunBottomNavigationProps {
|
|
|
40
40
|
iconStyle?: NavigationIconStyle;
|
|
41
41
|
/** Shows each label under its icon (default true); false draws icons alone on a lower bar, each label staying the destination's accessible name. Destinations without icons always show their labels. */
|
|
42
42
|
showLabels?: boolean;
|
|
43
|
+
/** Pins the bar to the viewport's bottom edge while the page scrolls (default false). It keeps its own room at the end of the page flow, so the last content is never under it and nothing is measured; give it the page's end, under a parent with overflow visible. */
|
|
44
|
+
sticky?: boolean;
|
|
43
45
|
}
|
|
44
|
-
export declare function KjunBottomNavigation({ items, value, ariaLabel, safeArea, keyboardVisible, hideOnKeyboard, onNavigate, onReselect, surface, iconStyle, showLabels }: KjunBottomNavigationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
46
|
+
export declare function KjunBottomNavigation({ items, value, ariaLabel, safeArea, keyboardVisible, hideOnKeyboard, onNavigate, onReselect, surface, iconStyle, showLabels, sticky }: KjunBottomNavigationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
45
47
|
export interface KjunFloatingNavigationProps {
|
|
46
48
|
items: NavigationDestination[];
|
|
47
49
|
value: string;
|
|
@@ -53,9 +55,11 @@ export interface KjunFloatingNavigationProps {
|
|
|
53
55
|
onNavigate?: Navigate;
|
|
54
56
|
/** The current destination was pressed again, e.g. to scroll its page back to the top. */
|
|
55
57
|
onReselect?: Navigate;
|
|
58
|
+
/** Pins the bar to the viewport's bottom edge while the page scrolls (default false). It keeps its own room at the end of the page flow, so the last content is never under it and nothing is measured; give it the page's end, under a parent with overflow visible. */
|
|
59
|
+
sticky?: boolean;
|
|
56
60
|
}
|
|
57
61
|
/** A capsule detached from the screen edge. Destinations with an icon show only the icon; the label stays their accessible name. */
|
|
58
|
-
export declare function KjunFloatingNavigation({ items, value, ariaLabel, safeArea, keyboardVisible, hideOnKeyboard, onNavigate, onReselect }: KjunFloatingNavigationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
62
|
+
export declare function KjunFloatingNavigation({ items, value, ariaLabel, safeArea, keyboardVisible, hideOnKeyboard, onNavigate, onReselect, sticky }: KjunFloatingNavigationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
59
63
|
export interface KjunBottomActionBarProps {
|
|
60
64
|
description?: string;
|
|
61
65
|
children: ReactNode;
|
|
@@ -69,5 +73,7 @@ export interface KjunBottomActionBarProps {
|
|
|
69
73
|
variant?: "docked" | "floating";
|
|
70
74
|
/** Names the bar as a region (landmark) that screen readers can jump to, e.g. "Order summary". */
|
|
71
75
|
ariaLabel?: string;
|
|
76
|
+
/** Pins the bar to the viewport's bottom edge while the page scrolls (default false). It keeps its own room at the end of the page flow, so the last content is never under it and nothing is measured; give it the page's end, under a parent with overflow visible. */
|
|
77
|
+
sticky?: boolean;
|
|
72
78
|
}
|
|
73
|
-
export declare function KjunBottomActionBar({ description, children, safeArea, keyboardVisible, hideOnKeyboard, surface, variant, ariaLabel }: KjunBottomActionBarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
79
|
+
export declare function KjunBottomActionBar({ description, children, safeArea, keyboardVisible, hideOnKeyboard, surface, variant, ariaLabel, sticky }: KjunBottomActionBarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -40,8 +40,10 @@ export interface KjunBottomNavigationProps {
|
|
|
40
40
|
iconStyle?: NavigationIconStyle;
|
|
41
41
|
/** Shows each label under its icon (default true); false draws icons alone on a lower bar, each label staying the destination's accessible name. Destinations without icons always show their labels. */
|
|
42
42
|
showLabels?: boolean;
|
|
43
|
+
/** Pins the bar to the viewport's bottom edge while the page scrolls (default false). It keeps its own room at the end of the page flow, so the last content is never under it and nothing is measured; give it the page's end, under a parent with overflow visible. */
|
|
44
|
+
sticky?: boolean;
|
|
43
45
|
}
|
|
44
|
-
export declare function KjunBottomNavigation({ items, value, ariaLabel, safeArea, keyboardVisible, hideOnKeyboard, onNavigate, onReselect, surface, iconStyle, showLabels }: KjunBottomNavigationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
46
|
+
export declare function KjunBottomNavigation({ items, value, ariaLabel, safeArea, keyboardVisible, hideOnKeyboard, onNavigate, onReselect, surface, iconStyle, showLabels, sticky }: KjunBottomNavigationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
45
47
|
export interface KjunFloatingNavigationProps {
|
|
46
48
|
items: NavigationDestination[];
|
|
47
49
|
value: string;
|
|
@@ -53,9 +55,11 @@ export interface KjunFloatingNavigationProps {
|
|
|
53
55
|
onNavigate?: Navigate;
|
|
54
56
|
/** The current destination was pressed again, e.g. to scroll its page back to the top. */
|
|
55
57
|
onReselect?: Navigate;
|
|
58
|
+
/** Pins the bar to the viewport's bottom edge while the page scrolls (default false). It keeps its own room at the end of the page flow, so the last content is never under it and nothing is measured; give it the page's end, under a parent with overflow visible. */
|
|
59
|
+
sticky?: boolean;
|
|
56
60
|
}
|
|
57
61
|
/** A capsule detached from the screen edge. Destinations with an icon show only the icon; the label stays their accessible name. */
|
|
58
|
-
export declare function KjunFloatingNavigation({ items, value, ariaLabel, safeArea, keyboardVisible, hideOnKeyboard, onNavigate, onReselect }: KjunFloatingNavigationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
62
|
+
export declare function KjunFloatingNavigation({ items, value, ariaLabel, safeArea, keyboardVisible, hideOnKeyboard, onNavigate, onReselect, sticky }: KjunFloatingNavigationProps): import("react/jsx-runtime").JSX.Element | null;
|
|
59
63
|
export interface KjunBottomActionBarProps {
|
|
60
64
|
description?: string;
|
|
61
65
|
children: ReactNode;
|
|
@@ -69,5 +73,7 @@ export interface KjunBottomActionBarProps {
|
|
|
69
73
|
variant?: "docked" | "floating";
|
|
70
74
|
/** Names the bar as a region (landmark) that screen readers can jump to, e.g. "Order summary". */
|
|
71
75
|
ariaLabel?: string;
|
|
76
|
+
/** Pins the bar to the viewport's bottom edge while the page scrolls (default false). It keeps its own room at the end of the page flow, so the last content is never under it and nothing is measured; give it the page's end, under a parent with overflow visible. */
|
|
77
|
+
sticky?: boolean;
|
|
72
78
|
}
|
|
73
|
-
export declare function KjunBottomActionBar({ description, children, safeArea, keyboardVisible, hideOnKeyboard, surface, variant, ariaLabel }: KjunBottomActionBarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
79
|
+
export declare function KjunBottomActionBar({ description, children, safeArea, keyboardVisible, hideOnKeyboard, surface, variant, ariaLabel, sticky }: KjunBottomActionBarProps): import("react/jsx-runtime").JSX.Element | null;
|
|
@@ -14,7 +14,8 @@ export declare function KjunIcon({ name, size, spin, filled, ariaLabel, classNam
|
|
|
14
14
|
export interface KjunButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size" | "prefix"> {
|
|
15
15
|
variant?: ButtonVariant;
|
|
16
16
|
size?: ButtonSize;
|
|
17
|
-
/** "circle" makes
|
|
17
|
+
/** "circle" makes a button round: as wide as its height with a full radius. It takes an icon alone or a short label alone
|
|
18
|
+
* (one or two characters, such as a day number); a label with an icon keeps its width. "pill" rounds a button with a label
|
|
18
19
|
* fully and keeps its width, for a button inside a rounded bar. */
|
|
19
20
|
shape?: "default" | "circle" | "pill";
|
|
20
21
|
loading?: boolean;
|
|
@@ -14,7 +14,8 @@ export declare function KjunIcon({ name, size, spin, filled, ariaLabel, classNam
|
|
|
14
14
|
export interface KjunButtonProps extends Omit<ButtonHTMLAttributes<HTMLButtonElement>, "size" | "prefix"> {
|
|
15
15
|
variant?: ButtonVariant;
|
|
16
16
|
size?: ButtonSize;
|
|
17
|
-
/** "circle" makes
|
|
17
|
+
/** "circle" makes a button round: as wide as its height with a full radius. It takes an icon alone or a short label alone
|
|
18
|
+
* (one or two characters, such as a day number); a label with an icon keeps its width. "pill" rounds a button with a label
|
|
18
19
|
* fully and keeps its width, for a button inside a rounded bar. */
|
|
19
20
|
shape?: "default" | "circle" | "pill";
|
|
20
21
|
loading?: boolean;
|
|
@@ -39,7 +39,7 @@ export interface KjunSpinnerProps {
|
|
|
39
39
|
text?: string;
|
|
40
40
|
}
|
|
41
41
|
export declare function KjunSpinner({ size, text }: KjunSpinnerProps): import("react/jsx-runtime").JSX.Element;
|
|
42
|
-
export interface KjunAlertProps {
|
|
42
|
+
export interface KjunAlertProps extends Omit<HTMLAttributes<HTMLDivElement>, "title" | "children" | "role"> {
|
|
43
43
|
type?: "info" | "success" | "warning" | "danger" | "error";
|
|
44
44
|
variant?: SemanticTone;
|
|
45
45
|
size?: "sm" | "md" | "lg";
|
|
@@ -56,7 +56,9 @@ export interface KjunAlertProps {
|
|
|
56
56
|
className?: string;
|
|
57
57
|
onClose?: () => void;
|
|
58
58
|
}
|
|
59
|
-
|
|
59
|
+
/** Other HTML attributes (id, style, tabIndex, aria-*, data-*) and the ref go to the root, so a page can point at the alert or move focus to it. */
|
|
60
|
+
export declare const KjunAlert: import("react").ForwardRefExoticComponent<KjunAlertProps & import("react").RefAttributes<HTMLDivElement>>;
|
|
61
|
+
export type KjunProgressVariant = SemanticTone | "neutral";
|
|
60
62
|
export interface KjunProgressProps {
|
|
61
63
|
/** null is missing data; omission keeps the zero default. */
|
|
62
64
|
value?: number | null;
|
|
@@ -64,7 +66,8 @@ export interface KjunProgressProps {
|
|
|
64
66
|
indeterminate?: boolean;
|
|
65
67
|
max?: number;
|
|
66
68
|
size?: "sm" | "md" | "lg";
|
|
67
|
-
|
|
69
|
+
/** neutral draws the fill in the tertiary text colour, for a stale or reference reading that should not call for attention. */
|
|
70
|
+
variant?: KjunProgressVariant;
|
|
68
71
|
showLabel?: boolean;
|
|
69
72
|
/** Shown and read in place of the rounded percent while the value is known, e.g. "37.4%" or "3.2 / 8 GB". */
|
|
70
73
|
valueText?: string;
|
|
@@ -73,10 +76,12 @@ export interface KjunProgressProps {
|
|
|
73
76
|
/** Read by screen readers as the bar's description, e.g. "오늘 기준 53%". Put visible wording in subLabel. */
|
|
74
77
|
markerLabel?: string;
|
|
75
78
|
label?: ReactNode;
|
|
79
|
+
/** Names the bar for screen readers without showing text, e.g. "업로드 진행률"; takes the place of a label's name. */
|
|
80
|
+
ariaLabel?: string;
|
|
76
81
|
subLabel?: ReactNode;
|
|
77
82
|
shape?: "bar" | "circle";
|
|
78
83
|
}
|
|
79
|
-
export declare function KjunProgress({ value, indeterminate, max, size, variant, showLabel, valueText, marker, markerLabel, label, subLabel, shape, }: KjunProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
84
|
+
export declare function KjunProgress({ value, indeterminate, max, size, variant, showLabel, valueText, marker, markerLabel, label, ariaLabel, subLabel, shape, }: KjunProgressProps): import("react/jsx-runtime").JSX.Element;
|
|
80
85
|
export interface KjunSkeletonProps {
|
|
81
86
|
/** "line" is one line of text: a bar in the line box of `role`, or of the surrounding text when no role is given. */
|
|
82
87
|
type?: "text" | "line" | "avatar" | "card" | "table" | "stat" | "block";
|