@cryptlex/web-components 3.8.1 → 4.1.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/data-table/data-table-filter.es.js +178 -0
- package/dist/components/data-table/data-table-filter.es.js.map +1 -0
- package/dist/components/data-table/data-table.es.js +402 -153
- package/dist/components/data-table/data-table.es.js.map +1 -1
- package/dist/components/data-table/table-commons.es.js +267 -19
- package/dist/components/data-table/table-commons.es.js.map +1 -1
- package/dist/components/inputs/calendar.es.js +12 -12
- package/dist/components/inputs/calendar.es.js.map +1 -1
- package/dist/components/inputs/checkbox.es.js +13 -13
- package/dist/components/inputs/checkbox.es.js.map +1 -1
- package/dist/components/inputs/country-select.es.js +3 -3
- package/dist/components/inputs/country-select.es.js.map +1 -1
- package/dist/components/inputs/form-field.es.js +1 -1
- package/dist/components/inputs/input-otp.es.js +2 -2
- package/dist/components/inputs/input-otp.es.js.map +1 -1
- package/dist/components/inputs/input.es.js +7 -7
- package/dist/components/inputs/input.es.js.map +1 -1
- package/dist/components/inputs/multi-select.es.js +7 -7
- package/dist/components/inputs/multi-select.es.js.map +1 -1
- package/dist/components/inputs/radio-group.es.js +1 -1
- package/dist/components/inputs/search-input.es.js.map +1 -1
- package/dist/components/inputs/select.es.js +10 -10
- package/dist/components/inputs/select.es.js.map +1 -1
- package/dist/components/inputs/textarea.es.js +4 -4
- package/dist/components/key-value-card/key-value-card.es.js +6 -9
- package/dist/components/key-value-card/key-value-card.es.js.map +1 -1
- package/dist/components/ui/accordion.es.js +6 -6
- package/dist/components/ui/accordion.es.js.map +1 -1
- package/dist/components/ui/alert.es.js +4 -4
- package/dist/components/ui/avatar.es.js +1 -1
- package/dist/components/ui/badge.es.js +1 -1
- package/dist/components/ui/breadcrumb.es.js +2 -2
- package/dist/components/ui/breadcrumb.es.js.map +1 -1
- package/dist/components/ui/button.es.js +27 -25
- package/dist/components/ui/button.es.js.map +1 -1
- package/dist/components/ui/card.es.js +8 -8
- package/dist/components/ui/card.es.js.map +1 -1
- package/dist/components/ui/copy-button.es.js +12 -14
- package/dist/components/ui/copy-button.es.js.map +1 -1
- package/dist/components/ui/dialog.es.js +4 -4
- package/dist/components/ui/dialog.es.js.map +1 -1
- package/dist/components/ui/drawer.es.js +10 -10
- package/dist/components/ui/drawer.es.js.map +1 -1
- package/dist/components/ui/dropdown-menu.es.js +13 -13
- package/dist/components/ui/dropdown-menu.es.js.map +1 -1
- package/dist/components/ui/label.es.js +1 -1
- package/dist/components/ui/loader.es.js +3 -3
- package/dist/components/ui/pagination.es.js +2 -2
- package/dist/components/ui/pagination.es.js.map +1 -1
- package/dist/components/ui/popover.es.js +5 -5
- package/dist/components/ui/popover.es.js.map +1 -1
- package/dist/components/ui/separator.es.js +1 -1
- package/dist/components/ui/sheet.es.js +59 -55
- package/dist/components/ui/sheet.es.js.map +1 -1
- package/dist/components/ui/sidebar.es.js +105 -105
- package/dist/components/ui/sidebar.es.js.map +1 -1
- package/dist/components/ui/skeleton.es.js +1 -1
- package/dist/components/ui/static-data-table.es.js +1 -1
- package/dist/components/ui/static-data-table.es.js.map +1 -1
- package/dist/components/ui/table.es.js +8 -8
- package/dist/components/ui/table.es.js.map +1 -1
- package/dist/components/ui/tabs.es.js +1 -1
- package/dist/components/ui/tabs.es.js.map +1 -1
- package/dist/components/ui/timeline.es.js +3 -3
- package/dist/components/ui/timeline.es.js.map +1 -1
- package/dist/components/ui/tooltip.es.js +1 -1
- package/dist/index.es.d.ts +128 -32
- package/dist/index.es.js +237 -238
- package/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@date-fns_tz@1.2.0/node_modules/@date-fns/tz/date/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@date-fns_tz@1.2.0/node_modules/@date-fns/tz/date/mini.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@date-fns_tz@1.2.0/node_modules/@date-fns/tz/tzOffset/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_core@1.7.2/node_modules/@floating-ui/core/dist/floating-ui.core.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_dom@1.7.2/node_modules/@floating-ui/dom/dist/floating-ui.dom.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_react-dom@2.1.4_react-dom@19.1.0_react@19.1.0/node_modules/@floating-ui/react-dom/dist/floating-ui.react-dom.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@floating-ui_utils@0.2.10/node_modules/@floating-ui/utils/dist/floating-ui.utils.dom.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_primitive@1.1.2/node_modules/@radix-ui/primitive/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-accordion@1.2.11_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-accordion/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-collapsible@1.1.11_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-collapsible/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-collection@1.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-collection/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-compose-refs@1.1.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-compose-refs/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-context@1.1.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-context/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-dialog@1.1.14_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dialog/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-dismissable-layer@1.1.10_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dismissable-layer/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.15_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dropdown-menu/dist/index.es.js +10 -10
- package/dist/node_modules/.pnpm/@radix-ui_react-dropdown-menu@2.1.15_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-dropdown-menu/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-guards@1.1.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-focus-guards/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-focus-scope@1.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-focus-scope/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-id@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-id/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-label@2.1.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-label/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.15_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-menu/dist/index.es.js +4 -4
- package/dist/node_modules/.pnpm/@radix-ui_react-menu@2.1.15_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-menu/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-popover@1.1.14_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-popover/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-popper@1.2.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-popper/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-presence@1.1.4_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-presence/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-primitive@2.1.3_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-primitive/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-radio-group@1.3.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-radio-group/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-roving-focus@1.1.10_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-roving-focus/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-slot@1.2.3_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-slot/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-tabs@1.1.12_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-tabs/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-tooltip@1.2.7_@types_react-dom@19.1.0_@types_react@19.1.0_react-dom@19.1.0_react@19.1.0/node_modules/@radix-ui/react-tooltip/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-callback-ref@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-callback-ref/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-controllable-state@1.2.2_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-controllable-state/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-escape-keydown@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-escape-keydown/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/@radix-ui_react-use-size@1.1.1_@types_react@19.1.0_react@19.1.0/node_modules/@radix-ui/react-use-size/dist/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/aria-hidden@1.2.6/node_modules/aria-hidden/dist/es2015/index.es.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildFormatLongFn.es.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildLocalizeFn.es.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchFn.es.js.map +1 -1
- package/dist/node_modules/.pnpm/date-fns@4.1.0/node_modules/date-fns/locale/_lib/buildMatchPatternFn.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/DayPicker.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/CalendarDay.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/CalendarMonth.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/CalendarWeek.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/classes/DateLib.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/DayButton.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/components/Nav.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/calculateFocusTarget.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/createGetModifiers.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDataAttributes.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDates.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDays.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getDisplayMonths.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getInitialMonth.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getMonthOptions.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getMonths.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getStyleForModifiers.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getWeekdays.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/helpers/getYearOptions.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/selection/useMulti.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/selection/useRange.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/selection/useSingle.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useAnimation.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useCalendar.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/useFocus.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/addToRange.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/dateMatchModifiers.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsDayOfWeek.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-day-picker@9.7.0_react@19.1.0/node_modules/react-day-picker/dist/esm/utils/rangeContainsModifiers.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/component.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-remove-scroll-bar@2.3.8_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll-bar/dist/es2015/utils.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/Combination.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/SideEffect.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/aggresiveCapture.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-remove-scroll@2.7.1_@types_react@19.1.0_react@19.1.0/node_modules/react-remove-scroll/dist/es2015/handleScroll.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.1.0_react@19.1.0/node_modules/react-style-singleton/dist/es2015/component.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.1.0_react@19.1.0/node_modules/react-style-singleton/dist/es2015/hook.es.js.map +1 -1
- package/dist/node_modules/.pnpm/react-style-singleton@2.2.3_@types_react@19.1.0_react@19.1.0/node_modules/react-style-singleton/dist/es2015/singleton.es.js.map +1 -1
- package/dist/node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.es.js.map +1 -1
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.1.0_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useMergeRef.es.js.map +1 -1
- package/dist/node_modules/.pnpm/use-callback-ref@1.3.3_@types_react@19.1.0_react@19.1.0/node_modules/use-callback-ref/dist/es2015/useRef.es.js.map +1 -1
- package/dist/node_modules/.pnpm/use-sidecar@1.1.3_@types_react@19.1.0_react@19.1.0/node_modules/use-sidecar/dist/es2015/medium.es.js.map +1 -1
- package/dist/utils/{index.es.js → primitives.es.js} +1 -1
- package/dist/utils/primitives.es.js.map +1 -0
- package/dist/{hooks → utils}/use-mobile.es.js.map +1 -1
- package/lib/theme.css +10 -12
- package/lib/tokens.css +3 -3
- package/lib/utilities.css +8 -8
- package/package.json +9 -11
- package/dist/components/data-table/column-picker.es.js +0 -50
- package/dist/components/data-table/column-picker.es.js.map +0 -1
- package/dist/components/data-table/page-size.es.js +0 -25
- package/dist/components/data-table/page-size.es.js.map +0 -1
- package/dist/components/data-table/paginator.es.js +0 -64
- package/dist/components/data-table/paginator.es.js.map +0 -1
- package/dist/components/data-table/table-actions.es.js +0 -26
- package/dist/components/data-table/table-actions.es.js.map +0 -1
- package/dist/components/data-table/table-content.es.js +0 -65
- package/dist/components/data-table/table-content.es.js.map +0 -1
- package/dist/components/data-table/table-utils/constants.es.js +0 -288
- package/dist/components/data-table/table-utils/constants.es.js.map +0 -1
- package/dist/components/data-table/table-utils/createTableFetchFn.es.js +0 -25
- package/dist/components/data-table/table-utils/createTableFetchFn.es.js.map +0 -1
- package/dist/components/data-table/table-utils/date.es.js +0 -12
- package/dist/components/data-table/table-utils/date.es.js.map +0 -1
- package/dist/components/data-table/table-utils/string.es.js +0 -19
- package/dist/components/data-table/table-utils/string.es.js.map +0 -1
- package/dist/components/data-table/table-utils/types.es.js +0 -5
- package/dist/components/data-table/table-utils/types.es.js.map +0 -1
- package/dist/utils/index.es.js.map +0 -1
- /package/dist/{hooks → utils}/use-mobile.es.js +0 -0
package/dist/index.es.d.ts
CHANGED
|
@@ -5,6 +5,7 @@ import { AnyFormApi } from '@tanstack/react-form';
|
|
|
5
5
|
import { ClassProp } from 'class-variance-authority/types';
|
|
6
6
|
import { ClassValue } from 'clsx';
|
|
7
7
|
import * as CollapsiblePrimitive from '@radix-ui/react-collapsible';
|
|
8
|
+
import { ColumnDef } from '@tanstack/react-table';
|
|
8
9
|
import { components } from '@cryptlex/web-api-types';
|
|
9
10
|
import { ComponentType } from 'react';
|
|
10
11
|
import { Context } from 'react';
|
|
@@ -18,6 +19,7 @@ import { Drawer as Drawer_2 } from 'vaul';
|
|
|
18
19
|
import * as DropdownMenuPrimitive from '@radix-ui/react-dropdown-menu';
|
|
19
20
|
import { FieldApi } from '@tanstack/react-form';
|
|
20
21
|
import { FieldComponent } from '@tanstack/react-form';
|
|
22
|
+
import { FilterConfig as FilterConfig_2 } from '../../index';
|
|
21
23
|
import { FormApi } from '@tanstack/react-form';
|
|
22
24
|
import { FormAsyncValidateOrFn } from '@tanstack/react-form';
|
|
23
25
|
import { FormOptions } from '@tanstack/react-form';
|
|
@@ -26,9 +28,9 @@ import { ForwardRefExoticComponent } from 'react';
|
|
|
26
28
|
import { JSX } from 'react/jsx-runtime';
|
|
27
29
|
import * as LabelPrimitive from '@radix-ui/react-label';
|
|
28
30
|
import { LucideIcon } from 'lucide-react';
|
|
31
|
+
import { operations } from '@cryptlex/web-api-types';
|
|
29
32
|
import { OTPInput } from 'input-otp';
|
|
30
33
|
import { PaginationState } from '@tanstack/react-table';
|
|
31
|
-
import { ParamsOption } from 'openapi-fetch';
|
|
32
34
|
import { paths } from '@cryptlex/web-api-types';
|
|
33
35
|
import * as PopoverPrimitive from '@radix-ui/react-popover';
|
|
34
36
|
import { PropsWithChildren } from 'react';
|
|
@@ -38,11 +40,12 @@ import { ReactFormApi } from '@tanstack/react-form';
|
|
|
38
40
|
import { RefAttributes } from 'react';
|
|
39
41
|
import * as SeparatorPrimitive from '@radix-ui/react-separator';
|
|
40
42
|
import { SortingState } from '@tanstack/react-table';
|
|
41
|
-
import {
|
|
43
|
+
import { Table as Table_2 } from '@tanstack/react-table';
|
|
42
44
|
import { TableState } from '@tanstack/react-table';
|
|
43
45
|
import * as TabsPrimitive from '@radix-ui/react-tabs';
|
|
44
46
|
import { Toaster as Toaster_2 } from 'sonner';
|
|
45
47
|
import * as TooltipPrimitive from '@radix-ui/react-tooltip';
|
|
48
|
+
import { UseQueryResult } from '@tanstack/react-query';
|
|
46
49
|
import { VariantProps } from 'class-variance-authority';
|
|
47
50
|
import { VisibilityState as VisibilityState_2 } from '@tanstack/react-table';
|
|
48
51
|
|
|
@@ -55,7 +58,7 @@ export declare function AccordionItem({ className, ...props }: React_2.Component
|
|
|
55
58
|
export declare function AccordionTrigger({ className, children, ...props }: React_2.ComponentProps<typeof AccordionPrimitive.Trigger>): JSX.Element;
|
|
56
59
|
|
|
57
60
|
/** Reserved name for actions column */
|
|
58
|
-
export declare const ACTIONS_COLUMN_ID = "
|
|
61
|
+
export declare const ACTIONS_COLUMN_ID = "tableActions";
|
|
59
62
|
|
|
60
63
|
export declare function Alert({ children, className, variant, icon: Icon, ...props }: React.ComponentProps<'div'> & VariantProps<typeof alertVariants> & {
|
|
61
64
|
icon?: LucideIcon;
|
|
@@ -69,6 +72,21 @@ export declare const ALL_OS: {
|
|
|
69
72
|
[key: string]: string;
|
|
70
73
|
};
|
|
71
74
|
|
|
75
|
+
export declare type ApiFilter<T extends keyof operations> = Omit<ApiQuery<T>, 'page' | 'limit' | 'sort' | 'search'>;
|
|
76
|
+
|
|
77
|
+
export declare type ApiFilters<T extends keyof operations> = NonNullable<Omit<ApiQuery<T>, 'page' | 'limit' | 'sort' | 'search'>>;
|
|
78
|
+
|
|
79
|
+
export declare type ApiGetAllParameters = {
|
|
80
|
+
page: number;
|
|
81
|
+
limit: number;
|
|
82
|
+
search?: string;
|
|
83
|
+
sort?: string;
|
|
84
|
+
};
|
|
85
|
+
|
|
86
|
+
export declare type ApiQuery<T extends keyof operations> = NonNullable<operations[T]['parameters']['query']>;
|
|
87
|
+
|
|
88
|
+
export declare type ApiSchema<T extends keyof components['schemas']> = components['schemas'][T];
|
|
89
|
+
|
|
72
90
|
export declare function Avatar({ className, initials, ...props }: AvatarProps): JSX.Element;
|
|
73
91
|
|
|
74
92
|
export declare interface AvatarProps extends Omit<React_2.ComponentProps<"div">, "children">, InitialString {
|
|
@@ -97,16 +115,17 @@ export declare function BreadcrumbPage({ className, ...props }: React_2.Componen
|
|
|
97
115
|
|
|
98
116
|
export declare function BreadcrumbSeparator({ children, className, ...props }: React_2.ComponentProps<"li">): JSX.Element;
|
|
99
117
|
|
|
100
|
-
export declare function Button({ className, variant, size, loading, disabled, icon, trailingIcon, children, ...props }: ButtonProps): JSX.Element;
|
|
118
|
+
export declare function Button({ className, variant, size, loading, disabled, icon, trailingIcon, active, children, ...props }: ButtonProps): JSX.Element;
|
|
101
119
|
|
|
102
120
|
export declare interface ButtonProps extends React_2.ComponentProps<"button">, VariantProps<typeof buttonVariants> {
|
|
103
121
|
loading?: boolean;
|
|
104
122
|
icon?: () => LucideIcon;
|
|
105
123
|
trailingIcon?: () => LucideIcon;
|
|
124
|
+
active?: boolean;
|
|
106
125
|
}
|
|
107
126
|
|
|
108
127
|
export declare const buttonVariants: (props?: ({
|
|
109
|
-
variant?: "link" | "default" | "
|
|
128
|
+
variant?: "link" | "default" | "secondary" | "destructive" | "neutral" | "ghost" | null | undefined;
|
|
110
129
|
size?: "default" | "xs" | "sm" | "icon" | "lg" | null | undefined;
|
|
111
130
|
} & ClassProp) | undefined) => string;
|
|
112
131
|
|
|
@@ -170,27 +189,50 @@ declare interface CopyProps {
|
|
|
170
189
|
|
|
171
190
|
export declare function CountrySelect({ ...props }: Omit<MultiSelectProps, "options">): JSX.Element;
|
|
172
191
|
|
|
173
|
-
export declare function createTableFetchFn<
|
|
192
|
+
export declare function createTableFetchFn<Return, Operation extends keyof operations>(ctxclient: Client, path: GetPaths): TableFetchFn<Return, Operation>;
|
|
174
193
|
|
|
175
194
|
export declare type CtxPortals = "customer-portal" | "system-portal" | "reseller-portal" | "admin-portal";
|
|
176
195
|
|
|
177
196
|
/** Application Names */
|
|
178
197
|
export declare type CtxProjectName = "admin-portal" | "customer-portal" | "internal-portal" | "reseller-portal";
|
|
179
198
|
|
|
180
|
-
export declare function DataTable
|
|
199
|
+
export declare function DataTable({ tableActions, className, ...props }: DataTableProps): JSX.Element;
|
|
181
200
|
|
|
182
|
-
export declare
|
|
183
|
-
|
|
184
|
-
|
|
201
|
+
export declare const DataTableContext: default_2.Context<{
|
|
202
|
+
tableState: DataTableState;
|
|
203
|
+
updateTableState: (updates: Partial<DataTableState>) => void;
|
|
204
|
+
query: UseQueryResult< {
|
|
205
|
+
total: number;
|
|
206
|
+
data: Schemas[] | undefined;
|
|
207
|
+
}, Error>;
|
|
208
|
+
tanTable: Table_2<any>;
|
|
209
|
+
mergedFilters: ApiFilters<keyof operations>;
|
|
210
|
+
filters: ApiFilters<keyof operations>[];
|
|
211
|
+
setFilters: default_2.Dispatch<default_2.SetStateAction<ApiFilters<keyof operations>[]>>;
|
|
212
|
+
filterConfig: Required<Record<never, FilterConfig_2>>;
|
|
213
|
+
} | null>;
|
|
214
|
+
|
|
215
|
+
declare type DataTableFactory<TData extends Schemas> = {
|
|
216
|
+
fetchFn: TableFetchFn<TData, OperationKeys>;
|
|
217
|
+
columns: ColumnDef<TData, any>[];
|
|
185
218
|
allowSelection?: boolean;
|
|
186
219
|
columnsToHideByDefault?: VisibilityState_2;
|
|
187
|
-
|
|
220
|
+
filterConfig: FiltersConfig<OperationKeys>;
|
|
221
|
+
};
|
|
188
222
|
|
|
189
|
-
export declare
|
|
190
|
-
|
|
223
|
+
export declare function DataTableFilter({ className, ...props }: TableFilterProps): JSX.Element;
|
|
224
|
+
|
|
225
|
+
export declare type DataTableProps = default_2.ComponentProps<'section'> & {
|
|
226
|
+
tableActions: TableActions;
|
|
191
227
|
};
|
|
192
228
|
|
|
193
|
-
export declare
|
|
229
|
+
export declare function DataTableProvider({ children, ...props }: {
|
|
230
|
+
children: default_2.ReactNode;
|
|
231
|
+
} & ReturnType<typeof useDataTableState>): JSX.Element;
|
|
232
|
+
|
|
233
|
+
declare type DataTableState = Pick<TableState, 'sorting' | 'columnVisibility' | 'rowSelection' | 'pagination' | 'columnOrder'> & {
|
|
234
|
+
search: string;
|
|
235
|
+
};
|
|
194
236
|
|
|
195
237
|
/*** Type for hide some of the columns based on the dto of the particular page
|
|
196
238
|
** `id`, `updatedAt` are by default hidden
|
|
@@ -254,6 +296,7 @@ export declare function DropdownMenuContent({ className, sideOffset, ...props }:
|
|
|
254
296
|
|
|
255
297
|
export declare const DropdownMenuGroup: React_2.ForwardRefExoticComponent<DropdownMenuPrimitive.DropdownMenuGroupProps & React_2.RefAttributes<HTMLDivElement>>;
|
|
256
298
|
|
|
299
|
+
/** TODO, is this */
|
|
257
300
|
export declare function DropdownMenuItem({ className, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Item>): JSX.Element;
|
|
258
301
|
|
|
259
302
|
export declare function DropdownMenuLabel({ className, ...props }: React_2.ComponentProps<typeof DropdownMenuPrimitive.Label>): JSX.Element;
|
|
@@ -288,24 +331,39 @@ export declare enum DYNAMIC_INPUT_TARGET {
|
|
|
288
331
|
|
|
289
332
|
export declare const fieldContext: Context<AnyFieldApi>;
|
|
290
333
|
|
|
291
|
-
export declare type fieldsToDisplay = {
|
|
292
|
-
display: string;
|
|
293
|
-
accessor: string;
|
|
294
|
-
};
|
|
295
|
-
|
|
296
334
|
export declare const FILTER_COMPARISON_OPERATORS: readonly ["eq", "ne", "cn", "nc", "sw", "ew", "in", "nin", "gt", "gte", "lt", "lte"];
|
|
297
335
|
|
|
298
|
-
export declare
|
|
336
|
+
export declare type FilterComp<T> = ComponentType<{
|
|
337
|
+
value: T;
|
|
338
|
+
onChange: (value: T) => void;
|
|
339
|
+
}>;
|
|
340
|
+
|
|
341
|
+
export declare type FilterComparisonOperator = (typeof FILTER_COMPARISON_OPERATORS)[number];
|
|
299
342
|
|
|
300
|
-
export declare type
|
|
301
|
-
|
|
343
|
+
export declare type FilterConfig = {
|
|
344
|
+
type: 'enum';
|
|
345
|
+
component: React.FC<MultiSelectProps>;
|
|
346
|
+
} | {
|
|
347
|
+
type: 'id';
|
|
348
|
+
} | {
|
|
349
|
+
type: 'bool';
|
|
350
|
+
} | {
|
|
351
|
+
type: 'string';
|
|
352
|
+
} | {
|
|
353
|
+
type: 'date';
|
|
354
|
+
} | {
|
|
355
|
+
type: 'id-search';
|
|
356
|
+
search: UseQueryResult<{
|
|
357
|
+
id: string;
|
|
358
|
+
name: string;
|
|
359
|
+
}, Error>;
|
|
302
360
|
};
|
|
303
361
|
|
|
304
|
-
export declare type
|
|
362
|
+
export declare type FiltersConfig<TOperation extends OperationKeys> = Required<Record<keyof ApiFilters<TOperation>, FilterConfig>>;
|
|
305
363
|
|
|
306
|
-
export declare type
|
|
364
|
+
export declare type FilterType = FilterConfig['type'];
|
|
307
365
|
|
|
308
|
-
export declare function
|
|
366
|
+
export declare function formatDate(date: string | null | undefined): string | null;
|
|
309
367
|
|
|
310
368
|
export declare const formContext: Context<AnyFormApi>;
|
|
311
369
|
|
|
@@ -400,8 +458,6 @@ declare interface LoaderProps {
|
|
|
400
458
|
|
|
401
459
|
export declare function logout(): void;
|
|
402
460
|
|
|
403
|
-
export declare type MetadataDto = components["schemas"]["MetadataDto"];
|
|
404
|
-
|
|
405
461
|
export declare function MultiSelect({ options, value, setValue, buttonLabel, className, ...props }: MultiSelectProps): JSX.Element;
|
|
406
462
|
|
|
407
463
|
export declare interface MultiSelectProps extends SelectionProps<string[]> {
|
|
@@ -411,9 +467,7 @@ declare type NestedKeyOf<T> = T extends object ? {
|
|
|
411
467
|
[K in keyof T]: K extends string | number ? `${K & string}` | `${K & string}.${NestedKeyOf<T[K]>}` : never;
|
|
412
468
|
}[keyof T] : never;
|
|
413
469
|
|
|
414
|
-
export declare
|
|
415
|
-
|
|
416
|
-
export declare type OperatorsForFilterType = Record<FilterablePropertyType, FilterComparisonOperator[]>;
|
|
470
|
+
export declare type OperationKeys = keyof operations;
|
|
417
471
|
|
|
418
472
|
export declare function Pagination({ className, ...props }: React_2.ComponentProps<"nav">): JSX.Element;
|
|
419
473
|
|
|
@@ -449,6 +503,8 @@ export declare function RadioGroup({ className, ...props }: React_2.ComponentPro
|
|
|
449
503
|
|
|
450
504
|
export declare function RadioGroupItem({ className, ...props }: React_2.ComponentProps<typeof RadioGroupPrimitive.Item>): JSX.Element;
|
|
451
505
|
|
|
506
|
+
export declare function replaceAt<T>(array: readonly T[], index: number, updater: (item: T) => T): T[];
|
|
507
|
+
|
|
452
508
|
export declare const RESOURCE_DEFINITIONS: Record<ResourceName, string>;
|
|
453
509
|
|
|
454
510
|
/** Resource Name should ALWAYS be in singular form */
|
|
@@ -456,6 +512,8 @@ export declare const RESOURCE_NAMES: readonly ["access-token", "account", "activ
|
|
|
456
512
|
|
|
457
513
|
export declare type ResourceName = (typeof RESOURCE_NAMES)[number];
|
|
458
514
|
|
|
515
|
+
export declare type Schemas = ApiSchema<keyof components['schemas']>;
|
|
516
|
+
|
|
459
517
|
export declare function SearchInput({ onChange, ...props }: SearchInputProps): JSX.Element;
|
|
460
518
|
|
|
461
519
|
declare interface SearchInputProps extends Omit<InputProps, "onChange"> {
|
|
@@ -613,7 +671,12 @@ export declare const TABLE_DEFAULT_DATE_COLUMNS: AccessorKeyColumnDef<any, any>[
|
|
|
613
671
|
|
|
614
672
|
export declare const TABLE_ID_COLUMN: AccessorKeyColumnDef<any, any>[];
|
|
615
673
|
|
|
616
|
-
export declare type TableActions =
|
|
674
|
+
export declare type TableActions = ({
|
|
675
|
+
onClick: (e: React.MouseEvent<HTMLButtonElement>, t: Table_2<any>) => void;
|
|
676
|
+
bulk: boolean;
|
|
677
|
+
icon: LucideIcon;
|
|
678
|
+
tooltip?: string;
|
|
679
|
+
})[];
|
|
617
680
|
|
|
618
681
|
export declare function TableBody({ className, ...props }: React_2.ComponentProps<"tbody">): JSX.Element;
|
|
619
682
|
|
|
@@ -621,11 +684,13 @@ export declare function TableCaption({ className, ...props }: React_2.ComponentP
|
|
|
621
684
|
|
|
622
685
|
export declare function TableCell({ className, ...props }: React_2.ComponentProps<"td">): JSX.Element;
|
|
623
686
|
|
|
624
|
-
export declare type TableFetchFn<TData> = (p: PaginationState, s: SortingState, q: string) => Promise<{
|
|
687
|
+
export declare type TableFetchFn<TData, TOperation extends keyof operations> = (p: PaginationState, s: SortingState, q: string, f: ApiFilters<TOperation>) => Promise<{
|
|
625
688
|
total: number;
|
|
626
689
|
data: TData[] | undefined;
|
|
627
690
|
}>;
|
|
628
691
|
|
|
692
|
+
declare type TableFilterProps = React.ComponentProps<'section'>;
|
|
693
|
+
|
|
629
694
|
export declare function TableFooter({ className, ...props }: React_2.ComponentProps<"tfoot">): JSX.Element;
|
|
630
695
|
|
|
631
696
|
export declare function TableHead({ className, ...props }: React_2.ComponentProps<"th">): JSX.Element;
|
|
@@ -718,6 +783,37 @@ export declare const useAppForm: <TFormData, TOnMount extends FormValidateOrFn<T
|
|
|
718
783
|
AppForm: ComponentType<PropsWithChildren>;
|
|
719
784
|
};
|
|
720
785
|
|
|
786
|
+
export declare const useDataTable: () => {
|
|
787
|
+
tableState: DataTableState;
|
|
788
|
+
updateTableState: (updates: Partial<DataTableState>) => void;
|
|
789
|
+
query: UseQueryResult< {
|
|
790
|
+
total: number;
|
|
791
|
+
data: Schemas[] | undefined;
|
|
792
|
+
}, Error>;
|
|
793
|
+
tanTable: Table_2<any>;
|
|
794
|
+
mergedFilters: ApiFilters<keyof operations>;
|
|
795
|
+
filters: ApiFilters<keyof operations>[];
|
|
796
|
+
setFilters: default_2.Dispatch<default_2.SetStateAction<ApiFilters<keyof operations>[]>>;
|
|
797
|
+
filterConfig: Required<Record<never, FilterConfig_2>>;
|
|
798
|
+
};
|
|
799
|
+
|
|
800
|
+
/**
|
|
801
|
+
* Hook for handling all data-table state. Used in DataTableContext
|
|
802
|
+
*/
|
|
803
|
+
export declare function useDataTableState<TData extends Schemas>({ columns, fetchFn, columnsToHideByDefault, allowSelection, filterConfig }: DataTableFactory<TData>): {
|
|
804
|
+
tableState: DataTableState;
|
|
805
|
+
updateTableState: (updates: Partial<DataTableState>) => void;
|
|
806
|
+
query: UseQueryResult< {
|
|
807
|
+
total: number;
|
|
808
|
+
data: TData[] | undefined;
|
|
809
|
+
}, Error>;
|
|
810
|
+
tanTable: Table_2<any>;
|
|
811
|
+
mergedFilters: ApiFilters<keyof operations>;
|
|
812
|
+
filters: ApiFilters<keyof operations>[];
|
|
813
|
+
setFilters: default_2.Dispatch<default_2.SetStateAction<ApiFilters<keyof operations>[]>>;
|
|
814
|
+
filterConfig: Required<Record<never, FilterConfig_2>>;
|
|
815
|
+
};
|
|
816
|
+
|
|
721
817
|
export declare const useFieldContext: <TData>() => FieldApi<any, string, TData, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any, any>;
|
|
722
818
|
|
|
723
819
|
export declare function useIsMobile(): boolean;
|