@dxc-technology/halstack-react 0.0.0-faa7105 → 0.0.0-fb9047c
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/BackgroundColorContext.js +50 -0
- package/ThemeContext.js +246 -0
- package/V3Select/V3Select.js +455 -0
- package/V3Select/index.d.ts +27 -0
- package/V3Textarea/V3Textarea.js +260 -0
- package/V3Textarea/index.d.ts +27 -0
- package/accordion/Accordion.js +289 -0
- package/accordion/index.d.ts +28 -0
- package/accordion-group/AccordionGroup.js +184 -0
- package/accordion-group/index.d.ts +16 -0
- package/alert/Alert.js +309 -0
- package/alert/index.d.ts +51 -0
- package/badge/Badge.js +59 -0
- package/{dist/box → box}/Box.js +38 -34
- package/box/index.d.ts +25 -0
- package/button/Button.d.ts +4 -0
- package/button/Button.js +182 -0
- package/button/Button.stories.tsx +306 -0
- package/button/types.d.ts +57 -0
- package/button/types.js +5 -0
- package/card/Card.js +200 -0
- package/card/index.d.ts +22 -0
- package/checkbox/Checkbox.d.ts +4 -0
- package/checkbox/Checkbox.js +253 -0
- package/checkbox/types.d.ts +61 -0
- package/checkbox/types.js +5 -0
- package/chip/Chip.js +221 -0
- package/chip/index.d.ts +22 -0
- package/{dist/common → common}/OpenSans.css +0 -0
- package/{dist/common → common}/RequiredComponent.js +5 -19
- package/{dist/common → common}/fonts/OpenSans-Bold.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-BoldItalic.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-ExtraBold.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-ExtraBoldItalic.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-Italic.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-Light.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-LightItalic.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-Regular.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-SemiBold.ttf +0 -0
- package/{dist/common → common}/fonts/OpenSans-SemiBoldItalic.ttf +0 -0
- package/common/utils.js +22 -0
- package/common/variables.js +1569 -0
- package/{dist/date → date}/Date.js +87 -71
- package/date/index.d.ts +27 -0
- package/date-input/DateInput.js +396 -0
- package/date-input/index.d.ts +95 -0
- package/dialog/Dialog.js +184 -0
- package/dialog/index.d.ts +18 -0
- package/dropdown/Dropdown.js +450 -0
- package/dropdown/index.d.ts +26 -0
- package/file-input/FileInput.js +532 -0
- package/file-input/FileItem.js +193 -0
- package/file-input/index.d.ts +81 -0
- package/footer/Footer.js +297 -0
- package/footer/Icons.js +77 -0
- package/footer/index.d.ts +25 -0
- package/header/Header.js +326 -0
- package/header/Icons.js +59 -0
- package/header/index.d.ts +25 -0
- package/heading/Heading.js +176 -0
- package/heading/index.d.ts +17 -0
- package/input-text/Icons.js +22 -0
- package/input-text/InputText.js +611 -0
- package/input-text/index.d.ts +36 -0
- package/layout/ApplicationLayout.js +235 -0
- package/layout/Icons.js +55 -0
- package/link/Link.js +183 -0
- package/link/index.d.ts +23 -0
- package/main.d.ts +44 -0
- package/{dist/main.js → main.js} +143 -43
- package/number-input/NumberInput.js +128 -0
- package/{dist/ThemeContext.js → number-input/NumberInputContext.js} +3 -2
- package/number-input/index.d.ts +113 -0
- package/package.json +39 -24
- package/paginator/Icons.js +66 -0
- package/paginator/Paginator.d.ts +4 -0
- package/paginator/Paginator.js +198 -0
- package/paginator/types.d.ts +38 -0
- package/paginator/types.js +5 -0
- package/password-input/PasswordInput.js +199 -0
- package/password-input/index.d.ts +94 -0
- package/progress-bar/ProgressBar.js +188 -0
- package/progress-bar/index.d.ts +18 -0
- package/{dist/radio → radio}/Radio.js +48 -40
- package/radio/index.d.ts +23 -0
- package/resultsetTable/ResultsetTable.js +274 -0
- package/resultsetTable/index.d.ts +19 -0
- package/select/Select.js +865 -0
- package/select/index.d.ts +131 -0
- package/sidenav/Sidenav.js +145 -0
- package/sidenav/index.d.ts +13 -0
- package/slider/Slider.js +340 -0
- package/slider/index.d.ts +29 -0
- package/spinner/Spinner.js +267 -0
- package/spinner/index.d.ts +17 -0
- package/switch/Switch.js +208 -0
- package/switch/index.d.ts +24 -0
- package/table/Table.js +118 -0
- package/table/index.d.ts +13 -0
- package/tabs/Tabs.js +259 -0
- package/tabs/index.d.ts +19 -0
- package/tag/Tag.js +208 -0
- package/tag/index.d.ts +24 -0
- package/text-input/TextInput.js +825 -0
- package/text-input/index.d.ts +135 -0
- package/textarea/Textarea.js +317 -0
- package/textarea/index.d.ts +117 -0
- package/{dist/toggle → toggle}/Toggle.js +30 -67
- package/toggle/index.d.ts +21 -0
- package/toggle-group/ToggleGroup.js +243 -0
- package/toggle-group/index.d.ts +21 -0
- package/{dist/upload → upload}/Upload.js +23 -22
- package/upload/buttons-upload/ButtonsUpload.js +111 -0
- package/upload/buttons-upload/Icons.js +40 -0
- package/upload/dragAndDropArea/DragAndDropArea.js +225 -0
- package/upload/dragAndDropArea/Icons.js +39 -0
- package/upload/file-upload/FileToUpload.js +115 -0
- package/upload/file-upload/Icons.js +66 -0
- package/upload/files-upload/FilesToUpload.js +109 -0
- package/upload/index.d.ts +15 -0
- package/upload/transaction/Icons.js +160 -0
- package/upload/transaction/Transaction.js +104 -0
- package/upload/transactions/Transactions.js +94 -0
- package/useTheme.js +22 -0
- package/wizard/Icons.js +65 -0
- package/wizard/Wizard.js +271 -0
- package/wizard/index.d.ts +18 -0
- package/README.md +0 -66
- package/babel.config.js +0 -4
- package/dist/accordion/Accordion.js +0 -242
- package/dist/accordion/Accordion.stories.js +0 -207
- package/dist/accordion/readme.md +0 -96
- package/dist/alert/Alert.js +0 -304
- package/dist/alert/Alert.stories.js +0 -158
- package/dist/alert/close.svg +0 -4
- package/dist/alert/error.svg +0 -4
- package/dist/alert/info.svg +0 -4
- package/dist/alert/readme.md +0 -43
- package/dist/alert/success.svg +0 -4
- package/dist/alert/warning.svg +0 -4
- package/dist/button/Button.js +0 -181
- package/dist/button/Button.stories.js +0 -224
- package/dist/button/readme.md +0 -93
- package/dist/card/Card.js +0 -217
- package/dist/checkbox/Checkbox.js +0 -224
- package/dist/checkbox/Checkbox.stories.js +0 -144
- package/dist/checkbox/readme.md +0 -116
- package/dist/chip/Chip.js +0 -173
- package/dist/common/services/example-service.js +0 -10
- package/dist/common/services/example-service.test.js +0 -12
- package/dist/common/utils.js +0 -42
- package/dist/common/variables.js +0 -400
- package/dist/date/Date.stories.js +0 -205
- package/dist/date/calendar.svg +0 -1
- package/dist/date/calendar_dark.svg +0 -1
- package/dist/date/readme.md +0 -73
- package/dist/dialog/Dialog.js +0 -197
- package/dist/dialog/Dialog.stories.js +0 -217
- package/dist/dialog/readme.md +0 -32
- package/dist/dropdown/Dropdown.js +0 -424
- package/dist/dropdown/Dropdown.stories.js +0 -249
- package/dist/dropdown/baseline-arrow_drop_down.svg +0 -1
- package/dist/dropdown/baseline-arrow_drop_down_wh.svg +0 -4
- package/dist/dropdown/baseline-arrow_drop_up.svg +0 -1
- package/dist/dropdown/baseline-arrow_drop_up_wh.svg +0 -4
- package/dist/dropdown/readme.md +0 -69
- package/dist/footer/Footer.js +0 -346
- package/dist/footer/Footer.stories.js +0 -94
- package/dist/footer/dxc_logo_wht.png +0 -0
- package/dist/footer/readme.md +0 -41
- package/dist/header/Header.js +0 -372
- package/dist/header/Header.stories.js +0 -176
- package/dist/header/close_icon.svg +0 -1
- package/dist/header/dxc_logo_black.png +0 -0
- package/dist/header/dxc_logo_white.png +0 -0
- package/dist/header/hamb_menu_black.svg +0 -1
- package/dist/header/hamb_menu_white.svg +0 -1
- package/dist/header/readme.md +0 -33
- package/dist/heading/Heading.js +0 -153
- package/dist/input-text/InputText.js +0 -519
- package/dist/input-text/InputText.stories.js +0 -209
- package/dist/input-text/error.svg +0 -1
- package/dist/input-text/readme.md +0 -91
- package/dist/link/Link.js +0 -136
- package/dist/link/readme.md +0 -51
- package/dist/paginator/Paginator.js +0 -196
- package/dist/paginator/images/next.svg +0 -3
- package/dist/paginator/images/nextPage.svg +0 -3
- package/dist/paginator/images/previous.svg +0 -3
- package/dist/paginator/images/previousPage.svg +0 -3
- package/dist/paginator/readme.md +0 -50
- package/dist/progress-bar/ProgressBar.js +0 -185
- package/dist/progress-bar/ProgressBar.stories.js +0 -280
- package/dist/progress-bar/readme.md +0 -63
- package/dist/radio/Radio.stories.js +0 -166
- package/dist/radio/readme.md +0 -70
- package/dist/resultsetTable/ResultsetTable.js +0 -333
- package/dist/resultsetTable/arrow_downward-24px_wht.svg +0 -1
- package/dist/resultsetTable/arrow_upward-24px_wht.svg +0 -1
- package/dist/resultsetTable/unfold_more-24px_wht.svg +0 -1
- package/dist/select/Select.js +0 -445
- package/dist/select/Select.stories.js +0 -235
- package/dist/select/readme.md +0 -72
- package/dist/sidenav/Sidenav.js +0 -236
- package/dist/sidenav/arrow_icon.svg +0 -3
- package/dist/slider/Slider.js +0 -258
- package/dist/slider/Slider.stories.js +0 -241
- package/dist/slider/readme.md +0 -64
- package/dist/spinner/Spinner.js +0 -193
- package/dist/spinner/Spinner.stories.js +0 -183
- package/dist/spinner/readme.md +0 -65
- package/dist/switch/Switch.js +0 -199
- package/dist/switch/Switch.stories.js +0 -134
- package/dist/switch/readme.md +0 -133
- package/dist/table/Table.js +0 -87
- package/dist/tabs/Tabs.js +0 -172
- package/dist/tabs/Tabs.stories.js +0 -130
- package/dist/tabs/readme.md +0 -78
- package/dist/tabs-for-sections/TabsForSections.js +0 -107
- package/dist/tabs-for-sections/readme.md +0 -78
- package/dist/tag/Tag.js +0 -217
- package/dist/textarea/Textarea.js +0 -227
- package/dist/toggle/Toggle.stories.js +0 -297
- package/dist/toggle/readme.md +0 -80
- package/dist/upload/Upload.stories.js +0 -72
- package/dist/upload/buttons-upload/ButtonsUpload.js +0 -122
- package/dist/upload/buttons-upload/drag-drop-icon.svg +0 -4
- package/dist/upload/buttons-upload/upload-button.svg +0 -1
- package/dist/upload/dragAndDropArea/DragAndDropArea.js +0 -279
- package/dist/upload/dragAndDropArea/upload_drop.svg +0 -4
- package/dist/upload/dragAndDropArea/upload_file.svg +0 -4
- package/dist/upload/file-upload/FileToUpload.js +0 -158
- package/dist/upload/file-upload/audio-icon.svg +0 -4
- package/dist/upload/file-upload/close.svg +0 -4
- package/dist/upload/file-upload/file-icon.svg +0 -4
- package/dist/upload/file-upload/video-icon.svg +0 -4
- package/dist/upload/files-upload/FilesToUpload.js +0 -123
- package/dist/upload/readme.md +0 -37
- package/dist/upload/transaction/Transaction.js +0 -155
- package/dist/upload/transaction/audio-icon-err.svg +0 -4
- package/dist/upload/transaction/audio-icon.svg +0 -4
- package/dist/upload/transaction/error-icon.svg +0 -4
- package/dist/upload/transaction/file-icon-err.svg +0 -4
- package/dist/upload/transaction/file-icon.svg +0 -4
- package/dist/upload/transaction/image-icon-err.svg +0 -4
- package/dist/upload/transaction/image-icon.svg +0 -4
- package/dist/upload/transaction/success-icon.svg +0 -4
- package/dist/upload/transaction/video-icon-err.svg +0 -4
- package/dist/upload/transaction/video-icon.svg +0 -4
- package/dist/upload/transactions/Transactions.js +0 -120
- package/dist/wizard/Wizard.js +0 -327
- package/dist/wizard/invalid_icon.svg +0 -6
- package/dist/wizard/valid_icon.svg +0 -6
- package/dist/wizard/validation-wrong.svg +0 -6
- package/test/Accordion.test.js +0 -33
- package/test/Alert.test.js +0 -53
- package/test/Box.test.js +0 -10
- package/test/Button.test.js +0 -18
- package/test/Card.test.js +0 -30
- package/test/Checkbox.test.js +0 -45
- package/test/Chip.test.js +0 -25
- package/test/Date.test.js +0 -393
- package/test/Dialog.test.js +0 -23
- package/test/Dropdown.test.js +0 -130
- package/test/Footer.test.js +0 -99
- package/test/Header.test.js +0 -39
- package/test/Heading.test.js +0 -35
- package/test/InputText.test.js +0 -236
- package/test/Link.test.js +0 -25
- package/test/Paginator.test.js +0 -165
- package/test/ProgressBar.test.js +0 -35
- package/test/Radio.test.js +0 -37
- package/test/ResultsetTable.test.js +0 -282
- package/test/Select.test.js +0 -191
- package/test/Sidenav.test.js +0 -87
- package/test/Slider.test.js +0 -65
- package/test/Spinner.test.js +0 -27
- package/test/Switch.test.js +0 -45
- package/test/Table.test.js +0 -36
- package/test/Tabs.test.js +0 -88
- package/test/TabsForSections.test.js +0 -34
- package/test/Tag.test.js +0 -32
- package/test/TextArea.test.js +0 -52
- package/test/Toggle.test.js +0 -43
- package/test/Upload.test.js +0 -60
- package/test/Wizard.test.js +0 -130
- package/test/mocks/pngMock.js +0 -1
- package/test/mocks/svgMock.js +0 -1
package/dist/common/variables.js
DELETED
|
@@ -1,400 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.typeface = exports.responsiveSizes = exports.spaces = exports.theme = exports.defaultTheme = exports.colors = void 0;
|
|
7
|
-
var colors = {
|
|
8
|
-
black: "#000000",
|
|
9
|
-
lightBlack: "#212121",
|
|
10
|
-
mediumBlack: "#000000B3",
|
|
11
|
-
white: "#FFFFFF",
|
|
12
|
-
darkWhite: "#EEEEEE",
|
|
13
|
-
yellow: "#FFED00",
|
|
14
|
-
darkGrey: "#666666",
|
|
15
|
-
mediumGrey: "#00000033",
|
|
16
|
-
lightGrey: "#D9D9D9",
|
|
17
|
-
darkRed: "#D0011B",
|
|
18
|
-
lightRed: "#FF6161",
|
|
19
|
-
lightBlue: "#CEE0F5",
|
|
20
|
-
lightYellow: "#FCF2BD",
|
|
21
|
-
lightPink: "#F9CFCF",
|
|
22
|
-
lightGreen: "#DBF1C4",
|
|
23
|
-
blue: "#005FCC",
|
|
24
|
-
lighterGrey: "#F8F8F8",
|
|
25
|
-
red: "#D0011B",
|
|
26
|
-
purple: "#8800F6",
|
|
27
|
-
darkBlue: "#006BF6",
|
|
28
|
-
inherit: "inherit",
|
|
29
|
-
transparent: "transparent"
|
|
30
|
-
};
|
|
31
|
-
exports.colors = colors;
|
|
32
|
-
var defaultTheme = {
|
|
33
|
-
accordion: {
|
|
34
|
-
arrowColor: colors.darkGrey
|
|
35
|
-
},
|
|
36
|
-
button: {
|
|
37
|
-
color: colors.yellow,
|
|
38
|
-
hoverColor: colors.black,
|
|
39
|
-
primaryFontColor: colors.black,
|
|
40
|
-
primaryHoverFontColor: colors.yellow,
|
|
41
|
-
secondaryFontColor: colors.black,
|
|
42
|
-
secondaryHoverFontColor: colors.black,
|
|
43
|
-
textFontColor: colors.black,
|
|
44
|
-
textHoverFontColor: colors.white
|
|
45
|
-
},
|
|
46
|
-
checkbox: {
|
|
47
|
-
color: colors.yellow,
|
|
48
|
-
checkColor: colors.black
|
|
49
|
-
},
|
|
50
|
-
chip: {
|
|
51
|
-
backgroundColor: colors.darkWhite,
|
|
52
|
-
outlinedColor: "",
|
|
53
|
-
fontColor: colors.black
|
|
54
|
-
},
|
|
55
|
-
date: {
|
|
56
|
-
pickerSelectedDateBackgroundColor: colors.black,
|
|
57
|
-
pickerSelectedDateColor: colors.yellow
|
|
58
|
-
},
|
|
59
|
-
dropdown: {
|
|
60
|
-
backgroundColor: colors.white,
|
|
61
|
-
fontColor: colors.black
|
|
62
|
-
},
|
|
63
|
-
footer: {
|
|
64
|
-
backgroundColor: colors.black,
|
|
65
|
-
fontColor: colors.white,
|
|
66
|
-
lineColor: colors.yellow
|
|
67
|
-
},
|
|
68
|
-
header: {
|
|
69
|
-
backgroundColor: colors.black,
|
|
70
|
-
underlinedColor: colors.black,
|
|
71
|
-
fontColor: colors.white,
|
|
72
|
-
backgroundColorMenu: colors.lightGrey,
|
|
73
|
-
fontColorMenu: colors.black,
|
|
74
|
-
hamburguerColor: colors.white
|
|
75
|
-
},
|
|
76
|
-
inputText: {
|
|
77
|
-
selectedOptionBackgroundColor: colors.lightGrey
|
|
78
|
-
},
|
|
79
|
-
paginator: {
|
|
80
|
-
paginatorBackgroundColor: colors.darkWhite,
|
|
81
|
-
paginatorFontColor: colors.black
|
|
82
|
-
},
|
|
83
|
-
progressBar: {
|
|
84
|
-
trackLine: colors.yellow,
|
|
85
|
-
totalLine: colors.black
|
|
86
|
-
},
|
|
87
|
-
radio: {
|
|
88
|
-
color: colors.black
|
|
89
|
-
},
|
|
90
|
-
select: {
|
|
91
|
-
selectedOptionBackgroundColor: colors.lightGrey
|
|
92
|
-
},
|
|
93
|
-
sidenav: {
|
|
94
|
-
backgroundColor: colors.lighterGrey,
|
|
95
|
-
arrowContainerColor: colors.lightGrey,
|
|
96
|
-
arrowColor: colors.black
|
|
97
|
-
},
|
|
98
|
-
slider: {
|
|
99
|
-
color: colors.black
|
|
100
|
-
},
|
|
101
|
-
spinner: {
|
|
102
|
-
trackCircleColor: colors.yellow,
|
|
103
|
-
totalCircleColor: colors.white
|
|
104
|
-
},
|
|
105
|
-
"switch": {
|
|
106
|
-
checkedTrackBackgroundColor: colors.darkGrey
|
|
107
|
-
},
|
|
108
|
-
table: {
|
|
109
|
-
headerBackgroundColor: colors.black,
|
|
110
|
-
headerFontColor: colors.white
|
|
111
|
-
},
|
|
112
|
-
tabs: {
|
|
113
|
-
selectedBackgroundColor: colors.white,
|
|
114
|
-
selectedUnderlinedColor: colors.black,
|
|
115
|
-
selectedColor: colors.black
|
|
116
|
-
},
|
|
117
|
-
wizard: {
|
|
118
|
-
selectedBackgroundColor: colors.yellow,
|
|
119
|
-
selectedFont: colors.black
|
|
120
|
-
}
|
|
121
|
-
};
|
|
122
|
-
exports.defaultTheme = defaultTheme;
|
|
123
|
-
var theme = {
|
|
124
|
-
accordion: {
|
|
125
|
-
backgroundColor: colors.white,
|
|
126
|
-
fontColor: colors.darkGrey,
|
|
127
|
-
hoverFontColor: colors.black,
|
|
128
|
-
arrowColor: colors.darkGrey,
|
|
129
|
-
hoverBackgroundColor: "57",
|
|
130
|
-
disabled: 0.34
|
|
131
|
-
},
|
|
132
|
-
alert: {
|
|
133
|
-
overlayColor: colors.black,
|
|
134
|
-
overlayOpacity: "CC",
|
|
135
|
-
infoColor: colors.lightBlue,
|
|
136
|
-
confirmColor: colors.lightGreen,
|
|
137
|
-
warningColor: colors.lightYellow,
|
|
138
|
-
errorColor: colors.lightPink,
|
|
139
|
-
focusColor: colors.blue
|
|
140
|
-
},
|
|
141
|
-
button: {
|
|
142
|
-
color: colors.yellow,
|
|
143
|
-
hoverColor: colors.black,
|
|
144
|
-
disabledOpacity: 0.34,
|
|
145
|
-
primaryFontColor: colors.black,
|
|
146
|
-
primaryHoverFontColor: colors.yellow,
|
|
147
|
-
primaryActiveOpacity: "A3",
|
|
148
|
-
secondaryBackgroundColor: colors.transparent,
|
|
149
|
-
secondaryFontColor: colors.black,
|
|
150
|
-
secondaryHoverFontColor: colors.black,
|
|
151
|
-
secondaryActiveOpacity: "29",
|
|
152
|
-
secondaryHoverOpacity: "14",
|
|
153
|
-
textBackgroundColor: colors.transparent,
|
|
154
|
-
textFontColor: colors.black,
|
|
155
|
-
textHoverFontColor: colors.lightGrey,
|
|
156
|
-
textActiveOpacity: "A3",
|
|
157
|
-
focusColor: colors.blue
|
|
158
|
-
},
|
|
159
|
-
box: {
|
|
160
|
-
backgroundColor: colors.white
|
|
161
|
-
},
|
|
162
|
-
card: {
|
|
163
|
-
backgroundColor: colors.white
|
|
164
|
-
},
|
|
165
|
-
checkbox: {
|
|
166
|
-
color: colors.yellow,
|
|
167
|
-
checkColor: colors.black,
|
|
168
|
-
disabled: 0.34,
|
|
169
|
-
disabledCheckColor: 0.34,
|
|
170
|
-
fontColor: colors.black,
|
|
171
|
-
focusColor: colors.blue
|
|
172
|
-
},
|
|
173
|
-
chip: {
|
|
174
|
-
backgroundColor: colors.darkWhite,
|
|
175
|
-
outlinedColor: "",
|
|
176
|
-
fontColor: colors.black,
|
|
177
|
-
disabled: 0.34
|
|
178
|
-
},
|
|
179
|
-
date: {
|
|
180
|
-
pickerSelectedDateBackgroundColor: colors.black,
|
|
181
|
-
pickerSelectedDateColor: colors.yellow,
|
|
182
|
-
pickerBackgroundColor: colors.white,
|
|
183
|
-
pickerFontColor: colors.black,
|
|
184
|
-
pickerActualDate: colors.lightGrey,
|
|
185
|
-
pickerHoverDateBackgroundColor: "57",
|
|
186
|
-
pickerHoverDateFontColor: colors.black,
|
|
187
|
-
scrollBarThumbColor: colors.darkGrey,
|
|
188
|
-
scrollBarTrackColor: colors.lightGrey,
|
|
189
|
-
focusColor: colors.blue
|
|
190
|
-
},
|
|
191
|
-
dialog: {
|
|
192
|
-
overlayColor: colors.black,
|
|
193
|
-
overlayOpacity: "CC",
|
|
194
|
-
separator: colors.lightGrey,
|
|
195
|
-
scrollBarThumbColor: colors.darkGrey,
|
|
196
|
-
scrollBarTrackColor: colors.lightGrey,
|
|
197
|
-
backgroundColor: colors.white
|
|
198
|
-
},
|
|
199
|
-
dropdown: {
|
|
200
|
-
backgroundColor: colors.white,
|
|
201
|
-
fontColor: colors.black,
|
|
202
|
-
dropdownBackgroundColor: colors.white,
|
|
203
|
-
dropdownFontColor: colors.black,
|
|
204
|
-
hoverBackgroundOption: "57",
|
|
205
|
-
hoverBackgroundColor: "CC",
|
|
206
|
-
disabled: 0.34,
|
|
207
|
-
scrollBarThumbColor: colors.darkGrey,
|
|
208
|
-
scrollBarTrackColor: colors.lightGrey,
|
|
209
|
-
focusColor: colors.blue
|
|
210
|
-
},
|
|
211
|
-
footer: {
|
|
212
|
-
backgroundColor: colors.black,
|
|
213
|
-
fontColor: colors.white,
|
|
214
|
-
lineColor: colors.yellow
|
|
215
|
-
},
|
|
216
|
-
header: {
|
|
217
|
-
backgroundColor: colors.black,
|
|
218
|
-
underlinedColor: colors.black,
|
|
219
|
-
fontColor: colors.white,
|
|
220
|
-
backgroundColorMenu: colors.lightGrey,
|
|
221
|
-
fontColorMenu: colors.black,
|
|
222
|
-
hamburguerColor: colors.white,
|
|
223
|
-
hoverHamburguerColor: "28",
|
|
224
|
-
overlayColor: colors.black,
|
|
225
|
-
overlayOpacity: "B3",
|
|
226
|
-
focusColor: colors.blue
|
|
227
|
-
},
|
|
228
|
-
inputText: {
|
|
229
|
-
fontColor: colors.black,
|
|
230
|
-
placeholderColor: colors.lightGrey,
|
|
231
|
-
disabled: 0.34,
|
|
232
|
-
error: colors.red,
|
|
233
|
-
selectedOptionBackgroundColor: colors.lightGrey,
|
|
234
|
-
hoverOptionBakcgroundColor: "57",
|
|
235
|
-
hoverOptionColor: colors.black,
|
|
236
|
-
scrollBarThumbColor: colors.darkGrey,
|
|
237
|
-
scrollBarTrackColor: colors.lightGrey
|
|
238
|
-
},
|
|
239
|
-
link: {
|
|
240
|
-
fontColor: colors.blue,
|
|
241
|
-
visitedFontColor: colors.purple,
|
|
242
|
-
underlinedBackgroundColor: colors.blue,
|
|
243
|
-
visitedUnderlinedBackgroundColor: colors.purple,
|
|
244
|
-
disabledColor: colors.lightGrey,
|
|
245
|
-
disabledUnderlinedBackgroundColor: colors.lightGrey,
|
|
246
|
-
hoverFontColor: colors.darkBlue
|
|
247
|
-
},
|
|
248
|
-
paginator: {
|
|
249
|
-
paginatorBackgroundColor: colors.darkWhite,
|
|
250
|
-
paginatorFontColor: colors.black
|
|
251
|
-
},
|
|
252
|
-
progressBar: {
|
|
253
|
-
trackLine: colors.yellow,
|
|
254
|
-
totalLine: colors.black,
|
|
255
|
-
fontColor: colors.inherit,
|
|
256
|
-
totalLineOpacity: "57",
|
|
257
|
-
overlayColor: colors.black,
|
|
258
|
-
overlayOpacity: "CC"
|
|
259
|
-
},
|
|
260
|
-
radio: {
|
|
261
|
-
color: colors.black,
|
|
262
|
-
disabled: 0.34,
|
|
263
|
-
fontColor: colors.inherit,
|
|
264
|
-
focusColor: colors.blue
|
|
265
|
-
},
|
|
266
|
-
select: {
|
|
267
|
-
selectedOptionBackgroundColor: colors.lightGrey,
|
|
268
|
-
color: colors.black,
|
|
269
|
-
hoverOptionBackgroundColor: "57",
|
|
270
|
-
error: colors.darkRed,
|
|
271
|
-
scrollBarThumbColor: colors.darkGrey,
|
|
272
|
-
scrollBarTrackColor: colors.lightGrey,
|
|
273
|
-
disabled: 0.34,
|
|
274
|
-
focusColor: colors.blue
|
|
275
|
-
},
|
|
276
|
-
sidenav: {
|
|
277
|
-
backgroundColor: colors.lighterGrey,
|
|
278
|
-
arrowContainerColor: colors.lightGrey,
|
|
279
|
-
arrowContainerOpacity: "CC",
|
|
280
|
-
arrowColor: colors.black
|
|
281
|
-
},
|
|
282
|
-
slider: {
|
|
283
|
-
color: colors.black,
|
|
284
|
-
totalLine: 0.34,
|
|
285
|
-
disabledthumbBackgroundColor: 0.34,
|
|
286
|
-
disableddotsBackgroundColor: 0.34,
|
|
287
|
-
disabledTrackLine: 0.34,
|
|
288
|
-
disabledtotalLine: 0.34,
|
|
289
|
-
focusColor: colors.blue
|
|
290
|
-
},
|
|
291
|
-
spinner: {
|
|
292
|
-
trackLine: colors.yellow,
|
|
293
|
-
totalCircle: colors.white,
|
|
294
|
-
fontColor: colors.inherit,
|
|
295
|
-
overlayColor: colors.black,
|
|
296
|
-
overlayOpacity: "CC"
|
|
297
|
-
},
|
|
298
|
-
"switch": {
|
|
299
|
-
checkedTrackBackgroundColor: colors.darkGrey,
|
|
300
|
-
checkedThumbBackgroundColor: colors.white,
|
|
301
|
-
uncheckedThumbBackgroundColor: colors.white,
|
|
302
|
-
uncheckedTrackBackgroundColor: colors.lightGrey,
|
|
303
|
-
disabled: 0.34,
|
|
304
|
-
fontColor: colors.black,
|
|
305
|
-
focusColor: colors.blue
|
|
306
|
-
},
|
|
307
|
-
table: {
|
|
308
|
-
headerBackgroundColor: colors.black,
|
|
309
|
-
headerFontColor: colors.white,
|
|
310
|
-
separatorColor: colors.lightGrey,
|
|
311
|
-
bodyBackgroundColor: colors.white,
|
|
312
|
-
bodyFontColor: colors.black
|
|
313
|
-
},
|
|
314
|
-
tabs: {
|
|
315
|
-
selectedBackgroundColor: colors.white,
|
|
316
|
-
selectedUnderlinedColor: colors.black,
|
|
317
|
-
selectedColor: colors.black,
|
|
318
|
-
backgroundColor: "57",
|
|
319
|
-
underlinedColor: colors.lightGrey,
|
|
320
|
-
fontColor: colors.black,
|
|
321
|
-
disabled: 0.34,
|
|
322
|
-
focusColor: colors.blue,
|
|
323
|
-
notSelectedOpacity: "A3"
|
|
324
|
-
},
|
|
325
|
-
tag: {
|
|
326
|
-
backgroundColor: colors.white
|
|
327
|
-
},
|
|
328
|
-
textarea: {
|
|
329
|
-
fontColor: colors.black,
|
|
330
|
-
placeholderColor: colors.lightGrey,
|
|
331
|
-
disabled: 0.34,
|
|
332
|
-
error: colors.red,
|
|
333
|
-
scrollBarThumbColor: colors.darkGrey,
|
|
334
|
-
scrollBarTrackColor: colors.lightGrey
|
|
335
|
-
},
|
|
336
|
-
wizard: {
|
|
337
|
-
selectedBackgroundColor: colors.yellow,
|
|
338
|
-
selectedFont: colors.black,
|
|
339
|
-
borderColor: colors.black,
|
|
340
|
-
fontColor: colors.inherit,
|
|
341
|
-
lineColor: colors.lightGrey,
|
|
342
|
-
disabledBackground: colors.darkWhite,
|
|
343
|
-
disabledFont: colors.darkGrey,
|
|
344
|
-
disabled: 0.34,
|
|
345
|
-
notVisitedOpacity: 0.64
|
|
346
|
-
}
|
|
347
|
-
};
|
|
348
|
-
exports.theme = theme;
|
|
349
|
-
var spaces = {
|
|
350
|
-
xxsmall: "6px",
|
|
351
|
-
xsmall: "16px",
|
|
352
|
-
small: "24px",
|
|
353
|
-
medium: "36px",
|
|
354
|
-
large: "48px",
|
|
355
|
-
xlarge: "64px",
|
|
356
|
-
xxlarge: "100px"
|
|
357
|
-
};
|
|
358
|
-
exports.spaces = spaces;
|
|
359
|
-
var responsiveSizes = {
|
|
360
|
-
mobileSmall: "320",
|
|
361
|
-
mobileMedium: "375",
|
|
362
|
-
mobileLarge: "425",
|
|
363
|
-
tablet: "768",
|
|
364
|
-
laptop: "1024",
|
|
365
|
-
desktop: "1440"
|
|
366
|
-
};
|
|
367
|
-
exports.responsiveSizes = responsiveSizes;
|
|
368
|
-
var typeface = {
|
|
369
|
-
body: {
|
|
370
|
-
fontSize: "16px",
|
|
371
|
-
letterSpacing: "0.5",
|
|
372
|
-
textTransform: "initial"
|
|
373
|
-
},
|
|
374
|
-
altBody: {
|
|
375
|
-
fontSize: "14px",
|
|
376
|
-
letterSpacing: "0.25",
|
|
377
|
-
textTransform: "initial"
|
|
378
|
-
},
|
|
379
|
-
subtitle: {
|
|
380
|
-
fontSize: "16px",
|
|
381
|
-
letterSpacing: "0.15",
|
|
382
|
-
textTransform: "initial"
|
|
383
|
-
},
|
|
384
|
-
altSubtitle: {
|
|
385
|
-
fontSize: "14px",
|
|
386
|
-
letterSpacing: "0.1",
|
|
387
|
-
textTransform: "initial"
|
|
388
|
-
},
|
|
389
|
-
caption: {
|
|
390
|
-
fontSize: "12px",
|
|
391
|
-
letterSpacing: "0.4",
|
|
392
|
-
textTransform: "initial"
|
|
393
|
-
},
|
|
394
|
-
overline: {
|
|
395
|
-
fontSize: "12px",
|
|
396
|
-
letterSpacing: "2",
|
|
397
|
-
textTransform: "uppercase"
|
|
398
|
-
}
|
|
399
|
-
};
|
|
400
|
-
exports.typeface = typeface;
|
|
@@ -1,205 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
-
|
|
5
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
6
|
-
|
|
7
|
-
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
|
|
9
|
-
var _react2 = require("@storybook/react");
|
|
10
|
-
|
|
11
|
-
var _addonActions = require("@storybook/addon-actions");
|
|
12
|
-
|
|
13
|
-
var _addonKnobs = require("@storybook/addon-knobs");
|
|
14
|
-
|
|
15
|
-
var _moment = _interopRequireDefault(require("moment"));
|
|
16
|
-
|
|
17
|
-
var _readme = _interopRequireDefault(require("./readme.md"));
|
|
18
|
-
|
|
19
|
-
var _Date = _interopRequireDefault(require("./Date"));
|
|
20
|
-
|
|
21
|
-
var onChange = (0, _addonActions.action)("onChange");
|
|
22
|
-
|
|
23
|
-
onChange.toString = function () {
|
|
24
|
-
return "onChangeHandler";
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
(0, _react2.storiesOf)("Form Components|Date", module).add("Component", function () {
|
|
28
|
-
return _react["default"].createElement("div", null, _react["default"].createElement("div", null, _react["default"].createElement(_Date["default"], {
|
|
29
|
-
name: "date1",
|
|
30
|
-
format: "dd-MM-yyyy",
|
|
31
|
-
label: "Date",
|
|
32
|
-
theme: "light",
|
|
33
|
-
assistiveText: "Assistive text",
|
|
34
|
-
onInputChange: function onInputChange(event) {
|
|
35
|
-
return console.log(event);
|
|
36
|
-
},
|
|
37
|
-
onChange: onChange
|
|
38
|
-
}), _react["default"].createElement(_Date["default"], {
|
|
39
|
-
name: "date2",
|
|
40
|
-
format: "dd-MM-yy",
|
|
41
|
-
value: (0, _moment["default"])("03/12/1995", "DD/MM/YYYY"),
|
|
42
|
-
label: "Default value",
|
|
43
|
-
theme: "light",
|
|
44
|
-
assistiveText: "Assistive text",
|
|
45
|
-
onInputChange: function onInputChange(event) {
|
|
46
|
-
return console.log(event);
|
|
47
|
-
},
|
|
48
|
-
onChange: onChange
|
|
49
|
-
}), _react["default"].createElement(_Date["default"], {
|
|
50
|
-
name: "date3",
|
|
51
|
-
format: "dd/MM/yy",
|
|
52
|
-
label: "Invalid Date",
|
|
53
|
-
theme: "light",
|
|
54
|
-
assistiveText: "Assistive text",
|
|
55
|
-
onInputChange: function onInputChange(event) {
|
|
56
|
-
return console.log(event);
|
|
57
|
-
},
|
|
58
|
-
onChange: onChange,
|
|
59
|
-
invalid: true
|
|
60
|
-
}), _react["default"].createElement(_Date["default"], {
|
|
61
|
-
name: "date4",
|
|
62
|
-
format: "dd/MM/yy",
|
|
63
|
-
label: "Disabled Date",
|
|
64
|
-
theme: "light",
|
|
65
|
-
assistiveText: "Assistive text",
|
|
66
|
-
onInputChange: function onInputChange(event) {
|
|
67
|
-
return console.log(event);
|
|
68
|
-
},
|
|
69
|
-
onChange: onChange,
|
|
70
|
-
invalid: true,
|
|
71
|
-
disabled: true
|
|
72
|
-
}), _react["default"].createElement(_Date["default"], {
|
|
73
|
-
name: "date5",
|
|
74
|
-
format: "dd/MM/yy",
|
|
75
|
-
value: (0, _moment["default"])("03/12/1995", "DD/MM/YYYY"),
|
|
76
|
-
label: "Disabled Default Date",
|
|
77
|
-
theme: "light",
|
|
78
|
-
assistiveText: "Assistive text",
|
|
79
|
-
onInputChange: function onInputChange(event) {
|
|
80
|
-
return console.log(event);
|
|
81
|
-
},
|
|
82
|
-
onChange: onChange,
|
|
83
|
-
invalid: true,
|
|
84
|
-
disabled: true
|
|
85
|
-
}), _react["default"].createElement(_Date["default"], {
|
|
86
|
-
name: "date6",
|
|
87
|
-
format: "dd/MM/yy",
|
|
88
|
-
label: "Required Date",
|
|
89
|
-
theme: "light",
|
|
90
|
-
assistiveText: "Assistive text",
|
|
91
|
-
onInputChange: function onInputChange(event) {
|
|
92
|
-
return console.log(event);
|
|
93
|
-
},
|
|
94
|
-
onChange: onChange,
|
|
95
|
-
required: true
|
|
96
|
-
})), _react["default"].createElement("div", {
|
|
97
|
-
style: {
|
|
98
|
-
background: "black",
|
|
99
|
-
height: "150px"
|
|
100
|
-
}
|
|
101
|
-
}, _react["default"].createElement(_Date["default"], {
|
|
102
|
-
name: "date1",
|
|
103
|
-
format: "dd/MM/yyyy",
|
|
104
|
-
label: "Date",
|
|
105
|
-
theme: "dark",
|
|
106
|
-
assistiveText: "Assistive text",
|
|
107
|
-
onInputChange: function onInputChange(event) {
|
|
108
|
-
return console.log(event);
|
|
109
|
-
},
|
|
110
|
-
onChange: onChange
|
|
111
|
-
}), _react["default"].createElement(_Date["default"], {
|
|
112
|
-
name: "date2",
|
|
113
|
-
format: "dd/MM/yyyy",
|
|
114
|
-
value: (0, _moment["default"])("03/12/1995", "DD/MM/YYYY"),
|
|
115
|
-
label: "Default value",
|
|
116
|
-
theme: "dark",
|
|
117
|
-
assistiveText: "Assistive text",
|
|
118
|
-
onInputChange: function onInputChange(event) {
|
|
119
|
-
return console.log(event);
|
|
120
|
-
},
|
|
121
|
-
onChange: onChange
|
|
122
|
-
}), _react["default"].createElement(_Date["default"], {
|
|
123
|
-
name: "date3",
|
|
124
|
-
format: "dd/MM/yy",
|
|
125
|
-
label: "Invalid Date",
|
|
126
|
-
theme: "dark",
|
|
127
|
-
assistiveText: "Assistive text",
|
|
128
|
-
onInputChange: function onInputChange(event) {
|
|
129
|
-
return console.log(event);
|
|
130
|
-
},
|
|
131
|
-
onChange: onChange,
|
|
132
|
-
invalid: true
|
|
133
|
-
}), _react["default"].createElement(_Date["default"], {
|
|
134
|
-
name: "date4",
|
|
135
|
-
format: "dd/MM/yy",
|
|
136
|
-
label: "Disabled Date",
|
|
137
|
-
theme: "dark",
|
|
138
|
-
assistiveText: "Assistive text",
|
|
139
|
-
onInputChange: function onInputChange(event) {
|
|
140
|
-
return console.log(event);
|
|
141
|
-
},
|
|
142
|
-
onChange: onChange,
|
|
143
|
-
invalid: true,
|
|
144
|
-
disabled: true
|
|
145
|
-
}), _react["default"].createElement(_Date["default"], {
|
|
146
|
-
name: "date5",
|
|
147
|
-
format: "dd/MM/yy",
|
|
148
|
-
value: (0, _moment["default"])("03/12/1995", "DD/MM/YYYY"),
|
|
149
|
-
label: "Disabled Default Date",
|
|
150
|
-
theme: "dark",
|
|
151
|
-
assistiveText: "Assistive text",
|
|
152
|
-
onInputChange: function onInputChange(event) {
|
|
153
|
-
return console.log(event);
|
|
154
|
-
},
|
|
155
|
-
onChange: onChange,
|
|
156
|
-
invalid: true,
|
|
157
|
-
disabled: true
|
|
158
|
-
}), _react["default"].createElement(_Date["default"], {
|
|
159
|
-
name: "date6",
|
|
160
|
-
format: "dd/MM/yy",
|
|
161
|
-
label: "Required Date",
|
|
162
|
-
theme: "dark",
|
|
163
|
-
assistiveText: "Assistive text",
|
|
164
|
-
onInputChange: function onInputChange(event) {
|
|
165
|
-
return console.log(event);
|
|
166
|
-
},
|
|
167
|
-
onChange: onChange,
|
|
168
|
-
required: true
|
|
169
|
-
})));
|
|
170
|
-
}, {
|
|
171
|
-
notes: {
|
|
172
|
-
markdown: _readme["default"]
|
|
173
|
-
}
|
|
174
|
-
});
|
|
175
|
-
|
|
176
|
-
var knobProps = function knobProps() {
|
|
177
|
-
return {
|
|
178
|
-
label: (0, _addonKnobs.text)("Label", "Label"),
|
|
179
|
-
assistiveText: (0, _addonKnobs.text)("Assistive Text", "Assistive Text"),
|
|
180
|
-
format: (0, _addonKnobs.text)("Format", "dd/MM/yyyy"),
|
|
181
|
-
theme: (0, _addonKnobs.select)("Theme", {
|
|
182
|
-
light: "light",
|
|
183
|
-
dark: "dark"
|
|
184
|
-
}, "light"),
|
|
185
|
-
disabled: (0, _addonKnobs["boolean"])("Disabled", false),
|
|
186
|
-
dissableRipple: (0, _addonKnobs["boolean"])("Disable Ripple", false),
|
|
187
|
-
invalid: (0, _addonKnobs["boolean"])("Invalid", false),
|
|
188
|
-
required: (0, _addonKnobs["boolean"])("Required", false)
|
|
189
|
-
};
|
|
190
|
-
};
|
|
191
|
-
|
|
192
|
-
(0, _react2.storiesOf)("Form Components|Date", module).add("Knobs example", function () {
|
|
193
|
-
var props = knobProps();
|
|
194
|
-
return _react["default"].createElement("div", {
|
|
195
|
-
style: {
|
|
196
|
-
background: props.theme === "dark" && "black" || "transparent"
|
|
197
|
-
}
|
|
198
|
-
}, _react["default"].createElement(_Date["default"], (0, _extends2["default"])({}, props, {
|
|
199
|
-
onChange: onChange
|
|
200
|
-
})));
|
|
201
|
-
}, {
|
|
202
|
-
notes: {
|
|
203
|
-
markdown: _readme["default"]
|
|
204
|
-
}
|
|
205
|
-
});
|
package/dist/date/calendar.svg
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"/><path d="M0 0h24v24H0z" fill="none"/></svg>
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" width="24"><path d="M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z" fill="#ffed00"/><path d="M0 0h24v24H0z" fill="none"/></svg>
|
package/dist/date/readme.md
DELETED
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
# DXC Date Component
|
|
2
|
-
|
|
3
|
-
## Props
|
|
4
|
-
|
|
5
|
-
<table>
|
|
6
|
-
<tr style="background-color: grey">
|
|
7
|
-
<td>Name</td>
|
|
8
|
-
<td>Default</td>
|
|
9
|
-
<td>Description</td>
|
|
10
|
-
</tr>
|
|
11
|
-
<tr>
|
|
12
|
-
<td>value: string</td>
|
|
13
|
-
<td></td>
|
|
14
|
-
<td>The value of the input element.</td>
|
|
15
|
-
</tr>
|
|
16
|
-
<tr>
|
|
17
|
-
<td>format: string</td>
|
|
18
|
-
<td></td>
|
|
19
|
-
<td>The format in which the date value will be displayed. User must use this format when editing the input.</td>
|
|
20
|
-
</tr>
|
|
21
|
-
<tr>
|
|
22
|
-
<td>label: string</td>
|
|
23
|
-
<td></td>
|
|
24
|
-
<td>Text to be placed next to the date component.</td>
|
|
25
|
-
</tr>
|
|
26
|
-
<tr>
|
|
27
|
-
<td>theme: 'light' | 'dark'</td>
|
|
28
|
-
<td><code>'light'</code></td>
|
|
29
|
-
<td>Uses one of the available component themes.</td>
|
|
30
|
-
</tr>
|
|
31
|
-
<tr>
|
|
32
|
-
<td>name: string</td>
|
|
33
|
-
<td></td>
|
|
34
|
-
<td>Name attribute of the input element.</td>
|
|
35
|
-
</tr>
|
|
36
|
-
<tr>
|
|
37
|
-
<td>iconSrc: string</td>
|
|
38
|
-
<td></td>
|
|
39
|
-
<td>The path of an icon to replace the default calendar icon.</td>
|
|
40
|
-
</tr>
|
|
41
|
-
<tr>
|
|
42
|
-
<td>disabled: boolean</td>
|
|
43
|
-
<td><code>false</code></td>
|
|
44
|
-
<td>If true, the component will be disabled.</td>
|
|
45
|
-
</tr>
|
|
46
|
-
<tr>
|
|
47
|
-
<td>required: boolean</td>
|
|
48
|
-
<td><code>false</code></td>
|
|
49
|
-
<td>If true, a red asterisk will appear before the label to indicate to the user that the field is required.</td>
|
|
50
|
-
</tr>
|
|
51
|
-
<tr>
|
|
52
|
-
<td>assistiveText: string</td>
|
|
53
|
-
<td></td>
|
|
54
|
-
<td>Assistive text to be placed at the bottom of the input.</td>
|
|
55
|
-
</tr>
|
|
56
|
-
<tr>
|
|
57
|
-
<td>invalid: boolean</td>
|
|
58
|
-
<td><code>false</code></td>
|
|
59
|
-
<td>If true, the input will change its appearence, showing that the value is not valid.</td>
|
|
60
|
-
</tr>
|
|
61
|
-
<tr>
|
|
62
|
-
<td>disableRipple: boolean</td>
|
|
63
|
-
<td><code>false</code></td>
|
|
64
|
-
<td>If true, the ripple effect will be disabled.</td>
|
|
65
|
-
</tr>
|
|
66
|
-
<tr>
|
|
67
|
-
<td>onChange: function</td>
|
|
68
|
-
<td></td>
|
|
69
|
-
<td>This function will be called when the user types within the input. A string with the current value will be passed to this function and also a date object if the string typed is a valid date<br>
|
|
70
|
-
</td>
|
|
71
|
-
</tr>
|
|
72
|
-
</table>
|
|
73
|
-
|