@coorpacademy/components 11.40.0 → 11.40.1-alpha.11

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.
Files changed (46) hide show
  1. package/es/atom/button-link/index.d.ts.map +1 -1
  2. package/es/atom/button-link/index.js +7 -5
  3. package/es/atom/button-link/index.js.map +1 -1
  4. package/es/atom/button-link/style.css +1 -1
  5. package/es/atom/button-link/types.d.ts +3 -0
  6. package/es/atom/button-link/types.d.ts.map +1 -1
  7. package/es/atom/button-link/types.js.map +1 -1
  8. package/es/atom/select-icon/index.d.ts.map +1 -1
  9. package/es/atom/select-icon/index.js +3 -9
  10. package/es/atom/select-icon/index.js.map +1 -1
  11. package/es/molecule/icon-picker-modal/index.d.ts.map +1 -1
  12. package/es/molecule/icon-picker-modal/index.js +48 -39
  13. package/es/molecule/icon-picker-modal/index.js.map +1 -1
  14. package/es/molecule/quick-filters/index.d.ts +68 -0
  15. package/es/molecule/quick-filters/index.d.ts.map +1 -0
  16. package/es/molecule/quick-filters/index.js +179 -0
  17. package/es/molecule/quick-filters/index.js.map +1 -0
  18. package/es/molecule/quick-filters/style.css +119 -0
  19. package/es/molecule/quick-filters/types.d.ts +91 -0
  20. package/es/molecule/quick-filters/types.d.ts.map +1 -0
  21. package/es/molecule/quick-filters/types.js +25 -0
  22. package/es/molecule/quick-filters/types.js.map +1 -0
  23. package/lib/atom/button-link/index.d.ts.map +1 -1
  24. package/lib/atom/button-link/index.js +7 -5
  25. package/lib/atom/button-link/index.js.map +1 -1
  26. package/lib/atom/button-link/style.css +1 -1
  27. package/lib/atom/button-link/types.d.ts +3 -0
  28. package/lib/atom/button-link/types.d.ts.map +1 -1
  29. package/lib/atom/button-link/types.js.map +1 -1
  30. package/lib/atom/select-icon/index.d.ts.map +1 -1
  31. package/lib/atom/select-icon/index.js +3 -9
  32. package/lib/atom/select-icon/index.js.map +1 -1
  33. package/lib/molecule/icon-picker-modal/index.d.ts.map +1 -1
  34. package/lib/molecule/icon-picker-modal/index.js +47 -38
  35. package/lib/molecule/icon-picker-modal/index.js.map +1 -1
  36. package/lib/molecule/quick-filters/index.d.ts +68 -0
  37. package/lib/molecule/quick-filters/index.d.ts.map +1 -0
  38. package/lib/molecule/quick-filters/index.js +187 -0
  39. package/lib/molecule/quick-filters/index.js.map +1 -0
  40. package/lib/molecule/quick-filters/style.css +119 -0
  41. package/lib/molecule/quick-filters/types.d.ts +91 -0
  42. package/lib/molecule/quick-filters/types.d.ts.map +1 -0
  43. package/lib/molecule/quick-filters/types.js +30 -0
  44. package/lib/molecule/quick-filters/types.js.map +1 -0
  45. package/locales/lt/global.json +2 -2
  46. package/package.json +2 -2
