@licklist/design 0.78.32 → 0.78.33

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 (123) hide show
  1. package/dist/Maintenance/MaintenancePage.js +1 -0
  2. package/dist/index.js +8 -1
  3. package/dist/v2/components/ActionMenu/ActionMenu.d.ts +14 -0
  4. package/dist/v2/components/ActionMenu/ActionMenu.d.ts.map +1 -0
  5. package/dist/v2/components/ActionMenu/ActionMenu.js +159 -0
  6. package/dist/v2/components/ActionMenu/ActionMenu.scss.js +6 -0
  7. package/dist/v2/components/ActionMenu/index.d.ts +2 -0
  8. package/dist/v2/components/ActionMenu/index.d.ts.map +1 -0
  9. package/dist/v2/components/Alert/Alert.scss.js +1 -1
  10. package/dist/v2/components/Badge/Badge.d.ts +10 -0
  11. package/dist/v2/components/Badge/Badge.d.ts.map +1 -0
  12. package/dist/v2/components/Badge/Badge.js +19 -0
  13. package/dist/v2/components/Badge/Badge.scss.js +6 -0
  14. package/dist/v2/components/Badge/index.d.ts +2 -0
  15. package/dist/v2/components/Badge/index.d.ts.map +1 -0
  16. package/dist/v2/components/Button/Button.d.ts +3 -2
  17. package/dist/v2/components/Button/Button.d.ts.map +1 -1
  18. package/dist/v2/components/Button/Button.js +13 -6
  19. package/dist/v2/components/Button/Button.scss.js +1 -1
  20. package/dist/v2/components/Button/GhostButton.scss.js +1 -1
  21. package/dist/v2/components/Button/index.d.ts +2 -0
  22. package/dist/v2/components/Button/index.d.ts.map +1 -1
  23. package/dist/v2/components/Checkbox/Checkbox.scss.js +1 -1
  24. package/dist/v2/components/FormField/FormField.d.ts.map +1 -1
  25. package/dist/v2/components/FormField/FormField.scss.js +1 -1
  26. package/dist/v2/components/Modal/DeleteModal.d.ts +15 -0
  27. package/dist/v2/components/Modal/DeleteModal.d.ts.map +1 -0
  28. package/dist/v2/components/Modal/DeleteModal.js +151 -0
  29. package/dist/v2/components/Modal/DeleteModal.scss.js +6 -0
  30. package/dist/v2/components/Modal/index.d.ts +3 -0
  31. package/dist/v2/components/Modal/index.d.ts.map +1 -0
  32. package/dist/v2/components/NewInput/NewInput.d.ts +2 -0
  33. package/dist/v2/components/NewInput/NewInput.d.ts.map +1 -1
  34. package/dist/v2/components/NewInput/NewInput.js +37 -12
  35. package/dist/v2/components/NewPageHeader/NewPageHeader.d.ts +4 -1
  36. package/dist/v2/components/NewPageHeader/NewPageHeader.d.ts.map +1 -1
  37. package/dist/v2/components/NewPageHeader/NewPageHeader.js +18 -11
  38. package/dist/v2/components/NewPageHeader/NewPageHeader.scss.js +1 -1
  39. package/dist/v2/components/NewTable/NewTable.d.ts +21 -0
  40. package/dist/v2/components/NewTable/NewTable.d.ts.map +1 -0
  41. package/dist/v2/components/NewTable/NewTable.js +63 -0
  42. package/dist/v2/components/NewTable/NewTable.scss.js +6 -0
  43. package/dist/v2/components/NewTable/index.d.ts +2 -0
  44. package/dist/v2/components/NewTable/index.d.ts.map +1 -0
  45. package/dist/v2/components/Pagination/Pagination.d.ts +13 -0
  46. package/dist/v2/components/Pagination/Pagination.d.ts.map +1 -0
  47. package/dist/v2/components/Pagination/Pagination.js +76 -0
  48. package/dist/v2/components/Pagination/Pagination.scss.js +6 -0
  49. package/dist/v2/components/Pagination/index.d.ts +2 -0
  50. package/dist/v2/components/Pagination/index.d.ts.map +1 -0
  51. package/dist/v2/components/QuickFilter/QuickFilter.d.ts +14 -0
  52. package/dist/v2/components/QuickFilter/QuickFilter.d.ts.map +1 -0
  53. package/dist/v2/components/QuickFilter/QuickFilter.js +70 -0
  54. package/dist/v2/components/QuickFilter/QuickFilter.scss.js +6 -0
  55. package/dist/v2/components/QuickFilter/index.d.ts +2 -0
  56. package/dist/v2/components/QuickFilter/index.d.ts.map +1 -0
  57. package/dist/v2/components/SectionHeader/SectionHeader.d.ts.map +1 -1
  58. package/dist/v2/components/Select/Select.d.ts +7 -4
  59. package/dist/v2/components/Select/Select.d.ts.map +1 -1
  60. package/dist/v2/components/Select/Select.js +53 -24
  61. package/dist/v2/components/Select/Select.scss.js +1 -1
  62. package/dist/v2/components/TableSortIcon/TableSortIcon.d.ts +9 -0
  63. package/dist/v2/components/TableSortIcon/TableSortIcon.d.ts.map +1 -0
  64. package/dist/v2/components/TableSortIcon/TableSortIcon.js +14 -0
  65. package/dist/v2/components/TableSortIcon/index.d.ts +2 -0
  66. package/dist/v2/components/TableSortIcon/index.d.ts.map +1 -0
  67. package/dist/v2/components/WYSIWYGEditor/Icons.js +2 -2
  68. package/dist/v2/components/WYSIWYGEditor/WYSIWYGEditor.scss.js +1 -1
  69. package/dist/v2/components/index.d.ts +17 -4
  70. package/dist/v2/components/index.d.ts.map +1 -1
  71. package/dist/v2/icons/index.d.ts +46 -0
  72. package/dist/v2/icons/index.d.ts.map +1 -1
  73. package/dist/v2/icons/index.js +358 -4
  74. package/dist/v2/navigation/DashboardLayout/ProviderSidebar.d.ts.map +1 -1
  75. package/dist/v2/navigation/DashboardLayout/ProviderSidebar.js +4 -8
  76. package/dist/v2/pages/Settings/components/SidebarCustomisation.js +9 -3
  77. package/dist/v2/pages/Settings/components/SidebarNavItem.js +9 -3
  78. package/dist/v2/styles/form/NewInput.scss.js +1 -1
  79. package/package.json +3 -3
  80. package/src/v2/components/ActionMenu/ActionMenu.scss +106 -0
  81. package/src/v2/components/ActionMenu/ActionMenu.tsx +115 -0
  82. package/src/v2/components/ActionMenu/index.ts +1 -0
  83. package/src/v2/components/Badge/Badge.scss +82 -0
  84. package/src/v2/components/Badge/Badge.tsx +25 -0
  85. package/src/v2/components/Badge/index.ts +1 -0
  86. package/src/v2/components/Button/Button.tsx +18 -4
  87. package/src/v2/components/Button/GhostButton.scss +11 -1
  88. package/src/v2/components/Button/index.ts +2 -0
  89. package/src/v2/components/Customer/CustomerDetail.scss +319 -0
  90. package/src/v2/components/Customer/CustomersList.scss +815 -0
  91. package/src/v2/components/FormField/FormField.tsx +19 -21
  92. package/src/v2/components/Modal/DeleteModal.scss +254 -0
  93. package/src/v2/components/Modal/DeleteModal.tsx +102 -0
  94. package/src/v2/components/Modal/index.ts +3 -0
  95. package/src/v2/components/NewInput/NewInput.stories.tsx +3 -18
  96. package/src/v2/components/NewInput/NewInput.tsx +35 -12
  97. package/src/v2/components/NewPageHeader/NewPageHeader.scss +17 -8
  98. package/src/v2/components/NewPageHeader/NewPageHeader.tsx +17 -10
  99. package/src/v2/components/NewTable/NewTable.scss +126 -0
  100. package/src/v2/components/NewTable/NewTable.tsx +92 -0
  101. package/src/v2/components/NewTable/index.ts +1 -0
  102. package/src/v2/components/Pagination/Pagination.scss +142 -0
  103. package/src/v2/components/Pagination/Pagination.tsx +80 -0
  104. package/src/v2/components/Pagination/index.ts +1 -0
  105. package/src/v2/components/QuickFilter/QuickFilter.scss +67 -0
  106. package/src/v2/components/QuickFilter/QuickFilter.tsx +51 -0
  107. package/src/v2/components/QuickFilter/index.ts +1 -0
  108. package/src/v2/components/SectionHeader/SectionHeader.tsx +5 -7
  109. package/src/v2/components/Select/Select.scss +61 -24
  110. package/src/v2/components/Select/Select.stories.tsx +77 -1
  111. package/src/v2/components/Select/Select.tsx +63 -34
  112. package/src/v2/components/TableSortIcon/TableSortIcon.tsx +20 -0
  113. package/src/v2/components/TableSortIcon/index.ts +1 -0
  114. package/src/v2/components/WYSIWYGEditor/Icons.tsx +2 -2
  115. package/src/v2/components/index.ts +44 -5
  116. package/src/v2/icons/index.tsx +123 -3
  117. package/src/v2/navigation/DashboardLayout/ProviderSidebar.tsx +3 -1
  118. package/src/v2/navigation/config.tsx +1 -1
  119. package/src/v2/pages/Settings/components/SidebarCustomisation.tsx +1 -1
  120. package/src/v2/styles/common.scss +7 -0
  121. package/src/v2/styles/components/Button.scss +34 -2
  122. package/src/v2/styles/form/NewInput.scss +45 -21
  123. package/src/v2/styles/index.scss +1 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"NewTable.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/NewTable/NewTable.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,iBAAiB,CAAA;AAExB,MAAM,WAAW,cAAc,CAAC,CAAC;IAC/B,MAAM,EAAE,KAAK,CAAC,SAAS,CAAA;IACvB,QAAQ,EAAE,MAAM,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,KAAK,CAAC,SAAS,CAAC,CAAA;IACjD,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACvB,eAAe,CAAC,EAAE,OAAO,CAAA;CAC1B;AAED,MAAM,WAAW,aAAa,CAAC,CAAC;IAC9B,OAAO,EAAE,cAAc,CAAC,CAAC,CAAC,EAAE,CAAA;IAC5B,IAAI,EAAE,CAAC,EAAE,CAAA;IACT,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,YAAY,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,MAAM,CAAC,CAAA;IAC5C,UAAU,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,CAAA;IAC7B,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,wBAAgB,QAAQ,CAAC,CAAC,SAAS;IAAE,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;CAAE,EAAE,EAC3D,OAAO,EACP,IAAI,EACJ,SAAc,EACd,YAAiB,EACjB,UAAU,EACV,UAAU,GACX,EAAE,aAAa,CAAC,CAAC,CAAC,2CAgElB"}
