@k8ordo/ui 3.0.0 → 4.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +73 -182
- package/dist/{integrations/_shared → catalog}/icon-map.d.mts +4 -2
- package/dist/catalog/icon-map.mjs +212 -0
- package/dist/catalog/icon-names.d.mts +1 -0
- package/dist/{integrations/_shared → catalog}/icon-names.mjs +3 -1
- package/dist/catalog/index.d.mts +1289 -0
- package/dist/catalog/index.mjs +419 -0
- package/dist/catalog/render.css +34 -0
- package/dist/catalog/render.d.mts +72 -0
- package/dist/catalog/render.mjs +631 -0
- package/dist/catalog/render.module.mjs +11 -0
- package/dist/{integrations/_shared → catalog}/schemas.d.mts +120 -132
- package/dist/{integrations/_shared → catalog}/schemas.mjs +189 -131
- package/dist/catalog/to-tree.d.mts +4 -0
- package/dist/catalog/to-tree.mjs +17 -0
- package/dist/components/_internal/checked-values.d.mts +1 -0
- package/dist/components/_internal/checked-values.mjs +5 -0
- package/dist/components/_internal/field-message.css +25 -0
- package/dist/components/_internal/field-message.d.mts +10 -0
- package/dist/components/_internal/field-message.mjs +22 -0
- package/dist/components/_internal/field-message.module.mjs +9 -0
- package/dist/components/_internal/focus-ring.css +1 -1
- package/dist/components/_internal/high-contrast.css +1 -0
- package/dist/components/{observers/in-view → _internal}/in-view.mjs +1 -1
- package/dist/components/{observers/resize → _internal}/resize.mjs +1 -1
- package/dist/components/ai/_internal/attachment-preview.mjs +1 -1
- package/dist/components/ai/_internal/collapsible.mjs +1 -1
- package/dist/components/ai/attachment/attachment.d.mts +1 -1
- package/dist/components/ai/attachment/index.d.mts +1 -1
- package/dist/components/ai/conversation/conversation.mjs +4 -4
- package/dist/components/ai/index.d.mts +2 -2
- package/dist/components/ai/message/index.d.mts +2 -2
- package/dist/components/ai/message/message.d.mts +2 -2
- package/dist/components/ai/message/message.mjs +9 -9
- package/dist/components/ai/prompt-input/prompt-input.mjs +4 -4
- package/dist/components/ai/source/index.d.mts +2 -2
- package/dist/components/ai/source/source.d.mts +2 -2
- package/dist/components/ai/source/source.mjs +1 -1
- package/dist/components/ai/tool-invocation/approval-bar.mjs +11 -22
- package/dist/components/ai/tool-invocation/tool-invocation.d.mts +2 -2
- package/dist/components/buttons/button/button.css +1 -1
- package/dist/components/buttons/button/button.d.mts +34 -37
- package/dist/components/buttons/button/button.mjs +37 -24
- package/dist/components/buttons/button/button.module.mjs +0 -1
- package/dist/components/buttons/button/index.d.mts +2 -2
- package/dist/components/buttons/copy-button/copy-button.mjs +4 -4
- package/dist/components/buttons/icon-button/icon-button.css +3 -3
- package/dist/components/buttons/icon-button/icon-button.d.mts +37 -43
- package/dist/components/buttons/icon-button/icon-button.mjs +73 -63
- package/dist/components/buttons/icon-button/icon-button.module.mjs +2 -2
- package/dist/components/buttons/icon-button/index.d.mts +2 -2
- package/dist/components/buttons/toolbar/toolbar.css +5 -1
- package/dist/components/buttons/toolbar/toolbar.mjs +1 -1
- package/dist/components/data-display/accordion/accordion-button.d.mts +4 -1
- package/dist/components/data-display/accordion/accordion-button.mjs +4 -4
- package/dist/components/data-display/accordion/index.d.mts +3 -3
- package/dist/components/data-display/card/card-action.d.mts +6 -0
- package/dist/components/data-display/card/card-action.mjs +21 -0
- package/dist/components/data-display/card/card.css +24 -0
- package/dist/components/data-display/card/card.d.mts +26 -3
- package/dist/components/data-display/card/card.mjs +46 -6
- package/dist/components/data-display/card/card.module.mjs +4 -1
- package/dist/components/data-display/card/index.d.mts +2 -2
- package/dist/components/data-display/carousel/carousel.mjs +2 -2
- package/dist/components/data-display/code/code.css +4 -0
- package/dist/components/data-display/code-block/code-block.mjs +1 -1
- package/dist/components/data-display/data-table/data-table.css +0 -3
- package/dist/components/data-display/data-table/data-table.mjs +25 -26
- package/dist/components/data-display/tree/tree.d.mts +1 -1
- package/dist/components/data-display/tree/tree.mjs +6 -5
- package/dist/components/feedback/alert/alert.d.mts +2 -7
- package/dist/components/feedback/alert/alert.mjs +11 -11
- package/dist/components/feedback/alert/index.d.mts +2 -2
- package/dist/components/feedback/callout/callout.mjs +2 -2
- package/dist/components/feedback/progress/progress.mjs +1 -1
- package/dist/components/feedback/toast/context.d.mts +4 -5
- package/dist/components/feedback/toast/index.d.mts +2 -2
- package/dist/components/feedback/toast/provider.d.mts +7 -2
- package/dist/components/feedback/toast/provider.mjs +7 -2
- package/dist/components/feedback/toast/toast.d.mts +2 -3
- package/dist/components/form/autocomplete/autocomplete.d.mts +2 -2
- package/dist/components/form/autocomplete/autocomplete.mjs +12 -9
- package/dist/components/form/calendar/calendar.mjs +3 -5
- package/dist/components/form/checkbox/checkbox.d.mts +3 -1
- package/dist/components/form/checkbox/checkbox.mjs +44 -45
- package/dist/components/form/checkbox-card/checkbox-card.d.mts +3 -2
- package/dist/components/form/checkbox-card/checkbox-card.mjs +13 -6
- package/dist/components/form/checkbox-group/checkbox-group.d.mts +15 -20
- package/dist/components/form/checkbox-group/checkbox-group.mjs +18 -26
- package/dist/components/form/checkbox-group/index.d.mts +2 -34
- package/dist/components/form/checkbox-group/index.mjs +1 -8
- package/dist/components/form/color-picker/color-picker.css +3 -5
- package/dist/components/form/color-picker/color-picker.d.mts +0 -1
- package/dist/components/form/color-picker/color-picker.mjs +4 -4
- package/dist/components/form/combobox/combobox.d.mts +0 -1
- package/dist/components/form/combobox/combobox.mjs +9 -8
- package/dist/components/form/date-picker/date-picker.css +0 -5
- package/dist/components/form/date-picker/date-picker.mjs +21 -22
- package/dist/components/form/file-field/file-field.d.mts +6 -3
- package/dist/components/form/file-field/file-field.mjs +41 -18
- package/dist/components/form/file-field/index.d.mts +4 -1
- package/dist/components/form/form/form.mjs +0 -1
- package/dist/components/form/form-control/form-control.css +0 -15
- package/dist/components/form/form-control/form-control.d.mts +3 -4
- package/dist/components/form/form-control/form-control.mjs +44 -46
- package/dist/components/form/form-control/form-control.module.mjs +0 -3
- package/dist/components/form/number-field/number-field.d.mts +2 -2
- package/dist/components/form/number-field/number-field.mjs +13 -52
- package/dist/components/form/password-input/password-input.mjs +1 -1
- package/dist/components/form/radio/radio.mjs +4 -2
- package/dist/components/form/radio-card/radio-card.mjs +9 -2
- package/dist/components/form/range-slider/range-slider.d.mts +4 -2
- package/dist/components/form/range-slider/range-slider.mjs +2 -4
- package/dist/components/form/select/select.css +6 -4
- package/dist/components/form/select/select.d.mts +5 -0
- package/dist/components/form/select/select.mjs +10 -7
- package/dist/components/form/slider/slider.d.mts +2 -2
- package/dist/components/form/slider/slider.mjs +3 -6
- package/dist/components/form/switch/switch.d.mts +3 -0
- package/dist/components/form/switch/switch.mjs +43 -31
- package/dist/components/form/text-field/index.d.mts +2 -2
- package/dist/components/form/text-field/text-field.css +4 -0
- package/dist/components/form/text-field/text-field.d.mts +1 -1
- package/dist/components/form/textarea/textarea.d.mts +0 -1
- package/dist/components/form/textarea/textarea.mjs +1 -1
- package/dist/components/icons/base.d.mts +0 -1
- package/dist/components/icons/base.mjs +1 -2
- package/dist/components/icons/clipboard-check.d.mts +3 -0
- package/dist/components/icons/clipboard-check.mjs +18 -0
- package/dist/components/icons/git-pull-request.d.mts +3 -0
- package/dist/components/icons/git-pull-request.mjs +20 -0
- package/dist/components/icons/index.d.mts +9 -7
- package/dist/components/icons/index.mjs +30 -28
- package/dist/components/index.d.mts +58 -66
- package/dist/components/index.mjs +13 -19
- package/dist/components/layout/resizable-panels/resizable-panels.mjs +3 -3
- package/dist/components/navigation/anchor/anchor.css +3 -3
- package/dist/components/navigation/anchor/anchor.mjs +20 -7
- package/dist/components/navigation/anchor/anchor.module.mjs +1 -1
- package/dist/components/navigation/breadcrumb/breadcrumb.d.mts +6 -4
- package/dist/components/navigation/breadcrumb/breadcrumb.mjs +3 -2
- package/dist/components/navigation/pagination/pagination.d.mts +2 -2
- package/dist/components/navigation/pagination/pagination.mjs +2 -2
- package/dist/components/navigation/side-nav/side-nav.mjs +1 -1
- package/dist/components/navigation/stepper/stepper.mjs +3 -3
- package/dist/components/navigation/tabs/index.d.mts +10 -5
- package/dist/components/navigation/tabs/tabs.d.mts +11 -6
- package/dist/components/navigation/tabs/tabs.mjs +24 -27
- package/dist/components/overlays/_internal/modal-header.css +38 -0
- package/dist/components/overlays/_internal/modal-header.d.mts +7 -0
- package/dist/components/overlays/_internal/modal-header.mjs +32 -0
- package/dist/components/overlays/_internal/modal-header.module.mjs +10 -0
- package/dist/components/overlays/command-palette/command-palette.d.mts +2 -2
- package/dist/components/overlays/command-palette/command-palette.mjs +9 -8
- package/dist/components/overlays/context-menu/context-menu.mjs +3 -3
- package/dist/components/overlays/context-menu/index.d.mts +27 -2
- package/dist/components/overlays/dialog/dialog.css +3 -21
- package/dist/components/overlays/dialog/dialog.d.mts +20 -9
- package/dist/components/overlays/dialog/dialog.mjs +35 -73
- package/dist/components/overlays/dialog/dialog.module.mjs +1 -3
- package/dist/components/overlays/dialog/index.d.mts +2 -15
- package/dist/components/overlays/dialog/index.mjs +1 -8
- package/dist/components/overlays/drawer/drawer.css +4 -26
- package/dist/components/overlays/drawer/drawer.d.mts +7 -2
- package/dist/components/overlays/drawer/drawer.mjs +24 -37
- package/dist/components/overlays/drawer/drawer.module.mjs +2 -6
- package/dist/components/overlays/dropdown-menu/dropdown-menu.d.mts +35 -5
- package/dist/components/overlays/dropdown-menu/dropdown-menu.mjs +29 -11
- package/dist/components/overlays/dropdown-menu/hooks.d.mts +1 -1
- package/dist/components/overlays/dropdown-menu/hooks.mjs +1 -1
- package/dist/components/overlays/dropdown-menu/index.d.mts +34 -4
- package/dist/components/overlays/dropdown-menu/shared.css +1 -0
- package/dist/components/overlays/dropdown-menu/sub-menu.mjs +4 -4
- package/dist/components/overlays/list-box/hooks.mjs +2 -2
- package/dist/components/overlays/list-box/index.d.mts +2 -25
- package/dist/components/overlays/list-box/index.mjs +1 -9
- package/dist/components/overlays/list-box/list-box.d.mts +11 -16
- package/dist/components/overlays/list-box/list-box.mjs +23 -16
- package/dist/components/overlays/modal/modal.d.mts +8 -7
- package/dist/components/overlays/modal/modal.mjs +23 -32
- package/dist/components/overlays/popover/anchor-positioning.d.mts +3 -16
- package/dist/components/overlays/popover/anchor-positioning.mjs +14 -6
- package/dist/components/overlays/popover/hooks.d.mts +0 -2
- package/dist/components/overlays/popover/hooks.mjs +0 -2
- package/dist/components/overlays/popover/index.d.mts +19 -2
- package/dist/components/overlays/popover/index.mjs +7 -2
- package/dist/components/overlays/popover/popover.css +6 -0
- package/dist/components/overlays/popover/popover.d.mts +15 -2
- package/dist/components/overlays/popover/popover.mjs +28 -13
- package/dist/components/overlays/popover/popover.module.mjs +2 -1
- package/dist/components/overlays/tooltip/bridge.css +1 -1
- package/dist/components/overlays/tooltip/tooltip.mjs +5 -5
- package/dist/helpers/index.mjs +1 -1
- package/dist/i18n/en.mjs +1 -2
- package/dist/i18n/index.d.mts +3 -4
- package/dist/i18n/index.mjs +1 -2
- package/dist/i18n/ja.mjs +1 -2
- package/dist/i18n/messages.d.mts +2 -4
- package/dist/i18n/usage.d.mts +2 -1
- package/dist/i18n/usage.mjs +3 -3
- package/dist/index.d.mts +30 -36
- package/dist/index.mjs +4 -10
- package/dist/internal/iso-date.mjs +1 -1
- package/dist/styles/index.css +79 -225
- package/dist/styles/tailwind.css +1 -1
- package/dist/styles/tokens.css +281 -0
- package/dist/styles/tokens.d.mts +1 -1
- package/dist/styles/tokens.mjs +1 -1
- package/dist/types/index.d.mts +2 -2
- package/dist/types/variables.d.mts +4 -2
- package/docs/GUIDE.md +141 -66
- package/docs/llms.txt +38 -11
- package/docs/props.generated.json +752 -481
- package/docs/references/ai-chat.md +87 -39
- package/docs/references/color.md +15 -15
- package/docs/references/components.md +568 -499
- package/docs/references/generative-ui.md +373 -185
- package/docs/references/interaction-design.md +6 -5
- package/docs/references/spatial-design.md +8 -8
- package/docs/references/types.md +22 -25
- package/package.json +37 -70
- package/dist/components/form/date-field/date-field.css +0 -31
- package/dist/components/form/date-field/date-field.d.mts +0 -7
- package/dist/components/form/date-field/date-field.mjs +0 -19
- package/dist/components/form/date-field/date-field.module.mjs +0 -4
- package/dist/components/form/date-field/index.d.mts +0 -2
- package/dist/components/form/date-field/index.mjs +0 -1
- package/dist/components/observers/in-view/index.d.mts +0 -2
- package/dist/components/observers/in-view/index.mjs +0 -1
- package/dist/components/observers/resize/index.d.mts +0 -2
- package/dist/components/observers/resize/index.mjs +0 -1
- package/dist/components/overlays/_internal/modal-dialog-context.d.mts +0 -11
- package/dist/components/overlays/_internal/modal-dialog-context.mjs +0 -12
- package/dist/components/providers/index.d.mts +0 -3
- package/dist/components/providers/index.mjs +0 -3
- package/dist/components/providers/portal-root.d.mts +0 -8
- package/dist/components/providers/portal-root.mjs +0 -11
- package/dist/components/providers/ui-provider.d.mts +0 -2
- package/dist/components/providers/ui-provider.mjs +0 -6
- package/dist/integrations/_shared/icon-map.mjs +0 -208
- package/dist/integrations/_shared/icon-names.d.mts +0 -1
- package/dist/integrations/_shared/openui-defs.d.mts +0 -15
- package/dist/integrations/_shared/openui-defs.mjs +0 -230
- package/dist/integrations/_shared/renderers.css +0 -50
- package/dist/integrations/_shared/renderers.d.mts +0 -88
- package/dist/integrations/_shared/renderers.mjs +0 -880
- package/dist/integrations/_shared/renderers.module.mjs +0 -13
- package/dist/integrations/ai-sdk/index.d.mts +0 -3
- package/dist/integrations/ai-sdk/index.mjs +0 -1
- package/dist/integrations/ai-sdk/map-parts.d.mts +0 -44
- package/dist/integrations/ai-sdk/map-parts.mjs +0 -56
- package/dist/integrations/json-render/catalog.d.mts +0 -1359
- package/dist/integrations/json-render/catalog.mjs +0 -373
- package/dist/integrations/json-render/registry.d.mts +0 -26
- package/dist/integrations/json-render/registry.mjs +0 -192
- package/dist/integrations/openui/form-views.d.mts +0 -24
- package/dist/integrations/openui/form-views.mjs +0 -89
- package/dist/integrations/openui/library.d.mts +0 -202
- package/dist/integrations/openui/library.mjs +0 -83
- package/dist/integrations/openui/prompt.d.mts +0 -2
- package/dist/integrations/openui/prompt.mjs +0 -18
- /package/dist/components/{observers → _internal}/fragment-instance.d.mts +0 -0
- /package/dist/components/{observers/in-view → _internal}/in-view.d.mts +0 -0
- /package/dist/components/{observers/resize → _internal}/resize.d.mts +0 -0
|
@@ -8,38 +8,40 @@ import { BellIcon } from "./bell.mjs";
|
|
|
8
8
|
import { BlendIcon } from "./blend.mjs";
|
|
9
9
|
import { BookTextIcon } from "./book-text.mjs";
|
|
10
10
|
import { BookmarkIcon } from "./bookmark.mjs";
|
|
11
|
-
import { BotMessageIcon } from "./bot-message.mjs";
|
|
12
11
|
import { BotIcon } from "./bot.mjs";
|
|
12
|
+
import { BotMessageIcon } from "./bot-message.mjs";
|
|
13
13
|
import { CalendarIcon } from "./calendar.mjs";
|
|
14
14
|
import { CheckIcon } from "./check.mjs";
|
|
15
|
+
import { ChevronIcon } from "./chevron.mjs";
|
|
15
16
|
import { ChevronDownIcon } from "./chevron-down.mjs";
|
|
16
17
|
import { ChevronLeftIcon } from "./chevron-left.mjs";
|
|
17
18
|
import { ChevronRightIcon } from "./chevron-right.mjs";
|
|
18
19
|
import { ChevronUpIcon } from "./chevron-up.mjs";
|
|
19
|
-
import { ChevronIcon } from "./chevron.mjs";
|
|
20
20
|
import { ChevronsUpDownIcon } from "./chevrons-up-down.mjs";
|
|
21
21
|
import { CircleAlertIcon } from "./circle-alert.mjs";
|
|
22
22
|
import { CircleCheckIcon } from "./circle-check.mjs";
|
|
23
23
|
import { CircleHelpIcon } from "./circle-help.mjs";
|
|
24
24
|
import { CircleXIcon } from "./circle-x.mjs";
|
|
25
|
+
import { ClipboardCheckIcon } from "./clipboard-check.mjs";
|
|
25
26
|
import { ClockIcon } from "./clock.mjs";
|
|
26
27
|
import { CodeIcon } from "./code.mjs";
|
|
27
28
|
import { ColorScaleIcon } from "./color-scale.mjs";
|
|
28
29
|
import { ContrastIcon } from "./contrast.mjs";
|
|
29
30
|
import { CopyIcon } from "./copy.mjs";
|
|
30
31
|
import { DownloadIcon } from "./download.mjs";
|
|
31
|
-
import { EllipsisVerticalIcon } from "./ellipsis-vertical.mjs";
|
|
32
32
|
import { EllipsisIcon } from "./ellipsis.mjs";
|
|
33
|
+
import { EllipsisVerticalIcon } from "./ellipsis-vertical.mjs";
|
|
33
34
|
import { ExternalLinkIcon } from "./external-link.mjs";
|
|
34
|
-
import { EyeClosedIcon } from "./eye-closed.mjs";
|
|
35
35
|
import { EyeIcon } from "./eye.mjs";
|
|
36
|
-
import {
|
|
36
|
+
import { EyeClosedIcon } from "./eye-closed.mjs";
|
|
37
37
|
import { FileIcon } from "./file.mjs";
|
|
38
|
+
import { FileTextIcon } from "./file-text.mjs";
|
|
38
39
|
import { FilterIcon } from "./filter.mjs";
|
|
39
40
|
import { FlaskIcon } from "./flask.mjs";
|
|
40
|
-
import { FolderOpenIcon } from "./folder-open.mjs";
|
|
41
41
|
import { FolderIcon } from "./folder.mjs";
|
|
42
|
+
import { FolderOpenIcon } from "./folder-open.mjs";
|
|
42
43
|
import { GitForkIcon } from "./git-fork.mjs";
|
|
44
|
+
import { GitPullRequestIcon } from "./git-pull-request.mjs";
|
|
43
45
|
import { GlobeIcon } from "./globe.mjs";
|
|
44
46
|
import { GridIcon } from "./grid.mjs";
|
|
45
47
|
import { GripVerticalIcon } from "./grip-vertical.mjs";
|
|
@@ -103,4 +105,4 @@ import { UploadIcon } from "./upload.mjs";
|
|
|
103
105
|
import { UserIcon } from "./user.mjs";
|
|
104
106
|
import { UsersIcon } from "./users.mjs";
|
|
105
107
|
import { XIcon } from "./x.mjs";
|
|
106
|
-
export { AlertIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BaseIcon, type BaseIconProps, BellIcon, BlendIcon, BookTextIcon, BookmarkIcon, BotIcon, BotMessageIcon, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckIcon, CircleHelpIcon, CircleXIcon, ClockIcon, CodeIcon, ColorScaleIcon, ContrastIcon, CopyIcon, DownloadIcon, EllipsisIcon, EllipsisVerticalIcon, ExternalLinkIcon, EyeClosedIcon, EyeIcon, FileIcon, FileTextIcon, FilterIcon, FlaskIcon, FolderIcon, FolderOpenIcon, GitForkIcon, GlobeIcon, GridIcon, GripVerticalIcon, HeartIcon, HistoryIcon, HomeIcon, type IconRenderProps, ImageIcon, InfoIcon, LightbulbIcon, LinkIcon, ListIcon, LockIcon, LockOpenIcon, LogInIcon, LogOutIcon, MailIcon, MapPinIcon, MaximizeIcon, MenuIcon, MessageCircleIcon, MinimizeIcon, MinusIcon, MonitorIcon, MoonIcon, PackageIcon, PaintBucketIcon, PaletteIcon, PanelLeftIcon, PaperclipIcon, PauseIcon, PencilIcon, PinIcon, PlayIcon, PlusIcon, PresentationIcon, RedoIcon, RefreshIcon, RocketIcon, RssIcon, SearchIcon, SendIcon, SettingsIcon, ShareIcon, ShieldCheckIcon, SmileIcon, SparklesIcon, SquareIcon, SquircleIcon, StarIcon, SunIcon, TableIcon, TagIcon, TextHorizontalIcon, TextVerticalIcon, ThumbsDownIcon, ThumbsUpIcon, TrashIcon, TriangleAlertIcon, UndoIcon, UploadIcon, UserIcon, UsersIcon, XIcon };
|
|
108
|
+
export { AlertIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BaseIcon, type BaseIconProps, BellIcon, BlendIcon, BookTextIcon, BookmarkIcon, BotIcon, BotMessageIcon, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckIcon, CircleHelpIcon, CircleXIcon, ClipboardCheckIcon, ClockIcon, CodeIcon, ColorScaleIcon, ContrastIcon, CopyIcon, DownloadIcon, EllipsisIcon, EllipsisVerticalIcon, ExternalLinkIcon, EyeClosedIcon, EyeIcon, FileIcon, FileTextIcon, FilterIcon, FlaskIcon, FolderIcon, FolderOpenIcon, GitForkIcon, GitPullRequestIcon, GlobeIcon, GridIcon, GripVerticalIcon, HeartIcon, HistoryIcon, HomeIcon, type IconRenderProps, ImageIcon, InfoIcon, LightbulbIcon, LinkIcon, ListIcon, LockIcon, LockOpenIcon, LogInIcon, LogOutIcon, MailIcon, MapPinIcon, MaximizeIcon, MenuIcon, MessageCircleIcon, MinimizeIcon, MinusIcon, MonitorIcon, MoonIcon, PackageIcon, PaintBucketIcon, PaletteIcon, PanelLeftIcon, PaperclipIcon, PauseIcon, PencilIcon, PinIcon, PlayIcon, PlusIcon, PresentationIcon, RedoIcon, RefreshIcon, RocketIcon, RssIcon, SearchIcon, SendIcon, SettingsIcon, ShareIcon, ShieldCheckIcon, SmileIcon, SparklesIcon, SquareIcon, SquircleIcon, StarIcon, SunIcon, TableIcon, TagIcon, TextHorizontalIcon, TextVerticalIcon, ThumbsDownIcon, ThumbsUpIcon, TrashIcon, TriangleAlertIcon, UndoIcon, UploadIcon, UserIcon, UsersIcon, XIcon };
|
|
@@ -1,29 +1,5 @@
|
|
|
1
1
|
import { BaseIcon } from "./base.mjs";
|
|
2
|
-
import { CircleAlertIcon } from "./circle-alert.mjs";
|
|
3
|
-
import { CircleCheckIcon } from "./circle-check.mjs";
|
|
4
|
-
import { InfoIcon } from "./info.mjs";
|
|
5
|
-
import { TriangleAlertIcon } from "./triangle-alert.mjs";
|
|
6
2
|
import { AlertIcon } from "./alert.mjs";
|
|
7
|
-
import { CheckIcon } from "./check.mjs";
|
|
8
|
-
import { CopyIcon } from "./copy.mjs";
|
|
9
|
-
import { ChevronDownIcon } from "./chevron-down.mjs";
|
|
10
|
-
import { ChevronLeftIcon } from "./chevron-left.mjs";
|
|
11
|
-
import { ChevronRightIcon } from "./chevron-right.mjs";
|
|
12
|
-
import { ChevronUpIcon } from "./chevron-up.mjs";
|
|
13
|
-
import { ChevronIcon } from "./chevron.mjs";
|
|
14
|
-
import { MinusIcon } from "./minus.mjs";
|
|
15
|
-
import { XIcon } from "./x.mjs";
|
|
16
|
-
import { CalendarIcon } from "./calendar.mjs";
|
|
17
|
-
import { EyeIcon } from "./eye.mjs";
|
|
18
|
-
import { EyeClosedIcon } from "./eye-closed.mjs";
|
|
19
|
-
import { ExternalLinkIcon } from "./external-link.mjs";
|
|
20
|
-
import { FileIcon } from "./file.mjs";
|
|
21
|
-
import { RefreshIcon } from "./refresh.mjs";
|
|
22
|
-
import { ThumbsDownIcon } from "./thumbs-down.mjs";
|
|
23
|
-
import { ThumbsUpIcon } from "./thumbs-up.mjs";
|
|
24
|
-
import { PaperclipIcon } from "./paperclip.mjs";
|
|
25
|
-
import { SendIcon } from "./send.mjs";
|
|
26
|
-
import { SparklesIcon } from "./sparkles.mjs";
|
|
27
3
|
import { ArrowDownIcon } from "./arrow-down.mjs";
|
|
28
4
|
import { ArrowLeftIcon } from "./arrow-left.mjs";
|
|
29
5
|
import { ArrowRightIcon } from "./arrow-right.mjs";
|
|
@@ -32,24 +8,40 @@ import { BellIcon } from "./bell.mjs";
|
|
|
32
8
|
import { BlendIcon } from "./blend.mjs";
|
|
33
9
|
import { BookTextIcon } from "./book-text.mjs";
|
|
34
10
|
import { BookmarkIcon } from "./bookmark.mjs";
|
|
35
|
-
import { BotMessageIcon } from "./bot-message.mjs";
|
|
36
11
|
import { BotIcon } from "./bot.mjs";
|
|
12
|
+
import { BotMessageIcon } from "./bot-message.mjs";
|
|
13
|
+
import { CalendarIcon } from "./calendar.mjs";
|
|
14
|
+
import { CheckIcon } from "./check.mjs";
|
|
15
|
+
import { ChevronIcon } from "./chevron.mjs";
|
|
16
|
+
import { ChevronDownIcon } from "./chevron-down.mjs";
|
|
17
|
+
import { ChevronLeftIcon } from "./chevron-left.mjs";
|
|
18
|
+
import { ChevronRightIcon } from "./chevron-right.mjs";
|
|
19
|
+
import { ChevronUpIcon } from "./chevron-up.mjs";
|
|
37
20
|
import { ChevronsUpDownIcon } from "./chevrons-up-down.mjs";
|
|
21
|
+
import { CircleAlertIcon } from "./circle-alert.mjs";
|
|
22
|
+
import { CircleCheckIcon } from "./circle-check.mjs";
|
|
38
23
|
import { CircleHelpIcon } from "./circle-help.mjs";
|
|
39
24
|
import { CircleXIcon } from "./circle-x.mjs";
|
|
25
|
+
import { ClipboardCheckIcon } from "./clipboard-check.mjs";
|
|
40
26
|
import { ClockIcon } from "./clock.mjs";
|
|
41
27
|
import { CodeIcon } from "./code.mjs";
|
|
42
28
|
import { ColorScaleIcon } from "./color-scale.mjs";
|
|
43
29
|
import { ContrastIcon } from "./contrast.mjs";
|
|
30
|
+
import { CopyIcon } from "./copy.mjs";
|
|
44
31
|
import { DownloadIcon } from "./download.mjs";
|
|
45
|
-
import { EllipsisVerticalIcon } from "./ellipsis-vertical.mjs";
|
|
46
32
|
import { EllipsisIcon } from "./ellipsis.mjs";
|
|
33
|
+
import { EllipsisVerticalIcon } from "./ellipsis-vertical.mjs";
|
|
34
|
+
import { ExternalLinkIcon } from "./external-link.mjs";
|
|
35
|
+
import { EyeIcon } from "./eye.mjs";
|
|
36
|
+
import { EyeClosedIcon } from "./eye-closed.mjs";
|
|
37
|
+
import { FileIcon } from "./file.mjs";
|
|
47
38
|
import { FileTextIcon } from "./file-text.mjs";
|
|
48
39
|
import { FilterIcon } from "./filter.mjs";
|
|
49
40
|
import { FlaskIcon } from "./flask.mjs";
|
|
50
|
-
import { FolderOpenIcon } from "./folder-open.mjs";
|
|
51
41
|
import { FolderIcon } from "./folder.mjs";
|
|
42
|
+
import { FolderOpenIcon } from "./folder-open.mjs";
|
|
52
43
|
import { GitForkIcon } from "./git-fork.mjs";
|
|
44
|
+
import { GitPullRequestIcon } from "./git-pull-request.mjs";
|
|
53
45
|
import { GlobeIcon } from "./globe.mjs";
|
|
54
46
|
import { GridIcon } from "./grid.mjs";
|
|
55
47
|
import { GripVerticalIcon } from "./grip-vertical.mjs";
|
|
@@ -57,6 +49,7 @@ import { HeartIcon } from "./heart.mjs";
|
|
|
57
49
|
import { HistoryIcon } from "./history.mjs";
|
|
58
50
|
import { HomeIcon } from "./home.mjs";
|
|
59
51
|
import { ImageIcon } from "./image.mjs";
|
|
52
|
+
import { InfoIcon } from "./info.mjs";
|
|
60
53
|
import { LightbulbIcon } from "./lightbulb.mjs";
|
|
61
54
|
import { LinkIcon } from "./link.mjs";
|
|
62
55
|
import { ListIcon } from "./list.mjs";
|
|
@@ -70,12 +63,14 @@ import { MaximizeIcon } from "./maximize.mjs";
|
|
|
70
63
|
import { MenuIcon } from "./menu.mjs";
|
|
71
64
|
import { MessageCircleIcon } from "./message-circle.mjs";
|
|
72
65
|
import { MinimizeIcon } from "./minimize.mjs";
|
|
66
|
+
import { MinusIcon } from "./minus.mjs";
|
|
73
67
|
import { MonitorIcon } from "./monitor.mjs";
|
|
74
68
|
import { MoonIcon } from "./moon.mjs";
|
|
75
69
|
import { PackageIcon } from "./package.mjs";
|
|
76
70
|
import { PaintBucketIcon } from "./paint-bucket.mjs";
|
|
77
71
|
import { PaletteIcon } from "./palette.mjs";
|
|
78
72
|
import { PanelLeftIcon } from "./panel-left.mjs";
|
|
73
|
+
import { PaperclipIcon } from "./paperclip.mjs";
|
|
79
74
|
import { PauseIcon } from "./pause.mjs";
|
|
80
75
|
import { PencilIcon } from "./pencil.mjs";
|
|
81
76
|
import { PinIcon } from "./pin.mjs";
|
|
@@ -83,13 +78,16 @@ import { PlayIcon } from "./play.mjs";
|
|
|
83
78
|
import { PlusIcon } from "./plus.mjs";
|
|
84
79
|
import { PresentationIcon } from "./presentation.mjs";
|
|
85
80
|
import { RedoIcon } from "./redo.mjs";
|
|
81
|
+
import { RefreshIcon } from "./refresh.mjs";
|
|
86
82
|
import { RocketIcon } from "./rocket.mjs";
|
|
87
83
|
import { RssIcon } from "./rss.mjs";
|
|
88
84
|
import { SearchIcon } from "./search.mjs";
|
|
85
|
+
import { SendIcon } from "./send.mjs";
|
|
89
86
|
import { SettingsIcon } from "./settings.mjs";
|
|
90
87
|
import { ShareIcon } from "./share.mjs";
|
|
91
88
|
import { ShieldCheckIcon } from "./shield-check.mjs";
|
|
92
89
|
import { SmileIcon } from "./smile.mjs";
|
|
90
|
+
import { SparklesIcon } from "./sparkles.mjs";
|
|
93
91
|
import { SquareIcon } from "./square.mjs";
|
|
94
92
|
import { SquircleIcon } from "./squircle.mjs";
|
|
95
93
|
import { StarIcon } from "./star.mjs";
|
|
@@ -98,9 +96,13 @@ import { TableIcon } from "./table.mjs";
|
|
|
98
96
|
import { TagIcon } from "./tag.mjs";
|
|
99
97
|
import { TextHorizontalIcon } from "./text-horizontal.mjs";
|
|
100
98
|
import { TextVerticalIcon } from "./text-vertical.mjs";
|
|
99
|
+
import { ThumbsDownIcon } from "./thumbs-down.mjs";
|
|
100
|
+
import { ThumbsUpIcon } from "./thumbs-up.mjs";
|
|
101
101
|
import { TrashIcon } from "./trash.mjs";
|
|
102
|
+
import { TriangleAlertIcon } from "./triangle-alert.mjs";
|
|
102
103
|
import { UndoIcon } from "./undo.mjs";
|
|
103
104
|
import { UploadIcon } from "./upload.mjs";
|
|
104
105
|
import { UserIcon } from "./user.mjs";
|
|
105
106
|
import { UsersIcon } from "./users.mjs";
|
|
106
|
-
|
|
107
|
+
import { XIcon } from "./x.mjs";
|
|
108
|
+
export { AlertIcon, ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BaseIcon, BellIcon, BlendIcon, BookTextIcon, BookmarkIcon, BotIcon, BotMessageIcon, CalendarIcon, CheckIcon, ChevronDownIcon, ChevronIcon, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronsUpDownIcon, CircleAlertIcon, CircleCheckIcon, CircleHelpIcon, CircleXIcon, ClipboardCheckIcon, ClockIcon, CodeIcon, ColorScaleIcon, ContrastIcon, CopyIcon, DownloadIcon, EllipsisIcon, EllipsisVerticalIcon, ExternalLinkIcon, EyeClosedIcon, EyeIcon, FileIcon, FileTextIcon, FilterIcon, FlaskIcon, FolderIcon, FolderOpenIcon, GitForkIcon, GitPullRequestIcon, GlobeIcon, GridIcon, GripVerticalIcon, HeartIcon, HistoryIcon, HomeIcon, ImageIcon, InfoIcon, LightbulbIcon, LinkIcon, ListIcon, LockIcon, LockOpenIcon, LogInIcon, LogOutIcon, MailIcon, MapPinIcon, MaximizeIcon, MenuIcon, MessageCircleIcon, MinimizeIcon, MinusIcon, MonitorIcon, MoonIcon, PackageIcon, PaintBucketIcon, PaletteIcon, PanelLeftIcon, PaperclipIcon, PauseIcon, PencilIcon, PinIcon, PlayIcon, PlusIcon, PresentationIcon, RedoIcon, RefreshIcon, RocketIcon, RssIcon, SearchIcon, SendIcon, SettingsIcon, ShareIcon, ShieldCheckIcon, SmileIcon, SparklesIcon, SquareIcon, SquircleIcon, StarIcon, SunIcon, TableIcon, TagIcon, TextHorizontalIcon, TextVerticalIcon, ThumbsDownIcon, ThumbsUpIcon, TrashIcon, TriangleAlertIcon, UndoIcon, UploadIcon, UserIcon, UsersIcon, XIcon };
|
|
@@ -1,129 +1,121 @@
|
|
|
1
|
-
import { Button
|
|
1
|
+
import { Button } from "./buttons/button/button.mjs";
|
|
2
2
|
import "./buttons/button/index.mjs";
|
|
3
3
|
import { CopyButton } from "./buttons/copy-button/copy-button.mjs";
|
|
4
4
|
import "./buttons/copy-button/index.mjs";
|
|
5
|
+
import { IconButton } from "./buttons/icon-button/icon-button.mjs";
|
|
5
6
|
import "./buttons/icon-button/index.mjs";
|
|
6
7
|
import { ToolbarItemProps } from "./buttons/toolbar/toolbar.mjs";
|
|
7
8
|
import { Toolbar } from "./buttons/toolbar/index.mjs";
|
|
8
|
-
import { Accordion } from "./data-display/accordion/index.mjs";
|
|
9
9
|
import { Avatar } from "./data-display/avatar/avatar.mjs";
|
|
10
|
-
import "./data-display/
|
|
10
|
+
import { Accordion } from "./data-display/accordion/index.mjs";
|
|
11
11
|
import { Badge } from "./data-display/badge/badge.mjs";
|
|
12
|
+
import "./data-display/avatar/index.mjs";
|
|
13
|
+
import { Card, CardRenderAnchorProps } from "./data-display/card/card.mjs";
|
|
12
14
|
import "./data-display/badge/index.mjs";
|
|
13
|
-
import { Card } from "./data-display/card/card.mjs";
|
|
14
15
|
import "./data-display/card/index.mjs";
|
|
16
|
+
import { Heading } from "./data-display/heading/heading.mjs";
|
|
15
17
|
import { Carousel } from "./data-display/carousel/index.mjs";
|
|
16
|
-
import {
|
|
18
|
+
import { Alert } from "./feedback/alert/alert.mjs";
|
|
17
19
|
import "./data-display/code/index.mjs";
|
|
18
|
-
import {
|
|
19
|
-
import "./feedback/empty-state/index.mjs";
|
|
20
|
-
import { CellAlign, Table } from "./data-display/table/table.mjs";
|
|
21
|
-
import "./data-display/table/index.mjs";
|
|
22
|
-
import { DataTable, DataTableColumn, DataTableSort } from "./data-display/data-table/data-table.mjs";
|
|
20
|
+
import { Callout } from "./feedback/callout/callout.mjs";
|
|
23
21
|
import "./data-display/data-table/index.mjs";
|
|
24
|
-
import {
|
|
22
|
+
import { Skeleton } from "./feedback/skeleton/skeleton.mjs";
|
|
25
23
|
import "./data-display/heading/index.mjs";
|
|
26
|
-
import {
|
|
24
|
+
import { Spinner } from "./feedback/spinner/spinner.mjs";
|
|
27
25
|
import "./data-display/kbd/index.mjs";
|
|
28
|
-
import {
|
|
26
|
+
import { TextField } from "./form/text-field/text-field.mjs";
|
|
29
27
|
import "./data-display/prose/index.mjs";
|
|
30
|
-
import
|
|
28
|
+
import "./data-display/table/index.mjs";
|
|
29
|
+
import { Grid, GridProps } from "./layout/grid/grid.mjs";
|
|
31
30
|
import "./data-display/tree/index.mjs";
|
|
32
|
-
import {
|
|
31
|
+
import { Separator } from "./layout/separator/separator.mjs";
|
|
33
32
|
import "./feedback/alert/index.mjs";
|
|
34
|
-
import { Callout } from "./feedback/callout/callout.mjs";
|
|
35
33
|
import "./feedback/callout/index.mjs";
|
|
36
|
-
import {
|
|
34
|
+
import { Stack, StackProps } from "./layout/stack/stack.mjs";
|
|
35
|
+
import "./feedback/empty-state/index.mjs";
|
|
37
36
|
import "./feedback/progress/index.mjs";
|
|
38
|
-
import {
|
|
37
|
+
import { Stepper, StepperStep } from "./navigation/stepper/stepper.mjs";
|
|
39
38
|
import "./feedback/skeleton/index.mjs";
|
|
40
|
-
import {
|
|
39
|
+
import { Dialog } from "./overlays/dialog/dialog.mjs";
|
|
41
40
|
import "./feedback/spinner/index.mjs";
|
|
42
|
-
import {
|
|
43
|
-
import { ToastProvider } from "./feedback/toast/provider.mjs";
|
|
41
|
+
import { Drawer } from "./overlays/drawer/drawer.mjs";
|
|
44
42
|
import "./feedback/toast/index.mjs";
|
|
45
|
-
import {
|
|
43
|
+
import { Tree, TreeItem } from "./data-display/tree/tree.mjs";
|
|
46
44
|
import "./form/autocomplete/index.mjs";
|
|
47
|
-
import { Calendar } from "./form/calendar/calendar.mjs";
|
|
48
45
|
import "./form/calendar/index.mjs";
|
|
49
|
-
import {
|
|
46
|
+
import { Code } from "./data-display/code/code.mjs";
|
|
50
47
|
import "./form/checkbox/index.mjs";
|
|
51
|
-
import {
|
|
48
|
+
import { EmptyState } from "./feedback/empty-state/empty-state.mjs";
|
|
52
49
|
import "./form/checkbox-card/index.mjs";
|
|
53
|
-
import {
|
|
54
|
-
import
|
|
50
|
+
import { CellAlign, Table } from "./data-display/table/table.mjs";
|
|
51
|
+
import "./form/checkbox-group/index.mjs";
|
|
52
|
+
import { DataTable, DataTableColumn, DataTableSort } from "./data-display/data-table/data-table.mjs";
|
|
55
53
|
import "./form/color-picker/index.mjs";
|
|
56
|
-
import {
|
|
54
|
+
import { Kbd } from "./data-display/kbd/kbd.mjs";
|
|
57
55
|
import "./form/combobox/index.mjs";
|
|
58
|
-
import {
|
|
59
|
-
import "./form/date-field/index.mjs";
|
|
60
|
-
import { DatePicker } from "./form/date-picker/date-picker.mjs";
|
|
56
|
+
import { Prose } from "./data-display/prose/prose.mjs";
|
|
61
57
|
import "./form/date-picker/index.mjs";
|
|
58
|
+
import { Progress } from "./feedback/progress/progress.mjs";
|
|
62
59
|
import { FileField } from "./form/file-field/index.mjs";
|
|
63
|
-
import {
|
|
60
|
+
import { ToastOptions, useToast } from "./feedback/toast/context.mjs";
|
|
61
|
+
import { ToastProvider } from "./feedback/toast/provider.mjs";
|
|
64
62
|
import "./form/form/index.mjs";
|
|
65
|
-
import {
|
|
63
|
+
import { Autocomplete } from "./form/autocomplete/autocomplete.mjs";
|
|
66
64
|
import "./form/form-control/index.mjs";
|
|
67
|
-
import {
|
|
65
|
+
import { Calendar } from "./form/calendar/calendar.mjs";
|
|
68
66
|
import "./form/number-field/index.mjs";
|
|
69
|
-
import {
|
|
67
|
+
import { CheckboxCard, CheckboxCardOption } from "./form/checkbox-card/checkbox-card.mjs";
|
|
70
68
|
import "./form/password-input/index.mjs";
|
|
71
|
-
import {
|
|
69
|
+
import { CheckboxGroup } from "./form/checkbox-group/checkbox-group.mjs";
|
|
72
70
|
import "./form/radio/index.mjs";
|
|
73
|
-
import {
|
|
71
|
+
import { Checkbox } from "./form/checkbox/checkbox.mjs";
|
|
74
72
|
import "./form/radio-card/index.mjs";
|
|
75
|
-
import {
|
|
73
|
+
import { ColorPicker, ColorPickerSwatch } from "./form/color-picker/color-picker.mjs";
|
|
76
74
|
import "./form/range-slider/index.mjs";
|
|
77
|
-
import {
|
|
75
|
+
import { Combobox, ComboboxSearch } from "./form/combobox/combobox.mjs";
|
|
78
76
|
import "./form/select/index.mjs";
|
|
79
|
-
import {
|
|
77
|
+
import { DatePicker } from "./form/date-picker/date-picker.mjs";
|
|
80
78
|
import "./form/slider/index.mjs";
|
|
81
|
-
import { Switch } from "./form/switch/switch.mjs";
|
|
82
79
|
import "./form/switch/index.mjs";
|
|
83
|
-
import {
|
|
80
|
+
import { FormControl } from "./form/form-control/form-control.mjs";
|
|
84
81
|
import "./form/text-field/index.mjs";
|
|
85
|
-
import {
|
|
82
|
+
import { Form } from "./form/form/form.mjs";
|
|
86
83
|
import "./form/textarea/index.mjs";
|
|
84
|
+
import { NumberField } from "./form/number-field/number-field.mjs";
|
|
87
85
|
import { GapSize } from "./layout/_shared/gap.mjs";
|
|
86
|
+
import { PasswordInput } from "./form/password-input/password-input.mjs";
|
|
88
87
|
import { PaddingSize } from "./layout/_shared/padding.mjs";
|
|
89
|
-
import {
|
|
88
|
+
import { RadioCard, RadioCardOption } from "./form/radio-card/radio-card.mjs";
|
|
90
89
|
import "./layout/grid/index.mjs";
|
|
90
|
+
import { Radio } from "./form/radio/radio.mjs";
|
|
91
91
|
import { ResizablePanels } from "./layout/resizable-panels/index.mjs";
|
|
92
|
-
import {
|
|
92
|
+
import { RangeSlider } from "./form/range-slider/range-slider.mjs";
|
|
93
93
|
import "./layout/separator/index.mjs";
|
|
94
|
-
import {
|
|
94
|
+
import { Select } from "./form/select/select.mjs";
|
|
95
95
|
import "./layout/stack/index.mjs";
|
|
96
|
-
import {
|
|
96
|
+
import { Slider } from "./form/slider/slider.mjs";
|
|
97
97
|
import "./navigation/anchor/index.mjs";
|
|
98
|
+
import { Switch } from "./form/switch/switch.mjs";
|
|
98
99
|
import { Breadcrumb } from "./navigation/breadcrumb/index.mjs";
|
|
99
|
-
import {
|
|
100
|
+
import { Textarea } from "./form/textarea/textarea.mjs";
|
|
100
101
|
import "./navigation/pagination/index.mjs";
|
|
101
|
-
import { Stepper, StepperStep } from "./navigation/stepper/stepper.mjs";
|
|
102
102
|
import "./navigation/stepper/index.mjs";
|
|
103
|
+
import { Anchor } from "./navigation/anchor/anchor.mjs";
|
|
103
104
|
import { SideNav } from "./navigation/side-nav/index.mjs";
|
|
104
|
-
import {
|
|
105
|
+
import { Pagination } from "./navigation/pagination/pagination.mjs";
|
|
105
106
|
import "./navigation/table-of-contents/index.mjs";
|
|
106
107
|
import { Tabs } from "./navigation/tabs/index.mjs";
|
|
107
|
-
import {
|
|
108
|
-
import "./observers/in-view/index.mjs";
|
|
109
|
-
import { Resize } from "./observers/resize/resize.mjs";
|
|
110
|
-
import "./observers/resize/index.mjs";
|
|
111
|
-
import { CommandPalette, CommandPaletteItem } from "./overlays/command-palette/command-palette.mjs";
|
|
108
|
+
import { TableOfContents, TableOfContentsItem } from "./navigation/table-of-contents/table-of-contents.mjs";
|
|
112
109
|
import "./overlays/command-palette/index.mjs";
|
|
113
110
|
import { ContextMenu } from "./overlays/context-menu/index.mjs";
|
|
114
|
-
import {
|
|
115
|
-
import
|
|
111
|
+
import { CommandPalette, CommandPaletteItem } from "./overlays/command-palette/command-palette.mjs";
|
|
112
|
+
import "./overlays/dialog/index.mjs";
|
|
116
113
|
import "./overlays/drawer/index.mjs";
|
|
117
114
|
import { DropdownMenu } from "./overlays/dropdown-menu/index.mjs";
|
|
118
|
-
import { ListBox } from "./overlays/list-box/
|
|
119
|
-
import
|
|
120
|
-
import "./overlays/
|
|
121
|
-
import { PopoverContentProps, PopoverTriggerProps } from "./overlays/popover/hooks.mjs";
|
|
115
|
+
import { ListBox } from "./overlays/list-box/list-box.mjs";
|
|
116
|
+
import "./overlays/list-box/index.mjs";
|
|
117
|
+
import { PopoverTriggerProps } from "./overlays/popover/hooks.mjs";
|
|
122
118
|
import { Popover } from "./overlays/popover/index.mjs";
|
|
123
|
-
import { UIProvider } from "./providers/ui-provider.mjs";
|
|
124
|
-
import { PortalRootProvider, usePortalRoot } from "./providers/portal-root.mjs";
|
|
125
|
-
import "./providers/index.mjs";
|
|
126
119
|
import { TooltipTriggerProps } from "./overlays/tooltip/tooltip.mjs";
|
|
127
120
|
import { Tooltip } from "./overlays/tooltip/index.mjs";
|
|
128
|
-
|
|
129
|
-
export { Accordion, Alert, type AlertAction, Anchor, Autocomplete, Avatar, Badge, Breadcrumb, Button, type ButtonRenderItemProps, Calendar, Callout, Card, Carousel, type CellAlign, Checkbox, CheckboxCard, type CheckboxCardOption, CheckboxGroup, Code, ColorPicker, type ColorPickerSwatch, Combobox, type ComboboxSearch, CommandPalette, type CommandPaletteItem, ContextMenu, CopyButton, DataTable, type DataTableColumn, type DataTableSort, DateField, DatePicker, Dialog, Drawer, DropdownMenu, EmptyState, FileField, Form, FormControl, type GapSize, Grid, type GridProps, Heading, IconButton, type IconButtonRenderItemProps, type IconButtonTriggerProps, InView, Kbd, ListBox, Modal, NumberField, type PaddingSize, Pagination, PasswordInput, Popover, type PopoverContentProps, type PopoverTriggerProps, PortalRootProvider, Progress, Prose, Radio, RadioCard, type RadioCardOption, RangeSlider, ResizablePanels, Resize, Select, Separator, SideNav, Skeleton, Slider, Spinner, Stack, type StackProps, Stepper, type StepperStep, Switch, Table, TableOfContents, type TableOfContentsItem, Tabs, TextField, Textarea, type ToastAction, type ToastOptions, ToastProvider, Toolbar, type ToolbarItemProps, Tooltip, type TooltipTriggerProps, Tree, type TreeItem, UIProvider, usePortalRoot, useToast };
|
|
121
|
+
export { Accordion, Alert, Anchor, Autocomplete, Avatar, Badge, Breadcrumb, Button, Calendar, Callout, Card, type CardRenderAnchorProps, Carousel, type CellAlign, Checkbox, CheckboxCard, type CheckboxCardOption, CheckboxGroup, Code, ColorPicker, type ColorPickerSwatch, Combobox, type ComboboxSearch, CommandPalette, type CommandPaletteItem, ContextMenu, CopyButton, DataTable, type DataTableColumn, type DataTableSort, DatePicker, Dialog, Drawer, DropdownMenu, EmptyState, FileField, Form, FormControl, type GapSize, Grid, type GridProps, Heading, IconButton, Kbd, ListBox, NumberField, type PaddingSize, Pagination, PasswordInput, Popover, type PopoverTriggerProps, Progress, Prose, Radio, RadioCard, type RadioCardOption, RangeSlider, ResizablePanels, Select, Separator, SideNav, Skeleton, Slider, Spinner, Stack, type StackProps, Stepper, type StepperStep, Switch, Table, TableOfContents, type TableOfContentsItem, Tabs, TextField, Textarea, type ToastOptions, ToastProvider, Toolbar, type ToolbarItemProps, Tooltip, type TooltipTriggerProps, Tree, type TreeItem, useToast };
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { Spinner } from "./feedback/spinner/spinner.mjs";
|
|
2
1
|
import { Button } from "./buttons/button/button.mjs";
|
|
3
|
-
import { Popover } from "./overlays/popover/index.mjs";
|
|
4
|
-
import { Tooltip } from "./overlays/tooltip/index.mjs";
|
|
5
|
-
import { IconButton } from "./buttons/icon-button/icon-button.mjs";
|
|
6
2
|
import { CopyButton } from "./buttons/copy-button/copy-button.mjs";
|
|
7
|
-
import {
|
|
3
|
+
import { IconButton } from "./buttons/icon-button/icon-button.mjs";
|
|
8
4
|
import { Toolbar } from "./buttons/toolbar/index.mjs";
|
|
9
5
|
import { Accordion } from "./data-display/accordion/index.mjs";
|
|
10
6
|
import { Avatar } from "./data-display/avatar/avatar.mjs";
|
|
@@ -12,27 +8,27 @@ import { Badge } from "./data-display/badge/badge.mjs";
|
|
|
12
8
|
import { Card } from "./data-display/card/card.mjs";
|
|
13
9
|
import { Carousel } from "./data-display/carousel/index.mjs";
|
|
14
10
|
import { Code } from "./data-display/code/code.mjs";
|
|
15
|
-
import { Checkbox } from "./form/checkbox/checkbox.mjs";
|
|
16
|
-
import { CheckboxGroup } from "./form/checkbox-group/index.mjs";
|
|
17
|
-
import { EmptyState } from "./feedback/empty-state/empty-state.mjs";
|
|
18
|
-
import { Table } from "./data-display/table/table.mjs";
|
|
19
11
|
import { DataTable } from "./data-display/data-table/data-table.mjs";
|
|
20
12
|
import { Heading } from "./data-display/heading/heading.mjs";
|
|
21
13
|
import { Kbd } from "./data-display/kbd/kbd.mjs";
|
|
22
14
|
import { Prose } from "./data-display/prose/prose.mjs";
|
|
15
|
+
import { Table } from "./data-display/table/table.mjs";
|
|
23
16
|
import { Tree } from "./data-display/tree/tree.mjs";
|
|
24
17
|
import { Alert } from "./feedback/alert/alert.mjs";
|
|
25
18
|
import { Callout } from "./feedback/callout/callout.mjs";
|
|
19
|
+
import { EmptyState } from "./feedback/empty-state/empty-state.mjs";
|
|
26
20
|
import { Progress } from "./feedback/progress/progress.mjs";
|
|
27
21
|
import { Skeleton } from "./feedback/skeleton/skeleton.mjs";
|
|
28
|
-
import {
|
|
22
|
+
import { Spinner } from "./feedback/spinner/spinner.mjs";
|
|
29
23
|
import { ToastProvider } from "./feedback/toast/provider.mjs";
|
|
24
|
+
import { useToast } from "./feedback/toast/context.mjs";
|
|
30
25
|
import { Autocomplete } from "./form/autocomplete/autocomplete.mjs";
|
|
31
26
|
import { Calendar } from "./form/calendar/calendar.mjs";
|
|
27
|
+
import { Checkbox } from "./form/checkbox/checkbox.mjs";
|
|
32
28
|
import { CheckboxCard } from "./form/checkbox-card/checkbox-card.mjs";
|
|
29
|
+
import { CheckboxGroup } from "./form/checkbox-group/checkbox-group.mjs";
|
|
33
30
|
import { ColorPicker } from "./form/color-picker/color-picker.mjs";
|
|
34
31
|
import { Combobox } from "./form/combobox/combobox.mjs";
|
|
35
|
-
import { DateField } from "./form/date-field/date-field.mjs";
|
|
36
32
|
import { DatePicker } from "./form/date-picker/date-picker.mjs";
|
|
37
33
|
import { FileField } from "./form/file-field/index.mjs";
|
|
38
34
|
import { Form } from "./form/form/form.mjs";
|
|
@@ -49,6 +45,7 @@ import { TextField } from "./form/text-field/text-field.mjs";
|
|
|
49
45
|
import { Textarea } from "./form/textarea/textarea.mjs";
|
|
50
46
|
import { Grid } from "./layout/grid/grid.mjs";
|
|
51
47
|
import { ResizablePanels } from "./layout/resizable-panels/index.mjs";
|
|
48
|
+
import { Separator } from "./layout/separator/separator.mjs";
|
|
52
49
|
import { Stack } from "./layout/stack/stack.mjs";
|
|
53
50
|
import { Anchor } from "./navigation/anchor/anchor.mjs";
|
|
54
51
|
import { Breadcrumb } from "./navigation/breadcrumb/index.mjs";
|
|
@@ -57,15 +54,12 @@ import { Stepper } from "./navigation/stepper/stepper.mjs";
|
|
|
57
54
|
import { SideNav } from "./navigation/side-nav/index.mjs";
|
|
58
55
|
import { TableOfContents } from "./navigation/table-of-contents/table-of-contents.mjs";
|
|
59
56
|
import { Tabs } from "./navigation/tabs/index.mjs";
|
|
60
|
-
import { InView } from "./observers/in-view/in-view.mjs";
|
|
61
|
-
import { Resize } from "./observers/resize/resize.mjs";
|
|
62
|
-
import { UIProvider } from "./providers/ui-provider.mjs";
|
|
63
|
-
import { PortalRootProvider, usePortalRoot } from "./providers/portal-root.mjs";
|
|
64
|
-
import { Modal } from "./overlays/modal/modal.mjs";
|
|
65
57
|
import { CommandPalette } from "./overlays/command-palette/command-palette.mjs";
|
|
66
58
|
import { ContextMenu } from "./overlays/context-menu/index.mjs";
|
|
67
|
-
import { Dialog } from "./overlays/dialog/
|
|
59
|
+
import { Dialog } from "./overlays/dialog/dialog.mjs";
|
|
68
60
|
import { Drawer } from "./overlays/drawer/drawer.mjs";
|
|
69
61
|
import { DropdownMenu } from "./overlays/dropdown-menu/index.mjs";
|
|
70
|
-
import { ListBox } from "./overlays/list-box/
|
|
71
|
-
|
|
62
|
+
import { ListBox } from "./overlays/list-box/list-box.mjs";
|
|
63
|
+
import { Popover } from "./overlays/popover/index.mjs";
|
|
64
|
+
import { Tooltip } from "./overlays/tooltip/index.mjs";
|
|
65
|
+
export { Accordion, Alert, Anchor, Autocomplete, Avatar, Badge, Breadcrumb, Button, Calendar, Callout, Card, Carousel, Checkbox, CheckboxCard, CheckboxGroup, Code, ColorPicker, Combobox, CommandPalette, ContextMenu, CopyButton, DataTable, DatePicker, Dialog, Drawer, DropdownMenu, EmptyState, FileField, Form, FormControl, Grid, Heading, IconButton, Kbd, ListBox, NumberField, Pagination, PasswordInput, Popover, Progress, Prose, Radio, RadioCard, RangeSlider, ResizablePanels, Select, Separator, SideNav, Skeleton, Slider, Spinner, Stack, Stepper, Switch, Table, TableOfContents, Tabs, TextField, Textarea, ToastProvider, Toolbar, Tooltip, Tree, useToast };
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { getMessages } from "../../../i18n/current.mjs";
|
|
3
|
-
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
4
|
-
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
5
2
|
import { createSafeContext } from "../../../helpers/create-safe-context.mjs";
|
|
3
|
+
import { mergeRefs } from "../../../helpers/merge-refs.mjs";
|
|
6
4
|
import { useControllableState } from "../../../hooks/controllable-state/index.mjs";
|
|
7
5
|
import { useWritingMode } from "../../../hooks/writing-mode/index.mjs";
|
|
6
|
+
import { getMessages } from "../../../i18n/current.mjs";
|
|
7
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
8
8
|
import resizable_panels_module_default from "./resizable-panels.module.mjs";
|
|
9
9
|
import { clsx } from "clsx";
|
|
10
10
|
import { useCallback, useId, useMemo, useRef, useState } from "react";
|
|
@@ -19,9 +19,9 @@
|
|
|
19
19
|
border-radius: var(--radius-sm);
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.
|
|
23
|
-
align
|
|
24
|
-
|
|
22
|
+
._7nx_2W_icon {
|
|
23
|
+
vertical-align: middle;
|
|
24
|
+
margin-inline-start: calc(var(--spacing) * .5);
|
|
25
25
|
display: inline-flex;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,24 +1,37 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
2
|
import { ExternalLinkIcon } from "../../icons/external-link.mjs";
|
|
3
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
4
|
+
import sr_only_module_default from "../../_internal/sr-only.module.mjs";
|
|
3
5
|
import anchor_module_default from "./anchor.module.mjs";
|
|
4
6
|
import { clsx } from "clsx";
|
|
5
7
|
import { Fragment, jsx, jsxs } from "react/jsx-runtime";
|
|
6
8
|
// src/components/navigation/anchor/anchor.tsx
|
|
7
|
-
const
|
|
9
|
+
const EXTERNAL_URL = /^(?:https?:)?[/\\]{2}/iu;
|
|
10
|
+
const defaultRenderAnchor = ({ kind: _kind, children: anchorChildren, ...rest }) => /* @__PURE__ */ jsx("a", {
|
|
8
11
|
...rest,
|
|
9
12
|
children: anchorChildren
|
|
10
13
|
});
|
|
11
14
|
const Anchor = ({ href, children, openInNewTab = false, renderAnchor = defaultRenderAnchor, ...rest }) => {
|
|
12
|
-
const kind = !
|
|
13
|
-
const
|
|
15
|
+
const kind = !EXTERNAL_URL.test(href) && !openInNewTab ? "internal" : "external";
|
|
16
|
+
const className = clsx(anchor_module_default.root, focus_ring_module_default.ringNoBorder);
|
|
14
17
|
const props = kind === "internal" ? {
|
|
15
|
-
className
|
|
18
|
+
className,
|
|
16
19
|
children
|
|
17
20
|
} : {
|
|
18
|
-
className
|
|
21
|
+
className,
|
|
19
22
|
target: "_blank",
|
|
20
23
|
rel: "noopener noreferrer",
|
|
21
|
-
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
24
|
+
children: /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
25
|
+
children,
|
|
26
|
+
/* @__PURE__ */ jsx("span", {
|
|
27
|
+
className: anchor_module_default.icon,
|
|
28
|
+
children: /* @__PURE__ */ jsx(ExternalLinkIcon, { size: "sm" })
|
|
29
|
+
}),
|
|
30
|
+
/* @__PURE__ */ jsx("span", {
|
|
31
|
+
className: sr_only_module_default.srOnly,
|
|
32
|
+
children: getMessages().opensInNewTab
|
|
33
|
+
})
|
|
34
|
+
] })
|
|
22
35
|
};
|
|
23
36
|
return renderAnchor({
|
|
24
37
|
...rest,
|
|
@@ -1,17 +1,19 @@
|
|
|
1
|
-
import { FC, PropsWithChildren, ReactNode } from "react";
|
|
1
|
+
import { AnchorHTMLAttributes, FC, PropsWithChildren, ReactNode } from "react";
|
|
2
2
|
export declare const List: FC<PropsWithChildren<{
|
|
3
3
|
size?: 'sm' | 'md' | 'lg';
|
|
4
4
|
}>>;
|
|
5
5
|
export declare const Item: FC<PropsWithChildren>;
|
|
6
6
|
export declare const Separator: FC;
|
|
7
|
+
type RestProps = Omit<AnchorHTMLAttributes<HTMLAnchorElement>, 'href' | 'children' | 'className' | 'style'>;
|
|
7
8
|
type RenderBreadcrumbAnchorProps<T extends string> = {
|
|
8
9
|
href: NoInfer<T>;
|
|
9
10
|
className: string;
|
|
10
11
|
children: ReactNode;
|
|
11
|
-
};
|
|
12
|
-
export declare const Link: <T extends string>({ href, current, children, renderAnchor }: PropsWithChildren<{
|
|
12
|
+
} & RestProps;
|
|
13
|
+
export declare const Link: <T extends string>({ href, current, children, renderAnchor, ...rest }: PropsWithChildren<{
|
|
13
14
|
href: T;
|
|
15
|
+
/** 今のページ。リンクにせず `<span aria-current="page">` を描き、ほかの属性は付けない。 */
|
|
14
16
|
current?: boolean;
|
|
15
17
|
renderAnchor?: (props: RenderBreadcrumbAnchorProps<T>) => ReactNode;
|
|
16
|
-
}>) => string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
18
|
+
} & RestProps>) => string | number | bigint | boolean | import("react").JSX.Element | Iterable<ReactNode> | Promise<string | number | bigint | boolean | Iterable<ReactNode> | import("react").ReactElement<unknown, string | import("react").JSXElementConstructor<any>> | import("react").ReactPortal | null | undefined> | null | undefined;
|
|
17
19
|
export {};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { getMessages } from "../../../i18n/current.mjs";
|
|
2
|
-
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
3
2
|
import { ChevronIcon } from "../../icons/chevron.mjs";
|
|
3
|
+
import focus_ring_module_default from "../../_internal/focus-ring.module.mjs";
|
|
4
4
|
import breadcrumb_module_default from "./breadcrumb.module.mjs";
|
|
5
5
|
import { clsx } from "clsx";
|
|
6
6
|
import { jsx } from "react/jsx-runtime";
|
|
@@ -36,11 +36,12 @@ const defaultRenderBreadcrumbAnchor = ({ children, ...rest }) => /* @__PURE__ */
|
|
|
36
36
|
...rest,
|
|
37
37
|
children
|
|
38
38
|
});
|
|
39
|
-
const Link = ({ href, current = false, children, renderAnchor = defaultRenderBreadcrumbAnchor }) => current ? /* @__PURE__ */ jsx("span", {
|
|
39
|
+
const Link = ({ href, current = false, children, renderAnchor = defaultRenderBreadcrumbAnchor, ...rest }) => current ? /* @__PURE__ */ jsx("span", {
|
|
40
40
|
"aria-current": "page",
|
|
41
41
|
className: breadcrumb_module_default.current,
|
|
42
42
|
children
|
|
43
43
|
}) : renderAnchor({
|
|
44
|
+
...rest,
|
|
44
45
|
href,
|
|
45
46
|
className: clsx(breadcrumb_module_default.link, focus_ring_module_default.ringNoBorder),
|
|
46
47
|
children
|
|
@@ -6,8 +6,8 @@ type Props = {
|
|
|
6
6
|
disabled?: boolean;
|
|
7
7
|
prevLabel?: string;
|
|
8
8
|
nextLabel?: string;
|
|
9
|
-
|
|
9
|
+
label?: string;
|
|
10
10
|
ref?: Ref<HTMLElement>;
|
|
11
|
-
} & Omit<HTMLAttributes<HTMLElement>, 'className' | 'style' | 'onChange' | 'children'>;
|
|
11
|
+
} & Omit<HTMLAttributes<HTMLElement>, 'className' | 'style' | 'onChange' | 'children' | 'aria-label'>;
|
|
12
12
|
export declare const Pagination: FC<Props>;
|
|
13
13
|
export {};
|