@nurix/ui-component-library 1.1.7-stage.146 → 1.1.7-stage.148

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.d.mts CHANGED
@@ -1518,8 +1518,8 @@ type TooltipContentProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitiv
1518
1518
  * Each has a predefined font-size, line-height, and font-weight.
1519
1519
  */
1520
1520
  type TypographyVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p1" | "p2" | "p3" | "b1" | "b2" | "subtext-xs" | "subtext-sm" | "input-xs" | "input-sm" | "label-sm" | "label-sm-mono" | "label-md" | "label-lg";
1521
- /** Utility text sizes (text-xs through text-6xl). Use with `weight` prop. */
1522
- type TypographySize = "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl";
1521
+ /** Utility text sizes (10px through text-6xl). Use with `weight` prop. */
1522
+ type TypographySize = "10px" | "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl";
1523
1523
  /** Font weight options (maps to Figma weight tokens). */
1524
1524
  type TypographyWeight = "thin" | "extra-light" | "light" | "regular" | "medium" | "semi-bold" | "bold" | "extra-bold" | "black";
1525
1525
  type TypographyTone = "default" | "muted" | "inherit";
@@ -3861,6 +3861,15 @@ interface WeeklyScheduleProps {
3861
3861
  * @default { start: "09:00", end: "17:00" }
3862
3862
  */
3863
3863
  defaultSlot?: WeeklyTimeSlot;
3864
+ /**
3865
+ * Optional id namespace for the internal day toggles. When more than
3866
+ * one `WeeklySchedule` can appear on the same page (e.g. one per
3867
+ * timezone group), pass a value unique to each instance so the per-day
3868
+ * switch `id`/`htmlFor` pairs stay unique. Without it every instance
3869
+ * emits the same ids and clicking a day label toggles the first
3870
+ * instance's switch. Defaults to `"weekly-schedule"`.
3871
+ */
3872
+ id?: string;
3864
3873
  className?: string;
3865
3874
  style?: React$1.CSSProperties;
3866
3875
  /**
package/dist/index.d.ts CHANGED
@@ -1518,8 +1518,8 @@ type TooltipContentProps = React.ComponentPropsWithoutRef<typeof TooltipPrimitiv
1518
1518
  * Each has a predefined font-size, line-height, and font-weight.
1519
1519
  */
1520
1520
  type TypographyVariant = "h1" | "h2" | "h3" | "h4" | "h5" | "h6" | "p1" | "p2" | "p3" | "b1" | "b2" | "subtext-xs" | "subtext-sm" | "input-xs" | "input-sm" | "label-sm" | "label-sm-mono" | "label-md" | "label-lg";
1521
- /** Utility text sizes (text-xs through text-6xl). Use with `weight` prop. */
1522
- type TypographySize = "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl";
1521
+ /** Utility text sizes (10px through text-6xl). Use with `weight` prop. */
1522
+ type TypographySize = "10px" | "xs" | "sm" | "base" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | "6xl";
1523
1523
  /** Font weight options (maps to Figma weight tokens). */
1524
1524
  type TypographyWeight = "thin" | "extra-light" | "light" | "regular" | "medium" | "semi-bold" | "bold" | "extra-bold" | "black";
1525
1525
  type TypographyTone = "default" | "muted" | "inherit";
@@ -3861,6 +3861,15 @@ interface WeeklyScheduleProps {
3861
3861
  * @default { start: "09:00", end: "17:00" }
3862
3862
  */
3863
3863
  defaultSlot?: WeeklyTimeSlot;
3864
+ /**
3865
+ * Optional id namespace for the internal day toggles. When more than
3866
+ * one `WeeklySchedule` can appear on the same page (e.g. one per
3867
+ * timezone group), pass a value unique to each instance so the per-day
3868
+ * switch `id`/`htmlFor` pairs stay unique. Without it every instance
3869
+ * emits the same ids and clicking a day label toggles the first
3870
+ * instance's switch. Defaults to `"weekly-schedule"`.
3871
+ */
3872
+ id?: string;
3864
3873
  className?: string;
3865
3874
  style?: React$1.CSSProperties;
3866
3875
  /**
package/dist/index.js CHANGED
@@ -10454,6 +10454,8 @@ var TYPOGRAPHY_TOKENS = {
10454
10454
  * Use with `weight` for fine-grained control.
10455
10455
  */
10456
10456
  size: {
10457
+ "10px": "text-[10px] leading-[14px]",
10458
+ // 10px — micro labels / disclaimers
10457
10459
  xs: "text-xs leading-4",
10458
10460
  // 12px
10459
10461
  sm: "text-sm leading-5",
@@ -18599,6 +18601,7 @@ var WeeklySchedule = React51.forwardRef(
18599
18601
  onValidationChange,
18600
18602
  dayLabels,
18601
18603
  defaultSlot = DEFAULT_SLOT,
18604
+ id = "weekly-schedule",
18602
18605
  className,
18603
18606
  style,
18604
18607
  "data-testid": dataTestId
@@ -18669,6 +18672,7 @@ var WeeklySchedule = React51.forwardRef(
18669
18672
  const entry = (_a5 = value.find((d) => d.day === day)) != null ? _a5 : { day, enabled: false, slots: [] };
18670
18673
  const isEnabled = entry.enabled;
18671
18674
  const slotsToRender = entry.slots.length > 0 ? entry.slots : [defaultSlot];
18675
+ const switchId = `${id}-switch-${day}`;
18672
18676
  return /* @__PURE__ */ (0, import_jsx_runtime47.jsxs)(
18673
18677
  "div",
18674
18678
  {
@@ -18683,7 +18687,7 @@ var WeeklySchedule = React51.forwardRef(
18683
18687
  /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
18684
18688
  Switch,
18685
18689
  {
18686
- id: `weekly-schedule-switch-${day}`,
18690
+ id: switchId,
18687
18691
  checked: isEnabled,
18688
18692
  onCheckedChange: (checked) => handleToggle(day, checked),
18689
18693
  size: "small",
@@ -18693,7 +18697,7 @@ var WeeklySchedule = React51.forwardRef(
18693
18697
  /* @__PURE__ */ (0, import_jsx_runtime47.jsx)(
18694
18698
  "label",
18695
18699
  {
18696
- htmlFor: `weekly-schedule-switch-${day}`,
18700
+ htmlFor: switchId,
18697
18701
  className: cn(
18698
18702
  WEEKLY_SCHEDULE_TOKENS.dayLabel,
18699
18703
  isEnabled ? WEEKLY_SCHEDULE_TOKENS.dayLabelEnabled : WEEKLY_SCHEDULE_TOKENS.dayLabelDisabled,
package/dist/index.mjs CHANGED
@@ -10333,6 +10333,8 @@ var TYPOGRAPHY_TOKENS = {
10333
10333
  * Use with `weight` for fine-grained control.
10334
10334
  */
10335
10335
  size: {
10336
+ "10px": "text-[10px] leading-[14px]",
10337
+ // 10px — micro labels / disclaimers
10336
10338
  xs: "text-xs leading-4",
10337
10339
  // 12px
10338
10340
  sm: "text-sm leading-5",
@@ -18494,6 +18496,7 @@ var WeeklySchedule = React51.forwardRef(
18494
18496
  onValidationChange,
18495
18497
  dayLabels,
18496
18498
  defaultSlot = DEFAULT_SLOT,
18499
+ id = "weekly-schedule",
18497
18500
  className,
18498
18501
  style,
18499
18502
  "data-testid": dataTestId
@@ -18564,6 +18567,7 @@ var WeeklySchedule = React51.forwardRef(
18564
18567
  const entry = (_a5 = value.find((d) => d.day === day)) != null ? _a5 : { day, enabled: false, slots: [] };
18565
18568
  const isEnabled = entry.enabled;
18566
18569
  const slotsToRender = entry.slots.length > 0 ? entry.slots : [defaultSlot];
18570
+ const switchId = `${id}-switch-${day}`;
18567
18571
  return /* @__PURE__ */ jsxs38(
18568
18572
  "div",
18569
18573
  {
@@ -18578,7 +18582,7 @@ var WeeklySchedule = React51.forwardRef(
18578
18582
  /* @__PURE__ */ jsx47(
18579
18583
  Switch,
18580
18584
  {
18581
- id: `weekly-schedule-switch-${day}`,
18585
+ id: switchId,
18582
18586
  checked: isEnabled,
18583
18587
  onCheckedChange: (checked) => handleToggle(day, checked),
18584
18588
  size: "small",
@@ -18588,7 +18592,7 @@ var WeeklySchedule = React51.forwardRef(
18588
18592
  /* @__PURE__ */ jsx47(
18589
18593
  "label",
18590
18594
  {
18591
- htmlFor: `weekly-schedule-switch-${day}`,
18595
+ htmlFor: switchId,
18592
18596
  className: cn(
18593
18597
  WEEKLY_SCHEDULE_TOKENS.dayLabel,
18594
18598
  isEnabled ? WEEKLY_SCHEDULE_TOKENS.dayLabelEnabled : WEEKLY_SCHEDULE_TOKENS.dayLabelDisabled,
package/dist/styles.css CHANGED
@@ -1826,6 +1826,10 @@
1826
1826
  --tw-leading: calc(var(--spacing) * 10);
1827
1827
  line-height: calc(var(--spacing) * 10);
1828
1828
  }
1829
+ .lego-land .leading-\[14px\] {
1830
+ --tw-leading: 14px;
1831
+ line-height: 14px;
1832
+ }
1829
1833
  .lego-land .leading-none {
1830
1834
  --tw-leading: 1;
1831
1835
  line-height: 1;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nurix/ui-component-library",
3
- "version": "1.1.7-stage.146",
3
+ "version": "1.1.7-stage.148",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",