@abgov/react-components 4.0.0-alpha.7 → 4.0.0-alpha.70
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 +9 -42
- package/experimental/package.json +2 -1
- package/index.d.ts +33 -35
- package/lib/app-header/app-header.d.ts +5 -2
- package/lib/badge/badge.d.ts +4 -5
- package/lib/button/button.d.ts +4 -6
- package/lib/button-group/button-group.d.ts +1 -0
- package/lib/callout/callout.d.ts +3 -3
- package/lib/checkbox/checkbox.d.ts +3 -2
- package/lib/chip/chip.d.ts +5 -2
- package/lib/circular-progress/circular-progress.d.ts +1 -4
- package/lib/container/container.d.ts +10 -7
- package/lib/divider/divider.d.ts +17 -0
- package/lib/dropdown/dropdown.d.ts +9 -5
- package/lib/flex-column/flex-column.d.ts +17 -0
- package/lib/{flex/row.d.ts → flex-row/flex-row.d.ts} +4 -3
- package/lib/footer/footer.d.ts +17 -0
- package/lib/footer-meta-section/footer-meta-section.d.ts +13 -0
- package/lib/footer-nav-section/footer-nav-section.d.ts +19 -0
- package/lib/form/form-item.d.ts +2 -1
- package/lib/hero-banner/hero-banner-actions.d.ts +5 -3
- package/lib/hero-banner/hero-banner.d.ts +3 -2
- package/lib/icons/icon-button.d.ts +6 -4
- package/lib/icons/icon.d.ts +1 -1
- package/lib/input/input.d.ts +45 -29
- package/lib/microsite-header/microsite-header.d.ts +2 -2
- package/lib/modal/modal.d.ts +1 -0
- package/lib/notification/notification.d.ts +1 -1
- package/lib/one-column-layout/one-column-layout.d.ts +13 -0
- package/lib/page-block/page-block.d.ts +10 -3
- package/lib/radio-group/radio-group.d.ts +1 -0
- package/lib/radio-group/radio.d.ts +1 -0
- package/lib/skeleton/skeleton.d.ts +8 -3
- package/lib/textarea/textarea.d.ts +2 -0
- package/lib/two-column-layout/two-column-layout.d.ts +22 -0
- package/package.json +6 -6
- package/react-components.esm.js +14463 -127
- package/react-components.umd.js +15300 -921
- package/lib/app-footer/app-footer.d.ts +0 -26
- package/lib/app-footer/meta-link.d.ts +0 -20
- package/lib/app-footer/navigation-link.d.ts +0 -22
- package/lib/flex/index.d.ts +0 -1
package/lib/icons/icon.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ declare global {
|
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
|
-
export declare type GoAIconType = 'accessibility' | 'add-circle' | 'add' | 'airplane' | 'alarm' | 'albums' | 'alert-circle' | 'alert' | 'american-football' | 'analytics' | 'aperture' | 'apps' | 'archive' | 'arrow-back-circle' | 'arrow-back' | 'arrow-down-circle' | 'arrow-down' | 'arrow-forward-circle' | 'arrow-forward' | 'arrow-redo-circle' | 'arrow-redo' | 'arrow-undo-circle' | 'arrow-undo' | 'arrow-up-circle' | 'arrow-up' | 'at-circle' | 'at' | 'attach' | 'backspace' | 'bag-add' | 'bag-check' | 'bag-handle' | 'bag' | 'bag-remove' | 'balloon' | 'ban' | 'bandage' | 'bar-chart' | 'barbell' | 'barcode' | 'baseball' | 'basket' | 'basketball' | 'battery-charging' | 'battery-dead' | 'battery-full' | 'battery-half' | 'beaker' | 'bed' | 'beer' | 'bicycle' | 'bluetooth' | 'boat' | 'body' | 'bonfire' | 'book' | 'bookmark' | 'bookmarks' | 'bowling-ball' | 'briefcase' | 'browsers' | 'brush' | 'bug' | 'build' | 'bulb' | 'bus' | 'business' | 'cafe' | 'calculator' | 'calendar-clear' | 'calendar-number' | 'calendar' | 'call' | 'camera' | 'camera-reverse' | 'car' | 'car-sport' | 'card' | 'caret-back-circle' | 'caret-back' | 'caret-down-circle' | 'caret-down' | 'caret-forward-circle' | 'caret-forward' | 'caret-up-circle' | 'caret-up' | 'cart' | 'cash' | 'cellular' | 'chatbox-ellipses' | 'chatbox' | 'chatbubble-ellipses' | 'chatbubble' | 'chatbubbles' | 'checkbox' | 'checkmark-circle' | 'checkmark-done-circle' | 'checkmark-done' | 'checkmark' | 'chevron-back-circle' | 'chevron-back' | 'chevron-down-circle' | 'chevron-down' | 'chevron-forward-circle' | 'chevron-forward' | 'chevron-up-circle' | 'chevron-up' | 'clipboard' | 'close-circle' | 'close' | 'cloud-circle' | 'cloud-done' | 'cloud-download' | 'cloud-offline' | 'cloud' | 'cloud-upload' | 'cloudy-night' | 'cloudy' | 'code-download' | 'code' | 'code-slash' | 'code-working' | 'cog' | 'color-fill' | 'color-filter' | 'color-palette' | 'color-wand' | 'compass' | 'construct' | 'contract' | 'contrast' | 'copy' | 'create' | 'crop' | 'cube' | 'cut' | 'desktop' | 'diamond' | 'dice' | 'disc' | 'document-attach' | 'document-lock' | 'document' | 'document-text' | 'documents' | 'download' | 'duplicate' | 'ear' | 'earth' | 'easel' | 'egg' | 'ellipse' | 'ellipsis-horizontal-circle' | 'ellipsis-horizontal' | 'ellipsis-vertical-circle' | 'ellipsis-vertical' | 'enter' | 'exit' | 'expand' | 'extension-puzzle' | 'eye-off' | 'eye' | 'eyedrop' | 'fast-food' | 'female' | 'file-tray-full' | 'file-tray' | 'file-tray-stacked' | 'filenames.ps1' | 'film' | 'filter-circle' | 'filter' | 'finger-print' | 'fish' | 'fitness' | 'flag' | 'flame' | 'flash-off' | 'flash' | 'flashlight' | 'flask' | 'flower' | 'folder-open' | 'folder' | 'football' | 'footsteps' | 'funnel' | 'game-controller' | 'gift' | 'git-branch' | 'git-commit' | 'git-compare' | 'git-merge' | 'git-network' | 'git-pull-request' | 'glasses' | 'globe' | 'golf' | 'grid' | 'hammer' | 'hand-left' | 'hand-right' | 'happy' | 'hardware-chip' | 'headset' | 'heart-circle' | 'heart-dislike-circle' | 'heart-dislike' | 'heart-half' | 'heart' | 'help-buoy' | 'help-circle' | 'help' | 'home' | 'hourglass' | 'ice-cream' | 'id-card' | 'image' | 'images' | 'infinite' | 'information-circle' | 'information' | 'invert-mode' | 'journal' | 'key' | 'keypad' | 'language' | 'laptop' | 'layers' | 'leaf' | 'library' | 'link' | 'list-circle' | 'list' | 'locate' | 'location' | 'lock-closed' | 'lock-open' | 'log-in' | 'log-out' | 'magnet' | 'mail-open' | 'mail' | 'mail-unread' | 'male-female' | 'male' | 'man' | 'map' | 'medal' | 'medical' | 'medkit' | 'megaphone' | 'menu' | 'mic-circle' | 'mic-off-circle' | 'mic-off' | 'mic' | 'moon' | 'move' | 'musical-note' | 'musical-notes' | 'navigate-circle' | 'navigate' | 'newspaper' | 'notifications-circle' | 'notifications-off-circle' | 'notifications-off' | 'notifications' | 'nuclear' | 'nutrition' | 'open' | 'options' | 'paper-plane' | 'partly-sunny' | 'pause-circle' | 'pause' | 'paw' | 'pencil' | 'people-circle' | 'people' | 'person-add' | 'person-circle' | 'person' | 'person-remove' | 'phone-landscape' | 'phone-portrait' | 'pie-chart' | 'pin' | 'pint' | 'pizza' | 'planet' | 'play-back-circle' | 'play-back' | 'play-circle' | 'play-forward-circle' | 'play-forward' | 'play' | 'play-skip-back-circle' | 'play-skip-back' | 'play-skip-forward-circle' | 'play-skip-forward' | 'podium' | 'power' | 'pricetag' | 'pricetags' | 'print' | 'prism' | 'pulse' | 'push' | 'qr-code' | 'radio-button-off' | 'radio-button-on' | 'radio' | 'rainy' | 'reader' | 'receipt' | 'recording' | 'refresh-circle' | 'refresh' | 'reload-circle' | 'reload' | 'remove-circle' | 'remove' | 'reorder-four' | 'reorder-three' | 'reorder-two' | 'repeat' | 'resize' | 'restaurant' | 'return-down-back' | 'return-down-forward' | 'return-up-back' | 'return-up-forward' | 'ribbon' | 'rocket' | 'rose' | 'sad' | 'save' | 'scale' | 'scan-circle' | 'scan' | 'school' | 'search-circle' | 'search' | 'send' | 'server' | 'settings' | 'shapes' | 'share' | 'share-social' | 'shield-checkmark' | 'shield-half' | 'shield' | 'shirt' | 'shuffle' | 'skull' | 'snow' | 'sparkles' | 'speedometer' | 'square' | 'star-half' | 'star' | 'stats-chart' | 'stop-circle' | 'stop' | 'stopwatch' | 'storefront' | 'subway' | 'sunny' | 'swap-horizontal' | 'swap-vertical' | 'sync-circle' | 'sync' | 'tablet-landscape' | 'tablet-portrait' | 'telescope' | 'tennisball' | 'terminal' | 'text' | 'thermometer' | 'thumbs-down' | 'thumbs-up' | 'thunderstorm' | 'ticket' | 'time' | 'timer' | 'today' | 'toggle' | 'trail-sign' | 'train' | 'transgender' | 'trash-bin' | 'trash' | 'trending-down' | 'trending-up' | 'triangle' | 'trophy' | 'tv' | 'umbrella' | 'unlink' | 'videocam-off' | 'videocam' | 'volume-high' | 'volume-low' | 'volume-medium' | 'volume-mute' | 'volume-off' | 'walk' | 'wallet' | 'warning' | 'watch' | 'water' | 'wifi' | 'wine' | 'woman';
|
|
22
|
+
export declare type GoAIconType = 'accessibility' | 'add-circle' | 'add' | 'airplane' | 'alarm' | 'albums' | 'alert-circle' | 'alert' | 'american-football' | 'analytics' | 'aperture' | 'apps' | 'archive' | 'arrow-back-circle' | 'arrow-back' | 'arrow-down-circle' | 'arrow-down' | 'arrow-forward-circle' | 'arrow-forward' | 'arrow-redo-circle' | 'arrow-redo' | 'arrow-undo-circle' | 'arrow-undo' | 'arrow-up-circle' | 'arrow-up' | 'at-circle' | 'at' | 'attach' | 'backspace' | 'bag-add' | 'bag-check' | 'bag-handle' | 'bag' | 'bag-remove' | 'balloon' | 'ban' | 'bandage' | 'bar-chart' | 'barbell' | 'barcode' | 'baseball' | 'basket' | 'basketball' | 'battery-charging' | 'battery-dead' | 'battery-full' | 'battery-half' | 'beaker' | 'bed' | 'beer' | 'bicycle' | 'bluetooth' | 'boat' | 'body' | 'bonfire' | 'book' | 'bookmark' | 'bookmarks' | 'bowling-ball' | 'briefcase' | 'browsers' | 'brush' | 'bug' | 'build' | 'bulb' | 'bus' | 'business' | 'cafe' | 'calculator' | 'calendar-clear' | 'calendar-number' | 'calendar' | 'call' | 'camera' | 'camera-reverse' | 'car' | 'car-sport' | 'card' | 'caret-back-circle' | 'caret-back' | 'caret-down-circle' | 'caret-down' | 'caret-forward-circle' | 'caret-forward' | 'caret-up-circle' | 'caret-up' | 'cart' | 'cash' | 'cellular' | 'chatbox-ellipses' | 'chatbox' | 'chatbubble-ellipses' | 'chatbubble' | 'chatbubbles' | 'checkbox' | 'checkmark-circle' | 'checkmark-done-circle' | 'checkmark-done' | 'checkmark' | 'chevron-back-circle' | 'chevron-back' | 'chevron-down-circle' | 'chevron-down' | 'chevron-forward-circle' | 'chevron-forward' | 'chevron-up-circle' | 'chevron-up' | 'clipboard' | 'close-circle' | 'close' | 'cloud-circle' | 'cloud-done' | 'cloud-download' | 'cloud-offline' | 'cloud' | 'cloud-upload' | 'cloudy-night' | 'cloudy' | 'code-download' | 'code' | 'code-slash' | 'code-working' | 'cog' | 'color-fill' | 'color-filter' | 'color-palette' | 'color-wand' | 'compass' | 'construct' | 'contract' | 'contrast' | 'copy' | 'create' | 'crop' | 'cube' | 'cut' | 'desktop' | 'diamond' | 'dice' | 'disc' | 'document-attach' | 'document-lock' | 'document' | 'document-text' | 'documents' | 'download' | 'duplicate' | 'ear' | 'earth' | 'easel' | 'egg' | 'ellipse' | 'ellipsis-horizontal-circle' | 'ellipsis-horizontal' | 'ellipsis-vertical-circle' | 'ellipsis-vertical' | 'enter' | 'exit' | 'expand' | 'extension-puzzle' | 'eye-off' | 'eye' | 'eyedrop' | 'fast-food' | 'female' | 'file-tray-full' | 'file-tray' | 'file-tray-stacked' | 'filenames.ps1' | 'film' | 'filter-circle' | 'filter' | 'finger-print' | 'fish' | 'fitness' | 'flag' | 'flame' | 'flash-off' | 'flash' | 'flashlight' | 'flask' | 'flower' | 'folder-open' | 'folder' | 'football' | 'footsteps' | 'funnel' | 'game-controller' | 'gift' | 'git-branch' | 'git-commit' | 'git-compare' | 'git-merge' | 'git-network' | 'git-pull-request' | 'glasses' | 'globe' | 'golf' | 'grid' | 'hammer' | 'hand-left' | 'hand-right' | 'happy' | 'hardware-chip' | 'headset' | 'heart-circle' | 'heart-dislike-circle' | 'heart-dislike' | 'heart-half' | 'heart' | 'help-buoy' | 'help-circle' | 'help' | 'home' | 'hourglass' | 'ice-cream' | 'id-card' | 'image' | 'images' | 'infinite' | 'information-circle' | 'information' | 'invert-mode' | 'journal' | 'key' | 'keypad' | 'language' | 'laptop' | 'layers' | 'leaf' | 'library' | 'link' | 'list-circle' | 'list' | 'locate' | 'location' | 'lock-closed' | 'lock-open' | 'log-in' | 'log-out' | 'magnet' | 'mail-open' | 'mail' | 'mail-unread' | 'male-female' | 'male' | 'man' | 'map' | 'medal' | 'medical' | 'medkit' | 'megaphone' | 'menu' | 'mic-circle' | 'mic-off-circle' | 'mic-off' | 'mic' | 'moon' | 'move' | 'musical-note' | 'musical-notes' | 'navigate-circle' | 'navigate' | 'newspaper' | 'notifications-circle' | 'notifications-off-circle' | 'notifications-off' | 'notifications' | 'nuclear' | 'nutrition' | 'open' | 'options' | 'paper-plane' | 'partly-sunny' | 'pause-circle' | 'pause' | 'paw' | 'pencil' | 'people-circle' | 'people' | 'person-add' | 'person-circle' | 'person' | 'person-remove' | 'phone-landscape' | 'phone-portrait' | 'pie-chart' | 'pin' | 'pint' | 'pizza' | 'planet' | 'play-back-circle' | 'play-back' | 'play-circle' | 'play-forward-circle' | 'play-forward' | 'play' | 'play-skip-back-circle' | 'play-skip-back' | 'play-skip-forward-circle' | 'play-skip-forward' | 'podium' | 'power' | 'pricetag' | 'pricetags' | 'print' | 'prism' | 'pulse' | 'push' | 'qr-code' | 'radio-button-off' | 'radio-button-on' | 'radio' | 'rainy' | 'reader' | 'receipt' | 'recording' | 'refresh-circle' | 'refresh' | 'reload-circle' | 'reload' | 'remove-circle' | 'remove' | 'reorder-four' | 'reorder-three' | 'reorder-two' | 'repeat' | 'resize' | 'restaurant' | 'return-down-back' | 'return-down-forward' | 'return-up-back' | 'return-up-forward' | 'ribbon' | 'rocket' | 'rose' | 'sad' | 'save' | 'scale' | 'scan-circle' | 'scan' | 'school' | 'search-circle' | 'search' | 'send' | 'server' | 'settings' | 'shapes' | 'share' | 'share-social' | 'shield-checkmark' | 'shield-half' | 'shield' | 'shirt' | 'shuffle' | 'skull' | 'snow' | 'sparkles' | 'speedometer' | 'square' | 'star-half' | 'star' | 'stats-chart' | 'stop-circle' | 'stop' | 'stopwatch' | 'storefront' | 'subway' | 'sunny' | 'swap-horizontal' | 'swap-vertical' | 'sync-circle' | 'sync' | 'tablet-landscape' | 'tablet-portrait' | 'telescope' | 'tennisball' | 'terminal' | 'text' | 'thermometer' | 'thumbs-down' | 'thumbs-up' | 'thunderstorm' | 'ticket' | 'time' | 'timer' | 'today' | 'toggle' | 'trail-sign' | 'train' | 'transgender' | 'trash-bin' | 'trash' | 'trending-down' | 'trending-up' | 'triangle' | 'trophy' | 'tv' | 'umbrella' | 'unlink' | 'videocam-off' | 'videocam' | 'volume-high' | 'volume-low' | 'volume-medium' | 'volume-mute' | 'volume-off' | 'walk' | 'wallet' | 'warning' | 'watch' | 'water' | 'wifi' | 'wine' | 'woman' | "logo-alipay" | "logo-amazon" | "logo-amplify" | "logo-android" | "logo-angular" | "logo-apple" | "logo-apple-appstore" | "logo-apple-ar" | "logo-behance" | "logo-bitbucket" | "logo-bitcoin" | "logo-buffer" | "logo-capacitor" | "logo-chrome" | "logo-closed-captioning" | "logo-codepen" | "logo-css3" | "logo-designernews" | "logo-deviantart" | "logo-discord" | "logo-docker" | "logo-dribbble" | "logo-dropbox" | "logo-edge" | "logo-electron" | "logo-euro" | "logo-facebook" | "logo-figma" | "logo-firebase" | "logo-firefox" | "logo-flickr" | "logo-foursquare" | "logo-github" | "logo-gitlab" | "logo-google" | "logo-google-playstore" | "logo-hackernews" | "logo-html5" | "logo-instagram" | "logo-ionic" | "logo-ionitron" | "logo-javascript" | "logo-laravel" | "logo-linkedin" | "logo-markdown" | "logo-mastodon" | "logo-medium" | "logo-microsoft" | "logo-no-smoking" | "logo-nodejs" | "logo-npm" | "logo-octocat" | "logo-paypal" | "logo-pinterest" | "logo-playstation" | "logo-pwa" | "logo-python" | "logo-react" | "logo-reddit" | "logo-rss" | "logo-sass" | "logo-skype" | "logo-slack" | "logo-snapchat" | "logo-soundcloud" | "logo-stackoverflow" | "logo-steam" | "logo-stencil" | "logo-tableau" | "logo-tiktok" | "logo-tumblr" | "logo-tux" | "logo-twitch" | "logo-twitter" | "logo-usd" | "logo-venmo" | "logo-vercel" | "logo-vimeo" | "logo-vk" | "logo-vue" | "logo-web-component" | "logo-wechat" | "logo-whatsapp" | "logo-windows" | "logo-wordpress" | "logo-xbox" | "logo-xing" | "logo-yahoo" | "logo-yen" | "logo-youtube";
|
|
23
23
|
export declare type IconSize = 'small' | 'medium' | 'large' | 'xlarge';
|
|
24
24
|
export declare type IconVariant = 'primary' | 'secondary' | 'tertiary';
|
|
25
25
|
export declare type IconTheme = 'outline' | 'filled' | 'sharp';
|
package/lib/input/input.d.ts
CHANGED
|
@@ -1,11 +1,14 @@
|
|
|
1
1
|
import React, { FC } from 'react';
|
|
2
2
|
import { GoAIconType } from '../..';
|
|
3
|
+
declare type GoAInputType = "text" | "password" | "email" | "number" | "date" | "datetime-local" | "month" | "range" | "search" | "tel" | "time" | "url" | "week";
|
|
4
|
+
declare type GoAAutoCapitalize = "on" | "off" | "none" | "sentences" | "words" | "characters";
|
|
3
5
|
interface WCProps {
|
|
4
6
|
ref?: React.MutableRefObject<HTMLInputElement | null>;
|
|
5
|
-
type
|
|
7
|
+
type?: GoAInputType;
|
|
6
8
|
name: string;
|
|
7
9
|
value: string;
|
|
8
10
|
id?: string;
|
|
11
|
+
autocapitalize?: GoAAutoCapitalize;
|
|
9
12
|
placeholder?: string;
|
|
10
13
|
leadingicon?: string;
|
|
11
14
|
trailingicon?: string;
|
|
@@ -18,7 +21,12 @@ interface WCProps {
|
|
|
18
21
|
maxcharcount?: number;
|
|
19
22
|
handletrailingiconclick: boolean;
|
|
20
23
|
width?: string;
|
|
24
|
+
prefix?: string;
|
|
25
|
+
suffix?: string;
|
|
21
26
|
testid?: string;
|
|
27
|
+
min?: string | number;
|
|
28
|
+
max?: string | number;
|
|
29
|
+
step?: number;
|
|
22
30
|
}
|
|
23
31
|
declare global {
|
|
24
32
|
namespace JSX {
|
|
@@ -27,12 +35,11 @@ declare global {
|
|
|
27
35
|
}
|
|
28
36
|
}
|
|
29
37
|
}
|
|
30
|
-
|
|
38
|
+
interface BaseProps {
|
|
31
39
|
name: string;
|
|
32
|
-
value: string;
|
|
33
|
-
onChange: (name: string, value: string) => void;
|
|
34
40
|
id?: string;
|
|
35
41
|
disabled?: boolean;
|
|
42
|
+
autoCapitalize?: GoAAutoCapitalize;
|
|
36
43
|
placeholder?: string;
|
|
37
44
|
leadingIcon?: GoAIconType;
|
|
38
45
|
trailingIcon?: GoAIconType;
|
|
@@ -44,36 +51,45 @@ export interface Props {
|
|
|
44
51
|
width?: string;
|
|
45
52
|
showCounter?: boolean;
|
|
46
53
|
maxCharCount?: number;
|
|
54
|
+
prefix?: string;
|
|
55
|
+
suffix?: string;
|
|
47
56
|
testId?: string;
|
|
48
57
|
}
|
|
49
|
-
export
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
export declare const GoAInputDate: FC<Props & {
|
|
55
|
-
min?: string;
|
|
56
|
-
max?: string;
|
|
57
|
-
}>;
|
|
58
|
-
export declare const GoAInputTime: FC<Props>;
|
|
59
|
-
export declare const GoAInputDateTime: FC<Props & {
|
|
60
|
-
min?: string;
|
|
61
|
-
max?: string;
|
|
62
|
-
}>;
|
|
63
|
-
export declare const GoAInputEmail: FC<Props>;
|
|
64
|
-
export declare const GoAInputSearch: FC<Props>;
|
|
65
|
-
export declare const GoAInputUrl: FC<Props>;
|
|
66
|
-
export declare const GoAInputTel: FC<Props>;
|
|
67
|
-
export declare const GoAInputFile: FC<Props>;
|
|
68
|
-
export declare const GoAInputMonth: FC<Props>;
|
|
69
|
-
export declare const GoAInputNumber: FC<Props & {
|
|
70
|
-
min?: number;
|
|
71
|
-
max?: number;
|
|
58
|
+
export interface InputProps extends BaseProps {
|
|
59
|
+
onChange: (name: string, value: string) => void;
|
|
60
|
+
value: string;
|
|
61
|
+
min?: number | string;
|
|
62
|
+
max?: number | string;
|
|
72
63
|
step?: number;
|
|
73
|
-
}
|
|
74
|
-
|
|
64
|
+
}
|
|
65
|
+
interface NumberInputProps extends BaseProps {
|
|
66
|
+
onChange: (name: string, value: number) => void;
|
|
67
|
+
value: number;
|
|
75
68
|
min?: number;
|
|
76
69
|
max?: number;
|
|
77
70
|
step?: number;
|
|
71
|
+
}
|
|
72
|
+
interface DateInputProps extends BaseProps {
|
|
73
|
+
onChange: (name: string, value: Date) => void;
|
|
74
|
+
value: string | Date;
|
|
75
|
+
min?: string | Date;
|
|
76
|
+
max?: string | Date;
|
|
77
|
+
step?: number;
|
|
78
|
+
}
|
|
79
|
+
export declare const GoAInput: FC<InputProps & {
|
|
80
|
+
type?: GoAInputType;
|
|
78
81
|
}>;
|
|
82
|
+
export declare const GoAInputText: FC<InputProps>;
|
|
83
|
+
export declare const GoAInputPassword: FC<InputProps>;
|
|
84
|
+
export declare const GoAInputDate: FC<DateInputProps>;
|
|
85
|
+
export declare const GoAInputTime: FC<DateInputProps>;
|
|
86
|
+
export declare const GoAInputDateTime: FC<DateInputProps>;
|
|
87
|
+
export declare const GoAInputEmail: FC<InputProps>;
|
|
88
|
+
export declare const GoAInputSearch: FC<InputProps>;
|
|
89
|
+
export declare const GoAInputUrl: FC<InputProps>;
|
|
90
|
+
export declare const GoAInputTel: FC<InputProps>;
|
|
91
|
+
export declare const GoAInputFile: FC<InputProps>;
|
|
92
|
+
export declare const GoAInputMonth: FC<InputProps>;
|
|
93
|
+
export declare const GoAInputNumber: FC<NumberInputProps>;
|
|
94
|
+
export declare const GoAInputRange: FC<InputProps>;
|
|
79
95
|
export default GoAInput;
|
|
@@ -8,12 +8,12 @@ declare global {
|
|
|
8
8
|
}
|
|
9
9
|
export declare type ServiceLevel = 'alpha' | 'beta' | 'live';
|
|
10
10
|
interface WebComponentProps {
|
|
11
|
-
|
|
11
|
+
type: ServiceLevel;
|
|
12
12
|
version?: string;
|
|
13
13
|
feedbackurl?: string;
|
|
14
14
|
}
|
|
15
15
|
export interface HeaderProps {
|
|
16
|
-
|
|
16
|
+
type: ServiceLevel;
|
|
17
17
|
version?: string;
|
|
18
18
|
feedbackUrl?: string;
|
|
19
19
|
}
|
package/lib/modal/modal.d.ts
CHANGED
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import React, { ReactNode } from "react";
|
|
2
|
+
declare global {
|
|
3
|
+
namespace JSX {
|
|
4
|
+
interface IntrinsicElements {
|
|
5
|
+
'goa-one-column-layout': React.HTMLAttributes<HTMLElement>;
|
|
6
|
+
}
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
export interface PageProps {
|
|
10
|
+
children?: ReactNode;
|
|
11
|
+
}
|
|
12
|
+
export declare function GoAOneColumnLayout(props: PageProps): JSX.Element;
|
|
13
|
+
export default GoAOneColumnLayout;
|
|
@@ -1,9 +1,16 @@
|
|
|
1
|
-
import React, { FC } from 'react';
|
|
1
|
+
import React, { FC, ReactNode } from 'react';
|
|
2
|
+
export interface WCPageBlockProps {
|
|
3
|
+
width: "full" | string;
|
|
4
|
+
}
|
|
2
5
|
declare global {
|
|
3
6
|
namespace JSX {
|
|
4
7
|
interface IntrinsicElements {
|
|
5
|
-
'goa-page-block': React.HTMLAttributes<HTMLElement>;
|
|
8
|
+
'goa-page-block': WCPageBlockProps & React.HTMLAttributes<HTMLElement>;
|
|
6
9
|
}
|
|
7
10
|
}
|
|
8
11
|
}
|
|
9
|
-
export
|
|
12
|
+
export interface PageBlockProps {
|
|
13
|
+
width: "full" | string;
|
|
14
|
+
children?: ReactNode;
|
|
15
|
+
}
|
|
16
|
+
export declare const GoAPageBlock: FC<PageBlockProps>;
|
|
@@ -1,7 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
export declare type SkeletonType = "image" | "text" | "title" | "text-small" | "avatar" | "header" | "paragraph" | "thumbnail" | "card" | "profile";
|
|
3
|
+
declare type SkeletonSize = 1 | 2 | 3 | 4;
|
|
3
4
|
interface WCProps {
|
|
4
|
-
|
|
5
|
+
maxwidth?: string;
|
|
6
|
+
size?: SkeletonSize;
|
|
7
|
+
linecount?: number;
|
|
5
8
|
type: SkeletonType;
|
|
6
9
|
}
|
|
7
10
|
declare global {
|
|
@@ -12,8 +15,10 @@ declare global {
|
|
|
12
15
|
}
|
|
13
16
|
}
|
|
14
17
|
export interface SkeletonProps {
|
|
18
|
+
maxWidth?: string;
|
|
19
|
+
size?: SkeletonSize;
|
|
20
|
+
lineCount?: number;
|
|
15
21
|
type: SkeletonType;
|
|
16
|
-
size?: number;
|
|
17
22
|
}
|
|
18
|
-
export declare const GoASkeleton: ({
|
|
23
|
+
export declare const GoASkeleton: ({ maxWidth, size, lineCount, type }: SkeletonProps) => JSX.Element;
|
|
19
24
|
export default GoASkeleton;
|
|
@@ -9,6 +9,7 @@ interface WCProps {
|
|
|
9
9
|
disabled?: boolean;
|
|
10
10
|
showcounter?: boolean;
|
|
11
11
|
maxcharcount?: number;
|
|
12
|
+
width?: string;
|
|
12
13
|
}
|
|
13
14
|
declare global {
|
|
14
15
|
namespace JSX {
|
|
@@ -27,6 +28,7 @@ interface Props {
|
|
|
27
28
|
disabled?: boolean;
|
|
28
29
|
showCounter?: boolean;
|
|
29
30
|
maxCharCount?: number;
|
|
31
|
+
width?: string;
|
|
30
32
|
testId?: string;
|
|
31
33
|
onChange: (name: string, value: string) => void;
|
|
32
34
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import React, { ReactNode } from 'react';
|
|
2
|
+
interface WCProps {
|
|
3
|
+
navcolumnwidth?: string;
|
|
4
|
+
maxcontentwidth?: string;
|
|
5
|
+
}
|
|
6
|
+
declare global {
|
|
7
|
+
namespace JSX {
|
|
8
|
+
interface IntrinsicElements {
|
|
9
|
+
'goa-two-column-layout': WCProps & React.HTMLAttributes<HTMLElement>;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
interface Props {
|
|
14
|
+
navColumnWidth?: string;
|
|
15
|
+
maxContentWidth?: string;
|
|
16
|
+
header: ReactNode;
|
|
17
|
+
footer: ReactNode;
|
|
18
|
+
nav: ReactNode;
|
|
19
|
+
children: ReactNode;
|
|
20
|
+
}
|
|
21
|
+
export declare function GoATwoColumnLayout(props: Props): JSX.Element;
|
|
22
|
+
export default GoATwoColumnLayout;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abgov/react-components",
|
|
3
|
-
"version": "4.0.0-alpha.
|
|
3
|
+
"version": "4.0.0-alpha.70",
|
|
4
4
|
"description": "Government of Alberta - UI components for React",
|
|
5
5
|
"bugs": {
|
|
6
6
|
"url": "https://github.com/GovAlta/ui-components/issues"
|
|
@@ -16,12 +16,12 @@
|
|
|
16
16
|
"url": "https://github.com/GovAlta/ui-components.git",
|
|
17
17
|
"directory": "libs/react-components"
|
|
18
18
|
},
|
|
19
|
-
"dependencies": {
|
|
20
|
-
"@abgov/web-components": "^1.0.0-alpha.23"
|
|
21
|
-
},
|
|
22
19
|
"peerDependencies": {
|
|
23
|
-
"react": "
|
|
24
|
-
"react-dom": "
|
|
20
|
+
"react": ">=17.0.2",
|
|
21
|
+
"react-dom": ">=17.0.2"
|
|
22
|
+
},
|
|
23
|
+
"dependencies": {
|
|
24
|
+
"date-fns": "^2.29.2"
|
|
25
25
|
},
|
|
26
26
|
"main": "./react-components.umd.js",
|
|
27
27
|
"module": "./react-components.esm.js",
|