@deepnoid/ui 0.0.80 → 0.0.84
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/{chunk-KWOLWE6I.mjs → chunk-463XE4SI.mjs} +4 -4
- package/dist/chunk-5T5F5WVS.mjs +32 -0
- package/dist/{chunk-S4DTK5GI.mjs → chunk-ADDUBJ4I.mjs} +1 -1
- package/dist/{chunk-GJKNTX2T.mjs → chunk-AHORH5PH.mjs} +6 -4
- package/dist/{chunk-7LYJAJIS.mjs → chunk-EWKYBS7I.mjs} +13 -6
- package/dist/{chunk-H7BLXC5M.mjs → chunk-ILMIS63S.mjs} +14 -14
- package/dist/{chunk-H737LHAY.mjs → chunk-KA4L5SCT.mjs} +8 -8
- package/dist/{chunk-DLVQWKQG.mjs → chunk-LGELMZCN.mjs} +24 -19
- package/dist/chunk-LXPWTJ3F.mjs +58 -0
- package/dist/{chunk-FNPWLOGV.mjs → chunk-NTTHTGDK.mjs} +39 -37
- package/dist/{chunk-G3CX6IWH.mjs → chunk-PUFNT5LS.mjs} +18 -6
- package/dist/{chunk-WIKB37T7.mjs → chunk-QCOPD2HG.mjs} +1 -1
- package/dist/{chunk-TLYAFXE2.mjs → chunk-QURXBWKK.mjs} +1902 -746
- package/dist/{chunk-TDMXAHWR.mjs → chunk-RTH3FPAS.mjs} +32 -6
- package/dist/chunk-SDNTEP5C.mjs +61 -0
- package/dist/{chunk-FLJ4ZZXV.mjs → chunk-SQLRQTFC.mjs} +1 -1
- package/dist/chunk-W7ABNK3K.mjs +1 -0
- package/dist/chunk-XTJL67KM.mjs +127 -0
- package/dist/chunk-ZYIIXWVY.mjs +1 -0
- package/dist/components/accordion/accordion.test.js +39 -37
- package/dist/components/accordion/accordion.test.mjs +1 -1
- package/dist/components/accordion/accordionItem.js +1905 -749
- package/dist/components/accordion/accordionItem.mjs +4 -4
- package/dist/components/accordion/index.js +1905 -749
- package/dist/components/accordion/index.mjs +4 -4
- package/dist/components/button/button-group.test.js +39 -37
- package/dist/components/button/button-group.test.mjs +2 -2
- package/dist/components/button/button.test.js +52 -50
- package/dist/components/button/button.test.mjs +2 -2
- package/dist/components/card/card.test.js +39 -37
- package/dist/components/card/card.test.mjs +1 -1
- package/dist/components/checkbox/checkbox.test.js +39 -37
- package/dist/components/checkbox/checkbox.test.mjs +2 -2
- package/dist/components/{list/list.d.mts → dropdown/dropdown.d.ts} +9 -9
- package/dist/components/dropdown/dropdown.js +122 -0
- package/dist/components/dropdown/dropdown.mjs +10 -0
- package/dist/components/dropdown/dropdown.test.js +12997 -0
- package/dist/components/dropdown/dropdown.test.mjs +25 -0
- package/dist/components/dropdown/index.js +128 -0
- package/dist/components/dropdown/index.mjs +11 -0
- package/dist/components/icon/Icon.d.ts +499 -1
- package/dist/components/icon/Icon.js +1940 -778
- package/dist/components/icon/Icon.mjs +6 -4
- package/dist/components/icon/index.js +1910 -751
- package/dist/components/icon/index.mjs +7 -5
- package/dist/components/icon/template.d.ts +98 -61
- package/dist/components/icon/template.js +1902 -746
- package/dist/components/icon/template.mjs +1 -1
- package/dist/components/input/index.js +1912 -756
- package/dist/components/input/index.mjs +4 -4
- package/dist/components/input/input.js +1912 -756
- package/dist/components/input/input.mjs +4 -4
- package/dist/components/input/input.test.js +1983 -825
- package/dist/components/input/input.test.mjs +6 -6
- package/dist/components/list/index.mjs +3 -3
- package/dist/components/list/list.test.js +39 -37
- package/dist/components/list/list.test.mjs +1 -1
- package/dist/components/modal/index.js +1942 -779
- package/dist/components/modal/index.mjs +3 -3
- package/dist/components/modal/modal.js +1942 -779
- package/dist/components/modal/modal.mjs +3 -3
- package/dist/components/modal/modal.test.js +1981 -816
- package/dist/components/modal/modal.test.mjs +4 -4
- package/dist/components/pagination/pagination.test.js +39 -37
- package/dist/components/pagination/pagination.test.mjs +1 -1
- package/dist/components/progress/progress.test.d.ts +0 -2
- package/dist/components/progress/progress.test.js +39 -37
- package/dist/components/progress/progress.test.mjs +1 -1
- package/dist/components/radio/radio.test.js +39 -37
- package/dist/components/radio/radio.test.mjs +1 -1
- package/dist/components/select/index.js +1905 -749
- package/dist/components/select/index.mjs +5 -5
- package/dist/components/select/option.js +1905 -749
- package/dist/components/select/option.mjs +4 -4
- package/dist/components/select/select.js +1905 -749
- package/dist/components/select/select.mjs +5 -5
- package/dist/components/select/select.test.js +1951 -793
- package/dist/components/select/select.test.mjs +7 -7
- package/dist/components/slider/slider.test.d.ts +0 -2
- package/dist/components/slider/slider.test.js +39 -37
- package/dist/components/slider/slider.test.mjs +1 -1
- package/dist/components/switch/switch.test.d.ts +0 -2
- package/dist/components/switch/switch.test.js +39 -37
- package/dist/components/switch/switch.test.mjs +1 -1
- package/dist/components/table/index.js +1985 -786
- package/dist/components/table/index.mjs +6 -6
- package/dist/components/table/table-body.d.ts +5 -2
- package/dist/components/table/table-body.js +1953 -792
- package/dist/components/table/table-body.mjs +4 -4
- package/dist/components/table/table-head.d.ts +4 -2
- package/dist/components/table/table-head.js +18 -6
- package/dist/components/table/table-head.mjs +1 -1
- package/dist/components/table/table.d.ts +32 -59
- package/dist/components/table/table.js +1985 -786
- package/dist/components/table/table.mjs +6 -6
- package/dist/components/table/table.test.d.ts +0 -2
- package/dist/components/table/table.test.js +2020 -819
- package/dist/components/table/table.test.mjs +7 -7
- package/dist/components/tabs/tabs.test.d.ts +0 -2
- package/dist/components/tabs/tabs.test.js +39 -37
- package/dist/components/tabs/tabs.test.mjs +2 -2
- package/dist/components/textarea/textarea.test.d.ts +0 -2
- package/dist/components/textarea/textarea.test.js +52 -50
- package/dist/components/textarea/textarea.test.mjs +2 -2
- package/dist/components/toast/index.js +3810 -0
- package/dist/components/toast/index.mjs +16 -0
- package/dist/components/toast/toast-utils.js +84 -0
- package/dist/components/toast/toast-utils.mjs +8 -0
- package/dist/components/toast/toast.d.ts +204 -0
- package/dist/components/toast/toast.js +3804 -0
- package/dist/components/toast/toast.mjs +15 -0
- package/dist/components/toast/toast.test.d.ts +0 -0
- package/dist/components/toast/toast.test.js +16689 -0
- package/dist/components/toast/toast.test.mjs +30 -0
- package/dist/components/toast/useToast.d.ts +0 -0
- package/dist/components/toast/useToast.js +110 -0
- package/dist/components/toast/useToast.mjs +9 -0
- package/dist/components/tooltip/tooltip-utils.d.ts +0 -2
- package/dist/components/tooltip/tooltip.test.d.ts +0 -2
- package/dist/components/tooltip/tooltip.test.js +39 -37
- package/dist/components/tooltip/tooltip.test.mjs +1 -1
- package/dist/components/tooltip/useTooltip.d.ts +0 -2
- package/dist/index.d.ts +4 -1
- package/dist/index.js +2247 -793
- package/dist/index.mjs +42 -28
- package/package.json +4 -3
- package/dist/components/accordion/accordion.d.mts +0 -154
- package/dist/components/accordion/accordionItem.d.mts +0 -282
- package/dist/components/accordion/index.d.mts +0 -6
- package/dist/components/button/button-group.d.mts +0 -14
- package/dist/components/button/button-group.test.d.mts +0 -2
- package/dist/components/button/button.d.mts +0 -18
- package/dist/components/button/button.test.d.mts +0 -2
- package/dist/components/button/index.d.mts +0 -3
- package/dist/components/card/card.d.mts +0 -124
- package/dist/components/card/card.test.d.mts +0 -2
- package/dist/components/card/index.d.mts +0 -5
- package/dist/components/card/index.d.ts +0 -5
- package/dist/components/checkbox/checkbox.d.mts +0 -349
- package/dist/components/checkbox/checkbox.test.d.mts +0 -2
- package/dist/components/checkbox/index.d.mts +0 -5
- package/dist/components/checkbox/index.d.ts +0 -5
- package/dist/components/icon/Icon.d.mts +0 -15
- package/dist/components/icon/index.d.mts +0 -4
- package/dist/components/icon/index.d.ts +0 -4
- package/dist/components/icon/template.d.mts +0 -97
- package/dist/components/input/index.d.mts +0 -5
- package/dist/components/input/index.d.ts +0 -5
- package/dist/components/input/input.d.mts +0 -437
- package/dist/components/input/input.test.d.mts +0 -2
- package/dist/components/list/index.d.mts +0 -6
- package/dist/components/list/list.test.d.mts +0 -2
- package/dist/components/list/listItem.d.mts +0 -183
- package/dist/components/modal/index.d.mts +0 -8
- package/dist/components/modal/index.d.ts +0 -8
- package/dist/components/modal/modal.d.mts +0 -214
- package/dist/components/modal/modal.test.d.mts +0 -2
- package/dist/components/pagination/index.d.mts +0 -4
- package/dist/components/pagination/index.d.ts +0 -4
- package/dist/components/pagination/pagination.d.mts +0 -186
- package/dist/components/pagination/pagination.test.d.mts +0 -2
- package/dist/components/pagination/usePagination.d.mts +0 -16
- package/dist/components/progress/index.d.mts +0 -5
- package/dist/components/progress/index.d.ts +0 -5
- package/dist/components/progress/progress.d.mts +0 -281
- package/dist/components/progress/progress.test.d.mts +0 -2
- package/dist/components/radio/index.d.mts +0 -5
- package/dist/components/radio/index.d.ts +0 -5
- package/dist/components/radio/radio.d.mts +0 -278
- package/dist/components/radio/radio.test.d.mts +0 -2
- package/dist/components/select/index.d.mts +0 -5
- package/dist/components/select/index.d.ts +0 -5
- package/dist/components/select/option.d.mts +0 -18
- package/dist/components/select/select.d.mts +0 -449
- package/dist/components/select/select.test.d.mts +0 -2
- package/dist/components/select/useSelect.d.mts +0 -32
- package/dist/components/slider/index.d.mts +0 -5
- package/dist/components/slider/index.d.ts +0 -5
- package/dist/components/slider/slider.d.mts +0 -333
- package/dist/components/slider/slider.test.d.mts +0 -2
- package/dist/components/switch/index.d.mts +0 -5
- package/dist/components/switch/index.d.ts +0 -5
- package/dist/components/switch/switch.d.mts +0 -304
- package/dist/components/switch/switch.test.d.mts +0 -2
- package/dist/components/table/index.d.mts +0 -5
- package/dist/components/table/index.d.ts +0 -5
- package/dist/components/table/table-body.d.mts +0 -23
- package/dist/components/table/table-head.d.mts +0 -19
- package/dist/components/table/table.d.mts +0 -610
- package/dist/components/table/table.test.d.mts +0 -2
- package/dist/components/tabs/index.d.mts +0 -5
- package/dist/components/tabs/index.d.ts +0 -5
- package/dist/components/tabs/tabs.d.mts +0 -241
- package/dist/components/tabs/tabs.test.d.mts +0 -2
- package/dist/components/textarea/index.d.mts +0 -2
- package/dist/components/textarea/index.d.ts +0 -2
- package/dist/components/textarea/textarea.d.mts +0 -17
- package/dist/components/textarea/textarea.test.d.mts +0 -2
- package/dist/components/tooltip/index.d.mts +0 -6
- package/dist/components/tooltip/index.d.ts +0 -6
- package/dist/components/tooltip/tooltip-utils.d.mts +0 -2
- package/dist/components/tooltip/tooltip.d.mts +0 -143
- package/dist/components/tooltip/tooltip.test.d.mts +0 -2
- package/dist/components/tooltip/useTooltip.d.mts +0 -2
- package/dist/index.d.mts +0 -30
- package/dist/tooltip-utils-DCKA5gnI.d.mts +0 -30
- package/dist/tooltip-utils-DCKA5gnI.d.ts +0 -30
- package/dist/utils/clsx.d.mts +0 -3
- package/dist/utils/props.d.mts +0 -3
- package/dist/utils/tailwind-variants.d.mts +0 -26
- package/dist/utils/types.d.mts +0 -10
- /package/dist/{chunk-M5PMA3CT.mjs → chunk-RDEWIZV3.mjs} +0 -0
- /package/dist/components/{accordion/accordion.test.d.mts → dropdown/dropdown.test.d.ts} +0 -0
|
@@ -4,9 +4,9 @@ import {
|
|
|
4
4
|
__toESM
|
|
5
5
|
} from "./chunk-IZ6II3QA.mjs";
|
|
6
6
|
|
|
7
|
-
// ../../node_modules
|
|
7
|
+
// ../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js
|
|
8
8
|
var require_ansi_styles = __commonJS({
|
|
9
|
-
"../../node_modules
|
|
9
|
+
"../../node_modules/@testing-library/dom/node_modules/ansi-styles/index.js"(exports, module2) {
|
|
10
10
|
"use strict";
|
|
11
11
|
var ANSI_BACKGROUND_OFFSET = 10;
|
|
12
12
|
var wrapAnsi256 = (offset = 0) => (code) => `\x1B[${38 + offset};5;${code}m`;
|
|
@@ -142,9 +142,9 @@ var require_ansi_styles = __commonJS({
|
|
|
142
142
|
}
|
|
143
143
|
});
|
|
144
144
|
|
|
145
|
-
// ../../node_modules/pretty-format/build/collections.js
|
|
145
|
+
// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js
|
|
146
146
|
var require_collections = __commonJS({
|
|
147
|
-
"../../node_modules/pretty-format/build/collections.js"(exports) {
|
|
147
|
+
"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/collections.js"(exports) {
|
|
148
148
|
"use strict";
|
|
149
149
|
Object.defineProperty(exports, "__esModule", {
|
|
150
150
|
value: true
|
|
@@ -260,9 +260,9 @@ var require_collections = __commonJS({
|
|
|
260
260
|
}
|
|
261
261
|
});
|
|
262
262
|
|
|
263
|
-
// ../../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
|
|
263
|
+
// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js
|
|
264
264
|
var require_AsymmetricMatcher = __commonJS({
|
|
265
|
-
"../../node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
|
|
265
|
+
"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/AsymmetricMatcher.js"(exports) {
|
|
266
266
|
"use strict";
|
|
267
267
|
Object.defineProperty(exports, "__esModule", {
|
|
268
268
|
value: true
|
|
@@ -347,9 +347,9 @@ var require_ansi_regex = __commonJS({
|
|
|
347
347
|
}
|
|
348
348
|
});
|
|
349
349
|
|
|
350
|
-
// ../../node_modules/pretty-format/build/plugins/ConvertAnsi.js
|
|
350
|
+
// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js
|
|
351
351
|
var require_ConvertAnsi = __commonJS({
|
|
352
|
-
"../../node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports) {
|
|
352
|
+
"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ConvertAnsi.js"(exports) {
|
|
353
353
|
"use strict";
|
|
354
354
|
Object.defineProperty(exports, "__esModule", {
|
|
355
355
|
value: true
|
|
@@ -418,9 +418,9 @@ var require_ConvertAnsi = __commonJS({
|
|
|
418
418
|
}
|
|
419
419
|
});
|
|
420
420
|
|
|
421
|
-
// ../../node_modules/pretty-format/build/plugins/DOMCollection.js
|
|
421
|
+
// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js
|
|
422
422
|
var require_DOMCollection = __commonJS({
|
|
423
|
-
"../../node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
|
|
423
|
+
"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMCollection.js"(exports) {
|
|
424
424
|
"use strict";
|
|
425
425
|
Object.defineProperty(exports, "__esModule", {
|
|
426
426
|
value: true
|
|
@@ -468,9 +468,9 @@ var require_DOMCollection = __commonJS({
|
|
|
468
468
|
}
|
|
469
469
|
});
|
|
470
470
|
|
|
471
|
-
// ../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js
|
|
471
|
+
// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js
|
|
472
472
|
var require_escapeHTML = __commonJS({
|
|
473
|
-
"../../node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
|
|
473
|
+
"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/escapeHTML.js"(exports) {
|
|
474
474
|
"use strict";
|
|
475
475
|
Object.defineProperty(exports, "__esModule", {
|
|
476
476
|
value: true
|
|
@@ -482,9 +482,9 @@ var require_escapeHTML = __commonJS({
|
|
|
482
482
|
}
|
|
483
483
|
});
|
|
484
484
|
|
|
485
|
-
// ../../node_modules/pretty-format/build/plugins/lib/markup.js
|
|
485
|
+
// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js
|
|
486
486
|
var require_markup = __commonJS({
|
|
487
|
-
"../../node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
|
|
487
|
+
"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/lib/markup.js"(exports) {
|
|
488
488
|
"use strict";
|
|
489
489
|
Object.defineProperty(exports, "__esModule", {
|
|
490
490
|
value: true
|
|
@@ -537,9 +537,9 @@ var require_markup = __commonJS({
|
|
|
537
537
|
}
|
|
538
538
|
});
|
|
539
539
|
|
|
540
|
-
// ../../node_modules/pretty-format/build/plugins/DOMElement.js
|
|
540
|
+
// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js
|
|
541
541
|
var require_DOMElement = __commonJS({
|
|
542
|
-
"../../node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
|
|
542
|
+
"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/DOMElement.js"(exports) {
|
|
543
543
|
"use strict";
|
|
544
544
|
Object.defineProperty(exports, "__esModule", {
|
|
545
545
|
value: true
|
|
@@ -625,9 +625,9 @@ var require_DOMElement = __commonJS({
|
|
|
625
625
|
}
|
|
626
626
|
});
|
|
627
627
|
|
|
628
|
-
// ../../node_modules/pretty-format/build/plugins/Immutable.js
|
|
628
|
+
// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js
|
|
629
629
|
var require_Immutable = __commonJS({
|
|
630
|
-
"../../node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
|
|
630
|
+
"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/Immutable.js"(exports) {
|
|
631
631
|
"use strict";
|
|
632
632
|
Object.defineProperty(exports, "__esModule", {
|
|
633
633
|
value: true
|
|
@@ -782,9 +782,9 @@ var require_Immutable = __commonJS({
|
|
|
782
782
|
}
|
|
783
783
|
});
|
|
784
784
|
|
|
785
|
-
// ../../node_modules/react-is/cjs/react-is.production.min.js
|
|
785
|
+
// ../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js
|
|
786
786
|
var require_react_is_production_min = __commonJS({
|
|
787
|
-
"../../node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
|
787
|
+
"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.production.min.js"(exports) {
|
|
788
788
|
"use strict";
|
|
789
789
|
var b = 60103;
|
|
790
790
|
var c = 60106;
|
|
@@ -920,9 +920,9 @@ var require_react_is_production_min = __commonJS({
|
|
|
920
920
|
}
|
|
921
921
|
});
|
|
922
922
|
|
|
923
|
-
// ../../node_modules/react-is/cjs/react-is.development.js
|
|
923
|
+
// ../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.development.js
|
|
924
924
|
var require_react_is_development = __commonJS({
|
|
925
|
-
"../../node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
925
|
+
"../../node_modules/@testing-library/dom/node_modules/react-is/cjs/react-is.development.js"(exports) {
|
|
926
926
|
"use strict";
|
|
927
927
|
if (process.env.NODE_ENV !== "production") {
|
|
928
928
|
(function() {
|
|
@@ -1112,9 +1112,9 @@ var require_react_is_development = __commonJS({
|
|
|
1112
1112
|
}
|
|
1113
1113
|
});
|
|
1114
1114
|
|
|
1115
|
-
// ../../node_modules/react-is/index.js
|
|
1115
|
+
// ../../node_modules/@testing-library/dom/node_modules/react-is/index.js
|
|
1116
1116
|
var require_react_is = __commonJS({
|
|
1117
|
-
"../../node_modules/react-is/index.js"(exports, module2) {
|
|
1117
|
+
"../../node_modules/@testing-library/dom/node_modules/react-is/index.js"(exports, module2) {
|
|
1118
1118
|
"use strict";
|
|
1119
1119
|
if (process.env.NODE_ENV === "production") {
|
|
1120
1120
|
module2.exports = require_react_is_production_min();
|
|
@@ -1124,9 +1124,9 @@ var require_react_is = __commonJS({
|
|
|
1124
1124
|
}
|
|
1125
1125
|
});
|
|
1126
1126
|
|
|
1127
|
-
// ../../node_modules/pretty-format/build/plugins/ReactElement.js
|
|
1127
|
+
// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js
|
|
1128
1128
|
var require_ReactElement = __commonJS({
|
|
1129
|
-
"../../node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
|
|
1129
|
+
"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactElement.js"(exports) {
|
|
1130
1130
|
"use strict";
|
|
1131
1131
|
Object.defineProperty(exports, "__esModule", {
|
|
1132
1132
|
value: true
|
|
@@ -1254,9 +1254,9 @@ var require_ReactElement = __commonJS({
|
|
|
1254
1254
|
}
|
|
1255
1255
|
});
|
|
1256
1256
|
|
|
1257
|
-
// ../../node_modules/pretty-format/build/plugins/ReactTestComponent.js
|
|
1257
|
+
// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js
|
|
1258
1258
|
var require_ReactTestComponent = __commonJS({
|
|
1259
|
-
"../../node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
|
|
1259
|
+
"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/plugins/ReactTestComponent.js"(exports) {
|
|
1260
1260
|
"use strict";
|
|
1261
1261
|
Object.defineProperty(exports, "__esModule", {
|
|
1262
1262
|
value: true
|
|
@@ -1316,9 +1316,9 @@ var require_ReactTestComponent = __commonJS({
|
|
|
1316
1316
|
}
|
|
1317
1317
|
});
|
|
1318
1318
|
|
|
1319
|
-
// ../../node_modules/pretty-format/build/index.js
|
|
1319
|
+
// ../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js
|
|
1320
1320
|
var require_build = __commonJS({
|
|
1321
|
-
"../../node_modules/pretty-format/build/index.js"(exports) {
|
|
1321
|
+
"../../node_modules/@testing-library/dom/node_modules/pretty-format/build/index.js"(exports) {
|
|
1322
1322
|
"use strict";
|
|
1323
1323
|
Object.defineProperty(exports, "__esModule", {
|
|
1324
1324
|
value: true
|
|
@@ -8749,7 +8749,9 @@ var require_lz_string = __commonJS({
|
|
|
8749
8749
|
return keyStrBase64.charAt(a);
|
|
8750
8750
|
});
|
|
8751
8751
|
switch (res.length % 4) {
|
|
8752
|
+
// To produce valid Base64
|
|
8752
8753
|
default:
|
|
8754
|
+
// When could this happen ?
|
|
8753
8755
|
case 0:
|
|
8754
8756
|
return res;
|
|
8755
8757
|
case 1:
|
|
@@ -9182,7 +9184,7 @@ var require_lz_string = __commonJS({
|
|
|
9182
9184
|
// ../../node_modules/@testing-library/dom/dist/@testing-library/dom.esm.js
|
|
9183
9185
|
var prettyFormat = __toESM(require_build());
|
|
9184
9186
|
|
|
9185
|
-
// ../../node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs
|
|
9187
|
+
// ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/polyfills/array.from.mjs
|
|
9186
9188
|
var toStr = Object.prototype.toString;
|
|
9187
9189
|
function isCallable(fn) {
|
|
9188
9190
|
return typeof fn === "function" || toStr.call(fn) === "[object Function]";
|
|
@@ -9230,7 +9232,7 @@ function arrayFrom(arrayLike, mapFn) {
|
|
|
9230
9232
|
return A;
|
|
9231
9233
|
}
|
|
9232
9234
|
|
|
9233
|
-
// ../../node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
|
|
9235
|
+
// ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/polyfills/SetLike.mjs
|
|
9234
9236
|
function _typeof(obj) {
|
|
9235
9237
|
"@babel/helpers - typeof";
|
|
9236
9238
|
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
@@ -9334,7 +9336,7 @@ var SetLike = /* @__PURE__ */ function() {
|
|
|
9334
9336
|
}();
|
|
9335
9337
|
var SetLike_default = typeof Set === "undefined" ? Set : SetLike;
|
|
9336
9338
|
|
|
9337
|
-
// ../../node_modules/dom-accessibility-api/dist/getRole.mjs
|
|
9339
|
+
// ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/getRole.mjs
|
|
9338
9340
|
function getLocalName(element) {
|
|
9339
9341
|
var _element$localName;
|
|
9340
9342
|
return (
|
|
@@ -9517,7 +9519,7 @@ function getExplicitRole(element) {
|
|
|
9517
9519
|
return null;
|
|
9518
9520
|
}
|
|
9519
9521
|
|
|
9520
|
-
// ../../node_modules/dom-accessibility-api/dist/util.mjs
|
|
9522
|
+
// ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/util.mjs
|
|
9521
9523
|
function isElement(node) {
|
|
9522
9524
|
return node !== null && node.nodeType === node.ELEMENT_NODE;
|
|
9523
9525
|
}
|
|
@@ -9586,7 +9588,7 @@ function hasAnyConcreteRoles(node, roles2) {
|
|
|
9586
9588
|
return false;
|
|
9587
9589
|
}
|
|
9588
9590
|
|
|
9589
|
-
// ../../node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
|
|
9591
|
+
// ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/accessible-name-and-description.mjs
|
|
9590
9592
|
function asFlatString(s) {
|
|
9591
9593
|
return s.trim().replace(/\s\s+/g, " ");
|
|
9592
9594
|
}
|
|
@@ -9955,7 +9957,7 @@ function computeTextAlternative(root) {
|
|
|
9955
9957
|
}));
|
|
9956
9958
|
}
|
|
9957
9959
|
|
|
9958
|
-
// ../../node_modules/dom-accessibility-api/dist/accessible-description.mjs
|
|
9960
|
+
// ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/accessible-description.mjs
|
|
9959
9961
|
function _typeof2(obj) {
|
|
9960
9962
|
"@babel/helpers - typeof";
|
|
9961
9963
|
return _typeof2 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function(obj2) {
|
|
@@ -10022,7 +10024,7 @@ function computeAccessibleDescription(root) {
|
|
|
10022
10024
|
return description;
|
|
10023
10025
|
}
|
|
10024
10026
|
|
|
10025
|
-
// ../../node_modules/dom-accessibility-api/dist/accessible-name.mjs
|
|
10027
|
+
// ../../node_modules/@testing-library/dom/node_modules/dom-accessibility-api/dist/accessible-name.mjs
|
|
10026
10028
|
function prohibitsNaming(node) {
|
|
10027
10029
|
return hasAnyConcreteRoles(node, ["caption", "code", "deletion", "emphasis", "generic", "insertion", "paragraph", "presentation", "strong", "subscript", "superscript"]);
|
|
10028
10030
|
}
|
|
@@ -10,7 +10,17 @@ import {
|
|
|
10
10
|
import { useCallback } from "react";
|
|
11
11
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
12
12
|
import { createElement } from "react";
|
|
13
|
-
var TableHead = ({
|
|
13
|
+
var TableHead = ({
|
|
14
|
+
columns,
|
|
15
|
+
slots,
|
|
16
|
+
size,
|
|
17
|
+
color,
|
|
18
|
+
isExpanded,
|
|
19
|
+
isSelected,
|
|
20
|
+
isAllSelected,
|
|
21
|
+
classNames,
|
|
22
|
+
onSelectAll
|
|
23
|
+
}) => {
|
|
14
24
|
const getTheadProps = useCallback(
|
|
15
25
|
() => ({
|
|
16
26
|
className: slots.thead({ class: clsx(classNames == null ? void 0 : classNames.thead) })
|
|
@@ -27,14 +37,16 @@ var TableHead = ({ columns, slots, size, color, isSelected, isExpanded, classNam
|
|
|
27
37
|
({ className }) => ({
|
|
28
38
|
className: slots.th({ class: clsx(classNames == null ? void 0 : classNames.th, className) })
|
|
29
39
|
}),
|
|
30
|
-
[classNames == null ? void 0 : classNames.th,
|
|
40
|
+
[classNames == null ? void 0 : classNames.th, slots]
|
|
31
41
|
);
|
|
42
|
+
const handleClickSelectAll = (e) => {
|
|
43
|
+
e.preventDefault();
|
|
44
|
+
onSelectAll(!isAllSelected);
|
|
45
|
+
};
|
|
32
46
|
return /* @__PURE__ */ jsx("thead", { ...getTheadProps(), children: /* @__PURE__ */ jsxs("tr", { ...getTrProps(), children: [
|
|
33
|
-
isSelected && /* @__PURE__ */ jsx("th", { className: "w-[40px]", children: /* @__PURE__ */ jsx(checkbox_default, { size, color, classNames: { wrapper: "bg-background" } }) }),
|
|
47
|
+
isSelected && /* @__PURE__ */ jsx("th", { className: "w-[40px]", onClick: handleClickSelectAll, children: /* @__PURE__ */ jsx(checkbox_default, { size, color, checked: isAllSelected, classNames: { wrapper: "bg-background" } }) }),
|
|
34
48
|
isExpanded && /* @__PURE__ */ jsx("th", { className: "w-[40px]" }),
|
|
35
|
-
columns.map((column, index) => {
|
|
36
|
-
return /* @__PURE__ */ createElement("th", { ...getThProps(column), key: column.field + index + "th" }, column.headerName);
|
|
37
|
-
})
|
|
49
|
+
columns.map((column, index) => /* @__PURE__ */ createElement("th", { ...getThProps(column), key: column.field + index + "th" }, column.headerName))
|
|
38
50
|
] }) });
|
|
39
51
|
};
|
|
40
52
|
var table_head_default = TableHead;
|