@alphakits/ui 2.0.12 → 2.1.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/dist/badge/component.d.ts +1 -1
- package/dist/box/component.d.ts +2 -2
- package/dist/calendar/typings.d.ts +42 -0
- package/dist/calendar/use-calendar.d.ts +2 -40
- package/dist/calendar/use-calendar.js +1 -1
- package/dist/calendar/use-calendar.js.map +1 -1
- package/dist/calendar-input/component.d.ts +1 -1
- package/dist/checkbox/component.js +12 -15
- package/dist/checkbox/component.js.map +1 -1
- package/dist/checkbox-lists/component.d.ts +2 -2
- package/dist/collapsable-row/addons.d.ts +3 -3
- package/dist/copy-button/component.d.ts +2 -1
- package/dist/date-switcher/component.d.ts +2 -2
- package/dist/flex/component.d.ts +2 -2
- package/dist/footer/component.js +32 -38
- package/dist/footer/component.js.map +1 -1
- package/dist/footer/index.module.css +1 -1
- package/dist/footer/index.module.css.js +16 -14
- package/dist/footer/index.module.css.js.map +1 -1
- package/dist/form/component.d.ts +2 -2
- package/dist/form/templates/base-form/index.d.ts +1 -1
- package/dist/form/templates/rest-form/form.d.ts +2 -1
- package/dist/form/templates/rest-form/index.d.ts +2 -2
- package/dist/form/templates/rest-form/index.js.map +1 -1
- package/dist/grid/component.d.ts +20 -5
- package/dist/grid/component.js +49 -7
- package/dist/grid/component.js.map +1 -1
- package/dist/grid/index.js +4 -2
- package/dist/grid/index.module.css +1 -0
- package/dist/grid/index.module.css.js +11 -0
- package/dist/grid/{row/index.module.css.js.map → index.module.css.js.map} +1 -1
- package/dist/hooks/useClickOutside/index.d.ts +1 -1
- package/dist/hooks/useClickOutside/index.js.map +1 -1
- package/dist/hooks/useFocus/index.d.ts +1 -1
- package/dist/hooks/useFocus/index.js.map +1 -1
- package/dist/hooks/usePrevious/index.js +3 -3
- package/dist/hooks/usePrevious/index.js.map +1 -1
- package/dist/image/use-image-render-component.d.ts +1 -1
- package/dist/image-gallery/component.d.ts +2 -2
- package/dist/index.js +254 -252
- package/dist/input/component.js +56 -60
- package/dist/input/component.js.map +1 -1
- package/dist/input/index.module.css +1 -1
- package/dist/input-autocomplete/autocomplete-field/index.d.ts +2 -1
- package/dist/input-autocomplete/autocomplete-field/index.js.map +1 -1
- package/dist/input-autocomplete/component.d.ts +3 -3
- package/dist/input-ghost/component.d.ts +1 -1
- package/dist/masked-input/component.d.ts +1 -1
- package/dist/menu/component.d.ts +3 -2
- package/dist/menu/component.js.map +1 -1
- package/dist/menu/hooks/use-menu.d.ts +1 -1
- package/dist/menu/hooks/use-menu.js +6 -6
- package/dist/menu/hooks/use-menu.js.map +1 -1
- package/dist/modal/components/modals/modal.d.ts +2 -1
- package/dist/notification/component.js +33 -37
- package/dist/notification/component.js.map +1 -1
- package/dist/notification/utils/index.d.ts +1 -1
- package/dist/notification/utils/index.js.map +1 -1
- package/dist/page-loading/component.d.ts +2 -2
- package/dist/picker-button/component.d.ts +1 -1
- package/dist/picker-button/field/Component.d.ts +2 -1
- package/dist/portal/utils.d.ts +1 -1
- package/dist/portal/utils.js.map +1 -1
- package/dist/radio-groups/component.d.ts +2 -2
- package/dist/select/components/arrow/component.d.ts +2 -1
- package/dist/select/components/base-select/component.js +262 -259
- package/dist/select/components/base-select/component.js.map +1 -1
- package/dist/select/components/checkmark/component.d.ts +2 -1
- package/dist/select/components/field/component.d.ts +2 -1
- package/dist/select/components/field/component.js.map +1 -1
- package/dist/select/components/native-select/component.js.map +1 -1
- package/dist/select/components/optgroup/component.d.ts +2 -1
- package/dist/select/components/select-search/index.d.ts +1 -1
- package/dist/select/components/virtual-options-list/component.d.ts +2 -1
- package/dist/select/presets/use-lazy-loading/index.d.ts +4 -4
- package/dist/select/presets/use-lazy-loading/index.js +20 -20
- package/dist/select/presets/use-lazy-loading/index.js.map +1 -1
- package/dist/select/presets/use-select-with-loading/hook.d.ts +3 -2
- package/dist/select/presets/use-select-with-loading/hook.js +7 -7
- package/dist/select/presets/use-select-with-loading/hook.js.map +1 -1
- package/dist/select/typings.d.ts +1 -1
- package/dist/select/utils.d.ts +2 -2
- package/dist/select/utils.js +17 -15
- package/dist/select/utils.js.map +1 -1
- package/dist/sidepanel/component.d.ts +1 -0
- package/dist/sidepanel/component.js.map +1 -1
- package/dist/space/Item.d.ts +1 -1
- package/dist/status/component.d.ts +2 -1
- package/dist/status/component.js.map +1 -1
- package/dist/switch/component.d.ts +1 -1
- package/dist/table/components/cells/index.d.ts +2 -1
- package/dist/table/components/empty-list/index.d.ts +2 -2
- package/dist/table/components/error/index.d.ts +2 -2
- package/dist/table/components/loading/index.d.ts +1 -1
- package/dist/table/components/table-header/index.d.ts +1 -1
- package/dist/table/components/table-header/index.js.map +1 -1
- package/dist/table/table.d.ts +2 -2
- package/dist/table/table.js.map +1 -1
- package/dist/table/utils/get-tags.d.ts +3 -2
- package/dist/table/utils/get-tags.js.map +1 -1
- package/dist/table/utils/prepare-rows.d.ts +2 -1
- package/dist/table/utils/prepare-rows.js.map +1 -1
- package/dist/textarea/component.js +68 -75
- package/dist/textarea/component.js.map +1 -1
- package/dist/theme-provider/component.d.ts +1 -0
- package/dist/theme-provider/component.js.map +1 -1
- package/dist/toast/component.d.ts +1 -1
- package/dist/toast-notifier/component.js +39 -40
- package/dist/toast-notifier/component.js.map +1 -1
- package/dist/tooltip/component.d.ts +2 -2
- package/dist/tooltip/component.js +4 -4
- package/dist/tooltip/component.js.map +1 -1
- package/dist/tooltip/node-resolver.d.ts +26 -0
- package/dist/tooltip/node-resolver.js +14 -0
- package/dist/tooltip/node-resolver.js.map +1 -0
- package/dist/typography/title/component.d.ts +2 -2
- package/dist/with-suffix/component.d.ts +1 -1
- package/package.json +8 -12
- package/dist/calendar/typings.js +0 -2
- package/dist/calendar/typings.js.map +0 -1
- package/dist/grid/col/component.d.ts +0 -52
- package/dist/grid/col/component.js +0 -39
- package/dist/grid/col/component.js.map +0 -1
- package/dist/grid/col/index.d.ts +0 -1
- package/dist/grid/col/index.js +0 -5
- package/dist/grid/col/index.js.map +0 -1
- package/dist/grid/col/index.module.css +0 -1
- package/dist/grid/col/index.module.css.js +0 -519
- package/dist/grid/col/index.module.css.js.map +0 -1
- package/dist/grid/gutters.module.css +0 -1
- package/dist/grid/gutters.module.css.js +0 -50
- package/dist/grid/gutters.module.css.js.map +0 -1
- package/dist/grid/row/component.d.ts +0 -41
- package/dist/grid/row/component.js +0 -43
- package/dist/grid/row/component.js.map +0 -1
- package/dist/grid/row/index.d.ts +0 -1
- package/dist/grid/row/index.js +0 -5
- package/dist/grid/row/index.js.map +0 -1
- package/dist/grid/row/index.module.css +0 -1
- package/dist/grid/row/index.module.css.js +0 -25
- package/dist/grid/typings.d.ts +0 -15
- package/dist/grid/typings.js +0 -2
- package/dist/grid/typings.js.map +0 -1
- package/dist/grid/utils/index.d.ts +0 -2
- package/dist/grid/utils/index.js +0 -31
- package/dist/grid/utils/index.js.map +0 -1
- package/dist/select/typings.js +0 -2
- package/dist/select/typings.js.map +0 -1
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import './gutters.module.css';
|
|
2
|
-
const t = "row_k2qX", e = "col_JA17", r = {
|
|
3
|
-
row: t,
|
|
4
|
-
"gutter-8": "gutter-8_JOMB",
|
|
5
|
-
col: e,
|
|
6
|
-
"gutter-16": "gutter-16_d08G",
|
|
7
|
-
"gutter-24": "gutter-24_4Sfq",
|
|
8
|
-
"gutter-mobile-8": "gutter-mobile-8_g--Z",
|
|
9
|
-
"gutter-mobile-16": "gutter-mobile-16_k5rq",
|
|
10
|
-
"gutter-mobile-24": "gutter-mobile-24_62Rg",
|
|
11
|
-
"gutter-mobile-s-8": "gutter-mobile-s-8_vYZU",
|
|
12
|
-
"gutter-mobile-s-16": "gutter-mobile-s-16_JCG-",
|
|
13
|
-
"gutter-mobile-s-24": "gutter-mobile-s-24_fkqV",
|
|
14
|
-
"gutter-mobile-m-8": "gutter-mobile-m-8_-yiN",
|
|
15
|
-
"gutter-mobile-m-16": "gutter-mobile-m-16_RD3Y",
|
|
16
|
-
"gutter-mobile-m-24": "gutter-mobile-m-24_tv9d",
|
|
17
|
-
"gutter-mobile-l-8": "gutter-mobile-l-8_CYvi",
|
|
18
|
-
"gutter-mobile-l-16": "gutter-mobile-l-16_W7Fb",
|
|
19
|
-
"gutter-mobile-l-24": "gutter-mobile-l-24_LbiW",
|
|
20
|
-
"gutter-tablet-8": "gutter-tablet-8_d3ZX",
|
|
21
|
-
"gutter-tablet-16": "gutter-tablet-16_kCov",
|
|
22
|
-
"gutter-tablet-24": "gutter-tablet-24_HdKi",
|
|
23
|
-
"gutter-tablet-s-8": "gutter-tablet-s-8_sFEs",
|
|
24
|
-
"gutter-tablet-s-16": "gutter-tablet-s-16_RzUV",
|
|
25
|
-
"gutter-tablet-s-24": "gutter-tablet-s-24_t84W",
|
|
26
|
-
"gutter-tablet-m-8": "gutter-tablet-m-8_vCSF",
|
|
27
|
-
"gutter-tablet-m-16": "gutter-tablet-m-16_6cTU",
|
|
28
|
-
"gutter-tablet-m-24": "gutter-tablet-m-24_InME",
|
|
29
|
-
"gutter-desktop-8": "gutter-desktop-8_tFwb",
|
|
30
|
-
"gutter-desktop-16": "gutter-desktop-16_N4dK",
|
|
31
|
-
"gutter-desktop-24": "gutter-desktop-24_wC-t",
|
|
32
|
-
"gutter-desktop-s-8": "gutter-desktop-s-8_dque",
|
|
33
|
-
"gutter-desktop-s-16": "gutter-desktop-s-16_qjpJ",
|
|
34
|
-
"gutter-desktop-s-24": "gutter-desktop-s-24_S6s1",
|
|
35
|
-
"gutter-desktop-m-8": "gutter-desktop-m-8_W05t",
|
|
36
|
-
"gutter-desktop-m-16": "gutter-desktop-m-16_DEy-",
|
|
37
|
-
"gutter-desktop-m-24": "gutter-desktop-m-24_-rEq",
|
|
38
|
-
"gutter-desktop-l-8": "gutter-desktop-l-8_051G",
|
|
39
|
-
"gutter-desktop-l-16": "gutter-desktop-l-16_vYAS",
|
|
40
|
-
"gutter-desktop-l-24": "gutter-desktop-l-24_ARrz",
|
|
41
|
-
"gutter-desktop-xl-8": "gutter-desktop-xl-8_gVBZ",
|
|
42
|
-
"gutter-desktop-xl-16": "gutter-desktop-xl-16_o8YC",
|
|
43
|
-
"gutter-desktop-xl-24": "gutter-desktop-xl-24_a7vI"
|
|
44
|
-
};
|
|
45
|
-
export {
|
|
46
|
-
e as col,
|
|
47
|
-
r as default,
|
|
48
|
-
t as row
|
|
49
|
-
};
|
|
50
|
-
//# sourceMappingURL=gutters.module.css.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"gutters.module.css.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { default as React } from 'react';
|
|
2
|
-
import { ResponsivePropertyType } from '../typings';
|
|
3
|
-
export type RowProps = {
|
|
4
|
-
/**
|
|
5
|
-
* Дополнительный класс
|
|
6
|
-
*/
|
|
7
|
-
className?: string;
|
|
8
|
-
/**
|
|
9
|
-
* Горизонтальный отступ между колонками.
|
|
10
|
-
* Возможные значения: `[0, 8, 16, 24]`
|
|
11
|
-
* или `{ mobile: [0..24], tablet: [0..24], desktop: [0..24] }`
|
|
12
|
-
* или `{ mobile: { s: [0..24], m: [0..24], l: [0..24] },
|
|
13
|
-
* tablet: { s: [0..24], m: [0..24] },
|
|
14
|
-
* desktop: { s: [0..24], m: [0..24], l: [0..24], xl: [0..24] } }`.
|
|
15
|
-
*/
|
|
16
|
-
gutter?: ResponsivePropertyType;
|
|
17
|
-
/**
|
|
18
|
-
* Управление выравниванием колонок по вертикальной оси
|
|
19
|
-
*/
|
|
20
|
-
align?: 'top' | 'middle' | 'bottom';
|
|
21
|
-
/**
|
|
22
|
-
* Управление выравниванием колонок по горизонтальной оси
|
|
23
|
-
*/
|
|
24
|
-
justify?: 'left' | 'center' | 'right' | 'around' | 'between';
|
|
25
|
-
/**
|
|
26
|
-
* Html тег компонента.
|
|
27
|
-
* Из-за <a href="https://github.com/philipwalton/flexbugs#flexbug-9" target="_blank">ограничений и багов</a>,
|
|
28
|
-
* существующих во флексбоксах, невозможно использовать
|
|
29
|
-
* некоторые элементы HTML как flex-контейнеры.
|
|
30
|
-
*/
|
|
31
|
-
tag?: keyof JSX.IntrinsicElements;
|
|
32
|
-
/**
|
|
33
|
-
* Контент
|
|
34
|
-
*/
|
|
35
|
-
children?: React.ReactNode;
|
|
36
|
-
/**
|
|
37
|
-
* Идентификатор для систем автоматизированного тестирования
|
|
38
|
-
*/
|
|
39
|
-
dataTestId?: string;
|
|
40
|
-
};
|
|
41
|
-
export declare const Row: React.FC<RowProps>;
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { jsx as f } from "react/jsx-runtime";
|
|
2
|
-
import { useMemo as n } from "react";
|
|
3
|
-
import l from "classnames";
|
|
4
|
-
import { createClassNames as d } from "../utils/index.js";
|
|
5
|
-
import s from "../gutters.module.css.js";
|
|
6
|
-
import o from "./index.module.css.js";
|
|
7
|
-
const j = ({
|
|
8
|
-
tag: e = "div",
|
|
9
|
-
className: r,
|
|
10
|
-
gutter: t = {
|
|
11
|
-
mobile: {
|
|
12
|
-
s: 16
|
|
13
|
-
},
|
|
14
|
-
desktop: {
|
|
15
|
-
m: 24
|
|
16
|
-
}
|
|
17
|
-
},
|
|
18
|
-
align: m,
|
|
19
|
-
justify: a = "between",
|
|
20
|
-
children: p,
|
|
21
|
-
dataTestId: i
|
|
22
|
-
}) => {
|
|
23
|
-
const c = n(() => d({ gutter: t }, s), [t]);
|
|
24
|
-
return /* @__PURE__ */ f(
|
|
25
|
-
e,
|
|
26
|
-
{
|
|
27
|
-
className: l(
|
|
28
|
-
s.row,
|
|
29
|
-
o.component,
|
|
30
|
-
m && o[m],
|
|
31
|
-
o[a],
|
|
32
|
-
...c,
|
|
33
|
-
r
|
|
34
|
-
),
|
|
35
|
-
"data-test-id": i,
|
|
36
|
-
children: p
|
|
37
|
-
}
|
|
38
|
-
);
|
|
39
|
-
};
|
|
40
|
-
export {
|
|
41
|
-
j as Row
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=component.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"component.js","sources":["../../../src/grid/row/component.tsx"],"sourcesContent":["import React, { useMemo } from 'react';\nimport cn from 'classnames';\n\nimport { ResponsivePropertyType } from '../typings';\nimport { createClassNames } from '../utils';\n\nimport guttersStyles from '../gutters.module.css';\nimport styles from './index.module.css';\n\nexport type RowProps = {\n /**\n * Дополнительный класс\n */\n className?: string;\n\n /**\n * Горизонтальный отступ между колонками.\n * Возможные значения: `[0, 8, 16, 24]`\n * или `{ mobile: [0..24], tablet: [0..24], desktop: [0..24] }`\n * или `{ mobile: { s: [0..24], m: [0..24], l: [0..24] },\n * tablet: { s: [0..24], m: [0..24] },\n * desktop: { s: [0..24], m: [0..24], l: [0..24], xl: [0..24] } }`.\n */\n gutter?: ResponsivePropertyType;\n\n /**\n * Управление выравниванием колонок по вертикальной оси\n */\n align?: 'top' | 'middle' | 'bottom';\n\n /**\n * Управление выравниванием колонок по горизонтальной оси\n */\n justify?: 'left' | 'center' | 'right' | 'around' | 'between';\n\n /**\n * Html тег компонента.\n * Из-за <a href=\"https://github.com/philipwalton/flexbugs#flexbug-9\" target=\"_blank\">ограничений и багов</a>,\n * существующих во флексбоксах, невозможно использовать\n * некоторые элементы HTML как flex-контейнеры.\n */\n tag?: keyof JSX.IntrinsicElements;\n\n /**\n * Контент\n */\n children?: React.ReactNode;\n\n /**\n * Идентификатор для систем автоматизированного тестирования\n */\n dataTestId?: string;\n};\n\nexport const Row: React.FC<RowProps> = ({\n tag: Component = 'div',\n className,\n gutter = {\n mobile: {\n s: 16,\n },\n desktop: {\n m: 24,\n },\n },\n align,\n justify = 'between',\n children,\n dataTestId,\n}) => {\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n const classNames = useMemo(() => createClassNames({ gutter }, guttersStyles as any), [gutter]);\n\n return (\n <Component\n className={cn(\n guttersStyles.row,\n styles.component,\n align && styles[align],\n styles[justify],\n ...classNames,\n className,\n )}\n data-test-id={dataTestId}\n >\n {children}\n </Component>\n );\n};\n"],"names":["Row","Component","className","gutter","align","justify","children","dataTestId","classNames","useMemo","createClassNames","guttersStyles","jsx","cn","styles"],"mappings":";;;;;;AAsDO,MAAMA,IAA0B,CAAC;AAAA,EACpC,KAAKC,IAAY;AAAA,EACjB,WAAAC;AAAA,EACA,QAAAC,IAAS;AAAA,IACL,QAAQ;AAAA,MACJ,GAAG;AAAA,IAAA;AAAA,IAEP,SAAS;AAAA,MACL,GAAG;AAAA,IAAA;AAAA,EACP;AAAA,EAEJ,OAAAC;AAAA,EACA,SAAAC,IAAU;AAAA,EACV,UAAAC;AAAA,EACA,YAAAC;AACJ,MAAM;AAEF,QAAMC,IAAaC,EAAQ,MAAMC,EAAiB,EAAE,QAAAP,EAAA,GAAUQ,CAAoB,GAAG,CAACR,CAAM,CAAC;AAE7F,SACI,gBAAAS;AAAA,IAACX;AAAA,IAAA;AAAA,MACG,WAAWY;AAAA,QACPF,EAAc;AAAA,QACdG,EAAO;AAAA,QACPV,KAASU,EAAOV,CAAK;AAAA,QACrBU,EAAOT,CAAO;AAAA,QACd,GAAGG;AAAA,QACHN;AAAA,MAAA;AAAA,MAEJ,gBAAcK;AAAA,MAEb,UAAAD;AAAA,IAAA;AAAA,EAAA;AAGb;"}
|
package/dist/grid/row/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './component';
|
package/dist/grid/row/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
.component_gn33{display:flex;flex-direction:row;flex-wrap:wrap;margin:0 auto;box-sizing:border-box}.top_Lj9m{align-items:flex-start}.middle_3C5H{align-items:center}.bottom_JyuO{align-items:flex-end}.left_bQem{justify-content:flex-start}.center_NnZc{justify-content:center}.right_8RTX{justify-content:flex-end}.around_jRzq{justify-content:space-around}.between_jGZh{justify-content:space-between}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import './index.module.css';
|
|
2
|
-
const t = "component_gn33", o = "top_Lj9m", e = "middle_3C5H", n = "bottom_JyuO", c = "left_bQem", s = "center_NnZc", m = "right_8RTX", d = "around_jRzq", r = "between_jGZh", _ = {
|
|
3
|
-
component: t,
|
|
4
|
-
top: o,
|
|
5
|
-
middle: e,
|
|
6
|
-
bottom: n,
|
|
7
|
-
left: c,
|
|
8
|
-
center: s,
|
|
9
|
-
right: m,
|
|
10
|
-
around: d,
|
|
11
|
-
between: r
|
|
12
|
-
};
|
|
13
|
-
export {
|
|
14
|
-
d as around,
|
|
15
|
-
r as between,
|
|
16
|
-
n as bottom,
|
|
17
|
-
s as center,
|
|
18
|
-
t as component,
|
|
19
|
-
_ as default,
|
|
20
|
-
c as left,
|
|
21
|
-
e as middle,
|
|
22
|
-
m as right,
|
|
23
|
-
o as top
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=index.module.css.js.map
|
package/dist/grid/typings.d.ts
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export type BreakpointObjectType = {
|
|
2
|
-
s?: string | number;
|
|
3
|
-
m?: string | number;
|
|
4
|
-
l?: string | number;
|
|
5
|
-
xl?: string | number;
|
|
6
|
-
};
|
|
7
|
-
export type BreakpointObjectKeysType = keyof BreakpointObjectType;
|
|
8
|
-
export type BreakpointType = string | number | BreakpointObjectType;
|
|
9
|
-
export type BreakpointsType = {
|
|
10
|
-
mobile?: BreakpointType;
|
|
11
|
-
tablet?: BreakpointType;
|
|
12
|
-
desktop?: BreakpointType;
|
|
13
|
-
};
|
|
14
|
-
export type BreakpointsKeysType = keyof BreakpointsType;
|
|
15
|
-
export type ResponsivePropertyType = string | number | BreakpointsType;
|
package/dist/grid/typings.js
DELETED
package/dist/grid/typings.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typings.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
package/dist/grid/utils/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
function l(f, s) {
|
|
2
|
-
const t = [];
|
|
3
|
-
return Object.keys(f).forEach((u) => {
|
|
4
|
-
const c = f[u];
|
|
5
|
-
if (c) {
|
|
6
|
-
if (typeof c != "object") {
|
|
7
|
-
t.push(s[`${u}-${c}`]);
|
|
8
|
-
return;
|
|
9
|
-
}
|
|
10
|
-
Object.keys(c).forEach((e) => {
|
|
11
|
-
if (c[e] !== null)
|
|
12
|
-
if (typeof c[e] == "object") {
|
|
13
|
-
const r = c[e];
|
|
14
|
-
Object.keys(r).forEach(
|
|
15
|
-
(o) => {
|
|
16
|
-
const $ = r[o];
|
|
17
|
-
$ !== null && t.push(s[`${u}-${e}-${o}-${$}`]);
|
|
18
|
-
}
|
|
19
|
-
);
|
|
20
|
-
} else {
|
|
21
|
-
const r = c[e];
|
|
22
|
-
t.push(s[`${u}-${e}-${r}`]);
|
|
23
|
-
}
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
}), t;
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
l as createClassNames
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../src/grid/utils/index.ts"],"sourcesContent":["import {\n BreakpointObjectKeysType,\n BreakpointsKeysType,\n BreakpointObjectType,\n ResponsivePropertyType,\n} from '../typings';\n\nexport function createClassNames(\n props: Record<string, ResponsivePropertyType | undefined>,\n styles: Record<string, string>,\n) {\n const classNames: string[] = [];\n // console.log(props, styles)\n Object.keys(props).forEach((name) => {\n const prop = props[name];\n\n if (!prop) {\n return;\n }\n if (typeof prop !== 'object') {\n classNames.push(styles[`${name}-${prop}`]);\n return;\n }\n (Object.keys(prop) as BreakpointsKeysType[]).forEach((breakpoint) => {\n if (prop[breakpoint] === null) {\n return;\n }\n if (typeof prop[breakpoint] === 'object') {\n const propBreakpointObject = prop[breakpoint] as BreakpointObjectType;\n (Object.keys(propBreakpointObject) as BreakpointObjectKeysType[]).forEach(\n (size) => {\n const value = propBreakpointObject[size];\n if (value === null) {\n return;\n }\n classNames.push(styles[`${name}-${breakpoint}-${size}-${value}`]);\n },\n );\n } else {\n const value = prop[breakpoint];\n classNames.push(styles[`${name}-${breakpoint}-${value}`]);\n }\n });\n });\n\n return classNames;\n}\n"],"names":["createClassNames","props","styles","classNames","name","prop","breakpoint","propBreakpointObject","size","value"],"mappings":"AAOO,SAASA,EACZC,GACAC,GACF;AACE,QAAMC,IAAuB,CAAA;AAE7B,gBAAO,KAAKF,CAAK,EAAE,QAAQ,CAACG,MAAS;AACjC,UAAMC,IAAOJ,EAAMG,CAAI;AAEvB,QAAKC,GAGL;AAAA,UAAI,OAAOA,KAAS,UAAU;AAC1B,QAAAF,EAAW,KAAKD,EAAO,GAAGE,CAAI,IAAIC,CAAI,EAAE,CAAC;AACzC;AAAA,MACJ;AACC,aAAO,KAAKA,CAAI,EAA4B,QAAQ,CAACC,MAAe;AACjE,YAAID,EAAKC,CAAU,MAAM;AAGzB,cAAI,OAAOD,EAAKC,CAAU,KAAM,UAAU;AACtC,kBAAMC,IAAuBF,EAAKC,CAAU;AAC3C,mBAAO,KAAKC,CAAoB,EAAiC;AAAA,cAC9D,CAACC,MAAS;AACN,sBAAMC,IAAQF,EAAqBC,CAAI;AACvC,gBAAIC,MAAU,QAGdN,EAAW,KAAKD,EAAO,GAAGE,CAAI,IAAIE,CAAU,IAAIE,CAAI,IAAIC,CAAK,EAAE,CAAC;AAAA,cACpE;AAAA,YAAA;AAAA,UAER,OAAO;AACH,kBAAMA,IAAQJ,EAAKC,CAAU;AAC7B,YAAAH,EAAW,KAAKD,EAAO,GAAGE,CAAI,IAAIE,CAAU,IAAIG,CAAK,EAAE,CAAC;AAAA,UAC5D;AAAA,MACJ,CAAC;AAAA;AAAA,EACL,CAAC,GAEMN;AACX;"}
|
package/dist/select/typings.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"typings.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|