@godxjp/ui 6.0.0 → 6.0.2
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/app/index.d.ts +140 -0
- package/dist/app/index.js +38 -0
- package/dist/app.prop-IobwLwaM.d.ts +90 -0
- package/dist/checkbox-NkFkqsQ8.d.ts +13 -0
- package/dist/chunk-2XW7J3EI.js +226 -0
- package/dist/chunk-3F2AKYRD.js +416 -0
- package/dist/chunk-3KPEZ5CF.js +37 -0
- package/dist/chunk-3UGU5TYP.js +89 -0
- package/{src/props/registry.ts → dist/chunk-6RA3KSVK.js} +118 -133
- package/dist/chunk-7NZFVD24.js +122 -0
- package/dist/chunk-7PWBC4BY.js +25 -0
- package/dist/chunk-7S7MYFXE.js +61 -0
- package/dist/chunk-7WRZG2IG.js +71 -0
- package/dist/chunk-B775Y6BE.js +1 -0
- package/dist/chunk-BHV2FUOA.js +111 -0
- package/dist/chunk-BI3HERR7.js +70 -0
- package/dist/chunk-BPSKQUL2.js +68 -0
- package/dist/chunk-CDWPQ5RP.js +187 -0
- package/dist/chunk-CP2LET6N.js +244 -0
- package/dist/chunk-CQBADMFG.js +20 -0
- package/dist/chunk-CRERCLIZ.js +33 -0
- package/dist/chunk-DU6ZYZRP.js +238 -0
- package/dist/chunk-DY5C44UP.js +55 -0
- package/dist/chunk-E4HJNQ62.js +117 -0
- package/dist/chunk-E76QIYSY.js +93 -0
- package/dist/chunk-F7PG4OEV.js +37 -0
- package/dist/chunk-GDSVW62T.js +171 -0
- package/dist/chunk-H2FHJOLU.js +178 -0
- package/dist/chunk-HJEBRCXL.js +55 -0
- package/dist/chunk-ICM6XBST.js +16 -0
- package/{src/components/data-entry/calendar.tsx → dist/chunk-IK7I3ABN.js} +33 -35
- package/dist/chunk-L6J44O74.js +144 -0
- package/dist/chunk-LDSLS6HE.js +1 -0
- package/dist/chunk-LVNUHUEZ.js +191 -0
- package/dist/chunk-M64MVRLS.js +92 -0
- package/dist/chunk-NGQW3KEM.js +402 -0
- package/dist/chunk-NZ4FOC5N.js +559 -0
- package/dist/chunk-PIIRNAXA.js +26 -0
- package/dist/chunk-S66TJXJU.js +33 -0
- package/dist/chunk-SMLKNECP.js +133 -0
- package/dist/chunk-TAHBM3F2.js +66 -0
- package/dist/chunk-TO33OY4L.js +150 -0
- package/dist/chunk-TO7URV7U.js +51 -0
- package/dist/chunk-TOO5AEKL.js +81 -0
- package/dist/chunk-U3GHAOIJ.js +299 -0
- package/dist/chunk-U7N2A7A3.js +9 -0
- package/dist/chunk-UX634MYF.js +123 -0
- package/dist/chunk-V6UWJKZF.js +28 -0
- package/{src/components/data-entry/input.tsx → dist/chunk-VOHTRR5X.js} +18 -16
- package/dist/chunk-WRFKVUPW.js +332 -0
- package/dist/chunk-WXW43RK5.js +24 -0
- package/{src/components/navigation/tabs.tsx → dist/chunk-XG7XDYIM.js} +46 -53
- package/dist/chunk-YFCQKO3B.js +842 -0
- package/dist/chunk-ZDWXGWLY.js +73 -0
- package/dist/chunk-ZLK5SPT6.js +11 -0
- package/dist/chunk-ZS6DTAM2.js +31 -0
- package/dist/chunk-ZT5UEUBO.js +1 -0
- package/dist/components/admin/index.d.ts +80 -0
- package/dist/components/admin/index.js +38 -0
- package/dist/components/data-display/badge.d.ts +12 -0
- package/dist/components/data-display/badge.js +3 -0
- package/dist/components/data-display/card.d.ts +87 -0
- package/dist/components/data-display/card.js +2 -0
- package/dist/components/data-display/index.d.ts +72 -0
- package/dist/components/data-display/index.js +89 -0
- package/dist/components/data-display/popover.d.ts +13 -0
- package/dist/components/data-display/popover.js +2 -0
- package/dist/components/data-display/scroll-area.d.ts +7 -0
- package/dist/components/data-display/scroll-area.js +2 -0
- package/dist/components/data-display/table.d.ts +10 -0
- package/dist/components/data-display/table.js +3 -0
- package/dist/components/data-entry/autocomplete.d.ts +16 -0
- package/dist/components/data-entry/autocomplete.js +8 -0
- package/dist/components/data-entry/calendar.d.ts +16 -0
- package/dist/components/data-entry/calendar.js +4 -0
- package/dist/components/data-entry/cascader.d.ts +32 -0
- package/dist/components/data-entry/cascader.js +13 -0
- package/dist/components/data-entry/checkbox.d.ts +13 -0
- package/dist/components/data-entry/checkbox.js +4 -0
- package/dist/components/data-entry/color-picker.d.ts +16 -0
- package/dist/components/data-entry/color-picker.js +6 -0
- package/dist/components/data-entry/command.d.ts +69 -0
- package/dist/components/data-entry/command.js +3 -0
- package/dist/components/data-entry/date-picker.d.ts +16 -0
- package/dist/components/data-entry/date-picker.js +8 -0
- package/dist/components/data-entry/date-range-picker.d.ts +16 -0
- package/dist/components/data-entry/date-range-picker.js +8 -0
- package/dist/components/data-entry/index.d.ts +53 -0
- package/dist/components/data-entry/index.js +152 -0
- package/dist/components/data-entry/input.d.ts +6 -0
- package/dist/components/data-entry/input.js +2 -0
- package/dist/components/data-entry/label.d.ts +8 -0
- package/dist/components/data-entry/label.js +2 -0
- package/dist/components/data-entry/radio.d.ts +24 -0
- package/dist/components/data-entry/radio.js +4 -0
- package/dist/components/data-entry/select.d.ts +18 -0
- package/dist/components/data-entry/select.js +3 -0
- package/dist/components/data-entry/slider.d.ts +16 -0
- package/dist/components/data-entry/slider.js +2 -0
- package/dist/components/data-entry/switch.d.ts +17 -0
- package/dist/components/data-entry/switch.js +2 -0
- package/dist/components/data-entry/textarea.d.ts +6 -0
- package/dist/components/data-entry/textarea.js +3 -0
- package/dist/components/data-entry/time-picker.d.ts +16 -0
- package/dist/components/data-entry/time-picker.js +7 -0
- package/dist/components/data-entry/transfer.d.ts +17 -0
- package/dist/components/data-entry/transfer.js +11 -0
- package/dist/components/data-entry/tree-select.d.ts +26 -0
- package/dist/components/data-entry/tree-select.js +13 -0
- package/dist/components/data-entry/upload.d.ts +42 -0
- package/dist/components/data-entry/upload.js +11 -0
- package/dist/components/feedback/alert.d.ts +60 -0
- package/dist/components/feedback/alert.js +7 -0
- package/dist/components/feedback/dialog.d.ts +64 -0
- package/dist/components/feedback/dialog.js +7 -0
- package/dist/components/feedback/index.d.ts +16 -0
- package/dist/components/feedback/index.js +14 -0
- package/dist/components/feedback/sheet.d.ts +24 -0
- package/dist/components/feedback/sheet.js +2 -0
- package/dist/components/feedback/sonner.d.ts +6 -0
- package/dist/components/feedback/sonner.js +1 -0
- package/dist/components/general/button.d.ts +20 -0
- package/dist/components/general/button.js +2 -0
- package/dist/components/general/index.d.ts +6 -0
- package/dist/components/general/index.js +2 -0
- package/dist/components/layout/index.d.ts +71 -0
- package/dist/components/layout/index.js +5 -0
- package/dist/components/navigation/dropdown-menu.d.ts +28 -0
- package/dist/components/navigation/dropdown-menu.js +2 -0
- package/dist/components/navigation/index.d.ts +32 -0
- package/dist/components/navigation/index.js +12 -0
- package/dist/components/navigation/pagination.d.ts +11 -0
- package/dist/components/navigation/pagination.js +7 -0
- package/dist/components/navigation/steps.d.ts +12 -0
- package/dist/components/navigation/steps.js +3 -0
- package/dist/components/navigation/tabs-items.d.ts +12 -0
- package/dist/components/navigation/tabs-items.js +3 -0
- package/dist/components/navigation/tabs.d.ts +12 -0
- package/dist/components/navigation/tabs.js +2 -0
- package/dist/components/query/index.d.ts +43 -0
- package/dist/components/query/index.js +8 -0
- package/dist/components/ui/index.d.ts +57 -0
- package/dist/components/ui/index.js +37 -0
- package/{src/props/vocabulary/content.prop.ts → dist/content.prop-D1Dd3TAc.d.ts} +16 -20
- package/dist/data-display.prop-DNTAzmDy.d.ts +58 -0
- package/dist/data-entry.prop-BEGA1lTq.d.ts +323 -0
- package/dist/data-table-D1u_rKLK.d.ts +83 -0
- package/dist/data.prop-BVvfKC_g.d.ts +41 -0
- package/dist/feedback.prop-BmxUlpAW.d.ts +64 -0
- package/dist/filter-bar-B7OGFO9S.d.ts +10 -0
- package/dist/form/index.d.ts +21 -0
- package/dist/form/index.js +4 -0
- package/dist/form.prop-BHgpuFFm.d.ts +41 -0
- package/dist/format-date-ByyZoqI5.d.ts +51 -0
- package/dist/general.prop-D7brMPNL.d.ts +16 -0
- package/dist/i18n/index.d.ts +217 -0
- package/dist/i18n/index.js +2 -0
- package/dist/index.d.ts +53 -0
- package/dist/index.js +39 -0
- package/dist/inline-C5u6ptJV.d.ts +10 -0
- package/dist/interaction.prop-Cdn7wOtq.d.ts +25 -0
- package/{src/props/vocabulary/layout.prop.ts → dist/layout.prop-4TCNvyQZ.d.ts} +9 -14
- package/dist/layout.prop-C795F0qg.d.ts +112 -0
- package/dist/lib/datetime/index.d.ts +31 -0
- package/dist/lib/datetime/index.js +1 -0
- package/dist/lib/utils.d.ts +5 -0
- package/dist/lib/utils.js +1 -0
- package/dist/navigation.prop-DpZqcXey.d.ts +78 -0
- package/dist/navigation.prop-DxBiClEH.d.ts +20 -0
- package/dist/props/components/index.d.ts +27 -0
- package/dist/props/components/index.js +1 -0
- package/dist/props/index.d.ts +28 -0
- package/dist/props/index.js +3 -0
- package/dist/props/registry.d.ts +649 -0
- package/dist/props/registry.js +1 -0
- package/dist/props/vocabulary/index.d.ts +7 -0
- package/dist/props/vocabulary/index.js +1 -0
- package/dist/query.prop-hIPrk2zI.d.ts +71 -0
- package/dist/search-input-uP01rY1L.d.ts +22 -0
- package/dist/shared.prop-BNRJc9K0.d.ts +45 -0
- package/{src → dist}/styles/control.css +1 -1
- package/dist/types-mvzYGrma.d.ts +37 -0
- package/dist/use-toast-Dol5bdY3.d.ts +34 -0
- package/package.json +234 -68
- package/src/app/__tests__/app-provider.test.tsx +0 -232
- package/src/app/__tests__/date-format-labels.test.ts +0 -36
- package/src/app/__tests__/date-formats.test.ts +0 -44
- package/src/app/__tests__/timezones.test.ts +0 -65
- package/src/app/app-provider.tsx +0 -227
- package/src/app/date-format-labels.ts +0 -21
- package/src/app/date-formats.ts +0 -30
- package/src/app/index.ts +0 -40
- package/src/app/locales.ts +0 -32
- package/src/app/request-headers.ts +0 -31
- package/src/app/storage.ts +0 -44
- package/src/app/time-format-labels.ts +0 -19
- package/src/app/time-formats.ts +0 -15
- package/src/app/timezones.ts +0 -208
- package/src/app/types.ts +0 -39
- package/src/app/use-formatting.ts +0 -47
- package/src/components/__tests__/accessibility-primitives.test.tsx +0 -65
- package/src/components/__tests__/docs-parity.test.ts +0 -41
- package/src/components/__tests__/shadcn-release-guardrails.test.ts +0 -71
- package/src/components/__tests__/theme-axes-integration.test.tsx +0 -242
- package/src/components/admin/index.ts +0 -76
- package/src/components/data-display/__tests__/card-table.test.tsx +0 -328
- package/src/components/data-display/__tests__/data-display.test.tsx +0 -73
- package/src/components/data-display/__tests__/data-table.test.tsx +0 -84
- package/src/components/data-display/__tests__/popover.test.tsx +0 -92
- package/src/components/data-display/__tests__/scroll-area-collapsible.test.tsx +0 -66
- package/src/components/data-display/badge.tsx +0 -27
- package/src/components/data-display/card.tsx +0 -194
- package/src/components/data-display/code-badge.tsx +0 -28
- package/src/components/data-display/collapsible.tsx +0 -5
- package/src/components/data-display/data-table.tsx +0 -476
- package/src/components/data-display/empty-state.tsx +0 -22
- package/src/components/data-display/index.ts +0 -41
- package/src/components/data-display/key-value-grid.tsx +0 -46
- package/src/components/data-display/popover.tsx +0 -62
- package/src/components/data-display/progress-meter.tsx +0 -20
- package/src/components/data-display/scan-panel.tsx +0 -16
- package/src/components/data-display/scroll-area.tsx +0 -42
- package/src/components/data-display/status-badge.tsx +0 -83
- package/src/components/data-display/table.tsx +0 -59
- package/src/components/data-display/timeline.tsx +0 -42
- package/src/components/data-display/tree-list.tsx +0 -42
- package/src/components/data-entry/__fixtures__/tree-options.ts +0 -80
- package/src/components/data-entry/__tests__/cascader-tree-transfer.test.tsx +0 -417
- package/src/components/data-entry/__tests__/checkbox-group.test.tsx +0 -40
- package/src/components/data-entry/__tests__/checkbox.test.tsx +0 -20
- package/src/components/data-entry/__tests__/date-autocomplete.test.tsx +0 -94
- package/src/components/data-entry/__tests__/form-field.test.tsx +0 -49
- package/src/components/data-entry/__tests__/input-textarea.test.tsx +0 -38
- package/src/components/data-entry/__tests__/label-select.test.tsx +0 -62
- package/src/components/data-entry/__tests__/pickers.test.tsx +0 -74
- package/src/components/data-entry/__tests__/radio.test.tsx +0 -46
- package/src/components/data-entry/__tests__/search-input.test.tsx +0 -32
- package/src/components/data-entry/__tests__/switch-field.test.tsx +0 -52
- package/src/components/data-entry/__tests__/upload.test.tsx +0 -125
- package/src/components/data-entry/autocomplete.tsx +0 -91
- package/src/components/data-entry/cascader.tsx +0 -305
- package/src/components/data-entry/checkbox-group.tsx +0 -90
- package/src/components/data-entry/checkbox.tsx +0 -30
- package/src/components/data-entry/choice-field.tsx +0 -27
- package/src/components/data-entry/choice-option.ts +0 -20
- package/src/components/data-entry/color-picker.tsx +0 -75
- package/src/components/data-entry/command.tsx +0 -56
- package/src/components/data-entry/country-select.tsx +0 -88
- package/src/components/data-entry/date-picker.tsx +0 -69
- package/src/components/data-entry/date-range-picker.tsx +0 -75
- package/src/components/data-entry/form-field.tsx +0 -59
- package/src/components/data-entry/index.ts +0 -62
- package/src/components/data-entry/label.tsx +0 -25
- package/src/components/data-entry/radio.tsx +0 -109
- package/src/components/data-entry/search-input.tsx +0 -103
- package/src/components/data-entry/select.tsx +0 -149
- package/src/components/data-entry/slider.tsx +0 -38
- package/src/components/data-entry/switch-field.tsx +0 -91
- package/src/components/data-entry/switch.tsx +0 -24
- package/src/components/data-entry/textarea.tsx +0 -12
- package/src/components/data-entry/time-picker.tsx +0 -214
- package/src/components/data-entry/transfer.tsx +0 -231
- package/src/components/data-entry/tree-select-strategy.ts +0 -6
- package/src/components/data-entry/tree-select.tsx +0 -279
- package/src/components/data-entry/tree-utils.ts +0 -221
- package/src/components/data-entry/upload-crop-dialog.tsx +0 -109
- package/src/components/data-entry/upload-types.ts +0 -86
- package/src/components/data-entry/upload.tsx +0 -498
- package/src/components/data-entry/use-upload-draft.ts +0 -93
- package/src/components/feedback/__tests__/alert.test.tsx +0 -127
- package/src/components/feedback/__tests__/dialog.test.tsx +0 -290
- package/src/components/feedback/__tests__/sheet.test.tsx +0 -94
- package/src/components/feedback/__tests__/skeleton.test.tsx +0 -25
- package/src/components/feedback/__tests__/toast.test.tsx +0 -52
- package/src/components/feedback/alert.tsx +0 -167
- package/src/components/feedback/dialog.tsx +0 -325
- package/src/components/feedback/index.ts +0 -53
- package/src/components/feedback/sheet.tsx +0 -130
- package/src/components/feedback/skeleton.tsx +0 -95
- package/src/components/feedback/sonner.tsx +0 -54
- package/src/components/feedback/toaster.tsx +0 -1
- package/src/components/feedback/use-toast.ts +0 -62
- package/src/components/general/__tests__/button.test.tsx +0 -71
- package/src/components/general/button.tsx +0 -61
- package/src/components/general/index.ts +0 -2
- package/src/components/layout/__tests__/page-container.test.tsx +0 -69
- package/src/components/layout/__tests__/page-inset.test.tsx +0 -14
- package/src/components/layout/__tests__/stack-inline.test.tsx +0 -39
- package/src/components/layout/app-shell.tsx +0 -42
- package/src/components/layout/breadcrumb.tsx +0 -35
- package/src/components/layout/index.ts +0 -31
- package/src/components/layout/inline.tsx +0 -13
- package/src/components/layout/menu.tsx +0 -34
- package/src/components/layout/mobile-frame.tsx +0 -57
- package/src/components/layout/page-container.tsx +0 -81
- package/src/components/layout/page-inset.tsx +0 -16
- package/src/components/layout/responsive-grid.tsx +0 -14
- package/src/components/layout/shell-app.tsx +0 -30
- package/src/components/layout/sidebar.tsx +0 -98
- package/src/components/layout/split-pane.tsx +0 -16
- package/src/components/layout/stack.tsx +0 -13
- package/src/components/layout/topbar.tsx +0 -108
- package/src/components/navigation/__tests__/app-pickers.test.tsx +0 -118
- package/src/components/navigation/__tests__/dropdown-menu.test.tsx +0 -104
- package/src/components/navigation/__tests__/navigation.test.tsx +0 -61
- package/src/components/navigation/__tests__/pagination-steps-tabs.test.tsx +0 -76
- package/src/components/navigation/date-format-picker.tsx +0 -55
- package/src/components/navigation/dropdown-menu.tsx +0 -190
- package/src/components/navigation/filter-bar.tsx +0 -38
- package/src/components/navigation/index.ts +0 -28
- package/src/components/navigation/locale-picker.tsx +0 -49
- package/src/components/navigation/page-header.tsx +0 -50
- package/src/components/navigation/pagination-utils.ts +0 -35
- package/src/components/navigation/pagination.tsx +0 -168
- package/src/components/navigation/steps.tsx +0 -163
- package/src/components/navigation/tabs-items.tsx +0 -69
- package/src/components/navigation/time-format-picker.tsx +0 -55
- package/src/components/navigation/timezone-picker.tsx +0 -63
- package/src/components/query/__tests__/data-state.test.tsx +0 -214
- package/src/components/query/__tests__/infinite-prefetch.test.tsx +0 -105
- package/src/components/query/__tests__/query-helpers.test.tsx +0 -61
- package/src/components/query/data-state.tsx +0 -58
- package/src/components/query/index.ts +0 -10
- package/src/components/query/infinite-query-state.tsx +0 -99
- package/src/components/query/mutation-feedback.tsx +0 -31
- package/src/components/query/prefetch-link.tsx +0 -45
- package/src/components/query/query-refetch-button.tsx +0 -41
- package/src/components/ui/alert-dialog.tsx +0 -1
- package/src/components/ui/alert.tsx +0 -1
- package/src/components/ui/autocomplete.tsx +0 -1
- package/src/components/ui/badge.tsx +0 -1
- package/src/components/ui/button.tsx +0 -1
- package/src/components/ui/calendar.tsx +0 -1
- package/src/components/ui/card.tsx +0 -1
- package/src/components/ui/checkbox.tsx +0 -1
- package/src/components/ui/color-picker.tsx +0 -1
- package/src/components/ui/command.tsx +0 -1
- package/src/components/ui/date-picker.tsx +0 -1
- package/src/components/ui/date-range-picker.tsx +0 -1
- package/src/components/ui/dialog.tsx +0 -1
- package/src/components/ui/dropdown-menu.tsx +0 -1
- package/src/components/ui/index.tsx +0 -31
- package/src/components/ui/input.tsx +0 -1
- package/src/components/ui/label.tsx +0 -1
- package/src/components/ui/pagination.tsx +0 -1
- package/src/components/ui/popover.tsx +0 -1
- package/src/components/ui/radio.tsx +0 -1
- package/src/components/ui/scroll-area.tsx +0 -1
- package/src/components/ui/select.tsx +0 -1
- package/src/components/ui/sheet.tsx +0 -1
- package/src/components/ui/slider.tsx +0 -1
- package/src/components/ui/sonner.tsx +0 -1
- package/src/components/ui/switch.tsx +0 -1
- package/src/components/ui/table.tsx +0 -1
- package/src/components/ui/tabs-items.tsx +0 -1
- package/src/components/ui/tabs.tsx +0 -1
- package/src/components/ui/textarea.tsx +0 -1
- package/src/components/ui/time-picker.tsx +0 -1
- package/src/components/ui/upload.tsx +0 -1
- package/src/form/__tests__/use-zod-form.test.tsx +0 -97
- package/src/form/form-field-control.tsx +0 -44
- package/src/form/form-root.tsx +0 -29
- package/src/form/index.ts +0 -7
- package/src/form/use-zod-form.ts +0 -29
- package/src/i18n/__tests__/translate.test.ts +0 -23
- package/src/i18n/index.ts +0 -9
- package/src/i18n/messages/en.json +0 -171
- package/src/i18n/messages/ja.json +0 -171
- package/src/i18n/messages/vi.json +0 -171
- package/src/i18n/translate.ts +0 -74
- package/src/i18n/use-translation.ts +0 -53
- package/src/index.ts +0 -3
- package/src/lib/__tests__/control-styles.test.ts +0 -78
- package/src/lib/__tests__/datetime.test.ts +0 -77
- package/src/lib/__tests__/format-date.test.ts +0 -97
- package/src/lib/__tests__/format.test.ts +0 -62
- package/src/lib/__tests__/theme-tokens-audit.test.ts +0 -176
- package/src/lib/__tests__/theme-tokens-css.test.ts +0 -118
- package/src/lib/__tests__/token-governance.test.ts +0 -191
- package/src/lib/__tests__/variants.test.ts +0 -18
- package/src/lib/control-styles.ts +0 -33
- package/src/lib/datetime/detect.ts +0 -25
- package/src/lib/datetime/format-date.ts +0 -100
- package/src/lib/datetime/format.ts +0 -140
- package/src/lib/datetime/index.ts +0 -25
- package/src/lib/datetime/parse.ts +0 -51
- package/src/lib/datetime/sync.ts +0 -48
- package/src/lib/format.ts +0 -114
- package/src/lib/hooks.ts +0 -54
- package/src/lib/utils.ts +0 -6
- package/src/lib/variants.ts +0 -40
- package/src/props/components/app.prop.ts +0 -99
- package/src/props/components/data-display.prop.ts +0 -73
- package/src/props/components/data-entry.prop.ts +0 -334
- package/src/props/components/feedback.prop.ts +0 -80
- package/src/props/components/form.prop.ts +0 -46
- package/src/props/components/general.prop.ts +0 -18
- package/src/props/components/index.ts +0 -99
- package/src/props/components/layout.prop.ts +0 -130
- package/src/props/components/navigation.prop.ts +0 -88
- package/src/props/components/query.prop.ts +0 -94
- package/src/props/index.ts +0 -17
- package/src/props/vocabulary/data.prop.ts +0 -46
- package/src/props/vocabulary/index.ts +0 -73
- package/src/props/vocabulary/interaction.prop.ts +0 -42
- package/src/props/vocabulary/navigation.prop.ts +0 -19
- package/src/props/vocabulary/shared.prop.ts +0 -59
- package/src/test/__tests__/render-loop-guard.test.tsx +0 -38
- package/src/test/jest-dom.d.ts +0 -4
- package/src/test/render-loop-guard.tsx +0 -50
- package/src/test/render.tsx +0 -29
- package/src/test/theme-globals.test.ts +0 -77
- package/src/test/theme-globals.ts +0 -134
- package/src/test/theme-test-utils.tsx +0 -67
- /package/{src → dist}/styles/alert-layout.css +0 -0
- /package/{src → dist}/styles/badge-layout.css +0 -0
- /package/{src → dist}/styles/card-layout.css +0 -0
- /package/{src → dist}/styles/data-display-layout.css +0 -0
- /package/{src → dist}/styles/density.css +0 -0
- /package/{src → dist}/styles/dialog-layout.css +0 -0
- /package/{src → dist}/styles/index.css +0 -0
- /package/{src → dist}/styles/layout.css +0 -0
- /package/{src → dist}/styles/shell-layout.css +0 -0
- /package/{src → dist}/styles/table-layout.css +0 -0
- /package/{src → dist}/theme/example.service.css +0 -0
- /package/{src → dist}/tokens/base.css +0 -0
- /package/{src → dist}/tokens/foundation.css +0 -0
- /package/{src → dist}/tokens/primitives/badge.css +0 -0
- /package/{src → dist}/tokens/primitives/card.css +0 -0
- /package/{src → dist}/tokens/primitives/control.css +0 -0
- /package/{src → dist}/tokens/primitives/feedback.css +0 -0
- /package/{src → dist}/tokens/primitives/layout.css +0 -0
- /package/{src → dist}/tokens/primitives/navigation.css +0 -0
- /package/{src → dist}/tokens/primitives/table.css +0 -0
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
/* eslint-disable @typescript-eslint/no-deprecated -- barrel re-exports legacy PageHeaderProp */
|
|
2
|
-
export type {
|
|
3
|
-
AppShellProp,
|
|
4
|
-
InlineProp,
|
|
5
|
-
PageContainerProp,
|
|
6
|
-
PageHeaderProp,
|
|
7
|
-
PageInsetProp,
|
|
8
|
-
SidebarItemProp,
|
|
9
|
-
SidebarProductProp,
|
|
10
|
-
SidebarProp,
|
|
11
|
-
SidebarSectionProp,
|
|
12
|
-
StackProp,
|
|
13
|
-
TopbarProductProp,
|
|
14
|
-
TopbarProjectProp,
|
|
15
|
-
TopbarProp,
|
|
16
|
-
} from "./layout.prop";
|
|
17
|
-
export type { ButtonProp } from "./general.prop";
|
|
18
|
-
export type {
|
|
19
|
-
InputProp,
|
|
20
|
-
TextareaProp,
|
|
21
|
-
FormFieldProp,
|
|
22
|
-
SearchInputProp,
|
|
23
|
-
CheckboxProp,
|
|
24
|
-
CheckboxGroupProp,
|
|
25
|
-
ChoiceOptionProp,
|
|
26
|
-
RadioProp,
|
|
27
|
-
RadioGroupProp,
|
|
28
|
-
SwitchProp,
|
|
29
|
-
SliderProp,
|
|
30
|
-
CalendarProp,
|
|
31
|
-
DatePickerProp,
|
|
32
|
-
DateRangePickerProp,
|
|
33
|
-
TimePickerProp,
|
|
34
|
-
ColorPickerProp,
|
|
35
|
-
AutocompleteProp,
|
|
36
|
-
AutocompleteOptionProp,
|
|
37
|
-
UploadProp,
|
|
38
|
-
UploadFileItemProp,
|
|
39
|
-
UploadVariantProp,
|
|
40
|
-
TreeOptionProp,
|
|
41
|
-
TreeFieldNamesProp,
|
|
42
|
-
CascaderProp,
|
|
43
|
-
TreeSelectProp,
|
|
44
|
-
ShowCheckedStrategyProp,
|
|
45
|
-
TransferProp,
|
|
46
|
-
TransferItemProp,
|
|
47
|
-
} from "./data-entry.prop";
|
|
48
|
-
export type {
|
|
49
|
-
EmptyStateProp,
|
|
50
|
-
KeyValueGridProp,
|
|
51
|
-
KeyValueGridItemProp,
|
|
52
|
-
StatusBadgeProp,
|
|
53
|
-
DataTableProp,
|
|
54
|
-
BadgeProp,
|
|
55
|
-
} from "./data-display.prop";
|
|
56
|
-
export type {
|
|
57
|
-
DialogConfirmProp,
|
|
58
|
-
AlertQueryErrorProp,
|
|
59
|
-
AlertProp,
|
|
60
|
-
AlertTitleProp,
|
|
61
|
-
AlertContentProp,
|
|
62
|
-
AlertDescriptionProp,
|
|
63
|
-
AlertActionsProp,
|
|
64
|
-
SkeletonRowsProp,
|
|
65
|
-
} from "./feedback.prop";
|
|
66
|
-
export type {
|
|
67
|
-
DataStateProp,
|
|
68
|
-
MutationFeedbackProp,
|
|
69
|
-
QueryRefetchButtonProp,
|
|
70
|
-
InfiniteQueryStateProp,
|
|
71
|
-
InfiniteQueryHelpers,
|
|
72
|
-
PrefetchLinkProp,
|
|
73
|
-
} from "./query.prop";
|
|
74
|
-
export type {
|
|
75
|
-
FilterBarProp,
|
|
76
|
-
FilterGroupProp,
|
|
77
|
-
PaginationProp,
|
|
78
|
-
StepsProp,
|
|
79
|
-
StepItemProp,
|
|
80
|
-
StepStatusProp,
|
|
81
|
-
TabsItemsProp,
|
|
82
|
-
TabItemProp,
|
|
83
|
-
} from "./navigation.prop";
|
|
84
|
-
export type {
|
|
85
|
-
AppProviderProp,
|
|
86
|
-
AppContextValue,
|
|
87
|
-
LocalePickerProp,
|
|
88
|
-
TimezonePickerProp,
|
|
89
|
-
TimeFormatPickerProp,
|
|
90
|
-
DateFormatPickerProp,
|
|
91
|
-
} from "./app.prop";
|
|
92
|
-
export type {
|
|
93
|
-
ZodSchemaProp,
|
|
94
|
-
UseZodFormOptionsProp,
|
|
95
|
-
UseZodFormReturnProp,
|
|
96
|
-
FormRootProp,
|
|
97
|
-
FormFieldControlProp,
|
|
98
|
-
FieldErrorMessageProp,
|
|
99
|
-
} from "./form.prop";
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
/** Layout component prop types — @see docs/COMPONENTS.md#layout */
|
|
2
|
-
import type * as React from "react";
|
|
3
|
-
import type { ComponentType, ReactNode, SVGProps } from "react";
|
|
4
|
-
import type {
|
|
5
|
-
BreadcrumbProp,
|
|
6
|
-
PageTitleProp,
|
|
7
|
-
SubtitleProp,
|
|
8
|
-
ExtraProp,
|
|
9
|
-
FooterProp,
|
|
10
|
-
PageDensityProp,
|
|
11
|
-
PageContainerVariantProp,
|
|
12
|
-
StackGapProp,
|
|
13
|
-
InlineGapProp,
|
|
14
|
-
ClassNameProp,
|
|
15
|
-
ChildrenProp,
|
|
16
|
-
} from "../vocabulary";
|
|
17
|
-
|
|
18
|
-
/** @see PageContainer */
|
|
19
|
-
export type PageContainerProp = {
|
|
20
|
-
title: PageTitleProp;
|
|
21
|
-
subtitle?: SubtitleProp;
|
|
22
|
-
extra?: ExtraProp;
|
|
23
|
-
footer?: FooterProp;
|
|
24
|
-
breadcrumb?: BreadcrumbProp;
|
|
25
|
-
density?: PageDensityProp;
|
|
26
|
-
variant?: PageContainerVariantProp;
|
|
27
|
-
/** Pin footer to viewport bottom on scroll — pairs well with `variant="narrow"`. */
|
|
28
|
-
stickyFooter?: boolean;
|
|
29
|
-
children?: ChildrenProp;
|
|
30
|
-
className?: ClassNameProp;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
/** @see Stack */
|
|
34
|
-
export type StackProp = React.HTMLAttributes<HTMLDivElement> & {
|
|
35
|
-
gap?: StackGapProp;
|
|
36
|
-
};
|
|
37
|
-
|
|
38
|
-
/** @see Inline */
|
|
39
|
-
export type InlineProp = React.HTMLAttributes<HTMLDivElement> & {
|
|
40
|
-
gap?: InlineGapProp;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
/** @see PageInset — padded strip inside flush PageContainer (FilterBar, intro). */
|
|
44
|
-
export type PageInsetProp = React.HTMLAttributes<HTMLDivElement> & {
|
|
45
|
-
children?: ChildrenProp;
|
|
46
|
-
className?: ClassNameProp;
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
/** @see AppShell */
|
|
50
|
-
export type AppShellProp = {
|
|
51
|
-
sidebar: ReactNode;
|
|
52
|
-
children: ReactNode;
|
|
53
|
-
topbar?: ReactNode;
|
|
54
|
-
topbarLeft?: ReactNode;
|
|
55
|
-
topbarRight?: ReactNode;
|
|
56
|
-
logo?: ReactNode;
|
|
57
|
-
breadcrumb?: ReactNode;
|
|
58
|
-
footer?: ReactNode;
|
|
59
|
-
sidebarCollapsed?: boolean;
|
|
60
|
-
};
|
|
61
|
-
|
|
62
|
-
/** @see Sidebar */
|
|
63
|
-
export type SidebarProductProp = {
|
|
64
|
-
name: string;
|
|
65
|
-
role?: string;
|
|
66
|
-
color?: string;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
/** @see Sidebar */
|
|
70
|
-
export type SidebarItemProp = {
|
|
71
|
-
id: string;
|
|
72
|
-
label: string;
|
|
73
|
-
icon: ComponentType<SVGProps<SVGSVGElement>>;
|
|
74
|
-
badge?: ReactNode;
|
|
75
|
-
disabled?: boolean;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
/** @see Sidebar */
|
|
79
|
-
export type SidebarSectionProp = {
|
|
80
|
-
label?: string;
|
|
81
|
-
items: SidebarItemProp[];
|
|
82
|
-
};
|
|
83
|
-
|
|
84
|
-
/** @see Sidebar */
|
|
85
|
-
export type SidebarProp = {
|
|
86
|
-
activeId: string;
|
|
87
|
-
onSelect?: (id: string) => void;
|
|
88
|
-
sections: SidebarSectionProp[];
|
|
89
|
-
product?: SidebarProductProp;
|
|
90
|
-
onProductClick?: () => void;
|
|
91
|
-
brand?: ReactNode;
|
|
92
|
-
collapsed?: boolean;
|
|
93
|
-
footer?: ReactNode;
|
|
94
|
-
};
|
|
95
|
-
|
|
96
|
-
/** @see Topbar */
|
|
97
|
-
export type TopbarProductProp = {
|
|
98
|
-
name: string;
|
|
99
|
-
color?: string;
|
|
100
|
-
};
|
|
101
|
-
|
|
102
|
-
/** @see Topbar */
|
|
103
|
-
export type TopbarProjectProp = {
|
|
104
|
-
name: string;
|
|
105
|
-
};
|
|
106
|
-
|
|
107
|
-
/** @see Topbar */
|
|
108
|
-
export type TopbarProp = {
|
|
109
|
-
product: TopbarProductProp;
|
|
110
|
-
project?: TopbarProjectProp | null;
|
|
111
|
-
onProductOpen?: () => void;
|
|
112
|
-
onProjectOpen?: () => void;
|
|
113
|
-
onSearchOpen?: () => void;
|
|
114
|
-
onTweaksOpen?: () => void;
|
|
115
|
-
collapsed?: boolean;
|
|
116
|
-
onToggleCollapsed?: () => void;
|
|
117
|
-
rightSlot?: ReactNode;
|
|
118
|
-
unread?: boolean;
|
|
119
|
-
onNotificationsOpen?: () => void;
|
|
120
|
-
user?: ReactNode;
|
|
121
|
-
};
|
|
122
|
-
|
|
123
|
-
/** @deprecated Use PageContainerProp — header-only legacy shell. */
|
|
124
|
-
export type PageHeaderProp = {
|
|
125
|
-
title: PageTitleProp;
|
|
126
|
-
description?: SubtitleProp;
|
|
127
|
-
breadcrumb?: BreadcrumbProp;
|
|
128
|
-
actions?: ExtraProp;
|
|
129
|
-
className?: ClassNameProp;
|
|
130
|
-
};
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
/** Navigation component prop types — @see docs/COMPONENTS.md#navigation */
|
|
2
|
-
import type * as React from "react";
|
|
3
|
-
import type {
|
|
4
|
-
ChildrenProp,
|
|
5
|
-
ClassNameProp,
|
|
6
|
-
DisabledProp,
|
|
7
|
-
HasActiveFiltersProp,
|
|
8
|
-
LabelProp,
|
|
9
|
-
OnClearFiltersProp,
|
|
10
|
-
} from "../vocabulary";
|
|
11
|
-
|
|
12
|
-
/** @see FilterBar */
|
|
13
|
-
export type FilterBarProp = {
|
|
14
|
-
onClear?: OnClearFiltersProp;
|
|
15
|
-
hasActiveFilters?: HasActiveFiltersProp;
|
|
16
|
-
className?: ClassNameProp;
|
|
17
|
-
children: ChildrenProp;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/** @see FilterGroup */
|
|
21
|
-
export type FilterGroupProp = {
|
|
22
|
-
label: LabelProp;
|
|
23
|
-
className?: ClassNameProp;
|
|
24
|
-
children: ChildrenProp;
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
/** @see Pagination — offset/page-based (distinct from DataTable cursor pagination). */
|
|
28
|
-
export type PaginationProp = {
|
|
29
|
-
current?: number;
|
|
30
|
-
total?: number;
|
|
31
|
-
pageSize?: number;
|
|
32
|
-
pageSizeOptions?: number[];
|
|
33
|
-
showSizeChanger?: boolean;
|
|
34
|
-
showTotal?: boolean | ((total: number, range: [number, number]) => React.ReactNode);
|
|
35
|
-
simple?: boolean;
|
|
36
|
-
disabled?: DisabledProp;
|
|
37
|
-
className?: ClassNameProp;
|
|
38
|
-
onChange?: (page: number, pageSize: number) => void;
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export type StepStatusProp = "wait" | "process" | "finish" | "error";
|
|
42
|
-
|
|
43
|
-
/** @see StepItem */
|
|
44
|
-
export type StepItemProp = {
|
|
45
|
-
title: React.ReactNode;
|
|
46
|
-
subTitle?: React.ReactNode;
|
|
47
|
-
/** Ant Design `content` — alias `description` supported */
|
|
48
|
-
content?: React.ReactNode;
|
|
49
|
-
description?: React.ReactNode;
|
|
50
|
-
icon?: React.ReactNode;
|
|
51
|
-
status?: StepStatusProp;
|
|
52
|
-
disabled?: boolean;
|
|
53
|
-
};
|
|
54
|
-
|
|
55
|
-
/** @see Steps */
|
|
56
|
-
export type StepsProp = {
|
|
57
|
-
items?: StepItemProp[];
|
|
58
|
-
current?: number;
|
|
59
|
-
initial?: number;
|
|
60
|
-
status?: StepStatusProp;
|
|
61
|
-
orientation?: "horizontal" | "vertical";
|
|
62
|
-
type?: "default" | "dot";
|
|
63
|
-
size?: "default" | "small";
|
|
64
|
-
titlePlacement?: "horizontal" | "vertical";
|
|
65
|
-
onChange?: (current: number) => void;
|
|
66
|
-
className?: ClassNameProp;
|
|
67
|
-
};
|
|
68
|
-
|
|
69
|
-
/** Tab pane — Ant Design `items` entry. */
|
|
70
|
-
export type TabItemProp = {
|
|
71
|
-
key: string;
|
|
72
|
-
label: React.ReactNode;
|
|
73
|
-
children: React.ReactNode;
|
|
74
|
-
disabled?: boolean;
|
|
75
|
-
icon?: React.ReactNode;
|
|
76
|
-
};
|
|
77
|
-
|
|
78
|
-
/** @see TabsItems — high-level tabs with `items` array. */
|
|
79
|
-
export type TabsItemsProp = {
|
|
80
|
-
items: TabItemProp[];
|
|
81
|
-
value?: string;
|
|
82
|
-
defaultValue?: string;
|
|
83
|
-
onValueChange?: (key: string) => void;
|
|
84
|
-
variant?: "default" | "line" | "card";
|
|
85
|
-
className?: ClassNameProp;
|
|
86
|
-
listClassName?: ClassNameProp;
|
|
87
|
-
contentClassName?: ClassNameProp;
|
|
88
|
-
};
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
/** Query / async lifecycle helpers — @see docs/COMPONENTS.md#query */
|
|
2
|
-
import type * as React from "react";
|
|
3
|
-
import type {
|
|
4
|
-
InfiniteData,
|
|
5
|
-
QueryKey,
|
|
6
|
-
UseInfiniteQueryResult,
|
|
7
|
-
UseMutationResult,
|
|
8
|
-
UseQueryResult,
|
|
9
|
-
} from "@tanstack/react-query";
|
|
10
|
-
import type { LinkProps } from "react-router-dom";
|
|
11
|
-
import type { ButtonProp } from "./general.prop";
|
|
12
|
-
import type { ClassNameProp, HandlerProp } from "../vocabulary";
|
|
13
|
-
|
|
14
|
-
/** @see DataState — TanStack Query lifecycle widget (not a visual component). */
|
|
15
|
-
export type DataStateProp<T> = {
|
|
16
|
-
query: UseQueryResult<T>;
|
|
17
|
-
skeleton: React.ReactNode;
|
|
18
|
-
empty?: React.ReactNode;
|
|
19
|
-
isEmpty?: (data: NonNullable<T>) => boolean;
|
|
20
|
-
errorRenderer?: (error: unknown, retry: () => void) => React.ReactNode;
|
|
21
|
-
/** Default error UI retry button. Default `true`. */
|
|
22
|
-
showRetry?: boolean;
|
|
23
|
-
/** Default `() => query.refetch()`. */
|
|
24
|
-
onRetry?: HandlerProp;
|
|
25
|
-
children: (data: NonNullable<T>) => React.ReactNode;
|
|
26
|
-
};
|
|
27
|
-
|
|
28
|
-
type MutationLike = Pick<
|
|
29
|
-
UseMutationResult<unknown, unknown, unknown, unknown>,
|
|
30
|
-
"isError" | "error" | "isPending"
|
|
31
|
-
>;
|
|
32
|
-
|
|
33
|
-
/** @see MutationFeedback — inline mutation error (form submit, simulator run). */
|
|
34
|
-
export type MutationFeedbackProp = {
|
|
35
|
-
mutation: MutationLike;
|
|
36
|
-
onRetry?: HandlerProp;
|
|
37
|
-
showRetry?: boolean;
|
|
38
|
-
/** Optional inline pending slot while `mutation.isPending`. */
|
|
39
|
-
pending?: React.ReactNode;
|
|
40
|
-
className?: ClassNameProp;
|
|
41
|
-
};
|
|
42
|
-
|
|
43
|
-
type QueryRefetchLike = Pick<UseQueryResult<unknown>, "isFetching" | "refetch">;
|
|
44
|
-
|
|
45
|
-
/** @see QueryRefetchButton — header Refresh wired to `query.refetch()`. */
|
|
46
|
-
export type QueryRefetchButtonProp = Omit<ButtonProp, "onClick" | "disabled"> & {
|
|
47
|
-
query: QueryRefetchLike;
|
|
48
|
-
label?: React.ReactNode;
|
|
49
|
-
};
|
|
50
|
-
|
|
51
|
-
type InfiniteQueryLike<TPage> = Pick<
|
|
52
|
-
UseInfiniteQueryResult<InfiniteData<TPage>, unknown>,
|
|
53
|
-
| "isPending"
|
|
54
|
-
| "isError"
|
|
55
|
-
| "isFetching"
|
|
56
|
-
| "isFetchingNextPage"
|
|
57
|
-
| "error"
|
|
58
|
-
| "data"
|
|
59
|
-
| "hasNextPage"
|
|
60
|
-
| "fetchNextPage"
|
|
61
|
-
| "refetch"
|
|
62
|
-
>;
|
|
63
|
-
|
|
64
|
-
export type InfiniteQueryHelpers = {
|
|
65
|
-
fetchNextPage: () => void;
|
|
66
|
-
hasNextPage: boolean;
|
|
67
|
-
isFetchingNextPage: boolean;
|
|
68
|
-
};
|
|
69
|
-
|
|
70
|
-
/** @see InfiniteQueryState — useInfiniteQuery lifecycle + load more. */
|
|
71
|
-
export type InfiniteQueryStateProp<TPage, TFlat> = {
|
|
72
|
-
query: InfiniteQueryLike<TPage>;
|
|
73
|
-
skeleton: React.ReactNode;
|
|
74
|
-
empty?: React.ReactNode;
|
|
75
|
-
flatten: (data: { pages: TPage[] }) => TFlat;
|
|
76
|
-
isEmpty?: (flat: TFlat) => boolean;
|
|
77
|
-
errorRenderer?: (error: unknown, retry: () => void) => React.ReactNode;
|
|
78
|
-
showRetry?: boolean;
|
|
79
|
-
onRetry?: HandlerProp;
|
|
80
|
-
loadingMore?: React.ReactNode;
|
|
81
|
-
/** Custom load-more footer; `false` hides footer entirely. */
|
|
82
|
-
loadMore?: React.ReactNode | false;
|
|
83
|
-
/** Show default load-more button when `hasNextPage`. Default `true`. */
|
|
84
|
-
showLoadMore?: boolean;
|
|
85
|
-
children: (flat: TFlat, helpers: InfiniteQueryHelpers) => React.ReactNode;
|
|
86
|
-
};
|
|
87
|
-
|
|
88
|
-
/** @see PrefetchLink — Link + prefetchQuery on hover/focus. */
|
|
89
|
-
export type PrefetchLinkProp = LinkProps & {
|
|
90
|
-
queryKey: QueryKey;
|
|
91
|
-
queryFn: () => Promise<unknown>;
|
|
92
|
-
prefetchOn?: "hover" | "focus" | "both" | "none";
|
|
93
|
-
staleTime?: number;
|
|
94
|
-
};
|
package/src/props/index.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export * from "./vocabulary";
|
|
2
|
-
export * from "./components";
|
|
3
|
-
export {
|
|
4
|
-
VOCABULARY_REGISTRY,
|
|
5
|
-
COMPONENT_PROP_REGISTRY,
|
|
6
|
-
PROP_ALIASES_FORBIDDEN,
|
|
7
|
-
type VocabularyPropName,
|
|
8
|
-
type ComponentPropName,
|
|
9
|
-
} from "./registry";
|
|
10
|
-
|
|
11
|
-
// Backward-compatible re-exports (migrate to *Prop names)
|
|
12
|
-
export type { PageContainerProp as PageContainerProps } from "./components/layout.prop";
|
|
13
|
-
export type { StackProp as StackProps } from "./components/layout.prop";
|
|
14
|
-
export type { InlineProp as InlineProps } from "./components/layout.prop";
|
|
15
|
-
export type { ButtonProp as ButtonProps } from "./components/general.prop";
|
|
16
|
-
export type { BreadcrumbItemProp as BreadcrumbItem } from "./vocabulary/navigation.prop";
|
|
17
|
-
export type { ColumnDefProp as ColumnDef } from "./vocabulary/data.prop";
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Data & collection prop types.
|
|
3
|
-
* @see docs/PROPS-VOCABULARY.md#data-collections
|
|
4
|
-
*/
|
|
5
|
-
import type * as React from "react";
|
|
6
|
-
import type { ColumnAlignProp, SortDirectionProp } from "./interaction.prop";
|
|
7
|
-
import type { TableDensityProp } from "./layout.prop";
|
|
8
|
-
|
|
9
|
-
/** Generic row identifier extractor for tables with selection. */
|
|
10
|
-
export type GetRowIdProp<T> = (row: T) => string;
|
|
11
|
-
|
|
12
|
-
/** Row click navigation handler. */
|
|
13
|
-
export type OnRowClickProp<T> = (row: T) => void;
|
|
14
|
-
|
|
15
|
-
/** Column definition for DataTable. */
|
|
16
|
-
export type ColumnDefProp<T> = {
|
|
17
|
-
key: string;
|
|
18
|
-
header: React.ReactNode;
|
|
19
|
-
render?: (row: T) => React.ReactNode;
|
|
20
|
-
sortable?: boolean;
|
|
21
|
-
width?: string;
|
|
22
|
-
align?: ColumnAlignProp;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
/** Set of selected row IDs. */
|
|
26
|
-
export type SelectedIdsProp = Set<string>;
|
|
27
|
-
|
|
28
|
-
/** Selection change callback. */
|
|
29
|
-
export type OnSelectChangeProp = (next: Set<string>) => void;
|
|
30
|
-
|
|
31
|
-
/** Table density change callback. */
|
|
32
|
-
export type OnTableDensityChangeProp = (density: TableDensityProp) => void;
|
|
33
|
-
|
|
34
|
-
/** Sort change callback — undefined clears sort. */
|
|
35
|
-
export type OnSortChangeProp = (
|
|
36
|
-
sort: { key: string; direction: SortDirectionProp } | undefined,
|
|
37
|
-
) => void;
|
|
38
|
-
|
|
39
|
-
/** Search debounce callback. */
|
|
40
|
-
export type OnSearchChangeProp = (query: string) => void;
|
|
41
|
-
|
|
42
|
-
/** Filter bar reset handler. */
|
|
43
|
-
export type OnClearFiltersProp = () => void;
|
|
44
|
-
|
|
45
|
-
/** Whether any filter is active — shows "Clear all". */
|
|
46
|
-
export type HasActiveFiltersProp = boolean;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
/** Barrel — all vocabulary prop types. */
|
|
2
|
-
|
|
3
|
-
export type {
|
|
4
|
-
ClassNameProp,
|
|
5
|
-
ChildrenProp,
|
|
6
|
-
IdProp,
|
|
7
|
-
OpenProp,
|
|
8
|
-
OnOpenChangeProp,
|
|
9
|
-
HandlerProp,
|
|
10
|
-
PendingProp,
|
|
11
|
-
RequiredProp,
|
|
12
|
-
DisabledProp,
|
|
13
|
-
LabelProp,
|
|
14
|
-
HelperProp,
|
|
15
|
-
ErrorProp,
|
|
16
|
-
PlaceholderProp,
|
|
17
|
-
NameProp,
|
|
18
|
-
ValueProp,
|
|
19
|
-
OnChangeProp,
|
|
20
|
-
OnClickProp,
|
|
21
|
-
AsChildProp,
|
|
22
|
-
} from "./shared.prop";
|
|
23
|
-
|
|
24
|
-
export type {
|
|
25
|
-
TitleProp,
|
|
26
|
-
SubtitleProp,
|
|
27
|
-
DescriptionProp,
|
|
28
|
-
ExtraProp,
|
|
29
|
-
FooterProp,
|
|
30
|
-
ActionProp,
|
|
31
|
-
IconProp,
|
|
32
|
-
ConfirmLabelProp,
|
|
33
|
-
CancelLabelProp,
|
|
34
|
-
ActionsProp,
|
|
35
|
-
} from "./content.prop";
|
|
36
|
-
|
|
37
|
-
export type {
|
|
38
|
-
PageDensityProp,
|
|
39
|
-
PageContainerVariantProp,
|
|
40
|
-
StackGapProp,
|
|
41
|
-
InlineGapProp,
|
|
42
|
-
TableDensityProp,
|
|
43
|
-
/** @deprecated Alias — use PageDensityProp */
|
|
44
|
-
DensityProp,
|
|
45
|
-
/** @deprecated Alias — use StackGapProp */
|
|
46
|
-
GapProp,
|
|
47
|
-
} from "./layout.prop";
|
|
48
|
-
|
|
49
|
-
export type {
|
|
50
|
-
ButtonVariantProp,
|
|
51
|
-
ButtonSizeProp,
|
|
52
|
-
ConfirmVariantProp,
|
|
53
|
-
StatusToneProp,
|
|
54
|
-
AlertVariantProp,
|
|
55
|
-
SortDirectionProp,
|
|
56
|
-
ColumnAlignProp,
|
|
57
|
-
SortStateProp,
|
|
58
|
-
} from "./interaction.prop";
|
|
59
|
-
|
|
60
|
-
export type { BreadcrumbItemProp, BreadcrumbProp, PageTitleProp } from "./navigation.prop";
|
|
61
|
-
|
|
62
|
-
export type {
|
|
63
|
-
GetRowIdProp,
|
|
64
|
-
OnRowClickProp,
|
|
65
|
-
ColumnDefProp,
|
|
66
|
-
SelectedIdsProp,
|
|
67
|
-
OnSelectChangeProp,
|
|
68
|
-
OnTableDensityChangeProp,
|
|
69
|
-
OnSortChangeProp,
|
|
70
|
-
OnSearchChangeProp,
|
|
71
|
-
OnClearFiltersProp,
|
|
72
|
-
HasActiveFiltersProp,
|
|
73
|
-
} from "./data.prop";
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Interaction & visual variant prop types.
|
|
3
|
-
* @see docs/PROPS-VOCABULARY.md#interaction-variants
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
/** Button visual style. */
|
|
7
|
-
export type ButtonVariantProp =
|
|
8
|
-
| "default"
|
|
9
|
-
| "destructive"
|
|
10
|
-
| "outline"
|
|
11
|
-
| "secondary"
|
|
12
|
-
| "ghost"
|
|
13
|
-
| "link";
|
|
14
|
-
|
|
15
|
-
/** Button size preset. */
|
|
16
|
-
export type ButtonSizeProp =
|
|
17
|
-
| "default"
|
|
18
|
-
| "xs"
|
|
19
|
-
| "sm"
|
|
20
|
-
| "lg"
|
|
21
|
-
| "icon"
|
|
22
|
-
| "icon-xs"
|
|
23
|
-
| "icon-sm"
|
|
24
|
-
| "icon-lg";
|
|
25
|
-
|
|
26
|
-
/** Dialog confirm button emphasis. */
|
|
27
|
-
export type ConfirmVariantProp = "default" | "destructive";
|
|
28
|
-
|
|
29
|
-
/** Badge / status pill color mapping key. */
|
|
30
|
-
export type StatusToneProp = "default" | "success" | "warning" | "destructive" | "muted";
|
|
31
|
-
|
|
32
|
-
/** Inline Alert banner — default maps to informational tone. */
|
|
33
|
-
export type AlertVariantProp = "default" | "destructive" | "warning" | "success";
|
|
34
|
-
|
|
35
|
-
/** Sort direction for table columns. */
|
|
36
|
-
export type SortDirectionProp = "asc" | "desc";
|
|
37
|
-
|
|
38
|
-
/** Table column text alignment. */
|
|
39
|
-
export type ColumnAlignProp = "left" | "center" | "right";
|
|
40
|
-
|
|
41
|
-
/** Active sort state on DataTable. */
|
|
42
|
-
export type SortStateProp = { key: string; direction: SortDirectionProp };
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Navigation & wayfinding prop types.
|
|
3
|
-
* @see docs/PROPS-VOCABULARY.md#navigation
|
|
4
|
-
*/
|
|
5
|
-
import type { LabelProp } from "./shared.prop";
|
|
6
|
-
import type { TitleProp } from "./content.prop";
|
|
7
|
-
|
|
8
|
-
/** Single breadcrumb segment. */
|
|
9
|
-
export type BreadcrumbItemProp = {
|
|
10
|
-
label: LabelProp;
|
|
11
|
-
/** Router path — omit on current (last) segment. */
|
|
12
|
-
to?: string;
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
/** Ordered breadcrumb trail above page title. */
|
|
16
|
-
export type BreadcrumbProp = BreadcrumbItemProp[];
|
|
17
|
-
|
|
18
|
-
/** Same as TitleProp — explicit name in page/navigation context. */
|
|
19
|
-
export type PageTitleProp = TitleProp;
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Shared atomic prop types used across multiple components.
|
|
3
|
-
* @see docs/PROPS-VOCABULARY.md
|
|
4
|
-
*/
|
|
5
|
-
import type * as React from "react";
|
|
6
|
-
|
|
7
|
-
/** Extra CSS class names on a component root. */
|
|
8
|
-
export type ClassNameProp = string;
|
|
9
|
-
|
|
10
|
-
/** Child nodes slot. */
|
|
11
|
-
export type ChildrenProp = React.ReactNode;
|
|
12
|
-
|
|
13
|
-
/** Stable DOM / form identifier. */
|
|
14
|
-
export type IdProp = string;
|
|
15
|
-
|
|
16
|
-
/** Controlled open state for panels (Dialog, Sheet, Popover). */
|
|
17
|
-
export type OpenProp = boolean;
|
|
18
|
-
|
|
19
|
-
/** Callback when open state changes. */
|
|
20
|
-
export type OnOpenChangeProp = (open: boolean) => void;
|
|
21
|
-
|
|
22
|
-
/** Async or sync handler — no return value expected. */
|
|
23
|
-
export type HandlerProp = () => void | Promise<void>;
|
|
24
|
-
|
|
25
|
-
/** Loading / pending state — disables actions and shows spinners. */
|
|
26
|
-
export type PendingProp = boolean;
|
|
27
|
-
|
|
28
|
-
/** Field or control is required. */
|
|
29
|
-
export type RequiredProp = boolean;
|
|
30
|
-
|
|
31
|
-
/** Disable user interaction. */
|
|
32
|
-
export type DisabledProp = boolean;
|
|
33
|
-
|
|
34
|
-
/** Generic label text (filters, form fields, nav groups). */
|
|
35
|
-
export type LabelProp = React.ReactNode;
|
|
36
|
-
|
|
37
|
-
/** Helper / hint text below inputs. */
|
|
38
|
-
export type HelperProp = React.ReactNode;
|
|
39
|
-
|
|
40
|
-
/** Validation error message. */
|
|
41
|
-
export type ErrorProp = React.ReactNode;
|
|
42
|
-
|
|
43
|
-
/** Placeholder text for inputs. */
|
|
44
|
-
export type PlaceholderProp = string;
|
|
45
|
-
|
|
46
|
-
/** HTML input `name` attribute. */
|
|
47
|
-
export type NameProp = string;
|
|
48
|
-
|
|
49
|
-
/** HTML input `value` — string form. */
|
|
50
|
-
export type ValueProp = string;
|
|
51
|
-
|
|
52
|
-
/** Change handler for text inputs. */
|
|
53
|
-
export type OnChangeProp = React.ChangeEventHandler<HTMLInputElement>;
|
|
54
|
-
|
|
55
|
-
/** Click handler for buttons and interactive elements. */
|
|
56
|
-
export type OnClickProp = React.MouseEventHandler<HTMLButtonElement>;
|
|
57
|
-
|
|
58
|
-
/** Radix/shadcn `asChild` polymorphism — render as child element. */
|
|
59
|
-
export type AsChildProp = boolean;
|