@licklist/design 0.78.5-dev.57 → 0.78.5-dev.59
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/Maintenance/MaintenancePage.js +1 -0
- package/dist/index.js +3 -1
- package/dist/v2/components/ActionMenu/ActionMenu.d.ts.map +1 -1
- package/dist/v2/components/ActionMenu/ActionMenu.js +60 -8
- package/dist/v2/components/ActionMenu/ActionMenu.scss.js +1 -1
- package/dist/v2/components/Alert/Alert.d.ts.map +1 -1
- package/dist/v2/components/Alert/Alert.js +48 -1
- package/dist/v2/components/Alert/Alert.scss.js +1 -1
- package/dist/v2/components/Badge/Badge.d.ts.map +1 -1
- package/dist/v2/components/Badge/Badge.js +1 -1
- package/dist/v2/components/Badge/Badge.scss.js +1 -1
- package/dist/v2/components/Button/Button.d.ts +1 -1
- package/dist/v2/components/Button/Button.d.ts.map +1 -1
- package/dist/v2/components/Button/Button.js +1 -0
- package/dist/v2/components/Button/GhostButton.scss.js +1 -1
- package/dist/v2/components/Button/index.d.ts +2 -0
- package/dist/v2/components/Button/index.d.ts.map +1 -1
- package/dist/v2/components/FormField/FormField.d.ts.map +1 -1
- package/dist/v2/components/Modal/DeleteModal.d.ts.map +1 -1
- package/dist/v2/components/Modal/DeleteModal.js +4 -0
- package/dist/v2/components/NPSScore/NPSScore.d.ts +3 -1
- package/dist/v2/components/NPSScore/NPSScore.d.ts.map +1 -1
- package/dist/v2/components/NPSScore/NPSScore.js +4 -7
- package/dist/v2/components/NPSScore/NPSScore.scss.js +1 -1
- package/dist/v2/components/NewInput/NewInput.d.ts.map +1 -1
- package/dist/v2/components/NewInput/NewInput.js +8 -0
- package/dist/v2/components/NewPageHeader/NewPageHeader.d.ts +2 -1
- package/dist/v2/components/NewPageHeader/NewPageHeader.d.ts.map +1 -1
- package/dist/v2/components/NewPageHeader/NewPageHeader.js +3 -2
- package/dist/v2/components/NewPageHeader/NewPageHeader.scss.js +1 -1
- package/dist/v2/components/NewTable/NewTable.d.ts.map +1 -1
- package/dist/v2/components/NewTable/NewTable.js +1 -0
- package/dist/v2/components/NewTable/NewTable.scss.js +1 -1
- package/dist/v2/components/Pagination/Pagination.js +1 -4
- package/dist/v2/components/Pagination/Pagination.scss.js +1 -1
- package/dist/v2/components/QuickFilter/QuickFilter.d.ts.map +1 -1
- package/dist/v2/components/QuickFilter/QuickFilter.js +5 -2
- package/dist/v2/components/QuickFilter/QuickFilter.scss.js +1 -1
- package/dist/v2/components/SectionHeader/SectionHeader.d.ts.map +1 -1
- package/dist/v2/components/TableSortIcon/TableSortIcon.d.ts +9 -0
- package/dist/v2/components/TableSortIcon/TableSortIcon.d.ts.map +1 -0
- package/dist/v2/components/TableSortIcon/TableSortIcon.js +14 -0
- package/dist/v2/components/TableSortIcon/index.d.ts +2 -0
- package/dist/v2/components/TableSortIcon/index.d.ts.map +1 -0
- package/dist/v2/components/WYSIWYGEditor/Icons.js +2 -2
- package/dist/v2/components/index.d.ts +5 -3
- package/dist/v2/components/index.d.ts.map +1 -1
- package/dist/v2/icons/index.d.ts +10 -0
- package/dist/v2/icons/index.d.ts.map +1 -1
- package/dist/v2/icons/index.js +61 -1
- package/dist/v2/pages/Settings/components/SidebarCustomisation.js +2 -3
- package/dist/v2/pages/Settings/components/SidebarNavItem.js +2 -2
- package/package.json +1 -1
- package/src/v2/components/ActionMenu/ActionMenu.scss +22 -5
- package/src/v2/components/ActionMenu/ActionMenu.tsx +53 -5
- package/src/v2/components/Alert/Alert.scss +8 -19
- package/src/v2/components/Alert/Alert.tsx +24 -1
- package/src/v2/components/Badge/Badge.scss +13 -0
- package/src/v2/components/Badge/Badge.tsx +10 -8
- package/src/v2/components/Button/Button.tsx +13 -2
- package/src/v2/components/Button/GhostButton.scss +11 -1
- package/src/v2/components/Button/index.ts +2 -0
- package/src/v2/components/Customer/CustomersList.scss +72 -115
- package/src/v2/components/FormField/FormField.tsx +19 -21
- package/src/v2/components/Modal/DeleteModal.tsx +4 -2
- package/src/v2/components/NPSScore/NPSScore.scss +4 -0
- package/src/v2/components/NPSScore/NPSScore.tsx +6 -7
- package/src/v2/components/NewInput/NewInput.tsx +13 -1
- package/src/v2/components/NewPageHeader/NewPageHeader.scss +8 -5
- package/src/v2/components/NewPageHeader/NewPageHeader.tsx +21 -21
- package/src/v2/components/NewTable/NewTable.scss +17 -1
- package/src/v2/components/NewTable/NewTable.tsx +1 -0
- package/src/v2/components/Pagination/Pagination.scss +18 -18
- package/src/v2/components/Pagination/Pagination.tsx +1 -1
- package/src/v2/components/QuickFilter/QuickFilter.scss +17 -34
- package/src/v2/components/QuickFilter/QuickFilter.tsx +7 -5
- package/src/v2/components/SectionHeader/SectionHeader.tsx +5 -7
- package/src/v2/components/TableSortIcon/TableSortIcon.tsx +20 -0
- package/src/v2/components/TableSortIcon/index.ts +1 -0
- package/src/v2/components/WYSIWYGEditor/Icons.tsx +2 -2
- package/src/v2/components/index.ts +8 -3
- package/src/v2/icons/index.tsx +14 -0
- package/src/v2/pages/Settings/components/SidebarCustomisation.tsx +1 -1
|
@@ -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 = ".nps-score{box-sizing:border-box;margin-top:24px;padding:0 1rem;width:100%}.nps-score__container{background:var(--surface-secondary);border:1px solid var(--border-primary);border-radius:16px;padding:24px}.nps-score__question{color:var(--label-primary);font-family:var(--font-family-sans);font-size:18px;font-weight:600;line-height:24px;margin:0 0 16px}.nps-score__labels{align-items:center;display:flex;justify-content:space-between;margin-bottom:12px}.nps-score__label{align-items:center;display:flex;gap:8px}.nps-score__label span{color:var(--label-secondary);font-family:var(--font-family-sans);font-size:14px;font-weight:500}.nps-score__label--desktop{display:none}@media (min-width:768px){.nps-score__label--desktop{display:flex}}.nps-score__label--mobile{display:flex;justify-content:flex-end;margin-top:12px}@media (min-width:768px){.nps-score__label--mobile{display:none}}.nps-score__label-icon{color:var(--fill-secondary);flex-shrink:0}.nps-score__buttons{display:grid;gap:8px;grid-template-columns:repeat(5,1fr)}@media (min-width:768px){.nps-score__buttons{grid-template-columns:repeat(10,1fr)}}.nps-score__button{background:var(--surface-primary);border:1px solid var(--border-primary);border-radius:12px;color:var(--label-primary);cursor:pointer;font-family:var(--font-family-sans);font-size:18px;font-weight:600;height:48px;transition:all .2s ease}.nps-score__button:hover:not(.nps-score__button--selected){background:var(--surface-primary-hover)}.nps-score__button--selected{background:var(--fill-primary);border-color:#0000;color:var(--label-primary-alt)}.nps-score__expanded{animation:nps-fade-in .2s ease;display:flex;flex-direction:column;gap:16px;margin-top:16px}.nps-score__field--roles{padding-top:16px}.nps-score__field-label{color:var(--label-primary);display:block;font-family:var(--font-family-sans);font-size:14px;font-weight:500;margin-bottom:8px}.nps-score__field-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:8px}.nps-score__optional{color:var(--label-secondary)}.nps-score__optional,.nps-score__textarea{font-family:var(--font-family-sans);font-size:14px}.nps-score__textarea{background:var(--surface-primary);border:1px solid var(--border-primary);border-radius:8px;box-sizing:border-box;color:var(--label-primary);min-height:100px;padding:12px;resize:vertical;width:100%}.nps-score__textarea::placeholder{color:var(--label-secondary)}.nps-score__textarea:focus{border-color:var(--fill-primary);outline:none}.nps-score__textarea--error{border-color:var(--fill-danger)}.nps-score__hint{color:var(--label-secondary)}.nps-score__error,.nps-score__hint{font-family:var(--font-family-sans);font-size:14px;margin:4px 0 0}.nps-score__error{color:var(--fill-danger)}.nps-score__add-comment{background:none;border:none;cursor:pointer;font-family:var(--font-family-sans);font-size:14px;font-weight:500;padding:0;text-decoration:underline;transition:color .2s ease}.nps-score__add-comment,.nps-score__add-comment:hover{color:var(--label-action)}.nps-score__roles{display:grid;gap:8px;grid-template-columns:1fr}@media (min-width:640px){.nps-score__roles{gap:4px;grid-template-columns:repeat(2,1fr)}}@media (min-width:1024px){.nps-score__roles{grid-template-columns:repeat(3,1fr)}}.nps-score__role{align-items:center;cursor:pointer;display:flex;gap:8px;position:relative}.nps-score__role-input{appearance:none;-webkit-appearance:none;-moz-appearance:none;background:var(--surface-primary);border:2px solid var(--border-primary);border-radius:50%;cursor:pointer;flex-shrink:0;height:20px;margin:0;position:relative;transition:border-color .2s ease;width:20px}.nps-score__role-input:before{background:var(--fill-primary);border-radius:50%;content:\"\";height:10px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .2s ease;width:10px}.nps-score__role-input:checked{border-color:var(--fill-primary)}.nps-score__role-input:checked:before{transform:translate(-50%,-50%) scale(1)}.nps-score__role-input:focus{box-shadow:0 0 0 2px var(--border-action);outline:none}.nps-score__role-radio{display:none}.nps-score__role-label{color:var(--label-primary);font-family:var(--font-family-sans);font-size:14px}.nps-score__success{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:32px;text-align:center}.nps-score__success-icon{color:var(--fill-status-success);margin-bottom:16px}.nps-score__success-title{color:var(--label-primary);font-family:var(--font-family-sans);font-size:24px;font-weight:600;margin:0 0 8px}.nps-score__success-message{color:var(--label-secondary);font-family:var(--font-family-sans);font-size:14px;margin:0}@keyframes nps-fade-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}";
|
|
3
|
+
var css_248z = ".nps-score{box-sizing:border-box;margin-top:24px;padding:0 1rem;width:100%}@media (max-width:576px){.nps-score{padding:0 16px}}.nps-score__container{background:var(--surface-secondary);border:1px solid var(--border-primary);border-radius:16px;padding:24px}.nps-score__question{color:var(--label-primary);font-family:var(--font-family-sans);font-size:18px;font-weight:600;line-height:24px;margin:0 0 16px}.nps-score__labels{align-items:center;display:flex;justify-content:space-between;margin-bottom:12px}.nps-score__label{align-items:center;display:flex;gap:8px}.nps-score__label span{color:var(--label-secondary);font-family:var(--font-family-sans);font-size:14px;font-weight:500}.nps-score__label--desktop{display:none}@media (min-width:768px){.nps-score__label--desktop{display:flex}}.nps-score__label--mobile{display:flex;justify-content:flex-end;margin-top:12px}@media (min-width:768px){.nps-score__label--mobile{display:none}}.nps-score__label-icon{color:var(--fill-secondary);flex-shrink:0}.nps-score__buttons{display:grid;gap:8px;grid-template-columns:repeat(5,1fr)}@media (min-width:768px){.nps-score__buttons{grid-template-columns:repeat(10,1fr)}}.nps-score__button{background:var(--surface-primary);border:1px solid var(--border-primary);border-radius:12px;color:var(--label-primary);cursor:pointer;font-family:var(--font-family-sans);font-size:18px;font-weight:600;height:48px;transition:all .2s ease}.nps-score__button:hover:not(.nps-score__button--selected){background:var(--surface-primary-hover)}.nps-score__button--selected{background:var(--fill-primary);border-color:#0000;color:var(--label-primary-alt)}.nps-score__expanded{animation:nps-fade-in .2s ease;display:flex;flex-direction:column;gap:16px;margin-top:16px}.nps-score__field--roles{padding-top:16px}.nps-score__field-label{color:var(--label-primary);display:block;font-family:var(--font-family-sans);font-size:14px;font-weight:500;margin-bottom:8px}.nps-score__field-header{align-items:center;display:flex;justify-content:space-between;margin-bottom:8px}.nps-score__optional{color:var(--label-secondary)}.nps-score__optional,.nps-score__textarea{font-family:var(--font-family-sans);font-size:14px}.nps-score__textarea{background:var(--surface-primary);border:1px solid var(--border-primary);border-radius:8px;box-sizing:border-box;color:var(--label-primary);min-height:100px;padding:12px;resize:vertical;width:100%}.nps-score__textarea::placeholder{color:var(--label-secondary)}.nps-score__textarea:focus{border-color:var(--fill-primary);outline:none}.nps-score__textarea--error{border-color:var(--fill-danger)}.nps-score__hint{color:var(--label-secondary)}.nps-score__error,.nps-score__hint{font-family:var(--font-family-sans);font-size:14px;margin:4px 0 0}.nps-score__error{color:var(--fill-danger)}.nps-score__add-comment{background:none;border:none;cursor:pointer;font-family:var(--font-family-sans);font-size:14px;font-weight:500;padding:0;text-decoration:underline;transition:color .2s ease}.nps-score__add-comment,.nps-score__add-comment:hover{color:var(--label-action)}.nps-score__roles{display:grid;gap:8px;grid-template-columns:1fr}@media (min-width:640px){.nps-score__roles{gap:4px;grid-template-columns:repeat(2,1fr)}}@media (min-width:1024px){.nps-score__roles{grid-template-columns:repeat(3,1fr)}}.nps-score__role{align-items:center;cursor:pointer;display:flex;gap:8px;position:relative}.nps-score__role-input{appearance:none;-webkit-appearance:none;-moz-appearance:none;background:var(--surface-primary);border:2px solid var(--border-primary);border-radius:50%;cursor:pointer;flex-shrink:0;height:20px;margin:0;position:relative;transition:border-color .2s ease;width:20px}.nps-score__role-input:before{background:var(--fill-primary);border-radius:50%;content:\"\";height:10px;left:50%;position:absolute;top:50%;transform:translate(-50%,-50%) scale(0);transition:transform .2s ease;width:10px}.nps-score__role-input:checked{border-color:var(--fill-primary)}.nps-score__role-input:checked:before{transform:translate(-50%,-50%) scale(1)}.nps-score__role-input:focus{box-shadow:0 0 0 2px var(--border-action);outline:none}.nps-score__role-radio{display:none}.nps-score__role-label{color:var(--label-primary);font-family:var(--font-family-sans);font-size:14px}.nps-score__success{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:32px;text-align:center}.nps-score__success-icon{color:var(--fill-status-success);margin-bottom:16px}.nps-score__success-title{color:var(--label-primary);font-family:var(--font-family-sans);font-size:24px;font-weight:600;margin:0 0 8px}.nps-score__success-message{color:var(--label-secondary);font-family:var(--font-family-sans);font-size:14px;margin:0}@keyframes nps-fade-in{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}";
|
|
4
4
|
styleInject(css_248z);
|
|
5
5
|
|
|
6
6
|
export { css_248z as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewInput.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/NewInput/NewInput.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,mBAAmB,EAAE,sBAAsB,EAAc,SAAS,EAAC,MAAM,OAAO,CAAC;AAChG,OAAO,iCAAiC,CAAC;AAEzC,KAAK,gBAAgB,GAAG;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,MAAM,CA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GAAG,gBAAgB,GAAG;IACtC,EAAE,EAAE,UAAU,CAAC;CAChB,GAAG,sBAAsB,CAAC,mBAAmB,CAAC,CAAA;AAE/C,MAAM,MAAM,aAAa,GAAG,UAAU,GAAG,aAAa,CAAA;AAEtD,eAAO,MAAM,QAAQ,8GA4FpB,CAAC"}
|
|
@@ -106,7 +106,15 @@ var NewInput = /*#__PURE__*/ forwardRef(function(_param, ref) {
|
|
|
106
106
|
}, props)),
|
|
107
107
|
/*#__PURE__*/ jsx("div", {
|
|
108
108
|
className: "icon",
|
|
109
|
+
role: "button",
|
|
110
|
+
tabIndex: 0,
|
|
109
111
|
onClick: handleIconClick,
|
|
112
|
+
onKeyDown: function(e) {
|
|
113
|
+
if (e.key === 'Enter' || e.key === ' ') {
|
|
114
|
+
e.preventDefault();
|
|
115
|
+
handleIconClick();
|
|
116
|
+
}
|
|
117
|
+
},
|
|
110
118
|
style: {
|
|
111
119
|
cursor: onIconClick || props.type === 'date' ? 'pointer' : 'default'
|
|
112
120
|
},
|
|
@@ -7,6 +7,7 @@ export interface NewPageHeaderProps {
|
|
|
7
7
|
renderRight?: () => React.ReactNode;
|
|
8
8
|
className?: string;
|
|
9
9
|
showDivider?: boolean;
|
|
10
|
+
dividerClassName?: string;
|
|
10
11
|
}
|
|
11
|
-
export declare const NewPageHeader: ({ title, cancelLabel, onCancel, renderRight, className, showDivider }: NewPageHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
export declare const NewPageHeader: ({ title, cancelLabel, onCancel, renderRight, className, showDivider, dividerClassName }: NewPageHeaderProps) => import("react/jsx-runtime").JSX.Element;
|
|
12
13
|
//# sourceMappingURL=NewPageHeader.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NewPageHeader.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/NewPageHeader/NewPageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,sBAAsB,CAAC;AAE9B,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"NewPageHeader.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/NewPageHeader/NewPageHeader.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAE1B,OAAO,sBAAsB,CAAC;AAE9B,MAAM,WAAW,kBAAkB;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,KAAK,CAAC,SAAS,CAAC;IACpC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,eAAO,MAAM,aAAa,GAAI,yFAQ3B,kBAAkB,4CAmBpB,CAAC"}
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
3
|
import { Button, ButtonText } from '../Button/Button.js';
|
|
4
|
+
import '../Button/GhostButton.scss.js';
|
|
4
5
|
import './NewPageHeader.scss.js';
|
|
5
6
|
|
|
6
7
|
var NewPageHeader = function(param) {
|
|
7
|
-
var title = param.title, _param_cancelLabel = param.cancelLabel, cancelLabel = _param_cancelLabel === void 0 ? 'Cancel' : _param_cancelLabel, onCancel = param.onCancel, renderRight = param.renderRight, _param_className = param.className, className = _param_className === void 0 ? '' : _param_className, _param_showDivider = param.showDivider, showDivider = _param_showDivider === void 0 ? true : _param_showDivider;
|
|
8
|
+
var title = param.title, _param_cancelLabel = param.cancelLabel, cancelLabel = _param_cancelLabel === void 0 ? 'Cancel' : _param_cancelLabel, onCancel = param.onCancel, renderRight = param.renderRight, _param_className = param.className, className = _param_className === void 0 ? '' : _param_className, _param_showDivider = param.showDivider, showDivider = _param_showDivider === void 0 ? true : _param_showDivider, _param_dividerClassName = param.dividerClassName, dividerClassName = _param_dividerClassName === void 0 ? '' : _param_dividerClassName;
|
|
8
9
|
return /*#__PURE__*/ jsxs("div", {
|
|
9
10
|
className: "new-page-header-container ".concat(className),
|
|
10
11
|
children: [
|
|
@@ -33,7 +34,7 @@ var NewPageHeader = function(param) {
|
|
|
33
34
|
]
|
|
34
35
|
}),
|
|
35
36
|
showDivider && /*#__PURE__*/ jsx("hr", {
|
|
36
|
-
className: "new-page-header__divider"
|
|
37
|
+
className: "new-page-header__divider ".concat(dividerClassName)
|
|
37
38
|
})
|
|
38
39
|
]
|
|
39
40
|
});
|
|
@@ -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 = ".new-page-header-container{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:
|
|
3
|
+
var css_248z = ".new-page-header-container{align-items:flex-start;align-self:stretch;display:flex;flex-direction:column;gap:0;padding:32px 32px 0}@media (max-width:768px){.new-page-header-container{gap:0;padding:16px 16px 0}}@media (max-width:480px){.new-page-header-container{padding:16px 12px 0}}.new-page-header{align-items:center;align-self:stretch;display:flex;gap:16px;justify-content:space-between;width:100%}@media (max-width:768px){.new-page-header{gap:8px;padding-top:16px}}.new-page-header__title{color:var(--label-primary);font-family:var(--font-family-sans,\"Geist\",sans-serif);font-size:24px;font-style:normal;font-weight:600;line-height:28px;margin:0;padding:0}.new-page-header__actions{align-items:center;display:flex;flex-shrink:0;gap:16px}.new-page-header__divider{background-color:var(--border-primary,#e8e9ef);border:none;height:1px;width:100%}";
|
|
4
4
|
styleInject(css_248z);
|
|
5
5
|
|
|
6
6
|
export { css_248z as default };
|
|
@@ -1 +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,
|
|
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"}
|
|
@@ -36,6 +36,7 @@ function NewTable(param) {
|
|
|
36
36
|
var content = typeof column.accessor === 'function' ? column.accessor(row) : row[column.accessor];
|
|
37
37
|
return /*#__PURE__*/ jsx("td", {
|
|
38
38
|
className: "new-table__cell ".concat(column.className || ''),
|
|
39
|
+
role: "presentation",
|
|
39
40
|
onClick: function(e) {
|
|
40
41
|
if (column.disableRowClick) {
|
|
41
42
|
e.stopPropagation();
|
|
@@ -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 = ".new-table-wrapper{overflow-x:auto;width:100%}.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);transition:background-color .2s ease}.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);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
|
|
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
4
|
styleInject(css_248z);
|
|
5
5
|
|
|
6
6
|
export { css_248z as default };
|
|
@@ -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 = ".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:
|
|
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
4
|
styleInject(css_248z);
|
|
5
5
|
|
|
6
6
|
export { css_248z as default };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuickFilter.d.ts","sourceRoot":"","sources":["../../../../src/v2/components/QuickFilter/QuickFilter.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;
|
|
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"}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
|
+
import '../Button/Button.scss.js';
|
|
4
|
+
import { GhostButton } from '../Button/GhostButton.js';
|
|
3
5
|
import './QuickFilter.scss.js';
|
|
4
6
|
|
|
5
7
|
function _array_like_to_array(arr, len) {
|
|
@@ -50,9 +52,10 @@ var QuickFilter = function(param) {
|
|
|
50
52
|
/*#__PURE__*/ jsx("div", {
|
|
51
53
|
className: "quick-filter__options",
|
|
52
54
|
children: options.map(function(option) {
|
|
53
|
-
return /*#__PURE__*/ jsx(
|
|
55
|
+
return /*#__PURE__*/ jsx(GhostButton, {
|
|
54
56
|
type: "button",
|
|
55
|
-
|
|
57
|
+
size: "sm",
|
|
58
|
+
className: (selectedValues === null || selectedValues === void 0 ? void 0 : selectedValues.includes(option.value)) ? 'active' : '',
|
|
56
59
|
onClick: function() {
|
|
57
60
|
return toggleOption(option.value);
|
|
58
61
|
},
|
|
@@ -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 = ".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-
|
|
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
4
|
styleInject(css_248z);
|
|
5
5
|
|
|
6
6
|
export { css_248z as default };
|
|
@@ -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,
|
|
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"}
|
|
@@ -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 @@
|
|
|
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
|
-
|
|
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
|
-
|
|
160
|
+
fillOpacity: "0.5"
|
|
161
161
|
})
|
|
162
162
|
]
|
|
163
163
|
});
|
|
@@ -4,6 +4,8 @@ export { QuickFilter } from './QuickFilter';
|
|
|
4
4
|
export type { QuickFilterProps, QuickFilterOption } from './QuickFilter';
|
|
5
5
|
export { NewTable } from './NewTable';
|
|
6
6
|
export type { NewTableProps, NewTableColumn } from './NewTable';
|
|
7
|
+
export { TableSortIcon } from './TableSortIcon';
|
|
8
|
+
export type { TableSortIconProps } from './TableSortIcon';
|
|
7
9
|
export { ActionMenu } from './ActionMenu';
|
|
8
10
|
export type { ActionMenuProps, ActionMenuItem } from './ActionMenu';
|
|
9
11
|
export { DeleteModal } from './Modal';
|
|
@@ -20,8 +22,8 @@ export { NewPageHeader } from './NewPageHeader';
|
|
|
20
22
|
export type { NewPageHeaderProps } from './NewPageHeader';
|
|
21
23
|
export { SectionHeader } from './SectionHeader';
|
|
22
24
|
export type { SectionHeaderProps } from './SectionHeader';
|
|
23
|
-
export { Button, ButtonText } from './Button';
|
|
24
|
-
export type { ButtonProps, ButtonTextProps } from './Button';
|
|
25
|
+
export { Button, ButtonText, GhostButton } from './Button';
|
|
26
|
+
export type { ButtonProps, ButtonTextProps, GhostButtonProps } from './Button';
|
|
25
27
|
export { Select } from './Select';
|
|
26
28
|
export { Tooltip } from './Tooltip';
|
|
27
29
|
export { UserAvatar } from './UserAvatar';
|
|
@@ -31,5 +33,5 @@ export { Alert } from './Alert';
|
|
|
31
33
|
export { NPSScore } from './NPSScore';
|
|
32
34
|
export { Pagination } from './Pagination';
|
|
33
35
|
export type { PaginationProps } from './Pagination';
|
|
34
|
-
export { InfoIcon, ArrowUpIcon, ArrowDownIcon, EditIcon, ArrowLeftIcon, ArrowRightIcon, SearchIcon, RefreshIcon, SendIcon, ExternalLinkIcon, ExportIcon, ClearIcon, CloseIcon } from '../icons';
|
|
36
|
+
export { InfoIcon, ArrowUpIcon, ArrowDownIcon, EditIcon, ArrowLeftIcon, ArrowRightIcon, SearchIcon, RefreshIcon, SendIcon, ExternalLinkIcon, ExportIcon, ClearIcon, CloseIcon, EllipsisIcon, CircleIcon } from '../icons';
|
|
35
37
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAExE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/components/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAA;AAC/B,YAAY,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEzC,OAAO,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAC3C,YAAY,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAA;AAExE,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AACrC,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAE/D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAC/C,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAA;AAGzD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,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,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAA;AAErC,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAA;AACzC,YAAY,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAGnD,OAAO,EACL,QAAQ,EACR,WAAW,EACX,aAAa,EACb,QAAQ,EACR,aAAa,EACb,cAAc,EACd,UAAU,EACV,WAAW,EACX,QAAQ,EACR,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,SAAS,EACT,YAAY,EACZ,UAAU,EACX,MAAM,UAAU,CAAA"}
|
package/dist/v2/icons/index.d.ts
CHANGED
|
@@ -51,4 +51,14 @@ export declare const CloseIcon: ({ width, height, ...props }: React.SVGProps<SVG
|
|
|
51
51
|
width?: number;
|
|
52
52
|
height?: number;
|
|
53
53
|
}) => import("react/jsx-runtime").JSX.Element;
|
|
54
|
+
export declare const EllipsisIcon: ({ width, height, fill, ...props }?: React.SVGProps<SVGSVGElement> & {
|
|
55
|
+
width?: number;
|
|
56
|
+
height?: number;
|
|
57
|
+
fill?: string;
|
|
58
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
59
|
+
export declare const CircleIcon: ({ width, height, fill, className, ...props }?: React.SVGProps<SVGSVGElement> & {
|
|
60
|
+
width?: number;
|
|
61
|
+
height?: number;
|
|
62
|
+
fill?: string;
|
|
63
|
+
}) => import("react/jsx-runtime").JSX.Element;
|
|
54
64
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/v2/icons/index.tsx"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,+CAOzB,CAAA;AAED,eAAO,MAAM,WAAW,+CAIvB,CAAA;AAED,eAAO,MAAM,SAAS,+CAKrB,CAAA;AAED,eAAO,MAAM,aAAa,+CAIzB,CAAA;AAED,eAAO,MAAM,SAAS,+CAIrB,CAAA;AAED,eAAO,MAAM,WAAW,+CAIvB,CAAA;A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B,CAAA;AAED,eAAO,MAAM,aAAa,+CAIzB,CAAA;AAED,eAAO,MAAM,SAAS,GAAI,6BACvB,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,4CAWrE,CAAA;AAED,eAAO,MAAM,YAAY,GAAI,oCAAuD,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,4CAM1K,CAAA;AAED,eAAO,MAAM,UAAU,GAAI,+CAA4F,KAAK,CAAC,QAAQ,CAAC,aAAa,CAAC,GAAG;IAAE,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAO,4CAI7M,CAAA"}
|
package/dist/v2/icons/index.js
CHANGED
|
@@ -403,5 +403,65 @@ var CloseIcon = function(_param) {
|
|
|
403
403
|
]
|
|
404
404
|
}));
|
|
405
405
|
};
|
|
406
|
+
var EllipsisIcon = function() {
|
|
407
|
+
var _param = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
408
|
+
var _param_width = _param.width, width = _param_width === void 0 ? 32 : _param_width, _param_height = _param.height, height = _param_height === void 0 ? 32 : _param_height, _param_fill = _param.fill, fill = _param_fill === void 0 ? 'black' : _param_fill, props = _object_without_properties(_param, [
|
|
409
|
+
"width",
|
|
410
|
+
"height",
|
|
411
|
+
"fill"
|
|
412
|
+
]);
|
|
413
|
+
return /*#__PURE__*/ jsxs("svg", _object_spread_props(_object_spread({
|
|
414
|
+
width: width,
|
|
415
|
+
height: height,
|
|
416
|
+
viewBox: "0 0 32 32",
|
|
417
|
+
fill: "none",
|
|
418
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
419
|
+
}, props), {
|
|
420
|
+
children: [
|
|
421
|
+
/*#__PURE__*/ jsx("circle", {
|
|
422
|
+
cx: "8",
|
|
423
|
+
cy: "16",
|
|
424
|
+
r: "3",
|
|
425
|
+
fill: fill
|
|
426
|
+
}),
|
|
427
|
+
/*#__PURE__*/ jsx("circle", {
|
|
428
|
+
cx: "16",
|
|
429
|
+
cy: "16",
|
|
430
|
+
r: "3",
|
|
431
|
+
fill: fill
|
|
432
|
+
}),
|
|
433
|
+
/*#__PURE__*/ jsx("circle", {
|
|
434
|
+
cx: "24",
|
|
435
|
+
cy: "16",
|
|
436
|
+
r: "3",
|
|
437
|
+
fill: fill
|
|
438
|
+
})
|
|
439
|
+
]
|
|
440
|
+
}));
|
|
441
|
+
};
|
|
442
|
+
var CircleIcon = function() {
|
|
443
|
+
var _param = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : {};
|
|
444
|
+
var _param_width = _param.width, width = _param_width === void 0 ? 32 : _param_width, _param_height = _param.height, height = _param_height === void 0 ? 32 : _param_height, _param_fill = _param.fill, fill = _param_fill === void 0 ? 'var(--surface-action-soft)' : _param_fill, _param_className = _param.className, className = _param_className === void 0 ? '' : _param_className, props = _object_without_properties(_param, [
|
|
445
|
+
"width",
|
|
446
|
+
"height",
|
|
447
|
+
"fill",
|
|
448
|
+
"className"
|
|
449
|
+
]);
|
|
450
|
+
return /*#__PURE__*/ jsx("svg", _object_spread_props(_object_spread({
|
|
451
|
+
width: width,
|
|
452
|
+
height: height,
|
|
453
|
+
viewBox: "0 0 32 32",
|
|
454
|
+
fill: "none",
|
|
455
|
+
className: className,
|
|
456
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
457
|
+
}, props), {
|
|
458
|
+
children: /*#__PURE__*/ jsx("circle", {
|
|
459
|
+
cx: "16",
|
|
460
|
+
cy: "16",
|
|
461
|
+
r: "16",
|
|
462
|
+
fill: fill
|
|
463
|
+
})
|
|
464
|
+
}));
|
|
465
|
+
};
|
|
406
466
|
|
|
407
|
-
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BookingTypesIcon, BookingsIcon, CalendarIcon, ClearIcon, CloseIcon, CustomersIcon, EditIcon, ExportIcon, ExternalLinkIcon, InfoIcon, LoyaltyIcon, MarketingIcon, RefreshIcon, SearchIcon, SendIcon, SettingsIcon, WaiversIcon };
|
|
467
|
+
export { ArrowDownIcon, ArrowLeftIcon, ArrowRightIcon, ArrowUpIcon, BookingTypesIcon, BookingsIcon, CalendarIcon, CircleIcon, ClearIcon, CloseIcon, CustomersIcon, EditIcon, EllipsisIcon, ExportIcon, ExternalLinkIcon, InfoIcon, LoyaltyIcon, MarketingIcon, RefreshIcon, SearchIcon, SendIcon, SettingsIcon, WaiversIcon };
|
|
@@ -4,16 +4,16 @@ import { SidebarNavItem } from './SidebarNavItem.js';
|
|
|
4
4
|
import './SidebarCustomisation.scss.js';
|
|
5
5
|
import { CalendarIcon, BookingsIcon, BookingTypesIcon, LoyaltyIcon, CustomersIcon, MarketingIcon, WaiversIcon, SettingsIcon, EditIcon } from '../../../icons/index.js';
|
|
6
6
|
import '../../../components/Badge/Badge.scss.js';
|
|
7
|
+
import { Button } from '../../../components/Button/Button.js';
|
|
8
|
+
import { GhostButton } from '../../../components/Button/GhostButton.js';
|
|
7
9
|
import '../../../components/QuickFilter/QuickFilter.scss.js';
|
|
8
10
|
import '../../../components/NewTable/NewTable.scss.js';
|
|
9
|
-
import 'react-icons/fa';
|
|
10
11
|
import '../../../components/ActionMenu/ActionMenu.scss.js';
|
|
11
12
|
import '../../../components/Modal/DeleteModal.scss.js';
|
|
12
13
|
import '../../../components/NewInput/NewInput.js';
|
|
13
14
|
import '../../../components/FormField/FormField.js';
|
|
14
15
|
import '../../../components/Checkbox/Checkbox.js';
|
|
15
16
|
import '../../../components/WYSIWYGEditor/WYSIWYGEditor.scss.js';
|
|
16
|
-
import { Button } from '../../../components/Button/Button.js';
|
|
17
17
|
import '../../../components/NewPageHeader/NewPageHeader.scss.js';
|
|
18
18
|
import '../../../components/SectionHeader/SectionHeader.scss.js';
|
|
19
19
|
import '../../../components/Select/Select.scss.js';
|
|
@@ -24,7 +24,6 @@ import '../../../components/EntityHeader/EntityHeader.scss.js';
|
|
|
24
24
|
import '../../../components/Alert/Alert.scss.js';
|
|
25
25
|
import '../../../components/NPSScore/NPSScore.scss.js';
|
|
26
26
|
import '../../../components/Pagination/Pagination.scss.js';
|
|
27
|
-
import { GhostButton } from '../../../components/Button/GhostButton.js';
|
|
28
27
|
|
|
29
28
|
function _array_like_to_array(arr, len) {
|
|
30
29
|
if (len == null || len > arr.length) len = arr.length;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import 'react';
|
|
3
3
|
import '../../../components/Badge/Badge.scss.js';
|
|
4
|
+
import '../../../components/Button/Button.scss.js';
|
|
5
|
+
import '../../../components/Button/GhostButton.scss.js';
|
|
4
6
|
import '../../../components/QuickFilter/QuickFilter.scss.js';
|
|
5
7
|
import '../../../components/NewTable/NewTable.scss.js';
|
|
6
|
-
import 'react-icons/fa';
|
|
7
8
|
import '../../../components/ActionMenu/ActionMenu.scss.js';
|
|
8
9
|
import '../../../components/Modal/DeleteModal.scss.js';
|
|
9
10
|
import '../../../components/NewInput/NewInput.js';
|
|
10
11
|
import { FormField } from '../../../components/FormField/FormField.js';
|
|
11
12
|
import '../../../components/Checkbox/Checkbox.js';
|
|
12
13
|
import '../../../components/WYSIWYGEditor/WYSIWYGEditor.scss.js';
|
|
13
|
-
import '../../../components/Button/Button.scss.js';
|
|
14
14
|
import '../../../components/NewPageHeader/NewPageHeader.scss.js';
|
|
15
15
|
import '../../../components/SectionHeader/SectionHeader.scss.js';
|
|
16
16
|
import '../../../components/Select/Select.scss.js';
|
package/package.json
CHANGED
|
@@ -7,8 +7,8 @@
|
|
|
7
7
|
|
|
8
8
|
&__trigger {
|
|
9
9
|
display: flex;
|
|
10
|
-
width:
|
|
11
|
-
height:
|
|
10
|
+
width: 40px;
|
|
11
|
+
height: 40px;
|
|
12
12
|
padding: 8px;
|
|
13
13
|
justify-content: center;
|
|
14
14
|
align-items: center;
|
|
@@ -34,14 +34,23 @@
|
|
|
34
34
|
}
|
|
35
35
|
|
|
36
36
|
svg {
|
|
37
|
-
width:
|
|
38
|
-
height:
|
|
37
|
+
width: 28px;
|
|
38
|
+
height: 28px;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
.action-menu__circle {
|
|
42
|
+
position: absolute;
|
|
43
|
+
top: 50%;
|
|
44
|
+
left: 50%;
|
|
45
|
+
transform: translate(-50%, -50%);
|
|
46
|
+
width: 32px;
|
|
47
|
+
height: 32px;
|
|
48
|
+
z-index: -1;
|
|
39
49
|
}
|
|
40
50
|
}
|
|
41
51
|
|
|
42
52
|
&__dropdown {
|
|
43
53
|
position: absolute;
|
|
44
|
-
bottom: calc(100% + 4px);
|
|
45
54
|
right: 0;
|
|
46
55
|
z-index: 1000;
|
|
47
56
|
display: flex;
|
|
@@ -53,6 +62,14 @@
|
|
|
53
62
|
box-shadow: 0 4px 20px 0 rgba(18, 30, 82, 0.15);
|
|
54
63
|
overflow: hidden;
|
|
55
64
|
border: 1px solid var(--border-primary, #E8E9EF);
|
|
65
|
+
|
|
66
|
+
&--bottom {
|
|
67
|
+
top: calc(100% + 4px);
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
&--top {
|
|
71
|
+
bottom: calc(100% + 4px);
|
|
72
|
+
}
|
|
56
73
|
}
|
|
57
74
|
|
|
58
75
|
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import React, { useState, useRef, useEffect } from 'react'
|
|
2
|
-
import {
|
|
3
|
-
import { CloseIcon } from '../../icons'
|
|
1
|
+
import React, { useState, useRef, useEffect, useLayoutEffect } from 'react'
|
|
2
|
+
import { CloseIcon, EllipsisIcon, CircleIcon } from '../../icons'
|
|
4
3
|
import './ActionMenu.scss'
|
|
5
4
|
|
|
6
5
|
export interface ActionMenuItem {
|
|
@@ -17,7 +16,44 @@ export interface ActionMenuProps {
|
|
|
17
16
|
|
|
18
17
|
export const ActionMenu: React.FC<ActionMenuProps> = ({ items, className = '', iconColour = '' }) => {
|
|
19
18
|
const [isOpen, setIsOpen] = useState(false)
|
|
19
|
+
const [placement, setPlacement] = useState<'top' | 'bottom'>('bottom')
|
|
20
20
|
const menuRef = useRef<HTMLDivElement>(null)
|
|
21
|
+
const dropdownRef = useRef<HTMLDivElement>(null)
|
|
22
|
+
|
|
23
|
+
useLayoutEffect(() => {
|
|
24
|
+
if (isOpen && menuRef.current && dropdownRef.current) {
|
|
25
|
+
const menuRect = menuRef.current.getBoundingClientRect()
|
|
26
|
+
const dropdownRect = dropdownRef.current.getBoundingClientRect()
|
|
27
|
+
const viewportHeight = window.innerHeight
|
|
28
|
+
|
|
29
|
+
const spaceBelow = viewportHeight - menuRect.bottom
|
|
30
|
+
const spaceAbove = menuRect.top
|
|
31
|
+
|
|
32
|
+
if (spaceBelow < dropdownRect.height && spaceAbove > spaceBelow) {
|
|
33
|
+
setPlacement('top')
|
|
34
|
+
} else {
|
|
35
|
+
setPlacement('bottom')
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}, [isOpen])
|
|
39
|
+
|
|
40
|
+
useEffect(() => {
|
|
41
|
+
const parentRow = menuRef.current?.closest('tr')
|
|
42
|
+
const tableWrapper = menuRef.current?.closest('.new-table-wrapper')
|
|
43
|
+
|
|
44
|
+
if (isOpen) {
|
|
45
|
+
parentRow?.classList.add('action-menu-open')
|
|
46
|
+
tableWrapper?.classList.add('action-menu-open')
|
|
47
|
+
} else {
|
|
48
|
+
parentRow?.classList.remove('action-menu-open')
|
|
49
|
+
tableWrapper?.classList.remove('action-menu-open')
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
return () => {
|
|
53
|
+
parentRow?.classList.remove('action-menu-open')
|
|
54
|
+
tableWrapper?.classList.remove('action-menu-open')
|
|
55
|
+
}
|
|
56
|
+
}, [isOpen])
|
|
21
57
|
|
|
22
58
|
useEffect(() => {
|
|
23
59
|
const handleClickOutside = (event: MouseEvent) => {
|
|
@@ -38,19 +74,31 @@ export const ActionMenu: React.FC<ActionMenuProps> = ({ items, className = '', i
|
|
|
38
74
|
return (
|
|
39
75
|
<div className={`action-menu ${className}`} ref={menuRef}>
|
|
40
76
|
<button
|
|
77
|
+
type="button"
|
|
41
78
|
className={`action-menu__trigger ${isOpen ? 'action-menu__trigger--close' : ''}`}
|
|
42
79
|
onClick={() => setIsOpen(!isOpen)}
|
|
43
80
|
aria-expanded={isOpen}
|
|
44
81
|
style={{ color: iconColour }}
|
|
45
82
|
>
|
|
46
|
-
{isOpen ?
|
|
83
|
+
{isOpen ? (
|
|
84
|
+
<CloseIcon width={18} height={18} />
|
|
85
|
+
) : (
|
|
86
|
+
<>
|
|
87
|
+
<CircleIcon width={32} height={32} className="action-menu__circle" fill="var(--surface-action-soft)" />
|
|
88
|
+
<EllipsisIcon width={18} height={18} fill="var(--fill-action)" />
|
|
89
|
+
</>
|
|
90
|
+
)}
|
|
47
91
|
</button>
|
|
48
92
|
|
|
49
93
|
{isOpen && (
|
|
50
|
-
<div
|
|
94
|
+
<div
|
|
95
|
+
ref={dropdownRef}
|
|
96
|
+
className={`action-menu__dropdown action-menu__dropdown--${placement}`}
|
|
97
|
+
>
|
|
51
98
|
{items.map((item, index) => (
|
|
52
99
|
<button
|
|
53
100
|
key={index}
|
|
101
|
+
type="button"
|
|
54
102
|
className={`action-menu__item action-menu__item--${item.variant || 'default'}`}
|
|
55
103
|
onClick={() => {
|
|
56
104
|
item.onClick()
|