@indico-data/design-system 2.17.2 → 2.19.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.css +616 -184
- package/lib/index.d.ts +17 -21
- package/lib/index.esm.css +616 -184
- package/lib/index.esm.js +36 -462
- package/lib/index.esm.js.map +1 -1
- package/lib/index.js +37 -463
- package/lib/index.js.map +1 -1
- package/lib/src/components/button/Button.stories.d.ts +1 -0
- package/lib/src/components/forms/input/Input.d.ts +5 -7
- package/lib/src/components/forms/passwordInput/PasswordInput.d.ts +5 -7
- package/lib/src/components/forms/subcomponents/Label.d.ts +6 -3
- package/lib/src/components/forms/textarea/Textarea.d.ts +5 -7
- package/lib/src/legacy/components/modals/ModalBase/ModalBase.d.ts +0 -1
- package/lib/src/storybook/labelArgTypes.d.ts +3 -0
- package/package.json +1 -1
- package/src/components/button/Button.mdx +6 -3
- package/src/components/button/Button.stories.tsx +8 -0
- package/src/components/button/Button.tsx +14 -6
- package/src/components/button/__tests__/Button.test.tsx +38 -0
- package/src/components/button/styles/Button.scss +14 -22
- package/src/components/button/styles/_variables.scss +77 -4
- package/src/components/forms/checkbox/styles/Checkbox.scss +3 -3
- package/src/components/forms/input/Input.mdx +15 -2
- package/src/components/forms/input/Input.stories.tsx +10 -45
- package/src/components/forms/input/Input.tsx +22 -15
- package/src/components/forms/input/styles/Input.scss +2 -15
- package/src/components/forms/passwordInput/PasswordInput.mdx +10 -8
- package/src/components/forms/passwordInput/PasswordInput.stories.tsx +3 -44
- package/src/components/forms/passwordInput/PasswordInput.tsx +20 -15
- package/src/components/forms/passwordInput/styles/PasswordInput.scss +2 -15
- package/src/components/forms/radio/styles/Radio.scss +3 -3
- package/src/components/forms/select/styles/Select.scss +21 -4
- package/src/components/forms/subcomponents/Label.tsx +29 -6
- package/src/components/forms/subcomponents/__tests__/Label.test.tsx +63 -15
- package/src/components/forms/textarea/Textarea.mdx +12 -2
- package/src/components/forms/textarea/Textarea.stories.tsx +4 -46
- package/src/components/forms/textarea/Textarea.tsx +15 -13
- package/src/components/forms/textarea/styles/Textarea.scss +2 -14
- package/src/components/forms/toggle/styles/Toggle.scss +2 -2
- package/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.scss +441 -0
- package/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.tsx +3 -4
- package/src/legacy/components/modals/ModalBase/ModalBase.tsx +5 -1
- package/src/storybook/labelArgTypes.ts +50 -0
- package/src/styles/globals.scss +11 -0
- package/src/styles/index.scss +2 -2
- package/src/styles/variables/themes/dark.scss +8 -7
- package/src/styles/variables/themes/light.scss +1 -0
- package/lib/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.styles.d.ts +0 -1
- package/src/legacy/components/inputs/NoInputDatePicker/NoInputDatePicker.styles.ts +0 -449
package/lib/index.d.ts
CHANGED
|
@@ -681,7 +681,6 @@ type ModalBaseProps = PermafrostComponent$1 & {
|
|
|
681
681
|
children: React$1.ReactNode | React$1.ReactNode[];
|
|
682
682
|
clickToDismiss?(): void;
|
|
683
683
|
describedBy?: string;
|
|
684
|
-
/** a selector representing the desired parent; defaults to `#root` */
|
|
685
684
|
node?: string;
|
|
686
685
|
open: boolean;
|
|
687
686
|
preventEscDismiss?: boolean;
|
|
@@ -920,23 +919,28 @@ declare const Icon: ({ name, size, className, ariaLabel, ...props }: IconProps)
|
|
|
920
919
|
|
|
921
920
|
declare const Table: <T>(props: TableProps<T>) => react_jsx_runtime.JSX.Element;
|
|
922
921
|
|
|
923
|
-
interface
|
|
922
|
+
interface LabelProps {
|
|
924
923
|
label: string;
|
|
925
924
|
name: string;
|
|
925
|
+
isRequired?: boolean;
|
|
926
|
+
}
|
|
927
|
+
interface WithLabelProps extends LabelProps {
|
|
928
|
+
hasHiddenLabel?: boolean;
|
|
929
|
+
}
|
|
930
|
+
|
|
931
|
+
interface InputProps extends WithLabelProps {
|
|
926
932
|
value?: string | undefined;
|
|
927
|
-
placeholder
|
|
933
|
+
placeholder?: string;
|
|
928
934
|
onChange: (e: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
929
|
-
isRequired?: boolean;
|
|
930
935
|
isDisabled?: boolean;
|
|
931
936
|
errorMessage?: string | undefined;
|
|
932
937
|
helpText?: string;
|
|
933
|
-
hasHiddenLabel?: boolean;
|
|
934
938
|
iconName?: IconName$1;
|
|
935
939
|
isClearable?: boolean;
|
|
936
940
|
className?: string;
|
|
937
941
|
defaultValue?: string;
|
|
938
942
|
}
|
|
939
|
-
declare const
|
|
943
|
+
declare const LabeledInput: React$1.ForwardRefExoticComponent<Omit<InputProps & React$1.RefAttributes<HTMLInputElement> & WithLabelProps, "ref"> & React$1.RefAttributes<any>>;
|
|
940
944
|
|
|
941
945
|
interface RadioProps {
|
|
942
946
|
ref?: React$1.LegacyRef<HTMLInputElement>;
|
|
@@ -976,18 +980,14 @@ interface ToggleProps {
|
|
|
976
980
|
}
|
|
977
981
|
declare const Toggle: React$1.ForwardRefExoticComponent<Omit<ToggleProps, "ref"> & React$1.RefAttributes<HTMLInputElement>>;
|
|
978
982
|
|
|
979
|
-
interface TextareaProps {
|
|
983
|
+
interface TextareaProps extends WithLabelProps {
|
|
980
984
|
ref?: React$1.LegacyRef<HTMLTextAreaElement>;
|
|
981
|
-
|
|
982
|
-
name: string;
|
|
983
|
-
placeholder: string;
|
|
985
|
+
placeholder?: string;
|
|
984
986
|
value?: string | undefined;
|
|
985
987
|
onChange: (e: React$1.ChangeEvent<HTMLTextAreaElement>) => void;
|
|
986
|
-
isRequired?: boolean;
|
|
987
988
|
isDisabled?: boolean;
|
|
988
989
|
errorMessage?: string | undefined;
|
|
989
990
|
helpText?: string;
|
|
990
|
-
hasHiddenLabel?: boolean;
|
|
991
991
|
rows?: number;
|
|
992
992
|
cols?: number;
|
|
993
993
|
readonly?: boolean;
|
|
@@ -997,24 +997,20 @@ interface TextareaProps {
|
|
|
997
997
|
autofocus?: boolean;
|
|
998
998
|
defaultValue?: string;
|
|
999
999
|
}
|
|
1000
|
-
declare const
|
|
1000
|
+
declare const LabeledTextarea: React$1.ForwardRefExoticComponent<Omit<Omit<TextareaProps, "ref"> & React$1.RefAttributes<HTMLTextAreaElement> & WithLabelProps, "ref"> & React$1.RefAttributes<any>>;
|
|
1001
1001
|
|
|
1002
|
-
interface PasswordInputProps {
|
|
1002
|
+
interface PasswordInputProps extends WithLabelProps {
|
|
1003
1003
|
ref?: React$1.LegacyRef<HTMLInputElement>;
|
|
1004
|
-
label: string;
|
|
1005
1004
|
value?: string | undefined;
|
|
1006
|
-
|
|
1007
|
-
placeholder: string;
|
|
1005
|
+
placeholder?: string;
|
|
1008
1006
|
onChange: (e: React$1.ChangeEvent<HTMLInputElement>) => void;
|
|
1009
|
-
isRequired?: boolean;
|
|
1010
1007
|
isDisabled?: boolean;
|
|
1011
1008
|
errorMessage?: string | undefined;
|
|
1012
1009
|
helpText?: string;
|
|
1013
|
-
hasHiddenLabel?: boolean;
|
|
1014
1010
|
hasShowPassword?: boolean;
|
|
1015
1011
|
defaultValue?: string;
|
|
1016
1012
|
}
|
|
1017
|
-
declare const
|
|
1013
|
+
declare const LabeledPasswordInput: React$1.ForwardRefExoticComponent<Omit<Omit<PasswordInputProps, "ref"> & React$1.RefAttributes<HTMLInputElement> & WithLabelProps, "ref"> & React$1.RefAttributes<any>>;
|
|
1018
1014
|
|
|
1019
1015
|
interface SelectProps<OptionType extends SelectOption> extends Props$r<OptionType> {
|
|
1020
1016
|
options: OptionType[];
|
|
@@ -1053,4 +1049,4 @@ type Props = {
|
|
|
1053
1049
|
};
|
|
1054
1050
|
declare const Card: React$1.FC<Props>;
|
|
1055
1051
|
|
|
1056
|
-
export { animation as ANIMATION, Radio$1 as AbstractRadio, RadioGroup as AbstractRadioGroup, Accordion, breakpoints as BREAKPOINT, BarSpinner, BorderSelect, Button, allColors as COLORS, Card, Checkbox, CirclePulse, CircleSpinner, Col, ConfirmModal, Container, DatePicker, EditableInput, Form, GlobalStyles, Icon, IconButton, Input, Button$1 as LegacyButton, ListTable, LoadingAwareContainer, LoadingList, margin as MARGINS, MATH, mediaQueries as MEDIA_QUERIES, ModalBase, MultiCombobox, NoInputDatePicker, NumberInput, padding as PADDINGS, Pagination, PasswordInput, PercentageRing, Radio$2 as Radio, RadioGroup$1 as RadioGroup, Radio as RadioInput, RandomLoadingMessage, Row, spacings as SPACING, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select$1 as Select, Select as SelectInput, Shrug, SingleCombobox, Skeleton, typography as TYPOGRAPHY, Table, TextInput, TextTruncate, Textarea, Toggle$1 as Toggle, Toggle as ToggleInput, Tooltip, color as colorUtils, number as numberUtils, string as stringUtils };
|
|
1052
|
+
export { animation as ANIMATION, Radio$1 as AbstractRadio, RadioGroup as AbstractRadioGroup, Accordion, breakpoints as BREAKPOINT, BarSpinner, BorderSelect, Button, allColors as COLORS, Card, Checkbox, CirclePulse, CircleSpinner, Col, ConfirmModal, Container, DatePicker, EditableInput, Form, GlobalStyles, Icon, IconButton, LabeledInput as Input, Button$1 as LegacyButton, ListTable, LoadingAwareContainer, LoadingList, margin as MARGINS, MATH, mediaQueries as MEDIA_QUERIES, ModalBase, MultiCombobox, NoInputDatePicker, NumberInput, padding as PADDINGS, Pagination, LabeledPasswordInput as PasswordInput, PercentageRing, Radio$2 as Radio, RadioGroup$1 as RadioGroup, Radio as RadioInput, RandomLoadingMessage, Row, spacings as SPACING, SearchInput, Section, SectionBlock, SectionBody, SectionHeader, SectionTable, Select$1 as Select, Select as SelectInput, Shrug, SingleCombobox, Skeleton, typography as TYPOGRAPHY, Table, TextInput, TextTruncate, LabeledTextarea as Textarea, Toggle$1 as Toggle, Toggle as ToggleInput, Tooltip, color as colorUtils, number as numberUtils, string as stringUtils };
|