@@ -0,0 +1,63 @@
1
+ import { jsx, jsxs } from 'react/jsx-runtime';
2
+ import 'react';
3
+ import './NewTable.scss.js';
4
+
5
+ function NewTable(param) {
6
+ var columns = param.columns, data = param.data, _param_className = param.className, className = _param_className === void 0 ? '' : _param_className, _param_rowClassName = param.rowClassName, rowClassName = _param_rowClassName === void 0 ? '' : _param_rowClassName, onRowClick = param.onRowClick, noDataText = param.noDataText;
7
+ return /*#__PURE__*/ jsx("div", {
8
+ className: "new-table-wrapper ".concat(className),
9
+ children: /*#__PURE__*/ jsxs("table", {
10
+ className: "new-table",
11
+ children: [
12
+ /*#__PURE__*/ jsx("thead", {
13
+ className: "new-table__head",
14
+ children: /*#__PURE__*/ jsx("tr", {
15
+ children: columns.map(function(column, index) {
16
+ return /*#__PURE__*/ jsx("th", {
17
+ className: "new-table__header-cell ".concat(column.className || ''),
18
+ style: {
19
+ width: column.width
20
+ },
21
+ children: column.header
22
+ }, index);
23
+ })
24
+ })
25
+ }),
26
+ /*#__PURE__*/ jsx("tbody", {
27
+ className: "new-table__body",
28
+ children: data.length > 0 ? data.map(function(row, rowIndex) {
29
+ var customRowClass = typeof rowClassName === 'function' ? rowClassName(row) : rowClassName;
30
+ return /*#__PURE__*/ jsx("tr", {
31
+ className: "new-table__row ".concat(onRowClick ? 'new-table__row--clickable' : '', " ").concat(customRowClass),
32
+ onClick: function() {
33
+ return onRowClick === null || onRowClick === void 0 ? void 0 : onRowClick(row);
34
+ },
35
+ children: columns.map(function(column, colIndex) {
36
+ var content = typeof column.accessor === 'function' ? column.accessor(row) : row[column.accessor];
37
+ return /*#__PURE__*/ jsx("td", {
38
+ className: "new-table__cell ".concat(column.className || ''),
39
+ role: "presentation",
40
+ onClick: function(e) {
41
+ if (column.disableRowClick) {
42
+ e.stopPropagation();
43
+ }
44
+ },
45
+ children: content
46
+ }, colIndex);
47
+ })
48
+ }, row.id || rowIndex);
49
+ }) : noDataText && /*#__PURE__*/ jsx("tr", {
50
+ className: "new-table__no-data-row",
51
+ children: /*#__PURE__*/ jsx("td", {
52
+ colSpan: columns.length,
53
+ className: "new-table__no-data-cell",
54
+ children: noDataText
55
+ })
56
+ })
57
+ })
58
+ ]
59
+ })
60
+ });
61
+ }
62
+
63
+ export { NewTable };
@@ -0,0 +1,6 @@
1
+ import styleInject from '/opt/atlassian/pipelines/agent/build/node_modules/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = ".new-table-wrapper{overflow-x:auto;overflow-y:visible;width:100%}.new-table-wrapper.action-menu-open{overflow:visible!important}.new-table{border-collapse:collapse;text-align:left;width:100%}.new-table__head{background-color:var(--surface-secondary,#f8f8fa)}.new-table__header-cell{border-bottom:1px solid var(--border-primary,#e8e9ef);color:var(--label-secondary,#9399b3);font-size:var(--text-small-size,13px);font-weight:500;padding:16px 24px;white-space:nowrap}.new-table__body{background-color:var(--neutral-white,#fff)}.new-table__row{border-bottom:1px solid var(--border-primary,#e8e9ef);overflow:visible;transition:background-color .2s ease}.new-table__row.action-menu-open{overflow:visible!important;position:relative;z-index:20}.new-table__row.action-menu-open .new-table__cell{overflow:visible!important}.new-table__row:last-child{border-bottom:none}.new-table__row--clickable{cursor:pointer}.new-table__row--clickable:hover{background-color:var(--surface-primary-hover,#f8f8fa)}.new-table__cell{color:var(--label-primary,#121e52);font-size:var(--text-base-size,14px);overflow:visible;padding:16px 24px;vertical-align:middle}.new-table__no-data-cell{color:#9399b3;font-size:16px;font-weight:500;padding:64px 24px;text-align:center}@media (max-width:768px){.new-table-wrapper{-webkit-overflow-scrolling:touch}.new-table{min-width:600px}.new-table__header-cell{font-size:12px;padding:12px 16px}.new-table__cell{font-size:13px;padding:12px 16px}.new-table__no-data-cell{font-size:14px;padding:48px 16px}}@media (max-width:480px){.new-table{min-width:500px}.new-table__cell,.new-table__header-cell{padding:10px 12px}.new-table__header-cell{font-size:11px}.new-table__cell{font-size:12px}.new-table__no-data-cell{font-size:13px;padding:32px 12px}}";
4
+ styleInject(css_248z);
5
+
6
+ export { css_248z as default };
@@ -0,0 +1,2 @@
1
+ export * from './NewTable';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/NewTable/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAA"}
@@ -0,0 +1,13 @@
1
+ import React from 'react';
2
+ import './Pagination.scss';
3
+ export interface PaginationProps {
4
+ currentPage: number;
5
+ totalPages: number;
6
+ totalItems: number;
7
+ itemsPerPage: number;
8
+ onPageChange: (page: number) => void;
9
+ t: (key: string, options?: any) => string;
10
+ entityName?: string;
11
+ }
12
+ export declare const Pagination: React.FC<PaginationProps>;
13
+ //# sourceMappingURL=Pagination.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Pagination.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/Pagination/Pagination.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,mBAAmB,CAAA;AAG1B,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,UAAU,EAAE,MAAM,CAAA;IAClB,YAAY,EAAE,MAAM,CAAA;IACpB,YAAY,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAA;IACpC,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,GAAG,KAAK,MAAM,CAAA;IACzC,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CAiEhD,CAAA"}
@@ -0,0 +1,76 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import 'react';
3
+ import './Pagination.scss.js';
4
+ import { ArrowLeftIcon, ArrowRightIcon } from '../../icons/index.js';
5
+
6
+ var Pagination = function(param) {
7
+ var currentPage = param.currentPage, totalPages = param.totalPages, totalItems = param.totalItems, itemsPerPage = param.itemsPerPage, onPageChange = param.onPageChange, t = param.t, _param_entityName = param.entityName, entityName = _param_entityName === void 0 ? 'items' : _param_entityName;
8
+ var startItem = (currentPage - 1) * itemsPerPage + 1;
9
+ var endItem = Math.min(currentPage * itemsPerPage, totalItems);
10
+ var isFirstPage = currentPage <= 1;
11
+ var isLastPage = currentPage >= totalPages;
12
+ var handlePrev = function(e) {
13
+ e.preventDefault();
14
+ if (!isFirstPage) {
15
+ onPageChange(currentPage - 1);
16
+ }
17
+ };
18
+ var handleNext = function(e) {
19
+ e.preventDefault();
20
+ if (!isLastPage) {
21
+ onPageChange(currentPage + 1);
22
+ }
23
+ };
24
+ return /*#__PURE__*/ jsxs("div", {
25
+ className: "v2-pagination",
26
+ children: [
27
+ /*#__PURE__*/ jsxs("div", {
28
+ className: "v2-pagination__controls",
29
+ children: [
30
+ /*#__PURE__*/ jsx("button", {
31
+ type: "button",
32
+ className: "v2-pagination__button",
33
+ onClick: handlePrev,
34
+ disabled: isFirstPage,
35
+ "aria-label": t('App:previous', {
36
+ defaultValue: 'Previous'
37
+ }),
38
+ children: /*#__PURE__*/ jsx(ArrowLeftIcon, {})
39
+ }),
40
+ /*#__PURE__*/ jsx("button", {
41
+ type: "button",
42
+ className: "v2-pagination__button",
43
+ onClick: handleNext,
44
+ disabled: isLastPage,
45
+ "aria-label": t('App:next', {
46
+ defaultValue: 'Next'
47
+ }),
48
+ children: /*#__PURE__*/ jsx(ArrowRightIcon, {})
49
+ })
50
+ ]
51
+ }),
52
+ /*#__PURE__*/ jsxs("div", {
53
+ className: "v2-pagination__info",
54
+ children: [
55
+ /*#__PURE__*/ jsx("div", {
56
+ className: "v2-pagination__page-number",
57
+ children: t('App:page', {
58
+ from: currentPage
59
+ })
60
+ }),
61
+ /*#__PURE__*/ jsx("div", {
62
+ className: "v2-pagination__showing",
63
+ children: t('App:paginationText', {
64
+ type: entityName,
65
+ from: startItem,
66
+ to: endItem,
67
+ total: totalItems
68
+ })
69
+ })
70
+ ]
71
+ })
72
+ ]
73
+ });
74
+ };
75
+
76
+ export { Pagination };
@@ -0,0 +1,6 @@
1
+ import styleInject from '/opt/atlassian/pipelines/agent/build/node_modules/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = ".v2-pagination{align-items:center;display:flex;font-family:var(--font-family-sans,\"Geist\",sans-serif),serif;gap:16px}.v2-pagination__controls{display:flex;gap:8px}.v2-pagination__button{align-items:center;background-color:#efeffe;border:none;border-radius:50%;color:#6200ee;cursor:pointer;display:flex;flex-shrink:0;height:44px;justify-content:center;transition:background-color .2s ease,color .2s ease;width:44px}.v2-pagination__button:hover:not(:disabled){background-color:#cdccfc}.v2-pagination__button:active:not(:disabled){background-color:#b4b4fa}.v2-pagination__button:focus-visible{outline:2px solid #6200ee;outline-offset:2px}.v2-pagination__button:disabled{background-color:#e5e7eb;color:#9ca3af;cursor:not-allowed}.v2-pagination__button svg{flex-shrink:0;height:24px;width:24px}.v2-pagination__info{display:flex;flex-direction:column;gap:2px}.v2-pagination__page-number{color:#14215a;font-size:15px;font-weight:600}.v2-pagination__showing{color:#626a90;font-size:13px;font-weight:500}@media (max-width:768px){.v2-pagination{gap:12px}.v2-pagination__controls{gap:6px}.v2-pagination__button{height:40px;width:40px}.v2-pagination__button svg{height:20px;width:20px}.v2-pagination__info{gap:2px}.v2-pagination__page-number{font-size:14px}.v2-pagination__showing{font-size:12px}}@media (max-width:480px){.v2-pagination{align-items:flex-start;flex-direction:column;gap:10px}.v2-pagination__controls{justify-content:center;order:2;width:100%}.v2-pagination__button{height:36px;width:36px}.v2-pagination__button svg{height:18px;width:18px}.v2-pagination__info{align-items:center;order:1;text-align:center;width:100%}.v2-pagination__page-number{font-size:13px}.v2-pagination__showing{font-size:11px}}";
4
+ styleInject(css_248z);
5
+
6
+ export { css_248z as default };
@@ -0,0 +1,2 @@
1
+ export * from './Pagination';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/Pagination/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAA"}
@@ -0,0 +1,14 @@
1
+ import React from 'react';
2
+ import './QuickFilter.scss';
3
+ export interface QuickFilterOption {
4
+ label: string;
5
+ value: string;
6
+ }
7
+ export interface QuickFilterProps {
8
+ options: QuickFilterOption[];
9
+ selectedValues: string[];
10
+ onChange: (selectedValues: string[]) => void;
11
+ label?: string;
12
+ }
13
+ export declare const QuickFilter: React.FC<QuickFilterProps>;
14
+ //# sourceMappingURL=QuickFilter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"QuickFilter.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/QuickFilter/QuickFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAEzB,OAAO,oBAAoB,CAAA;AAE3B,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,gBAAgB;IAC/B,OAAO,EAAE,iBAAiB,EAAE,CAAA;IAC5B,cAAc,EAAE,MAAM,EAAE,CAAA;IACxB,QAAQ,EAAE,CAAC,cAAc,EAAE,MAAM,EAAE,KAAK,IAAI,CAAA;IAC5C,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,eAAO,MAAM,WAAW,EAAE,KAAK,CAAC,EAAE,CAAC,gBAAgB,CAkClD,CAAA"}
@@ -0,0 +1,70 @@
1
+ import { jsxs, jsx } from 'react/jsx-runtime';
2
+ import 'react';
3
+ import '../Button/Button.scss.js';
4
+ import { GhostButton } from '../Button/GhostButton.js';
5
+ import './QuickFilter.scss.js';
6
+
7
+ function _array_like_to_array(arr, len) {
8
+ if (len == null || len > arr.length) len = arr.length;
9
+ for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
10
+ return arr2;
11
+ }
12
+ function _array_without_holes(arr) {
13
+ if (Array.isArray(arr)) return _array_like_to_array(arr);
14
+ }
15
+ function _iterable_to_array(iter) {
16
+ if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
17
+ }
18
+ function _non_iterable_spread() {
19
+ throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
20
+ }
21
+ function _to_consumable_array(arr) {
22
+ return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
23
+ }
24
+ function _unsupported_iterable_to_array(o, minLen) {
25
+ if (!o) return;
26
+ if (typeof o === "string") return _array_like_to_array(o, minLen);
27
+ var n = Object.prototype.toString.call(o).slice(8, -1);
28
+ if (n === "Object" && o.constructor) n = o.constructor.name;
29
+ if (n === "Map" || n === "Set") return Array.from(n);
30
+ if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
31
+ }
32
+ var QuickFilter = function(param) {
33
+ var options = param.options, _param_selectedValues = param.selectedValues, selectedValues = _param_selectedValues === void 0 ? [] : _param_selectedValues, onChange = param.onChange, label = param.label;
34
+ var toggleOption = function(value) {
35
+ if (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.includes(value)) {
36
+ onChange(selectedValues.filter(function(v) {
37
+ return v !== value;
38
+ }));
39
+ } else {
40
+ onChange(_to_consumable_array(selectedValues).concat([
41
+ value
42
+ ]));
43
+ }
44
+ };
45
+ return /*#__PURE__*/ jsxs("div", {
46
+ className: "quick-filter",
47
+ children: [
48
+ label && /*#__PURE__*/ jsx("span", {
49
+ className: "quick-filter__label",
50
+ children: label
51
+ }),
52
+ /*#__PURE__*/ jsx("div", {
53
+ className: "quick-filter__options",
54
+ children: options.map(function(option) {
55
+ return /*#__PURE__*/ jsx(GhostButton, {
56
+ type: "button",
57
+ size: "sm",
58
+ className: (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.includes(option.value)) ? 'active' : '',
59
+ onClick: function() {
60
+ return toggleOption(option.value);
61
+ },
62
+ children: option.label
63
+ }, option.value);
64
+ })
65
+ })
66
+ ]
67
+ });
68
+ };
69
+
70
+ export { QuickFilter };
@@ -0,0 +1,6 @@
1
+ import styleInject from '/opt/atlassian/pipelines/agent/build/node_modules/style-inject/dist/style-inject.es.js';
2
+
3
+ var css_248z = ".quick-filter{align-items:center;display:flex;gap:12px}.quick-filter__label{color:var(--label-secondary,#9399b3);font-size:var(--text-small-size,13px);font-weight:500;white-space:nowrap}.quick-filter__options{display:flex;flex-wrap:wrap;gap:8px}.quick-filter__options .ghost-button{border-radius:100px}@media (max-width:768px){.quick-filter{align-items:flex-start;display:flex;flex-direction:row;gap:12px;width:100%}.quick-filter__label{font-size:12px}.quick-filter__options{display:flex;flex:1;flex-wrap:wrap;gap:6px;margin:0;min-width:0;padding:0}.quick-filter__options .ghost-button{border-radius:100px;flex-shrink:0}}@media (max-width:480px){.quick-filter{gap:8px}.quick-filter__label{font-size:11px}.quick-filter__options{gap:4px}}";
4
+ styleInject(css_248z);
5
+
6
+ export { css_248z as default };
@@ -0,0 +1,2 @@
1
+ export * from './QuickFilter';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/QuickFilter/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"SectionHeader.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/SectionHeader/SectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,sBAAsB,CAAC;AAE9B,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAMtD,CAAC"}
1
+ {"version":3,"file":"SectionHeader.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/SectionHeader/SectionHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,sBAAsB,CAAC;AAE9B,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAItD,CAAC"}
@@ -1,10 +1,13 @@
1
- import { HTMLAttributes } from 'react';
1
+ import { SelectHTMLAttributes } from 'react';
2
2
  import './Select.scss';
