@grampro/kit 0.0.0-stage → 2.4.1
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/.gbs/skills/gbs-components/SKILL.md +190 -0
- package/.gbs/skills/gbs-components/references/accessibility.md +102 -0
- package/.gbs/skills/gbs-components/references/data-display.md +185 -0
- package/.gbs/skills/gbs-components/references/data-grid.md +116 -0
- package/.gbs/skills/gbs-components/references/forms.md +202 -0
- package/.gbs/skills/gbs-components/references/install.md +211 -0
- package/.gbs/skills/gbs-components/references/overlays.md +206 -0
- package/.gbs/skills/gbs-components/references/pickers.md +83 -0
- package/.gbs/skills/gbs-components/references/styling.md +246 -0
- package/.gbs/skills/gbs-components/references/toaster.md +57 -0
- package/CHANGELOG.md +173 -0
- package/LICENSE +15 -0
- package/README.md +193 -2
- package/index.cjs +1410 -0
- package/package.json +77 -6
- package/schema/passport-v1.schema.json +204 -0
- package/source/components/accordion/README.md +45 -0
- package/source/components/accordion/core/index.ts +2 -0
- package/source/components/accordion/core/open.ts +56 -0
- package/source/components/accordion/core/types.ts +17 -0
- package/source/components/accordion/index.ts +8 -0
- package/source/components/accordion/passport.json +259 -0
- package/source/components/accordion/react/Accordion.tsx +133 -0
- package/source/components/accordion/react/AccordionItem.tsx +120 -0
- package/source/components/accordion/react/context.ts +20 -0
- package/source/components/accordion/react/props.ts +13 -0
- package/source/components/accordion/styles.css +207 -0
- package/source/components/alert/README.md +39 -0
- package/source/components/alert/core/index.ts +2 -0
- package/source/components/alert/core/live.ts +25 -0
- package/source/components/alert/core/types.ts +7 -0
- package/source/components/alert/index.ts +5 -0
- package/source/components/alert/passport.json +250 -0
- package/source/components/alert/react/Alert.tsx +113 -0
- package/source/components/alert/react/icons.tsx +21 -0
- package/source/components/alert/react/locale.ts +5 -0
- package/source/components/alert/react/props.ts +11 -0
- package/source/components/alert/styles.css +154 -0
- package/source/components/avatar/core/identity.ts +103 -0
- package/source/components/avatar/core/index.ts +2 -0
- package/source/components/avatar/core/types.ts +12 -0
- package/source/components/avatar/index.ts +7 -0
- package/source/components/avatar/passport.json +294 -0
- package/source/components/avatar/react/Avatar.tsx +118 -0
- package/source/components/avatar/react/AvatarGroup.tsx +74 -0
- package/source/components/avatar/react/locale.ts +11 -0
- package/source/components/avatar/react/props.ts +6 -0
- package/source/components/avatar/styles.css +225 -0
- package/source/components/badge/README.md +37 -0
- package/source/components/badge/core/count.ts +37 -0
- package/source/components/badge/core/index.ts +2 -0
- package/source/components/badge/core/types.ts +11 -0
- package/source/components/badge/index.ts +7 -0
- package/source/components/badge/passport.json +332 -0
- package/source/components/badge/react/Badge.tsx +89 -0
- package/source/components/badge/react/Tag.tsx +82 -0
- package/source/components/badge/react/locale.ts +5 -0
- package/source/components/badge/react/props.ts +6 -0
- package/source/components/badge/styles.css +203 -0
- package/source/components/breadcrumb/README.md +34 -0
- package/source/components/breadcrumb/core/index.ts +4 -0
- package/source/components/breadcrumb/core/trail.ts +42 -0
- package/source/components/breadcrumb/core/types.ts +20 -0
- package/source/components/breadcrumb/index.ts +5 -0
- package/source/components/breadcrumb/passport.json +243 -0
- package/source/components/breadcrumb/react/Breadcrumb.tsx +177 -0
- package/source/components/breadcrumb/react/locale.ts +6 -0
- package/source/components/breadcrumb/react/props.ts +14 -0
- package/source/components/breadcrumb/styles.css +138 -0
- package/source/components/button/README.md +32 -0
- package/source/components/button/core/index.ts +3 -0
- package/source/components/button/core/state.ts +16 -0
- package/source/components/button/core/types.ts +28 -0
- package/source/components/button/index.ts +5 -0
- package/source/components/button/passport.json +402 -0
- package/source/components/button/passport.manual.json +31 -0
- package/source/components/button/react/Button.tsx +173 -0
- package/source/components/button/react/locale.ts +5 -0
- package/source/components/button/react/props.ts +23 -0
- package/source/components/button/styles.css +232 -0
- package/source/components/card/README.md +60 -0
- package/source/components/card/core/index.ts +4 -0
- package/source/components/card/core/trend.ts +32 -0
- package/source/components/card/core/types.ts +5 -0
- package/source/components/card/index.ts +5 -0
- package/source/components/card/passport.json +337 -0
- package/source/components/card/react/Card.tsx +133 -0
- package/source/components/card/react/Stat.tsx +127 -0
- package/source/components/card/react/props.ts +4 -0
- package/source/components/card/styles.css +230 -0
- package/source/components/checkbox/README.md +36 -0
- package/source/components/checkbox/core/group.ts +30 -0
- package/source/components/checkbox/core/index.ts +3 -0
- package/source/components/checkbox/core/types.ts +17 -0
- package/source/components/checkbox/index.ts +9 -0
- package/source/components/checkbox/passport.json +456 -0
- package/source/components/checkbox/react/Checkbox.tsx +147 -0
- package/source/components/checkbox/react/CheckboxGroup.tsx +149 -0
- package/source/components/checkbox/react/context.ts +16 -0
- package/source/components/checkbox/react/locale.ts +5 -0
- package/source/components/checkbox/react/props.ts +6 -0
- package/source/components/checkbox/styles.css +211 -0
- package/source/components/combobox/README.md +170 -0
- package/source/components/combobox/core/filter.ts +155 -0
- package/source/components/combobox/core/index.ts +16 -0
- package/source/components/combobox/core/types.ts +48 -0
- package/source/components/combobox/core/virtual.ts +67 -0
- package/source/components/combobox/index.ts +13 -0
- package/source/components/combobox/passport.json +456 -0
- package/source/components/combobox/react/Listbox.tsx +310 -0
- package/source/components/combobox/react/MultiSelect.tsx +265 -0
- package/source/components/combobox/react/Popover.tsx +38 -0
- package/source/components/combobox/react/Select.tsx +200 -0
- package/source/components/combobox/react/icons.tsx +11 -0
- package/source/components/combobox/react/locale.ts +16 -0
- package/source/components/combobox/react/props.ts +88 -0
- package/source/components/combobox/react/useCombobox.ts +409 -0
- package/source/components/combobox/styles.css +419 -0
- package/source/components/data-grid/README.md +233 -0
- package/source/components/data-grid/agent/coerce.ts +368 -0
- package/source/components/data-grid/agent/contract.ts +410 -0
- package/source/components/data-grid/agent/dataset.ts +92 -0
- package/source/components/data-grid/agent/engine.ts +470 -0
- package/source/components/data-grid/agent/executors.ts +155 -0
- package/source/components/data-grid/agent/index.ts +79 -0
- package/source/components/data-grid/agent/intent.ts +324 -0
- package/source/components/data-grid/agent/operations.ts +335 -0
- package/source/components/data-grid/agent/validate.ts +630 -0
- package/source/components/data-grid/agent/webmcp.ts +107 -0
- package/source/components/data-grid/core/columnHelper.ts +21 -0
- package/source/components/data-grid/core/columns.ts +288 -0
- package/source/components/data-grid/core/filtering.ts +237 -0
- package/source/components/data-grid/core/grid.ts +638 -0
- package/source/components/data-grid/core/index.ts +14 -0
- package/source/components/data-grid/core/rows.ts +64 -0
- package/source/components/data-grid/core/sorting.ts +133 -0
- package/source/components/data-grid/core/state.ts +82 -0
- package/source/components/data-grid/core/store.ts +52 -0
- package/source/components/data-grid/core/types.ts +302 -0
- package/source/components/data-grid/core/values.ts +98 -0
- package/source/components/data-grid/core/virtual.ts +85 -0
- package/source/components/data-grid/export/csv.ts +32 -0
- package/source/components/data-grid/export/download.ts +12 -0
- package/source/components/data-grid/export/pdf-font.ts +139 -0
- package/source/components/data-grid/export/pdf-writer.ts +113 -0
- package/source/components/data-grid/export/pdf.ts +379 -0
- package/source/components/data-grid/export/table.ts +73 -0
- package/source/components/data-grid/export/xlsx.ts +145 -0
- package/source/components/data-grid/export/zip.ts +87 -0
- package/source/components/data-grid/index.ts +14 -0
- package/source/components/data-grid/passport.json +1051 -0
- package/source/components/data-grid/passport.manual.json +255 -0
- package/source/components/data-grid/react/AskGrid.tsx +164 -0
- package/source/components/data-grid/react/Cell.tsx +282 -0
- package/source/components/data-grid/react/ColumnMenu.tsx +135 -0
- package/source/components/data-grid/react/DataGrid.tsx +335 -0
- package/source/components/data-grid/react/FilterForm.tsx +142 -0
- package/source/components/data-grid/react/HeaderRow.tsx +332 -0
- package/source/components/data-grid/react/Pagination.tsx +107 -0
- package/source/components/data-grid/react/Popover.tsx +35 -0
- package/source/components/data-grid/react/Row.tsx +85 -0
- package/source/components/data-grid/react/Toolbar.tsx +267 -0
- package/source/components/data-grid/react/Viewport.tsx +167 -0
- package/source/components/data-grid/react/context.ts +57 -0
- package/source/components/data-grid/react/hooks.ts +83 -0
- package/source/components/data-grid/react/icons.tsx +45 -0
- package/source/components/data-grid/react/keyboard.ts +110 -0
- package/source/components/data-grid/react/locale.ts +130 -0
- package/source/components/data-grid/styles.css +874 -0
- package/source/components/date-picker/README.md +141 -0
- package/source/components/date-picker/core/calendar.ts +266 -0
- package/source/components/date-picker/core/format.ts +170 -0
- package/source/components/date-picker/core/index.ts +41 -0
- package/source/components/date-picker/core/today.ts +72 -0
- package/source/components/date-picker/core/types.ts +68 -0
- package/source/components/date-picker/index.ts +16 -0
- package/source/components/date-picker/passport.json +407 -0
- package/source/components/date-picker/react/Calendar.tsx +160 -0
- package/source/components/date-picker/react/CalendarPanel.tsx +170 -0
- package/source/components/date-picker/react/DatePicker.tsx +249 -0
- package/source/components/date-picker/react/DateRangePicker.tsx +291 -0
- package/source/components/date-picker/react/MonthYearPanels.tsx +123 -0
- package/source/components/date-picker/react/Popover.tsx +45 -0
- package/source/components/date-picker/react/icons.tsx +15 -0
- package/source/components/date-picker/react/locale.ts +23 -0
- package/source/components/date-picker/react/props.ts +76 -0
- package/source/components/date-picker/react/useDatePicker.ts +557 -0
- package/source/components/date-picker/styles.css +445 -0
- package/source/components/dialog/README.md +39 -0
- package/source/components/dialog/core/api.ts +34 -0
- package/source/components/dialog/core/dialog.ts +11 -0
- package/source/components/dialog/core/index.ts +7 -0
- package/source/components/dialog/core/store.ts +81 -0
- package/source/components/dialog/core/types.ts +59 -0
- package/source/components/dialog/index.ts +7 -0
- package/source/components/dialog/passport.json +344 -0
- package/source/components/dialog/react/Dialog.tsx +279 -0
- package/source/components/dialog/react/DialogHost.tsx +45 -0
- package/source/components/dialog/react/icons.tsx +20 -0
- package/source/components/dialog/react/locale.ts +8 -0
- package/source/components/dialog/react/props.ts +13 -0
- package/source/components/dialog/styles.css +280 -0
- package/source/components/file-uploader/README.md +99 -0
- package/source/components/file-uploader/core/format.ts +79 -0
- package/source/components/file-uploader/core/index.ts +26 -0
- package/source/components/file-uploader/core/store.ts +432 -0
- package/source/components/file-uploader/core/transport.ts +154 -0
- package/source/components/file-uploader/core/types.ts +126 -0
- package/source/components/file-uploader/core/validate.ts +83 -0
- package/source/components/file-uploader/index.ts +7 -0
- package/source/components/file-uploader/passport.json +518 -0
- package/source/components/file-uploader/react/FileRow.tsx +268 -0
- package/source/components/file-uploader/react/FileUploader.tsx +511 -0
- package/source/components/file-uploader/react/icons.tsx +60 -0
- package/source/components/file-uploader/react/locale.ts +33 -0
- package/source/components/file-uploader/react/props.ts +31 -0
- package/source/components/file-uploader/react/useFileUploader.ts +32 -0
- package/source/components/file-uploader/styles.css +394 -0
- package/source/components/input/README.md +44 -0
- package/source/components/input/core/count.ts +5 -0
- package/source/components/input/core/index.ts +11 -0
- package/source/components/input/core/otp.ts +64 -0
- package/source/components/input/core/types.ts +14 -0
- package/source/components/input/index.ts +8 -0
- package/source/components/input/passport.json +536 -0
- package/source/components/input/react/Input.tsx +219 -0
- package/source/components/input/react/OtpInput.tsx +256 -0
- package/source/components/input/react/dom.ts +10 -0
- package/source/components/input/react/icons.tsx +17 -0
- package/source/components/input/react/locale.ts +9 -0
- package/source/components/input/react/props.ts +6 -0
- package/source/components/input/styles.css +295 -0
- package/source/components/menu/README.md +68 -0
- package/source/components/menu/core/index.ts +11 -0
- package/source/components/menu/core/navigation.ts +84 -0
- package/source/components/menu/core/types.ts +32 -0
- package/source/components/menu/index.ts +19 -0
- package/source/components/menu/passport.json +322 -0
- package/source/components/menu/react/Menu.tsx +371 -0
- package/source/components/menu/react/context.ts +31 -0
- package/source/components/menu/react/items.tsx +268 -0
- package/source/components/menu/react/locale.ts +6 -0
- package/source/components/menu/react/props.ts +4 -0
- package/source/components/menu/react/useMenuKeys.ts +124 -0
- package/source/components/menu/styles.css +224 -0
- package/source/components/modal/README.md +51 -0
- package/source/components/modal/core/dismiss.ts +29 -0
- package/source/components/modal/core/index.ts +3 -0
- package/source/components/modal/core/types.ts +27 -0
- package/source/components/modal/index.ts +5 -0
- package/source/components/modal/passport.json +289 -0
- package/source/components/modal/react/Modal.tsx +242 -0
- package/source/components/modal/react/icons.tsx +1 -0
- package/source/components/modal/react/locale.ts +5 -0
- package/source/components/modal/react/props.ts +17 -0
- package/source/components/modal/styles.css +241 -0
- package/source/components/number-input/README.md +53 -0
- package/source/components/number-input/core/format.ts +37 -0
- package/source/components/number-input/core/index.ts +4 -0
- package/source/components/number-input/core/parse.ts +118 -0
- package/source/components/number-input/core/step.ts +73 -0
- package/source/components/number-input/core/types.ts +32 -0
- package/source/components/number-input/index.ts +5 -0
- package/source/components/number-input/passport.json +541 -0
- package/source/components/number-input/react/NumberInput.tsx +465 -0
- package/source/components/number-input/react/icons.tsx +17 -0
- package/source/components/number-input/react/locale.ts +7 -0
- package/source/components/number-input/react/props.ts +11 -0
- package/source/components/number-input/styles.css +230 -0
- package/source/components/popover/README.md +44 -0
- package/source/components/popover/core/index.ts +2 -0
- package/source/components/popover/core/types.ts +12 -0
- package/source/components/popover/index.ts +4 -0
- package/source/components/popover/passport.json +238 -0
- package/source/components/popover/react/Popover.tsx +202 -0
- package/source/components/popover/react/locale.ts +5 -0
- package/source/components/popover/react/props.ts +4 -0
- package/source/components/popover/styles.css +148 -0
- package/source/components/progress/README.md +38 -0
- package/source/components/progress/core/index.ts +2 -0
- package/source/components/progress/core/progress.ts +40 -0
- package/source/components/progress/core/types.ts +23 -0
- package/source/components/progress/index.ts +7 -0
- package/source/components/progress/passport.json +270 -0
- package/source/components/progress/react/CircularProgress.tsx +106 -0
- package/source/components/progress/react/Progress.tsx +113 -0
- package/source/components/progress/react/locale.ts +7 -0
- package/source/components/progress/react/props.ts +6 -0
- package/source/components/progress/styles.css +200 -0
- package/source/components/radio-group/README.md +58 -0
- package/source/components/radio-group/core/group.ts +36 -0
- package/source/components/radio-group/core/index.ts +2 -0
- package/source/components/radio-group/core/types.ts +20 -0
- package/source/components/radio-group/index.ts +9 -0
- package/source/components/radio-group/passport.json +477 -0
- package/source/components/radio-group/react/Radio.tsx +144 -0
- package/source/components/radio-group/react/RadioGroup.tsx +179 -0
- package/source/components/radio-group/react/context.ts +18 -0
- package/source/components/radio-group/react/locale.ts +5 -0
- package/source/components/radio-group/react/props.ts +12 -0
- package/source/components/radio-group/styles.css +269 -0
- package/source/components/shared/README.md +54 -0
- package/source/components/shared/core/agent/adapter.ts +65 -0
- package/source/components/shared/core/agent/history.ts +120 -0
- package/source/components/shared/core/agent/index.ts +46 -0
- package/source/components/shared/core/agent/numbers.ts +217 -0
- package/source/components/shared/core/agent/schema.ts +180 -0
- package/source/components/shared/core/agent/types.ts +169 -0
- package/source/components/shared/core/agent/webmcp.ts +328 -0
- package/source/components/shared/core/cx.ts +9 -0
- package/source/components/shared/core/field.ts +35 -0
- package/source/components/shared/core/position.ts +124 -0
- package/source/components/shared/core/text.ts +14 -0
- package/source/components/shared/index.ts +17 -0
- package/source/components/shared/react/GramproAIProvider.tsx +50 -0
- package/source/components/shared/react/Popover.tsx +189 -0
- package/source/components/shared/react/icons.tsx +74 -0
- package/source/components/shared/react/useAskAgent.ts +217 -0
- package/source/components/shared/react/useControllableState.ts +42 -0
- package/source/components/shared/styles.css +79 -0
- package/source/components/shared/version.json +4 -0
- package/source/components/shared/version.ts +6 -0
- package/source/components/skeleton/README.md +58 -0
- package/source/components/skeleton/core/index.ts +3 -0
- package/source/components/skeleton/core/lines.ts +25 -0
- package/source/components/skeleton/core/types.ts +5 -0
- package/source/components/skeleton/index.ts +5 -0
- package/source/components/skeleton/passport.json +251 -0
- package/source/components/skeleton/react/Empty.tsx +51 -0
- package/source/components/skeleton/react/Skeleton.tsx +92 -0
- package/source/components/skeleton/react/props.ts +4 -0
- package/source/components/skeleton/styles.css +185 -0
- package/source/components/spinner/README.md +29 -0
- package/source/components/spinner/core/index.ts +3 -0
- package/source/components/spinner/core/types.ts +28 -0
- package/source/components/spinner/core/visibility.ts +34 -0
- package/source/components/spinner/index.ts +6 -0
- package/source/components/spinner/passport.json +245 -0
- package/source/components/spinner/react/Spinner.tsx +96 -0
- package/source/components/spinner/react/locale.ts +5 -0
- package/source/components/spinner/react/props.ts +4 -0
- package/source/components/spinner/react/useDelayedLoading.ts +39 -0
- package/source/components/spinner/styles.css +173 -0
- package/source/components/switch/README.md +46 -0
- package/source/components/switch/core/index.ts +2 -0
- package/source/components/switch/core/toggle.ts +54 -0
- package/source/components/switch/core/types.ts +9 -0
- package/source/components/switch/index.ts +5 -0
- package/source/components/switch/passport.json +421 -0
- package/source/components/switch/react/Switch.tsx +219 -0
- package/source/components/switch/react/locale.ts +5 -0
- package/source/components/switch/react/props.ts +12 -0
- package/source/components/switch/styles.css +227 -0
- package/source/components/tabs/README.md +32 -0
- package/source/components/tabs/core/index.ts +3 -0
- package/source/components/tabs/core/navigation.ts +54 -0
- package/source/components/tabs/core/types.ts +16 -0
- package/source/components/tabs/index.ts +5 -0
- package/source/components/tabs/passport.json +315 -0
- package/source/components/tabs/react/Tabs.tsx +306 -0
- package/source/components/tabs/react/context.ts +21 -0
- package/source/components/tabs/styles.css +263 -0
- package/source/components/textarea/README.md +39 -0
- package/source/components/textarea/core/count.ts +5 -0
- package/source/components/textarea/core/index.ts +4 -0
- package/source/components/textarea/core/size.ts +23 -0
- package/source/components/textarea/core/types.ts +17 -0
- package/source/components/textarea/index.ts +5 -0
- package/source/components/textarea/passport.json +382 -0
- package/source/components/textarea/react/Textarea.tsx +208 -0
- package/source/components/textarea/react/locale.ts +5 -0
- package/source/components/textarea/react/props.ts +4 -0
- package/source/components/textarea/styles.css +158 -0
- package/source/components/toaster/README.md +128 -0
- package/source/components/toaster/core/api.ts +87 -0
- package/source/components/toaster/core/index.ts +14 -0
- package/source/components/toaster/core/store.ts +211 -0
- package/source/components/toaster/core/toast.ts +12 -0
- package/source/components/toaster/core/types.ts +78 -0
- package/source/components/toaster/index.ts +6 -0
- package/source/components/toaster/passport.json +221 -0
- package/source/components/toaster/react/ToastItem.tsx +164 -0
- package/source/components/toaster/react/Toaster.tsx +187 -0
- package/source/components/toaster/react/icons.tsx +23 -0
- package/source/components/toaster/react/locale.ts +6 -0
- package/source/components/toaster/react/props.ts +15 -0
- package/source/components/toaster/react/useToasts.ts +11 -0
- package/source/components/toaster/styles.css +282 -0
- package/source/components/tooltip/README.md +43 -0
- package/source/components/tooltip/core/index.ts +4 -0
- package/source/components/tooltip/core/types.ts +4 -0
- package/source/components/tooltip/core/visibility.ts +34 -0
- package/source/components/tooltip/index.ts +3 -0
- package/source/components/tooltip/passport.json +170 -0
- package/source/components/tooltip/react/Tooltip.tsx +196 -0
- package/source/components/tooltip/react/props.ts +4 -0
- package/source/components/tooltip/styles.css +71 -0
- package/source/fallback/index.tsx +11 -0
- package/source/globalStyle.ts +74 -0
- package/source/hooks/SelectionHooks/type.ts +4 -0
- package/source/hooks/SelectionHooks/useClickOutside.ts +22 -0
- package/source/hooks/SelectionHooks/useMultiSelectState.ts +64 -0
- package/source/hooks/SelectionHooks/useSelectData.ts +58 -0
- package/source/hooks/SelectionHooks/useSelectState.ts +36 -0
- package/source/icon/Icon.tsx +102 -0
- package/source/icon/iconPaths.ts +206 -0
- package/source/legacy-components/bargraph/index.tsx +95 -0
- package/source/legacy-components/bargraph/type.ts +12 -0
- package/source/legacy-components/breadcrumb/index.tsx +66 -0
- package/source/legacy-components/breadcrumb/types.ts +10 -0
- package/source/legacy-components/button/index.tsx +42 -0
- package/source/legacy-components/card/index.tsx +31 -0
- package/source/legacy-components/checkbox/index.tsx +25 -0
- package/source/legacy-components/contextmenu/ContextMenu.tsx +87 -0
- package/source/legacy-components/contextmenu/ContextMenuItem.tsx +30 -0
- package/source/legacy-components/contextmenu/index.ts +2 -0
- package/source/legacy-components/contextmenu/types.ts +19 -0
- package/source/legacy-components/darkmode/index.tsx +55 -0
- package/source/legacy-components/datagrid/context/GridContext.tsx +215 -0
- package/source/legacy-components/datagrid/createTemplate.tsx +82 -0
- package/source/legacy-components/datagrid/hooks/index.ts +6 -0
- package/source/legacy-components/datagrid/hooks/useColumns.ts +33 -0
- package/source/legacy-components/datagrid/hooks/useDataSource.ts +54 -0
- package/source/legacy-components/datagrid/hooks/useFiltering.ts +169 -0
- package/source/legacy-components/datagrid/hooks/usePagination.ts +112 -0
- package/source/legacy-components/datagrid/hooks/useRowSelection.ts +48 -0
- package/source/legacy-components/datagrid/hooks/useSearch.ts +90 -0
- package/source/legacy-components/datagrid/index.tsx +28 -0
- package/source/legacy-components/datagrid/layout/FilterPopup.tsx +92 -0
- package/source/legacy-components/datagrid/layout/GridBody.tsx +184 -0
- package/source/legacy-components/datagrid/layout/GridPagination.tsx +119 -0
- package/source/legacy-components/datagrid/layout/GridToolbar.tsx +109 -0
- package/source/legacy-components/datagrid/layout/index.tsx +68 -0
- package/source/legacy-components/datagrid/type.ts +198 -0
- package/source/legacy-components/datepicker/index.tsx +365 -0
- package/source/legacy-components/datepicker/types.ts +12 -0
- package/source/legacy-components/dialog/index.tsx +44 -0
- package/source/legacy-components/dialog/types.ts +12 -0
- package/source/legacy-components/formrenderer/componentHandles/CheckBoxHandles.tsx +80 -0
- package/source/legacy-components/formrenderer/componentHandles/DatePickerHandles.tsx +93 -0
- package/source/legacy-components/formrenderer/componentHandles/InputHandles.tsx +106 -0
- package/source/legacy-components/formrenderer/componentHandles/MultiHandles.tsx +93 -0
- package/source/legacy-components/formrenderer/componentHandles/SelectHandles.tsx +95 -0
- package/source/legacy-components/formrenderer/helperFunctions.ts +72 -0
- package/source/legacy-components/formrenderer/index.tsx +93 -0
- package/source/legacy-components/formrenderer/types.ts +127 -0
- package/source/legacy-components/input/index.tsx +142 -0
- package/source/legacy-components/input/types.ts +10 -0
- package/source/legacy-components/materialInput/index.tsx +138 -0
- package/source/legacy-components/materialInput/types.ts +16 -0
- package/source/legacy-components/modal/index.tsx +152 -0
- package/source/legacy-components/modal/types.ts +19 -0
- package/source/legacy-components/multiselect/PortalDropDown.tsx +44 -0
- package/source/legacy-components/multiselect/index.tsx +269 -0
- package/source/legacy-components/multiselect/types.ts +26 -0
- package/source/legacy-components/navbar/AuthSection.tsx +98 -0
- package/source/legacy-components/navbar/MobileToggle.tsx +31 -0
- package/source/legacy-components/navbar/NavItemComponent.tsx +119 -0
- package/source/legacy-components/navbar/SearchBar.tsx +55 -0
- package/source/legacy-components/navbar/helperFunctions.ts +27 -0
- package/source/legacy-components/navbar/index.tsx +156 -0
- package/source/legacy-components/navbar/types.ts +69 -0
- package/source/legacy-components/select/PortalDropDown.tsx +59 -0
- package/source/legacy-components/select/index.tsx +249 -0
- package/source/legacy-components/select/types.ts +29 -0
- package/source/legacy-components/sidebar/components/MenuItem.tsx +101 -0
- package/source/legacy-components/sidebar/components/MenuSection.tsx +34 -0
- package/source/legacy-components/sidebar/components/SidebarFooter.tsx +50 -0
- package/source/legacy-components/sidebar/components/SidebarLogo.tsx +24 -0
- package/source/legacy-components/sidebar/components/SidebarMenu.tsx +29 -0
- package/source/legacy-components/sidebar/components/UserProfile.tsx +31 -0
- package/source/legacy-components/sidebar/hooks/useSidebarState.ts +41 -0
- package/source/legacy-components/sidebar/index.tsx +77 -0
- package/source/legacy-components/sidebar/type.ts +42 -0
- package/source/legacy-components/spinner/Stroke.tsx +89 -0
- package/source/legacy-components/spinner/index.tsx +54 -0
- package/source/legacy-components/spinner/types.ts +9 -0
- package/source/legacy-components/tabs/index.tsx +71 -0
- package/source/legacy-components/tabs/types.ts +16 -0
- package/source/legacy-components/textarea/index.tsx +123 -0
- package/source/legacy-components/textarea/types.ts +15 -0
- package/source/legacy-components/toast/ToastComponent.tsx +101 -0
- package/source/legacy-components/toast/ToastIcon.tsx +61 -0
- package/source/legacy-components/toast/index.tsx +42 -0
- package/source/legacy-components/toast/toastStore.ts +42 -0
- package/source/legacy-components/toast/types.ts +18 -0
- package/source/legacy-components/toast/useToast.ts +12 -0
- package/source/legacy-components/uploader/ProgressAnimation.tsx +50 -0
- package/source/legacy-components/uploader/UploadedFilePreview.tsx +130 -0
- package/source/legacy-components/uploader/index.tsx +311 -0
- package/source/legacy-components/uploader/types.ts +30 -0
- package/source/legacy-components/uploader/uploaderIcon.tsx +72 -0
- package/source/legacy-components/uploader/uploaderService.ts +134 -0
- package/source/legacy-components/useUploader/useUploader.tsx +310 -0
- package/source/legacy-components/usepaginateddata/usePaginatedData.ts +174 -0
- package/source/theme.ts +40 -0
- package/source/utils.ts +10 -0
- package/tools/env.cjs +61 -0
- package/tools/passport/cli.cjs +79 -0
- package/tools/passport/extract.cjs +493 -0
- package/tools/passport/index.cjs +185 -0
- package/tools/passport/merge.cjs +131 -0
- package/tools/passport/policy.cjs +65 -0
- package/tools/passport/validate.cjs +277 -0
- package/tools/ts-require.cjs +79 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Avatar and AvatarGroup styles.
|
|
3
|
+
*
|
|
4
|
+
* The fallback colour comes from --av-hue-index, which the component sets from
|
|
5
|
+
* a hash of the name: the same person is the same colour everywhere, and the
|
|
6
|
+
* palette is generated rather than listed, so it follows a themed hue. Tokens
|
|
7
|
+
* read the shared --gbs-* variables when they are set on an ancestor (set them
|
|
8
|
+
* on :root to theme every component at once). Rules are unlayered: they beat a
|
|
9
|
+
* framework reset on specificity, and lose to anything you pass through
|
|
10
|
+
* `className`. With Tailwind v4, import this file after the framework and
|
|
11
|
+
* inside its components layer - see the README.
|
|
12
|
+
*/
|
|
13
|
+
|
|
14
|
+
.av-root,
|
|
15
|
+
.av-group,
|
|
16
|
+
.av-overflow {
|
|
17
|
+
--av-fg: var(--gbs-fg, var(--dg-fg, light-dark(#18181b, #f4f4f5)));
|
|
18
|
+
--av-muted: var(--gbs-muted, var(--dg-muted, light-dark(#71717a, #a1a1aa)));
|
|
19
|
+
--av-bg: var(--gbs-bg, var(--dg-bg, light-dark(#ffffff, #0b0b0e)));
|
|
20
|
+
--av-subtle: var(--gbs-subtle, light-dark(#f4f4f5, #1c1c20));
|
|
21
|
+
--av-border: var(--gbs-border, var(--dg-border, light-dark(#e4e4e7, #27272a)));
|
|
22
|
+
--av-success: var(--gbs-success, light-dark(#15803d, #4ade80));
|
|
23
|
+
--av-warning: var(--gbs-warning, light-dark(#b45309, #fbbf24));
|
|
24
|
+
--av-danger: var(--gbs-danger, var(--dg-danger, light-dark(#dc2626, #f87171)));
|
|
25
|
+
--av-radius: var(--gbs-radius, var(--dg-radius, 8px));
|
|
26
|
+
--av-size: 32px;
|
|
27
|
+
--av-font-size: 13px;
|
|
28
|
+
--av-hue-index: 0;
|
|
29
|
+
/* Eight hues, 45° apart, starting at the blue end. */
|
|
30
|
+
--av-hue: calc(210 + var(--av-hue-index) * 45);
|
|
31
|
+
|
|
32
|
+
color-scheme: inherit;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
:where(.dark, [data-theme="dark"]) :is(.av-root, .av-group, .av-overflow) {
|
|
36
|
+
color-scheme: dark;
|
|
37
|
+
}
|
|
38
|
+
:where(.light, [data-theme="light"]) :is(.av-root, .av-group, .av-overflow) {
|
|
39
|
+
color-scheme: light;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
:where(.av-root, .av-group) *,
|
|
43
|
+
:where(.av-root, .av-group) *::before,
|
|
44
|
+
:where(.av-root, .av-group) *::after {
|
|
45
|
+
box-sizing: border-box;
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.av-root {
|
|
49
|
+
position: relative;
|
|
50
|
+
display: inline-flex;
|
|
51
|
+
flex: none;
|
|
52
|
+
align-items: center;
|
|
53
|
+
justify-content: center;
|
|
54
|
+
width: var(--av-size);
|
|
55
|
+
height: var(--av-size);
|
|
56
|
+
border-radius: 50%;
|
|
57
|
+
background: var(--av-subtle);
|
|
58
|
+
font-size: var(--av-font-size);
|
|
59
|
+
font-weight: 600;
|
|
60
|
+
line-height: 1;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
user-select: none;
|
|
63
|
+
vertical-align: middle;
|
|
64
|
+
}
|
|
65
|
+
.av-root[data-shape="square"] {
|
|
66
|
+
border-radius: var(--av-radius);
|
|
67
|
+
overflow: visible;
|
|
68
|
+
}
|
|
69
|
+
.av-root[data-shape="square"] .av-image,
|
|
70
|
+
.av-root[data-shape="square"] .av-fallback {
|
|
71
|
+
border-radius: var(--av-radius);
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.av-root[data-size="xs"] {
|
|
75
|
+
--av-size: 20px;
|
|
76
|
+
--av-font-size: 10px;
|
|
77
|
+
}
|
|
78
|
+
.av-root[data-size="sm"] {
|
|
79
|
+
--av-size: 24px;
|
|
80
|
+
--av-font-size: 11px;
|
|
81
|
+
}
|
|
82
|
+
.av-root[data-size="lg"] {
|
|
83
|
+
--av-size: 40px;
|
|
84
|
+
--av-font-size: 15px;
|
|
85
|
+
}
|
|
86
|
+
.av-root[data-size="xl"] {
|
|
87
|
+
--av-size: 56px;
|
|
88
|
+
--av-font-size: 20px;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.av-image {
|
|
92
|
+
width: 100%;
|
|
93
|
+
height: 100%;
|
|
94
|
+
object-fit: cover;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* `oklch` keeps every hue at the same lightness, so no one person's initials
|
|
98
|
+
come out harder to read than another's — which is what a list of hand-picked
|
|
99
|
+
hex pairs always ends up doing. */
|
|
100
|
+
.av-fallback {
|
|
101
|
+
display: flex;
|
|
102
|
+
align-items: center;
|
|
103
|
+
justify-content: center;
|
|
104
|
+
width: 100%;
|
|
105
|
+
height: 100%;
|
|
106
|
+
background: oklch(from light-dark(oklch(0.93 0.05 0), oklch(0.32 0.06 0)) l c var(--av-hue));
|
|
107
|
+
color: oklch(from light-dark(oklch(0.42 0.13 0), oklch(0.88 0.1 0)) l c var(--av-hue));
|
|
108
|
+
text-transform: uppercase;
|
|
109
|
+
}
|
|
110
|
+
.av-fallback > svg {
|
|
111
|
+
width: 60%;
|
|
112
|
+
height: 60%;
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.av-status {
|
|
116
|
+
position: absolute;
|
|
117
|
+
right: 0;
|
|
118
|
+
bottom: 0;
|
|
119
|
+
width: 30%;
|
|
120
|
+
height: 30%;
|
|
121
|
+
min-width: 8px;
|
|
122
|
+
min-height: 8px;
|
|
123
|
+
border: 2px solid var(--av-bg);
|
|
124
|
+
border-radius: 50%;
|
|
125
|
+
background: var(--av-muted);
|
|
126
|
+
}
|
|
127
|
+
.av-root[data-shape="square"] .av-status {
|
|
128
|
+
right: -2px;
|
|
129
|
+
bottom: -2px;
|
|
130
|
+
}
|
|
131
|
+
.av-status[data-status="online"] {
|
|
132
|
+
background: var(--av-success);
|
|
133
|
+
}
|
|
134
|
+
.av-status[data-status="away"] {
|
|
135
|
+
background: var(--av-warning);
|
|
136
|
+
}
|
|
137
|
+
.av-status[data-status="busy"] {
|
|
138
|
+
background: var(--av-danger);
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
/* ---------------------------------------------------------------- group */
|
|
142
|
+
|
|
143
|
+
.av-group {
|
|
144
|
+
display: inline-flex;
|
|
145
|
+
align-items: center;
|
|
146
|
+
vertical-align: middle;
|
|
147
|
+
}
|
|
148
|
+
/* Each face overlaps the one before and is ringed in the page colour, so the
|
|
149
|
+
stack reads as separate people rather than one smear. */
|
|
150
|
+
.av-group > * {
|
|
151
|
+
margin-inline-start: calc(var(--av-size) / -4);
|
|
152
|
+
box-shadow: 0 0 0 2px var(--av-bg);
|
|
153
|
+
}
|
|
154
|
+
.av-group > *:first-child {
|
|
155
|
+
margin-inline-start: 0;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.av-overflow {
|
|
159
|
+
position: relative;
|
|
160
|
+
display: inline-flex;
|
|
161
|
+
flex: none;
|
|
162
|
+
align-items: center;
|
|
163
|
+
justify-content: center;
|
|
164
|
+
width: var(--av-size);
|
|
165
|
+
height: var(--av-size);
|
|
166
|
+
border-radius: 50%;
|
|
167
|
+
background: var(--av-subtle);
|
|
168
|
+
/* Muted grey clears 4.5:1 on the page background but only reaches 4.39:1
|
|
169
|
+
on this one, so the count moves a step towards the text colour. */
|
|
170
|
+
color: color-mix(in oklab, var(--av-muted) 65%, var(--av-fg));
|
|
171
|
+
font-size: calc(var(--av-font-size) - 1px);
|
|
172
|
+
font-weight: 600;
|
|
173
|
+
font-variant-numeric: tabular-nums;
|
|
174
|
+
line-height: 1;
|
|
175
|
+
}
|
|
176
|
+
.av-overflow[data-shape="square"] {
|
|
177
|
+
border-radius: var(--av-radius);
|
|
178
|
+
}
|
|
179
|
+
.av-group[data-size="xs"],
|
|
180
|
+
.av-overflow[data-size="xs"] {
|
|
181
|
+
--av-size: 20px;
|
|
182
|
+
--av-font-size: 10px;
|
|
183
|
+
}
|
|
184
|
+
.av-group[data-size="sm"],
|
|
185
|
+
.av-overflow[data-size="sm"] {
|
|
186
|
+
--av-size: 24px;
|
|
187
|
+
--av-font-size: 11px;
|
|
188
|
+
}
|
|
189
|
+
.av-group[data-size="lg"],
|
|
190
|
+
.av-overflow[data-size="lg"] {
|
|
191
|
+
--av-size: 40px;
|
|
192
|
+
--av-font-size: 15px;
|
|
193
|
+
}
|
|
194
|
+
.av-group[data-size="xl"],
|
|
195
|
+
.av-overflow[data-size="xl"] {
|
|
196
|
+
--av-size: 56px;
|
|
197
|
+
--av-font-size: 20px;
|
|
198
|
+
}
|
|
199
|
+
/* The group's size reaches the avatars inside it, unless one sets its own. */
|
|
200
|
+
.av-group[data-size="xs"] .av-root:not([data-size]) {
|
|
201
|
+
--av-size: 20px;
|
|
202
|
+
--av-font-size: 10px;
|
|
203
|
+
}
|
|
204
|
+
.av-group[data-size="sm"] .av-root:not([data-size]) {
|
|
205
|
+
--av-size: 24px;
|
|
206
|
+
--av-font-size: 11px;
|
|
207
|
+
}
|
|
208
|
+
.av-group[data-size="lg"] .av-root:not([data-size]) {
|
|
209
|
+
--av-size: 40px;
|
|
210
|
+
--av-font-size: 15px;
|
|
211
|
+
}
|
|
212
|
+
.av-group[data-size="xl"] .av-root:not([data-size]) {
|
|
213
|
+
--av-size: 56px;
|
|
214
|
+
--av-font-size: 20px;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
@media (forced-colors: active) {
|
|
218
|
+
.av-root,
|
|
219
|
+
.av-overflow {
|
|
220
|
+
border: 1px solid CanvasText;
|
|
221
|
+
}
|
|
222
|
+
.av-status {
|
|
223
|
+
border-color: Canvas;
|
|
224
|
+
}
|
|
225
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# Badge and Tag
|
|
2
|
+
|
|
3
|
+
Short labels for React 19, styled to match the rest of the library. A **Badge**
|
|
4
|
+
is static text — a status, a category, a count. A **Tag** is a chip the user can
|
|
5
|
+
take off. No runtime dependencies besides React.
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
import { Badge, Tag } from "@/components/badge";
|
|
9
|
+
import "@/components/badge/styles.css";
|
|
10
|
+
```
|
|
11
|
+
|
|
12
|
+
```tsx
|
|
13
|
+
<Badge variant="success">Active</Badge>
|
|
14
|
+
<Badge variant="danger" appearance="solid" count={128} /> {/* 99+ */}
|
|
15
|
+
<Badge variant="warning" dot>Degraded</Badge>
|
|
16
|
+
|
|
17
|
+
<Tag onRemove={() => remove("berlin")}>Berlin</Tag>
|
|
18
|
+
```
|
|
19
|
+
|
|
20
|
+
**Badge:** `children` or `count`, `variant` (`neutral` `accent` `success`
|
|
21
|
+
`warning` `danger` `info`), `appearance` (`soft` `solid` `outline`), `size`
|
|
22
|
+
(`sm` `md`), `max`, `showZero`, `formatValue`, `dot`, `icon`, `classNames`
|
|
23
|
+
(`root` `dot` `icon` `label`), `ref`, and every `<span>` attribute.
|
|
24
|
+
|
|
25
|
+
**Tag:** the same variants, plus `onRemove`, `label` (names the remove button
|
|
26
|
+
when the children are not a plain string), `disabled`, `classNames` (`root`
|
|
27
|
+
`icon` `label` `remove`), `localeText`.
|
|
28
|
+
|
|
29
|
+
A badge with `count` renders nothing at all when the count is zero, unless
|
|
30
|
+
`showZero` says otherwise: an empty counter is noise on the page and a spurious
|
|
31
|
+
announcement in a screen reader.
|
|
32
|
+
|
|
33
|
+
The remove button carries the tag's own text in its name — "Remove Berlin" —
|
|
34
|
+
because a row of identical "Remove" buttons cannot be told apart by anyone
|
|
35
|
+
listening to it.
|
|
36
|
+
|
|
37
|
+
`formatCount` and `showCount` are exported from the framework-free `core`.
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The label a counter shows, and the one a screen reader hears.
|
|
3
|
+
*
|
|
4
|
+
* A badge is small, so a number that keeps growing has to stop somewhere —
|
|
5
|
+
* but "99+" read aloud as "ninety-nine plus" is a guess, not a count, which is
|
|
6
|
+
* why the two strings are computed together and the spoken one says what it
|
|
7
|
+
* means.
|
|
8
|
+
*/
|
|
9
|
+
export interface CountLabel {
|
|
10
|
+
/** What is printed in the badge. */
|
|
11
|
+
text: string;
|
|
12
|
+
/** What assistive technology reads instead, when the two differ. */
|
|
13
|
+
spoken?: string;
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
export function formatCount(
|
|
17
|
+
count: number,
|
|
18
|
+
max = 99,
|
|
19
|
+
format?: (value: number) => string,
|
|
20
|
+
): CountLabel {
|
|
21
|
+
const show = (value: number) => (format ? format(value) : String(value));
|
|
22
|
+
if (!Number.isFinite(count)) return { text: "" };
|
|
23
|
+
const whole = Math.trunc(count);
|
|
24
|
+
if (whole <= max) return { text: show(whole) };
|
|
25
|
+
return { text: `${show(max)}+`, spoken: `more than ${show(max)}` };
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Whether a counter should be on the page at all.
|
|
30
|
+
*
|
|
31
|
+
* Zero is the interesting case: a badge reading "0" is noise on a page and a
|
|
32
|
+
* spurious announcement in a screen reader, so it is left off unless the caller
|
|
33
|
+
* asks for it — but a caller sometimes does, when the number sits in a table of
|
|
34
|
+
* numbers and a gap would read as missing data.
|
|
35
|
+
*/
|
|
36
|
+
export const showCount = (count: number, showZero = false): boolean =>
|
|
37
|
+
Number.isFinite(count) && (count > 0 || (showZero && count === 0));
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export type BadgeVariant = "neutral" | "accent" | "success" | "warning" | "danger" | "info";
|
|
2
|
+
|
|
3
|
+
/** `soft` is a tint, `solid` a filled block, `outline` a border only. */
|
|
4
|
+
export type BadgeAppearance = "soft" | "solid" | "outline";
|
|
5
|
+
|
|
6
|
+
export type BadgeSize = "sm" | "md";
|
|
7
|
+
|
|
8
|
+
export interface BadgeLocaleText {
|
|
9
|
+
/** The remove button on a Tag. `label` is the tag's own text. */
|
|
10
|
+
remove(label: string): string;
|
|
11
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { Badge } from "./react/Badge";
|
|
2
|
+
export type { BadgeProps } from "./react/Badge";
|
|
3
|
+
export { Tag } from "./react/Tag";
|
|
4
|
+
export type { TagProps } from "./react/Tag";
|
|
5
|
+
export { defaultBadgeText } from "./react/locale";
|
|
6
|
+
export type { BadgeSlot, TagSlot } from "./react/props";
|
|
7
|
+
export * from "./core";
|
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
{
|
|
2
|
+
"passportVersion": "1.0.0",
|
|
3
|
+
"identity": {
|
|
4
|
+
"component": "Badge",
|
|
5
|
+
"folder": "badge",
|
|
6
|
+
"exports": [
|
|
7
|
+
"Badge",
|
|
8
|
+
"Tag"
|
|
9
|
+
]
|
|
10
|
+
},
|
|
11
|
+
"source": {
|
|
12
|
+
"libraryVersion": "2.4.1",
|
|
13
|
+
"files": [
|
|
14
|
+
"core/count.ts",
|
|
15
|
+
"core/index.ts",
|
|
16
|
+
"core/types.ts",
|
|
17
|
+
"index.ts",
|
|
18
|
+
"react/Badge.tsx",
|
|
19
|
+
"react/Tag.tsx",
|
|
20
|
+
"react/locale.ts",
|
|
21
|
+
"react/props.ts"
|
|
22
|
+
],
|
|
23
|
+
"sourceHash": "sha256:2f5c5c1d91e4edd8c8c6dc2a14ba66a140b738c9c7b889c7a0a54414513d3f2f"
|
|
24
|
+
},
|
|
25
|
+
"props": [
|
|
26
|
+
{
|
|
27
|
+
"name": "appearance",
|
|
28
|
+
"type": "enum",
|
|
29
|
+
"values": [
|
|
30
|
+
"outline",
|
|
31
|
+
"soft",
|
|
32
|
+
"solid"
|
|
33
|
+
],
|
|
34
|
+
"typeText": "BadgeAppearance | undefined",
|
|
35
|
+
"required": false,
|
|
36
|
+
"default": "soft",
|
|
37
|
+
"origin": "derived",
|
|
38
|
+
"description": "Default `soft`.",
|
|
39
|
+
"descriptionOrigin": "jsdoc"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"name": "aria-describedby",
|
|
43
|
+
"type": "string",
|
|
44
|
+
"typeText": "string | undefined",
|
|
45
|
+
"required": false,
|
|
46
|
+
"origin": "inherited"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "aria-label",
|
|
50
|
+
"type": "string",
|
|
51
|
+
"typeText": "string | undefined",
|
|
52
|
+
"required": false,
|
|
53
|
+
"origin": "inherited"
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
"name": "aria-labelledby",
|
|
57
|
+
"type": "string",
|
|
58
|
+
"typeText": "string | undefined",
|
|
59
|
+
"required": false,
|
|
60
|
+
"origin": "inherited"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"name": "children",
|
|
64
|
+
"type": "other",
|
|
65
|
+
"typeText": "ReactNode",
|
|
66
|
+
"required": false,
|
|
67
|
+
"origin": "derived"
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
"name": "className",
|
|
71
|
+
"type": "string",
|
|
72
|
+
"typeText": "string | undefined",
|
|
73
|
+
"required": false,
|
|
74
|
+
"origin": "inherited"
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "classNames",
|
|
78
|
+
"type": "other",
|
|
79
|
+
"typeText": "Partial<Record<BadgeSlot, string>> | undefined",
|
|
80
|
+
"required": false,
|
|
81
|
+
"origin": "derived"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"name": "count",
|
|
85
|
+
"type": "number",
|
|
86
|
+
"typeText": "number | undefined",
|
|
87
|
+
"required": false,
|
|
88
|
+
"origin": "derived",
|
|
89
|
+
"description": "A number instead of children. Above `max` it reads \"99+\".",
|
|
90
|
+
"descriptionOrigin": "jsdoc"
|
|
91
|
+
},
|
|
92
|
+
{
|
|
93
|
+
"name": "disabled",
|
|
94
|
+
"type": "boolean",
|
|
95
|
+
"typeText": "boolean | undefined",
|
|
96
|
+
"required": false,
|
|
97
|
+
"default": false,
|
|
98
|
+
"origin": "derived"
|
|
99
|
+
},
|
|
100
|
+
{
|
|
101
|
+
"name": "dot",
|
|
102
|
+
"type": "boolean",
|
|
103
|
+
"typeText": "boolean | undefined",
|
|
104
|
+
"required": false,
|
|
105
|
+
"default": false,
|
|
106
|
+
"origin": "derived",
|
|
107
|
+
"description": "A small filled circle before the label, for a status.",
|
|
108
|
+
"descriptionOrigin": "jsdoc"
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
"name": "formatValue",
|
|
112
|
+
"type": "function",
|
|
113
|
+
"signature": "((value: number) => string) | undefined",
|
|
114
|
+
"required": false,
|
|
115
|
+
"origin": "derived",
|
|
116
|
+
"description": "Format the number, e.g. with `Intl.NumberFormat`.",
|
|
117
|
+
"descriptionOrigin": "jsdoc"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"name": "hidden",
|
|
121
|
+
"type": "boolean",
|
|
122
|
+
"typeText": "boolean | undefined",
|
|
123
|
+
"required": false,
|
|
124
|
+
"origin": "inherited"
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"name": "icon",
|
|
128
|
+
"type": "other",
|
|
129
|
+
"typeText": "ReactNode",
|
|
130
|
+
"required": false,
|
|
131
|
+
"origin": "derived"
|
|
132
|
+
},
|
|
133
|
+
{
|
|
134
|
+
"name": "id",
|
|
135
|
+
"type": "string",
|
|
136
|
+
"typeText": "string | undefined",
|
|
137
|
+
"required": false,
|
|
138
|
+
"origin": "inherited"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"name": "label",
|
|
142
|
+
"type": "string",
|
|
143
|
+
"typeText": "string | undefined",
|
|
144
|
+
"required": false,
|
|
145
|
+
"origin": "derived",
|
|
146
|
+
"description": "Names the remove button when the tag's own text is not a plain string.",
|
|
147
|
+
"descriptionOrigin": "jsdoc"
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"name": "localeText",
|
|
151
|
+
"type": "other",
|
|
152
|
+
"typeText": "Partial<BadgeLocaleText> | undefined",
|
|
153
|
+
"required": false,
|
|
154
|
+
"origin": "derived"
|
|
155
|
+
},
|
|
156
|
+
{
|
|
157
|
+
"name": "max",
|
|
158
|
+
"type": "number",
|
|
159
|
+
"typeText": "number | undefined",
|
|
160
|
+
"required": false,
|
|
161
|
+
"default": 99,
|
|
162
|
+
"origin": "derived",
|
|
163
|
+
"description": "Where the count stops. Default 99.",
|
|
164
|
+
"descriptionOrigin": "jsdoc"
|
|
165
|
+
},
|
|
166
|
+
{
|
|
167
|
+
"name": "onRemove",
|
|
168
|
+
"type": "function",
|
|
169
|
+
"signature": "(() => void) | undefined",
|
|
170
|
+
"required": false,
|
|
171
|
+
"origin": "derived",
|
|
172
|
+
"description": "Show a remove button. Without it a Tag is a Badge with a bit more padding.",
|
|
173
|
+
"descriptionOrigin": "jsdoc"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"name": "ref",
|
|
177
|
+
"type": "other",
|
|
178
|
+
"typeText": "Ref<HTMLSpanElement> | undefined",
|
|
179
|
+
"required": false,
|
|
180
|
+
"origin": "derived"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "role",
|
|
184
|
+
"type": "other",
|
|
185
|
+
"typeText": "AriaRole | undefined",
|
|
186
|
+
"required": false,
|
|
187
|
+
"origin": "inherited"
|
|
188
|
+
},
|
|
189
|
+
{
|
|
190
|
+
"name": "showZero",
|
|
191
|
+
"type": "boolean",
|
|
192
|
+
"typeText": "boolean | undefined",
|
|
193
|
+
"required": false,
|
|
194
|
+
"default": false,
|
|
195
|
+
"origin": "derived",
|
|
196
|
+
"description": "Show a count of zero. Default false: an empty counter is noise.",
|
|
197
|
+
"descriptionOrigin": "jsdoc"
|
|
198
|
+
},
|
|
199
|
+
{
|
|
200
|
+
"name": "size",
|
|
201
|
+
"type": "enum",
|
|
202
|
+
"values": [
|
|
203
|
+
"md",
|
|
204
|
+
"sm"
|
|
205
|
+
],
|
|
206
|
+
"typeText": "BadgeSize | undefined",
|
|
207
|
+
"required": false,
|
|
208
|
+
"default": "md",
|
|
209
|
+
"origin": "derived",
|
|
210
|
+
"description": "Default `md`.",
|
|
211
|
+
"descriptionOrigin": "jsdoc"
|
|
212
|
+
},
|
|
213
|
+
{
|
|
214
|
+
"name": "style",
|
|
215
|
+
"type": "other",
|
|
216
|
+
"typeText": "CSSProperties | undefined",
|
|
217
|
+
"required": false,
|
|
218
|
+
"origin": "inherited"
|
|
219
|
+
},
|
|
220
|
+
{
|
|
221
|
+
"name": "tabIndex",
|
|
222
|
+
"type": "number",
|
|
223
|
+
"typeText": "number | undefined",
|
|
224
|
+
"required": false,
|
|
225
|
+
"origin": "inherited"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"name": "title",
|
|
229
|
+
"type": "string",
|
|
230
|
+
"typeText": "string | undefined",
|
|
231
|
+
"required": false,
|
|
232
|
+
"origin": "inherited"
|
|
233
|
+
},
|
|
234
|
+
{
|
|
235
|
+
"name": "variant",
|
|
236
|
+
"type": "enum",
|
|
237
|
+
"values": [
|
|
238
|
+
"accent",
|
|
239
|
+
"danger",
|
|
240
|
+
"info",
|
|
241
|
+
"neutral",
|
|
242
|
+
"success",
|
|
243
|
+
"warning"
|
|
244
|
+
],
|
|
245
|
+
"typeText": "BadgeVariant | undefined",
|
|
246
|
+
"required": false,
|
|
247
|
+
"default": "neutral",
|
|
248
|
+
"origin": "derived",
|
|
249
|
+
"description": "Default `neutral`.",
|
|
250
|
+
"descriptionOrigin": "jsdoc"
|
|
251
|
+
}
|
|
252
|
+
],
|
|
253
|
+
"inherits": [
|
|
254
|
+
{
|
|
255
|
+
"from": "HTMLAttributes<HTMLSpanElement>",
|
|
256
|
+
"omitted": [
|
|
257
|
+
"onRemove"
|
|
258
|
+
],
|
|
259
|
+
"passthrough": true
|
|
260
|
+
}
|
|
261
|
+
],
|
|
262
|
+
"events": [
|
|
263
|
+
{
|
|
264
|
+
"name": "onRemove",
|
|
265
|
+
"signature": "(() => void) | undefined"
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"slots": [
|
|
269
|
+
"root",
|
|
270
|
+
"dot",
|
|
271
|
+
"icon",
|
|
272
|
+
"label",
|
|
273
|
+
"remove"
|
|
274
|
+
],
|
|
275
|
+
"states": [
|
|
276
|
+
{
|
|
277
|
+
"attr": "data-appearance",
|
|
278
|
+
"values": [
|
|
279
|
+
"outline",
|
|
280
|
+
"soft",
|
|
281
|
+
"solid"
|
|
282
|
+
]
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"attr": "data-count"
|
|
286
|
+
},
|
|
287
|
+
{
|
|
288
|
+
"attr": "data-disabled"
|
|
289
|
+
},
|
|
290
|
+
{
|
|
291
|
+
"attr": "data-size",
|
|
292
|
+
"values": [
|
|
293
|
+
"sm"
|
|
294
|
+
]
|
|
295
|
+
},
|
|
296
|
+
{
|
|
297
|
+
"attr": "data-theme",
|
|
298
|
+
"values": [
|
|
299
|
+
"dark",
|
|
300
|
+
"light"
|
|
301
|
+
]
|
|
302
|
+
},
|
|
303
|
+
{
|
|
304
|
+
"attr": "data-variant",
|
|
305
|
+
"values": [
|
|
306
|
+
"accent",
|
|
307
|
+
"danger",
|
|
308
|
+
"info",
|
|
309
|
+
"neutral",
|
|
310
|
+
"success",
|
|
311
|
+
"warning"
|
|
312
|
+
]
|
|
313
|
+
}
|
|
314
|
+
],
|
|
315
|
+
"accessibility": {
|
|
316
|
+
"supplied": [],
|
|
317
|
+
"required": []
|
|
318
|
+
},
|
|
319
|
+
"composition": {},
|
|
320
|
+
"operations": {},
|
|
321
|
+
"intentDomains": [],
|
|
322
|
+
"safeMutations": {},
|
|
323
|
+
"examples": [],
|
|
324
|
+
"coverage": {
|
|
325
|
+
"propsTotal": 26,
|
|
326
|
+
"propsDescribed": 10,
|
|
327
|
+
"describedPct": 38,
|
|
328
|
+
"authoredSections": [
|
|
329
|
+
"accessibility"
|
|
330
|
+
]
|
|
331
|
+
}
|
|
332
|
+
}
|