@caspeco/casper-ui-library 11.4.0 → 12.0.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-item.js +10 -10
- package/dist/components/accordion/accordion-panel.js +4 -4
- package/dist/components/accordion/accordion.js +4 -4
- package/dist/components/alert/alert.js +10 -10
- package/dist/components/badge/badge.js +18 -18
- package/dist/components/box/box.js +3 -3
- package/dist/components/breadcrumbs/breadcrumb-item.js +4 -4
- package/dist/components/breadcrumbs/breadcrumb-link.js +3 -3
- package/dist/components/breadcrumbs/breadcrumbs.js +22 -22
- package/dist/components/button/button.d.ts +1 -1
- package/dist/components/button/button.js +5 -5
- package/dist/components/checkbox/checkbox-icon.js +3 -3
- package/dist/components/checkbox/checkbox.js +7 -7
- package/dist/components/checkbox-group/checkbox-group.js +3 -3
- package/dist/components/collapsible/collapsible.d.ts +1 -1
- package/dist/components/collapsible/collapsible.d.ts.map +1 -1
- package/dist/components/collapsible/collapsible.js +30 -29
- package/dist/components/collapsible/collapsible.translations.d.ts +6 -0
- package/dist/components/collapsible/collapsible.translations.d.ts.map +1 -0
- package/dist/components/collapsible/collapsible.translations.js +54 -0
- package/dist/components/collapsible/types.d.ts +0 -6
- package/dist/components/collapsible/types.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.d.ts +1 -1
- package/dist/components/combobox/combobox-button.d.ts.map +1 -1
- package/dist/components/combobox/combobox-button.js +66 -64
- package/dist/components/combobox/combobox-item.js +8 -8
- package/dist/components/combobox/combobox-menu.d.ts.map +1 -1
- package/dist/components/combobox/combobox-menu.js +95 -94
- package/dist/components/combobox/combobox.d.ts +1 -1
- package/dist/components/combobox/combobox.d.ts.map +1 -1
- package/dist/components/combobox/combobox.js +91 -91
- package/dist/components/combobox/combobox.translations.d.ts +10 -0
- package/dist/components/combobox/combobox.translations.d.ts.map +1 -0
- package/dist/components/combobox/combobox.translations.js +102 -0
- package/dist/components/combobox/index.d.ts +1 -1
- package/dist/components/combobox/index.d.ts.map +1 -1
- package/dist/components/combobox/types.d.ts +0 -15
- package/dist/components/combobox/types.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts +1 -1
- package/dist/components/date-picker/base-date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/base-date-picker.js +163 -162
- package/dist/components/date-picker/date-multi-picker.d.ts +1 -1
- package/dist/components/date-picker/date-multi-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-multi-picker.js +20 -21
- package/dist/components/date-picker/date-picker-date-cell.js +27 -27
- package/dist/components/date-picker/date-picker-header.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker-header.js +84 -116
- package/dist/components/date-picker/date-picker-week-cell.js +4 -4
- package/dist/components/date-picker/date-picker.composition.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.d.ts +1 -1
- package/dist/components/date-picker/date-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-picker.js +20 -21
- package/dist/components/date-picker/date-picker.translations.d.ts +6 -0
- package/dist/components/date-picker/date-picker.translations.d.ts.map +1 -0
- package/dist/components/date-picker/date-picker.translations.js +54 -0
- package/dist/components/date-picker/date-range-picker.d.ts +1 -1
- package/dist/components/date-picker/date-range-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-range-picker.js +15 -16
- package/dist/components/date-picker/date-week-picker.d.ts +1 -1
- package/dist/components/date-picker/date-week-picker.d.ts.map +1 -1
- package/dist/components/date-picker/date-week-picker.js +13 -14
- package/dist/components/date-picker/types.d.ts +4 -10
- package/dist/components/date-picker/types.d.ts.map +1 -1
- package/dist/components/divider/divider.js +3 -3
- package/dist/components/drawer/drawer.js +6 -6
- package/dist/components/drawer/inline-drawer.js +4 -4
- package/dist/components/fieldset/fieldset-error-text.js +3 -3
- package/dist/components/fieldset/fieldset-helper-text.js +3 -3
- package/dist/components/fieldset/fieldset-legend.js +3 -3
- package/dist/components/fieldset/fieldset.js +3 -3
- package/dist/components/flex/flex.js +3 -3
- package/dist/components/form-control/form-control.js +3 -3
- package/dist/components/form-control/form-error-message.js +3 -3
- package/dist/components/form-control/form-helper-text.js +3 -3
- package/dist/components/form-control/form-label.js +5 -5
- package/dist/components/grid/grid-item.js +3 -3
- package/dist/components/grid/grid.js +3 -3
- package/dist/components/heading/heading.js +3 -3
- package/dist/components/highlight/highlight.js +3 -3
- package/dist/components/icon/create-icon.js +7 -7
- package/dist/components/icon-button/icon-button.js +4 -4
- package/dist/components/image/image.js +3 -3
- package/dist/components/image-upload/image-upload-dropzone.d.ts +1 -3
- package/dist/components/image-upload/image-upload-dropzone.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-dropzone.js +75 -74
- package/dist/components/image-upload/image-upload-icons.js +11 -11
- package/dist/components/image-upload/image-upload-modal.d.ts +2 -3
- package/dist/components/image-upload/image-upload-modal.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload-modal.js +69 -69
- package/dist/components/image-upload/image-upload.d.ts +1 -1
- package/dist/components/image-upload/image-upload.d.ts.map +1 -1
- package/dist/components/image-upload/image-upload.js +43 -44
- package/dist/components/image-upload/image-upload.translations.d.ts +12 -0
- package/dist/components/image-upload/image-upload.translations.d.ts.map +1 -0
- package/dist/components/image-upload/image-upload.translations.js +126 -0
- package/dist/components/image-upload/types.d.ts +0 -3
- package/dist/components/image-upload/types.d.ts.map +1 -1
- package/dist/components/input/input.d.ts +1 -1
- package/dist/components/input/input.js +5 -5
- package/dist/components/link/link.js +3 -3
- package/dist/components/list/list-item.js +3 -3
- package/dist/components/list/list.js +3 -3
- package/dist/components/menu/menu-box-button.js +4 -4
- package/dist/components/menu/menu-button.js +4 -4
- package/dist/components/menu/menu-group.js +11 -11
- package/dist/components/menu/menu-icon-button.js +4 -4
- package/dist/components/menu/menu-item.js +7 -7
- package/dist/components/menu/menu-list.js +3 -3
- package/dist/components/menu/menu.js +4 -4
- package/dist/components/message/message.js +8 -8
- package/dist/components/modal/modal-body.js +3 -3
- package/dist/components/modal/modal-close-button.js +5 -5
- package/dist/components/modal/modal-footer.js +3 -3
- package/dist/components/modal/modal-header.js +3 -3
- package/dist/components/modal/modal.js +8 -8
- package/dist/components/navigation-list/navigation-list-item.js +10 -10
- package/dist/components/navigation-list/navigation-list.js +4 -4
- package/dist/components/paginator/paginator.composition.d.ts.map +1 -1
- package/dist/components/paginator/paginator.d.ts +1 -4
- package/dist/components/paginator/paginator.d.ts.map +1 -1
- package/dist/components/paginator/paginator.js +31 -30
- package/dist/components/paginator/paginator.translations.d.ts +7 -0
- package/dist/components/paginator/paginator.translations.d.ts.map +1 -0
- package/dist/components/paginator/paginator.translations.js +66 -0
- package/dist/components/phone-input/country-data.d.ts +2 -2
- package/dist/components/phone-input/country-data.d.ts.map +1 -1
- package/dist/components/phone-input/country-list.js +6 -6
- package/dist/components/phone-input/country-selector.d.ts +1 -4
- package/dist/components/phone-input/country-selector.d.ts.map +1 -1
- package/dist/components/phone-input/country-selector.js +86 -84
- package/dist/components/phone-input/phone-input-helpers.d.ts +4 -5
- package/dist/components/phone-input/phone-input-helpers.d.ts.map +1 -1
- package/dist/components/phone-input/phone-input-helpers.js +33 -34
- package/dist/components/phone-input/phone-input.d.ts +1 -1
- package/dist/components/phone-input/phone-input.d.ts.map +1 -1
- package/dist/components/phone-input/phone-input.js +38 -38
- package/dist/components/phone-input/phone-input.translations.d.ts +10 -0
- package/dist/components/phone-input/phone-input.translations.d.ts.map +1 -0
- package/dist/components/phone-input/phone-input.translations.js +102 -0
- package/dist/components/phone-input/types.d.ts +0 -3
- package/dist/components/phone-input/types.d.ts.map +1 -1
- package/dist/components/phone-input/use-phone-input.d.ts +0 -3
- package/dist/components/phone-input/use-phone-input.d.ts.map +1 -1
- package/dist/components/phone-input/use-phone-input.js +82 -81
- package/dist/components/quantity-button/quantity-button.js +12 -12
- package/dist/components/radio/radio-group.js +4 -4
- package/dist/components/radio/radio.d.ts +1 -1
- package/dist/components/radio/radio.js +14 -14
- package/dist/components/radio-card/radio-card-group.js +3 -3
- package/dist/components/radio-card/radio-card.d.ts +1 -1
- package/dist/components/radio-card/radio-card.js +7 -7
- package/dist/components/rich-text-editor/index.d.ts +1 -1
- package/dist/components/rich-text-editor/index.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-context.d.ts +0 -2
- package/dist/components/rich-text-editor/rich-text-editor-context.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor-control.js +129 -128
- package/dist/components/rich-text-editor/rich-text-editor.d.ts +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.d.ts.map +1 -1
- package/dist/components/rich-text-editor/rich-text-editor.js +22 -25
- package/dist/components/rich-text-editor/{translations.d.ts → rich-text-editor.translations.d.ts} +3 -5
- package/dist/components/rich-text-editor/rich-text-editor.translations.d.ts.map +1 -0
- package/dist/components/rich-text-editor/rich-text-editor.translations.js +234 -0
- package/dist/components/rich-text-editor/rich-text-renderer.js +4 -4
- package/dist/components/rich-text-editor/types.d.ts +0 -2
- package/dist/components/rich-text-editor/types.d.ts.map +1 -1
- package/dist/components/segmented-control/segmented-control.js +5 -5
- package/dist/components/select/select.js +5 -5
- package/dist/components/skeleton/skeleton-text.js +3 -3
- package/dist/components/skeleton/skeleton.js +3 -3
- package/dist/components/spinner/spinner.js +5 -5
- package/dist/components/stack/stack.d.ts +1 -1
- package/dist/components/stack/stack.js +3 -3
- package/dist/components/stepper/step.js +25 -25
- package/dist/components/stepper/stepper.js +8 -8
- package/dist/components/switch/switch.js +6 -6
- package/dist/components/table/table-cell.d.ts +1 -3
- package/dist/components/table/table-cell.d.ts.map +1 -1
- package/dist/components/table/table-cell.js +43 -46
- package/dist/components/table/table-column-resize-handle.d.ts.map +1 -1
- package/dist/components/table/table-column-resize-handle.js +22 -21
- package/dist/components/table/table-content.d.ts.map +1 -1
- package/dist/components/table/table-content.js +81 -79
- package/dist/components/table/table-context-provider.d.ts +1 -4
- package/dist/components/table/table-context-provider.d.ts.map +1 -1
- package/dist/components/table/table-context-provider.js +137 -140
- package/dist/components/table/table-drag-accessibility.d.ts +3 -3
- package/dist/components/table/table-drag-accessibility.d.ts.map +1 -1
- package/dist/components/table/table-drag-accessibility.js +10 -14
- package/dist/components/table/table-filter.d.ts.map +1 -1
- package/dist/components/table/table-filter.js +59 -59
- package/dist/components/table/table-header-dropdown.d.ts +0 -2
- package/dist/components/table/table-header-dropdown.d.ts.map +1 -1
- package/dist/components/table/table-header-dropdown.js +28 -27
- package/dist/components/table/table-header-row.d.ts.map +1 -1
- package/dist/components/table/table-header-row.js +53 -56
- package/dist/components/table/table-row-drag-handle.d.ts +1 -3
- package/dist/components/table/table-row-drag-handle.d.ts.map +1 -1
- package/dist/components/table/table-row-drag-handle.js +10 -9
- package/dist/components/table/table-row-expand-toggle-button.d.ts +1 -3
- package/dist/components/table/table-row-expand-toggle-button.d.ts.map +1 -1
- package/dist/components/table/table-row-expand-toggle-button.js +9 -8
- package/dist/components/table/table-row.d.ts.map +1 -1
- package/dist/components/table/table-row.js +5 -6
- package/dist/components/table/table-sorted-reorder-prompt.d.ts +1 -3
- package/dist/components/table/table-sorted-reorder-prompt.d.ts.map +1 -1
- package/dist/components/table/table-sorted-reorder-prompt.js +26 -25
- package/dist/components/table/table-toolbar-actions.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-actions.js +4 -4
- package/dist/components/table/table-toolbar-add-button.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-add-button.js +4 -4
- package/dist/components/table/table-toolbar-settings.d.ts.map +1 -1
- package/dist/components/table/table-toolbar-settings.js +110 -108
- package/dist/components/table/table-toolbar.js +11 -11
- package/dist/components/table/table.composition.d.ts.map +1 -1
- package/dist/components/table/table.d.ts +1 -1
- package/dist/components/table/table.d.ts.map +1 -1
- package/dist/components/table/table.js +31 -32
- package/dist/components/table/table.translations.d.ts +45 -0
- package/dist/components/table/table.translations.d.ts.map +1 -0
- package/dist/components/table/table.translations.js +522 -0
- package/dist/components/table/types.d.ts +0 -5
- package/dist/components/table/types.d.ts.map +1 -1
- package/dist/components/tabs/tab-list.js +3 -3
- package/dist/components/tabs/tab-panel.js +3 -3
- package/dist/components/tabs/tab-panels.js +3 -3
- package/dist/components/tabs/tab-with-image.js +10 -10
- package/dist/components/tabs/tab.js +4 -4
- package/dist/components/tabs/tabs.js +3 -3
- package/dist/components/tag/tag.js +28 -28
- package/dist/components/text/text.js +3 -3
- package/dist/components/textarea/textarea.js +3 -3
- package/dist/components/toaster/toaster.js +9 -9
- package/dist/components/toggle-button/toggle-button.js +3 -3
- package/dist/components/toggle-button/use-button-children.js +10 -10
- package/dist/components/tooltip/tooltip.d.ts +1 -1
- package/dist/components/tooltip/tooltip.js +8 -8
- package/dist/index.js +404 -402
- package/dist/node_modules/libphonenumber-js/metadata.mobile.json.js +13 -19
- package/dist/test-utils/render-with-theme.d.ts +5 -1
- package/dist/test-utils/render-with-theme.d.ts.map +1 -1
- package/dist/theme/index.d.ts +4 -0
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/locale-provider.d.ts +9 -0
- package/dist/theme/locale-provider.d.ts.map +1 -0
- package/dist/theme/locale-provider.js +14 -0
- package/dist/theme/locale-provider.spec.d.ts +2 -0
- package/dist/theme/locale-provider.spec.d.ts.map +1 -0
- package/dist/theme/theme-locale.d.ts +7 -0
- package/dist/theme/theme-locale.d.ts.map +1 -0
- package/dist/theme/theme-locale.js +8 -0
- package/dist/theme/theme-provider.d.ts +4 -1
- package/dist/theme/theme-provider.d.ts.map +1 -1
- package/dist/theme/theme-provider.js +30 -25
- package/dist/theme/translations.d.ts +14 -0
- package/dist/theme/translations.d.ts.map +1 -0
- package/dist/theme/translations.js +10 -0
- package/dist/theme/translations.spec.d.ts +2 -0
- package/dist/theme/translations.spec.d.ts.map +1 -0
- package/package.json +5 -5
- package/dist/components/collapsible/translations.d.ts +0 -32
- package/dist/components/collapsible/translations.d.ts.map +0 -1
- package/dist/components/collapsible/translations.js +0 -30
- package/dist/components/combobox/translations.d.ts +0 -9
- package/dist/components/combobox/translations.d.ts.map +0 -1
- package/dist/components/combobox/translations.js +0 -57
- package/dist/components/image-upload/translations.d.ts +0 -73
- package/dist/components/image-upload/translations.d.ts.map +0 -1
- package/dist/components/image-upload/translations.js +0 -66
- package/dist/components/paginator/translations.d.ts +0 -9
- package/dist/components/paginator/translations.d.ts.map +0 -1
- package/dist/components/paginator/translations.js +0 -36
- package/dist/components/phone-input/translations.d.ts +0 -60
- package/dist/components/phone-input/translations.d.ts.map +0 -1
- package/dist/components/phone-input/translations.js +0 -54
- package/dist/components/rich-text-editor/translations.d.ts.map +0 -1
- package/dist/components/rich-text-editor/translations.js +0 -120
- package/dist/components/table/translations.d.ts +0 -308
- package/dist/components/table/translations.d.ts.map +0 -1
- package/dist/components/table/translations.js +0 -267
|
@@ -876,7 +876,7 @@ var e = {
|
|
|
876
876
|
[
|
|
877
877
|
"(\\d{3})(\\d{3,7})",
|
|
878
878
|
"$1-$2",
|
|
879
|
-
["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28
|
|
879
|
+
["3(?:[67]|8[013-9])|4(?:6[168]|7|[89][18])|5(?:6[128]|9)|6(?:[15]|28)|7[2-589]|8(?:0[014-9]|[12])|9[358]|(?:3[2-5]|4[235]|5[2-578]|6[0389]|76|8[3-7]|9[24])1|(?:44|66)[01346-9]"],
|
|
880
880
|
"0$1"
|
|
881
881
|
],
|
|
882
882
|
[
|
|
@@ -898,7 +898,7 @@ var e = {
|
|
|
898
898
|
0,
|
|
899
899
|
0,
|
|
900
900
|
0,
|
|
901
|
-
[0, ["(?:1[13-9]
|
|
901
|
+
[0, ["(?:1[13-9]|64)\\d{8}|(?:3[78]|44|66)[02-9]\\d{7}", [10]]]
|
|
902
902
|
],
|
|
903
903
|
BE: [
|
|
904
904
|
"32",
|
|
@@ -1390,7 +1390,7 @@ var e = {
|
|
|
1390
1390
|
0,
|
|
1391
1391
|
0,
|
|
1392
1392
|
0,
|
|
1393
|
-
[0, ["(?:2(?:04|[23]6|[48]9|5[07]|
|
|
1393
|
+
[0, ["(?:2(?:04|[23]6|[48]9|5[07]|[67]3)|3(?:06|43|54|6[578]|82)|4(?:03|1[68]|[26]8|3[178]|50|74)|5(?:06|1[49]|48|79|8[147])|6(?:04|[18]3|39|47|72)|7(?:0[59]|42|53|78|8[02])|8(?:[06]7|19|25|7[39])|9(?:0[25]|42))[2-9]\\d{6}", [10]]]
|
|
1394
1394
|
],
|
|
1395
1395
|
CC: [
|
|
1396
1396
|
"61",
|
|
@@ -1468,7 +1468,7 @@ var e = {
|
|
|
1468
1468
|
0,
|
|
1469
1469
|
0,
|
|
1470
1470
|
0,
|
|
1471
|
-
[0, ["88\\d{5}|(?:8[0-
|
|
1471
|
+
[0, ["88\\d{5}|(?:8[0-79]|9[016-9])\\d{7}", [7, 9]]]
|
|
1472
1472
|
],
|
|
1473
1473
|
CF: [
|
|
1474
1474
|
"236",
|
|
@@ -2314,7 +2314,7 @@ var e = {
|
|
|
2314
2314
|
0,
|
|
2315
2315
|
0,
|
|
2316
2316
|
0,
|
|
2317
|
-
[0, ["(?:5\\d{5}|8(?:1(?:0(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[2-6]|1\\d)|[2-79]\\d\\d)\\d)|2(?:0(?:0(?:00|4\\d)|
|
|
2317
|
+
[0, ["(?:5\\d{5}|8(?:1(?:0(?:0(?:00|[178]\\d)|[3-9]\\d\\d)|(?:1(?:0[2-6]|1\\d)|[2-79]\\d\\d)\\d)|2(?:0(?:0(?:00|4\\d)|[1-7]\\d\\d)|(?:(?:[124-69]\\d|3[5-9])\\d|7(?:[0-79]\\d|8[013-9])|8(?:[2-6]\\d|7[01]))\\d)|[349]\\d{4}))\\d\\d|5(?:(?:[02]\\d|5[0-478])\\d|1(?:[0-8]\\d|95)|6(?:4[0-4]|5[1-589]))\\d{3}", [7, 8]]]
|
|
2318
2318
|
],
|
|
2319
2319
|
EG: [
|
|
2320
2320
|
"20",
|
|
@@ -3465,7 +3465,7 @@ var e = {
|
|
|
3465
3465
|
0,
|
|
3466
3466
|
0,
|
|
3467
3467
|
0,
|
|
3468
|
-
[0, ["55(?:4(?:0[0-
|
|
3468
|
+
[0, ["55(?:4(?:0[0-4]|10|6[015-9])|57[0-289]|8[06][0-2])\\d{4}|5(?:(?:[0-2][02-9]|[36]\\d|[49][2-9]|8[3-7])\\d|5(?:01|2\\d|3[0-3]|4[3-5]|5[0-25689]|6[6-8]|7[0-267]|8[7-9]|9[1-9]))\\d{5}", [9]]]
|
|
3469
3469
|
],
|
|
3470
3470
|
IM: [
|
|
3471
3471
|
"44",
|
|
@@ -6388,7 +6388,7 @@ var e = {
|
|
|
6388
6388
|
[[
|
|
6389
6389
|
"(\\d{2})(\\d{5})",
|
|
6390
6390
|
"$1 $2",
|
|
6391
|
-
["6[89]|7|8[4-9]|9(?:[
|
|
6391
|
+
["6[89]|7|8[4-9]|9(?:[0-8]|9[0-8])"]
|
|
6392
6392
|
]],
|
|
6393
6393
|
0,
|
|
6394
6394
|
0,
|
|
@@ -6396,7 +6396,7 @@ var e = {
|
|
|
6396
6396
|
0,
|
|
6397
6397
|
0,
|
|
6398
6398
|
0,
|
|
6399
|
-
[0, ["48\\d{3}|(?:
|
|
6399
|
+
[0, ["(?:48|99[0-8]\\d)\\d{3}|(?:6[89]|7[1-9]|8[4-9]|9[0-8])\\d{5}"]]
|
|
6400
6400
|
],
|
|
6401
6401
|
SC: [
|
|
6402
6402
|
"248",
|
|
@@ -6860,7 +6860,7 @@ var e = {
|
|
|
6860
6860
|
0,
|
|
6861
6861
|
0,
|
|
6862
6862
|
0,
|
|
6863
|
-
[0, ["(?:6[08]|7[1-
|
|
6863
|
+
[0, ["(?:6[08]|7[1-79]|8[1-9])\\d{5}", [7]]]
|
|
6864
6864
|
],
|
|
6865
6865
|
SS: [
|
|
6866
6866
|
"211",
|
|
@@ -7535,7 +7535,7 @@ var e = {
|
|
|
7535
7535
|
0,
|
|
7536
7536
|
0,
|
|
7537
7537
|
0,
|
|
7538
|
-
[0, ["7(?:28|34)0\\d{5}|7(?:[014-8]\\d|2[01467]|3[
|
|
7538
|
+
[0, ["7(?:28|34)0\\d{5}|7(?:[014-8]\\d|2[01467]|3[0-267]|9[0-589])\\d{6}"]]
|
|
7539
7539
|
],
|
|
7540
7540
|
US: [
|
|
7541
7541
|
"1",
|
|
@@ -7758,7 +7758,7 @@ var e = {
|
|
|
7758
7758
|
[
|
|
7759
7759
|
"(\\d{3})(\\d{3})(\\d{3})",
|
|
7760
7760
|
"$1 $2 $3",
|
|
7761
|
-
["[
|
|
7761
|
+
["[1357-9]"],
|
|
7762
7762
|
"0$1",
|
|
7763
7763
|
1
|
|
7764
7764
|
],
|
|
@@ -7783,7 +7783,7 @@ var e = {
|
|
|
7783
7783
|
0,
|
|
7784
7784
|
0,
|
|
7785
7785
|
0,
|
|
7786
|
-
[0, ["121[0-3]\\d{5}|(?:
|
|
7786
|
+
[0, ["121[0-3]\\d{5}|(?:1[46]0|(?:3\\d|7[06-9])\\d|5(?:[1689]\\d|2[238]|59)|8(?:[1-8]\\d|9[6-9])|9(?:[0-8]\\d|9[013-9]))\\d{6}", [9]]]
|
|
7787
7787
|
],
|
|
7788
7788
|
VU: [
|
|
7789
7789
|
"678",
|
|
@@ -8032,7 +8032,7 @@ var e = {
|
|
|
8032
8032
|
ZW: [
|
|
8033
8033
|
"263",
|
|
8034
8034
|
"00",
|
|
8035
|
-
"(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[
|
|
8035
|
+
"(?:13|8\\d{4})\\d{5}|[235-8]\\d{8}|[23568]\\d{6}",
|
|
8036
8036
|
[
|
|
8037
8037
|
7,
|
|
8038
8038
|
9,
|
|
@@ -8051,12 +8051,6 @@ var e = {
|
|
|
8051
8051
|
["2(?:0[45]|[27]|48)|37|675|(?:55|68)[78]"],
|
|
8052
8052
|
"0$1"
|
|
8053
8053
|
],
|
|
8054
|
-
[
|
|
8055
|
-
"(\\d)(\\d{3})(\\d{2,4})",
|
|
8056
|
-
"$1 $2 $3",
|
|
8057
|
-
["[49]"],
|
|
8058
|
-
"0$1"
|
|
8059
|
-
],
|
|
8060
8054
|
[
|
|
8061
8055
|
"(\\d{3})(\\d{4})",
|
|
8062
8056
|
"$1 $2",
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
+
import { ThemeProviderProps } from '../theme/index.js';
|
|
1
2
|
import { ReactElement } from 'react';
|
|
2
3
|
import { RenderOptions } from 'vitest-browser-react';
|
|
3
|
-
export
|
|
4
|
+
export type RenderWithThemeOptions = Omit<RenderOptions, "wrapper"> & {
|
|
5
|
+
themeProps?: Omit<ThemeProviderProps, "children">;
|
|
6
|
+
};
|
|
7
|
+
export declare function renderWithTheme(ui: ReactElement, options?: RenderWithThemeOptions): Promise<import('vitest-browser-react').RenderResult>;
|
|
4
8
|
//# sourceMappingURL=render-with-theme.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-with-theme.d.ts","sourceRoot":"","sources":["../../lib/test-utils/render-with-theme.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"render-with-theme.d.ts","sourceRoot":"","sources":["../../lib/test-utils/render-with-theme.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAiB,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAC1C,OAAO,EAAU,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAElE,MAAM,MAAM,sBAAsB,GAAG,IAAI,CAAC,aAAa,EAAE,SAAS,CAAC,GAAG;IACrE,UAAU,CAAC,EAAE,IAAI,CAAC,kBAAkB,EAAE,UAAU,CAAC,CAAC;CAClD,CAAC;AAEF,wBAAgB,eAAe,CAAC,EAAE,EAAE,YAAY,EAAE,OAAO,CAAC,EAAE,sBAAsB,wDAMjF"}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
export { isTouchScreenDevice } from './theme-helper.js';
|
|
2
|
+
export { LocaleProvider } from './locale-provider.js';
|
|
3
|
+
export type { LocaleProviderProps } from './locale-provider.js';
|
|
4
|
+
export { useLocale } from './theme-locale.js';
|
|
5
|
+
export type { AppLocale } from './theme-locale.js';
|
|
2
6
|
export { ThemeProvider } from './theme-provider.js';
|
|
3
7
|
export type { ThemeProviderProps } from './theme-provider.js';
|
|
4
8
|
export type { BorderProps, ColorProps, CustomChakraBoxProps, LayoutProps, MarginProps, PaddingProps, ShadowProps, ThemeStyleProps, TypographyProps, } from './theme-style-props.js';
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EACX,WAAW,EACX,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,eAAe,EACf,eAAe,GACf,MAAM,qBAAqB,CAAC;AAE7B,cAAc,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../lib/theme/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,YAAY,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAC3C,YAAY,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,YAAY,EACX,WAAW,EACX,UAAU,EACV,oBAAoB,EACpB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,WAAW,EACX,eAAe,EACf,eAAe,GACf,MAAM,qBAAqB,CAAC;AAE7B,cAAc,eAAe,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
import { AppLocale } from './theme-locale.js';
|
|
3
|
+
export type LocaleProviderProps = {
|
|
4
|
+
locale: AppLocale;
|
|
5
|
+
children: ReactNode;
|
|
6
|
+
};
|
|
7
|
+
/** Sets the locale for everything rendered within it. */
|
|
8
|
+
export declare function LocaleProvider({ locale, children }: LocaleProviderProps): import('react').JSX.Element;
|
|
9
|
+
//# sourceMappingURL=locale-provider.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-provider.d.ts","sourceRoot":"","sources":["../../lib/theme/locale-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,EAAiB,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE/D,MAAM,MAAM,mBAAmB,GAAG;IACjC,MAAM,EAAE,SAAS,CAAC;IAClB,QAAQ,EAAE,SAAS,CAAC;CACpB,CAAC;AAEF,yDAAyD;AACzD,wBAAgB,cAAc,CAAC,EAAE,MAAM,EAAE,QAAQ,EAAE,EAAE,mBAAmB,+BAEvE"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { require_compiler_runtime as e } from "../node_modules/react/compiler-runtime.js";
|
|
2
|
+
import { LocaleContext as t } from "./theme-locale.js";
|
|
3
|
+
import { jsx as n } from "react/jsx-runtime";
|
|
4
|
+
//#region lib/theme/locale-provider.tsx
|
|
5
|
+
var r = e();
|
|
6
|
+
function i(e) {
|
|
7
|
+
let i = (0, r.c)(3), { locale: a, children: o } = e, s;
|
|
8
|
+
return i[0] !== o || i[1] !== a ? (s = /* @__PURE__ */ n(t.Provider, {
|
|
9
|
+
value: a,
|
|
10
|
+
children: o
|
|
11
|
+
}), i[0] = o, i[1] = a, i[2] = s) : s = i[2], s;
|
|
12
|
+
}
|
|
13
|
+
//#endregion
|
|
14
|
+
export { i as LocaleProvider };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locale-provider.spec.d.ts","sourceRoot":"","sources":["../../lib/theme/locale-provider.spec.tsx"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Locales supported by Casper UI's localized components. */
|
|
2
|
+
export type AppLocale = "en-US" | "en-GB" | "nb-NO" | "da-DK" | "sv-SE" | "nl-NL" | "nl-BE" | "fr-FR" | "fr-BE" | "fi-FI" | "es-ES" | "et-EE" | "lt-LT" | "lv-LV" | "de-DE";
|
|
3
|
+
export declare const DEFAULT_APP_LOCALE: AppLocale;
|
|
4
|
+
export declare const LocaleContext: import('react').Context<AppLocale>;
|
|
5
|
+
/** Reads the locale provided by the nearest `ThemeProvider`. */
|
|
6
|
+
export declare function useLocale(): AppLocale;
|
|
7
|
+
//# sourceMappingURL=theme-locale.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"theme-locale.d.ts","sourceRoot":"","sources":["../../lib/theme/theme-locale.ts"],"names":[],"mappings":"AAEA,6DAA6D;AAC7D,MAAM,MAAM,SAAS,GAClB,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,GACP,OAAO,CAAC;AAEX,eAAO,MAAM,kBAAkB,EAAE,SAAmB,CAAC;AAErD,eAAO,MAAM,aAAa,oCAA+C,CAAC;AAE1E,gEAAgE;AAChE,wBAAgB,SAAS,IAAI,SAAS,CAErC"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { GlobalStyleObject } from '@chakra-ui/react';
|
|
2
2
|
import { ReactNode } from 'react';
|
|
3
|
+
import { AppLocale } from './theme-locale.js';
|
|
3
4
|
import { ThemeColorValues, ThemeFontValues } from './theme-types.js';
|
|
4
5
|
export type ThemeProviderProps = {
|
|
5
6
|
/** Children to be rendered within this theme. */
|
|
@@ -14,11 +15,13 @@ export type ThemeProviderProps = {
|
|
|
14
15
|
* See example usage in theme-casper.ui.ts */
|
|
15
16
|
fontStyleSheet?: string;
|
|
16
17
|
globalStyles?: GlobalStyleObject;
|
|
18
|
+
/** Locale used by every localized component in this subtree. Defaults to `en-US`. */
|
|
19
|
+
locale?: AppLocale;
|
|
17
20
|
};
|
|
18
21
|
/**
|
|
19
22
|
* Provides theme appearance to all children rendered within the provider.
|
|
20
23
|
* Default theme values are set to a Casper UI-theme. To override them,
|
|
21
24
|
* provide your own theme variables.
|
|
22
25
|
*/
|
|
23
|
-
export declare function ThemeProvider({ colors, fonts, fontStyleSheet, globalStyles, children, }: ThemeProviderProps): import('react').JSX.Element;
|
|
26
|
+
export declare function ThemeProvider({ colors, fonts, fontStyleSheet, globalStyles, locale, children, }: ThemeProviderProps): import('react').JSX.Element;
|
|
24
27
|
//# sourceMappingURL=theme-provider.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../lib/theme/theme-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"theme-provider.d.ts","sourceRoot":"","sources":["../../lib/theme/theme-provider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAkB,KAAK,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAG1E,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAIvC,OAAO,EAAsB,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAE,KAAK,gBAAgB,EAAE,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAE5E,MAAM,MAAM,kBAAkB,GAAG;IAChC,iDAAiD;IACjD,QAAQ,EAAE,SAAS,CAAC;IACpB,+BAA+B;IAC/B,MAAM,CAAC,EAAE,gBAAgB,CAAC;IAC1B;8EAC0E;IAC1E,KAAK,CAAC,EAAE,eAAe,CAAC;IACxB;;iDAE6C;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,YAAY,CAAC,EAAE,iBAAiB,CAAC;IACjC,qFAAqF;IACrF,MAAM,CAAC,EAAE,SAAS,CAAC;CACnB,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,aAAa,CAAC,EAC7B,MAA6B,EAC7B,KAA2B,EAC3B,cAA6C,EAC7C,YAAyC,EACzC,MAA2B,EAC3B,QAAQ,GACR,EAAE,kBAAkB,+BAkBpB"}
|
|
@@ -1,35 +1,40 @@
|
|
|
1
1
|
import { require_compiler_runtime as e } from "../node_modules/react/compiler-runtime.js";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { DEFAULT_APP_LOCALE as t } from "./theme-locale.js";
|
|
3
|
+
import { LocaleProvider as n } from "./locale-provider.js";
|
|
4
|
+
import { ThemeProvider as r } from "../node_modules/next-themes/dist/index.js";
|
|
5
|
+
import { casperUITheme as i } from "./theme-casper-ui.js";
|
|
6
|
+
import { createSystemWithOverrides as a } from "./theme.js";
|
|
5
7
|
import "react";
|
|
6
|
-
import { ChakraProvider as i } from "@chakra-ui/react";
|
|
7
|
-
import { Global as a } from "@emotion/react";
|
|
8
8
|
import { jsx as o, jsxs as s } from "react/jsx-runtime";
|
|
9
|
+
import { ChakraProvider as c } from "@chakra-ui/react";
|
|
10
|
+
import { Global as l } from "@emotion/react";
|
|
9
11
|
//#region lib/theme/theme-provider.tsx
|
|
10
|
-
var
|
|
11
|
-
function
|
|
12
|
-
let
|
|
13
|
-
|
|
14
|
-
globalCss:
|
|
15
|
-
colors:
|
|
16
|
-
fonts:
|
|
17
|
-
}),
|
|
18
|
-
let
|
|
19
|
-
|
|
20
|
-
let
|
|
21
|
-
|
|
12
|
+
var u = e();
|
|
13
|
+
function d(e) {
|
|
14
|
+
let d = (0, u.c)(13), { colors: f, fonts: p, fontStyleSheet: m, globalStyles: h, locale: g, children: _ } = e, v = f === void 0 ? i.colors : f, y = p === void 0 ? i.fonts : p, b = m === void 0 ? i.fontStyleSheet : m, x = h === void 0 ? i.globalStyles : h, S = g === void 0 ? t : g, C;
|
|
15
|
+
d[0] !== v || d[1] !== y || d[2] !== x ? (C = a({
|
|
16
|
+
globalCss: x,
|
|
17
|
+
colors: v,
|
|
18
|
+
fonts: y
|
|
19
|
+
}), d[0] = v, d[1] = y, d[2] = x, d[3] = C) : C = d[3];
|
|
20
|
+
let w = C, T;
|
|
21
|
+
d[4] === b ? T = d[5] : (T = /* @__PURE__ */ o(l, { styles: b }), d[4] = b, d[5] = T);
|
|
22
|
+
let E;
|
|
23
|
+
d[6] !== _ || d[7] !== S || d[8] !== T ? (E = /* @__PURE__ */ o(r, {
|
|
22
24
|
attribute: "class",
|
|
23
25
|
disableTransitionOnChange: !0,
|
|
24
26
|
enableSystem: !1,
|
|
25
27
|
defaultTheme: "light",
|
|
26
|
-
children:
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
28
|
+
children: /* @__PURE__ */ s(n, {
|
|
29
|
+
locale: S,
|
|
30
|
+
children: [T, _]
|
|
31
|
+
})
|
|
32
|
+
}), d[6] = _, d[7] = S, d[8] = T, d[9] = E) : E = d[9];
|
|
33
|
+
let D;
|
|
34
|
+
return d[10] !== w || d[11] !== E ? (D = /* @__PURE__ */ o(c, {
|
|
35
|
+
value: w,
|
|
36
|
+
children: E
|
|
37
|
+
}), d[10] = w, d[11] = E, d[12] = D) : D = d[12], D;
|
|
33
38
|
}
|
|
34
39
|
//#endregion
|
|
35
|
-
export {
|
|
40
|
+
export { d as ThemeProvider };
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { AppLocale } from './theme-locale.js';
|
|
2
|
+
type LanguageOf<T> = T extends `${infer Language}-${string}` ? Language : never;
|
|
3
|
+
/** "sv-SE" → "sv", "en-US" | "en-GB" → "en". */
|
|
4
|
+
type Language = LanguageOf<AppLocale>;
|
|
5
|
+
export type ComponentTranslations<T> = Record<Language, T>;
|
|
6
|
+
/**
|
|
7
|
+
* Declares a component's UI copy. Each component keeps its own translations module so apps only
|
|
8
|
+
* bundle copy for the components they use; requiring every language makes a missing one fail tsc.
|
|
9
|
+
*/
|
|
10
|
+
export declare function defineTranslations<T>(translations: ComponentTranslations<T>): ComponentTranslations<T>;
|
|
11
|
+
/** Reads a component's copy for the nearest `ThemeProvider` locale, falling back to English. */
|
|
12
|
+
export declare function useComponentTranslations<T>(translations: ComponentTranslations<T>): T;
|
|
13
|
+
export {};
|
|
14
|
+
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../lib/theme/translations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAa,KAAK,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAE3D,KAAK,UAAU,CAAC,CAAC,IAAI,CAAC,SAAS,GAAG,MAAM,QAAQ,IAAI,MAAM,EAAE,GAAG,QAAQ,GAAG,KAAK,CAAC;AAEhF,gDAAgD;AAChD,KAAK,QAAQ,GAAG,UAAU,CAAC,SAAS,CAAC,CAAC;AAEtC,MAAM,MAAM,qBAAqB,CAAC,CAAC,IAAI,MAAM,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC;AAE3D;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,YAAY,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,qBAAqB,CAAC,CAAC,CAAC,CAEtG;AAED,gGAAgG;AAChG,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,YAAY,EAAE,qBAAqB,CAAC,CAAC,CAAC,GAAG,CAAC,CAGrF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { useLocale as e } from "./theme-locale.js";
|
|
2
|
+
//#region lib/theme/translations.ts
|
|
3
|
+
function t(e) {
|
|
4
|
+
return e;
|
|
5
|
+
}
|
|
6
|
+
function n(t) {
|
|
7
|
+
return t[e().split("-")[0]] ?? t.en;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { t as defineTranslations, n as useComponentTranslations };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.spec.d.ts","sourceRoot":"","sources":["../../lib/theme/translations.spec.tsx"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@caspeco/casper-ui-library",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "12.0.0",
|
|
4
4
|
"prettier": "@caspeco/prettier-config",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@caspeco/prettier-config": "^1.0.7",
|
|
46
46
|
"@chakra-ui/cli": "^3.37.0",
|
|
47
47
|
"@rolldown/plugin-babel": "^0.2.4",
|
|
48
|
-
"@types/node": "^26.6.
|
|
48
|
+
"@types/node": "^26.6.3",
|
|
49
49
|
"@types/react": "^19.3.0",
|
|
50
50
|
"@types/react-dom": "^19.3.0",
|
|
51
51
|
"@vitejs/plugin-react": "^6.1.1",
|
|
@@ -56,9 +56,9 @@
|
|
|
56
56
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
57
57
|
"eslint-plugin-react-refresh": "^0.5.7",
|
|
58
58
|
"globals": "^17.12.0",
|
|
59
|
-
"knip": "^6.
|
|
59
|
+
"knip": "^6.38.0",
|
|
60
60
|
"playwright": "1.63.0",
|
|
61
|
-
"prettier": "^3.9.
|
|
61
|
+
"prettier": "^3.9.9",
|
|
62
62
|
"rimraf": "^6.1.3",
|
|
63
63
|
"tsc-alias": "^1.9.5",
|
|
64
64
|
"typescript": "^6.0.3",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"country-flag-icons": "^1.6.20",
|
|
90
90
|
"csstype": "^3.2.3",
|
|
91
91
|
"date-fns": "^4.4.0",
|
|
92
|
-
"libphonenumber-js": "^1.13.
|
|
92
|
+
"libphonenumber-js": "^1.13.14",
|
|
93
93
|
"linkifyjs": "^4.3.3",
|
|
94
94
|
"next-themes": "^0.4.6"
|
|
95
95
|
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
export type Locales = "en-US" | "nb-NO" | "da-DK" | "sv-SE" | "en-GB" | "fr-FR" | "nl-BE";
|
|
2
|
-
export declare const translations: {
|
|
3
|
-
"sv-SE": {
|
|
4
|
-
collapseContent: string;
|
|
5
|
-
expandContent: string;
|
|
6
|
-
};
|
|
7
|
-
"en-US": {
|
|
8
|
-
collapseContent: string;
|
|
9
|
-
expandContent: string;
|
|
10
|
-
};
|
|
11
|
-
"en-GB": {
|
|
12
|
-
collapseContent: string;
|
|
13
|
-
expandContent: string;
|
|
14
|
-
};
|
|
15
|
-
"nb-NO": {
|
|
16
|
-
collapseContent: string;
|
|
17
|
-
expandContent: string;
|
|
18
|
-
};
|
|
19
|
-
"da-DK": {
|
|
20
|
-
collapseContent: string;
|
|
21
|
-
expandContent: string;
|
|
22
|
-
};
|
|
23
|
-
"fr-FR": {
|
|
24
|
-
collapseContent: string;
|
|
25
|
-
expandContent: string;
|
|
26
|
-
};
|
|
27
|
-
"nl-BE": {
|
|
28
|
-
collapseContent: string;
|
|
29
|
-
expandContent: string;
|
|
30
|
-
};
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../lib/components/collapsible/translations.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAO1F,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBxB,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
//#region lib/components/collapsible/translations.ts
|
|
2
|
-
var e = {
|
|
3
|
-
collapseContent: "Collapse content",
|
|
4
|
-
expandContent: "Expand content"
|
|
5
|
-
}, t = {
|
|
6
|
-
"sv-SE": {
|
|
7
|
-
collapseContent: "Kollapsa innehåll",
|
|
8
|
-
expandContent: "Expandera innehåll"
|
|
9
|
-
},
|
|
10
|
-
"en-US": e,
|
|
11
|
-
"en-GB": e,
|
|
12
|
-
"nb-NO": {
|
|
13
|
-
collapseContent: "Skjul innhold",
|
|
14
|
-
expandContent: "Vis innhold"
|
|
15
|
-
},
|
|
16
|
-
"da-DK": {
|
|
17
|
-
collapseContent: "Skjul indhold",
|
|
18
|
-
expandContent: "Vis indhold"
|
|
19
|
-
},
|
|
20
|
-
"fr-FR": {
|
|
21
|
-
collapseContent: "Réduire le contenu",
|
|
22
|
-
expandContent: "Afficher le contenu"
|
|
23
|
-
},
|
|
24
|
-
"nl-BE": {
|
|
25
|
-
collapseContent: "Inhoud samenvouwen",
|
|
26
|
-
expandContent: "Inhoud uitvouwen"
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
//#endregion
|
|
30
|
-
export { t as translations };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { Translation } from './types.js';
|
|
2
|
-
export type Locales = "en-US" | "nb-NO" | "da-DK" | "sv-SE" | "en-GB" | "fr-FR" | "nl-BE";
|
|
3
|
-
export declare function interpolate(template: string, variables: {
|
|
4
|
-
[key: string]: string | number;
|
|
5
|
-
}): string;
|
|
6
|
-
export declare const translations: {
|
|
7
|
-
[key in Locales]: Translation;
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../lib/components/combobox/translations.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AAE1F,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,UAE1F;AAWD,eAAO,MAAM,YAAY,EAAE;KACzB,GAAG,IAAI,OAAO,GAAG,WAAW;CA4C7B,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
//#region lib/components/combobox/translations.ts
|
|
2
|
-
function e(e, t) {
|
|
3
|
-
return e.replace(/{(\w+)}/g, (e, n) => String(t[n] ?? ""));
|
|
4
|
-
}
|
|
5
|
-
var t = {
|
|
6
|
-
search: "Search for an option",
|
|
7
|
-
noMatchFor: "No match found for",
|
|
8
|
-
remove: "Remove",
|
|
9
|
-
clearSelection: "Clear selection",
|
|
10
|
-
showMaxItems: "Showing the first {count} options. Search to narrow down the list.",
|
|
11
|
-
back: "Back"
|
|
12
|
-
}, n = {
|
|
13
|
-
"sv-SE": {
|
|
14
|
-
search: "Sök efter ett alternativ",
|
|
15
|
-
noMatchFor: "Hittar inget som matchar",
|
|
16
|
-
remove: "Ta bort",
|
|
17
|
-
clearSelection: "Rensa urval",
|
|
18
|
-
showMaxItems: "Visar första {count} valen. Sök för att begränsa listan",
|
|
19
|
-
back: "Tillbaka"
|
|
20
|
-
},
|
|
21
|
-
"en-US": t,
|
|
22
|
-
"en-GB": t,
|
|
23
|
-
"nb-NO": {
|
|
24
|
-
search: "Søk etter et alternativ",
|
|
25
|
-
noMatchFor: "Ingen treff for",
|
|
26
|
-
remove: "Fjern",
|
|
27
|
-
clearSelection: "Fjern valg",
|
|
28
|
-
showMaxItems: "Viser de første {count} valgene. Søk for å begrense listen.",
|
|
29
|
-
back: "Tilbake"
|
|
30
|
-
},
|
|
31
|
-
"da-DK": {
|
|
32
|
-
search: "Søg efter en mulighed",
|
|
33
|
-
noMatchFor: "Ingen match for",
|
|
34
|
-
remove: "Fjern",
|
|
35
|
-
clearSelection: "Ryd valg",
|
|
36
|
-
showMaxItems: "Viser de første {count} valgmuligheder. Søg for at indsnævre listen.",
|
|
37
|
-
back: "Tilbage"
|
|
38
|
-
},
|
|
39
|
-
"fr-FR": {
|
|
40
|
-
search: "Rechercher une option",
|
|
41
|
-
noMatchFor: "Aucune correspondance pour",
|
|
42
|
-
remove: "Supprimer",
|
|
43
|
-
clearSelection: "Effacer la sélection",
|
|
44
|
-
showMaxItems: "Affichage des {count} premiers choix. Recherchez pour affiner la liste.",
|
|
45
|
-
back: "Retour"
|
|
46
|
-
},
|
|
47
|
-
"nl-BE": {
|
|
48
|
-
search: "Zoek naar een optie",
|
|
49
|
-
noMatchFor: "Geen overeenkomst voor",
|
|
50
|
-
remove: "Verwijderen",
|
|
51
|
-
clearSelection: "Selectie wissen",
|
|
52
|
-
showMaxItems: "Toont de eerste {count} keuzes. Zoek om de lijst te beperken.",
|
|
53
|
-
back: "Terug"
|
|
54
|
-
}
|
|
55
|
-
};
|
|
56
|
-
//#endregion
|
|
57
|
-
export { e as interpolate, n as translations };
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
export declare const translations: {
|
|
2
|
-
"sv-SE": {
|
|
3
|
-
primary: string;
|
|
4
|
-
secondary: string;
|
|
5
|
-
remove: string;
|
|
6
|
-
pullAndDrop: string;
|
|
7
|
-
or: string;
|
|
8
|
-
upload: string;
|
|
9
|
-
unsupportedFormat: string;
|
|
10
|
-
sizeExceeded: string;
|
|
11
|
-
};
|
|
12
|
-
"en-US": {
|
|
13
|
-
primary: string;
|
|
14
|
-
secondary: string;
|
|
15
|
-
remove: string;
|
|
16
|
-
pullAndDrop: string;
|
|
17
|
-
or: string;
|
|
18
|
-
upload: string;
|
|
19
|
-
unsupportedFormat: string;
|
|
20
|
-
sizeExceeded: string;
|
|
21
|
-
};
|
|
22
|
-
"en-GB": {
|
|
23
|
-
primary: string;
|
|
24
|
-
secondary: string;
|
|
25
|
-
remove: string;
|
|
26
|
-
pullAndDrop: string;
|
|
27
|
-
or: string;
|
|
28
|
-
upload: string;
|
|
29
|
-
unsupportedFormat: string;
|
|
30
|
-
sizeExceeded: string;
|
|
31
|
-
};
|
|
32
|
-
"nb-NO": {
|
|
33
|
-
primary: string;
|
|
34
|
-
secondary: string;
|
|
35
|
-
remove: string;
|
|
36
|
-
pullAndDrop: string;
|
|
37
|
-
or: string;
|
|
38
|
-
upload: string;
|
|
39
|
-
unsupportedFormat: string;
|
|
40
|
-
sizeExceeded: string;
|
|
41
|
-
};
|
|
42
|
-
"da-DK": {
|
|
43
|
-
primary: string;
|
|
44
|
-
secondary: string;
|
|
45
|
-
remove: string;
|
|
46
|
-
pullAndDrop: string;
|
|
47
|
-
or: string;
|
|
48
|
-
upload: string;
|
|
49
|
-
unsupportedFormat: string;
|
|
50
|
-
sizeExceeded: string;
|
|
51
|
-
};
|
|
52
|
-
"fr-FR": {
|
|
53
|
-
primary: string;
|
|
54
|
-
secondary: string;
|
|
55
|
-
remove: string;
|
|
56
|
-
pullAndDrop: string;
|
|
57
|
-
or: string;
|
|
58
|
-
upload: string;
|
|
59
|
-
unsupportedFormat: string;
|
|
60
|
-
sizeExceeded: string;
|
|
61
|
-
};
|
|
62
|
-
"nl-BE": {
|
|
63
|
-
primary: string;
|
|
64
|
-
secondary: string;
|
|
65
|
-
remove: string;
|
|
66
|
-
pullAndDrop: string;
|
|
67
|
-
or: string;
|
|
68
|
-
upload: string;
|
|
69
|
-
unsupportedFormat: string;
|
|
70
|
-
sizeExceeded: string;
|
|
71
|
-
};
|
|
72
|
-
};
|
|
73
|
-
//# sourceMappingURL=translations.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"translations.d.ts","sourceRoot":"","sources":["../../../lib/components/image-upload/translations.ts"],"names":[],"mappings":"AAYA,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2DxB,CAAC"}
|