@northlight/ui 2.35.2 → 2.35.4

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.
@@ -1006,8 +1006,9 @@
1006
1006
  _focusVisible: {
1007
1007
  bgColor: color.background.input["outline-focus"],
1008
1008
  borderColor: color.border.input.focus,
1009
+ boxShadow: `inset 0 0 0 1px ${color.border.input.focus}`,
1009
1010
  _invalid: {
1010
- boxShadow: `0 0 0 1px ${color.border.input.error}`,
1011
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`,
1011
1012
  bgColor: color.background.input["outline-error"],
1012
1013
  borderColor: color.border.input.error
1013
1014
  }
@@ -1018,7 +1019,8 @@
1018
1019
  },
1019
1020
  _invalid: {
1020
1021
  bgColor: color.background.input["outline-error"],
1021
- borderColor: color.border.input.error
1022
+ borderColor: color.border.input.error,
1023
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`
1022
1024
  },
1023
1025
  _disabled: {
1024
1026
  bgColor: color.background.input["outline-disabled"],
@@ -1057,20 +1059,20 @@
1057
1059
  bgColor: color.background.input["filled-hover"]
1058
1060
  },
1059
1061
  _focusVisible: {
1060
- boxShadow: `0 0 0 1px ${color.border.input.focus}`,
1062
+ boxShadow: `inset 0 0 0 1px ${color.border.input.focus}`,
1061
1063
  borderColor: color.border.input.focus,
1062
1064
  bgColor: color.background.input["filled-focus"],
1063
1065
  _readOnly: {
1064
1066
  bgColor: color.background.input["filled-default"]
1065
1067
  },
1066
1068
  _invalid: {
1067
- boxShadow: `0 0 0 1px ${color.border.input.error}`,
1069
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`,
1068
1070
  bgColor: color.background.input["outline-error"],
1069
1071
  borderColor: color.border.input.error
1070
1072
  }
1071
1073
  },
1072
1074
  _invalid: {
1073
- boxShadow: `0 0 0 1px ${color.border.input.error}`,
1075
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`,
1074
1076
  bgColor: color.background.input["filled-error"],
1075
1077
  borderColor: color.border.input.error
1076
1078
  },
@@ -1157,11 +1159,11 @@
1157
1159
  _focusVisible: {
1158
1160
  bgColor: color.background.input["outline-focus"],
1159
1161
  _hover: {
1160
- boxShadow: `0 0 0 1px ${color.border.ai}`,
1162
+ boxShadow: `inset 0 0 0 1px ${color.border.ai}`,
1161
1163
  borderColor: color.border.ai
1162
1164
  },
1163
1165
  _invalid: {
1164
- boxShadow: `0 0 0 1px ${color.border.input.error}`,
1166
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`,
1165
1167
  bgColor: color.background.input["outline-error"],
1166
1168
  borderColor: color.border.input.error
1167
1169
  }
@@ -1718,12 +1720,12 @@
1718
1720
  _focusVisible: {
1719
1721
  bg: color.background.input["outline-focus"],
1720
1722
  borderColor: color.border.input.focus,
1721
- boxShadow: `0 0 0 1px ${color.border.textarea.focus}`
1723
+ boxShadow: `inset 0 0 0 1px ${color.border.textarea.focus}`
1722
1724
  },
1723
1725
  _invalid: {
1724
1726
  bg: color.background.input["outline-error"],
1725
1727
  borderColor: color.border.input.error,
1726
- boxShadow: `0 0 0 1px ${color.border.input.error}`
1728
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`
1727
1729
  },
1728
1730
  _disabled: {
1729
1731
  bg: color.background.input["outline-disabled"],
@@ -1929,10 +1931,10 @@
1929
1931
  _focusWithin: {
1930
1932
  bgColor: color.background.input["outline-focus"],
1931
1933
  borderColor: color.border.textarea.focus,
1932
- boxShadow: `0 0 0 1px ${color.border.textarea.focus}`
1934
+ boxShadow: `inset 0 0 0 1px ${color.border.textarea.focus}`
1933
1935
  },
1934
1936
  _invalid: {
1935
- boxShadow: `0 0 0 1px ${color.border.input.error}`,
1937
+ boxShadow: `inset 0 0 0 1px ${color.border.input.error}`,
1936
1938
  borderColor: color.border.input.error
1937
1939
  },
1938
1940
  _disabled: {
@@ -1953,11 +1955,11 @@
1953
1955
  outline: "none",
1954
1956
  rounded: "md",
1955
1957
  _focus: {
1956
- bgColor: "blue.500",
1958
+ bgColor: "bg.brand.default",
1957
1959
  color: color.text.inverted
1958
1960
  },
1959
1961
  _placeholder: {
1960
- color: "red.500"
1962
+ color: "destructive"
1961
1963
  }
1962
1964
  }
1963
1965
  }),
@@ -7264,6 +7266,44 @@
7264
7266
  },
7265
7267
  label: "Year to Date"
7266
7268
  };
