@inntechcorp/it-design 2.0.217 → 2.0.220
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/dist/accordion/item/styled.d.ts +0 -1
- package/dist/accordion/submenu/styled.d.ts +2 -3
- package/dist/alert/styled.d.ts +0 -1
- package/dist/alink/styled.d.ts +1 -2
- package/dist/back-top/styled.d.ts +0 -1
- package/dist/button/styled.d.ts +1 -2
- package/dist/calendar/day/styled.d.ts +4 -5
- package/dist/calendar/header/styled.d.ts +0 -1
- package/dist/calendar/index.d.ts +7 -8
- package/dist/calendar/styled.d.ts +0 -1
- package/dist/card/styles.d.ts +5 -6
- package/dist/checkbox/group/index.d.ts +0 -1
- package/dist/checkbox/group/styled.d.ts +0 -1
- package/dist/checkbox/styled.d.ts +0 -1
- package/dist/context/ITDContext.d.ts +0 -1
- package/dist/context/styled.d.ts +0 -1
- package/dist/datepicker/index.d.ts +0 -1
- package/dist/datepicker/styled.d.ts +13 -16
- package/dist/flex/styled.d.ts +6 -7
- package/dist/form/context/FormContext.d.ts +0 -1
- package/dist/form/control/styled.d.ts +0 -1
- package/dist/form/group/styled.d.ts +0 -1
- package/dist/form/item/Item.d.ts +0 -1
- package/dist/form/wrapper/FormWrapper.d.ts +0 -1
- package/dist/helpers/format/ToKebabCase.d.ts +27 -1
- package/dist/helpers/svg/styles.d.ts +2 -3
- package/dist/hooks/useCoreFetch.d.ts +10 -10
- package/dist/html/header/styled.d.ts +0 -1
- package/dist/image/styled.d.ts +0 -1
- package/dist/index.cjs.js +120 -119
- package/dist/index.d.ts +46 -20
- package/dist/index.esm.js +120 -119
- package/dist/input/index.d.ts +0 -1
- package/dist/input/styled.d.ts +5 -6
- package/dist/modal/container/styled.d.ts +0 -1
- package/dist/modal/context/ModalContext.d.ts +0 -1
- package/dist/modal/modal/styled.d.ts +4 -5
- package/dist/notification/context/NotificationsContext.d.ts +0 -1
- package/dist/progress/styled.d.ts +0 -1
- package/dist/result/styled.d.ts +0 -1
- package/dist/select/menu/styled.d.ts +0 -1
- package/dist/select/option/Option.d.ts +0 -1
- package/dist/select/option/styled.d.ts +0 -1
- package/dist/select/styled.d.ts +2 -3
- package/dist/select/toggle/label/floating/styled.d.ts +0 -1
- package/dist/select/toggle/label/single/SingleLabel.d.ts +0 -1
- package/dist/select/toggle/label/single/styled.d.ts +1 -2
- package/dist/select/toggle/styled.d.ts +3 -4
- package/dist/spin/styled.d.ts +0 -1
- package/dist/status/styled.d.ts +0 -1
- package/dist/stories/Accordion.stories.d.ts +1 -2
- package/dist/stories/Alert.stories.d.ts +1 -2
- package/dist/stories/Button.stories.d.ts +1 -2
- package/dist/stories/Card.stories.d.ts +0 -1
- package/dist/stories/Checkbox.stories.d.ts +1 -2
- package/dist/stories/CheckboxGroup.stories.d.ts +1 -2
- package/dist/stories/CheckboxGroupControl.stories.d.ts +1 -2
- package/dist/stories/DatePicker.stories.d.ts +1 -2
- package/dist/stories/Form.stories.d.ts +0 -1
- package/dist/stories/Header.stories.d.ts +3 -4
- package/dist/stories/Input.stories.d.ts +1 -2
- package/dist/stories/ModalManager.stories.d.ts +0 -1
- package/dist/stories/Page.stories.d.ts +0 -1
- package/dist/stories/Progress.stories.d.ts +1 -2
- package/dist/stories/Result.stories.d.ts +1 -2
- package/dist/stories/Select.stories.d.ts +1 -2
- package/dist/stories/Status.stories.d.ts +1 -2
- package/dist/stories/Table.stories.d.ts +0 -1
- package/dist/stories/Tabs.stories.d.ts +1 -2
- package/dist/stories/TextArea.stories.d.ts +1 -2
- package/dist/stories/Upload.stories.d.ts +1 -2
- package/dist/stories/select.styled.d.ts +0 -1
- package/dist/switch/index.d.ts +0 -1
- package/dist/switch/styled.d.ts +0 -1
- package/dist/table/styled.d.ts +2 -3
- package/dist/tabs/styles.d.ts +2 -3
- package/dist/textarea/index.d.ts +0 -1
- package/dist/textarea/styled.d.ts +3 -4
- package/dist/tinyscrollbar/scroll.styled.d.ts +0 -1
- package/dist/tinyscrollbar/styled.d.ts +3 -4
- package/dist/types/AccordionSubMenuProps.d.ts +0 -1
- package/dist/types/ChildrenProps.d.ts +0 -1
- package/dist/types/FormProps.d.ts +1 -1
- package/dist/types/ResultProps.d.ts +0 -1
- package/dist/types/TableProps.d.ts +0 -1
- package/dist/upload/index.d.ts +0 -1
- package/dist/upload/styled.d.ts +7 -8
- package/package.json +55 -56
- package/dist/output-DCvuWNga.css +0 -241
- package/dist/output-DfOH-aLb.css +0 -241
package/dist/index.d.ts
CHANGED
|
@@ -119,7 +119,33 @@ declare function Base64Encode(input: string): string;
|
|
|
119
119
|
|
|
120
120
|
declare function Base64Decode(encoded: string): string;
|
|
121
121
|
|
|
122
|
-
|
|
122
|
+
/**
|
|
123
|
+
* What are SEO stop words?
|
|
124
|
+
*
|
|
125
|
+
* SEO stop words (Google stop words, stopwords) are generic common words
|
|
126
|
+
* (and, or, besides, in, a, the, do, they, etc.) that Google may omit in
|
|
127
|
+
* search query processing because they don’t usually affect the meaning of the query.
|
|
128
|
+
* These words are actually used for grammatical purposes and don’t communicate a message on their own.
|
|
129
|
+
*
|
|
130
|
+
* For example, if you google something like “best carrot cake recipe” and “the best carrot cake recipe”,
|
|
131
|
+
* the SERP will anyway feature links to pages with carrot cake recipes. In this case, the does not
|
|
132
|
+
* add any meaning to the query.
|
|
133
|
+
*
|
|
134
|
+
*/
|
|
135
|
+
/**
|
|
136
|
+
*
|
|
137
|
+
* ### toKebabCase
|
|
138
|
+
*
|
|
139
|
+
* First, removes special characters from the provided string value and converts it to lowercase.
|
|
140
|
+
*
|
|
141
|
+
* @param value The input string.
|
|
142
|
+
* @param removeStopWords Removes stop words if true.
|
|
143
|
+
* @param removeNumbers Removes numbers if true.
|
|
144
|
+
*
|
|
145
|
+
* @returns If `toKebabCase("bu 123 bir örnek 456 cümle", true, true)` is provided, it will return `"ornek-cumle"`.
|
|
146
|
+
*
|
|
147
|
+
*/
|
|
148
|
+
declare function toKebabCase(value: string, removeStopWords?: boolean, removeNumbers?: boolean): string;
|
|
123
149
|
|
|
124
150
|
type Nullable<T> = T | null;
|
|
125
151
|
type THandler = Nullable<(value: string | null) => void>;
|
|
@@ -267,16 +293,16 @@ declare const useComponentSize: (comRef: RefObject<any>) => {
|
|
|
267
293
|
declare const useCoreFetch: () => {
|
|
268
294
|
fetch: ({ action, requestMethod, addOrigin, params, queries, headers, cancelable, onFetched, onError, onCanceled, onProgress, }: {
|
|
269
295
|
action: string;
|
|
270
|
-
requestMethod?: string
|
|
271
|
-
addOrigin?: boolean
|
|
272
|
-
params?: {}
|
|
273
|
-
queries?: {}
|
|
274
|
-
headers?: {}
|
|
275
|
-
cancelable?: boolean
|
|
276
|
-
onFetched?: (
|
|
277
|
-
onError?: (
|
|
278
|
-
onCanceled?: (
|
|
279
|
-
onProgress?: (
|
|
296
|
+
requestMethod?: string;
|
|
297
|
+
addOrigin?: boolean;
|
|
298
|
+
params?: {};
|
|
299
|
+
queries?: {};
|
|
300
|
+
headers?: {};
|
|
301
|
+
cancelable?: boolean;
|
|
302
|
+
onFetched?: (result: any) => void;
|
|
303
|
+
onError?: (err: string, code: number) => void;
|
|
304
|
+
onCanceled?: (message: Cancel) => void;
|
|
305
|
+
onProgress?: (event: AxiosProgressEvent) => void;
|
|
280
306
|
}) => Promise<void>;
|
|
281
307
|
cancel: () => void;
|
|
282
308
|
};
|
|
@@ -504,13 +530,13 @@ type AccordionMenuProps = AccordionProps & {
|
|
|
504
530
|
};
|
|
505
531
|
declare const Accordion: FunctionComponent<AccordionMenuProps> & AccordionMenuSubComponents;
|
|
506
532
|
|
|
507
|
-
declare const Calendar:
|
|
508
|
-
value?: string
|
|
509
|
-
defaultValue?: string
|
|
510
|
-
className?: string
|
|
511
|
-
onChange?: ((value: CalendarValueProps) => void) | null
|
|
512
|
-
disabledDate?: (
|
|
513
|
-
}
|
|
533
|
+
declare const Calendar: ({ value, defaultValue, className, onChange, disabledDate }: {
|
|
534
|
+
value?: string;
|
|
535
|
+
defaultValue?: string;
|
|
536
|
+
className?: string;
|
|
537
|
+
onChange?: ((value: CalendarValueProps) => void) | null;
|
|
538
|
+
disabledDate?: (date: moment$1.Moment) => boolean;
|
|
539
|
+
}) => react_jsx_runtime.JSX.Element | null;
|
|
514
540
|
|
|
515
541
|
declare const DatePicker: react.ForwardRefExoticComponent<DatePickerProps & react.RefAttributes<ITDImperativeFuncProps>>;
|
|
516
542
|
|
|
@@ -634,7 +660,7 @@ declare const _default$1: react__default.MemoExoticComponent<({ value, checked,
|
|
|
634
660
|
|
|
635
661
|
declare function InlineSelect({ label, value, children, single, minWidth, className, onChange }: {
|
|
636
662
|
label?: string | undefined;
|
|
637
|
-
value?:
|
|
663
|
+
value?: never[] | undefined;
|
|
638
664
|
children?: null | undefined;
|
|
639
665
|
single?: boolean | undefined;
|
|
640
666
|
minWidth?: number | undefined;
|
|
@@ -1007,7 +1033,7 @@ type FormProps = {
|
|
|
1007
1033
|
onFieldUpdate?: (update: FieldUpdateProps) => void;
|
|
1008
1034
|
useQueryString?: boolean;
|
|
1009
1035
|
className?: string;
|
|
1010
|
-
ref
|
|
1036
|
+
ref?: RefObject<FormContextType>;
|
|
1011
1037
|
name: string;
|
|
1012
1038
|
};
|
|
1013
1039
|
type FormValueProps = string | number | object | boolean;
|