@bigtablet/design-system 2.2.2 → 2.2.3

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.css CHANGED
@@ -1525,46 +1525,13 @@
1525
1525
  width: 100%;
1526
1526
  font-family: "Pretendard", sans-serif;
1527
1527
  }
1528
- .select_label {
1529
- position: absolute;
1530
- top: -8px;
1531
- left: 16px;
1532
- padding: 0 4px;
1533
- background: var(--select-surface, #FFFFFF);
1534
- font-family: "Pretendard", sans-serif;
1535
- font-size: 12px;
1536
- font-weight: 400;
1537
- line-height: 16px;
1538
- letter-spacing: 0.32px;
1539
- color: #121212;
1540
- white-space: nowrap;
1541
- pointer-events: none;
1542
- }
1543
- .select_control {
1544
- width: 100%;
1545
- display: inline-flex;
1546
- align-items: center;
1547
- justify-content: space-between;
1548
- gap: 8px;
1549
- cursor: pointer;
1550
- color: #121212;
1551
- background: var(--select-surface, #FFFFFF);
1528
+ .select_fieldset {
1529
+ padding: 0;
1530
+ margin: 0;
1531
+ min-inline-size: 0;
1552
1532
  border-radius: 12px;
1553
- transition:
1554
- border-color 0.2s ease-in-out,
1555
- box-shadow 0.2s ease-in-out,
1556
- background 0.2s ease-in-out;
1557
- font-size: 15px;
1558
- font-weight: 400;
1559
- line-height: 22.5px;
1560
- letter-spacing: 0px;
1561
- }
1562
- .select_control:disabled,
1563
- .select_control.is_disabled {
1564
- cursor: not-allowed;
1565
- opacity: 0.38;
1566
- background: #F4F4F4;
1567
- color: #888888;
1533
+ background-color: #FFFFFF;
1534
+ transition: border-color 0.2s ease-in-out, background-color 0.2s ease-in-out;
1568
1535
  }
1569
1536
  .select_variant_outline {
1570
1537
  border: 1px solid #E5E5E5;
@@ -1584,7 +1551,7 @@
1584
1551
  background: rgb(251.7, 251.7, 251.7);
1585
1552
  }
1586
1553
  .select_variant_filled.is_open {
1587
- background: var(--select-surface, #FFFFFF);
1554
+ background: #FFFFFF;
1588
1555
  border-color: #121212;
1589
1556
  box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.15);
1590
1557
  }
@@ -1596,28 +1563,75 @@
1596
1563
  background: rgba(0, 0, 0, 0.05);
1597
1564
  }
1598
1565
  .select_variant_ghost.is_open {
1599
- background: var(--select-surface, #FFFFFF);
1566
+ background: #FFFFFF;
1600
1567
  border-color: #121212;
1601
1568
  box-shadow: 0 0 0 3px rgba(18, 18, 18, 0.15);
1602
1569
  }
1570
+ .select_fieldset.is_disabled {
1571
+ background-color: #F4F4F4;
1572
+ }
1603
1573
  .select_size_sm {
1604
1574
  min-height: 40px;
1575
+ }
1576
+ .select_size_md {
1577
+ min-height: 52px;
1578
+ }
1579
+ .select_size_lg {
1580
+ min-height: 52px;
1581
+ }
1582
+ .select_label {
1583
+ margin-inline-start: 12px;
1584
+ padding: 0 4px;
1585
+ color: #121212;
1586
+ transition: color 0.2s ease-in-out;
1587
+ }
1588
+ .select_label > label {
1589
+ display: block;
1590
+ font-family: "Pretendard", sans-serif;
1591
+ font-size: 12px;
1592
+ font-weight: 400;
1593
+ line-height: 16px;
1594
+ letter-spacing: 0.32px;
1595
+ color: inherit;
1596
+ pointer-events: none;
1597
+ cursor: default;
1598
+ }
1599
+ .select_fieldset.is_disabled .select_label {
1600
+ color: rgba(26, 26, 26, 0.38);
1601
+ }
1602
+ .select_control {
1603
+ width: 100%;
1604
+ min-height: inherit;
1605
+ display: inline-flex;
1606
+ align-items: center;
1607
+ justify-content: space-between;
1608
+ gap: 8px;
1609
+ cursor: pointer;
1610
+ background: transparent;
1611
+ border: none;
1612
+ color: #121212;
1613
+ }
1614
+ .select_control:disabled,
1615
+ .select_control.is_disabled {
1616
+ cursor: not-allowed;
1617
+ opacity: 0.38;
1618
+ color: #888888;
1619
+ }
1620
+ .select_size_sm .select_control {
1605
1621
  padding: 8px 16px;
1606
1622
  font-size: 12px;
1607
1623
  font-weight: 400;
1608
1624
  line-height: 16px;
1609
1625
  letter-spacing: 0px;
1610
1626
  }
1611
- .select_size_md {
1612
- min-height: 52px;
1627
+ .select_size_md .select_control {
1613
1628
  padding: 12px 20px;
1614
1629
  font-size: 15px;
1615
1630
  font-weight: 400;
1616
1631
  line-height: 22.5px;
1617
1632
  letter-spacing: 0px;
1618
1633
  }
1619
- .select_size_lg {
1620
- min-height: 52px;
1634
+ .select_size_lg .select_control {
1621
1635
  padding: 16px 24px;
1622
1636
  font-size: 16px;
1623
1637
  font-weight: 400;
@@ -1712,10 +1726,6 @@
1712
1726
  cursor: not-allowed;
1713
1727
  color: #888888;
1714
1728
  }
1715
- .select:has(.select_control:disabled) .select_label,
1716
- .select:has(.select_control.is_disabled) .select_label {
1717
- color: rgba(26, 26, 26, 0.38);
1718
- }
1719
1729
 
1720
1730
  /* src/ui/spinner/style.scss */
1721
1731
  @keyframes skeleton_loading {
package/dist/index.js CHANGED
@@ -2157,8 +2157,8 @@ var Select = ({
2157
2157
  setDropUp(spaceBelow < listHeight && spaceAbove > spaceBelow);
2158
2158
  }, [isOpen, options.length]);
2159
2159
  const rootClassName = cn("select", { select_has_label: !!label }, className);
2160
- const controlClassName = cn(
2161
- "select_control",
2160
+ const fieldsetClassName = cn(
2161
+ "select_fieldset",
2162
2162
  `select_variant_${variant}`,
2163
2163
  `select_size_${size}`,
2164
2164
  { is_open: isOpen, is_disabled: disabled }
@@ -2171,33 +2171,35 @@ var Select = ({
2171
2171
  className: rootClassName,
2172
2172
  style: fullWidth ? { width: "100%" } : void 0,
2173
2173
  children: [
2174
- label && /* @__PURE__ */ jsx("label", { htmlFor: selectId, className: "select_label", children: label }),
2175
- /* @__PURE__ */ jsxs(
2176
- "button",
2177
- {
2178
- ref: controlRef,
2179
- id: selectId,
2180
- type: "button",
2181
- className: controlClassName,
2182
- "aria-haspopup": "listbox",
2183
- "aria-expanded": isOpen,
2184
- "aria-controls": `${selectId}_listbox`,
2185
- onClick: () => !disabled && setIsOpen((o) => !o),
2186
- onKeyDown,
2187
- disabled,
2188
- children: [
2189
- /* @__PURE__ */ jsx(
2190
- "span",
2191
- {
2192
- className: currentOption ? "select_value" : "select_placeholder",
2193
- style: textAlign === "left" ? { textAlign: "start" } : void 0,
2194
- children: currentOption ? currentOption.label : placeholder
2195
- }
2196
- ),
2197
- /* @__PURE__ */ jsx("span", { className: "select_icon", "aria-hidden": "true", children: /* @__PURE__ */ jsx(ChevronDown, { size: 16 }) })
2198
- ]
2199
- }
2200
- ),
2174
+ /* @__PURE__ */ jsxs("fieldset", { className: fieldsetClassName, children: [
2175
+ label && /* @__PURE__ */ jsx("legend", { className: "select_label", children: /* @__PURE__ */ jsx("label", { htmlFor: selectId, children: label }) }),
2176
+ /* @__PURE__ */ jsxs(
2177
+ "button",
2178
+ {
2179
+ ref: controlRef,
2180
+ id: selectId,
2181
+ type: "button",
2182
+ className: cn("select_control", { is_disabled: disabled }),
2183
+ "aria-haspopup": "listbox",
2184
+ "aria-expanded": isOpen,
2185
+ "aria-controls": `${selectId}_listbox`,
2186
+ onClick: () => !disabled && setIsOpen((o) => !o),
2187
+ onKeyDown,
2188
+ disabled,
2189
+ children: [
2190
+ /* @__PURE__ */ jsx(
2191
+ "span",
2192
+ {
2193
+ className: currentOption ? "select_value" : "select_placeholder",
2194
+ style: textAlign === "left" ? { textAlign: "start" } : void 0,
2195
+ children: currentOption ? currentOption.label : placeholder
2196
+ }
2197
+ ),
2198
+ /* @__PURE__ */ jsx("span", { className: "select_icon", "aria-hidden": "true", children: /* @__PURE__ */ jsx(ChevronDown, { size: 16 }) })
2199
+ ]
2200
+ }
2201
+ )
2202
+ ] }),
2201
2203
  isOpen && /* @__PURE__ */ jsx("div", { id: `${selectId}_listbox`, role: "listbox", className: listClassName, children: options.map((opt, i) => {
2202
2204
  const selected = currentValue === opt.value;
2203
2205
  const active = i === activeIndex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bigtablet/design-system",
3
- "version": "2.2.2",
3
+ "version": "2.2.3",
4
4
  "description": "Bigtablet Design System UI Components",
5
5
  "type": "module",
6
6
  "types": "dist/index.d.ts",