@@ -0,0 +1,119 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value breakpoints: "../../variables/breakpoints.css";
3
+ @value mobile from breakpoints;
4
+ @value cm_grey_100 from colors;
5
+ @value cm_grey_500 from colors;
6
+ @value cm_grey_700 from colors;
7
+ @value cm_primary_blue from colors;
8
+
9
+ .textBase {
10
+ font-family: "Gilroy";
11
+ font-style: normal;
12
+ font-size: 14px;
13
+ line-height: 20px;
14
+ font-weight: 600;
15
+ }
16
+
17
+ .filtersMainContainer {
18
+ composes: textBase;
19
+ display: flex;
20
+ align-items: center;
21
+ }
22
+
23
+ .filtersContainer {
24
+ display: flex;
25
+ gap: 16px;
26
+ align-items: center;
27
+ }
28
+
29
+ .filtersList {
30
+ overflow-x: auto;
31
+ scrollbar-width: none;
32
+ align-items: center;
33
+ display: flex;
34
+ flex: 1;
35
+ position: relative;
36
+ margin-right: 40px;
37
+ }
38
+
39
+ .filterOption, .defaultOption {
40
+ display: flex;
41
+ color: cm_grey_500;
42
+ flex-direction: column;
43
+ gap: 8px;
44
+ padding: 12px;
45
+ flex-shrink: 0;
46
+ height: 72px;
47
+ cursor: pointer;
48
+ box-sizing: border-box;
49
+ }
50
+
51
+ .filterSelected {
52
+ color: cm_grey_700;
53
+ border-bottom: 2px solid cm_primary_blue;
54
+ }
55
+
56
+ .filterLabel {
57
+ min-width: 70px;
58
+ }
59
+
60
+ .filterSeparator {
61
+ padding: 24px;
62
+ align-items: center;
63
+ display: flex;
64
+ justify-content: center;
65
+ flex-shrink: 0;
66
+ }
67
+
68
+ .filterSeparator::before {
69
+ content: '';
70
+ width: 1px;
71
+ height: 24px;
72
+ background-color: cm_grey_100;
73
+ }
74
+
75
+ .filterButton {
76
+ margin-left: auto;
77
+ box-sizing: border-box;
78
+ }
79
+
80
+ .leftArrowButton, .rightArrowButton {
81
+ display: flex;
82
+ align-items: center;
83
+ justify-content: center;
84
+ width: 36px;
85
+ height: 36px;
86
+ cursor: pointer;
87
+ background-color: cm_grey_100;
88
+ border-radius: 50%;
89
+ position: sticky;
90
+ z-index: 1;
91
+ transform: translateY(-10%);
92
+ }
93
+
94
+ .rightArrowButton {
95
+ right: 0;
96
+ box-shadow: -20px 0 40px 40px white, 30px 0 40px 40px white;
97
+ }
98
+
99
+ .leftArrowButton {
100
+ left: 0;
101
+ box-shadow: 20px 0 40px 40px white;
102
+ }
103
+
104
+ .filterButtonWrapper {
105
+ padding: 2px;
106
+ border-radius: 16px;
107
+ border: 2px solid cm_primary_blue;
108
+ box-sizing: border-box;
109
+ }
110
+
111
+ @media mobile {
112
+ .leftArrowButton, .rightArrowButton, .filterButton, .filterButtonWrapper {
113
+ display: none!important;
114
+ }
115
+
116
+ .filtersList{
117
+ margin-right: 0;
118
+ }
119
+ }
@@ -0,0 +1,91 @@
1
+ import PropTypes from 'prop-types';
2
+ import { ButtonLinkProps } from '../../atom/button-link/types';
3
+ export declare type QuickFiltersProps = {
4
+ primaryOption: {
5
+ defaultLabel: string;
6
+ defaultValue: string;
7
+ defaultIconName: string;
8
+ defaultSelected: boolean;
9
+ onDefaultClick: () => void;
10
+ defaultAriaLabel: string;
11
+ };
12
+ nextFilterAriaLabel: string;
13
+ previousFilterAriaLabel: string;
14
+ filterOptionsAriaLabel: string;
15
+ filterOptions: FilterOption[];
16
+ filterButton?: ButtonLinkProps;
17
+ };
18
+ export declare type ScrollByOptions = {
19
+ left: number;
20
+ behavior: string;
21
+ };
22
+ declare type FilterOption = {
23
+ iconName: string;
24
+ label: string;
25
+ value: string;
26
+ onClick: () => void;
27
+ selected: boolean;
28
+ ariaLabel: string;
29
+ };
30
+ export declare const propTypes: {
31
+ primaryOption: PropTypes.Requireable<PropTypes.InferProps<{
32
+ defaultLabel: PropTypes.Requireable<string>;
33
+ defaultValue: PropTypes.Requireable<string>;
34
+ defaultIconName: PropTypes.Requireable<string>;
35
+ defaultSelected: PropTypes.Requireable<boolean>;
36
+ defaultAriaLabel: PropTypes.Requireable<string>;
37
+ onDefaultClick: PropTypes.Requireable<(...args: any[]) => any>;
38
+ }>>;
39
+ nextFilterAriaLabel: PropTypes.Requireable<string>;
40
+ previousFilterAriaLabel: PropTypes.Requireable<string>;
41
+ filterOptionsAriaLabel: PropTypes.Requireable<string>;
42
+ filterOptions: PropTypes.Requireable<(PropTypes.InferProps<{
43
+ iconName: PropTypes.Requireable<string>;
44
+ label: PropTypes.Requireable<string>;
45
+ value: PropTypes.Requireable<string>;
46
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
47
+ selected: PropTypes.Requireable<boolean>;
48
+ ariaLabel: PropTypes.Requireable<string>;
49
+ }> | null | undefined)[]>;
50
+ filterButton: PropTypes.Requireable<PropTypes.InferProps<{
51
+ type: PropTypes.Requireable<string>;
52
+ usage: PropTypes.Requireable<string>;
53
+ label: PropTypes.Requireable<string>;
54
+ content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
55
+ 'aria-label': PropTypes.Requireable<string>;
56
+ tooltipText: PropTypes.Requireable<string>;
57
+ tooltipPlacement: PropTypes.Requireable<string>;
58
+ 'data-name': PropTypes.Requireable<string>;
59
+ 'data-testid': PropTypes.Requireable<string>;
60
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
61
+ position: PropTypes.Requireable<string>;
62
+ type: PropTypes.Requireable<string>;
63
+ faIcon: PropTypes.Requireable<PropTypes.InferProps<{
64
+ name: PropTypes.Validator<string>;
65
+ color: PropTypes.Requireable<string>;
66
+ backgroundColor: PropTypes.Requireable<string>;
67
+ size: PropTypes.Requireable<number>;
68
+ customStyle: PropTypes.Requireable<{
69
+ [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
70
+ }>;
71
+ }>>;
72
+ }>>;
73
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
74
+ link: PropTypes.Requireable<PropTypes.InferProps<{
75
+ href: PropTypes.Requireable<string>;
76
+ download: PropTypes.Requireable<boolean>;
77
+ target: PropTypes.Requireable<string>;
78
+ }>>;
79
+ hoverBackgroundColor: PropTypes.Requireable<string>;
80
+ hoverColor: PropTypes.Requireable<string>;
81
+ disabled: PropTypes.Requireable<boolean>;
82
+ className: PropTypes.Requireable<string>;
83
+ customStyle: PropTypes.Requireable<{
84
+ [x: string]: NonNullable<string | number | null | undefined> | null | undefined;
85
+ }>;
86
+ useTitle: PropTypes.Requireable<boolean>;
87
+ customLabelClassName: PropTypes.Requireable<string>;
88
+ }>>;
89
+ };
90
+ export {};
91
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/quick-filters/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAG7D,oBAAY,iBAAiB,GAAG;IAC9B,aAAa,EAAE;QACb,YAAY,EAAE,MAAM,CAAC;QACrB,YAAY,EAAE,MAAM,CAAC;QACrB,eAAe,EAAE,MAAM,CAAC;QACxB,eAAe,EAAE,OAAO,CAAC;QACzB,cAAc,EAAE,MAAM,IAAI,CAAC;QAC3B,gBAAgB,EAAE,MAAM,CAAC;KAC1B,CAAC;IACF,mBAAmB,EAAE,MAAM,CAAC;IAC5B,uBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAsB,EAAE,MAAM,CAAC;IAC/B,aAAa,EAAE,YAAY,EAAE,CAAC;IAC9B,YAAY,CAAC,EAAE,eAAe,CAAC;CAChC,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,aAAK,YAAY,GAAG;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,QAAQ,EAAE,OAAO,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAuBrB,CAAC"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.propTypes = void 0;
5
+ var _propTypes = _interopRequireDefault(require("prop-types"));
6
+ var _buttonLink = _interopRequireDefault(require("../../atom/button-link"));
7
+ function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
8
+ const propTypes = exports.propTypes = {
9
+ primaryOption: _propTypes.default.shape({
10
+ defaultLabel: _propTypes.default.string,
11
+ defaultValue: _propTypes.default.string,
12
+ defaultIconName: _propTypes.default.string,
13
+ defaultSelected: _propTypes.default.bool,
14
+ defaultAriaLabel: _propTypes.default.string,
15
+ onDefaultClick: _propTypes.default.func
16
+ }),
17
+ nextFilterAriaLabel: _propTypes.default.string,
18
+ previousFilterAriaLabel: _propTypes.default.string,
19
+ filterOptionsAriaLabel: _propTypes.default.string,
20
+ filterOptions: _propTypes.default.arrayOf(_propTypes.default.shape({
21
+ iconName: _propTypes.default.string,
22
+ label: _propTypes.default.string,
23
+ value: _propTypes.default.string,
24
+ onClick: _propTypes.default.func,
25
+ selected: _propTypes.default.bool,
26
+ ariaLabel: _propTypes.default.string
27
+ })),
28
+ filterButton: _propTypes.default.shape(_buttonLink.default.propTypes)
29
+ };
30
+ //# sourceMappingURL=types.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.js","names":["_propTypes","_interopRequireDefault","require","_buttonLink","e","__esModule","default","propTypes","exports","primaryOption","PropTypes","shape","defaultLabel","string","defaultValue","defaultIconName","defaultSelected","bool","defaultAriaLabel","onDefaultClick","func","nextFilterAriaLabel","previousFilterAriaLabel","filterOptionsAriaLabel","filterOptions","arrayOf","iconName","label","value","onClick","selected","ariaLabel","filterButton","ButtonLink"],"sources":["../../../src/molecule/quick-filters/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\nimport {ButtonLinkProps} from '../../atom/button-link/types';\nimport ButtonLink from '../../atom/button-link';\n\nexport type QuickFiltersProps = {\n primaryOption: {\n defaultLabel: string;\n defaultValue: string;\n defaultIconName: string;\n defaultSelected: boolean;\n onDefaultClick: () => void;\n defaultAriaLabel: string;\n };\n nextFilterAriaLabel: string;\n previousFilterAriaLabel: string;\n filterOptionsAriaLabel: string;\n filterOptions: FilterOption[];\n filterButton?: ButtonLinkProps;\n};\n\nexport type ScrollByOptions = {\n left: number;\n behavior: string;\n};\n\ntype FilterOption = {\n iconName: string;\n label: string;\n value: string;\n onClick: () => void;\n selected: boolean;\n ariaLabel: string;\n};\n\nexport const propTypes = {\n primaryOption: PropTypes.shape({\n defaultLabel: PropTypes.string,\n defaultValue: PropTypes.string,\n defaultIconName: PropTypes.string,\n defaultSelected: PropTypes.bool,\n defaultAriaLabel: PropTypes.string,\n onDefaultClick: PropTypes.func\n }),\n nextFilterAriaLabel: PropTypes.string,\n previousFilterAriaLabel: PropTypes.string,\n filterOptionsAriaLabel: PropTypes.string,\n filterOptions: PropTypes.arrayOf(\n PropTypes.shape({\n iconName: PropTypes.string,\n label: PropTypes.string,\n value: PropTypes.string,\n onClick: PropTypes.func,\n selected: PropTypes.bool,\n ariaLabel: PropTypes.string\n })\n ),\n filterButton: PropTypes.shape(ButtonLink.propTypes)\n};\n"],"mappings":";;;;AAAA,IAAAA,UAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAF,sBAAA,CAAAC,OAAA;AAAgD,SAAAD,uBAAAG,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAgCzC,MAAMG,SAAS,GAAAC,OAAA,CAAAD,SAAA,GAAG;EACvBE,aAAa,EAAEC,kBAAS,CAACC,KAAK,CAAC;IAC7BC,YAAY,EAAEF,kBAAS,CAACG,MAAM;IAC9BC,YAAY,EAAEJ,kBAAS,CAACG,MAAM;IAC9BE,eAAe,EAAEL,kBAAS,CAACG,MAAM;IACjCG,eAAe,EAAEN,kBAAS,CAACO,IAAI;IAC/BC,gBAAgB,EAAER,kBAAS,CAACG,MAAM;IAClCM,cAAc,EAAET,kBAAS,CAACU;EAC5B,CAAC,CAAC;EACFC,mBAAmB,EAAEX,kBAAS,CAACG,MAAM;EACrCS,uBAAuB,EAAEZ,kBAAS,CAACG,MAAM;EACzCU,sBAAsB,EAAEb,kBAAS,CAACG,MAAM;EACxCW,aAAa,EAAEd,kBAAS,CAACe,OAAO,CAC9Bf,kBAAS,CAACC,KAAK,CAAC;IACde,QAAQ,EAAEhB,kBAAS,CAACG,MAAM;IAC1Bc,KAAK,EAAEjB,kBAAS,CAACG,MAAM;IACvBe,KAAK,EAAElB,kBAAS,CAACG,MAAM;IACvBgB,OAAO,EAAEnB,kBAAS,CAACU,IAAI;IACvBU,QAAQ,EAAEpB,kBAAS,CAACO,IAAI;IACxBc,SAAS,EAAErB,kBAAS,CAACG;EACvB,CAAC,CACH,CAAC;EACDmB,YAAY,EAAEtB,kBAAS,CAACC,KAAK,CAACsB,mBAAU,CAAC1B,SAAS;AACpD,CAAC","ignoreList":[]}
@@ -79,7 +79,7 @@
79
79
  "learning_priorities_description": "Jūsų svarbiausios mokymosi prioritetų sritys, nustatytos Jūsų įmonės",