7269
+ const S1 = {
7270
+ value: {
7271
+ start: startOfMonthWithDays(
7272
+ date.startOfYear(thisDay).subtract({ years: offsetFiscalYear }),
7273
+ {
7274
+ months: fiscalStartMonth,
7275
+ days: fiscalStartDay
7276
+ }
7277
+ ),
7278
+ end: endOfMonthWithDays(
7279
+ date.startOfYear(thisDay).subtract({ years: offsetFiscalYear }),
7280
+ {
7281
+ months: fiscalStartMonth + 6,
7282
+ days: fiscalStartDay
7283
+ }
7284
+ )
7285
+ },
7286
+ label: fiscalStartMonth === 0 ? "S1" : "FS1"
7287
+ };
7288
+ const S2 = {
7289
+ value: {
7290
+ start: startOfMonthWithDays(
7291
+ date.startOfYear(thisDay).subtract({ years: offsetFiscalYear }),
7292
+ {
7293
+ months: fiscalStartMonth + 6,
7294
+ days: fiscalStartDay
7295
+ }
7296
+ ),
7297
+ end: endOfMonthWithDays(
7298
+ date.startOfYear(thisDay).subtract({ years: offsetFiscalYear }),
7299
+ {
7300
+ months: fiscalStartMonth + 12,
7301
+ days: fiscalStartDay
7302
+ }
7303
+ )
7304
+ },
7305
+ label: fiscalStartMonth === 0 ? "S2" : "FS2"
7306
+ };
7267
7307
  const F1 = {
7268
7308
  value: {
7269
7309
  start: startOfMonthWithDays(
@@ -7340,6 +7380,7 @@
7340
7380
  },
7341
7381
  label: fiscalStartMonth === 0 ? "Q4" : "FQ4"
7342
7382
  };
7383
+ const fiscalSemesters = [S1, S2];
7343
7384
  const fiscalQuarters = [F1, F2, F3, F4];
7344
7385
  const fiscalYears = fiscalStartMonth === 0 ? [] : [thisFiscalYear, lastFiscalYear];
7345
7386
  const quickDates = [
@@ -7357,7 +7398,7 @@
7357
7398
  nextYear,
7358
7399
  ...fiscalYears
7359
7400
  ];
7360
- return { quickDates, fiscalQuarters };
7401
+ return { quickDates, fiscalQuarters, fiscalSemesters };
7361
7402
  };
7362
7403
 
7363
7404
  const seperator = `1px solid ${tokens.palette.gray["100"]}`;
@@ -7368,7 +7409,7 @@
7368
7409
  locale = "",
7369
7410
  height = "17.5rem"
7370
7411
  }) => {
7371
- const { quickDates, fiscalQuarters } = React.useMemo(
7412
+ const { quickDates, fiscalQuarters, fiscalSemesters } = React.useMemo(
7372
7413
  () => getQuickSelectOptions(state, locale, fiscalStartMonth, fiscalStartDay),
7373
7414
  []
7374
7415
  );
@@ -7411,10 +7452,31 @@
7411
7452
  ), /* @__PURE__ */ React.createElement(react.Spacer, null), /* @__PURE__ */ React.createElement(
7412
7453
  react.Flex,
7413
7454
  {
7414
- justifyContent: "space-between",
7455
+ justifyContent: "space-around",
7415
7456
  w: "full",
7416
7457
  pt: "2",
7417
7458
  pr: "4",
7459
+ display: shouldShow(fiscalSemesters) ? "flex" : "none"
7460
+ },
7461
+ ramda.map(
7462
+ (semester) => validRange(semester.value, state) && /* @__PURE__ */ React.createElement(
7463
+ DateButton,
7464
+ {
7465
+ onClick: updateDate(semester.value),
7466
+ isActive: getIsActive(semester),
7467
+ key: `quick-select-${semester.label}`
7468
+ },
7469
+ semester.label
7470
+ ),
7471
+ fiscalSemesters
7472
+ )
7473
+ ), /* @__PURE__ */ React.createElement(
7474
+ react.Flex,
7475
+ {
7476
+ justifyContent: "space-around",
7477
+ w: "full",
7478
+ pt: shouldShow(fiscalSemesters) ? "0" : "2",
7479
+ pr: "4",
7418
7480
  display: shouldShow(fiscalQuarters) ? "flex" : "none"
7419
7481
  },
7420
7482
  ramda.map(