@khanacademy/perseus 45.0.0 → 45.1.0

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
@@ -1500,6 +1500,167 @@ body.mobile ul.inequalities-one-line-radios > li {
1500
1500
  .perseus-clearfix:after {
1501
1501
  clear: both;
1502
1502
  }
1503
+ /**
1504
+ * This file contains styles that are used in prod that ultimately
1505
+ * get passed onto Perseus components. This file is imported in the
1506
+ * .storybook/preview.js file so that the components can have the same
1507
+ * styles as prod when viewed within Storybook.
1508
+ */
1509
+ @layer reset, shared, legacy;
1510
+ @layer reset {
1511
+ /* http://meyerweb.com/eric/tools/css/reset/
1512
+ v2.0 | 20110126
1513
+ License: none (public domain)
1514
+ */
1515
+
1516
+ html,
1517
+ body,
1518
+ div,
1519
+ span,
1520
+ applet,
1521
+ object,
1522
+ iframe,
1523
+ h1,
1524
+ h2,
1525
+ h3,
1526
+ h4,
1527
+ h5,
1528
+ h6,
1529
+ p,
1530
+ blockquote,
1531
+ pre,
1532
+ a,
1533
+ abbr,
1534
+ acronym,
1535
+ address,
1536
+ big,
1537
+ cite,
1538
+ code,
1539
+ del,
1540
+ dfn,
1541
+ em,
1542
+ img,
1543
+ ins,
1544
+ kbd,
1545
+ q,
1546
+ s,
1547
+ samp,
1548
+ small,
1549
+ strike,
1550
+ strong,
1551
+ sub,
1552
+ sup,
1553
+ tt,
1554
+ var,
1555
+ b,
1556
+ u,
1557
+ i,
1558
+ center,
1559
+ dl,
1560
+ dt,
1561
+ dd,
1562
+ ol,
1563
+ ul,
1564
+ li,
1565
+ fieldset,
1566
+ form,
1567
+ label,
1568
+ legend,
1569
+ table,
1570
+ caption,
1571
+ tbody,
1572
+ tfoot,
1573
+ thead,
1574
+ tr,
1575
+ th,
1576
+ td,
1577
+ article,
1578
+ aside,
1579
+ canvas,
1580
+ details,
1581
+ embed,
1582
+ figure,
1583
+ figcaption,
1584
+ footer,
1585
+ header,
1586
+ hgroup,
1587
+ menu,
1588
+ nav,
1589
+ output,
1590
+ ruby,
1591
+ section,
1592
+ summary,
1593
+ time,
1594
+ mark,
1595
+ audio,
1596
+ video {
1597
+ margin: 0;
1598
+ padding: 0;
1599
+ border: 0;
1600
+ font-size: 100%;
1601
+ font: inherit;
1602
+ vertical-align: baseline;
1603
+ }
1604
+ /* HTML5 display-role reset for older browsers */
1605
+ article,
1606
+ aside,
1607
+ details,
1608
+ figcaption,
1609
+ figure,
1610
+ footer,
1611
+ header,
1612
+ hgroup,
1613
+ menu,
1614
+ nav,
1615
+ section {
1616
+ display: block;
1617
+ }
1618
+ body {
1619
+ line-height: 1;
1620
+ }
1621
+ ol,
1622
+ ul {
1623
+ list-style: none;
1624
+ }
1625
+ blockquote,
1626
+ q {
1627
+ quotes: none;
1628
+ }
1629
+ blockquote:before,
1630
+ blockquote:after,
1631
+ q:before,
1632
+ q:after {
1633
+ content: "";
1634
+ content: none;
1635
+ }
1636
+ table {
1637
+ border-collapse: collapse;
1638
+ border-spacing: 0;
1639
+ }
1640
+
1641
+ /* End Reset */
1642
+
1643
+ }
1644
+ @layer shared {
1645
+ html,
1646
+ body {
1647
+ height: 100%;
1648
+ }
1649
+ body {
1650
+ font-family: "Lato", "Noto Sans", "Helvetica", "Corbel", sans-serif, "Helvetica", "Corbel", sans-serif;
1651
+ font-size: 14px;
1652
+ margin: 0;
1653
+ color: #21242c;
1654
+ line-height: 1.4;
1655
+ min-width: 0;
1656
+ }
1657
+ .box-sizing-border-box-reset {
1658
+ box-sizing: border-box;
1659
+ }
1660
+ .box-sizing-border-box-reset * {
1661
+ box-sizing: inherit;
1662
+ }
1663
+ }
1503
1664
  .framework-perseus code {
1504
1665
  font-family: Courier, monospace;
1505
1666
  }
@@ -3395,23 +3556,19 @@ body.mobile .framework-perseus table.perseus-widget-table-of-values.non-markdown
3395
3556
  display: none;
3396
3557
  }