80
80
  "learning_priorities_brand_description": "Apibrėžkite savo įmonės mokymosi prioritetus pasirinkdami įgūdžius, grojaraščius arba sertifikatus. Jie bus rodomi puslapyje „Mano mokymasis“.",
81
81
  "media_stars_to_win_plural": "Pirmą kartą peržiūrėję pamoką, laimėkite {{count}} papildomas (-a) žvaigždutes (-ę) šiame skyriuje !",
82
- "media_stars_to_win": "Pirmą kartą peržiūrėję pamoką, laimėkite {{count}} papildomą žvaigždutę šiame skyriuje!",
82
+ "media_stars_to_win": "Pirmą kartą peržiūrėję pamoką, laimėkite {{count}} papildomas (-a) žvaigždutes (-ę) šiame skyriuje!",
83
83
  "modules": "{{count}} modulis",
84
84
  "modules_plural": "{{count}} moduliai",
85
85
  "modules_completed_mandatory": "<span data-name=\"progress-stats\" style=\"color=#515161;padding-right: 4px;\">{{count}}/{{total}}</span> privalomas modulis užbaigtas",
@@ -163,7 +163,7 @@
163
163
  "zuora_discount_code": "Nuolaidos kodas",
164
164
  "mandatory_fields": "*Privalomi laukai",
165
165
  "something_went_wrong": "Oi! Kažkas nutiko ne taip.",
166
- "review_mode_tooltip_header": "Kas yra Kartojimo režimas?",
166
+ "review_mode_tooltip_header": "Kas yra Kartojimosi režimas?",
167
167
  "review_mode_tooltip_content": "Informacija pranyksta iš atminties vos tik į ją išmokstate? Tai visiškai normalu: be kartojimo nėra ir įsiminimo! Kad žinios išliktų ilgam, naudokite Kartojimo režimą ir atgaivinkite atmintį!",
168
168
  "review_mode_tooltip_content_part1": "Pasirinkite 1 įgūdį",
169
169
  "review_mode_tooltip_content_part2": "Atsakykite į 5 klausimus",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coorpacademy/components",
3
- "version": "11.40.0",
3
+ "version": "11.40.1-alpha.11+a11406e14",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -166,5 +166,5 @@
166
166
  "last 2 versions",
167
167
  "IE 11"
168
168
  ],
169
- "gitHead": "663355a6d884caf861b9bf95f62a49790c55df92"
169
+ "gitHead": "a11406e143b36bb0c63acc794d9eb764eae5d3de"
170
170
  }