3
- export interface SelectProps extends HTMLAttributes<HTMLSelectElement> {
3
+ export interface SelectProps extends Omit<SelectHTMLAttributes<HTMLSelectElement>, 'size'> {
4
4
  variant?: 'default' | 'hover' | 'focus' | 'error' | 'disabled';
5
5
  size?: 'sm' | 'md' | 'lg';
6
- disabled?: boolean;
6
+ label?: string;
7
+ optional?: boolean;
8
+ error?: string;
9
+ helperText?: string;
7
10
  }
8
- export declare function Select({ variant, size, disabled, className, children, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
11
+ export declare function Select({ variant, size, disabled, className, label, optional, error, helperText, children, ...props }: SelectProps): import("react/jsx-runtime").JSX.Element;
9
12
  export default Select;
10
13
  //# sourceMappingURL=Select.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAc,EAAE,cAAc,EAAE,MAAM,OAAO,CAAA;AAC7C,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,WAAY,SAAQ,cAAc,CAAC,iBAAiB,CAAC;IACpE,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAA;IAC7D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,QAAQ,CAAC,EAAE,OAAO,CAAA;CACnB;AAED,wBAAgB,MAAM,CAAC,EACrB,OAAmB,EACnB,IAAW,EACX,QAAgB,EAChB,SAAc,EACd,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,2CAqCb;AAED,eAAe,MAAM,CAAA"}
1
+ {"version":3,"file":"Select.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/Select/Select.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAA;AAC5C,OAAO,eAAe,CAAA;AAEtB,MAAM,WAAW,WAAY,SAAQ,IAAI,CAAC,oBAAoB,CAAC,iBAAiB,CAAC,EAAE,MAAM,CAAC;IACxF,OAAO,CAAC,EAAE,SAAS,GAAG,OAAO,GAAE,OAAO,GAAG,OAAO,GAAG,UAAU,CAAA;IAC7D,IAAI,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,CAAA;IACzB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,wBAAgB,MAAM,CAAC,EACrB,OAAmB,EACnB,IAAW,EACX,QAAgB,EAChB,SAAc,EACd,KAAK,EACL,QAAQ,EACR,KAAK,EACL,UAAU,EACV,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,WAAW,2CA2Db;AAED,eAAe,MAAM,CAAA"}
@@ -1,5 +1,4 @@
1
1
  import { jsxs, jsx } from 'react/jsx-runtime';
2
- import 'react';
3
2
  import './Select.scss.js';
4
3
 
5
4
  function _define_property(obj, key, value) {
@@ -82,44 +81,74 @@ function _object_without_properties_loose(source, excluded) {
82
81
  return target;
83
82
  }
84
83
  function Select(_param) {
85
- var _param_variant = _param.variant, variant = _param_variant === void 0 ? 'default' : _param_variant, _param_size = _param.size, size = _param_size === void 0 ? 'md' : _param_size, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_className = _param.className, className = _param_className === void 0 ? '' : _param_className, children = _param.children, props = _object_without_properties(_param, [
84
+ var _param_variant = _param.variant, variant = _param_variant === void 0 ? 'default' : _param_variant, _param_size = _param.size, size = _param_size === void 0 ? 'md' : _param_size, _param_disabled = _param.disabled, disabled = _param_disabled === void 0 ? false : _param_disabled, _param_className = _param.className, className = _param_className === void 0 ? '' : _param_className, label = _param.label, optional = _param.optional, error = _param.error, helperText = _param.helperText, children = _param.children, props = _object_without_properties(_param, [
86
85
  "variant",
87
86
  "size",
88
87
  "disabled",
89
88
  "className",
89
+ "label",
90
+ "optional",
91
+ "error",
92
+ "helperText",
90
93
  "children"
91
94
  ]);
95
+ var isError = !!error;
92
96
  var classes = [
93
97
  'select',
94
98
  "select--".concat(variant),
95
99
  "select--".concat(size),
96
100
  disabled ? 'select--disabled' : '',
101
+ isError ? 'select--error' : '',
97
102
  className
98
103
  ].filter(Boolean).join(' ');
99
104
  return /*#__PURE__*/ jsxs("div", {
100
- className: "select-container",
105
+ className: "select-wrapper",
101
106
  children: [
102
- /*#__PURE__*/ jsx("select", _object_spread_props(_object_spread({
103
- className: classes,
104
- disabled: disabled
105
- }, props), {
106
- children: children
107
- })),
108
- /*#__PURE__*/ jsx("svg", {
109
- className: "select-arrow",
110
- xmlns: "http://www.w3.org/2000/svg",
111
- width: "11",
112
- height: "6",
113
- viewBox: "0 0 11 6",
114
- fill: "none",
115
- "aria-hidden": "true",
116
- children: /*#__PURE__*/ jsx("path", {
117
- d: "M1 1L5.5 5L10 1",
118
- stroke: "#626A90",
119
- strokeWidth: "2",
120
- strokeLinecap: "round",
121
- strokeLinejoin: "round"
122
- })
107
+ (label || optional) && /*#__PURE__*/ jsxs("label", {
108
+ className: "select-label",
109
+ children: [
110
+ label,
111
+ " ",
112
+ optional && /*#__PURE__*/ jsx("span", {
113
+ className: "select-label-optional",
114
+ children: "(Optional)"
115
+ })
116
+ ]
117
+ }),
118
+ /*#__PURE__*/ jsxs("div", {
119
+ className: "select-container",
120
+ children: [
121
+ /*#__PURE__*/ jsx("select", _object_spread_props(_object_spread({
122
+ className: classes,
123
+ disabled: disabled
124
+ }, props), {
125
+ children: children
126
+ })),
127
+ /*#__PURE__*/ jsx("svg", {
128
+ className: "select-arrow",
129
+ xmlns: "http://www.w3.org/2000/svg",
130
+ width: "11",
131
+ height: "6",
132
+ viewBox: "0 0 11 6",
133
+ fill: "none",
134
+ "aria-hidden": "true",
135
+ children: /*#__PURE__*/ jsx("path", {
136
+ d: "M1 1L5.5 5L10 1",
137
+ stroke: "#626A90",
138
+ strokeWidth: "2",
139
+ strokeLinecap: "round",
140
+ strokeLinejoin: "round"
141
+ })
142
+ })
143
+ ]
144
+ }),
145
+ helperText && /*#__PURE__*/ jsx("p", {
146
+ className: "select-helper-text",
147
+ children: helperText
148
+ }),
149
+ error && error !== ' ' && /*#__PURE__*/ jsx("p", {
150
+ className: "select-error-text",
151
+ children: error
123
152
  })
124
153
  ]
125
154
  });
@@ -1,6 +1,6 @@
1
1
  import styleInject from '/opt/atlassian/pipelines/agent/build/node_modules/style-inject/dist/style-inject.es.js';
2
2
 
3
- var css_248z = ":root{--font-family-sans:\"Geist\",-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Roboto\",\"Helvetica Neue\",Arial,sans-serif;--font-family-mono:\"Geist Mono\",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--heading-xxl-size:44px;--heading-xxl-line:48px;--heading-xxl-weight:600;--heading-xl-size:32px;--heading-xl-line:36px;--heading-xl-weight:700;--heading-h1-size:24px;--heading-h1-line:28px;--heading-h1-weight:600;--heading-h2-size:20px;--heading-h2-line:24px;--heading-h2-weight:600;--heading-h3-size:17px;--heading-h3-line:20px;--heading-h3-weight:600;--heading-h4-size:15px;--heading-h4-line:18px;--heading-h4-weight:600;--heading-h5-size:13px;--heading-h5-line:16px;--heading-h5-weight:500;--heading-h6-size:11px;--heading-h6-line:14px;--heading-h6-weight:500;--heading-xxl-mobile-size:32px;--heading-xxl-mobile-line:36px;--heading-xxl-mobile-weight:600;--heading-xl-mobile-size:26px;--heading-xl-mobile-line:30px;--heading-xl-mobile-weight:700;--heading-h1-mobile-size:20px;--heading-h1-mobile-line:23px;--heading-h1-mobile-weight:600;--heading-h2-mobile-size:18px;--heading-h2-mobile-line:22px;--heading-h2-mobile-weight:600;--heading-h3-mobile-size:16px;--heading-h3-mobile-line:18px;--heading-h3-mobile-weight:600;--heading-h4-mobile-size:14px;--heading-h4-mobile-line:16px;--heading-h4-mobile-weight:600;--heading-h5-mobile-size:13px;--heading-h5-mobile-line:16px;--heading-h5-mobile-weight:500;--heading-h6-mobile-size:11px;--heading-h6-mobile-line:14px;--heading-h6-mobile-weight:500;--text-xl-size:20px;--text-xl-line:26px;--text-xl-weight:400;--text-large-size:18px;--text-large-line:24px;--text-large-weight:400;--text-regular-size:15px;--text-regular-line:20px;--text-regular-weight:400;--text-regular-emphasis-weight:500;--text-small-size:13px;--text-small-line:16px;--text-small-weight:400;--text-small-emphasis-weight:500;--text-small-bold-weight:600;--text-xs-size:10px;--text-xs-line:13px;--text-xs-weight:500;--text-xs-bold-weight:600}.heading-desktop-xxl{font-size:var(--heading-xxl-size);font-weight:var(--heading-xxl-weight);line-height:var(--heading-xxl-line)}.heading-desktop-xl,.heading-desktop-xxl{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-desktop-xl{font-size:var(--heading-xl-size);font-weight:var(--heading-xl-weight);line-height:var(--heading-xl-line)}.heading-desktop-h1{font-size:var(--heading-h1-size);font-weight:var(--heading-h1-weight);line-height:var(--heading-h1-line)}.heading-desktop-h1,.heading-desktop-h2{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-desktop-h2{font-size:var(--heading-h2-size);font-weight:var(--heading-h2-weight);line-height:var(--heading-h2-line)}.heading-desktop-h3{font-size:var(--heading-h3-size);font-weight:var(--heading-h3-weight);line-height:var(--heading-h3-line)}.heading-desktop-h3,.heading-desktop-h4{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-desktop-h4{font-size:var(--heading-h4-size);font-weight:var(--heading-h4-weight);line-height:var(--heading-h4-line)}.heading-desktop-h5{font-size:var(--heading-h5-size);font-weight:var(--heading-h5-weight);line-height:var(--heading-h5-line)}.heading-desktop-h5,.heading-desktop-h6{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-desktop-h6{font-size:var(--heading-h6-size);font-weight:var(--heading-h6-weight);line-height:var(--heading-h6-line)}.heading-mobile-xxl{font-size:var(--heading-xxl-mobile-size);font-weight:var(--heading-xxl-mobile-weight);line-height:var(--heading-xxl-mobile-line)}.heading-mobile-xl,.heading-mobile-xxl{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-mobile-xl{font-size:var(--heading-xl-mobile-size);font-weight:var(--heading-xl-mobile-weight);line-height:var(--heading-xl-mobile-line)}.heading-mobile-h1{font-size:var(--heading-h1-mobile-size);font-weight:var(--heading-h1-mobile-weight);line-height:var(--heading-h1-mobile-line)}.heading-mobile-h1,.heading-mobile-h2{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-mobile-h2{font-size:var(--heading-h2-mobile-size);font-weight:var(--heading-h2-mobile-weight);line-height:var(--heading-h2-mobile-line)}.heading-mobile-h3{font-size:var(--heading-h3-mobile-size);font-weight:var(--heading-h3-mobile-weight);line-height:var(--heading-h3-mobile-line)}.heading-mobile-h3,.heading-mobile-h4{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-mobile-h4{font-size:var(--heading-h4-mobile-size);font-weight:var(--heading-h4-mobile-weight);line-height:var(--heading-h4-mobile-line)}.heading-mobile-h5{font-size:var(--heading-h5-mobile-size);font-weight:var(--heading-h5-mobile-weight);line-height:var(--heading-h5-mobile-line)}.heading-mobile-h5,.heading-mobile-h6{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-mobile-h6{font-size:var(--heading-h6-mobile-size);font-weight:var(--heading-h6-mobile-weight);line-height:var(--heading-h6-mobile-line)}.body-desktop-xl{font-size:var(--text-xl-size);font-weight:var(--text-xl-weight);line-height:var(--text-xl-line)}.body-desktop-large,.body-desktop-xl{font-family:var(--font-family-sans)!important;letter-spacing:0}.body-desktop-large{font-size:var(--text-large-size);font-weight:var(--text-large-weight);line-height:var(--text-large-line)}.body-desktop-regular{font-weight:var(--text-regular-weight)}.body-desktop-regular,.body-desktop-regular-emphasis{font-family:var(--font-family-sans)!important;font-size:var(--text-regular-size);letter-spacing:0;line-height:var(--text-regular-line)}.body-desktop-regular-emphasis{font-weight:var(--text-regular-emphasis-weight)}.body-desktop-small{font-weight:var(--text-small-weight)}.body-desktop-small,.body-desktop-small-emphasis{font-family:var(--font-family-sans)!important;font-size:var(--text-small-size);letter-spacing:0;line-height:var(--text-small-line)}.body-desktop-small-emphasis{font-weight:var(--text-small-emphasis-weight)}.body-desktop-small-bold{font-family:var(--font-family-sans)!important;font-size:var(--text-small-size);font-weight:var(--text-small-bold-weight);letter-spacing:0;line-height:var(--text-small-line)}.body-desktop-xs{font-weight:var(--text-xs-weight)}.body-desktop-xs,.body-desktop-xs-bold{font-family:var(--font-family-sans)!important;font-size:var(--text-xs-size);letter-spacing:0;line-height:var(--text-xs-line)}.body-desktop-xs-bold{font-weight:var(--text-xs-bold-weight)}.typography-story,[id*=v2-design-system-typography] *{font-family:var(--font-family-sans)!important}.typography-story{margin:0 auto;max-width:1200px;padding:2rem}.typography-story *{font-family:inherit!important}.story-header{margin-bottom:3rem}.story-header h1{color:var(--label-primary,#121e52);font-size:var(--heading-h1-size);font-weight:var(--heading-h1-weight);line-height:var(--heading-h1-line);margin:0 0 .5rem}.story-header h1,.story-header p{font-family:var(--font-family-sans);letter-spacing:0}.story-header p{color:var(--label-secondary,#626a90);font-size:var(--text-regular-size);font-weight:var(--text-regular-weight);line-height:var(--text-regular-line);margin:0}.typography-section{margin-bottom:3rem}.typography-section__title{border-bottom:2px solid var(--border-primary,#e8e9ef);color:var(--label-primary,#121e52);font-family:var(--font-family-sans);font-size:var(--heading-h2-size);font-weight:var(--heading-h2-weight);letter-spacing:0;line-height:var(--heading-h2-line);margin:0 0 2rem;padding-bottom:1rem}.typography-example,.typography-grid{display:grid;gap:2rem}.typography-example{align-items:center;background:var(--surface-primary,#fff);border:1px solid var(--border-primary,#e8e9ef);border-radius:8px;grid-template-columns:1fr auto;padding:1.5rem}.typography-sample{color:var(--label-primary,#121e52)}.typography-info{min-width:200px;text-align:right}.typography-name{color:var(--label-primary,#121e52);font-family:var(--font-family-sans);font-size:var(--text-small-size);font-weight:var(--text-small-emphasis-weight);letter-spacing:0;line-height:var(--text-small-line);margin-bottom:.25rem}.typography-specs{display:flex;gap:1rem;justify-content:flex-end;margin-bottom:.25rem}.typography-size,.typography-weight{background:var(--surface-secondary,#f8f8fa);border-radius:4px;font-family:var(--font-family-sans);font-family:var(--font-family-mono);padding:.25rem .5rem}.typography-description,.typography-size,.typography-weight{color:var(--label-secondary,#626a90);font-size:var(--text-xs-size);font-weight:var(--text-xs-weight);letter-spacing:0;line-height:var(--text-xs-line)}.typography-description{font-family:var(--font-family-sans);font-style:italic}@media (max-width:768px){.typography-story{padding:1rem}.typography-example{gap:1rem;grid-template-columns:1fr}.typography-info{text-align:left}.typography-specs{justify-content:flex-start}}.select-container{display:inline-block;max-width:152px;position:relative;width:auto}@media (min-width:768px){.select-container{max-width:448px}}.select{appearance:none;background-color:var(--surface-secondary);border:2px solid var(--border-primary);border-radius:var(--radius-md,4px);color:var(--label-primary);cursor:pointer;display:block;flex-shrink:0;font-family:var(--font-family-sans);font-size:var(--heading-h5-size);font-weight:var(--heading-h5-weight);height:40px;letter-spacing:0;line-height:var(--heading-h5-line);line-height:16px;padding:8px var(--padding-reg,16px);padding-right:40px;transition:all .2s ease-in-out;width:auto}.select:hover:not(:disabled){border-color:var(--disabled-regular)}.select--default,.select--hover{background-color:var(--surface-secondary)}.select--hover{border-color:var(--border-secondary)}.select--focus{border-color:var(--border-selected)}.select--focus,.select--secondary{background-color:var(--surface-secondary)}.select--secondary{border-color:var(--border-primary)}.select--secondary:hover:not(:disabled){background-color:var(--surface-primary-hover);border-color:var(--tone-regular)}.select--secondary:focus{background-color:var(--surface-primary);border-color:var(--disabled-regular)}.select--error{background-color:var(--surface-status-error);border-color:var(--borders-status-border-error)}.select--error:hover:not(:disabled){background-color:var(--errors-lighter);border-color:var(--errors-light)}.select--error:focus{background-color:var(--surface-status-error);border-color:var(--borders-status-border-error)}.select--info{background-color:var(--surface-status-info);border-color:var(--border-status-info);color:var(--information-darker)}.select--info:hover:not(:disabled){background-color:var(--information-lighter);border-color:var(--information-light)}.select--info:focus{background-color:var(--information-lightest);border-color:var(--information-dark)}.select--disabled{cursor:not-allowed;opacity:.6}.select--disabled,.select--disabled:hover{background-color:var(--surface-status-disabled);border-color:var(--border-status-disabled)}.select--sm{font-size:12px;padding:4px 32px 4px 8px}.select--md{font-size:14px;padding:8px 36px 8px 12px}.select--lg{font-size:16px;padding:12px 40px 12px 16px}.select::-ms-expand{display:none}.select-arrow{stroke:var(--label-secondary);height:6px;pointer-events:none;position:absolute;right:16px;top:50%;transform:translateY(-50%);transition:all .2s ease-in-out;width:11px}.select:focus+.select-arrow{transform:translateY(-50%) rotate(180deg)}.select:focus{border-color:var(--highlight-dark);box-shadow:0 0 0 3px var(--surface-highlight-soft);outline:none;transform:translateY(-1px)}.select:active{box-shadow:0 0 0 2px var(--surface-highlight-soft);transform:translateY(0)}.select.select--transitioning{border-color:var(--cyan-700);opacity:.8;transform:scale(.98)}.select.select--transitioning:focus{transform:scale(.98) translateY(-1px)}@keyframes filterPulse{0%{box-shadow:0 0 0 0 #1f9ab566}50%{box-shadow:0 0 0 4px #1f9ab51a}to{box-shadow:0 0 0 0 #1f9ab500}}.select--filter-active{animation:filterPulse .6s ease-out}";
3
+ var css_248z = ":root{--font-family-sans:\"Geist\",-apple-system,BlinkMacSystemFont,\"Segoe UI\",\"Roboto\",\"Helvetica Neue\",Arial,sans-serif;--font-family-mono:\"Geist Mono\",ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,\"Liberation Mono\",\"Courier New\",monospace;--heading-xxl-size:44px;--heading-xxl-line:48px;--heading-xxl-weight:600;--heading-xl-size:32px;--heading-xl-line:36px;--heading-xl-weight:700;--heading-h1-size:24px;--heading-h1-line:28px;--heading-h1-weight:600;--heading-h2-size:20px;--heading-h2-line:24px;--heading-h2-weight:600;--heading-h3-size:17px;--heading-h3-line:20px;--heading-h3-weight:600;--heading-h4-size:15px;--heading-h4-line:18px;--heading-h4-weight:600;--heading-h5-size:13px;--heading-h5-line:16px;--heading-h5-weight:500;--heading-h6-size:11px;--heading-h6-line:14px;--heading-h6-weight:500;--heading-xxl-mobile-size:32px;--heading-xxl-mobile-line:36px;--heading-xxl-mobile-weight:600;--heading-xl-mobile-size:26px;--heading-xl-mobile-line:30px;--heading-xl-mobile-weight:700;--heading-h1-mobile-size:20px;--heading-h1-mobile-line:23px;--heading-h1-mobile-weight:600;--heading-h2-mobile-size:18px;--heading-h2-mobile-line:22px;--heading-h2-mobile-weight:600;--heading-h3-mobile-size:16px;--heading-h3-mobile-line:18px;--heading-h3-mobile-weight:600;--heading-h4-mobile-size:14px;--heading-h4-mobile-line:16px;--heading-h4-mobile-weight:600;--heading-h5-mobile-size:13px;--heading-h5-mobile-line:16px;--heading-h5-mobile-weight:500;--heading-h6-mobile-size:11px;--heading-h6-mobile-line:14px;--heading-h6-mobile-weight:500;--text-xl-size:20px;--text-xl-line:26px;--text-xl-weight:400;--text-large-size:18px;--text-large-line:24px;--text-large-weight:400;--text-regular-size:15px;--text-regular-line:20px;--text-regular-weight:400;--text-regular-emphasis-weight:500;--text-small-size:13px;--text-small-line:16px;--text-small-weight:400;--text-small-emphasis-weight:500;--text-small-bold-weight:600;--text-xs-size:10px;--text-xs-line:13px;--text-xs-weight:500;--text-xs-bold-weight:600}.heading-desktop-xxl{font-size:var(--heading-xxl-size);font-weight:var(--heading-xxl-weight);line-height:var(--heading-xxl-line)}.heading-desktop-xl,.heading-desktop-xxl{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-desktop-xl{font-size:var(--heading-xl-size);font-weight:var(--heading-xl-weight);line-height:var(--heading-xl-line)}.heading-desktop-h1{font-size:var(--heading-h1-size);font-weight:var(--heading-h1-weight);line-height:var(--heading-h1-line)}.heading-desktop-h1,.heading-desktop-h2{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-desktop-h2{font-size:var(--heading-h2-size);font-weight:var(--heading-h2-weight);line-height:var(--heading-h2-line)}.heading-desktop-h3{font-size:var(--heading-h3-size);font-weight:var(--heading-h3-weight);line-height:var(--heading-h3-line)}.heading-desktop-h3,.heading-desktop-h4{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-desktop-h4{font-size:var(--heading-h4-size);font-weight:var(--heading-h4-weight);line-height:var(--heading-h4-line)}.heading-desktop-h5{font-size:var(--heading-h5-size);font-weight:var(--heading-h5-weight);line-height:var(--heading-h5-line)}.heading-desktop-h5,.heading-desktop-h6{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-desktop-h6{font-size:var(--heading-h6-size);font-weight:var(--heading-h6-weight);line-height:var(--heading-h6-line)}.heading-mobile-xxl{font-size:var(--heading-xxl-mobile-size);font-weight:var(--heading-xxl-mobile-weight);line-height:var(--heading-xxl-mobile-line)}.heading-mobile-xl,.heading-mobile-xxl{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-mobile-xl{font-size:var(--heading-xl-mobile-size);font-weight:var(--heading-xl-mobile-weight);line-height:var(--heading-xl-mobile-line)}.heading-mobile-h1{font-size:var(--heading-h1-mobile-size);font-weight:var(--heading-h1-mobile-weight);line-height:var(--heading-h1-mobile-line)}.heading-mobile-h1,.heading-mobile-h2{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-mobile-h2{font-size:var(--heading-h2-mobile-size);font-weight:var(--heading-h2-mobile-weight);line-height:var(--heading-h2-mobile-line)}.heading-mobile-h3{font-size:var(--heading-h3-mobile-size);font-weight:var(--heading-h3-mobile-weight);line-height:var(--heading-h3-mobile-line)}.heading-mobile-h3,.heading-mobile-h4{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-mobile-h4{font-size:var(--heading-h4-mobile-size);font-weight:var(--heading-h4-mobile-weight);line-height:var(--heading-h4-mobile-line)}.heading-mobile-h5{font-size:var(--heading-h5-mobile-size);font-weight:var(--heading-h5-mobile-weight);line-height:var(--heading-h5-mobile-line)}.heading-mobile-h5,.heading-mobile-h6{font-family:var(--font-family-sans)!important;letter-spacing:0}.heading-mobile-h6{font-size:var(--heading-h6-mobile-size);font-weight:var(--heading-h6-mobile-weight);line-height:var(--heading-h6-mobile-line)}.body-desktop-xl{font-size:var(--text-xl-size);font-weight:var(--text-xl-weight);line-height:var(--text-xl-line)}.body-desktop-large,.body-desktop-xl{font-family:var(--font-family-sans)!important;letter-spacing:0}.body-desktop-large{font-size:var(--text-large-size);font-weight:var(--text-large-weight);line-height:var(--text-large-line)}.body-desktop-regular{font-weight:var(--text-regular-weight)}.body-desktop-regular,.body-desktop-regular-emphasis{font-family:var(--font-family-sans)!important;font-size:var(--text-regular-size);letter-spacing:0;line-height:var(--text-regular-line)}.body-desktop-regular-emphasis{font-weight:var(--text-regular-emphasis-weight)}.body-desktop-small{font-weight:var(--text-small-weight)}.body-desktop-small,.body-desktop-small-emphasis{font-family:var(--font-family-sans)!important;font-size:var(--text-small-size);letter-spacing:0;line-height:var(--text-small-line)}.body-desktop-small-emphasis{font-weight:var(--text-small-emphasis-weight)}.body-desktop-small-bold{font-family:var(--font-family-sans)!important;font-size:var(--text-small-size);font-weight:var(--text-small-bold-weight);letter-spacing:0;line-height:var(--text-small-line)}.body-desktop-xs{font-weight:var(--text-xs-weight)}.body-desktop-xs,.body-desktop-xs-bold{font-family:var(--font-family-sans)!important;font-size:var(--text-xs-size);letter-spacing:0;line-height:var(--text-xs-line)}.body-desktop-xs-bold{font-weight:var(--text-xs-bold-weight)}.typography-story,[id*=v2-design-system-typography] *{font-family:var(--font-family-sans)!important}.typography-story{margin:0 auto;max-width:1200px;padding:2rem}.typography-story *{font-family:inherit!important}.story-header{margin-bottom:3rem}.story-header h1{color:var(--label-primary,#121e52);font-size:var(--heading-h1-size);font-weight:var(--heading-h1-weight);line-height:var(--heading-h1-line);margin:0 0 .5rem}.story-header h1,.story-header p{font-family:var(--font-family-sans);letter-spacing:0}.story-header p{color:var(--label-secondary,#626a90);font-size:var(--text-regular-size);font-weight:var(--text-regular-weight);line-height:var(--text-regular-line);margin:0}.typography-section{margin-bottom:3rem}.typography-section__title{border-bottom:2px solid var(--border-primary,#e8e9ef);color:var(--label-primary,#121e52);font-family:var(--font-family-sans);font-size:var(--heading-h2-size);font-weight:var(--heading-h2-weight);letter-spacing:0;line-height:var(--heading-h2-line);margin:0 0 2rem;padding-bottom:1rem}.typography-example,.typography-grid{display:grid;gap:2rem}.typography-example{align-items:center;background:var(--surface-primary,#fff);border:1px solid var(--border-primary,#e8e9ef);border-radius:8px;grid-template-columns:1fr auto;padding:1.5rem}.typography-sample{color:var(--label-primary,#121e52)}.typography-info{min-width:200px;text-align:right}.typography-name{color:var(--label-primary,#121e52);font-family:var(--font-family-sans);font-size:var(--text-small-size);font-weight:var(--text-small-emphasis-weight);letter-spacing:0;line-height:var(--text-small-line);margin-bottom:.25rem}.typography-specs{display:flex;gap:1rem;justify-content:flex-end;margin-bottom:.25rem}.typography-size,.typography-weight{background:var(--surface-secondary,#f8f8fa);border-radius:4px;font-family:var(--font-family-sans);font-family:var(--font-family-mono);padding:.25rem .5rem}.typography-description,.typography-size,.typography-weight{color:var(--label-secondary,#626a90);font-size:var(--text-xs-size);font-weight:var(--text-xs-weight);letter-spacing:0;line-height:var(--text-xs-line)}.typography-description{font-family:var(--font-family-sans);font-style:italic}@media (max-width:768px){.typography-story{padding:1rem}.typography-example{gap:1rem;grid-template-columns:1fr}.typography-info{text-align:left}.typography-specs{justify-content:flex-start}}.select-wrapper{display:flex;flex-direction:column;gap:var(--spacing-sm,8px);width:100%}.select-label{display:block;font-style:normal}.select-label,.select-label-optional{color:var(--label-primary,#121e52);font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:15px;font-weight:600;line-height:20px}.select-container{display:block;position:relative;width:100%}.select{appearance:none;background-color:var(--surface-secondary);border:2px solid var(--border-primary);border-radius:var(--radius-md,4px);color:var(--label-primary);cursor:pointer;display:block;flex-shrink:0;font-family:var(--font-family-sans);font-size:var(--heading-h5-size);font-weight:var(--heading-h5-weight);height:40px;letter-spacing:0;line-height:var(--heading-h5-line);line-height:16px;padding:8px var(--padding-reg,16px);padding-right:40px;transition:all .2s ease-in-out;width:100%}.select:hover:not(:disabled){border-color:var(--border-primary)}.select:focus{border-color:var(--border-selected,#6200ee);outline:none}.select--default,.select--hover{background-color:var(--surface-secondary)}.select--hover{border-color:var(--border-secondary)}.select--focus{border-color:var(--border-selected,#6200ee)}.select--focus,.select--secondary{background-color:var(--surface-secondary)}.select--secondary{border-color:var(--border-primary)}.select--secondary:hover:not(:disabled){background-color:var(--surface-primary-hover);border-color:var(--tone-regular)}.select--secondary:focus{background-color:var(--surface-primary);border-color:var(--disabled-regular)}.select--error{background-color:var(--surface-status-error);border-color:var(--borders-status-border-error)}.select--error:hover:not(:disabled){background-color:var(--errors-lighter);border-color:var(--errors-light)}.select--error:focus{background-color:var(--surface-status-error);border-color:var(--borders-status-border-error)}.select--info{background-color:var(--surface-status-info);border-color:var(--border-status-info);color:var(--information-darker)}.select--info:hover:not(:disabled){background-color:var(--information-lighter);border-color:var(--information-light)}.select--info:focus{background-color:var(--information-lightest);border-color:var(--information-dark)}.select--disabled{cursor:not-allowed;opacity:.6}.select--disabled,.select--disabled:hover{background-color:var(--surface-status-disabled);border-color:var(--border-status-disabled)}.select--sm{font-size:12px;padding:4px 32px 4px 8px}.select--md{font-size:14px;padding:8px 36px 8px 12px}.select--lg{font-size:16px;padding:12px 40px 12px 16px}.select::-ms-expand{display:none}.select-arrow{stroke:var(--label-secondary);height:6px;pointer-events:none;position:absolute;right:16px;top:50%;transform:translateY(-50%);transition:all .2s ease-in-out;width:11px}.select:focus+.select-arrow{transform:translateY(-50%) rotate(180deg)}.select:active{transform:translateY(0)}.select.select--transitioning{border-color:var(--cyan-700);opacity:.8;transform:scale(.98)}@keyframes filterPulse{0%{box-shadow:0 0 0 0 #1f9ab566}50%{box-shadow:0 0 0 4px #1f9ab51a}to{box-shadow:0 0 0 0 #1f9ab500}}.select--filter-active{animation:filterPulse .6s ease-out}.select-helper-text{color:var(--label-secondary,#626a90);font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:var(--text-regular-size,15px);font-style:normal;font-weight:400;line-height:var(--text-regular-line,20px);margin-top:2px;min-width:max-content;white-space:nowrap}@media (max-width:768px){.select-helper-text{word-wrap:break-word;min-width:unset;white-space:normal}}.select-error-text{color:var(--status-error,#d32f2f);font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:var(--text-sm-size,13px);font-style:normal;font-weight:400;line-height:var(--text-sm-line,18px);margin-top:2px}";
4
4
  styleInject(css_248z);
5
5
 
6
6
  export { css_248z as default };
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ export type SortDirection = 'asc' | 'desc' | null;
3
+ export interface TableSortIconProps {
4
+ active?: boolean;
5
+ direction: SortDirection;
6
+ className?: string;
7
+ }
8
+ export declare const TableSortIcon: React.FC<TableSortIconProps>;
9
+ //# sourceMappingURL=TableSortIcon.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"TableSortIcon.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/TableSortIcon/TableSortIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,MAAM,MAAM,aAAa,GAAG,KAAK,GAAG,MAAM,GAAG,IAAI,CAAA;AAEjD,MAAM,WAAW,kBAAkB;IACjC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,aAAa,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;CACnB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAQtD,CAAA"}
@@ -0,0 +1,14 @@
1
+ import { jsx } from 'react/jsx-runtime';
2
+ import 'react';
3
+ import { ArrowUpIcon, ArrowDownIcon } from '../../icons/index.js';
4
+
5
+ var TableSortIcon = function(param) {
6
+ var _param_active = param.active, active = _param_active === void 0 ? false : _param_active, direction = param.direction, _param_className = param.className, className = _param_className === void 0 ? '' : _param_className;
7
+ if (!active || !direction) return null;
8
+ return /*#__PURE__*/ jsx("span", {
9
+ className: className,
10
+ children: direction === 'asc' ? /*#__PURE__*/ jsx(ArrowUpIcon, {}) : /*#__PURE__*/ jsx(ArrowDownIcon, {})
11
+ });
12
+ };
13
+
14
+ export { TableSortIcon };
@@ -0,0 +1,2 @@
1
+ export * from './TableSortIcon';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/TableSortIcon/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAA"}
@@ -150,14 +150,14 @@ var DividerIcon = function() {
150
150
  cy: "12",
151
151
  r: "0.75",
152
152
  fill: "#626A90",
153
- "fill-opacity": "0.5"
153
+ fillOpacity: "0.5"
154
154
  }),
155
155
  /*#__PURE__*/ jsx("circle", {
156
156
  cx: "2.25",
157
157
  cy: "12",
158
158
  r: "0.75",
159
159
  fill: "#626A90",
160
- "fill-opacity": "0.5"
160
+ fillOpacity: "0.5"
161
161
  })
162
162
  ]
163
163
  });