@primer/components 33.0.0-rc.b495ba4a → 33.1.0-rc.6856bcf5
Sign up to get free protection for your applications and to get access to all the features.
- package/.devcontainer/devcontainer.json +1 -1
- package/.github/workflows/ci.yml +1 -1
- package/.github/workflows/release.yml +6 -27
- package/.github/workflows/release_canary.yml +4 -60
- package/.github/workflows/release_candidate.yml +5 -51
- package/.github/workflows/statuses.yml +32 -0
- package/.gitignore +1 -0
- package/.nvmrc +1 -1
- package/CHANGELOG.md +20 -0
- package/contributor-docs/CONTRIBUTING.md +14 -61
- package/dist/browser.esm.js +2 -2209
- package/dist/browser.esm.js.map +1 -1
- package/dist/browser.umd.js +2 -2209
- package/dist/browser.umd.js.map +1 -1
- package/docs/content/AnchoredOverlay.mdx +121 -1
- package/docs/content/Avatar.mdx +29 -14
- package/docs/content/AvatarPair.mdx +47 -0
- package/docs/content/AvatarStack.mdx +14 -6
- package/docs/content/Box.mdx +13 -11
- package/docs/content/BranchName.mdx +52 -0
- package/docs/content/{Breadcrumbs.md → Breadcrumbs.mdx} +21 -13
- package/docs/content/Link.mdx +75 -0
- package/docs/content/Radio.md +90 -0
- package/docs/content/TextInput.mdx +125 -0
- package/docs/content/drafts/ActionList2.mdx +484 -0
- package/docs/content/drafts/ActionMenu2.mdx +302 -0
- package/docs/src/@primer/gatsby-theme-doctocat/live-code-scope.js +9 -1
- package/docs/src/@primer/gatsby-theme-doctocat/mdx-components.js +15 -2
- package/docs/src/@primer/gatsby-theme-doctocat/nav.yml +4 -0
- package/docs/src/component-checklist.js +10 -2
- package/docs/src/props-table.js +165 -0
- package/docs/src/props.js +14 -28
- package/lib/ActionList/Header.js +1 -1
- package/lib/ActionList/Item.js +10 -10
- package/lib/ActionList/List.js +1 -1
- package/lib/ActionList2/ActionListContainerContext.d.ts +10 -0
- package/lib/ActionList2/ActionListContainerContext.js +15 -0
- package/lib/ActionList2/Divider.d.ts +3 -2
- package/lib/ActionList2/Divider.js +10 -5
- package/lib/ActionList2/Item.js +22 -8
- package/lib/ActionList2/List.js +12 -2
- package/lib/ActionList2/Selection.js +11 -0
- package/lib/ActionList2/index.d.ts +1 -2
- package/lib/ActionMenu2.d.ts +317 -0
- package/lib/ActionMenu2.js +125 -0
- package/lib/Autocomplete/Autocomplete.d.ts +2 -1
- package/lib/Autocomplete/AutocompleteInput.d.ts +2 -1
- package/lib/BaseStyles.js +2 -20
- package/lib/BorderBox.js +1 -1
- package/lib/Box.js +1 -1
- package/lib/BranchName.js +1 -1
- package/lib/Breadcrumbs.js +3 -3
- package/lib/Button/Button.d.ts +2 -2
- package/lib/Button/Button.js +1 -1
- package/lib/Button/ButtonClose.d.ts +2 -2
- package/lib/Button/ButtonDanger.d.ts +2 -2
- package/lib/Button/ButtonGroup.js +1 -1
- package/lib/Button/ButtonInvisible.d.ts +2 -2
- package/lib/Button/ButtonOutline.d.ts +2 -2
- package/lib/Button/ButtonPrimary.d.ts +2 -2
- package/lib/Checkbox.d.ts +1 -1
- package/lib/Checkbox.js +1 -1
- package/lib/CircleOcticon.d.ts +35 -35
- package/lib/Details.js +1 -1
- package/lib/Dialog.d.ts +37 -37
- package/lib/Dropdown.d.ts +6 -6
- package/lib/DropdownMenu/DropdownButton.d.ts +6 -3
- package/lib/FilterList.d.ts +1 -1
- package/lib/FilteredActionList/FilteredActionList.js +1 -1
- package/lib/Flex.js +1 -1
- package/lib/LabelGroup.js +1 -1
- package/lib/Overlay.js +1 -1
- package/lib/Pagination/Pagination.js +2 -2
- package/lib/Position.d.ts +4 -4
- package/lib/Position.js +1 -1
- package/lib/Radio.d.ts +38 -0
- package/lib/Radio.js +55 -0
- package/lib/SelectMenu/SelectMenu.d.ts +11 -10
- package/lib/SelectMenu/SelectMenu.js +1 -1
- package/lib/SelectMenu/SelectMenuFilter.js +1 -1
- package/lib/SelectMenu/SelectMenuFooter.js +1 -1
- package/lib/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib/SelectMenu/SelectMenuItem.js +1 -1
- package/lib/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib/SelectMenu/SelectMenuTab.js +1 -1
- package/lib/SelectMenu/SelectMenuTabPanel.js +1 -1
- package/lib/SelectMenu/SelectMenuTabs.js +1 -1
- package/lib/StateLabel.js +1 -1
- package/lib/StyledOcticon.js +1 -1
- package/lib/SubNav.js +3 -3
- package/lib/TextInputWithTokens.d.ts +2 -1
- package/lib/ThemeProvider.d.ts +1 -0
- package/lib/ThemeProvider.js +17 -4
- package/lib/Timeline.js +4 -4
- package/lib/Token/AvatarToken.d.ts +1 -1
- package/lib/Token/AvatarToken.js +1 -1
- package/lib/Token/IssueLabelToken.d.ts +1 -1
- package/lib/Token/Token.d.ts +1 -1
- package/lib/Token/TokenBase.js +1 -1
- package/lib/Tooltip.js +1 -1
- package/lib/UnderlineNav.js +2 -2
- package/lib/__tests__/Radio.test.d.ts +2 -0
- package/lib/__tests__/Radio.test.js +202 -0
- package/lib/__tests__/ThemeProvider.test.js +114 -0
- package/lib/drafts.d.ts +1 -0
- package/lib/drafts.js +13 -0
- package/lib/hooks/index.d.ts +1 -0
- package/lib/hooks/index.js +9 -1
- package/lib/index.d.ts +2 -0
- package/lib/index.js +8 -0
- package/lib/stories/ActionList.stories.js +3 -3
- package/lib/stories/ActionList2.stories.js +1 -1
- package/lib/stories/ActionMenu2.stories.js +455 -0
- package/lib/stories/Checkbox.stories.js +4 -4
- package/lib/stories/Radio.stories.js +146 -0
- package/lib/stories/ThemeProvider.stories.js +1 -5
- package/lib/stories/useFocusTrap.stories.js +1 -11
- package/lib/stories/useFocusZone.stories.js +2 -6
- package/lib-esm/ActionList/Header.js +1 -1
- package/lib-esm/ActionList/Item.js +10 -10
- package/lib-esm/ActionList/List.js +1 -1
- package/lib-esm/ActionList2/ActionListContainerContext.d.ts +10 -0
- package/lib-esm/ActionList2/ActionListContainerContext.js +3 -0
- package/lib-esm/ActionList2/Divider.d.ts +3 -2
- package/lib-esm/ActionList2/Divider.js +8 -5
- package/lib-esm/ActionList2/Item.js +20 -8
- package/lib-esm/ActionList2/List.js +10 -2
- package/lib-esm/ActionList2/Selection.js +9 -0
- package/lib-esm/ActionList2/index.d.ts +1 -2
- package/lib-esm/ActionMenu2.d.ts +317 -0
- package/lib-esm/ActionMenu2.js +100 -0
- package/lib-esm/Autocomplete/Autocomplete.d.ts +2 -1
- package/lib-esm/Autocomplete/AutocompleteInput.d.ts +2 -1
- package/lib-esm/BaseStyles.js +2 -20
- package/lib-esm/BorderBox.js +1 -1
- package/lib-esm/Box.js +1 -1
- package/lib-esm/BranchName.js +1 -1
- package/lib-esm/Breadcrumbs.js +3 -3
- package/lib-esm/Button/Button.d.ts +2 -2
- package/lib-esm/Button/Button.js +1 -1
- package/lib-esm/Button/ButtonClose.d.ts +2 -2
- package/lib-esm/Button/ButtonDanger.d.ts +2 -2
- package/lib-esm/Button/ButtonGroup.js +1 -1
- package/lib-esm/Button/ButtonInvisible.d.ts +2 -2
- package/lib-esm/Button/ButtonOutline.d.ts +2 -2
- package/lib-esm/Button/ButtonPrimary.d.ts +2 -2
- package/lib-esm/Checkbox.d.ts +1 -1
- package/lib-esm/Checkbox.js +1 -1
- package/lib-esm/CircleOcticon.d.ts +35 -35
- package/lib-esm/Details.js +1 -1
- package/lib-esm/Dialog.d.ts +37 -37
- package/lib-esm/Dropdown.d.ts +6 -6
- package/lib-esm/DropdownMenu/DropdownButton.d.ts +6 -3
- package/lib-esm/FilterList.d.ts +1 -1
- package/lib-esm/FilteredActionList/FilteredActionList.js +1 -1
- package/lib-esm/Flex.js +1 -1
- package/lib-esm/LabelGroup.js +1 -1
- package/lib-esm/Overlay.js +1 -1
- package/lib-esm/Pagination/Pagination.js +2 -2
- package/lib-esm/Position.d.ts +4 -4
- package/lib-esm/Position.js +1 -1
- package/lib-esm/Radio.d.ts +38 -0
- package/lib-esm/Radio.js +40 -0
- package/lib-esm/SelectMenu/SelectMenu.d.ts +11 -10
- package/lib-esm/SelectMenu/SelectMenu.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuFilter.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuFooter.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuItem.d.ts +1 -1
- package/lib-esm/SelectMenu/SelectMenuItem.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuModal.d.ts +1 -1
- package/lib-esm/SelectMenu/SelectMenuTab.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuTabPanel.js +1 -1
- package/lib-esm/SelectMenu/SelectMenuTabs.js +1 -1
- package/lib-esm/StateLabel.js +1 -1
- package/lib-esm/StyledOcticon.js +1 -1
- package/lib-esm/SubNav.js +3 -3
- package/lib-esm/TextInputWithTokens.d.ts +2 -1
- package/lib-esm/ThemeProvider.d.ts +1 -0
- package/lib-esm/ThemeProvider.js +17 -4
- package/lib-esm/Timeline.js +4 -4
- package/lib-esm/Token/AvatarToken.d.ts +1 -1
- package/lib-esm/Token/AvatarToken.js +1 -1
- package/lib-esm/Token/IssueLabelToken.d.ts +1 -1
- package/lib-esm/Token/Token.d.ts +1 -1
- package/lib-esm/Token/TokenBase.js +1 -1
- package/lib-esm/Tooltip.js +1 -1
- package/lib-esm/UnderlineNav.js +2 -2
- package/lib-esm/__tests__/Radio.test.d.ts +2 -0
- package/lib-esm/__tests__/Radio.test.js +183 -0
- package/lib-esm/__tests__/ThemeProvider.test.js +114 -0
- package/lib-esm/drafts.d.ts +1 -0
- package/lib-esm/drafts.js +2 -1
- package/lib-esm/hooks/index.d.ts +1 -0
- package/lib-esm/hooks/index.js +2 -1
- package/lib-esm/index.d.ts +2 -0
- package/lib-esm/index.js +1 -0
- package/lib-esm/stories/ActionList.stories.js +3 -3
- package/lib-esm/stories/ActionList2.stories.js +1 -1
- package/lib-esm/stories/ActionMenu2.stories.js +393 -0
- package/lib-esm/stories/Checkbox.stories.js +5 -5
- package/lib-esm/stories/Radio.stories.js +121 -0
- package/lib-esm/stories/ThemeProvider.stories.js +1 -5
- package/lib-esm/stories/useFocusTrap.stories.js +1 -11
- package/lib-esm/stories/useFocusZone.stories.js +2 -6
- package/package-lock.json +1366 -3544
- package/package.json +14 -8
- package/script/component-status-project/build.ts +100 -0
- package/script/component-status-project/deploy.rb +142 -0
- package/src/ActionList2/ActionListContainerContext.tsx +14 -0
- package/src/ActionList2/Divider.tsx +13 -8
- package/src/ActionList2/Item.tsx +14 -6
- package/src/ActionList2/List.tsx +6 -2
- package/src/ActionList2/Selection.tsx +9 -0
- package/src/ActionMenu2.tsx +116 -0
- package/src/BranchName.tsx +2 -1
- package/src/Radio.tsx +76 -0
- package/src/ThemeProvider.tsx +22 -5
- package/src/__tests__/Radio.test.tsx +174 -0
- package/src/__tests__/ThemeProvider.test.tsx +116 -0
- package/src/__tests__/__snapshots__/BranchName.test.tsx.snap +3 -1
- package/src/__tests__/__snapshots__/Radio.test.tsx.snap +16 -0
- package/src/drafts.ts +1 -0
- package/src/hooks/index.ts +1 -0
- package/src/index.ts +2 -0
- package/src/stories/ActionMenu2.stories.tsx +605 -0
- package/src/stories/Checkbox.stories.tsx +1 -3
- package/src/stories/Radio.stories.tsx +126 -0
- package/stats.html +1 -1
- package/tsconfig.build.json +1 -1
- package/tsconfig.json +1 -1
- package/docs/content/ActionList2.mdx +0 -379
- package/docs/content/BranchName.md +0 -39
- package/docs/content/Link.md +0 -29
- package/docs/content/TextInput.md +0 -42
@@ -6,7 +6,7 @@ declare type SelectMenuInternalProps = {
|
|
6
6
|
initialTab?: string;
|
7
7
|
as?: React.ReactElement;
|
8
8
|
} & ComponentProps<typeof StyledSelectMenu>;
|
9
|
-
declare const SelectMenu: React.ForwardRefExoticComponent<Pick<SelectMenuInternalProps, "
|
9
|
+
declare const SelectMenu: React.ForwardRefExoticComponent<Pick<SelectMenuInternalProps, "theme" | "sx" | "key" | "as" | keyof React.DetailsHTMLAttributes<HTMLElement> | "initialTab"> & React.RefAttributes<HTMLElement>>;
|
10
10
|
export declare type SelectMenuProps = ComponentProps<typeof SelectMenu>;
|
11
11
|
export type { SelectMenuDividerProps } from './SelectMenuDivider';
|
12
12
|
export type { SelectMenuFilterProps } from './SelectMenuFilter';
|
@@ -19,7 +19,7 @@ export type { SelectMenuModalProps } from './SelectMenuModal';
|
|
19
19
|
export type { SelectMenuTabProps } from './SelectMenuTab';
|
20
20
|
export type { SelectMenuTabPanelProps } from './SelectMenuTabPanel';
|
21
21
|
export type { SelectMenuTabsProps } from './SelectMenuTabs';
|
22
|
-
declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalProps, "
|
22
|
+
declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalProps, "theme" | "sx" | "key" | "as" | keyof React.DetailsHTMLAttributes<HTMLElement> | "initialTab"> & React.RefAttributes<HTMLElement>> & {
|
23
23
|
MenuContext: React.Context<{
|
24
24
|
selectedTab?: string | undefined;
|
25
25
|
setSelectedTab?: React.Dispatch<React.SetStateAction<string>> | undefined;
|
@@ -34,6 +34,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
|
|
34
34
|
} & Pick<Omit<Pick<{
|
35
35
|
[x: string]: any;
|
36
36
|
[x: number]: any;
|
37
|
+
[x: symbol]: any;
|
37
38
|
} & {
|
38
39
|
theme?: any;
|
39
40
|
} & {
|
@@ -46,6 +47,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
|
|
46
47
|
}> | undefined;
|
47
48
|
} & Pick<{
|
48
49
|
color?: string | undefined;
|
50
|
+
property?: string | undefined;
|
49
51
|
maxWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
50
52
|
minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
51
53
|
translate?: "yes" | "no" | undefined;
|
@@ -81,7 +83,6 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
|
|
81
83
|
datatype?: string | undefined;
|
82
84
|
inlist?: any;
|
83
85
|
prefix?: string | undefined;
|
84
|
-
property?: string | undefined;
|
85
86
|
resource?: string | undefined;
|
86
87
|
typeof?: string | undefined;
|
87
88
|
vocab?: string | undefined;
|
@@ -322,6 +323,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
|
|
322
323
|
selected?: boolean | undefined;
|
323
324
|
} & {
|
324
325
|
color?: string | undefined;
|
326
|
+
property?: string | undefined;
|
325
327
|
translate?: "yes" | "no" | undefined;
|
326
328
|
hidden?: boolean | undefined;
|
327
329
|
children?: React.ReactNode;
|
@@ -353,7 +355,6 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
|
|
353
355
|
datatype?: string | undefined;
|
354
356
|
inlist?: any;
|
355
357
|
prefix?: string | undefined;
|
356
|
-
property?: string | undefined;
|
357
358
|
resource?: string | undefined;
|
358
359
|
typeof?: string | undefined;
|
359
360
|
vocab?: string | undefined;
|
@@ -592,11 +593,12 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
|
|
592
593
|
referrerPolicy?: React.HTMLAttributeReferrerPolicy | undefined;
|
593
594
|
} & {
|
594
595
|
theme?: any;
|
595
|
-
}, "color" | "translate" | "hidden" | "children" | "theme" | "slot" | "style" | "title" | "role" | "sx" | "type" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "
|
596
|
+
}, "color" | "property" | "translate" | "hidden" | "children" | "theme" | "slot" | "style" | "title" | "role" | "sx" | "type" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "as" | "selected" | "download" | "href" | "hrefLang" | "media" | "ping" | "rel" | "target" | "referrerPolicy"> & React.RefAttributes<HTMLAnchorElement>>;
|
596
597
|
Modal: React.ForwardRefExoticComponent<Pick<Pick<{
|
597
598
|
filter?: boolean | undefined;
|
598
599
|
} & import("styled-system").WidthProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, import("csstype").Property.Width<import("styled-system").TLengthStyledSystem>>, "width"> & {
|
599
600
|
color?: string | undefined;
|
601
|
+
property?: string | undefined;
|
600
602
|
translate?: "yes" | "no" | undefined;
|
601
603
|
hidden?: boolean | undefined;
|
602
604
|
children?: React.ReactNode;
|
@@ -627,7 +629,6 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
|
|
627
629
|
datatype?: string | undefined;
|
628
630
|
inlist?: any;
|
629
631
|
prefix?: string | undefined;
|
630
|
-
property?: string | undefined;
|
631
632
|
resource?: string | undefined;
|
632
633
|
typeof?: string | undefined;
|
633
634
|
vocab?: string | undefined;
|
@@ -859,10 +860,11 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
|
|
859
860
|
align?: "left" | "right" | undefined;
|
860
861
|
} & {
|
861
862
|
theme?: any;
|
862
|
-
}, "
|
863
|
+
}, "width" | "theme" | "sx" | "key" | keyof React.HTMLAttributes<HTMLDivElement> | "align"> & React.RefAttributes<HTMLDivElement>>;
|
863
864
|
Tabs: {
|
864
865
|
({ children, ...rest }: {
|
865
866
|
color?: string | undefined;
|
867
|
+
property?: string | undefined;
|
866
868
|
translate?: "yes" | "no" | undefined;
|
867
869
|
hidden?: boolean | undefined;
|
868
870
|
children?: React.ReactNode;
|
@@ -893,7 +895,6 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
|
|
893
895
|
datatype?: string | undefined;
|
894
896
|
inlist?: any;
|
895
897
|
prefix?: string | undefined;
|
896
|
-
property?: string | undefined;
|
897
898
|
resource?: string | undefined;
|
898
899
|
typeof?: string | undefined;
|
899
900
|
vocab?: string | undefined;
|
@@ -1138,6 +1139,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
|
|
1138
1139
|
Header: {
|
1139
1140
|
({ children, theme, ...rest }: {
|
1140
1141
|
color?: string | undefined;
|
1142
|
+
property?: string | undefined;
|
1141
1143
|
translate?: "yes" | "no" | undefined;
|
1142
1144
|
hidden?: boolean | undefined;
|
1143
1145
|
children?: React.ReactNode;
|
@@ -1168,7 +1170,6 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
|
|
1168
1170
|
datatype?: string | undefined;
|
1169
1171
|
inlist?: any;
|
1170
1172
|
prefix?: string | undefined;
|
1171
|
-
property?: string | undefined;
|
1172
1173
|
resource?: string | undefined;
|
1173
1174
|
typeof?: string | undefined;
|
1174
1175
|
vocab?: string | undefined;
|
@@ -1404,6 +1405,7 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
|
|
1404
1405
|
};
|
1405
1406
|
LoadingAnimation: (props: {
|
1406
1407
|
color?: string | undefined;
|
1408
|
+
property?: string | undefined;
|
1407
1409
|
translate?: "yes" | "no" | undefined;
|
1408
1410
|
hidden?: boolean | undefined;
|
1409
1411
|
children?: React.ReactNode;
|
@@ -1434,7 +1436,6 @@ declare const _default: React.ForwardRefExoticComponent<Pick<SelectMenuInternalP
|
|
1434
1436
|
datatype?: string | undefined;
|
1435
1437
|
inlist?: any;
|
1436
1438
|
prefix?: string | undefined;
|
1437
|
-
property?: string | undefined;
|
1438
1439
|
resource?: string | undefined;
|
1439
1440
|
typeof?: string | undefined;
|
1440
1441
|
vocab?: string | undefined;
|
@@ -62,7 +62,7 @@ const wrapperStyles = `
|
|
62
62
|
|
63
63
|
const StyledSelectMenu = _styledComponents.default.details.withConfig({
|
64
64
|
displayName: "SelectMenu__StyledSelectMenu",
|
65
|
-
componentId: "i7h45b-0"
|
65
|
+
componentId: "sc-i7h45b-0"
|
66
66
|
})(["", " ", ";"], wrapperStyles, _sx.default);
|
67
67
|
|
68
68
|
// 'as' is spread out because we don't want users to be able to change the tag.
|
@@ -27,7 +27,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
27
27
|
|
28
28
|
const StyledForm = _styledComponents.default.form.withConfig({
|
29
29
|
displayName: "SelectMenuFilter__StyledForm",
|
30
|
-
componentId: "s7ktlh-0"
|
30
|
+
componentId: "sc-s7ktlh-0"
|
31
31
|
})(["padding:", ";margin:0;border-bottom:", " solid ", ";background-color:", ";@media (min-width:", "){padding:", ";}", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('borderWidths.1'), (0, _constants.get)('colors.border.muted'), (0, _constants.get)('colors.canvas.overlay'), (0, _constants.get)('breakpoints.0'), (0, _constants.get)('space.2'), _sx.default);
|
32
32
|
|
33
33
|
const SelectMenuFilter = /*#__PURE__*/(0, _react.forwardRef)(({
|
@@ -21,7 +21,7 @@ const footerStyles = (0, _styledComponents.css)(["margin-top:-1px;padding:", " "
|
|
21
21
|
|
22
22
|
const SelectMenuFooter = _styledComponents.default.footer.withConfig({
|
23
23
|
displayName: "SelectMenuFooter",
|
24
|
-
componentId: "rkvco1-0"
|
24
|
+
componentId: "sc-rkvco1-0"
|
25
25
|
})(["", " ", ";"], footerStyles, _sx.default);
|
26
26
|
|
27
27
|
SelectMenuFooter.displayName = 'SelectMenu.Footer';
|
@@ -9,6 +9,6 @@ declare type SelectMenuItemInteralProps = {
|
|
9
9
|
as?: React.ElementType;
|
10
10
|
selected?: boolean;
|
11
11
|
} & ComponentProps<typeof StyledItem>;
|
12
|
-
declare const SelectMenuItem: React.ForwardRefExoticComponent<Pick<SelectMenuItemInteralProps, "color" | "translate" | "hidden" | "children" | "theme" | "slot" | "style" | "title" | "role" | "sx" | "type" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "
|
12
|
+
declare const SelectMenuItem: React.ForwardRefExoticComponent<Pick<SelectMenuItemInteralProps, "color" | "property" | "translate" | "hidden" | "children" | "theme" | "slot" | "style" | "title" | "role" | "sx" | "type" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "as" | "selected" | "download" | "href" | "hrefLang" | "media" | "ping" | "rel" | "target" | "referrerPolicy"> & React.RefAttributes<HTMLAnchorElement>>;
|
13
13
|
export declare type SelectMenuItemProps = ComponentProps<typeof SelectMenuItem>;
|
14
14
|
export default SelectMenuItem;
|
@@ -34,7 +34,7 @@ const StyledItem = _styledComponents.default.a.attrs(() => ({
|
|
34
34
|
role: 'menuitemcheckbox'
|
35
35
|
})).withConfig({
|
36
36
|
displayName: "SelectMenuItem__StyledItem",
|
37
|
-
componentId: "gjymba-0"
|
37
|
+
componentId: "sc-gjymba-0"
|
38
38
|
})(["", " ", ";"], listItemStyles, _sx.default);
|
39
39
|
|
40
40
|
const SelectMenuItem = /*#__PURE__*/(0, _react.forwardRef)(({
|
@@ -9,6 +9,6 @@ declare const ModalWrapper: import("styled-components").StyledComponent<"div", a
|
|
9
9
|
align?: "left" | "right" | undefined;
|
10
10
|
} & SxProp, never>;
|
11
11
|
declare type SelectMenuModalInternalProps = Pick<StyledModalProps, 'width'> & ComponentProps<typeof ModalWrapper>;
|
12
|
-
declare const SelectMenuModal: React.ForwardRefExoticComponent<Pick<SelectMenuModalInternalProps, "
|
12
|
+
declare const SelectMenuModal: React.ForwardRefExoticComponent<Pick<SelectMenuModalInternalProps, "width" | "theme" | "sx" | "key" | keyof React.HTMLAttributes<HTMLDivElement> | "align"> & React.RefAttributes<HTMLDivElement>>;
|
13
13
|
export declare type SelectMenuModalProps = ComponentProps<typeof SelectMenuModal>;
|
14
14
|
export default SelectMenuModal;
|
@@ -29,7 +29,7 @@ const tabStyles = (0, _styledComponents.css)(["flex:1;padding:", " ", ";font-siz
|
|
29
29
|
|
30
30
|
const StyledTab = _styledComponents.default.button.withConfig({
|
31
31
|
displayName: "SelectMenuTab__StyledTab",
|
32
|
-
componentId: "ga32sz-0"
|
32
|
+
componentId: "sc-ga32sz-0"
|
33
33
|
})(["", " ", ";"], tabStyles, _sx.default);
|
34
34
|
|
35
35
|
const SelectMenuTab = ({
|
@@ -27,7 +27,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
27
27
|
|
28
28
|
const TabPanelBase = _styledComponents.default.div.withConfig({
|
29
29
|
displayName: "SelectMenuTabPanel__TabPanelBase",
|
30
|
-
componentId: "ck0ipe-0"
|
30
|
+
componentId: "sc-ck0ipe-0"
|
31
31
|
})(["border-top:", " solid ", ";", ";"], (0, _constants.get)('borderWidths.1'), (0, _constants.get)('colors.border.muted'), _sx.default);
|
32
32
|
|
33
33
|
const TabPanel = ({
|
@@ -25,7 +25,7 @@ const tabWrapperStyles = (0, _styledComponents.css)(["display:flex;flex-shrink:0
|
|
25
25
|
|
26
26
|
const SelectMenuTabsBase = _styledComponents.default.div.withConfig({
|
27
27
|
displayName: "SelectMenuTabs__SelectMenuTabsBase",
|
28
|
-
componentId: "kgg21o-0"
|
28
|
+
componentId: "sc-kgg21o-0"
|
29
29
|
})(["", " ", ";"], tabWrapperStyles, _sx.default);
|
30
30
|
|
31
31
|
const SelectMenuTabs = ({
|
package/lib/StateLabel.js
CHANGED
@@ -83,7 +83,7 @@ const sizeVariants = (0, _styledSystem.variant)({
|
|
83
83
|
|
84
84
|
const StateLabelBase = _styledComponents.default.span.withConfig({
|
85
85
|
displayName: "StateLabel__StateLabelBase",
|
86
|
-
componentId: "k4pd9e-0"
|
86
|
+
componentId: "sc-k4pd9e-0"
|
87
87
|
})(["display:inline-flex;align-items:center;font-weight:", ";line-height:16px;color:", ";text-align:center;border-radius:", ";", ";", ";", ";"], (0, _constants.get)('fontWeights.bold'), (0, _constants.get)('colors.canvas.default'), (0, _constants.get)('radii.3'), colorVariants, sizeVariants, _sx.default);
|
88
88
|
|
89
89
|
function StateLabel({
|
package/lib/StyledOcticon.js
CHANGED
@@ -23,7 +23,7 @@ function Octicon({
|
|
23
23
|
Octicon.displayName = "Octicon";
|
24
24
|
const StyledOcticon = (0, _styledComponents.default)(Octicon).withConfig({
|
25
25
|
displayName: "StyledOcticon",
|
26
|
-
componentId: "uhnt7w-0"
|
26
|
+
componentId: "sc-uhnt7w-0"
|
27
27
|
})(["", ""], _sx.default);
|
28
28
|
StyledOcticon.defaultProps = {
|
29
29
|
size: 16
|
package/lib/SubNav.js
CHANGED
@@ -24,7 +24,7 @@ const SELECTED_CLASS = 'selected';
|
|
24
24
|
|
25
25
|
const SubNavBase = _styledComponents.default.nav.withConfig({
|
26
26
|
displayName: "SubNav__SubNavBase",
|
27
|
-
componentId: "f7w0xa-0"
|
27
|
+
componentId: "sc-f7w0xa-0"
|
28
28
|
})(["display:flex;justify-content:space-between;.SubNav-body{display:flex;margin-bottom:-1px;> *{margin-left:", ";}> *:first-child{margin-left:0;}}.SubNav-actions{align-self:center;}", ";"], (0, _constants.get)('space.2'), _sx.default);
|
29
29
|
|
30
30
|
function SubNav({
|
@@ -49,7 +49,7 @@ SubNav.displayName = "SubNav";
|
|
49
49
|
|
50
50
|
const SubNavLinks = _styledComponents.default.div.withConfig({
|
51
51
|
displayName: "SubNav__SubNavLinks",
|
52
|
-
componentId: "f7w0xa-1"
|
52
|
+
componentId: "sc-f7w0xa-1"
|
53
53
|
})(["display:flex;", ";"], _sx.default);
|
54
54
|
|
55
55
|
const SubNavLink = _styledComponents.default.a.attrs(props => ({
|
@@ -57,7 +57,7 @@ const SubNavLink = _styledComponents.default.a.attrs(props => ({
|
|
57
57
|
className: (0, _classnames.default)(ITEM_CLASS, props.selected && SELECTED_CLASS, props.className)
|
58
58
|
})).withConfig({
|
59
59
|
displayName: "SubNav__SubNavLink",
|
60
|
-
componentId: "f7w0xa-2"
|
60
|
+
componentId: "sc-f7w0xa-2"
|
61
61
|
})(["padding-left:", ";padding-right:", ";font-weight:", ";font-size:", ";line-height:20px;min-height:34px;color:", ";text-align:center;text-decoration:none;border-top:1px solid ", ";border-bottom:1px solid ", ";border-right:1px solid ", ";display:flex;align-items:center;&:first-of-type{border-top-left-radius:", ";border-bottom-left-radius:", ";border-left:1px solid ", ";}&:last-of-type{border-top-right-radius:", ";border-bottom-right-radius:", ";}&:hover,&:focus{text-decoration:none;background-color:", ";transition:0.2s ease;.SubNav-octicon{color:", ";}}&.selected{color:", ";background-color:", ";border-color:", ";.SubNav-octicon{color:", ";}}", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('space.3'), (0, _constants.get)('fontWeights.semibold'), (0, _constants.get)('fontSizes.1'), (0, _constants.get)('colors.fg.default'), (0, _constants.get)('colors.border.default'), (0, _constants.get)('colors.border.default'), (0, _constants.get)('colors.border.default'), (0, _constants.get)('radii.2'), (0, _constants.get)('radii.2'), (0, _constants.get)('colors.border.default'), (0, _constants.get)('radii.2'), (0, _constants.get)('radii.2'), (0, _constants.get)('colors.canvas.subtle'), (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('colors.fg.onEmphasis'), (0, _constants.get)('colors.accent.emphasis'), (0, _constants.get)('colors.accent.emphasis'), (0, _constants.get)('colors.fg.onEmphasis'), _sx.default);
|
62
62
|
|
63
63
|
SubNavLink.displayName = 'SubNav.Link';
|
@@ -39,6 +39,7 @@ declare const TextInputWithTokens: React.ForwardRefExoticComponent<Pick<{
|
|
39
39
|
} & Pick<Omit<Pick<{
|
40
40
|
[x: string]: any;
|
41
41
|
[x: number]: any;
|
42
|
+
[x: symbol]: any;
|
42
43
|
} & {
|
43
44
|
theme?: any;
|
44
45
|
} & {
|
@@ -51,6 +52,7 @@ declare const TextInputWithTokens: React.ForwardRefExoticComponent<Pick<{
|
|
51
52
|
}> | undefined;
|
52
53
|
} & Pick<{
|
53
54
|
color?: string | undefined;
|
55
|
+
property?: string | undefined;
|
54
56
|
maxWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MaxWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
55
57
|
minWidth?: import("styled-system").ResponsiveValue<import("csstype").Property.MinWidth<import("styled-system").TLengthStyledSystem>, Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>> | undefined;
|
56
58
|
translate?: "yes" | "no" | undefined;
|
@@ -86,7 +88,6 @@ declare const TextInputWithTokens: React.ForwardRefExoticComponent<Pick<{
|
|
86
88
|
datatype?: string | undefined;
|
87
89
|
inlist?: any;
|
88
90
|
prefix?: string | undefined;
|
89
|
-
property?: string | undefined;
|
90
91
|
resource?: string | undefined;
|
91
92
|
typeof?: string | undefined;
|
92
93
|
vocab?: string | undefined;
|
package/lib/ThemeProvider.d.ts
CHANGED
@@ -16,6 +16,7 @@ export declare function useTheme(): {
|
|
16
16
|
colorScheme?: string | undefined;
|
17
17
|
colorMode?: ColorModeWithAuto | undefined;
|
18
18
|
resolvedColorMode?: ColorMode | undefined;
|
19
|
+
resolvedColorScheme?: string | undefined;
|
19
20
|
dayScheme?: string | undefined;
|
20
21
|
nightScheme?: string | undefined;
|
21
22
|
setColorMode: React.Dispatch<React.SetStateAction<ColorModeWithAuto>>;
|
package/lib/ThemeProvider.js
CHANGED
@@ -53,7 +53,10 @@ const ThemeProvider = ({
|
|
53
53
|
const resolvedColorMode = resolveColorMode(colorMode, systemColorMode);
|
54
54
|
const colorScheme = chooseColorScheme(resolvedColorMode, dayScheme, nightScheme);
|
55
55
|
|
56
|
-
const
|
56
|
+
const {
|
57
|
+
resolvedTheme,
|
58
|
+
resolvedColorScheme
|
59
|
+
} = _react.default.useMemo(() => applyColorScheme(theme, colorScheme), [theme, colorScheme]); // Update state if props change
|
57
60
|
|
58
61
|
|
59
62
|
_react.default.useEffect(() => {
|
@@ -80,6 +83,7 @@ const ThemeProvider = ({
|
|
80
83
|
colorScheme,
|
81
84
|
colorMode,
|
82
85
|
resolvedColorMode,
|
86
|
+
resolvedColorScheme,
|
83
87
|
dayScheme,
|
84
88
|
nightScheme,
|
85
89
|
setColorMode,
|
@@ -175,7 +179,10 @@ function chooseColorScheme(colorMode, dayScheme, nightScheme) {
|
|
175
179
|
|
176
180
|
function applyColorScheme(theme, colorScheme) {
|
177
181
|
if (!theme.colorSchemes) {
|
178
|
-
return
|
182
|
+
return {
|
183
|
+
resolvedTheme: theme,
|
184
|
+
resolvedColorScheme: undefined
|
185
|
+
};
|
179
186
|
}
|
180
187
|
|
181
188
|
if (!theme.colorSchemes[colorScheme]) {
|
@@ -183,10 +190,16 @@ function applyColorScheme(theme, colorScheme) {
|
|
183
190
|
console.error(`\`${colorScheme}\` scheme not defined in \`theme.colorSchemes\``); // Apply the first defined color scheme
|
184
191
|
|
185
192
|
const defaultColorScheme = Object.keys(theme.colorSchemes)[0];
|
186
|
-
return
|
193
|
+
return {
|
194
|
+
resolvedTheme: (0, _deepmerge.default)(theme, theme.colorSchemes[defaultColorScheme]),
|
195
|
+
resolvedColorScheme: defaultColorScheme
|
196
|
+
};
|
187
197
|
}
|
188
198
|
|
189
|
-
return
|
199
|
+
return {
|
200
|
+
resolvedTheme: (0, _deepmerge.default)(theme, theme.colorSchemes[colorScheme]),
|
201
|
+
resolvedColorScheme: colorScheme
|
202
|
+
};
|
190
203
|
}
|
191
204
|
|
192
205
|
var _default = ThemeProvider;
|
package/lib/Timeline.js
CHANGED
@@ -25,14 +25,14 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
25
25
|
|
26
26
|
const Timeline = _styledComponents.default.div.withConfig({
|
27
27
|
displayName: "Timeline",
|
28
|
-
componentId: "c4dq2e-0"
|
28
|
+
componentId: "sc-c4dq2e-0"
|
29
29
|
})(["display:flex;flex-direction:column;", " ", ";"], props => props.clipSidebar && (0, _styledComponents.css)([".Timeline-Item:first-child{padding-top:0;}.Timeline-Item:last-child{padding-bottom:0;}"]), _sx.default);
|
30
30
|
|
31
31
|
const TimelineItem = _styledComponents.default.div.attrs(props => ({
|
32
32
|
className: (0, _classnames.default)('Timeline-Item', props.className)
|
33
33
|
})).withConfig({
|
34
34
|
displayName: "Timeline__TimelineItem",
|
35
|
-
componentId: "c4dq2e-1"
|
35
|
+
componentId: "sc-c4dq2e-1"
|
36
36
|
})(["display:flex;position:relative;padding:", " 0;margin-left:", ";&::before{position:absolute;top:0;bottom:0;left:0;display:block;width:2px;content:'';background-color:", ";}", " ", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('space.3'), (0, _constants.get)('colors.border.muted'), props => props.condensed && (0, _styledComponents.css)(["padding-top:", ";padding-bottom:0;&:last-child{padding-bottom:", ";}.TimelineItem-Badge{height:16px;margin-top:", ";margin-bottom:", ";color:", ";background-color:", ";border:0;}"], (0, _constants.get)('space.1'), (0, _constants.get)('space.3'), (0, _constants.get)('space.2'), (0, _constants.get)('space.2'), (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('colors.canvas.default')), _sx.default);
|
37
37
|
|
38
38
|
const TimelineBadge = props => {
|
@@ -64,12 +64,12 @@ TimelineBadge.displayName = "TimelineBadge";
|
|
64
64
|
|
65
65
|
const TimelineBody = _styledComponents.default.div.withConfig({
|
66
66
|
displayName: "Timeline__TimelineBody",
|
67
|
-
componentId: "c4dq2e-2"
|
67
|
+
componentId: "sc-c4dq2e-2"
|
68
68
|
})(["min-width:0;max-width:100%;margin-top:", ";color:", ";flex:auto;font-size:", ";", ";"], (0, _constants.get)('space.1'), (0, _constants.get)('colors.fg.muted'), (0, _constants.get)('fontSizes.1'), _sx.default);
|
69
69
|
|
70
70
|
const TimelineBreak = _styledComponents.default.div.withConfig({
|
71
71
|
displayName: "Timeline__TimelineBreak",
|
72
|
-
componentId: "c4dq2e-3"
|
72
|
+
componentId: "sc-c4dq2e-3"
|
73
73
|
})(["position:relative z-index:1;height:24px;margin:0;margin-bottom:-", ";margin-left:0;background-color:", ";border:0;border-top:", " solid ", ";", ";"], (0, _constants.get)('space.3'), (0, _constants.get)('colors.canvas.default'), (0, _constants.get)('space.1'), (0, _constants.get)('colors.border.default'), _sx.default);
|
74
74
|
|
75
75
|
TimelineItem.displayName = 'Timeline.Item';
|
@@ -3,5 +3,5 @@ import { TokenBaseProps } from './TokenBase';
|
|
3
3
|
export interface AvatarTokenProps extends TokenBaseProps {
|
4
4
|
avatarSrc: string;
|
5
5
|
}
|
6
|
-
declare const AvatarToken: React.ForwardRefExoticComponent<Pick<AvatarTokenProps, "default" | "muted" | "sizes" | "color" | "content" | "height" | "translate" | "width" | "hidden" | "children" | "value" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "start" | "size" | "wrap" | "open" | "list" | "multiple" | "role" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "
|
6
|
+
declare const AvatarToken: React.ForwardRefExoticComponent<Pick<AvatarTokenProps, "default" | "muted" | "sizes" | "color" | "property" | "content" | "height" | "translate" | "width" | "hidden" | "children" | "value" | "cite" | "data" | "form" | "label" | "slot" | "span" | "style" | "summary" | "title" | "pattern" | "text" | "start" | "size" | "wrap" | "open" | "list" | "multiple" | "role" | "type" | "name" | "key" | "defaultChecked" | "defaultValue" | "suppressContentEditableWarning" | "suppressHydrationWarning" | "accessKey" | "className" | "contentEditable" | "contextMenu" | "dir" | "draggable" | "id" | "lang" | "placeholder" | "spellCheck" | "tabIndex" | "radioGroup" | "about" | "datatype" | "inlist" | "prefix" | "resource" | "typeof" | "vocab" | "autoCapitalize" | "autoCorrect" | "autoSave" | "itemProp" | "itemScope" | "itemType" | "itemID" | "itemRef" | "results" | "security" | "unselectable" | "inputMode" | "is" | "aria-activedescendant" | "aria-atomic" | "aria-autocomplete" | "aria-busy" | "aria-checked" | "aria-colcount" | "aria-colindex" | "aria-colspan" | "aria-controls" | "aria-current" | "aria-describedby" | "aria-details" | "aria-disabled" | "aria-dropeffect" | "aria-errormessage" | "aria-expanded" | "aria-flowto" | "aria-grabbed" | "aria-haspopup" | "aria-hidden" | "aria-invalid" | "aria-keyshortcuts" | "aria-label" | "aria-labelledby" | "aria-level" | "aria-live" | "aria-modal" | "aria-multiline" | "aria-multiselectable" | "aria-orientation" | "aria-owns" | "aria-placeholder" | "aria-posinset" | "aria-pressed" | "aria-readonly" | "aria-relevant" | "aria-required" | "aria-roledescription" | "aria-rowcount" | "aria-rowindex" | "aria-rowspan" | "aria-selected" | "aria-setsize" | "aria-sort" | "aria-valuemax" | "aria-valuemin" | "aria-valuenow" | "aria-valuetext" | "dangerouslySetInnerHTML" | "onCopy" | "onCopyCapture" | "onCut" | "onCutCapture" | "onPaste" | "onPasteCapture" | "onCompositionEnd" | "onCompositionEndCapture" | "onCompositionStart" | "onCompositionStartCapture" | "onCompositionUpdate" | "onCompositionUpdateCapture" | "onFocus" | "onFocusCapture" | "onBlur" | "onBlurCapture" | "onChange" | "onChangeCapture" | "onBeforeInput" | "onBeforeInputCapture" | "onInput" | "onInputCapture" | "onReset" | "onResetCapture" | "onSubmit" | "onSubmitCapture" | "onInvalid" | "onInvalidCapture" | "onLoad" | "onLoadCapture" | "onError" | "onErrorCapture" | "onKeyDown" | "onKeyDownCapture" | "onKeyPress" | "onKeyPressCapture" | "onKeyUp" | "onKeyUpCapture" | "onAbort" | "onAbortCapture" | "onCanPlay" | "onCanPlayCapture" | "onCanPlayThrough" | "onCanPlayThroughCapture" | "onDurationChange" | "onDurationChangeCapture" | "onEmptied" | "onEmptiedCapture" | "onEncrypted" | "onEncryptedCapture" | "onEnded" | "onEndedCapture" | "onLoadedData" | "onLoadedDataCapture" | "onLoadedMetadata" | "onLoadedMetadataCapture" | "onLoadStart" | "onLoadStartCapture" | "onPause" | "onPauseCapture" | "onPlay" | "onPlayCapture" | "onPlaying" | "onPlayingCapture" | "onProgress" | "onProgressCapture" | "onRateChange" | "onRateChangeCapture" | "onSeeked" | "onSeekedCapture" | "onSeeking" | "onSeekingCapture" | "onStalled" | "onStalledCapture" | "onSuspend" | "onSuspendCapture" | "onTimeUpdate" | "onTimeUpdateCapture" | "onVolumeChange" | "onVolumeChangeCapture" | "onWaiting" | "onWaitingCapture" | "onAuxClick" | "onAuxClickCapture" | "onClick" | "onClickCapture" | "onContextMenu" | "onContextMenuCapture" | "onDoubleClick" | "onDoubleClickCapture" | "onDrag" | "onDragCapture" | "onDragEnd" | "onDragEndCapture" | "onDragEnter" | "onDragEnterCapture" | "onDragExit" | "onDragExitCapture" | "onDragLeave" | "onDragLeaveCapture" | "onDragOver" | "onDragOverCapture" | "onDragStart" | "onDragStartCapture" | "onDrop" | "onDropCapture" | "onMouseDown" | "onMouseDownCapture" | "onMouseEnter" | "onMouseLeave" | "onMouseMove" | "onMouseMoveCapture" | "onMouseOut" | "onMouseOutCapture" | "onMouseOver" | "onMouseOverCapture" | "onMouseUp" | "onMouseUpCapture" | "onSelect" | "onSelectCapture" | "onTouchCancel" | "onTouchCancelCapture" | "onTouchEnd" | "onTouchEndCapture" | "onTouchMove" | "onTouchMoveCapture" | "onTouchStart" | "onTouchStartCapture" | "onPointerDown" | "onPointerDownCapture" | "onPointerMove" | "onPointerMoveCapture" | "onPointerUp" | "onPointerUpCapture" | "onPointerCancel" | "onPointerCancelCapture" | "onPointerEnter" | "onPointerEnterCapture" | "onPointerLeave" | "onPointerLeaveCapture" | "onPointerOver" | "onPointerOverCapture" | "onPointerOut" | "onPointerOutCapture" | "onGotPointerCapture" | "onGotPointerCaptureCapture" | "onLostPointerCapture" | "onLostPointerCaptureCapture" | "onScroll" | "onScrollCapture" | "onWheel" | "onWheelCapture" | "onAnimationStart" | "onAnimationStartCapture" | "onAnimationEnd" | "onAnimationEndCapture" | "onAnimationIteration" | "onAnimationIterationCapture" | "onTransitionEnd" | "onTransitionEndCapture" | "css" | "disabled" | "as" | "step" | "selected" | "download" | "href" | "hrefLang" | "media" | "rel" | "target" | "max" | "method" | "min" | "crossOrigin" | "classID" | "useMap" | "wmode" | "integrity" | "charSet" | "alt" | "coords" | "shape" | "autoPlay" | "controls" | "loop" | "mediaGroup" | "playsInline" | "preload" | "src" | "autoFocus" | "formAction" | "formEncType" | "formMethod" | "formNoValidate" | "formTarget" | "dateTime" | "acceptCharset" | "action" | "autoComplete" | "encType" | "noValidate" | "manifest" | "allowFullScreen" | "allowTransparency" | "frameBorder" | "marginHeight" | "marginWidth" | "sandbox" | "scrolling" | "seamless" | "srcDoc" | "srcSet" | "accept" | "capture" | "checked" | "maxLength" | "minLength" | "readOnly" | "required" | "challenge" | "keyType" | "keyParams" | "htmlFor" | "httpEquiv" | "high" | "low" | "optimum" | "reversed" | "async" | "defer" | "nonce" | "scoped" | "cellPadding" | "cellSpacing" | "colSpan" | "headers" | "rowSpan" | "scope" | "cols" | "rows" | "kind" | "srcLang" | "poster" | "onRemove" | "isSelected" | "avatarSrc"> & React.RefAttributes<HTMLElement>>;
|
7
7
|
export default AvatarToken;
|
package/lib/Token/AvatarToken.js
CHANGED
@@ -27,7 +27,7 @@ function _extends() { _extends = Object.assign || function (target) { for (var i
|
|
27
27
|
|
28
28
|
const AvatarContainer = _styledComponents.default.span.withConfig({
|
29
29
|
displayName: "AvatarToken__AvatarContainer",
|
30
|
-
componentId: "ubyudc-0"
|
30
|
+
componentId: "sc-ubyudc-0"
|
31
31
|
})(["--spacing:calc(", " * 2);display:block;height:", ";width:", ";"], (0, _constants.get)('space.1'), props => `calc(${_TokenBase.tokenSizes[props.avatarSize]} - var(--spacing))`, props => `calc(${_TokenBase.tokenSizes[props.avatarSize]} - var(--spacing))`);
|
32
32
|
|
33
33
|
const AvatarToken = /*#__PURE__*/(0, _react.forwardRef)(({
|