@igne-agency/react-web-ui 0.5.0 → 0.6.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/accordion/accordion.css +21 -21
- package/dist/components/accordion/accordion.d.ts +17 -4
- package/dist/components/accordion/accordion.js +83 -36
- package/dist/components/accordion/accordion.module.js +6 -6
- package/dist/components/attachment-tile/attachment-preview.d.ts +56 -13
- package/dist/components/attachment-tile/attachment-preview.js +388 -119
- package/dist/components/attachment-tile/attachment-tile.css +31 -25
- package/dist/components/attachment-tile/attachment-tile.d.ts +32 -10
- package/dist/components/attachment-tile/attachment-tile.js +160 -43
- package/dist/components/attachment-tile/attachment-tile.module.js +8 -8
- package/dist/components/attachment-tile/index.d.ts +1 -1
- package/dist/components/avatar/avatar.css +9 -9
- package/dist/components/avatar/avatar.d.ts +50 -5
- package/dist/components/avatar/avatar.js +178 -64
- package/dist/components/avatar/avatar.module.js +3 -3
- package/dist/components/avatar-group/avatar-group-context.d.ts +2 -4
- package/dist/components/avatar-group/avatar-group-context.js +2 -2
- package/dist/components/avatar-group/avatar-group.css +26 -20
- package/dist/components/avatar-group/avatar-group.d.ts +85 -27
- package/dist/components/avatar-group/avatar-group.js +400 -246
- package/dist/components/avatar-group/avatar-group.module.js +8 -8
- package/dist/components/breadcrumbs/breadcrumbs.css +12 -12
- package/dist/components/breadcrumbs/breadcrumbs.d.ts +69 -23
- package/dist/components/breadcrumbs/breadcrumbs.js +299 -248
- package/dist/components/breadcrumbs/breadcrumbs.module.js +8 -8
- package/dist/components/button/button.css +29 -31
- package/dist/components/button/button.d.ts +20 -16
- package/dist/components/button/button.js +140 -145
- package/dist/components/button/button.module.js +1 -1
- package/dist/components/button/index.js +1 -1
- package/dist/components/checkbox-field/checkbox-field.js +63 -49
- package/dist/components/checkbox-field/checkbox.css +105 -56
- package/dist/components/checkbox-field/checkbox.d.ts +3 -2
- package/dist/components/checkbox-field/checkbox.js +12 -9
- package/dist/components/checkbox-field/checkbox.module.js +4 -4
- package/dist/components/checkbox-group-field/checkbox-group-field.js +78 -72
- package/dist/components/checkbox-group-field/checkbox-group.css +14 -10
- package/dist/components/checkbox-group-field/checkbox-group.d.ts +2 -2
- package/dist/components/checkbox-group-field/checkbox-group.js +2 -2
- package/dist/components/checkbox-group-field/checkbox-group.module.js +2 -2
- package/dist/components/collapsible/collapsible.css +20 -20
- package/dist/components/collapsible/collapsible.d.ts +17 -4
- package/dist/components/collapsible/collapsible.js +83 -36
- package/dist/components/collapsible/collapsible.module.js +5 -5
- package/dist/components/combobox-field/combobox-field.js +206 -158
- package/dist/components/combobox-field/combobox.css +492 -277
- package/dist/components/combobox-field/combobox.d.ts +148 -39
- package/dist/components/combobox-field/combobox.js +506 -206
- package/dist/components/combobox-field/combobox.module.js +21 -21
- package/dist/components/combobox-field/value-state-view.css +5 -5
- package/dist/components/combobox-field/value-state-view.module.js +4 -4
- package/dist/components/composer/composer-attachments.d.ts +30 -11
- package/dist/components/composer/composer-attachments.js +45 -40
- package/dist/components/composer/composer-editor.css +40 -35
- package/dist/components/composer/composer-editor.d.ts +14 -4
- package/dist/components/composer/composer-editor.js +134 -44
- package/dist/components/composer/composer-editor.module.js +5 -5
- package/dist/components/composer/composer.css +22 -22
- package/dist/components/composer/composer.d.ts +13 -2
- package/dist/components/composer/composer.js +78 -63
- package/dist/components/composer/composer.module.js +5 -5
- package/dist/components/composer/index.d.ts +2 -2
- package/dist/components/composer/mention-text.css +5 -5
- package/dist/components/composer/mention-text.module.js +1 -1
- package/dist/components/confirm-dialog/confirm-dialog.css +29 -29
- package/dist/components/confirm-dialog/confirm-dialog.d.ts +57 -3
- package/dist/components/confirm-dialog/confirm-dialog.js +266 -108
- package/dist/components/confirm-dialog/confirm-dialog.module.js +5 -5
- package/dist/components/conversation/conversation.css +52 -52
- package/dist/components/conversation/conversation.d.ts +43 -18
- package/dist/components/conversation/conversation.js +120 -78
- package/dist/components/conversation/conversation.module.js +15 -15
- package/dist/components/date-field/date-field.d.ts +1 -1
- package/dist/components/date-field/date-field.js +202 -100
- package/dist/components/date-field/date-input.d.ts +73 -37
- package/dist/components/date-field/date-input.js +72 -45
- package/dist/components/date-field/index.d.ts +1 -1
- package/dist/components/date-range-field/date-range-field.d.ts +1 -1
- package/dist/components/date-range-field/date-range-field.js +219 -107
- package/dist/components/date-range-field/date-range-input.d.ts +84 -40
- package/dist/components/date-range-field/date-range-input.js +83 -48
- package/dist/components/dialog/dialog.css +32 -32
- package/dist/components/dialog/dialog.d.ts +8 -7
- package/dist/components/dialog/dialog.js +8 -26
- package/dist/components/dialog/dialog.module.js +6 -6
- package/dist/components/divider/divider.css +6 -6
- package/dist/components/divider/divider.d.ts +36 -2
- package/dist/components/divider/divider.js +195 -29
- package/dist/components/divider/divider.module.js +3 -3
- package/dist/components/drawer/drawer.css +55 -56
- package/dist/components/drawer/drawer.d.ts +8 -7
- package/dist/components/drawer/drawer.js +8 -26
- package/dist/components/drawer/drawer.module.js +6 -6
- package/dist/components/field/field.css +34 -24
- package/dist/components/field/field.d.ts +60 -37
- package/dist/components/field/field.js +242 -157
- package/dist/components/field/field.module.js +12 -10
- package/dist/components/field/input-parts.d.ts +11 -13
- package/dist/components/field/input-parts.js +23 -42
- package/dist/components/field-placeholder/field-placeholder.css +6 -6
- package/dist/components/field-placeholder/field-placeholder.module.js +4 -4
- package/dist/components/fieldset/field-group.d.ts +1 -1
- package/dist/components/fieldset/field-group.js +48 -42
- package/dist/components/fieldset/fieldset-root.d.ts +1 -1
- package/dist/components/fieldset/fieldset-root.js +19 -17
- package/dist/components/fieldset/fieldset.d.ts +2 -2
- package/dist/components/fieldset/fieldset.js +2 -2
- package/dist/components/file-field/file-field.css +126 -60
- package/dist/components/file-field/file-field.js +201 -109
- package/dist/components/file-field/file-field.module.js +4 -4
- package/dist/components/file-field/file-input.d.ts +66 -40
- package/dist/components/file-field/file-input.js +188 -132
- package/dist/components/filter-bar/filter-bar.css +8 -8
- package/dist/components/filter-bar/filter-bar.d.ts +12 -3
- package/dist/components/filter-bar/filter-bar.js +23 -25
- package/dist/components/filter-bar/filter-bar.module.js +5 -5
- package/dist/components/form/form.d.ts +19 -7
- package/dist/components/form/form.js +80 -29
- package/dist/components/icon/icon.css +2 -2
- package/dist/components/icon/icon.module.js +1 -1
- package/dist/components/link/link.css +6 -5
- package/dist/components/link/link.module.js +1 -1
- package/dist/components/menu/menu.css +52 -47
- package/dist/components/menu/menu.d.ts +32 -25
- package/dist/components/menu/menu.js +75 -124
- package/dist/components/menu/menu.module.js +8 -8
- package/dist/components/nav/nav-context.d.ts +1 -1
- package/dist/components/nav/nav-item-view.d.ts +10 -13
- package/dist/components/nav/nav-item-view.js +42 -54
- package/dist/components/nav/nav.css +150 -119
- package/dist/components/nav/nav.d.ts +61 -17
- package/dist/components/nav/nav.js +271 -176
- package/dist/components/nav/nav.module.js +17 -15
- package/dist/components/number-field/number-field.css +153 -64
- package/dist/components/number-field/number-field.d.ts +2 -2
- package/dist/components/number-field/number-field.js +112 -91
- package/dist/components/number-field/number-field.module.js +6 -6
- package/dist/components/number-field/number-input.d.ts +43 -23
- package/dist/components/number-field/number-input.js +179 -125
- package/dist/components/otp-field/otp-field.css +153 -60
- package/dist/components/otp-field/otp-field.d.ts +2 -2
- package/dist/components/otp-field/otp-field.js +62 -46
- package/dist/components/otp-field/otp-field.module.js +4 -4
- package/dist/components/otp-field/otp-input.d.ts +8 -6
- package/dist/components/otp-field/otp-input.js +92 -92
- package/dist/components/pagination/pagination.d.ts +46 -15
- package/dist/components/pagination/pagination.js +217 -224
- package/dist/components/password-field/password-field.css +23 -23
- package/dist/components/password-field/password-field.js +107 -85
- package/dist/components/password-field/password-field.module.js +8 -8
- package/dist/components/password-field/password-strength.d.ts +107 -3
- package/dist/components/password-field/password-strength.js +569 -92
- package/dist/components/photo-field/photo-field.js +137 -112
- package/dist/components/photo-field/photo-input.css +67 -44
- package/dist/components/photo-field/photo-input.d.ts +59 -15
- package/dist/components/photo-field/photo-input.js +173 -86
- package/dist/components/photo-field/photo-input.module.js +10 -8
- package/dist/components/popover/popover.css +41 -41
- package/dist/components/popover/popover.d.ts +66 -25
- package/dist/components/popover/popover.js +332 -217
- package/dist/components/popover/popover.module.js +15 -19
- package/dist/components/radio-group-field/radio-group-field.js +80 -71
- package/dist/components/radio-group-field/radio-group.css +112 -60
- package/dist/components/radio-group-field/radio-group.d.ts +19 -3
- package/dist/components/radio-group-field/radio-group.js +66 -23
- package/dist/components/radio-group-field/radio-group.module.js +4 -4
- package/dist/components/segmented-control-field/segmented-control-field.d.ts +1 -1
- package/dist/components/segmented-control-field/segmented-control-field.js +111 -96
- package/dist/components/segmented-control-field/segmented-control.css +132 -79
- package/dist/components/segmented-control-field/segmented-control.d.ts +39 -15
- package/dist/components/segmented-control-field/segmented-control.js +124 -41
- package/dist/components/segmented-control-field/segmented-control.module.js +4 -4
- package/dist/components/select-field/select.css +214 -101
- package/dist/components/select-field/select.d.ts +43 -11
- package/dist/components/select-field/select.js +194 -109
- package/dist/components/select-field/select.module.js +14 -14
- package/dist/components/skeleton/skeleton.css +4 -4
- package/dist/components/skeleton/skeleton.module.js +3 -3
- package/dist/components/stale/stale.css +15 -15
- package/dist/components/stale/stale.d.ts +27 -3
- package/dist/components/stale/stale.js +147 -66
- package/dist/components/stale/stale.module.js +6 -6
- package/dist/components/status-message/status-message.css +22 -22
- package/dist/components/status-message/status-message.module.js +6 -6
- package/dist/components/switch-field/switch-field.js +77 -57
- package/dist/components/switch-field/switch.css +112 -63
- package/dist/components/switch-field/switch.d.ts +20 -3
- package/dist/components/switch-field/switch.js +70 -27
- package/dist/components/switch-field/switch.module.js +4 -4
- package/dist/components/tabs/tabs.css +32 -32
- package/dist/components/tabs/tabs.d.ts +21 -7
- package/dist/components/tabs/tabs.js +73 -14
- package/dist/components/tabs/tabs.module.js +7 -7
- package/dist/components/tag/tag.css +84 -84
- package/dist/components/tag/tag.module.js +3 -3
- package/dist/components/tag-group/tag-group.css +94 -94
- package/dist/components/tag-group/tag-group.module.js +4 -4
- package/dist/components/text-field/text-field.css +159 -82
- package/dist/components/text-field/text-field.d.ts +1 -1
- package/dist/components/text-field/text-field.js +139 -110
- package/dist/components/text-field/text-field.module.js +9 -9
- package/dist/components/text-field/text-input.d.ts +81 -45
- package/dist/components/text-field/text-input.js +366 -217
- package/dist/components/textarea-field/textarea-field.css +7 -2
- package/dist/components/textarea-field/textarea-field.js +72 -56
- package/dist/components/textarea-field/textarea-field.module.js +2 -2
- package/dist/components/time-field/time-field.js +153 -60
- package/dist/components/time-field/time-input.d.ts +21 -10
- package/dist/components/time-field/time-input.js +22 -11
- package/dist/components/toast/toast-provider.css +34 -31
- package/dist/components/toast/toast-provider.d.ts +63 -14
- package/dist/components/toast/toast-provider.js +174 -111
- package/dist/components/toast/toast-provider.module.js +7 -7
- package/dist/components/toggle-group-field/toggle-group-field.d.ts +1 -1
- package/dist/components/toggle-group-field/toggle-group-field.js +95 -89
- package/dist/components/toggle-group-field/toggle-group.css +117 -67
- package/dist/components/toggle-group-field/toggle-group.d.ts +2 -2
- package/dist/components/toggle-group-field/toggle-group.js +2 -2
- package/dist/components/toggle-group-field/toggle-group.module.js +2 -2
- package/dist/components/tooltip/tooltip.css +4 -4
- package/dist/components/tooltip/tooltip.module.js +1 -1
- package/dist/data-table/data-table-content.js +6 -5
- package/dist/data-table/data-table-parts.d.ts +41 -13
- package/dist/data-table/data-table-parts.js +213 -172
- package/dist/data-table/data-table-selection.d.ts +105 -3
- package/dist/data-table/data-table-selection.js +654 -145
- package/dist/data-table/data-table.css +125 -128
- package/dist/data-table/data-table.d.ts +21 -26
- package/dist/data-table/data-table.js +20 -23
- package/dist/data-table/data-table.module.js +32 -34
- package/dist/data-table/index.d.ts +2 -2
- package/dist/index.js +3 -3
- package/dist/lib/calendar/calendar-navigation.d.ts +39 -5
- package/dist/lib/calendar/calendar-navigation.js +185 -118
- package/dist/lib/calendar/calendar-parts.d.ts +143 -0
- package/dist/lib/calendar/calendar-parts.js +540 -0
- package/dist/lib/calendar/calendar-prefab.d.ts +52 -0
- package/dist/lib/calendar/calendar-prefab.js +311 -0
- package/dist/lib/calendar/calendar-year.d.ts +3 -1
- package/dist/lib/calendar/calendar-year.js +139 -131
- package/dist/lib/calendar/temporal.css +325 -232
- package/dist/lib/calendar/temporal.d.ts +67 -82
- package/dist/lib/calendar/temporal.js +258 -569
- package/dist/lib/calendar/temporal.module.js +38 -38
- package/dist/lib/forms/use-connected-field.d.ts +1 -1
- package/dist/lib/forms/use-connected-field.js +1 -1
- package/dist/lib/render-as.d.ts +13 -0
- package/dist/lib/render-as.js +46 -0
- package/dist/tokens.css +6 -3
- package/package.json +1 -1
- package/tokens/dark.tokens.json +6 -0
- package/tokens/sys.tokens.json +7 -0
- package/dist/components/button/close-button.d.ts +0 -16
- package/dist/components/button/close-button.js +0 -30
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { IconButton } from "../button/button.js";
|
|
2
2
|
import { useLocale } from "../locale-provider/locale-provider.js";
|
|
3
3
|
import { Select } from "../select-field/select.js";
|
|
4
4
|
import { PaginationContext, usePagination } from "./pagination-context.js";
|
|
@@ -304,73 +304,81 @@ var stepTo = (step, pageIndex, pageCount) => {
|
|
|
304
304
|
};
|
|
305
305
|
var PageStep = (t0) => {
|
|
306
306
|
const $ = c(22);
|
|
307
|
-
let children;
|
|
308
|
-
let label;
|
|
309
307
|
let onClick;
|
|
310
308
|
let props;
|
|
309
|
+
let render;
|
|
311
310
|
let step;
|
|
312
311
|
if ($[0] !== t0) {
|
|
313
|
-
({step,
|
|
312
|
+
({step, render, onClick, ...props} = t0);
|
|
314
313
|
$[0] = t0;
|
|
315
|
-
$[1] =
|
|
316
|
-
$[2] =
|
|
317
|
-
$[3] =
|
|
318
|
-
$[4] =
|
|
319
|
-
$[5] = step;
|
|
314
|
+
$[1] = onClick;
|
|
315
|
+
$[2] = props;
|
|
316
|
+
$[3] = render;
|
|
317
|
+
$[4] = step;
|
|
320
318
|
} else {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
step = $[5];
|
|
319
|
+
onClick = $[1];
|
|
320
|
+
props = $[2];
|
|
321
|
+
render = $[3];
|
|
322
|
+
step = $[4];
|
|
326
323
|
}
|
|
327
324
|
const { pageIndex, pageCount, onPageIndexChange } = usePagination();
|
|
328
325
|
let t1;
|
|
329
|
-
if ($[
|
|
326
|
+
if ($[5] !== pageCount || $[6] !== pageIndex || $[7] !== step) {
|
|
330
327
|
t1 = stepTo(step, pageIndex, pageCount);
|
|
331
|
-
$[
|
|
332
|
-
$[
|
|
333
|
-
$[
|
|
334
|
-
$[
|
|
335
|
-
} else t1 = $[
|
|
328
|
+
$[5] = pageCount;
|
|
329
|
+
$[6] = pageIndex;
|
|
330
|
+
$[7] = step;
|
|
331
|
+
$[8] = t1;
|
|
332
|
+
} else t1 = $[8];
|
|
336
333
|
const { target, unavailable } = t1;
|
|
337
334
|
const t2 = unavailable || void 0;
|
|
338
335
|
const t3 = unavailable || void 0;
|
|
339
336
|
let t4;
|
|
340
|
-
if ($[
|
|
337
|
+
if ($[9] !== onClick || $[10] !== onPageIndexChange || $[11] !== target || $[12] !== unavailable) {
|
|
341
338
|
t4 = (event) => {
|
|
342
339
|
onClick?.(event);
|
|
343
340
|
if (!unavailable) onPageIndexChange(target);
|
|
344
341
|
};
|
|
345
|
-
$[
|
|
346
|
-
$[
|
|
347
|
-
$[
|
|
348
|
-
$[
|
|
349
|
-
$[
|
|
350
|
-
} else t4 = $[
|
|
342
|
+
$[9] = onClick;
|
|
343
|
+
$[10] = onPageIndexChange;
|
|
344
|
+
$[11] = target;
|
|
345
|
+
$[12] = unavailable;
|
|
346
|
+
$[13] = t4;
|
|
347
|
+
} else t4 = $[13];
|
|
351
348
|
let t5;
|
|
352
|
-
if ($[
|
|
353
|
-
t5 =
|
|
354
|
-
|
|
349
|
+
if ($[14] !== props || $[15] !== t2 || $[16] !== t3 || $[17] !== t4) {
|
|
350
|
+
t5 = {
|
|
351
|
+
type: "button",
|
|
355
352
|
...props,
|
|
356
|
-
iconOnly: true,
|
|
357
|
-
icon: children,
|
|
358
|
-
label,
|
|
359
353
|
"aria-disabled": t2,
|
|
360
354
|
"data-disabled": t3,
|
|
361
355
|
onClick: t4
|
|
362
|
-
}
|
|
363
|
-
$[
|
|
364
|
-
$[
|
|
365
|
-
$[
|
|
366
|
-
$[
|
|
367
|
-
$[
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
356
|
+
};
|
|
357
|
+
$[14] = props;
|
|
358
|
+
$[15] = t2;
|
|
359
|
+
$[16] = t3;
|
|
360
|
+
$[17] = t4;
|
|
361
|
+
$[18] = t5;
|
|
362
|
+
} else t5 = $[18];
|
|
363
|
+
let t6;
|
|
364
|
+
if ($[19] !== render || $[20] !== t5) {
|
|
365
|
+
t6 = {
|
|
366
|
+
render,
|
|
367
|
+
props: t5
|
|
368
|
+
};
|
|
369
|
+
$[19] = render;
|
|
370
|
+
$[20] = t5;
|
|
371
|
+
$[21] = t6;
|
|
372
|
+
} else t6 = $[21];
|
|
373
|
+
return useRender(t6);
|
|
372
374
|
};
|
|
373
|
-
/**
|
|
375
|
+
/**
|
|
376
|
+
* Goes to the first page; marked `aria-disabled`, and kept in the tab order, on
|
|
377
|
+
* the first page. It renders whichever button it is given.
|
|
378
|
+
*
|
|
379
|
+
* @example
|
|
380
|
+
* <Pagination.First render={<IconButton label="First page" variant="tertiary"><FirstPageIcon /></IconButton>} />
|
|
381
|
+
*/
|
|
374
382
|
var PaginationFirst = (props) => {
|
|
375
383
|
const $ = c(2);
|
|
376
384
|
let t0;
|
|
@@ -384,7 +392,13 @@ var PaginationFirst = (props) => {
|
|
|
384
392
|
} else t0 = $[1];
|
|
385
393
|
return t0;
|
|
386
394
|
};
|
|
387
|
-
/**
|
|
395
|
+
/**
|
|
396
|
+
* Goes back a page; marked `aria-disabled`, and kept in the tab order, on the
|
|
397
|
+
* first page. It renders whichever button it is given.
|
|
398
|
+
*
|
|
399
|
+
* @example
|
|
400
|
+
* <Pagination.Previous render={<IconButton label="Previous page" variant="tertiary"><ChevronLeftIcon /></IconButton>} />
|
|
401
|
+
*/
|
|
388
402
|
var PaginationPrevious = (props) => {
|
|
389
403
|
const $ = c(2);
|
|
390
404
|
let t0;
|
|
@@ -398,7 +412,13 @@ var PaginationPrevious = (props) => {
|
|
|
398
412
|
} else t0 = $[1];
|
|
399
413
|
return t0;
|
|
400
414
|
};
|
|
401
|
-
/**
|
|
415
|
+
/**
|
|
416
|
+
* Goes on a page; marked `aria-disabled`, and kept in the tab order, on the
|
|
417
|
+
* last page. It renders whichever button it is given.
|
|
418
|
+
*
|
|
419
|
+
* @example
|
|
420
|
+
* <Pagination.Next render={<IconButton label="Next page" variant="tertiary"><ChevronRightIcon /></IconButton>} />
|
|
421
|
+
*/
|
|
402
422
|
var PaginationNext = (props) => {
|
|
403
423
|
const $ = c(2);
|
|
404
424
|
let t0;
|
|
@@ -412,7 +432,13 @@ var PaginationNext = (props) => {
|
|
|
412
432
|
} else t0 = $[1];
|
|
413
433
|
return t0;
|
|
414
434
|
};
|
|
415
|
-
/**
|
|
435
|
+
/**
|
|
436
|
+
* Goes to the last page; marked `aria-disabled`, and kept in the tab order, on
|
|
437
|
+
* the last page. It renders whichever button it is given.
|
|
438
|
+
*
|
|
439
|
+
* @example
|
|
440
|
+
* <Pagination.Last render={<IconButton label="Last page" variant="tertiary"><LastPageIcon /></IconButton>} />
|
|
441
|
+
*/
|
|
416
442
|
var PaginationLast = (props) => {
|
|
417
443
|
const $ = c(2);
|
|
418
444
|
let t0;
|
|
@@ -426,214 +452,180 @@ var PaginationLast = (props) => {
|
|
|
426
452
|
} else t0 = $[1];
|
|
427
453
|
return t0;
|
|
428
454
|
};
|
|
429
|
-
/**
|
|
455
|
+
/**
|
|
456
|
+
* The step buttons it is given, `First`, `Previous`, `Next` and `Last`, in a row.
|
|
457
|
+
*
|
|
458
|
+
* @example
|
|
459
|
+
* <Pagination.Controls>
|
|
460
|
+
* <Pagination.Previous render={previousButton} />
|
|
461
|
+
* <Pagination.Next render={nextButton} />
|
|
462
|
+
* </Pagination.Controls>
|
|
463
|
+
*/
|
|
430
464
|
var PaginationControls = (t0) => {
|
|
431
|
-
const $ = c(
|
|
465
|
+
const $ = c(14);
|
|
432
466
|
let className;
|
|
433
|
-
let firstIcon;
|
|
434
|
-
let firstLabel;
|
|
435
|
-
let lastIcon;
|
|
436
|
-
let lastLabel;
|
|
437
|
-
let nextIcon;
|
|
438
|
-
let nextLabel;
|
|
439
|
-
let previousIcon;
|
|
440
|
-
let previousLabel;
|
|
441
467
|
let props;
|
|
442
468
|
let ref;
|
|
443
469
|
let render;
|
|
444
470
|
if ($[0] !== t0) {
|
|
445
|
-
({
|
|
471
|
+
({render, className, ref, ...props} = t0);
|
|
446
472
|
$[0] = t0;
|
|
447
473
|
$[1] = className;
|
|
448
|
-
$[2] =
|
|
449
|
-
$[3] =
|
|
450
|
-
$[4] =
|
|
451
|
-
$[5] = lastLabel;
|
|
452
|
-
$[6] = nextIcon;
|
|
453
|
-
$[7] = nextLabel;
|
|
454
|
-
$[8] = previousIcon;
|
|
455
|
-
$[9] = previousLabel;
|
|
456
|
-
$[10] = props;
|
|
457
|
-
$[11] = ref;
|
|
458
|
-
$[12] = render;
|
|
474
|
+
$[2] = props;
|
|
475
|
+
$[3] = ref;
|
|
476
|
+
$[4] = render;
|
|
459
477
|
} else {
|
|
460
478
|
className = $[1];
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
lastLabel = $[5];
|
|
465
|
-
nextIcon = $[6];
|
|
466
|
-
nextLabel = $[7];
|
|
467
|
-
previousIcon = $[8];
|
|
468
|
-
previousLabel = $[9];
|
|
469
|
-
props = $[10];
|
|
470
|
-
ref = $[11];
|
|
471
|
-
render = $[12];
|
|
479
|
+
props = $[2];
|
|
480
|
+
ref = $[3];
|
|
481
|
+
render = $[4];
|
|
472
482
|
}
|
|
473
483
|
let t1;
|
|
474
|
-
if ($[
|
|
484
|
+
if ($[5] !== className) {
|
|
475
485
|
t1 = clsx(pagination_module_default.controls, className);
|
|
476
|
-
$[
|
|
477
|
-
$[
|
|
478
|
-
} else t1 = $[
|
|
486
|
+
$[5] = className;
|
|
487
|
+
$[6] = t1;
|
|
488
|
+
} else t1 = $[6];
|
|
479
489
|
let t2;
|
|
480
|
-
if ($[
|
|
481
|
-
t2 =
|
|
482
|
-
label: firstLabel,
|
|
483
|
-
children: firstIcon
|
|
484
|
-
});
|
|
485
|
-
$[15] = firstIcon;
|
|
486
|
-
$[16] = firstLabel;
|
|
487
|
-
$[17] = t2;
|
|
488
|
-
} else t2 = $[17];
|
|
489
|
-
let t3;
|
|
490
|
-
if ($[18] !== previousIcon || $[19] !== previousLabel) {
|
|
491
|
-
t3 = /* @__PURE__ */ jsx(PaginationPrevious, {
|
|
492
|
-
label: previousLabel,
|
|
493
|
-
children: previousIcon
|
|
494
|
-
});
|
|
495
|
-
$[18] = previousIcon;
|
|
496
|
-
$[19] = previousLabel;
|
|
497
|
-
$[20] = t3;
|
|
498
|
-
} else t3 = $[20];
|
|
499
|
-
let t4;
|
|
500
|
-
if ($[21] !== nextIcon || $[22] !== nextLabel) {
|
|
501
|
-
t4 = /* @__PURE__ */ jsx(PaginationNext, {
|
|
502
|
-
label: nextLabel,
|
|
503
|
-
children: nextIcon
|
|
504
|
-
});
|
|
505
|
-
$[21] = nextIcon;
|
|
506
|
-
$[22] = nextLabel;
|
|
507
|
-
$[23] = t4;
|
|
508
|
-
} else t4 = $[23];
|
|
509
|
-
let t5;
|
|
510
|
-
if ($[24] !== lastIcon || $[25] !== lastLabel) {
|
|
511
|
-
t5 = /* @__PURE__ */ jsx(PaginationLast, {
|
|
512
|
-
label: lastLabel,
|
|
513
|
-
children: lastIcon
|
|
514
|
-
});
|
|
515
|
-
$[24] = lastIcon;
|
|
516
|
-
$[25] = lastLabel;
|
|
517
|
-
$[26] = t5;
|
|
518
|
-
} else t5 = $[26];
|
|
519
|
-
let t6;
|
|
520
|
-
if ($[27] !== t2 || $[28] !== t3 || $[29] !== t4 || $[30] !== t5) {
|
|
521
|
-
t6 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
522
|
-
t2,
|
|
523
|
-
t3,
|
|
524
|
-
t4,
|
|
525
|
-
t5
|
|
526
|
-
] });
|
|
527
|
-
$[27] = t2;
|
|
528
|
-
$[28] = t3;
|
|
529
|
-
$[29] = t4;
|
|
530
|
-
$[30] = t5;
|
|
531
|
-
$[31] = t6;
|
|
532
|
-
} else t6 = $[31];
|
|
533
|
-
let t7;
|
|
534
|
-
if ($[32] !== props || $[33] !== t1 || $[34] !== t6) {
|
|
535
|
-
t7 = {
|
|
490
|
+
if ($[7] !== props || $[8] !== t1) {
|
|
491
|
+
t2 = {
|
|
536
492
|
...props,
|
|
537
|
-
className: t1
|
|
538
|
-
children: t6
|
|
493
|
+
className: t1
|
|
539
494
|
};
|
|
540
|
-
$[
|
|
541
|
-
$[
|
|
542
|
-
$[
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
t8 = {
|
|
495
|
+
$[7] = props;
|
|
496
|
+
$[8] = t1;
|
|
497
|
+
$[9] = t2;
|
|
498
|
+
} else t2 = $[9];
|
|
499
|
+
let t3;
|
|
500
|
+
if ($[10] !== ref || $[11] !== render || $[12] !== t2) {
|
|
501
|
+
t3 = {
|
|
548
502
|
defaultTagName: "div",
|
|
549
503
|
render,
|
|
550
504
|
ref,
|
|
551
|
-
props:
|
|
505
|
+
props: t2
|
|
552
506
|
};
|
|
553
|
-
$[
|
|
554
|
-
$[
|
|
555
|
-
$[
|
|
556
|
-
$[
|
|
557
|
-
} else
|
|
558
|
-
return useRender(
|
|
507
|
+
$[10] = ref;
|
|
508
|
+
$[11] = render;
|
|
509
|
+
$[12] = t2;
|
|
510
|
+
$[13] = t3;
|
|
511
|
+
} else t3 = $[13];
|
|
512
|
+
return useRender(t3);
|
|
559
513
|
};
|
|
560
514
|
var PaginationContent = (t0) => {
|
|
561
|
-
const $ = c(
|
|
562
|
-
|
|
563
|
-
let controls;
|
|
564
|
-
let expandIcon;
|
|
565
|
-
let indexLabel;
|
|
566
|
-
let pageSizeLabel;
|
|
567
|
-
if ($[0] !== t0) {
|
|
568
|
-
({pageSizeLabel, indexLabel, checkIcon, expandIcon, ...controls} = t0);
|
|
569
|
-
$[0] = t0;
|
|
570
|
-
$[1] = checkIcon;
|
|
571
|
-
$[2] = controls;
|
|
572
|
-
$[3] = expandIcon;
|
|
573
|
-
$[4] = indexLabel;
|
|
574
|
-
$[5] = pageSizeLabel;
|
|
575
|
-
} else {
|
|
576
|
-
checkIcon = $[1];
|
|
577
|
-
controls = $[2];
|
|
578
|
-
expandIcon = $[3];
|
|
579
|
-
indexLabel = $[4];
|
|
580
|
-
pageSizeLabel = $[5];
|
|
581
|
-
}
|
|
515
|
+
const $ = c(34);
|
|
516
|
+
const { pageSizeLabel, indexLabel, checkIcon, expandIcon, firstLabel, previousLabel, nextLabel, lastLabel, firstIcon, previousIcon, nextIcon, lastIcon } = t0;
|
|
582
517
|
let t1;
|
|
583
|
-
if ($[
|
|
518
|
+
if ($[0] !== pageSizeLabel) {
|
|
584
519
|
t1 = /* @__PURE__ */ jsx(Select.Label, { children: pageSizeLabel });
|
|
585
|
-
$[
|
|
586
|
-
$[
|
|
587
|
-
} else t1 = $[
|
|
520
|
+
$[0] = pageSizeLabel;
|
|
521
|
+
$[1] = t1;
|
|
522
|
+
} else t1 = $[1];
|
|
588
523
|
let t2;
|
|
589
|
-
if ($[
|
|
590
|
-
t2 = /* @__PURE__ */ jsx(Select.
|
|
591
|
-
$[
|
|
592
|
-
|
|
593
|
-
} else t2 = $[9];
|
|
524
|
+
if ($[2] === Symbol.for("react.memo_cache_sentinel")) {
|
|
525
|
+
t2 = /* @__PURE__ */ jsx(Select.Value, {});
|
|
526
|
+
$[2] = t2;
|
|
527
|
+
} else t2 = $[2];
|
|
594
528
|
let t3;
|
|
595
|
-
if ($[
|
|
596
|
-
t3 = /* @__PURE__ */
|
|
597
|
-
$[
|
|
598
|
-
$[
|
|
599
|
-
} else t3 = $[
|
|
529
|
+
if ($[3] !== expandIcon) {
|
|
530
|
+
t3 = /* @__PURE__ */ jsxs(Select.Trigger, { children: [t2, /* @__PURE__ */ jsx(Select.Icon, { children: expandIcon })] });
|
|
531
|
+
$[3] = expandIcon;
|
|
532
|
+
$[4] = t3;
|
|
533
|
+
} else t3 = $[4];
|
|
600
534
|
let t4;
|
|
601
|
-
if ($[
|
|
602
|
-
t4 = /* @__PURE__ */
|
|
535
|
+
if ($[5] !== checkIcon) {
|
|
536
|
+
t4 = /* @__PURE__ */ jsx(Select.Portal, { children: /* @__PURE__ */ jsx(Select.Positioner, { children: /* @__PURE__ */ jsx(Select.Popup, { children: /* @__PURE__ */ jsx(Select.List, { children: /* @__PURE__ */ jsx(Select.Items, { checkIcon }) }) }) }) });
|
|
537
|
+
$[5] = checkIcon;
|
|
538
|
+
$[6] = t4;
|
|
539
|
+
} else t4 = $[6];
|
|
540
|
+
let t5;
|
|
541
|
+
if ($[7] !== t1 || $[8] !== t3 || $[9] !== t4) {
|
|
542
|
+
t5 = /* @__PURE__ */ jsxs(PaginationPageSize, { children: [
|
|
603
543
|
t1,
|
|
604
|
-
|
|
605
|
-
|
|
544
|
+
t3,
|
|
545
|
+
t4
|
|
606
546
|
] });
|
|
607
|
-
$[
|
|
608
|
-
$[
|
|
609
|
-
$[
|
|
610
|
-
$[
|
|
611
|
-
} else
|
|
612
|
-
let t5;
|
|
613
|
-
if ($[16] !== indexLabel) {
|
|
614
|
-
t5 = /* @__PURE__ */ jsx(PaginationIndex, { label: indexLabel });
|
|
615
|
-
$[16] = indexLabel;
|
|
616
|
-
$[17] = t5;
|
|
617
|
-
} else t5 = $[17];
|
|
547
|
+
$[7] = t1;
|
|
548
|
+
$[8] = t3;
|
|
549
|
+
$[9] = t4;
|
|
550
|
+
$[10] = t5;
|
|
551
|
+
} else t5 = $[10];
|
|
618
552
|
let t6;
|
|
619
|
-
if ($[
|
|
620
|
-
t6 = /* @__PURE__ */ jsx(
|
|
621
|
-
$[
|
|
622
|
-
$[
|
|
623
|
-
} else t6 = $[
|
|
553
|
+
if ($[11] !== indexLabel) {
|
|
554
|
+
t6 = /* @__PURE__ */ jsx(PaginationIndex, { label: indexLabel });
|
|
555
|
+
$[11] = indexLabel;
|
|
556
|
+
$[12] = t6;
|
|
557
|
+
} else t6 = $[12];
|
|
624
558
|
let t7;
|
|
625
|
-
if ($[
|
|
626
|
-
t7 = /* @__PURE__ */
|
|
627
|
-
|
|
559
|
+
if ($[13] !== firstIcon || $[14] !== firstLabel) {
|
|
560
|
+
t7 = /* @__PURE__ */ jsx(PaginationFirst, { render: /* @__PURE__ */ jsx(IconButton, {
|
|
561
|
+
variant: "tertiary",
|
|
562
|
+
label: firstLabel,
|
|
563
|
+
children: firstIcon
|
|
564
|
+
}) });
|
|
565
|
+
$[13] = firstIcon;
|
|
566
|
+
$[14] = firstLabel;
|
|
567
|
+
$[15] = t7;
|
|
568
|
+
} else t7 = $[15];
|
|
569
|
+
let t8;
|
|
570
|
+
if ($[16] !== previousIcon || $[17] !== previousLabel) {
|
|
571
|
+
t8 = /* @__PURE__ */ jsx(PaginationPrevious, { render: /* @__PURE__ */ jsx(IconButton, {
|
|
572
|
+
variant: "tertiary",
|
|
573
|
+
label: previousLabel,
|
|
574
|
+
children: previousIcon
|
|
575
|
+
}) });
|
|
576
|
+
$[16] = previousIcon;
|
|
577
|
+
$[17] = previousLabel;
|
|
578
|
+
$[18] = t8;
|
|
579
|
+
} else t8 = $[18];
|
|
580
|
+
let t9;
|
|
581
|
+
if ($[19] !== nextIcon || $[20] !== nextLabel) {
|
|
582
|
+
t9 = /* @__PURE__ */ jsx(PaginationNext, { render: /* @__PURE__ */ jsx(IconButton, {
|
|
583
|
+
variant: "tertiary",
|
|
584
|
+
label: nextLabel,
|
|
585
|
+
children: nextIcon
|
|
586
|
+
}) });
|
|
587
|
+
$[19] = nextIcon;
|
|
588
|
+
$[20] = nextLabel;
|
|
589
|
+
$[21] = t9;
|
|
590
|
+
} else t9 = $[21];
|
|
591
|
+
let t10;
|
|
592
|
+
if ($[22] !== lastIcon || $[23] !== lastLabel) {
|
|
593
|
+
t10 = /* @__PURE__ */ jsx(PaginationLast, { render: /* @__PURE__ */ jsx(IconButton, {
|
|
594
|
+
variant: "tertiary",
|
|
595
|
+
label: lastLabel,
|
|
596
|
+
children: lastIcon
|
|
597
|
+
}) });
|
|
598
|
+
$[22] = lastIcon;
|
|
599
|
+
$[23] = lastLabel;
|
|
600
|
+
$[24] = t10;
|
|
601
|
+
} else t10 = $[24];
|
|
602
|
+
let t11;
|
|
603
|
+
if ($[25] !== t10 || $[26] !== t7 || $[27] !== t8 || $[28] !== t9) {
|
|
604
|
+
t11 = /* @__PURE__ */ jsxs(PaginationControls, { children: [
|
|
605
|
+
t7,
|
|
606
|
+
t8,
|
|
607
|
+
t9,
|
|
608
|
+
t10
|
|
609
|
+
] });
|
|
610
|
+
$[25] = t10;
|
|
611
|
+
$[26] = t7;
|
|
612
|
+
$[27] = t8;
|
|
613
|
+
$[28] = t9;
|
|
614
|
+
$[29] = t11;
|
|
615
|
+
} else t11 = $[29];
|
|
616
|
+
let t12;
|
|
617
|
+
if ($[30] !== t11 || $[31] !== t5 || $[32] !== t6) {
|
|
618
|
+
t12 = /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
628
619
|
t5,
|
|
629
|
-
t6
|
|
620
|
+
t6,
|
|
621
|
+
t11
|
|
630
622
|
] });
|
|
631
|
-
$[
|
|
632
|
-
$[
|
|
633
|
-
$[
|
|
634
|
-
$[
|
|
635
|
-
} else
|
|
636
|
-
return
|
|
623
|
+
$[30] = t11;
|
|
624
|
+
$[31] = t5;
|
|
625
|
+
$[32] = t6;
|
|
626
|
+
$[33] = t12;
|
|
627
|
+
} else t12 = $[33];
|
|
628
|
+
return t12;
|
|
637
629
|
};
|
|
638
630
|
/** The page size, the index and the four step buttons, in a `Root`. */
|
|
639
631
|
var Prefab = (t0) => {
|
|
@@ -728,8 +720,9 @@ var Prefab = (t0) => {
|
|
|
728
720
|
* The pager for a paged list, over any source: the page size, which page is on
|
|
729
721
|
* screen, and buttons to the first, previous, next and last page. Its parts
|
|
730
722
|
* compose another pager: `Root` holds where the list stands, `PageSize` picks
|
|
731
|
-
* rows per page, `Index` says which page is on screen, and `
|
|
732
|
-
* `
|
|
723
|
+
* rows per page, `Index` says which page is on screen, and `First`, `Previous`,
|
|
724
|
+
* `Next` and `Last`, each rendering the button it is given, step through the
|
|
725
|
+
* pages, in a `Controls` row or on their own.
|
|
733
726
|
*
|
|
734
727
|
* @example
|
|
735
728
|
* <Pagination
|
|
@@ -1,64 +1,64 @@
|
|
|
1
1
|
@layer kit.reset, kit.base, kit.components;
|
|
2
2
|
@layer kit.components {
|
|
3
|
-
.
|
|
3
|
+
._strength_1q8qt_3 {
|
|
4
4
|
display: flex;
|
|
5
5
|
flex-direction: column;
|
|
6
|
-
gap: var(--sys-unit-2);
|
|
6
|
+
gap: var(--password-strength-gap, var(--sys-unit-2));
|
|
7
7
|
}
|
|
8
|
-
.
|
|
9
|
-
--
|
|
8
|
+
._meter_1q8qt_8 {
|
|
9
|
+
--_meter-fill: var(
|
|
10
10
|
--password-strength-weak-fill,
|
|
11
11
|
var(--sys-color-error-fg)
|
|
12
12
|
);
|
|
13
13
|
display: grid;
|
|
14
14
|
grid-template-columns: 1fr auto;
|
|
15
|
-
gap: var(--sys-unit-2) var(--sys-unit-4);
|
|
15
|
+
gap: var(--password-strength-meter-gap, var(--sys-unit-2) var(--sys-unit-4));
|
|
16
16
|
align-items: center;
|
|
17
17
|
}
|
|
18
|
-
.
|
|
19
|
-
--
|
|
18
|
+
._meter_1q8qt_8[data-score="2"] {
|
|
19
|
+
--_meter-fill: var(
|
|
20
20
|
--password-strength-fair-fill,
|
|
21
21
|
var(--sys-color-warning-fg)
|
|
22
22
|
);
|
|
23
23
|
}
|
|
24
|
-
.
|
|
25
|
-
--
|
|
24
|
+
._meter_1q8qt_8[data-score="3"], ._meter_1q8qt_8[data-score="4"] {
|
|
25
|
+
--_meter-fill: var(
|
|
26
26
|
--password-strength-strong-fill,
|
|
27
27
|
var(--sys-color-success-fg)
|
|
28
28
|
);
|
|
29
29
|
}
|
|
30
|
-
.
|
|
31
|
-
color: var(--sys-color-text);
|
|
32
|
-
font: var(--sys-font-label-medium);
|
|
30
|
+
._meterLabel_1q8qt_30 {
|
|
31
|
+
color: var(--field-label-fg, var(--sys-color-text));
|
|
32
|
+
font: var(--field-label-font, var(--sys-font-label-medium));
|
|
33
33
|
cursor: default;
|
|
34
34
|
}
|
|
35
|
-
.
|
|
36
|
-
color: var(--
|
|
35
|
+
._meterValue_1q8qt_35 {
|
|
36
|
+
color: var(--_meter-fill);
|
|
37
37
|
font: var(--password-strength-value-font, var(--sys-font-label-small));
|
|
38
38
|
text-align: end;
|
|
39
39
|
}
|
|
40
|
-
.
|
|
40
|
+
._meterTrack_1q8qt_40 {
|
|
41
41
|
grid-column: 1/3;
|
|
42
42
|
overflow: hidden;
|
|
43
|
-
border-radius: var(--sys-radius-xs);
|
|
43
|
+
border-radius: var(--password-strength-track-radius, var(--sys-radius-xs));
|
|
44
44
|
block-size: var(--password-strength-track-size, var(--sys-unit-2));
|
|
45
45
|
background: var(--password-strength-track-bg, var(--sys-color-surface-highest));
|
|
46
46
|
}
|
|
47
|
-
.
|
|
48
|
-
border-radius: var(--sys-radius-xs);
|
|
49
|
-
background: var(--
|
|
47
|
+
._meterIndicator_1q8qt_47 {
|
|
48
|
+
border-radius: var(--password-strength-indicator-radius, var(--password-strength-track-radius, var(--sys-radius-xs)));
|
|
49
|
+
background: var(--_meter-fill);
|
|
50
50
|
}
|
|
51
51
|
@media not (prefers-reduced-motion) {
|
|
52
|
-
.
|
|
52
|
+
._meterIndicator_1q8qt_47 {
|
|
53
53
|
transition: inline-size var(--sys-motion-short) var(--sys-motion-standard), background var(--sys-motion-short) var(--sys-motion-standard);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
.
|
|
56
|
+
._feedback_1q8qt_56 {
|
|
57
57
|
color: var(--password-strength-feedback-fg, var(--sys-color-text-muted));
|
|
58
58
|
font: var(--password-strength-feedback-font, var(--sys-font-body-small));
|
|
59
59
|
}
|
|
60
|
-
.
|
|
61
|
-
padding-inline-start: var(--sys-unit-12);
|
|
60
|
+
._suggestions_1q8qt_60 {
|
|
61
|
+
padding-inline-start: var(--password-strength-suggestions-pad-start, var(--sys-unit-12));
|
|
62
62
|
color: var(--password-strength-feedback-fg, var(--sys-color-text-muted));
|
|
63
63
|
font: var(--password-strength-feedback-font, var(--sys-font-body-small));
|
|
64
64
|
list-style: disc;
|