3397
3558
  }
3398
- .perseus-tooltip {
3399
- background: #fff;
3400
- padding: 5px 10px;
3401
- width: 240px;
3402
- }
3403
3559
  .perseus-formats-tooltip {
3404
3560
  background: #fff;
3561
+ color: #777;
3405
3562
  padding: 5px 10px;
3406
3563
  width: 240px;
3407
- color: #777;
3408
- }
3409
- .framework-perseus .perseus-formats-tooltip .paragraph > ul {
3410
- padding: 0;
3411
- margin: -20px 0 -16px 0;
3412
3564
  }
3413
- .framework-perseus .perseus-formats-tooltip .paragraph > ul > li {
3414
- list-style-type: none;
3565
+ /*
3566
+ Extra specificity needed to override other styles that are too broad.
3567
+ Once we get a better framework in place (like CSS Modules), we can fix this selector.
3568
+ */
3569
+ .framework-perseus .perseus-formats-tooltip .paragraph,
3570
+ .framework-perseus .tooltipContainer .perseus-formats-tooltip .paragraph ul {
3571
+ margin: 0;
3415
3572
  }
3416
3573
  .perseus-math-input.mq-editable-field.mq-math-mode {
3417
3574
  background-color: transparent;
package/dist/index.d.ts CHANGED
@@ -91,7 +91,7 @@ export type { ServerItemRenderer as ServerItemRendererComponent } from "./server
91
91
  export type { Alignment, APIOptions, APIOptionsWithDefaults, ChangeHandler, DeviceType, DomInsertCheckFn, EditorMode, FocusPath, ImageDict, ImageUploader, JiptLabelStore, JiptRenderer, PerseusDependencies, PerseusDependenciesV2, PerseusScore, Version, VideoData, VideoKind, WidgetExports, SharedRendererProps, } from "./types";
92
92
  export type { ParsedValue } from "./util";
93
93
  export type { Hint, LegacyButtonSets, LockedFigure, LockedFigureColor, LockedFigureFillType, LockedFigureType, LockedPointType, LockedLineType, LockedVectorType, LockedEllipseType, LockedPolygonType, LockedFunctionType, LockedLabelType, LockedLineStyle, PerseusGraphType, PerseusAnswerArea, PerseusExpressionWidgetOptions, Range, Size, CollinearTuple, MathFormat, InputNumberWidget, // TODO(jeremy): remove?
94
- PerseusArticle, PerseusImageBackground, PerseusInputNumberWidgetOptions, PerseusInteractiveGraphWidgetOptions, PerseusItem, PerseusPhetSimulationWidgetOptions, PerseusPlotterWidgetOptions, PerseusPythonProgramWidgetOptions, PerseusRadioWidgetOptions, PerseusRenderer, PerseusWidget, PerseusWidgetsMap, MultiItem, } from "./perseus-types";
94
+ PerseusArticle, PerseusImageBackground, PerseusInputNumberWidgetOptions, PerseusInteractiveGraphWidgetOptions, PerseusItem, PerseusPhetSimulationWidgetOptions, PerseusPlotterWidgetOptions, PerseusPythonProgramWidgetOptions, PerseusRadioWidgetOptions, PerseusRenderer, PerseusWidget, PerseusWidgetsMap, PerseusWidgetTypes, MultiItem, WidgetOptions, } from "./perseus-types";
95
95
  export type { UserInputMap } from "./validation.types";
96
96
  export type { Coord } from "./interactive2/types";
97
97
  export type { MarkerType } from "./widgets/label-image/types";