@norges-domstoler/dds-components 0.0.0-dev-20240229091731 → 0.0.0-dev-20240229115738
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/index.js +15 -12
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -12
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -6231,6 +6231,9 @@ var Month = (0, import_styled_components35.default)(Heading).attrs({
|
|
|
6231
6231
|
})`
|
|
6232
6232
|
text-transform: capitalize;
|
|
6233
6233
|
`;
|
|
6234
|
+
var StyledButton = (0, import_styled_components35.default)(Button)`
|
|
6235
|
+
user-select: none;
|
|
6236
|
+
`;
|
|
6234
6237
|
function createCalendar(identifier) {
|
|
6235
6238
|
switch (identifier) {
|
|
6236
6239
|
case "gregory":
|
|
@@ -6254,7 +6257,7 @@ function Calendar(props) {
|
|
|
6254
6257
|
return /* @__PURE__ */ (0, import_jsx_runtime194.jsxs)(CalendarContainer, { ...calendarProps, children: [
|
|
6255
6258
|
/* @__PURE__ */ (0, import_jsx_runtime194.jsxs)(CalendarHeader, { children: [
|
|
6256
6259
|
/* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
|
|
6257
|
-
|
|
6260
|
+
StyledButton,
|
|
6258
6261
|
{
|
|
6259
6262
|
type: "button",
|
|
6260
6263
|
"aria-label": prevAriaLabel,
|
|
@@ -6267,7 +6270,7 @@ function Calendar(props) {
|
|
|
6267
6270
|
),
|
|
6268
6271
|
/* @__PURE__ */ (0, import_jsx_runtime194.jsx)(Month, { children: title3 }),
|
|
6269
6272
|
/* @__PURE__ */ (0, import_jsx_runtime194.jsx)(
|
|
6270
|
-
|
|
6273
|
+
StyledButton,
|
|
6271
6274
|
{
|
|
6272
6275
|
type: "button",
|
|
6273
6276
|
"aria-label": nextAriaLabel,
|
|
@@ -6457,7 +6460,7 @@ var datePickerTokens = {
|
|
|
6457
6460
|
|
|
6458
6461
|
// src/components/date-inputs/DatePicker/DateField/CalendarButton.tsx
|
|
6459
6462
|
var import_jsx_runtime196 = require("react/jsx-runtime");
|
|
6460
|
-
var
|
|
6463
|
+
var StyledButton2 = import_styled_components37.default.button`
|
|
6461
6464
|
${normalizeButton}
|
|
6462
6465
|
display: flex;
|
|
6463
6466
|
align-items: center;
|
|
@@ -6503,7 +6506,7 @@ function CalendarButton({
|
|
|
6503
6506
|
const ref = (0, import_react40.useRef)(null);
|
|
6504
6507
|
const { buttonProps } = (0, import_button.useButton)(props, ref);
|
|
6505
6508
|
return /* @__PURE__ */ (0, import_jsx_runtime196.jsx)(
|
|
6506
|
-
|
|
6509
|
+
StyledButton2,
|
|
6507
6510
|
{
|
|
6508
6511
|
...buttonProps,
|
|
6509
6512
|
ref,
|
|
@@ -7164,7 +7167,7 @@ var ContentContainer = import_styled_components45.default.div`
|
|
|
7164
7167
|
padding: ${contentContainer2.padding};
|
|
7165
7168
|
`;
|
|
7166
7169
|
var HeaderContainer2 = import_styled_components45.default.div``;
|
|
7167
|
-
var
|
|
7170
|
+
var StyledButton3 = (0, import_styled_components45.default)(Button)`
|
|
7168
7171
|
align-self: flex-end;
|
|
7169
7172
|
`;
|
|
7170
7173
|
var Drawer = (0, import_react51.forwardRef)((props, ref) => {
|
|
@@ -7226,7 +7229,7 @@ var Drawer = (0, import_react51.forwardRef)((props, ref) => {
|
|
|
7226
7229
|
children
|
|
7227
7230
|
] }) }),
|
|
7228
7231
|
/* @__PURE__ */ (0, import_jsx_runtime206.jsx)(
|
|
7229
|
-
|
|
7232
|
+
StyledButton3,
|
|
7230
7233
|
{
|
|
7231
7234
|
"data-testid": "drawer-close-btn",
|
|
7232
7235
|
size: "small",
|
|
@@ -9960,7 +9963,7 @@ var ContentContainer3 = import_styled_components67.default.div`
|
|
|
9960
9963
|
gap: ${contentContainer6.gap};
|
|
9961
9964
|
`;
|
|
9962
9965
|
var HeaderContainer3 = import_styled_components67.default.div``;
|
|
9963
|
-
var
|
|
9966
|
+
var StyledButton4 = (0, import_styled_components67.default)(Button)`
|
|
9964
9967
|
align-self: flex-end;
|
|
9965
9968
|
`;
|
|
9966
9969
|
var Modal = (0, import_react74.forwardRef)((props, ref) => {
|
|
@@ -10019,7 +10022,7 @@ var Modal = (0, import_react74.forwardRef)((props, ref) => {
|
|
|
10019
10022
|
children
|
|
10020
10023
|
] }),
|
|
10021
10024
|
onClose && /* @__PURE__ */ (0, import_jsx_runtime234.jsx)(
|
|
10022
|
-
|
|
10025
|
+
StyledButton4,
|
|
10023
10026
|
{
|
|
10024
10027
|
size: "small",
|
|
10025
10028
|
appearance: "borderless",
|
|
@@ -10979,7 +10982,7 @@ var ContentContainer4 = import_styled_components72.default.div`
|
|
|
10979
10982
|
margin-top: ${content6.noTitle.marginTop};
|
|
10980
10983
|
`}
|
|
10981
10984
|
`;
|
|
10982
|
-
var
|
|
10985
|
+
var StyledButton5 = (0, import_styled_components72.default)(Button)`
|
|
10983
10986
|
position: absolute;
|
|
10984
10987
|
top: ${closeButton2.top};
|
|
10985
10988
|
right: ${closeButton2.right};
|
|
@@ -11047,7 +11050,7 @@ var Popover = (0, import_react79.forwardRef)(
|
|
|
11047
11050
|
}
|
|
11048
11051
|
),
|
|
11049
11052
|
withCloseButton && /* @__PURE__ */ (0, import_jsx_runtime240.jsx)(
|
|
11050
|
-
|
|
11053
|
+
StyledButton5,
|
|
11051
11054
|
{
|
|
11052
11055
|
icon: CloseIcon,
|
|
11053
11056
|
appearance: "borderless",
|
|
@@ -13000,7 +13003,7 @@ var import_react102 = require("react");
|
|
|
13000
13003
|
var import_styled_components85 = __toESM(require("styled-components"));
|
|
13001
13004
|
var import_jsx_runtime258 = require("react/jsx-runtime");
|
|
13002
13005
|
var { cell: cell4 } = tableTokens;
|
|
13003
|
-
var
|
|
13006
|
+
var StyledButton6 = import_styled_components85.default.button`
|
|
13004
13007
|
${normalizeButton}
|
|
13005
13008
|
user-select: text;
|
|
13006
13009
|
${removeButtonStyling}
|
|
@@ -13026,7 +13029,7 @@ var SortCell = (0, import_react102.forwardRef)(
|
|
|
13026
13029
|
"aria-sort": isSorted && sortOrder ? sortOrder : void 0,
|
|
13027
13030
|
...rest,
|
|
13028
13031
|
children: /* @__PURE__ */ (0, import_jsx_runtime258.jsxs)(
|
|
13029
|
-
|
|
13032
|
+
StyledButton6,
|
|
13030
13033
|
{
|
|
13031
13034
|
onClick,
|
|
13032
13035
|
"aria-description": "Aktiver for \xE5 endre sorteringsrekkef\xF8lge",
|